Spaces:
Running
Running
Create script1.js
Browse files- script1.js +1 -0
script1.js
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('9 1i=X.Y(\'1i\');9 2A=X.Y(\'4q\');9 1j=X.Y(\'4r\');9 4s=X.Y(\'4t\');9 2B=X.Y(\'4u\');9 2C=X.Y(\'4v\');9 R=X.Y(\'4w\');9 3r=X.Y(\'1c\');b E;b 25=F;b 26=0;b Z=\'\';b 11=G;b M=G;b 1k=G;b 1d=F;b 4x=\'\';b 27=F;b 28="";b 1l=F;9 3s=1e;9 3t="4y://4z.4A.4B/4C/4D/4E";9 3u=S;b u=F;b 13=[];b 1R=[];9 1f=o 2D();9 1g=o 2D();9 3v=10;9 3w=4F;b v=[];9 1S=o 2D();9 3x=4G;9 1T=h=>h.1m().4H().2E(/[^\\w\\s]/g,\'\');9 2F=(15,k,29,3y)=>`${15}-${k}-${2G.2H(29)}-${3y}`;9 3A=(h,k)=>{9 15=1T(h);9 e=2F(15,k,v,1j.H);a(1g.2a(e)||1f.2a(e))1h;1R.1n({h:h.1m(),k,e});2I()};9 2I=1o()=>{2J(1R.l>0&&1g.4I<3v){9{h,k,e}=1R.3B();9 1p=o 3C();1g.2K(e,1p);1U{9 t=p 2L(`/3D?h=${2M(h)}&29=${2G.2H(v)}&3E=${1j.H}`,{2N:\'2O\',3F:{\'3G\':\'z/T-2b\',\'1V-3H\':\'3I/3J\'},1q:1p.1q});a(!t.1r)1W o 17(\'2P t 2Q 2c 1r\');9 2R=p 2S(t.3K,k,1p.1q);a(2R)1f.2K(e,{I:2R,2d:N.O()})}1X(f){a(f.3L!==\'2e\')J.f("17 4J U:",f)}2f{1g.2g(e);2I()}}};9 2S=1o(2h,k,2i)=>{9 1s=2h.3M();9 2j=o 3N("3O-8");b 18="";1U{2J(K){9{2k,H}=p 1s.3P();a(2k)2T;a(2i.2l)1W o 3Q(\'3R 2l\',\'2e\');9 2m=2j.3S(H,{2b:K});18+=2m;9 P=18.3T(\'\\n\');2n(b i=0;i<P.l-1;i++){9 j=P[i];a(j.2U(\'3U: \')){9 m=j.3V(6).1m();a(m){9 x=p 1Y(m,k);1h x}}}18=P[P.l-1]}}1X(f){J.f("17 2o 2S:",f)}2f{1s.3W()}1h F};9 1t=1o()=>{a(13.l>0){9 3X=13.3B();9 U=o 4K(3X.I);Q();9 3Y=o 3Z(1Z=>{U.4L=1Z;U.40=1Z});a(u){u.41();u.42=0}u=U;p U.4M();p 3Y;1t()}L{Q()}};9 1Y=1o(z,k)=>{9 43=1T(z);9 e=`${43}-${k}`;a(1S.2a(e)){9 1u=1S.44(e);a(N.O()-1u.2d<3x){1h 1u.I}L{1S.2g(e)}}1U{9 t=p 2L(`${3t}?k=${k}&z=${2M(z)}`,{2N:\'2O\'});a(!t.1r)1W o 17(\'2P t 2Q 2c 1r\');9 45=p t.4N();9 x=4O.4P(45);1S.2K(e,{I:x,2d:N.O()});1h x}1X(f){J.f("17 4Q 4R U:",f);1h F}};9 2V=1o(h)=>{J.20("4S h c 1v:",h);11=K;Q();26=N.O();1l=F;9 15=1T(h);9 e=2F(15,1j.H,v,1j.H);a(1f.2a(e)){9 1u=1f.44(e);a(N.O()-1u.2d<3w){9 46=1u.I;13.1n({I:46,2p:K});1t()}L{1f.2g(e)}}1d=o 3C();9 I=`/3D?h=${2M(h)}&3E=${1j.H}&29=${2G.2H(v)}`;1U{9 t=p 2L(I,{2N:\'2O\',3F:{\'3G\':\'z/T-2b\',\'1V-3H\':\'3I/3J\'},1q:1d.1q});a(!t.1r){a(t.47===4T){J.20("4U 4V 4W, 4X 2o 1 4Y...");p o 3Z(1Z=>4Z(1Z,50));p 2V(h);1h}1W o 17(`2P t 2Q 2c 1r:${t.47}`)}J.20("51 U t 52");p 2W(t.3K,2A.H,1d.1q)}1X(f){a(f.3L!==\'2e\'){J.f("17 53 h c 1v:",f)}}2f{11=G;Q()}};9 2W=1o(2h,k,2i)=>{9 1s=2h.3M();9 2j=o 3N("3O-8");b 18="";b 2X=0;b V="";b 21="";b 2q="";1U{2J(K){9{2k,H}=p 1s.3P();a(2k)2T;a(2i.2l)1W o 3Q(\'3R 2l\',\'2e\');a(M){2r(\'48 54 55\');2T}9 2m=2j.3S(H,{2b:K});18+=2m;9 P=18.3T(\'\\n\');2n(b i=0;i<P.l-1;i++){9 j=P[i];a(j.2U(\'3U: \')){9 m=j.3V(6).1m();a(m){a(!1l)1l=N.O();V+=m+" ";21+=m+" ";3r.m=V;a(2X<2){9 x=p 1Y(m,k);a(x){13.1n({I:x,2p:G});a(!u)1t()}2q+=m+" ";2X++}L{b 1w=21.2E(2q,\'\').1m();a(1w.l>=3u){9 x=p 1Y(1w,k);a(x){13.1n({I:x,2p:G});a(!u)1t()}21=""}}a(V!==\'\'){2s(\'2Y\',V);V=\'\'}}}}18=P[P.l-1]}}1X(f){J.f("17 2o 2W:",f)}2f{1s.3W();b 1w=21.2E(2q,\'\').1m();a(1w!==""){9 x=p 1Y(1w,k);a(x){13.1n({I:x,2p:G});a(!u)1t()}}a(V!==\'\'){2s(\'2Y\',V);V=\'\'}}};9 Q=(49=F)=>{2C.m=M?"4a: 4b":"4a: 4c";2C.22=M?"1x 1y-1z 1A-4 1B-2 z-1C 1D 1E-1F 1G-1H 1I-S A-B-c-r y-2t-1a c-2t-2u 1J:A-B-c-r y-2t-1e c-2t-1K":"1x 1y-1z 1A-4 1B-2 z-1C 1D 1E-1F 1G-1H 1I-S A-B-c-r y-C-S c-C-1a 2v:y-C-1K 2v:c-C-4d 1J:A-B-c-r y-C-1a c-C-1e";a(11&&!u){R.m="1v: 56...";R.22="1x 1y-1z 1A-4 1B-2 z-1C 1D 1E-1F 1G-1H 1I-S A-B-c-r y-2w-1a c-2w-2u 1J:A-B-c-r y-2w-1e c-2w-1K"}L a(u&&!M){R.m=49||"1v: 4b";R.22="1x 1y-1z 1A-4 1B-2 z-1C 1D 1E-1F 1G-1H 1I-S A-B-c-r y-2x-1a c-2x-2u 1J:A-B-c-r y-2x-1e c-2x-1K"}L a(M){R.m="1v: 2y";R.22="1x 1y-1z 1A-4 1B-2 z-1C 1D 1E-1F 1G-1H 1I-S A-B-c-r y-2z-1a c-2z-2u 1J:A-B-c-r y-2z-1e c-2z-1K"}L{R.m="1v: 4c";R.22="1x 1y-1z 1A-4 1B-2 z-1C 1D 1E-1F 1G-1H 1I-S A-B-c-r y-C-S c-C-1a 2v:y-C-1K 2v:c-C-4d 1J:A-B-c-r y-C-1a c-C-1e"}};a(\'4e\'2o 57){E=o 4e();58.59(E,{5a:K,5b:K,5c:\'5d-5e\',5f:3});E.5g=()=>{J.20("2Z 4f 5h");Z=\'\';M=K;27=N.O();Q();1i.30=\'<W 31="32://33.34.35/36/W" 1L="24" 37="24" 38="0 0 24 24" 39="3a" D="3b" D-1L="2" D-3c="1M" D-3d="1M"><q d="4g 4h-4i"></q><q d="3e 3f 3 0 0 0-3 3g 3 0 0 0 6 3h 3 0 0 0-3-3z"></q><q d="3i 3j 7 0 0 1-14 3k-2"></q><j 1N="12" 1O="19" 1P="12" 1Q="23"></j><j 1N="8" 1O="23" 1P="16" 1Q="23"></j></W> 4j 2y\'};E.5i=(T)=>{b 1b=\'\';2n(b i=T.5j;i<T.3l.l;i++){9 1c=T.3l[i][0].1c;a(T.3l[i].5k){Z+=1c;2r(\'5l\');3m(Z);Z=\'\';M=G;Q();26=N.O()}L{1b+=1c;M=K;27=N.O();Q();a(1b.l>28.l+5){4k(28)}28=1b;3A(1b,2A.H);a(11&&4l(1b)){2r(\'5m\')}}}};E.40=(T)=>{J.f(\'2Z 4f f:\',T.f);a(1k)E.3n()};E.5n=()=>{M=G;Q();a(!11&&Z!==\'\'){3m(Z);Z=\'\'}a(1k)E.3n()};1i.5o(\'5p\',()=>{a(1k){E.5q();1k=G;1i.30=\'<W 5r="5s" 31="32://33.34.35/36/W" 1L="24" 37="24" 38="0 0 24 24" 39="3a" D="3b" D-1L="2" D-3c="1M" D-3d="1M"><q d="3e 3f 3 0 0 0-3 3g 3 0 0 0 6 3h 3 0 0 0-3-3z"></q><q d="3i 3j 7 0 0 1-14 3k-2"></q><j 1N="12" 1O="19" 1P="12" 1Q="23"></j><j 1N="8" 1O="23" 1P="16" 1Q="23"></j></W> 5t 2y\'}L{E.3n();1k=K;1i.30=\'<W 31="32://33.34.35/36/W" 1L="24" 37="24" 38="0 0 24 24" 39="3a" D="3b" D-1L="2" D-3c="1M" D-3d="1M"><q d="4g 4h-4i"></q><q d="3e 3f 3 0 0 0-3 3g 3 0 0 0 6 3h 3 0 0 0-3-3z"></q><q d="3i 3j 7 0 0 1-14 3k-2"></q><j 1N="12" 1O="19" 1P="12" 1Q="23"></j><j 1N="8" 1O="23" 1P="16" 1Q="23"></j></W> 4j 2y\'}})}L{5u(\'5v 5w 5x 2c 5y 5z 5A 2Z 5B.\')}9 2s=(3o,1V)=>{a(v.l>0&&v[v.l-1].3o===\'2Y\'&&v[v.l-1].1V===""){v.5C()}v.1n({3o,1V});a(v.l>6)v.5D(0,2)};9 3m=(1c)=>{9 3p=1c.5E();a(3p!==\'\'&&!11){25=3p;2V(25);2s(\'48\',25)}};9 4l=(1b)=>N.O()-27>3s||1b.l>5;9 2r=(3q=\'5F\')=>{J.20(`5G U(3q:${3q})...`);a(u){u.41();u.42=0;u=F}13.l=0;11=G;a(1d){1d.4m();1d=F}1f.5H();1R.l=0;Q()};9 4k=(h)=>{9 15=1T(h);2n(9[e,1p]5I 1g){a(e.2U(15)){1p.4m();1g.2g(e)}}};9 4n=()=>{a(1l){9 4o=1l-26;2B.m=`4p:${4o}5J`}L{2B.m="4p: 5K"}};5L(4n,5M);',62,359,'|||||||||const|if|let|to||cacheKey|error||query||line|voice|length|textContent||new|await|path|||response|currentAudio|conversationHistory||audioUrl|from|text|bg|gradient|gray|stroke|speechRecognizer|null|false|value|url|console|true|else|isUserSpeaking|Date|now|lines|updateActivityIndicators|aiActivityIndicator|300|event|audio|fullResponseText|svg|document|getElementById|completeTranscript||isRequestInProgress||audioPlaybackQueue||normalizedQuery||Error|buffer||400|interimTranscript|transcript|requestAbortController|500|prefetchCache|pendingPrefetchRequests|return|startStopButton|modelSelectionDropdown|isSpeechRecognitionActive|firstResponseTextTimestamp|trim|push|async|abortController|signal|ok|reader|playNextAudio|cachedData|AI|unsentTextChunk|indicator|rounded|full|px|py|white|flex|items|center|transition|colors|duration|hover|700|width|round|x1|y1|x2|y2|prefetchQueue|audioCache|normalizeQueryText|try|content|throw|catch|generateTextToSpeechAudio|resolve|log|textChunk|className|||activeQuery|queryStartTime|lastUserSpeechTimestamp|prefetchTextQuery|history|has|stream|not|timestamp|AbortError|finally|delete|responseStream|abortSignal|decoder|done|aborted|chunk|for|in|isPrefetched|sentText|interruptAudioPlayback|addToConversationHistory|blue|600|dark|purple|green|Listening|yellow|voiceSelectionDropdown|responseTimeDisplay|userActivityIndicator|Map|replace|generateCacheKey|JSON|stringify|processPrefetchQueue|while|set|fetch|encodeURIComponent|method|GET|Network|was|firstAudioUrl|handleStreamingResponseForPrefetch|break|startsWith|sendQueryToAI|handleStreamingResponse|initialChunksSent|assistant|Speech|innerHTML|xmlns|http|www|w3|org|2000|height|viewBox|fill|none|currentColor|linecap|linejoin|M12|1a3|3v8a3|0V4a3|M19|10v2a7|0v|results|processSpeechTranscript|start|role|trimmedTranscript|reason|transcriptDiv|USER_SPEECH_INTERRUPT_DELAY|TEXT_TO_SPEECH_API_ENDPOINT|CHUNK_SIZE|MAX_PREFETCH_REQUESTS|prefetchCacheExpiration|audioCacheExpiration|modelName||prefetchFirstAudioChunk|shift|AbortController|stream_audio|model|headers|accept|type|application|json|body|name|getReader|TextDecoder|utf|read|DOMException|Request|decode|split|data|substring|releaseLock|audioData|audioPromise|Promise|onerror|pause|currentTime|normalizedText|get|audioBlob|prefetchedAudioUrl|status|user|state|User|Speaking|Idle|800|webkitSpeechRecognition|recognition|M9|9h6v6h|6z|Stop|cancelPrefetchRequests|shouldInterruptAudioPlayback|abort|updateLatency|latency|Latency|voiceSelect|modelSelect|noiseSuppressionCheckbox|noiseSuppression|responseTime|userIndicator|aiIndicator|partialTranscript|https|api|streamelements|com|kappa|v2|speech|60000|3600000|toLowerCase|size|prefetching|Audio|onended|play|blob|URL|createObjectURL|generating|TTS|Sending|429|Rate|limit|hit|retrying|second|setTimeout|1000|Streaming|received|sending|is|speaking|Processing|window|Object|assign|continuous|interimResults|language|en|US|maxAlternatives|onstart|started|onresult|resultIndex|isFinal|final|interim|onend|addEventListener|click|stop|id|microphoneIcon|Start|alert|Your|browser|does|support|the|Web|API|pop|splice|trimStart|unknown|Interrupting|clear|of|ms|0ms|setInterval|200'.split('|'),0,{}))
|