Categories
allPost

AI Chat – DeepAI

52 people 👁️ing this randomly


AI Chat

Try Adsterra Earnings, it’s 100% Authentic to make money more and more.

Try Adsterra Earnings, it’s 100% Authentic to make money more and more.

AI Chat is an AI chatbot that writes text. You can use it to write stories, messages, or programming code. You can use the AI chatbot as a virtual tutor in almost any subject.

Chat History

Explore different AI Chat Modes:

Chat with AI Characters!

What is Genius Mode?

It is an enhanced version of AI Chat that provides more knowledge, fewer errors, improved reasoning skills, better verbal fluidity, and an overall superior performance. Due to the larger AI model, Genius Mode is only available via subscription to DeepAI Pro. However, the added benefits often make it a worthwhile investment.

What is Online Mode?

It is an add on that enables AI Chat to browse the web for real-time information. It is a great way to learn new things and explore new topics. Sign in to your DeepAI account (no subscription required!) to gain access to this feature.

Learn more about AI Chat:


• Can you describe the concept of relativity to me in layman’s terms?
• What are some unique and entertaining ways to celebrate a friend’s anniversary?
• Could you walk me through how to use loops in Python?
• Can recall information from previous conversations to provide personalized responses.
• Allows users to correct any misunderstandings or errors in the previous interaction.
• Is programmed to refuse inappropriate or harmful requests.

• Can occasionally provide incorrect information due to limitations in its training data or understanding.
• May inadvertently provide instructions or suggestions that are harmful or biased without realizing it.
• Limited knowledge of current events and developments beyond the training data cutoff of 2021.

Pricing

  • Generation Overview

    AI Generator calls

    AI Chat messages

    Genius Mode messages

    Genius Mode images

    AD-free experience

    Private images

    API access

  • Includes 500 AI Image generations, 1750 AI Chat Messages, 60 Genius Mode Messages and 60 Genius Mode Images per month. If you go over any of these limits, you will be charged an extra $5 for that group.
  • For example: if you go over 500 AI images, but stay within the limits for AI Chat and Genius Mode, you’ll be charged $5 per additional 500 AI Image generations.
  • Includes 100 AI Image generations and 300 AI Chat Messages. If you go over any of these limits, you will have to pay as you go.
  • For example: if you go over 100 AI images, but stay within the limits for AI Chat, you’ll have to reload on credits to generate more images. Choose from $5 – $1000. You’ll only pay for what you use.

Subscribe to PRO using:

