@harbour-enterprises/superdoc 0.20.0-next.13 → 0.20.0-next.14
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/README.md +4 -4
- package/dist/chunks/{PdfViewer-Dh2tr2ag.cjs → PdfViewer-D-erp24R.cjs} +1 -1
- package/dist/chunks/{PdfViewer-Beoed5G0.es.js → PdfViewer-_NPRPRHl.es.js} +1 -1
- package/dist/chunks/{index-OC4NDn1G.es.js → index-dMbV_syB.es.js} +3 -3
- package/dist/chunks/{index-BFe2eMYK.cjs → index-duHcNiwD.cjs} +3 -3
- package/dist/chunks/{super-editor.es-cgub83Px.es.js → super-editor.es-BKurmwFy.es.js} +55 -51
- package/dist/chunks/{super-editor.es-4ltXjey_.cjs → super-editor.es-ly_a915J.cjs} +55 -51
- package/dist/core/SuperDoc.d.ts.map +1 -1
- package/dist/super-editor/ai-writer.es.js +2 -2
- package/dist/super-editor/chunks/{converter-CTJIyTAA.js → converter-Brf9NxwA.js} +27 -23
- package/dist/super-editor/chunks/{docx-zipper-BwicJKh2.js → docx-zipper-Dld3TtPb.js} +1 -1
- package/dist/super-editor/chunks/{editor-B97u3IuY.js → editor-N0dhAC41.js} +3 -3
- package/dist/super-editor/chunks/{toolbar-BcdsHEOP.js → toolbar-CXinz1gO.js} +2 -2
- package/dist/super-editor/converter.es.js +1 -1
- package/dist/super-editor/docx-zipper.es.js +2 -2
- package/dist/super-editor/editor.es.js +3 -3
- package/dist/super-editor/file-zipper.es.js +1 -1
- package/dist/super-editor/super-editor.es.js +6 -6
- package/dist/super-editor/toolbar.es.js +2 -2
- package/dist/super-editor.cjs +1 -1
- package/dist/super-editor.es.js +1 -1
- package/dist/superdoc.cjs +2 -2
- package/dist/superdoc.es.js +2 -2
- package/dist/superdoc.umd.js +56 -52
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +7 -4
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
[](https://docs.superdoc.dev/)
|
|
6
6
|
[](https://www.gnu.org/licenses/agpl-3.0)
|
|
7
|
-
[](https://www.npmjs.com/package/superdoc)
|
|
8
8
|
[](https://discord.gg/FBeRDqWy)
|
|
9
9
|
|
|
10
10
|
SuperDoc is a powerful document editor that brings Microsoft Word-level capabilities to your web applications. With real-time collaboration, extensive formatting options, and seamless integration capabilities, SuperDoc makes document editing on the web better for everyone.
|
|
@@ -23,14 +23,14 @@ SuperDoc is a powerful document editor that brings Microsoft Word-level capabili
|
|
|
23
23
|
### Installation
|
|
24
24
|
|
|
25
25
|
```bash
|
|
26
|
-
npm install
|
|
26
|
+
npm install superdoc
|
|
27
27
|
```
|
|
28
28
|
|
|
29
29
|
### Basic Usage
|
|
30
30
|
|
|
31
31
|
```javascript
|
|
32
|
-
import '
|
|
33
|
-
import { SuperDoc } from '
|
|
32
|
+
import 'superdoc/style.css';
|
|
33
|
+
import { SuperDoc } from 'superdoc';
|
|
34
34
|
|
|
35
35
|
const superdoc = new SuperDoc({
|
|
36
36
|
selector: '#superdoc',
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const vue = require("./vue-DWle4Cai.cjs");
|
|
4
|
-
const superdoc = require("./index-
|
|
4
|
+
const superdoc = require("./index-duHcNiwD.cjs");
|
|
5
5
|
function self(vars) {
|
|
6
6
|
const {
|
|
7
7
|
opacityDisabled,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { m as defineComponent, B as h, O as Transition, $ as process$1, I as watchEffect, d as computed, r as ref, j as onMounted, W as onUnmounted, c as createElementBlock, o as openBlock, a as createBaseVNode, f as createCommentVNode, v as createVNode, x as unref } from "./vue-CXxsqYcP.es.js";
|
|
2
|
-
import { d as derived, c, a as cB, f as fadeInTransition, b as cM, N as NBaseLoading, w as warnOnce, u as useConfig, e as useTheme, p as pxfy, g as createKey, h as useThemeClass, i as useCompitable, _ as _export_sfc, j as useSuperdocStore, s as storeToRefs, k as useSelection } from "./index-
|
|
2
|
+
import { d as derived, c, a as cB, f as fadeInTransition, b as cM, N as NBaseLoading, w as warnOnce, u as useConfig, e as useTheme, p as pxfy, g as createKey, h as useThemeClass, i as useCompitable, _ as _export_sfc, j as useSuperdocStore, s as storeToRefs, k as useSelection } from "./index-dMbV_syB.es.js";
|
|
3
3
|
function self(vars) {
|
|
4
4
|
const {
|
|
5
5
|
opacityDisabled,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { q as index$1, C as CommentsPluginKey, h as TrackChangesBasePluginKey, E as Editor, n as getRichTextExtensions, f as SuperInput, e as SuperEditor, A as AIWriter, g as SuperToolbar, i as createZip } from "./super-editor.es-
|
|
1
|
+
import { q as index$1, C as CommentsPluginKey, h as TrackChangesBasePluginKey, E as Editor, n as getRichTextExtensions, f as SuperInput, e as SuperEditor, A as AIWriter, g as SuperToolbar, i as createZip } from "./super-editor.es-BKurmwFy.es.js";
|
|
2
2
|
import { a0 as effectScope, r as ref, _ as markRaw, $ as process$1, a1 as toRaw, d as computed, a2 as isRef, a3 as isReactive, C as toRef, i as inject, p as getCurrentInstance, l as watch, x as unref, a4 as hasInjectionContext, M as reactive, s as nextTick, a5 as getCurrentScope, a6 as onScopeDispose, a7 as toRefs, g as global$1, J as shallowRef, N as readonly, j as onMounted, k as onBeforeUnmount, h as onBeforeMount, S as onActivated, q as onDeactivated, z as createTextVNode, F as Fragment, Q as Comment, m as defineComponent, D as provide, H as withDirectives, B as h, U as Teleport, R as renderSlot, V as isVNode, I as watchEffect, O as Transition, a8 as TransitionGroup, E as mergeProps, P as vShow, G as cloneVNode, T as Text, c as createElementBlock, o as openBlock, t as toDisplayString, v as createVNode, y as withCtx, a as createBaseVNode, A as normalizeStyle, f as createCommentVNode, u as createBlock, w as withModifiers, n as normalizeClass, a9 as resolveDirective, e as renderList, b as createApp, X as resolveDynamicComponent, aa as defineAsyncComponent } from "./vue-CXxsqYcP.es.js";
|
|
3
3
|
import { B as Buffer$2 } from "./jszip-B8KIZSNe.es.js";
|
|
4
4
|
import { B as BlankDOCX } from "./blank-docx-iwdyG9RH.es.js";
|
|
@@ -17369,7 +17369,7 @@ const _sfc_main = {
|
|
|
17369
17369
|
__name: "SuperDoc",
|
|
17370
17370
|
emits: ["selection-update"],
|
|
17371
17371
|
setup(__props, { emit: __emit }) {
|
|
17372
|
-
const PdfViewer = defineAsyncComponent(() => import("./PdfViewer-
|
|
17372
|
+
const PdfViewer = defineAsyncComponent(() => import("./PdfViewer-_NPRPRHl.es.js"));
|
|
17373
17373
|
const superdocStore = useSuperdocStore();
|
|
17374
17374
|
const commentsStore = useCommentsStore();
|
|
17375
17375
|
const {
|
|
@@ -18013,7 +18013,7 @@ class SuperDoc extends EventEmitter {
|
|
|
18013
18013
|
this.config.colors = shuffleArray(this.config.colors);
|
|
18014
18014
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
18015
18015
|
this.colorIndex = 0;
|
|
18016
|
-
this.version = "0.20.0";
|
|
18016
|
+
this.version = "0.20.0-next.13";
|
|
18017
18017
|
this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
18018
18018
|
this.superdocId = config.superdocId || v4();
|
|
18019
18019
|
this.colors = this.config.colors;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const superEditor_es = require("./super-editor.es-
|
|
2
|
+
const superEditor_es = require("./super-editor.es-ly_a915J.cjs");
|
|
3
3
|
const vue = require("./vue-DWle4Cai.cjs");
|
|
4
4
|
const jszip = require("./jszip-b7l8QkfH.cjs");
|
|
5
5
|
const blankDocx = require("./blank-docx-CPqX9RF5.cjs");
|
|
@@ -17386,7 +17386,7 @@ const _sfc_main = {
|
|
|
17386
17386
|
__name: "SuperDoc",
|
|
17387
17387
|
emits: ["selection-update"],
|
|
17388
17388
|
setup(__props, { emit: __emit }) {
|
|
17389
|
-
const PdfViewer = vue.defineAsyncComponent(() => Promise.resolve().then(() => require("./PdfViewer-
|
|
17389
|
+
const PdfViewer = vue.defineAsyncComponent(() => Promise.resolve().then(() => require("./PdfViewer-D-erp24R.cjs")));
|
|
17390
17390
|
const superdocStore = useSuperdocStore();
|
|
17391
17391
|
const commentsStore = useCommentsStore();
|
|
17392
17392
|
const {
|
|
@@ -18030,7 +18030,7 @@ class SuperDoc extends eventemitter3.EventEmitter {
|
|
|
18030
18030
|
this.config.colors = shuffleArray(this.config.colors);
|
|
18031
18031
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
18032
18032
|
this.colorIndex = 0;
|
|
18033
|
-
this.version = "0.20.0";
|
|
18033
|
+
this.version = "0.20.0-next.13";
|
|
18034
18034
|
this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
18035
18035
|
this.superdocId = config.superdocId || uuid.v4();
|
|
18036
18036
|
this.colors = this.config.colors;
|
|
@@ -21401,7 +21401,7 @@ function L() {
|
|
|
21401
21401
|
return { async: false, breaks: false, extensions: null, gfm: true, hooks: null, pedantic: false, renderer: null, silent: false, tokenizer: null, walkTokens: null };
|
|
21402
21402
|
}
|
|
21403
21403
|
var O = L();
|
|
21404
|
-
function
|
|
21404
|
+
function G(l3) {
|
|
21405
21405
|
O = l3;
|
|
21406
21406
|
}
|
|
21407
21407
|
var E = { exec: () => null };
|
|
@@ -21413,7 +21413,7 @@ function h(l3, e = "") {
|
|
|
21413
21413
|
return n;
|
|
21414
21414
|
}
|
|
21415
21415
|
var m = { codeRemoveIndent: /^(?: {1,4}| {0,3}\t)/gm, outputLinkReplace: /\\([\[\]])/g, indentCodeCompensation: /^(\s+)(?:```)/, beginningSpace: /^\s+/, endingHash: /#$/, startingSpaceChar: /^ /, endingSpaceChar: / $/, nonSpaceChar: /[^ ]/, newLineCharGlobal: /\n/g, tabCharGlobal: /\t/g, multipleSpaceGlobal: /\s+/g, blankLine: /^[ \t]*$/, doubleBlankLine: /\n[ \t]*\n[ \t]*$/, blockquoteStart: /^ {0,3}>/, blockquoteSetextReplace: /\n {0,3}((?:=+|-+) *)(?=\n|$)/g, blockquoteSetextReplace2: /^ {0,3}>[ \t]?/gm, listReplaceTabs: /^\t+/, listReplaceNesting: /^ {1,4}(?=( {4})*[^ ])/g, listIsTask: /^\[[ xX]\] /, listReplaceTask: /^\[[ xX]\] +/, anyLine: /\n.*\n/, hrefBrackets: /^<(.*)>$/, tableDelimiter: /[:|]/, tableAlignChars: /^\||\| *$/g, tableRowBlankLine: /\n[ \t]*$/, tableAlignRight: /^ *-+: *$/, tableAlignCenter: /^ *:-+: *$/, tableAlignLeft: /^ *:-+ *$/, startATag: /^<a /i, endATag: /^<\/a>/i, startPreScriptTag: /^<(pre|code|kbd|script)(\s|>)/i, endPreScriptTag: /^<\/(pre|code|kbd|script)(\s|>)/i, startAngleBracket: /^</, endAngleBracket: />$/, pedanticHrefTitle: /^([^'"]*[^\s])\s+(['"])(.*)\2/, unicodeAlphaNumeric: /[\p{L}\p{N}]/u, escapeTest: /[&<>"']/, escapeReplace: /[&<>"']/g, escapeTestNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/, escapeReplaceNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g, unescapeTest: /&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig, caret: /(^|[^\[])\^/g, percentDecode: /%25/g, findPipe: /\|/g, splitPipe: / \|/, slashPipe: /\\\|/g, carriageReturn: /\r\n|\r/g, spaceLine: /^ +$/gm, notSpaceStart: /^\S*/, endingNewline: /\n$/, listItemRegex: (l3) => new RegExp(`^( {0,3}${l3})((?:[ ][^\\n]*)?(?:\\n|$))`), nextBulletRegex: (l3) => new RegExp(`^ {0,${Math.min(3, l3 - 1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`), hrRegex: (l3) => new RegExp(`^ {0,${Math.min(3, l3 - 1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`), fencesBeginRegex: (l3) => new RegExp(`^ {0,${Math.min(3, l3 - 1)}}(?:\`\`\`|~~~)`), headingBeginRegex: (l3) => new RegExp(`^ {0,${Math.min(3, l3 - 1)}}#`), htmlBeginRegex: (l3) => new RegExp(`^ {0,${Math.min(3, l3 - 1)}}<(?:[a-z].*>|!--)`, "i") }, xe = /^(?:[ \t]*(?:\n|$))+/, be = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, Re = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, C = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, Oe = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, j = /(?:[*+-]|\d{1,9}[.)])/, se = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, ie$2 = h(se).replace(/bull/g, j).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex(), Te = h(se).replace(/bull/g, j).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(), F = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, we = /^[^\n]+/, Q = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, ye = h(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", Q).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), Pe = h(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, j).getRegex(), v = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", U = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, Se = h("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))", "i").replace("comment", U).replace("tag", v).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), oe = h(F).replace("hr", C).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", v).getRegex(), $e = h(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", oe).getRegex(), K$1 = { blockquote: $e, code: be, def: ye, fences: Re, heading: Oe, hr: C, html: Se, lheading: ie$2, list: Pe, newline: xe, paragraph: oe, table: E, text: we }, re = h("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", C).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", v).getRegex(), _e = { ...K$1, lheading: Te, table: re, paragraph: h(F).replace("hr", C).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", re).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", v).getRegex() }, Le = { ...K$1, html: h(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", U).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(), def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/, heading: /^(#{1,6})(.*)(?:\n+|$)/, fences: E, lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/, paragraph: h(F).replace("hr", C).replace("heading", ` *#{1,6} *[^
|
|
21416
|
-
]`).replace("lheading", ie$2).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex() }, Me = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, ze = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, ae = /^( {2,}|\\)\n(?!\s*$)/, Ae = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, D = /[\p{P}\p{S}]/u, W = /[\s\p{P}\p{S}]/u, le = /[^\s\p{P}\p{S}]/u, Ee = h(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, W).getRegex(), ue = /(?!~)[\p{P}\p{S}]/u, Ce = /(?!~)[\s\p{P}\p{S}]/u, Ie = /(?:[^\s\p{P}\p{S}]|~)/u, Be = /\[[^\[\]]*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)|`[^`]*?`|<(?! )[^<>]*?>/g, pe = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/, qe = h(pe, "u").replace(/punct/g, D).getRegex(), ve = h(pe, "u").replace(/punct/g, ue).getRegex(), ce = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", De = h(ce, "gu").replace(/notPunctSpace/g, le).replace(/punctSpace/g, W).replace(/punct/g, D).getRegex(),
|
|
21416
|
+
]`).replace("lheading", ie$2).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex() }, Me = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, ze = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, ae = /^( {2,}|\\)\n(?!\s*$)/, Ae = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, D = /[\p{P}\p{S}]/u, W = /[\s\p{P}\p{S}]/u, le = /[^\s\p{P}\p{S}]/u, Ee = h(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, W).getRegex(), ue = /(?!~)[\p{P}\p{S}]/u, Ce = /(?!~)[\s\p{P}\p{S}]/u, Ie = /(?:[^\s\p{P}\p{S}]|~)/u, Be = /\[[^\[\]]*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)|`[^`]*?`|<(?! )[^<>]*?>/g, pe = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/, qe = h(pe, "u").replace(/punct/g, D).getRegex(), ve = h(pe, "u").replace(/punct/g, ue).getRegex(), ce = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", De = h(ce, "gu").replace(/notPunctSpace/g, le).replace(/punctSpace/g, W).replace(/punct/g, D).getRegex(), He = h(ce, "gu").replace(/notPunctSpace/g, Ie).replace(/punctSpace/g, Ce).replace(/punct/g, ue).getRegex(), Ze = h("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, le).replace(/punctSpace/g, W).replace(/punct/g, D).getRegex(), Ge = h(/\\(punct)/, "gu").replace(/punct/g, D).getRegex(), Ne = h(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), je = h(U).replace("(?:-->|$)", "-->").getRegex(), Fe = h("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", je).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), q = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`[^`]*`|[^\[\]\\`])*?/, Qe = h(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label", q).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), he$3 = h(/^!?\[(label)\]\[(ref)\]/).replace("label", q).replace("ref", Q).getRegex(), de = h(/^!?\[(ref)\](?:\[\])?/).replace("ref", Q).getRegex(), Ue = h("reflink|nolink(?!\\()", "g").replace("reflink", he$3).replace("nolink", de).getRegex(), X = { _backpedal: E, anyPunctuation: Ge, autolink: Ne, blockSkip: Be, br: ae, code: ze, del: E, emStrongLDelim: qe, emStrongRDelimAst: De, emStrongRDelimUnd: Ze, escape: Me, link: Qe, nolink: de, punctuation: Ee, reflink: he$3, reflinkSearch: Ue, tag: Fe, text: Ae, url: E }, Ke = { ...X, link: h(/^!?\[(label)\]\((.*?)\)/).replace("label", q).getRegex(), reflink: h(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", q).getRegex() }, N = { ...X, emStrongRDelimAst: He, emStrongLDelim: ve, url: h(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/, "i").replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(), _backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/, del: /^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/, text: /^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/ }, We = { ...N, br: h(ae).replace("{2,}", "*").getRegex(), text: h(N.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex() }, I = { normal: K$1, gfm: _e, pedantic: Le }, M = { normal: X, gfm: N, breaks: We, pedantic: Ke };
|
|
21417
21417
|
var Xe = { "&": "&", "<": "<", ">": ">", '"': """, "'": "'" }, ke = (l3) => Xe[l3];
|
|
21418
21418
|
function w(l3, e) {
|
|
21419
21419
|
if (e) {
|
|
@@ -21571,15 +21571,15 @@ ${c2}` : c2;
|
|
|
21571
21571
|
if (!(t = s.exec(e)) || this.rules.block.hr.test(e)) break;
|
|
21572
21572
|
p = t[0], e = e.substring(p.length);
|
|
21573
21573
|
let f = t[2].split(`
|
|
21574
|
-
`, 1)[0].replace(this.rules.other.listReplaceTabs, (
|
|
21574
|
+
`, 1)[0].replace(this.rules.other.listReplaceTabs, (H) => " ".repeat(3 * H.length)), k = e.split(`
|
|
21575
21575
|
`, 1)[0], x = !f.trim(), g = 0;
|
|
21576
21576
|
if (this.options.pedantic ? (g = 2, c2 = f.trimStart()) : x ? g = t[1].length + 1 : (g = t[2].search(this.rules.other.nonSpaceChar), g = g > 4 ? 1 : g, c2 = f.slice(g), g += t[1].length), x && this.rules.other.blankLine.test(k) && (p += k + `
|
|
21577
21577
|
`, e = e.substring(k.length + 1), u = true), !u) {
|
|
21578
|
-
let
|
|
21578
|
+
let H = this.rules.other.nextBulletRegex(g), ee = this.rules.other.hrRegex(g), te = this.rules.other.fencesBeginRegex(g), ne = this.rules.other.headingBeginRegex(g), me = this.rules.other.htmlBeginRegex(g);
|
|
21579
21579
|
for (; e; ) {
|
|
21580
|
-
let
|
|
21580
|
+
let Z = e.split(`
|
|
21581
21581
|
`, 1)[0], A;
|
|
21582
|
-
if (k =
|
|
21582
|
+
if (k = Z, this.options.pedantic ? (k = k.replace(this.rules.other.listReplaceNesting, " "), A = k) : A = k.replace(this.rules.other.tabCharGlobal, " "), te.test(k) || ne.test(k) || me.test(k) || H.test(k) || ee.test(k)) break;
|
|
21583
21583
|
if (A.search(this.rules.other.nonSpaceChar) >= g || !k.trim()) c2 += `
|
|
21584
21584
|
` + A.slice(g);
|
|
21585
21585
|
else {
|
|
@@ -21587,8 +21587,8 @@ ${c2}` : c2;
|
|
|
21587
21587
|
c2 += `
|
|
21588
21588
|
` + k;
|
|
21589
21589
|
}
|
|
21590
|
-
!x && !k.trim() && (x = true), p +=
|
|
21591
|
-
`, e = e.substring(
|
|
21590
|
+
!x && !k.trim() && (x = true), p += Z + `
|
|
21591
|
+
`, e = e.substring(Z.length + 1), f = A.slice(g);
|
|
21592
21592
|
}
|
|
21593
21593
|
}
|
|
21594
21594
|
i.loose || (o ? i.loose = true : this.rules.other.doubleBlankLine.test(p) && (o = true));
|
|
@@ -21895,6 +21895,7 @@ var b = class l {
|
|
|
21895
21895
|
}
|
|
21896
21896
|
for (; (r2 = this.tokenizer.rules.inline.anyPunctuation.exec(n)) != null; ) n = n.slice(0, r2.index) + "++" + n.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);
|
|
21897
21897
|
for (; (r2 = this.tokenizer.rules.inline.blockSkip.exec(n)) != null; ) n = n.slice(0, r2.index) + "[" + "a".repeat(r2[0].length - 2) + "]" + n.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);
|
|
21898
|
+
n = this.options.hooks?.emStrongMask?.call({ lexer: this }, n) ?? n;
|
|
21898
21899
|
let i = false, s = "";
|
|
21899
21900
|
for (; e; ) {
|
|
21900
21901
|
i || (s = ""), i = false;
|
|
@@ -22089,7 +22090,7 @@ ${e}</tr>
|
|
|
22089
22090
|
return "tokens" in e && e.tokens ? this.parser.parseInline(e.tokens) : "escaped" in e && e.escaped ? e.text : w(e.text);
|
|
22090
22091
|
}
|
|
22091
22092
|
};
|
|
22092
|
-
var
|
|
22093
|
+
var $ = class {
|
|
22093
22094
|
strong({ text: e }) {
|
|
22094
22095
|
return e;
|
|
22095
22096
|
}
|
|
@@ -22123,7 +22124,7 @@ var R = class l2 {
|
|
|
22123
22124
|
__publicField$2(this, "options");
|
|
22124
22125
|
__publicField$2(this, "renderer");
|
|
22125
22126
|
__publicField$2(this, "textRenderer");
|
|
22126
|
-
this.options = e || O, this.options.renderer = this.options.renderer || new P(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new
|
|
22127
|
+
this.options = e || O, this.options.renderer = this.options.renderer || new P(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new $();
|
|
22127
22128
|
}
|
|
22128
22129
|
static parse(e, t) {
|
|
22129
22130
|
return new l2(t).parse(e);
|
|
@@ -22263,7 +22264,7 @@ var R = class l2 {
|
|
|
22263
22264
|
return n;
|
|
22264
22265
|
}
|
|
22265
22266
|
};
|
|
22266
|
-
var
|
|
22267
|
+
var S = (_a = class {
|
|
22267
22268
|
constructor(e) {
|
|
22268
22269
|
__publicField$2(this, "options");
|
|
22269
22270
|
__publicField$2(this, "block");
|
|
@@ -22278,13 +22279,16 @@ var $ = (_a = class {
|
|
|
22278
22279
|
processAllTokens(e) {
|
|
22279
22280
|
return e;
|
|
22280
22281
|
}
|
|
22282
|
+
emStrongMask(e) {
|
|
22283
|
+
return e;
|
|
22284
|
+
}
|
|
22281
22285
|
provideLexer() {
|
|
22282
22286
|
return this.block ? b.lex : b.lexInline;
|
|
22283
22287
|
}
|
|
22284
22288
|
provideParser() {
|
|
22285
22289
|
return this.block ? R.parse : R.parseInline;
|
|
22286
22290
|
}
|
|
22287
|
-
}, __publicField$2(_a, "passThroughHooks", /* @__PURE__ */ new Set(["preprocess", "postprocess", "processAllTokens"])), _a);
|
|
22291
|
+
}, __publicField$2(_a, "passThroughHooks", /* @__PURE__ */ new Set(["preprocess", "postprocess", "processAllTokens", "emStrongMask"])), __publicField$2(_a, "passThroughHooksRespectAsync", /* @__PURE__ */ new Set(["preprocess", "postprocess", "processAllTokens"])), _a);
|
|
22288
22292
|
var B = class {
|
|
22289
22293
|
constructor(...e) {
|
|
22290
22294
|
__publicField$2(this, "defaults", L());
|
|
@@ -22293,10 +22297,10 @@ var B = class {
|
|
|
22293
22297
|
__publicField$2(this, "parseInline", this.parseMarkdown(false));
|
|
22294
22298
|
__publicField$2(this, "Parser", R);
|
|
22295
22299
|
__publicField$2(this, "Renderer", P);
|
|
22296
|
-
__publicField$2(this, "TextRenderer",
|
|
22300
|
+
__publicField$2(this, "TextRenderer", $);
|
|
22297
22301
|
__publicField$2(this, "Lexer", b);
|
|
22298
22302
|
__publicField$2(this, "Tokenizer", y);
|
|
22299
|
-
__publicField$2(this, "Hooks",
|
|
22303
|
+
__publicField$2(this, "Hooks", S);
|
|
22300
22304
|
this.use(...e);
|
|
22301
22305
|
}
|
|
22302
22306
|
walkTokens(e, t) {
|
|
@@ -22369,13 +22373,13 @@ var B = class {
|
|
|
22369
22373
|
r2.tokenizer = i;
|
|
22370
22374
|
}
|
|
22371
22375
|
if (n.hooks) {
|
|
22372
|
-
let i = this.defaults.hooks || new
|
|
22376
|
+
let i = this.defaults.hooks || new S();
|
|
22373
22377
|
for (let s in n.hooks) {
|
|
22374
22378
|
if (!(s in i)) throw new Error(`hook '${s}' does not exist`);
|
|
22375
22379
|
if (["options", "block"].includes(s)) continue;
|
|
22376
22380
|
let o = s, a = n.hooks[o], u = i[o];
|
|
22377
|
-
|
|
22378
|
-
if (this.defaults.async) return Promise.resolve(a.call(i, p)).then((f) => u.call(i, f));
|
|
22381
|
+
S.passThroughHooks.has(s) ? i[o] = (p) => {
|
|
22382
|
+
if (this.defaults.async && S.passThroughHooksRespectAsync.has(s)) return Promise.resolve(a.call(i, p)).then((f) => u.call(i, f));
|
|
22379
22383
|
let c2 = a.call(i, p);
|
|
22380
22384
|
return u.call(i, c2);
|
|
22381
22385
|
} : i[o] = (...p) => {
|
|
@@ -22441,12 +22445,12 @@ function d(l3, e) {
|
|
|
22441
22445
|
return _.parse(l3, e);
|
|
22442
22446
|
}
|
|
22443
22447
|
d.options = d.setOptions = function(l3) {
|
|
22444
|
-
return _.setOptions(l3), d.defaults = _.defaults,
|
|
22448
|
+
return _.setOptions(l3), d.defaults = _.defaults, G(d.defaults), d;
|
|
22445
22449
|
};
|
|
22446
22450
|
d.getDefaults = L;
|
|
22447
22451
|
d.defaults = O;
|
|
22448
22452
|
d.use = function(...l3) {
|
|
22449
|
-
return _.use(...l3), d.defaults = _.defaults,
|
|
22453
|
+
return _.use(...l3), d.defaults = _.defaults, G(d.defaults), d;
|
|
22450
22454
|
};
|
|
22451
22455
|
d.walkTokens = function(l3, e) {
|
|
22452
22456
|
return _.walkTokens(l3, e);
|
|
@@ -22455,11 +22459,11 @@ d.parseInline = _.parseInline;
|
|
|
22455
22459
|
d.Parser = R;
|
|
22456
22460
|
d.parser = R.parse;
|
|
22457
22461
|
d.Renderer = P;
|
|
22458
|
-
d.TextRenderer =
|
|
22462
|
+
d.TextRenderer = $;
|
|
22459
22463
|
d.Lexer = b;
|
|
22460
22464
|
d.lexer = b.lex;
|
|
22461
22465
|
d.Tokenizer = y;
|
|
22462
|
-
d.Hooks =
|
|
22466
|
+
d.Hooks = S;
|
|
22463
22467
|
d.parse = d;
|
|
22464
22468
|
d.options;
|
|
22465
22469
|
d.setOptions;
|
|
@@ -31813,7 +31817,7 @@ const _SuperConverter = class _SuperConverter2 {
|
|
|
31813
31817
|
return;
|
|
31814
31818
|
}
|
|
31815
31819
|
}
|
|
31816
|
-
static updateDocumentVersion(docx = this.convertedXml, version2 = "0.20.0") {
|
|
31820
|
+
static updateDocumentVersion(docx = this.convertedXml, version2 = "0.20.0-next.13") {
|
|
31817
31821
|
const customLocation = "docProps/custom.xml";
|
|
31818
31822
|
if (!docx[customLocation]) {
|
|
31819
31823
|
docx[customLocation] = generateCustomXml();
|
|
@@ -32300,7 +32304,7 @@ function storeSuperdocVersion(docx) {
|
|
|
32300
32304
|
function generateCustomXml() {
|
|
32301
32305
|
return DEFAULT_CUSTOM_XML;
|
|
32302
32306
|
}
|
|
32303
|
-
function generateSuperdocVersion(pid = 2, version2 = "0.20.0") {
|
|
32307
|
+
function generateSuperdocVersion(pid = 2, version2 = "0.20.0-next.13") {
|
|
32304
32308
|
return {
|
|
32305
32309
|
type: "element",
|
|
32306
32310
|
name: "property",
|
|
@@ -33771,15 +33775,15 @@ function requireJszip_min() {
|
|
|
33771
33775
|
function M2(e2, t2, r22, n2, i2) {
|
|
33772
33776
|
this.good_length = e2, this.max_lazy = t2, this.nice_length = r22, this.max_chain = n2, this.func = i2;
|
|
33773
33777
|
}
|
|
33774
|
-
function
|
|
33778
|
+
function H() {
|
|
33775
33779
|
this.strm = null, this.status = 0, this.pending_buf = null, this.pending_buf_size = 0, this.pending_out = 0, this.pending = 0, this.wrap = 0, this.gzhead = null, this.gzindex = 0, this.method = v2, this.last_flush = -1, this.w_size = 0, this.w_bits = 0, this.w_mask = 0, this.window = null, this.window_size = 0, this.prev = null, this.head = null, this.ins_h = 0, this.hash_size = 0, this.hash_bits = 0, this.hash_mask = 0, this.hash_shift = 0, this.block_start = 0, this.match_length = 0, this.prev_match = 0, this.match_available = 0, this.strstart = 0, this.match_start = 0, this.lookahead = 0, this.prev_length = 0, this.max_chain_length = 0, this.max_lazy_match = 0, this.level = 0, this.strategy = 0, this.good_match = 0, this.nice_match = 0, this.dyn_ltree = new c2.Buf16(2 * w2), this.dyn_dtree = new c2.Buf16(2 * (2 * a + 1)), this.bl_tree = new c2.Buf16(2 * (2 * o + 1)), D2(this.dyn_ltree), D2(this.dyn_dtree), D2(this.bl_tree), this.l_desc = null, this.d_desc = null, this.bl_desc = null, this.bl_count = new c2.Buf16(k + 1), this.heap = new c2.Buf16(2 * s + 1), D2(this.heap), this.heap_len = 0, this.heap_max = 0, this.depth = new c2.Buf16(2 * s + 1), D2(this.depth), this.l_buf = 0, this.lit_bufsize = 0, this.last_lit = 0, this.d_buf = 0, this.opt_len = 0, this.static_len = 0, this.matches = 0, this.insert = 0, this.bi_buf = 0, this.bi_valid = 0;
|
|
33776
33780
|
}
|
|
33777
|
-
function
|
|
33781
|
+
function G2(e2) {
|
|
33778
33782
|
var t2;
|
|
33779
33783
|
return e2 && e2.state ? (e2.total_in = e2.total_out = 0, e2.data_type = i, (t2 = e2.state).pending = 0, t2.pending_out = 0, t2.wrap < 0 && (t2.wrap = -t2.wrap), t2.status = t2.wrap ? C2 : E2, e2.adler = 2 === t2.wrap ? 0 : 1, t2.last_flush = l3, u._tr_init(t2), m2) : R2(e2, _2);
|
|
33780
33784
|
}
|
|
33781
33785
|
function K2(e2) {
|
|
33782
|
-
var t2 =
|
|
33786
|
+
var t2 = G2(e2);
|
|
33783
33787
|
return t2 === m2 && (function(e3) {
|
|
33784
33788
|
e3.window_size = 2 * e3.w_size, D2(e3.head), e3.max_lazy_match = h2[e3.level].max_lazy, e3.good_match = h2[e3.level].good_length, e3.nice_match = h2[e3.level].nice_length, e3.max_chain_length = h2[e3.level].max_chain, e3.strstart = 0, e3.block_start = 0, e3.lookahead = 0, e3.insert = 0, e3.match_length = e3.prev_length = x - 1, e3.match_available = 0, e3.ins_h = 0;
|
|
33785
33789
|
})(e2.state), t2;
|
|
@@ -33789,7 +33793,7 @@ function requireJszip_min() {
|
|
|
33789
33793
|
var a2 = 1;
|
|
33790
33794
|
if (t2 === g && (t2 = 6), n2 < 0 ? (a2 = 0, n2 = -n2) : 15 < n2 && (a2 = 2, n2 -= 16), i2 < 1 || y2 < i2 || r22 !== v2 || n2 < 8 || 15 < n2 || t2 < 0 || 9 < t2 || s2 < 0 || b2 < s2) return R2(e2, _2);
|
|
33791
33795
|
8 === n2 && (n2 = 9);
|
|
33792
|
-
var o2 = new
|
|
33796
|
+
var o2 = new H();
|
|
33793
33797
|
return (e2.state = o2).strm = e2, o2.wrap = a2, o2.gzhead = null, o2.w_bits = n2, o2.w_size = 1 << o2.w_bits, o2.w_mask = o2.w_size - 1, o2.hash_bits = i2 + 7, o2.hash_size = 1 << o2.hash_bits, o2.hash_mask = o2.hash_size - 1, o2.hash_shift = ~~((o2.hash_bits + x - 1) / x), o2.window = new c2.Buf8(2 * o2.w_size), o2.head = new c2.Buf16(o2.hash_size), o2.prev = new c2.Buf16(o2.w_size), o2.lit_bufsize = 1 << i2 + 6, o2.pending_buf_size = 4 * o2.lit_bufsize, o2.pending_buf = new c2.Buf8(o2.pending_buf_size), o2.d_buf = 1 * o2.lit_bufsize, o2.l_buf = 3 * o2.lit_bufsize, o2.level = t2, o2.strategy = s2, o2.method = r22, K2(e2);
|
|
33794
33798
|
}
|
|
33795
33799
|
h2 = [new M2(0, 0, 0, 0, function(e2, t2) {
|
|
@@ -33807,7 +33811,7 @@ function requireJszip_min() {
|
|
|
33807
33811
|
return e2.insert = 0, t2 === f ? (N2(e2, true), 0 === e2.strm.avail_out ? O2 : B2) : (e2.strstart > e2.block_start && (N2(e2, false), e2.strm.avail_out), A);
|
|
33808
33812
|
}), new M2(4, 4, 8, 4, Z), new M2(4, 5, 16, 8, Z), new M2(4, 6, 32, 32, Z), new M2(4, 4, 16, 16, W2), new M2(8, 16, 32, 32, W2), new M2(8, 16, 128, 128, W2), new M2(8, 32, 128, 256, W2), new M2(32, 128, 258, 1024, W2), new M2(32, 258, 258, 4096, W2)], r2.deflateInit = function(e2, t2) {
|
|
33809
33813
|
return Y2(e2, t2, v2, 15, 8, 0);
|
|
33810
|
-
}, r2.deflateInit2 = Y2, r2.deflateReset = K2, r2.deflateResetKeep =
|
|
33814
|
+
}, r2.deflateInit2 = Y2, r2.deflateReset = K2, r2.deflateResetKeep = G2, r2.deflateSetHeader = function(e2, t2) {
|
|
33811
33815
|
return e2 && e2.state ? 2 !== e2.state.wrap ? _2 : (e2.state.gzhead = t2, m2) : _2;
|
|
33812
33816
|
}, r2.deflate = function(e2, t2) {
|
|
33813
33817
|
var r22, n2, i2, s2;
|
|
@@ -34463,12 +34467,12 @@ function requireJszip_min() {
|
|
|
34463
34467
|
function M2(e2) {
|
|
34464
34468
|
8 < e2.bi_valid ? U2(e2, e2.bi_buf) : 0 < e2.bi_valid && (e2.pending_buf[e2.pending++] = e2.bi_buf), e2.bi_buf = 0, e2.bi_valid = 0;
|
|
34465
34469
|
}
|
|
34466
|
-
function
|
|
34470
|
+
function H(e2, t2, r22, n2) {
|
|
34467
34471
|
var i2 = 2 * t2, s2 = 2 * r22;
|
|
34468
34472
|
return e2[i2] < e2[s2] || e2[i2] === e2[s2] && n2[t2] <= n2[r22];
|
|
34469
34473
|
}
|
|
34470
|
-
function
|
|
34471
|
-
for (var n2 = e2.heap[r22], i2 = r22 << 1; i2 <= e2.heap_len && (i2 < e2.heap_len &&
|
|
34474
|
+
function G2(e2, t2, r22) {
|
|
34475
|
+
for (var n2 = e2.heap[r22], i2 = r22 << 1; i2 <= e2.heap_len && (i2 < e2.heap_len && H(t2, e2.heap[i2 + 1], e2.heap[i2], e2.depth) && i2++, !H(t2, n2, e2.heap[i2], e2.depth)); ) e2.heap[r22] = e2.heap[i2], r22 = i2, i2 <<= 1;
|
|
34472
34476
|
e2.heap[r22] = n2;
|
|
34473
34477
|
}
|
|
34474
34478
|
function K2(e2, t2, r22) {
|
|
@@ -34480,8 +34484,8 @@ function requireJszip_min() {
|
|
|
34480
34484
|
var r22, n2, i2, s2 = t2.dyn_tree, a2 = t2.stat_desc.static_tree, o2 = t2.stat_desc.has_stree, h22 = t2.stat_desc.elems, u2 = -1;
|
|
34481
34485
|
for (e2.heap_len = 0, e2.heap_max = _2, r22 = 0; r22 < h22; r22++) 0 !== s2[2 * r22] ? (e2.heap[++e2.heap_len] = u2 = r22, e2.depth[r22] = 0) : s2[2 * r22 + 1] = 0;
|
|
34482
34486
|
for (; e2.heap_len < 2; ) s2[2 * (i2 = e2.heap[++e2.heap_len] = u2 < 2 ? ++u2 : 0)] = 1, e2.depth[i2] = 0, e2.opt_len--, o2 && (e2.static_len -= a2[2 * i2 + 1]);
|
|
34483
|
-
for (t2.max_code = u2, r22 = e2.heap_len >> 1; 1 <= r22; r22--)
|
|
34484
|
-
for (i2 = h22; r22 = e2.heap[1], e2.heap[1] = e2.heap[e2.heap_len--],
|
|
34487
|
+
for (t2.max_code = u2, r22 = e2.heap_len >> 1; 1 <= r22; r22--) G2(e2, s2, r22);
|
|
34488
|
+
for (i2 = h22; r22 = e2.heap[1], e2.heap[1] = e2.heap[e2.heap_len--], G2(e2, s2, 1), n2 = e2.heap[1], e2.heap[--e2.heap_max] = r22, e2.heap[--e2.heap_max] = n2, s2[2 * i2] = s2[2 * r22] + s2[2 * n2], e2.depth[i2] = (e2.depth[r22] >= e2.depth[n2] ? e2.depth[r22] : e2.depth[n2]) + 1, s2[2 * r22 + 1] = s2[2 * n2 + 1] = i2, e2.heap[1] = i2++, G2(e2, s2, 1), 2 <= e2.heap_len; ) ;
|
|
34485
34489
|
e2.heap[--e2.heap_max] = e2.heap[1], (function(e3, t3) {
|
|
34486
34490
|
var r3, n3, i3, s3, a3, o3, h3 = t3.dyn_tree, u3 = t3.max_code, l22 = t3.stat_desc.static_tree, f2 = t3.stat_desc.has_stree, c22 = t3.stat_desc.extra_bits, d22 = t3.stat_desc.extra_base, p2 = t3.stat_desc.max_length, m22 = 0;
|
|
34487
34491
|
for (s3 = 0; s3 <= g; s3++) e3.bl_count[s3] = 0;
|
|
@@ -41043,19 +41047,19 @@ class Hasher {
|
|
|
41043
41047
|
this._W = new Uint32Array(buf, 64, 64);
|
|
41044
41048
|
}
|
|
41045
41049
|
_updateHash() {
|
|
41046
|
-
const
|
|
41050
|
+
const H = this._H;
|
|
41047
41051
|
const W2 = this._W;
|
|
41048
41052
|
for (let t = 16; t < 64; t++) {
|
|
41049
41053
|
W2[t] = sigma1to256(W2[t - 2]) + W2[t - 7] + sigma0to256(W2[t - 15]) + W2[t - 16];
|
|
41050
41054
|
}
|
|
41051
|
-
let a =
|
|
41052
|
-
let b2 =
|
|
41053
|
-
let c2 =
|
|
41054
|
-
let d2 =
|
|
41055
|
-
let e =
|
|
41056
|
-
let f =
|
|
41057
|
-
let g =
|
|
41058
|
-
let h2 =
|
|
41055
|
+
let a = H[0];
|
|
41056
|
+
let b2 = H[1];
|
|
41057
|
+
let c2 = H[2];
|
|
41058
|
+
let d2 = H[3];
|
|
41059
|
+
let e = H[4];
|
|
41060
|
+
let f = H[5];
|
|
41061
|
+
let g = H[6];
|
|
41062
|
+
let h2 = H[7];
|
|
41059
41063
|
for (let tt = 0, T1, T2; tt < 64; tt++) {
|
|
41060
41064
|
T1 = h2 + sum1to256(e) + (e & f ^ ~e & g) + K[tt] + W2[tt] >>> 0;
|
|
41061
41065
|
T2 = sum0to256(a) + (a & b2 ^ a & c2 ^ b2 & c2) >>> 0;
|
|
@@ -41068,14 +41072,14 @@ class Hasher {
|
|
|
41068
41072
|
b2 = a;
|
|
41069
41073
|
a = T1 + T2 >>> 0;
|
|
41070
41074
|
}
|
|
41071
|
-
|
|
41072
|
-
|
|
41073
|
-
|
|
41074
|
-
|
|
41075
|
-
|
|
41076
|
-
|
|
41077
|
-
|
|
41078
|
-
|
|
41075
|
+
H[0] += a;
|
|
41076
|
+
H[1] += b2;
|
|
41077
|
+
H[2] += c2;
|
|
41078
|
+
H[3] += d2;
|
|
41079
|
+
H[4] += e;
|
|
41080
|
+
H[5] += f;
|
|
41081
|
+
H[6] += g;
|
|
41082
|
+
H[7] += h2;
|
|
41079
41083
|
}
|
|
41080
41084
|
/**
|
|
41081
41085
|
* Returns a 32-byte hash.
|
|
@@ -49547,7 +49551,7 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
|
|
|
49547
49551
|
* @returns {Object | void} Migration results
|
|
49548
49552
|
*/
|
|
49549
49553
|
processCollaborationMigrations() {
|
|
49550
|
-
console.debug("[checkVersionMigrations] Current editor version", "0.20.0");
|
|
49554
|
+
console.debug("[checkVersionMigrations] Current editor version", "0.20.0-next.13");
|
|
49551
49555
|
if (!this.options.ydoc) return;
|
|
49552
49556
|
const metaMap = this.options.ydoc.getMap("meta");
|
|
49553
49557
|
let docVersion = metaMap.get("version");
|