@marimo-team/frontend 0.23.10-dev22 → 0.23.10-dev24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (113) hide show
  1. package/dist/assets/{CellStatus-DMwpAXMZ.js → CellStatus-Bz67hL1K.js} +1 -1
  2. package/dist/assets/{ConnectedDataExplorerComponent-LDEBEgrJ.js → ConnectedDataExplorerComponent-DcTyhTMW.js} +1 -1
  3. package/dist/assets/{ImperativeModal-BeQmePpG.js → ImperativeModal-CYpBrCHJ.js} +1 -1
  4. package/dist/assets/{JsonOutput-B70lHHvX.js → JsonOutput-Hk49rzGl.js} +2 -2
  5. package/dist/assets/{LazyAnyLanguageCodeMirror-Bv7Emsba.js → LazyAnyLanguageCodeMirror-CaR5QYb0.js} +2 -2
  6. package/dist/assets/{MarimoErrorOutput-BQo8RTib.js → MarimoErrorOutput-DxKFtfTA.js} +1 -1
  7. package/dist/assets/{RSPContexts-Clr6RnG2.js → RSPContexts-K8MLzM3F.js} +1 -1
  8. package/dist/assets/{RenderHTML-DTHZ0W_b.js → RenderHTML-DMfo8SsK.js} +1 -1
  9. package/dist/assets/{RunButton-eAKy_Bh8.js → RunButton-CFOfNbXp.js} +1 -1
  10. package/dist/assets/{add-cell-with-ai-CxjV-UXz.js → add-cell-with-ai-BKuyHjk4.js} +1 -1
  11. package/dist/assets/{add-connection-dialog-BHZQ8B7f.js → add-connection-dialog-BGbZ16ED.js} +1 -1
  12. package/dist/assets/{agent-panel-CSht0CWB.js → agent-panel-BBLOq5h0.js} +1 -1
  13. package/dist/assets/{ai-model-dropdown-Bbt--cwF.js → ai-model-dropdown-BAozMKsl.js} +1 -1
  14. package/dist/assets/{alert-dialog-BqFLkbUc.js → alert-dialog-5BGIfskO.js} +2 -2
  15. package/dist/assets/{any-language-editor-CT8HF6T6.js → any-language-editor-9HMoB95o.js} +1 -1
  16. package/dist/assets/{app-config-button-Z8gpKuxR.js → app-config-button-Di13TXm3.js} +1 -1
  17. package/dist/assets/{cache-panel-js9LAxft.js → cache-panel-C_MtTQiK.js} +1 -1
  18. package/dist/assets/{cell-editor-72C0Zygh.js → cell-editor-CeynAchq.js} +1 -1
  19. package/dist/assets/{cell-link-ChdlswWe.js → cell-link-AJAjqJb5.js} +1 -1
  20. package/dist/assets/{cells-B1UeqCia.js → cells-6zANRDgG.js} +2 -2
  21. package/dist/assets/{chat-display-D4aawkG5.js → chat-display-BCEIxyP_.js} +1 -1
  22. package/dist/assets/{chat-panel-DqzUBGAQ.js → chat-panel-Cl9zidIA.js} +1 -1
  23. package/dist/assets/{chat-ui-sZqz1Jfc.js → chat-ui-DStkjRpP.js} +1 -1
  24. package/dist/assets/{column-preview-BIhZkwx8.js → column-preview-B2kXnKdd.js} +1 -1
  25. package/dist/assets/{command-palette-DZeNDzl3.js → command-palette-DzbGv49p.js} +1 -1
  26. package/dist/assets/{command-DUeag2QH.js → command-rtnOVF57.js} +1 -1
  27. package/dist/assets/{common-6io3mKWY.js → common-CMjpHxaM.js} +1 -1
  28. package/dist/assets/{components-oTA8dVbr.js → components-CY48CF-h.js} +1 -1
  29. package/dist/assets/{components-CZp0urSr.js → components-DIbnV6Ix.js} +1 -1
  30. package/dist/assets/{copy-icon-z0dzhmL4.js → copy-icon-c48rtYOO.js} +1 -1
  31. package/dist/assets/{datasource-7l-qg4-b.js → datasource-Bdio-a96.js} +1 -1
  32. package/dist/assets/{dependency-graph-panel-CqUTS6ib.js → dependency-graph-panel-CbOQYps7.js} +1 -1
  33. package/dist/assets/{dialog-DqOQT_n4.js → dialog-QgtiqcL7.js} +1 -1
  34. package/dist/assets/{dist-BdyjRhEt.js → dist-CWMKC7yO.js} +1 -1
  35. package/dist/assets/{documentation-panel-DBd3biLb.js → documentation-panel-BfWnQCo2.js} +1 -1
  36. package/dist/assets/{download-DcQWg8-m.js → download-C_cnbmM9.js} +1 -1
  37. package/dist/assets/{dropdown-menu-CR7cnzLX.js → dropdown-menu-CZ4XbE-c.js} +1 -1
  38. package/dist/assets/{edit-page-CzRGkZBf.js → edit-page-DUqpuxsJ.js} +6 -6
  39. package/dist/assets/{error-banner-CLO6LFll.js → error-banner-BEmVNYlO.js} +1 -1
  40. package/dist/assets/{error-panel-BoafWEAy.js → error-panel-CbdaHXST.js} +1 -1
  41. package/dist/assets/{es-au8YY-8E.js → es-DjCidlNc.js} +1 -1
  42. package/dist/assets/{field-B4CdIHa9.js → field-DTk6GDWB.js} +1 -1
  43. package/dist/assets/{file-explorer-panel-B94q-LIo.js → file-explorer-panel-CN4GhTVb.js} +1 -1
  44. package/dist/assets/{file-icons-8bgrYNC0.js → file-icons-DObkD0p2.js} +1 -1
  45. package/dist/assets/{file-name-input-C-nkVqG_.js → file-name-input-ClqWegY5.js} +1 -1
  46. package/dist/assets/{floating-outline-BBTN16Pi.js → floating-outline-DvtQqFjz.js} +1 -1
  47. package/dist/assets/{focus-C0_hrGnH.js → focus-Btnin91L.js} +1 -1
  48. package/dist/assets/{form-Bq0lMUxv.js → form-CBuNDBgZ.js} +1 -1
  49. package/dist/assets/{fullscreen-eipL3i3Y.js → fullscreen-DFky0PAA.js} +3 -3
  50. package/dist/assets/{gallery-page-BDt-STRr.js → gallery-page-Dq_Slpw_.js} +1 -1
  51. package/dist/assets/{glide-data-editor-CipAqqJq.js → glide-data-editor-Bk2JCgm9.js} +1 -1
  52. package/dist/assets/{globals-LRz1TwrD.js → globals-BlTO0oUB.js} +1 -1
  53. package/dist/assets/{home-page-WYmfqTfP.js → home-page-CCoM4rsU.js} +1 -1
  54. package/dist/assets/{hooks-DyYXumVE.js → hooks-BtuLiFDw.js} +1 -1
  55. package/dist/assets/{html-to-image-rfnXdqfv.js → html-to-image-DvVDsEqf.js} +1 -1
  56. package/dist/assets/index-Ct3LgsQ8.css +2 -0
  57. package/dist/assets/{index-C1PbYyzr.js → index-DqAsO6o_.js} +14 -14
  58. package/dist/assets/{input-TSilD7AA.js → input-Dvl7sgNQ.js} +1 -1
  59. package/dist/assets/{kiosk-mode-Da3sO64c.js → kiosk-mode-CTa--By7.js} +1 -1
  60. package/dist/assets/{label-xHqFtfdz.js → label-C2_YQRio.js} +1 -1
  61. package/dist/assets/{layout-DYQGL_5W.js → layout-4ZVNp_vO.js} +3 -3
  62. package/dist/assets/{logs-panel-CBQtSb87.js → logs-panel-c4kQoHV_.js} +1 -1
  63. package/dist/assets/{markdown-renderer-YEl8Z67L.js → markdown-renderer-j3gyUhRd.js} +1 -1
  64. package/dist/assets/{menu-items-DcP01QzW.js → menu-items-BP7Ju9ww.js} +1 -1
  65. package/dist/assets/{mermaid-DskEfPqD.js → mermaid-lvUkHhLR.js} +1 -1
  66. package/dist/assets/multi-map-C4OANz8X.js +1 -0
  67. package/dist/assets/{name-cell-input-CSSNMAt-.js → name-cell-input-JO6nrr1K.js} +1 -1
  68. package/dist/assets/{outline-panel-Bzu7s3vt.js → outline-panel-CvVvxFux.js} +1 -1
  69. package/dist/assets/{packages-panel-DsHF0wGn.js → packages-panel-qfKtDrNm.js} +1 -1
  70. package/dist/assets/{pair-with-agent-modal-Dh1WKytX.js → pair-with-agent-modal-DQuvaMjY.js} +1 -1
  71. package/dist/assets/{panels-Rpjf9H5q.js → panels-CCCnEBBY.js} +1 -1
  72. package/dist/assets/{popover-Bz_0Vkyf.js → popover-CNCYAwbC.js} +1 -1
  73. package/dist/assets/{process-output-D34znTpg.js → process-output-CLLxjn3z.js} +1 -1
  74. package/dist/assets/radio-group-BvfI-gyW.js +1 -0
  75. package/dist/assets/{readonly-python-code-DRB4Oujr.js → readonly-python-code-oS1ym1oK.js} +1 -1
  76. package/dist/assets/{renderShortcut-BTgMpqTK.js → renderShortcut-DbyG33_r.js} +1 -1
  77. package/dist/assets/{reveal-component-CMD_BnK_.js → reveal-component-Dr_6s_9X.js} +51 -51
  78. package/dist/assets/{run-page-BGVh53Fv.js → run-page-CYyEj38-.js} +1 -1
  79. package/dist/assets/{scratchpad-panel-Bu5uSOnh.js → scratchpad-panel-DOjHQ4C-.js} +1 -1
  80. package/dist/assets/{secrets-panel-C-AiYcTm.js → secrets-panel-CfNAgJOy.js} +1 -1
  81. package/dist/assets/{select-DZcFyKFQ.js → select-6suE6YM2.js} +1 -1
  82. package/dist/assets/{session-panel-CUuZscI9.js → session-panel-C8k5069O.js} +1 -1
  83. package/dist/assets/{snippets-panel-FZipjVGj.js → snippets-panel-BOrKs1xZ.js} +1 -1
  84. package/dist/assets/{state-Dd_QMTIr.js → state-BY9qohgO.js} +1 -1
  85. package/dist/assets/{state-DhERtUKY.js → state-CMmuAxhT.js} +1 -1
  86. package/dist/assets/{switch-NmKFCQsT.js → switch-DNHeV6xs.js} +1 -1
  87. package/dist/assets/{terminal-Brlgq9Xx.js → terminal-Blwyaj1h.js} +1 -1
  88. package/dist/assets/{textarea-DsHy664W.js → textarea-CnP3WeAt.js} +1 -1
  89. package/dist/assets/{tooltip-DTV9tlSr.js → tooltip-B_PkSKN3.js} +1 -1
  90. package/dist/assets/{tracing-B91zi1Cr.js → tracing-Bd-ySKo3.js} +1 -1
  91. package/dist/assets/{tracing-panel-B68PNYS8.js → tracing-panel-CPtHTsqj.js} +2 -2
  92. package/dist/assets/{tree-actions-DfrTuUnZ.js → tree-actions-Ci1FwTlL.js} +1 -1
  93. package/dist/assets/useBoolean-D4l-DzBM.js +1 -0
  94. package/dist/assets/{useCellActionButton-DS0VmOT4.js → useCellActionButton-DwC9zWoY.js} +1 -1
  95. package/dist/assets/{useDeleteCell-ByueGyf0.js → useDeleteCell-3h3Gz-NC.js} +1 -1
  96. package/dist/assets/{useDependencyPanelTab-B-_R5nHC.js → useDependencyPanelTab-CEvDlLGZ.js} +1 -1
  97. package/dist/assets/{useNotebookActions-BPxBZnuZ.js → useNotebookActions-CYlzhmGc.js} +1 -1
  98. package/dist/assets/{useRunCells-c7zq0oWm.js → useRunCells-Bdoq5z0L.js} +1 -1
  99. package/dist/assets/{useSplitCell-Dd5NLOUh.js → useSplitCell-DWbDk6-X.js} +1 -1
  100. package/dist/assets/{vega-component-DqVeZqOU.js → vega-component-BUm2umI3.js} +1 -1
  101. package/dist/assets/{write-secret-modal-BRlgVZs9.js → write-secret-modal-ln_lzzcL.js} +1 -1
  102. package/dist/index.html +48 -48
  103. package/package.json +1 -1
  104. package/src/components/editor/chrome/wrapper/app-chrome.tsx +97 -52
  105. package/src/components/editor/chrome/wrapper/lazy-panels.ts +91 -0
  106. package/src/components/editor/chrome/wrapper/sidebar.tsx +2 -0
  107. package/src/components/slides/reveal-component.tsx +4 -0
  108. package/src/components/ui/reorderable-list.tsx +13 -0
  109. package/src/utils/lazy.ts +6 -1
  110. package/dist/assets/index-DsKy-8bh.css +0 -2
  111. package/dist/assets/multi-map-CUuNtzHt.js +0 -1
  112. package/dist/assets/radio-group-B4UJ7sCK.js +0 -1
  113. package/dist/assets/useBoolean-DElMi9Nd.js +0 -1
@@ -1,13 +1,13 @@
1
- var Rl=Object.defineProperty;var Al=(Te,me,C)=>me in Te?Rl(Te,me,{enumerable:!0,configurable:!0,writable:!0,value:C}):Te[me]=C;var M=(Te,me,C)=>Al(Te,typeof me!="symbol"?me+"":me,C);import{s as ln}from"./chunk-LvLJmgfZ.js";import{n as Be,u as on}from"./useEvent-D91BmmQi.js";import{t as Tl}from"./react-Bj1aDYRI.js";import{Jr as Ll,Qr as Pl,Tt as Cl,qr as Il,st as Ml,__tla as Nl}from"./cells-B1UeqCia.js";import"./react-dom-CSu739Rf.js";import{t as ki}from"./compiler-runtime-B3qBwwSJ.js";import{_ as zl,t as $l}from"./useEventListener-DvoEXWke.js";import{C as cn,t as Bl}from"./utils-CvI-39U6.js";import{v as Dl}from"./config-DH1Le_e1.js";import{t as It}from"./cn-DCUzRj2J.js";import{t as Hl}from"./jsx-runtime-BqBOg78p.js";import"./fullscreen-eipL3i3Y.js";import"./popover-Bz_0Vkyf.js";import{Ct as _l,__tla as ql}from"./JsonOutput-B70lHHvX.js";import"./download-DcQWg8-m.js";import{t as dn}from"./tooltip-DTV9tlSr.js";import{r as yi,t as un}from"./button-BbCh-29a.js";import"./dist-BrR4M-k3.js";import"./cjs-BRGiG41H.js";import"./main-B0OX4z33.js";import"./useNonce-DfoVjkkH.js";import{t as jl}from"./createLucideIcon-D5guW7EU.js";import{R as Ol,d as Fl,g as Mt,h as Vl,l as Ul,__tla as Wl}from"./layout-DYQGL_5W.js";import{__tla as Kl}from"./markdown-renderer-YEl8Z67L.js";import{t as Zl}from"./eye-off-BT-KOYV5.js";import{t as Ql,__tla as Xl}from"./cell-editor-72C0Zygh.js";import{n as Gl,t as Jl}from"./RunButton-eAKy_Bh8.js";import{t as Yl}from"./readonly-python-code-DRB4Oujr.js";import"./dist-DCqxOggh.js";import"./dist-BZr6MMV-.js";import"./dist-BU26XwgJ.js";import"./dist-COs9gIu5.js";import"./dist-DkA__6UI.js";import"./session-DGdfs0bJ.js";import{r as eo}from"./useTheme-BrivXfaa.js";import"./purify.es-DvRMX74T.js";import"./dates-DS_7IZoI.js";import{t as to}from"./CellStatus-DMwpAXMZ.js";import{n as io}from"./useDebounce-_BZcy6gx.js";import{i as so}from"./useRunCells-c7zq0oWm.js";import"./utils-DQRuLEof.js";import"./vega-loader.browser-xq8miGHn.js";import"./defaultLocale-DPBdGRrH.js";import"./defaultLocale-Lfi0pexn.js";import{__tla as no}from"./chunk-5FQGJX7Z-CfK7VoEZ.js";import"./html-to-image-rfnXdqfv.js";import{n as ro,r as ao,t as hn}from"./react-resizable-panels.browser.esm-BdtIs0E-.js";import"./esm-Cb2bnV6o.js";import"./name-cell-input-CSSNMAt-.js";import"./multi-icon-NVkxesVZ.js";import{__tla as lo}from"./loro_wasm_bg-CXnd80ne.js";import"./ws-BnE9sl8z.js";import"./Inputs-C6ftxLAJ.js";import"./dist-BQeNY9Zl.js";import"./dist-CXBpwk_w.js";import"./dist-DUHHizRG.js";import"./dist-D70Tz1Kr.js";import"./dist-B7WRiLJK.js";import"./dist-CsvFAFh9.js";import"./dist-CtcHy8Nq.js";import"./dist-BlOtCkpT.js";import"./dist-C78V1LRz.js";import"./esm-Cv-OC7z7.js";let pn,oo=Promise.all([(()=>{try{return Nl}catch{}})(),(()=>{try{return ql}catch{}})(),(()=>{try{return Wl}catch{}})(),(()=>{try{return Kl}catch{}})(),(()=>{try{return Xl}catch{}})(),(()=>{try{return no}catch{}})(),(()=>{try{return lo}catch{}})()]).then(async()=>{var ft,vt;var Te=jl("sticky-note",[["path",{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",key:"1dfntj"}],["path",{d:"M15 3v5a1 1 0 0 0 1 1h5",key:"6s6qgf"}]]),me=ki(),C=ln(Tl(),1),gn=Object.defineProperty,mn=Object.defineProperties,fn=Object.getOwnPropertyDescriptors,Ri=Object.getOwnPropertySymbols,vn=Object.prototype.hasOwnProperty,bn=Object.prototype.propertyIsEnumerable,Nt=(t,e,i)=>e in t?gn(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,ke=(t,e)=>{for(var i in e||(e={}))vn.call(e,i)&&Nt(t,i,e[i]);if(Ri)for(var i of Ri(e))bn.call(e,i)&&Nt(t,i,e[i]);return t},Ai=(t,e)=>mn(t,fn(e)),Ti=(t,e,i)=>Nt(t,typeof e=="symbol"?e:e+"",i),kn=(t,e,i)=>new Promise((s,n)=>{var a=c=>{try{r(i.next(c))}catch(o){n(o)}},l=c=>{try{r(i.throw(c))}catch(o){n(o)}},r=c=>c.done?s(c.value):Promise.resolve(c.value).then(a,l);r((i=i.apply(t,e)).next())}),De=(t,e)=>{for(let i in e)t[i]=e[i];return t},I=(t,e)=>Array.from(t.querySelectorAll(e)),zt=(t,e,i)=>{i?t.classList.add(e):t.classList.remove(e)},He=t=>{if(typeof t=="string"){if(t==="null")return null;if(t==="true")return!0;if(t==="false")return!1;if(t.match(/^-?[\d\.]+$/))return parseFloat(t)}return t},Se=(t,e)=>{t.style.transform=e},tt=(t,e)=>{let i=t.matches||t.matchesSelector||t.msMatchesSelector;return!!(i&&i.call(t,e))},se=(t,e)=>{if(t&&typeof t.closest=="function")return t.closest(e);for(;t;){if(tt(t,e))return t;t=t.parentElement}return null},Li=t=>{t||(t=document.documentElement);let e=t.requestFullscreen||t.webkitRequestFullscreen||t.webkitRequestFullScreen||t.mozRequestFullScreen||t.msRequestFullscreen;e&&e.apply(t)},yn=(t,e,i,s="")=>{let n=t.querySelectorAll("."+i);for(let l=0;l<n.length;l++){let r=n[l];if(r.parentNode===t)return r}let a=document.createElement(e);return a.className=i,a.innerHTML=s,t.appendChild(a),a},$t=t=>{let e=document.createElement("style");return t&&t.length>0&&e.appendChild(document.createTextNode(t)),document.head.appendChild(e),e},Pi=()=>{let t={};for(let e in location.search.replace(/[A-Z0-9]+?=([\w\.%-]*)/gi,i=>{let s=i.split("=").shift(),n=i.split("=").pop();return s&&n!==void 0&&(t[s]=n),i}),t){let i=t[e];t[e]=He(unescape(i))}return t.dependencies!==void 0&&delete t.dependencies,t},wn=(t,e=0)=>{var i;if(t){let s,n=t.style.height;return t.style.height="0px",t.parentElement&&(t.parentElement.style.height="auto"),s=e-(((i=t.parentElement)==null?void 0:i.offsetHeight)||0),t.style.height=n+"px",t.parentElement&&t.parentElement.style.removeProperty("height"),s}return e},xn={mp4:"video/mp4",m4a:"video/mp4",ogv:"video/ogg",mpeg:"video/mpeg",webm:"video/webm"},Sn=(t="")=>{let e=t.split(".").pop();return e?xn[e]:void 0},En=(t="")=>encodeURI(t).replace(/%5B/g,"[").replace(/%5D/g,"]").replace(/[!'()*]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`),Ci=navigator.userAgent,Le=/(iphone|ipod|ipad|android)/gi.test(Ci)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1,Ii=/android/gi.test(Ci),Rn=(function(t){if(t){var e=function(v){return[].slice.call(v)},i=0,s=1,n=2,a=3,l=[],r=null,c="requestAnimationFrame"in t?function(){var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{sync:!1};t.cancelAnimationFrame(r);var R=function(){return d(l.filter((function(P){return P.dirty&&P.active})))};if(v.sync)return R();r=t.requestAnimationFrame(R)}:function(){},o=function(v){return function(R){l.forEach((function(P){return P.dirty=v})),c(R)}},d=function(v){v.filter((function(P){return!P.styleComputed})).forEach((function(P){P.styleComputed=u(P)})),v.filter(b).forEach(y);var R=v.filter(p);R.forEach(g),R.forEach((function(P){y(P),h(P)})),R.forEach(N)},h=function(v){return v.dirty=i},g=function(v){v.availableWidth=v.element.parentNode.clientWidth,v.currentWidth=v.element.scrollWidth,v.previousFontSize=v.currentFontSize,v.currentFontSize=Math.min(Math.max(v.minSize,v.availableWidth/v.currentWidth*v.previousFontSize),v.maxSize),v.whiteSpace=v.multiLine&&v.currentFontSize===v.minSize?"normal":"nowrap"},p=function(v){return v.dirty!==n||v.dirty===n&&v.element.parentNode.clientWidth!==v.availableWidth},u=function(v){var R=t.getComputedStyle(v.element,null);return v.currentFontSize=parseFloat(R.getPropertyValue("font-size")),v.display=R.getPropertyValue("display"),v.whiteSpace=R.getPropertyValue("white-space"),!0},b=function(v){var R=!1;return!v.preStyleTestCompleted&&(/inline-/.test(v.display)||(R=!0,v.display="inline-block"),v.whiteSpace!=="nowrap"&&(R=!0,v.whiteSpace="nowrap"),v.preStyleTestCompleted=!0,R)},y=function(v){v.element.style.whiteSpace=v.whiteSpace,v.element.style.display=v.display,v.element.style.fontSize=v.currentFontSize+"px"},N=function(v){v.element.dispatchEvent(new CustomEvent("fit",{detail:{oldValue:v.previousFontSize,newValue:v.currentFontSize,scaleFactor:v.currentFontSize/v.previousFontSize}}))},H=function(v,R){return function(P){v.dirty=R,v.active&&c(P)}},L=function(v){return function(){l=l.filter((function(R){return R.element!==v.element})),v.observeMutations&&v.observer.disconnect(),v.element.style.whiteSpace=v.originalStyle.whiteSpace,v.element.style.display=v.originalStyle.display,v.element.style.fontSize=v.originalStyle.fontSize}},A=function(v){return function(){v.active||(v.active=!0,c())}},x=function(v){return function(){return v.active=!1}},q=function(v){v.observeMutations&&(v.observer=new MutationObserver(H(v,s)),v.observer.observe(v.element,v.observeMutations))},z={minSize:16,maxSize:512,multiLine:!0,observeMutations:"MutationObserver"in t&&{subtree:!0,childList:!0,characterData:!0}},$=null,_=function(){t.clearTimeout($),$=t.setTimeout(o(n),B.observeWindowDelay)},T=["resize","orientationchange"];return Object.defineProperty(B,"observeWindow",{set:function(v){var R=`${v?"add":"remove"}EventListener`;T.forEach((function(P){t[R](P,_)}))}}),B.observeWindow=!0,B.observeWindowDelay=100,B.fitAll=o(a),B}function Q(v,R){var P=Object.assign({},z,R),W=v.map((function(te){var F=Object.assign({},P,{element:te,active:!0});return(function(V){V.originalStyle={whiteSpace:V.element.style.whiteSpace,display:V.element.style.display,fontSize:V.element.style.fontSize},q(V),V.newbie=!0,V.dirty=!0,l.push(V)})(F),{element:te,fit:H(F,a),unfreeze:A(F),freeze:x(F),unsubscribe:L(F)}}));return c(),W}function B(v){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return typeof v=="string"?Q(e(document.querySelectorAll(v)),R):Q([v],R)[0]}})(typeof window>"u"?null:window),An=class{constructor(t){Ti(this,"allowedToPlayAudio",null),this.Reveal=t,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=new Set,this.failedVideoPlaybackTargets=new Set,this.failedMutedVideoPlaybackTargets=new Set,this.renderMediaPlayButton()}renderMediaPlayButton(){this.mediaPlayButton=document.createElement("button"),this.mediaPlayButton.className="r-overlay-button r-media-play-button",this.mediaPlayButton.addEventListener("click",()=>{this.resetTemporarilyMutedMedia(),new Set([...this.failedAudioPlaybackTargets,...this.failedVideoPlaybackTargets,...this.failedMutedVideoPlaybackTargets]).forEach(t=>{this.startEmbeddedMedia({target:t})}),this.clearMediaPlaybackErrors()})}shouldPreload(t){if(this.Reveal.isScrollView())return!0;let e=this.Reveal.getConfig().preloadIframes;return typeof e!="boolean"&&(e=t.hasAttribute("data-preload")),e}load(t,e={}){let i=this.Reveal.getConfig().display;if(i.includes("!important")){let n=i.replace(/\s*!important\s*$/,"").trim();t.style.setProperty("display",n,"important")}else t.style.display=i;I(t,"img[data-src], video[data-src], audio[data-src], iframe[data-src]").forEach(n=>{let a=n.tagName==="IFRAME";(!a||this.shouldPreload(n))&&(n.setAttribute("src",n.getAttribute("data-src")),n.setAttribute("data-lazy-loaded",""),n.removeAttribute("data-src"),a&&n.addEventListener("load",this.preventIframeAutoFocus))}),I(t,"video, audio").forEach(n=>{let a=0;I(n,"source[data-src]").forEach(l=>{l.setAttribute("src",l.getAttribute("data-src")),l.removeAttribute("data-src"),l.setAttribute("data-lazy-loaded",""),a+=1}),Le&&n.tagName==="VIDEO"&&n.setAttribute("playsinline",""),a>0&&n.load()});let s=t.slideBackgroundElement;if(s){s.style.display="block";let n=t.slideBackgroundContentElement,a=t.getAttribute("data-background-iframe");if(s.hasAttribute("data-loaded")===!1){s.setAttribute("data-loaded","true");let r=t.getAttribute("data-background-image"),c=t.getAttribute("data-background-video"),o=t.hasAttribute("data-background-video-loop"),d=t.hasAttribute("data-background-video-muted");if(r)/^data:/.test(r.trim())?n.style.backgroundImage=`url(${r.trim()})`:n.style.backgroundImage=r.split(",").map(h=>`url(${En(decodeURI(h.trim()))})`).join(",");else if(c){let h=document.createElement("video");o&&h.setAttribute("loop",""),(d||this.Reveal.isSpeakerNotes())&&(h.muted=!0),Le&&h.setAttribute("playsinline",""),c.split(",").forEach(g=>{let p=document.createElement("source");p.setAttribute("src",g);let u=Sn(g);u&&p.setAttribute("type",u),h.appendChild(p)}),n.appendChild(h)}else if(a&&e.excludeIframes!==!0){let h=document.createElement("iframe");h.setAttribute("allowfullscreen",""),h.setAttribute("mozallowfullscreen",""),h.setAttribute("webkitallowfullscreen",""),h.setAttribute("allow","autoplay"),h.setAttribute("data-src",a),h.style.width="100%",h.style.height="100%",h.style.maxHeight="100%",h.style.maxWidth="100%",n.appendChild(h)}}let l=n.querySelector("iframe[data-src]");l&&this.shouldPreload(s)&&!/autoplay=(1|true|yes)/gi.test(a)&&l.getAttribute("src")!==a&&l.setAttribute("src",a)}this.layout(t)}layout(t){Array.from(t.querySelectorAll(".r-fit-text")).forEach(e=>{Rn(e,{minSize:24,maxSize:this.Reveal.getConfig().height*.8,observeMutations:!1,observeWindow:!1})})}unload(t){t.style.display="none";let e=this.Reveal.getSlideBackground(t);e&&(e.style.display="none",I(e,"iframe[src]").forEach(i=>{i.removeAttribute("src")})),I(t,"video[data-lazy-loaded][src], audio[data-lazy-loaded][src], iframe[data-lazy-loaded][src]").forEach(i=>{i.setAttribute("data-src",i.getAttribute("src")),i.removeAttribute("src")}),I(t,"video[data-lazy-loaded] source[src], audio source[src]").forEach(i=>{i.setAttribute("data-src",i.getAttribute("src")),i.removeAttribute("src")})}formatEmbeddedContent(){let t=(e,i,s)=>{I(this.Reveal.getSlidesElement(),"iframe["+e+'*="'+i+'"]').forEach(n=>{let a=n.getAttribute(e);a&&a.indexOf(s)===-1&&n.setAttribute(e,a+(/\?/.test(a)?"&":"?")+s)})};t("src","youtube.com/embed/","enablejsapi=1"),t("data-src","youtube.com/embed/","enablejsapi=1"),t("src","player.vimeo.com/","api=1"),t("data-src","player.vimeo.com/","api=1")}startEmbeddedContent(t){if(t){let e=this.Reveal.isSpeakerNotes();I(t,'img[src$=".gif"]').forEach(i=>{i.setAttribute("src",i.getAttribute("src"))}),I(t,"video, audio").forEach(i=>{if(se(i,".fragment")&&!se(i,".fragment.visible"))return;let s=this.Reveal.getConfig().autoPlayMedia;if(typeof s!="boolean"&&(s=i.hasAttribute("data-autoplay")||!!se(i,".slide-background")),s&&typeof i.play=="function"){if(e&&!i.muted)return;i.readyState>1?this.startEmbeddedMedia({target:i}):Le?(i.addEventListener("canplay",this.ensureMobileMediaPlaying),this.playMediaElement(i)):(i.removeEventListener("loadeddata",this.startEmbeddedMedia),i.addEventListener("loadeddata",this.startEmbeddedMedia))}}),e||(I(t,"iframe[src]").forEach(i=>{se(i,".fragment")&&!se(i,".fragment.visible")||this.startEmbeddedIframe({target:i})}),I(t,"iframe[data-src]").forEach(i=>{se(i,".fragment")&&!se(i,".fragment.visible")||i.getAttribute("src")!==i.getAttribute("data-src")&&(i.removeEventListener("load",this.startEmbeddedIframe),i.addEventListener("load",this.startEmbeddedIframe),i.setAttribute("src",i.getAttribute("data-src")))}))}}ensureMobileMediaPlaying(t){let e=t.target;typeof e.getVideoPlaybackQuality=="function"&&setTimeout(()=>{let i=e.paused===!1,s=e.getVideoPlaybackQuality().totalVideoFrames;i&&s===0&&(e.load(),e.play())},1e3)}startEmbeddedMedia(t){let e=!!se(t.target,"html"),i=!!se(t.target,".present");e&&i&&(t.target.paused||t.target.ended)&&(t.target.currentTime=0,this.playMediaElement(t.target)),t.target.removeEventListener("loadeddata",this.startEmbeddedMedia)}playMediaElement(t){let e=t.play();e&&typeof e.catch=="function"&&e.then(()=>{t.muted||(this.allowedToPlayAudio=!0)}).catch(i=>{if(i.name==="NotAllowedError")if(this.allowedToPlayAudio=!1,t.tagName==="VIDEO"){this.onVideoPlaybackNotAllowed(t);let s=!!se(t,"html"),n=!!se(t,".present"),a=t.muted;s&&n&&!a&&(t.setAttribute("data-muted-by-reveal","true"),t.muted=!0,t.play().catch(()=>{this.onMutedVideoPlaybackNotAllowed(t)}))}else t.tagName==="AUDIO"&&this.onAudioPlaybackNotAllowed(t)})}startEmbeddedIframe(t){let e=t.target;if(this.preventIframeAutoFocus(t),e&&e.contentWindow){let i=!!se(t.target,"html"),s=!!se(t.target,".present");if(i&&s){let n=this.Reveal.getConfig().autoPlayMedia;typeof n!="boolean"&&(n=e.hasAttribute("data-autoplay")||!!se(e,".slide-background")),/youtube\.com\/embed\//.test(e.getAttribute("src"))&&n?e.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*"):/player\.vimeo\.com\//.test(e.getAttribute("src"))&&n?e.contentWindow.postMessage('{"method":"play"}',"*"):e.contentWindow.postMessage("slide:start","*")}}}stopEmbeddedContent(t,e={}){e=De({unloadIframes:!0},e),t&&t.parentNode&&(I(t,"video, audio").forEach(i=>{!i.hasAttribute("data-ignore")&&typeof i.pause=="function"&&(i.setAttribute("data-paused-by-reveal",""),i.pause(),Le&&i.removeEventListener("canplay",this.ensureMobileMediaPlaying))}),I(t,"iframe").forEach(i=>{i.contentWindow&&i.contentWindow.postMessage("slide:stop","*"),i.removeEventListener("load",this.preventIframeAutoFocus),i.removeEventListener("load",this.startEmbeddedIframe)}),I(t,'iframe[src*="youtube.com/embed/"]').forEach(i=>{!i.hasAttribute("data-ignore")&&i.contentWindow&&typeof i.contentWindow.postMessage=="function"&&i.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*")}),I(t,'iframe[src*="player.vimeo.com/"]').forEach(i=>{!i.hasAttribute("data-ignore")&&i.contentWindow&&typeof i.contentWindow.postMessage=="function"&&i.contentWindow.postMessage('{"method":"pause"}',"*")}),e.unloadIframes===!0&&I(t,"iframe[data-src]").forEach(i=>{i.setAttribute("src","about:blank"),i.removeAttribute("src")}))}isAllowedToPlayAudio(){return this.allowedToPlayAudio}showPlayOrUnmuteButton(){let t=this.failedAudioPlaybackTargets.size,e=this.failedVideoPlaybackTargets.size,i=this.failedMutedVideoPlaybackTargets.size,s="Play media";i>0?s="Play video":e>0?s="Unmute video":t>0&&(s="Play audio"),this.mediaPlayButton.textContent=s,this.Reveal.getRevealElement().appendChild(this.mediaPlayButton)}onAudioPlaybackNotAllowed(t){this.failedAudioPlaybackTargets.add(t),this.showPlayOrUnmuteButton(t)}onVideoPlaybackNotAllowed(t){this.failedVideoPlaybackTargets.add(t),this.showPlayOrUnmuteButton()}onMutedVideoPlaybackNotAllowed(t){this.failedMutedVideoPlaybackTargets.add(t),this.showPlayOrUnmuteButton()}resetTemporarilyMutedMedia(){new Set([...this.failedAudioPlaybackTargets,...this.failedVideoPlaybackTargets,...this.failedMutedVideoPlaybackTargets]).forEach(t=>{t.hasAttribute("data-muted-by-reveal")&&(t.muted=!1,t.removeAttribute("data-muted-by-reveal"))})}clearMediaPlaybackErrors(){this.resetTemporarilyMutedMedia(),this.failedAudioPlaybackTargets.clear(),this.failedVideoPlaybackTargets.clear(),this.failedMutedVideoPlaybackTargets.clear(),this.mediaPlayButton.remove()}preventIframeAutoFocus(t){let e=t.target;if(e&&this.Reveal.getConfig().preventIframeAutoFocus){let i=0,s=()=>{document.activeElement===e?document.activeElement.blur():i<1e3&&(i+=100,setTimeout(s,100))};setTimeout(s,100)}}afterSlideChanged(){this.clearMediaPlaybackErrors()}},Pe=".slides section",ye=".slides>section",Bt=".slides>section.present>section",Tn=".backgrounds>.slide-background",Ln=/registerPlugin|registerKeyboardShortcut|addKeyBinding|addEventListener|showPreview/,Pn="h.v",Cn="h/v",Dt="c",Mi="c/t",In=class{constructor(t){this.Reveal=t}render(){this.element=document.createElement("div"),this.element.className="slide-number",this.Reveal.getRevealElement().appendChild(this.element)}configure(t,e){let i="none";t.slideNumber&&!this.Reveal.isPrintView()&&(t.showSlideNumber==="all"||t.showSlideNumber==="speaker"&&this.Reveal.isSpeakerNotes())&&(i="block"),this.element.style.display=i}update(){this.Reveal.getConfig().slideNumber&&this.element&&(this.element.innerHTML=this.getSlideNumber())}getSlideNumber(t=this.Reveal.getCurrentSlide()){let e=this.Reveal.getConfig(),i,s=Pn;if(typeof e.slideNumber=="function")i=e.slideNumber(t);else{typeof e.slideNumber=="string"&&(s=e.slideNumber),!/c/.test(s)&&this.Reveal.getHorizontalSlides().length===1&&(s=Dt);let a=t&&t.dataset.visibility==="uncounted"?0:1;switch(i=[],s){case Dt:i.push(this.Reveal.getSlidePastCount(t)+a);break;case Mi:i.push(this.Reveal.getSlidePastCount(t)+a,"/",this.Reveal.getTotalSlides());break;default:let l=this.Reveal.getIndices(t);i.push(l.h+a);let r=s===Cn?"/":".";this.Reveal.isVerticalSlide(t)&&i.push(r,l.v+1)}}let n="#"+this.Reveal.location.getHash(t);return this.formatNumber(i[0],i[1],i[2],n)}formatNumber(t,e,i,s="#"+this.Reveal.location.getHash()){return typeof i=="number"&&!isNaN(i)?`<a href="${s}">
1
+ var Rl=Object.defineProperty;var Al=(Te,me,L)=>me in Te?Rl(Te,me,{enumerable:!0,configurable:!0,writable:!0,value:L}):Te[me]=L;var C=(Te,me,L)=>Al(Te,typeof me!="symbol"?me+"":me,L);import{s as ln}from"./chunk-LvLJmgfZ.js";import{n as Be,u as on}from"./useEvent-D91BmmQi.js";import{t as Tl}from"./react-Bj1aDYRI.js";import{Jr as Ll,Qr as Pl,Tt as Cl,qr as Il,st as Ml,__tla as Nl}from"./cells-6zANRDgG.js";import"./react-dom-CSu739Rf.js";import{t as ki}from"./compiler-runtime-B3qBwwSJ.js";import{_ as zl,t as $l}from"./useEventListener-DvoEXWke.js";import{C as cn,t as Bl}from"./utils-CvI-39U6.js";import{v as Dl}from"./config-DH1Le_e1.js";import{t as Nt}from"./cn-DCUzRj2J.js";import{t as Hl}from"./jsx-runtime-BqBOg78p.js";import{n as _l}from"./fullscreen-DFky0PAA.js";import"./popover-CNCYAwbC.js";import{Ct as ql,__tla as jl}from"./JsonOutput-Hk49rzGl.js";import"./download-C_cnbmM9.js";import{t as dn}from"./tooltip-B_PkSKN3.js";import{r as yi,t as un}from"./button-BbCh-29a.js";import"./dist-BrR4M-k3.js";import"./cjs-BRGiG41H.js";import"./main-B0OX4z33.js";import"./useNonce-DfoVjkkH.js";import{t as Ol}from"./createLucideIcon-D5guW7EU.js";import{R as Fl,d as Vl,g as zt,h as Ul,l as Wl,__tla as Kl}from"./layout-4ZVNp_vO.js";import{__tla as Zl}from"./markdown-renderer-j3gyUhRd.js";import{t as Ql}from"./eye-off-BT-KOYV5.js";import{t as Xl,__tla as Yl}from"./cell-editor-CeynAchq.js";import{n as Jl,t as Gl}from"./RunButton-CFOfNbXp.js";import{t as eo}from"./readonly-python-code-oS1ym1oK.js";import"./dist-DCqxOggh.js";import"./dist-BZr6MMV-.js";import"./dist-BU26XwgJ.js";import"./dist-COs9gIu5.js";import"./dist-DkA__6UI.js";import"./session-DGdfs0bJ.js";import{r as to}from"./useTheme-BrivXfaa.js";import"./purify.es-DvRMX74T.js";import"./dates-DS_7IZoI.js";import{t as io}from"./CellStatus-Bz67hL1K.js";import{n as so}from"./useDebounce-_BZcy6gx.js";import{i as no}from"./useRunCells-Bdoq5z0L.js";import"./utils-DQRuLEof.js";import"./vega-loader.browser-xq8miGHn.js";import"./defaultLocale-DPBdGRrH.js";import"./defaultLocale-Lfi0pexn.js";import{__tla as ro}from"./chunk-5FQGJX7Z-CfK7VoEZ.js";import"./html-to-image-DvVDsEqf.js";import{n as ao,r as lo,t as hn}from"./react-resizable-panels.browser.esm-BdtIs0E-.js";import"./esm-Cb2bnV6o.js";import"./name-cell-input-JO6nrr1K.js";import"./multi-icon-NVkxesVZ.js";import{__tla as oo}from"./loro_wasm_bg-CXnd80ne.js";import"./ws-BnE9sl8z.js";import"./Inputs-C6ftxLAJ.js";import"./dist-BQeNY9Zl.js";import"./dist-CXBpwk_w.js";import"./dist-DUHHizRG.js";import"./dist-D70Tz1Kr.js";import"./dist-B7WRiLJK.js";import"./dist-CsvFAFh9.js";import"./dist-CtcHy8Nq.js";import"./dist-BlOtCkpT.js";import"./dist-C78V1LRz.js";import"./esm-Cv-OC7z7.js";let pn,co=Promise.all([(()=>{try{return Nl}catch{}})(),(()=>{try{return jl}catch{}})(),(()=>{try{return Kl}catch{}})(),(()=>{try{return Zl}catch{}})(),(()=>{try{return Yl}catch{}})(),(()=>{try{return ro}catch{}})(),(()=>{try{return oo}catch{}})()]).then(async()=>{var vt,bt;var Te=Ol("sticky-note",[["path",{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",key:"1dfntj"}],["path",{d:"M15 3v5a1 1 0 0 0 1 1h5",key:"6s6qgf"}]]),me=ki(),L=ln(Tl(),1),gn=Object.defineProperty,mn=Object.defineProperties,fn=Object.getOwnPropertyDescriptors,Ri=Object.getOwnPropertySymbols,vn=Object.prototype.hasOwnProperty,bn=Object.prototype.propertyIsEnumerable,$t=(t,e,i)=>e in t?gn(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,ke=(t,e)=>{for(var i in e||(e={}))vn.call(e,i)&&$t(t,i,e[i]);if(Ri)for(var i of Ri(e))bn.call(e,i)&&$t(t,i,e[i]);return t},Ai=(t,e)=>mn(t,fn(e)),Ti=(t,e,i)=>$t(t,typeof e=="symbol"?e:e+"",i),kn=(t,e,i)=>new Promise((s,n)=>{var a=c=>{try{r(i.next(c))}catch(o){n(o)}},l=c=>{try{r(i.throw(c))}catch(o){n(o)}},r=c=>c.done?s(c.value):Promise.resolve(c.value).then(a,l);r((i=i.apply(t,e)).next())}),De=(t,e)=>{for(let i in e)t[i]=e[i];return t},P=(t,e)=>Array.from(t.querySelectorAll(e)),Bt=(t,e,i)=>{i?t.classList.add(e):t.classList.remove(e)},He=t=>{if(typeof t=="string"){if(t==="null")return null;if(t==="true")return!0;if(t==="false")return!1;if(t.match(/^-?[\d\.]+$/))return parseFloat(t)}return t},Se=(t,e)=>{t.style.transform=e},it=(t,e)=>{let i=t.matches||t.matchesSelector||t.msMatchesSelector;return!!(i&&i.call(t,e))},se=(t,e)=>{if(t&&typeof t.closest=="function")return t.closest(e);for(;t;){if(it(t,e))return t;t=t.parentElement}return null},Li=t=>{t||(t=document.documentElement);let e=t.requestFullscreen||t.webkitRequestFullscreen||t.webkitRequestFullScreen||t.mozRequestFullScreen||t.msRequestFullscreen;e&&e.apply(t)},yn=(t,e,i,s="")=>{let n=t.querySelectorAll("."+i);for(let l=0;l<n.length;l++){let r=n[l];if(r.parentNode===t)return r}let a=document.createElement(e);return a.className=i,a.innerHTML=s,t.appendChild(a),a},Dt=t=>{let e=document.createElement("style");return t&&t.length>0&&e.appendChild(document.createTextNode(t)),document.head.appendChild(e),e},Pi=()=>{let t={};for(let e in location.search.replace(/[A-Z0-9]+?=([\w\.%-]*)/gi,i=>{let s=i.split("=").shift(),n=i.split("=").pop();return s&&n!==void 0&&(t[s]=n),i}),t){let i=t[e];t[e]=He(unescape(i))}return t.dependencies!==void 0&&delete t.dependencies,t},wn=(t,e=0)=>{var i;if(t){let s,n=t.style.height;return t.style.height="0px",t.parentElement&&(t.parentElement.style.height="auto"),s=e-(((i=t.parentElement)==null?void 0:i.offsetHeight)||0),t.style.height=n+"px",t.parentElement&&t.parentElement.style.removeProperty("height"),s}return e},xn={mp4:"video/mp4",m4a:"video/mp4",ogv:"video/ogg",mpeg:"video/mpeg",webm:"video/webm"},Sn=(t="")=>{let e=t.split(".").pop();return e?xn[e]:void 0},En=(t="")=>encodeURI(t).replace(/%5B/g,"[").replace(/%5D/g,"]").replace(/[!'()*]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`),Ci=navigator.userAgent,Le=/(iphone|ipod|ipad|android)/gi.test(Ci)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1,Ii=/android/gi.test(Ci),Rn=(function(t){if(t){var e=function(v){return[].slice.call(v)},i=0,s=1,n=2,a=3,l=[],r=null,c="requestAnimationFrame"in t?function(){var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{sync:!1};t.cancelAnimationFrame(r);var R=function(){return u(l.filter((function(I){return I.dirty&&I.active})))};if(v.sync)return R();r=t.requestAnimationFrame(R)}:function(){},o=function(v){return function(R){l.forEach((function(I){return I.dirty=v})),c(R)}},u=function(v){v.filter((function(I){return!I.styleComputed})).forEach((function(I){I.styleComputed=d(I)})),v.filter(b).forEach(y);var R=v.filter(p);R.forEach(g),R.forEach((function(I){y(I),h(I)})),R.forEach(z)},h=function(v){return v.dirty=i},g=function(v){v.availableWidth=v.element.parentNode.clientWidth,v.currentWidth=v.element.scrollWidth,v.previousFontSize=v.currentFontSize,v.currentFontSize=Math.min(Math.max(v.minSize,v.availableWidth/v.currentWidth*v.previousFontSize),v.maxSize),v.whiteSpace=v.multiLine&&v.currentFontSize===v.minSize?"normal":"nowrap"},p=function(v){return v.dirty!==n||v.dirty===n&&v.element.parentNode.clientWidth!==v.availableWidth},d=function(v){var R=t.getComputedStyle(v.element,null);return v.currentFontSize=parseFloat(R.getPropertyValue("font-size")),v.display=R.getPropertyValue("display"),v.whiteSpace=R.getPropertyValue("white-space"),!0},b=function(v){var R=!1;return!v.preStyleTestCompleted&&(/inline-/.test(v.display)||(R=!0,v.display="inline-block"),v.whiteSpace!=="nowrap"&&(R=!0,v.whiteSpace="nowrap"),v.preStyleTestCompleted=!0,R)},y=function(v){v.element.style.whiteSpace=v.whiteSpace,v.element.style.display=v.display,v.element.style.fontSize=v.currentFontSize+"px"},z=function(v){v.element.dispatchEvent(new CustomEvent("fit",{detail:{oldValue:v.previousFontSize,newValue:v.currentFontSize,scaleFactor:v.currentFontSize/v.previousFontSize}}))},H=function(v,R){return function(I){v.dirty=R,v.active&&c(I)}},N=function(v){return function(){l=l.filter((function(R){return R.element!==v.element})),v.observeMutations&&v.observer.disconnect(),v.element.style.whiteSpace=v.originalStyle.whiteSpace,v.element.style.display=v.originalStyle.display,v.element.style.fontSize=v.originalStyle.fontSize}},A=function(v){return function(){v.active||(v.active=!0,c())}},x=function(v){return function(){return v.active=!1}},j=function(v){v.observeMutations&&(v.observer=new MutationObserver(H(v,s)),v.observer.observe(v.element,v.observeMutations))},M={minSize:16,maxSize:512,multiLine:!0,observeMutations:"MutationObserver"in t&&{subtree:!0,childList:!0,characterData:!0}},B=null,_=function(){t.clearTimeout(B),B=t.setTimeout(o(n),$.observeWindowDelay)},T=["resize","orientationchange"];return Object.defineProperty($,"observeWindow",{set:function(v){var R=`${v?"add":"remove"}EventListener`;T.forEach((function(I){t[R](I,_)}))}}),$.observeWindow=!0,$.observeWindowDelay=100,$.fitAll=o(a),$}function U(v,R){var I=Object.assign({},M,R),W=v.map((function(G){var te=Object.assign({},I,{element:G,active:!0});return(function(q){q.originalStyle={whiteSpace:q.element.style.whiteSpace,display:q.element.style.display,fontSize:q.element.style.fontSize},j(q),q.newbie=!0,q.dirty=!0,l.push(q)})(te),{element:G,fit:H(te,a),unfreeze:A(te),freeze:x(te),unsubscribe:N(te)}}));return c(),W}function $(v){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return typeof v=="string"?U(e(document.querySelectorAll(v)),R):U([v],R)[0]}})(typeof window>"u"?null:window),An=class{constructor(t){Ti(this,"allowedToPlayAudio",null),this.Reveal=t,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=new Set,this.failedVideoPlaybackTargets=new Set,this.failedMutedVideoPlaybackTargets=new Set,this.renderMediaPlayButton()}renderMediaPlayButton(){this.mediaPlayButton=document.createElement("button"),this.mediaPlayButton.className="r-overlay-button r-media-play-button",this.mediaPlayButton.addEventListener("click",()=>{this.resetTemporarilyMutedMedia(),new Set([...this.failedAudioPlaybackTargets,...this.failedVideoPlaybackTargets,...this.failedMutedVideoPlaybackTargets]).forEach(t=>{this.startEmbeddedMedia({target:t})}),this.clearMediaPlaybackErrors()})}shouldPreload(t){if(this.Reveal.isScrollView())return!0;let e=this.Reveal.getConfig().preloadIframes;return typeof e!="boolean"&&(e=t.hasAttribute("data-preload")),e}load(t,e={}){let i=this.Reveal.getConfig().display;if(i.includes("!important")){let n=i.replace(/\s*!important\s*$/,"").trim();t.style.setProperty("display",n,"important")}else t.style.display=i;P(t,"img[data-src], video[data-src], audio[data-src], iframe[data-src]").forEach(n=>{let a=n.tagName==="IFRAME";(!a||this.shouldPreload(n))&&(n.setAttribute("src",n.getAttribute("data-src")),n.setAttribute("data-lazy-loaded",""),n.removeAttribute("data-src"),a&&n.addEventListener("load",this.preventIframeAutoFocus))}),P(t,"video, audio").forEach(n=>{let a=0;P(n,"source[data-src]").forEach(l=>{l.setAttribute("src",l.getAttribute("data-src")),l.removeAttribute("data-src"),l.setAttribute("data-lazy-loaded",""),a+=1}),Le&&n.tagName==="VIDEO"&&n.setAttribute("playsinline",""),a>0&&n.load()});let s=t.slideBackgroundElement;if(s){s.style.display="block";let n=t.slideBackgroundContentElement,a=t.getAttribute("data-background-iframe");if(s.hasAttribute("data-loaded")===!1){s.setAttribute("data-loaded","true");let r=t.getAttribute("data-background-image"),c=t.getAttribute("data-background-video"),o=t.hasAttribute("data-background-video-loop"),u=t.hasAttribute("data-background-video-muted");if(r)/^data:/.test(r.trim())?n.style.backgroundImage=`url(${r.trim()})`:n.style.backgroundImage=r.split(",").map(h=>`url(${En(decodeURI(h.trim()))})`).join(",");else if(c){let h=document.createElement("video");o&&h.setAttribute("loop",""),(u||this.Reveal.isSpeakerNotes())&&(h.muted=!0),Le&&h.setAttribute("playsinline",""),c.split(",").forEach(g=>{let p=document.createElement("source");p.setAttribute("src",g);let d=Sn(g);d&&p.setAttribute("type",d),h.appendChild(p)}),n.appendChild(h)}else if(a&&e.excludeIframes!==!0){let h=document.createElement("iframe");h.setAttribute("allowfullscreen",""),h.setAttribute("mozallowfullscreen",""),h.setAttribute("webkitallowfullscreen",""),h.setAttribute("allow","autoplay"),h.setAttribute("data-src",a),h.style.width="100%",h.style.height="100%",h.style.maxHeight="100%",h.style.maxWidth="100%",n.appendChild(h)}}let l=n.querySelector("iframe[data-src]");l&&this.shouldPreload(s)&&!/autoplay=(1|true|yes)/gi.test(a)&&l.getAttribute("src")!==a&&l.setAttribute("src",a)}this.layout(t)}layout(t){Array.from(t.querySelectorAll(".r-fit-text")).forEach(e=>{Rn(e,{minSize:24,maxSize:this.Reveal.getConfig().height*.8,observeMutations:!1,observeWindow:!1})})}unload(t){t.style.display="none";let e=this.Reveal.getSlideBackground(t);e&&(e.style.display="none",P(e,"iframe[src]").forEach(i=>{i.removeAttribute("src")})),P(t,"video[data-lazy-loaded][src], audio[data-lazy-loaded][src], iframe[data-lazy-loaded][src]").forEach(i=>{i.setAttribute("data-src",i.getAttribute("src")),i.removeAttribute("src")}),P(t,"video[data-lazy-loaded] source[src], audio source[src]").forEach(i=>{i.setAttribute("data-src",i.getAttribute("src")),i.removeAttribute("src")})}formatEmbeddedContent(){let t=(e,i,s)=>{P(this.Reveal.getSlidesElement(),"iframe["+e+'*="'+i+'"]').forEach(n=>{let a=n.getAttribute(e);a&&a.indexOf(s)===-1&&n.setAttribute(e,a+(/\?/.test(a)?"&":"?")+s)})};t("src","youtube.com/embed/","enablejsapi=1"),t("data-src","youtube.com/embed/","enablejsapi=1"),t("src","player.vimeo.com/","api=1"),t("data-src","player.vimeo.com/","api=1")}startEmbeddedContent(t){if(t){let e=this.Reveal.isSpeakerNotes();P(t,'img[src$=".gif"]').forEach(i=>{i.setAttribute("src",i.getAttribute("src"))}),P(t,"video, audio").forEach(i=>{if(se(i,".fragment")&&!se(i,".fragment.visible"))return;let s=this.Reveal.getConfig().autoPlayMedia;if(typeof s!="boolean"&&(s=i.hasAttribute("data-autoplay")||!!se(i,".slide-background")),s&&typeof i.play=="function"){if(e&&!i.muted)return;i.readyState>1?this.startEmbeddedMedia({target:i}):Le?(i.addEventListener("canplay",this.ensureMobileMediaPlaying),this.playMediaElement(i)):(i.removeEventListener("loadeddata",this.startEmbeddedMedia),i.addEventListener("loadeddata",this.startEmbeddedMedia))}}),e||(P(t,"iframe[src]").forEach(i=>{se(i,".fragment")&&!se(i,".fragment.visible")||this.startEmbeddedIframe({target:i})}),P(t,"iframe[data-src]").forEach(i=>{se(i,".fragment")&&!se(i,".fragment.visible")||i.getAttribute("src")!==i.getAttribute("data-src")&&(i.removeEventListener("load",this.startEmbeddedIframe),i.addEventListener("load",this.startEmbeddedIframe),i.setAttribute("src",i.getAttribute("data-src")))}))}}ensureMobileMediaPlaying(t){let e=t.target;typeof e.getVideoPlaybackQuality=="function"&&setTimeout(()=>{let i=e.paused===!1,s=e.getVideoPlaybackQuality().totalVideoFrames;i&&s===0&&(e.load(),e.play())},1e3)}startEmbeddedMedia(t){let e=!!se(t.target,"html"),i=!!se(t.target,".present");e&&i&&(t.target.paused||t.target.ended)&&(t.target.currentTime=0,this.playMediaElement(t.target)),t.target.removeEventListener("loadeddata",this.startEmbeddedMedia)}playMediaElement(t){let e=t.play();e&&typeof e.catch=="function"&&e.then(()=>{t.muted||(this.allowedToPlayAudio=!0)}).catch(i=>{if(i.name==="NotAllowedError")if(this.allowedToPlayAudio=!1,t.tagName==="VIDEO"){this.onVideoPlaybackNotAllowed(t);let s=!!se(t,"html"),n=!!se(t,".present"),a=t.muted;s&&n&&!a&&(t.setAttribute("data-muted-by-reveal","true"),t.muted=!0,t.play().catch(()=>{this.onMutedVideoPlaybackNotAllowed(t)}))}else t.tagName==="AUDIO"&&this.onAudioPlaybackNotAllowed(t)})}startEmbeddedIframe(t){let e=t.target;if(this.preventIframeAutoFocus(t),e&&e.contentWindow){let i=!!se(t.target,"html"),s=!!se(t.target,".present");if(i&&s){let n=this.Reveal.getConfig().autoPlayMedia;typeof n!="boolean"&&(n=e.hasAttribute("data-autoplay")||!!se(e,".slide-background")),/youtube\.com\/embed\//.test(e.getAttribute("src"))&&n?e.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*"):/player\.vimeo\.com\//.test(e.getAttribute("src"))&&n?e.contentWindow.postMessage('{"method":"play"}',"*"):e.contentWindow.postMessage("slide:start","*")}}}stopEmbeddedContent(t,e={}){e=De({unloadIframes:!0},e),t&&t.parentNode&&(P(t,"video, audio").forEach(i=>{!i.hasAttribute("data-ignore")&&typeof i.pause=="function"&&(i.setAttribute("data-paused-by-reveal",""),i.pause(),Le&&i.removeEventListener("canplay",this.ensureMobileMediaPlaying))}),P(t,"iframe").forEach(i=>{i.contentWindow&&i.contentWindow.postMessage("slide:stop","*"),i.removeEventListener("load",this.preventIframeAutoFocus),i.removeEventListener("load",this.startEmbeddedIframe)}),P(t,'iframe[src*="youtube.com/embed/"]').forEach(i=>{!i.hasAttribute("data-ignore")&&i.contentWindow&&typeof i.contentWindow.postMessage=="function"&&i.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*")}),P(t,'iframe[src*="player.vimeo.com/"]').forEach(i=>{!i.hasAttribute("data-ignore")&&i.contentWindow&&typeof i.contentWindow.postMessage=="function"&&i.contentWindow.postMessage('{"method":"pause"}',"*")}),e.unloadIframes===!0&&P(t,"iframe[data-src]").forEach(i=>{i.setAttribute("src","about:blank"),i.removeAttribute("src")}))}isAllowedToPlayAudio(){return this.allowedToPlayAudio}showPlayOrUnmuteButton(){let t=this.failedAudioPlaybackTargets.size,e=this.failedVideoPlaybackTargets.size,i=this.failedMutedVideoPlaybackTargets.size,s="Play media";i>0?s="Play video":e>0?s="Unmute video":t>0&&(s="Play audio"),this.mediaPlayButton.textContent=s,this.Reveal.getRevealElement().appendChild(this.mediaPlayButton)}onAudioPlaybackNotAllowed(t){this.failedAudioPlaybackTargets.add(t),this.showPlayOrUnmuteButton(t)}onVideoPlaybackNotAllowed(t){this.failedVideoPlaybackTargets.add(t),this.showPlayOrUnmuteButton()}onMutedVideoPlaybackNotAllowed(t){this.failedMutedVideoPlaybackTargets.add(t),this.showPlayOrUnmuteButton()}resetTemporarilyMutedMedia(){new Set([...this.failedAudioPlaybackTargets,...this.failedVideoPlaybackTargets,...this.failedMutedVideoPlaybackTargets]).forEach(t=>{t.hasAttribute("data-muted-by-reveal")&&(t.muted=!1,t.removeAttribute("data-muted-by-reveal"))})}clearMediaPlaybackErrors(){this.resetTemporarilyMutedMedia(),this.failedAudioPlaybackTargets.clear(),this.failedVideoPlaybackTargets.clear(),this.failedMutedVideoPlaybackTargets.clear(),this.mediaPlayButton.remove()}preventIframeAutoFocus(t){let e=t.target;if(e&&this.Reveal.getConfig().preventIframeAutoFocus){let i=0,s=()=>{document.activeElement===e?document.activeElement.blur():i<1e3&&(i+=100,setTimeout(s,100))};setTimeout(s,100)}}afterSlideChanged(){this.clearMediaPlaybackErrors()}},Pe=".slides section",ye=".slides>section",Ht=".slides>section.present>section",Tn=".backgrounds>.slide-background",Ln=/registerPlugin|registerKeyboardShortcut|addKeyBinding|addEventListener|showPreview/,Pn="h.v",Cn="h/v",_t="c",Mi="c/t",In=class{constructor(t){this.Reveal=t}render(){this.element=document.createElement("div"),this.element.className="slide-number",this.Reveal.getRevealElement().appendChild(this.element)}configure(t,e){let i="none";t.slideNumber&&!this.Reveal.isPrintView()&&(t.showSlideNumber==="all"||t.showSlideNumber==="speaker"&&this.Reveal.isSpeakerNotes())&&(i="block"),this.element.style.display=i}update(){this.Reveal.getConfig().slideNumber&&this.element&&(this.element.innerHTML=this.getSlideNumber())}getSlideNumber(t=this.Reveal.getCurrentSlide()){let e=this.Reveal.getConfig(),i,s=Pn;if(typeof e.slideNumber=="function")i=e.slideNumber(t);else{typeof e.slideNumber=="string"&&(s=e.slideNumber),!/c/.test(s)&&this.Reveal.getHorizontalSlides().length===1&&(s=_t);let a=t&&t.dataset.visibility==="uncounted"?0:1;switch(i=[],s){case _t:i.push(this.Reveal.getSlidePastCount(t)+a);break;case Mi:i.push(this.Reveal.getSlidePastCount(t)+a,"/",this.Reveal.getTotalSlides());break;default:let l=this.Reveal.getIndices(t);i.push(l.h+a);let r=s===Cn?"/":".";this.Reveal.isVerticalSlide(t)&&i.push(r,l.v+1)}}let n="#"+this.Reveal.location.getHash(t);return this.formatNumber(i[0],i[1],i[2],n)}formatNumber(t,e,i,s="#"+this.Reveal.location.getHash()){return typeof i=="number"&&!isNaN(i)?`<a href="${s}">
2
2
  <span class="slide-number-a">${t}</span>
3
3
  <span class="slide-number-delimiter">${e}</span>
4
4
  <span class="slide-number-b">${i}</span>
5
5
  </a>`:`<a href="${s}">
6
6
  <span class="slide-number-a">${t}</span>
7
- </a>`}destroy(){this.element.remove()}},Mn=class{constructor(t){this.Reveal=t,this.onInput=this.onInput.bind(this),this.onBlur=this.onBlur.bind(this),this.onKeyDown=this.onKeyDown.bind(this)}render(){this.element=document.createElement("div"),this.element.className="jump-to-slide",this.jumpInput=document.createElement("input"),this.jumpInput.type="text",this.jumpInput.className="jump-to-slide-input",this.jumpInput.placeholder="Jump to slide",this.jumpInput.addEventListener("input",this.onInput),this.jumpInput.addEventListener("keydown",this.onKeyDown),this.jumpInput.addEventListener("blur",this.onBlur),this.element.appendChild(this.jumpInput)}show(){this.indicesOnShow=this.Reveal.getIndices(),this.Reveal.getRevealElement().appendChild(this.element),this.jumpInput.focus()}hide(){this.isVisible()&&(this.element.remove(),this.jumpInput.value="",clearTimeout(this.jumpTimeout),delete this.jumpTimeout)}isVisible(){return!!this.element.parentNode}jump(){clearTimeout(this.jumpTimeout),delete this.jumpTimeout;let t=this.jumpInput.value.trim(""),e;if(/^\d+$/.test(t)){let i=this.Reveal.getConfig().slideNumber;if(i===Dt||i===Mi){let s=this.Reveal.getSlides()[parseInt(t,10)-1];s&&(e=this.Reveal.getIndices(s))}}return e||(e=(/^\d+\.\d+$/.test(t)&&(t=t.replace(".","/")),this.Reveal.location.getIndicesFromHash(t,{oneBasedIndex:!0}))),!e&&/\S+/i.test(t)&&t.length>1&&(e=this.search(t)),e&&t!==""?(this.Reveal.slide(e.h,e.v,e.f),!0):(this.Reveal.slide(this.indicesOnShow.h,this.indicesOnShow.v,this.indicesOnShow.f),!1)}jumpAfter(t){clearTimeout(this.jumpTimeout),this.jumpTimeout=setTimeout(()=>this.jump(),t)}search(t){let e=RegExp("\\b"+t.trim()+"\\b","i"),i=this.Reveal.getSlides().find(s=>e.test(s.innerText));return i?this.Reveal.getIndices(i):null}cancel(){this.Reveal.slide(this.indicesOnShow.h,this.indicesOnShow.v,this.indicesOnShow.f),this.hide()}confirm(){this.jump(),this.hide()}destroy(){this.jumpInput.removeEventListener("input",this.onInput),this.jumpInput.removeEventListener("keydown",this.onKeyDown),this.jumpInput.removeEventListener("blur",this.onBlur),this.element.remove()}onKeyDown(t){t.keyCode===13?this.confirm():t.keyCode===27&&(this.cancel(),t.stopImmediatePropagation())}onInput(t){this.jumpAfter(200)}onBlur(){setTimeout(()=>this.hide(),1)}},Ht=t=>{let e=t.match(/^#([0-9a-f]{3})$/i);if(e&&e[1]){let a=e[1];return{r:parseInt(a.charAt(0),16)*17,g:parseInt(a.charAt(1),16)*17,b:parseInt(a.charAt(2),16)*17}}let i=t.match(/^#([0-9a-f]{6})$/i);if(i&&i[1]){let a=i[1];return{r:parseInt(a.slice(0,2),16),g:parseInt(a.slice(2,4),16),b:parseInt(a.slice(4,6),16)}}let s=t.match(/^rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)$/i);if(s)return{r:parseInt(s[1],10),g:parseInt(s[2],10),b:parseInt(s[3],10)};let n=t.match(/^rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d]+|[\d]*.[\d]+)\s*\)$/i);return n?{r:parseInt(n[1],10),g:parseInt(n[2],10),b:parseInt(n[3],10),a:parseFloat(n[4])}:null},Nn=t=>(typeof t=="string"&&(t=Ht(t)),t?(t.r*299+t.g*587+t.b*114)/1e3:null),zn=class{constructor(t){this.Reveal=t}render(){this.element=document.createElement("div"),this.element.className="backgrounds",this.Reveal.getRevealElement().appendChild(this.element)}create(){this.element.innerHTML="",this.element.classList.add("no-transition"),this.Reveal.getHorizontalSlides().forEach(t=>{let e=this.createBackground(t,this.element);I(t,"section").forEach(i=>{this.createBackground(i,e),e.classList.add("stack")})}),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(()=>{this.Reveal.getRevealElement().classList.add("has-parallax-background")},1)):(this.element.style.backgroundImage="",this.Reveal.getRevealElement().classList.remove("has-parallax-background"))}createBackground(t,e){let i=document.createElement("div");i.className="slide-background "+t.className.replace(/present|past|future/,"");let s=document.createElement("div");return s.className="slide-background-content",i.appendChild(s),e.appendChild(i),t.slideBackgroundElement=i,t.slideBackgroundContentElement=s,this.sync(t),i}sync(t){let e=t.slideBackgroundElement,i=t.slideBackgroundContentElement,s={background:t.getAttribute("data-background"),backgroundSize:t.getAttribute("data-background-size"),backgroundImage:t.getAttribute("data-background-image"),backgroundVideo:t.getAttribute("data-background-video"),backgroundIframe:t.getAttribute("data-background-iframe"),backgroundColor:t.getAttribute("data-background-color"),backgroundGradient:t.getAttribute("data-background-gradient"),backgroundRepeat:t.getAttribute("data-background-repeat"),backgroundPosition:t.getAttribute("data-background-position"),backgroundTransition:t.getAttribute("data-background-transition"),backgroundOpacity:t.getAttribute("data-background-opacity")},n=t.hasAttribute("data-preload");t.classList.remove("has-dark-background"),t.classList.remove("has-light-background"),e.removeAttribute("data-loaded"),e.removeAttribute("data-background-hash"),e.removeAttribute("data-background-size"),e.removeAttribute("data-background-transition"),e.style.backgroundColor="",i.style.backgroundSize="",i.style.backgroundRepeat="",i.style.backgroundPosition="",i.style.backgroundImage="",i.style.opacity="",i.innerHTML="",s.background&&(/^(http|file|\/\/)/gi.test(s.background)||/\.(svg|png|jpg|jpeg|gif|bmp|webp)([?#\s]|$)/gi.test(s.background)?t.setAttribute("data-background-image",s.background):e.style.background=s.background),(s.background||s.backgroundColor||s.backgroundGradient||s.backgroundImage||s.backgroundVideo||s.backgroundIframe)&&e.setAttribute("data-background-hash",s.background+s.backgroundSize+s.backgroundImage+s.backgroundVideo+s.backgroundIframe+s.backgroundColor+s.backgroundGradient+s.backgroundRepeat+s.backgroundPosition+s.backgroundTransition+s.backgroundOpacity),s.backgroundSize&&e.setAttribute("data-background-size",s.backgroundSize),s.backgroundColor&&(e.style.backgroundColor=s.backgroundColor),s.backgroundGradient&&(e.style.backgroundImage=s.backgroundGradient),s.backgroundTransition&&e.setAttribute("data-background-transition",s.backgroundTransition),n&&e.setAttribute("data-preload",""),s.backgroundSize&&(i.style.backgroundSize=s.backgroundSize),s.backgroundRepeat&&(i.style.backgroundRepeat=s.backgroundRepeat),s.backgroundPosition&&(i.style.backgroundPosition=s.backgroundPosition),s.backgroundOpacity&&(i.style.opacity=s.backgroundOpacity);let a=this.getContrastClass(t);typeof a=="string"&&t.classList.add(a)}getContrastClass(t){let e=t.slideBackgroundElement,i=t.getAttribute("data-background-color");if(!i||!Ht(i)){let s=window.getComputedStyle(e);s&&s.backgroundColor&&(i=s.backgroundColor)}if(i){let s=Ht(i);if(s&&s.a!==0)return Nn(i)<128?"has-dark-background":"has-light-background"}return null}bubbleSlideContrastClassToElement(t,e){["has-light-background","has-dark-background"].forEach(i=>{t.classList.contains(i)?e.classList.add(i):e.classList.remove(i)},this)}update(t=!1){let e=this.Reveal.getConfig(),i=this.Reveal.getCurrentSlide(),s=this.Reveal.getIndices(),n=null,a=e.rtl?"future":"past",l=e.rtl?"past":"future";if(Array.from(this.element.childNodes).forEach((c,o)=>{c.classList.remove("past","present","future"),o<s.h?c.classList.add(a):o>s.h?c.classList.add(l):(c.classList.add("present"),n=c),(t||o===s.h)&&I(c,".slide-background").forEach((d,h)=>{d.classList.remove("past","present","future");let g=typeof s.v=="number"?s.v:0;h<g?d.classList.add("past"):h>g?d.classList.add("future"):(d.classList.add("present"),o===s.h&&(n=d))})}),this.previousBackground&&!this.previousBackground.closest("body")&&(this.previousBackground=null),n&&this.previousBackground){let c=this.previousBackground.getAttribute("data-background-hash"),o=n.getAttribute("data-background-hash");if(o&&o===c&&n!==this.previousBackground){this.element.classList.add("no-transition");let d=n.querySelector("video"),h=this.previousBackground.querySelector("video");if(d&&h){let g=d.parentNode;h.parentNode.appendChild(d),g.appendChild(h)}}}let r=n!==this.previousBackground;if(r&&this.previousBackground&&this.Reveal.slideContent.stopEmbeddedContent(this.previousBackground,{unloadIframes:!this.Reveal.slideContent.shouldPreload(this.previousBackground)}),r&&n){this.Reveal.slideContent.startEmbeddedContent(n);let c=n.querySelector(".slide-background-content");if(c){let o=c.style.backgroundImage||"";/\.gif/i.test(o)&&(c.style.backgroundImage="",window.getComputedStyle(c).opacity,c.style.backgroundImage=o)}this.previousBackground=n}i&&this.bubbleSlideContrastClassToElement(i,this.Reveal.getRevealElement()),setTimeout(()=>{this.element.classList.remove("no-transition")},10)}updateParallax(){let t=this.Reveal.getIndices();if(this.Reveal.getConfig().parallaxBackgroundImage){let e=this.Reveal.getHorizontalSlides(),i=this.Reveal.getVerticalSlides(),s=this.element.style.backgroundSize.split(" "),n,a;s.length===1?n=a=parseInt(s[0],10):(n=parseInt(s[0],10),a=parseInt(s[1],10));let l=this.element.offsetWidth,r=e.length,c,o;c=typeof this.Reveal.getConfig().parallaxBackgroundHorizontal=="number"?this.Reveal.getConfig().parallaxBackgroundHorizontal:r>1?(n-l)/(r-1):0,o=c*t.h*-1;let d=this.element.offsetHeight,h=i.length,g,p;g=typeof this.Reveal.getConfig().parallaxBackgroundVertical=="number"?this.Reveal.getConfig().parallaxBackgroundVertical:(a-d)/(h-1),p=h>0?g*t.v:0,this.element.style.backgroundPosition=o+"px "+-p+"px"}}destroy(){this.element.remove()}},Ni=0,$n=class{constructor(t){this.Reveal=t}run(t,e){this.reset();let i=this.Reveal.getSlides(),s=i.indexOf(e),n=i.indexOf(t);if(t&&e&&t.hasAttribute("data-auto-animate")&&e.hasAttribute("data-auto-animate")&&t.getAttribute("data-auto-animate-id")===e.getAttribute("data-auto-animate-id")&&!(s>n?e:t).hasAttribute("data-auto-animate-restart")){this.autoAnimateStyleSheet=this.autoAnimateStyleSheet||$t();let a=this.getAutoAnimateOptions(e);t.dataset.autoAnimate="pending",e.dataset.autoAnimate="pending",a.slideDirection=s>n?"forward":"backward";let l=t.style.display==="none";l&&(t.style.display=this.Reveal.getConfig().display);let r=this.getAutoAnimatableElements(t,e).map(c=>this.autoAnimateElements(c.from,c.to,c.options||{},a,Ni++));if(l&&(t.style.display="none"),e.dataset.autoAnimateUnmatched!=="false"&&this.Reveal.getConfig().autoAnimateUnmatched===!0){let c=a.duration*.8,o=a.duration*.2;this.getUnmatchedAutoAnimateElements(e).forEach(d=>{let h=this.getAutoAnimateOptions(d,a),g="unmatched";(h.duration!==a.duration||h.delay!==a.delay)&&(g="unmatched-"+Ni++,r.push(`[data-auto-animate="running"] [data-auto-animate-target="${g}"] { transition: opacity ${h.duration}s ease ${h.delay}s; }`)),d.dataset.autoAnimateTarget=g},this),r.push(`[data-auto-animate="running"] [data-auto-animate-target="unmatched"] { transition: opacity ${c}s ease ${o}s; }`)}this.autoAnimateStyleSheet.innerHTML=r.join(""),requestAnimationFrame(()=>{this.autoAnimateStyleSheet&&(getComputedStyle(this.autoAnimateStyleSheet).fontWeight,e.dataset.autoAnimate="running")}),this.Reveal.dispatchEvent({type:"autoanimate",data:{fromSlide:t,toSlide:e,sheet:this.autoAnimateStyleSheet}})}}reset(){I(this.Reveal.getRevealElement(),'[data-auto-animate]:not([data-auto-animate=""])').forEach(t=>{t.dataset.autoAnimate=""}),I(this.Reveal.getRevealElement(),"[data-auto-animate-target]").forEach(t=>{delete t.dataset.autoAnimateTarget}),this.autoAnimateStyleSheet&&this.autoAnimateStyleSheet.parentNode&&(this.autoAnimateStyleSheet.parentNode.removeChild(this.autoAnimateStyleSheet),this.autoAnimateStyleSheet=null)}autoAnimateElements(t,e,i,s,n){t.dataset.autoAnimateTarget="",e.dataset.autoAnimateTarget=n;let a=this.getAutoAnimateOptions(e,s);i.delay!==void 0&&(a.delay=i.delay),i.duration!==void 0&&(a.duration=i.duration),i.easing!==void 0&&(a.easing=i.easing);let l=this.getAutoAnimatableProperties("from",t,i),r=this.getAutoAnimatableProperties("to",e,i);if(e.classList.contains("fragment")&&delete r.styles.opacity,i.translate!==!1||i.scale!==!1){let d=this.Reveal.getScale(),h={x:(l.x-r.x)/d,y:(l.y-r.y)/d,scaleX:l.width/r.width,scaleY:l.height/r.height};h.x=Math.round(h.x*1e3)/1e3,h.y=Math.round(h.y*1e3)/1e3,h.scaleX=Math.round(h.scaleX*1e3)/1e3,h.scaleX=Math.round(h.scaleX*1e3)/1e3;let g=i.translate!==!1&&(h.x!==0||h.y!==0),p=i.scale!==!1&&(h.scaleX!==0||h.scaleY!==0);if(g||p){let u=[];g&&u.push(`translate(${h.x}px, ${h.y}px)`),p&&u.push(`scale(${h.scaleX}, ${h.scaleY})`),l.styles.transform=u.join(" "),l.styles["transform-origin"]="top left",r.styles.transform="none"}}for(let d in r.styles){let h=r.styles[d],g=l.styles[d];h===g?delete r.styles[d]:(h.explicitValue===!0&&(r.styles[d]=h.value),g.explicitValue===!0&&(l.styles[d]=g.value))}let c="",o=Object.keys(r.styles);if(o.length>0){l.styles.transition="none",r.styles.transition=`all ${a.duration}s ${a.easing} ${a.delay}s`,r.styles["transition-property"]=o.join(", "),r.styles["will-change"]=o.join(", ");let d=Object.keys(l.styles).map(g=>g+": "+l.styles[g]+" !important;").join(""),h=Object.keys(r.styles).map(g=>g+": "+r.styles[g]+" !important;").join("");c='[data-auto-animate-target="'+n+'"] {'+d+'}[data-auto-animate="running"] [data-auto-animate-target="'+n+'"] {'+h+"}"}return c}getAutoAnimateOptions(t,e){let i={easing:this.Reveal.getConfig().autoAnimateEasing,duration:this.Reveal.getConfig().autoAnimateDuration,delay:0};if(i=De(i,e),t.parentNode){let s=se(t.parentNode,"[data-auto-animate-target]");s&&(i=this.getAutoAnimateOptions(s,i))}return t.dataset.autoAnimateEasing&&(i.easing=t.dataset.autoAnimateEasing),t.dataset.autoAnimateDuration&&(i.duration=parseFloat(t.dataset.autoAnimateDuration)),t.dataset.autoAnimateDelay&&(i.delay=parseFloat(t.dataset.autoAnimateDelay)),i}getAutoAnimatableProperties(t,e,i){let s=this.Reveal.getConfig(),n={styles:[]};if(i.translate!==!1||i.scale!==!1){let l;if(typeof i.measure=="function")l=i.measure(e);else if(s.center)l=e.getBoundingClientRect();else{let r=this.Reveal.getScale();l={x:e.offsetLeft*r,y:e.offsetTop*r,width:e.offsetWidth*r,height:e.offsetHeight*r}}n.x=l.x,n.y=l.y,n.width=l.width,n.height=l.height}let a=getComputedStyle(e);return(i.styles||s.autoAnimateStyles).forEach(l=>{let r;typeof l=="string"&&(l={property:l}),l.from!==void 0&&t==="from"?r={value:l.from,explicitValue:!0}:l.to!==void 0&&t==="to"?r={value:l.to,explicitValue:!0}:(l.property==="line-height"&&(r=parseFloat(a["line-height"])/parseFloat(a["font-size"])),isNaN(r)&&(r=a[l.property])),r!==""&&(n.styles[l.property]=r)}),n}getAutoAnimatableElements(t,e){let i=(typeof this.Reveal.getConfig().autoAnimateMatcher=="function"?this.Reveal.getConfig().autoAnimateMatcher:this.getAutoAnimatePairs).call(this,t,e),s=[];return i.filter((n,a)=>{if(s.indexOf(n.to)===-1)return s.push(n.to),!0})}getAutoAnimatePairs(t,e){let i=[],s="h1, h2, h3, h4, h5, h6, p, li";return this.findAutoAnimateMatches(i,t,e,"[data-id]",n=>n.nodeName+":::"+n.getAttribute("data-id")),this.findAutoAnimateMatches(i,t,e,s,n=>n.nodeName+":::"+n.textContent.trim()),this.findAutoAnimateMatches(i,t,e,"img, video, iframe",n=>n.nodeName+":::"+(n.getAttribute("src")||n.getAttribute("data-src"))),this.findAutoAnimateMatches(i,t,e,"pre",n=>n.nodeName+":::"+n.textContent.trim()),i.forEach(n=>{tt(n.from,s)?n.options={scale:!1}:tt(n.from,"pre")&&(n.options={scale:!1,styles:["width","height"]},this.findAutoAnimateMatches(i,n.from,n.to,".hljs .hljs-ln-code",a=>a.textContent,{scale:!1,styles:[],measure:this.getLocalBoundingBox.bind(this)}),this.findAutoAnimateMatches(i,n.from,n.to,".hljs .hljs-ln-numbers[data-line-number]",a=>a.getAttribute("data-line-number"),{scale:!1,styles:["width"],measure:this.getLocalBoundingBox.bind(this)}))},this),i}getLocalBoundingBox(t){let e=this.Reveal.getScale();return{x:Math.round(t.offsetLeft*e*100)/100,y:Math.round(t.offsetTop*e*100)/100,width:Math.round(t.offsetWidth*e*100)/100,height:Math.round(t.offsetHeight*e*100)/100}}findAutoAnimateMatches(t,e,i,s,n,a){let l={},r={};[].slice.call(e.querySelectorAll(s)).forEach((c,o)=>{let d=n(c);typeof d=="string"&&d.length&&(l[d]=l[d]||[],l[d].push(c))}),[].slice.call(i.querySelectorAll(s)).forEach((c,o)=>{let d=n(c);r[d]=r[d]||[],r[d].push(c);let h;if(l[d]){let g=r[d].length-1,p=l[d].length-1;l[d][g]?(h=l[d][g],l[d][g]=null):l[d][p]&&(h=l[d][p],l[d][p]=null)}h&&t.push({from:h,to:c,options:a})})}getUnmatchedAutoAnimateElements(t){return[].slice.call(t.children).reduce((e,i)=>{let s=i.querySelector("[data-auto-animate-target]");return!i.hasAttribute("data-auto-animate-target")&&!s&&e.push(i),i.querySelector("[data-auto-animate-target]")&&(e=e.concat(this.getUnmatchedAutoAnimateElements(i))),e},[])}},Bn=500,Dn=4,Hn=6,_n=8,qn=class{constructor(t){this.Reveal=t,this.active=!1,this.activatedCallbacks=[],this.onScroll=this.onScroll.bind(this)}activate(){if(this.active)return;let t=this.Reveal.getState();this.active=!0,this.slideHTMLBeforeActivation=this.Reveal.getSlidesElement().innerHTML;let e=I(this.Reveal.getRevealElement(),ye),i=I(this.Reveal.getRevealElement(),Tn);this.viewportElement.classList.add("loading-scroll-mode","reveal-scroll");let s,n=window.getComputedStyle(this.viewportElement);n&&n.background&&(s=n.background);let a=[],l=e[0].parentNode,r,c=(o,d,h,g)=>{let p;if(r&&this.Reveal.shouldAutoAnimateBetween(r,o))p=document.createElement("div"),p.className="scroll-page-content scroll-auto-animate-page",p.style.display="none",r.closest(".scroll-page-content").parentNode.appendChild(p);else{let u=document.createElement("div");if(u.className="scroll-page",a.push(u),g&&i.length>d){let y=i[d],N=window.getComputedStyle(y);N&&N.background?u.style.background=N.background:s&&(u.style.background=s)}else s&&(u.style.background=s);let b=document.createElement("div");b.className="scroll-page-sticky",u.appendChild(b),p=document.createElement("div"),p.className="scroll-page-content",b.appendChild(p)}p.appendChild(o),o.classList.remove("past","future"),o.setAttribute("data-index-h",d),o.setAttribute("data-index-v",h),o.slideBackgroundElement&&(o.slideBackgroundElement.remove("past","future"),p.insertBefore(o.slideBackgroundElement,o)),r=o};e.forEach((o,d)=>{this.Reveal.isVerticalStack(o)?o.querySelectorAll("section").forEach((h,g)=>{c(h,d,g,!0)}):c(o,d,0)},this),this.createProgressBar(),I(this.Reveal.getRevealElement(),".stack").forEach(o=>o.remove()),a.forEach(o=>l.appendChild(o)),this.Reveal.slideContent.layout(this.Reveal.getSlidesElement()),this.Reveal.layout(),this.Reveal.setState(t),this.activatedCallbacks.forEach(o=>o()),this.activatedCallbacks=[],this.restoreScrollPosition(),this.viewportElement.classList.remove("loading-scroll-mode"),this.viewportElement.addEventListener("scroll",this.onScroll,{passive:!0})}deactivate(){if(!this.active)return;let t=this.Reveal.getState();this.active=!1,this.viewportElement.removeEventListener("scroll",this.onScroll),this.viewportElement.classList.remove("reveal-scroll"),this.removeProgressBar(),this.Reveal.getSlidesElement().innerHTML=this.slideHTMLBeforeActivation,this.Reveal.sync(),this.Reveal.setState(t),this.slideHTMLBeforeActivation=null}toggle(t){typeof t=="boolean"?t?this.activate():this.deactivate():this.isActive()?this.deactivate():this.activate()}isActive(){return this.active}createProgressBar(){this.progressBar=document.createElement("div"),this.progressBar.className="scrollbar",this.progressBarInner=document.createElement("div"),this.progressBarInner.className="scrollbar-inner",this.progressBar.appendChild(this.progressBarInner),this.progressBarPlayhead=document.createElement("div"),this.progressBarPlayhead.className="scrollbar-playhead",this.progressBarInner.appendChild(this.progressBarPlayhead),this.viewportElement.insertBefore(this.progressBar,this.viewportElement.firstChild);let t=i=>{let s=(i.clientY-this.progressBarInner.getBoundingClientRect().top)/this.progressBarHeight;s=Math.max(Math.min(s,1),0),this.viewportElement.scrollTop=s*(this.viewportElement.scrollHeight-this.viewportElement.offsetHeight)},e=i=>{this.draggingProgressBar=!1,this.showProgressBar(),document.removeEventListener("mousemove",t),document.removeEventListener("mouseup",e)};this.progressBarInner.addEventListener("mousedown",i=>{i.preventDefault(),this.draggingProgressBar=!0,document.addEventListener("mousemove",t),document.addEventListener("mouseup",e),t(i)})}removeProgressBar(){this.progressBar&&(this.progressBar=(this.progressBar.remove(),null))}layout(){this.isActive()&&(this.syncPages(),this.syncScrollPosition())}syncPages(){let t=this.Reveal.getConfig(),e=this.Reveal.getComputedSlideSize(window.innerWidth,window.innerHeight),i=this.Reveal.getScale(),s=t.scrollLayout==="compact",n=this.viewportElement.offsetHeight,a=e.height*i,l=s?a:n;this.scrollTriggerHeight=s?a:n,this.viewportElement.style.setProperty("--page-height",l+"px"),this.viewportElement.style.scrollSnapType=typeof t.scrollSnap=="string"?`y ${t.scrollSnap}`:"",this.slideTriggers=[],this.pages=Array.from(this.Reveal.getRevealElement().querySelectorAll(".scroll-page")).map(r=>{let c=this.createPage({pageElement:r,slideElement:r.querySelector("section"),stickyElement:r.querySelector(".scroll-page-sticky"),contentElement:r.querySelector(".scroll-page-content"),backgroundElement:r.querySelector(".slide-background"),autoAnimateElements:r.querySelectorAll(".scroll-auto-animate-page"),autoAnimatePages:[]});c.pageElement.style.setProperty("--slide-height",t.center===!0?"auto":e.height+"px"),this.slideTriggers.push({page:c,activate:()=>this.activatePage(c),deactivate:()=>this.deactivatePage(c)}),this.createFragmentTriggersForPage(c),c.autoAnimateElements.length>0&&this.createAutoAnimateTriggersForPage(c);let o=Math.max(c.scrollTriggers.length-1,0);o+=c.autoAnimatePages.reduce((d,h)=>d+Math.max(h.scrollTriggers.length-1,0),c.autoAnimatePages.length),c.pageElement.querySelectorAll(".scroll-snap-point").forEach(d=>d.remove());for(let d=0;d<o+1;d++){let h=document.createElement("div");h.className="scroll-snap-point",h.style.height=this.scrollTriggerHeight+"px",h.style.scrollSnapAlign=s?"center":"start",c.pageElement.appendChild(h),d===0&&(h.style.marginTop=-this.scrollTriggerHeight+"px")}return s&&c.scrollTriggers.length>0?(c.pageHeight=n,c.pageElement.style.setProperty("--page-height",n+"px")):(c.pageHeight=l,c.pageElement.style.removeProperty("--page-height")),c.scrollPadding=this.scrollTriggerHeight*o,c.totalHeight=c.pageHeight+c.scrollPadding,c.pageElement.style.setProperty("--page-scroll-padding",c.scrollPadding+"px"),o>0?(c.stickyElement.style.position="sticky",c.stickyElement.style.top=Math.max((n-c.pageHeight)/2,0)+"px"):(c.stickyElement.style.position="relative",c.pageElement.style.scrollSnapAlign=c.pageHeight<n?"center":"start"),c}),this.setTriggerRanges(),this.viewportElement.setAttribute("data-scrollbar",t.scrollProgress),t.scrollProgress&&this.totalScrollTriggerCount>1?(this.progressBar||this.createProgressBar(),this.syncProgressBar()):this.removeProgressBar()}setTriggerRanges(){this.totalScrollTriggerCount=this.slideTriggers.reduce((e,i)=>e+Math.max(i.page.scrollTriggers.length,1),0);let t=0;this.slideTriggers.forEach((e,i)=>{e.range=[t,t+Math.max(e.page.scrollTriggers.length,1)/this.totalScrollTriggerCount];let s=(e.range[1]-e.range[0])/e.page.scrollTriggers.length;e.page.scrollTriggers.forEach((n,a)=>{n.range=[t+a*s,t+(a+1)*s]}),t=e.range[1]}),this.slideTriggers[this.slideTriggers.length-1].range[1]=1}createFragmentTriggersForPage(t,e){e||(e=t.slideElement);let i=this.Reveal.fragments.sort(e.querySelectorAll(".fragment"),!0);return i.length&&(t.fragments=this.Reveal.fragments.sort(e.querySelectorAll(".fragment:not(.disabled)")),t.scrollTriggers.push({activate:()=>{this.Reveal.fragments.update(-1,t.fragments,e)}}),i.forEach((s,n)=>{t.scrollTriggers.push({activate:()=>{this.Reveal.fragments.update(n,t.fragments,e)}})})),t.scrollTriggers.length}createAutoAnimateTriggersForPage(t){t.autoAnimateElements.length>0&&this.slideTriggers.push(...Array.from(t.autoAnimateElements).map((e,i)=>{let s=this.createPage({slideElement:e.querySelector("section"),contentElement:e,backgroundElement:e.querySelector(".slide-background")});return this.createFragmentTriggersForPage(s,s.slideElement),t.autoAnimatePages.push(s),{page:s,activate:()=>this.activatePage(s),deactivate:()=>this.deactivatePage(s)}}))}createPage(t){return t.scrollTriggers=[],t.indexh=parseInt(t.slideElement.getAttribute("data-index-h"),10),t.indexv=parseInt(t.slideElement.getAttribute("data-index-v"),10),t}syncProgressBar(){this.progressBarInner.querySelectorAll(".scrollbar-slide").forEach(a=>a.remove());let t=this.viewportElement.scrollHeight,e=this.viewportElement.offsetHeight,i=e/t;this.progressBarHeight=this.progressBarInner.offsetHeight,this.playheadHeight=Math.max(i*this.progressBarHeight,_n),this.progressBarScrollableHeight=this.progressBarHeight-this.playheadHeight;let s=e/t*this.progressBarHeight,n=Math.min(s/8,Dn);this.progressBarPlayhead.style.height=this.playheadHeight-n+"px",s>Hn?this.slideTriggers.forEach(a=>{let{page:l}=a;l.progressBarSlide=document.createElement("div"),l.progressBarSlide.className="scrollbar-slide",l.progressBarSlide.style.top=a.range[0]*this.progressBarHeight+"px",l.progressBarSlide.style.height=(a.range[1]-a.range[0])*this.progressBarHeight-n+"px",l.progressBarSlide.classList.toggle("has-triggers",l.scrollTriggers.length>0),this.progressBarInner.appendChild(l.progressBarSlide),l.scrollTriggerElements=l.scrollTriggers.map((r,c)=>{let o=document.createElement("div");return o.className="scrollbar-trigger",o.style.top=(r.range[0]-a.range[0])*this.progressBarHeight+"px",o.style.height=(r.range[1]-r.range[0])*this.progressBarHeight-n+"px",l.progressBarSlide.appendChild(o),c===0&&(o.style.display="none"),o})}):this.pages.forEach(a=>a.progressBarSlide=null)}syncScrollPosition(){let t=this.viewportElement.offsetHeight,e=t/this.viewportElement.scrollHeight,i=this.viewportElement.scrollTop,s=this.viewportElement.scrollHeight-t,n=Math.max(Math.min(i/s,1),0),a=Math.max(Math.min((i+t/2)/this.viewportElement.scrollHeight,1),0),l;this.slideTriggers.forEach(r=>{let{page:c}=r;n>=r.range[0]-e*2&&n<=r.range[1]+e*2&&!c.loaded?(c.loaded=!0,this.Reveal.slideContent.load(c.slideElement)):c.loaded&&(c.loaded=!1,this.Reveal.slideContent.unload(c.slideElement)),n>=r.range[0]&&n<=r.range[1]?(this.activateTrigger(r),l=r.page):r.active&&this.deactivateTrigger(r)}),l&&l.scrollTriggers.forEach(r=>{a>=r.range[0]&&a<=r.range[1]?this.activateTrigger(r):r.active&&this.deactivateTrigger(r)}),this.setProgressBarValue(i/(this.viewportElement.scrollHeight-t))}setProgressBarValue(t){this.progressBar&&(this.progressBarPlayhead.style.transform=`translateY(${t*this.progressBarScrollableHeight}px)`,this.getAllPages().filter(e=>e.progressBarSlide).forEach(e=>{e.progressBarSlide.classList.toggle("active",e.active===!0),e.scrollTriggers.forEach((i,s)=>{e.scrollTriggerElements[s].classList.toggle("active",e.active===!0&&i.active===!0)})}),this.showProgressBar())}showProgressBar(){this.progressBar.classList.add("visible"),clearTimeout(this.hideProgressBarTimeout),this.Reveal.getConfig().scrollProgress==="auto"&&!this.draggingProgressBar&&(this.hideProgressBarTimeout=setTimeout(()=>{this.progressBar&&this.progressBar.classList.remove("visible")},Bn))}prev(){this.viewportElement.scrollTop-=this.scrollTriggerHeight}next(){this.viewportElement.scrollTop+=this.scrollTriggerHeight}scrollToSlide(t){if(!this.active)this.activatedCallbacks.push(()=>this.scrollToSlide(t));else{let e=this.getScrollTriggerBySlide(t);e&&(this.viewportElement.scrollTop=e.range[0]*(this.viewportElement.scrollHeight-this.viewportElement.offsetHeight))}}storeScrollPosition(){clearTimeout(this.storeScrollPositionTimeout),this.storeScrollPositionTimeout=setTimeout(()=>{sessionStorage.setItem("reveal-scroll-top",this.viewportElement.scrollTop),sessionStorage.setItem("reveal-scroll-origin",location.origin+location.pathname),this.storeScrollPositionTimeout=null},50)}restoreScrollPosition(){let t=sessionStorage.getItem("reveal-scroll-top"),e=sessionStorage.getItem("reveal-scroll-origin");t&&e===location.origin+location.pathname&&(this.viewportElement.scrollTop=parseInt(t,10))}activatePage(t){if(!t.active){t.active=!0;let{slideElement:e,backgroundElement:i,contentElement:s,indexh:n,indexv:a}=t;s.style.display="block",e.classList.add("present"),i&&i.classList.add("present"),this.Reveal.setCurrentScrollPage(e,n,a),this.Reveal.backgrounds.bubbleSlideContrastClassToElement(e,this.viewportElement),Array.from(s.parentNode.querySelectorAll(".scroll-page-content")).forEach(l=>{l!==s&&(l.style.display="none")})}}deactivatePage(t){t.active&&(t.active=!1,t.slideElement&&t.slideElement.classList.remove("present"),t.backgroundElement&&t.backgroundElement.classList.remove("present"))}activateTrigger(t){t.active||(t.active=!0,t.activate())}deactivateTrigger(t){t.active&&(t.active=!1,t.deactivate&&t.deactivate())}getSlideByIndices(t,e){let i=this.getAllPages().find(s=>s.indexh===t&&s.indexv===e);return i?i.slideElement:null}getScrollTriggerBySlide(t){return this.slideTriggers.find(e=>e.page.slideElement===t)}getAllPages(){return this.pages.flatMap(t=>[t,...t.autoAnimatePages||[]])}onScroll(){this.syncScrollPosition(),this.storeScrollPosition()}get viewportElement(){return this.Reveal.getViewportElement()}},jn=class{constructor(t){this.Reveal=t}activate(){return kn(this,null,function*(){let t=this.Reveal.getConfig(),e=I(this.Reveal.getRevealElement(),Pe),i=t.slideNumber&&/all|print/i.test(t.showSlideNumber),s=this.Reveal.getComputedSlideSize(window.innerWidth,window.innerHeight),n=Math.floor(s.width*(1+t.margin)),a=Math.floor(s.height*(1+t.margin)),l=s.width,r=s.height;yield new Promise(requestAnimationFrame),$t("@page{size:"+n+"px "+a+"px; margin: 0px;}"),$t(".reveal section>img, .reveal section>video, .reveal section>iframe{max-width: "+l+"px; max-height:"+r+"px}"),document.documentElement.classList.add("reveal-print","print-pdf"),document.body.style.width=n+"px",document.body.style.height=a+"px";let c=this.Reveal.getViewportElement(),o;if(c){let u=window.getComputedStyle(c);u&&u.background&&(o=u.background)}yield new Promise(requestAnimationFrame),this.Reveal.layoutSlideContents(l,r),yield new Promise(requestAnimationFrame);let d=e.map(u=>u.scrollHeight),h=[],g=e[0].parentNode,p=1;e.forEach(function(u,b){if(u.classList.contains("stack")===!1){let y=(n-l)/2,N=(a-r)/2,H=d[b],L=Math.max(Math.ceil(H/a),1);L=Math.min(L,t.pdfMaxPagesPerSlide),(L===1&&t.center||u.classList.contains("center"))&&(N=Math.max((a-H)/2,0));let A=document.createElement("div");if(h.push(A),A.className="pdf-page",A.style.height=(a+t.pdfPageHeightOffset)*L+"px",o&&(A.style.background=o),A.appendChild(u),u.style.left=y+"px",u.style.top=N+"px",u.style.width=l+"px",this.Reveal.slideContent.layout(u),u.slideBackgroundElement&&A.insertBefore(u.slideBackgroundElement,u),t.showNotes){let x=this.Reveal.getSlideNotes(u);if(x){let q=typeof t.showNotes=="string"?t.showNotes:"inline",z=document.createElement("div");z.classList.add("speaker-notes"),z.classList.add("speaker-notes-pdf"),z.setAttribute("data-layout",q),z.innerHTML=x,q==="separate-page"?h.push(z):(z.style.left="8px",z.style.bottom="8px",z.style.width=n-16+"px",A.appendChild(z))}}if(i){let x=document.createElement("div");x.classList.add("slide-number"),x.classList.add("slide-number-pdf"),x.innerHTML=p++,A.appendChild(x)}if(t.pdfSeparateFragments){let x=this.Reveal.fragments.sort(A.querySelectorAll(".fragment"),!0),q;x.forEach(function(z,$){q&&q.forEach(function(T){T.classList.remove("current-fragment")}),z.forEach(function(T){T.classList.add("visible","current-fragment")},this);let _=A.cloneNode(!0);if(i){let T=_.querySelector(".slide-number-pdf"),Q=$+1;T.innerHTML+="."+Q}h.push(_),q=z},this),x.forEach(function(z){z.forEach(function($){$.classList.remove("visible","current-fragment")})})}else I(A,".fragment:not(.fade-out)").forEach(function(x){x.classList.add("visible")})}},this),yield new Promise(requestAnimationFrame),h.forEach(u=>g.appendChild(u)),this.Reveal.slideContent.layout(this.Reveal.getSlidesElement()),this.Reveal.dispatchEvent({type:"pdf-ready"}),c.classList.remove("loading-scroll-mode")})}isActive(){return this.Reveal.getConfig().view==="print"}},On=class{constructor(t){this.Reveal=t}configure(t,e){t.fragments===!1?this.disable():e.fragments===!1&&this.enable()}disable(){I(this.Reveal.getSlidesElement(),".fragment").forEach(t=>{t.classList.add("visible"),t.classList.remove("current-fragment")})}enable(){I(this.Reveal.getSlidesElement(),".fragment").forEach(t=>{t.classList.remove("visible"),t.classList.remove("current-fragment")})}availableRoutes(){let t=this.Reveal.getCurrentSlide();if(t&&this.Reveal.getConfig().fragments){let e=t.querySelectorAll(".fragment:not(.disabled)"),i=t.querySelectorAll(".fragment:not(.disabled):not(.visible)");return{prev:e.length-i.length>0,next:!!i.length}}else return{prev:!1,next:!1}}sort(t,e=!1){t=Array.from(t);let i=[],s=[],n=[];t.forEach(l=>{if(l.hasAttribute("data-fragment-index")){let r=parseInt(l.getAttribute("data-fragment-index"),10);i[r]||(i[r]=[]),i[r].push(l)}else s.push([l])}),i=i.concat(s);let a=0;return i.forEach(l=>{l.forEach(r=>{n.push(r),r.setAttribute("data-fragment-index",a)}),a++}),e===!0?i:n}sortAll(){this.Reveal.getHorizontalSlides().forEach(t=>{let e=I(t,"section");e.forEach((i,s)=>{this.sort(i.querySelectorAll(".fragment"))},this),e.length===0&&this.sort(t.querySelectorAll(".fragment"))})}update(t,e,i=this.Reveal.getCurrentSlide()){let s={shown:[],hidden:[]};if(i&&this.Reveal.getConfig().fragments&&(e||(e=this.sort(i.querySelectorAll(".fragment"))),e.length)){let n=0;if(typeof t!="number"){let a=this.sort(i.querySelectorAll(".fragment.visible")).pop();a&&(t=parseInt(a.getAttribute("data-fragment-index")||0,10))}Array.from(e).forEach((a,l)=>{if(a.hasAttribute("data-fragment-index")&&(l=parseInt(a.getAttribute("data-fragment-index"),10)),n=Math.max(n,l),l<=t){let r=a.classList.contains("visible");a.classList.add("visible"),a.classList.remove("current-fragment"),l===t&&(this.Reveal.announceStatus(this.Reveal.getStatusText(a)),a.classList.add("current-fragment"),this.Reveal.slideContent.startEmbeddedContent(a)),r||(s.shown.push(a),this.Reveal.dispatchEvent({target:a,type:"visible",bubbles:!1}))}else{let r=a.classList.contains("visible");a.classList.remove("visible"),a.classList.remove("current-fragment"),r&&(this.Reveal.slideContent.stopEmbeddedContent(a),s.hidden.push(a),this.Reveal.dispatchEvent({target:a,type:"hidden",bubbles:!1}))}}),t=typeof t=="number"?t:-1,t=Math.max(Math.min(t,n),-1),i.setAttribute("data-fragment",t)}return s.hidden.length&&this.Reveal.dispatchEvent({type:"fragmenthidden",data:{fragment:s.hidden[0],fragments:s.hidden}}),s.shown.length&&this.Reveal.dispatchEvent({type:"fragmentshown",data:{fragment:s.shown[0],fragments:s.shown}}),s}sync(t=this.Reveal.getCurrentSlide()){return this.sort(t.querySelectorAll(".fragment"))}goto(t,e=0){let i=this.Reveal.getCurrentSlide();if(i&&this.Reveal.getConfig().fragments){let s=this.sort(i.querySelectorAll(".fragment:not(.disabled)"));if(s.length){if(typeof t!="number"){let a=this.sort(i.querySelectorAll(".fragment:not(.disabled).visible")).pop();t=a?parseInt(a.getAttribute("data-fragment-index")||0,10):-1}t+=e;let n=this.update(t,s);return this.Reveal.controls.update(),this.Reveal.progress.update(),this.Reveal.getConfig().fragmentInURL&&this.Reveal.location.writeURL(),!!(n.shown.length||n.hidden.length)}}return!1}next(){return this.goto(null,1)}prev(){return this.goto(null,-1)}},Fn=class{constructor(t){this.Reveal=t,this.active=!1,this.onSlideClicked=this.onSlideClicked.bind(this)}activate(){if(this.Reveal.getConfig().overview&&!this.Reveal.isScrollView()&&!this.isActive()){this.active=!0,this.Reveal.getRevealElement().classList.add("overview"),this.Reveal.cancelAutoSlide(),this.Reveal.getSlidesElement().appendChild(this.Reveal.getBackgroundsElement()),I(this.Reveal.getRevealElement(),Pe).forEach(i=>{i.classList.contains("stack")||i.addEventListener("click",this.onSlideClicked,!0)});let t=this.Reveal.getComputedSlideSize();this.overviewSlideWidth=t.width+70,this.overviewSlideHeight=t.height+70,this.Reveal.getConfig().rtl&&(this.overviewSlideWidth=-this.overviewSlideWidth),this.Reveal.updateSlidesVisibility(),this.layout(),this.update(),this.Reveal.layout();let e=this.Reveal.getIndices();this.Reveal.dispatchEvent({type:"overviewshown",data:{indexh:e.h,indexv:e.v,currentSlide:this.Reveal.getCurrentSlide()}})}}layout(){this.Reveal.getHorizontalSlides().forEach((t,e)=>{t.setAttribute("data-index-h",e),Se(t,"translate3d("+e*this.overviewSlideWidth+"px, 0, 0)"),t.classList.contains("stack")&&I(t,"section").forEach((i,s)=>{i.setAttribute("data-index-h",e),i.setAttribute("data-index-v",s),Se(i,"translate3d(0, "+s*this.overviewSlideHeight+"px, 0)")})}),Array.from(this.Reveal.getBackgroundsElement().childNodes).forEach((t,e)=>{Se(t,"translate3d("+e*this.overviewSlideWidth+"px, 0, 0)"),I(t,".slide-background").forEach((i,s)=>{Se(i,"translate3d(0, "+s*this.overviewSlideHeight+"px, 0)")})})}update(){let t=Math.min(window.innerWidth,window.innerHeight),e=Math.max(t/5,150)/t,i=this.Reveal.getIndices();this.Reveal.transformSlides({overview:["scale("+e+")","translateX("+-i.h*this.overviewSlideWidth+"px)","translateY("+-i.v*this.overviewSlideHeight+"px)"].join(" ")})}deactivate(){if(this.Reveal.getConfig().overview){this.active=!1,this.Reveal.getRevealElement().classList.remove("overview"),this.Reveal.getRevealElement().classList.add("overview-deactivating"),setTimeout(()=>{this.Reveal.getRevealElement().classList.remove("overview-deactivating")},1),this.Reveal.getRevealElement().appendChild(this.Reveal.getBackgroundsElement()),I(this.Reveal.getRevealElement(),Pe).forEach(e=>{Se(e,""),e.removeEventListener("click",this.onSlideClicked,!0)}),I(this.Reveal.getBackgroundsElement(),".slide-background").forEach(e=>{Se(e,"")}),this.Reveal.transformSlides({overview:""});let t=this.Reveal.getIndices();this.Reveal.slide(t.h,t.v),this.Reveal.layout(),this.Reveal.cueAutoSlide(),this.Reveal.dispatchEvent({type:"overviewhidden",data:{indexh:t.h,indexv:t.v,currentSlide:this.Reveal.getCurrentSlide()}})}}toggle(t){typeof t=="boolean"?t?this.activate():this.deactivate():this.isActive()?this.deactivate():this.activate()}isActive(){return this.active}onSlideClicked(t){if(this.isActive()){t.preventDefault();let e=t.target;for(;e&&!e.nodeName.match(/section/gi);)e=e.parentNode;if(e&&!e.classList.contains("disabled")&&(this.deactivate(),e.nodeName.match(/section/gi))){let i=parseInt(e.getAttribute("data-index-h"),10),s=parseInt(e.getAttribute("data-index-v"),10);this.Reveal.slide(i,s)}}}},Vn=class{constructor(t){this.Reveal=t,this.shortcuts={},this.bindings={},this.onDocumentKeyDown=this.onDocumentKeyDown.bind(this)}configure(t,e){t.navigationMode==="linear"?(this.shortcuts["&#8594; , &#8595; , SPACE , N , L , J"]="Next slide",this.shortcuts["&#8592; , &#8593; , P , H , K"]="Previous slide"):(this.shortcuts["N , SPACE"]="Next slide",this.shortcuts["P , Shift SPACE"]="Previous slide",this.shortcuts["&#8592; , H"]="Navigate left",this.shortcuts["&#8594; , L"]="Navigate right",this.shortcuts["&#8593; , K"]="Navigate up",this.shortcuts["&#8595; , J"]="Navigate down"),this.shortcuts["Alt + &#8592;/&#8593/&#8594;/&#8595;"]="Navigate without fragments",this.shortcuts["Shift + &#8592;/&#8593/&#8594;/&#8595;"]="Jump to first/last slide",this.shortcuts["B , ."]="Pause",this.shortcuts.F="Fullscreen",this.shortcuts.G="Jump to slide",this.shortcuts["ESC, O"]="Slide overview"}bind(){document.addEventListener("keydown",this.onDocumentKeyDown,!1)}unbind(){document.removeEventListener("keydown",this.onDocumentKeyDown,!1)}addKeyBinding(t,e){typeof t=="object"&&t.keyCode?this.bindings[t.keyCode]={callback:e,key:t.key,description:t.description}:this.bindings[t]={callback:e,key:null,description:null}}removeKeyBinding(t){delete this.bindings[t]}triggerKey(t){this.onDocumentKeyDown({keyCode:t})}registerKeyboardShortcut(t,e){this.shortcuts[t]=e}getShortcuts(){return this.shortcuts}getBindings(){return this.bindings}onDocumentKeyDown(t){let e=this.Reveal.getConfig();if(typeof e.keyboardCondition=="function"&&e.keyboardCondition(t)===!1||e.keyboardCondition==="focused"&&!this.Reveal.isFocused())return!0;let i=t.keyCode,s=!this.Reveal.isAutoSliding();this.Reveal.onUserInput(t);let n=document.activeElement&&document.activeElement.isContentEditable===!0,a=document.activeElement&&document.activeElement.tagName&&/input|textarea/i.test(document.activeElement.tagName),l=document.activeElement&&document.activeElement.className&&/speaker-notes/i.test(document.activeElement.className),r=!([32,37,38,39,40,63,78,80,191].indexOf(t.keyCode)!==-1&&t.shiftKey||t.altKey)&&(t.shiftKey||t.altKey||t.ctrlKey||t.metaKey);if(n||a||l||r)return;let c=[66,86,190,191,112],o;if(typeof e.keyboard=="object")for(o in e.keyboard)e.keyboard[o]==="togglePause"&&c.push(parseInt(o,10));if(this.Reveal.isOverlayOpen()&&!["Escape","f","c","b","."].includes(t.key)||this.Reveal.isPaused()&&c.indexOf(i)===-1)return!1;let d=e.navigationMode==="linear"||!this.Reveal.hasHorizontalSlides()||!this.Reveal.hasVerticalSlides(),h=!1;if(typeof e.keyboard=="object"){for(o in e.keyboard)if(parseInt(o,10)===i){let g=e.keyboard[o];typeof g=="function"?g.apply(null,[t]):typeof g=="string"&&typeof this.Reveal[g]=="function"&&this.Reveal[g].call(),h=!0}}if(h===!1){for(o in this.bindings)if(parseInt(o,10)===i){let g=this.bindings[o].callback;typeof g=="function"?g.apply(null,[t]):typeof g=="string"&&typeof this.Reveal[g]=="function"&&this.Reveal[g].call(),h=!0}}h===!1&&(h=!0,i===80||i===33?this.Reveal.prev({skipFragments:t.altKey}):i===78||i===34?this.Reveal.next({skipFragments:t.altKey}):i===72||i===37?t.shiftKey?this.Reveal.slide(0):!this.Reveal.overview.isActive()&&d?e.rtl?this.Reveal.next({skipFragments:t.altKey}):this.Reveal.prev({skipFragments:t.altKey}):this.Reveal.left({skipFragments:t.altKey}):i===76||i===39?t.shiftKey?this.Reveal.slide(this.Reveal.getHorizontalSlides().length-1):!this.Reveal.overview.isActive()&&d?e.rtl?this.Reveal.prev({skipFragments:t.altKey}):this.Reveal.next({skipFragments:t.altKey}):this.Reveal.right({skipFragments:t.altKey}):i===75||i===38?t.shiftKey?this.Reveal.slide(void 0,0):!this.Reveal.overview.isActive()&&d?this.Reveal.prev({skipFragments:t.altKey}):this.Reveal.up({skipFragments:t.altKey}):i===74||i===40?t.shiftKey?this.Reveal.slide(void 0,Number.MAX_VALUE):!this.Reveal.overview.isActive()&&d?this.Reveal.next({skipFragments:t.altKey}):this.Reveal.down({skipFragments:t.altKey}):i===36?this.Reveal.slide(0):i===35?this.Reveal.slide(this.Reveal.getHorizontalSlides().length-1):i===32?(this.Reveal.overview.isActive()&&this.Reveal.overview.deactivate(),t.shiftKey?this.Reveal.prev({skipFragments:t.altKey}):this.Reveal.next({skipFragments:t.altKey})):[58,59,66,86,190].includes(i)||i===191&&!t.shiftKey?this.Reveal.togglePause():i===70?Li(e.embedded?this.Reveal.getViewportElement():document.documentElement):i===65?e.autoSlideStoppable&&this.Reveal.toggleAutoSlide(s):i===71?e.jumpToSlide&&this.Reveal.toggleJumpToSlide():i===67&&this.Reveal.isOverlayOpen()?this.Reveal.closeOverlay():(i===63||i===191)&&t.shiftKey||i===112?this.Reveal.toggleHelp():h=!1),h?t.preventDefault&&t.preventDefault():i===27||i===79?(this.Reveal.closeOverlay()===!1&&this.Reveal.overview.toggle(),t.preventDefault&&t.preventDefault()):i===13&&this.Reveal.overview.isActive()&&(this.Reveal.overview.deactivate(),t.preventDefault&&t.preventDefault()),this.Reveal.cueAutoSlide()}},Un=class{constructor(t){Ti(this,"MAX_REPLACE_STATE_FREQUENCY",1e3),this.Reveal=t,this.writeURLTimeout=0,this.replaceStateTimestamp=0,this.onWindowHashChange=this.onWindowHashChange.bind(this)}bind(){window.addEventListener("hashchange",this.onWindowHashChange,!1)}unbind(){window.removeEventListener("hashchange",this.onWindowHashChange,!1)}getIndicesFromHash(t=window.location.hash,e={}){let i=t.replace(/^#\/?/,""),s=i.split("/");if(!/^[0-9]*$/.test(s[0])&&i.length){let n,a;/\/[-\d]+$/g.test(i)&&(a=parseInt(i.split("/").pop(),10),a=isNaN(a)?void 0:a,i=i.split("/").shift());try{let l=decodeURIComponent(i);n=(document.getElementById(l)||document.querySelector(`[data-id="${l}"]`)).closest(".slides section")}catch{}if(n)return Ai(ke({},this.Reveal.getIndices(n)),{f:a})}else{let n=this.Reveal.getConfig(),a=n.hashOneBasedIndex||e.oneBasedIndex?1:0,l=parseInt(s[0],10)-a||0,r=parseInt(s[1],10)-a||0,c;return n.fragmentInURL&&(c=parseInt(s[2],10),isNaN(c)&&(c=void 0)),{h:l,v:r,f:c}}return null}readURL(){let t=this.Reveal.getIndices(),e=this.getIndicesFromHash();e?(e.h!==t.h||e.v!==t.v||e.f!==void 0)&&this.Reveal.slide(e.h,e.v,e.f):this.Reveal.slide(t.h||0,t.v||0)}writeURL(t){let e=this.Reveal.getConfig(),i=this.Reveal.getCurrentSlide();if(clearTimeout(this.writeURLTimeout),typeof t=="number")this.writeURLTimeout=setTimeout(this.writeURL,t);else if(i){let s=this.getHash();e.history?window.location.hash=s:e.hash&&(s==="/"?this.debouncedReplaceState(window.location.pathname+window.location.search):this.debouncedReplaceState("#"+s))}}replaceState(t){window.history.replaceState(null,null,t),this.replaceStateTimestamp=Date.now()}debouncedReplaceState(t){clearTimeout(this.replaceStateTimeout),Date.now()-this.replaceStateTimestamp>this.MAX_REPLACE_STATE_FREQUENCY?this.replaceState(t):this.replaceStateTimeout=setTimeout(()=>this.replaceState(t),this.MAX_REPLACE_STATE_FREQUENCY)}getHash(t){let e="/",i=t||this.Reveal.getCurrentSlide(),s=i?i.getAttribute("id"):null;s&&(s=encodeURIComponent(s));let n=this.Reveal.getIndices(t);if(this.Reveal.getConfig().fragmentInURL||(n.f=void 0),typeof s=="string"&&s.length)e="/"+s,n.f>=0&&(e+="/"+n.f);else{let a=this.Reveal.getConfig().hashOneBasedIndex?1:0;(n.h>0||n.v>0||n.f>=0)&&(e+=n.h+a),(n.v>0||n.f>=0)&&(e+="/"+(n.v+a)),n.f>=0&&(e+="/"+n.f)}return e}onWindowHashChange(t){this.readURL()}},Wn=class{constructor(t){this.Reveal=t,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)}render(){let t=this.Reveal.getConfig().rtl,e=this.Reveal.getRevealElement();this.element=document.createElement("aside"),this.element.className="controls",this.element.innerHTML=`<button class="navigate-left" aria-label="${t?"next slide":"previous slide"}"><div class="controls-arrow"></div></button>
7
+ </a>`}destroy(){this.element.remove()}},Mn=class{constructor(t){this.Reveal=t,this.onInput=this.onInput.bind(this),this.onBlur=this.onBlur.bind(this),this.onKeyDown=this.onKeyDown.bind(this)}render(){this.element=document.createElement("div"),this.element.className="jump-to-slide",this.jumpInput=document.createElement("input"),this.jumpInput.type="text",this.jumpInput.className="jump-to-slide-input",this.jumpInput.placeholder="Jump to slide",this.jumpInput.addEventListener("input",this.onInput),this.jumpInput.addEventListener("keydown",this.onKeyDown),this.jumpInput.addEventListener("blur",this.onBlur),this.element.appendChild(this.jumpInput)}show(){this.indicesOnShow=this.Reveal.getIndices(),this.Reveal.getRevealElement().appendChild(this.element),this.jumpInput.focus()}hide(){this.isVisible()&&(this.element.remove(),this.jumpInput.value="",clearTimeout(this.jumpTimeout),delete this.jumpTimeout)}isVisible(){return!!this.element.parentNode}jump(){clearTimeout(this.jumpTimeout),delete this.jumpTimeout;let t=this.jumpInput.value.trim(""),e;if(/^\d+$/.test(t)){let i=this.Reveal.getConfig().slideNumber;if(i===_t||i===Mi){let s=this.Reveal.getSlides()[parseInt(t,10)-1];s&&(e=this.Reveal.getIndices(s))}}return e||(e=(/^\d+\.\d+$/.test(t)&&(t=t.replace(".","/")),this.Reveal.location.getIndicesFromHash(t,{oneBasedIndex:!0}))),!e&&/\S+/i.test(t)&&t.length>1&&(e=this.search(t)),e&&t!==""?(this.Reveal.slide(e.h,e.v,e.f),!0):(this.Reveal.slide(this.indicesOnShow.h,this.indicesOnShow.v,this.indicesOnShow.f),!1)}jumpAfter(t){clearTimeout(this.jumpTimeout),this.jumpTimeout=setTimeout(()=>this.jump(),t)}search(t){let e=RegExp("\\b"+t.trim()+"\\b","i"),i=this.Reveal.getSlides().find(s=>e.test(s.innerText));return i?this.Reveal.getIndices(i):null}cancel(){this.Reveal.slide(this.indicesOnShow.h,this.indicesOnShow.v,this.indicesOnShow.f),this.hide()}confirm(){this.jump(),this.hide()}destroy(){this.jumpInput.removeEventListener("input",this.onInput),this.jumpInput.removeEventListener("keydown",this.onKeyDown),this.jumpInput.removeEventListener("blur",this.onBlur),this.element.remove()}onKeyDown(t){t.keyCode===13?this.confirm():t.keyCode===27&&(this.cancel(),t.stopImmediatePropagation())}onInput(t){this.jumpAfter(200)}onBlur(){setTimeout(()=>this.hide(),1)}},qt=t=>{let e=t.match(/^#([0-9a-f]{3})$/i);if(e&&e[1]){let a=e[1];return{r:parseInt(a.charAt(0),16)*17,g:parseInt(a.charAt(1),16)*17,b:parseInt(a.charAt(2),16)*17}}let i=t.match(/^#([0-9a-f]{6})$/i);if(i&&i[1]){let a=i[1];return{r:parseInt(a.slice(0,2),16),g:parseInt(a.slice(2,4),16),b:parseInt(a.slice(4,6),16)}}let s=t.match(/^rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)$/i);if(s)return{r:parseInt(s[1],10),g:parseInt(s[2],10),b:parseInt(s[3],10)};let n=t.match(/^rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d]+|[\d]*.[\d]+)\s*\)$/i);return n?{r:parseInt(n[1],10),g:parseInt(n[2],10),b:parseInt(n[3],10),a:parseFloat(n[4])}:null},Nn=t=>(typeof t=="string"&&(t=qt(t)),t?(t.r*299+t.g*587+t.b*114)/1e3:null),zn=class{constructor(t){this.Reveal=t}render(){this.element=document.createElement("div"),this.element.className="backgrounds",this.Reveal.getRevealElement().appendChild(this.element)}create(){this.element.innerHTML="",this.element.classList.add("no-transition"),this.Reveal.getHorizontalSlides().forEach(t=>{let e=this.createBackground(t,this.element);P(t,"section").forEach(i=>{this.createBackground(i,e),e.classList.add("stack")})}),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(()=>{this.Reveal.getRevealElement().classList.add("has-parallax-background")},1)):(this.element.style.backgroundImage="",this.Reveal.getRevealElement().classList.remove("has-parallax-background"))}createBackground(t,e){let i=document.createElement("div");i.className="slide-background "+t.className.replace(/present|past|future/,"");let s=document.createElement("div");return s.className="slide-background-content",i.appendChild(s),e.appendChild(i),t.slideBackgroundElement=i,t.slideBackgroundContentElement=s,this.sync(t),i}sync(t){let e=t.slideBackgroundElement,i=t.slideBackgroundContentElement,s={background:t.getAttribute("data-background"),backgroundSize:t.getAttribute("data-background-size"),backgroundImage:t.getAttribute("data-background-image"),backgroundVideo:t.getAttribute("data-background-video"),backgroundIframe:t.getAttribute("data-background-iframe"),backgroundColor:t.getAttribute("data-background-color"),backgroundGradient:t.getAttribute("data-background-gradient"),backgroundRepeat:t.getAttribute("data-background-repeat"),backgroundPosition:t.getAttribute("data-background-position"),backgroundTransition:t.getAttribute("data-background-transition"),backgroundOpacity:t.getAttribute("data-background-opacity")},n=t.hasAttribute("data-preload");t.classList.remove("has-dark-background"),t.classList.remove("has-light-background"),e.removeAttribute("data-loaded"),e.removeAttribute("data-background-hash"),e.removeAttribute("data-background-size"),e.removeAttribute("data-background-transition"),e.style.backgroundColor="",i.style.backgroundSize="",i.style.backgroundRepeat="",i.style.backgroundPosition="",i.style.backgroundImage="",i.style.opacity="",i.innerHTML="",s.background&&(/^(http|file|\/\/)/gi.test(s.background)||/\.(svg|png|jpg|jpeg|gif|bmp|webp)([?#\s]|$)/gi.test(s.background)?t.setAttribute("data-background-image",s.background):e.style.background=s.background),(s.background||s.backgroundColor||s.backgroundGradient||s.backgroundImage||s.backgroundVideo||s.backgroundIframe)&&e.setAttribute("data-background-hash",s.background+s.backgroundSize+s.backgroundImage+s.backgroundVideo+s.backgroundIframe+s.backgroundColor+s.backgroundGradient+s.backgroundRepeat+s.backgroundPosition+s.backgroundTransition+s.backgroundOpacity),s.backgroundSize&&e.setAttribute("data-background-size",s.backgroundSize),s.backgroundColor&&(e.style.backgroundColor=s.backgroundColor),s.backgroundGradient&&(e.style.backgroundImage=s.backgroundGradient),s.backgroundTransition&&e.setAttribute("data-background-transition",s.backgroundTransition),n&&e.setAttribute("data-preload",""),s.backgroundSize&&(i.style.backgroundSize=s.backgroundSize),s.backgroundRepeat&&(i.style.backgroundRepeat=s.backgroundRepeat),s.backgroundPosition&&(i.style.backgroundPosition=s.backgroundPosition),s.backgroundOpacity&&(i.style.opacity=s.backgroundOpacity);let a=this.getContrastClass(t);typeof a=="string"&&t.classList.add(a)}getContrastClass(t){let e=t.slideBackgroundElement,i=t.getAttribute("data-background-color");if(!i||!qt(i)){let s=window.getComputedStyle(e);s&&s.backgroundColor&&(i=s.backgroundColor)}if(i){let s=qt(i);if(s&&s.a!==0)return Nn(i)<128?"has-dark-background":"has-light-background"}return null}bubbleSlideContrastClassToElement(t,e){["has-light-background","has-dark-background"].forEach(i=>{t.classList.contains(i)?e.classList.add(i):e.classList.remove(i)},this)}update(t=!1){let e=this.Reveal.getConfig(),i=this.Reveal.getCurrentSlide(),s=this.Reveal.getIndices(),n=null,a=e.rtl?"future":"past",l=e.rtl?"past":"future";if(Array.from(this.element.childNodes).forEach((c,o)=>{c.classList.remove("past","present","future"),o<s.h?c.classList.add(a):o>s.h?c.classList.add(l):(c.classList.add("present"),n=c),(t||o===s.h)&&P(c,".slide-background").forEach((u,h)=>{u.classList.remove("past","present","future");let g=typeof s.v=="number"?s.v:0;h<g?u.classList.add("past"):h>g?u.classList.add("future"):(u.classList.add("present"),o===s.h&&(n=u))})}),this.previousBackground&&!this.previousBackground.closest("body")&&(this.previousBackground=null),n&&this.previousBackground){let c=this.previousBackground.getAttribute("data-background-hash"),o=n.getAttribute("data-background-hash");if(o&&o===c&&n!==this.previousBackground){this.element.classList.add("no-transition");let u=n.querySelector("video"),h=this.previousBackground.querySelector("video");if(u&&h){let g=u.parentNode;h.parentNode.appendChild(u),g.appendChild(h)}}}let r=n!==this.previousBackground;if(r&&this.previousBackground&&this.Reveal.slideContent.stopEmbeddedContent(this.previousBackground,{unloadIframes:!this.Reveal.slideContent.shouldPreload(this.previousBackground)}),r&&n){this.Reveal.slideContent.startEmbeddedContent(n);let c=n.querySelector(".slide-background-content");if(c){let o=c.style.backgroundImage||"";/\.gif/i.test(o)&&(c.style.backgroundImage="",window.getComputedStyle(c).opacity,c.style.backgroundImage=o)}this.previousBackground=n}i&&this.bubbleSlideContrastClassToElement(i,this.Reveal.getRevealElement()),setTimeout(()=>{this.element.classList.remove("no-transition")},10)}updateParallax(){let t=this.Reveal.getIndices();if(this.Reveal.getConfig().parallaxBackgroundImage){let e=this.Reveal.getHorizontalSlides(),i=this.Reveal.getVerticalSlides(),s=this.element.style.backgroundSize.split(" "),n,a;s.length===1?n=a=parseInt(s[0],10):(n=parseInt(s[0],10),a=parseInt(s[1],10));let l=this.element.offsetWidth,r=e.length,c,o;c=typeof this.Reveal.getConfig().parallaxBackgroundHorizontal=="number"?this.Reveal.getConfig().parallaxBackgroundHorizontal:r>1?(n-l)/(r-1):0,o=c*t.h*-1;let u=this.element.offsetHeight,h=i.length,g,p;g=typeof this.Reveal.getConfig().parallaxBackgroundVertical=="number"?this.Reveal.getConfig().parallaxBackgroundVertical:(a-u)/(h-1),p=h>0?g*t.v:0,this.element.style.backgroundPosition=o+"px "+-p+"px"}}destroy(){this.element.remove()}},Ni=0,$n=class{constructor(t){this.Reveal=t}run(t,e){this.reset();let i=this.Reveal.getSlides(),s=i.indexOf(e),n=i.indexOf(t);if(t&&e&&t.hasAttribute("data-auto-animate")&&e.hasAttribute("data-auto-animate")&&t.getAttribute("data-auto-animate-id")===e.getAttribute("data-auto-animate-id")&&!(s>n?e:t).hasAttribute("data-auto-animate-restart")){this.autoAnimateStyleSheet=this.autoAnimateStyleSheet||Dt();let a=this.getAutoAnimateOptions(e);t.dataset.autoAnimate="pending",e.dataset.autoAnimate="pending",a.slideDirection=s>n?"forward":"backward";let l=t.style.display==="none";l&&(t.style.display=this.Reveal.getConfig().display);let r=this.getAutoAnimatableElements(t,e).map(c=>this.autoAnimateElements(c.from,c.to,c.options||{},a,Ni++));if(l&&(t.style.display="none"),e.dataset.autoAnimateUnmatched!=="false"&&this.Reveal.getConfig().autoAnimateUnmatched===!0){let c=a.duration*.8,o=a.duration*.2;this.getUnmatchedAutoAnimateElements(e).forEach(u=>{let h=this.getAutoAnimateOptions(u,a),g="unmatched";(h.duration!==a.duration||h.delay!==a.delay)&&(g="unmatched-"+Ni++,r.push(`[data-auto-animate="running"] [data-auto-animate-target="${g}"] { transition: opacity ${h.duration}s ease ${h.delay}s; }`)),u.dataset.autoAnimateTarget=g},this),r.push(`[data-auto-animate="running"] [data-auto-animate-target="unmatched"] { transition: opacity ${c}s ease ${o}s; }`)}this.autoAnimateStyleSheet.innerHTML=r.join(""),requestAnimationFrame(()=>{this.autoAnimateStyleSheet&&(getComputedStyle(this.autoAnimateStyleSheet).fontWeight,e.dataset.autoAnimate="running")}),this.Reveal.dispatchEvent({type:"autoanimate",data:{fromSlide:t,toSlide:e,sheet:this.autoAnimateStyleSheet}})}}reset(){P(this.Reveal.getRevealElement(),'[data-auto-animate]:not([data-auto-animate=""])').forEach(t=>{t.dataset.autoAnimate=""}),P(this.Reveal.getRevealElement(),"[data-auto-animate-target]").forEach(t=>{delete t.dataset.autoAnimateTarget}),this.autoAnimateStyleSheet&&this.autoAnimateStyleSheet.parentNode&&(this.autoAnimateStyleSheet.parentNode.removeChild(this.autoAnimateStyleSheet),this.autoAnimateStyleSheet=null)}autoAnimateElements(t,e,i,s,n){t.dataset.autoAnimateTarget="",e.dataset.autoAnimateTarget=n;let a=this.getAutoAnimateOptions(e,s);i.delay!==void 0&&(a.delay=i.delay),i.duration!==void 0&&(a.duration=i.duration),i.easing!==void 0&&(a.easing=i.easing);let l=this.getAutoAnimatableProperties("from",t,i),r=this.getAutoAnimatableProperties("to",e,i);if(e.classList.contains("fragment")&&delete r.styles.opacity,i.translate!==!1||i.scale!==!1){let u=this.Reveal.getScale(),h={x:(l.x-r.x)/u,y:(l.y-r.y)/u,scaleX:l.width/r.width,scaleY:l.height/r.height};h.x=Math.round(h.x*1e3)/1e3,h.y=Math.round(h.y*1e3)/1e3,h.scaleX=Math.round(h.scaleX*1e3)/1e3,h.scaleX=Math.round(h.scaleX*1e3)/1e3;let g=i.translate!==!1&&(h.x!==0||h.y!==0),p=i.scale!==!1&&(h.scaleX!==0||h.scaleY!==0);if(g||p){let d=[];g&&d.push(`translate(${h.x}px, ${h.y}px)`),p&&d.push(`scale(${h.scaleX}, ${h.scaleY})`),l.styles.transform=d.join(" "),l.styles["transform-origin"]="top left",r.styles.transform="none"}}for(let u in r.styles){let h=r.styles[u],g=l.styles[u];h===g?delete r.styles[u]:(h.explicitValue===!0&&(r.styles[u]=h.value),g.explicitValue===!0&&(l.styles[u]=g.value))}let c="",o=Object.keys(r.styles);if(o.length>0){l.styles.transition="none",r.styles.transition=`all ${a.duration}s ${a.easing} ${a.delay}s`,r.styles["transition-property"]=o.join(", "),r.styles["will-change"]=o.join(", ");let u=Object.keys(l.styles).map(g=>g+": "+l.styles[g]+" !important;").join(""),h=Object.keys(r.styles).map(g=>g+": "+r.styles[g]+" !important;").join("");c='[data-auto-animate-target="'+n+'"] {'+u+'}[data-auto-animate="running"] [data-auto-animate-target="'+n+'"] {'+h+"}"}return c}getAutoAnimateOptions(t,e){let i={easing:this.Reveal.getConfig().autoAnimateEasing,duration:this.Reveal.getConfig().autoAnimateDuration,delay:0};if(i=De(i,e),t.parentNode){let s=se(t.parentNode,"[data-auto-animate-target]");s&&(i=this.getAutoAnimateOptions(s,i))}return t.dataset.autoAnimateEasing&&(i.easing=t.dataset.autoAnimateEasing),t.dataset.autoAnimateDuration&&(i.duration=parseFloat(t.dataset.autoAnimateDuration)),t.dataset.autoAnimateDelay&&(i.delay=parseFloat(t.dataset.autoAnimateDelay)),i}getAutoAnimatableProperties(t,e,i){let s=this.Reveal.getConfig(),n={styles:[]};if(i.translate!==!1||i.scale!==!1){let l;if(typeof i.measure=="function")l=i.measure(e);else if(s.center)l=e.getBoundingClientRect();else{let r=this.Reveal.getScale();l={x:e.offsetLeft*r,y:e.offsetTop*r,width:e.offsetWidth*r,height:e.offsetHeight*r}}n.x=l.x,n.y=l.y,n.width=l.width,n.height=l.height}let a=getComputedStyle(e);return(i.styles||s.autoAnimateStyles).forEach(l=>{let r;typeof l=="string"&&(l={property:l}),l.from!==void 0&&t==="from"?r={value:l.from,explicitValue:!0}:l.to!==void 0&&t==="to"?r={value:l.to,explicitValue:!0}:(l.property==="line-height"&&(r=parseFloat(a["line-height"])/parseFloat(a["font-size"])),isNaN(r)&&(r=a[l.property])),r!==""&&(n.styles[l.property]=r)}),n}getAutoAnimatableElements(t,e){let i=(typeof this.Reveal.getConfig().autoAnimateMatcher=="function"?this.Reveal.getConfig().autoAnimateMatcher:this.getAutoAnimatePairs).call(this,t,e),s=[];return i.filter((n,a)=>{if(s.indexOf(n.to)===-1)return s.push(n.to),!0})}getAutoAnimatePairs(t,e){let i=[],s="h1, h2, h3, h4, h5, h6, p, li";return this.findAutoAnimateMatches(i,t,e,"[data-id]",n=>n.nodeName+":::"+n.getAttribute("data-id")),this.findAutoAnimateMatches(i,t,e,s,n=>n.nodeName+":::"+n.textContent.trim()),this.findAutoAnimateMatches(i,t,e,"img, video, iframe",n=>n.nodeName+":::"+(n.getAttribute("src")||n.getAttribute("data-src"))),this.findAutoAnimateMatches(i,t,e,"pre",n=>n.nodeName+":::"+n.textContent.trim()),i.forEach(n=>{it(n.from,s)?n.options={scale:!1}:it(n.from,"pre")&&(n.options={scale:!1,styles:["width","height"]},this.findAutoAnimateMatches(i,n.from,n.to,".hljs .hljs-ln-code",a=>a.textContent,{scale:!1,styles:[],measure:this.getLocalBoundingBox.bind(this)}),this.findAutoAnimateMatches(i,n.from,n.to,".hljs .hljs-ln-numbers[data-line-number]",a=>a.getAttribute("data-line-number"),{scale:!1,styles:["width"],measure:this.getLocalBoundingBox.bind(this)}))},this),i}getLocalBoundingBox(t){let e=this.Reveal.getScale();return{x:Math.round(t.offsetLeft*e*100)/100,y:Math.round(t.offsetTop*e*100)/100,width:Math.round(t.offsetWidth*e*100)/100,height:Math.round(t.offsetHeight*e*100)/100}}findAutoAnimateMatches(t,e,i,s,n,a){let l={},r={};[].slice.call(e.querySelectorAll(s)).forEach((c,o)=>{let u=n(c);typeof u=="string"&&u.length&&(l[u]=l[u]||[],l[u].push(c))}),[].slice.call(i.querySelectorAll(s)).forEach((c,o)=>{let u=n(c);r[u]=r[u]||[],r[u].push(c);let h;if(l[u]){let g=r[u].length-1,p=l[u].length-1;l[u][g]?(h=l[u][g],l[u][g]=null):l[u][p]&&(h=l[u][p],l[u][p]=null)}h&&t.push({from:h,to:c,options:a})})}getUnmatchedAutoAnimateElements(t){return[].slice.call(t.children).reduce((e,i)=>{let s=i.querySelector("[data-auto-animate-target]");return!i.hasAttribute("data-auto-animate-target")&&!s&&e.push(i),i.querySelector("[data-auto-animate-target]")&&(e=e.concat(this.getUnmatchedAutoAnimateElements(i))),e},[])}},Bn=500,Dn=4,Hn=6,_n=8,qn=class{constructor(t){this.Reveal=t,this.active=!1,this.activatedCallbacks=[],this.onScroll=this.onScroll.bind(this)}activate(){if(this.active)return;let t=this.Reveal.getState();this.active=!0,this.slideHTMLBeforeActivation=this.Reveal.getSlidesElement().innerHTML;let e=P(this.Reveal.getRevealElement(),ye),i=P(this.Reveal.getRevealElement(),Tn);this.viewportElement.classList.add("loading-scroll-mode","reveal-scroll");let s,n=window.getComputedStyle(this.viewportElement);n&&n.background&&(s=n.background);let a=[],l=e[0].parentNode,r,c=(o,u,h,g)=>{let p;if(r&&this.Reveal.shouldAutoAnimateBetween(r,o))p=document.createElement("div"),p.className="scroll-page-content scroll-auto-animate-page",p.style.display="none",r.closest(".scroll-page-content").parentNode.appendChild(p);else{let d=document.createElement("div");if(d.className="scroll-page",a.push(d),g&&i.length>u){let y=i[u],z=window.getComputedStyle(y);z&&z.background?d.style.background=z.background:s&&(d.style.background=s)}else s&&(d.style.background=s);let b=document.createElement("div");b.className="scroll-page-sticky",d.appendChild(b),p=document.createElement("div"),p.className="scroll-page-content",b.appendChild(p)}p.appendChild(o),o.classList.remove("past","future"),o.setAttribute("data-index-h",u),o.setAttribute("data-index-v",h),o.slideBackgroundElement&&(o.slideBackgroundElement.remove("past","future"),p.insertBefore(o.slideBackgroundElement,o)),r=o};e.forEach((o,u)=>{this.Reveal.isVerticalStack(o)?o.querySelectorAll("section").forEach((h,g)=>{c(h,u,g,!0)}):c(o,u,0)},this),this.createProgressBar(),P(this.Reveal.getRevealElement(),".stack").forEach(o=>o.remove()),a.forEach(o=>l.appendChild(o)),this.Reveal.slideContent.layout(this.Reveal.getSlidesElement()),this.Reveal.layout(),this.Reveal.setState(t),this.activatedCallbacks.forEach(o=>o()),this.activatedCallbacks=[],this.restoreScrollPosition(),this.viewportElement.classList.remove("loading-scroll-mode"),this.viewportElement.addEventListener("scroll",this.onScroll,{passive:!0})}deactivate(){if(!this.active)return;let t=this.Reveal.getState();this.active=!1,this.viewportElement.removeEventListener("scroll",this.onScroll),this.viewportElement.classList.remove("reveal-scroll"),this.removeProgressBar(),this.Reveal.getSlidesElement().innerHTML=this.slideHTMLBeforeActivation,this.Reveal.sync(),this.Reveal.setState(t),this.slideHTMLBeforeActivation=null}toggle(t){typeof t=="boolean"?t?this.activate():this.deactivate():this.isActive()?this.deactivate():this.activate()}isActive(){return this.active}createProgressBar(){this.progressBar=document.createElement("div"),this.progressBar.className="scrollbar",this.progressBarInner=document.createElement("div"),this.progressBarInner.className="scrollbar-inner",this.progressBar.appendChild(this.progressBarInner),this.progressBarPlayhead=document.createElement("div"),this.progressBarPlayhead.className="scrollbar-playhead",this.progressBarInner.appendChild(this.progressBarPlayhead),this.viewportElement.insertBefore(this.progressBar,this.viewportElement.firstChild);let t=i=>{let s=(i.clientY-this.progressBarInner.getBoundingClientRect().top)/this.progressBarHeight;s=Math.max(Math.min(s,1),0),this.viewportElement.scrollTop=s*(this.viewportElement.scrollHeight-this.viewportElement.offsetHeight)},e=i=>{this.draggingProgressBar=!1,this.showProgressBar(),document.removeEventListener("mousemove",t),document.removeEventListener("mouseup",e)};this.progressBarInner.addEventListener("mousedown",i=>{i.preventDefault(),this.draggingProgressBar=!0,document.addEventListener("mousemove",t),document.addEventListener("mouseup",e),t(i)})}removeProgressBar(){this.progressBar&&(this.progressBar=(this.progressBar.remove(),null))}layout(){this.isActive()&&(this.syncPages(),this.syncScrollPosition())}syncPages(){let t=this.Reveal.getConfig(),e=this.Reveal.getComputedSlideSize(window.innerWidth,window.innerHeight),i=this.Reveal.getScale(),s=t.scrollLayout==="compact",n=this.viewportElement.offsetHeight,a=e.height*i,l=s?a:n;this.scrollTriggerHeight=s?a:n,this.viewportElement.style.setProperty("--page-height",l+"px"),this.viewportElement.style.scrollSnapType=typeof t.scrollSnap=="string"?`y ${t.scrollSnap}`:"",this.slideTriggers=[],this.pages=Array.from(this.Reveal.getRevealElement().querySelectorAll(".scroll-page")).map(r=>{let c=this.createPage({pageElement:r,slideElement:r.querySelector("section"),stickyElement:r.querySelector(".scroll-page-sticky"),contentElement:r.querySelector(".scroll-page-content"),backgroundElement:r.querySelector(".slide-background"),autoAnimateElements:r.querySelectorAll(".scroll-auto-animate-page"),autoAnimatePages:[]});c.pageElement.style.setProperty("--slide-height",t.center===!0?"auto":e.height+"px"),this.slideTriggers.push({page:c,activate:()=>this.activatePage(c),deactivate:()=>this.deactivatePage(c)}),this.createFragmentTriggersForPage(c),c.autoAnimateElements.length>0&&this.createAutoAnimateTriggersForPage(c);let o=Math.max(c.scrollTriggers.length-1,0);o+=c.autoAnimatePages.reduce((u,h)=>u+Math.max(h.scrollTriggers.length-1,0),c.autoAnimatePages.length),c.pageElement.querySelectorAll(".scroll-snap-point").forEach(u=>u.remove());for(let u=0;u<o+1;u++){let h=document.createElement("div");h.className="scroll-snap-point",h.style.height=this.scrollTriggerHeight+"px",h.style.scrollSnapAlign=s?"center":"start",c.pageElement.appendChild(h),u===0&&(h.style.marginTop=-this.scrollTriggerHeight+"px")}return s&&c.scrollTriggers.length>0?(c.pageHeight=n,c.pageElement.style.setProperty("--page-height",n+"px")):(c.pageHeight=l,c.pageElement.style.removeProperty("--page-height")),c.scrollPadding=this.scrollTriggerHeight*o,c.totalHeight=c.pageHeight+c.scrollPadding,c.pageElement.style.setProperty("--page-scroll-padding",c.scrollPadding+"px"),o>0?(c.stickyElement.style.position="sticky",c.stickyElement.style.top=Math.max((n-c.pageHeight)/2,0)+"px"):(c.stickyElement.style.position="relative",c.pageElement.style.scrollSnapAlign=c.pageHeight<n?"center":"start"),c}),this.setTriggerRanges(),this.viewportElement.setAttribute("data-scrollbar",t.scrollProgress),t.scrollProgress&&this.totalScrollTriggerCount>1?(this.progressBar||this.createProgressBar(),this.syncProgressBar()):this.removeProgressBar()}setTriggerRanges(){this.totalScrollTriggerCount=this.slideTriggers.reduce((e,i)=>e+Math.max(i.page.scrollTriggers.length,1),0);let t=0;this.slideTriggers.forEach((e,i)=>{e.range=[t,t+Math.max(e.page.scrollTriggers.length,1)/this.totalScrollTriggerCount];let s=(e.range[1]-e.range[0])/e.page.scrollTriggers.length;e.page.scrollTriggers.forEach((n,a)=>{n.range=[t+a*s,t+(a+1)*s]}),t=e.range[1]}),this.slideTriggers[this.slideTriggers.length-1].range[1]=1}createFragmentTriggersForPage(t,e){e||(e=t.slideElement);let i=this.Reveal.fragments.sort(e.querySelectorAll(".fragment"),!0);return i.length&&(t.fragments=this.Reveal.fragments.sort(e.querySelectorAll(".fragment:not(.disabled)")),t.scrollTriggers.push({activate:()=>{this.Reveal.fragments.update(-1,t.fragments,e)}}),i.forEach((s,n)=>{t.scrollTriggers.push({activate:()=>{this.Reveal.fragments.update(n,t.fragments,e)}})})),t.scrollTriggers.length}createAutoAnimateTriggersForPage(t){t.autoAnimateElements.length>0&&this.slideTriggers.push(...Array.from(t.autoAnimateElements).map((e,i)=>{let s=this.createPage({slideElement:e.querySelector("section"),contentElement:e,backgroundElement:e.querySelector(".slide-background")});return this.createFragmentTriggersForPage(s,s.slideElement),t.autoAnimatePages.push(s),{page:s,activate:()=>this.activatePage(s),deactivate:()=>this.deactivatePage(s)}}))}createPage(t){return t.scrollTriggers=[],t.indexh=parseInt(t.slideElement.getAttribute("data-index-h"),10),t.indexv=parseInt(t.slideElement.getAttribute("data-index-v"),10),t}syncProgressBar(){this.progressBarInner.querySelectorAll(".scrollbar-slide").forEach(a=>a.remove());let t=this.viewportElement.scrollHeight,e=this.viewportElement.offsetHeight,i=e/t;this.progressBarHeight=this.progressBarInner.offsetHeight,this.playheadHeight=Math.max(i*this.progressBarHeight,_n),this.progressBarScrollableHeight=this.progressBarHeight-this.playheadHeight;let s=e/t*this.progressBarHeight,n=Math.min(s/8,Dn);this.progressBarPlayhead.style.height=this.playheadHeight-n+"px",s>Hn?this.slideTriggers.forEach(a=>{let{page:l}=a;l.progressBarSlide=document.createElement("div"),l.progressBarSlide.className="scrollbar-slide",l.progressBarSlide.style.top=a.range[0]*this.progressBarHeight+"px",l.progressBarSlide.style.height=(a.range[1]-a.range[0])*this.progressBarHeight-n+"px",l.progressBarSlide.classList.toggle("has-triggers",l.scrollTriggers.length>0),this.progressBarInner.appendChild(l.progressBarSlide),l.scrollTriggerElements=l.scrollTriggers.map((r,c)=>{let o=document.createElement("div");return o.className="scrollbar-trigger",o.style.top=(r.range[0]-a.range[0])*this.progressBarHeight+"px",o.style.height=(r.range[1]-r.range[0])*this.progressBarHeight-n+"px",l.progressBarSlide.appendChild(o),c===0&&(o.style.display="none"),o})}):this.pages.forEach(a=>a.progressBarSlide=null)}syncScrollPosition(){let t=this.viewportElement.offsetHeight,e=t/this.viewportElement.scrollHeight,i=this.viewportElement.scrollTop,s=this.viewportElement.scrollHeight-t,n=Math.max(Math.min(i/s,1),0),a=Math.max(Math.min((i+t/2)/this.viewportElement.scrollHeight,1),0),l;this.slideTriggers.forEach(r=>{let{page:c}=r;n>=r.range[0]-e*2&&n<=r.range[1]+e*2&&!c.loaded?(c.loaded=!0,this.Reveal.slideContent.load(c.slideElement)):c.loaded&&(c.loaded=!1,this.Reveal.slideContent.unload(c.slideElement)),n>=r.range[0]&&n<=r.range[1]?(this.activateTrigger(r),l=r.page):r.active&&this.deactivateTrigger(r)}),l&&l.scrollTriggers.forEach(r=>{a>=r.range[0]&&a<=r.range[1]?this.activateTrigger(r):r.active&&this.deactivateTrigger(r)}),this.setProgressBarValue(i/(this.viewportElement.scrollHeight-t))}setProgressBarValue(t){this.progressBar&&(this.progressBarPlayhead.style.transform=`translateY(${t*this.progressBarScrollableHeight}px)`,this.getAllPages().filter(e=>e.progressBarSlide).forEach(e=>{e.progressBarSlide.classList.toggle("active",e.active===!0),e.scrollTriggers.forEach((i,s)=>{e.scrollTriggerElements[s].classList.toggle("active",e.active===!0&&i.active===!0)})}),this.showProgressBar())}showProgressBar(){this.progressBar.classList.add("visible"),clearTimeout(this.hideProgressBarTimeout),this.Reveal.getConfig().scrollProgress==="auto"&&!this.draggingProgressBar&&(this.hideProgressBarTimeout=setTimeout(()=>{this.progressBar&&this.progressBar.classList.remove("visible")},Bn))}prev(){this.viewportElement.scrollTop-=this.scrollTriggerHeight}next(){this.viewportElement.scrollTop+=this.scrollTriggerHeight}scrollToSlide(t){if(!this.active)this.activatedCallbacks.push(()=>this.scrollToSlide(t));else{let e=this.getScrollTriggerBySlide(t);e&&(this.viewportElement.scrollTop=e.range[0]*(this.viewportElement.scrollHeight-this.viewportElement.offsetHeight))}}storeScrollPosition(){clearTimeout(this.storeScrollPositionTimeout),this.storeScrollPositionTimeout=setTimeout(()=>{sessionStorage.setItem("reveal-scroll-top",this.viewportElement.scrollTop),sessionStorage.setItem("reveal-scroll-origin",location.origin+location.pathname),this.storeScrollPositionTimeout=null},50)}restoreScrollPosition(){let t=sessionStorage.getItem("reveal-scroll-top"),e=sessionStorage.getItem("reveal-scroll-origin");t&&e===location.origin+location.pathname&&(this.viewportElement.scrollTop=parseInt(t,10))}activatePage(t){if(!t.active){t.active=!0;let{slideElement:e,backgroundElement:i,contentElement:s,indexh:n,indexv:a}=t;s.style.display="block",e.classList.add("present"),i&&i.classList.add("present"),this.Reveal.setCurrentScrollPage(e,n,a),this.Reveal.backgrounds.bubbleSlideContrastClassToElement(e,this.viewportElement),Array.from(s.parentNode.querySelectorAll(".scroll-page-content")).forEach(l=>{l!==s&&(l.style.display="none")})}}deactivatePage(t){t.active&&(t.active=!1,t.slideElement&&t.slideElement.classList.remove("present"),t.backgroundElement&&t.backgroundElement.classList.remove("present"))}activateTrigger(t){t.active||(t.active=!0,t.activate())}deactivateTrigger(t){t.active&&(t.active=!1,t.deactivate&&t.deactivate())}getSlideByIndices(t,e){let i=this.getAllPages().find(s=>s.indexh===t&&s.indexv===e);return i?i.slideElement:null}getScrollTriggerBySlide(t){return this.slideTriggers.find(e=>e.page.slideElement===t)}getAllPages(){return this.pages.flatMap(t=>[t,...t.autoAnimatePages||[]])}onScroll(){this.syncScrollPosition(),this.storeScrollPosition()}get viewportElement(){return this.Reveal.getViewportElement()}},jn=class{constructor(t){this.Reveal=t}activate(){return kn(this,null,function*(){let t=this.Reveal.getConfig(),e=P(this.Reveal.getRevealElement(),Pe),i=t.slideNumber&&/all|print/i.test(t.showSlideNumber),s=this.Reveal.getComputedSlideSize(window.innerWidth,window.innerHeight),n=Math.floor(s.width*(1+t.margin)),a=Math.floor(s.height*(1+t.margin)),l=s.width,r=s.height;yield new Promise(requestAnimationFrame),Dt("@page{size:"+n+"px "+a+"px; margin: 0px;}"),Dt(".reveal section>img, .reveal section>video, .reveal section>iframe{max-width: "+l+"px; max-height:"+r+"px}"),document.documentElement.classList.add("reveal-print","print-pdf"),document.body.style.width=n+"px",document.body.style.height=a+"px";let c=this.Reveal.getViewportElement(),o;if(c){let d=window.getComputedStyle(c);d&&d.background&&(o=d.background)}yield new Promise(requestAnimationFrame),this.Reveal.layoutSlideContents(l,r),yield new Promise(requestAnimationFrame);let u=e.map(d=>d.scrollHeight),h=[],g=e[0].parentNode,p=1;e.forEach(function(d,b){if(d.classList.contains("stack")===!1){let y=(n-l)/2,z=(a-r)/2,H=u[b],N=Math.max(Math.ceil(H/a),1);N=Math.min(N,t.pdfMaxPagesPerSlide),(N===1&&t.center||d.classList.contains("center"))&&(z=Math.max((a-H)/2,0));let A=document.createElement("div");if(h.push(A),A.className="pdf-page",A.style.height=(a+t.pdfPageHeightOffset)*N+"px",o&&(A.style.background=o),A.appendChild(d),d.style.left=y+"px",d.style.top=z+"px",d.style.width=l+"px",this.Reveal.slideContent.layout(d),d.slideBackgroundElement&&A.insertBefore(d.slideBackgroundElement,d),t.showNotes){let x=this.Reveal.getSlideNotes(d);if(x){let j=typeof t.showNotes=="string"?t.showNotes:"inline",M=document.createElement("div");M.classList.add("speaker-notes"),M.classList.add("speaker-notes-pdf"),M.setAttribute("data-layout",j),M.innerHTML=x,j==="separate-page"?h.push(M):(M.style.left="8px",M.style.bottom="8px",M.style.width=n-16+"px",A.appendChild(M))}}if(i){let x=document.createElement("div");x.classList.add("slide-number"),x.classList.add("slide-number-pdf"),x.innerHTML=p++,A.appendChild(x)}if(t.pdfSeparateFragments){let x=this.Reveal.fragments.sort(A.querySelectorAll(".fragment"),!0),j;x.forEach(function(M,B){j&&j.forEach(function(T){T.classList.remove("current-fragment")}),M.forEach(function(T){T.classList.add("visible","current-fragment")},this);let _=A.cloneNode(!0);if(i){let T=_.querySelector(".slide-number-pdf"),U=B+1;T.innerHTML+="."+U}h.push(_),j=M},this),x.forEach(function(M){M.forEach(function(B){B.classList.remove("visible","current-fragment")})})}else P(A,".fragment:not(.fade-out)").forEach(function(x){x.classList.add("visible")})}},this),yield new Promise(requestAnimationFrame),h.forEach(d=>g.appendChild(d)),this.Reveal.slideContent.layout(this.Reveal.getSlidesElement()),this.Reveal.dispatchEvent({type:"pdf-ready"}),c.classList.remove("loading-scroll-mode")})}isActive(){return this.Reveal.getConfig().view==="print"}},On=class{constructor(t){this.Reveal=t}configure(t,e){t.fragments===!1?this.disable():e.fragments===!1&&this.enable()}disable(){P(this.Reveal.getSlidesElement(),".fragment").forEach(t=>{t.classList.add("visible"),t.classList.remove("current-fragment")})}enable(){P(this.Reveal.getSlidesElement(),".fragment").forEach(t=>{t.classList.remove("visible"),t.classList.remove("current-fragment")})}availableRoutes(){let t=this.Reveal.getCurrentSlide();if(t&&this.Reveal.getConfig().fragments){let e=t.querySelectorAll(".fragment:not(.disabled)"),i=t.querySelectorAll(".fragment:not(.disabled):not(.visible)");return{prev:e.length-i.length>0,next:!!i.length}}else return{prev:!1,next:!1}}sort(t,e=!1){t=Array.from(t);let i=[],s=[],n=[];t.forEach(l=>{if(l.hasAttribute("data-fragment-index")){let r=parseInt(l.getAttribute("data-fragment-index"),10);i[r]||(i[r]=[]),i[r].push(l)}else s.push([l])}),i=i.concat(s);let a=0;return i.forEach(l=>{l.forEach(r=>{n.push(r),r.setAttribute("data-fragment-index",a)}),a++}),e===!0?i:n}sortAll(){this.Reveal.getHorizontalSlides().forEach(t=>{let e=P(t,"section");e.forEach((i,s)=>{this.sort(i.querySelectorAll(".fragment"))},this),e.length===0&&this.sort(t.querySelectorAll(".fragment"))})}update(t,e,i=this.Reveal.getCurrentSlide()){let s={shown:[],hidden:[]};if(i&&this.Reveal.getConfig().fragments&&(e||(e=this.sort(i.querySelectorAll(".fragment"))),e.length)){let n=0;if(typeof t!="number"){let a=this.sort(i.querySelectorAll(".fragment.visible")).pop();a&&(t=parseInt(a.getAttribute("data-fragment-index")||0,10))}Array.from(e).forEach((a,l)=>{if(a.hasAttribute("data-fragment-index")&&(l=parseInt(a.getAttribute("data-fragment-index"),10)),n=Math.max(n,l),l<=t){let r=a.classList.contains("visible");a.classList.add("visible"),a.classList.remove("current-fragment"),l===t&&(this.Reveal.announceStatus(this.Reveal.getStatusText(a)),a.classList.add("current-fragment"),this.Reveal.slideContent.startEmbeddedContent(a)),r||(s.shown.push(a),this.Reveal.dispatchEvent({target:a,type:"visible",bubbles:!1}))}else{let r=a.classList.contains("visible");a.classList.remove("visible"),a.classList.remove("current-fragment"),r&&(this.Reveal.slideContent.stopEmbeddedContent(a),s.hidden.push(a),this.Reveal.dispatchEvent({target:a,type:"hidden",bubbles:!1}))}}),t=typeof t=="number"?t:-1,t=Math.max(Math.min(t,n),-1),i.setAttribute("data-fragment",t)}return s.hidden.length&&this.Reveal.dispatchEvent({type:"fragmenthidden",data:{fragment:s.hidden[0],fragments:s.hidden}}),s.shown.length&&this.Reveal.dispatchEvent({type:"fragmentshown",data:{fragment:s.shown[0],fragments:s.shown}}),s}sync(t=this.Reveal.getCurrentSlide()){return this.sort(t.querySelectorAll(".fragment"))}goto(t,e=0){let i=this.Reveal.getCurrentSlide();if(i&&this.Reveal.getConfig().fragments){let s=this.sort(i.querySelectorAll(".fragment:not(.disabled)"));if(s.length){if(typeof t!="number"){let a=this.sort(i.querySelectorAll(".fragment:not(.disabled).visible")).pop();t=a?parseInt(a.getAttribute("data-fragment-index")||0,10):-1}t+=e;let n=this.update(t,s);return this.Reveal.controls.update(),this.Reveal.progress.update(),this.Reveal.getConfig().fragmentInURL&&this.Reveal.location.writeURL(),!!(n.shown.length||n.hidden.length)}}return!1}next(){return this.goto(null,1)}prev(){return this.goto(null,-1)}},Fn=class{constructor(t){this.Reveal=t,this.active=!1,this.onSlideClicked=this.onSlideClicked.bind(this)}activate(){if(this.Reveal.getConfig().overview&&!this.Reveal.isScrollView()&&!this.isActive()){this.active=!0,this.Reveal.getRevealElement().classList.add("overview"),this.Reveal.cancelAutoSlide(),this.Reveal.getSlidesElement().appendChild(this.Reveal.getBackgroundsElement()),P(this.Reveal.getRevealElement(),Pe).forEach(i=>{i.classList.contains("stack")||i.addEventListener("click",this.onSlideClicked,!0)});let t=this.Reveal.getComputedSlideSize();this.overviewSlideWidth=t.width+70,this.overviewSlideHeight=t.height+70,this.Reveal.getConfig().rtl&&(this.overviewSlideWidth=-this.overviewSlideWidth),this.Reveal.updateSlidesVisibility(),this.layout(),this.update(),this.Reveal.layout();let e=this.Reveal.getIndices();this.Reveal.dispatchEvent({type:"overviewshown",data:{indexh:e.h,indexv:e.v,currentSlide:this.Reveal.getCurrentSlide()}})}}layout(){this.Reveal.getHorizontalSlides().forEach((t,e)=>{t.setAttribute("data-index-h",e),Se(t,"translate3d("+e*this.overviewSlideWidth+"px, 0, 0)"),t.classList.contains("stack")&&P(t,"section").forEach((i,s)=>{i.setAttribute("data-index-h",e),i.setAttribute("data-index-v",s),Se(i,"translate3d(0, "+s*this.overviewSlideHeight+"px, 0)")})}),Array.from(this.Reveal.getBackgroundsElement().childNodes).forEach((t,e)=>{Se(t,"translate3d("+e*this.overviewSlideWidth+"px, 0, 0)"),P(t,".slide-background").forEach((i,s)=>{Se(i,"translate3d(0, "+s*this.overviewSlideHeight+"px, 0)")})})}update(){let t=Math.min(window.innerWidth,window.innerHeight),e=Math.max(t/5,150)/t,i=this.Reveal.getIndices();this.Reveal.transformSlides({overview:["scale("+e+")","translateX("+-i.h*this.overviewSlideWidth+"px)","translateY("+-i.v*this.overviewSlideHeight+"px)"].join(" ")})}deactivate(){if(this.Reveal.getConfig().overview){this.active=!1,this.Reveal.getRevealElement().classList.remove("overview"),this.Reveal.getRevealElement().classList.add("overview-deactivating"),setTimeout(()=>{this.Reveal.getRevealElement().classList.remove("overview-deactivating")},1),this.Reveal.getRevealElement().appendChild(this.Reveal.getBackgroundsElement()),P(this.Reveal.getRevealElement(),Pe).forEach(e=>{Se(e,""),e.removeEventListener("click",this.onSlideClicked,!0)}),P(this.Reveal.getBackgroundsElement(),".slide-background").forEach(e=>{Se(e,"")}),this.Reveal.transformSlides({overview:""});let t=this.Reveal.getIndices();this.Reveal.slide(t.h,t.v),this.Reveal.layout(),this.Reveal.cueAutoSlide(),this.Reveal.dispatchEvent({type:"overviewhidden",data:{indexh:t.h,indexv:t.v,currentSlide:this.Reveal.getCurrentSlide()}})}}toggle(t){typeof t=="boolean"?t?this.activate():this.deactivate():this.isActive()?this.deactivate():this.activate()}isActive(){return this.active}onSlideClicked(t){if(this.isActive()){t.preventDefault();let e=t.target;for(;e&&!e.nodeName.match(/section/gi);)e=e.parentNode;if(e&&!e.classList.contains("disabled")&&(this.deactivate(),e.nodeName.match(/section/gi))){let i=parseInt(e.getAttribute("data-index-h"),10),s=parseInt(e.getAttribute("data-index-v"),10);this.Reveal.slide(i,s)}}}},Vn=class{constructor(t){this.Reveal=t,this.shortcuts={},this.bindings={},this.onDocumentKeyDown=this.onDocumentKeyDown.bind(this)}configure(t,e){t.navigationMode==="linear"?(this.shortcuts["&#8594; , &#8595; , SPACE , N , L , J"]="Next slide",this.shortcuts["&#8592; , &#8593; , P , H , K"]="Previous slide"):(this.shortcuts["N , SPACE"]="Next slide",this.shortcuts["P , Shift SPACE"]="Previous slide",this.shortcuts["&#8592; , H"]="Navigate left",this.shortcuts["&#8594; , L"]="Navigate right",this.shortcuts["&#8593; , K"]="Navigate up",this.shortcuts["&#8595; , J"]="Navigate down"),this.shortcuts["Alt + &#8592;/&#8593/&#8594;/&#8595;"]="Navigate without fragments",this.shortcuts["Shift + &#8592;/&#8593/&#8594;/&#8595;"]="Jump to first/last slide",this.shortcuts["B , ."]="Pause",this.shortcuts.F="Fullscreen",this.shortcuts.G="Jump to slide",this.shortcuts["ESC, O"]="Slide overview"}bind(){document.addEventListener("keydown",this.onDocumentKeyDown,!1)}unbind(){document.removeEventListener("keydown",this.onDocumentKeyDown,!1)}addKeyBinding(t,e){typeof t=="object"&&t.keyCode?this.bindings[t.keyCode]={callback:e,key:t.key,description:t.description}:this.bindings[t]={callback:e,key:null,description:null}}removeKeyBinding(t){delete this.bindings[t]}triggerKey(t){this.onDocumentKeyDown({keyCode:t})}registerKeyboardShortcut(t,e){this.shortcuts[t]=e}getShortcuts(){return this.shortcuts}getBindings(){return this.bindings}onDocumentKeyDown(t){let e=this.Reveal.getConfig();if(typeof e.keyboardCondition=="function"&&e.keyboardCondition(t)===!1||e.keyboardCondition==="focused"&&!this.Reveal.isFocused())return!0;let i=t.keyCode,s=!this.Reveal.isAutoSliding();this.Reveal.onUserInput(t);let n=document.activeElement&&document.activeElement.isContentEditable===!0,a=document.activeElement&&document.activeElement.tagName&&/input|textarea/i.test(document.activeElement.tagName),l=document.activeElement&&document.activeElement.className&&/speaker-notes/i.test(document.activeElement.className),r=!([32,37,38,39,40,63,78,80,191].indexOf(t.keyCode)!==-1&&t.shiftKey||t.altKey)&&(t.shiftKey||t.altKey||t.ctrlKey||t.metaKey);if(n||a||l||r)return;let c=[66,86,190,191,112],o;if(typeof e.keyboard=="object")for(o in e.keyboard)e.keyboard[o]==="togglePause"&&c.push(parseInt(o,10));if(this.Reveal.isOverlayOpen()&&!["Escape","f","c","b","."].includes(t.key)||this.Reveal.isPaused()&&c.indexOf(i)===-1)return!1;let u=e.navigationMode==="linear"||!this.Reveal.hasHorizontalSlides()||!this.Reveal.hasVerticalSlides(),h=!1;if(typeof e.keyboard=="object"){for(o in e.keyboard)if(parseInt(o,10)===i){let g=e.keyboard[o];typeof g=="function"?g.apply(null,[t]):typeof g=="string"&&typeof this.Reveal[g]=="function"&&this.Reveal[g].call(),h=!0}}if(h===!1){for(o in this.bindings)if(parseInt(o,10)===i){let g=this.bindings[o].callback;typeof g=="function"?g.apply(null,[t]):typeof g=="string"&&typeof this.Reveal[g]=="function"&&this.Reveal[g].call(),h=!0}}h===!1&&(h=!0,i===80||i===33?this.Reveal.prev({skipFragments:t.altKey}):i===78||i===34?this.Reveal.next({skipFragments:t.altKey}):i===72||i===37?t.shiftKey?this.Reveal.slide(0):!this.Reveal.overview.isActive()&&u?e.rtl?this.Reveal.next({skipFragments:t.altKey}):this.Reveal.prev({skipFragments:t.altKey}):this.Reveal.left({skipFragments:t.altKey}):i===76||i===39?t.shiftKey?this.Reveal.slide(this.Reveal.getHorizontalSlides().length-1):!this.Reveal.overview.isActive()&&u?e.rtl?this.Reveal.prev({skipFragments:t.altKey}):this.Reveal.next({skipFragments:t.altKey}):this.Reveal.right({skipFragments:t.altKey}):i===75||i===38?t.shiftKey?this.Reveal.slide(void 0,0):!this.Reveal.overview.isActive()&&u?this.Reveal.prev({skipFragments:t.altKey}):this.Reveal.up({skipFragments:t.altKey}):i===74||i===40?t.shiftKey?this.Reveal.slide(void 0,Number.MAX_VALUE):!this.Reveal.overview.isActive()&&u?this.Reveal.next({skipFragments:t.altKey}):this.Reveal.down({skipFragments:t.altKey}):i===36?this.Reveal.slide(0):i===35?this.Reveal.slide(this.Reveal.getHorizontalSlides().length-1):i===32?(this.Reveal.overview.isActive()&&this.Reveal.overview.deactivate(),t.shiftKey?this.Reveal.prev({skipFragments:t.altKey}):this.Reveal.next({skipFragments:t.altKey})):[58,59,66,86,190].includes(i)||i===191&&!t.shiftKey?this.Reveal.togglePause():i===70?Li(e.embedded?this.Reveal.getViewportElement():document.documentElement):i===65?e.autoSlideStoppable&&this.Reveal.toggleAutoSlide(s):i===71?e.jumpToSlide&&this.Reveal.toggleJumpToSlide():i===67&&this.Reveal.isOverlayOpen()?this.Reveal.closeOverlay():(i===63||i===191)&&t.shiftKey||i===112?this.Reveal.toggleHelp():h=!1),h?t.preventDefault&&t.preventDefault():i===27||i===79?(this.Reveal.closeOverlay()===!1&&this.Reveal.overview.toggle(),t.preventDefault&&t.preventDefault()):i===13&&this.Reveal.overview.isActive()&&(this.Reveal.overview.deactivate(),t.preventDefault&&t.preventDefault()),this.Reveal.cueAutoSlide()}},Un=class{constructor(t){Ti(this,"MAX_REPLACE_STATE_FREQUENCY",1e3),this.Reveal=t,this.writeURLTimeout=0,this.replaceStateTimestamp=0,this.onWindowHashChange=this.onWindowHashChange.bind(this)}bind(){window.addEventListener("hashchange",this.onWindowHashChange,!1)}unbind(){window.removeEventListener("hashchange",this.onWindowHashChange,!1)}getIndicesFromHash(t=window.location.hash,e={}){let i=t.replace(/^#\/?/,""),s=i.split("/");if(!/^[0-9]*$/.test(s[0])&&i.length){let n,a;/\/[-\d]+$/g.test(i)&&(a=parseInt(i.split("/").pop(),10),a=isNaN(a)?void 0:a,i=i.split("/").shift());try{let l=decodeURIComponent(i);n=(document.getElementById(l)||document.querySelector(`[data-id="${l}"]`)).closest(".slides section")}catch{}if(n)return Ai(ke({},this.Reveal.getIndices(n)),{f:a})}else{let n=this.Reveal.getConfig(),a=n.hashOneBasedIndex||e.oneBasedIndex?1:0,l=parseInt(s[0],10)-a||0,r=parseInt(s[1],10)-a||0,c;return n.fragmentInURL&&(c=parseInt(s[2],10),isNaN(c)&&(c=void 0)),{h:l,v:r,f:c}}return null}readURL(){let t=this.Reveal.getIndices(),e=this.getIndicesFromHash();e?(e.h!==t.h||e.v!==t.v||e.f!==void 0)&&this.Reveal.slide(e.h,e.v,e.f):this.Reveal.slide(t.h||0,t.v||0)}writeURL(t){let e=this.Reveal.getConfig(),i=this.Reveal.getCurrentSlide();if(clearTimeout(this.writeURLTimeout),typeof t=="number")this.writeURLTimeout=setTimeout(this.writeURL,t);else if(i){let s=this.getHash();e.history?window.location.hash=s:e.hash&&(s==="/"?this.debouncedReplaceState(window.location.pathname+window.location.search):this.debouncedReplaceState("#"+s))}}replaceState(t){window.history.replaceState(null,null,t),this.replaceStateTimestamp=Date.now()}debouncedReplaceState(t){clearTimeout(this.replaceStateTimeout),Date.now()-this.replaceStateTimestamp>this.MAX_REPLACE_STATE_FREQUENCY?this.replaceState(t):this.replaceStateTimeout=setTimeout(()=>this.replaceState(t),this.MAX_REPLACE_STATE_FREQUENCY)}getHash(t){let e="/",i=t||this.Reveal.getCurrentSlide(),s=i?i.getAttribute("id"):null;s&&(s=encodeURIComponent(s));let n=this.Reveal.getIndices(t);if(this.Reveal.getConfig().fragmentInURL||(n.f=void 0),typeof s=="string"&&s.length)e="/"+s,n.f>=0&&(e+="/"+n.f);else{let a=this.Reveal.getConfig().hashOneBasedIndex?1:0;(n.h>0||n.v>0||n.f>=0)&&(e+=n.h+a),(n.v>0||n.f>=0)&&(e+="/"+(n.v+a)),n.f>=0&&(e+="/"+n.f)}return e}onWindowHashChange(t){this.readURL()}},Wn=class{constructor(t){this.Reveal=t,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)}render(){let t=this.Reveal.getConfig().rtl,e=this.Reveal.getRevealElement();this.element=document.createElement("aside"),this.element.className="controls",this.element.innerHTML=`<button class="navigate-left" aria-label="${t?"next slide":"previous slide"}"><div class="controls-arrow"></div></button>
8
8
  <button class="navigate-right" aria-label="${t?"previous slide":"next slide"}"><div class="controls-arrow"></div></button>
9
9
  <button class="navigate-up" aria-label="above slide"><div class="controls-arrow"></div></button>
10
- <button class="navigate-down" aria-label="below slide"><div class="controls-arrow"></div></button>`,this.Reveal.getRevealElement().appendChild(this.element),this.controlsLeft=I(e,".navigate-left"),this.controlsRight=I(e,".navigate-right"),this.controlsUp=I(e,".navigate-up"),this.controlsDown=I(e,".navigate-down"),this.controlsPrev=I(e,".navigate-prev"),this.controlsNext=I(e,".navigate-next"),this.controlsFullscreen=I(e,".enter-fullscreen"),this.controlsRightArrow=this.element.querySelector(".navigate-right"),this.controlsLeftArrow=this.element.querySelector(".navigate-left"),this.controlsDownArrow=this.element.querySelector(".navigate-down")}configure(t,e){let i=t.controls==="speaker"||t.controls==="speaker-only";this.element.style.display=t.controls&&(!i||this.Reveal.isSpeakerNotes())?"block":"none",this.element.setAttribute("data-controls-layout",t.controlsLayout),this.element.setAttribute("data-controls-back-arrows",t.controlsBackArrows)}bind(){let t=["touchstart","click"];Ii&&(t=["touchend"]),t.forEach(e=>{this.controlsLeft.forEach(i=>i.addEventListener(e,this.onNavigateLeftClicked,!1)),this.controlsRight.forEach(i=>i.addEventListener(e,this.onNavigateRightClicked,!1)),this.controlsUp.forEach(i=>i.addEventListener(e,this.onNavigateUpClicked,!1)),this.controlsDown.forEach(i=>i.addEventListener(e,this.onNavigateDownClicked,!1)),this.controlsPrev.forEach(i=>i.addEventListener(e,this.onNavigatePrevClicked,!1)),this.controlsNext.forEach(i=>i.addEventListener(e,this.onNavigateNextClicked,!1)),this.controlsFullscreen.forEach(i=>i.addEventListener(e,this.onEnterFullscreen,!1))})}unbind(){["touchstart","touchend","click"].forEach(t=>{this.controlsLeft.forEach(e=>e.removeEventListener(t,this.onNavigateLeftClicked,!1)),this.controlsRight.forEach(e=>e.removeEventListener(t,this.onNavigateRightClicked,!1)),this.controlsUp.forEach(e=>e.removeEventListener(t,this.onNavigateUpClicked,!1)),this.controlsDown.forEach(e=>e.removeEventListener(t,this.onNavigateDownClicked,!1)),this.controlsPrev.forEach(e=>e.removeEventListener(t,this.onNavigatePrevClicked,!1)),this.controlsNext.forEach(e=>e.removeEventListener(t,this.onNavigateNextClicked,!1)),this.controlsFullscreen.forEach(e=>e.removeEventListener(t,this.onEnterFullscreen,!1))})}update(){let t=this.Reveal.availableRoutes();[...this.controlsLeft,...this.controlsRight,...this.controlsUp,...this.controlsDown,...this.controlsPrev,...this.controlsNext].forEach(i=>{i.classList.remove("enabled","fragmented"),i.setAttribute("disabled","disabled")}),t.left&&this.controlsLeft.forEach(i=>{i.classList.add("enabled"),i.removeAttribute("disabled")}),t.right&&this.controlsRight.forEach(i=>{i.classList.add("enabled"),i.removeAttribute("disabled")}),t.up&&this.controlsUp.forEach(i=>{i.classList.add("enabled"),i.removeAttribute("disabled")}),t.down&&this.controlsDown.forEach(i=>{i.classList.add("enabled"),i.removeAttribute("disabled")}),(t.left||t.up)&&this.controlsPrev.forEach(i=>{i.classList.add("enabled"),i.removeAttribute("disabled")}),(t.right||t.down)&&this.controlsNext.forEach(i=>{i.classList.add("enabled"),i.removeAttribute("disabled")});let e=this.Reveal.getCurrentSlide();if(e){let i=this.Reveal.fragments.availableRoutes();i.prev&&this.controlsPrev.forEach(a=>{a.classList.add("fragmented","enabled"),a.removeAttribute("disabled")}),i.next&&this.controlsNext.forEach(a=>{a.classList.add("fragmented","enabled"),a.removeAttribute("disabled")});let s=this.Reveal.isVerticalSlide(e),n=s&&e.parentElement&&e.parentElement.querySelectorAll(":scope > section").length>1;s&&n?(i.prev&&this.controlsUp.forEach(a=>{a.classList.add("fragmented","enabled"),a.removeAttribute("disabled")}),i.next&&this.controlsDown.forEach(a=>{a.classList.add("fragmented","enabled"),a.removeAttribute("disabled")})):(i.prev&&this.controlsLeft.forEach(a=>{a.classList.add("fragmented","enabled"),a.removeAttribute("disabled")}),i.next&&this.controlsRight.forEach(a=>{a.classList.add("fragmented","enabled"),a.removeAttribute("disabled")}))}if(this.Reveal.getConfig().controlsTutorial){let i=this.Reveal.getIndices();!this.Reveal.hasNavigatedVertically()&&t.down?this.controlsDownArrow.classList.add("highlight"):(this.controlsDownArrow.classList.remove("highlight"),this.Reveal.getConfig().rtl?!this.Reveal.hasNavigatedHorizontally()&&t.left&&i.v===0?this.controlsLeftArrow.classList.add("highlight"):this.controlsLeftArrow.classList.remove("highlight"):!this.Reveal.hasNavigatedHorizontally()&&t.right&&i.v===0?this.controlsRightArrow.classList.add("highlight"):this.controlsRightArrow.classList.remove("highlight"))}}destroy(){this.unbind(),this.element.remove()}onNavigateLeftClicked(t){t.preventDefault(),this.Reveal.onUserInput(),this.Reveal.getConfig().navigationMode==="linear"?this.Reveal.prev():this.Reveal.left()}onNavigateRightClicked(t){t.preventDefault(),this.Reveal.onUserInput(),this.Reveal.getConfig().navigationMode==="linear"?this.Reveal.next():this.Reveal.right()}onNavigateUpClicked(t){t.preventDefault(),this.Reveal.onUserInput(),this.Reveal.up()}onNavigateDownClicked(t){t.preventDefault(),this.Reveal.onUserInput(),this.Reveal.down()}onNavigatePrevClicked(t){t.preventDefault(),this.Reveal.onUserInput(),this.Reveal.prev()}onNavigateNextClicked(t){t.preventDefault(),this.Reveal.onUserInput(),this.Reveal.next()}onEnterFullscreen(t){let e=this.Reveal.getConfig(),i=this.Reveal.getViewportElement();Li(e.embedded?i:i.parentElement)}},Kn=class{constructor(t){this.Reveal=t,this.onProgressClicked=this.onProgressClicked.bind(this)}render(){this.element=document.createElement("div"),this.element.className="progress",this.Reveal.getRevealElement().appendChild(this.element),this.bar=document.createElement("span"),this.element.appendChild(this.bar)}configure(t,e){this.element.style.display=t.progress?"block":"none"}bind(){this.Reveal.getConfig().progress&&this.element&&this.element.addEventListener("click",this.onProgressClicked,!1)}unbind(){this.Reveal.getConfig().progress&&this.element&&this.element.removeEventListener("click",this.onProgressClicked,!1)}update(){if(this.Reveal.getConfig().progress&&this.bar){let t=this.Reveal.getProgress();this.Reveal.getTotalSlides()<2&&(t=0),this.bar.style.transform="scaleX("+t+")"}}getMaxWidth(){return this.Reveal.getRevealElement().offsetWidth}onProgressClicked(t){this.Reveal.onUserInput(t),t.preventDefault();let e=this.Reveal.getSlides(),i=e.length,s=Math.floor(t.clientX/this.getMaxWidth()*i);this.Reveal.getConfig().rtl&&(s=i-s);let n=this.Reveal.getIndices(e[s]);this.Reveal.slide(n.h,n.v)}destroy(){this.element.remove()}},Zn=class{constructor(t){this.Reveal=t,this.lastMouseWheelStep=0,this.cursorHidden=!1,this.cursorInactiveTimeout=0,this.onDocumentCursorActive=this.onDocumentCursorActive.bind(this),this.onDocumentMouseScroll=this.onDocumentMouseScroll.bind(this)}configure(t,e){t.mouseWheel?document.addEventListener("wheel",this.onDocumentMouseScroll,!1):document.removeEventListener("wheel",this.onDocumentMouseScroll,!1),t.hideInactiveCursor?(document.addEventListener("mousemove",this.onDocumentCursorActive,!1),document.addEventListener("mousedown",this.onDocumentCursorActive,!1)):(this.showCursor(),document.removeEventListener("mousemove",this.onDocumentCursorActive,!1),document.removeEventListener("mousedown",this.onDocumentCursorActive,!1))}showCursor(){this.cursorHidden&&(this.cursorHidden=!1,this.Reveal.getRevealElement().style.cursor="")}hideCursor(){this.cursorHidden===!1&&(this.cursorHidden=!0,this.Reveal.getRevealElement().style.cursor="none")}destroy(){this.showCursor(),document.removeEventListener("wheel",this.onDocumentMouseScroll,!1),document.removeEventListener("mousemove",this.onDocumentCursorActive,!1),document.removeEventListener("mousedown",this.onDocumentCursorActive,!1)}onDocumentCursorActive(t){this.showCursor(),clearTimeout(this.cursorInactiveTimeout),this.cursorInactiveTimeout=setTimeout(this.hideCursor.bind(this),this.Reveal.getConfig().hideCursorTime)}onDocumentMouseScroll(t){if(Date.now()-this.lastMouseWheelStep>1e3){this.lastMouseWheelStep=Date.now();let e=t.detail||-t.wheelDelta;e>0?this.Reveal.next():e<0&&this.Reveal.prev()}}},zi=(t,e)=>{let i=document.createElement("script");i.type="text/javascript",i.async=!1,i.defer=!1,i.src=t,typeof e=="function"&&(i.onload=n=>{n.type==="load"&&(i.onload=i.onerror=null,e())},i.onerror=n=>{i.onload=i.onerror=null,e(Error("Failed loading script: "+i.src+`
10
+ <button class="navigate-down" aria-label="below slide"><div class="controls-arrow"></div></button>`,this.Reveal.getRevealElement().appendChild(this.element),this.controlsLeft=P(e,".navigate-left"),this.controlsRight=P(e,".navigate-right"),this.controlsUp=P(e,".navigate-up"),this.controlsDown=P(e,".navigate-down"),this.controlsPrev=P(e,".navigate-prev"),this.controlsNext=P(e,".navigate-next"),this.controlsFullscreen=P(e,".enter-fullscreen"),this.controlsRightArrow=this.element.querySelector(".navigate-right"),this.controlsLeftArrow=this.element.querySelector(".navigate-left"),this.controlsDownArrow=this.element.querySelector(".navigate-down")}configure(t,e){let i=t.controls==="speaker"||t.controls==="speaker-only";this.element.style.display=t.controls&&(!i||this.Reveal.isSpeakerNotes())?"block":"none",this.element.setAttribute("data-controls-layout",t.controlsLayout),this.element.setAttribute("data-controls-back-arrows",t.controlsBackArrows)}bind(){let t=["touchstart","click"];Ii&&(t=["touchend"]),t.forEach(e=>{this.controlsLeft.forEach(i=>i.addEventListener(e,this.onNavigateLeftClicked,!1)),this.controlsRight.forEach(i=>i.addEventListener(e,this.onNavigateRightClicked,!1)),this.controlsUp.forEach(i=>i.addEventListener(e,this.onNavigateUpClicked,!1)),this.controlsDown.forEach(i=>i.addEventListener(e,this.onNavigateDownClicked,!1)),this.controlsPrev.forEach(i=>i.addEventListener(e,this.onNavigatePrevClicked,!1)),this.controlsNext.forEach(i=>i.addEventListener(e,this.onNavigateNextClicked,!1)),this.controlsFullscreen.forEach(i=>i.addEventListener(e,this.onEnterFullscreen,!1))})}unbind(){["touchstart","touchend","click"].forEach(t=>{this.controlsLeft.forEach(e=>e.removeEventListener(t,this.onNavigateLeftClicked,!1)),this.controlsRight.forEach(e=>e.removeEventListener(t,this.onNavigateRightClicked,!1)),this.controlsUp.forEach(e=>e.removeEventListener(t,this.onNavigateUpClicked,!1)),this.controlsDown.forEach(e=>e.removeEventListener(t,this.onNavigateDownClicked,!1)),this.controlsPrev.forEach(e=>e.removeEventListener(t,this.onNavigatePrevClicked,!1)),this.controlsNext.forEach(e=>e.removeEventListener(t,this.onNavigateNextClicked,!1)),this.controlsFullscreen.forEach(e=>e.removeEventListener(t,this.onEnterFullscreen,!1))})}update(){let t=this.Reveal.availableRoutes();[...this.controlsLeft,...this.controlsRight,...this.controlsUp,...this.controlsDown,...this.controlsPrev,...this.controlsNext].forEach(i=>{i.classList.remove("enabled","fragmented"),i.setAttribute("disabled","disabled")}),t.left&&this.controlsLeft.forEach(i=>{i.classList.add("enabled"),i.removeAttribute("disabled")}),t.right&&this.controlsRight.forEach(i=>{i.classList.add("enabled"),i.removeAttribute("disabled")}),t.up&&this.controlsUp.forEach(i=>{i.classList.add("enabled"),i.removeAttribute("disabled")}),t.down&&this.controlsDown.forEach(i=>{i.classList.add("enabled"),i.removeAttribute("disabled")}),(t.left||t.up)&&this.controlsPrev.forEach(i=>{i.classList.add("enabled"),i.removeAttribute("disabled")}),(t.right||t.down)&&this.controlsNext.forEach(i=>{i.classList.add("enabled"),i.removeAttribute("disabled")});let e=this.Reveal.getCurrentSlide();if(e){let i=this.Reveal.fragments.availableRoutes();i.prev&&this.controlsPrev.forEach(a=>{a.classList.add("fragmented","enabled"),a.removeAttribute("disabled")}),i.next&&this.controlsNext.forEach(a=>{a.classList.add("fragmented","enabled"),a.removeAttribute("disabled")});let s=this.Reveal.isVerticalSlide(e),n=s&&e.parentElement&&e.parentElement.querySelectorAll(":scope > section").length>1;s&&n?(i.prev&&this.controlsUp.forEach(a=>{a.classList.add("fragmented","enabled"),a.removeAttribute("disabled")}),i.next&&this.controlsDown.forEach(a=>{a.classList.add("fragmented","enabled"),a.removeAttribute("disabled")})):(i.prev&&this.controlsLeft.forEach(a=>{a.classList.add("fragmented","enabled"),a.removeAttribute("disabled")}),i.next&&this.controlsRight.forEach(a=>{a.classList.add("fragmented","enabled"),a.removeAttribute("disabled")}))}if(this.Reveal.getConfig().controlsTutorial){let i=this.Reveal.getIndices();!this.Reveal.hasNavigatedVertically()&&t.down?this.controlsDownArrow.classList.add("highlight"):(this.controlsDownArrow.classList.remove("highlight"),this.Reveal.getConfig().rtl?!this.Reveal.hasNavigatedHorizontally()&&t.left&&i.v===0?this.controlsLeftArrow.classList.add("highlight"):this.controlsLeftArrow.classList.remove("highlight"):!this.Reveal.hasNavigatedHorizontally()&&t.right&&i.v===0?this.controlsRightArrow.classList.add("highlight"):this.controlsRightArrow.classList.remove("highlight"))}}destroy(){this.unbind(),this.element.remove()}onNavigateLeftClicked(t){t.preventDefault(),this.Reveal.onUserInput(),this.Reveal.getConfig().navigationMode==="linear"?this.Reveal.prev():this.Reveal.left()}onNavigateRightClicked(t){t.preventDefault(),this.Reveal.onUserInput(),this.Reveal.getConfig().navigationMode==="linear"?this.Reveal.next():this.Reveal.right()}onNavigateUpClicked(t){t.preventDefault(),this.Reveal.onUserInput(),this.Reveal.up()}onNavigateDownClicked(t){t.preventDefault(),this.Reveal.onUserInput(),this.Reveal.down()}onNavigatePrevClicked(t){t.preventDefault(),this.Reveal.onUserInput(),this.Reveal.prev()}onNavigateNextClicked(t){t.preventDefault(),this.Reveal.onUserInput(),this.Reveal.next()}onEnterFullscreen(t){let e=this.Reveal.getConfig(),i=this.Reveal.getViewportElement();Li(e.embedded?i:i.parentElement)}},Kn=class{constructor(t){this.Reveal=t,this.onProgressClicked=this.onProgressClicked.bind(this)}render(){this.element=document.createElement("div"),this.element.className="progress",this.Reveal.getRevealElement().appendChild(this.element),this.bar=document.createElement("span"),this.element.appendChild(this.bar)}configure(t,e){this.element.style.display=t.progress?"block":"none"}bind(){this.Reveal.getConfig().progress&&this.element&&this.element.addEventListener("click",this.onProgressClicked,!1)}unbind(){this.Reveal.getConfig().progress&&this.element&&this.element.removeEventListener("click",this.onProgressClicked,!1)}update(){if(this.Reveal.getConfig().progress&&this.bar){let t=this.Reveal.getProgress();this.Reveal.getTotalSlides()<2&&(t=0),this.bar.style.transform="scaleX("+t+")"}}getMaxWidth(){return this.Reveal.getRevealElement().offsetWidth}onProgressClicked(t){this.Reveal.onUserInput(t),t.preventDefault();let e=this.Reveal.getSlides(),i=e.length,s=Math.floor(t.clientX/this.getMaxWidth()*i);this.Reveal.getConfig().rtl&&(s=i-s);let n=this.Reveal.getIndices(e[s]);this.Reveal.slide(n.h,n.v)}destroy(){this.element.remove()}},Zn=class{constructor(t){this.Reveal=t,this.lastMouseWheelStep=0,this.cursorHidden=!1,this.cursorInactiveTimeout=0,this.onDocumentCursorActive=this.onDocumentCursorActive.bind(this),this.onDocumentMouseScroll=this.onDocumentMouseScroll.bind(this)}configure(t,e){t.mouseWheel?document.addEventListener("wheel",this.onDocumentMouseScroll,!1):document.removeEventListener("wheel",this.onDocumentMouseScroll,!1),t.hideInactiveCursor?(document.addEventListener("mousemove",this.onDocumentCursorActive,!1),document.addEventListener("mousedown",this.onDocumentCursorActive,!1)):(this.showCursor(),document.removeEventListener("mousemove",this.onDocumentCursorActive,!1),document.removeEventListener("mousedown",this.onDocumentCursorActive,!1))}showCursor(){this.cursorHidden&&(this.cursorHidden=!1,this.Reveal.getRevealElement().style.cursor="")}hideCursor(){this.cursorHidden===!1&&(this.cursorHidden=!0,this.Reveal.getRevealElement().style.cursor="none")}destroy(){this.showCursor(),document.removeEventListener("wheel",this.onDocumentMouseScroll,!1),document.removeEventListener("mousemove",this.onDocumentCursorActive,!1),document.removeEventListener("mousedown",this.onDocumentCursorActive,!1)}onDocumentCursorActive(t){this.showCursor(),clearTimeout(this.cursorInactiveTimeout),this.cursorInactiveTimeout=setTimeout(this.hideCursor.bind(this),this.Reveal.getConfig().hideCursorTime)}onDocumentMouseScroll(t){if(Date.now()-this.lastMouseWheelStep>1e3){this.lastMouseWheelStep=Date.now();let e=t.detail||-t.wheelDelta;e>0?this.Reveal.next():e<0&&this.Reveal.prev()}}},zi=(t,e)=>{let i=document.createElement("script");i.type="text/javascript",i.async=!1,i.defer=!1,i.src=t,typeof e=="function"&&(i.onload=n=>{n.type==="load"&&(i.onload=i.onerror=null,e())},i.onerror=n=>{i.onload=i.onerror=null,e(Error("Failed loading script: "+i.src+`
11
11
  `+n))});let s=document.querySelector("head");s&&s.insertBefore(i,s.lastChild)},Qn=class{constructor(t){this.Reveal=t,this.state="idle",this.registeredPlugins={},this.asyncDependencies=[]}load(t,e){return this.state="loading",t.forEach(this.registerPlugin.bind(this)),new Promise(i=>{let s=[],n=0;if(e.forEach(a=>{(!a.condition||a.condition())&&(a.async?this.asyncDependencies.push(a):s.push(a))}),s.length){n=s.length;let a=l=>{l&&typeof l.callback=="function"&&l.callback(),--n===0&&this.initPlugins().then(i)};s.forEach(l=>{typeof l.id=="string"?(this.registerPlugin(l),a(l)):typeof l.src=="string"?zi(l.src,()=>a(l)):(console.warn("Unrecognized plugin format",l),a())})}else this.initPlugins().then(i)})}initPlugins(){return new Promise(t=>{let e=Object.values(this.registeredPlugins),i=e.length;if(i===0)this.loadAsync().then(t);else{let s,n=()=>{--i===0?this.loadAsync().then(t):s()},a=0;s=()=>{let l=e[a++];if(typeof l.init=="function"){let r=l.init(this.Reveal);r&&typeof r.then=="function"?r.then(n):n()}else n()},s()}})}loadAsync(){return this.state="loaded",this.asyncDependencies.length&&this.asyncDependencies.forEach(t=>{zi(t.src,t.callback)}),Promise.resolve()}registerPlugin(t){arguments.length===2&&typeof arguments[0]=="string"?(t=arguments[1],t.id=arguments[0]):typeof t=="function"&&(t=t());let e=t.id;typeof e=="string"?this.registeredPlugins[e]===void 0?(this.registeredPlugins[e]=t,this.state==="loaded"&&typeof t.init=="function"&&t.init(this.Reveal)):console.warn('reveal.js: "'+e+'" plugin has already been registered'):console.warn("Unrecognized plugin format; can't find plugin.id",t)}hasPlugin(t){return!!this.registeredPlugins[t]}getPlugin(t){return this.registeredPlugins[t]}getRegisteredPlugins(){return this.registeredPlugins}destroy(){Object.values(this.registeredPlugins).forEach(t=>{typeof t.destroy=="function"&&t.destroy()}),this.registeredPlugins={},this.asyncDependencies=[]}},Xn=class{constructor(t){this.Reveal=t,this.onSlidesClicked=this.onSlidesClicked.bind(this),this.iframeTriggerSelector=null,this.mediaTriggerSelector="[data-preview-image], [data-preview-video]",this.stateProps=["previewIframe","previewImage","previewVideo","previewFit"],this.state={}}update(){this.Reveal.getConfig().previewLinks?this.iframeTriggerSelector="a[href]:not([data-preview-link=false]), [data-preview-link]:not(a):not([data-preview-link=false])":this.iframeTriggerSelector="[data-preview-link]:not([data-preview-link=false])";let t=this.Reveal.getSlidesElement().querySelectorAll(this.iframeTriggerSelector).length>0,e=this.Reveal.getSlidesElement().querySelectorAll(this.mediaTriggerSelector).length>0;t||e?this.Reveal.getSlidesElement().addEventListener("click",this.onSlidesClicked,!1):this.Reveal.getSlidesElement().removeEventListener("click",this.onSlidesClicked,!1)}createOverlay(t){this.dom=document.createElement("div"),this.dom.classList.add("r-overlay"),this.dom.classList.add(t),this.viewport=document.createElement("div"),this.viewport.classList.add("r-overlay-viewport"),this.dom.appendChild(this.viewport),this.Reveal.getRevealElement().appendChild(this.dom)}previewIframe(t){this.close(),this.state={previewIframe:t},this.createOverlay("r-overlay-preview"),this.dom.dataset.state="loading",this.viewport.innerHTML=`<header class="r-overlay-header">
12
12
  <a class="r-overlay-header-button r-overlay-external" href="${t}" target="_blank"><span class="icon"></span></a>
13
13
  <button class="r-overlay-header-button r-overlay-close"><span class="icon"></span></button>
@@ -29,33 +29,33 @@ var Rl=Object.defineProperty;var Al=(Te,me,C)=>me in Te?Rl(Te,me,{enumerable:!0,
29
29
  <div class="r-overlay-content">
30
30
  <div class="r-overlay-help-content">${t}</div>
31
31
  </div>
32
- `,this.dom.querySelector(".r-overlay-close").addEventListener("click",s=>{this.close(),s.preventDefault()},!1),this.Reveal.dispatchEvent({type:"showhelp"})}}isOpen(){return!!this.dom}close(){return this.dom?(this.dom.remove(),this.dom=null,this.state={},this.Reveal.dispatchEvent({type:"closeoverlay"}),!0):!1}getState(){return this.state}setState(t){this.stateProps.every(e=>this.state[e]===t[e])||(t.previewIframe?this.previewIframe(t.previewIframe):t.previewImage?this.previewImage(t.previewImage,t.previewFit):t.previewVideo?this.previewVideo(t.previewVideo,t.previewFit):this.close())}onSlidesClicked(t){let e=t.target,i=e.closest(this.iframeTriggerSelector),s=e.closest(this.mediaTriggerSelector);if(i){if(t.metaKey||t.shiftKey||t.altKey)return;let n=i.getAttribute("data-preview-link"),a=typeof n=="string"&&n.startsWith("http")?n:i.getAttribute("href");a&&(this.previewIframe(a),t.preventDefault())}else if(s){if(s.hasAttribute("data-preview-image")){let n=s.dataset.previewImage||s.getAttribute("src");n&&(this.previewImage(n,s.dataset.previewFit),t.preventDefault())}else if(s.hasAttribute("data-preview-video")){let n=s.dataset.previewVideo||s.getAttribute("src");if(!n){let a=s.querySelector("source");a&&(n=a.getAttribute("src"))}n&&(this.previewVideo(n,s.dataset.previewFit),t.preventDefault())}}}destroy(){this.close()}},it=40,Gn=class{constructor(t){this.Reveal=t,this.touchStartX=0,this.touchStartY=0,this.touchStartCount=0,this.touchCaptured=!1,this.onPointerDown=this.onPointerDown.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.onTouchStart=this.onTouchStart.bind(this),this.onTouchMove=this.onTouchMove.bind(this),this.onTouchEnd=this.onTouchEnd.bind(this)}bind(){let t=this.Reveal.getRevealElement();"onpointerdown"in window?(t.addEventListener("pointerdown",this.onPointerDown,!1),t.addEventListener("pointermove",this.onPointerMove,!1),t.addEventListener("pointerup",this.onPointerUp,!1)):window.navigator.msPointerEnabled?(t.addEventListener("MSPointerDown",this.onPointerDown,!1),t.addEventListener("MSPointerMove",this.onPointerMove,!1),t.addEventListener("MSPointerUp",this.onPointerUp,!1)):(t.addEventListener("touchstart",this.onTouchStart,!1),t.addEventListener("touchmove",this.onTouchMove,!1),t.addEventListener("touchend",this.onTouchEnd,!1))}unbind(){let t=this.Reveal.getRevealElement();t.removeEventListener("pointerdown",this.onPointerDown,!1),t.removeEventListener("pointermove",this.onPointerMove,!1),t.removeEventListener("pointerup",this.onPointerUp,!1),t.removeEventListener("MSPointerDown",this.onPointerDown,!1),t.removeEventListener("MSPointerMove",this.onPointerMove,!1),t.removeEventListener("MSPointerUp",this.onPointerUp,!1),t.removeEventListener("touchstart",this.onTouchStart,!1),t.removeEventListener("touchmove",this.onTouchMove,!1),t.removeEventListener("touchend",this.onTouchEnd,!1)}isSwipePrevented(t){if(tt(t,"video[controls], audio[controls]"))return!0;for(;t&&typeof t.hasAttribute=="function";){if(t.hasAttribute("data-prevent-swipe"))return!0;t=t.parentNode}return!1}onTouchStart(t){if(this.touchCaptured=!1,this.isSwipePrevented(t.target))return!0;this.touchStartX=t.touches[0].clientX,this.touchStartY=t.touches[0].clientY,this.touchStartCount=t.touches.length}onTouchMove(t){if(this.isSwipePrevented(t.target))return!0;let e=this.Reveal.getConfig();if(this.touchCaptured)Ii&&t.preventDefault();else{this.Reveal.onUserInput(t);let i=t.touches[0].clientX,s=t.touches[0].clientY;if(t.touches.length===1&&this.touchStartCount!==2){let n=this.Reveal.availableRoutes({includeFragments:!0}),a=i-this.touchStartX,l=s-this.touchStartY;a>it&&Math.abs(a)>Math.abs(l)?(this.touchCaptured=!0,e.navigationMode==="linear"?e.rtl?this.Reveal.next():this.Reveal.prev():this.Reveal.left()):a<-it&&Math.abs(a)>Math.abs(l)?(this.touchCaptured=!0,e.navigationMode==="linear"?e.rtl?this.Reveal.prev():this.Reveal.next():this.Reveal.right()):l>it&&n.up?(this.touchCaptured=!0,e.navigationMode==="linear"?this.Reveal.prev():this.Reveal.up()):l<-it&&n.down&&(this.touchCaptured=!0,e.navigationMode==="linear"?this.Reveal.next():this.Reveal.down()),e.embedded?(this.touchCaptured||this.Reveal.isVerticalSlide())&&t.preventDefault():t.preventDefault()}}}onTouchEnd(t){this.touchCaptured&&!this.Reveal.slideContent.isAllowedToPlayAudio()&&this.Reveal.startEmbeddedContent(this.Reveal.getCurrentSlide()),this.touchCaptured=!1}onPointerDown(t){(t.pointerType===t.MSPOINTER_TYPE_TOUCH||t.pointerType==="touch")&&(t.touches=[{clientX:t.clientX,clientY:t.clientY}],this.onTouchStart(t))}onPointerMove(t){(t.pointerType===t.MSPOINTER_TYPE_TOUCH||t.pointerType==="touch")&&(t.touches=[{clientX:t.clientX,clientY:t.clientY}],this.onTouchMove(t))}onPointerUp(t){(t.pointerType===t.MSPOINTER_TYPE_TOUCH||t.pointerType==="touch")&&(t.touches=[{clientX:t.clientX,clientY:t.clientY}],this.onTouchEnd(t))}},_t="focus",$i="blur",Jn=class{constructor(t){this.Reveal=t,this.onRevealPointerDown=this.onRevealPointerDown.bind(this),this.onDocumentPointerDown=this.onDocumentPointerDown.bind(this)}configure(t,e){t.embedded?this.blur():(this.focus(),this.unbind())}bind(){this.Reveal.getConfig().embedded&&this.Reveal.getRevealElement().addEventListener("pointerdown",this.onRevealPointerDown,!1)}unbind(){this.Reveal.getRevealElement().removeEventListener("pointerdown",this.onRevealPointerDown,!1),document.removeEventListener("pointerdown",this.onDocumentPointerDown,!1)}focus(){this.state!==_t&&(this.Reveal.getRevealElement().classList.add("focused"),document.addEventListener("pointerdown",this.onDocumentPointerDown,!1)),this.state=_t}blur(){this.state!==$i&&(this.Reveal.getRevealElement().classList.remove("focused"),document.removeEventListener("pointerdown",this.onDocumentPointerDown,!1)),this.state=$i}isFocused(){return this.state===_t}destroy(){this.Reveal.getRevealElement().classList.remove("focused")}onRevealPointerDown(t){this.focus()}onDocumentPointerDown(t){let e=se(t.target,".reveal");(!e||e!==this.Reveal.getRevealElement())&&this.blur()}},Yn=class{constructor(t){this.Reveal=t}render(){this.element=document.createElement("div"),this.element.className="speaker-notes",this.element.setAttribute("data-prevent-swipe",""),this.element.setAttribute("tabindex","0"),this.Reveal.getRevealElement().appendChild(this.element)}configure(t,e){t.showNotes&&this.element.setAttribute("data-layout",typeof t.showNotes=="string"?t.showNotes:"inline")}update(){this.Reveal.getConfig().showNotes&&this.element&&this.Reveal.getCurrentSlide()&&!this.Reveal.isScrollView()&&!this.Reveal.isPrintView()&&(this.element.innerHTML=this.getSlideNotes()||'<span class="notes-placeholder">No notes on this slide.</span>')}updateVisibility(){this.Reveal.getConfig().showNotes&&this.hasNotes()&&!this.Reveal.isScrollView()&&!this.Reveal.isPrintView()?this.Reveal.getRevealElement().classList.add("show-notes"):this.Reveal.getRevealElement().classList.remove("show-notes")}hasNotes(){return this.Reveal.getSlidesElement().querySelectorAll("[data-notes], aside.notes").length>0}isSpeakerNotesWindow(){return!!window.location.search.match(/receiver/gi)}getSlideNotes(t=this.Reveal.getCurrentSlide()){if(t.hasAttribute("data-notes"))return t.getAttribute("data-notes");let e=t.querySelectorAll("aside.notes");return e?Array.from(e).map(i=>i.innerHTML).join(`
33
- `):null}destroy(){this.element.remove()}},er=class{constructor(t,e){this.diameter=100,this.diameter2=this.diameter/2,this.thickness=6,this.playing=!1,this.progress=0,this.progressOffset=1,this.container=t,this.progressCheck=e,this.canvas=document.createElement("canvas"),this.canvas.className="playback",this.canvas.width=this.diameter,this.canvas.height=this.diameter,this.canvas.style.width=this.diameter2+"px",this.canvas.style.height=this.diameter2+"px",this.context=this.canvas.getContext("2d"),this.container.appendChild(this.canvas),this.render()}setPlaying(t){let e=this.playing;this.playing=t,!e&&this.playing?this.animate():this.render()}animate(){let t=this.progress;this.progress=this.progressCheck(),t>.8&&this.progress<.2&&(this.progressOffset=this.progress),this.render(),this.playing&&requestAnimationFrame(this.animate.bind(this))}render(){let t=this.playing?this.progress:0,e=this.diameter2-this.thickness,i=this.diameter2,s=this.diameter2;this.progressOffset+=(1-this.progressOffset)*.1;let n=-Math.PI/2+t*(Math.PI*2),a=-Math.PI/2+this.progressOffset*(Math.PI*2);this.context.save(),this.context.clearRect(0,0,this.diameter,this.diameter),this.context.beginPath(),this.context.arc(i,s,e+4,0,Math.PI*2,!1),this.context.fillStyle="rgba( 0, 0, 0, 0.4 )",this.context.fill(),this.context.beginPath(),this.context.arc(i,s,e,0,Math.PI*2,!1),this.context.lineWidth=this.thickness,this.context.strokeStyle="rgba( 255, 255, 255, 0.2 )",this.context.stroke(),this.playing&&(this.context.beginPath(),this.context.arc(i,s,e,a,n,!1),this.context.lineWidth=this.thickness,this.context.strokeStyle="#fff",this.context.stroke()),this.context.translate(i-28/2,s-28/2),this.playing?(this.context.fillStyle="#fff",this.context.fillRect(0,0,28/2-4,28),this.context.fillRect(18,0,28/2-4,28)):(this.context.beginPath(),this.context.translate(4,0),this.context.moveTo(0,0),this.context.lineTo(24,28/2),this.context.lineTo(0,28),this.context.fillStyle="#fff",this.context.fill()),this.context.restore()}on(t,e){this.canvas.addEventListener(t,e,!1)}off(t,e){this.canvas.removeEventListener(t,e,!1)}destroy(){this.playing=!1,this.canvas.parentNode&&this.container.removeChild(this.canvas)}},tr={width:960,height:700,margin:.04,minScale:.2,maxScale:2,controls:!0,controlsTutorial:!0,controlsLayout:"bottom-right",controlsBackArrows:"faded",progress:!0,slideNumber:!1,showSlideNumber:"all",hashOneBasedIndex:!1,hash:!1,respondToHashChanges:!0,jumpToSlide:!0,history:!1,keyboard:!0,keyboardCondition:null,disableLayout:!1,overview:!0,center:!0,touch:!0,loop:!1,rtl:!1,navigationMode:"default",shuffle:!1,fragments:!0,fragmentInURL:!0,embedded:!1,help:!0,pause:!0,showNotes:!1,showHiddenSlides:!1,autoPlayMedia:null,preloadIframes:null,mouseWheel:!1,previewLinks:!1,viewDistance:3,mobileViewDistance:2,display:"block",hideInactiveCursor:!0,hideCursorTime:5e3,sortFragmentsOnSync:!0,autoAnimate:!0,autoAnimateMatcher:null,autoAnimateEasing:"ease",autoAnimateDuration:1,autoAnimateUnmatched:!0,autoAnimateStyles:["opacity","color","background-color","padding","font-size","line-height","letter-spacing","border-width","border-color","border-radius","outline","outline-offset"],autoSlide:0,autoSlideStoppable:!0,autoSlideMethod:null,defaultTiming:null,postMessage:!0,postMessageEvents:!1,focusBodyOnPageVisibilityChange:!0,transition:"slide",transitionSpeed:"default",backgroundTransition:"fade",parallaxBackgroundImage:"",parallaxBackgroundSize:"",parallaxBackgroundRepeat:"",parallaxBackgroundPosition:"",parallaxBackgroundHorizontal:null,parallaxBackgroundVertical:null,view:null,scrollLayout:"full",scrollSnap:"mandatory",scrollProgress:"auto",scrollActivationWidth:435,pdfMaxPagesPerSlide:1/0,pdfSeparateFragments:!0,pdfPageHeightOffset:-1,dependencies:[],plugins:[]},Bi="6.0.0";function Di(t,e){arguments.length<2&&(e=arguments[0],t=document.querySelector(".reveal"));let i={},s={},n=!1,a=!1,l,r,c,o,d={hasNavigatedHorizontally:!1,hasNavigatedVertically:!1},h=[],g=1,p={layout:"",overview:""},u={},b="idle",y=0,N,H=0,L=-1,A=!1,x=new An(i),q=new In(i),z=new Mn(i),$=new $n(i),_=new zn(i),T=new qn(i),Q=new jn(i),B=new On(i),v=new Fn(i),R=new Vn(i),P=new Un(i),W=new Wn(i),te=new Kn(i),F=new Zn(i),V=new Qn(i),K=new Xn(i),ce=new Jn(i),qe=new Gn(i),le=new Yn(i);function bt(m){if(!t)throw'Unable to find presentation root (<div class="reveal">).';if(n)throw"Reveal.js has already been initialized.";if(n=!0,u.wrapper=t,u.slides=t.querySelector(".slides"),!u.slides)throw'Unable to find slides container (<div class="slides">).';return s=ke(ke(ke(ke(ke({},tr),s),e),m),Pi()),/print-pdf/gi.test(window.location.search)&&(s.view="print"),kt(),window.addEventListener("load",Oe,!1),V.load(s.plugins,s.dependencies).then(D),new Promise(f=>i.on("ready",f))}function kt(){s.embedded===!0?u.viewport=se(t,".reveal-viewport")||t:(u.viewport=document.body,document.documentElement.classList.add("reveal-full-page")),u.viewport.classList.add("reveal-viewport")}function D(){n!==!1&&(a=!0,ie(),je(),ll(),rl(),al(),fl(),Ps(),_.update(!0),G(),P.readURL(),setTimeout(()=>{u.slides.classList.remove("no-transition"),u.wrapper.classList.add("ready"),oe({type:"ready",data:{indexh:l,indexv:r,currentSlide:o}})},1))}function G(){let m=s.view==="print",f=s.view==="scroll"||s.view==="reader";(m||f)&&(m?wt():qe.unbind(),u.viewport.classList.add("loading-scroll-mode"),m?document.readyState==="complete"?Q.activate():window.addEventListener("load",()=>Q.activate()):T.activate())}function ie(){s.showHiddenSlides||I(u.wrapper,'section[data-visibility="hidden"]').forEach(m=>{let f=m.parentNode;f.childElementCount===1&&/section/i.test(f.nodeName)?f.remove():m.remove()})}function je(){u.slides.classList.add("no-transition"),Le?u.wrapper.classList.add("no-hover"):u.wrapper.classList.remove("no-hover"),_.render(),q.render(),z.render(),W.render(),te.render(),le.render(),u.pauseOverlay=yn(u.wrapper,"div","pause-overlay",s.controls?'<button class="resume-button">Resume presentation</button>':null),u.statusElement=oi(),u.wrapper.setAttribute("role","application")}function oi(){let m=u.wrapper.querySelector(".aria-status");return m||(m=document.createElement("div"),m.style.position="absolute",m.style.height="1px",m.style.width="1px",m.style.overflow="hidden",m.style.clip="rect( 1px, 1px, 1px, 1px )",m.classList.add("aria-status"),m.setAttribute("aria-live","polite"),m.setAttribute("aria-atomic","true"),u.wrapper.appendChild(m)),m}function ci(m){u.statusElement.textContent=m}function yt(m){let f="";if(m.nodeType===3)f+=m.textContent.trim();else if(m.nodeType===1){let k=m.getAttribute("aria-hidden"),w=window.getComputedStyle(m).display==="none";if(k!=="true"&&!w){if(m.tagName==="IMG"||m.tagName==="VIDEO"){let E=m.getAttribute("alt");E&&(f+=Ls(E))}Array.from(m.childNodes).forEach(E=>{f+=yt(E)}),["P","DIV","UL","OL","LI","H1","H2","H3","H4","H5","H6","BLOCKQUOTE"].includes(m.tagName)&&f.trim()!==""&&(f=Ls(f))}}return f=f.trim(),f===""?"":f+" "}function Ls(m){let f=m.trim();return f===""?m:/[.!?]$/.test(f)?f:f+"."}function rl(){setInterval(()=>{(!T.isActive()&&u.wrapper.scrollTop!==0||u.wrapper.scrollLeft!==0)&&(u.wrapper.scrollTop=0,u.wrapper.scrollLeft=0)},1e3)}function al(){document.addEventListener("fullscreenchange",Pt),document.addEventListener("webkitfullscreenchange",Pt)}function ll(){s.postMessage&&window.addEventListener("message",en,!1)}function Ps(m){let f=ke({},s);if(typeof m=="object"&&De(s,m),i.isReady()===!1)return;let k=u.wrapper.querySelectorAll(Pe).length;u.wrapper.classList.remove(f.transition),u.wrapper.classList.add(s.transition),u.wrapper.setAttribute("data-transition-speed",s.transitionSpeed),u.wrapper.setAttribute("data-background-transition",s.backgroundTransition),u.viewport.style.setProperty("--slide-width",typeof s.width=="string"?s.width:s.width+"px"),u.viewport.style.setProperty("--slide-height",typeof s.height=="string"?s.height:s.height+"px"),s.shuffle&&pi(),zt(u.wrapper,"embedded",s.embedded),zt(u.wrapper,"rtl",s.rtl),zt(u.wrapper,"center",s.center),s.pause===!1&&Ye(),$.reset(),N&&(N=(N.destroy(),null)),k>1&&s.autoSlide&&s.autoSlideStoppable&&(N=new er(u.wrapper,()=>Math.min(Math.max((Date.now()-L)/y,0),1)),N.on("click",Sl),A=!1),s.navigationMode==="default"?u.wrapper.removeAttribute("data-navigation-mode"):u.wrapper.setAttribute("data-navigation-mode",s.navigationMode),le.configure(s,f),ce.configure(s,f),F.configure(s,f),W.configure(s,f),te.configure(s,f),R.configure(s,f),B.configure(s,f),q.configure(s,f),Os()}function Cs(){window.addEventListener("resize",nn,!1),s.touch&&qe.bind(),s.keyboard&&R.bind(),s.progress&&te.bind(),s.respondToHashChanges&&P.bind(),W.bind(),ce.bind(),u.slides.addEventListener("click",sn,!1),u.slides.addEventListener("transitionend",tn,!1),u.pauseOverlay.addEventListener("click",Ye,!1),s.focusBodyOnPageVisibilityChange&&document.addEventListener("visibilitychange",rn,!1)}function wt(){qe.unbind(),ce.unbind(),R.unbind(),W.unbind(),te.unbind(),P.unbind(),window.removeEventListener("resize",nn,!1),u.slides.removeEventListener("click",sn,!1),u.slides.removeEventListener("transitionend",tn,!1),u.pauseOverlay.removeEventListener("click",Ye,!1)}function ol(){n=!1,a!==!1&&(wt(),Et(),le.destroy(),ce.destroy(),K.destroy(),V.destroy(),F.destroy(),W.destroy(),te.destroy(),_.destroy(),q.destroy(),z.destroy(),document.removeEventListener("fullscreenchange",Pt),document.removeEventListener("webkitfullscreenchange",Pt),document.removeEventListener("visibilitychange",rn,!1),window.removeEventListener("message",en,!1),window.removeEventListener("load",Oe,!1),u.pauseOverlay&&u.pauseOverlay.remove(),u.statusElement&&u.statusElement.remove(),document.documentElement.classList.remove("reveal-full-page"),u.wrapper.classList.remove("ready","center","has-horizontal-slides","has-vertical-slides"),u.wrapper.removeAttribute("data-transition-speed"),u.wrapper.removeAttribute("data-background-transition"),u.viewport.classList.remove("reveal-viewport"),u.viewport.style.removeProperty("--slide-width"),u.viewport.style.removeProperty("--slide-height"),u.slides.style.removeProperty("width"),u.slides.style.removeProperty("height"),u.slides.style.removeProperty("zoom"),u.slides.style.removeProperty("left"),u.slides.style.removeProperty("top"),u.slides.style.removeProperty("bottom"),u.slides.style.removeProperty("right"),u.slides.style.removeProperty("transform"),Array.from(u.wrapper.querySelectorAll(Pe)).forEach(m=>{m.style.removeProperty("display"),m.style.removeProperty("top"),m.removeAttribute("hidden"),m.removeAttribute("aria-hidden")}))}function Is(m,f,k){t.addEventListener(m,f,k)}function Ms(m,f,k){t.removeEventListener(m,f,k)}function di(m){typeof m.layout=="string"&&(p.layout=m.layout),typeof m.overview=="string"&&(p.overview=m.overview),p.layout?Se(u.slides,p.layout+" "+p.overview):Se(u.slides,p.overview)}function oe({target:m=u.wrapper,type:f,data:k,bubbles:w=!0}){let E=document.createEvent("HTMLEvents",1,2);return E.initEvent(f,w,!0),De(E,k),m.dispatchEvent(E),m===u.wrapper&&zs(f),E}function Ns(m){oe({type:"slidechanged",data:{indexh:l,indexv:r,previousSlide:c,currentSlide:o,origin:m}})}function zs(m,f){if(s.postMessageEvents&&window.parent!==window.self){let k={namespace:"reveal",eventName:m,state:Js()};De(k,f),window.parent.postMessage(JSON.stringify(k),"*")}}function Oe(){if(u.wrapper&&!Q.isActive()){let m=u.viewport.offsetWidth,f=u.viewport.offsetHeight;if(!s.disableLayout){Le&&!s.embedded&&document.documentElement.style.setProperty("--vh",window.innerHeight*.01+"px");let k=T.isActive()?xt(m,f):xt(),w=g;$s(s.width,s.height),u.slides.style.width=k.width+"px",u.slides.style.height=k.height+"px",g=Math.min(k.presentationWidth/k.width,k.presentationHeight/k.height),g=Math.max(g,s.minScale),g=Math.min(g,s.maxScale),g===1||T.isActive()?(u.slides.style.zoom="",u.slides.style.left="",u.slides.style.top="",u.slides.style.bottom="",u.slides.style.right="",di({layout:""})):(u.slides.style.zoom="",u.slides.style.left="50%",u.slides.style.top="50%",u.slides.style.bottom="auto",u.slides.style.right="auto",di({layout:"translate(-50%, -50%) scale("+g+")"}));let E=Array.from(u.wrapper.querySelectorAll(Pe));for(let X=0,Y=E.length;X<Y;X++){let ee=E[X];ee.style.display!=="none"&&(s.center||ee.classList.contains("center")?ee.classList.contains("stack")?ee.style.top=0:ee.style.top=Math.max((k.height-ee.scrollHeight)/2,0)+"px":ee.style.top="")}w!==g&&oe({type:"resize",data:{oldScale:w,scale:g,size:k}})}cl(),u.viewport.style.setProperty("--slide-scale",g),u.viewport.style.setProperty("--viewport-width",m+"px"),u.viewport.style.setProperty("--viewport-height",f+"px"),T.layout(),te.update(),_.updateParallax(),v.isActive()&&v.update()}}function $s(m,f){I(u.slides,"section > .stretch, section > .r-stretch").forEach(k=>{let w=wn(k,f);if(/(img|video)/gi.test(k.nodeName)){let E=k.naturalWidth||k.videoWidth,X=k.naturalHeight||k.videoHeight,Y=Math.min(m/E,w/X);k.style.width=E*Y+"px",k.style.height=X*Y+"px"}else k.style.width=m+"px",k.style.height=w+"px"})}function cl(){if(u.wrapper&&!s.disableLayout&&!Q.isActive()&&typeof s.scrollActivationWidth=="number"&&s.view!=="scroll"){let m=xt();m.presentationWidth>0&&m.presentationWidth<=s.scrollActivationWidth?T.isActive()||(_.create(),T.activate()):T.isActive()&&T.deactivate()}}function xt(m,f){let k=s.width,w=s.height;s.disableLayout&&(k=u.slides.offsetWidth,w=u.slides.offsetHeight);let E={width:k,height:w,presentationWidth:m||u.wrapper.offsetWidth,presentationHeight:f||u.wrapper.offsetHeight};return E.presentationWidth-=E.presentationWidth*s.margin,E.presentationHeight-=E.presentationHeight*s.margin,typeof E.width=="string"&&/%$/.test(E.width)&&(E.width=parseInt(E.width,10)/100*E.presentationWidth),typeof E.height=="string"&&/%$/.test(E.height)&&(E.height=parseInt(E.height,10)/100*E.presentationHeight),E}function Bs(m,f){typeof m=="object"&&typeof m.setAttribute=="function"&&m.setAttribute("data-previous-indexv",f||0)}function Ds(m){if(typeof m=="object"&&typeof m.setAttribute=="function"&&m.classList.contains("stack")){let f=m.hasAttribute("data-start-indexv")?"data-start-indexv":"data-previous-indexv";return parseInt(m.getAttribute(f)||0,10)}return 0}function Je(m=o){return m&&m.parentNode&&!!m.parentNode.nodeName.match(/section/i)}function dl(m=o){return m.classList.contains(".stack")||m.querySelector("section")!==null}function Hs(){return o&&Je(o)?!o.nextElementSibling:!1}function _s(){return l===0&&r===0}function ui(){return o?!(o.nextElementSibling||Je(o)&&o.parentNode.nextElementSibling):!1}function qs(){if(s.pause){let m=u.wrapper.classList.contains("paused");Et(),u.wrapper.classList.add("paused"),m===!1&&oe({type:"paused"})}}function Ye(){let m=u.wrapper.classList.contains("paused");u.wrapper.classList.remove("paused"),Fe(),m&&oe({type:"resumed"})}function js(m){typeof m=="boolean"?m?qs():Ye():et()?Ye():qs()}function et(){return u.wrapper.classList.contains("paused")}function ul(m){typeof m=="boolean"?m?z.show():z.hide():z.isVisible()?z.hide():z.show()}function hl(m){typeof m=="boolean"?m?At():Rt():A?At():Rt()}function pl(){return!!(y&&!A)}function be(m,f,k,w){if(oe({type:"beforeslidechange",data:{indexh:m===void 0?l:m,indexv:f===void 0?r:f,origin:w}}).defaultPrevented)return;c=o;let E=u.wrapper.querySelectorAll(ye);if(T.isActive()){let ne=T.getSlideByIndices(m,f);ne&&T.scrollToSlide(ne);return}if(E.length===0)return;f===void 0&&!v.isActive()&&(f=Ds(E[m])),c&&c.parentNode&&c.parentNode.classList.contains("stack")&&Bs(c.parentNode,r);let X=h.concat();h.length=0;let Y=l||0,ee=r||0;l=St(ye,m===void 0?l:m),r=St(Bt,f===void 0?r:f);let xe=l!==Y||r!==ee;xe||(c=null);let Ae=E[l],ge=Ae.querySelectorAll("section");t.classList.toggle("is-vertical-slide",ge.length>1),o=ge[r]||Ae;let J=!1;xe&&c&&o&&!v.isActive()&&(b="running",J=hi(c,o,Y,ee),J&&u.slides.classList.add("disable-slide-transitions")),gi(),Oe(),v.isActive()&&v.update(),k!==void 0&&B.goto(k),c&&c!==o&&(c.classList.remove("present"),c.setAttribute("aria-hidden","true"),_s()&&setTimeout(()=>{bl().forEach(ne=>{Bs(ne,0)})},0));e:for(let ne=0,El=h.length;ne<El;ne++){for(let Ct=0;Ct<X.length;Ct++)if(X[Ct]===h[ne]){X.splice(Ct,1);continue e}u.viewport.classList.add(h[ne]),oe({type:h[ne]})}for(;X.length;)u.viewport.classList.remove(X.pop());xe&&(x.afterSlideChanged(),Ns(w)),(xe||!c)&&(x.stopEmbeddedContent(c),x.startEmbeddedContent(o)),requestAnimationFrame(()=>{ci(yt(o))}),te.update(),W.update(),le.update(),_.update(),_.updateParallax(),q.update(),B.update(),P.writeURL(),Fe(),J&&(setTimeout(()=>{u.slides.classList.remove("disable-slide-transitions")},0),s.autoAnimate&&$.run(c,o))}function hi(m,f,k,w){return m.hasAttribute("data-auto-animate")&&f.hasAttribute("data-auto-animate")&&m.getAttribute("data-auto-animate-id")===f.getAttribute("data-auto-animate-id")&&!(l>k||r>w?f:m).hasAttribute("data-auto-animate-restart")}function gl(m,f,k){let w=l||0;l=f,r=k;let E=o!==m;c=o,o=m,o&&c&&s.autoAnimate&&hi(c,o,w,r)&&$.run(c,o),E&&(x.afterSlideChanged(),c&&(x.stopEmbeddedContent(c),x.stopEmbeddedContent(c.slideBackgroundElement)),x.startEmbeddedContent(o),x.startEmbeddedContent(o.slideBackgroundElement)),requestAnimationFrame(()=>{ci(yt(o))}),Ns()}function Os(){wt(),Cs(),Oe(),y=s.autoSlide,Fe(),_.create(),P.writeURL(),s.sortFragmentsOnSync===!0&&B.sortAll(),l!==void 0&&(l=St(ye,l),r=St(Bt,r)),W.update(),te.update(),gi(),le.update(),le.updateVisibility(),K.update(),_.update(!0),q.update(),x.formatEmbeddedContent(),s.autoPlayMedia===!1?x.stopEmbeddedContent(o,{unloadIframes:!1}):x.startEmbeddedContent(o),v.isActive()&&v.layout(),oe({type:"sync"})}function ml(m=o){_.sync(m),B.sync(m),x.load(m),_.update(),le.update(),oe({type:"slidesync",data:{slide:m}})}function fl(){Re().forEach(m=>{I(m,"section").forEach((f,k)=>{k>0&&(f.classList.remove("present"),f.classList.remove("past"),f.classList.add("future"),f.setAttribute("aria-hidden","true"))})})}function pi(m=Re()){m.forEach((f,k)=>{let w=m[Math.floor(Math.random()*m.length)];w.parentNode===f.parentNode&&f.parentNode.insertBefore(f,w);let E=f.querySelectorAll("section");E.length&&pi(E)})}function St(m,f){let k=I(u.wrapper,m),w=k.length,E=T.isActive()||Q.isActive(),X=!1,Y=!1;if(w){s.loop&&(f>=w&&(X=!0),f%=w,f<0&&(f=w+f,Y=!0)),f=Math.max(Math.min(f,w-1),0);for(let ge=0;ge<w;ge++){let J=k[ge],ne=s.rtl&&!Je(J);if(J.classList.remove("past"),J.classList.remove("present"),J.classList.remove("future"),J.setAttribute("hidden",""),J.setAttribute("aria-hidden","true"),J.querySelector("section")&&J.classList.add("stack"),E){J.classList.add("present");continue}ge<f?(J.classList.add(ne?"future":"past"),s.fragments&&Fs(J)):ge>f?(J.classList.add(ne?"past":"future"),s.fragments&&Vs(J)):ge===f&&s.fragments&&(X?Vs(J):Y&&Fs(J))}let ee=k[f],xe=ee.classList.contains("present");ee.classList.add("present"),ee.removeAttribute("hidden"),ee.removeAttribute("aria-hidden"),xe||oe({target:ee,type:"visible",bubbles:!1});let Ae=ee.getAttribute("data-state");Ae&&(h=h.concat(Ae.split(" ")))}else f=0;return f}function Fs(m){I(m,".fragment").forEach(f=>{f.classList.add("visible"),f.classList.remove("current-fragment")})}function Vs(m){I(m,".fragment.visible").forEach(f=>{f.classList.remove("visible","current-fragment")})}function gi(){let m=Re(),f=m.length,k,w;if(f&&l!==void 0){let E=v.isActive(),X=E?10:s.viewDistance;Le&&(X=E?6:s.mobileViewDistance),Q.isActive()&&(X=Number.MAX_VALUE);for(let Y=0;Y<f;Y++){let ee=m[Y],xe=I(ee,"section"),Ae=xe.length;if(k=Math.abs((l||0)-Y)||0,s.loop&&(k=Math.abs(((l||0)-Y)%(f-X))||0),k<X?x.load(ee):x.unload(ee),Ae){let ge=E?0:Ds(ee);for(let J=0;J<Ae;J++){let ne=xe[J];w=Math.abs(Y===(l||0)?(r||0)-J:J-ge),k+w<X?x.load(ne):x.unload(ne)}}}Qs()?u.wrapper.classList.add("has-vertical-slides"):u.wrapper.classList.remove("has-vertical-slides"),Zs()?u.wrapper.classList.add("has-horizontal-slides"):u.wrapper.classList.remove("has-horizontal-slides")}}function we({includeFragments:m=!1}={}){let f=u.wrapper.querySelectorAll(ye),k=u.wrapper.querySelectorAll(Bt),w={left:l>0,right:l<f.length-1,up:r>0,down:r<k.length-1};if(s.loop&&(f.length>1&&(w.left=!0,w.right=!0),k.length>1&&(w.up=!0,w.down=!0)),f.length>1&&s.navigationMode==="linear"&&(w.right=w.right||w.down,w.left=w.left||w.up),m===!0){let E=B.availableRoutes();w.left=w.left||E.prev,w.up=w.up||E.prev,w.down=w.down||E.next,w.right=w.right||E.next}if(s.rtl){let E=w.left;w.left=w.right,w.right=E}return w}function Us(m=o){let f=Re(),k=0;e:for(let w=0;w<f.length;w++){let E=f[w],X=E.querySelectorAll("section");for(let Y=0;Y<X.length;Y++){if(X[Y]===m)break e;X[Y].dataset.visibility!=="uncounted"&&k++}if(E===m)break;E.classList.contains("stack")===!1&&E.dataset.visibility!=="uncounted"&&k++}return k}function vl(){let m=Xs(),f=Us();if(o){let k=o.querySelectorAll(".fragment");if(k.length>0){let w=o.querySelectorAll(".fragment.visible");f+=w.length/k.length*.9}}return Math.min(f/(m-1),1)}function Ws(m){let f=l,k=r,w;if(m)if(T.isActive())f=parseInt(m.getAttribute("data-index-h"),10),m.getAttribute("data-index-v")&&(k=parseInt(m.getAttribute("data-index-v"),10));else{let E=Je(m),X=E?m.parentNode:m,Y=Re();f=Math.max(Y.indexOf(X),0),k=void 0,E&&(k=Math.max(I(m.parentNode,"section").indexOf(m),0))}if(!m&&o&&o.querySelectorAll(".fragment").length>0){let E=o.querySelector(".current-fragment");w=E&&E.hasAttribute("data-fragment-index")?parseInt(E.getAttribute("data-fragment-index"),10):o.querySelectorAll(".fragment.visible").length-1}return{h:f,v:k,f:w}}function mi(){return I(u.wrapper,Pe+':not(.stack):not([data-visibility="uncounted"])')}function Re(){return I(u.wrapper,ye)}function Ks(){return I(u.wrapper,".slides>section>section")}function bl(){return I(u.wrapper,ye+".stack")}function Zs(){return Re().length>1}function Qs(){return Ks().length>1}function kl(){return mi().map(m=>{let f={};for(let k=0;k<m.attributes.length;k++){let w=m.attributes[k];f[w.name]=w.value}return f})}function Xs(){return mi().length}function Gs(m,f){let k=Re()[m],w=k&&k.querySelectorAll("section");return w&&w.length&&typeof f=="number"?w?w[f]:void 0:k}function yl(m,f){let k=typeof m=="number"?Gs(m,f):m;if(k)return k.slideBackgroundElement}function Js(){let m=Ws();return ke({indexh:m.h,indexv:m.v,indexf:m.f,paused:et(),overview:v.isActive()},K.getState())}function wl(m){if(typeof m=="object"){be(He(m.indexh),He(m.indexv),He(m.indexf));let f=He(m.paused),k=He(m.overview);typeof f=="boolean"&&f!==et()&&js(f),typeof k=="boolean"&&k!==v.isActive()&&v.toggle(k),K.setState(m)}}function Fe(){if(Et(),o&&s.autoSlide!==!1){let m=o.querySelector(".current-fragment[data-autoslide]"),f=m?m.getAttribute("data-autoslide"):null,k=o.parentNode?o.parentNode.getAttribute("data-autoslide"):null,w=o.getAttribute("data-autoslide");f?y=parseInt(f,10):w?y=parseInt(w,10):k?y=parseInt(k,10):(y=s.autoSlide,o.querySelectorAll(".fragment").length===0&&I(o,"video, audio").forEach(E=>{E.hasAttribute("data-autoplay")&&y&&E.duration*1e3/E.playbackRate>y&&(y=E.duration*1e3/E.playbackRate+1e3)})),y&&!A&&!et()&&!v.isActive()&&(!ui()||B.availableRoutes().next||s.loop===!0)&&(H=setTimeout(()=>{typeof s.autoSlideMethod=="function"?s.autoSlideMethod():bi(),Fe()},y),L=Date.now()),N&&N.setPlaying(H!==-1)}}function Et(){clearTimeout(H),H=-1}function Rt(){y&&!A&&(A=!0,oe({type:"autoslidepaused"}),clearTimeout(H),N&&N.setPlaying(!1))}function At(){y&&A&&(A=!1,oe({type:"autoslideresumed"}),Fe())}function Tt({skipFragments:m=!1}={}){if(d.hasNavigatedHorizontally=!0,T.isActive())return T.prev();s.rtl?(v.isActive()||m||B.next()===!1)&&we().left&&be(l+1,s.navigationMode==="grid"?r:void 0):(v.isActive()||m||B.prev()===!1)&&we().left&&be(l-1,s.navigationMode==="grid"?r:void 0)}function Lt({skipFragments:m=!1}={}){if(d.hasNavigatedHorizontally=!0,T.isActive())return T.next();s.rtl?(v.isActive()||m||B.prev()===!1)&&we().right&&be(l-1,s.navigationMode==="grid"?r:void 0):(v.isActive()||m||B.next()===!1)&&we().right&&be(l+1,s.navigationMode==="grid"?r:void 0)}function fi({skipFragments:m=!1}={}){if(T.isActive())return T.prev();(v.isActive()||m||B.prev()===!1)&&we().up&&be(l,r-1)}function vi({skipFragments:m=!1}={}){if(d.hasNavigatedVertically=!0,T.isActive())return T.next();(v.isActive()||m||B.next()===!1)&&we().down&&be(l,r+1)}function Ys({skipFragments:m=!1}={}){if(T.isActive())return T.prev();if(m||B.prev()===!1)if(we().up)fi({skipFragments:m});else{let f;if(f=s.rtl?I(u.wrapper,ye+".future").pop():I(u.wrapper,ye+".past").pop(),f&&f.classList.contains("stack")){let k=f.querySelectorAll("section").length-1||void 0;be(l-1,k)}else s.rtl?Lt({skipFragments:m}):Tt({skipFragments:m})}}function bi({skipFragments:m=!1}={}){if(d.hasNavigatedHorizontally=!0,d.hasNavigatedVertically=!0,T.isActive())return T.next();if(m||B.next()===!1){let f=we();f.down&&f.right&&s.loop&&Hs()&&(f.down=!1),f.down?vi({skipFragments:m}):s.rtl?Tt({skipFragments:m}):Lt({skipFragments:m})}}function xl(m){s.autoSlideStoppable&&Rt()}function en(m){let f=m.data;if(typeof f=="string"&&f.charAt(0)==="{"&&f.charAt(f.length-1)==="}"&&(f=JSON.parse(f),f.method&&typeof i[f.method]=="function"))if(Ln.test(f.method)===!1){let k=i[f.method].apply(i,f.args);zs("callback",{method:f.method,result:k})}else console.warn('reveal.js: "'+f.method+'" is is blacklisted from the postMessage API')}function tn(m){b==="running"&&/section/gi.test(m.target.nodeName)&&(b="idle",oe({type:"slidetransitionend",data:{indexh:l,indexv:r,previousSlide:c,currentSlide:o}}))}function sn(m){let f=se(m.target,'a[href^="#"]');if(f){let k=f.getAttribute("href"),w=P.getIndicesFromHash(k);w&&(i.slide(w.h,w.v,w.f),m.preventDefault())}}function nn(m){Oe()}function rn(m){document.hidden===!1&&document.activeElement!==document.body&&(typeof document.activeElement.blur=="function"&&document.activeElement.blur(),document.body.focus())}function Pt(m){(document.fullscreenElement||document.webkitFullscreenElement)===u.wrapper&&(m.stopImmediatePropagation(),setTimeout(()=>{i.layout(),i.focus.focus()},1))}function Sl(m){ui()&&s.loop===!1?(be(0,0),At()):A?At():Rt()}let an={VERSION:Bi,initialize:bt,configure:Ps,destroy:ol,sync:Os,syncSlide:ml,syncFragments:B.sync.bind(B),slide:be,left:Tt,right:Lt,up:fi,down:vi,prev:Ys,next:bi,navigateLeft:Tt,navigateRight:Lt,navigateUp:fi,navigateDown:vi,navigatePrev:Ys,navigateNext:bi,navigateFragment:B.goto.bind(B),prevFragment:B.prev.bind(B),nextFragment:B.next.bind(B),on:Is,off:Ms,addEventListener:Is,removeEventListener:Ms,layout:Oe,shuffle:pi,availableRoutes:we,availableFragments:B.availableRoutes.bind(B),toggleHelp:K.toggleHelp.bind(K),toggleOverview:v.toggle.bind(v),toggleScrollView:T.toggle.bind(T),togglePause:js,toggleAutoSlide:hl,toggleJumpToSlide:ul,isFirstSlide:_s,isLastSlide:ui,isLastVerticalSlide:Hs,isVerticalSlide:Je,isVerticalStack:dl,isPaused:et,isAutoSliding:pl,isSpeakerNotes:le.isSpeakerNotesWindow.bind(le),isOverview:v.isActive.bind(v),isFocused:ce.isFocused.bind(ce),isOverlayOpen:K.isOpen.bind(K),isScrollView:T.isActive.bind(T),isPrintView:Q.isActive.bind(Q),isReady:()=>a,loadSlide:x.load.bind(x),unloadSlide:x.unload.bind(x),startEmbeddedContent:()=>x.startEmbeddedContent(o),stopEmbeddedContent:()=>x.stopEmbeddedContent(o,{unloadIframes:!1}),previewIframe:K.previewIframe.bind(K),previewImage:K.previewImage.bind(K),previewVideo:K.previewVideo.bind(K),showPreview:K.previewIframe.bind(K),hidePreview:K.close.bind(K),addEventListeners:Cs,removeEventListeners:wt,dispatchEvent:oe,getState:Js,setState:wl,getProgress:vl,getIndices:Ws,getSlidesAttributes:kl,getSlidePastCount:Us,getTotalSlides:Xs,getSlide:Gs,getPreviousSlide:()=>c,getCurrentSlide:()=>o,getSlideBackground:yl,getSlideNotes:le.getSlideNotes.bind(le),getSlides:mi,getHorizontalSlides:Re,getVerticalSlides:Ks,hasHorizontalSlides:Zs,hasVerticalSlides:Qs,hasNavigatedHorizontally:()=>d.hasNavigatedHorizontally,hasNavigatedVertically:()=>d.hasNavigatedVertically,shouldAutoAnimateBetween:hi,addKeyBinding:R.addKeyBinding.bind(R),removeKeyBinding:R.removeKeyBinding.bind(R),triggerKey:R.triggerKey.bind(R),registerKeyboardShortcut:R.registerKeyboardShortcut.bind(R),getComputedSlideSize:xt,setCurrentScrollPage:gl,removeHiddenSlides:ie,getScale:()=>g,getConfig:()=>s,getQueryHash:Pi,getSlidePath:P.getHash.bind(P),getRevealElement:()=>t,getSlidesElement:()=>u.slides,getViewportElement:()=>u.viewport,getBackgroundsElement:()=>_.element,registerPlugin:V.registerPlugin.bind(V),hasPlugin:V.hasPlugin.bind(V),getPlugin:V.getPlugin.bind(V),getPlugins:V.getRegisteredPlugins.bind(V)};return De(i,Ai(ke({},an),{announceStatus:ci,getStatusText:yt,focus:ce,scroll:T,progress:te,controls:W,location:P,overview:v,keyboard:R,fragments:B,backgrounds:_,slideContent:x,slideNumber:q,onUserInput:xl,closeOverlay:K.close.bind(K),updateSlidesVisibility:gi,layoutSlideContents:$s,transformSlides:di,cueAutoSlide:Fe,cancelAutoSlide:Et})),an}var Ee=Di,Hi=[];Ee.initialize=t=>{let e=document.querySelector(".reveal");if(!(e instanceof HTMLElement))throw Error('Unable to find presentation root (<div class="reveal">).');return Object.assign(Ee,new Di(e,t)),Hi.map(i=>i(Ee)),Ee.initialize()},["configure","on","off","addEventListener","removeEventListener","registerPlugin"].forEach(t=>{Ee[t]=(...e)=>{Hi.push(i=>i[t].call(null,...e))}}),Ee.isReady=()=>!1,Ee.VERSION=Bi;var S=ln(Hl(),1),_i=(0,C.createContext)(null),ir=[];function sr(t,e){if(t===e)return!1;if(!t||!e)return t!==e;let i=Object.keys(t),s=Object.keys(e);if(i.length!==s.length)return!0;for(let n of i)if(!(n in e)||t[n]!==e[n])return!0;return!1}function qi(t,e){t&&(typeof t=="function"?t(e):t.current=e)}function nr(t){return t.tagName==="SECTION"}function ji(t,e,i){return Array.from(t.children).filter(nr).map(s=>{let n=e.get(s);n===void 0&&(n=i.current++,e.set(s,n));let a=ji(s,e,i);return a.length>0?[n,a]:n})}function rr(t,e,i){return t?JSON.stringify(ji(t,e,i)):"[]"}function ar({config:t,plugins:e=ir,onReady:i,onSync:s,onSlideSync:n,onSlideChange:a,onSlideTransitionEnd:l,onFragmentShown:r,onFragmentHidden:c,onOverviewShown:o,onOverviewHidden:d,onPaused:h,onResumed:g,deckRef:p,className:u,style:b,children:y}){let N=(0,C.useRef)(null),H=(0,C.useRef)(null),L=(0,C.useRef)(null),[A,x]=(0,C.useState)(null),q=(0,C.useRef)(e),z=(0,C.useRef)(!1),$=(0,C.useRef)(t),_=(0,C.useRef)(null),T=(0,C.useRef)(new WeakMap),Q=(0,C.useRef)(1),B=(0,C.useRef)(!1),v=(0,C.useRef)(0);return(0,C.useEffect)(()=>{if(B.current=!0,v.current+=1,L.current)L.current.isReady()&&x(L.current);else{let R=new Ee(N.current,{...t,plugins:q.current});$.current=t,L.current=R,R.initialize().then(()=>{!B.current||L.current!==R||(x(R),i==null||i(R))})}return()=>{B.current=!1;let R=L.current;if(!R)return;let P=++v.current;Promise.resolve().then(()=>{if(!(B.current||v.current!==P)&&L.current===R){try{R.destroy()}catch{}L.current===R&&(L.current=null)}})}},[]),(0,C.useEffect)(()=>(qi(p,A),()=>qi(p,null)),[p,A]),(0,C.useEffect)(()=>{if(!A)return;let R=[["sync",s],["slidesync",n],["slidechanged",a],["slidetransitionend",l],["fragmentshown",r],["fragmenthidden",c],["overviewshown",o],["overviewhidden",d],["paused",h],["resumed",g]].filter(P=>P[1]!=null);for(let[P,W]of R)A.on(P,W);return()=>{for(let[P,W]of R)A.off(P,W)}},[A,s,n,a,l,r,c,o,d,h,g]),(0,C.useLayoutEffect)(()=>{var R;!A||!((R=L.current)!=null&&R.isReady())||sr($.current,t)&&(z.current=!0,L.current.configure(t??{}),$.current=t)},[A,t]),(0,C.useLayoutEffect)(()=>{var W;let R=z.current;z.current=!1;let P=rr(H.current,T.current,Q);if(R){_.current=P;return}(W=L.current)!=null&&W.isReady()&&_.current!==P&&(L.current.sync(),_.current=P)}),(0,S.jsx)(_i.Provider,{value:A,children:(0,S.jsx)("div",{className:u?`reveal ${u}`:"reveal",style:b,ref:N,children:(0,S.jsx)("div",{className:"slides",ref:H,children:y})})})}var lr={background:"data-background",backgroundImage:"data-background-image",backgroundVideo:"data-background-video",backgroundVideoLoop:"data-background-video-loop",backgroundVideoMuted:"data-background-video-muted",backgroundIframe:"data-background-iframe",backgroundColor:"data-background-color",backgroundGradient:"data-background-gradient",backgroundSize:"data-background-size",backgroundPosition:"data-background-position",backgroundRepeat:"data-background-repeat",backgroundOpacity:"data-background-opacity",backgroundTransition:"data-background-transition",visibility:"data-visibility",autoAnimate:"data-auto-animate",autoAnimateId:"data-auto-animate-id",autoAnimateRestart:"data-auto-animate-restart",autoAnimateUnmatched:"data-auto-animate-unmatched",autoAnimateEasing:"data-auto-animate-easing",autoAnimateDuration:"data-auto-animate-duration",autoAnimateDelay:"data-auto-animate-delay",transition:"data-transition",transitionSpeed:"data-transition-speed",autoSlide:"data-autoslide",notes:"data-notes",backgroundInteractive:"data-background-interactive",preload:"data-preload"};function or(t){return JSON.stringify(Object.entries(t).filter(([e])=>e.startsWith("data-")).sort(([e],[i])=>e.localeCompare(i)))}function cr(t,e){let i={...t},s=i;for(let[n,a]of Object.entries(lr)){if(s[a]!==void 0)continue;let l=e[n];if(l!==void 0){if(l===!1){n==="autoAnimateUnmatched"&&(s[a]="false");continue}s[a]=typeof l=="boolean"?"":l}}return i}function dr({children:t,background:e,backgroundImage:i,backgroundVideo:s,backgroundVideoLoop:n,backgroundVideoMuted:a,backgroundIframe:l,backgroundColor:r,backgroundGradient:c,backgroundSize:o,backgroundPosition:d,backgroundRepeat:h,backgroundOpacity:g,backgroundTransition:p,visibility:u,autoAnimate:b,autoAnimateId:y,autoAnimateRestart:N,autoAnimateUnmatched:H,autoAnimateEasing:L,autoAnimateDuration:A,autoAnimateDelay:x,transition:q,transitionSpeed:z,autoSlide:$,notes:_,backgroundInteractive:T,preload:Q,...B}){let v=(0,C.useContext)(_i),R=(0,C.useRef)(null),P=(0,C.useRef)(null),W=(0,C.useRef)(null),te=cr(B,{background:e,backgroundImage:i,backgroundVideo:s,backgroundVideoLoop:n,backgroundVideoMuted:a,backgroundIframe:l,backgroundColor:r,backgroundGradient:c,backgroundSize:o,backgroundPosition:d,backgroundRepeat:h,backgroundOpacity:g,backgroundTransition:p,visibility:u,autoAnimate:b,autoAnimateId:y,autoAnimateRestart:N,autoAnimateUnmatched:H,autoAnimateEasing:L,autoAnimateDuration:A,autoAnimateDelay:x,transition:q,transitionSpeed:z,autoSlide:$,notes:_,backgroundInteractive:T,preload:Q}),F=or(te);return(0,C.useLayoutEffect)(()=>{let V=R.current;if(!v||!V||typeof v.syncSlide!="function")return;if(P.current!==v){P.current=v,W.current=F;return}if(F==="[]")return;let K=P.current===v,ce=W.current===F;K&&ce||(v.syncSlide(V),P.current=v,W.current=F)},[v,F]),(0,S.jsx)("section",{ref:R,...te,children:t})}function ur({className:t,style:e,children:i}){return(0,S.jsx)("section",{className:t,style:e,children:i})}function qt(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Ce=qt();function Oi(t){Ce=t}var Ie={exec:()=>null};function j(t,e=""){let i=typeof t=="string"?t:t.source,s={replace:(n,a)=>{let l=typeof a=="string"?a:a.source;return l=l.replace(re.caret,"$1"),i=i.replace(n,l),s},getRegex:()=>new RegExp(i,e)};return s}var hr=(()=>{try{return!0}catch{return!1}})(),re={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:t=>RegExp(`^( {0,3}${t})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:t=>RegExp(`^ {0,${Math.min(3,t-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:t=>RegExp(`^ {0,${Math.min(3,t-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:t=>RegExp(`^ {0,${Math.min(3,t-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:t=>RegExp(`^ {0,${Math.min(3,t-1)}}#`),htmlBeginRegex:t=>RegExp(`^ {0,${Math.min(3,t-1)}}<(?:[a-z].*>|!--)`,"i"),blockquoteBeginRegex:t=>RegExp(`^ {0,${Math.min(3,t-1)}}>`)},pr=/^(?:[ \t]*(?:\n|$))+/,gr=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,mr=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Ve=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,fr=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,jt=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,Fi=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Vi=j(Fi).replace(/bull/g,jt).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(),vr=j(Fi).replace(/bull/g,jt).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(),Ot=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,br=/^[^\n]+/,Ft=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,kr=j(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Ft).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),yr=j(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,jt).getRegex(),st="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",Vt=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,wr=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",Vt).replace("tag",st).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Ui=j(Ot).replace("hr",Ve).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",st).getRegex(),Ut={blockquote:j(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Ui).getRegex(),code:gr,def:kr,fences:mr,heading:fr,hr:Ve,html:wr,lheading:Vi,list:yr,newline:pr,paragraph:Ui,table:Ie,text:br},Wi=j("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Ve).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",st).getRegex(),xr={...Ut,lheading:vr,table:Wi,paragraph:j(Ot).replace("hr",Ve).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Wi).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",st).getRegex()},Sr={...Ut,html:j(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Vt).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(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Ie,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:j(Ot).replace("hr",Ve).replace("heading",` *#{1,6} *[^
34
- ]`).replace("lheading",Vi).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Er=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Rr=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Ki=/^( {2,}|\\)\n(?!\s*$)/,Ar=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,_e=/[\p{P}\p{S}]/u,nt=/[\s\p{P}\p{S}]/u,Wt=/[^\s\p{P}\p{S}]/u,Tr=j(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,nt).getRegex(),Zi=/(?!~)[\p{P}\p{S}]/u,Lr=/(?!~)[\s\p{P}\p{S}]/u,Pr=/(?:[^\s\p{P}\p{S}]|~)/u,Cr=j(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",hr?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),Qi=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,Ir=j(Qi,"u").replace(/punct/g,_e).getRegex(),Mr=j(Qi,"u").replace(/punct/g,Zi).getRegex(),Xi="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Nr=j(Xi,"gu").replace(/notPunctSpace/g,Wt).replace(/punctSpace/g,nt).replace(/punct/g,_e).getRegex(),zr=j(Xi,"gu").replace(/notPunctSpace/g,Pr).replace(/punctSpace/g,Lr).replace(/punct/g,Zi).getRegex(),$r=j("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Wt).replace(/punctSpace/g,nt).replace(/punct/g,_e).getRegex(),Br=j(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,_e).getRegex(),Dr=j("^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)","gu").replace(/notPunctSpace/g,Wt).replace(/punctSpace/g,nt).replace(/punct/g,_e).getRegex(),Hr=j(/\\(punct)/,"gu").replace(/punct/g,_e).getRegex(),_r=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(),qr=j(Vt).replace("(?:-->|$)","-->").getRegex(),jr=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",qr).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),rt=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,Or=j(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",rt).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Gi=j(/^!?\[(label)\]\[(ref)\]/).replace("label",rt).replace("ref",Ft).getRegex(),Ji=j(/^!?\[(ref)\](?:\[\])?/).replace("ref",Ft).getRegex(),Fr=j("reflink|nolink(?!\\()","g").replace("reflink",Gi).replace("nolink",Ji).getRegex(),Yi=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Kt={_backpedal:Ie,anyPunctuation:Hr,autolink:_r,blockSkip:Cr,br:Ki,code:Rr,del:Ie,delLDelim:Ie,delRDelim:Ie,emStrongLDelim:Ir,emStrongRDelimAst:Nr,emStrongRDelimUnd:$r,escape:Er,link:Or,nolink:Ji,punctuation:Tr,reflink:Gi,reflinkSearch:Fr,tag:jr,text:Ar,url:Ie},Vr={...Kt,link:j(/^!?\[(label)\]\((.*?)\)/).replace("label",rt).getRegex(),reflink:j(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",rt).getRegex()},Zt={...Kt,emStrongRDelimAst:zr,emStrongLDelim:Mr,delLDelim:Br,delRDelim:Dr,url:j(/^((?: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(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:j(/^([`~]+|[^`~])(?:(?= {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()},Ur={...Zt,br:j(Ki).replace("{2,}","*").getRegex(),text:j(Zt.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},at={normal:Ut,gfm:xr,pedantic:Sr},Ue={normal:Kt,gfm:Zt,breaks:Ur,pedantic:Vr},Wr={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},es=t=>Wr[t];function fe(t,e){if(e){if(re.escapeTest.test(t))return t.replace(re.escapeReplace,es)}else if(re.escapeTestNoEncode.test(t))return t.replace(re.escapeReplaceNoEncode,es);return t}function ts(t){try{t=encodeURI(t).replace(re.percentDecode,"%")}catch{return null}return t}function is(t,e){var n;let i=t.replace(re.findPipe,(a,l,r)=>{let c=!1,o=l;for(;--o>=0&&r[o]==="\\";)c=!c;return c?"|":" |"}).split(re.splitPipe),s=0;if(i[0].trim()||i.shift(),i.length>0&&!((n=i.at(-1))!=null&&n.trim())&&i.pop(),e)if(i.length>e)i.splice(e);else for(;i.length<e;)i.push("");for(;s<i.length;s++)i[s]=i[s].trim().replace(re.slashPipe,"|");return i}function We(t,e,i){let s=t.length;if(s===0)return"";let n=0;for(;n<s;){let a=t.charAt(s-n-1);if(a===e&&!i)n++;else if(a!==e&&i)n++;else break}return t.slice(0,s-n)}function Kr(t,e){if(t.indexOf(e[1])===-1)return-1;let i=0;for(let s=0;s<t.length;s++)if(t[s]==="\\")s++;else if(t[s]===e[0])i++;else if(t[s]===e[1]&&(i--,i<0))return s;return i>0?-2:-1}function Zr(t,e=0){let i=e,s="";for(let n of t)if(n===" "){let a=4-i%4;s+=" ".repeat(a),i+=a}else s+=n,i++;return s}function ss(t,e,i,s,n){let a=e.href,l=e.title||null,r=t[1].replace(n.other.outputLinkReplace,"$1");s.state.inLink=!0;let c={type:t[0].charAt(0)==="!"?"image":"link",raw:i,href:a,title:l,text:r,tokens:s.inlineTokens(r)};return s.state.inLink=!1,c}function Qr(t,e,i){let s=t.match(i.other.indentCodeCompensation);if(s===null)return e;let n=s[1];return e.split(`
32
+ `,this.dom.querySelector(".r-overlay-close").addEventListener("click",s=>{this.close(),s.preventDefault()},!1),this.Reveal.dispatchEvent({type:"showhelp"})}}isOpen(){return!!this.dom}close(){return this.dom?(this.dom.remove(),this.dom=null,this.state={},this.Reveal.dispatchEvent({type:"closeoverlay"}),!0):!1}getState(){return this.state}setState(t){this.stateProps.every(e=>this.state[e]===t[e])||(t.previewIframe?this.previewIframe(t.previewIframe):t.previewImage?this.previewImage(t.previewImage,t.previewFit):t.previewVideo?this.previewVideo(t.previewVideo,t.previewFit):this.close())}onSlidesClicked(t){let e=t.target,i=e.closest(this.iframeTriggerSelector),s=e.closest(this.mediaTriggerSelector);if(i){if(t.metaKey||t.shiftKey||t.altKey)return;let n=i.getAttribute("data-preview-link"),a=typeof n=="string"&&n.startsWith("http")?n:i.getAttribute("href");a&&(this.previewIframe(a),t.preventDefault())}else if(s){if(s.hasAttribute("data-preview-image")){let n=s.dataset.previewImage||s.getAttribute("src");n&&(this.previewImage(n,s.dataset.previewFit),t.preventDefault())}else if(s.hasAttribute("data-preview-video")){let n=s.dataset.previewVideo||s.getAttribute("src");if(!n){let a=s.querySelector("source");a&&(n=a.getAttribute("src"))}n&&(this.previewVideo(n,s.dataset.previewFit),t.preventDefault())}}}destroy(){this.close()}},st=40,Yn=class{constructor(t){this.Reveal=t,this.touchStartX=0,this.touchStartY=0,this.touchStartCount=0,this.touchCaptured=!1,this.onPointerDown=this.onPointerDown.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.onTouchStart=this.onTouchStart.bind(this),this.onTouchMove=this.onTouchMove.bind(this),this.onTouchEnd=this.onTouchEnd.bind(this)}bind(){let t=this.Reveal.getRevealElement();"onpointerdown"in window?(t.addEventListener("pointerdown",this.onPointerDown,!1),t.addEventListener("pointermove",this.onPointerMove,!1),t.addEventListener("pointerup",this.onPointerUp,!1)):window.navigator.msPointerEnabled?(t.addEventListener("MSPointerDown",this.onPointerDown,!1),t.addEventListener("MSPointerMove",this.onPointerMove,!1),t.addEventListener("MSPointerUp",this.onPointerUp,!1)):(t.addEventListener("touchstart",this.onTouchStart,!1),t.addEventListener("touchmove",this.onTouchMove,!1),t.addEventListener("touchend",this.onTouchEnd,!1))}unbind(){let t=this.Reveal.getRevealElement();t.removeEventListener("pointerdown",this.onPointerDown,!1),t.removeEventListener("pointermove",this.onPointerMove,!1),t.removeEventListener("pointerup",this.onPointerUp,!1),t.removeEventListener("MSPointerDown",this.onPointerDown,!1),t.removeEventListener("MSPointerMove",this.onPointerMove,!1),t.removeEventListener("MSPointerUp",this.onPointerUp,!1),t.removeEventListener("touchstart",this.onTouchStart,!1),t.removeEventListener("touchmove",this.onTouchMove,!1),t.removeEventListener("touchend",this.onTouchEnd,!1)}isSwipePrevented(t){if(it(t,"video[controls], audio[controls]"))return!0;for(;t&&typeof t.hasAttribute=="function";){if(t.hasAttribute("data-prevent-swipe"))return!0;t=t.parentNode}return!1}onTouchStart(t){if(this.touchCaptured=!1,this.isSwipePrevented(t.target))return!0;this.touchStartX=t.touches[0].clientX,this.touchStartY=t.touches[0].clientY,this.touchStartCount=t.touches.length}onTouchMove(t){if(this.isSwipePrevented(t.target))return!0;let e=this.Reveal.getConfig();if(this.touchCaptured)Ii&&t.preventDefault();else{this.Reveal.onUserInput(t);let i=t.touches[0].clientX,s=t.touches[0].clientY;if(t.touches.length===1&&this.touchStartCount!==2){let n=this.Reveal.availableRoutes({includeFragments:!0}),a=i-this.touchStartX,l=s-this.touchStartY;a>st&&Math.abs(a)>Math.abs(l)?(this.touchCaptured=!0,e.navigationMode==="linear"?e.rtl?this.Reveal.next():this.Reveal.prev():this.Reveal.left()):a<-st&&Math.abs(a)>Math.abs(l)?(this.touchCaptured=!0,e.navigationMode==="linear"?e.rtl?this.Reveal.prev():this.Reveal.next():this.Reveal.right()):l>st&&n.up?(this.touchCaptured=!0,e.navigationMode==="linear"?this.Reveal.prev():this.Reveal.up()):l<-st&&n.down&&(this.touchCaptured=!0,e.navigationMode==="linear"?this.Reveal.next():this.Reveal.down()),e.embedded?(this.touchCaptured||this.Reveal.isVerticalSlide())&&t.preventDefault():t.preventDefault()}}}onTouchEnd(t){this.touchCaptured&&!this.Reveal.slideContent.isAllowedToPlayAudio()&&this.Reveal.startEmbeddedContent(this.Reveal.getCurrentSlide()),this.touchCaptured=!1}onPointerDown(t){(t.pointerType===t.MSPOINTER_TYPE_TOUCH||t.pointerType==="touch")&&(t.touches=[{clientX:t.clientX,clientY:t.clientY}],this.onTouchStart(t))}onPointerMove(t){(t.pointerType===t.MSPOINTER_TYPE_TOUCH||t.pointerType==="touch")&&(t.touches=[{clientX:t.clientX,clientY:t.clientY}],this.onTouchMove(t))}onPointerUp(t){(t.pointerType===t.MSPOINTER_TYPE_TOUCH||t.pointerType==="touch")&&(t.touches=[{clientX:t.clientX,clientY:t.clientY}],this.onTouchEnd(t))}},jt="focus",$i="blur",Jn=class{constructor(t){this.Reveal=t,this.onRevealPointerDown=this.onRevealPointerDown.bind(this),this.onDocumentPointerDown=this.onDocumentPointerDown.bind(this)}configure(t,e){t.embedded?this.blur():(this.focus(),this.unbind())}bind(){this.Reveal.getConfig().embedded&&this.Reveal.getRevealElement().addEventListener("pointerdown",this.onRevealPointerDown,!1)}unbind(){this.Reveal.getRevealElement().removeEventListener("pointerdown",this.onRevealPointerDown,!1),document.removeEventListener("pointerdown",this.onDocumentPointerDown,!1)}focus(){this.state!==jt&&(this.Reveal.getRevealElement().classList.add("focused"),document.addEventListener("pointerdown",this.onDocumentPointerDown,!1)),this.state=jt}blur(){this.state!==$i&&(this.Reveal.getRevealElement().classList.remove("focused"),document.removeEventListener("pointerdown",this.onDocumentPointerDown,!1)),this.state=$i}isFocused(){return this.state===jt}destroy(){this.Reveal.getRevealElement().classList.remove("focused")}onRevealPointerDown(t){this.focus()}onDocumentPointerDown(t){let e=se(t.target,".reveal");(!e||e!==this.Reveal.getRevealElement())&&this.blur()}},Gn=class{constructor(t){this.Reveal=t}render(){this.element=document.createElement("div"),this.element.className="speaker-notes",this.element.setAttribute("data-prevent-swipe",""),this.element.setAttribute("tabindex","0"),this.Reveal.getRevealElement().appendChild(this.element)}configure(t,e){t.showNotes&&this.element.setAttribute("data-layout",typeof t.showNotes=="string"?t.showNotes:"inline")}update(){this.Reveal.getConfig().showNotes&&this.element&&this.Reveal.getCurrentSlide()&&!this.Reveal.isScrollView()&&!this.Reveal.isPrintView()&&(this.element.innerHTML=this.getSlideNotes()||'<span class="notes-placeholder">No notes on this slide.</span>')}updateVisibility(){this.Reveal.getConfig().showNotes&&this.hasNotes()&&!this.Reveal.isScrollView()&&!this.Reveal.isPrintView()?this.Reveal.getRevealElement().classList.add("show-notes"):this.Reveal.getRevealElement().classList.remove("show-notes")}hasNotes(){return this.Reveal.getSlidesElement().querySelectorAll("[data-notes], aside.notes").length>0}isSpeakerNotesWindow(){return!!window.location.search.match(/receiver/gi)}getSlideNotes(t=this.Reveal.getCurrentSlide()){if(t.hasAttribute("data-notes"))return t.getAttribute("data-notes");let e=t.querySelectorAll("aside.notes");return e?Array.from(e).map(i=>i.innerHTML).join(`
33
+ `):null}destroy(){this.element.remove()}},er=class{constructor(t,e){this.diameter=100,this.diameter2=this.diameter/2,this.thickness=6,this.playing=!1,this.progress=0,this.progressOffset=1,this.container=t,this.progressCheck=e,this.canvas=document.createElement("canvas"),this.canvas.className="playback",this.canvas.width=this.diameter,this.canvas.height=this.diameter,this.canvas.style.width=this.diameter2+"px",this.canvas.style.height=this.diameter2+"px",this.context=this.canvas.getContext("2d"),this.container.appendChild(this.canvas),this.render()}setPlaying(t){let e=this.playing;this.playing=t,!e&&this.playing?this.animate():this.render()}animate(){let t=this.progress;this.progress=this.progressCheck(),t>.8&&this.progress<.2&&(this.progressOffset=this.progress),this.render(),this.playing&&requestAnimationFrame(this.animate.bind(this))}render(){let t=this.playing?this.progress:0,e=this.diameter2-this.thickness,i=this.diameter2,s=this.diameter2;this.progressOffset+=(1-this.progressOffset)*.1;let n=-Math.PI/2+t*(Math.PI*2),a=-Math.PI/2+this.progressOffset*(Math.PI*2);this.context.save(),this.context.clearRect(0,0,this.diameter,this.diameter),this.context.beginPath(),this.context.arc(i,s,e+4,0,Math.PI*2,!1),this.context.fillStyle="rgba( 0, 0, 0, 0.4 )",this.context.fill(),this.context.beginPath(),this.context.arc(i,s,e,0,Math.PI*2,!1),this.context.lineWidth=this.thickness,this.context.strokeStyle="rgba( 255, 255, 255, 0.2 )",this.context.stroke(),this.playing&&(this.context.beginPath(),this.context.arc(i,s,e,a,n,!1),this.context.lineWidth=this.thickness,this.context.strokeStyle="#fff",this.context.stroke()),this.context.translate(i-28/2,s-28/2),this.playing?(this.context.fillStyle="#fff",this.context.fillRect(0,0,28/2-4,28),this.context.fillRect(18,0,28/2-4,28)):(this.context.beginPath(),this.context.translate(4,0),this.context.moveTo(0,0),this.context.lineTo(24,28/2),this.context.lineTo(0,28),this.context.fillStyle="#fff",this.context.fill()),this.context.restore()}on(t,e){this.canvas.addEventListener(t,e,!1)}off(t,e){this.canvas.removeEventListener(t,e,!1)}destroy(){this.playing=!1,this.canvas.parentNode&&this.container.removeChild(this.canvas)}},tr={width:960,height:700,margin:.04,minScale:.2,maxScale:2,controls:!0,controlsTutorial:!0,controlsLayout:"bottom-right",controlsBackArrows:"faded",progress:!0,slideNumber:!1,showSlideNumber:"all",hashOneBasedIndex:!1,hash:!1,respondToHashChanges:!0,jumpToSlide:!0,history:!1,keyboard:!0,keyboardCondition:null,disableLayout:!1,overview:!0,center:!0,touch:!0,loop:!1,rtl:!1,navigationMode:"default",shuffle:!1,fragments:!0,fragmentInURL:!0,embedded:!1,help:!0,pause:!0,showNotes:!1,showHiddenSlides:!1,autoPlayMedia:null,preloadIframes:null,mouseWheel:!1,previewLinks:!1,viewDistance:3,mobileViewDistance:2,display:"block",hideInactiveCursor:!0,hideCursorTime:5e3,sortFragmentsOnSync:!0,autoAnimate:!0,autoAnimateMatcher:null,autoAnimateEasing:"ease",autoAnimateDuration:1,autoAnimateUnmatched:!0,autoAnimateStyles:["opacity","color","background-color","padding","font-size","line-height","letter-spacing","border-width","border-color","border-radius","outline","outline-offset"],autoSlide:0,autoSlideStoppable:!0,autoSlideMethod:null,defaultTiming:null,postMessage:!0,postMessageEvents:!1,focusBodyOnPageVisibilityChange:!0,transition:"slide",transitionSpeed:"default",backgroundTransition:"fade",parallaxBackgroundImage:"",parallaxBackgroundSize:"",parallaxBackgroundRepeat:"",parallaxBackgroundPosition:"",parallaxBackgroundHorizontal:null,parallaxBackgroundVertical:null,view:null,scrollLayout:"full",scrollSnap:"mandatory",scrollProgress:"auto",scrollActivationWidth:435,pdfMaxPagesPerSlide:1/0,pdfSeparateFragments:!0,pdfPageHeightOffset:-1,dependencies:[],plugins:[]},Bi="6.0.0";function Di(t,e){arguments.length<2&&(e=arguments[0],t=document.querySelector(".reveal"));let i={},s={},n=!1,a=!1,l,r,c,o,u={hasNavigatedHorizontally:!1,hasNavigatedVertically:!1},h=[],g=1,p={layout:"",overview:""},d={},b="idle",y=0,z,H=0,N=-1,A=!1,x=new An(i),j=new In(i),M=new Mn(i),B=new $n(i),_=new zn(i),T=new qn(i),U=new jn(i),$=new On(i),v=new Fn(i),R=new Vn(i),I=new Un(i),W=new Wn(i),G=new Kn(i),te=new Zn(i),q=new Qn(i),V=new Xn(i),ce=new Jn(i),Ye=new Yn(i),le=new Gn(i);function kt(m){if(!t)throw'Unable to find presentation root (<div class="reveal">).';if(n)throw"Reveal.js has already been initialized.";if(n=!0,d.wrapper=t,d.slides=t.querySelector(".slides"),!d.slides)throw'Unable to find slides container (<div class="slides">).';return s=ke(ke(ke(ke(ke({},tr),s),e),m),Pi()),/print-pdf/gi.test(window.location.search)&&(s.view="print"),yt(),window.addEventListener("load",je,!1),q.load(s.plugins,s.dependencies).then(wt),new Promise(f=>i.on("ready",f))}function yt(){s.embedded===!0?d.viewport=se(t,".reveal-viewport")||t:(d.viewport=document.body,document.documentElement.classList.add("reveal-full-page")),d.viewport.classList.add("reveal-viewport")}function wt(){n!==!1&&(a=!0,X(),ie(),ll(),rl(),al(),fl(),Ps(),_.update(!0),D(),I.readURL(),setTimeout(()=>{d.slides.classList.remove("no-transition"),d.wrapper.classList.add("ready"),oe({type:"ready",data:{indexh:l,indexv:r,currentSlide:o}})},1))}function D(){let m=s.view==="print",f=s.view==="scroll"||s.view==="reader";(m||f)&&(m?St():Ye.unbind(),d.viewport.classList.add("loading-scroll-mode"),m?document.readyState==="complete"?U.activate():window.addEventListener("load",()=>U.activate()):T.activate())}function X(){s.showHiddenSlides||P(d.wrapper,'section[data-visibility="hidden"]').forEach(m=>{let f=m.parentNode;f.childElementCount===1&&/section/i.test(f.nodeName)?f.remove():m.remove()})}function ie(){d.slides.classList.add("no-transition"),Le?d.wrapper.classList.add("no-hover"):d.wrapper.classList.remove("no-hover"),_.render(),j.render(),M.render(),W.render(),G.render(),le.render(),d.pauseOverlay=yn(d.wrapper,"div","pause-overlay",s.controls?'<button class="resume-button">Resume presentation</button>':null),d.statusElement=qe(),d.wrapper.setAttribute("role","application")}function qe(){let m=d.wrapper.querySelector(".aria-status");return m||(m=document.createElement("div"),m.style.position="absolute",m.style.height="1px",m.style.width="1px",m.style.overflow="hidden",m.style.clip="rect( 1px, 1px, 1px, 1px )",m.classList.add("aria-status"),m.setAttribute("aria-live","polite"),m.setAttribute("aria-atomic","true"),d.wrapper.appendChild(m)),m}function Je(m){d.statusElement.textContent=m}function xt(m){let f="";if(m.nodeType===3)f+=m.textContent.trim();else if(m.nodeType===1){let k=m.getAttribute("aria-hidden"),w=window.getComputedStyle(m).display==="none";if(k!=="true"&&!w){if(m.tagName==="IMG"||m.tagName==="VIDEO"){let E=m.getAttribute("alt");E&&(f+=Ls(E))}Array.from(m.childNodes).forEach(E=>{f+=xt(E)}),["P","DIV","UL","OL","LI","H1","H2","H3","H4","H5","H6","BLOCKQUOTE"].includes(m.tagName)&&f.trim()!==""&&(f=Ls(f))}}return f=f.trim(),f===""?"":f+" "}function Ls(m){let f=m.trim();return f===""?m:/[.!?]$/.test(f)?f:f+"."}function rl(){setInterval(()=>{(!T.isActive()&&d.wrapper.scrollTop!==0||d.wrapper.scrollLeft!==0)&&(d.wrapper.scrollTop=0,d.wrapper.scrollLeft=0)},1e3)}function al(){document.addEventListener("fullscreenchange",It),document.addEventListener("webkitfullscreenchange",It)}function ll(){s.postMessage&&window.addEventListener("message",en,!1)}function Ps(m){let f=ke({},s);if(typeof m=="object"&&De(s,m),i.isReady()===!1)return;let k=d.wrapper.querySelectorAll(Pe).length;d.wrapper.classList.remove(f.transition),d.wrapper.classList.add(s.transition),d.wrapper.setAttribute("data-transition-speed",s.transitionSpeed),d.wrapper.setAttribute("data-background-transition",s.backgroundTransition),d.viewport.style.setProperty("--slide-width",typeof s.width=="string"?s.width:s.width+"px"),d.viewport.style.setProperty("--slide-height",typeof s.height=="string"?s.height:s.height+"px"),s.shuffle&&pi(),Bt(d.wrapper,"embedded",s.embedded),Bt(d.wrapper,"rtl",s.rtl),Bt(d.wrapper,"center",s.center),s.pause===!1&&et(),B.reset(),z&&(z=(z.destroy(),null)),k>1&&s.autoSlide&&s.autoSlideStoppable&&(z=new er(d.wrapper,()=>Math.min(Math.max((Date.now()-N)/y,0),1)),z.on("click",Sl),A=!1),s.navigationMode==="default"?d.wrapper.removeAttribute("data-navigation-mode"):d.wrapper.setAttribute("data-navigation-mode",s.navigationMode),le.configure(s,f),ce.configure(s,f),te.configure(s,f),W.configure(s,f),G.configure(s,f),R.configure(s,f),$.configure(s,f),j.configure(s,f),Os()}function Cs(){window.addEventListener("resize",nn,!1),s.touch&&Ye.bind(),s.keyboard&&R.bind(),s.progress&&G.bind(),s.respondToHashChanges&&I.bind(),W.bind(),ce.bind(),d.slides.addEventListener("click",sn,!1),d.slides.addEventListener("transitionend",tn,!1),d.pauseOverlay.addEventListener("click",et,!1),s.focusBodyOnPageVisibilityChange&&document.addEventListener("visibilitychange",rn,!1)}function St(){Ye.unbind(),ce.unbind(),R.unbind(),W.unbind(),G.unbind(),I.unbind(),window.removeEventListener("resize",nn,!1),d.slides.removeEventListener("click",sn,!1),d.slides.removeEventListener("transitionend",tn,!1),d.pauseOverlay.removeEventListener("click",et,!1)}function ol(){n=!1,a!==!1&&(St(),At(),le.destroy(),ce.destroy(),V.destroy(),q.destroy(),te.destroy(),W.destroy(),G.destroy(),_.destroy(),j.destroy(),M.destroy(),document.removeEventListener("fullscreenchange",It),document.removeEventListener("webkitfullscreenchange",It),document.removeEventListener("visibilitychange",rn,!1),window.removeEventListener("message",en,!1),window.removeEventListener("load",je,!1),d.pauseOverlay&&d.pauseOverlay.remove(),d.statusElement&&d.statusElement.remove(),document.documentElement.classList.remove("reveal-full-page"),d.wrapper.classList.remove("ready","center","has-horizontal-slides","has-vertical-slides"),d.wrapper.removeAttribute("data-transition-speed"),d.wrapper.removeAttribute("data-background-transition"),d.viewport.classList.remove("reveal-viewport"),d.viewport.style.removeProperty("--slide-width"),d.viewport.style.removeProperty("--slide-height"),d.slides.style.removeProperty("width"),d.slides.style.removeProperty("height"),d.slides.style.removeProperty("zoom"),d.slides.style.removeProperty("left"),d.slides.style.removeProperty("top"),d.slides.style.removeProperty("bottom"),d.slides.style.removeProperty("right"),d.slides.style.removeProperty("transform"),Array.from(d.wrapper.querySelectorAll(Pe)).forEach(m=>{m.style.removeProperty("display"),m.style.removeProperty("top"),m.removeAttribute("hidden"),m.removeAttribute("aria-hidden")}))}function Is(m,f,k){t.addEventListener(m,f,k)}function Ms(m,f,k){t.removeEventListener(m,f,k)}function di(m){typeof m.layout=="string"&&(p.layout=m.layout),typeof m.overview=="string"&&(p.overview=m.overview),p.layout?Se(d.slides,p.layout+" "+p.overview):Se(d.slides,p.overview)}function oe({target:m=d.wrapper,type:f,data:k,bubbles:w=!0}){let E=document.createEvent("HTMLEvents",1,2);return E.initEvent(f,w,!0),De(E,k),m.dispatchEvent(E),m===d.wrapper&&zs(f),E}function Ns(m){oe({type:"slidechanged",data:{indexh:l,indexv:r,previousSlide:c,currentSlide:o,origin:m}})}function zs(m,f){if(s.postMessageEvents&&window.parent!==window.self){let k={namespace:"reveal",eventName:m,state:Js()};De(k,f),window.parent.postMessage(JSON.stringify(k),"*")}}function je(){if(d.wrapper&&!U.isActive()){let m=d.viewport.offsetWidth,f=d.viewport.offsetHeight;if(!s.disableLayout){Le&&!s.embedded&&document.documentElement.style.setProperty("--vh",window.innerHeight*.01+"px");let k=T.isActive()?Et(m,f):Et(),w=g;$s(s.width,s.height),d.slides.style.width=k.width+"px",d.slides.style.height=k.height+"px",g=Math.min(k.presentationWidth/k.width,k.presentationHeight/k.height),g=Math.max(g,s.minScale),g=Math.min(g,s.maxScale),g===1||T.isActive()?(d.slides.style.zoom="",d.slides.style.left="",d.slides.style.top="",d.slides.style.bottom="",d.slides.style.right="",di({layout:""})):(d.slides.style.zoom="",d.slides.style.left="50%",d.slides.style.top="50%",d.slides.style.bottom="auto",d.slides.style.right="auto",di({layout:"translate(-50%, -50%) scale("+g+")"}));let E=Array.from(d.wrapper.querySelectorAll(Pe));for(let Q=0,J=E.length;Q<J;Q++){let ee=E[Q];ee.style.display!=="none"&&(s.center||ee.classList.contains("center")?ee.classList.contains("stack")?ee.style.top=0:ee.style.top=Math.max((k.height-ee.scrollHeight)/2,0)+"px":ee.style.top="")}w!==g&&oe({type:"resize",data:{oldScale:w,scale:g,size:k}})}cl(),d.viewport.style.setProperty("--slide-scale",g),d.viewport.style.setProperty("--viewport-width",m+"px"),d.viewport.style.setProperty("--viewport-height",f+"px"),T.layout(),G.update(),_.updateParallax(),v.isActive()&&v.update()}}function $s(m,f){P(d.slides,"section > .stretch, section > .r-stretch").forEach(k=>{let w=wn(k,f);if(/(img|video)/gi.test(k.nodeName)){let E=k.naturalWidth||k.videoWidth,Q=k.naturalHeight||k.videoHeight,J=Math.min(m/E,w/Q);k.style.width=E*J+"px",k.style.height=Q*J+"px"}else k.style.width=m+"px",k.style.height=w+"px"})}function cl(){if(d.wrapper&&!s.disableLayout&&!U.isActive()&&typeof s.scrollActivationWidth=="number"&&s.view!=="scroll"){let m=Et();m.presentationWidth>0&&m.presentationWidth<=s.scrollActivationWidth?T.isActive()||(_.create(),T.activate()):T.isActive()&&T.deactivate()}}function Et(m,f){let k=s.width,w=s.height;s.disableLayout&&(k=d.slides.offsetWidth,w=d.slides.offsetHeight);let E={width:k,height:w,presentationWidth:m||d.wrapper.offsetWidth,presentationHeight:f||d.wrapper.offsetHeight};return E.presentationWidth-=E.presentationWidth*s.margin,E.presentationHeight-=E.presentationHeight*s.margin,typeof E.width=="string"&&/%$/.test(E.width)&&(E.width=parseInt(E.width,10)/100*E.presentationWidth),typeof E.height=="string"&&/%$/.test(E.height)&&(E.height=parseInt(E.height,10)/100*E.presentationHeight),E}function Bs(m,f){typeof m=="object"&&typeof m.setAttribute=="function"&&m.setAttribute("data-previous-indexv",f||0)}function Ds(m){if(typeof m=="object"&&typeof m.setAttribute=="function"&&m.classList.contains("stack")){let f=m.hasAttribute("data-start-indexv")?"data-start-indexv":"data-previous-indexv";return parseInt(m.getAttribute(f)||0,10)}return 0}function Ge(m=o){return m&&m.parentNode&&!!m.parentNode.nodeName.match(/section/i)}function dl(m=o){return m.classList.contains(".stack")||m.querySelector("section")!==null}function Hs(){return o&&Ge(o)?!o.nextElementSibling:!1}function _s(){return l===0&&r===0}function ui(){return o?!(o.nextElementSibling||Ge(o)&&o.parentNode.nextElementSibling):!1}function qs(){if(s.pause){let m=d.wrapper.classList.contains("paused");At(),d.wrapper.classList.add("paused"),m===!1&&oe({type:"paused"})}}function et(){let m=d.wrapper.classList.contains("paused");d.wrapper.classList.remove("paused"),Oe(),m&&oe({type:"resumed"})}function js(m){typeof m=="boolean"?m?qs():et():tt()?et():qs()}function tt(){return d.wrapper.classList.contains("paused")}function ul(m){typeof m=="boolean"?m?M.show():M.hide():M.isVisible()?M.hide():M.show()}function hl(m){typeof m=="boolean"?m?Lt():Tt():A?Lt():Tt()}function pl(){return!!(y&&!A)}function be(m,f,k,w){if(oe({type:"beforeslidechange",data:{indexh:m===void 0?l:m,indexv:f===void 0?r:f,origin:w}}).defaultPrevented)return;c=o;let E=d.wrapper.querySelectorAll(ye);if(T.isActive()){let ne=T.getSlideByIndices(m,f);ne&&T.scrollToSlide(ne);return}if(E.length===0)return;f===void 0&&!v.isActive()&&(f=Ds(E[m])),c&&c.parentNode&&c.parentNode.classList.contains("stack")&&Bs(c.parentNode,r);let Q=h.concat();h.length=0;let J=l||0,ee=r||0;l=Rt(ye,m===void 0?l:m),r=Rt(Ht,f===void 0?r:f);let xe=l!==J||r!==ee;xe||(c=null);let Ae=E[l],ge=Ae.querySelectorAll("section");t.classList.toggle("is-vertical-slide",ge.length>1),o=ge[r]||Ae;let Y=!1;xe&&c&&o&&!v.isActive()&&(b="running",Y=hi(c,o,J,ee),Y&&d.slides.classList.add("disable-slide-transitions")),gi(),je(),v.isActive()&&v.update(),k!==void 0&&$.goto(k),c&&c!==o&&(c.classList.remove("present"),c.setAttribute("aria-hidden","true"),_s()&&setTimeout(()=>{bl().forEach(ne=>{Bs(ne,0)})},0));e:for(let ne=0,El=h.length;ne<El;ne++){for(let Mt=0;Mt<Q.length;Mt++)if(Q[Mt]===h[ne]){Q.splice(Mt,1);continue e}d.viewport.classList.add(h[ne]),oe({type:h[ne]})}for(;Q.length;)d.viewport.classList.remove(Q.pop());xe&&(x.afterSlideChanged(),Ns(w)),(xe||!c)&&(x.stopEmbeddedContent(c),x.startEmbeddedContent(o)),requestAnimationFrame(()=>{Je(xt(o))}),G.update(),W.update(),le.update(),_.update(),_.updateParallax(),j.update(),$.update(),I.writeURL(),Oe(),Y&&(setTimeout(()=>{d.slides.classList.remove("disable-slide-transitions")},0),s.autoAnimate&&B.run(c,o))}function hi(m,f,k,w){return m.hasAttribute("data-auto-animate")&&f.hasAttribute("data-auto-animate")&&m.getAttribute("data-auto-animate-id")===f.getAttribute("data-auto-animate-id")&&!(l>k||r>w?f:m).hasAttribute("data-auto-animate-restart")}function gl(m,f,k){let w=l||0;l=f,r=k;let E=o!==m;c=o,o=m,o&&c&&s.autoAnimate&&hi(c,o,w,r)&&B.run(c,o),E&&(x.afterSlideChanged(),c&&(x.stopEmbeddedContent(c),x.stopEmbeddedContent(c.slideBackgroundElement)),x.startEmbeddedContent(o),x.startEmbeddedContent(o.slideBackgroundElement)),requestAnimationFrame(()=>{Je(xt(o))}),Ns()}function Os(){St(),Cs(),je(),y=s.autoSlide,Oe(),_.create(),I.writeURL(),s.sortFragmentsOnSync===!0&&$.sortAll(),l!==void 0&&(l=Rt(ye,l),r=Rt(Ht,r)),W.update(),G.update(),gi(),le.update(),le.updateVisibility(),V.update(),_.update(!0),j.update(),x.formatEmbeddedContent(),s.autoPlayMedia===!1?x.stopEmbeddedContent(o,{unloadIframes:!1}):x.startEmbeddedContent(o),v.isActive()&&v.layout(),oe({type:"sync"})}function ml(m=o){_.sync(m),$.sync(m),x.load(m),_.update(),le.update(),oe({type:"slidesync",data:{slide:m}})}function fl(){Re().forEach(m=>{P(m,"section").forEach((f,k)=>{k>0&&(f.classList.remove("present"),f.classList.remove("past"),f.classList.add("future"),f.setAttribute("aria-hidden","true"))})})}function pi(m=Re()){m.forEach((f,k)=>{let w=m[Math.floor(Math.random()*m.length)];w.parentNode===f.parentNode&&f.parentNode.insertBefore(f,w);let E=f.querySelectorAll("section");E.length&&pi(E)})}function Rt(m,f){let k=P(d.wrapper,m),w=k.length,E=T.isActive()||U.isActive(),Q=!1,J=!1;if(w){s.loop&&(f>=w&&(Q=!0),f%=w,f<0&&(f=w+f,J=!0)),f=Math.max(Math.min(f,w-1),0);for(let ge=0;ge<w;ge++){let Y=k[ge],ne=s.rtl&&!Ge(Y);if(Y.classList.remove("past"),Y.classList.remove("present"),Y.classList.remove("future"),Y.setAttribute("hidden",""),Y.setAttribute("aria-hidden","true"),Y.querySelector("section")&&Y.classList.add("stack"),E){Y.classList.add("present");continue}ge<f?(Y.classList.add(ne?"future":"past"),s.fragments&&Fs(Y)):ge>f?(Y.classList.add(ne?"past":"future"),s.fragments&&Vs(Y)):ge===f&&s.fragments&&(Q?Vs(Y):J&&Fs(Y))}let ee=k[f],xe=ee.classList.contains("present");ee.classList.add("present"),ee.removeAttribute("hidden"),ee.removeAttribute("aria-hidden"),xe||oe({target:ee,type:"visible",bubbles:!1});let Ae=ee.getAttribute("data-state");Ae&&(h=h.concat(Ae.split(" ")))}else f=0;return f}function Fs(m){P(m,".fragment").forEach(f=>{f.classList.add("visible"),f.classList.remove("current-fragment")})}function Vs(m){P(m,".fragment.visible").forEach(f=>{f.classList.remove("visible","current-fragment")})}function gi(){let m=Re(),f=m.length,k,w;if(f&&l!==void 0){let E=v.isActive(),Q=E?10:s.viewDistance;Le&&(Q=E?6:s.mobileViewDistance),U.isActive()&&(Q=Number.MAX_VALUE);for(let J=0;J<f;J++){let ee=m[J],xe=P(ee,"section"),Ae=xe.length;if(k=Math.abs((l||0)-J)||0,s.loop&&(k=Math.abs(((l||0)-J)%(f-Q))||0),k<Q?x.load(ee):x.unload(ee),Ae){let ge=E?0:Ds(ee);for(let Y=0;Y<Ae;Y++){let ne=xe[Y];w=Math.abs(J===(l||0)?(r||0)-Y:Y-ge),k+w<Q?x.load(ne):x.unload(ne)}}}Qs()?d.wrapper.classList.add("has-vertical-slides"):d.wrapper.classList.remove("has-vertical-slides"),Zs()?d.wrapper.classList.add("has-horizontal-slides"):d.wrapper.classList.remove("has-horizontal-slides")}}function we({includeFragments:m=!1}={}){let f=d.wrapper.querySelectorAll(ye),k=d.wrapper.querySelectorAll(Ht),w={left:l>0,right:l<f.length-1,up:r>0,down:r<k.length-1};if(s.loop&&(f.length>1&&(w.left=!0,w.right=!0),k.length>1&&(w.up=!0,w.down=!0)),f.length>1&&s.navigationMode==="linear"&&(w.right=w.right||w.down,w.left=w.left||w.up),m===!0){let E=$.availableRoutes();w.left=w.left||E.prev,w.up=w.up||E.prev,w.down=w.down||E.next,w.right=w.right||E.next}if(s.rtl){let E=w.left;w.left=w.right,w.right=E}return w}function Us(m=o){let f=Re(),k=0;e:for(let w=0;w<f.length;w++){let E=f[w],Q=E.querySelectorAll("section");for(let J=0;J<Q.length;J++){if(Q[J]===m)break e;Q[J].dataset.visibility!=="uncounted"&&k++}if(E===m)break;E.classList.contains("stack")===!1&&E.dataset.visibility!=="uncounted"&&k++}return k}function vl(){let m=Xs(),f=Us();if(o){let k=o.querySelectorAll(".fragment");if(k.length>0){let w=o.querySelectorAll(".fragment.visible");f+=w.length/k.length*.9}}return Math.min(f/(m-1),1)}function Ws(m){let f=l,k=r,w;if(m)if(T.isActive())f=parseInt(m.getAttribute("data-index-h"),10),m.getAttribute("data-index-v")&&(k=parseInt(m.getAttribute("data-index-v"),10));else{let E=Ge(m),Q=E?m.parentNode:m,J=Re();f=Math.max(J.indexOf(Q),0),k=void 0,E&&(k=Math.max(P(m.parentNode,"section").indexOf(m),0))}if(!m&&o&&o.querySelectorAll(".fragment").length>0){let E=o.querySelector(".current-fragment");w=E&&E.hasAttribute("data-fragment-index")?parseInt(E.getAttribute("data-fragment-index"),10):o.querySelectorAll(".fragment.visible").length-1}return{h:f,v:k,f:w}}function mi(){return P(d.wrapper,Pe+':not(.stack):not([data-visibility="uncounted"])')}function Re(){return P(d.wrapper,ye)}function Ks(){return P(d.wrapper,".slides>section>section")}function bl(){return P(d.wrapper,ye+".stack")}function Zs(){return Re().length>1}function Qs(){return Ks().length>1}function kl(){return mi().map(m=>{let f={};for(let k=0;k<m.attributes.length;k++){let w=m.attributes[k];f[w.name]=w.value}return f})}function Xs(){return mi().length}function Ys(m,f){let k=Re()[m],w=k&&k.querySelectorAll("section");return w&&w.length&&typeof f=="number"?w?w[f]:void 0:k}function yl(m,f){let k=typeof m=="number"?Ys(m,f):m;if(k)return k.slideBackgroundElement}function Js(){let m=Ws();return ke({indexh:m.h,indexv:m.v,indexf:m.f,paused:tt(),overview:v.isActive()},V.getState())}function wl(m){if(typeof m=="object"){be(He(m.indexh),He(m.indexv),He(m.indexf));let f=He(m.paused),k=He(m.overview);typeof f=="boolean"&&f!==tt()&&js(f),typeof k=="boolean"&&k!==v.isActive()&&v.toggle(k),V.setState(m)}}function Oe(){if(At(),o&&s.autoSlide!==!1){let m=o.querySelector(".current-fragment[data-autoslide]"),f=m?m.getAttribute("data-autoslide"):null,k=o.parentNode?o.parentNode.getAttribute("data-autoslide"):null,w=o.getAttribute("data-autoslide");f?y=parseInt(f,10):w?y=parseInt(w,10):k?y=parseInt(k,10):(y=s.autoSlide,o.querySelectorAll(".fragment").length===0&&P(o,"video, audio").forEach(E=>{E.hasAttribute("data-autoplay")&&y&&E.duration*1e3/E.playbackRate>y&&(y=E.duration*1e3/E.playbackRate+1e3)})),y&&!A&&!tt()&&!v.isActive()&&(!ui()||$.availableRoutes().next||s.loop===!0)&&(H=setTimeout(()=>{typeof s.autoSlideMethod=="function"?s.autoSlideMethod():bi(),Oe()},y),N=Date.now()),z&&z.setPlaying(H!==-1)}}function At(){clearTimeout(H),H=-1}function Tt(){y&&!A&&(A=!0,oe({type:"autoslidepaused"}),clearTimeout(H),z&&z.setPlaying(!1))}function Lt(){y&&A&&(A=!1,oe({type:"autoslideresumed"}),Oe())}function Pt({skipFragments:m=!1}={}){if(u.hasNavigatedHorizontally=!0,T.isActive())return T.prev();s.rtl?(v.isActive()||m||$.next()===!1)&&we().left&&be(l+1,s.navigationMode==="grid"?r:void 0):(v.isActive()||m||$.prev()===!1)&&we().left&&be(l-1,s.navigationMode==="grid"?r:void 0)}function Ct({skipFragments:m=!1}={}){if(u.hasNavigatedHorizontally=!0,T.isActive())return T.next();s.rtl?(v.isActive()||m||$.prev()===!1)&&we().right&&be(l-1,s.navigationMode==="grid"?r:void 0):(v.isActive()||m||$.next()===!1)&&we().right&&be(l+1,s.navigationMode==="grid"?r:void 0)}function fi({skipFragments:m=!1}={}){if(T.isActive())return T.prev();(v.isActive()||m||$.prev()===!1)&&we().up&&be(l,r-1)}function vi({skipFragments:m=!1}={}){if(u.hasNavigatedVertically=!0,T.isActive())return T.next();(v.isActive()||m||$.next()===!1)&&we().down&&be(l,r+1)}function Gs({skipFragments:m=!1}={}){if(T.isActive())return T.prev();if(m||$.prev()===!1)if(we().up)fi({skipFragments:m});else{let f;if(f=s.rtl?P(d.wrapper,ye+".future").pop():P(d.wrapper,ye+".past").pop(),f&&f.classList.contains("stack")){let k=f.querySelectorAll("section").length-1||void 0;be(l-1,k)}else s.rtl?Ct({skipFragments:m}):Pt({skipFragments:m})}}function bi({skipFragments:m=!1}={}){if(u.hasNavigatedHorizontally=!0,u.hasNavigatedVertically=!0,T.isActive())return T.next();if(m||$.next()===!1){let f=we();f.down&&f.right&&s.loop&&Hs()&&(f.down=!1),f.down?vi({skipFragments:m}):s.rtl?Pt({skipFragments:m}):Ct({skipFragments:m})}}function xl(m){s.autoSlideStoppable&&Tt()}function en(m){let f=m.data;if(typeof f=="string"&&f.charAt(0)==="{"&&f.charAt(f.length-1)==="}"&&(f=JSON.parse(f),f.method&&typeof i[f.method]=="function"))if(Ln.test(f.method)===!1){let k=i[f.method].apply(i,f.args);zs("callback",{method:f.method,result:k})}else console.warn('reveal.js: "'+f.method+'" is is blacklisted from the postMessage API')}function tn(m){b==="running"&&/section/gi.test(m.target.nodeName)&&(b="idle",oe({type:"slidetransitionend",data:{indexh:l,indexv:r,previousSlide:c,currentSlide:o}}))}function sn(m){let f=se(m.target,'a[href^="#"]');if(f){let k=f.getAttribute("href"),w=I.getIndicesFromHash(k);w&&(i.slide(w.h,w.v,w.f),m.preventDefault())}}function nn(m){je()}function rn(m){document.hidden===!1&&document.activeElement!==document.body&&(typeof document.activeElement.blur=="function"&&document.activeElement.blur(),document.body.focus())}function It(m){(document.fullscreenElement||document.webkitFullscreenElement)===d.wrapper&&(m.stopImmediatePropagation(),setTimeout(()=>{i.layout(),i.focus.focus()},1))}function Sl(m){ui()&&s.loop===!1?(be(0,0),Lt()):A?Lt():Tt()}let an={VERSION:Bi,initialize:kt,configure:Ps,destroy:ol,sync:Os,syncSlide:ml,syncFragments:$.sync.bind($),slide:be,left:Pt,right:Ct,up:fi,down:vi,prev:Gs,next:bi,navigateLeft:Pt,navigateRight:Ct,navigateUp:fi,navigateDown:vi,navigatePrev:Gs,navigateNext:bi,navigateFragment:$.goto.bind($),prevFragment:$.prev.bind($),nextFragment:$.next.bind($),on:Is,off:Ms,addEventListener:Is,removeEventListener:Ms,layout:je,shuffle:pi,availableRoutes:we,availableFragments:$.availableRoutes.bind($),toggleHelp:V.toggleHelp.bind(V),toggleOverview:v.toggle.bind(v),toggleScrollView:T.toggle.bind(T),togglePause:js,toggleAutoSlide:hl,toggleJumpToSlide:ul,isFirstSlide:_s,isLastSlide:ui,isLastVerticalSlide:Hs,isVerticalSlide:Ge,isVerticalStack:dl,isPaused:tt,isAutoSliding:pl,isSpeakerNotes:le.isSpeakerNotesWindow.bind(le),isOverview:v.isActive.bind(v),isFocused:ce.isFocused.bind(ce),isOverlayOpen:V.isOpen.bind(V),isScrollView:T.isActive.bind(T),isPrintView:U.isActive.bind(U),isReady:()=>a,loadSlide:x.load.bind(x),unloadSlide:x.unload.bind(x),startEmbeddedContent:()=>x.startEmbeddedContent(o),stopEmbeddedContent:()=>x.stopEmbeddedContent(o,{unloadIframes:!1}),previewIframe:V.previewIframe.bind(V),previewImage:V.previewImage.bind(V),previewVideo:V.previewVideo.bind(V),showPreview:V.previewIframe.bind(V),hidePreview:V.close.bind(V),addEventListeners:Cs,removeEventListeners:St,dispatchEvent:oe,getState:Js,setState:wl,getProgress:vl,getIndices:Ws,getSlidesAttributes:kl,getSlidePastCount:Us,getTotalSlides:Xs,getSlide:Ys,getPreviousSlide:()=>c,getCurrentSlide:()=>o,getSlideBackground:yl,getSlideNotes:le.getSlideNotes.bind(le),getSlides:mi,getHorizontalSlides:Re,getVerticalSlides:Ks,hasHorizontalSlides:Zs,hasVerticalSlides:Qs,hasNavigatedHorizontally:()=>u.hasNavigatedHorizontally,hasNavigatedVertically:()=>u.hasNavigatedVertically,shouldAutoAnimateBetween:hi,addKeyBinding:R.addKeyBinding.bind(R),removeKeyBinding:R.removeKeyBinding.bind(R),triggerKey:R.triggerKey.bind(R),registerKeyboardShortcut:R.registerKeyboardShortcut.bind(R),getComputedSlideSize:Et,setCurrentScrollPage:gl,removeHiddenSlides:X,getScale:()=>g,getConfig:()=>s,getQueryHash:Pi,getSlidePath:I.getHash.bind(I),getRevealElement:()=>t,getSlidesElement:()=>d.slides,getViewportElement:()=>d.viewport,getBackgroundsElement:()=>_.element,registerPlugin:q.registerPlugin.bind(q),hasPlugin:q.hasPlugin.bind(q),getPlugin:q.getPlugin.bind(q),getPlugins:q.getRegisteredPlugins.bind(q)};return De(i,Ai(ke({},an),{announceStatus:Je,getStatusText:xt,focus:ce,scroll:T,progress:G,controls:W,location:I,overview:v,keyboard:R,fragments:$,backgrounds:_,slideContent:x,slideNumber:j,onUserInput:xl,closeOverlay:V.close.bind(V),updateSlidesVisibility:gi,layoutSlideContents:$s,transformSlides:di,cueAutoSlide:Oe,cancelAutoSlide:At})),an}var Ee=Di,Hi=[];Ee.initialize=t=>{let e=document.querySelector(".reveal");if(!(e instanceof HTMLElement))throw Error('Unable to find presentation root (<div class="reveal">).');return Object.assign(Ee,new Di(e,t)),Hi.map(i=>i(Ee)),Ee.initialize()},["configure","on","off","addEventListener","removeEventListener","registerPlugin"].forEach(t=>{Ee[t]=(...e)=>{Hi.push(i=>i[t].call(null,...e))}}),Ee.isReady=()=>!1,Ee.VERSION=Bi;var S=ln(Hl(),1),_i=(0,L.createContext)(null),ir=[];function sr(t,e){if(t===e)return!1;if(!t||!e)return t!==e;let i=Object.keys(t),s=Object.keys(e);if(i.length!==s.length)return!0;for(let n of i)if(!(n in e)||t[n]!==e[n])return!0;return!1}function qi(t,e){t&&(typeof t=="function"?t(e):t.current=e)}function nr(t){return t.tagName==="SECTION"}function ji(t,e,i){return Array.from(t.children).filter(nr).map(s=>{let n=e.get(s);n===void 0&&(n=i.current++,e.set(s,n));let a=ji(s,e,i);return a.length>0?[n,a]:n})}function rr(t,e,i){return t?JSON.stringify(ji(t,e,i)):"[]"}function ar({config:t,plugins:e=ir,onReady:i,onSync:s,onSlideSync:n,onSlideChange:a,onSlideTransitionEnd:l,onFragmentShown:r,onFragmentHidden:c,onOverviewShown:o,onOverviewHidden:u,onPaused:h,onResumed:g,deckRef:p,className:d,style:b,children:y}){let z=(0,L.useRef)(null),H=(0,L.useRef)(null),N=(0,L.useRef)(null),[A,x]=(0,L.useState)(null),j=(0,L.useRef)(e),M=(0,L.useRef)(!1),B=(0,L.useRef)(t),_=(0,L.useRef)(null),T=(0,L.useRef)(new WeakMap),U=(0,L.useRef)(1),$=(0,L.useRef)(!1),v=(0,L.useRef)(0);return(0,L.useEffect)(()=>{if($.current=!0,v.current+=1,N.current)N.current.isReady()&&x(N.current);else{let R=new Ee(z.current,{...t,plugins:j.current});B.current=t,N.current=R,R.initialize().then(()=>{!$.current||N.current!==R||(x(R),i==null||i(R))})}return()=>{$.current=!1;let R=N.current;if(!R)return;let I=++v.current;Promise.resolve().then(()=>{if(!($.current||v.current!==I)&&N.current===R){try{R.destroy()}catch{}N.current===R&&(N.current=null)}})}},[]),(0,L.useEffect)(()=>(qi(p,A),()=>qi(p,null)),[p,A]),(0,L.useEffect)(()=>{if(!A)return;let R=[["sync",s],["slidesync",n],["slidechanged",a],["slidetransitionend",l],["fragmentshown",r],["fragmenthidden",c],["overviewshown",o],["overviewhidden",u],["paused",h],["resumed",g]].filter(I=>I[1]!=null);for(let[I,W]of R)A.on(I,W);return()=>{for(let[I,W]of R)A.off(I,W)}},[A,s,n,a,l,r,c,o,u,h,g]),(0,L.useLayoutEffect)(()=>{var R;!A||!((R=N.current)!=null&&R.isReady())||sr(B.current,t)&&(M.current=!0,N.current.configure(t??{}),B.current=t)},[A,t]),(0,L.useLayoutEffect)(()=>{var W;let R=M.current;M.current=!1;let I=rr(H.current,T.current,U);if(R){_.current=I;return}(W=N.current)!=null&&W.isReady()&&_.current!==I&&(N.current.sync(),_.current=I)}),(0,S.jsx)(_i.Provider,{value:A,children:(0,S.jsx)("div",{className:d?`reveal ${d}`:"reveal",style:b,ref:z,children:(0,S.jsx)("div",{className:"slides",ref:H,children:y})})})}var lr={background:"data-background",backgroundImage:"data-background-image",backgroundVideo:"data-background-video",backgroundVideoLoop:"data-background-video-loop",backgroundVideoMuted:"data-background-video-muted",backgroundIframe:"data-background-iframe",backgroundColor:"data-background-color",backgroundGradient:"data-background-gradient",backgroundSize:"data-background-size",backgroundPosition:"data-background-position",backgroundRepeat:"data-background-repeat",backgroundOpacity:"data-background-opacity",backgroundTransition:"data-background-transition",visibility:"data-visibility",autoAnimate:"data-auto-animate",autoAnimateId:"data-auto-animate-id",autoAnimateRestart:"data-auto-animate-restart",autoAnimateUnmatched:"data-auto-animate-unmatched",autoAnimateEasing:"data-auto-animate-easing",autoAnimateDuration:"data-auto-animate-duration",autoAnimateDelay:"data-auto-animate-delay",transition:"data-transition",transitionSpeed:"data-transition-speed",autoSlide:"data-autoslide",notes:"data-notes",backgroundInteractive:"data-background-interactive",preload:"data-preload"};function or(t){return JSON.stringify(Object.entries(t).filter(([e])=>e.startsWith("data-")).sort(([e],[i])=>e.localeCompare(i)))}function cr(t,e){let i={...t},s=i;for(let[n,a]of Object.entries(lr)){if(s[a]!==void 0)continue;let l=e[n];if(l!==void 0){if(l===!1){n==="autoAnimateUnmatched"&&(s[a]="false");continue}s[a]=typeof l=="boolean"?"":l}}return i}function dr({children:t,background:e,backgroundImage:i,backgroundVideo:s,backgroundVideoLoop:n,backgroundVideoMuted:a,backgroundIframe:l,backgroundColor:r,backgroundGradient:c,backgroundSize:o,backgroundPosition:u,backgroundRepeat:h,backgroundOpacity:g,backgroundTransition:p,visibility:d,autoAnimate:b,autoAnimateId:y,autoAnimateRestart:z,autoAnimateUnmatched:H,autoAnimateEasing:N,autoAnimateDuration:A,autoAnimateDelay:x,transition:j,transitionSpeed:M,autoSlide:B,notes:_,backgroundInteractive:T,preload:U,...$}){let v=(0,L.useContext)(_i),R=(0,L.useRef)(null),I=(0,L.useRef)(null),W=(0,L.useRef)(null),G=cr($,{background:e,backgroundImage:i,backgroundVideo:s,backgroundVideoLoop:n,backgroundVideoMuted:a,backgroundIframe:l,backgroundColor:r,backgroundGradient:c,backgroundSize:o,backgroundPosition:u,backgroundRepeat:h,backgroundOpacity:g,backgroundTransition:p,visibility:d,autoAnimate:b,autoAnimateId:y,autoAnimateRestart:z,autoAnimateUnmatched:H,autoAnimateEasing:N,autoAnimateDuration:A,autoAnimateDelay:x,transition:j,transitionSpeed:M,autoSlide:B,notes:_,backgroundInteractive:T,preload:U}),te=or(G);return(0,L.useLayoutEffect)(()=>{let q=R.current;if(!v||!q||typeof v.syncSlide!="function")return;if(I.current!==v){I.current=v,W.current=te;return}if(te==="[]")return;let V=I.current===v,ce=W.current===te;V&&ce||(v.syncSlide(q),I.current=v,W.current=te)},[v,te]),(0,S.jsx)("section",{ref:R,...G,children:t})}function ur({className:t,style:e,children:i}){return(0,S.jsx)("section",{className:t,style:e,children:i})}function Ot(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Ce=Ot();function Oi(t){Ce=t}var Ie={exec:()=>null};function O(t,e=""){let i=typeof t=="string"?t:t.source,s={replace:(n,a)=>{let l=typeof a=="string"?a:a.source;return l=l.replace(re.caret,"$1"),i=i.replace(n,l),s},getRegex:()=>new RegExp(i,e)};return s}var hr=(()=>{try{return!0}catch{return!1}})(),re={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:t=>RegExp(`^( {0,3}${t})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:t=>RegExp(`^ {0,${Math.min(3,t-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:t=>RegExp(`^ {0,${Math.min(3,t-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:t=>RegExp(`^ {0,${Math.min(3,t-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:t=>RegExp(`^ {0,${Math.min(3,t-1)}}#`),htmlBeginRegex:t=>RegExp(`^ {0,${Math.min(3,t-1)}}<(?:[a-z].*>|!--)`,"i"),blockquoteBeginRegex:t=>RegExp(`^ {0,${Math.min(3,t-1)}}>`)},pr=/^(?:[ \t]*(?:\n|$))+/,gr=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,mr=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Fe=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,fr=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Ft=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,Fi=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Vi=O(Fi).replace(/bull/g,Ft).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(),vr=O(Fi).replace(/bull/g,Ft).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(),Vt=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,br=/^[^\n]+/,Ut=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,kr=O(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Ut).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),yr=O(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Ft).getRegex(),nt="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",Wt=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,wr=O("^ {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",Wt).replace("tag",nt).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Ui=O(Vt).replace("hr",Fe).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",nt).getRegex(),Kt={blockquote:O(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Ui).getRegex(),code:gr,def:kr,fences:mr,heading:fr,hr:Fe,html:wr,lheading:Vi,list:yr,newline:pr,paragraph:Ui,table:Ie,text:br},Wi=O("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Fe).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",nt).getRegex(),xr={...Kt,lheading:vr,table:Wi,paragraph:O(Vt).replace("hr",Fe).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Wi).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",nt).getRegex()},Sr={...Kt,html:O(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Wt).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(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Ie,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:O(Vt).replace("hr",Fe).replace("heading",` *#{1,6} *[^
34
+ ]`).replace("lheading",Vi).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Er=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Rr=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Ki=/^( {2,}|\\)\n(?!\s*$)/,Ar=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,_e=/[\p{P}\p{S}]/u,rt=/[\s\p{P}\p{S}]/u,Zt=/[^\s\p{P}\p{S}]/u,Tr=O(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,rt).getRegex(),Zi=/(?!~)[\p{P}\p{S}]/u,Lr=/(?!~)[\s\p{P}\p{S}]/u,Pr=/(?:[^\s\p{P}\p{S}]|~)/u,Cr=O(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",hr?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),Qi=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,Ir=O(Qi,"u").replace(/punct/g,_e).getRegex(),Mr=O(Qi,"u").replace(/punct/g,Zi).getRegex(),Xi="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Nr=O(Xi,"gu").replace(/notPunctSpace/g,Zt).replace(/punctSpace/g,rt).replace(/punct/g,_e).getRegex(),zr=O(Xi,"gu").replace(/notPunctSpace/g,Pr).replace(/punctSpace/g,Lr).replace(/punct/g,Zi).getRegex(),$r=O("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Zt).replace(/punctSpace/g,rt).replace(/punct/g,_e).getRegex(),Br=O(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,_e).getRegex(),Dr=O("^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)","gu").replace(/notPunctSpace/g,Zt).replace(/punctSpace/g,rt).replace(/punct/g,_e).getRegex(),Hr=O(/\\(punct)/,"gu").replace(/punct/g,_e).getRegex(),_r=O(/^<(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(),qr=O(Wt).replace("(?:-->|$)","-->").getRegex(),jr=O("^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",qr).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),at=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,Or=O(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",at).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Yi=O(/^!?\[(label)\]\[(ref)\]/).replace("label",at).replace("ref",Ut).getRegex(),Ji=O(/^!?\[(ref)\](?:\[\])?/).replace("ref",Ut).getRegex(),Fr=O("reflink|nolink(?!\\()","g").replace("reflink",Yi).replace("nolink",Ji).getRegex(),Gi=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Qt={_backpedal:Ie,anyPunctuation:Hr,autolink:_r,blockSkip:Cr,br:Ki,code:Rr,del:Ie,delLDelim:Ie,delRDelim:Ie,emStrongLDelim:Ir,emStrongRDelimAst:Nr,emStrongRDelimUnd:$r,escape:Er,link:Or,nolink:Ji,punctuation:Tr,reflink:Yi,reflinkSearch:Fr,tag:jr,text:Ar,url:Ie},Vr={...Qt,link:O(/^!?\[(label)\]\((.*?)\)/).replace("label",at).getRegex(),reflink:O(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",at).getRegex()},Xt={...Qt,emStrongRDelimAst:zr,emStrongLDelim:Mr,delLDelim:Br,delRDelim:Dr,url:O(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",Gi).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:O(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",Gi).getRegex()},Ur={...Xt,br:O(Ki).replace("{2,}","*").getRegex(),text:O(Xt.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},lt={normal:Kt,gfm:xr,pedantic:Sr},Ve={normal:Qt,gfm:Xt,breaks:Ur,pedantic:Vr},Wr={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},es=t=>Wr[t];function fe(t,e){if(e){if(re.escapeTest.test(t))return t.replace(re.escapeReplace,es)}else if(re.escapeTestNoEncode.test(t))return t.replace(re.escapeReplaceNoEncode,es);return t}function ts(t){try{t=encodeURI(t).replace(re.percentDecode,"%")}catch{return null}return t}function is(t,e){var n;let i=t.replace(re.findPipe,(a,l,r)=>{let c=!1,o=l;for(;--o>=0&&r[o]==="\\";)c=!c;return c?"|":" |"}).split(re.splitPipe),s=0;if(i[0].trim()||i.shift(),i.length>0&&!((n=i.at(-1))!=null&&n.trim())&&i.pop(),e)if(i.length>e)i.splice(e);else for(;i.length<e;)i.push("");for(;s<i.length;s++)i[s]=i[s].trim().replace(re.slashPipe,"|");return i}function Ue(t,e,i){let s=t.length;if(s===0)return"";let n=0;for(;n<s;){let a=t.charAt(s-n-1);if(a===e&&!i)n++;else if(a!==e&&i)n++;else break}return t.slice(0,s-n)}function Kr(t,e){if(t.indexOf(e[1])===-1)return-1;let i=0;for(let s=0;s<t.length;s++)if(t[s]==="\\")s++;else if(t[s]===e[0])i++;else if(t[s]===e[1]&&(i--,i<0))return s;return i>0?-2:-1}function Zr(t,e=0){let i=e,s="";for(let n of t)if(n===" "){let a=4-i%4;s+=" ".repeat(a),i+=a}else s+=n,i++;return s}function ss(t,e,i,s,n){let a=e.href,l=e.title||null,r=t[1].replace(n.other.outputLinkReplace,"$1");s.state.inLink=!0;let c={type:t[0].charAt(0)==="!"?"image":"link",raw:i,href:a,title:l,text:r,tokens:s.inlineTokens(r)};return s.state.inLink=!1,c}function Qr(t,e,i){let s=t.match(i.other.indentCodeCompensation);if(s===null)return e;let n=s[1];return e.split(`
35
35
  `).map(a=>{let l=a.match(i.other.beginningSpace);if(l===null)return a;let[r]=l;return r.length>=n.length?a.slice(n.length):a}).join(`
36
- `)}var lt=class{constructor(t){M(this,"options");M(this,"rules");M(this,"lexer");this.options=t||Ce}space(t){let e=this.rules.block.newline.exec(t);if(e&&e[0].length>0)return{type:"space",raw:e[0]}}code(t){let e=this.rules.block.code.exec(t);if(e){let i=e[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:e[0],codeBlockStyle:"indented",text:this.options.pedantic?i:We(i,`
37
- `)}}}fences(t){let e=this.rules.block.fences.exec(t);if(e){let i=e[0],s=Qr(i,e[3]||"",this.rules);return{type:"code",raw:i,lang:e[2]?e[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):e[2],text:s}}}heading(t){let e=this.rules.block.heading.exec(t);if(e){let i=e[2].trim();if(this.rules.other.endingHash.test(i)){let s=We(i,"#");(this.options.pedantic||!s||this.rules.other.endingSpaceChar.test(s))&&(i=s.trim())}return{type:"heading",raw:e[0],depth:e[1].length,text:i,tokens:this.lexer.inline(i)}}}hr(t){let e=this.rules.block.hr.exec(t);if(e)return{type:"hr",raw:We(e[0],`
38
- `)}}blockquote(t){let e=this.rules.block.blockquote.exec(t);if(e){let i=We(e[0],`
36
+ `)}var ot=class{constructor(t){C(this,"options");C(this,"rules");C(this,"lexer");this.options=t||Ce}space(t){let e=this.rules.block.newline.exec(t);if(e&&e[0].length>0)return{type:"space",raw:e[0]}}code(t){let e=this.rules.block.code.exec(t);if(e){let i=e[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:e[0],codeBlockStyle:"indented",text:this.options.pedantic?i:Ue(i,`
37
+ `)}}}fences(t){let e=this.rules.block.fences.exec(t);if(e){let i=e[0],s=Qr(i,e[3]||"",this.rules);return{type:"code",raw:i,lang:e[2]?e[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):e[2],text:s}}}heading(t){let e=this.rules.block.heading.exec(t);if(e){let i=e[2].trim();if(this.rules.other.endingHash.test(i)){let s=Ue(i,"#");(this.options.pedantic||!s||this.rules.other.endingSpaceChar.test(s))&&(i=s.trim())}return{type:"heading",raw:e[0],depth:e[1].length,text:i,tokens:this.lexer.inline(i)}}}hr(t){let e=this.rules.block.hr.exec(t);if(e)return{type:"hr",raw:Ue(e[0],`
38
+ `)}}blockquote(t){let e=this.rules.block.blockquote.exec(t);if(e){let i=Ue(e[0],`
39
39
  `).split(`
40
40
  `),s="",n="",a=[];for(;i.length>0;){let l=!1,r=[],c;for(c=0;c<i.length;c++)if(this.rules.other.blockquoteStart.test(i[c]))r.push(i[c]),l=!0;else if(!l)r.push(i[c]);else break;i=i.slice(c);let o=r.join(`
41
- `),d=o.replace(this.rules.other.blockquoteSetextReplace,`
41
+ `),u=o.replace(this.rules.other.blockquoteSetextReplace,`
42
42
  $1`).replace(this.rules.other.blockquoteSetextReplace2,"");s=s?`${s}
43
43
  ${o}`:o,n=n?`${n}
44
- ${d}`:d;let h=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(d,a,!0),this.lexer.state.top=h,i.length===0)break;let g=a.at(-1);if((g==null?void 0:g.type)==="code")break;if((g==null?void 0:g.type)==="blockquote"){let p=g,u=p.raw+`
44
+ ${u}`:u;let h=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(u,a,!0),this.lexer.state.top=h,i.length===0)break;let g=a.at(-1);if((g==null?void 0:g.type)==="code")break;if((g==null?void 0:g.type)==="blockquote"){let p=g,d=p.raw+`
45
45
  `+i.join(`
46
- `),b=this.blockquote(u);a[a.length-1]=b,s=s.substring(0,s.length-p.raw.length)+b.raw,n=n.substring(0,n.length-p.text.length)+b.text;break}else if((g==null?void 0:g.type)==="list"){let p=g,u=p.raw+`
46
+ `),b=this.blockquote(d);a[a.length-1]=b,s=s.substring(0,s.length-p.raw.length)+b.raw,n=n.substring(0,n.length-p.text.length)+b.text;break}else if((g==null?void 0:g.type)==="list"){let p=g,d=p.raw+`
47
47
  `+i.join(`
48
- `),b=this.list(u);a[a.length-1]=b,s=s.substring(0,s.length-g.raw.length)+b.raw,n=n.substring(0,n.length-p.raw.length)+b.raw,i=u.substring(a.at(-1).raw.length).split(`
49
- `);continue}}return{type:"blockquote",raw:s,tokens:a,text:n}}}list(t){var i,s;let e=this.rules.block.list.exec(t);if(e){let n=e[1].trim(),a=n.length>1,l={type:"list",raw:"",ordered:a,start:a?+n.slice(0,-1):"",loose:!1,items:[]};n=a?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=a?n:"[*+-]");let r=this.rules.other.listItemRegex(n),c=!1;for(;t;){let d=!1,h="",g="";if(!(e=r.exec(t))||this.rules.block.hr.test(t))break;h=e[0],t=t.substring(h.length);let p=Zr(e[2].split(`
50
- `,1)[0],e[1].length),u=t.split(`
51
- `,1)[0],b=!p.trim(),y=0;if(this.options.pedantic?(y=2,g=p.trimStart()):b?y=e[1].length+1:(y=p.search(this.rules.other.nonSpaceChar),y=y>4?1:y,g=p.slice(y),y+=e[1].length),b&&this.rules.other.blankLine.test(u)&&(h+=u+`
52
- `,t=t.substring(u.length+1),d=!0),!d){let N=this.rules.other.nextBulletRegex(y),H=this.rules.other.hrRegex(y),L=this.rules.other.fencesBeginRegex(y),A=this.rules.other.headingBeginRegex(y),x=this.rules.other.htmlBeginRegex(y),q=this.rules.other.blockquoteBeginRegex(y);for(;t;){let z=t.split(`
53
- `,1)[0],$;if(u=z,this.options.pedantic?(u=u.replace(this.rules.other.listReplaceNesting," "),$=u):$=u.replace(this.rules.other.tabCharGlobal," "),L.test(u)||A.test(u)||x.test(u)||q.test(u)||N.test(u)||H.test(u))break;if($.search(this.rules.other.nonSpaceChar)>=y||!u.trim())g+=`
54
- `+$.slice(y);else{if(b||p.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||L.test(p)||A.test(p)||H.test(p))break;g+=`
55
- `+u}b=!u.trim(),h+=z+`
56
- `,t=t.substring(z.length+1),p=$.slice(y)}}l.loose||(c?l.loose=!0:this.rules.other.doubleBlankLine.test(h)&&(c=!0)),l.items.push({type:"list_item",raw:h,task:!!this.options.gfm&&this.rules.other.listIsTask.test(g),loose:!1,text:g,tokens:[]}),l.raw+=h}let o=l.items.at(-1);if(o)o.raw=o.raw.trimEnd(),o.text=o.text.trimEnd();else return;l.raw=l.raw.trimEnd();for(let d of l.items){if(this.lexer.state.top=!1,d.tokens=this.lexer.blockTokens(d.text,[]),d.task){if(d.text=d.text.replace(this.rules.other.listReplaceTask,""),((i=d.tokens[0])==null?void 0:i.type)==="text"||((s=d.tokens[0])==null?void 0:s.type)==="paragraph"){d.tokens[0].raw=d.tokens[0].raw.replace(this.rules.other.listReplaceTask,""),d.tokens[0].text=d.tokens[0].text.replace(this.rules.other.listReplaceTask,"");for(let g=this.lexer.inlineQueue.length-1;g>=0;g--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[g].src)){this.lexer.inlineQueue[g].src=this.lexer.inlineQueue[g].src.replace(this.rules.other.listReplaceTask,"");break}}let h=this.rules.other.listTaskCheckbox.exec(d.raw);if(h){let g={type:"checkbox",raw:h[0]+" ",checked:h[0]!=="[ ]"};d.checked=g.checked,l.loose?d.tokens[0]&&["paragraph","text"].includes(d.tokens[0].type)&&"tokens"in d.tokens[0]&&d.tokens[0].tokens?(d.tokens[0].raw=g.raw+d.tokens[0].raw,d.tokens[0].text=g.raw+d.tokens[0].text,d.tokens[0].tokens.unshift(g)):d.tokens.unshift({type:"paragraph",raw:g.raw,text:g.raw,tokens:[g]}):d.tokens.unshift(g)}}if(!l.loose){let h=d.tokens.filter(g=>g.type==="space");l.loose=h.length>0&&h.some(g=>this.rules.other.anyLine.test(g.raw))}}if(l.loose)for(let d of l.items){d.loose=!0;for(let h of d.tokens)h.type==="text"&&(h.type="paragraph")}return l}}html(t){let e=this.rules.block.html.exec(t);if(e)return{type:"html",block:!0,raw:e[0],pre:e[1]==="pre"||e[1]==="script"||e[1]==="style",text:e[0]}}def(t){let e=this.rules.block.def.exec(t);if(e){let i=e[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),s=e[2]?e[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",n=e[3]?e[3].substring(1,e[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):e[3];return{type:"def",tag:i,raw:e[0],href:s,title:n}}}table(t){var l;let e=this.rules.block.table.exec(t);if(!e||!this.rules.other.tableDelimiter.test(e[2]))return;let i=is(e[1]),s=e[2].replace(this.rules.other.tableAlignChars,"").split("|"),n=(l=e[3])!=null&&l.trim()?e[3].replace(this.rules.other.tableRowBlankLine,"").split(`
48
+ `),b=this.list(d);a[a.length-1]=b,s=s.substring(0,s.length-g.raw.length)+b.raw,n=n.substring(0,n.length-p.raw.length)+b.raw,i=d.substring(a.at(-1).raw.length).split(`
49
+ `);continue}}return{type:"blockquote",raw:s,tokens:a,text:n}}}list(t){var i,s;let e=this.rules.block.list.exec(t);if(e){let n=e[1].trim(),a=n.length>1,l={type:"list",raw:"",ordered:a,start:a?+n.slice(0,-1):"",loose:!1,items:[]};n=a?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=a?n:"[*+-]");let r=this.rules.other.listItemRegex(n),c=!1;for(;t;){let u=!1,h="",g="";if(!(e=r.exec(t))||this.rules.block.hr.test(t))break;h=e[0],t=t.substring(h.length);let p=Zr(e[2].split(`
50
+ `,1)[0],e[1].length),d=t.split(`
51
+ `,1)[0],b=!p.trim(),y=0;if(this.options.pedantic?(y=2,g=p.trimStart()):b?y=e[1].length+1:(y=p.search(this.rules.other.nonSpaceChar),y=y>4?1:y,g=p.slice(y),y+=e[1].length),b&&this.rules.other.blankLine.test(d)&&(h+=d+`
52
+ `,t=t.substring(d.length+1),u=!0),!u){let z=this.rules.other.nextBulletRegex(y),H=this.rules.other.hrRegex(y),N=this.rules.other.fencesBeginRegex(y),A=this.rules.other.headingBeginRegex(y),x=this.rules.other.htmlBeginRegex(y),j=this.rules.other.blockquoteBeginRegex(y);for(;t;){let M=t.split(`
53
+ `,1)[0],B;if(d=M,this.options.pedantic?(d=d.replace(this.rules.other.listReplaceNesting," "),B=d):B=d.replace(this.rules.other.tabCharGlobal," "),N.test(d)||A.test(d)||x.test(d)||j.test(d)||z.test(d)||H.test(d))break;if(B.search(this.rules.other.nonSpaceChar)>=y||!d.trim())g+=`
54
+ `+B.slice(y);else{if(b||p.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||N.test(p)||A.test(p)||H.test(p))break;g+=`
55
+ `+d}b=!d.trim(),h+=M+`
56
+ `,t=t.substring(M.length+1),p=B.slice(y)}}l.loose||(c?l.loose=!0:this.rules.other.doubleBlankLine.test(h)&&(c=!0)),l.items.push({type:"list_item",raw:h,task:!!this.options.gfm&&this.rules.other.listIsTask.test(g),loose:!1,text:g,tokens:[]}),l.raw+=h}let o=l.items.at(-1);if(o)o.raw=o.raw.trimEnd(),o.text=o.text.trimEnd();else return;l.raw=l.raw.trimEnd();for(let u of l.items){if(this.lexer.state.top=!1,u.tokens=this.lexer.blockTokens(u.text,[]),u.task){if(u.text=u.text.replace(this.rules.other.listReplaceTask,""),((i=u.tokens[0])==null?void 0:i.type)==="text"||((s=u.tokens[0])==null?void 0:s.type)==="paragraph"){u.tokens[0].raw=u.tokens[0].raw.replace(this.rules.other.listReplaceTask,""),u.tokens[0].text=u.tokens[0].text.replace(this.rules.other.listReplaceTask,"");for(let g=this.lexer.inlineQueue.length-1;g>=0;g--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[g].src)){this.lexer.inlineQueue[g].src=this.lexer.inlineQueue[g].src.replace(this.rules.other.listReplaceTask,"");break}}let h=this.rules.other.listTaskCheckbox.exec(u.raw);if(h){let g={type:"checkbox",raw:h[0]+" ",checked:h[0]!=="[ ]"};u.checked=g.checked,l.loose?u.tokens[0]&&["paragraph","text"].includes(u.tokens[0].type)&&"tokens"in u.tokens[0]&&u.tokens[0].tokens?(u.tokens[0].raw=g.raw+u.tokens[0].raw,u.tokens[0].text=g.raw+u.tokens[0].text,u.tokens[0].tokens.unshift(g)):u.tokens.unshift({type:"paragraph",raw:g.raw,text:g.raw,tokens:[g]}):u.tokens.unshift(g)}}if(!l.loose){let h=u.tokens.filter(g=>g.type==="space");l.loose=h.length>0&&h.some(g=>this.rules.other.anyLine.test(g.raw))}}if(l.loose)for(let u of l.items){u.loose=!0;for(let h of u.tokens)h.type==="text"&&(h.type="paragraph")}return l}}html(t){let e=this.rules.block.html.exec(t);if(e)return{type:"html",block:!0,raw:e[0],pre:e[1]==="pre"||e[1]==="script"||e[1]==="style",text:e[0]}}def(t){let e=this.rules.block.def.exec(t);if(e){let i=e[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),s=e[2]?e[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",n=e[3]?e[3].substring(1,e[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):e[3];return{type:"def",tag:i,raw:e[0],href:s,title:n}}}table(t){var l;let e=this.rules.block.table.exec(t);if(!e||!this.rules.other.tableDelimiter.test(e[2]))return;let i=is(e[1]),s=e[2].replace(this.rules.other.tableAlignChars,"").split("|"),n=(l=e[3])!=null&&l.trim()?e[3].replace(this.rules.other.tableRowBlankLine,"").split(`
57
57
  `):[],a={type:"table",raw:e[0],header:[],align:[],rows:[]};if(i.length===s.length){for(let r of s)this.rules.other.tableAlignRight.test(r)?a.align.push("right"):this.rules.other.tableAlignCenter.test(r)?a.align.push("center"):this.rules.other.tableAlignLeft.test(r)?a.align.push("left"):a.align.push(null);for(let r=0;r<i.length;r++)a.header.push({text:i[r],tokens:this.lexer.inline(i[r]),header:!0,align:a.align[r]});for(let r of n)a.rows.push(is(r,a.header.length).map((c,o)=>({text:c,tokens:this.lexer.inline(c),header:!1,align:a.align[o]})));return a}}lheading(t){let e=this.rules.block.lheading.exec(t);if(e){let i=e[1].trim();return{type:"heading",raw:e[0],depth:e[2].charAt(0)==="="?1:2,text:i,tokens:this.lexer.inline(i)}}}paragraph(t){let e=this.rules.block.paragraph.exec(t);if(e){let i=e[1].charAt(e[1].length-1)===`
58
- `?e[1].slice(0,-1):e[1];return{type:"paragraph",raw:e[0],text:i,tokens:this.lexer.inline(i)}}}text(t){let e=this.rules.block.text.exec(t);if(e)return{type:"text",raw:e[0],text:e[0],tokens:this.lexer.inline(e[0])}}escape(t){let e=this.rules.inline.escape.exec(t);if(e)return{type:"escape",raw:e[0],text:e[1]}}tag(t){let e=this.rules.inline.tag.exec(t);if(e)return!this.lexer.state.inLink&&this.rules.other.startATag.test(e[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(e[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(e[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(e[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:e[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:e[0]}}link(t){let e=this.rules.inline.link.exec(t);if(e){let i=e[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(i)){if(!this.rules.other.endAngleBracket.test(i))return;let a=We(i.slice(0,-1),"\\");if((i.length-a.length)%2==0)return}else{let a=Kr(e[2],"()");if(a===-2)return;if(a>-1){let l=(e[0].indexOf("!")===0?5:4)+e[1].length+a;e[2]=e[2].substring(0,a),e[0]=e[0].substring(0,l).trim(),e[3]=""}}let s=e[2],n="";if(this.options.pedantic){let a=this.rules.other.pedanticHrefTitle.exec(s);a&&(s=a[1],n=a[3])}else n=e[3]?e[3].slice(1,-1):"";return s=s.trim(),this.rules.other.startAngleBracket.test(s)&&(s=this.options.pedantic&&!this.rules.other.endAngleBracket.test(i)?s.slice(1):s.slice(1,-1)),ss(e,{href:s&&s.replace(this.rules.inline.anyPunctuation,"$1"),title:n&&n.replace(this.rules.inline.anyPunctuation,"$1")},e[0],this.lexer,this.rules)}}reflink(t,e){let i;if((i=this.rules.inline.reflink.exec(t))||(i=this.rules.inline.nolink.exec(t))){let s=e[(i[2]||i[1]).replace(this.rules.other.multipleSpaceGlobal," ").toLowerCase()];if(!s){let n=i[0].charAt(0);return{type:"text",raw:n,text:n}}return ss(i,s,i[0],this.lexer,this.rules)}}emStrong(t,e,i=""){let s=this.rules.inline.emStrongLDelim.exec(t);if(!(!s||!s[1]&&!s[2]&&!s[3]&&!s[4]||s[4]&&i.match(this.rules.other.unicodeAlphaNumeric))&&(!(s[1]||s[3])||!i||this.rules.inline.punctuation.exec(i))){let n=[...s[0]].length-1,a,l,r=n,c=0,o=s[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(o.lastIndex=0,e=e.slice(-1*t.length+n);(s=o.exec(e))!=null;){if(a=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!a)continue;if(l=[...a].length,s[3]||s[4]){r+=l;continue}else if((s[5]||s[6])&&n%3&&!((n+l)%3)){c+=l;continue}if(r-=l,r>0)continue;l=Math.min(l,l+r+c);let d=[...s[0]][0].length,h=t.slice(0,n+s.index+d+l);if(Math.min(n,l)%2){let p=h.slice(1,-1);return{type:"em",raw:h,text:p,tokens:this.lexer.inlineTokens(p)}}let g=h.slice(2,-2);return{type:"strong",raw:h,text:g,tokens:this.lexer.inlineTokens(g)}}}}codespan(t){let e=this.rules.inline.code.exec(t);if(e){let i=e[2].replace(this.rules.other.newLineCharGlobal," "),s=this.rules.other.nonSpaceChar.test(i),n=this.rules.other.startingSpaceChar.test(i)&&this.rules.other.endingSpaceChar.test(i);return s&&n&&(i=i.substring(1,i.length-1)),{type:"codespan",raw:e[0],text:i}}}br(t){let e=this.rules.inline.br.exec(t);if(e)return{type:"br",raw:e[0]}}del(t,e,i=""){let s=this.rules.inline.delLDelim.exec(t);if(s&&(!s[1]||!i||this.rules.inline.punctuation.exec(i))){let n=[...s[0]].length-1,a,l,r=n,c=this.rules.inline.delRDelim;for(c.lastIndex=0,e=e.slice(-1*t.length+n);(s=c.exec(e))!=null;){if(a=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!a||(l=[...a].length,l!==n))continue;if(s[3]||s[4]){r+=l;continue}if(r-=l,r>0)continue;l=Math.min(l,l+r);let o=[...s[0]][0].length,d=t.slice(0,n+s.index+o+l),h=d.slice(n,-n);return{type:"del",raw:d,text:h,tokens:this.lexer.inlineTokens(h)}}}}autolink(t){let e=this.rules.inline.autolink.exec(t);if(e){let i,s;return e[2]==="@"?(i=e[1],s="mailto:"+i):(i=e[1],s=i),{type:"link",raw:e[0],text:i,href:s,tokens:[{type:"text",raw:i,text:i}]}}}url(t){var i;let e;if(e=this.rules.inline.url.exec(t)){let s,n;if(e[2]==="@")s=e[0],n="mailto:"+s;else{let a;do a=e[0],e[0]=((i=this.rules.inline._backpedal.exec(e[0]))==null?void 0:i[0])??"";while(a!==e[0]);s=e[0],n=e[1]==="www."?"http://"+e[0]:e[0]}return{type:"link",raw:e[0],text:s,href:n,tokens:[{type:"text",raw:s,text:s}]}}}inlineText(t){let e=this.rules.inline.text.exec(t);if(e){let i=this.lexer.state.inRawBlock;return{type:"text",raw:e[0],text:e[0],escaped:i}}}},de=class wi{constructor(e){M(this,"tokens");M(this,"options");M(this,"state");M(this,"inlineQueue");M(this,"tokenizer");this.tokens=[],this.tokens.links=Object.create(null),this.options=e||Ce,this.options.tokenizer=this.options.tokenizer||new lt,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let i={other:re,block:at.normal,inline:Ue.normal};this.options.pedantic?(i.block=at.pedantic,i.inline=Ue.pedantic):this.options.gfm&&(i.block=at.gfm,this.options.breaks?i.inline=Ue.breaks:i.inline=Ue.gfm),this.tokenizer.rules=i}static get rules(){return{block:at,inline:Ue}}static lex(e,i){return new wi(i).lex(e)}static lexInline(e,i){return new wi(i).inlineTokens(e)}lex(e){e=e.replace(re.carriageReturn,`
58
+ `?e[1].slice(0,-1):e[1];return{type:"paragraph",raw:e[0],text:i,tokens:this.lexer.inline(i)}}}text(t){let e=this.rules.block.text.exec(t);if(e)return{type:"text",raw:e[0],text:e[0],tokens:this.lexer.inline(e[0])}}escape(t){let e=this.rules.inline.escape.exec(t);if(e)return{type:"escape",raw:e[0],text:e[1]}}tag(t){let e=this.rules.inline.tag.exec(t);if(e)return!this.lexer.state.inLink&&this.rules.other.startATag.test(e[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(e[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(e[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(e[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:e[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:e[0]}}link(t){let e=this.rules.inline.link.exec(t);if(e){let i=e[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(i)){if(!this.rules.other.endAngleBracket.test(i))return;let a=Ue(i.slice(0,-1),"\\");if((i.length-a.length)%2==0)return}else{let a=Kr(e[2],"()");if(a===-2)return;if(a>-1){let l=(e[0].indexOf("!")===0?5:4)+e[1].length+a;e[2]=e[2].substring(0,a),e[0]=e[0].substring(0,l).trim(),e[3]=""}}let s=e[2],n="";if(this.options.pedantic){let a=this.rules.other.pedanticHrefTitle.exec(s);a&&(s=a[1],n=a[3])}else n=e[3]?e[3].slice(1,-1):"";return s=s.trim(),this.rules.other.startAngleBracket.test(s)&&(s=this.options.pedantic&&!this.rules.other.endAngleBracket.test(i)?s.slice(1):s.slice(1,-1)),ss(e,{href:s&&s.replace(this.rules.inline.anyPunctuation,"$1"),title:n&&n.replace(this.rules.inline.anyPunctuation,"$1")},e[0],this.lexer,this.rules)}}reflink(t,e){let i;if((i=this.rules.inline.reflink.exec(t))||(i=this.rules.inline.nolink.exec(t))){let s=e[(i[2]||i[1]).replace(this.rules.other.multipleSpaceGlobal," ").toLowerCase()];if(!s){let n=i[0].charAt(0);return{type:"text",raw:n,text:n}}return ss(i,s,i[0],this.lexer,this.rules)}}emStrong(t,e,i=""){let s=this.rules.inline.emStrongLDelim.exec(t);if(!(!s||!s[1]&&!s[2]&&!s[3]&&!s[4]||s[4]&&i.match(this.rules.other.unicodeAlphaNumeric))&&(!(s[1]||s[3])||!i||this.rules.inline.punctuation.exec(i))){let n=[...s[0]].length-1,a,l,r=n,c=0,o=s[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(o.lastIndex=0,e=e.slice(-1*t.length+n);(s=o.exec(e))!=null;){if(a=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!a)continue;if(l=[...a].length,s[3]||s[4]){r+=l;continue}else if((s[5]||s[6])&&n%3&&!((n+l)%3)){c+=l;continue}if(r-=l,r>0)continue;l=Math.min(l,l+r+c);let u=[...s[0]][0].length,h=t.slice(0,n+s.index+u+l);if(Math.min(n,l)%2){let p=h.slice(1,-1);return{type:"em",raw:h,text:p,tokens:this.lexer.inlineTokens(p)}}let g=h.slice(2,-2);return{type:"strong",raw:h,text:g,tokens:this.lexer.inlineTokens(g)}}}}codespan(t){let e=this.rules.inline.code.exec(t);if(e){let i=e[2].replace(this.rules.other.newLineCharGlobal," "),s=this.rules.other.nonSpaceChar.test(i),n=this.rules.other.startingSpaceChar.test(i)&&this.rules.other.endingSpaceChar.test(i);return s&&n&&(i=i.substring(1,i.length-1)),{type:"codespan",raw:e[0],text:i}}}br(t){let e=this.rules.inline.br.exec(t);if(e)return{type:"br",raw:e[0]}}del(t,e,i=""){let s=this.rules.inline.delLDelim.exec(t);if(s&&(!s[1]||!i||this.rules.inline.punctuation.exec(i))){let n=[...s[0]].length-1,a,l,r=n,c=this.rules.inline.delRDelim;for(c.lastIndex=0,e=e.slice(-1*t.length+n);(s=c.exec(e))!=null;){if(a=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!a||(l=[...a].length,l!==n))continue;if(s[3]||s[4]){r+=l;continue}if(r-=l,r>0)continue;l=Math.min(l,l+r);let o=[...s[0]][0].length,u=t.slice(0,n+s.index+o+l),h=u.slice(n,-n);return{type:"del",raw:u,text:h,tokens:this.lexer.inlineTokens(h)}}}}autolink(t){let e=this.rules.inline.autolink.exec(t);if(e){let i,s;return e[2]==="@"?(i=e[1],s="mailto:"+i):(i=e[1],s=i),{type:"link",raw:e[0],text:i,href:s,tokens:[{type:"text",raw:i,text:i}]}}}url(t){var i;let e;if(e=this.rules.inline.url.exec(t)){let s,n;if(e[2]==="@")s=e[0],n="mailto:"+s;else{let a;do a=e[0],e[0]=((i=this.rules.inline._backpedal.exec(e[0]))==null?void 0:i[0])??"";while(a!==e[0]);s=e[0],n=e[1]==="www."?"http://"+e[0]:e[0]}return{type:"link",raw:e[0],text:s,href:n,tokens:[{type:"text",raw:s,text:s}]}}}inlineText(t){let e=this.rules.inline.text.exec(t);if(e){let i=this.lexer.state.inRawBlock;return{type:"text",raw:e[0],text:e[0],escaped:i}}}},de=class wi{constructor(e){C(this,"tokens");C(this,"options");C(this,"state");C(this,"inlineQueue");C(this,"tokenizer");this.tokens=[],this.tokens.links=Object.create(null),this.options=e||Ce,this.options.tokenizer=this.options.tokenizer||new ot,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let i={other:re,block:lt.normal,inline:Ve.normal};this.options.pedantic?(i.block=lt.pedantic,i.inline=Ve.pedantic):this.options.gfm&&(i.block=lt.gfm,this.options.breaks?i.inline=Ve.breaks:i.inline=Ve.gfm),this.tokenizer.rules=i}static get rules(){return{block:lt,inline:Ve}}static lex(e,i){return new wi(i).lex(e)}static lexInline(e,i){return new wi(i).inlineTokens(e)}lex(e){e=e.replace(re.carriageReturn,`
59
59
  `),this.blockTokens(e,this.tokens);for(let i=0;i<this.inlineQueue.length;i++){let s=this.inlineQueue[i];this.inlineTokens(s.src,s.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,i=[],s=!1){var n,a,l;for(this.tokenizer.lexer=this,this.options.pedantic&&(e=e.replace(re.tabCharGlobal," ").replace(re.spaceLine,""));e;){let r;if((a=(n=this.options.extensions)==null?void 0:n.block)!=null&&a.some(o=>(r=o.call({lexer:this},e,i))?(e=e.substring(r.raw.length),i.push(r),!0):!1))continue;if(r=this.tokenizer.space(e)){e=e.substring(r.raw.length);let o=i.at(-1);r.raw.length===1&&o!==void 0?o.raw+=`
60
60
  `:i.push(r);continue}if(r=this.tokenizer.code(e)){e=e.substring(r.raw.length);let o=i.at(-1);(o==null?void 0:o.type)==="paragraph"||(o==null?void 0:o.type)==="text"?(o.raw+=(o.raw.endsWith(`
61
61
  `)?"":`
@@ -63,13 +63,13 @@ ${d}`:d;let h=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTo
63
63
  `+r.text,this.inlineQueue.at(-1).src=o.text):i.push(r);continue}if(r=this.tokenizer.fences(e)){e=e.substring(r.raw.length),i.push(r);continue}if(r=this.tokenizer.heading(e)){e=e.substring(r.raw.length),i.push(r);continue}if(r=this.tokenizer.hr(e)){e=e.substring(r.raw.length),i.push(r);continue}if(r=this.tokenizer.blockquote(e)){e=e.substring(r.raw.length),i.push(r);continue}if(r=this.tokenizer.list(e)){e=e.substring(r.raw.length),i.push(r);continue}if(r=this.tokenizer.html(e)){e=e.substring(r.raw.length),i.push(r);continue}if(r=this.tokenizer.def(e)){e=e.substring(r.raw.length);let o=i.at(-1);(o==null?void 0:o.type)==="paragraph"||(o==null?void 0:o.type)==="text"?(o.raw+=(o.raw.endsWith(`
64
64
  `)?"":`
65
65
  `)+r.raw,o.text+=`
66
- `+r.raw,this.inlineQueue.at(-1).src=o.text):this.tokens.links[r.tag]||(this.tokens.links[r.tag]={href:r.href,title:r.title},i.push(r));continue}if(r=this.tokenizer.table(e)){e=e.substring(r.raw.length),i.push(r);continue}if(r=this.tokenizer.lheading(e)){e=e.substring(r.raw.length),i.push(r);continue}let c=e;if((l=this.options.extensions)!=null&&l.startBlock){let o=1/0,d=e.slice(1),h;this.options.extensions.startBlock.forEach(g=>{h=g.call({lexer:this},d),typeof h=="number"&&h>=0&&(o=Math.min(o,h))}),o<1/0&&o>=0&&(c=e.substring(0,o+1))}if(this.state.top&&(r=this.tokenizer.paragraph(c))){let o=i.at(-1);s&&(o==null?void 0:o.type)==="paragraph"?(o.raw+=(o.raw.endsWith(`
66
+ `+r.raw,this.inlineQueue.at(-1).src=o.text):this.tokens.links[r.tag]||(this.tokens.links[r.tag]={href:r.href,title:r.title},i.push(r));continue}if(r=this.tokenizer.table(e)){e=e.substring(r.raw.length),i.push(r);continue}if(r=this.tokenizer.lheading(e)){e=e.substring(r.raw.length),i.push(r);continue}let c=e;if((l=this.options.extensions)!=null&&l.startBlock){let o=1/0,u=e.slice(1),h;this.options.extensions.startBlock.forEach(g=>{h=g.call({lexer:this},u),typeof h=="number"&&h>=0&&(o=Math.min(o,h))}),o<1/0&&o>=0&&(c=e.substring(0,o+1))}if(this.state.top&&(r=this.tokenizer.paragraph(c))){let o=i.at(-1);s&&(o==null?void 0:o.type)==="paragraph"?(o.raw+=(o.raw.endsWith(`
67
67
  `)?"":`
68
68
  `)+r.raw,o.text+=`
69
69
  `+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=o.text):i.push(r),s=c.length!==e.length,e=e.substring(r.raw.length);continue}if(r=this.tokenizer.text(e)){e=e.substring(r.raw.length);let o=i.at(-1);(o==null?void 0:o.type)==="text"?(o.raw+=(o.raw.endsWith(`
70
70
  `)?"":`
71
71
  `)+r.raw,o.text+=`
72
- `+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=o.text):i.push(r);continue}if(e){let o="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(o);break}else throw Error(o)}}return this.state.top=!0,i}inline(e,i=[]){return this.inlineQueue.push({src:e,tokens:i}),i}inlineTokens(e,i=[]){var c,o,d,h,g;this.tokenizer.lexer=this;let s=e,n=null;if(this.tokens.links){let p=Object.keys(this.tokens.links);if(p.length>0)for(;(n=this.tokenizer.rules.inline.reflinkSearch.exec(s))!=null;)p.includes(n[0].slice(n[0].lastIndexOf("[")+1,-1))&&(s=s.slice(0,n.index)+"["+"a".repeat(n[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(n=this.tokenizer.rules.inline.anyPunctuation.exec(s))!=null;)s=s.slice(0,n.index)+"++"+s.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let a;for(;(n=this.tokenizer.rules.inline.blockSkip.exec(s))!=null;)a=n[2]?n[2].length:0,s=s.slice(0,n.index+a)+"["+"a".repeat(n[0].length-a-2)+"]"+s.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);s=((o=(c=this.options.hooks)==null?void 0:c.emStrongMask)==null?void 0:o.call({lexer:this},s))??s;let l=!1,r="";for(;e;){l||(r=""),l=!1;let p;if((h=(d=this.options.extensions)==null?void 0:d.inline)!=null&&h.some(b=>(p=b.call({lexer:this},e,i))?(e=e.substring(p.raw.length),i.push(p),!0):!1))continue;if(p=this.tokenizer.escape(e)){e=e.substring(p.raw.length),i.push(p);continue}if(p=this.tokenizer.tag(e)){e=e.substring(p.raw.length),i.push(p);continue}if(p=this.tokenizer.link(e)){e=e.substring(p.raw.length),i.push(p);continue}if(p=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(p.raw.length);let b=i.at(-1);p.type==="text"&&(b==null?void 0:b.type)==="text"?(b.raw+=p.raw,b.text+=p.text):i.push(p);continue}if(p=this.tokenizer.emStrong(e,s,r)){e=e.substring(p.raw.length),i.push(p);continue}if(p=this.tokenizer.codespan(e)){e=e.substring(p.raw.length),i.push(p);continue}if(p=this.tokenizer.br(e)){e=e.substring(p.raw.length),i.push(p);continue}if(p=this.tokenizer.del(e,s,r)){e=e.substring(p.raw.length),i.push(p);continue}if(p=this.tokenizer.autolink(e)){e=e.substring(p.raw.length),i.push(p);continue}if(!this.state.inLink&&(p=this.tokenizer.url(e))){e=e.substring(p.raw.length),i.push(p);continue}let u=e;if((g=this.options.extensions)!=null&&g.startInline){let b=1/0,y=e.slice(1),N;this.options.extensions.startInline.forEach(H=>{N=H.call({lexer:this},y),typeof N=="number"&&N>=0&&(b=Math.min(b,N))}),b<1/0&&b>=0&&(u=e.substring(0,b+1))}if(p=this.tokenizer.inlineText(u)){e=e.substring(p.raw.length),p.raw.slice(-1)!=="_"&&(r=p.raw.slice(-1)),l=!0;let b=i.at(-1);(b==null?void 0:b.type)==="text"?(b.raw+=p.raw,b.text+=p.text):i.push(p);continue}if(e){let b="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(b);break}else throw Error(b)}}return i}},ot=class{constructor(t){M(this,"options");M(this,"parser");this.options=t||Ce}space(t){return""}code({text:t,lang:e,escaped:i}){var a;let s=(a=(e||"").match(re.notSpaceStart))==null?void 0:a[0],n=t.replace(re.endingNewline,"")+`
72
+ `+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=o.text):i.push(r);continue}if(e){let o="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(o);break}else throw Error(o)}}return this.state.top=!0,i}inline(e,i=[]){return this.inlineQueue.push({src:e,tokens:i}),i}inlineTokens(e,i=[]){var c,o,u,h,g;this.tokenizer.lexer=this;let s=e,n=null;if(this.tokens.links){let p=Object.keys(this.tokens.links);if(p.length>0)for(;(n=this.tokenizer.rules.inline.reflinkSearch.exec(s))!=null;)p.includes(n[0].slice(n[0].lastIndexOf("[")+1,-1))&&(s=s.slice(0,n.index)+"["+"a".repeat(n[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(n=this.tokenizer.rules.inline.anyPunctuation.exec(s))!=null;)s=s.slice(0,n.index)+"++"+s.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let a;for(;(n=this.tokenizer.rules.inline.blockSkip.exec(s))!=null;)a=n[2]?n[2].length:0,s=s.slice(0,n.index+a)+"["+"a".repeat(n[0].length-a-2)+"]"+s.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);s=((o=(c=this.options.hooks)==null?void 0:c.emStrongMask)==null?void 0:o.call({lexer:this},s))??s;let l=!1,r="";for(;e;){l||(r=""),l=!1;let p;if((h=(u=this.options.extensions)==null?void 0:u.inline)!=null&&h.some(b=>(p=b.call({lexer:this},e,i))?(e=e.substring(p.raw.length),i.push(p),!0):!1))continue;if(p=this.tokenizer.escape(e)){e=e.substring(p.raw.length),i.push(p);continue}if(p=this.tokenizer.tag(e)){e=e.substring(p.raw.length),i.push(p);continue}if(p=this.tokenizer.link(e)){e=e.substring(p.raw.length),i.push(p);continue}if(p=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(p.raw.length);let b=i.at(-1);p.type==="text"&&(b==null?void 0:b.type)==="text"?(b.raw+=p.raw,b.text+=p.text):i.push(p);continue}if(p=this.tokenizer.emStrong(e,s,r)){e=e.substring(p.raw.length),i.push(p);continue}if(p=this.tokenizer.codespan(e)){e=e.substring(p.raw.length),i.push(p);continue}if(p=this.tokenizer.br(e)){e=e.substring(p.raw.length),i.push(p);continue}if(p=this.tokenizer.del(e,s,r)){e=e.substring(p.raw.length),i.push(p);continue}if(p=this.tokenizer.autolink(e)){e=e.substring(p.raw.length),i.push(p);continue}if(!this.state.inLink&&(p=this.tokenizer.url(e))){e=e.substring(p.raw.length),i.push(p);continue}let d=e;if((g=this.options.extensions)!=null&&g.startInline){let b=1/0,y=e.slice(1),z;this.options.extensions.startInline.forEach(H=>{z=H.call({lexer:this},y),typeof z=="number"&&z>=0&&(b=Math.min(b,z))}),b<1/0&&b>=0&&(d=e.substring(0,b+1))}if(p=this.tokenizer.inlineText(d)){e=e.substring(p.raw.length),p.raw.slice(-1)!=="_"&&(r=p.raw.slice(-1)),l=!0;let b=i.at(-1);(b==null?void 0:b.type)==="text"?(b.raw+=p.raw,b.text+=p.text):i.push(p);continue}if(e){let b="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(b);break}else throw Error(b)}}return i}},ct=class{constructor(t){C(this,"options");C(this,"parser");this.options=t||Ce}space(t){return""}code({text:t,lang:e,escaped:i}){var a;let s=(a=(e||"").match(re.notSpaceStart))==null?void 0:a[0],n=t.replace(re.endingNewline,"")+`
73
73
  `;return s?'<pre><code class="language-'+fe(s)+'">'+(i?n:fe(n,!0))+`</code></pre>
74
74
  `:"<pre><code>"+(i?n:fe(n,!0))+`</code></pre>
75
75
  `}blockquote({tokens:t}){return`<blockquote>
@@ -87,8 +87,8 @@ ${this.parser.parse(t)}</blockquote>
87
87
  `}tablerow({text:t}){return`<tr>
88
88
  ${t}</tr>
89
89
  `}tablecell(t){let e=this.parser.parseInline(t.tokens),i=t.header?"th":"td";return(t.align?`<${i} align="${t.align}">`:`<${i}>`)+e+`</${i}>
90
- `}strong({tokens:t}){return`<strong>${this.parser.parseInline(t)}</strong>`}em({tokens:t}){return`<em>${this.parser.parseInline(t)}</em>`}codespan({text:t}){return`<code>${fe(t,!0)}</code>`}br(t){return"<br>"}del({tokens:t}){return`<del>${this.parser.parseInline(t)}</del>`}link({href:t,title:e,tokens:i}){let s=this.parser.parseInline(i),n=ts(t);if(n===null)return s;t=n;let a='<a href="'+t+'"';return e&&(a+=' title="'+fe(e)+'"'),a+=">"+s+"</a>",a}image({href:t,title:e,text:i,tokens:s}){s&&(i=this.parser.parseInline(s,this.parser.textRenderer));let n=ts(t);if(n===null)return fe(i);t=n;let a=`<img src="${t}" alt="${fe(i)}"`;return e&&(a+=` title="${fe(e)}"`),a+=">",a}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:fe(t.text)}},Qt=class{strong({text:t}){return t}em({text:t}){return t}codespan({text:t}){return t}del({text:t}){return t}html({text:t}){return t}text({text:t}){return t}link({text:t}){return""+t}image({text:t}){return""+t}br(){return""}checkbox({raw:t}){return t}},ue=class xi{constructor(e){M(this,"options");M(this,"renderer");M(this,"textRenderer");this.options=e||Ce,this.options.renderer=this.options.renderer||new ot,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Qt}static parse(e,i){return new xi(i).parse(e)}static parseInline(e,i){return new xi(i).parseInline(e)}parse(e){var s,n;this.renderer.parser=this;let i="";for(let a=0;a<e.length;a++){let l=e[a];if((n=(s=this.options.extensions)==null?void 0:s.renderers)!=null&&n[l.type]){let c=l,o=this.options.extensions.renderers[c.type].call({parser:this},c);if(o!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(c.type)){i+=o||"";continue}}let r=l;switch(r.type){case"space":i+=this.renderer.space(r);break;case"hr":i+=this.renderer.hr(r);break;case"heading":i+=this.renderer.heading(r);break;case"code":i+=this.renderer.code(r);break;case"table":i+=this.renderer.table(r);break;case"blockquote":i+=this.renderer.blockquote(r);break;case"list":i+=this.renderer.list(r);break;case"checkbox":i+=this.renderer.checkbox(r);break;case"html":i+=this.renderer.html(r);break;case"def":i+=this.renderer.def(r);break;case"paragraph":i+=this.renderer.paragraph(r);break;case"text":i+=this.renderer.text(r);break;default:{let c='Token with "'+r.type+'" type was not found.';if(this.options.silent)return console.error(c),"";throw Error(c)}}}return i}parseInline(e,i=this.renderer){var n,a;this.renderer.parser=this;let s="";for(let l=0;l<e.length;l++){let r=e[l];if((a=(n=this.options.extensions)==null?void 0:n.renderers)!=null&&a[r.type]){let o=this.options.extensions.renderers[r.type].call({parser:this},r);if(o!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(r.type)){s+=o||"";continue}}let c=r;switch(c.type){case"escape":s+=i.text(c);break;case"html":s+=i.html(c);break;case"link":s+=i.link(c);break;case"image":s+=i.image(c);break;case"checkbox":s+=i.checkbox(c);break;case"strong":s+=i.strong(c);break;case"em":s+=i.em(c);break;case"codespan":s+=i.codespan(c);break;case"br":s+=i.br(c);break;case"del":s+=i.del(c);break;case"text":s+=i.text(c);break;default:{let o='Token with "'+c.type+'" type was not found.';if(this.options.silent)return console.error(o),"";throw Error(o)}}}return s}},Ke=(ft=class{constructor(t){M(this,"options");M(this,"block");this.options=t||Ce}preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}emStrongMask(t){return t}provideLexer(){return this.block?de.lex:de.lexInline}provideParser(){return this.block?ue.parse:ue.parseInline}},M(ft,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),M(ft,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),ft),Me=new class{constructor(...t){M(this,"defaults",qt());M(this,"options",this.setOptions);M(this,"parse",this.parseMarkdown(!0));M(this,"parseInline",this.parseMarkdown(!1));M(this,"Parser",ue);M(this,"Renderer",ot);M(this,"TextRenderer",Qt);M(this,"Lexer",de);M(this,"Tokenizer",lt);M(this,"Hooks",Ke);this.use(...t)}walkTokens(t,e){var s,n;let i=[];for(let a of t)switch(i=i.concat(e.call(this,a)),a.type){case"table":{let l=a;for(let r of l.header)i=i.concat(this.walkTokens(r.tokens,e));for(let r of l.rows)for(let c of r)i=i.concat(this.walkTokens(c.tokens,e));break}case"list":{let l=a;i=i.concat(this.walkTokens(l.items,e));break}default:{let l=a;(n=(s=this.defaults.extensions)==null?void 0:s.childTokens)!=null&&n[l.type]?this.defaults.extensions.childTokens[l.type].forEach(r=>{let c=l[r].flat(1/0);i=i.concat(this.walkTokens(c,e))}):l.tokens&&(i=i.concat(this.walkTokens(l.tokens,e)))}}return i}use(...t){let e=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(i=>{let s={...i};if(s.async=this.defaults.async||s.async||!1,i.extensions&&(i.extensions.forEach(n=>{if(!n.name)throw Error("extension name required");if("renderer"in n){let a=e.renderers[n.name];a?e.renderers[n.name]=function(...l){let r=n.renderer.apply(this,l);return r===!1&&(r=a.apply(this,l)),r}:e.renderers[n.name]=n.renderer}if("tokenizer"in n){if(!n.level||n.level!=="block"&&n.level!=="inline")throw Error("extension level must be 'block' or 'inline'");let a=e[n.level];a?a.unshift(n.tokenizer):e[n.level]=[n.tokenizer],n.start&&(n.level==="block"?e.startBlock?e.startBlock.push(n.start):e.startBlock=[n.start]:n.level==="inline"&&(e.startInline?e.startInline.push(n.start):e.startInline=[n.start]))}"childTokens"in n&&n.childTokens&&(e.childTokens[n.name]=n.childTokens)}),s.extensions=e),i.renderer){let n=this.defaults.renderer||new ot(this.defaults);for(let a in i.renderer){if(!(a in n))throw Error(`renderer '${a}' does not exist`);if(["options","parser"].includes(a))continue;let l=a,r=i.renderer[l],c=n[l];n[l]=(...o)=>{let d=r.apply(n,o);return d===!1&&(d=c.apply(n,o)),d||""}}s.renderer=n}if(i.tokenizer){let n=this.defaults.tokenizer||new lt(this.defaults);for(let a in i.tokenizer){if(!(a in n))throw Error(`tokenizer '${a}' does not exist`);if(["options","rules","lexer"].includes(a))continue;let l=a,r=i.tokenizer[l],c=n[l];n[l]=(...o)=>{let d=r.apply(n,o);return d===!1&&(d=c.apply(n,o)),d}}s.tokenizer=n}if(i.hooks){let n=this.defaults.hooks||new Ke;for(let a in i.hooks){if(!(a in n))throw Error(`hook '${a}' does not exist`);if(["options","block"].includes(a))continue;let l=a,r=i.hooks[l],c=n[l];Ke.passThroughHooks.has(a)?n[l]=o=>{if(this.defaults.async&&Ke.passThroughHooksRespectAsync.has(a))return(async()=>{let h=await r.call(n,o);return c.call(n,h)})();let d=r.call(n,o);return c.call(n,d)}:n[l]=(...o)=>{if(this.defaults.async)return(async()=>{let h=await r.apply(n,o);return h===!1&&(h=await c.apply(n,o)),h})();let d=r.apply(n,o);return d===!1&&(d=c.apply(n,o)),d}}s.hooks=n}if(i.walkTokens){let n=this.defaults.walkTokens,a=i.walkTokens;s.walkTokens=function(l){let r=[];return r.push(a.call(this,l)),n&&(r=r.concat(n.call(this,l))),r}}this.defaults={...this.defaults,...s}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,e){return de.lex(t,e??this.defaults)}parser(t,e){return ue.parse(t,e??this.defaults)}parseMarkdown(t){return(e,i)=>{let s={...i},n={...this.defaults,...s},a=this.onError(!!n.silent,!!n.async);if(this.defaults.async===!0&&s.async===!1)return a(Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof e>"u"||e===null)return a(Error("marked(): input parameter is undefined or null"));if(typeof e!="string")return a(Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected"));if(n.hooks&&(n.hooks.options=n,n.hooks.block=t),n.async)return(async()=>{let l=n.hooks?await n.hooks.preprocess(e):e,r=await(n.hooks?await n.hooks.provideLexer():t?de.lex:de.lexInline)(l,n),c=n.hooks?await n.hooks.processAllTokens(r):r;n.walkTokens&&await Promise.all(this.walkTokens(c,n.walkTokens));let o=await(n.hooks?await n.hooks.provideParser():t?ue.parse:ue.parseInline)(c,n);return n.hooks?await n.hooks.postprocess(o):o})().catch(a);try{n.hooks&&(e=n.hooks.preprocess(e));let l=(n.hooks?n.hooks.provideLexer():t?de.lex:de.lexInline)(e,n);n.hooks&&(l=n.hooks.processAllTokens(l)),n.walkTokens&&this.walkTokens(l,n.walkTokens);let r=(n.hooks?n.hooks.provideParser():t?ue.parse:ue.parseInline)(l,n);return n.hooks&&(r=n.hooks.postprocess(r)),r}catch(l){return a(l)}}}onError(t,e){return i=>{if(i.message+=`
91
- Please report this to https://github.com/markedjs/marked.`,t){let s="<p>An error occurred:</p><pre>"+fe(i.message+"",!0)+"</pre>";return e?Promise.resolve(s):s}if(e)return Promise.reject(i);throw i}}};function Z(t,e){return Me.parse(t,e)}Z.options=Z.setOptions=function(t){return Me.setOptions(t),Z.defaults=Me.defaults,Oi(Z.defaults),Z},Z.getDefaults=qt,Z.defaults=Ce,Z.use=function(...t){return Me.use(...t),Z.defaults=Me.defaults,Oi(Z.defaults),Z},Z.walkTokens=function(t,e){return Me.walkTokens(t,e)},Z.parseInline=Me.parseInline,Z.Parser=ue,Z.parser=ue.parse,Z.Renderer=ot,Z.TextRenderer=Qt,Z.Lexer=de,Z.lexer=de.lex,Z.Tokenizer=lt,Z.Hooks=Ke,Z.parse=Z,Z.options,Z.setOptions,Z.use,Z.walkTokens,Z.parseInline,ue.parse,de.lex;function ns(...t){return t.filter(Boolean).join(" ")}function Xr(t,e){return t?e?{...t,...e}:t:e}function Gr({animation:t,index:e,as:i,asChild:s,className:n,style:a,children:l}){let r=ns("fragment",t,n);if(s){let c;try{c=C.Children.only(l)}catch{throw Error("Fragment with asChild expects exactly one React element child.")}if(!(0,C.isValidElement)(c)||c.type===C.Fragment)throw Error("Fragment with asChild expects exactly one non-Fragment React element child.");let o={className:ns(c.props.className,r),style:Xr(c.props.style,a)};return e!==void 0&&(o["data-fragment-index"]=e),(0,C.cloneElement)(c,o)}return(0,S.jsx)(i??"span",{className:r,style:a,"data-fragment-index":e,children:l})}function Jr({cells:t,getType:e}){let i=[],s=null,n=null,a=()=>{let c={subslides:[]};return i.push(c),s=c,n=null,c},l=()=>{let c=s??a(),o={blocks:[]};return c.subslides.push(o),n=o,o},r=c=>{let o=n??l(),d={isFragment:c,cells:[]};return o.blocks.push(d),d};for(let c of t)switch(e(c)){case"skip":break;case"slide":a(),l(),r(!1).cells.push(c);break;case"sub-slide":l(),r(!1).cells.push(c);break;case"fragment":r(!0).cells.push(c);break}return{stacks:i}}function Yr({composition:t,cells:e,getId:i}){let s=new Map,n=new Map,a=new Map;for(let[l,r]of e.entries())a.set(i(r),l);return t.stacks.forEach((l,r)=>{l.subslides.forEach((c,o)=>{var g;let d;for(let p of c.blocks){if(p.isFragment)break;let u=p.cells.at(-1);u&&(d=i(u))}if(d===void 0){let p=(g=c.blocks[0])==null?void 0:g.cells[0];p&&(d=i(p))}if(d!==void 0){let p=a.get(d);p!=null&&n.set(`${r},${o},-1`,p)}let h=-1;for(let p of c.blocks)if(p.isFragment){h++;for(let b of p.cells)s.set(i(b),{h:r,v:o,f:h});let u=p.cells.at(-1);if(u){let b=a.get(i(u));b!=null&&n.set(`${r},${o},${h}`,b)}}else for(let u of p.cells)s.set(i(u),{h:r,v:o,f:-1})})}),{cellToTarget:s,targetToCellIndex:n}}function ea(t,e){let{h:i,v:s,f:n}=e;return t.get(`${i},${s},${n}`)??t.get(`${i},${s},-1`)}function rs({start:t,stop:e,step:i,cells:s,cellToTarget:n,getId:a}){for(let l=t;l!==e;l+=i){let r=n.get(a(s[l]));if(r)return r}}function ta({activeIndex:t,cells:e,cellToTarget:i,getId:s}){if(t==null)return;let n=e[t];return n?i.get(s(n))||(rs({start:t-1,stop:-1,step:-1,cells:e,cellToTarget:i,getId:s})??rs({start:t+1,stop:e.length,step:1,cells:e,cellToTarget:i,getId:s})):void 0}function ia(t,e){let i={h:e.h,v:e.v,f:e.f>=0?e.f:-1};return t.h===i.h&&t.v===i.v&&t.f===i.f?null:i}const as=t=>{let e=(0,me.c)(70),{cell:i}=t,[s]=cn(),{theme:n}=eo(),a=so(i.id),l=on(Dl),r=(0,C.useRef)(null),c=(0,C.useRef)(null),[o,d]=(0,C.useState)(),h=s.display.cell_output,g=i.output!=null,p=i.runElapsedTimeMs??i.lastExecutionTime,u;e[0]!==i.errored||e[1]!==i.interrupted||e[2]!==i.status||e[3]!==i.stopped||e[4]!==p?(u=Pl({executionTime:p,status:i.status,errored:i.errored,interrupted:i.interrupted,stopped:i.stopped}),e[0]=i.errored,e[1]=i.interrupted,e[2]=i.status,e[3]=i.stopped,e[4]=p,e[5]=u):u=e[5];let b=u,y,N;e[6]!==i.config.disabled||e[7]!==i.edited||e[8]!==i.errored||e[9]!==i.interrupted||e[10]!==i.staleInputs||e[11]!==i.status||e[12]!==i.stopped?(y=Il({edited:i.edited,interrupted:i.interrupted,staleInputs:i.staleInputs,disabled:i.config.disabled,status:i.status}),N=It("marimo-cell","hover-actions-parent","interactive",Ll({needsRun:y,errored:i.errored,stopped:i.stopped,disabled:i.config.disabled,status:i.status})),e[6]=i.config.disabled,e[7]=i.edited,e[8]=i.errored,e[9]=i.interrupted,e[10]=i.staleInputs,e[11]=i.status,e[12]=i.stopped,e[13]=y,e[14]=N):(y=e[13],N=e[14]);let H=N,L;e[15]!==i.id||e[16]!==i.output||e[17]!==i.status?(L=(0,S.jsx)(Mt,{cellId:i.id,status:i.status,output:i.output}),e[15]=i.id,e[16]=i.output,e[17]=i.status,e[18]=L):L=e[18];let A=L,x=i.config.disabled??!1,q=i.runElapsedTimeMs??i.lastExecutionTime,z;e[19]!==i.edited||e[20]!==i.interrupted||e[21]!==i.lastRunStartTimestamp||e[22]!==i.runStartTimestamp||e[23]!==i.staleInputs||e[24]!==i.status||e[25]!==x||e[26]!==q||e[27]!==b?(z=(0,S.jsx)(to,{editing:!0,status:i.status,disabled:x,staleInputs:i.staleInputs,edited:i.edited,interrupted:i.interrupted,elapsedTime:q,runStartTimestamp:i.runStartTimestamp,lastRunStartTimestamp:i.lastRunStartTimestamp,uninstantiated:b}),e[19]=i.edited,e[20]=i.interrupted,e[21]=i.lastRunStartTimestamp,e[22]=i.runStartTimestamp,e[23]=i.staleInputs,e[24]=i.status,e[25]=x,e[26]=q,e[27]=b,e[28]=z):z=e[28];let $;e[29]!==i.config||e[30]!==i.edited||e[31]!==i.status||e[32]!==l.state||e[33]!==y||e[34]!==a?($=(0,S.jsx)(Jl,{edited:i.edited,status:i.status,needsRun:y,connectionState:l.state,config:i.config,onClick:a}),e[29]=i.config,e[30]=i.edited,e[31]=i.status,e[32]=l.state,e[33]=y,e[34]=a,e[35]=$):$=e[35];let _;e[36]!==i.status||e[37]!==l.state?(_=(0,S.jsx)(Gl,{status:i.status,connectionState:l.state}),e[36]=i.status,e[37]=l.state,e[38]=_):_=e[38];let T;e[39]!==$||e[40]!==_?(T=(0,S.jsxs)("div",{className:"flex items-center shadow-none gap-1",children:[$,_]}),e[39]=$,e[40]=_,e[41]=T):T=e[41];let Q;e[42]!==T||e[43]!==z?(Q=(0,S.jsxs)("div",{className:"absolute top-1 right-2 z-10 flex items-center gap-1.5",children:[z,T]}),e[42]=T,e[43]=z,e[44]=Q):Q=e[44];let B=Q,v;e[45]!==i.id||e[46]!==i.name?(v=Ul(i.id,i.name),e[45]=i.id,e[46]=i.name,e[47]=v):v=e[47];let R;e[48]===Symbol.for("react.memo_cache_sentinel")?(R=ce=>{r.current=ce},e[48]=R):R=e[48];let P;e[49]!==i.code||e[50]!==i.config||e[51]!==i.id||e[52]!==i.serializedEditorState||e[53]!==i.status||e[54]!==h||e[55]!==g||e[56]!==o||e[57]!==a||e[58]!==n||e[59]!==s?(P=(0,S.jsx)(Ql,{theme:n,showPlaceholder:!1,id:i.id,code:i.code,config:i.config,status:i.status,serializedEditorState:i.serializedEditorState,runCell:a,setEditorView:R,userConfig:s,editorViewRef:r,editorViewParentRef:c,hasOutput:g,showHiddenCode:sa,languageAdapter:o,setLanguageAdapter:d,showLanguageToggles:!1,inlineAiTooltip:!1,outputArea:h,tooltipParentSelector:".reveal-viewport"}),e[49]=i.code,e[50]=i.config,e[51]=i.id,e[52]=i.serializedEditorState,e[53]=i.status,e[54]=h,e[55]=g,e[56]=o,e[57]=a,e[58]=n,e[59]=s,e[60]=P):P=e[60];let W;e[61]!==H||e[62]!==v||e[63]!==P||e[64]!==B?(W=(0,S.jsxs)("div",{className:H,...v,children:[P,B]}),e[61]=H,e[62]=v,e[63]=P,e[64]=B,e[65]=W):W=e[65];let te=W,F=h==="above"&&A,V=h==="below"&&A,K;return e[66]!==te||e[67]!==F||e[68]!==V?(K=(0,S.jsxs)(S.Fragment,{children:[F,te,V]}),e[66]=te,e[67]=F,e[68]=V,e[69]=K):K=e[69],K},ls=t=>{let e=(0,me.c)(11),{cell:i}=t,[s]=cn(),n=s.display.cell_output,a=Cl(i.code.trim()).type==="sql"?"sql":"python",l;e[0]!==i.id||e[1]!==i.output||e[2]!==i.status?(l=(0,S.jsx)(Mt,{cellId:i.id,status:i.status,output:i.output}),e[0]=i.id,e[1]=i.output,e[2]=i.status,e[3]=l):l=e[3];let r=l,c;e[4]!==i.code||e[5]!==a?(c=(0,S.jsx)("div",{className:"marimo-cell",children:(0,S.jsx)(Yl,{code:i.code,language:a,showHideCode:!1})}),e[4]=i.code,e[5]=a,e[6]=c):c=e[6];let o=c,d=n==="above"&&r,h=n==="below"&&r,g;return e[7]!==o||e[8]!==d||e[9]!==h?(g=(0,S.jsxs)(S.Fragment,{children:[d,o,h]}),e[7]=o,e[8]=d,e[9]=h,e[10]=g):g=e[10],g};function sa(){}var na=ki(),ra=300;const aa=t=>{var z;let e=(0,na.c)(25),{layout:i,setLayout:s,cellId:n,className:a}=t,l=n?((z=i.cells.get(n))==null?void 0:z.speakerNotes)??"":"",[r,c]=(0,C.useState)(l),o=(0,C.useRef)(!1),d;e[0]!==i||e[1]!==s?(d=($,_)=>{o.current=!1;let T=i.cells.get($);if(((T==null?void 0:T.speakerNotes)??"")===_)return;let Q=new Map(i.cells);Q.set($,{...T,speakerNotes:_}),s({...i,cells:Q})},e[0]=i,e[1]=s,e[2]=d):d=e[2];let h=io(Be(d),ra),g=(0,C.useRef)(n),p,u;e[3]!==n||e[4]!==r||e[5]!==l||e[6]!==h?(p=()=>{if(g.current!==n){h.flush(),o.current=!1,c(l),g.current=n;return}!o.current&&l!==r&&c(l)},u=[n,l,r,h],e[3]=n,e[4]=r,e[5]=l,e[6]=h,e[7]=p,e[8]=u):(p=e[7],u=e[8]),(0,C.useEffect)(p,u);let b,y;e[9]===h?(b=e[10],y=e[11]):(b=()=>()=>{h.flush()},y=[h],e[9]=h,e[10]=b,e[11]=y),(0,C.useEffect)(b,y);let N;e[12]!==n||e[13]!==h?(N=$=>{c($),n&&(o.current=!0,h(n,$))},e[12]=n,e[13]=h,e[14]=N):N=e[14];let H=N,L;e[15]===a?L=e[16]:(L=It("h-full min-h-0 flex flex-col bg-muted/40 dark:bg-muted/20 border-t",a),e[15]=a,e[16]=L);let A;e[17]===Symbol.for("react.memo_cache_sentinel")?(A=(0,S.jsxs)("header",{className:"flex items-center gap-1.5 px-3 h-8 shrink-0 text-xs font-medium uppercase tracking-wide text-muted-foreground",children:[(0,S.jsx)(Te,{className:"h-3.5 w-3.5"}),(0,S.jsx)("span",{children:"Speaker notes"})]}),e[17]=A):A=e[17];let x;e[18]!==n||e[19]!==r||e[20]!==H?(x=(0,S.jsx)("div",{className:"flex-1 min-h-0 p-2",children:n?(0,S.jsx)("textarea",{value:r,onChange:$=>H($.target.value),onClick:yi.stopPropagation(),placeholder:"Add notes for this slide. Visible to you in speaker view (press S during presentation).",className:It("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"),"aria-label":"Speaker notes for the current slide"}):(0,S.jsx)("div",{className:"h-full flex items-center justify-center text-xs text-muted-foreground",children:"Select a slide to add notes."})}),e[18]=n,e[19]=r,e[20]=H,e[21]=x):x=e[21];let q;return e[22]!==L||e[23]!==x?(q=(0,S.jsxs)("section",{className:L,"aria-label":"Speaker notes",onKeyDown:la,children:[A,x]}),e[22]=L,e[23]=x,e[24]=q):q=e[24],q};function la(t){return t.stopPropagation()}var oa=`
90
+ `}strong({tokens:t}){return`<strong>${this.parser.parseInline(t)}</strong>`}em({tokens:t}){return`<em>${this.parser.parseInline(t)}</em>`}codespan({text:t}){return`<code>${fe(t,!0)}</code>`}br(t){return"<br>"}del({tokens:t}){return`<del>${this.parser.parseInline(t)}</del>`}link({href:t,title:e,tokens:i}){let s=this.parser.parseInline(i),n=ts(t);if(n===null)return s;t=n;let a='<a href="'+t+'"';return e&&(a+=' title="'+fe(e)+'"'),a+=">"+s+"</a>",a}image({href:t,title:e,text:i,tokens:s}){s&&(i=this.parser.parseInline(s,this.parser.textRenderer));let n=ts(t);if(n===null)return fe(i);t=n;let a=`<img src="${t}" alt="${fe(i)}"`;return e&&(a+=` title="${fe(e)}"`),a+=">",a}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:fe(t.text)}},Yt=class{strong({text:t}){return t}em({text:t}){return t}codespan({text:t}){return t}del({text:t}){return t}html({text:t}){return t}text({text:t}){return t}link({text:t}){return""+t}image({text:t}){return""+t}br(){return""}checkbox({raw:t}){return t}},ue=class xi{constructor(e){C(this,"options");C(this,"renderer");C(this,"textRenderer");this.options=e||Ce,this.options.renderer=this.options.renderer||new ct,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Yt}static parse(e,i){return new xi(i).parse(e)}static parseInline(e,i){return new xi(i).parseInline(e)}parse(e){var s,n;this.renderer.parser=this;let i="";for(let a=0;a<e.length;a++){let l=e[a];if((n=(s=this.options.extensions)==null?void 0:s.renderers)!=null&&n[l.type]){let c=l,o=this.options.extensions.renderers[c.type].call({parser:this},c);if(o!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(c.type)){i+=o||"";continue}}let r=l;switch(r.type){case"space":i+=this.renderer.space(r);break;case"hr":i+=this.renderer.hr(r);break;case"heading":i+=this.renderer.heading(r);break;case"code":i+=this.renderer.code(r);break;case"table":i+=this.renderer.table(r);break;case"blockquote":i+=this.renderer.blockquote(r);break;case"list":i+=this.renderer.list(r);break;case"checkbox":i+=this.renderer.checkbox(r);break;case"html":i+=this.renderer.html(r);break;case"def":i+=this.renderer.def(r);break;case"paragraph":i+=this.renderer.paragraph(r);break;case"text":i+=this.renderer.text(r);break;default:{let c='Token with "'+r.type+'" type was not found.';if(this.options.silent)return console.error(c),"";throw Error(c)}}}return i}parseInline(e,i=this.renderer){var n,a;this.renderer.parser=this;let s="";for(let l=0;l<e.length;l++){let r=e[l];if((a=(n=this.options.extensions)==null?void 0:n.renderers)!=null&&a[r.type]){let o=this.options.extensions.renderers[r.type].call({parser:this},r);if(o!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(r.type)){s+=o||"";continue}}let c=r;switch(c.type){case"escape":s+=i.text(c);break;case"html":s+=i.html(c);break;case"link":s+=i.link(c);break;case"image":s+=i.image(c);break;case"checkbox":s+=i.checkbox(c);break;case"strong":s+=i.strong(c);break;case"em":s+=i.em(c);break;case"codespan":s+=i.codespan(c);break;case"br":s+=i.br(c);break;case"del":s+=i.del(c);break;case"text":s+=i.text(c);break;default:{let o='Token with "'+c.type+'" type was not found.';if(this.options.silent)return console.error(o),"";throw Error(o)}}}return s}},We=(vt=class{constructor(t){C(this,"options");C(this,"block");this.options=t||Ce}preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}emStrongMask(t){return t}provideLexer(){return this.block?de.lex:de.lexInline}provideParser(){return this.block?ue.parse:ue.parseInline}},C(vt,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),C(vt,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),vt),Me=new class{constructor(...t){C(this,"defaults",Ot());C(this,"options",this.setOptions);C(this,"parse",this.parseMarkdown(!0));C(this,"parseInline",this.parseMarkdown(!1));C(this,"Parser",ue);C(this,"Renderer",ct);C(this,"TextRenderer",Yt);C(this,"Lexer",de);C(this,"Tokenizer",ot);C(this,"Hooks",We);this.use(...t)}walkTokens(t,e){var s,n;let i=[];for(let a of t)switch(i=i.concat(e.call(this,a)),a.type){case"table":{let l=a;for(let r of l.header)i=i.concat(this.walkTokens(r.tokens,e));for(let r of l.rows)for(let c of r)i=i.concat(this.walkTokens(c.tokens,e));break}case"list":{let l=a;i=i.concat(this.walkTokens(l.items,e));break}default:{let l=a;(n=(s=this.defaults.extensions)==null?void 0:s.childTokens)!=null&&n[l.type]?this.defaults.extensions.childTokens[l.type].forEach(r=>{let c=l[r].flat(1/0);i=i.concat(this.walkTokens(c,e))}):l.tokens&&(i=i.concat(this.walkTokens(l.tokens,e)))}}return i}use(...t){let e=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(i=>{let s={...i};if(s.async=this.defaults.async||s.async||!1,i.extensions&&(i.extensions.forEach(n=>{if(!n.name)throw Error("extension name required");if("renderer"in n){let a=e.renderers[n.name];a?e.renderers[n.name]=function(...l){let r=n.renderer.apply(this,l);return r===!1&&(r=a.apply(this,l)),r}:e.renderers[n.name]=n.renderer}if("tokenizer"in n){if(!n.level||n.level!=="block"&&n.level!=="inline")throw Error("extension level must be 'block' or 'inline'");let a=e[n.level];a?a.unshift(n.tokenizer):e[n.level]=[n.tokenizer],n.start&&(n.level==="block"?e.startBlock?e.startBlock.push(n.start):e.startBlock=[n.start]:n.level==="inline"&&(e.startInline?e.startInline.push(n.start):e.startInline=[n.start]))}"childTokens"in n&&n.childTokens&&(e.childTokens[n.name]=n.childTokens)}),s.extensions=e),i.renderer){let n=this.defaults.renderer||new ct(this.defaults);for(let a in i.renderer){if(!(a in n))throw Error(`renderer '${a}' does not exist`);if(["options","parser"].includes(a))continue;let l=a,r=i.renderer[l],c=n[l];n[l]=(...o)=>{let u=r.apply(n,o);return u===!1&&(u=c.apply(n,o)),u||""}}s.renderer=n}if(i.tokenizer){let n=this.defaults.tokenizer||new ot(this.defaults);for(let a in i.tokenizer){if(!(a in n))throw Error(`tokenizer '${a}' does not exist`);if(["options","rules","lexer"].includes(a))continue;let l=a,r=i.tokenizer[l],c=n[l];n[l]=(...o)=>{let u=r.apply(n,o);return u===!1&&(u=c.apply(n,o)),u}}s.tokenizer=n}if(i.hooks){let n=this.defaults.hooks||new We;for(let a in i.hooks){if(!(a in n))throw Error(`hook '${a}' does not exist`);if(["options","block"].includes(a))continue;let l=a,r=i.hooks[l],c=n[l];We.passThroughHooks.has(a)?n[l]=o=>{if(this.defaults.async&&We.passThroughHooksRespectAsync.has(a))return(async()=>{let h=await r.call(n,o);return c.call(n,h)})();let u=r.call(n,o);return c.call(n,u)}:n[l]=(...o)=>{if(this.defaults.async)return(async()=>{let h=await r.apply(n,o);return h===!1&&(h=await c.apply(n,o)),h})();let u=r.apply(n,o);return u===!1&&(u=c.apply(n,o)),u}}s.hooks=n}if(i.walkTokens){let n=this.defaults.walkTokens,a=i.walkTokens;s.walkTokens=function(l){let r=[];return r.push(a.call(this,l)),n&&(r=r.concat(n.call(this,l))),r}}this.defaults={...this.defaults,...s}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,e){return de.lex(t,e??this.defaults)}parser(t,e){return ue.parse(t,e??this.defaults)}parseMarkdown(t){return(e,i)=>{let s={...i},n={...this.defaults,...s},a=this.onError(!!n.silent,!!n.async);if(this.defaults.async===!0&&s.async===!1)return a(Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof e>"u"||e===null)return a(Error("marked(): input parameter is undefined or null"));if(typeof e!="string")return a(Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected"));if(n.hooks&&(n.hooks.options=n,n.hooks.block=t),n.async)return(async()=>{let l=n.hooks?await n.hooks.preprocess(e):e,r=await(n.hooks?await n.hooks.provideLexer():t?de.lex:de.lexInline)(l,n),c=n.hooks?await n.hooks.processAllTokens(r):r;n.walkTokens&&await Promise.all(this.walkTokens(c,n.walkTokens));let o=await(n.hooks?await n.hooks.provideParser():t?ue.parse:ue.parseInline)(c,n);return n.hooks?await n.hooks.postprocess(o):o})().catch(a);try{n.hooks&&(e=n.hooks.preprocess(e));let l=(n.hooks?n.hooks.provideLexer():t?de.lex:de.lexInline)(e,n);n.hooks&&(l=n.hooks.processAllTokens(l)),n.walkTokens&&this.walkTokens(l,n.walkTokens);let r=(n.hooks?n.hooks.provideParser():t?ue.parse:ue.parseInline)(l,n);return n.hooks&&(r=n.hooks.postprocess(r)),r}catch(l){return a(l)}}}onError(t,e){return i=>{if(i.message+=`
91
+ Please report this to https://github.com/markedjs/marked.`,t){let s="<p>An error occurred:</p><pre>"+fe(i.message+"",!0)+"</pre>";return e?Promise.resolve(s):s}if(e)return Promise.reject(i);throw i}}};function Z(t,e){return Me.parse(t,e)}Z.options=Z.setOptions=function(t){return Me.setOptions(t),Z.defaults=Me.defaults,Oi(Z.defaults),Z},Z.getDefaults=Ot,Z.defaults=Ce,Z.use=function(...t){return Me.use(...t),Z.defaults=Me.defaults,Oi(Z.defaults),Z},Z.walkTokens=function(t,e){return Me.walkTokens(t,e)},Z.parseInline=Me.parseInline,Z.Parser=ue,Z.parser=ue.parse,Z.Renderer=ct,Z.TextRenderer=Yt,Z.Lexer=de,Z.lexer=de.lex,Z.Tokenizer=ot,Z.Hooks=We,Z.parse=Z,Z.options,Z.setOptions,Z.use,Z.walkTokens,Z.parseInline,ue.parse,de.lex;function ns(...t){return t.filter(Boolean).join(" ")}function Xr(t,e){return t?e?{...t,...e}:t:e}function Yr({animation:t,index:e,as:i,asChild:s,className:n,style:a,children:l}){let r=ns("fragment",t,n);if(s){let c;try{c=L.Children.only(l)}catch{throw Error("Fragment with asChild expects exactly one React element child.")}if(!(0,L.isValidElement)(c)||c.type===L.Fragment)throw Error("Fragment with asChild expects exactly one non-Fragment React element child.");let o={className:ns(c.props.className,r),style:Xr(c.props.style,a)};return e!==void 0&&(o["data-fragment-index"]=e),(0,L.cloneElement)(c,o)}return(0,S.jsx)(i??"span",{className:r,style:a,"data-fragment-index":e,children:l})}function Jr({cells:t,getType:e}){let i=[],s=null,n=null,a=()=>{let c={subslides:[]};return i.push(c),s=c,n=null,c},l=()=>{let c=s??a(),o={blocks:[]};return c.subslides.push(o),n=o,o},r=c=>{let o=n??l(),u={isFragment:c,cells:[]};return o.blocks.push(u),u};for(let c of t)switch(e(c)){case"skip":break;case"slide":a(),l(),r(!1).cells.push(c);break;case"sub-slide":l(),r(!1).cells.push(c);break;case"fragment":r(!0).cells.push(c);break}return{stacks:i}}function Gr({composition:t,cells:e,getId:i}){let s=new Map,n=new Map,a=new Map;for(let[l,r]of e.entries())a.set(i(r),l);return t.stacks.forEach((l,r)=>{l.subslides.forEach((c,o)=>{var g;let u;for(let p of c.blocks){if(p.isFragment)break;let d=p.cells.at(-1);d&&(u=i(d))}if(u===void 0){let p=(g=c.blocks[0])==null?void 0:g.cells[0];p&&(u=i(p))}if(u!==void 0){let p=a.get(u);p!=null&&n.set(`${r},${o},-1`,p)}let h=-1;for(let p of c.blocks)if(p.isFragment){h++;for(let b of p.cells)s.set(i(b),{h:r,v:o,f:h});let d=p.cells.at(-1);if(d){let b=a.get(i(d));b!=null&&n.set(`${r},${o},${h}`,b)}}else for(let d of p.cells)s.set(i(d),{h:r,v:o,f:-1})})}),{cellToTarget:s,targetToCellIndex:n}}function ea(t,e){let{h:i,v:s,f:n}=e;return t.get(`${i},${s},${n}`)??t.get(`${i},${s},-1`)}function rs({start:t,stop:e,step:i,cells:s,cellToTarget:n,getId:a}){for(let l=t;l!==e;l+=i){let r=n.get(a(s[l]));if(r)return r}}function ta({activeIndex:t,cells:e,cellToTarget:i,getId:s}){if(t==null)return;let n=e[t];return n?i.get(s(n))||(rs({start:t-1,stop:-1,step:-1,cells:e,cellToTarget:i,getId:s})??rs({start:t+1,stop:e.length,step:1,cells:e,cellToTarget:i,getId:s})):void 0}function ia(t,e){let i={h:e.h,v:e.v,f:e.f>=0?e.f:-1};return t.h===i.h&&t.v===i.v&&t.f===i.f?null:i}const as=t=>{let e=(0,me.c)(70),{cell:i}=t,[s]=cn(),{theme:n}=to(),a=no(i.id),l=on(Dl),r=(0,L.useRef)(null),c=(0,L.useRef)(null),[o,u]=(0,L.useState)(),h=s.display.cell_output,g=i.output!=null,p=i.runElapsedTimeMs??i.lastExecutionTime,d;e[0]!==i.errored||e[1]!==i.interrupted||e[2]!==i.status||e[3]!==i.stopped||e[4]!==p?(d=Pl({executionTime:p,status:i.status,errored:i.errored,interrupted:i.interrupted,stopped:i.stopped}),e[0]=i.errored,e[1]=i.interrupted,e[2]=i.status,e[3]=i.stopped,e[4]=p,e[5]=d):d=e[5];let b=d,y,z;e[6]!==i.config.disabled||e[7]!==i.edited||e[8]!==i.errored||e[9]!==i.interrupted||e[10]!==i.staleInputs||e[11]!==i.status||e[12]!==i.stopped?(y=Il({edited:i.edited,interrupted:i.interrupted,staleInputs:i.staleInputs,disabled:i.config.disabled,status:i.status}),z=Nt("marimo-cell","hover-actions-parent","interactive",Ll({needsRun:y,errored:i.errored,stopped:i.stopped,disabled:i.config.disabled,status:i.status})),e[6]=i.config.disabled,e[7]=i.edited,e[8]=i.errored,e[9]=i.interrupted,e[10]=i.staleInputs,e[11]=i.status,e[12]=i.stopped,e[13]=y,e[14]=z):(y=e[13],z=e[14]);let H=z,N;e[15]!==i.id||e[16]!==i.output||e[17]!==i.status?(N=(0,S.jsx)(zt,{cellId:i.id,status:i.status,output:i.output}),e[15]=i.id,e[16]=i.output,e[17]=i.status,e[18]=N):N=e[18];let A=N,x=i.config.disabled??!1,j=i.runElapsedTimeMs??i.lastExecutionTime,M;e[19]!==i.edited||e[20]!==i.interrupted||e[21]!==i.lastRunStartTimestamp||e[22]!==i.runStartTimestamp||e[23]!==i.staleInputs||e[24]!==i.status||e[25]!==x||e[26]!==j||e[27]!==b?(M=(0,S.jsx)(io,{editing:!0,status:i.status,disabled:x,staleInputs:i.staleInputs,edited:i.edited,interrupted:i.interrupted,elapsedTime:j,runStartTimestamp:i.runStartTimestamp,lastRunStartTimestamp:i.lastRunStartTimestamp,uninstantiated:b}),e[19]=i.edited,e[20]=i.interrupted,e[21]=i.lastRunStartTimestamp,e[22]=i.runStartTimestamp,e[23]=i.staleInputs,e[24]=i.status,e[25]=x,e[26]=j,e[27]=b,e[28]=M):M=e[28];let B;e[29]!==i.config||e[30]!==i.edited||e[31]!==i.status||e[32]!==l.state||e[33]!==y||e[34]!==a?(B=(0,S.jsx)(Gl,{edited:i.edited,status:i.status,needsRun:y,connectionState:l.state,config:i.config,onClick:a}),e[29]=i.config,e[30]=i.edited,e[31]=i.status,e[32]=l.state,e[33]=y,e[34]=a,e[35]=B):B=e[35];let _;e[36]!==i.status||e[37]!==l.state?(_=(0,S.jsx)(Jl,{status:i.status,connectionState:l.state}),e[36]=i.status,e[37]=l.state,e[38]=_):_=e[38];let T;e[39]!==B||e[40]!==_?(T=(0,S.jsxs)("div",{className:"flex items-center shadow-none gap-1",children:[B,_]}),e[39]=B,e[40]=_,e[41]=T):T=e[41];let U;e[42]!==T||e[43]!==M?(U=(0,S.jsxs)("div",{className:"absolute top-1 right-2 z-10 flex items-center gap-1.5",children:[M,T]}),e[42]=T,e[43]=M,e[44]=U):U=e[44];let $=U,v;e[45]!==i.id||e[46]!==i.name?(v=Wl(i.id,i.name),e[45]=i.id,e[46]=i.name,e[47]=v):v=e[47];let R;e[48]===Symbol.for("react.memo_cache_sentinel")?(R=ce=>{r.current=ce},e[48]=R):R=e[48];let I;e[49]!==i.code||e[50]!==i.config||e[51]!==i.id||e[52]!==i.serializedEditorState||e[53]!==i.status||e[54]!==h||e[55]!==g||e[56]!==o||e[57]!==a||e[58]!==n||e[59]!==s?(I=(0,S.jsx)(Xl,{theme:n,showPlaceholder:!1,id:i.id,code:i.code,config:i.config,status:i.status,serializedEditorState:i.serializedEditorState,runCell:a,setEditorView:R,userConfig:s,editorViewRef:r,editorViewParentRef:c,hasOutput:g,showHiddenCode:sa,languageAdapter:o,setLanguageAdapter:u,showLanguageToggles:!1,inlineAiTooltip:!1,outputArea:h,tooltipParentSelector:".reveal-viewport"}),e[49]=i.code,e[50]=i.config,e[51]=i.id,e[52]=i.serializedEditorState,e[53]=i.status,e[54]=h,e[55]=g,e[56]=o,e[57]=a,e[58]=n,e[59]=s,e[60]=I):I=e[60];let W;e[61]!==H||e[62]!==v||e[63]!==I||e[64]!==$?(W=(0,S.jsxs)("div",{className:H,...v,children:[I,$]}),e[61]=H,e[62]=v,e[63]=I,e[64]=$,e[65]=W):W=e[65];let G=W,te=h==="above"&&A,q=h==="below"&&A,V;return e[66]!==G||e[67]!==te||e[68]!==q?(V=(0,S.jsxs)(S.Fragment,{children:[te,G,q]}),e[66]=G,e[67]=te,e[68]=q,e[69]=V):V=e[69],V},ls=t=>{let e=(0,me.c)(11),{cell:i}=t,[s]=cn(),n=s.display.cell_output,a=Cl(i.code.trim()).type==="sql"?"sql":"python",l;e[0]!==i.id||e[1]!==i.output||e[2]!==i.status?(l=(0,S.jsx)(zt,{cellId:i.id,status:i.status,output:i.output}),e[0]=i.id,e[1]=i.output,e[2]=i.status,e[3]=l):l=e[3];let r=l,c;e[4]!==i.code||e[5]!==a?(c=(0,S.jsx)("div",{className:"marimo-cell",children:(0,S.jsx)(eo,{code:i.code,language:a,showHideCode:!1})}),e[4]=i.code,e[5]=a,e[6]=c):c=e[6];let o=c,u=n==="above"&&r,h=n==="below"&&r,g;return e[7]!==o||e[8]!==u||e[9]!==h?(g=(0,S.jsxs)(S.Fragment,{children:[u,o,h]}),e[7]=o,e[8]=u,e[9]=h,e[10]=g):g=e[10],g};function sa(){}var na=ki(),ra=300;const aa=t=>{var M;let e=(0,na.c)(25),{layout:i,setLayout:s,cellId:n,className:a}=t,l=n?((M=i.cells.get(n))==null?void 0:M.speakerNotes)??"":"",[r,c]=(0,L.useState)(l),o=(0,L.useRef)(!1),u;e[0]!==i||e[1]!==s?(u=(B,_)=>{o.current=!1;let T=i.cells.get(B);if(((T==null?void 0:T.speakerNotes)??"")===_)return;let U=new Map(i.cells);U.set(B,{...T,speakerNotes:_}),s({...i,cells:U})},e[0]=i,e[1]=s,e[2]=u):u=e[2];let h=so(Be(u),ra),g=(0,L.useRef)(n),p,d;e[3]!==n||e[4]!==r||e[5]!==l||e[6]!==h?(p=()=>{if(g.current!==n){h.flush(),o.current=!1,c(l),g.current=n;return}!o.current&&l!==r&&c(l)},d=[n,l,r,h],e[3]=n,e[4]=r,e[5]=l,e[6]=h,e[7]=p,e[8]=d):(p=e[7],d=e[8]),(0,L.useEffect)(p,d);let b,y;e[9]===h?(b=e[10],y=e[11]):(b=()=>()=>{h.flush()},y=[h],e[9]=h,e[10]=b,e[11]=y),(0,L.useEffect)(b,y);let z;e[12]!==n||e[13]!==h?(z=B=>{c(B),n&&(o.current=!0,h(n,B))},e[12]=n,e[13]=h,e[14]=z):z=e[14];let H=z,N;e[15]===a?N=e[16]:(N=Nt("h-full min-h-0 flex flex-col bg-muted/40 dark:bg-muted/20 border-t",a),e[15]=a,e[16]=N);let A;e[17]===Symbol.for("react.memo_cache_sentinel")?(A=(0,S.jsxs)("header",{className:"flex items-center gap-1.5 px-3 h-8 shrink-0 text-xs font-medium uppercase tracking-wide text-muted-foreground",children:[(0,S.jsx)(Te,{className:"h-3.5 w-3.5"}),(0,S.jsx)("span",{children:"Speaker notes"})]}),e[17]=A):A=e[17];let x;e[18]!==n||e[19]!==r||e[20]!==H?(x=(0,S.jsx)("div",{className:"flex-1 min-h-0 p-2",children:n?(0,S.jsx)("textarea",{value:r,onChange:B=>H(B.target.value),onClick:yi.stopPropagation(),placeholder:"Add notes for this slide. Visible to you in speaker view (press S during presentation).",className:Nt("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"),"aria-label":"Speaker notes for the current slide"}):(0,S.jsx)("div",{className:"h-full flex items-center justify-center text-xs text-muted-foreground",children:"Select a slide to add notes."})}),e[18]=n,e[19]=r,e[20]=H,e[21]=x):x=e[21];let j;return e[22]!==N||e[23]!==x?(j=(0,S.jsxs)("section",{className:N,"aria-label":"Speaker notes",onKeyDown:la,children:[A,x]}),e[22]=N,e[23]=x,e[24]=j):j=e[24],j};function la(t){return t.stopPropagation()}var oa=`
92
92
 
93
93
  ---
94
94
 
@@ -96,7 +96,7 @@ Please report this to https://github.com/markedjs/marked.`,t){let s="<p>An error
96
96
 
97
97
  `),da=(t,e)=>{let i=t.blocks.map(l=>ca(l.cells,e)),s=t.blocks.map((l,r)=>l.isFragment?"":i[r]).filter(l=>l.length>0).join(`
98
98
 
99
- `),n=new Map,a=[];return t.blocks.forEach((l,r)=>{if(!l.isFragment)return;let c=i[r];c.length>0&&a.push(c);let o=[s,...a].filter(d=>d.length>0).join(oa);o.length>0&&n.set(r,o)}),{slideLevel:s,cumulativeByBlock:n}};var ua=`<!--
99
+ `),n=new Map,a=[];return t.blocks.forEach((l,r)=>{if(!l.isFragment)return;let c=i[r];c.length>0&&a.push(c);let o=[s,...a].filter(u=>u.length>0).join(oa);o.length>0&&n.set(r,o)}),{slideLevel:s,cumulativeByBlock:n}};var ua=`<!--
100
100
  NOTE: You need to build the notes plugin after making changes to this file.
101
101
  -->
102
102
  <html lang="en">
@@ -1006,32 +1006,32 @@ Please report this to https://github.com/markedjs/marked.`,t){let s="<p>An error
1006
1006
 
1007
1007
  <\/script>
1008
1008
  </body>
1009
- </html>`;function Xt(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Ne=Xt();function os(t){Ne=t}var ze={exec:()=>null};function O(t,e=""){let i=typeof t=="string"?t:t.source,s={replace:(n,a)=>{let l=typeof a=="string"?a:a.source;return l=l.replace(ae.caret,"$1"),i=i.replace(n,l),s},getRegex:()=>new RegExp(i,e)};return s}var ha=(()=>{try{return!0}catch{return!1}})(),ae={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:t=>RegExp(`^( {0,3}${t})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:t=>RegExp(`^ {0,${Math.min(3,t-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:t=>RegExp(`^ {0,${Math.min(3,t-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:t=>RegExp(`^ {0,${Math.min(3,t-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:t=>RegExp(`^ {0,${Math.min(3,t-1)}}#`),htmlBeginRegex:t=>RegExp(`^ {0,${Math.min(3,t-1)}}<(?:[a-z].*>|!--)`,"i"),blockquoteBeginRegex:t=>RegExp(`^ {0,${Math.min(3,t-1)}}>`)},pa=/^(?:[ \t]*(?:\n|$))+/,ga=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,ma=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Ze=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,fa=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Gt=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,cs=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,ds=O(cs).replace(/bull/g,Gt).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(),va=O(cs).replace(/bull/g,Gt).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(),Jt=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,ba=/^[^\n]+/,Yt=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,ka=O(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Yt).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),ya=O(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Gt).getRegex(),ct="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",ei=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,wa=O("^ {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",ei).replace("tag",ct).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),us=O(Jt).replace("hr",Ze).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",ct).getRegex(),ti={blockquote:O(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",us).getRegex(),code:ga,def:ka,fences:ma,heading:fa,hr:Ze,html:wa,lheading:ds,list:ya,newline:pa,paragraph:us,table:ze,text:ba},hs=O("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Ze).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",ct).getRegex(),xa={...ti,lheading:va,table:hs,paragraph:O(Jt).replace("hr",Ze).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",hs).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",ct).getRegex()},Sa={...ti,html:O(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",ei).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(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:ze,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:O(Jt).replace("hr",Ze).replace("heading",` *#{1,6} *[^
1010
- ]`).replace("lheading",ds).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Ea=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Ra=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,ps=/^( {2,}|\\)\n(?!\s*$)/,Aa=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,dt=/[\p{P}\p{S}]/u,ii=/[\s\p{P}\p{S}]/u,gs=/[^\s\p{P}\p{S}]/u,Ta=O(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,ii).getRegex(),ms=/(?!~)[\p{P}\p{S}]/u,La=/(?!~)[\s\p{P}\p{S}]/u,Pa=/(?:[^\s\p{P}\p{S}]|~)/u,fs=/(?![*_])[\p{P}\p{S}]/u,Ca=/(?![*_])[\s\p{P}\p{S}]/u,Ia=/(?:[^\s\p{P}\p{S}]|[*_])/u,Ma=O(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",ha?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),vs=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,Na=O(vs,"u").replace(/punct/g,dt).getRegex(),za=O(vs,"u").replace(/punct/g,ms).getRegex(),bs="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",$a=O(bs,"gu").replace(/notPunctSpace/g,gs).replace(/punctSpace/g,ii).replace(/punct/g,dt).getRegex(),Ba=O(bs,"gu").replace(/notPunctSpace/g,Pa).replace(/punctSpace/g,La).replace(/punct/g,ms).getRegex(),Da=O("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,gs).replace(/punctSpace/g,ii).replace(/punct/g,dt).getRegex(),Ha=O(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,fs).getRegex(),_a=O("^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)","gu").replace(/notPunctSpace/g,Ia).replace(/punctSpace/g,Ca).replace(/punct/g,fs).getRegex(),qa=O(/\\(punct)/,"gu").replace(/punct/g,dt).getRegex(),ja=O(/^<(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(),Oa=O(ei).replace("(?:-->|$)","-->").getRegex(),Fa=O("^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",Oa).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),ut=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,Va=O(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",ut).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),ks=O(/^!?\[(label)\]\[(ref)\]/).replace("label",ut).replace("ref",Yt).getRegex(),ys=O(/^!?\[(ref)\](?:\[\])?/).replace("ref",Yt).getRegex(),Ua=O("reflink|nolink(?!\\()","g").replace("reflink",ks).replace("nolink",ys).getRegex(),ws=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,si={_backpedal:ze,anyPunctuation:qa,autolink:ja,blockSkip:Ma,br:ps,code:Ra,del:ze,delLDelim:ze,delRDelim:ze,emStrongLDelim:Na,emStrongRDelimAst:$a,emStrongRDelimUnd:Da,escape:Ea,link:Va,nolink:ys,punctuation:Ta,reflink:ks,reflinkSearch:Ua,tag:Fa,text:Aa,url:ze},Wa={...si,link:O(/^!?\[(label)\]\((.*?)\)/).replace("label",ut).getRegex(),reflink:O(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",ut).getRegex()},ni={...si,emStrongRDelimAst:Ba,emStrongLDelim:za,delLDelim:Ha,delRDelim:_a,url:O(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",ws).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:O(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",ws).getRegex()},Ka={...ni,br:O(ps).replace("{2,}","*").getRegex(),text:O(ni.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},ht={normal:ti,gfm:xa,pedantic:Sa},Qe={normal:si,gfm:ni,breaks:Ka,pedantic:Wa},Za={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},xs=t=>Za[t];function ve(t,e){if(e){if(ae.escapeTest.test(t))return t.replace(ae.escapeReplace,xs)}else if(ae.escapeTestNoEncode.test(t))return t.replace(ae.escapeReplaceNoEncode,xs);return t}function Ss(t){try{t=encodeURI(t).replace(ae.percentDecode,"%")}catch{return null}return t}function Es(t,e){var n;let i=t.replace(ae.findPipe,(a,l,r)=>{let c=!1,o=l;for(;--o>=0&&r[o]==="\\";)c=!c;return c?"|":" |"}).split(ae.splitPipe),s=0;if(i[0].trim()||i.shift(),i.length>0&&!((n=i.at(-1))!=null&&n.trim())&&i.pop(),e)if(i.length>e)i.splice(e);else for(;i.length<e;)i.push("");for(;s<i.length;s++)i[s]=i[s].trim().replace(ae.slashPipe,"|");return i}function Xe(t,e,i){let s=t.length;if(s===0)return"";let n=0;for(;n<s&&t.charAt(s-n-1)===e;)n++;return t.slice(0,s-n)}function Qa(t,e){if(t.indexOf(e[1])===-1)return-1;let i=0;for(let s=0;s<t.length;s++)if(t[s]==="\\")s++;else if(t[s]===e[0])i++;else if(t[s]===e[1]&&(i--,i<0))return s;return i>0?-2:-1}function Xa(t,e=0){let i=e,s="";for(let n of t)if(n===" "){let a=4-i%4;s+=" ".repeat(a),i+=a}else s+=n,i++;return s}function Rs(t,e,i,s,n){let a=e.href,l=e.title||null,r=t[1].replace(n.other.outputLinkReplace,"$1");s.state.inLink=!0;let c={type:t[0].charAt(0)==="!"?"image":"link",raw:i,href:a,title:l,text:r,tokens:s.inlineTokens(r)};return s.state.inLink=!1,c}function Ga(t,e,i){let s=t.match(i.other.indentCodeCompensation);if(s===null)return e;let n=s[1];return e.split(`
1009
+ </html>`;function Jt(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Ne=Jt();function os(t){Ne=t}var ze={exec:()=>null};function F(t,e=""){let i=typeof t=="string"?t:t.source,s={replace:(n,a)=>{let l=typeof a=="string"?a:a.source;return l=l.replace(ae.caret,"$1"),i=i.replace(n,l),s},getRegex:()=>new RegExp(i,e)};return s}var ha=(()=>{try{return!0}catch{return!1}})(),ae={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:t=>RegExp(`^( {0,3}${t})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:t=>RegExp(`^ {0,${Math.min(3,t-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:t=>RegExp(`^ {0,${Math.min(3,t-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:t=>RegExp(`^ {0,${Math.min(3,t-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:t=>RegExp(`^ {0,${Math.min(3,t-1)}}#`),htmlBeginRegex:t=>RegExp(`^ {0,${Math.min(3,t-1)}}<(?:[a-z].*>|!--)`,"i"),blockquoteBeginRegex:t=>RegExp(`^ {0,${Math.min(3,t-1)}}>`)},pa=/^(?:[ \t]*(?:\n|$))+/,ga=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,ma=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Ke=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,fa=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Gt=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,cs=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,ds=F(cs).replace(/bull/g,Gt).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(),va=F(cs).replace(/bull/g,Gt).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(),ei=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,ba=/^[^\n]+/,ti=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,ka=F(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",ti).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),ya=F(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Gt).getRegex(),dt="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",ii=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,wa=F("^ {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",ii).replace("tag",dt).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),us=F(ei).replace("hr",Ke).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",dt).getRegex(),si={blockquote:F(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",us).getRegex(),code:ga,def:ka,fences:ma,heading:fa,hr:Ke,html:wa,lheading:ds,list:ya,newline:pa,paragraph:us,table:ze,text:ba},hs=F("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Ke).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",dt).getRegex(),xa={...si,lheading:va,table:hs,paragraph:F(ei).replace("hr",Ke).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",hs).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",dt).getRegex()},Sa={...si,html:F(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",ii).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(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:ze,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:F(ei).replace("hr",Ke).replace("heading",` *#{1,6} *[^
1010
+ ]`).replace("lheading",ds).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Ea=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Ra=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,ps=/^( {2,}|\\)\n(?!\s*$)/,Aa=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,ut=/[\p{P}\p{S}]/u,ni=/[\s\p{P}\p{S}]/u,gs=/[^\s\p{P}\p{S}]/u,Ta=F(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,ni).getRegex(),ms=/(?!~)[\p{P}\p{S}]/u,La=/(?!~)[\s\p{P}\p{S}]/u,Pa=/(?:[^\s\p{P}\p{S}]|~)/u,fs=/(?![*_])[\p{P}\p{S}]/u,Ca=/(?![*_])[\s\p{P}\p{S}]/u,Ia=/(?:[^\s\p{P}\p{S}]|[*_])/u,Ma=F(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",ha?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),vs=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,Na=F(vs,"u").replace(/punct/g,ut).getRegex(),za=F(vs,"u").replace(/punct/g,ms).getRegex(),bs="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",$a=F(bs,"gu").replace(/notPunctSpace/g,gs).replace(/punctSpace/g,ni).replace(/punct/g,ut).getRegex(),Ba=F(bs,"gu").replace(/notPunctSpace/g,Pa).replace(/punctSpace/g,La).replace(/punct/g,ms).getRegex(),Da=F("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,gs).replace(/punctSpace/g,ni).replace(/punct/g,ut).getRegex(),Ha=F(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,fs).getRegex(),_a=F("^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)","gu").replace(/notPunctSpace/g,Ia).replace(/punctSpace/g,Ca).replace(/punct/g,fs).getRegex(),qa=F(/\\(punct)/,"gu").replace(/punct/g,ut).getRegex(),ja=F(/^<(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(),Oa=F(ii).replace("(?:-->|$)","-->").getRegex(),Fa=F("^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",Oa).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),ht=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,Va=F(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",ht).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),ks=F(/^!?\[(label)\]\[(ref)\]/).replace("label",ht).replace("ref",ti).getRegex(),ys=F(/^!?\[(ref)\](?:\[\])?/).replace("ref",ti).getRegex(),Ua=F("reflink|nolink(?!\\()","g").replace("reflink",ks).replace("nolink",ys).getRegex(),ws=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,ri={_backpedal:ze,anyPunctuation:qa,autolink:ja,blockSkip:Ma,br:ps,code:Ra,del:ze,delLDelim:ze,delRDelim:ze,emStrongLDelim:Na,emStrongRDelimAst:$a,emStrongRDelimUnd:Da,escape:Ea,link:Va,nolink:ys,punctuation:Ta,reflink:ks,reflinkSearch:Ua,tag:Fa,text:Aa,url:ze},Wa={...ri,link:F(/^!?\[(label)\]\((.*?)\)/).replace("label",ht).getRegex(),reflink:F(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",ht).getRegex()},ai={...ri,emStrongRDelimAst:Ba,emStrongLDelim:za,delLDelim:Ha,delRDelim:_a,url:F(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",ws).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:F(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",ws).getRegex()},Ka={...ai,br:F(ps).replace("{2,}","*").getRegex(),text:F(ai.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},pt={normal:si,gfm:xa,pedantic:Sa},Ze={normal:ri,gfm:ai,breaks:Ka,pedantic:Wa},Za={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},xs=t=>Za[t];function ve(t,e){if(e){if(ae.escapeTest.test(t))return t.replace(ae.escapeReplace,xs)}else if(ae.escapeTestNoEncode.test(t))return t.replace(ae.escapeReplaceNoEncode,xs);return t}function Ss(t){try{t=encodeURI(t).replace(ae.percentDecode,"%")}catch{return null}return t}function Es(t,e){var n;let i=t.replace(ae.findPipe,(a,l,r)=>{let c=!1,o=l;for(;--o>=0&&r[o]==="\\";)c=!c;return c?"|":" |"}).split(ae.splitPipe),s=0;if(i[0].trim()||i.shift(),i.length>0&&!((n=i.at(-1))!=null&&n.trim())&&i.pop(),e)if(i.length>e)i.splice(e);else for(;i.length<e;)i.push("");for(;s<i.length;s++)i[s]=i[s].trim().replace(ae.slashPipe,"|");return i}function Qe(t,e,i){let s=t.length;if(s===0)return"";let n=0;for(;n<s&&t.charAt(s-n-1)===e;)n++;return t.slice(0,s-n)}function Qa(t,e){if(t.indexOf(e[1])===-1)return-1;let i=0;for(let s=0;s<t.length;s++)if(t[s]==="\\")s++;else if(t[s]===e[0])i++;else if(t[s]===e[1]&&(i--,i<0))return s;return i>0?-2:-1}function Xa(t,e=0){let i=e,s="";for(let n of t)if(n===" "){let a=4-i%4;s+=" ".repeat(a),i+=a}else s+=n,i++;return s}function Rs(t,e,i,s,n){let a=e.href,l=e.title||null,r=t[1].replace(n.other.outputLinkReplace,"$1");s.state.inLink=!0;let c={type:t[0].charAt(0)==="!"?"image":"link",raw:i,href:a,title:l,text:r,tokens:s.inlineTokens(r)};return s.state.inLink=!1,c}function Ya(t,e,i){let s=t.match(i.other.indentCodeCompensation);if(s===null)return e;let n=s[1];return e.split(`
1011
1011
  `).map(a=>{let l=a.match(i.other.beginningSpace);if(l===null)return a;let[r]=l;return r.length>=n.length?a.slice(n.length):a}).join(`
1012
- `)}var pt=class{constructor(t){M(this,"options");M(this,"rules");M(this,"lexer");this.options=t||Ne}space(t){let e=this.rules.block.newline.exec(t);if(e&&e[0].length>0)return{type:"space",raw:e[0]}}code(t){let e=this.rules.block.code.exec(t);if(e){let i=e[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:e[0],codeBlockStyle:"indented",text:this.options.pedantic?i:Xe(i,`
1013
- `)}}}fences(t){let e=this.rules.block.fences.exec(t);if(e){let i=e[0],s=Ga(i,e[3]||"",this.rules);return{type:"code",raw:i,lang:e[2]?e[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):e[2],text:s}}}heading(t){let e=this.rules.block.heading.exec(t);if(e){let i=e[2].trim();if(this.rules.other.endingHash.test(i)){let s=Xe(i,"#");(this.options.pedantic||!s||this.rules.other.endingSpaceChar.test(s))&&(i=s.trim())}return{type:"heading",raw:e[0],depth:e[1].length,text:i,tokens:this.lexer.inline(i)}}}hr(t){let e=this.rules.block.hr.exec(t);if(e)return{type:"hr",raw:Xe(e[0],`
1014
- `)}}blockquote(t){let e=this.rules.block.blockquote.exec(t);if(e){let i=Xe(e[0],`
1012
+ `)}var gt=class{constructor(t){C(this,"options");C(this,"rules");C(this,"lexer");this.options=t||Ne}space(t){let e=this.rules.block.newline.exec(t);if(e&&e[0].length>0)return{type:"space",raw:e[0]}}code(t){let e=this.rules.block.code.exec(t);if(e){let i=e[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:e[0],codeBlockStyle:"indented",text:this.options.pedantic?i:Qe(i,`
1013
+ `)}}}fences(t){let e=this.rules.block.fences.exec(t);if(e){let i=e[0],s=Ya(i,e[3]||"",this.rules);return{type:"code",raw:i,lang:e[2]?e[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):e[2],text:s}}}heading(t){let e=this.rules.block.heading.exec(t);if(e){let i=e[2].trim();if(this.rules.other.endingHash.test(i)){let s=Qe(i,"#");(this.options.pedantic||!s||this.rules.other.endingSpaceChar.test(s))&&(i=s.trim())}return{type:"heading",raw:e[0],depth:e[1].length,text:i,tokens:this.lexer.inline(i)}}}hr(t){let e=this.rules.block.hr.exec(t);if(e)return{type:"hr",raw:Qe(e[0],`
1014
+ `)}}blockquote(t){let e=this.rules.block.blockquote.exec(t);if(e){let i=Qe(e[0],`
1015
1015
  `).split(`
1016
1016
  `),s="",n="",a=[];for(;i.length>0;){let l=!1,r=[],c;for(c=0;c<i.length;c++)if(this.rules.other.blockquoteStart.test(i[c]))r.push(i[c]),l=!0;else if(!l)r.push(i[c]);else break;i=i.slice(c);let o=r.join(`
1017
- `),d=o.replace(this.rules.other.blockquoteSetextReplace,`
1017
+ `),u=o.replace(this.rules.other.blockquoteSetextReplace,`
1018
1018
  $1`).replace(this.rules.other.blockquoteSetextReplace2,"");s=s?`${s}
1019
1019
  ${o}`:o,n=n?`${n}
1020
- ${d}`:d;let h=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(d,a,!0),this.lexer.state.top=h,i.length===0)break;let g=a.at(-1);if((g==null?void 0:g.type)==="code")break;if((g==null?void 0:g.type)==="blockquote"){let p=g,u=p.raw+`
1020
+ ${u}`:u;let h=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(u,a,!0),this.lexer.state.top=h,i.length===0)break;let g=a.at(-1);if((g==null?void 0:g.type)==="code")break;if((g==null?void 0:g.type)==="blockquote"){let p=g,d=p.raw+`
1021
1021
  `+i.join(`
1022
- `),b=this.blockquote(u);a[a.length-1]=b,s=s.substring(0,s.length-p.raw.length)+b.raw,n=n.substring(0,n.length-p.text.length)+b.text;break}else if((g==null?void 0:g.type)==="list"){let p=g,u=p.raw+`
1022
+ `),b=this.blockquote(d);a[a.length-1]=b,s=s.substring(0,s.length-p.raw.length)+b.raw,n=n.substring(0,n.length-p.text.length)+b.text;break}else if((g==null?void 0:g.type)==="list"){let p=g,d=p.raw+`
1023
1023
  `+i.join(`
1024
- `),b=this.list(u);a[a.length-1]=b,s=s.substring(0,s.length-g.raw.length)+b.raw,n=n.substring(0,n.length-p.raw.length)+b.raw,i=u.substring(a.at(-1).raw.length).split(`
1025
- `);continue}}return{type:"blockquote",raw:s,tokens:a,text:n}}}list(t){var i,s;let e=this.rules.block.list.exec(t);if(e){let n=e[1].trim(),a=n.length>1,l={type:"list",raw:"",ordered:a,start:a?+n.slice(0,-1):"",loose:!1,items:[]};n=a?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=a?n:"[*+-]");let r=this.rules.other.listItemRegex(n),c=!1;for(;t;){let d=!1,h="",g="";if(!(e=r.exec(t))||this.rules.block.hr.test(t))break;h=e[0],t=t.substring(h.length);let p=Xa(e[2].split(`
1026
- `,1)[0],e[1].length),u=t.split(`
1027
- `,1)[0],b=!p.trim(),y=0;if(this.options.pedantic?(y=2,g=p.trimStart()):b?y=e[1].length+1:(y=p.search(this.rules.other.nonSpaceChar),y=y>4?1:y,g=p.slice(y),y+=e[1].length),b&&this.rules.other.blankLine.test(u)&&(h+=u+`
1028
- `,t=t.substring(u.length+1),d=!0),!d){let N=this.rules.other.nextBulletRegex(y),H=this.rules.other.hrRegex(y),L=this.rules.other.fencesBeginRegex(y),A=this.rules.other.headingBeginRegex(y),x=this.rules.other.htmlBeginRegex(y),q=this.rules.other.blockquoteBeginRegex(y);for(;t;){let z=t.split(`
1029
- `,1)[0],$;if(u=z,this.options.pedantic?(u=u.replace(this.rules.other.listReplaceNesting," "),$=u):$=u.replace(this.rules.other.tabCharGlobal," "),L.test(u)||A.test(u)||x.test(u)||q.test(u)||N.test(u)||H.test(u))break;if($.search(this.rules.other.nonSpaceChar)>=y||!u.trim())g+=`
1030
- `+$.slice(y);else{if(b||p.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||L.test(p)||A.test(p)||H.test(p))break;g+=`
1031
- `+u}b=!u.trim(),h+=z+`
1032
- `,t=t.substring(z.length+1),p=$.slice(y)}}l.loose||(c?l.loose=!0:this.rules.other.doubleBlankLine.test(h)&&(c=!0)),l.items.push({type:"list_item",raw:h,task:!!this.options.gfm&&this.rules.other.listIsTask.test(g),loose:!1,text:g,tokens:[]}),l.raw+=h}let o=l.items.at(-1);if(o)o.raw=o.raw.trimEnd(),o.text=o.text.trimEnd();else return;l.raw=l.raw.trimEnd();for(let d of l.items){if(this.lexer.state.top=!1,d.tokens=this.lexer.blockTokens(d.text,[]),d.task){if(d.text=d.text.replace(this.rules.other.listReplaceTask,""),((i=d.tokens[0])==null?void 0:i.type)==="text"||((s=d.tokens[0])==null?void 0:s.type)==="paragraph"){d.tokens[0].raw=d.tokens[0].raw.replace(this.rules.other.listReplaceTask,""),d.tokens[0].text=d.tokens[0].text.replace(this.rules.other.listReplaceTask,"");for(let g=this.lexer.inlineQueue.length-1;g>=0;g--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[g].src)){this.lexer.inlineQueue[g].src=this.lexer.inlineQueue[g].src.replace(this.rules.other.listReplaceTask,"");break}}let h=this.rules.other.listTaskCheckbox.exec(d.raw);if(h){let g={type:"checkbox",raw:h[0]+" ",checked:h[0]!=="[ ]"};d.checked=g.checked,l.loose?d.tokens[0]&&["paragraph","text"].includes(d.tokens[0].type)&&"tokens"in d.tokens[0]&&d.tokens[0].tokens?(d.tokens[0].raw=g.raw+d.tokens[0].raw,d.tokens[0].text=g.raw+d.tokens[0].text,d.tokens[0].tokens.unshift(g)):d.tokens.unshift({type:"paragraph",raw:g.raw,text:g.raw,tokens:[g]}):d.tokens.unshift(g)}}if(!l.loose){let h=d.tokens.filter(g=>g.type==="space");l.loose=h.length>0&&h.some(g=>this.rules.other.anyLine.test(g.raw))}}if(l.loose)for(let d of l.items){d.loose=!0;for(let h of d.tokens)h.type==="text"&&(h.type="paragraph")}return l}}html(t){let e=this.rules.block.html.exec(t);if(e)return{type:"html",block:!0,raw:e[0],pre:e[1]==="pre"||e[1]==="script"||e[1]==="style",text:e[0]}}def(t){let e=this.rules.block.def.exec(t);if(e){let i=e[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),s=e[2]?e[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",n=e[3]?e[3].substring(1,e[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):e[3];return{type:"def",tag:i,raw:e[0],href:s,title:n}}}table(t){var l;let e=this.rules.block.table.exec(t);if(!e||!this.rules.other.tableDelimiter.test(e[2]))return;let i=Es(e[1]),s=e[2].replace(this.rules.other.tableAlignChars,"").split("|"),n=(l=e[3])!=null&&l.trim()?e[3].replace(this.rules.other.tableRowBlankLine,"").split(`
1024
+ `),b=this.list(d);a[a.length-1]=b,s=s.substring(0,s.length-g.raw.length)+b.raw,n=n.substring(0,n.length-p.raw.length)+b.raw,i=d.substring(a.at(-1).raw.length).split(`
1025
+ `);continue}}return{type:"blockquote",raw:s,tokens:a,text:n}}}list(t){var i,s;let e=this.rules.block.list.exec(t);if(e){let n=e[1].trim(),a=n.length>1,l={type:"list",raw:"",ordered:a,start:a?+n.slice(0,-1):"",loose:!1,items:[]};n=a?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=a?n:"[*+-]");let r=this.rules.other.listItemRegex(n),c=!1;for(;t;){let u=!1,h="",g="";if(!(e=r.exec(t))||this.rules.block.hr.test(t))break;h=e[0],t=t.substring(h.length);let p=Xa(e[2].split(`
1026
+ `,1)[0],e[1].length),d=t.split(`
1027
+ `,1)[0],b=!p.trim(),y=0;if(this.options.pedantic?(y=2,g=p.trimStart()):b?y=e[1].length+1:(y=p.search(this.rules.other.nonSpaceChar),y=y>4?1:y,g=p.slice(y),y+=e[1].length),b&&this.rules.other.blankLine.test(d)&&(h+=d+`
1028
+ `,t=t.substring(d.length+1),u=!0),!u){let z=this.rules.other.nextBulletRegex(y),H=this.rules.other.hrRegex(y),N=this.rules.other.fencesBeginRegex(y),A=this.rules.other.headingBeginRegex(y),x=this.rules.other.htmlBeginRegex(y),j=this.rules.other.blockquoteBeginRegex(y);for(;t;){let M=t.split(`
1029
+ `,1)[0],B;if(d=M,this.options.pedantic?(d=d.replace(this.rules.other.listReplaceNesting," "),B=d):B=d.replace(this.rules.other.tabCharGlobal," "),N.test(d)||A.test(d)||x.test(d)||j.test(d)||z.test(d)||H.test(d))break;if(B.search(this.rules.other.nonSpaceChar)>=y||!d.trim())g+=`
1030
+ `+B.slice(y);else{if(b||p.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||N.test(p)||A.test(p)||H.test(p))break;g+=`
1031
+ `+d}b=!d.trim(),h+=M+`
1032
+ `,t=t.substring(M.length+1),p=B.slice(y)}}l.loose||(c?l.loose=!0:this.rules.other.doubleBlankLine.test(h)&&(c=!0)),l.items.push({type:"list_item",raw:h,task:!!this.options.gfm&&this.rules.other.listIsTask.test(g),loose:!1,text:g,tokens:[]}),l.raw+=h}let o=l.items.at(-1);if(o)o.raw=o.raw.trimEnd(),o.text=o.text.trimEnd();else return;l.raw=l.raw.trimEnd();for(let u of l.items){if(this.lexer.state.top=!1,u.tokens=this.lexer.blockTokens(u.text,[]),u.task){if(u.text=u.text.replace(this.rules.other.listReplaceTask,""),((i=u.tokens[0])==null?void 0:i.type)==="text"||((s=u.tokens[0])==null?void 0:s.type)==="paragraph"){u.tokens[0].raw=u.tokens[0].raw.replace(this.rules.other.listReplaceTask,""),u.tokens[0].text=u.tokens[0].text.replace(this.rules.other.listReplaceTask,"");for(let g=this.lexer.inlineQueue.length-1;g>=0;g--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[g].src)){this.lexer.inlineQueue[g].src=this.lexer.inlineQueue[g].src.replace(this.rules.other.listReplaceTask,"");break}}let h=this.rules.other.listTaskCheckbox.exec(u.raw);if(h){let g={type:"checkbox",raw:h[0]+" ",checked:h[0]!=="[ ]"};u.checked=g.checked,l.loose?u.tokens[0]&&["paragraph","text"].includes(u.tokens[0].type)&&"tokens"in u.tokens[0]&&u.tokens[0].tokens?(u.tokens[0].raw=g.raw+u.tokens[0].raw,u.tokens[0].text=g.raw+u.tokens[0].text,u.tokens[0].tokens.unshift(g)):u.tokens.unshift({type:"paragraph",raw:g.raw,text:g.raw,tokens:[g]}):u.tokens.unshift(g)}}if(!l.loose){let h=u.tokens.filter(g=>g.type==="space");l.loose=h.length>0&&h.some(g=>this.rules.other.anyLine.test(g.raw))}}if(l.loose)for(let u of l.items){u.loose=!0;for(let h of u.tokens)h.type==="text"&&(h.type="paragraph")}return l}}html(t){let e=this.rules.block.html.exec(t);if(e)return{type:"html",block:!0,raw:e[0],pre:e[1]==="pre"||e[1]==="script"||e[1]==="style",text:e[0]}}def(t){let e=this.rules.block.def.exec(t);if(e){let i=e[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),s=e[2]?e[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",n=e[3]?e[3].substring(1,e[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):e[3];return{type:"def",tag:i,raw:e[0],href:s,title:n}}}table(t){var l;let e=this.rules.block.table.exec(t);if(!e||!this.rules.other.tableDelimiter.test(e[2]))return;let i=Es(e[1]),s=e[2].replace(this.rules.other.tableAlignChars,"").split("|"),n=(l=e[3])!=null&&l.trim()?e[3].replace(this.rules.other.tableRowBlankLine,"").split(`
1033
1033
  `):[],a={type:"table",raw:e[0],header:[],align:[],rows:[]};if(i.length===s.length){for(let r of s)this.rules.other.tableAlignRight.test(r)?a.align.push("right"):this.rules.other.tableAlignCenter.test(r)?a.align.push("center"):this.rules.other.tableAlignLeft.test(r)?a.align.push("left"):a.align.push(null);for(let r=0;r<i.length;r++)a.header.push({text:i[r],tokens:this.lexer.inline(i[r]),header:!0,align:a.align[r]});for(let r of n)a.rows.push(Es(r,a.header.length).map((c,o)=>({text:c,tokens:this.lexer.inline(c),header:!1,align:a.align[o]})));return a}}lheading(t){let e=this.rules.block.lheading.exec(t);if(e)return{type:"heading",raw:e[0],depth:e[2].charAt(0)==="="?1:2,text:e[1],tokens:this.lexer.inline(e[1])}}paragraph(t){let e=this.rules.block.paragraph.exec(t);if(e){let i=e[1].charAt(e[1].length-1)===`
1034
- `?e[1].slice(0,-1):e[1];return{type:"paragraph",raw:e[0],text:i,tokens:this.lexer.inline(i)}}}text(t){let e=this.rules.block.text.exec(t);if(e)return{type:"text",raw:e[0],text:e[0],tokens:this.lexer.inline(e[0])}}escape(t){let e=this.rules.inline.escape.exec(t);if(e)return{type:"escape",raw:e[0],text:e[1]}}tag(t){let e=this.rules.inline.tag.exec(t);if(e)return!this.lexer.state.inLink&&this.rules.other.startATag.test(e[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(e[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(e[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(e[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:e[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:e[0]}}link(t){let e=this.rules.inline.link.exec(t);if(e){let i=e[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(i)){if(!this.rules.other.endAngleBracket.test(i))return;let a=Xe(i.slice(0,-1),"\\");if((i.length-a.length)%2==0)return}else{let a=Qa(e[2],"()");if(a===-2)return;if(a>-1){let l=(e[0].indexOf("!")===0?5:4)+e[1].length+a;e[2]=e[2].substring(0,a),e[0]=e[0].substring(0,l).trim(),e[3]=""}}let s=e[2],n="";if(this.options.pedantic){let a=this.rules.other.pedanticHrefTitle.exec(s);a&&(s=a[1],n=a[3])}else n=e[3]?e[3].slice(1,-1):"";return s=s.trim(),this.rules.other.startAngleBracket.test(s)&&(s=this.options.pedantic&&!this.rules.other.endAngleBracket.test(i)?s.slice(1):s.slice(1,-1)),Rs(e,{href:s&&s.replace(this.rules.inline.anyPunctuation,"$1"),title:n&&n.replace(this.rules.inline.anyPunctuation,"$1")},e[0],this.lexer,this.rules)}}reflink(t,e){let i;if((i=this.rules.inline.reflink.exec(t))||(i=this.rules.inline.nolink.exec(t))){let s=e[(i[2]||i[1]).replace(this.rules.other.multipleSpaceGlobal," ").toLowerCase()];if(!s){let n=i[0].charAt(0);return{type:"text",raw:n,text:n}}return Rs(i,s,i[0],this.lexer,this.rules)}}emStrong(t,e,i=""){let s=this.rules.inline.emStrongLDelim.exec(t);if(!(!s||s[3]&&i.match(this.rules.other.unicodeAlphaNumeric))&&(!(s[1]||s[2])||!i||this.rules.inline.punctuation.exec(i))){let n=[...s[0]].length-1,a,l,r=n,c=0,o=s[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(o.lastIndex=0,e=e.slice(-1*t.length+n);(s=o.exec(e))!=null;){if(a=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!a)continue;if(l=[...a].length,s[3]||s[4]){r+=l;continue}else if((s[5]||s[6])&&n%3&&!((n+l)%3)){c+=l;continue}if(r-=l,r>0)continue;l=Math.min(l,l+r+c);let d=[...s[0]][0].length,h=t.slice(0,n+s.index+d+l);if(Math.min(n,l)%2){let p=h.slice(1,-1);return{type:"em",raw:h,text:p,tokens:this.lexer.inlineTokens(p)}}let g=h.slice(2,-2);return{type:"strong",raw:h,text:g,tokens:this.lexer.inlineTokens(g)}}}}codespan(t){let e=this.rules.inline.code.exec(t);if(e){let i=e[2].replace(this.rules.other.newLineCharGlobal," "),s=this.rules.other.nonSpaceChar.test(i),n=this.rules.other.startingSpaceChar.test(i)&&this.rules.other.endingSpaceChar.test(i);return s&&n&&(i=i.substring(1,i.length-1)),{type:"codespan",raw:e[0],text:i}}}br(t){let e=this.rules.inline.br.exec(t);if(e)return{type:"br",raw:e[0]}}del(t,e,i=""){let s=this.rules.inline.delLDelim.exec(t);if(s&&(!s[1]||!i||this.rules.inline.punctuation.exec(i))){let n=[...s[0]].length-1,a,l,r=n,c=this.rules.inline.delRDelim;for(c.lastIndex=0,e=e.slice(-1*t.length+n);(s=c.exec(e))!=null;){if(a=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!a||(l=[...a].length,l!==n))continue;if(s[3]||s[4]){r+=l;continue}if(r-=l,r>0)continue;l=Math.min(l,l+r);let o=[...s[0]][0].length,d=t.slice(0,n+s.index+o+l),h=d.slice(n,-n);return{type:"del",raw:d,text:h,tokens:this.lexer.inlineTokens(h)}}}}autolink(t){let e=this.rules.inline.autolink.exec(t);if(e){let i,s;return e[2]==="@"?(i=e[1],s="mailto:"+i):(i=e[1],s=i),{type:"link",raw:e[0],text:i,href:s,tokens:[{type:"text",raw:i,text:i}]}}}url(t){var i;let e;if(e=this.rules.inline.url.exec(t)){let s,n;if(e[2]==="@")s=e[0],n="mailto:"+s;else{let a;do a=e[0],e[0]=((i=this.rules.inline._backpedal.exec(e[0]))==null?void 0:i[0])??"";while(a!==e[0]);s=e[0],n=e[1]==="www."?"http://"+e[0]:e[0]}return{type:"link",raw:e[0],text:s,href:n,tokens:[{type:"text",raw:s,text:s}]}}}inlineText(t){let e=this.rules.inline.text.exec(t);if(e){let i=this.lexer.state.inRawBlock;return{type:"text",raw:e[0],text:e[0],escaped:i}}}},he=class Si{constructor(e){M(this,"tokens");M(this,"options");M(this,"state");M(this,"inlineQueue");M(this,"tokenizer");this.tokens=[],this.tokens.links=Object.create(null),this.options=e||Ne,this.options.tokenizer=this.options.tokenizer||new pt,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let i={other:ae,block:ht.normal,inline:Qe.normal};this.options.pedantic?(i.block=ht.pedantic,i.inline=Qe.pedantic):this.options.gfm&&(i.block=ht.gfm,this.options.breaks?i.inline=Qe.breaks:i.inline=Qe.gfm),this.tokenizer.rules=i}static get rules(){return{block:ht,inline:Qe}}static lex(e,i){return new Si(i).lex(e)}static lexInline(e,i){return new Si(i).inlineTokens(e)}lex(e){e=e.replace(ae.carriageReturn,`
1034
+ `?e[1].slice(0,-1):e[1];return{type:"paragraph",raw:e[0],text:i,tokens:this.lexer.inline(i)}}}text(t){let e=this.rules.block.text.exec(t);if(e)return{type:"text",raw:e[0],text:e[0],tokens:this.lexer.inline(e[0])}}escape(t){let e=this.rules.inline.escape.exec(t);if(e)return{type:"escape",raw:e[0],text:e[1]}}tag(t){let e=this.rules.inline.tag.exec(t);if(e)return!this.lexer.state.inLink&&this.rules.other.startATag.test(e[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(e[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(e[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(e[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:e[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:e[0]}}link(t){let e=this.rules.inline.link.exec(t);if(e){let i=e[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(i)){if(!this.rules.other.endAngleBracket.test(i))return;let a=Qe(i.slice(0,-1),"\\");if((i.length-a.length)%2==0)return}else{let a=Qa(e[2],"()");if(a===-2)return;if(a>-1){let l=(e[0].indexOf("!")===0?5:4)+e[1].length+a;e[2]=e[2].substring(0,a),e[0]=e[0].substring(0,l).trim(),e[3]=""}}let s=e[2],n="";if(this.options.pedantic){let a=this.rules.other.pedanticHrefTitle.exec(s);a&&(s=a[1],n=a[3])}else n=e[3]?e[3].slice(1,-1):"";return s=s.trim(),this.rules.other.startAngleBracket.test(s)&&(s=this.options.pedantic&&!this.rules.other.endAngleBracket.test(i)?s.slice(1):s.slice(1,-1)),Rs(e,{href:s&&s.replace(this.rules.inline.anyPunctuation,"$1"),title:n&&n.replace(this.rules.inline.anyPunctuation,"$1")},e[0],this.lexer,this.rules)}}reflink(t,e){let i;if((i=this.rules.inline.reflink.exec(t))||(i=this.rules.inline.nolink.exec(t))){let s=e[(i[2]||i[1]).replace(this.rules.other.multipleSpaceGlobal," ").toLowerCase()];if(!s){let n=i[0].charAt(0);return{type:"text",raw:n,text:n}}return Rs(i,s,i[0],this.lexer,this.rules)}}emStrong(t,e,i=""){let s=this.rules.inline.emStrongLDelim.exec(t);if(!(!s||s[3]&&i.match(this.rules.other.unicodeAlphaNumeric))&&(!(s[1]||s[2])||!i||this.rules.inline.punctuation.exec(i))){let n=[...s[0]].length-1,a,l,r=n,c=0,o=s[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(o.lastIndex=0,e=e.slice(-1*t.length+n);(s=o.exec(e))!=null;){if(a=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!a)continue;if(l=[...a].length,s[3]||s[4]){r+=l;continue}else if((s[5]||s[6])&&n%3&&!((n+l)%3)){c+=l;continue}if(r-=l,r>0)continue;l=Math.min(l,l+r+c);let u=[...s[0]][0].length,h=t.slice(0,n+s.index+u+l);if(Math.min(n,l)%2){let p=h.slice(1,-1);return{type:"em",raw:h,text:p,tokens:this.lexer.inlineTokens(p)}}let g=h.slice(2,-2);return{type:"strong",raw:h,text:g,tokens:this.lexer.inlineTokens(g)}}}}codespan(t){let e=this.rules.inline.code.exec(t);if(e){let i=e[2].replace(this.rules.other.newLineCharGlobal," "),s=this.rules.other.nonSpaceChar.test(i),n=this.rules.other.startingSpaceChar.test(i)&&this.rules.other.endingSpaceChar.test(i);return s&&n&&(i=i.substring(1,i.length-1)),{type:"codespan",raw:e[0],text:i}}}br(t){let e=this.rules.inline.br.exec(t);if(e)return{type:"br",raw:e[0]}}del(t,e,i=""){let s=this.rules.inline.delLDelim.exec(t);if(s&&(!s[1]||!i||this.rules.inline.punctuation.exec(i))){let n=[...s[0]].length-1,a,l,r=n,c=this.rules.inline.delRDelim;for(c.lastIndex=0,e=e.slice(-1*t.length+n);(s=c.exec(e))!=null;){if(a=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!a||(l=[...a].length,l!==n))continue;if(s[3]||s[4]){r+=l;continue}if(r-=l,r>0)continue;l=Math.min(l,l+r);let o=[...s[0]][0].length,u=t.slice(0,n+s.index+o+l),h=u.slice(n,-n);return{type:"del",raw:u,text:h,tokens:this.lexer.inlineTokens(h)}}}}autolink(t){let e=this.rules.inline.autolink.exec(t);if(e){let i,s;return e[2]==="@"?(i=e[1],s="mailto:"+i):(i=e[1],s=i),{type:"link",raw:e[0],text:i,href:s,tokens:[{type:"text",raw:i,text:i}]}}}url(t){var i;let e;if(e=this.rules.inline.url.exec(t)){let s,n;if(e[2]==="@")s=e[0],n="mailto:"+s;else{let a;do a=e[0],e[0]=((i=this.rules.inline._backpedal.exec(e[0]))==null?void 0:i[0])??"";while(a!==e[0]);s=e[0],n=e[1]==="www."?"http://"+e[0]:e[0]}return{type:"link",raw:e[0],text:s,href:n,tokens:[{type:"text",raw:s,text:s}]}}}inlineText(t){let e=this.rules.inline.text.exec(t);if(e){let i=this.lexer.state.inRawBlock;return{type:"text",raw:e[0],text:e[0],escaped:i}}}},he=class Si{constructor(e){C(this,"tokens");C(this,"options");C(this,"state");C(this,"inlineQueue");C(this,"tokenizer");this.tokens=[],this.tokens.links=Object.create(null),this.options=e||Ne,this.options.tokenizer=this.options.tokenizer||new gt,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let i={other:ae,block:pt.normal,inline:Ze.normal};this.options.pedantic?(i.block=pt.pedantic,i.inline=Ze.pedantic):this.options.gfm&&(i.block=pt.gfm,this.options.breaks?i.inline=Ze.breaks:i.inline=Ze.gfm),this.tokenizer.rules=i}static get rules(){return{block:pt,inline:Ze}}static lex(e,i){return new Si(i).lex(e)}static lexInline(e,i){return new Si(i).inlineTokens(e)}lex(e){e=e.replace(ae.carriageReturn,`
1035
1035
  `),this.blockTokens(e,this.tokens);for(let i=0;i<this.inlineQueue.length;i++){let s=this.inlineQueue[i];this.inlineTokens(s.src,s.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,i=[],s=!1){var n,a,l;for(this.options.pedantic&&(e=e.replace(ae.tabCharGlobal," ").replace(ae.spaceLine,""));e;){let r;if((a=(n=this.options.extensions)==null?void 0:n.block)!=null&&a.some(o=>(r=o.call({lexer:this},e,i))?(e=e.substring(r.raw.length),i.push(r),!0):!1))continue;if(r=this.tokenizer.space(e)){e=e.substring(r.raw.length);let o=i.at(-1);r.raw.length===1&&o!==void 0?o.raw+=`
1036
1036
  `:i.push(r);continue}if(r=this.tokenizer.code(e)){e=e.substring(r.raw.length);let o=i.at(-1);(o==null?void 0:o.type)==="paragraph"||(o==null?void 0:o.type)==="text"?(o.raw+=(o.raw.endsWith(`
1037
1037
  `)?"":`
@@ -1039,13 +1039,13 @@ ${d}`:d;let h=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTo
1039
1039
  `+r.text,this.inlineQueue.at(-1).src=o.text):i.push(r);continue}if(r=this.tokenizer.fences(e)){e=e.substring(r.raw.length),i.push(r);continue}if(r=this.tokenizer.heading(e)){e=e.substring(r.raw.length),i.push(r);continue}if(r=this.tokenizer.hr(e)){e=e.substring(r.raw.length),i.push(r);continue}if(r=this.tokenizer.blockquote(e)){e=e.substring(r.raw.length),i.push(r);continue}if(r=this.tokenizer.list(e)){e=e.substring(r.raw.length),i.push(r);continue}if(r=this.tokenizer.html(e)){e=e.substring(r.raw.length),i.push(r);continue}if(r=this.tokenizer.def(e)){e=e.substring(r.raw.length);let o=i.at(-1);(o==null?void 0:o.type)==="paragraph"||(o==null?void 0:o.type)==="text"?(o.raw+=(o.raw.endsWith(`
1040
1040
  `)?"":`
1041
1041
  `)+r.raw,o.text+=`
1042
- `+r.raw,this.inlineQueue.at(-1).src=o.text):this.tokens.links[r.tag]||(this.tokens.links[r.tag]={href:r.href,title:r.title},i.push(r));continue}if(r=this.tokenizer.table(e)){e=e.substring(r.raw.length),i.push(r);continue}if(r=this.tokenizer.lheading(e)){e=e.substring(r.raw.length),i.push(r);continue}let c=e;if((l=this.options.extensions)!=null&&l.startBlock){let o=1/0,d=e.slice(1),h;this.options.extensions.startBlock.forEach(g=>{h=g.call({lexer:this},d),typeof h=="number"&&h>=0&&(o=Math.min(o,h))}),o<1/0&&o>=0&&(c=e.substring(0,o+1))}if(this.state.top&&(r=this.tokenizer.paragraph(c))){let o=i.at(-1);s&&(o==null?void 0:o.type)==="paragraph"?(o.raw+=(o.raw.endsWith(`
1042
+ `+r.raw,this.inlineQueue.at(-1).src=o.text):this.tokens.links[r.tag]||(this.tokens.links[r.tag]={href:r.href,title:r.title},i.push(r));continue}if(r=this.tokenizer.table(e)){e=e.substring(r.raw.length),i.push(r);continue}if(r=this.tokenizer.lheading(e)){e=e.substring(r.raw.length),i.push(r);continue}let c=e;if((l=this.options.extensions)!=null&&l.startBlock){let o=1/0,u=e.slice(1),h;this.options.extensions.startBlock.forEach(g=>{h=g.call({lexer:this},u),typeof h=="number"&&h>=0&&(o=Math.min(o,h))}),o<1/0&&o>=0&&(c=e.substring(0,o+1))}if(this.state.top&&(r=this.tokenizer.paragraph(c))){let o=i.at(-1);s&&(o==null?void 0:o.type)==="paragraph"?(o.raw+=(o.raw.endsWith(`
1043
1043
  `)?"":`
1044
1044
  `)+r.raw,o.text+=`
1045
1045
  `+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=o.text):i.push(r),s=c.length!==e.length,e=e.substring(r.raw.length);continue}if(r=this.tokenizer.text(e)){e=e.substring(r.raw.length);let o=i.at(-1);(o==null?void 0:o.type)==="text"?(o.raw+=(o.raw.endsWith(`
1046
1046
  `)?"":`
1047
1047
  `)+r.raw,o.text+=`
1048
- `+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=o.text):i.push(r);continue}if(e){let o="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(o);break}else throw Error(o)}}return this.state.top=!0,i}inline(e,i=[]){return this.inlineQueue.push({src:e,tokens:i}),i}inlineTokens(e,i=[]){var c,o,d,h,g;let s=e,n=null;if(this.tokens.links){let p=Object.keys(this.tokens.links);if(p.length>0)for(;(n=this.tokenizer.rules.inline.reflinkSearch.exec(s))!=null;)p.includes(n[0].slice(n[0].lastIndexOf("[")+1,-1))&&(s=s.slice(0,n.index)+"["+"a".repeat(n[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(n=this.tokenizer.rules.inline.anyPunctuation.exec(s))!=null;)s=s.slice(0,n.index)+"++"+s.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let a;for(;(n=this.tokenizer.rules.inline.blockSkip.exec(s))!=null;)a=n[2]?n[2].length:0,s=s.slice(0,n.index+a)+"["+"a".repeat(n[0].length-a-2)+"]"+s.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);s=((o=(c=this.options.hooks)==null?void 0:c.emStrongMask)==null?void 0:o.call({lexer:this},s))??s;let l=!1,r="";for(;e;){l||(r=""),l=!1;let p;if((h=(d=this.options.extensions)==null?void 0:d.inline)!=null&&h.some(b=>(p=b.call({lexer:this},e,i))?(e=e.substring(p.raw.length),i.push(p),!0):!1))continue;if(p=this.tokenizer.escape(e)){e=e.substring(p.raw.length),i.push(p);continue}if(p=this.tokenizer.tag(e)){e=e.substring(p.raw.length),i.push(p);continue}if(p=this.tokenizer.link(e)){e=e.substring(p.raw.length),i.push(p);continue}if(p=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(p.raw.length);let b=i.at(-1);p.type==="text"&&(b==null?void 0:b.type)==="text"?(b.raw+=p.raw,b.text+=p.text):i.push(p);continue}if(p=this.tokenizer.emStrong(e,s,r)){e=e.substring(p.raw.length),i.push(p);continue}if(p=this.tokenizer.codespan(e)){e=e.substring(p.raw.length),i.push(p);continue}if(p=this.tokenizer.br(e)){e=e.substring(p.raw.length),i.push(p);continue}if(p=this.tokenizer.del(e,s,r)){e=e.substring(p.raw.length),i.push(p);continue}if(p=this.tokenizer.autolink(e)){e=e.substring(p.raw.length),i.push(p);continue}if(!this.state.inLink&&(p=this.tokenizer.url(e))){e=e.substring(p.raw.length),i.push(p);continue}let u=e;if((g=this.options.extensions)!=null&&g.startInline){let b=1/0,y=e.slice(1),N;this.options.extensions.startInline.forEach(H=>{N=H.call({lexer:this},y),typeof N=="number"&&N>=0&&(b=Math.min(b,N))}),b<1/0&&b>=0&&(u=e.substring(0,b+1))}if(p=this.tokenizer.inlineText(u)){e=e.substring(p.raw.length),p.raw.slice(-1)!=="_"&&(r=p.raw.slice(-1)),l=!0;let b=i.at(-1);(b==null?void 0:b.type)==="text"?(b.raw+=p.raw,b.text+=p.text):i.push(p);continue}if(e){let b="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(b);break}else throw Error(b)}}return i}},gt=class{constructor(t){M(this,"options");M(this,"parser");this.options=t||Ne}space(t){return""}code({text:t,lang:e,escaped:i}){var a;let s=(a=(e||"").match(ae.notSpaceStart))==null?void 0:a[0],n=t.replace(ae.endingNewline,"")+`
1048
+ `+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=o.text):i.push(r);continue}if(e){let o="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(o);break}else throw Error(o)}}return this.state.top=!0,i}inline(e,i=[]){return this.inlineQueue.push({src:e,tokens:i}),i}inlineTokens(e,i=[]){var c,o,u,h,g;let s=e,n=null;if(this.tokens.links){let p=Object.keys(this.tokens.links);if(p.length>0)for(;(n=this.tokenizer.rules.inline.reflinkSearch.exec(s))!=null;)p.includes(n[0].slice(n[0].lastIndexOf("[")+1,-1))&&(s=s.slice(0,n.index)+"["+"a".repeat(n[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(n=this.tokenizer.rules.inline.anyPunctuation.exec(s))!=null;)s=s.slice(0,n.index)+"++"+s.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let a;for(;(n=this.tokenizer.rules.inline.blockSkip.exec(s))!=null;)a=n[2]?n[2].length:0,s=s.slice(0,n.index+a)+"["+"a".repeat(n[0].length-a-2)+"]"+s.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);s=((o=(c=this.options.hooks)==null?void 0:c.emStrongMask)==null?void 0:o.call({lexer:this},s))??s;let l=!1,r="";for(;e;){l||(r=""),l=!1;let p;if((h=(u=this.options.extensions)==null?void 0:u.inline)!=null&&h.some(b=>(p=b.call({lexer:this},e,i))?(e=e.substring(p.raw.length),i.push(p),!0):!1))continue;if(p=this.tokenizer.escape(e)){e=e.substring(p.raw.length),i.push(p);continue}if(p=this.tokenizer.tag(e)){e=e.substring(p.raw.length),i.push(p);continue}if(p=this.tokenizer.link(e)){e=e.substring(p.raw.length),i.push(p);continue}if(p=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(p.raw.length);let b=i.at(-1);p.type==="text"&&(b==null?void 0:b.type)==="text"?(b.raw+=p.raw,b.text+=p.text):i.push(p);continue}if(p=this.tokenizer.emStrong(e,s,r)){e=e.substring(p.raw.length),i.push(p);continue}if(p=this.tokenizer.codespan(e)){e=e.substring(p.raw.length),i.push(p);continue}if(p=this.tokenizer.br(e)){e=e.substring(p.raw.length),i.push(p);continue}if(p=this.tokenizer.del(e,s,r)){e=e.substring(p.raw.length),i.push(p);continue}if(p=this.tokenizer.autolink(e)){e=e.substring(p.raw.length),i.push(p);continue}if(!this.state.inLink&&(p=this.tokenizer.url(e))){e=e.substring(p.raw.length),i.push(p);continue}let d=e;if((g=this.options.extensions)!=null&&g.startInline){let b=1/0,y=e.slice(1),z;this.options.extensions.startInline.forEach(H=>{z=H.call({lexer:this},y),typeof z=="number"&&z>=0&&(b=Math.min(b,z))}),b<1/0&&b>=0&&(d=e.substring(0,b+1))}if(p=this.tokenizer.inlineText(d)){e=e.substring(p.raw.length),p.raw.slice(-1)!=="_"&&(r=p.raw.slice(-1)),l=!0;let b=i.at(-1);(b==null?void 0:b.type)==="text"?(b.raw+=p.raw,b.text+=p.text):i.push(p);continue}if(e){let b="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(b);break}else throw Error(b)}}return i}},mt=class{constructor(t){C(this,"options");C(this,"parser");this.options=t||Ne}space(t){return""}code({text:t,lang:e,escaped:i}){var a;let s=(a=(e||"").match(ae.notSpaceStart))==null?void 0:a[0],n=t.replace(ae.endingNewline,"")+`
1049
1049
  `;return s?'<pre><code class="language-'+ve(s)+'">'+(i?n:ve(n,!0))+`</code></pre>
1050
1050
  `:"<pre><code>"+(i?n:ve(n,!0))+`</code></pre>
1051
1051
  `}blockquote({tokens:t}){return`<blockquote>
@@ -1063,7 +1063,7 @@ ${this.parser.parse(t)}</blockquote>
1063
1063
  `}tablerow({text:t}){return`<tr>
1064
1064
  ${t}</tr>
1065
1065
  `}tablecell(t){let e=this.parser.parseInline(t.tokens),i=t.header?"th":"td";return(t.align?`<${i} align="${t.align}">`:`<${i}>`)+e+`</${i}>
1066
- `}strong({tokens:t}){return`<strong>${this.parser.parseInline(t)}</strong>`}em({tokens:t}){return`<em>${this.parser.parseInline(t)}</em>`}codespan({text:t}){return`<code>${ve(t,!0)}</code>`}br(t){return"<br>"}del({tokens:t}){return`<del>${this.parser.parseInline(t)}</del>`}link({href:t,title:e,tokens:i}){let s=this.parser.parseInline(i),n=Ss(t);if(n===null)return s;t=n;let a='<a href="'+t+'"';return e&&(a+=' title="'+ve(e)+'"'),a+=">"+s+"</a>",a}image({href:t,title:e,text:i,tokens:s}){s&&(i=this.parser.parseInline(s,this.parser.textRenderer));let n=Ss(t);if(n===null)return ve(i);t=n;let a=`<img src="${t}" alt="${ve(i)}"`;return e&&(a+=` title="${ve(e)}"`),a+=">",a}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:ve(t.text)}},ri=class{strong({text:t}){return t}em({text:t}){return t}codespan({text:t}){return t}del({text:t}){return t}html({text:t}){return t}text({text:t}){return t}link({text:t}){return""+t}image({text:t}){return""+t}br(){return""}checkbox({raw:t}){return t}},pe=class Ei{constructor(e){M(this,"options");M(this,"renderer");M(this,"textRenderer");this.options=e||Ne,this.options.renderer=this.options.renderer||new gt,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new ri}static parse(e,i){return new Ei(i).parse(e)}static parseInline(e,i){return new Ei(i).parseInline(e)}parse(e){var s,n;let i="";for(let a=0;a<e.length;a++){let l=e[a];if((n=(s=this.options.extensions)==null?void 0:s.renderers)!=null&&n[l.type]){let c=l,o=this.options.extensions.renderers[c.type].call({parser:this},c);if(o!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(c.type)){i+=o||"";continue}}let r=l;switch(r.type){case"space":i+=this.renderer.space(r);break;case"hr":i+=this.renderer.hr(r);break;case"heading":i+=this.renderer.heading(r);break;case"code":i+=this.renderer.code(r);break;case"table":i+=this.renderer.table(r);break;case"blockquote":i+=this.renderer.blockquote(r);break;case"list":i+=this.renderer.list(r);break;case"checkbox":i+=this.renderer.checkbox(r);break;case"html":i+=this.renderer.html(r);break;case"def":i+=this.renderer.def(r);break;case"paragraph":i+=this.renderer.paragraph(r);break;case"text":i+=this.renderer.text(r);break;default:{let c='Token with "'+r.type+'" type was not found.';if(this.options.silent)return console.error(c),"";throw Error(c)}}}return i}parseInline(e,i=this.renderer){var n,a;let s="";for(let l=0;l<e.length;l++){let r=e[l];if((a=(n=this.options.extensions)==null?void 0:n.renderers)!=null&&a[r.type]){let o=this.options.extensions.renderers[r.type].call({parser:this},r);if(o!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(r.type)){s+=o||"";continue}}let c=r;switch(c.type){case"escape":s+=i.text(c);break;case"html":s+=i.html(c);break;case"link":s+=i.link(c);break;case"image":s+=i.image(c);break;case"checkbox":s+=i.checkbox(c);break;case"strong":s+=i.strong(c);break;case"em":s+=i.em(c);break;case"codespan":s+=i.codespan(c);break;case"br":s+=i.br(c);break;case"del":s+=i.del(c);break;case"text":s+=i.text(c);break;default:{let o='Token with "'+c.type+'" type was not found.';if(this.options.silent)return console.error(o),"";throw Error(o)}}}return s}},Ge=(vt=class{constructor(t){M(this,"options");M(this,"block");this.options=t||Ne}preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}emStrongMask(t){return t}provideLexer(){return this.block?he.lex:he.lexInline}provideParser(){return this.block?pe.parse:pe.parseInline}},M(vt,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),M(vt,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),vt),$e=new class{constructor(...t){M(this,"defaults",Xt());M(this,"options",this.setOptions);M(this,"parse",this.parseMarkdown(!0));M(this,"parseInline",this.parseMarkdown(!1));M(this,"Parser",pe);M(this,"Renderer",gt);M(this,"TextRenderer",ri);M(this,"Lexer",he);M(this,"Tokenizer",pt);M(this,"Hooks",Ge);this.use(...t)}walkTokens(t,e){var s,n;let i=[];for(let a of t)switch(i=i.concat(e.call(this,a)),a.type){case"table":{let l=a;for(let r of l.header)i=i.concat(this.walkTokens(r.tokens,e));for(let r of l.rows)for(let c of r)i=i.concat(this.walkTokens(c.tokens,e));break}case"list":{let l=a;i=i.concat(this.walkTokens(l.items,e));break}default:{let l=a;(n=(s=this.defaults.extensions)==null?void 0:s.childTokens)!=null&&n[l.type]?this.defaults.extensions.childTokens[l.type].forEach(r=>{let c=l[r].flat(1/0);i=i.concat(this.walkTokens(c,e))}):l.tokens&&(i=i.concat(this.walkTokens(l.tokens,e)))}}return i}use(...t){let e=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(i=>{let s={...i};if(s.async=this.defaults.async||s.async||!1,i.extensions&&(i.extensions.forEach(n=>{if(!n.name)throw Error("extension name required");if("renderer"in n){let a=e.renderers[n.name];a?e.renderers[n.name]=function(...l){let r=n.renderer.apply(this,l);return r===!1&&(r=a.apply(this,l)),r}:e.renderers[n.name]=n.renderer}if("tokenizer"in n){if(!n.level||n.level!=="block"&&n.level!=="inline")throw Error("extension level must be 'block' or 'inline'");let a=e[n.level];a?a.unshift(n.tokenizer):e[n.level]=[n.tokenizer],n.start&&(n.level==="block"?e.startBlock?e.startBlock.push(n.start):e.startBlock=[n.start]:n.level==="inline"&&(e.startInline?e.startInline.push(n.start):e.startInline=[n.start]))}"childTokens"in n&&n.childTokens&&(e.childTokens[n.name]=n.childTokens)}),s.extensions=e),i.renderer){let n=this.defaults.renderer||new gt(this.defaults);for(let a in i.renderer){if(!(a in n))throw Error(`renderer '${a}' does not exist`);if(["options","parser"].includes(a))continue;let l=a,r=i.renderer[l],c=n[l];n[l]=(...o)=>{let d=r.apply(n,o);return d===!1&&(d=c.apply(n,o)),d||""}}s.renderer=n}if(i.tokenizer){let n=this.defaults.tokenizer||new pt(this.defaults);for(let a in i.tokenizer){if(!(a in n))throw Error(`tokenizer '${a}' does not exist`);if(["options","rules","lexer"].includes(a))continue;let l=a,r=i.tokenizer[l],c=n[l];n[l]=(...o)=>{let d=r.apply(n,o);return d===!1&&(d=c.apply(n,o)),d}}s.tokenizer=n}if(i.hooks){let n=this.defaults.hooks||new Ge;for(let a in i.hooks){if(!(a in n))throw Error(`hook '${a}' does not exist`);if(["options","block"].includes(a))continue;let l=a,r=i.hooks[l],c=n[l];Ge.passThroughHooks.has(a)?n[l]=o=>{if(this.defaults.async&&Ge.passThroughHooksRespectAsync.has(a))return(async()=>{let h=await r.call(n,o);return c.call(n,h)})();let d=r.call(n,o);return c.call(n,d)}:n[l]=(...o)=>{if(this.defaults.async)return(async()=>{let h=await r.apply(n,o);return h===!1&&(h=await c.apply(n,o)),h})();let d=r.apply(n,o);return d===!1&&(d=c.apply(n,o)),d}}s.hooks=n}if(i.walkTokens){let n=this.defaults.walkTokens,a=i.walkTokens;s.walkTokens=function(l){let r=[];return r.push(a.call(this,l)),n&&(r=r.concat(n.call(this,l))),r}}this.defaults={...this.defaults,...s}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,e){return he.lex(t,e??this.defaults)}parser(t,e){return pe.parse(t,e??this.defaults)}parseMarkdown(t){return(e,i)=>{let s={...i},n={...this.defaults,...s},a=this.onError(!!n.silent,!!n.async);if(this.defaults.async===!0&&s.async===!1)return a(Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof e>"u"||e===null)return a(Error("marked(): input parameter is undefined or null"));if(typeof e!="string")return a(Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected"));if(n.hooks&&(n.hooks.options=n,n.hooks.block=t),n.async)return(async()=>{let l=n.hooks?await n.hooks.preprocess(e):e,r=await(n.hooks?await n.hooks.provideLexer():t?he.lex:he.lexInline)(l,n),c=n.hooks?await n.hooks.processAllTokens(r):r;n.walkTokens&&await Promise.all(this.walkTokens(c,n.walkTokens));let o=await(n.hooks?await n.hooks.provideParser():t?pe.parse:pe.parseInline)(c,n);return n.hooks?await n.hooks.postprocess(o):o})().catch(a);try{n.hooks&&(e=n.hooks.preprocess(e));let l=(n.hooks?n.hooks.provideLexer():t?he.lex:he.lexInline)(e,n);n.hooks&&(l=n.hooks.processAllTokens(l)),n.walkTokens&&this.walkTokens(l,n.walkTokens);let r=(n.hooks?n.hooks.provideParser():t?pe.parse:pe.parseInline)(l,n);return n.hooks&&(r=n.hooks.postprocess(r)),r}catch(l){return a(l)}}}onError(t,e){return i=>{if(i.message+=`
1067
- Please report this to https://github.com/markedjs/marked.`,t){let s="<p>An error occurred:</p><pre>"+ve(i.message+"",!0)+"</pre>";return e?Promise.resolve(s):s}if(e)return Promise.reject(i);throw i}}};function U(t,e){return $e.parse(t,e)}U.options=U.setOptions=function(t){return $e.setOptions(t),U.defaults=$e.defaults,os(U.defaults),U},U.getDefaults=Xt,U.defaults=Ne,U.use=function(...t){return $e.use(...t),U.defaults=$e.defaults,os(U.defaults),U},U.walkTokens=function(t,e){return $e.walkTokens(t,e)},U.parseInline=$e.parseInline,U.Parser=pe,U.parser=pe.parse,U.Renderer=gt,U.TextRenderer=ri,U.Lexer=he,U.lexer=he.lex,U.Tokenizer=pt,U.Hooks=Ge,U.parse=U,U.options,U.setOptions,U.use,U.walkTokens,U.parseInline,pe.parse,he.lex;var Ja=()=>{let t,e=null,i;function s(){if(e&&!e.closed)e.focus();else{if(e=window.open("about:blank","reveal.js - Notes","width=1100,height=700"),e.marked=U,e.document.write(ua),!e){alert("Speaker view popup failed to open. Please make sure popups are allowed and reopen the speaker view.");return}a()}}function n(h){e&&!e.closed?e.focus():(e=h,window.addEventListener("message",o),d())}function a(){let h=i.getConfig().url,g=typeof h=="string"?h:window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search;t=setInterval(function(){e.postMessage(JSON.stringify({namespace:"reveal-notes",type:"connect",state:i.getState(),url:g}),"*")},500),window.addEventListener("message",o)}function l(h,g,p){let u=i[h].apply(i,g);e.postMessage(JSON.stringify({namespace:"reveal-notes",type:"return",result:u,callId:p}),"*")}function r(h){let g=i.getCurrentSlide(),p=g.querySelectorAll("aside.notes"),u=g.querySelector(".current-fragment"),b={namespace:"reveal-notes",type:"state",notes:"",markdown:!1,whitespace:"normal",state:i.getState()};if(g.hasAttribute("data-notes")&&(b.notes=g.getAttribute("data-notes"),b.whitespace="pre-wrap"),u){let y=u.querySelector("aside.notes");y?(b.notes=y.innerHTML,b.markdown=typeof y.getAttribute("data-markdown")=="string",p=null):u.hasAttribute("data-notes")&&(b.notes=u.getAttribute("data-notes"),b.whitespace="pre-wrap",p=null)}p&&p.length&&(p=Array.from(p).filter(y=>y.closest(".fragment")===null),b.notes=p.map(y=>y.innerHTML).join(`
1068
- `),b.markdown=p[0]&&typeof p[0].getAttribute("data-markdown")=="string"),e.postMessage(JSON.stringify(b),"*")}function c(h){try{return window.location.origin===h.source.location.origin}catch{return!1}}function o(h){if(c(h))try{let g=JSON.parse(h.data);g&&g.namespace==="reveal-notes"&&g.type==="connected"?(clearInterval(t),d()):g&&g.namespace==="reveal-notes"&&g.type==="call"&&l(g.methodName,g.arguments,g.callId)}catch{}}function d(){i.on("slidechanged",r),i.on("fragmentshown",r),i.on("fragmenthidden",r),i.on("overviewhidden",r),i.on("overviewshown",r),i.on("paused",r),i.on("resumed",r),i.on("previewiframe",r),i.on("previewimage",r),i.on("previewvideo",r),i.on("closeoverlay",r),r()}return{id:"notes",init:function(h){i=h,/receiver/i.test(window.location.search)||(window.location.search.match(/(\?|\&)notes/gi)===null?window.addEventListener("message",g=>{if(!e&&typeof g.data=="string"){let p;try{p=JSON.parse(g.data)}catch{}p&&p.namespace==="reveal-notes"&&p.type==="heartbeat"&&n(g.source)}}):s(),i.addKeyBinding({keyCode:83,key:"S",description:"Speaker notes view"},function(){s()}))},open:s}},mt=ki(),As=16/9;function Ya(t){let e=t.getSlidesElement();if(e)for(let i of e.querySelectorAll("section.stack[data-previous-indexv]"))i.removeAttribute("data-previous-indexv")}var el=new Set([" ","Spacebar","ArrowRight","ArrowDown","PageDown"]),tl=new Set(["ArrowLeft","ArrowUp","PageUp"]);function il(t){return el.has(t.key)?1:tl.has(t.key)?-1:0}function sl(t){let e=(0,mt.c)(4),i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i={width:960,height:540},e[0]=i):i=e[0];let[s,n]=(0,C.useState)(i),a,l;return e[1]===t?(a=e[2],l=e[3]):(a=()=>{let r=t.current;if(!r)return;let c=new ResizeObserver(o=>{let{width:d,height:h}=o[0].contentRect;if(d<=0||h<=0)return;let g=Math.min(d,h*As),p=g/As;n({width:Math.round(g),height:Math.round(p)})});return c.observe(r),()=>c.disconnect()},l=[t],e[1]=t,e[2]=a,e[3]=l),(0,C.useEffect)(a,l),s}function nl(t){var e;(e=t==null?void 0:t.getCurrentSlide())!=null&&e.querySelector(".vega-embed, marimo-vega")&&requestAnimationFrame(()=>{window.dispatchEvent(new Event("resize"))})}let ai,li,Ts;ai=t=>{let e=(0,mt.c)(6),{text:i}=t,s,n;if(e[0]!==i){let l=i.split(`
1069
- `);s="notes",n=l.map((r,c)=>{let o=c===l.length-1;return r==="---"?(0,S.jsx)("hr",{},c):(0,S.jsxs)(C.Fragment,{children:[r,!o&&(0,S.jsx)("br",{})]},c)}),e[0]=i,e[1]=s,e[2]=n}else s=e[1],n=e[2];let a;return e[3]!==s||e[4]!==n?(a=(0,S.jsx)("aside",{className:s,children:n}),e[3]=s,e[4]=n,e[5]=a):a=e[5],a},li=t=>{let e=(0,mt.c)(24),{subslide:i,showCode:s,isEditable:n,slideConfigs:a}=t,l,r,c,o,d,h;if(e[0]!==n||e[1]!==s||e[2]!==a||e[3]!==i){let{slideLevel:y,cumulativeByBlock:N}=da(i,a);r=y,l=dr,h="h-full w-full overflow-auto flex",c=s?"mo-slide-content flex flex-col gap-3":"mo-slide-content",e[10]===Symbol.for("react.memo_cache_sentinel")?(o={margin:"auto 20px"},e[10]=o):o=e[10],d=i.blocks.map((H,L)=>{let A=H.cells.map(x=>s?n?(0,S.jsx)(as,{cell:x},x.id):(0,S.jsx)(ls,{cell:x},x.id):(0,S.jsx)(Mt,{cellId:x.id,status:x.status,output:x.output},x.id));if(H.isFragment){let x=N.get(L);return(0,S.jsxs)(Gr,{as:"div",children:[A,x&&(0,S.jsx)(ai,{text:x})]},L)}return(0,S.jsx)(C.Fragment,{children:A},L)}),e[0]=n,e[1]=s,e[2]=a,e[3]=i,e[4]=l,e[5]=r,e[6]=c,e[7]=o,e[8]=d,e[9]=h}else l=e[4],r=e[5],c=e[6],o=e[7],d=e[8],h=e[9];let g;e[11]!==c||e[12]!==o||e[13]!==d?(g=(0,S.jsx)("div",{className:c,style:o,children:d}),e[11]=c,e[12]=o,e[13]=d,e[14]=g):g=e[14];let p;e[15]!==h||e[16]!==g?(p=(0,S.jsx)("div",{className:h,children:g}),e[15]=h,e[16]=g,e[17]=p):p=e[17];let u;e[18]===r?u=e[19]:(u=r&&(0,S.jsx)(ai,{text:r}),e[18]=r,e[19]=u);let b;return e[20]!==l||e[21]!==p||e[22]!==u?(b=(0,S.jsxs)(l,{children:[p,u]}),e[20]=l,e[21]=p,e[22]=u,e[23]=b):b=e[23],b},Ts=t=>{let e=(0,mt.c)(8),{cell:i,isNoOutputPreview:s,isEditable:n,codeShown:a}=t;if(s&&n){let r;return e[0]===i?r=e[1]:(r=(0,S.jsx)(as,{cell:i}),e[0]=i,e[1]=r),r}if(s&&a){let r;return e[2]===i?r=e[3]:(r=(0,S.jsx)(ls,{cell:i}),e[2]=i,e[3]=r),r}let l;return e[4]!==i.id||e[5]!==i.output||e[6]!==i.status?(l=(0,S.jsx)(Mt,{cellId:i.id,status:i.status,output:i.output}),e[4]=i.id,e[5]=i.output,e[6]=i.status,e[7]=l):l=e[7],l},pn=({slideCells:t,layout:e,setLayout:i,noOutputIds:s,activeIndex:n,onSlideChange:a,mode:l,configWidth:r,isEditable:c=!1})=>{var bt,kt;let o=(0,C.useRef)(null),d=(0,C.useRef)(null),{width:h,height:g}=sl(o),p=on(Ml),u=(0,C.useMemo)(()=>p?[]:[Ja],[p]),[b,y]=(0,C.useState)(!1),N=Fl(t),H=!Bl()&&N,L=H&&b,A=n==null?void 0:t[n],x=A??t.at(0),q=(0,C.useMemo)(()=>Jr({cells:t,getType:D=>{var G;return s.has(D.id)?"skip":((G=e.cells.get(D.id))==null?void 0:G.type)??"slide"}}),[t,s,e.cells]),z=A?(bt=e.cells.get(A.id))==null?void 0:bt.type:void 0,$=A!=null&&s.has(A.id),_=z==="skip"||$?A:null,{cellToTarget:T,targetToCellIndex:Q}=(0,C.useMemo)(()=>Yr({composition:q,cells:t,getId:D=>D.id}),[q,t]),B=((kt=e.deck)==null?void 0:kt.transition)??"slide",v=(0,C.useMemo)(()=>{let D=new URL(window.location.href);return D.searchParams.set("kiosk","true"),D.searchParams.set("show-chrome","false"),D.toString()},[]),R=(0,C.useMemo)(()=>({embedded:!0,width:h,height:g,center:!1,minScale:.2,maxScale:2,transition:B,keyboardCondition:D=>!yi.fromInput(D),url:v}),[h,g,B,v]),P=Be(D=>{let G=ta({activeIndex:n,cells:t,cellToTarget:T,getId:je=>je.id}),ie=G&&ia(D.getIndices(),G);ie&&(D.slide(ie.h,ie.v,ie.f),Ya(D))});(0,C.useEffect)(()=>{let D=d.current;D!=null&&P(D)},[n,T,t,P]);let W=Be(()=>{(0,C.startTransition)(()=>y(D=>!D))}),te=Be(D=>{var ie;P(D),H&&D.addKeyBinding({keyCode:67,key:"C",description:"Toggle code editor"},W);let G=(ie=D.getSlidesElement())==null?void 0:ie.closest(".reveal");G instanceof HTMLElement&&(G.tabIndex=-1,G.focus({preventScroll:!0}))}),F=(0,C.useMemo)(()=>{if(!A)return null;let D=T.get(A.id);return D?{h:D.h,v:D.v}:null},[A,T]),V=Be(()=>{if(_!=null)return;let D=d.current;if(!D)return;let G=ea(Q,D.getIndices());G!=null&&(a==null||a(G))}),K=Be(D=>{if(!_||n==null||yi.fromInput(D))return;let G=il(D);if(G===0)return;D.preventDefault(),D.stopPropagation();let ie=n+G;ie<0||ie>=t.length||(a==null||a(ie))}),ce=Be(()=>{V(),nl(d.current)});$l(document,"keydown",K,{capture:!0});let qe=$?"Hidden as there is no output":"Skipped in presentation",le=(0,S.jsx)("div",{ref:o,className:"h-full w-full min-w-0 flex items-center justify-center overflow-hidden",children:(0,S.jsxs)("div",{className:"group relative",style:{width:h,height:g},children:[(0,S.jsx)(ar,{deckRef:d,className:"aspect-video w-full overflow-hidden border rounded bg-background mo-slides-theme prose-slides focus:outline-none focus-visible:outline-none",config:R,onReady:te,onSlideChange:ce,onFragmentShown:V,onFragmentHidden:V,plugins:u,children:q.stacks.map((D,G)=>{if(D.subslides.length===1){let ie=(F==null?void 0:F.h)===G&&(F==null?void 0:F.v)===0;return(0,S.jsx)(li,{subslide:D.subslides[0],showCode:L&&ie,isEditable:c,slideConfigs:e.cells},G)}return(0,S.jsx)(ur,{children:D.subslides.map((ie,je)=>{let oi=(F==null?void 0:F.h)===G&&(F==null?void 0:F.v)===je;return(0,S.jsx)(li,{subslide:ie,showCode:L&&oi,isEditable:c,slideConfigs:e.cells},je)})},G)})}),_&&(0,S.jsxs)("div",{className:"absolute inset-0 z-10 border rounded bg-background flex flex-col overflow-hidden","aria-label":qe,children:[(0,S.jsxs)("div",{className:"flex items-center gap-1.5 px-3 py-1.5 text-xs text-muted-foreground border-b bg-muted/40",children:[(0,S.jsx)(Zl,{className:"h-3.5 w-3.5"}),(0,S.jsx)("span",{children:qe})]}),(0,S.jsx)("div",{className:"flex-1 overflow-auto flex",children:(0,S.jsx)("div",{className:$&&(c||L)?"mo-slide-content flex flex-col gap-3":"mo-slide-content",style:{margin:"auto 20px"},children:(0,S.jsx)(Ts,{cell:_,isNoOutputPreview:$,isEditable:c,codeShown:L})})})]},_.id),(0,S.jsxs)("div",{className:"absolute top-2 right-2 z-20 opacity-0 group-hover:opacity-70 text-muted-foreground transition-opacity",children:[H&&(0,S.jsx)(dn,{content:L?"Hide code (C)":"Show code (C)",children:(0,S.jsx)(un,{"data-testid":"marimo-plugin-slides-toggle-code",variant:"ghost",size:"icon",className:It("text-muted-foreground h-7 w-7",L&&"text-foreground bg-muted"),"aria-pressed":L,"aria-label":L?"Hide code":"Show code",onClick:W,children:(0,S.jsx)(Ol,{className:"h-4 w-4"})})}),(0,S.jsx)(dn,{content:"Fullscreen (F)",children:(0,S.jsx)(un,{"data-testid":"marimo-plugin-slides-fullscreen",variant:"ghost",size:"icon",className:"text-muted-foreground h-7 w-7","aria-label":"Enter fullscreen",onClick:()=>{var D,G;(G=(D=d.current)==null?void 0:D.getViewportElement())==null||G.requestFullscreen().catch(ie=>{zl.error("Failed to request fullscreen",ie)})},children:(0,S.jsx)(_l,{className:"h-4 w-4"})})})]})]})});return l==="read"?(0,S.jsx)("div",{className:"flex-1 min-w-0 flex flex-row gap-3",children:le}):(0,S.jsxs)("div",{className:"flex-1 min-w-0 flex flex-row gap-3",children:[(0,S.jsxs)(ro,{direction:"vertical",autoSaveId:"marimo:slides:notes-panel",className:"flex-1 min-w-0",children:[(0,S.jsx)(hn,{defaultSize:92,minSize:60,children:le}),(0,S.jsx)(ao,{className:"mo-slides-notes-resize",hitAreaMargins:{coarse:12,fine:4}}),(0,S.jsx)(hn,{defaultSize:10,minSize:4,collapsible:!0,collapsedSize:4,children:(0,S.jsx)(aa,{layout:e,setLayout:i,cellId:x==null?void 0:x.id})})]}),(0,S.jsx)(Vl,{configWidth:r,layout:e,setLayout:i,activeConfigCell:x})]})}});export{oo as __tla,pn as default};
1066
+ `}strong({tokens:t}){return`<strong>${this.parser.parseInline(t)}</strong>`}em({tokens:t}){return`<em>${this.parser.parseInline(t)}</em>`}codespan({text:t}){return`<code>${ve(t,!0)}</code>`}br(t){return"<br>"}del({tokens:t}){return`<del>${this.parser.parseInline(t)}</del>`}link({href:t,title:e,tokens:i}){let s=this.parser.parseInline(i),n=Ss(t);if(n===null)return s;t=n;let a='<a href="'+t+'"';return e&&(a+=' title="'+ve(e)+'"'),a+=">"+s+"</a>",a}image({href:t,title:e,text:i,tokens:s}){s&&(i=this.parser.parseInline(s,this.parser.textRenderer));let n=Ss(t);if(n===null)return ve(i);t=n;let a=`<img src="${t}" alt="${ve(i)}"`;return e&&(a+=` title="${ve(e)}"`),a+=">",a}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:ve(t.text)}},li=class{strong({text:t}){return t}em({text:t}){return t}codespan({text:t}){return t}del({text:t}){return t}html({text:t}){return t}text({text:t}){return t}link({text:t}){return""+t}image({text:t}){return""+t}br(){return""}checkbox({raw:t}){return t}},pe=class Ei{constructor(e){C(this,"options");C(this,"renderer");C(this,"textRenderer");this.options=e||Ne,this.options.renderer=this.options.renderer||new mt,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new li}static parse(e,i){return new Ei(i).parse(e)}static parseInline(e,i){return new Ei(i).parseInline(e)}parse(e){var s,n;let i="";for(let a=0;a<e.length;a++){let l=e[a];if((n=(s=this.options.extensions)==null?void 0:s.renderers)!=null&&n[l.type]){let c=l,o=this.options.extensions.renderers[c.type].call({parser:this},c);if(o!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(c.type)){i+=o||"";continue}}let r=l;switch(r.type){case"space":i+=this.renderer.space(r);break;case"hr":i+=this.renderer.hr(r);break;case"heading":i+=this.renderer.heading(r);break;case"code":i+=this.renderer.code(r);break;case"table":i+=this.renderer.table(r);break;case"blockquote":i+=this.renderer.blockquote(r);break;case"list":i+=this.renderer.list(r);break;case"checkbox":i+=this.renderer.checkbox(r);break;case"html":i+=this.renderer.html(r);break;case"def":i+=this.renderer.def(r);break;case"paragraph":i+=this.renderer.paragraph(r);break;case"text":i+=this.renderer.text(r);break;default:{let c='Token with "'+r.type+'" type was not found.';if(this.options.silent)return console.error(c),"";throw Error(c)}}}return i}parseInline(e,i=this.renderer){var n,a;let s="";for(let l=0;l<e.length;l++){let r=e[l];if((a=(n=this.options.extensions)==null?void 0:n.renderers)!=null&&a[r.type]){let o=this.options.extensions.renderers[r.type].call({parser:this},r);if(o!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(r.type)){s+=o||"";continue}}let c=r;switch(c.type){case"escape":s+=i.text(c);break;case"html":s+=i.html(c);break;case"link":s+=i.link(c);break;case"image":s+=i.image(c);break;case"checkbox":s+=i.checkbox(c);break;case"strong":s+=i.strong(c);break;case"em":s+=i.em(c);break;case"codespan":s+=i.codespan(c);break;case"br":s+=i.br(c);break;case"del":s+=i.del(c);break;case"text":s+=i.text(c);break;default:{let o='Token with "'+c.type+'" type was not found.';if(this.options.silent)return console.error(o),"";throw Error(o)}}}return s}},Xe=(bt=class{constructor(t){C(this,"options");C(this,"block");this.options=t||Ne}preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}emStrongMask(t){return t}provideLexer(){return this.block?he.lex:he.lexInline}provideParser(){return this.block?pe.parse:pe.parseInline}},C(bt,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),C(bt,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),bt),$e=new class{constructor(...t){C(this,"defaults",Jt());C(this,"options",this.setOptions);C(this,"parse",this.parseMarkdown(!0));C(this,"parseInline",this.parseMarkdown(!1));C(this,"Parser",pe);C(this,"Renderer",mt);C(this,"TextRenderer",li);C(this,"Lexer",he);C(this,"Tokenizer",gt);C(this,"Hooks",Xe);this.use(...t)}walkTokens(t,e){var s,n;let i=[];for(let a of t)switch(i=i.concat(e.call(this,a)),a.type){case"table":{let l=a;for(let r of l.header)i=i.concat(this.walkTokens(r.tokens,e));for(let r of l.rows)for(let c of r)i=i.concat(this.walkTokens(c.tokens,e));break}case"list":{let l=a;i=i.concat(this.walkTokens(l.items,e));break}default:{let l=a;(n=(s=this.defaults.extensions)==null?void 0:s.childTokens)!=null&&n[l.type]?this.defaults.extensions.childTokens[l.type].forEach(r=>{let c=l[r].flat(1/0);i=i.concat(this.walkTokens(c,e))}):l.tokens&&(i=i.concat(this.walkTokens(l.tokens,e)))}}return i}use(...t){let e=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(i=>{let s={...i};if(s.async=this.defaults.async||s.async||!1,i.extensions&&(i.extensions.forEach(n=>{if(!n.name)throw Error("extension name required");if("renderer"in n){let a=e.renderers[n.name];a?e.renderers[n.name]=function(...l){let r=n.renderer.apply(this,l);return r===!1&&(r=a.apply(this,l)),r}:e.renderers[n.name]=n.renderer}if("tokenizer"in n){if(!n.level||n.level!=="block"&&n.level!=="inline")throw Error("extension level must be 'block' or 'inline'");let a=e[n.level];a?a.unshift(n.tokenizer):e[n.level]=[n.tokenizer],n.start&&(n.level==="block"?e.startBlock?e.startBlock.push(n.start):e.startBlock=[n.start]:n.level==="inline"&&(e.startInline?e.startInline.push(n.start):e.startInline=[n.start]))}"childTokens"in n&&n.childTokens&&(e.childTokens[n.name]=n.childTokens)}),s.extensions=e),i.renderer){let n=this.defaults.renderer||new mt(this.defaults);for(let a in i.renderer){if(!(a in n))throw Error(`renderer '${a}' does not exist`);if(["options","parser"].includes(a))continue;let l=a,r=i.renderer[l],c=n[l];n[l]=(...o)=>{let u=r.apply(n,o);return u===!1&&(u=c.apply(n,o)),u||""}}s.renderer=n}if(i.tokenizer){let n=this.defaults.tokenizer||new gt(this.defaults);for(let a in i.tokenizer){if(!(a in n))throw Error(`tokenizer '${a}' does not exist`);if(["options","rules","lexer"].includes(a))continue;let l=a,r=i.tokenizer[l],c=n[l];n[l]=(...o)=>{let u=r.apply(n,o);return u===!1&&(u=c.apply(n,o)),u}}s.tokenizer=n}if(i.hooks){let n=this.defaults.hooks||new Xe;for(let a in i.hooks){if(!(a in n))throw Error(`hook '${a}' does not exist`);if(["options","block"].includes(a))continue;let l=a,r=i.hooks[l],c=n[l];Xe.passThroughHooks.has(a)?n[l]=o=>{if(this.defaults.async&&Xe.passThroughHooksRespectAsync.has(a))return(async()=>{let h=await r.call(n,o);return c.call(n,h)})();let u=r.call(n,o);return c.call(n,u)}:n[l]=(...o)=>{if(this.defaults.async)return(async()=>{let h=await r.apply(n,o);return h===!1&&(h=await c.apply(n,o)),h})();let u=r.apply(n,o);return u===!1&&(u=c.apply(n,o)),u}}s.hooks=n}if(i.walkTokens){let n=this.defaults.walkTokens,a=i.walkTokens;s.walkTokens=function(l){let r=[];return r.push(a.call(this,l)),n&&(r=r.concat(n.call(this,l))),r}}this.defaults={...this.defaults,...s}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,e){return he.lex(t,e??this.defaults)}parser(t,e){return pe.parse(t,e??this.defaults)}parseMarkdown(t){return(e,i)=>{let s={...i},n={...this.defaults,...s},a=this.onError(!!n.silent,!!n.async);if(this.defaults.async===!0&&s.async===!1)return a(Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof e>"u"||e===null)return a(Error("marked(): input parameter is undefined or null"));if(typeof e!="string")return a(Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected"));if(n.hooks&&(n.hooks.options=n,n.hooks.block=t),n.async)return(async()=>{let l=n.hooks?await n.hooks.preprocess(e):e,r=await(n.hooks?await n.hooks.provideLexer():t?he.lex:he.lexInline)(l,n),c=n.hooks?await n.hooks.processAllTokens(r):r;n.walkTokens&&await Promise.all(this.walkTokens(c,n.walkTokens));let o=await(n.hooks?await n.hooks.provideParser():t?pe.parse:pe.parseInline)(c,n);return n.hooks?await n.hooks.postprocess(o):o})().catch(a);try{n.hooks&&(e=n.hooks.preprocess(e));let l=(n.hooks?n.hooks.provideLexer():t?he.lex:he.lexInline)(e,n);n.hooks&&(l=n.hooks.processAllTokens(l)),n.walkTokens&&this.walkTokens(l,n.walkTokens);let r=(n.hooks?n.hooks.provideParser():t?pe.parse:pe.parseInline)(l,n);return n.hooks&&(r=n.hooks.postprocess(r)),r}catch(l){return a(l)}}}onError(t,e){return i=>{if(i.message+=`
1067
+ Please report this to https://github.com/markedjs/marked.`,t){let s="<p>An error occurred:</p><pre>"+ve(i.message+"",!0)+"</pre>";return e?Promise.resolve(s):s}if(e)return Promise.reject(i);throw i}}};function K(t,e){return $e.parse(t,e)}K.options=K.setOptions=function(t){return $e.setOptions(t),K.defaults=$e.defaults,os(K.defaults),K},K.getDefaults=Jt,K.defaults=Ne,K.use=function(...t){return $e.use(...t),K.defaults=$e.defaults,os(K.defaults),K},K.walkTokens=function(t,e){return $e.walkTokens(t,e)},K.parseInline=$e.parseInline,K.Parser=pe,K.parser=pe.parse,K.Renderer=mt,K.TextRenderer=li,K.Lexer=he,K.lexer=he.lex,K.Tokenizer=gt,K.Hooks=Xe,K.parse=K,K.options,K.setOptions,K.use,K.walkTokens,K.parseInline,pe.parse,he.lex;var Ja=()=>{let t,e=null,i;function s(){if(e&&!e.closed)e.focus();else{if(e=window.open("about:blank","reveal.js - Notes","width=1100,height=700"),e.marked=K,e.document.write(ua),!e){alert("Speaker view popup failed to open. Please make sure popups are allowed and reopen the speaker view.");return}a()}}function n(h){e&&!e.closed?e.focus():(e=h,window.addEventListener("message",o),u())}function a(){let h=i.getConfig().url,g=typeof h=="string"?h:window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search;t=setInterval(function(){e.postMessage(JSON.stringify({namespace:"reveal-notes",type:"connect",state:i.getState(),url:g}),"*")},500),window.addEventListener("message",o)}function l(h,g,p){let d=i[h].apply(i,g);e.postMessage(JSON.stringify({namespace:"reveal-notes",type:"return",result:d,callId:p}),"*")}function r(h){let g=i.getCurrentSlide(),p=g.querySelectorAll("aside.notes"),d=g.querySelector(".current-fragment"),b={namespace:"reveal-notes",type:"state",notes:"",markdown:!1,whitespace:"normal",state:i.getState()};if(g.hasAttribute("data-notes")&&(b.notes=g.getAttribute("data-notes"),b.whitespace="pre-wrap"),d){let y=d.querySelector("aside.notes");y?(b.notes=y.innerHTML,b.markdown=typeof y.getAttribute("data-markdown")=="string",p=null):d.hasAttribute("data-notes")&&(b.notes=d.getAttribute("data-notes"),b.whitespace="pre-wrap",p=null)}p&&p.length&&(p=Array.from(p).filter(y=>y.closest(".fragment")===null),b.notes=p.map(y=>y.innerHTML).join(`
1068
+ `),b.markdown=p[0]&&typeof p[0].getAttribute("data-markdown")=="string"),e.postMessage(JSON.stringify(b),"*")}function c(h){try{return window.location.origin===h.source.location.origin}catch{return!1}}function o(h){if(c(h))try{let g=JSON.parse(h.data);g&&g.namespace==="reveal-notes"&&g.type==="connected"?(clearInterval(t),u()):g&&g.namespace==="reveal-notes"&&g.type==="call"&&l(g.methodName,g.arguments,g.callId)}catch{}}function u(){i.on("slidechanged",r),i.on("fragmentshown",r),i.on("fragmenthidden",r),i.on("overviewhidden",r),i.on("overviewshown",r),i.on("paused",r),i.on("resumed",r),i.on("previewiframe",r),i.on("previewimage",r),i.on("previewvideo",r),i.on("closeoverlay",r),r()}return{id:"notes",init:function(h){i=h,/receiver/i.test(window.location.search)||(window.location.search.match(/(\?|\&)notes/gi)===null?window.addEventListener("message",g=>{if(!e&&typeof g.data=="string"){let p;try{p=JSON.parse(g.data)}catch{}p&&p.namespace==="reveal-notes"&&p.type==="heartbeat"&&n(g.source)}}):s(),i.addKeyBinding({keyCode:83,key:"S",description:"Speaker notes view"},function(){s()}))},open:s}},ft=ki(),As=16/9;function Ga(t){let e=t.getSlidesElement();if(e)for(let i of e.querySelectorAll("section.stack[data-previous-indexv]"))i.removeAttribute("data-previous-indexv")}var el=new Set([" ","Spacebar","ArrowRight","ArrowDown","PageDown"]),tl=new Set(["ArrowLeft","ArrowUp","PageUp"]);function il(t){return el.has(t.key)?1:tl.has(t.key)?-1:0}function sl(t){let e=(0,ft.c)(4),i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i={width:960,height:540},e[0]=i):i=e[0];let[s,n]=(0,L.useState)(i),a,l;return e[1]===t?(a=e[2],l=e[3]):(a=()=>{let r=t.current;if(!r)return;let c=new ResizeObserver(o=>{let{width:u,height:h}=o[0].contentRect;if(u<=0||h<=0)return;let g=Math.min(u,h*As),p=g/As;n({width:Math.round(g),height:Math.round(p)})});return c.observe(r),()=>c.disconnect()},l=[t],e[1]=t,e[2]=a,e[3]=l),(0,L.useEffect)(a,l),s}function nl(t){var e;(e=t==null?void 0:t.getCurrentSlide())!=null&&e.querySelector(".vega-embed, marimo-vega")&&requestAnimationFrame(()=>{window.dispatchEvent(new Event("resize"))})}let oi,ci,Ts;oi=t=>{let e=(0,ft.c)(6),{text:i}=t,s,n;if(e[0]!==i){let l=i.split(`
1069
+ `);s="notes",n=l.map((r,c)=>{let o=c===l.length-1;return r==="---"?(0,S.jsx)("hr",{},c):(0,S.jsxs)(L.Fragment,{children:[r,!o&&(0,S.jsx)("br",{})]},c)}),e[0]=i,e[1]=s,e[2]=n}else s=e[1],n=e[2];let a;return e[3]!==s||e[4]!==n?(a=(0,S.jsx)("aside",{className:s,children:n}),e[3]=s,e[4]=n,e[5]=a):a=e[5],a},ci=t=>{let e=(0,ft.c)(24),{subslide:i,showCode:s,isEditable:n,slideConfigs:a}=t,l,r,c,o,u,h;if(e[0]!==n||e[1]!==s||e[2]!==a||e[3]!==i){let{slideLevel:y,cumulativeByBlock:z}=da(i,a);r=y,l=dr,h="h-full w-full overflow-auto flex",c=s?"mo-slide-content flex flex-col gap-3":"mo-slide-content",e[10]===Symbol.for("react.memo_cache_sentinel")?(o={margin:"auto 20px"},e[10]=o):o=e[10],u=i.blocks.map((H,N)=>{let A=H.cells.map(x=>s?n?(0,S.jsx)(as,{cell:x},x.id):(0,S.jsx)(ls,{cell:x},x.id):(0,S.jsx)(zt,{cellId:x.id,status:x.status,output:x.output},x.id));if(H.isFragment){let x=z.get(N);return(0,S.jsxs)(Yr,{as:"div",children:[A,x&&(0,S.jsx)(oi,{text:x})]},N)}return(0,S.jsx)(L.Fragment,{children:A},N)}),e[0]=n,e[1]=s,e[2]=a,e[3]=i,e[4]=l,e[5]=r,e[6]=c,e[7]=o,e[8]=u,e[9]=h}else l=e[4],r=e[5],c=e[6],o=e[7],u=e[8],h=e[9];let g;e[11]!==c||e[12]!==o||e[13]!==u?(g=(0,S.jsx)("div",{className:c,style:o,children:u}),e[11]=c,e[12]=o,e[13]=u,e[14]=g):g=e[14];let p;e[15]!==h||e[16]!==g?(p=(0,S.jsx)("div",{className:h,children:g}),e[15]=h,e[16]=g,e[17]=p):p=e[17];let d;e[18]===r?d=e[19]:(d=r&&(0,S.jsx)(oi,{text:r}),e[18]=r,e[19]=d);let b;return e[20]!==l||e[21]!==p||e[22]!==d?(b=(0,S.jsxs)(l,{children:[p,d]}),e[20]=l,e[21]=p,e[22]=d,e[23]=b):b=e[23],b},Ts=t=>{let e=(0,ft.c)(8),{cell:i,isNoOutputPreview:s,isEditable:n,codeShown:a}=t;if(s&&n){let r;return e[0]===i?r=e[1]:(r=(0,S.jsx)(as,{cell:i}),e[0]=i,e[1]=r),r}if(s&&a){let r;return e[2]===i?r=e[3]:(r=(0,S.jsx)(ls,{cell:i}),e[2]=i,e[3]=r),r}let l;return e[4]!==i.id||e[5]!==i.output||e[6]!==i.status?(l=(0,S.jsx)(zt,{cellId:i.id,status:i.status,output:i.output}),e[4]=i.id,e[5]=i.output,e[6]=i.status,e[7]=l):l=e[7],l},pn=({slideCells:t,layout:e,setLayout:i,noOutputIds:s,activeIndex:n,onSlideChange:a,mode:l,configWidth:r,isEditable:c=!1})=>{var yt,wt;let o=(0,L.useRef)(null),u=(0,L.useRef)(null),{width:h,height:g}=sl(o),p=_l()!=null,d=on(Ml),b=(0,L.useMemo)(()=>d?[]:[Ja],[d]),[y,z]=(0,L.useState)(!1),H=Vl(t),N=!Bl()&&H,A=N&&y,x=n==null?void 0:t[n],j=x??t.at(0),M=(0,L.useMemo)(()=>Jr({cells:t,getType:D=>{var X;return s.has(D.id)?"skip":((X=e.cells.get(D.id))==null?void 0:X.type)??"slide"}}),[t,s,e.cells]),B=x?(yt=e.cells.get(x.id))==null?void 0:yt.type:void 0,_=x!=null&&s.has(x.id),T=B==="skip"||_?x:null,{cellToTarget:U,targetToCellIndex:$}=(0,L.useMemo)(()=>Gr({composition:M,cells:t,getId:D=>D.id}),[M,t]),v=((wt=e.deck)==null?void 0:wt.transition)??"slide",R=(0,L.useMemo)(()=>{let D=new URL(window.location.href);return D.searchParams.set("kiosk","true"),D.searchParams.set("show-chrome","false"),D.toString()},[]),I=(0,L.useMemo)(()=>({embedded:!0,width:h,height:g,center:!1,minScale:.2,maxScale:2,transition:v,keyboardCondition:D=>!yi.fromInput(D),url:R}),[h,g,v,R]),W=Be(D=>{let X=ta({activeIndex:n,cells:t,cellToTarget:U,getId:qe=>qe.id}),ie=X&&ia(D.getIndices(),X);ie&&(D.slide(ie.h,ie.v,ie.f),Ga(D))});(0,L.useEffect)(()=>{let D=u.current;D!=null&&W(D)},[n,U,t,W]);let G=Be(()=>{(0,L.startTransition)(()=>z(D=>!D))}),te=Be(D=>{var ie;W(D),N&&D.addKeyBinding({keyCode:67,key:"C",description:"Toggle code editor"},G);let X=(ie=D.getSlidesElement())==null?void 0:ie.closest(".reveal");X instanceof HTMLElement&&(X.tabIndex=-1,X.focus({preventScroll:!0}))}),q=(0,L.useMemo)(()=>{if(!x)return null;let D=U.get(x.id);return D?{h:D.h,v:D.v}:null},[x,U]),V=Be(()=>{if(T!=null)return;let D=u.current;if(!D)return;let X=ea($,D.getIndices());X!=null&&(a==null||a(X))}),ce=Be(D=>{if(!T||n==null||yi.fromInput(D))return;let X=il(D);if(X===0)return;D.preventDefault(),D.stopPropagation();let ie=n+X;ie<0||ie>=t.length||(a==null||a(ie))}),Ye=Be(()=>{V(),nl(u.current)});$l(document,"keydown",ce,{capture:!0});let le=_?"Hidden as there is no output":"Skipped in presentation",kt=(0,S.jsx)("div",{ref:o,className:"h-full w-full min-w-0 flex items-center justify-center overflow-hidden",children:(0,S.jsxs)("div",{className:"group relative",style:{width:h,height:g},children:[(0,S.jsx)(ar,{deckRef:u,className:"aspect-video w-full overflow-hidden border rounded bg-background mo-slides-theme prose-slides focus:outline-none focus-visible:outline-none",config:I,onReady:te,onSlideChange:Ye,onFragmentShown:V,onFragmentHidden:V,plugins:b,children:M.stacks.map((D,X)=>{if(D.subslides.length===1){let ie=(q==null?void 0:q.h)===X&&(q==null?void 0:q.v)===0;return(0,S.jsx)(ci,{subslide:D.subslides[0],showCode:A&&ie,isEditable:c,slideConfigs:e.cells},X)}return(0,S.jsx)(ur,{children:D.subslides.map((ie,qe)=>{let Je=(q==null?void 0:q.h)===X&&(q==null?void 0:q.v)===qe;return(0,S.jsx)(ci,{subslide:ie,showCode:A&&Je,isEditable:c,slideConfigs:e.cells},qe)})},X)})}),T&&(0,S.jsxs)("div",{className:"absolute inset-0 z-10 border rounded bg-background flex flex-col overflow-hidden","aria-label":le,children:[(0,S.jsxs)("div",{className:"flex items-center gap-1.5 px-3 py-1.5 text-xs text-muted-foreground border-b bg-muted/40",children:[(0,S.jsx)(Ql,{className:"h-3.5 w-3.5"}),(0,S.jsx)("span",{children:le})]}),(0,S.jsx)("div",{className:"flex-1 overflow-auto flex",children:(0,S.jsx)("div",{className:_&&(c||A)?"mo-slide-content flex flex-col gap-3":"mo-slide-content",style:{margin:"auto 20px"},children:(0,S.jsx)(Ts,{cell:T,isNoOutputPreview:_,isEditable:c,codeShown:A})})})]},T.id),(0,S.jsxs)("div",{className:"absolute top-2 right-2 z-20 opacity-0 group-hover:opacity-70 text-muted-foreground transition-opacity",children:[N&&(0,S.jsx)(dn,{content:A?"Hide code (C)":"Show code (C)",children:(0,S.jsx)(un,{"data-testid":"marimo-plugin-slides-toggle-code",variant:"ghost",size:"icon",className:Nt("text-muted-foreground h-7 w-7",A&&"text-foreground bg-muted"),"aria-pressed":A,"aria-label":A?"Hide code":"Show code",onClick:G,children:(0,S.jsx)(Fl,{className:"h-4 w-4"})})}),(0,S.jsx)(dn,{content:"Fullscreen (F)",children:(0,S.jsx)(un,{"data-testid":"marimo-plugin-slides-fullscreen",variant:"ghost",size:"icon",className:"text-muted-foreground h-7 w-7","aria-label":"Enter fullscreen",onClick:()=>{var D,X;(X=(D=u.current)==null?void 0:D.getViewportElement())==null||X.requestFullscreen().catch(ie=>{zl.error("Failed to request fullscreen",ie)})},children:(0,S.jsx)(ql,{className:"h-4 w-4"})})})]})]})});return l==="read"?(0,S.jsx)("div",{className:"flex-1 min-w-0 flex flex-row gap-3",children:kt}):(0,S.jsxs)("div",{className:"flex-1 min-w-0 flex flex-row gap-3",children:[(0,S.jsxs)(ao,{direction:"vertical",autoSaveId:"marimo:slides:notes-panel",className:"flex-1 min-w-0",children:[(0,S.jsx)(hn,{defaultSize:92,minSize:60,children:kt}),(0,S.jsx)(lo,{className:"mo-slides-notes-resize",hitAreaMargins:{coarse:12,fine:4},disabled:p}),(0,S.jsx)(hn,{defaultSize:10,minSize:4,collapsible:!0,collapsedSize:4,children:(0,S.jsx)(aa,{layout:e,setLayout:i,cellId:j==null?void 0:j.id})})]}),(0,S.jsx)(Ul,{configWidth:r,layout:e,setLayout:i,activeConfigCell:j})]})}});export{co as __tla,pn as default};