@marimo-team/islands 0.26.1-dev21 → 0.26.1-dev25
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/{ConnectedDataExplorerComponent-CR9WyiEc.js → ConnectedDataExplorerComponent-jtTaDisw.js} +16 -16
- package/dist/{ErrorBoundary-C5X_T831.js → ErrorBoundary-Bs2ehxEI.js} +6 -6
- package/dist/{abnfDiagram-VCTEODGH-DGAbsdXT.js → abnfDiagram-VCTEODGH-cUj3Gnnh.js} +2 -2
- package/dist/{any-language-editor-DzGF1ll-.js → any-language-editor-BHgkY7jY.js} +2 -2
- package/dist/{architectureDiagram-5GKGNRK7-D4DnIo7R.js → architectureDiagram-5GKGNRK7-CIAZgn9d.js} +1 -1
- package/dist/{assertNever-CqwxSD_2.js → assertNever-BHnIohkX.js} +13 -13
- package/dist/{chat-ui-qZdDDrzU.js → chat-ui-DOvIzlMA.js} +46 -46
- package/dist/{check-D9vf6LYF.js → check-LtjuWmNn.js} +1 -1
- package/dist/{chunk-IMKFNOWR-Bc_i6jWx.js → chunk-IMKFNOWR-CB9N3qYR.js} +1 -1
- package/dist/{chunk-SHT3W25Y-CGML5pnF.js → chunk-SHT3W25Y-D9njV7TI.js} +1 -1
- package/dist/{chunk-SVP7TREG-ZpeFKfFT.js → chunk-SVP7TREG-CUCE0BFm.js} +1 -1
- package/dist/{chunk-TICWLB2K-C6cLmcg8.js → chunk-TICWLB2K-iQB6ttkI.js} +1 -1
- package/dist/{classDiagram-ZZMXUADV--q40NTXr.js → classDiagram-ZZMXUADV-BI1VBNIo.js} +2 -2
- package/dist/{classDiagram-v2-VYDZK3BY-Dt_Pp94L.js → classDiagram-v2-VYDZK3BY-BYL3asWh.js} +2 -2
- package/dist/{code-visibility-7FxdzbDq.js → code-visibility-BnMkbydx.js} +19 -19
- package/dist/{common-D-iTRwaQ.js → common-CQur5dRA.js} +156 -156
- package/dist/{config-B8JCQMby.js → config-DL9e-OWE.js} +3 -3
- package/dist/{copy-icon-BLig0ZKb.js → copy-icon-rYV2znAe.js} +2 -2
- package/dist/{createReducer-BIUQ3TbG.js → createReducer-BdiSrxHu.js} +5 -5
- package/dist/{cynefinDiagram-5FMLGOSQ-2FtF_-cc.js → cynefinDiagram-5FMLGOSQ-DpGtYvnZ.js} +1 -1
- package/dist/{dagre-GXQ25YYZ-Cymu2SPS.js → dagre-GXQ25YYZ-B5GDC2kN.js} +1 -1
- package/dist/{data-grid-overlay-editor-DoWUW2oW.js → data-grid-overlay-editor-BXEY35Xl.js} +1 -1
- package/dist/{diagram-S7CK7UJ4-OwDa8kAa.js → diagram-S7CK7UJ4-B2T25t1t.js} +1 -1
- package/dist/{diagram-UQ7AKVKN-CzRDwZwd.js → diagram-UQ7AKVKN-Dy3B5L_z.js} +1 -1
- package/dist/{diagram-VX7I27RA-XRIcgMDs.js → diagram-VX7I27RA-tOptWvNh.js} +1 -1
- package/dist/{diagram-Z3DM3KII-DdRDYAs6.js → diagram-Z3DM3KII-DsgZAokO.js} +1 -1
- package/dist/{dialog-DGh2HNAO.js → dialog-vs6x3On9.js} +19 -19
- package/dist/{dropdown-menu-ChH3oiqI.js → dropdown-menu-DYN2RV5d.js} +193 -193
- package/dist/{ebnfDiagram-PWID7BFC-CZMNMGNP.js → ebnfDiagram-PWID7BFC-CGWECzS1.js} +2 -2
- package/dist/{erDiagram-RLTQ6QDP-ByxHAN4b.js → erDiagram-RLTQ6QDP-CZLi87y3.js} +1 -1
- package/dist/{error-banner-BvRaQnGH.js → error-banner-D-AC7pQx.js} +70 -70
- package/dist/{error-entries-DhI0hGvj.js → error-entries-CncQR572.js} +443 -436
- package/dist/{feedback-button-OUiV15AL.js → feedback-button-BAOp7zqu.js} +120 -120
- package/dist/{flowDiagram-HODETNUW-BQpzWx5O.js → flowDiagram-HODETNUW-CS86WYbX.js} +2 -2
- package/dist/{formats-BxP8k8Un.js → formats-BUFLQJXY.js} +1 -1
- package/dist/{glide-data-editor-CFouYM6e.js → glide-data-editor-Ce94qTW7.js} +11 -11
- package/dist/{glide-utils-bKdvDwwo.js → glide-utils-CZ-O-CB_.js} +2 -2
- package/dist/{globals-B_U6Frqj.js → globals-Uqg4j5z5.js} +3 -3
- package/dist/{html-to-image-B803aaWE.js → html-to-image-BU7H-AM1.js} +4323 -4318
- package/dist/{infoDiagram-27XIBGKW-C9EWHkak.js → infoDiagram-27XIBGKW-C9JBFfpC.js} +1 -1
- package/dist/{ishikawaDiagram-5VMMS53U-D67SGFvp.js → ishikawaDiagram-5VMMS53U-Eh3iuw2D.js} +1 -1
- package/dist/{kanban-definition-UXKFOSKX-CTMTiazR.js → kanban-definition-UXKFOSKX-DYtuVwYD.js} +1 -1
- package/dist/main.js +399 -398
- package/dist/{mermaid-DE_tvTGF.js → mermaid--k1o49nH.js} +34 -34
- package/dist/{mindmap-definition-YA3MSWOX-LzNgDy8O.js → mindmap-definition-YA3MSWOX-Dn1Cnqys.js} +1 -1
- package/dist/{number-overlay-editor-CiQQjf9m.js → number-overlay-editor-Br_Vp3Ws.js} +1 -1
- package/dist/{pegDiagram-XKGWAZYB-DFMS6feI.js → pegDiagram-XKGWAZYB-DiY7rITR.js} +2 -2
- package/dist/{pencil-CHkdsX07.js → pencil-AWgwbH4D.js} +1 -1
- package/dist/{pieDiagram-E7YTZNPT-C0MSBop-.js → pieDiagram-E7YTZNPT-BL6InbDs.js} +1 -1
- package/dist/{process-output-CnCLfvnL.js → process-output-xJm8T5-E.js} +4 -4
- package/dist/{railroadDiagram-O6MQD6OU-mbdav2pV.js → railroadDiagram-O6MQD6OU-DterenMu.js} +2 -2
- package/dist/{requirementDiagram-BXWQKSXE-C1HNBBO6.js → requirementDiagram-BXWQKSXE-Vb5_9LHC.js} +1 -1
- package/dist/{reveal-component-B73BObRc.js → reveal-component-B7TgfbYJ.js} +1008 -1008
- package/dist/{select-CvorIE3l.js → select-CKLRKIzB.js} +298 -298
- package/dist/{sequenceDiagram-WJ2MYXX4-D6gBHifq.js → sequenceDiagram-WJ2MYXX4-BWsq8hMt.js} +1 -1
- package/dist/{spec-ayzaXGVq.js → spec-C4uOz0Em.js} +4 -4
- package/dist/{stateDiagram-D77RDMKH-Bx-fTtRZ.js → stateDiagram-D77RDMKH-nfKKy6aQ.js} +2 -2
- package/dist/{stateDiagram-v2-MP3YSRHH-Cec8T2yO.js → stateDiagram-v2-MP3YSRHH-DMUHA_9A.js} +2 -2
- package/dist/{static-state-CqwW3B_X.js → static-state-DZ1nSa6e.js} +9 -9
- package/dist/{swimlanes-42K2YHIH-C2bAgnov.js → swimlanes-42K2YHIH-N4qHIMoc.js} +1 -1
- package/dist/{swimlanesDiagram-VR7AAH4N-CzeG-Mnb.js → swimlanesDiagram-VR7AAH4N-DQpDDjQb.js} +2 -2
- package/dist/{timeline-definition-24CTP7MA-DTJ0Rx8X.js → timeline-definition-24CTP7MA-Od8dY9F5.js} +1 -1
- package/dist/{toast-6V8Og7d5.js → toast-bhZHUEal.js} +187 -187
- package/dist/{tooltip-D0h-ZJ6j.js → tooltip-DSWC_Td_.js} +40 -40
- package/dist/{use-restore-focus-BFvwj2Hj.js → use-restore-focus-ocw7t85i.js} +1371 -1373
- package/dist/{useDateFormatter-D6o9PsWt.js → useDateFormatter-BiDS8uXQ.js} +2 -2
- package/dist/{useDeepCompareMemoize-D-Pbv7dN.js → useDeepCompareMemoize-BsaXfZ8C.js} +1 -1
- package/dist/{useLifecycle-CE0yGTMF.js → useLifecycle-CCV7yZ-v.js} +1 -1
- package/dist/{vega-component-DTf7GHQe.js → vega-component-DpTyTrz3.js} +6 -6
- package/dist/{vennDiagram-4TSXK5OY-lIM3SAjl.js → vennDiagram-4TSXK5OY-Di3T2YMb.js} +1 -1
- package/dist/{wardleyDiagram-VM6X3IG4-Bw_t7uvA.js → wardleyDiagram-VM6X3IG4-CKOF5DTi.js} +1 -1
- package/dist/{xychartDiagram-S5SC5T6Z-BXwkLYKj.js → xychartDiagram-S5SC5T6Z-GYLPWSeb.js} +1 -1
- package/package.json +1 -1
- package/src/__mocks__/executions.ts +25 -3
- package/src/__tests__/notebook-analysis.ts +48 -0
- package/src/components/editor/ai/__tests__/completion-utils.test.ts +28 -61
- package/src/components/editor/navigation/__tests__/navigation.test.ts +0 -4
- package/src/core/cells/__tests__/add-missing-import.test.ts +14 -9
- package/src/core/cells/__tests__/pending-delete-service.test.tsx +4 -11
- package/src/core/cells/add-missing-import.ts +2 -3
- package/src/core/codemirror/code-lens/__tests__/entities.test.ts +7 -11
- package/src/core/codemirror/code-lens/__tests__/extension.test.ts +8 -13
- package/src/core/codemirror/code-lens/__tests__/perf.test.ts +7 -9
- package/src/core/codemirror/copilot/__tests__/getCodes.test.ts +9 -13
- package/src/core/codemirror/go-to-definition/__tests__/utils.test.ts +16 -35
- package/src/core/codemirror/language/embedded/__tests__/embedded-python.test.ts +2 -18
- package/src/core/codemirror/reactive-references/__tests__/extension.test.ts +8 -14
- package/src/core/datasets/__tests__/data-source.test.ts +15 -17
- package/src/core/datasets/data-source-connections.ts +8 -11
- package/src/core/datasets/state.ts +7 -12
- package/src/core/executions/__tests__/freshness.test.ts +8 -3
- package/src/core/executions/__tests__/interrupt.test.ts +1 -0
- package/src/core/executions/__tests__/select.test.ts +1 -1
- package/src/core/executions/atoms.ts +1 -0
- package/src/core/executions/freshness.ts +2 -2
- package/src/core/islands/bootstrap.ts +0 -2
- package/src/core/notebook/replica/__tests__/executions.test.ts +4 -2
- package/src/core/notebook/replica/replica.ts +11 -2
- package/src/core/notebook/replica/resources/executions.ts +29 -20
- package/src/core/session/__tests__/useNotebookSession.hook.test.tsx +192 -1
- package/src/core/session/useNotebookSession.tsx +37 -37
- package/src/core/storage/__tests__/state.test.ts +6 -9
- package/src/core/storage/state.ts +5 -8
- package/src/core/variables/state.ts +73 -68
- package/src/core/variables/types.ts +2 -2
- package/src/core/variables/__tests__/state.test.ts +0 -148
|
@@ -2,28 +2,28 @@ import { a as e } from "./rolldown-runtime-BPCzCO3I.js";
|
|
|
2
2
|
import { g as t, h as n, m as r, r as i, t as a } from "./button-Z2R2272J.js";
|
|
3
3
|
import { t as o } from "./react-Bgs_wQh3.js";
|
|
4
4
|
import { t as s } from "./compiler-runtime-C5KHtL5D.js";
|
|
5
|
-
import { h as c, t as l } from "./tooltip-
|
|
6
|
-
import { Cn as u, En as d, Sn as f, dn as p, et as m, f as h, i as g, l as _, n as v, nt as y, r as b, t as x, tt as S, u as C } from "./common-
|
|
7
|
-
import { M as w } from "./select-
|
|
8
|
-
import { X as T } from "./dropdown-menu-
|
|
5
|
+
import { h as c, t as l } from "./tooltip-DSWC_Td_.js";
|
|
6
|
+
import { Cn as u, En as d, Sn as f, dn as p, et as m, f as h, i as g, l as _, n as v, nt as y, r as b, t as x, tt as S, u as C } from "./common-CQur5dRA.js";
|
|
7
|
+
import { M as w } from "./select-CKLRKIzB.js";
|
|
8
|
+
import { X as T } from "./dropdown-menu-DYN2RV5d.js";
|
|
9
9
|
import { t as E } from "./jsx-runtime-D8btoEHk.js";
|
|
10
|
-
import {
|
|
11
|
-
import { t as
|
|
12
|
-
import { o as
|
|
13
|
-
import { n as
|
|
10
|
+
import { Bt as D, Ut as O, f as k, i as ee } from "./use-restore-focus-ocw7t85i.js";
|
|
11
|
+
import { t as A } from "./useEvent-BoN7U38T.js";
|
|
12
|
+
import { o as te } from "./static-state-DZ1nSa6e.js";
|
|
13
|
+
import { n as ne, t as re } from "./code-visibility-BnMkbydx.js";
|
|
14
14
|
/* empty css */
|
|
15
|
-
var
|
|
15
|
+
var j = c("sticky-note", [["path", {
|
|
16
16
|
d: "M21 9a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 15 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2z",
|
|
17
17
|
key: "1dfntj"
|
|
18
18
|
}], ["path", {
|
|
19
19
|
d: "M15 3v5a1 1 0 0 0 1 1h5",
|
|
20
20
|
key: "6s6qgf"
|
|
21
|
-
}]]),
|
|
21
|
+
}]]), M = /* @__PURE__ */ e(o(), 1), N = s(), ie = (e, t) => {
|
|
22
22
|
for (let n in t) e[n] = t[n];
|
|
23
23
|
return e;
|
|
24
|
-
},
|
|
24
|
+
}, P = (e, t) => Array.from(e.querySelectorAll(t)), ae = (e, t, n) => {
|
|
25
25
|
n ? e.classList.add(t) : e.classList.remove(t);
|
|
26
|
-
},
|
|
26
|
+
}, oe = (e) => {
|
|
27
27
|
if (typeof e == "string") {
|
|
28
28
|
if (e === "null") return null;
|
|
29
29
|
if (e === "true") return !0;
|
|
@@ -31,23 +31,23 @@ var M = c("sticky-note", [["path", {
|
|
|
31
31
|
if (e.match(/^-?[\d\.]+$/)) return parseFloat(e);
|
|
32
32
|
}
|
|
33
33
|
return e;
|
|
34
|
-
}, oe = (e, t) => {
|
|
35
|
-
e.style.transform = t;
|
|
36
34
|
}, se = (e, t) => {
|
|
35
|
+
e.style.transform = t;
|
|
36
|
+
}, ce = (e, t) => {
|
|
37
37
|
let n = e.matches || e.matchesSelector || e.msMatchesSelector;
|
|
38
38
|
return !!(n && n.call(e, t));
|
|
39
|
-
},
|
|
39
|
+
}, F = (e, t) => {
|
|
40
40
|
if (e && typeof e.closest == "function") return e.closest(t);
|
|
41
41
|
for (; e;) {
|
|
42
|
-
if (
|
|
42
|
+
if (ce(e, t)) return e;
|
|
43
43
|
e = e.parentElement;
|
|
44
44
|
}
|
|
45
45
|
return null;
|
|
46
|
-
},
|
|
46
|
+
}, I = (e) => {
|
|
47
47
|
e ||= document.documentElement;
|
|
48
48
|
let t = e.requestFullscreen || e.webkitRequestFullscreen || e.webkitRequestFullScreen || e.mozRequestFullScreen || e.msRequestFullscreen;
|
|
49
49
|
t && t.apply(e);
|
|
50
|
-
},
|
|
50
|
+
}, le = (e, t, n, r = "") => {
|
|
51
51
|
let i = e.querySelectorAll("." + n);
|
|
52
52
|
for (let t = 0; t < i.length; t++) {
|
|
53
53
|
let n = i[t];
|
|
@@ -55,10 +55,10 @@ var M = c("sticky-note", [["path", {
|
|
|
55
55
|
}
|
|
56
56
|
let a = document.createElement(t);
|
|
57
57
|
return a.className = n, a.innerHTML = r, e.appendChild(a), a;
|
|
58
|
-
},
|
|
58
|
+
}, ue = (e) => {
|
|
59
59
|
let t = document.createElement("style");
|
|
60
60
|
return e && e.length > 0 && t.appendChild(document.createTextNode(e)), document.head.appendChild(t), t;
|
|
61
|
-
},
|
|
61
|
+
}, de = () => {
|
|
62
62
|
let e = {};
|
|
63
63
|
location.search.replace(/[A-Z0-9]+?=([\w\.%-]*)/gi, (t) => {
|
|
64
64
|
let n = t.split("=").shift(), r = t.split("=").pop();
|
|
@@ -66,27 +66,27 @@ var M = c("sticky-note", [["path", {
|
|
|
66
66
|
});
|
|
67
67
|
for (let t in e) {
|
|
68
68
|
let n = e[t];
|
|
69
|
-
e[t] =
|
|
69
|
+
e[t] = oe(unescape(n));
|
|
70
70
|
}
|
|
71
71
|
return e.dependencies !== void 0 && delete e.dependencies, e;
|
|
72
|
-
},
|
|
72
|
+
}, fe = (e, t = 0) => {
|
|
73
73
|
if (e) {
|
|
74
74
|
let n, r = e.style.height;
|
|
75
75
|
return e.style.height = "0px", e.parentElement && (e.parentElement.style.height = "auto"), n = t - (e.parentElement?.offsetHeight || 0), e.style.height = r + "px", e.parentElement && e.parentElement.style.removeProperty("height"), n;
|
|
76
76
|
}
|
|
77
77
|
return t;
|
|
78
|
-
},
|
|
78
|
+
}, pe = {
|
|
79
79
|
mp4: "video/mp4",
|
|
80
80
|
m4a: "video/mp4",
|
|
81
81
|
ogv: "video/ogg",
|
|
82
82
|
mpeg: "video/mpeg",
|
|
83
83
|
webm: "video/webm"
|
|
84
|
-
},
|
|
84
|
+
}, me = (e = "") => {
|
|
85
85
|
let t = e.split(".").pop();
|
|
86
|
-
return t ?
|
|
87
|
-
},
|
|
88
|
-
/chrome/i.test(
|
|
89
|
-
var
|
|
86
|
+
return t ? pe[t] : void 0;
|
|
87
|
+
}, he = (e = "") => encodeURI(e).replace(/%5B/g, "[").replace(/%5D/g, "]").replace(/[!'()*]/g, (e) => `%${e.charCodeAt(0).toString(16).toUpperCase()}`), ge = navigator.userAgent, _e = /(iphone|ipod|ipad|android)/gi.test(ge) || navigator.platform === "MacIntel" && navigator.maxTouchPoints > 1;
|
|
88
|
+
/chrome/i.test(ge) && /edge/i.test(ge);
|
|
89
|
+
var ve = /android/gi.test(ge), ye = function(e) {
|
|
90
90
|
if (e) {
|
|
91
91
|
var t = function(e) {
|
|
92
92
|
return [].slice.call(e);
|
|
@@ -202,39 +202,39 @@ var _e = /android/gi.test(he), ve = function(e) {
|
|
|
202
202
|
return typeof e == "string" ? D(t(document.querySelectorAll(e)), n) : D([e], n)[0];
|
|
203
203
|
}
|
|
204
204
|
}(typeof window > "u" ? null : window);
|
|
205
|
-
function
|
|
205
|
+
function L(e) {
|
|
206
206
|
"@babel/helpers - typeof";
|
|
207
|
-
return
|
|
207
|
+
return L = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
208
208
|
return typeof e;
|
|
209
209
|
} : function(e) {
|
|
210
210
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
211
|
-
},
|
|
211
|
+
}, L(e);
|
|
212
212
|
}
|
|
213
|
-
function
|
|
214
|
-
if (
|
|
213
|
+
function be(e, t) {
|
|
214
|
+
if (L(e) != "object" || !e) return e;
|
|
215
215
|
var n = e[Symbol.toPrimitive];
|
|
216
216
|
if (n !== void 0) {
|
|
217
217
|
var r = n.call(e, t || "default");
|
|
218
|
-
if (
|
|
218
|
+
if (L(r) != "object") return r;
|
|
219
219
|
throw TypeError("@@toPrimitive must return a primitive value.");
|
|
220
220
|
}
|
|
221
221
|
return (t === "string" ? String : Number)(e);
|
|
222
222
|
}
|
|
223
|
-
function
|
|
224
|
-
var t =
|
|
225
|
-
return
|
|
223
|
+
function xe(e) {
|
|
224
|
+
var t = be(e, "string");
|
|
225
|
+
return L(t) == "symbol" ? t : t + "";
|
|
226
226
|
}
|
|
227
|
-
function
|
|
228
|
-
return (t =
|
|
227
|
+
function Se(e, t, n) {
|
|
228
|
+
return (t = xe(t)) in e ? Object.defineProperty(e, t, {
|
|
229
229
|
value: n,
|
|
230
230
|
enumerable: !0,
|
|
231
231
|
configurable: !0,
|
|
232
232
|
writable: !0
|
|
233
233
|
}) : e[t] = n, e;
|
|
234
234
|
}
|
|
235
|
-
var
|
|
235
|
+
var Ce = class {
|
|
236
236
|
constructor(e) {
|
|
237
|
-
|
|
237
|
+
Se(this, "allowedToPlayAudio", null), this.Reveal = e, this.startEmbeddedMedia = this.startEmbeddedMedia.bind(this), this.startEmbeddedIframe = this.startEmbeddedIframe.bind(this), this.preventIframeAutoFocus = this.preventIframeAutoFocus.bind(this), this.ensureMobileMediaPlaying = this.ensureMobileMediaPlaying.bind(this), this.failedAudioPlaybackTargets = /* @__PURE__ */ new Set(), this.failedVideoPlaybackTargets = /* @__PURE__ */ new Set(), this.failedMutedVideoPlaybackTargets = /* @__PURE__ */ new Set(), this.renderMediaPlayButton();
|
|
238
238
|
}
|
|
239
239
|
renderMediaPlayButton() {
|
|
240
240
|
this.mediaPlayButton = document.createElement("button"), this.mediaPlayButton.className = "r-overlay-button r-media-play-button", this.mediaPlayButton.addEventListener("click", () => {
|
|
@@ -258,14 +258,14 @@ var Se = class {
|
|
|
258
258
|
let t = n.replace(/\s*!important\s*$/, "").trim();
|
|
259
259
|
e.style.setProperty("display", t, "important");
|
|
260
260
|
} else e.style.display = n;
|
|
261
|
-
|
|
261
|
+
P(e, "img[data-src], video[data-src], audio[data-src], iframe[data-src]").forEach((e) => {
|
|
262
262
|
let t = e.tagName === "IFRAME";
|
|
263
263
|
(!t || this.shouldPreload(e)) && (e.setAttribute("src", e.getAttribute("data-src")), e.setAttribute("data-lazy-loaded", ""), e.removeAttribute("data-src"), t && e.addEventListener("load", this.preventIframeAutoFocus));
|
|
264
|
-
}),
|
|
264
|
+
}), P(e, "video, audio").forEach((e) => {
|
|
265
265
|
let t = 0;
|
|
266
|
-
|
|
266
|
+
P(e, "source[data-src]").forEach((e) => {
|
|
267
267
|
e.setAttribute("src", e.getAttribute("data-src")), e.removeAttribute("data-src"), e.setAttribute("data-lazy-loaded", ""), t += 1;
|
|
268
|
-
}),
|
|
268
|
+
}), _e && e.tagName === "VIDEO" && e.setAttribute("playsinline", ""), t > 0 && e.load();
|
|
269
269
|
});
|
|
270
270
|
let r = e.slideBackgroundElement;
|
|
271
271
|
if (r) {
|
|
@@ -274,13 +274,13 @@ var Se = class {
|
|
|
274
274
|
if (r.hasAttribute("data-loaded") === !1) {
|
|
275
275
|
r.setAttribute("data-loaded", "true");
|
|
276
276
|
let a = e.getAttribute("data-background-image"), o = e.getAttribute("data-background-video"), s = e.hasAttribute("data-background-video-loop"), c = e.hasAttribute("data-background-video-muted");
|
|
277
|
-
if (a) /^data:/.test(a.trim()) ? n.style.backgroundImage = `url(${a.trim()})` : n.style.backgroundImage = a.split(",").map((e) => `url(${
|
|
277
|
+
if (a) /^data:/.test(a.trim()) ? n.style.backgroundImage = `url(${a.trim()})` : n.style.backgroundImage = a.split(",").map((e) => `url(${he(decodeURI(e.trim()))})`).join(",");
|
|
278
278
|
else if (o) {
|
|
279
279
|
let e = document.createElement("video");
|
|
280
|
-
s && e.setAttribute("loop", ""), (c || this.Reveal.isSpeakerNotes()) && (e.muted = !0),
|
|
280
|
+
s && e.setAttribute("loop", ""), (c || this.Reveal.isSpeakerNotes()) && (e.muted = !0), _e && e.setAttribute("playsinline", ""), o.split(",").forEach((t) => {
|
|
281
281
|
let n = document.createElement("source");
|
|
282
282
|
n.setAttribute("src", t);
|
|
283
|
-
let r =
|
|
283
|
+
let r = me(t);
|
|
284
284
|
r && n.setAttribute("type", r), e.appendChild(n);
|
|
285
285
|
}), n.appendChild(e);
|
|
286
286
|
} else if (i && t.excludeIframes !== !0) {
|
|
@@ -295,7 +295,7 @@ var Se = class {
|
|
|
295
295
|
}
|
|
296
296
|
layout(e) {
|
|
297
297
|
Array.from(e.querySelectorAll(".r-fit-text")).forEach((e) => {
|
|
298
|
-
|
|
298
|
+
ye(e, {
|
|
299
299
|
minSize: 24,
|
|
300
300
|
maxSize: this.Reveal.getConfig().height * .8,
|
|
301
301
|
observeMutations: !1,
|
|
@@ -306,17 +306,17 @@ var Se = class {
|
|
|
306
306
|
unload(e) {
|
|
307
307
|
e.style.display = "none";
|
|
308
308
|
let t = this.Reveal.getSlideBackground(e);
|
|
309
|
-
t && (t.style.display = "none",
|
|
309
|
+
t && (t.style.display = "none", P(t, "iframe[src]").forEach((e) => {
|
|
310
310
|
e.removeAttribute("src");
|
|
311
|
-
})),
|
|
311
|
+
})), P(e, "video[data-lazy-loaded][src], audio[data-lazy-loaded][src], iframe[data-lazy-loaded][src]").forEach((e) => {
|
|
312
312
|
e.setAttribute("data-src", e.getAttribute("src")), e.removeAttribute("src");
|
|
313
|
-
}),
|
|
313
|
+
}), P(e, "video[data-lazy-loaded] source[src], audio source[src]").forEach((e) => {
|
|
314
314
|
e.setAttribute("data-src", e.getAttribute("src")), e.removeAttribute("src");
|
|
315
315
|
});
|
|
316
316
|
}
|
|
317
317
|
formatEmbeddedContent() {
|
|
318
318
|
let e = (e, t, n) => {
|
|
319
|
-
|
|
319
|
+
P(this.Reveal.getSlidesElement(), "iframe[" + e + "*=\"" + t + "\"]").forEach((t) => {
|
|
320
320
|
let r = t.getAttribute(e);
|
|
321
321
|
r && r.indexOf(n) === -1 && t.setAttribute(e, r + (/\?/.test(r) ? "&" : "?") + n);
|
|
322
322
|
});
|
|
@@ -326,19 +326,19 @@ var Se = class {
|
|
|
326
326
|
startEmbeddedContent(e) {
|
|
327
327
|
if (e) {
|
|
328
328
|
let t = this.Reveal.isSpeakerNotes();
|
|
329
|
-
|
|
329
|
+
P(e, "img[src$=\".gif\"]").forEach((e) => {
|
|
330
330
|
e.setAttribute("src", e.getAttribute("src"));
|
|
331
|
-
}),
|
|
332
|
-
if (
|
|
331
|
+
}), P(e, "video, audio").forEach((e) => {
|
|
332
|
+
if (F(e, ".fragment") && !F(e, ".fragment.visible")) return;
|
|
333
333
|
let n = this.Reveal.getConfig().autoPlayMedia;
|
|
334
|
-
if (typeof n != "boolean" && (n = e.hasAttribute("data-autoplay") || !!
|
|
334
|
+
if (typeof n != "boolean" && (n = e.hasAttribute("data-autoplay") || !!F(e, ".slide-background")), n && typeof e.play == "function") {
|
|
335
335
|
if (t && !e.muted) return;
|
|
336
|
-
e.readyState > 1 ? this.startEmbeddedMedia({ target: e }) :
|
|
336
|
+
e.readyState > 1 ? this.startEmbeddedMedia({ target: e }) : _e ? (e.addEventListener("canplay", this.ensureMobileMediaPlaying), this.playMediaElement(e)) : (e.removeEventListener("loadeddata", this.startEmbeddedMedia), e.addEventListener("loadeddata", this.startEmbeddedMedia));
|
|
337
337
|
}
|
|
338
|
-
}), t || (
|
|
339
|
-
|
|
340
|
-
}),
|
|
341
|
-
|
|
338
|
+
}), t || (P(e, "iframe[src]").forEach((e) => {
|
|
339
|
+
F(e, ".fragment") && !F(e, ".fragment.visible") || this.startEmbeddedIframe({ target: e });
|
|
340
|
+
}), P(e, "iframe[data-src]").forEach((e) => {
|
|
341
|
+
F(e, ".fragment") && !F(e, ".fragment.visible") || e.getAttribute("src") !== e.getAttribute("data-src") && (e.removeEventListener("load", this.startEmbeddedIframe), e.addEventListener("load", this.startEmbeddedIframe), e.setAttribute("src", e.getAttribute("data-src")));
|
|
342
342
|
}));
|
|
343
343
|
}
|
|
344
344
|
}
|
|
@@ -350,7 +350,7 @@ var Se = class {
|
|
|
350
350
|
}, 1e3);
|
|
351
351
|
}
|
|
352
352
|
startEmbeddedMedia(e) {
|
|
353
|
-
let t = !!
|
|
353
|
+
let t = !!F(e.target, "html"), n = !!F(e.target, ".present");
|
|
354
354
|
t && n && (e.target.paused || e.target.ended) && (e.target.currentTime = 0, this.playMediaElement(e.target)), e.target.removeEventListener("loadeddata", this.startEmbeddedMedia);
|
|
355
355
|
}
|
|
356
356
|
playMediaElement(e) {
|
|
@@ -361,7 +361,7 @@ var Se = class {
|
|
|
361
361
|
if (t.name === "NotAllowedError") {
|
|
362
362
|
if (this.allowedToPlayAudio = !1, e.tagName === "VIDEO") {
|
|
363
363
|
this.onVideoPlaybackNotAllowed(e);
|
|
364
|
-
let t = !!
|
|
364
|
+
let t = !!F(e, "html"), n = !!F(e, ".present"), r = e.muted;
|
|
365
365
|
t && n && !r && (e.setAttribute("data-muted-by-reveal", "true"), e.muted = !0, e.play().catch(() => {
|
|
366
366
|
this.onMutedVideoPlaybackNotAllowed(e);
|
|
367
367
|
}));
|
|
@@ -372,23 +372,23 @@ var Se = class {
|
|
|
372
372
|
startEmbeddedIframe(e) {
|
|
373
373
|
let t = e.target;
|
|
374
374
|
if (this.preventIframeAutoFocus(e), t && t.contentWindow) {
|
|
375
|
-
let n = !!
|
|
375
|
+
let n = !!F(e.target, "html"), r = !!F(e.target, ".present");
|
|
376
376
|
if (n && r) {
|
|
377
377
|
let e = this.Reveal.getConfig().autoPlayMedia;
|
|
378
|
-
typeof e != "boolean" && (e = t.hasAttribute("data-autoplay") || !!
|
|
378
|
+
typeof e != "boolean" && (e = t.hasAttribute("data-autoplay") || !!F(t, ".slide-background")), /youtube\.com\/embed\//.test(t.getAttribute("src")) && e ? t.contentWindow.postMessage("{\"event\":\"command\",\"func\":\"playVideo\",\"args\":\"\"}", "*") : /player\.vimeo\.com\//.test(t.getAttribute("src")) && e ? t.contentWindow.postMessage("{\"method\":\"play\"}", "*") : t.contentWindow.postMessage("slide:start", "*");
|
|
379
379
|
}
|
|
380
380
|
}
|
|
381
381
|
}
|
|
382
382
|
stopEmbeddedContent(e, t = {}) {
|
|
383
|
-
t =
|
|
384
|
-
!e.hasAttribute("data-ignore") && typeof e.pause == "function" && (e.setAttribute("data-paused-by-reveal", ""), e.pause(),
|
|
385
|
-
}),
|
|
383
|
+
t = ie({ unloadIframes: !0 }, t), e && e.parentNode && (P(e, "video, audio").forEach((e) => {
|
|
384
|
+
!e.hasAttribute("data-ignore") && typeof e.pause == "function" && (e.setAttribute("data-paused-by-reveal", ""), e.pause(), _e && e.removeEventListener("canplay", this.ensureMobileMediaPlaying));
|
|
385
|
+
}), P(e, "iframe").forEach((e) => {
|
|
386
386
|
e.contentWindow && e.contentWindow.postMessage("slide:stop", "*"), e.removeEventListener("load", this.preventIframeAutoFocus), e.removeEventListener("load", this.startEmbeddedIframe);
|
|
387
|
-
}),
|
|
387
|
+
}), P(e, "iframe[src*=\"youtube.com/embed/\"]").forEach((e) => {
|
|
388
388
|
!e.hasAttribute("data-ignore") && e.contentWindow && typeof e.contentWindow.postMessage == "function" && e.contentWindow.postMessage("{\"event\":\"command\",\"func\":\"pauseVideo\",\"args\":\"\"}", "*");
|
|
389
|
-
}),
|
|
389
|
+
}), P(e, "iframe[src*=\"player.vimeo.com/\"]").forEach((e) => {
|
|
390
390
|
!e.hasAttribute("data-ignore") && e.contentWindow && typeof e.contentWindow.postMessage == "function" && e.contentWindow.postMessage("{\"method\":\"pause\"}", "*");
|
|
391
|
-
}), t.unloadIframes === !0 &&
|
|
391
|
+
}), t.unloadIframes === !0 && P(e, "iframe[data-src]").forEach((e) => {
|
|
392
392
|
e.setAttribute("src", "about:blank"), e.removeAttribute("src");
|
|
393
393
|
}));
|
|
394
394
|
}
|
|
@@ -432,7 +432,7 @@ var Se = class {
|
|
|
432
432
|
afterSlideChanged() {
|
|
433
433
|
this.clearMediaPlaybackErrors();
|
|
434
434
|
}
|
|
435
|
-
},
|
|
435
|
+
}, R = ".slides section", z = ".slides>section", we = ".slides>section.present>section", Te = ".backgrounds>.slide-background", Ee = /registerPlugin|registerKeyboardShortcut|addKeyBinding|addEventListener|showPreview|previewIframe/, De = class {
|
|
436
436
|
constructor(e) {
|
|
437
437
|
this.Reveal = e;
|
|
438
438
|
}
|
|
@@ -481,7 +481,7 @@ var Se = class {
|
|
|
481
481
|
destroy() {
|
|
482
482
|
this.element.remove();
|
|
483
483
|
}
|
|
484
|
-
},
|
|
484
|
+
}, Oe = class {
|
|
485
485
|
constructor(e) {
|
|
486
486
|
this.Reveal = e, this.onInput = this.onInput.bind(this), this.onBlur = this.onBlur.bind(this), this.onKeyDown = this.onKeyDown.bind(this);
|
|
487
487
|
}
|
|
@@ -534,7 +534,7 @@ var Se = class {
|
|
|
534
534
|
onBlur() {
|
|
535
535
|
setTimeout(() => this.hide(), 1);
|
|
536
536
|
}
|
|
537
|
-
},
|
|
537
|
+
}, B = (e) => {
|
|
538
538
|
let t = e.match(/^#([0-9a-f]{3})$/i);
|
|
539
539
|
if (t && t[1]) {
|
|
540
540
|
let e = t[1];
|
|
@@ -566,7 +566,7 @@ var Se = class {
|
|
|
566
566
|
b: parseInt(i[3], 10),
|
|
567
567
|
a: parseFloat(i[4])
|
|
568
568
|
} : null;
|
|
569
|
-
},
|
|
569
|
+
}, V = (e) => (typeof e == "string" && (e = B(e)), e ? (e.r * 299 + e.g * 587 + e.b * 114) / 1e3 : null), ke = class {
|
|
570
570
|
constructor(e) {
|
|
571
571
|
this.Reveal = e;
|
|
572
572
|
}
|
|
@@ -576,7 +576,7 @@ var Se = class {
|
|
|
576
576
|
create() {
|
|
577
577
|
this.element.innerHTML = "", this.element.classList.add("no-transition"), this.Reveal.getHorizontalSlides().forEach((e) => {
|
|
578
578
|
let t = this.createBackground(e, this.element);
|
|
579
|
-
|
|
579
|
+
P(e, "section").forEach((e) => {
|
|
580
580
|
this.createBackground(e, t), t.classList.add("stack");
|
|
581
581
|
});
|
|
582
582
|
}), this.Reveal.getConfig().parallaxBackgroundImage ? (this.element.style.backgroundImage = "url(\"" + this.Reveal.getConfig().parallaxBackgroundImage + "\")", this.element.style.backgroundSize = this.Reveal.getConfig().parallaxBackgroundSize, this.element.style.backgroundRepeat = this.Reveal.getConfig().parallaxBackgroundRepeat, this.element.style.backgroundPosition = this.Reveal.getConfig().parallaxBackgroundPosition, setTimeout(() => {
|
|
@@ -609,13 +609,13 @@ var Se = class {
|
|
|
609
609
|
}
|
|
610
610
|
getContrastClass(e) {
|
|
611
611
|
let t = e.slideBackgroundElement, n = e.getAttribute("data-background-color");
|
|
612
|
-
if (!n || !
|
|
612
|
+
if (!n || !B(n)) {
|
|
613
613
|
let e = window.getComputedStyle(t);
|
|
614
614
|
e && e.backgroundColor && (n = e.backgroundColor);
|
|
615
615
|
}
|
|
616
616
|
if (n) {
|
|
617
|
-
let e =
|
|
618
|
-
if (e && e.a !== 0) return
|
|
617
|
+
let e = B(n);
|
|
618
|
+
if (e && e.a !== 0) return V(n) < 128 ? "has-dark-background" : "has-light-background";
|
|
619
619
|
}
|
|
620
620
|
return null;
|
|
621
621
|
}
|
|
@@ -627,7 +627,7 @@ var Se = class {
|
|
|
627
627
|
update(e = !1) {
|
|
628
628
|
let t = this.Reveal.getConfig(), n = this.Reveal.getCurrentSlide(), r = this.Reveal.getIndices(), i = null, a = t.rtl ? "future" : "past", o = t.rtl ? "past" : "future";
|
|
629
629
|
if (Array.from(this.element.childNodes).forEach((t, n) => {
|
|
630
|
-
t.classList.remove("past", "present", "future"), n < r.h ? t.classList.add(a) : n > r.h ? t.classList.add(o) : (t.classList.add("present"), i = t), (e || n === r.h) &&
|
|
630
|
+
t.classList.remove("past", "present", "future"), n < r.h ? t.classList.add(a) : n > r.h ? t.classList.add(o) : (t.classList.add("present"), i = t), (e || n === r.h) && P(t, ".slide-background").forEach((e, t) => {
|
|
631
631
|
e.classList.remove("past", "present", "future");
|
|
632
632
|
let a = typeof r.v == "number" ? r.v : 0;
|
|
633
633
|
t < a ? e.classList.add("past") : t > a ? e.classList.add("future") : (e.classList.add("present"), n === r.h && (i = e));
|
|
@@ -671,7 +671,7 @@ var Se = class {
|
|
|
671
671
|
destroy() {
|
|
672
672
|
this.element.remove();
|
|
673
673
|
}
|
|
674
|
-
},
|
|
674
|
+
}, Ae = 0, je = class {
|
|
675
675
|
constructor(e) {
|
|
676
676
|
this.Reveal = e;
|
|
677
677
|
}
|
|
@@ -679,17 +679,17 @@ var Se = class {
|
|
|
679
679
|
this.reset();
|
|
680
680
|
let n = this.Reveal.getSlides(), r = n.indexOf(t), i = n.indexOf(e);
|
|
681
681
|
if (e && t && e.hasAttribute("data-auto-animate") && t.hasAttribute("data-auto-animate") && e.getAttribute("data-auto-animate-id") === t.getAttribute("data-auto-animate-id") && !(r > i ? t : e).hasAttribute("data-auto-animate-restart")) {
|
|
682
|
-
this.autoAnimateStyleSheet = this.autoAnimateStyleSheet ||
|
|
682
|
+
this.autoAnimateStyleSheet = this.autoAnimateStyleSheet || ue();
|
|
683
683
|
let n = this.getAutoAnimateOptions(t);
|
|
684
684
|
e.dataset.autoAnimate = "pending", t.dataset.autoAnimate = "pending", n.slideDirection = r > i ? "forward" : "backward";
|
|
685
685
|
let a = e.style.display === "none";
|
|
686
686
|
a && (e.style.display = this.Reveal.getConfig().display);
|
|
687
|
-
let o = this.getAutoAnimatableElements(e, t).map((e) => this.autoAnimateElements(e.from, e.to, e.options || {}, n,
|
|
687
|
+
let o = this.getAutoAnimatableElements(e, t).map((e) => this.autoAnimateElements(e.from, e.to, e.options || {}, n, Ae++));
|
|
688
688
|
if (a && (e.style.display = "none"), t.dataset.autoAnimateUnmatched !== "false" && this.Reveal.getConfig().autoAnimateUnmatched === !0) {
|
|
689
689
|
let e = n.duration * .8, r = n.duration * .2;
|
|
690
690
|
this.getUnmatchedAutoAnimateElements(t).forEach((e) => {
|
|
691
691
|
let t = this.getAutoAnimateOptions(e, n), r = "unmatched";
|
|
692
|
-
(t.duration !== n.duration || t.delay !== n.delay) && (r = "unmatched-" +
|
|
692
|
+
(t.duration !== n.duration || t.delay !== n.delay) && (r = "unmatched-" + Ae++, o.push(`[data-auto-animate="running"] [data-auto-animate-target="${r}"] { transition: opacity ${t.duration}s ease ${t.delay}s; }`)), e.dataset.autoAnimateTarget = r;
|
|
693
693
|
}, this), o.push(`[data-auto-animate="running"] [data-auto-animate-target="unmatched"] { transition: opacity ${e}s ease ${r}s; }`);
|
|
694
694
|
}
|
|
695
695
|
this.autoAnimateStyleSheet.innerHTML = o.join(""), requestAnimationFrame(() => {
|
|
@@ -705,9 +705,9 @@ var Se = class {
|
|
|
705
705
|
}
|
|
706
706
|
}
|
|
707
707
|
reset() {
|
|
708
|
-
|
|
708
|
+
P(this.Reveal.getRevealElement(), "[data-auto-animate]:not([data-auto-animate=\"\"])").forEach((e) => {
|
|
709
709
|
e.dataset.autoAnimate = "";
|
|
710
|
-
}),
|
|
710
|
+
}), P(this.Reveal.getRevealElement(), "[data-auto-animate-target]").forEach((e) => {
|
|
711
711
|
delete e.dataset.autoAnimateTarget;
|
|
712
712
|
}), this.autoAnimateStyleSheet && this.autoAnimateStyleSheet.parentNode && (this.autoAnimateStyleSheet.parentNode.removeChild(this.autoAnimateStyleSheet), this.autoAnimateStyleSheet = null);
|
|
713
713
|
}
|
|
@@ -748,8 +748,8 @@ var Se = class {
|
|
|
748
748
|
duration: this.Reveal.getConfig().autoAnimateDuration,
|
|
749
749
|
delay: 0
|
|
750
750
|
};
|
|
751
|
-
if (n =
|
|
752
|
-
let t =
|
|
751
|
+
if (n = ie(n, t), e.parentNode) {
|
|
752
|
+
let t = F(e.parentNode, "[data-auto-animate-target]");
|
|
753
753
|
t && (n = this.getAutoAnimateOptions(t, n));
|
|
754
754
|
}
|
|
755
755
|
return e.dataset.autoAnimateEasing && (n.easing = e.dataset.autoAnimateEasing), e.dataset.autoAnimateDuration && (n.duration = parseFloat(e.dataset.autoAnimateDuration)), e.dataset.autoAnimateDelay && (n.delay = parseFloat(e.dataset.autoAnimateDelay)), n;
|
|
@@ -792,7 +792,7 @@ var Se = class {
|
|
|
792
792
|
getAutoAnimatePairs(e, t) {
|
|
793
793
|
let n = [], r = "h1, h2, h3, h4, h5, h6, p, li";
|
|
794
794
|
return this.findAutoAnimateMatches(n, e, t, "[data-id]", (e) => e.nodeName + ":::" + e.getAttribute("data-id")), this.findAutoAnimateMatches(n, e, t, r, (e) => e.nodeName + ":::" + e.textContent.trim()), this.findAutoAnimateMatches(n, e, t, "img, video, iframe", (e) => e.nodeName + ":::" + (e.getAttribute("src") || e.getAttribute("data-src"))), this.findAutoAnimateMatches(n, e, t, "pre", (e) => e.nodeName + ":::" + e.textContent.trim()), n.forEach((e) => {
|
|
795
|
-
|
|
795
|
+
ce(e.from, r) ? e.options = { scale: !1 } : ce(e.from, "pre") && (e.options = {
|
|
796
796
|
scale: !1,
|
|
797
797
|
styles: ["width", "height"]
|
|
798
798
|
}, this.findAutoAnimateMatches(n, e.from, e.to, ".hljs .hljs-ln-code", (e) => e.textContent, {
|
|
@@ -841,7 +841,7 @@ var Se = class {
|
|
|
841
841
|
return !t.hasAttribute("data-auto-animate-target") && !n && e.push(t), t.querySelector("[data-auto-animate-target]") && (e = e.concat(this.getUnmatchedAutoAnimateElements(t))), e;
|
|
842
842
|
}, []);
|
|
843
843
|
}
|
|
844
|
-
},
|
|
844
|
+
}, Me = 500, Ne = 4, Pe = 6, Fe = 8, Ie = class {
|
|
845
845
|
constructor(e) {
|
|
846
846
|
this.Reveal = e, this.active = !1, this.activeProgressBarPage = null, this.activeProgressBarTrigger = null, this.activatedCallbacks = [], this.onScroll = this.onScroll.bind(this);
|
|
847
847
|
}
|
|
@@ -849,7 +849,7 @@ var Se = class {
|
|
|
849
849
|
if (this.active) return;
|
|
850
850
|
let e = this.Reveal.getState();
|
|
851
851
|
this.active = !0, this.slideHTMLBeforeActivation = this.Reveal.getSlidesElement().innerHTML;
|
|
852
|
-
let t =
|
|
852
|
+
let t = P(this.Reveal.getRevealElement(), z), n = P(this.Reveal.getRevealElement(), Te);
|
|
853
853
|
this.viewportElement.classList.add("loading-scroll-mode", "reveal-scroll");
|
|
854
854
|
let r, i = window.getComputedStyle(this.viewportElement);
|
|
855
855
|
i && i.background && (r = i.background);
|
|
@@ -871,7 +871,7 @@ var Se = class {
|
|
|
871
871
|
this.Reveal.isVerticalStack(e) ? e.querySelectorAll("section").forEach((e, n) => {
|
|
872
872
|
c(e, t, n, !0);
|
|
873
873
|
}) : c(e, t, 0);
|
|
874
|
-
}, this), this.createProgressBar(),
|
|
874
|
+
}, this), this.createProgressBar(), P(this.Reveal.getRevealElement(), ".stack").forEach((e) => e.remove()), a.forEach((e) => o.appendChild(e)), this.Reveal.slideContent.layout(this.Reveal.getSlidesElement()), this.Reveal.layout(), this.Reveal.setState(e), this.activatedCallbacks.forEach((e) => e()), this.activatedCallbacks = [], this.restoreScrollPosition(), this.viewportElement.classList.remove("loading-scroll-mode"), this.viewportElement.addEventListener("scroll", this.onScroll, { passive: !0 });
|
|
875
875
|
}
|
|
876
876
|
deactivate() {
|
|
877
877
|
if (!this.active) return;
|
|
@@ -974,9 +974,9 @@ var Se = class {
|
|
|
974
974
|
e.progressBarSlide = null, e.scrollTriggers.forEach((e) => e.progressBarElement = null);
|
|
975
975
|
});
|
|
976
976
|
let e = this.viewportElement.scrollHeight, t = this.viewportElement.offsetHeight, n = t / e;
|
|
977
|
-
this.progressBarHeight = this.progressBarInner.offsetHeight, this.playheadHeight = Math.max(n * this.progressBarHeight,
|
|
978
|
-
let r = t / e * this.progressBarHeight, i = Math.min(r / 8,
|
|
979
|
-
this.progressBarPlayhead.style.height = this.playheadHeight - i + "px", r >
|
|
977
|
+
this.progressBarHeight = this.progressBarInner.offsetHeight, this.playheadHeight = Math.max(n * this.progressBarHeight, Fe), this.progressBarScrollableHeight = this.progressBarHeight - this.playheadHeight;
|
|
978
|
+
let r = t / e * this.progressBarHeight, i = Math.min(r / 8, Ne);
|
|
979
|
+
this.progressBarPlayhead.style.height = this.playheadHeight - i + "px", r > Pe && this.slideTriggers.forEach((e) => {
|
|
980
980
|
let { page: t } = e;
|
|
981
981
|
t.progressBarSlide = document.createElement("div"), t.progressBarSlide.className = "scrollbar-slide", t.progressBarSlide.style.top = e.range[0] * this.progressBarHeight + "px", t.progressBarSlide.style.height = (e.range[1] - e.range[0]) * this.progressBarHeight - i + "px", t.progressBarSlide.classList.toggle("has-triggers", t.scrollTriggers.length > 0), this.progressBarInner.appendChild(t.progressBarSlide), t.scrollTriggers.forEach((n, r) => {
|
|
982
982
|
let a = document.createElement("div");
|
|
@@ -1009,7 +1009,7 @@ var Se = class {
|
|
|
1009
1009
|
showProgressBar() {
|
|
1010
1010
|
this.progressBar.classList.add("visible"), clearTimeout(this.hideProgressBarTimeout), this.Reveal.getConfig().scrollProgress === "auto" && !this.draggingProgressBar && (this.hideProgressBarTimeout = setTimeout(() => {
|
|
1011
1011
|
this.progressBar && this.progressBar.classList.remove("visible");
|
|
1012
|
-
},
|
|
1012
|
+
}, Me));
|
|
1013
1013
|
}
|
|
1014
1014
|
prev() {
|
|
1015
1015
|
this.viewportElement.scrollTop -= this.scrollTriggerHeight;
|
|
@@ -1070,7 +1070,7 @@ var Se = class {
|
|
|
1070
1070
|
return this.Reveal.getViewportElement();
|
|
1071
1071
|
}
|
|
1072
1072
|
};
|
|
1073
|
-
function
|
|
1073
|
+
function Le(e, t, n, r, i, a, o) {
|
|
1074
1074
|
try {
|
|
1075
1075
|
var s = e[a](o), c = s.value;
|
|
1076
1076
|
} catch (e) {
|
|
@@ -1079,30 +1079,30 @@ function Ie(e, t, n, r, i, a, o) {
|
|
|
1079
1079
|
}
|
|
1080
1080
|
s.done ? t(c) : Promise.resolve(c).then(r, i);
|
|
1081
1081
|
}
|
|
1082
|
-
function
|
|
1082
|
+
function H(e) {
|
|
1083
1083
|
return function() {
|
|
1084
1084
|
var t = this, n = arguments;
|
|
1085
1085
|
return new Promise(function(r, i) {
|
|
1086
1086
|
var a = e.apply(t, n);
|
|
1087
1087
|
function o(e) {
|
|
1088
|
-
|
|
1088
|
+
Le(a, r, i, o, s, "next", e);
|
|
1089
1089
|
}
|
|
1090
1090
|
function s(e) {
|
|
1091
|
-
|
|
1091
|
+
Le(a, r, i, o, s, "throw", e);
|
|
1092
1092
|
}
|
|
1093
1093
|
o(void 0);
|
|
1094
1094
|
});
|
|
1095
1095
|
};
|
|
1096
1096
|
}
|
|
1097
|
-
var
|
|
1097
|
+
var Re = class {
|
|
1098
1098
|
constructor(e) {
|
|
1099
1099
|
this.Reveal = e;
|
|
1100
1100
|
}
|
|
1101
1101
|
activate() {
|
|
1102
1102
|
var e = this;
|
|
1103
|
-
return
|
|
1104
|
-
let t = e.Reveal.getConfig(), n =
|
|
1105
|
-
yield new Promise(requestAnimationFrame),
|
|
1103
|
+
return H(function* () {
|
|
1104
|
+
let t = e.Reveal.getConfig(), n = P(e.Reveal.getRevealElement(), R), r = t.slideNumber && /all|print/i.test(t.showSlideNumber), i = e.Reveal.getComputedSlideSize(window.innerWidth, window.innerHeight), a = Math.floor(i.width * (1 + t.margin)), o = Math.floor(i.height * (1 + t.margin)), s = i.width, c = i.height;
|
|
1105
|
+
yield new Promise(requestAnimationFrame), ue("@page{size:" + a + "px " + o + "px; margin: 0px;}"), ue(".reveal section>img, .reveal section>video, .reveal section>iframe{max-width: " + s + "px; max-height:" + c + "px}"), document.documentElement.classList.add("reveal-print", "print-pdf"), document.body.style.width = a + "px", document.body.style.height = o + "px";
|
|
1106
1106
|
let l = e.Reveal.getViewportElement(), u;
|
|
1107
1107
|
if (l) {
|
|
1108
1108
|
let e = window.getComputedStyle(l);
|
|
@@ -1145,7 +1145,7 @@ var Le = class {
|
|
|
1145
1145
|
e.classList.remove("visible", "current-fragment");
|
|
1146
1146
|
});
|
|
1147
1147
|
});
|
|
1148
|
-
} else
|
|
1148
|
+
} else P(g, ".fragment:not(.fade-out)").forEach(function(e) {
|
|
1149
1149
|
e.classList.add("visible");
|
|
1150
1150
|
});
|
|
1151
1151
|
}
|
|
@@ -1155,7 +1155,7 @@ var Le = class {
|
|
|
1155
1155
|
isActive() {
|
|
1156
1156
|
return this.Reveal.getConfig().view === "print";
|
|
1157
1157
|
}
|
|
1158
|
-
},
|
|
1158
|
+
}, ze = class {
|
|
1159
1159
|
constructor(e) {
|
|
1160
1160
|
this.Reveal = e;
|
|
1161
1161
|
}
|
|
@@ -1163,12 +1163,12 @@ var Le = class {
|
|
|
1163
1163
|
e.fragments === !1 ? this.disable() : t.fragments === !1 && this.enable();
|
|
1164
1164
|
}
|
|
1165
1165
|
disable() {
|
|
1166
|
-
|
|
1166
|
+
P(this.Reveal.getSlidesElement(), ".fragment").forEach((e) => {
|
|
1167
1167
|
e.classList.add("visible"), e.classList.remove("current-fragment");
|
|
1168
1168
|
});
|
|
1169
1169
|
}
|
|
1170
1170
|
enable() {
|
|
1171
|
-
|
|
1171
|
+
P(this.Reveal.getSlidesElement(), ".fragment").forEach((e) => {
|
|
1172
1172
|
e.classList.remove("visible"), e.classList.remove("current-fragment");
|
|
1173
1173
|
});
|
|
1174
1174
|
}
|
|
@@ -1204,7 +1204,7 @@ var Le = class {
|
|
|
1204
1204
|
}
|
|
1205
1205
|
sortAll() {
|
|
1206
1206
|
this.Reveal.getHorizontalSlides().forEach((e) => {
|
|
1207
|
-
let t =
|
|
1207
|
+
let t = P(e, "section");
|
|
1208
1208
|
t.forEach((e, t) => {
|
|
1209
1209
|
this.sort(e.querySelectorAll(".fragment"));
|
|
1210
1210
|
}, this), t.length === 0 && this.sort(e.querySelectorAll(".fragment"));
|
|
@@ -1278,13 +1278,13 @@ var Le = class {
|
|
|
1278
1278
|
prev() {
|
|
1279
1279
|
return this.goto(null, -1);
|
|
1280
1280
|
}
|
|
1281
|
-
},
|
|
1281
|
+
}, Be = class {
|
|
1282
1282
|
constructor(e) {
|
|
1283
1283
|
this.Reveal = e, this.active = !1, this.onSlideClicked = this.onSlideClicked.bind(this);
|
|
1284
1284
|
}
|
|
1285
1285
|
activate() {
|
|
1286
1286
|
if (this.Reveal.getConfig().overview && !this.Reveal.isScrollView() && !this.isActive()) {
|
|
1287
|
-
this.active = !0, this.Reveal.getRevealElement().classList.add("overview"), this.Reveal.cancelAutoSlide(), this.Reveal.getSlidesElement().appendChild(this.Reveal.getBackgroundsElement()),
|
|
1287
|
+
this.active = !0, this.Reveal.getRevealElement().classList.add("overview"), this.Reveal.cancelAutoSlide(), this.Reveal.getSlidesElement().appendChild(this.Reveal.getBackgroundsElement()), P(this.Reveal.getRevealElement(), R).forEach((e) => {
|
|
1288
1288
|
e.classList.contains("stack") || e.addEventListener("click", this.onSlideClicked, !0);
|
|
1289
1289
|
});
|
|
1290
1290
|
let e = this.Reveal.getComputedSlideSize();
|
|
@@ -1302,12 +1302,12 @@ var Le = class {
|
|
|
1302
1302
|
}
|
|
1303
1303
|
layout() {
|
|
1304
1304
|
this.Reveal.getHorizontalSlides().forEach((e, t) => {
|
|
1305
|
-
e.setAttribute("data-index-h", t),
|
|
1306
|
-
e.setAttribute("data-index-h", t), e.setAttribute("data-index-v", n),
|
|
1305
|
+
e.setAttribute("data-index-h", t), se(e, "translate3d(" + t * this.overviewSlideWidth + "px, 0, 0)"), e.classList.contains("stack") && P(e, "section").forEach((e, n) => {
|
|
1306
|
+
e.setAttribute("data-index-h", t), e.setAttribute("data-index-v", n), se(e, "translate3d(0, " + n * this.overviewSlideHeight + "px, 0)");
|
|
1307
1307
|
});
|
|
1308
1308
|
}), Array.from(this.Reveal.getBackgroundsElement().childNodes).forEach((e, t) => {
|
|
1309
|
-
|
|
1310
|
-
|
|
1309
|
+
se(e, "translate3d(" + t * this.overviewSlideWidth + "px, 0, 0)"), P(e, ".slide-background").forEach((e, t) => {
|
|
1310
|
+
se(e, "translate3d(0, " + t * this.overviewSlideHeight + "px, 0)");
|
|
1311
1311
|
});
|
|
1312
1312
|
});
|
|
1313
1313
|
}
|
|
@@ -1323,10 +1323,10 @@ var Le = class {
|
|
|
1323
1323
|
if (this.Reveal.getConfig().overview) {
|
|
1324
1324
|
this.active = !1, this.Reveal.getRevealElement().classList.remove("overview"), this.Reveal.getRevealElement().classList.add("overview-deactivating"), setTimeout(() => {
|
|
1325
1325
|
this.Reveal.getRevealElement().classList.remove("overview-deactivating");
|
|
1326
|
-
}, 1), this.Reveal.getRevealElement().appendChild(this.Reveal.getBackgroundsElement()),
|
|
1327
|
-
|
|
1328
|
-
}),
|
|
1329
|
-
|
|
1326
|
+
}, 1), this.Reveal.getRevealElement().appendChild(this.Reveal.getBackgroundsElement()), P(this.Reveal.getRevealElement(), R).forEach((e) => {
|
|
1327
|
+
se(e, ""), e.removeEventListener("click", this.onSlideClicked, !0);
|
|
1328
|
+
}), P(this.Reveal.getBackgroundsElement(), ".slide-background").forEach((e) => {
|
|
1329
|
+
se(e, "");
|
|
1330
1330
|
}), this.Reveal.transformSlides({ overview: "" });
|
|
1331
1331
|
let e = this.Reveal.getIndices();
|
|
1332
1332
|
this.Reveal.slide(e.h, e.v), this.Reveal.layout(), this.Reveal.cueAutoSlide(), this.Reveal.dispatchEvent({
|
|
@@ -1356,7 +1356,7 @@ var Le = class {
|
|
|
1356
1356
|
}
|
|
1357
1357
|
}
|
|
1358
1358
|
}
|
|
1359
|
-
},
|
|
1359
|
+
}, Ve = class {
|
|
1360
1360
|
constructor(e) {
|
|
1361
1361
|
this.Reveal = e, this.shortcuts = {}, this.bindings = {}, this.onDocumentKeyDown = this.onDocumentKeyDown.bind(this);
|
|
1362
1362
|
}
|
|
@@ -1446,10 +1446,10 @@ var Le = class {
|
|
|
1446
1446
|
66,
|
|
1447
1447
|
86,
|
|
1448
1448
|
190
|
|
1449
|
-
].includes(n) || n === 191 && !e.shiftKey ? this.Reveal.togglePause() : n === 70 ?
|
|
1449
|
+
].includes(n) || n === 191 && !e.shiftKey ? this.Reveal.togglePause() : n === 70 ? I(t.embedded ? this.Reveal.getViewportElement() : document.documentElement) : n === 65 ? t.autoSlideStoppable && this.Reveal.toggleAutoSlide(r) : n === 71 ? t.jumpToSlide && this.Reveal.toggleJumpToSlide() : n === 67 && this.Reveal.isOverlayOpen() ? this.Reveal.closeOverlay() : (n === 63 || n === 191) && e.shiftKey || n === 112 ? this.Reveal.toggleHelp() : d = !1), d ? e.preventDefault && e.preventDefault() : n === 27 || n === 79 ? (this.Reveal.closeOverlay() === !1 && this.Reveal.overview.toggle(), e.preventDefault && e.preventDefault()) : n === 13 && this.Reveal.overview.isActive() && (this.Reveal.overview.deactivate(), e.preventDefault && e.preventDefault()), this.Reveal.cueAutoSlide();
|
|
1450
1450
|
}
|
|
1451
1451
|
};
|
|
1452
|
-
function
|
|
1452
|
+
function He(e, t) {
|
|
1453
1453
|
var n = Object.keys(e);
|
|
1454
1454
|
if (Object.getOwnPropertySymbols) {
|
|
1455
1455
|
var r = Object.getOwnPropertySymbols(e);
|
|
@@ -1459,20 +1459,20 @@ function Ve(e, t) {
|
|
|
1459
1459
|
}
|
|
1460
1460
|
return n;
|
|
1461
1461
|
}
|
|
1462
|
-
function
|
|
1462
|
+
function Ue(e) {
|
|
1463
1463
|
for (var t = 1; t < arguments.length; t++) {
|
|
1464
1464
|
var n = arguments[t] == null ? {} : arguments[t];
|
|
1465
|
-
t % 2 ?
|
|
1466
|
-
|
|
1467
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) :
|
|
1465
|
+
t % 2 ? He(Object(n), !0).forEach(function(t) {
|
|
1466
|
+
Se(e, t, n[t]);
|
|
1467
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : He(Object(n)).forEach(function(t) {
|
|
1468
1468
|
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
|
|
1469
1469
|
});
|
|
1470
1470
|
}
|
|
1471
1471
|
return e;
|
|
1472
1472
|
}
|
|
1473
|
-
var
|
|
1473
|
+
var We = class {
|
|
1474
1474
|
constructor(e) {
|
|
1475
|
-
|
|
1475
|
+
Se(this, "MAX_REPLACE_STATE_FREQUENCY", 1e3), this.Reveal = e, this.writeURLTimeout = 0, this.replaceStateTimestamp = 0, this.onWindowHashChange = this.onWindowHashChange.bind(this);
|
|
1476
1476
|
}
|
|
1477
1477
|
bind() {
|
|
1478
1478
|
window.addEventListener("hashchange", this.onWindowHashChange, !1);
|
|
@@ -1489,7 +1489,7 @@ var Ue = class {
|
|
|
1489
1489
|
let t = decodeURIComponent(n);
|
|
1490
1490
|
e = (document.getElementById(t) || document.querySelector(`[data-id="${t}"]`)).closest(".slides section");
|
|
1491
1491
|
} catch {}
|
|
1492
|
-
if (e) return
|
|
1492
|
+
if (e) return Ue(Ue({}, this.Reveal.getIndices(e)), {}, { f: t });
|
|
1493
1493
|
} else {
|
|
1494
1494
|
let e = this.Reveal.getConfig(), n = e.hashOneBasedIndex || t.oneBasedIndex ? 1 : 0, i = parseInt(r[0], 10) - n || 0, a = parseInt(r[1], 10) - n || 0, o;
|
|
1495
1495
|
return e.fragmentInURL && (o = parseInt(r[2], 10), isNaN(o) && (o = void 0)), {
|
|
@@ -1532,7 +1532,7 @@ var Ue = class {
|
|
|
1532
1532
|
onWindowHashChange(e) {
|
|
1533
1533
|
this.readURL();
|
|
1534
1534
|
}
|
|
1535
|
-
},
|
|
1535
|
+
}, Ge = class {
|
|
1536
1536
|
constructor(e) {
|
|
1537
1537
|
this.Reveal = e, this.onNavigateLeftClicked = this.onNavigateLeftClicked.bind(this), this.onNavigateRightClicked = this.onNavigateRightClicked.bind(this), this.onNavigateUpClicked = this.onNavigateUpClicked.bind(this), this.onNavigateDownClicked = this.onNavigateDownClicked.bind(this), this.onNavigatePrevClicked = this.onNavigatePrevClicked.bind(this), this.onNavigateNextClicked = this.onNavigateNextClicked.bind(this), this.onEnterFullscreen = this.onEnterFullscreen.bind(this);
|
|
1538
1538
|
}
|
|
@@ -1541,7 +1541,7 @@ var Ue = class {
|
|
|
1541
1541
|
this.element = document.createElement("aside"), this.element.className = "controls", this.element.innerHTML = `<button class="navigate-left" aria-label="${e ? "next slide" : "previous slide"}"><div class="controls-arrow"></div></button>
|
|
1542
1542
|
<button class="navigate-right" aria-label="${e ? "previous slide" : "next slide"}"><div class="controls-arrow"></div></button>
|
|
1543
1543
|
<button class="navigate-up" aria-label="above slide"><div class="controls-arrow"></div></button>
|
|
1544
|
-
<button class="navigate-down" aria-label="below slide"><div class="controls-arrow"></div></button>`, this.Reveal.getRevealElement().appendChild(this.element), this.controlsLeft =
|
|
1544
|
+
<button class="navigate-down" aria-label="below slide"><div class="controls-arrow"></div></button>`, this.Reveal.getRevealElement().appendChild(this.element), this.controlsLeft = P(t, ".navigate-left"), this.controlsRight = P(t, ".navigate-right"), this.controlsUp = P(t, ".navigate-up"), this.controlsDown = P(t, ".navigate-down"), this.controlsPrev = P(t, ".navigate-prev"), this.controlsNext = P(t, ".navigate-next"), this.controlsFullscreen = P(t, ".enter-fullscreen"), this.controlsRightArrow = this.element.querySelector(".navigate-right"), this.controlsLeftArrow = this.element.querySelector(".navigate-left"), this.controlsDownArrow = this.element.querySelector(".navigate-down");
|
|
1545
1545
|
}
|
|
1546
1546
|
configure(e, t) {
|
|
1547
1547
|
let n = e.controls === "speaker" || e.controls === "speaker-only";
|
|
@@ -1549,7 +1549,7 @@ var Ue = class {
|
|
|
1549
1549
|
}
|
|
1550
1550
|
bind() {
|
|
1551
1551
|
let e = ["touchstart", "click"];
|
|
1552
|
-
|
|
1552
|
+
ve && (e = ["touchend"]), e.forEach((e) => {
|
|
1553
1553
|
this.controlsLeft.forEach((t) => t.addEventListener(e, this.onNavigateLeftClicked, !1)), this.controlsRight.forEach((t) => t.addEventListener(e, this.onNavigateRightClicked, !1)), this.controlsUp.forEach((t) => t.addEventListener(e, this.onNavigateUpClicked, !1)), this.controlsDown.forEach((t) => t.addEventListener(e, this.onNavigateDownClicked, !1)), this.controlsPrev.forEach((t) => t.addEventListener(e, this.onNavigatePrevClicked, !1)), this.controlsNext.forEach((t) => t.addEventListener(e, this.onNavigateNextClicked, !1)), this.controlsFullscreen.forEach((t) => t.addEventListener(e, this.onEnterFullscreen, !1));
|
|
1554
1554
|
});
|
|
1555
1555
|
}
|
|
@@ -1633,9 +1633,9 @@ var Ue = class {
|
|
|
1633
1633
|
}
|
|
1634
1634
|
onEnterFullscreen(e) {
|
|
1635
1635
|
let t = this.Reveal.getConfig(), n = this.Reveal.getViewportElement();
|
|
1636
|
-
|
|
1636
|
+
I(t.embedded ? n : n.parentElement);
|
|
1637
1637
|
}
|
|
1638
|
-
},
|
|
1638
|
+
}, Ke = class {
|
|
1639
1639
|
constructor(e) {
|
|
1640
1640
|
this.Reveal = e, this.onProgressClicked = this.onProgressClicked.bind(this);
|
|
1641
1641
|
}
|
|
@@ -1670,7 +1670,7 @@ var Ue = class {
|
|
|
1670
1670
|
destroy() {
|
|
1671
1671
|
this.element.remove();
|
|
1672
1672
|
}
|
|
1673
|
-
},
|
|
1673
|
+
}, qe = class {
|
|
1674
1674
|
constructor(e) {
|
|
1675
1675
|
this.Reveal = e, this.lastMouseWheelStep = 0, this.cursorHidden = !1, this.cursorInactiveTimeout = 0, this.onDocumentCursorActive = this.onDocumentCursorActive.bind(this), this.onDocumentMouseScroll = this.onDocumentMouseScroll.bind(this);
|
|
1676
1676
|
}
|
|
@@ -1696,7 +1696,7 @@ var Ue = class {
|
|
|
1696
1696
|
t > 0 ? this.Reveal.next() : t < 0 && this.Reveal.prev();
|
|
1697
1697
|
}
|
|
1698
1698
|
}
|
|
1699
|
-
},
|
|
1699
|
+
}, Je = (e, t) => {
|
|
1700
1700
|
let n = document.createElement("script");
|
|
1701
1701
|
n.type = "text/javascript", n.async = !1, n.defer = !1, n.src = e, typeof t == "function" && (n.onload = (e) => {
|
|
1702
1702
|
e.type === "load" && (n.onload = n.onerror = null, t());
|
|
@@ -1705,7 +1705,7 @@ var Ue = class {
|
|
|
1705
1705
|
});
|
|
1706
1706
|
let r = document.querySelector("head");
|
|
1707
1707
|
r && r.insertBefore(n, r.lastChild);
|
|
1708
|
-
},
|
|
1708
|
+
}, Ye = class {
|
|
1709
1709
|
constructor(e) {
|
|
1710
1710
|
this.Reveal = e, this.state = "idle", this.registeredPlugins = {}, this.asyncDependencies = [];
|
|
1711
1711
|
}
|
|
@@ -1720,7 +1720,7 @@ var Ue = class {
|
|
|
1720
1720
|
t && typeof t.callback == "function" && t.callback(), --r === 0 && this.initPlugins().then(e);
|
|
1721
1721
|
};
|
|
1722
1722
|
n.forEach((e) => {
|
|
1723
|
-
typeof e.id == "string" ? (this.registerPlugin(e), t(e)) : typeof e.src == "string" ?
|
|
1723
|
+
typeof e.id == "string" ? (this.registerPlugin(e), t(e)) : typeof e.src == "string" ? Je(e.src, () => t(e)) : (console.warn("Unrecognized plugin format", e), t());
|
|
1724
1724
|
});
|
|
1725
1725
|
} else this.initPlugins().then(e);
|
|
1726
1726
|
});
|
|
@@ -1745,7 +1745,7 @@ var Ue = class {
|
|
|
1745
1745
|
}
|
|
1746
1746
|
loadAsync() {
|
|
1747
1747
|
return this.state = "loaded", this.asyncDependencies.length && this.asyncDependencies.forEach((e) => {
|
|
1748
|
-
|
|
1748
|
+
Je(e.src, e.callback);
|
|
1749
1749
|
}), Promise.resolve();
|
|
1750
1750
|
}
|
|
1751
1751
|
registerPlugin(e) {
|
|
@@ -1767,7 +1767,7 @@ var Ue = class {
|
|
|
1767
1767
|
typeof e.destroy == "function" && e.destroy();
|
|
1768
1768
|
}), this.registeredPlugins = {}, this.asyncDependencies = [];
|
|
1769
1769
|
}
|
|
1770
|
-
},
|
|
1770
|
+
}, Xe = class {
|
|
1771
1771
|
constructor(e) {
|
|
1772
1772
|
this.Reveal = e, this.onSlidesClicked = this.onSlidesClicked.bind(this), this.iframeTriggerSelector = null, this.mediaTriggerSelector = "[data-preview-image], [data-preview-video]", this.stateProps = [
|
|
1773
1773
|
"previewIframe",
|
|
@@ -1915,7 +1915,7 @@ var Ue = class {
|
|
|
1915
1915
|
destroy() {
|
|
1916
1916
|
this.close();
|
|
1917
1917
|
}
|
|
1918
|
-
},
|
|
1918
|
+
}, U = 40, Ze = 1.03, Qe = class {
|
|
1919
1919
|
constructor(e) {
|
|
1920
1920
|
this.Reveal = e, this.touchStartX = 0, this.touchStartY = 0, this.touchStartCount = 0, this.touchCaptured = !1, this.activePointers = /* @__PURE__ */ new Map(), this.onPointerDown = this.onPointerDown.bind(this), this.onPointerMove = this.onPointerMove.bind(this), this.onPointerUp = this.onPointerUp.bind(this), this.onPointerCancel = this.onPointerCancel.bind(this), this.onTouchStart = this.onTouchStart.bind(this), this.onTouchMove = this.onTouchMove.bind(this), this.onTouchEnd = this.onTouchEnd.bind(this);
|
|
1921
1921
|
}
|
|
@@ -1928,7 +1928,7 @@ var Ue = class {
|
|
|
1928
1928
|
e.removeEventListener("pointerdown", this.onPointerDown, !1), e.removeEventListener("pointermove", this.onPointerMove, !1), e.removeEventListener("pointerup", this.onPointerUp, !1), e.removeEventListener("pointercancel", this.onPointerCancel, !1), e.removeEventListener("touchstart", this.onTouchStart, !1), e.removeEventListener("touchmove", this.onTouchMove, !1), e.removeEventListener("touchend", this.onTouchEnd, !1);
|
|
1929
1929
|
}
|
|
1930
1930
|
isSwipePrevented(e) {
|
|
1931
|
-
if (
|
|
1931
|
+
if (ce(e, "video[controls], audio[controls]")) return !0;
|
|
1932
1932
|
for (; e && typeof e.hasAttribute == "function";) {
|
|
1933
1933
|
if (e.hasAttribute("data-prevent-swipe")) return !0;
|
|
1934
1934
|
e = e.parentNode;
|
|
@@ -1938,7 +1938,7 @@ var Ue = class {
|
|
|
1938
1938
|
isViewportZoomed() {
|
|
1939
1939
|
if (!window.visualViewport || typeof window.visualViewport.scale != "number") return !1;
|
|
1940
1940
|
let e = window.visualViewport.scale;
|
|
1941
|
-
return this.visualViewportBaseScale = this.visualViewportBaseScale === void 0 ? e : Math.min(this.visualViewportBaseScale, e), e / this.visualViewportBaseScale >
|
|
1941
|
+
return this.visualViewportBaseScale = this.visualViewportBaseScale === void 0 ? e : Math.min(this.visualViewportBaseScale, e), e / this.visualViewportBaseScale > Ze;
|
|
1942
1942
|
}
|
|
1943
1943
|
onTouchStart(e) {
|
|
1944
1944
|
if (this.touchCaptured = !1, this.isSwipePrevented(e.target)) return !0;
|
|
@@ -1947,13 +1947,13 @@ var Ue = class {
|
|
|
1947
1947
|
onTouchMove(e) {
|
|
1948
1948
|
if (this.isSwipePrevented(e.target)) return !0;
|
|
1949
1949
|
let t = this.Reveal.getConfig();
|
|
1950
|
-
if (this.touchCaptured)
|
|
1950
|
+
if (this.touchCaptured) ve && e.preventDefault();
|
|
1951
1951
|
else {
|
|
1952
1952
|
this.Reveal.onUserInput(e);
|
|
1953
1953
|
let n = e.touches[0].clientX, r = e.touches[0].clientY;
|
|
1954
1954
|
if (e.touches.length === 1 && this.touchStartCount !== 2) {
|
|
1955
1955
|
let i = this.Reveal.availableRoutes({ includeFragments: !0 }), a = n - this.touchStartX, o = r - this.touchStartY;
|
|
1956
|
-
a >
|
|
1956
|
+
a > U && Math.abs(a) > Math.abs(o) ? (this.touchCaptured = !0, t.navigationMode === "linear" ? t.rtl ? this.Reveal.next() : this.Reveal.prev() : this.Reveal.left()) : a < -40 && Math.abs(a) > Math.abs(o) ? (this.touchCaptured = !0, t.navigationMode === "linear" ? t.rtl ? this.Reveal.prev() : this.Reveal.next() : this.Reveal.right()) : o > U && i.up ? (this.touchCaptured = !0, t.navigationMode === "linear" ? this.Reveal.prev() : this.Reveal.up()) : o < -40 && i.down && (this.touchCaptured = !0, t.navigationMode === "linear" ? this.Reveal.next() : this.Reveal.down()), t.embedded ? (this.touchCaptured || this.Reveal.isVerticalSlide()) && e.preventDefault() : e.preventDefault();
|
|
1957
1957
|
}
|
|
1958
1958
|
}
|
|
1959
1959
|
}
|
|
@@ -1978,7 +1978,7 @@ var Ue = class {
|
|
|
1978
1978
|
onPointerCancel(e) {
|
|
1979
1979
|
e.pointerType === "touch" && (this.activePointers.delete(e.pointerId), e.touches = this.getActiveTouches(), this.onTouchEnd(e));
|
|
1980
1980
|
}
|
|
1981
|
-
},
|
|
1981
|
+
}, $e = "focus", et = "blur", tt = class {
|
|
1982
1982
|
constructor(e) {
|
|
1983
1983
|
this.Reveal = e, this.onRevealPointerDown = this.onRevealPointerDown.bind(this), this.onDocumentPointerDown = this.onDocumentPointerDown.bind(this);
|
|
1984
1984
|
}
|
|
@@ -1992,13 +1992,13 @@ var Ue = class {
|
|
|
1992
1992
|
this.Reveal.getRevealElement().removeEventListener("pointerdown", this.onRevealPointerDown, !1), document.removeEventListener("pointerdown", this.onDocumentPointerDown, !1);
|
|
1993
1993
|
}
|
|
1994
1994
|
focus() {
|
|
1995
|
-
this.state !==
|
|
1995
|
+
this.state !== $e && (this.Reveal.getRevealElement().classList.add("focused"), document.addEventListener("pointerdown", this.onDocumentPointerDown, !1)), this.state = $e;
|
|
1996
1996
|
}
|
|
1997
1997
|
blur() {
|
|
1998
|
-
this.state !==
|
|
1998
|
+
this.state !== et && (this.Reveal.getRevealElement().classList.remove("focused"), document.removeEventListener("pointerdown", this.onDocumentPointerDown, !1)), this.state = et;
|
|
1999
1999
|
}
|
|
2000
2000
|
isFocused() {
|
|
2001
|
-
return this.state ===
|
|
2001
|
+
return this.state === $e;
|
|
2002
2002
|
}
|
|
2003
2003
|
destroy() {
|
|
2004
2004
|
this.Reveal.getRevealElement().classList.remove("focused");
|
|
@@ -2007,10 +2007,10 @@ var Ue = class {
|
|
|
2007
2007
|
this.focus();
|
|
2008
2008
|
}
|
|
2009
2009
|
onDocumentPointerDown(e) {
|
|
2010
|
-
let t =
|
|
2010
|
+
let t = F(e.target, ".reveal");
|
|
2011
2011
|
(!t || t !== this.Reveal.getRevealElement()) && this.blur();
|
|
2012
2012
|
}
|
|
2013
|
-
},
|
|
2013
|
+
}, nt = class {
|
|
2014
2014
|
constructor(e) {
|
|
2015
2015
|
this.Reveal = e;
|
|
2016
2016
|
}
|
|
@@ -2040,7 +2040,7 @@ var Ue = class {
|
|
|
2040
2040
|
destroy() {
|
|
2041
2041
|
this.element.remove();
|
|
2042
2042
|
}
|
|
2043
|
-
},
|
|
2043
|
+
}, rt = class {
|
|
2044
2044
|
constructor(e, t) {
|
|
2045
2045
|
this.diameter = 100, this.diameter2 = this.diameter / 2, this.thickness = 6, this.playing = !1, this.progress = 0, this.progressOffset = 1, this.container = e, this.progressCheck = t, this.canvas = document.createElement("canvas"), this.canvas.className = "playback", this.canvas.width = this.diameter, this.canvas.height = this.diameter, this.canvas.style.width = this.diameter2 + "px", this.canvas.style.height = this.diameter2 + "px", this.context = this.canvas.getContext("2d"), this.container.appendChild(this.canvas), this.render();
|
|
2046
2046
|
}
|
|
@@ -2067,7 +2067,7 @@ var Ue = class {
|
|
|
2067
2067
|
destroy() {
|
|
2068
2068
|
this.playing = !1, this.canvas.parentNode && this.container.removeChild(this.canvas);
|
|
2069
2069
|
}
|
|
2070
|
-
},
|
|
2070
|
+
}, it = {
|
|
2071
2071
|
width: 960,
|
|
2072
2072
|
height: 700,
|
|
2073
2073
|
margin: .04,
|
|
@@ -2157,8 +2157,8 @@ var Ue = class {
|
|
|
2157
2157
|
pdfPageHeightOffset: -1,
|
|
2158
2158
|
dependencies: [],
|
|
2159
2159
|
plugins: []
|
|
2160
|
-
},
|
|
2161
|
-
function
|
|
2160
|
+
}, at = "6.0.2";
|
|
2161
|
+
function ot(e, t) {
|
|
2162
2162
|
arguments.length < 2 && (t = arguments[0], e = document.querySelector(".reveal"));
|
|
2163
2163
|
let n = {}, r = {}, i = !1, a = !1, o, s, c, l, u = {
|
|
2164
2164
|
hasNavigatedHorizontally: !1,
|
|
@@ -2166,19 +2166,19 @@ function at(e, t) {
|
|
|
2166
2166
|
}, d = [], f = 1, p = {
|
|
2167
2167
|
layout: "",
|
|
2168
2168
|
overview: ""
|
|
2169
|
-
}, m = {}, h = "idle", g = 0, _, v = 0, y = -1, b = !1, x = new
|
|
2170
|
-
function
|
|
2169
|
+
}, m = {}, h = "idle", g = 0, _, v = 0, y = -1, b = !1, x = new Ce(n), S = new De(n), C = new Oe(n), w = new je(n), T = new ke(n), E = new Ie(n), D = new Re(n), O = new ze(n), k = new Be(n), ee = new Ve(n), A = new We(n), te = new Ge(n), ne = new Ke(n), re = new qe(n), j = new Ye(n), M = new Xe(n), N = new tt(n), ce = new Qe(n), I = new nt(n);
|
|
2170
|
+
function ue(a) {
|
|
2171
2171
|
if (!e) throw "Unable to find presentation root (<div class=\"reveal\">).";
|
|
2172
2172
|
if (i) throw "Reveal.js has already been initialized.";
|
|
2173
2173
|
if (i = !0, m.wrapper = e, m.slides = e.querySelector(".slides"), !m.slides) throw "Unable to find slides container (<div class=\"slides\">).";
|
|
2174
|
-
return r =
|
|
2175
|
-
}
|
|
2176
|
-
function fe() {
|
|
2177
|
-
r.embedded === !0 ? m.viewport = I(e, ".reveal-viewport") || e : (m.viewport = document.body, document.documentElement.classList.add("reveal-full-page")), m.viewport.classList.add("reveal-viewport");
|
|
2174
|
+
return r = Ue(Ue(Ue(Ue(Ue({}, it), r), t), a), de()), /print-pdf/gi.test(window.location.search) && (r.view = "print"), pe(), window.addEventListener("load", U, !1), j.load(r.plugins, r.dependencies).then(me), new Promise((e) => n.on("ready", e));
|
|
2178
2175
|
}
|
|
2179
2176
|
function pe() {
|
|
2180
|
-
|
|
2181
|
-
|
|
2177
|
+
r.embedded === !0 ? m.viewport = F(e, ".reveal-viewport") || e : (m.viewport = document.body, document.documentElement.classList.add("reveal-full-page")), m.viewport.classList.add("reveal-viewport");
|
|
2178
|
+
}
|
|
2179
|
+
function me() {
|
|
2180
|
+
i !== !1 && (a = !0, ge(), ve(), B(), Se(), Te(), Ct(), V(), T.update(!0), he(), A.readURL(), setTimeout(() => {
|
|
2181
|
+
m.slides.classList.remove("no-transition"), m.wrapper.classList.add("ready"), H({
|
|
2182
2182
|
type: "ready",
|
|
2183
2183
|
data: {
|
|
2184
2184
|
indexh: o,
|
|
@@ -2188,27 +2188,27 @@ function at(e, t) {
|
|
|
2188
2188
|
});
|
|
2189
2189
|
}, 1));
|
|
2190
2190
|
}
|
|
2191
|
-
function
|
|
2191
|
+
function he() {
|
|
2192
2192
|
let e = r.view === "print", t = r.view === "scroll" || r.view === "reader";
|
|
2193
|
-
(e || t) && (e ?
|
|
2193
|
+
(e || t) && (e ? Me() : ce.unbind(), m.viewport.classList.add("loading-scroll-mode"), e ? document.readyState === "complete" ? D.activate() : window.addEventListener("load", () => D.activate()) : E.activate());
|
|
2194
2194
|
}
|
|
2195
|
-
function
|
|
2196
|
-
r.showHiddenSlides ||
|
|
2195
|
+
function ge() {
|
|
2196
|
+
r.showHiddenSlides || P(m.wrapper, "section[data-visibility=\"hidden\"]").forEach((e) => {
|
|
2197
2197
|
let t = e.parentNode;
|
|
2198
2198
|
t.childElementCount === 1 && /section/i.test(t.nodeName) ? t.remove() : e.remove();
|
|
2199
2199
|
});
|
|
2200
2200
|
}
|
|
2201
|
-
function _e() {
|
|
2202
|
-
m.slides.classList.add("no-transition"), ge ? m.wrapper.classList.add("no-hover") : m.wrapper.classList.remove("no-hover"), T.render(), S.render(), C.render(), ee.render(), te.render(), L.render(), m.pauseOverlay = ce(m.wrapper, "div", "pause-overlay", r.controls ? "<button class=\"resume-button\">Resume presentation</button>" : null), m.statusElement = ve(), m.wrapper.setAttribute("role", "application");
|
|
2203
|
-
}
|
|
2204
2201
|
function ve() {
|
|
2202
|
+
m.slides.classList.add("no-transition"), _e ? m.wrapper.classList.add("no-hover") : m.wrapper.classList.remove("no-hover"), T.render(), S.render(), C.render(), te.render(), ne.render(), I.render(), m.pauseOverlay = le(m.wrapper, "div", "pause-overlay", r.controls ? "<button class=\"resume-button\">Resume presentation</button>" : null), m.statusElement = ye(), m.wrapper.setAttribute("role", "application");
|
|
2203
|
+
}
|
|
2204
|
+
function ye() {
|
|
2205
2205
|
let e = m.wrapper.querySelector(".aria-status");
|
|
2206
2206
|
return e || (e = document.createElement("div"), e.style.position = "absolute", e.style.height = "1px", e.style.width = "1px", e.style.overflow = "hidden", e.style.clip = "rect( 1px, 1px, 1px, 1px )", e.classList.add("aria-status"), e.setAttribute("aria-live", "polite"), e.setAttribute("aria-atomic", "true"), m.wrapper.appendChild(e)), e;
|
|
2207
2207
|
}
|
|
2208
|
-
function
|
|
2208
|
+
function L(e) {
|
|
2209
2209
|
m.statusElement.textContent = e;
|
|
2210
2210
|
}
|
|
2211
|
-
function
|
|
2211
|
+
function be(e) {
|
|
2212
2212
|
let t = "";
|
|
2213
2213
|
if (e.nodeType === 3) t += e.textContent.trim();
|
|
2214
2214
|
else if (e.nodeType === 1) {
|
|
@@ -2216,10 +2216,10 @@ function at(e, t) {
|
|
|
2216
2216
|
if (n !== "true" && !r) {
|
|
2217
2217
|
if (e.tagName === "IMG" || e.tagName === "VIDEO") {
|
|
2218
2218
|
let n = e.getAttribute("alt");
|
|
2219
|
-
n && (t +=
|
|
2219
|
+
n && (t += xe(n));
|
|
2220
2220
|
}
|
|
2221
2221
|
Array.from(e.childNodes).forEach((e) => {
|
|
2222
|
-
t +=
|
|
2222
|
+
t += be(e);
|
|
2223
2223
|
}), [
|
|
2224
2224
|
"P",
|
|
2225
2225
|
"DIV",
|
|
@@ -2233,58 +2233,58 @@ function at(e, t) {
|
|
|
2233
2233
|
"H5",
|
|
2234
2234
|
"H6",
|
|
2235
2235
|
"BLOCKQUOTE"
|
|
2236
|
-
].includes(e.tagName) && t.trim() !== "" && (t =
|
|
2236
|
+
].includes(e.tagName) && t.trim() !== "" && (t = xe(t));
|
|
2237
2237
|
}
|
|
2238
2238
|
}
|
|
2239
2239
|
return t = t.trim(), t === "" ? "" : t + " ";
|
|
2240
2240
|
}
|
|
2241
|
-
function
|
|
2241
|
+
function xe(e) {
|
|
2242
2242
|
let t = e.trim();
|
|
2243
2243
|
return t === "" ? e : /[.!?]$/.test(t) ? t : t + ".";
|
|
2244
2244
|
}
|
|
2245
|
-
function
|
|
2245
|
+
function Se() {
|
|
2246
2246
|
setInterval(() => {
|
|
2247
2247
|
(!E.isActive() && m.wrapper.scrollTop !== 0 || m.wrapper.scrollLeft !== 0) && (m.wrapper.scrollTop = 0, m.wrapper.scrollLeft = 0);
|
|
2248
2248
|
}, 1e3);
|
|
2249
2249
|
}
|
|
2250
|
-
function
|
|
2251
|
-
document.addEventListener("fullscreenchange",
|
|
2250
|
+
function Te() {
|
|
2251
|
+
document.addEventListener("fullscreenchange", rn), document.addEventListener("webkitfullscreenchange", rn);
|
|
2252
2252
|
}
|
|
2253
|
-
function
|
|
2254
|
-
r.postMessage && window.addEventListener("message",
|
|
2253
|
+
function B() {
|
|
2254
|
+
r.postMessage && window.addEventListener("message", Qt, !1);
|
|
2255
2255
|
}
|
|
2256
|
-
function
|
|
2257
|
-
let t =
|
|
2258
|
-
if (typeof e == "object" &&
|
|
2259
|
-
let i = m.wrapper.querySelectorAll(
|
|
2260
|
-
m.wrapper.classList.remove(t.transition), m.wrapper.classList.add(r.transition), m.wrapper.setAttribute("data-transition-speed", r.transitionSpeed), m.wrapper.setAttribute("data-background-transition", r.backgroundTransition), m.viewport.style.setProperty("--slide-width", typeof r.width == "string" ? r.width : r.width + "px"), m.viewport.style.setProperty("--slide-height", typeof r.height == "string" ? r.height : r.height + "px"), r.shuffle &&
|
|
2256
|
+
function V(e) {
|
|
2257
|
+
let t = Ue({}, r);
|
|
2258
|
+
if (typeof e == "object" && ie(r, e), n.isReady() === !1) return;
|
|
2259
|
+
let i = m.wrapper.querySelectorAll(R).length;
|
|
2260
|
+
m.wrapper.classList.remove(t.transition), m.wrapper.classList.add(r.transition), m.wrapper.setAttribute("data-transition-speed", r.transitionSpeed), m.wrapper.setAttribute("data-background-transition", r.backgroundTransition), m.viewport.style.setProperty("--slide-width", typeof r.width == "string" ? r.width : r.width + "px"), m.viewport.style.setProperty("--slide-height", typeof r.height == "string" ? r.height : r.height + "px"), r.shuffle && K(), ae(m.wrapper, "embedded", r.embedded), ae(m.wrapper, "rtl", r.rtl), ae(m.wrapper, "center", r.center), r.pause === !1 && pt(), w.reset(), _ &&= (_.destroy(), null), i > 1 && r.autoSlide && r.autoSlideStoppable && (_ = new rt(m.wrapper, () => Math.min(Math.max((Date.now() - y) / g, 0), 1)), _.on("click", an), b = !1), r.navigationMode === "default" ? m.wrapper.removeAttribute("data-navigation-mode") : m.wrapper.setAttribute("data-navigation-mode", r.navigationMode), I.configure(r, t), N.configure(r, t), re.configure(r, t), te.configure(r, t), ne.configure(r, t), ee.configure(r, t), O.configure(r, t), S.configure(r, t), xt();
|
|
2261
2261
|
}
|
|
2262
|
-
function
|
|
2263
|
-
window.addEventListener("resize",
|
|
2264
|
-
}
|
|
2265
|
-
function je() {
|
|
2266
|
-
se.unbind(), P.unbind(), A.unbind(), ee.unbind(), te.unbind(), j.unbind(), window.removeEventListener("resize", en, !1), m.slides.removeEventListener("click", $t, !1), m.slides.removeEventListener("transitionend", Qt, !1), m.pauseOverlay.removeEventListener("click", ft, !1);
|
|
2262
|
+
function Ae() {
|
|
2263
|
+
window.addEventListener("resize", tn, !1), r.touch && ce.bind(), r.keyboard && ee.bind(), r.progress && ne.bind(), r.respondToHashChanges && A.bind(), te.bind(), N.bind(), m.slides.addEventListener("click", en, !1), m.slides.addEventListener("transitionend", $t, !1), m.pauseOverlay.addEventListener("click", pt, !1), r.focusBodyOnPageVisibilityChange && document.addEventListener("visibilitychange", nn, !1);
|
|
2267
2264
|
}
|
|
2268
2265
|
function Me() {
|
|
2269
|
-
|
|
2266
|
+
ce.unbind(), N.unbind(), ee.unbind(), te.unbind(), ne.unbind(), A.unbind(), window.removeEventListener("resize", tn, !1), m.slides.removeEventListener("click", en, !1), m.slides.removeEventListener("transitionend", $t, !1), m.pauseOverlay.removeEventListener("click", pt, !1);
|
|
2267
|
+
}
|
|
2268
|
+
function Ne() {
|
|
2269
|
+
i = !1, a !== !1 && (Me(), Ht(), I.destroy(), N.destroy(), M.destroy(), j.destroy(), re.destroy(), te.destroy(), ne.destroy(), T.destroy(), S.destroy(), C.destroy(), document.removeEventListener("fullscreenchange", rn), document.removeEventListener("webkitfullscreenchange", rn), document.removeEventListener("visibilitychange", nn, !1), window.removeEventListener("message", Qt, !1), window.removeEventListener("load", U, !1), m.pauseOverlay && m.pauseOverlay.remove(), m.statusElement && m.statusElement.remove(), document.documentElement.classList.remove("reveal-full-page"), m.wrapper.classList.remove("ready", "center", "has-horizontal-slides", "has-vertical-slides"), m.wrapper.removeAttribute("data-transition-speed"), m.wrapper.removeAttribute("data-background-transition"), m.viewport.classList.remove("reveal-viewport"), m.viewport.style.removeProperty("--slide-width"), m.viewport.style.removeProperty("--slide-height"), m.slides.style.removeProperty("width"), m.slides.style.removeProperty("height"), m.slides.style.removeProperty("zoom"), m.slides.style.removeProperty("left"), m.slides.style.removeProperty("top"), m.slides.style.removeProperty("bottom"), m.slides.style.removeProperty("right"), m.slides.style.removeProperty("transform"), Array.from(m.wrapper.querySelectorAll(R)).forEach((e) => {
|
|
2270
2270
|
e.style.removeProperty("display"), e.style.removeProperty("top"), e.removeAttribute("hidden"), e.removeAttribute("aria-hidden"), e.removeAttribute("inert");
|
|
2271
2271
|
}));
|
|
2272
2272
|
}
|
|
2273
|
-
function
|
|
2273
|
+
function Pe(t, n, r) {
|
|
2274
2274
|
e.addEventListener(t, n, r);
|
|
2275
2275
|
}
|
|
2276
|
-
function
|
|
2276
|
+
function Fe(t, n, r) {
|
|
2277
2277
|
e.removeEventListener(t, n, r);
|
|
2278
2278
|
}
|
|
2279
|
-
function
|
|
2280
|
-
typeof e.layout == "string" && (p.layout = e.layout), typeof e.overview == "string" && (p.overview = e.overview), p.layout ?
|
|
2279
|
+
function Le(e) {
|
|
2280
|
+
typeof e.layout == "string" && (p.layout = e.layout), typeof e.overview == "string" && (p.overview = e.overview), p.layout ? se(m.slides, p.layout + " " + p.overview) : se(m.slides, p.overview);
|
|
2281
2281
|
}
|
|
2282
|
-
function
|
|
2282
|
+
function H({ target: e = m.wrapper, type: t, data: n, bubbles: r = !0 }) {
|
|
2283
2283
|
let i = document.createEvent("HTMLEvents", 1, 2);
|
|
2284
|
-
return i.initEvent(t, r, !0),
|
|
2284
|
+
return i.initEvent(t, r, !0), ie(i, n), e.dispatchEvent(i), e === m.wrapper && Je(t), i;
|
|
2285
2285
|
}
|
|
2286
|
-
function
|
|
2287
|
-
|
|
2286
|
+
function He(e) {
|
|
2287
|
+
H({
|
|
2288
2288
|
type: "slidechanged",
|
|
2289
2289
|
data: {
|
|
2290
2290
|
indexh: o,
|
|
@@ -2295,30 +2295,30 @@ function at(e, t) {
|
|
|
2295
2295
|
}
|
|
2296
2296
|
});
|
|
2297
2297
|
}
|
|
2298
|
-
function
|
|
2298
|
+
function Je(e, t) {
|
|
2299
2299
|
if (r.postMessageEvents && window.parent !== window.self) {
|
|
2300
2300
|
let n = {
|
|
2301
2301
|
namespace: "reveal",
|
|
2302
2302
|
eventName: e,
|
|
2303
|
-
state:
|
|
2303
|
+
state: zt()
|
|
2304
2304
|
};
|
|
2305
|
-
|
|
2305
|
+
ie(n, t), window.parent.postMessage(JSON.stringify(n), "*");
|
|
2306
2306
|
}
|
|
2307
2307
|
}
|
|
2308
|
-
function
|
|
2308
|
+
function U() {
|
|
2309
2309
|
if (m.wrapper && !D.isActive()) {
|
|
2310
2310
|
let e = m.viewport.offsetWidth, t = m.viewport.offsetHeight;
|
|
2311
2311
|
if (!r.disableLayout) {
|
|
2312
|
-
|
|
2313
|
-
let n = E.isActive() ?
|
|
2314
|
-
|
|
2315
|
-
let a = Array.from(m.wrapper.querySelectorAll(
|
|
2312
|
+
_e && !r.embedded && document.documentElement.style.setProperty("--vh", window.innerHeight * .01 + "px");
|
|
2313
|
+
let n = E.isActive() ? et(e, t) : et(), i = f;
|
|
2314
|
+
Ze(r.width, r.height), m.slides.style.width = n.width + "px", m.slides.style.height = n.height + "px", f = Math.min(n.presentationWidth / n.width, n.presentationHeight / n.height), f = Math.max(f, r.minScale), f = Math.min(f, r.maxScale), f = Math.round(f * 100) / 100, f === 1 || E.isActive() ? (m.slides.style.zoom = "", m.slides.style.left = "", m.slides.style.top = "", m.slides.style.bottom = "", m.slides.style.right = "", Le({ layout: "" })) : (m.slides.style.zoom = "", m.slides.style.left = "50%", m.slides.style.top = "50%", m.slides.style.bottom = "auto", m.slides.style.right = "auto", Le({ layout: "translate(-50%, -50%) scale(" + f + ")" }));
|
|
2315
|
+
let a = Array.from(m.wrapper.querySelectorAll(R)).filter((e) => e.style.display !== "none"), o = Array(a.length);
|
|
2316
2316
|
for (let e = 0, t = a.length; e < t; e++) {
|
|
2317
2317
|
let t = a[e];
|
|
2318
2318
|
r.center || t.classList.contains("center") ? t.classList.contains("stack") ? o[e] = 0 : o[e] = Math.max((n.height - t.scrollHeight) / 2, 0) + "px" : o[e] = "";
|
|
2319
2319
|
}
|
|
2320
2320
|
for (let e = 0, t = a.length; e < t; e++) a[e].style.top = o[e];
|
|
2321
|
-
i !== f &&
|
|
2321
|
+
i !== f && H({
|
|
2322
2322
|
type: "resize",
|
|
2323
2323
|
data: {
|
|
2324
2324
|
oldScale: i,
|
|
@@ -2327,25 +2327,25 @@ function at(e, t) {
|
|
|
2327
2327
|
}
|
|
2328
2328
|
});
|
|
2329
2329
|
}
|
|
2330
|
-
|
|
2330
|
+
$e(), m.viewport.style.setProperty("--slide-scale", f), m.viewport.style.setProperty("--viewport-width", e + "px"), m.viewport.style.setProperty("--viewport-height", t + "px"), E.layout(), ne.update(), T.updateParallax(), k.isActive() && k.update();
|
|
2331
2331
|
}
|
|
2332
2332
|
}
|
|
2333
|
-
function
|
|
2334
|
-
|
|
2335
|
-
let r =
|
|
2333
|
+
function Ze(e, t) {
|
|
2334
|
+
P(m.slides, "section > .stretch, section > .r-stretch").forEach((n) => {
|
|
2335
|
+
let r = fe(n, t);
|
|
2336
2336
|
if (/(img|video)/gi.test(n.nodeName)) {
|
|
2337
2337
|
let t = n.naturalWidth || n.videoWidth, i = n.naturalHeight || n.videoHeight, a = Math.min(e / t, r / i);
|
|
2338
2338
|
n.style.width = t * a + "px", n.style.height = i * a + "px";
|
|
2339
2339
|
} else n.style.width = e + "px", n.style.height = r + "px";
|
|
2340
2340
|
});
|
|
2341
2341
|
}
|
|
2342
|
-
function
|
|
2342
|
+
function $e() {
|
|
2343
2343
|
if (m.wrapper && !r.disableLayout && !D.isActive() && typeof r.scrollActivationWidth == "number" && r.view !== "scroll") {
|
|
2344
|
-
let e =
|
|
2344
|
+
let e = et();
|
|
2345
2345
|
e.presentationWidth > 0 && e.presentationWidth <= r.scrollActivationWidth ? E.isActive() || (T.create(), E.activate()) : E.isActive() && E.deactivate();
|
|
2346
2346
|
}
|
|
2347
2347
|
}
|
|
2348
|
-
function
|
|
2348
|
+
function et(e, t) {
|
|
2349
2349
|
let n = r.width, i = r.height;
|
|
2350
2350
|
r.disableLayout && (n = m.slides.offsetWidth, i = m.slides.offsetHeight);
|
|
2351
2351
|
let a = {
|
|
@@ -2356,58 +2356,58 @@ function at(e, t) {
|
|
|
2356
2356
|
};
|
|
2357
2357
|
return a.presentationWidth -= a.presentationWidth * r.margin, a.presentationHeight -= a.presentationHeight * r.margin, typeof a.width == "string" && /%$/.test(a.width) && (a.width = parseInt(a.width, 10) / 100 * a.presentationWidth), typeof a.height == "string" && /%$/.test(a.height) && (a.height = parseInt(a.height, 10) / 100 * a.presentationHeight), a;
|
|
2358
2358
|
}
|
|
2359
|
-
function
|
|
2359
|
+
function ot(e, t) {
|
|
2360
2360
|
typeof e == "object" && typeof e.setAttribute == "function" && e.setAttribute("data-previous-indexv", t || 0);
|
|
2361
2361
|
}
|
|
2362
|
-
function
|
|
2362
|
+
function st(e) {
|
|
2363
2363
|
if (typeof e == "object" && typeof e.setAttribute == "function" && e.classList.contains("stack")) {
|
|
2364
2364
|
let t = e.hasAttribute("data-start-indexv") ? "data-start-indexv" : "data-previous-indexv";
|
|
2365
2365
|
return parseInt(e.getAttribute(t) || 0, 10);
|
|
2366
2366
|
}
|
|
2367
2367
|
return 0;
|
|
2368
2368
|
}
|
|
2369
|
-
function
|
|
2369
|
+
function ct(e = l) {
|
|
2370
2370
|
return e && e.parentNode && !!e.parentNode.nodeName.match(/section/i);
|
|
2371
2371
|
}
|
|
2372
|
-
function
|
|
2372
|
+
function W(e = l) {
|
|
2373
2373
|
return e.classList.contains(".stack") || e.querySelector("section") !== null;
|
|
2374
2374
|
}
|
|
2375
|
-
function ct() {
|
|
2376
|
-
return l && st(l) ? !l.nextElementSibling : !1;
|
|
2377
|
-
}
|
|
2378
2375
|
function lt() {
|
|
2379
|
-
return
|
|
2376
|
+
return l && ct(l) ? !l.nextElementSibling : !1;
|
|
2380
2377
|
}
|
|
2381
2378
|
function ut() {
|
|
2382
|
-
return
|
|
2379
|
+
return o === 0 && s === 0;
|
|
2383
2380
|
}
|
|
2384
2381
|
function dt() {
|
|
2382
|
+
return l ? !(l.nextElementSibling || ct(l) && l.parentNode.nextElementSibling) : !1;
|
|
2383
|
+
}
|
|
2384
|
+
function ft() {
|
|
2385
2385
|
if (r.pause) {
|
|
2386
2386
|
let e = m.wrapper.classList.contains("paused");
|
|
2387
|
-
|
|
2387
|
+
Ht(), m.wrapper.classList.add("paused"), e === !1 && H({ type: "paused" });
|
|
2388
2388
|
}
|
|
2389
2389
|
}
|
|
2390
|
-
function
|
|
2390
|
+
function pt() {
|
|
2391
2391
|
let e = m.wrapper.classList.contains("paused");
|
|
2392
|
-
m.wrapper.classList.remove("paused"),
|
|
2392
|
+
m.wrapper.classList.remove("paused"), Vt(), e && H({ type: "resumed" });
|
|
2393
2393
|
}
|
|
2394
|
-
function
|
|
2395
|
-
typeof e == "boolean" ? e ?
|
|
2394
|
+
function mt(e) {
|
|
2395
|
+
typeof e == "boolean" ? e ? ft() : pt() : ht() ? pt() : ft();
|
|
2396
2396
|
}
|
|
2397
|
-
function
|
|
2397
|
+
function ht() {
|
|
2398
2398
|
return m.wrapper.classList.contains("paused");
|
|
2399
2399
|
}
|
|
2400
|
-
function
|
|
2400
|
+
function gt(e) {
|
|
2401
2401
|
typeof e == "boolean" ? e ? C.show() : C.hide() : C.isVisible() ? C.hide() : C.show();
|
|
2402
2402
|
}
|
|
2403
|
-
function
|
|
2404
|
-
typeof e == "boolean" ? e ?
|
|
2403
|
+
function _t(e) {
|
|
2404
|
+
typeof e == "boolean" ? e ? Wt() : Ut() : b ? Wt() : Ut();
|
|
2405
2405
|
}
|
|
2406
|
-
function
|
|
2406
|
+
function vt() {
|
|
2407
2407
|
return !(!g || b);
|
|
2408
2408
|
}
|
|
2409
|
-
function
|
|
2410
|
-
if (
|
|
2409
|
+
function G(t, n, i, a) {
|
|
2410
|
+
if (H({
|
|
2411
2411
|
type: "beforeslidechange",
|
|
2412
2412
|
data: {
|
|
2413
2413
|
indexh: t === void 0 ? o : t,
|
|
@@ -2416,26 +2416,26 @@ function at(e, t) {
|
|
|
2416
2416
|
}
|
|
2417
2417
|
}).defaultPrevented) return;
|
|
2418
2418
|
c = l;
|
|
2419
|
-
let u = m.wrapper.querySelectorAll(
|
|
2419
|
+
let u = m.wrapper.querySelectorAll(z);
|
|
2420
2420
|
if (E.isActive()) {
|
|
2421
2421
|
let e = E.getSlideByIndices(t, n);
|
|
2422
2422
|
e && E.scrollToSlide(e);
|
|
2423
2423
|
return;
|
|
2424
2424
|
}
|
|
2425
2425
|
if (u.length === 0) return;
|
|
2426
|
-
n === void 0 && !k.isActive() && (n =
|
|
2426
|
+
n === void 0 && !k.isActive() && (n = st(u[t])), c && c.parentNode && c.parentNode.classList.contains("stack") && ot(c.parentNode, s);
|
|
2427
2427
|
let f = d.concat();
|
|
2428
2428
|
d.length = 0;
|
|
2429
2429
|
let p = o || 0, g = s || 0;
|
|
2430
|
-
o =
|
|
2430
|
+
o = q(z, t === void 0 ? o : t), s = q(we, n === void 0 ? s : n);
|
|
2431
2431
|
let _ = o !== p || s !== g;
|
|
2432
2432
|
_ || (c = null);
|
|
2433
2433
|
let v = u[o], y = v.querySelectorAll("section");
|
|
2434
2434
|
e.classList.toggle("is-vertical-slide", y.length > 1), l = y[s] || v;
|
|
2435
2435
|
let b = !1;
|
|
2436
|
-
_ && c && l && !k.isActive() && (h = "running", b =
|
|
2437
|
-
|
|
2438
|
-
|
|
2436
|
+
_ && c && l && !k.isActive() && (h = "running", b = yt(c, l, p, g), b && m.slides.classList.add("disable-slide-transitions")), Tt(), U(), k.isActive() && k.update(), i !== void 0 && O.goto(i), c && c !== l && (c.classList.remove("present"), c.setAttribute("aria-hidden", "true"), ut() && setTimeout(() => {
|
|
2437
|
+
Mt().forEach((e) => {
|
|
2438
|
+
ot(e, 0);
|
|
2439
2439
|
});
|
|
2440
2440
|
}, 0));
|
|
2441
2441
|
stateLoop: for (let e = 0, t = d.length; e < t; e++) {
|
|
@@ -2443,60 +2443,60 @@ function at(e, t) {
|
|
|
2443
2443
|
f.splice(t, 1);
|
|
2444
2444
|
continue stateLoop;
|
|
2445
2445
|
}
|
|
2446
|
-
m.viewport.classList.add(d[e]),
|
|
2446
|
+
m.viewport.classList.add(d[e]), H({ type: d[e] });
|
|
2447
2447
|
}
|
|
2448
2448
|
for (; f.length;) m.viewport.classList.remove(f.pop());
|
|
2449
|
-
_ && (x.afterSlideChanged(),
|
|
2450
|
-
|
|
2451
|
-
}),
|
|
2449
|
+
_ && (x.afterSlideChanged(), He(a)), (_ || !c) && (x.stopEmbeddedContent(c), x.startEmbeddedContent(l)), requestAnimationFrame(() => {
|
|
2450
|
+
L(be(l));
|
|
2451
|
+
}), ne.update(), te.update(), I.update(), T.update(), T.updateParallax(), S.update(), O.update(), A.writeURL(), Vt(), b && (setTimeout(() => {
|
|
2452
2452
|
m.slides.classList.remove("disable-slide-transitions");
|
|
2453
2453
|
}, 0), r.autoAnimate && w.run(c, l));
|
|
2454
2454
|
}
|
|
2455
|
-
function
|
|
2455
|
+
function yt(e, t, n, r) {
|
|
2456
2456
|
return e.hasAttribute("data-auto-animate") && t.hasAttribute("data-auto-animate") && e.getAttribute("data-auto-animate-id") === t.getAttribute("data-auto-animate-id") && !(o > n || s > r ? t : e).hasAttribute("data-auto-animate-restart");
|
|
2457
2457
|
}
|
|
2458
|
-
function
|
|
2458
|
+
function bt(e, t, n) {
|
|
2459
2459
|
let i = o || 0;
|
|
2460
2460
|
o = t, s = n;
|
|
2461
2461
|
let a = l !== e;
|
|
2462
|
-
c = l, l = e, l && c && r.autoAnimate &&
|
|
2463
|
-
|
|
2464
|
-
}),
|
|
2462
|
+
c = l, l = e, l && c && r.autoAnimate && yt(c, l, i, s) && w.run(c, l), a && (x.afterSlideChanged(), c && (x.stopEmbeddedContent(c), x.stopEmbeddedContent(c.slideBackgroundElement)), x.startEmbeddedContent(l), x.startEmbeddedContent(l.slideBackgroundElement)), requestAnimationFrame(() => {
|
|
2463
|
+
L(be(l));
|
|
2464
|
+
}), He();
|
|
2465
2465
|
}
|
|
2466
|
-
function
|
|
2467
|
-
|
|
2466
|
+
function xt() {
|
|
2467
|
+
Me(), Ae(), U(), g = r.autoSlide, Vt(), T.create(), A.writeURL(), r.sortFragmentsOnSync === !0 && O.sortAll(), o !== void 0 && (o = q(z, o), s = q(we, s)), te.update(), ne.update(), Tt(), I.update(), I.updateVisibility(), M.update(), T.update(!0), S.update(), x.formatEmbeddedContent(), r.autoPlayMedia === !1 ? x.stopEmbeddedContent(l, { unloadIframes: !1 }) : x.startEmbeddedContent(l), k.isActive() && k.layout(), H({ type: "sync" });
|
|
2468
2468
|
}
|
|
2469
|
-
function
|
|
2470
|
-
T.sync(e), O.sync(e), x.load(e), T.update(),
|
|
2469
|
+
function St(e = l) {
|
|
2470
|
+
T.sync(e), O.sync(e), x.load(e), T.update(), I.update(), H({
|
|
2471
2471
|
type: "slidesync",
|
|
2472
2472
|
data: { slide: e }
|
|
2473
2473
|
});
|
|
2474
2474
|
}
|
|
2475
|
-
function
|
|
2476
|
-
|
|
2477
|
-
|
|
2475
|
+
function Ct() {
|
|
2476
|
+
At().forEach((e) => {
|
|
2477
|
+
P(e, "section").forEach((e, t) => {
|
|
2478
2478
|
t > 0 && (e.classList.remove("present"), e.classList.remove("past"), e.classList.add("future"), e.setAttribute("aria-hidden", "true"));
|
|
2479
2479
|
});
|
|
2480
2480
|
});
|
|
2481
2481
|
}
|
|
2482
|
-
function
|
|
2482
|
+
function K(e = At()) {
|
|
2483
2483
|
e.forEach((t, n) => {
|
|
2484
2484
|
let r = e[Math.floor(Math.random() * e.length)];
|
|
2485
2485
|
r.parentNode === t.parentNode && t.parentNode.insertBefore(t, r);
|
|
2486
2486
|
let i = t.querySelectorAll("section");
|
|
2487
|
-
i.length &&
|
|
2487
|
+
i.length && K(i);
|
|
2488
2488
|
});
|
|
2489
2489
|
}
|
|
2490
|
-
function
|
|
2491
|
-
let n =
|
|
2490
|
+
function q(e, t) {
|
|
2491
|
+
let n = P(m.wrapper, e), i = n.length, a = E.isActive() || D.isActive(), o = !1, s = !1;
|
|
2492
2492
|
if (i) {
|
|
2493
2493
|
r.loop && (t >= i && (o = !0), t %= i, t < 0 && (t = i + t, s = !0)), t = Math.max(Math.min(t, i - 1), 0);
|
|
2494
2494
|
for (let e = 0; e < i; e++) {
|
|
2495
|
-
let i = n[e], c = r.rtl && !
|
|
2496
|
-
i.classList.remove("past"), i.classList.remove("present"), i.classList.remove("future"), i.setAttribute("hidden", ""), i.setAttribute("aria-hidden", "true"), i.querySelector("section") && i.classList.add("stack"), a ? i.classList.add("present") : e < t ? (i.classList.add(c ? "future" : "past"), r.fragments &&
|
|
2495
|
+
let i = n[e], c = r.rtl && !ct(i);
|
|
2496
|
+
i.classList.remove("past"), i.classList.remove("present"), i.classList.remove("future"), i.setAttribute("hidden", ""), i.setAttribute("aria-hidden", "true"), i.querySelector("section") && i.classList.add("stack"), a ? i.classList.add("present") : e < t ? (i.classList.add(c ? "future" : "past"), r.fragments && wt(i)) : e > t ? (i.classList.add(c ? "past" : "future"), r.fragments && J(i)) : e === t && r.fragments && (o ? J(i) : s && wt(i));
|
|
2497
2497
|
}
|
|
2498
2498
|
let e = n[t], c = e.classList.contains("present");
|
|
2499
|
-
e.classList.add("present"), e.removeAttribute("hidden"), e.removeAttribute("aria-hidden"), c ||
|
|
2499
|
+
e.classList.add("present"), e.removeAttribute("hidden"), e.removeAttribute("aria-hidden"), c || H({
|
|
2500
2500
|
target: e,
|
|
2501
2501
|
type: "visible",
|
|
2502
2502
|
bubbles: !1
|
|
@@ -2506,40 +2506,40 @@ function at(e, t) {
|
|
|
2506
2506
|
} else t = 0;
|
|
2507
2507
|
return t;
|
|
2508
2508
|
}
|
|
2509
|
-
function
|
|
2510
|
-
|
|
2509
|
+
function wt(e) {
|
|
2510
|
+
P(e, ".fragment").forEach((e) => {
|
|
2511
2511
|
e.classList.add("visible"), e.classList.remove("current-fragment");
|
|
2512
2512
|
});
|
|
2513
2513
|
}
|
|
2514
|
-
function
|
|
2515
|
-
|
|
2514
|
+
function J(e) {
|
|
2515
|
+
P(e, ".fragment.visible").forEach((e) => {
|
|
2516
2516
|
e.classList.remove("visible", "current-fragment");
|
|
2517
2517
|
});
|
|
2518
2518
|
}
|
|
2519
|
-
function
|
|
2520
|
-
let e =
|
|
2519
|
+
function Tt() {
|
|
2520
|
+
let e = At(), t = e.length, n, i;
|
|
2521
2521
|
if (t && o !== void 0) {
|
|
2522
2522
|
let a = k.isActive(), c = a ? 10 : r.viewDistance;
|
|
2523
|
-
|
|
2523
|
+
_e && (c = a ? 6 : r.mobileViewDistance), D.isActive() && (c = Number.MAX_VALUE);
|
|
2524
2524
|
for (let l = 0; l < t; l++) {
|
|
2525
|
-
let u = e[l], d =
|
|
2525
|
+
let u = e[l], d = P(u, "section"), f = d.length;
|
|
2526
2526
|
if (n = Math.abs((o || 0) - l) || 0, r.loop && (n = Math.abs(((o || 0) - l) % (t - c)) || 0), n < c ? x.load(u) : x.unload(u), f) {
|
|
2527
|
-
let e = a ? 0 :
|
|
2527
|
+
let e = a ? 0 : st(u);
|
|
2528
2528
|
for (let t = 0; t < f; t++) {
|
|
2529
2529
|
let r = d[t];
|
|
2530
2530
|
i = Math.abs(l === (o || 0) ? (s || 0) - t : t - e), n + i < c ? x.load(r) : x.unload(r);
|
|
2531
2531
|
}
|
|
2532
2532
|
}
|
|
2533
2533
|
}
|
|
2534
|
-
|
|
2534
|
+
Pt() ? m.wrapper.classList.add("has-vertical-slides") : m.wrapper.classList.remove("has-vertical-slides"), Nt() ? m.wrapper.classList.add("has-horizontal-slides") : m.wrapper.classList.remove("has-horizontal-slides");
|
|
2535
2535
|
}
|
|
2536
2536
|
let a = k.isActive() || E.isActive() || D.isActive();
|
|
2537
|
-
|
|
2537
|
+
P(m.wrapper, R).forEach((e) => {
|
|
2538
2538
|
e.toggleAttribute("inert", !a && e !== l && !e.contains(l));
|
|
2539
2539
|
});
|
|
2540
2540
|
}
|
|
2541
|
-
function
|
|
2542
|
-
let t = m.wrapper.querySelectorAll(
|
|
2541
|
+
function Y({ includeFragments: e = !1 } = {}) {
|
|
2542
|
+
let t = m.wrapper.querySelectorAll(z), n = m.wrapper.querySelectorAll(we), i = {
|
|
2543
2543
|
left: o > 0,
|
|
2544
2544
|
right: o < t.length - 1,
|
|
2545
2545
|
up: s > 0,
|
|
@@ -2555,8 +2555,8 @@ function at(e, t) {
|
|
|
2555
2555
|
}
|
|
2556
2556
|
return i;
|
|
2557
2557
|
}
|
|
2558
|
-
function
|
|
2559
|
-
let t =
|
|
2558
|
+
function Et(e = l) {
|
|
2559
|
+
let t = At(), n = 0;
|
|
2560
2560
|
mainLoop: for (let r = 0; r < t.length; r++) {
|
|
2561
2561
|
let i = t[r], a = i.querySelectorAll("section");
|
|
2562
2562
|
for (let t = 0; t < a.length; t++) {
|
|
@@ -2568,8 +2568,8 @@ function at(e, t) {
|
|
|
2568
2568
|
}
|
|
2569
2569
|
return n;
|
|
2570
2570
|
}
|
|
2571
|
-
function
|
|
2572
|
-
let e =
|
|
2571
|
+
function Dt() {
|
|
2572
|
+
let e = It(), t = Et();
|
|
2573
2573
|
if (l) {
|
|
2574
2574
|
let e = l.querySelectorAll(".fragment");
|
|
2575
2575
|
if (e.length > 0) {
|
|
@@ -2579,13 +2579,13 @@ function at(e, t) {
|
|
|
2579
2579
|
}
|
|
2580
2580
|
return Math.min(t / (e - 1), 1);
|
|
2581
2581
|
}
|
|
2582
|
-
function
|
|
2582
|
+
function Ot(e) {
|
|
2583
2583
|
let t = o, n = s, r;
|
|
2584
2584
|
if (e) {
|
|
2585
2585
|
if (E.isActive()) t = parseInt(e.getAttribute("data-index-h"), 10), e.getAttribute("data-index-v") && (n = parseInt(e.getAttribute("data-index-v"), 10));
|
|
2586
2586
|
else {
|
|
2587
|
-
let r =
|
|
2588
|
-
t = Math.max(a.indexOf(i), 0), n = void 0, r && (n = Math.max(
|
|
2587
|
+
let r = ct(e), i = r ? e.parentNode : e, a = At();
|
|
2588
|
+
t = Math.max(a.indexOf(i), 0), n = void 0, r && (n = Math.max(P(e.parentNode, "section").indexOf(e), 0));
|
|
2589
2589
|
}
|
|
2590
2590
|
}
|
|
2591
2591
|
if (!e && l && l.querySelectorAll(".fragment").length > 0) {
|
|
@@ -2598,26 +2598,26 @@ function at(e, t) {
|
|
|
2598
2598
|
f: r
|
|
2599
2599
|
};
|
|
2600
2600
|
}
|
|
2601
|
-
function Ot() {
|
|
2602
|
-
return F(m.wrapper, z + ":not(.stack):not([data-visibility=\"uncounted\"])");
|
|
2603
|
-
}
|
|
2604
2601
|
function kt() {
|
|
2605
|
-
return
|
|
2602
|
+
return P(m.wrapper, R + ":not(.stack):not([data-visibility=\"uncounted\"])");
|
|
2606
2603
|
}
|
|
2607
2604
|
function At() {
|
|
2608
|
-
return
|
|
2605
|
+
return P(m.wrapper, z);
|
|
2609
2606
|
}
|
|
2610
2607
|
function jt() {
|
|
2611
|
-
return
|
|
2608
|
+
return P(m.wrapper, ".slides>section>section");
|
|
2612
2609
|
}
|
|
2613
2610
|
function Mt() {
|
|
2614
|
-
return
|
|
2611
|
+
return P(m.wrapper, z + ".stack");
|
|
2615
2612
|
}
|
|
2616
2613
|
function Nt() {
|
|
2617
2614
|
return At().length > 1;
|
|
2618
2615
|
}
|
|
2619
2616
|
function Pt() {
|
|
2620
|
-
return
|
|
2617
|
+
return jt().length > 1;
|
|
2618
|
+
}
|
|
2619
|
+
function Ft() {
|
|
2620
|
+
return kt().map((e) => {
|
|
2621
2621
|
let t = {};
|
|
2622
2622
|
for (let n = 0; n < e.attributes.length; n++) {
|
|
2623
2623
|
let r = e.attributes[n];
|
|
@@ -2626,106 +2626,106 @@ function at(e, t) {
|
|
|
2626
2626
|
return t;
|
|
2627
2627
|
});
|
|
2628
2628
|
}
|
|
2629
|
-
function
|
|
2630
|
-
return
|
|
2629
|
+
function It() {
|
|
2630
|
+
return kt().length;
|
|
2631
2631
|
}
|
|
2632
|
-
function
|
|
2633
|
-
let n =
|
|
2632
|
+
function Lt(e, t) {
|
|
2633
|
+
let n = At()[e], r = n && n.querySelectorAll("section");
|
|
2634
2634
|
return r && r.length && typeof t == "number" ? r ? r[t] : void 0 : n;
|
|
2635
2635
|
}
|
|
2636
|
-
function
|
|
2637
|
-
let n = typeof e == "number" ?
|
|
2636
|
+
function Rt(e, t) {
|
|
2637
|
+
let n = typeof e == "number" ? Lt(e, t) : e;
|
|
2638
2638
|
if (n) return n.slideBackgroundElement;
|
|
2639
2639
|
}
|
|
2640
|
-
function
|
|
2641
|
-
let e =
|
|
2642
|
-
return
|
|
2640
|
+
function zt() {
|
|
2641
|
+
let e = Ot();
|
|
2642
|
+
return Ue({
|
|
2643
2643
|
indexh: e.h,
|
|
2644
2644
|
indexv: e.v,
|
|
2645
2645
|
indexf: e.f,
|
|
2646
|
-
paused:
|
|
2646
|
+
paused: ht(),
|
|
2647
2647
|
overview: k.isActive()
|
|
2648
|
-
},
|
|
2648
|
+
}, M.getState());
|
|
2649
2649
|
}
|
|
2650
|
-
function
|
|
2650
|
+
function Bt(e) {
|
|
2651
2651
|
if (typeof e == "object") {
|
|
2652
|
-
|
|
2653
|
-
let t =
|
|
2654
|
-
typeof t == "boolean" && t !==
|
|
2652
|
+
G(oe(e.indexh), oe(e.indexv), oe(e.indexf));
|
|
2653
|
+
let t = oe(e.paused), n = oe(e.overview);
|
|
2654
|
+
typeof t == "boolean" && t !== ht() && mt(t), typeof n == "boolean" && n !== k.isActive() && k.toggle(n), M.setState(e);
|
|
2655
2655
|
}
|
|
2656
2656
|
}
|
|
2657
|
-
function
|
|
2658
|
-
if (
|
|
2657
|
+
function Vt() {
|
|
2658
|
+
if (Ht(), l && r.autoSlide !== !1) {
|
|
2659
2659
|
let e = l.querySelector(".current-fragment[data-autoslide]"), t = e ? e.getAttribute("data-autoslide") : null, n = l.parentNode ? l.parentNode.getAttribute("data-autoslide") : null, i = l.getAttribute("data-autoslide");
|
|
2660
|
-
t ? g = parseInt(t, 10) : i ? g = parseInt(i, 10) : n ? g = parseInt(n, 10) : (g = r.autoSlide, l.querySelectorAll(".fragment").length === 0 &&
|
|
2660
|
+
t ? g = parseInt(t, 10) : i ? g = parseInt(i, 10) : n ? g = parseInt(n, 10) : (g = r.autoSlide, l.querySelectorAll(".fragment").length === 0 && P(l, "video, audio").forEach((e) => {
|
|
2661
2661
|
e.hasAttribute("data-autoplay") && g && e.duration * 1e3 / e.playbackRate > g && (g = e.duration * 1e3 / e.playbackRate + 1e3);
|
|
2662
|
-
})), g && !b && !
|
|
2663
|
-
typeof r.autoSlideMethod == "function" ? r.autoSlideMethod() :
|
|
2662
|
+
})), g && !b && !ht() && !k.isActive() && (!dt() || O.availableRoutes().next || r.loop === !0) && (v = setTimeout(() => {
|
|
2663
|
+
typeof r.autoSlideMethod == "function" ? r.autoSlideMethod() : Xt(), Vt();
|
|
2664
2664
|
}, g), y = Date.now()), _ && _.setPlaying(v !== -1);
|
|
2665
2665
|
}
|
|
2666
2666
|
}
|
|
2667
|
-
function Vt() {
|
|
2668
|
-
clearTimeout(v), v = -1;
|
|
2669
|
-
}
|
|
2670
2667
|
function Ht() {
|
|
2671
|
-
|
|
2668
|
+
clearTimeout(v), v = -1;
|
|
2672
2669
|
}
|
|
2673
2670
|
function Ut() {
|
|
2674
|
-
g && b && (b = !
|
|
2671
|
+
g && !b && (b = !0, H({ type: "autoslidepaused" }), clearTimeout(v), _ && _.setPlaying(!1));
|
|
2675
2672
|
}
|
|
2676
|
-
function Wt(
|
|
2677
|
-
|
|
2678
|
-
r.rtl ? (k.isActive() || e || O.next() === !1) && X().left && K(o + 1, r.navigationMode === "grid" ? s : void 0) : (k.isActive() || e || O.prev() === !1) && X().left && K(o - 1, r.navigationMode === "grid" ? s : void 0);
|
|
2673
|
+
function Wt() {
|
|
2674
|
+
g && b && (b = !1, H({ type: "autoslideresumed" }), Vt());
|
|
2679
2675
|
}
|
|
2680
2676
|
function Gt({ skipFragments: e = !1 } = {}) {
|
|
2681
|
-
if (u.hasNavigatedHorizontally = !0, E.isActive()) return E.
|
|
2682
|
-
r.rtl ? (k.isActive() || e || O.
|
|
2677
|
+
if (u.hasNavigatedHorizontally = !0, E.isActive()) return E.prev();
|
|
2678
|
+
r.rtl ? (k.isActive() || e || O.next() === !1) && Y().left && G(o + 1, r.navigationMode === "grid" ? s : void 0) : (k.isActive() || e || O.prev() === !1) && Y().left && G(o - 1, r.navigationMode === "grid" ? s : void 0);
|
|
2683
2679
|
}
|
|
2684
2680
|
function Kt({ skipFragments: e = !1 } = {}) {
|
|
2685
|
-
if (E.isActive()) return E.
|
|
2686
|
-
(k.isActive() || e || O.prev() === !1) &&
|
|
2681
|
+
if (u.hasNavigatedHorizontally = !0, E.isActive()) return E.next();
|
|
2682
|
+
r.rtl ? (k.isActive() || e || O.prev() === !1) && Y().right && G(o - 1, r.navigationMode === "grid" ? s : void 0) : (k.isActive() || e || O.next() === !1) && Y().right && G(o + 1, r.navigationMode === "grid" ? s : void 0);
|
|
2687
2683
|
}
|
|
2688
2684
|
function qt({ skipFragments: e = !1 } = {}) {
|
|
2689
|
-
if (
|
|
2690
|
-
(k.isActive() || e || O.
|
|
2685
|
+
if (E.isActive()) return E.prev();
|
|
2686
|
+
(k.isActive() || e || O.prev() === !1) && Y().up && G(o, s - 1);
|
|
2691
2687
|
}
|
|
2692
2688
|
function Jt({ skipFragments: e = !1 } = {}) {
|
|
2689
|
+
if (u.hasNavigatedVertically = !0, E.isActive()) return E.next();
|
|
2690
|
+
(k.isActive() || e || O.next() === !1) && Y().down && G(o, s + 1);
|
|
2691
|
+
}
|
|
2692
|
+
function Yt({ skipFragments: e = !1 } = {}) {
|
|
2693
2693
|
if (E.isActive()) return E.prev();
|
|
2694
2694
|
if (e || O.prev() === !1) {
|
|
2695
|
-
if (
|
|
2695
|
+
if (Y().up) qt({ skipFragments: e });
|
|
2696
2696
|
else {
|
|
2697
2697
|
let t;
|
|
2698
|
-
if (t = r.rtl ?
|
|
2698
|
+
if (t = r.rtl ? P(m.wrapper, z + ".future").pop() : P(m.wrapper, z + ".past").pop(), t && t.classList.contains("stack")) {
|
|
2699
2699
|
let e = t.querySelectorAll("section").length - 1 || void 0;
|
|
2700
|
-
|
|
2701
|
-
} else r.rtl ?
|
|
2700
|
+
G(o - 1, e);
|
|
2701
|
+
} else r.rtl ? Kt({ skipFragments: e }) : Gt({ skipFragments: e });
|
|
2702
2702
|
}
|
|
2703
2703
|
}
|
|
2704
2704
|
}
|
|
2705
|
-
function
|
|
2705
|
+
function Xt({ skipFragments: e = !1 } = {}) {
|
|
2706
2706
|
if (u.hasNavigatedHorizontally = !0, u.hasNavigatedVertically = !0, E.isActive()) return E.next();
|
|
2707
2707
|
if (e || O.next() === !1) {
|
|
2708
|
-
let t =
|
|
2709
|
-
t.down && t.right && r.loop &&
|
|
2708
|
+
let t = Y();
|
|
2709
|
+
t.down && t.right && r.loop && lt() && (t.down = !1), t.down ? Jt({ skipFragments: e }) : r.rtl ? Gt({ skipFragments: e }) : Kt({ skipFragments: e });
|
|
2710
2710
|
}
|
|
2711
2711
|
}
|
|
2712
|
-
function Xt(e) {
|
|
2713
|
-
r.autoSlideStoppable && Ht();
|
|
2714
|
-
}
|
|
2715
2712
|
function Zt(e) {
|
|
2713
|
+
r.autoSlideStoppable && Ut();
|
|
2714
|
+
}
|
|
2715
|
+
function Qt(e) {
|
|
2716
2716
|
let t = e.data;
|
|
2717
2717
|
if (typeof t == "string" && t.charAt(0) === "{" && t.charAt(t.length - 1) === "}" && (t = JSON.parse(t), t.method && typeof n[t.method] == "function")) {
|
|
2718
|
-
if (
|
|
2718
|
+
if (Ee.test(t.method) === !1) {
|
|
2719
2719
|
let e = n[t.method].apply(n, t.args);
|
|
2720
|
-
|
|
2720
|
+
Je("callback", {
|
|
2721
2721
|
method: t.method,
|
|
2722
2722
|
result: e
|
|
2723
2723
|
});
|
|
2724
2724
|
} else console.warn("reveal.js: \"" + t.method + "\" is is blacklisted from the postMessage API");
|
|
2725
2725
|
}
|
|
2726
2726
|
}
|
|
2727
|
-
function
|
|
2728
|
-
h === "running" && /section/gi.test(e.target.nodeName) && (h = "idle",
|
|
2727
|
+
function $t(e) {
|
|
2728
|
+
h === "running" && /section/gi.test(e.target.nodeName) && (h = "idle", H({
|
|
2729
2729
|
type: "slidetransitionend",
|
|
2730
2730
|
data: {
|
|
2731
2731
|
indexh: o,
|
|
@@ -2735,76 +2735,76 @@ function at(e, t) {
|
|
|
2735
2735
|
}
|
|
2736
2736
|
}));
|
|
2737
2737
|
}
|
|
2738
|
-
function
|
|
2739
|
-
let t =
|
|
2738
|
+
function en(e) {
|
|
2739
|
+
let t = F(e.target, "a[href^=\"#\"]");
|
|
2740
2740
|
if (t) {
|
|
2741
|
-
let r = t.getAttribute("href"), i =
|
|
2741
|
+
let r = t.getAttribute("href"), i = A.getIndicesFromHash(r);
|
|
2742
2742
|
i && (n.slide(i.h, i.v, i.f), e.preventDefault());
|
|
2743
2743
|
}
|
|
2744
2744
|
}
|
|
2745
|
-
function en(e) {
|
|
2746
|
-
W();
|
|
2747
|
-
}
|
|
2748
2745
|
function tn(e) {
|
|
2749
|
-
|
|
2746
|
+
U();
|
|
2750
2747
|
}
|
|
2751
2748
|
function nn(e) {
|
|
2749
|
+
document.hidden === !1 && document.activeElement !== document.body && (typeof document.activeElement.blur == "function" && document.activeElement.blur(), document.body.focus());
|
|
2750
|
+
}
|
|
2751
|
+
function rn(e) {
|
|
2752
2752
|
(document.fullscreenElement || document.webkitFullscreenElement) === m.wrapper && (e.stopImmediatePropagation(), setTimeout(() => {
|
|
2753
2753
|
n.layout(), n.focus.focus();
|
|
2754
2754
|
}, 1));
|
|
2755
2755
|
}
|
|
2756
|
-
function
|
|
2757
|
-
|
|
2758
|
-
}
|
|
2759
|
-
let
|
|
2760
|
-
VERSION:
|
|
2761
|
-
initialize:
|
|
2762
|
-
configure:
|
|
2763
|
-
destroy:
|
|
2764
|
-
sync:
|
|
2765
|
-
syncSlide:
|
|
2756
|
+
function an(e) {
|
|
2757
|
+
dt() && r.loop === !1 ? (G(0, 0), Wt()) : b ? Wt() : Ut();
|
|
2758
|
+
}
|
|
2759
|
+
let on = {
|
|
2760
|
+
VERSION: at,
|
|
2761
|
+
initialize: ue,
|
|
2762
|
+
configure: V,
|
|
2763
|
+
destroy: Ne,
|
|
2764
|
+
sync: xt,
|
|
2765
|
+
syncSlide: St,
|
|
2766
2766
|
syncFragments: O.sync.bind(O),
|
|
2767
|
-
slide:
|
|
2768
|
-
left:
|
|
2769
|
-
right:
|
|
2770
|
-
up:
|
|
2771
|
-
down:
|
|
2772
|
-
prev:
|
|
2773
|
-
next:
|
|
2774
|
-
navigateLeft:
|
|
2775
|
-
navigateRight:
|
|
2776
|
-
navigateUp:
|
|
2777
|
-
navigateDown:
|
|
2778
|
-
navigatePrev:
|
|
2779
|
-
navigateNext:
|
|
2767
|
+
slide: G,
|
|
2768
|
+
left: Gt,
|
|
2769
|
+
right: Kt,
|
|
2770
|
+
up: qt,
|
|
2771
|
+
down: Jt,
|
|
2772
|
+
prev: Yt,
|
|
2773
|
+
next: Xt,
|
|
2774
|
+
navigateLeft: Gt,
|
|
2775
|
+
navigateRight: Kt,
|
|
2776
|
+
navigateUp: qt,
|
|
2777
|
+
navigateDown: Jt,
|
|
2778
|
+
navigatePrev: Yt,
|
|
2779
|
+
navigateNext: Xt,
|
|
2780
2780
|
navigateFragment: O.goto.bind(O),
|
|
2781
2781
|
prevFragment: O.prev.bind(O),
|
|
2782
2782
|
nextFragment: O.next.bind(O),
|
|
2783
|
-
on:
|
|
2784
|
-
off:
|
|
2785
|
-
addEventListener:
|
|
2786
|
-
removeEventListener:
|
|
2787
|
-
layout:
|
|
2788
|
-
shuffle:
|
|
2789
|
-
availableRoutes:
|
|
2783
|
+
on: Pe,
|
|
2784
|
+
off: Fe,
|
|
2785
|
+
addEventListener: Pe,
|
|
2786
|
+
removeEventListener: Fe,
|
|
2787
|
+
layout: U,
|
|
2788
|
+
shuffle: K,
|
|
2789
|
+
availableRoutes: Y,
|
|
2790
2790
|
availableFragments: O.availableRoutes.bind(O),
|
|
2791
|
-
toggleHelp:
|
|
2791
|
+
toggleHelp: M.toggleHelp.bind(M),
|
|
2792
2792
|
toggleOverview: k.toggle.bind(k),
|
|
2793
2793
|
toggleScrollView: E.toggle.bind(E),
|
|
2794
|
-
togglePause:
|
|
2795
|
-
toggleAutoSlide:
|
|
2796
|
-
toggleJumpToSlide:
|
|
2797
|
-
isFirstSlide:
|
|
2798
|
-
isLastSlide:
|
|
2799
|
-
isLastVerticalSlide:
|
|
2800
|
-
isVerticalSlide:
|
|
2801
|
-
isVerticalStack:
|
|
2802
|
-
isPaused:
|
|
2803
|
-
isAutoSliding:
|
|
2804
|
-
isSpeakerNotes:
|
|
2794
|
+
togglePause: mt,
|
|
2795
|
+
toggleAutoSlide: _t,
|
|
2796
|
+
toggleJumpToSlide: gt,
|
|
2797
|
+
isFirstSlide: ut,
|
|
2798
|
+
isLastSlide: dt,
|
|
2799
|
+
isLastVerticalSlide: lt,
|
|
2800
|
+
isVerticalSlide: ct,
|
|
2801
|
+
isVerticalStack: W,
|
|
2802
|
+
isPaused: ht,
|
|
2803
|
+
isAutoSliding: vt,
|
|
2804
|
+
isSpeakerNotes: I.isSpeakerNotesWindow.bind(I),
|
|
2805
2805
|
isOverview: k.isActive.bind(k),
|
|
2806
|
-
isFocused:
|
|
2807
|
-
isOverlayOpen:
|
|
2806
|
+
isFocused: N.isFocused.bind(N),
|
|
2807
|
+
isOverlayOpen: M.isOpen.bind(M),
|
|
2808
2808
|
isScrollView: E.isActive.bind(E),
|
|
2809
2809
|
isPrintView: D.isActive.bind(D),
|
|
2810
2810
|
isReady: () => a,
|
|
@@ -2812,82 +2812,82 @@ function at(e, t) {
|
|
|
2812
2812
|
unloadSlide: x.unload.bind(x),
|
|
2813
2813
|
startEmbeddedContent: () => x.startEmbeddedContent(l),
|
|
2814
2814
|
stopEmbeddedContent: () => x.stopEmbeddedContent(l, { unloadIframes: !1 }),
|
|
2815
|
-
previewIframe:
|
|
2816
|
-
previewImage:
|
|
2817
|
-
previewVideo:
|
|
2818
|
-
showPreview:
|
|
2819
|
-
hidePreview:
|
|
2820
|
-
addEventListeners:
|
|
2821
|
-
removeEventListeners:
|
|
2822
|
-
dispatchEvent:
|
|
2823
|
-
getState:
|
|
2824
|
-
setState:
|
|
2825
|
-
getProgress:
|
|
2826
|
-
getIndices:
|
|
2827
|
-
getSlidesAttributes:
|
|
2828
|
-
getSlidePastCount:
|
|
2829
|
-
getTotalSlides:
|
|
2830
|
-
getSlide:
|
|
2815
|
+
previewIframe: M.previewIframe.bind(M),
|
|
2816
|
+
previewImage: M.previewImage.bind(M),
|
|
2817
|
+
previewVideo: M.previewVideo.bind(M),
|
|
2818
|
+
showPreview: M.previewIframe.bind(M),
|
|
2819
|
+
hidePreview: M.close.bind(M),
|
|
2820
|
+
addEventListeners: Ae,
|
|
2821
|
+
removeEventListeners: Me,
|
|
2822
|
+
dispatchEvent: H,
|
|
2823
|
+
getState: zt,
|
|
2824
|
+
setState: Bt,
|
|
2825
|
+
getProgress: Dt,
|
|
2826
|
+
getIndices: Ot,
|
|
2827
|
+
getSlidesAttributes: Ft,
|
|
2828
|
+
getSlidePastCount: Et,
|
|
2829
|
+
getTotalSlides: It,
|
|
2830
|
+
getSlide: Lt,
|
|
2831
2831
|
getPreviousSlide: () => c,
|
|
2832
2832
|
getCurrentSlide: () => l,
|
|
2833
|
-
getSlideBackground:
|
|
2834
|
-
getSlideNotes:
|
|
2835
|
-
getSlides:
|
|
2836
|
-
getHorizontalSlides:
|
|
2837
|
-
getVerticalSlides:
|
|
2838
|
-
hasHorizontalSlides:
|
|
2839
|
-
hasVerticalSlides:
|
|
2833
|
+
getSlideBackground: Rt,
|
|
2834
|
+
getSlideNotes: I.getSlideNotes.bind(I),
|
|
2835
|
+
getSlides: kt,
|
|
2836
|
+
getHorizontalSlides: At,
|
|
2837
|
+
getVerticalSlides: jt,
|
|
2838
|
+
hasHorizontalSlides: Nt,
|
|
2839
|
+
hasVerticalSlides: Pt,
|
|
2840
2840
|
hasNavigatedHorizontally: () => u.hasNavigatedHorizontally,
|
|
2841
2841
|
hasNavigatedVertically: () => u.hasNavigatedVertically,
|
|
2842
|
-
shouldAutoAnimateBetween:
|
|
2843
|
-
addKeyBinding:
|
|
2844
|
-
removeKeyBinding:
|
|
2845
|
-
triggerKey:
|
|
2846
|
-
registerKeyboardShortcut:
|
|
2847
|
-
getComputedSlideSize:
|
|
2848
|
-
setCurrentScrollPage:
|
|
2849
|
-
removeHiddenSlides:
|
|
2842
|
+
shouldAutoAnimateBetween: yt,
|
|
2843
|
+
addKeyBinding: ee.addKeyBinding.bind(ee),
|
|
2844
|
+
removeKeyBinding: ee.removeKeyBinding.bind(ee),
|
|
2845
|
+
triggerKey: ee.triggerKey.bind(ee),
|
|
2846
|
+
registerKeyboardShortcut: ee.registerKeyboardShortcut.bind(ee),
|
|
2847
|
+
getComputedSlideSize: et,
|
|
2848
|
+
setCurrentScrollPage: bt,
|
|
2849
|
+
removeHiddenSlides: ge,
|
|
2850
2850
|
getScale: () => f,
|
|
2851
2851
|
getConfig: () => r,
|
|
2852
|
-
getQueryHash:
|
|
2853
|
-
getSlidePath:
|
|
2852
|
+
getQueryHash: de,
|
|
2853
|
+
getSlidePath: A.getHash.bind(A),
|
|
2854
2854
|
getRevealElement: () => e,
|
|
2855
2855
|
getSlidesElement: () => m.slides,
|
|
2856
2856
|
getViewportElement: () => m.viewport,
|
|
2857
2857
|
getBackgroundsElement: () => T.element,
|
|
2858
|
-
registerPlugin:
|
|
2859
|
-
hasPlugin:
|
|
2860
|
-
getPlugin:
|
|
2861
|
-
getPlugins:
|
|
2858
|
+
registerPlugin: j.registerPlugin.bind(j),
|
|
2859
|
+
hasPlugin: j.hasPlugin.bind(j),
|
|
2860
|
+
getPlugin: j.getPlugin.bind(j),
|
|
2861
|
+
getPlugins: j.getRegisteredPlugins.bind(j)
|
|
2862
2862
|
};
|
|
2863
|
-
return
|
|
2864
|
-
announceStatus:
|
|
2865
|
-
getStatusText:
|
|
2866
|
-
focus:
|
|
2863
|
+
return ie(n, Ue(Ue({}, on), {}, {
|
|
2864
|
+
announceStatus: L,
|
|
2865
|
+
getStatusText: be,
|
|
2866
|
+
focus: N,
|
|
2867
2867
|
scroll: E,
|
|
2868
|
-
progress:
|
|
2869
|
-
controls:
|
|
2870
|
-
location:
|
|
2868
|
+
progress: ne,
|
|
2869
|
+
controls: te,
|
|
2870
|
+
location: A,
|
|
2871
2871
|
overview: k,
|
|
2872
|
-
keyboard:
|
|
2872
|
+
keyboard: ee,
|
|
2873
2873
|
fragments: O,
|
|
2874
2874
|
backgrounds: T,
|
|
2875
2875
|
slideContent: x,
|
|
2876
2876
|
slideNumber: S,
|
|
2877
|
-
onUserInput:
|
|
2878
|
-
closeOverlay:
|
|
2879
|
-
updateSlidesVisibility:
|
|
2880
|
-
layoutSlideContents:
|
|
2881
|
-
transformSlides:
|
|
2882
|
-
cueAutoSlide:
|
|
2883
|
-
cancelAutoSlide:
|
|
2884
|
-
})),
|
|
2877
|
+
onUserInput: Zt,
|
|
2878
|
+
closeOverlay: M.close.bind(M),
|
|
2879
|
+
updateSlidesVisibility: Tt,
|
|
2880
|
+
layoutSlideContents: Ze,
|
|
2881
|
+
transformSlides: Le,
|
|
2882
|
+
cueAutoSlide: Vt,
|
|
2883
|
+
cancelAutoSlide: Ht
|
|
2884
|
+
})), on;
|
|
2885
2885
|
}
|
|
2886
|
-
var
|
|
2887
|
-
|
|
2886
|
+
var st = ot, ct = [];
|
|
2887
|
+
st.initialize = (e) => {
|
|
2888
2888
|
let t = document.querySelector(".reveal");
|
|
2889
2889
|
if (!(t instanceof HTMLElement)) throw Error("Unable to find presentation root (<div class=\"reveal\">).");
|
|
2890
|
-
return Object.assign(
|
|
2890
|
+
return Object.assign(st, new ot(t, e)), ct.map((e) => e(st)), st.initialize();
|
|
2891
2891
|
}, [
|
|
2892
2892
|
"configure",
|
|
2893
2893
|
"on",
|
|
@@ -2896,14 +2896,14 @@ ot.initialize = (e) => {
|
|
|
2896
2896
|
"removeEventListener",
|
|
2897
2897
|
"registerPlugin"
|
|
2898
2898
|
].forEach((e) => {
|
|
2899
|
-
|
|
2900
|
-
|
|
2899
|
+
st[e] = (...t) => {
|
|
2900
|
+
ct.push((n) => n[e].call(null, ...t));
|
|
2901
2901
|
};
|
|
2902
|
-
}),
|
|
2902
|
+
}), st.isReady = () => !1, st.VERSION = at;
|
|
2903
2903
|
//#endregion
|
|
2904
2904
|
//#region ../node_modules/.pnpm/@revealjs+react@0.2.2_react-dom@19.3.1_react@19.3.1__react@19.3.1_reveal.js@6.0.2/node_modules/@revealjs/react/dist/index.mjs
|
|
2905
|
-
var
|
|
2906
|
-
function
|
|
2905
|
+
var W = E(), lt = (0, M.createContext)(null), ut = [];
|
|
2906
|
+
function dt(e, t) {
|
|
2907
2907
|
if (e === t) return !1;
|
|
2908
2908
|
if (!e || !t) return e !== t;
|
|
2909
2909
|
let n = Object.keys(e), r = Object.keys(t);
|
|
@@ -2911,29 +2911,29 @@ function ut(e, t) {
|
|
|
2911
2911
|
for (let r of n) if (!(r in t) || e[r] !== t[r]) return !0;
|
|
2912
2912
|
return !1;
|
|
2913
2913
|
}
|
|
2914
|
-
function
|
|
2914
|
+
function ft(e, t) {
|
|
2915
2915
|
e && (typeof e == "function" ? e(t) : e.current = t);
|
|
2916
2916
|
}
|
|
2917
|
-
function
|
|
2917
|
+
function pt(e) {
|
|
2918
2918
|
return e.tagName === "SECTION";
|
|
2919
2919
|
}
|
|
2920
|
-
function
|
|
2921
|
-
return Array.from(e.children).filter(
|
|
2920
|
+
function mt(e, t, n) {
|
|
2921
|
+
return Array.from(e.children).filter(pt).map((e) => {
|
|
2922
2922
|
let r = t.get(e);
|
|
2923
2923
|
r === void 0 && (r = n.current++, t.set(e, r));
|
|
2924
|
-
let i =
|
|
2924
|
+
let i = mt(e, t, n);
|
|
2925
2925
|
return i.length > 0 ? [r, i] : r;
|
|
2926
2926
|
});
|
|
2927
2927
|
}
|
|
2928
|
-
function
|
|
2929
|
-
return e ? JSON.stringify(
|
|
2928
|
+
function ht(e, t, n) {
|
|
2929
|
+
return e ? JSON.stringify(mt(e, t, n)) : "[]";
|
|
2930
2930
|
}
|
|
2931
|
-
function
|
|
2932
|
-
let _ = (0,
|
|
2933
|
-
return (0,
|
|
2931
|
+
function gt({ config: e, plugins: t = ut, onReady: n, onSync: r, onSlideSync: i, onSlideChange: a, onSlideTransitionEnd: o, onFragmentShown: s, onFragmentHidden: c, onOverviewShown: l, onOverviewHidden: u, onPaused: d, onResumed: f, deckRef: p, className: m, style: h, children: g }) {
|
|
2932
|
+
let _ = (0, M.useRef)(null), v = (0, M.useRef)(null), y = (0, M.useRef)(null), [b, x] = (0, M.useState)(null), S = (0, M.useRef)(t), C = (0, M.useRef)(!1), w = (0, M.useRef)(e), T = (0, M.useRef)(null), E = (0, M.useRef)(/* @__PURE__ */ new WeakMap()), D = (0, M.useRef)(1), O = (0, M.useRef)(!1), k = (0, M.useRef)(0);
|
|
2933
|
+
return (0, M.useEffect)(() => {
|
|
2934
2934
|
if (O.current = !0, k.current += 1, y.current) y.current.isReady() && x(y.current);
|
|
2935
2935
|
else {
|
|
2936
|
-
let t = new
|
|
2936
|
+
let t = new st(_.current, {
|
|
2937
2937
|
...e,
|
|
2938
2938
|
plugins: S.current
|
|
2939
2939
|
});
|
|
@@ -2955,7 +2955,7 @@ function ht({ config: e, plugins: t = lt, onReady: n, onSync: r, onSlideSync: i,
|
|
|
2955
2955
|
}
|
|
2956
2956
|
});
|
|
2957
2957
|
};
|
|
2958
|
-
}, []), (0,
|
|
2958
|
+
}, []), (0, M.useEffect)(() => (ft(p, b), () => ft(p, null)), [p, b]), (0, M.useEffect)(() => {
|
|
2959
2959
|
if (!b) return;
|
|
2960
2960
|
let e = [
|
|
2961
2961
|
["sync", r],
|
|
@@ -2985,20 +2985,20 @@ function ht({ config: e, plugins: t = lt, onReady: n, onSync: r, onSlideSync: i,
|
|
|
2985
2985
|
u,
|
|
2986
2986
|
d,
|
|
2987
2987
|
f
|
|
2988
|
-
]), (0,
|
|
2989
|
-
b && y.current?.isReady() &&
|
|
2990
|
-
}, [b, e]), (0,
|
|
2988
|
+
]), (0, M.useLayoutEffect)(() => {
|
|
2989
|
+
b && y.current?.isReady() && dt(w.current, e) && (C.current = !0, y.current.configure(e ?? {}), w.current = e);
|
|
2990
|
+
}, [b, e]), (0, M.useLayoutEffect)(() => {
|
|
2991
2991
|
let e = C.current;
|
|
2992
2992
|
C.current = !1;
|
|
2993
|
-
let t =
|
|
2993
|
+
let t = ht(v.current, E.current, D);
|
|
2994
2994
|
e ? T.current = t : y.current?.isReady() && T.current !== t && (y.current.sync(), T.current = t);
|
|
2995
|
-
}), /* @__PURE__ */ (0,
|
|
2995
|
+
}), /* @__PURE__ */ (0, W.jsx)(lt.Provider, {
|
|
2996
2996
|
value: b,
|
|
2997
|
-
children: /* @__PURE__ */ (0,
|
|
2997
|
+
children: /* @__PURE__ */ (0, W.jsx)("div", {
|
|
2998
2998
|
className: m ? `reveal ${m}` : "reveal",
|
|
2999
2999
|
style: h,
|
|
3000
3000
|
ref: _,
|
|
3001
|
-
children: /* @__PURE__ */ (0,
|
|
3001
|
+
children: /* @__PURE__ */ (0, W.jsx)("div", {
|
|
3002
3002
|
className: "slides",
|
|
3003
3003
|
ref: v,
|
|
3004
3004
|
children: g
|
|
@@ -3006,7 +3006,7 @@ function ht({ config: e, plugins: t = lt, onReady: n, onSync: r, onSlideSync: i,
|
|
|
3006
3006
|
})
|
|
3007
3007
|
});
|
|
3008
3008
|
}
|
|
3009
|
-
var
|
|
3009
|
+
var _t = {
|
|
3010
3010
|
background: "data-background",
|
|
3011
3011
|
backgroundImage: "data-background-image",
|
|
3012
3012
|
backgroundVideo: "data-background-video",
|
|
@@ -3035,12 +3035,12 @@ var gt = {
|
|
|
3035
3035
|
backgroundInteractive: "data-background-interactive",
|
|
3036
3036
|
preload: "data-preload"
|
|
3037
3037
|
};
|
|
3038
|
-
function
|
|
3038
|
+
function vt(e) {
|
|
3039
3039
|
return JSON.stringify(Object.entries(e).filter(([e]) => e.startsWith("data-")).sort(([e], [t]) => e.localeCompare(t)));
|
|
3040
3040
|
}
|
|
3041
|
-
function
|
|
3041
|
+
function G(e, t) {
|
|
3042
3042
|
let n = { ...e }, r = n;
|
|
3043
|
-
for (let [e, n] of Object.entries(
|
|
3043
|
+
for (let [e, n] of Object.entries(_t)) {
|
|
3044
3044
|
if (r[n] !== void 0) continue;
|
|
3045
3045
|
let i = t[e];
|
|
3046
3046
|
if (i !== void 0) {
|
|
@@ -3053,8 +3053,8 @@ function K(e, t) {
|
|
|
3053
3053
|
}
|
|
3054
3054
|
return n;
|
|
3055
3055
|
}
|
|
3056
|
-
function
|
|
3057
|
-
let k = (0,
|
|
3056
|
+
function yt({ children: e, background: t, backgroundImage: n, backgroundVideo: r, backgroundVideoLoop: i, backgroundVideoMuted: a, backgroundIframe: o, backgroundColor: s, backgroundGradient: c, backgroundSize: l, backgroundPosition: u, backgroundRepeat: d, backgroundOpacity: f, backgroundTransition: p, visibility: m, autoAnimate: h, autoAnimateId: g, autoAnimateRestart: _, autoAnimateUnmatched: v, autoAnimateEasing: y, autoAnimateDuration: b, autoAnimateDelay: x, transition: S, transitionSpeed: C, autoSlide: w, notes: T, backgroundInteractive: E, preload: D, ...O }) {
|
|
3057
|
+
let k = (0, M.useContext)(lt), ee = (0, M.useRef)(null), A = (0, M.useRef)(null), te = (0, M.useRef)(null), ne = G(O, {
|
|
3058
3058
|
background: t,
|
|
3059
3059
|
backgroundImage: n,
|
|
3060
3060
|
backgroundVideo: r,
|
|
@@ -3082,31 +3082,31 @@ function vt({ children: e, background: t, backgroundImage: n, backgroundVideo: r
|
|
|
3082
3082
|
notes: T,
|
|
3083
3083
|
backgroundInteractive: E,
|
|
3084
3084
|
preload: D
|
|
3085
|
-
}),
|
|
3086
|
-
return (0,
|
|
3087
|
-
let e =
|
|
3085
|
+
}), re = vt(ne);
|
|
3086
|
+
return (0, M.useLayoutEffect)(() => {
|
|
3087
|
+
let e = ee.current;
|
|
3088
3088
|
if (!k || !e || typeof k.syncSlide != "function") return;
|
|
3089
|
-
if (
|
|
3090
|
-
|
|
3089
|
+
if (A.current !== k) {
|
|
3090
|
+
A.current = k, te.current = re;
|
|
3091
3091
|
return;
|
|
3092
3092
|
}
|
|
3093
|
-
if (
|
|
3094
|
-
let t =
|
|
3095
|
-
t && n || (k.syncSlide(e),
|
|
3096
|
-
}, [k,
|
|
3097
|
-
ref:
|
|
3098
|
-
...
|
|
3093
|
+
if (re === "[]") return;
|
|
3094
|
+
let t = A.current === k, n = te.current === re;
|
|
3095
|
+
t && n || (k.syncSlide(e), A.current = k, te.current = re);
|
|
3096
|
+
}, [k, re]), /* @__PURE__ */ (0, W.jsx)("section", {
|
|
3097
|
+
ref: ee,
|
|
3098
|
+
...ne,
|
|
3099
3099
|
children: e
|
|
3100
3100
|
});
|
|
3101
3101
|
}
|
|
3102
|
-
function
|
|
3103
|
-
return /* @__PURE__ */ (0,
|
|
3102
|
+
function bt({ className: e, style: t, children: n }) {
|
|
3103
|
+
return /* @__PURE__ */ (0, W.jsx)("section", {
|
|
3104
3104
|
className: e,
|
|
3105
3105
|
style: t,
|
|
3106
3106
|
children: n
|
|
3107
3107
|
});
|
|
3108
3108
|
}
|
|
3109
|
-
function
|
|
3109
|
+
function xt() {
|
|
3110
3110
|
return {
|
|
3111
3111
|
async: !1,
|
|
3112
3112
|
breaks: !1,
|
|
@@ -3120,28 +3120,28 @@ function bt() {
|
|
|
3120
3120
|
walkTokens: null
|
|
3121
3121
|
};
|
|
3122
3122
|
}
|
|
3123
|
-
var
|
|
3124
|
-
function
|
|
3125
|
-
|
|
3123
|
+
var St = xt();
|
|
3124
|
+
function Ct(e) {
|
|
3125
|
+
St = e;
|
|
3126
3126
|
}
|
|
3127
|
-
var
|
|
3128
|
-
function
|
|
3127
|
+
var K = { exec: () => null };
|
|
3128
|
+
function q(e, t = "") {
|
|
3129
3129
|
let n = typeof e == "string" ? e : e.source, r = {
|
|
3130
3130
|
replace: (e, t) => {
|
|
3131
3131
|
let i = typeof t == "string" ? t : t.source;
|
|
3132
|
-
return i = i.replace(
|
|
3132
|
+
return i = i.replace(J.caret, "$1"), n = n.replace(e, i), r;
|
|
3133
3133
|
},
|
|
3134
3134
|
getRegex: () => new RegExp(n, t)
|
|
3135
3135
|
};
|
|
3136
3136
|
return r;
|
|
3137
3137
|
}
|
|
3138
|
-
var
|
|
3138
|
+
var wt = (() => {
|
|
3139
3139
|
try {
|
|
3140
3140
|
return !0;
|
|
3141
3141
|
} catch {
|
|
3142
3142
|
return !1;
|
|
3143
3143
|
}
|
|
3144
|
-
})(),
|
|
3144
|
+
})(), J = {
|
|
3145
3145
|
codeRemoveIndent: /^(?: {1,4}| {0,3}\t)/gm,
|
|
3146
3146
|
outputLinkReplace: /\\([\[\]])/g,
|
|
3147
3147
|
indentCodeCompensation: /^(\s+)(?:```)/,
|
|
@@ -3198,117 +3198,117 @@ var Ct = (() => {
|
|
|
3198
3198
|
headingBeginRegex: (e) => RegExp(`^ {0,${Math.min(3, e - 1)}}#`),
|
|
3199
3199
|
htmlBeginRegex: (e) => RegExp(`^ {0,${Math.min(3, e - 1)}}<(?:[a-z].*>|!--)`, "i"),
|
|
3200
3200
|
blockquoteBeginRegex: (e) => RegExp(`^ {0,${Math.min(3, e - 1)}}>`)
|
|
3201
|
-
},
|
|
3202
|
-
blockquote:
|
|
3203
|
-
code:
|
|
3204
|
-
def:
|
|
3205
|
-
fences:
|
|
3206
|
-
heading:
|
|
3207
|
-
hr:
|
|
3208
|
-
html:
|
|
3209
|
-
lheading: At,
|
|
3210
|
-
list: It,
|
|
3211
|
-
newline: wt,
|
|
3212
|
-
paragraph: Bt,
|
|
3213
|
-
table: q,
|
|
3214
|
-
text: Nt
|
|
3215
|
-
}, Ht = J("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", Et).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", Lt).getRegex(), Ut = {
|
|
3216
|
-
...Vt,
|
|
3201
|
+
}, Tt = /^(?:[ \t]*(?:\n|$))+/, Y = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, Et = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, Dt = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, Ot = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, kt = / {0,3}(?:[*+-]|\d{1,9}[.)])/, At = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, jt = q(At).replace(/bull/g, kt).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex(), Mt = q(At).replace(/bull/g, kt).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(), Nt = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, Pt = /^[^\n]+/, Ft = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, It = q(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", Ft).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), Lt = q(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, kt).getRegex(), Rt = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", zt = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, Bt = q("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))", "i").replace("comment", zt).replace("tag", Rt).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), Vt = q(Nt).replace("hr", Dt).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", Rt).getRegex(), Ht = {
|
|
3202
|
+
blockquote: q(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", Vt).getRegex(),
|
|
3203
|
+
code: Y,
|
|
3204
|
+
def: It,
|
|
3205
|
+
fences: Et,
|
|
3206
|
+
heading: Ot,
|
|
3207
|
+
hr: Dt,
|
|
3208
|
+
html: Bt,
|
|
3217
3209
|
lheading: jt,
|
|
3218
|
-
|
|
3219
|
-
|
|
3220
|
-
|
|
3221
|
-
|
|
3222
|
-
|
|
3210
|
+
list: Lt,
|
|
3211
|
+
newline: Tt,
|
|
3212
|
+
paragraph: Vt,
|
|
3213
|
+
table: K,
|
|
3214
|
+
text: Pt
|
|
3215
|
+
}, Ut = q("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", Dt).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", Rt).getRegex(), Wt = {
|
|
3216
|
+
...Ht,
|
|
3217
|
+
lheading: Mt,
|
|
3218
|
+
table: Ut,
|
|
3219
|
+
paragraph: q(Nt).replace("hr", Dt).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", Ut).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", Rt).getRegex()
|
|
3220
|
+
}, Gt = {
|
|
3221
|
+
...Ht,
|
|
3222
|
+
html: q("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment", zt).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),
|
|
3223
3223
|
def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,
|
|
3224
3224
|
heading: /^(#{1,6})(.*)(?:\n+|$)/,
|
|
3225
|
-
fences:
|
|
3225
|
+
fences: K,
|
|
3226
3226
|
lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,
|
|
3227
|
-
paragraph:
|
|
3228
|
-
},
|
|
3229
|
-
_backpedal:
|
|
3230
|
-
anyPunctuation:
|
|
3231
|
-
autolink:
|
|
3232
|
-
blockSkip:
|
|
3233
|
-
br:
|
|
3234
|
-
code:
|
|
3235
|
-
del:
|
|
3236
|
-
delLDelim:
|
|
3237
|
-
delRDelim:
|
|
3238
|
-
emStrongLDelim: an,
|
|
3239
|
-
emStrongRDelimAst: cn,
|
|
3240
|
-
emStrongRDelimUnd: un,
|
|
3241
|
-
escape: Gt,
|
|
3242
|
-
link: vn,
|
|
3243
|
-
nolink: bn,
|
|
3244
|
-
punctuation: Qt,
|
|
3245
|
-
reflink: yn,
|
|
3246
|
-
reflinkSearch: xn,
|
|
3247
|
-
tag: gn,
|
|
3248
|
-
text: Jt,
|
|
3249
|
-
url: q
|
|
3250
|
-
}, wn = {
|
|
3251
|
-
...Cn,
|
|
3252
|
-
link: J(/^!?\[(label)\]\((.*?)\)/).replace("label", _n).getRegex(),
|
|
3253
|
-
reflink: J(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", _n).getRegex()
|
|
3254
|
-
}, Tn = {
|
|
3255
|
-
...Cn,
|
|
3256
|
-
emStrongRDelimAst: ln,
|
|
3227
|
+
paragraph: q(Nt).replace("hr", Dt).replace("heading", " *#{1,6} *[^\n]").replace("lheading", jt).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex()
|
|
3228
|
+
}, Kt = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, qt = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, Jt = /^( {2,}|\\)\n(?!\s*$)/, Yt = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, Xt = /[\p{P}\p{S}]/u, Zt = /[\s\p{P}\p{S}]/u, Qt = /[^\s\p{P}\p{S}]/u, $t = q(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, Zt).getRegex(), en = /(?!~)[\p{P}\p{S}]/u, tn = /(?!~)[\s\p{P}\p{S}]/u, nn = /(?:[^\s\p{P}\p{S}]|~)/u, rn = q(/link|precode-code|html/, "g").replace("link", /\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-", wt ? "(?<!`)()" : "(^^|[^`])").replace("code", /(?<b>`+)[^`]+\k<b>(?!`)/).replace("html", /<(?! )[^<>]*?>/).getRegex(), an = /^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/, on = q(an, "u").replace(/punct/g, Xt).getRegex(), sn = q(an, "u").replace(/punct/g, en).getRegex(), cn = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", ln = q(cn, "gu").replace(/notPunctSpace/g, Qt).replace(/punctSpace/g, Zt).replace(/punct/g, Xt).getRegex(), un = q(cn, "gu").replace(/notPunctSpace/g, nn).replace(/punctSpace/g, tn).replace(/punct/g, en).getRegex(), dn = q("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, Qt).replace(/punctSpace/g, Zt).replace(/punct/g, Xt).getRegex(), fn = q(/^~~?(?:((?!~)punct)|[^\s~])/, "u").replace(/punct/g, Xt).getRegex(), pn = q("^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)", "gu").replace(/notPunctSpace/g, Qt).replace(/punctSpace/g, Zt).replace(/punct/g, Xt).getRegex(), mn = q(/\\(punct)/, "gu").replace(/punct/g, Xt).getRegex(), hn = q(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), gn = q(zt).replace("(?:-->|$)", "-->").getRegex(), _n = q("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", gn).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), vn = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/, yn = q(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label", vn).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), bn = q(/^!?\[(label)\]\[(ref)\]/).replace("label", vn).replace("ref", Ft).getRegex(), xn = q(/^!?\[(ref)\](?:\[\])?/).replace("ref", Ft).getRegex(), Sn = q("reflink|nolink(?!\\()", "g").replace("reflink", bn).replace("nolink", xn).getRegex(), Cn = /[hH][tT][tT][pP][sS]?|[fF][tT][pP]/, wn = {
|
|
3229
|
+
_backpedal: K,
|
|
3230
|
+
anyPunctuation: mn,
|
|
3231
|
+
autolink: hn,
|
|
3232
|
+
blockSkip: rn,
|
|
3233
|
+
br: Jt,
|
|
3234
|
+
code: qt,
|
|
3235
|
+
del: K,
|
|
3236
|
+
delLDelim: K,
|
|
3237
|
+
delRDelim: K,
|
|
3257
3238
|
emStrongLDelim: on,
|
|
3258
|
-
|
|
3259
|
-
|
|
3260
|
-
|
|
3239
|
+
emStrongRDelimAst: ln,
|
|
3240
|
+
emStrongRDelimUnd: dn,
|
|
3241
|
+
escape: Kt,
|
|
3242
|
+
link: yn,
|
|
3243
|
+
nolink: xn,
|
|
3244
|
+
punctuation: $t,
|
|
3245
|
+
reflink: bn,
|
|
3246
|
+
reflinkSearch: Sn,
|
|
3247
|
+
tag: _n,
|
|
3248
|
+
text: Yt,
|
|
3249
|
+
url: K
|
|
3250
|
+
}, Tn = {
|
|
3251
|
+
...wn,
|
|
3252
|
+
link: q(/^!?\[(label)\]\((.*?)\)/).replace("label", vn).getRegex(),
|
|
3253
|
+
reflink: q(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", vn).getRegex()
|
|
3254
|
+
}, En = {
|
|
3255
|
+
...wn,
|
|
3256
|
+
emStrongRDelimAst: un,
|
|
3257
|
+
emStrongLDelim: sn,
|
|
3258
|
+
delLDelim: fn,
|
|
3259
|
+
delRDelim: pn,
|
|
3260
|
+
url: q(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol", Cn).replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),
|
|
3261
3261
|
_backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,
|
|
3262
3262
|
del: /^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,
|
|
3263
|
-
text:
|
|
3264
|
-
}, En = {
|
|
3265
|
-
...Tn,
|
|
3266
|
-
br: J(qt).replace("{2,}", "*").getRegex(),
|
|
3267
|
-
text: J(Tn.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex()
|
|
3263
|
+
text: q(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol", Cn).getRegex()
|
|
3268
3264
|
}, Dn = {
|
|
3269
|
-
|
|
3270
|
-
|
|
3271
|
-
|
|
3265
|
+
...En,
|
|
3266
|
+
br: q(Jt).replace("{2,}", "*").getRegex(),
|
|
3267
|
+
text: q(En.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex()
|
|
3272
3268
|
}, On = {
|
|
3273
|
-
normal:
|
|
3274
|
-
gfm:
|
|
3275
|
-
|
|
3276
|
-
pedantic: wn
|
|
3269
|
+
normal: Ht,
|
|
3270
|
+
gfm: Wt,
|
|
3271
|
+
pedantic: Gt
|
|
3277
3272
|
}, kn = {
|
|
3273
|
+
normal: wn,
|
|
3274
|
+
gfm: En,
|
|
3275
|
+
breaks: Dn,
|
|
3276
|
+
pedantic: Tn
|
|
3277
|
+
}, An = {
|
|
3278
3278
|
"&": "&",
|
|
3279
3279
|
"<": "<",
|
|
3280
3280
|
">": ">",
|
|
3281
3281
|
"\"": """,
|
|
3282
3282
|
"'": "'"
|
|
3283
|
-
},
|
|
3284
|
-
function
|
|
3283
|
+
}, jn = (e) => An[e];
|
|
3284
|
+
function Mn(e, t) {
|
|
3285
3285
|
if (t) {
|
|
3286
|
-
if (
|
|
3287
|
-
} else if (
|
|
3286
|
+
if (J.escapeTest.test(e)) return e.replace(J.escapeReplace, jn);
|
|
3287
|
+
} else if (J.escapeTestNoEncode.test(e)) return e.replace(J.escapeReplaceNoEncode, jn);
|
|
3288
3288
|
return e;
|
|
3289
3289
|
}
|
|
3290
|
-
function
|
|
3290
|
+
function Nn(e) {
|
|
3291
3291
|
try {
|
|
3292
|
-
e = encodeURI(e).replace(
|
|
3292
|
+
e = encodeURI(e).replace(J.percentDecode, "%");
|
|
3293
3293
|
} catch {
|
|
3294
3294
|
return null;
|
|
3295
3295
|
}
|
|
3296
3296
|
return e;
|
|
3297
3297
|
}
|
|
3298
|
-
function
|
|
3299
|
-
let n = e.replace(
|
|
3298
|
+
function Pn(e, t) {
|
|
3299
|
+
let n = e.replace(J.findPipe, (e, t, n) => {
|
|
3300
3300
|
let r = !1, i = t;
|
|
3301
3301
|
for (; --i >= 0 && n[i] === "\\";) r = !r;
|
|
3302
3302
|
return r ? "|" : " |";
|
|
3303
|
-
}).split(
|
|
3303
|
+
}).split(J.splitPipe), r = 0;
|
|
3304
3304
|
if (n[0].trim() || n.shift(), n.length > 0 && !n.at(-1)?.trim() && n.pop(), t) {
|
|
3305
3305
|
if (n.length > t) n.splice(t);
|
|
3306
3306
|
else for (; n.length < t;) n.push("");
|
|
3307
3307
|
}
|
|
3308
|
-
for (; r < n.length; r++) n[r] = n[r].trim().replace(
|
|
3308
|
+
for (; r < n.length; r++) n[r] = n[r].trim().replace(J.slashPipe, "|");
|
|
3309
3309
|
return n;
|
|
3310
3310
|
}
|
|
3311
|
-
function
|
|
3311
|
+
function Fn(e, t, n) {
|
|
3312
3312
|
let r = e.length;
|
|
3313
3313
|
if (r === 0) return "";
|
|
3314
3314
|
let i = 0;
|
|
@@ -3320,7 +3320,7 @@ function Pn(e, t, n) {
|
|
|
3320
3320
|
}
|
|
3321
3321
|
return e.slice(0, r - i);
|
|
3322
3322
|
}
|
|
3323
|
-
function
|
|
3323
|
+
function In(e, t) {
|
|
3324
3324
|
if (e.indexOf(t[1]) === -1) return -1;
|
|
3325
3325
|
let n = 0;
|
|
3326
3326
|
for (let r = 0; r < e.length; r++) if (e[r] === "\\") r++;
|
|
@@ -3328,7 +3328,7 @@ function Fn(e, t) {
|
|
|
3328
3328
|
else if (e[r] === t[1] && (n--, n < 0)) return r;
|
|
3329
3329
|
return n > 0 ? -2 : -1;
|
|
3330
3330
|
}
|
|
3331
|
-
function
|
|
3331
|
+
function Ln(e, t = 0) {
|
|
3332
3332
|
let n = t, r = "";
|
|
3333
3333
|
for (let t of e) if (t === " ") {
|
|
3334
3334
|
let e = 4 - n % 4;
|
|
@@ -3336,7 +3336,7 @@ function In(e, t = 0) {
|
|
|
3336
3336
|
} else r += t, n++;
|
|
3337
3337
|
return r;
|
|
3338
3338
|
}
|
|
3339
|
-
function
|
|
3339
|
+
function Rn(e, t, n, r, i) {
|
|
3340
3340
|
let a = t.href, o = t.title || null, s = e[1].replace(i.other.outputLinkReplace, "$1");
|
|
3341
3341
|
r.state.inLink = !0;
|
|
3342
3342
|
let c = {
|
|
@@ -3349,7 +3349,7 @@ function Ln(e, t, n, r, i) {
|
|
|
3349
3349
|
};
|
|
3350
3350
|
return r.state.inLink = !1, c;
|
|
3351
3351
|
}
|
|
3352
|
-
function
|
|
3352
|
+
function zn(e, t, n) {
|
|
3353
3353
|
let r = e.match(n.other.indentCodeCompensation);
|
|
3354
3354
|
if (r === null) return t;
|
|
3355
3355
|
let i = r[1];
|
|
@@ -3360,12 +3360,12 @@ function Rn(e, t, n) {
|
|
|
3360
3360
|
return r.length >= i.length ? e.slice(i.length) : e;
|
|
3361
3361
|
}).join("\n");
|
|
3362
3362
|
}
|
|
3363
|
-
var
|
|
3363
|
+
var Bn = class {
|
|
3364
3364
|
options;
|
|
3365
3365
|
rules;
|
|
3366
3366
|
lexer;
|
|
3367
3367
|
constructor(e) {
|
|
3368
|
-
this.options = e ||
|
|
3368
|
+
this.options = e || St;
|
|
3369
3369
|
}
|
|
3370
3370
|
space(e) {
|
|
3371
3371
|
let t = this.rules.block.newline.exec(e);
|
|
@@ -3382,14 +3382,14 @@ var zn = class {
|
|
|
3382
3382
|
type: "code",
|
|
3383
3383
|
raw: t[0],
|
|
3384
3384
|
codeBlockStyle: "indented",
|
|
3385
|
-
text: this.options.pedantic ? e :
|
|
3385
|
+
text: this.options.pedantic ? e : Fn(e, "\n")
|
|
3386
3386
|
};
|
|
3387
3387
|
}
|
|
3388
3388
|
}
|
|
3389
3389
|
fences(e) {
|
|
3390
3390
|
let t = this.rules.block.fences.exec(e);
|
|
3391
3391
|
if (t) {
|
|
3392
|
-
let e = t[0], n =
|
|
3392
|
+
let e = t[0], n = zn(e, t[3] || "", this.rules);
|
|
3393
3393
|
return {
|
|
3394
3394
|
type: "code",
|
|
3395
3395
|
raw: e,
|
|
@@ -3403,7 +3403,7 @@ var zn = class {
|
|
|
3403
3403
|
if (t) {
|
|
3404
3404
|
let e = t[2].trim();
|
|
3405
3405
|
if (this.rules.other.endingHash.test(e)) {
|
|
3406
|
-
let t =
|
|
3406
|
+
let t = Fn(e, "#");
|
|
3407
3407
|
(this.options.pedantic || !t || this.rules.other.endingSpaceChar.test(t)) && (e = t.trim());
|
|
3408
3408
|
}
|
|
3409
3409
|
return {
|
|
@@ -3419,13 +3419,13 @@ var zn = class {
|
|
|
3419
3419
|
let t = this.rules.block.hr.exec(e);
|
|
3420
3420
|
if (t) return {
|
|
3421
3421
|
type: "hr",
|
|
3422
|
-
raw:
|
|
3422
|
+
raw: Fn(t[0], "\n")
|
|
3423
3423
|
};
|
|
3424
3424
|
}
|
|
3425
3425
|
blockquote(e) {
|
|
3426
3426
|
let t = this.rules.block.blockquote.exec(e);
|
|
3427
3427
|
if (t) {
|
|
3428
|
-
let e =
|
|
3428
|
+
let e = Fn(t[0], "\n").split("\n"), n = "", r = "", i = [];
|
|
3429
3429
|
for (; e.length > 0;) {
|
|
3430
3430
|
let t = !1, a = [], o = 0;
|
|
3431
3431
|
for (; o < e.length; o++) if (this.rules.other.blockquoteStart.test(e[o])) a.push(e[o]), t = !0;
|
|
@@ -3475,7 +3475,7 @@ ${c}` : c;
|
|
|
3475
3475
|
let n = !1, r = "", s = "";
|
|
3476
3476
|
if (!(t = a.exec(e)) || this.rules.block.hr.test(e)) break;
|
|
3477
3477
|
r = t[0], e = e.substring(r.length);
|
|
3478
|
-
let c =
|
|
3478
|
+
let c = Ln(t[2].split("\n", 1)[0], t[1].length), l = e.split("\n", 1)[0], u = !c.trim(), d = 0;
|
|
3479
3479
|
if (this.options.pedantic ? (d = 2, s = c.trimStart()) : u ? d = t[1].length + 1 : (d = c.search(this.rules.other.nonSpaceChar), d = d > 4 ? 1 : d, s = c.slice(d), d += t[1].length), u && this.rules.other.blankLine.test(l) && (r += l + "\n", e = e.substring(l.length + 1), n = !0), !n) {
|
|
3480
3480
|
let t = this.rules.other.nextBulletRegex(d), n = this.rules.other.hrRegex(d), i = this.rules.other.fencesBeginRegex(d), a = this.rules.other.headingBeginRegex(d), o = this.rules.other.htmlBeginRegex(d), f = this.rules.other.blockquoteBeginRegex(d);
|
|
3481
3481
|
for (; e;) {
|
|
@@ -3564,7 +3564,7 @@ ${c}` : c;
|
|
|
3564
3564
|
table(e) {
|
|
3565
3565
|
let t = this.rules.block.table.exec(e);
|
|
3566
3566
|
if (!t || !this.rules.other.tableDelimiter.test(t[2])) return;
|
|
3567
|
-
let n =
|
|
3567
|
+
let n = Pn(t[1]), r = t[2].replace(this.rules.other.tableAlignChars, "").split("|"), i = t[3]?.trim() ? t[3].replace(this.rules.other.tableRowBlankLine, "").split("\n") : [], a = {
|
|
3568
3568
|
type: "table",
|
|
3569
3569
|
raw: t[0],
|
|
3570
3570
|
header: [],
|
|
@@ -3579,7 +3579,7 @@ ${c}` : c;
|
|
|
3579
3579
|
header: !0,
|
|
3580
3580
|
align: a.align[e]
|
|
3581
3581
|
});
|
|
3582
|
-
for (let e of i) a.rows.push(
|
|
3582
|
+
for (let e of i) a.rows.push(Pn(e, a.header.length).map((e, t) => ({
|
|
3583
3583
|
text: e,
|
|
3584
3584
|
tokens: this.lexer.inline(e),
|
|
3585
3585
|
header: !1,
|
|
@@ -3647,10 +3647,10 @@ ${c}` : c;
|
|
|
3647
3647
|
let e = t[2].trim();
|
|
3648
3648
|
if (!this.options.pedantic && this.rules.other.startAngleBracket.test(e)) {
|
|
3649
3649
|
if (!this.rules.other.endAngleBracket.test(e)) return;
|
|
3650
|
-
let t =
|
|
3650
|
+
let t = Fn(e.slice(0, -1), "\\");
|
|
3651
3651
|
if ((e.length - t.length) % 2 == 0) return;
|
|
3652
3652
|
} else {
|
|
3653
|
-
let e =
|
|
3653
|
+
let e = In(t[2], "()");
|
|
3654
3654
|
if (e === -2) return;
|
|
3655
3655
|
if (e > -1) {
|
|
3656
3656
|
let n = (t[0].indexOf("!") === 0 ? 5 : 4) + t[1].length + e;
|
|
@@ -3662,7 +3662,7 @@ ${c}` : c;
|
|
|
3662
3662
|
let e = this.rules.other.pedanticHrefTitle.exec(n);
|
|
3663
3663
|
e && (n = e[1], r = e[3]);
|
|
3664
3664
|
} else r = t[3] ? t[3].slice(1, -1) : "";
|
|
3665
|
-
return n = n.trim(), this.rules.other.startAngleBracket.test(n) && (n = this.options.pedantic && !this.rules.other.endAngleBracket.test(e) ? n.slice(1) : n.slice(1, -1)),
|
|
3665
|
+
return n = n.trim(), this.rules.other.startAngleBracket.test(n) && (n = this.options.pedantic && !this.rules.other.endAngleBracket.test(e) ? n.slice(1) : n.slice(1, -1)), Rn(t, {
|
|
3666
3666
|
href: n && n.replace(this.rules.inline.anyPunctuation, "$1"),
|
|
3667
3667
|
title: r && r.replace(this.rules.inline.anyPunctuation, "$1")
|
|
3668
3668
|
}, t[0], this.lexer, this.rules);
|
|
@@ -3680,7 +3680,7 @@ ${c}` : c;
|
|
|
3680
3680
|
text: e
|
|
3681
3681
|
};
|
|
3682
3682
|
}
|
|
3683
|
-
return
|
|
3683
|
+
return Rn(n, e, n[0], this.lexer, this.rules);
|
|
3684
3684
|
}
|
|
3685
3685
|
}
|
|
3686
3686
|
emStrong(e, t, n = "") {
|
|
@@ -3813,29 +3813,29 @@ ${c}` : c;
|
|
|
3813
3813
|
};
|
|
3814
3814
|
}
|
|
3815
3815
|
}
|
|
3816
|
-
},
|
|
3816
|
+
}, Vn = class e {
|
|
3817
3817
|
tokens;
|
|
3818
3818
|
options;
|
|
3819
3819
|
state;
|
|
3820
3820
|
inlineQueue;
|
|
3821
3821
|
tokenizer;
|
|
3822
3822
|
constructor(e) {
|
|
3823
|
-
this.tokens = [], this.tokens.links = Object.create(null), this.options = e ||
|
|
3823
|
+
this.tokens = [], this.tokens.links = Object.create(null), this.options = e || St, this.options.tokenizer = this.options.tokenizer || new Bn(), this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = {
|
|
3824
3824
|
inLink: !1,
|
|
3825
3825
|
inRawBlock: !1,
|
|
3826
3826
|
top: !0
|
|
3827
3827
|
};
|
|
3828
3828
|
let t = {
|
|
3829
|
-
other:
|
|
3830
|
-
block:
|
|
3831
|
-
inline:
|
|
3829
|
+
other: J,
|
|
3830
|
+
block: On.normal,
|
|
3831
|
+
inline: kn.normal
|
|
3832
3832
|
};
|
|
3833
|
-
this.options.pedantic ? (t.block =
|
|
3833
|
+
this.options.pedantic ? (t.block = On.pedantic, t.inline = kn.pedantic) : this.options.gfm && (t.block = On.gfm, t.inline = this.options.breaks ? kn.breaks : kn.gfm), this.tokenizer.rules = t;
|
|
3834
3834
|
}
|
|
3835
3835
|
static get rules() {
|
|
3836
3836
|
return {
|
|
3837
|
-
block:
|
|
3838
|
-
inline:
|
|
3837
|
+
block: On,
|
|
3838
|
+
inline: kn
|
|
3839
3839
|
};
|
|
3840
3840
|
}
|
|
3841
3841
|
static lex(t, n) {
|
|
@@ -3845,7 +3845,7 @@ ${c}` : c;
|
|
|
3845
3845
|
return new e(n).inlineTokens(t);
|
|
3846
3846
|
}
|
|
3847
3847
|
lex(e) {
|
|
3848
|
-
e = e.replace(
|
|
3848
|
+
e = e.replace(J.carriageReturn, "\n"), this.blockTokens(e, this.tokens);
|
|
3849
3849
|
for (let e = 0; e < this.inlineQueue.length; e++) {
|
|
3850
3850
|
let t = this.inlineQueue[e];
|
|
3851
3851
|
this.inlineTokens(t.src, t.tokens);
|
|
@@ -3853,7 +3853,7 @@ ${c}` : c;
|
|
|
3853
3853
|
return this.inlineQueue = [], this.tokens;
|
|
3854
3854
|
}
|
|
3855
3855
|
blockTokens(e, t = [], n = !1) {
|
|
3856
|
-
for (this.tokenizer.lexer = this, this.options.pedantic && (e = e.replace(
|
|
3856
|
+
for (this.tokenizer.lexer = this, this.options.pedantic && (e = e.replace(J.tabCharGlobal, " ").replace(J.spaceLine, "")); e;) {
|
|
3857
3857
|
let r;
|
|
3858
3858
|
if (this.options.extensions?.block?.some((n) => (r = n.call({ lexer: this }, e, t)) ? (e = e.substring(r.raw.length), t.push(r), !0) : !1)) continue;
|
|
3859
3859
|
if (r = this.tokenizer.space(e)) {
|
|
@@ -3968,18 +3968,18 @@ ${c}` : c;
|
|
|
3968
3968
|
}
|
|
3969
3969
|
return t;
|
|
3970
3970
|
}
|
|
3971
|
-
},
|
|
3971
|
+
}, Hn = class {
|
|
3972
3972
|
options;
|
|
3973
3973
|
parser;
|
|
3974
3974
|
constructor(e) {
|
|
3975
|
-
this.options = e ||
|
|
3975
|
+
this.options = e || St;
|
|
3976
3976
|
}
|
|
3977
3977
|
space(e) {
|
|
3978
3978
|
return "";
|
|
3979
3979
|
}
|
|
3980
3980
|
code({ text: e, lang: t, escaped: n }) {
|
|
3981
|
-
let r = (t || "").match(
|
|
3982
|
-
return r ? "<pre><code class=\"language-" +
|
|
3981
|
+
let r = (t || "").match(J.notSpaceStart)?.[0], i = e.replace(J.endingNewline, "") + "\n";
|
|
3982
|
+
return r ? "<pre><code class=\"language-" + Mn(r) + "\">" + (n ? i : Mn(i, !0)) + "</code></pre>\n" : "<pre><code>" + (n ? i : Mn(i, !0)) + "</code></pre>\n";
|
|
3983
3983
|
}
|
|
3984
3984
|
blockquote({ tokens: e }) {
|
|
3985
3985
|
return `<blockquote>
|
|
@@ -4049,7 +4049,7 @@ ${e}</tr>
|
|
|
4049
4049
|
return `<em>${this.parser.parseInline(e)}</em>`;
|
|
4050
4050
|
}
|
|
4051
4051
|
codespan({ text: e }) {
|
|
4052
|
-
return `<code>${
|
|
4052
|
+
return `<code>${Mn(e, !0)}</code>`;
|
|
4053
4053
|
}
|
|
4054
4054
|
br(e) {
|
|
4055
4055
|
return "<br>";
|
|
@@ -4058,24 +4058,24 @@ ${e}</tr>
|
|
|
4058
4058
|
return `<del>${this.parser.parseInline(e)}</del>`;
|
|
4059
4059
|
}
|
|
4060
4060
|
link({ href: e, title: t, tokens: n }) {
|
|
4061
|
-
let r = this.parser.parseInline(n), i =
|
|
4061
|
+
let r = this.parser.parseInline(n), i = Nn(e);
|
|
4062
4062
|
if (i === null) return r;
|
|
4063
4063
|
e = i;
|
|
4064
4064
|
let a = "<a href=\"" + e + "\"";
|
|
4065
|
-
return t && (a += " title=\"" +
|
|
4065
|
+
return t && (a += " title=\"" + Mn(t) + "\""), a += ">" + r + "</a>", a;
|
|
4066
4066
|
}
|
|
4067
4067
|
image({ href: e, title: t, text: n, tokens: r }) {
|
|
4068
4068
|
r && (n = this.parser.parseInline(r, this.parser.textRenderer));
|
|
4069
|
-
let i =
|
|
4070
|
-
if (i === null) return
|
|
4069
|
+
let i = Nn(e);
|
|
4070
|
+
if (i === null) return Mn(n);
|
|
4071
4071
|
e = i;
|
|
4072
|
-
let a = `<img src="${e}" alt="${
|
|
4073
|
-
return t && (a += ` title="${
|
|
4072
|
+
let a = `<img src="${e}" alt="${Mn(n)}"`;
|
|
4073
|
+
return t && (a += ` title="${Mn(t)}"`), a += ">", a;
|
|
4074
4074
|
}
|
|
4075
4075
|
text(e) {
|
|
4076
|
-
return "tokens" in e && e.tokens ? this.parser.parseInline(e.tokens) : "escaped" in e && e.escaped ? e.text :
|
|
4076
|
+
return "tokens" in e && e.tokens ? this.parser.parseInline(e.tokens) : "escaped" in e && e.escaped ? e.text : Mn(e.text);
|
|
4077
4077
|
}
|
|
4078
|
-
},
|
|
4078
|
+
}, Un = class {
|
|
4079
4079
|
strong({ text: e }) {
|
|
4080
4080
|
return e;
|
|
4081
4081
|
}
|
|
@@ -4106,12 +4106,12 @@ ${e}</tr>
|
|
|
4106
4106
|
checkbox({ raw: e }) {
|
|
4107
4107
|
return e;
|
|
4108
4108
|
}
|
|
4109
|
-
},
|
|
4109
|
+
}, Wn = class e {
|
|
4110
4110
|
options;
|
|
4111
4111
|
renderer;
|
|
4112
4112
|
textRenderer;
|
|
4113
4113
|
constructor(e) {
|
|
4114
|
-
this.options = e ||
|
|
4114
|
+
this.options = e || St, this.options.renderer = this.options.renderer || new Hn(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new Un();
|
|
4115
4115
|
}
|
|
4116
4116
|
static parse(t, n) {
|
|
4117
4117
|
return new e(n).parse(t);
|
|
@@ -4257,11 +4257,11 @@ ${e}</tr>
|
|
|
4257
4257
|
}
|
|
4258
4258
|
return n;
|
|
4259
4259
|
}
|
|
4260
|
-
},
|
|
4260
|
+
}, Gn = class {
|
|
4261
4261
|
options;
|
|
4262
4262
|
block;
|
|
4263
4263
|
constructor(e) {
|
|
4264
|
-
this.options = e ||
|
|
4264
|
+
this.options = e || St;
|
|
4265
4265
|
}
|
|
4266
4266
|
static passThroughHooks = /* @__PURE__ */ new Set([
|
|
4267
4267
|
"preprocess",
|
|
@@ -4287,22 +4287,22 @@ ${e}</tr>
|
|
|
4287
4287
|
return e;
|
|
4288
4288
|
}
|
|
4289
4289
|
provideLexer() {
|
|
4290
|
-
return this.block ?
|
|
4290
|
+
return this.block ? Vn.lex : Vn.lexInline;
|
|
4291
4291
|
}
|
|
4292
4292
|
provideParser() {
|
|
4293
|
-
return this.block ?
|
|
4293
|
+
return this.block ? Wn.parse : Wn.parseInline;
|
|
4294
4294
|
}
|
|
4295
|
-
},
|
|
4296
|
-
defaults =
|
|
4295
|
+
}, Kn = new class {
|
|
4296
|
+
defaults = xt();
|
|
4297
4297
|
options = this.setOptions;
|
|
4298
4298
|
parse = this.parseMarkdown(!0);
|
|
4299
4299
|
parseInline = this.parseMarkdown(!1);
|
|
4300
|
-
Parser =
|
|
4301
|
-
Renderer =
|
|
4302
|
-
TextRenderer =
|
|
4303
|
-
Lexer =
|
|
4304
|
-
Tokenizer =
|
|
4305
|
-
Hooks =
|
|
4300
|
+
Parser = Wn;
|
|
4301
|
+
Renderer = Hn;
|
|
4302
|
+
TextRenderer = Un;
|
|
4303
|
+
Lexer = Vn;
|
|
4304
|
+
Tokenizer = Bn;
|
|
4305
|
+
Hooks = Gn;
|
|
4306
4306
|
constructor(...e) {
|
|
4307
4307
|
this.use(...e);
|
|
4308
4308
|
}
|
|
@@ -4353,7 +4353,7 @@ ${e}</tr>
|
|
|
4353
4353
|
}
|
|
4354
4354
|
"childTokens" in e && e.childTokens && (t.childTokens[e.name] = e.childTokens);
|
|
4355
4355
|
}), n.extensions = t), e.renderer) {
|
|
4356
|
-
let t = this.defaults.renderer || new
|
|
4356
|
+
let t = this.defaults.renderer || new Hn(this.defaults);
|
|
4357
4357
|
for (let n in e.renderer) {
|
|
4358
4358
|
if (!(n in t)) throw Error(`renderer '${n}' does not exist`);
|
|
4359
4359
|
if (["options", "parser"].includes(n)) continue;
|
|
@@ -4366,7 +4366,7 @@ ${e}</tr>
|
|
|
4366
4366
|
n.renderer = t;
|
|
4367
4367
|
}
|
|
4368
4368
|
if (e.tokenizer) {
|
|
4369
|
-
let t = this.defaults.tokenizer || new
|
|
4369
|
+
let t = this.defaults.tokenizer || new Bn(this.defaults);
|
|
4370
4370
|
for (let n in e.tokenizer) {
|
|
4371
4371
|
if (!(n in t)) throw Error(`tokenizer '${n}' does not exist`);
|
|
4372
4372
|
if ([
|
|
@@ -4383,13 +4383,13 @@ ${e}</tr>
|
|
|
4383
4383
|
n.tokenizer = t;
|
|
4384
4384
|
}
|
|
4385
4385
|
if (e.hooks) {
|
|
4386
|
-
let t = this.defaults.hooks || new
|
|
4386
|
+
let t = this.defaults.hooks || new Gn();
|
|
4387
4387
|
for (let n in e.hooks) {
|
|
4388
4388
|
if (!(n in t)) throw Error(`hook '${n}' does not exist`);
|
|
4389
4389
|
if (["options", "block"].includes(n)) continue;
|
|
4390
4390
|
let r = n, i = e.hooks[r], a = t[r];
|
|
4391
|
-
t[r] =
|
|
4392
|
-
if (this.defaults.async &&
|
|
4391
|
+
t[r] = Gn.passThroughHooks.has(n) ? (e) => {
|
|
4392
|
+
if (this.defaults.async && Gn.passThroughHooksRespectAsync.has(n)) return (async () => {
|
|
4393
4393
|
let n = await i.call(t, e);
|
|
4394
4394
|
return a.call(t, n);
|
|
4395
4395
|
})();
|
|
@@ -4426,10 +4426,10 @@ ${e}</tr>
|
|
|
4426
4426
|
}, this;
|
|
4427
4427
|
}
|
|
4428
4428
|
lexer(e, t) {
|
|
4429
|
-
return
|
|
4429
|
+
return Vn.lex(e, t ?? this.defaults);
|
|
4430
4430
|
}
|
|
4431
4431
|
parser(e, t) {
|
|
4432
|
-
return
|
|
4432
|
+
return Wn.parse(e, t ?? this.defaults);
|
|
4433
4433
|
}
|
|
4434
4434
|
parseMarkdown(e) {
|
|
4435
4435
|
return (t, n) => {
|
|
@@ -4441,16 +4441,16 @@ ${e}</tr>
|
|
|
4441
4441
|
if (typeof t > "u" || t === null) return a(/* @__PURE__ */ Error("marked(): input parameter is undefined or null"));
|
|
4442
4442
|
if (typeof t != "string") return a(/* @__PURE__ */ Error("marked(): input parameter is of type " + Object.prototype.toString.call(t) + ", string expected"));
|
|
4443
4443
|
if (i.hooks && (i.hooks.options = i, i.hooks.block = e), i.async) return (async () => {
|
|
4444
|
-
let n = i.hooks ? await i.hooks.preprocess(t) : t, r = await (i.hooks ? await i.hooks.provideLexer() : e ?
|
|
4444
|
+
let n = i.hooks ? await i.hooks.preprocess(t) : t, r = await (i.hooks ? await i.hooks.provideLexer() : e ? Vn.lex : Vn.lexInline)(n, i), a = i.hooks ? await i.hooks.processAllTokens(r) : r;
|
|
4445
4445
|
i.walkTokens && await Promise.all(this.walkTokens(a, i.walkTokens));
|
|
4446
|
-
let o = await (i.hooks ? await i.hooks.provideParser() : e ?
|
|
4446
|
+
let o = await (i.hooks ? await i.hooks.provideParser() : e ? Wn.parse : Wn.parseInline)(a, i);
|
|
4447
4447
|
return i.hooks ? await i.hooks.postprocess(o) : o;
|
|
4448
4448
|
})().catch(a);
|
|
4449
4449
|
try {
|
|
4450
4450
|
i.hooks && (t = i.hooks.preprocess(t));
|
|
4451
|
-
let n = (i.hooks ? i.hooks.provideLexer() : e ?
|
|
4451
|
+
let n = (i.hooks ? i.hooks.provideLexer() : e ? Vn.lex : Vn.lexInline)(t, i);
|
|
4452
4452
|
i.hooks && (n = i.hooks.processAllTokens(n)), i.walkTokens && this.walkTokens(n, i.walkTokens);
|
|
4453
|
-
let r = (i.hooks ? i.hooks.provideParser() : e ?
|
|
4453
|
+
let r = (i.hooks ? i.hooks.provideParser() : e ? Wn.parse : Wn.parseInline)(n, i);
|
|
4454
4454
|
return i.hooks && (r = i.hooks.postprocess(r)), r;
|
|
4455
4455
|
} catch (e) {
|
|
4456
4456
|
return a(e);
|
|
@@ -4460,7 +4460,7 @@ ${e}</tr>
|
|
|
4460
4460
|
onError(e, t) {
|
|
4461
4461
|
return (n) => {
|
|
4462
4462
|
if (n.message += "\nPlease report this to https://github.com/markedjs/marked.", e) {
|
|
4463
|
-
let e = "<p>An error occurred:</p><pre>" +
|
|
4463
|
+
let e = "<p>An error occurred:</p><pre>" + Mn(n.message + "", !0) + "</pre>";
|
|
4464
4464
|
return t ? Promise.resolve(e) : e;
|
|
4465
4465
|
}
|
|
4466
4466
|
if (t) return Promise.reject(n);
|
|
@@ -4468,42 +4468,42 @@ ${e}</tr>
|
|
|
4468
4468
|
};
|
|
4469
4469
|
}
|
|
4470
4470
|
}();
|
|
4471
|
-
function
|
|
4472
|
-
return
|
|
4471
|
+
function X(e, t) {
|
|
4472
|
+
return Kn.parse(e, t);
|
|
4473
4473
|
}
|
|
4474
|
-
|
|
4475
|
-
return
|
|
4476
|
-
},
|
|
4477
|
-
return
|
|
4478
|
-
},
|
|
4479
|
-
return
|
|
4480
|
-
},
|
|
4481
|
-
function
|
|
4474
|
+
X.options = X.setOptions = function(e) {
|
|
4475
|
+
return Kn.setOptions(e), X.defaults = Kn.defaults, Ct(X.defaults), X;
|
|
4476
|
+
}, X.getDefaults = xt, X.defaults = St, X.use = function(...e) {
|
|
4477
|
+
return Kn.use(...e), X.defaults = Kn.defaults, Ct(X.defaults), X;
|
|
4478
|
+
}, X.walkTokens = function(e, t) {
|
|
4479
|
+
return Kn.walkTokens(e, t);
|
|
4480
|
+
}, X.parseInline = Kn.parseInline, X.Parser = Wn, X.parser = Wn.parse, X.Renderer = Hn, X.TextRenderer = Un, X.Lexer = Vn, X.lexer = Vn.lex, X.Tokenizer = Bn, X.Hooks = Gn, X.parse = X, X.options, X.setOptions, X.use, X.walkTokens, X.parseInline, Wn.parse, Vn.lex;
|
|
4481
|
+
function qn(...e) {
|
|
4482
4482
|
return e.filter(Boolean).join(" ");
|
|
4483
4483
|
}
|
|
4484
|
-
function
|
|
4484
|
+
function Jn(e, t) {
|
|
4485
4485
|
return e ? t ? {
|
|
4486
4486
|
...e,
|
|
4487
4487
|
...t
|
|
4488
4488
|
} : e : t;
|
|
4489
4489
|
}
|
|
4490
|
-
function
|
|
4491
|
-
let s =
|
|
4490
|
+
function Yn({ animation: e, index: t, as: n, asChild: r, className: i, style: a, children: o }) {
|
|
4491
|
+
let s = qn("fragment", e, i);
|
|
4492
4492
|
if (r) {
|
|
4493
4493
|
let e;
|
|
4494
4494
|
try {
|
|
4495
|
-
e =
|
|
4495
|
+
e = M.Children.only(o);
|
|
4496
4496
|
} catch {
|
|
4497
4497
|
throw Error("Fragment with asChild expects exactly one React element child.");
|
|
4498
4498
|
}
|
|
4499
|
-
if (!(0,
|
|
4499
|
+
if (!(0, M.isValidElement)(e) || e.type === M.Fragment) throw Error("Fragment with asChild expects exactly one non-Fragment React element child.");
|
|
4500
4500
|
let n = {
|
|
4501
|
-
className:
|
|
4502
|
-
style:
|
|
4501
|
+
className: qn(e.props.className, s),
|
|
4502
|
+
style: Jn(e.props.style, a)
|
|
4503
4503
|
};
|
|
4504
|
-
return t !== void 0 && (n["data-fragment-index"] = t), (0,
|
|
4504
|
+
return t !== void 0 && (n["data-fragment-index"] = t), (0, M.cloneElement)(e, n);
|
|
4505
4505
|
}
|
|
4506
|
-
return /* @__PURE__ */ (0,
|
|
4506
|
+
return /* @__PURE__ */ (0, W.jsx)(n ?? "span", {
|
|
4507
4507
|
className: s,
|
|
4508
4508
|
style: a,
|
|
4509
4509
|
"data-fragment-index": t,
|
|
@@ -4512,26 +4512,26 @@ function Jn({ animation: e, index: t, as: n, asChild: r, className: i, style: a,
|
|
|
4512
4512
|
}
|
|
4513
4513
|
//#endregion
|
|
4514
4514
|
//#region src/components/slides/slide-scroll-hint.tsx
|
|
4515
|
-
var
|
|
4516
|
-
function
|
|
4515
|
+
var Xn = 8, Zn = 1;
|
|
4516
|
+
function Qn(e) {
|
|
4517
4517
|
let { scrollHeight: t, clientHeight: n, scrollTop: r } = e;
|
|
4518
|
-
return t > n +
|
|
4518
|
+
return t > n + Zn && r <= Xn;
|
|
4519
4519
|
}
|
|
4520
|
-
function
|
|
4520
|
+
function $n(e) {
|
|
4521
4521
|
let t = e.querySelector(".fragment:not(.visible)");
|
|
4522
4522
|
if (!t) return e.scrollHeight;
|
|
4523
4523
|
let n = e.getBoundingClientRect(), r = e.offsetHeight > 0 ? n.height / e.offsetHeight : 1;
|
|
4524
4524
|
return (t.getBoundingClientRect().top - n.top) / (r || 1) + e.scrollTop;
|
|
4525
4525
|
}
|
|
4526
|
-
function
|
|
4527
|
-
let n = (0,
|
|
4526
|
+
function er(e, t) {
|
|
4527
|
+
let n = (0, N.c)(4), [r, i] = (0, M.useState)(!1), a, o;
|
|
4528
4528
|
return n[0] !== t || n[1] !== e ? (a = () => {
|
|
4529
4529
|
let n = e.current, r = t.current;
|
|
4530
4530
|
if (!n || !r) return;
|
|
4531
4531
|
let a = 0, o = () => {
|
|
4532
4532
|
cancelAnimationFrame(a), a = requestAnimationFrame(() => {
|
|
4533
|
-
i(
|
|
4534
|
-
scrollHeight:
|
|
4533
|
+
i(Qn({
|
|
4534
|
+
scrollHeight: $n(n),
|
|
4535
4535
|
clientHeight: n.clientHeight,
|
|
4536
4536
|
scrollTop: n.scrollTop
|
|
4537
4537
|
}));
|
|
@@ -4548,50 +4548,50 @@ function $n(e, t) {
|
|
|
4548
4548
|
}), n.addEventListener("scroll", o, { passive: !0 }), () => {
|
|
4549
4549
|
cancelAnimationFrame(a), s.disconnect(), c?.disconnect(), n.removeEventListener("scroll", o);
|
|
4550
4550
|
};
|
|
4551
|
-
}, o = [e, t], n[0] = t, n[1] = e, n[2] = a, n[3] = o) : (a = n[2], o = n[3]), (0,
|
|
4551
|
+
}, o = [e, t], n[0] = t, n[1] = e, n[2] = a, n[3] = o) : (a = n[2], o = n[3]), (0, M.useEffect)(a, o), r;
|
|
4552
4552
|
}
|
|
4553
|
-
var
|
|
4554
|
-
let t = (0,
|
|
4553
|
+
var tr = (e) => {
|
|
4554
|
+
let t = (0, N.c)(6), { className: r } = e, i;
|
|
4555
4555
|
t[0] === r ? i = t[1] : (i = n("pointer-events-none absolute inset-x-0 bottom-0 z-10 flex flex-col items-center", "animate-in fade-in-0 duration-200", r), t[0] = r, t[1] = i);
|
|
4556
4556
|
let a;
|
|
4557
|
-
t[2] === Symbol.for("react.memo_cache_sentinel") ? (a = /* @__PURE__ */ (0,
|
|
4557
|
+
t[2] === Symbol.for("react.memo_cache_sentinel") ? (a = /* @__PURE__ */ (0, W.jsx)("div", { className: "h-16 w-full bg-linear-to-t from-background via-background/80 to-transparent" }), t[2] = a) : a = t[2];
|
|
4558
4558
|
let o;
|
|
4559
|
-
t[3] === Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */ (0,
|
|
4559
|
+
t[3] === Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */ (0, W.jsxs)("div", {
|
|
4560
4560
|
className: "absolute bottom-3 flex items-center gap-1 rounded-full border border-border/60 bg-background/90 px-2.5 py-1 text-xs text-muted-foreground shadow-sm backdrop-blur-sm",
|
|
4561
|
-
children: [/* @__PURE__ */ (0,
|
|
4561
|
+
children: [/* @__PURE__ */ (0, W.jsx)(w, { className: "h-3.5 w-3.5" }), /* @__PURE__ */ (0, W.jsx)("span", { children: "Scroll for more" })]
|
|
4562
4562
|
}), t[3] = o) : o = t[3];
|
|
4563
4563
|
let s;
|
|
4564
|
-
return t[4] === i ? s = t[5] : (s = /* @__PURE__ */ (0,
|
|
4564
|
+
return t[4] === i ? s = t[5] : (s = /* @__PURE__ */ (0, W.jsxs)("div", {
|
|
4565
4565
|
className: i,
|
|
4566
4566
|
"data-testid": "slide-scroll-hint",
|
|
4567
4567
|
"aria-hidden": !0,
|
|
4568
4568
|
children: [a, o]
|
|
4569
4569
|
}), t[4] = i, t[5] = s), s;
|
|
4570
|
-
},
|
|
4571
|
-
let t = (0,
|
|
4570
|
+
}, nr = (e) => {
|
|
4571
|
+
let t = (0, N.c)(10), { children: r, className: i } = e, a = (0, M.useRef)(null), o = (0, M.useRef)(null), s = er(a, o), c;
|
|
4572
4572
|
t[0] === i ? c = t[1] : (c = n("relative h-full w-full", i), t[0] = i, t[1] = c);
|
|
4573
4573
|
let l;
|
|
4574
|
-
t[2] === r ? l = t[3] : (l = /* @__PURE__ */ (0,
|
|
4574
|
+
t[2] === r ? l = t[3] : (l = /* @__PURE__ */ (0, W.jsx)("div", {
|
|
4575
4575
|
ref: a,
|
|
4576
4576
|
className: "h-full w-full overflow-auto",
|
|
4577
4577
|
"data-testid": "slide-scroll-container",
|
|
4578
|
-
children: /* @__PURE__ */ (0,
|
|
4578
|
+
children: /* @__PURE__ */ (0, W.jsx)("div", {
|
|
4579
4579
|
ref: o,
|
|
4580
4580
|
className: "flex w-full min-h-full",
|
|
4581
4581
|
children: r
|
|
4582
4582
|
})
|
|
4583
4583
|
}), t[2] = r, t[3] = l);
|
|
4584
4584
|
let u;
|
|
4585
|
-
t[4] === s ? u = t[5] : (u = s && /* @__PURE__ */ (0,
|
|
4585
|
+
t[4] === s ? u = t[5] : (u = s && /* @__PURE__ */ (0, W.jsx)(tr, {}), t[4] = s, t[5] = u);
|
|
4586
4586
|
let d;
|
|
4587
|
-
return t[6] !== c || t[7] !== l || t[8] !== u ? (d = /* @__PURE__ */ (0,
|
|
4587
|
+
return t[6] !== c || t[7] !== l || t[8] !== u ? (d = /* @__PURE__ */ (0, W.jsxs)("div", {
|
|
4588
4588
|
className: c,
|
|
4589
4589
|
children: [l, u]
|
|
4590
4590
|
}), t[6] = c, t[7] = l, t[8] = u, t[9] = d) : d = t[9], d;
|
|
4591
4591
|
};
|
|
4592
4592
|
//#endregion
|
|
4593
4593
|
//#region src/components/slides/compose-slides.ts
|
|
4594
|
-
function
|
|
4594
|
+
function rr({ cells: e, getType: t }) {
|
|
4595
4595
|
let n = [], r = null, i = null, a = () => {
|
|
4596
4596
|
let e = { subslides: [] };
|
|
4597
4597
|
return n.push(e), r = e, i = null, e;
|
|
@@ -4617,7 +4617,7 @@ function nr({ cells: e, getType: t }) {
|
|
|
4617
4617
|
}
|
|
4618
4618
|
return { stacks: n };
|
|
4619
4619
|
}
|
|
4620
|
-
function
|
|
4620
|
+
function ir({ composition: e, cells: t, getId: n }) {
|
|
4621
4621
|
let r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Map();
|
|
4622
4622
|
for (let [e, r] of t.entries()) a.set(n(r), e);
|
|
4623
4623
|
return e.stacks.forEach((e, t) => {
|
|
@@ -4660,27 +4660,27 @@ function rr({ composition: e, cells: t, getId: n }) {
|
|
|
4660
4660
|
targetToCellIndex: i
|
|
4661
4661
|
};
|
|
4662
4662
|
}
|
|
4663
|
-
function
|
|
4663
|
+
function ar(e, t) {
|
|
4664
4664
|
let { h: n, v: r, f: i } = t;
|
|
4665
4665
|
return e.get(`${n},${r},${i}`) ?? e.get(`${n},${r},-1`);
|
|
4666
4666
|
}
|
|
4667
|
-
function
|
|
4667
|
+
function or({ start: e, stop: t, step: n, cells: r, cellToTarget: i, getId: a }) {
|
|
4668
4668
|
for (let o = e; o !== t; o += n) {
|
|
4669
4669
|
let e = i.get(a(r[o]));
|
|
4670
4670
|
if (e) return e;
|
|
4671
4671
|
}
|
|
4672
4672
|
}
|
|
4673
|
-
function
|
|
4673
|
+
function sr({ activeIndex: e, cells: t, cellToTarget: n, getId: r }) {
|
|
4674
4674
|
if (e == null) return;
|
|
4675
4675
|
let i = t[e];
|
|
4676
|
-
return i ? n.get(r(i)) || (
|
|
4676
|
+
return i ? n.get(r(i)) || (or({
|
|
4677
4677
|
start: e - 1,
|
|
4678
4678
|
stop: -1,
|
|
4679
4679
|
step: -1,
|
|
4680
4680
|
cells: t,
|
|
4681
4681
|
cellToTarget: n,
|
|
4682
4682
|
getId: r
|
|
4683
|
-
}) ??
|
|
4683
|
+
}) ?? or({
|
|
4684
4684
|
start: e + 1,
|
|
4685
4685
|
stop: t.length,
|
|
4686
4686
|
step: 1,
|
|
@@ -4689,7 +4689,7 @@ function or({ activeIndex: e, cells: t, cellToTarget: n, getId: r }) {
|
|
|
4689
4689
|
getId: r
|
|
4690
4690
|
})) : void 0;
|
|
4691
4691
|
}
|
|
4692
|
-
function
|
|
4692
|
+
function cr(e, t) {
|
|
4693
4693
|
let n = {
|
|
4694
4694
|
h: t.h,
|
|
4695
4695
|
v: t.v,
|
|
@@ -4699,8 +4699,8 @@ function sr(e, t) {
|
|
|
4699
4699
|
}
|
|
4700
4700
|
//#endregion
|
|
4701
4701
|
//#region src/core/islands/stubs/slide-cell-view.tsx
|
|
4702
|
-
var
|
|
4703
|
-
let t = (0,
|
|
4702
|
+
var lr = (e) => (t.warn("SlideCellView islands stub rendered; this should never happen in a read-only embed."), null), ur = (e) => (t.warn("SlideCellReadOnlyView islands stub rendered; this should never happen in a read-only embed."), null), dr = 300, fr = (e) => {
|
|
4703
|
+
let t = (0, N.c)(25), { layout: i, setLayout: a, cellId: o, className: s } = e, c = o ? i.cells.get(o)?.speakerNotes ?? "" : "", [l, u] = (0, M.useState)(c), d = (0, M.useRef)(!1), f;
|
|
4704
4704
|
t[0] !== i || t[1] !== a ? (f = (e, t) => {
|
|
4705
4705
|
d.current = !1;
|
|
4706
4706
|
let n = i.cells.get(e);
|
|
@@ -4714,7 +4714,7 @@ var cr = (e) => (t.warn("SlideCellView islands stub rendered; this should never
|
|
|
4714
4714
|
cells: r
|
|
4715
4715
|
});
|
|
4716
4716
|
}, t[0] = i, t[1] = a, t[2] = f) : f = t[2];
|
|
4717
|
-
let p =
|
|
4717
|
+
let p = A(f), m = T(p, dr), h = (0, M.useRef)(o), g, _;
|
|
4718
4718
|
t[3] !== o || t[4] !== l || t[5] !== c || t[6] !== m ? (g = () => {
|
|
4719
4719
|
h.current === o ? !d.current && c !== l && u(c) : (m.flush(), d.current = !1, u(c), h.current = o);
|
|
4720
4720
|
}, _ = [
|
|
@@ -4722,11 +4722,11 @@ var cr = (e) => (t.warn("SlideCellView islands stub rendered; this should never
|
|
|
4722
4722
|
c,
|
|
4723
4723
|
l,
|
|
4724
4724
|
m
|
|
4725
|
-
], t[3] = o, t[4] = l, t[5] = c, t[6] = m, t[7] = g, t[8] = _) : (g = t[7], _ = t[8]), (0,
|
|
4725
|
+
], t[3] = o, t[4] = l, t[5] = c, t[6] = m, t[7] = g, t[8] = _) : (g = t[7], _ = t[8]), (0, M.useEffect)(g, _);
|
|
4726
4726
|
let v, y;
|
|
4727
4727
|
t[9] === m ? (v = t[10], y = t[11]) : (v = () => () => {
|
|
4728
4728
|
m.flush();
|
|
4729
|
-
}, y = [m], t[9] = m, t[10] = v, t[11] = y), (0,
|
|
4729
|
+
}, y = [m], t[9] = m, t[10] = v, t[11] = y), (0, M.useEffect)(v, y);
|
|
4730
4730
|
let b;
|
|
4731
4731
|
t[12] !== o || t[13] !== m ? (b = (e) => {
|
|
4732
4732
|
u(e), o && (d.current = !0, m(o, e));
|
|
@@ -4734,52 +4734,52 @@ var cr = (e) => (t.warn("SlideCellView islands stub rendered; this should never
|
|
|
4734
4734
|
let x = b, S;
|
|
4735
4735
|
t[15] === s ? S = t[16] : (S = n("h-full min-h-0 flex flex-col bg-muted/40 dark:bg-muted/20 border-t", s), t[15] = s, t[16] = S);
|
|
4736
4736
|
let C;
|
|
4737
|
-
t[17] === Symbol.for("react.memo_cache_sentinel") ? (C = /* @__PURE__ */ (0,
|
|
4737
|
+
t[17] === Symbol.for("react.memo_cache_sentinel") ? (C = /* @__PURE__ */ (0, W.jsxs)("header", {
|
|
4738
4738
|
className: "flex items-center gap-1.5 px-3 h-8 shrink-0 text-xs font-medium uppercase tracking-wide text-muted-foreground",
|
|
4739
|
-
children: [/* @__PURE__ */ (0,
|
|
4739
|
+
children: [/* @__PURE__ */ (0, W.jsx)(j, { className: "h-3.5 w-3.5" }), /* @__PURE__ */ (0, W.jsx)("span", { children: "Speaker notes" })]
|
|
4740
4740
|
}), t[17] = C) : C = t[17];
|
|
4741
4741
|
let w;
|
|
4742
|
-
t[18] !== o || t[19] !== l || t[20] !== x ? (w = /* @__PURE__ */ (0,
|
|
4742
|
+
t[18] !== o || t[19] !== l || t[20] !== x ? (w = /* @__PURE__ */ (0, W.jsx)("div", {
|
|
4743
4743
|
className: "flex-1 min-h-0 p-2",
|
|
4744
|
-
children: o ? /* @__PURE__ */ (0,
|
|
4744
|
+
children: o ? /* @__PURE__ */ (0, W.jsx)("textarea", {
|
|
4745
4745
|
value: l,
|
|
4746
4746
|
onChange: (e) => x(e.target.value),
|
|
4747
4747
|
onClick: r.stopPropagation(),
|
|
4748
4748
|
placeholder: "Add notes for this slide. Visible to you in speaker view (press S during presentation).",
|
|
4749
4749
|
className: n("h-full w-full resize-none rounded-sm border border-input/25 bg-background", "px-3 py-2 text-sm leading-relaxed text-foreground placeholder:text-muted-foreground", "ring-offset-background focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring focus-visible:border-accent"),
|
|
4750
4750
|
"aria-label": "Speaker notes for the current slide"
|
|
4751
|
-
}) : /* @__PURE__ */ (0,
|
|
4751
|
+
}) : /* @__PURE__ */ (0, W.jsx)("div", {
|
|
4752
4752
|
className: "h-full flex items-center justify-center text-xs text-muted-foreground",
|
|
4753
4753
|
children: "Select a slide to add notes."
|
|
4754
4754
|
})
|
|
4755
4755
|
}), t[18] = o, t[19] = l, t[20] = x, t[21] = w) : w = t[21];
|
|
4756
4756
|
let E;
|
|
4757
|
-
return t[22] !== S || t[23] !== w ? (E = /* @__PURE__ */ (0,
|
|
4757
|
+
return t[22] !== S || t[23] !== w ? (E = /* @__PURE__ */ (0, W.jsxs)("section", {
|
|
4758
4758
|
className: S,
|
|
4759
4759
|
"aria-label": "Speaker notes",
|
|
4760
|
-
onKeyDown:
|
|
4760
|
+
onKeyDown: pr,
|
|
4761
4761
|
children: [C, w]
|
|
4762
4762
|
}), t[22] = S, t[23] = w, t[24] = E) : E = t[24], E;
|
|
4763
4763
|
};
|
|
4764
|
-
function
|
|
4764
|
+
function pr(e) {
|
|
4765
4765
|
return e.stopPropagation();
|
|
4766
4766
|
}
|
|
4767
|
-
var
|
|
4768
|
-
let n = e.blocks.map((e) =>
|
|
4767
|
+
var mr = "\n\n---\n\n", hr = (e, t) => e.map((e) => t.get(e.id)?.speakerNotes ?? "").filter((e) => e.trim().length > 0).join("\n\n"), gr = (e, t) => {
|
|
4768
|
+
let n = e.blocks.map((e) => hr(e.cells, t)), r = e.blocks.map((e, t) => e.isFragment ? "" : n[t]).filter((e) => e.length > 0).join("\n\n"), i = /* @__PURE__ */ new Map(), a = [];
|
|
4769
4769
|
return e.blocks.forEach((e, t) => {
|
|
4770
4770
|
if (!e.isFragment) return;
|
|
4771
4771
|
let o = n[t];
|
|
4772
4772
|
o.length > 0 && a.push(o);
|
|
4773
|
-
let s = [r, ...a].filter((e) => e.length > 0).join(
|
|
4773
|
+
let s = [r, ...a].filter((e) => e.length > 0).join(mr);
|
|
4774
4774
|
s.length > 0 && i.set(t, s);
|
|
4775
4775
|
}), {
|
|
4776
4776
|
slideLevel: r,
|
|
4777
4777
|
cumulativeByBlock: i
|
|
4778
4778
|
};
|
|
4779
|
-
},
|
|
4779
|
+
}, _r = O(!1);
|
|
4780
4780
|
//#endregion
|
|
4781
4781
|
//#region ../node_modules/.pnpm/reveal.js@6.0.2/node_modules/reveal.js/dist/plugin/notes.mjs
|
|
4782
|
-
function
|
|
4782
|
+
function vr() {
|
|
4783
4783
|
return {
|
|
4784
4784
|
async: !1,
|
|
4785
4785
|
breaks: !1,
|
|
@@ -4793,28 +4793,28 @@ function _r() {
|
|
|
4793
4793
|
walkTokens: null
|
|
4794
4794
|
};
|
|
4795
4795
|
}
|
|
4796
|
-
var
|
|
4797
|
-
function
|
|
4798
|
-
|
|
4796
|
+
var yr = vr();
|
|
4797
|
+
function br(e) {
|
|
4798
|
+
yr = e;
|
|
4799
4799
|
}
|
|
4800
|
-
var
|
|
4801
|
-
function
|
|
4800
|
+
var xr = { exec: () => null };
|
|
4801
|
+
function Z(e, t = "") {
|
|
4802
4802
|
let n = typeof e == "string" ? e : e.source, r = {
|
|
4803
4803
|
replace: (e, t) => {
|
|
4804
4804
|
let i = typeof t == "string" ? t : t.source;
|
|
4805
|
-
return i = i.replace(
|
|
4805
|
+
return i = i.replace(Q.caret, "$1"), n = n.replace(e, i), r;
|
|
4806
4806
|
},
|
|
4807
4807
|
getRegex: () => new RegExp(n, t)
|
|
4808
4808
|
};
|
|
4809
4809
|
return r;
|
|
4810
4810
|
}
|
|
4811
|
-
var
|
|
4811
|
+
var Sr = (() => {
|
|
4812
4812
|
try {
|
|
4813
4813
|
return !0;
|
|
4814
4814
|
} catch {
|
|
4815
4815
|
return !1;
|
|
4816
4816
|
}
|
|
4817
|
-
})(),
|
|
4817
|
+
})(), Q = {
|
|
4818
4818
|
codeRemoveIndent: /^(?: {1,4}| {0,3}\t)/gm,
|
|
4819
4819
|
outputLinkReplace: /\\([\[\]])/g,
|
|
4820
4820
|
indentCodeCompensation: /^(\s+)(?:```)/,
|
|
@@ -4871,8 +4871,8 @@ var xr = (() => {
|
|
|
4871
4871
|
headingBeginRegex: (e) => RegExp(`^ {0,${Math.min(3, e - 1)}}#`),
|
|
4872
4872
|
htmlBeginRegex: (e) => RegExp(`^ {0,${Math.min(3, e - 1)}}<(?:[a-z].*>|!--)`, "i"),
|
|
4873
4873
|
blockquoteBeginRegex: (e) => RegExp(`^ {0,${Math.min(3, e - 1)}}>`)
|
|
4874
|
-
}, Cr = /^(?:[ \t]*(?:\n|$))+/, wr = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, Tr = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, Er = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, Dr = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, Or = / {0,3}(?:[*+-]|\d{1,9}[.)])/, kr = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, Ar =
|
|
4875
|
-
blockquote:
|
|
4874
|
+
}, Cr = /^(?:[ \t]*(?:\n|$))+/, wr = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, Tr = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, Er = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, Dr = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, Or = / {0,3}(?:[*+-]|\d{1,9}[.)])/, kr = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, Ar = Z(kr).replace(/bull/g, Or).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex(), jr = Z(kr).replace(/bull/g, Or).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(), Mr = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, Nr = /^[^\n]+/, Pr = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, Fr = Z(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", Pr).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), Ir = Z(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, Or).getRegex(), Lr = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", Rr = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, zr = Z("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))", "i").replace("comment", Rr).replace("tag", Lr).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), Br = Z(Mr).replace("hr", Er).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", Lr).getRegex(), Vr = {
|
|
4875
|
+
blockquote: Z(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", Br).getRegex(),
|
|
4876
4876
|
code: wr,
|
|
4877
4877
|
def: Fr,
|
|
4878
4878
|
fences: Tr,
|
|
@@ -4883,31 +4883,31 @@ var xr = (() => {
|
|
|
4883
4883
|
list: Ir,
|
|
4884
4884
|
newline: Cr,
|
|
4885
4885
|
paragraph: Br,
|
|
4886
|
-
table:
|
|
4886
|
+
table: xr,
|
|
4887
4887
|
text: Nr
|
|
4888
|
-
}, Hr =
|
|
4888
|
+
}, Hr = Z("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", Er).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", Lr).getRegex(), Ur = {
|
|
4889
4889
|
...Vr,
|
|
4890
4890
|
lheading: jr,
|
|
4891
4891
|
table: Hr,
|
|
4892
|
-
paragraph:
|
|
4892
|
+
paragraph: Z(Mr).replace("hr", Er).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", Hr).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", Lr).getRegex()
|
|
4893
4893
|
}, Wr = {
|
|
4894
4894
|
...Vr,
|
|
4895
|
-
html:
|
|
4895
|
+
html: Z("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment", Rr).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),
|
|
4896
4896
|
def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,
|
|
4897
4897
|
heading: /^(#{1,6})(.*)(?:\n+|$)/,
|
|
4898
|
-
fences:
|
|
4898
|
+
fences: xr,
|
|
4899
4899
|
lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,
|
|
4900
|
-
paragraph:
|
|
4901
|
-
}, Gr = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, Kr = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, qr = /^( {2,}|\\)\n(?!\s*$)/, Jr = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, Yr = /[\p{P}\p{S}]/u, Xr = /[\s\p{P}\p{S}]/u, Zr = /[^\s\p{P}\p{S}]/u, Qr =
|
|
4902
|
-
_backpedal:
|
|
4900
|
+
paragraph: Z(Mr).replace("hr", Er).replace("heading", " *#{1,6} *[^\n]").replace("lheading", Ar).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex()
|
|
4901
|
+
}, Gr = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, Kr = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, qr = /^( {2,}|\\)\n(?!\s*$)/, Jr = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, Yr = /[\p{P}\p{S}]/u, Xr = /[\s\p{P}\p{S}]/u, Zr = /[^\s\p{P}\p{S}]/u, Qr = Z(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, Xr).getRegex(), $r = /(?!~)[\p{P}\p{S}]/u, ei = /(?!~)[\s\p{P}\p{S}]/u, ti = /(?:[^\s\p{P}\p{S}]|~)/u, ni = Z(/link|precode-code|html/, "g").replace("link", /\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-", Sr ? "(?<!`)()" : "(^^|[^`])").replace("code", /(?<b>`+)[^`]+\k<b>(?!`)/).replace("html", /<(?! )[^<>]*?>/).getRegex(), ri = /^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/, ii = Z(ri, "u").replace(/punct/g, Yr).getRegex(), ai = Z(ri, "u").replace(/punct/g, $r).getRegex(), oi = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", si = Z(oi, "gu").replace(/notPunctSpace/g, Zr).replace(/punctSpace/g, Xr).replace(/punct/g, Yr).getRegex(), ci = Z(oi, "gu").replace(/notPunctSpace/g, ti).replace(/punctSpace/g, ei).replace(/punct/g, $r).getRegex(), li = Z("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, Zr).replace(/punctSpace/g, Xr).replace(/punct/g, Yr).getRegex(), ui = Z(/^~~?(?:((?!~)punct)|[^\s~])/, "u").replace(/punct/g, Yr).getRegex(), di = Z("^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)", "gu").replace(/notPunctSpace/g, Zr).replace(/punctSpace/g, Xr).replace(/punct/g, Yr).getRegex(), fi = Z(/\\(punct)/, "gu").replace(/punct/g, Yr).getRegex(), pi = Z(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), mi = Z(Rr).replace("(?:-->|$)", "-->").getRegex(), hi = Z("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", mi).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), gi = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/, _i = Z(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label", gi).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), vi = Z(/^!?\[(label)\]\[(ref)\]/).replace("label", gi).replace("ref", Pr).getRegex(), yi = Z(/^!?\[(ref)\](?:\[\])?/).replace("ref", Pr).getRegex(), bi = Z("reflink|nolink(?!\\()", "g").replace("reflink", vi).replace("nolink", yi).getRegex(), xi = /[hH][tT][tT][pP][sS]?|[fF][tT][pP]/, Si = {
|
|
4902
|
+
_backpedal: xr,
|
|
4903
4903
|
anyPunctuation: fi,
|
|
4904
4904
|
autolink: pi,
|
|
4905
4905
|
blockSkip: ni,
|
|
4906
4906
|
br: qr,
|
|
4907
4907
|
code: Kr,
|
|
4908
|
-
del:
|
|
4909
|
-
delLDelim:
|
|
4910
|
-
delRDelim:
|
|
4908
|
+
del: xr,
|
|
4909
|
+
delLDelim: xr,
|
|
4910
|
+
delRDelim: xr,
|
|
4911
4911
|
emStrongLDelim: ii,
|
|
4912
4912
|
emStrongRDelimAst: si,
|
|
4913
4913
|
emStrongRDelimUnd: li,
|
|
@@ -4919,25 +4919,25 @@ var xr = (() => {
|
|
|
4919
4919
|
reflinkSearch: bi,
|
|
4920
4920
|
tag: hi,
|
|
4921
4921
|
text: Jr,
|
|
4922
|
-
url:
|
|
4922
|
+
url: xr
|
|
4923
4923
|
}, Ci = {
|
|
4924
4924
|
...Si,
|
|
4925
|
-
link:
|
|
4926
|
-
reflink:
|
|
4925
|
+
link: Z(/^!?\[(label)\]\((.*?)\)/).replace("label", gi).getRegex(),
|
|
4926
|
+
reflink: Z(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", gi).getRegex()
|
|
4927
4927
|
}, wi = {
|
|
4928
4928
|
...Si,
|
|
4929
4929
|
emStrongRDelimAst: ci,
|
|
4930
4930
|
emStrongLDelim: ai,
|
|
4931
4931
|
delLDelim: ui,
|
|
4932
4932
|
delRDelim: di,
|
|
4933
|
-
url:
|
|
4933
|
+
url: Z(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol", xi).replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),
|
|
4934
4934
|
_backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,
|
|
4935
4935
|
del: /^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,
|
|
4936
|
-
text:
|
|
4936
|
+
text: Z(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol", xi).getRegex()
|
|
4937
4937
|
}, Ti = {
|
|
4938
4938
|
...wi,
|
|
4939
|
-
br:
|
|
4940
|
-
text:
|
|
4939
|
+
br: Z(qr).replace("{2,}", "*").getRegex(),
|
|
4940
|
+
text: Z(wi.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex()
|
|
4941
4941
|
}, Ei = {
|
|
4942
4942
|
normal: Vr,
|
|
4943
4943
|
gfm: Ur,
|
|
@@ -4956,29 +4956,29 @@ var xr = (() => {
|
|
|
4956
4956
|
}, ki = (e) => Oi[e];
|
|
4957
4957
|
function Ai(e, t) {
|
|
4958
4958
|
if (t) {
|
|
4959
|
-
if (
|
|
4960
|
-
} else if (
|
|
4959
|
+
if (Q.escapeTest.test(e)) return e.replace(Q.escapeReplace, ki);
|
|
4960
|
+
} else if (Q.escapeTestNoEncode.test(e)) return e.replace(Q.escapeReplaceNoEncode, ki);
|
|
4961
4961
|
return e;
|
|
4962
4962
|
}
|
|
4963
4963
|
function ji(e) {
|
|
4964
4964
|
try {
|
|
4965
|
-
e = encodeURI(e).replace(
|
|
4965
|
+
e = encodeURI(e).replace(Q.percentDecode, "%");
|
|
4966
4966
|
} catch {
|
|
4967
4967
|
return null;
|
|
4968
4968
|
}
|
|
4969
4969
|
return e;
|
|
4970
4970
|
}
|
|
4971
4971
|
function Mi(e, t) {
|
|
4972
|
-
let n = e.replace(
|
|
4972
|
+
let n = e.replace(Q.findPipe, (e, t, n) => {
|
|
4973
4973
|
let r = !1, i = t;
|
|
4974
4974
|
for (; --i >= 0 && n[i] === "\\";) r = !r;
|
|
4975
4975
|
return r ? "|" : " |";
|
|
4976
|
-
}).split(
|
|
4976
|
+
}).split(Q.splitPipe), r = 0;
|
|
4977
4977
|
if (n[0].trim() || n.shift(), n.length > 0 && !n.at(-1)?.trim() && n.pop(), t) {
|
|
4978
4978
|
if (n.length > t) n.splice(t);
|
|
4979
4979
|
else for (; n.length < t;) n.push("");
|
|
4980
4980
|
}
|
|
4981
|
-
for (; r < n.length; r++) n[r] = n[r].trim().replace(
|
|
4981
|
+
for (; r < n.length; r++) n[r] = n[r].trim().replace(Q.slashPipe, "|");
|
|
4982
4982
|
return n;
|
|
4983
4983
|
}
|
|
4984
4984
|
function Ni(e, t, n) {
|
|
@@ -5038,7 +5038,7 @@ var Ri = class {
|
|
|
5038
5038
|
rules;
|
|
5039
5039
|
lexer;
|
|
5040
5040
|
constructor(e) {
|
|
5041
|
-
this.options = e ||
|
|
5041
|
+
this.options = e || yr;
|
|
5042
5042
|
}
|
|
5043
5043
|
space(e) {
|
|
5044
5044
|
let t = this.rules.block.newline.exec(e);
|
|
@@ -5493,13 +5493,13 @@ ${c}` : c;
|
|
|
5493
5493
|
inlineQueue;
|
|
5494
5494
|
tokenizer;
|
|
5495
5495
|
constructor(e) {
|
|
5496
|
-
this.tokens = [], this.tokens.links = Object.create(null), this.options = e ||
|
|
5496
|
+
this.tokens = [], this.tokens.links = Object.create(null), this.options = e || yr, this.options.tokenizer = this.options.tokenizer || new Ri(), this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = {
|
|
5497
5497
|
inLink: !1,
|
|
5498
5498
|
inRawBlock: !1,
|
|
5499
5499
|
top: !0
|
|
5500
5500
|
};
|
|
5501
5501
|
let t = {
|
|
5502
|
-
other:
|
|
5502
|
+
other: Q,
|
|
5503
5503
|
block: Ei.normal,
|
|
5504
5504
|
inline: Di.normal
|
|
5505
5505
|
};
|
|
@@ -5518,7 +5518,7 @@ ${c}` : c;
|
|
|
5518
5518
|
return new e(n).inlineTokens(t);
|
|
5519
5519
|
}
|
|
5520
5520
|
lex(e) {
|
|
5521
|
-
e = e.replace(
|
|
5521
|
+
e = e.replace(Q.carriageReturn, "\n"), this.blockTokens(e, this.tokens);
|
|
5522
5522
|
for (let e = 0; e < this.inlineQueue.length; e++) {
|
|
5523
5523
|
let t = this.inlineQueue[e];
|
|
5524
5524
|
this.inlineTokens(t.src, t.tokens);
|
|
@@ -5526,7 +5526,7 @@ ${c}` : c;
|
|
|
5526
5526
|
return this.inlineQueue = [], this.tokens;
|
|
5527
5527
|
}
|
|
5528
5528
|
blockTokens(e, t = [], n = !1) {
|
|
5529
|
-
for (this.tokenizer.lexer = this, this.options.pedantic && (e = e.replace(
|
|
5529
|
+
for (this.tokenizer.lexer = this, this.options.pedantic && (e = e.replace(Q.tabCharGlobal, " ").replace(Q.spaceLine, "")); e;) {
|
|
5530
5530
|
let r;
|
|
5531
5531
|
if (this.options.extensions?.block?.some((n) => (r = n.call({ lexer: this }, e, t)) ? (e = e.substring(r.raw.length), t.push(r), !0) : !1)) continue;
|
|
5532
5532
|
if (r = this.tokenizer.space(e)) {
|
|
@@ -5645,13 +5645,13 @@ ${c}` : c;
|
|
|
5645
5645
|
options;
|
|
5646
5646
|
parser;
|
|
5647
5647
|
constructor(e) {
|
|
5648
|
-
this.options = e ||
|
|
5648
|
+
this.options = e || yr;
|
|
5649
5649
|
}
|
|
5650
5650
|
space(e) {
|
|
5651
5651
|
return "";
|
|
5652
5652
|
}
|
|
5653
5653
|
code({ text: e, lang: t, escaped: n }) {
|
|
5654
|
-
let r = (t || "").match(
|
|
5654
|
+
let r = (t || "").match(Q.notSpaceStart)?.[0], i = e.replace(Q.endingNewline, "") + "\n";
|
|
5655
5655
|
return r ? "<pre><code class=\"language-" + Ai(r) + "\">" + (n ? i : Ai(i, !0)) + "</code></pre>\n" : "<pre><code>" + (n ? i : Ai(i, !0)) + "</code></pre>\n";
|
|
5656
5656
|
}
|
|
5657
5657
|
blockquote({ tokens: e }) {
|
|
@@ -5784,7 +5784,7 @@ ${e}</tr>
|
|
|
5784
5784
|
renderer;
|
|
5785
5785
|
textRenderer;
|
|
5786
5786
|
constructor(e) {
|
|
5787
|
-
this.options = e ||
|
|
5787
|
+
this.options = e || yr, this.options.renderer = this.options.renderer || new Bi(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new Vi();
|
|
5788
5788
|
}
|
|
5789
5789
|
static parse(t, n) {
|
|
5790
5790
|
return new e(n).parse(t);
|
|
@@ -5934,7 +5934,7 @@ ${e}</tr>
|
|
|
5934
5934
|
options;
|
|
5935
5935
|
block;
|
|
5936
5936
|
constructor(e) {
|
|
5937
|
-
this.options = e ||
|
|
5937
|
+
this.options = e || yr;
|
|
5938
5938
|
}
|
|
5939
5939
|
static passThroughHooks = /* @__PURE__ */ new Set([
|
|
5940
5940
|
"preprocess",
|
|
@@ -5966,7 +5966,7 @@ ${e}</tr>
|
|
|
5966
5966
|
return this.block ? Hi.parse : Hi.parseInline;
|
|
5967
5967
|
}
|
|
5968
5968
|
}, Wi = new class {
|
|
5969
|
-
defaults =
|
|
5969
|
+
defaults = vr();
|
|
5970
5970
|
options = this.setOptions;
|
|
5971
5971
|
parse = this.parseMarkdown(!0);
|
|
5972
5972
|
parseInline = this.parseMarkdown(!1);
|
|
@@ -6145,9 +6145,9 @@ function $(e, t) {
|
|
|
6145
6145
|
return Wi.parse(e, t);
|
|
6146
6146
|
}
|
|
6147
6147
|
$.options = $.setOptions = function(e) {
|
|
6148
|
-
return Wi.setOptions(e), $.defaults = Wi.defaults,
|
|
6149
|
-
}, $.getDefaults =
|
|
6150
|
-
return Wi.use(...e), $.defaults = Wi.defaults,
|
|
6148
|
+
return Wi.setOptions(e), $.defaults = Wi.defaults, br($.defaults), $;
|
|
6149
|
+
}, $.getDefaults = vr, $.defaults = yr, $.use = function(...e) {
|
|
6150
|
+
return Wi.use(...e), $.defaults = Wi.defaults, br($.defaults), $;
|
|
6151
6151
|
}, $.walkTokens = function(e, t) {
|
|
6152
6152
|
return Wi.walkTokens(e, t);
|
|
6153
6153
|
}, $.parseInline = Wi.parseInline, $.Parser = Hi, $.parser = Hi.parse, $.Renderer = Bi, $.TextRenderer = Vi, $.Lexer = zi, $.lexer = zi.lex, $.Tokenizer = Ri, $.Hooks = Ui, $.parse = $, $.options, $.setOptions, $.use, $.walkTokens, $.parseInline, Hi.parse, zi.lex;
|
|
@@ -6265,12 +6265,12 @@ function ea(e) {
|
|
|
6265
6265
|
return Qi.has(e.key) ? 1 : $i.has(e.key) ? -1 : 0;
|
|
6266
6266
|
}
|
|
6267
6267
|
function ta(e) {
|
|
6268
|
-
let t = (0,
|
|
6268
|
+
let t = (0, N.c)(4), n;
|
|
6269
6269
|
t[0] === Symbol.for("react.memo_cache_sentinel") ? (n = {
|
|
6270
6270
|
width: qi,
|
|
6271
6271
|
height: Ji
|
|
6272
6272
|
}, t[0] = n) : n = t[0];
|
|
6273
|
-
let [r, i] = (0,
|
|
6273
|
+
let [r, i] = (0, M.useState)(n), a, o;
|
|
6274
6274
|
return t[1] === e ? (a = t[2], o = t[3]) : (a = () => {
|
|
6275
6275
|
let t = e.current;
|
|
6276
6276
|
if (!t) return;
|
|
@@ -6284,19 +6284,19 @@ function ta(e) {
|
|
|
6284
6284
|
});
|
|
6285
6285
|
});
|
|
6286
6286
|
return n.observe(t), () => n.disconnect();
|
|
6287
|
-
}, o = [e], t[1] = e, t[2] = a, t[3] = o), (0,
|
|
6287
|
+
}, o = [e], t[1] = e, t[2] = a, t[3] = o), (0, M.useEffect)(a, o), r;
|
|
6288
6288
|
}
|
|
6289
6289
|
var na = (e) => {
|
|
6290
|
-
let t = (0,
|
|
6290
|
+
let t = (0, N.c)(6), { text: n } = e, r, i;
|
|
6291
6291
|
if (t[0] !== n) {
|
|
6292
6292
|
let e = n.split("\n");
|
|
6293
6293
|
r = "notes", i = e.map((t, n) => {
|
|
6294
6294
|
let r = n === e.length - 1;
|
|
6295
|
-
return t === "---" ? /* @__PURE__ */ (0,
|
|
6295
|
+
return t === "---" ? /* @__PURE__ */ (0, W.jsx)("hr", {}, n) : /* @__PURE__ */ (0, W.jsxs)(M.Fragment, { children: [t, !r && /* @__PURE__ */ (0, W.jsx)("br", {})] }, n);
|
|
6296
6296
|
}), t[0] = n, t[1] = r, t[2] = i;
|
|
6297
6297
|
} else r = t[1], i = t[2];
|
|
6298
6298
|
let a;
|
|
6299
|
-
return t[3] !== r || t[4] !== i ? (a = /* @__PURE__ */ (0,
|
|
6299
|
+
return t[3] !== r || t[4] !== i ? (a = /* @__PURE__ */ (0, W.jsx)("aside", {
|
|
6300
6300
|
className: r,
|
|
6301
6301
|
children: i
|
|
6302
6302
|
}), t[3] = r, t[4] = i, t[5] = a) : a = t[5], a;
|
|
@@ -6310,14 +6310,14 @@ function ia(e) {
|
|
|
6310
6310
|
return n.has(t.id) || t.id === r ? "skip" : i.get(t.id)?.type ?? "slide";
|
|
6311
6311
|
}
|
|
6312
6312
|
function aa(e) {
|
|
6313
|
-
let t = (0,
|
|
6313
|
+
let t = (0, N.c)(15), { activeCell: n, slideConfigs: r, noOutputIds: i } = e, a = n?.id ?? null, o;
|
|
6314
6314
|
t[0] !== n || t[1] !== i ? (o = n != null && i.has(n.id), t[0] = n, t[1] = i, t[2] = o) : o = t[2];
|
|
6315
6315
|
let s = o, c = n != null && r.get(n.id)?.type === "skip" || s, l;
|
|
6316
6316
|
t[3] === a ? l = t[4] : (l = {
|
|
6317
6317
|
activeCellId: a,
|
|
6318
6318
|
cellId: null
|
|
6319
6319
|
}, t[3] = a, t[4] = l);
|
|
6320
|
-
let [u, d] = (0,
|
|
6320
|
+
let [u, d] = (0, M.useState)(l), f = u.cellId;
|
|
6321
6321
|
u.activeCellId === a ? s && f !== a && (f = a, d({
|
|
6322
6322
|
activeCellId: a,
|
|
6323
6323
|
cellId: f
|
|
@@ -6330,14 +6330,14 @@ function aa(e) {
|
|
|
6330
6330
|
cellId: m,
|
|
6331
6331
|
show: !0
|
|
6332
6332
|
}, t[5] = m, t[6] = h);
|
|
6333
|
-
let [g, _] = (0,
|
|
6333
|
+
let [g, _] = (0, M.useState)(h), v = g.show;
|
|
6334
6334
|
g.cellId !== m && (v = !0, _({
|
|
6335
6335
|
cellId: m,
|
|
6336
6336
|
show: !0
|
|
6337
6337
|
}));
|
|
6338
6338
|
let y;
|
|
6339
6339
|
t[7] === Symbol.for("react.memo_cache_sentinel") ? (y = () => _(oa), t[7] = y) : y = t[7];
|
|
6340
|
-
let b =
|
|
6340
|
+
let b = A(y), x = c || p ? n ?? null : null, S;
|
|
6341
6341
|
return t[8] !== m || t[9] !== v || t[10] !== p || t[11] !== s || t[12] !== x || t[13] !== b ? (S = {
|
|
6342
6342
|
parkedPreviewCell: x,
|
|
6343
6343
|
isHeldEdit: p,
|
|
@@ -6361,406 +6361,406 @@ function sa(e) {
|
|
|
6361
6361
|
}
|
|
6362
6362
|
}
|
|
6363
6363
|
var ca = (e) => {
|
|
6364
|
-
let t = (0,
|
|
6364
|
+
let t = (0, N.c)(14), { cell: n } = e, { execution: r, freshness: i } = p(n.id), a;
|
|
6365
6365
|
t[0] !== n.id || t[1] !== n.name ? (a = x(n.id, n.name), t[0] = n.id, t[1] = n.name, t[2] = a) : a = t[2];
|
|
6366
6366
|
let o = n.id, s = r.status, c = n.output, l;
|
|
6367
6367
|
t[3] !== r || t[4] !== i ? (l = h(r, i, !1), t[3] = r, t[4] = i, t[5] = l) : l = t[5];
|
|
6368
6368
|
let u;
|
|
6369
|
-
t[6] !== n.id || t[7] !== n.output || t[8] !== r.status || t[9] !== l ? (u = /* @__PURE__ */ (0,
|
|
6369
|
+
t[6] !== n.id || t[7] !== n.output || t[8] !== r.status || t[9] !== l ? (u = /* @__PURE__ */ (0, W.jsx)(C, {
|
|
6370
6370
|
cellId: o,
|
|
6371
6371
|
status: s,
|
|
6372
6372
|
output: c,
|
|
6373
6373
|
stale: l
|
|
6374
6374
|
}), t[6] = n.id, t[7] = n.output, t[8] = r.status, t[9] = l, t[10] = u) : u = t[10];
|
|
6375
6375
|
let d;
|
|
6376
|
-
return t[11] !== a || t[12] !== u ? (d = /* @__PURE__ */ (0,
|
|
6376
|
+
return t[11] !== a || t[12] !== u ? (d = /* @__PURE__ */ (0, W.jsx)("div", {
|
|
6377
6377
|
className: "flex flex-col",
|
|
6378
6378
|
...a,
|
|
6379
6379
|
children: u
|
|
6380
6380
|
}), t[11] = a, t[12] = u, t[13] = d) : d = t[13], d;
|
|
6381
6381
|
}, la = (e) => {
|
|
6382
|
-
let t = (0,
|
|
6382
|
+
let t = (0, N.c)(24), { subslide: n, resolveShowCode: r, isEditable: i, slideConfigs: a, contentStyle: o } = e, s, c, l, u, d, f;
|
|
6383
6383
|
if (t[0] !== o || t[1] !== i || t[2] !== r || t[3] !== a || t[4] !== n) {
|
|
6384
|
-
let { slideLevel: e, cumulativeByBlock: p } =
|
|
6384
|
+
let { slideLevel: e, cumulativeByBlock: p } = gr(n, a);
|
|
6385
6385
|
l = e;
|
|
6386
6386
|
let m = n.blocks.some((e) => e.cells.some((e) => r(e.id)));
|
|
6387
|
-
c =
|
|
6388
|
-
let n = e.cells.map((e) => r(e.id) ? i ? /* @__PURE__ */ (0,
|
|
6387
|
+
c = yt, s = nr, u = m ? "mo-slide-content flex flex-col gap-3" : "mo-slide-content", d = o, f = n.blocks.map((e, t) => {
|
|
6388
|
+
let n = e.cells.map((e) => r(e.id) ? i ? /* @__PURE__ */ (0, W.jsx)(lr, { cell: e }, e.id) : /* @__PURE__ */ (0, W.jsx)(ur, { cell: e }, e.id) : /* @__PURE__ */ (0, W.jsx)(ca, { cell: e }, e.id));
|
|
6389
6389
|
if (e.isFragment) {
|
|
6390
6390
|
let r = p.get(t);
|
|
6391
|
-
return /* @__PURE__ */ (0,
|
|
6391
|
+
return /* @__PURE__ */ (0, W.jsxs)(Yn, {
|
|
6392
6392
|
as: "div",
|
|
6393
|
-
children: [n, r && /* @__PURE__ */ (0,
|
|
6393
|
+
children: [n, r && /* @__PURE__ */ (0, W.jsx)(na, { text: r })]
|
|
6394
6394
|
}, e.cells[0].id);
|
|
6395
6395
|
}
|
|
6396
|
-
return /* @__PURE__ */ (0,
|
|
6396
|
+
return /* @__PURE__ */ (0, W.jsx)(M.Fragment, { children: n }, e.cells[0].id);
|
|
6397
6397
|
}), t[0] = o, t[1] = i, t[2] = r, t[3] = a, t[4] = n, t[5] = s, t[6] = c, t[7] = l, t[8] = u, t[9] = d, t[10] = f;
|
|
6398
6398
|
} else s = t[5], c = t[6], l = t[7], u = t[8], d = t[9], f = t[10];
|
|
6399
6399
|
let p;
|
|
6400
|
-
t[11] !== u || t[12] !== d || t[13] !== f ? (p = /* @__PURE__ */ (0,
|
|
6400
|
+
t[11] !== u || t[12] !== d || t[13] !== f ? (p = /* @__PURE__ */ (0, W.jsx)("div", {
|
|
6401
6401
|
className: u,
|
|
6402
6402
|
style: d,
|
|
6403
6403
|
children: f
|
|
6404
6404
|
}), t[11] = u, t[12] = d, t[13] = f, t[14] = p) : p = t[14];
|
|
6405
6405
|
let m;
|
|
6406
|
-
t[15] !== s || t[16] !== p ? (m = /* @__PURE__ */ (0,
|
|
6406
|
+
t[15] !== s || t[16] !== p ? (m = /* @__PURE__ */ (0, W.jsx)(s, { children: p }), t[15] = s, t[16] = p, t[17] = m) : m = t[17];
|
|
6407
6407
|
let h;
|
|
6408
|
-
t[18] === l ? h = t[19] : (h = l && /* @__PURE__ */ (0,
|
|
6408
|
+
t[18] === l ? h = t[19] : (h = l && /* @__PURE__ */ (0, W.jsx)(na, { text: l }), t[18] = l, t[19] = h);
|
|
6409
6409
|
let g;
|
|
6410
|
-
return t[20] !== c || t[21] !== m || t[22] !== h ? (g = /* @__PURE__ */ (0,
|
|
6410
|
+
return t[20] !== c || t[21] !== m || t[22] !== h ? (g = /* @__PURE__ */ (0, W.jsxs)(c, { children: [m, h] }), t[20] = c, t[21] = m, t[22] = h, t[23] = g) : g = t[23], g;
|
|
6411
6411
|
};
|
|
6412
6412
|
function ua(e) {
|
|
6413
6413
|
let { isNoOutputPreview: t, isEditable: n, showCode: r } = e;
|
|
6414
6414
|
return t && n || r;
|
|
6415
6415
|
}
|
|
6416
6416
|
var da = (e) => {
|
|
6417
|
-
let t = (0,
|
|
6417
|
+
let t = (0, N.c)(5), { cell: n, isNoOutputPreview: r, isEditable: i, showCode: a } = e;
|
|
6418
6418
|
if (ua({
|
|
6419
6419
|
isNoOutputPreview: r,
|
|
6420
6420
|
isEditable: i,
|
|
6421
6421
|
showCode: a
|
|
6422
6422
|
})) {
|
|
6423
6423
|
let e;
|
|
6424
|
-
return t[0] !== n || t[1] !== i ? (e = i ? /* @__PURE__ */ (0,
|
|
6424
|
+
return t[0] !== n || t[1] !== i ? (e = i ? /* @__PURE__ */ (0, W.jsx)(lr, { cell: n }) : /* @__PURE__ */ (0, W.jsx)(ur, { cell: n }), t[0] = n, t[1] = i, t[2] = e) : e = t[2], e;
|
|
6425
6425
|
}
|
|
6426
6426
|
let o;
|
|
6427
|
-
return t[3] === n ? o = t[4] : (o = /* @__PURE__ */ (0,
|
|
6427
|
+
return t[3] === n ? o = t[4] : (o = /* @__PURE__ */ (0, W.jsx)(ca, { cell: n }), t[3] = n, t[4] = o), o;
|
|
6428
6428
|
}, fa = (e) => {
|
|
6429
|
-
let t = (0,
|
|
6430
|
-
t[0] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
6429
|
+
let t = (0, N.c)(164), { slideCells: o, layout: s, setLayout: c, noOutputIds: p, activeIndex: h, onSlideChange: x, mode: C, configWidth: w, isEditable: T } = e, E = T !== void 0 && T, O = (0, M.useRef)(null), j = (0, M.useRef)(null), { width: ie, height: P } = ta(O), ae = ee() != null, [oe, se] = (0, M.useState)(1), ce;
|
|
6430
|
+
t[0] === Symbol.for("react.memo_cache_sentinel") ? (ce = () => {
|
|
6431
6431
|
let e = requestAnimationFrame(() => {
|
|
6432
|
-
let e =
|
|
6433
|
-
e && (e.layout(),
|
|
6432
|
+
let e = j.current;
|
|
6433
|
+
e && (e.layout(), se(e.getScale()));
|
|
6434
6434
|
});
|
|
6435
6435
|
return () => cancelAnimationFrame(e);
|
|
6436
|
-
}, t[0] =
|
|
6437
|
-
let
|
|
6438
|
-
t[1] !==
|
|
6439
|
-
|
|
6440
|
-
|
|
6441
|
-
|
|
6442
|
-
], t[1] =
|
|
6443
|
-
let
|
|
6444
|
-
t[5] !==
|
|
6445
|
-
let
|
|
6446
|
-
t[8] ===
|
|
6447
|
-
let
|
|
6448
|
-
t[10] ===
|
|
6449
|
-
let
|
|
6450
|
-
t[12] !==
|
|
6451
|
-
let
|
|
6452
|
-
t[15] !==
|
|
6453
|
-
activeCell:
|
|
6436
|
+
}, t[0] = ce) : ce = t[0];
|
|
6437
|
+
let F;
|
|
6438
|
+
t[1] !== P || t[2] !== ae || t[3] !== ie ? (F = [
|
|
6439
|
+
ie,
|
|
6440
|
+
P,
|
|
6441
|
+
ae
|
|
6442
|
+
], t[1] = P, t[2] = ae, t[3] = ie, t[4] = F) : F = t[4], (0, M.useEffect)(ce, F);
|
|
6443
|
+
let I = D(te), le = D(ne).kind, ue = D(_r), de = le !== "wasm" || ue, fe;
|
|
6444
|
+
t[5] !== I || t[6] !== le ? (fe = I || !g(le) ? [] : [Gi], t[5] = I, t[6] = le, t[7] = fe) : fe = t[7];
|
|
6445
|
+
let pe = fe, [me, he] = (0, M.useState)(pa), ge = re(), _e;
|
|
6446
|
+
t[8] === ge ? _e = t[9] : (_e = !k() && ge, t[8] = ge, t[9] = _e);
|
|
6447
|
+
let ve = _e, ye;
|
|
6448
|
+
t[10] === I ? ye = t[11] : (ye = b(I, window.location.search), t[10] = I, t[11] = ye);
|
|
6449
|
+
let L = !ye && ve, be = h == null ? void 0 : o[h], xe;
|
|
6450
|
+
t[12] !== be || t[13] !== o ? (xe = be ?? o.at(0), t[12] = be, t[13] = o, t[14] = xe) : xe = t[14];
|
|
6451
|
+
let Se = xe, Ce;
|
|
6452
|
+
t[15] !== be || t[16] !== s.cells || t[17] !== p ? (Ce = {
|
|
6453
|
+
activeCell: be,
|
|
6454
6454
|
slideConfigs: s.cells,
|
|
6455
6455
|
noOutputIds: p
|
|
6456
|
-
}, t[15] =
|
|
6457
|
-
let { parkedPreviewCell:
|
|
6458
|
-
t[19] !==
|
|
6456
|
+
}, t[15] = be, t[16] = s.cells, t[17] = p, t[18] = Ce) : Ce = t[18];
|
|
6457
|
+
let { parkedPreviewCell: R, isHeldEdit: z, isNoOutputPreview: we, heldEditCellId: Te, heldShowsCode: Ee, toggleHeldShowsCode: De } = aa(Ce), Oe;
|
|
6458
|
+
t[19] !== ve || t[20] !== s.cells || t[21] !== me ? (Oe = (e) => ra({
|
|
6459
6459
|
cells: s.cells,
|
|
6460
6460
|
cellId: e,
|
|
6461
|
-
showCodeOverrides:
|
|
6462
|
-
codeAvailable:
|
|
6463
|
-
}), t[19] =
|
|
6464
|
-
let
|
|
6465
|
-
t[23] !==
|
|
6466
|
-
let
|
|
6467
|
-
t[28] !==
|
|
6468
|
-
let
|
|
6469
|
-
t[32] !==
|
|
6461
|
+
showCodeOverrides: me,
|
|
6462
|
+
codeAvailable: ve
|
|
6463
|
+
}), t[19] = ve, t[20] = s.cells, t[21] = me, t[22] = Oe) : Oe = t[22];
|
|
6464
|
+
let B = Oe, V = be?.id ?? Se?.id, ke;
|
|
6465
|
+
t[23] !== V || t[24] !== Ee || t[25] !== z || t[26] !== B ? (ke = z ? Ee : B(V), t[23] = V, t[24] = Ee, t[25] = z, t[26] = B, t[27] = ke) : ke = t[27];
|
|
6466
|
+
let Ae = ke, je;
|
|
6467
|
+
t[28] !== V || t[29] !== ve || t[30] !== s.cells ? (je = ve && V != null && (s.cells.get(V)?.showCode ?? !1), t[28] = V, t[29] = ve, t[30] = s.cells, t[31] = je) : je = t[31];
|
|
6468
|
+
let Me = je, Ne;
|
|
6469
|
+
t[32] !== Te || t[33] !== s.cells || t[34] !== p ? (Ne = (e) => ia({
|
|
6470
6470
|
cell: e,
|
|
6471
6471
|
noOutputIds: p,
|
|
6472
|
-
heldEditCellId:
|
|
6472
|
+
heldEditCellId: Te,
|
|
6473
6473
|
slideConfigs: s.cells
|
|
6474
|
-
}), t[32] =
|
|
6475
|
-
let
|
|
6476
|
-
t[36] !== o || t[37] !==
|
|
6474
|
+
}), t[32] = Te, t[33] = s.cells, t[34] = p, t[35] = Ne) : Ne = t[35];
|
|
6475
|
+
let Pe;
|
|
6476
|
+
t[36] !== o || t[37] !== Ne ? (Pe = rr({
|
|
6477
6477
|
cells: o,
|
|
6478
|
-
getType:
|
|
6479
|
-
}), t[36] = o, t[37] =
|
|
6480
|
-
let
|
|
6481
|
-
t[39] !==
|
|
6482
|
-
composition:
|
|
6478
|
+
getType: Ne
|
|
6479
|
+
}), t[36] = o, t[37] = Ne, t[38] = Pe) : Pe = t[38];
|
|
6480
|
+
let Fe = Pe, Ie;
|
|
6481
|
+
t[39] !== Fe || t[40] !== o ? (Ie = ir({
|
|
6482
|
+
composition: Fe,
|
|
6483
6483
|
cells: o,
|
|
6484
6484
|
getId: ma
|
|
6485
|
-
}), t[39] =
|
|
6486
|
-
let { cellToTarget:
|
|
6487
|
-
t[42] ===
|
|
6488
|
-
let
|
|
6489
|
-
t[44] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
6490
|
-
let
|
|
6491
|
-
t[45] ===
|
|
6485
|
+
}), t[39] = Fe, t[40] = o, t[41] = Ie) : Ie = t[41];
|
|
6486
|
+
let { cellToTarget: Le, targetToCellIndex: H } = Ie, Re = s.deck?.transition ?? "slide", ze = s.deck?.verticalAlign, Be;
|
|
6487
|
+
t[42] === ze ? Be = t[43] : (Be = sa(ze), t[42] = ze, t[43] = Be);
|
|
6488
|
+
let Ve = Be, He;
|
|
6489
|
+
t[44] === Symbol.for("react.memo_cache_sentinel") ? (He = v(window.location.href), t[44] = He) : He = t[44];
|
|
6490
|
+
let Ue = He, We;
|
|
6491
|
+
t[45] === Re ? We = t[46] : (We = {
|
|
6492
6492
|
embedded: !0,
|
|
6493
6493
|
width: qi,
|
|
6494
6494
|
height: Ji,
|
|
6495
6495
|
center: !1,
|
|
6496
6496
|
minScale: 0,
|
|
6497
6497
|
maxScale: 2,
|
|
6498
|
-
transition:
|
|
6498
|
+
transition: Re,
|
|
6499
6499
|
keyboardCondition: ha,
|
|
6500
|
-
url:
|
|
6500
|
+
url: Ue,
|
|
6501
6501
|
scrollActivationWidth: 0
|
|
6502
|
-
}, t[45] =
|
|
6503
|
-
let
|
|
6504
|
-
t[47] !== h || t[48] !==
|
|
6502
|
+
}, t[45] = Re, t[46] = We);
|
|
6503
|
+
let Ge = We, Ke;
|
|
6504
|
+
t[47] !== h || t[48] !== de || t[49] !== Le || t[50] !== o ? (Ke = (e) => {
|
|
6505
6505
|
if (h == null && window.location.hash.startsWith("#/")) {
|
|
6506
|
-
if (!
|
|
6506
|
+
if (!de) return;
|
|
6507
6507
|
window.dispatchEvent(new HashChangeEvent("hashchange")), Zi(e);
|
|
6508
6508
|
return;
|
|
6509
6509
|
}
|
|
6510
|
-
let t =
|
|
6510
|
+
let t = sr({
|
|
6511
6511
|
activeIndex: h,
|
|
6512
6512
|
cells: o,
|
|
6513
|
-
cellToTarget:
|
|
6513
|
+
cellToTarget: Le,
|
|
6514
6514
|
getId: ga
|
|
6515
|
-
}), n = t &&
|
|
6515
|
+
}), n = t && cr(e.getIndices(), t);
|
|
6516
6516
|
n && (e.slide(n.h, n.v, n.f), Zi(e));
|
|
6517
|
-
}, t[47] = h, t[48] =
|
|
6518
|
-
let
|
|
6519
|
-
t[52] ===
|
|
6520
|
-
let e =
|
|
6521
|
-
e != null &&
|
|
6522
|
-
}, t[52] =
|
|
6523
|
-
let
|
|
6524
|
-
t[54] !== h || t[55] !==
|
|
6517
|
+
}, t[47] = h, t[48] = de, t[49] = Le, t[50] = o, t[51] = Ke) : Ke = t[51];
|
|
6518
|
+
let qe = A(Ke), Je;
|
|
6519
|
+
t[52] === qe ? Je = t[53] : (Je = () => {
|
|
6520
|
+
let e = j.current;
|
|
6521
|
+
e != null && qe(e);
|
|
6522
|
+
}, t[52] = qe, t[53] = Je);
|
|
6523
|
+
let Ye;
|
|
6524
|
+
t[54] !== h || t[55] !== de || t[56] !== Le || t[57] !== qe || t[58] !== o ? (Ye = [
|
|
6525
6525
|
h,
|
|
6526
|
-
|
|
6527
|
-
|
|
6526
|
+
de,
|
|
6527
|
+
Le,
|
|
6528
6528
|
o,
|
|
6529
|
-
|
|
6530
|
-
], t[54] = h, t[55] =
|
|
6531
|
-
let
|
|
6532
|
-
t[60] !==
|
|
6533
|
-
|
|
6529
|
+
qe
|
|
6530
|
+
], t[54] = h, t[55] = de, t[56] = Le, t[57] = qe, t[58] = o, t[59] = Ye) : Ye = t[59], (0, M.useEffect)(Je, Ye);
|
|
6531
|
+
let Xe;
|
|
6532
|
+
t[60] !== V || t[61] !== Me || t[62] !== z || t[63] !== De ? (Xe = () => {
|
|
6533
|
+
V == null || Me || (z ? De() : (0, M.startTransition)(() => he((e) => {
|
|
6534
6534
|
let t = new Set(e);
|
|
6535
|
-
return t.has(
|
|
6535
|
+
return t.has(V) ? t.delete(V) : t.add(V), t;
|
|
6536
6536
|
})));
|
|
6537
|
-
}, t[60] =
|
|
6538
|
-
let
|
|
6539
|
-
t[65] !==
|
|
6540
|
-
let e =
|
|
6537
|
+
}, t[60] = V, t[61] = Me, t[62] = z, t[63] = De, t[64] = Xe) : Xe = t[64];
|
|
6538
|
+
let U = A(Xe), Ze, Qe;
|
|
6539
|
+
t[65] !== L || t[66] !== U ? (Ze = () => {
|
|
6540
|
+
let e = j.current;
|
|
6541
6541
|
return e && Xi({
|
|
6542
6542
|
deck: e,
|
|
6543
|
-
enabled:
|
|
6544
|
-
onToggle:
|
|
6543
|
+
enabled: L,
|
|
6544
|
+
onToggle: U
|
|
6545
6545
|
}), () => {
|
|
6546
|
-
|
|
6546
|
+
j.current?.removeKeyBinding(Yi);
|
|
6547
6547
|
};
|
|
6548
|
-
},
|
|
6549
|
-
let
|
|
6550
|
-
t[69] !== x || t[70] !==
|
|
6551
|
-
if (
|
|
6552
|
-
let t =
|
|
6548
|
+
}, Qe = [L, U], t[65] = L, t[66] = U, t[67] = Ze, t[68] = Qe) : (Ze = t[67], Qe = t[68]), (0, M.useEffect)(Ze, Qe);
|
|
6549
|
+
let $e;
|
|
6550
|
+
t[69] !== x || t[70] !== R || t[71] !== H ? ($e = (e) => {
|
|
6551
|
+
if (R != null) return;
|
|
6552
|
+
let t = ar(H, e.getIndices());
|
|
6553
6553
|
t != null && x?.(t);
|
|
6554
|
-
}, t[69] = x, t[70] =
|
|
6555
|
-
let
|
|
6556
|
-
t[73] ===
|
|
6557
|
-
let e =
|
|
6558
|
-
e &&
|
|
6559
|
-
}, t[73] =
|
|
6560
|
-
let
|
|
6561
|
-
t[75] !==
|
|
6562
|
-
|
|
6554
|
+
}, t[69] = x, t[70] = R, t[71] = H, t[72] = $e) : $e = t[72];
|
|
6555
|
+
let et = A($e), tt;
|
|
6556
|
+
t[73] === et ? tt = t[74] : (tt = () => {
|
|
6557
|
+
let e = j.current;
|
|
6558
|
+
e && et(e);
|
|
6559
|
+
}, t[73] = et, t[74] = tt);
|
|
6560
|
+
let nt = A(tt), rt;
|
|
6561
|
+
t[75] !== de || t[76] !== L || t[77] !== qe || t[78] !== et || t[79] !== U ? (rt = (e) => {
|
|
6562
|
+
se(e.getScale()), qe(e), de && et(e), Xi({
|
|
6563
6563
|
deck: e,
|
|
6564
|
-
enabled:
|
|
6565
|
-
onToggle:
|
|
6564
|
+
enabled: L,
|
|
6565
|
+
onToggle: U
|
|
6566
6566
|
});
|
|
6567
6567
|
let t = e.getSlidesElement()?.closest(".reveal");
|
|
6568
6568
|
t instanceof HTMLElement && (t.tabIndex = -1, t.focus({ preventScroll: !0 }));
|
|
6569
|
-
}, t[75] =
|
|
6570
|
-
let
|
|
6571
|
-
t[81] !== h || t[82] !== x || t[83] !==
|
|
6572
|
-
if (!
|
|
6569
|
+
}, t[75] = de, t[76] = L, t[77] = qe, t[78] = et, t[79] = U, t[80] = rt) : rt = t[80];
|
|
6570
|
+
let it = A(rt), at;
|
|
6571
|
+
t[81] !== h || t[82] !== x || t[83] !== R || t[84] !== o ? (at = (e) => {
|
|
6572
|
+
if (!R || h == null || r.fromInput(e)) return;
|
|
6573
6573
|
let t = ea(e);
|
|
6574
6574
|
if (t === 0) return;
|
|
6575
6575
|
e.preventDefault(), e.stopPropagation();
|
|
6576
6576
|
let n = h + t;
|
|
6577
6577
|
n < 0 || n >= o.length || x?.(n);
|
|
6578
|
-
}, t[81] = h, t[82] = x, t[83] =
|
|
6579
|
-
let
|
|
6580
|
-
t[86] ===
|
|
6581
|
-
|
|
6582
|
-
}, t[86] =
|
|
6583
|
-
let
|
|
6584
|
-
t[88] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
6585
|
-
let
|
|
6586
|
-
t[89] !==
|
|
6587
|
-
let
|
|
6588
|
-
t[94] !== E || t[95] !==
|
|
6589
|
-
isNoOutputPreview:
|
|
6578
|
+
}, t[81] = h, t[82] = x, t[83] = R, t[84] = o, t[85] = at) : at = t[85];
|
|
6579
|
+
let ot = A(at), st;
|
|
6580
|
+
t[86] === nt ? st = t[87] : (st = () => {
|
|
6581
|
+
nt();
|
|
6582
|
+
}, t[86] = nt, t[87] = st);
|
|
6583
|
+
let ct = A(st), lt;
|
|
6584
|
+
t[88] === Symbol.for("react.memo_cache_sentinel") ? (lt = { capture: !0 }, t[88] = lt) : lt = t[88], i(document, "keydown", ot, lt);
|
|
6585
|
+
let ut = z ? null : we ? "Hidden as there is no output" : "Skipped in presentation", dt;
|
|
6586
|
+
t[89] !== Ee || t[90] !== z || t[91] !== R?.id || t[92] !== B ? (dt = z ? Ee : B(R?.id), t[89] = Ee, t[90] = z, t[91] = R?.id, t[92] = B, t[93] = dt) : dt = t[93];
|
|
6587
|
+
let ft = dt, pt;
|
|
6588
|
+
t[94] !== E || t[95] !== we || t[96] !== ft ? (pt = ua({
|
|
6589
|
+
isNoOutputPreview: we,
|
|
6590
6590
|
isEditable: E,
|
|
6591
|
-
showCode:
|
|
6592
|
-
}), t[94] = E, t[95] =
|
|
6593
|
-
let
|
|
6594
|
-
t[98] !==
|
|
6595
|
-
width:
|
|
6596
|
-
height:
|
|
6597
|
-
}, t[98] =
|
|
6598
|
-
let
|
|
6599
|
-
if (t[101] !==
|
|
6591
|
+
showCode: ft
|
|
6592
|
+
}), t[94] = E, t[95] = we, t[96] = ft, t[97] = pt) : pt = t[97];
|
|
6593
|
+
let mt = pt, ht;
|
|
6594
|
+
t[98] !== P || t[99] !== ie ? (ht = {
|
|
6595
|
+
width: ie,
|
|
6596
|
+
height: P
|
|
6597
|
+
}, t[98] = P, t[99] = ie, t[100] = ht) : ht = t[100];
|
|
6598
|
+
let _t;
|
|
6599
|
+
if (t[101] !== Fe.stacks || t[102] !== E || t[103] !== s.cells || t[104] !== B || t[105] !== Ve) {
|
|
6600
6600
|
let e;
|
|
6601
|
-
t[107] !== E || t[108] !== s.cells || t[109] !==
|
|
6601
|
+
t[107] !== E || t[108] !== s.cells || t[109] !== B || t[110] !== Ve ? (e = (e, t) => e.subslides.length === 1 ? /* @__PURE__ */ (0, W.jsx)(la, {
|
|
6602
6602
|
subslide: e.subslides[0],
|
|
6603
|
-
resolveShowCode:
|
|
6603
|
+
resolveShowCode: B,
|
|
6604
6604
|
isEditable: E,
|
|
6605
6605
|
slideConfigs: s.cells,
|
|
6606
|
-
contentStyle:
|
|
6607
|
-
}, t) : /* @__PURE__ */ (0,
|
|
6606
|
+
contentStyle: Ve
|
|
6607
|
+
}, t) : /* @__PURE__ */ (0, W.jsx)(bt, { children: e.subslides.map((e, t) => /* @__PURE__ */ (0, W.jsx)(la, {
|
|
6608
6608
|
subslide: e,
|
|
6609
|
-
resolveShowCode:
|
|
6609
|
+
resolveShowCode: B,
|
|
6610
6610
|
isEditable: E,
|
|
6611
6611
|
slideConfigs: s.cells,
|
|
6612
|
-
contentStyle:
|
|
6613
|
-
}, t)) }, t), t[107] = E, t[108] = s.cells, t[109] =
|
|
6614
|
-
} else
|
|
6615
|
-
let
|
|
6616
|
-
t[112] !==
|
|
6617
|
-
deckRef:
|
|
6612
|
+
contentStyle: Ve
|
|
6613
|
+
}, t)) }, t), t[107] = E, t[108] = s.cells, t[109] = B, t[110] = Ve, t[111] = e) : e = t[111], _t = Fe.stacks.map(e), t[101] = Fe.stacks, t[102] = E, t[103] = s.cells, t[104] = B, t[105] = Ve, t[106] = _t;
|
|
6614
|
+
} else _t = t[106];
|
|
6615
|
+
let vt;
|
|
6616
|
+
t[112] !== pe || t[113] !== it || t[114] !== ct || t[115] !== nt || t[116] !== Ge || t[117] !== _t ? (vt = /* @__PURE__ */ (0, W.jsx)(gt, {
|
|
6617
|
+
deckRef: j,
|
|
6618
6618
|
className: "aspect-video w-full overflow-hidden border rounded bg-background mo-slides-theme prose-slides focus:outline-hidden focus-visible:outline-hidden",
|
|
6619
|
-
config:
|
|
6620
|
-
onReady:
|
|
6621
|
-
onSlideChange:
|
|
6622
|
-
onFragmentShown:
|
|
6623
|
-
onFragmentHidden:
|
|
6624
|
-
plugins:
|
|
6625
|
-
children:
|
|
6626
|
-
}), t[112] =
|
|
6627
|
-
let
|
|
6628
|
-
t[119] !== E || t[120] !==
|
|
6619
|
+
config: Ge,
|
|
6620
|
+
onReady: it,
|
|
6621
|
+
onSlideChange: ct,
|
|
6622
|
+
onFragmentShown: nt,
|
|
6623
|
+
onFragmentHidden: nt,
|
|
6624
|
+
plugins: pe,
|
|
6625
|
+
children: _t
|
|
6626
|
+
}), t[112] = pe, t[113] = it, t[114] = ct, t[115] = nt, t[116] = Ge, t[117] = _t, t[118] = vt) : vt = t[118];
|
|
6627
|
+
let G;
|
|
6628
|
+
t[119] !== E || t[120] !== we || t[121] !== R || t[122] !== ut || t[123] !== ft || t[124] !== mt || t[125] !== Ve || t[126] !== oe ? (G = R && /* @__PURE__ */ (0, W.jsxs)("div", {
|
|
6629
6629
|
className: "absolute inset-0 z-10 border rounded bg-background flex flex-col overflow-hidden",
|
|
6630
|
-
"aria-label":
|
|
6631
|
-
children: [
|
|
6630
|
+
"aria-label": ut ?? void 0,
|
|
6631
|
+
children: [ut && /* @__PURE__ */ (0, W.jsxs)("div", {
|
|
6632
6632
|
className: "flex items-center gap-1.5 px-3 py-1.5 text-xs text-muted-foreground border-b bg-muted/40",
|
|
6633
|
-
children: [/* @__PURE__ */ (0,
|
|
6634
|
-
}), /* @__PURE__ */ (0,
|
|
6633
|
+
children: [/* @__PURE__ */ (0, W.jsx)(f, { className: "h-3.5 w-3.5" }), /* @__PURE__ */ (0, W.jsx)("span", { children: ut })]
|
|
6634
|
+
}), /* @__PURE__ */ (0, W.jsx)("div", {
|
|
6635
6635
|
className: "reveal mo-slides-theme prose-slides absolute left-1/2 top-1/2",
|
|
6636
6636
|
"data-testid": "slide-preview-canvas",
|
|
6637
6637
|
style: {
|
|
6638
6638
|
position: "absolute",
|
|
6639
6639
|
width: qi,
|
|
6640
6640
|
height: Ji,
|
|
6641
|
-
transform: `translate(-50%, -50%) scale(${
|
|
6641
|
+
transform: `translate(-50%, -50%) scale(${oe})`
|
|
6642
6642
|
},
|
|
6643
|
-
children: /* @__PURE__ */ (0,
|
|
6644
|
-
className:
|
|
6645
|
-
style:
|
|
6646
|
-
children: /* @__PURE__ */ (0,
|
|
6647
|
-
cell:
|
|
6648
|
-
isNoOutputPreview:
|
|
6643
|
+
children: /* @__PURE__ */ (0, W.jsx)(nr, { children: /* @__PURE__ */ (0, W.jsx)("div", {
|
|
6644
|
+
className: mt ? "mo-slide-content flex flex-col gap-3" : "mo-slide-content",
|
|
6645
|
+
style: Ve,
|
|
6646
|
+
children: /* @__PURE__ */ (0, W.jsx)(da, {
|
|
6647
|
+
cell: R,
|
|
6648
|
+
isNoOutputPreview: we,
|
|
6649
6649
|
isEditable: E,
|
|
6650
|
-
showCode:
|
|
6650
|
+
showCode: ft
|
|
6651
6651
|
})
|
|
6652
6652
|
}) })
|
|
6653
6653
|
})]
|
|
6654
|
-
},
|
|
6655
|
-
let
|
|
6656
|
-
t[128] !==
|
|
6657
|
-
content:
|
|
6658
|
-
children: /* @__PURE__ */ (0,
|
|
6654
|
+
}, R.id), t[119] = E, t[120] = we, t[121] = R, t[122] = ut, t[123] = ft, t[124] = mt, t[125] = Ve, t[126] = oe, t[127] = G) : G = t[127];
|
|
6655
|
+
let yt;
|
|
6656
|
+
t[128] !== Ae || t[129] !== Me || t[130] !== L || t[131] !== U ? (yt = L && /* @__PURE__ */ (0, W.jsx)(l, {
|
|
6657
|
+
content: Me ? "Code is always shown for this slide" : Ae ? "Hide code (C)" : "Show code (C)",
|
|
6658
|
+
children: /* @__PURE__ */ (0, W.jsx)(a, {
|
|
6659
6659
|
"data-testid": "marimo-plugin-slides-toggle-code",
|
|
6660
6660
|
variant: "ghost",
|
|
6661
6661
|
size: "icon",
|
|
6662
|
-
className: n("text-muted-foreground h-7 w-7",
|
|
6663
|
-
"aria-pressed":
|
|
6664
|
-
"aria-disabled":
|
|
6665
|
-
"aria-label":
|
|
6666
|
-
onClick:
|
|
6667
|
-
children: /* @__PURE__ */ (0,
|
|
6662
|
+
className: n("text-muted-foreground h-7 w-7", Ae && "text-foreground bg-muted", Me && "opacity-50 cursor-not-allowed"),
|
|
6663
|
+
"aria-pressed": Ae,
|
|
6664
|
+
"aria-disabled": Me,
|
|
6665
|
+
"aria-label": Me ? "Code always shown" : Ae ? "Hide code" : "Show code",
|
|
6666
|
+
onClick: U,
|
|
6667
|
+
children: /* @__PURE__ */ (0, W.jsx)(d, { className: "h-4 w-4" })
|
|
6668
6668
|
})
|
|
6669
|
-
}), t[128] =
|
|
6670
|
-
let
|
|
6671
|
-
t[133] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
6669
|
+
}), t[128] = Ae, t[129] = Me, t[130] = L, t[131] = U, t[132] = yt) : yt = t[132];
|
|
6670
|
+
let xt;
|
|
6671
|
+
t[133] === Symbol.for("react.memo_cache_sentinel") ? (xt = /* @__PURE__ */ (0, W.jsx)(l, {
|
|
6672
6672
|
content: "Fullscreen (F)",
|
|
6673
|
-
children: /* @__PURE__ */ (0,
|
|
6673
|
+
children: /* @__PURE__ */ (0, W.jsx)(a, {
|
|
6674
6674
|
"data-testid": "marimo-plugin-slides-fullscreen",
|
|
6675
6675
|
variant: "ghost",
|
|
6676
6676
|
size: "icon",
|
|
6677
6677
|
className: "text-muted-foreground h-7 w-7",
|
|
6678
6678
|
"aria-label": "Enter fullscreen",
|
|
6679
6679
|
onClick: () => {
|
|
6680
|
-
|
|
6680
|
+
j.current?.getViewportElement()?.requestFullscreen().catch(_a);
|
|
6681
6681
|
},
|
|
6682
|
-
children: /* @__PURE__ */ (0,
|
|
6682
|
+
children: /* @__PURE__ */ (0, W.jsx)(u, { className: "h-4 w-4" })
|
|
6683
6683
|
})
|
|
6684
|
-
}), t[133] =
|
|
6685
|
-
let xt;
|
|
6686
|
-
t[134] === vt ? xt = t[135] : (xt = /* @__PURE__ */ (0, G.jsxs)("div", {
|
|
6687
|
-
className: "absolute top-2 right-2 z-20 opacity-0 group-hover:opacity-70 text-muted-foreground transition-opacity",
|
|
6688
|
-
children: [vt, bt]
|
|
6689
|
-
}), t[134] = vt, t[135] = xt);
|
|
6684
|
+
}), t[133] = xt) : xt = t[133];
|
|
6690
6685
|
let St;
|
|
6691
|
-
t[
|
|
6692
|
-
|
|
6686
|
+
t[134] === yt ? St = t[135] : (St = /* @__PURE__ */ (0, W.jsxs)("div", {
|
|
6687
|
+
className: "absolute top-2 right-2 z-20 opacity-0 group-hover:opacity-70 text-muted-foreground transition-opacity",
|
|
6688
|
+
children: [yt, xt]
|
|
6689
|
+
}), t[134] = yt, t[135] = St);
|
|
6690
|
+
let Ct;
|
|
6691
|
+
t[136] !== ht || t[137] !== vt || t[138] !== G || t[139] !== St ? (Ct = /* @__PURE__ */ (0, W.jsx)("div", {
|
|
6692
|
+
ref: O,
|
|
6693
6693
|
className: "h-full w-full min-w-0 flex items-center justify-center overflow-hidden",
|
|
6694
|
-
children: /* @__PURE__ */ (0,
|
|
6694
|
+
children: /* @__PURE__ */ (0, W.jsxs)("div", {
|
|
6695
6695
|
className: "group relative",
|
|
6696
|
-
style:
|
|
6696
|
+
style: ht,
|
|
6697
6697
|
children: [
|
|
6698
|
-
|
|
6699
|
-
|
|
6700
|
-
|
|
6698
|
+
vt,
|
|
6699
|
+
G,
|
|
6700
|
+
St
|
|
6701
6701
|
]
|
|
6702
6702
|
})
|
|
6703
|
-
}), t[136] =
|
|
6704
|
-
let
|
|
6703
|
+
}), t[136] = ht, t[137] = vt, t[138] = G, t[139] = St, t[140] = Ct) : Ct = t[140];
|
|
6704
|
+
let K = Ct;
|
|
6705
6705
|
if (C === "read") {
|
|
6706
6706
|
let e;
|
|
6707
|
-
return t[141] ===
|
|
6707
|
+
return t[141] === K ? e = t[142] : (e = /* @__PURE__ */ (0, W.jsx)("div", {
|
|
6708
6708
|
className: "flex-1 min-w-0 flex flex-row gap-3",
|
|
6709
|
-
children:
|
|
6710
|
-
}), t[141] =
|
|
6709
|
+
children: K
|
|
6710
|
+
}), t[141] = K, t[142] = e), e;
|
|
6711
6711
|
}
|
|
6712
|
-
let
|
|
6713
|
-
t[143] ===
|
|
6712
|
+
let q;
|
|
6713
|
+
t[143] === K ? q = t[144] : (q = /* @__PURE__ */ (0, W.jsx)(m, {
|
|
6714
6714
|
defaultSize: 92,
|
|
6715
6715
|
minSize: 60,
|
|
6716
|
-
children:
|
|
6717
|
-
}), t[143] =
|
|
6718
|
-
let
|
|
6719
|
-
t[145] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
6716
|
+
children: K
|
|
6717
|
+
}), t[143] = K, t[144] = q);
|
|
6718
|
+
let wt;
|
|
6719
|
+
t[145] === Symbol.for("react.memo_cache_sentinel") ? (wt = {
|
|
6720
6720
|
coarse: 12,
|
|
6721
6721
|
fine: 4
|
|
6722
|
-
}, t[145] =
|
|
6723
|
-
let
|
|
6724
|
-
t[146] ===
|
|
6722
|
+
}, t[145] = wt) : wt = t[145];
|
|
6723
|
+
let J;
|
|
6724
|
+
t[146] === ae ? J = t[147] : (J = /* @__PURE__ */ (0, W.jsx)(y, {
|
|
6725
6725
|
className: "mo-slides-notes-resize",
|
|
6726
|
-
hitAreaMargins:
|
|
6727
|
-
disabled:
|
|
6728
|
-
}), t[146] =
|
|
6729
|
-
let
|
|
6730
|
-
t[148] !== s || t[149] !== c || t[150] !==
|
|
6726
|
+
hitAreaMargins: wt,
|
|
6727
|
+
disabled: ae
|
|
6728
|
+
}), t[146] = ae, t[147] = J);
|
|
6729
|
+
let Tt = Se?.id, Y;
|
|
6730
|
+
t[148] !== s || t[149] !== c || t[150] !== Tt ? (Y = /* @__PURE__ */ (0, W.jsx)(m, {
|
|
6731
6731
|
defaultSize: 10,
|
|
6732
6732
|
minSize: 4,
|
|
6733
6733
|
collapsible: !0,
|
|
6734
6734
|
collapsedSize: 4,
|
|
6735
|
-
children: /* @__PURE__ */ (0,
|
|
6735
|
+
children: /* @__PURE__ */ (0, W.jsx)(fr, {
|
|
6736
6736
|
layout: s,
|
|
6737
6737
|
setLayout: c,
|
|
6738
|
-
cellId:
|
|
6738
|
+
cellId: Tt
|
|
6739
6739
|
})
|
|
6740
|
-
}), t[148] = s, t[149] = c, t[150] =
|
|
6741
|
-
let
|
|
6742
|
-
t[152] !==
|
|
6740
|
+
}), t[148] = s, t[149] = c, t[150] = Tt, t[151] = Y) : Y = t[151];
|
|
6741
|
+
let Et;
|
|
6742
|
+
t[152] !== q || t[153] !== J || t[154] !== Y ? (Et = /* @__PURE__ */ (0, W.jsxs)(S, {
|
|
6743
6743
|
direction: "vertical",
|
|
6744
6744
|
autoSaveId: "marimo:slides:notes-panel",
|
|
6745
6745
|
className: "flex-1 min-w-0",
|
|
6746
6746
|
children: [
|
|
6747
|
+
q,
|
|
6747
6748
|
J,
|
|
6748
|
-
Y
|
|
6749
|
-
X
|
|
6749
|
+
Y
|
|
6750
6750
|
]
|
|
6751
|
-
}), t[152] =
|
|
6752
|
-
let
|
|
6753
|
-
t[156] !==
|
|
6751
|
+
}), t[152] = q, t[153] = J, t[154] = Y, t[155] = Et) : Et = t[155];
|
|
6752
|
+
let Dt;
|
|
6753
|
+
t[156] !== Se || t[157] !== w || t[158] !== s || t[159] !== c ? (Dt = /* @__PURE__ */ (0, W.jsx)(_, {
|
|
6754
6754
|
configWidth: w,
|
|
6755
6755
|
layout: s,
|
|
6756
6756
|
setLayout: c,
|
|
6757
|
-
activeConfigCell:
|
|
6758
|
-
}), t[156] =
|
|
6759
|
-
let
|
|
6760
|
-
return t[161] !==
|
|
6757
|
+
activeConfigCell: Se
|
|
6758
|
+
}), t[156] = Se, t[157] = w, t[158] = s, t[159] = c, t[160] = Dt) : Dt = t[160];
|
|
6759
|
+
let Ot;
|
|
6760
|
+
return t[161] !== Et || t[162] !== Dt ? (Ot = /* @__PURE__ */ (0, W.jsxs)("div", {
|
|
6761
6761
|
className: "flex-1 min-w-0 flex flex-row gap-3",
|
|
6762
|
-
children: [
|
|
6763
|
-
}), t[161] =
|
|
6762
|
+
children: [Et, Dt]
|
|
6763
|
+
}), t[161] = Et, t[162] = Dt, t[163] = Ot) : Ot = t[163], Ot;
|
|
6764
6764
|
};
|
|
6765
6765
|
function pa() {
|
|
6766
6766
|
return /* @__PURE__ */ new Set();
|