presentazione-papero/js/reveal.min.js

8 lines
23 KiB
JavaScript

/*!
* reveal.js 2.5.0 (2013-06-09, 17:14)
* http://lab.hakim.se/reveal-js
* MIT licensed
*
* Copyright (C) 2013 Hakim El Hattab, http://hakim.se
*/
var Reveal=function(){"use strict";function e(e){return Ct||Nt?(window.addEventListener("load",y,!1),l(kt,e),r(),o(),void 0):(document.body.setAttribute("class","no-transforms"),void 0)}function t(){if(Pt.theme=document.querySelector("#theme"),Pt.wrapper=document.querySelector(".reveal"),Pt.slides=document.querySelector(".reveal .slides"),document.querySelector(".reveal .background")||(Pt.background=document.createElement("div"),Pt.background.classList.add("background"),Pt.wrapper.appendChild(Pt.background)),!Pt.wrapper.querySelector(".progress")){var e=document.createElement("div");e.classList.add("progress"),e.innerHTML="<span></span>",Pt.wrapper.appendChild(e)}if(!Pt.wrapper.querySelector(".controls")){var t=document.createElement("aside");t.classList.add("controls"),t.innerHTML='<div class="navigate-left"></div><div class="navigate-right"></div><div class="navigate-up"></div><div class="navigate-down"></div>',Pt.wrapper.appendChild(t)}if(!Pt.wrapper.querySelector(".state-background")){var n=document.createElement("div");n.classList.add("state-background"),Pt.wrapper.appendChild(n)}if(!Pt.wrapper.querySelector(".pause-overlay")){var r=document.createElement("div");r.classList.add("pause-overlay"),Pt.wrapper.appendChild(r)}Pt.progress=document.querySelector(".reveal .progress"),Pt.progressbar=document.querySelector(".reveal .progress span"),kt.controls&&(Pt.controls=document.querySelector(".reveal .controls"),Pt.controlsLeft=d(document.querySelectorAll(".navigate-left")),Pt.controlsRight=d(document.querySelectorAll(".navigate-right")),Pt.controlsUp=d(document.querySelectorAll(".navigate-up")),Pt.controlsDown=d(document.querySelectorAll(".navigate-down")),Pt.controlsPrev=d(document.querySelectorAll(".navigate-prev")),Pt.controlsNext=d(document.querySelectorAll(".navigate-next")))}function n(){function e(e,t){var n={background:e.getAttribute("data-background"),backgroundSize:e.getAttribute("data-background-size"),backgroundColor:e.getAttribute("data-background-color"),backgroundRepeat:e.getAttribute("data-background-repeat"),backgroundPosition:e.getAttribute("data-background-position")},r=document.createElement("div");return r.className="slide-background",n.background&&(/\.(png|jpg|jpeg|gif|bmp)$/gi.test(n.background)?r.style.backgroundImage="url("+n.background+")":r.style.background=n.background),n.backgroundSize&&(r.style.backgroundSize=n.backgroundSize),n.backgroundColor&&(r.style.backgroundColor=n.backgroundColor),n.backgroundRepeat&&(r.style.backgroundRepeat=n.backgroundRepeat),n.backgroundPosition&&(r.style.backgroundPosition=n.backgroundPosition),t.appendChild(r),r}f()&&document.body.classList.add("print-pdf"),Pt.background.innerHTML="",Pt.background.classList.add("no-transition"),d(document.querySelectorAll(Lt)).forEach(function(t){var n;n=f()?e(t,t):e(t,Pt.background),d(t.querySelectorAll("section")).forEach(function(t){f()?e(t,t):e(t,n)})})}function r(){/iphone|ipod|android/gi.test(navigator.userAgent)&&!/crios/gi.test(navigator.userAgent)&&(window.addEventListener("load",v,!1),window.addEventListener("orientationchange",v,!1))}function o(){function e(){n.length&&head.js.apply(null,n),a()}for(var t=[],n=[],r=0,o=kt.dependencies.length;o>r;r++){var s=kt.dependencies[r];(!s.condition||s.condition())&&(s.async?n.push(s.src):t.push(s.src),"function"==typeof s.callback&&head.ready(s.src.match(/([\w\d_\-]*)\.?js$|[^\\\/]*$/i)[0],s.callback))}t.length?(head.ready(e),head.js.apply(null,t)):e()}function a(){t(),s(),W(),setTimeout(function(){p("ready",{indexh:qt,indexv:xt,currentSlide:bt})},1)}function s(e){if(Pt.wrapper.classList.remove(kt.transition),"object"==typeof e&&l(kt,e),Nt===!1&&(kt.transition="linear"),Pt.wrapper.classList.add(kt.transition),Pt.wrapper.setAttribute("data-transition-speed",kt.transitionSpeed),Pt.wrapper.setAttribute("data-background-transition",kt.backgroundTransition),Pt.controls&&(Pt.controls.style.display=kt.controls&&Pt.controls?"block":"none"),Pt.progress&&(Pt.progress.style.display=kt.progress&&Pt.progress?"block":"none"),kt.rtl?Pt.wrapper.classList.add("rtl"):Pt.wrapper.classList.remove("rtl"),kt.center?Pt.wrapper.classList.add("center"):Pt.wrapper.classList.remove("center"),kt.mouseWheel?(document.addEventListener("DOMMouseScroll",it,!1),document.addEventListener("mousewheel",it,!1)):(document.removeEventListener("DOMMouseScroll",it,!1),document.removeEventListener("mousewheel",it,!1)),kt.rollingLinks?m():h(),kt.theme&&Pt.theme){var t=Pt.theme.getAttribute("href"),n=/[^\/]*?(?=\.css)/,r=t.match(n)[0];kt.theme!==r&&(t=t.replace(n,kt.theme),Pt.theme.setAttribute("href",t))}C()}function i(){Xt=!0,window.addEventListener("hashchange",mt,!1),window.addEventListener("resize",ht,!1),kt.touch&&(Pt.wrapper.addEventListener("touchstart",tt,!1),Pt.wrapper.addEventListener("touchmove",nt,!1),Pt.wrapper.addEventListener("touchend",rt,!1),window.navigator.msPointerEnabled&&(Pt.wrapper.addEventListener("MSPointerDown",ot,!1),Pt.wrapper.addEventListener("MSPointerMove",at,!1),Pt.wrapper.addEventListener("MSPointerUp",st,!1))),kt.keyboard&&document.addEventListener("keydown",et,!1),kt.progress&&Pt.progress&&Pt.progress.addEventListener("click",ct,!1),kt.controls&&Pt.controls&&["touchstart","click"].forEach(function(e){Pt.controlsLeft.forEach(function(t){t.addEventListener(e,lt,!1)}),Pt.controlsRight.forEach(function(t){t.addEventListener(e,dt,!1)}),Pt.controlsUp.forEach(function(t){t.addEventListener(e,ut,!1)}),Pt.controlsDown.forEach(function(t){t.addEventListener(e,ft,!1)}),Pt.controlsPrev.forEach(function(t){t.addEventListener(e,vt,!1)}),Pt.controlsNext.forEach(function(t){t.addEventListener(e,pt,!1)})})}function c(){Xt=!1,document.removeEventListener("keydown",et,!1),window.removeEventListener("hashchange",mt,!1),window.removeEventListener("resize",ht,!1),Pt.wrapper.removeEventListener("touchstart",tt,!1),Pt.wrapper.removeEventListener("touchmove",nt,!1),Pt.wrapper.removeEventListener("touchend",rt,!1),window.navigator.msPointerEnabled&&(Pt.wrapper.removeEventListener("MSPointerDown",ot,!1),Pt.wrapper.removeEventListener("MSPointerMove",at,!1),Pt.wrapper.removeEventListener("MSPointerUp",st,!1)),kt.progress&&Pt.progress&&Pt.progress.removeEventListener("click",ct,!1),kt.controls&&Pt.controls&&["touchstart","click"].forEach(function(e){Pt.controlsLeft.forEach(function(t){t.removeEventListener(e,lt,!1)}),Pt.controlsRight.forEach(function(t){t.removeEventListener(e,dt,!1)}),Pt.controlsUp.forEach(function(t){t.removeEventListener(e,ut,!1)}),Pt.controlsDown.forEach(function(t){t.removeEventListener(e,ft,!1)}),Pt.controlsPrev.forEach(function(t){t.removeEventListener(e,vt,!1)}),Pt.controlsNext.forEach(function(t){t.removeEventListener(e,pt,!1)})})}function l(e,t){for(var n in t)e[n]=t[n]}function d(e){return Array.prototype.slice.call(e)}function u(e,t){var n=e.x-t.x,r=e.y-t.y;return Math.sqrt(n*n+r*r)}function f(){return/print-pdf/gi.test(window.location.search)}function v(){0===window.orientation?(document.documentElement.style.overflow="scroll",document.body.style.height="120%"):(document.documentElement.style.overflow="",document.body.style.height="100%"),setTimeout(function(){window.scrollTo(0,1)},10)}function p(e,t){var n=document.createEvent("HTMLEvents",1,2);n.initEvent(e,!0,!0),l(n,t),Pt.wrapper.dispatchEvent(n)}function m(){if(Nt&&!("msPerspective"in document.body.style))for(var e=document.querySelectorAll(wt+" a:not(.image)"),t=0,n=e.length;n>t;t++){var r=e[t];if(!(!r.textContent||r.querySelector("*")||r.className&&r.classList.contains(r,"roll"))){var o=document.createElement("span");o.setAttribute("data-title",r.text),o.innerHTML=r.innerHTML,r.classList.add("roll"),r.innerHTML="",r.appendChild(o)}}}function h(){for(var e=document.querySelectorAll(wt+" a.roll"),t=0,n=e.length;n>t;t++){var r=e[t],o=r.querySelector("span");o&&(r.classList.remove("roll"),r.innerHTML=o.innerHTML)}}function g(e){var t=d(e);return t.forEach(function(e,t){e.hasAttribute("data-fragment-index")||e.setAttribute("data-fragment-index",t)}),t.sort(function(e,t){return e.getAttribute("data-fragment-index")-t.getAttribute("data-fragment-index")}),t}function y(){if(Pt.wrapper&&!f()){var e=Pt.wrapper.offsetWidth,t=Pt.wrapper.offsetHeight;e-=t*kt.margin,t-=t*kt.margin;var n=kt.width,r=kt.height;if("string"==typeof n&&/%$/.test(n)&&(n=parseInt(n,10)/100*e),"string"==typeof r&&/%$/.test(r)&&(r=parseInt(r,10)/100*t),Pt.slides.style.width=n+"px",Pt.slides.style.height=r+"px",Mt=Math.min(e/n,t/r),Mt=Math.max(Mt,kt.minScale),Mt=Math.min(Mt,kt.maxScale),void 0===Pt.slides.style.zoom||navigator.userAgent.match(/(iphone|ipod|ipad|android)/gi)){var o="translate(-50%, -50%) scale("+Mt+") translate(50%, 50%)";Pt.slides.style.WebkitTransform=o,Pt.slides.style.MozTransform=o,Pt.slides.style.msTransform=o,Pt.slides.style.OTransform=o,Pt.slides.style.transform=o}else Pt.slides.style.zoom=Mt;for(var a=d(document.querySelectorAll(wt)),s=0,i=a.length;i>s;s++){var c=a[s];"none"!==c.style.display&&(c.style.top=kt.center?c.classList.contains("stack")?0:Math.max(-(c.offsetHeight/2)-20,-r/2)+"px":"")}R()}}function b(e,t){"object"==typeof e&&"function"==typeof e.setAttribute&&e.setAttribute("data-previous-indexv",t||0)}function w(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 L(){if(kt.overview){$();var e=Pt.wrapper.classList.contains("overview");Pt.wrapper.classList.add("overview"),Pt.wrapper.classList.remove("exit-overview"),clearTimeout(Yt),clearTimeout(zt),Yt=setTimeout(function(){for(var t=document.querySelectorAll(Lt),n=0,r=t.length;r>n;n++){var o=t[n],a=kt.rtl?-105:105,s="translateZ(-2500px) translate("+(n-qt)*a+"%, 0%)";if(o.setAttribute("data-index-h",n),o.style.display="block",o.style.WebkitTransform=s,o.style.MozTransform=s,o.style.msTransform=s,o.style.OTransform=s,o.style.transform=s,o.classList.contains("stack"))for(var i=o.querySelectorAll("section"),c=0,l=i.length;l>c;c++){var d=n===qt?xt:w(o),u=i[c],f="translate(0%, "+105*(c-d)+"%)";u.setAttribute("data-index-h",n),u.setAttribute("data-index-v",c),u.style.display="block",u.style.WebkitTransform=f,u.style.MozTransform=f,u.style.msTransform=f,u.style.OTransform=f,u.style.transform=f,u.addEventListener("click",gt,!0)}else o.addEventListener("click",gt,!0)}y(),e||p("overviewshown",{indexh:qt,indexv:xt,currentSlide:bt})},10)}}function E(){if(kt.overview){clearTimeout(Yt),clearTimeout(zt),Pt.wrapper.classList.remove("overview"),Pt.wrapper.classList.add("exit-overview"),zt=setTimeout(function(){Pt.wrapper.classList.remove("exit-overview")},10);for(var e=d(document.querySelectorAll(wt)),t=0,n=e.length;n>t;t++){var r=e[t];r.style.display="",r.style.WebkitTransform="",r.style.MozTransform="",r.style.msTransform="",r.style.OTransform="",r.style.transform="",r.removeEventListener("click",gt,!0)}N(qt,xt),K(),p("overviewhidden",{indexh:qt,indexv:xt,currentSlide:bt})}}function S(e){"boolean"==typeof e?e?L():E():k()?E():L()}function k(){return Pt.wrapper.classList.contains("overview")}function A(e){return e=e?e:bt,e&&!!e.parentNode.nodeName.match(/section/i)}function q(){var e=document.body,t=e.requestFullScreen||e.webkitRequestFullscreen||e.webkitRequestFullScreen||e.mozRequestFullScreen||e.msRequestFullScreen;t&&t.apply(e)}function x(){var e=Pt.wrapper.classList.contains("paused");$(),Pt.wrapper.classList.add("paused"),e===!1&&p("paused")}function T(){var e=Pt.wrapper.classList.contains("paused");Pt.wrapper.classList.remove("paused"),K(),e&&p("resumed")}function M(){P()?T():x()}function P(){return Pt.wrapper.classList.contains("paused")}function N(e,t,n,r){yt=bt;var o=document.querySelectorAll(Lt);void 0===t&&(t=w(o[e])),yt&&yt.parentNode&&yt.parentNode.classList.contains("stack")&&b(yt.parentNode,xt);var a=Tt.concat();Tt.length=0;var s=qt,i=xt;qt=D(Lt,void 0===e?qt:e),xt=D(Et,void 0===t?xt:t),y();e:for(var c=0,l=Tt.length;l>c;c++){for(var u=0;a.length>u;u++)if(a[u]===Tt[c]){a.splice(u,1);continue e}document.documentElement.classList.add(Tt[c]),p(Tt[c])}for(;a.length;)document.documentElement.classList.remove(a.pop());k()&&L(),U(1500);var f=o[qt],v=f.querySelectorAll("section");if(bt=v[xt]||f,n!==void 0){var m=g(bt.querySelectorAll(".fragment"));d(m).forEach(function(e,t){n>t?e.classList.add("visible"):e.classList.remove("visible")})}var h=qt!==s||xt!==i;h?p("slidechanged",{indexh:qt,indexv:xt,previousSlide:yt,currentSlide:bt,origin:r}):yt=null,yt&&(yt.classList.remove("present"),document.querySelector(St).classList.contains("present")&&setTimeout(function(){var e,t=d(document.querySelectorAll(Lt+".stack"));for(e in t)t[e]&&b(t[e],0)},0)),h&&(I(yt),H(bt)),O(),R(),Y()}function C(){c(),i(),y(),At=kt.autoSlide,K(),n(),O(),R(),Y()}function D(e,t){var n=d(document.querySelectorAll(e)),r=n.length;if(r){kt.loop&&(t%=r,0>t&&(t=r+t)),t=Math.max(Math.min(t,r-1),0);for(var o=0;r>o;o++){var a=n[o];if(k()===!1){var s=Math.abs((t-o)%(r-3))||0;a.style.display=s>3?"none":"block"}var i=kt.rtl&&!A(a);a.classList.remove("past"),a.classList.remove("present"),a.classList.remove("future"),a.setAttribute("hidden",""),t>o?a.classList.add(i?"future":"past"):o>t&&a.classList.add(i?"past":"future"),a.querySelector("section")&&a.classList.add("stack")}n[t].classList.add("present"),n[t].removeAttribute("hidden");var c=n[t].getAttribute("data-state");c&&(Tt=Tt.concat(c.split(" ")));var l=n[t].getAttribute("data-autoslide");At=l?parseInt(l,10):kt.autoSlide}else t=0;return t}function R(){if(kt.progress&&Pt.progress){var e=d(document.querySelectorAll(Lt)),t=document.querySelectorAll(wt+":not(.stack)").length,n=0;e:for(var r=0;e.length>r;r++){for(var o=e[r],a=d(o.querySelectorAll("section")),s=0;a.length>s;s++){if(a[s].classList.contains("present"))break e;n++}if(o.classList.contains("present"))break;o.classList.contains("stack")===!1&&n++}Pt.progressbar.style.width=n/(t-1)*window.innerWidth+"px"}}function O(){if(kt.controls&&Pt.controls){var e=z(),t=X();Pt.controlsLeft.concat(Pt.controlsRight).concat(Pt.controlsUp).concat(Pt.controlsDown).concat(Pt.controlsPrev).concat(Pt.controlsNext).forEach(function(e){e.classList.remove("enabled"),e.classList.remove("fragmented")}),e.left&&Pt.controlsLeft.forEach(function(e){e.classList.add("enabled")}),e.right&&Pt.controlsRight.forEach(function(e){e.classList.add("enabled")}),e.up&&Pt.controlsUp.forEach(function(e){e.classList.add("enabled")}),e.down&&Pt.controlsDown.forEach(function(e){e.classList.add("enabled")}),(e.left||e.up)&&Pt.controlsPrev.forEach(function(e){e.classList.add("enabled")}),(e.right||e.down)&&Pt.controlsNext.forEach(function(e){e.classList.add("enabled")}),bt&&(t.prev&&Pt.controlsPrev.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Pt.controlsNext.forEach(function(e){e.classList.add("fragmented","enabled")}),A(bt)?(t.prev&&Pt.controlsUp.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Pt.controlsDown.forEach(function(e){e.classList.add("fragmented","enabled")})):(t.prev&&Pt.controlsLeft.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Pt.controlsRight.forEach(function(e){e.classList.add("fragmented","enabled")})))}}function Y(){d(Pt.background.childNodes).forEach(function(e,t){e.className="slide-background "+(qt>t?"past":t>qt?"future":"present"),d(e.childNodes).forEach(function(e,t){e.className="slide-background "+(xt>t?"past":t>xt?"future":"present")})}),setTimeout(function(){Pt.background.classList.remove("no-transition")},1)}function z(){var e=document.querySelectorAll(Lt),t=document.querySelectorAll(Et),n={left:qt>0||kt.loop,right:e.length-1>qt||kt.loop,up:xt>0,down:t.length-1>xt};if(kt.rtl){var r=n.left;n.left=n.right,n.right=r}return n}function X(){if(bt&&kt.fragments){var e=bt.querySelectorAll(".fragment"),t=bt.querySelectorAll(".fragment:not(.visible)");return{prev:e.length-t.length>0,next:!!t.length}}return{prev:!1,next:!1}}function H(e){e&&(d(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-autoplay")&&e.play()}),d(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){e.hasAttribute("data-autoplay")&&e.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*")}))}function I(e){e&&(d(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-ignore")||e.pause()}),d(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){e.hasAttribute("data-ignore")||"function"!=typeof e.contentWindow.postMessage||e.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*")}))}function W(){var e=window.location.hash,t=e.slice(2).split("/"),n=e.replace(/#|\//gi,"");if(isNaN(parseInt(t[0],10))&&n.length){var r=document.querySelector("#"+n);if(r){var o=Reveal.getIndices(r);N(o.h,o.v)}else N(qt,xt)}else{var a=parseInt(t[0],10)||0,s=parseInt(t[1],10)||0;N(a,s)}}function U(e){if(kt.history)if(clearTimeout(Ot),"number"==typeof e)Ot=setTimeout(U,e);else{var t="/";bt&&"string"==typeof bt.getAttribute("id")?t="/"+bt.getAttribute("id"):((qt>0||xt>0)&&(t+=qt),xt>0&&(t+="/"+xt)),window.location.hash=t}}function F(e){var t,n=qt,r=xt;if(e){var o=A(e),a=o?e.parentNode:e,s=d(document.querySelectorAll(Lt));n=Math.max(s.indexOf(a),0),o&&(r=Math.max(d(e.parentNode.querySelectorAll("section")).indexOf(e),0))}if(!e&&bt){var i=bt.querySelectorAll(".fragment.visible");i.length&&(t=i.length)}return{h:n,v:r,f:t}}function j(){if(bt&&kt.fragments){var e=g(bt.querySelectorAll(".fragment:not(.visible)"));if(e.length){var t=e[0].getAttribute("data-fragment-index");return e=bt.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),d(e).forEach(function(e){e.classList.add("visible"),p("fragmentshown",{fragment:e})}),O(),!0}}return!1}function _(){if(bt&&kt.fragments){var e=g(bt.querySelectorAll(".fragment.visible"));if(e.length){var t=e[e.length-1].getAttribute("data-fragment-index");return e=bt.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),d(e).forEach(function(e){e.classList.remove("visible"),p("fragmenthidden",{fragment:e})}),O(),!0}}return!1}function K(){clearTimeout(Rt),!At||P()||k()||(Rt=setTimeout(J,At))}function $(){clearTimeout(Rt)}function V(){kt.rtl?(k()||j()===!1)&&z().left&&N(qt+1):(k()||_()===!1)&&z().left&&N(qt-1)}function Z(){kt.rtl?(k()||_()===!1)&&z().right&&N(qt-1):(k()||j()===!1)&&z().right&&N(qt+1)}function Q(){(k()||_()===!1)&&z().up&&N(qt,xt-1)}function B(){(k()||j()===!1)&&z().down&&N(qt,xt+1)}function G(){if(_()===!1)if(z().up)Q();else{var e=document.querySelector(Lt+".past:nth-child("+qt+")");e&&(xt=e.querySelectorAll("section").length+1||void 0,qt--,N(qt,xt))}}function J(){j()===!1&&(z().down?B():Z()),K()}function et(e){document.activeElement;var t=!(!document.activeElement||!document.activeElement.type&&!document.activeElement.href&&"inherit"===document.activeElement.contentEditable);if(!(t||e.shiftKey&&32!==e.keyCode||e.altKey||e.ctrlKey||e.metaKey)){var n=!0;if(P()&&-1===[66,190,191].indexOf(e.keyCode))return!1;switch(e.keyCode){case 80:case 33:G();break;case 78:case 34:J();break;case 72:case 37:V();break;case 76:case 39:Z();break;case 75:case 38:Q();break;case 74:case 40:B();break;case 36:N(0);break;case 35:N(Number.MAX_VALUE);break;case 32:k()?E():e.shiftKey?G():J();break;case 13:k()?E():n=!1;break;case 66:case 190:case 191:M();break;case 70:q();break;default:n=!1}n?e.preventDefault():27===e.keyCode&&Nt&&(S(),e.preventDefault()),K()}}function tt(e){Ht.startX=e.touches[0].clientX,Ht.startY=e.touches[0].clientY,Ht.startCount=e.touches.length,2===e.touches.length&&kt.overview&&(Ht.startSpan=u({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:Ht.startX,y:Ht.startY}))}function nt(e){if(Ht.handled)navigator.userAgent.match(/android/gi)&&e.preventDefault();else{var t=e.touches[0].clientX,n=e.touches[0].clientY;if(2===e.touches.length&&2===Ht.startCount&&kt.overview){var r=u({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:Ht.startX,y:Ht.startY});Math.abs(Ht.startSpan-r)>Ht.threshold&&(Ht.handled=!0,Ht.startSpan>r?L():E()),e.preventDefault()}else if(1===e.touches.length&&2!==Ht.startCount){var o=t-Ht.startX,a=n-Ht.startY;o>Ht.threshold&&Math.abs(o)>Math.abs(a)?(Ht.handled=!0,V()):-Ht.threshold>o&&Math.abs(o)>Math.abs(a)?(Ht.handled=!0,Z()):a>Ht.threshold?(Ht.handled=!0,Q()):-Ht.threshold>a&&(Ht.handled=!0,B()),e.preventDefault()}}}function rt(){Ht.handled=!1}function ot(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],tt(e))}function at(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],nt(e))}function st(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],rt(e))}function it(e){clearTimeout(Dt),Dt=setTimeout(function(){var t=e.detail||-e.wheelDelta;t>0?J():G()},100)}function ct(e){e.preventDefault();var t=d(document.querySelectorAll(Lt)).length,n=Math.floor(e.clientX/Pt.wrapper.offsetWidth*t);N(n)}function lt(e){e.preventDefault(),V()}function dt(e){e.preventDefault(),Z()}function ut(e){e.preventDefault(),Q()}function ft(e){e.preventDefault(),B()}function vt(e){e.preventDefault(),G()}function pt(e){e.preventDefault(),J()}function mt(){W()}function ht(){y()}function gt(e){if(Xt&&k()){e.preventDefault();for(var t=e.target;t&&!t.nodeName.match(/section/gi);)t=t.parentNode;if(t&&!t.classList.contains("disabled")&&(E(),t.nodeName.match(/section/gi))){var n=parseInt(t.getAttribute("data-index-h"),10),r=parseInt(t.getAttribute("data-index-v"),10);N(n,r)}}}var yt,bt,wt=".reveal .slides section",Lt=".reveal .slides>section",Et=".reveal .slides>section.present>section",St=".reveal .slides>section:first-child",kt={width:960,height:700,margin:.1,minScale:.2,maxScale:1,controls:!0,progress:!0,history:!1,keyboard:!0,overview:!0,center:!0,touch:!0,loop:!1,rtl:!1,fragments:!0,autoSlide:0,mouseWheel:!1,rollingLinks:!0,theme:null,transition:"default",transitionSpeed:"default",backgroundTransition:"default",dependencies:[]},At=0,qt=0,xt=0,Tt=[],Mt=1,Pt={},Nt="WebkitPerspective"in document.body.style||"MozPerspective"in document.body.style||"msPerspective"in document.body.style||"OPerspective"in document.body.style||"perspective"in document.body.style,Ct="WebkitTransform"in document.body.style||"MozTransform"in document.body.style||"msTransform"in document.body.style||"OTransform"in document.body.style||"transform"in document.body.style,Dt=0,Rt=0,Ot=0,Yt=0,zt=0,Xt=!1,Ht={startX:0,startY:0,startSpan:0,startCount:0,handled:!1,threshold:80};return{initialize:e,configure:s,sync:C,slide:N,left:V,right:Z,up:Q,down:B,prev:G,next:J,prevFragment:_,nextFragment:j,navigateTo:N,navigateLeft:V,navigateRight:Z,navigateUp:Q,navigateDown:B,navigatePrev:G,navigateNext:J,layout:y,availableRoutes:z,availableFragments:X,toggleOverview:S,togglePause:M,isOverview:k,isPaused:P,addEventListeners:i,removeEventListeners:c,getIndices:F,getSlide:function(e,t){var n=document.querySelectorAll(Lt)[e],r=n&&n.querySelectorAll("section");return t!==void 0?r?r[t]:void 0:n},getPreviousSlide:function(){return yt},getCurrentSlide:function(){return bt},getScale:function(){return Mt},getConfig:function(){return kt},getQueryHash:function(){var e={};return location.search.replace(/[A-Z0-9]+?=(\w*)/gi,function(t){e[t.split("=").shift()]=t.split("=").pop()}),e},isFirstSlide:function(){return null==document.querySelector(wt+".past")?!0:!1},isLastSlide:function(){return bt&&bt.classList.contains(".stack")?null==bt.querySelector(wt+".future")?!0:!1:null==document.querySelector(wt+".future")?!0:!1},addEventListener:function(e,t,n){"addEventListener"in window&&(Pt.wrapper||document.querySelector(".reveal")).addEventListener(e,t,n)},removeEventListener:function(e,t,n){"addEventListener"in window&&(Pt.wrapper||document.querySelector(".reveal")).removeEventListener(e,t,n)}}}();