@leaflink/stash 50.5.1 → 50.5.2
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/dist/Accordion.js.map +1 -1
- package/dist/ActionsDropdown.js.map +1 -1
- package/dist/AddressSelect.js.map +1 -1
- package/dist/Alert.js.map +1 -1
- package/dist/AppNavigationItem.js.map +1 -1
- package/dist/AppSidebar.js.map +1 -1
- package/dist/Avatar.js.map +1 -1
- package/dist/Badge.js.map +1 -1
- package/dist/Button.js.map +1 -1
- package/dist/ButtonGroup.js.map +1 -1
- package/dist/Card.js.map +1 -1
- package/dist/CardMedia.js.map +1 -1
- package/dist/Carousel.js.map +1 -1
- package/dist/Checkbox.js.map +1 -1
- package/dist/Chip.js.map +1 -1
- package/dist/ConfirmationCodeInput.js.map +1 -1
- package/dist/ContextSwitcher.js.map +1 -1
- package/dist/Copy.js.map +1 -1
- package/dist/CurrencyInput.js.map +1 -1
- package/dist/CustomRender.js.map +1 -1
- package/dist/DataView.js.map +1 -1
- package/dist/DataView.keys-C7eaZg2G.js.map +1 -1
- package/dist/DataViewFilters.js.map +1 -1
- package/dist/DataViewSortButton.js.map +1 -1
- package/dist/DataViewToolbar.js.map +1 -1
- package/dist/DatePicker.js.map +1 -1
- package/dist/DescriptionList.js.map +1 -1
- package/dist/DescriptionListDetail.js.map +1 -1
- package/dist/DescriptionListGroup.js.map +1 -1
- package/dist/DescriptionListTerm.js.map +1 -1
- package/dist/Dialog.js.map +1 -1
- package/dist/Divider.js.map +1 -1
- package/dist/Dropdown.js.map +1 -1
- package/dist/EmptyState.js.map +1 -1
- package/dist/Expand.vue_vue_type_script_setup_true_lang-D0fSAtHr.js.map +1 -1
- package/dist/Field.vue_vue_type_script_setup_true_lang-DEizIcDo.js.map +1 -1
- package/dist/FileUpload.js.map +1 -1
- package/dist/FilterChip.js.map +1 -1
- package/dist/FilterDrawerItem.js.map +1 -1
- package/dist/FilterDropdown.js.map +1 -1
- package/dist/FilterSelect.js.map +1 -1
- package/dist/Filters.js.map +1 -1
- package/dist/HttpError.js.map +1 -1
- package/dist/Icon.js.map +1 -1
- package/dist/IconLabel.js.map +1 -1
- package/dist/Illustration.vue_vue_type_script_setup_true_lang-C3qG3Ty6.js.map +1 -1
- package/dist/Image.vue_vue_type_script_setup_true_lang-YUNunj71.js.map +1 -1
- package/dist/InlineEdit.js.map +1 -1
- package/dist/Input.js.map +1 -1
- package/dist/InputOptions.js.map +1 -1
- package/dist/IntegrationIcon.js.map +1 -1
- package/dist/LicenseChip.js.map +1 -1
- package/dist/ListItem.js.map +1 -1
- package/dist/ListItemCell.js.map +1 -1
- package/dist/ListView.js +2 -2
- package/dist/ListView.js.map +1 -1
- package/dist/Loading.js.map +1 -1
- package/dist/Logo.vue_vue_type_script_setup_true_lang-BfUU9J9O.js.map +1 -1
- package/dist/MenuItem.js.map +1 -1
- package/dist/MenusPlugin-Bk6UW6o9.js.map +1 -1
- package/dist/Metric.js.map +1 -1
- package/dist/Modal.js.map +1 -1
- package/dist/Modals.js.map +1 -1
- package/dist/ModalsPlugin.js.map +1 -1
- package/dist/Module.js.map +1 -1
- package/dist/Module.keys-CEsrW2f0.js.map +1 -1
- package/dist/ModuleContent.js.map +1 -1
- package/dist/ModuleFooter.js.map +1 -1
- package/dist/ModuleHeader.js.map +1 -1
- package/dist/PageContent.js.map +1 -1
- package/dist/PageHeader.js.map +1 -1
- package/dist/PageNavigation.js.map +1 -1
- package/dist/Paginate.js.map +1 -1
- package/dist/PlaidLink.js.map +1 -1
- package/dist/QuickAction.js.map +1 -1
- package/dist/Radio.js.map +1 -1
- package/dist/RadioGroup.js.map +1 -1
- package/dist/RadioNew.js.map +1 -1
- package/dist/RangeInput.js.map +1 -1
- package/dist/SearchBar.js.map +1 -1
- package/dist/Select.js +1 -1
- package/dist/Select.js.map +1 -1
- package/dist/SelectStatus.js.map +1 -1
- package/dist/Skeleton.js.map +1 -1
- package/dist/Step.js.map +1 -1
- package/dist/Stepper.js.map +1 -1
- package/dist/Switch.js.map +1 -1
- package/dist/Tab.js.map +1 -1
- package/dist/Table.js.map +1 -1
- package/dist/TableCell.js.map +1 -1
- package/dist/TableHeaderCell.js.map +1 -1
- package/dist/TableHeaderRow.js.map +1 -1
- package/dist/TableRow.js.map +1 -1
- package/dist/Tabs.vue_vue_type_script_setup_true_lang-l41hWkV4.js.map +1 -1
- package/dist/TextEditor.js +178 -181
- package/dist/TextEditor.js.map +1 -1
- package/dist/Textarea.js.map +1 -1
- package/dist/Thumbnail.js.map +1 -1
- package/dist/ThumbnailEmpty.js.map +1 -1
- package/dist/ThumbnailGroup.js.map +1 -1
- package/dist/ThumbnailGroup.keys-D6WL5xQ5.js.map +1 -1
- package/dist/TimelineItem.js.map +1 -1
- package/dist/Toast.js.map +1 -1
- package/dist/Toasts.js.map +1 -1
- package/dist/ToastsPlugin.js.map +1 -1
- package/dist/Tooltip.js +2 -2
- package/dist/Tooltip.js.map +1 -1
- package/dist/components.css +2 -2
- package/dist/constants.js.map +1 -1
- package/dist/directives/autofocus.js.map +1 -1
- package/dist/directives/clickoutside.js.map +1 -1
- package/dist/directives/observe.js.map +1 -1
- package/dist/directives/sticky.js.map +1 -1
- package/dist/directives/tooltip.js.map +1 -1
- package/dist/directives/viewable.js.map +1 -1
- package/dist/{floating-ui.vue-BmfQDqE-.js → floating-ui.vue-pzUuloyX.js} +267 -260
- package/dist/floating-ui.vue-pzUuloyX.js.map +1 -0
- package/dist/formatDateTime-C8CYECpd.js.map +1 -1
- package/dist/index-ConQ3o31.js +128 -0
- package/dist/index-ConQ3o31.js.map +1 -0
- package/dist/index-D6bxWkZ1.js.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/isDefined-DzVx0B6k.js.map +1 -1
- package/dist/locale.js.map +1 -1
- package/dist/parseISO-wlfIB_QJ.js.map +1 -1
- package/dist/searchFuzzy-DKooyZM8.js.map +1 -1
- package/dist/tailwind-base.js.map +1 -1
- package/dist/toTimeZone-CVE1ZmsS.js.map +1 -1
- package/dist/useConfirmBeforeClosing.js.map +1 -1
- package/dist/useDialog.js.map +1 -1
- package/dist/useGoogleMaps.js.map +1 -1
- package/dist/useMediaQuery.js.map +1 -1
- package/dist/useModals.js.map +1 -1
- package/dist/usePlaidLink.js.map +1 -1
- package/dist/useScriptTag.js.map +1 -1
- package/dist/useSearch.js.map +1 -1
- package/dist/useSelection.js.map +1 -1
- package/dist/useSortable.js +1 -1
- package/dist/useSortable.js.map +1 -1
- package/dist/useStepper.js.map +1 -1
- package/dist/useToasts.js.map +1 -1
- package/dist/useValidation.js.map +1 -1
- package/dist/utils/calculateElementOverflow.js.map +1 -1
- package/dist/utils/colorScheme.js.map +1 -1
- package/dist/utils/createQueryString.js.map +1 -1
- package/dist/utils/getContrastingTextColor.js.map +1 -1
- package/dist/utils/helpers.js.map +1 -1
- package/dist/utils/i18n.js.map +1 -1
- package/dist/utils/storage.js.map +1 -1
- package/package.json +1 -1
- package/dist/floating-ui.vue-BmfQDqE-.js.map +0 -1
- package/dist/index-Bbc2pg2X.js +0 -128
- package/dist/index-Bbc2pg2X.js.map +0 -1
package/dist/TextEditor.js
CHANGED
|
@@ -2513,14 +2513,15 @@ Et.blotName = "break";
|
|
|
2513
2513
|
Et.tagName = "BR";
|
|
2514
2514
|
let yt = class extends Xs {
|
|
2515
2515
|
};
|
|
2516
|
+
const oo = {
|
|
2517
|
+
"&": "&",
|
|
2518
|
+
"<": "<",
|
|
2519
|
+
">": ">",
|
|
2520
|
+
'"': """,
|
|
2521
|
+
"'": "'"
|
|
2522
|
+
};
|
|
2516
2523
|
function rn(r) {
|
|
2517
|
-
return r.replace(/[&<>"']/g, (t) =>
|
|
2518
|
-
"&": "&",
|
|
2519
|
-
"<": "<",
|
|
2520
|
-
">": ">",
|
|
2521
|
-
'"': """,
|
|
2522
|
-
"'": "'"
|
|
2523
|
-
})[t]);
|
|
2524
|
+
return r.replace(/[&<>"']/g, (t) => oo[t]);
|
|
2524
2525
|
}
|
|
2525
2526
|
const qt = class qt extends Dr {
|
|
2526
2527
|
static compare(t, e) {
|
|
@@ -2866,8 +2867,8 @@ var Wi = { exports: {} };
|
|
|
2866
2867
|
return h ? (g = e ? e + h : h, this._events[g] && o(this, g)) : (this._events = new s(), this._eventsCount = 0), this;
|
|
2867
2868
|
}, a.prototype.off = a.prototype.removeListener, a.prototype.addListener = a.prototype.on, a.prefixed = e, a.EventEmitter = a, r.exports = a;
|
|
2868
2869
|
})(Wi);
|
|
2869
|
-
var
|
|
2870
|
-
const
|
|
2870
|
+
var ao = Wi.exports;
|
|
2871
|
+
const co = /* @__PURE__ */ Bi(ao), wr = /* @__PURE__ */ new WeakMap(), Tr = ["error", "warn", "log", "info"];
|
|
2871
2872
|
let Lr = "warn";
|
|
2872
2873
|
function Xi(r) {
|
|
2873
2874
|
if (Lr && Tr.indexOf(r) <= Tr.indexOf(Lr)) {
|
|
@@ -2883,8 +2884,8 @@ Pt.level = (r) => {
|
|
|
2883
2884
|
Lr = r;
|
|
2884
2885
|
};
|
|
2885
2886
|
Xi.level = Pt.level;
|
|
2886
|
-
const cr = Pt("quill:events"),
|
|
2887
|
-
|
|
2887
|
+
const cr = Pt("quill:events"), uo = ["selectionchange", "mousedown", "mouseup", "click"];
|
|
2888
|
+
uo.forEach((r) => {
|
|
2888
2889
|
document.addEventListener(r, function() {
|
|
2889
2890
|
for (var t = arguments.length, e = new Array(t), s = 0; s < t; s++)
|
|
2890
2891
|
e[s] = arguments[s];
|
|
@@ -2894,7 +2895,7 @@ co.forEach((r) => {
|
|
|
2894
2895
|
});
|
|
2895
2896
|
});
|
|
2896
2897
|
});
|
|
2897
|
-
class L extends
|
|
2898
|
+
class L extends co {
|
|
2898
2899
|
constructor() {
|
|
2899
2900
|
super(), this.domListeners = {}, this.on("error", cr.error);
|
|
2900
2901
|
}
|
|
@@ -2947,7 +2948,7 @@ class re {
|
|
|
2947
2948
|
this.index = t, this.length = e;
|
|
2948
2949
|
}
|
|
2949
2950
|
}
|
|
2950
|
-
class
|
|
2951
|
+
class ho {
|
|
2951
2952
|
constructor(t, e) {
|
|
2952
2953
|
this.emitter = e, this.scroll = t, this.composing = !1, this.mouseDown = !1, this.root = this.scroll.domNode, this.cursor = this.scroll.create("cursor", this), this.savedRange = new re(0, 0), this.lastRange = this.savedRange, this.lastNative = null, this.handleComposition(), this.handleDragging(), this.emitter.listenDOM("selectionchange", document, () => {
|
|
2953
2954
|
!this.mouseDown && !this.composing && setTimeout(this.update.bind(this, L.sources.USER), 1);
|
|
@@ -3167,8 +3168,8 @@ function hr(r, t) {
|
|
|
3167
3168
|
}
|
|
3168
3169
|
return r.contains(t);
|
|
3169
3170
|
}
|
|
3170
|
-
const
|
|
3171
|
-
class
|
|
3171
|
+
const fo = /^[ -~]*$/;
|
|
3172
|
+
class go {
|
|
3172
3173
|
constructor(t) {
|
|
3173
3174
|
this.scroll = t, this.delta = this.getDelta();
|
|
3174
3175
|
}
|
|
@@ -3177,7 +3178,7 @@ class fo {
|
|
|
3177
3178
|
let e = this.scroll.length();
|
|
3178
3179
|
this.scroll.batchStart();
|
|
3179
3180
|
const s = gi(t), n = new S();
|
|
3180
|
-
return
|
|
3181
|
+
return mo(s.ops.slice()).reduce((o, a) => {
|
|
3181
3182
|
const u = ct.Op.length(a);
|
|
3182
3183
|
let h = a.attributes || {}, g = !1, y = !1;
|
|
3183
3184
|
if (a.insert != null) {
|
|
@@ -3264,7 +3265,7 @@ class fo {
|
|
|
3264
3265
|
for (; Object.keys(h).length > 0; ) {
|
|
3265
3266
|
const g = a.shift();
|
|
3266
3267
|
if (g == null) return h;
|
|
3267
|
-
h =
|
|
3268
|
+
h = po(lt(g), h);
|
|
3268
3269
|
}
|
|
3269
3270
|
return h;
|
|
3270
3271
|
});
|
|
@@ -3321,7 +3322,7 @@ class fo {
|
|
|
3321
3322
|
let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [], s = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : void 0;
|
|
3322
3323
|
const n = this.delta;
|
|
3323
3324
|
if (e.length === 1 && e[0].type === "characterData" && // @ts-expect-error Fix me later
|
|
3324
|
-
e[0].target.data.match(
|
|
3325
|
+
e[0].target.data.match(fo) && this.scroll.find(e[0].target)) {
|
|
3325
3326
|
const i = this.scroll.find(e[0].target), o = lt(i), a = i.offset(this.scroll), u = e[0].oldValue.replace(Ce.CONTENTS, ""), h = new S().insert(u), g = new S().insert(i.value()), y = s && {
|
|
3326
3327
|
oldRange: pi(s.oldRange, -a),
|
|
3327
3328
|
newRange: pi(s.newRange, -a)
|
|
@@ -3357,7 +3358,7 @@ function as(r, t, e) {
|
|
|
3357
3358
|
if ("html" in r && typeof r.html == "function")
|
|
3358
3359
|
return r.html(t, e);
|
|
3359
3360
|
if (r instanceof yt)
|
|
3360
|
-
return rn(r.value().slice(t, t + e));
|
|
3361
|
+
return rn(r.value().slice(t, t + e)).replaceAll(" ", " ");
|
|
3361
3362
|
if (r instanceof bt) {
|
|
3362
3363
|
if (r.statics.blotName === "list-container") {
|
|
3363
3364
|
const h = [];
|
|
@@ -3385,7 +3386,7 @@ function as(r, t, e) {
|
|
|
3385
3386
|
}
|
|
3386
3387
|
return r.domNode instanceof Element ? r.domNode.outerHTML : "";
|
|
3387
3388
|
}
|
|
3388
|
-
function
|
|
3389
|
+
function po(r, t) {
|
|
3389
3390
|
return Object.keys(t).reduce((e, s) => {
|
|
3390
3391
|
if (r[s] == null) return e;
|
|
3391
3392
|
const n = t[s];
|
|
@@ -3421,7 +3422,7 @@ function pi(r, t) {
|
|
|
3421
3422
|
} = r;
|
|
3422
3423
|
return new re(e + t, s);
|
|
3423
3424
|
}
|
|
3424
|
-
function
|
|
3425
|
+
function mo(r) {
|
|
3425
3426
|
const t = [];
|
|
3426
3427
|
return r.forEach((e) => {
|
|
3427
3428
|
typeof e.insert == "string" ? e.insert.split(`
|
|
@@ -3487,7 +3488,7 @@ class ln extends nt {
|
|
|
3487
3488
|
});
|
|
3488
3489
|
}
|
|
3489
3490
|
}
|
|
3490
|
-
class
|
|
3491
|
+
class bo {
|
|
3491
3492
|
constructor(t, e) {
|
|
3492
3493
|
T(this, "isComposing", !1);
|
|
3493
3494
|
this.scroll = t, this.emitter = e, this.setupListeners();
|
|
@@ -3530,7 +3531,7 @@ T(rs, "DEFAULTS", {
|
|
|
3530
3531
|
default: rs
|
|
3531
3532
|
});
|
|
3532
3533
|
let _e = rs;
|
|
3533
|
-
const
|
|
3534
|
+
const yo = (r) => r.parentElement || r.getRootNode().host || null, vo = (r) => {
|
|
3534
3535
|
const t = r.getBoundingClientRect(), e = "offsetWidth" in r && Math.abs(t.width) / r.offsetWidth || 1, s = "offsetHeight" in r && Math.abs(t.height) / r.offsetHeight || 1;
|
|
3535
3536
|
return {
|
|
3536
3537
|
top: t.top,
|
|
@@ -3541,7 +3542,7 @@ const bo = (r) => r.parentElement || r.getRootNode().host || null, yo = (r) => {
|
|
|
3541
3542
|
}, zs = (r) => {
|
|
3542
3543
|
const t = parseInt(r, 10);
|
|
3543
3544
|
return Number.isNaN(t) ? 0 : t;
|
|
3544
|
-
}, mi = (r, t, e, s, n, i) => r < e && t > s ? 0 : r < e ? -(e - r + n) : t > s ? t - r > s - e ? r + n - e : t - s + i : 0,
|
|
3545
|
+
}, mi = (r, t, e, s, n, i) => r < e && t > s ? 0 : r < e ? -(e - r + n) : t > s ? t - r > s - e ? r + n - e : t - s + i : 0, Eo = (r, t) => {
|
|
3545
3546
|
var i, o, a;
|
|
3546
3547
|
const e = r.ownerDocument;
|
|
3547
3548
|
let s = t, n = r;
|
|
@@ -3551,7 +3552,7 @@ const bo = (r) => r.parentElement || r.getRootNode().host || null, yo = (r) => {
|
|
|
3551
3552
|
right: ((i = window.visualViewport) == null ? void 0 : i.width) ?? e.documentElement.clientWidth,
|
|
3552
3553
|
bottom: ((o = window.visualViewport) == null ? void 0 : o.height) ?? e.documentElement.clientHeight,
|
|
3553
3554
|
left: 0
|
|
3554
|
-
} :
|
|
3555
|
+
} : vo(n), g = getComputedStyle(n), y = mi(s.left, s.right, h.left, h.right, zs(g.scrollPaddingLeft), zs(g.scrollPaddingRight)), d = mi(s.top, s.bottom, h.top, h.bottom, zs(g.scrollPaddingTop), zs(g.scrollPaddingBottom));
|
|
3555
3556
|
if (y || d)
|
|
3556
3557
|
if (u)
|
|
3557
3558
|
(a = e.defaultView) == null || a.scrollBy(y, d);
|
|
@@ -3569,11 +3570,11 @@ const bo = (r) => r.parentElement || r.getRootNode().host || null, yo = (r) => {
|
|
|
3569
3570
|
bottom: s.bottom - v
|
|
3570
3571
|
};
|
|
3571
3572
|
}
|
|
3572
|
-
n = u || g.position === "fixed" ? null :
|
|
3573
|
+
n = u || g.position === "fixed" ? null : yo(n);
|
|
3573
3574
|
}
|
|
3574
|
-
},
|
|
3575
|
+
}, No = 100, Ao = ["block", "break", "cursor", "inline", "scroll", "text"], xo = (r, t, e) => {
|
|
3575
3576
|
const s = new ke();
|
|
3576
|
-
return
|
|
3577
|
+
return Ao.forEach((n) => {
|
|
3577
3578
|
const i = t.query(n);
|
|
3578
3579
|
i && s.register(i);
|
|
3579
3580
|
}), r.forEach((n) => {
|
|
@@ -3581,7 +3582,7 @@ const bo = (r) => r.parentElement || r.getRootNode().host || null, yo = (r) => {
|
|
|
3581
3582
|
i || e.error(`Cannot register "${n}" specified in "formats" config. Are you sure it was registered?`);
|
|
3582
3583
|
let o = 0;
|
|
3583
3584
|
for (; i; )
|
|
3584
|
-
if (s.register(i), i = "blotName" in i ? i.requiredContainer ?? null : null, o += 1, o >
|
|
3585
|
+
if (s.register(i), i = "blotName" in i ? i.requiredContainer ?? null : null, o += 1, o > No) {
|
|
3585
3586
|
e.error(`Cycle detected in registering blot requiredContainer: "${n}"`);
|
|
3586
3587
|
break;
|
|
3587
3588
|
}
|
|
@@ -3612,7 +3613,7 @@ const pt = class pt {
|
|
|
3612
3613
|
}
|
|
3613
3614
|
constructor(t) {
|
|
3614
3615
|
let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
3615
|
-
if (this.options =
|
|
3616
|
+
if (this.options = wo(t, e), this.container = this.options.container, this.container == null) {
|
|
3616
3617
|
Se.error("Invalid Quill container", t);
|
|
3617
3618
|
return;
|
|
3618
3619
|
}
|
|
@@ -3624,7 +3625,7 @@ const pt = class pt {
|
|
|
3624
3625
|
throw new Error(`Cannot initialize Quill without "${n}" blot`);
|
|
3625
3626
|
if (this.scroll = new i(this.options.registry, this.root, {
|
|
3626
3627
|
emitter: this.emitter
|
|
3627
|
-
}), this.editor = new
|
|
3628
|
+
}), this.editor = new go(this.scroll), this.selection = new ho(this.scroll, this.emitter), this.composition = new bo(this.scroll, this.emitter), this.theme = new this.options.theme(this, this.options), this.keyboard = this.theme.addModule("keyboard"), this.clipboard = this.theme.addModule("clipboard"), this.history = this.theme.addModule("history"), this.uploader = this.theme.addModule("uploader"), this.theme.addModule("input"), this.theme.addModule("uiNode"), this.theme.init(), this.emitter.on(L.events.EDITOR_CHANGE, (o) => {
|
|
3628
3629
|
o === L.events.TEXT_CHANGE && this.root.classList.toggle("ql-blank", this.editor.isBlank());
|
|
3629
3630
|
}), this.emitter.on(L.events.SCROLL_UPDATE, (o, a) => {
|
|
3630
3631
|
const u = this.selection.lastRange, [h] = this.selection.getRange(), g = u && h ? {
|
|
@@ -3803,7 +3804,7 @@ const pt = class pt {
|
|
|
3803
3804
|
return [t, e, , s] = Mt(t, e, s), gt.call(this, () => this.editor.removeFormat(t, e), s, t);
|
|
3804
3805
|
}
|
|
3805
3806
|
scrollRectIntoView(t) {
|
|
3806
|
-
|
|
3807
|
+
Eo(this.root, t);
|
|
3807
3808
|
}
|
|
3808
3809
|
/**
|
|
3809
3810
|
* @deprecated Use Quill#scrollSelectionIntoView() instead.
|
|
@@ -3857,7 +3858,7 @@ T(pt, "DEFAULTS", {
|
|
|
3857
3858
|
readOnly: !1,
|
|
3858
3859
|
registry: Vs,
|
|
3859
3860
|
theme: "default"
|
|
3860
|
-
}), T(pt, "events", L.events), T(pt, "sources", L.sources), T(pt, "version", "2.0.
|
|
3861
|
+
}), T(pt, "events", L.events), T(pt, "sources", L.sources), T(pt, "version", "2.0.3"), T(pt, "imports", {
|
|
3861
3862
|
delta: S,
|
|
3862
3863
|
parchment: Gl,
|
|
3863
3864
|
"core/module": Nt,
|
|
@@ -3879,7 +3880,7 @@ function dr(r) {
|
|
|
3879
3880
|
function yi(r) {
|
|
3880
3881
|
return Object.fromEntries(Object.entries(r).filter((t) => t[1] !== void 0));
|
|
3881
3882
|
}
|
|
3882
|
-
function
|
|
3883
|
+
function wo(r, t) {
|
|
3883
3884
|
const e = bi(r);
|
|
3884
3885
|
if (!e)
|
|
3885
3886
|
throw new Error("Invalid Quill container");
|
|
@@ -3906,7 +3907,7 @@ function xo(r, t) {
|
|
|
3906
3907
|
...yi(t)
|
|
3907
3908
|
};
|
|
3908
3909
|
let d = t.registry;
|
|
3909
|
-
return d ? t.formats && Se.warn('Ignoring "formats" option because "registry" is specified') : d = t.formats ?
|
|
3910
|
+
return d ? t.formats && Se.warn('Ignoring "formats" option because "registry" is specified') : d = t.formats ? xo(t.formats, y.registry, Se) : y.registry, {
|
|
3910
3911
|
...y,
|
|
3911
3912
|
registry: d,
|
|
3912
3913
|
container: e,
|
|
@@ -4191,18 +4192,18 @@ function gr(r, t, e) {
|
|
|
4191
4192
|
const Fr = {
|
|
4192
4193
|
scope: C.BLOCK,
|
|
4193
4194
|
whitelist: ["right", "center", "justify"]
|
|
4194
|
-
},
|
|
4195
|
+
}, To = new kt("align", "align", Fr), Yi = new vt("align", "ql-align", Fr), Qi = new Zt("align", "text-align", Fr);
|
|
4195
4196
|
class Ji extends Zt {
|
|
4196
4197
|
value(t) {
|
|
4197
4198
|
let e = super.value(t);
|
|
4198
4199
|
return e.startsWith("rgb(") ? (e = e.replace(/^[^\d]+/, "").replace(/[^\d]+$/, ""), `#${e.split(",").map((n) => `00${parseInt(n, 10).toString(16)}`.slice(-2)).join("")}`) : e;
|
|
4199
4200
|
}
|
|
4200
4201
|
}
|
|
4201
|
-
const
|
|
4202
|
+
const Lo = new vt("color", "ql-color", {
|
|
4202
4203
|
scope: C.INLINE
|
|
4203
4204
|
}), zr = new Ji("color", "color", {
|
|
4204
4205
|
scope: C.INLINE
|
|
4205
|
-
}),
|
|
4206
|
+
}), qo = new vt("background", "ql-bg", {
|
|
4206
4207
|
scope: C.INLINE
|
|
4207
4208
|
}), Vr = new Ji("background", "background-color", {
|
|
4208
4209
|
scope: C.INLINE
|
|
@@ -4248,18 +4249,18 @@ const Gr = {
|
|
|
4248
4249
|
scope: C.INLINE,
|
|
4249
4250
|
whitelist: ["serif", "monospace"]
|
|
4250
4251
|
}, rl = new vt("font", "ql-font", nl);
|
|
4251
|
-
class
|
|
4252
|
+
class So extends Zt {
|
|
4252
4253
|
value(t) {
|
|
4253
4254
|
return super.value(t).replace(/["']/g, "");
|
|
4254
4255
|
}
|
|
4255
4256
|
}
|
|
4256
|
-
const il = new
|
|
4257
|
+
const il = new So("font", "font-family", nl), ll = new vt("size", "ql-size", {
|
|
4257
4258
|
scope: C.INLINE,
|
|
4258
4259
|
whitelist: ["small", "large", "huge"]
|
|
4259
4260
|
}), ol = new Zt("size", "font-size", {
|
|
4260
4261
|
scope: C.INLINE,
|
|
4261
4262
|
whitelist: ["10px", "18px", "32px"]
|
|
4262
|
-
}),
|
|
4263
|
+
}), ko = Pt("quill:keyboard"), Co = /Mac/i.test(navigator.platform) ? "metaKey" : "ctrlKey";
|
|
4263
4264
|
class on extends Nt {
|
|
4264
4265
|
static match(t, e) {
|
|
4265
4266
|
return ["altKey", "ctrlKey", "metaKey", "shiftKey"].some((s) => !!e[s] !== t[s] && e[s] !== null) ? !1 : e.key === t.key || e.key === t.which;
|
|
@@ -4315,9 +4316,9 @@ class on extends Nt {
|
|
|
4315
4316
|
}
|
|
4316
4317
|
addBinding(t) {
|
|
4317
4318
|
let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, s = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
4318
|
-
const n =
|
|
4319
|
+
const n = Oo(t);
|
|
4319
4320
|
if (n == null) {
|
|
4320
|
-
|
|
4321
|
+
ko.warn("Attempted to add invalid keyboard binding", n);
|
|
4321
4322
|
return;
|
|
4322
4323
|
}
|
|
4323
4324
|
typeof e == "function" && (e = {
|
|
@@ -4411,7 +4412,7 @@ class on extends Nt {
|
|
|
4411
4412
|
this.quill.updateContents(n, A.sources.USER), this.quill.setSelection(t.index + 1, A.sources.SILENT), this.quill.focus();
|
|
4412
4413
|
}
|
|
4413
4414
|
}
|
|
4414
|
-
const
|
|
4415
|
+
const _o = {
|
|
4415
4416
|
bindings: {
|
|
4416
4417
|
bold: pr("bold"),
|
|
4417
4418
|
italic: pr("italic"),
|
|
@@ -4541,7 +4542,7 @@ const Co = {
|
|
|
4541
4542
|
handler(r) {
|
|
4542
4543
|
const t = this.quill.getModule("table");
|
|
4543
4544
|
if (t) {
|
|
4544
|
-
const [e, s, n, i] = t.getTable(r), o =
|
|
4545
|
+
const [e, s, n, i] = t.getTable(r), o = Io(e, s, n, i);
|
|
4545
4546
|
if (o == null) return;
|
|
4546
4547
|
let a = e.offset();
|
|
4547
4548
|
if (o < 0) {
|
|
@@ -4635,7 +4636,7 @@ const Co = {
|
|
|
4635
4636
|
"table up": xi(!0)
|
|
4636
4637
|
}
|
|
4637
4638
|
};
|
|
4638
|
-
on.DEFAULTS =
|
|
4639
|
+
on.DEFAULTS = _o;
|
|
4639
4640
|
function Ai(r) {
|
|
4640
4641
|
return {
|
|
4641
4642
|
key: "Tab",
|
|
@@ -4713,7 +4714,7 @@ function xi(r) {
|
|
|
4713
4714
|
}
|
|
4714
4715
|
};
|
|
4715
4716
|
}
|
|
4716
|
-
function
|
|
4717
|
+
function Oo(r) {
|
|
4717
4718
|
if (typeof r == "string" || typeof r == "number")
|
|
4718
4719
|
r = {
|
|
4719
4720
|
key: r
|
|
@@ -4722,7 +4723,7 @@ function _o(r) {
|
|
|
4722
4723
|
r = Le(r);
|
|
4723
4724
|
else
|
|
4724
4725
|
return null;
|
|
4725
|
-
return r.shortKey && (r[
|
|
4726
|
+
return r.shortKey && (r[Co] = r.shortKey, delete r.shortKey), r;
|
|
4726
4727
|
}
|
|
4727
4728
|
function Zr(r) {
|
|
4728
4729
|
let {
|
|
@@ -4737,48 +4738,48 @@ function Zr(r) {
|
|
|
4737
4738
|
}
|
|
4738
4739
|
t.deleteText(e, A.sources.USER), Object.keys(n).length > 0 && t.formatLine(e.index, 1, n, A.sources.USER), t.setSelection(e.index, A.sources.SILENT);
|
|
4739
4740
|
}
|
|
4740
|
-
function
|
|
4741
|
+
function Io(r, t, e, s) {
|
|
4741
4742
|
return t.prev == null && t.next == null ? e.prev == null && e.next == null ? s === 0 ? -1 : 1 : e.prev == null ? -1 : 1 : t.prev == null ? -1 : t.next == null ? 1 : null;
|
|
4742
4743
|
}
|
|
4743
|
-
const
|
|
4744
|
+
const Ro = /font-weight:\s*normal/, Bo = ["P", "OL", "UL"], wi = (r) => r && Bo.includes(r.tagName), Mo = (r) => {
|
|
4744
4745
|
Array.from(r.querySelectorAll("br")).filter((t) => wi(t.previousElementSibling) && wi(t.nextElementSibling)).forEach((t) => {
|
|
4745
4746
|
var e;
|
|
4746
4747
|
(e = t.parentNode) == null || e.removeChild(t);
|
|
4747
4748
|
});
|
|
4748
|
-
},
|
|
4749
|
+
}, Do = (r) => {
|
|
4749
4750
|
Array.from(r.querySelectorAll('b[style*="font-weight"]')).filter((t) => {
|
|
4750
4751
|
var e;
|
|
4751
|
-
return (e = t.getAttribute("style")) == null ? void 0 : e.match(
|
|
4752
|
+
return (e = t.getAttribute("style")) == null ? void 0 : e.match(Ro);
|
|
4752
4753
|
}).forEach((t) => {
|
|
4753
4754
|
var s;
|
|
4754
4755
|
const e = r.createDocumentFragment();
|
|
4755
4756
|
e.append(...t.childNodes), (s = t.parentNode) == null || s.replaceChild(e, t);
|
|
4756
4757
|
});
|
|
4757
4758
|
};
|
|
4758
|
-
function
|
|
4759
|
-
r.querySelector('[id^="docs-internal-guid-"]') && (
|
|
4759
|
+
function Uo(r) {
|
|
4760
|
+
r.querySelector('[id^="docs-internal-guid-"]') && (Do(r), Mo(r));
|
|
4760
4761
|
}
|
|
4761
|
-
const
|
|
4762
|
-
const e = r.getAttribute("style"), s = e == null ? void 0 : e.match(
|
|
4762
|
+
const Po = /\bmso-list:[^;]*ignore/i, jo = /\bmso-list:[^;]*\bl(\d+)/i, $o = /\bmso-list:[^;]*\blevel(\d+)/i, Ho = (r, t) => {
|
|
4763
|
+
const e = r.getAttribute("style"), s = e == null ? void 0 : e.match(jo);
|
|
4763
4764
|
if (!s)
|
|
4764
4765
|
return null;
|
|
4765
|
-
const n = Number(s[1]), i = e == null ? void 0 : e.match(
|
|
4766
|
+
const n = Number(s[1]), i = e == null ? void 0 : e.match($o), o = i ? Number(i[1]) : 1, a = new RegExp(`@list l${n}:level${o}\\s*\\{[^\\}]*mso-level-number-format:\\s*([\\w-]+)`, "i"), u = t.match(a), h = u && u[1] === "bullet" ? "bullet" : "ordered";
|
|
4766
4767
|
return {
|
|
4767
4768
|
id: n,
|
|
4768
4769
|
indent: o,
|
|
4769
4770
|
type: h,
|
|
4770
4771
|
element: r
|
|
4771
4772
|
};
|
|
4772
|
-
},
|
|
4773
|
+
}, Fo = (r) => {
|
|
4773
4774
|
var o, a;
|
|
4774
4775
|
const t = Array.from(r.querySelectorAll("[style*=mso-list]")), e = [], s = [];
|
|
4775
4776
|
t.forEach((u) => {
|
|
4776
|
-
(u.getAttribute("style") || "").match(
|
|
4777
|
+
(u.getAttribute("style") || "").match(Po) ? e.push(u) : s.push(u);
|
|
4777
4778
|
}), e.forEach((u) => {
|
|
4778
4779
|
var h;
|
|
4779
4780
|
return (h = u.parentNode) == null ? void 0 : h.removeChild(u);
|
|
4780
4781
|
});
|
|
4781
|
-
const n = r.documentElement.innerHTML, i = s.map((u) =>
|
|
4782
|
+
const n = r.documentElement.innerHTML, i = s.map((u) => Ho(u, n)).filter((u) => u);
|
|
4782
4783
|
for (; i.length; ) {
|
|
4783
4784
|
const u = [];
|
|
4784
4785
|
let h = i.shift();
|
|
@@ -4801,17 +4802,17 @@ const Uo = /\bmso-list:[^;]*ignore/i, Po = /\bmso-list:[^;]*\bl(\d+)/i, jo = /\b
|
|
|
4801
4802
|
});
|
|
4802
4803
|
}
|
|
4803
4804
|
};
|
|
4804
|
-
function
|
|
4805
|
-
r.documentElement.getAttribute("xmlns:w") === "urn:schemas-microsoft-com:office:word" &&
|
|
4805
|
+
function zo(r) {
|
|
4806
|
+
r.documentElement.getAttribute("xmlns:w") === "urn:schemas-microsoft-com:office:word" && Fo(r);
|
|
4806
4807
|
}
|
|
4807
|
-
const
|
|
4808
|
-
r.documentElement &&
|
|
4808
|
+
const Vo = [zo, Uo], Ko = (r) => {
|
|
4809
|
+
r.documentElement && Vo.forEach((t) => {
|
|
4809
4810
|
t(r);
|
|
4810
4811
|
});
|
|
4811
|
-
},
|
|
4812
|
+
}, Go = Pt("quill:clipboard"), Zo = [[Node.TEXT_NODE, la], [Node.TEXT_NODE, Li], ["br", Jo], [Node.ELEMENT_NODE, Li], [Node.ELEMENT_NODE, Qo], [Node.ELEMENT_NODE, Yo], [Node.ELEMENT_NODE, ra], ["li", sa], ["ol, ul", na], ["pre", ta], ["tr", ia], ["b", mr("bold")], ["i", mr("italic")], ["strike", mr("strike")], ["style", ea]], Wo = [To, tl].reduce((r, t) => (r[t.keyName] = t, r), {}), Ti = [Qi, Vr, zr, sl, il, ol].reduce((r, t) => (r[t.keyName] = t, r), {});
|
|
4812
4813
|
class al extends Nt {
|
|
4813
4814
|
constructor(t, e) {
|
|
4814
|
-
super(t, e), this.quill.root.addEventListener("copy", (s) => this.onCaptureCopy(s, !1)), this.quill.root.addEventListener("cut", (s) => this.onCaptureCopy(s, !0)), this.quill.root.addEventListener("paste", this.onCapturePaste.bind(this)), this.matchers = [],
|
|
4815
|
+
super(t, e), this.quill.root.addEventListener("copy", (s) => this.onCaptureCopy(s, !1)), this.quill.root.addEventListener("cut", (s) => this.onCaptureCopy(s, !0)), this.quill.root.addEventListener("paste", this.onCapturePaste.bind(this)), this.matchers = [], Zo.concat(this.options.matchers ?? []).forEach((s) => {
|
|
4815
4816
|
let [n, i] = s;
|
|
4816
4817
|
this.addMatcher(n, i);
|
|
4817
4818
|
});
|
|
@@ -4835,7 +4836,7 @@ class al extends Nt {
|
|
|
4835
4836
|
`) && (i.ops[i.ops.length - 1].attributes == null || n.table) ? i.compose(new S().retain(i.length() - 1).delete(1)) : i;
|
|
4836
4837
|
}
|
|
4837
4838
|
normalizeHTML(t) {
|
|
4838
|
-
|
|
4839
|
+
Ko(t);
|
|
4839
4840
|
}
|
|
4840
4841
|
convertHTML(t) {
|
|
4841
4842
|
const e = new DOMParser().parseFromString(t, "text/html");
|
|
@@ -4927,7 +4928,7 @@ class al extends Nt {
|
|
|
4927
4928
|
text: s,
|
|
4928
4929
|
html: n
|
|
4929
4930
|
}, i);
|
|
4930
|
-
|
|
4931
|
+
Go.log("onPaste", o, {
|
|
4931
4932
|
text: s,
|
|
4932
4933
|
html: n
|
|
4933
4934
|
});
|
|
@@ -4989,7 +4990,7 @@ function Vt(r, t) {
|
|
|
4989
4990
|
const e = t.query(r);
|
|
4990
4991
|
return e && e.prototype instanceof nt ? !1 : ["address", "article", "blockquote", "canvas", "dd", "div", "dl", "dt", "fieldset", "figcaption", "figure", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "header", "iframe", "li", "main", "nav", "ol", "output", "p", "pre", "section", "table", "td", "tr", "ul", "video"].includes(r.tagName.toLowerCase());
|
|
4991
4992
|
}
|
|
4992
|
-
function
|
|
4993
|
+
function Xo(r, t) {
|
|
4993
4994
|
return r.previousElementSibling && r.nextElementSibling && !Vt(r.previousElementSibling, t) && !Vt(r.nextElementSibling, t);
|
|
4994
4995
|
}
|
|
4995
4996
|
const Gs = /* @__PURE__ */ new WeakMap();
|
|
@@ -5005,17 +5006,17 @@ function Wr(r, t, e, s, n) {
|
|
|
5005
5006
|
function mr(r) {
|
|
5006
5007
|
return (t, e, s) => oe(e, r, !0, s);
|
|
5007
5008
|
}
|
|
5008
|
-
function
|
|
5009
|
+
function Yo(r, t, e) {
|
|
5009
5010
|
const s = kt.keys(r), n = vt.keys(r), i = Zt.keys(r), o = {};
|
|
5010
5011
|
return s.concat(n).concat(i).forEach((a) => {
|
|
5011
5012
|
let u = e.query(a, C.ATTRIBUTE);
|
|
5012
|
-
u != null && (o[u.attrName] = u.value(r), o[u.attrName]) || (u =
|
|
5013
|
+
u != null && (o[u.attrName] = u.value(r), o[u.attrName]) || (u = Wo[a], u != null && (u.attrName === a || u.keyName === a) && (o[u.attrName] = u.value(r) || void 0), u = Ti[a], u != null && (u.attrName === a || u.keyName === a) && (u = Ti[a], o[u.attrName] = u.value(r) || void 0));
|
|
5013
5014
|
}), Object.entries(o).reduce((a, u) => {
|
|
5014
5015
|
let [h, g] = u;
|
|
5015
5016
|
return oe(a, h, g, e);
|
|
5016
5017
|
}, t);
|
|
5017
5018
|
}
|
|
5018
|
-
function
|
|
5019
|
+
function Qo(r, t, e) {
|
|
5019
5020
|
const s = e.query(r);
|
|
5020
5021
|
if (s == null) return t;
|
|
5021
5022
|
if (s.prototype instanceof nt) {
|
|
@@ -5028,19 +5029,19 @@ function Yo(r, t, e) {
|
|
|
5028
5029
|
return oe(t, s.blotName, s.formats(r, e), e);
|
|
5029
5030
|
return t;
|
|
5030
5031
|
}
|
|
5031
|
-
function
|
|
5032
|
+
function Jo(r, t) {
|
|
5032
5033
|
return hs(t, `
|
|
5033
5034
|
`) || t.insert(`
|
|
5034
5035
|
`), t;
|
|
5035
5036
|
}
|
|
5036
|
-
function
|
|
5037
|
+
function ta(r, t, e) {
|
|
5037
5038
|
const s = e.query("code-block"), n = s && "formats" in s && typeof s.formats == "function" ? s.formats(r, e) : !0;
|
|
5038
5039
|
return oe(t, "code-block", n, e);
|
|
5039
5040
|
}
|
|
5040
|
-
function
|
|
5041
|
+
function ea() {
|
|
5041
5042
|
return new S();
|
|
5042
5043
|
}
|
|
5043
|
-
function
|
|
5044
|
+
function sa(r, t, e) {
|
|
5044
5045
|
const s = e.query(r);
|
|
5045
5046
|
if (s == null || // @ts-expect-error
|
|
5046
5047
|
s.blotName !== "list" || !hs(t, `
|
|
@@ -5054,7 +5055,7 @@ function ea(r, t, e) {
|
|
|
5054
5055
|
...a.attributes || {}
|
|
5055
5056
|
}) : o, new S());
|
|
5056
5057
|
}
|
|
5057
|
-
function
|
|
5058
|
+
function na(r, t, e) {
|
|
5058
5059
|
const s = r;
|
|
5059
5060
|
let n = s.tagName === "OL" ? "ordered" : "bullet";
|
|
5060
5061
|
const i = s.getAttribute("data-checked");
|
|
@@ -5082,7 +5083,7 @@ function Li(r, t, e) {
|
|
|
5082
5083
|
}
|
|
5083
5084
|
return t;
|
|
5084
5085
|
}
|
|
5085
|
-
function
|
|
5086
|
+
function ra(r, t, e) {
|
|
5086
5087
|
var i;
|
|
5087
5088
|
const s = {}, n = r.style || {};
|
|
5088
5089
|
return n.fontStyle === "italic" && (s.italic = !0), n.textDecoration === "underline" && (s.underline = !0), n.textDecoration === "line-through" && (s.strike = !0), ((i = n.fontWeight) != null && i.startsWith("bold") || // @ts-expect-error Fix me later
|
|
@@ -5091,7 +5092,7 @@ function na(r, t, e) {
|
|
|
5091
5092
|
return oe(o, u, h, e);
|
|
5092
5093
|
}, t), parseFloat(n.textIndent || 0) > 0 ? new S().insert(" ").concat(t) : t;
|
|
5093
5094
|
}
|
|
5094
|
-
function
|
|
5095
|
+
function ia(r, t, e) {
|
|
5095
5096
|
var n, i;
|
|
5096
5097
|
const s = ((n = r.parentElement) == null ? void 0 : n.tagName) === "TABLE" ? r.parentElement : (i = r.parentElement) == null ? void 0 : i.parentElement;
|
|
5097
5098
|
if (s != null) {
|
|
@@ -5100,20 +5101,16 @@ function ra(r, t, e) {
|
|
|
5100
5101
|
}
|
|
5101
5102
|
return t;
|
|
5102
5103
|
}
|
|
5103
|
-
function
|
|
5104
|
+
function la(r, t, e) {
|
|
5104
5105
|
var n;
|
|
5105
5106
|
let s = r.data;
|
|
5106
5107
|
if (((n = r.parentElement) == null ? void 0 : n.tagName) === "O:P")
|
|
5107
5108
|
return t.insert(s.trim());
|
|
5108
5109
|
if (!cl(r)) {
|
|
5109
5110
|
if (s.trim().length === 0 && s.includes(`
|
|
5110
|
-
`) && !
|
|
5111
|
+
`) && !Xo(r, e))
|
|
5111
5112
|
return t;
|
|
5112
|
-
|
|
5113
|
-
const u = a.replace(/[^\u00a0]/g, "");
|
|
5114
|
-
return u.length < 1 && o ? " " : u;
|
|
5115
|
-
};
|
|
5116
|
-
s = s.replace(/\r\n/g, " ").replace(/\n/g, " "), s = s.replace(/\s\s+/g, i.bind(i, !0)), (r.previousSibling == null && r.parentElement != null && Vt(r.parentElement, e) || r.previousSibling instanceof Element && Vt(r.previousSibling, e)) && (s = s.replace(/^\s+/, i.bind(i, !1))), (r.nextSibling == null && r.parentElement != null && Vt(r.parentElement, e) || r.nextSibling instanceof Element && Vt(r.nextSibling, e)) && (s = s.replace(/\s+$/, i.bind(i, !1)));
|
|
5113
|
+
s = s.replace(/[^\S\u00a0]/g, " "), s = s.replace(/ {2,}/g, " "), (r.previousSibling == null && r.parentElement != null && Vt(r.parentElement, e) || r.previousSibling instanceof Element && Vt(r.previousSibling, e)) && (s = s.replace(/^ /, "")), (r.nextSibling == null && r.parentElement != null && Vt(r.parentElement, e) || r.nextSibling instanceof Element && Vt(r.nextSibling, e)) && (s = s.replace(/ $/, "")), s = s.replaceAll(" ", " ");
|
|
5117
5114
|
}
|
|
5118
5115
|
return t.insert(s);
|
|
5119
5116
|
}
|
|
@@ -5193,7 +5190,7 @@ class ul extends Nt {
|
|
|
5193
5190
|
if (e.range)
|
|
5194
5191
|
this.quill.setSelection(e.range, A.sources.USER);
|
|
5195
5192
|
else {
|
|
5196
|
-
const s =
|
|
5193
|
+
const s = aa(this.quill.scroll, e.delta);
|
|
5197
5194
|
this.quill.setSelection(s, A.sources.USER);
|
|
5198
5195
|
}
|
|
5199
5196
|
}
|
|
@@ -5213,15 +5210,15 @@ function qi(r, t) {
|
|
|
5213
5210
|
}, e = n.delta.transform(e), r[s].delta.length() === 0 && r.splice(s, 1);
|
|
5214
5211
|
}
|
|
5215
5212
|
}
|
|
5216
|
-
function
|
|
5213
|
+
function oa(r, t) {
|
|
5217
5214
|
const e = t.ops[t.ops.length - 1];
|
|
5218
5215
|
return e == null ? !1 : e.insert != null ? typeof e.insert == "string" && e.insert.endsWith(`
|
|
5219
5216
|
`) : e.attributes != null ? Object.keys(e.attributes).some((s) => r.query(s, C.BLOCK) != null) : !1;
|
|
5220
5217
|
}
|
|
5221
|
-
function
|
|
5218
|
+
function aa(r, t) {
|
|
5222
5219
|
const e = t.reduce((n, i) => n + (i.delete || 0), 0);
|
|
5223
5220
|
let s = t.length() - e;
|
|
5224
|
-
return
|
|
5221
|
+
return oa(r, t) && (s -= 1), s;
|
|
5225
5222
|
}
|
|
5226
5223
|
function qr(r, t) {
|
|
5227
5224
|
if (!r) return r;
|
|
@@ -5277,8 +5274,8 @@ hl.DEFAULTS = {
|
|
|
5277
5274
|
});
|
|
5278
5275
|
}
|
|
5279
5276
|
};
|
|
5280
|
-
const
|
|
5281
|
-
class
|
|
5277
|
+
const ca = ["insertText", "insertReplacementText"];
|
|
5278
|
+
class ua extends Nt {
|
|
5282
5279
|
constructor(t, e) {
|
|
5283
5280
|
super(t, e), t.root.addEventListener("beforeinput", (s) => {
|
|
5284
5281
|
this.handleBeforeInput(s);
|
|
@@ -5303,12 +5300,12 @@ class ca extends Nt {
|
|
|
5303
5300
|
return this.quill.setSelection(t.index + e.length, 0, A.sources.SILENT), !0;
|
|
5304
5301
|
}
|
|
5305
5302
|
handleBeforeInput(t) {
|
|
5306
|
-
if (this.quill.composition.isComposing || t.defaultPrevented || !
|
|
5303
|
+
if (this.quill.composition.isComposing || t.defaultPrevented || !ca.includes(t.inputType))
|
|
5307
5304
|
return;
|
|
5308
5305
|
const e = t.getTargetRanges ? t.getTargetRanges()[0] : null;
|
|
5309
5306
|
if (!e || e.collapsed === !0)
|
|
5310
5307
|
return;
|
|
5311
|
-
const s =
|
|
5308
|
+
const s = ha(t);
|
|
5312
5309
|
if (s == null)
|
|
5313
5310
|
return;
|
|
5314
5311
|
const n = this.quill.selection.normalizeNative(e), i = n ? this.quill.selection.normalizedToRange(n) : null;
|
|
@@ -5319,13 +5316,13 @@ class ca extends Nt {
|
|
|
5319
5316
|
t && this.replaceText(t);
|
|
5320
5317
|
}
|
|
5321
5318
|
}
|
|
5322
|
-
function
|
|
5319
|
+
function ha(r) {
|
|
5323
5320
|
var t;
|
|
5324
5321
|
return typeof r.data == "string" ? r.data : (t = r.dataTransfer) != null && t.types.includes("text/plain") ? r.dataTransfer.getData("text/plain") : null;
|
|
5325
5322
|
}
|
|
5326
|
-
const
|
|
5327
|
-
r.key === "ArrowUp" || r.key === "ArrowDown" || r.key === "Home" ||
|
|
5328
|
-
class
|
|
5323
|
+
const fa = /Mac/i.test(navigator.platform), da = 100, ga = (r) => !!(r.key === "ArrowLeft" || r.key === "ArrowRight" || // RTL scripts or moving from the end of the previous line
|
|
5324
|
+
r.key === "ArrowUp" || r.key === "ArrowDown" || r.key === "Home" || fa && r.key === "a" && r.ctrlKey === !0);
|
|
5325
|
+
class pa extends Nt {
|
|
5329
5326
|
constructor(e, s) {
|
|
5330
5327
|
super(e, s);
|
|
5331
5328
|
T(this, "isListening", !1);
|
|
@@ -5351,7 +5348,7 @@ class ga extends Nt {
|
|
|
5351
5348
|
}
|
|
5352
5349
|
handleNavigationShortcuts() {
|
|
5353
5350
|
this.quill.root.addEventListener("keydown", (e) => {
|
|
5354
|
-
!e.defaultPrevented &&
|
|
5351
|
+
!e.defaultPrevented && ga(e) && this.ensureListeningToSelectionChange();
|
|
5355
5352
|
});
|
|
5356
5353
|
}
|
|
5357
5354
|
/**
|
|
@@ -5361,7 +5358,7 @@ class ga extends Nt {
|
|
|
5361
5358
|
* the selection within the handler of a `selectionchange` event.
|
|
5362
5359
|
*/
|
|
5363
5360
|
ensureListeningToSelectionChange() {
|
|
5364
|
-
if (this.selectionChangeDeadline = Date.now() +
|
|
5361
|
+
if (this.selectionChangeDeadline = Date.now() + da, this.isListening) return;
|
|
5365
5362
|
this.isListening = !0;
|
|
5366
5363
|
const e = () => {
|
|
5367
5364
|
this.isListening = !1, Date.now() <= this.selectionChangeDeadline && this.handleSelectionChange();
|
|
@@ -5395,10 +5392,10 @@ A.register({
|
|
|
5395
5392
|
"modules/history": ul,
|
|
5396
5393
|
"modules/keyboard": on,
|
|
5397
5394
|
"modules/uploader": hl,
|
|
5398
|
-
"modules/input":
|
|
5399
|
-
"modules/uiNode":
|
|
5395
|
+
"modules/input": ua,
|
|
5396
|
+
"modules/uiNode": pa
|
|
5400
5397
|
});
|
|
5401
|
-
class
|
|
5398
|
+
class ma extends vt {
|
|
5402
5399
|
add(t, e) {
|
|
5403
5400
|
let s = 0;
|
|
5404
5401
|
if (e === "+1" || e === "-1") {
|
|
@@ -5414,7 +5411,7 @@ class pa extends vt {
|
|
|
5414
5411
|
return parseInt(super.value(t), 10) || void 0;
|
|
5415
5412
|
}
|
|
5416
5413
|
}
|
|
5417
|
-
const
|
|
5414
|
+
const ba = new ma("indent", "ql-indent", {
|
|
5418
5415
|
scope: C.BLOCK,
|
|
5419
5416
|
// @ts-expect-error
|
|
5420
5417
|
whitelist: [1, 2, 3, 4, 5, 6, 7, 8]
|
|
@@ -5674,7 +5671,7 @@ ${rn(this.code(t, e))}
|
|
|
5674
5671
|
ns.allowedChildren = [ot];
|
|
5675
5672
|
ot.requiredContainer = ns;
|
|
5676
5673
|
ot.allowedChildren = [Dt, Ce, yt, Et];
|
|
5677
|
-
const
|
|
5674
|
+
const ya = (r, t, e) => {
|
|
5678
5675
|
if (typeof r.versionString == "string") {
|
|
5679
5676
|
const s = r.versionString.split(".")[0];
|
|
5680
5677
|
if (parseInt(s, 10) >= 11)
|
|
@@ -5740,7 +5737,7 @@ class dl extends Nt {
|
|
|
5740
5737
|
[Y.blotName]: e
|
|
5741
5738
|
}), n.insert(i)), new S());
|
|
5742
5739
|
const s = this.quill.root.ownerDocument.createElement("div");
|
|
5743
|
-
return s.classList.add(Y.className), s.innerHTML =
|
|
5740
|
+
return s.classList.add(Y.className), s.innerHTML = ya(this.options.hljs, e, t), Wr(this.quill.scroll, s, [(n, i) => {
|
|
5744
5741
|
const o = ss.value(n);
|
|
5745
5742
|
return o ? i.compose(new S().retain(i.length(), {
|
|
5746
5743
|
[Dt.blotName]: o
|
|
@@ -5910,7 +5907,7 @@ mt.requiredContainer = Ut;
|
|
|
5910
5907
|
function Xr() {
|
|
5911
5908
|
return `row-${Math.random().toString(36).slice(2, 6)}`;
|
|
5912
5909
|
}
|
|
5913
|
-
class
|
|
5910
|
+
class va extends Nt {
|
|
5914
5911
|
static register() {
|
|
5915
5912
|
A.register(mt), A.register(Ut), A.register(St), A.register(Oe);
|
|
5916
5913
|
}
|
|
@@ -6001,7 +5998,7 @@ class Yr extends Nt {
|
|
|
6001
5998
|
var s, n;
|
|
6002
5999
|
if (super(t, e), Array.isArray(this.options.container)) {
|
|
6003
6000
|
const i = document.createElement("div");
|
|
6004
|
-
i.setAttribute("role", "toolbar"),
|
|
6001
|
+
i.setAttribute("role", "toolbar"), Ea(i, this.options.container), (n = (s = t.container) == null ? void 0 : s.parentNode) == null || n.insertBefore(i, t.container), this.container = i;
|
|
6005
6002
|
} else typeof this.options.container == "string" ? this.container = document.querySelector(this.options.container) : this.container = this.options.container;
|
|
6006
6003
|
if (!(this.container instanceof HTMLElement)) {
|
|
6007
6004
|
Ci.error("Container required for toolbar", this.options);
|
|
@@ -6086,7 +6083,7 @@ function _i(r, t, e) {
|
|
|
6086
6083
|
const s = document.createElement("button");
|
|
6087
6084
|
s.setAttribute("type", "button"), s.classList.add(`ql-${t}`), s.setAttribute("aria-pressed", "false"), e != null ? (s.value = e, s.setAttribute("aria-label", `${t}: ${e}`)) : s.setAttribute("aria-label", t), r.appendChild(s);
|
|
6088
6085
|
}
|
|
6089
|
-
function
|
|
6086
|
+
function Ea(r, t) {
|
|
6090
6087
|
Array.isArray(t[0]) || (t = [t]), t.forEach((e) => {
|
|
6091
6088
|
const s = document.createElement("span");
|
|
6092
6089
|
s.classList.add("ql-formats"), e.forEach((n) => {
|
|
@@ -6094,12 +6091,12 @@ function va(r, t) {
|
|
|
6094
6091
|
_i(s, n);
|
|
6095
6092
|
else {
|
|
6096
6093
|
const i = Object.keys(n)[0], o = n[i];
|
|
6097
|
-
Array.isArray(o) ?
|
|
6094
|
+
Array.isArray(o) ? Na(s, i, o) : _i(s, i, o);
|
|
6098
6095
|
}
|
|
6099
6096
|
}), r.appendChild(s);
|
|
6100
6097
|
});
|
|
6101
6098
|
}
|
|
6102
|
-
function
|
|
6099
|
+
function Na(r, t, e) {
|
|
6103
6100
|
const s = document.createElement("select");
|
|
6104
6101
|
s.classList.add(`ql-${t}`), e.forEach((n) => {
|
|
6105
6102
|
const i = document.createElement("option");
|
|
@@ -6142,54 +6139,54 @@ Yr.DEFAULTS = {
|
|
|
6142
6139
|
}
|
|
6143
6140
|
}
|
|
6144
6141
|
};
|
|
6145
|
-
const Na = '<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="3" x2="13" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="9" y1="4" y2="4"/></svg>', Aa = '<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="14" x2="4" y1="14" y2="14"/><line class="ql-stroke" x1="12" x2="6" y1="4" y2="4"/></svg>', xa = '<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="15" x2="5" y1="14" y2="14"/><line class="ql-stroke" x1="15" x2="9" y1="4" y2="4"/></svg>', wa = '<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="15" x2="3" y1="14" y2="14"/><line class="ql-stroke" x1="15" x2="3" y1="4" y2="4"/></svg>', Ta = '<svg viewbox="0 0 18 18"><g class="ql-fill ql-color-label"><polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"/><rect height="1" width="1" x="4" y="4"/><polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"/><rect height="1" width="1" x="2" y="6"/><rect height="1" width="1" x="3" y="5"/><rect height="1" width="1" x="4" y="7"/><polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"/><rect height="1" width="1" x="2" y="12"/><rect height="1" width="1" x="2" y="9"/><rect height="1" width="1" x="2" y="15"/><polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"/><rect height="1" width="1" x="3" y="8"/><path d="M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z"/><path d="M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z"/><path d="M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z"/><rect height="1" width="1" x="12" y="2"/><rect height="1" width="1" x="11" y="3"/><path d="M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z"/><rect height="1" width="1" x="2" y="3"/><rect height="1" width="1" x="6" y="2"/><rect height="1" width="1" x="3" y="2"/><rect height="1" width="1" x="5" y="3"/><rect height="1" width="1" x="9" y="2"/><rect height="1" width="1" x="15" y="14"/><polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"/><rect height="1" width="1" x="13" y="7"/><rect height="1" width="1" x="15" y="5"/><rect height="1" width="1" x="14" y="6"/><rect height="1" width="1" x="15" y="8"/><rect height="1" width="1" x="14" y="9"/><path d="M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z"/><rect height="1" width="1" x="14" y="3"/><polygon points="12 6.868 12 6 11.62 6 12 6.868"/><rect height="1" width="1" x="15" y="2"/><rect height="1" width="1" x="12" y="5"/><rect height="1" width="1" x="13" y="4"/><polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"/><rect height="1" width="1" x="9" y="14"/><rect height="1" width="1" x="8" y="15"/><path d="M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z"/><rect height="1" width="1" x="5" y="15"/><path d="M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z"/><rect height="1" width="1" x="11" y="15"/><path d="M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z"/><rect height="1" width="1" x="14" y="15"/><rect height="1" width="1" x="15" y="11"/></g><polyline class="ql-stroke" points="5.5 13 9 5 12.5 13"/><line class="ql-stroke" x1="11.63" x2="6.38" y1="11" y2="11"/></svg>', La = '<svg viewbox="0 0 18 18"><rect class="ql-fill ql-stroke" height="3" width="3" x="4" y="5"/><rect class="ql-fill ql-stroke" height="3" width="3" x="11" y="5"/><path class="ql-even ql-fill ql-stroke" d="M7,8c0,4.031-3,5-3,5"/><path class="ql-even ql-fill ql-stroke" d="M14,8c0,4.031-3,5-3,5"/></svg>', qa = '<svg viewbox="0 0 18 18"><path class="ql-stroke" d="M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z"/><path class="ql-stroke" d="M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z"/></svg>', Sa = '<svg class="" viewbox="0 0 18 18"><line class="ql-stroke" x1="5" x2="13" y1="3" y2="3"/><line class="ql-stroke" x1="6" x2="9.35" y1="12" y2="3"/><line class="ql-stroke" x1="11" x2="15" y1="11" y2="15"/><line class="ql-stroke" x1="15" x2="11" y1="11" y2="15"/><rect class="ql-fill" height="1" rx="0.5" ry="0.5" width="7" x="2" y="14"/></svg>', Oi = '<svg viewbox="0 0 18 18"><polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"/><polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"/><line class="ql-stroke" x1="10" x2="8" y1="5" y2="13"/></svg>', ka = '<svg viewbox="0 0 18 18"><line class="ql-color-label ql-stroke ql-transparent" x1="3" x2="15" y1="15" y2="15"/><polyline class="ql-stroke" points="5.5 11 9 3 12.5 11"/><line class="ql-stroke" x1="11.63" x2="6.38" y1="9" y2="9"/></svg>', Ca = '<svg viewbox="0 0 18 18"><polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"/><line class="ql-stroke ql-fill" x1="15" x2="11" y1="4" y2="4"/><path class="ql-fill" d="M11,3a3,3,0,0,0,0,6h1V3H11Z"/><rect class="ql-fill" height="11" width="1" x="11" y="4"/><rect class="ql-fill" height="11" width="1" x="13" y="4"/></svg>', _a = '<svg viewbox="0 0 18 18"><polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"/><line class="ql-stroke ql-fill" x1="9" x2="5" y1="4" y2="4"/><path class="ql-fill" d="M5,3A3,3,0,0,0,5,9H6V3H5Z"/><rect class="ql-fill" height="11" width="1" x="5" y="4"/><rect class="ql-fill" height="11" width="1" x="7" y="4"/></svg>', Oa = '<svg viewbox="0 0 18 18"><path class="ql-fill" d="M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z"/><rect class="ql-fill" height="1.6" rx="0.8" ry="0.8" width="5" x="5.15" y="6.2"/><path class="ql-fill" d="M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z"/></svg>', Ia = '<svg viewBox="0 0 18 18"><path class="ql-fill" d="M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z"/></svg>', Ra = '<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>', Ba = '<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.65186,12.30664a2.6742,2.6742,0,0,1-2.915,2.68457,3.96592,3.96592,0,0,1-2.25537-.6709.56007.56007,0,0,1-.13232-.83594L11.64648,13c.209-.34082.48389-.36328.82471-.1543a2.32654,2.32654,0,0,0,1.12256.33008c.71484,0,1.12207-.35156,1.12207-.78125,0-.61523-.61621-.86816-1.46338-.86816H13.2085a.65159.65159,0,0,1-.68213-.41895l-.05518-.10937a.67114.67114,0,0,1,.14307-.78125l.71533-.86914a8.55289,8.55289,0,0,1,.68213-.7373V8.58887a3.93913,3.93913,0,0,1-.748.05469H11.9873a.54085.54085,0,0,1-.605-.60547V7.59863a.54085.54085,0,0,1,.605-.60547h3.75146a.53773.53773,0,0,1,.60547.59375v.17676a1.03723,1.03723,0,0,1-.27539.748L14.74854,10.0293A2.31132,2.31132,0,0,1,16.65186,12.30664ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>', Ma = '<svg viewBox="0 0 18 18"><path class="ql-fill" d="M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm7.05371,7.96582v.38477c0,.39648-.165.60547-.46191.60547h-.47314v1.29785a.54085.54085,0,0,1-.605.60547h-.69336a.54085.54085,0,0,1-.605-.60547V12.95605H11.333a.5412.5412,0,0,1-.60547-.60547v-.15332a1.199,1.199,0,0,1,.22021-.748l2.56348-4.05957a.7819.7819,0,0,1,.72607-.39648h1.27637a.54085.54085,0,0,1,.605.60547v3.7627h.33008A.54055.54055,0,0,1,17.05371,11.96582ZM14.28125,8.7207h-.022a4.18969,4.18969,0,0,1-.38525.81348l-1.188,1.80469v.02246h1.5293V9.60059A7.04058,7.04058,0,0,1,14.28125,8.7207Z"/></svg>', Da = '<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.74023,12.18555a2.75131,2.75131,0,0,1-2.91553,2.80566,3.908,3.908,0,0,1-2.25537-.68164.54809.54809,0,0,1-.13184-.8252L11.73438,13c.209-.34082.48389-.36328.8252-.1543a2.23757,2.23757,0,0,0,1.1001.33008,1.01827,1.01827,0,0,0,1.1001-.96777c0-.61621-.53906-.97949-1.25439-.97949a2.15554,2.15554,0,0,0-.64893.09961,1.15209,1.15209,0,0,1-.814.01074l-.12109-.04395a.64116.64116,0,0,1-.45117-.71484l.231-3.00391a.56666.56666,0,0,1,.62744-.583H15.541a.54085.54085,0,0,1,.605.60547v.43945a.54085.54085,0,0,1-.605.60547H13.41748l-.04395.72559a1.29306,1.29306,0,0,1-.04395.30859h.022a2.39776,2.39776,0,0,1,.57227-.07715A2.53266,2.53266,0,0,1,16.74023,12.18555ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>', Ua = '<svg viewBox="0 0 18 18"><path class="ql-fill" d="M14.51758,9.64453a1.85627,1.85627,0,0,0-1.24316.38477H13.252a1.73532,1.73532,0,0,1,1.72754-1.4082,2.66491,2.66491,0,0,1,.5498.06641c.35254.05469.57227.01074.70508-.40723l.16406-.5166a.53393.53393,0,0,0-.373-.75977,4.83723,4.83723,0,0,0-1.17773-.14258c-2.43164,0-3.7627,2.17773-3.7627,4.43359,0,2.47559,1.60645,3.69629,3.19043,3.69629A2.70585,2.70585,0,0,0,16.96,12.19727,2.43861,2.43861,0,0,0,14.51758,9.64453Zm-.23047,3.58691c-.67187,0-1.22168-.81445-1.22168-1.45215,0-.47363.30762-.583.72559-.583.96875,0,1.27734.59375,1.27734,1.12207A.82182.82182,0,0,1,14.28711,13.23145ZM10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Z"/></svg>', Pa = '<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="13" y1="4" y2="4"/><line class="ql-stroke" x1="5" x2="11" y1="14" y2="14"/><line class="ql-stroke" x1="8" x2="10" y1="14" y2="4"/></svg>', ja = '<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="10" width="12" x="3" y="4"/><circle class="ql-fill" cx="6" cy="7" r="1"/><polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"/></svg>', $a = '<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"/></svg>', Ha = '<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-stroke" points="5 7 5 11 3 9 5 7"/></svg>', Fa = '<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="11" y1="7" y2="11"/><path class="ql-even ql-stroke" d="M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z"/><path class="ql-even ql-stroke" d="M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z"/></svg>', za = '<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="6" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="6" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="6" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="3" y1="4" y2="4"/><line class="ql-stroke" x1="3" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="3" x2="3" y1="14" y2="14"/></svg>', Va = '<svg class="" viewbox="0 0 18 18"><line class="ql-stroke" x1="9" x2="15" y1="4" y2="4"/><polyline class="ql-stroke" points="3 4 4 5 6 3"/><line class="ql-stroke" x1="9" x2="15" y1="14" y2="14"/><polyline class="ql-stroke" points="3 14 4 15 6 13"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-stroke" points="3 9 4 10 6 8"/></svg>', Ka = '<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="7" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="7" x2="15" y1="14" y2="14"/><line class="ql-stroke ql-thin" x1="2.5" x2="4.5" y1="5.5" y2="5.5"/><path class="ql-fill" d="M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z"/><path class="ql-stroke ql-thin" d="M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156"/><path class="ql-stroke ql-thin" d="M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109"/></svg>', Ga = '<svg viewbox="0 0 18 18"><path class="ql-fill" d="M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z"/><path class="ql-fill" d="M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z"/></svg>', Za = '<svg viewbox="0 0 18 18"><path class="ql-fill" d="M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z"/><path class="ql-fill" d="M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z"/></svg>', Wa = '<svg viewbox="0 0 18 18"><line class="ql-stroke ql-thin" x1="15.5" x2="2.5" y1="8.5" y2="9.5"/><path class="ql-fill" d="M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z"/><path class="ql-fill" d="M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z"/></svg>', Xa = '<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="12" width="12" x="3" y="3"/><rect class="ql-fill" height="2" width="3" x="5" y="5"/><rect class="ql-fill" height="2" width="4" x="9" y="5"/><g class="ql-fill ql-transparent"><rect height="2" width="3" x="5" y="8"/><rect height="2" width="4" x="9" y="8"/><rect height="2" width="3" x="5" y="11"/><rect height="2" width="4" x="9" y="11"/></g></svg>', Ya = '<svg viewbox="0 0 18 18"><path class="ql-stroke" d="M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3"/><rect class="ql-fill" height="1" rx="0.5" ry="0.5" width="12" x="3" y="15"/></svg>', Qa = '<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="12" width="12" x="3" y="3"/><rect class="ql-fill" height="12" width="1" x="5" y="3"/><rect class="ql-fill" height="12" width="1" x="12" y="3"/><rect class="ql-fill" height="2" width="8" x="5" y="8"/><rect class="ql-fill" height="1" width="3" x="3" y="5"/><rect class="ql-fill" height="1" width="3" x="3" y="7"/><rect class="ql-fill" height="1" width="3" x="3" y="10"/><rect class="ql-fill" height="1" width="3" x="3" y="12"/><rect class="ql-fill" height="1" width="3" x="12" y="5"/><rect class="ql-fill" height="1" width="3" x="12" y="7"/><rect class="ql-fill" height="1" width="3" x="12" y="10"/><rect class="ql-fill" height="1" width="3" x="12" y="12"/></svg>', us = {
|
|
6142
|
+
const Aa = '<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="3" x2="13" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="9" y1="4" y2="4"/></svg>', xa = '<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="14" x2="4" y1="14" y2="14"/><line class="ql-stroke" x1="12" x2="6" y1="4" y2="4"/></svg>', wa = '<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="15" x2="5" y1="14" y2="14"/><line class="ql-stroke" x1="15" x2="9" y1="4" y2="4"/></svg>', Ta = '<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="15" x2="3" y1="14" y2="14"/><line class="ql-stroke" x1="15" x2="3" y1="4" y2="4"/></svg>', La = '<svg viewbox="0 0 18 18"><g class="ql-fill ql-color-label"><polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"/><rect height="1" width="1" x="4" y="4"/><polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"/><rect height="1" width="1" x="2" y="6"/><rect height="1" width="1" x="3" y="5"/><rect height="1" width="1" x="4" y="7"/><polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"/><rect height="1" width="1" x="2" y="12"/><rect height="1" width="1" x="2" y="9"/><rect height="1" width="1" x="2" y="15"/><polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"/><rect height="1" width="1" x="3" y="8"/><path d="M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z"/><path d="M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z"/><path d="M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z"/><rect height="1" width="1" x="12" y="2"/><rect height="1" width="1" x="11" y="3"/><path d="M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z"/><rect height="1" width="1" x="2" y="3"/><rect height="1" width="1" x="6" y="2"/><rect height="1" width="1" x="3" y="2"/><rect height="1" width="1" x="5" y="3"/><rect height="1" width="1" x="9" y="2"/><rect height="1" width="1" x="15" y="14"/><polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"/><rect height="1" width="1" x="13" y="7"/><rect height="1" width="1" x="15" y="5"/><rect height="1" width="1" x="14" y="6"/><rect height="1" width="1" x="15" y="8"/><rect height="1" width="1" x="14" y="9"/><path d="M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z"/><rect height="1" width="1" x="14" y="3"/><polygon points="12 6.868 12 6 11.62 6 12 6.868"/><rect height="1" width="1" x="15" y="2"/><rect height="1" width="1" x="12" y="5"/><rect height="1" width="1" x="13" y="4"/><polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"/><rect height="1" width="1" x="9" y="14"/><rect height="1" width="1" x="8" y="15"/><path d="M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z"/><rect height="1" width="1" x="5" y="15"/><path d="M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z"/><rect height="1" width="1" x="11" y="15"/><path d="M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z"/><rect height="1" width="1" x="14" y="15"/><rect height="1" width="1" x="15" y="11"/></g><polyline class="ql-stroke" points="5.5 13 9 5 12.5 13"/><line class="ql-stroke" x1="11.63" x2="6.38" y1="11" y2="11"/></svg>', qa = '<svg viewbox="0 0 18 18"><rect class="ql-fill ql-stroke" height="3" width="3" x="4" y="5"/><rect class="ql-fill ql-stroke" height="3" width="3" x="11" y="5"/><path class="ql-even ql-fill ql-stroke" d="M7,8c0,4.031-3,5-3,5"/><path class="ql-even ql-fill ql-stroke" d="M14,8c0,4.031-3,5-3,5"/></svg>', Sa = '<svg viewbox="0 0 18 18"><path class="ql-stroke" d="M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z"/><path class="ql-stroke" d="M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z"/></svg>', ka = '<svg class="" viewbox="0 0 18 18"><line class="ql-stroke" x1="5" x2="13" y1="3" y2="3"/><line class="ql-stroke" x1="6" x2="9.35" y1="12" y2="3"/><line class="ql-stroke" x1="11" x2="15" y1="11" y2="15"/><line class="ql-stroke" x1="15" x2="11" y1="11" y2="15"/><rect class="ql-fill" height="1" rx="0.5" ry="0.5" width="7" x="2" y="14"/></svg>', Oi = '<svg viewbox="0 0 18 18"><polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"/><polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"/><line class="ql-stroke" x1="10" x2="8" y1="5" y2="13"/></svg>', Ca = '<svg viewbox="0 0 18 18"><line class="ql-color-label ql-stroke ql-transparent" x1="3" x2="15" y1="15" y2="15"/><polyline class="ql-stroke" points="5.5 11 9 3 12.5 11"/><line class="ql-stroke" x1="11.63" x2="6.38" y1="9" y2="9"/></svg>', _a = '<svg viewbox="0 0 18 18"><polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"/><line class="ql-stroke ql-fill" x1="15" x2="11" y1="4" y2="4"/><path class="ql-fill" d="M11,3a3,3,0,0,0,0,6h1V3H11Z"/><rect class="ql-fill" height="11" width="1" x="11" y="4"/><rect class="ql-fill" height="11" width="1" x="13" y="4"/></svg>', Oa = '<svg viewbox="0 0 18 18"><polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"/><line class="ql-stroke ql-fill" x1="9" x2="5" y1="4" y2="4"/><path class="ql-fill" d="M5,3A3,3,0,0,0,5,9H6V3H5Z"/><rect class="ql-fill" height="11" width="1" x="5" y="4"/><rect class="ql-fill" height="11" width="1" x="7" y="4"/></svg>', Ia = '<svg viewbox="0 0 18 18"><path class="ql-fill" d="M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z"/><rect class="ql-fill" height="1.6" rx="0.8" ry="0.8" width="5" x="5.15" y="6.2"/><path class="ql-fill" d="M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z"/></svg>', Ra = '<svg viewBox="0 0 18 18"><path class="ql-fill" d="M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z"/></svg>', Ba = '<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>', Ma = '<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.65186,12.30664a2.6742,2.6742,0,0,1-2.915,2.68457,3.96592,3.96592,0,0,1-2.25537-.6709.56007.56007,0,0,1-.13232-.83594L11.64648,13c.209-.34082.48389-.36328.82471-.1543a2.32654,2.32654,0,0,0,1.12256.33008c.71484,0,1.12207-.35156,1.12207-.78125,0-.61523-.61621-.86816-1.46338-.86816H13.2085a.65159.65159,0,0,1-.68213-.41895l-.05518-.10937a.67114.67114,0,0,1,.14307-.78125l.71533-.86914a8.55289,8.55289,0,0,1,.68213-.7373V8.58887a3.93913,3.93913,0,0,1-.748.05469H11.9873a.54085.54085,0,0,1-.605-.60547V7.59863a.54085.54085,0,0,1,.605-.60547h3.75146a.53773.53773,0,0,1,.60547.59375v.17676a1.03723,1.03723,0,0,1-.27539.748L14.74854,10.0293A2.31132,2.31132,0,0,1,16.65186,12.30664ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>', Da = '<svg viewBox="0 0 18 18"><path class="ql-fill" d="M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm7.05371,7.96582v.38477c0,.39648-.165.60547-.46191.60547h-.47314v1.29785a.54085.54085,0,0,1-.605.60547h-.69336a.54085.54085,0,0,1-.605-.60547V12.95605H11.333a.5412.5412,0,0,1-.60547-.60547v-.15332a1.199,1.199,0,0,1,.22021-.748l2.56348-4.05957a.7819.7819,0,0,1,.72607-.39648h1.27637a.54085.54085,0,0,1,.605.60547v3.7627h.33008A.54055.54055,0,0,1,17.05371,11.96582ZM14.28125,8.7207h-.022a4.18969,4.18969,0,0,1-.38525.81348l-1.188,1.80469v.02246h1.5293V9.60059A7.04058,7.04058,0,0,1,14.28125,8.7207Z"/></svg>', Ua = '<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.74023,12.18555a2.75131,2.75131,0,0,1-2.91553,2.80566,3.908,3.908,0,0,1-2.25537-.68164.54809.54809,0,0,1-.13184-.8252L11.73438,13c.209-.34082.48389-.36328.8252-.1543a2.23757,2.23757,0,0,0,1.1001.33008,1.01827,1.01827,0,0,0,1.1001-.96777c0-.61621-.53906-.97949-1.25439-.97949a2.15554,2.15554,0,0,0-.64893.09961,1.15209,1.15209,0,0,1-.814.01074l-.12109-.04395a.64116.64116,0,0,1-.45117-.71484l.231-3.00391a.56666.56666,0,0,1,.62744-.583H15.541a.54085.54085,0,0,1,.605.60547v.43945a.54085.54085,0,0,1-.605.60547H13.41748l-.04395.72559a1.29306,1.29306,0,0,1-.04395.30859h.022a2.39776,2.39776,0,0,1,.57227-.07715A2.53266,2.53266,0,0,1,16.74023,12.18555ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>', Pa = '<svg viewBox="0 0 18 18"><path class="ql-fill" d="M14.51758,9.64453a1.85627,1.85627,0,0,0-1.24316.38477H13.252a1.73532,1.73532,0,0,1,1.72754-1.4082,2.66491,2.66491,0,0,1,.5498.06641c.35254.05469.57227.01074.70508-.40723l.16406-.5166a.53393.53393,0,0,0-.373-.75977,4.83723,4.83723,0,0,0-1.17773-.14258c-2.43164,0-3.7627,2.17773-3.7627,4.43359,0,2.47559,1.60645,3.69629,3.19043,3.69629A2.70585,2.70585,0,0,0,16.96,12.19727,2.43861,2.43861,0,0,0,14.51758,9.64453Zm-.23047,3.58691c-.67187,0-1.22168-.81445-1.22168-1.45215,0-.47363.30762-.583.72559-.583.96875,0,1.27734.59375,1.27734,1.12207A.82182.82182,0,0,1,14.28711,13.23145ZM10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Z"/></svg>', ja = '<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="13" y1="4" y2="4"/><line class="ql-stroke" x1="5" x2="11" y1="14" y2="14"/><line class="ql-stroke" x1="8" x2="10" y1="14" y2="4"/></svg>', $a = '<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="10" width="12" x="3" y="4"/><circle class="ql-fill" cx="6" cy="7" r="1"/><polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"/></svg>', Ha = '<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"/></svg>', Fa = '<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-stroke" points="5 7 5 11 3 9 5 7"/></svg>', za = '<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="11" y1="7" y2="11"/><path class="ql-even ql-stroke" d="M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z"/><path class="ql-even ql-stroke" d="M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z"/></svg>', Va = '<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="6" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="6" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="6" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="3" y1="4" y2="4"/><line class="ql-stroke" x1="3" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="3" x2="3" y1="14" y2="14"/></svg>', Ka = '<svg class="" viewbox="0 0 18 18"><line class="ql-stroke" x1="9" x2="15" y1="4" y2="4"/><polyline class="ql-stroke" points="3 4 4 5 6 3"/><line class="ql-stroke" x1="9" x2="15" y1="14" y2="14"/><polyline class="ql-stroke" points="3 14 4 15 6 13"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-stroke" points="3 9 4 10 6 8"/></svg>', Ga = '<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="7" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="7" x2="15" y1="14" y2="14"/><line class="ql-stroke ql-thin" x1="2.5" x2="4.5" y1="5.5" y2="5.5"/><path class="ql-fill" d="M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z"/><path class="ql-stroke ql-thin" d="M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156"/><path class="ql-stroke ql-thin" d="M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109"/></svg>', Za = '<svg viewbox="0 0 18 18"><path class="ql-fill" d="M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z"/><path class="ql-fill" d="M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z"/></svg>', Wa = '<svg viewbox="0 0 18 18"><path class="ql-fill" d="M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z"/><path class="ql-fill" d="M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z"/></svg>', Xa = '<svg viewbox="0 0 18 18"><line class="ql-stroke ql-thin" x1="15.5" x2="2.5" y1="8.5" y2="9.5"/><path class="ql-fill" d="M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z"/><path class="ql-fill" d="M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z"/></svg>', Ya = '<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="12" width="12" x="3" y="3"/><rect class="ql-fill" height="2" width="3" x="5" y="5"/><rect class="ql-fill" height="2" width="4" x="9" y="5"/><g class="ql-fill ql-transparent"><rect height="2" width="3" x="5" y="8"/><rect height="2" width="4" x="9" y="8"/><rect height="2" width="3" x="5" y="11"/><rect height="2" width="4" x="9" y="11"/></g></svg>', Qa = '<svg viewbox="0 0 18 18"><path class="ql-stroke" d="M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3"/><rect class="ql-fill" height="1" rx="0.5" ry="0.5" width="12" x="3" y="15"/></svg>', Ja = '<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="12" width="12" x="3" y="3"/><rect class="ql-fill" height="12" width="1" x="5" y="3"/><rect class="ql-fill" height="12" width="1" x="12" y="3"/><rect class="ql-fill" height="2" width="8" x="5" y="8"/><rect class="ql-fill" height="1" width="3" x="3" y="5"/><rect class="ql-fill" height="1" width="3" x="3" y="7"/><rect class="ql-fill" height="1" width="3" x="3" y="10"/><rect class="ql-fill" height="1" width="3" x="3" y="12"/><rect class="ql-fill" height="1" width="3" x="12" y="5"/><rect class="ql-fill" height="1" width="3" x="12" y="7"/><rect class="ql-fill" height="1" width="3" x="12" y="10"/><rect class="ql-fill" height="1" width="3" x="12" y="12"/></svg>', us = {
|
|
6146
6143
|
align: {
|
|
6147
|
-
"":
|
|
6148
|
-
center:
|
|
6149
|
-
right:
|
|
6150
|
-
justify:
|
|
6144
|
+
"": Aa,
|
|
6145
|
+
center: xa,
|
|
6146
|
+
right: wa,
|
|
6147
|
+
justify: Ta
|
|
6151
6148
|
},
|
|
6152
|
-
background:
|
|
6153
|
-
blockquote:
|
|
6154
|
-
bold:
|
|
6155
|
-
clean:
|
|
6149
|
+
background: La,
|
|
6150
|
+
blockquote: qa,
|
|
6151
|
+
bold: Sa,
|
|
6152
|
+
clean: ka,
|
|
6156
6153
|
code: Oi,
|
|
6157
6154
|
"code-block": Oi,
|
|
6158
|
-
color:
|
|
6155
|
+
color: Ca,
|
|
6159
6156
|
direction: {
|
|
6160
|
-
"":
|
|
6161
|
-
rtl:
|
|
6157
|
+
"": _a,
|
|
6158
|
+
rtl: Oa
|
|
6162
6159
|
},
|
|
6163
|
-
formula:
|
|
6160
|
+
formula: Ia,
|
|
6164
6161
|
header: {
|
|
6165
|
-
1:
|
|
6166
|
-
2:
|
|
6167
|
-
3:
|
|
6168
|
-
4:
|
|
6169
|
-
5:
|
|
6170
|
-
6:
|
|
6162
|
+
1: Ra,
|
|
6163
|
+
2: Ba,
|
|
6164
|
+
3: Ma,
|
|
6165
|
+
4: Da,
|
|
6166
|
+
5: Ua,
|
|
6167
|
+
6: Pa
|
|
6171
6168
|
},
|
|
6172
|
-
italic:
|
|
6173
|
-
image:
|
|
6169
|
+
italic: ja,
|
|
6170
|
+
image: $a,
|
|
6174
6171
|
indent: {
|
|
6175
|
-
"+1":
|
|
6176
|
-
"-1":
|
|
6172
|
+
"+1": Ha,
|
|
6173
|
+
"-1": Fa
|
|
6177
6174
|
},
|
|
6178
|
-
link:
|
|
6175
|
+
link: za,
|
|
6179
6176
|
list: {
|
|
6180
|
-
bullet:
|
|
6181
|
-
check:
|
|
6182
|
-
ordered:
|
|
6177
|
+
bullet: Va,
|
|
6178
|
+
check: Ka,
|
|
6179
|
+
ordered: Ga
|
|
6183
6180
|
},
|
|
6184
6181
|
script: {
|
|
6185
|
-
sub:
|
|
6186
|
-
super:
|
|
6182
|
+
sub: Za,
|
|
6183
|
+
super: Wa
|
|
6187
6184
|
},
|
|
6188
|
-
strike:
|
|
6189
|
-
table:
|
|
6190
|
-
underline:
|
|
6191
|
-
video:
|
|
6192
|
-
},
|
|
6185
|
+
strike: Xa,
|
|
6186
|
+
table: Ya,
|
|
6187
|
+
underline: Qa,
|
|
6188
|
+
video: Ja
|
|
6189
|
+
}, tc = '<svg viewbox="0 0 18 18"><polygon class="ql-stroke" points="7 11 9 13 11 11 7 11"/><polygon class="ql-stroke" points="7 7 9 5 11 7 7 7"/></svg>';
|
|
6193
6190
|
let Ii = 0;
|
|
6194
6191
|
function Ri(r, t) {
|
|
6195
6192
|
r.setAttribute(t, `${r.getAttribute(t) !== "true"}`);
|
|
@@ -6231,7 +6228,7 @@ class an {
|
|
|
6231
6228
|
}
|
|
6232
6229
|
buildLabel() {
|
|
6233
6230
|
const t = document.createElement("span");
|
|
6234
|
-
return t.classList.add("ql-picker-label"), t.innerHTML =
|
|
6231
|
+
return t.classList.add("ql-picker-label"), t.innerHTML = tc, t.tabIndex = "0", t.setAttribute("role", "button"), t.setAttribute("aria-expanded", "false"), this.container.appendChild(t), t;
|
|
6235
6232
|
}
|
|
6236
6233
|
buildOptions() {
|
|
6237
6234
|
const t = document.createElement("span");
|
|
@@ -6301,7 +6298,7 @@ class pl extends an {
|
|
|
6301
6298
|
}
|
|
6302
6299
|
}
|
|
6303
6300
|
}
|
|
6304
|
-
const
|
|
6301
|
+
const ec = (r) => {
|
|
6305
6302
|
const {
|
|
6306
6303
|
overflowY: t
|
|
6307
6304
|
} = getComputedStyle(r, null);
|
|
@@ -6309,7 +6306,7 @@ const tc = (r) => {
|
|
|
6309
6306
|
};
|
|
6310
6307
|
class ml {
|
|
6311
6308
|
constructor(t, e) {
|
|
6312
|
-
this.quill = t, this.boundsContainer = e || document.body, this.root = t.addContainer("ql-tooltip"), this.root.innerHTML = this.constructor.TEMPLATE,
|
|
6309
|
+
this.quill = t, this.boundsContainer = e || document.body, this.root = t.addContainer("ql-tooltip"), this.root.innerHTML = this.constructor.TEMPLATE, ec(this.quill.root) && this.quill.root.addEventListener("scroll", () => {
|
|
6313
6310
|
this.root.style.marginTop = `${-1 * this.quill.root.scrollTop}px`;
|
|
6314
6311
|
}), this.hide();
|
|
6315
6312
|
}
|
|
@@ -6331,7 +6328,7 @@ class ml {
|
|
|
6331
6328
|
this.root.classList.remove("ql-editing"), this.root.classList.remove("ql-hidden");
|
|
6332
6329
|
}
|
|
6333
6330
|
}
|
|
6334
|
-
const
|
|
6331
|
+
const sc = [!1, "center", "right", "justify"], nc = ["#000000", "#e60000", "#ff9900", "#ffff00", "#008a00", "#0066cc", "#9933ff", "#ffffff", "#facccc", "#ffebcc", "#ffffcc", "#cce8cc", "#cce0f5", "#ebd6ff", "#bbbbbb", "#f06666", "#ffc266", "#ffff66", "#66b966", "#66a3e0", "#c285ff", "#888888", "#a10000", "#b26b00", "#b2b200", "#006100", "#0047b2", "#6b24b2", "#444444", "#5c0000", "#663d00", "#666600", "#003700", "#002966", "#3d1466"], rc = [!1, "serif", "monospace"], ic = ["1", "2", "3", !1], lc = ["small", !1, "large", "huge"];
|
|
6335
6332
|
class gs extends _e {
|
|
6336
6333
|
constructor(t, e) {
|
|
6337
6334
|
super(t, e);
|
|
@@ -6369,13 +6366,13 @@ class gs extends _e {
|
|
|
6369
6366
|
}
|
|
6370
6367
|
buildPickers(t, e) {
|
|
6371
6368
|
this.pickers = Array.from(t).map((n) => {
|
|
6372
|
-
if (n.classList.contains("ql-align") && (n.querySelector("option") == null && es(n,
|
|
6369
|
+
if (n.classList.contains("ql-align") && (n.querySelector("option") == null && es(n, sc), typeof e.align == "object"))
|
|
6373
6370
|
return new pl(n, e.align);
|
|
6374
6371
|
if (n.classList.contains("ql-background") || n.classList.contains("ql-color")) {
|
|
6375
6372
|
const i = n.classList.contains("ql-background") ? "background" : "color";
|
|
6376
|
-
return n.querySelector("option") == null && es(n,
|
|
6373
|
+
return n.querySelector("option") == null && es(n, nc, i === "background" ? "#ffffff" : "#000000"), new gl(n, e[i]);
|
|
6377
6374
|
}
|
|
6378
|
-
return n.querySelector("option") == null && (n.classList.contains("ql-font") ? es(n,
|
|
6375
|
+
return n.querySelector("option") == null && (n.classList.contains("ql-font") ? es(n, rc) : n.classList.contains("ql-header") ? es(n, ic) : n.classList.contains("ql-size") && es(n, lc)), new an(n);
|
|
6379
6376
|
});
|
|
6380
6377
|
const s = () => {
|
|
6381
6378
|
this.pickers.forEach((n) => {
|
|
@@ -6443,7 +6440,7 @@ class bl extends ml {
|
|
|
6443
6440
|
break;
|
|
6444
6441
|
}
|
|
6445
6442
|
case "video":
|
|
6446
|
-
t =
|
|
6443
|
+
t = oc(t);
|
|
6447
6444
|
case "formula": {
|
|
6448
6445
|
if (!t) break;
|
|
6449
6446
|
const e = this.quill.getSelection(!0);
|
|
@@ -6463,7 +6460,7 @@ class bl extends ml {
|
|
|
6463
6460
|
this.textbox.value = "", this.hide();
|
|
6464
6461
|
}
|
|
6465
6462
|
}
|
|
6466
|
-
function
|
|
6463
|
+
function oc(r) {
|
|
6467
6464
|
let t = r.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/) || r.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);
|
|
6468
6465
|
return t ? `${t[1] || "https"}://www.youtube.com/embed/${t[2]}?showinfo=0` : (t = r.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/)) ? `${t[1] || "https"}://player.vimeo.com/video/${t[2]}/` : r;
|
|
6469
6466
|
}
|
|
@@ -6474,7 +6471,7 @@ function es(r, t) {
|
|
|
6474
6471
|
s === e ? n.setAttribute("selected", "selected") : n.setAttribute("value", String(s)), r.appendChild(n);
|
|
6475
6472
|
});
|
|
6476
6473
|
}
|
|
6477
|
-
const
|
|
6474
|
+
const ac = [["bold", "italic", "link"], [{
|
|
6478
6475
|
header: 1
|
|
6479
6476
|
}, {
|
|
6480
6477
|
header: 2
|
|
@@ -6521,7 +6518,7 @@ class yl extends bl {
|
|
|
6521
6518
|
T(yl, "TEMPLATE", ['<span class="ql-tooltip-arrow"></span>', '<div class="ql-tooltip-editor">', '<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">', '<a class="ql-close"></a>', "</div>"].join(""));
|
|
6522
6519
|
class vl extends gs {
|
|
6523
6520
|
constructor(t, e) {
|
|
6524
|
-
e.modules.toolbar != null && e.modules.toolbar.container == null && (e.modules.toolbar.container =
|
|
6521
|
+
e.modules.toolbar != null && e.modules.toolbar.container == null && (e.modules.toolbar.container = ac), super(t, e), this.quill.container.classList.add("ql-bubble");
|
|
6525
6522
|
}
|
|
6526
6523
|
extendToolbar(t) {
|
|
6527
6524
|
this.tooltip = new yl(this.quill, this.options.bounds), t.container != null && (this.tooltip.root.appendChild(t.container), this.buildButtons(t.container.querySelectorAll("button"), us), this.buildPickers(t.container.querySelectorAll("select"), us));
|
|
@@ -6538,7 +6535,7 @@ vl.DEFAULTS = Gt({}, gs.DEFAULTS, {
|
|
|
6538
6535
|
}
|
|
6539
6536
|
}
|
|
6540
6537
|
});
|
|
6541
|
-
const
|
|
6538
|
+
const cc = [[{
|
|
6542
6539
|
header: ["1", "2", "3", !1]
|
|
6543
6540
|
}], ["bold", "italic", "underline", "link"], [{
|
|
6544
6541
|
list: "ordered"
|
|
@@ -6584,7 +6581,7 @@ class El extends bl {
|
|
|
6584
6581
|
T(El, "TEMPLATE", ['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>', '<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">', '<a class="ql-action"></a>', '<a class="ql-remove"></a>'].join(""));
|
|
6585
6582
|
class Qr extends gs {
|
|
6586
6583
|
constructor(t, e) {
|
|
6587
|
-
e.modules.toolbar != null && e.modules.toolbar.container == null && (e.modules.toolbar.container =
|
|
6584
|
+
e.modules.toolbar != null && e.modules.toolbar.container == null && (e.modules.toolbar.container = cc), super(t, e), this.quill.container.classList.add("ql-snow");
|
|
6588
6585
|
}
|
|
6589
6586
|
extendToolbar(t) {
|
|
6590
6587
|
t.container != null && (t.container.classList.add("ql-snow"), this.buildButtons(t.container.querySelectorAll("button"), us), this.buildPickers(t.container.querySelectorAll("select"), us), this.tooltip = new El(this.quill, this.options.bounds), t.container.querySelector(".ql-link") && this.quill.keyboard.addBinding({
|
|
@@ -6619,8 +6616,8 @@ Qr.DEFAULTS = Gt({}, gs.DEFAULTS, {
|
|
|
6619
6616
|
A.register({
|
|
6620
6617
|
"attributors/attribute/direction": tl,
|
|
6621
6618
|
"attributors/class/align": Yi,
|
|
6622
|
-
"attributors/class/background":
|
|
6623
|
-
"attributors/class/color":
|
|
6619
|
+
"attributors/class/background": qo,
|
|
6620
|
+
"attributors/class/color": Lo,
|
|
6624
6621
|
"attributors/class/direction": el,
|
|
6625
6622
|
"attributors/class/font": rl,
|
|
6626
6623
|
"attributors/class/size": ll,
|
|
@@ -6634,7 +6631,7 @@ A.register({
|
|
|
6634
6631
|
A.register({
|
|
6635
6632
|
"formats/align": Yi,
|
|
6636
6633
|
"formats/direction": el,
|
|
6637
|
-
"formats/indent":
|
|
6634
|
+
"formats/indent": ba,
|
|
6638
6635
|
"formats/background": Vr,
|
|
6639
6636
|
"formats/color": zr,
|
|
6640
6637
|
"formats/font": rl,
|
|
@@ -6654,7 +6651,7 @@ A.register({
|
|
|
6654
6651
|
"formats/image": Rr,
|
|
6655
6652
|
"formats/video": Ws,
|
|
6656
6653
|
"modules/syntax": dl,
|
|
6657
|
-
"modules/table":
|
|
6654
|
+
"modules/table": va,
|
|
6658
6655
|
"modules/toolbar": Yr,
|
|
6659
6656
|
"themes/bubble": vl,
|
|
6660
6657
|
"themes/snow": Qr,
|
|
@@ -6667,7 +6664,7 @@ A.register({
|
|
|
6667
6664
|
class Br extends ln {
|
|
6668
6665
|
}
|
|
6669
6666
|
T(Br, "blotName", "divider"), T(Br, "tagName", "hr");
|
|
6670
|
-
class
|
|
6667
|
+
class uc extends Qr {
|
|
6671
6668
|
// overwrite buildButtons method to prevent quill theme from building the buttons
|
|
6672
6669
|
buildButtons(t, e) {
|
|
6673
6670
|
}
|
|
@@ -6675,21 +6672,21 @@ class cc extends Qr {
|
|
|
6675
6672
|
A.register(
|
|
6676
6673
|
{
|
|
6677
6674
|
"formats/divider": Br,
|
|
6678
|
-
"themes/snow":
|
|
6675
|
+
"themes/snow": uc
|
|
6679
6676
|
},
|
|
6680
6677
|
!0
|
|
6681
6678
|
);
|
|
6682
|
-
function
|
|
6679
|
+
function hc() {
|
|
6683
6680
|
const r = this.quill.getSelection(!0), t = this.quill.insertEmbed(r.index + 1, "divider", !0, A.sources.USER);
|
|
6684
6681
|
this.quill.setSelection(t.length() + 2, A.sources.SILENT);
|
|
6685
6682
|
}
|
|
6686
|
-
const
|
|
6683
|
+
const fc = [
|
|
6687
6684
|
["bold", "italic", "underline"],
|
|
6688
6685
|
[{ list: "ordered" }, { list: "bullet" }],
|
|
6689
6686
|
["link", "divider"]
|
|
6690
|
-
],
|
|
6691
|
-
divider:
|
|
6692
|
-
},
|
|
6687
|
+
], dc = {
|
|
6688
|
+
divider: hc
|
|
6689
|
+
}, gc = {
|
|
6693
6690
|
bold: "font-bold",
|
|
6694
6691
|
italic: "font-italic",
|
|
6695
6692
|
underline: "font-underline",
|
|
@@ -6699,7 +6696,7 @@ const hc = [
|
|
|
6699
6696
|
},
|
|
6700
6697
|
link: "link",
|
|
6701
6698
|
divider: "minus"
|
|
6702
|
-
},
|
|
6699
|
+
}, pc = ["id"], mc = ["id"], bc = /* @__PURE__ */ xl({
|
|
6703
6700
|
__name: "TextEditor",
|
|
6704
6701
|
props: {
|
|
6705
6702
|
modelValue: { default: "" },
|
|
@@ -6724,11 +6721,11 @@ const hc = [
|
|
|
6724
6721
|
const e = r, s = t, n = wl(), i = ti(null);
|
|
6725
6722
|
let o = null;
|
|
6726
6723
|
const a = nr(() => e.id || kl("stash-text-editor-")), u = ti(e.modelValue), h = nr(() => {
|
|
6727
|
-
const b = e.controls.length ? e.controls :
|
|
6724
|
+
const b = e.controls.length ? e.controls : fc;
|
|
6728
6725
|
return Array.isArray(b[0]) ? p(b) : d(b);
|
|
6729
|
-
}), g = nr(() => ({ ...
|
|
6726
|
+
}), g = nr(() => ({ ...dc, ...e.handlers }));
|
|
6730
6727
|
function y(b, v) {
|
|
6731
|
-
const E =
|
|
6728
|
+
const E = gc[b];
|
|
6732
6729
|
if (!(!E && !v))
|
|
6733
6730
|
return v && E instanceof Object ? E[v] : E;
|
|
6734
6731
|
}
|
|
@@ -6833,27 +6830,27 @@ const hc = [
|
|
|
6833
6830
|
_: 2
|
|
6834
6831
|
}, 1032, ["data-test", "aria-label", "class", "disabled", "value"]))
|
|
6835
6832
|
], 64))), 128))
|
|
6836
|
-
], 10,
|
|
6833
|
+
], 10, pc)),
|
|
6837
6834
|
Sl("div", {
|
|
6838
6835
|
id: a.value,
|
|
6839
6836
|
ref_key: "editorRef",
|
|
6840
6837
|
ref: i,
|
|
6841
6838
|
"data-test": "stash-text-editor|editor",
|
|
6842
6839
|
class: ts(["stash-text-editor__content-container tw-rounded-b-[4px] tw-border !tw-border-t-0", [ve(n)["content-container"]]])
|
|
6843
|
-
}, null, 10,
|
|
6840
|
+
}, null, 10, mc)
|
|
6844
6841
|
]),
|
|
6845
6842
|
_: 1
|
|
6846
6843
|
}, 16, ["class"]));
|
|
6847
6844
|
}
|
|
6848
|
-
}),
|
|
6849
|
-
root:
|
|
6845
|
+
}), yc = "_root_10u42_2", vc = {
|
|
6846
|
+
root: yc,
|
|
6850
6847
|
"format-bar-root": "_format-bar-root_10u42_45",
|
|
6851
6848
|
"format-bar-group": "_format-bar-group_10u42_55",
|
|
6852
6849
|
"format-bar-control": "_format-bar-control_10u42_77"
|
|
6853
|
-
},
|
|
6854
|
-
$style:
|
|
6855
|
-
},
|
|
6850
|
+
}, Ec = {
|
|
6851
|
+
$style: vc
|
|
6852
|
+
}, Bc = /* @__PURE__ */ _l(bc, [["__cssModules", Ec]]);
|
|
6856
6853
|
export {
|
|
6857
|
-
|
|
6854
|
+
Bc as default
|
|
6858
6855
|
};
|
|
6859
6856
|
//# sourceMappingURL=TextEditor.js.map
|