bpm-presentation/plugin/search/search.js
2022-01-19 21:19:28 -05:00

8 lines
22 KiB
JavaScript

!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).RevealSearch=t()}(this,(function(){"use strict";var e,t,n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},r=function(e){try{return!!e()}catch(e){return!0}},o=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),i=function(e){return e&&e.Math==Math&&e},u=i("object"==typeof globalThis&&globalThis)||i("object"==typeof window&&window)||i("object"==typeof self&&self)||i("object"==typeof n&&n)||function(){return this}()||Function("return this")(),c=!r((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),a=c,f=Function.prototype,l=f.bind,s=f.call,p=a&&l.bind(s,s),d=a?function(e){return e&&p(e)}:function(e){return e&&function(){return s.apply(e,arguments)}},g=function(e){return"function"==typeof e},v=r,y=g,h=/#|\.prototype\./,b=function(e,t){var n=x[m(e)];return n==w||n!=S&&(y(t)?v(t):!!t)},m=b.normalize=function(e){return String(e).replace(h,".").toLowerCase()},x=b.data={},S=b.NATIVE="N",w=b.POLYFILL="P",O=b,E=g,j=function(e){return"object"==typeof e?null!==e:E(e)},R=u,I=j,T=R.String,P=R.TypeError,C=function(e){if(I(e))return e;throw P(T(e)+" is not an object")},k=u,_=g,A=k.String,N=k.TypeError,$=d,M=C,F=function(e){if("object"==typeof e||_(e))return e;throw N("Can't set "+A(e)+" as a prototype")},L=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=$(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return M(n),F(r),t?e(n,r):n.__proto__=r,n}}():void 0),D=g,z=j,K=L,B={},U=j,W=u.document,Y=U(W)&&U(W.createElement),G=function(e){return Y?W.createElement(e):{}},V=G,q=!o&&!r((function(){return 7!=Object.defineProperty(V("div"),"a",{get:function(){return 7}}).a})),X=o&&r((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),H=c,J=Function.prototype.call,Q=H?J.bind(J):function(){return J.apply(J,arguments)},Z=u,ee=g,te=function(e){return ee(e)?e:void 0},ne=function(e,t){return arguments.length<2?te(Z[e]):Z[e]&&Z[e][t]},re=d({}.isPrototypeOf),oe=u,ie=ne("navigator","userAgent")||"",ue=oe.process,ce=oe.Deno,ae=ue&&ue.versions||ce&&ce.version,fe=ae&&ae.v8;fe&&(t=(e=fe.split("."))[0]>0&&e[0]<4?1:+(e[0]+e[1])),!t&&ie&&(!(e=ie.match(/Edge\/(\d+)/))||e[1]>=74)&&(e=ie.match(/Chrome\/(\d+)/))&&(t=+e[1]);var le=t,se=r,pe=!!Object.getOwnPropertySymbols&&!se((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&le&&le<41})),de=pe&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,ge=ne,ve=g,ye=re,he=de,be=u.Object,me=he?function(e){return"symbol"==typeof e}:function(e){var t=ge("Symbol");return ve(t)&&ye(t.prototype,be(e))},xe=u.String,Se=g,we=function(e){try{return xe(e)}catch(e){return"Object"}},Oe=u.TypeError,Ee=function(e){if(Se(e))return e;throw Oe(we(e)+" is not a function")},je=function(e,t){var n=e[t];return null==n?void 0:Ee(n)},Re=Q,Ie=g,Te=j,Pe=u.TypeError,Ce={exports:{}},ke=u,_e=Object.defineProperty,Ae=function(e,t){try{_e(ke,e,{value:t,configurable:!0,writable:!0})}catch(n){ke[e]=t}return t},Ne=Ae,$e="__core-js_shared__",Me=u[$e]||Ne($e,{}),Fe=Me;(Ce.exports=function(e,t){return Fe[e]||(Fe[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.20.3",mode:"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.20.3/LICENSE",source:"https://github.com/zloirock/core-js"});var Le=u.TypeError,De=function(e){if(null==e)throw Le("Can't call method on "+e);return e},ze=De,Ke=u.Object,Be=function(e){return Ke(ze(e))},Ue=Be,We=d({}.hasOwnProperty),Ye=Object.hasOwn||function(e,t){return We(Ue(e),t)},Ge=d,Ve=0,qe=Math.random(),Xe=Ge(1..toString),He=function(e){return"Symbol("+(void 0===e?"":e)+")_"+Xe(++Ve+qe,36)},Je=u,Qe=Ce.exports,Ze=Ye,et=He,tt=pe,nt=de,rt=Qe("wks"),ot=Je.Symbol,it=ot&&ot.for,ut=nt?ot:ot&&ot.withoutSetter||et,ct=function(e){if(!Ze(rt,e)||!tt&&"string"!=typeof rt[e]){var t="Symbol."+e;tt&&Ze(ot,e)?rt[e]=ot[e]:rt[e]=nt&&it?it(t):ut(t)}return rt[e]},at=Q,ft=j,lt=me,st=je,pt=function(e,t){var n,r;if("string"===t&&Ie(n=e.toString)&&!Te(r=Re(n,e)))return r;if(Ie(n=e.valueOf)&&!Te(r=Re(n,e)))return r;if("string"!==t&&Ie(n=e.toString)&&!Te(r=Re(n,e)))return r;throw Pe("Can't convert object to primitive value")},dt=ct,gt=u.TypeError,vt=dt("toPrimitive"),yt=function(e,t){if(!ft(e)||lt(e))return e;var n,r=st(e,vt);if(r){if(void 0===t&&(t="default"),n=at(r,e,t),!ft(n)||lt(n))return n;throw gt("Can't convert object to primitive value")}return void 0===t&&(t="number"),pt(e,t)},ht=me,bt=function(e){var t=yt(e,"string");return ht(t)?t:t+""},mt=o,xt=q,St=X,wt=C,Ot=bt,Et=u.TypeError,jt=Object.defineProperty,Rt=Object.getOwnPropertyDescriptor,It="enumerable",Tt="configurable",Pt="writable";B.f=mt?St?function(e,t,n){if(wt(e),t=Ot(t),wt(n),"function"==typeof e&&"prototype"===t&&"value"in n&&Pt in n&&!n.writable){var r=Rt(e,t);r&&r.writable&&(e[t]=n.value,n={configurable:Tt in n?n.configurable:r.configurable,enumerable:It in n?n.enumerable:r.enumerable,writable:!1})}return jt(e,t,n)}:jt:function(e,t,n){if(wt(e),t=Ot(t),wt(n),xt)try{return jt(e,t,n)}catch(e){}if("get"in n||"set"in n)throw Et("Accessors not supported");return"value"in n&&(e[t]=n.value),e};var Ct=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},kt=B,_t=Ct,At=o?function(e,t,n){return kt.f(e,t,_t(1,n))}:function(e,t,n){return e[t]=n,e},Nt={},$t=d,Mt=$t({}.toString),Ft=$t("".slice),Lt=function(e){return Ft(Mt(e),8,-1)},Dt=d,zt=r,Kt=Lt,Bt=u.Object,Ut=Dt("".split),Wt=zt((function(){return!Bt("z").propertyIsEnumerable(0)}))?function(e){return"String"==Kt(e)?Ut(e,""):Bt(e)}:Bt,Yt=De,Gt=function(e){return Wt(Yt(e))},Vt=Math.ceil,qt=Math.floor,Xt=function(e){var t=+e;return t!=t||0===t?0:(t>0?qt:Vt)(t)},Ht=Xt,Jt=Math.max,Qt=Math.min,Zt=Xt,en=Math.min,tn=function(e){return e>0?en(Zt(e),9007199254740991):0},nn=tn,rn=Gt,on=function(e,t){var n=Ht(e);return n<0?Jt(n+t,0):Qt(n,t)},un=function(e){return nn(e.length)},cn=function(e){return function(t,n,r){var o,i=rn(t),u=un(i),c=on(r,u);if(e&&n!=n){for(;u>c;)if((o=i[c++])!=o)return!0}else for(;u>c;c++)if((e||c in i)&&i[c]===n)return e||c||0;return!e&&-1}},an={includes:cn(!0),indexOf:cn(!1)},fn={},ln=Ye,sn=Gt,pn=an.indexOf,dn=fn,gn=d([].push),vn=function(e,t){var n,r=sn(e),o=0,i=[];for(n in r)!ln(dn,n)&&ln(r,n)&&gn(i,n);for(;t.length>o;)ln(r,n=t[o++])&&(~pn(i,n)||gn(i,n));return i},yn=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],hn=vn,bn=yn.concat("length","prototype");Nt.f=Object.getOwnPropertyNames||function(e){return hn(e,bn)};var mn=j,xn=Lt,Sn=ct("match"),wn={};wn[ct("toStringTag")]="z";var On="[object z]"===String(wn),En=u,jn=On,Rn=g,In=Lt,Tn=ct("toStringTag"),Pn=En.Object,Cn="Arguments"==In(function(){return arguments}()),kn=jn?In:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Pn(e),Tn))?n:Cn?In(t):"Object"==(r=In(t))&&Rn(t.callee)?"Arguments":r},_n=kn,An=u.String,Nn=function(e){if("Symbol"===_n(e))throw TypeError("Cannot convert a Symbol value to a string");return An(e)},$n=C,Mn=function(){var e=$n(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},Fn=r,Ln=u.RegExp,Dn=Fn((function(){var e=Ln("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),zn=Dn||Fn((function(){return!Ln("a","y").sticky})),Kn={BROKEN_CARET:Dn||Fn((function(){var e=Ln("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:zn,UNSUPPORTED_Y:Dn},Bn={exports:{}},Un=g,Wn=Me,Yn=d(Function.toString);Un(Wn.inspectSource)||(Wn.inspectSource=function(e){return Yn(e)});var Gn,Vn,qn,Xn=Wn.inspectSource,Hn=g,Jn=Xn,Qn=u.WeakMap,Zn=Hn(Qn)&&/native code/.test(Jn(Qn)),er=Ce.exports,tr=He,nr=er("keys"),rr=function(e){return nr[e]||(nr[e]=tr(e))},or=Zn,ir=u,ur=d,cr=j,ar=At,fr=Ye,lr=Me,sr=rr,pr=fn,dr="Object already initialized",gr=ir.TypeError,vr=ir.WeakMap;if(or||lr.state){var yr=lr.state||(lr.state=new vr),hr=ur(yr.get),br=ur(yr.has),mr=ur(yr.set);Gn=function(e,t){if(br(yr,e))throw new gr(dr);return t.facade=e,mr(yr,e,t),t},Vn=function(e){return hr(yr,e)||{}},qn=function(e){return br(yr,e)}}else{var xr=sr("state");pr[xr]=!0,Gn=function(e,t){if(fr(e,xr))throw new gr(dr);return t.facade=e,ar(e,xr,t),t},Vn=function(e){return fr(e,xr)?e[xr]:{}},qn=function(e){return fr(e,xr)}}var Sr={set:Gn,get:Vn,has:qn,enforce:function(e){return qn(e)?Vn(e):Gn(e,{})},getterFor:function(e){return function(t){var n;if(!cr(t)||(n=Vn(t)).type!==e)throw gr("Incompatible receiver, "+e+" required");return n}}},wr=o,Or=Ye,Er=Function.prototype,jr=wr&&Object.getOwnPropertyDescriptor,Rr=Or(Er,"name"),Ir={EXISTS:Rr,PROPER:Rr&&"something"===function(){}.name,CONFIGURABLE:Rr&&(!wr||wr&&jr(Er,"name").configurable)},Tr=u,Pr=g,Cr=Ye,kr=At,_r=Ae,Ar=Xn,Nr=Ir.CONFIGURABLE,$r=Sr.get,Mr=Sr.enforce,Fr=String(String).split("String");(Bn.exports=function(e,t,n,r){var o,i=!!r&&!!r.unsafe,u=!!r&&!!r.enumerable,c=!!r&&!!r.noTargetGet,a=r&&void 0!==r.name?r.name:t;Pr(n)&&("Symbol("===String(a).slice(0,7)&&(a="["+String(a).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Cr(n,"name")||Nr&&n.name!==a)&&kr(n,"name",a),(o=Mr(n)).source||(o.source=Fr.join("string"==typeof a?a:""))),e!==Tr?(i?!c&&e[t]&&(u=!0):delete e[t],u?e[t]=n:kr(e,t,n)):u?e[t]=n:_r(t,n)})(Function.prototype,"toString",(function(){return Pr(this)&&$r(this).source||Ar(this)}));var Lr=ne,Dr=B,zr=o,Kr=ct("species"),Br=r,Ur=u.RegExp,Wr=Br((function(){var e=Ur(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),Yr=r,Gr=u.RegExp,Vr=Yr((function(){var e=Gr("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),qr=o,Xr=u,Hr=d,Jr=O,Qr=function(e,t,n){var r,o;return K&&D(r=t.constructor)&&r!==n&&z(o=r.prototype)&&o!==n.prototype&&K(e,o),e},Zr=At,eo=B.f,to=Nt.f,no=re,ro=function(e){var t;return mn(e)&&(void 0!==(t=e[Sn])?!!t:"RegExp"==xn(e))},oo=Nn,io=Mn,uo=Kn,co=Bn.exports,ao=r,fo=Ye,lo=Sr.enforce,so=function(e){var t=Lr(e),n=Dr.f;zr&&t&&!t[Kr]&&n(t,Kr,{configurable:!0,get:function(){return this}})},po=Wr,go=Vr,vo=ct("match"),yo=Xr.RegExp,ho=yo.prototype,bo=Xr.SyntaxError,mo=Hr(io),xo=Hr(ho.exec),So=Hr("".charAt),wo=Hr("".replace),Oo=Hr("".indexOf),Eo=Hr("".slice),jo=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,Ro=/a/g,Io=/a/g,To=new yo(Ro)!==Ro,Po=uo.MISSED_STICKY,Co=uo.UNSUPPORTED_Y,ko=qr&&(!To||Po||po||go||ao((function(){return Io[vo]=!1,yo(Ro)!=Ro||yo(Io)==Io||"/a/i"!=yo(Ro,"i")})));if(Jr("RegExp",ko)){for(var _o=function(e,t){var n,r,o,i,u,c,a=no(ho,this),f=ro(e),l=void 0===t,s=[],p=e;if(!a&&f&&l&&e.constructor===_o)return e;if((f||no(ho,e))&&(e=e.source,l&&(t="flags"in p?p.flags:mo(p))),e=void 0===e?"":oo(e),t=void 0===t?"":oo(t),p=e,po&&"dotAll"in Ro&&(r=!!t&&Oo(t,"s")>-1)&&(t=wo(t,/s/g,"")),n=t,Po&&"sticky"in Ro&&(o=!!t&&Oo(t,"y")>-1)&&Co&&(t=wo(t,/y/g,"")),go&&(i=function(e){for(var t,n=e.length,r=0,o="",i=[],u={},c=!1,a=!1,f=0,l="";r<=n;r++){if("\\"===(t=So(e,r)))t+=So(e,++r);else if("]"===t)c=!1;else if(!c)switch(!0){case"["===t:c=!0;break;case"("===t:xo(jo,Eo(e,r+1))&&(r+=2,a=!0),o+=t,f++;continue;case">"===t&&a:if(""===l||fo(u,l))throw new bo("Invalid capture group name");u[l]=!0,i[i.length]=[l,f],a=!1,l="";continue}a?l+=t:o+=t}return[o,i]}(e),e=i[0],s=i[1]),u=Qr(yo(e,t),a?this:ho,_o),(r||o||s.length)&&(c=lo(u),r&&(c.dotAll=!0,c.raw=_o(function(e){for(var t,n=e.length,r=0,o="",i=!1;r<=n;r++)"\\"!==(t=So(e,r))?i||"."!==t?("["===t?i=!0:"]"===t&&(i=!1),o+=t):o+="[\\s\\S]":o+=t+So(e,++r);return o}(e),n)),o&&(c.sticky=!0),s.length&&(c.groups=s)),e!==p)try{Zr(u,"source",""===p?"(?:)":p)}catch(e){}return u},Ao=function(e){e in _o||eo(_o,e,{configurable:!0,get:function(){return yo[e]},set:function(t){yo[e]=t}})},No=to(yo),$o=0;No.length>$o;)Ao(No[$o++]);ho.constructor=_o,_o.prototype=ho,co(Xr,"RegExp",_o)}so("RegExp");var Mo={},Fo={},Lo={}.propertyIsEnumerable,Do=Object.getOwnPropertyDescriptor,zo=Do&&!Lo.call({1:2},1);Fo.f=zo?function(e){var t=Do(this,e);return!!t&&t.enumerable}:Lo;var Ko=o,Bo=Q,Uo=Fo,Wo=Ct,Yo=Gt,Go=bt,Vo=Ye,qo=q,Xo=Object.getOwnPropertyDescriptor;Mo.f=Ko?Xo:function(e,t){if(e=Yo(e),t=Go(t),qo)try{return Xo(e,t)}catch(e){}if(Vo(e,t))return Wo(!Bo(Uo.f,e,t),e[t])};var Ho={};Ho.f=Object.getOwnPropertySymbols;var Jo=ne,Qo=Nt,Zo=Ho,ei=C,ti=d([].concat),ni=Jo("Reflect","ownKeys")||function(e){var t=Qo.f(ei(e)),n=Zo.f;return n?ti(t,n(e)):t},ri=Ye,oi=ni,ii=Mo,ui=B,ci=u,ai=Mo.f,fi=At,li=Bn.exports,si=Ae,pi=function(e,t,n){for(var r=oi(t),o=ui.f,i=ii.f,u=0;u<r.length;u++){var c=r[u];ri(e,c)||n&&ri(n,c)||o(e,c,i(t,c))}},di=O,gi={},vi=vn,yi=yn,hi=Object.keys||function(e){return vi(e,yi)},bi=o,mi=X,xi=B,Si=C,wi=Gt,Oi=hi;gi.f=bi&&!mi?Object.defineProperties:function(e,t){Si(e);for(var n,r=wi(t),o=Oi(t),i=o.length,u=0;i>u;)xi.f(e,n=o[u++],r[n]);return e};var Ei,ji=ne("document","documentElement"),Ri=C,Ii=gi,Ti=yn,Pi=fn,Ci=ji,ki=G,_i=rr("IE_PROTO"),Ai=function(){},Ni=function(e){return"<script>"+e+"</"+"script>"},$i=function(e){e.write(Ni("")),e.close();var t=e.parentWindow.Object;return e=null,t},Mi=function(){try{Ei=new ActiveXObject("htmlfile")}catch(e){}var e,t;Mi="undefined"!=typeof document?document.domain&&Ei?$i(Ei):((t=ki("iframe")).style.display="none",Ci.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Ni("document.F=Object")),e.close(),e.F):$i(Ei);for(var n=Ti.length;n--;)delete Mi.prototype[Ti[n]];return Mi()};Pi[_i]=!0;var Fi=Object.create||function(e,t){var n;return null!==e?(Ai.prototype=Ri(e),n=new Ai,Ai.prototype=null,n[_i]=e):n=Mi(),void 0===t?n:Ii.f(n,t)},Li=Q,Di=d,zi=Nn,Ki=Mn,Bi=Kn,Ui=Ce.exports,Wi=Fi,Yi=Sr.get,Gi=Wr,Vi=Vr,qi=Ui("native-string-replace",String.prototype.replace),Xi=RegExp.prototype.exec,Hi=Xi,Ji=Di("".charAt),Qi=Di("".indexOf),Zi=Di("".replace),eu=Di("".slice),tu=function(){var e=/a/,t=/b*/g;return Li(Xi,e,"a"),Li(Xi,t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),nu=Bi.BROKEN_CARET,ru=void 0!==/()??/.exec("")[1];(tu||ru||nu||Gi||Vi)&&(Hi=function(e){var t,n,r,o,i,u,c,a=this,f=Yi(a),l=zi(e),s=f.raw;if(s)return s.lastIndex=a.lastIndex,t=Li(Hi,s,l),a.lastIndex=s.lastIndex,t;var p=f.groups,d=nu&&a.sticky,g=Li(Ki,a),v=a.source,y=0,h=l;if(d&&(g=Zi(g,"y",""),-1===Qi(g,"g")&&(g+="g"),h=eu(l,a.lastIndex),a.lastIndex>0&&(!a.multiline||a.multiline&&"\n"!==Ji(l,a.lastIndex-1))&&(v="(?: "+v+")",h=" "+h,y++),n=new RegExp("^(?:"+v+")",g)),ru&&(n=new RegExp("^"+v+"$(?!\\s)",g)),tu&&(r=a.lastIndex),o=Li(Xi,d?n:a,h),d?o?(o.input=eu(o.input,y),o[0]=eu(o[0],y),o.index=a.lastIndex,a.lastIndex+=o[0].length):a.lastIndex=0:tu&&o&&(a.lastIndex=a.global?o.index+o[0].length:r),ru&&o&&o.length>1&&Li(qi,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&p)for(o.groups=u=Wi(null),i=0;i<p.length;i++)u[(c=p[i])[0]]=o[c[1]];return o});var ou=Hi;(function(e,t){var n,r,o,i,u,c=e.target,a=e.global,f=e.stat;if(n=a?ci:f?ci[c]||si(c,{}):(ci[c]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(u=ai(n,r))&&u.value:n[r],!di(a?r:c+(f?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;pi(i,o)}(e.sham||o&&o.sham)&&fi(i,"sham",!0),li(n,r,i,e)}})({target:"RegExp",proto:!0,forced:/./.exec!==ou},{exec:ou});var iu=d,uu=Ir.PROPER,cu=Bn.exports,au=C,fu=re,lu=Nn,su=r,pu=Mn,du="toString",gu=RegExp.prototype,vu=gu.toString,yu=iu(pu),hu=su((function(){return"/a/b"!=vu.call({source:"a",flags:"b"})})),bu=uu&&vu.name!=du;(hu||bu)&&cu(RegExp.prototype,du,(function(){var e=au(this),t=lu(e.source),n=e.flags;return"/"+t+"/"+lu(void 0===n&&fu(gu,e)&&!("flags"in gu)?yu(e):n)}),{unsafe:!0});var mu=c,xu=Function.prototype,Su=xu.apply,wu=xu.call,Ou="object"==typeof Reflect&&Reflect.apply||(mu?wu.bind(Su):function(){return wu.apply(Su,arguments)}),Eu=d,ju=Bn.exports,Ru=ou,Iu=r,Tu=ct,Pu=At,Cu=Tu("species"),ku=RegExp.prototype,_u=d,Au=Xt,Nu=Nn,$u=De,Mu=_u("".charAt),Fu=_u("".charCodeAt),Lu=_u("".slice),Du=function(e){return function(t,n){var r,o,i=Nu($u(t)),u=Au(n),c=i.length;return u<0||u>=c?e?"":void 0:(r=Fu(i,u))<55296||r>56319||u+1===c||(o=Fu(i,u+1))<56320||o>57343?e?Mu(i,u):r:e?Lu(i,u,u+2):o-56320+(r-55296<<10)+65536}},zu={codeAt:Du(!1),charAt:Du(!0)}.charAt,Ku=d,Bu=Be,Uu=Math.floor,Wu=Ku("".charAt),Yu=Ku("".replace),Gu=Ku("".slice),Vu=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,qu=/\$([$&'`]|\d{1,2})/g,Xu=Q,Hu=C,Ju=g,Qu=Lt,Zu=ou,ec=u.TypeError,tc=Ou,nc=Q,rc=d,oc=function(e,t,n,r){var o=Tu(e),i=!Iu((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),u=i&&!Iu((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[Cu]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t}));if(!i||!u||n){var c=Eu(/./[o]),a=t(o,""[e],(function(e,t,n,r,o){var u=Eu(e),a=t.exec;return a===Ru||a===ku.exec?i&&!o?{done:!0,value:c(t,n,r)}:{done:!0,value:u(n,t,r)}:{done:!1}}));ju(String.prototype,e,a[0]),ju(ku,o,a[1])}r&&Pu(ku[o],"sham",!0)},ic=r,uc=C,cc=g,ac=Xt,fc=tn,lc=Nn,sc=De,pc=function(e,t,n){return t+(n?zu(e,t).length:1)},dc=je,gc=function(e,t,n,r,o,i){var u=n+e.length,c=r.length,a=qu;return void 0!==o&&(o=Bu(o),a=Vu),Yu(i,a,(function(i,a){var f;switch(Wu(a,0)){case"$":return"$";case"&":return e;case"`":return Gu(t,0,n);case"'":return Gu(t,u);case"<":f=o[Gu(a,1,-1)];break;default:var l=+a;if(0===l)return i;if(l>c){var s=Uu(l/10);return 0===s?i:s<=c?void 0===r[s-1]?Wu(a,1):r[s-1]+Wu(a,1):i}f=r[l-1]}return void 0===f?"":f}))},vc=function(e,t){var n=e.exec;if(Ju(n)){var r=Xu(n,e,t);return null!==r&&Hu(r),r}if("RegExp"===Qu(e))return Xu(Zu,e,t);throw ec("RegExp#exec called on incompatible receiver")},yc=ct("replace"),hc=Math.max,bc=Math.min,mc=rc([].concat),xc=rc([].push),Sc=rc("".indexOf),wc=rc("".slice),Oc="$0"==="a".replace(/./,"$0"),Ec=!!/./[yc]&&""===/./[yc]("a","$0");oc("replace",(function(e,t,n){var r=Ec?"$":"$0";return[function(e,n){var r=sc(this),o=null==e?void 0:dc(e,yc);return o?nc(o,e,r,n):nc(t,lc(r),e,n)},function(e,o){var i=uc(this),u=lc(e);if("string"==typeof o&&-1===Sc(o,r)&&-1===Sc(o,"$<")){var c=n(t,i,u,o);if(c.done)return c.value}var a=cc(o);a||(o=lc(o));var f=i.global;if(f){var l=i.unicode;i.lastIndex=0}for(var s=[];;){var p=vc(i,u);if(null===p)break;if(xc(s,p),!f)break;""===lc(p[0])&&(i.lastIndex=pc(u,fc(i.lastIndex),l))}for(var d,g="",v=0,y=0;y<s.length;y++){for(var h=lc((p=s[y])[0]),b=hc(bc(ac(p.index),u.length),0),m=[],x=1;x<p.length;x++)xc(m,void 0===(d=p[x])?d:String(d));var S=p.groups;if(a){var w=mc([h],m,b,u);void 0!==S&&xc(w,S);var O=lc(tc(o,void 0,w))}else O=gc(h,u,b,m,S,o);b>=v&&(g+=wc(u,v,b)+O,v=b+h.length)}return g+wc(u,v)}]}),!!ic((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!Oc||Ec);var jc=kn,Rc=On?{}.toString:function(){return"[object "+jc(this)+"]"},Ic=On,Tc=Bn.exports,Pc=Rc;Ic||Tc(Object.prototype,"toString",Pc,{unsafe:!0})
/*!
* Handles finding a text string anywhere in the slides and showing the next occurrence to the user
* by navigatating to that slide and highlighting it.
*
* @author Jon Snyder <snyder.jon@gmail.com>, February 2013
*/;return function(){var e,t,n,r,o,i,u;function c(){(t=document.createElement("div")).classList.add("searchbox"),t.style.position="absolute",t.style.top="10px",t.style.right="10px",t.style.zIndex=10,t.innerHTML='<input type="search" class="searchinput" placeholder="Search..." style="vertical-align: top;"/>\n\t\t</span>',(n=t.querySelector(".searchinput")).style.width="240px",n.style.fontSize="14px",n.style.padding="4px 6px",n.style.color="#000",n.style.background="#fff",n.style.borderRadius="2px",n.style.border="0",n.style.outline="0",n.style.boxShadow="0 2px 18px rgba(0, 0, 0, 0.2)",n.style["-webkit-appearance"]="none",e.getRevealElement().appendChild(t),n.addEventListener("keyup",(function(t){if(13===t.keyCode)t.preventDefault(),function(){if(i){var t=n.value;""===t?(u&&u.remove(),r=null):(u=new l("slidecontent"),r=u.apply(t),o=0)}r&&(r.length&&r.length<=o&&(o=0),r.length>o&&(e.slide(r[o].h,r[o].v),o++))}(),i=!1;else i=!0}),!1),f()}function a(){t||c(),t.style.display="inline",n.focus(),n.select()}function f(){t||c(),t.style.display="none",u&&u.remove()}function l(t,n){var r=document.getElementById(t)||document.body,o=n||"EM",i=new RegExp("^(?:"+o+"|SCRIPT|FORM)$"),u=["#ff6","#a0ffff","#9f9","#f99","#f6f"],c=[],a=0,f="",l=[];this.setRegex=function(e){e=e.replace(/^[^\w]+|[^\w]+$/g,"").replace(/[^\w'-]+/g,"|"),f=new RegExp("("+e+")","i")},this.getRegex=function(){return f.toString().replace(/^\/\\b\(|\)\\b\/i$/g,"").replace(/\|/g," ")},this.hiliteWords=function(t){if(null!=t&&t&&f&&!i.test(t.nodeName)){if(t.hasChildNodes())for(var n=0;n<t.childNodes.length;n++)this.hiliteWords(t.childNodes[n]);var r,s;if(3==t.nodeType)if((r=t.nodeValue)&&(s=f.exec(r))){for(var p=t;null!=p&&"SECTION"!=p.nodeName;)p=p.parentNode;var d=e.getIndices(p),g=l.length,v=!1;for(n=0;n<g;n++)l[n].h===d.h&&l[n].v===d.v&&(v=!0);v||l.push(d),c[s[0].toLowerCase()]||(c[s[0].toLowerCase()]=u[a++%u.length]);var y=document.createElement(o);y.appendChild(document.createTextNode(s[0])),y.style.backgroundColor=c[s[0].toLowerCase()],y.style.fontStyle="inherit",y.style.color="#000";var h=t.splitText(s.index);h.nodeValue=h.nodeValue.substring(s[0].length),t.parentNode.insertBefore(y,h)}}},this.remove=function(){for(var e,t=document.getElementsByTagName(o);t.length&&(e=t[0]);)e.parentNode.replaceChild(e.firstChild,e)},this.apply=function(e){if(null!=e&&e)return this.remove(),this.setRegex(e),this.hiliteWords(r),l}}return{id:"search",init:function(n){(e=n).registerKeyboardShortcut("CTRL + Shift + F","Search"),document.addEventListener("keydown",(function(e){"F"==e.key&&(e.ctrlKey||e.metaKey)&&(e.preventDefault(),t||c(),"inline"!==t.style.display?a():f())}),!1)},open:a}}}));