@marimo-team/islands 0.25.3-dev99 → 0.26.0
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-Dhf5EGs5.js → ConnectedDataExplorerComponent-DtwVgVpX.js} +190 -214
- package/dist/ErrorBoundary-j49HcVvR.js +213 -0
- package/dist/{ImageComparisonComponent-uU8FSKZE.js → ImageComparisonComponent-CoiwlCwG.js} +20 -20
- package/dist/{Plot-DdYOe1UK.js → Plot-BHJLG4xm.js} +2474 -3107
- package/dist/_baseSet-Bd5zh2yg.js +327 -0
- package/dist/{abnfDiagram-VCTEODGH-Di400kYu.js → abnfDiagram-VCTEODGH-BbZOIueZ.js} +5 -5
- package/dist/{any-language-editor-k2B8YI3Y.js → any-language-editor-yG-YmLaK.js} +9 -9
- package/dist/{apl-GEW9-ZP1.js → apl-stFrI2NB.js} +1 -1
- package/dist/{arc-7ra3iNdN.js → arc-4W6H62B5.js} +1 -1
- package/dist/architecture-7GRP2DOG-GlkXha5_.js +2 -0
- package/dist/{architectureDiagram-5GKGNRK7-BdTJcsNJ.js → architectureDiagram-5GKGNRK7-qjLjxapm.js} +48 -64
- package/dist/{arrays-R6JsImiT.js → arrays-DoQ-AILx.js} +7 -27
- package/dist/{asciiarmor-BWNxzkG7.js → asciiarmor-DHwFuaIC.js} +1 -1
- package/dist/{asn1-Bcn2QutK.js → asn1-KIH4fwAq.js} +1 -1
- package/dist/assertNever-DywGMo-S.js +507 -0
- package/dist/assets/__vite-browser-external-DZv_7F5P.js +1 -0
- package/dist/assets/worker-cHYZNFD4.js +171 -0
- package/dist/{blockDiagram-I7D4REHJ-Cg25UrxT.js → blockDiagram-I7D4REHJ-BoCyD5KO.js} +28 -39
- package/dist/{brainfuck-BQCYDheZ.js → brainfuck-UPAij4U9.js} +1 -1
- package/dist/{button-BxB3RDjN.js → button-qQhINE7z.js} +63 -63
- package/dist/{c4Diagram-7LVT6UL2-BxFgrnNV.js → c4Diagram-7LVT6UL2-DmcTtm4p.js} +8 -8
- package/dist/{capabilities-BgR0osfN.js → capabilities-DKqMqBzm.js} +2 -2
- package/dist/{channel-CPObtJXj.js → channel-B9eaiezW.js} +1 -1
- package/dist/{chat-ui-BIgPxfPP.js → chat-ui-D5YPIONI.js} +3110 -2917
- package/dist/{check-P35dc2dH.js → check-jchHMCfs.js} +1 -1
- package/dist/{chunk-4HAMMTFA-D4eFPyFh.js → chunk-4HAMMTFA-qKgadZwy.js} +6 -6
- package/dist/{chunk-75Z2AOVW-D7gxIs2Q.js → chunk-75Z2AOVW-76L6My3P.js} +4 -4
- package/dist/{chunk-YOKDWASO-DKplTrBY.js → chunk-7TTQLYRW-DBSfUUe5.js} +6253 -5835
- package/dist/{chunk-DU6HZSFF-BwiyaNpg.js → chunk-DU6HZSFF-4SDIhUTY.js} +14 -22
- package/dist/{chunk-F27PBJKO-ufseIn5y.js → chunk-F27PBJKO-COH2t-FO.js} +3 -3
- package/dist/{chunk-FOHPRMQF-BpYR8RqP.js → chunk-FOHPRMQF-ezmr_yWy.js} +49 -58
- package/dist/{chunk-GMAD6QVW-BhaJx0X3.js → chunk-GMAD6QVW-BJGF8QZL.js} +16 -75
- package/dist/{chunk-GVQU2GXP-Cwbt-lF0.js → chunk-GVQU2GXP-BkolpSXU.js} +3 -3
- package/dist/{chunk-IMKFNOWR-mtD7aJBw.js → chunk-IMKFNOWR-BzDY1_I7.js} +8 -8
- package/dist/{chunk-L3NEJ4N5-n-zgIVSy.js → chunk-L3NEJ4N5-B-BFQp9t.js} +6 -6
- package/dist/{chunk-OSK3NFVY-DXa-Cxbn.js → chunk-OSK3NFVY-BzfZ4VBG.js} +8 -8
- package/dist/{chunk-P2QGCYS3-B_Zd3-X0.js → chunk-P2QGCYS3-DJApLVdt.js} +1 -1
- package/dist/{chunk-POPQ4Y6H-hYOXbYH_.js → chunk-POPQ4Y6H-BFSZel4w.js} +2 -2
- package/dist/{chunk-PWAF6VOD-CQw5qATZ.js → chunk-PWAF6VOD-CRu_RGP2.js} +2 -2
- package/dist/{chunk-SHT3W25Y-DybB1ShH.js → chunk-SHT3W25Y-DbHsMKdo.js} +10 -10
- package/dist/{chunk-SVP7TREG-DNhhdCex.js → chunk-SVP7TREG-CtwnwAE6.js} +3 -3
- package/dist/{chunk-TICWLB2K-NhAQhlDf.js → chunk-TICWLB2K-C5Z5QMbO.js} +10 -10
- package/dist/{chunk-XXDRQBXY-Dnl5VBqG.js → chunk-XXDRQBXY-BM-YIt-_.js} +1 -1
- package/dist/classDiagram-ZZMXUADV-B8E5Hn78.js +30 -0
- package/dist/classDiagram-v2-VYDZK3BY-DeGsK9bT.js +30 -0
- package/dist/{clike-CxK9W55Z.js → clike-xU8sCVU1.js} +2 -6
- package/dist/{clojure-Dzcvwpxk.js → clojure-psoSEo36.js} +1 -1
- package/dist/{cmake-DYr-71zp.js → cmake-DDHBwlE7.js} +1 -1
- package/dist/{cobol-DC3g37Kq.js → cobol-C4qjDcIq.js} +1 -1
- package/dist/code-visibility-DE4l3OCD.js +130 -0
- package/dist/{coffeescript-C-eFwH5N.js → coffeescript-D6UgrGgo.js} +1 -1
- package/dist/{common-iaqaS3Sy.js → common-C0gNagW9.js} +10975 -10314
- package/dist/{commonlisp-CyaNXrJR.js → commonlisp-B0ChVjnu.js} +1 -1
- package/dist/{compiler-runtime-CldRdSsv.js → compiler-runtime-C5KHtL5D.js} +3 -3
- package/dist/{toDate-DKH0_kMo.js → config-qTaTHnpE.js} +96 -180
- package/dist/{copy-icon-CPoxUG7G.js → copy-icon-BI7vZHEW.js} +46 -41
- package/dist/{cose-bilkent-JH36ORCC-_LyRKVqm.js → cose-bilkent-JH36ORCC-B_Oz4vMP.js} +58 -71
- package/dist/createReducer-DdSLRfBT.js +67 -0
- package/dist/{crystal-ih5ax5tQ.js → crystal-DZsc9Ue0.js} +1 -1
- package/dist/{css-CN_wP7_R.js → css-DkYRnQ9U.js} +1 -1
- package/dist/{cubic-OaEBhQPK.js → cubic-CA80xY_e.js} +6 -7
- package/dist/cynefin-OW5HDTMX-0-HehVvH.js +2 -0
- package/dist/{cynefinDiagram-5FMLGOSQ-CX22wa7c.js → cynefinDiagram-5FMLGOSQ-NDedRwsw.js} +5 -5
- package/dist/{cypher-CqGRcmZo.js → cypher-CpWPqgvy.js} +1 -1
- package/dist/{cytoscape.esm-jJhXJpLB.js → cytoscape.esm-BbeMznK5.js} +411 -512
- package/dist/{d-Cj0sOW2z.js → d-Bx2ggfYO.js} +1 -1
- package/dist/{dagre-BGSfXNEb.js → dagre-CpjuekF1.js} +550 -700
- package/dist/{dagre-GXQ25YYZ-Df6Pp-cl.js → dagre-GXQ25YYZ-De0sSZO7.js} +14 -16
- package/dist/{data-grid-overlay-editor-C_cWoUm0.js → data-grid-overlay-editor-c9kODieo.js} +8 -8
- package/dist/{data-grid-types-0PJ-9N5n.js → data-grid-types-DIX_pCco.js} +2 -2
- package/dist/{debounce-C3jyATpc.js → debounce-DrhhziJv.js} +2 -2
- package/dist/{diagram-S7CK7UJ4-CctU9kVx.js → diagram-S7CK7UJ4-wBtVl61y.js} +7 -15
- package/dist/{diagram-UQ7AKVKN-FVHjCF9j.js → diagram-UQ7AKVKN-CKWE3c1T.js} +5 -5
- package/dist/{diagram-VSXAHHWV-BJWcVVJY.js → diagram-VSXAHHWV-LXjisZoM.js} +6 -6
- package/dist/{diagram-VX7I27RA-BSDbwFFv.js → diagram-VX7I27RA-D2Ac5198.js} +7 -7
- package/dist/{diagram-Z3DM3KII-BX8kW7Nc.js → diagram-Z3DM3KII-CYaFOQcI.js} +5 -5
- package/dist/{dialog-C1PcpCqX.js → dialog-Ic6dh09m.js} +25 -25
- package/dist/{diff-B_hUkiat.js → diff-DNXaJS8v.js} +1 -1
- package/dist/{dist-Bvs24R_E.js → dist-B1qu3Bez.js} +55 -54
- package/dist/{dist-D-wwqlzJ.js → dist-BEcpQbZa.js} +78 -77
- package/dist/{dist-CrSP_H1M.js → dist-BMz__bo5.js} +317 -317
- package/dist/{dist-Cg7gzw-a.js → dist-BagHbFqG.js} +70 -69
- package/dist/{dist-C8fAKSH1.js → dist-BdUitvVW.js} +65 -64
- package/dist/{dist-BuaRHxOc.js → dist-BfrgytDR.js} +45 -44
- package/dist/{dist-CSJ0MDRw.js → dist-BozTF_gH.js} +56 -55
- package/dist/{dist-DiDibOYr.js → dist-BreKIQqQ.js} +149 -148
- package/dist/{dist-CN8zI-XC.js → dist-BsE4gQHj.js} +555 -555
- package/dist/{dist-F8Ep36rk.js → dist-BunZKA_9.js} +60 -59
- package/dist/dist-BvZpdAuG.js +850 -0
- package/dist/{dist-DUAh96QY.js → dist-CB9MzCXv.js} +1 -1
- package/dist/{dist-BK4Oj99o.js → dist-CDVvitRS.js} +18 -17
- package/dist/{dist-CN_BeG2I.js → dist-CEomphG1.js} +59 -58
- package/dist/{dist-BMQf5zIS.js → dist-ChcBm3jk.js} +166 -165
- package/dist/{dist-Lm-D-Vr6.js → dist-CiSkXlAO.js} +3 -3
- package/dist/{dist-D6d86eNJ.js → dist-Cshl6jBw.js} +46 -45
- package/dist/{dist-DBtSl3sf.js → dist-D1D56-GS.js} +54 -56
- package/dist/{dist-DoE4XJBC.js → dist-D92tYjLc.js} +9845 -10688
- package/dist/{dist-OR1OnN-y.js → dist-D95Cd4xm.js} +53 -52
- package/dist/{dist-BorMD-uX.js → dist-DNkrY12t.js} +94 -93
- package/dist/{dist-BLfKmR-l.js → dist-DneeBk3K.js} +18 -17
- package/dist/{dist-diIx5qJW.js → dist-DpYpG8Yc.js} +37 -36
- package/dist/{dist-CkTTIdBe.js → dist-MggMo7OR.js} +243 -243
- package/dist/{dist-PXYI_yuP.js → dist-ObeTgSmf.js} +27 -26
- package/dist/{dist-CLdpGQVr.js → dist-OmeAz0fR.js} +114 -116
- package/dist/{dist-CSbh1PNP.js → dist-TGSwzj8a.js} +26 -25
- package/dist/dropdown-menu-Dhv4fcNl.js +5982 -0
- package/dist/{dtd-B8FGSWWe.js → dtd-D1YZQCVT.js} +1 -1
- package/dist/duckdb-keywords-CdzX4o33.js +3 -0
- package/dist/{dylan-DbIBYIrw.js → dylan-CxbG-PUm.js} +2 -2
- package/dist/{ebnfDiagram-PWID7BFC-DtapdLet.js → ebnfDiagram-PWID7BFC-Ds7f42dj.js} +5 -5
- package/dist/{ecl-DBmkdWAd.js → ecl-DIXH6vul.js} +1 -1
- package/dist/{eiffel-CcWSDDzK.js → eiffel-D0de-eQr.js} +1 -1
- package/dist/{elm-MC-b8a6C.js → elm-DrQrn4VD.js} +1 -1
- package/dist/{erDiagram-RLTQ6QDP-BAru9jHt.js → erDiagram-RLTQ6QDP-b58Sz2Mc.js} +14 -14
- package/dist/{erlang-AdO1-xtV.js → erlang-2KpKpfC7.js} +1 -1
- package/dist/{error-banner-Sl2FlSJ4.js → error-banner-CJVLr5_a.js} +147 -147
- package/dist/error-entries-BKlEsuk4.js +3255 -0
- package/dist/{esm-D2gTsXEV.js → esm-B9n0caHs.js} +643 -644
- package/dist/{esm-AMFssoNp.js → esm-Bwp_FHP0.js} +331 -331
- package/dist/{esm-G4Fhsgng.js → esm-DQtHTnHn.js} +640 -660
- package/dist/eventmodeling-NTZA5JFV-DoBvB4Lj.js +2 -0
- package/dist/{factor-Ys-13HOP.js → factor-Bwu3ZGOk.js} +1 -1
- package/dist/feedback-button-CGsCufLe.js +370 -0
- package/dist/flowDiagram-HODETNUW-BH9U7VZK.js +15 -0
- package/dist/{formats-V8ifA0Bk.js → formats-BLNFWWhV.js} +9 -9
- package/dist/{forth-DiMuIXFe.js → forth-DYatDpr6.js} +2 -3
- package/dist/{fortran-hkrF2eM4.js → fortran-n8mcQPkL.js} +1 -1
- package/dist/{ganttDiagram-EL5Y4UJY-Dh_4cBJZ.js → ganttDiagram-EL5Y4UJY-YzTghq1V.js} +17 -17
- package/dist/{gas-DlhqN9k8.js → gas-BUZOHBVw.js} +1 -1
- package/dist/{gherkin-0SlhEZ3t.js → gherkin-CrSjX26K.js} +1 -1
- package/dist/gitGraph-4MIJSDKK-Ch7kj-d2.js +2 -0
- package/dist/{gitGraphDiagram-WWUBYQGX-D5nSIzdE.js → gitGraphDiagram-WWUBYQGX-CK66dT35.js} +4 -4
- package/dist/{glide-data-editor-BtpcH-zL.js → glide-data-editor-BkGI_Mj6.js} +6717 -2965
- package/dist/{glide-utils-Bt8_pBa2.js → glide-utils-Cn2_NadX.js} +109 -78
- package/dist/{globals-BJP2vdQ8.js → globals-DFJad_Ry.js} +3 -3
- package/dist/{graphlib-BmY_CCV9.js → graphlib-nlwT3Wvy.js} +177 -220
- package/dist/{groovy-YhcTMyvX.js → groovy-IgGNjeU9.js} +1 -1
- package/dist/hasIn-C20JsQ2m.js +28 -0
- package/dist/{haskell-CodLxrtT.js → haskell-Bs1k3a9s.js} +1 -1
- package/dist/{haxe-CiRWNFkH.js → haxe-CQ8Yb3XF.js} +1 -1
- package/dist/highlighted-body-JLMTFACH-yt0ZZn80.js +42 -0
- package/dist/{error-entries-TAO6kEhF.js → html-to-image-CNM0ZSFD.js} +26321 -26406
- package/dist/{idl-DZgBq75I.js → idl-DjnxoAWx.js} +1 -1
- package/dist/info-A6RAGUB7-DCz_Egh9.js +2 -0
- package/dist/{infoDiagram-27XIBGKW-B1hmUggC.js → infoDiagram-27XIBGKW-xbjwrcNi.js} +4 -4
- package/dist/isArrayLikeObject-B-HXCsex.js +626 -0
- package/dist/isEmpty-CdX7MTE1.js +14 -0
- package/dist/{ishikawaDiagram-5VMMS53U-DUeT3t-d.js → ishikawaDiagram-5VMMS53U-DKtukhGS.js} +5 -7
- package/dist/{javascript-BfNytHiM.js → javascript-BQtCoAFy.js} +2 -2
- package/dist/{journeyDiagram-3NMN7TZE-BaLqn-dZ.js → journeyDiagram-3NMN7TZE-CYXsL3IE.js} +4 -4
- package/dist/{jsx-runtime-3BD1kT0s.js → jsx-runtime-D8btoEHk.js} +2 -2
- package/dist/{julia--tLIAG7q.js → julia-BfgtHJE5.js} +1 -1
- package/dist/{kanban-definition-UXKFOSKX-DEUnNNgc.js → kanban-definition-UXKFOSKX-BEhlkZBb.js} +10 -10
- package/dist/{katex-BIdZGsyO.js → katex-wAapZGrX.js} +793 -724
- package/dist/linear-TJTTbHM9.js +203 -0
- package/dist/{livescript-CVPfYnY_.js → livescript-gIdRPKtg.js} +1 -1
- package/dist/{loader-Bm8cy3e8.js → loader-Bin_dutt.js} +12 -12
- package/dist/lru-0OWJJMrW.js +41 -0
- package/dist/{lua-4Fa-T-qq.js → lua-CxFpWvnv.js} +2 -2
- package/dist/main.js +11758 -9367
- package/dist/{mathematica-CtYAy6GG.js → mathematica-QSveeEoW.js} +1 -1
- package/dist/{mbox-D0w9Ah1C.js → mbox-2JtaCPNT.js} +1 -1
- package/dist/{mermaid-B0fXpsNP.js → mermaid-D1CZDNoB.js} +1195 -1182
- package/dist/mermaid-WFAXDIZX-DHB2z13u.js +1 -0
- package/dist/{mermaid-parser.core-DxuSfYwJ.js → mermaid-parser.core-DtOnl7m4.js} +19 -25
- package/dist/{mhchem-CdWPJK6g.js → mhchem-CX8M7Ktl.js} +1 -1
- package/dist/{micromark-factory-space-DGxAzmw8.js → micromark-factory-space-C5soVmaM.js} +1 -1
- package/dist/{mindmap-definition-YA3MSWOX-CPexlhDQ.js → mindmap-definition-YA3MSWOX-DQcnJPcV.js} +13 -13
- package/dist/{mirc-De9aSAZM.js → mirc-BqD6ade4.js} +1 -1
- package/dist/{mllike-BbugeaY_.js → mllike-CT0hgEOO.js} +1 -1
- package/dist/{modelica-BjJwWw1F.js → modelica-DKKebcvq.js} +1 -1
- package/dist/{mscgen-DwiRH5ma.js → mscgen-BJCCsWjR.js} +1 -1
- package/dist/{mumps--plbDM9o.js → mumps-DVQAXZkU.js} +1 -1
- package/dist/{nginx-C4Df7REc.js → nginx-AP4LH2NN.js} +1 -1
- package/dist/{node-sql-parser-BiZOJ-FS.js → node-sql-parser-C9dndbfr.js} +7184 -7195
- package/dist/{now-jM8-M7IR.js → now-BKZCLE5P.js} +12 -13
- package/dist/{nsis-fiiOqLc3.js → nsis-Cah9xkdT.js} +1 -1
- package/dist/{ntriples-jV77I4k8.js → ntriples-CQoaLOV6.js} +2 -2
- package/dist/{number-overlay-editor-CTy6GMzT.js → number-overlay-editor-Cfam2fQW.js} +17 -22
- package/dist/{octave-Cztd01tF.js → octave-CeDj2bTn.js} +1 -1
- package/dist/{once-eG8Vmvjd.js → once-NnpX_HnX.js} +1 -1
- package/dist/{oz-Bl8o3BDl.js → oz-BksQrg3k.js} +1 -1
- package/dist/packet-AYTQ26CC-DEMHgLPq.js +2 -0
- package/dist/{pascal-BO5JqysR.js → pascal-BKL17mpl.js} +1 -1
- package/dist/{pegDiagram-XKGWAZYB-CMpp1OOQ.js → pegDiagram-XKGWAZYB-BFQuPYfI.js} +5 -5
- package/dist/pencil-DVYzq-iR.js +10 -0
- package/dist/{perl-Drlh9s6m.js → perl-CacqJ-Ss.js} +1 -1
- package/dist/pick-DgpAbcwP.js +35 -0
- package/dist/pie-WAS4IAKB-DMjTEeHd.js +2 -0
- package/dist/{pieDiagram-E7YTZNPT-DlMWg5t1.js → pieDiagram-E7YTZNPT-l7aqNrem.js} +7 -7
- package/dist/{pig-BWGR8wZw.js → pig-CXSGZ_K9.js} +1 -1
- package/dist/{powershell-DT99xlz_.js → powershell-DY_yIxBM.js} +3 -6
- package/dist/precisionRound-DMIVQrt2.js +97 -0
- package/dist/{process-output-DD-oSvZk.js → process-output-DthYR2Te.js} +19 -30
- package/dist/{properties-Q-rkxld0.js → properties-Om0IDE07.js} +1 -1
- package/dist/{protobuf-DKyWZbs7.js → protobuf-B8nxxb4Q.js} +1 -1
- package/dist/{pug-42ZJUbEC.js → pug-lkUBPvVS.js} +3 -7
- package/dist/{puppet-B4UozHhh.js → puppet-DMkXsi4d.js} +1 -1
- package/dist/purify.es-DmnrIjg4.js +877 -0
- package/dist/{python-DREjAV__.js → python-JQVycMgr.js} +1 -1
- package/dist/{q-Bi63IpBO.js → q-DqE__nNB.js} +1 -1
- package/dist/{quadrantDiagram-AXDQQJYC-Blrm7V7_.js → quadrantDiagram-AXDQQJYC-nGFBFig7.js} +3 -3
- package/dist/{r-DSwXWKMR.js → r-Cbliap7Q.js} +1 -1
- package/dist/radar-RG4KPBEZ-9PwdCvai.js +2 -0
- package/dist/railroad-74A4TZTK-8N9kF5jl.js +2 -0
- package/dist/railroad-abnf-HS5TGJTU-Sg6YmzlR.js +2 -0
- package/dist/railroad-ebnf-LZEXJU2U-CYwp2Oee.js +2 -0
- package/dist/railroad-peg-WCYAUIDC-BfDkAuQ3.js +2 -0
- package/dist/{railroadDiagram-O6MQD6OU-DBJfseeO.js → railroadDiagram-O6MQD6OU-6R3C1lwQ.js} +5 -5
- package/dist/{react-sHtZdjeP.js → react-Bgs_wQh3.js} +3 -3
- package/dist/{react-dom-DUmH0GXv.js → react-dom-DdqGVp5N.js} +5 -5
- package/dist/{react-vega-C4T9Rb_w.js → react-vega-CGgQEf0O.js} +13800 -17236
- package/dist/{requirementDiagram-BXWQKSXE-BC7V639r.js → requirementDiagram-BXWQKSXE-DdWYu8fn.js} +13 -13
- package/dist/{reveal-component-C7puatnn.js → reveal-component-CfIt-nJV.js} +1003 -1117
- package/dist/{rolldown-runtime-Cb76FRpK.js → rolldown-runtime-BPCzCO3I.js} +1 -1
- package/dist/{rpm-DPb1DeKM.js → rpm-DmT_LNpE.js} +1 -1
- package/dist/{ruby-U7fZA4DP.js → ruby-BHVZTtLW.js} +1 -1
- package/dist/{sankeyDiagram-P5KCCOFB-ELvOcnZH.js → sankeyDiagram-P5KCCOFB-CrOfyc2n.js} +2 -2
- package/dist/{sas-CLk1JpTn.js → sas-CrG5N1he.js} +1 -1
- package/dist/{scheme-CT-2k2Tl.js → scheme-BHUnz-IB.js} +1 -1
- package/dist/select-CDUxhHZg.js +1198 -0
- package/dist/{sequenceDiagram-WJ2MYXX4-CgesU6F-.js → sequenceDiagram-WJ2MYXX4-Dzp0dgRc.js} +6 -6
- package/dist/{shell-BLO7fcsk.js → shell-C5IBmRU5.js} +1 -1
- package/dist/{sieve-nG3C7WNH.js → sieve-BzCnt_E6.js} +2 -2
- package/dist/{sizeCapture-INFHLROL-Dx5SpkQF.js → sizeCapture-INFHLROL-DBeZ20mI.js} +1 -1
- package/dist/{smalltalk-BROcZybA.js → smalltalk-DQFAQul3.js} +1 -1
- package/dist/{solr-mVltHNc5.js → solr-BiapYPCk.js} +1 -1
- package/dist/{sparql-Cv1Ksr4v.js → sparql-BcUKO1is.js} +1 -1
- package/dist/{spec-CcT0slVc.js → spec-ZAt4P01J.js} +84 -57
- package/dist/{src-CA_m4ONl.js → src-D5uZaZib.js} +8 -14
- package/dist/{stateDiagram-D77RDMKH-lH_BUhs3.js → stateDiagram-D77RDMKH-BGnTUhFJ.js} +18 -18
- package/dist/stateDiagram-v2-MP3YSRHH-DsJbmDf1.js +30 -0
- package/dist/static-state-C4bAlKTU.js +68 -0
- package/dist/{stex-Btf3omL8.js → stex-CQ_aCGTF.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{stylus-Dt4VvLXL.js → stylus-D4gHF5lg.js} +1 -1
- package/dist/{swift-DHsn_CVI.js → swift-CnvIBnbt.js} +1 -1
- package/dist/{swimlanes-42K2YHIH-Cuf9B9kE.js → swimlanes-42K2YHIH-Bd4Bzh9r.js} +37 -59
- package/dist/swimlanesDiagram-VR7AAH4N-BlY12Jf6.js +30 -0
- package/dist/{swiper-component-DfhRvAFi.js → swiper-component-DTdNB9wg.js} +45 -78
- package/dist/{tcl-CV0OLBOl.js → tcl-DkOjjZYO.js} +1 -1
- package/dist/{textile-D320oKVM.js → textile-DgzBVSEW.js} +1 -1
- package/dist/{tiki-BF2aDPlB.js → tiki-MighF8A_.js} +1 -1
- package/dist/{time-BaMbJs4z.js → time-BlOl70lB.js} +19 -19
- package/dist/{timeline-definition-24CTP7MA-yzzw4TF4.js → timeline-definition-24CTP7MA-m0LanyCH.js} +5 -5
- package/dist/toast-U3NpO2x3.js +491 -0
- package/dist/{toml-CaUN7UHo.js → toml-B0B7UAba.js} +1 -1
- package/dist/{tooltip-CKO1pHJo.js → tooltip-UzJukb3F.js} +336 -312
- package/dist/treeView-Q6P3EWNA-BQywp0E1.js +2 -0
- package/dist/treemap-WGGIJYW6-P2ZJnldw.js +2 -0
- package/dist/{troff-DQUFcClZ.js → troff-B4IRX71y.js} +1 -1
- package/dist/{ttcn-CQL1duJS.js → ttcn-B4tpvdJD.js} +1 -1
- package/dist/{ttcn-cfg-BMmEFJPu.js → ttcn-cfg-pfE-1FV8.js} +1 -1
- package/dist/{turtle-C3esgsRr.js → turtle-Bc97ufp6.js} +1 -1
- package/dist/use-restore-focus-DaTVz6S6.js +7672 -0
- package/dist/{use-vega-container-remeasure-Bz4PZMtt.js → use-vega-container-remeasure-BrUpWQfF.js} +4 -8
- package/dist/{useAsyncData-D0mLJstx.js → useAsyncData-P5-Oovhq.js} +7 -7
- package/dist/{useDateFormatter-c_yJtkAe.js → useDateFormatter-LQNtoXyh.js} +5 -5
- package/dist/useDeepCompareMemoize-CmNbQ9TT.js +53 -0
- package/dist/useEvent-BoN7U38T.js +19 -0
- package/dist/{useIframeCapabilities-BkdeVdXC.js → useIframeCapabilities-HTZiVlGV.js} +2 -2
- package/dist/useLifecycle-DTMczKkf.js +112 -0
- package/dist/{vb-RK1eDXRl.js → vb-C5kpOY_q.js} +1 -1
- package/dist/{vbscript-BCOeM0de.js → vbscript-Ck0hgOg5.js} +1 -1
- package/dist/{vega-component-DgytCKrL.js → vega-component-ZTdbCcwI.js} +221 -227
- package/dist/{vega-embed-container--LYZqguO.js → vega-embed-container-DgpACsCB.js} +7 -7
- package/dist/{vega-loader.browser-B9Pz0EGP.js → vega-loader.browser-Co9gYE8Z.js} +637 -294
- package/dist/{velocity-CZKOFbOI.js → velocity-2Doc6dgJ.js} +1 -1
- package/dist/{vennDiagram-4TSXK5OY-eJOrTqqC.js → vennDiagram-4TSXK5OY-BJ7vqDmn.js} +4 -4
- package/dist/{verilog-DqQTzVn8.js → verilog-CmZmYe4R.js} +2 -2
- package/dist/{vhdl-vQr2bfmi.js → vhdl-esMnUHZm.js} +1 -1
- package/dist/wardley-WFR3VGLG-CIBJ6O2G.js +2 -0
- package/dist/{wardleyDiagram-VM6X3IG4-TILPvee6.js → wardleyDiagram-VM6X3IG4-D5kWacsn.js} +5 -5
- package/dist/{webidl-DzX7N40e.js → webidl-G_RlXG7G.js} +1 -1
- package/dist/{xquery-Cw_Q_hGR.js → xquery-IUQpMoMl.js} +1 -1
- package/dist/{xychartDiagram-S5SC5T6Z-DUPvRwwJ.js → xychartDiagram-S5SC5T6Z-gr15Ws_z.js} +8 -8
- package/dist/{yacas-DiC4jJBE.js → yacas-ObL0t2h9.js} +1 -1
- package/dist/{z80-CUOQDEJO.js → z80-jyuJhy0k.js} +1 -1
- package/package.json +38 -42
- package/src/__mocks__/document.tsx +64 -0
- package/src/__mocks__/executions.ts +301 -0
- package/src/__mocks__/notebook.ts +39 -46
- package/src/__mocks__/partial.ts +26 -0
- package/src/__mocks__/requests.ts +2 -8
- package/src/__tests__/CellStatus.test.tsx +25 -26
- package/src/__tests__/fixtures/pair-config.ts +1 -1
- package/src/__tests__/main.test.tsx +24 -1
- package/src/__tests__/module-entry.test.ts +44 -0
- package/src/__tests__/mount.test.ts +17 -58
- package/src/__tests__/{host-imports.test.ts → replica-imports.test.ts} +11 -11
- package/src/components/ai/__tests__/ai-model-dropdown.test.tsx +63 -0
- package/src/components/ai/__tests__/ai-utils.test.ts +8 -0
- package/src/components/ai/ai-model-dropdown.tsx +11 -6
- package/src/components/app-config/__tests__/add-model-discovery.test.tsx +255 -0
- package/src/components/app-config/__tests__/model-discovery.test.tsx +183 -0
- package/src/components/app-config/__tests__/state.test.tsx +50 -0
- package/src/components/app-config/ai-config.tsx +200 -187
- package/src/components/app-config/app-config-button.tsx +6 -5
- package/src/components/app-config/app-config-form.tsx +5 -9
- package/src/components/app-config/common.tsx +7 -9
- package/src/components/app-config/data-form.tsx +113 -116
- package/src/components/app-config/get-dirty-values.ts +4 -4
- package/src/components/app-config/mcp-config.tsx +30 -53
- package/src/components/app-config/model-discovery.tsx +157 -0
- package/src/components/app-config/model-provider-config.ts +25 -0
- package/src/components/app-config/state.ts +2 -0
- package/src/components/app-config/user-config-form.css +91 -0
- package/src/components/app-config/user-config-form.tsx +278 -350
- package/src/components/chat/__tests__/capabilities-popover.test.tsx +0 -1
- package/src/components/chat/__tests__/chat-display.test.tsx +196 -0
- package/src/components/chat/__tests__/chat-markdown.test.tsx +43 -0
- package/src/components/chat/__tests__/chat-utils.test.ts +141 -1
- package/src/components/chat/__tests__/message-queue.test.tsx +94 -1
- package/src/components/chat/__tests__/notebook-access-selector.test.tsx +64 -0
- package/src/components/chat/__tests__/notebook-context.test.ts +199 -0
- package/src/components/chat/__tests__/pending-chat-prompt.test.tsx +568 -0
- package/src/components/chat/__tests__/turn-timing.test.ts +84 -0
- package/src/components/chat/__tests__/use-assistant-turn.test.ts +95 -0
- package/src/components/chat/__tests__/useFileState.test.tsx +176 -15
- package/src/components/chat/__tests__/user-message.test.tsx +27 -0
- package/src/components/chat/acp/__tests__/agent-panel-initialization.test.tsx +1 -1
- package/src/components/chat/acp/__tests__/agent-panel.test.tsx +22 -17
- package/src/components/chat/acp/__tests__/session-tabs.test.tsx +43 -0
- package/src/components/chat/acp/agent-panel.tsx +6 -3
- package/src/components/chat/acp/blocks.tsx +11 -10
- package/src/components/chat/acp/common.tsx +4 -5
- package/src/components/chat/acp/model-selector.tsx +1 -1
- package/src/components/chat/acp/session-tabs.tsx +8 -3
- package/src/components/chat/agent-activity.tsx +132 -0
- package/src/components/chat/capabilities-popover.tsx +2 -11
- package/src/components/chat/chat-components.tsx +10 -6
- package/src/components/chat/chat-display.tsx +131 -57
- package/src/components/chat/chat-history-popover.tsx +6 -1
- package/src/components/chat/chat-markdown.tsx +15 -0
- package/src/components/chat/chat-panel.tsx +422 -358
- package/src/components/chat/chat-typography.css +108 -0
- package/src/components/chat/chat-utils.ts +168 -61
- package/src/components/chat/notebook-access-selector.stories.tsx +22 -0
- package/src/components/chat/notebook-access-selector.tsx +100 -0
- package/src/components/chat/notebook-context.ts +80 -0
- package/src/components/chat/tool-call/__tests__/tool-labels.test.ts +76 -0
- package/src/components/chat/tool-call/__tests__/tool-step.test.tsx +57 -0
- package/src/components/chat/tool-call/shared.ts +6 -0
- package/src/components/chat/tool-call/tool-call-view.tsx +22 -76
- package/src/components/chat/tool-call/tool-labels.ts +172 -0
- package/src/components/chat/tool-call/tool-result.tsx +1 -1
- package/src/components/chat/tool-call/tool-step.tsx +145 -0
- package/src/components/chat/turn-timing.ts +73 -0
- package/src/components/chat/use-assistant-turn.ts +65 -0
- package/src/components/chat/use-chat-generation.ts +20 -0
- package/src/components/chat/user-message.tsx +154 -0
- package/src/components/data-table/TableBottomBar.tsx +4 -1
- package/src/components/data-table/TableTopBar.tsx +2 -0
- package/src/components/data-table/__tests__/chart-spec-model.test.ts +195 -195
- package/src/components/data-table/__tests__/data-table.test.tsx +1 -0
- package/src/components/data-table/__tests__/keyboard-selection.test.tsx +188 -0
- package/src/components/data-table/__tests__/pagination.test.tsx +28 -1
- package/src/components/data-table/charts/__tests__/altair-generator.test.ts +42 -27
- package/src/components/data-table/charts/__tests__/spec-snapshot.test.ts +20 -20
- package/src/components/data-table/charts/__tests__/spec.test.ts +78 -52
- package/src/components/data-table/charts/chart-spec/altair-generator.ts +2 -6
- package/src/components/data-table/charts/chart-spec/spec.ts +68 -43
- package/src/components/data-table/charts/charts.tsx +5 -5
- package/src/components/data-table/column-formatting/types.ts +1 -2
- package/src/components/data-table/column-summary/chart-spec-model.tsx +23 -16
- package/src/components/data-table/data-table.tsx +10 -0
- package/src/components/data-table/pagination.tsx +44 -33
- package/src/components/data-table/range-focus/atoms.ts +4 -6
- package/src/components/data-table/range-focus/use-cell-range-selection.ts +65 -38
- package/src/components/data-table/range-focus/use-scroll-into-view.ts +21 -2
- package/src/components/data-table/renderers.tsx +16 -7
- package/src/components/data-table/row-viewer-panel/__tests__/row-viewer.test.tsx +24 -1
- package/src/components/data-table/row-viewer-panel/row-viewer.tsx +2 -2
- package/src/components/datasources/__tests__/column-preview.test.tsx +41 -11
- package/src/components/datasources/__tests__/datasources-interactions.test.tsx +334 -0
- package/src/components/datasources/__tests__/table-list.test.tsx +51 -1
- package/src/components/datasources/__tests__/utils.test.ts +117 -7
- package/src/components/datasources/column-preview.tsx +9 -10
- package/src/components/datasources/datasources.tsx +22 -22
- package/src/components/datasources/utils.ts +41 -27
- package/src/components/dependency-graph/__tests__/elements.test.ts +20 -11
- package/src/components/dependency-graph/custom-node.tsx +1 -1
- package/src/components/dependency-graph/dependency-graph-tree.tsx +23 -9
- package/src/components/dependency-graph/elements.ts +34 -44
- package/src/components/dependency-graph/minimap-content.tsx +15 -20
- package/src/components/dependency-graph/panels.tsx +2 -1
- package/src/components/dependency-graph/utils/__tests__/layout.test.ts +18 -11
- package/src/components/editor/Output.tsx +5 -4
- package/src/components/editor/__tests__/Output.test.tsx +50 -32
- package/src/{core/attachments/__tests__/toast.test.tsx → components/editor/__tests__/agent-toast.test.tsx} +1 -1
- package/src/components/editor/__tests__/data-attributes.test.tsx +39 -32
- package/src/components/editor/__tests__/dynamic-favicon.test.tsx +11 -16
- package/src/components/editor/__tests__/output-persistence.test.tsx +33 -32
- package/src/components/editor/__tests__/package-alert.test.tsx +22 -1
- package/src/components/editor/actions/__tests__/name-cell-input.test.tsx +70 -0
- package/src/components/editor/actions/__tests__/pair-with-agent-commands.test.ts +21 -40
- package/src/components/editor/actions/__tests__/pair-with-agent-modal.test.tsx +40 -14
- package/src/components/editor/actions/__tests__/pair-with-agent.test.tsx +6 -24
- package/src/components/editor/actions/__tests__/useCellActionButton.test.tsx +132 -0
- package/src/components/editor/actions/__tests__/useSetOutputsExpanded.test.ts +8 -9
- package/src/components/editor/actions/name-cell-input.tsx +4 -3
- package/src/components/editor/actions/pair-with-agent-commands.ts +10 -7
- package/src/components/editor/actions/pair-with-agent-modal.tsx +15 -18
- package/src/components/editor/actions/pair-with-agent.tsx +16 -39
- package/src/components/editor/actions/useCellActionButton.tsx +47 -35
- package/src/components/editor/actions/useConfigActions.tsx +3 -4
- package/src/components/editor/actions/useNotebookActions.tsx +25 -29
- package/src/components/editor/actions/useRestartKernel.tsx +0 -5
- package/src/components/editor/actions/useSetCodeVisibility.ts +11 -12
- package/src/components/editor/actions/useSetOutputsExpanded.ts +24 -24
- package/src/components/editor/ai/ai-completion-editor.tsx +1 -1
- package/src/components/editor/ai/completion-handlers.tsx +0 -37
- package/src/components/editor/ai/prompt-input.tsx +189 -0
- package/src/components/editor/alerts/__tests__/connection-notice.test.tsx +1 -1
- package/src/components/editor/alerts/connection-notice.tsx +1 -1
- package/src/components/editor/app-container.tsx +1 -1
- package/src/components/editor/boundary/ErrorBoundary.tsx +6 -2
- package/src/components/editor/boundary/__tests__/ErrorBoundary.test.tsx +5 -1
- package/src/components/editor/cell/CellStatus.tsx +47 -57
- package/src/components/editor/cell/CreateCellButton.tsx +7 -11
- package/src/components/editor/cell/DeleteButton.tsx +4 -4
- package/src/components/editor/cell/ReusableDefinitionBadge.tsx +62 -0
- package/src/components/editor/cell/RunButton.tsx +18 -8
- package/src/components/editor/cell/StagedAICell.tsx +52 -137
- package/src/components/editor/cell/StopButton.tsx +7 -7
- package/src/components/editor/cell/__tests__/useRunCells.test.tsx +149 -0
- package/src/components/editor/cell/cell-actions.tsx +12 -1
- package/src/components/editor/cell/cell-context-menu.tsx +24 -4
- package/src/components/editor/cell/code/__tests__/language-toggle.test.tsx +38 -1
- package/src/components/editor/cell/code/cell-editor.tsx +66 -169
- package/src/components/editor/cell/code/language-toggle.tsx +6 -4
- package/src/components/editor/cell/collapse.tsx +16 -6
- package/src/components/editor/cell/useAddCell.ts +4 -8
- package/src/components/editor/cell/useDeleteCell.tsx +10 -36
- package/src/components/editor/cell/useRunCells.ts +70 -59
- package/src/components/editor/cell/useSplitCell.tsx +10 -6
- package/src/components/editor/chrome/components/__tests__/feedback-button.test.tsx +1 -1
- package/src/components/editor/chrome/components/feedback-button.tsx +2 -8
- package/src/components/editor/chrome/panels/__tests__/packages-panel.test.tsx +1 -1
- package/src/components/editor/chrome/panels/__tests__/runtime-details.test.tsx +1 -1
- package/src/components/editor/chrome/panels/__tests__/sandbox-recovery.test.tsx +1 -1
- package/src/components/editor/chrome/panels/dependency-graph-panel.tsx +1 -1
- package/src/components/editor/chrome/panels/logs-panel.tsx +2 -1
- package/src/components/editor/chrome/panels/outline/__tests__/outline-keyboard.test.tsx +84 -0
- package/src/components/editor/chrome/panels/outline/floating-outline.tsx +39 -14
- package/src/components/editor/chrome/panels/outline/useActiveOutline.tsx +3 -2
- package/src/components/editor/chrome/panels/panel-header.tsx +13 -0
- package/src/components/editor/chrome/panels/secrets-panel.tsx +1 -0
- package/src/components/editor/chrome/panels/session-panel.tsx +1 -1
- package/src/components/editor/chrome/panels/snippets-panel.tsx +10 -12
- package/src/components/editor/chrome/panels/variable-panel.tsx +1 -5
- package/src/components/editor/chrome/types.ts +1 -1
- package/src/components/editor/chrome/wrapper/__tests__/attachment-status.test.tsx +8 -10
- package/src/components/editor/chrome/wrapper/__tests__/document-sync-status.test.tsx +97 -0
- package/src/components/editor/chrome/wrapper/__tests__/pending-ai-cells.test.tsx +230 -59
- package/src/components/editor/chrome/wrapper/__tests__/useAskAiAboutCell.test.tsx +58 -0
- package/src/components/editor/chrome/wrapper/app-chrome.tsx +91 -74
- package/src/components/editor/chrome/wrapper/footer-items/attachment-status.tsx +5 -5
- package/src/components/editor/chrome/wrapper/footer-items/backend-status.tsx +3 -17
- package/src/components/editor/chrome/wrapper/footer-items/document-sync-status.tsx +54 -0
- package/src/components/editor/chrome/wrapper/footer-items/lsp-status.tsx +1 -1
- package/src/components/editor/chrome/wrapper/footer-items/machine-stats.tsx +1 -1
- package/src/components/editor/chrome/wrapper/footer.tsx +2 -2
- package/src/components/editor/chrome/wrapper/minimap-state.ts +1 -1
- package/src/components/editor/chrome/wrapper/pending-ai-cells.tsx +143 -82
- package/src/components/editor/chrome/wrapper/pending-ai-changes-badge.tsx +25 -0
- package/src/components/editor/chrome/wrapper/sidebar.tsx +8 -4
- package/src/components/editor/chrome/wrapper/useAskAiAboutCell.ts +36 -0
- package/src/components/editor/columns/__tests__/cell-column.test.tsx +1 -1
- package/src/components/editor/columns/cell-column.tsx +1 -1
- package/src/components/editor/columns/sortable-column.tsx +2 -2
- package/src/components/editor/connections/components.tsx +4 -9
- package/src/components/editor/controls/Controls.tsx +9 -6
- package/src/components/editor/controls/__tests__/keyboard-shortcuts.test.tsx +61 -0
- package/src/components/editor/controls/__tests__/notebook-menu-dropdown.test.tsx +10 -4
- package/src/components/editor/controls/keyboard-shortcuts.tsx +14 -5
- package/src/components/editor/documentation.css +34 -11
- package/src/components/editor/errors/__tests__/send-error-report-button.test.tsx +106 -79
- package/src/components/editor/errors/auto-fix.tsx +4 -8
- package/src/components/editor/errors/send-error-report-button.tsx +3 -6
- package/src/components/editor/file-tree/__tests__/file-explorer-navigation.test.tsx +47 -0
- package/src/components/editor/file-tree/file-explorer.tsx +38 -10
- package/src/components/editor/file-tree/file-name-input.tsx +1 -0
- package/src/components/editor/header/__tests__/filename-form.test.tsx +1 -4
- package/src/components/editor/header/__tests__/status.test.tsx +5 -3
- package/src/components/editor/header/app-header.tsx +1 -1
- package/src/components/editor/header/filename-form.tsx +1 -1
- package/src/components/editor/header/status.tsx +44 -22
- package/src/components/editor/links/__tests__/cell-link.test.tsx +148 -0
- package/src/components/editor/links/cell-link-list.tsx +1 -1
- package/src/components/editor/links/cell-link.tsx +21 -11
- package/src/components/editor/navigation/__tests__/clipboard.test.ts +60 -38
- package/src/components/editor/navigation/__tests__/navigation.test.ts +109 -85
- package/src/components/editor/navigation/__tests__/selection.test.ts +43 -21
- package/src/components/editor/navigation/clipboard.ts +17 -14
- package/src/components/editor/navigation/focus-utils.ts +23 -4
- package/src/components/editor/navigation/multi-cell-action-toolbar.tsx +17 -33
- package/src/components/editor/navigation/navigation.ts +74 -72
- package/src/components/editor/navigation/selection.ts +30 -29
- package/src/components/editor/notebook-cell.tsx +143 -256
- package/src/components/editor/output/MarimoErrorOutput.tsx +41 -4
- package/src/components/editor/output/MarimoTracebackOutput.tsx +17 -15
- package/src/components/editor/output/Outputs.css +8 -0
- package/src/components/editor/output/VideoOutput.tsx +6 -0
- package/src/components/editor/output/__tests__/VideoOutput.test.tsx +131 -0
- package/src/components/editor/output/__tests__/traceback.test.tsx +27 -1
- package/src/components/editor/output/ansi-reduce.ts +126 -49
- package/src/components/editor/output/console/ConsoleOutput.tsx +34 -26
- package/src/components/editor/output/console/__tests__/ConsoleOutput.test.tsx +162 -102
- package/src/components/editor/output/console/process-output.ts +4 -2
- package/src/components/editor/package-alert.tsx +8 -3
- package/src/components/editor/renderers/__tests__/add-cell-buttons.test.tsx +18 -0
- package/src/components/editor/renderers/cell-array.tsx +38 -103
- package/src/components/editor/renderers/cells-renderer.tsx +2 -3
- package/src/components/editor/renderers/grid-layout/__tests__/grid-layout.test.tsx +69 -0
- package/src/components/editor/renderers/grid-layout/grid-layout.tsx +30 -28
- package/src/components/editor/renderers/slides-layout/__tests__/plugin.test.ts +0 -4
- package/src/components/editor/renderers/slides-layout/slides-layout.tsx +1 -1
- package/src/components/editor/renderers/types.ts +2 -2
- package/src/components/editor/renderers/vertical-layout/__tests__/useFocusFirstEditor.test.ts +47 -4
- package/src/components/editor/renderers/vertical-layout/useFocusFirstEditor.ts +9 -1
- package/src/components/editor/renderers/vertical-layout/utils.ts +4 -4
- package/src/components/editor/renderers/vertical-layout/vertical-layout.tsx +20 -46
- package/src/components/editor/stdin-blocking-alert.tsx +19 -16
- package/src/components/icons/__tests__/copy-icon.test.tsx +63 -0
- package/src/components/icons/copy-icon.tsx +9 -2
- package/src/components/markdown/__tests__/markdown-renderer.test.tsx +32 -2
- package/src/components/markdown/markdown-renderer.tsx +43 -28
- package/src/components/mcp/mcp-status-indicator.tsx +18 -14
- package/src/components/pages/edit-page.tsx +18 -17
- package/src/components/scratchpad/scratchpad.test.tsx +89 -0
- package/src/components/scratchpad/scratchpad.tsx +54 -37
- package/src/components/scratchpad/state.ts +7 -0
- package/src/components/slides/__tests__/cell-output-block.test.tsx +8 -9
- package/src/components/slides/__tests__/minimap-actions.test.tsx +25 -32
- package/src/components/slides/__tests__/minimap.test.ts +38 -19
- package/src/components/slides/__tests__/slide-cell-view.test.tsx +3 -2
- package/src/components/slides/__tests__/slide-scroll-hint.test.tsx +37 -0
- package/src/components/slides/minimap.tsx +21 -14
- package/src/components/slides/reveal-component.tsx +68 -34
- package/src/components/slides/reveal-slides.css +5 -4
- package/src/components/slides/slide-cell-view.tsx +36 -41
- package/src/components/slides/slide-scroll-hint.tsx +3 -1
- package/src/components/slides/slide.tsx +4 -5
- package/src/components/sort/SortableCellsProvider.tsx +8 -25
- package/src/components/static-html/__tests__/static-banner.test.tsx +1 -1
- package/src/components/tracing/tracing-keyboard.test.tsx +85 -0
- package/src/components/tracing/tracing-spec.ts +11 -1
- package/src/components/tracing/tracing.tsx +48 -40
- package/src/components/ui/__tests__/draggable-popover.test.tsx +24 -0
- package/src/components/ui/__tests__/fullscreen.test.tsx +99 -2
- package/src/components/ui/__tests__/range-slider.test.tsx +165 -0
- package/src/components/ui/__tests__/select.test.tsx +80 -0
- package/src/components/ui/draggable-popover.tsx +24 -2
- package/src/components/ui/fullscreen.tsx +43 -3
- package/src/components/ui/range-slider.tsx +22 -9
- package/src/components/ui/select.tsx +17 -15
- package/src/components/ui/slider.tsx +6 -2
- package/src/components/ui/toast.tsx +1 -1
- package/src/components/variables/__tests__/variables-table.test.tsx +75 -0
- package/src/components/variables/variables-table.tsx +18 -10
- package/src/core/MarimoApp.tsx +3 -1
- package/src/core/ai/__tests__/attachments.test.ts +153 -0
- package/src/core/ai/__tests__/staged-cells.test.ts +90 -609
- package/src/core/ai/attachments.ts +80 -0
- package/src/core/ai/context/__tests__/registry.test.ts +7 -11
- package/src/core/ai/context/context.ts +2 -0
- package/src/core/ai/context/providers/__tests__/cell-output.test.ts +116 -52
- package/src/core/ai/context/providers/__tests__/cell.test.ts +49 -0
- package/src/core/ai/context/providers/__tests__/error.test.ts +76 -219
- package/src/core/ai/context/providers/cell-output.ts +17 -20
- package/src/core/ai/context/providers/cell.ts +54 -0
- package/src/core/ai/staged-cells.ts +56 -323
- package/src/core/ai/state.ts +3 -0
- package/src/core/ai/tools/__tests__/edit-notebook-tool.test.ts +47 -93
- package/src/core/ai/tools/__tests__/registry.test.ts +17 -0
- package/src/core/ai/tools/base.ts +18 -15
- package/src/core/ai/tools/edit-notebook-tool.ts +86 -80
- package/src/core/ai/tools/registry.ts +13 -10
- package/src/core/ai/tools/sample-tool.ts +6 -7
- package/src/core/cells/__tests__/actions.test.ts +623 -35
- package/src/core/cells/__tests__/add-missing-import.test.ts +7 -8
- package/src/core/cells/__tests__/arrange.test.ts +432 -0
- package/src/core/cells/__tests__/cell.test.ts +56 -308
- package/src/core/cells/__tests__/cells.test.ts +327 -3808
- package/src/core/cells/__tests__/clear-outputs.test.ts +156 -0
- package/src/core/cells/__tests__/collapseConsoleOutputs.test.ts +86 -2
- package/src/core/cells/__tests__/document.test.ts +158 -0
- package/src/core/cells/__tests__/editor.test.ts +57 -0
- package/src/core/cells/__tests__/flush-document.test.ts +42 -0
- package/src/core/cells/__tests__/harness.ts +113 -0
- package/src/core/cells/__tests__/layout.test.ts +186 -0
- package/src/core/cells/__tests__/logs.test.ts +18 -42
- package/src/core/cells/__tests__/notebook-outline.test.ts +72 -57
- package/src/core/cells/__tests__/outputs.test.tsx +71 -53
- package/src/core/cells/__tests__/pending-delete-service.test.tsx +11 -20
- package/src/core/cells/__tests__/runs.test.ts +127 -430
- package/src/core/cells/__tests__/session.test.ts +560 -336
- package/src/core/cells/__tests__/utils.test.ts +166 -338
- package/src/core/cells/actions.ts +738 -6
- package/src/core/cells/add-missing-import.ts +48 -47
- package/src/core/cells/arrange.ts +529 -0
- package/src/core/cells/cell.ts +36 -225
- package/src/core/cells/cells.ts +245 -1549
- package/src/core/cells/collapseConsoleOutputs.tsx +71 -40
- package/src/core/cells/columns.ts +38 -0
- package/src/core/cells/command-console.ts +46 -0
- package/src/core/cells/document.ts +167 -0
- package/src/core/cells/edit.ts +30 -0
- package/src/core/cells/editor.ts +82 -0
- package/src/core/cells/execution-console.ts +236 -0
- package/src/core/cells/focus.ts +20 -14
- package/src/core/cells/layout.ts +228 -0
- package/src/core/cells/logs.ts +10 -2
- package/src/core/cells/outputs.ts +14 -30
- package/src/core/cells/pending-delete-service.ts +6 -8
- package/src/core/cells/reusable-definition.ts +25 -0
- package/src/core/cells/runs.ts +70 -118
- package/src/core/cells/scrollCellIntoView.ts +6 -0
- package/src/core/cells/session.ts +176 -101
- package/src/core/cells/types.ts +32 -64
- package/src/core/cells/useAnswerPrompt.ts +29 -0
- package/src/core/cells/utils.ts +113 -102
- package/src/core/codemirror/__tests__/format.test.ts +4 -36
- package/src/core/codemirror/__tests__/setup.test.ts +66 -33
- package/src/core/codemirror/ai/__tests__/resources.test.ts +113 -0
- package/src/core/codemirror/ai/resources.ts +1 -1
- package/src/core/codemirror/cells/__tests__/debugger-state.test.ts +0 -20
- package/src/core/codemirror/cells/__tests__/extensions.test.ts +2 -6
- package/src/core/codemirror/cells/debugger-state.ts +7 -11
- package/src/core/codemirror/cells/extensions.ts +18 -30
- package/src/core/codemirror/cells/state.ts +2 -6
- package/src/core/codemirror/cm.ts +5 -1
- package/src/core/codemirror/config/types.ts +1 -1
- package/src/core/codemirror/copilot/__tests__/completion-integration.test.ts +4 -0
- package/src/core/codemirror/copilot/__tests__/getCodes.test.ts +13 -12
- package/src/core/codemirror/copilot/extension.ts +0 -26
- package/src/core/codemirror/copilot/getCodes.ts +3 -3
- package/src/core/codemirror/format.ts +6 -23
- package/src/core/codemirror/keymaps/vim.ts +2 -2
- package/src/core/codemirror/language/__tests__/extension.test.ts +9 -7
- package/src/core/codemirror/language/__tests__/markdown.test.ts +7 -7
- package/src/core/codemirror/language/__tests__/sql-literals.test.ts +588 -0
- package/src/core/codemirror/language/__tests__/sql.test.ts +123 -28
- package/src/core/codemirror/language/__tests__/utils.test.ts +194 -19
- package/src/core/codemirror/language/cell-code.ts +114 -0
- package/src/core/codemirror/language/extension.ts +52 -35
- package/src/core/codemirror/language/languages/markdown.ts +8 -6
- package/src/core/codemirror/language/languages/python.ts +16 -10
- package/src/core/codemirror/language/languages/sql/completion-builder.ts +31 -14
- package/src/core/codemirror/language/languages/sql/completion-context.ts +197 -0
- package/src/core/codemirror/language/languages/sql/completion-sources.tsx +109 -0
- package/src/core/codemirror/language/languages/sql/sql.ts +21 -28
- package/src/core/codemirror/language/types.ts +7 -7
- package/src/core/codemirror/language/utils.ts +9 -39
- package/src/core/codemirror/lsp/__tests__/notebook-lsp.test.ts +1 -2
- package/src/core/codemirror/lsp/notebook-lsp.ts +6 -5
- package/src/core/codemirror/lsp/utils.ts +1 -1
- package/src/core/codemirror/misc/__tests__/paste.test.ts +3 -1
- package/src/core/codemirror/misc/paste.ts +1 -1
- package/src/core/codemirror/placeholder/__tests__/extensions.test.ts +75 -0
- package/src/core/codemirror/placeholder/extensions.ts +80 -19
- package/src/core/codemirror/readonly/__tests__/extension.test.ts +1 -1
- package/src/core/codemirror/readonly/extension.ts +2 -2
- package/src/core/codemirror/utils.ts +1 -0
- package/src/core/config/__tests__/app-config.test.ts +64 -0
- package/src/core/config/__tests__/config-schema.test.ts +195 -17
- package/src/core/config/config-schema.ts +138 -20
- package/src/core/config/config.ts +69 -20
- package/src/core/config/feature-flag.tsx +0 -2
- package/src/core/datasets/__tests__/data-source-discovery.test.ts +1 -1
- package/src/core/documentation/doc-lookup.ts +1 -1
- package/src/core/dom/__tests__/outline.test.ts +23 -0
- package/src/core/dom/outline.ts +4 -1
- package/src/core/edit-app.tsx +28 -38
- package/src/core/errors/__tests__/error-entries.test.ts +74 -1
- package/src/core/errors/error-entries.ts +28 -16
- package/src/core/executions/__tests__/atoms.test.ts +218 -0
- package/src/core/executions/__tests__/freshness.test.ts +503 -0
- package/src/core/executions/__tests__/hooks.test.tsx +198 -0
- package/src/core/executions/__tests__/input.test.ts +86 -0
- package/src/core/executions/__tests__/interrupt.test.ts +206 -0
- package/src/core/executions/__tests__/output-lifecycle.test.ts +260 -0
- package/src/core/executions/__tests__/output.test.ts +336 -0
- package/src/core/executions/__tests__/run.test.ts +396 -0
- package/src/core/executions/__tests__/select.test.ts +409 -0
- package/src/core/executions/atoms.ts +399 -0
- package/src/core/executions/freshness.ts +174 -0
- package/src/core/executions/hooks.ts +119 -0
- package/src/core/executions/index.ts +58 -0
- package/src/core/executions/input.ts +56 -0
- package/src/core/executions/interrupt.ts +49 -0
- package/src/core/executions/output.ts +337 -0
- package/src/core/executions/run.ts +107 -0
- package/src/core/executions/select.ts +271 -0
- package/src/core/export/__tests__/hooks.test.ts +18 -34
- package/src/core/export/hooks.ts +8 -10
- package/src/core/export/layout.ts +2 -2
- package/src/core/hotkeys/hotkeys.ts +2 -1
- package/src/core/islands/__tests__/bootstrap.test.ts +69 -17
- package/src/core/islands/__tests__/bridge.test.ts +163 -65
- package/src/core/islands/__tests__/iframe-resizer.test.ts +91 -0
- package/src/core/islands/__tests__/main.test.ts +17 -0
- package/src/core/islands/bootstrap.ts +70 -65
- package/src/core/islands/bridge.ts +156 -54
- package/src/core/islands/components/IslandControls.tsx +15 -7
- package/src/core/islands/components/__tests__/IslandControls.test.tsx +36 -51
- package/src/core/islands/components/__tests__/web-components.test.tsx +76 -15
- package/src/core/islands/components/output-wrapper.tsx +19 -24
- package/src/core/islands/components/web-components.tsx +12 -1
- package/src/core/islands/iframe-resizer.ts +38 -0
- package/src/core/islands/main.ts +3 -0
- package/src/core/islands/stubs/slide-cell-view.tsx +2 -5
- package/src/core/islands/worker/__tests__/controller.test.ts +62 -4
- package/src/core/islands/worker/controller.ts +4 -10
- package/src/core/islands/worker/worker.tsx +84 -52
- package/src/core/kernel/__tests__/handlers.test.ts +7 -159
- package/src/core/kernel/handlers.ts +12 -141
- package/src/core/kernel/messages.ts +0 -1
- package/src/core/kernel/state.ts +0 -15
- package/src/core/lifecycle/render-policy.ts +16 -27
- package/src/core/meta/__tests__/code-visibility.test.tsx +78 -70
- package/src/core/meta/code-visibility.ts +18 -9
- package/src/core/network/__tests__/ai.test.ts +41 -0
- package/src/core/network/__tests__/connection.test.ts +1 -1
- package/src/core/network/__tests__/requests-network.test.ts +0 -16
- package/src/core/network/__tests__/requests-toasting.test.tsx +7 -7
- package/src/core/network/ai.ts +12 -0
- package/src/core/network/connection-notice.ts +1 -1
- package/src/core/network/connection.ts +1 -6
- package/src/core/network/requests-network.ts +10 -64
- package/src/core/network/requests-static.ts +2 -11
- package/src/core/network/requests-toasting.tsx +3 -57
- package/src/core/network/resolve.ts +1 -5
- package/src/core/network/types.ts +7 -22
- package/src/core/notebook/__tests__/operations.test.ts +51 -0
- package/src/core/notebook/attachments.ts +38 -0
- package/src/core/notebook/document/__tests__/codemirror.test.ts +768 -0
- package/src/core/{document → notebook/document}/__tests__/draft.test.ts +71 -31
- package/src/core/{document → notebook/document}/__tests__/fixtures.ts +2 -2
- package/src/core/notebook/document/__tests__/hooks.test.tsx +392 -0
- package/src/core/notebook/document/__tests__/lifecycle-scenarios.test.ts +61 -0
- package/src/core/notebook/document/__tests__/model.test.ts +252 -0
- package/src/core/notebook/document/__tests__/protocol-fixtures.ts +38 -0
- package/src/core/notebook/document/__tests__/recovery-scenarios.test.ts +259 -0
- package/src/core/notebook/document/__tests__/scenario-fixture.ts +44 -0
- package/src/core/notebook/document/__tests__/scenarios.test.ts +279 -0
- package/src/core/{document/__tests__/model.test.ts → notebook/document/__tests__/state.test.ts} +48 -24
- package/src/core/notebook/document/__tests__/submission.test.ts +204 -0
- package/src/core/notebook/document/__tests__/test-host.test.ts +92 -0
- package/src/core/notebook/document/__tests__/test-host.ts +223 -0
- package/src/core/notebook/document/__tests__/test-notebook.ts +162 -0
- package/src/core/notebook/document/__tests__/user.ts +62 -0
- package/src/core/notebook/document/codemirror.ts +216 -0
- package/src/core/{document → notebook/document}/draft.ts +53 -30
- package/src/core/notebook/document/hooks.tsx +123 -0
- package/src/core/notebook/document/index.ts +25 -0
- package/src/core/notebook/document/model.ts +105 -0
- package/src/core/notebook/document/select.ts +41 -0
- package/src/core/{document/model.ts → notebook/document/state.ts} +77 -71
- package/src/core/notebook/document/sync.ts +378 -0
- package/src/core/notebook/index.ts +19 -0
- package/src/core/notebook/operations.ts +30 -0
- package/src/core/notebook/replica/AGENTS.md +11 -0
- package/src/core/{host → notebook/replica}/__tests__/document.test.ts +13 -8
- package/src/core/notebook/replica/__tests__/executions.test.ts +272 -0
- package/src/core/notebook/replica/__tests__/fixtures.ts +103 -0
- package/src/core/{host/__tests__/notebook-client.test.ts → notebook/replica/__tests__/replica.test.ts} +268 -25
- package/src/core/notebook/replica/__tests__/results.test.ts +232 -0
- package/src/core/notebook/replica/__tests__/runtime.test.ts +77 -0
- package/src/core/notebook/replica/backend.ts +21 -0
- package/src/core/{host → notebook/replica}/connection.ts +1 -5
- package/src/core/notebook/replica/execution-state.ts +43 -0
- package/src/core/notebook/replica/index.ts +31 -0
- package/src/core/notebook/replica/replica.ts +569 -0
- package/src/core/notebook/replica/resources/analysis.ts +9 -0
- package/src/core/{host → notebook/replica}/resources/document.ts +1 -1
- package/src/core/notebook/replica/resources/executions.ts +348 -0
- package/src/core/notebook/replica/resources/results.ts +66 -0
- package/src/core/notebook/replica/resources/runtime.ts +14 -0
- package/src/core/packages/__tests__/useSandboxController.test.tsx +1 -1
- package/src/core/packages/useSandboxController.ts +1 -1
- package/src/core/run-app.tsx +49 -52
- package/src/core/runtime/__tests__/adapter.test.ts +4 -4
- package/src/core/runtime/__tests__/createWsUrl.test.ts +5 -17
- package/src/core/runtime/__tests__/runtime.test.ts +68 -141
- package/src/core/runtime/adapter.ts +6 -13
- package/src/core/runtime/config.ts +4 -24
- package/src/core/runtime/runtime.ts +11 -16
- package/src/core/runtime/types.ts +0 -5
- package/src/core/saving/__tests__/document.test.tsx +113 -0
- package/src/core/saving/__tests__/state.test.ts +111 -0
- package/src/core/saving/__tests__/useAutoSave.test.tsx +67 -0
- package/src/core/saving/__tests__/useSaveNotebook.test.tsx +69 -0
- package/src/core/saving/document.ts +33 -0
- package/src/core/saving/filename.ts +1 -1
- package/src/core/saving/save-component.tsx +68 -60
- package/src/core/saving/state.ts +42 -37
- package/src/core/saving/useAutoSave.ts +17 -53
- package/src/core/session/__tests__/backend.test.ts +244 -0
- package/src/core/session/__tests__/useNotebookReplica.hook.test.tsx +187 -0
- package/src/core/session/__tests__/useNotebookSession.hook.test.tsx +1552 -0
- package/src/core/session/active-notebook.ts +35 -0
- package/src/core/session/backend.ts +125 -0
- package/src/core/{websocket → session}/connection-utils.ts +2 -14
- package/src/core/session/embedded.ts +7 -0
- package/src/core/{websocket → session}/types.ts +2 -2
- package/src/core/session/useNotebookReplica.ts +91 -0
- package/src/core/{websocket → session}/useNotebookSession.tsx +178 -106
- package/src/core/static/__tests__/files.test.ts +38 -10
- package/src/core/static/virtual-file-tracker.ts +41 -10
- package/src/core/{websocket → transports}/__tests__/connection-state.test.ts +1 -1
- package/src/core/{websocket/transports/__tests__/notebook.test.ts → transports/__tests__/server.test.ts} +29 -119
- package/src/core/transports/__tests__/static.test.ts +357 -0
- package/src/core/transports/__tests__/wasm.test.ts +166 -0
- package/src/core/{websocket → transports}/connection-state.ts +9 -6
- package/src/core/{websocket/transports/notebook.ts → transports/server.ts} +15 -76
- package/src/core/transports/static.ts +188 -0
- package/src/core/transports/wasm.ts +95 -0
- package/src/core/vscode/__tests__/vscode-bindings.test.ts +125 -0
- package/src/core/vscode/vscode-bindings.ts +14 -2
- package/src/core/wasm/PyodideLoader.tsx +2 -1
- package/src/core/wasm/__tests__/PyodideLoader.test.tsx +100 -0
- package/src/core/wasm/__tests__/bridge.test.ts +346 -64
- package/src/core/wasm/__tests__/worker.test.ts +191 -0
- package/src/core/wasm/bridge.ts +167 -85
- package/src/core/wasm/errors.ts +8 -0
- package/src/core/wasm/rpc.ts +15 -3
- package/src/core/wasm/worker/bootstrap.ts +54 -50
- package/src/core/wasm/worker/save-worker.ts +9 -10
- package/src/core/wasm/worker/types.ts +32 -19
- package/src/core/wasm/worker/worker.ts +126 -72
- package/src/css/app/Cell.css +7 -36
- package/src/css/app/codemirror.css +1 -32
- package/src/css/common.css +1 -1
- package/src/css/globals.css +67 -24
- package/src/css/katex.min.css +1 -1
- package/src/hooks/useDebounce.ts +1 -2
- package/src/hooks/useEventListener.ts +1 -2
- package/src/mount.tsx +22 -19
- package/src/plugins/__tests__/plugin-object-schemas.test.ts +104 -0
- package/src/plugins/core/RenderHTML.tsx +3 -5
- package/src/plugins/core/__test__/PluginSlot.test.tsx +202 -0
- package/src/plugins/core/__test__/RenderHTML-copy.test.tsx +60 -0
- package/src/plugins/core/__test__/registerReactComponent.test.ts +45 -0
- package/src/plugins/core/__test__/sanitize.test.ts +35 -0
- package/src/plugins/core/registerReactComponent.tsx +28 -28
- package/src/plugins/core/sanitize-html.ts +8 -1
- package/src/plugins/impl/DataEditorPlugin.tsx +60 -28
- package/src/plugins/impl/DataTablePlugin.tsx +55 -22
- package/src/plugins/impl/RangeSliderPlugin.tsx +17 -2
- package/src/plugins/impl/SliderPlugin.tsx +35 -3
- package/src/plugins/impl/__test__/slider-labels.test.tsx +30 -0
- package/src/plugins/impl/__tests__/DataEditorPlugin.test.ts +190 -10
- package/src/plugins/impl/__tests__/DataTablePlugin.test.tsx +270 -0
- package/src/plugins/impl/__tests__/RangeSliderPlugin.test.tsx +109 -0
- package/src/plugins/impl/__tests__/SliderPlugin.test.tsx +40 -0
- package/src/plugins/impl/anywidget/__tests__/registry.test.ts +151 -0
- package/src/plugins/impl/anywidget/model.ts +3 -1
- package/src/plugins/impl/anywidget/registry.ts +18 -14
- package/src/plugins/impl/chat/__tests__/chat-prompts.test.tsx +1 -1
- package/src/plugins/impl/chat/chat-ui.tsx +5 -5
- package/src/plugins/impl/common/error-banner.tsx +5 -3
- package/src/plugins/impl/data-editor/__tests__/column-types.test.ts +42 -0
- package/src/plugins/impl/data-editor/__tests__/editor-state.test.ts +52 -1
- package/src/plugins/impl/data-editor/__tests__/glide-data-editor.test.tsx +278 -7
- package/src/plugins/impl/data-editor/__tests__/glide-utils.test.ts +116 -0
- package/src/plugins/impl/data-editor/column-types.ts +55 -0
- package/src/plugins/impl/data-editor/editor-state.ts +18 -2
- package/src/plugins/impl/data-editor/glide-data-editor.tsx +97 -18
- package/src/plugins/impl/data-editor/glide-portal.tsx +5 -3
- package/src/plugins/impl/data-editor/glide-utils.ts +36 -37
- package/src/plugins/impl/data-editor/types.ts +5 -0
- package/src/plugins/impl/data-explorer/components/column-summary.tsx +4 -2
- package/src/plugins/impl/data-explorer/functions/types.ts +1 -5
- package/src/plugins/impl/data-frames/DataFramePlugin.tsx +1 -1
- package/src/plugins/impl/data-frames/__tests__/sidebar.test.tsx +160 -0
- package/src/plugins/impl/data-frames/forms/__tests__/__snapshots__/form.test.tsx.snap +66 -66
- package/src/plugins/impl/data-frames/panel.tsx +44 -16
- package/src/plugins/impl/plotly/PlotlyPlugin.tsx +2 -5
- package/src/plugins/impl/plotly/selection.ts +25 -19
- package/src/plugins/impl/vega/VegaPlugin.tsx +2 -3
- package/src/plugins/layout/AccordionPlugin.tsx +2 -1
- package/src/plugins/layout/DownloadPlugin.tsx +7 -11
- package/src/plugins/layout/LazyPlugin.tsx +7 -4
- package/src/plugins/layout/TexPlugin.tsx +0 -1
- package/src/plugins/layout/__test__/DownloadPlugin.test.tsx +205 -0
- package/src/plugins/layout/__test__/mermaid.test.tsx +256 -0
- package/src/plugins/layout/__tests__/AccordionPlugin.test.tsx +21 -0
- package/src/plugins/layout/__tests__/LazyPlugin.test.tsx +98 -0
- package/src/plugins/layout/mermaid/mermaid.tsx +63 -17
- package/src/stories/cell-status.stories.tsx +29 -24
- package/src/stories/cell.stories.tsx +72 -57
- package/src/stories/data-table.stories.tsx +31 -0
- package/src/stories/editor.stories.tsx +4 -1
- package/src/stories/layout/vertical/one-column.stories.tsx +60 -60
- package/src/stories/runtime-story.tsx +23 -17
- package/src/stories/theme.stories.tsx +4 -2
- package/src/theme/__tests__/islands-theme.test.tsx +276 -0
- package/src/theme/namespace.tsx +4 -3
- package/src/theme/useTheme.ts +71 -41
- package/src/utils/__tests__/{createReducer.test.ts → createReducer.test.tsx} +127 -1
- package/src/utils/__tests__/download.test.tsx +183 -23
- package/src/utils/__tests__/numbers.test.ts +57 -0
- package/src/utils/arrays.ts +1 -2
- package/src/utils/createReducer.ts +115 -79
- package/src/utils/download.ts +67 -6
- package/src/utils/errors.ts +0 -7
- package/src/utils/maps.ts +0 -3
- package/src/utils/numbers.ts +59 -9
- package/src/utils/objects.ts +1 -2
- package/src/utils/python-poet/poet.ts +12 -2
- package/src/utils/time.ts +10 -0
- package/src/utils/tracer.ts +9 -5
- package/dist/ErrorBoundary-D9enmz8P.js +0 -200
- package/dist/_baseMerge-BiGRwuqv.js +0 -165
- package/dist/architecture-7GRP2DOG-BWLylgiA.js +0 -3
- package/dist/assets/__vite-browser-external-35VXYmnw.js +0 -1
- package/dist/assets/worker-Dq8y-WM5.js +0 -114
- package/dist/classDiagram-ZZMXUADV-GTL0l5xS.js +0 -30
- package/dist/classDiagram-v2-VYDZK3BY-BWrM2ruI.js +0 -30
- package/dist/code-visibility-Bvoq03vz.js +0 -138
- package/dist/cynefin-OW5HDTMX-obq-i80l.js +0 -3
- package/dist/dropdown-menu-B_7xD2X4.js +0 -4686
- package/dist/duckdb-keywords-BGArYVVK.js +0 -3
- package/dist/eventmodeling-NTZA5JFV-D7nP7Uyu.js +0 -3
- package/dist/feedback-button-DqvOnyXT.js +0 -379
- package/dist/flowDiagram-HODETNUW-CjaeFeea.js +0 -16
- package/dist/gitGraph-4MIJSDKK-Dy9uQXGh.js +0 -3
- package/dist/hasIn-o2Us0uVx.js +0 -132
- package/dist/highlighted-body-KPVGNVTW-3Ziwfz-V.js +0 -38
- package/dist/html-to-image-CWdayGZU.js +0 -3251
- package/dist/info-A6RAGUB7-DKoayiHY.js +0 -3
- package/dist/isArrayLikeObject-BZl-15ir.js +0 -450
- package/dist/isEmpty-BSZ1LaUo.js +0 -35
- package/dist/isSymbol-kQcfYbNX.js +0 -8
- package/dist/label-BRnUC0NX.js +0 -281
- package/dist/linear-DWERh7eI.js +0 -252
- package/dist/mermaid-HWGCJPDP-Du3-HPQA.js +0 -2
- package/dist/packet-AYTQ26CC-Yw7ajchJ.js +0 -3
- package/dist/pick-CJeoxYOS.js +0 -51
- package/dist/pie-WAS4IAKB-BKdKOAkL.js +0 -3
- package/dist/precisionRound-DhAzeRcm.js +0 -49
- package/dist/purify.es-DMv5zIkJ.js +0 -866
- package/dist/radar-RG4KPBEZ-ScR_D_Ts.js +0 -3
- package/dist/railroad-74A4TZTK-DQvPSdo5.js +0 -3
- package/dist/railroad-abnf-HS5TGJTU-CsJQG2O8.js +0 -3
- package/dist/railroad-ebnf-LZEXJU2U-BgEobkSn.js +0 -3
- package/dist/railroad-peg-WCYAUIDC-DjLAjofI.js +0 -3
- package/dist/select-B0LRDH0g.js +0 -1344
- package/dist/semaphore-89jsoHtS.js +0 -44
- package/dist/stateDiagram-v2-MP3YSRHH-8LL6FrBe.js +0 -30
- package/dist/swimlanesDiagram-VR7AAH4N-BoMMtOPh.js +0 -30
- package/dist/toast-CFWpihJU.js +0 -1830
- package/dist/treeView-Q6P3EWNA-DuRV97YF.js +0 -3
- package/dist/treemap-WGGIJYW6-AsLq-uwC.js +0 -3
- package/dist/use-restore-focus-DBCITLeF.js +0 -6369
- package/dist/useDeepCompareMemoize-BpPWi3G3.js +0 -11
- package/dist/useLifecycle-Dum8WSXq.js +0 -169
- package/dist/useTheme-CfeaVw5D.js +0 -904
- package/dist/wardley-WFR3VGLG-Na-tFhQJ.js +0 -3
- package/src/components/chat/reasoning-accordion.tsx +0 -61
- package/src/components/chat/tool-call/tool-error-card.tsx +0 -81
- package/src/components/chat/tool-call/tool-history-row.tsx +0 -174
- package/src/components/editor/ai/__tests__/staged-cell-submission.test.ts +0 -106
- package/src/components/editor/ai/add-cell-with-ai.tsx +0 -506
- package/src/components/editor/ai/staged-cell-submission.ts +0 -46
- package/src/components/editor/alerts/connecting-alert.tsx +0 -27
- package/src/components/editor/alerts/stdin-blocking-alert.tsx +0 -61
- package/src/components/editor/cell/__tests__/StagedAICell.test.tsx +0 -64
- package/src/components/editor/cell/code/__tests__/rtc-editor-config.test.ts +0 -50
- package/src/components/editor/chrome/wrapper/footer-items/rtc-status.tsx +0 -65
- package/src/components/editor/navigation/__tests__/state.test.ts +0 -81
- package/src/components/editor/navigation/state.ts +0 -65
- package/src/components/icons/loading-ellipsis.tsx +0 -46
- package/src/core/ai/tools/__tests__/run-cells-tool.test.ts +0 -656
- package/src/core/ai/tools/run-cells-tool.ts +0 -303
- package/src/core/attachments/state.ts +0 -18
- package/src/core/cells/__tests__/__snapshots__/cells.test.ts.snap +0 -1325
- package/src/core/cells/__tests__/apply-transaction.test.ts +0 -991
- package/src/core/cells/__tests__/document-changes.test.ts +0 -1140
- package/src/core/cells/__tests__/document-roundtrip.test.ts +0 -392
- package/src/core/cells/document-changes.ts +0 -944
- package/src/core/codemirror/rtc/extension.ts +0 -453
- package/src/core/codemirror/rtc/loro/__tests__/sync.test.ts +0 -52
- package/src/core/codemirror/rtc/loro/awareness.ts +0 -531
- package/src/core/codemirror/rtc/loro/colors.ts +0 -38
- package/src/core/codemirror/rtc/loro/sync.ts +0 -168
- package/src/core/document/__tests__/submission.test.ts +0 -334
- package/src/core/host/AGENTS.md +0 -16
- package/src/core/host/__tests__/fixtures.ts +0 -41
- package/src/core/host/notebook-client.ts +0 -259
- package/src/core/network/__tests__/requests-lazy.test.ts +0 -334
- package/src/core/network/requests-lazy.ts +0 -226
- package/src/core/rtc/state.ts +0 -34
- package/src/core/wasm/worker/message-buffer.ts +0 -33
- package/src/core/websocket/__tests__/useNotebookClient.hook.test.tsx +0 -223
- package/src/core/websocket/__tests__/useNotebookSession.hook.test.tsx +0 -606
- package/src/core/websocket/state.ts +0 -7
- package/src/core/websocket/useNotebookClient.ts +0 -89
- package/src/utils/__tests__/id-tree.test.ts +0 -2145
- package/src/utils/id-tree.tsx +0 -1134
- /package/src/{core/attachments/toast.ts → components/editor/agent-toast.ts} +0 -0
- /package/src/core/{host → notebook/replica}/__tests__/attachments.test.ts +0 -0
- /package/src/core/{host → notebook/replica}/resources/attachments.ts +0 -0
|
@@ -1,28 +1,27 @@
|
|
|
1
|
-
import { a as e } from "./rolldown-runtime-
|
|
2
|
-
import {
|
|
3
|
-
import { t as o } from "./react-
|
|
4
|
-
import { t as s } from "./compiler-runtime-
|
|
5
|
-
import { h as c, t as l } from "./tooltip-
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import { t as
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import { a as A, n as te, t as ne } from "./code-visibility-Bvoq03vz.js";
|
|
1
|
+
import { a as e } from "./rolldown-runtime-BPCzCO3I.js";
|
|
2
|
+
import { g as t, h as n, i as r, m as i, t as a } from "./button-qQhINE7z.js";
|
|
3
|
+
import { t as o } from "./react-Bgs_wQh3.js";
|
|
4
|
+
import { t as s } from "./compiler-runtime-C5KHtL5D.js";
|
|
5
|
+
import { h as c, t as l } from "./tooltip-UzJukb3F.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-C0gNagW9.js";
|
|
7
|
+
import { M as w } from "./select-CDUxhHZg.js";
|
|
8
|
+
import { X as T } from "./dropdown-menu-Dhv4fcNl.js";
|
|
9
|
+
import { t as E } from "./jsx-runtime-D8btoEHk.js";
|
|
10
|
+
import { Ht as D, f as O, i as k, zt as A } from "./use-restore-focus-DaTVz6S6.js";
|
|
11
|
+
import { t as j } from "./useEvent-BoN7U38T.js";
|
|
12
|
+
import { o as ee } from "./static-state-C4bAlKTU.js";
|
|
13
|
+
import { n as te, t as ne } from "./code-visibility-DE4l3OCD.js";
|
|
15
14
|
/* empty css */
|
|
16
|
-
var
|
|
15
|
+
var M = c("sticky-note", [["path", {
|
|
17
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",
|
|
18
17
|
key: "1dfntj"
|
|
19
18
|
}], ["path", {
|
|
20
19
|
d: "M15 3v5a1 1 0 0 0 1 1h5",
|
|
21
20
|
key: "6s6qgf"
|
|
22
|
-
}]]),
|
|
21
|
+
}]]), N = /* @__PURE__ */ e(o(), 1), P = s(), re = (e, t) => {
|
|
23
22
|
for (let n in t) e[n] = t[n];
|
|
24
23
|
return e;
|
|
25
|
-
},
|
|
24
|
+
}, F = (e, t) => Array.from(e.querySelectorAll(t)), ie = (e, t, n) => {
|
|
26
25
|
n ? e.classList.add(t) : e.classList.remove(t);
|
|
27
26
|
}, ae = (e) => {
|
|
28
27
|
if (typeof e == "string") {
|
|
@@ -34,17 +33,17 @@ var j = c("sticky-note", [["path", {
|
|
|
34
33
|
return e;
|
|
35
34
|
}, oe = (e, t) => {
|
|
36
35
|
e.style.transform = t;
|
|
37
|
-
},
|
|
36
|
+
}, se = (e, t) => {
|
|
38
37
|
let n = e.matches || e.matchesSelector || e.msMatchesSelector;
|
|
39
38
|
return !!(n && n.call(e, t));
|
|
40
39
|
}, I = (e, t) => {
|
|
41
40
|
if (e && typeof e.closest == "function") return e.closest(t);
|
|
42
41
|
for (; e;) {
|
|
43
|
-
if (
|
|
42
|
+
if (se(e, t)) return e;
|
|
44
43
|
e = e.parentElement;
|
|
45
44
|
}
|
|
46
45
|
return null;
|
|
47
|
-
},
|
|
46
|
+
}, L = (e) => {
|
|
48
47
|
e ||= document.documentElement;
|
|
49
48
|
let t = e.requestFullscreen || e.webkitRequestFullscreen || e.webkitRequestFullScreen || e.mozRequestFullScreen || e.msRequestFullscreen;
|
|
50
49
|
t && t.apply(e);
|
|
@@ -56,10 +55,10 @@ var j = c("sticky-note", [["path", {
|
|
|
56
55
|
}
|
|
57
56
|
let a = document.createElement(t);
|
|
58
57
|
return a.className = n, a.innerHTML = r, e.appendChild(a), a;
|
|
59
|
-
},
|
|
58
|
+
}, le = (e) => {
|
|
60
59
|
let t = document.createElement("style");
|
|
61
60
|
return e && e.length > 0 && t.appendChild(document.createTextNode(e)), document.head.appendChild(t), t;
|
|
62
|
-
},
|
|
61
|
+
}, ue = () => {
|
|
63
62
|
let e = {};
|
|
64
63
|
location.search.replace(/[A-Z0-9]+?=([\w\.%-]*)/gi, (t) => {
|
|
65
64
|
let n = t.split("=").shift(), r = t.split("=").pop();
|
|
@@ -70,24 +69,24 @@ var j = c("sticky-note", [["path", {
|
|
|
70
69
|
e[t] = ae(unescape(n));
|
|
71
70
|
}
|
|
72
71
|
return e.dependencies !== void 0 && delete e.dependencies, e;
|
|
73
|
-
},
|
|
72
|
+
}, de = (e, t = 0) => {
|
|
74
73
|
if (e) {
|
|
75
74
|
let n, r = e.style.height;
|
|
76
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;
|
|
77
76
|
}
|
|
78
77
|
return t;
|
|
79
|
-
},
|
|
78
|
+
}, fe = {
|
|
80
79
|
mp4: "video/mp4",
|
|
81
80
|
m4a: "video/mp4",
|
|
82
81
|
ogv: "video/ogg",
|
|
83
82
|
mpeg: "video/mpeg",
|
|
84
83
|
webm: "video/webm"
|
|
85
|
-
},
|
|
84
|
+
}, pe = (e = "") => {
|
|
86
85
|
let t = e.split(".").pop();
|
|
87
|
-
return t ?
|
|
88
|
-
},
|
|
89
|
-
/chrome/i.test(
|
|
90
|
-
var
|
|
86
|
+
return t ? fe[t] : void 0;
|
|
87
|
+
}, me = (e = "") => encodeURI(e).replace(/%5B/g, "[").replace(/%5D/g, "]").replace(/[!'()*]/g, (e) => `%${e.charCodeAt(0).toString(16).toUpperCase()}`), he = navigator.userAgent, ge = /(iphone|ipod|ipad|android)/gi.test(he) || navigator.platform === "MacIntel" && navigator.maxTouchPoints > 1;
|
|
88
|
+
/chrome/i.test(he) && /edge/i.test(he);
|
|
89
|
+
var _e = /android/gi.test(he), ve = function(e) {
|
|
91
90
|
if (e) {
|
|
92
91
|
var t = function(e) {
|
|
93
92
|
return [].slice.call(e);
|
|
@@ -166,17 +165,17 @@ var R = /android/gi.test(me), ge = function(e) {
|
|
|
166
165
|
childList: !0,
|
|
167
166
|
characterData: !0
|
|
168
167
|
}
|
|
169
|
-
},
|
|
170
|
-
e.clearTimeout(
|
|
171
|
-
},
|
|
172
|
-
return Object.defineProperty(
|
|
168
|
+
}, w = null, T = function() {
|
|
169
|
+
e.clearTimeout(w), w = e.setTimeout(l(i), O.observeWindowDelay);
|
|
170
|
+
}, E = ["resize", "orientationchange"];
|
|
171
|
+
return Object.defineProperty(O, "observeWindow", { set: function(t) {
|
|
173
172
|
var n = `${t ? "add" : "remove"}EventListener`;
|
|
174
|
-
|
|
175
|
-
e[n](t,
|
|
173
|
+
E.forEach((function(t) {
|
|
174
|
+
e[n](t, T);
|
|
176
175
|
}));
|
|
177
|
-
} }),
|
|
176
|
+
} }), O.observeWindow = !0, O.observeWindowDelay = 100, O.fitAll = l(a), O;
|
|
178
177
|
}
|
|
179
|
-
function
|
|
178
|
+
function D(e, t) {
|
|
180
179
|
var n = Object.assign({}, C, t), r = e.map((function(e) {
|
|
181
180
|
var t = Object.assign({}, n, {
|
|
182
181
|
element: e,
|
|
@@ -198,44 +197,44 @@ var R = /android/gi.test(me), ge = function(e) {
|
|
|
198
197
|
}));
|
|
199
198
|
return c(), r;
|
|
200
199
|
}
|
|
201
|
-
function
|
|
200
|
+
function O(e) {
|
|
202
201
|
var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
203
|
-
return typeof e == "string" ?
|
|
202
|
+
return typeof e == "string" ? D(t(document.querySelectorAll(e)), n) : D([e], n)[0];
|
|
204
203
|
}
|
|
205
204
|
}(typeof window > "u" ? null : window);
|
|
206
|
-
function
|
|
205
|
+
function R(e) {
|
|
207
206
|
"@babel/helpers - typeof";
|
|
208
|
-
return
|
|
207
|
+
return R = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
209
208
|
return typeof e;
|
|
210
209
|
} : function(e) {
|
|
211
210
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
212
|
-
},
|
|
211
|
+
}, R(e);
|
|
213
212
|
}
|
|
214
|
-
function
|
|
215
|
-
if (
|
|
213
|
+
function ye(e, t) {
|
|
214
|
+
if (R(e) != "object" || !e) return e;
|
|
216
215
|
var n = e[Symbol.toPrimitive];
|
|
217
216
|
if (n !== void 0) {
|
|
218
217
|
var r = n.call(e, t || "default");
|
|
219
|
-
if (
|
|
218
|
+
if (R(r) != "object") return r;
|
|
220
219
|
throw TypeError("@@toPrimitive must return a primitive value.");
|
|
221
220
|
}
|
|
222
221
|
return (t === "string" ? String : Number)(e);
|
|
223
222
|
}
|
|
224
|
-
function
|
|
225
|
-
var t =
|
|
226
|
-
return
|
|
223
|
+
function be(e) {
|
|
224
|
+
var t = ye(e, "string");
|
|
225
|
+
return R(t) == "symbol" ? t : t + "";
|
|
227
226
|
}
|
|
228
|
-
function
|
|
229
|
-
return (t =
|
|
227
|
+
function xe(e, t, n) {
|
|
228
|
+
return (t = be(t)) in e ? Object.defineProperty(e, t, {
|
|
230
229
|
value: n,
|
|
231
230
|
enumerable: !0,
|
|
232
231
|
configurable: !0,
|
|
233
232
|
writable: !0
|
|
234
233
|
}) : e[t] = n, e;
|
|
235
234
|
}
|
|
236
|
-
var
|
|
235
|
+
var Se = class {
|
|
237
236
|
constructor(e) {
|
|
238
|
-
|
|
237
|
+
xe(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();
|
|
239
238
|
}
|
|
240
239
|
renderMediaPlayButton() {
|
|
241
240
|
this.mediaPlayButton = document.createElement("button"), this.mediaPlayButton.className = "r-overlay-button r-media-play-button", this.mediaPlayButton.addEventListener("click", () => {
|
|
@@ -259,14 +258,14 @@ var be = class {
|
|
|
259
258
|
let t = n.replace(/\s*!important\s*$/, "").trim();
|
|
260
259
|
e.style.setProperty("display", t, "important");
|
|
261
260
|
} else e.style.display = n;
|
|
262
|
-
|
|
261
|
+
F(e, "img[data-src], video[data-src], audio[data-src], iframe[data-src]").forEach((e) => {
|
|
263
262
|
let t = e.tagName === "IFRAME";
|
|
264
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));
|
|
265
|
-
}),
|
|
264
|
+
}), F(e, "video, audio").forEach((e) => {
|
|
266
265
|
let t = 0;
|
|
267
|
-
|
|
266
|
+
F(e, "source[data-src]").forEach((e) => {
|
|
268
267
|
e.setAttribute("src", e.getAttribute("data-src")), e.removeAttribute("data-src"), e.setAttribute("data-lazy-loaded", ""), t += 1;
|
|
269
|
-
}),
|
|
268
|
+
}), ge && e.tagName === "VIDEO" && e.setAttribute("playsinline", ""), t > 0 && e.load();
|
|
270
269
|
});
|
|
271
270
|
let r = e.slideBackgroundElement;
|
|
272
271
|
if (r) {
|
|
@@ -275,13 +274,13 @@ var be = class {
|
|
|
275
274
|
if (r.hasAttribute("data-loaded") === !1) {
|
|
276
275
|
r.setAttribute("data-loaded", "true");
|
|
277
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");
|
|
278
|
-
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(${me(decodeURI(e.trim()))})`).join(",");
|
|
279
278
|
else if (o) {
|
|
280
279
|
let e = document.createElement("video");
|
|
281
|
-
s && e.setAttribute("loop", ""), (c || this.Reveal.isSpeakerNotes()) && (e.muted = !0),
|
|
280
|
+
s && e.setAttribute("loop", ""), (c || this.Reveal.isSpeakerNotes()) && (e.muted = !0), ge && e.setAttribute("playsinline", ""), o.split(",").forEach((t) => {
|
|
282
281
|
let n = document.createElement("source");
|
|
283
282
|
n.setAttribute("src", t);
|
|
284
|
-
let r =
|
|
283
|
+
let r = pe(t);
|
|
285
284
|
r && n.setAttribute("type", r), e.appendChild(n);
|
|
286
285
|
}), n.appendChild(e);
|
|
287
286
|
} else if (i && t.excludeIframes !== !0) {
|
|
@@ -296,7 +295,7 @@ var be = class {
|
|
|
296
295
|
}
|
|
297
296
|
layout(e) {
|
|
298
297
|
Array.from(e.querySelectorAll(".r-fit-text")).forEach((e) => {
|
|
299
|
-
|
|
298
|
+
ve(e, {
|
|
300
299
|
minSize: 24,
|
|
301
300
|
maxSize: this.Reveal.getConfig().height * .8,
|
|
302
301
|
observeMutations: !1,
|
|
@@ -307,17 +306,17 @@ var be = class {
|
|
|
307
306
|
unload(e) {
|
|
308
307
|
e.style.display = "none";
|
|
309
308
|
let t = this.Reveal.getSlideBackground(e);
|
|
310
|
-
t && (t.style.display = "none",
|
|
309
|
+
t && (t.style.display = "none", F(t, "iframe[src]").forEach((e) => {
|
|
311
310
|
e.removeAttribute("src");
|
|
312
|
-
})),
|
|
311
|
+
})), F(e, "video[data-lazy-loaded][src], audio[data-lazy-loaded][src], iframe[data-lazy-loaded][src]").forEach((e) => {
|
|
313
312
|
e.setAttribute("data-src", e.getAttribute("src")), e.removeAttribute("src");
|
|
314
|
-
}),
|
|
313
|
+
}), F(e, "video[data-lazy-loaded] source[src], audio source[src]").forEach((e) => {
|
|
315
314
|
e.setAttribute("data-src", e.getAttribute("src")), e.removeAttribute("src");
|
|
316
315
|
});
|
|
317
316
|
}
|
|
318
317
|
formatEmbeddedContent() {
|
|
319
318
|
let e = (e, t, n) => {
|
|
320
|
-
|
|
319
|
+
F(this.Reveal.getSlidesElement(), "iframe[" + e + "*=\"" + t + "\"]").forEach((t) => {
|
|
321
320
|
let r = t.getAttribute(e);
|
|
322
321
|
r && r.indexOf(n) === -1 && t.setAttribute(e, r + (/\?/.test(r) ? "&" : "?") + n);
|
|
323
322
|
});
|
|
@@ -327,18 +326,18 @@ var be = class {
|
|
|
327
326
|
startEmbeddedContent(e) {
|
|
328
327
|
if (e) {
|
|
329
328
|
let t = this.Reveal.isSpeakerNotes();
|
|
330
|
-
|
|
329
|
+
F(e, "img[src$=\".gif\"]").forEach((e) => {
|
|
331
330
|
e.setAttribute("src", e.getAttribute("src"));
|
|
332
|
-
}),
|
|
331
|
+
}), F(e, "video, audio").forEach((e) => {
|
|
333
332
|
if (I(e, ".fragment") && !I(e, ".fragment.visible")) return;
|
|
334
333
|
let n = this.Reveal.getConfig().autoPlayMedia;
|
|
335
334
|
if (typeof n != "boolean" && (n = e.hasAttribute("data-autoplay") || !!I(e, ".slide-background")), n && typeof e.play == "function") {
|
|
336
335
|
if (t && !e.muted) return;
|
|
337
|
-
e.readyState > 1 ? this.startEmbeddedMedia({ target: e }) :
|
|
336
|
+
e.readyState > 1 ? this.startEmbeddedMedia({ target: e }) : ge ? (e.addEventListener("canplay", this.ensureMobileMediaPlaying), this.playMediaElement(e)) : (e.removeEventListener("loadeddata", this.startEmbeddedMedia), e.addEventListener("loadeddata", this.startEmbeddedMedia));
|
|
338
337
|
}
|
|
339
|
-
}), t || (
|
|
338
|
+
}), t || (F(e, "iframe[src]").forEach((e) => {
|
|
340
339
|
I(e, ".fragment") && !I(e, ".fragment.visible") || this.startEmbeddedIframe({ target: e });
|
|
341
|
-
}),
|
|
340
|
+
}), F(e, "iframe[data-src]").forEach((e) => {
|
|
342
341
|
I(e, ".fragment") && !I(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")));
|
|
343
342
|
}));
|
|
344
343
|
}
|
|
@@ -381,15 +380,15 @@ var be = class {
|
|
|
381
380
|
}
|
|
382
381
|
}
|
|
383
382
|
stopEmbeddedContent(e, t = {}) {
|
|
384
|
-
t = re({ unloadIframes: !0 }, t), e && e.parentNode && (
|
|
385
|
-
!e.hasAttribute("data-ignore") && typeof e.pause == "function" && (e.setAttribute("data-paused-by-reveal", ""), e.pause(),
|
|
386
|
-
}),
|
|
383
|
+
t = re({ unloadIframes: !0 }, t), e && e.parentNode && (F(e, "video, audio").forEach((e) => {
|
|
384
|
+
!e.hasAttribute("data-ignore") && typeof e.pause == "function" && (e.setAttribute("data-paused-by-reveal", ""), e.pause(), ge && e.removeEventListener("canplay", this.ensureMobileMediaPlaying));
|
|
385
|
+
}), F(e, "iframe").forEach((e) => {
|
|
387
386
|
e.contentWindow && e.contentWindow.postMessage("slide:stop", "*"), e.removeEventListener("load", this.preventIframeAutoFocus), e.removeEventListener("load", this.startEmbeddedIframe);
|
|
388
|
-
}),
|
|
387
|
+
}), F(e, "iframe[src*=\"youtube.com/embed/\"]").forEach((e) => {
|
|
389
388
|
!e.hasAttribute("data-ignore") && e.contentWindow && typeof e.contentWindow.postMessage == "function" && e.contentWindow.postMessage("{\"event\":\"command\",\"func\":\"pauseVideo\",\"args\":\"\"}", "*");
|
|
390
|
-
}),
|
|
389
|
+
}), F(e, "iframe[src*=\"player.vimeo.com/\"]").forEach((e) => {
|
|
391
390
|
!e.hasAttribute("data-ignore") && e.contentWindow && typeof e.contentWindow.postMessage == "function" && e.contentWindow.postMessage("{\"method\":\"pause\"}", "*");
|
|
392
|
-
}), t.unloadIframes === !0 &&
|
|
391
|
+
}), t.unloadIframes === !0 && F(e, "iframe[data-src]").forEach((e) => {
|
|
393
392
|
e.setAttribute("src", "about:blank"), e.removeAttribute("src");
|
|
394
393
|
}));
|
|
395
394
|
}
|
|
@@ -433,7 +432,7 @@ var be = class {
|
|
|
433
432
|
afterSlideChanged() {
|
|
434
433
|
this.clearMediaPlaybackErrors();
|
|
435
434
|
}
|
|
436
|
-
},
|
|
435
|
+
}, z = ".slides section", B = ".slides>section", Ce = ".slides>section.present>section", we = ".backgrounds>.slide-background", Te = /registerPlugin|registerKeyboardShortcut|addKeyBinding|addEventListener|showPreview|previewIframe/, Ee = class {
|
|
437
436
|
constructor(e) {
|
|
438
437
|
this.Reveal = e;
|
|
439
438
|
}
|
|
@@ -482,7 +481,7 @@ var be = class {
|
|
|
482
481
|
destroy() {
|
|
483
482
|
this.element.remove();
|
|
484
483
|
}
|
|
485
|
-
},
|
|
484
|
+
}, De = class {
|
|
486
485
|
constructor(e) {
|
|
487
486
|
this.Reveal = e, this.onInput = this.onInput.bind(this), this.onBlur = this.onBlur.bind(this), this.onKeyDown = this.onKeyDown.bind(this);
|
|
488
487
|
}
|
|
@@ -535,7 +534,7 @@ var be = class {
|
|
|
535
534
|
onBlur() {
|
|
536
535
|
setTimeout(() => this.hide(), 1);
|
|
537
536
|
}
|
|
538
|
-
},
|
|
537
|
+
}, V = (e) => {
|
|
539
538
|
let t = e.match(/^#([0-9a-f]{3})$/i);
|
|
540
539
|
if (t && t[1]) {
|
|
541
540
|
let e = t[1];
|
|
@@ -567,7 +566,7 @@ var be = class {
|
|
|
567
566
|
b: parseInt(i[3], 10),
|
|
568
567
|
a: parseFloat(i[4])
|
|
569
568
|
} : null;
|
|
570
|
-
},
|
|
569
|
+
}, H = (e) => (typeof e == "string" && (e = V(e)), e ? (e.r * 299 + e.g * 587 + e.b * 114) / 1e3 : null), Oe = class {
|
|
571
570
|
constructor(e) {
|
|
572
571
|
this.Reveal = e;
|
|
573
572
|
}
|
|
@@ -577,7 +576,7 @@ var be = class {
|
|
|
577
576
|
create() {
|
|
578
577
|
this.element.innerHTML = "", this.element.classList.add("no-transition"), this.Reveal.getHorizontalSlides().forEach((e) => {
|
|
579
578
|
let t = this.createBackground(e, this.element);
|
|
580
|
-
|
|
579
|
+
F(e, "section").forEach((e) => {
|
|
581
580
|
this.createBackground(e, t), t.classList.add("stack");
|
|
582
581
|
});
|
|
583
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(() => {
|
|
@@ -610,13 +609,13 @@ var be = class {
|
|
|
610
609
|
}
|
|
611
610
|
getContrastClass(e) {
|
|
612
611
|
let t = e.slideBackgroundElement, n = e.getAttribute("data-background-color");
|
|
613
|
-
if (!n || !
|
|
612
|
+
if (!n || !V(n)) {
|
|
614
613
|
let e = window.getComputedStyle(t);
|
|
615
614
|
e && e.backgroundColor && (n = e.backgroundColor);
|
|
616
615
|
}
|
|
617
616
|
if (n) {
|
|
618
|
-
let e =
|
|
619
|
-
if (e && e.a !== 0) return
|
|
617
|
+
let e = V(n);
|
|
618
|
+
if (e && e.a !== 0) return H(n) < 128 ? "has-dark-background" : "has-light-background";
|
|
620
619
|
}
|
|
621
620
|
return null;
|
|
622
621
|
}
|
|
@@ -628,7 +627,7 @@ var be = class {
|
|
|
628
627
|
update(e = !1) {
|
|
629
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";
|
|
630
629
|
if (Array.from(this.element.childNodes).forEach((t, n) => {
|
|
631
|
-
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) && F(t, ".slide-background").forEach((e, t) => {
|
|
632
631
|
e.classList.remove("past", "present", "future");
|
|
633
632
|
let a = typeof r.v == "number" ? r.v : 0;
|
|
634
633
|
t < a ? e.classList.add("past") : t > a ? e.classList.add("future") : (e.classList.add("present"), n === r.h && (i = e));
|
|
@@ -680,7 +679,7 @@ var be = class {
|
|
|
680
679
|
this.reset();
|
|
681
680
|
let n = this.Reveal.getSlides(), r = n.indexOf(t), i = n.indexOf(e);
|
|
682
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")) {
|
|
683
|
-
this.autoAnimateStyleSheet = this.autoAnimateStyleSheet ||
|
|
682
|
+
this.autoAnimateStyleSheet = this.autoAnimateStyleSheet || le();
|
|
684
683
|
let n = this.getAutoAnimateOptions(t);
|
|
685
684
|
e.dataset.autoAnimate = "pending", t.dataset.autoAnimate = "pending", n.slideDirection = r > i ? "forward" : "backward";
|
|
686
685
|
let a = e.style.display === "none";
|
|
@@ -706,9 +705,9 @@ var be = class {
|
|
|
706
705
|
}
|
|
707
706
|
}
|
|
708
707
|
reset() {
|
|
709
|
-
|
|
708
|
+
F(this.Reveal.getRevealElement(), "[data-auto-animate]:not([data-auto-animate=\"\"])").forEach((e) => {
|
|
710
709
|
e.dataset.autoAnimate = "";
|
|
711
|
-
}),
|
|
710
|
+
}), F(this.Reveal.getRevealElement(), "[data-auto-animate-target]").forEach((e) => {
|
|
712
711
|
delete e.dataset.autoAnimateTarget;
|
|
713
712
|
}), this.autoAnimateStyleSheet && this.autoAnimateStyleSheet.parentNode && (this.autoAnimateStyleSheet.parentNode.removeChild(this.autoAnimateStyleSheet), this.autoAnimateStyleSheet = null);
|
|
714
713
|
}
|
|
@@ -793,7 +792,7 @@ var be = class {
|
|
|
793
792
|
getAutoAnimatePairs(e, t) {
|
|
794
793
|
let n = [], r = "h1, h2, h3, h4, h5, h6, p, li";
|
|
795
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) => {
|
|
796
|
-
|
|
795
|
+
se(e.from, r) ? e.options = { scale: !1 } : se(e.from, "pre") && (e.options = {
|
|
797
796
|
scale: !1,
|
|
798
797
|
styles: ["width", "height"]
|
|
799
798
|
}, this.findAutoAnimateMatches(n, e.from, e.to, ".hljs .hljs-ln-code", (e) => e.textContent, {
|
|
@@ -850,7 +849,7 @@ var be = class {
|
|
|
850
849
|
if (this.active) return;
|
|
851
850
|
let e = this.Reveal.getState();
|
|
852
851
|
this.active = !0, this.slideHTMLBeforeActivation = this.Reveal.getSlidesElement().innerHTML;
|
|
853
|
-
let t =
|
|
852
|
+
let t = F(this.Reveal.getRevealElement(), B), n = F(this.Reveal.getRevealElement(), we);
|
|
854
853
|
this.viewportElement.classList.add("loading-scroll-mode", "reveal-scroll");
|
|
855
854
|
let r, i = window.getComputedStyle(this.viewportElement);
|
|
856
855
|
i && i.background && (r = i.background);
|
|
@@ -872,7 +871,7 @@ var be = class {
|
|
|
872
871
|
this.Reveal.isVerticalStack(e) ? e.querySelectorAll("section").forEach((e, n) => {
|
|
873
872
|
c(e, t, n, !0);
|
|
874
873
|
}) : c(e, t, 0);
|
|
875
|
-
}, this), this.createProgressBar(),
|
|
874
|
+
}, this), this.createProgressBar(), F(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 });
|
|
876
875
|
}
|
|
877
876
|
deactivate() {
|
|
878
877
|
if (!this.active) return;
|
|
@@ -1080,7 +1079,7 @@ function Ie(e, t, n, r, i, a, o) {
|
|
|
1080
1079
|
}
|
|
1081
1080
|
s.done ? t(c) : Promise.resolve(c).then(r, i);
|
|
1082
1081
|
}
|
|
1083
|
-
function
|
|
1082
|
+
function U(e) {
|
|
1084
1083
|
return function() {
|
|
1085
1084
|
var t = this, n = arguments;
|
|
1086
1085
|
return new Promise(function(r, i) {
|
|
@@ -1095,15 +1094,15 @@ function Le(e) {
|
|
|
1095
1094
|
});
|
|
1096
1095
|
};
|
|
1097
1096
|
}
|
|
1098
|
-
var
|
|
1097
|
+
var Le = class {
|
|
1099
1098
|
constructor(e) {
|
|
1100
1099
|
this.Reveal = e;
|
|
1101
1100
|
}
|
|
1102
1101
|
activate() {
|
|
1103
1102
|
var e = this;
|
|
1104
|
-
return
|
|
1105
|
-
let t = e.Reveal.getConfig(), n =
|
|
1106
|
-
yield new Promise(requestAnimationFrame),
|
|
1103
|
+
return U(function* () {
|
|
1104
|
+
let t = e.Reveal.getConfig(), n = F(e.Reveal.getRevealElement(), z), 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), le("@page{size:" + a + "px " + o + "px; margin: 0px;}"), le(".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";
|
|
1107
1106
|
let l = e.Reveal.getViewportElement(), u;
|
|
1108
1107
|
if (l) {
|
|
1109
1108
|
let e = window.getComputedStyle(l);
|
|
@@ -1146,7 +1145,7 @@ var Re = class {
|
|
|
1146
1145
|
e.classList.remove("visible", "current-fragment");
|
|
1147
1146
|
});
|
|
1148
1147
|
});
|
|
1149
|
-
} else
|
|
1148
|
+
} else F(g, ".fragment:not(.fade-out)").forEach(function(e) {
|
|
1150
1149
|
e.classList.add("visible");
|
|
1151
1150
|
});
|
|
1152
1151
|
}
|
|
@@ -1156,7 +1155,7 @@ var Re = class {
|
|
|
1156
1155
|
isActive() {
|
|
1157
1156
|
return this.Reveal.getConfig().view === "print";
|
|
1158
1157
|
}
|
|
1159
|
-
},
|
|
1158
|
+
}, Re = class {
|
|
1160
1159
|
constructor(e) {
|
|
1161
1160
|
this.Reveal = e;
|
|
1162
1161
|
}
|
|
@@ -1164,12 +1163,12 @@ var Re = class {
|
|
|
1164
1163
|
e.fragments === !1 ? this.disable() : t.fragments === !1 && this.enable();
|
|
1165
1164
|
}
|
|
1166
1165
|
disable() {
|
|
1167
|
-
|
|
1166
|
+
F(this.Reveal.getSlidesElement(), ".fragment").forEach((e) => {
|
|
1168
1167
|
e.classList.add("visible"), e.classList.remove("current-fragment");
|
|
1169
1168
|
});
|
|
1170
1169
|
}
|
|
1171
1170
|
enable() {
|
|
1172
|
-
|
|
1171
|
+
F(this.Reveal.getSlidesElement(), ".fragment").forEach((e) => {
|
|
1173
1172
|
e.classList.remove("visible"), e.classList.remove("current-fragment");
|
|
1174
1173
|
});
|
|
1175
1174
|
}
|
|
@@ -1205,7 +1204,7 @@ var Re = class {
|
|
|
1205
1204
|
}
|
|
1206
1205
|
sortAll() {
|
|
1207
1206
|
this.Reveal.getHorizontalSlides().forEach((e) => {
|
|
1208
|
-
let t =
|
|
1207
|
+
let t = F(e, "section");
|
|
1209
1208
|
t.forEach((e, t) => {
|
|
1210
1209
|
this.sort(e.querySelectorAll(".fragment"));
|
|
1211
1210
|
}, this), t.length === 0 && this.sort(e.querySelectorAll(".fragment"));
|
|
@@ -1279,13 +1278,13 @@ var Re = class {
|
|
|
1279
1278
|
prev() {
|
|
1280
1279
|
return this.goto(null, -1);
|
|
1281
1280
|
}
|
|
1282
|
-
},
|
|
1281
|
+
}, ze = class {
|
|
1283
1282
|
constructor(e) {
|
|
1284
1283
|
this.Reveal = e, this.active = !1, this.onSlideClicked = this.onSlideClicked.bind(this);
|
|
1285
1284
|
}
|
|
1286
1285
|
activate() {
|
|
1287
1286
|
if (this.Reveal.getConfig().overview && !this.Reveal.isScrollView() && !this.isActive()) {
|
|
1288
|
-
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()), F(this.Reveal.getRevealElement(), z).forEach((e) => {
|
|
1289
1288
|
e.classList.contains("stack") || e.addEventListener("click", this.onSlideClicked, !0);
|
|
1290
1289
|
});
|
|
1291
1290
|
let e = this.Reveal.getComputedSlideSize();
|
|
@@ -1303,11 +1302,11 @@ var Re = class {
|
|
|
1303
1302
|
}
|
|
1304
1303
|
layout() {
|
|
1305
1304
|
this.Reveal.getHorizontalSlides().forEach((e, t) => {
|
|
1306
|
-
e.setAttribute("data-index-h", t), oe(e, "translate3d(" + t * this.overviewSlideWidth + "px, 0, 0)"), e.classList.contains("stack") &&
|
|
1305
|
+
e.setAttribute("data-index-h", t), oe(e, "translate3d(" + t * this.overviewSlideWidth + "px, 0, 0)"), e.classList.contains("stack") && F(e, "section").forEach((e, n) => {
|
|
1307
1306
|
e.setAttribute("data-index-h", t), e.setAttribute("data-index-v", n), oe(e, "translate3d(0, " + n * this.overviewSlideHeight + "px, 0)");
|
|
1308
1307
|
});
|
|
1309
1308
|
}), Array.from(this.Reveal.getBackgroundsElement().childNodes).forEach((e, t) => {
|
|
1310
|
-
oe(e, "translate3d(" + t * this.overviewSlideWidth + "px, 0, 0)"),
|
|
1309
|
+
oe(e, "translate3d(" + t * this.overviewSlideWidth + "px, 0, 0)"), F(e, ".slide-background").forEach((e, t) => {
|
|
1311
1310
|
oe(e, "translate3d(0, " + t * this.overviewSlideHeight + "px, 0)");
|
|
1312
1311
|
});
|
|
1313
1312
|
});
|
|
@@ -1324,9 +1323,9 @@ var Re = class {
|
|
|
1324
1323
|
if (this.Reveal.getConfig().overview) {
|
|
1325
1324
|
this.active = !1, this.Reveal.getRevealElement().classList.remove("overview"), this.Reveal.getRevealElement().classList.add("overview-deactivating"), setTimeout(() => {
|
|
1326
1325
|
this.Reveal.getRevealElement().classList.remove("overview-deactivating");
|
|
1327
|
-
}, 1), this.Reveal.getRevealElement().appendChild(this.Reveal.getBackgroundsElement()),
|
|
1326
|
+
}, 1), this.Reveal.getRevealElement().appendChild(this.Reveal.getBackgroundsElement()), F(this.Reveal.getRevealElement(), z).forEach((e) => {
|
|
1328
1327
|
oe(e, ""), e.removeEventListener("click", this.onSlideClicked, !0);
|
|
1329
|
-
}),
|
|
1328
|
+
}), F(this.Reveal.getBackgroundsElement(), ".slide-background").forEach((e) => {
|
|
1330
1329
|
oe(e, "");
|
|
1331
1330
|
}), this.Reveal.transformSlides({ overview: "" });
|
|
1332
1331
|
let e = this.Reveal.getIndices();
|
|
@@ -1357,7 +1356,7 @@ var Re = class {
|
|
|
1357
1356
|
}
|
|
1358
1357
|
}
|
|
1359
1358
|
}
|
|
1360
|
-
},
|
|
1359
|
+
}, Be = class {
|
|
1361
1360
|
constructor(e) {
|
|
1362
1361
|
this.Reveal = e, this.shortcuts = {}, this.bindings = {}, this.onDocumentKeyDown = this.onDocumentKeyDown.bind(this);
|
|
1363
1362
|
}
|
|
@@ -1447,10 +1446,10 @@ var Re = class {
|
|
|
1447
1446
|
66,
|
|
1448
1447
|
86,
|
|
1449
1448
|
190
|
|
1450
|
-
].includes(n) || n === 191 && !e.shiftKey ? this.Reveal.togglePause() : n === 70 ?
|
|
1449
|
+
].includes(n) || n === 191 && !e.shiftKey ? this.Reveal.togglePause() : n === 70 ? L(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();
|
|
1451
1450
|
}
|
|
1452
1451
|
};
|
|
1453
|
-
function
|
|
1452
|
+
function Ve(e, t) {
|
|
1454
1453
|
var n = Object.keys(e);
|
|
1455
1454
|
if (Object.getOwnPropertySymbols) {
|
|
1456
1455
|
var r = Object.getOwnPropertySymbols(e);
|
|
@@ -1460,20 +1459,20 @@ function H(e, t) {
|
|
|
1460
1459
|
}
|
|
1461
1460
|
return n;
|
|
1462
1461
|
}
|
|
1463
|
-
function
|
|
1462
|
+
function He(e) {
|
|
1464
1463
|
for (var t = 1; t < arguments.length; t++) {
|
|
1465
1464
|
var n = arguments[t] == null ? {} : arguments[t];
|
|
1466
|
-
t % 2 ?
|
|
1467
|
-
|
|
1468
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) :
|
|
1465
|
+
t % 2 ? Ve(Object(n), !0).forEach(function(t) {
|
|
1466
|
+
xe(e, t, n[t]);
|
|
1467
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Ve(Object(n)).forEach(function(t) {
|
|
1469
1468
|
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
|
|
1470
1469
|
});
|
|
1471
1470
|
}
|
|
1472
1471
|
return e;
|
|
1473
1472
|
}
|
|
1474
|
-
var
|
|
1473
|
+
var Ue = class {
|
|
1475
1474
|
constructor(e) {
|
|
1476
|
-
|
|
1475
|
+
xe(this, "MAX_REPLACE_STATE_FREQUENCY", 1e3), this.Reveal = e, this.writeURLTimeout = 0, this.replaceStateTimestamp = 0, this.onWindowHashChange = this.onWindowHashChange.bind(this);
|
|
1477
1476
|
}
|
|
1478
1477
|
bind() {
|
|
1479
1478
|
window.addEventListener("hashchange", this.onWindowHashChange, !1);
|
|
@@ -1490,7 +1489,7 @@ var He = class {
|
|
|
1490
1489
|
let t = decodeURIComponent(n);
|
|
1491
1490
|
e = (document.getElementById(t) || document.querySelector(`[data-id="${t}"]`)).closest(".slides section");
|
|
1492
1491
|
} catch {}
|
|
1493
|
-
if (e) return
|
|
1492
|
+
if (e) return He(He({}, this.Reveal.getIndices(e)), {}, { f: t });
|
|
1494
1493
|
} else {
|
|
1495
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;
|
|
1496
1495
|
return e.fragmentInURL && (o = parseInt(r[2], 10), isNaN(o) && (o = void 0)), {
|
|
@@ -1533,7 +1532,7 @@ var He = class {
|
|
|
1533
1532
|
onWindowHashChange(e) {
|
|
1534
1533
|
this.readURL();
|
|
1535
1534
|
}
|
|
1536
|
-
},
|
|
1535
|
+
}, We = class {
|
|
1537
1536
|
constructor(e) {
|
|
1538
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);
|
|
1539
1538
|
}
|
|
@@ -1542,7 +1541,7 @@ var He = class {
|
|
|
1542
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>
|
|
1543
1542
|
<button class="navigate-right" aria-label="${e ? "previous slide" : "next slide"}"><div class="controls-arrow"></div></button>
|
|
1544
1543
|
<button class="navigate-up" aria-label="above slide"><div class="controls-arrow"></div></button>
|
|
1545
|
-
<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 = F(t, ".navigate-left"), this.controlsRight = F(t, ".navigate-right"), this.controlsUp = F(t, ".navigate-up"), this.controlsDown = F(t, ".navigate-down"), this.controlsPrev = F(t, ".navigate-prev"), this.controlsNext = F(t, ".navigate-next"), this.controlsFullscreen = F(t, ".enter-fullscreen"), this.controlsRightArrow = this.element.querySelector(".navigate-right"), this.controlsLeftArrow = this.element.querySelector(".navigate-left"), this.controlsDownArrow = this.element.querySelector(".navigate-down");
|
|
1546
1545
|
}
|
|
1547
1546
|
configure(e, t) {
|
|
1548
1547
|
let n = e.controls === "speaker" || e.controls === "speaker-only";
|
|
@@ -1550,7 +1549,7 @@ var He = class {
|
|
|
1550
1549
|
}
|
|
1551
1550
|
bind() {
|
|
1552
1551
|
let e = ["touchstart", "click"];
|
|
1553
|
-
|
|
1552
|
+
_e && (e = ["touchend"]), e.forEach((e) => {
|
|
1554
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));
|
|
1555
1554
|
});
|
|
1556
1555
|
}
|
|
@@ -1634,9 +1633,9 @@ var He = class {
|
|
|
1634
1633
|
}
|
|
1635
1634
|
onEnterFullscreen(e) {
|
|
1636
1635
|
let t = this.Reveal.getConfig(), n = this.Reveal.getViewportElement();
|
|
1637
|
-
|
|
1636
|
+
L(t.embedded ? n : n.parentElement);
|
|
1638
1637
|
}
|
|
1639
|
-
},
|
|
1638
|
+
}, Ge = class {
|
|
1640
1639
|
constructor(e) {
|
|
1641
1640
|
this.Reveal = e, this.onProgressClicked = this.onProgressClicked.bind(this);
|
|
1642
1641
|
}
|
|
@@ -1671,7 +1670,7 @@ var He = class {
|
|
|
1671
1670
|
destroy() {
|
|
1672
1671
|
this.element.remove();
|
|
1673
1672
|
}
|
|
1674
|
-
},
|
|
1673
|
+
}, Ke = class {
|
|
1675
1674
|
constructor(e) {
|
|
1676
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);
|
|
1677
1676
|
}
|
|
@@ -1697,7 +1696,7 @@ var He = class {
|
|
|
1697
1696
|
t > 0 ? this.Reveal.next() : t < 0 && this.Reveal.prev();
|
|
1698
1697
|
}
|
|
1699
1698
|
}
|
|
1700
|
-
},
|
|
1699
|
+
}, qe = (e, t) => {
|
|
1701
1700
|
let n = document.createElement("script");
|
|
1702
1701
|
n.type = "text/javascript", n.async = !1, n.defer = !1, n.src = e, typeof t == "function" && (n.onload = (e) => {
|
|
1703
1702
|
e.type === "load" && (n.onload = n.onerror = null, t());
|
|
@@ -1706,7 +1705,7 @@ var He = class {
|
|
|
1706
1705
|
});
|
|
1707
1706
|
let r = document.querySelector("head");
|
|
1708
1707
|
r && r.insertBefore(n, r.lastChild);
|
|
1709
|
-
},
|
|
1708
|
+
}, Je = class {
|
|
1710
1709
|
constructor(e) {
|
|
1711
1710
|
this.Reveal = e, this.state = "idle", this.registeredPlugins = {}, this.asyncDependencies = [];
|
|
1712
1711
|
}
|
|
@@ -1721,7 +1720,7 @@ var He = class {
|
|
|
1721
1720
|
t && typeof t.callback == "function" && t.callback(), --r === 0 && this.initPlugins().then(e);
|
|
1722
1721
|
};
|
|
1723
1722
|
n.forEach((e) => {
|
|
1724
|
-
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" ? qe(e.src, () => t(e)) : (console.warn("Unrecognized plugin format", e), t());
|
|
1725
1724
|
});
|
|
1726
1725
|
} else this.initPlugins().then(e);
|
|
1727
1726
|
});
|
|
@@ -1746,7 +1745,7 @@ var He = class {
|
|
|
1746
1745
|
}
|
|
1747
1746
|
loadAsync() {
|
|
1748
1747
|
return this.state = "loaded", this.asyncDependencies.length && this.asyncDependencies.forEach((e) => {
|
|
1749
|
-
|
|
1748
|
+
qe(e.src, e.callback);
|
|
1750
1749
|
}), Promise.resolve();
|
|
1751
1750
|
}
|
|
1752
1751
|
registerPlugin(e) {
|
|
@@ -1768,7 +1767,7 @@ var He = class {
|
|
|
1768
1767
|
typeof e.destroy == "function" && e.destroy();
|
|
1769
1768
|
}), this.registeredPlugins = {}, this.asyncDependencies = [];
|
|
1770
1769
|
}
|
|
1771
|
-
},
|
|
1770
|
+
}, Ye = class {
|
|
1772
1771
|
constructor(e) {
|
|
1773
1772
|
this.Reveal = e, this.onSlidesClicked = this.onSlidesClicked.bind(this), this.iframeTriggerSelector = null, this.mediaTriggerSelector = "[data-preview-image], [data-preview-video]", this.stateProps = [
|
|
1774
1773
|
"previewIframe",
|
|
@@ -1916,7 +1915,7 @@ var He = class {
|
|
|
1916
1915
|
destroy() {
|
|
1917
1916
|
this.close();
|
|
1918
1917
|
}
|
|
1919
|
-
},
|
|
1918
|
+
}, W = 40, Xe = 1.03, Ze = class {
|
|
1920
1919
|
constructor(e) {
|
|
1921
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);
|
|
1922
1921
|
}
|
|
@@ -1929,7 +1928,7 @@ var He = class {
|
|
|
1929
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);
|
|
1930
1929
|
}
|
|
1931
1930
|
isSwipePrevented(e) {
|
|
1932
|
-
if (
|
|
1931
|
+
if (se(e, "video[controls], audio[controls]")) return !0;
|
|
1933
1932
|
for (; e && typeof e.hasAttribute == "function";) {
|
|
1934
1933
|
if (e.hasAttribute("data-prevent-swipe")) return !0;
|
|
1935
1934
|
e = e.parentNode;
|
|
@@ -1948,13 +1947,13 @@ var He = class {
|
|
|
1948
1947
|
onTouchMove(e) {
|
|
1949
1948
|
if (this.isSwipePrevented(e.target)) return !0;
|
|
1950
1949
|
let t = this.Reveal.getConfig();
|
|
1951
|
-
if (this.touchCaptured)
|
|
1950
|
+
if (this.touchCaptured) _e && e.preventDefault();
|
|
1952
1951
|
else {
|
|
1953
1952
|
this.Reveal.onUserInput(e);
|
|
1954
1953
|
let n = e.touches[0].clientX, r = e.touches[0].clientY;
|
|
1955
1954
|
if (e.touches.length === 1 && this.touchStartCount !== 2) {
|
|
1956
1955
|
let i = this.Reveal.availableRoutes({ includeFragments: !0 }), a = n - this.touchStartX, o = r - this.touchStartY;
|
|
1957
|
-
a >
|
|
1956
|
+
a > W && 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 > W && 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();
|
|
1958
1957
|
}
|
|
1959
1958
|
}
|
|
1960
1959
|
}
|
|
@@ -2167,19 +2166,19 @@ function at(e, t) {
|
|
|
2167
2166
|
}, d = [], f = 1, p = {
|
|
2168
2167
|
layout: "",
|
|
2169
2168
|
overview: ""
|
|
2170
|
-
}, m = {}, h = "idle", g = 0, _, v = 0, y = -1, b = !1, x = new
|
|
2171
|
-
function
|
|
2169
|
+
}, m = {}, h = "idle", g = 0, _, v = 0, y = -1, b = !1, x = new Se(n), S = new Ee(n), C = new De(n), w = new Ae(n), T = new Oe(n), E = new Fe(n), D = new Le(n), O = new Re(n), k = new ze(n), A = new Be(n), j = new Ue(n), ee = new We(n), te = new Ge(n), ne = new Ke(n), M = new Je(n), N = new Ye(n), P = new et(n), se = new Ze(n), L = new tt(n);
|
|
2170
|
+
function le(a) {
|
|
2172
2171
|
if (!e) throw "Unable to find presentation root (<div class=\"reveal\">).";
|
|
2173
2172
|
if (i) throw "Reveal.js has already been initialized.";
|
|
2174
2173
|
if (i = !0, m.wrapper = e, m.slides = e.querySelector(".slides"), !m.slides) throw "Unable to find slides container (<div class=\"slides\">).";
|
|
2175
|
-
return r =
|
|
2174
|
+
return r = He(He(He(He(He({}, rt), r), t), a), ue()), /print-pdf/gi.test(window.location.search) && (r.view = "print"), fe(), window.addEventListener("load", W, !1), M.load(r.plugins, r.dependencies).then(pe), new Promise((e) => n.on("ready", e));
|
|
2176
2175
|
}
|
|
2177
2176
|
function fe() {
|
|
2178
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");
|
|
2179
2178
|
}
|
|
2180
2179
|
function pe() {
|
|
2181
|
-
i !== !1 && (a = !0,
|
|
2182
|
-
m.slides.classList.remove("no-transition"), m.wrapper.classList.add("ready"),
|
|
2180
|
+
i !== !1 && (a = !0, he(), _e(), V(), xe(), we(), St(), H(), T.update(!0), me(), j.readURL(), setTimeout(() => {
|
|
2181
|
+
m.slides.classList.remove("no-transition"), m.wrapper.classList.add("ready"), U({
|
|
2183
2182
|
type: "ready",
|
|
2184
2183
|
data: {
|
|
2185
2184
|
indexh: o,
|
|
@@ -2191,22 +2190,22 @@ function at(e, t) {
|
|
|
2191
2190
|
}
|
|
2192
2191
|
function me() {
|
|
2193
2192
|
let e = r.view === "print", t = r.view === "scroll" || r.view === "reader";
|
|
2194
|
-
(e || t) && (e ?
|
|
2193
|
+
(e || t) && (e ? je() : se.unbind(), m.viewport.classList.add("loading-scroll-mode"), e ? document.readyState === "complete" ? D.activate() : window.addEventListener("load", () => D.activate()) : E.activate());
|
|
2195
2194
|
}
|
|
2196
|
-
function
|
|
2197
|
-
r.showHiddenSlides ||
|
|
2195
|
+
function he() {
|
|
2196
|
+
r.showHiddenSlides || F(m.wrapper, "section[data-visibility=\"hidden\"]").forEach((e) => {
|
|
2198
2197
|
let t = e.parentNode;
|
|
2199
2198
|
t.childElementCount === 1 && /section/i.test(t.nodeName) ? t.remove() : e.remove();
|
|
2200
2199
|
});
|
|
2201
2200
|
}
|
|
2202
|
-
function ge() {
|
|
2203
|
-
m.slides.classList.add("no-transition"), he ? m.wrapper.classList.add("no-hover") : m.wrapper.classList.remove("no-hover"), w.render(), S.render(), C.render(), te.render(), ne.render(), L.render(), m.pauseOverlay = ce(m.wrapper, "div", "pause-overlay", r.controls ? "<button class=\"resume-button\">Resume presentation</button>" : null), m.statusElement = _e(), m.wrapper.setAttribute("role", "application");
|
|
2204
|
-
}
|
|
2205
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
|
+
function ve() {
|
|
2206
2205
|
let e = m.wrapper.querySelector(".aria-status");
|
|
2207
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;
|
|
2208
2207
|
}
|
|
2209
|
-
function
|
|
2208
|
+
function R(e) {
|
|
2210
2209
|
m.statusElement.textContent = e;
|
|
2211
2210
|
}
|
|
2212
2211
|
function ye(e) {
|
|
@@ -2217,7 +2216,7 @@ function at(e, t) {
|
|
|
2217
2216
|
if (n !== "true" && !r) {
|
|
2218
2217
|
if (e.tagName === "IMG" || e.tagName === "VIDEO") {
|
|
2219
2218
|
let n = e.getAttribute("alt");
|
|
2220
|
-
n && (t +=
|
|
2219
|
+
n && (t += be(n));
|
|
2221
2220
|
}
|
|
2222
2221
|
Array.from(e.childNodes).forEach((e) => {
|
|
2223
2222
|
t += ye(e);
|
|
@@ -2234,58 +2233,58 @@ function at(e, t) {
|
|
|
2234
2233
|
"H5",
|
|
2235
2234
|
"H6",
|
|
2236
2235
|
"BLOCKQUOTE"
|
|
2237
|
-
].includes(e.tagName) && t.trim() !== "" && (t =
|
|
2236
|
+
].includes(e.tagName) && t.trim() !== "" && (t = be(t));
|
|
2238
2237
|
}
|
|
2239
2238
|
}
|
|
2240
2239
|
return t = t.trim(), t === "" ? "" : t + " ";
|
|
2241
2240
|
}
|
|
2242
|
-
function
|
|
2241
|
+
function be(e) {
|
|
2243
2242
|
let t = e.trim();
|
|
2244
2243
|
return t === "" ? e : /[.!?]$/.test(t) ? t : t + ".";
|
|
2245
2244
|
}
|
|
2246
|
-
function
|
|
2245
|
+
function xe() {
|
|
2247
2246
|
setInterval(() => {
|
|
2248
|
-
(!
|
|
2247
|
+
(!E.isActive() && m.wrapper.scrollTop !== 0 || m.wrapper.scrollLeft !== 0) && (m.wrapper.scrollTop = 0, m.wrapper.scrollLeft = 0);
|
|
2249
2248
|
}, 1e3);
|
|
2250
2249
|
}
|
|
2251
|
-
function
|
|
2252
|
-
document.addEventListener("fullscreenchange",
|
|
2250
|
+
function we() {
|
|
2251
|
+
document.addEventListener("fullscreenchange", nn), document.addEventListener("webkitfullscreenchange", nn);
|
|
2253
2252
|
}
|
|
2254
|
-
function
|
|
2255
|
-
r.postMessage && window.addEventListener("message",
|
|
2253
|
+
function V() {
|
|
2254
|
+
r.postMessage && window.addEventListener("message", Zt, !1);
|
|
2256
2255
|
}
|
|
2257
|
-
function
|
|
2258
|
-
let t =
|
|
2256
|
+
function H(e) {
|
|
2257
|
+
let t = He({}, r);
|
|
2259
2258
|
if (typeof e == "object" && re(r, e), n.isReady() === !1) return;
|
|
2260
|
-
let i = m.wrapper.querySelectorAll(
|
|
2261
|
-
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 &&
|
|
2259
|
+
let i = m.wrapper.querySelectorAll(z).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 && q(), ie(m.wrapper, "embedded", r.embedded), ie(m.wrapper, "rtl", r.rtl), ie(m.wrapper, "center", r.center), r.pause === !1 && ft(), w.reset(), _ &&= (_.destroy(), null), i > 1 && r.autoSlide && r.autoSlideStoppable && (_ = new nt(m.wrapper, () => Math.min(Math.max((Date.now() - y) / g, 0), 1)), _.on("click", rn), b = !1), r.navigationMode === "default" ? m.wrapper.removeAttribute("data-navigation-mode") : m.wrapper.setAttribute("data-navigation-mode", r.navigationMode), L.configure(r, t), P.configure(r, t), ne.configure(r, t), ee.configure(r, t), te.configure(r, t), A.configure(r, t), O.configure(r, t), S.configure(r, t), bt();
|
|
2261
|
+
}
|
|
2262
|
+
function ke() {
|
|
2263
|
+
window.addEventListener("resize", en, !1), r.touch && se.bind(), r.keyboard && A.bind(), r.progress && te.bind(), r.respondToHashChanges && j.bind(), ee.bind(), P.bind(), m.slides.addEventListener("click", $t, !1), m.slides.addEventListener("transitionend", Qt, !1), m.pauseOverlay.addEventListener("click", ft, !1), r.focusBodyOnPageVisibilityChange && document.addEventListener("visibilitychange", tn, !1);
|
|
2262
2264
|
}
|
|
2263
2265
|
function je() {
|
|
2264
|
-
|
|
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);
|
|
2265
2267
|
}
|
|
2266
2268
|
function Me() {
|
|
2267
|
-
|
|
2268
|
-
}
|
|
2269
|
-
function Ne() {
|
|
2270
|
-
i = !1, a !== !1 && (Me(), Ht(), L.destroy(), F.destroy(), N.destroy(), M.destroy(), j.destroy(), te.destroy(), ne.destroy(), w.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", Xe, !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(B)).forEach((e) => {
|
|
2269
|
+
i = !1, a !== !1 && (je(), Vt(), L.destroy(), P.destroy(), N.destroy(), M.destroy(), ne.destroy(), ee.destroy(), te.destroy(), T.destroy(), S.destroy(), C.destroy(), document.removeEventListener("fullscreenchange", nn), document.removeEventListener("webkitfullscreenchange", nn), document.removeEventListener("visibilitychange", tn, !1), window.removeEventListener("message", Zt, !1), window.removeEventListener("load", W, !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(z)).forEach((e) => {
|
|
2271
2270
|
e.style.removeProperty("display"), e.style.removeProperty("top"), e.removeAttribute("hidden"), e.removeAttribute("aria-hidden"), e.removeAttribute("inert");
|
|
2272
2271
|
}));
|
|
2273
2272
|
}
|
|
2274
|
-
function
|
|
2273
|
+
function Ne(t, n, r) {
|
|
2275
2274
|
e.addEventListener(t, n, r);
|
|
2276
2275
|
}
|
|
2277
|
-
function
|
|
2276
|
+
function Pe(t, n, r) {
|
|
2278
2277
|
e.removeEventListener(t, n, r);
|
|
2279
2278
|
}
|
|
2280
|
-
function
|
|
2279
|
+
function Ie(e) {
|
|
2281
2280
|
typeof e.layout == "string" && (p.layout = e.layout), typeof e.overview == "string" && (p.overview = e.overview), p.layout ? oe(m.slides, p.layout + " " + p.overview) : oe(m.slides, p.overview);
|
|
2282
2281
|
}
|
|
2283
|
-
function
|
|
2282
|
+
function U({ target: e = m.wrapper, type: t, data: n, bubbles: r = !0 }) {
|
|
2284
2283
|
let i = document.createEvent("HTMLEvents", 1, 2);
|
|
2285
|
-
return i.initEvent(t, r, !0), re(i, n), e.dispatchEvent(i), e === m.wrapper &&
|
|
2284
|
+
return i.initEvent(t, r, !0), re(i, n), e.dispatchEvent(i), e === m.wrapper && qe(t), i;
|
|
2286
2285
|
}
|
|
2287
|
-
function
|
|
2288
|
-
|
|
2286
|
+
function Ve(e) {
|
|
2287
|
+
U({
|
|
2289
2288
|
type: "slidechanged",
|
|
2290
2289
|
data: {
|
|
2291
2290
|
indexh: o,
|
|
@@ -2296,30 +2295,30 @@ function at(e, t) {
|
|
|
2296
2295
|
}
|
|
2297
2296
|
});
|
|
2298
2297
|
}
|
|
2299
|
-
function
|
|
2298
|
+
function qe(e, t) {
|
|
2300
2299
|
if (r.postMessageEvents && window.parent !== window.self) {
|
|
2301
2300
|
let n = {
|
|
2302
2301
|
namespace: "reveal",
|
|
2303
2302
|
eventName: e,
|
|
2304
|
-
state:
|
|
2303
|
+
state: Rt()
|
|
2305
2304
|
};
|
|
2306
2305
|
re(n, t), window.parent.postMessage(JSON.stringify(n), "*");
|
|
2307
2306
|
}
|
|
2308
2307
|
}
|
|
2309
|
-
function
|
|
2310
|
-
if (m.wrapper && !
|
|
2308
|
+
function W() {
|
|
2309
|
+
if (m.wrapper && !D.isActive()) {
|
|
2311
2310
|
let e = m.viewport.offsetWidth, t = m.viewport.offsetHeight;
|
|
2312
2311
|
if (!r.disableLayout) {
|
|
2313
|
-
|
|
2314
|
-
let n =
|
|
2315
|
-
|
|
2316
|
-
let a = Array.from(m.wrapper.querySelectorAll(
|
|
2312
|
+
ge && !r.embedded && document.documentElement.style.setProperty("--vh", window.innerHeight * .01 + "px");
|
|
2313
|
+
let n = E.isActive() ? $e(e, t) : $e(), i = f;
|
|
2314
|
+
Xe(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 = "", Ie({ 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", Ie({ layout: "translate(-50%, -50%) scale(" + f + ")" }));
|
|
2315
|
+
let a = Array.from(m.wrapper.querySelectorAll(z)).filter((e) => e.style.display !== "none"), o = Array(a.length);
|
|
2317
2316
|
for (let e = 0, t = a.length; e < t; e++) {
|
|
2318
2317
|
let t = a[e];
|
|
2319
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] = "";
|
|
2320
2319
|
}
|
|
2321
2320
|
for (let e = 0, t = a.length; e < t; e++) a[e].style.top = o[e];
|
|
2322
|
-
i !== f &&
|
|
2321
|
+
i !== f && U({
|
|
2323
2322
|
type: "resize",
|
|
2324
2323
|
data: {
|
|
2325
2324
|
oldScale: i,
|
|
@@ -2328,25 +2327,25 @@ function at(e, t) {
|
|
|
2328
2327
|
}
|
|
2329
2328
|
});
|
|
2330
2329
|
}
|
|
2331
|
-
|
|
2330
|
+
Qe(), 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(), te.update(), T.updateParallax(), k.isActive() && k.update();
|
|
2332
2331
|
}
|
|
2333
2332
|
}
|
|
2334
|
-
function
|
|
2335
|
-
|
|
2336
|
-
let r =
|
|
2333
|
+
function Xe(e, t) {
|
|
2334
|
+
F(m.slides, "section > .stretch, section > .r-stretch").forEach((n) => {
|
|
2335
|
+
let r = de(n, t);
|
|
2337
2336
|
if (/(img|video)/gi.test(n.nodeName)) {
|
|
2338
2337
|
let t = n.naturalWidth || n.videoWidth, i = n.naturalHeight || n.videoHeight, a = Math.min(e / t, r / i);
|
|
2339
2338
|
n.style.width = t * a + "px", n.style.height = i * a + "px";
|
|
2340
2339
|
} else n.style.width = e + "px", n.style.height = r + "px";
|
|
2341
2340
|
});
|
|
2342
2341
|
}
|
|
2343
|
-
function
|
|
2344
|
-
if (m.wrapper && !r.disableLayout && !
|
|
2345
|
-
let e =
|
|
2346
|
-
e.presentationWidth > 0 && e.presentationWidth <= r.scrollActivationWidth ?
|
|
2342
|
+
function Qe() {
|
|
2343
|
+
if (m.wrapper && !r.disableLayout && !D.isActive() && typeof r.scrollActivationWidth == "number" && r.view !== "scroll") {
|
|
2344
|
+
let e = $e();
|
|
2345
|
+
e.presentationWidth > 0 && e.presentationWidth <= r.scrollActivationWidth ? E.isActive() || (T.create(), E.activate()) : E.isActive() && E.deactivate();
|
|
2347
2346
|
}
|
|
2348
2347
|
}
|
|
2349
|
-
function
|
|
2348
|
+
function $e(e, t) {
|
|
2350
2349
|
let n = r.width, i = r.height;
|
|
2351
2350
|
r.disableLayout && (n = m.slides.offsetWidth, i = m.slides.offsetHeight);
|
|
2352
2351
|
let a = {
|
|
@@ -2357,7 +2356,7 @@ function at(e, t) {
|
|
|
2357
2356
|
};
|
|
2358
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;
|
|
2359
2358
|
}
|
|
2360
|
-
function
|
|
2359
|
+
function at(e, t) {
|
|
2361
2360
|
typeof e == "object" && typeof e.setAttribute == "function" && e.setAttribute("data-previous-indexv", t || 0);
|
|
2362
2361
|
}
|
|
2363
2362
|
function ot(e) {
|
|
@@ -2367,30 +2366,30 @@ function at(e, t) {
|
|
|
2367
2366
|
}
|
|
2368
2367
|
return 0;
|
|
2369
2368
|
}
|
|
2370
|
-
function
|
|
2369
|
+
function st(e = l) {
|
|
2371
2370
|
return e && e.parentNode && !!e.parentNode.nodeName.match(/section/i);
|
|
2372
2371
|
}
|
|
2373
|
-
function
|
|
2372
|
+
function G(e = l) {
|
|
2374
2373
|
return e.classList.contains(".stack") || e.querySelector("section") !== null;
|
|
2375
2374
|
}
|
|
2376
2375
|
function ct() {
|
|
2377
|
-
return l &&
|
|
2376
|
+
return l && st(l) ? !l.nextElementSibling : !1;
|
|
2378
2377
|
}
|
|
2379
2378
|
function lt() {
|
|
2380
2379
|
return o === 0 && s === 0;
|
|
2381
2380
|
}
|
|
2382
2381
|
function ut() {
|
|
2383
|
-
return l ? !(l.nextElementSibling ||
|
|
2382
|
+
return l ? !(l.nextElementSibling || st(l) && l.parentNode.nextElementSibling) : !1;
|
|
2384
2383
|
}
|
|
2385
2384
|
function dt() {
|
|
2386
2385
|
if (r.pause) {
|
|
2387
2386
|
let e = m.wrapper.classList.contains("paused");
|
|
2388
|
-
|
|
2387
|
+
Vt(), m.wrapper.classList.add("paused"), e === !1 && U({ type: "paused" });
|
|
2389
2388
|
}
|
|
2390
2389
|
}
|
|
2391
2390
|
function ft() {
|
|
2392
2391
|
let e = m.wrapper.classList.contains("paused");
|
|
2393
|
-
m.wrapper.classList.remove("paused"),
|
|
2392
|
+
m.wrapper.classList.remove("paused"), Bt(), e && U({ type: "resumed" });
|
|
2394
2393
|
}
|
|
2395
2394
|
function pt(e) {
|
|
2396
2395
|
typeof e == "boolean" ? e ? dt() : ft() : mt() ? ft() : dt();
|
|
@@ -2402,13 +2401,13 @@ function at(e, t) {
|
|
|
2402
2401
|
typeof e == "boolean" ? e ? C.show() : C.hide() : C.isVisible() ? C.hide() : C.show();
|
|
2403
2402
|
}
|
|
2404
2403
|
function gt(e) {
|
|
2405
|
-
typeof e == "boolean" ? e ?
|
|
2404
|
+
typeof e == "boolean" ? e ? Ut() : Ht() : b ? Ut() : Ht();
|
|
2406
2405
|
}
|
|
2407
2406
|
function _t() {
|
|
2408
|
-
return
|
|
2407
|
+
return !(!g || b);
|
|
2409
2408
|
}
|
|
2410
2409
|
function K(t, n, i, a) {
|
|
2411
|
-
if (
|
|
2410
|
+
if (U({
|
|
2412
2411
|
type: "beforeslidechange",
|
|
2413
2412
|
data: {
|
|
2414
2413
|
indexh: t === void 0 ? o : t,
|
|
@@ -2417,26 +2416,26 @@ function at(e, t) {
|
|
|
2417
2416
|
}
|
|
2418
2417
|
}).defaultPrevented) return;
|
|
2419
2418
|
c = l;
|
|
2420
|
-
let u = m.wrapper.querySelectorAll(
|
|
2421
|
-
if (
|
|
2422
|
-
let e =
|
|
2423
|
-
e &&
|
|
2419
|
+
let u = m.wrapper.querySelectorAll(B);
|
|
2420
|
+
if (E.isActive()) {
|
|
2421
|
+
let e = E.getSlideByIndices(t, n);
|
|
2422
|
+
e && E.scrollToSlide(e);
|
|
2424
2423
|
return;
|
|
2425
2424
|
}
|
|
2426
2425
|
if (u.length === 0) return;
|
|
2427
|
-
n === void 0 && !
|
|
2426
|
+
n === void 0 && !k.isActive() && (n = ot(u[t])), c && c.parentNode && c.parentNode.classList.contains("stack") && at(c.parentNode, s);
|
|
2428
2427
|
let f = d.concat();
|
|
2429
2428
|
d.length = 0;
|
|
2430
2429
|
let p = o || 0, g = s || 0;
|
|
2431
|
-
o =
|
|
2430
|
+
o = J(B, t === void 0 ? o : t), s = J(Ce, n === void 0 ? s : n);
|
|
2432
2431
|
let _ = o !== p || s !== g;
|
|
2433
2432
|
_ || (c = null);
|
|
2434
2433
|
let v = u[o], y = v.querySelectorAll("section");
|
|
2435
2434
|
e.classList.toggle("is-vertical-slide", y.length > 1), l = y[s] || v;
|
|
2436
2435
|
let b = !1;
|
|
2437
|
-
_ && c && l && !
|
|
2438
|
-
|
|
2439
|
-
|
|
2436
|
+
_ && c && l && !k.isActive() && (h = "running", b = vt(c, l, p, g), b && m.slides.classList.add("disable-slide-transitions")), wt(), W(), k.isActive() && k.update(), i !== void 0 && O.goto(i), c && c !== l && (c.classList.remove("present"), c.setAttribute("aria-hidden", "true"), lt() && setTimeout(() => {
|
|
2437
|
+
jt().forEach((e) => {
|
|
2438
|
+
at(e, 0);
|
|
2440
2439
|
});
|
|
2441
2440
|
}, 0));
|
|
2442
2441
|
stateLoop: for (let e = 0, t = d.length; e < t; e++) {
|
|
@@ -2444,14 +2443,14 @@ function at(e, t) {
|
|
|
2444
2443
|
f.splice(t, 1);
|
|
2445
2444
|
continue stateLoop;
|
|
2446
2445
|
}
|
|
2447
|
-
m.viewport.classList.add(d[e]),
|
|
2446
|
+
m.viewport.classList.add(d[e]), U({ type: d[e] });
|
|
2448
2447
|
}
|
|
2449
2448
|
for (; f.length;) m.viewport.classList.remove(f.pop());
|
|
2450
|
-
_ && (x.afterSlideChanged(),
|
|
2451
|
-
|
|
2452
|
-
}),
|
|
2449
|
+
_ && (x.afterSlideChanged(), Ve(a)), (_ || !c) && (x.stopEmbeddedContent(c), x.startEmbeddedContent(l)), requestAnimationFrame(() => {
|
|
2450
|
+
R(ye(l));
|
|
2451
|
+
}), te.update(), ee.update(), L.update(), T.update(), T.updateParallax(), S.update(), O.update(), j.writeURL(), Bt(), b && (setTimeout(() => {
|
|
2453
2452
|
m.slides.classList.remove("disable-slide-transitions");
|
|
2454
|
-
}, 0), r.autoAnimate &&
|
|
2453
|
+
}, 0), r.autoAnimate && w.run(c, l));
|
|
2455
2454
|
}
|
|
2456
2455
|
function vt(e, t, n, r) {
|
|
2457
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");
|
|
@@ -2460,48 +2459,44 @@ function at(e, t) {
|
|
|
2460
2459
|
let i = o || 0;
|
|
2461
2460
|
o = t, s = n;
|
|
2462
2461
|
let a = l !== e;
|
|
2463
|
-
c = l, l = e, l && c && r.autoAnimate && vt(c, l, i, s) &&
|
|
2464
|
-
|
|
2465
|
-
}),
|
|
2462
|
+
c = l, l = e, l && c && r.autoAnimate && vt(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
|
+
R(ye(l));
|
|
2464
|
+
}), Ve();
|
|
2466
2465
|
}
|
|
2467
|
-
function
|
|
2468
|
-
|
|
2466
|
+
function bt() {
|
|
2467
|
+
je(), ke(), W(), g = r.autoSlide, Bt(), T.create(), j.writeURL(), r.sortFragmentsOnSync === !0 && O.sortAll(), o !== void 0 && (o = J(B, o), s = J(Ce, s)), ee.update(), te.update(), wt(), L.update(), L.updateVisibility(), N.update(), T.update(!0), S.update(), x.formatEmbeddedContent(), r.autoPlayMedia === !1 ? x.stopEmbeddedContent(l, { unloadIframes: !1 }) : x.startEmbeddedContent(l), k.isActive() && k.layout(), U({ type: "sync" });
|
|
2469
2468
|
}
|
|
2470
|
-
function
|
|
2471
|
-
|
|
2469
|
+
function xt(e = l) {
|
|
2470
|
+
T.sync(e), O.sync(e), x.load(e), T.update(), L.update(), U({
|
|
2472
2471
|
type: "slidesync",
|
|
2473
2472
|
data: { slide: e }
|
|
2474
2473
|
});
|
|
2475
2474
|
}
|
|
2476
|
-
function
|
|
2477
|
-
|
|
2478
|
-
|
|
2475
|
+
function St() {
|
|
2476
|
+
kt().forEach((e) => {
|
|
2477
|
+
F(e, "section").forEach((e, t) => {
|
|
2479
2478
|
t > 0 && (e.classList.remove("present"), e.classList.remove("past"), e.classList.add("future"), e.setAttribute("aria-hidden", "true"));
|
|
2480
2479
|
});
|
|
2481
2480
|
});
|
|
2482
2481
|
}
|
|
2483
|
-
function
|
|
2482
|
+
function q(e = kt()) {
|
|
2484
2483
|
e.forEach((t, n) => {
|
|
2485
2484
|
let r = e[Math.floor(Math.random() * e.length)];
|
|
2486
2485
|
r.parentNode === t.parentNode && t.parentNode.insertBefore(t, r);
|
|
2487
2486
|
let i = t.querySelectorAll("section");
|
|
2488
|
-
i.length &&
|
|
2487
|
+
i.length && q(i);
|
|
2489
2488
|
});
|
|
2490
2489
|
}
|
|
2491
|
-
function
|
|
2492
|
-
let n =
|
|
2490
|
+
function J(e, t) {
|
|
2491
|
+
let n = F(m.wrapper, e), i = n.length, a = E.isActive() || D.isActive(), o = !1, s = !1;
|
|
2493
2492
|
if (i) {
|
|
2494
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);
|
|
2495
2494
|
for (let e = 0; e < i; e++) {
|
|
2496
|
-
let i = n[e], c = r.rtl && !
|
|
2497
|
-
|
|
2498
|
-
i.classList.add("present");
|
|
2499
|
-
continue;
|
|
2500
|
-
}
|
|
2501
|
-
e < t ? (i.classList.add(c ? "future" : "past"), r.fragments && Y(i)) : e > t ? (i.classList.add(c ? "past" : "future"), r.fragments && Ct(i)) : e === t && r.fragments && (o ? Ct(i) : s && Y(i));
|
|
2495
|
+
let i = n[e], c = r.rtl && !st(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 && Ct(i)) : e > t ? (i.classList.add(c ? "past" : "future"), r.fragments && Y(i)) : e === t && r.fragments && (o ? Y(i) : s && Ct(i));
|
|
2502
2497
|
}
|
|
2503
2498
|
let e = n[t], c = e.classList.contains("present");
|
|
2504
|
-
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 || U({
|
|
2505
2500
|
target: e,
|
|
2506
2501
|
type: "visible",
|
|
2507
2502
|
bubbles: !1
|
|
@@ -2511,23 +2506,23 @@ function at(e, t) {
|
|
|
2511
2506
|
} else t = 0;
|
|
2512
2507
|
return t;
|
|
2513
2508
|
}
|
|
2514
|
-
function
|
|
2515
|
-
|
|
2509
|
+
function Ct(e) {
|
|
2510
|
+
F(e, ".fragment").forEach((e) => {
|
|
2516
2511
|
e.classList.add("visible"), e.classList.remove("current-fragment");
|
|
2517
2512
|
});
|
|
2518
2513
|
}
|
|
2519
|
-
function
|
|
2520
|
-
|
|
2514
|
+
function Y(e) {
|
|
2515
|
+
F(e, ".fragment.visible").forEach((e) => {
|
|
2521
2516
|
e.classList.remove("visible", "current-fragment");
|
|
2522
2517
|
});
|
|
2523
2518
|
}
|
|
2524
2519
|
function wt() {
|
|
2525
|
-
let e =
|
|
2520
|
+
let e = kt(), t = e.length, n, i;
|
|
2526
2521
|
if (t && o !== void 0) {
|
|
2527
|
-
let a =
|
|
2528
|
-
|
|
2522
|
+
let a = k.isActive(), c = a ? 10 : r.viewDistance;
|
|
2523
|
+
ge && (c = a ? 6 : r.mobileViewDistance), D.isActive() && (c = Number.MAX_VALUE);
|
|
2529
2524
|
for (let l = 0; l < t; l++) {
|
|
2530
|
-
let u = e[l], d =
|
|
2525
|
+
let u = e[l], d = F(u, "section"), f = d.length;
|
|
2531
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) {
|
|
2532
2527
|
let e = a ? 0 : ot(u);
|
|
2533
2528
|
for (let t = 0; t < f; t++) {
|
|
@@ -2536,22 +2531,22 @@ function at(e, t) {
|
|
|
2536
2531
|
}
|
|
2537
2532
|
}
|
|
2538
2533
|
}
|
|
2539
|
-
|
|
2534
|
+
Nt() ? m.wrapper.classList.add("has-vertical-slides") : m.wrapper.classList.remove("has-vertical-slides"), Mt() ? m.wrapper.classList.add("has-horizontal-slides") : m.wrapper.classList.remove("has-horizontal-slides");
|
|
2540
2535
|
}
|
|
2541
|
-
let a =
|
|
2542
|
-
|
|
2536
|
+
let a = k.isActive() || E.isActive() || D.isActive();
|
|
2537
|
+
F(m.wrapper, z).forEach((e) => {
|
|
2543
2538
|
e.toggleAttribute("inert", !a && e !== l && !e.contains(l));
|
|
2544
2539
|
});
|
|
2545
2540
|
}
|
|
2546
|
-
function
|
|
2547
|
-
let t = m.wrapper.querySelectorAll(
|
|
2541
|
+
function X({ includeFragments: e = !1 } = {}) {
|
|
2542
|
+
let t = m.wrapper.querySelectorAll(B), n = m.wrapper.querySelectorAll(Ce), i = {
|
|
2548
2543
|
left: o > 0,
|
|
2549
2544
|
right: o < t.length - 1,
|
|
2550
2545
|
up: s > 0,
|
|
2551
2546
|
down: s < n.length - 1
|
|
2552
2547
|
};
|
|
2553
2548
|
if (r.loop && (t.length > 1 && (i.left = !0, i.right = !0), n.length > 1 && (i.up = !0, i.down = !0)), t.length > 1 && r.navigationMode === "linear" && (i.right = i.right || i.down, i.left = i.left || i.up), e === !0) {
|
|
2554
|
-
let e =
|
|
2549
|
+
let e = O.availableRoutes();
|
|
2555
2550
|
i.left = i.left || e.prev, i.up = i.up || e.prev, i.down = i.down || e.next, i.right = i.right || e.next;
|
|
2556
2551
|
}
|
|
2557
2552
|
if (r.rtl) {
|
|
@@ -2560,8 +2555,8 @@ function at(e, t) {
|
|
|
2560
2555
|
}
|
|
2561
2556
|
return i;
|
|
2562
2557
|
}
|
|
2563
|
-
function
|
|
2564
|
-
let t =
|
|
2558
|
+
function Tt(e = l) {
|
|
2559
|
+
let t = kt(), n = 0;
|
|
2565
2560
|
mainLoop: for (let r = 0; r < t.length; r++) {
|
|
2566
2561
|
let i = t[r], a = i.querySelectorAll("section");
|
|
2567
2562
|
for (let t = 0; t < a.length; t++) {
|
|
@@ -2573,8 +2568,8 @@ function at(e, t) {
|
|
|
2573
2568
|
}
|
|
2574
2569
|
return n;
|
|
2575
2570
|
}
|
|
2576
|
-
function
|
|
2577
|
-
let e =
|
|
2571
|
+
function Et() {
|
|
2572
|
+
let e = Ft(), t = Tt();
|
|
2578
2573
|
if (l) {
|
|
2579
2574
|
let e = l.querySelectorAll(".fragment");
|
|
2580
2575
|
if (e.length > 0) {
|
|
@@ -2584,13 +2579,13 @@ function at(e, t) {
|
|
|
2584
2579
|
}
|
|
2585
2580
|
return Math.min(t / (e - 1), 1);
|
|
2586
2581
|
}
|
|
2587
|
-
function
|
|
2582
|
+
function Dt(e) {
|
|
2588
2583
|
let t = o, n = s, r;
|
|
2589
2584
|
if (e) {
|
|
2590
|
-
if (
|
|
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));
|
|
2591
2586
|
else {
|
|
2592
|
-
let r =
|
|
2593
|
-
t = Math.max(a.indexOf(i), 0), n = void 0, r && (n = Math.max(
|
|
2587
|
+
let r = st(e), i = r ? e.parentNode : e, a = kt();
|
|
2588
|
+
t = Math.max(a.indexOf(i), 0), n = void 0, r && (n = Math.max(F(e.parentNode, "section").indexOf(e), 0));
|
|
2594
2589
|
}
|
|
2595
2590
|
}
|
|
2596
2591
|
if (!e && l && l.querySelectorAll(".fragment").length > 0) {
|
|
@@ -2603,26 +2598,26 @@ function at(e, t) {
|
|
|
2603
2598
|
f: r
|
|
2604
2599
|
};
|
|
2605
2600
|
}
|
|
2601
|
+
function Ot() {
|
|
2602
|
+
return F(m.wrapper, z + ":not(.stack):not([data-visibility=\"uncounted\"])");
|
|
2603
|
+
}
|
|
2606
2604
|
function kt() {
|
|
2607
|
-
return
|
|
2605
|
+
return F(m.wrapper, B);
|
|
2608
2606
|
}
|
|
2609
2607
|
function At() {
|
|
2610
|
-
return
|
|
2608
|
+
return F(m.wrapper, ".slides>section>section");
|
|
2611
2609
|
}
|
|
2612
2610
|
function jt() {
|
|
2613
|
-
return
|
|
2611
|
+
return F(m.wrapper, B + ".stack");
|
|
2614
2612
|
}
|
|
2615
2613
|
function Mt() {
|
|
2616
|
-
return
|
|
2614
|
+
return kt().length > 1;
|
|
2617
2615
|
}
|
|
2618
2616
|
function Nt() {
|
|
2619
2617
|
return At().length > 1;
|
|
2620
2618
|
}
|
|
2621
2619
|
function Pt() {
|
|
2622
|
-
return
|
|
2623
|
-
}
|
|
2624
|
-
function Ft() {
|
|
2625
|
-
return kt().map((e) => {
|
|
2620
|
+
return Ot().map((e) => {
|
|
2626
2621
|
let t = {};
|
|
2627
2622
|
for (let n = 0; n < e.attributes.length; n++) {
|
|
2628
2623
|
let r = e.attributes[n];
|
|
@@ -2631,106 +2626,106 @@ function at(e, t) {
|
|
|
2631
2626
|
return t;
|
|
2632
2627
|
});
|
|
2633
2628
|
}
|
|
2634
|
-
function
|
|
2635
|
-
return
|
|
2629
|
+
function Ft() {
|
|
2630
|
+
return Ot().length;
|
|
2636
2631
|
}
|
|
2637
|
-
function
|
|
2638
|
-
let n =
|
|
2632
|
+
function It(e, t) {
|
|
2633
|
+
let n = kt()[e], r = n && n.querySelectorAll("section");
|
|
2639
2634
|
return r && r.length && typeof t == "number" ? r ? r[t] : void 0 : n;
|
|
2640
2635
|
}
|
|
2641
|
-
function
|
|
2642
|
-
let n = typeof e == "number" ?
|
|
2636
|
+
function Lt(e, t) {
|
|
2637
|
+
let n = typeof e == "number" ? It(e, t) : e;
|
|
2643
2638
|
if (n) return n.slideBackgroundElement;
|
|
2644
2639
|
}
|
|
2645
|
-
function
|
|
2646
|
-
let e =
|
|
2647
|
-
return
|
|
2640
|
+
function Rt() {
|
|
2641
|
+
let e = Dt();
|
|
2642
|
+
return He({
|
|
2648
2643
|
indexh: e.h,
|
|
2649
2644
|
indexv: e.v,
|
|
2650
2645
|
indexf: e.f,
|
|
2651
2646
|
paused: mt(),
|
|
2652
|
-
overview:
|
|
2647
|
+
overview: k.isActive()
|
|
2653
2648
|
}, N.getState());
|
|
2654
2649
|
}
|
|
2655
|
-
function
|
|
2650
|
+
function zt(e) {
|
|
2656
2651
|
if (typeof e == "object") {
|
|
2657
2652
|
K(ae(e.indexh), ae(e.indexv), ae(e.indexf));
|
|
2658
2653
|
let t = ae(e.paused), n = ae(e.overview);
|
|
2659
|
-
typeof t == "boolean" && t !== mt() && pt(t), typeof n == "boolean" && n !==
|
|
2654
|
+
typeof t == "boolean" && t !== mt() && pt(t), typeof n == "boolean" && n !== k.isActive() && k.toggle(n), N.setState(e);
|
|
2660
2655
|
}
|
|
2661
2656
|
}
|
|
2662
|
-
function
|
|
2663
|
-
if (
|
|
2657
|
+
function Bt() {
|
|
2658
|
+
if (Vt(), l && r.autoSlide !== !1) {
|
|
2664
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");
|
|
2665
|
-
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 && F(l, "video, audio").forEach((e) => {
|
|
2666
2661
|
e.hasAttribute("data-autoplay") && g && e.duration * 1e3 / e.playbackRate > g && (g = e.duration * 1e3 / e.playbackRate + 1e3);
|
|
2667
|
-
})), g && !b && !mt() && !
|
|
2668
|
-
typeof r.autoSlideMethod == "function" ? r.autoSlideMethod() :
|
|
2662
|
+
})), g && !b && !mt() && !k.isActive() && (!ut() || O.availableRoutes().next || r.loop === !0) && (v = setTimeout(() => {
|
|
2663
|
+
typeof r.autoSlideMethod == "function" ? r.autoSlideMethod() : Yt(), Bt();
|
|
2669
2664
|
}, g), y = Date.now()), _ && _.setPlaying(v !== -1);
|
|
2670
2665
|
}
|
|
2671
2666
|
}
|
|
2672
|
-
function
|
|
2667
|
+
function Vt() {
|
|
2673
2668
|
clearTimeout(v), v = -1;
|
|
2674
2669
|
}
|
|
2670
|
+
function Ht() {
|
|
2671
|
+
g && !b && (b = !0, U({ type: "autoslidepaused" }), clearTimeout(v), _ && _.setPlaying(!1));
|
|
2672
|
+
}
|
|
2675
2673
|
function Ut() {
|
|
2676
|
-
g &&
|
|
2674
|
+
g && b && (b = !1, U({ type: "autoslideresumed" }), Bt());
|
|
2677
2675
|
}
|
|
2678
|
-
function Wt() {
|
|
2679
|
-
|
|
2676
|
+
function Wt({ skipFragments: e = !1 } = {}) {
|
|
2677
|
+
if (u.hasNavigatedHorizontally = !0, E.isActive()) return E.prev();
|
|
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);
|
|
2680
2679
|
}
|
|
2681
2680
|
function Gt({ skipFragments: e = !1 } = {}) {
|
|
2682
|
-
if (u.hasNavigatedHorizontally = !0,
|
|
2683
|
-
r.rtl ? (
|
|
2681
|
+
if (u.hasNavigatedHorizontally = !0, E.isActive()) return E.next();
|
|
2682
|
+
r.rtl ? (k.isActive() || e || O.prev() === !1) && X().right && K(o - 1, r.navigationMode === "grid" ? s : void 0) : (k.isActive() || e || O.next() === !1) && X().right && K(o + 1, r.navigationMode === "grid" ? s : void 0);
|
|
2684
2683
|
}
|
|
2685
2684
|
function Kt({ skipFragments: e = !1 } = {}) {
|
|
2686
|
-
if (
|
|
2687
|
-
|
|
2685
|
+
if (E.isActive()) return E.prev();
|
|
2686
|
+
(k.isActive() || e || O.prev() === !1) && X().up && K(o, s - 1);
|
|
2688
2687
|
}
|
|
2689
2688
|
function qt({ skipFragments: e = !1 } = {}) {
|
|
2690
|
-
if (
|
|
2691
|
-
(
|
|
2689
|
+
if (u.hasNavigatedVertically = !0, E.isActive()) return E.next();
|
|
2690
|
+
(k.isActive() || e || O.next() === !1) && X().down && K(o, s + 1);
|
|
2692
2691
|
}
|
|
2693
2692
|
function Jt({ skipFragments: e = !1 } = {}) {
|
|
2694
|
-
if (
|
|
2695
|
-
(
|
|
2696
|
-
|
|
2697
|
-
function Yt({ skipFragments: e = !1 } = {}) {
|
|
2698
|
-
if (T.isActive()) return T.prev();
|
|
2699
|
-
if (e || D.prev() === !1) {
|
|
2700
|
-
if (Tt().up) qt({ skipFragments: e });
|
|
2693
|
+
if (E.isActive()) return E.prev();
|
|
2694
|
+
if (e || O.prev() === !1) {
|
|
2695
|
+
if (X().up) Kt({ skipFragments: e });
|
|
2701
2696
|
else {
|
|
2702
2697
|
let t;
|
|
2703
|
-
if (t = r.rtl ?
|
|
2698
|
+
if (t = r.rtl ? F(m.wrapper, B + ".future").pop() : F(m.wrapper, B + ".past").pop(), t && t.classList.contains("stack")) {
|
|
2704
2699
|
let e = t.querySelectorAll("section").length - 1 || void 0;
|
|
2705
2700
|
K(o - 1, e);
|
|
2706
|
-
} else r.rtl ?
|
|
2701
|
+
} else r.rtl ? Gt({ skipFragments: e }) : Wt({ skipFragments: e });
|
|
2707
2702
|
}
|
|
2708
2703
|
}
|
|
2709
2704
|
}
|
|
2710
|
-
function
|
|
2711
|
-
if (u.hasNavigatedHorizontally = !0, u.hasNavigatedVertically = !0,
|
|
2712
|
-
if (e ||
|
|
2713
|
-
let t =
|
|
2714
|
-
t.down && t.right && r.loop && ct() && (t.down = !1), t.down ?
|
|
2705
|
+
function Yt({ skipFragments: e = !1 } = {}) {
|
|
2706
|
+
if (u.hasNavigatedHorizontally = !0, u.hasNavigatedVertically = !0, E.isActive()) return E.next();
|
|
2707
|
+
if (e || O.next() === !1) {
|
|
2708
|
+
let t = X();
|
|
2709
|
+
t.down && t.right && r.loop && ct() && (t.down = !1), t.down ? qt({ skipFragments: e }) : r.rtl ? Wt({ skipFragments: e }) : Gt({ skipFragments: e });
|
|
2715
2710
|
}
|
|
2716
2711
|
}
|
|
2717
|
-
function
|
|
2718
|
-
r.autoSlideStoppable &&
|
|
2712
|
+
function Xt(e) {
|
|
2713
|
+
r.autoSlideStoppable && Ht();
|
|
2719
2714
|
}
|
|
2720
|
-
function
|
|
2715
|
+
function Zt(e) {
|
|
2721
2716
|
let t = e.data;
|
|
2722
2717
|
if (typeof t == "string" && t.charAt(0) === "{" && t.charAt(t.length - 1) === "}" && (t = JSON.parse(t), t.method && typeof n[t.method] == "function")) {
|
|
2723
|
-
if (
|
|
2718
|
+
if (Te.test(t.method) === !1) {
|
|
2724
2719
|
let e = n[t.method].apply(n, t.args);
|
|
2725
|
-
|
|
2720
|
+
qe("callback", {
|
|
2726
2721
|
method: t.method,
|
|
2727
2722
|
result: e
|
|
2728
2723
|
});
|
|
2729
2724
|
} else console.warn("reveal.js: \"" + t.method + "\" is is blacklisted from the postMessage API");
|
|
2730
2725
|
}
|
|
2731
2726
|
}
|
|
2732
|
-
function
|
|
2733
|
-
h === "running" && /section/gi.test(e.target.nodeName) && (h = "idle",
|
|
2727
|
+
function Qt(e) {
|
|
2728
|
+
h === "running" && /section/gi.test(e.target.nodeName) && (h = "idle", U({
|
|
2734
2729
|
type: "slidetransitionend",
|
|
2735
2730
|
data: {
|
|
2736
2731
|
indexh: o,
|
|
@@ -2740,78 +2735,78 @@ function at(e, t) {
|
|
|
2740
2735
|
}
|
|
2741
2736
|
}));
|
|
2742
2737
|
}
|
|
2743
|
-
function
|
|
2738
|
+
function $t(e) {
|
|
2744
2739
|
let t = I(e.target, "a[href^=\"#\"]");
|
|
2745
2740
|
if (t) {
|
|
2746
|
-
let r = t.getAttribute("href"), i =
|
|
2741
|
+
let r = t.getAttribute("href"), i = j.getIndicesFromHash(r);
|
|
2747
2742
|
i && (n.slide(i.h, i.v, i.f), e.preventDefault());
|
|
2748
2743
|
}
|
|
2749
2744
|
}
|
|
2750
|
-
function
|
|
2751
|
-
|
|
2745
|
+
function en(e) {
|
|
2746
|
+
W();
|
|
2752
2747
|
}
|
|
2753
|
-
function
|
|
2748
|
+
function tn(e) {
|
|
2754
2749
|
document.hidden === !1 && document.activeElement !== document.body && (typeof document.activeElement.blur == "function" && document.activeElement.blur(), document.body.focus());
|
|
2755
2750
|
}
|
|
2756
|
-
function
|
|
2751
|
+
function nn(e) {
|
|
2757
2752
|
(document.fullscreenElement || document.webkitFullscreenElement) === m.wrapper && (e.stopImmediatePropagation(), setTimeout(() => {
|
|
2758
2753
|
n.layout(), n.focus.focus();
|
|
2759
2754
|
}, 1));
|
|
2760
2755
|
}
|
|
2761
|
-
function
|
|
2762
|
-
ut() && r.loop === !1 ? (K(0, 0),
|
|
2756
|
+
function rn(e) {
|
|
2757
|
+
ut() && r.loop === !1 ? (K(0, 0), Ut()) : b ? Ut() : Ht();
|
|
2763
2758
|
}
|
|
2764
|
-
let
|
|
2759
|
+
let an = {
|
|
2765
2760
|
VERSION: it,
|
|
2766
|
-
initialize:
|
|
2767
|
-
configure:
|
|
2768
|
-
destroy:
|
|
2769
|
-
sync:
|
|
2770
|
-
syncSlide:
|
|
2771
|
-
syncFragments:
|
|
2761
|
+
initialize: le,
|
|
2762
|
+
configure: H,
|
|
2763
|
+
destroy: Me,
|
|
2764
|
+
sync: bt,
|
|
2765
|
+
syncSlide: xt,
|
|
2766
|
+
syncFragments: O.sync.bind(O),
|
|
2772
2767
|
slide: K,
|
|
2773
|
-
left:
|
|
2774
|
-
right:
|
|
2775
|
-
up:
|
|
2776
|
-
down:
|
|
2777
|
-
prev:
|
|
2778
|
-
next:
|
|
2779
|
-
navigateLeft:
|
|
2780
|
-
navigateRight:
|
|
2781
|
-
navigateUp:
|
|
2782
|
-
navigateDown:
|
|
2783
|
-
navigatePrev:
|
|
2784
|
-
navigateNext:
|
|
2785
|
-
navigateFragment:
|
|
2786
|
-
prevFragment:
|
|
2787
|
-
nextFragment:
|
|
2788
|
-
on:
|
|
2789
|
-
off:
|
|
2790
|
-
addEventListener:
|
|
2791
|
-
removeEventListener:
|
|
2792
|
-
layout:
|
|
2793
|
-
shuffle:
|
|
2794
|
-
availableRoutes:
|
|
2795
|
-
availableFragments:
|
|
2768
|
+
left: Wt,
|
|
2769
|
+
right: Gt,
|
|
2770
|
+
up: Kt,
|
|
2771
|
+
down: qt,
|
|
2772
|
+
prev: Jt,
|
|
2773
|
+
next: Yt,
|
|
2774
|
+
navigateLeft: Wt,
|
|
2775
|
+
navigateRight: Gt,
|
|
2776
|
+
navigateUp: Kt,
|
|
2777
|
+
navigateDown: qt,
|
|
2778
|
+
navigatePrev: Jt,
|
|
2779
|
+
navigateNext: Yt,
|
|
2780
|
+
navigateFragment: O.goto.bind(O),
|
|
2781
|
+
prevFragment: O.prev.bind(O),
|
|
2782
|
+
nextFragment: O.next.bind(O),
|
|
2783
|
+
on: Ne,
|
|
2784
|
+
off: Pe,
|
|
2785
|
+
addEventListener: Ne,
|
|
2786
|
+
removeEventListener: Pe,
|
|
2787
|
+
layout: W,
|
|
2788
|
+
shuffle: q,
|
|
2789
|
+
availableRoutes: X,
|
|
2790
|
+
availableFragments: O.availableRoutes.bind(O),
|
|
2796
2791
|
toggleHelp: N.toggleHelp.bind(N),
|
|
2797
|
-
toggleOverview:
|
|
2798
|
-
toggleScrollView:
|
|
2792
|
+
toggleOverview: k.toggle.bind(k),
|
|
2793
|
+
toggleScrollView: E.toggle.bind(E),
|
|
2799
2794
|
togglePause: pt,
|
|
2800
2795
|
toggleAutoSlide: gt,
|
|
2801
2796
|
toggleJumpToSlide: ht,
|
|
2802
2797
|
isFirstSlide: lt,
|
|
2803
2798
|
isLastSlide: ut,
|
|
2804
2799
|
isLastVerticalSlide: ct,
|
|
2805
|
-
isVerticalSlide:
|
|
2806
|
-
isVerticalStack:
|
|
2800
|
+
isVerticalSlide: st,
|
|
2801
|
+
isVerticalStack: G,
|
|
2807
2802
|
isPaused: mt,
|
|
2808
2803
|
isAutoSliding: _t,
|
|
2809
2804
|
isSpeakerNotes: L.isSpeakerNotesWindow.bind(L),
|
|
2810
|
-
isOverview:
|
|
2811
|
-
isFocused:
|
|
2805
|
+
isOverview: k.isActive.bind(k),
|
|
2806
|
+
isFocused: P.isFocused.bind(P),
|
|
2812
2807
|
isOverlayOpen: N.isOpen.bind(N),
|
|
2813
|
-
isScrollView:
|
|
2814
|
-
isPrintView:
|
|
2808
|
+
isScrollView: E.isActive.bind(E),
|
|
2809
|
+
isPrintView: D.isActive.bind(D),
|
|
2815
2810
|
isReady: () => a,
|
|
2816
2811
|
loadSlide: x.load.bind(x),
|
|
2817
2812
|
unloadSlide: x.unload.bind(x),
|
|
@@ -2822,77 +2817,77 @@ function at(e, t) {
|
|
|
2822
2817
|
previewVideo: N.previewVideo.bind(N),
|
|
2823
2818
|
showPreview: N.previewIframe.bind(N),
|
|
2824
2819
|
hidePreview: N.close.bind(N),
|
|
2825
|
-
addEventListeners:
|
|
2826
|
-
removeEventListeners:
|
|
2827
|
-
dispatchEvent:
|
|
2828
|
-
getState:
|
|
2829
|
-
setState:
|
|
2830
|
-
getProgress:
|
|
2831
|
-
getIndices:
|
|
2832
|
-
getSlidesAttributes:
|
|
2833
|
-
getSlidePastCount:
|
|
2834
|
-
getTotalSlides:
|
|
2835
|
-
getSlide:
|
|
2820
|
+
addEventListeners: ke,
|
|
2821
|
+
removeEventListeners: je,
|
|
2822
|
+
dispatchEvent: U,
|
|
2823
|
+
getState: Rt,
|
|
2824
|
+
setState: zt,
|
|
2825
|
+
getProgress: Et,
|
|
2826
|
+
getIndices: Dt,
|
|
2827
|
+
getSlidesAttributes: Pt,
|
|
2828
|
+
getSlidePastCount: Tt,
|
|
2829
|
+
getTotalSlides: Ft,
|
|
2830
|
+
getSlide: It,
|
|
2836
2831
|
getPreviousSlide: () => c,
|
|
2837
2832
|
getCurrentSlide: () => l,
|
|
2838
|
-
getSlideBackground:
|
|
2833
|
+
getSlideBackground: Lt,
|
|
2839
2834
|
getSlideNotes: L.getSlideNotes.bind(L),
|
|
2840
|
-
getSlides:
|
|
2841
|
-
getHorizontalSlides:
|
|
2842
|
-
getVerticalSlides:
|
|
2843
|
-
hasHorizontalSlides:
|
|
2844
|
-
hasVerticalSlides:
|
|
2835
|
+
getSlides: Ot,
|
|
2836
|
+
getHorizontalSlides: kt,
|
|
2837
|
+
getVerticalSlides: At,
|
|
2838
|
+
hasHorizontalSlides: Mt,
|
|
2839
|
+
hasVerticalSlides: Nt,
|
|
2845
2840
|
hasNavigatedHorizontally: () => u.hasNavigatedHorizontally,
|
|
2846
2841
|
hasNavigatedVertically: () => u.hasNavigatedVertically,
|
|
2847
2842
|
shouldAutoAnimateBetween: vt,
|
|
2848
|
-
addKeyBinding:
|
|
2849
|
-
removeKeyBinding:
|
|
2850
|
-
triggerKey:
|
|
2851
|
-
registerKeyboardShortcut:
|
|
2852
|
-
getComputedSlideSize:
|
|
2843
|
+
addKeyBinding: A.addKeyBinding.bind(A),
|
|
2844
|
+
removeKeyBinding: A.removeKeyBinding.bind(A),
|
|
2845
|
+
triggerKey: A.triggerKey.bind(A),
|
|
2846
|
+
registerKeyboardShortcut: A.registerKeyboardShortcut.bind(A),
|
|
2847
|
+
getComputedSlideSize: $e,
|
|
2853
2848
|
setCurrentScrollPage: yt,
|
|
2854
|
-
removeHiddenSlides:
|
|
2849
|
+
removeHiddenSlides: he,
|
|
2855
2850
|
getScale: () => f,
|
|
2856
2851
|
getConfig: () => r,
|
|
2857
|
-
getQueryHash:
|
|
2858
|
-
getSlidePath:
|
|
2852
|
+
getQueryHash: ue,
|
|
2853
|
+
getSlidePath: j.getHash.bind(j),
|
|
2859
2854
|
getRevealElement: () => e,
|
|
2860
2855
|
getSlidesElement: () => m.slides,
|
|
2861
2856
|
getViewportElement: () => m.viewport,
|
|
2862
|
-
getBackgroundsElement: () =>
|
|
2857
|
+
getBackgroundsElement: () => T.element,
|
|
2863
2858
|
registerPlugin: M.registerPlugin.bind(M),
|
|
2864
2859
|
hasPlugin: M.hasPlugin.bind(M),
|
|
2865
2860
|
getPlugin: M.getPlugin.bind(M),
|
|
2866
2861
|
getPlugins: M.getRegisteredPlugins.bind(M)
|
|
2867
2862
|
};
|
|
2868
|
-
return re(n,
|
|
2869
|
-
announceStatus:
|
|
2863
|
+
return re(n, He(He({}, an), {}, {
|
|
2864
|
+
announceStatus: R,
|
|
2870
2865
|
getStatusText: ye,
|
|
2871
|
-
focus:
|
|
2872
|
-
scroll:
|
|
2873
|
-
progress:
|
|
2874
|
-
controls:
|
|
2875
|
-
location:
|
|
2876
|
-
overview:
|
|
2877
|
-
keyboard:
|
|
2878
|
-
fragments:
|
|
2879
|
-
backgrounds:
|
|
2866
|
+
focus: P,
|
|
2867
|
+
scroll: E,
|
|
2868
|
+
progress: te,
|
|
2869
|
+
controls: ee,
|
|
2870
|
+
location: j,
|
|
2871
|
+
overview: k,
|
|
2872
|
+
keyboard: A,
|
|
2873
|
+
fragments: O,
|
|
2874
|
+
backgrounds: T,
|
|
2880
2875
|
slideContent: x,
|
|
2881
2876
|
slideNumber: S,
|
|
2882
|
-
onUserInput:
|
|
2877
|
+
onUserInput: Xt,
|
|
2883
2878
|
closeOverlay: N.close.bind(N),
|
|
2884
2879
|
updateSlidesVisibility: wt,
|
|
2885
|
-
layoutSlideContents:
|
|
2886
|
-
transformSlides:
|
|
2887
|
-
cueAutoSlide:
|
|
2888
|
-
cancelAutoSlide:
|
|
2889
|
-
})),
|
|
2880
|
+
layoutSlideContents: Xe,
|
|
2881
|
+
transformSlides: Ie,
|
|
2882
|
+
cueAutoSlide: Bt,
|
|
2883
|
+
cancelAutoSlide: Vt
|
|
2884
|
+
})), an;
|
|
2890
2885
|
}
|
|
2891
|
-
var
|
|
2892
|
-
|
|
2886
|
+
var ot = at, st = [];
|
|
2887
|
+
ot.initialize = (e) => {
|
|
2893
2888
|
let t = document.querySelector(".reveal");
|
|
2894
2889
|
if (!(t instanceof HTMLElement)) throw Error("Unable to find presentation root (<div class=\"reveal\">).");
|
|
2895
|
-
return Object.assign(
|
|
2890
|
+
return Object.assign(ot, new at(t, e)), st.map((e) => e(ot)), ot.initialize();
|
|
2896
2891
|
}, [
|
|
2897
2892
|
"configure",
|
|
2898
2893
|
"on",
|
|
@@ -2901,14 +2896,14 @@ W.initialize = (e) => {
|
|
|
2901
2896
|
"removeEventListener",
|
|
2902
2897
|
"registerPlugin"
|
|
2903
2898
|
].forEach((e) => {
|
|
2904
|
-
|
|
2905
|
-
|
|
2899
|
+
ot[e] = (...t) => {
|
|
2900
|
+
st.push((n) => n[e].call(null, ...t));
|
|
2906
2901
|
};
|
|
2907
|
-
}),
|
|
2902
|
+
}), ot.isReady = () => !1, ot.VERSION = it;
|
|
2908
2903
|
//#endregion
|
|
2909
|
-
//#region ../node_modules/.pnpm/@revealjs+react@0.2.2_react-dom@19.3.
|
|
2910
|
-
var G =
|
|
2911
|
-
function
|
|
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 G = E(), ct = (0, N.createContext)(null), lt = [];
|
|
2906
|
+
function ut(e, t) {
|
|
2912
2907
|
if (e === t) return !1;
|
|
2913
2908
|
if (!e || !t) return e !== t;
|
|
2914
2909
|
let n = Object.keys(e), r = Object.keys(t);
|
|
@@ -2916,43 +2911,43 @@ function lt(e, t) {
|
|
|
2916
2911
|
for (let r of n) if (!(r in t) || e[r] !== t[r]) return !0;
|
|
2917
2912
|
return !1;
|
|
2918
2913
|
}
|
|
2919
|
-
function
|
|
2914
|
+
function dt(e, t) {
|
|
2920
2915
|
e && (typeof e == "function" ? e(t) : e.current = t);
|
|
2921
2916
|
}
|
|
2922
|
-
function
|
|
2917
|
+
function ft(e) {
|
|
2923
2918
|
return e.tagName === "SECTION";
|
|
2924
2919
|
}
|
|
2925
|
-
function
|
|
2926
|
-
return Array.from(e.children).filter(
|
|
2920
|
+
function pt(e, t, n) {
|
|
2921
|
+
return Array.from(e.children).filter(ft).map((e) => {
|
|
2927
2922
|
let r = t.get(e);
|
|
2928
2923
|
r === void 0 && (r = n.current++, t.set(e, r));
|
|
2929
|
-
let i =
|
|
2924
|
+
let i = pt(e, t, n);
|
|
2930
2925
|
return i.length > 0 ? [r, i] : r;
|
|
2931
2926
|
});
|
|
2932
2927
|
}
|
|
2933
|
-
function
|
|
2934
|
-
return e ? JSON.stringify(
|
|
2928
|
+
function mt(e, t, n) {
|
|
2929
|
+
return e ? JSON.stringify(pt(e, t, n)) : "[]";
|
|
2935
2930
|
}
|
|
2936
|
-
function
|
|
2937
|
-
let _ = (0,
|
|
2938
|
-
return (0,
|
|
2939
|
-
if (
|
|
2931
|
+
function ht({ config: e, plugins: t = lt, 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, N.useRef)(null), v = (0, N.useRef)(null), y = (0, N.useRef)(null), [b, x] = (0, N.useState)(null), S = (0, N.useRef)(t), C = (0, N.useRef)(!1), w = (0, N.useRef)(e), T = (0, N.useRef)(null), E = (0, N.useRef)(/* @__PURE__ */ new WeakMap()), D = (0, N.useRef)(1), O = (0, N.useRef)(!1), k = (0, N.useRef)(0);
|
|
2933
|
+
return (0, N.useEffect)(() => {
|
|
2934
|
+
if (O.current = !0, k.current += 1, y.current) y.current.isReady() && x(y.current);
|
|
2940
2935
|
else {
|
|
2941
|
-
let t = new
|
|
2936
|
+
let t = new ot(_.current, {
|
|
2942
2937
|
...e,
|
|
2943
2938
|
plugins: S.current
|
|
2944
2939
|
});
|
|
2945
|
-
|
|
2946
|
-
|
|
2940
|
+
w.current = e, y.current = t, t.initialize().then(() => {
|
|
2941
|
+
O.current && y.current === t && (x(t), n?.(t));
|
|
2947
2942
|
});
|
|
2948
2943
|
}
|
|
2949
2944
|
return () => {
|
|
2950
|
-
|
|
2945
|
+
O.current = !1;
|
|
2951
2946
|
let e = y.current;
|
|
2952
2947
|
if (!e) return;
|
|
2953
|
-
let t = ++
|
|
2948
|
+
let t = ++k.current;
|
|
2954
2949
|
Promise.resolve().then(() => {
|
|
2955
|
-
if (!(
|
|
2950
|
+
if (!(O.current || k.current !== t) && y.current === e) {
|
|
2956
2951
|
try {
|
|
2957
2952
|
e.destroy();
|
|
2958
2953
|
} catch {}
|
|
@@ -2960,7 +2955,7 @@ function mt({ config: e, plugins: t = ct, onReady: n, onSync: r, onSlideSync: i,
|
|
|
2960
2955
|
}
|
|
2961
2956
|
});
|
|
2962
2957
|
};
|
|
2963
|
-
}, []), (0,
|
|
2958
|
+
}, []), (0, N.useEffect)(() => (dt(p, b), () => dt(p, null)), [p, b]), (0, N.useEffect)(() => {
|
|
2964
2959
|
if (!b) return;
|
|
2965
2960
|
let e = [
|
|
2966
2961
|
["sync", r],
|
|
@@ -2990,18 +2985,14 @@ function mt({ config: e, plugins: t = ct, onReady: n, onSync: r, onSlideSync: i,
|
|
|
2990
2985
|
u,
|
|
2991
2986
|
d,
|
|
2992
2987
|
f
|
|
2993
|
-
]), (0,
|
|
2994
|
-
b && y.current?.isReady() &&
|
|
2995
|
-
}, [b, e]), (0,
|
|
2988
|
+
]), (0, N.useLayoutEffect)(() => {
|
|
2989
|
+
b && y.current?.isReady() && ut(w.current, e) && (C.current = !0, y.current.configure(e ?? {}), w.current = e);
|
|
2990
|
+
}, [b, e]), (0, N.useLayoutEffect)(() => {
|
|
2996
2991
|
let e = C.current;
|
|
2997
2992
|
C.current = !1;
|
|
2998
|
-
let t =
|
|
2999
|
-
|
|
3000
|
-
|
|
3001
|
-
return;
|
|
3002
|
-
}
|
|
3003
|
-
y.current?.isReady() && w.current !== t && (y.current.sync(), w.current = t);
|
|
3004
|
-
}), /* @__PURE__ */ (0, G.jsx)(st.Provider, {
|
|
2993
|
+
let t = mt(v.current, E.current, D);
|
|
2994
|
+
e ? T.current = t : y.current?.isReady() && T.current !== t && (y.current.sync(), T.current = t);
|
|
2995
|
+
}), /* @__PURE__ */ (0, G.jsx)(ct.Provider, {
|
|
3005
2996
|
value: b,
|
|
3006
2997
|
children: /* @__PURE__ */ (0, G.jsx)("div", {
|
|
3007
2998
|
className: m ? `reveal ${m}` : "reveal",
|
|
@@ -3015,7 +3006,7 @@ function mt({ config: e, plugins: t = ct, onReady: n, onSync: r, onSlideSync: i,
|
|
|
3015
3006
|
})
|
|
3016
3007
|
});
|
|
3017
3008
|
}
|
|
3018
|
-
var
|
|
3009
|
+
var gt = {
|
|
3019
3010
|
background: "data-background",
|
|
3020
3011
|
backgroundImage: "data-background-image",
|
|
3021
3012
|
backgroundVideo: "data-background-video",
|
|
@@ -3044,12 +3035,12 @@ var ht = {
|
|
|
3044
3035
|
backgroundInteractive: "data-background-interactive",
|
|
3045
3036
|
preload: "data-preload"
|
|
3046
3037
|
};
|
|
3047
|
-
function
|
|
3038
|
+
function _t(e) {
|
|
3048
3039
|
return JSON.stringify(Object.entries(e).filter(([e]) => e.startsWith("data-")).sort(([e], [t]) => e.localeCompare(t)));
|
|
3049
3040
|
}
|
|
3050
|
-
function
|
|
3041
|
+
function K(e, t) {
|
|
3051
3042
|
let n = { ...e }, r = n;
|
|
3052
|
-
for (let [e, n] of Object.entries(
|
|
3043
|
+
for (let [e, n] of Object.entries(gt)) {
|
|
3053
3044
|
if (r[n] !== void 0) continue;
|
|
3054
3045
|
let i = t[e];
|
|
3055
3046
|
if (i !== void 0) {
|
|
@@ -3062,8 +3053,8 @@ function _t(e, t) {
|
|
|
3062
3053
|
}
|
|
3063
3054
|
return n;
|
|
3064
3055
|
}
|
|
3065
|
-
function
|
|
3066
|
-
let
|
|
3056
|
+
function vt({ 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, N.useContext)(ct), A = (0, N.useRef)(null), j = (0, N.useRef)(null), ee = (0, N.useRef)(null), te = K(O, {
|
|
3067
3058
|
background: t,
|
|
3068
3059
|
backgroundImage: n,
|
|
3069
3060
|
backgroundVideo: r,
|
|
@@ -3087,35 +3078,35 @@ function K({ children: e, background: t, backgroundImage: n, backgroundVideo: r,
|
|
|
3087
3078
|
autoAnimateDelay: x,
|
|
3088
3079
|
transition: S,
|
|
3089
3080
|
transitionSpeed: C,
|
|
3090
|
-
autoSlide:
|
|
3091
|
-
notes:
|
|
3092
|
-
backgroundInteractive:
|
|
3093
|
-
preload:
|
|
3094
|
-
}),
|
|
3095
|
-
return (0,
|
|
3096
|
-
let e =
|
|
3097
|
-
if (!
|
|
3098
|
-
if (
|
|
3099
|
-
|
|
3081
|
+
autoSlide: w,
|
|
3082
|
+
notes: T,
|
|
3083
|
+
backgroundInteractive: E,
|
|
3084
|
+
preload: D
|
|
3085
|
+
}), ne = _t(te);
|
|
3086
|
+
return (0, N.useLayoutEffect)(() => {
|
|
3087
|
+
let e = A.current;
|
|
3088
|
+
if (!k || !e || typeof k.syncSlide != "function") return;
|
|
3089
|
+
if (j.current !== k) {
|
|
3090
|
+
j.current = k, ee.current = ne;
|
|
3100
3091
|
return;
|
|
3101
3092
|
}
|
|
3102
|
-
if (
|
|
3103
|
-
let t =
|
|
3104
|
-
t && n || (
|
|
3105
|
-
}, [
|
|
3106
|
-
ref:
|
|
3107
|
-
...
|
|
3093
|
+
if (ne === "[]") return;
|
|
3094
|
+
let t = j.current === k, n = ee.current === ne;
|
|
3095
|
+
t && n || (k.syncSlide(e), j.current = k, ee.current = ne);
|
|
3096
|
+
}, [k, ne]), /* @__PURE__ */ (0, G.jsx)("section", {
|
|
3097
|
+
ref: A,
|
|
3098
|
+
...te,
|
|
3108
3099
|
children: e
|
|
3109
3100
|
});
|
|
3110
3101
|
}
|
|
3111
|
-
function
|
|
3102
|
+
function yt({ className: e, style: t, children: n }) {
|
|
3112
3103
|
return /* @__PURE__ */ (0, G.jsx)("section", {
|
|
3113
3104
|
className: e,
|
|
3114
3105
|
style: t,
|
|
3115
3106
|
children: n
|
|
3116
3107
|
});
|
|
3117
3108
|
}
|
|
3118
|
-
function
|
|
3109
|
+
function bt() {
|
|
3119
3110
|
return {
|
|
3120
3111
|
async: !1,
|
|
3121
3112
|
breaks: !1,
|
|
@@ -3129,11 +3120,11 @@ function yt() {
|
|
|
3129
3120
|
walkTokens: null
|
|
3130
3121
|
};
|
|
3131
3122
|
}
|
|
3132
|
-
var
|
|
3133
|
-
function
|
|
3134
|
-
|
|
3123
|
+
var xt = bt();
|
|
3124
|
+
function St(e) {
|
|
3125
|
+
xt = e;
|
|
3135
3126
|
}
|
|
3136
|
-
var
|
|
3127
|
+
var q = { exec: () => null };
|
|
3137
3128
|
function J(e, t = "") {
|
|
3138
3129
|
let n = typeof e == "string" ? e : e.source, r = {
|
|
3139
3130
|
replace: (e, t) => {
|
|
@@ -3144,7 +3135,7 @@ function J(e, t = "") {
|
|
|
3144
3135
|
};
|
|
3145
3136
|
return r;
|
|
3146
3137
|
}
|
|
3147
|
-
var
|
|
3138
|
+
var Ct = (() => {
|
|
3148
3139
|
try {
|
|
3149
3140
|
return !0;
|
|
3150
3141
|
} catch {
|
|
@@ -3207,9 +3198,9 @@ var St = (() => {
|
|
|
3207
3198
|
headingBeginRegex: (e) => RegExp(`^ {0,${Math.min(3, e - 1)}}#`),
|
|
3208
3199
|
htmlBeginRegex: (e) => RegExp(`^ {0,${Math.min(3, e - 1)}}<(?:[a-z].*>|!--)`, "i"),
|
|
3209
3200
|
blockquoteBeginRegex: (e) => RegExp(`^ {0,${Math.min(3, e - 1)}}>`)
|
|
3210
|
-
},
|
|
3201
|
+
}, wt = /^(?:[ \t]*(?:\n|$))+/, X = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, Tt = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, Et = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, Dt = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, Ot = / {0,3}(?:[*+-]|\d{1,9}[.)])/, kt = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, At = J(kt).replace(/bull/g, Ot).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(), jt = J(kt).replace(/bull/g, Ot).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(), Mt = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, Nt = /^[^\n]+/, Pt = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, Ft = J(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", Pt).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), It = J(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, Ot).getRegex(), Lt = "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", Rt = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, zt = J("^ {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", Rt).replace("tag", Lt).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), Bt = J(Mt).replace("hr", Et).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", Lt).getRegex(), Vt = {
|
|
3211
3202
|
blockquote: J(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", Bt).getRegex(),
|
|
3212
|
-
code:
|
|
3203
|
+
code: X,
|
|
3213
3204
|
def: Ft,
|
|
3214
3205
|
fences: Tt,
|
|
3215
3206
|
heading: Dt,
|
|
@@ -3217,9 +3208,9 @@ var St = (() => {
|
|
|
3217
3208
|
html: zt,
|
|
3218
3209
|
lheading: At,
|
|
3219
3210
|
list: It,
|
|
3220
|
-
newline:
|
|
3211
|
+
newline: wt,
|
|
3221
3212
|
paragraph: Bt,
|
|
3222
|
-
table:
|
|
3213
|
+
table: q,
|
|
3223
3214
|
text: Nt
|
|
3224
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 = {
|
|
3225
3216
|
...Vt,
|
|
@@ -3231,19 +3222,19 @@ var St = (() => {
|
|
|
3231
3222
|
html: J("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment", Rt).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(),
|
|
3232
3223
|
def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,
|
|
3233
3224
|
heading: /^(#{1,6})(.*)(?:\n+|$)/,
|
|
3234
|
-
fences:
|
|
3225
|
+
fences: q,
|
|
3235
3226
|
lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,
|
|
3236
3227
|
paragraph: J(Mt).replace("hr", Et).replace("heading", " *#{1,6} *[^\n]").replace("lheading", At).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex()
|
|
3237
|
-
}, Gt = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, Kt = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, qt = /^( {2,}|\\)\n(?!\s*$)/, Jt = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, Yt = /[\p{P}\p{S}]/u, Xt = /[\s\p{P}\p{S}]/u, Zt = /[^\s\p{P}\p{S}]/u, Qt = J(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, Xt).getRegex(), $t = /(?!~)[\p{P}\p{S}]/u, en = /(?!~)[\s\p{P}\p{S}]/u, tn = /(?:[^\s\p{P}\p{S}]|~)/u, nn = J(/link|precode-code|html/, "g").replace("link", /\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",
|
|
3238
|
-
_backpedal:
|
|
3228
|
+
}, Gt = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, Kt = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, qt = /^( {2,}|\\)\n(?!\s*$)/, Jt = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, Yt = /[\p{P}\p{S}]/u, Xt = /[\s\p{P}\p{S}]/u, Zt = /[^\s\p{P}\p{S}]/u, Qt = J(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, Xt).getRegex(), $t = /(?!~)[\p{P}\p{S}]/u, en = /(?!~)[\s\p{P}\p{S}]/u, tn = /(?:[^\s\p{P}\p{S}]|~)/u, nn = J(/link|precode-code|html/, "g").replace("link", /\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-", Ct ? "(?<!`)()" : "(^^|[^`])").replace("code", /(?<b>`+)[^`]+\k<b>(?!`)/).replace("html", /<(?! )[^<>]*?>/).getRegex(), rn = /^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/, an = J(rn, "u").replace(/punct/g, Yt).getRegex(), on = J(rn, "u").replace(/punct/g, $t).getRegex(), sn = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", cn = J(sn, "gu").replace(/notPunctSpace/g, Zt).replace(/punctSpace/g, Xt).replace(/punct/g, Yt).getRegex(), ln = J(sn, "gu").replace(/notPunctSpace/g, tn).replace(/punctSpace/g, en).replace(/punct/g, $t).getRegex(), un = J("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, Zt).replace(/punctSpace/g, Xt).replace(/punct/g, Yt).getRegex(), dn = J(/^~~?(?:((?!~)punct)|[^\s~])/, "u").replace(/punct/g, Yt).getRegex(), fn = J("^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)", "gu").replace(/notPunctSpace/g, Zt).replace(/punctSpace/g, Xt).replace(/punct/g, Yt).getRegex(), pn = J(/\\(punct)/, "gu").replace(/punct/g, Yt).getRegex(), mn = J(/^<(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(), hn = J(Rt).replace("(?:-->|$)", "-->").getRegex(), gn = J("^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", hn).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), _n = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/, vn = J(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label", _n).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), yn = J(/^!?\[(label)\]\[(ref)\]/).replace("label", _n).replace("ref", Pt).getRegex(), bn = J(/^!?\[(ref)\](?:\[\])?/).replace("ref", Pt).getRegex(), xn = J("reflink|nolink(?!\\()", "g").replace("reflink", yn).replace("nolink", bn).getRegex(), Sn = /[hH][tT][tT][pP][sS]?|[fF][tT][pP]/, Cn = {
|
|
3229
|
+
_backpedal: q,
|
|
3239
3230
|
anyPunctuation: pn,
|
|
3240
3231
|
autolink: mn,
|
|
3241
3232
|
blockSkip: nn,
|
|
3242
3233
|
br: qt,
|
|
3243
3234
|
code: Kt,
|
|
3244
|
-
del:
|
|
3245
|
-
delLDelim:
|
|
3246
|
-
delRDelim:
|
|
3235
|
+
del: q,
|
|
3236
|
+
delLDelim: q,
|
|
3237
|
+
delRDelim: q,
|
|
3247
3238
|
emStrongLDelim: an,
|
|
3248
3239
|
emStrongRDelimAst: cn,
|
|
3249
3240
|
emStrongRDelimUnd: un,
|
|
@@ -3255,7 +3246,7 @@ var St = (() => {
|
|
|
3255
3246
|
reflinkSearch: xn,
|
|
3256
3247
|
tag: gn,
|
|
3257
3248
|
text: Jt,
|
|
3258
|
-
url:
|
|
3249
|
+
url: q
|
|
3259
3250
|
}, wn = {
|
|
3260
3251
|
...Cn,
|
|
3261
3252
|
link: J(/^!?\[(label)\]\((.*?)\)/).replace("label", _n).getRegex(),
|
|
@@ -3374,7 +3365,7 @@ var zn = class {
|
|
|
3374
3365
|
rules;
|
|
3375
3366
|
lexer;
|
|
3376
3367
|
constructor(e) {
|
|
3377
|
-
this.options = e ||
|
|
3368
|
+
this.options = e || xt;
|
|
3378
3369
|
}
|
|
3379
3370
|
space(e) {
|
|
3380
3371
|
let t = this.rules.block.newline.exec(e);
|
|
@@ -3457,7 +3448,6 @@ ${c}` : c;
|
|
|
3457
3448
|
if (u?.type === "list") {
|
|
3458
3449
|
let t = u, a = t.raw + "\n" + e.join("\n"), o = this.list(a);
|
|
3459
3450
|
i[i.length - 1] = o, n = n.substring(0, n.length - u.raw.length) + o.raw, r = r.substring(0, r.length - t.raw.length) + o.raw, e = a.substring(i.at(-1).raw.length).split("\n");
|
|
3460
|
-
continue;
|
|
3461
3451
|
}
|
|
3462
3452
|
}
|
|
3463
3453
|
return {
|
|
@@ -3830,7 +3820,7 @@ ${c}` : c;
|
|
|
3830
3820
|
inlineQueue;
|
|
3831
3821
|
tokenizer;
|
|
3832
3822
|
constructor(e) {
|
|
3833
|
-
this.tokens = [], this.tokens.links = Object.create(null), this.options = e ||
|
|
3823
|
+
this.tokens = [], this.tokens.links = Object.create(null), this.options = e || xt, this.options.tokenizer = this.options.tokenizer || new zn(), this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = {
|
|
3834
3824
|
inLink: !1,
|
|
3835
3825
|
inRawBlock: !1,
|
|
3836
3826
|
top: !0
|
|
@@ -3878,27 +3868,7 @@ ${c}` : c;
|
|
|
3878
3868
|
n?.type === "paragraph" || n?.type === "text" ? (n.raw += (n.raw.endsWith("\n") ? "" : "\n") + r.raw, n.text += "\n" + r.text, this.inlineQueue.at(-1).src = n.text) : t.push(r);
|
|
3879
3869
|
continue;
|
|
3880
3870
|
}
|
|
3881
|
-
if (r = this.tokenizer.fences(e)) {
|
|
3882
|
-
e = e.substring(r.raw.length), t.push(r);
|
|
3883
|
-
continue;
|
|
3884
|
-
}
|
|
3885
|
-
if (r = this.tokenizer.heading(e)) {
|
|
3886
|
-
e = e.substring(r.raw.length), t.push(r);
|
|
3887
|
-
continue;
|
|
3888
|
-
}
|
|
3889
|
-
if (r = this.tokenizer.hr(e)) {
|
|
3890
|
-
e = e.substring(r.raw.length), t.push(r);
|
|
3891
|
-
continue;
|
|
3892
|
-
}
|
|
3893
|
-
if (r = this.tokenizer.blockquote(e)) {
|
|
3894
|
-
e = e.substring(r.raw.length), t.push(r);
|
|
3895
|
-
continue;
|
|
3896
|
-
}
|
|
3897
|
-
if (r = this.tokenizer.list(e)) {
|
|
3898
|
-
e = e.substring(r.raw.length), t.push(r);
|
|
3899
|
-
continue;
|
|
3900
|
-
}
|
|
3901
|
-
if (r = this.tokenizer.html(e)) {
|
|
3871
|
+
if ((r = this.tokenizer.fences(e)) || (r = this.tokenizer.heading(e)) || (r = this.tokenizer.hr(e)) || (r = this.tokenizer.blockquote(e)) || (r = this.tokenizer.list(e)) || (r = this.tokenizer.html(e))) {
|
|
3902
3872
|
e = e.substring(r.raw.length), t.push(r);
|
|
3903
3873
|
continue;
|
|
3904
3874
|
}
|
|
@@ -3911,11 +3881,7 @@ ${c}` : c;
|
|
|
3911
3881
|
}, t.push(r));
|
|
3912
3882
|
continue;
|
|
3913
3883
|
}
|
|
3914
|
-
if (r = this.tokenizer.table(e)) {
|
|
3915
|
-
e = e.substring(r.raw.length), t.push(r);
|
|
3916
|
-
continue;
|
|
3917
|
-
}
|
|
3918
|
-
if (r = this.tokenizer.lheading(e)) {
|
|
3884
|
+
if ((r = this.tokenizer.table(e)) || (r = this.tokenizer.lheading(e))) {
|
|
3919
3885
|
e = e.substring(r.raw.length), t.push(r);
|
|
3920
3886
|
continue;
|
|
3921
3887
|
}
|
|
@@ -3929,15 +3895,11 @@ ${c}` : c;
|
|
|
3929
3895
|
if (this.state.top && (r = this.tokenizer.paragraph(i))) {
|
|
3930
3896
|
let a = t.at(-1);
|
|
3931
3897
|
n && a?.type === "paragraph" ? (a.raw += (a.raw.endsWith("\n") ? "" : "\n") + r.raw, a.text += "\n" + r.text, this.inlineQueue.pop(), this.inlineQueue.at(-1).src = a.text) : t.push(r), n = i.length !== e.length, e = e.substring(r.raw.length);
|
|
3932
|
-
|
|
3933
|
-
}
|
|
3934
|
-
if (r = this.tokenizer.text(e)) {
|
|
3898
|
+
} else if (r = this.tokenizer.text(e)) {
|
|
3935
3899
|
e = e.substring(r.raw.length);
|
|
3936
3900
|
let n = t.at(-1);
|
|
3937
3901
|
n?.type === "text" ? (n.raw += (n.raw.endsWith("\n") ? "" : "\n") + r.raw, n.text += "\n" + r.text, this.inlineQueue.pop(), this.inlineQueue.at(-1).src = n.text) : t.push(r);
|
|
3938
|
-
|
|
3939
|
-
}
|
|
3940
|
-
if (e) {
|
|
3902
|
+
} else if (e) {
|
|
3941
3903
|
let t = "Infinite loop on byte: " + e.charCodeAt(0);
|
|
3942
3904
|
if (this.options.silent) {
|
|
3943
3905
|
console.error(t);
|
|
@@ -3970,15 +3932,7 @@ ${c}` : c;
|
|
|
3970
3932
|
a || (o = ""), a = !1;
|
|
3971
3933
|
let r;
|
|
3972
3934
|
if (this.options.extensions?.inline?.some((n) => (r = n.call({ lexer: this }, e, t)) ? (e = e.substring(r.raw.length), t.push(r), !0) : !1)) continue;
|
|
3973
|
-
if (r = this.tokenizer.escape(e)) {
|
|
3974
|
-
e = e.substring(r.raw.length), t.push(r);
|
|
3975
|
-
continue;
|
|
3976
|
-
}
|
|
3977
|
-
if (r = this.tokenizer.tag(e)) {
|
|
3978
|
-
e = e.substring(r.raw.length), t.push(r);
|
|
3979
|
-
continue;
|
|
3980
|
-
}
|
|
3981
|
-
if (r = this.tokenizer.link(e)) {
|
|
3935
|
+
if ((r = this.tokenizer.escape(e)) || (r = this.tokenizer.tag(e)) || (r = this.tokenizer.link(e))) {
|
|
3982
3936
|
e = e.substring(r.raw.length), t.push(r);
|
|
3983
3937
|
continue;
|
|
3984
3938
|
}
|
|
@@ -3988,27 +3942,7 @@ ${c}` : c;
|
|
|
3988
3942
|
r.type === "text" && n?.type === "text" ? (n.raw += r.raw, n.text += r.text) : t.push(r);
|
|
3989
3943
|
continue;
|
|
3990
3944
|
}
|
|
3991
|
-
if (r = this.tokenizer.emStrong(e, n, o)) {
|
|
3992
|
-
e = e.substring(r.raw.length), t.push(r);
|
|
3993
|
-
continue;
|
|
3994
|
-
}
|
|
3995
|
-
if (r = this.tokenizer.codespan(e)) {
|
|
3996
|
-
e = e.substring(r.raw.length), t.push(r);
|
|
3997
|
-
continue;
|
|
3998
|
-
}
|
|
3999
|
-
if (r = this.tokenizer.br(e)) {
|
|
4000
|
-
e = e.substring(r.raw.length), t.push(r);
|
|
4001
|
-
continue;
|
|
4002
|
-
}
|
|
4003
|
-
if (r = this.tokenizer.del(e, n, o)) {
|
|
4004
|
-
e = e.substring(r.raw.length), t.push(r);
|
|
4005
|
-
continue;
|
|
4006
|
-
}
|
|
4007
|
-
if (r = this.tokenizer.autolink(e)) {
|
|
4008
|
-
e = e.substring(r.raw.length), t.push(r);
|
|
4009
|
-
continue;
|
|
4010
|
-
}
|
|
4011
|
-
if (!this.state.inLink && (r = this.tokenizer.url(e))) {
|
|
3945
|
+
if ((r = this.tokenizer.emStrong(e, n, o)) || (r = this.tokenizer.codespan(e)) || (r = this.tokenizer.br(e)) || (r = this.tokenizer.del(e, n, o)) || (r = this.tokenizer.autolink(e)) || !this.state.inLink && (r = this.tokenizer.url(e))) {
|
|
4012
3946
|
e = e.substring(r.raw.length), t.push(r);
|
|
4013
3947
|
continue;
|
|
4014
3948
|
}
|
|
@@ -4023,9 +3957,7 @@ ${c}` : c;
|
|
|
4023
3957
|
e = e.substring(r.raw.length), r.raw.slice(-1) !== "_" && (o = r.raw.slice(-1)), a = !0;
|
|
4024
3958
|
let n = t.at(-1);
|
|
4025
3959
|
n?.type === "text" ? (n.raw += r.raw, n.text += r.text) : t.push(r);
|
|
4026
|
-
|
|
4027
|
-
}
|
|
4028
|
-
if (e) {
|
|
3960
|
+
} else if (e) {
|
|
4029
3961
|
let t = "Infinite loop on byte: " + e.charCodeAt(0);
|
|
4030
3962
|
if (this.options.silent) {
|
|
4031
3963
|
console.error(t);
|
|
@@ -4040,7 +3972,7 @@ ${c}` : c;
|
|
|
4040
3972
|
options;
|
|
4041
3973
|
parser;
|
|
4042
3974
|
constructor(e) {
|
|
4043
|
-
this.options = e ||
|
|
3975
|
+
this.options = e || xt;
|
|
4044
3976
|
}
|
|
4045
3977
|
space(e) {
|
|
4046
3978
|
return "";
|
|
@@ -4179,7 +4111,7 @@ ${e}</tr>
|
|
|
4179
4111
|
renderer;
|
|
4180
4112
|
textRenderer;
|
|
4181
4113
|
constructor(e) {
|
|
4182
|
-
this.options = e ||
|
|
4114
|
+
this.options = e || xt, this.options.renderer = this.options.renderer || new Vn(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new Hn();
|
|
4183
4115
|
}
|
|
4184
4116
|
static parse(t, n) {
|
|
4185
4117
|
return new e(n).parse(t);
|
|
@@ -4329,7 +4261,7 @@ ${e}</tr>
|
|
|
4329
4261
|
options;
|
|
4330
4262
|
block;
|
|
4331
4263
|
constructor(e) {
|
|
4332
|
-
this.options = e ||
|
|
4264
|
+
this.options = e || xt;
|
|
4333
4265
|
}
|
|
4334
4266
|
static passThroughHooks = /* @__PURE__ */ new Set([
|
|
4335
4267
|
"preprocess",
|
|
@@ -4361,7 +4293,7 @@ ${e}</tr>
|
|
|
4361
4293
|
return this.block ? Un.parse : Un.parseInline;
|
|
4362
4294
|
}
|
|
4363
4295
|
}, Gn = new class {
|
|
4364
|
-
defaults =
|
|
4296
|
+
defaults = bt();
|
|
4365
4297
|
options = this.setOptions;
|
|
4366
4298
|
parse = this.parseMarkdown(!0);
|
|
4367
4299
|
parseInline = this.parseMarkdown(!1);
|
|
@@ -4536,16 +4468,16 @@ ${e}</tr>
|
|
|
4536
4468
|
};
|
|
4537
4469
|
}
|
|
4538
4470
|
}();
|
|
4539
|
-
function
|
|
4471
|
+
function Z(e, t) {
|
|
4540
4472
|
return Gn.parse(e, t);
|
|
4541
4473
|
}
|
|
4542
|
-
|
|
4543
|
-
return Gn.setOptions(e),
|
|
4544
|
-
},
|
|
4545
|
-
return Gn.use(...e),
|
|
4546
|
-
},
|
|
4474
|
+
Z.options = Z.setOptions = function(e) {
|
|
4475
|
+
return Gn.setOptions(e), Z.defaults = Gn.defaults, St(Z.defaults), Z;
|
|
4476
|
+
}, Z.getDefaults = bt, Z.defaults = xt, Z.use = function(...e) {
|
|
4477
|
+
return Gn.use(...e), Z.defaults = Gn.defaults, St(Z.defaults), Z;
|
|
4478
|
+
}, Z.walkTokens = function(e, t) {
|
|
4547
4479
|
return Gn.walkTokens(e, t);
|
|
4548
|
-
},
|
|
4480
|
+
}, Z.parseInline = Gn.parseInline, Z.Parser = Un, Z.parser = Un.parse, Z.Renderer = Vn, Z.TextRenderer = Hn, Z.Lexer = Bn, Z.lexer = Bn.lex, Z.Tokenizer = zn, Z.Hooks = Wn, Z.parse = Z, Z.options, Z.setOptions, Z.use, Z.walkTokens, Z.parseInline, Un.parse, Bn.lex;
|
|
4549
4481
|
function Kn(...e) {
|
|
4550
4482
|
return e.filter(Boolean).join(" ");
|
|
4551
4483
|
}
|
|
@@ -4560,16 +4492,16 @@ function Jn({ animation: e, index: t, as: n, asChild: r, className: i, style: a,
|
|
|
4560
4492
|
if (r) {
|
|
4561
4493
|
let e;
|
|
4562
4494
|
try {
|
|
4563
|
-
e =
|
|
4495
|
+
e = N.Children.only(o);
|
|
4564
4496
|
} catch {
|
|
4565
4497
|
throw Error("Fragment with asChild expects exactly one React element child.");
|
|
4566
4498
|
}
|
|
4567
|
-
if (!(0,
|
|
4499
|
+
if (!(0, N.isValidElement)(e) || e.type === N.Fragment) throw Error("Fragment with asChild expects exactly one non-Fragment React element child.");
|
|
4568
4500
|
let n = {
|
|
4569
4501
|
className: Kn(e.props.className, s),
|
|
4570
4502
|
style: qn(e.props.style, a)
|
|
4571
4503
|
};
|
|
4572
|
-
return t !== void 0 && (n["data-fragment-index"] = t), (0,
|
|
4504
|
+
return t !== void 0 && (n["data-fragment-index"] = t), (0, N.cloneElement)(e, n);
|
|
4573
4505
|
}
|
|
4574
4506
|
return /* @__PURE__ */ (0, G.jsx)(n ?? "span", {
|
|
4575
4507
|
className: s,
|
|
@@ -4587,10 +4519,12 @@ function Zn(e) {
|
|
|
4587
4519
|
}
|
|
4588
4520
|
function Qn(e) {
|
|
4589
4521
|
let t = e.querySelector(".fragment:not(.visible)");
|
|
4590
|
-
|
|
4522
|
+
if (!t) return e.scrollHeight;
|
|
4523
|
+
let n = e.getBoundingClientRect(), r = e.offsetHeight > 0 ? n.height / e.offsetHeight : 1;
|
|
4524
|
+
return (t.getBoundingClientRect().top - n.top) / (r || 1) + e.scrollTop;
|
|
4591
4525
|
}
|
|
4592
4526
|
function $n(e, t) {
|
|
4593
|
-
let n = (0,
|
|
4527
|
+
let n = (0, P.c)(4), [r, i] = (0, N.useState)(!1), a, o;
|
|
4594
4528
|
return n[0] !== t || n[1] !== e ? (a = () => {
|
|
4595
4529
|
let n = e.current, r = t.current;
|
|
4596
4530
|
if (!n || !r) return;
|
|
@@ -4614,17 +4548,17 @@ function $n(e, t) {
|
|
|
4614
4548
|
}), n.addEventListener("scroll", o, { passive: !0 }), () => {
|
|
4615
4549
|
cancelAnimationFrame(a), s.disconnect(), c?.disconnect(), n.removeEventListener("scroll", o);
|
|
4616
4550
|
};
|
|
4617
|
-
}, 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, N.useEffect)(a, o), r;
|
|
4618
4552
|
}
|
|
4619
4553
|
var er = (e) => {
|
|
4620
|
-
let t = (0,
|
|
4621
|
-
t[0] ===
|
|
4554
|
+
let t = (0, P.c)(6), { className: r } = e, i;
|
|
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);
|
|
4622
4556
|
let a;
|
|
4623
4557
|
t[2] === Symbol.for("react.memo_cache_sentinel") ? (a = /* @__PURE__ */ (0, G.jsx)("div", { className: "h-16 w-full bg-linear-to-t from-background via-background/80 to-transparent" }), t[2] = a) : a = t[2];
|
|
4624
4558
|
let o;
|
|
4625
4559
|
t[3] === Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */ (0, G.jsxs)("div", {
|
|
4626
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",
|
|
4627
|
-
children: [/* @__PURE__ */ (0, G.jsx)(
|
|
4561
|
+
children: [/* @__PURE__ */ (0, G.jsx)(w, { className: "h-3.5 w-3.5" }), /* @__PURE__ */ (0, G.jsx)("span", { children: "Scroll for more" })]
|
|
4628
4562
|
}), t[3] = o) : o = t[3];
|
|
4629
4563
|
let s;
|
|
4630
4564
|
return t[4] === i ? s = t[5] : (s = /* @__PURE__ */ (0, G.jsxs)("div", {
|
|
@@ -4634,19 +4568,19 @@ var er = (e) => {
|
|
|
4634
4568
|
children: [a, o]
|
|
4635
4569
|
}), t[4] = i, t[5] = s), s;
|
|
4636
4570
|
}, tr = (e) => {
|
|
4637
|
-
let t = (0,
|
|
4638
|
-
t[0] === i ? c = t[1] : (c =
|
|
4571
|
+
let t = (0, P.c)(10), { children: r, className: i } = e, a = (0, N.useRef)(null), o = (0, N.useRef)(null), s = $n(a, o), c;
|
|
4572
|
+
t[0] === i ? c = t[1] : (c = n("relative h-full w-full", i), t[0] = i, t[1] = c);
|
|
4639
4573
|
let l;
|
|
4640
|
-
t[2] ===
|
|
4574
|
+
t[2] === r ? l = t[3] : (l = /* @__PURE__ */ (0, G.jsx)("div", {
|
|
4641
4575
|
ref: a,
|
|
4642
4576
|
className: "h-full w-full overflow-auto",
|
|
4643
4577
|
"data-testid": "slide-scroll-container",
|
|
4644
4578
|
children: /* @__PURE__ */ (0, G.jsx)("div", {
|
|
4645
4579
|
ref: o,
|
|
4646
4580
|
className: "flex w-full min-h-full",
|
|
4647
|
-
children:
|
|
4581
|
+
children: r
|
|
4648
4582
|
})
|
|
4649
|
-
}), t[2] =
|
|
4583
|
+
}), t[2] = r, t[3] = l);
|
|
4650
4584
|
let u;
|
|
4651
4585
|
t[4] === s ? u = t[5] : (u = s && /* @__PURE__ */ (0, G.jsx)(er, {}), t[4] = s, t[5] = u);
|
|
4652
4586
|
let d;
|
|
@@ -4765,48 +4699,44 @@ function sr(e, t) {
|
|
|
4765
4699
|
}
|
|
4766
4700
|
//#endregion
|
|
4767
4701
|
//#region src/core/islands/stubs/slide-cell-view.tsx
|
|
4768
|
-
var cr = (e) => (
|
|
4769
|
-
let t = (0,
|
|
4770
|
-
t[0] !==
|
|
4702
|
+
var cr = (e) => (t.warn("SlideCellView islands stub rendered; this should never happen in a read-only embed."), null), lr = (e) => (t.warn("SlideCellReadOnlyView islands stub rendered; this should never happen in a read-only embed."), null), ur = 300, dr = (e) => {
|
|
4703
|
+
let t = (0, P.c)(25), { layout: r, setLayout: a, cellId: o, className: s } = e, c = o ? r.cells.get(o)?.speakerNotes ?? "" : "", [l, u] = (0, N.useState)(c), d = (0, N.useRef)(!1), f;
|
|
4704
|
+
t[0] !== r || t[1] !== a ? (f = (e, t) => {
|
|
4771
4705
|
d.current = !1;
|
|
4772
|
-
let
|
|
4773
|
-
if ((
|
|
4774
|
-
let i = new Map(
|
|
4706
|
+
let n = r.cells.get(e);
|
|
4707
|
+
if ((n?.speakerNotes ?? "") === t) return;
|
|
4708
|
+
let i = new Map(r.cells);
|
|
4775
4709
|
i.set(e, {
|
|
4776
|
-
...
|
|
4710
|
+
...n,
|
|
4777
4711
|
speakerNotes: t
|
|
4778
4712
|
}), a({
|
|
4779
|
-
...
|
|
4713
|
+
...r,
|
|
4780
4714
|
cells: i
|
|
4781
4715
|
});
|
|
4782
|
-
}, t[0] =
|
|
4783
|
-
let p =
|
|
4716
|
+
}, t[0] = r, t[1] = a, t[2] = f) : f = t[2];
|
|
4717
|
+
let p = j(f), m = T(p, ur), h = (0, N.useRef)(o), g, _;
|
|
4784
4718
|
t[3] !== o || t[4] !== l || t[5] !== c || t[6] !== m ? (g = () => {
|
|
4785
|
-
|
|
4786
|
-
m.flush(), d.current = !1, u(c), h.current = o;
|
|
4787
|
-
return;
|
|
4788
|
-
}
|
|
4789
|
-
!d.current && c !== l && u(c);
|
|
4719
|
+
h.current === o ? !d.current && c !== l && u(c) : (m.flush(), d.current = !1, u(c), h.current = o);
|
|
4790
4720
|
}, _ = [
|
|
4791
4721
|
o,
|
|
4792
4722
|
c,
|
|
4793
4723
|
l,
|
|
4794
4724
|
m
|
|
4795
|
-
], 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, N.useEffect)(g, _);
|
|
4796
4726
|
let v, y;
|
|
4797
4727
|
t[9] === m ? (v = t[10], y = t[11]) : (v = () => () => {
|
|
4798
4728
|
m.flush();
|
|
4799
|
-
}, 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, N.useEffect)(v, y);
|
|
4800
4730
|
let b;
|
|
4801
4731
|
t[12] !== o || t[13] !== m ? (b = (e) => {
|
|
4802
4732
|
u(e), o && (d.current = !0, m(o, e));
|
|
4803
4733
|
}, t[12] = o, t[13] = m, t[14] = b) : b = t[14];
|
|
4804
4734
|
let x = b, S;
|
|
4805
|
-
t[15] === s ? S = t[16] : (S =
|
|
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);
|
|
4806
4736
|
let C;
|
|
4807
4737
|
t[17] === Symbol.for("react.memo_cache_sentinel") ? (C = /* @__PURE__ */ (0, G.jsxs)("header", {
|
|
4808
4738
|
className: "flex items-center gap-1.5 px-3 h-8 shrink-0 text-xs font-medium uppercase tracking-wide text-muted-foreground",
|
|
4809
|
-
children: [/* @__PURE__ */ (0, G.jsx)(
|
|
4739
|
+
children: [/* @__PURE__ */ (0, G.jsx)(M, { className: "h-3.5 w-3.5" }), /* @__PURE__ */ (0, G.jsx)("span", { children: "Speaker notes" })]
|
|
4810
4740
|
}), t[17] = C) : C = t[17];
|
|
4811
4741
|
let w;
|
|
4812
4742
|
t[18] !== o || t[19] !== l || t[20] !== x ? (w = /* @__PURE__ */ (0, G.jsx)("div", {
|
|
@@ -4816,20 +4746,20 @@ var cr = (e) => (n.warn("SlideCellView islands stub rendered; this should never
|
|
|
4816
4746
|
onChange: (e) => x(e.target.value),
|
|
4817
4747
|
onClick: i.stopPropagation(),
|
|
4818
4748
|
placeholder: "Add notes for this slide. Visible to you in speaker view (press S during presentation).",
|
|
4819
|
-
className:
|
|
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"),
|
|
4820
4750
|
"aria-label": "Speaker notes for the current slide"
|
|
4821
4751
|
}) : /* @__PURE__ */ (0, G.jsx)("div", {
|
|
4822
4752
|
className: "h-full flex items-center justify-center text-xs text-muted-foreground",
|
|
4823
4753
|
children: "Select a slide to add notes."
|
|
4824
4754
|
})
|
|
4825
4755
|
}), t[18] = o, t[19] = l, t[20] = x, t[21] = w) : w = t[21];
|
|
4826
|
-
let
|
|
4827
|
-
return t[22] !== S || t[23] !== w ? (
|
|
4756
|
+
let E;
|
|
4757
|
+
return t[22] !== S || t[23] !== w ? (E = /* @__PURE__ */ (0, G.jsxs)("section", {
|
|
4828
4758
|
className: S,
|
|
4829
4759
|
"aria-label": "Speaker notes",
|
|
4830
4760
|
onKeyDown: fr,
|
|
4831
4761
|
children: [C, w]
|
|
4832
|
-
}), t[22] = S, t[23] = w, t[24] =
|
|
4762
|
+
}), t[22] = S, t[23] = w, t[24] = E) : E = t[24], E;
|
|
4833
4763
|
};
|
|
4834
4764
|
function fr(e) {
|
|
4835
4765
|
return e.stopPropagation();
|
|
@@ -4846,10 +4776,10 @@ var pr = "\n\n---\n\n", mr = (e, t) => e.map((e) => t.get(e.id)?.speakerNotes ??
|
|
|
4846
4776
|
slideLevel: r,
|
|
4847
4777
|
cumulativeByBlock: i
|
|
4848
4778
|
};
|
|
4849
|
-
};
|
|
4779
|
+
}, gr = D(!1);
|
|
4850
4780
|
//#endregion
|
|
4851
4781
|
//#region ../node_modules/.pnpm/reveal.js@6.0.2/node_modules/reveal.js/dist/plugin/notes.mjs
|
|
4852
|
-
function
|
|
4782
|
+
function _r() {
|
|
4853
4783
|
return {
|
|
4854
4784
|
async: !1,
|
|
4855
4785
|
breaks: !1,
|
|
@@ -4863,28 +4793,28 @@ function gr() {
|
|
|
4863
4793
|
walkTokens: null
|
|
4864
4794
|
};
|
|
4865
4795
|
}
|
|
4866
|
-
var
|
|
4867
|
-
function
|
|
4868
|
-
|
|
4796
|
+
var vr = _r();
|
|
4797
|
+
function yr(e) {
|
|
4798
|
+
vr = e;
|
|
4869
4799
|
}
|
|
4870
|
-
var
|
|
4871
|
-
function
|
|
4800
|
+
var br = { exec: () => null };
|
|
4801
|
+
function Q(e, t = "") {
|
|
4872
4802
|
let n = typeof e == "string" ? e : e.source, r = {
|
|
4873
4803
|
replace: (e, t) => {
|
|
4874
4804
|
let i = typeof t == "string" ? t : t.source;
|
|
4875
|
-
return i = i.replace(
|
|
4805
|
+
return i = i.replace(Sr.caret, "$1"), n = n.replace(e, i), r;
|
|
4876
4806
|
},
|
|
4877
4807
|
getRegex: () => new RegExp(n, t)
|
|
4878
4808
|
};
|
|
4879
4809
|
return r;
|
|
4880
4810
|
}
|
|
4881
|
-
var
|
|
4811
|
+
var xr = (() => {
|
|
4882
4812
|
try {
|
|
4883
4813
|
return !0;
|
|
4884
4814
|
} catch {
|
|
4885
4815
|
return !1;
|
|
4886
4816
|
}
|
|
4887
|
-
})(),
|
|
4817
|
+
})(), Sr = {
|
|
4888
4818
|
codeRemoveIndent: /^(?: {1,4}| {0,3}\t)/gm,
|
|
4889
4819
|
outputLinkReplace: /\\([\[\]])/g,
|
|
4890
4820
|
indentCodeCompensation: /^(\s+)(?:```)/,
|
|
@@ -4941,117 +4871,117 @@ var br = (() => {
|
|
|
4941
4871
|
headingBeginRegex: (e) => RegExp(`^ {0,${Math.min(3, e - 1)}}#`),
|
|
4942
4872
|
htmlBeginRegex: (e) => RegExp(`^ {0,${Math.min(3, e - 1)}}<(?:[a-z].*>|!--)`, "i"),
|
|
4943
4873
|
blockquoteBeginRegex: (e) => RegExp(`^ {0,${Math.min(3, e - 1)}}>`)
|
|
4944
|
-
},
|
|
4945
|
-
blockquote:
|
|
4946
|
-
code:
|
|
4947
|
-
def:
|
|
4948
|
-
fences:
|
|
4949
|
-
heading:
|
|
4950
|
-
hr:
|
|
4951
|
-
html:
|
|
4952
|
-
lheading:
|
|
4953
|
-
list:
|
|
4954
|
-
newline:
|
|
4955
|
-
paragraph:
|
|
4956
|
-
table:
|
|
4957
|
-
text:
|
|
4958
|
-
},
|
|
4959
|
-
...
|
|
4960
|
-
lheading:
|
|
4961
|
-
table:
|
|
4962
|
-
paragraph:
|
|
4963
|
-
},
|
|
4964
|
-
...
|
|
4965
|
-
html:
|
|
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 = Q(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 = Q(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 = Q(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", Pr).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), Ir = Q(/^(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 = 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", Rr).replace("tag", Lr).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), Br = Q(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: Q(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", Br).getRegex(),
|
|
4876
|
+
code: wr,
|
|
4877
|
+
def: Fr,
|
|
4878
|
+
fences: Tr,
|
|
4879
|
+
heading: Dr,
|
|
4880
|
+
hr: Er,
|
|
4881
|
+
html: zr,
|
|
4882
|
+
lheading: Ar,
|
|
4883
|
+
list: Ir,
|
|
4884
|
+
newline: Cr,
|
|
4885
|
+
paragraph: Br,
|
|
4886
|
+
table: br,
|
|
4887
|
+
text: Nr
|
|
4888
|
+
}, Hr = Q("^ *([^\\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
|
+
...Vr,
|
|
4890
|
+
lheading: jr,
|
|
4891
|
+
table: Hr,
|
|
4892
|
+
paragraph: Q(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
|
+
}, Wr = {
|
|
4894
|
+
...Vr,
|
|
4895
|
+
html: Q("^ *(?: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(),
|
|
4966
4896
|
def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,
|
|
4967
4897
|
heading: /^(#{1,6})(.*)(?:\n+|$)/,
|
|
4968
|
-
fences:
|
|
4898
|
+
fences: br,
|
|
4969
4899
|
lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,
|
|
4970
|
-
paragraph:
|
|
4971
|
-
},
|
|
4972
|
-
_backpedal:
|
|
4973
|
-
anyPunctuation:
|
|
4974
|
-
autolink:
|
|
4975
|
-
blockSkip:
|
|
4976
|
-
br:
|
|
4977
|
-
code:
|
|
4978
|
-
del:
|
|
4979
|
-
delLDelim:
|
|
4980
|
-
delRDelim:
|
|
4981
|
-
emStrongLDelim:
|
|
4982
|
-
emStrongRDelimAst:
|
|
4983
|
-
emStrongRDelimUnd:
|
|
4984
|
-
escape:
|
|
4985
|
-
link:
|
|
4986
|
-
nolink:
|
|
4987
|
-
punctuation:
|
|
4988
|
-
reflink:
|
|
4989
|
-
reflinkSearch:
|
|
4990
|
-
tag:
|
|
4991
|
-
text:
|
|
4992
|
-
url:
|
|
4993
|
-
}, xi = {
|
|
4994
|
-
...bi,
|
|
4995
|
-
link: Z(/^!?\[(label)\]\((.*?)\)/).replace("label", mi).getRegex(),
|
|
4996
|
-
reflink: Z(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", mi).getRegex()
|
|
4997
|
-
}, Si = {
|
|
4998
|
-
...bi,
|
|
4999
|
-
emStrongRDelimAst: oi,
|
|
5000
|
-
emStrongLDelim: ri,
|
|
5001
|
-
delLDelim: ci,
|
|
5002
|
-
delRDelim: li,
|
|
5003
|
-
url: Z(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol", yi).replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),
|
|
5004
|
-
_backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,
|
|
5005
|
-
del: /^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,
|
|
5006
|
-
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", yi).getRegex()
|
|
4900
|
+
paragraph: Q(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 = Q(/^((?![*_])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 = Q(/link|precode-code|html/, "g").replace("link", /\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-", xr ? "(?<!`)()" : "(^^|[^`])").replace("code", /(?<b>`+)[^`]+\k<b>(?!`)/).replace("html", /<(?! )[^<>]*?>/).getRegex(), ri = /^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/, ii = Q(ri, "u").replace(/punct/g, Yr).getRegex(), ai = Q(ri, "u").replace(/punct/g, $r).getRegex(), oi = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", si = Q(oi, "gu").replace(/notPunctSpace/g, Zr).replace(/punctSpace/g, Xr).replace(/punct/g, Yr).getRegex(), ci = Q(oi, "gu").replace(/notPunctSpace/g, ti).replace(/punctSpace/g, ei).replace(/punct/g, $r).getRegex(), li = Q("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)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 = Q(/^~~?(?:((?!~)punct)|[^\s~])/, "u").replace(/punct/g, Yr).getRegex(), di = Q("^[^~]+(?=[^~])|(?!~)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 = Q(/\\(punct)/, "gu").replace(/punct/g, Yr).getRegex(), pi = 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(), mi = Q(Rr).replace("(?:-->|$)", "-->").getRegex(), hi = 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", mi).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), gi = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/, _i = Q(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label", gi).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), vi = Q(/^!?\[(label)\]\[(ref)\]/).replace("label", gi).replace("ref", Pr).getRegex(), yi = Q(/^!?\[(ref)\](?:\[\])?/).replace("ref", Pr).getRegex(), bi = Q("reflink|nolink(?!\\()", "g").replace("reflink", vi).replace("nolink", yi).getRegex(), xi = /[hH][tT][tT][pP][sS]?|[fF][tT][pP]/, Si = {
|
|
4902
|
+
_backpedal: br,
|
|
4903
|
+
anyPunctuation: fi,
|
|
4904
|
+
autolink: pi,
|
|
4905
|
+
blockSkip: ni,
|
|
4906
|
+
br: qr,
|
|
4907
|
+
code: Kr,
|
|
4908
|
+
del: br,
|
|
4909
|
+
delLDelim: br,
|
|
4910
|
+
delRDelim: br,
|
|
4911
|
+
emStrongLDelim: ii,
|
|
4912
|
+
emStrongRDelimAst: si,
|
|
4913
|
+
emStrongRDelimUnd: li,
|
|
4914
|
+
escape: Gr,
|
|
4915
|
+
link: _i,
|
|
4916
|
+
nolink: yi,
|
|
4917
|
+
punctuation: Qr,
|
|
4918
|
+
reflink: vi,
|
|
4919
|
+
reflinkSearch: bi,
|
|
4920
|
+
tag: hi,
|
|
4921
|
+
text: Jr,
|
|
4922
|
+
url: br
|
|
5007
4923
|
}, Ci = {
|
|
5008
4924
|
...Si,
|
|
5009
|
-
|
|
5010
|
-
|
|
4925
|
+
link: Q(/^!?\[(label)\]\((.*?)\)/).replace("label", gi).getRegex(),
|
|
4926
|
+
reflink: Q(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", gi).getRegex()
|
|
5011
4927
|
}, wi = {
|
|
5012
|
-
|
|
5013
|
-
|
|
5014
|
-
|
|
4928
|
+
...Si,
|
|
4929
|
+
emStrongRDelimAst: ci,
|
|
4930
|
+
emStrongLDelim: ai,
|
|
4931
|
+
delLDelim: ui,
|
|
4932
|
+
delRDelim: di,
|
|
4933
|
+
url: Q(/^((?: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
|
+
_backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,
|
|
4935
|
+
del: /^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,
|
|
4936
|
+
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", xi).getRegex()
|
|
5015
4937
|
}, Ti = {
|
|
5016
|
-
|
|
5017
|
-
|
|
5018
|
-
|
|
5019
|
-
pedantic: xi
|
|
4938
|
+
...wi,
|
|
4939
|
+
br: Q(qr).replace("{2,}", "*").getRegex(),
|
|
4940
|
+
text: Q(wi.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex()
|
|
5020
4941
|
}, Ei = {
|
|
4942
|
+
normal: Vr,
|
|
4943
|
+
gfm: Ur,
|
|
4944
|
+
pedantic: Wr
|
|
4945
|
+
}, Di = {
|
|
4946
|
+
normal: Si,
|
|
4947
|
+
gfm: wi,
|
|
4948
|
+
breaks: Ti,
|
|
4949
|
+
pedantic: Ci
|
|
4950
|
+
}, Oi = {
|
|
5021
4951
|
"&": "&",
|
|
5022
4952
|
"<": "<",
|
|
5023
4953
|
">": ">",
|
|
5024
4954
|
"\"": """,
|
|
5025
4955
|
"'": "'"
|
|
5026
|
-
},
|
|
5027
|
-
function
|
|
4956
|
+
}, ki = (e) => Oi[e];
|
|
4957
|
+
function Ai(e, t) {
|
|
5028
4958
|
if (t) {
|
|
5029
|
-
if (
|
|
5030
|
-
} else if (
|
|
4959
|
+
if (Sr.escapeTest.test(e)) return e.replace(Sr.escapeReplace, ki);
|
|
4960
|
+
} else if (Sr.escapeTestNoEncode.test(e)) return e.replace(Sr.escapeReplaceNoEncode, ki);
|
|
5031
4961
|
return e;
|
|
5032
4962
|
}
|
|
5033
|
-
function
|
|
4963
|
+
function ji(e) {
|
|
5034
4964
|
try {
|
|
5035
|
-
e = encodeURI(e).replace(
|
|
4965
|
+
e = encodeURI(e).replace(Sr.percentDecode, "%");
|
|
5036
4966
|
} catch {
|
|
5037
4967
|
return null;
|
|
5038
4968
|
}
|
|
5039
4969
|
return e;
|
|
5040
4970
|
}
|
|
5041
|
-
function
|
|
5042
|
-
let n = e.replace(
|
|
4971
|
+
function Mi(e, t) {
|
|
4972
|
+
let n = e.replace(Sr.findPipe, (e, t, n) => {
|
|
5043
4973
|
let r = !1, i = t;
|
|
5044
4974
|
for (; --i >= 0 && n[i] === "\\";) r = !r;
|
|
5045
4975
|
return r ? "|" : " |";
|
|
5046
|
-
}).split(
|
|
4976
|
+
}).split(Sr.splitPipe), r = 0;
|
|
5047
4977
|
if (n[0].trim() || n.shift(), n.length > 0 && !n.at(-1)?.trim() && n.pop(), t) {
|
|
5048
4978
|
if (n.length > t) n.splice(t);
|
|
5049
4979
|
else for (; n.length < t;) n.push("");
|
|
5050
4980
|
}
|
|
5051
|
-
for (; r < n.length; r++) n[r] = n[r].trim().replace(
|
|
4981
|
+
for (; r < n.length; r++) n[r] = n[r].trim().replace(Sr.slashPipe, "|");
|
|
5052
4982
|
return n;
|
|
5053
4983
|
}
|
|
5054
|
-
function
|
|
4984
|
+
function Ni(e, t, n) {
|
|
5055
4985
|
let r = e.length;
|
|
5056
4986
|
if (r === 0) return "";
|
|
5057
4987
|
let i = 0;
|
|
@@ -5063,7 +4993,7 @@ function ji(e, t, n) {
|
|
|
5063
4993
|
}
|
|
5064
4994
|
return e.slice(0, r - i);
|
|
5065
4995
|
}
|
|
5066
|
-
function
|
|
4996
|
+
function Pi(e, t) {
|
|
5067
4997
|
if (e.indexOf(t[1]) === -1) return -1;
|
|
5068
4998
|
let n = 0;
|
|
5069
4999
|
for (let r = 0; r < e.length; r++) if (e[r] === "\\") r++;
|
|
@@ -5071,7 +5001,7 @@ function Mi(e, t) {
|
|
|
5071
5001
|
else if (e[r] === t[1] && (n--, n < 0)) return r;
|
|
5072
5002
|
return n > 0 ? -2 : -1;
|
|
5073
5003
|
}
|
|
5074
|
-
function
|
|
5004
|
+
function Fi(e, t = 0) {
|
|
5075
5005
|
let n = t, r = "";
|
|
5076
5006
|
for (let t of e) if (t === " ") {
|
|
5077
5007
|
let e = 4 - n % 4;
|
|
@@ -5079,7 +5009,7 @@ function Ni(e, t = 0) {
|
|
|
5079
5009
|
} else r += t, n++;
|
|
5080
5010
|
return r;
|
|
5081
5011
|
}
|
|
5082
|
-
function
|
|
5012
|
+
function Ii(e, t, n, r, i) {
|
|
5083
5013
|
let a = t.href, o = t.title || null, s = e[1].replace(i.other.outputLinkReplace, "$1");
|
|
5084
5014
|
r.state.inLink = !0;
|
|
5085
5015
|
let c = {
|
|
@@ -5092,7 +5022,7 @@ function Pi(e, t, n, r, i) {
|
|
|
5092
5022
|
};
|
|
5093
5023
|
return r.state.inLink = !1, c;
|
|
5094
5024
|
}
|
|
5095
|
-
function
|
|
5025
|
+
function Li(e, t, n) {
|
|
5096
5026
|
let r = e.match(n.other.indentCodeCompensation);
|
|
5097
5027
|
if (r === null) return t;
|
|
5098
5028
|
let i = r[1];
|
|
@@ -5103,12 +5033,12 @@ function Fi(e, t, n) {
|
|
|
5103
5033
|
return r.length >= i.length ? e.slice(i.length) : e;
|
|
5104
5034
|
}).join("\n");
|
|
5105
5035
|
}
|
|
5106
|
-
var
|
|
5036
|
+
var Ri = class {
|
|
5107
5037
|
options;
|
|
5108
5038
|
rules;
|
|
5109
5039
|
lexer;
|
|
5110
5040
|
constructor(e) {
|
|
5111
|
-
this.options = e ||
|
|
5041
|
+
this.options = e || vr;
|
|
5112
5042
|
}
|
|
5113
5043
|
space(e) {
|
|
5114
5044
|
let t = this.rules.block.newline.exec(e);
|
|
@@ -5125,14 +5055,14 @@ var Ii = class {
|
|
|
5125
5055
|
type: "code",
|
|
5126
5056
|
raw: t[0],
|
|
5127
5057
|
codeBlockStyle: "indented",
|
|
5128
|
-
text: this.options.pedantic ? e :
|
|
5058
|
+
text: this.options.pedantic ? e : Ni(e, "\n")
|
|
5129
5059
|
};
|
|
5130
5060
|
}
|
|
5131
5061
|
}
|
|
5132
5062
|
fences(e) {
|
|
5133
5063
|
let t = this.rules.block.fences.exec(e);
|
|
5134
5064
|
if (t) {
|
|
5135
|
-
let e = t[0], n =
|
|
5065
|
+
let e = t[0], n = Li(e, t[3] || "", this.rules);
|
|
5136
5066
|
return {
|
|
5137
5067
|
type: "code",
|
|
5138
5068
|
raw: e,
|
|
@@ -5146,7 +5076,7 @@ var Ii = class {
|
|
|
5146
5076
|
if (t) {
|
|
5147
5077
|
let e = t[2].trim();
|
|
5148
5078
|
if (this.rules.other.endingHash.test(e)) {
|
|
5149
|
-
let t =
|
|
5079
|
+
let t = Ni(e, "#");
|
|
5150
5080
|
(this.options.pedantic || !t || this.rules.other.endingSpaceChar.test(t)) && (e = t.trim());
|
|
5151
5081
|
}
|
|
5152
5082
|
return {
|
|
@@ -5162,16 +5092,16 @@ var Ii = class {
|
|
|
5162
5092
|
let t = this.rules.block.hr.exec(e);
|
|
5163
5093
|
if (t) return {
|
|
5164
5094
|
type: "hr",
|
|
5165
|
-
raw:
|
|
5095
|
+
raw: Ni(t[0], "\n")
|
|
5166
5096
|
};
|
|
5167
5097
|
}
|
|
5168
5098
|
blockquote(e) {
|
|
5169
5099
|
let t = this.rules.block.blockquote.exec(e);
|
|
5170
5100
|
if (t) {
|
|
5171
|
-
let e =
|
|
5101
|
+
let e = Ni(t[0], "\n").split("\n"), n = "", r = "", i = [];
|
|
5172
5102
|
for (; e.length > 0;) {
|
|
5173
|
-
let t = !1, a = [], o;
|
|
5174
|
-
for (
|
|
5103
|
+
let t = !1, a = [], o = 0;
|
|
5104
|
+
for (; o < e.length; o++) if (this.rules.other.blockquoteStart.test(e[o])) a.push(e[o]), t = !0;
|
|
5175
5105
|
else if (!t) a.push(e[o]);
|
|
5176
5106
|
else break;
|
|
5177
5107
|
e = e.slice(o);
|
|
@@ -5191,7 +5121,6 @@ ${c}` : c;
|
|
|
5191
5121
|
if (u?.type === "list") {
|
|
5192
5122
|
let t = u, a = t.raw + "\n" + e.join("\n"), o = this.list(a);
|
|
5193
5123
|
i[i.length - 1] = o, n = n.substring(0, n.length - u.raw.length) + o.raw, r = r.substring(0, r.length - t.raw.length) + o.raw, e = a.substring(i.at(-1).raw.length).split("\n");
|
|
5194
|
-
continue;
|
|
5195
5124
|
}
|
|
5196
5125
|
}
|
|
5197
5126
|
return {
|
|
@@ -5219,7 +5148,7 @@ ${c}` : c;
|
|
|
5219
5148
|
let n = !1, r = "", s = "";
|
|
5220
5149
|
if (!(t = a.exec(e)) || this.rules.block.hr.test(e)) break;
|
|
5221
5150
|
r = t[0], e = e.substring(r.length);
|
|
5222
|
-
let c =
|
|
5151
|
+
let c = Fi(t[2].split("\n", 1)[0], t[1].length), l = e.split("\n", 1)[0], u = !c.trim(), d = 0;
|
|
5223
5152
|
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) {
|
|
5224
5153
|
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);
|
|
5225
5154
|
for (; e;) {
|
|
@@ -5308,7 +5237,7 @@ ${c}` : c;
|
|
|
5308
5237
|
table(e) {
|
|
5309
5238
|
let t = this.rules.block.table.exec(e);
|
|
5310
5239
|
if (!t || !this.rules.other.tableDelimiter.test(t[2])) return;
|
|
5311
|
-
let n =
|
|
5240
|
+
let n = Mi(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 = {
|
|
5312
5241
|
type: "table",
|
|
5313
5242
|
raw: t[0],
|
|
5314
5243
|
header: [],
|
|
@@ -5323,7 +5252,7 @@ ${c}` : c;
|
|
|
5323
5252
|
header: !0,
|
|
5324
5253
|
align: a.align[e]
|
|
5325
5254
|
});
|
|
5326
|
-
for (let e of i) a.rows.push(
|
|
5255
|
+
for (let e of i) a.rows.push(Mi(e, a.header.length).map((e, t) => ({
|
|
5327
5256
|
text: e,
|
|
5328
5257
|
tokens: this.lexer.inline(e),
|
|
5329
5258
|
header: !1,
|
|
@@ -5391,10 +5320,10 @@ ${c}` : c;
|
|
|
5391
5320
|
let e = t[2].trim();
|
|
5392
5321
|
if (!this.options.pedantic && this.rules.other.startAngleBracket.test(e)) {
|
|
5393
5322
|
if (!this.rules.other.endAngleBracket.test(e)) return;
|
|
5394
|
-
let t =
|
|
5323
|
+
let t = Ni(e.slice(0, -1), "\\");
|
|
5395
5324
|
if ((e.length - t.length) % 2 == 0) return;
|
|
5396
5325
|
} else {
|
|
5397
|
-
let e =
|
|
5326
|
+
let e = Pi(t[2], "()");
|
|
5398
5327
|
if (e === -2) return;
|
|
5399
5328
|
if (e > -1) {
|
|
5400
5329
|
let n = (t[0].indexOf("!") === 0 ? 5 : 4) + t[1].length + e;
|
|
@@ -5406,7 +5335,7 @@ ${c}` : c;
|
|
|
5406
5335
|
let e = this.rules.other.pedanticHrefTitle.exec(n);
|
|
5407
5336
|
e && (n = e[1], r = e[3]);
|
|
5408
5337
|
} else r = t[3] ? t[3].slice(1, -1) : "";
|
|
5409
|
-
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)),
|
|
5338
|
+
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)), Ii(t, {
|
|
5410
5339
|
href: n && n.replace(this.rules.inline.anyPunctuation, "$1"),
|
|
5411
5340
|
title: r && r.replace(this.rules.inline.anyPunctuation, "$1")
|
|
5412
5341
|
}, t[0], this.lexer, this.rules);
|
|
@@ -5424,7 +5353,7 @@ ${c}` : c;
|
|
|
5424
5353
|
text: e
|
|
5425
5354
|
};
|
|
5426
5355
|
}
|
|
5427
|
-
return
|
|
5356
|
+
return Ii(n, e, n[0], this.lexer, this.rules);
|
|
5428
5357
|
}
|
|
5429
5358
|
}
|
|
5430
5359
|
emStrong(e, t, n = "") {
|
|
@@ -5557,29 +5486,29 @@ ${c}` : c;
|
|
|
5557
5486
|
};
|
|
5558
5487
|
}
|
|
5559
5488
|
}
|
|
5560
|
-
},
|
|
5489
|
+
}, zi = class e {
|
|
5561
5490
|
tokens;
|
|
5562
5491
|
options;
|
|
5563
5492
|
state;
|
|
5564
5493
|
inlineQueue;
|
|
5565
5494
|
tokenizer;
|
|
5566
5495
|
constructor(e) {
|
|
5567
|
-
this.tokens = [], this.tokens.links = Object.create(null), this.options = e ||
|
|
5496
|
+
this.tokens = [], this.tokens.links = Object.create(null), this.options = e || vr, 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 = {
|
|
5568
5497
|
inLink: !1,
|
|
5569
5498
|
inRawBlock: !1,
|
|
5570
5499
|
top: !0
|
|
5571
5500
|
};
|
|
5572
5501
|
let t = {
|
|
5573
|
-
other:
|
|
5574
|
-
block:
|
|
5575
|
-
inline:
|
|
5502
|
+
other: Sr,
|
|
5503
|
+
block: Ei.normal,
|
|
5504
|
+
inline: Di.normal
|
|
5576
5505
|
};
|
|
5577
|
-
this.options.pedantic ? (t.block =
|
|
5506
|
+
this.options.pedantic ? (t.block = Ei.pedantic, t.inline = Di.pedantic) : this.options.gfm && (t.block = Ei.gfm, t.inline = this.options.breaks ? Di.breaks : Di.gfm), this.tokenizer.rules = t;
|
|
5578
5507
|
}
|
|
5579
5508
|
static get rules() {
|
|
5580
5509
|
return {
|
|
5581
|
-
block:
|
|
5582
|
-
inline:
|
|
5510
|
+
block: Ei,
|
|
5511
|
+
inline: Di
|
|
5583
5512
|
};
|
|
5584
5513
|
}
|
|
5585
5514
|
static lex(t, n) {
|
|
@@ -5589,7 +5518,7 @@ ${c}` : c;
|
|
|
5589
5518
|
return new e(n).inlineTokens(t);
|
|
5590
5519
|
}
|
|
5591
5520
|
lex(e) {
|
|
5592
|
-
e = e.replace(
|
|
5521
|
+
e = e.replace(Sr.carriageReturn, "\n"), this.blockTokens(e, this.tokens);
|
|
5593
5522
|
for (let e = 0; e < this.inlineQueue.length; e++) {
|
|
5594
5523
|
let t = this.inlineQueue[e];
|
|
5595
5524
|
this.inlineTokens(t.src, t.tokens);
|
|
@@ -5597,7 +5526,7 @@ ${c}` : c;
|
|
|
5597
5526
|
return this.inlineQueue = [], this.tokens;
|
|
5598
5527
|
}
|
|
5599
5528
|
blockTokens(e, t = [], n = !1) {
|
|
5600
|
-
for (this.tokenizer.lexer = this, this.options.pedantic && (e = e.replace(
|
|
5529
|
+
for (this.tokenizer.lexer = this, this.options.pedantic && (e = e.replace(Sr.tabCharGlobal, " ").replace(Sr.spaceLine, "")); e;) {
|
|
5601
5530
|
let r;
|
|
5602
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;
|
|
5603
5532
|
if (r = this.tokenizer.space(e)) {
|
|
@@ -5612,27 +5541,7 @@ ${c}` : c;
|
|
|
5612
5541
|
n?.type === "paragraph" || n?.type === "text" ? (n.raw += (n.raw.endsWith("\n") ? "" : "\n") + r.raw, n.text += "\n" + r.text, this.inlineQueue.at(-1).src = n.text) : t.push(r);
|
|
5613
5542
|
continue;
|
|
5614
5543
|
}
|
|
5615
|
-
if (r = this.tokenizer.fences(e)) {
|
|
5616
|
-
e = e.substring(r.raw.length), t.push(r);
|
|
5617
|
-
continue;
|
|
5618
|
-
}
|
|
5619
|
-
if (r = this.tokenizer.heading(e)) {
|
|
5620
|
-
e = e.substring(r.raw.length), t.push(r);
|
|
5621
|
-
continue;
|
|
5622
|
-
}
|
|
5623
|
-
if (r = this.tokenizer.hr(e)) {
|
|
5624
|
-
e = e.substring(r.raw.length), t.push(r);
|
|
5625
|
-
continue;
|
|
5626
|
-
}
|
|
5627
|
-
if (r = this.tokenizer.blockquote(e)) {
|
|
5628
|
-
e = e.substring(r.raw.length), t.push(r);
|
|
5629
|
-
continue;
|
|
5630
|
-
}
|
|
5631
|
-
if (r = this.tokenizer.list(e)) {
|
|
5632
|
-
e = e.substring(r.raw.length), t.push(r);
|
|
5633
|
-
continue;
|
|
5634
|
-
}
|
|
5635
|
-
if (r = this.tokenizer.html(e)) {
|
|
5544
|
+
if ((r = this.tokenizer.fences(e)) || (r = this.tokenizer.heading(e)) || (r = this.tokenizer.hr(e)) || (r = this.tokenizer.blockquote(e)) || (r = this.tokenizer.list(e)) || (r = this.tokenizer.html(e))) {
|
|
5636
5545
|
e = e.substring(r.raw.length), t.push(r);
|
|
5637
5546
|
continue;
|
|
5638
5547
|
}
|
|
@@ -5645,11 +5554,7 @@ ${c}` : c;
|
|
|
5645
5554
|
}, t.push(r));
|
|
5646
5555
|
continue;
|
|
5647
5556
|
}
|
|
5648
|
-
if (r = this.tokenizer.table(e)) {
|
|
5649
|
-
e = e.substring(r.raw.length), t.push(r);
|
|
5650
|
-
continue;
|
|
5651
|
-
}
|
|
5652
|
-
if (r = this.tokenizer.lheading(e)) {
|
|
5557
|
+
if ((r = this.tokenizer.table(e)) || (r = this.tokenizer.lheading(e))) {
|
|
5653
5558
|
e = e.substring(r.raw.length), t.push(r);
|
|
5654
5559
|
continue;
|
|
5655
5560
|
}
|
|
@@ -5663,15 +5568,11 @@ ${c}` : c;
|
|
|
5663
5568
|
if (this.state.top && (r = this.tokenizer.paragraph(i))) {
|
|
5664
5569
|
let a = t.at(-1);
|
|
5665
5570
|
n && a?.type === "paragraph" ? (a.raw += (a.raw.endsWith("\n") ? "" : "\n") + r.raw, a.text += "\n" + r.text, this.inlineQueue.pop(), this.inlineQueue.at(-1).src = a.text) : t.push(r), n = i.length !== e.length, e = e.substring(r.raw.length);
|
|
5666
|
-
|
|
5667
|
-
}
|
|
5668
|
-
if (r = this.tokenizer.text(e)) {
|
|
5571
|
+
} else if (r = this.tokenizer.text(e)) {
|
|
5669
5572
|
e = e.substring(r.raw.length);
|
|
5670
5573
|
let n = t.at(-1);
|
|
5671
5574
|
n?.type === "text" ? (n.raw += (n.raw.endsWith("\n") ? "" : "\n") + r.raw, n.text += "\n" + r.text, this.inlineQueue.pop(), this.inlineQueue.at(-1).src = n.text) : t.push(r);
|
|
5672
|
-
|
|
5673
|
-
}
|
|
5674
|
-
if (e) {
|
|
5575
|
+
} else if (e) {
|
|
5675
5576
|
let t = "Infinite loop on byte: " + e.charCodeAt(0);
|
|
5676
5577
|
if (this.options.silent) {
|
|
5677
5578
|
console.error(t);
|
|
@@ -5704,15 +5605,7 @@ ${c}` : c;
|
|
|
5704
5605
|
a || (o = ""), a = !1;
|
|
5705
5606
|
let r;
|
|
5706
5607
|
if (this.options.extensions?.inline?.some((n) => (r = n.call({ lexer: this }, e, t)) ? (e = e.substring(r.raw.length), t.push(r), !0) : !1)) continue;
|
|
5707
|
-
if (r = this.tokenizer.escape(e)) {
|
|
5708
|
-
e = e.substring(r.raw.length), t.push(r);
|
|
5709
|
-
continue;
|
|
5710
|
-
}
|
|
5711
|
-
if (r = this.tokenizer.tag(e)) {
|
|
5712
|
-
e = e.substring(r.raw.length), t.push(r);
|
|
5713
|
-
continue;
|
|
5714
|
-
}
|
|
5715
|
-
if (r = this.tokenizer.link(e)) {
|
|
5608
|
+
if ((r = this.tokenizer.escape(e)) || (r = this.tokenizer.tag(e)) || (r = this.tokenizer.link(e))) {
|
|
5716
5609
|
e = e.substring(r.raw.length), t.push(r);
|
|
5717
5610
|
continue;
|
|
5718
5611
|
}
|
|
@@ -5722,27 +5615,7 @@ ${c}` : c;
|
|
|
5722
5615
|
r.type === "text" && n?.type === "text" ? (n.raw += r.raw, n.text += r.text) : t.push(r);
|
|
5723
5616
|
continue;
|
|
5724
5617
|
}
|
|
5725
|
-
if (r = this.tokenizer.emStrong(e, n, o)) {
|
|
5726
|
-
e = e.substring(r.raw.length), t.push(r);
|
|
5727
|
-
continue;
|
|
5728
|
-
}
|
|
5729
|
-
if (r = this.tokenizer.codespan(e)) {
|
|
5730
|
-
e = e.substring(r.raw.length), t.push(r);
|
|
5731
|
-
continue;
|
|
5732
|
-
}
|
|
5733
|
-
if (r = this.tokenizer.br(e)) {
|
|
5734
|
-
e = e.substring(r.raw.length), t.push(r);
|
|
5735
|
-
continue;
|
|
5736
|
-
}
|
|
5737
|
-
if (r = this.tokenizer.del(e, n, o)) {
|
|
5738
|
-
e = e.substring(r.raw.length), t.push(r);
|
|
5739
|
-
continue;
|
|
5740
|
-
}
|
|
5741
|
-
if (r = this.tokenizer.autolink(e)) {
|
|
5742
|
-
e = e.substring(r.raw.length), t.push(r);
|
|
5743
|
-
continue;
|
|
5744
|
-
}
|
|
5745
|
-
if (!this.state.inLink && (r = this.tokenizer.url(e))) {
|
|
5618
|
+
if ((r = this.tokenizer.emStrong(e, n, o)) || (r = this.tokenizer.codespan(e)) || (r = this.tokenizer.br(e)) || (r = this.tokenizer.del(e, n, o)) || (r = this.tokenizer.autolink(e)) || !this.state.inLink && (r = this.tokenizer.url(e))) {
|
|
5746
5619
|
e = e.substring(r.raw.length), t.push(r);
|
|
5747
5620
|
continue;
|
|
5748
5621
|
}
|
|
@@ -5757,9 +5630,7 @@ ${c}` : c;
|
|
|
5757
5630
|
e = e.substring(r.raw.length), r.raw.slice(-1) !== "_" && (o = r.raw.slice(-1)), a = !0;
|
|
5758
5631
|
let n = t.at(-1);
|
|
5759
5632
|
n?.type === "text" ? (n.raw += r.raw, n.text += r.text) : t.push(r);
|
|
5760
|
-
|
|
5761
|
-
}
|
|
5762
|
-
if (e) {
|
|
5633
|
+
} else if (e) {
|
|
5763
5634
|
let t = "Infinite loop on byte: " + e.charCodeAt(0);
|
|
5764
5635
|
if (this.options.silent) {
|
|
5765
5636
|
console.error(t);
|
|
@@ -5770,18 +5641,18 @@ ${c}` : c;
|
|
|
5770
5641
|
}
|
|
5771
5642
|
return t;
|
|
5772
5643
|
}
|
|
5773
|
-
},
|
|
5644
|
+
}, Bi = class {
|
|
5774
5645
|
options;
|
|
5775
5646
|
parser;
|
|
5776
5647
|
constructor(e) {
|
|
5777
|
-
this.options = e ||
|
|
5648
|
+
this.options = e || vr;
|
|
5778
5649
|
}
|
|
5779
5650
|
space(e) {
|
|
5780
5651
|
return "";
|
|
5781
5652
|
}
|
|
5782
5653
|
code({ text: e, lang: t, escaped: n }) {
|
|
5783
|
-
let r = (t || "").match(
|
|
5784
|
-
return r ? "<pre><code class=\"language-" +
|
|
5654
|
+
let r = (t || "").match(Sr.notSpaceStart)?.[0], i = e.replace(Sr.endingNewline, "") + "\n";
|
|
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";
|
|
5785
5656
|
}
|
|
5786
5657
|
blockquote({ tokens: e }) {
|
|
5787
5658
|
return `<blockquote>
|
|
@@ -5851,7 +5722,7 @@ ${e}</tr>
|
|
|
5851
5722
|
return `<em>${this.parser.parseInline(e)}</em>`;
|
|
5852
5723
|
}
|
|
5853
5724
|
codespan({ text: e }) {
|
|
5854
|
-
return `<code>${
|
|
5725
|
+
return `<code>${Ai(e, !0)}</code>`;
|
|
5855
5726
|
}
|
|
5856
5727
|
br(e) {
|
|
5857
5728
|
return "<br>";
|
|
@@ -5860,24 +5731,24 @@ ${e}</tr>
|
|
|
5860
5731
|
return `<del>${this.parser.parseInline(e)}</del>`;
|
|
5861
5732
|
}
|
|
5862
5733
|
link({ href: e, title: t, tokens: n }) {
|
|
5863
|
-
let r = this.parser.parseInline(n), i =
|
|
5734
|
+
let r = this.parser.parseInline(n), i = ji(e);
|
|
5864
5735
|
if (i === null) return r;
|
|
5865
5736
|
e = i;
|
|
5866
5737
|
let a = "<a href=\"" + e + "\"";
|
|
5867
|
-
return t && (a += " title=\"" +
|
|
5738
|
+
return t && (a += " title=\"" + Ai(t) + "\""), a += ">" + r + "</a>", a;
|
|
5868
5739
|
}
|
|
5869
5740
|
image({ href: e, title: t, text: n, tokens: r }) {
|
|
5870
5741
|
r && (n = this.parser.parseInline(r, this.parser.textRenderer));
|
|
5871
|
-
let i =
|
|
5872
|
-
if (i === null) return
|
|
5742
|
+
let i = ji(e);
|
|
5743
|
+
if (i === null) return Ai(n);
|
|
5873
5744
|
e = i;
|
|
5874
|
-
let a = `<img src="${e}" alt="${
|
|
5875
|
-
return t && (a += ` title="${
|
|
5745
|
+
let a = `<img src="${e}" alt="${Ai(n)}"`;
|
|
5746
|
+
return t && (a += ` title="${Ai(t)}"`), a += ">", a;
|
|
5876
5747
|
}
|
|
5877
5748
|
text(e) {
|
|
5878
|
-
return "tokens" in e && e.tokens ? this.parser.parseInline(e.tokens) : "escaped" in e && e.escaped ? e.text :
|
|
5749
|
+
return "tokens" in e && e.tokens ? this.parser.parseInline(e.tokens) : "escaped" in e && e.escaped ? e.text : Ai(e.text);
|
|
5879
5750
|
}
|
|
5880
|
-
},
|
|
5751
|
+
}, Vi = class {
|
|
5881
5752
|
strong({ text: e }) {
|
|
5882
5753
|
return e;
|
|
5883
5754
|
}
|
|
@@ -5908,12 +5779,12 @@ ${e}</tr>
|
|
|
5908
5779
|
checkbox({ raw: e }) {
|
|
5909
5780
|
return e;
|
|
5910
5781
|
}
|
|
5911
|
-
},
|
|
5782
|
+
}, Hi = class e {
|
|
5912
5783
|
options;
|
|
5913
5784
|
renderer;
|
|
5914
5785
|
textRenderer;
|
|
5915
5786
|
constructor(e) {
|
|
5916
|
-
this.options = e ||
|
|
5787
|
+
this.options = e || vr, 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();
|
|
5917
5788
|
}
|
|
5918
5789
|
static parse(t, n) {
|
|
5919
5790
|
return new e(n).parse(t);
|
|
@@ -6059,11 +5930,11 @@ ${e}</tr>
|
|
|
6059
5930
|
}
|
|
6060
5931
|
return n;
|
|
6061
5932
|
}
|
|
6062
|
-
},
|
|
5933
|
+
}, Ui = class {
|
|
6063
5934
|
options;
|
|
6064
5935
|
block;
|
|
6065
5936
|
constructor(e) {
|
|
6066
|
-
this.options = e ||
|
|
5937
|
+
this.options = e || vr;
|
|
6067
5938
|
}
|
|
6068
5939
|
static passThroughHooks = /* @__PURE__ */ new Set([
|
|
6069
5940
|
"preprocess",
|
|
@@ -6089,22 +5960,22 @@ ${e}</tr>
|
|
|
6089
5960
|
return e;
|
|
6090
5961
|
}
|
|
6091
5962
|
provideLexer() {
|
|
6092
|
-
return this.block ?
|
|
5963
|
+
return this.block ? zi.lex : zi.lexInline;
|
|
6093
5964
|
}
|
|
6094
5965
|
provideParser() {
|
|
6095
|
-
return this.block ?
|
|
5966
|
+
return this.block ? Hi.parse : Hi.parseInline;
|
|
6096
5967
|
}
|
|
6097
|
-
},
|
|
6098
|
-
defaults =
|
|
5968
|
+
}, Wi = new class {
|
|
5969
|
+
defaults = _r();
|
|
6099
5970
|
options = this.setOptions;
|
|
6100
5971
|
parse = this.parseMarkdown(!0);
|
|
6101
5972
|
parseInline = this.parseMarkdown(!1);
|
|
6102
|
-
Parser =
|
|
6103
|
-
Renderer =
|
|
6104
|
-
TextRenderer =
|
|
6105
|
-
Lexer =
|
|
6106
|
-
Tokenizer =
|
|
6107
|
-
Hooks =
|
|
5973
|
+
Parser = Hi;
|
|
5974
|
+
Renderer = Bi;
|
|
5975
|
+
TextRenderer = Vi;
|
|
5976
|
+
Lexer = zi;
|
|
5977
|
+
Tokenizer = Ri;
|
|
5978
|
+
Hooks = Ui;
|
|
6108
5979
|
constructor(...e) {
|
|
6109
5980
|
this.use(...e);
|
|
6110
5981
|
}
|
|
@@ -6155,7 +6026,7 @@ ${e}</tr>
|
|
|
6155
6026
|
}
|
|
6156
6027
|
"childTokens" in e && e.childTokens && (t.childTokens[e.name] = e.childTokens);
|
|
6157
6028
|
}), n.extensions = t), e.renderer) {
|
|
6158
|
-
let t = this.defaults.renderer || new
|
|
6029
|
+
let t = this.defaults.renderer || new Bi(this.defaults);
|
|
6159
6030
|
for (let n in e.renderer) {
|
|
6160
6031
|
if (!(n in t)) throw Error(`renderer '${n}' does not exist`);
|
|
6161
6032
|
if (["options", "parser"].includes(n)) continue;
|
|
@@ -6168,7 +6039,7 @@ ${e}</tr>
|
|
|
6168
6039
|
n.renderer = t;
|
|
6169
6040
|
}
|
|
6170
6041
|
if (e.tokenizer) {
|
|
6171
|
-
let t = this.defaults.tokenizer || new
|
|
6042
|
+
let t = this.defaults.tokenizer || new Ri(this.defaults);
|
|
6172
6043
|
for (let n in e.tokenizer) {
|
|
6173
6044
|
if (!(n in t)) throw Error(`tokenizer '${n}' does not exist`);
|
|
6174
6045
|
if ([
|
|
@@ -6185,13 +6056,13 @@ ${e}</tr>
|
|
|
6185
6056
|
n.tokenizer = t;
|
|
6186
6057
|
}
|
|
6187
6058
|
if (e.hooks) {
|
|
6188
|
-
let t = this.defaults.hooks || new
|
|
6059
|
+
let t = this.defaults.hooks || new Ui();
|
|
6189
6060
|
for (let n in e.hooks) {
|
|
6190
6061
|
if (!(n in t)) throw Error(`hook '${n}' does not exist`);
|
|
6191
6062
|
if (["options", "block"].includes(n)) continue;
|
|
6192
6063
|
let r = n, i = e.hooks[r], a = t[r];
|
|
6193
|
-
t[r] =
|
|
6194
|
-
if (this.defaults.async &&
|
|
6064
|
+
t[r] = Ui.passThroughHooks.has(n) ? (e) => {
|
|
6065
|
+
if (this.defaults.async && Ui.passThroughHooksRespectAsync.has(n)) return (async () => {
|
|
6195
6066
|
let n = await i.call(t, e);
|
|
6196
6067
|
return a.call(t, n);
|
|
6197
6068
|
})();
|
|
@@ -6228,10 +6099,10 @@ ${e}</tr>
|
|
|
6228
6099
|
}, this;
|
|
6229
6100
|
}
|
|
6230
6101
|
lexer(e, t) {
|
|
6231
|
-
return
|
|
6102
|
+
return zi.lex(e, t ?? this.defaults);
|
|
6232
6103
|
}
|
|
6233
6104
|
parser(e, t) {
|
|
6234
|
-
return
|
|
6105
|
+
return Hi.parse(e, t ?? this.defaults);
|
|
6235
6106
|
}
|
|
6236
6107
|
parseMarkdown(e) {
|
|
6237
6108
|
return (t, n) => {
|
|
@@ -6243,16 +6114,16 @@ ${e}</tr>
|
|
|
6243
6114
|
if (typeof t > "u" || t === null) return a(/* @__PURE__ */ Error("marked(): input parameter is undefined or null"));
|
|
6244
6115
|
if (typeof t != "string") return a(/* @__PURE__ */ Error("marked(): input parameter is of type " + Object.prototype.toString.call(t) + ", string expected"));
|
|
6245
6116
|
if (i.hooks && (i.hooks.options = i, i.hooks.block = e), i.async) return (async () => {
|
|
6246
|
-
let n = i.hooks ? await i.hooks.preprocess(t) : t, r = await (i.hooks ? await i.hooks.provideLexer() : e ?
|
|
6117
|
+
let n = i.hooks ? await i.hooks.preprocess(t) : t, r = await (i.hooks ? await i.hooks.provideLexer() : e ? zi.lex : zi.lexInline)(n, i), a = i.hooks ? await i.hooks.processAllTokens(r) : r;
|
|
6247
6118
|
i.walkTokens && await Promise.all(this.walkTokens(a, i.walkTokens));
|
|
6248
|
-
let o = await (i.hooks ? await i.hooks.provideParser() : e ?
|
|
6119
|
+
let o = await (i.hooks ? await i.hooks.provideParser() : e ? Hi.parse : Hi.parseInline)(a, i);
|
|
6249
6120
|
return i.hooks ? await i.hooks.postprocess(o) : o;
|
|
6250
6121
|
})().catch(a);
|
|
6251
6122
|
try {
|
|
6252
6123
|
i.hooks && (t = i.hooks.preprocess(t));
|
|
6253
|
-
let n = (i.hooks ? i.hooks.provideLexer() : e ?
|
|
6124
|
+
let n = (i.hooks ? i.hooks.provideLexer() : e ? zi.lex : zi.lexInline)(t, i);
|
|
6254
6125
|
i.hooks && (n = i.hooks.processAllTokens(n)), i.walkTokens && this.walkTokens(n, i.walkTokens);
|
|
6255
|
-
let r = (i.hooks ? i.hooks.provideParser() : e ?
|
|
6126
|
+
let r = (i.hooks ? i.hooks.provideParser() : e ? Hi.parse : Hi.parseInline)(n, i);
|
|
6256
6127
|
return i.hooks && (r = i.hooks.postprocess(r)), r;
|
|
6257
6128
|
} catch (e) {
|
|
6258
6129
|
return a(e);
|
|
@@ -6262,7 +6133,7 @@ ${e}</tr>
|
|
|
6262
6133
|
onError(e, t) {
|
|
6263
6134
|
return (n) => {
|
|
6264
6135
|
if (n.message += "\nPlease report this to https://github.com/markedjs/marked.", e) {
|
|
6265
|
-
let e = "<p>An error occurred:</p><pre>" +
|
|
6136
|
+
let e = "<p>An error occurred:</p><pre>" + Ai(n.message + "", !0) + "</pre>";
|
|
6266
6137
|
return t ? Promise.resolve(e) : e;
|
|
6267
6138
|
}
|
|
6268
6139
|
if (t) return Promise.reject(n);
|
|
@@ -6271,16 +6142,16 @@ ${e}</tr>
|
|
|
6271
6142
|
}
|
|
6272
6143
|
}();
|
|
6273
6144
|
function $(e, t) {
|
|
6274
|
-
return
|
|
6145
|
+
return Wi.parse(e, t);
|
|
6275
6146
|
}
|
|
6276
6147
|
$.options = $.setOptions = function(e) {
|
|
6277
|
-
return
|
|
6278
|
-
}, $.getDefaults =
|
|
6279
|
-
return
|
|
6148
|
+
return Wi.setOptions(e), $.defaults = Wi.defaults, yr($.defaults), $;
|
|
6149
|
+
}, $.getDefaults = _r, $.defaults = vr, $.use = function(...e) {
|
|
6150
|
+
return Wi.use(...e), $.defaults = Wi.defaults, yr($.defaults), $;
|
|
6280
6151
|
}, $.walkTokens = function(e, t) {
|
|
6281
|
-
return
|
|
6282
|
-
}, $.parseInline =
|
|
6283
|
-
var
|
|
6152
|
+
return Wi.walkTokens(e, t);
|
|
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;
|
|
6154
|
+
var Gi = () => {
|
|
6284
6155
|
let e, t = null, n;
|
|
6285
6156
|
function r() {
|
|
6286
6157
|
if (t && !t.closed) t.focus();
|
|
@@ -6367,61 +6238,61 @@ var Ui = () => {
|
|
|
6367
6238
|
},
|
|
6368
6239
|
open: r
|
|
6369
6240
|
};
|
|
6370
|
-
},
|
|
6371
|
-
function
|
|
6372
|
-
e.removeKeyBinding(
|
|
6373
|
-
keyCode:
|
|
6241
|
+
}, Ki = 16 / 9, qi = 1280, Ji = qi / Ki, Yi = 67;
|
|
6242
|
+
function Xi({ deck: e, enabled: t, onToggle: n }) {
|
|
6243
|
+
e.removeKeyBinding(Yi), t && e.addKeyBinding({
|
|
6244
|
+
keyCode: Yi,
|
|
6374
6245
|
key: "C",
|
|
6375
6246
|
description: "Toggle code editor"
|
|
6376
6247
|
}, n);
|
|
6377
6248
|
}
|
|
6378
|
-
function
|
|
6249
|
+
function Zi(e) {
|
|
6379
6250
|
let t = e.getSlidesElement();
|
|
6380
6251
|
if (t) for (let e of t.querySelectorAll("section.stack[data-previous-indexv]")) e.removeAttribute("data-previous-indexv");
|
|
6381
6252
|
}
|
|
6382
|
-
var
|
|
6253
|
+
var Qi = /* @__PURE__ */ new Set([
|
|
6383
6254
|
" ",
|
|
6384
6255
|
"Spacebar",
|
|
6385
6256
|
"ArrowRight",
|
|
6386
6257
|
"ArrowDown",
|
|
6387
6258
|
"PageDown"
|
|
6388
|
-
]),
|
|
6259
|
+
]), $i = /* @__PURE__ */ new Set([
|
|
6389
6260
|
"ArrowLeft",
|
|
6390
6261
|
"ArrowUp",
|
|
6391
6262
|
"PageUp"
|
|
6392
6263
|
]);
|
|
6393
|
-
function
|
|
6394
|
-
return
|
|
6264
|
+
function ea(e) {
|
|
6265
|
+
return Qi.has(e.key) ? 1 : $i.has(e.key) ? -1 : 0;
|
|
6395
6266
|
}
|
|
6396
|
-
function
|
|
6397
|
-
let t = (0,
|
|
6267
|
+
function ta(e) {
|
|
6268
|
+
let t = (0, P.c)(4), n;
|
|
6398
6269
|
t[0] === Symbol.for("react.memo_cache_sentinel") ? (n = {
|
|
6399
|
-
width:
|
|
6400
|
-
height:
|
|
6270
|
+
width: qi,
|
|
6271
|
+
height: Ji
|
|
6401
6272
|
}, t[0] = n) : n = t[0];
|
|
6402
|
-
let [r, i] = (0,
|
|
6273
|
+
let [r, i] = (0, N.useState)(n), a, o;
|
|
6403
6274
|
return t[1] === e ? (a = t[2], o = t[3]) : (a = () => {
|
|
6404
6275
|
let t = e.current;
|
|
6405
6276
|
if (!t) return;
|
|
6406
6277
|
let n = new ResizeObserver((e) => {
|
|
6407
6278
|
let { width: t, height: n } = e[0].contentRect;
|
|
6408
6279
|
if (t <= 0 || n <= 0) return;
|
|
6409
|
-
let r = Math.min(t, n *
|
|
6280
|
+
let r = Math.min(t, n * Ki), a = r / Ki;
|
|
6410
6281
|
i({
|
|
6411
6282
|
width: Math.round(r),
|
|
6412
6283
|
height: Math.round(a)
|
|
6413
6284
|
});
|
|
6414
6285
|
});
|
|
6415
6286
|
return n.observe(t), () => n.disconnect();
|
|
6416
|
-
}, 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, N.useEffect)(a, o), r;
|
|
6417
6288
|
}
|
|
6418
|
-
var
|
|
6419
|
-
let t = (0,
|
|
6289
|
+
var na = (e) => {
|
|
6290
|
+
let t = (0, P.c)(6), { text: n } = e, r, i;
|
|
6420
6291
|
if (t[0] !== n) {
|
|
6421
6292
|
let e = n.split("\n");
|
|
6422
6293
|
r = "notes", i = e.map((t, n) => {
|
|
6423
6294
|
let r = n === e.length - 1;
|
|
6424
|
-
return t === "---" ? /* @__PURE__ */ (0, G.jsx)("hr", {}, n) : /* @__PURE__ */ (0, G.jsxs)(
|
|
6295
|
+
return t === "---" ? /* @__PURE__ */ (0, G.jsx)("hr", {}, n) : /* @__PURE__ */ (0, G.jsxs)(N.Fragment, { children: [t, !r && /* @__PURE__ */ (0, G.jsx)("br", {})] }, n);
|
|
6425
6296
|
}), t[0] = n, t[1] = r, t[2] = i;
|
|
6426
6297
|
} else r = t[1], i = t[2];
|
|
6427
6298
|
let a;
|
|
@@ -6430,23 +6301,23 @@ var Qi = (e) => {
|
|
|
6430
6301
|
children: i
|
|
6431
6302
|
}), t[3] = r, t[4] = i, t[5] = a) : a = t[5], a;
|
|
6432
6303
|
};
|
|
6433
|
-
function
|
|
6304
|
+
function ra(e) {
|
|
6434
6305
|
let { cells: t, cellId: n, showCodeOverrides: r, codeAvailable: i } = e;
|
|
6435
6306
|
return n == null || !i ? !1 : (t.get(n)?.showCode ?? !1) || r.has(n);
|
|
6436
6307
|
}
|
|
6437
|
-
function
|
|
6308
|
+
function ia(e) {
|
|
6438
6309
|
let { cell: t, noOutputIds: n, heldEditCellId: r, slideConfigs: i } = e;
|
|
6439
6310
|
return n.has(t.id) || t.id === r ? "skip" : i.get(t.id)?.type ?? "slide";
|
|
6440
6311
|
}
|
|
6441
|
-
function
|
|
6442
|
-
let t = (0,
|
|
6312
|
+
function aa(e) {
|
|
6313
|
+
let t = (0, P.c)(15), { activeCell: n, slideConfigs: r, noOutputIds: i } = e, a = n?.id ?? null, o;
|
|
6443
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];
|
|
6444
6315
|
let s = o, c = n != null && r.get(n.id)?.type === "skip" || s, l;
|
|
6445
6316
|
t[3] === a ? l = t[4] : (l = {
|
|
6446
6317
|
activeCellId: a,
|
|
6447
6318
|
cellId: null
|
|
6448
6319
|
}, t[3] = a, t[4] = l);
|
|
6449
|
-
let [u, d] = (0,
|
|
6320
|
+
let [u, d] = (0, N.useState)(l), f = u.cellId;
|
|
6450
6321
|
u.activeCellId === a ? s && f !== a && (f = a, d({
|
|
6451
6322
|
activeCellId: a,
|
|
6452
6323
|
cellId: f
|
|
@@ -6459,14 +6330,14 @@ function ta(e) {
|
|
|
6459
6330
|
cellId: m,
|
|
6460
6331
|
show: !0
|
|
6461
6332
|
}, t[5] = m, t[6] = h);
|
|
6462
|
-
let [g, _] = (0,
|
|
6333
|
+
let [g, _] = (0, N.useState)(h), v = g.show;
|
|
6463
6334
|
g.cellId !== m && (v = !0, _({
|
|
6464
6335
|
cellId: m,
|
|
6465
6336
|
show: !0
|
|
6466
6337
|
}));
|
|
6467
6338
|
let y;
|
|
6468
|
-
t[7] === Symbol.for("react.memo_cache_sentinel") ? (y = () => _(
|
|
6469
|
-
let b =
|
|
6339
|
+
t[7] === Symbol.for("react.memo_cache_sentinel") ? (y = () => _(oa), t[7] = y) : y = t[7];
|
|
6340
|
+
let b = j(y), x = c || p ? n ?? null : null, S;
|
|
6470
6341
|
return t[8] !== m || t[9] !== v || t[10] !== p || t[11] !== s || t[12] !== x || t[13] !== b ? (S = {
|
|
6471
6342
|
parkedPreviewCell: x,
|
|
6472
6343
|
isHeldEdit: p,
|
|
@@ -6476,53 +6347,53 @@ function ta(e) {
|
|
|
6476
6347
|
toggleHeldShowsCode: b
|
|
6477
6348
|
}, t[8] = m, t[9] = v, t[10] = p, t[11] = s, t[12] = x, t[13] = b, t[14] = S) : S = t[14], S;
|
|
6478
6349
|
}
|
|
6479
|
-
function
|
|
6350
|
+
function oa(e) {
|
|
6480
6351
|
return {
|
|
6481
6352
|
...e,
|
|
6482
6353
|
show: !e.show
|
|
6483
6354
|
};
|
|
6484
6355
|
}
|
|
6485
|
-
function
|
|
6356
|
+
function sa(e) {
|
|
6486
6357
|
switch (e ?? "center") {
|
|
6487
6358
|
case "top": return { margin: "0 20px auto" };
|
|
6488
6359
|
case "bottom": return { margin: "auto 20px 0" };
|
|
6489
6360
|
default: return { margin: "auto 20px" };
|
|
6490
6361
|
}
|
|
6491
6362
|
}
|
|
6492
|
-
var
|
|
6493
|
-
let t = (0,
|
|
6494
|
-
t[0] !== n.id || t[1] !== n.name ? (
|
|
6495
|
-
let
|
|
6496
|
-
t[3]
|
|
6497
|
-
let
|
|
6498
|
-
t[
|
|
6499
|
-
cellId:
|
|
6500
|
-
status:
|
|
6501
|
-
output:
|
|
6502
|
-
stale:
|
|
6503
|
-
}), t[
|
|
6504
|
-
let
|
|
6505
|
-
return t[
|
|
6363
|
+
var ca = (e) => {
|
|
6364
|
+
let t = (0, P.c)(14), { cell: n } = e, { execution: r, freshness: i } = p(n.id), a;
|
|
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
|
+
let o = n.id, s = r.status, c = n.output, l;
|
|
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
|
+
let u;
|
|
6369
|
+
t[6] !== n.id || t[7] !== n.output || t[8] !== r.status || t[9] !== l ? (u = /* @__PURE__ */ (0, G.jsx)(C, {
|
|
6370
|
+
cellId: o,
|
|
6371
|
+
status: s,
|
|
6372
|
+
output: c,
|
|
6373
|
+
stale: l
|
|
6374
|
+
}), t[6] = n.id, t[7] = n.output, t[8] = r.status, t[9] = l, t[10] = u) : u = t[10];
|
|
6375
|
+
let d;
|
|
6376
|
+
return t[11] !== a || t[12] !== u ? (d = /* @__PURE__ */ (0, G.jsx)("div", {
|
|
6506
6377
|
className: "flex flex-col",
|
|
6507
|
-
...
|
|
6508
|
-
children:
|
|
6509
|
-
}), t[
|
|
6510
|
-
},
|
|
6511
|
-
let t = (0,
|
|
6378
|
+
...a,
|
|
6379
|
+
children: u
|
|
6380
|
+
}), t[11] = a, t[12] = u, t[13] = d) : d = t[13], d;
|
|
6381
|
+
}, la = (e) => {
|
|
6382
|
+
let t = (0, P.c)(24), { subslide: n, resolveShowCode: r, isEditable: i, slideConfigs: a, contentStyle: o } = e, s, c, l, u, d, f;
|
|
6512
6383
|
if (t[0] !== o || t[1] !== i || t[2] !== r || t[3] !== a || t[4] !== n) {
|
|
6513
6384
|
let { slideLevel: e, cumulativeByBlock: p } = hr(n, a);
|
|
6514
6385
|
l = e;
|
|
6515
6386
|
let m = n.blocks.some((e) => e.cells.some((e) => r(e.id)));
|
|
6516
|
-
c =
|
|
6517
|
-
let n = e.cells.map((e) => r(e.id) ? i ? /* @__PURE__ */ (0, G.jsx)(cr, { cell: e }, e.id) : /* @__PURE__ */ (0, G.jsx)(lr, { cell: e }, e.id) : /* @__PURE__ */ (0, G.jsx)(
|
|
6387
|
+
c = vt, s = tr, 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, G.jsx)(cr, { cell: e }, e.id) : /* @__PURE__ */ (0, G.jsx)(lr, { cell: e }, e.id) : /* @__PURE__ */ (0, G.jsx)(ca, { cell: e }, e.id));
|
|
6518
6389
|
if (e.isFragment) {
|
|
6519
6390
|
let r = p.get(t);
|
|
6520
6391
|
return /* @__PURE__ */ (0, G.jsxs)(Jn, {
|
|
6521
6392
|
as: "div",
|
|
6522
|
-
children: [n, r && /* @__PURE__ */ (0, G.jsx)(
|
|
6393
|
+
children: [n, r && /* @__PURE__ */ (0, G.jsx)(na, { text: r })]
|
|
6523
6394
|
}, e.cells[0].id);
|
|
6524
6395
|
}
|
|
6525
|
-
return /* @__PURE__ */ (0, G.jsx)(
|
|
6396
|
+
return /* @__PURE__ */ (0, G.jsx)(N.Fragment, { children: n }, e.cells[0].id);
|
|
6526
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;
|
|
6527
6398
|
} else s = t[5], c = t[6], l = t[7], u = t[8], d = t[9], f = t[10];
|
|
6528
6399
|
let p;
|
|
@@ -6534,17 +6405,17 @@ var ia = (e) => {
|
|
|
6534
6405
|
let m;
|
|
6535
6406
|
t[15] !== s || t[16] !== p ? (m = /* @__PURE__ */ (0, G.jsx)(s, { children: p }), t[15] = s, t[16] = p, t[17] = m) : m = t[17];
|
|
6536
6407
|
let h;
|
|
6537
|
-
t[18] === l ? h = t[19] : (h = l && /* @__PURE__ */ (0, G.jsx)(
|
|
6408
|
+
t[18] === l ? h = t[19] : (h = l && /* @__PURE__ */ (0, G.jsx)(na, { text: l }), t[18] = l, t[19] = h);
|
|
6538
6409
|
let g;
|
|
6539
6410
|
return t[20] !== c || t[21] !== m || t[22] !== h ? (g = /* @__PURE__ */ (0, G.jsxs)(c, { children: [m, h] }), t[20] = c, t[21] = m, t[22] = h, t[23] = g) : g = t[23], g;
|
|
6540
6411
|
};
|
|
6541
|
-
function
|
|
6412
|
+
function ua(e) {
|
|
6542
6413
|
let { isNoOutputPreview: t, isEditable: n, showCode: r } = e;
|
|
6543
6414
|
return t && n || r;
|
|
6544
6415
|
}
|
|
6545
|
-
var
|
|
6546
|
-
let t = (0,
|
|
6547
|
-
if (
|
|
6416
|
+
var da = (e) => {
|
|
6417
|
+
let t = (0, P.c)(5), { cell: n, isNoOutputPreview: r, isEditable: i, showCode: a } = e;
|
|
6418
|
+
if (ua({
|
|
6548
6419
|
isNoOutputPreview: r,
|
|
6549
6420
|
isEditable: i,
|
|
6550
6421
|
showCode: a
|
|
@@ -6553,236 +6424,251 @@ var sa = (e) => {
|
|
|
6553
6424
|
return t[0] !== n || t[1] !== i ? (e = i ? /* @__PURE__ */ (0, G.jsx)(cr, { cell: n }) : /* @__PURE__ */ (0, G.jsx)(lr, { cell: n }), t[0] = n, t[1] = i, t[2] = e) : e = t[2], e;
|
|
6554
6425
|
}
|
|
6555
6426
|
let o;
|
|
6556
|
-
return t[3] === n ? o = t[4] : (o = /* @__PURE__ */ (0, G.jsx)(
|
|
6557
|
-
},
|
|
6558
|
-
let
|
|
6559
|
-
|
|
6560
|
-
|
|
6561
|
-
|
|
6562
|
-
|
|
6563
|
-
|
|
6564
|
-
|
|
6565
|
-
|
|
6566
|
-
let
|
|
6567
|
-
|
|
6568
|
-
|
|
6427
|
+
return t[3] === n ? o = t[4] : (o = /* @__PURE__ */ (0, G.jsx)(ca, { cell: n }), t[3] = n, t[4] = o), o;
|
|
6428
|
+
}, fa = (e) => {
|
|
6429
|
+
let t = (0, P.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, D = (0, N.useRef)(null), M = (0, N.useRef)(null), { width: re, height: F } = ta(D), ie = k() != null, [ae, oe] = (0, N.useState)(1), se;
|
|
6430
|
+
t[0] === Symbol.for("react.memo_cache_sentinel") ? (se = () => {
|
|
6431
|
+
let e = requestAnimationFrame(() => {
|
|
6432
|
+
let e = M.current;
|
|
6433
|
+
e && (e.layout(), oe(e.getScale()));
|
|
6434
|
+
});
|
|
6435
|
+
return () => cancelAnimationFrame(e);
|
|
6436
|
+
}, t[0] = se) : se = t[0];
|
|
6437
|
+
let I;
|
|
6438
|
+
t[1] !== F || t[2] !== ie || t[3] !== re ? (I = [
|
|
6439
|
+
re,
|
|
6440
|
+
F,
|
|
6441
|
+
ie
|
|
6442
|
+
], t[1] = F, t[2] = ie, t[3] = re, t[4] = I) : I = t[4], (0, N.useEffect)(se, I);
|
|
6443
|
+
let L = A(ee), ce = A(te).kind, le = A(gr), ue = ce !== "wasm" || le, de;
|
|
6444
|
+
t[5] !== L || t[6] !== ce ? (de = L || !g(ce) ? [] : [Gi], t[5] = L, t[6] = ce, t[7] = de) : de = t[7];
|
|
6445
|
+
let fe = de, [pe, me] = (0, N.useState)(pa), he = ne(), ge;
|
|
6446
|
+
t[8] === he ? ge = t[9] : (ge = !O() && he, t[8] = he, t[9] = ge);
|
|
6447
|
+
let _e = ge, ve;
|
|
6448
|
+
t[10] === L ? ve = t[11] : (ve = b(L, window.location.search), t[10] = L, t[11] = ve);
|
|
6449
|
+
let R = !ve && _e, ye = h == null ? void 0 : o[h], be;
|
|
6450
|
+
t[12] !== ye || t[13] !== o ? (be = ye ?? o.at(0), t[12] = ye, t[13] = o, t[14] = be) : be = t[14];
|
|
6451
|
+
let xe = be, Se;
|
|
6452
|
+
t[15] !== ye || t[16] !== s.cells || t[17] !== p ? (Se = {
|
|
6453
|
+
activeCell: ye,
|
|
6569
6454
|
slideConfigs: s.cells,
|
|
6570
|
-
noOutputIds:
|
|
6571
|
-
},
|
|
6572
|
-
let { parkedPreviewCell: z, isHeldEdit:
|
|
6573
|
-
|
|
6455
|
+
noOutputIds: p
|
|
6456
|
+
}, t[15] = ye, t[16] = s.cells, t[17] = p, t[18] = Se) : Se = t[18];
|
|
6457
|
+
let { parkedPreviewCell: z, isHeldEdit: B, isNoOutputPreview: Ce, heldEditCellId: we, heldShowsCode: Te, toggleHeldShowsCode: Ee } = aa(Se), De;
|
|
6458
|
+
t[19] !== _e || t[20] !== s.cells || t[21] !== pe ? (De = (e) => ra({
|
|
6574
6459
|
cells: s.cells,
|
|
6575
6460
|
cellId: e,
|
|
6576
|
-
showCodeOverrides:
|
|
6577
|
-
codeAvailable:
|
|
6578
|
-
}),
|
|
6579
|
-
let
|
|
6580
|
-
|
|
6581
|
-
let De = Ee, Oe;
|
|
6582
|
-
n[23] !== V || n[24] !== me || n[25] !== s.cells ? (Oe = me && V != null && (s.cells.get(V)?.showCode ?? !1), n[23] = V, n[24] = me, n[25] = s.cells, n[26] = Oe) : Oe = n[26];
|
|
6461
|
+
showCodeOverrides: pe,
|
|
6462
|
+
codeAvailable: _e
|
|
6463
|
+
}), t[19] = _e, t[20] = s.cells, t[21] = pe, t[22] = De) : De = t[22];
|
|
6464
|
+
let V = De, H = ye?.id ?? xe?.id, Oe;
|
|
6465
|
+
t[23] !== H || t[24] !== Te || t[25] !== B || t[26] !== V ? (Oe = B ? Te : V(H), t[23] = H, t[24] = Te, t[25] = B, t[26] = V, t[27] = Oe) : Oe = t[27];
|
|
6583
6466
|
let ke = Oe, Ae;
|
|
6584
|
-
|
|
6467
|
+
t[28] !== H || t[29] !== _e || t[30] !== s.cells ? (Ae = _e && H != null && (s.cells.get(H)?.showCode ?? !1), t[28] = H, t[29] = _e, t[30] = s.cells, t[31] = Ae) : Ae = t[31];
|
|
6468
|
+
let je = Ae, Me;
|
|
6469
|
+
t[32] !== we || t[33] !== s.cells || t[34] !== p ? (Me = (e) => ia({
|
|
6585
6470
|
cell: e,
|
|
6586
|
-
noOutputIds:
|
|
6587
|
-
heldEditCellId:
|
|
6471
|
+
noOutputIds: p,
|
|
6472
|
+
heldEditCellId: we,
|
|
6588
6473
|
slideConfigs: s.cells
|
|
6589
|
-
}),
|
|
6590
|
-
let
|
|
6591
|
-
|
|
6474
|
+
}), t[32] = we, t[33] = s.cells, t[34] = p, t[35] = Me) : Me = t[35];
|
|
6475
|
+
let Ne;
|
|
6476
|
+
t[36] !== o || t[37] !== Me ? (Ne = nr({
|
|
6592
6477
|
cells: o,
|
|
6593
|
-
getType:
|
|
6594
|
-
}),
|
|
6595
|
-
let
|
|
6596
|
-
|
|
6597
|
-
composition:
|
|
6478
|
+
getType: Me
|
|
6479
|
+
}), t[36] = o, t[37] = Me, t[38] = Ne) : Ne = t[38];
|
|
6480
|
+
let Pe = Ne, Fe;
|
|
6481
|
+
t[39] !== Pe || t[40] !== o ? (Fe = rr({
|
|
6482
|
+
composition: Pe,
|
|
6598
6483
|
cells: o,
|
|
6599
|
-
getId:
|
|
6600
|
-
}),
|
|
6601
|
-
let { cellToTarget:
|
|
6602
|
-
|
|
6603
|
-
let
|
|
6604
|
-
|
|
6605
|
-
let
|
|
6606
|
-
|
|
6484
|
+
getId: ma
|
|
6485
|
+
}), t[39] = Pe, t[40] = o, t[41] = Fe) : Fe = t[41];
|
|
6486
|
+
let { cellToTarget: Ie, targetToCellIndex: U } = Fe, Le = s.deck?.transition ?? "slide", Re = s.deck?.verticalAlign, ze;
|
|
6487
|
+
t[42] === Re ? ze = t[43] : (ze = sa(Re), t[42] = Re, t[43] = ze);
|
|
6488
|
+
let Be = ze, Ve;
|
|
6489
|
+
t[44] === Symbol.for("react.memo_cache_sentinel") ? (Ve = v(window.location.href), t[44] = Ve) : Ve = t[44];
|
|
6490
|
+
let He = Ve, Ue;
|
|
6491
|
+
t[45] === Le ? Ue = t[46] : (Ue = {
|
|
6607
6492
|
embedded: !0,
|
|
6608
|
-
width:
|
|
6609
|
-
height:
|
|
6493
|
+
width: qi,
|
|
6494
|
+
height: Ji,
|
|
6610
6495
|
center: !1,
|
|
6611
|
-
minScale:
|
|
6496
|
+
minScale: 0,
|
|
6612
6497
|
maxScale: 2,
|
|
6613
|
-
transition:
|
|
6614
|
-
keyboardCondition:
|
|
6615
|
-
url:
|
|
6498
|
+
transition: Le,
|
|
6499
|
+
keyboardCondition: ha,
|
|
6500
|
+
url: He,
|
|
6616
6501
|
scrollActivationWidth: 0
|
|
6617
|
-
},
|
|
6618
|
-
let
|
|
6619
|
-
|
|
6620
|
-
if (
|
|
6621
|
-
if (!
|
|
6622
|
-
window.dispatchEvent(new HashChangeEvent("hashchange")),
|
|
6502
|
+
}, t[45] = Le, t[46] = Ue);
|
|
6503
|
+
let We = Ue, Ge;
|
|
6504
|
+
t[47] !== h || t[48] !== ue || t[49] !== Ie || t[50] !== o ? (Ge = (e) => {
|
|
6505
|
+
if (h == null && window.location.hash.startsWith("#/")) {
|
|
6506
|
+
if (!ue) return;
|
|
6507
|
+
window.dispatchEvent(new HashChangeEvent("hashchange")), Zi(e);
|
|
6623
6508
|
return;
|
|
6624
6509
|
}
|
|
6625
6510
|
let t = or({
|
|
6626
|
-
activeIndex:
|
|
6511
|
+
activeIndex: h,
|
|
6627
6512
|
cells: o,
|
|
6628
|
-
cellToTarget:
|
|
6629
|
-
getId:
|
|
6513
|
+
cellToTarget: Ie,
|
|
6514
|
+
getId: ga
|
|
6630
6515
|
}), n = t && sr(e.getIndices(), t);
|
|
6631
|
-
n && (e.slide(n.h, n.v, n.f),
|
|
6632
|
-
},
|
|
6633
|
-
let
|
|
6634
|
-
|
|
6635
|
-
let e =
|
|
6636
|
-
e != null &&
|
|
6637
|
-
},
|
|
6638
|
-
let
|
|
6639
|
-
|
|
6640
|
-
|
|
6641
|
-
|
|
6642
|
-
|
|
6516
|
+
n && (e.slide(n.h, n.v, n.f), Zi(e));
|
|
6517
|
+
}, t[47] = h, t[48] = ue, t[49] = Ie, t[50] = o, t[51] = Ge) : Ge = t[51];
|
|
6518
|
+
let Ke = j(Ge), qe;
|
|
6519
|
+
t[52] === Ke ? qe = t[53] : (qe = () => {
|
|
6520
|
+
let e = M.current;
|
|
6521
|
+
e != null && Ke(e);
|
|
6522
|
+
}, t[52] = Ke, t[53] = qe);
|
|
6523
|
+
let Je;
|
|
6524
|
+
t[54] !== h || t[55] !== ue || t[56] !== Ie || t[57] !== Ke || t[58] !== o ? (Je = [
|
|
6525
|
+
h,
|
|
6526
|
+
ue,
|
|
6527
|
+
Ie,
|
|
6643
6528
|
o,
|
|
6644
|
-
|
|
6645
|
-
],
|
|
6646
|
-
let
|
|
6647
|
-
|
|
6648
|
-
|
|
6649
|
-
|
|
6650
|
-
|
|
6651
|
-
|
|
6652
|
-
|
|
6653
|
-
|
|
6654
|
-
|
|
6655
|
-
|
|
6656
|
-
|
|
6657
|
-
}
|
|
6658
|
-
}, n[57] = V, n[58] = ke, n[59] = be, n[60] = Ce, n[61] = Ke) : Ke = n[61];
|
|
6659
|
-
let qe = D(Ke), Je, Ye;
|
|
6660
|
-
n[62] !== R || n[63] !== qe ? (Je = () => {
|
|
6661
|
-
let e = P.current;
|
|
6662
|
-
return e && Ki({
|
|
6529
|
+
Ke
|
|
6530
|
+
], t[54] = h, t[55] = ue, t[56] = Ie, t[57] = Ke, t[58] = o, t[59] = Je) : Je = t[59], (0, N.useEffect)(qe, Je);
|
|
6531
|
+
let Ye;
|
|
6532
|
+
t[60] !== H || t[61] !== je || t[62] !== B || t[63] !== Ee ? (Ye = () => {
|
|
6533
|
+
H == null || je || (B ? Ee() : (0, N.startTransition)(() => me((e) => {
|
|
6534
|
+
let t = new Set(e);
|
|
6535
|
+
return t.has(H) ? t.delete(H) : t.add(H), t;
|
|
6536
|
+
})));
|
|
6537
|
+
}, t[60] = H, t[61] = je, t[62] = B, t[63] = Ee, t[64] = Ye) : Ye = t[64];
|
|
6538
|
+
let W = j(Ye), Xe, Ze;
|
|
6539
|
+
t[65] !== R || t[66] !== W ? (Xe = () => {
|
|
6540
|
+
let e = M.current;
|
|
6541
|
+
return e && Xi({
|
|
6663
6542
|
deck: e,
|
|
6664
6543
|
enabled: R,
|
|
6665
|
-
onToggle:
|
|
6544
|
+
onToggle: W
|
|
6666
6545
|
}), () => {
|
|
6667
|
-
|
|
6546
|
+
M.current?.removeKeyBinding(Yi);
|
|
6668
6547
|
};
|
|
6669
|
-
},
|
|
6670
|
-
let
|
|
6671
|
-
|
|
6548
|
+
}, Ze = [R, W], t[65] = R, t[66] = W, t[67] = Xe, t[68] = Ze) : (Xe = t[67], Ze = t[68]), (0, N.useEffect)(Xe, Ze);
|
|
6549
|
+
let Qe;
|
|
6550
|
+
t[69] !== x || t[70] !== z || t[71] !== U ? (Qe = (e) => {
|
|
6672
6551
|
if (z != null) return;
|
|
6673
|
-
let t = ir(
|
|
6674
|
-
t != null &&
|
|
6675
|
-
},
|
|
6676
|
-
let
|
|
6677
|
-
|
|
6678
|
-
let e =
|
|
6679
|
-
e &&
|
|
6680
|
-
},
|
|
6681
|
-
let
|
|
6682
|
-
|
|
6683
|
-
|
|
6552
|
+
let t = ir(U, e.getIndices());
|
|
6553
|
+
t != null && x?.(t);
|
|
6554
|
+
}, t[69] = x, t[70] = z, t[71] = U, t[72] = Qe) : Qe = t[72];
|
|
6555
|
+
let $e = j(Qe), et;
|
|
6556
|
+
t[73] === $e ? et = t[74] : (et = () => {
|
|
6557
|
+
let e = M.current;
|
|
6558
|
+
e && $e(e);
|
|
6559
|
+
}, t[73] = $e, t[74] = et);
|
|
6560
|
+
let tt = j(et), nt;
|
|
6561
|
+
t[75] !== ue || t[76] !== R || t[77] !== Ke || t[78] !== $e || t[79] !== W ? (nt = (e) => {
|
|
6562
|
+
oe(e.getScale()), Ke(e), ue && $e(e), Xi({
|
|
6684
6563
|
deck: e,
|
|
6685
6564
|
enabled: R,
|
|
6686
|
-
onToggle:
|
|
6565
|
+
onToggle: W
|
|
6687
6566
|
});
|
|
6688
6567
|
let t = e.getSlidesElement()?.closest(".reveal");
|
|
6689
6568
|
t instanceof HTMLElement && (t.tabIndex = -1, t.focus({ preventScroll: !0 }));
|
|
6690
|
-
},
|
|
6691
|
-
let
|
|
6692
|
-
|
|
6693
|
-
if (!z ||
|
|
6694
|
-
let t =
|
|
6569
|
+
}, t[75] = ue, t[76] = R, t[77] = Ke, t[78] = $e, t[79] = W, t[80] = nt) : nt = t[80];
|
|
6570
|
+
let rt = j(nt), it;
|
|
6571
|
+
t[81] !== h || t[82] !== x || t[83] !== z || t[84] !== o ? (it = (e) => {
|
|
6572
|
+
if (!z || h == null || i.fromInput(e)) return;
|
|
6573
|
+
let t = ea(e);
|
|
6695
6574
|
if (t === 0) return;
|
|
6696
6575
|
e.preventDefault(), e.stopPropagation();
|
|
6697
|
-
let n =
|
|
6698
|
-
n < 0 || n >= o.length ||
|
|
6699
|
-
},
|
|
6700
|
-
let
|
|
6701
|
-
|
|
6702
|
-
|
|
6703
|
-
},
|
|
6704
|
-
let
|
|
6705
|
-
|
|
6706
|
-
let
|
|
6707
|
-
|
|
6708
|
-
let
|
|
6709
|
-
|
|
6710
|
-
isNoOutputPreview:
|
|
6711
|
-
isEditable:
|
|
6712
|
-
showCode:
|
|
6713
|
-
}),
|
|
6714
|
-
let
|
|
6715
|
-
|
|
6716
|
-
width:
|
|
6717
|
-
height:
|
|
6718
|
-
},
|
|
6719
|
-
let
|
|
6720
|
-
if (
|
|
6576
|
+
let n = h + t;
|
|
6577
|
+
n < 0 || n >= o.length || x?.(n);
|
|
6578
|
+
}, t[81] = h, t[82] = x, t[83] = z, t[84] = o, t[85] = it) : it = t[85];
|
|
6579
|
+
let at = j(it), ot;
|
|
6580
|
+
t[86] === tt ? ot = t[87] : (ot = () => {
|
|
6581
|
+
tt();
|
|
6582
|
+
}, t[86] = tt, t[87] = ot);
|
|
6583
|
+
let st = j(ot), ct;
|
|
6584
|
+
t[88] === Symbol.for("react.memo_cache_sentinel") ? (ct = { capture: !0 }, t[88] = ct) : ct = t[88], r(document, "keydown", at, ct);
|
|
6585
|
+
let lt = B ? null : Ce ? "Hidden as there is no output" : "Skipped in presentation", ut;
|
|
6586
|
+
t[89] !== Te || t[90] !== B || t[91] !== z?.id || t[92] !== V ? (ut = B ? Te : V(z?.id), t[89] = Te, t[90] = B, t[91] = z?.id, t[92] = V, t[93] = ut) : ut = t[93];
|
|
6587
|
+
let dt = ut, ft;
|
|
6588
|
+
t[94] !== E || t[95] !== Ce || t[96] !== dt ? (ft = ua({
|
|
6589
|
+
isNoOutputPreview: Ce,
|
|
6590
|
+
isEditable: E,
|
|
6591
|
+
showCode: dt
|
|
6592
|
+
}), t[94] = E, t[95] = Ce, t[96] = dt, t[97] = ft) : ft = t[97];
|
|
6593
|
+
let pt = ft, mt;
|
|
6594
|
+
t[98] !== F || t[99] !== re ? (mt = {
|
|
6595
|
+
width: re,
|
|
6596
|
+
height: F
|
|
6597
|
+
}, t[98] = F, t[99] = re, t[100] = mt) : mt = t[100];
|
|
6598
|
+
let gt;
|
|
6599
|
+
if (t[101] !== Pe.stacks || t[102] !== E || t[103] !== s.cells || t[104] !== V || t[105] !== Be) {
|
|
6721
6600
|
let e;
|
|
6722
|
-
|
|
6601
|
+
t[107] !== E || t[108] !== s.cells || t[109] !== V || t[110] !== Be ? (e = (e, t) => e.subslides.length === 1 ? /* @__PURE__ */ (0, G.jsx)(la, {
|
|
6723
6602
|
subslide: e.subslides[0],
|
|
6724
|
-
resolveShowCode:
|
|
6725
|
-
isEditable:
|
|
6603
|
+
resolveShowCode: V,
|
|
6604
|
+
isEditable: E,
|
|
6726
6605
|
slideConfigs: s.cells,
|
|
6727
|
-
contentStyle:
|
|
6728
|
-
}, t) : /* @__PURE__ */ (0, G.jsx)(
|
|
6606
|
+
contentStyle: Be
|
|
6607
|
+
}, t) : /* @__PURE__ */ (0, G.jsx)(yt, { children: e.subslides.map((e, t) => /* @__PURE__ */ (0, G.jsx)(la, {
|
|
6729
6608
|
subslide: e,
|
|
6730
|
-
resolveShowCode:
|
|
6731
|
-
isEditable:
|
|
6609
|
+
resolveShowCode: V,
|
|
6610
|
+
isEditable: E,
|
|
6732
6611
|
slideConfigs: s.cells,
|
|
6733
|
-
contentStyle:
|
|
6734
|
-
}, t)) }, t),
|
|
6735
|
-
} else
|
|
6736
|
-
let
|
|
6737
|
-
|
|
6738
|
-
deckRef:
|
|
6612
|
+
contentStyle: Be
|
|
6613
|
+
}, t)) }, t), t[107] = E, t[108] = s.cells, t[109] = V, t[110] = Be, t[111] = e) : e = t[111], gt = Pe.stacks.map(e), t[101] = Pe.stacks, t[102] = E, t[103] = s.cells, t[104] = V, t[105] = Be, t[106] = gt;
|
|
6614
|
+
} else gt = t[106];
|
|
6615
|
+
let _t;
|
|
6616
|
+
t[112] !== fe || t[113] !== rt || t[114] !== st || t[115] !== tt || t[116] !== We || t[117] !== gt ? (_t = /* @__PURE__ */ (0, G.jsx)(ht, {
|
|
6617
|
+
deckRef: M,
|
|
6739
6618
|
className: "aspect-video w-full overflow-hidden border rounded bg-background mo-slides-theme prose-slides focus:outline-hidden focus-visible:outline-hidden",
|
|
6740
|
-
config:
|
|
6741
|
-
onReady:
|
|
6742
|
-
onSlideChange:
|
|
6743
|
-
onFragmentShown:
|
|
6744
|
-
onFragmentHidden:
|
|
6745
|
-
plugins:
|
|
6746
|
-
children:
|
|
6747
|
-
}),
|
|
6748
|
-
let
|
|
6749
|
-
|
|
6619
|
+
config: We,
|
|
6620
|
+
onReady: rt,
|
|
6621
|
+
onSlideChange: st,
|
|
6622
|
+
onFragmentShown: tt,
|
|
6623
|
+
onFragmentHidden: tt,
|
|
6624
|
+
plugins: fe,
|
|
6625
|
+
children: gt
|
|
6626
|
+
}), t[112] = fe, t[113] = rt, t[114] = st, t[115] = tt, t[116] = We, t[117] = gt, t[118] = _t) : _t = t[118];
|
|
6627
|
+
let K;
|
|
6628
|
+
t[119] !== E || t[120] !== Ce || t[121] !== z || t[122] !== lt || t[123] !== dt || t[124] !== pt || t[125] !== Be || t[126] !== ae ? (K = z && /* @__PURE__ */ (0, G.jsxs)("div", {
|
|
6750
6629
|
className: "absolute inset-0 z-10 border rounded bg-background flex flex-col overflow-hidden",
|
|
6751
|
-
"aria-label":
|
|
6752
|
-
children: [
|
|
6630
|
+
"aria-label": lt ?? void 0,
|
|
6631
|
+
children: [lt && /* @__PURE__ */ (0, G.jsxs)("div", {
|
|
6753
6632
|
className: "flex items-center gap-1.5 px-3 py-1.5 text-xs text-muted-foreground border-b bg-muted/40",
|
|
6754
|
-
children: [/* @__PURE__ */ (0, G.jsx)(
|
|
6633
|
+
children: [/* @__PURE__ */ (0, G.jsx)(f, { className: "h-3.5 w-3.5" }), /* @__PURE__ */ (0, G.jsx)("span", { children: lt })]
|
|
6755
6634
|
}), /* @__PURE__ */ (0, G.jsx)("div", {
|
|
6756
|
-
className: "
|
|
6757
|
-
|
|
6758
|
-
|
|
6759
|
-
|
|
6760
|
-
|
|
6635
|
+
className: "reveal mo-slides-theme prose-slides absolute left-1/2 top-1/2",
|
|
6636
|
+
"data-testid": "slide-preview-canvas",
|
|
6637
|
+
style: {
|
|
6638
|
+
position: "absolute",
|
|
6639
|
+
width: qi,
|
|
6640
|
+
height: Ji,
|
|
6641
|
+
transform: `translate(-50%, -50%) scale(${ae})`
|
|
6642
|
+
},
|
|
6643
|
+
children: /* @__PURE__ */ (0, G.jsx)(tr, { children: /* @__PURE__ */ (0, G.jsx)("div", {
|
|
6644
|
+
className: pt ? "mo-slide-content flex flex-col gap-3" : "mo-slide-content",
|
|
6645
|
+
style: Be,
|
|
6646
|
+
children: /* @__PURE__ */ (0, G.jsx)(da, {
|
|
6761
6647
|
cell: z,
|
|
6762
|
-
isNoOutputPreview:
|
|
6763
|
-
isEditable:
|
|
6764
|
-
showCode:
|
|
6648
|
+
isNoOutputPreview: Ce,
|
|
6649
|
+
isEditable: E,
|
|
6650
|
+
showCode: dt
|
|
6765
6651
|
})
|
|
6766
|
-
})
|
|
6652
|
+
}) })
|
|
6767
6653
|
})]
|
|
6768
|
-
}, z.id),
|
|
6769
|
-
let
|
|
6770
|
-
|
|
6771
|
-
content:
|
|
6654
|
+
}, z.id), t[119] = E, t[120] = Ce, t[121] = z, t[122] = lt, t[123] = dt, t[124] = pt, t[125] = Be, t[126] = ae, t[127] = K) : K = t[127];
|
|
6655
|
+
let vt;
|
|
6656
|
+
t[128] !== ke || t[129] !== je || t[130] !== R || t[131] !== W ? (vt = R && /* @__PURE__ */ (0, G.jsx)(l, {
|
|
6657
|
+
content: je ? "Code is always shown for this slide" : ke ? "Hide code (C)" : "Show code (C)",
|
|
6772
6658
|
children: /* @__PURE__ */ (0, G.jsx)(a, {
|
|
6773
6659
|
"data-testid": "marimo-plugin-slides-toggle-code",
|
|
6774
6660
|
variant: "ghost",
|
|
6775
6661
|
size: "icon",
|
|
6776
|
-
className:
|
|
6777
|
-
"aria-pressed":
|
|
6778
|
-
"aria-disabled":
|
|
6779
|
-
"aria-label":
|
|
6780
|
-
onClick:
|
|
6781
|
-
children: /* @__PURE__ */ (0, G.jsx)(
|
|
6662
|
+
className: n("text-muted-foreground h-7 w-7", ke && "text-foreground bg-muted", je && "opacity-50 cursor-not-allowed"),
|
|
6663
|
+
"aria-pressed": ke,
|
|
6664
|
+
"aria-disabled": je,
|
|
6665
|
+
"aria-label": je ? "Code always shown" : ke ? "Hide code" : "Show code",
|
|
6666
|
+
onClick: W,
|
|
6667
|
+
children: /* @__PURE__ */ (0, G.jsx)(d, { className: "h-4 w-4" })
|
|
6782
6668
|
})
|
|
6783
|
-
}),
|
|
6784
|
-
let
|
|
6785
|
-
|
|
6669
|
+
}), t[128] = ke, t[129] = je, t[130] = R, t[131] = W, t[132] = vt) : vt = t[132];
|
|
6670
|
+
let bt;
|
|
6671
|
+
t[133] === Symbol.for("react.memo_cache_sentinel") ? (bt = /* @__PURE__ */ (0, G.jsx)(l, {
|
|
6786
6672
|
content: "Fullscreen (F)",
|
|
6787
6673
|
children: /* @__PURE__ */ (0, G.jsx)(a, {
|
|
6788
6674
|
"data-testid": "marimo-plugin-slides-fullscreen",
|
|
@@ -6791,57 +6677,57 @@ var sa = (e) => {
|
|
|
6791
6677
|
className: "text-muted-foreground h-7 w-7",
|
|
6792
6678
|
"aria-label": "Enter fullscreen",
|
|
6793
6679
|
onClick: () => {
|
|
6794
|
-
|
|
6680
|
+
M.current?.getViewportElement()?.requestFullscreen().catch(_a);
|
|
6795
6681
|
},
|
|
6796
|
-
children: /* @__PURE__ */ (0, G.jsx)(
|
|
6682
|
+
children: /* @__PURE__ */ (0, G.jsx)(u, { className: "h-4 w-4" })
|
|
6797
6683
|
})
|
|
6798
|
-
}),
|
|
6799
|
-
let
|
|
6800
|
-
|
|
6684
|
+
}), t[133] = bt) : bt = t[133];
|
|
6685
|
+
let xt;
|
|
6686
|
+
t[134] === vt ? xt = t[135] : (xt = /* @__PURE__ */ (0, G.jsxs)("div", {
|
|
6801
6687
|
className: "absolute top-2 right-2 z-20 opacity-0 group-hover:opacity-70 text-muted-foreground transition-opacity",
|
|
6802
|
-
children: [
|
|
6803
|
-
}),
|
|
6804
|
-
let
|
|
6805
|
-
|
|
6806
|
-
ref:
|
|
6688
|
+
children: [vt, bt]
|
|
6689
|
+
}), t[134] = vt, t[135] = xt);
|
|
6690
|
+
let St;
|
|
6691
|
+
t[136] !== mt || t[137] !== _t || t[138] !== K || t[139] !== xt ? (St = /* @__PURE__ */ (0, G.jsx)("div", {
|
|
6692
|
+
ref: D,
|
|
6807
6693
|
className: "h-full w-full min-w-0 flex items-center justify-center overflow-hidden",
|
|
6808
6694
|
children: /* @__PURE__ */ (0, G.jsxs)("div", {
|
|
6809
6695
|
className: "group relative",
|
|
6810
|
-
style:
|
|
6696
|
+
style: mt,
|
|
6811
6697
|
children: [
|
|
6812
|
-
|
|
6813
|
-
|
|
6814
|
-
|
|
6698
|
+
_t,
|
|
6699
|
+
K,
|
|
6700
|
+
xt
|
|
6815
6701
|
]
|
|
6816
6702
|
})
|
|
6817
|
-
}),
|
|
6818
|
-
let q =
|
|
6703
|
+
}), t[136] = mt, t[137] = _t, t[138] = K, t[139] = xt, t[140] = St) : St = t[140];
|
|
6704
|
+
let q = St;
|
|
6819
6705
|
if (C === "read") {
|
|
6820
6706
|
let e;
|
|
6821
|
-
return
|
|
6707
|
+
return t[141] === q ? e = t[142] : (e = /* @__PURE__ */ (0, G.jsx)("div", {
|
|
6822
6708
|
className: "flex-1 min-w-0 flex flex-row gap-3",
|
|
6823
6709
|
children: q
|
|
6824
|
-
}),
|
|
6710
|
+
}), t[141] = q, t[142] = e), e;
|
|
6825
6711
|
}
|
|
6826
|
-
let
|
|
6827
|
-
|
|
6712
|
+
let J;
|
|
6713
|
+
t[143] === q ? J = t[144] : (J = /* @__PURE__ */ (0, G.jsx)(m, {
|
|
6828
6714
|
defaultSize: 92,
|
|
6829
6715
|
minSize: 60,
|
|
6830
6716
|
children: q
|
|
6831
|
-
}),
|
|
6832
|
-
let
|
|
6833
|
-
|
|
6717
|
+
}), t[143] = q, t[144] = J);
|
|
6718
|
+
let Ct;
|
|
6719
|
+
t[145] === Symbol.for("react.memo_cache_sentinel") ? (Ct = {
|
|
6834
6720
|
coarse: 12,
|
|
6835
6721
|
fine: 4
|
|
6836
|
-
},
|
|
6837
|
-
let
|
|
6838
|
-
|
|
6722
|
+
}, t[145] = Ct) : Ct = t[145];
|
|
6723
|
+
let Y;
|
|
6724
|
+
t[146] === ie ? Y = t[147] : (Y = /* @__PURE__ */ (0, G.jsx)(y, {
|
|
6839
6725
|
className: "mo-slides-notes-resize",
|
|
6840
|
-
hitAreaMargins:
|
|
6841
|
-
disabled:
|
|
6842
|
-
}),
|
|
6843
|
-
let
|
|
6844
|
-
|
|
6726
|
+
hitAreaMargins: Ct,
|
|
6727
|
+
disabled: ie
|
|
6728
|
+
}), t[146] = ie, t[147] = Y);
|
|
6729
|
+
let wt = xe?.id, X;
|
|
6730
|
+
t[148] !== s || t[149] !== c || t[150] !== wt ? (X = /* @__PURE__ */ (0, G.jsx)(m, {
|
|
6845
6731
|
defaultSize: 10,
|
|
6846
6732
|
minSize: 4,
|
|
6847
6733
|
collapsible: !0,
|
|
@@ -6849,47 +6735,47 @@ var sa = (e) => {
|
|
|
6849
6735
|
children: /* @__PURE__ */ (0, G.jsx)(dr, {
|
|
6850
6736
|
layout: s,
|
|
6851
6737
|
setLayout: c,
|
|
6852
|
-
cellId:
|
|
6738
|
+
cellId: wt
|
|
6853
6739
|
})
|
|
6854
|
-
}),
|
|
6855
|
-
let
|
|
6856
|
-
|
|
6740
|
+
}), t[148] = s, t[149] = c, t[150] = wt, t[151] = X) : X = t[151];
|
|
6741
|
+
let Tt;
|
|
6742
|
+
t[152] !== J || t[153] !== Y || t[154] !== X ? (Tt = /* @__PURE__ */ (0, G.jsxs)(S, {
|
|
6857
6743
|
direction: "vertical",
|
|
6858
6744
|
autoSaveId: "marimo:slides:notes-panel",
|
|
6859
6745
|
className: "flex-1 min-w-0",
|
|
6860
6746
|
children: [
|
|
6861
|
-
bt,
|
|
6862
6747
|
J,
|
|
6863
|
-
Y
|
|
6748
|
+
Y,
|
|
6749
|
+
X
|
|
6864
6750
|
]
|
|
6865
|
-
}),
|
|
6866
|
-
let
|
|
6867
|
-
|
|
6868
|
-
configWidth:
|
|
6751
|
+
}), t[152] = J, t[153] = Y, t[154] = X, t[155] = Tt) : Tt = t[155];
|
|
6752
|
+
let Et;
|
|
6753
|
+
t[156] !== xe || t[157] !== w || t[158] !== s || t[159] !== c ? (Et = /* @__PURE__ */ (0, G.jsx)(_, {
|
|
6754
|
+
configWidth: w,
|
|
6869
6755
|
layout: s,
|
|
6870
6756
|
setLayout: c,
|
|
6871
|
-
activeConfigCell:
|
|
6872
|
-
}),
|
|
6873
|
-
let
|
|
6874
|
-
return
|
|
6757
|
+
activeConfigCell: xe
|
|
6758
|
+
}), t[156] = xe, t[157] = w, t[158] = s, t[159] = c, t[160] = Et) : Et = t[160];
|
|
6759
|
+
let Dt;
|
|
6760
|
+
return t[161] !== Tt || t[162] !== Et ? (Dt = /* @__PURE__ */ (0, G.jsxs)("div", {
|
|
6875
6761
|
className: "flex-1 min-w-0 flex flex-row gap-3",
|
|
6876
|
-
children: [
|
|
6877
|
-
}),
|
|
6762
|
+
children: [Tt, Et]
|
|
6763
|
+
}), t[161] = Tt, t[162] = Et, t[163] = Dt) : Dt = t[163], Dt;
|
|
6878
6764
|
};
|
|
6879
|
-
function
|
|
6765
|
+
function pa() {
|
|
6880
6766
|
return /* @__PURE__ */ new Set();
|
|
6881
6767
|
}
|
|
6882
|
-
function
|
|
6768
|
+
function ma(e) {
|
|
6883
6769
|
return e.id;
|
|
6884
6770
|
}
|
|
6885
|
-
function
|
|
6771
|
+
function ha(e) {
|
|
6886
6772
|
return !i.fromInput(e);
|
|
6887
6773
|
}
|
|
6888
|
-
function
|
|
6774
|
+
function ga(e) {
|
|
6889
6775
|
return e.id;
|
|
6890
6776
|
}
|
|
6891
|
-
function
|
|
6892
|
-
|
|
6777
|
+
function _a(e) {
|
|
6778
|
+
t.error("Failed to request fullscreen", e);
|
|
6893
6779
|
}
|
|
6894
6780
|
//#endregion
|
|
6895
|
-
export {
|
|
6781
|
+
export { ca as CellOutputBlock, ia as deckSlideType, fa as default, ua as parkedRendersSource, ra as shouldShowCode, Xi as syncCodeToggleKeyBinding, aa as useParkedPreview };
|