@pie-qti/player-elements 0.1.21 → 0.1.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{define-XpbOHJoz.js → define-Bkc2UFCK.js} +2994 -2732
- package/dist/define-Bkc2UFCK.js.map +1 -0
- package/dist/{dist-CU6ScSS-.js → dist-C0bIgnik.js} +1 -1
- package/dist/{dist-CU6ScSS-.js.map → dist-C0bIgnik.js.map} +1 -1
- package/dist/{dist-CxqtFqGy.js → dist-CPyrAOfS.js} +3 -3
- package/dist/{dist-CxqtFqGy.js.map → dist-CPyrAOfS.js.map} +1 -1
- package/dist/{dist-Nkkk25AH.js → dist-DU1nH3y8.js} +192 -220
- package/dist/dist-DU1nH3y8.js.map +1 -0
- package/dist/{dist-4hIHy9-L.js → dist-_mWRIrTg.js} +48 -49
- package/dist/{dist-4hIHy9-L.js.map → dist-_mWRIrTg.js.map} +1 -1
- package/dist/{element-DNnKo2Uk.js → element-BrpUrZI4.js} +2 -2
- package/dist/{element-DNnKo2Uk.js.map → element-BrpUrZI4.js.map} +1 -1
- package/dist/{element-class-iN9MRyjF-D6u8ACFm.js → element-class-DWoLXp_r-ms67Krq-.js} +1898 -1924
- package/dist/element-class-DWoLXp_r-ms67Krq-.js.map +1 -0
- package/dist/elements.js +3 -3
- package/dist/index.js +3 -3
- package/dist/{item-toolbar-element-3k36WOlC.js → item-toolbar-element-DFppTi_H.js} +1617 -1688
- package/dist/{item-toolbar-element-3k36WOlC.js.map → item-toolbar-element-DFppTi_H.js.map} +1 -1
- package/dist/mathlive.min-3RSVNrlY-rQOKt03P.js +4 -0
- package/dist/mathlive.min-3RSVNrlY-rQOKt03P.js.map +1 -0
- package/dist/{pie-assessment-toolkit-element-CP-OMtE6.js → pie-assessment-toolkit-element-DlSFT_I2.js} +4650 -4687
- package/dist/pie-assessment-toolkit-element-DlSFT_I2.js.map +1 -0
- package/dist/pie-tool-calculator-BGp3etqJ.js +2226 -0
- package/dist/{pie-tool-calculator-VzYEjxiY.js.map → pie-tool-calculator-BGp3etqJ.js.map} +1 -1
- package/dist/register-players.js +1 -1
- package/dist/register-players.js.map +1 -1
- package/dist/register.js +7844 -7833
- package/dist/register.js.map +1 -1
- package/dist/{resolveItems-hMDtJOXa.js → resolveItems-XtUnsftV.js} +1808 -2164
- package/dist/resolveItems-XtUnsftV.js.map +1 -0
- package/dist/{chunk-foFoljWS.js → rolldown-runtime-CEFd7nDs.js} +10 -3
- package/dist/{root--0fyaoNu.js → root-DBWhDxjY.js} +2 -2
- package/dist/{root--0fyaoNu.js.map → root-DBWhDxjY.js.map} +1 -1
- package/dist/{sre-CFPLI6BY.js → sre-BD1SyGce.js} +105 -85
- package/dist/{sre-CFPLI6BY.js.map → sre-BD1SyGce.js.map} +1 -1
- package/dist/{tag-names-ClLtKtXt.js → tag-names-DV56RHJk.js} +2 -2
- package/dist/{tag-names-ClLtKtXt.js.map → tag-names-DV56RHJk.js.map} +1 -1
- package/dist/{tool-tts-inline-B-xT_sdY.js → tool-tts-inline-DVUYjVnD.js} +784 -851
- package/dist/{tool-tts-inline-B-xT_sdY.js.map → tool-tts-inline-DVUYjVnD.js.map} +1 -1
- package/package.json +7 -7
- package/dist/define-XpbOHJoz.js.map +0 -1
- package/dist/dist-Nkkk25AH.js.map +0 -1
- package/dist/element-class-iN9MRyjF-D6u8ACFm.js.map +0 -1
- package/dist/mathlive.min-DeR46YTX-DamfKay_.js +0 -38802
- package/dist/mathlive.min-DeR46YTX-DamfKay_.js.map +0 -1
- package/dist/pie-assessment-toolkit-element-CP-OMtE6.js.map +0 -1
- package/dist/pie-tool-calculator-VzYEjxiY.js +0 -2309
- package/dist/resolveItems-hMDtJOXa.js.map +0 -1
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import "./tag-names-ClLtKtXt.js";
|
|
2
1
|
//#region ../../node_modules/.bun/dompurify@3.4.13/node_modules/dompurify/dist/purify.es.mjs
|
|
3
2
|
function e(e, t) {
|
|
4
3
|
(t == null || t > e.length) && (t = e.length);
|
|
@@ -86,7 +85,7 @@ function E(e) {
|
|
|
86
85
|
for (let r of o(e)) {
|
|
87
86
|
var n = i(r, 2);
|
|
88
87
|
let a = n[0], o = n[1];
|
|
89
|
-
v(e, a) && (h(o) ?
|
|
88
|
+
v(e, a) && (t[a] = h(o) ? T(o) : o && typeof o == "object" && o.constructor === Object ? E(o) : o);
|
|
90
89
|
}
|
|
91
90
|
return t;
|
|
92
91
|
}
|
|
@@ -257,43 +256,43 @@ function Ge() {
|
|
|
257
256
|
e.DocumentFragment;
|
|
258
257
|
let a = e.HTMLTemplateElement, s = e.Node, c = e.Element, l = e.NodeFilter;
|
|
259
258
|
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,
|
|
259
|
+
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, Ke = s && s.prototype ? D(s.prototype, "ownerDocument") : null;
|
|
261
260
|
if (typeof a == "function") {
|
|
262
261
|
let e = n.createElement("template");
|
|
263
262
|
e.content && e.content.ownerDocument && (n = e.content.ownerDocument);
|
|
264
263
|
}
|
|
265
|
-
let
|
|
266
|
-
if (
|
|
267
|
-
},
|
|
268
|
-
|
|
264
|
+
let A, j = "", qe, Je = !1, M = 0, Ye = function() {
|
|
265
|
+
if (M > 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.");
|
|
266
|
+
}, N = function(e) {
|
|
267
|
+
Ye(), M++;
|
|
269
268
|
try {
|
|
270
|
-
return
|
|
269
|
+
return A.createHTML(e);
|
|
271
270
|
} finally {
|
|
272
|
-
|
|
271
|
+
M--;
|
|
273
272
|
}
|
|
274
|
-
},
|
|
275
|
-
|
|
273
|
+
}, Xe = function(e) {
|
|
274
|
+
Ye(), M++;
|
|
276
275
|
try {
|
|
277
|
-
return
|
|
276
|
+
return A.createScriptURL(e);
|
|
278
277
|
} finally {
|
|
279
|
-
|
|
278
|
+
M--;
|
|
280
279
|
}
|
|
281
|
-
},
|
|
282
|
-
return
|
|
283
|
-
},
|
|
284
|
-
t.isSupported = typeof o == "function" && typeof _ == "function" &&
|
|
285
|
-
let
|
|
280
|
+
}, Ze = function() {
|
|
281
|
+
return Je ||= (qe = Ue(ee, i), !0), qe;
|
|
282
|
+
}, Qe = n, $e = Qe.implementation, et = Qe.createNodeIterator, tt = Qe.createDocumentFragment, nt = Qe.getElementsByTagName, rt = r.importNode, P = We();
|
|
283
|
+
t.isSupported = typeof o == "function" && typeof _ == "function" && $e && $e.createHTMLDocument !== void 0;
|
|
284
|
+
let it = Oe, at = ke, ot = Ae, F = je, I = Me, st = Pe, ct = Fe, lt = Le, ut = Ne, L = null, dt = w({}, [
|
|
286
285
|
..._e,
|
|
287
286
|
...ve,
|
|
288
287
|
...ye,
|
|
289
288
|
...xe,
|
|
290
289
|
...Ce
|
|
291
|
-
]),
|
|
290
|
+
]), R = null, ft = w({}, [
|
|
292
291
|
...we,
|
|
293
292
|
...Te,
|
|
294
293
|
...Ee,
|
|
295
294
|
...De
|
|
296
|
-
]),
|
|
295
|
+
]), z = Object.seal(p(null, {
|
|
297
296
|
tagNameCheck: {
|
|
298
297
|
writable: !0,
|
|
299
298
|
configurable: !1,
|
|
@@ -312,7 +311,7 @@ function Ge() {
|
|
|
312
311
|
enumerable: !0,
|
|
313
312
|
value: !1
|
|
314
313
|
}
|
|
315
|
-
})),
|
|
314
|
+
})), B = null, pt = null, V = Object.seal(p(null, {
|
|
316
315
|
tagCheck: {
|
|
317
316
|
writable: !0,
|
|
318
317
|
configurable: !1,
|
|
@@ -325,7 +324,7 @@ function Ge() {
|
|
|
325
324
|
enumerable: !0,
|
|
326
325
|
value: null
|
|
327
326
|
}
|
|
328
|
-
})),
|
|
327
|
+
})), mt = !0, ht = !0, gt = !1, _t = !0, H = !1, U = !0, W = !1, vt = !1, G = 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
328
|
"audio",
|
|
330
329
|
"video",
|
|
331
330
|
"img",
|
|
@@ -368,29 +367,29 @@ function Ge() {
|
|
|
368
367
|
}, Yt = function() {
|
|
369
368
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
370
369
|
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, X = Wt === "application/xhtml+xml" ? ce : se,
|
|
370
|
+
(!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, L = k(e, "ALLOWED_TAGS", dt, { transform: X }), R = k(e, "ALLOWED_ATTR", ft, { transform: X }), Lt = k(e, "ALLOWED_NAMESPACES", Rt, { transform: ce }), jt = k(e, "ADD_URI_SAFE_ATTR", Mt, {
|
|
372
371
|
transform: X,
|
|
373
372
|
base: Mt
|
|
374
373
|
}), kt = k(e, "ADD_DATA_URI_TAGS", At, {
|
|
375
374
|
transform: X,
|
|
376
375
|
base: At
|
|
377
|
-
}), J = k(e, "FORBID_CONTENTS", Ot, { transform: X }),
|
|
376
|
+
}), J = k(e, "FORBID_CONTENTS", Ot, { transform: X }), B = k(e, "FORBID_TAGS", E({}), { transform: X }), pt = 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, mt = e.ALLOW_ARIA_ATTR !== !1, ht = e.ALLOW_DATA_ATTR !== !1, gt = e.ALLOW_UNKNOWN_PROTOCOLS || !1, _t = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, H = e.SAFE_FOR_TEMPLATES || !1, U = e.SAFE_FOR_XML !== !1, W = 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, ut = 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
377
|
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 (
|
|
378
|
+
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 && (ht = !1), bt && (q = !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 === dt && (L = E(L)), w(L, e.ADD_TAGS, X))), v(e, "ADD_ATTR") && (typeof e.ADD_ATTR == "function" ? V.attributeCheck = e.ADD_ATTR : h(e.ADD_ATTR) && (R === ft && (R = E(R)), w(R, 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 && (L["#text"] = !0), W && w(L, [
|
|
380
379
|
"html",
|
|
381
380
|
"head",
|
|
382
381
|
"body"
|
|
383
|
-
]),
|
|
382
|
+
]), L.table && (w(L, ["tbody"]), delete B.tbody), e.TRUSTED_TYPES_POLICY) {
|
|
384
383
|
if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function") throw x("TRUSTED_TYPES_POLICY configuration option must provide a \"createHTML\" hook.");
|
|
385
384
|
if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function") throw x("TRUSTED_TYPES_POLICY configuration option must provide a \"createScriptURL\" hook.");
|
|
386
|
-
let t =
|
|
387
|
-
|
|
385
|
+
let t = A;
|
|
386
|
+
A = e.TRUSTED_TYPES_POLICY;
|
|
388
387
|
try {
|
|
389
|
-
|
|
388
|
+
j = N("");
|
|
390
389
|
} catch (e) {
|
|
391
|
-
throw
|
|
390
|
+
throw A = t, e;
|
|
392
391
|
}
|
|
393
|
-
} else e.TRUSTED_TYPES_POLICY === null ? (
|
|
392
|
+
} else e.TRUSTED_TYPES_POLICY === null ? (A = void 0, j = "") : (A === void 0 && (A = Ze()), A && typeof j == "string" && (j = N("")));
|
|
394
393
|
d && d(e), Kt = e;
|
|
395
394
|
}, Xt = w({}, [
|
|
396
395
|
...ve,
|
|
@@ -449,17 +448,19 @@ function Ge() {
|
|
|
449
448
|
from: n
|
|
450
449
|
});
|
|
451
450
|
}
|
|
452
|
-
if (n.removeAttribute(e), e === "is")
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
451
|
+
if (n.removeAttribute(e), e === "is") {
|
|
452
|
+
if (q || bt) try {
|
|
453
|
+
Z(n);
|
|
454
|
+
} catch {}
|
|
455
|
+
else try {
|
|
456
|
+
n.setAttribute(e, "");
|
|
457
|
+
} catch {}
|
|
458
|
+
}
|
|
458
459
|
}, rn = function(e) {
|
|
459
460
|
let t = S(e);
|
|
460
461
|
if (t) for (let n = t.length - 1; n >= 0; --n) {
|
|
461
462
|
let r = t[n], i = r && r.name;
|
|
462
|
-
if (!(typeof i != "string" ||
|
|
463
|
+
if (!(typeof i != "string" || R[X(i)])) try {
|
|
463
464
|
e.removeAttribute(i);
|
|
464
465
|
} catch {}
|
|
465
466
|
}
|
|
@@ -472,7 +473,7 @@ function Ge() {
|
|
|
472
473
|
if (n) for (let e = n.length - 1; e >= 0; --e) t.push(n[e]);
|
|
473
474
|
}
|
|
474
475
|
}, on = function(e) {
|
|
475
|
-
if (!
|
|
476
|
+
if (!U) return;
|
|
476
477
|
let t = [e];
|
|
477
478
|
for (; t.length > 0;) {
|
|
478
479
|
let e = t.pop(), n = C ? C(e) : e.nodeType;
|
|
@@ -499,26 +500,26 @@ function Ge() {
|
|
|
499
500
|
r = t && t[0];
|
|
500
501
|
}
|
|
501
502
|
Wt === "application/xhtml+xml" && Ft === Y && (e = "<html xmlns=\"http://www.w3.org/1999/xhtml\"><head></head><body>" + e + "</body></html>");
|
|
502
|
-
let i =
|
|
503
|
+
let i = A ? N(e) : e;
|
|
503
504
|
if (Ft === Y) try {
|
|
504
505
|
t = new u().parseFromString(i, Wt);
|
|
505
506
|
} catch {}
|
|
506
507
|
if (!t || !t.documentElement) {
|
|
507
|
-
t =
|
|
508
|
+
t = $e.createDocument(Ft, "template", null);
|
|
508
509
|
try {
|
|
509
|
-
t.documentElement.innerHTML = It ?
|
|
510
|
+
t.documentElement.innerHTML = It ? j : i;
|
|
510
511
|
} catch {}
|
|
511
512
|
}
|
|
512
513
|
let a = t.body || t.documentElement;
|
|
513
|
-
return e && r && a.insertBefore(n.createTextNode(r), a.childNodes[0] || null), Ft === Y ?
|
|
514
|
+
return e && r && a.insertBefore(n.createTextNode(r), a.childNodes[0] || null), Ft === Y ? nt.call(t, W ? "html" : "body")[0] : W ? t.documentElement : a;
|
|
514
515
|
}, cn = function(e) {
|
|
515
|
-
let t =
|
|
516
|
-
return
|
|
516
|
+
let t = Ke ? Ke(e) : e.ownerDocument;
|
|
517
|
+
return et.call(t || e, e, l.SHOW_ELEMENT | l.SHOW_COMMENT | l.SHOW_TEXT | l.SHOW_PROCESSING_INSTRUCTION | l.SHOW_CDATA_SECTION, null);
|
|
517
518
|
}, ln = function(e) {
|
|
518
|
-
return e = ue(e,
|
|
519
|
+
return e = ue(e, it, " "), e = ue(e, at, " "), e = ue(e, ot, " "), e;
|
|
519
520
|
}, un = function(e) {
|
|
520
521
|
e.normalize();
|
|
521
|
-
let t =
|
|
522
|
+
let t = Ke ? Ke(e) : e.ownerDocument, n = et.call(t || e, e, l.SHOW_TEXT | l.SHOW_COMMENT | l.SHOW_CDATA_SECTION | l.SHOW_PROCESSING_INSTRUCTION, null), r = n.nextNode();
|
|
522
523
|
for (; r;) r.data = ln(r.data), r = n.nextNode();
|
|
523
524
|
let i = e.querySelectorAll?.call(e, "template");
|
|
524
525
|
i && ne(i, (e) => {
|
|
@@ -548,9 +549,9 @@ function Ge() {
|
|
|
548
549
|
});
|
|
549
550
|
}
|
|
550
551
|
let mn = function(e, t) {
|
|
551
|
-
return !!(
|
|
552
|
+
return !!(U && e.hasChildNodes() && !pn(e.firstElementChild) && b(Re, e.textContent) && b(Re, e.innerHTML) || U && e.namespaceURI === Y && t === "style" && pn(e.firstElementChild) || e.nodeType === O.processingInstruction || U && e.nodeType === O.comment && b(ze, e.data));
|
|
552
553
|
}, hn = function(e, t, n) {
|
|
553
|
-
if (!
|
|
554
|
+
if (!B[t] && bn(t) && (z.tagNameCheck instanceof RegExp && b(z.tagNameCheck, t) || z.tagNameCheck instanceof Function && z.tagNameCheck(t))) return !1;
|
|
554
555
|
if (Tt && !J[t]) {
|
|
555
556
|
let t = _(e), r = g(e);
|
|
556
557
|
if (r && t) {
|
|
@@ -565,31 +566,31 @@ function Ge() {
|
|
|
565
566
|
}, gn = function(e, t, n, r) {
|
|
566
567
|
return e.length === 0 ? t : t === n || t === r ? E(t) : t;
|
|
567
568
|
}, _n = function(e, n) {
|
|
568
|
-
if ($(
|
|
569
|
+
if ($(P.beforeSanitizeElements, e, null), e !== n && _(e) === null) return Et && an(e), !0;
|
|
569
570
|
if (dn(e)) return Z(e), !0;
|
|
570
571
|
let r = X(T ? T(e) : e.nodeName);
|
|
571
|
-
if (
|
|
572
|
+
if (L = gn(P.uponSanitizeElement, L, dt, G), $(P.uponSanitizeElement, e, {
|
|
572
573
|
tagName: r,
|
|
573
|
-
allowedTags:
|
|
574
|
+
allowedTags: L
|
|
574
575
|
}), e !== n && _(e) === null) return Et && an(e), !0;
|
|
575
576
|
if (mn(e, r)) return Z(e), !0;
|
|
576
|
-
if (
|
|
577
|
+
if (B[r] || !(V.tagCheck instanceof Function && V.tagCheck(r)) && !L[r]) {
|
|
577
578
|
let t = hn(e, r, n);
|
|
578
|
-
return t === !1 && $(
|
|
579
|
+
return t === !1 && $(P.afterSanitizeElements, e, null), t;
|
|
579
580
|
}
|
|
580
581
|
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 (
|
|
582
|
+
if (H && e.nodeType === O.text) {
|
|
582
583
|
let n = ln(e.textContent);
|
|
583
584
|
e.textContent !== n && (ae(t.removed, { element: e.cloneNode() }), e.textContent = n);
|
|
584
585
|
}
|
|
585
|
-
return $(
|
|
586
|
+
return $(P.afterSanitizeElements, e, null), !1;
|
|
586
587
|
}, vn = function(e, t, r) {
|
|
587
|
-
if (
|
|
588
|
-
let i =
|
|
589
|
-
if (!(
|
|
588
|
+
if (pt[t] || U && t === "patchsrc" || U && t === "for" && e !== "label" && e !== "output" || St && (t === "id" || t === "name") && (r in n || r in qt)) return !1;
|
|
589
|
+
let i = R[t] || V.attributeCheck instanceof Function && V.attributeCheck(t, e);
|
|
590
|
+
if (!(ht && b(F, t)) && !(mt && b(I, t))) {
|
|
590
591
|
if (!i) {
|
|
591
|
-
if (!(bn(e) && (
|
|
592
|
-
} else if (!jt[t] && !b(
|
|
592
|
+
if (!(bn(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;
|
|
593
|
+
} else if (!jt[t] && !b(ut, ue(r, ct, "")) && !((t === "src" || t === "xlink:href" || t === "href") && e !== "script" && de(r, "data:") === 0 && kt[e]) && !(gt && !b(st, ue(r, ct, ""))) && r) return !1;
|
|
593
594
|
}
|
|
594
595
|
return !0;
|
|
595
596
|
}, yn = w({}, [
|
|
@@ -602,11 +603,11 @@ function Ge() {
|
|
|
602
603
|
"font-face-uri",
|
|
603
604
|
"missing-glyph"
|
|
604
605
|
]), bn = function(e) {
|
|
605
|
-
return !yn[se(e)] && b(
|
|
606
|
+
return !yn[se(e)] && b(lt, e);
|
|
606
607
|
}, xn = function(e, t, n, r) {
|
|
607
|
-
if (
|
|
608
|
-
case "TrustedHTML": return
|
|
609
|
-
case "TrustedScriptURL": return
|
|
608
|
+
if (A && typeof ee == "object" && typeof ee.getAttributeType == "function" && !n) switch (ee.getAttributeType(e, t)) {
|
|
609
|
+
case "TrustedHTML": return N(r);
|
|
610
|
+
case "TrustedScriptURL": return Xe(r);
|
|
610
611
|
}
|
|
611
612
|
return r;
|
|
612
613
|
}, Sn = function(e, n, r, i) {
|
|
@@ -616,20 +617,20 @@ function Ge() {
|
|
|
616
617
|
Q(n, e);
|
|
617
618
|
}
|
|
618
619
|
}, Cn = function(e) {
|
|
619
|
-
$(
|
|
620
|
+
$(P.beforeSanitizeAttributes, e, null);
|
|
620
621
|
let t = e.attributes;
|
|
621
622
|
if (!t || dn(e)) return;
|
|
622
|
-
|
|
623
|
+
R = gn(P.uponSanitizeAttribute, R, ft, K);
|
|
623
624
|
let n = {
|
|
624
625
|
attrName: "",
|
|
625
626
|
attrValue: "",
|
|
626
627
|
keepAttr: !0,
|
|
627
|
-
allowedAttributes:
|
|
628
|
+
allowedAttributes: R,
|
|
628
629
|
forceKeepAttr: void 0
|
|
629
630
|
}, r = t.length, i = X(e.nodeName);
|
|
630
631
|
for (; r--;) {
|
|
631
632
|
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, $(
|
|
633
|
+
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 && (Q(o, e), d = wt + d), U && b(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, d)) {
|
|
633
634
|
Q(o, e);
|
|
634
635
|
continue;
|
|
635
636
|
}
|
|
@@ -642,25 +643,25 @@ function Ge() {
|
|
|
642
643
|
Q(o, e);
|
|
643
644
|
continue;
|
|
644
645
|
}
|
|
645
|
-
if (!
|
|
646
|
+
if (!_t && b(Ve, d)) {
|
|
646
647
|
Q(o, e);
|
|
647
648
|
continue;
|
|
648
649
|
}
|
|
649
|
-
if (
|
|
650
|
+
if (H && (d = ln(d)), !vn(i, l, d)) {
|
|
650
651
|
Q(o, e);
|
|
651
652
|
continue;
|
|
652
653
|
}
|
|
653
654
|
d = xn(i, l, s, d), d !== u && Sn(e, o, s, d);
|
|
654
655
|
}
|
|
655
656
|
}
|
|
656
|
-
$(
|
|
657
|
+
$(P.afterSanitizeAttributes, e, null);
|
|
657
658
|
}, wn = function(e) {
|
|
658
659
|
let t = null, n = cn(e);
|
|
659
|
-
for ($(
|
|
660
|
+
for ($(P.beforeSanitizeShadowDOM, e, null); t = n.nextNode();) if ($(P.uponSanitizeShadowNode, t, null), _n(t, e), Cn(t), fn(t.content) && wn(t.content), (C ? C(t) : t.nodeType) === O.element) {
|
|
660
661
|
let e = y(t);
|
|
661
662
|
fn(e) && (Tn(e), wn(e));
|
|
662
663
|
}
|
|
663
|
-
$(
|
|
664
|
+
$(P.afterSanitizeShadowDOM, e, null);
|
|
664
665
|
}, Tn = function(e) {
|
|
665
666
|
let t = [{
|
|
666
667
|
node: e,
|
|
@@ -703,14 +704,14 @@ function Ge() {
|
|
|
703
704
|
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = null, a = null, o = null, s = null;
|
|
704
705
|
if (It = !e, It && (e = "<!-->"), typeof e != "string" && !pn(e) && (e = he(e), typeof e != "string")) throw x("dirty is not a string, aborting");
|
|
705
706
|
if (!t.isSupported) return e;
|
|
706
|
-
|
|
707
|
+
vt ? (L = G, R = K) : Yt(n), (P.uponSanitizeElement.length > 0 || P.uponSanitizeAttribute.length > 0) && (L = E(L)), P.uponSanitizeAttribute.length > 0 && (R = E(R)), t.removed = [];
|
|
707
708
|
let c = Et && typeof e != "string" && pn(e);
|
|
708
709
|
if (c) {
|
|
709
710
|
on(e);
|
|
710
711
|
let t = T ? T(e) : e.nodeName;
|
|
711
712
|
if (typeof t == "string") {
|
|
712
713
|
let n = X(t);
|
|
713
|
-
if (!
|
|
714
|
+
if (!L[n] || B[n]) throw nn(e), x("root node is forbidden and cannot be sanitized in-place");
|
|
714
715
|
}
|
|
715
716
|
if (dn(e)) throw nn(e), x("root node is clobbered and cannot be sanitized in-place");
|
|
716
717
|
try {
|
|
@@ -720,8 +721,8 @@ function Ge() {
|
|
|
720
721
|
}
|
|
721
722
|
} 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);
|
|
722
723
|
else {
|
|
723
|
-
if (!q && !
|
|
724
|
-
if (i = sn(e), !i) return q ? null : xt ?
|
|
724
|
+
if (!q && !H && !W && e.indexOf("<") === -1) return A && xt ? N(e) : e;
|
|
725
|
+
if (i = sn(e), !i) return q ? null : xt ? j : "";
|
|
725
726
|
}
|
|
726
727
|
i && yt && Z(i.firstChild);
|
|
727
728
|
let l = c ? e : i;
|
|
@@ -735,44 +736,47 @@ function Ge() {
|
|
|
735
736
|
}
|
|
736
737
|
if (c) return ne(t.removed, (e) => {
|
|
737
738
|
e.element && an(e.element);
|
|
738
|
-
}),
|
|
739
|
+
}), H && un(e), e;
|
|
739
740
|
if (q) {
|
|
740
|
-
if (
|
|
741
|
+
if (H && un(i), bt) for (s = tt.call(i.ownerDocument); i.firstChild;) s.appendChild(i.firstChild);
|
|
741
742
|
else s = i;
|
|
742
|
-
return (
|
|
743
|
+
return (R.shadowroot || R.shadowrootmode) && (s = rt.call(r, s, !0)), s;
|
|
743
744
|
}
|
|
744
|
-
let u =
|
|
745
|
-
return
|
|
745
|
+
let u = W ? i.outerHTML : i.innerHTML;
|
|
746
|
+
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 = ln(u)), A && xt ? N(u) : u;
|
|
746
747
|
}, t.setConfig = function() {
|
|
747
|
-
|
|
748
|
+
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
749
|
+
Yt(e), vt = !0, G = L, K = R;
|
|
748
750
|
}, t.clearConfig = function() {
|
|
749
|
-
Kt = null,
|
|
751
|
+
Kt = null, vt = !1, G = null, K = null, A = qe, j = "";
|
|
750
752
|
}, t.isValidAttribute = function(e, t, n) {
|
|
751
|
-
|
|
753
|
+
Kt || Yt({});
|
|
754
|
+
let r = X(e), i = X(t);
|
|
755
|
+
return vn(r, i, n);
|
|
752
756
|
}, t.addHook = function(e, t) {
|
|
753
|
-
typeof t == "function" && v(
|
|
757
|
+
typeof t == "function" && v(P, e) && ae(P[e], t);
|
|
754
758
|
}, t.removeHook = function(e, t) {
|
|
755
|
-
if (v(
|
|
759
|
+
if (v(P, e)) {
|
|
756
760
|
if (t !== void 0) {
|
|
757
|
-
let n = re(
|
|
758
|
-
return n === -1 ? void 0 : oe(
|
|
761
|
+
let n = re(P[e], t);
|
|
762
|
+
return n === -1 ? void 0 : oe(P[e], n, 1)[0];
|
|
759
763
|
}
|
|
760
|
-
return ie(
|
|
764
|
+
return ie(P[e]);
|
|
761
765
|
}
|
|
762
766
|
}, t.removeHooks = function(e) {
|
|
763
|
-
v(
|
|
767
|
+
v(P, e) && (P[e] = []);
|
|
764
768
|
}, t.removeAllHooks = function() {
|
|
765
|
-
|
|
769
|
+
P = We();
|
|
766
770
|
}, t;
|
|
767
771
|
}
|
|
768
|
-
var
|
|
769
|
-
function
|
|
770
|
-
if (
|
|
772
|
+
var Ke = Ge(), A = null;
|
|
773
|
+
function j() {
|
|
774
|
+
if (A) return A;
|
|
771
775
|
if (typeof window > "u" || !window.document) return null;
|
|
772
|
-
let e =
|
|
773
|
-
return
|
|
776
|
+
let e = Ke;
|
|
777
|
+
return A = typeof e == "function" ? e(window) : Ke, A;
|
|
774
778
|
}
|
|
775
|
-
var
|
|
779
|
+
var qe = [
|
|
776
780
|
"script",
|
|
777
781
|
"foreignobject",
|
|
778
782
|
"iframe",
|
|
@@ -780,7 +784,7 @@ var Ke = [
|
|
|
780
784
|
"embed",
|
|
781
785
|
"base",
|
|
782
786
|
"form"
|
|
783
|
-
],
|
|
787
|
+
], Je = [
|
|
784
788
|
"onerror",
|
|
785
789
|
"onload",
|
|
786
790
|
"onclick",
|
|
@@ -795,30 +799,30 @@ var Ke = [
|
|
|
795
799
|
"onkeypress",
|
|
796
800
|
"formaction",
|
|
797
801
|
"xlink:href"
|
|
798
|
-
],
|
|
799
|
-
function
|
|
802
|
+
], M = /* @__PURE__ */ new Map(), Ye = 64;
|
|
803
|
+
function N(e) {
|
|
800
804
|
if (typeof e != "string" || e.length === 0 || !e.trimStart().toLowerCase().startsWith("<svg")) return "";
|
|
801
|
-
let t =
|
|
805
|
+
let t = M.get(e);
|
|
802
806
|
if (t !== void 0) return t;
|
|
803
|
-
let n =
|
|
807
|
+
let n = j();
|
|
804
808
|
if (!n) return "";
|
|
805
809
|
let r = n.sanitize(e, {
|
|
806
810
|
USE_PROFILES: {
|
|
807
811
|
svg: !0,
|
|
808
812
|
svgFilters: !0
|
|
809
813
|
},
|
|
810
|
-
FORBID_TAGS:
|
|
811
|
-
FORBID_ATTR:
|
|
814
|
+
FORBID_TAGS: qe,
|
|
815
|
+
FORBID_ATTR: Je,
|
|
812
816
|
ALLOW_UNKNOWN_PROTOCOLS: !1,
|
|
813
817
|
RETURN_TRUSTED_TYPE: !1
|
|
814
818
|
}), i = typeof r == "string" ? r : String(r ?? "");
|
|
815
|
-
if (
|
|
816
|
-
let e = [...
|
|
817
|
-
for (let t = 0; t < e.length / 2; t += 1)
|
|
819
|
+
if (M.size >= Ye) {
|
|
820
|
+
let e = [...M.keys()];
|
|
821
|
+
for (let t = 0; t < e.length / 2; t += 1) M.delete(e[t]);
|
|
818
822
|
}
|
|
819
|
-
return
|
|
823
|
+
return M.set(e, i), i;
|
|
820
824
|
}
|
|
821
|
-
function
|
|
825
|
+
function Xe(e) {
|
|
822
826
|
try {
|
|
823
827
|
let t = {
|
|
824
828
|
BASE_URL: "/",
|
|
@@ -826,12 +830,12 @@ function Ye(e) {
|
|
|
826
830
|
MODE: "production",
|
|
827
831
|
PROD: !0,
|
|
828
832
|
SSR: !1
|
|
829
|
-
}
|
|
833
|
+
}[e];
|
|
830
834
|
if (typeof t == "string" && t.length > 0) return t;
|
|
831
835
|
} catch {}
|
|
832
836
|
}
|
|
833
|
-
typeof window < "u" && window.PIE_BUILDER_ORIGIN_URL ||
|
|
834
|
-
var
|
|
837
|
+
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");
|
|
838
|
+
var Ze = class {
|
|
835
839
|
initialized = !1;
|
|
836
840
|
config;
|
|
837
841
|
trackError(e, t) {
|
|
@@ -892,7 +896,7 @@ var Xe = class {
|
|
|
892
896
|
transformAttributes(e) {
|
|
893
897
|
return this.config?.attributeTransformer ? this.config.attributeTransformer(e) : e;
|
|
894
898
|
}
|
|
895
|
-
},
|
|
899
|
+
}, Qe = class extends Ze {
|
|
896
900
|
providerId = "newrelic";
|
|
897
901
|
providerName = "New Relic";
|
|
898
902
|
async initialize(e) {
|
|
@@ -921,49 +925,49 @@ var Xe = class {
|
|
|
921
925
|
};
|
|
922
926
|
//#endregion
|
|
923
927
|
//#region ../../node_modules/.bun/@pie-players+pie-players-shared@0.3.53/node_modules/@pie-players/pie-players-shared/dist/instrumentation/provider-guards.js
|
|
924
|
-
function
|
|
928
|
+
function $e(e) {
|
|
925
929
|
if (!e || typeof e != "object") return !1;
|
|
926
930
|
let t = e;
|
|
927
931
|
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";
|
|
928
932
|
}
|
|
929
933
|
//#endregion
|
|
930
934
|
//#region ../../node_modules/.bun/@pie-players+pie-players-shared@0.3.53/node_modules/@pie-players/pie-players-shared/dist/loader-config.js
|
|
931
|
-
var
|
|
935
|
+
var et = {
|
|
932
936
|
retryDelayMs: 3e3,
|
|
933
937
|
timeoutMs: 12e4
|
|
934
|
-
},
|
|
938
|
+
}, tt;
|
|
935
939
|
(function(e) {
|
|
936
940
|
e.player = "player.js", e.clientPlayer = "client-player.js", e.editor = "editor.js";
|
|
937
|
-
})(
|
|
938
|
-
var
|
|
941
|
+
})(tt ||= {});
|
|
942
|
+
var nt;
|
|
939
943
|
(function(e) {
|
|
940
944
|
e.loading = "loading", e.loaded = "loaded";
|
|
941
|
-
})(
|
|
945
|
+
})(nt ||= {}), et.timeoutMs;
|
|
942
946
|
//#endregion
|
|
943
947
|
//#region ../../node_modules/.bun/@pie-players+pie-players-shared@0.3.53/node_modules/@pie-players/pie-players-shared/dist/types/index.js
|
|
944
|
-
var
|
|
948
|
+
var rt;
|
|
945
949
|
(function(e) {
|
|
946
950
|
e.SAVE = "save", e.MODEL = "model", e.SCORE = "score", e.MANUAL_SCORE = "manual-score";
|
|
947
|
-
})(
|
|
948
|
-
var
|
|
951
|
+
})(rt ||= {});
|
|
952
|
+
var P;
|
|
949
953
|
(function(e) {
|
|
950
954
|
e.AUTO = "auto", e.MANUAL = "manual";
|
|
951
|
-
})(
|
|
952
|
-
var rt;
|
|
953
|
-
(function(e) {
|
|
954
|
-
e.GATHER = "gather", e.VIEW = "view", e.EVALUATE = "evaluate";
|
|
955
|
-
})(rt ||= {});
|
|
955
|
+
})(P ||= {});
|
|
956
956
|
var it;
|
|
957
957
|
(function(e) {
|
|
958
|
-
e.
|
|
958
|
+
e.GATHER = "gather", e.VIEW = "view", e.EVALUATE = "evaluate";
|
|
959
959
|
})(it ||= {});
|
|
960
960
|
var at;
|
|
961
961
|
(function(e) {
|
|
962
|
-
e
|
|
962
|
+
e.PENDING = "pending", e.IN_PROGRESS = "in_progress", e.COMPLETED = "completed", e.FAILED = "failed";
|
|
963
963
|
})(at ||= {});
|
|
964
|
+
var ot;
|
|
965
|
+
(function(e) {
|
|
966
|
+
e[e.ROOT = 0] = "ROOT", e[e.SUBJECT = 1] = "SUBJECT", e[e.LEVEL = 2] = "LEVEL", e[e.STANDARD = 3] = "STANDARD";
|
|
967
|
+
})(ot ||= {});
|
|
964
968
|
//#endregion
|
|
965
969
|
//#region ../../node_modules/.bun/@pie-players+pie-players-shared@0.3.53/node_modules/@pie-players/pie-players-shared/dist/pie/logger.js
|
|
966
|
-
function
|
|
970
|
+
function F(e, t) {
|
|
967
971
|
let n = `[${e}]`;
|
|
968
972
|
return {
|
|
969
973
|
debug: (e, ...r) => {
|
|
@@ -974,20 +978,20 @@ function I(e, t) {
|
|
|
974
978
|
error: (e, ...t) => console.error(n, e, ...t)
|
|
975
979
|
};
|
|
976
980
|
}
|
|
977
|
-
function
|
|
981
|
+
function I() {
|
|
978
982
|
return typeof window < "u" && window.PIE_DEBUG === !0;
|
|
979
983
|
}
|
|
980
|
-
|
|
984
|
+
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());
|
|
981
985
|
//#endregion
|
|
982
986
|
//#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
|
|
983
|
-
var
|
|
984
|
-
function st(e) {
|
|
985
|
-
return e && typeof e == "object" ? e : e === void 0 ? {} : { value: e };
|
|
986
|
-
}
|
|
987
|
+
var st = F("instrumentation-event-bridge", () => I());
|
|
987
988
|
function ct(e) {
|
|
988
|
-
|
|
989
|
+
return e && typeof e == "object" ? e : e === void 0 ? {} : { value: e };
|
|
989
990
|
}
|
|
990
991
|
function lt(e) {
|
|
992
|
+
st.warn(`[InstrumentationEventBridge:${e}] Ignoring invalid instrumentation provider; expected InstrumentationProvider contract`);
|
|
993
|
+
}
|
|
994
|
+
function ut(e) {
|
|
991
995
|
try {
|
|
992
996
|
e.provider.trackError(e.error instanceof Error ? e.error : Error(String(e.error ?? "Unknown instrumentation bridge error")), {
|
|
993
997
|
component: e.component,
|
|
@@ -996,9 +1000,9 @@ function lt(e) {
|
|
|
996
1000
|
});
|
|
997
1001
|
} catch {}
|
|
998
1002
|
}
|
|
999
|
-
function
|
|
1003
|
+
function L(e) {
|
|
1000
1004
|
if (!e.host || !e.eventMap.length || !e.instrumentationProvider) return () => {};
|
|
1001
|
-
if (
|
|
1005
|
+
if (!$e(e.instrumentationProvider)) return e.debug && lt(e.component), () => {};
|
|
1002
1006
|
let t = e.instrumentationProvider, n = [], r = Math.max(0, e.dedupeWindowMs ?? 0), i = /* @__PURE__ */ new Map(), a = (e, t) => {
|
|
1003
1007
|
let n = [
|
|
1004
1008
|
t.assessmentId,
|
|
@@ -1014,7 +1018,7 @@ function R(e) {
|
|
|
1014
1018
|
let s = (n) => {
|
|
1015
1019
|
try {
|
|
1016
1020
|
if (!t.isReady() || e.shouldTrackEvent && !e.shouldTrackEvent(n)) return;
|
|
1017
|
-
let s =
|
|
1021
|
+
let s = ct(n.detail), c = (/* @__PURE__ */ new Date()).toISOString(), l = {
|
|
1018
1022
|
...s,
|
|
1019
1023
|
...e.staticAttributes,
|
|
1020
1024
|
component: e.component,
|
|
@@ -1028,7 +1032,7 @@ function R(e) {
|
|
|
1028
1032
|
}
|
|
1029
1033
|
t.trackEvent(o.instrumentationEventName, { ...l });
|
|
1030
1034
|
} catch (n) {
|
|
1031
|
-
|
|
1035
|
+
ut({
|
|
1032
1036
|
provider: t,
|
|
1033
1037
|
component: e.component,
|
|
1034
1038
|
error: n,
|
|
@@ -1046,14 +1050,14 @@ function R(e) {
|
|
|
1046
1050
|
}
|
|
1047
1051
|
//#endregion
|
|
1048
1052
|
//#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
|
|
1049
|
-
function
|
|
1053
|
+
function dt(e) {
|
|
1050
1054
|
return e && typeof e == "object" ? e : {};
|
|
1051
1055
|
}
|
|
1052
|
-
function
|
|
1053
|
-
let t =
|
|
1056
|
+
function R(e) {
|
|
1057
|
+
let t = dt(dt(e).loaderConfig);
|
|
1054
1058
|
return Object.keys(t).length > 0 ? t : null;
|
|
1055
1059
|
}
|
|
1056
|
-
function
|
|
1060
|
+
function ft(e) {
|
|
1057
1061
|
if (!e || !("instrumentationProvider" in e)) return { kind: "unset" };
|
|
1058
1062
|
let t = e.instrumentationProvider;
|
|
1059
1063
|
return t === null ? { kind: "null" } : t === void 0 ? { kind: "unset" } : {
|
|
@@ -1061,53 +1065,53 @@ function dt(e) {
|
|
|
1061
1065
|
value: t
|
|
1062
1066
|
};
|
|
1063
1067
|
}
|
|
1064
|
-
function
|
|
1068
|
+
function z(e) {
|
|
1065
1069
|
if (!e || !("trackPageActions" in e)) return;
|
|
1066
1070
|
let t = e.trackPageActions;
|
|
1067
1071
|
return typeof t == "boolean" ? t : void 0;
|
|
1068
1072
|
}
|
|
1069
|
-
function
|
|
1073
|
+
function B(e, t) {
|
|
1070
1074
|
return e.kind === "value" || e.kind === "null" ? e : t;
|
|
1071
1075
|
}
|
|
1072
|
-
var
|
|
1073
|
-
function
|
|
1074
|
-
return
|
|
1076
|
+
var pt, V = F("instrumentation-provider-resolution", () => I());
|
|
1077
|
+
function mt() {
|
|
1078
|
+
return pt || (pt = new Qe(), pt.initialize()), pt;
|
|
1075
1079
|
}
|
|
1076
|
-
function
|
|
1077
|
-
let t =
|
|
1080
|
+
function ht(e) {
|
|
1081
|
+
let t = R(e.runtimePlayer), n = R(e.player), r = z(t), i = z(n), a = r ?? i ?? !1, o = B(ft(t), ft(n));
|
|
1078
1082
|
if (o.kind !== "null") {
|
|
1079
|
-
if (o.kind === "unset") return a ?
|
|
1080
|
-
if (
|
|
1083
|
+
if (o.kind === "unset") return a ? mt() : void 0;
|
|
1084
|
+
if ($e(o.value)) return o.value;
|
|
1081
1085
|
if (e.debug) {
|
|
1082
1086
|
let t = e.component ? `[${e.component}] ` : "";
|
|
1083
|
-
|
|
1087
|
+
V.warn(`${t}Ignoring invalid instrumentation provider; expected InstrumentationProvider contract`);
|
|
1084
1088
|
}
|
|
1085
1089
|
}
|
|
1086
1090
|
}
|
|
1087
1091
|
//#endregion
|
|
1088
1092
|
//#region ../../node_modules/.bun/@pie-players+pie-players-shared@0.3.53/node_modules/@pie-players/pie-players-shared/dist/pie/stages.js
|
|
1089
|
-
var
|
|
1093
|
+
var gt = Object.freeze([
|
|
1090
1094
|
"composed",
|
|
1091
1095
|
"engine-ready",
|
|
1092
1096
|
"interactive",
|
|
1093
1097
|
"disposed"
|
|
1094
1098
|
]);
|
|
1095
|
-
function
|
|
1096
|
-
return
|
|
1099
|
+
function _t(e) {
|
|
1100
|
+
return gt;
|
|
1097
1101
|
}
|
|
1098
|
-
function
|
|
1099
|
-
let t =
|
|
1102
|
+
function H(e) {
|
|
1103
|
+
let t = gt.indexOf(e);
|
|
1100
1104
|
if (t === -1) throw Error(`Unknown stage \`${e}\``);
|
|
1101
1105
|
return t;
|
|
1102
1106
|
}
|
|
1103
1107
|
//#endregion
|
|
1104
1108
|
//#region ../../node_modules/.bun/@pie-players+pie-players-shared@0.3.53/node_modules/@pie-players/pie-players-shared/dist/pie/stage-tracker.js
|
|
1105
|
-
var
|
|
1106
|
-
function
|
|
1107
|
-
|
|
1109
|
+
var U = !1;
|
|
1110
|
+
function W(e) {
|
|
1111
|
+
U || (U = !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.`));
|
|
1108
1112
|
}
|
|
1109
|
-
function
|
|
1110
|
-
let t =
|
|
1113
|
+
function vt(e) {
|
|
1114
|
+
let t = _t(e.sourceCeShape), n = new Set(t), r = e.now ?? (() => (/* @__PURE__ */ new Date()).toISOString()), i = e.onUnexpectedTransition ?? W, a = null, o = e.sectionId, s = e.attemptId, c = /* @__PURE__ */ new Set();
|
|
1111
1115
|
function l(t, n) {
|
|
1112
1116
|
e.emit({
|
|
1113
1117
|
stage: t,
|
|
@@ -1120,14 +1124,14 @@ function _t(e) {
|
|
|
1120
1124
|
});
|
|
1121
1125
|
}
|
|
1122
1126
|
function u(e) {
|
|
1123
|
-
let t =
|
|
1127
|
+
let t = H(e), r = a === null ? 0 : H(a) + 1;
|
|
1124
1128
|
for (let e = r; e < t; e += 1) {
|
|
1125
|
-
let t =
|
|
1129
|
+
let t = gt[e];
|
|
1126
1130
|
n.has(t) || c.has(t) || (c.add(t), l(t, "skipped"));
|
|
1127
1131
|
}
|
|
1128
1132
|
}
|
|
1129
1133
|
function d(e, t = "entered") {
|
|
1130
|
-
let r =
|
|
1134
|
+
let r = H(e), o = a === null ? -1 : H(a);
|
|
1131
1135
|
if (t === "entered") {
|
|
1132
1136
|
if (c.has(e)) {
|
|
1133
1137
|
i({
|
|
@@ -1171,47 +1175,15 @@ function _t(e) {
|
|
|
1171
1175
|
getCurrent: p
|
|
1172
1176
|
};
|
|
1173
1177
|
}
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
},
|
|
1181
|
-
{
|
|
1182
|
-
sourceEventName: "runtime-owned",
|
|
1183
|
-
instrumentationEventName: "pie-toolkit-runtime-owned"
|
|
1184
|
-
},
|
|
1185
|
-
{
|
|
1186
|
-
sourceEventName: "runtime-inherited",
|
|
1187
|
-
instrumentationEventName: "pie-toolkit-runtime-inherited"
|
|
1188
|
-
},
|
|
1189
|
-
{
|
|
1190
|
-
sourceEventName: "toolkit-ready",
|
|
1191
|
-
instrumentationEventName: "pie-toolkit-ready"
|
|
1192
|
-
},
|
|
1193
|
-
{
|
|
1194
|
-
sourceEventName: "section-ready",
|
|
1195
|
-
instrumentationEventName: "pie-toolkit-section-ready"
|
|
1196
|
-
},
|
|
1197
|
-
{
|
|
1198
|
-
sourceEventName: "framework-error",
|
|
1199
|
-
instrumentationEventName: "pie-toolkit-framework-error"
|
|
1200
|
-
}
|
|
1201
|
-
];
|
|
1202
|
-
new Set([
|
|
1203
|
-
"id",
|
|
1204
|
-
"element",
|
|
1205
|
-
...new Set([
|
|
1206
|
-
"complete",
|
|
1207
|
-
"component",
|
|
1208
|
-
"timestamp",
|
|
1209
|
-
"sourceRuntimeId"
|
|
1210
|
-
])
|
|
1211
|
-
]), I("pie-overrides", () => L());
|
|
1178
|
+
[.../* @__PURE__ */ new Set([
|
|
1179
|
+
"complete",
|
|
1180
|
+
"component",
|
|
1181
|
+
"timestamp",
|
|
1182
|
+
"sourceRuntimeId"
|
|
1183
|
+
])], F("pie-overrides", () => I());
|
|
1212
1184
|
//#endregion
|
|
1213
1185
|
//#region ../../node_modules/.bun/@pie-players+pie-players-shared@0.3.53/node_modules/@pie-players/pie-players-shared/dist/ui/first-focusable.js
|
|
1214
|
-
var
|
|
1186
|
+
var G = [
|
|
1215
1187
|
"a[href]",
|
|
1216
1188
|
"button:not([disabled])",
|
|
1217
1189
|
"input:not([disabled]):not([type='hidden'])",
|
|
@@ -1220,21 +1192,21 @@ var K = [
|
|
|
1220
1192
|
"[contenteditable]:not([contenteditable='false'])",
|
|
1221
1193
|
"[tabindex]:not([tabindex='-1'])"
|
|
1222
1194
|
].join(",");
|
|
1223
|
-
function
|
|
1224
|
-
return !e.matches(
|
|
1195
|
+
function K(e) {
|
|
1196
|
+
return !e.matches(G) || e.hasAttribute("disabled") || e.closest("[inert]") ? !1 : e.offsetParent !== null || e.getClientRects().length > 0;
|
|
1225
1197
|
}
|
|
1226
1198
|
//#endregion
|
|
1227
1199
|
//#region ../../node_modules/.bun/@pie-players+pie-players-shared@0.3.53/node_modules/@pie-players/pie-players-shared/dist/ui/focus-trap.js
|
|
1228
|
-
function
|
|
1229
|
-
return Array.from(e.querySelectorAll(
|
|
1200
|
+
function yt(e) {
|
|
1201
|
+
return Array.from(e.querySelectorAll(G)).filter((e) => K(e));
|
|
1230
1202
|
}
|
|
1231
|
-
function
|
|
1203
|
+
function q(e, t) {
|
|
1232
1204
|
try {
|
|
1233
1205
|
if (t && e.contains(t)) {
|
|
1234
1206
|
t.focus();
|
|
1235
1207
|
return;
|
|
1236
1208
|
}
|
|
1237
|
-
let n =
|
|
1209
|
+
let n = yt(e);
|
|
1238
1210
|
if (n.length > 0) {
|
|
1239
1211
|
n[0].focus();
|
|
1240
1212
|
return;
|
|
@@ -1242,14 +1214,14 @@ function bt(e, t) {
|
|
|
1242
1214
|
e.focus?.();
|
|
1243
1215
|
} catch {}
|
|
1244
1216
|
}
|
|
1245
|
-
function
|
|
1217
|
+
function bt(e, t = {}) {
|
|
1246
1218
|
let n = typeof document < "u" ? document.activeElement : null, r = t.wrap ?? !0, i = (n) => {
|
|
1247
1219
|
if (n.key === "Escape") {
|
|
1248
1220
|
t.onEscape?.();
|
|
1249
1221
|
return;
|
|
1250
1222
|
}
|
|
1251
1223
|
if (n.key !== "Tab") return;
|
|
1252
|
-
let i =
|
|
1224
|
+
let i = yt(e);
|
|
1253
1225
|
if (!i.length) {
|
|
1254
1226
|
if (!r) return;
|
|
1255
1227
|
n.preventDefault(), e.focus?.();
|
|
@@ -1262,7 +1234,7 @@ function xt(e, t = {}) {
|
|
|
1262
1234
|
}
|
|
1263
1235
|
o === i.length - 1 && (r ? (n.preventDefault(), i[0].focus()) : t.onTabExit?.("forward", n));
|
|
1264
1236
|
};
|
|
1265
|
-
return queueMicrotask(() =>
|
|
1237
|
+
return queueMicrotask(() => q(e, t.initialFocus)), e.addEventListener("keydown", i), () => {
|
|
1266
1238
|
e.removeEventListener("keydown", i);
|
|
1267
1239
|
try {
|
|
1268
1240
|
n?.focus?.();
|
|
@@ -1270,6 +1242,6 @@ function xt(e, t = {}) {
|
|
|
1270
1242
|
};
|
|
1271
1243
|
}
|
|
1272
1244
|
//#endregion
|
|
1273
|
-
export {
|
|
1245
|
+
export { ht as a, N as c, vt as i, G as n, L as o, K as r, $e as s, bt as t };
|
|
1274
1246
|
|
|
1275
|
-
//# sourceMappingURL=dist-
|
|
1247
|
+
//# sourceMappingURL=dist-DU1nH3y8.js.map
|