@clevertask/scribe 0.1.17 → 0.1.18

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.
Files changed (43) hide show
  1. package/README.md +1 -1
  2. package/dist/{BarMenu-x4sf3ECS.js → BarMenu-C9tCdvyV.js} +1 -1
  3. package/dist/components/Menu/BarMenu.js +1 -1
  4. package/dist/components/Menu/BubbleMenu.js +2 -2
  5. package/dist/components/Menu/CalloutBubbleMenu.js +2 -2
  6. package/dist/components/Menu/LinkBubbleMenu.d.ts.map +1 -1
  7. package/dist/components/Menu/LinkBubbleMenu.js +2 -2
  8. package/dist/components/Menu/LinkEditor.d.ts.map +1 -1
  9. package/dist/components/Menu/Mobile/ListOptionBar.js +1 -1
  10. package/dist/components/Menu/TableBubbleMenu.js +2 -2
  11. package/dist/components/Menu/linkBubbleMenuPlugin.js +1 -1
  12. package/dist/components/Scribe/extension/callout.js +1 -1
  13. package/dist/components/Scribe/extension/emoji/suggest.js +1 -1
  14. package/dist/components/Scribe/extension/extension-link.js +1 -1
  15. package/dist/components/Scribe/extension/extension-markdown-paste.js +2 -2
  16. package/dist/components/Scribe/extension/extension-selectedText.js +1 -1
  17. package/dist/components/Scribe/extension/external-link-preview/commands.js +1 -1
  18. package/dist/components/Scribe/extension/external-link-preview/index.js +2 -2
  19. package/dist/components/Scribe/extension/external-link-preview/node-view.js +1 -1
  20. package/dist/components/Scribe/extension/external-link-preview/render-html.js +1 -1
  21. package/dist/components/Scribe/extension/index.js +1 -1
  22. package/dist/components/Scribe/extension/resizable-table.js +1 -1
  23. package/dist/components/Scribe/extension/slashCommand/index.js +1 -1
  24. package/dist/components/Scribe/extension/slashCommand/renderItems.js +1 -1
  25. package/dist/components/Scribe/extension/tableOfContents.js +1 -1
  26. package/dist/components/Scribe/index.d.ts.map +1 -1
  27. package/dist/components/Scribe/index.js +4 -4
  28. package/dist/{dist-tNcpTcFT.js → dist-CkWsQ5Lj.js} +197 -185
  29. package/dist/{dist-DDjaA1Pn.js → dist-DRPH9MfF.js} +1 -1
  30. package/dist/{extension-CwuvxVkr.js → extension-DOo9QT6U.js} +1167 -1159
  31. package/dist/{extension-link-RYtPpHwt.js → extension-link-yMrg9JOz.js} +2 -2
  32. package/dist/{html-to-markdown-nbQ6qHyO.js → html-to-markdown-CnlA8pb8.js} +1 -1
  33. package/dist/main.js +2 -2
  34. package/dist/{markdown-to-html-B-KKCZRs.js → markdown-to-html-BLzYd3Fu.js} +10 -11
  35. package/dist/{menus-U2HdvQnu.js → menus-Dy2dj4QT.js} +5 -5
  36. package/dist/purify.es-DGv0-Lid.js +805 -0
  37. package/dist/{resizable-table-m0AzovsZ.js → resizable-table-D0mls3aB.js} +2 -2
  38. package/dist/{slashCommand-CtvgnL0Z.js → slashCommand-D35jcSNp.js} +2 -2
  39. package/dist/utils/html-to-markdown.js +1 -1
  40. package/dist/utils/index.js +4 -4
  41. package/dist/utils/markdown-to-html.js +1 -1
  42. package/package.json +51 -51
  43. package/dist/purify.es-BES4pJF7.js +0 -774
