@univerjs/core 0.2.7 → 0.2.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +8 -8
- package/lib/es/index.js +987 -185
- package/lib/types/common/equal.d.ts +15 -4
- package/lib/types/common/interceptor.d.ts +1 -2
- package/lib/types/{types/interfaces/i-freeze.d.ts → common/mixin.d.ts} +9 -5
- package/lib/types/common/unit.d.ts +2 -2
- package/lib/types/docs/data-model/document-data-model.d.ts +2 -4
- package/lib/types/docs/data-model/empty-snapshot.d.ts +0 -1
- package/lib/types/docs/data-model/json-x/json-x.d.ts +0 -1
- package/lib/types/docs/data-model/preset-list-type.d.ts +0 -1
- package/lib/types/docs/data-model/replacement.d.ts +0 -1
- package/lib/types/docs/data-model/text-x/action-iterator.d.ts +0 -1
- package/lib/types/docs/data-model/text-x/action-types.d.ts +0 -1
- package/lib/types/docs/data-model/text-x/apply-utils/common.d.ts +0 -1
- package/lib/types/docs/data-model/text-x/apply-utils/delete-apply.d.ts +0 -1
- package/lib/types/docs/data-model/text-x/apply-utils/insert-apply.d.ts +0 -1
- package/lib/types/docs/data-model/text-x/apply-utils/update-apply.d.ts +0 -1
- package/lib/types/docs/data-model/text-x/apply.d.ts +0 -1
- package/lib/types/docs/data-model/text-x/text-x.d.ts +0 -1
- package/lib/types/docs/data-model/text-x/transform-utils.d.ts +0 -1
- package/lib/types/docs/data-model/text-x/utils.d.ts +0 -1
- package/lib/types/index.d.ts +5 -2
- package/lib/types/observer/observable.d.ts +0 -1
- package/lib/types/services/__tests__/index.d.ts +0 -1
- package/lib/types/services/authz-io/authz-io-local.service.d.ts +2 -3
- package/lib/types/services/authz-io/type.d.ts +0 -1
- package/lib/types/services/command/command.service.d.ts +0 -1
- package/lib/types/services/config/config.service.d.ts +0 -1
- package/lib/types/services/context/context.service.d.ts +0 -1
- package/lib/types/services/error/error.service.d.ts +0 -1
- package/lib/types/services/instance/instance.service.d.ts +0 -1
- package/lib/types/services/lifecycle/lifecycle.d.ts +5 -1
- package/lib/types/services/lifecycle/lifecycle.service.d.ts +0 -1
- package/lib/types/services/locale/locale.service.d.ts +0 -1
- package/lib/types/services/log/log.service.d.ts +0 -1
- package/lib/types/services/permission/permission.service.d.ts +0 -1
- package/lib/types/services/permission/type.d.ts +2 -3
- package/lib/types/services/plugin/plugin-override.d.ts +0 -1
- package/lib/types/services/plugin/plugin.d.ts +0 -1
- package/lib/types/services/plugin/plugin.service.d.ts +0 -1
- package/lib/types/services/resource-loader/resource-loader.service.d.ts +3 -6
- package/lib/types/services/resource-loader/type.d.ts +4 -7
- package/lib/types/services/resource-manager/resource-manager.service.d.ts +4 -5
- package/lib/types/services/resource-manager/type.d.ts +9 -6
- package/lib/types/services/snapshot/__tests__/snapshot-mock.d.ts +1 -2
- package/lib/types/services/snapshot/snapshot-server.service.d.ts +0 -1
- package/lib/types/services/snapshot/snapshot-transform.d.ts +1 -2
- package/lib/types/services/snapshot/snapshot-utils.d.ts +1 -4
- package/lib/types/services/theme/theme.service.d.ts +0 -1
- package/lib/types/services/undoredo/undoredo.service.d.ts +1 -2
- package/lib/types/services/user-manager/const.d.ts +0 -1
- package/lib/types/shared/after-init-apply.d.ts +0 -1
- package/lib/types/shared/check-if-move.d.ts +1 -2
- package/lib/types/shared/clipboard.d.ts +0 -1
- package/lib/types/shared/color/color.d.ts +1 -2
- package/lib/types/shared/common.d.ts +2 -5
- package/lib/types/shared/compare.d.ts +0 -1
- package/lib/types/shared/doc-tool.d.ts +0 -1
- package/lib/types/shared/index.d.ts +1 -0
- package/lib/types/shared/lifecycle.d.ts +0 -1
- package/lib/types/shared/lru/lru-map.d.ts +0 -1
- package/lib/types/shared/numfmt.d.ts +2 -0
- package/lib/types/shared/object-matrix-query.d.ts +1 -2
- package/lib/types/shared/object-matrix.d.ts +7 -2
- package/lib/types/shared/range.d.ts +1 -2
- package/lib/types/shared/rectangle.d.ts +1 -2
- package/lib/types/shared/rxjs.d.ts +0 -1
- package/lib/types/shared/tools.d.ts +1 -3
- package/lib/types/shared/types.d.ts +4 -13
- package/lib/types/{types/interfaces/i-service-data.d.ts → sheets/__tests__/cell-data.spec.d.ts} +1 -2
- package/lib/types/sheets/__tests__/create-core-test-bed.d.ts +1 -2
- package/lib/types/sheets/column-manager.d.ts +2 -3
- package/lib/types/sheets/empty-snapshot.d.ts +1 -2
- package/lib/types/sheets/range.d.ts +2 -2
- package/lib/types/sheets/row-manager.d.ts +1 -2
- package/lib/types/sheets/sheet-snapshot-utils.d.ts +1 -2
- package/lib/types/sheets/styles.d.ts +2 -2
- package/lib/types/sheets/typedef.d.ts +451 -0
- package/lib/types/sheets/util.d.ts +3 -0
- package/lib/types/sheets/view-model.d.ts +2 -3
- package/lib/types/sheets/workbook.d.ts +13 -5
- package/lib/types/sheets/worksheet.d.ts +11 -2
- package/lib/types/slides/slide-model.d.ts +0 -2
- package/lib/types/types/const/const.d.ts +1 -1
- package/lib/types/types/enum/locale-type.d.ts +3 -1
- package/lib/types/types/enum/text-style.d.ts +1 -1
- package/lib/types/types/interfaces/i-cell-custom-render.d.ts +2 -3
- package/lib/types/types/interfaces/i-cell-validation-data.d.ts +0 -1
- package/lib/types/types/interfaces/i-data-validation.d.ts +1 -2
- package/lib/types/types/interfaces/i-document-data-interceptor.d.ts +0 -1
- package/lib/types/types/interfaces/i-document-data.d.ts +2 -5
- package/lib/types/types/interfaces/i-placeholder.d.ts +0 -1
- package/lib/types/types/interfaces/i-shape-properties.d.ts +0 -1
- package/lib/types/types/interfaces/i-slide-data.d.ts +5 -4
- package/lib/types/types/interfaces/i-style-data.d.ts +0 -1
- package/lib/types/types/interfaces/index.d.ts +0 -11
- package/lib/types/univer.d.ts +14 -3
- package/lib/umd/index.js +8 -8
- package/package.json +7 -6
- package/lib/types/common/type-util.d.ts +0 -16
- package/lib/types/common/type-utils.d.ts +0 -16
- package/lib/types/types/interfaces/i-cell-data.d.ts +0 -67
- package/lib/types/types/interfaces/i-column-data.d.ts +0 -15
- package/lib/types/types/interfaces/i-extra-model-data.d.ts +0 -27
- package/lib/types/types/interfaces/i-range.d.ts +0 -208
- package/lib/types/types/interfaces/i-row-data.d.ts +0 -27
- package/lib/types/types/interfaces/i-selection-data.d.ts +0 -59
- package/lib/types/types/interfaces/i-univer-data.d.ts +0 -14
- package/lib/types/types/interfaces/i-workbook-data.d.ts +0 -40
- package/lib/types/types/interfaces/i-worksheet-data.d.ts +0 -55
- package/lib/types/types/interfaces/i-worksheet-order-data.d.ts +0 -17
- /package/lib/types/{types/interfaces/__tests__/i-cell-data.spec.d.ts → services/__tests__/resources.spec.d.ts} +0 -0
package/lib/es/index.js
CHANGED
|
@@ -728,13 +728,13 @@ const pad2 = /* @__PURE__ */ __name((v) => v.length === 1 ? `0${v}` : v, "pad2")
|
|
|
728
728
|
if (obj != null)
|
|
729
729
|
return "r" in obj ? obj : "l" in obj ? hsl2Rgb(obj) : hsv2Rgb(obj);
|
|
730
730
|
}, "toRgbColor"), hue2Rgb = /* @__PURE__ */ __name((p, q, t) => (t < 0 && (t += 1), t > 1 && (t -= 1), t < 1 / 6 ? p + (q - p) * 6 * t : t < 1 / 2 ? q : t < 2 / 3 ? p + (q - p) * (2 / 3 - t) * 6 : p), "hue2Rgb"), hsl2Rgb = /* @__PURE__ */ __name((color) => {
|
|
731
|
-
let { h, s, l
|
|
732
|
-
h /= 360, s /= 100,
|
|
731
|
+
let { h, s, l } = color;
|
|
732
|
+
h /= 360, s /= 100, l /= 100;
|
|
733
733
|
let r = 0, g = 0, b = 0;
|
|
734
734
|
if (s === 0)
|
|
735
|
-
r = g = b =
|
|
735
|
+
r = g = b = l;
|
|
736
736
|
else {
|
|
737
|
-
const q =
|
|
737
|
+
const q = l < 0.5 ? l * (1 + s) : l + s - l * s, p = 2 * l - q;
|
|
738
738
|
r = hue2Rgb(p, q, h + 1 / 3), g = hue2Rgb(p, q, h), b = hue2Rgb(p, q, h - 1 / 3);
|
|
739
739
|
}
|
|
740
740
|
const IRgbColor = {
|
|
@@ -755,13 +755,13 @@ const pad2 = /* @__PURE__ */ __name((v) => v.length === 1 ? `0${v}` : v, "pad2")
|
|
|
755
755
|
}, "hsv2Rgb"), rgb2Hsl = /* @__PURE__ */ __name((color) => {
|
|
756
756
|
let { r, g, b } = color;
|
|
757
757
|
r /= 255, g /= 255, b /= 255;
|
|
758
|
-
const max = Math.max(r, g, b), min = Math.min(r, g, b),
|
|
758
|
+
const max = Math.max(r, g, b), min = Math.min(r, g, b), l = (max + min) / 2;
|
|
759
759
|
let h, s;
|
|
760
760
|
if (max === min)
|
|
761
761
|
h = s = 0;
|
|
762
762
|
else {
|
|
763
763
|
const d = max - min;
|
|
764
|
-
switch (s =
|
|
764
|
+
switch (s = l > 0.5 ? d / (2 - max - min) : d / (max + min), max) {
|
|
765
765
|
case r:
|
|
766
766
|
h = (g - b) / d + (g < b ? 6 : 0);
|
|
767
767
|
break;
|
|
@@ -777,7 +777,7 @@ const pad2 = /* @__PURE__ */ __name((v) => v.length === 1 ? `0${v}` : v, "pad2")
|
|
|
777
777
|
const hslColor = {
|
|
778
778
|
h: Math.round(h * 360),
|
|
779
779
|
s: Math.round(s * 100),
|
|
780
|
-
l: Math.round(
|
|
780
|
+
l: Math.round(l * 100)
|
|
781
781
|
};
|
|
782
782
|
return color.a !== void 0 && (hslColor.a = color.a), hslColor;
|
|
783
783
|
}, "rgb2Hsl"), rgb2Hsv = /* @__PURE__ */ __name((color) => {
|
|
@@ -846,7 +846,7 @@ function isCellV(cell) {
|
|
|
846
846
|
return cell != null && (typeof cell == "string" || typeof cell == "number" || typeof cell == "boolean");
|
|
847
847
|
}
|
|
848
848
|
__name(isCellV, "isCellV");
|
|
849
|
-
var DocStyleType = /* @__PURE__ */ ((DocStyleType2) => (DocStyleType2[DocStyleType2.character = 0] = "character", DocStyleType2[DocStyleType2.paragraph = 1] = "paragraph", DocStyleType2[DocStyleType2.table = 2] = "table", DocStyleType2[DocStyleType2.numbering = 3] = "numbering", DocStyleType2))(DocStyleType || {}), FollowNumberWithType = /* @__PURE__ */ ((FollowNumberWithType2) => (FollowNumberWithType2[FollowNumberWithType2.TAB = 0] = "TAB", FollowNumberWithType2[FollowNumberWithType2.SPACE = 1] = "SPACE", FollowNumberWithType2[FollowNumberWithType2.NOTHING = 2] = "NOTHING", FollowNumberWithType2))(FollowNumberWithType || {}), GlyphType = /* @__PURE__ */ ((GlyphType2) => (GlyphType2[GlyphType2.BULLET = 0] = "BULLET", GlyphType2[GlyphType2.NONE = 1] = "NONE", GlyphType2[GlyphType2.DECIMAL = 2] = "DECIMAL", GlyphType2[GlyphType2.DECIMAL_ZERO = 3] = "DECIMAL_ZERO", GlyphType2[GlyphType2.UPPER_LETTER = 4] = "UPPER_LETTER", GlyphType2[GlyphType2.LOWER_LETTER = 5] = "LOWER_LETTER", GlyphType2[GlyphType2.UPPER_ROMAN = 6] = "UPPER_ROMAN", GlyphType2[GlyphType2.LOWER_ROMAN = 7] = "LOWER_ROMAN", GlyphType2[GlyphType2.ORDINAL = 8] = "ORDINAL", GlyphType2[GlyphType2.CARDINAL_TEXT = 9] = "CARDINAL_TEXT", GlyphType2[GlyphType2.ORDINAL_TEXT = 10] = "ORDINAL_TEXT", GlyphType2[GlyphType2.HEX = 11] = "HEX", GlyphType2[GlyphType2.CHICAGO = 12] = "CHICAGO", GlyphType2[GlyphType2.IDEOGRAPH_DIGITAL = 13] = "IDEOGRAPH_DIGITAL", GlyphType2[GlyphType2.JAPANESE_COUNTING = 14] = "JAPANESE_COUNTING", GlyphType2[GlyphType2.AIUEO = 15] = "AIUEO", GlyphType2[GlyphType2.IROHA = 16] = "IROHA", GlyphType2[GlyphType2.DECIMAL_FULL_WIDTH = 17] = "DECIMAL_FULL_WIDTH", GlyphType2[GlyphType2.DECIMAL_HALF_WIDTH = 18] = "DECIMAL_HALF_WIDTH", GlyphType2[GlyphType2.JAPANESE_LEGAL = 19] = "JAPANESE_LEGAL", GlyphType2[GlyphType2.JAPANESE_DIGITAL_TEN_THOUSAND = 20] = "JAPANESE_DIGITAL_TEN_THOUSAND", GlyphType2[GlyphType2.DECIMAL_ENCLOSED_CIRCLE = 21] = "DECIMAL_ENCLOSED_CIRCLE", GlyphType2[GlyphType2.DECIMAL_FULL_WIDTH2 = 22] = "DECIMAL_FULL_WIDTH2", GlyphType2[GlyphType2.AIUEO_FULL_WIDTH = 23] = "AIUEO_FULL_WIDTH", GlyphType2[GlyphType2.IROHA_FULL_WIDTH = 24] = "IROHA_FULL_WIDTH", GlyphType2[GlyphType2.GANADA = 25] = "GANADA", GlyphType2[GlyphType2.CHOSUNG = 26] = "CHOSUNG", GlyphType2[GlyphType2.DECIMAL_ENCLOSED_FULLSTOP = 27] = "DECIMAL_ENCLOSED_FULLSTOP", GlyphType2[GlyphType2.DECIMAL_ENCLOSED_PAREN = 28] = "DECIMAL_ENCLOSED_PAREN", GlyphType2[GlyphType2.DECIMAL_ENCLOSED_CIRCLE_CHINESE = 29] = "DECIMAL_ENCLOSED_CIRCLE_CHINESE", GlyphType2[GlyphType2.IDEOGRAPH_ENCLOSED_CIRCLE = 30] = "IDEOGRAPH_ENCLOSED_CIRCLE", GlyphType2[GlyphType2.IDEOGRAPH_TRADITIONAL = 31] = "IDEOGRAPH_TRADITIONAL", GlyphType2[GlyphType2.IDEOGRAPH_ZODIAC = 32] = "IDEOGRAPH_ZODIAC", GlyphType2[GlyphType2.IDEOGRAPH_ZODIAC_TRADITIONAL = 33] = "IDEOGRAPH_ZODIAC_TRADITIONAL", GlyphType2[GlyphType2.TAIWANESE_COUNTING = 34] = "TAIWANESE_COUNTING", GlyphType2[GlyphType2.IDEOGRAPH_LEGAL_TRADITIONAL = 35] = "IDEOGRAPH_LEGAL_TRADITIONAL", GlyphType2[GlyphType2.TAIWANESE_COUNTING_THOUSAND = 36] = "TAIWANESE_COUNTING_THOUSAND", GlyphType2[GlyphType2.TAIWANESE_DIGITAL = 37] = "TAIWANESE_DIGITAL", GlyphType2[GlyphType2.CHINESE_COUNTING = 38] = "CHINESE_COUNTING", GlyphType2[GlyphType2.CHINESE_LEGAL_SIMPLIFIED = 39] = "CHINESE_LEGAL_SIMPLIFIED", GlyphType2[GlyphType2.CHINESE_COUNTING_THOUSAND = 40] = "CHINESE_COUNTING_THOUSAND", GlyphType2[GlyphType2.KOREAN_DIGITAL = 41] = "KOREAN_DIGITAL", GlyphType2[GlyphType2.KOREAN_COUNTING = 42] = "KOREAN_COUNTING", GlyphType2[GlyphType2.KOREAN_LEGAL = 43] = "KOREAN_LEGAL", GlyphType2[GlyphType2.KOREAN_DIGITAL2 = 44] = "KOREAN_DIGITAL2", GlyphType2[GlyphType2.VIETNAMESE_COUNTING = 45] = "VIETNAMESE_COUNTING", GlyphType2[GlyphType2.RUSSIAN_LOWER = 46] = "RUSSIAN_LOWER", GlyphType2[GlyphType2.RUSSIAN_UPPER = 47] = "RUSSIAN_UPPER", GlyphType2[GlyphType2.NUMBER_IN_DASH = 48] = "NUMBER_IN_DASH", GlyphType2[GlyphType2.HEBREW1 = 49] = "HEBREW1", GlyphType2[GlyphType2.HEBREW2 = 50] = "HEBREW2", GlyphType2[GlyphType2.ARABIC_ALPHA = 51] = "ARABIC_ALPHA", GlyphType2[GlyphType2.ARABIC_ABJAD = 52] = "ARABIC_ABJAD", GlyphType2[GlyphType2.HINDI_VOWELS = 53] = "HINDI_VOWELS", GlyphType2[GlyphType2.HINDI_CONSONANTS = 54] = "HINDI_CONSONANTS", GlyphType2[GlyphType2.HINDI_NUMBERS = 55] = "HINDI_NUMBERS", GlyphType2[GlyphType2.HINDI_COUNTING = 56] = "HINDI_COUNTING", GlyphType2[GlyphType2.THAI_LETTERS = 57] = "THAI_LETTERS", GlyphType2[GlyphType2.THAI_NUMBERS = 58] = "THAI_NUMBERS", GlyphType2[GlyphType2.THAI_COUNTING = 59] = "THAI_COUNTING", GlyphType2[GlyphType2.CUSTOM = 60] = "CUSTOM", GlyphType2))(GlyphType || {}), BulletAlignment = /* @__PURE__ */ ((BulletAlignment2) => (BulletAlignment2[BulletAlignment2.BULLET_ALIGNMENT_UNSPECIFIED = 0] = "BULLET_ALIGNMENT_UNSPECIFIED", BulletAlignment2[BulletAlignment2.START = 1] = "START", BulletAlignment2[BulletAlignment2.CENTER = 2] = "CENTER", BulletAlignment2[BulletAlignment2.END = 3] = "END", BulletAlignment2[BulletAlignment2.BOTH = 4] = "BOTH", BulletAlignment2))(BulletAlignment || {}), CustomRangeType = /* @__PURE__ */ ((CustomRangeType2) => (CustomRangeType2[CustomRangeType2.HYPERLINK = 0] = "HYPERLINK", CustomRangeType2[CustomRangeType2.FIELD = 1] = "FIELD", CustomRangeType2[CustomRangeType2.SDT = 2] = "SDT", CustomRangeType2[CustomRangeType2.BOOKMARK = 3] = "BOOKMARK", CustomRangeType2[CustomRangeType2.COMMENT = 4] = "COMMENT", CustomRangeType2[CustomRangeType2.CUSTOM = 5] = "CUSTOM", CustomRangeType2[CustomRangeType2.MENTION = 6] = "MENTION", CustomRangeType2[CustomRangeType2.UNI_FORMULA = 7] = "UNI_FORMULA", CustomRangeType2))(CustomRangeType || {}), CustomDecorationType = /* @__PURE__ */ ((CustomDecorationType2) => (CustomDecorationType2[CustomDecorationType2.COMMENT = 0] = "COMMENT", CustomDecorationType2))(CustomDecorationType || {}), BlockType = /* @__PURE__ */ ((BlockType2) => (BlockType2[BlockType2.DRAWING = 0] = "DRAWING", BlockType2[BlockType2.CUSTOM = 1] = "CUSTOM", BlockType2))(BlockType || {}), DocumentFlavor = /* @__PURE__ */ ((DocumentFlavor2) => (DocumentFlavor2[DocumentFlavor2.TRADITIONAL = 0] = "TRADITIONAL", DocumentFlavor2[DocumentFlavor2.MODERN = 1] = "MODERN", DocumentFlavor2))(DocumentFlavor || {}), GridType = /* @__PURE__ */ ((GridType2) => (GridType2[GridType2.DEFAULT = 0] = "DEFAULT", GridType2[GridType2.LINES = 1] = "LINES", GridType2[GridType2.LINES_AND_CHARS = 2] = "LINES_AND_CHARS", GridType2[GridType2.SNAP_TO_CHARS = 3] = "SNAP_TO_CHARS", GridType2))(GridType || {}), SectionType = /* @__PURE__ */ ((SectionType2) => (SectionType2[SectionType2.SECTION_TYPE_UNSPECIFIED = 0] = "SECTION_TYPE_UNSPECIFIED", SectionType2[SectionType2.CONTINUOUS = 1] = "CONTINUOUS", SectionType2[SectionType2.NEXT_PAGE = 2] = "NEXT_PAGE", SectionType2[SectionType2.EVEN_PAGE = 3] = "EVEN_PAGE", SectionType2[SectionType2.ODD_PAGE = 4] = "ODD_PAGE", SectionType2))(SectionType || {}), ColumnSeparatorType = /* @__PURE__ */ ((ColumnSeparatorType2) => (ColumnSeparatorType2[ColumnSeparatorType2.COLUMN_SEPARATOR_STYLE_UNSPECIFIED = 0] = "COLUMN_SEPARATOR_STYLE_UNSPECIFIED", ColumnSeparatorType2[ColumnSeparatorType2.NONE = 1] = "NONE", ColumnSeparatorType2[ColumnSeparatorType2.BETWEEN_EACH_COLUMN = 2] = "BETWEEN_EACH_COLUMN", ColumnSeparatorType2))(ColumnSeparatorType || {}), TextDirectionType = /* @__PURE__ */ ((TextDirectionType2) => (TextDirectionType2[TextDirectionType2.NORMAL = 0] = "NORMAL", TextDirectionType2[TextDirectionType2.TBRL = 1] = "TBRL", TextDirectionType2[TextDirectionType2.LRTBV = 2] = "LRTBV", TextDirectionType2))(TextDirectionType || {}), ParagraphElementType = /* @__PURE__ */ ((ParagraphElementType2) => (ParagraphElementType2[ParagraphElementType2.TEXT_RUN = 0] = "TEXT_RUN", ParagraphElementType2[ParagraphElementType2.AUTO_TEXT = 1] = "AUTO_TEXT", ParagraphElementType2[ParagraphElementType2.PAGE_BREAK = 2] = "PAGE_BREAK", ParagraphElementType2[ParagraphElementType2.COLUMN_BREAK = 3] = "COLUMN_BREAK", ParagraphElementType2[ParagraphElementType2.FOOT_NOTE_REFERENCE = 4] = "FOOT_NOTE_REFERENCE", ParagraphElementType2[ParagraphElementType2.HORIZONTAL_RULE = 5] = "HORIZONTAL_RULE", ParagraphElementType2[ParagraphElementType2.EQUATION = 6] = "EQUATION", ParagraphElementType2[ParagraphElementType2.DRAWING = 7] = "DRAWING", ParagraphElementType2[ParagraphElementType2.PERSON = 8] = "PERSON", ParagraphElementType2[ParagraphElementType2.RICH_LINK = 9] = "RICH_LINK", ParagraphElementType2))(ParagraphElementType || {}), WrapTextType = /* @__PURE__ */ ((WrapTextType2) => (WrapTextType2[WrapTextType2.BOTH_SIDES = 0] = "BOTH_SIDES", WrapTextType2[WrapTextType2.LEFT = 1] = "LEFT", WrapTextType2[WrapTextType2.RIGHT = 2] = "RIGHT", WrapTextType2[WrapTextType2.LARGEST = 3] = "LARGEST", WrapTextType2))(WrapTextType || {}), PositionedObjectLayoutType = /* @__PURE__ */ ((PositionedObjectLayoutType2) => (PositionedObjectLayoutType2[PositionedObjectLayoutType2.INLINE = 0] = "INLINE", PositionedObjectLayoutType2[PositionedObjectLayoutType2.WRAP_NONE = 1] = "WRAP_NONE", PositionedObjectLayoutType2[PositionedObjectLayoutType2.WRAP_POLYGON = 2] = "WRAP_POLYGON", PositionedObjectLayoutType2[PositionedObjectLayoutType2.WRAP_SQUARE = 3] = "WRAP_SQUARE", PositionedObjectLayoutType2[PositionedObjectLayoutType2.WRAP_THROUGH = 4] = "WRAP_THROUGH", PositionedObjectLayoutType2[PositionedObjectLayoutType2.WRAP_TIGHT = 5] = "WRAP_TIGHT", PositionedObjectLayoutType2[PositionedObjectLayoutType2.WRAP_TOP_AND_BOTTOM = 6] = "WRAP_TOP_AND_BOTTOM", PositionedObjectLayoutType2))(PositionedObjectLayoutType || {}), NamedStyleType = /* @__PURE__ */ ((NamedStyleType2) => (NamedStyleType2[NamedStyleType2.NAMED_STYLE_TYPE_UNSPECIFIED = 0] = "NAMED_STYLE_TYPE_UNSPECIFIED", NamedStyleType2[NamedStyleType2.NORMAL_TEXT = 1] = "NORMAL_TEXT", NamedStyleType2[NamedStyleType2.TITLE = 2] = "TITLE", NamedStyleType2[NamedStyleType2.SUBTITLE = 3] = "SUBTITLE", NamedStyleType2[NamedStyleType2.HEADING_1 = 4] = "HEADING_1", NamedStyleType2[NamedStyleType2.HEADING_2 = 5] = "HEADING_2", NamedStyleType2[NamedStyleType2.HEADING_3 = 6] = "HEADING_3", NamedStyleType2[NamedStyleType2.HEADING_4 = 7] = "HEADING_4", NamedStyleType2[NamedStyleType2.HEADING_5 = 8] = "HEADING_5", NamedStyleType2[NamedStyleType2.HEADING_6 = 9] = "HEADING_6", NamedStyleType2))(NamedStyleType || {}), SpacingRule = /* @__PURE__ */ ((SpacingRule2) => (SpacingRule2[SpacingRule2.AUTO = 0] = "AUTO", SpacingRule2[SpacingRule2.AT_LEAST = 1] = "AT_LEAST", SpacingRule2[SpacingRule2.EXACT = 2] = "EXACT", SpacingRule2))(SpacingRule || {}), DashStyleType = /* @__PURE__ */ ((DashStyleType2) => (DashStyleType2[DashStyleType2.DASH_STYLE_UNSPECIFIED = 0] = "DASH_STYLE_UNSPECIFIED", DashStyleType2[DashStyleType2.SOLID = 1] = "SOLID", DashStyleType2[DashStyleType2.DOT = 2] = "DOT", DashStyleType2[DashStyleType2.DASH = 3] = "DASH", DashStyleType2))(DashStyleType || {}), TabStopAlignment = /* @__PURE__ */ ((TabStopAlignment2) => (TabStopAlignment2[TabStopAlignment2.TAB_STOP_ALIGNMENT_UNSPECIFIED = 0] = "TAB_STOP_ALIGNMENT_UNSPECIFIED", TabStopAlignment2[TabStopAlignment2.START = 1] = "START", TabStopAlignment2[TabStopAlignment2.CENTER = 2] = "CENTER", TabStopAlignment2[TabStopAlignment2.END = 3] = "END", TabStopAlignment2))(TabStopAlignment || {}), TableSizeType = /* @__PURE__ */ ((TableSizeType2) => (TableSizeType2[TableSizeType2.UNSPECIFIED = 0] = "UNSPECIFIED", TableSizeType2[TableSizeType2.SPECIFIED = 1] = "SPECIFIED", TableSizeType2))(TableSizeType || {}), TableAlignmentType = /* @__PURE__ */ ((TableAlignmentType2) => (TableAlignmentType2[TableAlignmentType2.START = 0] = "START", TableAlignmentType2[TableAlignmentType2.CENTER = 1] = "CENTER", TableAlignmentType2[TableAlignmentType2.END = 2] = "END", TableAlignmentType2))(TableAlignmentType || {}), TableLayoutType = /* @__PURE__ */ ((TableLayoutType2) => (TableLayoutType2[TableLayoutType2.AUTO_FIT = 0] = "AUTO_FIT", TableLayoutType2[TableLayoutType2.FIXED = 1] = "FIXED", TableLayoutType2))(TableLayoutType || {}), TableTextWrapType = /* @__PURE__ */ ((TableTextWrapType2) => (TableTextWrapType2[TableTextWrapType2.NONE = 0] = "NONE", TableTextWrapType2[TableTextWrapType2.WRAP = 1] = "WRAP", TableTextWrapType2))(TableTextWrapType || {}), TableCellHeightRule = /* @__PURE__ */ ((TableCellHeightRule2) => (TableCellHeightRule2[TableCellHeightRule2.AUTO = 0] = "AUTO", TableCellHeightRule2[TableCellHeightRule2.AT_LEAST = 1] = "AT_LEAST", TableCellHeightRule2[TableCellHeightRule2.EXACT = 2] = "EXACT", TableCellHeightRule2))(TableCellHeightRule || {}), VerticalAlignmentType = /* @__PURE__ */ ((VerticalAlignmentType2) => (VerticalAlignmentType2[VerticalAlignmentType2.CONTENT_ALIGNMENT_UNSPECIFIED = 0] = "CONTENT_ALIGNMENT_UNSPECIFIED", VerticalAlignmentType2[VerticalAlignmentType2.BOTH = 1] = "BOTH", VerticalAlignmentType2[VerticalAlignmentType2.TOP = 2] = "TOP", VerticalAlignmentType2[VerticalAlignmentType2.CENTER = 3] = "CENTER", VerticalAlignmentType2[VerticalAlignmentType2.BOTTOM = 4] = "BOTTOM", VerticalAlignmentType2))(VerticalAlignmentType || {}), FontStyleType = /* @__PURE__ */ ((FontStyleType2) => (FontStyleType2.NORMAL = "normal", FontStyleType2.BOLD = "bold", FontStyleType2.ITALIC = "italic", FontStyleType2))(FontStyleType || {}), ObjectRelativeFromH = /* @__PURE__ */ ((ObjectRelativeFromH2) => (ObjectRelativeFromH2[ObjectRelativeFromH2.PAGE = 0] = "PAGE", ObjectRelativeFromH2[ObjectRelativeFromH2.COLUMN = 1] = "COLUMN", ObjectRelativeFromH2[ObjectRelativeFromH2.CHARACTER = 2] = "CHARACTER", ObjectRelativeFromH2[ObjectRelativeFromH2.MARGIN = 3] = "MARGIN", ObjectRelativeFromH2[ObjectRelativeFromH2.INSIDE_MARGIN = 4] = "INSIDE_MARGIN", ObjectRelativeFromH2[ObjectRelativeFromH2.OUTSIDE_MARGIN = 5] = "OUTSIDE_MARGIN", ObjectRelativeFromH2[ObjectRelativeFromH2.LEFT_MARGIN = 6] = "LEFT_MARGIN", ObjectRelativeFromH2[ObjectRelativeFromH2.RIGHT_MARGIN = 7] = "RIGHT_MARGIN", ObjectRelativeFromH2))(ObjectRelativeFromH || {}), ObjectRelativeFromV = /* @__PURE__ */ ((ObjectRelativeFromV2) => (ObjectRelativeFromV2[ObjectRelativeFromV2.PAGE = 0] = "PAGE", ObjectRelativeFromV2[ObjectRelativeFromV2.PARAGRAPH = 1] = "PARAGRAPH", ObjectRelativeFromV2[ObjectRelativeFromV2.LINE = 2] = "LINE", ObjectRelativeFromV2[ObjectRelativeFromV2.MARGIN = 3] = "MARGIN", ObjectRelativeFromV2[ObjectRelativeFromV2.TOP_MARGIN = 4] = "TOP_MARGIN", ObjectRelativeFromV2[ObjectRelativeFromV2.BOTTOM_MARGIN = 5] = "BOTTOM_MARGIN", ObjectRelativeFromV2[ObjectRelativeFromV2.INSIDE_MARGIN = 6] = "INSIDE_MARGIN", ObjectRelativeFromV2[ObjectRelativeFromV2.OUTSIDE_MARGIN = 7] = "OUTSIDE_MARGIN", ObjectRelativeFromV2))(ObjectRelativeFromV || {}), NumberUnitType = /* @__PURE__ */ ((NumberUnitType2) => (NumberUnitType2[NumberUnitType2.POINT = 0] = "POINT", NumberUnitType2[NumberUnitType2.LINE = 1] = "LINE", NumberUnitType2[NumberUnitType2.CHARACTER = 2] = "CHARACTER", NumberUnitType2[NumberUnitType2.PIXEL = 3] = "PIXEL", NumberUnitType2[NumberUnitType2.PERCENT = 4] = "PERCENT", NumberUnitType2))(NumberUnitType || {}), AlignTypeH = /* @__PURE__ */ ((AlignTypeH2) => (AlignTypeH2[AlignTypeH2.CENTER = 0] = "CENTER", AlignTypeH2[AlignTypeH2.INSIDE = 1] = "INSIDE", AlignTypeH2[AlignTypeH2.LEFT = 2] = "LEFT", AlignTypeH2[AlignTypeH2.OUTSIDE = 3] = "OUTSIDE", AlignTypeH2[AlignTypeH2.RIGHT = 4] = "RIGHT", AlignTypeH2[AlignTypeH2.BOTH = 5] = "BOTH", AlignTypeH2[AlignTypeH2.DISTRIBUTE = 6] = "DISTRIBUTE", AlignTypeH2))(AlignTypeH || {}), AlignTypeV = /* @__PURE__ */ ((AlignTypeV2) => (AlignTypeV2[AlignTypeV2.BOTTOM = 0] = "BOTTOM", AlignTypeV2[AlignTypeV2.CENTER = 1] = "CENTER", AlignTypeV2[AlignTypeV2.INSIDE = 2] = "INSIDE", AlignTypeV2[AlignTypeV2.OUTSIDE = 3] = "OUTSIDE", AlignTypeV2[AlignTypeV2.TOP = 4] = "TOP", AlignTypeV2))(AlignTypeV || {}), characterSpacingControlType = /* @__PURE__ */ ((characterSpacingControlType2) => (characterSpacingControlType2[characterSpacingControlType2.compressPunctuation = 0] = "compressPunctuation", characterSpacingControlType2[characterSpacingControlType2.compressPunctuationAndJapaneseKana = 1] = "compressPunctuationAndJapaneseKana", characterSpacingControlType2[characterSpacingControlType2.doNotCompress = 2] = "doNotCompress", characterSpacingControlType2))(characterSpacingControlType || {}), PageOrientType = /* @__PURE__ */ ((PageOrientType2) => (PageOrientType2[PageOrientType2.PORTRAIT = 0] = "PORTRAIT", PageOrientType2[PageOrientType2.LANDSCAPE = 1] = "LANDSCAPE", PageOrientType2))(PageOrientType || {}), ArrangeTypeEnum = /* @__PURE__ */ ((ArrangeTypeEnum2) => (ArrangeTypeEnum2[ArrangeTypeEnum2.forward = 0] = "forward", ArrangeTypeEnum2[ArrangeTypeEnum2.backward = 1] = "backward", ArrangeTypeEnum2[ArrangeTypeEnum2.front = 2] = "front", ArrangeTypeEnum2[ArrangeTypeEnum2.back = 3] = "back", ArrangeTypeEnum2))(ArrangeTypeEnum || {}), DrawingTypeEnum = /* @__PURE__ */ ((DrawingTypeEnum2) => (DrawingTypeEnum2[DrawingTypeEnum2.UNRECOGNIZED = -1] = "UNRECOGNIZED", DrawingTypeEnum2[DrawingTypeEnum2.DRAWING_IMAGE = 0] = "DRAWING_IMAGE", DrawingTypeEnum2[DrawingTypeEnum2.DRAWING_SHAPE = 1] = "DRAWING_SHAPE", DrawingTypeEnum2[DrawingTypeEnum2.DRAWING_CHART = 2] = "DRAWING_CHART", DrawingTypeEnum2[DrawingTypeEnum2.DRAWING_TABLE = 3] = "DRAWING_TABLE", DrawingTypeEnum2[DrawingTypeEnum2.DRAWING_SMART_ART = 4] = "DRAWING_SMART_ART", DrawingTypeEnum2[DrawingTypeEnum2.DRAWING_VIDEO = 5] = "DRAWING_VIDEO", DrawingTypeEnum2[DrawingTypeEnum2.DRAWING_GROUP = 6] = "DRAWING_GROUP", DrawingTypeEnum2[DrawingTypeEnum2.DRAWING_UNIT = 7] = "DRAWING_UNIT", DrawingTypeEnum2[DrawingTypeEnum2.DRAWING_DOM = 8] = "DRAWING_DOM", DrawingTypeEnum2))(DrawingTypeEnum || {}), RANGE_TYPE = /* @__PURE__ */ ((RANGE_TYPE2) => (RANGE_TYPE2[RANGE_TYPE2.NORMAL = 0] = "NORMAL", RANGE_TYPE2[RANGE_TYPE2.ROW = 1] = "ROW", RANGE_TYPE2[RANGE_TYPE2.COLUMN = 2] = "COLUMN", RANGE_TYPE2[RANGE_TYPE2.ALL = 3] = "ALL", RANGE_TYPE2))(RANGE_TYPE || {}), AbsoluteRefType = /* @__PURE__ */ ((AbsoluteRefType2) => (AbsoluteRefType2[AbsoluteRefType2.NONE = 0] = "NONE", AbsoluteRefType2[AbsoluteRefType2.ROW = 1] = "ROW", AbsoluteRefType2[AbsoluteRefType2.COLUMN = 2] = "COLUMN", AbsoluteRefType2[AbsoluteRefType2.ALL = 3] = "ALL", AbsoluteRefType2))(AbsoluteRefType || {});
|
|
849
|
+
var RANGE_TYPE = /* @__PURE__ */ ((RANGE_TYPE2) => (RANGE_TYPE2[RANGE_TYPE2.NORMAL = 0] = "NORMAL", RANGE_TYPE2[RANGE_TYPE2.ROW = 1] = "ROW", RANGE_TYPE2[RANGE_TYPE2.COLUMN = 2] = "COLUMN", RANGE_TYPE2[RANGE_TYPE2.ALL = 3] = "ALL", RANGE_TYPE2))(RANGE_TYPE || {}), AbsoluteRefType = /* @__PURE__ */ ((AbsoluteRefType2) => (AbsoluteRefType2[AbsoluteRefType2.NONE = 0] = "NONE", AbsoluteRefType2[AbsoluteRefType2.ROW = 1] = "ROW", AbsoluteRefType2[AbsoluteRefType2.COLUMN = 2] = "COLUMN", AbsoluteRefType2[AbsoluteRefType2.ALL = 3] = "ALL", AbsoluteRefType2))(AbsoluteRefType || {});
|
|
850
850
|
function selectionToArray(range) {
|
|
851
851
|
return [range.startRow, range.startColumn, range.endRow, range.endColumn];
|
|
852
852
|
}
|
|
@@ -892,7 +892,6 @@ function getCellInfoInMergeData(row, column, mergeData) {
|
|
|
892
892
|
};
|
|
893
893
|
}
|
|
894
894
|
__name(getCellInfoInMergeData, "getCellInfoInMergeData");
|
|
895
|
-
var PageType = /* @__PURE__ */ ((PageType2) => (PageType2[PageType2.SLIDE = 0] = "SLIDE", PageType2[PageType2.MASTER = 1] = "MASTER", PageType2[PageType2.LAYOUT = 2] = "LAYOUT", PageType2[PageType2.HANDOUT_MASTER = 3] = "HANDOUT_MASTER", PageType2[PageType2.NOTES_MASTER = 4] = "NOTES_MASTER", PageType2))(PageType || {}), PageElementType = /* @__PURE__ */ ((PageElementType2) => (PageElementType2[PageElementType2.SHAPE = 0] = "SHAPE", PageElementType2[PageElementType2.IMAGE = 1] = "IMAGE", PageElementType2[PageElementType2.TEXT = 2] = "TEXT", PageElementType2[PageElementType2.SPREADSHEET = 3] = "SPREADSHEET", PageElementType2[PageElementType2.DOCUMENT = 4] = "DOCUMENT", PageElementType2[PageElementType2.SLIDE = 5] = "SLIDE", PageElementType2))(PageElementType || {}), RelativeSlideLink = /* @__PURE__ */ ((RelativeSlideLink2) => (RelativeSlideLink2[RelativeSlideLink2.RELATIVE_SLIDE_LINK_UNSPECIFIED = 0] = "RELATIVE_SLIDE_LINK_UNSPECIFIED", RelativeSlideLink2[RelativeSlideLink2.NEXT_SLIDE = 1] = "NEXT_SLIDE", RelativeSlideLink2[RelativeSlideLink2.PREVIOUS_SLIDE = 2] = "PREVIOUS_SLIDE", RelativeSlideLink2[RelativeSlideLink2.FIRST_SLIDE = 3] = "FIRST_SLIDE", RelativeSlideLink2[RelativeSlideLink2.LAST_SLIDE = 4] = "LAST_SLIDE", RelativeSlideLink2))(RelativeSlideLink || {});
|
|
896
895
|
const urlAlphabet = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
|
|
897
896
|
let random = /* @__PURE__ */ __name((bytes) => crypto.getRandomValues(new Uint8Array(bytes)), "random"), customRandom = /* @__PURE__ */ __name((alphabet, defaultSize, getRandom) => {
|
|
898
897
|
let mask = (2 << Math.log(alphabet.length - 1) / Math.LN2) - 1, step = -~(1.6 * mask * defaultSize / alphabet.length);
|
|
@@ -1978,9 +1977,6 @@ const rmsPrefix = /^-ms-/, rDashAlpha = /-([a-z])/g, alphabets = [
|
|
|
1978
1977
|
static isBlank(value) {
|
|
1979
1978
|
return this.isDefine(value) ? this.isString(value) ? value.trim() === "" : !1 : !0;
|
|
1980
1979
|
}
|
|
1981
|
-
static isAssignableFrom(object, clazz) {
|
|
1982
|
-
return object instanceof clazz;
|
|
1983
|
-
}
|
|
1984
1980
|
static isBoolean(value) {
|
|
1985
1981
|
return this.getValueType(value) === "[object Boolean]";
|
|
1986
1982
|
}
|
|
@@ -2410,8 +2406,8 @@ function handleStyleToString(style, isCell = !1) {
|
|
|
2410
2406
|
"pd",
|
|
2411
2407
|
() => {
|
|
2412
2408
|
var _a14, _b2, _c, _d, _e, _f, _g, _h;
|
|
2413
|
-
const b = `${(_a14 = style.pd) == null ? void 0 : _a14.b}pt`, t = `${(_b2 = style.pd) == null ? void 0 : _b2.t}pt`,
|
|
2414
|
-
(_e = style.pd) != null && _e.b && (str += `padding-bottom: ${b}; `), (_f = style.pd) != null && _f.t && (str += `padding-top: ${t}; `), (_g = style.pd) != null && _g.l && (str += `padding-left: ${
|
|
2409
|
+
const b = `${(_a14 = style.pd) == null ? void 0 : _a14.b}pt`, t = `${(_b2 = style.pd) == null ? void 0 : _b2.t}pt`, l = `${(_c = style.pd) == null ? void 0 : _c.l}pt`, r = `${(_d = style.pd) == null ? void 0 : _d.r}pt`;
|
|
2410
|
+
(_e = style.pd) != null && _e.b && (str += `padding-bottom: ${b}; `), (_f = style.pd) != null && _f.t && (str += `padding-top: ${t}; `), (_g = style.pd) != null && _g.l && (str += `padding-left: ${l}; `), (_h = style.pd) != null && _h.r && (str += `padding-right: ${r}; `);
|
|
2415
2411
|
}
|
|
2416
2412
|
]
|
|
2417
2413
|
]), cellSkip = ["bd", "tr", "tb"];
|
|
@@ -2560,7 +2556,7 @@ function __read(o, n) {
|
|
|
2560
2556
|
}
|
|
2561
2557
|
__name(__read, "__read");
|
|
2562
2558
|
function __spreadArray$2(to, from, pack) {
|
|
2563
|
-
if (pack || arguments.length === 2) for (var i = 0,
|
|
2559
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++)
|
|
2564
2560
|
(ar || !(i in from)) && (ar || (ar = Array.prototype.slice.call(from, 0, i)), ar[i] = from[i]);
|
|
2565
2561
|
return to.concat(ar || Array.prototype.slice.call(from));
|
|
2566
2562
|
}
|
|
@@ -3343,6 +3339,21 @@ const _ObjectMatrix = class _ObjectMatrix {
|
|
|
3343
3339
|
});
|
|
3344
3340
|
}), objectMatrix.getData();
|
|
3345
3341
|
}
|
|
3342
|
+
/**
|
|
3343
|
+
* the function can only be used in all the row and column are positive integer
|
|
3344
|
+
* @description the positive integer in V8 Object is stored in a fast memory space and it is sorted when we get the keys
|
|
3345
|
+
* @returns {IRange} the start and end scope of the matrix
|
|
3346
|
+
*/
|
|
3347
|
+
getStartEndScope() {
|
|
3348
|
+
let startRow = 1 / 0, endRow = -1 / 0, startColumn = 1 / 0, endColumn = -1 / 0;
|
|
3349
|
+
const rows = Object.keys(this._matrix);
|
|
3350
|
+
rows.length > 0 && (startRow = +rows[0], endRow = +rows[rows.length - 1]);
|
|
3351
|
+
for (const row of rows) {
|
|
3352
|
+
const columns = Object.keys(this._matrix[row]);
|
|
3353
|
+
columns.length > 0 && (startColumn = Math.min(startColumn, +columns[0]), endColumn = Math.max(endColumn, +columns[columns.length - 1]));
|
|
3354
|
+
}
|
|
3355
|
+
return { startRow, endRow, startColumn, endColumn };
|
|
3356
|
+
}
|
|
3346
3357
|
getDataRange() {
|
|
3347
3358
|
let startRow = 0, startColumn = 0, endColumn = 0, endRow = -1, initRow = !1, initColumn = !1;
|
|
3348
3359
|
return this.forEach((rowIndex, row) => {
|
|
@@ -3741,7 +3752,765 @@ function covertTextRunToHtml(dataStream, textRun) {
|
|
|
3741
3752
|
return it === BooleanNumber.TRUE && (html = `<i>${html}</i>`), va === BaselineOffset.SUPERSCRIPT ? html = `<sup>${html}</sup>` : va === BaselineOffset.SUBSCRIPT && (html = `<sub>${html}</sub>`), (ul == null ? void 0 : ul.s) === BooleanNumber.TRUE && (html = `<u>${html}</u>`), (st == null ? void 0 : st.s) === BooleanNumber.TRUE && (html = `<s>${html}</s>`), bl === BooleanNumber.TRUE && (html = `<strong>${html}</strong>`), ff && style.push(`font-family: ${ff}`), cl && style.push(`color: ${cl.rgb}`), fs && style.push(`font-size: ${fs}pt`), ol && style.push("text-decoration: overline"), bg && style.push(`background: ${bg.rgb}`), style.length ? `<span style="${style.join("; ")};">${html}</span>` : html;
|
|
3742
3753
|
}
|
|
3743
3754
|
__name(covertTextRunToHtml, "covertTextRunToHtml");
|
|
3744
|
-
|
|
3755
|
+
var numfmt$1 = { exports: {} };
|
|
3756
|
+
(function(module, exports) {
|
|
3757
|
+
(function(e, t) {
|
|
3758
|
+
module.exports = t();
|
|
3759
|
+
})(typeof self < "u" ? self : commonjsGlobal, function() {
|
|
3760
|
+
return function() {
|
|
3761
|
+
var e = { d: /* @__PURE__ */ __name(function(t2, n2) {
|
|
3762
|
+
for (var a2 in n2) e.o(n2, a2) && !e.o(t2, a2) && Object.defineProperty(t2, a2, { enumerable: !0, get: n2[a2] });
|
|
3763
|
+
}, "d"), o: /* @__PURE__ */ __name(function(e2, t2) {
|
|
3764
|
+
return Object.prototype.hasOwnProperty.call(e2, t2);
|
|
3765
|
+
}, "o") }, t = {};
|
|
3766
|
+
e.d(t, { default: /* @__PURE__ */ __name(function() {
|
|
3767
|
+
return pe;
|
|
3768
|
+
}, "default") });
|
|
3769
|
+
var n = { 1078: "af", 1052: "sq", 1118: "am", 5121: "ar_DZ", 15361: "ar_BH", 3073: "ar_EG", 2049: "ar_IQ", 11265: "ar_JO", 13313: "ar_KW", 12289: "ar_LB", 4097: "ar_LY", 6145: "ar_MA", 8193: "ar_OM", 16385: "ar_QA", 1025: "ar_SA", 10241: "ar_SY", 7169: "ar_TN", 14337: "ar_AE", 9217: "ar_YE", 1067: "hy", 1101: "as", 2092: "az_AZ", 1068: "az_AZ", 1069: "eu", 1059: "be", 2117: "bn", 1093: "bn_IN", 5146: "bs", 1026: "bg", 1109: "my", 1027: "ca", 2052: "zh_CN", 3076: "zh_HK", 5124: "zh_MO", 4100: "zh_SG", 1028: "zh_TW", 1050: "hr", 1029: "cs", 1030: "da", 1125: "dv", 2067: "nl_BE", 1043: "nl_NL", 1126: "bin", 3081: "en_AU", 10249: "en_BZ", 4105: "en_CA", 9225: "en_CB", 2057: "en_GB", 16393: "en_IN", 6153: "en_IE", 8201: "en_JM", 5129: "en_NZ", 13321: "en_PH", 7177: "en_ZA", 11273: "en_TT", 1033: "en_US", 12297: "en_ZW", 1061: "et", 1071: "mk", 1080: "fo", 1065: "fa", 1124: "fil", 1035: "fi", 2060: "fr_BE", 11276: "fr_CM", 3084: "fr_CA", 9228: "fr_CG", 12300: "fr_CI", 1036: "fr_FR", 5132: "fr_LU", 13324: "fr_ML", 6156: "fr_MC", 14348: "fr_MA", 10252: "fr_SN", 4108: "fr_CH", 7180: "fr", 1122: "fy_NL", 2108: "gd_IE", 1084: "gd", 1110: "gl", 1079: "ka", 3079: "de_AT", 1031: "de_DE", 5127: "de_LI", 4103: "de_LU", 2055: "de_CH", 1032: "el", 1140: "gn", 1095: "gu", 1279: "en", 1037: "he", 1081: "hi", 1038: "hu", 1039: "is", 1136: "ig_NG", 1057: "id", 1040: "it_IT", 2064: "it_CH", 1041: "ja", 1099: "kn", 1120: "ks", 1087: "kk", 1107: "km", 1111: "kok", 1042: "ko", 1088: "ky", 1108: "lo", 1142: "la", 1062: "lv", 1063: "lt", 2110: "ms_BN", 1086: "ms_MY", 1100: "ml", 1082: "mt", 1112: "mni", 1153: "mi", 1102: "mr", 1104: "mn", 2128: "mn", 1121: "ne", 1044: "no_NO", 2068: "no_NO", 1096: "or", 1045: "pl", 1046: "pt_BR", 2070: "pt_PT", 1094: "pa", 1047: "rm", 2072: "ro_MO", 1048: "ro_RO", 1049: "ru", 2073: "ru_MO", 1083: "se", 1103: "sa", 3098: "sr_SP", 2074: "sr_SP", 1072: "st", 1074: "tn", 1113: "sd", 1115: "si", 1051: "sk", 1060: "sl", 1143: "so", 1070: "sb", 11274: "es_AR", 16394: "es_BO", 13322: "es_CL", 9226: "es_CO", 5130: "es_CR", 7178: "es_DO", 12298: "es_EC", 17418: "es_SV", 4106: "es_GT", 18442: "es_HN", 2058: "es_MX", 19466: "es_NI", 6154: "es_PA", 15370: "es_PY", 10250: "es_PE", 20490: "es_PR", 1034: "es_ES", 14346: "es_UY", 8202: "es_VE", 1089: "sw", 2077: "sv_FI", 1053: "sv_SE", 1114: "syc", 1064: "tg", 1097: "ta", 1092: "tt", 1098: "te", 1054: "th", 1105: "bo", 1073: "ts", 1055: "tr", 1090: "tk", 1058: "uk", 1056: "ur", 2115: "uz_UZ", 1091: "uz_UZ", 1075: "ve", 1066: "vi", 1106: "cy", 1076: "xh", 1085: "yi", 1077: "zu" };
|
|
3770
|
+
const a = /^([a-z\d]+)(?:[_-]([a-z\d]+))?(?:\.([a-z\d]+))?(?:@([a-z\d]+))?$/i, r = {}, i = { group: " ", decimal: ".", positive: "+", negative: "-", percent: "%", exponent: "E", nan: "NaN", infinity: "∞", ampm: ["AM", "PM"], mmmm6: ["Muharram", "Safar", "Rabiʻ I", "Rabiʻ II", "Jumada I", "Jumada II", "Rajab", "Shaʻban", "Ramadan", "Shawwal", "Dhuʻl-Qiʻdah", "Dhuʻl-Hijjah"], mmm6: ["Muh.", "Saf.", "Rab. I", "Rab. II", "Jum. I", "Jum. II", "Raj.", "Sha.", "Ram.", "Shaw.", "Dhuʻl-Q.", "Dhuʻl-H."], mmmm: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"], mmm: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], dddd: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"], ddd: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"] };
|
|
3771
|
+
function s(e2) {
|
|
3772
|
+
const t2 = a.exec(e2);
|
|
3773
|
+
if (!t2) throw new SyntaxError("Malformed locale: ".concat(e2));
|
|
3774
|
+
return { lang: t2[1] + (t2[2] ? "_" + t2[2] : ""), language: t2[1], territory: t2[2] || "", codeset: t2[3] || "", modifier: t2[4] || "" };
|
|
3775
|
+
}
|
|
3776
|
+
__name(s, "s");
|
|
3777
|
+
function o(e2) {
|
|
3778
|
+
if (typeof e2 == "number") return n[65535 & e2] || null;
|
|
3779
|
+
const t2 = parseInt(e2, 16);
|
|
3780
|
+
return isFinite(t2) && n[65535 & t2] ? n[65535 & t2] || null : a.test(e2) ? e2 : null;
|
|
3781
|
+
}
|
|
3782
|
+
__name(o, "o");
|
|
3783
|
+
function l(e2) {
|
|
3784
|
+
const t2 = o(e2);
|
|
3785
|
+
let n2 = null;
|
|
3786
|
+
if (t2) {
|
|
3787
|
+
const e3 = s(t2);
|
|
3788
|
+
n2 = r[e3.lang] || r[e3.language] || null;
|
|
3789
|
+
}
|
|
3790
|
+
return n2;
|
|
3791
|
+
}
|
|
3792
|
+
__name(l, "l");
|
|
3793
|
+
function d(e2) {
|
|
3794
|
+
return Object.assign({}, i, e2);
|
|
3795
|
+
}
|
|
3796
|
+
__name(d, "d");
|
|
3797
|
+
function m(e2, t2) {
|
|
3798
|
+
const n2 = typeof t2 == "object" ? t2 : s(t2);
|
|
3799
|
+
return r[n2.lang] = d(e2), n2.language === n2.lang || r[n2.language] || (r[n2.language] = d(e2)), r[n2.lang];
|
|
3800
|
+
}
|
|
3801
|
+
__name(m, "m");
|
|
3802
|
+
const u = d({ group: "," });
|
|
3803
|
+
function c(e2, t2) {
|
|
3804
|
+
if (typeof e2 != "number") return e2;
|
|
3805
|
+
if (e2 < 0) return -c(-e2, t2);
|
|
3806
|
+
if (t2) {
|
|
3807
|
+
const n2 = 10 ** (t2 || 0) || 1;
|
|
3808
|
+
return c(e2 * n2, 0) / n2;
|
|
3809
|
+
}
|
|
3810
|
+
return Math.round(e2);
|
|
3811
|
+
}
|
|
3812
|
+
__name(c, "c"), u.isDefault = !0, m({ group: ",", ampm: ["上午", "下午"], mmmm: ["一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月"], mmm: ["1月", "2月", "3月", "4月", "5月", "6月", "7月", "8月", "9月", "10月", "11月", "12月"], dddd: ["星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"], ddd: ["周日", "周一", "周二", "周三", "周四", "周五", "周六"] }, "zh_CN"), m({ group: ",", nan: "非數值", ampm: ["上午", "下午"], mmmm: ["1月", "2月", "3月", "4月", "5月", "6月", "7月", "8月", "9月", "10月", "11月", "12月"], mmm: ["1月", "2月", "3月", "4月", "5月", "6月", "7月", "8月", "9月", "10月", "11月", "12月"], dddd: ["星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"], ddd: ["週日", "週一", "週二", "週三", "週四", "週五", "週六"] }, "zh_TW"), m({ group: ",", ampm: ["午前", "午後"], mmmm: ["1月", "2月", "3月", "4月", "5月", "6月", "7月", "8月", "9月", "10月", "11月", "12月"], mmm: ["1月", "2月", "3月", "4月", "5月", "6月", "7月", "8月", "9月", "10月", "11月", "12月"], dddd: ["日曜日", "月曜日", "火曜日", "水曜日", "木曜日", "金曜日", "土曜日"], ddd: ["日", "月", "火", "水", "木", "金", "土"] }, "ja"), m({ group: ",", ampm: ["오전", "오후"], mmmm: ["1월", "2월", "3월", "4월", "5월", "6월", "7월", "8월", "9월", "10월", "11월", "12월"], mmm: ["1월", "2월", "3월", "4월", "5월", "6월", "7월", "8월", "9월", "10월", "11월", "12월"], dddd: ["일요일", "월요일", "화요일", "수요일", "목요일", "금요일", "토요일"], ddd: ["일", "월", "화", "수", "목", "금", "토"] }, "ko"), m({ group: ",", ampm: ["ก่อนเที่ยง", "หลังเที่ยง"], mmmm: ["มกราคม", "กุมภาพันธ์", "มีนาคม", "เมษายน", "พฤษภาคม", "มิถุนายน", "กรกฎาคม", "สิงหาคม", "กันยายน", "ตุลาคม", "พฤศจิกายน", "ธันวาคม"], mmm: ["ม.ค.", "ก.พ.", "มี.ค.", "เม.ย.", "พ.ค.", "มิ.ย.", "ก.ค.", "ส.ค.", "ก.ย.", "ต.ค.", "พ.ย.", "ธ.ค."], dddd: ["วันอาทิตย์", "วันจันทร์", "วันอังคาร", "วันพุธ", "วันพฤหัสบดี", "วันศุกร์", "วันเสาร์"], ddd: ["อา.", "จ.", "อ.", "พ.", "พฤ.", "ศ.", "ส."] }, "th"), m({ decimal: ",", ampm: ["dop.", "odp."], mmmm: ["ledna", "února", "března", "dubna", "května", "června", "července", "srpna", "září", "října", "listopadu", "prosince"], mmm: ["led", "úno", "bře", "dub", "kvě", "čvn", "čvc", "srp", "zář", "říj", "lis", "pro"], dddd: ["neděle", "pondělí", "úterý", "středa", "čtvrtek", "pátek", "sobota"], ddd: ["ne", "po", "út", "st", "čt", "pá", "so"] }, "cs"), m({ group: ".", decimal: ",", mmmm: ["januar", "februar", "marts", "april", "maj", "juni", "juli", "august", "september", "oktober", "november", "december"], mmm: ["jan.", "feb.", "mar.", "apr.", "maj", "jun.", "jul.", "aug.", "sep.", "okt.", "nov.", "dec."], dddd: ["søndag", "mandag", "tirsdag", "onsdag", "torsdag", "fredag", "lørdag"], ddd: ["søn.", "man.", "tir.", "ons.", "tor.", "fre.", "lør."] }, "da"), m({ group: ".", decimal: ",", ampm: ["a.m.", "p.m."], mmmm: ["januari", "februari", "maart", "april", "mei", "juni", "juli", "augustus", "september", "oktober", "november", "december"], mmm: ["jan.", "feb.", "mrt.", "apr.", "mei", "jun.", "jul.", "aug.", "sep.", "okt.", "nov.", "dec."], dddd: ["zondag", "maandag", "dinsdag", "woensdag", "donderdag", "vrijdag", "zaterdag"], ddd: ["zo", "ma", "di", "wo", "do", "vr", "za"] }, "nl"), m({ group: "," }, "en"), m({ decimal: ",", nan: "epäluku", ampm: ["ap.", "ip."], mmmm: ["tammikuuta", "helmikuuta", "maaliskuuta", "huhtikuuta", "toukokuuta", "kesäkuuta", "heinäkuuta", "elokuuta", "syyskuuta", "lokakuuta", "marraskuuta", "joulukuuta"], mmm: ["tammik.", "helmik.", "maalisk.", "huhtik.", "toukok.", "kesäk.", "heinäk.", "elok.", "syysk.", "lokak.", "marrask.", "jouluk."], dddd: ["sunnuntaina", "maanantaina", "tiistaina", "keskiviikkona", "torstaina", "perjantaina", "lauantaina"], ddd: ["su", "ma", "ti", "ke", "to", "pe", "la"] }, "fi"), m({ group: " ", decimal: ",", mmmm: ["janvier", "février", "mars", "avril", "mai", "juin", "juillet", "août", "septembre", "octobre", "novembre", "décembre"], mmm: ["janv.", "févr.", "mars", "avr.", "mai", "juin", "juil.", "août", "sept.", "oct.", "nov.", "déc."], dddd: ["dimanche", "lundi", "mardi", "mercredi", "jeudi", "vendredi", "samedi"], ddd: ["dim.", "lun.", "mar.", "mer.", "jeu.", "ven.", "sam."] }, "fr"), m({ group: ".", decimal: ",", mmmm: ["Januar", "Februar", "März", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Dezember"], mmm: ["Jan.", "Feb.", "März", "Apr.", "Mai", "Juni", "Juli", "Aug.", "Sept.", "Okt.", "Nov.", "Dez."], dddd: ["Sonntag", "Montag", "Dienstag", "Mittwoch", "Donnerstag", "Freitag", "Samstag"], ddd: ["So.", "Mo.", "Di.", "Mi.", "Do.", "Fr.", "Sa."] }, "de"), m({ group: ".", decimal: ",", ampm: ["π.μ.", "μ.μ."], mmmm: ["Ιανουαρίου", "Φεβρουαρίου", "Μαρτίου", "Απριλίου", "Μαΐου", "Ιουνίου", "Ιουλίου", "Αυγούστου", "Σεπτεμβρίου", "Οκτωβρίου", "Νοεμβρίου", "Δεκεμβρίου"], mmm: ["Ιαν", "Φεβ", "Μαρ", "Απρ", "Μαΐ", "Ιουν", "Ιουλ", "Αυγ", "Σεπ", "Οκτ", "Νοε", "Δεκ"], dddd: ["Κυριακή", "Δευτέρα", "Τρίτη", "Τετάρτη", "Πέμπτη", "Παρασκευή", "Σάββατο"], ddd: ["Κυρ", "Δευ", "Τρί", "Τετ", "Πέμ", "Παρ", "Σάβ"] }, "el"), m({ decimal: ",", ampm: ["de.", "du."], mmmm: ["január", "február", "március", "április", "május", "június", "július", "augusztus", "szeptember", "október", "november", "december"], mmm: ["jan.", "febr.", "márc.", "ápr.", "máj.", "jún.", "júl.", "aug.", "szept.", "okt.", "nov.", "dec."], dddd: ["vasárnap", "hétfő", "kedd", "szerda", "csütörtök", "péntek", "szombat"], ddd: ["V", "H", "K", "Sze", "Cs", "P", "Szo"] }, "hu"), m({ group: ".", decimal: ",", ampm: ["f.h.", "e.h."], mmmm: ["janúar", "febrúar", "mars", "apríl", "maí", "júní", "júlí", "ágúst", "september", "október", "nóvember", "desember"], mmm: ["jan.", "feb.", "mar.", "apr.", "maí", "jún.", "júl.", "ágú.", "sep.", "okt.", "nóv.", "des."], dddd: ["sunnudagur", "mánudagur", "þriðjudagur", "miðvikudagur", "fimmtudagur", "föstudagur", "laugardagur"], ddd: ["sun.", "mán.", "þri.", "mið.", "fim.", "fös.", "lau."] }, "is"), m({ group: ".", decimal: ",", mmmm: ["Januari", "Februari", "Maret", "April", "Mei", "Juni", "Juli", "Agustus", "September", "Oktober", "November", "Desember"], mmm: ["Jan", "Feb", "Mar", "Apr", "Mei", "Jun", "Jul", "Agu", "Sep", "Okt", "Nov", "Des"], dddd: ["Minggu", "Senin", "Selasa", "Rabu", "Kamis", "Jumat", "Sabtu"], ddd: ["Min", "Sen", "Sel", "Rab", "Kam", "Jum", "Sab"] }, "id"), m({ group: ".", decimal: ",", mmmm: ["gennaio", "febbraio", "marzo", "aprile", "maggio", "giugno", "luglio", "agosto", "settembre", "ottobre", "novembre", "dicembre"], mmm: ["gen", "feb", "mar", "apr", "mag", "giu", "lug", "ago", "set", "ott", "nov", "dic"], dddd: ["domenica", "lunedì", "martedì", "mercoledì", "giovedì", "venerdì", "sabato"], ddd: ["dom", "lun", "mar", "mer", "gio", "ven", "sab"] }, "it"), m({ decimal: ",", ampm: ["a.m.", "p.m."], mmmm: ["januar", "februar", "mars", "april", "mai", "juni", "juli", "august", "september", "oktober", "november", "desember"], mmm: ["jan.", "feb.", "mar.", "apr.", "mai", "jun.", "jul.", "aug.", "sep.", "okt.", "nov.", "des."], dddd: ["søndag", "mandag", "tirsdag", "onsdag", "torsdag", "fredag", "lørdag"], ddd: ["søn.", "man.", "tir.", "ons.", "tor.", "fre.", "lør."] }, "nb"), m({ decimal: ",", mmmm: ["stycznia", "lutego", "marca", "kwietnia", "maja", "czerwca", "lipca", "sierpnia", "września", "października", "listopada", "grudnia"], mmm: ["sty", "lut", "mar", "kwi", "maj", "cze", "lip", "sie", "wrz", "paź", "lis", "gru"], dddd: ["niedziela", "poniedziałek", "wtorek", "środa", "czwartek", "piątek", "sobota"], ddd: ["niedz.", "pon.", "wt.", "śr.", "czw.", "pt.", "sob."] }, "pl"), m({ group: ".", decimal: ",", mmmm: ["janeiro", "fevereiro", "março", "abril", "maio", "junho", "julho", "agosto", "setembro", "outubro", "novembro", "dezembro"], mmm: ["jan.", "fev.", "mar.", "abr.", "mai.", "jun.", "jul.", "ago.", "set.", "out.", "nov.", "dez."], dddd: ["domingo", "segunda-feira", "terça-feira", "quarta-feira", "quinta-feira", "sexta-feira", "sábado"], ddd: ["dom.", "seg.", "ter.", "qua.", "qui.", "sex.", "sáb."] }, "pt"), m({ decimal: ",", nan: "не число", mmmm: ["января", "февраля", "марта", "апреля", "мая", "июня", "июля", "августа", "сентября", "октября", "ноября", "декабря"], mmm: ["янв.", "февр.", "мар.", "апр.", "мая", "июн.", "июл.", "авг.", "сент.", "окт.", "нояб.", "дек."], dddd: ["воскресенье", "понедельник", "вторник", "среда", "четверг", "пятница", "суббота"], ddd: ["вс", "пн", "вт", "ср", "чт", "пт", "сб"] }, "ru"), m({ decimal: ",", mmmm: ["januára", "februára", "marca", "apríla", "mája", "júna", "júla", "augusta", "septembra", "októbra", "novembra", "decembra"], mmm: ["jan", "feb", "mar", "apr", "máj", "jún", "júl", "aug", "sep", "okt", "nov", "dec"], dddd: ["nedeľa", "pondelok", "utorok", "streda", "štvrtok", "piatok", "sobota"], ddd: ["ne", "po", "ut", "st", "št", "pi", "so"] }, "sk"), m({ group: ".", decimal: ",", ampm: ["a. m.", "p. m."], mmmm: ["enero", "febrero", "marzo", "abril", "mayo", "junio", "julio", "agosto", "septiembre", "octubre", "noviembre", "diciembre"], mmm: ["ene.", "feb.", "mar.", "abr.", "may.", "jun.", "jul.", "ago.", "sept.", "oct.", "nov.", "dic."], dddd: ["domingo", "lunes", "martes", "miércoles", "jueves", "viernes", "sábado"], ddd: ["dom.", "lun.", "mar.", "mié.", "jue.", "vie.", "sáb."] }, "es"), m({ decimal: ",", ampm: ["fm", "em"], mmmm: ["januari", "februari", "mars", "april", "maj", "juni", "juli", "augusti", "september", "oktober", "november", "december"], mmm: ["jan.", "feb.", "mars", "apr.", "maj", "juni", "juli", "aug.", "sep.", "okt.", "nov.", "dec."], dddd: ["söndag", "måndag", "tisdag", "onsdag", "torsdag", "fredag", "lördag"], ddd: ["sön", "mån", "tis", "ons", "tors", "fre", "lör"] }, "sv"), m({ group: ".", decimal: ",", ampm: ["ÖÖ", "ÖS"], mmmm: ["Ocak", "Şubat", "Mart", "Nisan", "Mayıs", "Haziran", "Temmuz", "Ağustos", "Eylül", "Ekim", "Kasım", "Aralık"], mmm: ["Oca", "Şub", "Mar", "Nis", "May", "Haz", "Tem", "Ağu", "Eyl", "Eki", "Kas", "Ara"], dddd: ["Pazar", "Pazartesi", "Salı", "Çarşamba", "Perşembe", "Cuma", "Cumartesi"], ddd: ["Paz", "Pzt", "Sal", "Çar", "Per", "Cum", "Cmt"] }, "tr");
|
|
3813
|
+
function p(e2, t2, n2) {
|
|
3814
|
+
const a2 = e2 < 0 ? -1 : 1, r2 = 10 ** (t2 || 2), i2 = 10 ** (n2 || 2);
|
|
3815
|
+
let s2, o2, l2 = Math.abs(e2), d2 = 0, m2 = 0, u2 = 0, c2 = 1;
|
|
3816
|
+
if ((e2 = l2) % 1 == 0) o2 = [e2 * a2, 1];
|
|
3817
|
+
else if (e2 < 1e-19) o2 = [a2, 1e19];
|
|
3818
|
+
else if (e2 > 1e19) o2 = [1e19 * a2, 1];
|
|
3819
|
+
else {
|
|
3820
|
+
do
|
|
3821
|
+
if (l2 = 1 / (l2 - Math.floor(l2)), s2 = c2, c2 = c2 * Math.floor(l2) + d2, d2 = s2, m2 = u2, u2 = Math.floor(e2 * c2 + 0.5), u2 >= r2 || c2 >= i2) return [a2 * m2, d2];
|
|
3822
|
+
while (Math.abs(e2 - u2 / c2) >= 1e-10 && l2 !== Math.floor(l2));
|
|
3823
|
+
o2 = [a2 * u2, c2];
|
|
3824
|
+
}
|
|
3825
|
+
return o2;
|
|
3826
|
+
}
|
|
3827
|
+
__name(p, "p");
|
|
3828
|
+
const f = { overflow: "######", dateErrorThrows: !1, dateErrorNumber: !0, dateSpanLarge: !0, leap1900: !0, nbsp: !0, throws: !0, invalid: "######", locale: "", ignoreTimezone: !1 }, g = Object.assign({}, f);
|
|
3829
|
+
function h(e2) {
|
|
3830
|
+
if (e2 === null && (e2 = f), e2) {
|
|
3831
|
+
for (const t2 in e2) if (t2 in f) {
|
|
3832
|
+
const n2 = e2[t2];
|
|
3833
|
+
g[t2] = n2 == null ? f[t2] : n2;
|
|
3834
|
+
}
|
|
3835
|
+
}
|
|
3836
|
+
return { ...g };
|
|
3837
|
+
}
|
|
3838
|
+
__name(h, "h");
|
|
3839
|
+
const y = { "#": "", 0: "0", "?": " " }, _ = { "@": "text", "-": "minus", "+": "plus" }, b = ["#000", "#FFF", "#F00", "#0F0", "#00F", "#FF0", "#F0F", "#0FF", "#000", "#FFF", "#F00", "#0F0", "#00F", "#FF0", "#F0F", "#0FF", "#800", "#080", "#008", "#880", "#808", "#088", "#CCC", "#888", "#99F", "#936", "#FFC", "#CFF", "#606", "#F88", "#06C", "#CCF", "#008", "#F0F", "#FF0", "#0FF", "#808", "#800", "#088", "#00F", "#0CF", "#CFF", "#CFC", "#FF9", "#9CF", "#F9C", "#C9F", "#FC9", "#36F", "#3CC", "#9C0", "#FC0"], j = ["¤", "$", "£", "¥", "֏", "؋", "৳", "฿", "៛", "₡", "₦", "₩", "₪", "₫", "€", "₭", "₮", "₱", "₲", "₴", "₸", "₹", "₺", "₼", "₽", "₾", "₿"], v = new RegExp("[" + j.join("") + "]");
|
|
3840
|
+
function M(e2, t2, n2) {
|
|
3841
|
+
return t2[n2 + "_max"] = e2.length, t2[n2 + "_min"] = e2.replace(/#/g, "").length, t2;
|
|
3842
|
+
}
|
|
3843
|
+
__name(M, "M");
|
|
3844
|
+
const k = {};
|
|
3845
|
+
function x(e2) {
|
|
3846
|
+
if (!(e2 in k)) {
|
|
3847
|
+
const t2 = [], n2 = e2.replace(/^[#,]+/, "").replace(/[1-9]\d*/g, (e3) => "?".repeat(e3.length));
|
|
3848
|
+
for (let e3 = 0; e3 < n2.length; e3++) {
|
|
3849
|
+
const a2 = n2.charAt(e3);
|
|
3850
|
+
t2[e3] = a2 in y ? y[a2] : a2;
|
|
3851
|
+
}
|
|
3852
|
+
k[e2] = t2.join("");
|
|
3853
|
+
}
|
|
3854
|
+
return k[e2];
|
|
3855
|
+
}
|
|
3856
|
+
__name(x, "x");
|
|
3857
|
+
function F(e2, t2) {
|
|
3858
|
+
typeof e2 == "string" && (e2 = { type: "string", value: e2 = e2.replace(/ /g, y["?"]) }), t2.push(e2);
|
|
3859
|
+
}
|
|
3860
|
+
__name(F, "F");
|
|
3861
|
+
function z(e2) {
|
|
3862
|
+
const t2 = [], n2 = { scale: 1, percent: !1, text: !1, date: 0, date_eval: !1, date_system: 1, sec_decimals: 0, general: !1, clock: 24, int_pattern: [], frac_pattern: [], man_pattern: [], den_pattern: [], num_pattern: [], tokens: t2 };
|
|
3863
|
+
let a2 = e2 + "", r2 = "int", i2 = !1, s2 = null;
|
|
3864
|
+
const l2 = [];
|
|
3865
|
+
let d2, m2, u2 = !1;
|
|
3866
|
+
for (; a2 && !i2; ) {
|
|
3867
|
+
if (d2 = /^General/i.exec(a2)) n2.general = !0, F({ type: "general" }, t2);
|
|
3868
|
+
else if (r2 === "int" && (d2 = /^[#?0]+(?:,[#?0]+)*/.exec(a2)) || r2 === "den" && (d2 = /^[#?\d]+/.exec(a2)) || (d2 = /^[#?0]+/.exec(a2))) n2[r2 + "_pattern"].push(d2[0]), s2 = { type: r2, num: d2[0] }, F(s2, t2);
|
|
3869
|
+
else if ((d2 = /^\//.exec(a2)) && n2[r2 + "_pattern"].length) {
|
|
3870
|
+
if (!s2) throw new SyntaxError("Missing a numerator in pattern ".concat(e2));
|
|
3871
|
+
n2.fractions = !0, n2.num_pattern.push(n2[r2 + "_pattern"].pop()), s2.type = "num", r2 = "den", F({ type: "div" }, t2);
|
|
3872
|
+
} else if (d2 = /^,+/.exec(a2)) {
|
|
3873
|
+
const e3 = a2.charAt(1) in y;
|
|
3874
|
+
m2.slice(-1) in y && (d2[0].length > 1 || !e3) ? n2.scale = 1e-3 ** d2[0].length : n2.dec_fractions || F(d2[0], t2);
|
|
3875
|
+
} else {
|
|
3876
|
+
if (d2 = /^;/.exec(a2)) {
|
|
3877
|
+
i2 = !0;
|
|
3878
|
+
break;
|
|
3879
|
+
}
|
|
3880
|
+
if (d2 = /^[@+-]/.exec(a2)) d2[0] === "@" && (n2.text = !0), F({ type: _[d2[0]] }, t2);
|
|
3881
|
+
else if (d2 = /^(?:\[(h+|m+|s+)\])/i.exec(a2)) {
|
|
3882
|
+
const e3 = d2[1].toLowerCase(), a3 = e3[0], r3 = { type: "", size: 0, date: 1, raw: d2[0], pad: e3.length };
|
|
3883
|
+
a3 === "h" ? (r3.size = 16, r3.type = "hour-elap") : a3 === "m" ? (r3.size = 32, r3.type = "min-elap") : (r3.size = 64, r3.type = "sec-elap"), n2.date = n2.date | r3.size, l2.push(r3), F(r3, t2);
|
|
3884
|
+
} else if (d2 = /^(?:B2)/i.exec(a2)) u2 || (n2.date_system = 6);
|
|
3885
|
+
else if (d2 = /^(?:B1)/i.exec(a2)) u2 || (n2.date_system = 1);
|
|
3886
|
+
else if (d2 = /^(?:([hHmMsSyYbBdDegG])\1*)/.exec(a2)) {
|
|
3887
|
+
const e3 = { type: "", size: 0, date: 1, raw: d2[0] }, a3 = d2[0].toLowerCase(), r3 = a3[0];
|
|
3888
|
+
if (a3 === "y" || a3 === "yy") e3.size = 2, e3.type = "year-short";
|
|
3889
|
+
else if (r3 === "y" || r3 === "e") e3.size = 2, e3.type = "year";
|
|
3890
|
+
else if (a3 === "b" || a3 === "bb") e3.size = 2, e3.type = "b-year-short";
|
|
3891
|
+
else if (r3 === "b") e3.size = 2, e3.type = "b-year";
|
|
3892
|
+
else if (a3 === "d" || a3 === "dd") e3.size = 8, e3.type = "day", e3.pad = /dd/.test(a3);
|
|
3893
|
+
else if (a3 === "ddd") e3.size = 8, e3.type = "weekday-short";
|
|
3894
|
+
else if (r3 === "d") e3.size = 8, e3.type = "weekday";
|
|
3895
|
+
else if (r3 === "h") e3.size = 16, e3.type = "hour", e3.pad = /hh/i.test(a3);
|
|
3896
|
+
else if (r3 === "m") {
|
|
3897
|
+
a3.length === 3 ? (e3.size = 4, e3.type = "monthname-short") : a3.length === 5 ? (e3.size = 4, e3.type = "monthname-single") : a3.length >= 4 && (e3.size = 4, e3.type = "monthname");
|
|
3898
|
+
const t3 = l2[l2.length - 1];
|
|
3899
|
+
!e3.type && t3 && !t3.used && 80 & t3.size && (t3.used = !0, e3.size = 32, e3.type = "min", e3.pad = /mm/.test(a3)), e3.type || (e3.size = 4, e3.type = "month", e3.pad = /mm/.test(a3), e3.indeterminate = !0);
|
|
3900
|
+
} else if (r3 === "s") {
|
|
3901
|
+
e3.size = 64, e3.type = "sec", e3.pad = /ss/.test(a3);
|
|
3902
|
+
const t3 = l2[l2.length - 1];
|
|
3903
|
+
t3 && 32 & t3.size ? e3.used = !0 : t3 && t3.indeterminate && (delete t3.indeterminate, t3.size = 32, t3.type = "min", e3.used = !0);
|
|
3904
|
+
}
|
|
3905
|
+
n2.date = n2.date | e3.size, n2.date_eval = !0, l2.push(e3), F(e3, t2);
|
|
3906
|
+
} else if (d2 = /^(?:AM\/PM|am\/pm|A\/P)/.exec(a2)) n2.clock = 12, n2.date = 16 | n2.date, n2.date_eval = !0, F({ type: "am", short: d2[0] === "A/P" }, t2);
|
|
3907
|
+
else if (n2.date && (d2 = /^\.0{1,3}/i.exec(a2))) {
|
|
3908
|
+
const e3 = d2[0].length - 1, a3 = [64, 128, 256, 512][e3];
|
|
3909
|
+
n2.date = n2.date | a3, n2.date_eval = !0, n2.sec_decimals = Math.max(n2.sec_decimals, e3), F({ type: "subsec", size: a3, decimals: e3, date: 1, raw: d2[0] }, t2);
|
|
3910
|
+
} else if ((d2 = /^\\(.)/.exec(a2)) || (d2 = /^"([^"]*?)"/.exec(a2))) F(d2[1], t2);
|
|
3911
|
+
else if (d2 = /^\[(<[=>]?|>=?|=)\s*(-?[.\d]+)\]/.exec(a2)) n2.condition = [d2[1], parseFloat(d2[2], 10)];
|
|
3912
|
+
else if (d2 = /^\[\$([^\]]+)\]/.exec(a2)) {
|
|
3913
|
+
const e3 = d2[1].split("-"), a3 = e3.length < 2 ? "" : e3[e3.length - 1], r3 = e3[0];
|
|
3914
|
+
r3 && F(r3, t2);
|
|
3915
|
+
const i3 = o(a3);
|
|
3916
|
+
i3 && (n2.locale = i3);
|
|
3917
|
+
const s3 = parseInt(a3, 16);
|
|
3918
|
+
isFinite(s3) && 16711680 & s3 && (s3 >> 16 & 255) === 6 && (n2.date_system = 6), u2 = !0;
|
|
3919
|
+
} else if (d2 = /^\[(black|blue|cyan|green|magenta|red|white|yellow|color\s*(\d+))\]/i.exec(a2)) n2.color = d2[2] ? b[parseInt(d2[2], 10)] || "#000" : d2[1].toLowerCase();
|
|
3920
|
+
else if (!(d2 = /^\[(DBNum1|ENG|HIJ|JPN|TWN)\]/i.exec(a2))) {
|
|
3921
|
+
if (d2 = /^%/.exec(a2)) n2.scale = 100, n2.percent = !0, F("%", t2);
|
|
3922
|
+
else if (d2 = /^_(\\.|.)/.exec(a2)) F(" ", t2);
|
|
3923
|
+
else if (d2 = /^\./.exec(a2)) F({ type: "point", value: d2[0] }, t2), n2.dec_fractions = !0, r2 = "frac";
|
|
3924
|
+
else if (d2 = /^[Ee]([+-]?|(?=[0#?]))/.exec(a2)) n2.exponential = !0, n2.exp_plus = d2[1] === "+", r2 = "man", F({ type: "exp", plus: d2[1] === "+" }, t2);
|
|
3925
|
+
else if (!(d2 = /^\*(\\.|.)/.exec(a2))) {
|
|
3926
|
+
if (d2 = /^[BENn[]/.exec(a2)) throw new SyntaxError("Unexpected char ".concat(a2.charAt(0), " in pattern ").concat(e2));
|
|
3927
|
+
a2[0] === "(" && (n2.parens = !0), d2 = [a2[0]], F(d2[0], t2);
|
|
3928
|
+
}
|
|
3929
|
+
}
|
|
3930
|
+
}
|
|
3931
|
+
m2 = d2[0], a2 = a2.slice(d2 ? d2[0].length : 1);
|
|
3932
|
+
}
|
|
3933
|
+
if (n2.pattern = e2.slice(0, e2.length - a2.length), /^((?:\[[^\]]+\])+)(;|$)/.test(n2.pattern) && !/^\[(?:h+|m+|s+)\]/.test(n2.pattern) && F({ type: "text" }, t2), n2.fractions && n2.dec_fractions || n2.fractions && n2.exponential) throw new SyntaxError("Invalid pattern: ".concat(n2.pattern));
|
|
3934
|
+
const c2 = n2.int_pattern.join("");
|
|
3935
|
+
if (n2.grouping = c2.indexOf(",") >= 0, n2.grouping) {
|
|
3936
|
+
const e3 = c2.split(","), t3 = e3.length;
|
|
3937
|
+
t3 === 2 ? (n2.group_pri = e3[1].length, n2.group_sec = n2.group_pri) : t3 > 2 && (n2.group_pri = e3[t3 - 1].length, n2.group_sec = e3[t3 - 2].length);
|
|
3938
|
+
} else n2.group_pri = 0, n2.group_sec = 0;
|
|
3939
|
+
M(c2.replace(/[,]/g, ""), n2, "int"), M(n2.frac_pattern.join(""), n2, "frac"), M(n2.man_pattern.join(""), n2, "man");
|
|
3940
|
+
let p2 = n2.num_pattern.join(""), f2 = n2.den_pattern.join("");
|
|
3941
|
+
const g2 = /\?/.test(f2) || /\?/.test(p2);
|
|
3942
|
+
return f2 = f2.replace(/\d/g, g2 ? "?" : "#"), g2 && (f2 = f2.replace(/#$/g, "?")), M(p2, n2, "num"), M(f2, n2, "den"), g2 && (p2 = p2.replace(/#$/g, "?")), n2.int_padding = x(n2.int_pattern.join("")), n2.man_padding = x(n2.man_pattern.join("")), n2.num_padding = x(p2), n2.den_padding = x(f2), n2.den_pattern.length && (n2.denominator = parseInt(n2.den_pattern.join("").replace(/\D/g, ""), 10)), n2.integer = !!n2.int_pattern.join("").length, n2.fractions && t2.forEach((e3, n3) => {
|
|
3943
|
+
const a3 = t2[n3 + 1];
|
|
3944
|
+
e3.type === "string" && a3 && (a3.type === "num" ? e3.rule = "num+int" : a3.type === "div" ? e3.rule = "num" : a3.type === "den" && (e3.rule = "den"));
|
|
3945
|
+
}), n2;
|
|
3946
|
+
}
|
|
3947
|
+
__name(z, "z");
|
|
3948
|
+
const w = /* @__PURE__ */ __name((e2) => {
|
|
3949
|
+
const t2 = e2.condition;
|
|
3950
|
+
t2 && t2[1] < 0 && (t2[0] === "<" || t2[0] === "<=" || t2[0] === "=") || e2.tokens.unshift({ type: "minus", volatile: !0 });
|
|
3951
|
+
}, "w");
|
|
3952
|
+
function D(e2) {
|
|
3953
|
+
const t2 = [];
|
|
3954
|
+
let n2, a2 = !1, r2 = null, i2 = e2, s2 = 0, l2 = !1, d2 = 0, m2 = 0;
|
|
3955
|
+
do {
|
|
3956
|
+
if (l2 = z(i2), (l2.date || l2.general) && (l2.int_pattern.length || l2.frac_pattern.length || l2.scale !== 1 || l2.text)) throw new Error("Illegal format");
|
|
3957
|
+
if (l2.condition && (m2++, a2 = !0), l2.text) {
|
|
3958
|
+
if (r2) throw new Error("Unexpected partition");
|
|
3959
|
+
r2 = l2;
|
|
3960
|
+
}
|
|
3961
|
+
l2.locale && (n2 = o(l2.locale)), t2.push(l2), s2 = i2.charAt(l2.pattern.length) === ";" ? 1 : 0, i2 = i2.slice(l2.pattern.length + s2), d2++;
|
|
3962
|
+
} while (s2 && d2 < 4 && m2 < 3);
|
|
3963
|
+
if (s2) throw new Error("Unexpected partition");
|
|
3964
|
+
if (m2 > 2) throw new Error("Unexpected condition");
|
|
3965
|
+
const u2 = t2[3];
|
|
3966
|
+
if (u2 && (u2.int_pattern.length || u2.frac_pattern.length || u2.date)) throw new Error("Unexpected partition");
|
|
3967
|
+
if (a2) {
|
|
3968
|
+
const e3 = t2.length;
|
|
3969
|
+
if (e3 === 1 && (t2[1] = z("General"), t2[1].generated = !0), e3 < 3) {
|
|
3970
|
+
const e4 = t2[0], n3 = t2[1];
|
|
3971
|
+
if (w(e4), n3.condition) w(n3);
|
|
3972
|
+
else {
|
|
3973
|
+
const t3 = e4.condition;
|
|
3974
|
+
(t3[0] === "=" || t3[1] >= 0 && (t3[0] === ">" || t3[0] === ">=")) && n3.tokens.unshift({ type: "minus", volatile: !0 });
|
|
3975
|
+
}
|
|
3976
|
+
} else t2.forEach(w);
|
|
3977
|
+
} else {
|
|
3978
|
+
if (t2.length < 4 && r2) for (let e3 = 0, n3 = t2.length; e3 < n3; e3++) t2[e3] === r2 && t2.splice(e3, 1);
|
|
3979
|
+
if (t2.length < 1 && r2 && (t2[0] = z("General"), t2[0].generated = !0), t2.length < 2) {
|
|
3980
|
+
const e3 = z(t2[0].pattern);
|
|
3981
|
+
e3.tokens.unshift({ type: "minus", volatile: !0 }), e3.generated = !0, t2.push(e3);
|
|
3982
|
+
}
|
|
3983
|
+
if (t2.length < 3) {
|
|
3984
|
+
const e3 = z(t2[0].pattern);
|
|
3985
|
+
e3.generated = !0, t2.push(e3);
|
|
3986
|
+
}
|
|
3987
|
+
if (t2.length < 4) if (r2) t2.push(r2);
|
|
3988
|
+
else {
|
|
3989
|
+
const e3 = z("@");
|
|
3990
|
+
e3.generated = !0, t2.push(e3);
|
|
3991
|
+
}
|
|
3992
|
+
t2[0].condition = [">", 0], t2[1].condition = ["<", 0], t2[2].condition = null;
|
|
3993
|
+
}
|
|
3994
|
+
return { pattern: e2, partitions: t2, locale: n2 };
|
|
3995
|
+
}
|
|
3996
|
+
__name(D, "D");
|
|
3997
|
+
const S = Math.floor;
|
|
3998
|
+
function C(e2) {
|
|
3999
|
+
if ((!(arguments.length > 1 && arguments[1] !== void 0) || arguments[1]) && e2 >= 0) {
|
|
4000
|
+
if (e2 === 0) return [1900, 1, 0];
|
|
4001
|
+
if (e2 === 60) return [1900, 2, 29];
|
|
4002
|
+
if (e2 < 60) return [1900, e2 < 32 ? 1 : 2, (e2 - 1) % 31 + 1];
|
|
4003
|
+
}
|
|
4004
|
+
let n2 = e2 + 68569 + 2415019;
|
|
4005
|
+
const a2 = S(4 * n2 / 146097);
|
|
4006
|
+
n2 -= S((146097 * a2 + 3) / 4);
|
|
4007
|
+
const r2 = S(4e3 * (n2 + 1) / 1461001);
|
|
4008
|
+
n2 = n2 - S(1461 * r2 / 4) + 31;
|
|
4009
|
+
const i2 = S(80 * n2 / 2447), s2 = n2 - S(2447 * i2 / 80);
|
|
4010
|
+
n2 = S(i2 / 11);
|
|
4011
|
+
const o2 = i2 + 2 - 12 * n2;
|
|
4012
|
+
return [0 | 100 * (a2 - 49) + r2 + n2, 0 | o2, 0 | s2];
|
|
4013
|
+
}
|
|
4014
|
+
__name(C, "C");
|
|
4015
|
+
function E(e2) {
|
|
4016
|
+
return C(e2 + 1462);
|
|
4017
|
+
}
|
|
4018
|
+
__name(E, "E");
|
|
4019
|
+
function A(e2) {
|
|
4020
|
+
if (e2 === 60) throw new Error("#VALUE!");
|
|
4021
|
+
if (e2 <= 1) return [1317, 8, 29];
|
|
4022
|
+
if (e2 < 60) return [1317, e2 < 32 ? 9 : 10, 1 + (e2 - 2) % 30];
|
|
4023
|
+
const t2 = 10631 / 30, n2 = 0.1335;
|
|
4024
|
+
let a2 = e2 + 466935;
|
|
4025
|
+
const r2 = S(a2 / 10631);
|
|
4026
|
+
a2 -= 10631 * r2;
|
|
4027
|
+
const i2 = S((a2 - n2) / t2);
|
|
4028
|
+
a2 -= S(i2 * t2 + n2);
|
|
4029
|
+
const s2 = S((a2 + 28.5001) / 29.5);
|
|
4030
|
+
return s2 === 13 ? [30 * r2 + i2, 12, 30] : [30 * r2 + i2, s2, a2 - S(29.5001 * s2 - 29)];
|
|
4031
|
+
}
|
|
4032
|
+
__name(A, "A");
|
|
4033
|
+
function Y(e2) {
|
|
4034
|
+
let t2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, n2 = !(arguments.length > 2 && arguments[2] !== void 0) || arguments[2];
|
|
4035
|
+
const a2 = S(e2);
|
|
4036
|
+
return t2 === 6 ? A(a2) : t2 === -1 ? E(a2) : C(a2, n2);
|
|
4037
|
+
}
|
|
4038
|
+
__name(Y, "Y");
|
|
4039
|
+
const T = Math.floor, N2 = 86400;
|
|
4040
|
+
function P2(e2, t2) {
|
|
4041
|
+
let n2 = null;
|
|
4042
|
+
if (Array.isArray(e2)) {
|
|
4043
|
+
const [t3, a2, r2, i2, s2, o2] = e2;
|
|
4044
|
+
n2 = Date.UTC(t3, a2 == null ? 0 : a2 - 1, r2 != null ? r2 : 1, i2 || 0, s2 || 0, o2 || 0);
|
|
4045
|
+
} else if (e2 instanceof Date && (n2 = 1 * e2, !t2 || !t2.ignoreTimezone)) {
|
|
4046
|
+
const t3 = /* @__PURE__ */ new Date();
|
|
4047
|
+
t3.setUTCFullYear(e2.getFullYear(), e2.getMonth(), e2.getDate()), t3.setUTCHours(e2.getHours(), e2.getMinutes(), e2.getSeconds(), e2.getMilliseconds()), n2 = 1 * t3;
|
|
4048
|
+
}
|
|
4049
|
+
if (n2 != null && isFinite(n2)) {
|
|
4050
|
+
const e3 = n2 / 864e5;
|
|
4051
|
+
return e3 - (e3 <= -25509 ? -25568 : -25569);
|
|
4052
|
+
}
|
|
4053
|
+
return e2;
|
|
4054
|
+
}
|
|
4055
|
+
__name(P2, "P");
|
|
4056
|
+
function I2(e2, t2) {
|
|
4057
|
+
let n2 = 0 | e2;
|
|
4058
|
+
const a2 = N2 * (e2 - n2);
|
|
4059
|
+
let r2 = T(a2);
|
|
4060
|
+
a2 - r2 > 0.9999 && (r2 += 1, r2 === N2 && (r2 = 0, n2 += 1));
|
|
4061
|
+
const i2 = r2 < 0 ? N2 + r2 : r2, [s2, o2, l2] = Y(e2, 0, t2 && t2.leap1900), d2 = T(i2 / 60 / 60) % 60, m2 = T(i2 / 60) % 60, u2 = T(i2) % 60;
|
|
4062
|
+
if (t2 && t2.nativeDate) {
|
|
4063
|
+
const e3 = /* @__PURE__ */ new Date(0);
|
|
4064
|
+
return e3.setUTCFullYear(s2, o2 - 1, l2), e3.setUTCHours(d2, m2, u2), e3;
|
|
4065
|
+
}
|
|
4066
|
+
return [s2, o2, l2, d2, m2, u2];
|
|
4067
|
+
}
|
|
4068
|
+
__name(I2, "I");
|
|
4069
|
+
function O(e2) {
|
|
4070
|
+
return !!(e2[0] && e2[0].percent || e2[1] && e2[1].percent || e2[2] && e2[2].percent || e2[3] && e2[3].percent);
|
|
4071
|
+
}
|
|
4072
|
+
__name(O, "O");
|
|
4073
|
+
function J(e2) {
|
|
4074
|
+
return !!(e2[0] && e2[0].date || e2[1] && e2[1].date || e2[2] && e2[2].date || e2[3] && e2[3].date);
|
|
4075
|
+
}
|
|
4076
|
+
__name(J, "J");
|
|
4077
|
+
function L(e2) {
|
|
4078
|
+
const [t2, n2, a2, r2] = e2;
|
|
4079
|
+
return !(t2 && !t2.generated || n2 && !n2.generated || a2 && !a2.generated || !r2 || !r2.text || r2.generated);
|
|
4080
|
+
}
|
|
4081
|
+
__name(L, "L");
|
|
4082
|
+
const U = { text: 15, datetime: 10.8, date: 10.8, time: 10.8, percent: 10.6, currency: 10.4, grouped: 10.2, scientific: 6, number: 4, fraction: 2, general: 0, error: 0 }, R = [["DMY", 1], ["DM", 2], ["MY", 3], ["MDY", 4], ["MD", 5], ["hmsa", 6], ["hma", 7], ["hms", 8], ["hm", 9]], G2 = { total: 1, sign: 0, period: 0, int: 1, frac: 0 }, H2 = /* @__PURE__ */ __name((e2, t2) => e2.replace(/\./, t2.decimal), "H");
|
|
4083
|
+
function B(e2, t2, n2, a2) {
|
|
4084
|
+
const r2 = 0 | n2;
|
|
4085
|
+
if (typeof n2 == "string") e2.push(n2);
|
|
4086
|
+
else if (n2 === r2) e2.push(Math.abs(r2));
|
|
4087
|
+
else {
|
|
4088
|
+
const t3 = Math.abs(n2);
|
|
4089
|
+
let r3 = t3 ? Math.floor(Math.log10(t3)) : 0, i2 = r3 < 0 ? t3 * 10 ** -r3 : t3 / 10 ** r3;
|
|
4090
|
+
i2 === 10 && (i2 = 1, r3++);
|
|
4091
|
+
const s2 = function(e3) {
|
|
4092
|
+
let t4 = !(arguments.length > 1 && arguments[1] !== void 0) || arguments[1];
|
|
4093
|
+
const n3 = Math.abs(e3);
|
|
4094
|
+
if (!n3) return G2;
|
|
4095
|
+
const a3 = t4 && e3 < 0 ? 1 : 0, r4 = Math.floor(n3), i3 = Math.floor(Math.log10(n3) + 1);
|
|
4096
|
+
let s3 = 0, o3 = 0;
|
|
4097
|
+
if (r4 !== n3) {
|
|
4098
|
+
s3 = 1;
|
|
4099
|
+
const e4 = String(c(i3 < 0 ? n3 * 10 ** -i3 : n3 / 10 ** i3, 15));
|
|
4100
|
+
let t5 = e4.length, a4 = !0, r5 = 0;
|
|
4101
|
+
for (; r5 <= e4.length; ) {
|
|
4102
|
+
if (e4[r5] === ".") {
|
|
4103
|
+
t5--;
|
|
4104
|
+
break;
|
|
4105
|
+
}
|
|
4106
|
+
e4[r5] === "0" && a4 ? t5-- : a4 = !1, r5++;
|
|
4107
|
+
}
|
|
4108
|
+
o3 = t5 - i3, o3 < 0 && (o3 = 0, s3 = 0);
|
|
4109
|
+
}
|
|
4110
|
+
return { total: a3 + Math.max(i3, 1) + s3 + o3, digits: Math.max(i3, 0) + o3, sign: a3, period: s3, int: Math.max(i3, 1), frac: o3 };
|
|
4111
|
+
}(t3), o2 = /* @__PURE__ */ __name(() => {
|
|
4112
|
+
const t4 = Math.abs(r3);
|
|
4113
|
+
let n3;
|
|
4114
|
+
n3 = i2 === 1 ? i2 : c(i2, 5), e2.push(H2(n3 + "", a2), a2.exponent, r3 < 0 ? a2.negative : a2.positive, t4 < 10 ? "0" : "", t4);
|
|
4115
|
+
}, "o");
|
|
4116
|
+
if (r3 >= -4 && r3 <= -1) {
|
|
4117
|
+
const n3 = t3.toPrecision(10 + r3).replace(/\.?0+$/, "");
|
|
4118
|
+
e2.push(H2(n3, a2));
|
|
4119
|
+
} else if (r3 === 10) {
|
|
4120
|
+
const n3 = t3.toFixed(10).slice(0, 12).replace(/\.$/, "");
|
|
4121
|
+
e2.push(H2(n3, a2));
|
|
4122
|
+
} else if (Math.abs(r3) <= 9) if (s2.total <= 11) {
|
|
4123
|
+
const n3 = c(t3, 9).toFixed(s2.frac);
|
|
4124
|
+
e2.push(H2(n3, a2));
|
|
4125
|
+
} else r3 === 9 ? e2.push(Math.floor(t3)) : r3 >= 0 && r3 < 9 ? e2.push(c(t3, 9 - r3)) : o2();
|
|
4126
|
+
else s2.total >= 12 ? o2() : Math.floor(t3) === t3 ? e2.push(Math.floor(t3)) : e2.push(H2(c(t3, 9).toFixed(s2.frac), a2));
|
|
4127
|
+
}
|
|
4128
|
+
return e2;
|
|
4129
|
+
}
|
|
4130
|
+
__name(B, "B");
|
|
4131
|
+
const $ = 86400, W = { int: "integer", frac: "fraction", man: "mantissa", num: "numerator", den: "denominator" }, Z = /* @__PURE__ */ __name(function(e2) {
|
|
4132
|
+
let t2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
|
|
4133
|
+
const n2 = Math.floor(Math.log10(e2));
|
|
4134
|
+
return t2 > 1 ? Math.floor(n2 / t2) * t2 : n2;
|
|
4135
|
+
}, "Z");
|
|
4136
|
+
function K(e2, t2, n2, a2) {
|
|
4137
|
+
let r2 = "", i2 = "", s2 = "", o2 = "", l2 = "", d2 = 0, m2 = 0 | e2, f2 = 0, g2 = 0, h2 = 1, _2 = 0, b2 = 0, j2 = 0, v2 = 0, M2 = 0, k2 = 0;
|
|
4138
|
+
const x2 = a2 || u;
|
|
4139
|
+
if (!t2.text && isFinite(t2.scale) && t2.scale !== 1 && (e2 = function(e3) {
|
|
4140
|
+
if (e3 === 0) return e3;
|
|
4141
|
+
const t3 = Math.ceil(Math.log10(e3 < 0 ? -e3 : e3)), n3 = 10 ** (16 - Math.floor(t3));
|
|
4142
|
+
return Math.round(e3 * n3) / n3;
|
|
4143
|
+
}(e2 * t2.scale)), t2.exponential) {
|
|
4144
|
+
let n3 = Math.abs(e2);
|
|
4145
|
+
if (n3) {
|
|
4146
|
+
const e3 = 10 ** -Z(n3, t2.int_max), a3 = c(n3 * e3, t2.frac_max) / e3;
|
|
4147
|
+
d2 = Z(a3, t2.int_max);
|
|
4148
|
+
}
|
|
4149
|
+
n3 /= 10 ** d2, e2 = e2 < 0 ? -n3 : n3, r2 += Math.abs(d2);
|
|
4150
|
+
}
|
|
4151
|
+
if (t2.integer) {
|
|
4152
|
+
const n3 = Math.abs(c(e2, t2.fractions ? 1 : t2.frac_max));
|
|
4153
|
+
l2 += n3 < 1 ? "" : Math.floor(n3);
|
|
4154
|
+
}
|
|
4155
|
+
if (t2.grouping) {
|
|
4156
|
+
let e3 = "", n3 = l2.length;
|
|
4157
|
+
for (n3 > t2.group_pri && (n3 -= t2.group_pri, e3 = x2.group + l2.slice(n3, n3 + t2.group_pri) + e3); n3 > t2.group_sec; ) n3 -= t2.group_sec, e3 = x2.group + l2.slice(n3, n3 + t2.group_sec) + e3;
|
|
4158
|
+
l2 = n3 ? l2.slice(0, n3) + e3 : e3;
|
|
4159
|
+
}
|
|
4160
|
+
t2.dec_fractions && (o2 = String(c(e2, t2.frac_max)).split(".")[1] || "");
|
|
4161
|
+
let F2 = !1;
|
|
4162
|
+
if (t2.fractions) {
|
|
4163
|
+
const n3 = Math.abs(t2.integer ? e2 % 1 : e2);
|
|
4164
|
+
if (n3) if (F2 = !0, isFinite(t2.denominator)) s2 += t2.denominator, i2 += c(n3 * t2.denominator), i2 === "0" && (i2 = "", s2 = "", F2 = !1, l2 || (l2 = "0"));
|
|
4165
|
+
else {
|
|
4166
|
+
const e3 = p(n3, t2.integer ? t2.num_max : 1 / 0, t2.den_max);
|
|
4167
|
+
i2 += e3[0], s2 += e3[1], t2.integer && i2 === "0" && (l2 || (l2 = "0"), i2 = "", s2 = "", F2 = !1);
|
|
4168
|
+
}
|
|
4169
|
+
}
|
|
4170
|
+
if (t2.date) {
|
|
4171
|
+
m2 = Math.trunc(e2);
|
|
4172
|
+
const a3 = $ * (e2 - m2);
|
|
4173
|
+
if (f2 = Math.floor(a3), k2 = a3 - f2, Math.abs(k2) < 1e-6 ? k2 = 0 : k2 > 0.9999 && (k2 = 0, f2 += 1, f2 === $ && (f2 = 0, m2 += 1)), k2) {
|
|
4174
|
+
const e3 = 512 & t2.date || 256 & t2.date || 128 & t2.date;
|
|
4175
|
+
(e3 === 512 && k2 > 0.9995 || e3 === 256 && k2 > 0.995 || e3 === 128 && k2 > 0.95 || !e3 && k2 >= 0.5) && (f2++, k2 = 0);
|
|
4176
|
+
}
|
|
4177
|
+
if (m2 || t2.date_system) {
|
|
4178
|
+
const a4 = Y(e2, t2.date_system, n2.leap1900);
|
|
4179
|
+
g2 = a4[0], h2 = a4[1], _2 = a4[2];
|
|
4180
|
+
}
|
|
4181
|
+
if (f2) {
|
|
4182
|
+
const e3 = f2 < 0 ? $ + f2 : f2;
|
|
4183
|
+
M2 = Math.floor(e3) % 60, v2 = Math.floor(e3 / 60) % 60, j2 = Math.floor(e3 / 60 / 60) % 60;
|
|
4184
|
+
}
|
|
4185
|
+
if (b2 = (6 + m2) % 7, t2.date_eval && (z2 = e2, w2 = m2 + f2 / $, n2.dateSpanLarge ? z2 < -694324 || w2 >= 35830291 : z2 < 0 || w2 >= 2958466)) {
|
|
4186
|
+
if (n2.dateErrorThrows) throw new Error("Date out of bounds");
|
|
4187
|
+
return n2.dateErrorNumber ? B(e2 < 0 ? [x2.negative] : [], 0, e2, x2).join("") : n2.overflow;
|
|
4188
|
+
}
|
|
4189
|
+
}
|
|
4190
|
+
var z2, w2;
|
|
4191
|
+
if (t2.int_padding && (l2 = t2.int_padding.length === 1 ? l2 || t2.int_padding : t2.int_padding.substring(0, t2.int_padding.length - l2.length) + l2), t2.num_padding && (i2 = t2.num_padding.length === 1 ? i2 || t2.num_padding : t2.num_padding.substring(0, t2.num_padding.length - i2.length) + i2), t2.den_padding && (s2 = t2.den_padding.length === 1 ? s2 || t2.den_padding : s2 + t2.den_padding.slice(s2.length)), t2.man_padding) {
|
|
4192
|
+
const e3 = t2.exp_plus ? "+" : "";
|
|
4193
|
+
r2 = t2.man_padding.length === 1 ? (d2 < 0 ? "-" : e3) + (r2 || t2.man_padding) : (d2 < 0 ? "-" : e3) + t2.man_padding.slice(0, t2.man_padding.length - r2.length) + r2;
|
|
4194
|
+
}
|
|
4195
|
+
const D2 = [];
|
|
4196
|
+
let S2 = 0;
|
|
4197
|
+
const C2 = { int: 0, frac: 0, man: 0, num: 0, den: 0 };
|
|
4198
|
+
for (let d3 = 0, u2 = t2.tokens.length; d3 < u2; d3++) {
|
|
4199
|
+
const u3 = t2.tokens[d3], c2 = u3.num ? u3.num.length : 0;
|
|
4200
|
+
if (u3.type === "string") u3.rule ? u3.rule === "num" ? F2 ? D2.push(u3.value) : (t2.num_min > 0 || t2.den_min > 0) && D2.push(u3.value.replace(/./g, y["?"])) : u3.rule === "num+int" ? F2 && l2 ? D2.push(u3.value) : t2.den_min > 0 && (l2 || t2.num_min) && D2.push(u3.value.replace(/./g, y["?"])) : u3.rule === "den" && (F2 ? D2.push(u3.value) : (t2.den_min > 0 || t2.den_min > 0) && D2.push(u3.value.replace(/./g, y["?"]))) : D2.push(u3.value);
|
|
4201
|
+
else if (u3.type === "error") D2.push(n2.invalid);
|
|
4202
|
+
else if (u3.type === "point") D2.push(t2.date ? u3.value : x2.decimal);
|
|
4203
|
+
else if (u3.type === "general") B(D2, 0, e2, x2);
|
|
4204
|
+
else if (u3.type === "exp") D2.push(x2.exponent);
|
|
4205
|
+
else if (u3.type === "minus") u3.volatile && t2.date || u3.volatile && (e2 >= 0 || typeof e2 != "number") || (u3.volatile && !t2.fractions && (t2.integer || t2.dec_fractions) ? (e2 < 0 && l2 && l2 !== "0" || o2) && D2.push(x2.negative) : D2.push(x2.negative));
|
|
4206
|
+
else if (u3.type === "plus") D2.push(x2.positive);
|
|
4207
|
+
else if (u3.type === "text") D2.push(e2);
|
|
4208
|
+
else if (u3.type === "div") F2 ? D2.push("/") : t2.num_min > 0 || t2.den_min > 0 ? D2.push(y["?"]) : D2.push(y["#"]);
|
|
4209
|
+
else if (u3.type === "int") if (t2.int_pattern.length === 1) D2.push(l2);
|
|
4210
|
+
else {
|
|
4211
|
+
const e3 = S2 ? t2.int_pattern.join("").length - C2.int : 1 / 0, n3 = S2 === t2.int_pattern.length - 1 ? 0 : t2.int_pattern.join("").length - (C2.int + u3.num.length);
|
|
4212
|
+
D2.push(l2.substring(l2.length - e3, l2.length - n3)), S2++, C2.int += u3.num.length;
|
|
4213
|
+
}
|
|
4214
|
+
else if (u3.type === "frac") {
|
|
4215
|
+
const e3 = C2.frac;
|
|
4216
|
+
for (let t3 = 0; t3 < c2; t3++) D2.push(o2[t3 + e3] || y[u3.num[t3]]);
|
|
4217
|
+
C2.frac += c2;
|
|
4218
|
+
} else if (u3.type in W) t2[u3.type + "_pattern"].length === 1 ? (u3.type === "int" && D2.push(l2), u3.type === "frac" && D2.push(o2), u3.type === "man" && D2.push(r2), u3.type === "num" && D2.push(i2), u3.type === "den" && D2.push(s2)) : (D2.push(W[u3.type].slice(C2[u3.type], C2[u3.type] + c2)), C2[u3.type] += c2);
|
|
4219
|
+
else if (u3.type === "year") g2 < 0 && D2.push(x2.negative), D2.push(String(Math.abs(g2)).padStart(4, "0"));
|
|
4220
|
+
else if (u3.type === "year-short") {
|
|
4221
|
+
const e3 = g2 % 100;
|
|
4222
|
+
D2.push(e3 < 10 ? "0" : "", e3);
|
|
4223
|
+
} else if (u3.type === "month") D2.push(u3.pad && h2 < 10 ? "0" : "", h2);
|
|
4224
|
+
else if (u3.type === "monthname-single") t2.date_system === 6 ? D2.push(x2.mmmm6[h2 - 1].charAt(0)) : D2.push(x2.mmmm[h2 - 1].charAt(0));
|
|
4225
|
+
else if (u3.type === "monthname-short") t2.date_system === 6 ? D2.push(x2.mmm6[h2 - 1]) : D2.push(x2.mmm[h2 - 1]);
|
|
4226
|
+
else if (u3.type === "monthname") t2.date_system === 6 ? D2.push(x2.mmmm6[h2 - 1]) : D2.push(x2.mmmm[h2 - 1]);
|
|
4227
|
+
else if (u3.type === "weekday-short") D2.push(x2.ddd[b2]);
|
|
4228
|
+
else if (u3.type === "weekday") D2.push(x2.dddd[b2]);
|
|
4229
|
+
else if (u3.type === "day") D2.push(u3.pad && _2 < 10 ? "0" : "", _2);
|
|
4230
|
+
else if (u3.type === "hour") {
|
|
4231
|
+
const e3 = j2 % t2.clock || (t2.clock < 24 ? t2.clock : 0);
|
|
4232
|
+
D2.push(u3.pad && e3 < 10 ? "0" : "", e3);
|
|
4233
|
+
} else if (u3.type === "min") D2.push(u3.pad && v2 < 10 ? "0" : "", v2);
|
|
4234
|
+
else if (u3.type === "sec") D2.push(u3.pad && M2 < 10 ? "0" : "", M2);
|
|
4235
|
+
else if (u3.type === "subsec") {
|
|
4236
|
+
D2.push(x2.decimal);
|
|
4237
|
+
const e3 = k2.toFixed(t2.sec_decimals);
|
|
4238
|
+
D2.push(e3.slice(2, 2 + u3.decimals));
|
|
4239
|
+
} else if (u3.type === "am") {
|
|
4240
|
+
const e3 = j2 < 12 ? 0 : 1;
|
|
4241
|
+
u3.short && !a2 ? D2.push("AP"[e3]) : D2.push(x2.ampm[e3]);
|
|
4242
|
+
} else if (u3.type === "hour-elap") {
|
|
4243
|
+
e2 < 0 && D2.push(x2.negative);
|
|
4244
|
+
const t3 = 24 * m2 + Math.floor(Math.abs(f2) / 3600);
|
|
4245
|
+
D2.push(String(Math.abs(t3)).padStart(u3.pad, "0"));
|
|
4246
|
+
} else if (u3.type === "min-elap") {
|
|
4247
|
+
e2 < 0 && D2.push(x2.negative);
|
|
4248
|
+
const t3 = 1440 * m2 + Math.floor(Math.abs(f2) / 60);
|
|
4249
|
+
D2.push(String(Math.abs(t3)).padStart(u3.pad, "0"));
|
|
4250
|
+
} else if (u3.type === "sec-elap") {
|
|
4251
|
+
e2 < 0 && D2.push(x2.negative);
|
|
4252
|
+
const t3 = m2 * $ + Math.abs(f2);
|
|
4253
|
+
D2.push(String(Math.abs(t3)).padStart(u3.pad, "0"));
|
|
4254
|
+
} else if (u3.type === "b-year") D2.push(g2 + 543);
|
|
4255
|
+
else if (u3.type === "b-year-short") {
|
|
4256
|
+
const e3 = (g2 + 543) % 100;
|
|
4257
|
+
D2.push(e3 < 10 ? "0" : "", e3);
|
|
4258
|
+
}
|
|
4259
|
+
}
|
|
4260
|
+
return n2.nbsp ? D2.join("") : D2.join("").replace(/\u00a0/g, " ");
|
|
4261
|
+
}
|
|
4262
|
+
__name(K, "K");
|
|
4263
|
+
function q(e2, t2) {
|
|
4264
|
+
for (let n2 = 0; n2 < 3; n2++) {
|
|
4265
|
+
const a2 = t2[n2];
|
|
4266
|
+
if (a2) {
|
|
4267
|
+
let t3;
|
|
4268
|
+
if (a2.condition) {
|
|
4269
|
+
const n3 = a2.condition[0], r2 = a2.condition[1];
|
|
4270
|
+
n3 === "=" ? t3 = e2 === r2 : n3 === ">" ? t3 = e2 > r2 : n3 === "<" ? t3 = e2 < r2 : n3 === ">=" ? t3 = e2 >= r2 : n3 === "<=" ? t3 = e2 <= r2 : n3 === "<>" && (t3 = e2 !== r2);
|
|
4271
|
+
} else t3 = !0;
|
|
4272
|
+
if (t3) return a2;
|
|
4273
|
+
}
|
|
4274
|
+
}
|
|
4275
|
+
}
|
|
4276
|
+
__name(q, "q");
|
|
4277
|
+
const V = z("@"), Q = "black", X = {};
|
|
4278
|
+
function ee(e2, t2) {
|
|
4279
|
+
if (e2) {
|
|
4280
|
+
const n2 = e2[0];
|
|
4281
|
+
t2[n2] = t2[n2] || {}, ee(e2.slice(1), t2[n2]);
|
|
4282
|
+
} else t2.$ = !0;
|
|
4283
|
+
}
|
|
4284
|
+
__name(ee, "ee"), ["d-F-y", "d-F-Y", "d-M-y", "d-M-Y", "F-d-y", "F-d-Y", "F-j-y", "F-j-Y", "j-F-y", "j-F-Y", "j-M-y", "j-M-Y", "M-d-y", "M-d-Y", "M-j-y", "M-j-Y", "m-d-y", "m-d-Y", "m-j-y", "m-j-Y", "n-d-y", "n-d-Y", "n-j-y", "n-j-Y", "y-F-d", "y-F-j", "y-M-d", "y-M-j", "Y-F-d", "Y-F-j", "Y-M-d", "Y-m-d", "Y-M-j", "Y-m-j", "Y-n-d", "Y-n-j", "j-F", "j-M", "d-F", "d-M", "n-d", "n-j", "n-Y", "m-d", "m-j", "m-Y", "M-Y", "M-y", "F-y", "F-Y", "Y-M", "Y-n", "Y-m", "Y-F", "Y-M"].forEach((e2) => {
|
|
4285
|
+
ee(e2, X), ee(e2 + " x", X), ee(e2 + " l", X), ee(e2 + " l x", X), ee("l " + e2, X), ee("l " + e2 + " x", X), ee(e2 + " D", X), ee(e2 + " D x", X), ee("D " + e2, X), ee("D " + e2 + " x", X);
|
|
4286
|
+
});
|
|
4287
|
+
const te = { jan: 1, feb: 2, mar: 3, apr: 4, may: 5, jun: 6, jul: 7, aug: 8, sep: 9, oct: 10, nov: 11, dec: 12 }, ne = { january: 1, february: 2, march: 3, april: 4, june: 6, july: 7, august: 8, september: 9, october: 10, november: 11, december: 12 }, ae = { sunday: "l", monday: "l", tuesday: "l", wednesday: "l", thursday: "l", friday: "l", saturday: "l", sun: "D", mon: "D", tue: "D", wed: "D", thu: "D", fri: "D", sat: "D" }, re = (/* @__PURE__ */ new Date()).getUTCFullYear();
|
|
4288
|
+
function ie(e2) {
|
|
4289
|
+
const t2 = new RegExp("^([\\s+%" + j.join("") + "(-]*)(((?:(?:\\d[\\d,]*)(?:\\.\\d*)?|(?:\\.\\d+)))([eE][+-]?\\d+)?)([\\s%" + j.join("") + ")]*)$").exec(e2);
|
|
4290
|
+
if (t2) {
|
|
4291
|
+
const [, e3, n2, a2, r2, i2] = t2;
|
|
4292
|
+
let s2 = 1, o2 = "", l2 = !1, d2 = !1, m2 = !1, u2 = !1, c2 = !1, p2 = null, f2 = !1, g2 = parseFloat(n2.replace(/,/g, ""));
|
|
4293
|
+
if (!isFinite(g2)) return null;
|
|
4294
|
+
for (let t3 = 0; t3 < e3.length; t3++) {
|
|
4295
|
+
const n3 = e3[t3];
|
|
4296
|
+
if (n3 === "-") {
|
|
4297
|
+
if (l2 || d2) return null;
|
|
4298
|
+
l2 = !0, s2 = -1;
|
|
4299
|
+
} else if (v.test(n3)) {
|
|
4300
|
+
if (c2) return null;
|
|
4301
|
+
c2 = !0, p2 = n3;
|
|
4302
|
+
} else if (n3 === "(") {
|
|
4303
|
+
if (d2 || l2) return null;
|
|
4304
|
+
d2 = !0, s2 = -1;
|
|
4305
|
+
} else if (n3 === "%") {
|
|
4306
|
+
if (u2) return null;
|
|
4307
|
+
u2 = !0;
|
|
4308
|
+
}
|
|
4309
|
+
}
|
|
4310
|
+
for (let e4 = 0; e4 < i2.length; e4++) {
|
|
4311
|
+
const t3 = i2[e4];
|
|
4312
|
+
if (v.test(t3)) {
|
|
4313
|
+
if (c2) return null;
|
|
4314
|
+
c2 = !0, p2 = t3, f2 = !0;
|
|
4315
|
+
} else if (t3 === ")") {
|
|
4316
|
+
if (m2 || !d2) return null;
|
|
4317
|
+
m2 = !0;
|
|
4318
|
+
} else if (t3 === "%") {
|
|
4319
|
+
if (u2) return null;
|
|
4320
|
+
u2 = !0;
|
|
4321
|
+
}
|
|
4322
|
+
}
|
|
4323
|
+
if (r2) {
|
|
4324
|
+
if (u2 || c2) return null;
|
|
4325
|
+
o2 = "0.00E+00";
|
|
4326
|
+
} else if (u2) {
|
|
4327
|
+
if (c2) return null;
|
|
4328
|
+
o2 = a2.includes(".") ? "0.00%" : "0%", g2 *= 0.01;
|
|
4329
|
+
} else if (c2) {
|
|
4330
|
+
const e4 = a2.includes(".") ? "#,##0.00" : "#,##0";
|
|
4331
|
+
o2 = f2 ? e4 + p2 : p2 + e4;
|
|
4332
|
+
} else a2.includes(",") && (o2 = a2.includes(".") ? "#,##0.00" : "#,##0");
|
|
4333
|
+
const h2 = { v: g2 * s2 };
|
|
4334
|
+
return o2 && (h2.z = o2), h2;
|
|
4335
|
+
}
|
|
4336
|
+
}
|
|
4337
|
+
__name(ie, "ie");
|
|
4338
|
+
const se = /* @__PURE__ */ __name((e2, t2, n2) => {
|
|
4339
|
+
const a2 = n2.path || "", r2 = Object.keys(t2);
|
|
4340
|
+
for (let i2 = 0; i2 < r2.length; i2++) {
|
|
4341
|
+
let s2;
|
|
4342
|
+
const o2 = r2[i2];
|
|
4343
|
+
if (t2[o2]) {
|
|
4344
|
+
if (o2 === "$" || o2 === "€") e2 || (s2 = n2);
|
|
4345
|
+
else if (o2 === "-") {
|
|
4346
|
+
const r3 = /^(\s*([./-]|,\s)\s*|\s+)/.exec(e2);
|
|
4347
|
+
if (r3) {
|
|
4348
|
+
const i3 = r3[1] === "-" || r3[1] === "/" || r3[1] === "." ? r3[1] : " ";
|
|
4349
|
+
if (!n2.sep || n2.sep === i3) {
|
|
4350
|
+
const l2 = r3[0].replace(/\s+/g, " ");
|
|
4351
|
+
s2 = se(e2.slice(r3[0].length), t2[o2], { ...n2, sep: i3, path: a2 + l2 });
|
|
4352
|
+
}
|
|
4353
|
+
}
|
|
4354
|
+
} else if (o2 === " ") {
|
|
4355
|
+
const r3 = /^[,.]?\s+/.exec(e2);
|
|
4356
|
+
if (r3) {
|
|
4357
|
+
const i3 = r3[0].replace(/\s+/g, " ");
|
|
4358
|
+
s2 = se(e2.slice(r3[0].length), t2[o2], { ...n2, path: a2 + i3 });
|
|
4359
|
+
}
|
|
4360
|
+
} else if (o2 === "j" || o2 === "d") {
|
|
4361
|
+
const r3 = /^(0?[1-9]|1\d|2\d|3[01])\b/.exec(e2);
|
|
4362
|
+
r3 && (s2 = se(e2.slice(r3[0].length), t2[o2], { ...n2, day: r3[0], path: a2 + o2 }));
|
|
4363
|
+
} else if (o2 === "n" || o2 === "m") {
|
|
4364
|
+
const r3 = /^(0?[1-9]|1[012])\b/.exec(e2);
|
|
4365
|
+
r3 && (s2 = se(e2.slice(r3[0].length), t2[o2], { ...n2, month: +r3[0], _mon: r3[0], path: a2 + o2 }));
|
|
4366
|
+
} else if (o2 === "F" || o2 === "M") {
|
|
4367
|
+
const r3 = /^([a-z]{3,9})\b/i.exec(e2), i3 = r3 && (o2 === "F" ? ne : te)[r3[0].toLowerCase()];
|
|
4368
|
+
i3 && (s2 = se(e2.slice(r3[0].length), t2[o2], { ...n2, month: i3, _mon: r3[0], path: a2 + o2 }));
|
|
4369
|
+
} else if (o2 === "l" || o2 === "D") {
|
|
4370
|
+
const r3 = /^([a-z]{3,9})\b/i.exec(e2);
|
|
4371
|
+
(r3 && ae[r3[0].toLowerCase()]) === o2 && (s2 = se(e2.slice(r3[0].length), t2[o2], { ...n2, path: a2 + o2 }));
|
|
4372
|
+
} else if (o2 === "y") {
|
|
4373
|
+
const r3 = /^\d\d\b/.exec(e2);
|
|
4374
|
+
if (r3) {
|
|
4375
|
+
const i3 = +r3[0] >= 30 ? +r3[0] + 1900 : +r3[0] + 2e3;
|
|
4376
|
+
s2 = se(e2.slice(r3[0].length), t2[o2], { ...n2, year: i3, path: a2 + o2 });
|
|
4377
|
+
}
|
|
4378
|
+
} else if (o2 === "Y") {
|
|
4379
|
+
const r3 = /^\d\d\d\d\b/.exec(e2);
|
|
4380
|
+
r3 && (s2 = se(e2.slice(r3[0].length), t2[o2], { ...n2, year: +r3[0], path: a2 + o2 }));
|
|
4381
|
+
} else {
|
|
4382
|
+
if (o2 !== "x") throw new Error('Unknown date token "'.concat(o2, '"'));
|
|
4383
|
+
{
|
|
4384
|
+
const r3 = le(e2);
|
|
4385
|
+
r3 && (s2 = se("", t2[o2], { ...n2, time: r3.v, tf: r3.z, path: a2 + o2 }));
|
|
4386
|
+
}
|
|
4387
|
+
}
|
|
4388
|
+
if (s2) return s2;
|
|
4389
|
+
}
|
|
4390
|
+
}
|
|
4391
|
+
}, "se");
|
|
4392
|
+
function oe(e2, t2) {
|
|
4393
|
+
const n2 = se(e2.trim(), X, { path: "" });
|
|
4394
|
+
if (n2) {
|
|
4395
|
+
var a2;
|
|
4396
|
+
if (n2.sep === "." && n2.path.length === 3) return null;
|
|
4397
|
+
const e3 = +((a2 = n2.year) !== null && a2 !== void 0 ? a2 : re);
|
|
4398
|
+
if (n2.day || (n2.day = 1), !function(e4, t3, n3) {
|
|
4399
|
+
if (n3 < 1 || t3 < 1 || t3 > 12) return !1;
|
|
4400
|
+
if (t3 === 2) {
|
|
4401
|
+
if (n3 > (e4 % 4 == 0 && e4 % 100 != 0 || e4 % 400 == 0 || e4 === 1900 ? 29 : 28)) return !1;
|
|
4402
|
+
} else if ((t3 === 4 || t3 === 6 || t3 === 9 || t3 === 11) && n3 > 30 || (t3 === 1 || t3 === 3 || t3 === 5 || t3 === 7 || t3 === 8 || t3 === 10 || t3 === 12) && n3 > 31) return !1;
|
|
4403
|
+
return !0;
|
|
4404
|
+
}(e3, n2.month, n2.day)) return null;
|
|
4405
|
+
let r2 = -1 / 0;
|
|
4406
|
+
if (e3 < 1900) return null;
|
|
4407
|
+
e3 <= 1900 && n2.month <= 2 ? r2 = 25568 : e3 < 1e4 && (r2 = 25569);
|
|
4408
|
+
const i2 = Date.UTC(e3, n2.month - 1, n2.day) / 864e5 + r2 + (n2.time || 0);
|
|
4409
|
+
if (i2 >= 0 && i2 <= 2958465) {
|
|
4410
|
+
const e4 = n2._mon[0] === "0" || n2.day[0] === "0" || n2._mon.length === 2 && n2.day.length === 2, a3 = n2.path.replace(/[jdlDnmMFyYx-]/g, (t3) => t3 === "j" || t3 === "d" ? e4 ? "dd" : "d" : t3 === "D" ? "ddd" : t3 === "l" ? "dddd" : t3 === "n" || t3 === "m" ? e4 ? "mm" : "m" : t3 === "M" ? "mmm" : t3 === "F" ? "mmmm" : t3 === "y" ? "yy" : t3 === "x" ? n2.tf || "" : t3 === "Y" ? "yyyy" : t3);
|
|
4411
|
+
return t2 && t2.nativeDate ? { v: I2(i2, t2), z: a3 } : { v: i2, z: a3 };
|
|
4412
|
+
}
|
|
4413
|
+
}
|
|
4414
|
+
return null;
|
|
4415
|
+
}
|
|
4416
|
+
__name(oe, "oe");
|
|
4417
|
+
function le(e2) {
|
|
4418
|
+
const t2 = /^\s*([10]?\d|2[0-4])(?::([0-5]\d|\d))?(?::([0-5]\d|\d))?(\.\d{1,10})?(?:\s*([AP])M?)?\s*$/i.exec(e2);
|
|
4419
|
+
if (t2) {
|
|
4420
|
+
const [, e3, n2, a2, r2, i2] = t2;
|
|
4421
|
+
if (r2 && !a2 || !i2 && !n2 && !a2) return null;
|
|
4422
|
+
let s2 = 1 * (e3 || 0);
|
|
4423
|
+
if (i2) {
|
|
4424
|
+
if (s2 >= 13) return null;
|
|
4425
|
+
i2[0] !== "p" && i2[0] !== "P" || (s2 += 12);
|
|
4426
|
+
}
|
|
4427
|
+
return { v: (60 * s2 * 60 + 60 * (1 * (n2 || 0)) + 1 * (a2 || 0) + 1 * (r2 || 0)) / 86400, z: (e3.length === 2 ? "hh" : "h") + ":mm" + (a2 ? ":ss" : "") + (i2 ? " AM/PM" : "") };
|
|
4428
|
+
}
|
|
4429
|
+
return null;
|
|
4430
|
+
}
|
|
4431
|
+
__name(le, "le");
|
|
4432
|
+
function de(e2) {
|
|
4433
|
+
return /^\s*true\s*$/i.test(e2) ? { v: !0 } : /^\s*false\s*$/i.test(e2) ? { v: !1 } : null;
|
|
4434
|
+
}
|
|
4435
|
+
__name(de, "de");
|
|
4436
|
+
const me = {};
|
|
4437
|
+
function ue(e2, t2) {
|
|
4438
|
+
const { pattern: n2, partitions: a2, locale: r2 } = e2, i2 = /* @__PURE__ */ __name((e3) => {
|
|
4439
|
+
const n3 = Object.assign({}, h(), t2, e3);
|
|
4440
|
+
return r2 && (n3.locale = r2), n3;
|
|
4441
|
+
}, "i"), s2 = /* @__PURE__ */ __name((e3, t3) => {
|
|
4442
|
+
const n3 = i2(t3);
|
|
4443
|
+
return function(e4, t4, n4) {
|
|
4444
|
+
const a3 = l(n4.locale), r3 = t4[3] ? t4[3] : V;
|
|
4445
|
+
if (typeof e4 == "boolean" && (e4 = e4 ? "TRUE" : "FALSE"), e4 == null) return "";
|
|
4446
|
+
if (typeof e4 != "number") return K(e4, r3, n4, a3);
|
|
4447
|
+
if (!isFinite(e4)) {
|
|
4448
|
+
const t5 = a3 || u;
|
|
4449
|
+
return isNaN(e4) ? t5.nan : (e4 < 0 ? t5.negative : "") + t5.infinity;
|
|
4450
|
+
}
|
|
4451
|
+
const i3 = q(e4, t4);
|
|
4452
|
+
return i3 ? K(e4, i3, n4, a3) : n4.overflow;
|
|
4453
|
+
}(P2(e3, n3), a2, n3);
|
|
4454
|
+
}, "s");
|
|
4455
|
+
s2.color = (e3, t3) => function(e4, t4) {
|
|
4456
|
+
if (typeof e4 != "number" || !isFinite(e4)) return (t4[3] ? t4[3].color : V.color) || Q;
|
|
4457
|
+
const n3 = q(e4, t4);
|
|
4458
|
+
return n3 && n3.color || Q;
|
|
4459
|
+
}(P2(e3, i2(t3)), a2);
|
|
4460
|
+
const o2 = function(e3) {
|
|
4461
|
+
var t3;
|
|
4462
|
+
let n3 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null;
|
|
4463
|
+
const [a3, r3] = e3, i3 = a3.frac_max, s3 = { type: "general", isDate: J(e3), isText: L(e3), isPercent: O(e3), maxDecimals: a3.general ? 9 : i3, scale: (t3 = a3.scale) !== null && t3 !== void 0 ? t3 : 1, color: 0, parentheses: 0, grouped: a3.grouping ? 1 : 0, _partitions: e3 }, o3 = !s3.isDate && !s3.isText && !a3.error && a3.tokens.some((e4) => e4.type === "string" && (n3 ? e4.value === n3 : v.test(e4.value)));
|
|
4464
|
+
let l2 = "G", d2 = i3 >= 0 ? Math.min(15, i3) : "", m2 = "", u2 = "";
|
|
4465
|
+
if (r3 && r3.color && (u2 = "-", s3.color = 1), a3.parens && (m2 = "()", s3.parentheses = 1), o3) l2 = "C", s3.type = "currency";
|
|
4466
|
+
else if (a3.error) s3.type = "error", s3.maxDecimals = 0;
|
|
4467
|
+
else if (s3.isDate) {
|
|
4468
|
+
let e4 = 0, t4 = 0, n4 = "";
|
|
4469
|
+
a3.tokens.forEach((a4) => {
|
|
4470
|
+
const r5 = a4.type;
|
|
4471
|
+
/^(b-)?year/.test(r5) ? (n4 += "Y", t4++) : r5.startsWith("month") ? (n4 += "M", t4++) : /^(week)?day/.test(r5) ? (n4 += "D", t4++) : r5 !== "hour" && r5 !== "min" && r5 !== "sec" && r5 !== "am" || (n4 += r5[0], e4++);
|
|
4472
|
+
}), s3.type = "date", t4 && e4 ? s3.type = "datetime" : !t4 && e4 && (s3.type = "time");
|
|
4473
|
+
const r4 = R.find((e5) => n4.startsWith(e5[0]));
|
|
4474
|
+
l2 = r4 ? "D" : "G", d2 = r4 ? r4[1] : "";
|
|
4475
|
+
} else s3.isText ? (l2 = "G", s3.type = "text", d2 = "", s3.maxDecimals = 0) : a3.general ? (l2 = "G", s3.type = "general", d2 = "") : a3.fractions ? (l2 = "G", s3.type = "fraction", d2 = "") : a3.exponential ? (l2 = "S", s3.type = "scientific") : s3.isPercent ? (l2 = "P", s3.type = "percent") : a3.grouping ? (l2 = ",", s3.type = "grouped") : (a3.int_max || i3) && (l2 = "F", s3.type = "number");
|
|
4476
|
+
return s3.code = l2 + d2 + u2 + m2, s3.level = U[s3.type], Object.freeze(s3);
|
|
4477
|
+
}(a2, (t2 || {}).currency) || new SyntaxError();
|
|
4478
|
+
return s2.info = o2, s2.dateInfo = function(e3) {
|
|
4479
|
+
const [t3] = e3;
|
|
4480
|
+
return { year: !!(2 & t3.date), month: !!(4 & t3.date), day: !!(8 & t3.date), hours: !!(16 & t3.date), minutes: !!(32 & t3.date), seconds: !!(64 & t3.date), clockType: t3.clock === 12 ? 12 : 24 };
|
|
4481
|
+
}(a2), s2.isPercent = () => !!o2.isPercent, s2.isDate = () => !!o2.isDate, s2.isText = () => !!o2.isText, s2.pattern = n2, e2.error && (s2.error = e2.error), s2.options = i2, s2.locale = r2 || t2 && t2.locale || "", Object.freeze(s2);
|
|
4482
|
+
}
|
|
4483
|
+
__name(ue, "ue");
|
|
4484
|
+
function ce(e2, t2) {
|
|
4485
|
+
e2 || (e2 = "General");
|
|
4486
|
+
let n2 = null;
|
|
4487
|
+
return me[e2] ? n2 = me[e2] : (n2 = Object.assign({}, h(), t2).throws ? D(e2) : function(e3) {
|
|
4488
|
+
try {
|
|
4489
|
+
return D(e3);
|
|
4490
|
+
} catch (t3) {
|
|
4491
|
+
const n3 = { tokens: [{ type: "error" }], error: t3.message };
|
|
4492
|
+
return { pattern: e3, partitions: [n3, n3, n3, n3], error: t3.message, locale: null };
|
|
4493
|
+
}
|
|
4494
|
+
}(e2), n2.error || (me[e2] = n2)), ue(n2, t2);
|
|
4495
|
+
}
|
|
4496
|
+
__name(ce, "ce"), ce.isDate = (e2) => ce(e2, { throws: !1 }).isDate(), ce.isPercent = (e2) => ce(e2, { throws: !1 }).isPercent(), ce.isText = (e2) => ce(e2, { throws: !1 }).isText(), ce.getInfo = (e2, t2) => ce(e2, { ...t2, throws: !1 }).info, ce.getDateInfo = (e2, t2) => ce(e2, { ...t2, throws: !1 }).dateInfo, ce.dateToSerial = P2, ce.dateFromSerial = I2, ce.options = h, ce.dec2frac = p, ce.round = c, ce.codeToLocale = n, ce.parseLocale = s, ce.getLocale = l, ce.addLocale = (e2, t2) => {
|
|
4497
|
+
const n2 = s(t2);
|
|
4498
|
+
return delete me[n2.lang], delete me[n2.language], m(e2, n2);
|
|
4499
|
+
}, ce.format = function(e2, t2, n2) {
|
|
4500
|
+
let a2 = arguments.length > 3 && arguments[3] !== void 0 && arguments[3];
|
|
4501
|
+
const r2 = n2 && typeof n2 == "object" ? n2 : { locale: n2, throws: !a2 };
|
|
4502
|
+
return ce(e2, r2)(P2(t2, r2), r2);
|
|
4503
|
+
}, ce.is_date = ce.isDate, ce.parseNumber = ie, ce.parseDate = oe, ce.parseTime = le, ce.parseBool = de, ce.parseValue = function(e2, t2) {
|
|
4504
|
+
var n2, a2, r2;
|
|
4505
|
+
return (n2 = (a2 = (r2 = ie(e2)) !== null && r2 !== void 0 ? r2 : oe(e2, t2)) !== null && a2 !== void 0 ? a2 : le(e2)) !== null && n2 !== void 0 ? n2 : de(e2);
|
|
4506
|
+
};
|
|
4507
|
+
var pe = ce;
|
|
4508
|
+
return t = t.default;
|
|
4509
|
+
}();
|
|
4510
|
+
});
|
|
4511
|
+
})(numfmt$1);
|
|
4512
|
+
var numfmtExports = numfmt$1.exports, numfmt = numfmtExports;
|
|
4513
|
+
const index$2 = /* @__PURE__ */ getDefaultExportFromCjs(numfmt), DEFAULT_RANGE_ARRAY = {
|
|
3745
4514
|
sheetId: "",
|
|
3746
4515
|
range: {
|
|
3747
4516
|
startRow: -1,
|
|
@@ -3848,7 +4617,8 @@ const DEFAULT_RANGE_ARRAY = {
|
|
|
3848
4617
|
r: 0,
|
|
3849
4618
|
b: 0,
|
|
3850
4619
|
l: 0
|
|
3851
|
-
}
|
|
4620
|
+
},
|
|
4621
|
+
n: null
|
|
3852
4622
|
}, DEFAULT_SLIDE = {
|
|
3853
4623
|
id: "default_slide",
|
|
3854
4624
|
title: "defaultSlide",
|
|
@@ -4003,7 +4773,7 @@ const _Range = class _Range {
|
|
|
4003
4773
|
* @returns — A range containing a single cell at the specified coordinates.
|
|
4004
4774
|
*/
|
|
4005
4775
|
getCell(row, column) {
|
|
4006
|
-
const { startRow,
|
|
4776
|
+
const { startRow, startColumn } = this._range, cell = {
|
|
4007
4777
|
startRow: startRow + row,
|
|
4008
4778
|
endRow: startRow + row,
|
|
4009
4779
|
startColumn: startColumn + column,
|
|
@@ -4932,7 +5702,7 @@ var IdleValue = (
|
|
|
4932
5702
|
return t;
|
|
4933
5703
|
}, __assign$1.apply(this, arguments);
|
|
4934
5704
|
}, "__assign$1"), __spreadArray$1 = /* @__PURE__ */ __name(function(to, from, pack) {
|
|
4935
|
-
if (pack || arguments.length === 2) for (var i = 0,
|
|
5705
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++)
|
|
4936
5706
|
(ar || !(i in from)) && (ar || (ar = Array.prototype.slice.call(from, 0, i)), ar[i] = from[i]);
|
|
4937
5707
|
return to.concat(ar || Array.prototype.slice.call(from));
|
|
4938
5708
|
}, "__spreadArray$1"), MAX_RESOLUTIONS_QUEUED = 300, NotInstantiatedSymbol = Symbol("$$NOT_INSTANTIATED_SYMBOL"), CircularDependencyError = (
|
|
@@ -5029,7 +5799,10 @@ var IdleValue = (
|
|
|
5029
5799
|
var accessor = {
|
|
5030
5800
|
get: /* @__PURE__ */ __name(function(id, quantityOrLookup, lookUp) {
|
|
5031
5801
|
return _this._get(id, quantityOrLookup, lookUp);
|
|
5032
|
-
}, "get")
|
|
5802
|
+
}, "get"),
|
|
5803
|
+
has: /* @__PURE__ */ __name(function(id) {
|
|
5804
|
+
return _this.has(id);
|
|
5805
|
+
}, "has")
|
|
5033
5806
|
};
|
|
5034
5807
|
return cb.apply(void 0, __spreadArray$1([accessor], args, !1));
|
|
5035
5808
|
}, Injector2.prototype.has = function(id) {
|
|
@@ -5082,7 +5855,7 @@ var IdleValue = (
|
|
|
5082
5855
|
return this.resolvedDependencyCollection.add(id, thing), thing;
|
|
5083
5856
|
}, Injector2.prototype._resolveClass = function(id, item, shouldCache) {
|
|
5084
5857
|
var _this = this;
|
|
5085
|
-
shouldCache === void 0 && (shouldCache = !0)
|
|
5858
|
+
shouldCache === void 0 && (shouldCache = !0);
|
|
5086
5859
|
var thing;
|
|
5087
5860
|
if (item.lazy) {
|
|
5088
5861
|
var idle_1 = new IdleValue(function() {
|
|
@@ -5349,7 +6122,7 @@ function WithDependency(id, quantity, lookUp) {
|
|
|
5349
6122
|
}
|
|
5350
6123
|
__name(WithDependency, "WithDependency");
|
|
5351
6124
|
var __spreadArray = /* @__PURE__ */ __name(function(to, from, pack) {
|
|
5352
|
-
if (pack || arguments.length === 2) for (var i = 0,
|
|
6125
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++)
|
|
5353
6126
|
(ar || !(i in from)) && (ar || (ar = Array.prototype.slice.call(from, 0, i)), ar[i] = from[i]);
|
|
5354
6127
|
return to.concat(ar || Array.prototype.slice.call(from));
|
|
5355
6128
|
}, "__spreadArray");
|
|
@@ -5796,7 +6569,7 @@ function H(E) {
|
|
|
5796
6569
|
return !!(E && E.code && E.code !== N.OK && E.code !== "OK");
|
|
5797
6570
|
}
|
|
5798
6571
|
__name(H, "H");
|
|
5799
|
-
var I = /* @__PURE__ */ ((E) => (E[E.UNIVER_UNKNOWN = 0] = "UNIVER_UNKNOWN", E[E.UNIVER_DOC = 1] = "UNIVER_DOC", E[E.UNIVER_SHEET = 2] = "UNIVER_SHEET", E[E.UNIVER_SLIDE = 3] = "UNIVER_SLIDE", E[E.
|
|
6572
|
+
var I = /* @__PURE__ */ ((E) => (E[E.UNIVER_UNKNOWN = 0] = "UNIVER_UNKNOWN", E[E.UNIVER_DOC = 1] = "UNIVER_DOC", E[E.UNIVER_SHEET = 2] = "UNIVER_SHEET", E[E.UNIVER_SLIDE = 3] = "UNIVER_SLIDE", E[E.UNIVER_PROJECT = 4] = "UNIVER_PROJECT", E[E.UNRECOGNIZED = -1] = "UNRECOGNIZED", E))(I || {}), P = /* @__PURE__ */ ((E) => (E[E.Reader = 0] = "Reader", E[E.Editor = 1] = "Editor", E[E.Owner = 2] = "Owner", E[E.UNRECOGNIZED = -1] = "UNRECOGNIZED", E))(P || {}), G = /* @__PURE__ */ ((E) => (E[E.SomeCollaborator = 0] = "SomeCollaborator", E[E.AllCollaborator = 1] = "AllCollaborator", E[E.OneSelf = 2] = "OneSelf", E[E.UNRECOGNIZED = -1] = "UNRECOGNIZED", E))(G || {});
|
|
5800
6573
|
const _UnitModel = class _UnitModel extends Disposable {
|
|
5801
6574
|
};
|
|
5802
6575
|
__name(_UnitModel, "UnitModel");
|
|
@@ -5846,14 +6619,14 @@ function makeCustomRangeStream(stream) {
|
|
|
5846
6619
|
return `${stream}`;
|
|
5847
6620
|
}
|
|
5848
6621
|
__name(makeCustomRangeStream, "makeCustomRangeStream");
|
|
5849
|
-
var QuickListType = /* @__PURE__ */ ((QuickListType2) => (QuickListType2.ORDER_LIST_QUICK_1 = "1.", QuickListType2.ORDER_LIST_QUICK_2 = "a)", QuickListType2.ORDER_LIST_QUICK_3 = "a.", QuickListType2.ORDER_LIST_QUICK_4 = "i.", QuickListType2.ORDER_LIST_QUICK_5 = "A.", QuickListType2.ORDER_LIST_QUICK_6 = "I.", QuickListType2.ORDER_LIST_QUICK_7 = "01.", QuickListType2))(QuickListType || {}), PresetListType = /* @__PURE__ */ ((PresetListType2) => (PresetListType2.BULLET_LIST = "BULLET_LIST", PresetListType2.BULLET_LIST_1 = "BULLET_LIST_1", PresetListType2.BULLET_LIST_2 = "BULLET_LIST_2", PresetListType2.BULLET_LIST_3 = "BULLET_LIST_3", PresetListType2.BULLET_LIST_4 = "BULLET_LIST_4", PresetListType2.BULLET_LIST_5 = "BULLET_LIST_5", PresetListType2.ORDER_LIST = "ORDER_LIST", PresetListType2.ORDER_LIST_1 = "ORDER_LIST_1", PresetListType2.ORDER_LIST_2 = "ORDER_LIST_2", PresetListType2.ORDER_LIST_3 = "ORDER_LIST_3", PresetListType2.ORDER_LIST_4 = "ORDER_LIST_4", PresetListType2.ORDER_LIST_5 = "ORDER_LIST_5", PresetListType2.ORDER_LIST_QUICK_2 = "ORDER_LIST_QUICK_2", PresetListType2.ORDER_LIST_QUICK_3 = "ORDER_LIST_QUICK_3", PresetListType2.ORDER_LIST_QUICK_4 = "ORDER_LIST_QUICK_4", PresetListType2.ORDER_LIST_QUICK_5 = "ORDER_LIST_QUICK_5", PresetListType2.ORDER_LIST_QUICK_6 = "ORDER_LIST_QUICK_6", PresetListType2.CHECK_LIST = "CHECK_LIST", PresetListType2.CHECK_LIST_CHECKED = "CHECK_LIST_CHECKED", PresetListType2))(PresetListType || {});
|
|
6622
|
+
var DocStyleType = /* @__PURE__ */ ((DocStyleType2) => (DocStyleType2[DocStyleType2.character = 0] = "character", DocStyleType2[DocStyleType2.paragraph = 1] = "paragraph", DocStyleType2[DocStyleType2.table = 2] = "table", DocStyleType2[DocStyleType2.numbering = 3] = "numbering", DocStyleType2))(DocStyleType || {}), FollowNumberWithType = /* @__PURE__ */ ((FollowNumberWithType2) => (FollowNumberWithType2[FollowNumberWithType2.TAB = 0] = "TAB", FollowNumberWithType2[FollowNumberWithType2.SPACE = 1] = "SPACE", FollowNumberWithType2[FollowNumberWithType2.NOTHING = 2] = "NOTHING", FollowNumberWithType2))(FollowNumberWithType || {}), GlyphType = /* @__PURE__ */ ((GlyphType2) => (GlyphType2[GlyphType2.BULLET = 0] = "BULLET", GlyphType2[GlyphType2.NONE = 1] = "NONE", GlyphType2[GlyphType2.DECIMAL = 2] = "DECIMAL", GlyphType2[GlyphType2.DECIMAL_ZERO = 3] = "DECIMAL_ZERO", GlyphType2[GlyphType2.UPPER_LETTER = 4] = "UPPER_LETTER", GlyphType2[GlyphType2.LOWER_LETTER = 5] = "LOWER_LETTER", GlyphType2[GlyphType2.UPPER_ROMAN = 6] = "UPPER_ROMAN", GlyphType2[GlyphType2.LOWER_ROMAN = 7] = "LOWER_ROMAN", GlyphType2[GlyphType2.ORDINAL = 8] = "ORDINAL", GlyphType2[GlyphType2.CARDINAL_TEXT = 9] = "CARDINAL_TEXT", GlyphType2[GlyphType2.ORDINAL_TEXT = 10] = "ORDINAL_TEXT", GlyphType2[GlyphType2.HEX = 11] = "HEX", GlyphType2[GlyphType2.CHICAGO = 12] = "CHICAGO", GlyphType2[GlyphType2.IDEOGRAPH_DIGITAL = 13] = "IDEOGRAPH_DIGITAL", GlyphType2[GlyphType2.JAPANESE_COUNTING = 14] = "JAPANESE_COUNTING", GlyphType2[GlyphType2.AIUEO = 15] = "AIUEO", GlyphType2[GlyphType2.IROHA = 16] = "IROHA", GlyphType2[GlyphType2.DECIMAL_FULL_WIDTH = 17] = "DECIMAL_FULL_WIDTH", GlyphType2[GlyphType2.DECIMAL_HALF_WIDTH = 18] = "DECIMAL_HALF_WIDTH", GlyphType2[GlyphType2.JAPANESE_LEGAL = 19] = "JAPANESE_LEGAL", GlyphType2[GlyphType2.JAPANESE_DIGITAL_TEN_THOUSAND = 20] = "JAPANESE_DIGITAL_TEN_THOUSAND", GlyphType2[GlyphType2.DECIMAL_ENCLOSED_CIRCLE = 21] = "DECIMAL_ENCLOSED_CIRCLE", GlyphType2[GlyphType2.DECIMAL_FULL_WIDTH2 = 22] = "DECIMAL_FULL_WIDTH2", GlyphType2[GlyphType2.AIUEO_FULL_WIDTH = 23] = "AIUEO_FULL_WIDTH", GlyphType2[GlyphType2.IROHA_FULL_WIDTH = 24] = "IROHA_FULL_WIDTH", GlyphType2[GlyphType2.GANADA = 25] = "GANADA", GlyphType2[GlyphType2.CHOSUNG = 26] = "CHOSUNG", GlyphType2[GlyphType2.DECIMAL_ENCLOSED_FULLSTOP = 27] = "DECIMAL_ENCLOSED_FULLSTOP", GlyphType2[GlyphType2.DECIMAL_ENCLOSED_PAREN = 28] = "DECIMAL_ENCLOSED_PAREN", GlyphType2[GlyphType2.DECIMAL_ENCLOSED_CIRCLE_CHINESE = 29] = "DECIMAL_ENCLOSED_CIRCLE_CHINESE", GlyphType2[GlyphType2.IDEOGRAPH_ENCLOSED_CIRCLE = 30] = "IDEOGRAPH_ENCLOSED_CIRCLE", GlyphType2[GlyphType2.IDEOGRAPH_TRADITIONAL = 31] = "IDEOGRAPH_TRADITIONAL", GlyphType2[GlyphType2.IDEOGRAPH_ZODIAC = 32] = "IDEOGRAPH_ZODIAC", GlyphType2[GlyphType2.IDEOGRAPH_ZODIAC_TRADITIONAL = 33] = "IDEOGRAPH_ZODIAC_TRADITIONAL", GlyphType2[GlyphType2.TAIWANESE_COUNTING = 34] = "TAIWANESE_COUNTING", GlyphType2[GlyphType2.IDEOGRAPH_LEGAL_TRADITIONAL = 35] = "IDEOGRAPH_LEGAL_TRADITIONAL", GlyphType2[GlyphType2.TAIWANESE_COUNTING_THOUSAND = 36] = "TAIWANESE_COUNTING_THOUSAND", GlyphType2[GlyphType2.TAIWANESE_DIGITAL = 37] = "TAIWANESE_DIGITAL", GlyphType2[GlyphType2.CHINESE_COUNTING = 38] = "CHINESE_COUNTING", GlyphType2[GlyphType2.CHINESE_LEGAL_SIMPLIFIED = 39] = "CHINESE_LEGAL_SIMPLIFIED", GlyphType2[GlyphType2.CHINESE_COUNTING_THOUSAND = 40] = "CHINESE_COUNTING_THOUSAND", GlyphType2[GlyphType2.KOREAN_DIGITAL = 41] = "KOREAN_DIGITAL", GlyphType2[GlyphType2.KOREAN_COUNTING = 42] = "KOREAN_COUNTING", GlyphType2[GlyphType2.KOREAN_LEGAL = 43] = "KOREAN_LEGAL", GlyphType2[GlyphType2.KOREAN_DIGITAL2 = 44] = "KOREAN_DIGITAL2", GlyphType2[GlyphType2.VIETNAMESE_COUNTING = 45] = "VIETNAMESE_COUNTING", GlyphType2[GlyphType2.RUSSIAN_LOWER = 46] = "RUSSIAN_LOWER", GlyphType2[GlyphType2.RUSSIAN_UPPER = 47] = "RUSSIAN_UPPER", GlyphType2[GlyphType2.NUMBER_IN_DASH = 48] = "NUMBER_IN_DASH", GlyphType2[GlyphType2.HEBREW1 = 49] = "HEBREW1", GlyphType2[GlyphType2.HEBREW2 = 50] = "HEBREW2", GlyphType2[GlyphType2.ARABIC_ALPHA = 51] = "ARABIC_ALPHA", GlyphType2[GlyphType2.ARABIC_ABJAD = 52] = "ARABIC_ABJAD", GlyphType2[GlyphType2.HINDI_VOWELS = 53] = "HINDI_VOWELS", GlyphType2[GlyphType2.HINDI_CONSONANTS = 54] = "HINDI_CONSONANTS", GlyphType2[GlyphType2.HINDI_NUMBERS = 55] = "HINDI_NUMBERS", GlyphType2[GlyphType2.HINDI_COUNTING = 56] = "HINDI_COUNTING", GlyphType2[GlyphType2.THAI_LETTERS = 57] = "THAI_LETTERS", GlyphType2[GlyphType2.THAI_NUMBERS = 58] = "THAI_NUMBERS", GlyphType2[GlyphType2.THAI_COUNTING = 59] = "THAI_COUNTING", GlyphType2[GlyphType2.CUSTOM = 60] = "CUSTOM", GlyphType2))(GlyphType || {}), BulletAlignment = /* @__PURE__ */ ((BulletAlignment2) => (BulletAlignment2[BulletAlignment2.BULLET_ALIGNMENT_UNSPECIFIED = 0] = "BULLET_ALIGNMENT_UNSPECIFIED", BulletAlignment2[BulletAlignment2.START = 1] = "START", BulletAlignment2[BulletAlignment2.CENTER = 2] = "CENTER", BulletAlignment2[BulletAlignment2.END = 3] = "END", BulletAlignment2[BulletAlignment2.BOTH = 4] = "BOTH", BulletAlignment2))(BulletAlignment || {}), CustomRangeType = /* @__PURE__ */ ((CustomRangeType2) => (CustomRangeType2[CustomRangeType2.HYPERLINK = 0] = "HYPERLINK", CustomRangeType2[CustomRangeType2.FIELD = 1] = "FIELD", CustomRangeType2[CustomRangeType2.SDT = 2] = "SDT", CustomRangeType2[CustomRangeType2.BOOKMARK = 3] = "BOOKMARK", CustomRangeType2[CustomRangeType2.COMMENT = 4] = "COMMENT", CustomRangeType2[CustomRangeType2.CUSTOM = 5] = "CUSTOM", CustomRangeType2[CustomRangeType2.MENTION = 6] = "MENTION", CustomRangeType2[CustomRangeType2.UNI_FORMULA = 7] = "UNI_FORMULA", CustomRangeType2))(CustomRangeType || {}), CustomDecorationType = /* @__PURE__ */ ((CustomDecorationType2) => (CustomDecorationType2[CustomDecorationType2.COMMENT = 0] = "COMMENT", CustomDecorationType2))(CustomDecorationType || {}), BlockType = /* @__PURE__ */ ((BlockType2) => (BlockType2[BlockType2.DRAWING = 0] = "DRAWING", BlockType2[BlockType2.CUSTOM = 1] = "CUSTOM", BlockType2))(BlockType || {}), DocumentFlavor = /* @__PURE__ */ ((DocumentFlavor2) => (DocumentFlavor2[DocumentFlavor2.TRADITIONAL = 0] = "TRADITIONAL", DocumentFlavor2[DocumentFlavor2.MODERN = 1] = "MODERN", DocumentFlavor2))(DocumentFlavor || {}), GridType = /* @__PURE__ */ ((GridType2) => (GridType2[GridType2.DEFAULT = 0] = "DEFAULT", GridType2[GridType2.LINES = 1] = "LINES", GridType2[GridType2.LINES_AND_CHARS = 2] = "LINES_AND_CHARS", GridType2[GridType2.SNAP_TO_CHARS = 3] = "SNAP_TO_CHARS", GridType2))(GridType || {}), SectionType = /* @__PURE__ */ ((SectionType2) => (SectionType2[SectionType2.SECTION_TYPE_UNSPECIFIED = 0] = "SECTION_TYPE_UNSPECIFIED", SectionType2[SectionType2.CONTINUOUS = 1] = "CONTINUOUS", SectionType2[SectionType2.NEXT_PAGE = 2] = "NEXT_PAGE", SectionType2[SectionType2.EVEN_PAGE = 3] = "EVEN_PAGE", SectionType2[SectionType2.ODD_PAGE = 4] = "ODD_PAGE", SectionType2))(SectionType || {}), ColumnSeparatorType = /* @__PURE__ */ ((ColumnSeparatorType2) => (ColumnSeparatorType2[ColumnSeparatorType2.COLUMN_SEPARATOR_STYLE_UNSPECIFIED = 0] = "COLUMN_SEPARATOR_STYLE_UNSPECIFIED", ColumnSeparatorType2[ColumnSeparatorType2.NONE = 1] = "NONE", ColumnSeparatorType2[ColumnSeparatorType2.BETWEEN_EACH_COLUMN = 2] = "BETWEEN_EACH_COLUMN", ColumnSeparatorType2))(ColumnSeparatorType || {}), TextDirectionType = /* @__PURE__ */ ((TextDirectionType2) => (TextDirectionType2[TextDirectionType2.NORMAL = 0] = "NORMAL", TextDirectionType2[TextDirectionType2.TBRL = 1] = "TBRL", TextDirectionType2[TextDirectionType2.LRTBV = 2] = "LRTBV", TextDirectionType2))(TextDirectionType || {}), ParagraphElementType = /* @__PURE__ */ ((ParagraphElementType2) => (ParagraphElementType2[ParagraphElementType2.TEXT_RUN = 0] = "TEXT_RUN", ParagraphElementType2[ParagraphElementType2.AUTO_TEXT = 1] = "AUTO_TEXT", ParagraphElementType2[ParagraphElementType2.PAGE_BREAK = 2] = "PAGE_BREAK", ParagraphElementType2[ParagraphElementType2.COLUMN_BREAK = 3] = "COLUMN_BREAK", ParagraphElementType2[ParagraphElementType2.FOOT_NOTE_REFERENCE = 4] = "FOOT_NOTE_REFERENCE", ParagraphElementType2[ParagraphElementType2.HORIZONTAL_RULE = 5] = "HORIZONTAL_RULE", ParagraphElementType2[ParagraphElementType2.EQUATION = 6] = "EQUATION", ParagraphElementType2[ParagraphElementType2.DRAWING = 7] = "DRAWING", ParagraphElementType2[ParagraphElementType2.PERSON = 8] = "PERSON", ParagraphElementType2[ParagraphElementType2.RICH_LINK = 9] = "RICH_LINK", ParagraphElementType2))(ParagraphElementType || {}), WrapTextType = /* @__PURE__ */ ((WrapTextType2) => (WrapTextType2[WrapTextType2.BOTH_SIDES = 0] = "BOTH_SIDES", WrapTextType2[WrapTextType2.LEFT = 1] = "LEFT", WrapTextType2[WrapTextType2.RIGHT = 2] = "RIGHT", WrapTextType2[WrapTextType2.LARGEST = 3] = "LARGEST", WrapTextType2))(WrapTextType || {}), PositionedObjectLayoutType = /* @__PURE__ */ ((PositionedObjectLayoutType2) => (PositionedObjectLayoutType2[PositionedObjectLayoutType2.INLINE = 0] = "INLINE", PositionedObjectLayoutType2[PositionedObjectLayoutType2.WRAP_NONE = 1] = "WRAP_NONE", PositionedObjectLayoutType2[PositionedObjectLayoutType2.WRAP_POLYGON = 2] = "WRAP_POLYGON", PositionedObjectLayoutType2[PositionedObjectLayoutType2.WRAP_SQUARE = 3] = "WRAP_SQUARE", PositionedObjectLayoutType2[PositionedObjectLayoutType2.WRAP_THROUGH = 4] = "WRAP_THROUGH", PositionedObjectLayoutType2[PositionedObjectLayoutType2.WRAP_TIGHT = 5] = "WRAP_TIGHT", PositionedObjectLayoutType2[PositionedObjectLayoutType2.WRAP_TOP_AND_BOTTOM = 6] = "WRAP_TOP_AND_BOTTOM", PositionedObjectLayoutType2))(PositionedObjectLayoutType || {}), NamedStyleType = /* @__PURE__ */ ((NamedStyleType2) => (NamedStyleType2[NamedStyleType2.NAMED_STYLE_TYPE_UNSPECIFIED = 0] = "NAMED_STYLE_TYPE_UNSPECIFIED", NamedStyleType2[NamedStyleType2.NORMAL_TEXT = 1] = "NORMAL_TEXT", NamedStyleType2[NamedStyleType2.TITLE = 2] = "TITLE", NamedStyleType2[NamedStyleType2.SUBTITLE = 3] = "SUBTITLE", NamedStyleType2[NamedStyleType2.HEADING_1 = 4] = "HEADING_1", NamedStyleType2[NamedStyleType2.HEADING_2 = 5] = "HEADING_2", NamedStyleType2[NamedStyleType2.HEADING_3 = 6] = "HEADING_3", NamedStyleType2[NamedStyleType2.HEADING_4 = 7] = "HEADING_4", NamedStyleType2[NamedStyleType2.HEADING_5 = 8] = "HEADING_5", NamedStyleType2[NamedStyleType2.HEADING_6 = 9] = "HEADING_6", NamedStyleType2))(NamedStyleType || {}), SpacingRule = /* @__PURE__ */ ((SpacingRule2) => (SpacingRule2[SpacingRule2.AUTO = 0] = "AUTO", SpacingRule2[SpacingRule2.AT_LEAST = 1] = "AT_LEAST", SpacingRule2[SpacingRule2.EXACT = 2] = "EXACT", SpacingRule2))(SpacingRule || {}), DashStyleType = /* @__PURE__ */ ((DashStyleType2) => (DashStyleType2[DashStyleType2.DASH_STYLE_UNSPECIFIED = 0] = "DASH_STYLE_UNSPECIFIED", DashStyleType2[DashStyleType2.SOLID = 1] = "SOLID", DashStyleType2[DashStyleType2.DOT = 2] = "DOT", DashStyleType2[DashStyleType2.DASH = 3] = "DASH", DashStyleType2))(DashStyleType || {}), TabStopAlignment = /* @__PURE__ */ ((TabStopAlignment2) => (TabStopAlignment2[TabStopAlignment2.TAB_STOP_ALIGNMENT_UNSPECIFIED = 0] = "TAB_STOP_ALIGNMENT_UNSPECIFIED", TabStopAlignment2[TabStopAlignment2.START = 1] = "START", TabStopAlignment2[TabStopAlignment2.CENTER = 2] = "CENTER", TabStopAlignment2[TabStopAlignment2.END = 3] = "END", TabStopAlignment2))(TabStopAlignment || {}), TableSizeType = /* @__PURE__ */ ((TableSizeType2) => (TableSizeType2[TableSizeType2.UNSPECIFIED = 0] = "UNSPECIFIED", TableSizeType2[TableSizeType2.SPECIFIED = 1] = "SPECIFIED", TableSizeType2))(TableSizeType || {}), TableAlignmentType = /* @__PURE__ */ ((TableAlignmentType2) => (TableAlignmentType2[TableAlignmentType2.START = 0] = "START", TableAlignmentType2[TableAlignmentType2.CENTER = 1] = "CENTER", TableAlignmentType2[TableAlignmentType2.END = 2] = "END", TableAlignmentType2))(TableAlignmentType || {}), TableLayoutType = /* @__PURE__ */ ((TableLayoutType2) => (TableLayoutType2[TableLayoutType2.AUTO_FIT = 0] = "AUTO_FIT", TableLayoutType2[TableLayoutType2.FIXED = 1] = "FIXED", TableLayoutType2))(TableLayoutType || {}), TableTextWrapType = /* @__PURE__ */ ((TableTextWrapType2) => (TableTextWrapType2[TableTextWrapType2.NONE = 0] = "NONE", TableTextWrapType2[TableTextWrapType2.WRAP = 1] = "WRAP", TableTextWrapType2))(TableTextWrapType || {}), TableCellHeightRule = /* @__PURE__ */ ((TableCellHeightRule2) => (TableCellHeightRule2[TableCellHeightRule2.AUTO = 0] = "AUTO", TableCellHeightRule2[TableCellHeightRule2.AT_LEAST = 1] = "AT_LEAST", TableCellHeightRule2[TableCellHeightRule2.EXACT = 2] = "EXACT", TableCellHeightRule2))(TableCellHeightRule || {}), VerticalAlignmentType = /* @__PURE__ */ ((VerticalAlignmentType2) => (VerticalAlignmentType2[VerticalAlignmentType2.CONTENT_ALIGNMENT_UNSPECIFIED = 0] = "CONTENT_ALIGNMENT_UNSPECIFIED", VerticalAlignmentType2[VerticalAlignmentType2.BOTH = 1] = "BOTH", VerticalAlignmentType2[VerticalAlignmentType2.TOP = 2] = "TOP", VerticalAlignmentType2[VerticalAlignmentType2.CENTER = 3] = "CENTER", VerticalAlignmentType2[VerticalAlignmentType2.BOTTOM = 4] = "BOTTOM", VerticalAlignmentType2))(VerticalAlignmentType || {}), FontStyleType = /* @__PURE__ */ ((FontStyleType2) => (FontStyleType2.NORMAL = "normal", FontStyleType2.BOLD = "bold", FontStyleType2.ITALIC = "italic", FontStyleType2))(FontStyleType || {}), ObjectRelativeFromH = /* @__PURE__ */ ((ObjectRelativeFromH2) => (ObjectRelativeFromH2[ObjectRelativeFromH2.PAGE = 0] = "PAGE", ObjectRelativeFromH2[ObjectRelativeFromH2.COLUMN = 1] = "COLUMN", ObjectRelativeFromH2[ObjectRelativeFromH2.CHARACTER = 2] = "CHARACTER", ObjectRelativeFromH2[ObjectRelativeFromH2.MARGIN = 3] = "MARGIN", ObjectRelativeFromH2[ObjectRelativeFromH2.INSIDE_MARGIN = 4] = "INSIDE_MARGIN", ObjectRelativeFromH2[ObjectRelativeFromH2.OUTSIDE_MARGIN = 5] = "OUTSIDE_MARGIN", ObjectRelativeFromH2[ObjectRelativeFromH2.LEFT_MARGIN = 6] = "LEFT_MARGIN", ObjectRelativeFromH2[ObjectRelativeFromH2.RIGHT_MARGIN = 7] = "RIGHT_MARGIN", ObjectRelativeFromH2))(ObjectRelativeFromH || {}), ObjectRelativeFromV = /* @__PURE__ */ ((ObjectRelativeFromV2) => (ObjectRelativeFromV2[ObjectRelativeFromV2.PAGE = 0] = "PAGE", ObjectRelativeFromV2[ObjectRelativeFromV2.PARAGRAPH = 1] = "PARAGRAPH", ObjectRelativeFromV2[ObjectRelativeFromV2.LINE = 2] = "LINE", ObjectRelativeFromV2[ObjectRelativeFromV2.MARGIN = 3] = "MARGIN", ObjectRelativeFromV2[ObjectRelativeFromV2.TOP_MARGIN = 4] = "TOP_MARGIN", ObjectRelativeFromV2[ObjectRelativeFromV2.BOTTOM_MARGIN = 5] = "BOTTOM_MARGIN", ObjectRelativeFromV2[ObjectRelativeFromV2.INSIDE_MARGIN = 6] = "INSIDE_MARGIN", ObjectRelativeFromV2[ObjectRelativeFromV2.OUTSIDE_MARGIN = 7] = "OUTSIDE_MARGIN", ObjectRelativeFromV2))(ObjectRelativeFromV || {}), NumberUnitType = /* @__PURE__ */ ((NumberUnitType2) => (NumberUnitType2[NumberUnitType2.POINT = 0] = "POINT", NumberUnitType2[NumberUnitType2.LINE = 1] = "LINE", NumberUnitType2[NumberUnitType2.CHARACTER = 2] = "CHARACTER", NumberUnitType2[NumberUnitType2.PIXEL = 3] = "PIXEL", NumberUnitType2[NumberUnitType2.PERCENT = 4] = "PERCENT", NumberUnitType2))(NumberUnitType || {}), AlignTypeH = /* @__PURE__ */ ((AlignTypeH2) => (AlignTypeH2[AlignTypeH2.CENTER = 0] = "CENTER", AlignTypeH2[AlignTypeH2.INSIDE = 1] = "INSIDE", AlignTypeH2[AlignTypeH2.LEFT = 2] = "LEFT", AlignTypeH2[AlignTypeH2.OUTSIDE = 3] = "OUTSIDE", AlignTypeH2[AlignTypeH2.RIGHT = 4] = "RIGHT", AlignTypeH2[AlignTypeH2.BOTH = 5] = "BOTH", AlignTypeH2[AlignTypeH2.DISTRIBUTE = 6] = "DISTRIBUTE", AlignTypeH2))(AlignTypeH || {}), AlignTypeV = /* @__PURE__ */ ((AlignTypeV2) => (AlignTypeV2[AlignTypeV2.BOTTOM = 0] = "BOTTOM", AlignTypeV2[AlignTypeV2.CENTER = 1] = "CENTER", AlignTypeV2[AlignTypeV2.INSIDE = 2] = "INSIDE", AlignTypeV2[AlignTypeV2.OUTSIDE = 3] = "OUTSIDE", AlignTypeV2[AlignTypeV2.TOP = 4] = "TOP", AlignTypeV2))(AlignTypeV || {}), characterSpacingControlType = /* @__PURE__ */ ((characterSpacingControlType2) => (characterSpacingControlType2[characterSpacingControlType2.compressPunctuation = 0] = "compressPunctuation", characterSpacingControlType2[characterSpacingControlType2.compressPunctuationAndJapaneseKana = 1] = "compressPunctuationAndJapaneseKana", characterSpacingControlType2[characterSpacingControlType2.doNotCompress = 2] = "doNotCompress", characterSpacingControlType2))(characterSpacingControlType || {}), PageOrientType = /* @__PURE__ */ ((PageOrientType2) => (PageOrientType2[PageOrientType2.PORTRAIT = 0] = "PORTRAIT", PageOrientType2[PageOrientType2.LANDSCAPE = 1] = "LANDSCAPE", PageOrientType2))(PageOrientType || {}), ArrangeTypeEnum = /* @__PURE__ */ ((ArrangeTypeEnum2) => (ArrangeTypeEnum2[ArrangeTypeEnum2.forward = 0] = "forward", ArrangeTypeEnum2[ArrangeTypeEnum2.backward = 1] = "backward", ArrangeTypeEnum2[ArrangeTypeEnum2.front = 2] = "front", ArrangeTypeEnum2[ArrangeTypeEnum2.back = 3] = "back", ArrangeTypeEnum2))(ArrangeTypeEnum || {}), DrawingTypeEnum = /* @__PURE__ */ ((DrawingTypeEnum2) => (DrawingTypeEnum2[DrawingTypeEnum2.UNRECOGNIZED = -1] = "UNRECOGNIZED", DrawingTypeEnum2[DrawingTypeEnum2.DRAWING_IMAGE = 0] = "DRAWING_IMAGE", DrawingTypeEnum2[DrawingTypeEnum2.DRAWING_SHAPE = 1] = "DRAWING_SHAPE", DrawingTypeEnum2[DrawingTypeEnum2.DRAWING_CHART = 2] = "DRAWING_CHART", DrawingTypeEnum2[DrawingTypeEnum2.DRAWING_TABLE = 3] = "DRAWING_TABLE", DrawingTypeEnum2[DrawingTypeEnum2.DRAWING_SMART_ART = 4] = "DRAWING_SMART_ART", DrawingTypeEnum2[DrawingTypeEnum2.DRAWING_VIDEO = 5] = "DRAWING_VIDEO", DrawingTypeEnum2[DrawingTypeEnum2.DRAWING_GROUP = 6] = "DRAWING_GROUP", DrawingTypeEnum2[DrawingTypeEnum2.DRAWING_UNIT = 7] = "DRAWING_UNIT", DrawingTypeEnum2[DrawingTypeEnum2.DRAWING_DOM = 8] = "DRAWING_DOM", DrawingTypeEnum2))(DrawingTypeEnum || {}), QuickListType = /* @__PURE__ */ ((QuickListType2) => (QuickListType2.ORDER_LIST_QUICK_1 = "1.", QuickListType2.ORDER_LIST_QUICK_2 = "a)", QuickListType2.ORDER_LIST_QUICK_3 = "a.", QuickListType2.ORDER_LIST_QUICK_4 = "i.", QuickListType2.ORDER_LIST_QUICK_5 = "A.", QuickListType2.ORDER_LIST_QUICK_6 = "I.", QuickListType2.ORDER_LIST_QUICK_7 = "01.", QuickListType2))(QuickListType || {}), PresetListType = /* @__PURE__ */ ((PresetListType2) => (PresetListType2.BULLET_LIST = "BULLET_LIST", PresetListType2.BULLET_LIST_1 = "BULLET_LIST_1", PresetListType2.BULLET_LIST_2 = "BULLET_LIST_2", PresetListType2.BULLET_LIST_3 = "BULLET_LIST_3", PresetListType2.BULLET_LIST_4 = "BULLET_LIST_4", PresetListType2.BULLET_LIST_5 = "BULLET_LIST_5", PresetListType2.ORDER_LIST = "ORDER_LIST", PresetListType2.ORDER_LIST_1 = "ORDER_LIST_1", PresetListType2.ORDER_LIST_2 = "ORDER_LIST_2", PresetListType2.ORDER_LIST_3 = "ORDER_LIST_3", PresetListType2.ORDER_LIST_4 = "ORDER_LIST_4", PresetListType2.ORDER_LIST_5 = "ORDER_LIST_5", PresetListType2.ORDER_LIST_QUICK_2 = "ORDER_LIST_QUICK_2", PresetListType2.ORDER_LIST_QUICK_3 = "ORDER_LIST_QUICK_3", PresetListType2.ORDER_LIST_QUICK_4 = "ORDER_LIST_QUICK_4", PresetListType2.ORDER_LIST_QUICK_5 = "ORDER_LIST_QUICK_5", PresetListType2.ORDER_LIST_QUICK_6 = "ORDER_LIST_QUICK_6", PresetListType2.CHECK_LIST = "CHECK_LIST", PresetListType2.CHECK_LIST_CHECKED = "CHECK_LIST_CHECKED", PresetListType2))(PresetListType || {});
|
|
5850
6623
|
const orderListSymbolMap = {
|
|
5851
|
-
"a)": { glyphFormat: "
|
|
5852
|
-
"1.": { glyphFormat: "
|
|
5853
|
-
"a.": { glyphFormat: "
|
|
5854
|
-
"A.": { glyphFormat: "
|
|
5855
|
-
"i.": { glyphFormat: "
|
|
5856
|
-
"I.": { glyphFormat: "
|
|
6624
|
+
"a)": { glyphFormat: "%1)", glyphType: GlyphType.DECIMAL },
|
|
6625
|
+
"1.": { glyphFormat: "%1.", glyphType: GlyphType.DECIMAL },
|
|
6626
|
+
"a.": { glyphFormat: "%1.", glyphType: GlyphType.LOWER_LETTER },
|
|
6627
|
+
"A.": { glyphFormat: "%1.", glyphType: GlyphType.UPPER_LETTER },
|
|
6628
|
+
"i.": { glyphFormat: "%1.", glyphType: GlyphType.LOWER_ROMAN },
|
|
6629
|
+
"I.": { glyphFormat: "%1.", glyphType: GlyphType.UPPER_LETTER }
|
|
5857
6630
|
}, bulletListFactory = /* @__PURE__ */ __name((symbols) => [
|
|
5858
6631
|
...symbols,
|
|
5859
6632
|
...symbols,
|
|
@@ -5922,95 +6695,88 @@ const orderListSymbolMap = {
|
|
|
5922
6695
|
ORDER_LIST: {
|
|
5923
6696
|
listType: "ORDER_LIST",
|
|
5924
6697
|
nestingLevel: orderListFactory([
|
|
5925
|
-
{ glyphFormat: "
|
|
5926
|
-
{ glyphFormat: "
|
|
5927
|
-
{ glyphFormat: "
|
|
5928
|
-
{ glyphFormat: "
|
|
5929
|
-
{ glyphFormat: "
|
|
5930
|
-
{ glyphFormat: "
|
|
5931
|
-
{ glyphFormat: "
|
|
5932
|
-
{ glyphFormat: "
|
|
5933
|
-
{ glyphFormat: "
|
|
6698
|
+
{ glyphFormat: "%1.", glyphType: GlyphType.DECIMAL },
|
|
6699
|
+
{ glyphFormat: "%2.", glyphType: GlyphType.LOWER_LETTER },
|
|
6700
|
+
{ glyphFormat: "%3.", glyphType: GlyphType.LOWER_ROMAN },
|
|
6701
|
+
{ glyphFormat: "%4.", glyphType: GlyphType.DECIMAL },
|
|
6702
|
+
{ glyphFormat: "%5.", glyphType: GlyphType.LOWER_LETTER },
|
|
6703
|
+
{ glyphFormat: "%6.", glyphType: GlyphType.LOWER_ROMAN },
|
|
6704
|
+
{ glyphFormat: "%7.", glyphType: GlyphType.DECIMAL },
|
|
6705
|
+
{ glyphFormat: "%8.", glyphType: GlyphType.LOWER_LETTER },
|
|
6706
|
+
{ glyphFormat: "%9.", glyphType: GlyphType.LOWER_ROMAN }
|
|
5934
6707
|
])
|
|
5935
6708
|
},
|
|
5936
6709
|
ORDER_LIST_1: {
|
|
5937
6710
|
listType: "ORDER_LIST",
|
|
5938
6711
|
nestingLevel: orderListFactory([
|
|
5939
|
-
{ glyphFormat: "
|
|
5940
|
-
{ glyphFormat: "
|
|
5941
|
-
{ glyphFormat: "
|
|
5942
|
-
{ glyphFormat: "
|
|
5943
|
-
{ glyphFormat: "
|
|
5944
|
-
{ glyphFormat: "
|
|
5945
|
-
{ glyphFormat: "
|
|
5946
|
-
{ glyphFormat: "
|
|
5947
|
-
{ glyphFormat: "
|
|
6712
|
+
{ glyphFormat: "%1)", glyphType: GlyphType.DECIMAL },
|
|
6713
|
+
{ glyphFormat: "%2)", glyphType: GlyphType.LOWER_LETTER },
|
|
6714
|
+
{ glyphFormat: "%3)", glyphType: GlyphType.LOWER_ROMAN },
|
|
6715
|
+
{ glyphFormat: "%4)", glyphType: GlyphType.DECIMAL },
|
|
6716
|
+
{ glyphFormat: "%5)", glyphType: GlyphType.LOWER_LETTER },
|
|
6717
|
+
{ glyphFormat: "%6)", glyphType: GlyphType.LOWER_ROMAN },
|
|
6718
|
+
{ glyphFormat: "%7)", glyphType: GlyphType.DECIMAL },
|
|
6719
|
+
{ glyphFormat: "%8)", glyphType: GlyphType.LOWER_LETTER },
|
|
6720
|
+
{ glyphFormat: "%9)", glyphType: GlyphType.LOWER_ROMAN }
|
|
5948
6721
|
])
|
|
5949
6722
|
},
|
|
5950
6723
|
ORDER_LIST_2: {
|
|
5951
6724
|
listType: "ORDER_LIST",
|
|
5952
6725
|
nestingLevel: orderListFactory([
|
|
5953
|
-
"
|
|
5954
|
-
"
|
|
5955
|
-
"
|
|
5956
|
-
"
|
|
5957
|
-
"
|
|
5958
|
-
"
|
|
5959
|
-
"
|
|
6726
|
+
"%1.",
|
|
6727
|
+
"%1.%2.",
|
|
6728
|
+
"%1.%2.%3.",
|
|
6729
|
+
"%1.%2.%3.%4.",
|
|
6730
|
+
"%1.%2.%3.%4.%5.",
|
|
6731
|
+
"%1.%2.%3.%4.%5.%6.",
|
|
6732
|
+
"%1.%2.%3.%4.%5.%6.%7."
|
|
5960
6733
|
].map((format) => ({ glyphFormat: format, glyphType: GlyphType.DECIMAL })))
|
|
5961
6734
|
},
|
|
5962
6735
|
ORDER_LIST_3: {
|
|
5963
6736
|
listType: "ORDER_LIST",
|
|
5964
6737
|
nestingLevel: orderListFactory([
|
|
5965
|
-
{ glyphFormat: "
|
|
5966
|
-
{ glyphFormat: "
|
|
5967
|
-
{ glyphFormat: "
|
|
5968
|
-
{ glyphFormat: "
|
|
5969
|
-
{ glyphFormat: "
|
|
5970
|
-
{ glyphFormat: "
|
|
5971
|
-
{ glyphFormat: "
|
|
5972
|
-
{ glyphFormat: "
|
|
5973
|
-
{ glyphFormat: "
|
|
6738
|
+
{ glyphFormat: "%1.", glyphType: GlyphType.UPPER_LETTER },
|
|
6739
|
+
{ glyphFormat: "%2.", glyphType: GlyphType.LOWER_LETTER },
|
|
6740
|
+
{ glyphFormat: "%3.", glyphType: GlyphType.LOWER_ROMAN },
|
|
6741
|
+
{ glyphFormat: "%4.", glyphType: GlyphType.UPPER_LETTER },
|
|
6742
|
+
{ glyphFormat: "%5.", glyphType: GlyphType.LOWER_LETTER },
|
|
6743
|
+
{ glyphFormat: "%6.", glyphType: GlyphType.LOWER_ROMAN },
|
|
6744
|
+
{ glyphFormat: "%7.", glyphType: GlyphType.UPPER_LETTER },
|
|
6745
|
+
{ glyphFormat: "%8.", glyphType: GlyphType.LOWER_LETTER },
|
|
6746
|
+
{ glyphFormat: "%9.", glyphType: GlyphType.LOWER_ROMAN }
|
|
5974
6747
|
])
|
|
5975
6748
|
},
|
|
5976
6749
|
ORDER_LIST_4: {
|
|
5977
6750
|
listType: "ORDER_LIST",
|
|
5978
6751
|
nestingLevel: orderListFactory([
|
|
5979
|
-
{ glyphFormat: "
|
|
5980
|
-
{ glyphFormat: "
|
|
5981
|
-
{ glyphFormat: "
|
|
5982
|
-
{ glyphFormat: "
|
|
5983
|
-
{ glyphFormat: "
|
|
5984
|
-
{ glyphFormat: "
|
|
5985
|
-
{ glyphFormat: "
|
|
5986
|
-
{ glyphFormat: "
|
|
5987
|
-
{ glyphFormat: "
|
|
6752
|
+
{ glyphFormat: "%1.", glyphType: GlyphType.UPPER_LETTER },
|
|
6753
|
+
{ glyphFormat: "%2.", glyphType: GlyphType.DECIMAL },
|
|
6754
|
+
{ glyphFormat: "%3.", glyphType: GlyphType.LOWER_ROMAN },
|
|
6755
|
+
{ glyphFormat: "%4.", glyphType: GlyphType.UPPER_LETTER },
|
|
6756
|
+
{ glyphFormat: "%5.", glyphType: GlyphType.DECIMAL },
|
|
6757
|
+
{ glyphFormat: "%6.", glyphType: GlyphType.LOWER_ROMAN },
|
|
6758
|
+
{ glyphFormat: "%7.", glyphType: GlyphType.UPPER_LETTER },
|
|
6759
|
+
{ glyphFormat: "%8.", glyphType: GlyphType.DECIMAL },
|
|
6760
|
+
{ glyphFormat: "%9.", glyphType: GlyphType.LOWER_ROMAN }
|
|
5988
6761
|
])
|
|
5989
6762
|
},
|
|
5990
6763
|
ORDER_LIST_5: {
|
|
5991
6764
|
listType: "ORDER_LIST",
|
|
5992
6765
|
nestingLevel: orderListFactory([
|
|
5993
|
-
{ glyphFormat: "
|
|
5994
|
-
{ glyphFormat: "
|
|
5995
|
-
{ glyphFormat: "
|
|
5996
|
-
{ glyphFormat: "
|
|
5997
|
-
{ glyphFormat: "
|
|
5998
|
-
{ glyphFormat: "
|
|
5999
|
-
{ glyphFormat: "
|
|
6000
|
-
{ glyphFormat: "
|
|
6001
|
-
{ glyphFormat: "
|
|
6766
|
+
{ glyphFormat: "%1.", glyphType: GlyphType.DECIMAL_ZERO },
|
|
6767
|
+
{ glyphFormat: "%2.", glyphType: GlyphType.LOWER_LETTER },
|
|
6768
|
+
{ glyphFormat: "%3.", glyphType: GlyphType.LOWER_ROMAN },
|
|
6769
|
+
{ glyphFormat: "%4.", glyphType: GlyphType.DECIMAL_ZERO },
|
|
6770
|
+
{ glyphFormat: "%5.", glyphType: GlyphType.LOWER_LETTER },
|
|
6771
|
+
{ glyphFormat: "%6.", glyphType: GlyphType.LOWER_ROMAN },
|
|
6772
|
+
{ glyphFormat: "%7.", glyphType: GlyphType.DECIMAL_ZERO },
|
|
6773
|
+
{ glyphFormat: "%8.", glyphType: GlyphType.LOWER_LETTER },
|
|
6774
|
+
{ glyphFormat: "%9.", glyphType: GlyphType.LOWER_ROMAN }
|
|
6002
6775
|
])
|
|
6003
6776
|
},
|
|
6004
6777
|
CHECK_LIST: {
|
|
6005
6778
|
listType: "CHECK_LIST",
|
|
6006
|
-
nestingLevel: checkListFactory(
|
|
6007
|
-
"☐",
|
|
6008
|
-
{
|
|
6009
|
-
st: {
|
|
6010
|
-
s: BooleanNumber.FALSE
|
|
6011
|
-
}
|
|
6012
|
-
}
|
|
6013
|
-
)
|
|
6779
|
+
nestingLevel: checkListFactory("☐")
|
|
6014
6780
|
},
|
|
6015
6781
|
CHECK_LIST_CHECKED: {
|
|
6016
6782
|
listType: "CHECK_LIST_CHECKED",
|
|
@@ -6520,7 +7286,7 @@ function coverTextRuns(updateDataTextRuns, removeTextRuns, coverType) {
|
|
|
6520
7286
|
}
|
|
6521
7287
|
pushPendingAndReturnStatus();
|
|
6522
7288
|
const tempTopTextRun = newUpdateTextRuns[newUpdateTextRuns.length - 1], updateLastTextRun = updateDataTextRuns[updateLength - 1], removeLastTextRun = removeTextRuns[removeLength - 1];
|
|
6523
|
-
return tempTopTextRun.ed !== Math.max(updateLastTextRun.ed, removeLastTextRun.ed) && (updateLastTextRun.ed > removeLastTextRun.ed ? newUpdateTextRuns.push(updateLastTextRun) : newUpdateTextRuns.push(removeLastTextRun)), normalizeTextRuns(newUpdateTextRuns);
|
|
7289
|
+
return tempTopTextRun && tempTopTextRun.ed !== Math.max(updateLastTextRun.ed, removeLastTextRun.ed) && (updateLastTextRun.ed > removeLastTextRun.ed ? newUpdateTextRuns.push(updateLastTextRun) : newUpdateTextRuns.push(removeLastTextRun)), normalizeTextRuns(newUpdateTextRuns);
|
|
6524
7290
|
}
|
|
6525
7291
|
__name(coverTextRuns, "coverTextRuns");
|
|
6526
7292
|
function updateParagraphs(body, updateBody, textLength, currentIndex, coverType) {
|
|
@@ -8943,15 +9709,17 @@ const DEFAULT_DOC = {
|
|
|
8943
9709
|
getBody() {
|
|
8944
9710
|
return this.snapshot.body;
|
|
8945
9711
|
}
|
|
8946
|
-
getShouldRenderLoopImmediately() {
|
|
8947
|
-
return this.snapshot.shouldStartRenderingImmediately !== !1;
|
|
8948
|
-
}
|
|
8949
|
-
getContainer() {
|
|
8950
|
-
return this.snapshot.container;
|
|
8951
|
-
}
|
|
8952
9712
|
getSnapshot() {
|
|
8953
9713
|
return this.snapshot;
|
|
8954
9714
|
}
|
|
9715
|
+
getBulletPresetList() {
|
|
9716
|
+
var _a13;
|
|
9717
|
+
const customLists = (_a13 = this.snapshot.lists) != null ? _a13 : {};
|
|
9718
|
+
return {
|
|
9719
|
+
...PRESET_LIST_TYPE,
|
|
9720
|
+
...customLists
|
|
9721
|
+
};
|
|
9722
|
+
}
|
|
8955
9723
|
updateDocumentId(unitId) {
|
|
8956
9724
|
this.snapshot.id = unitId;
|
|
8957
9725
|
}
|
|
@@ -8969,8 +9737,8 @@ const DEFAULT_DOC = {
|
|
|
8969
9737
|
};
|
|
8970
9738
|
}
|
|
8971
9739
|
updateDocumentDataMargin(data) {
|
|
8972
|
-
const { t, l
|
|
8973
|
-
t != null && (documentStyle.marginTop = t),
|
|
9740
|
+
const { t, l, b, r } = data, { documentStyle } = this.snapshot;
|
|
9741
|
+
t != null && (documentStyle.marginTop = t), l != null && (documentStyle.marginLeft = l), b != null && (documentStyle.marginBottom = b), r != null && (documentStyle.marginRight = r);
|
|
8974
9742
|
}
|
|
8975
9743
|
updateDocumentDataPageSize(width, height) {
|
|
8976
9744
|
const { documentStyle } = this.snapshot;
|
|
@@ -9071,12 +9839,12 @@ const _DocumentDataModel = class _DocumentDataModel extends DocumentDataModelSim
|
|
|
9071
9839
|
if (headers)
|
|
9072
9840
|
for (const headerId in headers) {
|
|
9073
9841
|
const header = headers[headerId];
|
|
9074
|
-
this.headerModelMap.set(headerId, new _DocumentDataModel(header));
|
|
9842
|
+
this.headerModelMap.set(headerId, new _DocumentDataModel(header)), this.headerModelMap.get(headerId).updateDocumentId(this.getUnitId());
|
|
9075
9843
|
}
|
|
9076
9844
|
if (footers)
|
|
9077
9845
|
for (const footerId in footers) {
|
|
9078
9846
|
const footer = footers[footerId];
|
|
9079
|
-
this.footerModelMap.set(footerId, new _DocumentDataModel(footer));
|
|
9847
|
+
this.footerModelMap.set(footerId, new _DocumentDataModel(footer)), this.footerModelMap.get(footerId).updateDocumentId(this.getUnitId());
|
|
9080
9848
|
}
|
|
9081
9849
|
}
|
|
9082
9850
|
updateDocumentId(unitId) {
|
|
@@ -9442,7 +10210,6 @@ function mergeWorksheetSnapshotWithDefault(snapshot) {
|
|
|
9442
10210
|
height: DEFAULT_WORKSHEET_COLUMN_TITLE_HEIGHT,
|
|
9443
10211
|
hidden: BooleanNumber.FALSE
|
|
9444
10212
|
},
|
|
9445
|
-
selections: ["A1"],
|
|
9446
10213
|
rightToLeft: BooleanNumber.FALSE
|
|
9447
10214
|
};
|
|
9448
10215
|
return Object.keys(defaultSnapshot).forEach((_key) => {
|
|
@@ -9595,6 +10362,16 @@ const _Worksheet = class _Worksheet {
|
|
|
9595
10362
|
}
|
|
9596
10363
|
return null;
|
|
9597
10364
|
}
|
|
10365
|
+
/**
|
|
10366
|
+
* Get cellData, includes cellData, customRender, markers, dataValidate, etc.
|
|
10367
|
+
*
|
|
10368
|
+
* WARNING: All sheet CELL_CONTENT interceptors will be called in this method, cause performance issue.
|
|
10369
|
+
* example: this._sheetInterceptorService.intercept(INTERCEPTOR_POINT.CELL_CONTENT);
|
|
10370
|
+
*
|
|
10371
|
+
* @param row
|
|
10372
|
+
* @param col
|
|
10373
|
+
* @returns ICellDataForSheetInterceptor
|
|
10374
|
+
*/
|
|
9598
10375
|
getCell(row, col) {
|
|
9599
10376
|
return row < 0 || col < 0 ? null : this._viewModel.getCell(row, col);
|
|
9600
10377
|
}
|
|
@@ -9913,7 +10690,7 @@ function extractPureTextFromCell(cell) {
|
|
|
9913
10690
|
return typeof rawValue == "string" ? cell.t === CellValueType.BOOLEAN ? rawValue.toUpperCase() : rawValue.replace(/[\r\n]/g, "") : typeof rawValue == "number" ? cell.t === CellValueType.BOOLEAN ? rawValue ? "TRUE" : "FALSE" : rawValue.toString() : typeof rawValue == "boolean" ? rawValue ? "TRUE" : "FALSE" : "";
|
|
9914
10691
|
}
|
|
9915
10692
|
__name(extractPureTextFromCell, "extractPureTextFromCell");
|
|
9916
|
-
const version = "0.2.
|
|
10693
|
+
const version = "0.2.9";
|
|
9917
10694
|
function getEmptySnapshot(unitID = "", locale = LocaleType.ZH_CN, name = "") {
|
|
9918
10695
|
return {
|
|
9919
10696
|
id: unitID,
|
|
@@ -9979,15 +10756,26 @@ let Workbook = (_a3 = class extends UnitModel {
|
|
|
9979
10756
|
get name() {
|
|
9980
10757
|
return this._name$.getValue();
|
|
9981
10758
|
}
|
|
10759
|
+
static isIRangeType(range) {
|
|
10760
|
+
return typeof range == "string" || "startRow" in range || "row" in range;
|
|
10761
|
+
}
|
|
9982
10762
|
dispose() {
|
|
9983
10763
|
super.dispose(), this._sheetCreated$.complete(), this._sheetDisposed$.complete(), this._activeSheet$.complete(), this._name$.complete();
|
|
9984
10764
|
}
|
|
10765
|
+
/**
|
|
10766
|
+
* Create a clone of the current snapshot.
|
|
10767
|
+
* Call resourceLoaderService.saveWorkbook to save the data associated with the current plugin if needed.
|
|
10768
|
+
* @memberof Workbook
|
|
10769
|
+
*/
|
|
9985
10770
|
save() {
|
|
9986
10771
|
return Tools.deepClone(this._snapshot);
|
|
9987
10772
|
}
|
|
9988
|
-
|
|
9989
|
-
|
|
9990
|
-
|
|
10773
|
+
/**
|
|
10774
|
+
* Get current snapshot reference.
|
|
10775
|
+
* Call resourceLoaderService.saveWorkbook to save the data associated with the current plugin if needed.
|
|
10776
|
+
* @return {*} {IWorkbookData}
|
|
10777
|
+
* @memberof Workbook
|
|
10778
|
+
*/
|
|
9991
10779
|
getSnapshot() {
|
|
9992
10780
|
return this._snapshot;
|
|
9993
10781
|
}
|
|
@@ -10008,12 +10796,6 @@ let Workbook = (_a3 = class extends UnitModel {
|
|
|
10008
10796
|
incrementRev() {
|
|
10009
10797
|
this._snapshot.rev = this.getRev() + 1;
|
|
10010
10798
|
}
|
|
10011
|
-
getShouldRenderLoopImmediately() {
|
|
10012
|
-
return this._snapshot.shouldStartRenderingImmediately !== !1;
|
|
10013
|
-
}
|
|
10014
|
-
getContainer() {
|
|
10015
|
-
return this._snapshot.container;
|
|
10016
|
-
}
|
|
10017
10799
|
/**
|
|
10018
10800
|
* Add a Worksheet into Workbook.
|
|
10019
10801
|
*/
|
|
@@ -10173,6 +10955,7 @@ let Workbook = (_a3 = class extends UnitModel {
|
|
|
10173
10955
|
Workbook = __decorateClass$7([
|
|
10174
10956
|
__decorateParam$6(1, ILogService)
|
|
10175
10957
|
], Workbook);
|
|
10958
|
+
var PageType = /* @__PURE__ */ ((PageType2) => (PageType2[PageType2.SLIDE = 0] = "SLIDE", PageType2[PageType2.MASTER = 1] = "MASTER", PageType2[PageType2.LAYOUT = 2] = "LAYOUT", PageType2[PageType2.HANDOUT_MASTER = 3] = "HANDOUT_MASTER", PageType2[PageType2.NOTES_MASTER = 4] = "NOTES_MASTER", PageType2))(PageType || {}), PageElementType = /* @__PURE__ */ ((PageElementType2) => (PageElementType2[PageElementType2.SHAPE = 0] = "SHAPE", PageElementType2[PageElementType2.IMAGE = 1] = "IMAGE", PageElementType2[PageElementType2.TEXT = 2] = "TEXT", PageElementType2[PageElementType2.SPREADSHEET = 3] = "SPREADSHEET", PageElementType2[PageElementType2.DOCUMENT = 4] = "DOCUMENT", PageElementType2[PageElementType2.SLIDE = 5] = "SLIDE", PageElementType2))(PageElementType || {}), RelativeSlideLink = /* @__PURE__ */ ((RelativeSlideLink2) => (RelativeSlideLink2[RelativeSlideLink2.RELATIVE_SLIDE_LINK_UNSPECIFIED = 0] = "RELATIVE_SLIDE_LINK_UNSPECIFIED", RelativeSlideLink2[RelativeSlideLink2.NEXT_SLIDE = 1] = "NEXT_SLIDE", RelativeSlideLink2[RelativeSlideLink2.PREVIOUS_SLIDE = 2] = "PREVIOUS_SLIDE", RelativeSlideLink2[RelativeSlideLink2.FIRST_SLIDE = 3] = "FIRST_SLIDE", RelativeSlideLink2[RelativeSlideLink2.LAST_SLIDE = 4] = "LAST_SLIDE", RelativeSlideLink2))(RelativeSlideLink || {});
|
|
10176
10959
|
const _SlideDataModel = class _SlideDataModel extends UnitModel {
|
|
10177
10960
|
constructor(snapshot) {
|
|
10178
10961
|
var _a13;
|
|
@@ -10199,9 +10982,6 @@ const _SlideDataModel = class _SlideDataModel extends UnitModel {
|
|
|
10199
10982
|
var _a13;
|
|
10200
10983
|
this._snapshot.title = name, this._name$.next(name), this._unitId = (_a13 = this._snapshot.id) != null ? _a13 : generateRandomId(6);
|
|
10201
10984
|
}
|
|
10202
|
-
getContainer() {
|
|
10203
|
-
return this._snapshot.container;
|
|
10204
|
-
}
|
|
10205
10985
|
getSnapshot() {
|
|
10206
10986
|
return this._snapshot;
|
|
10207
10987
|
}
|
|
@@ -10608,7 +11388,7 @@ const _PermissionService = class _PermissionService extends Disposable {
|
|
|
10608
11388
|
if (!permissionPoint)
|
|
10609
11389
|
return;
|
|
10610
11390
|
const subject = permissionPoint.getValue();
|
|
10611
|
-
subject.value = value, subject.status = PermissionStatus.DONE, permissionPoint.next(
|
|
11391
|
+
subject.value = value, subject.status = PermissionStatus.DONE, permissionPoint.next(subject), this._permissionPointUpdate$.next(subject);
|
|
10612
11392
|
}
|
|
10613
11393
|
clearPermissionMap() {
|
|
10614
11394
|
this._permissionPointMap.clear();
|
|
@@ -10732,12 +11512,7 @@ var __defProp$4 = Object.defineProperty, __getOwnPropDesc$4 = Object.getOwnPrope
|
|
|
10732
11512
|
}, "__decorateClass$4"), __decorateParam$3 = /* @__PURE__ */ __name((index2, decorator) => (target, key) => decorator(target, key, index2), "__decorateParam$3"), _a7;
|
|
10733
11513
|
let ResourceLoaderService = (_a7 = class extends Disposable {
|
|
10734
11514
|
constructor(_resourceManagerService, _univerInstanceService) {
|
|
10735
|
-
super();
|
|
10736
|
-
__publicField(this, "saveWorkbook", /* @__PURE__ */ __name((workbook) => {
|
|
10737
|
-
const unitId = workbook.getUnitId(), resources = this._resourceManagerService.getResources(unitId, I.UNIVER_SHEET), snapshot = workbook.getSnapshot();
|
|
10738
|
-
return snapshot.resources = resources, snapshot;
|
|
10739
|
-
}, "saveWorkbook"));
|
|
10740
|
-
this._resourceManagerService = _resourceManagerService, this._univerInstanceService = _univerInstanceService, this._init();
|
|
11515
|
+
super(), this._resourceManagerService = _resourceManagerService, this._univerInstanceService = _univerInstanceService, this._init();
|
|
10741
11516
|
}
|
|
10742
11517
|
_init() {
|
|
10743
11518
|
const handleHookAdd = /* @__PURE__ */ __name((hook) => {
|
|
@@ -10792,8 +11567,11 @@ let ResourceLoaderService = (_a7 = class extends Disposable {
|
|
|
10792
11567
|
})
|
|
10793
11568
|
);
|
|
10794
11569
|
}
|
|
10795
|
-
|
|
10796
|
-
const
|
|
11570
|
+
saveUnit(unitId) {
|
|
11571
|
+
const unit = this._univerInstanceService.getUnit(unitId);
|
|
11572
|
+
if (!unit)
|
|
11573
|
+
return null;
|
|
11574
|
+
const resources = this._resourceManagerService.getResources(unitId, unit.type), snapshot = Tools.deepClone(unit.getSnapshot());
|
|
10797
11575
|
return snapshot.resources = resources, snapshot;
|
|
10798
11576
|
}
|
|
10799
11577
|
}, __name(_a7, "ResourceLoaderService"), _a7);
|
|
@@ -11215,10 +11993,10 @@ function mergeOverrideWithDependencies(dependencies, override) {
|
|
|
11215
11993
|
}
|
|
11216
11994
|
__name(mergeOverrideWithDependencies, "mergeOverrideWithDependencies");
|
|
11217
11995
|
const nameMap = {
|
|
11218
|
-
[
|
|
11219
|
-
[
|
|
11220
|
-
[
|
|
11221
|
-
[
|
|
11996
|
+
[P.Editor]: "Editor",
|
|
11997
|
+
[P.Owner]: "Owner",
|
|
11998
|
+
[P.Reader]: "Reader",
|
|
11999
|
+
[P.UNRECOGNIZED]: "UNRECOGNIZED"
|
|
11222
12000
|
}, createDefaultUser = /* @__PURE__ */ __name((type2) => type2 ? {
|
|
11223
12001
|
userID: `${nameMap[type2]}_${Tools.generateRandomId(8)}`,
|
|
11224
12002
|
name: nameMap[type2],
|
|
@@ -11289,7 +12067,7 @@ let AuthzIoLocalService = (_a12 = class {
|
|
|
11289
12067
|
}
|
|
11290
12068
|
_initDefaultUser() {
|
|
11291
12069
|
const currentUser = this._userManagerService.getCurrentUser();
|
|
11292
|
-
currentUser && currentUser.userID || this._userManagerService.setCurrentUser(createDefaultUser(
|
|
12070
|
+
currentUser && currentUser.userID || this._userManagerService.setCurrentUser(createDefaultUser(P.Owner));
|
|
11293
12071
|
}
|
|
11294
12072
|
_getRole(type2) {
|
|
11295
12073
|
const user = this._userManagerService.getCurrentUser();
|
|
@@ -11317,53 +12095,15 @@ let AuthzIoLocalService = (_a12 = class {
|
|
|
11317
12095
|
});
|
|
11318
12096
|
}
|
|
11319
12097
|
async create(config) {
|
|
11320
|
-
|
|
11321
|
-
switch (config.objectType) {
|
|
11322
|
-
case l.SelectRange: {
|
|
11323
|
-
const params = config.selectRangeObject;
|
|
11324
|
-
this._permissionMap.set(id, { ...params, objectType: config.objectType });
|
|
11325
|
-
break;
|
|
11326
|
-
}
|
|
11327
|
-
case l.Worksheet: {
|
|
11328
|
-
const params = config.worksheetObject;
|
|
11329
|
-
this._permissionMap.set(id, { ...params, objectType: config.objectType, readScope: L.SomeCollaborator });
|
|
11330
|
-
}
|
|
11331
|
-
}
|
|
11332
|
-
return id;
|
|
12098
|
+
return generateRandomId(8);
|
|
11333
12099
|
}
|
|
11334
|
-
async allowed(
|
|
11335
|
-
|
|
11336
|
-
if (this._permissionMap.has(config.objectID)) {
|
|
11337
|
-
const rule = this._permissionMap.get(config.objectID);
|
|
11338
|
-
if (rule && rule.objectType === l.Worksheet)
|
|
11339
|
-
return (_a13 = rule == null ? void 0 : rule.strategies) == null ? void 0 : _a13.map((s) => ({
|
|
11340
|
-
action: s.action,
|
|
11341
|
-
allowed: s.role === M.Editor
|
|
11342
|
-
}));
|
|
11343
|
-
}
|
|
11344
|
-
return config.actions.map((a) => ({
|
|
11345
|
-
action: a,
|
|
11346
|
-
allowed: this._getRole(M.Owner) || this._getRole(M.Editor)
|
|
11347
|
-
}));
|
|
12100
|
+
async allowed(_config) {
|
|
12101
|
+
return Promise.resolve([]);
|
|
11348
12102
|
}
|
|
11349
|
-
async batchAllowed(
|
|
11350
|
-
|
|
11351
|
-
unitID: item.unitID,
|
|
11352
|
-
objectID: item.objectID,
|
|
11353
|
-
actions: item.actions.map((action) => ({
|
|
11354
|
-
action,
|
|
11355
|
-
allowed: !1
|
|
11356
|
-
}))
|
|
11357
|
-
}));
|
|
11358
|
-
return user && (isDevRole(user.userID, M.Owner) || isDevRole(user.userID, M.Editor)) ? config.map((item) => ({
|
|
11359
|
-
unitID: item.unitID,
|
|
11360
|
-
objectID: item.objectID,
|
|
11361
|
-
actions: item.actions.map((action) => ({
|
|
11362
|
-
action,
|
|
11363
|
-
allowed: !0
|
|
11364
|
-
}))
|
|
11365
|
-
})) : defaultValue;
|
|
12103
|
+
async batchAllowed(_config) {
|
|
12104
|
+
return Promise.resolve([]);
|
|
11366
12105
|
}
|
|
12106
|
+
// eslint-disable-next-line max-lines-per-function
|
|
11367
12107
|
async list(config) {
|
|
11368
12108
|
const result = [];
|
|
11369
12109
|
return config.objectIDs.forEach((objectID) => {
|
|
@@ -11375,12 +12115,68 @@ let AuthzIoLocalService = (_a12 = class {
|
|
|
11375
12115
|
objectType: rule.objectType,
|
|
11376
12116
|
name: rule.name,
|
|
11377
12117
|
shareOn: !1,
|
|
11378
|
-
shareRole:
|
|
11379
|
-
// TODO: @gggpound
|
|
12118
|
+
shareRole: P.Owner,
|
|
11380
12119
|
shareScope: -1,
|
|
11381
|
-
|
|
11382
|
-
|
|
11383
|
-
|
|
12120
|
+
scope: {
|
|
12121
|
+
read: G.AllCollaborator,
|
|
12122
|
+
edit: G.AllCollaborator
|
|
12123
|
+
},
|
|
12124
|
+
creator: createDefaultUser(P.Owner),
|
|
12125
|
+
strategies: [
|
|
12126
|
+
{
|
|
12127
|
+
action: 6,
|
|
12128
|
+
role: 1
|
|
12129
|
+
},
|
|
12130
|
+
{
|
|
12131
|
+
action: 16,
|
|
12132
|
+
role: 1
|
|
12133
|
+
},
|
|
12134
|
+
{
|
|
12135
|
+
action: 17,
|
|
12136
|
+
role: 1
|
|
12137
|
+
},
|
|
12138
|
+
{
|
|
12139
|
+
action: 18,
|
|
12140
|
+
role: 1
|
|
12141
|
+
},
|
|
12142
|
+
{
|
|
12143
|
+
action: 19,
|
|
12144
|
+
role: 1
|
|
12145
|
+
},
|
|
12146
|
+
{
|
|
12147
|
+
action: 33,
|
|
12148
|
+
role: 1
|
|
12149
|
+
},
|
|
12150
|
+
{
|
|
12151
|
+
action: 34,
|
|
12152
|
+
role: 1
|
|
12153
|
+
},
|
|
12154
|
+
{
|
|
12155
|
+
action: 35,
|
|
12156
|
+
role: 1
|
|
12157
|
+
},
|
|
12158
|
+
{
|
|
12159
|
+
action: 36,
|
|
12160
|
+
role: 1
|
|
12161
|
+
},
|
|
12162
|
+
{
|
|
12163
|
+
action: 37,
|
|
12164
|
+
role: 1
|
|
12165
|
+
},
|
|
12166
|
+
{
|
|
12167
|
+
action: 38,
|
|
12168
|
+
role: 1
|
|
12169
|
+
},
|
|
12170
|
+
{
|
|
12171
|
+
action: 39,
|
|
12172
|
+
role: 1
|
|
12173
|
+
},
|
|
12174
|
+
{
|
|
12175
|
+
action: 40,
|
|
12176
|
+
role: 1
|
|
12177
|
+
}
|
|
12178
|
+
],
|
|
12179
|
+
actions: config.actions.map((a) => ({ action: a, allowed: this._getRole(P.Owner) || this._getRole(P.Editor) }))
|
|
11384
12180
|
};
|
|
11385
12181
|
result.push(item);
|
|
11386
12182
|
}
|
|
@@ -11509,10 +12305,6 @@ function createUniverInjector(parentInjector, override) {
|
|
|
11509
12305
|
return parentInjector ? parentInjector.createChild(dependencies) : new Injector(dependencies);
|
|
11510
12306
|
}
|
|
11511
12307
|
__name(createUniverInjector, "createUniverInjector");
|
|
11512
|
-
const isRangesEqual = /* @__PURE__ */ __name((oldRanges, ranges) => ranges.length === oldRanges.length && !oldRanges.some((oldRange) => ranges.some((range) => !Rectangle.equals(range, oldRange))), "isRangesEqual"), isUnitRangesEqual = /* @__PURE__ */ __name((oldRanges, ranges) => ranges.length === oldRanges.length && oldRanges.every((oldRange, i) => {
|
|
11513
|
-
const current = ranges[i];
|
|
11514
|
-
return current.unitId === oldRange.unitId && current.sheetId === oldRange.sheetId && Rectangle.equals(oldRange.range, current.range);
|
|
11515
|
-
}), "isUnitRangesEqual");
|
|
11516
12308
|
function shallowEqual(objA, objB) {
|
|
11517
12309
|
if (Object.is(objA, objB))
|
|
11518
12310
|
return !0;
|
|
@@ -11727,7 +12519,10 @@ const composeInterceptors = /* @__PURE__ */ __name((interceptors) => function(in
|
|
|
11727
12519
|
};
|
|
11728
12520
|
__name(_InterceptorManager, "InterceptorManager");
|
|
11729
12521
|
let InterceptorManager = _InterceptorManager;
|
|
11730
|
-
const
|
|
12522
|
+
const isRangesEqual = /* @__PURE__ */ __name((oldRanges, ranges) => ranges.length === oldRanges.length && !oldRanges.some((oldRange) => ranges.some((range) => !Rectangle.equals(range, oldRange))), "isRangesEqual"), isUnitRangesEqual = /* @__PURE__ */ __name((oldRanges, ranges) => ranges.length === oldRanges.length && oldRanges.every((oldRange, i) => {
|
|
12523
|
+
const current = ranges[i];
|
|
12524
|
+
return current.unitId === oldRange.unitId && current.sheetId === oldRange.sheetId && Rectangle.equals(oldRange.range, current.range);
|
|
12525
|
+
}), "isUnitRangesEqual"), ISnapshotServerService = createIdentifier(
|
|
11731
12526
|
"univer.snapshot-server-service"
|
|
11732
12527
|
), _ClientSnapshotServerService = class _ClientSnapshotServerService {
|
|
11733
12528
|
constructor() {
|
|
@@ -11915,7 +12710,7 @@ async function generateTemporarySnap(context, workbook, unitID, rev, snapshotSer
|
|
|
11915
12710
|
originalMeta: encodeWorksheetOtherMetas(worksheet)
|
|
11916
12711
|
};
|
|
11917
12712
|
if (sheetMetas[sheetID] = sheetMeta, worksheet.cellData) {
|
|
11918
|
-
const sheetBlocks = splitCellDataToBlocks(worksheet.cellData, worksheet.
|
|
12713
|
+
const sheetBlocks = splitCellDataToBlocks(worksheet.cellData, worksheet.columnCount), responses = await Promise.all(
|
|
11919
12714
|
sheetBlocks.map(
|
|
11920
12715
|
(block) => snapshotService.saveSheetBlock(context, {
|
|
11921
12716
|
unitID,
|
|
@@ -11975,7 +12770,7 @@ async function transformWorkbookDataToSnapshot(context, workbook, unitID, rev, s
|
|
|
11975
12770
|
originalMeta: encodeWorksheetOtherMetas(worksheet)
|
|
11976
12771
|
};
|
|
11977
12772
|
if (sheetMetas[sheetID] = sheetMeta, worksheet.cellData) {
|
|
11978
|
-
const sheetBlocks = splitCellDataToBlocks(worksheet.cellData, worksheet.
|
|
12773
|
+
const sheetBlocks = splitCellDataToBlocks(worksheet.cellData, worksheet.columnCount), responses = await Promise.all(
|
|
11979
12774
|
sheetBlocks.map(
|
|
11980
12775
|
(block) => snapshotService.saveSheetBlock(context, {
|
|
11981
12776
|
unitID,
|
|
@@ -12174,6 +12969,11 @@ function nameCharacterCheck(name) {
|
|
|
12174
12969
|
return !(name.length === 0 || name.length > 31 || name.startsWith("'") || name.endsWith("'") || /[:\\\/\?\*\[\]]/.test(name));
|
|
12175
12970
|
}
|
|
12176
12971
|
__name(nameCharacterCheck, "nameCharacterCheck");
|
|
12972
|
+
function mixinClass(targetClassPrototype, mixin) {
|
|
12973
|
+
for (const key in mixin)
|
|
12974
|
+
mixin.hasOwnProperty(key) && (targetClassPrototype[key] = mixin[key]);
|
|
12975
|
+
}
|
|
12976
|
+
__name(mixinClass, "mixinClass");
|
|
12177
12977
|
installShims();
|
|
12178
12978
|
export {
|
|
12179
12979
|
ABCToNumber,
|
|
@@ -12489,6 +13289,7 @@ export {
|
|
|
12489
13289
|
mergeOverrideWithDependencies,
|
|
12490
13290
|
mergeSets,
|
|
12491
13291
|
mergeWorksheetSnapshotWithDefault,
|
|
13292
|
+
mixinClass,
|
|
12492
13293
|
moveMatrixArray,
|
|
12493
13294
|
moveRangeByOffset,
|
|
12494
13295
|
nameCharacterCheck,
|
|
@@ -12496,6 +13297,7 @@ export {
|
|
|
12496
13297
|
normalizeTextRuns,
|
|
12497
13298
|
numberToABC,
|
|
12498
13299
|
numberToListABC,
|
|
13300
|
+
index$2 as numfmt,
|
|
12499
13301
|
orderSearchArray,
|
|
12500
13302
|
queryObjectMatrix,
|
|
12501
13303
|
remove,
|