!function(e){"function"==typeof define&&define.amd?define(e):e()}((function(){"use strict";var e=function(){var e,t,n,i;function r(e,t){var n=document.getElementById(e)||document.body,i=t||"EM",r=new RegExp("^(?:"+i+"|SCRIPT|FORM)$"),l=["#ff6","#a0ffff","#9f9","#f99","#f6f"],a=[],d=0,o="",c=[];this.setRegex=function(e){e=e.replace(/^[^\w]+|[^\w]+$/g,"").replace(/[^\w'-]+/g,"|"),o=new RegExp("("+e+")","i")},this.getRegex=function(){return o.toString().replace(/^\/\\b\(|\)\\b\/i$/g,"").replace(/\|/g," ")},this.hiliteWords=function(e){if(null!=e&&e&&o&&!r.test(e.nodeName)){if(e.hasChildNodes())for(var t=0;tt&&(Reveal.slide(e[t].h,e[t].v),t++))}var o={};if(o.wrapper=document.querySelector(".reveal"),!o.wrapper.querySelector(".searchbox")){var c=document.createElement("div");c.id="searchinputdiv",c.classList.add("searchdiv"),c.style.position="absolute",c.style.top="10px",c.style.right="10px",c.style.zIndex=10,c.innerHTML='',o.wrapper.appendChild(c)}return document.getElementById("searchbutton").addEventListener("click",(function(e){d()}),!1),document.getElementById("searchinput").addEventListener("keyup",(function(e){switch(e.keyCode){case 13:e.preventDefault(),d(),n=!1;break;default:n=!0}}),!1),document.addEventListener("keydown",(function(e){"F"==e.key&&(e.ctrlKey||e.metaKey)&&(e.preventDefault(),"inline"!==document.getElementById("searchinputdiv").style.display?l():a())}),!1),a(),{id:"search",init:function(e){e.registerKeyboardShortcut("CTRL + Shift + F","Search")},open:l}}();Reveal.registerPlugin(e)}));