linuxkurs/js/reveal.min.js

9 lines
54 KiB
JavaScript

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