responsivevoice.js 186 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547
  1. if (typeof rvAgentPlayer !== 'undefined') {
  2. throw new Error('ResponsiveVoice Website Agent is already running');
  3. }
  4. var rvAgentPlayer = { version: 1 };
  5. var rvApiKey = '5tX5zUJU';
  6. var rvApiEndpoint =
  7. 'https://texttospeech.responsivevoice.org/v1/text:synthesize';
  8. if (typeof responsiveVoice === 'undefined') {
  9. /*
  10. ResponsiveVoice JS v1.8.3
  11. (c) 2015-2022 LearnBrite
  12. License: https://responsivevoice.org/license
  13. */
  14. var $jscomp = $jscomp || {};
  15. $jscomp.scope = {};
  16. $jscomp.arrayIteratorImpl = function (f) {
  17. var k = 0;
  18. return function () {
  19. return k < f.length ? { done: !1, value: f[k++] } : { done: !0 };
  20. };
  21. };
  22. $jscomp.arrayIterator = function (f) {
  23. return { next: $jscomp.arrayIteratorImpl(f) };
  24. };
  25. $jscomp.ASSUME_ES5 = !1;
  26. $jscomp.ASSUME_NO_NATIVE_MAP = !1;
  27. $jscomp.ASSUME_NO_NATIVE_SET = !1;
  28. $jscomp.SIMPLE_FROUND_POLYFILL = !1;
  29. $jscomp.ISOLATE_POLYFILLS = !1;
  30. $jscomp.FORCE_POLYFILL_PROMISE = !1;
  31. $jscomp.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION = !1;
  32. $jscomp.defineProperty =
  33. $jscomp.ASSUME_ES5 || 'function' == typeof Object.defineProperties
  34. ? Object.defineProperty
  35. : function (f, k, m) {
  36. if (f == Array.prototype || f == Object.prototype) return f;
  37. f[k] = m.value;
  38. return f;
  39. };
  40. $jscomp.getGlobal = function (f) {
  41. f = [
  42. 'object' == typeof globalThis && globalThis,
  43. f,
  44. 'object' == typeof window && window,
  45. 'object' == typeof self && self,
  46. 'object' == typeof global && global
  47. ];
  48. for (var k = 0; k < f.length; ++k) {
  49. var m = f[k];
  50. if (m && m.Math == Math) return m;
  51. }
  52. throw Error('Cannot find global object');
  53. };
  54. $jscomp.global = $jscomp.getGlobal(this);
  55. $jscomp.IS_SYMBOL_NATIVE =
  56. 'function' === typeof Symbol && 'symbol' === typeof Symbol('x');
  57. $jscomp.TRUST_ES6_POLYFILLS =
  58. !$jscomp.ISOLATE_POLYFILLS || $jscomp.IS_SYMBOL_NATIVE;
  59. $jscomp.polyfills = {};
  60. $jscomp.propertyToPolyfillSymbol = {};
  61. $jscomp.POLYFILL_PREFIX = '$jscp$';
  62. var $jscomp$lookupPolyfilledValue = function (f, k) {
  63. var m = $jscomp.propertyToPolyfillSymbol[k];
  64. if (null == m) return f[k];
  65. m = f[m];
  66. return void 0 !== m ? m : f[k];
  67. };
  68. $jscomp.polyfill = function (f, k, m, l) {
  69. k &&
  70. ($jscomp.ISOLATE_POLYFILLS
  71. ? $jscomp.polyfillIsolated(f, k, m, l)
  72. : $jscomp.polyfillUnisolated(f, k, m, l));
  73. };
  74. $jscomp.polyfillUnisolated = function (f, k, m, l) {
  75. m = $jscomp.global;
  76. f = f.split('.');
  77. for (l = 0; l < f.length - 1; l++) {
  78. var a = f[l];
  79. if (!(a in m)) return;
  80. m = m[a];
  81. }
  82. f = f[f.length - 1];
  83. l = m[f];
  84. k = k(l);
  85. k != l &&
  86. null != k &&
  87. $jscomp.defineProperty(m, f, {
  88. configurable: !0,
  89. writable: !0,
  90. value: k
  91. });
  92. };
  93. $jscomp.polyfillIsolated = function (f, k, m, l) {
  94. var a = f.split('.');
  95. f = 1 === a.length;
  96. l = a[0];
  97. l = !f && l in $jscomp.polyfills ? $jscomp.polyfills : $jscomp.global;
  98. for (var q = 0; q < a.length - 1; q++) {
  99. var z = a[q];
  100. if (!(z in l)) return;
  101. l = l[z];
  102. }
  103. a = a[a.length - 1];
  104. m = $jscomp.IS_SYMBOL_NATIVE && 'es6' === m ? l[a] : null;
  105. k = k(m);
  106. null != k &&
  107. (f
  108. ? $jscomp.defineProperty($jscomp.polyfills, a, {
  109. configurable: !0,
  110. writable: !0,
  111. value: k
  112. })
  113. : k !== m &&
  114. (void 0 === $jscomp.propertyToPolyfillSymbol[a] &&
  115. ((m = (1e9 * Math.random()) >>> 0),
  116. ($jscomp.propertyToPolyfillSymbol[a] = $jscomp.IS_SYMBOL_NATIVE
  117. ? $jscomp.global.Symbol(a)
  118. : $jscomp.POLYFILL_PREFIX + m + '$' + a)),
  119. $jscomp.defineProperty(l, $jscomp.propertyToPolyfillSymbol[a], {
  120. configurable: !0,
  121. writable: !0,
  122. value: k
  123. })));
  124. };
  125. $jscomp.initSymbol = function () {};
  126. $jscomp.polyfill(
  127. 'Symbol',
  128. function (f) {
  129. if (f) return f;
  130. var k = function (q, z) {
  131. this.$jscomp$symbol$id_ = q;
  132. $jscomp.defineProperty(this, 'description', {
  133. configurable: !0,
  134. writable: !0,
  135. value: z
  136. });
  137. };
  138. k.prototype.toString = function () {
  139. return this.$jscomp$symbol$id_;
  140. };
  141. var m = 'jscomp_symbol_' + ((1e9 * Math.random()) >>> 0) + '_',
  142. l = 0,
  143. a = function (q) {
  144. if (this instanceof a)
  145. throw new TypeError('Symbol is not a constructor');
  146. return new k(m + (q || '') + '_' + l++, q);
  147. };
  148. return a;
  149. },
  150. 'es6',
  151. 'es3'
  152. );
  153. $jscomp.polyfill(
  154. 'Symbol.iterator',
  155. function (f) {
  156. if (f) return f;
  157. f = Symbol('Symbol.iterator');
  158. for (
  159. var k =
  160. 'Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array'.split(
  161. ' '
  162. ),
  163. m = 0;
  164. m < k.length;
  165. m++
  166. ) {
  167. var l = $jscomp.global[k[m]];
  168. 'function' === typeof l &&
  169. 'function' != typeof l.prototype[f] &&
  170. $jscomp.defineProperty(l.prototype, f, {
  171. configurable: !0,
  172. writable: !0,
  173. value: function () {
  174. return $jscomp.iteratorPrototype($jscomp.arrayIteratorImpl(this));
  175. }
  176. });
  177. }
  178. return f;
  179. },
  180. 'es6',
  181. 'es3'
  182. );
  183. $jscomp.iteratorPrototype = function (f) {
  184. f = { next: f };
  185. f[Symbol.iterator] = function () {
  186. return this;
  187. };
  188. return f;
  189. };
  190. Array.from ||
  191. (Array.from = (function () {
  192. var f = Object.prototype.toString,
  193. k = function (l) {
  194. return 'function' === typeof l || '[object Function]' === f.call(l);
  195. },
  196. m = Math.pow(2, 53) - 1;
  197. return function (l) {
  198. var a = Object(l);
  199. if (null == l)
  200. throw new TypeError(
  201. 'Array.from requires an array-like object - not null or undefined'
  202. );
  203. var q = 1 < arguments.length ? arguments[1] : void 0,
  204. z;
  205. if ('undefined' !== typeof q) {
  206. if (!k(q))
  207. throw new TypeError(
  208. 'Array.from: when provided, the second argument must be a function'
  209. );
  210. 2 < arguments.length && (z = arguments[2]);
  211. }
  212. var w = Number(a.length);
  213. w = isNaN(w)
  214. ? 0
  215. : 0 !== w && isFinite(w)
  216. ? (0 < w ? 1 : -1) * Math.floor(Math.abs(w))
  217. : w;
  218. w = Math.min(Math.max(w, 0), m);
  219. for (
  220. var b = k(this) ? Object(new this(w)) : Array(w), c = 0, d;
  221. c < w;
  222. )
  223. (d = a[c]),
  224. (b[c] = q
  225. ? 'undefined' === typeof z
  226. ? q(d, c)
  227. : q.call(z, d, c)
  228. : d),
  229. (c += 1);
  230. b.length = w;
  231. return b;
  232. };
  233. })());
  234. if (!isNaN)
  235. var isNaN = function (f) {
  236. f = Number(f);
  237. return f !== f;
  238. };
  239. (function (f, k) {
  240. 'object' === typeof exports && 'undefined' !== typeof module
  241. ? k()
  242. : 'function' === typeof define && define.amd
  243. ? define(k)
  244. : k();
  245. })(this, function () {
  246. function f(m) {
  247. f =
  248. 'function' === typeof Symbol && 'symbol' === typeof Symbol.iterator
  249. ? function (l) {
  250. return typeof l;
  251. }
  252. : function (l) {
  253. return l &&
  254. 'function' === typeof Symbol &&
  255. l.constructor === Symbol &&
  256. l !== Symbol.prototype
  257. ? 'symbol'
  258. : typeof l;
  259. };
  260. return f(m);
  261. }
  262. function k(m, l) {
  263. var a = this.event && this.event.type;
  264. a = 'unload' === a || 'beforeunload' === a;
  265. var q =
  266. 'XMLHttpRequest' in this
  267. ? new XMLHttpRequest()
  268. : new ActiveXObject('Microsoft.XMLHTTP');
  269. q.open('POST', m, !a);
  270. q.withCredentials = !0;
  271. q.setRequestHeader('Accept', '*/*');
  272. 'string' === typeof l
  273. ? (q.setRequestHeader('Content-Type', 'text/plain;charset=UTF-8'),
  274. (q.responseType = 'text'))
  275. : l instanceof Blob &&
  276. l.type &&
  277. q.setRequestHeader('Content-Type', l.type);
  278. try {
  279. q.send(l);
  280. } catch (z) {
  281. return !1;
  282. }
  283. return !0;
  284. }
  285. (function () {
  286. 'navigator' in this || (this.navigator = {});
  287. 'function' !== typeof this.navigator.sendBeacon &&
  288. (this.navigator.sendBeacon = k.bind(this));
  289. }).call(
  290. 'object' === ('undefined' === typeof window ? 'undefined' : f(window))
  291. ? window
  292. : {}
  293. );
  294. });
  295. if ('undefined' != typeof responsiveVoice)
  296. console.log('ResponsiveVoice already loaded'), console.log(responsiveVoice);
  297. else
  298. var ResponsiveVoice = function () {
  299. function f(b) {
  300. b = b.replace(/([\n\r])+/gm, '\n');
  301. for (
  302. var c = /([,.:!\u00a1?\u00bf;()\[\]\u2014\u00ab\u00bb])+[\n\r]/gm,
  303. d = !0;
  304. d;
  305. )
  306. null === b.match(c) ? (d = !1) : (b = b.replace(c, '$1 '));
  307. return b;
  308. }
  309. function k(b, c) {
  310. if (!q) return b;
  311. console.log(c);
  312. var d = b;
  313. try {
  314. for (var e = 0; e < q.length; e++) {
  315. var n = q[e],
  316. g = !1,
  317. h = n.collectionvoices;
  318. h
  319. ? (Array.isArray(h) || (h = [h]),
  320. c.collectionvoice &&
  321. c.collectionvoice.name &&
  322. -1 != h.indexOf(c.collectionvoice.name) &&
  323. (g = !0))
  324. : (g = !0);
  325. var r = !1,
  326. p = n.systemvoices;
  327. p
  328. ? (Array.isArray(p) || (p = [p]),
  329. c.systemvoice &&
  330. c.systemvoice.name &&
  331. -1 != p.indexOf(c.systemvoice.name) &&
  332. (r = !0))
  333. : (r = !0);
  334. (null == h || (null != h && g)) &&
  335. (null == p || (null != p && r)) &&
  336. (d = d.replace(n.searchvalue, n.newvalue));
  337. }
  338. return d;
  339. } catch (u) {
  340. return (
  341. console.warn(
  342. 'ResponsiveVoice: There was an error while processing the textReplacements array'
  343. ),
  344. b
  345. );
  346. }
  347. }
  348. function m() {
  349. var b = document.getElementsByTagName('script'),
  350. c;
  351. for (c = 0; c < b.length; ++c)
  352. if (b[c].src && w.test(b[c].src)) {
  353. var d = b[c].src;
  354. var e = document.createElement('a');
  355. var n = {};
  356. e.href = d;
  357. if (e.search) {
  358. var g = e.search.replace(/^\?/, '').split('&');
  359. for (d = 0; d < g.length; d++)
  360. (e = g[d].split('=')), (n[e[0]] = e[1]);
  361. n = n.source ? n.source : !1;
  362. } else n = !1;
  363. if (n && 'wp-plugin' == n) return (w.lastIndex = 0), !0;
  364. }
  365. return !1;
  366. }
  367. function l() {
  368. var b = document.getElementsByTagName('script'),
  369. c;
  370. for (c = 0; c < b.length; ++c)
  371. if (b[c].src && w.test(b[c].src)) return (w.lastIndex = 0), !1;
  372. return !0;
  373. }
  374. var a = this;
  375. a.version = '1.8.3';
  376. console.log('ResponsiveVoice r' + a.version);
  377. a.responsivevoices = [
  378. {
  379. name: 'UK English Female',
  380. flag: 'gb',
  381. gender: 'f',
  382. lang: 'en-GB',
  383. voiceIDs: [
  384. 3, 7, 171, 201, 5, 1, 528, 257, 286, 342, 258, 287, 343, 8
  385. ]
  386. },
  387. {
  388. name: 'UK English Male',
  389. flag: 'gb',
  390. gender: 'm',
  391. lang: 'en-GB',
  392. voiceIDs: [0, 277, 202, 75, 4, 2, 256, 285, 341, 159]
  393. },
  394. {
  395. name: 'US English Female',
  396. flag: 'us',
  397. gender: 'f',
  398. lang: 'en-US',
  399. voiceIDs: [
  400. 432, 433, 434, 40, 41, 42, 383, 205, 204, 43, 481, 173, 235, 283,
  401. 339, 408, 44
  402. ]
  403. },
  404. {
  405. name: 'US English Male',
  406. flag: 'us',
  407. gender: 'm',
  408. lang: 'en-US',
  409. voiceIDs: [
  410. 431, 39, 234, 282, 338, 236, 284, 340, 2, 4, 0, 75, 195, 169
  411. ]
  412. },
  413. {
  414. name: 'Arabic Male',
  415. flag: 'ar',
  416. gender: 'm',
  417. lang: 'ar-SA',
  418. voiceIDs: [96, 95, 97, 196, 388]
  419. },
  420. {
  421. name: 'Arabic Female',
  422. flag: 'ar',
  423. gender: 'f',
  424. lang: 'ar-SA',
  425. voiceIDs: [483, 98]
  426. },
  427. {
  428. name: 'Armenian Male',
  429. flag: 'hy',
  430. gender: 'f',
  431. lang: 'hy-AM',
  432. voiceIDs: [99]
  433. },
  434. {
  435. name: 'Australian Female',
  436. flag: 'au',
  437. gender: 'f',
  438. lang: 'en-AU',
  439. voiceIDs: [495, 415, 276, 201, 87, 5, 88]
  440. },
  441. {
  442. name: 'Australian Male',
  443. flag: 'au',
  444. gender: 'm',
  445. lang: 'en-AU',
  446. voiceIDs: [86, 386]
  447. },
  448. {
  449. name: 'Bangla Bangladesh Female',
  450. flag: 'bd',
  451. gender: 'f',
  452. lang: 'bn-BD',
  453. voiceIDs: [435]
  454. },
  455. {
  456. name: 'Bangla Bangladesh Male',
  457. flag: 'bd',
  458. gender: 'm',
  459. lang: 'bn-BD',
  460. voiceIDs: [485, 410, 436]
  461. },
  462. {
  463. name: 'Bangla India Female',
  464. flag: 'bd',
  465. gender: 'f',
  466. lang: 'bn-IN',
  467. voiceIDs: [447]
  468. },
  469. {
  470. name: 'Bangla India Male',
  471. flag: 'bd',
  472. gender: 'm',
  473. lang: 'bn-IN',
  474. voiceIDs: [492, 411, 448]
  475. },
  476. {
  477. name: 'Brazilian Portuguese Female',
  478. flag: 'br',
  479. gender: 'f',
  480. lang: 'pt-BR',
  481. voiceIDs: [245, 124, 123, 125, 499, 186, 223, 126]
  482. },
  483. {
  484. name: 'Brazilian Portuguese Male',
  485. flag: 'br',
  486. gender: 'm',
  487. lang: 'pt-BR',
  488. voiceIDs: [315, 332, 371, 399],
  489. deprecated: !0
  490. },
  491. {
  492. name: 'Chinese Female',
  493. flag: 'cn',
  494. gender: 'f',
  495. lang: 'zh-CN',
  496. voiceIDs: [
  497. 249, 58, 59, 452, 380, 281, 231, 155, 60, 513, 191, 268, 297, 353,
  498. 269, 298, 354, 409, 61
  499. ]
  500. },
  501. {
  502. name: 'Chinese Male',
  503. flag: 'cn',
  504. gender: 'm',
  505. lang: 'zh-CN',
  506. voiceIDs: [317, 334, 373, 389]
  507. },
  508. {
  509. name: 'Chinese (Hong Kong) Female',
  510. flag: 'hk',
  511. gender: 'f',
  512. lang: 'zh-HK',
  513. voiceIDs: [
  514. 463, 464, 192, 193, 232, 250, 251, 270, 299, 355, 409, 444, 252
  515. ]
  516. },
  517. {
  518. name: 'Chinese (Hong Kong) Male',
  519. flag: 'hk',
  520. gender: 'm',
  521. lang: 'zh-HK',
  522. voiceIDs: [430, 318, 335, 374, 445, 390]
  523. },
  524. {
  525. name: 'Chinese Taiwan Female',
  526. flag: 'tw',
  527. gender: 'f',
  528. lang: 'zh-TW',
  529. voiceIDs: [
  530. 469, 194, 233, 253, 254, 305, 322, 361, 384, 319, 336, 375, 409,
  531. 255
  532. ]
  533. },
  534. {
  535. name: 'Chinese Taiwan Male',
  536. flag: 'tw',
  537. gender: 'm',
  538. lang: 'zh-TW',
  539. voiceIDs: [320, 337, 376, 391]
  540. },
  541. {
  542. name: 'Czech Female',
  543. flag: 'cz',
  544. gender: 'f',
  545. lang: 'cs-CZ',
  546. voiceIDs: [504, 412, 101, 100, 102, 197, 103]
  547. },
  548. {
  549. name: 'Czech Male',
  550. flag: 'cz',
  551. gender: 'm',
  552. lang: 'cs-CZ',
  553. voiceIDs: [161],
  554. deprecated: !0
  555. },
  556. {
  557. name: 'Danish Female',
  558. flag: 'dk',
  559. gender: 'f',
  560. lang: 'da-DK',
  561. voiceIDs: [474, 413, 105, 104, 106, 198, 107]
  562. },
  563. {
  564. name: 'Danish Male',
  565. flag: 'da',
  566. gender: 'm',
  567. lang: 'da-DK',
  568. voiceIDs: [162],
  569. deprecated: !0
  570. },
  571. {
  572. name: 'Deutsch Female',
  573. flag: 'de',
  574. gender: 'f',
  575. lang: 'de-DE',
  576. voiceIDs: [
  577. 27, 28, 29, 30, 78, 170, 275, 199, 31, 502, 261, 290, 346, 262,
  578. 291, 347, 32
  579. ]
  580. },
  581. {
  582. name: 'Deutsch Male',
  583. flag: 'de',
  584. gender: 'm',
  585. lang: 'de-DE',
  586. voiceIDs: [307, 324, 363, 377, 393]
  587. },
  588. {
  589. name: 'Dutch Female',
  590. flag: 'nl',
  591. gender: 'f',
  592. lang: 'nl-NL',
  593. voiceIDs: [243, 219, 84, 157, 158, 496, 184, 45]
  594. },
  595. {
  596. name: 'Dutch Male',
  597. flag: 'nl',
  598. gender: 'm',
  599. lang: 'nl-NL',
  600. voiceIDs: [157, 220, 407]
  601. },
  602. {
  603. name: 'Estonian Male',
  604. flag: 'ee',
  605. gender: 'm',
  606. lang: 'et-EE',
  607. voiceIDs: [476, 416, 446]
  608. },
  609. {
  610. name: 'Filipino Female',
  611. flag: 'ph',
  612. gender: 'f',
  613. lang: 'fil-PH',
  614. voiceIDs: [507, 418, 437]
  615. },
  616. {
  617. name: 'Finnish Female',
  618. flag: 'fi',
  619. gender: 'f',
  620. lang: 'fi-FI',
  621. voiceIDs: [490, 417, 90, 89, 91, 209, 92]
  622. },
  623. {
  624. name: 'Finnish Male',
  625. flag: 'fi',
  626. gender: 'm',
  627. lang: 'fi-FI',
  628. voiceIDs: [160],
  629. deprecated: !0
  630. },
  631. {
  632. name: 'French Female',
  633. flag: 'fr',
  634. gender: 'f',
  635. lang: 'fr-FR',
  636. voiceIDs: [
  637. 240, 21, 22, 23, 77, 178, 279, 210, 493, 266, 295, 351, 304, 321,
  638. 360, 26
  639. ]
  640. },
  641. {
  642. name: 'French Male',
  643. flag: 'fr',
  644. gender: 'm',
  645. lang: 'fr-FR',
  646. voiceIDs: [311, 328, 367, 378, 392]
  647. },
  648. {
  649. name: 'French Canadian Female',
  650. flag: 'ca',
  651. gender: 'f',
  652. lang: 'fr-CA',
  653. voiceIDs: [497, 419, 210, 449]
  654. },
  655. {
  656. name: 'French Canadian Male',
  657. flag: 'ca',
  658. gender: 'm',
  659. lang: 'fr-CA',
  660. voiceIDs: [450]
  661. },
  662. {
  663. name: 'Greek Female',
  664. flag: 'gr',
  665. gender: 'f',
  666. lang: 'el-GR',
  667. voiceIDs: [488, 414, 62, 63, 80, 200, 64]
  668. },
  669. {
  670. name: 'Greek Male',
  671. flag: 'gr',
  672. gender: 'm',
  673. lang: 'el-GR',
  674. voiceIDs: [163],
  675. deprecated: !0
  676. },
  677. {
  678. name: 'Hindi Female',
  679. flag: 'hi',
  680. gender: 'f',
  681. lang: 'hi-IN',
  682. voiceIDs: [247, 66, 154, 179, 213, 489, 259, 288, 344, 67]
  683. },
  684. {
  685. name: 'Hindi Male',
  686. flag: 'hi',
  687. gender: 'm',
  688. lang: 'hi-IN',
  689. voiceIDs: [394]
  690. },
  691. {
  692. name: 'Hungarian Female',
  693. flag: 'hu',
  694. gender: 'f',
  695. lang: 'hu-HU',
  696. voiceIDs: [470, 420, 9, 10, 81, 214, 11]
  697. },
  698. {
  699. name: 'Hungarian Male',
  700. flag: 'hu',
  701. gender: 'm',
  702. lang: 'hu-HU',
  703. voiceIDs: [164],
  704. deprecated: !0
  705. },
  706. {
  707. name: 'Indonesian Female',
  708. flag: 'id',
  709. gender: 'f',
  710. lang: 'id-ID',
  711. voiceIDs: [241, 111, 112, 524, 180, 215, 113]
  712. },
  713. {
  714. name: 'Indonesian Male',
  715. flag: 'id',
  716. gender: 'm',
  717. lang: 'id-ID',
  718. voiceIDs: [395]
  719. },
  720. {
  721. name: 'Italian Female',
  722. flag: 'it',
  723. gender: 'f',
  724. lang: 'it-IT',
  725. voiceIDs: [
  726. 242, 33, 34, 35, 36, 37, 79, 181, 216, 508, 271, 300, 356, 38
  727. ]
  728. },
  729. {
  730. name: 'Italian Male',
  731. flag: 'it',
  732. gender: 'm',
  733. lang: 'it-IT',
  734. voiceIDs: [312, 329, 368, 406]
  735. },
  736. {
  737. name: 'Japanese Female',
  738. flag: 'jp',
  739. gender: 'f',
  740. lang: 'ja-JP',
  741. voiceIDs: [
  742. 51, 280, 217, 52, 153, 517, 182, 273, 302, 358, 274, 303, 359, 53
  743. ]
  744. },
  745. {
  746. name: 'Japanese Male',
  747. flag: 'jp',
  748. gender: 'm',
  749. lang: 'ja-JP',
  750. voiceIDs: [248, 50, 313, 330, 369, 396]
  751. },
  752. {
  753. name: 'Korean Female',
  754. flag: 'kr',
  755. gender: 'f',
  756. lang: 'ko-KR',
  757. voiceIDs: [54, 55, 56, 156, 183, 218, 466, 306, 323, 362, 384, 57]
  758. },
  759. {
  760. name: 'Korean Male',
  761. flag: 'kr',
  762. gender: 'm',
  763. lang: 'ko-KR',
  764. voiceIDs: [397]
  765. },
  766. {
  767. name: 'Latin Female',
  768. flag: 'va',
  769. gender: 'f',
  770. lang: 'la',
  771. voiceIDs: [114],
  772. deprecated: !0
  773. },
  774. {
  775. name: 'Latin Male',
  776. flag: 'va',
  777. gender: 'm',
  778. lang: 'la',
  779. voiceIDs: [165]
  780. },
  781. {
  782. name: 'Nepali',
  783. flag: 'np',
  784. gender: 'f',
  785. lang: 'ne-NP',
  786. voiceIDs: [509, 423, 441]
  787. },
  788. {
  789. name: 'Norwegian Female',
  790. flag: 'no',
  791. gender: 'f',
  792. lang: 'nb-NO',
  793. voiceIDs: [473, 422, 72, 73, 221, 74]
  794. },
  795. {
  796. name: 'Norwegian Male',
  797. flag: 'no',
  798. gender: 'm',
  799. lang: 'nb-NO',
  800. voiceIDs: [166]
  801. },
  802. {
  803. name: 'Polish Female',
  804. flag: 'pl',
  805. gender: 'f',
  806. lang: 'pl-PL',
  807. voiceIDs: [244, 120, 119, 121, 185, 222, 505, 267, 296, 352, 122]
  808. },
  809. {
  810. name: 'Polish Male',
  811. flag: 'pl',
  812. gender: 'm',
  813. lang: 'pl-PL',
  814. voiceIDs: [314, 331, 370, 398]
  815. },
  816. {
  817. name: 'Portuguese Female',
  818. flag: 'br',
  819. gender: 'f',
  820. lang: 'pt-BR',
  821. voiceIDs: [128, 127, 129, 187, 224, 479, 272, 301, 357, 130]
  822. },
  823. {
  824. name: 'Portuguese Male',
  825. flag: 'br',
  826. gender: 'm',
  827. lang: 'pt-BR',
  828. voiceIDs: [400]
  829. },
  830. {
  831. name: 'Romanian Female',
  832. flag: 'ro',
  833. gender: 'f',
  834. lang: 'ro-RO',
  835. voiceIDs: [526, 424, 151, 150, 152, 225, 46]
  836. },
  837. {
  838. name: 'Russian Female',
  839. flag: 'ru',
  840. gender: 'f',
  841. lang: 'ru-RU',
  842. voiceIDs: [246, 47, 48, 83, 468, 188, 226, 260, 289, 345, 49]
  843. },
  844. {
  845. name: 'Russian Male',
  846. flag: 'ru',
  847. gender: 'm',
  848. lang: 'ru-RU',
  849. voiceIDs: [316, 333, 372, 387],
  850. deprecated: !0
  851. },
  852. {
  853. name: 'Sinhala',
  854. flag: 'lk',
  855. gender: 'f',
  856. lang: 'si-LK',
  857. voiceIDs: [501, 425, 442]
  858. },
  859. {
  860. name: 'Slovak Female',
  861. flag: 'sk',
  862. gender: 'f',
  863. lang: 'sk-SK',
  864. voiceIDs: [506, 426, 133, 132, 134, 227, 135]
  865. },
  866. {
  867. name: 'Slovak Male',
  868. flag: 'sk',
  869. gender: 'm',
  870. lang: 'sk-SK',
  871. voiceIDs: [167],
  872. deprecated: !0
  873. },
  874. {
  875. name: 'Spanish Female',
  876. flag: 'es',
  877. gender: 'f',
  878. lang: 'es-ES',
  879. voiceIDs: [
  880. 19, 238, 16, 17, 18, 20, 76, 174, 207, 514, 521, 263, 292, 348,
  881. 264, 293, 349, 15
  882. ]
  883. },
  884. {
  885. name: 'Spanish Male',
  886. flag: 'es',
  887. gender: 'm',
  888. lang: 'es-ES',
  889. voiceIDs: [309, 326, 365, 401],
  890. deprecated: !0
  891. },
  892. {
  893. name: 'Spanish Latin American Female',
  894. flag: 'es',
  895. gender: 'f',
  896. lang: 'es-MX',
  897. voiceIDs: [239, 137, 136, 138, 175, 208, 265, 294, 350, 139]
  898. },
  899. {
  900. name: 'Spanish Latin American Male',
  901. flag: 'es',
  902. gender: 'm',
  903. lang: 'es-MX',
  904. voiceIDs: [136, 310, 327, 366, 402]
  905. },
  906. {
  907. name: 'Swedish Female',
  908. flag: 'sv',
  909. gender: 'f',
  910. lang: 'sv-SE',
  911. voiceIDs: [482, 427, 85, 149, 228, 65]
  912. },
  913. {
  914. name: 'Swedish Male',
  915. flag: 'sv',
  916. gender: 'm',
  917. lang: 'sv-SE',
  918. voiceIDs: [148, 168]
  919. },
  920. {
  921. name: 'Tamil Female',
  922. flag: 'hi',
  923. gender: 'm',
  924. lang: 'hi-IN',
  925. voiceIDs: [458, 516, 451]
  926. },
  927. {
  928. name: 'Tamil Male',
  929. flag: 'hi',
  930. gender: 'm',
  931. lang: 'hi-IN',
  932. voiceIDs: [141]
  933. },
  934. {
  935. name: 'Thai Female',
  936. flag: 'th',
  937. gender: 'f',
  938. lang: 'th-TH',
  939. voiceIDs: [143, 142, 144, 471, 189, 229, 145]
  940. },
  941. {
  942. name: 'Thai Male',
  943. flag: 'th',
  944. gender: 'm',
  945. lang: 'th-TH',
  946. voiceIDs: [403]
  947. },
  948. {
  949. name: 'Turkish Female',
  950. flag: 'tr',
  951. gender: 'f',
  952. lang: 'tr-TR',
  953. voiceIDs: [69, 70, 82, 475, 190, 230, 71]
  954. },
  955. {
  956. name: 'Turkish Male',
  957. flag: 'tr',
  958. gender: 'm',
  959. lang: 'tr-TR',
  960. voiceIDs: [465, 404]
  961. },
  962. {
  963. name: 'Ukrainian Female',
  964. flag: 'ua',
  965. gender: 'f',
  966. lang: 'uk-UA',
  967. voiceIDs: [494, 428, 443]
  968. },
  969. {
  970. name: 'Vietnamese Female',
  971. flag: 'vi',
  972. gender: 'f',
  973. lang: 'vi-VN',
  974. voiceIDs: [480, 429, 405]
  975. },
  976. {
  977. name: 'Vietnamese Male',
  978. flag: 'vi',
  979. gender: 'm',
  980. lang: 'vi-VN',
  981. voiceIDs: [146]
  982. },
  983. {
  984. name: 'Afrikaans Male',
  985. flag: 'af',
  986. gender: 'm',
  987. lang: 'af-ZA',
  988. voiceIDs: [93]
  989. },
  990. {
  991. name: 'Albanian Male',
  992. flag: 'sq',
  993. gender: 'm',
  994. lang: 'sq-AL',
  995. voiceIDs: [94]
  996. },
  997. {
  998. name: 'Bosnian Male',
  999. flag: 'bs',
  1000. gender: 'm',
  1001. lang: 'bs',
  1002. voiceIDs: [14]
  1003. },
  1004. {
  1005. name: 'Catalan Male',
  1006. flag: 'catalonia',
  1007. gender: 'm',
  1008. lang: 'ca-ES',
  1009. voiceIDs: [68]
  1010. },
  1011. {
  1012. name: 'Croatian Male',
  1013. flag: 'hr',
  1014. gender: 'm',
  1015. lang: 'hr-HR',
  1016. voiceIDs: [13]
  1017. },
  1018. {
  1019. name: 'Esperanto Male',
  1020. flag: 'eo',
  1021. gender: 'm',
  1022. lang: 'eo',
  1023. voiceIDs: [108]
  1024. },
  1025. {
  1026. name: 'Icelandic Male',
  1027. flag: 'is',
  1028. gender: 'm',
  1029. lang: 'is-IS',
  1030. voiceIDs: [110],
  1031. deprecated: !0
  1032. },
  1033. {
  1034. name: 'Icelandic Female',
  1035. flag: 'is',
  1036. gender: 'm',
  1037. lang: 'is-IS',
  1038. voiceIDs: [110]
  1039. },
  1040. {
  1041. name: 'Latvian Male',
  1042. flag: 'lv',
  1043. gender: 'm',
  1044. lang: 'lv-LV',
  1045. voiceIDs: [115]
  1046. },
  1047. {
  1048. name: 'Macedonian Male',
  1049. flag: 'mk',
  1050. gender: 'm',
  1051. lang: 'mk-MK',
  1052. voiceIDs: [116]
  1053. },
  1054. {
  1055. name: 'Moldavian Female',
  1056. flag: 'md',
  1057. gender: 'f',
  1058. lang: 'md',
  1059. voiceIDs: [117]
  1060. },
  1061. {
  1062. name: 'Moldavian Male',
  1063. flag: 'md',
  1064. gender: 'm',
  1065. lang: 'md',
  1066. voiceIDs: [117],
  1067. deprecated: !0
  1068. },
  1069. {
  1070. name: 'Montenegrin Male',
  1071. flag: 'me',
  1072. gender: 'm',
  1073. lang: 'me',
  1074. voiceIDs: [118]
  1075. },
  1076. {
  1077. name: 'Serbian Male',
  1078. flag: 'sr',
  1079. gender: 'm',
  1080. lang: 'sr-RS',
  1081. voiceIDs: [12]
  1082. },
  1083. {
  1084. name: 'Serbo-Croatian Male',
  1085. flag: 'hr',
  1086. gender: 'm',
  1087. lang: 'hr-HR',
  1088. voiceIDs: [131]
  1089. },
  1090. {
  1091. name: 'Swahili Male',
  1092. flag: 'sw',
  1093. gender: 'm',
  1094. lang: 'sw-KE',
  1095. voiceIDs: [140]
  1096. },
  1097. {
  1098. name: 'Welsh Male',
  1099. flag: 'cy',
  1100. gender: 'm',
  1101. lang: 'cy',
  1102. voiceIDs: [147]
  1103. },
  1104. {
  1105. name: 'Fallback UK Female',
  1106. flag: 'gb',
  1107. gender: 'f',
  1108. lang: 'en-GB',
  1109. voiceIDs: [8]
  1110. }
  1111. ];
  1112. a.voicecollection = [
  1113. { name: 'Google UK English Male' },
  1114. { name: 'Agnes' },
  1115. { name: 'Daniel Compact' },
  1116. { name: 'Google UK English Female' },
  1117. { name: 'en-GB', rate: 0.25, pitch: 1 },
  1118. { name: 'en-AU', rate: 0.25, pitch: 1 },
  1119. { name: 'ingl\u00e9s Reino Unido' },
  1120. { name: 'English United Kingdom' },
  1121. {
  1122. name: 'Fallback en-GB Female',
  1123. lang: 'en-GB',
  1124. fallbackvoice: !0,
  1125. service: 'g1',
  1126. gender: 'female'
  1127. },
  1128. { name: 'Eszter Compact' },
  1129. { name: 'hu-HU', rate: 0.4 },
  1130. {
  1131. name: 'Fallback Hungarian Female',
  1132. lang: 'hu',
  1133. fallbackvoice: !0,
  1134. service: 'g1'
  1135. },
  1136. {
  1137. name: 'Fallback Serbian Male',
  1138. lang: 'sr',
  1139. fallbackvoice: !0,
  1140. service: 'g1',
  1141. gender: 'male'
  1142. },
  1143. {
  1144. name: 'Fallback Croatian Male',
  1145. lang: 'hr',
  1146. rate: 0.5,
  1147. fallbackvoice: !0,
  1148. service: 'g2',
  1149. gender: 'male'
  1150. },
  1151. {
  1152. name: 'Fallback Bosnian Male',
  1153. lang: 'bs',
  1154. fallbackvoice: !0,
  1155. service: 'g2',
  1156. gender: 'male'
  1157. },
  1158. {
  1159. name: 'Fallback Spanish Female',
  1160. lang: 'es',
  1161. fallbackvoice: !0,
  1162. service: 'g1',
  1163. gender: 'female'
  1164. },
  1165. { name: 'Spanish Spain' },
  1166. { name: 'espa\u00f1ol Espa\u00f1a' },
  1167. { name: 'Diego Compact', rate: 0.3 },
  1168. { name: 'Google Espa\u00f1ol' },
  1169. { name: 'es-ES', rate: 0.2 },
  1170. { name: 'Google Fran\u00e7ais' },
  1171. { name: 'French France' },
  1172. { name: 'franc\u00e9s Francia' },
  1173. { name: 'Virginie Compact', rate: 0.5 },
  1174. { name: 'fr-FR', rate: 0.25 },
  1175. {
  1176. name: 'Fallback French Female',
  1177. lang: 'fr',
  1178. fallbackvoice: !0,
  1179. service: 'g1',
  1180. gender: 'female'
  1181. },
  1182. { name: 'Google Deutsch' },
  1183. { name: 'German Germany' },
  1184. { name: 'alem\u00e1n Alemania' },
  1185. { name: 'Yannick Compact', rate: 0.5 },
  1186. { name: 'de-DE', rate: 0.25 },
  1187. {
  1188. name: 'Fallback Deutsch Female',
  1189. lang: 'de',
  1190. fallbackvoice: !0,
  1191. service: 'g1',
  1192. gender: 'female'
  1193. },
  1194. { name: 'Google Italiano' },
  1195. { name: 'Italian Italy' },
  1196. { name: 'italiano Italia' },
  1197. { name: 'Paolo Compact', rate: 0.5 },
  1198. { name: 'it-IT', rate: 0.25 },
  1199. {
  1200. name: 'Fallback Italian Female',
  1201. lang: 'it',
  1202. fallbackvoice: !0,
  1203. service: 'g1',
  1204. gender: 'female'
  1205. },
  1206. { name: 'Google US English', timerSpeed: 1 },
  1207. { name: 'English United States' },
  1208. { name: 'ingl\u00e9s Estados Unidos' },
  1209. { name: 'Vicki' },
  1210. { name: 'en-US', rate: 0.2, pitch: 1, timerSpeed: 1.3 },
  1211. {
  1212. name: 'Fallback US English',
  1213. lang: 'en-US',
  1214. fallbackvoice: !0,
  1215. timerSpeed: 0,
  1216. service: 'g1',
  1217. gender: 'female'
  1218. },
  1219. {
  1220. name: 'Fallback Dutch Female',
  1221. lang: 'nl',
  1222. fallbackvoice: !0,
  1223. timerSpeed: 0,
  1224. service: 'g1',
  1225. gender: 'female'
  1226. },
  1227. {
  1228. name: 'Fallback Romanian',
  1229. lang: 'ro',
  1230. fallbackvoice: !0,
  1231. service: 'g1',
  1232. gender: 'female'
  1233. },
  1234. { name: 'Milena Compact' },
  1235. { name: 'ru-RU', rate: 0.25 },
  1236. {
  1237. name: 'Fallback Russian',
  1238. lang: 'ru',
  1239. fallbackvoice: !0,
  1240. service: 'g1',
  1241. gender: 'female'
  1242. },
  1243. { name: 'Google \u65e5\u672c\u4eba', timerSpeed: 1 },
  1244. { name: 'Kyoko Compact' },
  1245. { name: 'ja-JP', rate: 0.25 },
  1246. {
  1247. name: 'Fallback Japanese Female',
  1248. lang: 'ja',
  1249. fallbackvoice: !0,
  1250. service: 'g1',
  1251. gender: 'female'
  1252. },
  1253. { name: 'Google \ud55c\uad6d\uc758', timerSpeed: 1 },
  1254. { name: 'Narae Compact' },
  1255. { name: 'ko-KR', rate: 0.25 },
  1256. {
  1257. name: 'Fallback Korean Female',
  1258. lang: 'ko',
  1259. fallbackvoice: !0,
  1260. service: 'g1',
  1261. gender: 'female'
  1262. },
  1263. { name: 'Google \u4e2d\u56fd\u7684', timerSpeed: 1 },
  1264. { name: 'Ting-Ting Compact' },
  1265. { name: 'zh-CN', rate: 0.25 },
  1266. {
  1267. name: 'Fallback Chinese',
  1268. lang: 'zh-CN',
  1269. fallbackvoice: !0,
  1270. service: 'g1',
  1271. gender: 'female'
  1272. },
  1273. { name: 'Alexandros Compact' },
  1274. { name: 'el-GR', rate: 0.25 },
  1275. {
  1276. name: 'Fallback Greek',
  1277. lang: 'el',
  1278. fallbackvoice: !0,
  1279. service: 'g3',
  1280. gender: 'female'
  1281. },
  1282. {
  1283. name: 'Fallback Swedish',
  1284. lang: 'sv',
  1285. fallbackvoice: !0,
  1286. service: 'g3',
  1287. gender: 'female'
  1288. },
  1289. { name: 'hi-IN', rate: 0.25 },
  1290. {
  1291. name: 'Fallback Hindi Female',
  1292. lang: 'hi',
  1293. fallbackvoice: !0,
  1294. service: 'g1',
  1295. gender: 'female'
  1296. },
  1297. {
  1298. name: 'Fallback Catalan',
  1299. lang: 'ca',
  1300. fallbackvoice: !0,
  1301. service: 'g1',
  1302. gender: 'male'
  1303. },
  1304. { name: 'Aylin Compact' },
  1305. { name: 'tr-TR', rate: 0.25 },
  1306. {
  1307. name: 'Fallback Turkish',
  1308. lang: 'tr',
  1309. fallbackvoice: !0,
  1310. service: 'g1',
  1311. gender: 'female'
  1312. },
  1313. { name: 'Stine Compact' },
  1314. { name: 'no-NO', rate: 0.25 },
  1315. {
  1316. name: 'Fallback Norwegian',
  1317. lang: 'no',
  1318. fallbackvoice: !0,
  1319. service: 'g1',
  1320. gender: 'female'
  1321. },
  1322. { name: 'Daniel' },
  1323. { name: 'Monica' },
  1324. { name: 'Amelie' },
  1325. { name: 'Anna' },
  1326. { name: 'Alice' },
  1327. { name: 'Melina' },
  1328. { name: 'Mariska' },
  1329. { name: 'Yelda' },
  1330. { name: 'Milena' },
  1331. { name: 'Xander' },
  1332. { name: 'Alva' },
  1333. { name: 'Lee Compact' },
  1334. { name: 'Karen' },
  1335. {
  1336. name: 'Fallback Australian Female',
  1337. lang: 'en-AU',
  1338. fallbackvoice: !0,
  1339. service: 'g1',
  1340. gender: 'female'
  1341. },
  1342. { name: 'Mikko Compact' },
  1343. { name: 'Satu' },
  1344. { name: 'fi-FI', rate: 0.25 },
  1345. {
  1346. name: 'Fallback Finnish',
  1347. lang: 'fi',
  1348. fallbackvoice: !0,
  1349. service: 'g1',
  1350. gender: 'female'
  1351. },
  1352. {
  1353. name: 'Fallback Afrikans',
  1354. lang: 'af',
  1355. fallbackvoice: !0,
  1356. service: 'g1',
  1357. gender: 'male'
  1358. },
  1359. {
  1360. name: 'Fallback Albanian',
  1361. lang: 'sq',
  1362. fallbackvoice: !0,
  1363. service: 'g2',
  1364. gender: 'male'
  1365. },
  1366. { name: 'Maged Compact' },
  1367. { name: 'Tarik' },
  1368. { name: 'ar-SA', rate: 0.25 },
  1369. {
  1370. name: 'Fallback Arabic',
  1371. lang: 'ar',
  1372. fallbackvoice: !0,
  1373. service: 'g1',
  1374. gender: 'female'
  1375. },
  1376. {
  1377. name: 'Fallback Armenian',
  1378. lang: 'hy',
  1379. fallbackvoice: !0,
  1380. service: 'g5',
  1381. gender: 'male'
  1382. },
  1383. { name: 'Zuzana Compact' },
  1384. { name: 'Zuzana' },
  1385. { name: 'cs-CZ', rate: 0.25 },
  1386. {
  1387. name: 'Fallback Czech',
  1388. lang: 'cs',
  1389. fallbackvoice: !0,
  1390. service: 'g1',
  1391. gender: 'female'
  1392. },
  1393. { name: 'Ida Compact' },
  1394. { name: 'Sara' },
  1395. { name: 'da-DK', rate: 0.25 },
  1396. {
  1397. name: 'Fallback Danish',
  1398. lang: 'da',
  1399. fallbackvoice: !0,
  1400. service: 'g1',
  1401. gender: 'female'
  1402. },
  1403. {
  1404. name: 'Fallback Esperanto',
  1405. lang: 'eo',
  1406. fallbackvoice: !0,
  1407. service: 'g5',
  1408. gender: 'male'
  1409. },
  1410. { name: 'Fallback Haitian Creole', lang: 'ht', fallbackvoice: !0 },
  1411. {
  1412. name: 'Fallback Icelandic',
  1413. lang: 'is',
  1414. fallbackvoice: !0,
  1415. service: 'g1',
  1416. gender: 'male'
  1417. },
  1418. { name: 'Damayanti' },
  1419. { name: 'id-ID', rate: 0.25 },
  1420. {
  1421. name: 'Fallback Indonesian Female',
  1422. lang: 'id',
  1423. fallbackvoice: !0,
  1424. service: 'g1',
  1425. gender: 'female'
  1426. },
  1427. {
  1428. name: 'Fallback Latin Female',
  1429. lang: 'la',
  1430. fallbackvoice: !0,
  1431. service: 'g2',
  1432. gender: 'female'
  1433. },
  1434. {
  1435. name: 'Fallback Latvian Male',
  1436. lang: 'lv',
  1437. fallbackvoice: !0,
  1438. service: 'g1',
  1439. gender: 'male'
  1440. },
  1441. {
  1442. name: 'Fallback Macedonian Male',
  1443. lang: 'mk',
  1444. fallbackvoice: !0,
  1445. service: 'g5',
  1446. gender: 'male'
  1447. },
  1448. {
  1449. name: 'Fallback Moldavian Female',
  1450. lang: 'mo',
  1451. fallbackvoice: !0,
  1452. service: 'g2',
  1453. gender: 'female'
  1454. },
  1455. {
  1456. name: 'Fallback Montenegrin Male',
  1457. lang: 'sr-ME',
  1458. fallbackvoice: !0,
  1459. service: 'g1',
  1460. gender: 'male'
  1461. },
  1462. { name: 'Agata Compact' },
  1463. { name: 'Zosia' },
  1464. { name: 'pl-PL', rate: 0.25 },
  1465. {
  1466. name: 'Fallback Polish Female',
  1467. lang: 'pl',
  1468. fallbackvoice: !0,
  1469. service: 'g1',
  1470. gender: 'female'
  1471. },
  1472. { name: 'Raquel Compact' },
  1473. { name: 'Luciana' },
  1474. { name: 'pt-BR', rate: 0.25 },
  1475. {
  1476. name: 'Fallback Brazilian Portuguese Female',
  1477. lang: 'pt-BR',
  1478. fallbackvoice: !0,
  1479. service: 'g1',
  1480. gender: 'female'
  1481. },
  1482. { name: 'Joana Compact' },
  1483. { name: 'Joana' },
  1484. { name: 'pt-PT', rate: 0.25 },
  1485. {
  1486. name: 'Fallback Portuguese',
  1487. lang: 'pt-PT',
  1488. fallbackvoice: !0,
  1489. service: 'g1',
  1490. gender: 'female'
  1491. },
  1492. {
  1493. name: 'Fallback Serbo-Croation',
  1494. lang: 'sh',
  1495. fallbackvoice: !0,
  1496. service: 'g2',
  1497. gender: 'male'
  1498. },
  1499. { name: 'Laura Compact' },
  1500. { name: 'Laura' },
  1501. { name: 'sk-SK', rate: 0.25 },
  1502. {
  1503. name: 'Fallback Slovak',
  1504. lang: 'sk',
  1505. fallbackvoice: !0,
  1506. service: 'g1',
  1507. gender: 'female'
  1508. },
  1509. { name: 'Javier Compact' },
  1510. { name: 'Paulina' },
  1511. { name: 'es-MX', rate: 0.25 },
  1512. {
  1513. name: 'Fallback Spanish (Latin American) Female',
  1514. lang: 'es-419',
  1515. fallbackvoice: !0,
  1516. service: 'g1',
  1517. gender: 'female'
  1518. },
  1519. {
  1520. name: 'Fallback Swahili',
  1521. lang: 'sw',
  1522. fallbackvoice: !0,
  1523. service: 'g2',
  1524. gender: 'male'
  1525. },
  1526. {
  1527. name: 'Fallback Tamil',
  1528. lang: 'ta',
  1529. fallbackvoice: !0,
  1530. service: 'g1',
  1531. gender: 'male'
  1532. },
  1533. { name: 'Narisa Compact' },
  1534. { name: 'Kanya' },
  1535. { name: 'th-TH', rate: 0.25 },
  1536. {
  1537. name: 'Fallback Thai Female',
  1538. lang: 'th',
  1539. fallbackvoice: !0,
  1540. service: 'g1',
  1541. gender: 'female'
  1542. },
  1543. {
  1544. name: 'Fallback Vietnamese Male',
  1545. lang: 'vi',
  1546. fallbackvoice: !0,
  1547. service: 'g3',
  1548. gender: 'male'
  1549. },
  1550. {
  1551. name: 'Fallback Welsh',
  1552. lang: 'cy',
  1553. fallbackvoice: !0,
  1554. service: 'g5',
  1555. gender: 'male'
  1556. },
  1557. { name: 'Oskar Compact' },
  1558. { name: 'sv-SE', rate: 0.25 },
  1559. { name: 'Simona Compact' },
  1560. { name: 'Ioana' },
  1561. { name: 'ro-RO', rate: 0.25 },
  1562. { name: 'Kyoko' },
  1563. { name: 'Lekha' },
  1564. { name: 'Ting-Ting' },
  1565. { name: 'Yuna' },
  1566. { name: 'Xander Compact' },
  1567. { name: 'nl-NL', rate: 0.25 },
  1568. {
  1569. name: 'Fallback UK English Male',
  1570. lang: 'en-GB',
  1571. fallbackvoice: !0,
  1572. service: 'g1',
  1573. voicename: 'rjs',
  1574. gender: 'male'
  1575. },
  1576. {
  1577. name: 'Finnish Male',
  1578. lang: 'fi',
  1579. fallbackvoice: !0,
  1580. service: 'g3',
  1581. voicename: '',
  1582. gender: 'male',
  1583. deprecated: !0
  1584. },
  1585. {
  1586. name: 'Czech Male',
  1587. lang: 'cs',
  1588. fallbackvoice: !0,
  1589. service: 'g3',
  1590. voicename: '',
  1591. gender: 'male',
  1592. deprecated: !0
  1593. },
  1594. {
  1595. name: 'Danish Male',
  1596. lang: 'da',
  1597. fallbackvoice: !0,
  1598. service: 'g3',
  1599. voicename: '',
  1600. gender: 'male',
  1601. deprecated: !0
  1602. },
  1603. {
  1604. name: 'Greek Male',
  1605. lang: 'el',
  1606. fallbackvoice: !0,
  1607. service: 'g3',
  1608. voicename: '',
  1609. gender: 'male',
  1610. deprecated: !0
  1611. },
  1612. {
  1613. name: 'Hungarian Male',
  1614. lang: 'hu',
  1615. fallbackvoice: !0,
  1616. service: 'g3',
  1617. voicename: '',
  1618. gender: 'male',
  1619. deprecated: !0
  1620. },
  1621. {
  1622. name: 'Latin Male',
  1623. lang: 'la',
  1624. fallbackvoice: !0,
  1625. service: 'g2',
  1626. voicename: '',
  1627. gender: 'male'
  1628. },
  1629. {
  1630. name: 'Norwegian Male',
  1631. lang: 'no',
  1632. fallbackvoice: !0,
  1633. service: 'g3',
  1634. voicename: '',
  1635. gender: 'male'
  1636. },
  1637. {
  1638. name: 'Slovak Male',
  1639. lang: 'sk',
  1640. fallbackvoice: !0,
  1641. service: 'g3',
  1642. voicename: '',
  1643. gender: 'male',
  1644. deprecated: !0
  1645. },
  1646. {
  1647. name: 'Swedish Male',
  1648. lang: 'sv',
  1649. fallbackvoice: !0,
  1650. service: 'g3',
  1651. voicename: '',
  1652. gender: 'male'
  1653. },
  1654. {
  1655. name: 'Fallback US English Male',
  1656. lang: 'en-US',
  1657. fallbackvoice: !0,
  1658. service: 'g3',
  1659. voicename: '',
  1660. gender: 'male'
  1661. },
  1662. { name: 'German Germany', lang: 'de_DE' },
  1663. { name: 'English United Kingdom', lang: 'en_GB' },
  1664. { name: 'English India', lang: 'en_IN' },
  1665. { name: 'English United States', lang: 'en_US' },
  1666. { name: 'Spanish Spain', lang: 'es_ES' },
  1667. { name: 'Spanish Mexico', lang: 'es_MX' },
  1668. { name: 'Spanish United States', lang: 'es_US' },
  1669. { name: 'French Belgium', lang: 'fr_BE' },
  1670. { name: 'French France', lang: 'fr_FR' },
  1671. { name: 'Hindi India', lang: 'hi_IN' },
  1672. { name: 'Indonesian Indonesia', lang: 'in_ID' },
  1673. { name: 'Italian Italy', lang: 'it_IT' },
  1674. { name: 'Japanese Japan', lang: 'ja_JP' },
  1675. { name: 'Korean South Korea', lang: 'ko_KR' },
  1676. { name: 'Dutch Netherlands', lang: 'nl_NL' },
  1677. { name: 'Polish Poland', lang: 'pl_PL' },
  1678. { name: 'Portuguese Brazil', lang: 'pt_BR' },
  1679. { name: 'Portuguese Portugal', lang: 'pt_PT' },
  1680. { name: 'Russian Russia', lang: 'ru_RU' },
  1681. { name: 'Thai Thailand', lang: 'th_TH' },
  1682. { name: 'Turkish Turkey', lang: 'tr_TR' },
  1683. { name: 'Chinese China', lang: 'zh_CN_#Hans' },
  1684. { name: 'Chinese Hong Kong', lang: 'zh_HK_#Hans' },
  1685. { name: 'Chinese Hong Kong', lang: 'zh_HK_#Hant' },
  1686. { name: 'Chinese Taiwan', lang: 'zh_TW_#Hant' },
  1687. { name: 'Alex' },
  1688. { name: 'Maged', lang: 'ar-SA' },
  1689. { name: 'Zuzana', lang: 'cs-CZ' },
  1690. { name: 'Sara', lang: 'da-DK' },
  1691. { name: 'Anna', lang: 'de-DE' },
  1692. { name: 'Melina', lang: 'el-GR' },
  1693. { name: 'Karen', lang: 'en-AU' },
  1694. { name: 'Daniel', lang: 'en-GB' },
  1695. { name: 'Moira', lang: 'en-IE' },
  1696. { name: 'Samantha (Enhanced)', lang: 'en-US' },
  1697. { name: 'Samantha', lang: 'en-US' },
  1698. { name: 'Tessa', lang: 'en-ZA' },
  1699. { name: 'Monica', lang: 'es-ES' },
  1700. { name: 'Paulina', lang: 'es-MX' },
  1701. { name: 'Satu', lang: 'fi-FI' },
  1702. { name: 'Amelie', lang: 'fr-CA' },
  1703. { name: 'Thomas', lang: 'fr-FR' },
  1704. { name: 'Carmit', lang: 'he-IL' },
  1705. { name: 'Lekha', lang: 'hi-IN' },
  1706. { name: 'Mariska', lang: 'hu-HU' },
  1707. { name: 'Damayanti', lang: 'id-ID' },
  1708. { name: 'Alice', lang: 'it-IT' },
  1709. { name: 'Kyoko', lang: 'ja-JP' },
  1710. { name: 'Yuna', lang: 'ko-KR' },
  1711. { name: 'Ellen', lang: 'nl-BE' },
  1712. { name: 'Xander', lang: 'nl-NL' },
  1713. { name: 'Nora', lang: 'no-NO' },
  1714. { name: 'Zosia', lang: 'pl-PL' },
  1715. { name: 'Luciana', lang: 'pt-BR' },
  1716. { name: 'Joana', lang: 'pt-PT' },
  1717. { name: 'Ioana', lang: 'ro-RO' },
  1718. { name: 'Milena', lang: 'ru-RU' },
  1719. { name: 'Laura', lang: 'sk-SK' },
  1720. { name: 'Alva', lang: 'sv-SE' },
  1721. { name: 'Kanya', lang: 'th-TH' },
  1722. { name: 'Yelda', lang: 'tr-TR' },
  1723. { name: 'Ting-Ting', lang: 'zh-CN' },
  1724. { name: 'Sin-Ji', lang: 'zh-HK' },
  1725. { name: 'Mei-Jia', lang: 'zh-TW' },
  1726. {
  1727. name: 'Microsoft David Mobile - English (United States)',
  1728. lang: 'en-US'
  1729. },
  1730. {
  1731. name: 'Microsoft Zira Mobile - English (United States)',
  1732. lang: 'en-US'
  1733. },
  1734. {
  1735. name: 'Microsoft Mark Mobile - English (United States)',
  1736. lang: 'en-US'
  1737. },
  1738. { name: 'native', lang: '' },
  1739. { name: 'Google espa\u00f1ol' },
  1740. { name: 'Google espa\u00f1ol de Estados Unidos' },
  1741. { name: 'Google fran\u00e7ais' },
  1742. { name: 'Google Bahasa Indonesia' },
  1743. { name: 'Google italiano' },
  1744. { name: 'Google Nederlands' },
  1745. { name: 'Google polski' },
  1746. { name: 'Google portugu\u00eas do Brasil' },
  1747. { name: 'Google \u0440\u0443\u0441\u0441\u043a\u0438\u0439' },
  1748. { name: 'Google \u0939\u093f\u0928\u094d\u0926\u0940' },
  1749. { name: 'Google \u65e5\u672c\u8a9e' },
  1750. {
  1751. name: 'Google \u666e\u901a\u8bdd\uff08\u4e2d\u56fd\u5927\u9646\uff09'
  1752. },
  1753. { name: 'Google \u7ca4\u8a9e\uff08\u9999\u6e2f\uff09' },
  1754. { name: 'zh-HK', rate: 0.25 },
  1755. {
  1756. name: 'Fallback Chinese (Hong Kong) Female',
  1757. lang: 'zh-HK',
  1758. fallbackvoice: !0,
  1759. service: 'g1',
  1760. gender: 'female'
  1761. },
  1762. { name: 'Google \u7ca4\u8a9e\uff08\u9999\u6e2f\uff09' },
  1763. { name: 'zh-TW', rate: 0.25 },
  1764. {
  1765. name: 'Fallback Chinese (Taiwan) Female',
  1766. lang: 'zh-TW',
  1767. fallbackvoice: !0,
  1768. service: 'g1',
  1769. gender: 'female'
  1770. },
  1771. {
  1772. name: 'Microsoft George Mobile - English (United Kingdom)',
  1773. lang: 'en-GB'
  1774. },
  1775. {
  1776. name: 'Microsoft Susan Mobile - English (United Kingdom)',
  1777. lang: 'en-GB'
  1778. },
  1779. {
  1780. name: 'Microsoft Hazel Mobile - English (United Kingdom)',
  1781. lang: 'en-GB'
  1782. },
  1783. { name: 'Microsoft Heera Mobile - English (India)', lang: 'en-In' },
  1784. { name: 'Microsoft Irina Mobile - Russian (Russia)', lang: 'ru-RU' },
  1785. { name: 'Microsoft Hedda Mobile - German (Germany)', lang: 'de-DE' },
  1786. { name: 'Microsoft Katja Mobile - German (Germany)', lang: 'de-DE' },
  1787. { name: 'Microsoft Helena Mobile - Spanish (Spain)', lang: 'es-ES' },
  1788. { name: 'Microsoft Laura Mobile - Spanish (Spain)', lang: 'es-ES' },
  1789. { name: 'Microsoft Sabina Mobile - Spanish (Mexico)', lang: 'es-MX' },
  1790. { name: 'Microsoft Julie Mobile - French (France)', lang: 'fr-FR' },
  1791. { name: 'Microsoft Paulina Mobile - Polish (Poland)', lang: 'pl-PL' },
  1792. {
  1793. name: 'Microsoft Huihui Mobile - Chinese (Simplified, PRC)',
  1794. lang: 'zh-CN'
  1795. },
  1796. {
  1797. name: 'Microsoft Yaoyao Mobile - Chinese (Simplified, PRC)',
  1798. lang: 'zh-CN'
  1799. },
  1800. {
  1801. name: 'Microsoft Tracy Mobile - Chinese (Traditional, Hong Kong S.A.R.)',
  1802. lang: 'zh-CN'
  1803. },
  1804. { name: 'Microsoft Elsa Mobile - Italian (Italy)', lang: 'it-IT' },
  1805. {
  1806. name: 'Microsoft Maria Mobile - Portuguese (Brazil)',
  1807. lang: 'pt-BR'
  1808. },
  1809. { name: 'Microsoft Ayumi Mobile - Japanese (Japan)', lang: 'ja-JP' },
  1810. { name: 'Microsoft Haruka Mobile - Japanese (Japan)', lang: 'ja-JP' },
  1811. { name: 'Helena', lang: 'de-DE' },
  1812. { name: 'Catherine', lang: 'en-AU' },
  1813. { name: 'Arthur', lang: 'en-GB' },
  1814. { name: 'Martha', lang: 'en-GB' },
  1815. { name: 'Marie', lang: 'fr-FR' },
  1816. { name: 'O-ren', lang: 'ja-JP' },
  1817. { name: 'Yu-shu', lang: 'zh-CN' },
  1818. { name: 'Microsoft David - English (United States)', lang: 'en-US' },
  1819. { name: 'Microsoft Zira - English (United States)', lang: 'en-US' },
  1820. { name: 'Microsoft Mark - English (United States)', lang: 'en-US' },
  1821. {
  1822. name: 'Microsoft George - English (United Kingdom)',
  1823. lang: 'en-GB'
  1824. },
  1825. { name: 'Microsoft Susan - English (United Kingdom)', lang: 'en-GB' },
  1826. { name: 'Microsoft Hazel - English (United Kingdom)', lang: 'en-GB' },
  1827. { name: 'Microsoft Heera - English (India)', lang: 'en-In' },
  1828. { name: 'Microsoft Irina - Russian (Russia)', lang: 'ru-RU' },
  1829. { name: 'Microsoft Hedda - German (Germany)', lang: 'de-DE' },
  1830. { name: 'Microsoft Katja - German (Germany)', lang: 'de-DE' },
  1831. { name: 'Microsoft Helena - Spanish (Spain)', lang: 'es-ES' },
  1832. { name: 'Microsoft Laura - Spanish (Spain)', lang: 'es-ES' },
  1833. { name: 'Microsoft Sabina - Spanish (Mexico)', lang: 'es-MX' },
  1834. { name: 'Microsoft Julie - French (France)', lang: 'fr-FR' },
  1835. { name: 'Microsoft Paulina - Polish (Poland)', lang: 'pl-PL' },
  1836. {
  1837. name: 'Microsoft Huihui - Chinese (Simplified, PRC)',
  1838. lang: 'zh-CN'
  1839. },
  1840. {
  1841. name: 'Microsoft Yaoyao - Chinese (Simplified, PRC)',
  1842. lang: 'zh-CN'
  1843. },
  1844. {
  1845. name: 'Microsoft Tracy - Chinese (Traditional, Hong Kong S.A.R.)',
  1846. lang: 'zh-CN'
  1847. },
  1848. { name: 'Microsoft Elsa - Italian (Italy)', lang: 'it-IT' },
  1849. { name: 'Microsoft Maria - Portuguese (Brazil)', lang: 'pt-BR' },
  1850. { name: 'Microsoft Ayumi - Japanese (Japan)', lang: 'ja-JP' },
  1851. { name: 'Microsoft Haruka - Japanese (Japan)', lang: 'ja-JP' },
  1852. { name: 'Microsoft Hortense - French (France)', lang: 'fr-FR' },
  1853. {
  1854. name: 'Microsoft Hanhan - Chinese (Traditional, Taiwan)',
  1855. lang: 'zh-TW'
  1856. },
  1857. { name: 'Microsoft Heami - Korean (Korean)', lang: 'ko-KR' },
  1858. { name: 'Microsoft Stefan - German (Germany)', lang: 'de-DE' },
  1859. { name: 'Microsoft Ravi - English (India)', lang: 'en-IN' },
  1860. { name: 'Microsoft Pablo - Spanish (Spain)', lang: 'es-ES' },
  1861. { name: 'Microsoft Raul - Spanish (Mexico)', lang: 'es-MX' },
  1862. { name: 'Microsoft Paul - French (France)', lang: 'fr-FR' },
  1863. { name: 'Microsoft Cosimo - Italian (Italy)', lang: 'it-IT' },
  1864. { name: 'Microsoft Ichiro - Japanese (Japan)', lang: 'ja-JP' },
  1865. { name: 'Microsoft Adam - Polish (Poland)', lang: 'pl-PL' },
  1866. { name: 'Microsoft Daniel - Portuguese (Brazil)', lang: 'pt-BR' },
  1867. { name: 'Microsoft Pavel - Russian (Russia)', lang: 'ru-RU' },
  1868. {
  1869. name: 'Microsoft Kangkang - Chinese (Simplified, PRC)',
  1870. lang: 'zh-CN'
  1871. },
  1872. {
  1873. name: 'Microsoft Danny - Chinese (Traditional, Hong Kong S.A.R.)',
  1874. lang: 'zh-HK'
  1875. },
  1876. {
  1877. name: 'Microsoft Yating - Chinese (Traditional, Taiwan)',
  1878. lang: 'zh-TW'
  1879. },
  1880. {
  1881. name: 'Microsoft Zhiwei - Chinese (Traditional, Taiwan)',
  1882. lang: 'zh-TW'
  1883. },
  1884. {
  1885. name: 'Microsoft Hortense Mobile - French (France)',
  1886. lang: 'fr-FR'
  1887. },
  1888. {
  1889. name: 'Microsoft Hanhan Mobile - Chinese (Traditional, Taiwan)',
  1890. lang: 'zh-TW'
  1891. },
  1892. { name: 'Microsoft Heami Mobile - Korean (Korean)', lang: 'ko-KR' },
  1893. { name: 'Microsoft Stefan Mobile - German (Germany)', lang: 'de-DE' },
  1894. { name: 'Microsoft Ravi Mobile - English (India)', lang: 'en-IN' },
  1895. { name: 'Microsoft Pablo Mobile - Spanish (Spain)', lang: 'es-ES' },
  1896. { name: 'Microsoft Raul Mobile - Spanish (Mexico)', lang: 'es-MX' },
  1897. { name: 'Microsoft Paul Mobile - French (France)', lang: 'fr-FR' },
  1898. { name: 'Microsoft Cosimo Mobile - Italian (Italy)', lang: 'it-IT' },
  1899. { name: 'Microsoft Ichiro Mobile - Japanese (Japan)', lang: 'ja-JP' },
  1900. { name: 'Microsoft Adam Mobile - Polish (Poland)', lang: 'pl-PL' },
  1901. {
  1902. name: 'Microsoft Daniel Mobile - Portuguese (Brazil)',
  1903. lang: 'pt-BR'
  1904. },
  1905. { name: 'Microsoft Pavel Mobile - Russian (Russia)', lang: 'ru-RU' },
  1906. {
  1907. name: 'Microsoft Kangkang Mobile - Chinese (Simplified, PRC)',
  1908. lang: 'zh-CN'
  1909. },
  1910. {
  1911. name: 'Microsoft Danny Mobile - Chinese (Traditional, Hong Kong S.A.R.)',
  1912. lang: 'zh-HK'
  1913. },
  1914. {
  1915. name: 'Microsoft Yating Mobile - Chinese (Traditional, Taiwan)',
  1916. lang: 'zh-TW'
  1917. },
  1918. {
  1919. name: 'Microsoft Zhiwei Mobile - Chinese (Traditional, Taiwan)',
  1920. lang: 'zh-TW'
  1921. },
  1922. {
  1923. name: 'Microsoft David Desktop - English (United States)',
  1924. lang: 'en-US'
  1925. },
  1926. {
  1927. name: 'Microsoft Zira Desktop - English (United States)',
  1928. lang: 'en-US'
  1929. },
  1930. {
  1931. name: 'Microsoft Mark Desktop - English (United States)',
  1932. lang: 'en-US'
  1933. },
  1934. {
  1935. name: 'Microsoft George Desktop - English (United Kingdom)',
  1936. lang: 'en-GB'
  1937. },
  1938. {
  1939. name: 'Microsoft Susan Desktop - English (United Kingdom)',
  1940. lang: 'en-GB'
  1941. },
  1942. {
  1943. name: 'Microsoft Hazel Desktop - English (United Kingdom)',
  1944. lang: 'en-GB'
  1945. },
  1946. { name: 'Microsoft Heera Desktop - English (India)', lang: 'en-In' },
  1947. { name: 'Microsoft Irina Desktop - Russian (Russia)', lang: 'ru-RU' },
  1948. { name: 'Microsoft Hedda Desktop - German (Germany)', lang: 'de-DE' },
  1949. { name: 'Microsoft Katja Desktop - German (Germany)', lang: 'de-DE' },
  1950. { name: 'Microsoft Helena Desktop - Spanish (Spain)', lang: 'es-ES' },
  1951. { name: 'Microsoft Laura Desktop - Spanish (Spain)', lang: 'es-ES' },
  1952. {
  1953. name: 'Microsoft Sabina Desktop - Spanish (Mexico)',
  1954. lang: 'es-MX'
  1955. },
  1956. { name: 'Microsoft Julie Desktop - French (France)', lang: 'fr-FR' },
  1957. {
  1958. name: 'Microsoft Paulina Desktop - Polish (Poland)',
  1959. lang: 'pl-PL'
  1960. },
  1961. {
  1962. name: 'Microsoft Huihui Desktop - Chinese (Simplified, PRC)',
  1963. lang: 'zh-CN'
  1964. },
  1965. {
  1966. name: 'Microsoft Yaoyao Desktop - Chinese (Simplified, PRC)',
  1967. lang: 'zh-CN'
  1968. },
  1969. {
  1970. name: 'Microsoft Tracy Desktop - Chinese (Traditional, Hong Kong S.A.R.)',
  1971. lang: 'zh-CN'
  1972. },
  1973. { name: 'Microsoft Elsa Desktop - Italian (Italy)', lang: 'it-IT' },
  1974. {
  1975. name: 'Microsoft Maria Desktop - Portuguese (Brazil)',
  1976. lang: 'pt-BR'
  1977. },
  1978. { name: 'Microsoft Ayumi Desktop - Japanese (Japan)', lang: 'ja-JP' },
  1979. {
  1980. name: 'Microsoft Haruka Desktop - Japanese (Japan)',
  1981. lang: 'ja-JP'
  1982. },
  1983. {
  1984. name: 'Microsoft Hortense Desktop - French (France)',
  1985. lang: 'fr-FR'
  1986. },
  1987. {
  1988. name: 'Microsoft Hanhan Desktop - Chinese (Traditional, Taiwan)',
  1989. lang: 'zh-TW'
  1990. },
  1991. { name: 'Microsoft Heami Desktop - Korean (Korean)', lang: 'ko-KR' },
  1992. {
  1993. name: 'Microsoft Stefan Desktop - German (Germany)',
  1994. lang: 'de-DE'
  1995. },
  1996. { name: 'Microsoft Ravi Desktop - English (India)', lang: 'en-IN' },
  1997. { name: 'Microsoft Pablo Desktop - Spanish (Spain)', lang: 'es-ES' },
  1998. { name: 'Microsoft Raul Desktop - Spanish (Mexico)', lang: 'es-MX' },
  1999. { name: 'Microsoft Paul Desktop - French (France)', lang: 'fr-FR' },
  2000. { name: 'Microsoft Cosimo Desktop - Italian (Italy)', lang: 'it-IT' },
  2001. {
  2002. name: 'Microsoft Ichiro Desktop - Japanese (Japan)',
  2003. lang: 'ja-JP'
  2004. },
  2005. { name: 'Microsoft Adam Desktop - Polish (Poland)', lang: 'pl-PL' },
  2006. {
  2007. name: 'Microsoft Daniel Desktop - Portuguese (Brazil)',
  2008. lang: 'pt-BR'
  2009. },
  2010. { name: 'Microsoft Pavel Desktop - Russian (Russia)', lang: 'ru-RU' },
  2011. {
  2012. name: 'Microsoft Kangkang Desktop - Chinese (Simplified, PRC)',
  2013. lang: 'zh-CN'
  2014. },
  2015. {
  2016. name: 'Microsoft Danny Desktop - Chinese (Traditional, Hong Kong S.A.R.)',
  2017. lang: 'zh-HK'
  2018. },
  2019. {
  2020. name: 'Microsoft Yating Desktop - Chinese (Traditional, Taiwan)',
  2021. lang: 'zh-TW'
  2022. },
  2023. {
  2024. name: 'Microsoft Zhiwei Desktop - Chinese (Traditional, Taiwan)',
  2025. lang: 'zh-TW'
  2026. },
  2027. { name: 'Martin', lang: 'de-DE' },
  2028. { name: 'Daniel', lang: 'fr-FR' },
  2029. { name: 'Hattori', lang: 'ja-JP' },
  2030. { name: 'Li-mu', lang: 'zh-CN' },
  2031. { name: 'Gordon', lang: 'en-AU' },
  2032. { name: 'Aaron', lang: 'en-US' },
  2033. { name: 'Nicky', lang: 'en-US' },
  2034. {
  2035. name: 'Microsoft Hanhan Desktop - Chinese (Taiwan)',
  2036. lang: 'zh-TW'
  2037. },
  2038. { name: 'Microsoft Heami Desktop - Korean', lang: 'ko-KR' },
  2039. {
  2040. name: 'Fallback Australian Male',
  2041. lang: 'en-AU',
  2042. fallbackvoice: !0,
  2043. service: 'g3',
  2044. gender: 'male'
  2045. },
  2046. {
  2047. name: 'Fallback Russian Male',
  2048. lang: 'ru',
  2049. fallbackvoice: !0,
  2050. service: 'g3',
  2051. gender: 'male',
  2052. deprecated: !0
  2053. },
  2054. {
  2055. name: 'Fallback Arabic Male',
  2056. lang: 'ar',
  2057. fallbackvoice: !0,
  2058. service: 'g3',
  2059. gender: 'male'
  2060. },
  2061. {
  2062. name: 'Fallback Chinese',
  2063. lang: 'zh-CN',
  2064. fallbackvoice: !0,
  2065. service: 'g3',
  2066. gender: 'male'
  2067. },
  2068. {
  2069. name: 'Fallback Chinese HK',
  2070. lang: 'zh-HK',
  2071. fallbackvoice: !0,
  2072. service: 'g3',
  2073. gender: 'male'
  2074. },
  2075. {
  2076. name: 'Fallback Chinese TW',
  2077. lang: 'zh-TW',
  2078. fallbackvoice: !0,
  2079. service: 'g3',
  2080. gender: 'male'
  2081. },
  2082. {
  2083. name: 'Fallback French Male',
  2084. lang: 'fr',
  2085. fallbackvoice: !0,
  2086. service: 'g3',
  2087. gender: 'male'
  2088. },
  2089. {
  2090. name: 'Fallback Deutsch Male',
  2091. lang: 'de',
  2092. fallbackvoice: !0,
  2093. service: 'g3',
  2094. gender: 'male'
  2095. },
  2096. {
  2097. name: 'Fallback Hindi Male',
  2098. lang: 'hi',
  2099. fallbackvoice: !0,
  2100. service: 'g3',
  2101. gender: 'male'
  2102. },
  2103. {
  2104. name: 'Fallback Indonesian Male',
  2105. lang: 'id',
  2106. fallbackvoice: !0,
  2107. service: 'g3',
  2108. gender: 'male'
  2109. },
  2110. {
  2111. name: 'Fallback Japanese Male',
  2112. lang: 'ja',
  2113. fallbackvoice: !0,
  2114. service: 'g3',
  2115. gender: 'male'
  2116. },
  2117. {
  2118. name: 'Fallback Korean Male',
  2119. lang: 'ko',
  2120. fallbackvoice: !0,
  2121. service: 'g3',
  2122. gender: 'male'
  2123. },
  2124. {
  2125. name: 'Fallback Polish Male',
  2126. lang: 'pl',
  2127. fallbackvoice: !0,
  2128. service: 'g1',
  2129. gender: 'male'
  2130. },
  2131. {
  2132. name: 'Fallback Brazilian Portuguese Male',
  2133. lang: 'pt-BR',
  2134. fallbackvoice: !0,
  2135. service: 'g3',
  2136. gender: 'male',
  2137. deprecated: !0
  2138. },
  2139. {
  2140. name: 'Fallback Portuguese Male',
  2141. lang: 'pt-PT',
  2142. fallbackvoice: !0,
  2143. service: 'g1',
  2144. gender: 'male'
  2145. },
  2146. {
  2147. name: 'Fallback Spanish Male',
  2148. lang: 'es',
  2149. fallbackvoice: !0,
  2150. service: 'g3',
  2151. gender: 'male',
  2152. deprecated: !0
  2153. },
  2154. {
  2155. name: 'Fallback Spanish (Latin American) Male',
  2156. lang: 'es-419',
  2157. fallbackvoice: !0,
  2158. service: 'g3',
  2159. gender: 'male'
  2160. },
  2161. {
  2162. name: 'Fallback Thai Male',
  2163. lang: 'th',
  2164. fallbackvoice: !0,
  2165. service: 'g3',
  2166. gender: 'male'
  2167. },
  2168. {
  2169. name: 'Fallback Turkish Male',
  2170. lang: 'tr',
  2171. fallbackvoice: !0,
  2172. service: 'g3',
  2173. gender: 'male'
  2174. },
  2175. {
  2176. name: 'Fallback Vietnamese Female',
  2177. lang: 'vi',
  2178. fallbackvoice: !0,
  2179. service: 'g1',
  2180. gender: 'female'
  2181. },
  2182. {
  2183. name: 'Fallback Italian Male',
  2184. lang: 'it',
  2185. fallbackvoice: !0,
  2186. service: 'g3',
  2187. gender: 'male'
  2188. },
  2189. {
  2190. name: 'Fallback Dutch Male',
  2191. lang: 'nl',
  2192. fallbackvoice: !0,
  2193. timerSpeed: 0,
  2194. service: 'g3',
  2195. gender: 'male'
  2196. },
  2197. {
  2198. name: 'Microsoft Anna - English (United States)',
  2199. lang: 'en-US',
  2200. gender: 'female'
  2201. },
  2202. {
  2203. name: 'Microsoft Lili - Chinese (China)',
  2204. lang: 'zh-CN',
  2205. gender: 'female'
  2206. },
  2207. { name: 'Bangla Bangladesh', lang: 'bn_BD', gender: 'male' },
  2208. { name: 'Bangla India', lang: 'bn_IN', gender: 'male' },
  2209. { name: 'Czech Czechia', lang: 'cs_CZ', gender: 'female' },
  2210. { name: 'Danish Denmark', lang: 'da_DK', gender: 'female' },
  2211. { name: 'Greek Greece', lang: 'el_GR', gender: 'female' },
  2212. { name: 'English Australia', lang: 'en_AU', gender: 'female' },
  2213. { name: 'Estonian Estonia', lang: 'et_EE', gender: 'male' },
  2214. { name: 'Finnish Finland', lang: 'fi_FI', gender: 'female' },
  2215. { name: 'Filipino Philippines', lang: 'fil_PH', gender: 'female' },
  2216. { name: 'French Canada', lang: 'fr_CAF', gender: 'female' },
  2217. { name: 'Hungarian Hungary', lang: 'hu_HU', gender: 'female' },
  2218. { name: 'Khmer Cambodia', lang: 'km_KH', gender: 'female' },
  2219. {
  2220. name: 'Norwegian Bokm\u00e5l Norway',
  2221. lang: 'nb_NO',
  2222. gender: 'female'
  2223. },
  2224. { name: 'Nepali Nepal', lang: 'ne_NP', gender: 'female' },
  2225. { name: 'Romanian Romania', lang: 'ro_RO', gender: 'female' },
  2226. { name: 'Sinhala Sri Lanka', lang: 'si_LK', gender: 'female' },
  2227. { name: 'Slovak Slovakia', lang: 'sk_SK', gender: 'female' },
  2228. { name: 'Swedish Sweden', lang: 'sv_SE', gender: 'female' },
  2229. { name: 'Ukrainian Ukraine', lang: 'uk_UA', gender: 'female' },
  2230. { name: 'Vietnamese Vietnam', lang: 'vi_VN', gender: 'female' },
  2231. {
  2232. name: 'Cantonese Hong Kong',
  2233. lang: 'yue_HK_#Hant',
  2234. gender: 'female'
  2235. },
  2236. {
  2237. name: 'Microsoft Server Speech Text to Speech Voice (en-US, Guy24kRUS)',
  2238. lang: 'en-US',
  2239. gender: 'male'
  2240. },
  2241. {
  2242. name: 'Microsoft Server Speech Text to Speech Voice (en-US, Jessa24kRUS)',
  2243. lang: 'en-US',
  2244. gender: 'female'
  2245. },
  2246. {
  2247. name: 'Microsoft Server Speech Text to Speech Voice (en-US, JessaRUS)',
  2248. lang: 'en-US',
  2249. gender: 'female'
  2250. },
  2251. {
  2252. name: 'Microsoft Server Speech Text to Speech Voice (en-US, ZiraRUS)',
  2253. lang: 'en-US',
  2254. gender: 'female'
  2255. },
  2256. {
  2257. name: 'Fallback Bangla Bangladeh Female',
  2258. lang: 'bn-BD',
  2259. fallbackvoice: !0,
  2260. timerSpeed: 0,
  2261. service: 'g3',
  2262. gender: 'female'
  2263. },
  2264. {
  2265. name: 'Fallback Bangla Bangladeh Male',
  2266. lang: 'bn-BD',
  2267. fallbackvoice: !0,
  2268. timerSpeed: 0,
  2269. service: 'g3',
  2270. gender: 'male'
  2271. },
  2272. {
  2273. name: 'Fallback Filipino Female',
  2274. lang: 'fil-PH',
  2275. fallbackvoice: !0,
  2276. timerSpeed: 0,
  2277. service: 'g3',
  2278. gender: 'female'
  2279. },
  2280. {
  2281. name: 'Fallback Filipino Male',
  2282. lang: 'fil-PH',
  2283. fallbackvoice: !0,
  2284. timerSpeed: 0,
  2285. service: 'g3',
  2286. gender: 'male'
  2287. },
  2288. {
  2289. name: 'Fallback Cambodian Khmer Female',
  2290. lang: 'km-KH',
  2291. fallbackvoice: !0,
  2292. timerSpeed: 0,
  2293. service: 'g3',
  2294. gender: 'female'
  2295. },
  2296. {
  2297. name: 'Fallback Cambodian Khmer Male',
  2298. lang: 'km-KH',
  2299. fallbackvoice: !0,
  2300. timerSpeed: 0,
  2301. service: 'g3',
  2302. gender: 'male'
  2303. },
  2304. {
  2305. name: 'Fallback Nepali Female',
  2306. lang: 'ne-NP',
  2307. fallbackvoice: !0,
  2308. timerSpeed: 0,
  2309. service: 'g3',
  2310. gender: 'female'
  2311. },
  2312. {
  2313. name: 'Fallback Sinhala Female',
  2314. lang: 'si-LK',
  2315. fallbackvoice: !0,
  2316. timerSpeed: 0,
  2317. service: 'g3',
  2318. gender: 'female'
  2319. },
  2320. {
  2321. name: 'Fallback Ukrainian Female',
  2322. lang: 'uk-UA',
  2323. fallbackvoice: !0,
  2324. timerSpeed: 0,
  2325. service: 'g3',
  2326. gender: 'female'
  2327. },
  2328. {
  2329. name: 'Fallback Cantonese Hong Kong Female',
  2330. lang: 'yue-HK',
  2331. fallbackvoice: !0,
  2332. timerSpeed: 0,
  2333. service: 'g3',
  2334. gender: 'female'
  2335. },
  2336. {
  2337. name: 'Fallback Cantonese Hong Kong Male',
  2338. lang: 'yue-HK',
  2339. fallbackvoice: !0,
  2340. timerSpeed: 0,
  2341. service: 'g3',
  2342. gender: 'male'
  2343. },
  2344. {
  2345. name: 'Fallback Estonian Male',
  2346. lang: 'et-EE',
  2347. fallbackvoice: !0,
  2348. timerSpeed: 0,
  2349. service: 'g3',
  2350. gender: 'male'
  2351. },
  2352. {
  2353. name: 'Fallback Bangla India Female',
  2354. lang: 'bn-IN',
  2355. fallbackvoice: !0,
  2356. timerSpeed: 0,
  2357. service: 'g3',
  2358. gender: 'female'
  2359. },
  2360. {
  2361. name: 'Fallback Bangla India Male',
  2362. lang: 'bn-IN',
  2363. fallbackvoice: !0,
  2364. timerSpeed: 0,
  2365. service: 'g3',
  2366. gender: 'male'
  2367. },
  2368. {
  2369. name: 'Fallback French Canadian Female',
  2370. lang: 'fr-CA',
  2371. fallbackvoice: !0,
  2372. timerSpeed: 0,
  2373. service: 'g3',
  2374. gender: 'female'
  2375. },
  2376. {
  2377. name: 'Fallback French Canadian Male',
  2378. lang: 'fr-CA',
  2379. fallbackvoice: !0,
  2380. timerSpeed: 0,
  2381. service: 'g3',
  2382. gender: 'male'
  2383. },
  2384. {
  2385. name: 'Fallback Tamil',
  2386. lang: 'ta',
  2387. fallbackvoice: !0,
  2388. service: 'g1',
  2389. gender: 'female'
  2390. },
  2391. {
  2392. name: 'Tian-Tian',
  2393. voiceURI: 'com.apple.ttsbundle.Ting-Ting-compact',
  2394. lang: 'zh-CN',
  2395. gender: 'female'
  2396. },
  2397. { name: 'English Nigeria', lang: 'en_NG', gender: 'female' },
  2398. { name: 'Gujarati India', lang: 'gu_IN', gender: 'female' },
  2399. { name: 'Kannada India', lang: 'kn_IN', gender: 'female' },
  2400. { name: 'Malayalam India', lang: 'ml_IN', gender: 'female' },
  2401. { name: 'Marathi India', lang: 'mr_IN', gender: 'female' },
  2402. { name: 'Tamil India', lang: 'ta_IN', gender: 'female' },
  2403. { name: 'Telugu India', lang: 'te_IN', gender: 'female' },
  2404. { name: 'Urdu Pakistan', lang: 'ur_PK', gender: 'female' },
  2405. { name: 'Javanese Indonesia', lang: 'jv_ID', gender: 'female' },
  2406. { name: 'Malay Malaysia', lang: 'ms_MY', gender: 'female' },
  2407. { name: 'Chinese Hong Kong', lang: 'zh_HK_#Hans', gender: 'female' },
  2408. { name: 'Chinese Hong Kong', lang: 'zh_HK_#Hant', gender: 'female' },
  2409. {
  2410. name: 'Microsoft Tolga - Turkish (Turkey)',
  2411. lang: 'tr-TR',
  2412. gender: 'male'
  2413. },
  2414. {
  2415. name: 'Korean (South Korea)',
  2416. voiceURI: 'moz-tts:android:ko_KR',
  2417. lang: 'ko-KR',
  2418. gender: 'female'
  2419. },
  2420. {
  2421. name: 'Marathi (India)',
  2422. voiceURI: 'moz-tts:android:mr_IN',
  2423. lang: 'mr-IN',
  2424. gender: 'female'
  2425. },
  2426. {
  2427. name: 'Russian (Russia)',
  2428. voiceURI: 'moz-tts:android:ru_RU',
  2429. lang: 'ru-RU',
  2430. gender: 'female'
  2431. },
  2432. {
  2433. name: 'Chinese (Taiwan)',
  2434. voiceURI: 'moz-tts:android:zh_TW',
  2435. lang: 'zh-TW',
  2436. gender: 'female'
  2437. },
  2438. {
  2439. name: 'Hungarian (Hungary)',
  2440. voiceURI: 'moz-tts:android:hu_HU',
  2441. lang: 'hu-HU',
  2442. gender: 'female'
  2443. },
  2444. {
  2445. name: 'Thai (Thailand)',
  2446. voiceURI: 'moz-tts:android:th_TH',
  2447. lang: 'th-TH',
  2448. gender: 'female'
  2449. },
  2450. {
  2451. name: 'Urdu (Pakistan)',
  2452. voiceURI: 'moz-tts:android:ur_PK',
  2453. lang: 'ur-PK',
  2454. gender: 'female'
  2455. },
  2456. {
  2457. name: 'Norwegian Bokm\u00e5l (Norway)',
  2458. voiceURI: 'moz-tts:android:nb_NO',
  2459. lang: 'nb-NO',
  2460. gender: 'female'
  2461. },
  2462. {
  2463. name: 'Danish (Denmark)',
  2464. voiceURI: 'moz-tts:android:da_DK',
  2465. lang: 'da-DK',
  2466. gender: 'female'
  2467. },
  2468. {
  2469. name: 'Turkish (Turkey)',
  2470. voiceURI: 'moz-tts:android:tr_TR',
  2471. lang: 'tr-TR',
  2472. gender: 'female'
  2473. },
  2474. {
  2475. name: 'Estonian (Estonia)',
  2476. voiceURI: 'moz-tts:android:et_EE',
  2477. lang: 'et-EE',
  2478. gender: 'male'
  2479. },
  2480. {
  2481. name: 'Bosnian',
  2482. voiceURI: 'moz-tts:android:bs',
  2483. lang: 'bs',
  2484. deprecated: !0
  2485. },
  2486. {
  2487. name: 'Swahili',
  2488. voiceURI: 'moz-tts:android:sw',
  2489. lang: 'sw',
  2490. deprecated: !0
  2491. },
  2492. {
  2493. name: 'Portuguese (Portugal)',
  2494. voiceURI: 'moz-tts:android:pt_PT',
  2495. lang: 'pt-PT',
  2496. gender: 'female'
  2497. },
  2498. {
  2499. name: 'Vietnamese (Vietnam)',
  2500. voiceURI: 'moz-tts:android:vi_VN',
  2501. lang: 'vi-VN',
  2502. gender: 'female'
  2503. },
  2504. {
  2505. name: 'English (United States)',
  2506. voiceURI: 'moz-tts:android:en_US',
  2507. lang: 'en-US',
  2508. gender: 'female'
  2509. },
  2510. {
  2511. name: 'Swedish (Sweden)',
  2512. voiceURI: 'moz-tts:android:sv_SE',
  2513. lang: 'sv-SE',
  2514. gender: 'female'
  2515. },
  2516. {
  2517. name: 'Arabic',
  2518. voiceURI: 'moz-tts:android:ar',
  2519. lang: 'ar',
  2520. gender: 'female'
  2521. },
  2522. {
  2523. name: 'Sundanese (Indonesia)',
  2524. voiceURI: 'moz-tts:android:su_ID',
  2525. lang: 'su-ID',
  2526. gender: 'female'
  2527. },
  2528. {
  2529. name: 'Bangla (Bangladesh)',
  2530. voiceURI: 'moz-tts:android:bn_BD',
  2531. lang: 'bn-BD',
  2532. gender: 'male'
  2533. },
  2534. {
  2535. name: 'Gujarati (India)',
  2536. voiceURI: 'moz-tts:android:gu_IN',
  2537. lang: 'gu-IN',
  2538. gender: 'female'
  2539. },
  2540. {
  2541. name: 'Kannada (India)',
  2542. voiceURI: 'moz-tts:android:kn_IN',
  2543. lang: 'kn-IN',
  2544. gender: 'female'
  2545. },
  2546. {
  2547. name: 'Greek (Greece)',
  2548. voiceURI: 'moz-tts:android:el_GR',
  2549. lang: 'el-GR',
  2550. gender: 'female'
  2551. },
  2552. {
  2553. name: 'Hindi (India)',
  2554. voiceURI: 'moz-tts:android:hi_IN',
  2555. lang: 'hi-IN',
  2556. gender: 'female'
  2557. },
  2558. {
  2559. name: 'Finnish (Finland)',
  2560. voiceURI: 'moz-tts:android:fi_FI',
  2561. lang: 'fi-FI',
  2562. gender: 'female'
  2563. },
  2564. {
  2565. name: 'Khmer (Cambodia)',
  2566. voiceURI: 'moz-tts:android:km_KH',
  2567. lang: 'km-KH',
  2568. gender: 'female'
  2569. },
  2570. {
  2571. name: 'Bangla (India)',
  2572. voiceURI: 'moz-tts:android:bn_IN',
  2573. lang: 'bn-IN',
  2574. gender: 'male'
  2575. },
  2576. {
  2577. name: 'French (France)',
  2578. voiceURI: 'moz-tts:android:fr_FR',
  2579. lang: 'fr-FR',
  2580. gender: 'female'
  2581. },
  2582. {
  2583. name: 'Ukrainian (Ukraine)',
  2584. voiceURI: 'moz-tts:android:uk_UA',
  2585. lang: 'uk-UA',
  2586. gender: 'female'
  2587. },
  2588. {
  2589. name: 'English (Australia)',
  2590. voiceURI: 'moz-tts:android:en_AU',
  2591. lang: 'en-AU',
  2592. gender: 'female'
  2593. },
  2594. {
  2595. name: 'Dutch (Netherlands)',
  2596. voiceURI: 'moz-tts:android:nl_NL',
  2597. lang: 'nl-NL',
  2598. gender: 'female'
  2599. },
  2600. {
  2601. name: 'French (Canada)',
  2602. voiceURI: 'moz-tts:android:fr_CA',
  2603. lang: 'fr-CA',
  2604. gender: 'female'
  2605. },
  2606. {
  2607. name: 'Serbian',
  2608. voiceURI: 'moz-tts:android:sr',
  2609. lang: 'sr',
  2610. gender: 'female'
  2611. },
  2612. {
  2613. name: 'Portuguese (Brazil)',
  2614. voiceURI: 'moz-tts:android:pt_BR',
  2615. lang: 'pt-BR',
  2616. gender: 'female'
  2617. },
  2618. {
  2619. name: 'Malayalam (India)',
  2620. voiceURI: 'moz-tts:android:ml_IN',
  2621. lang: 'ml-IN',
  2622. gender: 'female'
  2623. },
  2624. {
  2625. name: 'Sinhala (Sri Lanka)',
  2626. voiceURI: 'moz-tts:android:si_LK',
  2627. lang: 'si-LK',
  2628. gender: 'female'
  2629. },
  2630. {
  2631. name: 'German (Germany)',
  2632. voiceURI: 'moz-tts:android:de_DE',
  2633. lang: 'de-DE',
  2634. gender: 'female'
  2635. },
  2636. {
  2637. name: 'Kurdish',
  2638. voiceURI: 'moz-tts:android:ku',
  2639. lang: 'ku',
  2640. deprecated: !0
  2641. },
  2642. {
  2643. name: 'Czech (Czechia)',
  2644. voiceURI: 'moz-tts:android:cs_CZ',
  2645. lang: 'cs-CZ',
  2646. gender: 'female'
  2647. },
  2648. {
  2649. name: 'Polish (Poland)',
  2650. voiceURI: 'moz-tts:android:pl_PL',
  2651. lang: 'pl-PL',
  2652. gender: 'female'
  2653. },
  2654. {
  2655. name: 'Slovak (Slovakia)',
  2656. voiceURI: 'moz-tts:android:sk_SK',
  2657. lang: 'sk-SK',
  2658. gender: 'female'
  2659. },
  2660. {
  2661. name: 'Filipino (Philippines)',
  2662. voiceURI: 'moz-tts:android:fil_PH',
  2663. lang: 'fil-PH',
  2664. gender: 'female'
  2665. },
  2666. {
  2667. name: 'Italian (Italy)',
  2668. voiceURI: 'moz-tts:android:it_IT',
  2669. lang: 'it-IT',
  2670. gender: 'female'
  2671. },
  2672. {
  2673. name: 'Nepali (Nepal)',
  2674. voiceURI: 'moz-tts:android:ne_NP',
  2675. lang: 'ne-NP',
  2676. gender: 'female'
  2677. },
  2678. {
  2679. name: 'Malay (Malaysia)',
  2680. voiceURI: 'moz-tts:android:ms_MY',
  2681. lang: 'ms-MY',
  2682. gender: 'female'
  2683. },
  2684. {
  2685. name: 'Croatian',
  2686. voiceURI: 'moz-tts:android:hr',
  2687. lang: 'hr',
  2688. deprecated: !0
  2689. },
  2690. {
  2691. name: 'English (Nigeria)',
  2692. voiceURI: 'moz-tts:android:en_NG',
  2693. lang: 'en-NG',
  2694. gender: 'female'
  2695. },
  2696. {
  2697. name: 'Chinese (China)',
  2698. voiceURI: 'moz-tts:android:zh_CN',
  2699. lang: 'zh-CN',
  2700. gender: 'female'
  2701. },
  2702. {
  2703. name: 'Spanish (Spain)',
  2704. voiceURI: 'moz-tts:android:es_ES',
  2705. lang: 'es-ES',
  2706. gender: 'female'
  2707. },
  2708. {
  2709. name: 'Welsh',
  2710. voiceURI: 'moz-tts:android:cy',
  2711. lang: 'cy',
  2712. deprecated: !0
  2713. },
  2714. {
  2715. name: 'Tamil (India)',
  2716. voiceURI: 'moz-tts:android:ta_IN',
  2717. lang: 'ta-IN',
  2718. gender: 'female'
  2719. },
  2720. {
  2721. name: 'Japanese (Japan)',
  2722. voiceURI: 'moz-tts:android:ja_JP',
  2723. lang: 'ja-JP',
  2724. gender: 'female'
  2725. },
  2726. {
  2727. name: 'Albanian',
  2728. voiceURI: 'moz-tts:android:sq',
  2729. lang: 'sq',
  2730. deprecated: !0
  2731. },
  2732. {
  2733. name: 'Cantonese (Hong Kong)',
  2734. voiceURI: 'moz-tts:android:yue_HK',
  2735. lang: 'yue-HK',
  2736. gender: 'female'
  2737. },
  2738. {
  2739. name: 'English (India)',
  2740. voiceURI: 'moz-tts:android:en_IN',
  2741. lang: 'en-IN',
  2742. gender: 'female'
  2743. },
  2744. {
  2745. name: 'Spanish (United States)',
  2746. voiceURI: 'moz-tts:android:es_US',
  2747. lang: 'es-US',
  2748. gender: 'female'
  2749. },
  2750. {
  2751. name: 'Javanese (Indonesia)',
  2752. voiceURI: 'moz-tts:android:jv_ID',
  2753. lang: 'jv-ID',
  2754. gender: 'female'
  2755. },
  2756. {
  2757. name: 'Latin',
  2758. voiceURI: 'moz-tts:android:la',
  2759. lang: 'la',
  2760. deprecated: !0
  2761. },
  2762. {
  2763. name: 'Indonesian (Indonesia)',
  2764. voiceURI: 'moz-tts:android:in_ID',
  2765. lang: 'in-ID',
  2766. gender: 'female'
  2767. },
  2768. {
  2769. name: 'Telugu (India)',
  2770. voiceURI: 'moz-tts:android:te_IN',
  2771. lang: 'te-IN',
  2772. gender: 'female'
  2773. },
  2774. {
  2775. name: 'Romanian (Romania)',
  2776. voiceURI: 'moz-tts:android:ro_RO',
  2777. lang: 'ro-RO',
  2778. gender: 'female'
  2779. },
  2780. {
  2781. name: 'Catalan',
  2782. voiceURI: 'moz-tts:android:ca',
  2783. lang: 'ca',
  2784. gender: 'female'
  2785. },
  2786. {
  2787. name: 'English (United Kingdom)',
  2788. voiceURI: 'moz-tts:android:en_GB',
  2789. lang: 'en-GB',
  2790. gender: 'female'
  2791. },
  2792. {
  2793. name: 'Rishi',
  2794. voiceURI: 'com.apple.ttsbundle.Rishi-compact',
  2795. lang: 'en-IN',
  2796. gender: 'male'
  2797. }
  2798. ];
  2799. a.iOS = /(iPad|iPhone|iPod)/g.test(navigator.userAgent);
  2800. a.iOS9 = /(iphone|ipod|ipad).* os 9_/.test(
  2801. navigator.userAgent.toLowerCase()
  2802. );
  2803. a.iOS10 = /(iphone|ipod|ipad).* os 10_/.test(
  2804. navigator.userAgent.toLowerCase()
  2805. );
  2806. a.iOS11 = /(iphone|ipod|ipad).* os 11_/.test(
  2807. navigator.userAgent.toLowerCase()
  2808. );
  2809. a.iOS11plus = /(iphone|ipod|ipad).* os 1[1-9]/.test(
  2810. navigator.userAgent.toLowerCase()
  2811. );
  2812. a.iOS9plus = /(iphone|ipod|ipad).* os 10_/.test(
  2813. navigator.userAgent.toLowerCase()
  2814. );
  2815. a.iOS12_0 = /(iphone|ipod|ipad).* os 12_0/.test(
  2816. navigator.userAgent.toLowerCase()
  2817. );
  2818. a.iOS12 = /(iphone|ipod|ipad).* os 12_/.test(
  2819. navigator.userAgent.toLowerCase()
  2820. );
  2821. a.is_chrome = -1 < navigator.userAgent.indexOf('Chrome');
  2822. a.is_safari = -1 < navigator.userAgent.indexOf('Safari');
  2823. a.is_chrome && a.is_safari && (a.is_safari = !1);
  2824. a.is_opera =
  2825. !!window.opera || 0 <= navigator.userAgent.indexOf(' OPR/');
  2826. a.is_android =
  2827. -1 < navigator.userAgent.toLowerCase().indexOf('android');
  2828. a.iOS_initialized = !1;
  2829. a.iOS9_initialized = !1;
  2830. a.iOS10_initialized = !1;
  2831. a.iOS11_initialized = !1;
  2832. a.cache_ios_voices = [
  2833. { name: 'he-IL', voiceURI: 'he-IL', lang: 'he-IL' },
  2834. { name: 'th-TH', voiceURI: 'th-TH', lang: 'th-TH' },
  2835. { name: 'pt-BR', voiceURI: 'pt-BR', lang: 'pt-BR' },
  2836. { name: 'sk-SK', voiceURI: 'sk-SK', lang: 'sk-SK' },
  2837. { name: 'fr-CA', voiceURI: 'fr-CA', lang: 'fr-CA' },
  2838. { name: 'ro-RO', voiceURI: 'ro-RO', lang: 'ro-RO' },
  2839. { name: 'no-NO', voiceURI: 'no-NO', lang: 'no-NO' },
  2840. { name: 'fi-FI', voiceURI: 'fi-FI', lang: 'fi-FI' },
  2841. { name: 'pl-PL', voiceURI: 'pl-PL', lang: 'pl-PL' },
  2842. { name: 'de-DE', voiceURI: 'de-DE', lang: 'de-DE' },
  2843. { name: 'nl-NL', voiceURI: 'nl-NL', lang: 'nl-NL' },
  2844. { name: 'id-ID', voiceURI: 'id-ID', lang: 'id-ID' },
  2845. { name: 'tr-TR', voiceURI: 'tr-TR', lang: 'tr-TR' },
  2846. { name: 'it-IT', voiceURI: 'it-IT', lang: 'it-IT' },
  2847. { name: 'pt-PT', voiceURI: 'pt-PT', lang: 'pt-PT' },
  2848. { name: 'fr-FR', voiceURI: 'fr-FR', lang: 'fr-FR' },
  2849. { name: 'ru-RU', voiceURI: 'ru-RU', lang: 'ru-RU' },
  2850. { name: 'es-MX', voiceURI: 'es-MX', lang: 'es-MX' },
  2851. { name: 'zh-HK', voiceURI: 'zh-HK', lang: 'zh-HK' },
  2852. { name: 'sv-SE', voiceURI: 'sv-SE', lang: 'sv-SE' },
  2853. { name: 'hu-HU', voiceURI: 'hu-HU', lang: 'hu-HU' },
  2854. { name: 'zh-TW', voiceURI: 'zh-TW', lang: 'zh-TW' },
  2855. { name: 'es-ES', voiceURI: 'es-ES', lang: 'es-ES' },
  2856. { name: 'zh-CN', voiceURI: 'zh-CN', lang: 'zh-CN' },
  2857. { name: 'nl-BE', voiceURI: 'nl-BE', lang: 'nl-BE' },
  2858. { name: 'en-GB', voiceURI: 'en-GB', lang: 'en-GB' },
  2859. { name: 'ar-SA', voiceURI: 'ar-SA', lang: 'ar-SA' },
  2860. { name: 'ko-KR', voiceURI: 'ko-KR', lang: 'ko-KR' },
  2861. { name: 'cs-CZ', voiceURI: 'cs-CZ', lang: 'cs-CZ' },
  2862. { name: 'en-ZA', voiceURI: 'en-ZA', lang: 'en-ZA' },
  2863. { name: 'en-AU', voiceURI: 'en-AU', lang: 'en-AU' },
  2864. { name: 'da-DK', voiceURI: 'da-DK', lang: 'da-DK' },
  2865. { name: 'en-US', voiceURI: 'en-US', lang: 'en-US' },
  2866. { name: 'en-IE', voiceURI: 'en-IE', lang: 'en-IE' },
  2867. { name: 'hi-IN', voiceURI: 'hi-IN', lang: 'hi-IN' },
  2868. { name: 'el-GR', voiceURI: 'el-GR', lang: 'el-GR' },
  2869. { name: 'ja-JP', voiceURI: 'ja-JP', lang: 'ja-JP' }
  2870. ];
  2871. a.cache_ios9_voices = [
  2872. {
  2873. name: 'Maged',
  2874. voiceURI: 'com.apple.ttsbundle.Maged-compact',
  2875. lang: 'ar-SA',
  2876. localService: !0,
  2877. default: !0
  2878. },
  2879. {
  2880. name: 'Zuzana',
  2881. voiceURI: 'com.apple.ttsbundle.Zuzana-compact',
  2882. lang: 'cs-CZ',
  2883. localService: !0,
  2884. default: !0
  2885. },
  2886. {
  2887. name: 'Sara',
  2888. voiceURI: 'com.apple.ttsbundle.Sara-compact',
  2889. lang: 'da-DK',
  2890. localService: !0,
  2891. default: !0
  2892. },
  2893. {
  2894. name: 'Anna',
  2895. voiceURI: 'com.apple.ttsbundle.Anna-compact',
  2896. lang: 'de-DE',
  2897. localService: !0,
  2898. default: !0
  2899. },
  2900. {
  2901. name: 'Melina',
  2902. voiceURI: 'com.apple.ttsbundle.Melina-compact',
  2903. lang: 'el-GR',
  2904. localService: !0,
  2905. default: !0
  2906. },
  2907. {
  2908. name: 'Karen',
  2909. voiceURI: 'com.apple.ttsbundle.Karen-compact',
  2910. lang: 'en-AU',
  2911. localService: !0,
  2912. default: !0
  2913. },
  2914. {
  2915. name: 'Daniel',
  2916. voiceURI: 'com.apple.ttsbundle.Daniel-compact',
  2917. lang: 'en-GB',
  2918. localService: !0,
  2919. default: !0
  2920. },
  2921. {
  2922. name: 'Moira',
  2923. voiceURI: 'com.apple.ttsbundle.Moira-compact',
  2924. lang: 'en-IE',
  2925. localService: !0,
  2926. default: !0
  2927. },
  2928. {
  2929. name: 'Samantha (Enhanced)',
  2930. voiceURI: 'com.apple.ttsbundle.Samantha-premium',
  2931. lang: 'en-US',
  2932. localService: !0,
  2933. default: !0
  2934. },
  2935. {
  2936. name: 'Samantha',
  2937. voiceURI: 'com.apple.ttsbundle.Samantha-compact',
  2938. lang: 'en-US',
  2939. localService: !0,
  2940. default: !0
  2941. },
  2942. {
  2943. name: 'Tessa',
  2944. voiceURI: 'com.apple.ttsbundle.Tessa-compact',
  2945. lang: 'en-ZA',
  2946. localService: !0,
  2947. default: !0
  2948. },
  2949. {
  2950. name: 'Monica',
  2951. voiceURI: 'com.apple.ttsbundle.Monica-compact',
  2952. lang: 'es-ES',
  2953. localService: !0,
  2954. default: !0
  2955. },
  2956. {
  2957. name: 'Paulina',
  2958. voiceURI: 'com.apple.ttsbundle.Paulina-compact',
  2959. lang: 'es-MX',
  2960. localService: !0,
  2961. default: !0
  2962. },
  2963. {
  2964. name: 'Satu',
  2965. voiceURI: 'com.apple.ttsbundle.Satu-compact',
  2966. lang: 'fi-FI',
  2967. localService: !0,
  2968. default: !0
  2969. },
  2970. {
  2971. name: 'Amelie',
  2972. voiceURI: 'com.apple.ttsbundle.Amelie-compact',
  2973. lang: 'fr-CA',
  2974. localService: !0,
  2975. default: !0
  2976. },
  2977. {
  2978. name: 'Thomas',
  2979. voiceURI: 'com.apple.ttsbundle.Thomas-compact',
  2980. lang: 'fr-FR',
  2981. localService: !0,
  2982. default: !0
  2983. },
  2984. {
  2985. name: 'Carmit',
  2986. voiceURI: 'com.apple.ttsbundle.Carmit-compact',
  2987. lang: 'he-IL',
  2988. localService: !0,
  2989. default: !0
  2990. },
  2991. {
  2992. name: 'Lekha',
  2993. voiceURI: 'com.apple.ttsbundle.Lekha-compact',
  2994. lang: 'hi-IN',
  2995. localService: !0,
  2996. default: !0
  2997. },
  2998. {
  2999. name: 'Mariska',
  3000. voiceURI: 'com.apple.ttsbundle.Mariska-compact',
  3001. lang: 'hu-HU',
  3002. localService: !0,
  3003. default: !0
  3004. },
  3005. {
  3006. name: 'Damayanti',
  3007. voiceURI: 'com.apple.ttsbundle.Damayanti-compact',
  3008. lang: 'id-ID',
  3009. localService: !0,
  3010. default: !0
  3011. },
  3012. {
  3013. name: 'Alice',
  3014. voiceURI: 'com.apple.ttsbundle.Alice-compact',
  3015. lang: 'it-IT',
  3016. localService: !0,
  3017. default: !0
  3018. },
  3019. {
  3020. name: 'Kyoko',
  3021. voiceURI: 'com.apple.ttsbundle.Kyoko-compact',
  3022. lang: 'ja-JP',
  3023. localService: !0,
  3024. default: !0
  3025. },
  3026. {
  3027. name: 'Yuna',
  3028. voiceURI: 'com.apple.ttsbundle.Yuna-compact',
  3029. lang: 'ko-KR',
  3030. localService: !0,
  3031. default: !0
  3032. },
  3033. {
  3034. name: 'Ellen',
  3035. voiceURI: 'com.apple.ttsbundle.Ellen-compact',
  3036. lang: 'nl-BE',
  3037. localService: !0,
  3038. default: !0
  3039. },
  3040. {
  3041. name: 'Xander',
  3042. voiceURI: 'com.apple.ttsbundle.Xander-compact',
  3043. lang: 'nl-NL',
  3044. localService: !0,
  3045. default: !0
  3046. },
  3047. {
  3048. name: 'Nora',
  3049. voiceURI: 'com.apple.ttsbundle.Nora-compact',
  3050. lang: 'no-NO',
  3051. localService: !0,
  3052. default: !0
  3053. },
  3054. {
  3055. name: 'Zosia',
  3056. voiceURI: 'com.apple.ttsbundle.Zosia-compact',
  3057. lang: 'pl-PL',
  3058. localService: !0,
  3059. default: !0
  3060. },
  3061. {
  3062. name: 'Luciana',
  3063. voiceURI: 'com.apple.ttsbundle.Luciana-compact',
  3064. lang: 'pt-BR',
  3065. localService: !0,
  3066. default: !0
  3067. },
  3068. {
  3069. name: 'Joana',
  3070. voiceURI: 'com.apple.ttsbundle.Joana-compact',
  3071. lang: 'pt-PT',
  3072. localService: !0,
  3073. default: !0
  3074. },
  3075. {
  3076. name: 'Ioana',
  3077. voiceURI: 'com.apple.ttsbundle.Ioana-compact',
  3078. lang: 'ro-RO',
  3079. localService: !0,
  3080. default: !0
  3081. },
  3082. {
  3083. name: 'Milena',
  3084. voiceURI: 'com.apple.ttsbundle.Milena-compact',
  3085. lang: 'ru-RU',
  3086. localService: !0,
  3087. default: !0
  3088. },
  3089. {
  3090. name: 'Laura',
  3091. voiceURI: 'com.apple.ttsbundle.Laura-compact',
  3092. lang: 'sk-SK',
  3093. localService: !0,
  3094. default: !0
  3095. },
  3096. {
  3097. name: 'Alva',
  3098. voiceURI: 'com.apple.ttsbundle.Alva-compact',
  3099. lang: 'sv-SE',
  3100. localService: !0,
  3101. default: !0
  3102. },
  3103. {
  3104. name: 'Kanya',
  3105. voiceURI: 'com.apple.ttsbundle.Kanya-compact',
  3106. lang: 'th-TH',
  3107. localService: !0,
  3108. default: !0
  3109. },
  3110. {
  3111. name: 'Yelda',
  3112. voiceURI: 'com.apple.ttsbundle.Yelda-compact',
  3113. lang: 'tr-TR',
  3114. localService: !0,
  3115. default: !0
  3116. },
  3117. {
  3118. name: 'Ting-Ting',
  3119. voiceURI: 'com.apple.ttsbundle.Ting-Ting-compact',
  3120. lang: 'zh-CN',
  3121. localService: !0,
  3122. default: !0
  3123. },
  3124. {
  3125. name: 'Sin-Ji',
  3126. voiceURI: 'com.apple.ttsbundle.Sin-Ji-compact',
  3127. lang: 'zh-HK',
  3128. localService: !0,
  3129. default: !0
  3130. },
  3131. {
  3132. name: 'Mei-Jia',
  3133. voiceURI: 'com.apple.ttsbundle.Mei-Jia-compact',
  3134. lang: 'zh-TW',
  3135. localService: !0,
  3136. default: !0
  3137. }
  3138. ];
  3139. a.cache_ios10_voices = [
  3140. {
  3141. name: 'Maged',
  3142. voiceURI: 'com.apple.ttsbundle.Maged-compact',
  3143. lang: 'ar-SA'
  3144. },
  3145. {
  3146. name: 'Zuzana',
  3147. voiceURI: 'com.apple.ttsbundle.Zuzana-compact',
  3148. lang: 'cs-CZ'
  3149. },
  3150. {
  3151. name: 'Sara',
  3152. voiceURI: 'com.apple.ttsbundle.Sara-compact',
  3153. lang: 'da-DK'
  3154. },
  3155. {
  3156. name: 'Anna',
  3157. voiceURI: 'com.apple.ttsbundle.Anna-compact',
  3158. lang: 'de-DE'
  3159. },
  3160. {
  3161. name: 'Helena',
  3162. voiceURI: 'com.apple.ttsbundle.siri_female_de-DE_compact',
  3163. lang: 'de-DE'
  3164. },
  3165. {
  3166. name: 'Martin',
  3167. voiceURI: 'com.apple.ttsbundle.siri_male_de-DE_compact',
  3168. lang: 'de-DE'
  3169. },
  3170. {
  3171. name: 'Nikos (Enhanced)',
  3172. voiceURI: 'com.apple.ttsbundle.Nikos-premium',
  3173. lang: 'el-GR'
  3174. },
  3175. {
  3176. name: 'Melina',
  3177. voiceURI: 'com.apple.ttsbundle.Melina-compact',
  3178. lang: 'el-GR'
  3179. },
  3180. {
  3181. name: 'Nikos',
  3182. voiceURI: 'com.apple.ttsbundle.Nikos-compact',
  3183. lang: 'el-GR'
  3184. },
  3185. {
  3186. name: 'Catherine',
  3187. voiceURI: 'com.apple.ttsbundle.siri_female_en-AU_compact',
  3188. lang: 'en-AU'
  3189. },
  3190. {
  3191. name: 'Gordon',
  3192. voiceURI: 'com.apple.ttsbundle.siri_male_en-AU_compact',
  3193. lang: 'en-AU'
  3194. },
  3195. {
  3196. name: 'Karen',
  3197. voiceURI: 'com.apple.ttsbundle.Karen-compact',
  3198. lang: 'en-AU'
  3199. },
  3200. {
  3201. name: 'Daniel (Enhanced)',
  3202. voiceURI: 'com.apple.ttsbundle.Daniel-premium',
  3203. lang: 'en-GB'
  3204. },
  3205. {
  3206. name: 'Arthur',
  3207. voiceURI: 'com.apple.ttsbundle.siri_male_en-GB_compact',
  3208. lang: 'en-GB'
  3209. },
  3210. {
  3211. name: 'Daniel',
  3212. voiceURI: 'com.apple.ttsbundle.Daniel-compact',
  3213. lang: 'en-GB'
  3214. },
  3215. {
  3216. name: 'Martha',
  3217. voiceURI: 'com.apple.ttsbundle.siri_female_en-GB_compact',
  3218. lang: 'en-GB'
  3219. },
  3220. {
  3221. name: 'Moira',
  3222. voiceURI: 'com.apple.ttsbundle.Moira-compact',
  3223. lang: 'en-IE'
  3224. },
  3225. {
  3226. name: 'Nicky (Enhanced)',
  3227. voiceURI: 'com.apple.ttsbundle.siri_female_en-US_premium',
  3228. lang: 'en-US'
  3229. },
  3230. {
  3231. name: 'Samantha (Enhanced)',
  3232. voiceURI: 'com.apple.ttsbundle.Samantha-premium',
  3233. lang: 'en-US'
  3234. },
  3235. {
  3236. name: 'Aaron',
  3237. voiceURI: 'com.apple.ttsbundle.siri_male_en-US_compact',
  3238. lang: 'en-US'
  3239. },
  3240. {
  3241. name: 'Fred',
  3242. voiceURI: 'com.apple.speech.synthesis.voice.Fred',
  3243. lang: 'en-US'
  3244. },
  3245. {
  3246. name: 'Nicky',
  3247. voiceURI: 'com.apple.ttsbundle.siri_female_en-US_compact',
  3248. lang: 'en-US'
  3249. },
  3250. {
  3251. name: 'Samantha',
  3252. voiceURI: 'com.apple.ttsbundle.Samantha-compact',
  3253. lang: 'en-US'
  3254. },
  3255. {
  3256. name: 'Tessa',
  3257. voiceURI: 'com.apple.ttsbundle.Tessa-compact',
  3258. lang: 'en-ZA'
  3259. },
  3260. {
  3261. name: 'Monica',
  3262. voiceURI: 'com.apple.ttsbundle.Monica-compact',
  3263. lang: 'es-ES'
  3264. },
  3265. {
  3266. name: 'Paulina',
  3267. voiceURI: 'com.apple.ttsbundle.Paulina-compact',
  3268. lang: 'es-MX'
  3269. },
  3270. {
  3271. name: 'Satu',
  3272. voiceURI: 'com.apple.ttsbundle.Satu-compact',
  3273. lang: 'fi-FI'
  3274. },
  3275. {
  3276. name: 'Amelie',
  3277. voiceURI: 'com.apple.ttsbundle.Amelie-compact',
  3278. lang: 'fr-CA'
  3279. },
  3280. {
  3281. name: 'Daniel',
  3282. voiceURI: 'com.apple.ttsbundle.siri_male_fr-FR_compact',
  3283. lang: 'fr-FR'
  3284. },
  3285. {
  3286. name: 'Marie',
  3287. voiceURI: 'com.apple.ttsbundle.siri_female_fr-FR_compact',
  3288. lang: 'fr-FR'
  3289. },
  3290. {
  3291. name: 'Thomas',
  3292. voiceURI: 'com.apple.ttsbundle.Thomas-compact',
  3293. lang: 'fr-FR'
  3294. },
  3295. {
  3296. name: 'Carmit',
  3297. voiceURI: 'com.apple.ttsbundle.Carmit-compact',
  3298. lang: 'he-IL'
  3299. },
  3300. {
  3301. name: 'Lekha',
  3302. voiceURI: 'com.apple.ttsbundle.Lekha-compact',
  3303. lang: 'hi-IN'
  3304. },
  3305. {
  3306. name: 'Mariska',
  3307. voiceURI: 'com.apple.ttsbundle.Mariska-compact',
  3308. lang: 'hu-HU'
  3309. },
  3310. {
  3311. name: 'Damayanti',
  3312. voiceURI: 'com.apple.ttsbundle.Damayanti-compact',
  3313. lang: 'id-ID'
  3314. },
  3315. {
  3316. name: 'Alice',
  3317. voiceURI: 'com.apple.ttsbundle.Alice-compact',
  3318. lang: 'it-IT'
  3319. },
  3320. {
  3321. name: 'Hattori',
  3322. voiceURI: 'com.apple.ttsbundle.siri_male_ja-JP_compact',
  3323. lang: 'ja-JP'
  3324. },
  3325. {
  3326. name: 'Kyoko',
  3327. voiceURI: 'com.apple.ttsbundle.Kyoko-compact',
  3328. lang: 'ja-JP'
  3329. },
  3330. {
  3331. name: 'O-ren',
  3332. voiceURI: 'com.apple.ttsbundle.siri_female_ja-JP_compact',
  3333. lang: 'ja-JP'
  3334. },
  3335. {
  3336. name: 'Yuna',
  3337. voiceURI: 'com.apple.ttsbundle.Yuna-compact',
  3338. lang: 'ko-KR'
  3339. },
  3340. {
  3341. name: 'Ellen',
  3342. voiceURI: 'com.apple.ttsbundle.Ellen-compact',
  3343. lang: 'nl-BE'
  3344. },
  3345. {
  3346. name: 'Xander',
  3347. voiceURI: 'com.apple.ttsbundle.Xander-compact',
  3348. lang: 'nl-NL'
  3349. },
  3350. {
  3351. name: 'Nora',
  3352. voiceURI: 'com.apple.ttsbundle.Nora-compact',
  3353. lang: 'no-NO'
  3354. },
  3355. {
  3356. name: 'Zosia',
  3357. voiceURI: 'com.apple.ttsbundle.Zosia-compact',
  3358. lang: 'pl-PL'
  3359. },
  3360. {
  3361. name: 'Luciana',
  3362. voiceURI: 'com.apple.ttsbundle.Luciana-compact',
  3363. lang: 'pt-BR'
  3364. },
  3365. {
  3366. name: 'Joana',
  3367. voiceURI: 'com.apple.ttsbundle.Joana-compact',
  3368. lang: 'pt-PT'
  3369. },
  3370. {
  3371. name: 'Ioana',
  3372. voiceURI: 'com.apple.ttsbundle.Ioana-compact',
  3373. lang: 'ro-RO'
  3374. },
  3375. {
  3376. name: 'Milena',
  3377. voiceURI: 'com.apple.ttsbundle.Milena-compact',
  3378. lang: 'ru-RU'
  3379. },
  3380. {
  3381. name: 'Laura',
  3382. voiceURI: 'com.apple.ttsbundle.Laura-compact',
  3383. lang: 'sk-SK'
  3384. },
  3385. {
  3386. name: 'Alva',
  3387. voiceURI: 'com.apple.ttsbundle.Alva-compact',
  3388. lang: 'sv-SE'
  3389. },
  3390. {
  3391. name: 'Kanya',
  3392. voiceURI: 'com.apple.ttsbundle.Kanya-compact',
  3393. lang: 'th-TH'
  3394. },
  3395. {
  3396. name: 'Yelda',
  3397. voiceURI: 'com.apple.ttsbundle.Yelda-compact',
  3398. lang: 'tr-TR'
  3399. },
  3400. {
  3401. name: 'Li-mu',
  3402. voiceURI: 'com.apple.ttsbundle.siri_male_zh-CN_compact',
  3403. lang: 'zh-CN'
  3404. },
  3405. {
  3406. name: 'Ting-Ting',
  3407. voiceURI: 'com.apple.ttsbundle.Ting-Ting-compact',
  3408. lang: 'zh-CN'
  3409. },
  3410. {
  3411. name: 'Yu-shu',
  3412. voiceURI: 'com.apple.ttsbundle.siri_female_zh-CN_compact',
  3413. lang: 'zh-CN'
  3414. },
  3415. {
  3416. name: 'Sin-Ji',
  3417. voiceURI: 'com.apple.ttsbundle.Sin-Ji-compact',
  3418. lang: 'zh-HK'
  3419. },
  3420. {
  3421. name: 'Mei-Jia',
  3422. voiceURI: 'com.apple.ttsbundle.Mei-Jia-compact',
  3423. lang: 'zh-TW'
  3424. }
  3425. ];
  3426. a.cache_ios11_voices = [
  3427. {
  3428. name: 'Maged',
  3429. voiceURI: 'com.apple.ttsbundle.Maged-compact',
  3430. lang: 'ar-SA'
  3431. },
  3432. {
  3433. name: 'Zuzana',
  3434. voiceURI: 'com.apple.ttsbundle.Zuzana-compact',
  3435. lang: 'cs-CZ'
  3436. },
  3437. {
  3438. name: 'Sara',
  3439. voiceURI: 'com.apple.ttsbundle.Sara-compact',
  3440. lang: 'da-DK'
  3441. },
  3442. {
  3443. name: 'Anna',
  3444. voiceURI: 'com.apple.ttsbundle.Anna-compact',
  3445. lang: 'de-DE'
  3446. },
  3447. {
  3448. name: 'Helena',
  3449. voiceURI: 'com.apple.ttsbundle.siri_female_de-DE_compact',
  3450. lang: 'de-DE'
  3451. },
  3452. {
  3453. name: 'Martin',
  3454. voiceURI: 'com.apple.ttsbundle.siri_male_de-DE_compact',
  3455. lang: 'de-DE'
  3456. },
  3457. {
  3458. name: 'Melina',
  3459. voiceURI: 'com.apple.ttsbundle.Melina-compact',
  3460. lang: 'el-GR'
  3461. },
  3462. {
  3463. name: 'Catherine',
  3464. voiceURI: 'com.apple.ttsbundle.siri_female_en-AU_compact',
  3465. lang: 'en-AU'
  3466. },
  3467. {
  3468. name: 'Gordon',
  3469. voiceURI: 'com.apple.ttsbundle.siri_male_en-AU_compact',
  3470. lang: 'en-AU'
  3471. },
  3472. {
  3473. name: 'Karen',
  3474. voiceURI: 'com.apple.ttsbundle.Karen-compact',
  3475. lang: 'en-AU'
  3476. },
  3477. {
  3478. name: 'Arthur',
  3479. voiceURI: 'com.apple.ttsbundle.siri_male_en-GB_compact',
  3480. lang: 'en-GB'
  3481. },
  3482. {
  3483. name: 'Daniel',
  3484. voiceURI: 'com.apple.ttsbundle.Daniel-compact',
  3485. lang: 'en-GB'
  3486. },
  3487. {
  3488. name: 'Martha',
  3489. voiceURI: 'com.apple.ttsbundle.siri_female_en-GB_compact',
  3490. lang: 'en-GB'
  3491. },
  3492. {
  3493. name: 'Moira',
  3494. voiceURI: 'com.apple.ttsbundle.Moira-compact',
  3495. lang: 'en-IE'
  3496. },
  3497. {
  3498. name: 'Aaron',
  3499. voiceURI: 'com.apple.ttsbundle.siri_male_en-US_compact',
  3500. lang: 'en-US'
  3501. },
  3502. {
  3503. name: 'Fred',
  3504. voiceURI: 'com.apple.speech.synthesis.voice.Fred',
  3505. lang: 'en-US'
  3506. },
  3507. {
  3508. name: 'Nicky',
  3509. voiceURI: 'com.apple.ttsbundle.siri_female_en-US_compact',
  3510. lang: 'en-US'
  3511. },
  3512. {
  3513. name: 'Samantha',
  3514. voiceURI: 'com.apple.ttsbundle.Samantha-compact',
  3515. lang: 'en-US'
  3516. },
  3517. {
  3518. name: 'Tessa',
  3519. voiceURI: 'com.apple.ttsbundle.Tessa-compact',
  3520. lang: 'en-ZA'
  3521. },
  3522. {
  3523. name: 'Monica',
  3524. voiceURI: 'com.apple.ttsbundle.Monica-compact',
  3525. lang: 'es-ES'
  3526. },
  3527. {
  3528. name: 'Paulina',
  3529. voiceURI: 'com.apple.ttsbundle.Paulina-compact',
  3530. lang: 'es-MX'
  3531. },
  3532. {
  3533. name: 'Satu',
  3534. voiceURI: 'com.apple.ttsbundle.Satu-compact',
  3535. lang: 'fi-FI'
  3536. },
  3537. {
  3538. name: 'Amelie',
  3539. voiceURI: 'com.apple.ttsbundle.Amelie-compact',
  3540. lang: 'fr-CA'
  3541. },
  3542. {
  3543. name: 'Daniel',
  3544. voiceURI: 'com.apple.ttsbundle.siri_male_fr-FR_compact',
  3545. lang: 'fr-FR'
  3546. },
  3547. {
  3548. name: 'Marie',
  3549. voiceURI: 'com.apple.ttsbundle.siri_female_fr-FR_compact',
  3550. lang: 'fr-FR'
  3551. },
  3552. {
  3553. name: 'Thomas',
  3554. voiceURI: 'com.apple.ttsbundle.Thomas-compact',
  3555. lang: 'fr-FR'
  3556. },
  3557. {
  3558. name: 'Carmit',
  3559. voiceURI: 'com.apple.ttsbundle.Carmit-compact',
  3560. lang: 'he-IL'
  3561. },
  3562. {
  3563. name: 'Lekha',
  3564. voiceURI: 'com.apple.ttsbundle.Lekha-compact',
  3565. lang: 'hi-IN'
  3566. },
  3567. {
  3568. name: 'Mariska',
  3569. voiceURI: 'com.apple.ttsbundle.Mariska-compact',
  3570. lang: 'hu-HU'
  3571. },
  3572. {
  3573. name: 'Damayanti',
  3574. voiceURI: 'com.apple.ttsbundle.Damayanti-compact',
  3575. lang: 'id-ID'
  3576. },
  3577. {
  3578. name: 'Alice',
  3579. voiceURI: 'com.apple.ttsbundle.Alice-compact',
  3580. lang: 'it-IT'
  3581. },
  3582. {
  3583. name: 'Hattori',
  3584. voiceURI: 'com.apple.ttsbundle.siri_male_ja-JP_compact',
  3585. lang: 'ja-JP'
  3586. },
  3587. {
  3588. name: 'Kyoko',
  3589. voiceURI: 'com.apple.ttsbundle.Kyoko-compact',
  3590. lang: 'ja-JP'
  3591. },
  3592. {
  3593. name: 'O-ren',
  3594. voiceURI: 'com.apple.ttsbundle.siri_female_ja-JP_compact',
  3595. lang: 'ja-JP'
  3596. },
  3597. {
  3598. name: 'Yuna',
  3599. voiceURI: 'com.apple.ttsbundle.Yuna-compact',
  3600. lang: 'ko-KR'
  3601. },
  3602. {
  3603. name: 'Ellen',
  3604. voiceURI: 'com.apple.ttsbundle.Ellen-compact',
  3605. lang: 'nl-BE'
  3606. },
  3607. {
  3608. name: 'Xander',
  3609. voiceURI: 'com.apple.ttsbundle.Xander-compact',
  3610. lang: 'nl-NL'
  3611. },
  3612. {
  3613. name: 'Nora',
  3614. voiceURI: 'com.apple.ttsbundle.Nora-compact',
  3615. lang: 'no-NO'
  3616. },
  3617. {
  3618. name: 'Zosia',
  3619. voiceURI: 'com.apple.ttsbundle.Zosia-compact',
  3620. lang: 'pl-PL'
  3621. },
  3622. {
  3623. name: 'Luciana',
  3624. voiceURI: 'com.apple.ttsbundle.Luciana-compact',
  3625. lang: 'pt-BR'
  3626. },
  3627. {
  3628. name: 'Joana',
  3629. voiceURI: 'com.apple.ttsbundle.Joana-compact',
  3630. lang: 'pt-PT'
  3631. },
  3632. {
  3633. name: 'Ioana',
  3634. voiceURI: 'com.apple.ttsbundle.Ioana-compact',
  3635. lang: 'ro-RO'
  3636. },
  3637. {
  3638. name: 'Milena',
  3639. voiceURI: 'com.apple.ttsbundle.Milena-compact',
  3640. lang: 'ru-RU'
  3641. },
  3642. {
  3643. name: 'Laura',
  3644. voiceURI: 'com.apple.ttsbundle.Laura-compact',
  3645. lang: 'sk-SK'
  3646. },
  3647. {
  3648. name: 'Alva',
  3649. voiceURI: 'com.apple.ttsbundle.Alva-compact',
  3650. lang: 'sv-SE'
  3651. },
  3652. {
  3653. name: 'Kanya',
  3654. voiceURI: 'com.apple.ttsbundle.Kanya-compact',
  3655. lang: 'th-TH'
  3656. },
  3657. {
  3658. name: 'Yelda',
  3659. voiceURI: 'com.apple.ttsbundle.Yelda-compact',
  3660. lang: 'tr-TR'
  3661. },
  3662. {
  3663. name: 'Li-mu',
  3664. voiceURI: 'com.apple.ttsbundle.siri_male_zh-CN_compact',
  3665. lang: 'zh-CN'
  3666. },
  3667. {
  3668. name: 'Ting-Ting',
  3669. voiceURI: 'com.apple.ttsbundle.Ting-Ting-compact',
  3670. lang: 'zh-CN'
  3671. },
  3672. {
  3673. name: 'Yu-shu',
  3674. voiceURI: 'com.apple.ttsbundle.siri_female_zh-CN_compact',
  3675. lang: 'zh-CN'
  3676. },
  3677. {
  3678. name: 'Sin-Ji',
  3679. voiceURI: 'com.apple.ttsbundle.Sin-Ji-compact',
  3680. lang: 'zh-HK'
  3681. },
  3682. {
  3683. name: 'Mei-Jia',
  3684. voiceURI: 'com.apple.ttsbundle.Mei-Jia-compact',
  3685. lang: 'zh-TW'
  3686. }
  3687. ];
  3688. a.systemvoices = null;
  3689. a.CHARACTER_LIMIT = 100;
  3690. a.VOICESUPPORT_ATTEMPTLIMIT = 5;
  3691. a.voicesupport_attempts = 0;
  3692. a.fallbackMode = !1;
  3693. a.WORDS_PER_MINUTE = 130;
  3694. a.fallback_audio = null;
  3695. a.fallback_playbackrate = 1;
  3696. a.def_fallback_playbackrate = a.fallback_playbackrate;
  3697. a.fallback_audiopool = [];
  3698. a.msgparameters = null;
  3699. a.timeoutId = null;
  3700. a.OnLoad_callbacks = [];
  3701. a.useTimer = !1;
  3702. a.utterances = [];
  3703. a.userInteractionEvents = [
  3704. 'mousedown',
  3705. 'mouseup',
  3706. 'mousewheel',
  3707. 'keydown'
  3708. ];
  3709. a.fallbackBufferLength = 5;
  3710. a.iOS && (a.fallbackBufferLength = 2);
  3711. var q = null,
  3712. z = 1;
  3713. a.tstCompiled = function () {
  3714. return !/param/.test(function (b) {});
  3715. };
  3716. a.fallbackServicePath =
  3717. 'undefined' != typeof rvApiEndpoint && rvApiEndpoint
  3718. ? rvApiEndpoint
  3719. : 'https://code.responsivevoice.org/' +
  3720. (a.tstCompiled() ? '' : 'develop/') +
  3721. 'getvoice.php';
  3722. a.default_rv = a.responsivevoices[0];
  3723. a.debug = !1;
  3724. a.rvsMapped = !1;
  3725. a.forcedFallbackMode = !1;
  3726. a.speechAllowedByUser = !0;
  3727. a.enableEstimationTimeout = !0;
  3728. a.analytics = { characterCount: 0 };
  3729. a.log = function (b) {
  3730. a.debug && console.log(b);
  3731. };
  3732. a.init = function () {
  3733. a.is_wordpress = m();
  3734. a.is_bundle = l();
  3735. 'undefined' == typeof rvApiKey &&
  3736. console.error(
  3737. 'ResponsiveVoice missing API key. See https://responsivevoice.org/register?devtools=' +
  3738. encodeURIComponent(window.location.href)
  3739. );
  3740. if (a.is_android || a.iOS || a.is_safari) a.useTimer = !0;
  3741. a.is_opera || 'undefined' === typeof speechSynthesis
  3742. ? (console.log('RV: Voice synthesis not supported'),
  3743. a.enableFallbackMode())
  3744. : setTimeout(function () {
  3745. var b = setInterval(function () {
  3746. var c = window.speechSynthesis.getVoices();
  3747. 0 != c.length ||
  3748. (null != a.systemvoices && 0 != a.systemvoices.length)
  3749. ? (console.log('RV: Voice support ready'),
  3750. a.systemVoicesReady(c),
  3751. clearInterval(b))
  3752. : (console.log('Voice support NOT ready'),
  3753. a.voicesupport_attempts++,
  3754. a.voicesupport_attempts > a.VOICESUPPORT_ATTEMPTLIMIT &&
  3755. (clearInterval(b),
  3756. null != window.speechSynthesis
  3757. ? a.iOS
  3758. ? (a.iOS11plus
  3759. ? a.systemVoicesReady(a.cache_ios11_voices)
  3760. : a.iOS10
  3761. ? a.systemVoicesReady(a.cache_ios10_voices)
  3762. : a.iOS9
  3763. ? a.systemVoicesReady(a.cache_ios9_voices)
  3764. : a.systemVoicesReady(a.cache_ios_voices),
  3765. console.log('RV: Voice support ready (cached)'))
  3766. : (console.log(
  3767. 'RV: speechSynthesis present but no system voices found'
  3768. ),
  3769. a.enableFallbackMode())
  3770. : a.enableFallbackMode()));
  3771. }, 100);
  3772. }, 100);
  3773. (a.iOS || a.is_android || a.is_safari) && a.enableWindowClickHook();
  3774. a.Dispatch('OnLoad');
  3775. };
  3776. a.systemVoicesReady = function (b) {
  3777. a.systemvoices = b;
  3778. a.mapRVs();
  3779. null != a.OnVoiceReady && a.OnVoiceReady.call();
  3780. a.Dispatch('OnReady');
  3781. window.hasOwnProperty('dispatchEvent') &&
  3782. window.dispatchEvent(new Event('ResponsiveVoice_OnReady'));
  3783. };
  3784. a.enableFallbackMode = function () {
  3785. a.fallbackMode = !0;
  3786. a.forcedFallbackMode = !0;
  3787. console.log('RV: Enabling fallback mode');
  3788. a.mapRVs();
  3789. null != a.OnVoiceReady && a.OnVoiceReady.call();
  3790. a.Dispatch('OnReady');
  3791. window.hasOwnProperty('dispatchEvent') &&
  3792. window.dispatchEvent(new Event('ResponsiveVoice_OnReady'));
  3793. a.Dispatch('OnServiceSwitched');
  3794. };
  3795. a.getVoices = function () {
  3796. for (var b = [], c = 0; c < a.responsivevoices.length; c++) {
  3797. var d = a.responsivevoices[c];
  3798. !0 !== d.deprecated && b.push({ name: d.name });
  3799. }
  3800. return b;
  3801. };
  3802. a.speak = function (b, c, d) {
  3803. if (null == b) a.log('No text provided');
  3804. else if (
  3805. (a.initializePermissionsTimeout &&
  3806. clearTimeout(a.initializePermissionsTimeout),
  3807. a.rvsMapped)
  3808. ) {
  3809. var e = function (B) {
  3810. -1 != B.search(/[\u3002]/gm)
  3811. ? B.split(/[\u3002]/).filter(function (F) {
  3812. F && r.push(F);
  3813. })
  3814. : r.push(B);
  3815. },
  3816. n = null;
  3817. if (a.isPlaying())
  3818. a.log('Cancelling previous speech'),
  3819. a.cancel(),
  3820. setTimeout(function () {
  3821. a.speak(b, c, d);
  3822. }, 50);
  3823. else {
  3824. if (null == c) {
  3825. var g = a.default_rv;
  3826. a.setDefaultVoice(g.name);
  3827. } else g = a.getResponsiveVoice(c);
  3828. if (g) {
  3829. !0 === g.deprecated &&
  3830. console.warn(
  3831. 'ResponsiveVoice: Voice "' +
  3832. g.name +
  3833. '" is deprecated; it might not always be the right gender, and could be removed in future releases'
  3834. );
  3835. var h = {};
  3836. if (null != g.mappedProfile) h = g.mappedProfile;
  3837. else if (
  3838. ((h.systemvoice = a.getMatchedVoice(g)),
  3839. (h.collectionvoice = {}),
  3840. null == h.systemvoice)
  3841. ) {
  3842. console.log('RV: ERROR: No voice found for: ' + c);
  3843. return;
  3844. }
  3845. b = k(b, h);
  3846. b = b.replace(/["`]/gm, "'");
  3847. a.msgparameters = d || {};
  3848. a.msgtext = b;
  3849. a.msgvoicename = c;
  3850. a.onstartFired = !1;
  3851. var r = [];
  3852. if (b.length > a.CHARACTER_LIMIT) {
  3853. for (var p = (b = f(b)); p.length > a.CHARACTER_LIMIT; ) {
  3854. g = p.search(
  3855. /([\u3002:!\u00a1?\u00bf;\(\)\[\]\u2014\u00ab\u00bb\n]+|\.[^0-9]+)/
  3856. );
  3857. var u = '';
  3858. if (-1 == g || g >= a.CHARACTER_LIMIT)
  3859. g = p.search(/,[^0-9]+/);
  3860. if (
  3861. (-1 == g || g >= a.CHARACTER_LIMIT) &&
  3862. -1 != p.search(' ')
  3863. ) {
  3864. var A = p.split(' ');
  3865. for (g = 0; g < A.length; g++) {
  3866. if (u.length + A[g].length + 1 > a.CHARACTER_LIMIT) {
  3867. A[g].length >= a.CHARACTER_LIMIT &&
  3868. (u += A[g].substr(
  3869. 0,
  3870. a.CHARACTER_LIMIT - u.length - 1
  3871. ));
  3872. break;
  3873. }
  3874. u += (0 != g ? ' ' : '') + A[g];
  3875. }
  3876. } else {
  3877. if (-1 == g || g >= a.CHARACTER_LIMIT)
  3878. g = a.CHARACTER_LIMIT - 1;
  3879. u = p.substr(0, g + 1);
  3880. }
  3881. p = p.substr(u.length, p.length - u.length);
  3882. r.push(u);
  3883. }
  3884. 0 < p.length && e(p);
  3885. } else e(b);
  3886. console.log(r);
  3887. a.multipartText = r;
  3888. if (a.checkSpeechAllowed()) {
  3889. a.fallbackMode &&
  3890. 0 < a.fallback_audiopool.length &&
  3891. a.clearFallbackPool();
  3892. a.msgprofile = h;
  3893. a.log('Voice picked: ' + a.msgprofile.systemvoice.name);
  3894. a.utterances = [];
  3895. a.fallbackChunks = [];
  3896. for (g = 0; g < r.length; g++)
  3897. if (
  3898. !a.fallbackMode &&
  3899. a.getServiceEnabled(a.services.NATIVE_TTS)
  3900. )
  3901. a.log('Using SpeechSynthesis'),
  3902. (n = a.services.NATIVE_TTS),
  3903. (e = new SpeechSynthesisUtterance()),
  3904. (e.voiceURI = h.systemvoice.voiceURI),
  3905. (e.volume = a.selectBest([
  3906. h.collectionvoice.volume,
  3907. h.systemvoice.volume,
  3908. 1
  3909. ])),
  3910. (e.rate = a.selectBest([
  3911. a.iOS9plus ? 1 : null,
  3912. h.collectionvoice.rate,
  3913. h.systemvoice.rate,
  3914. z
  3915. ])),
  3916. (e.pitch = a.selectBest([
  3917. h.collectionvoice.pitch,
  3918. h.systemvoice.pitch,
  3919. 1
  3920. ])),
  3921. (e.text = r[g]),
  3922. (e.lang = a.selectBest([
  3923. h.collectionvoice.lang,
  3924. h.systemvoice.lang
  3925. ])),
  3926. (e.rvIndex = g),
  3927. (e.rvTotal = r.length),
  3928. 0 == g && (e.onstart = a.speech_onstart),
  3929. (a.msgparameters.onendcalled = !1),
  3930. null != d
  3931. ? ((e.voice =
  3932. 'undefined' !== typeof d.voice
  3933. ? d.voice
  3934. : h.systemvoice),
  3935. g < r.length - 1 && 1 < r.length
  3936. ? ((e.onend = a.onPartEnd),
  3937. e.hasOwnProperty('addEventListener') &&
  3938. e.addEventListener('end', a.onPartEnd))
  3939. : ((e.onend = a.speech_onend),
  3940. e.hasOwnProperty('addEventListener') &&
  3941. e.addEventListener('end', a.speech_onend)),
  3942. (e.onerror =
  3943. d.onerror ||
  3944. function (B) {
  3945. a.log('RV: Unknown Error');
  3946. a.log(B);
  3947. 'not-allowed' === B.error &&
  3948. ((a.speechSynthesisNotAllowedError = !0),
  3949. a.speak(b, c, d));
  3950. }),
  3951. (d.rate = a.validateParameters(d, 'rate')),
  3952. (d.pitch = a.validateParameters(d, 'pitch')),
  3953. (d.volume = a.validateParameters(d, 'volume')),
  3954. (e.onpause = d.onpause),
  3955. (e.onresume = d.onresume),
  3956. (e.onmark = d.onmark),
  3957. (e.onboundary = d.onboundary || a.onboundary),
  3958. (e.pitch = null != d.pitch ? d.pitch : e.pitch),
  3959. (e.rate = a.iOS
  3960. ? (null != d.rate ? d.rate * d.rate : 1) * e.rate
  3961. : (null != d.rate ? d.rate : z) * e.rate),
  3962. (e.volume = null != d.volume ? d.volume : e.volume))
  3963. : (a.log('No Params received for current Utterance'),
  3964. (e.voice = h.systemvoice),
  3965. (d = d || {}),
  3966. (e.onend = a.speech_onend),
  3967. (e.onboundary = a.onboundary),
  3968. (e.onerror = function (B) {
  3969. a.log('RV: Unknown Error');
  3970. a.log(B);
  3971. 'not-allowed' === B.error &&
  3972. ((a.speechSynthesisNotAllowedError = !0),
  3973. a.speak(b, c, d));
  3974. })),
  3975. a.utterances.push(e),
  3976. 0 == g && (a.currentMsg = e),
  3977. console.log(e),
  3978. a.tts_speak(e);
  3979. else if (
  3980. a.fallbackMode &&
  3981. a.getServiceEnabled(a.services.FALLBACK_AUDIO)
  3982. ) {
  3983. n = a.services.FALLBACK_AUDIO;
  3984. a.fallback_playbackrate = a.def_fallback_playbackrate;
  3985. e = a.selectBest([
  3986. h.collectionvoice.pitch,
  3987. h.systemvoice.pitch,
  3988. 1
  3989. ]);
  3990. p = a.selectBest([
  3991. a.iOS9plus ? 1 : null,
  3992. h.collectionvoice.rate,
  3993. h.systemvoice.rate,
  3994. 1
  3995. ]);
  3996. u = a.selectBest([
  3997. h.collectionvoice.volume,
  3998. h.systemvoice.volume,
  3999. 1
  4000. ]);
  4001. if (null != d) {
  4002. e *= null != d.pitch ? d.pitch : 1;
  4003. p *= null != d.rate ? d.rate : 1;
  4004. u *= null != d.volume ? d.volume : 1;
  4005. var G = d.extraParams || null;
  4006. }
  4007. e /= 2;
  4008. p /= 2;
  4009. u *= 2;
  4010. e = Math.min(Math.max(e, 0), 1);
  4011. p = Math.min(Math.max(p, 0), 1);
  4012. u = Math.min(Math.max(u, 0), 1);
  4013. A =
  4014. '?t=' +
  4015. encodeURIComponent(r[g]) +
  4016. '&tl=' +
  4017. (h.collectionvoice.lang ||
  4018. h.systemvoice.lang ||
  4019. 'en-US') +
  4020. '&sv=' +
  4021. (h.collectionvoice.service ||
  4022. h.systemvoice.service ||
  4023. '') +
  4024. '&vn=' +
  4025. (h.collectionvoice.voicename ||
  4026. h.systemvoice.voicename ||
  4027. '') +
  4028. '&pitch=' +
  4029. e.toString() +
  4030. '&rate=' +
  4031. p.toString() +
  4032. '&vol=' +
  4033. u.toString();
  4034. 'undefined' != typeof rvApiEndpoint &&
  4035. rvApiEndpoint &&
  4036. (A =
  4037. '?text=' +
  4038. encodeURIComponent(r[g]) +
  4039. '&lang=' +
  4040. (h.collectionvoice.lang ||
  4041. h.systemvoice.lang ||
  4042. 'en-US') +
  4043. '&engine=' +
  4044. (h.collectionvoice.service ||
  4045. h.systemvoice.service ||
  4046. '') +
  4047. '&name=' +
  4048. (h.collectionvoice.voicename ||
  4049. h.systemvoice.voicename ||
  4050. '') +
  4051. '&pitch=' +
  4052. e.toString() +
  4053. '&rate=' +
  4054. p.toString() +
  4055. '&volume=' +
  4056. u.toString());
  4057. e = a.fallbackServicePath + A;
  4058. 'undefined' != typeof rvApiKey &&
  4059. (e += '&key=' + rvApiKey);
  4060. 'undefined' == typeof rvApiKey &&
  4061. a.is_bundle &&
  4062. (e += '&key=FQ9r4hgY');
  4063. 'undefined' == typeof rvApiKey &&
  4064. a.is_wordpress &&
  4065. (e += '&key=HY7lTyiS');
  4066. void 0 !== h.collectionvoice.gender &&
  4067. (e += '&gender=' + h.collectionvoice.gender);
  4068. G && (e += '&extraParams=' + JSON.stringify(G));
  4069. a.fallbackChunks.push({
  4070. text: r[g],
  4071. url: e,
  4072. audio: null
  4073. });
  4074. }
  4075. a.fallbackMode &&
  4076. a.getServiceEnabled(a.services.FALLBACK_AUDIO) &&
  4077. ((a.fallbackChunkIndex = 0), a.fallback_startPart());
  4078. a.log('Service used: ' + n);
  4079. } else
  4080. a.scheduledSpeak = { text: b, voicename: c, parameters: d };
  4081. } else
  4082. console.error('Selected voice does not exist: ' + c),
  4083. a.Dispatch('OnMissingVoiceError', { voice: c });
  4084. }
  4085. } else
  4086. setTimeout(function () {
  4087. a.speak(b, c, d);
  4088. }, 15);
  4089. };
  4090. a.startTimeout = function (b, c) {
  4091. var d = a.msgprofile.collectionvoice.timerSpeed;
  4092. null == a.msgprofile.collectionvoice.timerSpeed && (d = 1);
  4093. 0 >= d ||
  4094. ((a.timeoutId = setTimeout(c, a.getEstimatedTimeLength(b, d))),
  4095. a.log('Timeout ID: ' + a.timeoutId));
  4096. };
  4097. a.checkAndCancelTimeout = function () {
  4098. null != a.timeoutId &&
  4099. (clearTimeout(a.timeoutId), (a.timeoutId = null));
  4100. };
  4101. a.speech_timedout = function () {
  4102. a.cancel();
  4103. a.cancelled = !1;
  4104. a.speech_onend();
  4105. };
  4106. a.speech_onend = function () {
  4107. a.checkAndCancelTimeout();
  4108. !0 === a.cancelled
  4109. ? (a.cancelled = !1)
  4110. : (a.log('on end fired'),
  4111. null != a.msgparameters &&
  4112. null != a.msgparameters.onend &&
  4113. 1 != a.msgparameters.onendcalled &&
  4114. (a.log('Speech on end called -' + a.msgtext),
  4115. (a.msgparameters.onendcalled = !0),
  4116. a.msgparameters.onend()));
  4117. };
  4118. a.speech_onstart = function () {
  4119. if (
  4120. !a.onstartFired &&
  4121. ((a.onstartFired = !0),
  4122. a.log('Speech start'),
  4123. a.enableEstimationTimeout &&
  4124. a.useTimer &&
  4125. (a.fallbackMode || a.startTimeout(a.msgtext, a.speech_timedout)),
  4126. (a.msgparameters.onendcalled = !1),
  4127. null != a.msgparameters && null != a.msgparameters.onstart)
  4128. )
  4129. a.msgparameters.onstart();
  4130. };
  4131. a.fallback_startPart = function () {
  4132. 0 == a.fallbackChunkIndex && a.speech_onstart();
  4133. a.fallback_updateChunksBuffer();
  4134. a.fallback_audio = a.fallbackChunks[a.fallbackChunkIndex].audio;
  4135. null == a.fallback_audio
  4136. ? a.log('RV: Fallback Audio is not available')
  4137. : ((function () {
  4138. var b = a.fallback_audio;
  4139. setTimeout(function () {
  4140. b.playbackRate = a.fallback_playbackrate;
  4141. }, 50);
  4142. b.onloadedmetadata = function () {
  4143. b.playbackRate = a.fallback_playbackrate;
  4144. };
  4145. var c = function (e) {
  4146. setTimeout(function () {
  4147. if (0 == e.currentTime) {
  4148. a.log(
  4149. 'Audio chunk not playing. Trying to recover. Disabling time estimation'
  4150. );
  4151. a.enableEstimationTimeout = !1;
  4152. a.checkAndCancelTimeout();
  4153. e.load();
  4154. var n = function () {
  4155. e.play();
  4156. e.removeEventListener('canplaythrough', n);
  4157. };
  4158. e.addEventListener('canplaythrough', n, !1);
  4159. }
  4160. }, 700);
  4161. };
  4162. if (2 <= b.readyState) b.play(), c(b);
  4163. else {
  4164. var d = function () {
  4165. b.play();
  4166. b.removeEventListener('canplaythrough', d);
  4167. };
  4168. b.addEventListener('canplaythrough', d, !1);
  4169. }
  4170. })(),
  4171. (a.fallback_audio.onerror = function (b) {
  4172. function c() {
  4173. if (this.readyState == this.DONE && 200 !== this.status)
  4174. switch (this.status) {
  4175. case 400:
  4176. console.error(
  4177. 'ResponsiveVoice audio could not be loaded. Invalid parameters.'
  4178. );
  4179. break;
  4180. case 403:
  4181. console.error(
  4182. 'ResponsiveVoice invalid API key. See https://responsivevoice.org/register?devtools=' +
  4183. encodeURIComponent(window.location.href)
  4184. );
  4185. break;
  4186. default:
  4187. console.error(
  4188. 'ResponsiveVoice audio could not be loaded. There is an issue connecting your browser to the API endpoint.'
  4189. );
  4190. }
  4191. }
  4192. switch (b.target.error.code) {
  4193. case b.target.error.MEDIA_ERR_SRC_NOT_SUPPORTED:
  4194. var d = new XMLHttpRequest();
  4195. d.open('GET', b.target.src, !0);
  4196. d.send();
  4197. d.onreadystatechange = c;
  4198. break;
  4199. default:
  4200. console.error(
  4201. 'ResponsiveVoice: an unknown error occurred.'
  4202. );
  4203. }
  4204. }),
  4205. a.fallback_audio.addEventListener('ended', a.fallback_finishPart),
  4206. a.enableEstimationTimeout &&
  4207. a.useTimer &&
  4208. a.startTimeout(
  4209. a.multipartText[a.fallbackChunkIndex],
  4210. a.fallback_finishPart
  4211. ));
  4212. };
  4213. a.isFallbackAudioPlaying = function () {
  4214. var b;
  4215. for (b = 0; b < a.fallback_audiopool.length; b++) {
  4216. var c = a.fallback_audiopool[b];
  4217. if (!c.paused && !c.ended && c.currentTime != c.duration) return !0;
  4218. }
  4219. return !1;
  4220. };
  4221. a.fallback_finishPart = function (b) {
  4222. a.isFallbackAudioPlaying()
  4223. ? (a.checkAndCancelTimeout(),
  4224. (a.timeoutId = setTimeout(
  4225. a.fallback_finishPart,
  4226. 1e3 * (a.fallback_audio.duration - a.fallback_audio.currentTime)
  4227. )))
  4228. : (a.checkAndCancelTimeout(),
  4229. a.fallbackChunkIndex < a.fallbackChunks.length - 1
  4230. ? (a.fallbackChunkIndex++, a.fallback_startPart())
  4231. : a.speech_onend());
  4232. };
  4233. a.cancel = function () {
  4234. a.checkAndCancelTimeout();
  4235. a.fallbackMode
  4236. ? (null != a.fallback_audio && a.fallback_audio.pause(),
  4237. a.clearFallbackPool())
  4238. : ((a.cancelled = !0), speechSynthesis.cancel());
  4239. };
  4240. a.voiceSupport = function () {
  4241. return 'speechSynthesis' in window;
  4242. };
  4243. a.OnFinishedPlaying = function (b) {
  4244. if (null != a.msgparameters && null != a.msgparameters.onend)
  4245. a.msgparameters.onend();
  4246. };
  4247. a.setDefaultVoice = function (b) {
  4248. if (a.rvsMapped) {
  4249. var c = a.getResponsiveVoice(b);
  4250. null != c && (a.default_rv = c);
  4251. } else
  4252. setTimeout(function () {
  4253. a.setDefaultVoice(b);
  4254. }, 15);
  4255. };
  4256. a.setDefaultRate = function (b) {
  4257. var c = b;
  4258. b = parseFloat(b);
  4259. isNaN(b)
  4260. ? console.error(
  4261. '[responsiveVoice.setDefaultRate] invalid argument: ' +
  4262. c.toString()
  4263. )
  4264. : 0 === b
  4265. ? console.error('[responsiveVoice.setDefaultRate] rate must be > 0')
  4266. : 1.5 < b
  4267. ? console.error(
  4268. '[responsiveVoice.setDefaultRate] rate must be <= 1.5'
  4269. )
  4270. : (z = b);
  4271. };
  4272. a.mapRVs = function () {
  4273. if ('object' == typeof navigator) {
  4274. var b,
  4275. c = 'anguage',
  4276. d = navigator;
  4277. var e =
  4278. ((b = d['l' + c + 's']),
  4279. b && b.length
  4280. ? b
  4281. : (c = d['l' + c] || d['browserL' + c] || d['userL' + c])
  4282. ? [c]
  4283. : c);
  4284. } else e = void 0;
  4285. e = e[0];
  4286. for (b = 0; b < a.responsivevoices.length; b++)
  4287. for (c = a.responsivevoices[b], d = 0; d < c.voiceIDs.length; d++) {
  4288. var n = a.voicecollection[c.voiceIDs[d]];
  4289. if (1 != n.fallbackvoice) {
  4290. var g = a.getSystemVoice(n.name);
  4291. a.forcedFallbackMode && (g = null);
  4292. a.iOS12_0 &&
  4293. c.lang.toLowerCase() != e.toLowerCase() &&
  4294. c.lang.toLowerCase().split('-')[0] != e.toLowerCase() &&
  4295. (g = null);
  4296. if (null != g) {
  4297. c.mappedProfile = { systemvoice: g, collectionvoice: n };
  4298. break;
  4299. }
  4300. } else {
  4301. c.mappedProfile = { systemvoice: {}, collectionvoice: n };
  4302. break;
  4303. }
  4304. }
  4305. a.rvsMapped = !0;
  4306. };
  4307. a.getMatchedVoice = function (b) {
  4308. for (var c = 0; c < b.voiceIDs.length; c++) {
  4309. var d = a.getSystemVoice(a.voicecollection[b.voiceIDs[c]].name);
  4310. if (null != d) return d;
  4311. }
  4312. return null;
  4313. };
  4314. a.getSystemVoice = function (b) {
  4315. var c = String.fromCharCode(160);
  4316. var d = b.replace(new RegExp('\\s+|' + c, 'g'), '');
  4317. if ('undefined' === typeof a.systemvoices || null === a.systemvoices)
  4318. return null;
  4319. for (var e = 0; e < a.systemvoices.length; e++)
  4320. if (
  4321. 0 === a.systemvoices[e].name.localeCompare(b) ||
  4322. 0 ===
  4323. a.systemvoices[e].name
  4324. .replace(new RegExp('\\s+|' + c, 'g'), '')
  4325. .replace(/ *\([^)]*\) */g, '')
  4326. .localeCompare(d)
  4327. )
  4328. return a.systemvoices[e];
  4329. return null;
  4330. };
  4331. a.getResponsiveVoice = function (b) {
  4332. for (var c = 0; c < a.responsivevoices.length; c++)
  4333. if (a.responsivevoices[c].name == b)
  4334. return (
  4335. (b = a.fallbackMode),
  4336. (a.fallbackMode =
  4337. !0 ===
  4338. a.responsivevoices[c].mappedProfile.collectionvoice
  4339. .fallbackvoice || !0 === a.forcedFallbackMode
  4340. ? !0
  4341. : !1),
  4342. b != a.fallbackMode &&
  4343. (a.mapRVs(), a.Dispatch('OnServiceSwitched')),
  4344. a.responsivevoices[c]
  4345. );
  4346. return null;
  4347. };
  4348. a.Dispatch = function (b, c) {
  4349. c = void 0 !== c ? c : null;
  4350. if (
  4351. a.hasOwnProperty(b + '_callbacks') &&
  4352. null != a[b + '_callbacks'] &&
  4353. 0 < a[b + '_callbacks'].length
  4354. ) {
  4355. for (var d = a[b + '_callbacks'], e = 0; e < d.length; e++) d[e](c);
  4356. return !0;
  4357. }
  4358. var n = b + '_callbacks_timeout',
  4359. g = b + '_callbacks_timeoutCount';
  4360. a.hasOwnProperty(n) ||
  4361. ((a[g] = 10),
  4362. (a[n] = setInterval(function () {
  4363. --a[g];
  4364. (a.Dispatch(b, c) || 0 > a[g]) && clearTimeout(a[n]);
  4365. }, 50)));
  4366. return !1;
  4367. };
  4368. a.AddEventListener = function (b, c) {
  4369. a.hasOwnProperty(b + '_callbacks') || (a[b + '_callbacks'] = []);
  4370. a[b + '_callbacks'].push(c);
  4371. };
  4372. a.addEventListener = a.AddEventListener;
  4373. a.RemoveEventListener = function (b, c) {
  4374. a[b + '_callbacks'] &&
  4375. -1 != a[b + '_callbacks'].indexOf(c) &&
  4376. a[b + '_callbacks'].splice(a[b + '_callbacks'].indexOf(c), 1);
  4377. };
  4378. a.clickEvent = function () {
  4379. a.log('Click event');
  4380. a.click_event_detected = !0;
  4381. a.initializePermissionsTimeout = setTimeout(
  4382. a.initializePermissions,
  4383. 5
  4384. );
  4385. a.userInteractionEvents.forEach(function (b) {
  4386. window.removeEventListener(b, a.clickEvent, !1);
  4387. });
  4388. a.Dispatch('OnClickEvent');
  4389. };
  4390. a.initializePermissions = function () {
  4391. if (a.iOS && !a.iOS_initialized) {
  4392. a.log('Initializing iOS click event');
  4393. if ('undefined' !== typeof speechSynthesis) {
  4394. var b = new SpeechSynthesisUtterance(' ');
  4395. speechSynthesis.speak(b);
  4396. }
  4397. a.iOS_initialized = !0;
  4398. }
  4399. a.is_android &&
  4400. !a.android_initialized &&
  4401. (a.log('Initializing Android click event'),
  4402. 'undefined' !== typeof speechSynthesis &&
  4403. ((b = new SpeechSynthesisUtterance(' ')),
  4404. speechSynthesis.speak(b)),
  4405. (a.android_initialized = !0));
  4406. a.initFallbackPool();
  4407. };
  4408. a.isPlaying = function () {
  4409. return a.fallbackMode
  4410. ? null != a.fallback_audio &&
  4411. !a.fallback_audio.ended &&
  4412. !a.fallback_audio.paused
  4413. : 'undefined' != typeof speechSynthesis
  4414. ? speechSynthesis.speaking
  4415. : !1;
  4416. };
  4417. a.clearFallbackPool = function () {
  4418. for (var b = 0; b < a.fallback_audiopool.length; b++)
  4419. null != a.fallback_audiopool[b] && a.fallback_audiopool[b].pause();
  4420. a.fallback_audiopool_index = 0;
  4421. a.fallbackChunks = [];
  4422. };
  4423. a.initFallbackPool = function () {
  4424. if (!a.fallback_audiopool || 0 == a.fallback_audiopool.length) {
  4425. for (var b = 0; 10 > b; b++) {
  4426. var c = b,
  4427. d = document.createElement('AUDIO');
  4428. d.preload = 'auto';
  4429. a.is_android &&
  4430. ((d.src =
  4431. 'data:audio/mpeg;base64,/+NIxAAAAAAAAAAAAFhpbmcAAAAPAAAAEwAACZAAIiIiIiIqKioqKjMzMzMzRERERERETExMTExdXV1dXWZmZmZmd3d3d3d3gICAgICRkZGRkZmZmZmZqqqqqqqqs7Ozs7PExMTExMzMzMzM3d3d3d3d5ubm5ub39/f39///////AAAAUExBTUUzLjEwMAQoAAAAAAAAAAAVCCQCQCEAAeAAAAmQ/qJL7wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA/+NIxAAGkAJAGAAAAABn///////////////6w//L/IeGCGc//+U61QAP/4LmWycNjPzmXtEL0VxbXSoQaadV7pSNs2X6hJ3Ok1a9yNRtf7ddPJrLR2nyP/p/30b0OdF6Su29GKp9Ls6LORkWRJ1sOsGr4mUADf9n/P+9v/FR5t08rK1UubPiChtJS2Yoop4MH48ec+PjR01tJJOmX8O3Mvmf//nf6s7pnCzO5wl8y7aVyzX5lLGdCKJYgd6S33q26FtBZVczczydHIbM6oMQuaUADf9n/9v//js/ijDGj7uNKCaLVPLY2TzXwmkzHCZrHdGypjNcBdIf+cssK+/f4397ez1JaRw1aI3FlV5ubTY1LQIWVb2m7K89qpjxLf5g/+MYxPgS5FZAeADFKNGO6mh1fMqEEQGWqWYmg3FqAA2vQlp77/uffWS702wqfv8vFD5PuNitqPG8p77pLmWf/+/HA5ryUlu7/+MYxOcXRFo8eAGHKS//vwnLX//6HPNCIzXla56JRuFPNdKV2pety8ID4VN+uRuoU+VV8zTMMfXYUQ4eh9ZoGKKlPHBCqgAN/+MoxMUX3CY8eAGHKbdmn+OeVJTGIlzpdOsUYwaXtdxnHOiuHjAFIU+ZnMzIo2eVWlxPy//y8rD9GK8OTKZXL6Wply47bXzyeYUcuXSE5qSwGGPcoJv2DchBu8Jw8gGwmW09AA23RXO3nb6WmOopONBSqNIeqnXWiAz7K4XEHwmcIdATmzwV0jJ9s4V/k////+MYxOgYlGo4eAGHLO/5f9nlL8kDpHZv+mbMu4mH7HHuyyqHq6TeK5/8aMjm1eRixEgQJqGo+0p5lQAN/0f477nlU9IqLh3g/+MoxMAV6+48eABHIXO7Otw9wgTCohOLjxNDi9CJZRx1mRayrbDuUE9K1/pzV12nzc/+fe9/4ZerXKtVHrfdcl3Snkp5pGPb7DmYQNJNSh9zwUw9UvZi6fQYM8eKDZqHEZhiAA3/Y/3//e/ncbwBH455AViDJuJXNlQhwMiabt6ZEy6bRZ0EyOvDkSz2KvaZ/+MYxOsWVDY8eAFHJX7d09JbPf7UcpGYFU4MK/TuiMtVI3U+7sa9XVlqveysYtTVmOxmQruJCGeRFdkDcQANv0P3v3+7/3v8/+MoxMwY7F48eAIHLXy7nE/l1671KjRcnSXttqsdJjz2h+kezUHiUdTRuwjpGa8vMy/+f55c7D+2xUlyOfmTv66UvLp0GeRl5WIljlTvLXeKT5Jwvad3F1mByDEbg4DVAA33Y/siOm/FK0CDQEmy6l1gwcQJgyQLX8QIFrg8G8A8hcy4q8OF+ZHkb0p5fP/K/+MYxOsXRCo8eAGFKUPMFnky0+ddOU/S++kPVj1z5qq55m56zXyFmmU0V3mwIsuiUKchEUZjC1y1AA33Y+///fv+5GmZj12N/+MoxMkXhGI8eAGHKcORvd5V0ztA0tUM1d+s21a+e6KTMnBOORPRyKWf/+1Of+f5OxsW9IyZ2uy3M/mef1/vzuZZ1+5S4ttla/eWHjROLbPed0N/NGppAxUqAA33YL08vVo7VkuqIZR2GbZVHBO0MUUIGSGq5ID2e8wpwECpKV8878nSmv//S/Ms5dUdI5Hm/+MYxO4W3F48eABHIQiMTfh86Vs7nfvC9Uz8pZcymIeTPMKyUIcIsjkcyeKlrzc2k0CVAA3/Y+Pr/fn//7zv3OWUiaOhGM2//+MoxM0Wy+48eAGHKRjF4VTgSyzCCRr9P73Jc005wH9MiLp5G/2/Kn+yf/86jUqeNwFTqP5fqU4xMbl/8SdmZ/NtnZjdrWFF6UKjAWGFTDC2EeELBAvBAA2vI/f7nm2z7j8yZbGhowotlks7nfrmUdf4x2L/eGdHO1CiZMbZmtjJ08Rr/e+YzL1v///y7/3O/+MYxPQW3G48eAAGPNpFgkl87qjOVlLOrn9vCSGL5fOHCRe/Unm5gbFu+VQFRSCPW4kxnBUHAA2/R//35++f7/8f5UFOi5dp/+MoxNMXs/48eAGHKeb7ShEhrRrJ7ox2Dwom6lJchCIyAxmlmRblJ8/+J///5/9kbi6dYzc7Dzh3ZeZJOeKImygKWGTGRWucLNkQ180DEbzPRTV2MRjGM6SOHQoADfdn/vX13Zq7bvdmzAaHWaYxtxRuGeiA/JGqh7PMwvZd9KC2NEoEYzKdkrrd/Z21t1u7/+MYxPcYhGY4eAGHLTf0v8++Rq1UzJCdC1k5f3yfRSooW/dmui4H0GqxkF8S+GJJmuU6GQOYJDfCiLo9zim9ElBNAA+/gj5S/+MoxNAYHGY8eAGHKKw6Zmxn++StD2qiVTXJhRFSftxQ4s7mwjZjKC1IcjKvv8xXov/77EeQqjPV3az/vqlNe6XVJFSs7UVlR7oxnY/eeRFcis7KrkJGMgtyc+lMAFWYnvEQQh4ViYhGFC/59/vG+MdJtVsaBhUV3+FHcKDf/EVLf/6KCeBWWK2STEFNRTMu/+MYxPIaLG44eAGHLDEwMKqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq/+MoxMQVRE48eADFKaqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq/+MYxPELK54oGABHoaqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq'),
  4432. d.load(),
  4433. 9 == c &&
  4434. (a.log('Android HTML audio initialized'),
  4435. (a.android_initialized = !0)));
  4436. a.iOS &&
  4437. ((d.src =
  4438. 'data:audio/mpeg;base64,/+NIxAAAAAAAAAAAAFhpbmcAAAAPAAAAEwAACZAAIiIiIiIqKioqKjMzMzMzRERERERETExMTExdXV1dXWZmZmZmd3d3d3d3gICAgICRkZGRkZmZmZmZqqqqqqqqs7Ozs7PExMTExMzMzMzM3d3d3d3d5ubm5ub39/f39///////AAAAUExBTUUzLjEwMAQoAAAAAAAAAAAVCCQCQCEAAeAAAAmQ/qJL7wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA/+NIxAAGkAJAGAAAAABn///////////////6w//L/IeGCGc//+U61QAP/4LmWycNjPzmXtEL0VxbXSoQaadV7pSNs2X6hJ3Ok1a9yNRtf7ddPJrLR2nyP/p/30b0OdF6Su29GKp9Ls6LORkWRJ1sOsGr4mUADf9n/P+9v/FR5t08rK1UubPiChtJS2Yoop4MH48ec+PjR01tJJOmX8O3Mvmf//nf6s7pnCzO5wl8y7aVyzX5lLGdCKJYgd6S33q26FtBZVczczydHIbM6oMQuaUADf9n/9v//js/ijDGj7uNKCaLVPLY2TzXwmkzHCZrHdGypjNcBdIf+cssK+/f4397ez1JaRw1aI3FlV5ubTY1LQIWVb2m7K89qpjxLf5g/+MYxPgS5FZAeADFKNGO6mh1fMqEEQGWqWYmg3FqAA2vQlp77/uffWS702wqfv8vFD5PuNitqPG8p77pLmWf/+/HA5ryUlu7/+MYxOcXRFo8eAGHKS//vwnLX//6HPNCIzXla56JRuFPNdKV2pety8ID4VN+uRuoU+VV8zTMMfXYUQ4eh9ZoGKKlPHBCqgAN/+MoxMUX3CY8eAGHKbdmn+OeVJTGIlzpdOsUYwaXtdxnHOiuHjAFIU+ZnMzIo2eVWlxPy//y8rD9GK8OTKZXL6Wply47bXzyeYUcuXSE5qSwGGPcoJv2DchBu8Jw8gGwmW09AA23RXO3nb6WmOopONBSqNIeqnXWiAz7K4XEHwmcIdATmzwV0jJ9s4V/k////+MYxOgYlGo4eAGHLO/5f9nlL8kDpHZv+mbMu4mH7HHuyyqHq6TeK5/8aMjm1eRixEgQJqGo+0p5lQAN/0f477nlU9IqLh3g/+MoxMAV6+48eABHIXO7Otw9wgTCohOLjxNDi9CJZRx1mRayrbDuUE9K1/pzV12nzc/+fe9/4ZerXKtVHrfdcl3Snkp5pGPb7DmYQNJNSh9zwUw9UvZi6fQYM8eKDZqHEZhiAA3/Y/3//e/ncbwBH455AViDJuJXNlQhwMiabt6ZEy6bRZ0EyOvDkSz2KvaZ/+MYxOsWVDY8eAFHJX7d09JbPf7UcpGYFU4MK/TuiMtVI3U+7sa9XVlqveysYtTVmOxmQruJCGeRFdkDcQANv0P3v3+7/3v8/+MoxMwY7F48eAIHLXy7nE/l1671KjRcnSXttqsdJjz2h+kezUHiUdTRuwjpGa8vMy/+f55c7D+2xUlyOfmTv66UvLp0GeRl5WIljlTvLXeKT5Jwvad3F1mByDEbg4DVAA33Y/siOm/FK0CDQEmy6l1gwcQJgyQLX8QIFrg8G8A8hcy4q8OF+ZHkb0p5fP/K/+MYxOsXRCo8eAGFKUPMFnky0+ddOU/S++kPVj1z5qq55m56zXyFmmU0V3mwIsuiUKchEUZjC1y1AA33Y+///fv+5GmZj12N/+MoxMkXhGI8eAGHKcORvd5V0ztA0tUM1d+s21a+e6KTMnBOORPRyKWf/+1Of+f5OxsW9IyZ2uy3M/mef1/vzuZZ1+5S4ttla/eWHjROLbPed0N/NGppAxUqAA33YL08vVo7VkuqIZR2GbZVHBO0MUUIGSGq5ID2e8wpwECpKV8878nSmv//S/Ms5dUdI5Hm/+MYxO4W3F48eABHIQiMTfh86Vs7nfvC9Uz8pZcymIeTPMKyUIcIsjkcyeKlrzc2k0CVAA3/Y+Pr/fn//7zv3OWUiaOhGM2//+MoxM0Wy+48eAGHKRjF4VTgSyzCCRr9P73Jc005wH9MiLp5G/2/Kn+yf/86jUqeNwFTqP5fqU4xMbl/8SdmZ/NtnZjdrWFF6UKjAWGFTDC2EeELBAvBAA2vI/f7nm2z7j8yZbGhowotlks7nfrmUdf4x2L/eGdHO1CiZMbZmtjJ08Rr/e+YzL1v///y7/3O/+MYxPQW3G48eAAGPNpFgkl87qjOVlLOrn9vCSGL5fOHCRe/Unm5gbFu+VQFRSCPW4kxnBUHAA2/R//35++f7/8f5UFOi5dp/+MoxNMXs/48eAGHKeb7ShEhrRrJ7ox2Dwom6lJchCIyAxmlmRblJ8/+J///5/9kbi6dYzc7Dzh3ZeZJOeKImygKWGTGRWucLNkQ180DEbzPRTV2MRjGM6SOHQoADfdn/vX13Zq7bvdmzAaHWaYxtxRuGeiA/JGqh7PMwvZd9KC2NEoEYzKdkrrd/Z21t1u7/+MYxPcYhGY4eAGHLTf0v8++Rq1UzJCdC1k5f3yfRSooW/dmui4H0GqxkF8S+GJJmuU6GQOYJDfCiLo9zim9ElBNAA+/gj5S/+MoxNAYHGY8eAGHKKw6Zmxn++StD2qiVTXJhRFSftxQ4s7mwjZjKC1IcjKvv8xXov/77EeQqjPV3az/vqlNe6XVJFSs7UVlR7oxnY/eeRFcis7KrkJGMgtyc+lMAFWYnvEQQh4ViYhGFC/59/vG+MdJtVsaBhUV3+FHcKDf/EVLf/6KCeBWWK2STEFNRTMu/+MYxPIaLG44eAGHLDEwMKqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq/+MoxMQVRE48eADFKaqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq/+MYxPELK54oGABHoaqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq'),
  4439. d.load(),
  4440. 9 == c &&
  4441. (a.log('iOS HTML audio initialized'),
  4442. (a.iOS_initialized = !0)));
  4443. a.fallback_audiopool.push(d);
  4444. }
  4445. a.fallback_audiopool_index = 0;
  4446. }
  4447. };
  4448. a.allowSpeechClicked = function (b) {
  4449. a.allowSpeechDiv.parentNode.removeChild(a.allowSpeechDiv);
  4450. a.allowSpeechDiv = null;
  4451. if ((a.speechAllowedByUser = b))
  4452. a.clickEvent(),
  4453. a.scheduledSpeak &&
  4454. (a.speak(
  4455. a.scheduledSpeak.text,
  4456. a.scheduledSpeak.voicename,
  4457. a.scheduledSpeak.parameters
  4458. ),
  4459. (a.scheduledSpeak = null));
  4460. a.Dispatch('OnAllowSpeechClicked');
  4461. };
  4462. a.checkSpeechAllowed = function (b) {
  4463. if (0 == a.speechAllowedByUser) return !1;
  4464. var c = a.is_android || a.iOS,
  4465. d = a.is_safari && (a.fallbackMode || a.forcedFallbackMode);
  4466. if (
  4467. !0 !== a.disablePermissionPopup &&
  4468. (!0 === a.allowPermissionPopupEverywhere ||
  4469. c ||
  4470. d ||
  4471. !0 === a.speechSynthesisNotAllowedError) &&
  4472. !a.click_event_detected
  4473. ) {
  4474. if (a.allowSpeechDiv) return;
  4475. a.allowSpeechDiv_appearances =
  4476. null == a.allowSpeechDiv_appearances
  4477. ? 1
  4478. : ++a.allowSpeechDiv_appearances;
  4479. if (2 < a.allowSpeechDiv_appearances)
  4480. return (
  4481. console.log('ResponsiveVoice: Speech not allowed by user'), !1
  4482. );
  4483. c = document.createElement('style');
  4484. c.innerHTML =
  4485. '.rvNotification{position:fixed;background-color:#fff;text-align:center;font-family:-apple-system,system-ui,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-weight:400;line-height:1.5;box-shadow:0 4px 8px 0 rgba(0,0,0,.2),0 6px 20px 0 rgba(0,0,0,.19);z-index:10000;width:100vw;left:0;bottom:0;font-size:1rem;padding-bottom:.5em;padding-right:.5em}.rvButtonRow{padding-right:2em;padding-bottom:1em;text-align:right;font-size:medium}.rvButton{cursor:pointer;display:inline-block;margin-left:1em;padding:.8em 2em;border-radius:3px;font-size:small}.rvButtonAllow{border:none;background-color:#2b8cff;color:#fff}.rvButtonDeny{border:1px solid #2b8cff;color:#2b8cff;background-color:#fff}.rvTextRow{padding-top:1em;padding-bottom:2em}@media (min-width:576px){.rvNotification{width:60vw;left:20vw}}@media (min-width:768px){.rvNotification{width:50vw;left:25vw}}@media (min-width:992px){.rvNotification{width:40vw;left:30vw}}@media (min-width:1200px){.rvNotification{width:30vw;left:35vw}}';
  4486. document.body.appendChild(c);
  4487. a.allowSpeechDiv = document.createElement('div');
  4488. a.allowSpeechDiv.classList.add('rvNotification');
  4489. void 0 == b && (b = {});
  4490. a.allowSpeechDiv.innerHTML =
  4491. '<div class="rvTextRow"><strong>' +
  4492. (void 0 != b.urlOverride
  4493. ? b.urlOverride
  4494. : window.location.hostname) +
  4495. '</strong> ' +
  4496. (void 0 != b.textOverride
  4497. ? b.textOverride
  4498. : 'wants to play speech') +
  4499. '</div><div class="rvButtonRow"><div onclick="responsiveVoice.allowSpeechClicked(false);" class="rvButton rvButtonDeny">DENY</div><div onclick="responsiveVoice.allowSpeechClicked(true);" class="rvButton rvButtonAllow">ALLOW</div></div>';
  4500. document.body.appendChild(a.allowSpeechDiv);
  4501. return !1;
  4502. }
  4503. return !0;
  4504. };
  4505. a.fallback_audioPool_getAudio = function () {
  4506. a.initFallbackPool();
  4507. a.fallback_audiopool_index >= a.fallback_audiopool.length &&
  4508. (a.fallback_audiopool_index = 0);
  4509. return a.fallback_audiopool[a.fallback_audiopool_index++];
  4510. };
  4511. a.fallback_updateChunksBuffer = function () {
  4512. for (
  4513. var b = a.fallbackChunkIndex;
  4514. b <
  4515. Math.min(
  4516. a.fallbackChunks.length,
  4517. a.fallbackChunkIndex + a.fallbackBufferLength
  4518. );
  4519. b++
  4520. ) {
  4521. var c = a.fallbackChunks[b];
  4522. null == c.audio &&
  4523. ((c.audio = a.fallback_audioPool_getAudio()),
  4524. (function (d) {
  4525. var e = function () {
  4526. d.audio.src = d.url;
  4527. d.audio.playbackRate = a.fallback_playbackrate;
  4528. d.audio.preload = 'auto';
  4529. d.audio.load();
  4530. };
  4531. 0 == b ? e() : setTimeout(e, 50 * b);
  4532. })(c));
  4533. }
  4534. };
  4535. a.selectBest = function (b) {
  4536. for (var c = 0; c < b.length; c++) if (null != b[c]) return b[c];
  4537. return null;
  4538. };
  4539. a.pause = function () {
  4540. a.fallbackMode
  4541. ? null != a.fallback_audio && a.fallback_audio.pause()
  4542. : (speechSynthesis.pause(),
  4543. (a.ttsCancelledByTimeout = !1),
  4544. (a.ttsKeepAliveTimeout = setTimeout(function () {
  4545. a.ttsKeepAliveTimeout = null;
  4546. speechSynthesis.cancel();
  4547. a.ttsCancelledByTimeout = !0;
  4548. }, 6e4)));
  4549. };
  4550. a.resume = function () {
  4551. if (a.fallbackMode)
  4552. null != a.fallback_audio && a.fallback_audio.play();
  4553. else if (a.ttsCancelledByTimeout)
  4554. for (
  4555. var b = (a.ttsCancelledByTimeout = !1), c = 0;
  4556. c < a.utterances.length;
  4557. c++
  4558. ) {
  4559. var d = a.utterances[c];
  4560. a.currentMsg == d && (b = !0);
  4561. b && a.tts_speak(d);
  4562. }
  4563. else
  4564. a.ttsKeepAliveTimeout &&
  4565. (clearTimeout(a.ttsKeepAliveTimeout),
  4566. (a.ttsKeepAliveTimeout = null)),
  4567. speechSynthesis.resume();
  4568. };
  4569. a.tts_speak = function (b) {
  4570. setTimeout(function () {
  4571. a.cancelled = !1;
  4572. a.analytics.characterCount += b.text.toString().length;
  4573. speechSynthesis.speak(b);
  4574. }, 0.01);
  4575. };
  4576. a.setVolume = function (b) {
  4577. if (a.isPlaying())
  4578. if (a.fallbackMode) {
  4579. for (var c = 0; c < a.fallback_audiopool.length; c++)
  4580. a.fallback_audiopool[c].volume = b;
  4581. a.fallback_audio.volume = b;
  4582. } else
  4583. for (c = 0; c < a.utterances.length; c++)
  4584. a.utterances[c].volume = b;
  4585. };
  4586. a.onPartEnd = function (b) {
  4587. if (null != a.msgparameters && null != a.msgparameters.onchuckend)
  4588. a.msgparameters.onchuckend();
  4589. a.Dispatch('OnPartEnd');
  4590. b = a.utterances.indexOf(b.utterance);
  4591. a.currentMsg = a.utterances[b + 1];
  4592. };
  4593. a.onboundary = function (b) {
  4594. a.log('On Boundary');
  4595. a.iOS && !a.onstartFired && a.speech_onstart();
  4596. };
  4597. a.numToWords = function (b) {
  4598. var c = (function () {
  4599. return function (x, t) {
  4600. if (Array.isArray(x)) return x;
  4601. if (Symbol.iterator in Object(x)) {
  4602. var y = [],
  4603. v = !0,
  4604. C = !1,
  4605. H = void 0;
  4606. try {
  4607. for (
  4608. var D = x[Symbol.iterator](), E;
  4609. !(v = (E = D.next()).done) &&
  4610. (y.push(E.value), !t || y.length !== t);
  4611. v = !0
  4612. );
  4613. } catch (I) {
  4614. (C = !0), (H = I);
  4615. } finally {
  4616. try {
  4617. if (!v && D['return']) D['return']();
  4618. } finally {
  4619. if (C) throw H;
  4620. }
  4621. }
  4622. return y;
  4623. }
  4624. throw new TypeError(
  4625. 'Invalid attempt to destructure non-iterable instance'
  4626. );
  4627. };
  4628. })(),
  4629. d = function (x) {
  4630. return 0 === x.length;
  4631. },
  4632. e = function (x) {
  4633. return function (t) {
  4634. return t.slice(0, x);
  4635. };
  4636. },
  4637. n = function (x) {
  4638. return function (t) {
  4639. return t.slice(x);
  4640. };
  4641. },
  4642. g = function (x) {
  4643. return x.slice(0).reverse();
  4644. },
  4645. h = function (x) {
  4646. return function (t) {
  4647. return function (y) {
  4648. return x(t(y));
  4649. };
  4650. };
  4651. },
  4652. r = function (x) {
  4653. return !x;
  4654. },
  4655. p = function y(t) {
  4656. return function (v) {
  4657. if (d(v)) var C = [];
  4658. else {
  4659. C = [e(t)(v)];
  4660. var H = C.concat;
  4661. v = y(t)(n(t)(v));
  4662. if (Array.isArray(v)) {
  4663. for (var D = 0, E = Array(v.length); D < v.length; D++)
  4664. E[D] = v[D];
  4665. v = E;
  4666. } else v = Array.from(v);
  4667. C = H.call(C, v);
  4668. }
  4669. return C;
  4670. };
  4671. },
  4672. u =
  4673. ' one two three four five six seven eight nine ten eleven twelve thirteen fourteen fifteen sixteen seventeen eighteen nineteen'.split(
  4674. ' '
  4675. ),
  4676. A = ' twenty thirty forty fifty sixty seventy eighty ninety'.split(
  4677. ' '
  4678. ),
  4679. G =
  4680. ' thousand million billion trillion quadrillion quintillion sextillion septillion octillion nonillion'.split(
  4681. ' '
  4682. ),
  4683. B = function (t) {
  4684. var y = c(t, 3);
  4685. t = y[0];
  4686. var v = y[1];
  4687. y = y[2];
  4688. return [
  4689. 0 === (Number(y) || 0) ? '' : u[y] + ' hundred ',
  4690. 0 === (Number(t) || 0) ? A[v] : (A[v] && A[v] + ' ') || '',
  4691. u[v + t] || u[t]
  4692. ].join('');
  4693. },
  4694. F = function (t, y) {
  4695. return '' === t ? t : t + ' ' + G[y];
  4696. };
  4697. return 'number' === typeof b
  4698. ? a.numToWords(String(b))
  4699. : '0' === b
  4700. ? 'zero'
  4701. : h(p(3))(g)(Array.from(b))
  4702. .map(B)
  4703. .map(F)
  4704. .filter(h(r)(d))
  4705. .reverse()
  4706. .join(' ')
  4707. .trim();
  4708. };
  4709. a.getWords = function (b) {
  4710. b = b.replace(
  4711. /$|\u00a5|\u20a1|\u20ac|\u00a3|\u20aa|\u20b9|\uffe5|\u17db|\u20a9|\u20a6|\u0e3f|\u20b4|\u20ab/gi,
  4712. ' dummy currency '
  4713. );
  4714. var c = b.split(/(\s*[\s,]\s*|\?|;|:|\.|\(|\)|!)/);
  4715. c = c.filter(function (e) {
  4716. return /[^\s]/.test(e);
  4717. });
  4718. for (var d = 0; d < c.length; d++)
  4719. null != (b = c[d].toString().match(/\d+/)) &&
  4720. (c.splice(d, 1),
  4721. a
  4722. .numToWords(+b[0])
  4723. .split(/\s+/)
  4724. .map(function (e) {
  4725. c.push(e);
  4726. }));
  4727. return c;
  4728. };
  4729. a.getEstimatedTimeLength = function (b, c) {
  4730. var d = a.getWords(b),
  4731. e = 0,
  4732. n = a.fallbackMode ? 1300 : 700;
  4733. c = c || 1;
  4734. d.map(function (r, p) {
  4735. e += (r.toString().match(/[^ ]/gim) || r).length;
  4736. });
  4737. var g = d.length,
  4738. h = (60 / a.WORDS_PER_MINUTE) * c * 1e3 * g;
  4739. 5 > g && (h = c * (n + 50 * e));
  4740. a.log(
  4741. 'Estimated time length: ' +
  4742. h +
  4743. ' ms, words: [' +
  4744. d +
  4745. '], charsCount: ' +
  4746. e
  4747. );
  4748. return h;
  4749. };
  4750. a.validateParameters = function (b, c) {
  4751. if ('undefined' === typeof b[c]) return b[c];
  4752. switch (c) {
  4753. case 'rate':
  4754. case 'pitch':
  4755. case 'volume':
  4756. var d = Number(b[c]);
  4757. isNaN(d) &&
  4758. console.warn(
  4759. 'ResponsiveVoice: the parameter ' +
  4760. c +
  4761. ' has a wrong value "' +
  4762. b[c] +
  4763. '". Defaults were used.'
  4764. );
  4765. b[c] = isNaN(d) ? '1' : b[c];
  4766. }
  4767. return b[c];
  4768. };
  4769. a.services = { NATIVE_TTS: 0, FALLBACK_AUDIO: 1 };
  4770. a.servicesPriority = [0, 1];
  4771. a.servicesEnabled = [];
  4772. a.setServiceEnabled = function (b, c) {
  4773. a.servicesEnabled[b] = c;
  4774. };
  4775. a.getServiceEnabled = function (b) {
  4776. return a.servicesEnabled[b] || !1;
  4777. };
  4778. a.setServiceEnabled(a.services.NATIVE_TTS, !0);
  4779. a.setServiceEnabled(a.services.FALLBACK_AUDIO, !0);
  4780. a.forceFallbackMode = function (b) {
  4781. a.forcedFallbackMode = b;
  4782. a.fallbackMode = b;
  4783. a.mapRVs();
  4784. a.Dispatch('OnServiceSwitched');
  4785. };
  4786. a.enableWindowClickHook = function () {
  4787. a.userInteractionEvents.forEach(function (b) {
  4788. window.addEventListener(b, a.clickEvent, !1);
  4789. });
  4790. };
  4791. a.setTextReplacements = function (b) {
  4792. if (null == b) q = null;
  4793. else {
  4794. q = [];
  4795. for (var c = 0; c < b.length; c++) {
  4796. var d = b[c],
  4797. e = d.searchvalue;
  4798. if ('string' == typeof e)
  4799. try {
  4800. var n = e.match(RegExp('^/(.*?)/([gimy]*)$')),
  4801. g = new RegExp(n[1], n[2]);
  4802. g instanceof RegExp && (e = g);
  4803. } catch (h) {
  4804. e = new RegExp(e, 'g');
  4805. }
  4806. q.push({
  4807. searchvalue: e,
  4808. newvalue: d.newvalue,
  4809. collectionvoices: d.collectionvoices,
  4810. systemvoices: d.systemvoices
  4811. });
  4812. }
  4813. }
  4814. };
  4815. var w =
  4816. /(code\.responsivevoice\.org|local-lb).*?responsivevoice(\.\w+)?\.js/gi;
  4817. 'interactive' === document.readyState
  4818. ? a.init()
  4819. : document.addEventListener('DOMContentLoaded', function () {
  4820. a.init();
  4821. });
  4822. window.addEventListener('beforeunload', function () {
  4823. if (rvApiKey && a.analytics.characterCount) {
  4824. var b = new FormData();
  4825. b.append('key', rvApiKey);
  4826. b.append('count', a.analytics.characterCount);
  4827. navigator.sendBeacon(
  4828. 'https://app.responsivevoice.org/analytics/cc/session',
  4829. b
  4830. ) && (a.analytics.characterCount = 0);
  4831. }
  4832. });
  4833. },
  4834. responsiveVoice = new ResponsiveVoice();
  4835. /// -------- RESPONSIVE VOICE ends
  4836. responsiveVoice.debug = true;
  4837. }
  4838. if (
  4839. document.location.search &&
  4840. /rvWebsiteVerify=5tX5zUJU/gi.test(document.location.search)
  4841. ) {
  4842. function rvNotificationPopup() {
  4843. var css =
  4844. '#rv_5tX5zUJU_notification,#rv_5tX5zUJU_notification *{font-family:"Open Sans",Helvetica,Arial,sans-serif,Tahoma!important}#rv_5tX5zUJU_notification{transition-duration:.3s;opacity:1;transform:scale(1);background:#fff;border:1px solid rgba(0,0,0,.125);border-radius:.3rem;position:fixed;z-index:2147483646;top:20px;left:20px;width:400px;padding:25px;-webkit-box-shadow:0 2px 4px 0 rgba(0,0,0,.3);-moz-box-shadow:0 2px 4px 0 rgba(0,0,0,.3);box-shadow:0 2px 4px 0 rgba(0,0,0,.3)}#rv_5tX5zUJU_notification .rv_notification_logo{background:url(https://app.responsivevoice.org/favicon-96x96.png) no-repeat;background-size:50px 50px;float:left;margin:0 20px 0 0;width:50px;height:50px}#rv_5tX5zUJU_notification_play{background:url(https://app.responsivevoice.org/images/play.png) no-repeat;background-size:25px 25px;float:left;margin:0 5px 0 0;width:25px;height:25px;cursor:pointer}#rv_5tX5zUJU_notification .rv_notification_body{float:left;color:#343a40;font-size:13px;width:78%;min-height:50px;vertical-align:middle}#rv_5tX5zUJU_notification .rv_notification_title{color:#1d643b;font-size:16px;font-weight:700;margin:1px 0 4px 0;display:inline-block}#rv_5tX5zUJU_notification_close{position:absolute;top:15px;right:15px;font-size:22px;color:#343a40;cursor:pointer;line-height:11px}.rv_notification_clear{clear:both}',
  4845. head = document.head || document.getElementsByTagName('head')[0],
  4846. style = document.createElement('style');
  4847. head.appendChild(style);
  4848. style.type = 'text/css';
  4849. if (style.styleSheet) {
  4850. style.styleSheet.cssText = css;
  4851. } else {
  4852. style.appendChild(document.createTextNode(css));
  4853. }
  4854. var rvNotification = document.createElement('div');
  4855. rvNotification.innerHTML =
  4856. '<div id=rv_5tX5zUJU_notification><div id=rv_5tX5zUJU_notification_close>×</div><div class=rv_notification_logo></div><div class=rv_notification_body><div id=rv_5tX5zUJU_notification_play></div><span class=rv_notification_title>ResponsiveVoice URL verified</span><br><span class=rv_notification_text>Your <i style="display: none;">ResponsivVoice</i> code snippet is correctly installed, you may now close this window.</span></div><div class=rv_notification_clear></div></div>';
  4857. document.body.appendChild(rvNotification);
  4858. function speakVerification() {
  4859. responsiveVoice.speak(
  4860. document
  4861. .getElementById('rv_5tX5zUJU_notification')
  4862. .getElementsByClassName('rv_notification_text')[0].textContent
  4863. );
  4864. }
  4865. document
  4866. .getElementById('rv_5tX5zUJU_notification_play')
  4867. .addEventListener('click', function (e) {
  4868. speakVerification();
  4869. });
  4870. document
  4871. .getElementById('rv_5tX5zUJU_notification_close')
  4872. .addEventListener('click', function (e) {
  4873. style.remove();
  4874. rvNotification.remove();
  4875. });
  4876. speakVerification();
  4877. }
  4878. document.addEventListener(
  4879. 'DOMContentLoaded',
  4880. function () {
  4881. var xhttp = new XMLHttpRequest();
  4882. xhttp.open(
  4883. 'POST',
  4884. 'https://code.responsivevoice.org/verify/5tX5zUJU',
  4885. true
  4886. );
  4887. xhttp.setRequestHeader(
  4888. 'Content-type',
  4889. 'application/x-www-form-urlencoded'
  4890. );
  4891. xhttp.send('rv=' + (typeof responsiveVoice !== 'undefined'));
  4892. xhttp.onreadystatechange = function () {
  4893. if (this.readyState == 4 && this.status == 200) {
  4894. rvNotificationPopup();
  4895. }
  4896. };
  4897. },
  4898. false
  4899. );
  4900. }
  4901. /**
  4902. Copyright (c) Tristen Brown
  4903. Permission is hereby granted, free of charge, to any person obtaining
  4904. a copy of this software and associated documentation files (the
  4905. "Software"), to deal in the Software without restriction, including
  4906. without limitation the rights to use, copy, modify, merge, publish,
  4907. distribute, sublicense, and/or sell copies of the Software, and to
  4908. permit persons to whom the Software is furnished to do so, subject to
  4909. the following conditions:
  4910. The above copyright notice and this permission notice shall be
  4911. included in all copies or substantial portions of the Software.
  4912. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  4913. EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  4914. MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  4915. NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
  4916. LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
  4917. OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
  4918. WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  4919. */
  4920. !(function (e, t) {
  4921. if ('function' == typeof define && define.amd)
  4922. define('hoverintent', ['module'], t);
  4923. else if ('undefined' != typeof exports) t(module);
  4924. else {
  4925. var n = { exports: {} };
  4926. t(n), (e.hoverintent = n.exports);
  4927. }
  4928. })(this, function (e) {
  4929. 'use strict';
  4930. var t =
  4931. Object.assign ||
  4932. function (e) {
  4933. for (var t = 1; t < arguments.length; t++) {
  4934. var n = arguments[t];
  4935. for (var o in n)
  4936. Object.prototype.hasOwnProperty.call(n, o) && (e[o] = n[o]);
  4937. }
  4938. return e;
  4939. };
  4940. e.exports = function (e, n, o) {
  4941. function i(e, t) {
  4942. return y && (y = clearTimeout(y)), (b = 0), p ? void 0 : o.call(e, t);
  4943. }
  4944. function r(e) {
  4945. (m = e.clientX), (d = e.clientY);
  4946. }
  4947. function u(e, t) {
  4948. if (
  4949. (y && (y = clearTimeout(y)),
  4950. Math.abs(h - m) + Math.abs(E - d) < x.sensitivity)
  4951. )
  4952. return (b = 1), p ? void 0 : n.call(e, t);
  4953. (h = m),
  4954. (E = d),
  4955. (y = setTimeout(function () {
  4956. u(e, t);
  4957. }, x.interval));
  4958. }
  4959. function s(t) {
  4960. return (
  4961. (L = !0),
  4962. y && (y = clearTimeout(y)),
  4963. e.removeEventListener('mousemove', r, !1),
  4964. 1 !== b &&
  4965. ((h = t.clientX),
  4966. (E = t.clientY),
  4967. e.addEventListener('mousemove', r, !1),
  4968. (y = setTimeout(function () {
  4969. u(e, t);
  4970. }, x.interval))),
  4971. this
  4972. );
  4973. }
  4974. function c(t) {
  4975. return (
  4976. (L = !1),
  4977. y && (y = clearTimeout(y)),
  4978. e.removeEventListener('mousemove', r, !1),
  4979. 1 === b &&
  4980. (y = setTimeout(function () {
  4981. i(e, t);
  4982. }, x.timeout)),
  4983. this
  4984. );
  4985. }
  4986. function v(t) {
  4987. L || ((p = !0), n.call(e, t));
  4988. }
  4989. function a(t) {
  4990. !L && p && ((p = !1), o.call(e, t));
  4991. }
  4992. function f() {
  4993. e.addEventListener('focus', v, !1), e.addEventListener('blur', a, !1);
  4994. }
  4995. function l() {
  4996. e.removeEventListener('focus', v, !1),
  4997. e.removeEventListener('blur', a, !1);
  4998. }
  4999. var m,
  5000. d,
  5001. h,
  5002. E,
  5003. L = !1,
  5004. p = !1,
  5005. T = {},
  5006. b = 0,
  5007. y = 0,
  5008. x = { sensitivity: 7, interval: 100, timeout: 0, handleFocus: !1 };
  5009. return (
  5010. (T.options = function (e) {
  5011. var n = e.handleFocus !== x.handleFocus;
  5012. return (x = t({}, x, e)), n && (x.handleFocus ? f() : l()), T;
  5013. }),
  5014. (T.remove = function () {
  5015. e &&
  5016. (e.removeEventListener('mouseover', s, !1),
  5017. e.removeEventListener('mouseout', c, !1),
  5018. l());
  5019. }),
  5020. e &&
  5021. (e.addEventListener('mouseover', s, !1),
  5022. e.addEventListener('mouseout', c, !1)),
  5023. T
  5024. );
  5025. };
  5026. });
  5027. var config = {
  5028. welcomeMessage: false,
  5029. speakSelectedText: false,
  5030. speakLinks: false,
  5031. speakInactivity: false,
  5032. speakEndPage: false,
  5033. exitIntent: false,
  5034. accesibilityNavigation: false,
  5035. accesibilityNavigation2: false,
  5036. welcomeMessageTime: false,
  5037. text_welcomeMessage: null,
  5038. text_speakInactivity: null,
  5039. text_speakEndPage: null,
  5040. text_exitIntent: null,
  5041. trackEvents: false,
  5042. abTesting: false,
  5043. analytics_id: null,
  5044. another_field: null
  5045. };
  5046. /*<!-- LearnBriteAnalytics -->
  5047. var _wla = _wla || [];
  5048. _wla.push(['trackPageView']);
  5049. //_wla.setCountPrerender(true);
  5050. _wla.push(['enableLinkTracking']);
  5051. (function() {
  5052. var u="//ai.learnbrite.com/";
  5053. _wla.push(['setTrackerUrl', u+'analytics.php']);
  5054. _wla.push(['setSiteId', 75]);
  5055. var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
  5056. g.type='text/javascript';
  5057. g.async=true; g.defer=true; g.src=u+'analytics.js.php'; s.parentNode.insertBefore(g,s); })(); */
  5058. var splitTestEnabled = config.abTesting || false;
  5059. var splitTest_useGS = Math.random() < 0.5;
  5060. function GetRandomMsg(text) {
  5061. var texts = text.split('|');
  5062. return texts[Math.floor(Math.random() * texts.length)];
  5063. }
  5064. function getHiddenProp() {
  5065. var prefixes = ['webkit', 'moz', 'ms', 'o'];
  5066. // if 'hidden' is natively supported just return it
  5067. if ('hidden' in document) return 'hidden';
  5068. // otherwise loop over all the known prefixes until we find one
  5069. for (var i = 0; i < prefixes.length; i++) {
  5070. if (prefixes[i] + 'Hidden' in document) return prefixes[i] + 'Hidden';
  5071. }
  5072. // otherwise it's not supported
  5073. return null;
  5074. }
  5075. function getVisibilityState() {
  5076. var prefixes = ['webkit', 'moz', 'ms', 'o'];
  5077. // if 'visibilityState' is natively supported just return it
  5078. if ('visibilityState' in document) return 'visibilityState';
  5079. // otherwise loop over all the known prefixes until we find one
  5080. for (var i = 0; i < prefixes.length; i++) {
  5081. if (prefixes[i] + 'VisibilityState' in document)
  5082. return prefixes[i] + 'VisibilityState';
  5083. }
  5084. // otherwise it's not supported
  5085. return null;
  5086. }
  5087. function isHidden() {
  5088. var prop = getHiddenProp();
  5089. if (!prop) return false;
  5090. return document[prop];
  5091. }
  5092. function isPrerendered() {
  5093. var prop = getVisibilityState();
  5094. //console.log(prop);
  5095. if (!prop) return false;
  5096. //console.log(document[prop]);
  5097. if (document[prop] != 'prerender') return false;
  5098. return document[prop];
  5099. }
  5100. console.log('isHidden: ' + isHidden());
  5101. console.log('Prerender: ' + isPrerendered());
  5102. //Analytics
  5103. //Search Message
  5104. var prerenderUsed = false;
  5105. if (isPrerendered() && !prerenderUsed) {
  5106. prerenderUsed = true;
  5107. setTimeout(function () {
  5108. if (!splitTestEnabled || (splitTestEnabled && splitTest_useGS)) {
  5109. var txt = GetRandomMsg('');
  5110. if (txt != null && txt != '') {
  5111. console.log('Launching search message');
  5112. responsiveVoice.speak(
  5113. 'According to Voicebrite, ' + txt,
  5114. 'UK English Female'
  5115. );
  5116. }
  5117. }
  5118. //Search Message Split Test - Impression
  5119. if (splitTestEnabled) {
  5120. if (splitTest_useGS) {
  5121. trackEvent('searchMessage', 'impressionAB', 'true');
  5122. } else {
  5123. trackEvent('searchMessage', 'impressionAB', 'false');
  5124. }
  5125. } else {
  5126. trackEvent('searchMessage', 'impression');
  5127. }
  5128. }, 1500);
  5129. }
  5130. window.addEventListener('load', function () {
  5131. //We came from prerender
  5132. var smessInterval = null;
  5133. if (prerenderUsed) {
  5134. smessInterval = setInterval(function () {
  5135. if (!isPrerendered()) {
  5136. clearInterval(smessInterval);
  5137. //Search Message Split Test - Impression
  5138. if (splitTestEnabled) {
  5139. if (splitTest_useGS) {
  5140. trackEvent('searchMessage', 'visitAB', 'true');
  5141. } else {
  5142. trackEvent('searchMessage', 'visitAB', 'false');
  5143. }
  5144. } else {
  5145. trackEvent('searchMessage', 'visit');
  5146. }
  5147. }
  5148. }, 1000);
  5149. }
  5150. console.log('Configuring');
  5151. //Speak links
  5152. var _allLinks = document.getElementsByTagName('a');
  5153. Array.prototype.forEach.call(_allLinks, function (el) {
  5154. hoverintent(
  5155. el,
  5156. function () {
  5157. if (config.speakLinks) {
  5158. //responsiveVoice.cancel();
  5159. responsiveVoice.speak(el.textContent, 'UK English Female');
  5160. trackEvent('agentFeature', 'spokenLink');
  5161. }
  5162. },
  5163. function () {}
  5164. );
  5165. });
  5166. //Speak selected text
  5167. var selectedText = '';
  5168. var last_selectedText = '';
  5169. function getSelectionText() {
  5170. var text = '';
  5171. if (window.getSelection) {
  5172. text = window.getSelection().toString();
  5173. } else if (document.selection && document.selection.type != 'Control') {
  5174. // for Internet Explorer 8 and below
  5175. text = document.selection.createRange().text;
  5176. }
  5177. return text;
  5178. }
  5179. if (config.speakSelectedText) {
  5180. attachToElements(
  5181. document.querySelectorAll('PRE,DIV'),
  5182. ['mouseup', 'touchend'],
  5183. onMouseUp
  5184. );
  5185. }
  5186. function attachToElements(elements, events, callback) {
  5187. if (elements.length > 0) {
  5188. for (var i = 0; i < elements.length; i++) {
  5189. events.forEach(function (event) {
  5190. elements[i].addEventListener(event, function (e) {
  5191. callback();
  5192. });
  5193. });
  5194. }
  5195. }
  5196. }
  5197. function onMouseUp() {
  5198. selectedText = getSelectionText();
  5199. console.log('Selected text *' + selectedText + '*');
  5200. if (selectedText != last_selectedText && selectedText != '') {
  5201. last_selectedText = selectedText;
  5202. responsiveVoice.cancel(); // stop anything currently being spoken
  5203. responsiveVoice.speak(selectedText, 'UK English Female'); //speak the text as returned by getSelectionText
  5204. trackEvent('agentFeature', 'highlightText');
  5205. }
  5206. }
  5207. //Speak welcome message. Will only play if user didn't came from google.
  5208. var welcomeMessageLaunched = false;
  5209. if (
  5210. config.welcomeMessage &&
  5211. (!config.welcomeMessageTime || oneTimeTest('welcomeMessage')) &&
  5212. !isPrerendered() &&
  5213. !prerenderUsed
  5214. ) {
  5215. welcomeMessageLaunched = true;
  5216. setTimeout(function () {
  5217. if (
  5218. config.text_welcomeMessage != null &&
  5219. config.text_welcomeMessage != ''
  5220. ) {
  5221. console.log('Launching welcome message');
  5222. responsiveVoice.speak(
  5223. GetRandomMsg(config.text_welcomeMessage),
  5224. 'UK English Female'
  5225. );
  5226. trackEvent('agentFeature', 'welcomeMessage');
  5227. }
  5228. }, 1500);
  5229. }
  5230. //Speak welcome message when user came from Google. Won't play if default message played
  5231. var welcomeMessage2Launched = false;
  5232. var welcomeMessage2Interval = null;
  5233. if (
  5234. !welcomeMessageLaunched &&
  5235. config.welcomeMessage2 &&
  5236. (!config.welcomeMessageTime || oneTimeTest('welcomeMessage2')) &&
  5237. config.text_welcomeMessage2 != null &&
  5238. config.text_welcomeMessage2 != ''
  5239. ) {
  5240. //Wait until we're visible and launch message
  5241. welcomeMessage2Interval = setInterval(function () {
  5242. console.log('Welcome Message from Google Waiting');
  5243. if (!isPrerendered() && !welcomeMessage2Launched) {
  5244. console.log('Welcome Message from Google launched');
  5245. welcomeMessage2Launched = true;
  5246. responsiveVoice.speak(
  5247. GetRandomMsg(config.text_welcomeMessage2),
  5248. 'UK English Female'
  5249. );
  5250. trackEvent('agentFeature', 'welcomeMessage2');
  5251. clearInterval(welcomeMessage2Interval);
  5252. }
  5253. }, 1000);
  5254. }
  5255. //Speak when scroll end
  5256. function bindScroll() {
  5257. if (
  5258. window.innerHeight + window.pageYOffset >=
  5259. document.body.offsetHeight - 100 &&
  5260. config.text_speakEndPage != null &&
  5261. config.text_speakEndPage != ''
  5262. ) {
  5263. console.log('bottom');
  5264. window.removeEventListener('scroll', bindScroll);
  5265. responsiveVoice.speak(
  5266. GetRandomMsg(config.text_speakEndPage),
  5267. 'UK English Female'
  5268. );
  5269. trackEvent('agentFeature', 'scrollEnd');
  5270. }
  5271. }
  5272. if (config.speakEndPage) {
  5273. window.addEventListener('scroll', bindScroll);
  5274. }
  5275. //Inactivity
  5276. var idleTime = 0;
  5277. if (config.speakInactivity) {
  5278. setInterval(timerIncrement, 1000);
  5279. window.addEventListener('mousemove', function () {
  5280. idleTime = 0;
  5281. });
  5282. window.addEventListener('keyup', function () {
  5283. idleTime = 0;
  5284. });
  5285. }
  5286. function timerIncrement() {
  5287. idleTime += 1000;
  5288. if (idleTime >= 30000) {
  5289. responsiveVoice.speak(
  5290. GetRandomMsg(config.text_speakInactivity),
  5291. 'UK English Female'
  5292. );
  5293. trackEvent('agentFeature', 'inactivity');
  5294. idleTime = 0;
  5295. }
  5296. }
  5297. //Exit intent
  5298. if (config.speakInactivity) {
  5299. console.info('setting up exit intent');
  5300. document.addEventListener('mouseout', exitIntent);
  5301. }
  5302. function exitIntent(e) {
  5303. if (e.clientY < 0) {
  5304. responsiveVoice.speak(
  5305. GetRandomMsg(config.text_exitIntent),
  5306. 'UK English Female'
  5307. );
  5308. trackEvent('agentFeature', 'exitIntent');
  5309. }
  5310. }
  5311. //Tab and ctrl to speak - Accessibility Navigation
  5312. var started = 0;
  5313. if (config.accesibilityNavigation) {
  5314. console.log('accesibilityNavigation');
  5315. document.addEventListener('keyup', function (e) {
  5316. console.log('keyup called');
  5317. var code = e.keyCode || e.which;
  5318. if (e.target) {
  5319. switch (e.target.tagName) {
  5320. case 'A':
  5321. if (code == '9') {
  5322. responsiveVoice.speak(
  5323. 'Link 2 ' + e.target.text,
  5324. 'UK English Female'
  5325. );
  5326. trackEvent('agentFeature', 'accesibilityNavigation', 'tab');
  5327. }
  5328. break;
  5329. case 'BUTTON':
  5330. if (code == '9') {
  5331. setTimeout(
  5332. responsiveVoice.speak(
  5333. e.target.textContent + ' button',
  5334. 'UK English Female'
  5335. ),
  5336. 1000
  5337. );
  5338. trackEvent('agentFeature', 'accesibilityNavigation', 'tab');
  5339. }
  5340. break;
  5341. case 'TEXTAREA':
  5342. if (code == '9') {
  5343. responsiveVoice.speak(
  5344. 'Text Input ' +
  5345. document
  5346. .querySelectorAll(':focus')[0]
  5347. .getAttribute('placeholder'),
  5348. 'UK English Female'
  5349. );
  5350. trackEvent('agentFeature', 'accesibilityNavigation', 'tab');
  5351. }
  5352. break;
  5353. }
  5354. }
  5355. });
  5356. }
  5357. if (config.accesibilityNavigation2) {
  5358. document.addEventListener('keyup', function (e) {
  5359. console.log('keyup called');
  5360. var code = e.keyCode || e.which;
  5361. if (code == '40' && e.ctrlKey) {
  5362. console.log('ctrl + down arrow');
  5363. responsiveVoice.speak(
  5364. document.querySelectorAll('p')[started].textContent,
  5365. 'UK English Female'
  5366. );
  5367. trackEvent('agentFeature', 'accesibilityNavigation', 'ctrl-arrow');
  5368. document.querySelectorAll('p')[started].scrollIntoView(false);
  5369. started = started + 1;
  5370. }
  5371. if (code == '38' && e.ctrlKey) {
  5372. console.log('ctrl + up arrow');
  5373. responsiveVoice.speak(
  5374. document.querySelectorAll('p')[started].textContent,
  5375. 'UK English Female'
  5376. );
  5377. trackEvent('agentFeature', 'accesibilityNavigation', 'ctrl-arrow');
  5378. document.querySelectorAll('p')[started].scrollIntoView(false);
  5379. started = started - 1;
  5380. if (started < 1) {
  5381. started = 0;
  5382. }
  5383. }
  5384. });
  5385. }
  5386. });
  5387. function createCookie(name, value, days) {
  5388. if (days) {
  5389. var date = new Date();
  5390. date.setTime(date.getTime() + days * 24 * 60 * 60 * 1000);
  5391. var expires = '; expires=' + date.toGMTString();
  5392. } else var expires = '';
  5393. document.cookie = name + '=' + value + expires + '; path=/';
  5394. }
  5395. function readCookie(name) {
  5396. var nameEQ = name + '=';
  5397. var ca = document.cookie.split(';');
  5398. for (var i = 0; i < ca.length; i++) {
  5399. var c = ca[i];
  5400. while (c.charAt(0) == ' ') c = c.substring(1, c.length);
  5401. if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length, c.length);
  5402. }
  5403. return null;
  5404. }
  5405. function eraseCookie(name) {
  5406. createCookie(name, '', -1);
  5407. }
  5408. function getOrCreateTest(name, prob, days) {
  5409. var c = readCookie(name);
  5410. if (c == null) {
  5411. console.log('Cookie set');
  5412. var v = Math.random() < (prob != null ? prob : 0.5);
  5413. //1 hour
  5414. createCookie(name, v.toString(), days != null ? days : 1 / 24);
  5415. return v;
  5416. }
  5417. console.log('Cookie read');
  5418. return c == true.toString();
  5419. }
  5420. function oneTimeTest(name, days) {
  5421. var c = readCookie(name);
  5422. if (c == null) {
  5423. console.log('Cookie set - one time True');
  5424. //1 hour
  5425. createCookie(name, false.toString(), days != null ? days : 0.5 / 24);
  5426. return true;
  5427. }
  5428. console.log('Cookie read - one time False');
  5429. return false;
  5430. }
  5431. function trackEvent(category, action, name, value) {
  5432. if (config.trackEvents != true) return;
  5433. console.log('Track ' + category + ',' + action + ',' + name);
  5434. var url = 'https://ai.learnbrite.com/analytics.php';
  5435. var postArray = [];
  5436. var data = {
  5437. idsite: config.analytics_id,
  5438. rec: 1,
  5439. url: window.location.href,
  5440. rand: Math.floor(Math.random() * 1000000000),
  5441. e_c: category,
  5442. e_a: action,
  5443. e_n: name,
  5444. e_v: value
  5445. };
  5446. for (var property in data) {
  5447. postArray.push(encodeURI(property + '=' + data[property]));
  5448. }
  5449. var xhttp = new XMLHttpRequest();
  5450. xhttp.open('POST', url, true);
  5451. xhttp.setRequestHeader('Content-type', 'application/x-www-form-urlencoded');
  5452. xhttp.send(postArray.join('&'));
  5453. xhttp.onreadystatechange = function () {
  5454. if (this.readyState == 4 && this.status == 200) {
  5455. console.log('Tracking Success');
  5456. console.log(data);
  5457. }
  5458. };
  5459. }