@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.
Files changed (38) hide show
  1. package/README.md +122 -127
  2. package/dist/{define-B9h1kNmq.js → define-XpbOHJoz.js} +4168 -3088
  3. package/dist/define-XpbOHJoz.js.map +1 -0
  4. package/dist/{dist-CHcxiby5.js → dist-4hIHy9-L.js} +2 -2
  5. package/dist/{dist-CHcxiby5.js.map → dist-4hIHy9-L.js.map} +1 -1
  6. package/dist/{dist-DjmdIRjq.js → dist-Nkkk25AH.js} +267 -233
  7. package/dist/dist-Nkkk25AH.js.map +1 -0
  8. package/dist/{element-CSO0tq-A.js → element-DNnKo2Uk.js} +2 -2
  9. package/dist/{element-CSO0tq-A.js.map → element-DNnKo2Uk.js.map} +1 -1
  10. package/dist/{element-class-BEpwHdcP-BHKRGZoi.js → element-class-iN9MRyjF-D6u8ACFm.js} +12407 -11607
  11. package/dist/element-class-iN9MRyjF-D6u8ACFm.js.map +1 -0
  12. package/dist/elements.js +3 -3
  13. package/dist/index.js +3 -3
  14. package/dist/{item-toolbar-element-CjJkgFQ3.js → item-toolbar-element-3k36WOlC.js} +2 -2
  15. package/dist/{item-toolbar-element-CjJkgFQ3.js.map → item-toolbar-element-3k36WOlC.js.map} +1 -1
  16. package/dist/{pie-assessment-toolkit-element-DMRNOwrK.js → pie-assessment-toolkit-element-CP-OMtE6.js} +2 -2
  17. package/dist/{pie-assessment-toolkit-element-DMRNOwrK.js.map → pie-assessment-toolkit-element-CP-OMtE6.js.map} +1 -1
  18. package/dist/{pie-tool-calculator-DBfkllu3.js → pie-tool-calculator-VzYEjxiY.js} +2 -2
  19. package/dist/{pie-tool-calculator-DBfkllu3.js.map → pie-tool-calculator-VzYEjxiY.js.map} +1 -1
  20. package/dist/public/api.d.ts +25 -11
  21. package/dist/public/elements.d.ts +1 -1
  22. package/dist/public/index.d.ts +1 -1
  23. package/dist/register-players.js +1 -1
  24. package/dist/register.js +45858 -44817
  25. package/dist/register.js.map +1 -1
  26. package/dist/resolveItems-hMDtJOXa.js +7627 -0
  27. package/dist/resolveItems-hMDtJOXa.js.map +1 -0
  28. package/dist/{sre-Dz5gsR-A.js → sre-CFPLI6BY.js} +1569 -1561
  29. package/dist/sre-CFPLI6BY.js.map +1 -0
  30. package/dist/{tool-tts-inline-BNjR51Di.js → tool-tts-inline-B-xT_sdY.js} +2 -2
  31. package/dist/{tool-tts-inline-BNjR51Di.js.map → tool-tts-inline-B-xT_sdY.js.map} +1 -1
  32. package/package.json +11 -9
  33. package/dist/define-B9h1kNmq.js.map +0 -1
  34. package/dist/dist-DjmdIRjq.js.map +0 -1
  35. package/dist/element-class-BEpwHdcP-BHKRGZoi.js.map +0 -1
  36. package/dist/resolveItems-CLMM7L3B.js +0 -7045
  37. package/dist/resolveItems-CLMM7L3B.js.map +0 -1
  38. 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.11/node_modules/dompurify/dist/purify.es.mjs
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.11", t.removed = [], !e || !e.document || e.document.nodeType !== O.document || !e.Element) return t.isSupported = !1, t;
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 A, j = "", Ke, qe = !1, Je = 0, M = function() {
266
- if (Je > 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
- }, N = function(e) {
268
- M(), Je++;
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 A.createHTML(e);
270
+ return j.createHTML(e);
271
271
  } finally {
272
- Je--;
272
+ N--;
273
273
  }
274
274
  }, Ye = function(e) {
275
- M(), Je++;
275
+ Je(), N++;
276
276
  try {
277
- return A.createScriptURL(e);
277
+ return j.createScriptURL(e);
278
278
  } finally {
279
- Je--;
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, P = We();
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, ot = je, F = Me, I = Pe, st = Fe, ct = Le, lt = Ne, L = null, ut = w({}, [
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
- ]), R = null, dt = w({}, [
291
+ ]), z = null, dt = w({}, [
292
292
  ...we,
293
293
  ...Te,
294
294
  ...Ee,
295
295
  ...De
296
- ]), z = Object.seal(p(null, {
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
- })), B = null, ft = null, V = Object.seal(p(null, {
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, H = !1, U = !0, W = !1, _t = !1, vt = null, yt = null, G = !1, K = !1, bt = !1, xt = !1, St = !0, Ct = !1, wt = "user-content-", Tt = !0, Et = !1, Dt = {}, q = 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({}, [
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", J = "http://www.w3.org/1999/xhtml", Ft = J, It = !1, Lt = null, Rt = w({}, [
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
- J
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"], Y = null, Kt = null, qt = n.createElement("form"), Jt = function(e) {
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, Y = Wt === "application/xhtml+xml" ? ce : se, L = k(e, "ALLOWED_TAGS", ut, { transform: Y }), R = k(e, "ALLOWED_ATTR", dt, { transform: Y }), Lt = k(e, "ALLOWED_NAMESPACES", Rt, { transform: ce }), jt = k(e, "ADD_URI_SAFE_ATTR", Mt, {
372
- transform: Y,
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: Y,
375
+ transform: X,
376
376
  base: At
377
- }), q = k(e, "FORBID_CONTENTS", Ot, { transform: Y }), B = k(e, "FORBID_TAGS", E({}), { transform: Y }), ft = k(e, "FORBID_ATTR", E({}), { transform: Y }), 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, H = e.SAFE_FOR_TEMPLATES || !1, U = e.SAFE_FOR_XML !== !1, W = e.WHOLE_DOCUMENT || !1, K = e.RETURN_DOM || !1, bt = e.RETURN_DOM_FRAGMENT || !1, xt = e.RETURN_TRUSTED_TYPE || !1, G = 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 : J, 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);
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 (z = p(null), v(t, "tagNameCheck") && Jt(t.tagNameCheck) && (z.tagNameCheck = t.tagNameCheck), v(t, "attributeNameCheck") && Jt(t.attributeNameCheck) && (z.attributeNameCheck = t.attributeNameCheck), v(t, "allowCustomizedBuiltInElements") && typeof t.allowCustomizedBuiltInElements == "boolean" && (z.allowCustomizedBuiltInElements = t.allowCustomizedBuiltInElements), f(z), H && (mt = !1), bt && (K = !0), Dt && (L = w({}, Ce), R = p(null), Dt.html === !0 && (w(L, _e), w(R, we)), Dt.svg === !0 && (w(L, ve), w(R, Te), w(R, De)), Dt.svgFilters === !0 && (w(L, ye), w(R, Te), w(R, De)), Dt.mathMl === !0 && (w(L, xe), w(R, Ee), w(R, De))), V.tagCheck = null, V.attributeCheck = null, v(e, "ADD_TAGS") && (typeof e.ADD_TAGS == "function" ? V.tagCheck = e.ADD_TAGS : h(e.ADD_TAGS) && (L === ut && (L = E(L)), w(L, e.ADD_TAGS, Y))), v(e, "ADD_ATTR") && (typeof e.ADD_ATTR == "function" ? V.attributeCheck = e.ADD_ATTR : h(e.ADD_ATTR) && (R === dt && (R = E(R)), w(R, e.ADD_ATTR, Y))), v(e, "ADD_URI_SAFE_ATTR") && h(e.ADD_URI_SAFE_ATTR) && w(jt, e.ADD_URI_SAFE_ATTR, Y), v(e, "FORBID_CONTENTS") && h(e.FORBID_CONTENTS) && (q === Ot && (q = E(q)), w(q, e.FORBID_CONTENTS, Y)), v(e, "ADD_FORBID_CONTENTS") && h(e.ADD_FORBID_CONTENTS) && (q === Ot && (q = E(q)), w(q, e.ADD_FORBID_CONTENTS, Y)), Tt && (L["#text"] = !0), W && w(L, [
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
- ]), L.table && (w(L, ["tbody"]), delete B.tbody), e.TRUSTED_TYPES_POLICY) {
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 = A;
387
- A = e.TRUSTED_TYPES_POLICY;
386
+ let t = j;
387
+ j = e.TRUSTED_TYPES_POLICY;
388
388
  try {
389
- j = N("");
389
+ M = P("");
390
390
  } catch (e) {
391
- throw A = t, e;
391
+ throw j = t, e;
392
392
  }
393
- } else e.TRUSTED_TYPES_POLICY === null ? (A = void 0, j = "") : (A === void 0 && (A = Xe()), A && typeof j == "string" && (j = N("")));
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 === J ? e === "svg" : t.namespaceURI === Nt ? e === "svg" && (n === "annotation-xml" || Bt[n]) : !!Xt[e];
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 === J ? e === "math" : t.namespaceURI === Pt ? e === "math" && Ht[n] : !!Zt[e];
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 === J ? en(n, t, r) : !!(Wt === "application/xhtml+xml" && Lt[e.namespaceURI]) : !1;
413
- }, X = function(e) {
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
- }, Z = function(e, n) {
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 (K || bt) try {
452
- X(n);
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" || R[Y(i)])) try {
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 (G) e = "<remove></remove>" + e;
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 === J && (e = "<html xmlns=\"http://www.w3.org/1999/xhtml\"><head></head><body>" + e + "</body></html>");
481
- let i = A ? N(e) : e;
482
- if (Ft === J) try {
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 ? j : i;
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 === J ? tt.call(t, W ? "html" : "body")[0] : W ? t.documentElement : a;
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
- return e = ue(e, rt, " "), e = ue(e, it, " "), e = ue(e, at, " "), e;
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(e.ownerDocument || e, e, l.SHOW_TEXT | l.SHOW_COMMENT | l.SHOW_CDATA_SECTION | l.SHOW_PROCESSING_INSTRUCTION, null), n = t.nextNode();
500
- for (; n;) n.data = cn(n.data), n = t.nextNode();
501
- let r = e.querySelectorAll?.call(e, "template");
502
- r && ne(r, (e) => {
503
- Q(e.content) && ln(e.content);
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
- }, un = function(e) {
527
+ }, dn = function(e) {
506
528
  let t = T ? T(e) : null;
507
- return typeof t != "string" || Y(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);
508
- }, Q = function(e) {
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
- }, dn = function(e) {
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 fn = function(e, t) {
529
- return !!(U && e.hasChildNodes() && !dn(e.firstElementChild) && b(Re, e.textContent) && b(Re, e.innerHTML) || U && e.namespaceURI === J && t === "style" && dn(e.firstElementChild) || e.nodeType === O.processingInstruction || U && e.nodeType === O.comment && b(ze, e.data));
530
- }, pn = function(e, t) {
531
- if (!B[t] && _n(t) && (z.tagNameCheck instanceof RegExp && b(z.tagNameCheck, t) || z.tagNameCheck instanceof Function && z.tagNameCheck(t))) return !1;
532
- if (Tt && !q[t]) {
533
- let t = _(e), n = g(e);
534
- if (n && t) {
535
- let r = n.length;
536
- for (let i = r - 1; i >= 0; --i) {
537
- let r = Et ? n[i] : te(n[i], !0);
538
- t.insertBefore(r, me(e));
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 X(e), !0;
543
- }, mn = function(e) {
544
- if ($(P.beforeSanitizeElements, e, null), un(e)) return X(e), !0;
545
- let n = Y(T ? T(e) : e.nodeName);
546
- if ($(P.uponSanitizeElement, e, {
547
- tagName: n,
548
- allowedTags: L
549
- }), fn(e, n)) return X(e), !0;
550
- if (B[n] || !(V.tagCheck instanceof Function && V.tagCheck(n)) && !L[n]) return pn(e, n);
551
- if ((C ? C(e) : e.nodeType) === O.element && !tn(e) || (n === "noscript" || n === "noembed" || n === "noframes") && b(Be, e.innerHTML)) return X(e), !0;
552
- if (H && e.nodeType === O.text) {
553
- let n = cn(e.textContent);
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 $(P.afterSanitizeElements, e, null), !1;
557
- }, hn = function(e, t, r) {
558
- if (ft[t] || St && (t === "id" || t === "name") && (r in n || r in qt)) return !1;
559
- let i = R[t] || V.attributeCheck instanceof Function && V.attributeCheck(t, e);
560
- if (!(mt && b(ot, t)) && !(pt && b(F, t))) {
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 (!(_n(e) && (z.tagNameCheck instanceof RegExp && b(z.tagNameCheck, e) || z.tagNameCheck instanceof Function && z.tagNameCheck(e)) && (z.attributeNameCheck instanceof RegExp && b(z.attributeNameCheck, t) || z.attributeNameCheck instanceof Function && z.attributeNameCheck(t, e)) || t === "is" && z.allowCustomizedBuiltInElements && (z.tagNameCheck instanceof RegExp && b(z.tagNameCheck, r) || z.tagNameCheck instanceof Function && z.tagNameCheck(r)))) return !1;
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(I, ue(r, st, ""))) && r) return !1;
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
- }, gn = w({}, [
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
- ]), _n = function(e) {
576
- return !gn[se(e)] && b(ct, e);
577
- }, vn = function(e, t, n, r) {
578
- if (A && typeof ee == "object" && typeof ee.getAttributeType == "function" && !n) switch (ee.getAttributeType(e, t)) {
579
- case "TrustedHTML": return N(r);
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
- }, yn = function(e, n, r, i) {
612
+ }, Sn = function(e, n, r, i) {
584
613
  try {
585
- r ? e.setAttributeNS(r, n, i) : e.setAttribute(n, i), un(e) ? X(e) : ie(t.removed);
614
+ r ? e.setAttributeNS(r, n, i) : e.setAttribute(n, i), dn(e) ? Z(e) : ie(t.removed);
586
615
  } catch {
587
- Z(n, e);
616
+ Q(n, e);
588
617
  }
589
- }, bn = function(e) {
590
- $(P.beforeSanitizeAttributes, e, null);
618
+ }, Cn = function(e) {
619
+ $(F.beforeSanitizeAttributes, e, null);
591
620
  let t = e.attributes;
592
- if (!t || un(e)) return;
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: R,
627
+ allowedAttributes: z,
598
628
  forceKeepAttr: void 0
599
- }, r = t.length, i = Y(e.nodeName);
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 = Y(o), u = c, d = o === "value" ? u : fe(u);
602
- if (n.attrName = l, n.attrValue = d, n.keepAttr = !0, n.forceKeepAttr = void 0, $(P.uponSanitizeAttribute, e, n), d = n.attrValue, Ct && (l === "id" || l === "name") && de(d, wt) !== 0 && (Z(o, e), d = wt + d), U && b(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, d)) {
603
- Z(o, e);
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
- Z(o, e);
637
+ Q(o, e);
608
638
  continue;
609
639
  }
610
640
  if (!n.forceKeepAttr) {
611
641
  if (!n.keepAttr) {
612
- Z(o, e);
642
+ Q(o, e);
613
643
  continue;
614
644
  }
615
645
  if (!gt && b(Ve, d)) {
616
- Z(o, e);
646
+ Q(o, e);
617
647
  continue;
618
648
  }
619
- if (H && (d = cn(d)), !hn(i, l, d)) {
620
- Z(o, e);
649
+ if (U && (d = ln(d)), !vn(i, l, d)) {
650
+ Q(o, e);
621
651
  continue;
622
652
  }
623
- d = vn(i, l, s, d), d !== u && yn(e, o, s, d);
653
+ d = xn(i, l, s, d), d !== u && Sn(e, o, s, d);
624
654
  }
625
655
  }
626
- $(P.afterSanitizeAttributes, e, null);
627
- }, xn = function(e) {
628
- let t = null, n = sn(e);
629
- for ($(P.beforeSanitizeShadowDOM, e, null); t = n.nextNode();) if ($(P.uponSanitizeShadowNode, t, null), mn(t), bn(t), Q(t.content) && xn(t.content), (C ? C(t) : t.nodeType) === O.element) {
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
- Q(e) && (Sn(e), xn(e));
661
+ fn(e) && (Tn(e), wn(e));
632
662
  }
633
- $(P.afterSanitizeShadowDOM, e, null);
634
- }, Sn = function(e) {
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
- xn(e.shadow);
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" && Y(e) === "template") {
682
+ if (typeof e == "string" && X(e) === "template") {
653
683
  let e = n.content;
654
- Q(e) && t.push({
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
- Q(e) && t.push({
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" && !dn(e) && (e = he(e), typeof e != "string")) throw x("dirty is not a string, aborting");
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 ? (L = vt, R = yt) : Yt(n), (P.uponSanitizeElement.length > 0 || P.uponSanitizeAttribute.length > 0) && (L = E(L)), P.uponSanitizeAttribute.length > 0 && (R = E(R)), t.removed = [];
677
- let c = Et && typeof e != "string" && dn(e);
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 e = Y(t);
682
- if (!L[e] || B[e]) throw x("root node is forbidden and cannot be sanitized in-place");
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 (un(e)) throw x("root node is clobbered and cannot be sanitized in-place");
715
+ if (dn(e)) throw nn(e), x("root node is clobbered and cannot be sanitized in-place");
685
716
  try {
686
- Sn(e);
717
+ Tn(e);
687
718
  } catch (t) {
688
719
  throw nn(e), t;
689
720
  }
690
- } else if (dn(e)) i = on("<!---->"), a = i.ownerDocument.importNode(e, !0), a.nodeType === O.element && a.nodeName === "BODY" || a.nodeName === "HTML" ? i = a : i.appendChild(a), Sn(a);
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 (!K && !H && !W && e.indexOf("<") === -1) return A && xt ? N(e) : e;
693
- if (i = on(e), !i) return K ? null : xt ? j : "";
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 && G && X(i.firstChild);
696
- let l = sn(c ? e : i);
726
+ i && yt && Z(i.firstChild);
727
+ let l = c ? e : i;
697
728
  try {
698
- for (; o = l.nextNode();) mn(o), bn(o), Q(o.content) && xn(o.content);
699
- } catch (t) {
700
- throw c && nn(e), t;
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
- }), H && ln(e), e;
705
- if (K) {
706
- if (H && ln(i), bt) for (s = et.call(i.ownerDocument); i.firstChild;) s.appendChild(i.firstChild);
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 (R.shadowroot || R.shadowrootmode) && (s = nt.call(r, s, !0)), s;
742
+ return (z.shadowroot || z.shadowrootmode) && (s = nt.call(r, s, !0)), s;
709
743
  }
710
- let u = W ? i.outerHTML : i.innerHTML;
711
- return W && L["!doctype"] && i.ownerDocument && i.ownerDocument.doctype && i.ownerDocument.doctype.name && b(Ie, i.ownerDocument.doctype.name) && (u = "<!DOCTYPE " + i.ownerDocument.doctype.name + ">\n" + u), H && (u = cn(u)), A && xt ? N(u) : u;
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 = L, yt = R;
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, yt = null, A = Ke, j = "";
749
+ Kt = null, _t = !1, vt = null, K = null, j = Ke, M = "";
716
750
  }, t.isValidAttribute = function(e, t, n) {
717
- return Kt || Yt({}), hn(Y(e), Y(t), n);
751
+ return Kt || Yt({}), vn(X(e), X(t), n);
718
752
  }, t.addHook = function(e, t) {
719
- typeof t == "function" && v(P, e) && ae(P[e], t);
753
+ typeof t == "function" && v(F, e) && ae(F[e], t);
720
754
  }, t.removeHook = function(e, t) {
721
- if (v(P, e)) {
755
+ if (v(F, e)) {
722
756
  if (t !== void 0) {
723
- let n = re(P[e], t);
724
- return n === -1 ? void 0 : oe(P[e], n, 1)[0];
757
+ let n = re(F[e], t);
758
+ return n === -1 ? void 0 : oe(F[e], n, 1)[0];
725
759
  }
726
- return ie(P[e]);
760
+ return ie(F[e]);
727
761
  }
728
762
  }, t.removeHooks = function(e) {
729
- v(P, e) && (P[e] = []);
763
+ v(F, e) && (F[e] = []);
730
764
  }, t.removeAllHooks = function() {
731
- P = We();
765
+ F = We();
732
766
  }, t;
733
767
  }
734
768
  var A = Ge(), j = null;
735
- function Ke() {
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 qe = [
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
- ], Je = [
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
- ], M = /* @__PURE__ */ new Map(), N = 64;
765
- function Ye(e) {
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 = M.get(e);
801
+ let t = N.get(e);
768
802
  if (t !== void 0) return t;
769
- let n = Ke();
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: qe,
777
- FORBID_ATTR: Je,
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 (M.size >= N) {
782
- let e = [...M.keys()];
783
- for (let t = 0; t < e.length / 2; t += 1) M.delete(e[t]);
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 M.set(e, i), i;
819
+ return N.set(e, i), i;
786
820
  }
787
- function Xe(e) {
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 || Xe("PUBLIC_BUILDER_ORIGIN_URL"), typeof window < "u" && window.PIE_BUILDER_BUNDLE_URL || Xe("PUBLIC_BUILDER_BUNDLE_URL");
800
- var Ze = class {
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
- }, Qe = class extends Ze {
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 $e(e) {
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 et = {
931
+ var $e = {
898
932
  retryDelayMs: 3e3,
899
933
  timeoutMs: 12e4
900
- }, tt;
934
+ }, et;
901
935
  (function(e) {
902
936
  e.player = "player.js", e.clientPlayer = "client-player.js", e.editor = "editor.js";
903
- })(tt ||= {});
904
- var nt;
937
+ })(et ||= {});
938
+ var tt;
905
939
  (function(e) {
906
940
  e.loading = "loading", e.loaded = "loaded";
907
- })(nt ||= {}), et.timeoutMs;
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 P;
944
+ var nt;
911
945
  (function(e) {
912
946
  e.SAVE = "save", e.MODEL = "model", e.SCORE = "score", e.MANUAL_SCORE = "manual-score";
913
- })(P ||= {});
914
- var rt;
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.GATHER = "gather", e.VIEW = "view", e.EVALUATE = "evaluate";
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
- })(ot ||= {});
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 F(e, t) {
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 I() {
977
+ function L() {
944
978
  return typeof window < "u" && window.PIE_DEBUG === !0;
945
979
  }
946
- F("math-rendering", () => I()), F("pie-scoring", () => I()), F("pie-updates", () => I()), F("pie-initialization", () => I()), tt.player, F("asset-handler", () => I()), F("authoring", () => I());
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 st = F("instrumentation-event-bridge", () => I());
950
- function ct(e) {
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 lt(e) {
954
- st.warn(`[InstrumentationEventBridge:${e}] Ignoring invalid instrumentation provider; expected InstrumentationProvider contract`);
987
+ function ct(e) {
988
+ ot.warn(`[InstrumentationEventBridge:${e}] Ignoring invalid instrumentation provider; expected InstrumentationProvider contract`);
955
989
  }
956
- function L(e) {
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 ut(e) {
999
+ function R(e) {
966
1000
  if (!e.host || !e.eventMap.length || !e.instrumentationProvider) return () => {};
967
- if (!$e(e.instrumentationProvider)) return e.debug && lt(e.component), () => {};
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 = ct(n.detail), c = (/* @__PURE__ */ new Date()).toISOString(), l = {
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
- L({
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 R(e) {
1049
+ function ut(e) {
1016
1050
  return e && typeof e == "object" ? e : {};
1017
1051
  }
1018
- function dt(e) {
1019
- let t = R(R(e).loaderConfig);
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 z(e) {
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 ft(e, t) {
1069
+ function V(e, t) {
1036
1070
  return e.kind === "value" || e.kind === "null" ? e : t;
1037
1071
  }
1038
- var V, pt = F("instrumentation-provider-resolution", () => I());
1039
- function mt() {
1040
- return V || (V = new Qe(), V.initialize()), V;
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 ht(e) {
1043
- let t = dt(e.runtimePlayer), n = dt(e.player), r = B(t), i = B(n), a = r ?? i ?? !1, o = ft(z(t), z(n));
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 ? mt() : void 0;
1046
- if ($e(o.value)) return o.value;
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
- pt.warn(`${t}Ignoring invalid instrumentation provider; expected InstrumentationProvider contract`);
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 gt = Object.freeze([
1089
+ var ht = Object.freeze([
1056
1090
  "composed",
1057
1091
  "engine-ready",
1058
1092
  "interactive",
1059
1093
  "disposed"
1060
1094
  ]);
1061
- function H(e) {
1062
- return gt;
1095
+ function gt(e) {
1096
+ return ht;
1063
1097
  }
1064
1098
  function U(e) {
1065
- let t = gt.indexOf(e);
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 _t(e) {
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 vt(e) {
1076
- let t = H(e.sourceCeShape), n = new Set(t), r = e.now ?? (() => (/* @__PURE__ */ new Date()).toISOString()), i = e.onUnexpectedTransition ?? _t, a = null, o = e.sectionId, s = e.attemptId, c = /* @__PURE__ */ new Set();
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 = gt[e];
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 yt = [
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
- ]), F("pie-overrides", () => I());
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 G = [
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 K(e) {
1190
- return !e.matches(G) || e.hasAttribute("disabled") || e.closest("[inert]") ? !1 : e.offsetParent !== null || e.getClientRects().length > 0;
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 bt(e) {
1195
- return Array.from(e.querySelectorAll(G)).filter((e) => K(e));
1228
+ function q(e) {
1229
+ return Array.from(e.querySelectorAll(K)).filter((e) => yt(e));
1196
1230
  }
1197
- function xt(e, t) {
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 = bt(e);
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 St(e, t = {}) {
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 = bt(e);
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(() => xt(e, t.initialFocus)), e.addEventListener("keydown", i), () => {
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 { vt as a, $e as c, yt as i, Ye as l, G as n, ht as o, K as r, ut as s, St as t };
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-DjmdIRjq.js.map
1275
+ //# sourceMappingURL=dist-Nkkk25AH.js.map