(window.webpackJsonp=window.webpackJsonp||[]).push([[98],{1048:function(e,t,n){"use strict";n.r(t);n(26),n(70),n(65),n(46),n(36),n(47);var r=n(5),o=Object(r.c)({props:{text:String,options:Object},setup:function(e){var t=Object(r.i)(0),n=Object(r.h)({startTime:0,changeTime:0,exclude:[" "],baffledArray:e.text.split("")}),o=Object(r.h)([]),l=Object(r.a)((function(){return n.baffledArray.join("")})),c=function(){var r=function(text,e){for(var t=[],i=0;i<text.length;i++)t.push(Math.floor(1e3*Math.random())+(e-1e3));return t}(e.text,e.options.maxTimeToDecrypt);for(console.debug("== baffle",{interval:t.value,text:e.text,options:e.options,timeToReveal:r}),clearInterval(t.value);o.length>0;)o.shift();for(;o.length!==r.length;)o.push(r[o.length]);n.startTime=Date.now(),t.value=window.setInterval((function(){if(Date.now()-n.changeTime>e.options.speed){n.changeTime=Date.now();var t=n.baffledArray.length;n.baffledArray=[];for(var i=0;i<t;i++)n.exclude.includes(e.text[i])||o[i]<=Date.now()-n.startTime?n.baffledArray.push(e.text[i]):n.baffledArray.push(e.options.characters[Math.floor(Math.random()*e.options.characters.length)])}}),2)};return Object(r.f)((function(){c()})),Object(r.g)((function(){return clearInterval(t.value)})),Object(r.p)((function(){return e}),(function(){return c()}),{deep:!0}),{baffledText:l}}}),l=n(45),component=Object(l.a)(o,(function(){var e=this,t=e.$createElement;return(e._self._c||t)("span",[e._v("\n  "+e._s(e.baffledText)+"\n")])}),[],!1,null,null,null);t.default=component.exports}}]);