@pie-qti/player-elements 0.1.19 → 0.1.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +122 -127
- package/dist/{define-B9h1kNmq.js → define-XpbOHJoz.js} +4168 -3088
- package/dist/define-XpbOHJoz.js.map +1 -0
- package/dist/{dist-CHcxiby5.js → dist-4hIHy9-L.js} +2 -2
- package/dist/{dist-CHcxiby5.js.map → dist-4hIHy9-L.js.map} +1 -1
- package/dist/{dist-DjmdIRjq.js → dist-Nkkk25AH.js} +267 -233
- package/dist/dist-Nkkk25AH.js.map +1 -0
- package/dist/{element-CSO0tq-A.js → element-DNnKo2Uk.js} +2 -2
- package/dist/{element-CSO0tq-A.js.map → element-DNnKo2Uk.js.map} +1 -1
- package/dist/{element-class-BEpwHdcP-BHKRGZoi.js → element-class-iN9MRyjF-D6u8ACFm.js} +12407 -11607
- package/dist/element-class-iN9MRyjF-D6u8ACFm.js.map +1 -0
- package/dist/elements.js +3 -3
- package/dist/index.js +3 -3
- package/dist/{item-toolbar-element-CjJkgFQ3.js → item-toolbar-element-3k36WOlC.js} +2 -2
- package/dist/{item-toolbar-element-CjJkgFQ3.js.map → item-toolbar-element-3k36WOlC.js.map} +1 -1
- package/dist/{pie-assessment-toolkit-element-DMRNOwrK.js → pie-assessment-toolkit-element-CP-OMtE6.js} +2 -2
- package/dist/{pie-assessment-toolkit-element-DMRNOwrK.js.map → pie-assessment-toolkit-element-CP-OMtE6.js.map} +1 -1
- package/dist/{pie-tool-calculator-DBfkllu3.js → pie-tool-calculator-VzYEjxiY.js} +2 -2
- package/dist/{pie-tool-calculator-DBfkllu3.js.map → pie-tool-calculator-VzYEjxiY.js.map} +1 -1
- package/dist/public/api.d.ts +25 -11
- package/dist/public/elements.d.ts +1 -1
- package/dist/public/index.d.ts +1 -1
- package/dist/register-players.js +1 -1
- package/dist/register.js +45858 -44817
- package/dist/register.js.map +1 -1
- package/dist/resolveItems-hMDtJOXa.js +7627 -0
- package/dist/resolveItems-hMDtJOXa.js.map +1 -0
- package/dist/{sre-Dz5gsR-A.js → sre-CFPLI6BY.js} +1569 -1561
- package/dist/sre-CFPLI6BY.js.map +1 -0
- package/dist/{tool-tts-inline-BNjR51Di.js → tool-tts-inline-B-xT_sdY.js} +2 -2
- package/dist/{tool-tts-inline-BNjR51Di.js.map → tool-tts-inline-B-xT_sdY.js.map} +1 -1
- package/package.json +11 -9
- package/dist/define-B9h1kNmq.js.map +0 -1
- package/dist/dist-DjmdIRjq.js.map +0 -1
- package/dist/element-class-BEpwHdcP-BHKRGZoi.js.map +0 -1
- package/dist/resolveItems-CLMM7L3B.js +0 -7045
- package/dist/resolveItems-CLMM7L3B.js.map +0 -1
- package/dist/sre-Dz5gsR-A.js.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./tag-names-ClLtKtXt.js";
|
|
2
|
-
//#region ../../node_modules/.bun/dompurify@3.4.
|
|
2
|
+
//#region ../../node_modules/.bun/dompurify@3.4.13/node_modules/dompurify/dist/purify.es.mjs
|
|
3
3
|
function e(e, t) {
|
|
4
4
|
(t == null || t > e.length) && (t = e.length);
|
|
5
5
|
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
|
|
@@ -197,7 +197,7 @@ var _e = d(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
|
|
|
197
197
|
"annotation-xml",
|
|
198
198
|
"mprescripts",
|
|
199
199
|
"none"
|
|
200
|
-
]), Ce = d(["#text"]), we = 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(".")), Te = 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.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-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(".")), Ee = 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(".")), De = d([
|
|
200
|
+
]), Ce = d(["#text"]), we = 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(".")), Te = 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(".")), Ee = 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(".")), De = d([
|
|
201
201
|
"xlink:href",
|
|
202
202
|
"xml:id",
|
|
203
203
|
"xlink:title",
|
|
@@ -252,48 +252,48 @@ var _e = d(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
|
|
|
252
252
|
};
|
|
253
253
|
function Ge() {
|
|
254
254
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : He(), t = (e) => Ge(e);
|
|
255
|
-
if (t.version = "3.4.
|
|
255
|
+
if (t.version = "3.4.13", t.removed = [], !e || !e.document || e.document.nodeType !== O.document || !e.Element) return t.isSupported = !1, t;
|
|
256
256
|
let n = e.document, r = n, i = r.currentScript;
|
|
257
257
|
e.DocumentFragment;
|
|
258
258
|
let a = e.HTMLTemplateElement, s = e.Node, c = e.Element, l = e.NodeFilter;
|
|
259
259
|
e.NamedNodeMap === void 0 && (e.NamedNodeMap || e.MozNamedAttrMap), e.HTMLFormElement;
|
|
260
|
-
let u = e.DOMParser, ee = e.trustedTypes, m = c.prototype, te = D(m, "cloneNode"), pe = D(m, "remove"), me = D(m, "nextSibling"), g = D(m, "childNodes"), _ = D(m, "parentNode"), y = D(m, "shadowRoot"), S = D(m, "attributes"), C = s && s.prototype ? D(s.prototype, "nodeType") : null, T = s && s.prototype ? D(s.prototype, "nodeName") : null;
|
|
260
|
+
let u = e.DOMParser, ee = e.trustedTypes, m = c.prototype, te = D(m, "cloneNode"), pe = D(m, "remove"), me = D(m, "nextSibling"), g = D(m, "childNodes"), _ = D(m, "parentNode"), y = D(m, "shadowRoot"), S = D(m, "attributes"), C = s && s.prototype ? D(s.prototype, "nodeType") : null, T = s && s.prototype ? D(s.prototype, "nodeName") : null, A = s && s.prototype ? D(s.prototype, "ownerDocument") : null;
|
|
261
261
|
if (typeof a == "function") {
|
|
262
262
|
let e = n.createElement("template");
|
|
263
263
|
e.content && e.content.ownerDocument && (n = e.content.ownerDocument);
|
|
264
264
|
}
|
|
265
|
-
let
|
|
266
|
-
if (
|
|
267
|
-
},
|
|
268
|
-
|
|
265
|
+
let j, M = "", Ke, qe = !1, N = 0, Je = function() {
|
|
266
|
+
if (N > 0) throw x("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.");
|
|
267
|
+
}, P = function(e) {
|
|
268
|
+
Je(), N++;
|
|
269
269
|
try {
|
|
270
|
-
return
|
|
270
|
+
return j.createHTML(e);
|
|
271
271
|
} finally {
|
|
272
|
-
|
|
272
|
+
N--;
|
|
273
273
|
}
|
|
274
274
|
}, Ye = function(e) {
|
|
275
|
-
|
|
275
|
+
Je(), N++;
|
|
276
276
|
try {
|
|
277
|
-
return
|
|
277
|
+
return j.createScriptURL(e);
|
|
278
278
|
} finally {
|
|
279
|
-
|
|
279
|
+
N--;
|
|
280
280
|
}
|
|
281
281
|
}, Xe = function() {
|
|
282
282
|
return qe ||= (Ke = Ue(ee, i), !0), Ke;
|
|
283
|
-
}, Ze = n, Qe = Ze.implementation, $e = Ze.createNodeIterator, et = Ze.createDocumentFragment, tt = Ze.getElementsByTagName, nt = r.importNode,
|
|
283
|
+
}, Ze = n, Qe = Ze.implementation, $e = Ze.createNodeIterator, et = Ze.createDocumentFragment, tt = Ze.getElementsByTagName, nt = r.importNode, F = We();
|
|
284
284
|
t.isSupported = typeof o == "function" && typeof _ == "function" && Qe && Qe.createHTMLDocument !== void 0;
|
|
285
|
-
let rt = Oe, it = ke, at = Ae,
|
|
285
|
+
let rt = Oe, it = ke, at = Ae, I = je, L = Me, ot = Pe, st = Fe, ct = Le, lt = Ne, R = null, ut = w({}, [
|
|
286
286
|
..._e,
|
|
287
287
|
...ve,
|
|
288
288
|
...ye,
|
|
289
289
|
...xe,
|
|
290
290
|
...Ce
|
|
291
|
-
]),
|
|
291
|
+
]), z = null, dt = w({}, [
|
|
292
292
|
...we,
|
|
293
293
|
...Te,
|
|
294
294
|
...Ee,
|
|
295
295
|
...De
|
|
296
|
-
]),
|
|
296
|
+
]), B = Object.seal(p(null, {
|
|
297
297
|
tagNameCheck: {
|
|
298
298
|
writable: !0,
|
|
299
299
|
configurable: !1,
|
|
@@ -312,7 +312,7 @@ function Ge() {
|
|
|
312
312
|
enumerable: !0,
|
|
313
313
|
value: !1
|
|
314
314
|
}
|
|
315
|
-
})),
|
|
315
|
+
})), V = null, ft = null, H = Object.seal(p(null, {
|
|
316
316
|
tagCheck: {
|
|
317
317
|
writable: !0,
|
|
318
318
|
configurable: !1,
|
|
@@ -325,7 +325,7 @@ function Ge() {
|
|
|
325
325
|
enumerable: !0,
|
|
326
326
|
value: null
|
|
327
327
|
}
|
|
328
|
-
})), pt = !0, mt = !0, ht = !1, gt = !0,
|
|
328
|
+
})), pt = !0, mt = !0, ht = !1, gt = !0, U = !1, W = !0, G = !1, _t = !1, vt = null, K = null, yt = !1, q = !1, bt = !1, xt = !1, St = !0, Ct = !1, wt = "user-content-", Tt = !0, Et = !1, Dt = {}, J = null, Ot = w({}, /* @__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(".")), kt = null, At = w({}, [
|
|
329
329
|
"audio",
|
|
330
330
|
"video",
|
|
331
331
|
"img",
|
|
@@ -347,10 +347,10 @@ function Ge() {
|
|
|
347
347
|
"value",
|
|
348
348
|
"style",
|
|
349
349
|
"xmlns"
|
|
350
|
-
]), Nt = "http://www.w3.org/1998/Math/MathML", Pt = "http://www.w3.org/2000/svg",
|
|
350
|
+
]), Nt = "http://www.w3.org/1998/Math/MathML", Pt = "http://www.w3.org/2000/svg", Y = "http://www.w3.org/1999/xhtml", Ft = Y, It = !1, Lt = null, Rt = w({}, [
|
|
351
351
|
Nt,
|
|
352
352
|
Pt,
|
|
353
|
-
|
|
353
|
+
Y
|
|
354
354
|
], ce), zt = d([
|
|
355
355
|
"mi",
|
|
356
356
|
"mo",
|
|
@@ -363,43 +363,43 @@ function Ge() {
|
|
|
363
363
|
"font",
|
|
364
364
|
"a",
|
|
365
365
|
"script"
|
|
366
|
-
]), Wt = null, Gt = ["application/xhtml+xml", "text/html"],
|
|
366
|
+
]), Wt = null, Gt = ["application/xhtml+xml", "text/html"], X = null, Kt = null, qt = n.createElement("form"), Jt = function(e) {
|
|
367
367
|
return e instanceof RegExp || e instanceof Function;
|
|
368
368
|
}, Yt = function() {
|
|
369
369
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
370
370
|
if (Kt && Kt === e) return;
|
|
371
|
-
(!e || typeof e != "object") && (e = {}), e = E(e), Wt = Gt.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? "text/html" : e.PARSER_MEDIA_TYPE,
|
|
372
|
-
transform:
|
|
371
|
+
(!e || typeof e != "object") && (e = {}), e = E(e), Wt = Gt.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? "text/html" : e.PARSER_MEDIA_TYPE, X = Wt === "application/xhtml+xml" ? ce : se, R = k(e, "ALLOWED_TAGS", ut, { transform: X }), z = k(e, "ALLOWED_ATTR", dt, { transform: X }), Lt = k(e, "ALLOWED_NAMESPACES", Rt, { transform: ce }), jt = k(e, "ADD_URI_SAFE_ATTR", Mt, {
|
|
372
|
+
transform: X,
|
|
373
373
|
base: Mt
|
|
374
374
|
}), kt = k(e, "ADD_DATA_URI_TAGS", At, {
|
|
375
|
-
transform:
|
|
375
|
+
transform: X,
|
|
376
376
|
base: At
|
|
377
|
-
}),
|
|
377
|
+
}), J = k(e, "FORBID_CONTENTS", Ot, { transform: X }), V = k(e, "FORBID_TAGS", E({}), { transform: X }), ft = k(e, "FORBID_ATTR", E({}), { transform: X }), Dt = v(e, "USE_PROFILES") ? e.USE_PROFILES && typeof e.USE_PROFILES == "object" ? E(e.USE_PROFILES) : e.USE_PROFILES : !1, pt = e.ALLOW_ARIA_ATTR !== !1, mt = e.ALLOW_DATA_ATTR !== !1, ht = e.ALLOW_UNKNOWN_PROTOCOLS || !1, gt = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, U = e.SAFE_FOR_TEMPLATES || !1, W = e.SAFE_FOR_XML !== !1, G = e.WHOLE_DOCUMENT || !1, q = e.RETURN_DOM || !1, bt = e.RETURN_DOM_FRAGMENT || !1, xt = e.RETURN_TRUSTED_TYPE || !1, yt = e.FORCE_BODY || !1, St = e.SANITIZE_DOM !== !1, Ct = e.SANITIZE_NAMED_PROPS || !1, Tt = e.KEEP_CONTENT !== !1, Et = e.IN_PLACE || !1, lt = ge(e.ALLOWED_URI_REGEXP) ? e.ALLOWED_URI_REGEXP : Ne, Ft = typeof e.NAMESPACE == "string" ? e.NAMESPACE : Y, Bt = v(e, "MATHML_TEXT_INTEGRATION_POINTS") && e.MATHML_TEXT_INTEGRATION_POINTS && typeof e.MATHML_TEXT_INTEGRATION_POINTS == "object" ? E(e.MATHML_TEXT_INTEGRATION_POINTS) : w({}, zt), Ht = v(e, "HTML_INTEGRATION_POINTS") && e.HTML_INTEGRATION_POINTS && typeof e.HTML_INTEGRATION_POINTS == "object" ? E(e.HTML_INTEGRATION_POINTS) : w({}, Vt);
|
|
378
378
|
let t = v(e, "CUSTOM_ELEMENT_HANDLING") && e.CUSTOM_ELEMENT_HANDLING && typeof e.CUSTOM_ELEMENT_HANDLING == "object" ? E(e.CUSTOM_ELEMENT_HANDLING) : p(null);
|
|
379
|
-
if (
|
|
379
|
+
if (B = p(null), v(t, "tagNameCheck") && Jt(t.tagNameCheck) && (B.tagNameCheck = t.tagNameCheck), v(t, "attributeNameCheck") && Jt(t.attributeNameCheck) && (B.attributeNameCheck = t.attributeNameCheck), v(t, "allowCustomizedBuiltInElements") && typeof t.allowCustomizedBuiltInElements == "boolean" && (B.allowCustomizedBuiltInElements = t.allowCustomizedBuiltInElements), f(B), U && (mt = !1), bt && (q = !0), Dt && (R = w({}, Ce), z = p(null), Dt.html === !0 && (w(R, _e), w(z, we)), Dt.svg === !0 && (w(R, ve), w(z, Te), w(z, De)), Dt.svgFilters === !0 && (w(R, ye), w(z, Te), w(z, De)), Dt.mathMl === !0 && (w(R, xe), w(z, Ee), w(z, De))), H.tagCheck = null, H.attributeCheck = null, v(e, "ADD_TAGS") && (typeof e.ADD_TAGS == "function" ? H.tagCheck = e.ADD_TAGS : h(e.ADD_TAGS) && (R === ut && (R = E(R)), w(R, e.ADD_TAGS, X))), v(e, "ADD_ATTR") && (typeof e.ADD_ATTR == "function" ? H.attributeCheck = e.ADD_ATTR : h(e.ADD_ATTR) && (z === dt && (z = E(z)), w(z, e.ADD_ATTR, X))), v(e, "ADD_URI_SAFE_ATTR") && h(e.ADD_URI_SAFE_ATTR) && w(jt, e.ADD_URI_SAFE_ATTR, X), v(e, "FORBID_CONTENTS") && h(e.FORBID_CONTENTS) && (J === Ot && (J = E(J)), w(J, e.FORBID_CONTENTS, X)), v(e, "ADD_FORBID_CONTENTS") && h(e.ADD_FORBID_CONTENTS) && (J === Ot && (J = E(J)), w(J, e.ADD_FORBID_CONTENTS, X)), Tt && (R["#text"] = !0), G && w(R, [
|
|
380
380
|
"html",
|
|
381
381
|
"head",
|
|
382
382
|
"body"
|
|
383
|
-
]),
|
|
383
|
+
]), R.table && (w(R, ["tbody"]), delete V.tbody), e.TRUSTED_TYPES_POLICY) {
|
|
384
384
|
if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function") throw x("TRUSTED_TYPES_POLICY configuration option must provide a \"createHTML\" hook.");
|
|
385
385
|
if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function") throw x("TRUSTED_TYPES_POLICY configuration option must provide a \"createScriptURL\" hook.");
|
|
386
|
-
let t =
|
|
387
|
-
|
|
386
|
+
let t = j;
|
|
387
|
+
j = e.TRUSTED_TYPES_POLICY;
|
|
388
388
|
try {
|
|
389
|
-
|
|
389
|
+
M = P("");
|
|
390
390
|
} catch (e) {
|
|
391
|
-
throw
|
|
391
|
+
throw j = t, e;
|
|
392
392
|
}
|
|
393
|
-
} else e.TRUSTED_TYPES_POLICY === null ? (
|
|
393
|
+
} else e.TRUSTED_TYPES_POLICY === null ? (j = void 0, M = "") : (j === void 0 && (j = Xe()), j && typeof M == "string" && (M = P("")));
|
|
394
394
|
d && d(e), Kt = e;
|
|
395
395
|
}, Xt = w({}, [
|
|
396
396
|
...ve,
|
|
397
397
|
...ye,
|
|
398
398
|
...be
|
|
399
399
|
]), Zt = w({}, [...xe, ...Se]), Qt = function(e, t, n) {
|
|
400
|
-
return t.namespaceURI ===
|
|
400
|
+
return t.namespaceURI === Y ? e === "svg" : t.namespaceURI === Nt ? e === "svg" && (n === "annotation-xml" || Bt[n]) : !!Xt[e];
|
|
401
401
|
}, $t = function(e, t, n) {
|
|
402
|
-
return t.namespaceURI ===
|
|
402
|
+
return t.namespaceURI === Y ? e === "math" : t.namespaceURI === Pt ? e === "math" && Ht[n] : !!Zt[e];
|
|
403
403
|
}, en = function(e, t, n) {
|
|
404
404
|
return t.namespaceURI === Pt && !Ht[n] || t.namespaceURI === Nt && !Bt[n] ? !1 : !Zt[e] && (Ut[e] || !Xt[e]);
|
|
405
405
|
}, tn = function(e) {
|
|
@@ -409,8 +409,8 @@ function Ge() {
|
|
|
409
409
|
tagName: "template"
|
|
410
410
|
});
|
|
411
411
|
let n = se(e.tagName), r = se(t.tagName);
|
|
412
|
-
return Lt[e.namespaceURI] ? e.namespaceURI === Pt ? Qt(n, t, r) : e.namespaceURI === Nt ? $t(n, t, r) : e.namespaceURI ===
|
|
413
|
-
},
|
|
412
|
+
return Lt[e.namespaceURI] ? e.namespaceURI === Pt ? Qt(n, t, r) : e.namespaceURI === Nt ? $t(n, t, r) : e.namespaceURI === Y ? en(n, t, r) : !!(Wt === "application/xhtml+xml" && Lt[e.namespaceURI]) : !1;
|
|
413
|
+
}, Z = function(e) {
|
|
414
414
|
ae(t.removed, { element: e });
|
|
415
415
|
try {
|
|
416
416
|
_(e).removeChild(e);
|
|
@@ -418,6 +418,7 @@ function Ge() {
|
|
|
418
418
|
if (pe(e), !_(e)) throw x("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place");
|
|
419
419
|
}
|
|
420
420
|
}, nn = function(e) {
|
|
421
|
+
an(e);
|
|
421
422
|
let t = g(e);
|
|
422
423
|
if (t) {
|
|
423
424
|
let e = [];
|
|
@@ -436,7 +437,7 @@ function Ge() {
|
|
|
436
437
|
e.removeAttribute(i);
|
|
437
438
|
} catch {}
|
|
438
439
|
}
|
|
439
|
-
},
|
|
440
|
+
}, Q = function(e, n) {
|
|
440
441
|
try {
|
|
441
442
|
ae(t.removed, {
|
|
442
443
|
attribute: n.getAttributeNode(e),
|
|
@@ -448,8 +449,8 @@ function Ge() {
|
|
|
448
449
|
from: n
|
|
449
450
|
});
|
|
450
451
|
}
|
|
451
|
-
if (n.removeAttribute(e), e === "is") if (
|
|
452
|
-
|
|
452
|
+
if (n.removeAttribute(e), e === "is") if (q || bt) try {
|
|
453
|
+
Z(n);
|
|
453
454
|
} catch {}
|
|
454
455
|
else try {
|
|
455
456
|
n.setAttribute(e, "");
|
|
@@ -458,7 +459,7 @@ function Ge() {
|
|
|
458
459
|
let t = S(e);
|
|
459
460
|
if (t) for (let n = t.length - 1; n >= 0; --n) {
|
|
460
461
|
let r = t[n], i = r && r.name;
|
|
461
|
-
if (!(typeof i != "string" ||
|
|
462
|
+
if (!(typeof i != "string" || z[X(i)])) try {
|
|
462
463
|
e.removeAttribute(i);
|
|
463
464
|
} catch {}
|
|
464
465
|
}
|
|
@@ -471,48 +472,69 @@ function Ge() {
|
|
|
471
472
|
if (n) for (let e = n.length - 1; e >= 0; --e) t.push(n[e]);
|
|
472
473
|
}
|
|
473
474
|
}, on = function(e) {
|
|
475
|
+
if (!W) return;
|
|
476
|
+
let t = [e];
|
|
477
|
+
for (; t.length > 0;) {
|
|
478
|
+
let e = t.pop(), n = C ? C(e) : e.nodeType;
|
|
479
|
+
if (n === O.processingInstruction || n === O.comment && b(ze, e.data)) {
|
|
480
|
+
try {
|
|
481
|
+
pe(e);
|
|
482
|
+
} catch {}
|
|
483
|
+
continue;
|
|
484
|
+
}
|
|
485
|
+
if (n === O.element) {
|
|
486
|
+
let t = e, n = X(T ? T(e) : e.nodeName);
|
|
487
|
+
try {
|
|
488
|
+
t.hasAttribute && t.hasAttribute("patchsrc") && t.removeAttribute("patchsrc"), t.hasAttribute && t.hasAttribute("for") && n !== "label" && n !== "output" && t.removeAttribute("for");
|
|
489
|
+
} catch {}
|
|
490
|
+
}
|
|
491
|
+
let r = g(e);
|
|
492
|
+
if (r) for (let e = r.length - 1; e >= 0; --e) t.push(r[e]);
|
|
493
|
+
}
|
|
494
|
+
}, sn = function(e) {
|
|
474
495
|
let t = null, r = null;
|
|
475
|
-
if (
|
|
496
|
+
if (yt) e = "<remove></remove>" + e;
|
|
476
497
|
else {
|
|
477
498
|
let t = le(e, /^[\r\n\t ]+/);
|
|
478
499
|
r = t && t[0];
|
|
479
500
|
}
|
|
480
|
-
Wt === "application/xhtml+xml" && Ft ===
|
|
481
|
-
let i =
|
|
482
|
-
if (Ft ===
|
|
501
|
+
Wt === "application/xhtml+xml" && Ft === Y && (e = "<html xmlns=\"http://www.w3.org/1999/xhtml\"><head></head><body>" + e + "</body></html>");
|
|
502
|
+
let i = j ? P(e) : e;
|
|
503
|
+
if (Ft === Y) try {
|
|
483
504
|
t = new u().parseFromString(i, Wt);
|
|
484
505
|
} catch {}
|
|
485
506
|
if (!t || !t.documentElement) {
|
|
486
507
|
t = Qe.createDocument(Ft, "template", null);
|
|
487
508
|
try {
|
|
488
|
-
t.documentElement.innerHTML = It ?
|
|
509
|
+
t.documentElement.innerHTML = It ? M : i;
|
|
489
510
|
} catch {}
|
|
490
511
|
}
|
|
491
512
|
let a = t.body || t.documentElement;
|
|
492
|
-
return e && r && a.insertBefore(n.createTextNode(r), a.childNodes[0] || null), Ft ===
|
|
493
|
-
}, sn = function(e) {
|
|
494
|
-
return $e.call(e.ownerDocument || e, e, l.SHOW_ELEMENT | l.SHOW_COMMENT | l.SHOW_TEXT | l.SHOW_PROCESSING_INSTRUCTION | l.SHOW_CDATA_SECTION, null);
|
|
513
|
+
return e && r && a.insertBefore(n.createTextNode(r), a.childNodes[0] || null), Ft === Y ? tt.call(t, G ? "html" : "body")[0] : G ? t.documentElement : a;
|
|
495
514
|
}, cn = function(e) {
|
|
496
|
-
|
|
515
|
+
let t = A ? A(e) : e.ownerDocument;
|
|
516
|
+
return $e.call(t || e, e, l.SHOW_ELEMENT | l.SHOW_COMMENT | l.SHOW_TEXT | l.SHOW_PROCESSING_INSTRUCTION | l.SHOW_CDATA_SECTION, null);
|
|
497
517
|
}, ln = function(e) {
|
|
518
|
+
return e = ue(e, rt, " "), e = ue(e, it, " "), e = ue(e, at, " "), e;
|
|
519
|
+
}, un = function(e) {
|
|
498
520
|
e.normalize();
|
|
499
|
-
let t = $e.call(
|
|
500
|
-
for (;
|
|
501
|
-
let
|
|
502
|
-
|
|
503
|
-
|
|
521
|
+
let t = A ? A(e) : e.ownerDocument, n = $e.call(t || e, e, l.SHOW_TEXT | l.SHOW_COMMENT | l.SHOW_CDATA_SECTION | l.SHOW_PROCESSING_INSTRUCTION, null), r = n.nextNode();
|
|
522
|
+
for (; r;) r.data = ln(r.data), r = n.nextNode();
|
|
523
|
+
let i = e.querySelectorAll?.call(e, "template");
|
|
524
|
+
i && ne(i, (e) => {
|
|
525
|
+
fn(e.content) && un(e.content);
|
|
504
526
|
});
|
|
505
|
-
},
|
|
527
|
+
}, dn = function(e) {
|
|
506
528
|
let t = T ? T(e) : null;
|
|
507
|
-
return typeof t != "string" ||
|
|
508
|
-
},
|
|
529
|
+
return typeof t != "string" || X(t) !== "form" ? !1 : typeof e.nodeName != "string" || typeof e.textContent != "string" || typeof e.removeChild != "function" || e.attributes !== S(e) || typeof e.removeAttribute != "function" || typeof e.setAttribute != "function" || typeof e.namespaceURI != "string" || typeof e.insertBefore != "function" || typeof e.hasChildNodes != "function" || e.nodeType !== C(e) || e.childNodes !== g(e);
|
|
530
|
+
}, fn = function(e) {
|
|
509
531
|
if (!C || typeof e != "object" || !e) return !1;
|
|
510
532
|
try {
|
|
511
533
|
return C(e) === O.documentFragment;
|
|
512
534
|
} catch {
|
|
513
535
|
return !1;
|
|
514
536
|
}
|
|
515
|
-
},
|
|
537
|
+
}, pn = function(e) {
|
|
516
538
|
if (!C || typeof e != "object" || !e) return !1;
|
|
517
539
|
try {
|
|
518
540
|
return typeof C(e) == "number";
|
|
@@ -525,45 +547,52 @@ function Ge() {
|
|
|
525
547
|
e.call(t, n, r, Kt);
|
|
526
548
|
});
|
|
527
549
|
}
|
|
528
|
-
let
|
|
529
|
-
return !!(
|
|
530
|
-
},
|
|
531
|
-
if (!
|
|
532
|
-
if (Tt && !
|
|
533
|
-
let t = _(e),
|
|
534
|
-
if (
|
|
535
|
-
let
|
|
536
|
-
for (let
|
|
537
|
-
let
|
|
538
|
-
t.insertBefore(
|
|
550
|
+
let mn = function(e, t) {
|
|
551
|
+
return !!(W && e.hasChildNodes() && !pn(e.firstElementChild) && b(Re, e.textContent) && b(Re, e.innerHTML) || W && e.namespaceURI === Y && t === "style" && pn(e.firstElementChild) || e.nodeType === O.processingInstruction || W && e.nodeType === O.comment && b(ze, e.data));
|
|
552
|
+
}, hn = function(e, t, n) {
|
|
553
|
+
if (!V[t] && bn(t) && (B.tagNameCheck instanceof RegExp && b(B.tagNameCheck, t) || B.tagNameCheck instanceof Function && B.tagNameCheck(t))) return !1;
|
|
554
|
+
if (Tt && !J[t]) {
|
|
555
|
+
let t = _(e), r = g(e);
|
|
556
|
+
if (r && t) {
|
|
557
|
+
let i = r.length;
|
|
558
|
+
for (let a = i - 1; a >= 0; --a) {
|
|
559
|
+
let i = e === n ? te(r[a], !0) : r[a];
|
|
560
|
+
t.insertBefore(i, me(e));
|
|
539
561
|
}
|
|
540
562
|
}
|
|
541
563
|
}
|
|
542
|
-
return
|
|
543
|
-
},
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
if ($(
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
564
|
+
return Z(e), !0;
|
|
565
|
+
}, gn = function(e, t, n, r) {
|
|
566
|
+
return e.length === 0 ? t : t === n || t === r ? E(t) : t;
|
|
567
|
+
}, _n = function(e, n) {
|
|
568
|
+
if ($(F.beforeSanitizeElements, e, null), e !== n && _(e) === null) return Et && an(e), !0;
|
|
569
|
+
if (dn(e)) return Z(e), !0;
|
|
570
|
+
let r = X(T ? T(e) : e.nodeName);
|
|
571
|
+
if (R = gn(F.uponSanitizeElement, R, ut, vt), $(F.uponSanitizeElement, e, {
|
|
572
|
+
tagName: r,
|
|
573
|
+
allowedTags: R
|
|
574
|
+
}), e !== n && _(e) === null) return Et && an(e), !0;
|
|
575
|
+
if (mn(e, r)) return Z(e), !0;
|
|
576
|
+
if (V[r] || !(H.tagCheck instanceof Function && H.tagCheck(r)) && !R[r]) {
|
|
577
|
+
let t = hn(e, r, n);
|
|
578
|
+
return t === !1 && $(F.afterSanitizeElements, e, null), t;
|
|
579
|
+
}
|
|
580
|
+
if ((C ? C(e) : e.nodeType) === O.element && !tn(e) || (r === "noscript" || r === "noembed" || r === "noframes") && b(Be, e.innerHTML)) return Z(e), !0;
|
|
581
|
+
if (U && e.nodeType === O.text) {
|
|
582
|
+
let n = ln(e.textContent);
|
|
554
583
|
e.textContent !== n && (ae(t.removed, { element: e.cloneNode() }), e.textContent = n);
|
|
555
584
|
}
|
|
556
|
-
return $(
|
|
557
|
-
},
|
|
558
|
-
if (ft[t] || St && (t === "id" || t === "name") && (r in n || r in qt)) return !1;
|
|
559
|
-
let i =
|
|
560
|
-
if (!(mt && b(
|
|
585
|
+
return $(F.afterSanitizeElements, e, null), !1;
|
|
586
|
+
}, vn = function(e, t, r) {
|
|
587
|
+
if (ft[t] || W && t === "patchsrc" || W && t === "for" && e !== "label" && e !== "output" || St && (t === "id" || t === "name") && (r in n || r in qt)) return !1;
|
|
588
|
+
let i = z[t] || H.attributeCheck instanceof Function && H.attributeCheck(t, e);
|
|
589
|
+
if (!(mt && b(I, t)) && !(pt && b(L, t))) {
|
|
561
590
|
if (!i) {
|
|
562
|
-
if (!(
|
|
563
|
-
} else if (!jt[t] && !b(lt, ue(r, st, "")) && !((t === "src" || t === "xlink:href" || t === "href") && e !== "script" && de(r, "data:") === 0 && kt[e]) && !(ht && !b(
|
|
591
|
+
if (!(bn(e) && (B.tagNameCheck instanceof RegExp && b(B.tagNameCheck, e) || B.tagNameCheck instanceof Function && B.tagNameCheck(e)) && (B.attributeNameCheck instanceof RegExp && b(B.attributeNameCheck, t) || B.attributeNameCheck instanceof Function && B.attributeNameCheck(t, e)) || t === "is" && B.allowCustomizedBuiltInElements && (B.tagNameCheck instanceof RegExp && b(B.tagNameCheck, r) || B.tagNameCheck instanceof Function && B.tagNameCheck(r)))) return !1;
|
|
592
|
+
} else if (!jt[t] && !b(lt, ue(r, st, "")) && !((t === "src" || t === "xlink:href" || t === "href") && e !== "script" && de(r, "data:") === 0 && kt[e]) && !(ht && !b(ot, ue(r, st, ""))) && r) return !1;
|
|
564
593
|
}
|
|
565
594
|
return !0;
|
|
566
|
-
},
|
|
595
|
+
}, yn = w({}, [
|
|
567
596
|
"annotation-xml",
|
|
568
597
|
"color-profile",
|
|
569
598
|
"font-face",
|
|
@@ -572,66 +601,67 @@ function Ge() {
|
|
|
572
601
|
"font-face-src",
|
|
573
602
|
"font-face-uri",
|
|
574
603
|
"missing-glyph"
|
|
575
|
-
]),
|
|
576
|
-
return !
|
|
577
|
-
},
|
|
578
|
-
if (
|
|
579
|
-
case "TrustedHTML": return
|
|
604
|
+
]), bn = function(e) {
|
|
605
|
+
return !yn[se(e)] && b(ct, e);
|
|
606
|
+
}, xn = function(e, t, n, r) {
|
|
607
|
+
if (j && typeof ee == "object" && typeof ee.getAttributeType == "function" && !n) switch (ee.getAttributeType(e, t)) {
|
|
608
|
+
case "TrustedHTML": return P(r);
|
|
580
609
|
case "TrustedScriptURL": return Ye(r);
|
|
581
610
|
}
|
|
582
611
|
return r;
|
|
583
|
-
},
|
|
612
|
+
}, Sn = function(e, n, r, i) {
|
|
584
613
|
try {
|
|
585
|
-
r ? e.setAttributeNS(r, n, i) : e.setAttribute(n, i),
|
|
614
|
+
r ? e.setAttributeNS(r, n, i) : e.setAttribute(n, i), dn(e) ? Z(e) : ie(t.removed);
|
|
586
615
|
} catch {
|
|
587
|
-
|
|
616
|
+
Q(n, e);
|
|
588
617
|
}
|
|
589
|
-
},
|
|
590
|
-
$(
|
|
618
|
+
}, Cn = function(e) {
|
|
619
|
+
$(F.beforeSanitizeAttributes, e, null);
|
|
591
620
|
let t = e.attributes;
|
|
592
|
-
if (!t ||
|
|
621
|
+
if (!t || dn(e)) return;
|
|
622
|
+
z = gn(F.uponSanitizeAttribute, z, dt, K);
|
|
593
623
|
let n = {
|
|
594
624
|
attrName: "",
|
|
595
625
|
attrValue: "",
|
|
596
626
|
keepAttr: !0,
|
|
597
|
-
allowedAttributes:
|
|
627
|
+
allowedAttributes: z,
|
|
598
628
|
forceKeepAttr: void 0
|
|
599
|
-
}, r = t.length, i =
|
|
629
|
+
}, r = t.length, i = X(e.nodeName);
|
|
600
630
|
for (; r--;) {
|
|
601
|
-
let a = t[r], o = a.name, s = a.namespaceURI, c = a.value, l =
|
|
602
|
-
if (n.attrName = l, n.attrValue = d, n.keepAttr = !0, n.forceKeepAttr = void 0, $(
|
|
603
|
-
|
|
631
|
+
let a = t[r], o = a.name, s = a.namespaceURI, c = a.value, l = X(o), u = c, d = o === "value" ? u : fe(u);
|
|
632
|
+
if (n.attrName = l, n.attrValue = d, n.keepAttr = !0, n.forceKeepAttr = void 0, $(F.uponSanitizeAttribute, e, n), d = n.attrValue, Ct && (l === "id" || l === "name") && de(d, wt) !== 0 && (Q(o, e), d = wt + d), W && b(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, d)) {
|
|
633
|
+
Q(o, e);
|
|
604
634
|
continue;
|
|
605
635
|
}
|
|
606
636
|
if (l === "attributename" && le(d, "href")) {
|
|
607
|
-
|
|
637
|
+
Q(o, e);
|
|
608
638
|
continue;
|
|
609
639
|
}
|
|
610
640
|
if (!n.forceKeepAttr) {
|
|
611
641
|
if (!n.keepAttr) {
|
|
612
|
-
|
|
642
|
+
Q(o, e);
|
|
613
643
|
continue;
|
|
614
644
|
}
|
|
615
645
|
if (!gt && b(Ve, d)) {
|
|
616
|
-
|
|
646
|
+
Q(o, e);
|
|
617
647
|
continue;
|
|
618
648
|
}
|
|
619
|
-
if (
|
|
620
|
-
|
|
649
|
+
if (U && (d = ln(d)), !vn(i, l, d)) {
|
|
650
|
+
Q(o, e);
|
|
621
651
|
continue;
|
|
622
652
|
}
|
|
623
|
-
d =
|
|
653
|
+
d = xn(i, l, s, d), d !== u && Sn(e, o, s, d);
|
|
624
654
|
}
|
|
625
655
|
}
|
|
626
|
-
$(
|
|
627
|
-
},
|
|
628
|
-
let t = null, n =
|
|
629
|
-
for ($(
|
|
656
|
+
$(F.afterSanitizeAttributes, e, null);
|
|
657
|
+
}, wn = function(e) {
|
|
658
|
+
let t = null, n = cn(e);
|
|
659
|
+
for ($(F.beforeSanitizeShadowDOM, e, null); t = n.nextNode();) if ($(F.uponSanitizeShadowNode, t, null), _n(t, e), Cn(t), fn(t.content) && wn(t.content), (C ? C(t) : t.nodeType) === O.element) {
|
|
630
660
|
let e = y(t);
|
|
631
|
-
|
|
661
|
+
fn(e) && (Tn(e), wn(e));
|
|
632
662
|
}
|
|
633
|
-
$(
|
|
634
|
-
},
|
|
663
|
+
$(F.afterSanitizeShadowDOM, e, null);
|
|
664
|
+
}, Tn = function(e) {
|
|
635
665
|
let t = [{
|
|
636
666
|
node: e,
|
|
637
667
|
shadow: null
|
|
@@ -639,7 +669,7 @@ function Ge() {
|
|
|
639
669
|
for (; t.length > 0;) {
|
|
640
670
|
let e = t.pop();
|
|
641
671
|
if (e.shadow) {
|
|
642
|
-
|
|
672
|
+
wn(e.shadow);
|
|
643
673
|
continue;
|
|
644
674
|
}
|
|
645
675
|
let n = e.node, r = (C ? C(n) : n.nodeType) === O.element, i = g(n);
|
|
@@ -649,9 +679,9 @@ function Ge() {
|
|
|
649
679
|
});
|
|
650
680
|
if (r) {
|
|
651
681
|
let e = T ? T(n) : null;
|
|
652
|
-
if (typeof e == "string" &&
|
|
682
|
+
if (typeof e == "string" && X(e) === "template") {
|
|
653
683
|
let e = n.content;
|
|
654
|
-
|
|
684
|
+
fn(e) && t.push({
|
|
655
685
|
node: e,
|
|
656
686
|
shadow: null
|
|
657
687
|
});
|
|
@@ -659,7 +689,7 @@ function Ge() {
|
|
|
659
689
|
}
|
|
660
690
|
if (r) {
|
|
661
691
|
let e = y(n);
|
|
662
|
-
|
|
692
|
+
fn(e) && t.push({
|
|
663
693
|
node: null,
|
|
664
694
|
shadow: e
|
|
665
695
|
}, {
|
|
@@ -671,74 +701,78 @@ function Ge() {
|
|
|
671
701
|
};
|
|
672
702
|
return t.sanitize = function(e) {
|
|
673
703
|
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = null, a = null, o = null, s = null;
|
|
674
|
-
if (It = !e, It && (e = "<!-->"), typeof e != "string" && !
|
|
704
|
+
if (It = !e, It && (e = "<!-->"), typeof e != "string" && !pn(e) && (e = he(e), typeof e != "string")) throw x("dirty is not a string, aborting");
|
|
675
705
|
if (!t.isSupported) return e;
|
|
676
|
-
_t ? (
|
|
677
|
-
let c = Et && typeof e != "string" &&
|
|
706
|
+
_t ? (R = vt, z = K) : Yt(n), (F.uponSanitizeElement.length > 0 || F.uponSanitizeAttribute.length > 0) && (R = E(R)), F.uponSanitizeAttribute.length > 0 && (z = E(z)), t.removed = [];
|
|
707
|
+
let c = Et && typeof e != "string" && pn(e);
|
|
678
708
|
if (c) {
|
|
709
|
+
on(e);
|
|
679
710
|
let t = T ? T(e) : e.nodeName;
|
|
680
711
|
if (typeof t == "string") {
|
|
681
|
-
let
|
|
682
|
-
if (!
|
|
712
|
+
let n = X(t);
|
|
713
|
+
if (!R[n] || V[n]) throw nn(e), x("root node is forbidden and cannot be sanitized in-place");
|
|
683
714
|
}
|
|
684
|
-
if (
|
|
715
|
+
if (dn(e)) throw nn(e), x("root node is clobbered and cannot be sanitized in-place");
|
|
685
716
|
try {
|
|
686
|
-
|
|
717
|
+
Tn(e);
|
|
687
718
|
} catch (t) {
|
|
688
719
|
throw nn(e), t;
|
|
689
720
|
}
|
|
690
|
-
} else if (
|
|
721
|
+
} else if (pn(e)) i = sn("<!---->"), a = i.ownerDocument.importNode(e, !0), a.nodeType === O.element && a.nodeName === "BODY" || a.nodeName === "HTML" ? i = a : i.appendChild(a), Tn(a);
|
|
691
722
|
else {
|
|
692
|
-
if (!
|
|
693
|
-
if (i =
|
|
723
|
+
if (!q && !U && !G && e.indexOf("<") === -1) return j && xt ? P(e) : e;
|
|
724
|
+
if (i = sn(e), !i) return q ? null : xt ? M : "";
|
|
694
725
|
}
|
|
695
|
-
i &&
|
|
696
|
-
let l =
|
|
726
|
+
i && yt && Z(i.firstChild);
|
|
727
|
+
let l = c ? e : i;
|
|
697
728
|
try {
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
729
|
+
let e = cn(l);
|
|
730
|
+
for (; o = e.nextNode();) _n(o, l), Cn(o), fn(o.content) && wn(o.content);
|
|
731
|
+
} catch (n) {
|
|
732
|
+
throw c && (nn(e), ne(t.removed, (e) => {
|
|
733
|
+
e.element && an(e.element);
|
|
734
|
+
})), n;
|
|
701
735
|
}
|
|
702
736
|
if (c) return ne(t.removed, (e) => {
|
|
703
737
|
e.element && an(e.element);
|
|
704
|
-
}),
|
|
705
|
-
if (
|
|
706
|
-
if (
|
|
738
|
+
}), U && un(e), e;
|
|
739
|
+
if (q) {
|
|
740
|
+
if (U && un(i), bt) for (s = et.call(i.ownerDocument); i.firstChild;) s.appendChild(i.firstChild);
|
|
707
741
|
else s = i;
|
|
708
|
-
return (
|
|
742
|
+
return (z.shadowroot || z.shadowrootmode) && (s = nt.call(r, s, !0)), s;
|
|
709
743
|
}
|
|
710
|
-
let u =
|
|
711
|
-
return
|
|
744
|
+
let u = G ? i.outerHTML : i.innerHTML;
|
|
745
|
+
return G && R["!doctype"] && i.ownerDocument && i.ownerDocument.doctype && i.ownerDocument.doctype.name && b(Ie, i.ownerDocument.doctype.name) && (u = "<!DOCTYPE " + i.ownerDocument.doctype.name + ">\n" + u), U && (u = ln(u)), j && xt ? P(u) : u;
|
|
712
746
|
}, t.setConfig = function() {
|
|
713
|
-
Yt(arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}), _t = !0, vt =
|
|
747
|
+
Yt(arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}), _t = !0, vt = R, K = z;
|
|
714
748
|
}, t.clearConfig = function() {
|
|
715
|
-
Kt = null, _t = !1, vt = null,
|
|
749
|
+
Kt = null, _t = !1, vt = null, K = null, j = Ke, M = "";
|
|
716
750
|
}, t.isValidAttribute = function(e, t, n) {
|
|
717
|
-
return Kt || Yt({}),
|
|
751
|
+
return Kt || Yt({}), vn(X(e), X(t), n);
|
|
718
752
|
}, t.addHook = function(e, t) {
|
|
719
|
-
typeof t == "function" && v(
|
|
753
|
+
typeof t == "function" && v(F, e) && ae(F[e], t);
|
|
720
754
|
}, t.removeHook = function(e, t) {
|
|
721
|
-
if (v(
|
|
755
|
+
if (v(F, e)) {
|
|
722
756
|
if (t !== void 0) {
|
|
723
|
-
let n = re(
|
|
724
|
-
return n === -1 ? void 0 : oe(
|
|
757
|
+
let n = re(F[e], t);
|
|
758
|
+
return n === -1 ? void 0 : oe(F[e], n, 1)[0];
|
|
725
759
|
}
|
|
726
|
-
return ie(
|
|
760
|
+
return ie(F[e]);
|
|
727
761
|
}
|
|
728
762
|
}, t.removeHooks = function(e) {
|
|
729
|
-
v(
|
|
763
|
+
v(F, e) && (F[e] = []);
|
|
730
764
|
}, t.removeAllHooks = function() {
|
|
731
|
-
|
|
765
|
+
F = We();
|
|
732
766
|
}, t;
|
|
733
767
|
}
|
|
734
768
|
var A = Ge(), j = null;
|
|
735
|
-
function
|
|
769
|
+
function M() {
|
|
736
770
|
if (j) return j;
|
|
737
771
|
if (typeof window > "u" || !window.document) return null;
|
|
738
772
|
let e = A;
|
|
739
773
|
return j = typeof e == "function" ? e(window) : A, j;
|
|
740
774
|
}
|
|
741
|
-
var
|
|
775
|
+
var Ke = [
|
|
742
776
|
"script",
|
|
743
777
|
"foreignobject",
|
|
744
778
|
"iframe",
|
|
@@ -746,7 +780,7 @@ var qe = [
|
|
|
746
780
|
"embed",
|
|
747
781
|
"base",
|
|
748
782
|
"form"
|
|
749
|
-
],
|
|
783
|
+
], qe = [
|
|
750
784
|
"onerror",
|
|
751
785
|
"onload",
|
|
752
786
|
"onclick",
|
|
@@ -761,30 +795,30 @@ var qe = [
|
|
|
761
795
|
"onkeypress",
|
|
762
796
|
"formaction",
|
|
763
797
|
"xlink:href"
|
|
764
|
-
],
|
|
765
|
-
function
|
|
798
|
+
], N = /* @__PURE__ */ new Map(), Je = 64;
|
|
799
|
+
function P(e) {
|
|
766
800
|
if (typeof e != "string" || e.length === 0 || !e.trimStart().toLowerCase().startsWith("<svg")) return "";
|
|
767
|
-
let t =
|
|
801
|
+
let t = N.get(e);
|
|
768
802
|
if (t !== void 0) return t;
|
|
769
|
-
let n =
|
|
803
|
+
let n = M();
|
|
770
804
|
if (!n) return "";
|
|
771
805
|
let r = n.sanitize(e, {
|
|
772
806
|
USE_PROFILES: {
|
|
773
807
|
svg: !0,
|
|
774
808
|
svgFilters: !0
|
|
775
809
|
},
|
|
776
|
-
FORBID_TAGS:
|
|
777
|
-
FORBID_ATTR:
|
|
810
|
+
FORBID_TAGS: Ke,
|
|
811
|
+
FORBID_ATTR: qe,
|
|
778
812
|
ALLOW_UNKNOWN_PROTOCOLS: !1,
|
|
779
813
|
RETURN_TRUSTED_TYPE: !1
|
|
780
814
|
}), i = typeof r == "string" ? r : String(r ?? "");
|
|
781
|
-
if (
|
|
782
|
-
let e = [...
|
|
783
|
-
for (let t = 0; t < e.length / 2; t += 1)
|
|
815
|
+
if (N.size >= Je) {
|
|
816
|
+
let e = [...N.keys()];
|
|
817
|
+
for (let t = 0; t < e.length / 2; t += 1) N.delete(e[t]);
|
|
784
818
|
}
|
|
785
|
-
return
|
|
819
|
+
return N.set(e, i), i;
|
|
786
820
|
}
|
|
787
|
-
function
|
|
821
|
+
function Ye(e) {
|
|
788
822
|
try {
|
|
789
823
|
let t = {
|
|
790
824
|
BASE_URL: "/",
|
|
@@ -796,8 +830,8 @@ function Xe(e) {
|
|
|
796
830
|
if (typeof t == "string" && t.length > 0) return t;
|
|
797
831
|
} catch {}
|
|
798
832
|
}
|
|
799
|
-
typeof window < "u" && window.PIE_BUILDER_ORIGIN_URL ||
|
|
800
|
-
var
|
|
833
|
+
typeof window < "u" && window.PIE_BUILDER_ORIGIN_URL || Ye("PUBLIC_BUILDER_ORIGIN_URL"), typeof window < "u" && window.PIE_BUILDER_BUNDLE_URL || Ye("PUBLIC_BUILDER_BUNDLE_URL");
|
|
834
|
+
var Xe = class {
|
|
801
835
|
initialized = !1;
|
|
802
836
|
config;
|
|
803
837
|
trackError(e, t) {
|
|
@@ -858,7 +892,7 @@ var Ze = class {
|
|
|
858
892
|
transformAttributes(e) {
|
|
859
893
|
return this.config?.attributeTransformer ? this.config.attributeTransformer(e) : e;
|
|
860
894
|
}
|
|
861
|
-
},
|
|
895
|
+
}, Ze = class extends Xe {
|
|
862
896
|
providerId = "newrelic";
|
|
863
897
|
providerName = "New Relic";
|
|
864
898
|
async initialize(e) {
|
|
@@ -887,49 +921,49 @@ var Ze = class {
|
|
|
887
921
|
};
|
|
888
922
|
//#endregion
|
|
889
923
|
//#region ../../node_modules/.bun/@pie-players+pie-players-shared@0.3.53/node_modules/@pie-players/pie-players-shared/dist/instrumentation/provider-guards.js
|
|
890
|
-
function
|
|
924
|
+
function Qe(e) {
|
|
891
925
|
if (!e || typeof e != "object") return !1;
|
|
892
926
|
let t = e;
|
|
893
927
|
return typeof t.providerId == "string" && typeof t.providerName == "string" && typeof t.initialize == "function" && typeof t.trackError == "function" && typeof t.trackEvent == "function" && typeof t.destroy == "function" && typeof t.isReady == "function";
|
|
894
928
|
}
|
|
895
929
|
//#endregion
|
|
896
930
|
//#region ../../node_modules/.bun/@pie-players+pie-players-shared@0.3.53/node_modules/@pie-players/pie-players-shared/dist/loader-config.js
|
|
897
|
-
var
|
|
931
|
+
var $e = {
|
|
898
932
|
retryDelayMs: 3e3,
|
|
899
933
|
timeoutMs: 12e4
|
|
900
|
-
},
|
|
934
|
+
}, et;
|
|
901
935
|
(function(e) {
|
|
902
936
|
e.player = "player.js", e.clientPlayer = "client-player.js", e.editor = "editor.js";
|
|
903
|
-
})(
|
|
904
|
-
var
|
|
937
|
+
})(et ||= {});
|
|
938
|
+
var tt;
|
|
905
939
|
(function(e) {
|
|
906
940
|
e.loading = "loading", e.loaded = "loaded";
|
|
907
|
-
})(
|
|
941
|
+
})(tt ||= {}), $e.timeoutMs;
|
|
908
942
|
//#endregion
|
|
909
943
|
//#region ../../node_modules/.bun/@pie-players+pie-players-shared@0.3.53/node_modules/@pie-players/pie-players-shared/dist/types/index.js
|
|
910
|
-
var
|
|
944
|
+
var nt;
|
|
911
945
|
(function(e) {
|
|
912
946
|
e.SAVE = "save", e.MODEL = "model", e.SCORE = "score", e.MANUAL_SCORE = "manual-score";
|
|
913
|
-
})(
|
|
914
|
-
var
|
|
947
|
+
})(nt ||= {});
|
|
948
|
+
var F;
|
|
915
949
|
(function(e) {
|
|
916
950
|
e.AUTO = "auto", e.MANUAL = "manual";
|
|
951
|
+
})(F ||= {});
|
|
952
|
+
var rt;
|
|
953
|
+
(function(e) {
|
|
954
|
+
e.GATHER = "gather", e.VIEW = "view", e.EVALUATE = "evaluate";
|
|
917
955
|
})(rt ||= {});
|
|
918
956
|
var it;
|
|
919
957
|
(function(e) {
|
|
920
|
-
e.
|
|
958
|
+
e.PENDING = "pending", e.IN_PROGRESS = "in_progress", e.COMPLETED = "completed", e.FAILED = "failed";
|
|
921
959
|
})(it ||= {});
|
|
922
960
|
var at;
|
|
923
|
-
(function(e) {
|
|
924
|
-
e.PENDING = "pending", e.IN_PROGRESS = "in_progress", e.COMPLETED = "completed", e.FAILED = "failed";
|
|
925
|
-
})(at ||= {});
|
|
926
|
-
var ot;
|
|
927
961
|
(function(e) {
|
|
928
962
|
e[e.ROOT = 0] = "ROOT", e[e.SUBJECT = 1] = "SUBJECT", e[e.LEVEL = 2] = "LEVEL", e[e.STANDARD = 3] = "STANDARD";
|
|
929
|
-
})(
|
|
963
|
+
})(at ||= {});
|
|
930
964
|
//#endregion
|
|
931
965
|
//#region ../../node_modules/.bun/@pie-players+pie-players-shared@0.3.53/node_modules/@pie-players/pie-players-shared/dist/pie/logger.js
|
|
932
|
-
function
|
|
966
|
+
function I(e, t) {
|
|
933
967
|
let n = `[${e}]`;
|
|
934
968
|
return {
|
|
935
969
|
debug: (e, ...r) => {
|
|
@@ -940,20 +974,20 @@ function F(e, t) {
|
|
|
940
974
|
error: (e, ...t) => console.error(n, e, ...t)
|
|
941
975
|
};
|
|
942
976
|
}
|
|
943
|
-
function
|
|
977
|
+
function L() {
|
|
944
978
|
return typeof window < "u" && window.PIE_DEBUG === !0;
|
|
945
979
|
}
|
|
946
|
-
|
|
980
|
+
I("math-rendering", () => L()), I("pie-scoring", () => L()), I("pie-updates", () => L()), I("pie-initialization", () => L()), et.player, I("asset-handler", () => L()), I("authoring", () => L());
|
|
947
981
|
//#endregion
|
|
948
982
|
//#region ../../node_modules/.bun/@pie-players+pie-players-shared@0.3.53/node_modules/@pie-players/pie-players-shared/dist/pie/instrumentation-event-bridge.js
|
|
949
|
-
var
|
|
950
|
-
function
|
|
983
|
+
var ot = I("instrumentation-event-bridge", () => L());
|
|
984
|
+
function st(e) {
|
|
951
985
|
return e && typeof e == "object" ? e : e === void 0 ? {} : { value: e };
|
|
952
986
|
}
|
|
953
|
-
function
|
|
954
|
-
|
|
987
|
+
function ct(e) {
|
|
988
|
+
ot.warn(`[InstrumentationEventBridge:${e}] Ignoring invalid instrumentation provider; expected InstrumentationProvider contract`);
|
|
955
989
|
}
|
|
956
|
-
function
|
|
990
|
+
function lt(e) {
|
|
957
991
|
try {
|
|
958
992
|
e.provider.trackError(e.error instanceof Error ? e.error : Error(String(e.error ?? "Unknown instrumentation bridge error")), {
|
|
959
993
|
component: e.component,
|
|
@@ -962,9 +996,9 @@ function L(e) {
|
|
|
962
996
|
});
|
|
963
997
|
} catch {}
|
|
964
998
|
}
|
|
965
|
-
function
|
|
999
|
+
function R(e) {
|
|
966
1000
|
if (!e.host || !e.eventMap.length || !e.instrumentationProvider) return () => {};
|
|
967
|
-
if (
|
|
1001
|
+
if (!Qe(e.instrumentationProvider)) return e.debug && ct(e.component), () => {};
|
|
968
1002
|
let t = e.instrumentationProvider, n = [], r = Math.max(0, e.dedupeWindowMs ?? 0), i = /* @__PURE__ */ new Map(), a = (e, t) => {
|
|
969
1003
|
let n = [
|
|
970
1004
|
t.assessmentId,
|
|
@@ -980,7 +1014,7 @@ function ut(e) {
|
|
|
980
1014
|
let s = (n) => {
|
|
981
1015
|
try {
|
|
982
1016
|
if (!t.isReady() || e.shouldTrackEvent && !e.shouldTrackEvent(n)) return;
|
|
983
|
-
let s =
|
|
1017
|
+
let s = st(n.detail), c = (/* @__PURE__ */ new Date()).toISOString(), l = {
|
|
984
1018
|
...s,
|
|
985
1019
|
...e.staticAttributes,
|
|
986
1020
|
component: e.component,
|
|
@@ -994,7 +1028,7 @@ function ut(e) {
|
|
|
994
1028
|
}
|
|
995
1029
|
t.trackEvent(o.instrumentationEventName, { ...l });
|
|
996
1030
|
} catch (n) {
|
|
997
|
-
|
|
1031
|
+
lt({
|
|
998
1032
|
provider: t,
|
|
999
1033
|
component: e.component,
|
|
1000
1034
|
error: n,
|
|
@@ -1012,14 +1046,14 @@ function ut(e) {
|
|
|
1012
1046
|
}
|
|
1013
1047
|
//#endregion
|
|
1014
1048
|
//#region ../../node_modules/.bun/@pie-players+pie-players-shared@0.3.53/node_modules/@pie-players/pie-players-shared/dist/pie/instrumentation-provider-resolution.js
|
|
1015
|
-
function
|
|
1049
|
+
function ut(e) {
|
|
1016
1050
|
return e && typeof e == "object" ? e : {};
|
|
1017
1051
|
}
|
|
1018
|
-
function
|
|
1019
|
-
let t =
|
|
1052
|
+
function z(e) {
|
|
1053
|
+
let t = ut(ut(e).loaderConfig);
|
|
1020
1054
|
return Object.keys(t).length > 0 ? t : null;
|
|
1021
1055
|
}
|
|
1022
|
-
function
|
|
1056
|
+
function dt(e) {
|
|
1023
1057
|
if (!e || !("instrumentationProvider" in e)) return { kind: "unset" };
|
|
1024
1058
|
let t = e.instrumentationProvider;
|
|
1025
1059
|
return t === null ? { kind: "null" } : t === void 0 ? { kind: "unset" } : {
|
|
@@ -1032,48 +1066,48 @@ function B(e) {
|
|
|
1032
1066
|
let t = e.trackPageActions;
|
|
1033
1067
|
return typeof t == "boolean" ? t : void 0;
|
|
1034
1068
|
}
|
|
1035
|
-
function
|
|
1069
|
+
function V(e, t) {
|
|
1036
1070
|
return e.kind === "value" || e.kind === "null" ? e : t;
|
|
1037
1071
|
}
|
|
1038
|
-
var
|
|
1039
|
-
function
|
|
1040
|
-
return
|
|
1072
|
+
var ft, H = I("instrumentation-provider-resolution", () => L());
|
|
1073
|
+
function pt() {
|
|
1074
|
+
return ft || (ft = new Ze(), ft.initialize()), ft;
|
|
1041
1075
|
}
|
|
1042
|
-
function
|
|
1043
|
-
let t =
|
|
1076
|
+
function mt(e) {
|
|
1077
|
+
let t = z(e.runtimePlayer), n = z(e.player), r = B(t), i = B(n), a = r ?? i ?? !1, o = V(dt(t), dt(n));
|
|
1044
1078
|
if (o.kind !== "null") {
|
|
1045
|
-
if (o.kind === "unset") return a ?
|
|
1046
|
-
if (
|
|
1079
|
+
if (o.kind === "unset") return a ? pt() : void 0;
|
|
1080
|
+
if (Qe(o.value)) return o.value;
|
|
1047
1081
|
if (e.debug) {
|
|
1048
1082
|
let t = e.component ? `[${e.component}] ` : "";
|
|
1049
|
-
|
|
1083
|
+
H.warn(`${t}Ignoring invalid instrumentation provider; expected InstrumentationProvider contract`);
|
|
1050
1084
|
}
|
|
1051
1085
|
}
|
|
1052
1086
|
}
|
|
1053
1087
|
//#endregion
|
|
1054
1088
|
//#region ../../node_modules/.bun/@pie-players+pie-players-shared@0.3.53/node_modules/@pie-players/pie-players-shared/dist/pie/stages.js
|
|
1055
|
-
var
|
|
1089
|
+
var ht = Object.freeze([
|
|
1056
1090
|
"composed",
|
|
1057
1091
|
"engine-ready",
|
|
1058
1092
|
"interactive",
|
|
1059
1093
|
"disposed"
|
|
1060
1094
|
]);
|
|
1061
|
-
function
|
|
1062
|
-
return
|
|
1095
|
+
function gt(e) {
|
|
1096
|
+
return ht;
|
|
1063
1097
|
}
|
|
1064
1098
|
function U(e) {
|
|
1065
|
-
let t =
|
|
1099
|
+
let t = ht.indexOf(e);
|
|
1066
1100
|
if (t === -1) throw Error(`Unknown stage \`${e}\``);
|
|
1067
1101
|
return t;
|
|
1068
1102
|
}
|
|
1069
1103
|
//#endregion
|
|
1070
1104
|
//#region ../../node_modules/.bun/@pie-players+pie-players-shared@0.3.53/node_modules/@pie-players/pie-players-shared/dist/pie/stage-tracker.js
|
|
1071
1105
|
var W = !1;
|
|
1072
|
-
function
|
|
1106
|
+
function G(e) {
|
|
1073
1107
|
W || (W = !0, typeof console < "u" && console.warn && console.warn(`[pie-stage-tracker] Unexpected ${e.reason} stage transition from \`${e.from ?? "<none>"}\` to \`${e.to}\`. Stage transitions are expected to be monotonic within a cohort; call \`reset()\` when \`(sectionId, attemptId)\` changes.`));
|
|
1074
1108
|
}
|
|
1075
|
-
function
|
|
1076
|
-
let t =
|
|
1109
|
+
function _t(e) {
|
|
1110
|
+
let t = gt(e.sourceCeShape), n = new Set(t), r = e.now ?? (() => (/* @__PURE__ */ new Date()).toISOString()), i = e.onUnexpectedTransition ?? G, a = null, o = e.sectionId, s = e.attemptId, c = /* @__PURE__ */ new Set();
|
|
1077
1111
|
function l(t, n) {
|
|
1078
1112
|
e.emit({
|
|
1079
1113
|
stage: t,
|
|
@@ -1088,7 +1122,7 @@ function vt(e) {
|
|
|
1088
1122
|
function u(e) {
|
|
1089
1123
|
let t = U(e), r = a === null ? 0 : U(a) + 1;
|
|
1090
1124
|
for (let e = r; e < t; e += 1) {
|
|
1091
|
-
let t =
|
|
1125
|
+
let t = ht[e];
|
|
1092
1126
|
n.has(t) || c.has(t) || (c.add(t), l(t, "skipped"));
|
|
1093
1127
|
}
|
|
1094
1128
|
}
|
|
@@ -1139,7 +1173,7 @@ function vt(e) {
|
|
|
1139
1173
|
}
|
|
1140
1174
|
//#endregion
|
|
1141
1175
|
//#region ../../node_modules/.bun/@pie-players+pie-players-shared@0.3.53/node_modules/@pie-players/pie-players-shared/dist/pie/instrumentation-event-map.js
|
|
1142
|
-
var
|
|
1176
|
+
var vt = [
|
|
1143
1177
|
{
|
|
1144
1178
|
sourceEventName: "pie-stage-change",
|
|
1145
1179
|
instrumentationEventName: "pie-toolkit-stage-change"
|
|
@@ -1174,10 +1208,10 @@ new Set([
|
|
|
1174
1208
|
"timestamp",
|
|
1175
1209
|
"sourceRuntimeId"
|
|
1176
1210
|
])
|
|
1177
|
-
]),
|
|
1211
|
+
]), I("pie-overrides", () => L());
|
|
1178
1212
|
//#endregion
|
|
1179
1213
|
//#region ../../node_modules/.bun/@pie-players+pie-players-shared@0.3.53/node_modules/@pie-players/pie-players-shared/dist/ui/first-focusable.js
|
|
1180
|
-
var
|
|
1214
|
+
var K = [
|
|
1181
1215
|
"a[href]",
|
|
1182
1216
|
"button:not([disabled])",
|
|
1183
1217
|
"input:not([disabled]):not([type='hidden'])",
|
|
@@ -1186,21 +1220,21 @@ var G = [
|
|
|
1186
1220
|
"[contenteditable]:not([contenteditable='false'])",
|
|
1187
1221
|
"[tabindex]:not([tabindex='-1'])"
|
|
1188
1222
|
].join(",");
|
|
1189
|
-
function
|
|
1190
|
-
return !e.matches(
|
|
1223
|
+
function yt(e) {
|
|
1224
|
+
return !e.matches(K) || e.hasAttribute("disabled") || e.closest("[inert]") ? !1 : e.offsetParent !== null || e.getClientRects().length > 0;
|
|
1191
1225
|
}
|
|
1192
1226
|
//#endregion
|
|
1193
1227
|
//#region ../../node_modules/.bun/@pie-players+pie-players-shared@0.3.53/node_modules/@pie-players/pie-players-shared/dist/ui/focus-trap.js
|
|
1194
|
-
function
|
|
1195
|
-
return Array.from(e.querySelectorAll(
|
|
1228
|
+
function q(e) {
|
|
1229
|
+
return Array.from(e.querySelectorAll(K)).filter((e) => yt(e));
|
|
1196
1230
|
}
|
|
1197
|
-
function
|
|
1231
|
+
function bt(e, t) {
|
|
1198
1232
|
try {
|
|
1199
1233
|
if (t && e.contains(t)) {
|
|
1200
1234
|
t.focus();
|
|
1201
1235
|
return;
|
|
1202
1236
|
}
|
|
1203
|
-
let n =
|
|
1237
|
+
let n = q(e);
|
|
1204
1238
|
if (n.length > 0) {
|
|
1205
1239
|
n[0].focus();
|
|
1206
1240
|
return;
|
|
@@ -1208,14 +1242,14 @@ function xt(e, t) {
|
|
|
1208
1242
|
e.focus?.();
|
|
1209
1243
|
} catch {}
|
|
1210
1244
|
}
|
|
1211
|
-
function
|
|
1245
|
+
function xt(e, t = {}) {
|
|
1212
1246
|
let n = typeof document < "u" ? document.activeElement : null, r = t.wrap ?? !0, i = (n) => {
|
|
1213
1247
|
if (n.key === "Escape") {
|
|
1214
1248
|
t.onEscape?.();
|
|
1215
1249
|
return;
|
|
1216
1250
|
}
|
|
1217
1251
|
if (n.key !== "Tab") return;
|
|
1218
|
-
let i =
|
|
1252
|
+
let i = q(e);
|
|
1219
1253
|
if (!i.length) {
|
|
1220
1254
|
if (!r) return;
|
|
1221
1255
|
n.preventDefault(), e.focus?.();
|
|
@@ -1228,7 +1262,7 @@ function St(e, t = {}) {
|
|
|
1228
1262
|
}
|
|
1229
1263
|
o === i.length - 1 && (r ? (n.preventDefault(), i[0].focus()) : t.onTabExit?.("forward", n));
|
|
1230
1264
|
};
|
|
1231
|
-
return queueMicrotask(() =>
|
|
1265
|
+
return queueMicrotask(() => bt(e, t.initialFocus)), e.addEventListener("keydown", i), () => {
|
|
1232
1266
|
e.removeEventListener("keydown", i);
|
|
1233
1267
|
try {
|
|
1234
1268
|
n?.focus?.();
|
|
@@ -1236,6 +1270,6 @@ function St(e, t = {}) {
|
|
|
1236
1270
|
};
|
|
1237
1271
|
}
|
|
1238
1272
|
//#endregion
|
|
1239
|
-
export {
|
|
1273
|
+
export { _t as a, Qe as c, vt as i, P as l, K as n, mt as o, yt as r, R as s, xt as t };
|
|
1240
1274
|
|
|
1241
|
-
//# sourceMappingURL=dist-
|
|
1275
|
+
//# sourceMappingURL=dist-Nkkk25AH.js.map
|