@fileverse-dev/ddoc 2.1.3-patch-29.2 → 2.1.3-patch-29.3
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/index.es.js +137 -136
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
@@ -391,7 +391,7 @@ function Roe() {
|
|
391
391
|
ref: !0,
|
392
392
|
__self: !0,
|
393
393
|
__source: !0
|
394
|
-
},
|
394
|
+
}, qe, Ke;
|
395
395
|
function zt(O) {
|
396
396
|
if (X.call(O, "ref")) {
|
397
397
|
var oe = Object.getOwnPropertyDescriptor(O, "ref").get;
|
@@ -414,7 +414,7 @@ function Roe() {
|
|
414
414
|
function Ce(O, oe) {
|
415
415
|
{
|
416
416
|
var ve = function() {
|
417
|
-
|
417
|
+
qe || (qe = !0, k("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", oe));
|
418
418
|
};
|
419
419
|
ve.isReactWarning = !0, Object.defineProperty(O, "key", {
|
420
420
|
get: ve,
|
@@ -422,7 +422,7 @@ function Roe() {
|
|
422
422
|
});
|
423
423
|
}
|
424
424
|
}
|
425
|
-
function
|
425
|
+
function _e(O, oe) {
|
426
426
|
{
|
427
427
|
var ve = function() {
|
428
428
|
Ke || (Ke = !0, k("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", oe));
|
@@ -475,7 +475,7 @@ function Roe() {
|
|
475
475
|
}
|
476
476
|
if (it || Qe) {
|
477
477
|
var Ne = typeof O == "function" ? O.displayName || O.name || "Unknown" : O;
|
478
|
-
it && Ce(ot, Ne), Qe &&
|
478
|
+
it && Ce(ot, Ne), Qe && _e(ot, Ne);
|
479
479
|
}
|
480
480
|
return lt(O, it, Qe, ct, Oe, Ye.current, ot);
|
481
481
|
}
|
@@ -14171,7 +14171,7 @@ function ade(t, e) {
|
|
14171
14171
|
clearDelayTimeouts: Be,
|
14172
14172
|
setProps: Ye,
|
14173
14173
|
setContent: Ee,
|
14174
|
-
show:
|
14174
|
+
show: qe,
|
14175
14175
|
hide: Ke,
|
14176
14176
|
hideWithInteractivity: zt,
|
14177
14177
|
enable: ue,
|
@@ -14218,25 +14218,25 @@ function ade(t, e) {
|
|
14218
14218
|
function Z(Ce) {
|
14219
14219
|
Ce === void 0 && (Ce = !1), M.style.pointerEvents = w.props.interactive && !Ce ? "" : "none", M.style.zIndex = "" + w.props.zIndex;
|
14220
14220
|
}
|
14221
|
-
function Q(Ce,
|
14221
|
+
function Q(Ce, _e, lt) {
|
14222
14222
|
if (lt === void 0 && (lt = !0), S.forEach(function(Tt) {
|
14223
|
-
Tt[Ce] && Tt[Ce].apply(Tt,
|
14223
|
+
Tt[Ce] && Tt[Ce].apply(Tt, _e);
|
14224
14224
|
}), lt) {
|
14225
14225
|
var Ft;
|
14226
|
-
(Ft = w.props)[Ce].apply(Ft,
|
14226
|
+
(Ft = w.props)[Ce].apply(Ft, _e);
|
14227
14227
|
}
|
14228
14228
|
}
|
14229
14229
|
function Y() {
|
14230
14230
|
var Ce = w.props.aria;
|
14231
14231
|
if (Ce.content) {
|
14232
|
-
var
|
14232
|
+
var _e = "aria-" + Ce.content, lt = M.id, Ft = ud(w.props.triggerTarget || t);
|
14233
14233
|
Ft.forEach(function(Tt) {
|
14234
|
-
var rt = Tt.getAttribute(
|
14234
|
+
var rt = Tt.getAttribute(_e);
|
14235
14235
|
if (w.state.isVisible)
|
14236
|
-
Tt.setAttribute(
|
14236
|
+
Tt.setAttribute(_e, rt ? rt + " " + lt : lt);
|
14237
14237
|
else {
|
14238
14238
|
var ht = rt && rt.replace(lt, "").trim();
|
14239
|
-
ht ? Tt.setAttribute(
|
14239
|
+
ht ? Tt.setAttribute(_e, ht) : Tt.removeAttribute(_e);
|
14240
14240
|
}
|
14241
14241
|
});
|
14242
14242
|
}
|
@@ -14244,8 +14244,8 @@ function ade(t, e) {
|
|
14244
14244
|
function se() {
|
14245
14245
|
if (!(D || !w.props.aria.expanded)) {
|
14246
14246
|
var Ce = ud(w.props.triggerTarget || t);
|
14247
|
-
Ce.forEach(function(
|
14248
|
-
w.props.interactive ?
|
14247
|
+
Ce.forEach(function(_e) {
|
14248
|
+
w.props.interactive ? _e.setAttribute("aria-expanded", w.state.isVisible && _e === V() ? "true" : "false") : _e.removeAttribute("aria-expanded");
|
14249
14249
|
});
|
14250
14250
|
}
|
14251
14251
|
}
|
@@ -14256,10 +14256,10 @@ function ade(t, e) {
|
|
14256
14256
|
}
|
14257
14257
|
function ie(Ce) {
|
14258
14258
|
if (!(Po.isTouch && (l || Ce.type === "mousedown"))) {
|
14259
|
-
var
|
14260
|
-
if (!(w.props.interactive && uI(M,
|
14259
|
+
var _e = Ce.composedPath && Ce.composedPath()[0] || Ce.target;
|
14260
|
+
if (!(w.props.interactive && uI(M, _e))) {
|
14261
14261
|
if (ud(w.props.triggerTarget || t).some(function(lt) {
|
14262
|
-
return uI(lt,
|
14262
|
+
return uI(lt, _e);
|
14263
14263
|
})) {
|
14264
14264
|
if (Po.isTouch || w.state.isVisible && w.props.trigger.indexOf("click") >= 0)
|
14265
14265
|
return;
|
@@ -14285,31 +14285,31 @@ function ade(t, e) {
|
|
14285
14285
|
var Ce = G();
|
14286
14286
|
Ce.removeEventListener("mousedown", ie, !0), Ce.removeEventListener("touchend", ie, q1), Ce.removeEventListener("touchstart", ce, q1), Ce.removeEventListener("touchmove", pe, q1);
|
14287
14287
|
}
|
14288
|
-
function me(Ce,
|
14288
|
+
function me(Ce, _e) {
|
14289
14289
|
Re(Ce, function() {
|
14290
|
-
!w.state.isVisible && M.parentNode && M.parentNode.contains(M) &&
|
14290
|
+
!w.state.isVisible && M.parentNode && M.parentNode.contains(M) && _e();
|
14291
14291
|
});
|
14292
14292
|
}
|
14293
|
-
function we(Ce,
|
14294
|
-
Re(Ce,
|
14293
|
+
function we(Ce, _e) {
|
14294
|
+
Re(Ce, _e);
|
14295
14295
|
}
|
14296
|
-
function Re(Ce,
|
14296
|
+
function Re(Ce, _e) {
|
14297
14297
|
var lt = q().box;
|
14298
14298
|
function Ft(Tt) {
|
14299
|
-
Tt.target === lt && (cw(lt, "remove", Ft),
|
14299
|
+
Tt.target === lt && (cw(lt, "remove", Ft), _e());
|
14300
14300
|
}
|
14301
14301
|
if (Ce === 0)
|
14302
|
-
return
|
14302
|
+
return _e();
|
14303
14303
|
cw(lt, "remove", f), cw(lt, "add", Ft), f = Ft;
|
14304
14304
|
}
|
14305
|
-
function Pe(Ce,
|
14305
|
+
function Pe(Ce, _e, lt) {
|
14306
14306
|
lt === void 0 && (lt = !1);
|
14307
14307
|
var Ft = ud(w.props.triggerTarget || t);
|
14308
14308
|
Ft.forEach(function(Tt) {
|
14309
|
-
Tt.addEventListener(Ce,
|
14309
|
+
Tt.addEventListener(Ce, _e, lt), h.push({
|
14310
14310
|
node: Tt,
|
14311
14311
|
eventType: Ce,
|
14312
|
-
handler:
|
14312
|
+
handler: _e,
|
14313
14313
|
options: lt
|
14314
14314
|
});
|
14315
14315
|
});
|
@@ -14336,21 +14336,21 @@ function ade(t, e) {
|
|
14336
14336
|
}
|
14337
14337
|
function Le() {
|
14338
14338
|
h.forEach(function(Ce) {
|
14339
|
-
var
|
14340
|
-
|
14339
|
+
var _e = Ce.node, lt = Ce.eventType, Ft = Ce.handler, Tt = Ce.options;
|
14340
|
+
_e.removeEventListener(lt, Ft, Tt);
|
14341
14341
|
}), h = [];
|
14342
14342
|
}
|
14343
14343
|
function Te(Ce) {
|
14344
|
-
var
|
14344
|
+
var _e, lt = !1;
|
14345
14345
|
if (!(!w.state.isEnabled || te(Ce) || o)) {
|
14346
|
-
var Ft = ((
|
14346
|
+
var Ft = ((_e = u) == null ? void 0 : _e.type) === "focus";
|
14347
14347
|
u = Ce, m = Ce.currentTarget, se(), !w.state.isVisible && Vfe(Ce) && zg.forEach(function(Tt) {
|
14348
14348
|
return Tt(Ce);
|
14349
14349
|
}), Ce.type === "click" && (w.props.trigger.indexOf("mouseenter") < 0 || a) && w.props.hideOnClick !== !1 && w.state.isVisible ? lt = !0 : B(Ce), Ce.type === "click" && (a = !lt), lt && !Ft && ne(Ce);
|
14350
14350
|
}
|
14351
14351
|
}
|
14352
14352
|
function le(Ce) {
|
14353
|
-
var
|
14353
|
+
var _e = Ce.target, lt = V().contains(_e) || M.contains(_e);
|
14354
14354
|
if (!(Ce.type === "mousemove" && lt)) {
|
14355
14355
|
var Ft = P().concat(M).map(function(Tt) {
|
14356
14356
|
var rt, ht = Tt._tippy, Rt = (rt = ht.popperInstance) == null ? void 0 : rt.state;
|
@@ -14364,8 +14364,8 @@ function ade(t, e) {
|
|
14364
14364
|
}
|
14365
14365
|
}
|
14366
14366
|
function $(Ce) {
|
14367
|
-
var
|
14368
|
-
if (!
|
14367
|
+
var _e = te(Ce) || w.props.trigger.indexOf("click") >= 0 && a;
|
14368
|
+
if (!_e) {
|
14369
14369
|
if (w.props.interactive) {
|
14370
14370
|
w.hideWithInteractivity(Ce);
|
14371
14371
|
return;
|
@@ -14381,7 +14381,7 @@ function ade(t, e) {
|
|
14381
14381
|
}
|
14382
14382
|
function De() {
|
14383
14383
|
W();
|
14384
|
-
var Ce = w.props,
|
14384
|
+
var Ce = w.props, _e = Ce.popperOptions, lt = Ce.placement, Ft = Ce.offset, Tt = Ce.getReferenceClientRect, rt = Ce.moveTransition, ht = H() ? Bx(M).arrow : null, Rt = Tt ? {
|
14385
14385
|
getBoundingClientRect: Tt,
|
14386
14386
|
contextElement: Tt.contextElement || V()
|
14387
14387
|
} : t, $e = {
|
@@ -14430,7 +14430,7 @@ function ade(t, e) {
|
|
14430
14430
|
element: ht,
|
14431
14431
|
padding: 3
|
14432
14432
|
}
|
14433
|
-
}), Ht.push.apply(Ht, (
|
14433
|
+
}), Ht.push.apply(Ht, (_e == null ? void 0 : _e.modifiers) || []), w.popperInstance = Dfe(Rt, M, Object.assign({}, _e, {
|
14434
14434
|
placement: lt,
|
14435
14435
|
onFirstUpdate: d,
|
14436
14436
|
modifiers: Ht
|
@@ -14440,8 +14440,8 @@ function ade(t, e) {
|
|
14440
14440
|
w.popperInstance && (w.popperInstance.destroy(), w.popperInstance = null);
|
14441
14441
|
}
|
14442
14442
|
function C() {
|
14443
|
-
var Ce = w.props.appendTo,
|
14444
|
-
w.props.interactive && Ce === lU || Ce === "parent" ?
|
14443
|
+
var Ce = w.props.appendTo, _e, lt = V();
|
14444
|
+
w.props.interactive && Ce === lU || Ce === "parent" ? _e = lt.parentNode : _e = cU(Ce, [lt]), _e.contains(M) || _e.appendChild(M), w.state.isMounted = !0, De(), process.env.NODE_ENV !== "production" && Nl(w.props.interactive && Ce === Is.appendTo && lt.nextElementSibling !== M, ["Interactive tippy element may not be accessible via keyboard", "navigation because it is not directly after the reference element", "in the DOM source order.", `
|
14445
14445
|
|
14446
14446
|
`, "Using a wrapper <div> or <span> tag around the reference element", "solves this by creating a new parentNode context.", `
|
14447
14447
|
|
@@ -14454,10 +14454,10 @@ function ade(t, e) {
|
|
14454
14454
|
}
|
14455
14455
|
function B(Ce) {
|
14456
14456
|
w.clearDelayTimeouts(), Ce && Q("onTrigger", [w, Ce]), be();
|
14457
|
-
var
|
14458
|
-
Po.isTouch && Ft === "hold" && Tt && (
|
14457
|
+
var _e = _(!0), lt = j(), Ft = lt[0], Tt = lt[1];
|
14458
|
+
Po.isTouch && Ft === "hold" && Tt && (_e = Tt), _e ? r = setTimeout(function() {
|
14459
14459
|
w.show();
|
14460
|
-
},
|
14460
|
+
}, _e) : w.show();
|
14461
14461
|
}
|
14462
14462
|
function ne(Ce) {
|
14463
14463
|
if (w.clearDelayTimeouts(), Q("onUntrigger", [w, Ce]), !w.state.isVisible) {
|
@@ -14465,10 +14465,10 @@ function ade(t, e) {
|
|
14465
14465
|
return;
|
14466
14466
|
}
|
14467
14467
|
if (!(w.props.trigger.indexOf("mouseenter") >= 0 && w.props.trigger.indexOf("click") >= 0 && ["mouseleave", "mousemove"].indexOf(Ce.type) >= 0 && a)) {
|
14468
|
-
var
|
14469
|
-
|
14468
|
+
var _e = _(!1);
|
14469
|
+
_e ? i = setTimeout(function() {
|
14470
14470
|
w.state.isVisible && w.hide();
|
14471
|
-
},
|
14471
|
+
}, _e) : s = requestAnimationFrame(function() {
|
14472
14472
|
w.hide();
|
14473
14473
|
});
|
14474
14474
|
}
|
@@ -14485,12 +14485,12 @@ function ade(t, e) {
|
|
14485
14485
|
function Ye(Ce) {
|
14486
14486
|
if (process.env.NODE_ENV !== "production" && Nl(w.state.isDestroyed, Wf("setProps")), !w.state.isDestroyed) {
|
14487
14487
|
Q("onBeforeUpdate", [w, Ce]), Le();
|
14488
|
-
var
|
14488
|
+
var _e = w.props, lt = hI(t, Object.assign({}, _e, lI(Ce), {
|
14489
14489
|
ignoreAttributes: !0
|
14490
14490
|
}));
|
14491
|
-
w.props = lt, Se(),
|
14491
|
+
w.props = lt, Se(), _e.interactiveDebounce !== lt.interactiveDebounce && (fe(), p = aI(le, lt.interactiveDebounce)), _e.triggerTarget && !lt.triggerTarget ? ud(_e.triggerTarget).forEach(function(Ft) {
|
14492
14492
|
Ft.removeAttribute("aria-expanded");
|
14493
|
-
}) : lt.triggerTarget && t.removeAttribute("aria-expanded"), se(), Z(), L && L(
|
14493
|
+
}) : lt.triggerTarget && t.removeAttribute("aria-expanded"), se(), Z(), L && L(_e, lt), w.popperInstance && (De(), P().forEach(function(Ft) {
|
14494
14494
|
requestAnimationFrame(Ft._tippy.popperInstance.forceUpdate);
|
14495
14495
|
})), Q("onAfterUpdate", [w, Ce]);
|
14496
14496
|
}
|
@@ -14500,10 +14500,10 @@ function ade(t, e) {
|
|
14500
14500
|
content: Ce
|
14501
14501
|
});
|
14502
14502
|
}
|
14503
|
-
function
|
14503
|
+
function qe() {
|
14504
14504
|
process.env.NODE_ENV !== "production" && Nl(w.state.isDestroyed, Wf("show"));
|
14505
|
-
var Ce = w.state.isVisible,
|
14506
|
-
if (!(Ce ||
|
14505
|
+
var Ce = w.state.isVisible, _e = w.state.isDestroyed, lt = !w.state.isEnabled, Ft = Po.isTouch && !w.props.touch, Tt = ow(w.props.duration, 0, Is.duration);
|
14506
|
+
if (!(Ce || _e || lt || Ft) && !V().hasAttribute("disabled") && (Q("onShow", [w], !1), w.props.onShow(w) !== !1)) {
|
14507
14507
|
if (w.state.isVisible = !0, H() && (M.style.visibility = "visible"), Z(), be(), w.state.isMounted || (M.style.transition = "none"), H()) {
|
14508
14508
|
var rt = q(), ht = rt.box, Rt = rt.content;
|
14509
14509
|
lw([ht, Rt], 0);
|
@@ -14524,8 +14524,8 @@ function ade(t, e) {
|
|
14524
14524
|
}
|
14525
14525
|
function Ke() {
|
14526
14526
|
process.env.NODE_ENV !== "production" && Nl(w.state.isDestroyed, Wf("hide"));
|
14527
|
-
var Ce = !w.state.isVisible,
|
14528
|
-
if (!(Ce ||
|
14527
|
+
var Ce = !w.state.isVisible, _e = w.state.isDestroyed, lt = !w.state.isEnabled, Ft = ow(w.props.duration, 1, Is.duration);
|
14528
|
+
if (!(Ce || _e || lt) && (Q("onHide", [w], !1), w.props.onHide(w) !== !1)) {
|
14529
14529
|
if (w.state.isVisible = !1, w.state.isShown = !1, c = !1, a = !1, H() && (M.style.visibility = "hidden"), fe(), J(), Z(!0), H()) {
|
14530
14530
|
var Tt = q(), rt = Tt.box, ht = Tt.content;
|
14531
14531
|
w.props.animation && (lw([rt, ht], Ft), cI([rt, ht], "hidden"));
|
@@ -15967,7 +15967,7 @@ function Ide() {
|
|
15967
15967
|
ref: !0,
|
15968
15968
|
__self: !0,
|
15969
15969
|
__source: !0
|
15970
|
-
},
|
15970
|
+
}, qe, Ke;
|
15971
15971
|
function zt(O) {
|
15972
15972
|
if (X.call(O, "ref")) {
|
15973
15973
|
var oe = Object.getOwnPropertyDescriptor(O, "ref").get;
|
@@ -15990,7 +15990,7 @@ function Ide() {
|
|
15990
15990
|
function Ce(O, oe) {
|
15991
15991
|
{
|
15992
15992
|
var ve = function() {
|
15993
|
-
|
15993
|
+
qe || (qe = !0, k("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", oe));
|
15994
15994
|
};
|
15995
15995
|
ve.isReactWarning = !0, Object.defineProperty(O, "key", {
|
15996
15996
|
get: ve,
|
@@ -15998,7 +15998,7 @@ function Ide() {
|
|
15998
15998
|
});
|
15999
15999
|
}
|
16000
16000
|
}
|
16001
|
-
function
|
16001
|
+
function _e(O, oe) {
|
16002
16002
|
{
|
16003
16003
|
var ve = function() {
|
16004
16004
|
Ke || (Ke = !0, k("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", oe));
|
@@ -16051,7 +16051,7 @@ function Ide() {
|
|
16051
16051
|
}
|
16052
16052
|
if (it || Qe) {
|
16053
16053
|
var Ne = typeof O == "function" ? O.displayName || O.name || "Unknown" : O;
|
16054
|
-
it && Ce(ot, Ne), Qe &&
|
16054
|
+
it && Ce(ot, Ne), Qe && _e(ot, Ne);
|
16055
16055
|
}
|
16056
16056
|
return lt(O, it, Qe, ct, Oe, Ye.current, ot);
|
16057
16057
|
}
|
@@ -54032,7 +54032,7 @@ function CK({ open: t, onOpenChange: e, children: n, onDrag: r, onRelease: i, sn
|
|
54032
54032
|
function Ee() {
|
54033
54033
|
return (window.innerWidth - xM) / window.innerWidth;
|
54034
54034
|
}
|
54035
|
-
function
|
54035
|
+
function qe(rt) {
|
54036
54036
|
var ht, Rt;
|
54037
54037
|
!u && !s || le.current && !le.current.contains(rt.target) || ($.current = ((ht = le.current) == null ? void 0 : ht.getBoundingClientRect().height) || 0, X.current = ((Rt = le.current) == null ? void 0 : Rt.getBoundingClientRect().width) || 0, se(!0), be.current = /* @__PURE__ */ new Date(), yK() && window.addEventListener("touchend", () => we.current = !1, {
|
54038
54038
|
once: !0
|
@@ -54175,7 +54175,7 @@ function CK({ open: t, onOpenChange: e, children: n, onDrag: r, onRelease: i, sn
|
|
54175
54175
|
function Ce() {
|
54176
54176
|
!Y || !le.current || (le.current.classList.remove(Ww), we.current = !1, se(!1), J.current = /* @__PURE__ */ new Date());
|
54177
54177
|
}
|
54178
|
-
function
|
54178
|
+
function _e(rt) {
|
54179
54179
|
if (!Y || !le.current) return;
|
54180
54180
|
le.current.classList.remove(Ww), we.current = !1, se(!1), J.current = /* @__PURE__ */ new Date();
|
54181
54181
|
const ht = Xg(le.current, w);
|
@@ -54265,8 +54265,8 @@ function CK({ open: t, onOpenChange: e, children: n, onDrag: r, onRelease: i, sn
|
|
54265
54265
|
drawerRef: le,
|
54266
54266
|
overlayRef: pe,
|
54267
54267
|
onOpenChange: e,
|
54268
|
-
onPress:
|
54269
|
-
onRelease:
|
54268
|
+
onPress: qe,
|
54269
|
+
onRelease: _e,
|
54270
54270
|
onDrag: zt,
|
54271
54271
|
dismissible: u,
|
54272
54272
|
shouldAnimate: Le,
|
@@ -79114,7 +79114,7 @@ function cJe(t, e, n, r, i, s, a) {
|
|
79114
79114
|
location: on,
|
79115
79115
|
offsetLocation: un,
|
79116
79116
|
previousLocation: Ce,
|
79117
|
-
scrollLooper:
|
79117
|
+
scrollLooper: _e,
|
79118
79118
|
slideLooper: lt,
|
79119
79119
|
dragHandler: Ft,
|
79120
79120
|
animation: Tt,
|
@@ -79127,10 +79127,10 @@ function cJe(t, e, n, r, i, s, a) {
|
|
79127
79127
|
const Ht = Ke.settled(), An = !ht.shouldConstrain(), Nt = Rt ? Ht : Ht && An;
|
79128
79128
|
Nt && !Ft.pointerDown() && (Tt.stop(), rt.emit("settle")), Nt || rt.emit("scroll");
|
79129
79129
|
const gn = on.get() * $e + Ce.get() * (1 - $e);
|
79130
|
-
un.set(gn), Rt && (
|
79131
|
-
}, le = HKe(r, i, () => Le(
|
79130
|
+
un.set(gn), Rt && (_e.loop(Ke.direction()), lt.loop()), zt.to(un.get());
|
79131
|
+
}, le = HKe(r, i, () => Le(qe), (Ke) => Te(qe, Ke)), $ = 0.68, X = me[Re.get()], te = Jp(X), De = Jp(X), W = Jp(X), C = Jp(X), P = ZKe(te, W, De, C, d, $), B = tJe(f, me, ce, we, C), ne = nJe(le, Re, Pe, P, B, C, a), ue = XKe(we), ye = S4(), Be = aJe(e, n, a, m), {
|
79132
79132
|
slideRegistry: Ye
|
79133
|
-
} = eJe(q, k, me, J, fe, Se), Ee = rJe(t, n, Ye, ne, P, ye, a, M),
|
79133
|
+
} = eJe(q, k, me, J, fe, Se), Ee = rJe(t, n, Ye, ne, P, ye, a, M), qe = {
|
79134
79134
|
ownerDocument: r,
|
79135
79135
|
ownerWindow: i,
|
79136
79136
|
eventHandler: a,
|
@@ -79167,7 +79167,7 @@ function cJe(t, e, n, r, i, s, a) {
|
|
79167
79167
|
target: C,
|
79168
79168
|
translate: xX(R, e)
|
79169
79169
|
};
|
79170
|
-
return
|
79170
|
+
return qe;
|
79171
79171
|
}
|
79172
79172
|
function uJe() {
|
79173
79173
|
let t = {}, e;
|
@@ -95870,21 +95870,21 @@ const Nee = async (t, e) => {
|
|
95870
95870
|
Y && se(!1);
|
95871
95871
|
});
|
95872
95872
|
const J = () => {
|
95873
|
-
const { state: Ee } = e, { from:
|
95873
|
+
const { state: Ee } = e, { from: qe, to: Ke } = Ee.selection, zt = Ee.doc.textBetween(qe, Ke, " ");
|
95874
95874
|
ce ? Ye && Q(Ye.selectedContent || "") : Q(zt), se(!0), w == null || w();
|
95875
95875
|
}, me = (Ee) => {
|
95876
95876
|
Ee.stopPropagation(), m ? J() : M == null || M(!0);
|
95877
|
-
}, we = (Ee,
|
95877
|
+
}, we = (Ee, qe = "") => ({
|
95878
95878
|
id: `comment-${Em()}`,
|
95879
95879
|
username: i,
|
95880
95880
|
selectedContent: Ee,
|
95881
95881
|
// Preserve line breaks in content
|
95882
|
-
content:
|
95882
|
+
content: qe || "",
|
95883
95883
|
replies: [],
|
95884
95884
|
createdAt: /* @__PURE__ */ new Date()
|
95885
95885
|
}), Re = (Ee) => {
|
95886
95886
|
if (!e) return;
|
95887
|
-
const { state:
|
95887
|
+
const { state: qe } = e, { from: Ke, to: zt } = qe.selection, on = qe.doc.textBetween(Ke, zt, " "), un = we(on, Ee);
|
95888
95888
|
return e == null || e.commands.setComment(un.id || ""), o(un.id || ""), setTimeout(l), c == null || c(un), un.id;
|
95889
95889
|
}, Pe = (Ee) => {
|
95890
95890
|
e.commands.resolveComment(Ee), d == null || d(Ee);
|
@@ -95892,11 +95892,11 @@ const Nee = async (t, e) => {
|
|
95892
95892
|
e.commands.unresolveComment(Ee), h == null || h(Ee);
|
95893
95893
|
}, Le = (Ee) => {
|
95894
95894
|
e.commands.unsetComment(Ee), p == null || p(Ee);
|
95895
|
-
}, Te = (Ee,
|
95896
|
-
if (!
|
95895
|
+
}, Te = (Ee, qe, Ke) => {
|
95896
|
+
if (!qe.trim()) return;
|
95897
95897
|
const zt = {
|
95898
95898
|
id: `reply-${Em()}`,
|
95899
|
-
content:
|
95899
|
+
content: qe,
|
95900
95900
|
username: i,
|
95901
95901
|
replies: [],
|
95902
95902
|
createdAt: /* @__PURE__ */ new Date(),
|
@@ -95905,9 +95905,9 @@ const Nee = async (t, e) => {
|
|
95905
95905
|
Ke == null || Ke(Ee, zt);
|
95906
95906
|
}, le = (Ee) => {
|
95907
95907
|
if (!e || !n.length) return;
|
95908
|
-
const
|
95909
|
-
if (
|
95910
|
-
if (
|
95908
|
+
const qe = n.find((Ke) => Ke.id === Ee);
|
95909
|
+
if (qe) {
|
95910
|
+
if (qe.selectedContent) {
|
95911
95911
|
const Ke = e.view.dom.querySelector(
|
95912
95912
|
`[data-comment-id="${Ee}"]`
|
95913
95913
|
);
|
@@ -95921,10 +95921,10 @@ const Nee = async (t, e) => {
|
|
95921
95921
|
Ke.closest('[class*="editor"]'),
|
95922
95922
|
e.view.dom.parentElement
|
95923
95923
|
].filter(Boolean).find(
|
95924
|
-
(
|
95924
|
+
(_e) => _e && (_e.scrollHeight > _e.clientHeight || window.getComputedStyle(_e).overflow === "auto" || window.getComputedStyle(_e).overflowY === "auto")
|
95925
95925
|
);
|
95926
95926
|
Ce && requestAnimationFrame(() => {
|
95927
|
-
const
|
95927
|
+
const _e = Ce.getBoundingClientRect(), lt = Ke.getBoundingClientRect(), Ft = lt.top - _e.top - _e.height / 2 + lt.height / 2;
|
95928
95928
|
Ce.scrollBy({
|
95929
95929
|
top: Ft,
|
95930
95930
|
behavior: "smooth"
|
@@ -95935,11 +95935,11 @@ const Nee = async (t, e) => {
|
|
95935
95935
|
o(Ee);
|
95936
95936
|
}
|
95937
95937
|
}, $ = (Ee) => {
|
95938
|
-
const
|
95939
|
-
j(
|
95938
|
+
const qe = Ee.target.value;
|
95939
|
+
j(qe), qe || (Ee.target.style.height = "40px");
|
95940
95940
|
}, X = (Ee) => {
|
95941
|
-
const
|
95942
|
-
H(
|
95941
|
+
const qe = Ee.target.value;
|
95942
|
+
H(qe), qe || (Ee.target.style.height = "40px");
|
95943
95943
|
}, te = (Ee) => {
|
95944
95944
|
Ee.key === "Enter" && !Ee.shiftKey && (Ee.preventDefault(), De());
|
95945
95945
|
}, De = () => {
|
@@ -95965,11 +95965,11 @@ const Nee = async (t, e) => {
|
|
95965
95965
|
!a || !D.trim() || (Te(a, D, u), j(""));
|
95966
95966
|
}, P = () => {
|
95967
95967
|
S(!L);
|
95968
|
-
}, B = (Ee,
|
95968
|
+
}, B = (Ee, qe) => {
|
95969
95969
|
Ee.currentTarget.style.height = "auto";
|
95970
95970
|
const Ke = Math.min(
|
95971
95971
|
Math.max(40, Ee.currentTarget.scrollHeight),
|
95972
|
-
|
95972
|
+
qe.length > 30 || qe.includes(`
|
95973
95973
|
`) ? 96 : 40
|
95974
95974
|
);
|
95975
95975
|
Ee.currentTarget.style.height = `${Ke}px`;
|
@@ -95977,21 +95977,21 @@ const Nee = async (t, e) => {
|
|
95977
95977
|
(Ee) => !Ee.resolved && Ee.selectedContent && Ee.selectedContent.length > 0 && !Ee.deleted
|
95978
95978
|
), ue = () => {
|
95979
95979
|
if (Be > 0) {
|
95980
|
-
const Ee = ne[Be - 1],
|
95980
|
+
const Ee = ne[Be - 1], qe = e.view.dom.querySelector(
|
95981
95981
|
`[data-comment-id="${Ee.id}"]`
|
95982
95982
|
);
|
95983
|
-
if (
|
95984
|
-
const Ke = e.view.posAtDOM(
|
95983
|
+
if (qe) {
|
95984
|
+
const Ke = e.view.posAtDOM(qe, 0), zt = Ke + qe.textContent.length;
|
95985
95985
|
e.commands.setTextSelection({ from: Ke, to: zt }), le(Ee.id || "");
|
95986
95986
|
}
|
95987
95987
|
}
|
95988
95988
|
}, ye = () => {
|
95989
95989
|
if (Be < ne.length - 1) {
|
95990
|
-
const Ee = ne[Be + 1],
|
95990
|
+
const Ee = ne[Be + 1], qe = e.view.dom.querySelector(
|
95991
95991
|
`[data-comment-id="${Ee.id}"]`
|
95992
95992
|
);
|
95993
|
-
if (
|
95994
|
-
const Ke = e.view.posAtDOM(
|
95993
|
+
if (qe) {
|
95994
|
+
const Ke = e.view.posAtDOM(qe, 0), zt = Ke + qe.textContent.length;
|
95995
95995
|
e.commands.setTextSelection({ from: Ke, to: zt }), le(Ee.id || "");
|
95996
95996
|
}
|
95997
95997
|
}
|
@@ -97476,8 +97476,8 @@ $5.exports;
|
|
97476
97476
|
});
|
97477
97477
|
}
|
97478
97478
|
function W(Be) {
|
97479
|
-
return w(Be, function(Ye, Ee,
|
97480
|
-
return Ye || (Ee[$] || Ee[/^[a-z]+(?: +[a-z]+\b)*/i.exec($)] || RegExp("\\b" + v(
|
97479
|
+
return w(Be, function(Ye, Ee, qe) {
|
97480
|
+
return Ye || (Ee[$] || Ee[/^[a-z]+(?: +[a-z]+\b)*/i.exec($)] || RegExp("\\b" + v(qe) + "(?:\\b|\\w*\\d)", "i").exec(S)) && qe;
|
97481
97481
|
});
|
97482
97482
|
}
|
97483
97483
|
function C(Be) {
|
@@ -97487,14 +97487,14 @@ $5.exports;
|
|
97487
97487
|
}
|
97488
97488
|
function P(Be) {
|
97489
97489
|
return w(Be, function(Ye, Ee) {
|
97490
|
-
var
|
97491
|
-
return !Ye && (Ye = RegExp("\\b" +
|
97490
|
+
var qe = Ee.pattern || v(Ee);
|
97491
|
+
return !Ye && (Ye = RegExp("\\b" + qe + "(?:/[\\d.]+|[ \\w.]*)", "i").exec(S)) && (Ye = h(Ye, qe, Ee.label || Ee)), Ye;
|
97492
97492
|
});
|
97493
97493
|
}
|
97494
97494
|
function B(Be) {
|
97495
97495
|
return w(Be, function(Ye, Ee) {
|
97496
|
-
var
|
97497
|
-
return !Ye && (Ye = RegExp("\\b" +
|
97496
|
+
var qe = Ee.pattern || v(Ee);
|
97497
|
+
return !Ye && (Ye = RegExp("\\b" + qe + " *\\d+[.\\w_]*", "i").exec(S) || RegExp("\\b" + qe + " *\\w+-[\\w]*", "i").exec(S) || RegExp("\\b" + qe + "(?:; *(?:[a-z]+[_-])?[a-z]+\\d+|[^ ();-]*)", "i").exec(S)) && ((Ye = String(Ee.label && !RegExp(qe, "i").test(Ee.label) ? Ee.label : Ye).split("/"))[1] && !/[\d.]+/.test(Ye[0]) && (Ye[0] += " " + Ye[1]), Ee = Ee.label || Ee, Ye = m(Ye[0].replace(RegExp(qe, "i"), Ee).replace(RegExp("; *(?:" + Ee + "[_-])?", "i"), " ").replace(RegExp("(" + Ee + ")[-_.]?(\\w)", "i"), "$1 $2"))), Ye;
|
97498
97498
|
});
|
97499
97499
|
}
|
97500
97500
|
function ne(Be) {
|
@@ -105056,17 +105056,17 @@ var tne = { exports: {} };
|
|
105056
105056
|
if (2 > C.length || 2 > P.length) return -1;
|
105057
105057
|
Be = 2, Ye /= 2, Ee /= 2, B /= 2;
|
105058
105058
|
}
|
105059
|
-
var
|
105059
|
+
var qe;
|
105060
105060
|
if (ue) {
|
105061
105061
|
var Ke = -1;
|
105062
|
-
for (
|
105063
|
-
else if (Ke === -1 && (Ke =
|
105064
|
-
} else for (B + Ee > Ye && (B = Ye - Ee),
|
105065
|
-
for (var zt = !0, on = 0; on < Ee; on++) if (ye(C,
|
105062
|
+
for (qe = B; qe < Ye; qe++) if (ye(C, qe) !== ye(P, Ke === -1 ? 0 : qe - Ke)) Ke !== -1 && (qe -= qe - Ke), Ke = -1;
|
105063
|
+
else if (Ke === -1 && (Ke = qe), qe - Ke + 1 === Ee) return Ke * Be;
|
105064
|
+
} else for (B + Ee > Ye && (B = Ye - Ee), qe = B; 0 <= qe; qe--) {
|
105065
|
+
for (var zt = !0, on = 0; on < Ee; on++) if (ye(C, qe + on) !== ye(P, on)) {
|
105066
105066
|
zt = !1;
|
105067
105067
|
break;
|
105068
105068
|
}
|
105069
|
-
if (zt) return
|
105069
|
+
if (zt) return qe;
|
105070
105070
|
}
|
105071
105071
|
return -1;
|
105072
105072
|
}
|
@@ -105105,8 +105105,8 @@ var tne = { exports: {} };
|
|
105105
105105
|
for (var ne = [], ue = P; ue < B; ) {
|
105106
105106
|
var ye = C[ue], Be = null, Ye = 239 < ye ? 4 : 223 < ye ? 3 : 191 < ye ? 2 : 1;
|
105107
105107
|
if (ue + Ye <= B) {
|
105108
|
-
var Ee,
|
105109
|
-
Ye === 1 ? 128 > ye && (Be = ye) : Ye === 2 ? (Ee = C[ue + 1], (192 & Ee) == 128 && (zt = (31 & ye) << 6 | 63 & Ee, 127 < zt && (Be = zt))) : Ye === 3 ? (Ee = C[ue + 1],
|
105108
|
+
var Ee, qe, Ke, zt;
|
105109
|
+
Ye === 1 ? 128 > ye && (Be = ye) : Ye === 2 ? (Ee = C[ue + 1], (192 & Ee) == 128 && (zt = (31 & ye) << 6 | 63 & Ee, 127 < zt && (Be = zt))) : Ye === 3 ? (Ee = C[ue + 1], qe = C[ue + 2], (192 & Ee) == 128 && (192 & qe) == 128 && (zt = (15 & ye) << 12 | (63 & Ee) << 6 | 63 & qe, 2047 < zt && (55296 > zt || 57343 < zt) && (Be = zt))) : Ye === 4 && (Ee = C[ue + 1], qe = C[ue + 2], Ke = C[ue + 3], (192 & Ee) == 128 && (192 & qe) == 128 && (192 & Ke) == 128 && (zt = (15 & ye) << 18 | (63 & Ee) << 12 | (63 & qe) << 6 | 63 & Ke, 65535 < zt && 1114112 > zt && (Be = zt)));
|
105110
105110
|
}
|
105111
105111
|
Be === null ? (Be = 65533, Ye = 1) : 65535 < Be && (Be -= 65536, ne.push(55296 | 1023 & Be >>> 10), Be = 56320 | 1023 & Be), ne.push(Be), ue += Ye;
|
105112
105112
|
}
|
@@ -105319,8 +105319,8 @@ var tne = { exports: {} };
|
|
105319
105319
|
if (ne >= ue) return -1;
|
105320
105320
|
if (P >= B) return 1;
|
105321
105321
|
if (P >>>= 0, B >>>= 0, ne >>>= 0, ue >>>= 0, this === C) return 0;
|
105322
|
-
for (var ye = ue - ne, Be = B - P, Ye = c(ye, Be), Ee = this.slice(ne, ue),
|
105323
|
-
ye = Ee[Ke], Be =
|
105322
|
+
for (var ye = ue - ne, Be = B - P, Ye = c(ye, Be), Ee = this.slice(ne, ue), qe = C.slice(P, B), Ke = 0; Ke < Ye; ++Ke) if (Ee[Ke] !== qe[Ke]) {
|
105323
|
+
ye = Ee[Ke], Be = qe[Ke];
|
105324
105324
|
break;
|
105325
105325
|
}
|
105326
105326
|
return ye < Be ? -1 : Be < ye ? 1 : 0;
|
@@ -106231,22 +106231,22 @@ Use Chrome, Firefox or Internet Explorer 11`);
|
|
106231
106231
|
}, h.prototype._read = function() {
|
106232
106232
|
te(this, new $("_read()"));
|
106233
106233
|
}, h.prototype.pipe = function(W, C) {
|
106234
|
-
function P(
|
106235
|
-
Y("onunpipe"),
|
106234
|
+
function P(_e, lt) {
|
106235
|
+
Y("onunpipe"), _e === qe && lt && lt.hasUnpiped === !1 && (lt.hasUnpiped = !0, ne());
|
106236
106236
|
}
|
106237
106237
|
function B() {
|
106238
106238
|
Y("onend"), W.end();
|
106239
106239
|
}
|
106240
106240
|
function ne() {
|
106241
|
-
Y("cleanup"), W.removeListener("close", Be), W.removeListener("finish", Ye), W.removeListener("drain", un), W.removeListener("error", ye), W.removeListener("unpipe", P),
|
106241
|
+
Y("cleanup"), W.removeListener("close", Be), W.removeListener("finish", Ye), W.removeListener("drain", un), W.removeListener("error", ye), W.removeListener("unpipe", P), qe.removeListener("end", B), qe.removeListener("end", Ee), qe.removeListener("data", ue), Ce = !0, Ke.awaitDrain && (!W._writableState || W._writableState.needDrain) && un();
|
106242
106242
|
}
|
106243
|
-
function ue(
|
106243
|
+
function ue(_e) {
|
106244
106244
|
Y("ondata");
|
106245
|
-
var lt = W.write(
|
106246
|
-
Y("dest.write", lt), lt === !1 && ((Ke.pipesCount === 1 && Ke.pipes === W || 1 < Ke.pipesCount && Z(Ke.pipes, W) !== -1) && !Ce && (Y("false write response, pause", Ke.awaitDrain), Ke.awaitDrain++),
|
106245
|
+
var lt = W.write(_e);
|
106246
|
+
Y("dest.write", lt), lt === !1 && ((Ke.pipesCount === 1 && Ke.pipes === W || 1 < Ke.pipesCount && Z(Ke.pipes, W) !== -1) && !Ce && (Y("false write response, pause", Ke.awaitDrain), Ke.awaitDrain++), qe.pause());
|
106247
106247
|
}
|
106248
|
-
function ye(
|
106249
|
-
Y("onerror",
|
106248
|
+
function ye(_e) {
|
106249
|
+
Y("onerror", _e), Ee(), W.removeListener("error", ye), se(W, "error") === 0 && te(W, _e);
|
106250
106250
|
}
|
106251
106251
|
function Be() {
|
106252
106252
|
W.removeListener("finish", Ye), Ee();
|
@@ -106255,9 +106255,9 @@ Use Chrome, Firefox or Internet Explorer 11`);
|
|
106255
106255
|
Y("onfinish"), W.removeListener("close", Be), Ee();
|
106256
106256
|
}
|
106257
106257
|
function Ee() {
|
106258
|
-
Y("unpipe"),
|
106258
|
+
Y("unpipe"), qe.unpipe(W);
|
106259
106259
|
}
|
106260
|
-
var
|
106260
|
+
var qe = this, Ke = this._readableState;
|
106261
106261
|
switch (Ke.pipesCount) {
|
106262
106262
|
case 0:
|
106263
106263
|
Ke.pipes = W;
|
@@ -106270,11 +106270,11 @@ Use Chrome, Firefox or Internet Explorer 11`);
|
|
106270
106270
|
}
|
106271
106271
|
Ke.pipesCount += 1, Y("pipe count=%d opts=%j", Ke.pipesCount, C);
|
106272
106272
|
var zt = (!C || C.end !== !1) && W !== o.stdout && W !== o.stderr, on = zt ? B : Ee;
|
106273
|
-
Ke.endEmitted ? o.nextTick(on) :
|
106274
|
-
var un = S(
|
106273
|
+
Ke.endEmitted ? o.nextTick(on) : qe.once("end", on), W.on("unpipe", P);
|
106274
|
+
var un = S(qe);
|
106275
106275
|
W.on("drain", un);
|
106276
106276
|
var Ce = !1;
|
106277
|
-
return
|
106277
|
+
return qe.on("data", ue), f(W, "error", ye), W.once("close", Be), W.once("finish", Ye), W.emit("pipe", qe), Ke.flowing || (Y("pipe resume"), qe.resume()), W;
|
106278
106278
|
}, h.prototype.unpipe = function(W) {
|
106279
106279
|
var C = this._readableState, P = { hasUnpiped: !1 };
|
106280
106280
|
if (C.pipesCount === 0) return this;
|
@@ -124286,10 +124286,10 @@ function Tie() {
|
|
124286
124286
|
let ne = !0, ue = !1, ye = {}, Be = null;
|
124287
124287
|
const Ye = nn({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]);
|
124288
124288
|
let Ee = null;
|
124289
|
-
const
|
124289
|
+
const qe = nn({}, ["audio", "video", "img", "source", "image", "track"]);
|
124290
124290
|
let Ke = null;
|
124291
124291
|
const zt = nn({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), on = "http://www.w3.org/1998/Math/MathML", un = "http://www.w3.org/2000/svg", Ce = "http://www.w3.org/1999/xhtml";
|
124292
|
-
let
|
124292
|
+
let _e = Ce, lt = !1, Ft = null;
|
124293
124293
|
const Tt = nn({}, [on, un, Ce], xk);
|
124294
124294
|
let rt = nn({}, ["mi", "mo", "mn", "ms", "mtext"]), ht = nn({}, ["annotation-xml"]);
|
124295
124295
|
const Rt = nn({}, ["title", "style", "font", "a", "script"]);
|
@@ -124302,7 +124302,7 @@ function Tie() {
|
|
124302
124302
|
let ae = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
124303
124303
|
if (!(gn && gn === ae)) {
|
124304
124304
|
if ((!ae || typeof ae != "object") && (ae = {}), ae = K1(ae), $e = // eslint-disable-next-line unicorn/prefer-includes
|
124305
|
-
Ht.indexOf(ae.PARSER_MEDIA_TYPE) === -1 ? An : ae.PARSER_MEDIA_TYPE, Nt = $e === "application/xhtml+xml" ? xk : G6, fe = Ia(ae, "ALLOWED_TAGS") ? nn({}, ae.ALLOWED_TAGS, Nt) : ie, pe = Ia(ae, "ALLOWED_ATTR") ? nn({}, ae.ALLOWED_ATTR, Nt) : ce, Ft = Ia(ae, "ALLOWED_NAMESPACES") ? nn({}, ae.ALLOWED_NAMESPACES, xk) : Tt, Ke = Ia(ae, "ADD_URI_SAFE_ATTR") ? nn(K1(zt), ae.ADD_URI_SAFE_ATTR, Nt) : zt, Ee = Ia(ae, "ADD_DATA_URI_TAGS") ? nn(K1(
|
124305
|
+
Ht.indexOf(ae.PARSER_MEDIA_TYPE) === -1 ? An : ae.PARSER_MEDIA_TYPE, Nt = $e === "application/xhtml+xml" ? xk : G6, fe = Ia(ae, "ALLOWED_TAGS") ? nn({}, ae.ALLOWED_TAGS, Nt) : ie, pe = Ia(ae, "ALLOWED_ATTR") ? nn({}, ae.ALLOWED_ATTR, Nt) : ce, Ft = Ia(ae, "ALLOWED_NAMESPACES") ? nn({}, ae.ALLOWED_NAMESPACES, xk) : Tt, Ke = Ia(ae, "ADD_URI_SAFE_ATTR") ? nn(K1(zt), ae.ADD_URI_SAFE_ATTR, Nt) : zt, Ee = Ia(ae, "ADD_DATA_URI_TAGS") ? nn(K1(qe), ae.ADD_DATA_URI_TAGS, Nt) : qe, Be = Ia(ae, "FORBID_CONTENTS") ? nn({}, ae.FORBID_CONTENTS, Nt) : Ye, J = Ia(ae, "FORBID_TAGS") ? nn({}, ae.FORBID_TAGS, Nt) : {}, me = Ia(ae, "FORBID_ATTR") ? nn({}, ae.FORBID_ATTR, Nt) : {}, ye = Ia(ae, "USE_PROFILES") ? ae.USE_PROFILES : !1, we = ae.ALLOW_ARIA_ATTR !== !1, Re = ae.ALLOW_DATA_ATTR !== !1, Pe = ae.ALLOW_UNKNOWN_PROTOCOLS || !1, Se = ae.ALLOW_SELF_CLOSE_IN_ATTR !== !1, Le = ae.SAFE_FOR_TEMPLATES || !1, Te = ae.SAFE_FOR_XML !== !1, le = ae.WHOLE_DOCUMENT || !1, te = ae.RETURN_DOM || !1, De = ae.RETURN_DOM_FRAGMENT || !1, W = ae.RETURN_TRUSTED_TYPE || !1, X = ae.FORCE_BODY || !1, C = ae.SANITIZE_DOM !== !1, P = ae.SANITIZE_NAMED_PROPS || !1, ne = ae.KEEP_CONTENT !== !1, ue = ae.IN_PLACE || !1, se = ae.ALLOWED_URI_REGEXP || Eie, _e = ae.NAMESPACE || Ce, rt = ae.MATHML_TEXT_INTEGRATION_POINTS || rt, ht = ae.HTML_INTEGRATION_POINTS || ht, be = ae.CUSTOM_ELEMENT_HANDLING || {}, ae.CUSTOM_ELEMENT_HANDLING && nr(ae.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (be.tagNameCheck = ae.CUSTOM_ELEMENT_HANDLING.tagNameCheck), ae.CUSTOM_ELEMENT_HANDLING && nr(ae.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (be.attributeNameCheck = ae.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), ae.CUSTOM_ELEMENT_HANDLING && typeof ae.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (be.allowCustomizedBuiltInElements = ae.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), Le && (Re = !1), De && (te = !0), ye && (fe = nn({}, HF), pe = [], ye.html === !0 && (nn(fe, FF), nn(pe, VF)), ye.svg === !0 && (nn(fe, Mk), nn(pe, Sk), nn(pe, G3)), ye.svgFilters === !0 && (nn(fe, Ck), nn(pe, Sk), nn(pe, G3)), ye.mathMl === !0 && (nn(fe, Ak), nn(pe, _F), nn(pe, G3))), ae.ADD_TAGS && (fe === ie && (fe = K1(fe)), nn(fe, ae.ADD_TAGS, Nt)), ae.ADD_ATTR && (pe === ce && (pe = K1(pe)), nn(pe, ae.ADD_ATTR, Nt)), ae.ADD_URI_SAFE_ATTR && nn(Ke, ae.ADD_URI_SAFE_ATTR, Nt), ae.FORBID_CONTENTS && (Be === Ye && (Be = K1(Be)), nn(Be, ae.FORBID_CONTENTS, Nt)), ne && (fe["#text"] = !0), le && nn(fe, ["html", "head", "body"]), fe.table && (nn(fe, ["tbody"]), delete J.tbody), ae.TRUSTED_TYPES_POLICY) {
|
124306
124306
|
if (typeof ae.TRUSTED_TYPES_POLICY.createHTML != "function")
|
124307
124307
|
throw Fp('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
124308
124308
|
if (typeof ae.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
@@ -124315,7 +124315,7 @@ function Tie() {
|
|
124315
124315
|
}, Tr = nn({}, [...Mk, ...Ck, ...Q2t]), Ei = nn({}, [...Ak, ...X2t]), Ys = function(ae) {
|
124316
124316
|
let Ne = v(ae);
|
124317
124317
|
(!Ne || !Ne.tagName) && (Ne = {
|
124318
|
-
namespaceURI:
|
124318
|
+
namespaceURI: _e,
|
124319
124319
|
tagName: "template"
|
124320
124320
|
});
|
124321
124321
|
const Je = G6(ae.tagName), Qt = G6(Ne.tagName);
|
@@ -124360,22 +124360,22 @@ function Tie() {
|
|
124360
124360
|
const Bt = BF(ae, /^[\r\n\t ]+/);
|
124361
124361
|
Je = Bt && Bt[0];
|
124362
124362
|
}
|
124363
|
-
$e === "application/xhtml+xml" &&
|
124363
|
+
$e === "application/xhtml+xml" && _e === Ce && (ae = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + ae + "</body></html>");
|
124364
124364
|
const Qt = w ? w.createHTML(ae) : ae;
|
124365
|
-
if (
|
124365
|
+
if (_e === Ce)
|
124366
124366
|
try {
|
124367
124367
|
Ne = new d().parseFromString(Qt, $e);
|
124368
124368
|
} catch {
|
124369
124369
|
}
|
124370
124370
|
if (!Ne || !Ne.documentElement) {
|
124371
|
-
Ne = M.createDocument(
|
124371
|
+
Ne = M.createDocument(_e, "template", null);
|
124372
124372
|
try {
|
124373
124373
|
Ne.documentElement.innerHTML = lt ? x : Qt;
|
124374
124374
|
} catch {
|
124375
124375
|
}
|
124376
124376
|
}
|
124377
124377
|
const pn = Ne.body || Ne.documentElement;
|
124378
|
-
return ae && Je && pn.insertBefore(n.createTextNode(Je), pn.childNodes[0] || null),
|
124378
|
+
return ae && Je && pn.insertBefore(n.createTextNode(Je), pn.childNodes[0] || null), _e === Ce ? D.call(Ne, le ? "html" : "body")[0] : le ? Ne.documentElement : pn;
|
124379
124379
|
}, zc = function(ae) {
|
124380
124380
|
return L.call(
|
124381
124381
|
ae.ownerDocument || ae,
|
@@ -147036,7 +147036,7 @@ const r_ = ({
|
|
147036
147036
|
isDDocOwner: ye,
|
147037
147037
|
isCollabDocumentPublished: Be = !0
|
147038
147038
|
}, Ye) => {
|
147039
|
-
const [Ee,
|
147039
|
+
const [Ee, qe] = ze(!1), [Ke, zt] = ze(!1), on = Xe(null), un = Ka("(min-width: 1500px)"), Ce = Ka("(min-width: 3000px)"), { isNativeMobile: _e, isIOS: lt } = np(), [Ft, Tt] = ze(!1), rt = Xe(null), ht = (x == null ? void 0 : x.slice(0, 4)) || [], Rt = x ? Math.max(0, x.length - 4) : 0;
|
147040
147040
|
zL(rt, () => {
|
147041
147041
|
Tt(!1);
|
147042
147042
|
}), Fe(() => {
|
@@ -147136,17 +147136,17 @@ const r_ = ({
|
|
147136
147136
|
Oe && Oe.startsWith("slides=") && (O.hash = ve, window.history.replaceState({}, "", O.toString()));
|
147137
147137
|
};
|
147138
147138
|
return Fe(() => {
|
147139
|
-
if ($e &&
|
147139
|
+
if ($e && _e) {
|
147140
147140
|
const { selection: O } = $e.state, oe = j8(O), ve = () => {
|
147141
|
-
|
147141
|
+
qe(!0);
|
147142
147142
|
}, Oe = () => {
|
147143
|
-
|
147143
|
+
qe(!1);
|
147144
147144
|
};
|
147145
147145
|
return !oe && $e.on("focus", ve), oe && $e.on("blur", Oe), () => {
|
147146
147146
|
$e.off("focus", ve), $e.off("blur", Oe);
|
147147
147147
|
};
|
147148
147148
|
}
|
147149
|
-
}, [
|
147149
|
+
}, [_e, $e]), Fe(() => {
|
147150
147150
|
if (!$e) return;
|
147151
147151
|
const O = (ve) => {
|
147152
147152
|
ve.key === "Enter" && $e.commands.scrollIntoView();
|
@@ -147155,14 +147155,14 @@ const r_ = ({
|
|
147155
147155
|
oe.removeEventListener("keydown", O);
|
147156
147156
|
};
|
147157
147157
|
}, [$e]), Fe(() => {
|
147158
|
-
if (!
|
147158
|
+
if (!_e || !$e) return;
|
147159
147159
|
const O = () => {
|
147160
147160
|
Ht.current && Ht.current.scrollIntoView();
|
147161
147161
|
}, oe = $e.view.dom;
|
147162
147162
|
return oe.addEventListener("resize", O), () => {
|
147163
147163
|
oe.removeEventListener("resize", O);
|
147164
147164
|
};
|
147165
|
-
}, [$e, Ht,
|
147165
|
+
}, [$e, Ht, _e]), !$e || An ? /* @__PURE__ */ T.jsxs("div", { className: "w-screen h-screen flex flex-col gap-4 justify-center items-center", children: [
|
147166
147166
|
/* @__PURE__ */ T.jsx(hT, {}),
|
147167
147167
|
/* @__PURE__ */ T.jsx("p", { children: "Loading Editor..." })
|
147168
147168
|
] }) : /* @__PURE__ */ T.jsxs(
|
@@ -147280,12 +147280,13 @@ const r_ = ({
|
|
147280
147280
|
{
|
147281
147281
|
className: jt(
|
147282
147282
|
"bg-white w-full mx-auto rounded",
|
147283
|
-
{ "mt-4 md:!mt-16": t },
|
147283
|
+
{ "mt-4 md:!mt-16 !py-20": t && !_e },
|
147284
147284
|
{ "md:!mt-16": !t },
|
147285
147285
|
{ "pt-20 md:!mt-[7.5rem]": Z && !t },
|
147286
147286
|
{ "pt-6 md:!mt-16": !Z && !t },
|
147287
|
+
{ "mt-4 md:!mt-16 px-4 py-6": t && _e },
|
147287
147288
|
{
|
147288
|
-
"max-[1080px]:!mx-auto min-[1081px]:!ml-[18%] min-[1700px]:!mx-auto": L && !
|
147289
|
+
"max-[1080px]:!mx-auto min-[1081px]:!ml-[18%] min-[1700px]:!mx-auto": L && !_e && V !== "0.5" && V !== "0.75" && V !== "1.4" && V !== "1.5" && V !== "2"
|
147289
147290
|
},
|
147290
147291
|
{
|
147291
147292
|
"!mx-auto": !L || V === "0.5" || V === "0.75" || V === "1.4" || V === "1.5"
|
@@ -147419,7 +147420,7 @@ const r_ = ({
|
|
147419
147420
|
]
|
147420
147421
|
}
|
147421
147422
|
),
|
147422
|
-
h && !
|
147423
|
+
h && !_e && /* @__PURE__ */ T.jsx(
|
147423
147424
|
yn,
|
147424
147425
|
{
|
147425
147426
|
ref: on,
|