UNPKG

superrfjs

Version:

12 lines 185 kB
/*! * * SpreadJS Library 17.0.7 * * Copyright(c) MESCIUS inc. All rights reserved. * * Licensed under the SpreadJS Commercial License. * us.sales@mescius.com * https://developer.mescius.com/spreadjs * */ !function (t) { "object" == typeof module && "object" == typeof module.exports ? (require("@mescius/spread-sheets-shapes"), module.exports = t(require("@mescius/spread-sheets"))) : "function" == typeof define && define.amd ? define(["@mescius/spread-sheets", "@mescius/spread-sheets-shapes"], t) : "object" == typeof exports ? (require("@mescius/spread-sheets-shapes"), exports.Spread = t(require("@mescius/spread-sheets"))) : t(GC) }(function (i) { !function () { "use strict"; var n, e, t; function r(t) { var i, i, i = e[t]; return void 0 !== i || (i = e[t] = { exports: {} }, n[t].call(i.exports, i, i.exports, r)), i.exports } n = { "./dist/plugins/slicer/slicer-actions.js": function (t, i, n) { var e, o, n, r, s, u, c, a, f, l, h, v, d, m; function b(t) { var i, n, n; return !!t.canUndo() && (i = t.Mf, n = o.Commands.TI(i.name()), n = t.tT[n], t.X5(i, !0), i.Ut.undo(n), t.q5(i, !0), !0) } function p(t, i, n) { var e, t, n, r, e = t.parent, t = t.slicers.get(n); e && i.Z3 && t && (n = t.startRow(), r = t.startColumn(), e.changeSelectionInCommandExecuting(i, n, r, [], [t])) } function g(t, i) { for (var n = 0; n < t.length; n++)if (t[n].columnName === i) return t[n]._ps && t[n]._ps.name } function S(t, i) { return h.call(this, t, i) || this } function w(t, i) { return v.call(this, t, i) || this } function _(t, i) { return d.call(this, t, i) || this } function y(t, i) { return m.call(this, t, i) || this } e = this && this.__extends || (l = function (t, i) { return (l = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array ? function (t, i) { t.__proto__ = i } : function (t, i) { for (var n in i) Object.prototype.hasOwnProperty.call(i, n) && (t[n] = i[n]) }))(t, i) }, function (t, i) { if ("function" != typeof i && null !== i) throw new TypeError("Class extends value " + String(i) + " is not a constructor or null"); function n() { this.constructor = t } l(t, i), t.prototype = null === i ? Object.create(i) : (n.prototype = i.prototype, new n) }), Object.defineProperty(i, "__esModule", { value: !0 }), i.DeleteSlicerUndoAction = void 0, o = n("Core"), n = o.Commands.ActionBase, e(S, h = n), S.prototype.canExecute = function () { return !!this.tT.slicerData }, S.prototype.execute = function () { var t, i, n, e, i, t = this, i = t.tT; return !!t.canExecute() && (p(n = t.Mf, i, e = g(i.slicerData.aT, i.columnName)), n.Ut.startTransaction(), t.X5(n, !0), i.slicerData.doFilter(i.columnName, { exclusiveRowIndexes: i.newValue }), t.q5(n, !0), i = o.Commands.TI(n.name()), t.tT[i] = n.Ut.endTransaction(), !0) }, S.prototype.canUndo = function () { return !!this.tT.slicerData }, S.prototype.undo = function () { return b(this) }, r = S, e(w, v = n), w.prototype.canExecute = function () { return !!this.tT.slicerData }, w.prototype.execute = function () { var t, i, n, e, i, t = this, i = t.tT; return !!t.canExecute() && (p(n = t.Mf, i, e = g(i.slicerData.aT, i.columnName)), n.Ut.startTransaction(), t.X5(n, !0), i.slicerData.doUnfilter(i.columnName), t.q5(n, !0), i = o.Commands.TI(n.name()), t.tT[i] = n.Ut.endTransaction(), !0) }, w.prototype.canUndo = function () { return !!this.tT.slicerData }, w.prototype.undo = function () { return b(this) }, s = w, e(_, d = n), _.prototype.canExecute = function () { return !!this.tT.slicer }, _.prototype.execute = function () { var t, i, n, e, t = this, i = t.tT; return !!t.canExecute() && (p(n = t.Mf, i, e = g(i.slicerData.aT, i.columnName)), t.X5(n, !0), i.slicer[i.propertyName](i.newValue), t.q5(n, !0), !0) }, _.prototype.canUndo = function () { return !!this.tT.slicer }, _.prototype.undo = function () { var t, i, n, t = this, i = t.tT; return !!t.canUndo() && (n = t.Mf, t.X5(n, !0), i.slicer[i.propertyName](i.oldValue), t.q5(n, !0), !0) }, u = _, c = o.Commands.zA, o.Commands.filterSlicer = { canUndo: !0, execute: function (t, i, n) { return c(t, r, i, n) } }, o.Commands.unfilterSlicer = { canUndo: !0, execute: function (t, i, n) { return c(t, s, i, n) } }, o.Commands.changeSlicerProperty = { canUndo: !0, execute: function (t, i, n) { return c(t, u, i, n) } }, o.Commands.unfilterSlicerByKey = { canUndo: !1, execute: function (t, i) { var t, i, i, n, e, t = o.Commands.Tp(t, i), i = t.slicers.t1i(); if (1 === i.length && (n = (i = i[0]).i1i())) return e = n.getFilteredIndexes(i.columnName()), t.Qy().execute({ cmd: "unfilterSlicer", sheetName: t.name(), slicerData: n, columnName: i.columnName(), value: e }) } }, a = "deleteSlicers", e(y, m = n), y.prototype.canExecute = function () { return !0 }, y.prototype.execute = function () { var t, i, n, e, r, s, t = this, i = !1, n = t.Mf, e = t.tT, r = e.slicerNames; return t.canExecute() && o.GC$.isArray(r) && (n.Ut.startTransaction(), t.X5(n, !0), r.forEach(function (t) { n.slicers.DK(t) }), t.q5(n, !0), e[s = o.Commands.TI(n.name())] = n.Ut.endTransaction(), i = 0 < r.length), i }, y.prototype.undo = function () { var t, i, n, e, t = this, i = t.tT, n = t.Mf; return !!t.canUndo() && (t.X5(n, !0), e = o.Commands.TI(n.name()), n.Ut.undo(i[e]), t.q5(n, !0), !0) }, i.DeleteSlicerUndoAction = f = y, o.Commands[a] = { canUndo: !0, execute: function (t, i, n) { return n || i.cmd || (i.cmd = a), 0 < i.slicerNames.length && c(t, f, i, n) } } }, "./dist/plugins/slicer/slicer-base/slicer-base.js": function (A, s, t) { var i, d, l, e, u, m, n, r, o, c, a, t, f, h, v, b, M, p, g, W, o, S, w, _, B, P, H, U, J, y, D, j, C, z, V, O, c, I; function N(t) { return t === g || t === p } function G(t) { return "number" == typeof t && 0 < t } function Y(t, i) { return i === J ? ~~t : i === y ? !!t : t } function T(t, i, n) { var e = this; e[t] && (N(D[t]) || (i = Y(i, D[t])), e[t](i), e.refresh()), E.call(e, t, n) } function E(t, i) { var n, e, n = this, e = n.sheet(); e && (e.Ut.n1i(n, t, i), n.ki({ sheet: e, sheetName: e.name(), slicer: n, propertyName: t })) } function q(n, t, e, i) { return U(n, t, function (t, i) { e.call(this, n, t, i) }, i) } function K(t) { return h(b(t, "\n", "_x000a_")) } function x(t) { return v(b(b(t, "_x000a_", "\n"), "&#xA;", "\n")) } function Z(t) { return b(h(t), "\n", "&#xA;") } function L(t, i, n) { this.Mf = i, this.FQt = n, this.name(t, !1), this.captionName(this.sourceName(), !1) } function k(t, i, n) { this.r1i = {}, this.UQt = !1, this.Mf = t, this.updateOptionsCallback = i, this.updateValuesCallback = n, this.WQt() } function R() { var t = null !== I && I.apply(this, arguments) || this; return t.e1i = {}, t.rb = !1, t.u = !0, t } function F(t) { return t && t.graphic.graphicData.slicer } function $(t, i) { t.save(), t.strokeStyle = "#000000", t.miterLimit = 4, t.fillStyle = i ? "#FFFFFF" : "#DCDCDC", t.font = "15px", t.beginPath(), t.moveTo(3, 3), t.lineTo(17, 3), t.lineTo(17, 6), t.lineTo(12, 12), t.lineTo(12, 17), t.lineTo(8, 17), t.lineTo(8, 12), t.lineTo(3, 6), t.lineTo(3, 3), t.stroke(), t.beginPath(), t.moveTo(3, 3), t.lineTo(17, 3), t.lineTo(17, 6), t.lineTo(12, 12), t.lineTo(12, 17), t.lineTo(8, 17), t.lineTo(8, 12), t.lineTo(3, 6), t.lineTo(3, 3), t.fill(), t.restore(), t.save(), t.fillStyle = i ? "#E65249" : "#C4C4C4", t.font = "15px", t.beginPath(), t.moveTo(19, 13.75), t.lineTo(18.25, 13), t.lineTo(16, 15.25), t.lineTo(13.75, 13), t.lineTo(13, 13.75), t.lineTo(15.25, 16), t.lineTo(13, 18.25), t.lineTo(13.75, 19), t.lineTo(16, 16.75), t.lineTo(18.25, 19), t.lineTo(19, 18.25), t.lineTo(16.75, 16), t.lineTo(19, 13.75), t.fill(), t.restore() } function Q(t) { var i, n, e, r, e, r, i, n, s, i, n, e, r, o, u, c, s, a, a, f, i = null != (i = t.width) ? i : m.SLICER_WIDTH, n = null != (n = t.height) ? n : m.SLICER_HEIGHT, e = null != (e = t.x) ? e : m.DEFAULT_LEFT, r = null != (r = t.y) ? r : m.DEFAULT_TOP, o, u, c, s = { graphic: { graphicData: { slicer: {} } }, nvGraphicFramePr: { cNvPr: { name: t.name, hidden: !1 === t.isVisible }, cNvGraphicFramePr: { graphicFrameLocks: { noChangeAspect: !1 } } }, xfrm: { ext: { cx: i, cy: n }, off: { x: e, y: r }, rot: 0, flipH: !1, flipY: !1 }, shapeType: l.CT_ShapeType.CT_SlicerShape }, a = t.startColumn !== g && t.startRow !== g ? (a = { col: t.startColumn, colOffset: t.startColumnOffset || 0, colOffsetEmu: t.startColumnOffsetEmu, row: t.startRow, rowOffset: t.startRowOffset || 0, rowOffsetEmu: t.startRowOffsetEmu }, { anchorType: 0, editAs: 0, endPoint: f = { col: t.endColumn, colOffset: t.endColumnOffset || 0, colOffsetEmu: t.endColumnOffsetEmu, row: t.endRow, rowOffset: t.endRowOffset || 0, rowOffsetEmu: t.endRowOffsetEmu }, startPoint: a, graphicFrame: s }) : { anchorType: 2, editAs: 0, x: e, y: r, width: i, height: n, graphicFrame: s }; return { name: Z(t.name), shapeType: l.CT_ShapeType.CT_SlicerShape, allowMove: null == (e = t.allowMove) || e, allowResize: null == (r = t.allowResize) || r, allowRotate: !1, alt: "", canPrint: !0, dynamicMove: null != (i = t.dynamicMove) && i, dynamicSize: null != (n = t.dynamicSize) && n, isLocked: null == (s = t.isLocked) || s, showHandle: !0, shapeData: a } } i = this && this.__extends || (O = function (t, i) { return (O = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array ? function (t, i) { t.__proto__ = i } : function (t, i) { for (var n in i) Object.prototype.hasOwnProperty.call(i, n) && (t[n] = i[n]) }))(t, i) }, function (t, i) { if ("function" != typeof i && null !== i) throw new TypeError("Class extends value " + String(i) + " is not a constructor or null"); function n() { this.constructor = t } O(t, i), t.prototype = null === i ? Object.create(i) : (n.prototype = i.prototype, new n) }), Object.defineProperty(s, "__esModule", { value: !0 }), s.SlicerViewBase = s.SlicerViewModelBase = s.SlicerBase = s.encodeSlicerDrawingName = s.decodeSlicerName = s.encodeSlicerName = s.SlicerUIType = s.defSlicerProperty = s.afterPropertyChanged = s.onPropertyChanged = s.ItemSlicerCacheProperties = s.ItemSlicerProperties = s.SlicerShapeProperties = s.SlicerBaseProperties = s.ht = void 0, d = t("Core"), l = t("Shapes"), e = t("./dist/plugins/slicer/slicer.js"), u = t("./dist/plugins/slicer/slicer-style.js"), m = t("./dist/plugins/slicer/slicer-ui/render/diagram-util.js"), n = t("./dist/plugins/slicer/slicer-ui/render/slicer-button.js"), r = t("./dist/plugins/slicer/slicer-ui/data/slicer-shape.js"), o = t("Common"), c = t("./dist/plugins/slicer/slicer.ns.js"), a = t("./dist/plugins/slicer/slicer.entry.js"), t = new o.Common.ResourceManager(c.SR, "Slicer"), f = t.getResource.bind(t), h = d.util.vo, v = d.util.n1, b = d.Util.gr, M = d.ExcelHelper.pixelToEMU, p = null, g = void 0, W = 1, o = "TableSlicerCaches", S = "name", w = "black", _ = "white", B = "normal 11pt calibri", P = "bold 11pt calibri", H = d.mt.yt, U = d.mt.p0, s.ht = N, s.SlicerBaseProperties = [["captionName", "", T], ["disableResizingAndMoving", !1, function (t, i, n) { var e, i, e = this; e.allowMove(!i), e.allowResize(!i), T.call(e, "disableResizingAndMoving", i, n), (i = e.sheet()) && i.zw() }], ["showHeader", !0, T]], s.SlicerShapeProperties = ["name", "isSelected", "isVisible", "isLocked", "dynamicMove", "dynamicSize", "x", "y", "height", "width", "startRow", "startColumn", "startRowOffset", "startColumnOffset", "endRow", "endColumn", "endRowOffset", "endColumnOffset", "allowResize", "allowMove"], s.ItemSlicerProperties = [["columnCount", 1, T, G], ["itemHeight", 21, T, G], ["multiSelect", !1, T]], D = { columnCount: J = "i", multiSelect: y = "b", showHeader: y, showHorizontalScrollbar: y, showSelectionLabel: y, showTimeLevel: y }, s.ItemSlicerCacheProperties = ["showNoDataItems", "showNoDataItemsInLast", "visuallyNoDataItems", "sortState"], s.onPropertyChanged = T, s.afterPropertyChanged = E, s.defSlicerProperty = q, (c = j = s.SlicerUIType || (s.SlicerUIType = {}))[c.header = 1] = "header", c[c.captionName = 2] = "captionName", c[c.clearFilter = 3] = "clearFilter", c[c.multiSelect = 4] = "multiSelect", c[c.item = 5] = "item", c[c.scrollBar = 6] = "scrollBar", c[c.timeLevel = 7] = "timeLevel", c[c.dragBar = 8] = "dragBar", s.encodeSlicerName = K, s.decodeSlicerName = x, s.encodeSlicerDrawingName = Z, L.prototype.init = function () { var t = this; t.initSlicerUI(), t.paintSlicerUI() }, L.prototype.setFilter = function () { this.FQt.setFilter() }, L.prototype.wmi = function () { this.GQt && this.GQt.wmi() }, L.prototype.clearFilter = function () { this.FQt.clearFilter() }, L.prototype.filterCleared = function () { return this.FQt.filterCleared() }, L.prototype.initSlicerUI = function () { }, L.prototype.paintSlicerUI = function () { this.GQt && this.GQt.refresh() }, L.prototype.refresh = function () { this.wmi(), this.paintSlicerUI() }, L.prototype.L0 = function () { var t = this; t.GQt.dispose(), t.GQt = p, t.Mf = p, t.FQt = p, t.RN = p }, L.prototype.sheet = function () { return this.Mf }, L.prototype.sourceName = function () { return this.FQt.sourceName }, L.prototype.nameInFormula = function (t) { var i = this; if (0 === arguments.length) return i.FQt.name; i.FQt.name = t }, L.prototype.position = function (t) { var i = this; return 0 === arguments.length ? new d.Point(i.x(), i.y()) : (i.x(t.x || m.DEFAULT_LEFT), i.y(t.y || m.DEFAULT_TOP), i) }, L.prototype.style = function (t) { var i = this; if (0 === arguments.length) return i.RN; i.yqt(t) }, L.prototype.yqt = function (t, i) { var n, e, n = this; N(t) || n.RN !== t && ((e = new u.SlicerStyle).fromJSON(n.RN.toJSONInternal()), n.RN.fromJSON(t.toJSONInternal()), n.GQt.setStyle(n.RN), i || (n.refresh(), E.call(n, "style", e))) }, L.prototype.ki = function (t) { var i = this.sheet(); i && i.ki(d.Events.SlicerChanged, t) }, L.prototype.ACe = function (t, i) { }, L.prototype.toJSON = function (n) { var e, r, t, e = this, r = {}, t = e.FQt; return r.type = e.ma, r.slicerCacheName = t.name, e.style() && (r.style = e.style().toJSON()), n && e.ACe(r, n), s.SlicerBaseProperties.forEach(function (t) { var t = t[0]; r[t] = e[t]() }), s.SlicerShapeProperties.forEach(function (t) { var i; N(e[t]) || (t === S ? N(n) ? r[S] = e.name() : (i = e.GQt.RQt, r[S] = i.sSe, delete i.sSe) : r[t] = e[t]()) }), r.nameInFormula = e.nameInFormula(), r }, L.prototype.fromJSON = function (i) { var t, n, t, e, n = this; s.SlicerBaseProperties.forEach(function (t) { var t = t[0]; i[t] !== g && n[t](i[t]) }), (t = null == (t = n.GQt) ? void 0 : t.RQt) && (e = Q(i), t.fromJSON(e), t.anV(!0), N(i.isSelected) || t.isSelected(i.isSelected), N(i.name) || t.name(i.name)), n.style().fromJSON(i.style) }, L.prototype.getSlicerUIRect = function (t, i) { if (this.GQt) return this.GQt.gWt(t, i) }, L.prototype.yh = function (t, i, n, e, r) { var s, o, o, t, s = this, o = t.name; o !== g && s.name(x(o)), t.caption !== g && s.captionName(x(t.caption)), t.showCaption !== g && s.showHeader("1" === t.showCaption), t.lockedPosition !== g && s.disableResizingAndMoving("1" === t.lockedPosition), (o = t.style || n.getDefaultStyleName("defaultSlicerStyle")) && ((0, u.isBuildInSlicerStyle)(o) ? s.style(u.SlicerStyles[o.substring("SlicerStyle".length).toLowerCase()]()) : (t = n.getSlicerStyle(o)) && s.style(t)) }, C = L, s.SlicerBase = C, s.SlicerBaseProperties.forEach(function (t) { C.prototype[t[0]] = q(t[0], t[1], t[2], t[3]) }), s.SlicerShapeProperties.forEach(function (r) { C.prototype[r] = function (t) { var i, n, e, i = this, n = i.GQt, e = null == n ? void 0 : n.getProperty(r); if (0 === arguments.length) return "name" !== r || n ? e : i.iSe; if ("name" === r) if (n) try { n.setProperty(r, t), i.Mf.slicers.Ydt(e, t, !0), E.call(i, r, e) } catch (t) { throw new Error(f().Exp_SlicerNameExist) } else i.iSe = t; else n.setProperty(r, t); return "isLocked" === r && i.refresh(), i } }), C.prototype.getShapePoints = function () { return this.GQt && this.GQt.zQt && this.GQt.zQt.shape.getShapePoints() }, k.prototype.WQt = function () { }, k.prototype.wmi = function () { this.zQt && this.zQt.wmi() }, k.prototype.bind = function (t, i) { this.r1i || (this.r1i = {}), this.r1i[t] || (this.r1i[t] = []), this.r1i[t].push(i) }, k.prototype.ki = function (t, i) { var t = this.r1i[t]; t && 0 < t.length && t.forEach(function (t) { t(i) }) }, k.prototype.getProperty = function (t) { var i = this; if (i.RQt[t]) return i.RQt[t]() }, k.prototype.setProperty = function (t, i) { var n = this; if (n.RQt[t]) return n.RQt[t](i) }, k.prototype.resetFormControl = function (t) { var i, n, i, i = t.ytV.sVV, n, i = new ((0, l.getFormControlCtor)(i)); i.init(t), this.zQt = t.GtV = i }, k.prototype.refreshFormControl = function () { var t, i, t = this, i; t.zQt.options = t.updateOptionsCallback() }, k.prototype.setStyle = function (t) { this.zQt.setStyle(t) }, k.prototype.refresh = function () { var t; this.refreshFormControl() }, k.prototype.yh = function (t, i, n, e, r) { }, k.prototype.dispose = function () { this.zQt && (this.zQt.dispose(), this.zQt = p), this.UQt || (this.UQt = !0, this.Mf.shapes.remove(this.RQt.name())), this.r1i = p, this.RQt = p }, k.prototype.gWt = function (t, i) { var n; return n = this.zQt ? this.zQt.gWt(t, i) : n }, s.SlicerViewModelBase = k, I = l.BaseFormControl, i(R, I), R.prototype.onMouseDown = function (t) { if (!this.shouldProcessMouseDownEvt(t)) return !1; this.doMouseDown(t.evt) && (this.rb = !0, t.cancelDefault = !0) }, R.prototype.onMouseMove = function (t) { var t; this.c1i() && (this.doMouseMove(t.evt), this.rb && (t.cancelDefault = !0), N(t = this.sheet) || N(t.MD) || (clearTimeout(t.MD), delete t.MD), N(t) || N(t.Mpe) || (clearTimeout(t.Mpe), delete t.Mpe)) }, R.prototype.onMouseUp = function (t) { this.c1i() && (this.doMouseUp(t.evt), this.rb) && (t.cancelDefault = !0, this.rb = !1) }, R.prototype.c1i = function () { var t, i, t = this.sheet.options, i = this.LEt; return !this.sheet.isActualProtected() || !i.isLocked || t.protectionOptions.allowEditObjects }, R.prototype.shouldProcessMouseEvt = function (t) { var t = t.canvas.getPointer(t.evt); return this.c1i() && this.hitTest(t) }, R.prototype.shouldProcessMouseDownEvt = function (t) { return this.shouldProcessMouseEvt(t) && 0 === t.evt.button }, R.prototype.doMouseDown = function (t) { return !1 }, R.prototype.doMouseMove = function (t) { return p }, R.prototype.doMouseUp = function (t) { this.u1i.onMouseUp(t) }, R.prototype.onClearFilterButtonClick = function () { this.triggerEvent("clearFilter"), this.onClearFilter(), this.refresh() }, R.prototype.onClearFilter = function () { }, R.prototype.addEventListener = function (t, i) { var n, e, n = this, e = n.e1i[t] || []; e.push(i), n.e1i[t] = e }, R.prototype.removeEventListener = function (t, i) { var n, t, i, n, t = this.e1i[t] || [], i = t.indexOf(i); -1 !== i && t.splice(i, 1) }, R.prototype.fireEvent = function (t, i) { var n, e, n = this, e; (n.e1i[t] || []).forEach(function (t) { return t(n.shape, i) }) }, R.prototype.dispose = function () { this.u1i.dispose(), this.u1i = null, this.e1i = null, this.xT = !0, I.prototype.dispose.call(this) }, R.prototype.wmi = function () { this.u = !0 }, R.prototype.getButtonBGStyle = function () { var t, i, t, i; return { headerStyle: this.getHeaderStyle(), wholeStyle: this.getWholeStyle() } }, R.prototype.initClearFilterButton = function () { var t, i, t = new n.SlicerButton, i = t.props; i.contentType = "callback", i.containerSize = { w: 23, h: 23 }, i.renderCallBack = $, i.onButtonClick = this.onClearFilterButtonClick.bind(this), i.getPointerRelativeControl = this.getPointerRelativeControl.bind(this), i.refresh = this.refresh.bind(this), i.setCursor = this.setCursor.bind(this), i.getBackColor = this.getButtonBGStyle.bind(this), i.getThemeColor = this.getThemeColor.bind(this), t.props = i, this.u1i = t }, R.prototype.onWindowMouseMove = function (t) { this.u1i.onWindowMouseMove(t) }, R.prototype.getWholeStyle = function () { return this.RN.wholeSlicerStyle() }, R.prototype.getHeaderStyle = function () { return this.RN.headerStyle() }, R.prototype.getThemeColor = function (t) { return this.shape.Mf.currentTheme().getColor(t) }, R.prototype.triggerEvent = function (t, i) { this.fireEvent(t, i) }, R.prototype.setCursor = function (t) { var i = this.shape.Mf.Dg(); i && (i.style.cursor = t) }, R.prototype.setStyle = function (t) { this.RN = t }, R.prototype.a1i = function (t) { if (0 === arguments.length) return this.f1i; this.f1i = !!t }, R.prototype.gWt = function (t, i) { var n, e, r, s, o, n = this, e = n.LEt.showHeader, r = n.width, s = n.height; switch (t) { case j.header: o = e ? new d.Rect(0, 0, r, Math.min(s, 25)) : p; break; case j.captionName: o = e ? new d.Rect(10, 10, r - 60, Math.min(s, 10)) : p; break; case j.clearFilter: o = e ? new d.Rect(r - 30, 5, 16, 16) : p; break; case j.multiSelect: o = e ? new d.Rect(r - 55, 5, 16, 16) : p }return (i = i || {}).left = 10, i.top = e ? 30 : 5, { rect: o, args: i } }, R.prototype.render = function (t, i) { var n, e, r, s, o, n = this; if (n.RN) return e = -n.width / 2, r = -n.height / 2, s = n.width - 20, o = n.height - 40, t.textAlign = "left", t.textBaseline = "middle", n.paintBody(t, e, r, s, o), n.LEt.showHeader ? n.paintHeader(t, e, r, s, o) : o += 30, n.a1i() && n.h1i(t, e, r, s, o), n.paintBorder(t, e, r, s, o), { left: e, top: r, w: s, h: o } }, R.prototype.paintBody = function (t, i, n, e, r) { var s, o, u, s = this, o = s.getWholeStyle(); t.save(), u = new d.Rect(i, n, s.width, s.height), (0, m.appendBackColorStyle)(t, i, n, s.width, s.height, o, o, this.getThemeColor.bind(this)), t.fillRect(u.x, u.y, u.width, u.height), t.restore() }, R.prototype.paintHeader = function (t, i, n, e, r) { var s, o, u, c, a, c, f, l, h, v, c, a, s = this; for (t.save(), o = new d.Rect(i, n, s.width, Math.min(s.height, 25)), t.rect(o.x, o.y, o.width, o.height), t.clip(), t.beginPath(), u = s.getHeaderStyle(), c = s.getWholeStyle(), u && u.backColor() || c && c.backColor() ? (0, m.appendBackColorStyle)(t, i, n, o.width, o.height, u, c, this.getThemeColor.bind(this)) : t.fillStyle = _, t.fillRect(o.x, o.y, o.width, o.height), a = s.LEt.captionName || "", t.font = H(s.l1i(u, c)), c = u && u.foreColor() || c && c.foreColor() || w, t.fillStyle = s.getThemeColor(c), t.fillText((0, m.getEllipsisText)(t, a, e - 50), i + 10, n + 15), f = !1, !s.v1i(u.borderBottom()) && s.v1i(u.borderRight()) && s.v1i(u.borderLeft()) && s.v1i(u.borderTop()) && (f = !0), l = 0; l < 4; l++)(v = u[h = m.Border_Names[l]]()) && (2 === l && f && (o.width -= 20, o.x += 10), (0, m.paintBorder)(t, l, o, v, this.getThemeColor.bind(this)), 2 === l) && f && (o.width += 20, o.x -= 10); c = s.u1i, a = s.filterCleared(), t.translate(.5 * e - 20, n + 1), c.props.offset = s.bWt(), c.props.enabled = !a, c.render(t), t.restore() }, R.prototype.paintBorder = function (t, i, n, e, r) { for (var s, o, u, c, a, s = this.getWholeStyle(), o = new d.Rect(i + .5, n + .5, this.width, this.height), u = 0; u < 4; u++)(a = s[c = m.Border_Names[u]]()) && (0, m.paintBorder)(t, u, o, a, this.getThemeColor.bind(this)) }, R.prototype.h1i = function (t, i, n, e, r) { var s = i, o = n; for (t.save(), t.beginPath(), t.fillStyle = "red"; s < e + i;)t.fillRect(s, n, 1, r), s += 10; for (t.fillStyle = "lightblue"; o < r + n;)t.fillRect(i, o, e, 1), o += 10; t.restore() }, R.prototype.filterCleared = function () { return !0 }, R.prototype.bWt = function () { var t; return { top: -5, left: 30 - this.width } }, R.prototype.v1i = function (t) { return !(t && t.borderColor() && t.borderStyle() && t.borderWidth()) }, R.prototype.l1i = function (t, i) { return t && t.font() ? t.font() : i && i.font() && i.font() !== B ? i.font() : P }, R.prototype.isNeedControlCursorBySelf = function () { return !0 }, R.prototype.yh = function (t, i) { this.shape.yh(t, i), this.shape.anV(!0) }, s.SlicerViewBase = R, l.ShapeCollection.ch(o, { createShapeWhenFromSJSFormat: function (t) { var i, n, e, n, n, i = t.sheet, n = t.anchorData; n.graphicFrame ? e = n.graphicFrame : n.AlternateContent && (n = n.AlternateContent.Choice) && n.graphicFrame && (e = n.graphicFrame), F(e) && (n = new r.ItemSlicerShape(i, x(e.nvGraphicFramePr.cNvPr.name), !1), t.shape = n, t.drawingData = e) }, createShapeWhenFromJSON: function (t) { var i, n, i, i = t.sheet, n = t.json; n && n.shapeType === l.CT_ShapeType.CT_SlicerShape && n.slicerType !== e.SlicerType.pivotTimeline && (i = new r.ItemSlicerShape(i, x(n.name), !1), t.shape = i) } }), l.DrawingBaseData.ch(o, { createChildShapeDataBySJSNode: function (t) { var i = t.node.graphicFrame; F(i) && (t.shapeData = new a.ItemSlicerShapeData(t.sheet, g, "itemSlicer"), t.childNode = i) }, createChildShapeDataBySSJSON: function (t) { var i; t.node.shapeType === l.CT_ShapeType.CT_SlicerShape && F(t.node) && (t.shapeData = new a.ItemSlicerShapeData(t.sheet, g, "itemSlicer")) } }), l.ShapeBase.ch(o, { createChildShape: function (t) { var i = t.shapeData; i instanceof a.ItemSlicerShapeData && (t.shape = new r.ItemSlicerShape(t.sheet, i.Name, !1)) } }) }, "./dist/plugins/slicer/slicer-base/slicer-cache-base.js": function (t, i) { var n, e, r; function s(t, i) { this.name = t, this.sourceName = i, this.IQt = [], this.Xst = !1 } Object.defineProperty(i, "__esModule", { value: !0 }), i.SlicerCacheBase = i.SlicerCacheType = void 0, (r = n = i.SlicerCacheType || (i.SlicerCacheType = {}))[r.pivotSlicer = 1] = "pivotSlicer", r[r.pivotTimeline = 2] = "pivotTimeline", r[r.tableSlicer = 3] = "tableSlicer", s.prototype.filterCleared = function () { return !0 }, s.prototype.suspendUpdate = function () { this.Xst = !0 }, s.prototype.resumeUpdate = function () { this.Xst = !1, this.updateCache() }, s.prototype.canUpdate = function () { return !this.Xst }, s.prototype.mQt = function () { return null }, s.prototype.beforeSetFilter = function () { var t, i, t = this, i = t.mQt(); t.suspendUpdate(), i.suspendPaint(), i.suspendCalcService() }, s.prototype.afterSetFilter = function () { var t, i, t = this, i = t.mQt(); i.resumeCalcService(!1), i.resumePaint(), t.resumeUpdate() }, s.prototype.add = function (t, i) { return null }, s.prototype.get = function (i) { var t, n, t; return this.IQt.forEach(function (t) { if (t.name() === i) return n = t, !0 }), n }, s.prototype.remove = function (n) { var e = this; e.d1i || e.IQt.forEach(function (t, i) { if (t.name() === n) return e.IQt.splice(i, 1), t.L0(), !0 }) }, s.prototype.updateCache = function () { }, s.prototype.onWorkSheetDisposing = function (t) { for (var i, n, e, i = this, n = i.IQt.length - 1; -1 < n; n--)(e = i.IQt[n]).sheet() && e.sheet().name() !== t || i.IQt.splice(n, 1) }, s.prototype.setFilter = function () { }, s.prototype.clearFilter = function () { }, s.prototype.refreshSlicers = function () { this.canUpdate() && this.IQt.forEach(function (t) { t.refresh() }) }, s.prototype.toJSON = function () { }, s.prototype.fromJSON = function (t) { var i = this; i.disposeAllSlicers(), i.IQt = [], i.name = t.name }, s.prototype.disposeAllSlicers = function () { var t = this; t.d1i = !0, t.IQt.forEach(function (t) { t.L0() }), t.d1i = !1 }, s.prototype.dispose = function () { var t = this; t.disposeAllSlicers(), t.IQt = null }, i.SlicerCacheBase = s }, "./dist/plugins/slicer/slicer-style.js": function (A, t, i) { var o, M, h, W, s, f, u, v, n, B, p, D, e, r, c, a, l, i, P, H, U, J, z, M, V, G, Y, q, K, d, Z, $, Q, X, tt, it, nt, et, rt, st, ot, ut, ct, at, ft, lt, ht, j, vt, m, dt, b, mt, bt, pt, gt, St, wt, _t, yt, Dt, jt, Ct, Ot, It, Nt, Tt, Et, xt, g, S, w, _, Lt, y, kt, Rt, Ft, At, Mt, Wt, C, O, I; function Bt(t, i) { return !!(t && 0 < t.length && 0 < t.filter(function (t) { return t.name === i }).length) } function Pt(t, i, n, e) { var r, s, o, u, c, r = [], s = { n_: "tableStyle", c_: r, name: t }; if (!(e ? R : F)(t)) for (o in n) if (n.hasOwnProperty(o) && "name" !== o && !(0, h.ht)(n[o])) switch (o) { case "headerStyle": case "wholeSlicerStyle": si(n[o]), (u = i.getDxfIndex(n[o])) !== v && r.push(c = { n_: "tableStyleElement", type: B[o], dxfId: u }) }s.pivot = "0", s.count = r.length, 0 === r.length && delete s.c_, i.addTableStyle(s) } function Ht(t) { var i, n, i, i = (t.kSt ? (i = t.kSt, n = o.NodeHelper.sr(i.dxfId, 0), i) : (n = t.dxfId, t)).type; return { type: i, dxfId: n } } function Ut(t, i) { !t.fontSize && i && i.fontSize && (t.fontSize = i.fontSize), !t.fontFamily && i && i.fontFamily && (t.fontFamily = i.fontFamily) } function N() { var t = this; t[D]("", !1), t[d](zt(), !1) } function T() { var t = this; t[D]("", !1), t[d](zt(), !1) } function E(t, i, n, e, r, s, o, u) { for (var c = 0, a = f(E.properties); c < a; c++)this[E.properties[c]](arguments[c]) } for (Object.defineProperty(t, "__esModule", { value: !0 }), t.TimelineStyles = t.SlicerStyles = t.isBuildInTimelineStyle = t.isBuildInSlicerStyle = t.SlicerBorder = t.SlicerStyleInfo = t.TimelineStyle = t.SlicerStyle = void 0, o = i("Core"), M = i("Common"), h = i("./dist/plugins/slicer/slicer-base/slicer-base.js"), W = o.mt.p0, s = o.mt.T1, f = M.Common.Uf.tR, u = null, v = void 0, n = "normal 11pt calibri", B = { wholeSlicerStyle: "wholeTable", headerStyle: "headerRow" }, D = "name", e = "light", r = "dark", c = "white", a = "black", i = "font", P = "setBorders", H = "back" + (p = { b1i: "Style", m1i: "Color", g1i: "Width", hdt: "border", ght: "top", p1i: "header", S1i: "body", w1i: "periodLabel", _1i: "selectedTimeBlock", y1i: "WithDataStyle", D1i: "WithNoDataStyle", C1i: "electedItem", O1i: "hovered", j1i: "gc-slicer-", I1i: "container", N1i: "clearfilter", E1i: "itemscontainer", T1i: "item" }).m1i, U = "fore" + p.m1i, J = p.hdt + "Width", z = p.hdt + p.b1i, M = p.hdt + p.m1i, V = p.hdt + "Left", G = p.hdt + "Top", Y = p.hdt + "Right", q = p.hdt + "Bottom", K = "textDecoration", d = "wholeSlicer" + p.b1i, Z = "header" + p.b1i, $ = "s" + p.C1i + p.y1i, Q = "s" + p.C1i + p.D1i, X = "unS" + p.C1i + p.y1i, tt = "unS" + p.C1i + p.D1i, it = p.O1i + "S" + p.C1i + p.y1i, nt = p.O1i + "S" + p.C1i + p.D1i, et = p.O1i + "UnS" + p.C1i + p.y1i, rt = p.O1i + "UnS" + p.C1i + p.D1i, st = "selectionLabel" + p.b1i, ot = "timeLevel" + p.b1i, ut = p.w1i + "1" + p.b1i, ct = p.w1i + "2" + p.b1i, at = p._1i + p.b1i, ft = "un" + p._1i + p.b1i, lt = p._1i + "Space" + p.b1i, ht = "Accent ", j = "Slicer" + p.b1i, vt = "Time" + j, m = "#999999", dt = "#828282", b = "#CCCCCC", mt = " 40", bt = " 60", pt = " 80", gt = " -25", St = " -50", wt = "bold 11pt calibri", _t = "normal 10pt calibri", yt = "normal 9pt calibri", Dt = "Text 1 50", jt = "Background 1 -15", Ct = ["empty", l = "thin", "medium", "dashed", "dotted", "thick", "double", "hair", "mediumDashed", "dashDot", "mediumDashDot", "dashDotDot", "mediumDashDotDot", "slantedDashDot"], Ot = { selectedItemWithData: "selectedItemWithDataStyle", selectedItemWithNoData: "selectedItemWithNoDataStyle", unselectedItemWithData: "unSelectedItemWithDataStyle", unselectedItemWithNoData: "unSelectedItemWithNoDataStyle", hoveredSelectedItemWithData: "hoveredSelectedItemWithDataStyle", hoveredSelectedItemWithNoData: "hoveredSelectedItemWithNoDataStyle", hoveredUnselectedItemWithData: "hoveredUnSelectedItemWithDataStyle", hoveredUnselectedItemWithNoData: "hoveredUnSelectedItemWithNoDataStyle", wholeTable: "wholeSlicerStyle", headerRow: "headerStyle" }, It = { selectionLabel: "selectionLabelStyle", timeLevel: "timeLevelStyle", periodLabel1: "periodLabel1Style", periodLabel2: "periodLabel2Style", selectedTimeBlock: "selectedTimeBlockStyle", unselectedTimeBlock: "unselectedTimeBlockStyle", selectedTimeBlockSpace: "selectedTimeBlockSpaceStyle", wholeTable: "wholeSlicerStyle", headerRow: "headerStyle" }, Nt = { selectedItemWithDataStyle: "selectedItemWithData", selectedItemWithNoDataStyle: "selectedItemWithNoData", unSelectedItemWithDataStyle: "unselectedItemWithData", unSelectedItemWithNoDataStyle: "unselectedItemWithNoData", hoveredSelectedItemWithDataStyle: "hoveredSelectedItemWithData", hoveredSelectedItemWithNoDataStyle: "hoveredSelectedItemWithNoData", hoveredUnSelectedItemWithDataStyle: "hoveredUnselectedItemWithData", hoveredUnSelectedItemWithNoDataStyle: "hoveredUnselectedItemWithNoData" }, Tt = { selectionLabelStyle: "selectionLabel", timeLevelStyle: "timeLevel", periodLabel1Style: "periodLabel1", periodLabel2Style: "periodLabel2", selectedTimeBlockStyle: "selectedTimeBlock", unselectedTimeBlockStyle: "unselectedTimeBlock", selectedTimeBlockSpaceStyle: "selectedTimeBlockSpace" }, Et = { empty: 0, thin: 1, medium: 2, dashed: 3, dotted: 4, thick: 5, double: 6, hair: 7, mediumDashed: 8, dashDot: 9, mediumDashDot: 10, dashDotDot: 11, mediumDashDotDot: 12, slantedDashDot: 13 }, xt = { 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 }, N.prototype.fromJSON = function (e) { var r, t, t, i; e && !o.GC$.isEmptyObject(e) && (r = this, t = e.name, s(t) && (r.name(t), R(t)) ? (t = t.toLocaleLowerCase().replace("slicerstyle", "").replace(" ", ""), i = Jt(t), N.properties.forEach(function (t) { r[t](i[t](), !1) })) : N.properties.forEach(function (t) { var i, n, i = e[t]; t !== D && (n = Jt(), s(i) && n.fromJSON(i), r[t](n, !1)) })) }, N.prototype.toJSON = function () { var t, i, n, e, t = this, i = R(t.name()) ? { name: t.name() } : t.toJSONInternal(), n = {}; for (e in i) i[e] === u || i[e] === v || o.GC$.isEmptyObject(i[e]) || (n[e] = i[e]); return n }, N.prototype.toJSONInternal = function () { var t, i, n, e, r, s, t = this, i = {}, n = "toJSON"; for (i[D] = t.name(), e = 1, r = f(N.properties); e < r; e++)i[s = N.properties[e]] = t[s]() ? t[s]()[n]() : u; return i }, N.prototype.wh = function (t, i, n, e) { var r, s, o, u, c, a, f, l, r = this, s = r.toJSON(); if (t && Pt(r.name(), n, s, !0), i && (o = e.dxfsRecords, !Bt(u = e.slicerStyleNodes, r.name())) && !R(r.name())) { for (a in c = [], s) if (s.hasOwnProperty(a) && "name" !== a && !(0, h.ht)(s[a])) switch (a) { case "selectedItemWithDataStyle": case "selectedItemWithNoDataStyle": case "unSelectedItemWithDataStyle": case "unSelectedItemWithNoDataStyle": case "hoveredSelectedItemWithDataStyle": case "hoveredSelectedItemWithNoDataStyle": case "hoveredUnSelectedItemWithDataStyle": case "hoveredUnSelectedItemWithNoDataStyle": si(s[a]), s[a] && (f = o.cv(s[a])) !== v && c.push(l = { n_: "slicerStyleElement", type: Nt[a], dxfId: f }) }u.push({ name: r.name(), styleElements: c }) } }, N.prototype.yh = function (t, i, n, e, r, s) { var o, u, c, a, f, l, f, h, l, v, d, m, b, b, o = this; if (o.name(t), e && 0 < e.length) for (u = 0, c = e; u < c.length; u++)l = (f = Ht(a = c[u])).type, f = f.dxfId, "function" == typeof o[h = Ot[l]] && (l = new w, (v = n.fv(f)) && (ri(v), Ut(v, s)), l.fromJSON(v), o[h](l)); if (r && 0 < r.length) for (d = 0, m = r; d < m.length; d++)a = m[d], h = Ot[a.type], (b = i.getTableTheme(t)) && (v = new w, ri(b = b[B[h] + p.b1i]()), Ut(b, s), v.fromJSON(b), o[h](v)); i.addSlicerStyle(o) }, N.properties = [D, d, Z, $, Q, X, tt, it, nt, et, rt], g = N, t.SlicerStyle = g, T.prototype.fromJSON = function (e) { var r, t, t, i; e && !o.GC$.isEmptyObject(e) && (r = this, t = e.name, s(t) && (r.name(t), F(t)) ? (t = t.toLocaleLowerCase().replace("timeslicerstyle", "").replace(" ", ""), i = x(t), T.properties.forEach(function (t) { r[t](i[t](), !1) })) : T.properties.forEach(function (t) { var i, n, i = e[t]; t !== D && (n = x(), s(i) && n.fromJSON(i), r[t](n, !1)) })) }, T.prototype.toJSON = function () { var t, i, n, e, t = this, i = F(t.name()) ? { name: t.name() } : t.toJSONInternal(), n = {}; for (e in i) i[e] === u || i[e] === v || o.GC$.isEmptyObject(i[e]) || (n[e] = i[e]); return n }, T.prototype.toJSONInternal = function () { var t, i, n, e, r, s, t = this, i = {}, n = "toJSON"; for (i[D] = t.name(), e = 1, r = f(T.properties); e < r; e++)i[s = T.properties[e]] = t[s]() ? t[s]()[n]() : u; return i }, T.prototype.wh = function (t, i, n, e) { var r, s, o, u, c, a, f, l, r = this, s = r.toJSON(); if (t && Pt(r.name(), n, s, !1), i && (o = e.x15dxfsRecords, !Bt(u = e.timelineStyleNodes, r.name())) && !F(r.name())) { for (a in c = [], s) if (s.hasOwnProperty(a) && "name" !== a && !(0, h.ht)(s[a])) switch (a) { case "selectionLabelStyle": case "timeLevelStyle": case "periodLabel1Style": case "periodLabel2Style": case "selectedTimeBlockStyle": case "unselectedTimeBlockStyle": case "selectedTimeBlockSpaceStyle": si(s[a]), s[a] && (f = o.cv(s[a])) !== v && c.push(l = { n_: "timelineStyleElement", type: Tt[a], dxfId: f }) }u.push({ name: r.name(), styleElements: c }) } }, T.prototype.yh = function (t, i, n, e, r, s) { var o, u, c, a, f, l, f, h, l, v, d, m, b, b, o = this; if (o.name(t), e && 0 < e.length) for (u = 0, c = e; u < c.length; u++)l = (f = Ht(a = c[u])).type, f = f.dxfId, "function" == typeof o[h = It[l]] && (l = new w, (v = n.fv(f)) && (ri(v), Ut(v, s)), l.fromJSON(v), o[h](l)); if (r && 0 < r.length) for (d = 0, m = r; d < m.length; d++)a = m[d], h = It[a.type], (b = i.getTableTheme(t)) && (v = new w, ri(b = b[B[h] + p.b1i]()), Ut(b, s), v.fromJSON(b), o[h](v)); i.addTimelineStyle(o) }, T.properties = [D, d, Z, st, ot, ut, ct, at, ft, lt], S = T, t.TimelineStyle = S, E.prototype.setBorders = function (t) { var i; this[V](t)[G](t)[Y](t)[q](t) }, E.prototype.fromJSON = function (e) { var r; e && !o.GC$.isEmptyObject(e) && (r = this, E.properties.forEach(function (t) { var i, n, i = e[t]; s(i) && (0 <= t.indexOf(p.hdt) ? ((n = k()).fromJSON(i), r[t](n, !1)) : r[t](i, !1)) })) }, E.prototype.toJSON = function () { var n, e, n = this, e = {}; return E.properties.forEach(function (t) { var i = n[t](); n[t].isDefault(i) || (e[t] = i && i.toJSON ? i.toJSON() : i) }), e }, E.properties = [H, U, i, V, G, Y, q, K], w = E, t.SlicerStyleInfo = w, _ = 0, Lt = f(w.properties); _ < Lt; _++)w.prototype[w.properties[_]] = W(w.properties[_]); function Jt(t) { var i, n; return t && 0 !== f(t) ? 0 === t.indexOf(e) ? (n = parseInt(t.replace(e, ""), 10), i = C[e + n]()) : 0 === t.indexOf(r) ? (n = parseInt(t.replace(r, ""), 10), i = C[r + n]()) : C[t] && (i = C[t]()) : i = new w, i } function x(t) { var i, n; return t && 0 !== f(t) ? 0 === t.indexOf(e) ? (n = parseInt(t.replace(e, ""), 10), i = O[e + n]()) : 0 === t.indexOf(r) ? (n = parseInt(t.replace(r, ""), 10), i = O[r + n]()) : O[t] && (i = O[t]()) : i = new w, i } function L(t, i, n) { for (var e = 0; e < L.properties.length; e++)this[L.properties[e]](arguments[e]) } for (L.prototype.fromJSON = function (t) { var i, n, e; if (t && !o.GC$.isEmptyObject(t)) for (i = 0; i < L.properties.length; i++)e = t[n = L.properties[i]], s(e) && (n !== z || "" === e || Vt(e) || (e = l), this[n](e, !1)) }, L.prototype.toJSON = function () { for (var t, i, n, e, t = {}, i = 0; i < L.properties.length; i++)t[L.properties[i]] = this[L.properties[i]](); for (e in n = {}, t) t[e] !== v && t[e] !== u && (n[e] = t[e]); return n }, L.properties = [J, z, M], y = L, t.SlicerBorder = y, kt = function (n, t, i) { return W(n, t, i, function (t) { var i = typeof t; return n === J ? "number" == i && 0 <= t : "string" == i }) }, _ = 0; _ < y.properties.length; _++)y.prototype[y.properties[_]] = kt(y.properties[_], v, v); function k(t, i, n) { return new y(t, i, n) } function zt() { var t, i, t = new y(0, "", ""), i = new w(c, a, n); return i.setBorders(t), i } function R(t) { var i = 0, n = 17, e = 16, r = 17; return -1 < t.indexOf(j + "Light") && 17 === f(t) && (i = parseInt(t[16], 10)), -1 < t.indexOf(j + "Dark") && 16 === f(t) && (i = parseInt(t[15], 10)), -1 < t.indexOf(j + "Other") && 17 === f(t) ? 1 <= (i = parseInt(t[16], 10)) && i <= 2 : 1 <= i && i <= 6 } function F(t) { var i = 0, n = 21, e = 20; return -1 < t.indexOf(vt + "Light") && 21 === f(t) && (i = parseInt(t[20], 10)), 1 <= (i = -1 < t.indexOf(vt + "Dark") && 20 === f(t) ? parseInt(t[19], 10) : i) && i <= 6 } function Vt(t) { return -1 < Ct.indexOf(t) } for (t.isBuildInSlicerStyle = R, t.isBuildInTimelineStyle = F, Rt = function (t, i, n, e) { return W(t, i, n, e) }, _ = 1, Ft = f(g.properties); _ < Ft; _++)g.prototype[g.properties[_]] = Rt(g.properties[_]); for (_ = 1, At = f(S.properties); _ < At; _++)S.prototype[S.properties[_]] = Rt(S.properties[_]); function Gt() { return new g } function Yt() { return new S } function qt(t, i) { t[it](i)[nt](i)[et](i)[rt](i) } function Kt(t, i, n) { var e = Jt(); return e[U](t)[H](i)[P](n), e } function Zt(t, i) { return { degree: 90, stops: [{ position: 0, color: t }, { position: 1, color: i }] } } function $t() { return Zt("#F8E162", "#FCF7F4") } function Qt() { return Zt("#A3BBDF", "#CADEF6") } function Xt() { return Zt("#E8EBEE", "#F8F8FA") } function ti(t) { var i = ht + t; return Mt("Light", t, n, c, k(1, l, i), k(0, "", ""), k(1, l, i), a, i + bt, k(1, l, m), dt, i + pt, k(1, l, b), a, c, k(1, l, b), dt, c, k(1, l, "#E0E0E0"), a, $t(), k(1, l, m)) } function ii(t) { var i = ht + t; return Mt("Dark", t, n, c, k(1, l, i), k(0, "", ""), k(1, l, i), c, i, k(1, l, i), i + gt, i + bt, k(1, l, i + bt), a, "#C0C0C0", k(1, l, "#C0C0C0"), "#959595", "#DFDFDF", k(1, l, "#DFDFDF"), a, $t(), k(1, l, m)) } function ni(t, i) { var n, e, n = ht + i, e = "Light" === t ? Zt(n + bt, n) : Zt(n, n + St); return Wt(t, i, k(1, l, n), n + gt, e, n + mt) } function ei(t) { return t.color === a && 0 === t.style && t.level === v } function ri(t) { var i, n, e, r, s; if (!(0, h.ht)(t)) for (i = 0, n = Object.keys(t); i < n.length; i++)e = n[i], t.hasOwnProperty(e) && !(0, h.ht)(t[e]) && -1 !== e.indexOf(p.hdt) && (ei(r = t[e]) ? t[e] = v : (s = r.style || 1, t[e] = { borderWidth: xt[s], borderStyle: Ct[s], borderColor: r.color })) } function si(t) { var i, n, e, r; if (!(0, h.ht)(t)) for (i = 0, n = Object.keys(t); i < n.length; i++)e = n[i], t.hasOwnProperty(e) && !(0, h.ht)(t[e]) && -1 !== e.indexOf(p.hdt) && (r = t[e], t[e] = new o.LineBorder(r.borderColor, Et[r.borderStyle], v)) } function oi() { } function ui() { } for (g.prototype.name = Rt(D, ""), S.prototype.name = Rt(D, ""), Mt = function (t, i, n, e, r, s, o, u, c, a, f, l, h, v, d, m, b, p, g, S, w, _) { var y, t, i, t, y = Gt(), t = j + t + i; return y[D](t), (i = Jt()).font(n), i.backColor(e), i.setBorders(r), y.wholeSlicerStyle(i), (t = Jt()).borderLeft(s), t.borderTop(s), t.borderRight(s), t.borderBottom(o), y.headerStyle(t), y[$](Kt(u, c, a)), y[Q](Kt(f, l, h)), y[X](Kt(v, d, m)), y[tt](Kt(b, p, g)), qt(y, Kt(S, w, _)), y }, Wt = function (t, i, n, e, r, s) { var o, t, i, t, n, i, t, e, n, i, t, o = Yt(), t = vt + t + i; return o[D](t), (i = x()).backColor(c), i.setBorders(n), o.wholeSlicerStyle(i), (t = x()).font(wt), o.headerStyle(t), (n = x()).font(_t), n.foreColor(e), o[st](n), (i = x()).foreColor(Dt), i.font(yt), o[ot](i), (t = x()).foreColor(Dt), t.font(yt), o[ut](t), (e = x()).foreColor(Dt), e.font(yt), o[ct](e), (n = x()).backColor(r), o[at](n), (i = x()).backColor(jt), o[ft](i), (t = x()).backColor(s), o[lt](t), o }, C = oi, t.SlicerStyles = C, O = ui, t.TimelineStyles = O, I = 1; I <= 6; I++)C["light" + I] = function (t) { return function () { return ti(t) } }(I), C["dark" + I] = function (t) { return function () { return ii(t) } }(I), O["light" + I] = function (t) { return function () { return ni("Light", t) } }(I), O["dark" + I] = function (t) { return function () { return ni("Dark", t) } }(I); C.other1 = function () { return Mt("Other", 1, n, c, k(1, l, "#808080"), k(0, "", ""), k(1, l, "#A6A6A6"), a, "#BFBFBF", k(1, l, m), a, "#D9D9D9", k(1, l, b), a, c, k(1, l, b), "#959595", c, k(1, l, "#E0E0E0"), a, $t(), k(1, l, m)) }, C.other2 = function () { return Mt("Other", 2, n, c, k(1, l, "#4F81BD"), k(0, "", ""), k(1, l, "#4F81BD"), a, Qt(), k(1, l, m), dt, Qt(), k(1, l, b), a, Xt(), k(1, l, b), dt, Xt(), k(1, l, "#E0E0E0"), a, $t(), k(1, l, m)) }, o.GC$.extend(o.StyleManager.prototype, { addSlicerStyle: function (t) { var i = this, n, n; (n = (n = i.x1i) || (i.x1i = {}))[t.name()] = t }, getSlicerStyle: function (t) { var i, n, e, r, s, i = this, n = i.x1i; return n = n || (i.x1i = {}), R[t.toUpperCase()] ? n[e = t.substr(11).toLowerCase()] ? n[e] : (r = new g, s = C[e], r.name(s.name()), o.GC$.each(g.properties, function (t, i) { r[i](s[i]()) }), i.addSlicerStyle(r), r) : n[t] }, addTimelineStyle: function (t) { var i = this, n, n; (n = (n = i.L1i) || (i.L1i = {}))[t.name()] = t }, getTimelineStyle: function (t) { var i, n, e, r, s, i = this, n = i.L1i; return n = n || (i.L1i = {}), F[t.toUpperCase()] ? n[e = t.substr(13).toLowerCase()] ? n[e] : (r = new S, s = n[e], r.name(s.name()), o.GC$.each(S.properties, function (t, i) { r[i](s[i]()) }), i.addTimelineStyle(r), r) : n[t] } }) }, "./dist/plugins/slicer/slicer-ui/data/slicer-shape-data.js": function (t, i, n) { var e, r, s, n, o, u, c, a; function f() { var t = null !== c && c.apply(this, arguments) || this; return t.ttV = 6, t } function l() { return null !== a && a.apply(this, arguments) || this } e = this && this.__extends || (u = function (t, i) { return (u = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array ? function (t, i) { t.__proto__ = i } : function (t, i) { for (var n in i) Object.prototype.hasOwnProperty.call(i, n) && (t[n] = i[n]) }))(t, i) }, function (t, i) { if ("function" != typeof i && null !== i) throw new TypeError("Class extends value " + String(i) + " is not a constructor or null"); function n() { this.constructor = t } u(t, i), t.prototype = null === i ? Object.create(i) : (n.prototype = i.prototype, new n) }), Object.defineProperty(i, "__esModule", { value: !0 }), i.ItemSlicerShapeData = i.SlicerShapeDataBase = void 0, r = n("Shapes"), s = n("./dist/plugins/slicer/slicer-base/slicer-base.js"), c = r.FormControlShapeData, e(f, c), f.prototype.FromSJSOOModel = function (t, i) { r.ShapeBaseData.prototype.FromSJSOOModel.call(this, t, i), this.FromSJSCT_ShapeBase(t) }, f.prototype.FromOOModel = function (t) { r.ShapeBaseData.prototype.FromOOModel.call(this, t), this.FromCT_ShapeBase(t.graphicFrame) }, f.prototype.ToSJSOOModel = function (t, i) { r.ShapeBaseData.prototype.ToSJSOOModel.call(this, t, i), t.graphicFrame = this.ToSJSCT_ShapeBase(i) }, f.prototype.ToOOModel = function (t, i) { var t = r.ShapeBaseData.prototype.ToOOModel.call(this, t, i); return t.graphicFrame = this.ToCT_ShapeBase(), t }, f.prototype.FromSJSCT_ShapeBase = function (t) { var i; t && ((i = this).I4e = t, i.FromSJSCT_GraphicFrameNonVisual(t.nvGraphicFramePr), i.stV({ xfrm: t.xfrm, prstGeom: { prst: "rect" } })) }, f.prototype.FromCT_ShapeBase = function (t) { var i; t && ((i = this).S4e = t, i.FromCT_GraphicFrameNonVisual(t.nvGraphicFramePr), i.FromCT_ShapeProperties({ xfrm: t.xfrm, prstGeom: { prst: r.ST_ShapeType.rect } })) }, f.prototype.ToSJSCT_ShapeBase = function (t) { return {} }, f.prototype.ToCT_ShapeBase = function () { return {} }, f.prototype.FromSJSCT_GraphicFrameNonVisual = function (t) { t && (this.FromSJSCT_NonVisualDrawingProps(t.cNvPr), this.FromSJSCT_NonVisualDrawingGraphicFrameProps(t.cNvGraphicFramePr)) }, f.prototype.FromCT_GraphicFrameNonVisual = function (t) { t && (this.FromCT_NonVisualDrawingProps(t.cNvPr), this.FromCT_NonVisualDrawingGraphicFrameProps(t.cNvGraphicFramePr)) }, f.prototype.ToSJSCT_GraphicFrameNonVisual = function () { var t = {}; return t.cNvPr = this.ToSJSCT_NonVisualDrawingProps(), t.cNvGraphicFramePr = this.ToSJSCT_NonVisualDrawingGraphicFrameProps(), t }, f.prototype.ToCT_GraphicFrameNonVisual = function () { var t, i, t, i; return { cNvPr: this.ToCT_NonVisualDrawingProps({}), cNvGraphicFramePr: this.ToCT_NonVisualDrawingGraphicFrameProps() } }, f.prototype.FromSJSCT_NonVisualDrawingGraphicFrameProps = function (t) { this.FromSJSAG_Locking(t && t.graphicFrameLocks) }, f.prototype.FromCT_NonVisualDrawingGraphicFrameProps = function (t) { this.FromAG_Locking(t && t.graphicFrameLocks) }, f.prototype.ToSJSCT_NonVisualDrawingGraphicFrameProps = function () { return { graphicFrameLocks: this.ToSJSAG_Locking({}) } }, f.prototype.ToCT_NonVisualDrawingGraphicFrameProps = function () { return { graphicFrameLocks: this.ToAG_Locking({}) } }, i.SlicerShapeDataBase = n = f, e(l, a = n), l.prototype.ToSJSCT_ShapeBase = function (t) { var i, n, i = this, n = {}; return n.nvGraphicFramePr = i.ToSJSCT_GraphicFrameNonVisual(), n.xfrm = i.ToSJSCT_Transform2D(), n.graphic = { graphicData: { uri: "http://schemas.microsoft.com/office/drawing/2010/slicer", slicer: { r_: [38], name: (0, s.encodeSlicerDrawingName)(i.Name) } } }, n.nvGraphicFramePr.cNvPr.id = "2", n }, l.prototype.ToCT_ShapeBase = function () { var t, i, n, t = this.ToCT_GraphicFrameNonVisual(), i = this.ToCT_Transform2D(), n; return { shapeType: r.CT_ShapeType.CT_SlicerShape, nvGraphicFramePr: t, xfrm: i, graphic: { graphicData: { slicer: {} } } } }, i.ItemSlicerShapeData = l }, "./dist/plugins/slicer/slicer-ui/data/slicer-shape.js": function (t, i, n) { var e, r, o, c, a, n, s, u, f, l; function h(t, i) { for (var n, e, n = 1, e = i; (0, c.o1i)(t, e);)e = i + " " + n, n++; return e } function v(t, i, n, e, r, s, o) { var t = f.call(this, t, i, n, e, r, s, o) || this; return t.ttV = 6, t.yCe = "This shape represents a table slicer. Table slicers are supported in Excel or later. If the shape was modified in an earlier version of Excel, or if the workbook was saved in Excel 2007 or earlier, the slicer can't be used.", t } function d(t, i, n, e, r, s, o) { var i, u, i = l.call(this, t, i, void 0, e, r, s, o) || this; return i.ma = c.SlicerType.table, (u = i).ytV = new a.ItemSlicerShapeData(t, u.ytV.Name, "itemSlicer", e || 0, r || 0, s || 200, o || 160), n && u.tnV(), i } function m(t, i) { var n, e, r, n = t.slicers && t.slicers.all(); if (n) for (e = 0; e < n.length; e++)if (r = n[e], (0, c.nSe)(r.GQt.RQt, i)) return r } e = this && this.__extends || (u = function (t, i) { return (u = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array ? function (t, i) { t.__proto__ = i } : function (t, i) { for (var n in i) Object.prototype.hasOwnProperty.call(i, n) && (t[n] = i[n]) }))(t, i) }, function (t, i) { if ("function" != typeof i && null !== i) throw new TypeError("Class extends value " + String(i) + " is not a constructor or null"); function n() { this.constructor = t } u(t, i), t.prototype = null === i ? Object.cr