HEX
Server: Apache/2.4.46 (Win64) OpenSSL/1.1.1j PHP/8.4.25
System: Windows NT DESKTOP-4TAV2RJ 10.0 build 19045 (Windows 10) AMD64
User: fred (0)
PHP: 8.4.25
Disabled: NONE
Upload Files
File: C:/Users/fred/AppData/Local/Google/Chrome/User Data/WasmTtsEngine/20260904.1/background_compiled.js
'use strict';function n(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}}function r(a){var b=typeof Symbol!="undefined"&&Symbol.iterator&&a[Symbol.iterator];if(b)return b.call(a);if(typeof a.length=="number")return{next:n(a)};throw Error(String(a)+" is not an iterable or ArrayLike");}var u=typeof Object.defineProperties=="function"?Object.defineProperty:function(a,b,d){if(a==Array.prototype||a==Object.prototype)return a;a[b]=d.value;return a};
function y(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 d=a[b];if(d&&d.Math==Math)return d}throw Error("Cannot find global object");}var z=y(this);function A(a,b){if(b)a:{var d=z;a=a.split(".");for(var f=0;f<a.length-1;f++){var k=a[f];if(!(k in d))break a;d=d[k]}a=a[a.length-1];f=d[a];b=b(f);b!=f&&b!=null&&u(d,a,{configurable:!0,writable:!0,value:b})}}
function B(a){if(!(a instanceof Object))throw new TypeError("Iterator result "+a+" is not an object");}function C(){this.A=!1;this.m=null;this.j=void 0;this.i=1;this.o=this.v=0;this.H=this.l=null}function D(a){if(a.A)throw new TypeError("Generator is already running");a.A=!0}C.prototype.F=function(a){this.j=a};function E(a,b){a.l={N:b,isException:!0};a.i=a.v||a.o}C.prototype.getNextAddressJsc=function(){return this.i};C.prototype.getYieldResultJsc=function(){return this.j};
C.prototype.return=function(a){this.l={return:a};this.i=this.o};C.prototype["return"]=C.prototype.return;C.prototype.R=function(a){this.l={B:a};this.o<a?(this.i=a,this.l=null):this.i=this.o};C.prototype.jumpThroughFinallyBlocks=C.prototype.R;C.prototype.h=function(a,b){this.i=b;return{value:a}};C.prototype.yield=C.prototype.h;C.prototype.S=function(a,b){a=r(a);var d=a.next();B(d);if(d.done)this.j=d.value,this.i=b;else return this.m=a,this.h(d.value,b)};C.prototype.yieldAll=C.prototype.S;
C.prototype.B=function(a){this.i=a};C.prototype.jumpTo=C.prototype.B;C.prototype.u=function(){this.i=0};C.prototype.jumpToEnd=C.prototype.u;C.prototype.D=function(a,b){this.v=a;b!=void 0&&(this.o=b)};C.prototype.setCatchFinallyBlocks=C.prototype.D;C.prototype.L=function(a){this.v=0;this.o=a||0};C.prototype.setFinallyBlock=C.prototype.L;C.prototype.K=function(a,b){this.i=a;this.v=b||0};C.prototype.leaveTryBlock=C.prototype.K;C.prototype.C=function(a){this.v=a||0;a=this.l.N;this.l=null;return a};
C.prototype.enterCatchBlock=C.prototype.C;C.prototype.G=function(a,b,d){d?this.H[d]=this.l:this.H=[this.l];this.v=a||0;this.o=b||0;this.l=null};C.prototype.enterFinallyBlock=C.prototype.G;C.prototype.I=function(a,b){b=this.H.splice(b||0)[0];(b=this.l=this.l||b)?b.isException?this.i=this.v||this.o:b.B!=void 0&&this.o<b.B?(this.i=b.B,this.l=null):this.i=this.o:this.i=a};C.prototype.leaveFinallyBlock=C.prototype.I;C.prototype.P=function(a){return new F(a)};C.prototype.forIn=C.prototype.P;
function F(a){this.j=a;this.h=[];for(var b in a)this.h.push(b);this.h.reverse()}F.prototype.i=function(){for(;this.h.length>0;){var a=this.h.pop();if(a in this.j)return a}return null};F.prototype.getNext=F.prototype.i;function G(a){this.h=new C;this.i=a}function H(a,b){D(a.h);var d=a.h.m;if(d)return I(a,"return"in d?d["return"]:function(f){return{value:f,done:!0}},b,a.h.return);a.h.return(b);return J(a)}
function I(a,b,d,f){try{var k=b.call(a.h.m,d);B(k);if(!k.done)return a.h.A=!1,k;var l=k.value}catch(g){return a.h.m=null,E(a.h,g),J(a)}a.h.m=null;f.call(a.h,l);return J(a)}function J(a){for(;a.h.i;)try{var b=a.i(a.h);if(b)return a.h.A=!1,{value:b.value,done:!1}}catch(d){a.h.j=void 0,E(a.h,d)}a.h.A=!1;if(a.h.l){b=a.h.l;a.h.l=null;if(b.isException)throw b.N;return{value:b.return,done:!0}}return{value:void 0,done:!0}}
function K(a){this.next=function(b){D(a.h);a.h.m?b=I(a,a.h.m.next,b,a.h.F):(a.h.F(b),b=J(a));return b};this.throw=function(b){D(a.h);if(a.h.m){var d=a.h.m["throw"];if(d)var f=I(a,d,b,a.h.F);else{b=a.h.m;a.h.m=null;try{b["return"]&&(f=b["return"](),B(f)),E(a.h,new TypeError("The iterator does not provide a 'throw' method."))}catch(k){E(a.h,k)}f=J(a)}}else E(a.h,b),f=J(a);return f};this.return=function(b){return H(a,b)};this[Symbol.iterator]=function(){return this}}
function L(a){function b(f){return a.next(f)}function d(f){return a.throw(f)}return new Promise(function(f,k){function l(g){g.done?f(g.value):Promise.resolve(g.value).then(b,d).then(l,k)}l(a.next())})}function M(a){return L(new K(new G(a)))}
A("Symbol",function(a){function b(l){if(this instanceof b)throw new TypeError("Symbol is not a constructor");return new d(f+(l||"")+"_"+k++,l)}function d(l,g){this.h=l;u(this,"description",{configurable:!0,writable:!0,value:g})}if(a)return a;d.prototype.toString=function(){return this.h};var f="jscomp_symbol_"+(Math.random()*1E9>>>0)+"_",k=0;return b});
A("Symbol.iterator",function(a){if(a)return a;a=Symbol("Symbol.iterator");u(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return N(n(this))}});return a});function N(a){a={next:a};a[Symbol.iterator]=function(){return this};return a}
A("Promise",function(a){function b(g){this.i=0;this.j=void 0;this.h=[];this.u=!1;var c=this.l();try{g(c.resolve,c.reject)}catch(e){c.reject(e)}}function d(){this.h=null}function f(g){return g instanceof b?g:new b(function(c){c(g)})}if(a)return a;d.prototype.i=function(g){if(this.h==null){this.h=[];var c=this;this.j(function(){c.m()})}this.h.push(g)};var k=z.setTimeout;d.prototype.j=function(g){k(g,0)};d.prototype.m=function(){for(;this.h&&this.h.length;){var g=this.h;this.h=[];for(var c=0;c<g.length;++c){var e=
g[c];g[c]=null;try{e()}catch(h){this.l(h)}}}this.h=null};d.prototype.l=function(g){this.j(function(){throw g;})};b.prototype.l=function(){function g(h){return function(m){e||(e=!0,h.call(c,m))}}var c=this,e=!1;return{resolve:g(this.F),reject:g(this.m)}};b.prototype.F=function(g){if(g===this)this.m(new TypeError("A Promise cannot resolve to itself"));else if(g instanceof b)this.H(g);else{a:switch(typeof g){case "object":var c=g!=null;break a;case "function":c=!0;break a;default:c=!1}c?this.D(g):this.o(g)}};
b.prototype.D=function(g){var c=void 0;try{c=g.then}catch(e){this.m(e);return}typeof c=="function"?this.I(c,g):this.o(g)};b.prototype.m=function(g){this.v(2,g)};b.prototype.o=function(g){this.v(1,g)};b.prototype.v=function(g,c){if(this.i!=0)throw Error("Cannot settle("+g+", "+c+"): Promise already settled in state"+this.i);this.i=g;this.j=c;this.i===2&&this.G();this.A()};b.prototype.G=function(){var g=this;k(function(){if(g.C()){var c=z.console;typeof c!=="undefined"&&c.error(g.j)}},1)};b.prototype.C=
function(){if(this.u)return!1;var g=z.CustomEvent,c=z.Event,e=z.dispatchEvent;if(typeof e==="undefined")return!0;typeof g==="function"?g=new g("unhandledrejection",{cancelable:!0}):typeof c==="function"?g=new c("unhandledrejection",{cancelable:!0}):(g=z.document.createEvent("CustomEvent"),g.initCustomEvent("unhandledrejection",!1,!0,g));g.promise=this;g.reason=this.j;return e(g)};b.prototype.A=function(){if(this.h!=null){for(var g=0;g<this.h.length;++g)l.i(this.h[g]);this.h=null}};var l=new d;b.prototype.H=
function(g){var c=this.l();g.J(c.resolve,c.reject)};b.prototype.I=function(g,c){var e=this.l();try{g.call(c,e.resolve,e.reject)}catch(h){e.reject(h)}};b.prototype.then=function(g,c){function e(q,t){return typeof q=="function"?function(w){try{h(q(w))}catch(x){m(x)}}:t}var h,m,p=new b(function(q,t){h=q;m=t});this.J(e(g,h),e(c,m));return p};b.prototype.catch=function(g){return this.then(void 0,g)};b.prototype.J=function(g,c){function e(){switch(h.i){case 1:g(h.j);break;case 2:c(h.j);break;default:throw Error("Unexpected state: "+
h.i);}}var h=this;this.h==null?l.i(e):this.h.push(e);this.u=!0};b.resolve=f;b.reject=function(g){return new b(function(c,e){e(g)})};b.race=function(g){return new b(function(c,e){for(var h=r(g),m=h.next();!m.done;m=h.next())f(m.value).J(c,e)})};b.all=function(g){var c=r(g),e=c.next();return e.done?f([]):new b(function(h,m){function p(w){return function(x){q[w]=x;t--;t==0&&h(q)}}var q=[],t=0;do q.push(void 0),t++,f(e.value).J(p(q.length-1),m),e=c.next();while(!e.done)})};return b});
function O(a,b){return Object.prototype.hasOwnProperty.call(a,b)}
A("WeakMap",function(a){function b(e){this.h=(c+=Math.random()+1).toString();if(e){e=r(e);for(var h;!(h=e.next()).done;)h=h.value,this.set(h[0],h[1])}}function d(){}function f(e){var h=typeof e;return h==="object"&&e!==null||h==="function"}function k(e){if(!O(e,g)){var h=new d;u(e,g,{value:h})}}function l(e){var h=Object[e];h&&(Object[e]=function(m){if(m instanceof d)return m;Object.isExtensible(m)&&k(m);return h(m)})}if(function(){if(!a||!Object.seal)return!1;try{var e=Object.seal({}),h=Object.seal({}),
m=new a([[e,2],[h,3]]);if(m.get(e)!=2||m.get(h)!=3)return!1;m.delete(e);m.set(h,4);return!m.has(e)&&m.get(h)==4}catch(p){return!1}}())return a;var g="$jscomp_hidden_"+Math.random();l("freeze");l("preventExtensions");l("seal");var c=0;b.prototype.set=function(e,h){if(!f(e))throw Error("Invalid WeakMap key");k(e);if(!O(e,g))throw Error("WeakMap key fail: "+e);e[g][this.h]=h;return this};b.prototype.get=function(e){return f(e)&&O(e,g)?e[g][this.h]:void 0};b.prototype.has=function(e){return f(e)&&O(e,
g)&&O(e[g],this.h)};b.prototype.delete=function(e){return f(e)&&O(e,g)&&O(e[g],this.h)?delete e[g][this.h]:!1};return b});
A("Map",function(a){function b(){var c={};return c.previous=c.next=c.head=c}function d(c,e){var h=c[1];return N(function(){if(h){for(;h.head!=c[1];)h=h.previous;for(;h.next!=h.head;)return h=h.next,{done:!1,value:e(h)};h=null}return{done:!0,value:void 0}})}function f(c,e){var h=e&&typeof e;h=="object"||h=="function"?l.has(e)?h=l.get(e):(h=""+ ++g,l.set(e,h)):h="p_"+e;var m=c[0][h];if(m&&O(c[0],h))for(c=0;c<m.length;c++){var p=m[c];if(e!==e&&p.key!==p.key||e===p.key)return{id:h,list:m,index:c,entry:p}}return{id:h,
list:m,index:-1,entry:void 0}}function k(c){this[0]={};this[1]=b();this.size=0;if(c){c=r(c);for(var e;!(e=c.next()).done;)e=e.value,this.set(e[0],e[1])}}if(function(){if(!a||typeof a!="function"||!a.prototype.entries||typeof Object.seal!="function")return!1;try{var c=Object.seal({x:4}),e=new a(r([[c,"s"]]));if(e.get(c)!="s"||e.size!=1||e.get({x:4})||e.set({x:4},"t")!=e||e.size!=2)return!1;var h=e.entries(),m=h.next();if(m.done||m.value[0]!=c||m.value[1]!="s")return!1;m=h.next();return m.done||m.value[0].x!=
4||m.value[1]!="t"||!h.next().done?!1:!0}catch(p){return!1}}())return a;var l=new WeakMap;k.prototype.set=function(c,e){c=c===0?0:c;var h=f(this,c);h.list||(h.list=this[0][h.id]=[]);h.entry?h.entry.value=e:(h.entry={next:this[1],previous:this[1].previous,head:this[1],key:c,value:e},h.list.push(h.entry),this[1].previous.next=h.entry,this[1].previous=h.entry,this.size++);return this};k.prototype.delete=function(c){c=f(this,c);return c.entry&&c.list?(c.list.splice(c.index,1),c.list.length||delete this[0][c.id],
c.entry.previous.next=c.entry.next,c.entry.next.previous=c.entry.previous,c.entry.head=null,this.size--,!0):!1};k.prototype.clear=function(){this[0]={};this[1]=this[1].previous=b();this.size=0};k.prototype.has=function(c){return!!f(this,c).entry};k.prototype.get=function(c){return(c=f(this,c).entry)&&c.value};k.prototype.entries=function(){return d(this,function(c){return[c.key,c.value]})};k.prototype.keys=function(){return d(this,function(c){return c.key})};k.prototype.values=function(){return d(this,
function(c){return c.value})};k.prototype.forEach=function(c,e){for(var h=this.entries(),m;!(m=h.next()).done;)m=m.value,c.call(e,m[1],m[0],this)};k.prototype[Symbol.iterator]=k.prototype.entries;var g=0;return k});A("Object.entries",function(a){return a?a:function(b){var d=[],f;for(f in b)O(b,f)&&d.push([f,b[f]]);return d}});function aa(a){this.h=a}var P;function ba(){var a=P;a.h.runtime.getPlatformInfo();setInterval(function(){a.h.runtime.getPlatformInfo()},2E4)};function Q(a,b,d){if(typeof a==="object"&&typeof b==="string"){var f=a;a=b}else if(typeof a==="string"&&typeof b==="function")d=b;else return{lang:"",M:!1};return{lang:a,T:d,O:f,M:!0}}function ca(a){var b=R;M(function(d){return d.return(da(b.i,a))})}function ea(a){var b=R;M(function(d){if(d.i==1)return d.h(S(b),2);if(!d.j)return d.return();b.m&&b.m(a);a.type!=="end"&&a.type!=="error"||T(b);d.u()})}
function U(a){return M(function(b){return b.i==1?b.h(a.h.offscreen.hasDocument(),2):b.return(b.j)})}
function V(a){var b,d;return M(function(f){switch(f.i){case 1:return f.h(U(a),2);case 2:if(f.j)return f.return();f.D(3);return f.h(a.h.offscreen.createDocument({url:"offscreen.html",reasons:[a.h.offscreen.Reason.AUDIO_PLAYBACK,a.h.offscreen.Reason.USER_MEDIA],justification:"Required for Text-to-Speech audio synthesis and playback"}),5);case 5:return b={type:"init"},f.h(a.h.runtime.sendMessage(b),6);case 6:T(a);f.K(4);break;case 3:d=f.C(),console.error("Failed to create offscreen document:",d);case 4:return f.h(fa(a.i),
0)}})}function ha(a){M(function(b){if(b.i==1)return b.h(U(a),2);if(b.i!=3)return b.j?b.h(a.h.offscreen.closeDocument(),3):b.return();b.u()})}function S(a){var b;return M(function(d){if(d.i==1)return d.D(2),d.h(V(a),4);if(d.i!=2)return d.return(!0);b=d.C();console.error("Error ensuring offscreen document is ready:",b);return d.return(!1)})}function W(a){a.l&&(clearTimeout(a.l),a.l=void 0)}function T(a){W(a);a.l=setTimeout(function(){ha(a)},3E5)};function ia(){this.h=chrome;this.i=new Map}function ja(a,b){var d,f,k;return M(function(l){if(l.i==1)return d={type:"getLanguageStatus",lang:b},l.h(a.h.runtime.sendMessage(d),2);f=l.j;k={lang:f.lang,installStatus:f.status};a.h.ttsEngine.updateLanguage(k);l.u()})}
function ka(a){var b=R.i,d,f,k,l,g,c,e,h,m,p,q,t,w,x;M(function(v){d=[];f=r(Object.entries(a));k=f.next();try{for(;!k.done;k=f.next()){g=k.value;c=r(g);e=c.next().value;h=c.next().value;m=e;p=h;q=r(p);t=q.next();try{for(;!t.done;t=q.next())x=t.value,d.push({lang:m,voiceName:x,eventTypes:["start","end","error","word"]})}finally{t&&!t.done&&(w=q.return)&&w.call(q)}}}finally{k&&!k.done&&(l=f.return)&&l.call(f)}b.h.ttsEngine.updateVoices(d);v.u()})}
function da(a,b){var d,f;return M(function(k){if(k.i==1)return a.i.get(b)==="uninstallLanguage"&&a.i.delete(b),k.h(X(a),2);d=k.j;d[b]=Date.now();f={};return k.h(a.h.storage.local.set((f.lastUsedTimestamps=d,f)),0)})}
function fa(a){var b,d,f,k,l,g,c,e,h,m;return M(function(p){switch(p.i){case 1:return p.h(Y(a),2);case 2:return(b=p.j)?p.h(X(a),3):p.return();case 3:d=p.j;f=la(b,d);if(f.length===0)return p.return();k=r(f);l=k.next();p.L(4);case 6:if(l.done){p.B(4);break}c=l.value;e={type:"removeUnusedLanguage",lang:c};return p.h(a.h.runtime.sendMessage(e),9);case 9:c in b&&delete b[c];c in d&&delete d[c];l=k.next();p.B(6);break;case 4:p.G();l&&!l.done&&(g=k.return)&&g.call(k);p.I(5);break;case 5:return h={},p.h(a.h.storage.local.set((h.installedTimestamps=
b,h)),10);case 10:return m={},p.h(a.h.storage.local.set((m.lastUsedTimestamps=d,m)),0)}})}function la(a,b){var d=Date.now();return Object.entries(a).filter(function(f){var k=r(f);f=k.next().value;k=k.next().value;var l=f in b;return d-Number(l?b[f]:k)>(l?7776E6:12096E5)}).map(function(f){return r(f).next().value})}function Z(a){a.j&&clearTimeout(a.j);a.j=setTimeout(function(){ma(a)},200)}
function ma(a){var b,d,f,k,l,g,c,e,h,m,p,q,t,w,x;M(function(v){switch(v.i){case 1:if(a.i.size===0)return v.return();b=new Map(a.i);a.i.clear();d=[];f=[];k=r(b);l=k.next();v.L(2);case 4:if(l.done){v.B(2);break}c=l.value;e=r(c);h=e.next().value;m=e.next().value;p=h;q=m;t={type:q,lang:p};return v.h(a.h.runtime.sendMessage(t),7);case 7:w=v.j;x={lang:w.lang,installStatus:w.status};a.h.ttsEngine.updateLanguage(x);switch(w.status){case a.h.ttsEngine.LanguageInstallStatus.INSTALLED:d.push(p);break;case a.h.ttsEngine.LanguageInstallStatus.NOT_INSTALLED:f.push(p)}l=
k.next();v.B(4);break;case 2:v.G();l&&!l.done&&(g=k.return)&&g.call(k);v.I(3);break;case 3:return v.h(na(a,f),8);case 8:return v.return(oa(a,d))}})}function na(a,b){var d,f,k,l,g,c;return M(function(e){if(e.i==1)return e.h(Y(a),2);d=e.j;f=r(b);k=f.next();try{for(;!k.done;k=f.next())g=k.value,delete d[g]}finally{k&&!k.done&&(l=f.return)&&l.call(f)}c={};return e.h(a.h.storage.local.set((c.installedTimestamps=d,c)),0)})}
function oa(a,b){var d,f,k;return M(function(l){if(l.i==1)return d=Date.now(),l.h(Y(a),2);f=l.j;b.forEach(function(g){f[g]=d});k={};return l.h(a.h.storage.local.set((k.installedTimestamps=f,k)),0)})}function Y(a){var b;return M(function(d){if(d.i==1)return d.h(a.h.storage.local.get("installedTimestamps"),2);b=d.j;return d.return(b.installedTimestamps||{})})}
function X(a){var b;return M(function(d){if(d.i==1)return d.h(a.h.storage.local.get("lastUsedTimestamps"),2);b=d.j;return d.return(b.lastUsedTimestamps||{})})};var R=new function(){var a=new ia,b=this;this.h=chrome;this.i=a;this.C=function(d,f,k){var l,g,c;return M(function(e){switch(e.i){case 1:return W(b),e.h(S(b),2);case 2:if(!e.j)return k({type:"error",errorMessage:"Offscreen document not ready."}),e.return();b.m=k;l={type:"speak",utterance:d,options:f};e.D(3);return e.h(b.h.runtime.sendMessage(l),5);case 5:e.K(0);break;case 3:g=e.C(),c=g instanceof Error?g.message:"Error while trying to speak.",k({type:"error",errorMessage:c}),e.u()}})};this.D=function(){var d;
return M(function(f){if(f.i==1)return f.h(S(b),2);if(f.i!=3){if(!f.j)return T(b),f.return();b.m=void 0;d={type:"stop"};return f.h(b.h.runtime.sendMessage(d),3)}T(b);f.u()})};this.v=function(){var d;return M(function(f){if(f.i==1)return f.h(S(b),2);if(!f.j)return f.return();d={type:"pause"};return f.h(b.h.runtime.sendMessage(d),0)})};this.A=function(){var d;return M(function(f){if(f.i==1)return f.h(S(b),2);if(!f.j)return f.return();d={type:"resume"};return f.h(b.h.runtime.sendMessage(d),0)})};this.o=
function(d,f,k){var l,g,c,e,h,m,p;return M(function(q){if(q.i==1)return q.h(S(b),2);if(!q.j)return q.return();l=Q(d,f,k);g=l.lang;c=l.O;e=l.M;p=(m=(h=c)==null?void 0:h.source)!=null?m:"unknown";if(!e||p!==b.j)return q.return();var t=b.i;t.i.set(g,"installLanguage");Z(t);t.h.ttsEngine.updateLanguage({lang:g,installStatus:t.h.ttsEngine.LanguageInstallStatus.INSTALLING});q.u()})};this.u=function(d,f,k){var l,g,c,e,h,m,p;return M(function(q){if(q.i==1)return q.h(S(b),2);if(!q.j)return q.return();l=Q(d,
f,k);g=l.lang;c=l.O;e=l.M;p=(m=(h=c)==null?void 0:h.source)!=null?m:"unknown";return e&&p===b.j?q.return(ja(b.i,g)):q.return()})};this.F=function(d,f){return M(function(k){if(k.i==1)return k.h(S(b),2);if(!k.j||d.source!==b.j)return k.return();var l=b.i;l.i.set(f,"uninstallLanguage");Z(l);k.u()})};this.j=this.h.ttsEngine.TtsClientSource.CHROMEFEATURE;this.h.runtime.onInstalled.addListener(function(){return M(function(d){return d.h(V(b),0)})});this.h.runtime.onStartup.addListener(function(){return M(function(d){return d.h(S(b),
0)})});this.h.ttsEngine.onSpeak.addListener(this.C);this.h.ttsEngine.onStop.addListener(this.D);this.h.ttsEngine.onPause.addListener(this.v);this.h.ttsEngine.onResume.addListener(this.A);this.h.ttsEngine.onInstallLanguageRequest.addListener(this.o);this.h.ttsEngine.onLanguageStatusRequest.addListener(this.u);this.h.ttsEngine.onUninstallLanguageRequest.addListener(this.F);P||(P=new aa(this.h),ba())};
chrome.runtime.onMessage.addListener(function(a){a.type==="offscreenVoicesResponse"?ka(a.voices):a.type==="offscreenTtsEventResponse"?ea(a.event):a.type==="languageUsed"&&ca(a.language)});