$5.00 USD $5.00 USD $10.00 USD $20.00 USD $50.00 USD $100.00 USD $200.00 USD $500.00 USD $1000.00 USD See Full Pricing Page $5.00 USD $5.00 USD $10.00 USD $20.00 USD $50.00 USD $100.00 USD $200.00 USD $500.00 USD $1000.00 USD <![CDATA[var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.createTemplateTagFirstArg=function(a){return a.raw=a};$jscomp.createTemplateTagFirstArgWithRaw=function(a,b){a.raw=b;return a};$jscomp.arrayIteratorImpl=function(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}};$jscomp.arrayIterator=function(a){return{next:$jscomp.arrayIteratorImpl(a)}};$jscomp.makeIterator=function(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];return b?b.call(a):$jscomp.arrayIterator(a)};$jscomp.arrayFromIterator=function(a){for(var b,c=[];!(b=a.next()).done;)c.push(b.value);return c};$jscomp.arrayFromIterable=function(a){return a instanceof Array?a:$jscomp.arrayFromIterator($jscomp.makeIterator(a))};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.SIMPLE_FROUND_POLYFILL=!1;$jscomp.ISOLATE_POLYFILLS=!1;$jscomp.FORCE_POLYFILL_PROMISE=!1;$jscomp.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION=!1;$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){if(a==Array.prototype||a==Object.prototype)return a;a[b]=c.value;return a};$jscomp.getGlobal=function(a){a=["object"==typeof globalThis&&globalThis,a,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var b=0;b<a.length;++b){var c=a[b];if(c&&c.Math==Math)return c}throw Error("Cannot find global object");};$jscomp.global=$jscomp.getGlobal(this);$jscomp.IS_SYMBOL_NATIVE="function"===typeof Symbol&&"symbol"===typeof Symbol("x");$jscomp.TRUST_ES6_POLYFILLS=!$jscomp.ISOLATE_POLYFILLS||$jscomp.IS_SYMBOL_NATIVE;$jscomp.polyfills={};$jscomp.propertyToPolyfillSymbol={};$jscomp.POLYFILL_PREFIX="$jscp$";var $jscomp$lookupPolyfilledValue=function(a,b){var c=$jscomp.propertyToPolyfillSymbol[b];if(null==c)return a[b];c=a[c];return void 0!==c?c:a[b]};$jscomp.polyfill=function(a,b,c,d){b&&($jscomp.ISOLATE_POLYFILLS?$jscomp.polyfillIsolated(a,b,c,d):$jscomp.polyfillUnisolated(a,b,c,d))};$jscomp.polyfillUnisolated=function(a,b,c,d){c=$jscomp.global;a=a.split(".");for(d=0;d>0,$jscomp.propertyToPolyfillSymbol[e]=$jscomp.IS_SYMBOL_NATIVE?$jscomp.global.Symbol(e):$jscomp.POLYFILL_PREFIX+c+”$”+e),$jscomp.defineProperty(d,$jscomp.propertyToPolyfillSymbol[e],{configurable:!0,writable:!0,value:b})))};$jscomp.underscoreProtoCanBeSet=function(){var a={a:!0},b={};try{return b.__proto__=a,b.a}catch(c){}return!1};$jscomp.setPrototypeOf=$jscomp.TRUST_ES6_POLYFILLS&&”function”==typeof Object.setPrototypeOf?Object.setPrototypeOf:$jscomp.underscoreProtoCanBeSet()?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+” is not extensible”);return a}:null;$jscomp.generator={};$jscomp.generator.ensureIteratorResultIsObject_=function(a){if(!(a instanceof Object))throw new TypeError(“Iterator result “+a+” is not an object”);};$jscomp.generator.Context=function(){this.isRunning_=!1;this.yieldAllIterator_=null;this.yieldResult=void 0;this.nextAddress=1;this.finallyAddress_=this.catchAddress_=0;this.finallyContexts_=this.abruptCompletion_=null};$jscomp.generator.Context.prototype.start_=function(){if(this.isRunning_)throw new TypeError(“Generator is already running”);this.isRunning_=!0};$jscomp.generator.Context.prototype.stop_=function(){this.isRunning_=!1};$jscomp.generator.Context.prototype.jumpToErrorHandler_=function(){this.nextAddress=this.catchAddress_||this.finallyAddress_};$jscomp.generator.Context.prototype.next_=function(a){this.yieldResult=a};$jscomp.generator.Context.prototype.throw_=function(a){this.abruptCompletion_={exception:a,isException:!0};this.jumpToErrorHandler_()};$jscomp.generator.Context.prototype.return=function(a){this.abruptCompletion_={return:a};this.nextAddress=this.finallyAddress_};$jscomp.generator.Context.prototype.jumpThroughFinallyBlocks=function(a){this.abruptCompletion_={jumpTo:a};this.nextAddress=this.finallyAddress_};$jscomp.generator.Context.prototype.yield=function(a,b){this.nextAddress=b;return{value:a}};$jscomp.generator.Context.prototype.yieldAll=function(a,b){a=$jscomp.makeIterator(a);var c=a.next();$jscomp.generator.ensureIteratorResultIsObject_(c);if(c.done)this.yieldResult=c.value,this.nextAddress=b;else return this.yieldAllIterator_=a,this.yield(c.value,b)};$jscomp.generator.Context.prototype.jumpTo=function(a){this.nextAddress=a};$jscomp.generator.Context.prototype.jumpToEnd=function(){this.nextAddress=0};$jscomp.generator.Context.prototype.setCatchFinallyBlocks=function(a,b){this.catchAddress_=a;void 0!=b&&(this.finallyAddress_=b)};$jscomp.generator.Context.prototype.setFinallyBlock=function(a){this.catchAddress_=0;this.finallyAddress_=a||0};$jscomp.generator.Context.prototype.leaveTryBlock=function(a,b){this.nextAddress=a;this.catchAddress_=b||0};$jscomp.generator.Context.prototype.enterCatchBlock=function(a){this.catchAddress_=a||0;a=this.abruptCompletion_.exception;this.abruptCompletion_=null;return a};$jscomp.generator.Context.prototype.enterFinallyBlock=function(a,b,c){c?this.finallyContexts_[c]=this.abruptCompletion_:this.finallyContexts_=[this.abruptCompletion_];this.catchAddress_=a||0;this.finallyAddress_=b||0};$jscomp.generator.Context.prototype.leaveFinallyBlock=function(a,b){b=this.finallyContexts_.splice(b||0)[0];if(b=this.abruptCompletion_=this.abruptCompletion_||b){if(b.isException)return this.jumpToErrorHandler_();void 0!=b.jumpTo&&this.finallyAddress_>0)+”_”,d=0,e=function(g){if(this instanceof e)throw new TypeError(“Symbol is not a constructor”);return new b(c+(g||””)+”_”+d++,g)};return e},”es6″,”es3″);$jscomp.polyfill(“Symbol.iterator”,function(a){if(a)return a;a=Symbol(“Symbol.iterator”);for(var b=”Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array”.split(” “),c=0;c<b.length;c++){var d=$jscomp.global[b[c]];"function"===typeof d&&"function"!=typeof d.prototype[a]&&$jscomp.defineProperty(d.prototype,a,{configurable:!0,writable:!0,value:function(){return $jscomp.iteratorPrototype($jscomp.arrayIteratorImpl(this))}})}return a},"es6","es3");$jscomp.iteratorPrototype=function(a){a={next:a};a[Symbol.iterator]=function(){return this};return a};$jscomp.polyfill("Promise",function(a){function b(){this.batch_=null}function c(f){return f instanceof e?f:new e(function(l,h){l(f)})}if(a&&(!($jscomp.FORCE_POLYFILL_PROMISE||$jscomp.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION&&"undefined"===typeof $jscomp.global.PromiseRejectionEvent)||!$jscomp.global.Promise||-1===$jscomp.global.Promise.toString().indexOf("[native code]")))return a;b.prototype.asyncExecute=function(f){if(null==this.batch_){this.batch_=[];var l=this;this.asyncExecuteFunction(function(){l.executeBatch_()})}this.batch_.push(f)};var d=$jscomp.global.setTimeout;b.prototype.asyncExecuteFunction=function(f){d(f,0)};b.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var f=this.batch_;this.batch_=[];for(var l=0;l<f.length;++l){var h=f[l];f[l]=null;try{h()}catch(k){this.asyncThrow_(k)}}}this.batch_=null};b.prototype.asyncThrow_=function(f){this.asyncExecuteFunction(function(){throw f;})};var e=function(f){this.state_=0;this.result_=void 0;this.onSettledCallbacks_=[];this.isRejectionHandled_=!1;var l=this.createResolveAndReject_();try{f(l.resolve,l.reject)}catch(h){l.reject(h)}};e.prototype.createResolveAndReject_=function(){function f(k){return function(m){h||(h=!0,k.call(l,m))}}var l=this,h=!1;return{resolve:f(this.resolveTo_),reject:f(this.reject_)}};e.prototype.resolveTo_=function(f){if(f===this)this.reject_(new TypeError("A Promise cannot resolve to itself"));else if(f instanceof e)this.settleSameAsPromise_(f);else{a:switch(typeof f){case"object":var l=null!=f;break a;case"function":l=!0;break a;default:l=!1}l?this.resolveToNonPromiseObj_(f):this.fulfill_(f)}};e.prototype.resolveToNonPromiseObj_=function(f){var l=void 0;try{l=f.then}catch(h){this.reject_(h);return}"function"==typeof l?this.settleSameAsThenable_(l,f):this.fulfill_(f)};e.prototype.reject_=function(f){this.settle_(2,f)};e.prototype.fulfill_=function(f){this.settle_(1,f)};e.prototype.settle_=function(f,l){if(0!=this.state_)throw Error("Cannot settle("+f+", "+l+"): Promise already settled in state"+this.state_);this.state_=f;this.result_=l;2===this.state_&&this.scheduleUnhandledRejectionCheck_();this.executeOnSettledCallbacks_()};e.prototype.scheduleUnhandledRejectionCheck_=function(){var f=this;d(function(){if(f.notifyUnhandledRejection_()){var l=$jscomp.global.console;"undefined"!==typeof l&&l.error(f.result_)}},1)};e.prototype.notifyUnhandledRejection_=function(){if(this.isRejectionHandled_)return!1;var f=$jscomp.global.CustomEvent,l=$jscomp.global.Event,h=$jscomp.global.dispatchEvent;if("undefined"===typeof h)return!0;"function"===typeof f?f=new f("unhandledrejection",{cancelable:!0}):"function"===typeof l?f=new l("unhandledrejection",{cancelable:!0}):(f=$jscomp.global.document.createEvent("CustomEvent"),f.initCustomEvent("unhandledrejection",!1,!0,f));f.promise=this;f.reason=this.result_;return h(f)};e.prototype.executeOnSettledCallbacks_=function(){if(null!=this.onSettledCallbacks_){for(var f=0;fb?-c:c}},"es6","es3");$jscomp.polyfill("Array.from",function(a){return a?a:function(b,c,d){c=null!=c?c:function(l){return l};var e=[],g="undefined"!=typeof Symbol&&Symbol.iterator&&b[Symbol.iterator];if("function"==typeof g){b=g.call(b);for(var f=0;!(g=b.next()).done;)e.push(c.call(d,g.value,f++))}else for(g=b.length,f=0;fc&&(c=Math.max(c+e,0));c<e;c++){var g=d[c];if(g===b||Object.is(g,b))return!0}return!1}},"es7","es3");$jscomp.checkStringArgs=function(a,b,c){if(null==a)throw new TypeError("The 'this' value for String.prototype."+c+" must not be null or undefined");if(b instanceof RegExp)throw new TypeError("First argument to String.prototype."+c+" must not be a regular expression");return a+""};$jscomp.polyfill("String.prototype.includes",function(a){return a?a:function(b,c){return-1!==$jscomp.checkStringArgs(this,b,"includes").indexOf(b,c||0)}},"es6","es3");$jscomp.polyfill("String.prototype.replaceAll",function(a){return a?a:function(b,c){if(b instanceof RegExp&&!b.global)throw new TypeError("String.prototype.replaceAll called with a non-global RegExp argument.");return b instanceof RegExp?this.replace(b,c):this.replace(new RegExp(String(b).replace(/([-()[]{}+?*.$^|,:#<!\])/g,"\$1").replace(/x08/g,"\x08"),"g"),c)}},"es_2021","es3");$jscomp.iteratorFromArray=function(a,b){a instanceof String&&(a+="");var c=0,d=!1,e={next:function(){if(!d&&c<a.length){var g=c++;return{value:b(g,a[g]),done:!1}}d=!0;return{done:!0,value:void 0}}};e[Symbol.iterator]=function(){return e};return e};$jscomp.polyfill("Array.prototype.keys",function(a){return a?a:function(){return $jscomp.iteratorFromArray(this,function(b){return b})}},"es6","es3");$jscomp.checkEs6ConformanceViaProxy=function(){try{var a={},b=Object.create(new $jscomp.global.Proxy(a,{get:function(c,d,e){return c==a&&"q"==d&&e==b}}));return!0===b.q}catch(c){return!1}};$jscomp.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS=!1;$jscomp.ES6_CONFORMANCE=$jscomp.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS&&$jscomp.checkEs6ConformanceViaProxy();$jscomp.polyfill("WeakMap",function(a){function b(){if(!a||!Object.seal)return!1;try{var k=Object.seal({}),m=Object.seal({}),n=new a([[k,2],[m,3]]);if(2!=n.get(k)||3!=n.get(m))return!1;n.delete(k);n.set(m,4);return!n.has(k)&&4==n.get(m)}catch(q){return!1}}function c(){}function d(k){var m=typeof k;return"object"===m&&null!==k||"function"===m}function e(k){if(!$jscomp.owns(k,f)){var m=new c;$jscomp.defineProperty(k,f,{value:m})}}function g(k){if(!$jscomp.ISOLATE_POLYFILLS){var m=Object[k];m&&(Object[k]=function(n){if(n instanceof c)return n;Object.isExtensible(n)&&e(n);return m(n)})}}if($jscomp.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS){if(a&&$jscomp.ES6_CONFORMANCE)return a}else if(b())return a;var f="$jscomp_hidden_"+Math.random();g("freeze");g("preventExtensions");g("seal");var l=0,h=function(k){this.id_=(l+=Math.random()+1).toString();if(k){k=$jscomp.makeIterator(k);for(var m;!(m=k.next()).done;)m=m.value,this.set(m[0],m[1])}};h.prototype.set=function(k,m){if(!d(k))throw Error("Invalid WeakMap key");e(k);if(!$jscomp.owns(k,f))throw Error("WeakMap key fail: "+k);k[f][this.id_]=m;return this};h.prototype.get=function(k){return d(k)&&$jscomp.owns(k,f)?k[f][this.id_]:void 0};h.prototype.has=function(k){return d(k)&&$jscomp.owns(k,f)&&$jscomp.owns(k[f],this.id_)};h.prototype.delete=function(k){return d(k)&&$jscomp.owns(k,f)&&$jscomp.owns(k[f],this.id_)?delete k[f][this.id_]:!1};return h},"es6","es3");$jscomp.MapEntry=function(){};$jscomp.polyfill("Map",function(a){function b(){if($jscomp.ASSUME_NO_NATIVE_MAP||!a||"function"!=typeof a||!a.prototype.entries||"function"!=typeof Object.seal)return!1;try{var h=Object.seal({x:4}),k=new a($jscomp.makeIterator([[h,"s"]]));if("s"!=k.get(h)||1!=k.size||k.get({x:4})||k.set({x:4},"t")!=k||2!=k.size)return!1;var m=k.entries(),n=m.next();if(n.done||n.value[0]!=h||"s"!=n.value[1])return!1;n=m.next();return n.done||4!=n.value[0].x||"t"!=n.value[1]||!m.next().done?!1:!0}catch(q){return!1}} if($jscomp.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS){if(a&&$jscomp.ES6_CONFORMANCE)return a}else if(b())return a;var c=new WeakMap,d=function(h){this.data_={};this.head_=f();this.size=0;if(h){h=$jscomp.makeIterator(h);for(var k;!(k=h.next()).done;)k=k.value,this.set(k[0],k[1])}};d.prototype.set=function(h,k){h=0===h?0:h;var m=e(this,h);m.list||(m.list=this.data_[m.id]=[]);m.entry?m.entry.value=k:(m.entry={next:this.head_,previous:this.head_.previous,head:this.head_,key:h,value:k},m.list.push(m.entry),this.head_.previous.next=m.entry,this.head_.previous=m.entry,this.size++);return this};d.prototype.delete=function(h){h=e(this,h);return h.entry&&h.list?(h.list.splice(h.index,1),h.list.length||delete this.data_[h.id],h.entry.previous.next=h.entry.next,h.entry.next.previous=h.entry.previous,h.entry.head=null,this.size–,!0):!1};d.prototype.clear=function(){this.data_={};this.head_=this.head_.previous=f();this.size=0};d.prototype.has=function(h){return!!e(this,h).entry};d.prototype.get=function(h){return(h=e(this,h).entry)&&h.value};d.prototype.entries=function(){return g(this,function(h){return[h.key,h.value]})};d.prototype.keys=function(){return g(this,function(h){return h.key})};d.prototype.values=function(){return g(this,function(h){return h.value})};d.prototype.forEach=function(h,k){for(var m=this.entries(),n;!(n=m.next()).done;)n=n.value,h.call(k,n[1],n[0],this)};d.prototype[Symbol.iterator]=d.prototype.entries;var e=function(h,k){var m=k&&typeof k;"object"==m||"function"==m?c.has(k)?m=c.get(k):(m=""+ ++l,c.set(k,m)):m="p_"+k;var n=h.data_[m];if(n&&$jscomp.owns(h.data_,m))for(h=0;h<n.length;h++){var q=n[h];if(k!==k&&q.key!==q.key||k===q.key)return{id:m,list:n,index:h,entry:q}}return{id:m,list:n,index:-1,entry:void 0}},g=function(h,k){var m=h.head_;return $jscomp.iteratorPrototype(function(){if(m){for(;m.head!=h.head_;)m=m.previous;for(;m.next!=m.head;)return m=m.next,{done:!1,value:k(m)};m=null}return{done:!0,value:void 0}})},f=function(){var h={};return h.previous=h.next=h.head=h},l=0;return d},"es6","es3");$jscomp.polyfill("Set",function(a){function b(){if($jscomp.ASSUME_NO_NATIVE_SET||!a||"function"!=typeof a||!a.prototype.entries||"function"!=typeof Object.seal)return!1;try{var d=Object.seal({x:4}),e=new a($jscomp.makeIterator([d]));if(!e.has(d)||1!=e.size||e.add(d)!=e||1!=e.size||e.add({x:4})!=e||2!=e.size)return!1;var g=e.entries(),f=g.next();if(f.done||f.value[0]!=d||f.value[1]!=d)return!1;f=g.next();return f.done||f.value[0]==d||4!=f.value[0].x||f.value[1]!=f.value[0]?!1:g.next().done}catch(l){return!1}} if($jscomp.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS){if(a&&$jscomp.ES6_CONFORMANCE)return a}else if(b())return a;var c=function(d){this.map_=new Map;if(d){d=$jscomp.makeIterator(d);for(var e;!(e=d.next()).done;)this.add(e.value)}this.size=this.map_.size};c.prototype.add=function(d){d=0===d?0:d;this.map_.set(d,d);this.size=this.map_.size;return this};c.prototype.delete=function(d){d=this.map_.delete(d);this.size=this.map_.size;return d};c.prototype.clear=function(){this.map_.clear();this.size=0};c.prototype.has=function(d){return this.map_.has(d)};c.prototype.entries=function(){return this.map_.entries()};c.prototype.values=function(){return this.map_.values()};c.prototype.keys=c.prototype.values;c.prototype[Symbol.iterator]=c.prototype.values;c.prototype.forEach=function(d,e){var g=this;this.map_.forEach(function(f){return d.call(e,f,f,g)})};return c},"es6","es3");try{"deepai.org"!==window.location.hostname&&"deep.ai"!==window.location.hostname&&"127.0.0.1"!==window.location.hostname&&(window.location.href="https://deepai.org"+window.location.pathname+window.location.search)}catch(a){console.log("error redirecting to deepai.org: "+a)}try{(function(a){a.location!==a.top.location&&(a.top.location=a.location)})(this)}catch(a){console.log("error breaking out of iframe",a)}var app_base_url="https://api.deepai.org";fetch(app_base_url+"/favicon.ico",{method:"POST",credentials:"include"});function setElementsStyleById(a,b){a.forEach(function(c){return document.getElementById(c).style=b})}function showElementsById(a){setElementsStyleById(a,"display: flex;")}function hideElementsById(a){setElementsStyleById(a,"display: none;")} function toggleAuthOption(a){var b=document.getElementById("loginToggle"),c=document.getElementById("signupToggle"),d=document.getElementById("social-auth-google"),e=document.getElementById("social-auth-github"),g=document.getElementById("switch-to-email"),f=document.getElementById("login-via-email-id"),l=document.getElementById("user-email-error"),h=document.getElementById("reenter-password-container-id");document.getElementById("user-email").focus();l.style="display: none;";"login"==a?(b.classList.contains("active")||(b.classList.add("active"),c.classList.remove("active")),document.getElementById("login-header-title").innerHTML="Login",d.setAttribute("onclick","social_login(event, 'google')"),e.setAttribute("onclick","social_login(event, 'github')"),g.innerHTML="Or login with email",g.setAttribute("onclick","authOptions('moreOptions')"),hideElementsById(["reenter-password-container-id","user-email-error"]),f.innerHTML="Login",f.setAttribute("onclick","login(event)")):(c.classList.contains("active")||(c.classList.add("active"),b.classList.remove("active")),document.getElementById("login-header-title").innerHTML="Signup",d.setAttribute("onclick","social_signup(event, 'google')"),e.setAttribute("onclick","social_signup(event, 'github')"),g.innerHTML="Or signup with email",g.setAttribute("onclick","authOptions('moreOptions')"),f.innerHTML="Signup",f.setAttribute("onclick","signup(event)"),hideElementsById(["forgot-password","user-email-error"]),h.style="display: "+("none"==d.style.display?"flex":"none")+";")} function authOptions(a){hideElementsById(["user-email-error"]);var b={true:{visible:"email-container-id password-container-id reenter-password-container-id login-via-email-id forgot-password go-back-login".split(" "),hidden:["switch-to-email","social-auth-google","social-auth-github"]},false:{visible:["switch-to-email","social-auth-google","social-auth-github"],hidden:"email-container-id password-container-id reenter-password-container-id login-via-email-id forgot-password go-back-login".split(" ")}};showElementsById(b["moreOptions"==a].visible);hideElementsById(b["moreOptions"==a].hidden);document.getElementById("user-email").focus();"moreOptions"==a&&"Login"==document.getElementById("login-via-email-id").innerHTML&&hideElementsById(["reenter-password-container-id"])} function togglePaymentOption(a){var b=document.getElementById("stripeGoToggle"),c=document.getElementById("paypalGoToggle"),d=document.getElementById("stripeProToggle"),e=document.getElementById("paypalProToggle"),g=document.getElementById("outstripeGoToggle"),f=document.getElementById("outpaypalGoToggle");"stripeGo"==a?(b.classList.contains("active")||(b.classList.add("active"),c.classList.remove("active")),g.classList.contains("active")||(g.classList.add("active"),f.classList.remove("active")),document.getElementById("stripe-go-button-container").style.display="flex",document.getElementById("out-stripe-go-button-container").style.display="flex",document.getElementById("stripe-pro-button-container").style.display="none",document.getElementById("paypal-button-container").style.display="none",document.getElementById("paypal-button-container-out-of-credits").style.display="none"):"paypalGo"==a?(c.classList.contains("active")||(c.classList.add("active"),b.classList.remove("active")),f.classList.contains("active")||(f.classList.add("active"),g.classList.remove("active")),document.getElementById("stripe-go-button-container").style.display="none",document.getElementById("out-stripe-go-button-container").style.display="none",document.getElementById("paypal-button-container").style.display="flex",document.getElementById("paypal-button-container-sub-popup").style.display="none",document.getElementById("paypal-button-container-out-of-credits").style.display="flex"):"stripePro"==a?(d.classList.contains("active")||(d.classList.add("active"),e.classList.remove("active")),document.getElementById("stripe-pro-button-container").style.display="flex",document.getElementById("stripe-go-button-container").style.display="none",document.getElementById("paypal-button-container-sub-popup").style.display="none"):(e.classList.contains("active")||(e.classList.add("active"),d.classList.remove("active")),document.getElementById("stripe-pro-button-container").style.display="none",document.getElementById("paypal-button-container-sub-popup").style.display="flex",document.getElementById("paypal-button-container").style.display="none")} function toggleMembershipOption(a){var b={pro:{active:"proToggle",inactive:"payGoToggle",titleDisplay:"flex",subheaderText:"DeepAI PRO member",priceText:"$4.99",lengthText:"/month",periodText:"Per month",genCallsValue:"500",chatCallsValue:"1750",geniusMessagesValue:"60",geniusMessagesFontSize:"14px",geniusImagesValue:"60",geniusImagesFontSize:"14px"},payGo:{active:"payGoToggle",inactive:"proToggle",titleDisplay:"none",subheaderText:"Pay as you go member",priceText:"$5.00",lengthText:"/starting",periodText:"Per $5",genCallsValue:"100",chatCallsValue:"350",geniusMessagesValue:"-",geniusMessagesFontSize:"30px",geniusImagesValue:"-",geniusImagesFontSize:"30px"}}["pro"===a?"pro":"payGo"];document.getElementById(b.active).classList.add("active");document.getElementById(b.inactive).classList.remove("active");document.getElementById("subscription-title-pro-id").style.display=b.titleDisplay;document.getElementById("subscriptions-subheader-id").innerHTML=b.subheaderText;document.getElementById("subscription-price-id").innerHTML=b.priceText;document.getElementById("subscription-length-id").innerHTML=b.lengthText;document.getElementById("gen-calls-per").innerHTML=b.periodText;document.getElementById("gen-calls-value").innerHTML=b.genCallsValue;document.getElementById("chat-calls-value").innerHTML=b.chatCallsValue;document.getElementById("genius-messages-value").innerHTML=b.geniusMessagesValue;document.getElementById("genius-messages-value").style.fontSize=b.geniusMessagesFontSize;document.getElementById("genius-images-value").innerHTML=b.geniusImagesValue;document.getElementById("genius-images-value").style.fontSize=b.geniusImagesFontSize;try{updateUserPlanButton("pro"===a)}catch(c){console.log("error getting user to check the plan",c)}}function setDisplayStyle(a,b){a.forEach(function(c){if(c=document.getElementById(c))c.style.display=b})} function changePaymentModalState(a){var b=["paypal-button-container","paypal-button-container-sub-pricing","paypal-button-container-sub-popup"],c=["membership-toggle-id","modal-subscription-section-id","subscription-start-id","modal-dropdown-payment-amount"],d=["sub-terms-pro","payment-container-pro"],e=["sub-terms-go","payment-container-go"],g=document.getElementById("subscribe-to-id");"start"===a?(setDisplayStyle(b,"none"),setDisplayStyle(c,"none"),document.getElementById("get-started-container-id").style.display="flex","none"===document.getElementById("subscription-title-pro-id").style.display?(togglePaymentOption("stripeGo"),setDisplayStyle(d,"none"),setDisplayStyle(e,"flex"),document.getElementById("modal-dropdown-payment-amount").style.display="flex",g.innerHTML="Pay as you go using:"):(togglePaymentOption("stripePro"),setDisplayStyle(e,"none"),setDisplayStyle(d,"flex"),g.innerHTML="Subscribe to PRO using:")):(setDisplayStyle(b,"none"),setDisplayStyle(c,"flex"),document.getElementById("get-started-container-id").style.display="none")} function togglePricingPageOptions(a){var b=document.getElementById("freeMembToggle"),c=document.getElementById("proMembToggle"),d=document.getElementById("goMembToggle");"free-memb"==a?(b.classList.contains("active")||(b.classList.add("active"),c.classList.remove("active"),d.classList.remove("active")),document.getElementById("middle-free-plan-column").style.display="block",document.getElementById("middle-pro-plan-column").style.display="none",document.getElementById("middle-go-plan-column").style.display="none"):"pro-memb"==a?(c.classList.contains("active")||(c.classList.add("active"),b.classList.remove("active"),d.classList.remove("active")),document.getElementById("middle-free-plan-column").style.display="none",document.getElementById("middle-pro-plan-column").style.display="block",document.getElementById("middle-go-plan-column").style.display="none"):(d.classList.contains("active")||(d.classList.add("active"),b.classList.remove("active"),c.classList.remove("active")),document.getElementById("middle-free-plan-column").style.display="none",document.getElementById("middle-pro-plan-column").style.display="none",document.getElementById("middle-go-plan-column").style.display="block")}function toggleMembershipOptionPricing(a){var b=document.getElementById("mobileProToggle"),c=document.getElementById("mobilePayGoToggle");a="pro"===a;try{updateClasses(b,c,a),updateContent(a)}catch(d){console.log("error updating pricing classes",d)}try{updateUserPlanButton(a)}catch(d){console.log("error getting user to check the plan",d)}} function updateClasses(a,b,c){a.classList.toggle("active",c);b.classList.toggle("active",!c)} function updateContent(a){var b=a?getProPlan():getGoPlan();document.getElementById("mobile-subscription-title-pro-id").style.display=a?"flex":"none";document.getElementById("mobile-subscriptions-subheader-id").innerHTML=b.subHeader;document.getElementById("mobile-subscription-price-id").innerHTML=b.price;document.getElementById("mobile-subscription-length-id").innerHTML=b.length;document.getElementById("mobile-gen-calls-per").innerHTML=b.period;document.getElementById("mobile-gen-calls-value").innerHTML=b.genCalls;document.getElementById("mobile-chat-calls-value").innerHTML=b.chatCalls;a=document.getElementById("mobile-genius-messages-value");a.innerHTML=b.geniusMessages;a.style.fontSize=b.messageSize;a=document.getElementById("mobile-genius-images-value");a.innerHTML=b.geniusImages;a.style.fontSize=b.imageSize} function updateUserPlanButton(a){var b=null;localStorage.getItem("user")&&(b=JSON.parse(localStorage.getItem("user")));if(b&&b.userprofile2){var c=b.userprofile2.user_has_deepai_pro;b=b.userprofile2.user_is_pay_as_you_go;a=a?!c:!b;c=document.getElementById("subscription-start-id");b=document.getElementById("mobile-subscription-start-id");c&&(c.style=a?"background-color: #8f37ff; border: none; cursor: pointer; pointer-events: all;":"background-color: transparent; border: 2px solid #8f37ff; cursor: default; pointer-events: none;",c.innerHTML=a?"Get Started":"Current Plan");b&&(b.style=a?"background-color: #8f37ff; border: none; cursor: pointer; pointer-events: all;":"background-color: transparent; border: 2px solid #8f37ff; cursor: default; pointer-events: none;",b.innerHTML=a?"Get Started":"Current Plan")}}function getProPlan(){return{subHeader:"DeepAI PRO member",price:"$4.99",length:"/month",period:"Per month",genCalls:"500",chatCalls:"1750",geniusMessages:"60",messageSize:"14px",geniusImages:"60",imageSize:"14px"}} function getGoPlan(){return{subHeader:"Pay as you go member",price:"$5.00",length:"/starting",period:"Per $5",genCalls:"100",chatCalls:"350",geniusMessages:"-",messageSize:"30px",geniusImages:"-",imageSize:"30px"}} function changePaymentModalStatePricing(a){var b="mobile-membership-toggle-id modal-subscription-section-id mobile-subscription-section-id subscription-start-id mobile-subscription-start-id paypal-button-container paypal-button-container-b paypal-button-container-sub-pricing paypal-button-container-sub-popup".split(" "),c=["mobile-sub-terms-pro","mobile-payment-container-pro","mobile-stripe-pro-button-container"],d=["mobile-sub-terms-go","mobile-payment-container-go","mobile-stripe-go-button-container"],e=document.getElementById("mobile-subscribe-to-id");"start"===a?(setDisplayStyle(b,"none"),setDisplayStyle(["get-started-container-id","mobile-get-started-container-id"],"flex"),"none"===document.getElementById("mobile-subscription-title-pro-id").style.display?(togglePaymentOption("stripeGo"),setDisplayStyle(c,"none"),setDisplayStyle(d,"flex"),e.innerHTML="Pay as you go using:",document.getElementById("mobile-dropdown-payment-amount").style.display="flex"):(togglePaymentOption("stripePro"),setDisplayStyle(d,"none"),setDisplayStyle(c,"flex"),e.innerHTML="Subscribe to PRO using:",document.getElementById("mobile-dropdown-payment-amount").style.display="none")):(setDisplayStyle(b,"flex"),setDisplayStyle(["get-started-container-id","mobile-get-started-container-id"],"none"),setDisplayStyle(["modal-dropdown-payment-amount","go-dropdown-payment-amount"],"none"))} function togglePaymentOptionMobile(a){var b=document.getElementById("mobilestripeGoToggle"),c=document.getElementById("mobilepaypalGoToggle"),d=document.getElementById("mobilestripeProToggle"),e=document.getElementById("mobilepaypalProToggle");"stripeGo"==a?(b.classList.contains("active")||(b.classList.add("active"),c.classList.remove("active")),document.getElementById("mobile-stripe-go-button-container").style.display="flex",document.getElementById("mobile-stripe-pro-button-container").style.display="none",document.getElementById("paypal-button-container-b").style.display="none"):"paypalGo"==a?(c.classList.contains("active")||(c.classList.add("active"),b.classList.remove("active")),document.getElementById("mobile-stripe-go-button-container").style.display="none",document.getElementById("paypal-button-container-b").style.display="flex",document.getElementById("paypal-button-container-sub-pricing").style.display="none"):("stripePro"==a?(d.classList.contains("active")||(d.classList.add("active"),e.classList.remove("active")),document.getElementById("mobile-stripe-pro-button-container").style.display="flex",document.getElementById("mobile-stripe-go-button-container").style.display="none",document.getElementById("paypal-button-container-sub-pricing").style.display="none"):(e.classList.contains("active")||(e.classList.add("active"),d.classList.remove("active")),document.getElementById("mobile-stripe-pro-button-container").style.display="none",document.getElementById("paypal-button-container-sub-pricing").style.display="flex"),document.getElementById("paypal-button-container-b").style.display="none")} function checkCurrentUserPricingPlan(a){a=void 0===a?"default":a;var b="default"===a?"pro-plan-button":"middle-pro-plan-button",c="default"===a?"free-plan-column":"middle-free-plan-column",d="default"===a?"go-plan-button":"middle-go-plan-button",e="default"===a?"free-plan-button":"middle-free-plan-button",g=null;localStorage.getItem("user")&&(g=JSON.parse(localStorage.getItem("user")));g&&g.userprofile2&&(g.userprofile2.user_has_deepai_pro?(document.getElementById(b)&&(setElementStyles(b,"Current Plan",!0),c&&(document.getElementById(c).style="display: none;"),document.getElementById("info-subscriptions-container").style="width: 22vw;",setElementOnClick(d,"openSubscription('go');"),"default"===a&&(setElementStyles("subscription-start-id","Current Plan",!0),setElementStyles("mobile-subscription-start-id","Current Plan",!0))),toggleMembershipOptionPricing("pro"),setElementOnClick("subscription-start-id","changePaymentModalState('start');"),setElementOnClick("mobile-subscription-start-id","changePaymentModalStatePricing('start');"),document.getElementById("freeMembToggle").style="display: none;"):g.userprofile2.user_is_pay_as_you_go?(document.getElementById(d)&&(setElementStyles(d,"Current Plan",!0),c&&(document.getElementById(c).style="display: none;"),document.getElementById("info-subscriptions-container").style="width: 24vw;","default"===a&&(setElementStyles("subscription-start-id","Current Plan",!0),setElementStyles("mobile-subscription-start-id","Current Plan",!0))),toggleMembershipOptionPricing("go"),setElementOnClick("subscription-start-id","changePaymentModalState('start');"),setElementOnClick("mobile-subscription-start-id","changePaymentModalStatePricing('start');"),document.getElementById("freeMembToggle").style="display: none;"):userIsLoggedIn()&&(setElementOnClick("subscription-start-id","changePaymentModalState('start');"),setElementOnClick("mobile-subscription-start-id","changePaymentModalStatePricing('start');"),document.getElementById(e)&&(setElementStyles(e,"Current Plan",!0),setElementOnClick(d,"openSubscription('go');"),"default"===a?setElementOnClick("pro-plan-button","openSubscription();"):setElementOnClick("middle-pro-plan-button","openSubscription();"))))}function setElementStyles(a,b,c){c=void 0===c?!1:c;if(a=document.getElementById(a))a.style=c?"background-color: transparent; border: 2px solid #8f37ff; cursor: default; pointer-events: none;":"background-color: #8f37ff; border: none; cursor: pointer; pointer-events: all;",a.innerHTML=b} function setElementOnClick(a,b){(a=document.getElementById(a))&&a.setAttribute("onClick",b)}function updateNonLoggedInUserPlan(){setElementOnClick("subscription-start-id","openSignup();");setElementStyles("subscription-start-id","Signup");setElementOnClick("mobile-subscription-start-id","openSignup();");setElementStyles("mobile-subscription-start-id","Signup")} function subscriptionPopupAfterAuth(){var a=null;localStorage.getItem("user")&&(a=JSON.parse(localStorage.getItem("user")));var b=document.getElementById("subscription-start-id").innerHTML;a&&a.userprofile2&&(a.userprofile2.user_has_deepai_pro||a.userprofile2.user_is_pay_as_you_go||"Signup"==b&&openSubscription())} try{document.addEventListener("visibilitychange",function(a){fetch(app_base_url+"/favicon.ico",{method:"POST",credentials:"include"})})}catch(a){console.log("error adding visibilitychange event listener: "+a)}function removeHeaderBackground(){document.querySelector("header").style.background=""} function changeHeaderBackground(){var a=document.querySelector("header"),b=document.getElementById("deepai.org_header"),c=a.getBoundingClientRect();b=b.getBoundingClientRect();var d=c.height;c=document.querySelector("body").getBoundingClientRect().height/d;b=-100*b.height/d;a.style.background="linear-gradient(180deg,#7729aa "+(b+-13.13*c)+"%,#170a2d "+(b+.17*c)+"%,#0a061d "+(b+6.9*c)+"%,rgba(10,6,30,0.99) "+(b+36.38*c)+"%,#010311 "+(b+98.59*c)+"%)"} try{user_paid_for_no_ads||changeHeaderBackground()}catch(a){console.log("error changing header background: "+a)}try{localStorage.setItem("name","Hello World!")}catch(a){console.log("Error – local storage is full. clearing local storage");try{localStorage.clear()}catch(b){console.log("error clearing local storage: "+b)}}var onCategoryPage=!1,reeferrerMadness=document.referrer,cookieUserReeferrer=localStorage.getItem("userReeferrer");void 0==cookieUserReeferrer&&(localStorage.setItem("userReeferrer",reeferrerMadness),cookieUserReeferrer=localStorage.getItem("userReeferrer"));var thisLocation=window.location.pathname,pagePathCookie=localStorage.getItem("pagePath");if(void 0==pagePathCookie)localStorage.setItem("pagePath",[thisLocation]);else if(!(1E5<pagePathCookie.length)){var newPagePathCookie=[pagePathCookie,thisLocation];localStorage.setItem("pagePath",newPagePathCookie)}var latestPagePathCookie=localStorage.getItem("pagePath");console.log(latestPagePathCookie);console.log(cookieUserReeferrer);if(document.createElement("dialog").showModal)console.log("not loading dialog polyfill");else{console.log("loading dialog polyfill…");var script=document.createElement("script");script.src="/static/js/libs/dialog-polyfill.js";script.type="text/javascript";script.async=!0;script.onload=function(){for(var a=$jscomp.makeIterator(document.getElementsByTagName("dialog")),b=a.next();!b.done;b=a.next())dialogPolyfill.registerDialog(b.value)};document.getElementsByTagName("head")[0].appendChild(script)} window.localStorage&&window.sessionStorage||function(){var a=function(b){function c(f,l,h){if(h){var k=new Date;k.setTime(k.getTime()+864E5*h);h="; expires="+k.toGMTString()}else h="";document.cookie=f+"="+l+h+"; path=/"}function d(f){f=JSON.stringify(f);"session"==b?window.name=f:c("localStorage",f,365)}function e(){var f=0,l;for(l in g)g.hasOwnProperty(l)&&(f+=1);return f}var g=function(){if("session"==b)var f=window.name;else a:{f=document.cookie.split(";");var l,h;for(l=0;le&&(e=0),a.getElementsByClassName(“heart-count”)[0].innerText=e):(a.setAttribute(“hearted”,”hearted”),c=”true”,b.hearts[a.attributes.heartid.value]=!0,a.getElementsByClassName(“heart-count”)[0].innerText=d+1);localStorage.setItem(“hearts-cache”,JSON.stringify(b));g=new FormData;f=a.attributes.heartid.value.split(“-“);l=f[0];h=f[1];g.append(“type”,l);g.append(“id”,h);g.append(“switch”,c);return m.yield(fetch(app_base_url+”/add_remove_heart”,{method:”POST”,credentials:”include”,body:g}),2)}k=m.yieldResult;console.log(“hearty response “,k);m.jumpToEnd()})}var modal=document.getElementById(“login-modal”),afterSignupFunction=null,openSignup=function(a,b){afterSignupFunction=a;userIsLoggedIn()?afterSignupFunction&&afterSignupFunction():(subscription_modal.close(),modal.showModal(),toggleAuthOption(“signup”),b&&(modal.getElementsByClassName(“login-header”)[0].innerHTML=b))},close=document.getElementById(“close”);close.addEventListener(“click”,function(){modal.close(“cancelled”);authOptions(“lessOptions”)});modal.addEventListener(“cancel”,function(){modal.close(“cancelled”);authOptions(“lessOptions”)});modal.addEventListener(“click”,function(a){a.target===modal&&(modal.close(“cancelled”),authOptions(“lessOptions”))});function getSignupCustomData(a){return{referrer:”[“+cookieUserReeferrer+”][“+latestPagePathCookie+”]”,signup_page:window.location.pathname,desired_username:a}} function save_custom_signup_data(a){var b,c;return $jscomp.asyncExecutePromiseGeneratorProgram(function(d){if(1==d.nextAddress)return b=getSignupCustomData(a),d.yield(fetch(app_base_url+”/save_custom_signup_data”,{credentials:”include”,method:”POST”,body:JSON.stringify(b),headers:{“Content-Type”:”application/json”}}),2);c=d.yieldResult;if(!c.ok)throw Error(“saving custom signup data HTTP status “+c.status);return d.return(null)})} function signup(a){var b,c,d,e,g,f,l,h,k,m,n,q,u,w,B,L,M,Z,N,T;return $jscomp.asyncExecutePromiseGeneratorProgram(function(v){switch(v.nextAddress){case 1:return a.preventDefault(),b=document.getElementById(“user-email-error”),b.innerHTML=””,b.setAttribute(“style”,”display: none;”),c=document.getElementById(“user-email”),d=document.getElementById(“user-password”),e=document.getElementById(“confirm-user-password”),g=c.value,f=d.value,l=e.value,h=new FormData,h.append(“email”,g),h.append(“username”,g),h.append(“password1”,f),h.append(“password2”,l),c.classList.add(“loading”),k=null,g?d?e||(k=”Password confirmation is required”):k=”Password is required”:k=”Email is required”,k?(b.innerHTML=k,b.setAttribute(“style”,”display: block;”),c.classList.remove(“loading”),v.return()):v.yield(get_user_login_type(g),3);case 3:m=v.yieldResult;if(m.user_exists){c.classList.remove(“loading”);n=”This account already exists”;m.login_with_password||(q=m.login_with_social_accounts[0],n=”This account exists and needs to be logged in using “+ q);b=document.getElementById(“user-email-error”);b.innerHTML=n;b.setAttribute(“className”,”bad-auth-error”);b.setAttribute(“style”,”display: flex;”);v.jumpTo(0);break}return v.yield(save_custom_signup_data(null),5);case 5:return v.yield(fetch(app_base_url+”/daily-time-sync/registration/”,{credentials:”include”,method:”POST”,body:h}),6);case 6:u=v.yieldResult;console.log(u);if(1==u.ok)return c.classList.remove(“loading”),modal.close(“cancelled”),afterSignupFunction?v.yield(auth(),16):v.yield(auth(),15);if(0!=u.ok){v.jumpTo(0);break}c.classList.remove(“loading”);if(500==u.status){w=”Hmm, something went wrong. Perhaps try another email address, or try again later.”;b=document.getElementById(“user-email-error”);b.innerHTML=w;b.setAttribute(“className”,”bad-auth-error”);b.setAttribute(“style”,”display: flex;”);v.jumpTo(0);break}if(!(400<=u.status)){v.jumpTo(0);break}return v.yield(u.json(),12);case 12:B=v.yieldResult;w="Hmm, something went wrong. Perhaps try another email address, or try again later.";L=$jscomp.makeIterator(Object.entries(B));for(M=L.next();!M.done;M=L.next())if(Z=M.value,N=$jscomp.makeIterator(Z),N.next(),T=N.next().value,T[0]){w=T[0];break}b=document.getElementById("user-email-error");b.innerHTML=w;b.setAttribute("className","bad-auth-error");b.setAttribute("style","display: flex;");v.jumpTo(0);break;case 15:try{subscriptionPopupAfterAuth(),checkCurrentUserPricingPlan(),checkCurrentUserPricingPlan("middle")}catch(U){console.log("error getting current user pricing plan: "+U)}v.jumpTo(0);break;case 16:afterSignupFunction();try{subscriptionPopupAfterAuth(),checkCurrentUserPricingPlan(),checkCurrentUserPricingPlan("middle")}catch(U){console.log("error getting current user pricing plan: "+U)}v.jumpToEnd()}})}function changePaySub(){var a=document.getElementById("subscription-pro-id"),b=document.getElementById("payasyougo-id");"flex"===a.style.display?(a.style.display="none",b.style.display="flex"):(a.style.display="flex",b.style.display="none")} var login_modal=document.getElementById("login-modal"),afterLoginFunction=null,openLogin=function(a){afterLoginFunction=a;userIsLoggedIn()?afterLoginFunction&&afterLoginFunction():(login_modal.showModal(),toggleAuthOption("login"))},closeLogin=document.getElementById("close-login");closeLogin.addEventListener("click",function(){login_modal.close("cancelled");authOptions("lessOptions")});login_modal.addEventListener("cancel",function(){login_modal.close("cancelled");authOptions("lessOptions")});login_modal.addEventListener("click",function(a){a.target===login_modal&&(login_modal.close("cancelled"),authOptions("lessOptions"))});var subscription_modal=document.getElementById("subscription-modal");afterLoginFunction=null;var openSubscription=function(a){localStorage.getItem("user")&&(user_object=JSON.parse(localStorage.getItem("user")));userIsLoggedIn()||updateNonLoggedInUserPlan();"go"==a?(subscription_modal.showModal(),changePaymentModalState("back"),toggleMembershipOption("go")):(subscription_modal.showModal(),changePaymentModalState("back"),toggleMembershipOption("pro"));window.addEventListener("message",function(){console.log("received message: ",event.data);"stripe subscription success"==event.data&&subscription_modal.close("cancelled")},!1)},closeSubscription=document.getElementById("close-sub");closeSubscription.addEventListener("click",function(){subscription_modal.close("cancelled")});subscription_modal.addEventListener("cancel",function(){subscription_modal.close("cancelled")});subscription_modal.addEventListener("click",function(a){a.target===subscription_modal&&subscription_modal.close("cancelled")});var out_of_credits_modal=document.getElementById("out-of-credits-modal"),openOutOfCredits=function(a){userIsLoggedIn()?(out_of_credits_modal.showModal(),null!==a&&void 0!==a&&(a=a.toFixed(2),document.getElementById("currentAccountBalance").innerText=a)):openLogin()},closeOutOfCredits=document.getElementById("close-out-of-credits");closeOutOfCredits.addEventListener("click",function(){out_of_credits_modal.close("cancelled")});out_of_credits_modal.addEventListener("cancel",function(){out_of_credits_modal.close("cancelled")});out_of_credits_modal.addEventListener("click",function(a){a.target===out_of_credits_modal&&out_of_credits_modal.close("cancelled")});function get_user_login_type(a){var b,c,d;return $jscomp.asyncExecutePromiseGeneratorProgram(function(e){switch(e.nextAddress){case 1:return b=new FormData,b.append("email",a),e.yield(fetch(app_base_url+"/get_user_login_type",{credentials:"include",method:"POST",body:b}),2);case 2:c=e.yieldResult;if(1!=c.ok){e.jumpTo(3);break}return e.yield(c.json(),4);case 4:return d=e.yieldResult,e.return(d);case 3:return e.return(null)}})} function login(a){var b,c,d,e,g,f,l,h,k,m;return $jscomp.asyncExecutePromiseGeneratorProgram(function(n){switch(n.nextAddress){case 1:a.preventDefault();b=document.getElementById("user-email-error");b.innerHTML="";b.setAttribute("style","display: none;");c=document.getElementById("user-email");d=document.getElementById("user-password");e=c.value;g=d.value;f=new FormData;f.append("username",e);f.append("password",g);if(""==e||""==d){n.jumpTo(0);break}c.classList.add("loading");return n.yield(get_user_login_type(e),3);case 3:return l=n.yieldResult,l.user_exists?l.login_with_password?n.yield(fetch(app_base_url+"/daily-time-sync/login/",{credentials:"include",method:"POST",body:f}),4):(c.classList.remove("loading"),k=l.login_with_social_accounts[0],h="This account needs to be logged in using "+k,b=document.getElementById("user-email-error"),b.innerHTML=h,b.setAttribute("className","bad-auth-error"),b.setAttribute("style","display: flex;"),n.return()):(c.classList.remove("loading"),h="No user with this email or username was found",b=document.getElementById("user-email-error"),b.innerHTML=h,b.setAttribute("className","bad-auth-error"),b.setAttribute("style","display: flex;"),n.return());case 4:m=n.yieldResult;console.log(m);if(1!=m.ok){0==m.ok&&(c.classList.remove("loading"),500==m.status?(h="Hmm, something went wrong. Let's try that again.",b=document.getElementById("user-email-error"),b.innerHTML=h,b.setAttribute("className","bad-auth-error"),b.setAttribute("style","display: flex;")):400==m.status&&(h="Email/password combination incorrect. Let's try that again.",b=document.getElementById("user-email-error"),b.innerHTML=h,b.setAttribute("className","bad-auth-error"),b.setAttribute("style","display: flex;")));n.jumpTo(0);break}c.classList.remove("loading");login_modal.close("cancelled");return afterLoginFunction?n.yield(auth(),9):n.yield(auth(),8);case 8:try{subscriptionPopupAfterAuth(),checkCurrentUserPricingPlan(),checkCurrentUserPricingPlan("middle")}catch(q){console.log("error getting current user pricing plan: "+q)}n.jumpTo(0);break;case 9:afterLoginFunction();try{subscriptionPopupAfterAuth(),checkCurrentUserPricingPlan(),checkCurrentUserPricingPlan("middle")}catch(q){console.log("error getting current user pricing plan: "+q)}n.jumpToEnd()}})}function sleep_async(a){return new Promise(function(b){return setTimeout(b,a)})} function social_auth(a,b){var c,d,e;return $jscomp.asyncExecutePromiseGeneratorProgram(function(g){switch(g.nextAddress){case 1:return c={linkedin:"/accounts/linkedin_oauth2/login/?process=login",google:"/accounts/google/login/?process=login",github:"/accounts/github/login/?process=login"},d=app_base_url+c[a],e=window.open("about:blank","deepaiLogin","height=600,width=600,left=10,top=10,resizable=yes,scrollbars=yes,toolbar=no,menubar=no,location=no,directories=no,status=no"),g.yield(save_custom_signup_data(b),2);case 2:e.location.href=d;case 3:return g.yield(sleep_async(200),5);case 5:if(e.closed)return g.return();g.jumpTo(3)}})} function social_signup(a,b){var c,d,e;return $jscomp.asyncExecutePromiseGeneratorProgram(function(g){switch(g.nextAddress){case 1:return a.preventDefault(),c=document.getElementById("user-email"),c.classList.add("loading"),d=document.getElementById("user-email-error"),d.innerHTML="",d.setAttribute("style","display: none;"),g.yield(social_auth(b,null),2);case 2:return g.yield(fetch(app_base_url+"/daily-time-sync/user/",{credentials:"include"}),3);case 3:e=g.yieldResult;if(1!=e.ok){c.classList.remove("loading");d.innerHTML="Hmm, something went wrong. You might already have an account with that email, or your passwords do not match.";d.setAttribute("className","bad-auth-error");d.setAttribute("style","display: flex;");g.jumpTo(0);break}c.classList.remove("loading");modal.close("cancelled");return afterSignupFunction?g.yield(auth(),8):g.yield(auth(),7);case 7:try{subscriptionPopupAfterAuth(),checkCurrentUserPricingPlan(),checkCurrentUserPricingPlan("middle")}catch(f){console.log("error getting current user pricing plan: "+ f)}g.jumpTo(0);break;case 8:afterSignupFunction();try{subscriptionPopupAfterAuth(),checkCurrentUserPricingPlan(),checkCurrentUserPricingPlan("middle")}catch(f){console.log("error getting current user pricing plan: "+f)}g.jumpToEnd()}})} function social_login(a,b){var c,d,e;return $jscomp.asyncExecutePromiseGeneratorProgram(function(g){switch(g.nextAddress){case 1:return a.preventDefault(),g.yield(social_auth(b,null),2);case 2:return c=document.getElementById("user-email"),c.classList.add("loading"),g.yield(fetch(app_base_url+"/daily-time-sync/user/",{credentials:"include"}),3);case 3:d=g.yieldResult;if(1!=d.ok){c.classList.remove("loading");e=document.getElementById("user-email-error");e.innerHTML="Hmm, something went wrong. Let's try that again.";e.setAttribute("className","bad-auth-error");e.setAttribute("style","display: flex;");g.jumpTo(0);break}c.classList.remove("loading");login_modal.close("cancelled");return g.yield(auth(),5);case 5:try{subscriptionPopupAfterAuth(),checkCurrentUserPricingPlan(),checkCurrentUserPricingPlan("middle")}catch(f){console.log("error getting current user pricing plan: "+f)}g.jumpToEnd()}})} function logout(){return $jscomp.asyncExecutePromiseGeneratorProgram(function(a){if(1==a.nextAddress)return a.yield(fetch(app_base_url+"/daily-time-sync/logout/",{method:"POST",credentials:"include"}),2);localStorage.removeItem("user");localStorage.removeItem("hearts-cache");user_object={};window.location="/";a.jumpToEnd()})} function resetPassword(a){var b,c,d,e;return $jscomp.asyncExecutePromiseGeneratorProgram(function(g){if(1==g.nextAddress)return b=document.getElementById("user-email-error"),b.innerHTML="",b.setAttribute("style","display: none;"),login_user_email=document.getElementById("user-email"),login_user_email_value=login_user_email.value,c=new FormData,c.append("email",login_user_email_value),g.yield(fetch(app_base_url+"/password_reset_trigger",{method:"POST",credentials:"include",body:c}),2);d=g.yieldResult;console.log(d);1==d.ok?(e="Check your email inbox to reset password.",b=document.getElementById("user-email-error"),console.log(b),b.innerHTML=e,b.setAttribute("class","good-auth-error"),b.setAttribute("style","display: flex;")):0==d.ok&&(e=document.getElementById("user-email").value?"Hmm something isn't right. Please try again or contact us.":"Please enter your email address above.",b=document.getElementById("user-email-error"),b.innerHTML=e,b.setAttribute("class","bad-auth-error"),b.setAttribute("style","display: flex;"));g.jumpToEnd()})} var thisPagePath=window.location.pathname,social_modal=document.getElementById("social-modal"),openSocial=function(a,b,c){social_modal.showModal();document.getElementById("share_title").innerHTML=b;document.getElementById("social-image").setAttribute("style","background-image: url('"+c+"')");document.getElementById("fb-link").href="https://www.facebook.com/sharer.php?u="+a;document.getElementById("tw-link").href="https://twitter.com/intent/tweet?url="+a;document.getElementById("lkdin-link").href="https://www.linkedin.com/shareArticle?mini=true&url="+ a},closeSocial=document.getElementById("close-social");closeSocial.addEventListener("click",function(){social_modal.close("cancelled")});social_modal.addEventListener("cancel",function(){social_modal.close("cancelled")});social_modal.addEventListener("click",function(a){a.target===social_modal&&social_modal.close("cancelled")});function fragmentFromString(a){return document.createRange().createContextualFragment(a)} function load_paypal_subscriptions(){var a=document.createElement("script");a.src="https://www.paypal.com/sdk/js?client-id=AYo4E41BoY_tpXUXuZ-5rclkCZATIojkd25Aym1lY7PBVTltF5NRLSmMK8bFWPnyL9iB5wLyaIW9kV-O&vault=true&intent=subscription";a.setAttribute("data-sdk-integration-source","button-factory");a.setAttribute("data-namespace","paypal_subscriptions");a.async=!0;a.onload=function(){"undefined"===typeof paypal_subscriptions?console.error("PayPal SDK not loaded properly."):paypal_subscriptions.Buttons({fundingSource:paypal_subscriptions.FUNDING.PAYPAL,style:{shape:"rect",color:"silver",layout:"vertical",label:"subscribe",height:48},createSubscription:function(b,c){return c.subscription.create({plan_id:"P-9LT69365YG9885149MPMFULA"})},onApprove:function(b,c){var d,e,g;return $jscomp.asyncExecutePromiseGeneratorProgram(function(f){if(1==f.nextAddress)return d=b.subscriptionID,e=document.getElementById("paypal-button-container-P-9LT69365YG9885149MPMFULA"),e.innerHTML="

Thank you for subscribing!”,g=new FormData,g.append(“subID”,d),f.yield(fetch(app_base_url+”/save_paypal_subscription”,{method:”POST”,credentials:”include”,body:g}),2);”undefined”!==typeof subscription_modal&&subscription_modal.close(“cancelled”);f.jumpToEnd()})}}).render(“#paypal-button-container-P-9LT69365YG9885149MPMFULA”)};document.head.appendChild(a)} function load_paypal_out_of_credits(){var a=document.createElement(“script”);a.src=”https://www.paypal.com/sdk/js?currency=USD&client-id=AYo4E41BoY_tpXUXuZ-5rclkCZATIojkd25Aym1lY7PBVTltF5NRLSmMK8bFWPnyL9iB5wLyaIW9kV-O”;a.setAttribute(“data-namespace”,”paypal_out_of_credits”);a.async=!0;a.onload=function(){paypal_out_of_credits.Buttons({fundingSource:paypal_out_of_credits.FUNDING.PAYPAL,style:{shape:”rect”,color:”silver”,height:46},createOrder:function(b,c){return c.order.create({purchase_units:[{amount:{value:document.getElementById(“outOfCreditsAmountSelect”).value}}],application_context:{shipping_preference:”NO_SHIPPING”}})},onApprove:function(b,c){return c.order.capture().then(function(d){var e,g;return $jscomp.asyncExecutePromiseGeneratorProgram(function(f){if(1==f.nextAddress)return console.log(“Capture result”,d,JSON.stringify(d,null,2)),e=document.getElementById(“paypal-button-container-out-of-credits”),e.innerHTML=”

Thank you for your payment!”,g=new FormData,g.append(“capture_id”,d.purchase_units[0].payments.captures[0].id),f.yield(fetch(app_base_url+”/save_paypal_payment”,{method:”POST”,credentials:”include”,body:g}),2);”undefined”!==typeof subscription_modal&&subscription_modal.close(“cancelled”);f.jumpToEnd()})})}}).render(“#paypal-button-container-out-of-credits”);window.addEventListener(“message”,function(b){})};document.head.appendChild(a)} function load_paypal_one_time(){var a=document.createElement(“script”);a.src=”https://www.paypal.com/sdk/js?currency=USD&client-id=AYo4E41BoY_tpXUXuZ-5rclkCZATIojkd25Aym1lY7PBVTltF5NRLSmMK8bFWPnyL9iB5wLyaIW9kV-O”;a.setAttribute(“data-namespace”,”paypal_one_time”);a.async=!0;a.onload=function(){paypal_one_time.Buttons({fundingSource:paypal_one_time.FUNDING.PAYPAL,style:{shape:”rect”,color:”silver”,height:48},createOrder:function(b,c){return c.order.create({purchase_units:[{amount:{value:document.getElementById(“addCreditsAmountSelect”).value}}],application_context:{shipping_preference:”NO_SHIPPING”}})},onApprove:function(b,c){return c.order.capture().then(function(d){var e,g;return $jscomp.asyncExecutePromiseGeneratorProgram(function(f){if(1==f.nextAddress)return console.log(“Capture result”,d,JSON.stringify(d,null,2)),e=document.getElementById(“paypal-button-container”),e.innerHTML=”

Thank you for your payment!”,g=new FormData,g.append(“capture_id”,d.purchase_units[0].payments.captures[0].id),f.yield(fetch(app_base_url+”/save_paypal_payment”,{method:”POST”,credentials:”include”,body:g}),2);”undefined”!==typeof subscription_modal&&subscription_modal.close(“cancelled”);f.jumpToEnd()})})}}).render(“#paypal-button-container”);window.addEventListener(“message”,function(b){})};document.head.appendChild(a)}try{load_paypal_subscriptions()}catch(a){console.log(“error in load_paypal_subscriptions”,a)}try{load_paypal_out_of_credits()}catch(a){console.log(“error in load_paypal_out_of_credits”,a)} try{load_paypal_one_time()}catch(a){console.log(“error in load_paypal_one_time”,a)}try{document.getElementsByClassName(“chatbox”)[0].value=””}catch(a){console.log(“error selecting chatbox: “+a)}var chat_style=”chat”,characterEnabled=!1;try{var geniusChecked=”true”===localStorage.getItem(“geniusChecked”),onlineChecked=”true”===localStorage.getItem(“onlineChecked”);document.getElementById(“genius”).checked=geniusChecked;document.getElementById(“online”).checked=onlineChecked}catch(a){console.error(a)} try{characterEnabled&&(document.getElementById(“genius”).checked=!1,document.getElementById(“online”).checked=!1)}catch(a){console.error(“Error getting checkbox element:”,a)}try{userIsLoggedIn()||(document.getElementById(“genius”).checked=!1,document.getElementById(“online”).checked=!1)}catch(a){console.error(“Error checking login status:”,a)} try{user_object.userprofile2.user_can_use_genius_mode||(document.getElementById(“genius”).checked=!1)}catch(a){console.error(“Error accessing user profile:”,a)}var dropdownSelect=document.getElementById(“chat-dropdown-box-id”),historyEditing=document.getElementById(“chatSessionEditing”),editingElem=document.getElementById(“history-editing”);userIsLoggedIn()&&(dropdownSelect.style=”opacity: 1;”,historyEditing.style=”opacity: 1;”,editingElem.style=”opacity: 1;”);var currentProgressTime=0,currentProgressTimer=null,currentlyRunningModel=!1,model_expected_runtime=5;function cancelProgressBar(){progressBar=document.getElementById(“progressBar”);progressBar.style.width=”0%”;currentProgressTime=0;currentProgressTimer&&(window.clearInterval(currentProgressTimer),currentProgressTimer=null)} function progressBarFunctionWrapper(a){var b,c;return $jscomp.asyncExecutePromiseGeneratorProgram(function(d){switch(d.nextAddress){case 1:return(b=model_expected_runtime)||(b=10),console.log(“start progress bar”),currentlyRunningModel=!0,progressBar=document.getElementById(“progressBar”),cancelProgressBar(),d.setCatchFinallyBlocks(2,3),currentProgressTimer=window.setInterval(function(){currentProgressTime++;progressBar.style.width=100*Math.tanh(currentProgressTime/60/b)+”%”},Math.round(1E3/60)),d.yield(a(),5);case 5:return d.return(d.yieldResult);case 3:d.enterFinallyBlock();console.log(“end progress bar”);currentlyRunningModel=!1;cancelProgressBar();d.leaveFinallyBlock(0);break;case 2:throw c=d.enterCatchBlock(),c;}})}function geniusToggled(){var a=document.getElementById(“genius”);try{localStorage.setItem(“geniusChecked”,a.checked)}catch(b){console.error(b)}a.hasAttribute(“locked”)&&(openSubscription(),a.checked=!1)} function onlineToggled(){var a=document.getElementById(“online”);try{localStorage.setItem(“onlineChecked”,a.checked)}catch(b){console.error(b)}a.hasAttribute(“locked”)&&(openLogin(),a.checked=!1)}function concatUint8Array(a,b){var c=new Uint8Array(a.length+b.length);c.set(a);c.set(b,a.length);return c} function Utf8ArrayToStr(a){for(var b=””,c=a.length,d=0;d>7)b+=String.fromCharCode(e);else if(6===e>>5){var g=a[d++];b+=String.fromCharCode((e&31)>4){g=a[d++];var f=a[d++];b+=String.fromCharCode((e&15)<3){g=a[d++];f=a[d++];var l=a[d++];e=((e&7)<<18|(g&63)<10)+55296,(e&1023)+56320)}}return b} function copyChatPointer(a){a=document.getElementById(a);console.log(a.id);return a.id}function getFullChatHistoryObject(){for(var a=Array.from(document.getElementsByClassName(“chatbox”)),b=Array.from(document.getElementsByClassName(“outputBox”)),c=[],d=0;dg&&(f=document.createElement(“a”),f.className=”url-chip”,f.href=e.url,f.target=”_blank”,f.appendChild(l.cloneNode(!0)),e=30<e.title.length?e.title.substring(0,30)+"…":e.title,e=document.createTextNode(e),f.appendChild(e),b.appendChild(f))});console.log("Drawing completed.");return c.length-3}var copyButtonId="copyButtonId_1",chatboxWrapperId="chatboxWrapperId_1";document.addEventListener("click",function(a){if(a.target.classList.contains("copyCodeButton")){navigator.clipboard.writeText(a.target.nextElementSibling.textContent);var b=document.getElementById("copypopup");b.className="show";setTimeout(function(){b.className=b.className.replace("show","")},3E3)}});var projector;function updateMarkDown(){if("undefined"===typeof marked||"undefined"===typeof hljs||"undefined"===typeof maquette)console.log("Error: 'marked' 'highlight.js' or 'maquette' library not loaded.");else{var a=maquette,b=a.h;a=a.createProjector;projector||(projector=a());a=new marked.Renderer;a.code=function(c,d){return'n

Source

Dillard's - The Style of Your Life.

By allaboutian

open profile for all

Related Posts

GitHub – XiaoLiuLB/chatgpt-site: ChatGPT国内中文版镜像网站整理(2024/11/15)

36 people 👁️ing this randomly Try Adsterra Earnings, it’s 100% Authentic to make money more…

ModuleNotFoundError: No module named ‘distutils’ in Python 3.12

50 people 👁️ing this randomly Try Adsterra Earnings, it’s 100% Authentic to make money more…

MySQl Error Code: 1273. Unknown collation: ‘utf8mb4_0900_ai_ci’

29 people 👁️ing this randomly Try Adsterra Earnings, it’s 100% Authentic to make money more…