Files
2026-11-02 22:54:14 +08:00

44 lines
19 KiB
JavaScript

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