8 lines
No EOL
61 KiB
JavaScript
8 lines
No EOL
61 KiB
JavaScript
/*!
|
|
* reveal.js 4.0.0-dev (Fri Mar 06 2020)
|
|
* https://revealjs.com
|
|
* MIT licensed
|
|
*
|
|
* Copyright (C) 2020 Hakim El Hattab, https://hakim.se
|
|
*/
|
|
!function(e){var t={};function a(r){if(t[r])return t[r].exports;var n=t[r]={i:r,l:!1,exports:{}};return e[r].call(n.exports,n,n.exports,a),n.l=!0,n.exports}a.m=e,a.c=t,a.d=function(e,t,r){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(a.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)a.d(r,n,function(t){return e[t]}.bind(null,n));return r},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="",a(a.s=0)}([function(e,t,a){"use strict";a.r(t);class r{constructor(e,t){this.diameter=100,this.diameter2=this.diameter/2,this.thickness=6,this.playing=!1,this.progress=0,this.progressOffset=1,this.container=e,this.progressCheck=t,this.canvas=document.createElement("canvas"),this.canvas.className="playback",this.canvas.width=this.diameter,this.canvas.height=this.diameter,this.canvas.style.width=this.diameter2+"px",this.canvas.style.height=this.diameter2+"px",this.context=this.canvas.getContext("2d"),this.container.appendChild(this.canvas),this.render()}setPlaying(e){const t=this.playing;this.playing=e,!t&&this.playing?this.animate():this.render()}animate(){const e=this.progress;this.progress=this.progressCheck(),e>.8&&this.progress<.2&&(this.progressOffset=this.progress),this.render(),this.playing&&requestAnimationFrame(this.animate.bind(this))}render(){let e=this.playing?this.progress:0,t=this.diameter2-this.thickness,a=this.diameter2,r=this.diameter2;this.progressOffset+=.1*(1-this.progressOffset);const n=-Math.PI/2+e*(2*Math.PI),i=-Math.PI/2+this.progressOffset*(2*Math.PI);this.context.save(),this.context.clearRect(0,0,this.diameter,this.diameter),this.context.beginPath(),this.context.arc(a,r,t+4,0,2*Math.PI,!1),this.context.fillStyle="rgba( 0, 0, 0, 0.4 )",this.context.fill(),this.context.beginPath(),this.context.arc(a,r,t,0,2*Math.PI,!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(a,r,t,i,n,!1),this.context.lineWidth=this.thickness,this.context.strokeStyle="#fff",this.context.stroke()),this.context.translate(a-14,r-14),this.playing?(this.context.fillStyle="#fff",this.context.fillRect(0,0,10,28),this.context.fillRect(18,0,10,28)):(this.context.beginPath(),this.context.translate(4,0),this.context.moveTo(0,0),this.context.lineTo(24,14),this.context.lineTo(0,28),this.context.fillStyle="#fff",this.context.fill()),this.context.restore()}on(e,t){this.canvas.addEventListener(e,t,!1)}off(e,t){this.canvas.removeEventListener(e,t,!1)}destroy(){this.playing=!1,this.canvas.parentNode&&this.container.removeChild(this.canvas)}}window.Reveal=function(){let e;const t=navigator.userAgent,a=/registerPlugin|registerKeyboardShortcut|addKeyBinding|addEventListener/;let n,i,o,s,l,d,c,u,p,f={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,history:!1,keyboard:!0,keyboardCondition:null,overview:!0,disableLayout:!1,center:!0,touch:!0,loop:!1,rtl:!1,navigationMode:"default",shuffle:!1,fragments:!0,fragmentInURL:!1,embedded:!1,help:!0,pause:!0,showNotes:!1,autoPlayMedia:null,preloadIframes:null,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,mouseWheel:!1,previewLinks:!1,postMessage:!0,postMessageEvents:!1,focusBodyOnPageVisibilityChange:!0,transition:"slide",transitionSpeed:"default",backgroundTransition:"fade",parallaxBackgroundImage:"",parallaxBackgroundSize:"",parallaxBackgroundRepeat:"",parallaxBackgroundPosition:"",parallaxBackgroundHorizontal:null,parallaxBackgroundVertical:null,pdfMaxPagesPerSlide:Number.POSITIVE_INFINITY,pdfSeparateFragments:!0,pdfPageHeightOffset:-1,viewDistance:3,mobileViewDistance:2,display:"block",hideInactiveCursor:!0,hideCursorTime:5e3,dependencies:[]},h=!1,g=!1,m=!1,v=null,b=null,y=!1,w=!1,A=[],k=1,E={layout:"",overview:""},S={},L={},x=[],M={},N=0,q=0,I=!1,P=0,T=!1,C=0,O=0,D=0,R=-1,B=!1,H={startX:0,startY:0,startCount:0,captured:!1,threshold:40},z={},j={};function $(){let e=Object.keys(L).length;if(0===e)W();else{let t=()=>{0==--e&&W()};for(let e in L){let a=L[e];if("function"==typeof a.init){let e=a.init();e&&"function"==typeof e.then?e.then(t):t()}else t()}}}function W(){x.length&&x.forEach(e=>{F(e.src,e.callback)}),g=!0,S.slides.classList.add("no-transition"),d?S.wrapper.classList.add("no-hover"):S.wrapper.classList.remove("no-hover"),/iphone/gi.test(t)?S.wrapper.classList.add("ua-iphone"):S.wrapper.classList.remove("ua-iphone"),S.background=X(S.wrapper,"div","backgrounds",null),S.progress=X(S.wrapper,"div","progress","<span></span>"),S.progressbar=S.progress.querySelector("span"),S.controls=X(S.wrapper,"aside","controls",`<button class="navigate-left" aria-label="${f.rtl?"next slide":"previous slide"}"><div class="controls-arrow"></div></button>\n\t\t\t<button class="navigate-right" aria-label="${f.rtl?"previous slide":"next slide"}"><div class="controls-arrow"></div></button>\n\t\t\t<button class="navigate-up" aria-label="above slide"><div class="controls-arrow"></div></button>\n\t\t\t<button class="navigate-down" aria-label="below slide"><div class="controls-arrow"></div></button>`),S.slideNumber=X(S.wrapper,"div","slide-number",""),S.speakerNotes=X(S.wrapper,"div","speaker-notes",null),S.speakerNotes.setAttribute("data-prevent-swipe",""),S.speakerNotes.setAttribute("tabindex","0"),S.pauseOverlay=X(S.wrapper,"div","pause-overlay",f.controls?'<button class="resume-button">Resume presentation</button>':null),S.wrapper.setAttribute("role","application"),S.controlsLeft=G(document.querySelectorAll(".navigate-left")),S.controlsRight=G(document.querySelectorAll(".navigate-right")),S.controlsUp=G(document.querySelectorAll(".navigate-up")),S.controlsDown=G(document.querySelectorAll(".navigate-down")),S.controlsPrev=G(document.querySelectorAll(".navigate-prev")),S.controlsNext=G(document.querySelectorAll(".navigate-next")),S.controlsRightArrow=S.controls.querySelector(".navigate-right"),S.controlsLeftArrow=S.controls.querySelector(".navigate-left"),S.controlsDownArrow=S.controls.querySelector(".navigate-down"),S.statusDiv=function(){let e=document.getElementById("aria-status-div");return e||(e=document.createElement("div"),e.style.position="absolute",e.style.height="1px",e.style.width="1px",e.style.overflow="hidden",e.style.clip="rect( 1px, 1px, 1px, 1px )",e.setAttribute("id","aria-status-div"),e.setAttribute("aria-live","polite"),e.setAttribute("aria-atomic","true"),S.wrapper.appendChild(e)),e}(),f.postMessage&&window.addEventListener("message",t=>{const r=t.data;if("string"==typeof r&&"{"===r.charAt(0)&&"}"===r.charAt(r.length-1)&&(r=JSON.parse(r),r.method&&"function"==typeof e[r.method]))if(!1===a.test(r.method)){var n=e[r.method].apply(e,r.args);le("callback",{method:r.method,result:n})}else console.warn('reveal.js: "'+r.method+'" is is blacklisted from the postMessage API')},!1),setInterval(()=>{0===S.wrapper.scrollTop&&0===S.wrapper.scrollLeft||(S.wrapper.scrollTop=0,S.wrapper.scrollLeft=0)},1e3),gt().forEach((function(e){G(e.querySelectorAll("section")).forEach((e,t)=>{t>0&&(e.classList.remove("present"),e.classList.remove("past"),e.classList.add("future"),e.setAttribute("aria-hidden","true"))})})),_(),ut(),Ve(!0),setTimeout(()=>{S.slides.classList.remove("no-transition"),S.wrapper.classList.add("ready"),se("ready",{indexh:n,indexv:i,currentSlide:s})},1),oe()&&(Q(),"complete"===document.readyState?V():window.addEventListener("load",V))}function F(e,t){const a=document.createElement("script");a.type="text/javascript",a.async=!1,a.defer=!1,a.src=e,t&&(a.onload=a.onreadystatechange=e=>{("load"===e.type||/loaded|complete/.test(a.readyState))&&(a.onload=a.onreadystatechange=a.onerror=null,t())},a.onerror=e=>{a.onload=a.onreadystatechange=a.onerror=null,t(new Error("Failed loading script: "+a.src+"\n"+e))});const r=document.querySelector("head");r.insertBefore(a,r.lastChild)}function U(e){let t="";if(3===e.nodeType)t+=e.textContent;else if(1===e.nodeType){let a=e.getAttribute("aria-hidden"),r="none"===window.getComputedStyle(e).display;"true"===a||r||G(e.childNodes).forEach(e=>{t+=U(e)})}return t.trim()}function V(){var e=me(window.innerWidth,window.innerHeight),t=Math.floor(e.width*(1+f.margin)),a=Math.floor(e.height*(1+f.margin)),r=e.width,n=e.height;re("@page{size:"+t+"px "+a+"px; margin: 0px;}"),re(".reveal section>img, .reveal section>video, .reveal section>iframe{max-width: "+r+"px; max-height:"+n+"px}"),document.body.classList.add("print-pdf"),document.body.style.width=t+"px",document.body.style.height=a+"px",ge(r,n);var i=f.slideNumber&&/all|print/i.test(f.showSlideNumber);G(S.wrapper.querySelectorAll(".slides section")).forEach((function(e){e.setAttribute("data-slide-number",Fe(e))})),G(S.wrapper.querySelectorAll(".slides section")).forEach((function(e){if(!1===e.classList.contains("stack")){var o=(t-r)/2,s=(a-n)/2,l=e.scrollHeight,d=Math.max(Math.ceil(l/a),1);(1===(d=Math.min(d,f.pdfMaxPagesPerSlide))&&f.center||e.classList.contains("center"))&&(s=Math.max((a-l)/2,0));var c=document.createElement("div");if(c.className="pdf-page",c.style.height=(a+f.pdfPageHeightOffset)*d+"px",e.parentNode.insertBefore(c,e),c.appendChild(e),e.style.left=o+"px",e.style.top=s+"px",e.style.width=r+"px",e.slideBackgroundElement&&c.insertBefore(e.slideBackgroundElement,e),f.showNotes){var u=kt(e);if(u){var p="string"==typeof f.showNotes?f.showNotes:"inline",h=document.createElement("div");h.classList.add("speaker-notes"),h.classList.add("speaker-notes-pdf"),h.setAttribute("data-layout",p),h.innerHTML=u,"separate-page"===p?c.parentNode.insertBefore(h,c.nextSibling):(h.style.left="8px",h.style.bottom="8px",h.style.width=t-16+"px",c.appendChild(h))}}if(i){var g=document.createElement("div");g.classList.add("slide-number"),g.classList.add("slide-number-pdf"),g.innerHTML=e.getAttribute("data-slide-number"),c.appendChild(g)}if(f.pdfSeparateFragments){var m,v,b=St(c.querySelectorAll(".fragment"),!0);b.forEach((function(e){m&&m.forEach((function(e){e.classList.remove("current-fragment")})),e.forEach((function(e){e.classList.add("visible","current-fragment")}));var t=c.cloneNode(!0);c.parentNode.insertBefore(t,(v||c).nextSibling),m=e,v=t})),b.forEach((function(e){e.forEach((function(e){e.classList.remove("visible","current-fragment")}))}))}else G(c.querySelectorAll(".fragment:not(.fade-out)")).forEach((function(e){e.classList.add("visible")}))}})),se("pdf-ready")}function X(e,t,a,r=""){let n=e.querySelectorAll("."+a);for(let t=0;t<n.length;t++){let a=n[t];if(a.parentNode===e)return a}let i=document.createElement(t);return i.className=a,i.innerHTML=r,e.appendChild(i),i}function Y(e,t){let a=document.createElement("div");a.className="slide-background "+e.className.replace(/present|past|future/,"");let r=document.createElement("div");return r.className="slide-background-content",a.appendChild(r),t.appendChild(a),e.slideBackgroundElement=a,e.slideBackgroundContentElement=r,K(e),a}function K(e){let t=e.slideBackgroundElement,a=e.slideBackgroundContentElement;e.classList.remove("has-dark-background"),e.classList.remove("has-light-background"),t.removeAttribute("data-loaded"),t.removeAttribute("data-background-hash"),t.removeAttribute("data-background-size"),t.removeAttribute("data-background-transition"),t.style.backgroundColor="",a.style.backgroundSize="",a.style.backgroundRepeat="",a.style.backgroundPosition="",a.style.backgroundImage="",a.style.opacity="",a.innerHTML="";let r={background:e.getAttribute("data-background"),backgroundSize:e.getAttribute("data-background-size"),backgroundImage:e.getAttribute("data-background-image"),backgroundVideo:e.getAttribute("data-background-video"),backgroundIframe:e.getAttribute("data-background-iframe"),backgroundColor:e.getAttribute("data-background-color"),backgroundRepeat:e.getAttribute("data-background-repeat"),backgroundPosition:e.getAttribute("data-background-position"),backgroundTransition:e.getAttribute("data-background-transition"),backgroundOpacity:e.getAttribute("data-background-opacity")};r.background&&(/^(http|file|\/\/)/gi.test(r.background)||/\.(svg|png|jpg|jpeg|gif|bmp)([?#\s]|$)/gi.test(r.background)?e.setAttribute("data-background-image",r.background):t.style.background=r.background),(r.background||r.backgroundColor||r.backgroundImage||r.backgroundVideo||r.backgroundIframe)&&t.setAttribute("data-background-hash",r.background+r.backgroundSize+r.backgroundImage+r.backgroundVideo+r.backgroundIframe+r.backgroundColor+r.backgroundRepeat+r.backgroundPosition+r.backgroundTransition+r.backgroundOpacity),r.backgroundSize&&t.setAttribute("data-background-size",r.backgroundSize),r.backgroundColor&&(t.style.backgroundColor=r.backgroundColor),r.backgroundTransition&&t.setAttribute("data-background-transition",r.backgroundTransition),e.hasAttribute("data-preload")&&t.setAttribute("data-preload",""),r.backgroundSize&&(a.style.backgroundSize=r.backgroundSize),r.backgroundRepeat&&(a.style.backgroundRepeat=r.backgroundRepeat),r.backgroundPosition&&(a.style.backgroundPosition=r.backgroundPosition),r.backgroundOpacity&&(a.style.opacity=r.backgroundOpacity);let n=r.backgroundColor;if(!n){let e=window.getComputedStyle(t);e&&e.backgroundColor&&(n=e.backgroundColor)}if(n){let t=ie(n);t&&0!==t.a&&(function(e){"string"==typeof e&&(e=ie(e));if(e)return(299*e.r+587*e.g+114*e.b)/1e3;return null}(n)<128?e.classList.add("has-dark-background"):e.classList.add("has-light-background"))}}function _(e){const t=f.transition;if("object"==typeof e&&Z(f,e),!1===g)return;const a=S.wrapper.querySelectorAll(".slides section").length;S.wrapper.classList.remove(t),S.wrapper.classList.add(f.transition),S.wrapper.setAttribute("data-transition-speed",f.transitionSpeed),S.wrapper.setAttribute("data-background-transition",f.backgroundTransition),S.controls.style.display=f.controls?"block":"none",S.progress.style.display=f.progress?"block":"none",S.controls.setAttribute("data-controls-layout",f.controlsLayout),S.controls.setAttribute("data-controls-back-arrows",f.controlsBackArrows),f.shuffle&&Be(),f.rtl?S.wrapper.classList.add("rtl"):S.wrapper.classList.remove("rtl"),f.center?S.wrapper.classList.add("center"):S.wrapper.classList.remove("center"),!1===f.pause&&Ie(),f.showNotes&&S.speakerNotes.setAttribute("data-layout","string"==typeof f.showNotes?f.showNotes:"inline"),f.mouseWheel?(document.addEventListener("DOMMouseScroll",Jt,!1),document.addEventListener("mousewheel",Jt,!1)):(document.removeEventListener("DOMMouseScroll",Jt,!1),document.removeEventListener("mousewheel",Jt,!1)),f.hideInactiveCursor?(document.addEventListener("mousemove",$t,!1),document.addEventListener("mousedown",$t,!1)):(Me(),document.removeEventListener("mousemove",$t,!1),document.removeEventListener("mousedown",$t,!1)),f.previewLinks?(de(),ce("[data-preview-link=false]")):(ce(),de("[data-preview-link]:not([data-preview-link=false])")),G(S.slides.querySelectorAll('[data-auto-animate]:not([data-auto-animate=""])')).forEach((function(e){e.dataset.autoAnimate=""})),Ye(),u&&u.parentNode&&(u.parentNode.removeChild(u),u=null),p&&(p.destroy(),p=null),a>1&&f.autoSlide&&f.autoSlideStoppable&&(p=new r(S.wrapper,()=>Math.min(Math.max((Date.now()-R)/O,0),1)),p.on("click",da),B=!1),!1===f.fragments&&G(S.slides.querySelectorAll(".fragment")).forEach(e=>{e.classList.add("visible"),e.classList.remove("current-fragment")});let n="none";f.slideNumber&&!oe()&&("all"===f.showSlideNumber||"speaker"===f.showSlideNumber&&ct())&&(n="block"),S.slideNumber.style.display=n,"default"!==f.navigationMode?S.wrapper.setAttribute("data-navigation-mode",f.navigationMode):S.wrapper.removeAttribute("data-navigation-mode"),"linear"===f.navigationMode?(z["→ , ↓ , SPACE , N , L , J"]="Next slide",z["← , ↑ , P , H , K"]="Previous slide"):(z["N , SPACE"]="Next slide",z.P="Previous slide",z["← , H"]="Navigate left",z["→ , L"]="Navigate right",z["↑ , K"]="Navigate up",z["↓ , J"]="Navigate down"),z["Home , Shift ←"]="First slide",z["End , Shift →"]="Last slide",z["B , ."]="Pause",z.F="Fullscreen",z["ESC, O"]="Slide overview",De()}function J(){T=!0,window.addEventListener("hashchange",na,!1),window.addEventListener("resize",ia,!1),f.touch&&("onpointerdown"in window?(S.wrapper.addEventListener("pointerdown",Yt,!1),S.wrapper.addEventListener("pointermove",Kt,!1),S.wrapper.addEventListener("pointerup",_t,!1)):window.navigator.msPointerEnabled?(S.wrapper.addEventListener("MSPointerDown",Yt,!1),S.wrapper.addEventListener("MSPointerMove",Kt,!1),S.wrapper.addEventListener("MSPointerUp",_t,!1)):(S.wrapper.addEventListener("touchstart",Ut,!1),S.wrapper.addEventListener("touchmove",Vt,!1),S.wrapper.addEventListener("touchend",Xt,!1))),f.keyboard&&(document.addEventListener("keydown",Ft,!1),document.addEventListener("keypress",Wt,!1)),f.progress&&S.progress&&S.progress.addEventListener("click",Qt,!1),S.pauseOverlay.addEventListener("click",Ie,!1),f.focusBodyOnPageVisibilityChange&&document.addEventListener("visibilitychange",oa,!1);let e=["touchstart","click"];t.match(/android/gi)&&(e=["touchstart"]),e.forEach((function(e){S.controlsLeft.forEach((function(t){t.addEventListener(e,Zt,!1)})),S.controlsRight.forEach((function(t){t.addEventListener(e,Gt,!1)})),S.controlsUp.forEach((function(t){t.addEventListener(e,ea,!1)})),S.controlsDown.forEach((function(t){t.addEventListener(e,ta,!1)})),S.controlsPrev.forEach((function(t){t.addEventListener(e,aa,!1)})),S.controlsNext.forEach((function(t){t.addEventListener(e,ra,!1)}))}))}function Q(){T=!1,document.removeEventListener("keydown",Ft,!1),document.removeEventListener("keypress",Wt,!1),window.removeEventListener("hashchange",na,!1),window.removeEventListener("resize",ia,!1),S.wrapper.removeEventListener("pointerdown",Yt,!1),S.wrapper.removeEventListener("pointermove",Kt,!1),S.wrapper.removeEventListener("pointerup",_t,!1),S.wrapper.removeEventListener("MSPointerDown",Yt,!1),S.wrapper.removeEventListener("MSPointerMove",Kt,!1),S.wrapper.removeEventListener("MSPointerUp",_t,!1),S.wrapper.removeEventListener("touchstart",Ut,!1),S.wrapper.removeEventListener("touchmove",Vt,!1),S.wrapper.removeEventListener("touchend",Xt,!1),S.pauseOverlay.removeEventListener("click",Ie,!1),f.progress&&S.progress&&S.progress.removeEventListener("click",Qt,!1),["touchstart","click"].forEach((function(e){S.controlsLeft.forEach((function(t){t.removeEventListener(e,Zt,!1)})),S.controlsRight.forEach((function(t){t.removeEventListener(e,Gt,!1)})),S.controlsUp.forEach((function(t){t.removeEventListener(e,ea,!1)})),S.controlsDown.forEach((function(t){t.removeEventListener(e,ta,!1)})),S.controlsPrev.forEach((function(t){t.removeEventListener(e,aa,!1)})),S.controlsNext.forEach((function(t){t.removeEventListener(e,ra,!1)}))}))}function Z(e,t){for(var a in t)e[a]=t[a];return e}function G(e){return Array.prototype.slice.call(e)}function ee(e){if("string"==typeof e){if("null"===e)return null;if("true"===e)return!0;if("false"===e)return!1;if(e.match(/^-?[\d\.]+$/))return parseFloat(e)}return e}function te(e,t){e.style.transform=t}function ae(e){"string"==typeof e.layout&&(E.layout=e.layout),"string"==typeof e.overview&&(E.overview=e.overview),E.layout?te(S.slides,E.layout+" "+E.overview):te(S.slides,E.overview)}function re(e){let t=document.createElement("style");t.type="text/css",t.styleSheet?t.styleSheet.cssText=e:t.appendChild(document.createTextNode(e)),document.getElementsByTagName("head")[0].appendChild(t)}function ne(e,t){let a=e.parentNode;for(;a;){let e=a.matches||a.matchesSelector||a.msMatchesSelector;if(e&&e.call(a,t))return a;a=a.parentNode}return null}function ie(e){let t=e.match(/^#([0-9a-f]{3})$/i);if(t&&t[1])return t=t[1],{r:17*parseInt(t.charAt(0),16),g:17*parseInt(t.charAt(1),16),b:17*parseInt(t.charAt(2),16)};let a=e.match(/^#([0-9a-f]{6})$/i);if(a&&a[1])return a=a[1],{r:parseInt(a.substr(0,2),16),g:parseInt(a.substr(2,2),16),b:parseInt(a.substr(4,2),16)};let r=e.match(/^rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)$/i);if(r)return{r:parseInt(r[1],10),g:parseInt(r[2],10),b:parseInt(r[3],10)};let n=e.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}function oe(){return/print-pdf/gi.test(window.location.search)}function se(e,t){let a=document.createEvent("HTMLEvents",1,2);a.initEvent(e,!0,!0),Z(a,t),S.wrapper.dispatchEvent(a),le(e)}function le(e,t){if(f.postMessageEvents&&window.parent!==window.self){let a={namespace:"reveal",eventName:e,state:Et()};Z(a,t),window.parent.postMessage(JSON.stringify(a),"*")}}function de(e="a"){G(document.querySelectorAll(e)).forEach(e=>{/^(http|www)/gi.test(e.getAttribute("href"))&&e.addEventListener("click",la,!1)})}function ce(e="a"){G(document.querySelectorAll(e)).forEach(e=>{/^(http|www)/gi.test(e.getAttribute("href"))&&e.removeEventListener("click",la,!1)})}function ue(e){"boolean"==typeof e?e?pe():fe():S.overlay?fe():pe()}function pe(){if(f.help){fe(),S.overlay=document.createElement("div"),S.overlay.classList.add("overlay"),S.overlay.classList.add("overlay-help"),S.wrapper.appendChild(S.overlay);let a='<p class="title">Keyboard Shortcuts</p><br/>';for(var e in a+="<table><th>KEY</th><th>ACTION</th>",z)a+=`<tr><td>${e}</td><td>${z[e]}</td></tr>`;for(var t in j)j[t].key&&j[t].description&&(a+=`<tr><td>${j[t].key}</td><td>${j[t].description}</td></tr>`);a+="</table>",S.overlay.innerHTML=`\n\t\t\t\t<header>\n\t\t\t\t\t<a class="close" href="#"><span class="icon"></span></a>\n\t\t\t\t</header>\n\t\t\t\t<div class="viewport">\n\t\t\t\t\t<div class="viewport-inner">${a}</div>\n\t\t\t\t</div>\n\t\t\t`,S.overlay.querySelector(".close").addEventListener("click",(function(e){fe(),e.preventDefault()}),!1)}}function fe(){S.overlay&&(S.overlay.parentNode.removeChild(S.overlay),S.overlay=null)}function he(){if(S.wrapper&&!oe()){if(!f.disableLayout){d&&document.documentElement.style.setProperty("--vh",.01*window.innerHeight+"px");const a=me(),r=k;ge(f.width,f.height),S.slides.style.width=a.width+"px",S.slides.style.height=a.height+"px",k=Math.min(a.presentationWidth/a.width,a.presentationHeight/a.height),k=Math.max(k,f.minScale),k=Math.min(k,f.maxScale),1===k?(S.slides.style.zoom="",S.slides.style.left="",S.slides.style.top="",S.slides.style.bottom="",S.slides.style.right="",ae({layout:""})):k>1&&M.zoom&&window.devicePixelRatio<2?(S.slides.style.zoom=k,S.slides.style.left="",S.slides.style.top="",S.slides.style.bottom="",S.slides.style.right="",ae({layout:""})):(S.slides.style.zoom="",S.slides.style.left="50%",S.slides.style.top="50%",S.slides.style.bottom="auto",S.slides.style.right="auto",ae({layout:"translate(-50%, -50%) scale("+k+")"}));const n=G(S.wrapper.querySelectorAll(".slides section"));for(var e=0,t=n.length;e<t;e++){const t=n[e];"none"!==t.style.display&&(f.center||t.classList.contains("center")?t.classList.contains("stack")?t.style.top=0:t.style.top=Math.max((a.height-t.scrollHeight)/2,0)+"px":t.style.top="")}r!==k&&se("resize",{oldScale:r,scale:k,size:a})}$e(),Xe(),Se()&&Ae()}}function ge(e,t){G(S.slides.querySelectorAll("section > .stretch")).forEach(a=>{var r=function(e,t=0){if(e){let a,r=e.style.height;return e.style.height="0px",e.parentNode.style.height="auto",a=t-e.parentNode.offsetHeight,e.style.height=r+"px",e.parentNode.style.removeProperty("height"),a}return t}(a,t);if(/(img|video)/gi.test(a.nodeName)){const t=a.naturalWidth||a.videoWidth,n=a.naturalHeight||a.videoHeight,i=Math.min(e/t,r/n);a.style.width=t*i+"px",a.style.height=n*i+"px"}else a.style.width=e+"px",a.style.height=r+"px"})}function me(e,t){const a={width:f.width,height:f.height,presentationWidth:e||S.wrapper.offsetWidth,presentationHeight:t||S.wrapper.offsetHeight};return a.presentationWidth-=a.presentationWidth*f.margin,a.presentationHeight-=a.presentationHeight*f.margin,"string"==typeof a.width&&/%$/.test(a.width)&&(a.width=parseInt(a.width,10)/100*a.presentationWidth),"string"==typeof a.height&&/%$/.test(a.height)&&(a.height=parseInt(a.height,10)/100*a.presentationHeight),a}function ve(e,t){"object"==typeof e&&"function"==typeof e.setAttribute&&e.setAttribute("data-previous-indexv",t||0)}function be(e){if("object"==typeof e&&"function"==typeof e.setAttribute&&e.classList.contains("stack")){const t=e.hasAttribute("data-start-indexv")?"data-start-indexv":"data-previous-indexv";return parseInt(e.getAttribute(t)||0,10)}return 0}function ye(){if(f.overview&&!Se()){m=!0,S.wrapper.classList.add("overview"),It(),S.slides.appendChild(S.background),G(S.wrapper.querySelectorAll(".slides section")).forEach(e=>{e.classList.contains("stack")||e.addEventListener("click",sa,!0)});const e=70,t=me();v=t.width+e,b=t.height+e,f.rtl&&(v=-v),ze(),we(),Ae(),he(),se("overviewshown",{indexh:n,indexv:i,currentSlide:s})}}function we(){G(S.wrapper.querySelectorAll(".slides>section")).forEach((e,t)=>{e.setAttribute("data-index-h",t),te(e,"translate3d("+t*v+"px, 0, 0)"),e.classList.contains("stack")&&G(e.querySelectorAll("section")).forEach((e,a)=>{e.setAttribute("data-index-h",t),e.setAttribute("data-index-v",a),te(e,"translate3d(0, "+a*b+"px, 0)")})}),G(S.background.childNodes).forEach((e,t)=>{te(e,"translate3d("+t*v+"px, 0, 0)"),G(e.querySelectorAll(".slide-background")).forEach((e,t)=>{te(e,"translate3d(0, "+t*b+"px, 0)")})})}function Ae(){const e=Math.min(window.innerWidth,window.innerHeight);ae({overview:["scale("+Math.max(e/5,150)/e+")","translateX("+-n*v+"px)","translateY("+-i*b+"px)"].join(" ")})}function ke(){f.overview&&(m=!1,S.wrapper.classList.remove("overview"),S.wrapper.classList.add("overview-deactivating"),setTimeout(()=>{S.wrapper.classList.remove("overview-deactivating")},1),S.wrapper.appendChild(S.background),G(S.wrapper.querySelectorAll(".slides section")).forEach(e=>{te(e,""),e.removeEventListener("click",sa,!0)}),G(S.background.querySelectorAll(".slide-background")).forEach(e=>{te(e,"")}),ae({overview:""}),Oe(n,i),he(),qt(),se("overviewhidden",{indexh:n,indexv:i,currentSlide:s}))}function Ee(e){"boolean"==typeof e?e?ye():ke():Se()?ke():ye()}function Se(){return m}function Le(e){let t="/",a=e||s,r=a?a.getAttribute("id"):null;r&&(r=encodeURIComponent(r));let n=ft(e);if(f.fragmentInURL||(n.f=void 0),"string"==typeof r&&r.length&&void 0===n.f)t="/"+r;else{let e=f.hashOneBasedIndex?1:0;(n.h>0||n.v>0||void 0!==n.f)&&(t+=n.h+e),(n.v>0||void 0!==n.f)&&(t+="/"+(n.v+e)),void 0!==n.f&&(t+="/"+n.f)}return t}function xe(e=s){return e&&e.parentNode&&!!e.parentNode.nodeName.match(/section/i)}function Me(){I&&(I=!1,S.wrapper.style.cursor="")}function Ne(){!1===I&&(I=!0,S.wrapper.style.cursor="none")}function qe(){if(f.pause){const e=S.wrapper.classList.contains("paused");It(),S.wrapper.classList.add("paused"),!1===e&&se("paused")}}function Ie(){const e=S.wrapper.classList.contains("paused");S.wrapper.classList.remove("paused"),qt(),e&&se("resumed")}function Pe(e){"boolean"==typeof e?e?qe():Ie():Te()?Ie():qe()}function Te(){return S.wrapper.classList.contains("paused")}function Ce(e){"boolean"==typeof e?e?Tt():Pt():B?Tt():Pt()}function Oe(t,a,r,l){o=s;const d=S.wrapper.querySelectorAll(".slides>section");if(0===d.length)return;void 0!==a||Se()||(a=be(d[t])),o&&o.parentNode&&o.parentNode.classList.contains("stack")&&ve(o.parentNode,i);const c=A.concat();A.length=0;let p=n||0,h=i||0;n=He(".slides>section",void 0===t?n:t),i=He(".slides>section.present>section",void 0===a?i:a),ze(),he(),Se()&&Ae();let g=d[n],m=g.querySelectorAll("section");s=m[i]||g,void 0!==r&&xt(r);let v=n!==p||i!==h;v||(o=null),o&&o!==s&&(o.classList.remove("present"),o.setAttribute("aria-hidden","true"),e.isFirstSlide()&&setTimeout(()=>{G(S.wrapper.querySelectorAll(".slides>section.stack")).forEach(e=>{ve(e,0)})},0));e:for(let e=0,t=A.length;e<t;e++){for(let t=0;t<c.length;t++)if(c[t]===A[e]){c.splice(t,1);continue e}document.documentElement.classList.add(A[e]),se(A[e])}for(;c.length;)document.documentElement.classList.remove(c.pop());v&&se("slidechanged",{indexh:n,indexv:i,previousSlide:o,currentSlide:s,origin:l}),!v&&o||(st(o),nt(s)),S.statusDiv.textContent=U(s),Ue(),$e(),Ve(),Xe(),We(),je(),Lt(),pt(),qt(),v&&o&&s&&!Se()&&o.hasAttribute("data-auto-animate")&&s.hasAttribute("data-auto-animate")&&(S.slides.classList.add("disable-slide-transitions"),setTimeout(()=>{S.slides.classList.remove("disable-slide-transitions")},0),f.autoAnimate&&function(t,a){Ye(),u&&u.parentNode&&(u.parentNode.removeChild(u),u=null);if(t.hasAttribute("data-auto-animate")&&a.hasAttribute("data-auto-animate")){u=u||document.createElement("style"),u.type="text/css",document.head.appendChild(u);let r=Ke(a);t.dataset.autoAnimate="pending",a.dataset.autoAnimate="pending";let n=function(e,t){let a=("function"==typeof f.autoAnimateMatcher?f.autoAnimateMatcher:Je)(e,t),r=[];return a.filter((e,t)=>{if(-1===r.indexOf(e.to))return r.push(e.to),!0})}(t,a).map((function(t){return function(t,a,r,n,i){t.dataset.autoAnimateTarget="",a.dataset.autoAnimateTarget=i;let o=Ke(a,n);void 0!==r.delay&&(o.delay=r.delay);void 0!==r.duration&&(o.duration=r.duration);void 0!==r.easing&&(o.easing=r.easing);let s=_e("from",t,r),l=_e("to",a,r);if(!1!==r.translate||!1!==r.scale){let t=e.getScale(),a={x:(s.x-l.x)/t,y:(s.y-l.y)/t,scaleX:s.width/l.width,scaleY:s.height/l.height};a.x=Math.round(1e3*a.x)/1e3,a.y=Math.round(1e3*a.y)/1e3,a.scaleX=Math.round(1e3*a.scaleX)/1e3,a.scaleX=Math.round(1e3*a.scaleX)/1e3;let n=!1!==r.translate&&(0!==a.x||0!==a.y),i=!1!==r.scale&&(0!==a.scaleX||0!==a.scaleY);if(n||i){let e=[];n&&e.push(`translate(${a.x}px, ${a.y}px)`),i&&e.push(`scale(${a.scaleX}, ${a.scaleY})`),s.styles.transform=e.join(" "),s.styles["transform-origin"]="top left",l.styles.transform="none"}}for(let e in l.styles){const t=l.styles[e],a=s.styles[e];t===a?delete l.styles[e]:(!0===t.explicitValue&&(l.styles[e]=t.value),!0===a.explicitValue&&(s.styles[e]=a.value))}let d="",c=Object.keys(l.styles);if(c.length>0){s.styles.transition="none",l.styles.transition=`all ${o.duration}s ${o.easing} ${o.delay}s`,l.styles["transition-property"]=c.join(", "),l.styles["will-change"]=c.join(", ");let e=Object.keys(s.styles).map((function(e){return e+": "+s.styles[e]+" !important;"})).join(""),t=Object.keys(l.styles).map((function(e){return e+": "+l.styles[e]+" !important;"})).join("");d='[data-auto-animate-target="'+i+'"] {'+e+'}[data-auto-animate="running"] [data-auto-animate-target="'+i+'"] {'+t+"}"}return d}(t.from,t.to,t.options||{},r,C++)}));"false"!==a.dataset.autoAnimateUnmatched&&!0===f.autoAnimateUnmatched&&(function e(t){return[].slice.call(t.children).reduce((t,a)=>{const r=a.querySelector("[data-auto-animate-target]");return a.hasAttribute("data-auto-animate-target")||r||t.push(a),a.querySelector("[data-auto-animate-target]")&&(t=t.concat(e(a))),t},[])}(a).forEach((function(e){e.dataset.autoAnimateTarget="unmatched"})),n.push(`[data-auto-animate="running"] [data-auto-animate-target="unmatched"] { transition: opacity ${.8*r.duration}s ease ${.2*r.duration}s; }`)),u.innerHTML=n.join(""),requestAnimationFrame(()=>{u&&(getComputedStyle(u).fontWeight,a.dataset.autoAnimate="running")}),se("autoanimate",{fromSlide:t,toSlide:a,sheet:u})}}(o,s))}function De(){Q(),J(),he(),O=f.autoSlide,qt(),oe(),S.background.innerHTML="",S.background.classList.add("no-transition"),G(S.wrapper.querySelectorAll(".slides>section")).forEach(e=>{let t=Y(e,S.background);G(e.querySelectorAll("section")).forEach(e=>{Y(e,t),t.classList.add("stack")})}),f.parallaxBackgroundImage?(S.background.style.backgroundImage='url("'+f.parallaxBackgroundImage+'")',S.background.style.backgroundSize=f.parallaxBackgroundSize,S.background.style.backgroundRepeat=f.parallaxBackgroundRepeat,S.background.style.backgroundPosition=f.parallaxBackgroundPosition,setTimeout(()=>{S.wrapper.classList.add("has-parallax-background")},1)):(S.background.style.backgroundImage="",S.wrapper.classList.remove("has-parallax-background")),pt(),gt().forEach(e=>{let t=G(e.querySelectorAll("section"));t.forEach((e,t)=>{St(e.querySelectorAll(".fragment"))}),0===t.length&&St(e.querySelectorAll(".fragment"))}),Ue(),$e(),We(),ze(),Ve(!0),f.showNotes&&S.slides.querySelectorAll("[data-notes], aside.notes").length>0?S.wrapper.classList.add("show-notes"):S.wrapper.classList.remove("show-notes"),je(),function(){let e=(e,t,a)=>{G(S.slides.querySelectorAll("iframe["+e+'*="'+t+'"]')).forEach(t=>{var r=t.getAttribute(e);r&&-1===r.indexOf(a)&&t.setAttribute(e,r+(/\?/.test(r)?"&":"?")+a)})};e("src","youtube.com/embed/","enablejsapi=1"),e("data-src","youtube.com/embed/","enablejsapi=1"),e("src","player.vimeo.com/","api=1"),e("data-src","player.vimeo.com/","api=1")}(),!1===f.autoPlayMedia?st(s,{unloadIframes:!1}):nt(s),Se()&&we()}function Re(e=s){return St(e.querySelectorAll(".fragment"))}function Be(){gt().forEach((e,t,a)=>{S.slides.insertBefore(e,a[Math.floor(Math.random()*a.length)])})}function He(e,t){let a=G(S.wrapper.querySelectorAll(e)),r=a.length,n=oe();if(r){f.loop&&(t%=r)<0&&(t=r+t),t=Math.max(Math.min(t,r-1),0);for(let e=0;e<r;e++){let r=a[e],i=f.rtl&&!xe(r);r.classList.remove("past","present","future"),r.setAttribute("hidden",""),r.setAttribute("aria-hidden","true"),r.querySelector("section")&&r.classList.add("stack"),n?r.classList.add("present"):e<t?(r.classList.add(i?"future":"past"),f.fragments&&G(r.querySelectorAll(".fragment")).forEach(e=>{e.classList.add("visible"),e.classList.remove("current-fragment")})):e>t&&(r.classList.add(i?"past":"future"),f.fragments&&G(r.querySelectorAll(".fragment.visible")).forEach(e=>{e.classList.remove("visible","current-fragment")}))}a[t].classList.add("present"),a[t].removeAttribute("hidden"),a[t].removeAttribute("aria-hidden");let e=a[t].getAttribute("data-state");e&&(A=A.concat(e.split(" ")))}else t=0;return t}function ze(){let e,t,a=gt(),r=a.length;if(r&&void 0!==n){let o=Se()?10:f.viewDistance;d&&(o=Se()?6:f.mobileViewDistance),oe()&&(o=Number.MAX_VALUE);for(let s=0;s<r;s++){let l=a[s],d=G(l.querySelectorAll("section")),c=d.length;if(e=Math.abs((n||0)-s)||0,f.loop&&(e=Math.abs(((n||0)-s)%(r-o))||0),e<o?et(l):tt(l),c){let a=be(l);for(let r=0;r<c;r++){let l=d[r];t=s===(n||0)?Math.abs((i||0)-r):Math.abs(r-a),e+t<o?et(l):tt(l)}}}bt()?S.wrapper.classList.add("has-vertical-slides"):S.wrapper.classList.remove("has-vertical-slides"),vt()?S.wrapper.classList.add("has-horizontal-slides"):S.wrapper.classList.remove("has-horizontal-slides")}}function je(){f.showNotes&&S.speakerNotes&&s&&!oe()&&(S.speakerNotes.innerHTML=kt()||'<span class="notes-placeholder">No notes on this slide.</span>')}function $e(){f.progress&&S.progressbar&&(S.progressbar.style.width=dt()*S.wrapper.offsetWidth+"px")}function We(){f.slideNumber&&S.slideNumber&&(S.slideNumber.innerHTML=Fe())}function Fe(e=s){let t,a="h.v";if("function"==typeof f.slideNumber)t=f.slideNumber(e);else switch("string"==typeof f.slideNumber&&(a=f.slideNumber),/c/.test(a)||1!==S.wrapper.querySelectorAll(".slides>section").length||(a="c"),t=[],a){case"c":t.push(lt(e)+1);break;case"c/t":t.push(lt(e)+1,"/",yt());break;default:let r=ft(e);t.push(r.h+1);let n="h/v"===a?"/":".";xe(e)&&t.push(n,r.v+1)}let r="#"+Le(e);return function(e,t,a,r="#"+Le()){return"number"!=typeof a||isNaN(a)?`<a href="${r}">\n\t\t\t\t\t<span class="slide-number-a">${e}</span>\n\t\t\t\t\t</a>`:`<a href="${r}">\n\t\t\t\t\t<span class="slide-number-a">${e}</span>\n\t\t\t\t\t<span class="slide-number-delimiter">${t}</span>\n\t\t\t\t\t<span class="slide-number-b">${a}</span>\n\t\t\t\t\t</a>`}(t[0],t[1],t[2],r)}function Ue(){let e=at(),t=rt();[...S.controlsLeft,...S.controlsRight,...S.controlsUp,...S.controlsDown,...S.controlsPrev,...S.controlsNext].forEach(e=>{e.classList.remove("enabled","fragmented"),e.setAttribute("disabled","disabled")}),e.left&&S.controlsLeft.forEach(e=>{e.classList.add("enabled"),e.removeAttribute("disabled")}),e.right&&S.controlsRight.forEach(e=>{e.classList.add("enabled"),e.removeAttribute("disabled")}),e.up&&S.controlsUp.forEach(e=>{e.classList.add("enabled"),e.removeAttribute("disabled")}),e.down&&S.controlsDown.forEach(e=>{e.classList.add("enabled"),e.removeAttribute("disabled")}),(e.left||e.up)&&S.controlsPrev.forEach(e=>{e.classList.add("enabled"),e.removeAttribute("disabled")}),(e.right||e.down)&&S.controlsNext.forEach(e=>{e.classList.add("enabled"),e.removeAttribute("disabled")}),s&&(t.prev&&S.controlsPrev.forEach(e=>{e.classList.add("fragmented","enabled"),e.removeAttribute("disabled")}),t.next&&S.controlsNext.forEach(e=>{e.classList.add("fragmented","enabled"),e.removeAttribute("disabled")}),xe(s)?(t.prev&&S.controlsUp.forEach(e=>{e.classList.add("fragmented","enabled"),e.removeAttribute("disabled")}),t.next&&S.controlsDown.forEach(e=>{e.classList.add("fragmented","enabled"),e.removeAttribute("disabled")})):(t.prev&&S.controlsLeft.forEach(e=>{e.classList.add("fragmented","enabled"),e.removeAttribute("disabled")}),t.next&&S.controlsRight.forEach(e=>{e.classList.add("fragmented","enabled"),e.removeAttribute("disabled")}))),f.controlsTutorial&&(!w&&e.down?S.controlsDownArrow.classList.add("highlight"):(S.controlsDownArrow.classList.remove("highlight"),f.rtl?!y&&e.left&&0===i?S.controlsLeftArrow.classList.add("highlight"):S.controlsLeftArrow.classList.remove("highlight"):!y&&e.right&&0===i?S.controlsRightArrow.classList.add("highlight"):S.controlsRightArrow.classList.remove("highlight")))}function Ve(e=!1){let t=null,a=f.rtl?"future":"past",r=f.rtl?"past":"future";if(G(S.background.childNodes).forEach((o,s)=>{o.classList.remove("past","present","future"),s<n?o.classList.add(a):s>n?o.classList.add(r):(o.classList.add("present"),t=o),(e||s===n)&&G(o.querySelectorAll(".slide-background")).forEach((e,a)=>{e.classList.remove("past","present","future"),a<i?e.classList.add("past"):a>i?e.classList.add("future"):(e.classList.add("present"),s===n&&(t=e))})}),l&&st(l,{unloadIframes:!Ge(l)}),t){nt(t);let e=t.querySelector(".slide-background-content");if(e){let t=e.style.backgroundImage||"";/\.gif/i.test(t)&&(e.style.backgroundImage="",window.getComputedStyle(e).opacity,e.style.backgroundImage=t)}let a=l?l.getAttribute("data-background-hash"):null,r=t.getAttribute("data-background-hash");r&&r===a&&t!==l&&S.background.classList.add("no-transition"),l=t}s&&["has-light-background","has-dark-background"].forEach(e=>{s.classList.contains(e)?S.wrapper.classList.add(e):S.wrapper.classList.remove(e)}),setTimeout(()=>{S.background.classList.remove("no-transition")},1)}function Xe(){if(f.parallaxBackgroundImage){let e,t,a=gt(),r=mt(),o=S.background.style.backgroundSize.split(" ");1===o.length?e=t=parseInt(o[0],10):(e=parseInt(o[0],10),t=parseInt(o[1],10));let s,l,d=S.background.offsetWidth,c=a.length;s="number"==typeof f.parallaxBackgroundHorizontal?f.parallaxBackgroundHorizontal:c>1?(e-d)/(c-1):0,l=s*n*-1;let u,p,h=S.background.offsetHeight,g=r.length;u="number"==typeof f.parallaxBackgroundVertical?f.parallaxBackgroundVertical:(t-h)/(g-1),p=g>0?u*i:0,S.background.style.backgroundPosition=l+"px "+-p+"px"}}function Ye(){G(S.wrapper.querySelectorAll("[data-auto-animate-target]")).forEach(e=>{delete e.dataset.autoAnimateTarget})}function Ke(e,t){let a={easing:f.autoAnimateEasing,duration:f.autoAnimateDuration,delay:0};if(a=Z(a,t),e.closest&&e.parentNode){let t=e.parentNode.closest("[data-auto-animate-target]");t&&(a=Ke(t,a))}return e.dataset.autoAnimateEasing&&(a.easing=e.dataset.autoAnimateEasing),e.dataset.autoAnimateDuration&&(a.duration=parseFloat(e.dataset.autoAnimateDuration)),e.dataset.autoAnimateDelay&&(a.delay=parseFloat(e.dataset.autoAnimateDelay)),a}function _e(e,t,a){let r={styles:[]};if(!1!==a.translate||!1!==a.scale){let e;e="function"==typeof a.measure?a.measure(t):t.getBoundingClientRect(),r.x=e.x,r.y=e.y,r.width=e.width,r.height=e.height}const n=getComputedStyle(t);return(a.styles||f.autoAnimateStyles).forEach(t=>{let a;"string"==typeof t&&(t={property:t}),a=void 0!==t.from&&"from"===e?{value:t.from,explicitValue:!0}:void 0!==t.to&&"to"===e?{value:t.to,explicitValue:!0}:n[t.property],""!==a&&(r.styles[t.property]=a)}),r}function Je(e,t){let a=[];const r="h1, h2, h3, h4, h5, h6, p, li";return Ze(a,e,t,"[data-id]",e=>e.nodeName+":::"+e.getAttribute("data-id")),Ze(a,e,t,r,e=>e.nodeName+":::"+e.innerText),Ze(a,e,t,"img, video, iframe",e=>e.nodeName+":::"+(e.getAttribute("src")||e.getAttribute("data-src"))),Ze(a,e,t,"pre",e=>e.nodeName+":::"+e.innerText),a.forEach(e=>{e.from.matches(r)?e.options={scale:!1}:e.from.matches("pre")&&(e.options={scale:!1,styles:["width","height"]},Ze(a,e.from,e.to,".hljs .hljs-ln-code",e=>e.textContent,{scale:!1,styles:[],measure:Qe}),Ze(a,e.from,e.to,".hljs .hljs-ln-line[data-line-number]",e=>e.getAttribute("data-line-number"),{scale:!1,styles:["width"],measure:Qe}))}),a}function Qe(t){const a=e.getScale();return{x:Math.round(t.offsetLeft*a*100)/100,y:Math.round(t.offsetTop*a*100)/100,width:Math.round(t.offsetWidth*a*100)/100,height:Math.round(t.offsetHeight*a*100)/100}}function Ze(e,t,a,r,n,i){let o={},s={};[].slice.call(t.querySelectorAll(r)).forEach((e,t)=>{const a=n(e);"string"==typeof a&&a.length&&(o[a]=o[a]||[],o[a].push(e))}),[].slice.call(a.querySelectorAll(r)).forEach((t,a)=>{const r=n(t);let l;if(s[r]=s[r]||[],s[r].push(t),o[r]){const e=s[r].length-1,t=o[r].length-1;o[r][e]?(l=o[r][e],o[r][e]=null):o[r][t]&&(l=o[r][t],o[r][t]=null)}l&&e.push({from:l,to:t,options:i})})}function Ge(e){let t=f.preloadIframes;return"boolean"!=typeof t&&(t=e.hasAttribute("data-preload")),t}function et(e,t={}){e.style.display=f.display,G(e.querySelectorAll("img[data-src], video[data-src], audio[data-src], iframe[data-src]")).forEach(e=>{("IFRAME"!==e.tagName||Ge(e))&&(e.setAttribute("src",e.getAttribute("data-src")),e.setAttribute("data-lazy-loaded",""),e.removeAttribute("data-src"))}),G(e.querySelectorAll("video, audio")).forEach(e=>{var t=0;G(e.querySelectorAll("source[data-src]")).forEach(e=>{e.setAttribute("src",e.getAttribute("data-src")),e.removeAttribute("data-src"),e.setAttribute("data-lazy-loaded",""),t+=1}),t>0&&e.load()});let a=e.slideBackgroundElement;if(a){a.style.display="block";let r=e.slideBackgroundContentElement,n=e.getAttribute("data-background-iframe");if(!1===a.hasAttribute("data-loaded")){a.setAttribute("data-loaded","true");let i=e.getAttribute("data-background-image"),o=e.getAttribute("data-background-video"),s=e.hasAttribute("data-background-video-loop"),l=e.hasAttribute("data-background-video-muted");if(i)r.style.backgroundImage="url("+encodeURI(i)+")";else if(o&&!ct()){let e=document.createElement("video");s&&e.setAttribute("loop",""),l&&(e.muted=!0),d&&(e.muted=!0,e.autoplay=!0,e.setAttribute("playsinline","")),o.split(",").forEach(t=>{e.innerHTML+='<source src="'+t+'">'}),r.appendChild(e)}else if(n&&!0!==t.excludeIframes){let e=document.createElement("iframe");e.setAttribute("allowfullscreen",""),e.setAttribute("mozallowfullscreen",""),e.setAttribute("webkitallowfullscreen",""),e.setAttribute("allow","autoplay"),e.setAttribute("data-src",n),e.style.width="100%",e.style.height="100%",e.style.maxHeight="100%",e.style.maxWidth="100%",r.appendChild(e)}}let i=r.querySelector("iframe[data-src]");i&&Ge(a)&&!/autoplay=(1|true|yes)/gi.test(n)&&i.getAttribute("src")!==n&&i.setAttribute("src",n)}}function tt(e){e.style.display="none";let t=At(e);t&&(t.style.display="none",G(t.querySelectorAll("iframe[src]")).forEach(e=>{e.removeAttribute("src")})),G(e.querySelectorAll("video[data-lazy-loaded][src], audio[data-lazy-loaded][src], iframe[data-lazy-loaded][src]")).forEach(e=>{e.setAttribute("data-src",e.getAttribute("src")),e.removeAttribute("src")}),G(e.querySelectorAll("video[data-lazy-loaded] source[src], audio source[src]")).forEach(e=>{e.setAttribute("data-src",e.getAttribute("src")),e.removeAttribute("src")})}function at(){var e=S.wrapper.querySelectorAll(".slides>section"),t=S.wrapper.querySelectorAll(".slides>section.present>section");let a={left:n>0,right:n<e.length-1,up:i>0,down:i<t.length-1};if(f.loop&&(e.length>1&&(a.left=!0,a.right=!0),t.length>1&&(a.up=!0,a.down=!0)),f.rtl){let e=a.left;a.left=a.right,a.right=e}return a}function rt(){if(s&&f.fragments){let e=s.querySelectorAll(".fragment"),t=s.querySelectorAll(".fragment:not(.visible)");return{prev:e.length-t.length>0,next:!!t.length}}return{prev:!1,next:!1}}function nt(e){e&&!ct()&&(G(e.querySelectorAll('img[src$=".gif"]')).forEach(e=>{e.setAttribute("src",e.getAttribute("src"))}),G(e.querySelectorAll("video, audio")).forEach(e=>{if(ne(e,".fragment")&&!ne(e,".fragment.visible"))return;let t=f.autoPlayMedia;if("boolean"!=typeof t&&(t=e.hasAttribute("data-autoplay")||!!ne(e,".slide-background")),t&&"function"==typeof e.play)if(e.readyState>1)it({target:e});else if(d){let t=e.play();t&&"function"==typeof t.catch&&!1===e.controls&&t.catch((function(){e.controls=!0,e.addEventListener("play",()=>{e.controls=!1})}))}else e.removeEventListener("loadeddata",it),e.addEventListener("loadeddata",it)}),G(e.querySelectorAll("iframe[src]")).forEach(e=>{ne(e,".fragment")&&!ne(e,".fragment.visible")||ot({target:e})}),G(e.querySelectorAll("iframe[data-src]")).forEach(e=>{ne(e,".fragment")&&!ne(e,".fragment.visible")||e.getAttribute("src")!==e.getAttribute("data-src")&&(e.removeEventListener("load",ot),e.addEventListener("load",ot),e.setAttribute("src",e.getAttribute("data-src")))}))}function it(e){let t=!!ne(e.target,"html"),a=!!ne(e.target,".present");t&&a&&(e.target.currentTime=0,e.target.play()),e.target.removeEventListener("loadeddata",it)}function ot(e){let t=e.target;if(t&&t.contentWindow){let a=!!ne(e.target,"html"),r=!!ne(e.target,".present");if(a&&r){let e=f.autoPlayMedia;"boolean"!=typeof e&&(e=t.hasAttribute("data-autoplay")||!!ne(t,".slide-background")),/youtube\.com\/embed\//.test(t.getAttribute("src"))&&e?t.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*"):/player\.vimeo\.com\//.test(t.getAttribute("src"))&&e?t.contentWindow.postMessage('{"method":"play"}',"*"):t.contentWindow.postMessage("slide:start","*")}}}function st(e,t={}){t=Z({unloadIframes:!0},t),e&&e.parentNode&&(G(e.querySelectorAll("video, audio")).forEach(e=>{e.hasAttribute("data-ignore")||"function"!=typeof e.pause||(e.setAttribute("data-paused-by-reveal",""),e.pause())}),G(e.querySelectorAll("iframe")).forEach(e=>{e.contentWindow&&e.contentWindow.postMessage("slide:stop","*"),e.removeEventListener("load",ot)}),G(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(e=>{!e.hasAttribute("data-ignore")&&e.contentWindow&&"function"==typeof e.contentWindow.postMessage&&e.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*")}),G(e.querySelectorAll('iframe[src*="player.vimeo.com/"]')).forEach(e=>{!e.hasAttribute("data-ignore")&&e.contentWindow&&"function"==typeof e.contentWindow.postMessage&&e.contentWindow.postMessage('{"method":"pause"}',"*")}),!0===t.unloadIframes&&G(e.querySelectorAll("iframe[data-src]")).forEach(e=>{e.setAttribute("src","about:blank"),e.removeAttribute("src")}))}function lt(e=s){let t=gt(),a=0;e:for(let r=0;r<t.length;r++){let n=t[r],i=n.querySelectorAll("section");for(let t=0;t<i.length;t++){if(i[t]===e)break e;"uncounted"!==i[t].dataset.visibility&&a++}if(n===e)break;!1===n.classList.contains("stack")&&"uncounted"!==!n.dataset.visibility&&a++}return a}function dt(){let e=yt(),t=lt();if(s){let e=s.querySelectorAll(".fragment");if(e.length>0){let a=.9;t+=s.querySelectorAll(".fragment.visible").length/e.length*a}}return Math.min(t/(e-1),1)}function ct(){return!!window.location.search.match(/receiver/gi)}function ut(){let t=window.location.hash,a=t.slice(2).split("/"),r=t.replace(/#|\//gi,"");if(!/^[0-9]*$/.test(a[0])&&r.length){let t;try{t=document.getElementById(decodeURIComponent(r))}catch(e){}let a=!!s&&s.getAttribute("id")===r;if(t){if(!a){let a=e.getIndices(t);Oe(a.h,a.v)}}else Oe(n||0,i||0)}else{let e,t=f.hashOneBasedIndex?1:0,r=parseInt(a[0],10)-t||0,o=parseInt(a[1],10)-t||0;f.fragmentInURL&&(e=parseInt(a[2],10),isNaN(e)&&(e=void 0)),r===n&&o===i&&void 0===e||Oe(r,o,e)}}function pt(e){clearTimeout(q),"number"==typeof e?q=setTimeout(pt,e):s&&(f.history||!window.history?window.location.hash=Le():f.hash?window.history.replaceState(null,null,"#"+Le()):window.history.replaceState(null,null,window.location.pathname+window.location.search))}function ft(e){let t,a=n,r=i;if(e){let t=xe(e),n=t?e.parentNode:e,i=G(S.wrapper.querySelectorAll(".slides>section"));a=Math.max(i.indexOf(n),0),r=void 0,t&&(r=Math.max(G(e.parentNode.querySelectorAll("section")).indexOf(e),0))}if(!e&&s){if(s.querySelectorAll(".fragment").length>0){let e=s.querySelector(".current-fragment");t=e&&e.hasAttribute("data-fragment-index")?parseInt(e.getAttribute("data-fragment-index"),10):s.querySelectorAll(".fragment.visible").length-1}}return{h:a,v:r,f:t}}function ht(){return G(S.wrapper.querySelectorAll('.slides section:not(.stack):not([data-visibility="uncounted"])'))}function gt(){return G(S.wrapper.querySelectorAll(".slides>section"))}function mt(){return G(S.wrapper.querySelectorAll(".slides>section>section"))}function vt(){return gt().length>1}function bt(){return mt().length>1}function yt(){return ht().length}function wt(e,t){let a=gt()[e],r=a&&a.querySelectorAll("section");return r&&r.length&&"number"==typeof t?r?r[t]:void 0:a}function At(e,t){let a="number"==typeof e?wt(e,t):e;if(a)return a.slideBackgroundElement}function kt(e=s){if(e.hasAttribute("data-notes"))return e.getAttribute("data-notes");let t=e.querySelector("aside.notes");return t?t.innerHTML:null}function Et(){let e=ft();return{indexh:e.h,indexv:e.v,indexf:e.f,paused:Te(),overview:Se()}}function St(e,t=!1){e=G(e);let a=[],r=[],n=[];e.forEach(e=>{if(e.hasAttribute("data-fragment-index")){let t=parseInt(e.getAttribute("data-fragment-index"),10);a[t]||(a[t]=[]),a[t].push(e)}else r.push([e])}),a=a.concat(r);let i=0;return a.forEach(e=>{e.forEach(e=>{n.push(e),e.setAttribute("data-fragment-index",i)}),i++}),!0===t?a:n}function Lt(e,t){let a={shown:[],hidden:[]};if(s&&f.fragments&&(t=t||St(s.querySelectorAll(".fragment"))).length){let r=0;if("number"!=typeof e){let t=St(s.querySelectorAll(".fragment.visible")).pop();t&&(e=parseInt(t.getAttribute("data-fragment-index")||0,10))}G(t).forEach((t,n)=>{t.hasAttribute("data-fragment-index")&&(n=parseInt(t.getAttribute("data-fragment-index"),10)),r=Math.max(r,n),n<=e?(t.classList.contains("visible")||a.shown.push(t),t.classList.add("visible"),t.classList.remove("current-fragment"),S.statusDiv.textContent=U(t),n===e&&(t.classList.add("current-fragment"),nt(t))):(t.classList.contains("visible")&&a.hidden.push(t),t.classList.remove("visible"),t.classList.remove("current-fragment"))}),e="number"==typeof e?e:-1,e=Math.max(Math.min(e,r),-1),s.setAttribute("data-fragment",e)}return a}function xt(e,t=0){if(s&&f.fragments){let a=St(s.querySelectorAll(".fragment"));if(a.length){if("number"!=typeof e){let t=St(s.querySelectorAll(".fragment.visible")).pop();e=t?parseInt(t.getAttribute("data-fragment-index")||0,10):-1}let r=Lt(e+=t,a);return r.hidden.length&&se("fragmenthidden",{fragment:r.hidden[0],fragments:r.hidden}),r.shown.length&&se("fragmentshown",{fragment:r.shown[0],fragments:r.shown}),Ue(),$e(),f.fragmentInURL&&pt(),!(!r.shown.length&&!r.hidden.length)}}return!1}function Mt(){return xt(null,1)}function Nt(){return xt(null,-1)}function qt(){if(It(),s&&!1!==f.autoSlide){let t=s.querySelector(".current-fragment");t||(t=s.querySelector(".fragment"));let a=t?t.getAttribute("data-autoslide"):null,r=s.parentNode?s.parentNode.getAttribute("data-autoslide"):null,n=s.getAttribute("data-autoslide");O=a?parseInt(a,10):n?parseInt(n,10):r?parseInt(r,10):f.autoSlide,0===s.querySelectorAll(".fragment").length&&G(s.querySelectorAll("video, audio")).forEach(e=>{e.hasAttribute("data-autoplay")&&O&&1e3*e.duration/e.playbackRate>O&&(O=1e3*e.duration/e.playbackRate+1e3)}),!O||B||Te()||Se()||e.isLastSlide()&&!rt().next&&!0!==f.loop||(D=setTimeout(()=>{"function"==typeof f.autoSlideMethod?f.autoSlideMethod():Ht(),qt()},O),R=Date.now()),p&&p.setPlaying(-1!==D)}}function It(){clearTimeout(D),D=-1}function Pt(){O&&!B&&(B=!0,se("autoslidepaused"),clearTimeout(D),p&&p.setPlaying(!1))}function Tt(){O&&B&&(B=!1,se("autoslideresumed"),qt())}function Ct(){y=!0,f.rtl?(Se()||!1===Mt())&&at().left&&Oe(n+1,"grid"===f.navigationMode?i:void 0):(Se()||!1===Nt())&&at().left&&Oe(n-1,"grid"===f.navigationMode?i:void 0)}function Ot(){y=!0,f.rtl?(Se()||!1===Nt())&&at().right&&Oe(n-1,"grid"===f.navigationMode?i:void 0):(Se()||!1===Mt())&&at().right&&Oe(n+1,"grid"===f.navigationMode?i:void 0)}function Dt(){(Se()||!1===Nt())&&at().up&&Oe(n,i-1)}function Rt(){w=!0,(Se()||!1===Mt())&&at().down&&Oe(n,i+1)}function Bt(){if(!1===Nt())if(at().up)Dt();else{let e;if(e=f.rtl?G(S.wrapper.querySelectorAll(".slides>section.future")).pop():G(S.wrapper.querySelectorAll(".slides>section.past")).pop(),e){let t=e.querySelectorAll("section").length-1||void 0;Oe(n-1,t)}}}function Ht(){if(y=!0,w=!0,!1===Mt()){let t=at();t.down&&t.right&&f.loop&&e.isLastVerticalSlide(s)&&(t.down=!1),t.down?Rt():f.rtl?Ct():Ot()}}function zt(e){for(;e&&"function"==typeof e.hasAttribute;){if(e.hasAttribute("data-prevent-swipe"))return!0;e=e.parentNode}return!1}function jt(e){f.autoSlideStoppable&&Pt()}function $t(e){Me(),clearTimeout(P),P=setTimeout(Ne,f.hideCursorTime)}function Wt(e){e.shiftKey&&63===e.charCode&&ue()}function Ft(t){if("function"==typeof f.keyboardCondition&&!1===f.keyboardCondition(t))return!0;let a=t.keyCode,r=B;jt();let n=document.activeElement&&"inherit"!==document.activeElement.contentEditable,i=document.activeElement&&document.activeElement.tagName&&/input|textarea/i.test(document.activeElement.tagName),o=document.activeElement&&document.activeElement.className&&/speaker-notes/i.test(document.activeElement.className),s=t.shiftKey&&32===t.keyCode,l=t.shiftKey&&37===a,d=t.shiftKey&&39===a,c=!s&&!l&&!d&&(t.shiftKey||t.altKey||t.ctrlKey||t.metaKey);if(n||i||o||c)return;let u,p=[66,86,190,191];if("object"==typeof f.keyboard)for(u in f.keyboard)"togglePause"===f.keyboard[u]&&p.push(parseInt(u,10));if(Te()&&-1===p.indexOf(a))return!1;let h="linear"===f.navigationMode||!vt()||!bt(),g=!1;if("object"==typeof f.keyboard)for(u in f.keyboard)if(parseInt(u,10)===a){var m=f.keyboard[u];"function"==typeof m?m.apply(null,[t]):"string"==typeof m&&"function"==typeof e[m]&&e[m].call(),g=!0}if(!1===g)for(u in j)if(parseInt(u,10)===a){let a=j[u].callback;"function"==typeof a?a.apply(null,[t]):"string"==typeof a&&"function"==typeof e[a]&&e[a].call(),g=!0}!1===g&&(g=!0,80===a||33===a?Bt():78===a||34===a?Ht():72===a||37===a?l?Oe(0):!Se()&&h?Bt():Ct():76===a||39===a?d?Oe(Number.MAX_VALUE):!Se()&&h?Ht():Ot():75===a||38===a?!Se()&&h?Bt():Dt():74===a||40===a?!Se()&&h?Ht():Rt():36===a?Oe(0):35===a?Oe(Number.MAX_VALUE):32===a?(Se()&&ke(),t.shiftKey?Bt():Ht()):58===a||59===a||66===a||86===a||190===a||191===a?Pe():70===a?function(){let e=document.documentElement,t=e.requestFullscreen||e.webkitRequestFullscreen||e.webkitRequestFullScreen||e.mozRequestFullScreen||e.msRequestFullscreen;t&&t.apply(e)}():65===a?f.autoSlideStoppable&&Ce(r):g=!1),g?t.preventDefault&&t.preventDefault():27!==a&&79!==a||(S.overlay?fe():Ee(),t.preventDefault&&t.preventDefault()),qt()}function Ut(e){if(zt(e.target))return!0;H.startX=e.touches[0].clientX,H.startY=e.touches[0].clientY,H.startCount=e.touches.length}function Vt(e){if(zt(e.target))return!0;if(H.captured)t.match(/android/gi)&&e.preventDefault();else{jt();let t=e.touches[0].clientX,a=e.touches[0].clientY;if(1===e.touches.length&&2!==H.startCount){let r=t-H.startX,n=a-H.startY;r>H.threshold&&Math.abs(r)>Math.abs(n)?(H.captured=!0,"linear"===f.navigationMode?f.rtl?Ht():Bt():Ct()):r<-H.threshold&&Math.abs(r)>Math.abs(n)?(H.captured=!0,"linear"===f.navigationMode?f.rtl?Bt():Ht():Ot()):n>H.threshold?(H.captured=!0,"linear"===f.navigationMode?Bt():Dt()):n<-H.threshold&&(H.captured=!0,"linear"===f.navigationMode?Ht():Rt()),f.embedded?(H.captured||xe(s))&&e.preventDefault():e.preventDefault()}}}function Xt(e){H.captured=!1}function Yt(e){e.pointerType!==e.MSPOINTER_TYPE_TOUCH&&"touch"!==e.pointerType||(e.touches=[{clientX:e.clientX,clientY:e.clientY}],Ut(e))}function Kt(e){e.pointerType!==e.MSPOINTER_TYPE_TOUCH&&"touch"!==e.pointerType||(e.touches=[{clientX:e.clientX,clientY:e.clientY}],Vt(e))}function _t(e){e.pointerType!==e.MSPOINTER_TYPE_TOUCH&&"touch"!==e.pointerType||(e.touches=[{clientX:e.clientX,clientY:e.clientY}],Xt())}function Jt(e){if(Date.now()-N>600){N=Date.now();let t=e.detail||-e.wheelDelta;t>0?Ht():t<0&&Bt()}}function Qt(e){jt(),e.preventDefault();let t=gt().length,a=Math.floor(e.clientX/S.wrapper.offsetWidth*t);f.rtl&&(a=t-a),Oe(a)}function Zt(e){e.preventDefault(),jt(),"linear"===f.navigationMode?Bt():Ct()}function Gt(e){e.preventDefault(),jt(),"linear"===f.navigationMode?Ht():Ot()}function ea(e){e.preventDefault(),jt(),Dt()}function ta(e){e.preventDefault(),jt(),Rt()}function aa(e){e.preventDefault(),jt(),Bt()}function ra(e){e.preventDefault(),jt(),Ht()}function na(e){ut()}function ia(e){he()}function oa(e){!1===document.hidden&&document.activeElement!==document.body&&("function"==typeof document.activeElement.blur&&document.activeElement.blur(),document.body.focus())}function sa(e){if(T&&Se()){e.preventDefault();let t=e.target;for(;t&&!t.nodeName.match(/section/gi);)t=t.parentNode;if(t&&!t.classList.contains("disabled"))if(ke(),t.nodeName.match(/section/gi))Oe(parseInt(t.getAttribute("data-index-h"),10),parseInt(t.getAttribute("data-index-v"),10))}}function la(e){if(e.currentTarget&&e.currentTarget.hasAttribute("href")){let t=e.currentTarget.getAttribute("href");t&&(!function(e){fe(),S.overlay=document.createElement("div"),S.overlay.classList.add("overlay"),S.overlay.classList.add("overlay-preview"),S.wrapper.appendChild(S.overlay),S.overlay.innerHTML=`<header>\n\t\t\t\t<a class="close" href="#"><span class="icon"></span></a>\n\t\t\t\t<a class="external" href="${e}" target="_blank"><span class="icon"></span></a>\n\t\t\t</header>\n\t\t\t<div class="spinner"></div>\n\t\t\t<div class="viewport">\n\t\t\t\t<iframe src="${e}"></iframe>\n\t\t\t\t<small class="viewport-inner">\n\t\t\t\t\t<span class="x-frame-error">Unable to load iframe. This is likely due to the site's policy (x-frame-options).</span>\n\t\t\t\t</small>\n\t\t\t</div>`,S.overlay.querySelector("iframe").addEventListener("load",e=>{S.overlay.classList.add("loaded")},!1),S.overlay.querySelector(".close").addEventListener("click",e=>{fe(),e.preventDefault()},!1),S.overlay.querySelector(".external").addEventListener("click",e=>{fe()},!1)}(t),e.preventDefault())}}function da(t){e.isLastSlide()&&!1===f.loop?(Oe(0,0),Tt()):B?Tt():Pt()}return e={VERSION:"4.0.0-dev",initialize:function(a){if(!0===h)return;h=!0,function(){d=/(iphone|ipod|ipad|android)/gi.test(t)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1,c=/chrome/i.test(t)&&!/edge/i.test(t);let e=document.createElement("div");M.zoom="zoom"in e.style&&!d&&(c||/Version\/[\d\.]+.*Safari/.test(t))}(),S.wrapper=document.querySelector(".reveal"),S.slides=document.querySelector(".reveal .slides"),window.addEventListener("load",he,!1);let r=e.getQueryHash();var n,i;void 0!==r.dependencies&&delete r.dependencies,Z(f,a),Z(f,r),n=[],i=0,f.dependencies.forEach(e=>{e.condition&&!e.condition()||(e.async?x.push(e):n.push(e))}),n.length?(i=n.length,n.forEach(e=>{F(e.src,(function(){"function"==typeof e.callback&&e.callback(),0==--i&&$()}))})):$()},configure:_,sync:De,syncSlide:function(e=s){K(e),Re(e),et(e),Ve(),je()},syncFragments:Re,slide:Oe,left:Ct,right:Ot,up:Dt,down:Rt,prev:Bt,next:Ht,navigateTo:Oe,navigateLeft:Ct,navigateRight:Ot,navigateUp:Dt,navigateDown:Rt,navigatePrev:Bt,navigateNext:Ht,navigateFragment:xt,prevFragment:Nt,nextFragment:Mt,layout:he,shuffle:Be,availableRoutes:at,availableFragments:rt,toggleHelp:ue,toggleOverview:Ee,togglePause:Pe,toggleAutoSlide:Ce,isOverview:Se,isPaused:Te,isAutoSliding:function(){return!(!O||B)},isSpeakerNotes:ct,loadSlide:et,unloadSlide:tt,addEventListeners:J,removeEventListeners:Q,getState:Et,setState:function(e){if("object"==typeof e){Oe(ee(e.indexh),ee(e.indexv),ee(e.indexf));var t=ee(e.paused),a=ee(e.overview);"boolean"==typeof t&&t!==Te()&&Pe(t),"boolean"==typeof a&&a!==Se()&&Ee(a)}},getSlidePastCount:lt,getProgress:dt,getIndices:ft,getSlides:ht,getSlidesAttributes:function(){return ht().map((function(e){let t={};for(let a=0;a<e.attributes.length;a++){let r=e.attributes[a];t[r.name]=r.value}return t}))},getTotalSlides:yt,getSlide:wt,getSlideBackground:At,getSlideNotes:kt,getHorizontalSlides:gt,getVerticalSlides:mt,hasHorizontalSlides:vt,hasVerticalSlides:bt,addKeyBinding:function(e,t){"object"==typeof e&&e.keyCode?j[e.keyCode]={callback:t,key:e.key,description:e.description}:j[e]={callback:t,key:null,description:null}},removeKeyBinding:function(e){delete j[e]},registerPlugin:function(e,t){void 0===L[e]?(L[e]=t,g&&"function"==typeof t.init&&t.init()):console.warn('reveal.js: "'+e+'" plugin has already been registered')},hasPlugin:function(e){return!!L[e]},getPlugin:function(e){return L[e]},getComputedSlideSize:me,getPreviousSlide:()=>o,getCurrentSlide:()=>s,getScale:()=>k,getConfig:()=>f,getQueryHash:()=>{let e={};location.search.replace(/[A-Z0-9]+?=([\w\.%-]*)/gi,t=>{e[t.split("=").shift()]=t.split("=").pop()});for(let t in e){let a=e[t];e[t]=ee(unescape(a))}return e},getRevealElement:()=>S.wrapper||document.querySelector(".reveal"),getPlugins:()=>L,isFirstSlide:()=>0===n&&0===i,isLastSlide:()=>!!s&&(!s.nextElementSibling&&(!xe(s)||!s.parentNode.nextElementSibling)),isLastVerticalSlide:()=>!(!s||!xe(s))&&!s.nextElementSibling,isReady:()=>g,addEventListener:(t,a,r)=>{"addEventListener"in window&&e.getRevealElement().addEventListener(t,a,r)},removeEventListener:(t,a,r)=>{"addEventListener"in window&&e.getRevealElement().removeEventListener(t,a,r)},triggerKey:e=>{Ft({keyCode:e})},registerKeyboardShortcut:(e,t)=>{z[e]=t}},e}()}]); |