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