System.register([],(function(e){"use strict";return{execute:function(){e("i",(function(e,t){var n,o,r,i,a=0,c=function(e,t){a===n&&t.loop&&(a=0),setTimeout((function(){s(e[a],t)}),t.startDelay)},s=function(t,n){var o=0,r=t.length,i=setInterval((function(){if(n.placeholder?e.placeholder+=t[o]:e.textContent+=t[o],++o===r)return l(i,n)}),n.typeSpeed)},l=function(e,t){return clearInterval(e),t.disableBackTyping&&a===n-1?t.onFinished():t.loop||a!==n-1?void setTimeout((function(){return d(t)}),t.backDelay):t.onFinished()},d=function(t){var n=t.placeholder?e.placeholder:e.textContent,o=n.length,r=setInterval((function(){if(t.placeholder?e.placeholder=e.placeholder.substr(0,--o):e.textContent=n.substr(0,--o),0===o)return u(r,t)}),t.backSpeed)},u=function(e,t){clearInterval(e),++a,c(o,t)};return r=function(e){var t=e.strings,n=void 0===t?["Put your strings here...","and Enjoy!"]:t,o=e.typeSpeed,r=void 0===o?100:o,i=e.backSpeed,a=void 0===i?50:i,c=e.backDelay,s=void 0===c?500:c,l=e.startDelay,d=void 0===l?500:l,u=e.cursorChar,p=void 0===u?"|":u,h=e.placeholder,v=void 0!==h&&h,f=e.showCursor,y=void 0===f||f,g=e.disableBackTyping,b=void 0!==g&&g,C=e.onFinished,k=void 0===C?function(){}:C,S=e.loop;return{strings:n,typeSpeed:r,backSpeed:a,cursorChar:p,backDelay:s,placeholder:v,startDelay:d,showCursor:y,loop:void 0===S||S,disableBackTyping:b,onFinished:k}}(t||{}),i=r.strings,o=i,n=i.length,"string"==typeof e&&(e=document.querySelector(e)),r.showCursor&&function(e,t){var n=document.createElement("span");n.classList.add("ityped-cursor"),n.textContent="|",n.textContent=t.cursorChar,e.insertAdjacentElement("afterend",n)}(e,r),void c(i,r)}))}}}));
