function dfb_typing_ai_text(t,e,a,i,n,s,l){Array.isArray(a)&&0!==a.length||(a=["#000"]);var r=!0;document.getElementById("console");var o=1,d=1,$=!1,g=!1,h=document.getElementById(e);h.setAttribute("style","color:"+a[0]),h.classList.contains("typing")&&window.setInterval(function(){if(0===o&&!1===$&&!1===g)console.log("Start New"),$=!0,h.children[0].innerHTML=t[0].substring(0,o),window.setTimeout(function(){if("same_line"===s){var e=a.shift();a.push(e),"on"===l&&t.push(i),h.setAttribute("style","color:"+a[0])}console.log("words: "+t);var i=t.shift();o+=d=1,$=!1},0);else if(t.length>0&&o===t[0].length+1&&!1===$&&!1===g){if(console.log("End sentence"),$=!0,"same_line"===s)window.setTimeout(function(){o+=d=-1,$=!1,console.log(t),console.log(t.length),1===t.length&&"off"===l&&(g=!0)},i);else{g=!0,o=0,$=!1;var n=h.nextElementSibling;null!==n&&(n.classList.add("typing"),jQuery(".ai_loading_text.typing").each(function(){var t=jQuery(this).attr("data-ai_text_method");if("same_line"==t)var e=JSON.parse(jQuery(this).attr("data-ai_text")),a=JSON.parse(jQuery(this).attr("data-ai_text_color"));else{var n=jQuery(this).attr("data-ai_text"),s=jQuery(this).attr("data-ai_text_color"),e=[n];a=[s]}var l=jQuery(this).attr("id"),r=jQuery(this).attr("data-ai_text_pause"),o=jQuery(this).attr("data-ai_type_speed"),d=jQuery(this).attr("data-ai_loop_text");setTimeout(function(){dfb_typing_ai_text(e,l,a,r,o,t,d)},i)}),h.classList.remove("typing"))}}else t.length>0&&!1===$&&!1===g&&(console.log("letter typed"),console.log(e+t),h.children[0].innerHTML=t[0].substring(0,o),o+=d)},n),window.setInterval(function(){!0===r?(jQuery(".console-underscore").addClass("hidden"),r=!1):(jQuery(".console-underscore").removeClass("hidden"),r=!0)},400)}