@@ -1,774 +0,0 @@
1
- //#region node_modules/.pnpm/dompurify@3.4.13/node_modules/dompurify/dist/purify.es.mjs
2
- function e(e, t) {
3
- (t == null || t > e.length) && (t = e.length);
4
- for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
5
- return r;
6
- }
7
- function t(e) {
8
- if (Array.isArray(e)) return e;
9
- }
10
- function n(e, t) {
11
- var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
12
- if (n != null) {
13
- var r, i, a, o, s = [], c = !0, l = !1;
14
- try {
15
- if (a = (n = n.call(e)).next, t !== 0) for (; !(c = (r = a.call(n)).done) && (s.push(r.value), s.length !== t); c = !0);
16
- } catch (e) {
17
- l = !0, i = e;
18
- } finally {
19
- try {
20
- if (!c && n.return != null && (o = n.return(), Object(o) !== o)) return;
21
- } finally {
22
- if (l) throw i;
23
- }
24
- }
25
- return s;
26
- }
27
- }
28
- function r() {
29
- throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
30
- }
31
- function i(e, i) {
32
- return t(e) || n(e, i) || a(e, i) || r();
33
- }
34
- function a(t, n) {
35
- if (t) {
36
- if (typeof t == "string") return e(t, n);
37
- var r = {}.toString.call(t).slice(8, -1);
38
- return r === "Object" && t.constructor && (r = t.constructor.name), r === "Map" || r === "Set" ? Array.from(t) : r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? e(t, n) : void 0;
39
- }
40
- }
41
- var o = Object.entries, s = Object.setPrototypeOf, c = Object.isFrozen, l = Object.getPrototypeOf, u = Object.getOwnPropertyDescriptor, d = Object.freeze, f = Object.seal, p = Object.create, m = typeof Reflect < "u" && Reflect, h = m.apply, ee = m.construct;
42
- d ||= function(e) {
43
- return e;
44
- }, f ||= function(e) {
45
- return e;
46
- }, h ||= function(e, t) {
47
- var n = [...arguments].slice(2);
48
- return e.apply(t, n);
49
- }, ee ||= function(e) {
50
- return new e(...[...arguments].slice(1));
51
- };
52
- var g = T(Array.prototype.forEach), te = T(Array.prototype.lastIndexOf), ne = T(Array.prototype.pop), _ = T(Array.prototype.push), re = T(Array.prototype.splice), v = Array.isArray, ie = T(String.prototype.toLowerCase), ae = T(String.prototype.toString), oe = T(String.prototype.match), se = T(String.prototype.replace), ce = T(String.prototype.indexOf), le = T(String.prototype.trim), ue = T(Number.prototype.toString), de = T(Boolean.prototype.toString), y = typeof BigInt > "u" ? null : T(BigInt.prototype.toString), b = typeof Symbol > "u" ? null : T(Symbol.prototype.toString), x = T(Object.prototype.hasOwnProperty), S = T(Object.prototype.toString), C = T(RegExp.prototype.test), w = E(TypeError);
53
- function T(e) {
54
- return function(t) {
55
- t instanceof RegExp && (t.lastIndex = 0);
56
- var n = [...arguments].slice(1);
57
- return h(e, t, n);
58
- };
59
- }
60
- function E(e) {
61
- return function() {
62
- return ee(e, [...arguments]);
63
- };
64
- }
65
- function D(e, t) {
66
- let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : ie;
67
- if (s && s(e, null), !v(t)) return e;
68
- let r = t.length;
69
- for (; r--;) {
70
- let i = t[r];
71
- if (typeof i == "string") {
72
- let e = n(i);
73
- e !== i && (c(t) || (t[r] = e), i = e);
74
- }
75
- e[i] = !0;
76
- }
77
- return e;
78
- }
79
- function O(e) {
80
- for (let t = 0; t < e.length; t++) x(e, t) || (e[t] = null);
81
- return e;
82
- }
83
- function k(e) {
84
- let t = p(null);
85
- for (let r of o(e)) {
86
- var n = i(r, 2);
87
- let a = n[0], o = n[1];
88
- x(e, a) && (t[a] = v(o) ? O(o) : o && typeof o == "object" && o.constructor === Object ? k(o) : o);
89
- }
90
- return t;
91
- }
92
- function fe(e) {
93
- switch (typeof e) {
94
- case "string": return e;
95
- case "number": return ue(e);
96
- case "boolean": return de(e);
97
- case "bigint": return y ? y(e) : "0";
98
- case "symbol": return b ? b(e) : "Symbol()";
99
- case "undefined": return S(e);
100
- case "function":
101
- case "object": {
102
- if (e === null) return S(e);
103
- let t = e, n = A(t, "toString");
104
- if (typeof n == "function") {
105
- let e = n(t);
106
- return typeof e == "string" ? e : S(e);
107
- }
108
- return S(e);
109
- }
110
- default: return S(e);
111
- }
112
- }
113
- function A(e, t) {
114
- for (; e !== null;) {
115
- let n = u(e, t);
116
- if (n) {
117
- if (n.get) return T(n.get);
118
- if (typeof n.value == "function") return T(n.value);
119
- }
120
- e = l(e);
121
- }
122
- function n() {
123
- return null;
124
- }
125
- return n;
126
- }
127
- function pe(e) {
128
- try {
129
- return C(e, ""), !0;
130
- } catch {
131
- return !1;
132
- }
133
- }
134
- var me = d(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bdi.bdo.big.blink.blockquote.body.br.button.canvas.caption.center.cite.code.col.colgroup.content.data.datalist.dd.decorator.del.details.dfn.dialog.dir.div.dl.dt.element.em.fieldset.figcaption.figure.font.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.img.input.ins.kbd.label.legend.li.main.map.mark.marquee.menu.menuitem.meter.nav.nobr.ol.optgroup.option.output.p.picture.pre.progress.q.rp.rt.ruby.s.samp.search.section.select.shadow.slot.small.source.spacer.span.strike.strong.style.sub.summary.sup.table.tbody.td.template.textarea.tfoot.th.thead.time.tr.track.tt.u.ul.var.video.wbr".split(".")), he = d(/* @__PURE__ */ "svg.a.altglyph.altglyphdef.altglyphitem.animatecolor.animatemotion.animatetransform.circle.clippath.defs.desc.ellipse.enterkeyhint.exportparts.filter.font.g.glyph.glyphref.hkern.image.inputmode.line.lineargradient.marker.mask.metadata.mpath.part.path.pattern.polygon.polyline.radialgradient.rect.stop.style.switch.symbol.text.textpath.title.tref.tspan.view.vkern".split(".")), ge = d([
135
- "feBlend",
136
- "feColorMatrix",
137
- "feComponentTransfer",
138
- "feComposite",
139
- "feConvolveMatrix",
140
- "feDiffuseLighting",
141
- "feDisplacementMap",
142
- "feDistantLight",
143
- "feDropShadow",
144
- "feFlood",
145
- "feFuncA",
146
- "feFuncB",
147
- "feFuncG",
148
- "feFuncR",
149
- "feGaussianBlur",
150
- "feImage",
151
- "feMerge",
152
- "feMergeNode",
153
- "feMorphology",
154
- "feOffset",
155
- "fePointLight",
156
- "feSpecularLighting",
157
- "feSpotLight",
158
- "feTile",
159
- "feTurbulence"
160
- ]), _e = d([
161
- "animate",
162
- "color-profile",
163
- "cursor",
164
- "discard",
165
- "font-face",
166
- "font-face-format",
167
- "font-face-name",
168
- "font-face-src",
169
- "font-face-uri",
170
- "foreignobject",
171
- "hatch",
172
- "hatchpath",
173
- "mesh",
174
- "meshgradient",
175
- "meshpatch",
176
- "meshrow",
177
- "missing-glyph",
178
- "script",
179
- "set",
180
- "solidcolor",
181
- "unknown",
182
- "use"
183
- ]), ve = d(/* @__PURE__ */ "math.menclose.merror.mfenced.mfrac.mglyph.mi.mlabeledtr.mmultiscripts.mn.mo.mover.mpadded.mphantom.mroot.mrow.ms.mspace.msqrt.mstyle.msub.msup.msubsup.mtable.mtd.mtext.mtr.munder.munderover.mprescripts".split(".")), ye = d([
184
- "maction",
185
- "maligngroup",
186
- "malignmark",
187
- "mlongdiv",
188
- "mscarries",
189
- "mscarry",
190
- "msgroup",
191
- "mstack",
192
- "msline",
193
- "msrow",
194
- "semantics",
195
- "annotation",
196
- "annotation-xml",
197
- "mprescripts",
198
- "none"
199
- ]), be = d(["#text"]), xe = d(/* @__PURE__ */ "accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.command.commandfor.controls.controlslist.coords.crossorigin.datetime.decoding.default.dir.disabled.disablepictureinpicture.disableremoteplayback.download.draggable.enctype.enterkeyhint.exportparts.face.for.headers.height.hidden.high.href.hreflang.id.inert.inputmode.integrity.ismap.kind.label.lang.list.loading.loop.low.max.maxlength.media.method.min.minlength.multiple.muted.name.nonce.noshade.novalidate.nowrap.open.optimum.part.pattern.placeholder.playsinline.popover.popovertarget.popovertargetaction.poster.preload.pubdate.radiogroup.readonly.rel.required.rev.reversed.role.rows.rowspan.spellcheck.scope.selected.shape.size.sizes.slot.span.srclang.start.src.srcset.step.style.summary.tabindex.title.translate.type.usemap.valign.value.width.wrap.xmlns".split(".")), Se = d(/* @__PURE__ */ "accent-height.accumulate.additive.alignment-baseline.amplitude.ascent.attributename.attributetype.azimuth.basefrequency.baseline-shift.begin.bias.by.class.clip.clippathunits.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.cx.cy.d.dx.dy.diffuseconstant.direction.display.divisor.dominant-baseline.dur.edgemode.elevation.end.exponent.fill.fill-opacity.fill-rule.filter.filterunits.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.fx.fy.g1.g2.glyph-name.glyphref.gradientunits.gradienttransform.height.href.id.image-rendering.in.in2.intercept.k.k1.k2.k3.k4.kerning.keypoints.keysplines.keytimes.lang.lengthadjust.letter-spacing.kernelmatrix.kernelunitlength.lighting-color.local.marker-end.marker-mid.marker-start.markerheight.markerunits.markerwidth.maskcontentunits.maskunits.max.mask.mask-type.media.method.mode.min.name.numoctaves.offset.operator.opacity.order.orient.orientation.origin.overflow.paint-order.path.pathlength.patterncontentunits.patterntransform.patternunits.points.preservealpha.preserveaspectratio.primitiveunits.r.rx.ry.radius.refx.refy.repeatcount.repeatdur.restart.result.rotate.scale.seed.shape-rendering.slope.specularconstant.specularexponent.spreadmethod.startoffset.stddeviation.stitchtiles.stop-color.stop-opacity.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke.stroke-width.style.surfacescale.systemlanguage.tabindex.tablevalues.targetx.targety.transform.transform-origin.text-anchor.text-decoration.text-orientation.text-rendering.textlength.type.u1.u2.unicode.values.viewbox.visibility.version.vert-adv-y.vert-origin-x.vert-origin-y.width.word-spacing.wrap.writing-mode.xchannelselector.ychannelselector.x.x1.x2.xmlns.y.y1.y2.z.zoomandpan".split(".")), Ce = d(/* @__PURE__ */ "accent.accentunder.align.bevelled.close.columnalign.columnlines.columnspacing.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lquote.lspace.mathbackground.mathcolor.mathsize.mathvariant.maxsize.minsize.movablelimits.notation.numalign.open.rowalign.rowlines.rowspacing.rowspan.rspace.rquote.scriptlevel.scriptminsize.scriptsizemultiplier.selection.separator.separators.stretchy.subscriptshift.supscriptshift.symmetric.voffset.width.xmlns".split(".")), we = d([
200
- "xlink:href",
201
- "xml:id",
202
- "xlink:title",
203
- "xml:space",
204
- "xmlns:xlink"
205
- ]), Te = f(/{{[\w\W]*|^[\w\W]*}}/g), Ee = f(/<%[\w\W]*|^[\w\W]*%>/g), De = f(/\${[\w\W]*/g), Oe = f(/^data-[\-\w.\u00B7-\uFFFF]+$/), ke = f(/^aria-[\-\w]+$/), Ae = f(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i), je = f(/^(?:\w+script|data):/i), Me = f(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g), Ne = f(/^html$/i), Pe = f(/^[a-z][.\w]*(-[.\w]+)+$/i), Fe = f(/<[/\w!]/g), Ie = f(/<[/\w]/g), Le = f(/<\/no(script|embed|frames)/i), Re = f(/\/>/i), j = {
206
- element: 1,
207
- attribute: 2,
208
- text: 3,
209
- cdataSection: 4,
210
- entityReference: 5,
211
- entityNode: 6,
212
- processingInstruction: 7,
213
- comment: 8,
214
- document: 9,
215
- documentType: 10,
216
- documentFragment: 11,
217
- notation: 12
218
- }, ze = function() {
219
- return typeof window > "u" ? null : window;
220
- }, Be = function(e, t) {
221
- if (typeof e != "object" || typeof e.createPolicy != "function") return null;
222
- let n = null, r = "data-tt-policy-suffix";
223
- t && t.hasAttribute(r) && (n = t.getAttribute(r));
224
- let i = "dompurify" + (n ? "#" + n : "");
225
- try {
226
- return e.createPolicy(i, {
227
- createHTML(e) {
228
- return e;
229
- },
230
- createScriptURL(e) {
231
- return e;
232
- }
233
- });
234
- } catch {
235
- return console.warn("TrustedTypes policy " + i + " could not be created."), null;
236
- }
237
- }, Ve = function() {
238
- return {
239
- afterSanitizeAttributes: [],
240
- afterSanitizeElements: [],
241
- afterSanitizeShadowDOM: [],
242
- beforeSanitizeAttributes: [],
243
- beforeSanitizeElements: [],
244
- beforeSanitizeShadowDOM: [],
245
- uponSanitizeAttribute: [],
246
- uponSanitizeElement: [],
247
- uponSanitizeShadowNode: []
248
- };
249
- }, M = function(e, t, n, r) {
250
- return x(e, t) && v(e[t]) ? D(r.base ? k(r.base) : {}, e[t], r.transform) : n;
251
- };
252
- function He() {
253
- let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : ze(), t = (e) => He(e);
254
- if (t.version = "3.4.13", t.removed = [], !e || !e.document || e.document.nodeType !== j.document || !e.Element) return t.isSupported = !1, t;
255
- let n = e.document, r = n, i = r.currentScript;
256
- e.DocumentFragment;
257
- let a = e.HTMLTemplateElement, s = e.Node, c = e.Element, l = e.NodeFilter;
258
- e.NamedNodeMap === void 0 && (e.NamedNodeMap || e.MozNamedAttrMap), e.HTMLFormElement;
259
- let u = e.DOMParser, m = e.trustedTypes, h = c.prototype, ee = A(h, "cloneNode"), ue = A(h, "remove"), de = A(h, "nextSibling"), y = A(h, "childNodes"), b = A(h, "parentNode"), S = A(h, "shadowRoot"), T = A(h, "attributes"), E = s && s.prototype ? A(s.prototype, "nodeType") : null, O = s && s.prototype ? A(s.prototype, "nodeName") : null, Ue = s && s.prototype ? A(s.prototype, "ownerDocument") : null;
260
- if (typeof a == "function") {
261
- let e = n.createElement("template");
262
- e.content && e.content.ownerDocument && (n = e.content.ownerDocument);
263
- }
264
- let N, P = "", We, Ge = !1, Ke = 0, qe = function() {
265
- if (Ke > 0) throw w("A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the \"DOMPurify and Trusted Types\" section of the README.");
266
- }, F = function(e) {
267
- qe(), Ke++;
268
- try {
269
- return N.createHTML(e);
270
- } finally {
271
- Ke--;
272
- }
273
- }, Je = function(e) {
274
- qe(), Ke++;
275
- try {
276
- return N.createScriptURL(e);
277
- } finally {
278
- Ke--;
279
- }
280
- }, Ye = function() {
281
- return Ge ||= (We = Be(m, i), !0), We;
282
- }, Xe = n, Ze = Xe.implementation, Qe = Xe.createNodeIterator, $e = Xe.createDocumentFragment, et = Xe.getElementsByTagName, tt = r.importNode, I = Ve();
283
- t.isSupported = typeof o == "function" && typeof b == "function" && Ze && Ze.createHTMLDocument !== void 0;
284
- let nt = Te, rt = Ee, it = De, at = Oe, ot = ke, st = je, ct = Me, lt = Pe, ut = Ae, L = null, dt = D({}, [
285
- ...me,
286
- ...he,
287
- ...ge,
288
- ...ve,
289
- ...be
290
- ]), R = null, ft = D({}, [
291
- ...xe,
292
- ...Se,
293
- ...Ce,
294
- ...we
295
- ]), z = Object.seal(p(null, {
296
- tagNameCheck: {
297
- writable: !0,
298
- configurable: !1,
299
- enumerable: !0,
300
- value: null
301
- },
302
- attributeNameCheck: {
303
- writable: !0,
304
- configurable: !1,
305
- enumerable: !0,
306
- value: null
307
- },
308
- allowCustomizedBuiltInElements: {
309
- writable: !0,
310
- configurable: !1,
311
- enumerable: !0,
312
- value: !1
313
- }
314
- })), pt = null, mt = null, B = Object.seal(p(null, {
315
- tagCheck: {
316
- writable: !0,
317
- configurable: !1,
318
- enumerable: !0,
319
- value: null
320
- },
321
- attributeCheck: {
322
- writable: !0,
323
- configurable: !1,
324
- enumerable: !0,
325
- value: null
326
- }
327
- })), ht = !0, gt = !0, _t = !1, vt = !0, V = !1, H = !0, U = !1, yt = !1, bt = null, xt = null, St = !1, W = !1, Ct = !1, wt = !1, Tt = !0, Et = !1, Dt = "user-content-", Ot = !0, kt = !1, G = {}, K = null, At = D({}, /* @__PURE__ */ "annotation-xml.audio.colgroup.desc.foreignobject.head.iframe.math.mi.mn.mo.ms.mtext.noembed.noframes.noscript.plaintext.script.selectedcontent.style.svg.template.thead.title.video.xmp".split(".")), jt = null, Mt = D({}, [
328
- "audio",
329
- "video",
330
- "img",
331
- "source",
332
- "image",
333
- "track"
334
- ]), Nt = null, Pt = D({}, [
335
- "alt",
336
- "class",
337
- "for",
338
- "id",
339
- "label",
340
- "name",
341
- "pattern",
342
- "placeholder",
343
- "role",
344
- "summary",
345
- "title",
346
- "value",
347
- "style",
348
- "xmlns"
349
- ]), Ft = "http://www.w3.org/1998/Math/MathML", It = "http://www.w3.org/2000/svg", q = "http://www.w3.org/1999/xhtml", J = q, Lt = !1, Rt = null, zt = D({}, [
350
- Ft,
351
- It,
352
- q
353
- ], ae), Bt = d([
354
- "mi",
355
- "mo",
356
- "mn",
357
- "ms",
358
- "mtext"
359
- ]), Vt = D({}, Bt), Ht = d(["annotation-xml"]), Ut = D({}, Ht), Wt = D({}, [
360
- "title",
361
- "style",
362
- "font",
363
- "a",
364
- "script"
365
- ]), Gt = null, Kt = ["application/xhtml+xml", "text/html"], Y = null, X = null, qt = n.createElement("form"), Jt = function(e) {
366
- return e instanceof RegExp || e instanceof Function;
367
- }, Yt = function() {
368
- let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
369
- if (X && X === e) return;
370
- (!e || typeof e != "object") && (e = {}), e = k(e), Gt = Kt.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? "text/html" : e.PARSER_MEDIA_TYPE, Y = Gt === "application/xhtml+xml" ? ae : ie, L = M(e, "ALLOWED_TAGS", dt, { transform: Y }), R = M(e, "ALLOWED_ATTR", ft, { transform: Y }), Rt = M(e, "ALLOWED_NAMESPACES", zt, { transform: ae }), Nt = M(e, "ADD_URI_SAFE_ATTR", Pt, {
371
- transform: Y,
372
- base: Pt
373
- }), jt = M(e, "ADD_DATA_URI_TAGS", Mt, {
374
- transform: Y,
375
- base: Mt
376
- }), K = M(e, "FORBID_CONTENTS", At, { transform: Y }), pt = M(e, "FORBID_TAGS", k({}), { transform: Y }), mt = M(e, "FORBID_ATTR", k({}), { transform: Y }), G = x(e, "USE_PROFILES") ? e.USE_PROFILES && typeof e.USE_PROFILES == "object" ? k(e.USE_PROFILES) : e.USE_PROFILES : !1, ht = e.ALLOW_ARIA_ATTR !== !1, gt = e.ALLOW_DATA_ATTR !== !1, _t = e.ALLOW_UNKNOWN_PROTOCOLS || !1, vt = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, V = e.SAFE_FOR_TEMPLATES || !1, H = e.SAFE_FOR_XML !== !1, U = e.WHOLE_DOCUMENT || !1, W = e.RETURN_DOM || !1, Ct = e.RETURN_DOM_FRAGMENT || !1, wt = e.RETURN_TRUSTED_TYPE || !1, St = e.FORCE_BODY || !1, Tt = e.SANITIZE_DOM !== !1, Et = e.SANITIZE_NAMED_PROPS || !1, Ot = e.KEEP_CONTENT !== !1, kt = e.IN_PLACE || !1, ut = pe(e.ALLOWED_URI_REGEXP) ? e.ALLOWED_URI_REGEXP : Ae, J = typeof e.NAMESPACE == "string" ? e.NAMESPACE : q, Vt = x(e, "MATHML_TEXT_INTEGRATION_POINTS") && e.MATHML_TEXT_INTEGRATION_POINTS && typeof e.MATHML_TEXT_INTEGRATION_POINTS == "object" ? k(e.MATHML_TEXT_INTEGRATION_POINTS) : D({}, Bt), Ut = x(e, "HTML_INTEGRATION_POINTS") && e.HTML_INTEGRATION_POINTS && typeof e.HTML_INTEGRATION_POINTS == "object" ? k(e.HTML_INTEGRATION_POINTS) : D({}, Ht);
377
- let t = x(e, "CUSTOM_ELEMENT_HANDLING") && e.CUSTOM_ELEMENT_HANDLING && typeof e.CUSTOM_ELEMENT_HANDLING == "object" ? k(e.CUSTOM_ELEMENT_HANDLING) : p(null);
378
- if (z = p(null), x(t, "tagNameCheck") && Jt(t.tagNameCheck) && (z.tagNameCheck = t.tagNameCheck), x(t, "attributeNameCheck") && Jt(t.attributeNameCheck) && (z.attributeNameCheck = t.attributeNameCheck), x(t, "allowCustomizedBuiltInElements") && typeof t.allowCustomizedBuiltInElements == "boolean" && (z.allowCustomizedBuiltInElements = t.allowCustomizedBuiltInElements), f(z), V && (gt = !1), Ct && (W = !0), G && (L = D({}, be), R = p(null), G.html === !0 && (D(L, me), D(R, xe)), G.svg === !0 && (D(L, he), D(R, Se), D(R, we)), G.svgFilters === !0 && (D(L, ge), D(R, Se), D(R, we)), G.mathMl === !0 && (D(L, ve), D(R, Ce), D(R, we))), B.tagCheck = null, B.attributeCheck = null, x(e, "ADD_TAGS") && (typeof e.ADD_TAGS == "function" ? B.tagCheck = e.ADD_TAGS : v(e.ADD_TAGS) && (L === dt && (L = k(L)), D(L, e.ADD_TAGS, Y))), x(e, "ADD_ATTR") && (typeof e.ADD_ATTR == "function" ? B.attributeCheck = e.ADD_ATTR : v(e.ADD_ATTR) && (R === ft && (R = k(R)), D(R, e.ADD_ATTR, Y))), x(e, "ADD_URI_SAFE_ATTR") && v(e.ADD_URI_SAFE_ATTR) && D(Nt, e.ADD_URI_SAFE_ATTR, Y), x(e, "FORBID_CONTENTS") && v(e.FORBID_CONTENTS) && (K === At && (K = k(K)), D(K, e.FORBID_CONTENTS, Y)), x(e, "ADD_FORBID_CONTENTS") && v(e.ADD_FORBID_CONTENTS) && (K === At && (K = k(K)), D(K, e.ADD_FORBID_CONTENTS, Y)), Ot && (L["#text"] = !0), U && D(L, [
379
- "html",
380
- "head",
381
- "body"
382
- ]), L.table && (D(L, ["tbody"]), delete pt.tbody), e.TRUSTED_TYPES_POLICY) {
383
- if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function") throw w("TRUSTED_TYPES_POLICY configuration option must provide a \"createHTML\" hook.");
384
- if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function") throw w("TRUSTED_TYPES_POLICY configuration option must provide a \"createScriptURL\" hook.");
385
- let t = N;
386
- N = e.TRUSTED_TYPES_POLICY;
387
- try {
388
- P = F("");
389
- } catch (e) {
390
- throw N = t, e;
391
- }
392
- } else e.TRUSTED_TYPES_POLICY === null ? (N = void 0, P = "") : (N === void 0 && (N = Ye()), N && typeof P == "string" && (P = F("")));
393
- d && d(e), X = e;
394
- }, Xt = D({}, [
395
- ...he,
396
- ...ge,
397
- ..._e
398
- ]), Zt = D({}, [...ve, ...ye]), Qt = function(e, t, n) {
399
- return t.namespaceURI === q ? e === "svg" : t.namespaceURI === Ft ? e === "svg" && (n === "annotation-xml" || Vt[n]) : !!Xt[e];
400
- }, $t = function(e, t, n) {
401
- return t.namespaceURI === q ? e === "math" : t.namespaceURI === It ? e === "math" && Ut[n] : !!Zt[e];
402
- }, en = function(e, t, n) {
403
- return t.namespaceURI === It && !Ut[n] || t.namespaceURI === Ft && !Vt[n] ? !1 : !Zt[e] && (Wt[e] || !Xt[e]);
404
- }, tn = function(e) {
405
- let t = b(e);
406
- (!t || !t.tagName) && (t = {
407
- namespaceURI: J,
408
- tagName: "template"
409
- });
410
- let n = ie(e.tagName), r = ie(t.tagName);
411
- return Rt[e.namespaceURI] ? e.namespaceURI === It ? Qt(n, t, r) : e.namespaceURI === Ft ? $t(n, t, r) : e.namespaceURI === q ? en(n, t, r) : !!(Gt === "application/xhtml+xml" && Rt[e.namespaceURI]) : !1;
412
- }, Z = function(e) {
413
- _(t.removed, { element: e });
414
- try {
415
- b(e).removeChild(e);
416
- } catch {
417
- if (ue(e), !b(e)) throw w("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place");
418
- }
419
- }, nn = function(e) {
420
- an(e);
421
- let t = y(e);
422
- if (t) {
423
- let e = [];
424
- g(t, (t) => {
425
- _(e, t);
426
- }), g(e, (e) => {
427
- try {
428
- ue(e);
429
- } catch {}
430
- });
431
- }
432
- let n = T(e);
433
- if (n) for (let t = n.length - 1; t >= 0; --t) {
434
- let r = n[t], i = r && r.name;
435
- if (typeof i == "string") try {
436
- e.removeAttribute(i);
437
- } catch {}
438
- }
439
- }, Q = function(e, n) {
440
- try {
441
- _(t.removed, {
442
- attribute: n.getAttributeNode(e),
443
- from: n
444
- });
445
- } catch {
446
- _(t.removed, {
447
- attribute: null,
448
- from: n
449
- });
450
- }
451
- if (n.removeAttribute(e), e === "is") {
452
- if (W || Ct) try {
453
- Z(n);
454
- } catch {}
455
- else try {
456
- n.setAttribute(e, "");
457
- } catch {}
458
- }
459
- }, rn = function(e) {
460
- let t = T(e);
461
- if (t) for (let n = t.length - 1; n >= 0; --n) {
462
- let r = t[n], i = r && r.name;
463
- if (!(typeof i != "string" || R[Y(i)])) try {
464
- e.removeAttribute(i);
465
- } catch {}
466
- }
467
- }, an = function(e) {
468
- let t = [e];
469
- for (; t.length > 0;) {
470
- let e = t.pop();
471
- (E ? E(e) : e.nodeType) === j.element && rn(e);
472
- let n = y(e);
473
- if (n) for (let e = n.length - 1; e >= 0; --e) t.push(n[e]);
474
- }
475
- }, on = function(e) {
476
- if (!H) return;
477
- let t = [e];
478
- for (; t.length > 0;) {
479
- let e = t.pop(), n = E ? E(e) : e.nodeType;
480
- if (n === j.processingInstruction || n === j.comment && C(Ie, e.data)) {
481
- try {
482
- ue(e);
483
- } catch {}
484
- continue;
485
- }
486
- if (n === j.element) {
487
- let t = e, n = Y(O ? O(e) : e.nodeName);
488
- try {
489
- t.hasAttribute && t.hasAttribute("patchsrc") && t.removeAttribute("patchsrc"), t.hasAttribute && t.hasAttribute("for") && n !== "label" && n !== "output" && t.removeAttribute("for");
490
- } catch {}
491
- }
492
- let r = y(e);
493
- if (r) for (let e = r.length - 1; e >= 0; --e) t.push(r[e]);
494
- }
495
- }, sn = function(e) {
496
- let t = null, r = null;
497
- if (St) e = "<remove></remove>" + e;
498
- else {
499
- let t = oe(e, /^[\r\n\t ]+/);
500
- r = t && t[0];
501
- }
502
- Gt === "application/xhtml+xml" && J === q && (e = "<html xmlns=\"http://www.w3.org/1999/xhtml\"><head></head><body>" + e + "</body></html>");
503
- let i = N ? F(e) : e;
504
- if (J === q) try {
505
- t = new u().parseFromString(i, Gt);
506
- } catch {}
507
- if (!t || !t.documentElement) {
508
- t = Ze.createDocument(J, "template", null);
509
- try {
510
- t.documentElement.innerHTML = Lt ? P : i;
511
- } catch {}
512
- }
513
- let a = t.body || t.documentElement;
514
- return e && r && a.insertBefore(n.createTextNode(r), a.childNodes[0] || null), J === q ? et.call(t, U ? "html" : "body")[0] : U ? t.documentElement : a;
515
- }, cn = function(e) {
516
- let t = Ue ? Ue(e) : e.ownerDocument;
517
- return Qe.call(t || e, e, l.SHOW_ELEMENT | l.SHOW_COMMENT | l.SHOW_TEXT | l.SHOW_PROCESSING_INSTRUCTION | l.SHOW_CDATA_SECTION, null);
518
- }, ln = function(e) {
519
- return e = se(e, nt, " "), e = se(e, rt, " "), e = se(e, it, " "), e;
520
- }, un = function(e) {
521
- e.normalize();
522
- let t = Ue ? Ue(e) : e.ownerDocument, n = Qe.call(t || e, e, l.SHOW_TEXT | l.SHOW_COMMENT | l.SHOW_CDATA_SECTION | l.SHOW_PROCESSING_INSTRUCTION, null), r = n.nextNode();
523
- for (; r;) r.data = ln(r.data), r = n.nextNode();
524
- let i = e.querySelectorAll?.call(e, "template");
525
- i && g(i, (e) => {
526
- fn(e.content) && un(e.content);
527
- });
528
- }, dn = function(e) {
529
- let t = O ? O(e) : null;
530
- return typeof t != "string" || Y(t) !== "form" ? !1 : typeof e.nodeName != "string" || typeof e.textContent != "string" || typeof e.removeChild != "function" || e.attributes !== T(e) || typeof e.removeAttribute != "function" || typeof e.setAttribute != "function" || typeof e.namespaceURI != "string" || typeof e.insertBefore != "function" || typeof e.hasChildNodes != "function" || e.nodeType !== E(e) || e.childNodes !== y(e);
531
- }, fn = function(e) {
532
- if (!E || typeof e != "object" || !e) return !1;
533
- try {
534
- return E(e) === j.documentFragment;
535
- } catch {
536
- return !1;
537
- }
538
- }, pn = function(e) {
539
- if (!E || typeof e != "object" || !e) return !1;
540
- try {
541
- return typeof E(e) == "number";
542
- } catch {
543
- return !1;
544
- }
545
- };
546
- function $(e, n, r) {
547
- e.length !== 0 && g(e, (e) => {
548
- e.call(t, n, r, X);
549
- });
550
- }
551
- let mn = function(e, t) {
552
- return !!(H && e.hasChildNodes() && !pn(e.firstElementChild) && C(Fe, e.textContent) && C(Fe, e.innerHTML) || H && e.namespaceURI === q && t === "style" && pn(e.firstElementChild) || e.nodeType === j.processingInstruction || H && e.nodeType === j.comment && C(Ie, e.data));
553
- }, hn = function(e, t, n) {
554
- if (!pt[t] && bn(t) && (z.tagNameCheck instanceof RegExp && C(z.tagNameCheck, t) || z.tagNameCheck instanceof Function && z.tagNameCheck(t))) return !1;
555
- if (Ot && !K[t]) {
556
- let t = b(e), r = y(e);
557
- if (r && t) {
558
- let i = r.length;
559
- for (let a = i - 1; a >= 0; --a) {
560
- let i = e === n ? ee(r[a], !0) : r[a];
561
- t.insertBefore(i, de(e));
562
- }
563
- }
564
- }
565
- return Z(e), !0;
566
- }, gn = function(e, t, n, r) {
567
- return e.length === 0 ? t : t === n || t === r ? k(t) : t;
568
- }, _n = function(e, n) {
569
- if ($(I.beforeSanitizeElements, e, null), e !== n && b(e) === null) return kt && an(e), !0;
570
- if (dn(e)) return Z(e), !0;
571
- let r = Y(O ? O(e) : e.nodeName);
572
- if (L = gn(I.uponSanitizeElement, L, dt, bt), $(I.uponSanitizeElement, e, {
573
- tagName: r,
574
- allowedTags: L
575
- }), e !== n && b(e) === null) return kt && an(e), !0;
576
- if (mn(e, r)) return Z(e), !0;
577
- if (pt[r] || !(B.tagCheck instanceof Function && B.tagCheck(r)) && !L[r]) {
578
- let t = hn(e, r, n);
579
- return t === !1 && $(I.afterSanitizeElements, e, null), t;
580
- }
581
- if ((E ? E(e) : e.nodeType) === j.element && !tn(e) || (r === "noscript" || r === "noembed" || r === "noframes") && C(Le, e.innerHTML)) return Z(e), !0;
582
- if (V && e.nodeType === j.text) {
583
- let n = ln(e.textContent);
584
- e.textContent !== n && (_(t.removed, { element: e.cloneNode() }), e.textContent = n);
585
- }
586
- return $(I.afterSanitizeElements, e, null), !1;
587
- }, vn = function(e, t, r) {
588
- if (mt[t] || H && t === "patchsrc" || H && t === "for" && e !== "label" && e !== "output" || Tt && (t === "id" || t === "name") && (r in n || r in qt)) return !1;
589
- let i = R[t] || B.attributeCheck instanceof Function && B.attributeCheck(t, e);
590
- if (!(gt && C(at, t)) && !(ht && C(ot, t))) {
591
- if (!i) {
592
- if (!(bn(e) && (z.tagNameCheck instanceof RegExp && C(z.tagNameCheck, e) || z.tagNameCheck instanceof Function && z.tagNameCheck(e)) && (z.attributeNameCheck instanceof RegExp && C(z.attributeNameCheck, t) || z.attributeNameCheck instanceof Function && z.attributeNameCheck(t, e)) || t === "is" && z.allowCustomizedBuiltInElements && (z.tagNameCheck instanceof RegExp && C(z.tagNameCheck, r) || z.tagNameCheck instanceof Function && z.tagNameCheck(r)))) return !1;
593
- } else if (!Nt[t] && !C(ut, se(r, ct, "")) && !((t === "src" || t === "xlink:href" || t === "href") && e !== "script" && ce(r, "data:") === 0 && jt[e]) && !(_t && !C(st, se(r, ct, ""))) && r) return !1;
594
- }
595
- return !0;
596
- }, yn = D({}, [
597
- "annotation-xml",
598
- "color-profile",
599
- "font-face",
600
- "font-face-format",
601
- "font-face-name",
602
- "font-face-src",
603
- "font-face-uri",
604
- "missing-glyph"
605
- ]), bn = function(e) {
606
- return !yn[ie(e)] && C(lt, e);
607
- }, xn = function(e, t, n, r) {
608
- if (N && typeof m == "object" && typeof m.getAttributeType == "function" && !n) switch (m.getAttributeType(e, t)) {
609
- case "TrustedHTML": return F(r);
610
- case "TrustedScriptURL": return Je(r);
611
- }
612
- return r;
613
- }, Sn = function(e, n, r, i) {
614
- try {
615
- r ? e.setAttributeNS(r, n, i) : e.setAttribute(n, i), dn(e) ? Z(e) : ne(t.removed);
616
- } catch {
617
- Q(n, e);
618
- }
619
- }, Cn = function(e) {
620
- $(I.beforeSanitizeAttributes, e, null);
621
- let t = e.attributes;
622
- if (!t || dn(e)) return;
623
- R = gn(I.uponSanitizeAttribute, R, ft, xt);
624
- let n = {
625
- attrName: "",
626
- attrValue: "",
627
- keepAttr: !0,
628
- allowedAttributes: R,
629
- forceKeepAttr: void 0
630
- }, r = t.length, i = Y(e.nodeName);
631
- for (; r--;) {
632
- let a = t[r], o = a.name, s = a.namespaceURI, c = a.value, l = Y(o), u = c, d = o === "value" ? u : le(u);
633
- if (n.attrName = l, n.attrValue = d, n.keepAttr = !0, n.forceKeepAttr = void 0, $(I.uponSanitizeAttribute, e, n), d = n.attrValue, Et && (l === "id" || l === "name") && ce(d, Dt) !== 0 && (Q(o, e), d = Dt + d), H && C(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, d)) {
634
- Q(o, e);
635
- continue;
636
- }
637
- if (l === "attributename" && oe(d, "href")) {
638
- Q(o, e);
639
- continue;
640
- }
641
- if (!n.forceKeepAttr) {
642
- if (!n.keepAttr) {
643
- Q(o, e);
644
- continue;
645
- }
646
- if (!vt && C(Re, d)) {
647
- Q(o, e);
648
- continue;
649
- }
650
- if (V && (d = ln(d)), !vn(i, l, d)) {
651
- Q(o, e);
652
- continue;
653
- }
654
- d = xn(i, l, s, d), d !== u && Sn(e, o, s, d);
655
- }
656
- }
657
- $(I.afterSanitizeAttributes, e, null);
658
- }, wn = function(e) {
659
- let t = null, n = cn(e);
660
- for ($(I.beforeSanitizeShadowDOM, e, null); t = n.nextNode();) if ($(I.uponSanitizeShadowNode, t, null), _n(t, e), Cn(t), fn(t.content) && wn(t.content), (E ? E(t) : t.nodeType) === j.element) {
661
- let e = S(t);
662
- fn(e) && (Tn(e), wn(e));
663
- }
664
- $(I.afterSanitizeShadowDOM, e, null);
665
- }, Tn = function(e) {
666
- let t = [{
667
- node: e,
668
- shadow: null
669
- }];
670
- for (; t.length > 0;) {
671
- let e = t.pop();
672
- if (e.shadow) {
673
- wn(e.shadow);
674
- continue;
675
- }
676
- let n = e.node, r = (E ? E(n) : n.nodeType) === j.element, i = y(n);
677
- if (i) for (let e = i.length - 1; e >= 0; --e) t.push({
678
- node: i[e],
679
- shadow: null
680
- });
681
- if (r) {
682
- let e = O ? O(n) : null;
683
- if (typeof e == "string" && Y(e) === "template") {
684
- let e = n.content;
685
- fn(e) && t.push({
686
- node: e,
687
- shadow: null
688
- });
689
- }
690
- }
691
- if (r) {
692
- let e = S(n);
693
- fn(e) && t.push({
694
- node: null,
695
- shadow: e
696
- }, {
697
- node: e,
698
- shadow: null
699
- });
700
- }
701
- }
702
- };
703
- return t.sanitize = function(e) {
704
- let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = null, a = null, o = null, s = null;
705
- if (Lt = !e, Lt && (e = "<!-->"), typeof e != "string" && !pn(e) && (e = fe(e), typeof e != "string")) throw w("dirty is not a string, aborting");
706
- if (!t.isSupported) return e;
707
- yt ? (L = bt, R = xt) : Yt(n), (I.uponSanitizeElement.length > 0 || I.uponSanitizeAttribute.length > 0) && (L = k(L)), I.uponSanitizeAttribute.length > 0 && (R = k(R)), t.removed = [];
708
- let c = kt && typeof e != "string" && pn(e);
709
- if (c) {
710
- on(e);
711
- let t = O ? O(e) : e.nodeName;
712
- if (typeof t == "string") {
713
- let n = Y(t);
714
- if (!L[n] || pt[n]) throw nn(e), w("root node is forbidden and cannot be sanitized in-place");
715
- }
716
- if (dn(e)) throw nn(e), w("root node is clobbered and cannot be sanitized in-place");
717
- try {
718
- Tn(e);
719
- } catch (t) {
720
- throw nn(e), t;
721
- }
722
- } else if (pn(e)) i = sn("<!---->"), a = i.ownerDocument.importNode(e, !0), a.nodeType === j.element && a.nodeName === "BODY" || a.nodeName === "HTML" ? i = a : i.appendChild(a), Tn(a);
723
- else {
724
- if (!W && !V && !U && e.indexOf("<") === -1) return N && wt ? F(e) : e;
725
- if (i = sn(e), !i) return W ? null : wt ? P : "";
726
- }
727
- i && St && Z(i.firstChild);
728
- let l = c ? e : i;
729
- try {
730
- let e = cn(l);
731
- for (; o = e.nextNode();) _n(o, l), Cn(o), fn(o.content) && wn(o.content);
732
- } catch (n) {
733
- throw c && (nn(e), g(t.removed, (e) => {
734
- e.element && an(e.element);
735
- })), n;
736
- }
737
- if (c) return g(t.removed, (e) => {
738
- e.element && an(e.element);
739
- }), V && un(e), e;
740
- if (W) {
741
- if (V && un(i), Ct) for (s = $e.call(i.ownerDocument); i.firstChild;) s.appendChild(i.firstChild);
742
- else s = i;
743
- return (R.shadowroot || R.shadowrootmode) && (s = tt.call(r, s, !0)), s;
744
- }
745
- let u = U ? i.outerHTML : i.innerHTML;
746
- return U && L["!doctype"] && i.ownerDocument && i.ownerDocument.doctype && i.ownerDocument.doctype.name && C(Ne, i.ownerDocument.doctype.name) && (u = "<!DOCTYPE " + i.ownerDocument.doctype.name + ">\n" + u), V && (u = ln(u)), N && wt ? F(u) : u;
747
- }, t.setConfig = function() {
748
- let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
749
- Yt(e), yt = !0, bt = L, xt = R;
750
- }, t.clearConfig = function() {
751
- X = null, yt = !1, bt = null, xt = null, N = We, P = "";
752
- }, t.isValidAttribute = function(e, t, n) {
753
- X || Yt({});
754
- let r = Y(e), i = Y(t);
755
- return vn(r, i, n);
756
- }, t.addHook = function(e, t) {
757
- typeof t == "function" && x(I, e) && _(I[e], t);
758
- }, t.removeHook = function(e, t) {
759
- if (x(I, e)) {
760
- if (t !== void 0) {
761
- let n = te(I[e], t);
762
- return n === -1 ? void 0 : re(I[e], n, 1)[0];
763
- }
764
- return ne(I[e]);
765
- }
766
- }, t.removeHooks = function(e) {
767
- x(I, e) && (I[e] = []);
768
- }, t.removeAllHooks = function() {
769
- I = Ve();
770
- }, t;
771
- }
772
- var Ue = He();
773
- //#endregion
774
- export { Ue as t };