var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.arrayIteratorImpl=function(f){var c=0;return function(){return c<f.length?{done:!1,value:f[c++]}:{done:!0}}};$jscomp.arrayIterator=function(f){return{next:$jscomp.arrayIteratorImpl(f)}};$jscomp.makeIterator=function(f){var c='undefined'!=typeof Symbol&&Symbol.iterator&&f[Symbol.iterator];return c?c.call(f):$jscomp.arrayIterator(f)};$jscomp.arrayFromIterator=function(f){for(var c,e=[];!(c=f.next()).done;)e.push(c.value);return e};
$jscomp.arrayFromIterable=function(f){return f instanceof Array?f:$jscomp.arrayFromIterator($jscomp.makeIterator(f))};$jscomp.getGlobal=function(f){f=['object'==typeof window&&window,'object'==typeof self&&self,'object'==typeof global&&global,f];for(var c=0;c<f.length;++c){var e=f[c];if(e&&e.Math==Math)return e}return globalThis};$jscomp.global=$jscomp.getGlobal(this);$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.SIMPLE_FROUND_POLYFILL=!1;
$jscomp.defineProperty=$jscomp.ASSUME_ES5||'function'==typeof Object.defineProperties?Object.defineProperty:function(f,c,e){f!=Array.prototype&&f!=Object.prototype&&(f[c]=e.value)};$jscomp.polyfill=function(f,c,e,b){if(c){e=$jscomp.global;f=f.split('.');for(b=0;b<f.length-1;b++){var a=f[b];a in e||(e[a]={});e=e[a]}f=f[f.length-1];b=e[f];c=c(b);c!=b&&null!=c&&$jscomp.defineProperty(e,f,{configurable:!0,writable:!0,value:c})}};$jscomp.FORCE_POLYFILL_PROMISE=!1;
$jscomp.polyfill('Promise',function(f){function c(){this.batch_=null}function e(d){return d instanceof a?d:new a(function(a,h){a(d)})}if(f&&!$jscomp.FORCE_POLYFILL_PROMISE)return f;c.prototype.asyncExecute=function(a){if(null==this.batch_){this.batch_=[];var d=this;this.asyncExecuteFunction(function(){d.executeBatch_()})}this.batch_.push(a)};var b=$jscomp.global.setTimeout;c.prototype.asyncExecuteFunction=function(a){b(a,0)};c.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var a=
this.batch_;this.batch_=[];for(var b=0;b<a.length;++b){var h=a[b];a[b]=null;try{h()}catch(l){this.asyncThrow_(l)}}}this.batch_=null};c.prototype.asyncThrow_=function(a){this.asyncExecuteFunction(function(){throw a;})};var a=function(a){this.state_=0;this.result_=void 0;this.onSettledCallbacks_=[];var d=this.createResolveAndReject_();try{a(d.resolve,d.reject)}catch(h){d.reject(h)}};a.prototype.createResolveAndReject_=function(){function a(a){return function(d){h||(h=!0,a.call(b,d))}}var b=this,h=!1;
return{resolve:a(this.resolveTo_),reject:a(this.reject_)}};a.prototype.resolveTo_=function(d){if(d===this)this.reject_(new TypeError('A Promise cannot resolve to itself'));else if(d instanceof a)this.settleSameAsPromise_(d);else{a:switch(typeof d){case 'object':var b=null!=d;break a;case 'function':b=!0;break a;default:b=!1}b?this.resolveToNonPromiseObj_(d):this.fulfill_(d)}};a.prototype.resolveToNonPromiseObj_=function(a){var d=void 0;try{d=a.then}catch(h){this.reject_(h);return}'function'==typeof d?
this.settleSameAsThenable_(d,a):this.fulfill_(a)};a.prototype.reject_=function(a){this.settle_(2,a)};a.prototype.fulfill_=function(a){this.settle_(1,a)};a.prototype.settle_=function(a,b){if(0!=this.state_)throw Error('Cannot settle('+a+', '+b+'): Promise already settled in state'+this.state_);this.state_=a;this.result_=b;this.executeOnSettledCallbacks_()};a.prototype.executeOnSettledCallbacks_=function(){if(null!=this.onSettledCallbacks_){for(var a=0;a<this.onSettledCallbacks_.length;++a)k.asyncExecute(this.onSettledCallbacks_[a]);
this.onSettledCallbacks_=null}};var k=new c;a.prototype.settleSameAsPromise_=function(a){var d=this.createResolveAndReject_();a.callWhenSettled_(d.resolve,d.reject)};a.prototype.settleSameAsThenable_=function(a,b){var d=this.createResolveAndReject_();try{a.call(b,d.resolve,d.reject)}catch(l){d.reject(l)}};a.prototype.then=function(d,b){function h(a,d){return'function'==typeof a?function(d){try{l(a(d))}catch(r){g(r)}}:d}var l,g,c=new a(function(a,d){l=a;g=d});this.callWhenSettled_(h(d,l),h(b,g));return c};
a.prototype.catch=function(a){return this.then(void 0,a)};a.prototype.callWhenSettled_=function(a,b){function d(){switch(l.state_){case 1:a(l.result_);break;case 2:b(l.result_);break;default:throw Error('Unexpected state: '+l.state_);}}var l=this;null==this.onSettledCallbacks_?k.asyncExecute(d):this.onSettledCallbacks_.push(d)};a.resolve=e;a.reject=function(d){return new a(function(a,b){b(d)})};a.race=function(d){return new a(function(a,b){for(var h=$jscomp.makeIterator(d),g=h.next();!g.done;g=h.next())e(g.value).callWhenSettled_(a,
b)})};a.all=function(d){var b=$jscomp.makeIterator(d),h=b.next();return h.done?e([]):new a(function(a,d){function l(d){return function(b){g[d]=b;c--;0==c&&a(g)}}var g=[],c=0;do g.push(void 0),c++,e(h.value).callWhenSettled_(l(g.length-1),d),h=b.next();while(!h.done)})};return a},'es6','es3');$jscomp.SYMBOL_PREFIX='jscomp_symbol_';$jscomp.initSymbol=function(){$jscomp.initSymbol=function(){};$jscomp.global.Symbol||($jscomp.global.Symbol=$jscomp.Symbol)};
$jscomp.SymbolClass=function(f,c){this.$jscomp$symbol$id_=f;$jscomp.defineProperty(this,'description',{configurable:!0,writable:!0,value:c})};$jscomp.SymbolClass.prototype.toString=function(){return this.$jscomp$symbol$id_};$jscomp.Symbol=function(){function f(e){if(this instanceof f)throw new TypeError('Symbol is not a constructor');return new $jscomp.SymbolClass($jscomp.SYMBOL_PREFIX+(e||'')+'_'+c++,e)}var c=0;return f}();
$jscomp.initSymbolIterator=function(){$jscomp.initSymbol();var f=$jscomp.global.Symbol.iterator;f||(f=$jscomp.global.Symbol.iterator=$jscomp.global.Symbol('Symbol.iterator'));'function'!=typeof Array.prototype[f]&&$jscomp.defineProperty(Array.prototype,f,{configurable:!0,writable:!0,value:function(){return $jscomp.iteratorPrototype($jscomp.arrayIteratorImpl(this))}});$jscomp.initSymbolIterator=function(){}};
$jscomp.initSymbolAsyncIterator=function(){$jscomp.initSymbol();var f=$jscomp.global.Symbol.asyncIterator;f||(f=$jscomp.global.Symbol.asyncIterator=$jscomp.global.Symbol('Symbol.asyncIterator'));$jscomp.initSymbolAsyncIterator=function(){}};$jscomp.iteratorPrototype=function(f){$jscomp.initSymbolIterator();f={next:f};f[$jscomp.global.Symbol.iterator]=function(){return this};return f};$jscomp.underscoreProtoCanBeSet=function(){var f={a:!0},c={};try{return c.__proto__=f,c.a}catch(e){}return!1};
$jscomp.setPrototypeOf='function'==typeof Object.setPrototypeOf?Object.setPrototypeOf:$jscomp.underscoreProtoCanBeSet()?function(f,c){f.__proto__=c;if(f.__proto__!==c)throw new TypeError(f+' is not extensible');return f}:null;$jscomp.generator={};$jscomp.generator.ensureIteratorResultIsObject_=function(f){if(!(f instanceof Object))throw new TypeError('Iterator result '+f+' is not an object');};
$jscomp.generator.Context=function(){this.isRunning_=!1;this.yieldAllIterator_=null;this.yieldResult=void 0;this.nextAddress=1;this.finallyAddress_=this.catchAddress_=0;this.finallyContexts_=this.abruptCompletion_=null};$jscomp.generator.Context.prototype.start_=function(){if(this.isRunning_)throw new TypeError('Generator is already running');this.isRunning_=!0};$jscomp.generator.Context.prototype.stop_=function(){this.isRunning_=!1};
$jscomp.generator.Context.prototype.jumpToErrorHandler_=function(){this.nextAddress=this.catchAddress_||this.finallyAddress_};$jscomp.generator.Context.prototype.next_=function(f){this.yieldResult=f};$jscomp.generator.Context.prototype.throw_=function(f){this.abruptCompletion_={exception:f,isException:!0};this.jumpToErrorHandler_()};$jscomp.generator.Context.prototype.return=function(f){this.abruptCompletion_={return:f};this.nextAddress=this.finallyAddress_};
$jscomp.generator.Context.prototype.jumpThroughFinallyBlocks=function(f){this.abruptCompletion_={jumpTo:f};this.nextAddress=this.finallyAddress_};$jscomp.generator.Context.prototype.yield=function(f,c){this.nextAddress=c;return{value:f}};$jscomp.generator.Context.prototype.yieldAll=function(f,c){f=$jscomp.makeIterator(f);var e=f.next();$jscomp.generator.ensureIteratorResultIsObject_(e);if(e.done)this.yieldResult=e.value,this.nextAddress=c;else return this.yieldAllIterator_=f,this.yield(e.value,c)};
$jscomp.generator.Context.prototype.jumpTo=function(f){this.nextAddress=f};$jscomp.generator.Context.prototype.jumpToEnd=function(){this.nextAddress=0};$jscomp.generator.Context.prototype.setCatchFinallyBlocks=function(f,c){this.catchAddress_=f;void 0!=c&&(this.finallyAddress_=c)};$jscomp.generator.Context.prototype.setFinallyBlock=function(f){this.catchAddress_=0;this.finallyAddress_=f||0};$jscomp.generator.Context.prototype.leaveTryBlock=function(f,c){this.nextAddress=f;this.catchAddress_=c||0};
$jscomp.generator.Context.prototype.enterCatchBlock=function(f){this.catchAddress_=f||0;f=this.abruptCompletion_.exception;this.abruptCompletion_=null;return f};$jscomp.generator.Context.prototype.enterFinallyBlock=function(f,c,e){e?this.finallyContexts_[e]=this.abruptCompletion_:this.finallyContexts_=[this.abruptCompletion_];this.catchAddress_=f||0;this.finallyAddress_=c||0};
$jscomp.generator.Context.prototype.leaveFinallyBlock=function(f,c){c=this.finallyContexts_.splice(c||0)[0];if(c=this.abruptCompletion_=this.abruptCompletion_||c){if(c.isException)return this.jumpToErrorHandler_();void 0!=c.jumpTo&&this.finallyAddress_<c.jumpTo?(this.nextAddress=c.jumpTo,this.abruptCompletion_=null):this.nextAddress=this.finallyAddress_}else this.nextAddress=f};$jscomp.generator.Context.prototype.forIn=function(f){return new $jscomp.generator.Context.PropertyIterator(f)};
$jscomp.generator.Context.PropertyIterator=function(f){this.object_=f;this.properties_=[];for(var c in f)this.properties_.push(c);this.properties_.reverse()};$jscomp.generator.Context.PropertyIterator.prototype.getNext=function(){for(;0<this.properties_.length;){var f=this.properties_.pop();if(f in this.object_)return f}return null};$jscomp.generator.Engine_=function(f){this.context_=new $jscomp.generator.Context;this.program_=f};
$jscomp.generator.Engine_.prototype.next_=function(f){this.context_.start_();if(this.context_.yieldAllIterator_)return this.yieldAllStep_(this.context_.yieldAllIterator_.next,f,this.context_.next_);this.context_.next_(f);return this.nextStep_()};
$jscomp.generator.Engine_.prototype.return_=function(f){this.context_.start_();var c=this.context_.yieldAllIterator_;if(c)return this.yieldAllStep_('return'in c?c['return']:function(c){return{value:c,done:!0}},f,this.context_.return);this.context_.return(f);return this.nextStep_()};
$jscomp.generator.Engine_.prototype.throw_=function(f){this.context_.start_();if(this.context_.yieldAllIterator_)return this.yieldAllStep_(this.context_.yieldAllIterator_['throw'],f,this.context_.next_);this.context_.throw_(f);return this.nextStep_()};
$jscomp.generator.Engine_.prototype.yieldAllStep_=function(f,c,e){try{var b=f.call(this.context_.yieldAllIterator_,c);$jscomp.generator.ensureIteratorResultIsObject_(b);if(!b.done)return this.context_.stop_(),b;var a=b.value}catch(k){return this.context_.yieldAllIterator_=null,this.context_.throw_(k),this.nextStep_()}this.context_.yieldAllIterator_=null;e.call(this.context_,a);return this.nextStep_()};
$jscomp.generator.Engine_.prototype.nextStep_=function(){for(;this.context_.nextAddress;)try{var f=this.program_(this.context_);if(f)return this.context_.stop_(),{value:f.value,done:!1}}catch(c){this.context_.yieldResult=void 0,this.context_.throw_(c)}this.context_.stop_();if(this.context_.abruptCompletion_){f=this.context_.abruptCompletion_;this.context_.abruptCompletion_=null;if(f.isException)throw f.exception;return{value:f.return,done:!0}}return{value:void 0,done:!0}};
$jscomp.generator.Generator_=function(f){this.next=function(c){return f.next_(c)};this.throw=function(c){return f.throw_(c)};this.return=function(c){return f.return_(c)};$jscomp.initSymbolIterator();this[Symbol.iterator]=function(){return this}};$jscomp.generator.createGenerator=function(f,c){c=new $jscomp.generator.Generator_(new $jscomp.generator.Engine_(c));$jscomp.setPrototypeOf&&$jscomp.setPrototypeOf(c,f.prototype);return c};
$jscomp.asyncExecutePromiseGenerator=function(f){function c(b){return f.next(b)}function e(b){return f.throw(b)}return new Promise(function(b,a){function k(d){d.done?b(d.value):Promise.resolve(d.value).then(c,e).then(k,a)}k(f.next())})};$jscomp.asyncExecutePromiseGeneratorFunction=function(f){return $jscomp.asyncExecutePromiseGenerator(f())};$jscomp.asyncExecutePromiseGeneratorProgram=function(f){return $jscomp.asyncExecutePromiseGenerator(new $jscomp.generator.Generator_(new $jscomp.generator.Engine_(f)))};
$jscomp.polyfill('globalThis',function(f){return f||$jscomp.global},'es_next','es3');$jscomp.findInternal=function(f,c,e){f instanceof String&&(f=String(f));for(var b=f.length,a=0;a<b;a++){var k=f[a];if(c.call(e,k,a,f))return{i:a,v:k}}return{i:-1,v:void 0}};$jscomp.polyfill('Array.prototype.find',function(f){return f?f:function(c,e){return $jscomp.findInternal(this,c,e).v}},'es6','es3');
$jscomp.polyfill('Math.sign',function(f){return f?f:function(c){c=Number(c);return 0===c||isNaN(c)?c:0<c?1:-1}},'es6','es3');$jscomp.polyfill('Object.is',function(f){return f?f:function(c,e){return c===e?0!==c||1/c===1/e:c!==c&&e!==e}},'es6','es3');$jscomp.polyfill('Array.prototype.includes',function(f){return f?f:function(c,e){var b=this;b instanceof String&&(b=String(b));var a=b.length;e=e||0;for(0>e&&(e=Math.max(e+a,0));e<a;e++){var k=b[e];if(k===c||Object.is(k,c))return!0}return!1}},'es7','es3');
$jscomp.checkStringArgs=function(f,c,e){if(null==f)throw new TypeError("The 'this' value for String.prototype."+e+' must not be null or undefined');if(c instanceof RegExp)throw new TypeError('First argument to String.prototype.'+e+' must not be a regular expression');return f+''};$jscomp.polyfill('String.prototype.includes',function(f){return f?f:function(c,e){return-1!==$jscomp.checkStringArgs(this,c,'includes').indexOf(c,e||0)}},'es6','es3');
$jscomp.owns=function(f,c){return Object.prototype.hasOwnProperty.call(f,c)};$jscomp.polyfill('Object.values',function(f){return f?f:function(c){var e=[],b;for(b in c)$jscomp.owns(c,b)&&e.push(c[b]);return e}},'es8','es3');
$jscomp.polyfill('Array.from',function(f){return f?f:function(c,e,b){e=null!=e?e:function(a){return a};var a=[],k='undefined'!=typeof Symbol&&Symbol.iterator&&c[Symbol.iterator];if('function'==typeof k){c=k.call(c);for(var d=0;!(k=c.next()).done;)a.push(e.call(b,k.value,d++))}else for(k=c.length,d=0;d<k;d++)a.push(e.call(b,c[d],d));return a}},'es6','es3');
$jscomp.polyfill('String.prototype.startsWith',function(f){return f?f:function(c,e){var b=$jscomp.checkStringArgs(this,c,'startsWith');c+='';var a=b.length,k=c.length;e=Math.max(0,Math.min(e|0,b.length));for(var d=0;d<k&&e<a;)if(b[e++]!=c[d++])return!1;return d>=k}},'es6','es3');$jscomp.checkEs6ConformanceViaProxy=function(){try{var f={},c=Object.create(new $jscomp.global.Proxy(f,{get:function(e,b,a){return e==f&&'q'==b&&a==c}}));return!0===c.q}catch(e){return!1}};
$jscomp.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS=!1;$jscomp.ES6_CONFORMANCE=$jscomp.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS&&$jscomp.checkEs6ConformanceViaProxy();
$jscomp.polyfill('WeakMap',function(f){function c(){if(!f||!Object.seal)return!1;try{var a=Object.seal({}),d=Object.seal({}),b=new f([[a,2],[d,3]]);if(2!=b.get(a)||3!=b.get(d))return!1;b.delete(a);b.set(d,4);return!b.has(a)&&4==b.get(d)}catch(u){return!1}}function e(){}function b(a){var d=typeof a;return'object'===d&&null!==a||'function'===d}function a(a){if(!$jscomp.owns(a,d)){var b=new e;$jscomp.defineProperty(a,d,{value:b})}}function k(d){var b=Object[d];b&&(Object[d]=function(d){if(d instanceof
e)return d;a(d);return b(d)})}if($jscomp.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS){if(f&&$jscomp.ES6_CONFORMANCE)return f}else if(c())return f;var d='$jscomp_hidden_'+Math.random();k('freeze');k('preventExtensions');k('seal');var g=0,h=function(a){this.id_=(g+=Math.random()+1).toString();if(a){a=$jscomp.makeIterator(a);for(var d;!(d=a.next()).done;)d=d.value,this.set(d[0],d[1])}};h.prototype.set=function(h,g){if(!b(h))throw Error('Invalid WeakMap key');a(h);if(!$jscomp.owns(h,d))throw Error('WeakMap key fail: '+
h);h[d][this.id_]=g;return this};h.prototype.get=function(a){return b(a)&&$jscomp.owns(a,d)?a[d][this.id_]:void 0};h.prototype.has=function(a){return b(a)&&$jscomp.owns(a,d)&&$jscomp.owns(a[d],this.id_)};h.prototype.delete=function(a){return b(a)&&$jscomp.owns(a,d)&&$jscomp.owns(a[d],this.id_)?delete a[d][this.id_]:!1};return h},'es6','es3');$jscomp.MapEntry=function(){};
$jscomp.polyfill('Map',function(f){function c(){if($jscomp.ASSUME_NO_NATIVE_MAP||!f||'function'!=typeof f||!f.prototype.entries||'function'!=typeof Object.seal)return!1;try{var a=Object.seal({x:4}),d=new f($jscomp.makeIterator([[a,'s']]));if('s'!=d.get(a)||1!=d.size||d.get({x:4})||d.set({x:4},'t')!=d||2!=d.size)return!1;var b=d.entries(),g=b.next();if(g.done||g.value[0]!=a||'s'!=g.value[1])return!1;g=b.next();return g.done||4!=g.value[0].x||'t'!=g.value[1]||!b.next().done?!1:!0}catch(u){return!1}}
if($jscomp.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS){if(f&&$jscomp.ES6_CONFORMANCE)return f}else if(c())return f;$jscomp.initSymbolIterator();var e=new WeakMap,b=function(a){this.data_={};this.head_=d();this.size=0;if(a){a=$jscomp.makeIterator(a);for(var b;!(b=a.next()).done;)b=b.value,this.set(b[0],b[1])}};b.prototype.set=function(d,b){d=0===d?0:d;var h=a(this,d);h.list||(h.list=this.data_[h.id]=[]);h.entry?h.entry.value=b:(h.entry={next:this.head_,previous:this.head_.previous,head:this.head_,key:d,
value:b},h.list.push(h.entry),this.head_.previous.next=h.entry,this.head_.previous=h.entry,this.size++);return this};b.prototype.delete=function(d){d=a(this,d);return d.entry&&d.list?(d.list.splice(d.index,1),d.list.length||delete this.data_[d.id],d.entry.previous.next=d.entry.next,d.entry.next.previous=d.entry.previous,d.entry.head=null,this.size--,!0):!1};b.prototype.clear=function(){this.data_={};this.head_=this.head_.previous=d();this.size=0};b.prototype.has=function(d){return!!a(this,d).entry};
b.prototype.get=function(d){return(d=a(this,d).entry)&&d.value};b.prototype.entries=function(){return k(this,function(a){return[a.key,a.value]})};b.prototype.keys=function(){return k(this,function(a){return a.key})};b.prototype.values=function(){return k(this,function(a){return a.value})};b.prototype.forEach=function(a,d){for(var b=this.entries(),h;!(h=b.next()).done;)h=h.value,a.call(d,h[1],h[0],this)};b.prototype[Symbol.iterator]=b.prototype.entries;var a=function(a,d){var b=d&&typeof d;'object'==
b||'function'==b?e.has(d)?b=e.get(d):(b=''+ ++g,e.set(d,b)):b='p_'+d;var h=a.data_[b];if(h&&$jscomp.owns(a.data_,b))for(a=0;a<h.length;a++){var c=h[a];if(d!==d&&c.key!==c.key||d===c.key)return{id:b,list:h,index:a,entry:c}}return{id:b,list:h,index:-1,entry:void 0}},k=function(a,d){var b=a.head_;return $jscomp.iteratorPrototype(function(){if(b){for(;b.head!=a.head_;)b=b.previous;for(;b.next!=b.head;)return b=b.next,{done:!1,value:d(b)};b=null}return{done:!0,value:void 0}})},d=function(){var a={};return a.previous=
a.next=a.head=a},g=0;return b},'es6','es3');
$jscomp.polyfill('Set',function(f){function c(){if($jscomp.ASSUME_NO_NATIVE_SET||!f||'function'!=typeof f||!f.prototype.entries||'function'!=typeof Object.seal)return!1;try{var b=Object.seal({x:4}),a=new f($jscomp.makeIterator([b]));if(!a.has(b)||1!=a.size||a.add(b)!=a||1!=a.size||a.add({x:4})!=a||2!=a.size)return!1;var c=a.entries(),d=c.next();if(d.done||d.value[0]!=b||d.value[1]!=b)return!1;d=c.next();return d.done||d.value[0]==b||4!=d.value[0].x||d.value[1]!=d.value[0]?!1:c.next().done}catch(g){return!1}}
if($jscomp.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS){if(f&&$jscomp.ES6_CONFORMANCE)return f}else if(c())return f;$jscomp.initSymbolIterator();var e=function(b){this.map_=new Map;if(b){b=$jscomp.makeIterator(b);for(var a;!(a=b.next()).done;)this.add(a.value)}this.size=this.map_.size};e.prototype.add=function(b){b=0===b?0:b;this.map_.set(b,b);this.size=this.map_.size;return this};e.prototype.delete=function(b){b=this.map_.delete(b);this.size=this.map_.size;return b};e.prototype.clear=function(){this.map_.clear();
this.size=0};e.prototype.has=function(b){return this.map_.has(b)};e.prototype.entries=function(){return this.map_.entries()};e.prototype.values=function(){return this.map_.values()};e.prototype.keys=e.prototype.values;e.prototype[Symbol.iterator]=e.prototype.values;e.prototype.forEach=function(b,a){var c=this;this.map_.forEach(function(d){return b.call(a,d,d,c)})};return e},'es6','es3');
$jscomp.assign='function'==typeof Object.assign?Object.assign:function(f,c){for(var e=1;e<arguments.length;e++){var b=arguments[e];if(b)for(var a in b)$jscomp.owns(b,a)&&(f[a]=b[a])}return f};$jscomp.polyfill('Object.assign',function(f){return f||$jscomp.assign},'es6','es3');$jscomp.polyfill('Number.parseFloat',function(f){return f||parseFloat},'es6','es3');if('undefined'===typeof Recite||!Recite)var Recite={};
Recite=function(){function f(a){var d={persist:!0,autoEnable:!1,observeDom:!0,selectionMethod:'tooltip',rootNode:document.body,css:Recite.baseUrl+'/assets/'+Recite.version+'/css/recite.css',enableButton:'.recite-enable',enableFragment:'#recite-enable',enableButtonToggle:!1,buttonDeactivateContent:'Deactivate Recite',buttonDeactivateContentElement:'.recite-enable',parser:Recite.Parser.Html,autoCache:!0,defaultLanguage:null,showBrand:!0,shadowDomSupport:!1,cookieLife:365,excludeUrlParamsForStats:!1,
classname:null,button:null,wrapTag:null,mode:null};a=a||{};a=Recite.Util.merge(d,a);c(a);return a}function c(a,b){'undefined'===typeof b&&(b=Recite);Recite.Util.each(a,function(a,d){a=b[a];'undefined'!==typeof a&&(a.setOptions?a.setOptions(d):c(d,a))})}function e(d){a=f(Recite.Util.merge(a,d));try{a=f(Recite.Util.merge(a,JSON.parse(''.replace('{dot}','.'))))}catch(h){Recite.Debug.log('API Options are not loaded correctly')}Recite.Debug.log('Recite','(Version '+Recite.version+') Load called with options:',
d);d=Recite.Sizzle(a.enableButton);Recite.Event.publish('Recite:load');var c=Recite.Storage.Cookie.load('Recite.Persist');null!==a.enableFragment&&window.location.hash===a.enableFragment&&Recite.enable();(a.autoEnable&&!1!==c||a.persist&&!0===c)&&Recite.enable();null!==a.enableButton&&Recite.DomEvent.add(d,'click',function(){a.enableButtonToggle?b?Recite.disable():Recite.enable():Recite.enable()});Recite.Event.subscribe('Recite:ModuleEvent',function(a,d){Recite.Tracker.track(d.name,d.event)});Recite.Event.subscribe('Controls:loaded',
function(){var a=Recite.baseUrl,d=Recite.Sizzle('.recite-accessibility-statement-link')[0];d&&(a.match(/au/gi)||a.match(/local/gi)?d.setAttribute('href','https://reciteme.com/au/policies/assistive-toolbar-accessibility-statement/'):a.match(/uswest/gi)?d.setAttribute('href','https://reciteme.com/us/policies/assistive-toolbar-accessibility-statement/'):d.setAttribute('href','https://reciteme.com/policies/assistive-toolbar-accessibility-statement/'))})}var b=!1,a={},k=!1;return{namespace:function(){var a=
arguments,b=null,h,c;for(h=0;h<a.length;h+=1){var k=(''+a[h]).split('.');b=Recite;for(c='Recite'===k[0]?1:0;c<k.length;c+=1)b[k[c]]=b[k[c]]||{},b=b[k[c]]}return b},load:function(a){'complete'===document.readyState||'interactive'===document.readyState?e(a):Recite.DomEvent.add(window,'load',function(){e(a)})},enable:function(){if(b)return Recite.Debug.log('Recite','Already enabled, not re-enabling.'),null;var d=!1;if(a.persist){var c=Recite.Storage.Cookie.load('Recite.Persist');c&&1==c&&(d=!0);Recite.Storage.Cookie.save('Recite.Persist',
!0,a.cookieLife)}a.enableButtonToggle&&(c=Recite.Sizzle(a.buttonDeactivateContentElement),Recite.Util.each(c,function(d,b){b.innerHTML=a.buttonDeactivateContent}));Recite.AssetLoader.css(a.css,function(){Recite.Debug.log('Recite','Recite CSS loaded');Recite.Controls.load(document)});Recite.Event.subscribe('Controls:loaded',function(){Recite.Preferences.load();Recite.Controls.Desktop.applyTabOrder();Recite.Util.each(Recite.Sizzle('.recite-version'),function(a,d){d.innerHTML='Ver: '+Recite.version})});
Recite.Event.subscribe('Recite.Parser:parsed',function(){a.observeDom&&Recite.Dom.Observer.observe(document.getElementById('recite-wrapper'))});Recite.Event.subscribe('Preferences:load',function(b,c){k||(k=!0,null!==a.defaultLanguage&&null===Recite.Preferences.get('language')&&Recite.Preferences.set('language',a.defaultLanguage),setTimeout(function(){var b=Recite.Language.Translate.getWorkingPageLanguage();Recite.Stats.log('toolbar','page','launch',a.autoEnable||d?'auto':'confirm',null,b);var c=Recite.Util.getWindowUrlForStats();
Recite.Stats.log('page','page','view','auto',c,b)},500))});'tooltip'===a.selectionMethod?window.setTimeout(function(){if(null!==a.rootNode){var d=a.parser.parse(a.rootNode);Recite.PlayerControls.invoke(d)}},0):'highlight'===a.selectionMethod&&(a.observeDom=!1,Recite.Selection.setOptions({playOnSelection:!0}));Recite.FrameUpdater.enabled()&&Recite.FrameUpdater.load();Recite.Docreader.enabled()&&Recite.Docreader.load();Recite.PauseMedia.isEnabled()&&Recite.PauseMedia.init();Recite.Language.Translate.init();
Recite.Event.publish('Recite:enable');Recite.Debug.log('Recite','Recite enabled (Version:'+Recite.version+')');Recite.Tracker.track('enable');b=!0;Recite.Storage.Cookie.save('Recite.Persist',!0,a.cookieLife)},disable:function(a){var d=Recite.Controls.disableOverlay();'undefined'!=typeof a?(Recite.Event.publish('Recite:disable'),Recite.Storage.Cookie.save('Recite.Persist',!1),window.location.reload()):(Recite.Gui.Modal.show(Recite.Message.getMessage('toolbarCloseHeader','About to close!'),Recite.Message.getMessage('toolbarCloseDialog',
'You are about to close the Recite Me toolbar.  Are you sure you wish to continue? This will cause the page to be refreshed and you will lose any unsaved data.'),Recite.Message.getMessage('toolbarCloseOk','OK'),Recite.Message.getMessage('toolbarCloseCancel','Cancel'),function(){Recite.Event.publish('Recite:disable');Recite.Storage.Cookie.save('Recite.Persist',!1);Recite.Stats.enabled()?Recite.Stats.log('toolbar','toolbar','close','confirm',null,null,!0,function(){window.location.reload()}):window.location.reload()},
function(){Recite.Gui.Notification.show('Close operation canceled');Recite.Stats.log('toolbar','toolbar','close','cancel',null);Recite.Controls.reEnableOverlay(d)},Recite.Sizzle('.recite-sprite-button-close')[0]),Recite.Stats.log('toolbar','toolbar','close','intent',null))},isEnabled:function(){return b},getOptions:function(d){if('undefined'===typeof d)return a;var b;d=d.split('.');var c=a;for(b=0;b<d.length;b++)if(c=c[d[b]],'undefined'===typeof c)return null;return c},version:'3.7.1',baseUrl:'https://api.reciteme.com'}}();
null!==null&&null();Recite.namespace('Recite.Util');
Recite.Util=function(){var f={},c=[],e=Object.prototype.toString,b=null;c['[object Boolean]']='boolean';c['[object Number]']='number';c['[object String]']='string';c['[object Function]']='function';c['[object Array]']='array';c['[object Date]']='date';c['[object RegExp]']='regexp';c['[object Object]']='object';String.prototype.trim||(String.prototype.trim=function(){return this.replace(/^\s\s*/,'').replace(/\s\s*$/,'')},String.prototype.ltrim=function(){return this.replace(/^\s+/,'')},String.prototype.rtrim=
function(){return this.replace(/\s+$/,'')},String.prototype.fulltrim=function(){return this.replace(/(?:(?:^|\n)\s+|\s+(?:$|\n))/g,'').replace(/\s+/g,' ')});return{isFunction:function(a){return'function'===Recite.Util.type(a)},isArray:Array.isArray||function(a){return'array'===Recite.Util.type(a)},isWindow:function(a){return a&&'object'===typeof a&&'setInterval'in a},isNumeric:function(a){return!isNaN(parseFloat(a))&&isFinite(a)},type:function(a){return null==a?String(a):c[e.call(a)]||'object'},clone:function(a){return JSON.parse(JSON.stringify(a))},
guid:function(){return'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g,function(a){var b=16*Math.random()|0;return('x'==a?b:b&3|8).toString(16)})},each:function(a,b,d){var c,h=0,k=a.length,e=void 0===k;if(d)if(e)for(c in a){if(!1===b.apply(a[c],d))break}else for(;h<k&&!1!==b.apply(a[h++],d););else if(e)for(c in a){if(!1===b.call(a[c],c,a[c]))break}else for(;h<k&&!1!==b.call(a[h],h,a[h++]););return a},merge:function(a,b){for(var d in b)try{a[d]=b[d].constructor===Object?Recite.Util.merge(a[d],
b[d]):b[d]}catch(g){a[d]=b[d]}return a},inArray:function(a,b,d){if(b){if(Array.prototype.indexOf)return Array.prototype.indexOf.call(b,a,d);var c=b.length;for(d=d?0>d?Math.max(0,c+d):d:0;d<c;d++)if(d in b&&b[d]===a)return d}return-1},getWindowLocationOrigin:function(a){return a.location.origin||a.location.protocol+'//'+a.location.host},getWindowUrlForStats:function(a){var b=document.location.href;if(Recite.getOptions().excludeUrlParamsForStats||a)b=document.location.protocol+'//'+document.location.host+
document.location.pathname;return b},buildQueryString:function(a){var b='';Recite.Util.each(a,function(a,c){b+='&'+a+'='+encodeURIComponent(c)});return b='?'+b.substring(1)},unSetIFramePointerEvents:function(){if(null==b){var a=Recite.Sizzle('iframe');b=[];Recite.Util.each(a,function(a,d){b.push({frame:d,state:void 0==d.style.pointerEvents?'all':d.style.pointerEvents})})}Recite.Util.each(b,function(a,b){b.frame.style.pointerEvents='none'})},reSetIFramePointerEvents:function(){null!==b&&Recite.Util.each(b,
function(a,b){b.frame.style.pointerEvents=b.state})},trapFocus:function(a){var b=[];if(a)for(var d=0;d<a.length;d++)for(var c=a[d].querySelectorAll('[data-recite-tabbable]'),h=0;h<c.length;h++)b.push(c[h]);0<b.length&&(b[0].focus(),Recite.Key('tab',function(){if(document.activeElement==b[b.length-1])return b[0].focus(),!1}),Recite.Key('shift+tab',function(){if(document.activeElement==b[0])return b[b.length-1].focus(),!1}))},setOptions:function(a){f=Recite.Util.merge(f,a)}}}();Recite.namespace('Event');
Recite.Event=function(){var f={},c=-1;return{publish:function(c,b){if(!f[c])return!1;setTimeout(function(){for(var a=f[c],e=a?a.length:0;e--;)a[e].func(c,b)},0);return!0},subscribe:function(e,b){f[e]||(f[e]=[]);var a=(++c).toString();f[e].push({token:a,func:b});return a},unsubscribe:function(c){for(var b in f)if(f[b])for(var a=0,e=f[b].length;a<e;a++)if(f[b][a].token===c)return f[b].splice(a,1),c;return!1}}}();Recite.namespace('Debug');
Recite.Debug=function(){var f={log:!1};return{setOptions:function(c){f=Recite.Util.merge(f,c)},enable:function(){f.log=!0},log:function(c){null===c&&(c='Recite.Debug');arguments[0]='['+c+']';f.log&&window.console&&Function.apply.call(console.log,console,arguments)}}}();Recite.namespace('Recite.DomEvent');
Recite.DomEvent=function(){return{add:function(f,c,e,b){f=Recite.Util.isArray(f)?f:[f];Recite.Util.each(f,function(a,k){k.addEventListener?b?k.addEventListener(c,function(b){e(b,k,a)},!1):k.addEventListener(c,e,!1):k.attachEvent&&(k['e'+c+e]=e,k[c+e]=function(){var a=window.event;a.target=a.target||a.srcElement;k['e'+c+e](a)},k.attachEvent('on'+c,k[c+e]))})},remove:function(f,c,e){f=Recite.Util.isArray(f)?f:[f];Recite.Util.each(f,function(b,a){a.removeEventListener?a.removeEventListener(c,e,!1):a.detachEvent&&
'undefined'!==typeof a[c+e]&&(a.detachEvent('on'+c,a[c+e]),a[c+e]=null,a['e'+c+e]=null)})}}}();Recite.namespace('XDM');
Recite.XDM=function(){var f,c,e=1,b;return{postMessage:function(a,b,d){b&&(d=d||parent,window.postMessage?d.postMessage(a,b.replace(/([^:]+:\/\/[^\/]+).*/,'$1')):b&&(d.location=b.replace(/#.*$/,'')+'#'+ +new Date+e++ +'&'+a))},receiveMessage:function(a,e){window.postMessage?(a&&(b=function(b){if('string'===typeof e&&b.origin!==e||'[object Function]'===Object.prototype.toString.call(e)&&!1===e(b.origin))return!1;a(b)}),Recite.DomEvent.add(window,'message',b)):(f&&clearInterval(f),f=null,a&&(f=setInterval(function(){var b=
document.location.hash,g=/^#?\d+&/;b!==c&&g.test(b)&&(c=b,a({data:b.replace(g,'')}))},100)))}}}();
(function(){function f(a,d,c,h,g,e){g=0;for(var q=h.length;g<q;g++){var z=h[g];if(z){var l=!1;for(z=z[a];z;){if(z[b]===c){l=h[z.sizset];break}1!==z.nodeType||e||(z[b]=c,z.sizset=g);if(z.nodeName.toLowerCase()===d){l=z;break}z=z[a]}h[g]=l}}}function c(a,d,c,h,g,e){g=0;for(var z=h.length;g<z;g++){var q=h[g];if(q){var l=!1;for(q=q[a];q;){if(q[b]===c){l=h[q.sizset];break}if(1===q.nodeType)if(e||(q[b]=c,q.sizset=g),'string'!==typeof d){if(q===d){l=!0;break}}else if(0<p.filter(d,[q]).length){l=q;break}q=
q[a]}h[g]=l}}}var e=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,b='sizcache'+(Math.random()+'').replace('.',''),a=0,k=Object.prototype.toString,d=!1,g=!0,h=/\\/g,l=/\r\n/g,m=/\W/;[0,0].sort(function(){g=!1;return 0});var p=function(a,b,d,c){d=d||[];var h=b=b||document;if(1!==b.nodeType&&9!==b.nodeType)return[];if(!a||'string'!==typeof a)return d;var q,g,z,l=!0,f=p.isXML(b),A=[],m=a;do if(e.exec(''),q=e.exec(m))if(m=
q[3],A.push(q[1]),q[2]){var y=q[3];break}while(q);if(1<A.length&&w.exec(a))if(2===A.length&&n.relative[A[0]])var u=E(A[0]+A[1],b,c);else for(u=n.relative[A[0]]?[b]:p(A.shift(),b);A.length;)a=A.shift(),n.relative[a]&&(a+=A.shift()),u=E(a,u,c);else if(!c&&1<A.length&&9===b.nodeType&&!f&&n.match.ID.test(A[0])&&!n.match.ID.test(A[A.length-1])&&(q=p.find(A.shift(),b,f),b=q.expr?p.filter(q.expr,q.set)[0]:q.set[0]),b)for(q=c?{expr:A.pop(),set:x(c)}:p.find(A.pop(),1!==A.length||'~'!==A[0]&&'+'!==A[0]||!b.parentNode?
b:b.parentNode,f),u=q.expr?p.filter(q.expr,q.set):q.set,0<A.length?g=x(u):l=!1;A.length;)q=z=A.pop(),n.relative[z]?q=A.pop():z='',null==q&&(q=b),n.relative[z](g,q,f);else g=[];g||(g=u);g||p.error(z||a);if('[object Array]'===k.call(g))if(l)if(b&&1===b.nodeType)for(a=0;null!=g[a];a++)g[a]&&(!0===g[a]||1===g[a].nodeType&&p.contains(b,g[a]))&&d.push(u[a]);else for(a=0;null!=g[a];a++)g[a]&&1===g[a].nodeType&&d.push(u[a]);else d.push.apply(d,g);else x(g,d);y&&(p(y,h,d,c),p.uniqueSort(d));return d};p.uniqueSort=
function(a){if(y&&(d=g,a.sort(y),d))for(var b=1;b<a.length;b++)a[b]===a[b-1]&&a.splice(b--,1);return a};p.matches=function(a,b){return p(a,null,null,b)};p.matchesSelector=function(a,b){return 0<p(b,null,null,[a]).length};p.find=function(a,b,d){var c,g;if(!a)return[];var q=0;for(c=n.order.length;q<c;q++){var z=n.order[q];if(g=n.leftMatch[z].exec(a)){var l=g[1];g.splice(1,1);if('\\'!==l.substr(l.length-1)){g[1]=(g[1]||'').replace(h,'');var e=n.find[z](g,b,d);if(null!=e){a=a.replace(n.match[z],'');break}}}}e||
(e='undefined'!==typeof b.getElementsByTagName?b.getElementsByTagName('*'):[]);return{set:e,expr:a}};p.filter=function(a,b,d,c){for(var h,g,q,z,l,e,x,f,k=a,A=[],m=b,y=b&&b[0]&&p.isXML(b[0]);a&&b.length;){for(q in n.filter)if(null!=(h=n.leftMatch[q].exec(a))&&h[2]&&(e=n.filter[q],l=h[1],g=!1,h.splice(1,1),'\\'!==l.substr(l.length-1))){m===A&&(A=[]);if(n.preFilter[q])if(h=n.preFilter[q](h,m,d,A,c,y),!h)g=z=!0;else if(!0===h)continue;if(h)for(x=0;null!=(l=m[x]);x++)l&&(z=e(l,h,x,m),f=c^z,d&&null!=z?
f?g=!0:m[x]=!1:f&&(A.push(l),g=!0));if(void 0!==z){d||(m=A);a=a.replace(n.match[q],'');if(!g)return[];break}}if(a===k)if(null==g)p.error(a);else break;k=a}return m};p.error=function(a){throw Error('Syntax error, unrecognized expression: '+a);};var u=p.getText=function(a){var b;var d=a.nodeType;var c='';if(d)if(1===d||9===d||11===d){if('string'===typeof a.textContent)return a.textContent;if('string'===typeof a.innerText)return a.innerText.replace(l,'');for(a=a.firstChild;a;a=a.nextSibling)c+=u(a)}else{if(3===
d||4===d)return a.nodeValue}else for(d=0;b=a[d];d++)8!==b.nodeType&&(c+=u(b));return c},n=p.selectors={order:['ID','NAME','TAG'],match:{ID:/#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF\-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(?:(['"])(.*?)\3|(#?(?:[\w\u00c0-\uFFFF\-]|\\.)*)|)|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\(\s*(even|odd|(?:[+\-]?\d+|(?:[+\-]?\d*)?n\s*(?:[+\-]\s*\d+)?))\s*\))?/,
POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{'class':'className','for':'htmlFor'},attrHandle:{href:function(a){return a.getAttribute('href')},type:function(a){return a.getAttribute('type')}},relative:{'+':function(a,b){var d='string'===typeof b,c=d&&!m.test(b);d=d&&!c;c&&(b=b.toLowerCase());c=0;for(var h=a.length,g;c<h;c++)if(g=a[c]){for(;(g=g.previousSibling)&&1!==g.nodeType;);
a[c]=d||g&&g.nodeName.toLowerCase()===b?g||!1:g===b}d&&p.filter(b,a,!0)},'>':function(a,b){var d,c='string'===typeof b,h=0,g=a.length;if(c&&!m.test(b))for(b=b.toLowerCase();h<g;h++){if(d=a[h])d=d.parentNode,a[h]=d.nodeName.toLowerCase()===b?d:!1}else{for(;h<g;h++)(d=a[h])&&(a[h]=c?d.parentNode:d.parentNode===b);c&&p.filter(b,a,!0)}},'':function(b,d,h){var g=a++,q=c;if('string'===typeof d&&!m.test(d)){var l=d=d.toLowerCase();q=f}q('parentNode',d,g,b,l,h)},'~':function(b,d,h){var g=a++,q=c;if('string'===
typeof d&&!m.test(d)){var l=d=d.toLowerCase();q=f}q('previousSibling',d,g,b,l,h)}},find:{ID:function(a,b,d){if('undefined'!==typeof b.getElementById&&!d)return(a=b.getElementById(a[1]))&&a.parentNode?[a]:[]},NAME:function(a,b){if('undefined'!==typeof b.getElementsByName){var d=[];b=b.getElementsByName(a[1]);for(var c=0,h=b.length;c<h;c++)b[c].getAttribute('name')===a[1]&&d.push(b[c]);return 0===d.length?null:d}},TAG:function(a,b){if('undefined'!==typeof b.getElementsByTagName)return b.getElementsByTagName(a[1])}},
preFilter:{CLASS:function(a,b,d,c,g,l){a=' '+a[1].replace(h,'')+' ';if(l)return a;l=0;for(var q;null!=(q=b[l]);l++)q&&(g^(q.className&&0<=(' '+q.className+' ').replace(/[\t\n\r]/g,' ').indexOf(a))?d||c.push(q):d&&(b[l]=!1));return!1},ID:function(a){return a[1].replace(h,'')},TAG:function(a,b){return a[1].replace(h,'').toLowerCase()},CHILD:function(b){if('nth'===b[1]){b[2]||p.error(b[0]);b[2]=b[2].replace(/^\+|\s*/g,'');var d=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec('even'===b[2]&&'2n'||'odd'===b[2]&&'2n+1'||
!/\D/.test(b[2])&&'0n+'+b[2]||b[2]);b[2]=d[1]+(d[2]||1)-0;b[3]=d[3]-0}else b[2]&&p.error(b[0]);b[0]=a++;return b},ATTR:function(a,b,d,c,g,l){b=a[1]=a[1].replace(h,'');!l&&n.attrMap[b]&&(a[1]=n.attrMap[b]);a[4]=(a[4]||a[5]||'').replace(h,'');'~='===a[2]&&(a[4]=' '+a[4]+' ');return a},PSEUDO:function(a,b,d,c,h){if('not'===a[1])if(1<(e.exec(a[3])||'').length||/^\w/.test(a[3]))a[3]=p(a[3],null,null,b);else return a=p.filter(a[3],b,d,1^h),d||c.push.apply(c,a),!1;else if(n.match.POS.test(a[0])||n.match.CHILD.test(a[0]))return!0;
return a},POS:function(a){a.unshift(!0);return a}},filters:{enabled:function(a){return!1===a.disabled&&'hidden'!==a.type},disabled:function(a){return!0===a.disabled},checked:function(a){return!0===a.checked},selected:function(a){a.parentNode&&a.parentNode.selectedIndex;return!0===a.selected},parent:function(a){return!!a.firstChild},empty:function(a){return!a.firstChild},has:function(a,b,d){return!!p(d[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},text:function(a){var b=a.getAttribute('type'),
d=a.type;return'input'===a.nodeName.toLowerCase()&&'text'===d&&(b===d||null===b)},radio:function(a){return'input'===a.nodeName.toLowerCase()&&'radio'===a.type},checkbox:function(a){return'input'===a.nodeName.toLowerCase()&&'checkbox'===a.type},file:function(a){return'input'===a.nodeName.toLowerCase()&&'file'===a.type},password:function(a){return'input'===a.nodeName.toLowerCase()&&'password'===a.type},submit:function(a){var b=a.nodeName.toLowerCase();return('input'===b||'button'===b)&&'submit'===a.type},
image:function(a){return'input'===a.nodeName.toLowerCase()&&'image'===a.type},reset:function(a){var b=a.nodeName.toLowerCase();return('input'===b||'button'===b)&&'reset'===a.type},button:function(a){var b=a.nodeName.toLowerCase();return'input'===b&&'button'===a.type||'button'===b},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)},focus:function(a){return a===a.ownerDocument.activeElement}},setFilters:{first:function(a,b){return 0===b},last:function(a,b,d,c){return b===c.length-
1},even:function(a,b){return 0===b%2},odd:function(a,b){return 1===b%2},lt:function(a,b,d){return b<d[3]-0},gt:function(a,b,d){return b>d[3]-0},nth:function(a,b,d){return d[3]-0===b},eq:function(a,b,d){return d[3]-0===b}},filter:{PSEUDO:function(a,b,d,c){var h=b[1],g=n.filters[h];if(g)return g(a,d,b,c);if('contains'===h)return 0<=(a.textContent||a.innerText||u([a])||'').indexOf(b[3]);if('not'===h){b=b[3];d=0;for(c=b.length;d<c;d++)if(b[d]===a)return!1;return!0}p.error(h)},CHILD:function(a,d){var c;
var h=d[1];var g=a;switch(h){case 'only':case 'first':for(;g=g.previousSibling;)if(1===g.nodeType)return!1;if('first'===h)return!0;g=a;case 'last':for(;g=g.nextSibling;)if(1===g.nodeType)return!1;return!0;case 'nth':h=d[2];var l=d[3];if(1===h&&0===l)return!0;d=d[0];if((c=a.parentNode)&&(c[b]!==d||!a.nodeIndex)){var e=0;for(g=c.firstChild;g;g=g.nextSibling)1===g.nodeType&&(g.nodeIndex=++e);c[b]=d}a=a.nodeIndex-l;return 0===h?0===a:0===a%h&&0<=a/h}},ID:function(a,b){return 1===a.nodeType&&a.getAttribute('id')===
b},TAG:function(a,b){return'*'===b&&1===a.nodeType||!!a.nodeName&&a.nodeName.toLowerCase()===b},CLASS:function(a,b){return-1<(' '+(a.className||a.getAttribute('class'))+' ').indexOf(b)},ATTR:function(a,b){var d=b[1];a=p.attr?p.attr(a,d):n.attrHandle[d]?n.attrHandle[d](a):null!=a[d]?a[d]:a.getAttribute(d);d=a+'';var c=b[2];b=b[4];return null==a?'!='===c:!c&&p.attr?null!=a:'='===c?d===b:'*='===c?0<=d.indexOf(b):'~='===c?0<=(' '+d+' ').indexOf(b):b?'!='===c?d!==b:'^='===c?0===d.indexOf(b):'$='===c?d.substr(d.length-
b.length)===b:'|='===c?d===b||d.substr(0,b.length+1)===b+'-':!1:d&&!1!==a},POS:function(a,b,d,c){var h=n.setFilters[b[2]];if(h)return h(a,d,b,c)}}},w=n.match.POS,r=function(a,b){return'\\'+(b-0+1)},v;for(v in n.match)n.match[v]=new RegExp(n.match[v].source+/(?![^\[]*\])(?![^\(]*\))/.source),n.leftMatch[v]=new RegExp(/(^(?:.|\r|\n)*?)/.source+n.match[v].source.replace(/\\(\d+)/g,r));n.match.globalPOS=w;var x=function(a,b){a=Array.prototype.slice.call(a,0);return b?(b.push.apply(b,a),b):a};try{Array.prototype.slice.call(document.documentElement.childNodes,
0)[0].nodeType}catch(z){x=function(a,b){var d=0;b=b||[];if('[object Array]'===k.call(a))Array.prototype.push.apply(b,a);else if('number'===typeof a.length)for(var c=a.length;d<c;d++)b.push(a[d]);else for(;a[d];d++)b.push(a[d]);return b}}if(document.documentElement.compareDocumentPosition)var y=function(a,b){return a===b?(d=!0,0):a.compareDocumentPosition&&b.compareDocumentPosition?a.compareDocumentPosition(b)&4?-1:1:a.compareDocumentPosition?-1:1};else{y=function(a,b){if(a===b)return d=!0,0;if(a.sourceIndex&&
b.sourceIndex)return a.sourceIndex-b.sourceIndex;var c=[],h=[];var g=a.parentNode;var l=b.parentNode;var e=g;if(g===l)return B(a,b);if(!g)return-1;if(!l)return 1;for(;e;)c.unshift(e),e=e.parentNode;for(e=l;e;)h.unshift(e),e=e.parentNode;g=c.length;l=h.length;for(e=0;e<g&&e<l;e++)if(c[e]!==h[e])return B(c[e],h[e]);return e===g?B(a,h[e],-1):B(c[e],b,1)};var B=function(a,b,d){if(a===b)return d;for(a=a.nextSibling;a;){if(a===b)return-1;a=a.nextSibling}return 1}}(function(){var a=document.createElement('div'),
b='script'+(new Date).getTime(),d=document.documentElement;a.innerHTML="<a name='"+b+"'/>";d.insertBefore(a,d.firstChild);document.getElementById(b)&&(n.find.ID=function(a,b,d){if('undefined'!==typeof b.getElementById&&!d)return(b=b.getElementById(a[1]))?b.id===a[1]||'undefined'!==typeof b.getAttributeNode&&b.getAttributeNode('id').nodeValue===a[1]?[b]:void 0:[]},n.filter.ID=function(a,b){var d='undefined'!==typeof a.getAttributeNode&&a.getAttributeNode('id');return 1===a.nodeType&&d&&d.nodeValue===
b});d.removeChild(a);d=a=null})();(function(){var a=document.createElement('div');a.appendChild(document.createComment(''));0<a.getElementsByTagName('*').length&&(n.find.TAG=function(a,b){b=b.getElementsByTagName(a[1]);if('*'===a[1]){a=[];for(var d=0;b[d];d++)1===b[d].nodeType&&a.push(b[d]);b=a}return b});a.innerHTML="<a href='#'></a>";a.firstChild&&'undefined'!==typeof a.firstChild.getAttribute&&'#'!==a.firstChild.getAttribute('href')&&(n.attrHandle.href=function(a){return a.getAttribute('href',
2)});a=null})();document.querySelectorAll&&function(){var a=p,b=document.createElement('div');b.innerHTML="<p class='TEST'></p>";if(!b.querySelectorAll||0!==b.querySelectorAll('.TEST').length){p=function(b,d,c,h){d=d||document;if(!h&&!p.isXML(d)){var g=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(b);if(g&&(1===d.nodeType||9===d.nodeType)){if(g[1])return x(d.getElementsByTagName(b),c);if(g[2]&&n.find.CLASS&&d.getElementsByClassName)return x(d.getElementsByClassName(g[2]),c)}if(9===d.nodeType){if('body'===
b&&d.body)return x([d.body],c);if(g&&g[3]){var l=d.getElementById(g[3]);if(l&&l.parentNode){if(l.id===g[3])return x([l],c)}else return x([],c)}try{return x(d.querySelectorAll(b),c)}catch(L){}}else if(1===d.nodeType&&'object'!==d.nodeName.toLowerCase()){g=d;var e=(l=d.getAttribute('id'))||'__sizzle__',f=d.parentNode,k=/^\s*[+~]/.test(b);l?e=e.replace(/'/g,'\\$&'):d.setAttribute('id',e);k&&f&&(d=d.parentNode);try{if(!k||f)return x(d.querySelectorAll("[id='"+e+"'] "+b),c)}catch(L){}finally{l||g.removeAttribute('id')}}}return a(b,
d,c,h)};for(var d in a)p[d]=a[d];b=null}}();(function(){var a=document.documentElement,b=a.matchesSelector||a.mozMatchesSelector||a.webkitMatchesSelector||a.msMatchesSelector;if(b){var d=!b.call(document.createElement('div'),'div'),c=!1;try{b.call(document.documentElement,"[test!='']:sizzle")}catch(J){c=!0}p.matchesSelector=function(a,h){h=h.replace(/=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!p.isXML(a))try{if(c||!n.match.PSEUDO.test(h)&&!/!=/.test(h)){var g=b.call(a,h);if(g||!d||a.document&&11!==a.document.nodeType)return g}}catch(C){}return 0<
p(h,null,null,[a]).length}}})();(function(){var a=document.createElement('div');a.innerHTML="<div class='test e'></div><div class='test'></div>";a.getElementsByClassName&&0!==a.getElementsByClassName('e').length&&(a.lastChild.className='e',1!==a.getElementsByClassName('e').length&&(n.order.splice(1,0,'CLASS'),n.find.CLASS=function(a,b,d){if('undefined'!==typeof b.getElementsByClassName&&!d)return b.getElementsByClassName(a[1])},a=null))})();p.contains=document.documentElement.contains?function(a,
b){return a!==b&&(a.contains?a.contains(b):!0)}:document.documentElement.compareDocumentPosition?function(a,b){return!!(a.compareDocumentPosition(b)&16)}:function(){return!1};p.isXML=function(a){return(a=(a?a.ownerDocument||a:0).documentElement)?'HTML'!==a.nodeName:!1};var E=function(a,b,d){var c,h=[],g='';for(b=b.nodeType?[b]:b;c=n.match.PSEUDO.exec(a);)g+=c[0],a=a.replace(n.match.PSEUDO,'');a=n.relative[a]?a+'*':a;c=0;for(var l=b.length;c<l;c++)p(a,b[c],h,d);return p.filter(g,h)};window.Recite.Sizzle=
p})();
(function(f){function c(a,x){a=a?a:'';x=x||{};if('object'==typeof a&&a.hasOwnProperty('_tc_id'))return a;a=e(a);var f=a.r,q=a.g,m=a.b,A=a.a,y=r(100*A)/100,u=x.format||a.format;1>f&&(f=r(f));1>q&&(q=r(q));1>m&&(m=r(m));return{ok:a.ok,format:u,_tc_id:n++,alpha:A,getAlpha:function(){return A},setAlpha:function(a){A=g(a);y=r(100*A)/100},toHsv:function(){var a=k(f,q,m);return{h:360*a.h,s:a.s,v:a.v,a:A}},toHsvString:function(){var a=k(f,q,m),b=r(360*a.h),d=r(100*a.s);a=r(100*a.v);return 1==A?'hsv('+b+', '+
d+'%, '+a+'%)':'hsva('+b+', '+d+'%, '+a+'%, '+y+')'},toHsl:function(){var a=b(f,q,m);return{h:360*a.h,s:a.s,l:a.l,a:A}},toHslString:function(){var a=b(f,q,m),d=r(360*a.h),c=r(100*a.s);a=r(100*a.l);return 1==A?'hsl('+d+', '+c+'%, '+a+'%)':'hsla('+d+', '+c+'%, '+a+'%, '+y+')'},toHex:function(a){return d(f,q,m,a)},toHexString:function(a){return'#'+d(f,q,m,a)},toRgb:function(){return{r:r(f),g:r(q),b:r(m),a:A}},toRgbString:function(){return 1==A?'rgb('+r(f)+', '+r(q)+', '+r(m)+')':'rgba('+r(f)+', '+r(q)+
', '+r(m)+', '+y+')'},toPercentageRgb:function(){return{r:r(100*h(f,255))+'%',g:r(100*h(q,255))+'%',b:r(100*h(m,255))+'%',a:A}},toPercentageRgbString:function(){return 1==A?'rgb('+r(100*h(f,255))+'%, '+r(100*h(q,255))+'%, '+r(100*h(m,255))+'%)':'rgba('+r(100*h(f,255))+'%, '+r(100*h(q,255))+'%, '+r(100*h(m,255))+'%, '+y+')'},toName:function(){return 0===A?'transparent':E[d(f,q,m,!0)]||!1},toFilter:function(a){var b=d(f,q,m),h=b,g=Math.round(255*parseFloat(A)).toString(16),e=g,k=x&&x.gradientType?'GradientType = 1, ':
'';a&&(a=c(a),h=a.toHex(),e=Math.round(255*parseFloat(a.alpha)).toString(16));return'progid:DXImageTransform.Microsoft.gradient('+k+'startColorstr=#'+l(g)+b+',endColorstr=#'+l(e)+h+')'},toString:function(a){var b=!!a;a=a||this.format;var d=!1;b=!b&&1>A&&0<A&&('hex'===a||'hex6'===a||'hex3'===a||'name'===a);'rgb'===a&&(d=this.toRgbString());'prgb'===a&&(d=this.toPercentageRgbString());if('hex'===a||'hex6'===a)d=this.toHexString();'hex3'===a&&(d=this.toHexString(!0));'name'===a&&(d=this.toName());'hsl'===
a&&(d=this.toHslString());'hsv'===a&&(d=this.toHsvString());return b?this.toRgbString():d||this.toHexString()}}}function e(b){var d={r:0,g:0,b:0},c=1,l=!1,e=!1;if('string'==typeof b)a:{b=b.replace(p,'').replace(u,'').toLowerCase();var f=!1;if(B[b])b=B[b],f=!0;else if('transparent'==b){b={r:0,g:0,b:0,a:0,format:'name'};break a}var k;b=(k=z.rgb.exec(b))?{r:k[1],g:k[2],b:k[3]}:(k=z.rgba.exec(b))?{r:k[1],g:k[2],b:k[3],a:k[4]}:(k=z.hsl.exec(b))?{h:k[1],s:k[2],l:k[3]}:(k=z.hsla.exec(b))?{h:k[1],s:k[2],
l:k[3],a:k[4]}:(k=z.hsv.exec(b))?{h:k[1],s:k[2],v:k[3]}:(k=z.hex6.exec(b))?{r:parseInt(k[1],16),g:parseInt(k[2],16),b:parseInt(k[3],16),format:f?'name':'hex'}:(k=z.hex3.exec(b))?{r:parseInt(k[1]+''+k[1],16),g:parseInt(k[2]+''+k[2],16),b:parseInt(k[3]+''+k[3],16),format:f?'name':'hex'}:!1}if('object'==typeof b){if(b.hasOwnProperty('r')&&b.hasOwnProperty('g')&&b.hasOwnProperty('b'))d=b.g,l=b.b,d={r:255*h(b.r,255),g:255*h(d,255),b:255*h(l,255)},l=!0,e='%'===String(b.r).substr(-1)?'prgb':'rgb';else if(b.hasOwnProperty('h')&&
b.hasOwnProperty('s')&&b.hasOwnProperty('v')){b.s=m(b.s);b.v=m(b.v);e=b.h;f=b.s;d=b.v;e=6*h(e,360);f=h(f,100);d=h(d,100);l=w.floor(e);var q=e-l;e=d*(1-f);k=d*(1-q*f);f=d*(1-(1-q)*f);l%=6;d={r:255*[d,k,e,e,f,d][l],g:255*[f,d,d,k,e,e][l],b:255*[e,e,f,d,d,k][l]};l=!0;e='hsv'}else b.hasOwnProperty('h')&&b.hasOwnProperty('s')&&b.hasOwnProperty('l')&&(b.s=m(b.s),b.l=m(b.l),d=a(b.h,b.s,b.l),l=!0,e='hsl');b.hasOwnProperty('a')&&(c=b.a)}c=g(c);return{ok:l,format:b.format||e,r:v(255,x(d.r,0)),g:v(255,x(d.g,
0)),b:v(255,x(d.b,0)),a:c}}function b(a,b,d){a=h(a,255);b=h(b,255);d=h(d,255);var c=x(a,b,d),g=v(a,b,d),l=(c+g)/2;if(c==g)var e=g=0;else{var f=c-g;g=.5<l?f/(2-c-g):f/(c+g);switch(c){case a:e=(b-d)/f+(b<d?6:0);break;case b:e=(d-a)/f+2;break;case d:e=(a-b)/f+4}e/=6}return{h:e,s:g,l:l}}function a(a,b,d){function c(a,b,d){0>d&&(d+=1);1<d&&--d;return d<1/6?a+6*(b-a)*d:.5>d?b:d<2/3?a+(b-a)*(2/3-d)*6:a}a=h(a,360);b=h(b,100);d=h(d,100);if(0===b)d=b=a=d;else{var g=.5>d?d*(1+b):d+b-d*b,e=2*d-g;d=c(e,g,a+1/
3);b=c(e,g,a);a=c(e,g,a-1/3)}return{r:255*d,g:255*b,b:255*a}}function k(a,b,d){a=h(a,255);b=h(b,255);d=h(d,255);var c=x(a,b,d),g=v(a,b,d),e=c-g;if(c==g)var l=0;else{switch(c){case a:l=(b-d)/e+(b<d?6:0);break;case b:l=(d-a)/e+2;break;case d:l=(a-b)/e+4}l/=6}return{h:l,s:0===c?0:e/c,v:c}}function d(a,b,d,c){a=[l(r(a).toString(16)),l(r(b).toString(16)),l(r(d).toString(16))];return c&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)?a[0].charAt(0)+a[1].charAt(0)+
a[2].charAt(0):a.join('')}function g(a){a=parseFloat(a);if(isNaN(a)||0>a||1<a)a=1;return a}function h(a,b){var d=a;'string'==typeof d&&-1!=d.indexOf('.')&&1===parseFloat(d)&&(a='100%');d='string'===typeof a&&-1!=a.indexOf('%');a=v(b,x(0,parseFloat(a)));d&&(a=parseInt(a*b,10)/100);return 1E-6>w.abs(a-b)?1:a%b/parseFloat(b)}function l(a){return 1==a.length?'0'+a:''+a}function m(a){1>=a&&(a=100*a+'%');return a}var p=/^[\s,#]+/,u=/\s+$/,n=0,w=Math,r=w.round,v=w.min,x=w.max,y=w.random;c.fromRatio=function(a,
b){if('object'==typeof a){var d={},g;for(g in a)a.hasOwnProperty(g)&&(d[g]='a'===g?a[g]:m(a[g]));a=d}return c(a,b)};c.equals=function(a,b){return a&&b?c(a).toRgbString()==c(b).toRgbString():!1};c.random=function(){return c.fromRatio({r:y(),g:y(),b:y()})};c.desaturate=function(a,b){b=0===b?0:b||10;a=c(a).toHsl();a.s-=b/100;a.s=v(1,x(0,a.s));return c(a)};c.saturate=function(a,b){b=0===b?0:b||10;a=c(a).toHsl();a.s+=b/100;a.s=v(1,x(0,a.s));return c(a)};c.greyscale=function(a){return c.desaturate(a,100)};
c.lighten=function(a,b){b=0===b?0:b||10;a=c(a).toHsl();a.l+=b/100;a.l=v(1,x(0,a.l));return c(a)};c.darken=function(a,b){b=0===b?0:b||10;a=c(a).toHsl();a.l-=b/100;a.l=v(1,x(0,a.l));return c(a)};c.complement=function(a){a=c(a).toHsl();a.h=(a.h+180)%360;return c(a)};c.triad=function(a){var b=c(a).toHsl(),d=b.h;return[c(a),c({h:(d+120)%360,s:b.s,l:b.l}),c({h:(d+240)%360,s:b.s,l:b.l})]};c.tetrad=function(a){var b=c(a).toHsl(),d=b.h;return[c(a),c({h:(d+90)%360,s:b.s,l:b.l}),c({h:(d+180)%360,s:b.s,l:b.l}),
c({h:(d+270)%360,s:b.s,l:b.l})]};c.splitcomplement=function(a){var b=c(a).toHsl(),d=b.h;return[c(a),c({h:(d+72)%360,s:b.s,l:b.l}),c({h:(d+216)%360,s:b.s,l:b.l})]};c.analogous=function(a,b,d){b=b||6;d=d||30;var g=c(a).toHsl();d=360/d;a=[c(a)];for(g.h=(g.h-(d*b>>1)+720)%360;--b;)g.h=(g.h+d)%360,a.push(c(g));return a};c.monochromatic=function(a,b){b=b||6;var d=c(a).toHsv();a=d.h;var g=d.s;d=d.v;for(var h=[],e=1/b;b--;)h.push(c({h:a,s:g,v:d})),d=(d+e)%1;return h};c.readability=function(a,b){a=c(a).toRgb();
b=c(b).toRgb();return{brightness:Math.abs((299*a.r+587*a.g+114*a.b)/1E3-(299*b.r+587*b.g+114*b.b)/1E3),color:Math.max(a.r,b.r)-Math.min(a.r,b.r)+Math.max(a.g,b.g)-Math.min(a.g,b.g)+Math.max(a.b,b.b)-Math.min(a.b,b.b)}};c.readable=function(a,b){a=c.readability(a,b);return 125<a.brightness&&500<a.color};c.mostReadable=function(a,b){for(var d=null,g=0,h=!1,e=0;e<b.length;e++){var l=c.readability(a,b[e]),f=125<l.brightness&&500<l.color;l=l.brightness/125*3+l.color/500;if(f&&!h||f&&h&&l>g||!f&&!h&&l>g)h=
f,g=l,d=c(b[e])}return d};var B=c.names={aliceblue:'f0f8ff',antiquewhite:'faebd7',aqua:'0ff',aquamarine:'7fffd4',azure:'f0ffff',beige:'f5f5dc',bisque:'ffe4c4',black:'000',blanchedalmond:'ffebcd',blue:'00f',blueviolet:'8a2be2',brown:'a52a2a',burlywood:'deb887',burntsienna:'ea7e5d',cadetblue:'5f9ea0',chartreuse:'7fff00',chocolate:'d2691e',coral:'ff7f50',cornflowerblue:'6495ed',cornsilk:'fff8dc',crimson:'dc143c',cyan:'0ff',darkblue:'00008b',darkcyan:'008b8b',darkgoldenrod:'b8860b',darkgray:'a9a9a9',
darkgreen:'006400',darkgrey:'a9a9a9',darkkhaki:'bdb76b',darkmagenta:'8b008b',darkolivegreen:'556b2f',darkorange:'ff8c00',darkorchid:'9932cc',darkred:'8b0000',darksalmon:'e9967a',darkseagreen:'8fbc8f',darkslateblue:'483d8b',darkslategray:'2f4f4f',darkslategrey:'2f4f4f',darkturquoise:'00ced1',darkviolet:'9400d3',deeppink:'ff1493',deepskyblue:'00bfff',dimgray:'696969',dimgrey:'696969',dodgerblue:'1e90ff',firebrick:'b22222',floralwhite:'fffaf0',forestgreen:'228b22',fuchsia:'f0f',gainsboro:'dcdcdc',ghostwhite:'f8f8ff',
gold:'ffd700',goldenrod:'daa520',gray:'808080',green:'008000',greenyellow:'adff2f',grey:'808080',honeydew:'f0fff0',hotpink:'ff69b4',indianred:'cd5c5c',indigo:'4b0082',ivory:'fffff0',khaki:'f0e68c',lavender:'e6e6fa',lavenderblush:'fff0f5',lawngreen:'7cfc00',lemonchiffon:'fffacd',lightblue:'add8e6',lightcoral:'f08080',lightcyan:'e0ffff',lightgoldenrodyellow:'fafad2',lightgray:'d3d3d3',lightgreen:'90ee90',lightgrey:'d3d3d3',lightpink:'ffb6c1',lightsalmon:'ffa07a',lightseagreen:'20b2aa',lightskyblue:'87cefa',
lightslategray:'789',lightslategrey:'789',lightsteelblue:'b0c4de',lightyellow:'ffffe0',lime:'0f0',limegreen:'32cd32',linen:'faf0e6',magenta:'f0f',maroon:'800000',mediumaquamarine:'66cdaa',mediumblue:'0000cd',mediumorchid:'ba55d3',mediumpurple:'9370db',mediumseagreen:'3cb371',mediumslateblue:'7b68ee',mediumspringgreen:'00fa9a',mediumturquoise:'48d1cc',mediumvioletred:'c71585',midnightblue:'191970',mintcream:'f5fffa',mistyrose:'ffe4e1',moccasin:'ffe4b5',navajowhite:'ffdead',navy:'000080',oldlace:'fdf5e6',
olive:'808000',olivedrab:'6b8e23',orange:'ffa500',orangered:'ff4500',orchid:'da70d6',palegoldenrod:'eee8aa',palegreen:'98fb98',paleturquoise:'afeeee',palevioletred:'db7093',papayawhip:'ffefd5',peachpuff:'ffdab9',peru:'cd853f',pink:'ffc0cb',plum:'dda0dd',powderblue:'b0e0e6',purple:'800080',red:'f00',rosybrown:'bc8f8f',royalblue:'4169e1',saddlebrown:'8b4513',salmon:'fa8072',sandybrown:'f4a460',seagreen:'2e8b57',seashell:'fff5ee',sienna:'a0522d',silver:'c0c0c0',skyblue:'87ceeb',slateblue:'6a5acd',slategray:'708090',
slategrey:'708090',snow:'fffafa',springgreen:'00ff7f',steelblue:'4682b4',tan:'d2b48c',teal:'008080',thistle:'d8bfd8',tomato:'ff6347',turquoise:'40e0d0',violet:'ee82ee',wheat:'f5deb3',white:'fff',whitesmoke:'f5f5f5',yellow:'ff0',yellowgreen:'9acd32'},E=c.hexNames=function(a){var b={},d;for(d in a)a.hasOwnProperty(d)&&(b[a[d]]=d);return b}(B),z={rgb:/rgb[\s|\(]+((?:[-\+]?\d*\.\d+%?)|(?:[-\+]?\d+%?))[,|\s]+((?:[-\+]?\d*\.\d+%?)|(?:[-\+]?\d+%?))[,|\s]+((?:[-\+]?\d*\.\d+%?)|(?:[-\+]?\d+%?))\s*\)?/,rgba:/rgba[\s|\(]+((?:[-\+]?\d*\.\d+%?)|(?:[-\+]?\d+%?))[,|\s]+((?:[-\+]?\d*\.\d+%?)|(?:[-\+]?\d+%?))[,|\s]+((?:[-\+]?\d*\.\d+%?)|(?:[-\+]?\d+%?))[,|\s]+((?:[-\+]?\d*\.\d+%?)|(?:[-\+]?\d+%?))\s*\)?/,
hsl:/hsl[\s|\(]+((?:[-\+]?\d*\.\d+%?)|(?:[-\+]?\d+%?))[,|\s]+((?:[-\+]?\d*\.\d+%?)|(?:[-\+]?\d+%?))[,|\s]+((?:[-\+]?\d*\.\d+%?)|(?:[-\+]?\d+%?))\s*\)?/,hsla:/hsla[\s|\(]+((?:[-\+]?\d*\.\d+%?)|(?:[-\+]?\d+%?))[,|\s]+((?:[-\+]?\d*\.\d+%?)|(?:[-\+]?\d+%?))[,|\s]+((?:[-\+]?\d*\.\d+%?)|(?:[-\+]?\d+%?))[,|\s]+((?:[-\+]?\d*\.\d+%?)|(?:[-\+]?\d+%?))\s*\)?/,hsv:/hsv[\s|\(]+((?:[-\+]?\d*\.\d+%?)|(?:[-\+]?\d+%?))[,|\s]+((?:[-\+]?\d*\.\d+%?)|(?:[-\+]?\d+%?))[,|\s]+((?:[-\+]?\d*\.\d+%?)|(?:[-\+]?\d+%?))\s*\)?/,
hex3:/^([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};'undefined'!==typeof module&&module.exports?module.exports=c:'undefined'!==typeof define&&define(function(){return c});window.Recite.Tinycolor=c})(this);
(function(f){function c(a,b){for(var d=a.length;d--;)if(a[d]===b)return d;return-1}function e(d){var g,e;var f=d.keyCode;-1==c(w,f)&&w.push(f);if(93==f||224==f)f=91;if(f in m)for(g in m[f]=!0,u)u[g]==f&&(b[g]=!0);else{for(h in m)m[h]=d[r[h]];if(b.filter.call(this,d)&&f in l){var k=a();for(e=0;e<l[f].length;e++){var x=l[f][e];if(x.scope==k||'all'==x.scope){var n=0<x.mods.length;for(g in m)if(!m[g]&&-1<c(x.mods,+g)||m[g]&&-1==c(x.mods,+g))n=!1;(0!=x.mods.length||m[16]||m[18]||m[17]||m[91])&&!n||!1!==
x.method(d,x)||(d.preventDefault?d.preventDefault():d.returnValue=!1,d.stopPropagation&&d.stopPropagation(),d.cancelBubble&&(d.cancelBubble=!0))}}}}}function b(a,b,c){var g=k(a);void 0===c&&(c=b,b='all');for(var h=0;h<g.length;h++){var e=[];a=g[h].split('+');1<a.length&&(e=d(a),a=[a[a.length-1]]);a=a[0];a=n[a]||a.toUpperCase().charCodeAt(0);a in l||(l[a]=[]);l[a].push({shortcut:g[h],scope:b,method:c,key:g[h],mods:e})}}function a(){return p||'all'}function k(a){a=a.replace(/\s/g,'');a=a.split(',');
''==a[a.length-1]&&(a[a.length-2]+=',');return a}function d(a){a=a.slice(0,a.length-1);for(var b=0;b<a.length;b++)a[b]=u[a[b]];return a}function g(a,b,d){a.addEventListener?a.addEventListener(b,d,!1):a.attachEvent&&a.attachEvent('on'+b,function(){d(window.event)})}var h,l={},m={16:!1,18:!1,17:!1,91:!1},p='all',u={'\u21e7':16,shift:16,'\u2325':18,alt:18,option:18,'\u2303':17,ctrl:17,control:17,'\u2318':91,command:91},n={backspace:8,tab:9,clear:12,enter:13,'return':13,esc:27,escape:27,space:32,left:37,
up:38,right:39,down:40,del:46,'delete':46,home:36,end:35,pageup:33,pagedown:34,',':188,'.':190,'/':191,'`':192,'-':189,'=':187,';':186,"'":222,'[':219,']':221,'\\':220},w=[];for(h=1;20>h;h++)n['f'+h]=111+h;var r={16:'shiftKey',18:'altKey',17:'ctrlKey',91:'metaKey'};for(h in u)b[h]=!1;g(document,'keydown',function(a){e(a)});g(document,'keyup',function(a){a=a.keyCode;var d,g=c(w,a);0<=g&&w.splice(g,1);if(93==a||224==a)a=91;if(a in m)for(d in m[a]=!1,u)u[d]==a&&(b[d]=!1)});g(window,'focus',function(){for(h in m)m[h]=
!1;for(h in u)b[h]=!1});var v=f.key;f.key=b;f.key.setScope=function(a){p=a||'all'};f.key.getScope=a;f.key.deleteScope=function(a){var b,d;for(b in l){var c=l[b];for(d=0;d<c.length;)c[d].scope===a?c.splice(d,1):d++}};f.key.filter=function(a){a=(a.target||a.srcElement).tagName;return!('INPUT'==a||'SELECT'==a||'TEXTAREA'==a)};f.key.isPressed=function(a){'string'==typeof a&&(a=n[a]||a.toUpperCase().charCodeAt(0));return-1!=c(w,a)};f.key.getPressedKeyCodes=function(){return w.slice(0)};f.key.noConflict=
function(){var a=f.key;f.key=v;return a};f.key.unbind=function(b,c){var g=[],h,e;var f=k(b);for(e=0;e<f.length;e++){var x=f[e].split('+');1<x.length&&(g=d(x),b=x[x.length-1]);b=n[b]||b.toUpperCase().charCodeAt(0);void 0===c&&(c=a());if(!l[b])break;for(h in l[b]){x=l[b][h];var m;if(m=x.scope===c)a:if(x=x.mods,x.length!=g.length)m=!1;else{for(m=0;m<x.length;m++)if(x[m]!==g[m]){m=!1;break a}m=!0}m&&(l[b][h]={})}}};'undefined'!==typeof module&&(module.exports=key);window.Recite.Key=key})(this);
(function(){window.Recite.Readability=function(f){var c=/[.?!]\s[^a-z]/g,e=/[aiouy]+e*|e(?!d$|ly).|[td]ed|le$/g,b={},a='!"#$%&\'()*+,-./:;<=>?@[]^_`{|}~'.split(''),k=function(a,b){b=Math.pow(10,b||0);return Math.floor(a*b+.5*Math.sign(a))/b},d=function(b){return b.split('').filter(function(b){return-1===a.indexOf(b)}).join('')},g=function(a,c,g){if(c&&b.lexiconCount)return b.lexiconCount;!0!==g&&(a=a.split(' ').slice(0,1E3).join(' '));a=d(a);a=a.split(' ').length;return c?b.lexiconCount=a:a},h=function(a,
c){if(c&&b.getWords)return b.getWords;a=a.split(' ').slice(0,1E3).join(' ');a=a.toLowerCase();a=d(a);a=a.split(' ');return c?b.getWords=a:a},l=function(a,d){if(d&&b.syllableCount)return b.syllableCount;a=h(a,d).reduce(function(a,b){return a+(b.match(e)||[1]).length},0);return d?b.syllableCount=a:a},m=function(a,b){var d=0;h(a,b).forEach(function(a){3<=l(a)&&(d+=1)});return d},p=function(a,d){if(d&&b.sentenceCount)return b.sentenceCount;a=a.split(' ').slice(0,1E3).join(' ');var h=0;a=a.split(c);a.forEach(function(a){2>=
g(a,!0,!1)&&(h+=1)});a=Math.max(1,a.length-h);return d?b.sentenceCount=a:a},u=function(a){a=g(a,!0)/p(a,!0);return k(a,2)},n=function(a){a=l(a,!0)/g(a,!0);return k(a,2)},w=function(a){var b=u(a);a=n(a);return k(206.835-1.015*b-84.6*a,2)},r=function(a){var b=u(a);a=n(a);return k(.39*b+11.8*a-15.59,2)},v=function(a){var b=p(a,!0);return 3<=b?(a=m(a,!0),k(1.043*Math.pow(30/b*a,.5)+3.1291,2)):0},x=function(a){var b=a.split(' ').slice(0,1E3).join(' ');b=b.replace(/\s/g,'');b=d(b).length/g(a,!0);b=k(b,
2);b=k(100*b,2);a=p(a,!0)/g(a,!0);a=k(a,2);a=k(100*a,2);return k(.0588*b-.296*a-15.8,2)},y=function(a){var d=a;b.charCount?d=b.charCount:(d=d.split(' ').slice(0,1E3).join(' '),d=d.replace(/\s/g,''),d=b.charCount=d.length);var c=g(a,!0);a=p(a,!0);a=c/a;d=4.71*k(d/c,2)+.5*k(a,2)-21.43;return k(d,2)},B=function(a){var b=0,d=0,c=a.split(' ').slice(0,100).join(' ');h(a,!0).slice(0,100).forEach(function(a){3>l(a)?b+=1:d+=1});a=(b+3*d)/p(c);20>=a&&(a-=2);return k(a/2,2)},E=function(a){var b=h(a,!0).filter(function(a){return 6<
a.length}).length;a=p(a,!0);return k(b/a,2)},z=[],q={};(function(){var a=q.fleschReadingEase=w(f);100>a&&90<=a?z.push(5):90>a&&80<=a?z.push(6):80>a&&70<=a?z.push(7):70>a&&60<=a?(z.push(8),z.push(9)):60>a&&50<=a?z.push(10):50>a&&40<=a?z.push(11):40>a&&30<=a?z.push(12):z.push(13);a=q.fleschKincaidGrade=r(f);z.push(Math.floor(a));z.push(Math.ceil(a));a=q.smogIndex=v(f);z.push(Math.floor(a));z.push(Math.ceil(a));a=q.colemanLiauIndex=x(f);z.push(Math.floor(a));z.push(Math.ceil(a));a=q.automatedReadabilityIndex=
y(f);z.push(Math.floor(a));z.push(Math.ceil(a));a=q.linsearWriteFormula=B(f);z.push(Math.floor(a));z.push(Math.ceil(a));a=q.rix=E(f);7.2<=a?z.push(13):7.2>a&&6.2<=a?z.push(12):6.2>a&&5.3<=a?z.push(11):5.3>a&&4.5<=a?z.push(10):4.5>a&&3.7<=a?z.push(9):3.7>a&&3<=a?z.push(8):3>a&&2.4<=a?z.push(7):2.4>a&&1.8<=a?z.push(6):1.8>a&&1.3<=a?z.push(5):1.3>a&&.8<=a?z.push(4):.8>a&&.5<=a?z.push(3):.5>a&&.2<=a?z.push(2):z.push(1);z=z.sort(function(a,b){return a-b});a=Math.floor(z.length/2);a=k(z.length%2?z[a]:(z[a-
1]+z[a])/2);q.medianGrade=a})();q.readingTime=k(g(f,!1,!0)/4.17,2);return q}})();
Recite.AssetLoader=function(f){function c(a,b){a=f.createElement(a);for(var d in b)b.hasOwnProperty(d)&&a.setAttribute(d,b[d]);a.setAttribute('data-recite-skip','true');return a}function e(b){var d=l[b];if(d){var c=d.callback;var g=d.urls;g.shift();m=0;g.length||(c&&c.call(d.context,d.obj),l[b]=null,p[b].length&&a(b))}}function b(){var a=navigator.userAgent;g={async:!0===f.createElement('script').async};(g.webkit=/AppleWebKit\//.test(a))||(g.ie=/MSIE|Trident/.test(a))||(g.opera=/Opera/.test(a))||
(g.gecko=/Gecko\//.test(a))||(g.unknown=!0)}function a(a,m,u,v,x){var n=function(){e(a)},B='css'===a,r=[],z,q;g||b();if(m)if(m='string'===typeof m?[m]:m.concat(),B||g.async||g.gecko||g.opera)p[a].push({urls:m,callback:u,obj:v,context:x});else{var w=0;for(z=m.length;w<z;++w)p[a].push({urls:[m[w]],callback:w===z-1?u:null,obj:v,context:x})}if(!l[a]&&(q=l[a]=p[a].shift())){h||(h=f.head||f.getElementsByTagName('head')[0]);m=q.urls;w=0;for(z=m.length;w<z;++w){u=m[w];if(B)var D=g.gecko?c('style'):c('link',
{href:u,rel:'stylesheet'});else D=c('script',{src:u}),D.async=!1;D.className='lazyload';D.setAttribute('charset','utf-8');g.ie&&!B&&'onreadystatechange'in D&&!('draggable'in D)?D.onreadystatechange=function(){/loaded|complete/.test(D.readyState)&&(D.onreadystatechange=null,n())}:B&&(g.gecko||g.webkit)?g.webkit?(q.urls[w]=D.href,d()):(D.innerHTML='@import "'+u+'";',k(D)):D.onload=D.onerror=n;r.push(D)}w=0;for(z=r.length;w<z;++w)h.appendChild(r[w])}}function k(a){try{var b=!!a.sheet.cssRules}catch(r){m+=
1;200>m?setTimeout(function(){k(a)},50):b&&e('css');return}e('css')}function d(){var a=l.css,b;if(a){for(b=u.length;0<=--b;)if(u[b].href===a.urls[0]){e('css');break}m+=1;a&&(200>m?setTimeout(d,50):e('css'))}}var g,h,l={},m=0,p={css:[],js:[]},u=f.styleSheets;return{css:function(b,d,c,g){a('css',b,d,c,g)},js:function(b,d,c,g){a('js',b,d,c,g)}}}(this.document);Recite.namespace('Preset');Recite.namespace('preset');
Recite.Preset=Recite.preset=function(){return{square24:{background:Recite.baseUrl+'img/buttons/square24.gif',width:'24px',height:'24px'},square36:{background:Recite.baseUrl+'img/buttons/square36.gif',width:'36px',height:'36px'},hor24_recite:{background:Recite.baseUrl+'img/buttons/recite_hor24.gif',width:'83px',height:'24px'},hor24_recite_red:{background:Recite.baseUrl+'img/buttons/recite_hor24_red.gif',width:'83px',height:'24px'},hor48_recite:{background:Recite.baseUrl+'img/buttons/recite_hor48.gif',
width:'166px',height:'48px'},hor48_recite_red:{background:Recite.baseUrl+'img/buttons/recite_hor48_red.gif',width:'166px',height:'48px'},ver24_recite:{background:Recite.baseUrl+'img/buttons/recite_ver24.gif',width:'24px',height:'109px'},ver24_recite_red:{background:Recite.baseUrl+'img/buttons/recite_ver24_red.gif',width:'24px',height:'109px'},ver48_recite:{background:Recite.baseUrl+'img/buttons/recite_ver48.gif',width:'48px',height:'217px'},ver48_recite_red:{background:Recite.baseUrl+'img/buttons/recite_ver48_red.gif',
width:'48px',height:'217px'},hor24_speak:{background:Recite.baseUrl+'img/buttons/speak_hor24.gif',width:'79px',height:'24px'},hor24_speak_red:{background:Recite.baseUrl+'img/buttons/speak_hor24_red.gif',width:'79px',height:'24px'},hor48_speak:{background:Recite.baseUrl+'img/buttons/speak_hor48.gif',width:'158px',height:'48px'},hor48_speak_red:{background:Recite.baseUrl+'img/buttons/speak_hor48_red.gif',width:'158px',height:'48px'},ver24_speak:{background:Recite.baseUrl+'img/buttons/speak_ver24.gif',
width:'24px',height:'109px'},ver24_speak_red:{background:Recite.baseUrl+'img/buttons/speak_ver24_red.gif',width:'24px',height:'109px'},ver48_speak:{background:Recite.baseUrl+'img/buttons/speak_ver48.gif',width:'48px',height:'217px'},ver48_speak_red:{background:Recite.baseUrl+'img/buttons/speak_ver48_red.gif',width:'48px',height:'217px'},square24_png:{background:Recite.baseUrl+'img/buttons/24x24.png',width:'24px',height:'24px'},square36_png:{background:Recite.baseUrl+'img/buttons/36x36.png',width:'36px',
height:'36px'},hor24_recite_png:{background:Recite.baseUrl+'img/buttons/recite_hor24.png',width:'83px',height:'24px'},hor24_recite_red_png:{background:Recite.baseUrl+'img/buttons/recite_hor24_red.png',width:'83px',height:'24px'},hor48_recite_png:{background:Recite.baseUrl+'img/buttons/recite_hor48.png',width:'166px',height:'48px'},hor48_recite_red_png:{background:Recite.baseUrl+'img/buttons/recite_hor48_red.png',width:'166px',height:'48px'},ver24_recite_png:{background:Recite.baseUrl+'img/buttons/recite_ver24.png',
width:'24px',height:'109px'},ver24_recite_red_png:{background:Recite.baseUrl+'img/buttons/recite_ver24_red.png',width:'24px',height:'109px'},ver48_recite_png:{background:Recite.baseUrl+'img/buttons/recite_ver48.png',width:'48px',height:'217px'},ver48_recite_red_png:{background:Recite.baseUrl+'img/buttons/recite_ver48_red.png',width:'48px',height:'217px'},hor24_speak_png:{background:Recite.baseUrl+'img/buttons/speak_hor24.png',width:'79px',height:'24px'},hor24_speak_red_png:{background:Recite.baseUrl+
'img/buttons/speak_hor24_red.png',width:'79px',height:'24px'},hor48_speak_png:{background:Recite.baseUrl+'img/buttons/speak_hor48.png',width:'158px',height:'48px'},hor48_speak_red_png:{background:Recite.baseUrl+'img/buttons/speak_hor48_red.png',width:'158px',height:'48px'},ver24_speak_png:{background:Recite.baseUrl+'img/buttons/speak_ver24.png',width:'24px',height:'109px'},ver24_speak_red_png:{background:Recite.baseUrl+'img/buttons/speak_ver24_red.png',width:'24px',height:'109px'},ver48_speak_png:{background:Recite.baseUrl+
'img/buttons/speak_ver48.png',width:'48px',height:'217px'},ver48_speak_red_png:{background:Recite.baseUrl+'img/buttons/speak_ver48_red.png',width:'48px',height:'217px'}}}();Recite.namespace('Ajax');
Recite.Ajax=function(){function f(a){var b=Recite.Util.clone(d);return Recite.Util.merge(b,a)}function c(a){var b='';if(a.getResponseHeader)b=/^application\/json/.test(a.getResponseHeader('Content-Type'))?JSON.parse(a.responseText):a.responseText;else if(0<a.responseText.length)try{b=JSON.parse(a.responseText)}catch(l){b=a.responseText}return b}function e(a,b){b=f(b);var d=window.XMLHttpRequest?new XMLHttpRequest:new window.ActiveXObject('Microsoft.XMLHTTP');'GET'===b.method&&null!==b.data&&'undefined'!==
typeof b.data&&(a+=Recite.Util.buildQueryString(b.data));d.open(b.method,a,b.async,b.user,b.password);b.async&&(d.timeout=b.timeout);d.setRequestHeader('Content-Type',b.contentType);if(b.headers)for(var g in b.headers)d.setRequestHeader(g,b.headers[g]);d.onreadystatechange=function(){if(4===d.readyState){var a=c(d);200===d.status||201===d.status?b.success(d,a):b.error(d,a)}};null!==b.beforeSend&&b.beforeSend(d);d.send(b.data)}function b(a,b){b=f(b);var d=new XDomainRequest;'GET'===b.method&&null!==
b.data&&'undefined'!==typeof b.data&&(a+=Recite.Util.buildQueryString(b.data));d.onload=function(){var a=c(d);b.success(d,a)};d.onerror=function(){var a=c(d);b.error(d,a)};d.open(b.method,a);d.timeout=b.timeout;null!==b.beforeSend&&b.beforeSend(d);d.send(b.data)}function a(a,d){'withCredentials'in(window.XMLHttpRequest?new XMLHttpRequest:new window.ActiveXObject('Microsoft.XMLHTTP'))?e(a,d):'undefined'!==typeof window.XDomainRequest?b(a,d):'undefined'===typeof window.flensed?Recite.AssetLoader.js(Recite.baseUrl+
'/js/flxhr/flXHR.js',function(){k(d)}):k(a,d)}function k(a,b){var d=new flensed.flXHR({autoUpdatePlayer:!1,instanceId:'recite-proxy',xmlResponseText:!1,onreadystatechange:function(a){if(4===a.readyState){var d=c(a);200===a.status?b.success(a,d):b.error(a,d)}}});d.open(b.method,a);null!==b.beforeSend&&b.beforeSend(d);d.send(b.data)}var d={method:'POST',contentType:'application/x-www-form-urlencoded',async:!0,username:null,password:null,success:function(){},error:function(){},beforeSend:null,data:null,
timeout:1E4};return{get:function(a,b,d){Recite.Debug.log('Recite.Ajax','Making AJAX request to: '+a);this.ajax(a,{method:'GET',data:b,success:d})},post:function(a,b,d){this.ajax(a,{method:'POST',data:b,success:d})},ajax:function(b,d){'undefined'!==typeof d.data&&'POST'==d.method&&'object'==Recite.Util.type(d.data)&&(d.data=JSON.stringify(d.data));return String(window.location).substr(0,Recite.baseUrl.length)==Recite.baseUrl?e(b,d):a(b,d)},nativeXDomainSupported:function(){return'undefined'!==typeof(new XMLHttpRequest).withCredentials||
'undefined'!==typeof window.XDomainRequest?!0:!1}}}();Recite.namespace('Api');
Recite.Api=function(){function f(b,a){b=e.endpoint+b;a=Recite.Util.merge({guid:a.guid,v:Recite.version},a.data);return b+Recite.Util.buildQueryString(a)}function c(b,a,c){var d=e.endpoint+b;d+=Recite.Util.buildQueryString({v:Recite.version,guid:c.guid,cid:c.cid});c.endpoint&&(d=c.endpoint);Recite.Ajax.ajax(d,{method:a,data:c.data,contentType:c.contentType,headers:c.headers,success:function(a,b){c.success&&c.success(b)},error:function(g,h){Recite.Debug.log('Recite.Api','Error occured during API call to: '+
d,h);if('undefined'!==typeof h.error)if('invalid_grant'===h.error)Recite.Debug.log('Recite.Api','Requesting a new token.'),Recite.Auth.clear(),Recite.Api.call(b,a,c);else{if('invalid_token'===h.error||'invalid_referrer'===h.error||'invalid_ip'===h.error)alert('We have detected invalid usage of Recite and we have disabled future access. If you think this is an error please contact support@reciteme.com'),window.location.reload();c.error&&c.error(h)}}})}var e={endpoint:Recite.baseUrl+'/api/',guid:'186a9de2d4fbe4b9691d695a4c2ac9d61c18c46a'};
return{setOptions:function(b){e=Recite.Util.merge(e,b)},getOptions:function(){return e},call:function(b,a,e){e.contentType=e.contentType||'application/x-www-form-urlencoded';'undefined'===typeof e.authRequired&&(e.authRequired=!0);e.cid=Recite.Auth.getOptions().client_id;e.authRequired?Recite.Auth.getStatus(function(d){'authorized'===d.state&&(e.guid=d.guid,c(b,a,e))}):c(b,a,e)},getUri:function(b,a){'undefined'===typeof a.authRequired&&(a.authRequired=!0);a.cid=Recite.Auth.getOptions().client_id;
a.authRequired?Recite.Auth.getStatus(function(c){'authorized'===c.state&&(a.guid=c.guid,a.success&&a.success(f(b,a)))}):a.success&&a.success(f(b,a))}}}();Recite.namespace('Recite.Dom');
Recite.Dom=function(){function f(b){if(b.nodeType===Node.TEXT_NODE)return b.textContent;try{var a=getComputedStyle(b);if(a&&('none'===a.display||'hidden'===a.visibility||'0'===a.opacity))return'';a='';for(var c=0;c<b.childNodes.length;c++)'RECITEWORDBYWORD'!=b.childNodes[c].tagName&&(a+=f(b.childNodes[c]));return a}catch(d){return Recite.Debug.log('Recite.Dom','Unable to get getComputedStyle() of element: '+b),Recite.Debug.log('Recite.Dom',d),''}}function c(b){if(b.nodeType===Node.TEXT_NODE)return b.textContent;
if(['STYLE','SCRIPT'].includes(b.tagName))return'';for(var a='',e=0;e<b.childNodes.length;e++)'RECITEWORDBYWORD'!=b.childNodes[e].tagName&&(a+=c(b.childNodes[e]));return a}var e={word_filters:{},srollTopPadding:150,skipSelectors:['[aria-hidden=true]']};return{getPosition:function(b){'undefined'!=typeof b.positionalProxy&&null!=b.positionalProxy&&(b=b.positionalProxy);var a=0,c=0;if(b.offsetParent){do'BODY'!==b.tagName&&(a+=b.offsetLeft,c+=b.offsetTop);while(b=b.offsetParent)}return{left:a,top:c}},
isCurrent:function(b){var a=Recite.Dom.getPosition(b);b=b.currentStyle;return 0!==a.left&&0!==a.top&&0<b.width&&0<b.height?!0:!1},getScroll:function(b){'undefined'===typeof b&&(b=window);var a=b.document;if(b.pageYOffset){var c=b.pageYOffset;var d=b.pageXOffset}else a.documentElement&&a.documentElement.scrollTop?(c=a.documentElement.scrollTop,d=a.documentElement.scrollLeft):a.body&&(c=a.body.scrollTop,d=a.body.scrollLeft);return{x:d,y:c}},getStyle:function(b,a){if(b.currentStyle){a=a.replace(/(\-[a-z])/g,
function(a){return a.toUpperCase().replace('-','')});var c=b.currentStyle[a]}else window.getComputedStyle&&(c=document.defaultView.getComputedStyle(b,null).getPropertyValue(a));return c},getStyles:function(b){var a;b.currentStyle?a=b.currentStyle:window.getComputedStyle&&(a=document.defaultView.getComputedStyle(b,null));return a},getText:function(b,a,k){var d='';if('undefined'==typeof b)return'';if('undefined'!==typeof a&&'function'==typeof a)return 0===b.childNodes.length&&(d+=a.call(b)),Recite.Util.each(b.childNodes,
function(b,c){d+=a.call(c)}),d.trim();if('IMG'===b.tagName)d=b.getAttribute('alt');else if(3===b.nodeType)d=b.data;else if('INPUT'===b.tagName||'TEXTAREA'===b.tagName)if(''==b.value)(b=b.getAttribute('placeholder'))&&(d=b+' ');else{if('button'==b.getAttribute('type')||'submit'==b.getAttribute('type'))d=b.value}else d=k?c(b):f(b);null==d&&(d='');for(var g in e.word_filters)d=d.toLowerCase().replace(g,e.word_filters[g]);return null!=d?d.trim():''},getAllWindows:function(b,a){a||(a=[]);b||(b=window);
0===a.length&&a.push(b);b=b.frames;for(var c=0;c<b.length;c++)try{b[c].document.body,a.push(b[c]),0<b[c].frames.length&&a.concat(a,Recite.Dom.getAllWindows(b[c],a))}catch(d){}return a},prepend:function(b,a){if('string'===Recite.Util.type(b)){var c=a.ownerDocument.createElement('div');c.innerHTML=b;for(b=0;b<c.childNodes.length;b++)a.insertBefore(c.childNodes[0],a.childNodes[0])}else a.insertBefore(b,a.childNodes[0])},append:function(b,a){if('string'===Recite.Util.type(b)){var c=a.ownerDocument.createElement('div');
c.innerHTML=b;for(b=0;b<c.childNodes.length;b++)a.appendChild(c.childNodes[b])}else a.appendChild(b)},getSelected:function(){var b='';'undefined'!==typeof window.getSelection?b=window.getSelection().toString():'undefined'!==typeof document.selection&&'Text'===document.selection.type&&(b=document.selection.createRange().text);return b.replace(/^\s+|\s+$/g,'')},isDescendant:function(b,a){for(;b;){if(b===a)return!0;b=b.parentNode}return!1},getAncestors:function(b){for(var a=null,c=[];void 0!==b&&null!==
(a=b.parentNode)&&(void 0===a||1===a.nodeType);)c.push(a),b=a;return c},getWindowDimensions:function(b){var a=b.document;if('number'===typeof b.innerWidth){var c=b.innerWidth;var d=b.innerHeight}else a.documentElement&&(a.documentElement.clientWidth||a.documentElement.clientHeight)?(c=a.documentElement.clientWidth,d=a.documentElement.clientHeight):a.body&&(a.body.clientWidth||a.body.clientHeight)&&(c=a.body.clientWidth,d=a.body.clientHeight);return{width:c,height:d}},getLanguage:function(b){var a=
null;if(void 0===b)return a;if(1===b.nodeType&&void 0!==b.lang&&''!==b.lang)return b.lang.toLowerCase();var c=b.childNodes;if(void 0!==c&&void 0!=c.length&&0<c.length&&(Recite.Util.each(c,function(b,d){for(;null!==d;){if(3!==d.nodeType&&void 0!==d.lang&&''!==d.lang){a=d.lang;break}d=0<d.childNodes.length?d.childNodes[0]:null}}),null!==a))return a.toLowerCase();b=Recite.Dom.getAncestors(b);for(var d in b){c=b[d];if(void 0!==c&&c.lang&&0!==c.lang.length){a=c.lang;break}if(void 0!==c&&1===c.nodeType&&
null!==c.getAttribute('xml:lang')&&''!==c.getAttribute('xml:lang')){a=c.getAttribute('xml:lang');break}}null===a&&(d=Recite.Sizzle('meta[http-equiv="Content-Language"]'),0<d.length&&(a=d[0].getAttribute('content')));return null!==a&&'string'===typeof a?a.toLowerCase():null},getLanguageDirection:function(b){return 1===b.nodeType&&void 0!==b.dir&&''!==b.dir?b.dir.toLowerCase():'ltr'},detectLanguage:function(b,a){b&&0!=b.length?(Recite.Debug.log('Recite.Dom','Auto detecting language'),Recite.Api.call('language-detect',
'POST',{data:{q:b},contentType:'application/json',success:function(b){Recite.Debug.log('Recite.Dom','Language detected: '+b.lang);void 0!=a&&a(null!=b.lang?b.lang.toLowerCase():null)},error:function(){void 0!=a&&a(null)}})):void 0!=a&&a(null)},getNextElement:function(b,a){'undefined'==typeof a&&(a=!1);var c='recite, [data-recite-ele] '+(Recite.FrameUpdater.isActive()?', iframe':'');c=Recite.Sizzle(c);if('undefined'===b||null===b)return Recite.Debug.log('Recite.DOM','Current element is null - probably been removed from DOM'),
c[0];for(var d=null,g=0;g<c.length;g++)if(c[g]===b||null===b||null!==d){if(null===b)d=c[0];else if('undefined'!==typeof c[g+1]){if(!Recite.Dom.isValidElement(c[g+1])){b=c[g+1];continue}d=c[g+1]}else break;b=Recite.Dom.getPosition(d);if(!(b=0>b.left||0>b.top||0==b.top&&0==b.left)){b=d;var e=window.getComputedStyle(b);'none'===e.display||'hidden'===e.visibility||'0'===e.opacity||'0'===e.width||'0'===e.height||'inset(100%)'==e.clipPath?b=!0:(e=b.getBoundingClientRect(),e=document.elementFromPoint(e.left+
e.width/2,(e.top+e.bottom)/2),b=!e||''===e.textContent.trim()||b.contains(e)||e.contains(b)?!1:!0)}if(b)b=d;else{if('IFRAME'!=d.nodeName||a)return d;Recite.Event.publish('FrameUpdater:EnterFrame',{element:d,direction:'next'});break}}return null},getPreviousElement:function(b,a){'undefined'==typeof a&&(a=!1);var c='recite, [data-recite-ele] '+(Recite.FrameUpdater.isActive()?', iframe':'');c=Recite.Sizzle(c);if('undefined'===b||null===b)return Recite.Debug.log('Recite.DOM','getPreviousElement return 1st ele'),
c[0];for(var d=null,g=c.length;0<g;g--)if(c[g]==b||null==b||null!==d){if(null==b)d=c[0];else if('undefined'!==typeof c[g-1]){if(!Recite.Dom.isValidElement(c[g-1])){b=c[g-1];continue}d=c[g-1]}else break;b=Recite.Dom.getPosition(d);if(0>b.left||0>b.top||0==b.top&&0==b.left)b=d;else{if('IFRAME'!=d.nodeName||a)return d;Recite.Event.publish('FrameUpdater:EnterFrame',{element:d,direction:'prev'});break}}return null},getLastElement:function(){var b='recite, [data-recite-ele] '+(Recite.FrameUpdater.isActive()?
', iframe':'');b=Recite.Sizzle(b);return b[b.length-1]},getFirstElement:function(){var b='recite, [data-recite-ele] '+(Recite.FrameUpdater.isActive()?', iframe':'');return Recite.Sizzle(b)[0]},isVisible:function(b){var a=Recite.Dom.getScroll(b.ownerDocument.defaultView),c=Recite.Dom.getPosition(b);Recite.PlayerControls.getProvider().getOptions();var d=Recite.Dom.getWindowDimensions(window),g=c.top-b.offsetHeight+200,e=c.left,f=!1;g<d.height+a.y&&c.top>g&&0<e&&e<d.width+a.x&&(f=!0);return f&&Recite.Dom.isValidElement(b)},
isValidElement:function(b){return null==e.skipSelectors?!0:b.matches(e.skipSelectors)?!1:'HTML'!=b.nodeName&&b.parentNode?Recite.Dom.isValidElement(b.parentNode):!0},scrollTo:function(b){var a=Recite.Dom.getPosition(b);b=a.top-b.offsetHeight;b-=e.srollTopPadding;window.scrollTo(a.left,b)},getIndex:function(b){if('undefined'===typeof b||null===b)return null;for(var a=b.parentElement||b.parentNode,c=-1,d;a&&(d=a.childNodes[++c]);)if(d==b)return c;return-1},getPath:function(b){var a,c=[],d=Recite.Dom.getIndex(b),
g=0;if('undefined'===typeof b||null===b)return null;for(;a=b.parentNode;){++g;if(-1>=d)break;b=a;c.push(d);d=Recite.Dom.getIndex(a)}return c.reverse()},getNode:function(b){var a=document.documentElement,c;if('undefined'===typeof a||null===a)return null;for(c=1;c<b.length;){var d=b[c];'undefined'!==typeof a&&(a=a.childNodes[d]);++c}return a},setOptions:function(b){e=Recite.Util.merge(e,b)}}}();Recite.namespace('Dom.Traverser');
Recite.Dom.Traverser=function(){return{traverse:function(f,c){for(var e=f.childNodes[0];null!==e;){var b=c(e);if(e.hasChildNodes()&&b)e=e.firstChild;else{for(;null===e.nextSibling&&e!==f;)e=e.parentNode;e=e===f?null:e.nextSibling}}}}};Recite.namespace('Recite.Dom.Observer');
Recite.Dom.Observer=function(){function f(){Recite.Util.each(e,function(a,b){b&&(a=b.innerHTML.length,'undefined'===typeof b.prevLength&&(b.prevLength=a),b.prevLength!==a&&(a=Recite.Parser.Html.parse(b),Recite.Event.publish('Recite.Dom.Observor:change',{affectedElements:a}),b.prevLength=b.innerHTML.length))})}var c=null,e=[],b={pollTime:1500,useMutations:!0};return{setOptions:function(a){b=Recite.Util.merge(b,a)},observe:function(a){e.push(a);null===c&&(Recite.Debug.log('Recite.Dom.Observer','Setting up body length polling.'),
c=setInterval(function(){f()},b.pollTime))}}}();Recite.namespace('Auth');
Recite.Auth=function(){function f(b,d){'undefined'===typeof d&&(d={});var c=a.authorization_endpoint+'?response_type='+b+'&client_id='+a.client_id;null!==a.redirect_uri&&(c+='&redirect_uri='+encodeURIComponent(a.redirect_uri));null!==a.required_scope&&(c+='&scope='+a.required_scope);Recite.Util.each(d,function(a,b){c+='&'+a+'='+b});return c}function c(b,c){var g=document.createElement('div');g.setAttribute('class','recite_auth_iframe_wrapper');g.style.top=parseInt(a.popup.top)+'px';g.style.left='50%';
g.style.marginLeft=-(parseInt(a.popup.width)/2)+'px';g.style.height=Recite.Dom.getWindowDimensions(window).height/1.5;g.style.width=a.popup.width;var e=document.createElement('iframe');e.src=b;e.frameborder=0;e.width=a.popup.width;e.style.border=0;e.height=Recite.Dom.getWindowDimensions(window).height/1.5;b=document.createElement('div');b.setAttribute('class','recite_auth_iframe_close recite-sprite-auth-close');b.setAttribute('data-recite-state',c);g.appendChild(b);g.appendChild(e);document.body.appendChild(g);
Recite.DomEvent.add(e,'load',function(){Recite.DomEvent.add(Recite.Sizzle('.recite_auth_iframe_close')[0],'click',function(a){a=a.target.getAttribute('data-recite-state');d[a].parentNode.removeChild(d[a]);delete d[a]})});return g}var e=!1,b={state:null,access_token:null,expires:null,guid:'186a9de2d4fbe4b9691d695a4c2ac9d61c18c46a'},a={authorization_endpoint:Recite.baseUrl+'/oauth/authorize',token_endpoint:Recite.baseUrl+'/oauth/token',client_id:'059717390726eff2fe1b2f2cbba8135edcb5bc7e',redirect_uri:Recite.baseUrl+'/oauth/callback/?uri='+Recite.Util.getWindowLocationOrigin(window),
required_scope:null,type:'iframe',popup:{status:'yes',toolbar:'no',location:'no',menubar:'no',directories:'no',resizable:'no',scrollbars:'no',width:850,height:600,top:'120'}},k=[],d=[],g=[],h=!1,l=[];Recite.XDM.receiveMessage(function(a){Recite.Debug.log('Recite.Auth','Message received:',a);a=JSON.parse(a.data);if(null!==a&&'undefined'!==typeof a.access_token&&-1!==Recite.Util.inArray(a.state,l)){l.splice(Recite.Util.inArray(a.state,l),1);var c=new Date;b.access_token=a.access_token;b.expires=Math.ceil(c.getTime()/
1E3)+parseInt(a.expires_in,10);b.state='authorized';Recite.Event.publish('Auth:authorize',b);e&&Recite.Event.publish('Auth:reauthorize',b);e=!0;Recite.Util.each(g,function(a,d){d(b)});g=[];h=!1;'undefined'!==typeof d[a.state]&&(c=d[a.state],c.parentNode.removeChild(c),delete d[a.state]);'undefined'!==typeof k[a.state]&&(k[a.state].close(),delete k[a.state])}},Recite.baseUrl);return{setOptions:function(b){a=Recite.Util.merge(a,b)},getOptions:function(){return a},isAuthorized:function(){return'undefined'!=
b.guid&&'_GUID_'!=b.guid.substr(1,6)?(b.state='authorized',!0):'authorized'==b.state},clear:function(){b.state=null;b.access_token=null;b.expires=null},getStatus:function(a,c){if(this.isAuthorized())a(b);else if(!c&&this.isAuthorized())a(b);else if(g.push(a),!h){h=!0;a=Recite.Util.guid();l.push(a);c=f('token',{createGuest:1,display:0,state:a});var e=document.createElement('iframe');e.id=a;e.src=c;e.frameborder=0;e.width=0;e.height=0;d[a]=e;Recite.Debug.log('Recite.Auth','Adding iframe to dom');document.body.appendChild(e)}},
authPopup:function(){var b=Recite.Util.guid();l.push(b);var g=f('token',{state:b});if('iframe'===a.type)d[b]=c(g,b);else{var e='';Recite.Util.each(a.popup,function(a,b){e+=a+'='+b+','});e=e.substr(0,e.length-1);e+=',left='+(Math.ceil(screen.width/2)-a.popup.width/2)+',top='+(Math.ceil(screen.height/2)-a.popup.height/2);k[b]=window.open(g,b,e)}}}}();Recite.namespace('Message');
Recite.Message=function(){var f={toolbarCloseHeader:null,toolbarCloseDialog:null,toolbarCloseOk:null,toolbarCloseCancel:null,leavingCloseHeader:null,leavingCloseDialog:null,leavingCloseOk:null,leavingCloseCancel:null};return{setOptions:function(c){f=Recite.Util.merge(f,c)},getOptions:function(){return f},init:function(){},getMessage:function(c,e){return f[c]?f[c]:e}}}();Recite.namespace('Storage');
Recite.Storage=function(){var f={};return{setOptions:function(c){f=Recite.Util.merge(f,c);Recite.Storage.Cookie.setOptions(c.Cookie);Recite.Storage.Api.setOptions(c.Api);Recite.Storage.LocalStorage.setOptions(c.LocalStorage)},getOptions:function(){return f},init:function(){}}}();Recite.namespace('Storage.Cookie');
Recite.Storage.Cookie=function(){function f(e,b,a){if(a){var f=new Date;f.setTime(f.getTime()+864E5*a);a='; expires='+f.toGMTString()}else a='';e=e+'='+encodeURIComponent(b)+a+'; path=/';c.cookiesDomain&&(e+='; domain='+c.cookiesDomain);c.secure&&(e+='; secure');document.cookie=e+'; samesite = strict'}var c={cookiesDomain:'',secure:!1};return{setOptions:function(e){c=Recite.Util.merge(c,e)},save:function(c,b,a){b=JSON.stringify(b);'session'==a&&(a=null);f(c,b,a)},load:function(c,b){a:{c+='=';for(var a=
document.cookie.split(';'),e=0;e<a.length;e++){for(var d=a[e];' '==d.charAt(0);)d=d.substring(1,d.length);if(0==d.indexOf(c)){c=decodeURIComponent(d.substring(c.length,d.length));break a}}c=null}c=JSON.parse(c);b&&b(c);return c},clear:function(c){f(c,'',-1)},supported:function(){return!0}}}();Recite.namespace('Storage.LocalStorage');
Recite.Storage.LocalStorage=function(){var f={};return{save:function(c,e,b){_supported()&&window.localStorage.setItem(c,e)},load:function(c,e){return _supported()?(c=window.localStorage.getItem(c),'undefined'!==typeof e&&e(c),c):null},clear:function(c){_supported()&&window.localStorage.removeItem(c)},supported:function(){try{return'localStorage'in window&&null!==window.localStorage}catch(c){return!1}},setOptions:function(c){f=Recite.Util.merge(f,c)}}}();Recite.namespace('Storage.Api');
Recite.Storage.Api=function(){var f=['Recite.Preferences'],c={};return{save:function(c,b,a){if(!c in f)throw{name:'InvalidNamespace',message:'The provided namespace is invalid.'};'Recite.Preferences'===c?Recite.Api.call('preferences','POST',{data:b,contentType:'application/json',success:function(a){Recite.Debug.log('Recite.Storage.Api','Preferences Saved.')}}):Recite.Storage.Cookie.save(c,b)},load:function(c,b){!c in f||('Recite.Preferences'===c?Recite.Api.call('preferences','GET',{success:b,error:b}):
Recite.Storage.Cookie.load(c,b))},clear:function(c){},supported:function(){return!0},setOptions:function(e){c=Recite.Util.merge(c,e)}}}();Recite.namespace('Preferences');
Recite.Preferences=function(){function f(a){Recite.Storage.Cookie.load('Recite.Preferences',function(b){null!=b&&(Recite.Debug.log('Recite.Preferences','Loading and merging cookie storage preferences'),e=a?Recite.Util.merge(b,e):b);Recite.Event.publish('Preferences:load',e)})}var c={storageEngine:Recite.Storage.Cookie,autoSave:!0,cookieLife:365},e={darkMode:null,style:{backgroundColor:null,font:{color:null,face:null,size:null},link:{color:null},focus:{color:null},marginSize:null,textAlign:null,ruler:{enabled:!1,
color:null},screenMask:{enabled:!1,color:null},wwHighlight:{color:null},lineHeight:null,charSpacing:null},dictionary:{enabled:!1},player:{autoplay:!0,continuePlay:!1,playbackSpeed:1},textMode:{enabled:!1},pauseMedia:{active:!1},focusText:{enabled:!1},playerControls:{enabled:!0},language:null,direction:'',voice:{gender:'f'},magnifier:{enabled:!1},pointer:{color:void 0,size:void 0},readingaid:{enabled:!1},cssFilter:{enabled:!1},userGuide:{enabled:!1,currentPage:1,prevPage:null,showWelcome:null},bsl:{enabled:!1},
voices:{en:'Amy'}},b=Recite.Util.clone(e);Recite.Event.subscribe('Auth:reauthorize',function(){c.storageEngine===Recite.Storage.Api&&Recite.Preferences.load()});return{setOptions:function(a){var b=!1;Recite.Util.each(a,function(a,g){'storageEngine'===a&&(c.storageEngine=null,b=!0)});c=Recite.Util.merge(c,a);b&&Recite.Preferences.load()},save:function(a){Recite.Debug.log('Recite.Preferences','Saving preferences.');c.storageEngine.save('Recite.Preferences',e,c.cookieLife);c.storageEngine!==Recite.Storage.Cookie&&
Recite.Storage.Cookie.save('Recite.Preferences',e,c.cookieLife);Recite.Gui.Notification.show('Your preferences have been saved.  To reset them press the reset button',{read:!1})},load:function(){Recite.Debug.log('Recite.Preferences','Loading preferences.');Recite.Debug.log('Recite.Preferences','Loading primary storage preferences');var a=Recite.Util.clone(b);c.storageEngine.load('Recite.Preferences',function(b){null===b||b.error?f():(Recite.Debug.log('Recite.Preferences','Found user preferences'),
e=Recite.Util.merge(a,b),c.storageEngine!==Recite.Storage.Cookie?f(e):Recite.Event.publish('Preferences:load',e))})},get:function(a){if('undefined'===typeof a)return e;var b;a=a.split('.');var d=e;for(b=0;b<a.length;b++)if(d=d[a[b]],'undefined'===typeof d)return null;return d},set:function(a,b){var d={};'object'===Recite.Util.type(a)?d=a:d[a]=b;'player.autoplay'!=a&&'playerControls.enabled'!=a&&'player.continuePlay'!=a||Recite.Event.publish('Recite:ModuleEvent',{name:'Recite.Preferences',event:a+
': '+b});Recite.Util.each(d,function(a,b){var d;a=a.split('.');var c=e;for(d=0;d<a.length-1;d++)if(c=c[a[d]],'undefined'===typeof c)return null;c[a[d]]=b});Recite.Event.publish('Preferences:set',d);c.autoSave&&Recite.Preferences.save();return null},reset:function(a){Recite.Debug.log('Recite.Preferences','Reset.'+a);var f;var d=a.split('.');var g=e;var h=b;for(f=0;f<d.length-1;f++)g=g[d[f]],h=h[d[f]];var l=h[d[f]];'object'===Recite.Util.type(l)&&(l=Recite.Util.clone(l));g[d[f]]=l;Recite.Preferences.set('userGuide.showWelcome',
!1);Recite.Event.publish('Preferences:reset',{key:a,value:h});c.autoSave&&Recite.Preferences.save()},resetAll:function(){e.focusText.enabled&&(Recite.FocusText.deactivate(),e.focusText.enabled=!1);e.cssFilter.enabled&&(Recite.cssFilter.disable(),e.cssFilter.enabled=!1);Recite.Debug.log('Recite.Preferences','ResetAll.');Recite.Event.publish('Preferences:reset');var a=c.autoSave;c.autoSave=!1;Recite.Util.each(b,function(a,b){Recite.Preferences.reset(a)});c.autoSave=a;c.autoSave&&Recite.Preferences.save();
Recite.Gui.Notification.show('Your preferences have been reset.');Recite.Event.publish('Recite:ModuleEvent',{name:'Recite.Preferences',event:'resetAll'})}}}();Recite.namespace('UI.Toggle');
Recite.UI.Toggle=function(){function f(c){var e=c.ownerDocument?c.ownerDocument:document;c.setAttribute('class','recite-ui-toggle');e=e.createElement('div');e.setAttribute('class','recite-ui-toggle-slider');e.setAttribute('data-recite-tabbable','');c.appendChild(e);Object.defineProperty?Object.defineProperty(c,'checked',{get:function(){return this._checked},set:function(b){(this._checked=b)?this.setAttribute('class',this.getAttribute('class')+' recite-ui-toggle-active'):this.setAttribute('class',
this.getAttribute('class').replace(' recite-ui-toggle-active',''));this.fireEvent?this.fireEvent('onClick'):(b=document.createEvent('Event'),b.initEvent('change',!0,!0),this.dispatchEvent(b))}}):Recite.Debug.log('Recite.UI.Toggle','defineProperty not found');c.checked=!0}return{invoke:function(c,e){c=Recite.Util.isArray(c)?c:[c];Recite.Util.each(c,function(b,a){f(a);Recite.DomEvent.add(a.childNodes[0],'click',function(a){a=a.target.parentNode;a.checked=!a.checked})})}}}();Recite.namespace('UI.Checkbox');
Recite.UI.Checkbox=function(){function f(c){c.setAttribute('class','recite-ui-checkbox');c.setAttribute('data-recite-tabbable','');Object.defineProperty?Object.defineProperty(c,'checked',{get:function(){return this._checked},set:function(c){(this._checked=c)?(this.setAttribute('class',this.getAttribute('class')+' recite-ui-checkbox-active'),this.setAttribute('aria-checked',!0)):(this.setAttribute('class',this.getAttribute('class').replace(' recite-ui-checkbox-active','')),this.setAttribute('aria-checked',
!1));this.fireEvent?this.fireEvent('onClick'):(c=document.createEvent('Event'),c.initEvent('change',!0,!0),this.dispatchEvent(c))}}):Recite.Debug.log('Recite.UI.Checkbox','defineProperty not found');Recite.Preferences.load();c.checked=Recite.Preferences.get(c.getAttribute('data-preference'))}return{invoke:function(c,e){c=Recite.Util.isArray(c)?c:[c];Recite.Util.each(c,function(b,a){f(a);Recite.DomEvent.add(a,'click',function(a){a.target.checked=!a.target.checked})})}}}();Recite.namespace('UI.Dropdown');
Recite.UI.Dropdown=function(){function f(a,b,h){b=b||'default';'undefined'===typeof k[b]&&(k[b]=[]);var d=a.getAttribute('class')||'';a.setAttribute('class',d+' recite-active');Recite.Browser.isMobile()||a.classList.contains('recite-dictionary-top-left')||'recite-reading-aid-overlay'==a.getAttribute('id')||c(a,h);k[b].push(a);'default'!==b&&Recite.Util.each(k[b],function(d,c){'undefined'!==typeof c&&c!==a&&e(c,b)});Recite.Event.publish('DropDown:menuShown',a)}function c(a,b){Recite.Dom.getWindowDimensions(window);
var d=Recite.Sizzle('.recite-controls')[0];b=Recite.Dom.getPosition(b).left-d.scrollLeft-a.offsetWidth/2+20;0>b&&(b=0);a.style.left=b+'px'}function e(b,c){if(1===b.nodeType||3===b.nodeType){Recite.Browser.isMobile()&&(b.style.display='none',a('hide'));var d=b.getAttribute('class')||'';for(b.setAttribute('class',d.replace(' recite-active',''));-1!==(d=Recite.Util.inArray(b,k[c]));)k[c].splice(d,1);c=Recite.Sizzle('.recite-dropdown-invoke, .recite-dropdown-invoke-active, .recite-dropdown-invoke .recite-button',
document);Recite.Util.each(c,function(a,b){b.setAttribute('class',b.getAttribute('class').replace('-active',''))});Recite.Event.publish('DropDown:menuHidden',b)}}function b(a){for(var b in k)for(var d in k[b])e(k[b][d],b)}function a(a){var b='show'==a?'block':'none';a='show'==a?'none':'block';'block'==a?Recite.UI.ColorPicker.hide():Recite.UI.ColorPicker.show();Recite.Sizzle('#recite-colors-mobile-header')[0].style.display='block'==b?'block':'none';Recite.Sizzle('.recite-popup-back')[0].style.display=
'block'==b?'block':'none';Recite.Sizzle('#recite-colors-advanced')[0].style.display='block'==b?'block':'none';b=Recite.Sizzle('#recite-themes-advanced')[0];var d=Recite.Sizzle('#recite-ui-colorpicker')[0];Recite.Sizzle('#recite-swatch-reset-default')[0].style.display=a;Recite.Sizzle('#recite-themes-reset')[0].style.display=a;Recite.Sizzle('#recite-swatches')[0].style.display=a;Recite.Sizzle('#recite-themes-dropdown')[0].querySelector('hr').style.display=a;b.querySelector('hr').style.display=a;b.appendChild(d)}
var k={};Recite.Event.subscribe('Recite:Style:wrappedElements',function(){var a=Recite.Sizzle('#recite-wrapper')[0];Recite.DomEvent.add(a,'touchstart',b);Recite.DomEvent.add(a,'click',b)});return{loaded:function(){return!1},invoke:function(b,c){b=Recite.Util.isArray(b)?b:[b];Recite.Util.each(b,function(b,d){Recite.DomEvent.add(d,'click',function(b){var d=b.target,c=Recite.Sizzle(d.getAttribute('data-target'))[0],g=d.getAttribute('data-group')||'default';if('undefined'!==typeof c){Recite.DomEvent.add(c,
'click',function(a){'undefined'!==typeof a.stopPropagation?a.stopPropagation():a.cancelBubble=!0});if(Recite.Browser.isMobile()){c.style.display='block';var h=c.getAttribute('class')||'';h.includes('recite-popup-mobile')||c.setAttribute('class',h+' recite-popup-mobile');h=c.firstElementChild.getAttribute('class');Recite.Sizzle('#recite-colors-advanced')[0].style.height='500px !important';if('main'==g&&'recite-fixed-popup-close'!=h){h=document.createElement('div');h.setAttribute('class','recite-fixed-popup-close');
h.setAttribute('id','recite-fixed-popup-close');var l=document.createElement('span');l.setAttribute('class','recite-popup-back');l.innerHTML='<';l.addEventListener('click',function(){a('hide')});l.style.display='none';var k=document.createElement('span');k.setAttribute('class','recite-popup-close');k.setAttribute('aria-label','Close popup');k.setAttribute('role','button');k.innerHTML='x';k.addEventListener('click',function(){e(c,g)});h.appendChild(l);h.appendChild(k);c.insertBefore(h,c.firstElementChild)}'default'==
g&&a('show')}/recite-active/g.test(c.getAttribute('class'))?(e(c,g),d.classList.replace('recite-dropdown-invoke-active','recite-dropdown-invoke')):(f(c,g,d),d.classList.replace('recite-dropdown-invoke','recite-dropdown-invoke-active'));'undefined'!==typeof b.stopPropagation?b.stopPropagation():b.cancelBubble=!0}})})},hideGroup:function(a){a=a||null;for(var b in k)null!==a&&a!==b||Recite.Util.each(k[b],function(a,b){e(b)})}}}();Recite.namespace('UI.ColorPicker');
Recite.UI.ColorPicker=function(){function f(a){var b=u.getBoundingClientRect(),d=a.clientY-(b.top+n.offsetTop);d=255<d?255:d;b=Math.abs(360*(d-0)/255-360);w.style.top=d+'px';d=Recite.Tinycolor('hsl('+Math.ceil(b)+', 100%, 50%)');r.style.backgroundColor=d.toRgbString();m&&(d=m.getColor().toHsv(),d.h=Math.ceil(b),m.setColor(d,a))}function c(a){var b=u.getBoundingClientRect(),d=b.left+r.offsetLeft,c=b.top+r.offsetTop;b=Recite.Browser.isMobile()?170:255;c=a.clientY-c;d=a.clientX-d;c=c>b-3?b-3:c;d=d>b-
3?b-3:d;c=3>c?3:c;d=3>d?3:d;if(m){var g=m.getColor().toHsv();g.v=Math.ceil(Math.abs(c-b)/b*100);g.s=Math.ceil(d/b*100);m.setColor(g,a)}x.style.top=c+E.selectorAdjust.top+'px';x.style.left=d+E.selectorAdjust.left+'px'}function e(){Recite.DomEvent.add(n,'mousedown',function(a){f(a)});Recite.DomEvent.add(n,'mouseup',function(a){f(a)});Recite.DomEvent.add(n,'mousemove',function(a){l&&f(a)})}function b(){Recite.DomEvent.add(r,'mousedown',function(a){c(a)});Recite.DomEvent.add(r,'mouseup',function(a){c(a)});
Recite.DomEvent.add(r,'mousemove',function(a){l&&c(a)})}function a(){Recite.DomEvent.add(v,'click',function(){u.style.display='none'})}function k(a){w.style.top=Math.abs(a-360)/360*100+'%';a=Recite.Tinycolor('hsl('+Math.ceil(a)+', 100%, 50%)');r.style.backgroundColor=a.toRgbString()}function d(a){var b=parseInt(Recite.Dom.getStyle(r,'width'));x.style.left=Math.ceil(b/100*100*a)+E.selectorAdjust.left+'px'}function g(a){a=Math.abs(100*a-100);var b=parseInt(Recite.Dom.getStyle(r,'height'));x.style.top=
Math.ceil(b/100*a)+E.selectorAdjust.top+'px'}function h(a){Recite.UI.ColorPicker.hide()}var l=!1,m=null,p=!1,u=null,n=null,w=null,r=null,v=null,x=null,y=0,B=0,E={selectorAdjust:{left:-5,top:-5},markup:'<div id="recite-ui-colorpicker">                    <div class="recite-colorbox-close">Close</div>                    <div class="recite-colorbox recite-sprite-colorpicker-mask">                        <div class="recite-colorselector recite-sprite-colorpicker-selector"></div>                    </div>                    <div class="recite-huebox recite-sprite-colorpicker-hue">                        <div class="recite-hueslider"></div>                    </div>                </div>'};
return{setOptions:function(a){E=Recite.Util.merge(E,a)},init:function(){Recite.DomEvent.add(document.body,'mousedown',function(a){l=!0});Recite.DomEvent.add(document.body,'mouseup',function(a){l=!1});Recite.DomEvent.add(document.body,'click',h);Recite.Browser.isMobile()?Recite.Dom.append(E.markup,Recite.Sizzle('#recite-themes-advanced')[0]):Recite.Dom.append(E.markup,document.body);u=Recite.Sizzle('#recite-ui-colorpicker')[0];v=Recite.Sizzle('.recite-colorbox-close')[0];r=Recite.Sizzle('.recite-colorbox')[0];
x=Recite.Sizzle('.recite-colorselector')[0];n=Recite.Sizzle('.recite-huebox')[0];w=Recite.Sizzle('.recite-hueslider')[0];Recite.DomEvent.add(u,'click',function(a){'undefined'!==typeof a.stopPropagation?a.stopPropagation():a.cancelBubble=!0});p=!0;b();e();a()},invoke:function(a,b){b=b||{};a=Recite.Util.isArray(a)?a:[a];p||this.init();Recite.Util.each(a,function(a,c){a='INPUT'===c.tagName?'focus':'click';c.colorPicker={};c.setColor=function(a,b,c,e){var h=void 0==b||'mouseup'==b.type;if(h||!Recite.Tinycolor.equals(a,
this.getColor()))c=!1===c?!1:!0,e=!1===e?!1:!0,a=Recite.Tinycolor(a),a.ok&&(this.colorPicker.color=a,'INPUT'===this.tagName?c&&(this.value=this.colorPicker.color.toHexString()):this.innerText=this.colorPicker.color.toHexString(),'undefined'!==typeof this.colorPicker.callback&&(e||h)&&this.colorPicker.callback(m,a,b),m===this&&(b=this.colorPicker.color.toHsv(),k(b.h),d(b.s),g(b.v)))};c.getColor=function(){return this.colorPicker.color};var e=Recite.Tinycolor(c.style.backgroundColor);e.ok?c.setColor(e):
c.setColor(Recite.Tinycolor('#000'));Recite.DomEvent.add(c,a,function(a){Recite.UI.ColorPicker.show();m=a.target;if(!Recite.Browser.isMobile()){var b=Recite.Dom.getPosition(m),d=Recite.Dom.getStyle(m,'width'),c=Recite.Sizzle('#recite-colors-advanced')[0];parseInt(Recite.Dom.getPosition(c).top);parseInt(Recite.Dom.getStyle(c,'height'));c=parseInt(Recite.Dom.getStyle(u,'height'));parseInt(Recite.Dom.getStyle(u,'width'));y=window.innerHeight/2-c/2;B=parseInt(b.left)+parseInt(d);u.style.top=y+'px';u.style.left=
B+'px'}Recite.UI.ColorPicker.invalidate();'undefined'!==typeof a.stopPropagation?a.stopPropagation():a.cancelBubble=!0});'undefined'!==typeof b.callback&&(c.colorPicker.callback=b.callback);'INPUT'===c.tagName&&Recite.DomEvent.add(c,'keyup',function(a){this.setColor(a.target.value,a,!1,!0);'undefined'!==typeof a.stopPropagation?a.stopPropagation():a.cancelBubble=!0})})},show:function(){u.style.display='block'},hide:function(){u.style.display='none'},invalidate:function(){var a=m.colorPicker.color.toHsv();
k(a.h);d(a.s);g(a.v)}}}();Recite.namespace('UI.AdvancedColors');
Recite.UI.AdvancedColors=function(){function f(a,b,e){var d=a.getAttribute('data-key'),g=b.toRgbString();c(a,b);a=Recite.Preferences.get(d);g==a||void 0==e||'mouseup'!=e.type&&'blur'!=e.type||(Recite.Debug.log('Recite.UI.AdvancedColors',' set '+d+' to '+g),Recite.Preferences.set(d,g))}function c(a,b){var d=null!=b?b.toRgbString():'transparent';a.parentNode.style.borderColor=d;e(a,d);a.value=null!=b?b.toHexString():''}function e(a,b){switch(a.getAttribute('data-key')){case 'style.backgroundColor':a=Recite.Sizzle('#advanced_colors_background,#advanced_colors_text,#advanced_colors_links,#advanced_colors_focus');
Recite.Util.each(a,function(a,d){d.style.backgroundColor=b});break;case 'style.font.color':a=Recite.Sizzle('#advanced_colors_background,#advanced_colors_text,#advanced_colors_ruler,#advanced_colors_mask,#advanced_colors_focus,#advanced_colors_ww');Recite.Util.each(a,function(a,d){d.style.color=b});break;case 'style.link.color':a=Recite.Sizzle('#advanced_colors_links');Recite.Util.each(a,function(a,d){d.style.color=b});break;case 'style.focus.color':a=Recite.Sizzle('#advanced_colors_focus');Recite.Util.each(a,
function(a,d){d.style.outline='2px solid '+b});break;case 'style.screenMask.color':case 'style.ruler.color':case 'style.wwHighlight.color':a.style.backgroundColor=b}}function b(a,b){if(void 0===a||'style'==a||'Preferences:reset'==a&&void 0!=b&&'style'==b.key||'Preferences:set'==a||'Preferences:load'==a)Recite.Debug.log('AdvancedColors','Update Color Pickers'),Recite.Util.each(k,function(a,b){a=Recite.Preferences.get(a);void 0!=a&&'null'!=a&&''!=a.trim()?(a=Recite.Tinycolor(a),b.value!=a.toHexString()&&
c(b,a)):c(b,null)})}var a={enabled:!0},k={};return{setOptions:function(b){Recite.Debug.log('UI.AdvancedColors',b);a=Recite.Util.merge(a,b)},invoke:function(d,c){Recite.Debug.log('UI.AdvancedColors','invoke '+a.enabled);a.enabled?(d=Recite.Sizzle(d,c),Recite.Util.each(d,function(a,b){a=b.getAttribute('data-key');k[a]=b}),Recite.UI.ColorPicker.invoke(d,{callback:function(a,b,d){f(a,b,d)}}),Recite.Util.each(d,function(a,b){Recite.DomEvent.add(b,'blur',function(a){if(b.value&&1<=b.value.length){var d=
Recite.Tinycolor(b.value);f(b,d,a)}})}),Recite.Event.subscribe('Preferences:load',b),Recite.Event.subscribe('Preferences:reset',b),Recite.Event.subscribe('Preferences:set',b),Recite.Event.subscribe('DropDown:menuHidden',function(a,b){Recite.UI.ColorPicker.hide()})):(d=Recite.Sizzle('#recite-themes-advanced')[0],d.parentNode.removeChild(d))}}}();Recite.namespace('Controls');
Recite.Controls=function(){function f(){Recite.Util.each(Recite.Sizzle('.recite-sprite-button-magnifier'),function(a,b){b.style.display='none'});Recite.Util.each(Recite.Sizzle('.recite-sprite-button-ruler'),function(a,b){b.style.display='none'});Recite.Util.each(Recite.Sizzle('.recite-sprite-button-mp3'),function(a,b){b.style.display='none'});Recite.Util.each(Recite.Sizzle('.recite-sprite-button-dictionary'),function(a,b){b.style.display='none'})}function c(a,b){Recite.Debug.log('Controls','Setting up custom user guide for lang: '+
a);Recite.Util.each(Recite.Sizzle('.recite-sprite-button-userguide'),function(a,d){d.setAttribute('href',b)})}function e(){var a=Recite.Dom.getLanguage(Recite.Sizzle('html')[0]);Recite.Util.each(d.languageOverrides.userGuide.languages,function(b,g){b.toLowerCase()==a.toLowerCase()?c(b,g.src):'undefined'!=typeof g.additionalLangs?Recite.Util.each(g.additionalLangs,function(b,d){d.toLowerCase()==a.toLowerCase()&&c(d,g.src)}):c(b,d.languageOverrides.userGuide['default'].src)})}function b(){var a=Recite.Dom.getLanguage(Recite.Sizzle('html')[0]);
Recite.Util.each(d.modules,function(b,d){null!==a&&'undefined'!=typeof d.localize&&d.localize(a)})}function a(a){d.enabled&&(0===d.modules.length&&(d.modules=[Recite.Controls.Desktop,Recite.Controls.Core]),Recite.Debug.log('Recite.Controls','Loading controls'),Recite.Debug.log('Recite.Controls','Getting controls content'),Recite.Ajax.get(d.url,null,function(c,e){d.enabled&&(Recite.Debug.log('Recite.Controls','Got controls content'),c=document.createElement('div'),c.innerHTML=e,g=c.childNodes[0],e=
Recite.Sizzle('body',a)[0],Recite.Dom.prepend(g,e),Recite.Browser.isMobile()&&(f(),Recite.Debug.log('Recite.Controls','Mobile controls set')),Recite.Util.each(d.modules,function(a,b){b.init();b.invoke(g)}),b(),Recite.Debug.log('Recite.Controls','Controls loaded'),k=!0,Recite.Event.publish('Controls:loaded'))}))}var k=!1,d={enabled:!0,url:Recite.baseUrl+'/assets/'+Recite.version+'/html/header.htm',modules:[],languageOverrides:{userGuide:{languages:{cy:{src:'https://reciteme.com/user-guides/welsh.pdf'},
ar:{src:'https://api.reciteme.com/common/user_guide_ar.pdf',additionalLangs:['ar-UAE','ar-AE']}},'default':{src:'http://reciteme.com/user-guide'}}}};Recite.Event.subscribe('Translate:restore_complete',function(){b();e()});Recite.Event.subscribe('Translate:complete',function(){e()});Recite.Event.subscribe('Controls:loaded',function(){e()});var g=null;return{setOptions:function(a){Recite.Debug.log('Recite.Controls','Setting options');d=Recite.Util.merge(d,a);Recite.Controls.ScrollButtons.setOptions(a.ScrollButtons);
Recite.Controls.Mobile.setOptions(a.Mobile);Recite.Controls.Core.setOptions(a.Core);Recite.Controls.Desktop.setOptions(a.Desktop)},load:function(b){window.self!=window.top?setTimeout(function(){a(b)},2E3):a(b)},disableOverlay:function(){var a=0;Recite.Magnifier.isEnabled()&&(a=1,Recite.Magnifier.disable());Recite.Ruler.isEnabled()&&(a=2,Recite.Ruler.disable());Recite.ScreenMask.isEnabled()&&(a=3,Recite.ScreenMask.disable());return a},reEnableOverlay:function(a){switch(a){case 1:Recite.Magnifier.enable();
break;case 2:Recite.Ruler.enable();break;case 3:Recite.ScreenMask.enable()}},disableInstanceOverlay:function(){Recite.Magnifier.disableInstance();Recite.Ruler.disableInstance();Recite.ScreenMask.disableInstance()},loaded:k,disable:function(){k&&Recite.Util.each(d.modules,function(a,b){'undefined'!=typeof b.disable&&b.disable()});d.enabled=!1}}}();Recite.namespace('Controls.Core');
Recite.Controls.Core=function(){function f(b,d){a();c()}function c(){Recite.Util.each(Recite.Sizzle('.recite-ui-toggle',document),function(a,b){a=b.getAttribute('data-preference');'undefined'!==Recite.Preferences.get(a)&&(Recite.Preferences.get(a)?b.setAttribute('class',b.getAttribute('class').replace('recite-ui-toggle-active','')+' recite-ui-toggle-active'):b.setAttribute('class',b.getAttribute('class').replace('recite-ui-toggle-active','')))});Recite.Util.each(Recite.Sizzle('.recite-ui-checkbox',
document),function(a,b){a=b.getAttribute('data-preference');'undefined'!==Recite.Preferences.get(a)&&(Recite.Preferences.get(a)?b.setAttribute('class',b.getAttribute('class').replace('recite-ui-checkbox-active','')+' recite-ui-checkbox-active'):b.setAttribute('class',b.getAttribute('class').replace('recite-ui-checkbox-active','')))});var a=Recite.Preferences.get('voice.gender');'undefined'!=typeof a&&null!=a&&Recite.Util.each(Recite.Sizzle('.recite-voice',document),function(b,d){b=d.getAttribute('data-value');
d.setAttribute('class',d.getAttribute('class').replace('active',''));d.setAttribute('aria-checked',!1);-1!==b.indexOf(a)&&(d.setAttribute('class',d.getAttribute('class')+' active'),d.setAttribute('aria-checked',!0))});var b=Recite.Preferences.get('player.playbackSpeed');b&&(Recite.Sizzle('#recite-playback-current-speed')[0].innerText=b)}function e(){}function b(a){if('undefined'===typeof a)return p;var b;a=a.split('.');var d=p;for(b=0;b<a.length;b++)if(d=d[a[b]],'undefined'===typeof d)return null;
return d}function a(){Recite.Util.each(m,function(a,d){if('undefined'!==typeof d.text){a=d.text;var c;l.tagPattern.lastIndex=0;for(var g=a;null!==(c=l.tagPattern.exec(a));){var e=b(c[1])||'';g=g.replace(c[0],e)}d.node.nodeValue=g}'undefined'!==typeof d.attributes&&Recite.Util.each(d.attributes,function(a,c){l.tagPattern.lastIndex=0;for(var g=c.value;null!==(a=l.tagPattern.exec(c.value));){var e=b(a[1]);'undefined'===typeof e&&(e=null);g=g.replace(a[0],e)}d.node.setAttribute(c.name,g)})})}function k(a,
b){var c=b.target?b.target:b.srcElement;if(c.hasAttribute('disabled'))Recite.Debug.log('event - disabled',b);else if(Recite.Debug.log('event',b),b=c.getAttribute('data-key').split(' '),a=c.getAttribute('data-value').split(' '),b.length!==a.length)Recite.Debug.log('Recite.Controls.Core','Warning: Number of \n                keys does not match number of values.',c);else{c={};for(var g=0;g<b.length;g++){var e=b[g],f=('-'===a[g].charAt(0)?'-':'')+a[g].replace(/-/g,' ');'toggle'===f&&(f=!Recite.Preferences.get(e));
if(/\+|\-/.test(f[0])){var h='+'===f[0],k=parseInt(f.replace(/[^0-9]/g,''),10),m=!1;if(h&&'0'==f[1]&&'.'==f[2]||'0'==f[2]&&'.'==f[3])m=!0,k/=10;var n=Recite.Preferences.get(e);n=null===n?d(e):n;f=h?n+k:n-k;m&&(f=Math.round(10*f)/10);m=e.replace('style.','').split('.');var p='';Recite.Util.each(m,function(a,b){p+=b.charAt(0).toUpperCase()+b.slice(1)});m=l.hasOwnProperty('max'+p+'Percentage')?l['max'+p+'Percentage']:l.hasOwnProperty('max'+p)?l['max'+p]:l.defaultMax;var u=l.hasOwnProperty('min'+p+'Percentage')?
l['min'+p+'Percentage']:l.hasOwnProperty('min'+p)?l['min'+p]:l.defaultMin;f>m&&(f=m);f<u&&(f=u);'style.font.size'==e&&(m=Recite.Preferences.get('style.zoom'),m=null===m?100:m,h=h?m+k:m-k,h>l.maxFontSizePercentage&&(h=l.maxFontSizePercentage),h<l.minFontSizePercentage&&(h=l.minFontSizePercentage),n>=l.zoomThreshold&&100<h?(c['style.font.size']=l.zoomThreshold,e='style.zoom',f=h):100!=m&&(c['style.zoom']=100));if(0===f.length||'null'===f)f=null}c[e]=f}Recite.Preferences.set(c)}}function d(a){if('undefined'===
typeof a)return 100;var b;a=a.split('.');var d=l.defaults;for(b=0;b<a.length;b++)if(d=d[a[b]],'undefined'===typeof d)return 100;return d}function g(a){Recite.DomEvent.add(Recite.Sizzle('.recite-language-set',a),'click',function(a){a=a.currentTarget?a.currentTarget:a.srcElement;var b=a.getAttribute('data-language');a=a.getAttribute('data-text-direction');'default'===b?(Recite.Preferences.set('direction',Recite.Language.Translate.getOptions().sourceDirection),Recite.Language.Translate.restore(),Recite.Preferences.set('language',
null)):(Recite.Preferences.set('direction',a),Recite.Preferences.set('language',b));Recite.Util.each(Recite.Sizzle('.recite-language-set'),function(a,d){d.setAttribute('class',d.getAttribute('class').replace(' recite-active',''));d.getAttribute('data-language')===b&&d.setAttribute('class',d.getAttribute('class')+' recite-active')})})}function h(a){var b=Recite.Sizzle('.recite-preference-set',a);Recite.DomEvent.add(b,'click',function(a){a.preventDefault?a.preventDefault():a.returnValue=!1;Recite.Event.publish('Controls:affect',
a)});b=Recite.Sizzle('.recite-save',a);Recite.DomEvent.add(b,'click',function(a){a.preventDefault?a.preventDefault():a.returnValue=!1;Recite.Preferences.save()});b=Recite.Sizzle('.recite-reset',a);Recite.DomEvent.add(b,'click',function(a){a.preventDefault?a.preventDefault():a.returnValue=!1;Recite.Preferences.resetAll();Recite.Util.each(Recite.Sizzle('.recite-ui-checkbox'),function(a,b){b.checked=Recite.Preferences.get(b.getAttribute('data-preference'))})});b=Recite.Sizzle('#recite-toolbar-button-guide');
Recite.DomEvent.add(b,'click',function(a){a.preventDefault&&(a.preventDefault?a.preventDefault():a.returnValue=!1);'undefined'!=typeof a.target&&window.open(a.target.getAttribute('href'))});g(a)}var l={tagPattern:/{{([A-Za-z._]+)}}/g,defaultMax:200,defaultMin:30,maxFontSizePercentage:200,minFontSizePercentage:30,zoomThreshold:150,minLineHeight:50,maxLineHeight:300,minCharSpacing:0,maxCharSpacing:20,defaults:{style:{charSpacing:0}},minPlayerPlaybackSpeed:.5,maxPlayerPlaybackSpeed:2},m=[],p={links:{logout:Recite.baseUrl+
'/user/logout'},preferences:null};return{setOptions:function(a){l=Recite.Util.merge(l,a)},init:function(){Recite.Debug.log('Recite.Controls.Core','Core controls invoked');Recite.Event.subscribe('Preferences:load',f);Recite.Event.subscribe('Preferences:set',f);Recite.Event.subscribe('Preferences:reset',f);Recite.Event.subscribe('Auth:reauthorize',e);Recite.Event.subscribe('Controls:affect',k)},invoke:function(a){for(var d=a;null!==d;){if(3===d.nodeType&&0<d.nodeValue.trim().length){var c=d.nodeValue;
if(l.tagPattern.test(c)){var g;l.tagPattern.lastIndex=0;for(var e=c;null!==(g=l.tagPattern.exec(c));){var f=b(g[1])||'';e=e.replace(g[0],f)}d.nodeValue=e;m.push({node:d,text:c})}}if(1===d.nodeType){var k=[];Recite.Util.each(d.attributes,function(a,d){a=d.value;if(l.tagPattern.test(a)){var c;l.tagPattern.lastIndex=0;for(k.push({name:d.name,value:d.value});null!==(c=l.tagPattern.exec(a));)a=b(c[1]),'undefined'===typeof a&&(a=null),d.value=d.value.replace(c[0],a)}});0<k.length&&m.push({node:d,attributes:k})}if(d.hasChildNodes())d=
d.firstChild;else{for(;null===d.nextSibling&&d!==a;)d=d.parentNode;d=d===a?null:d.nextSibling}}Recite.Util.each(Recite.Sizzle('.recite-ui-toggle',a),function(a,b){Recite.UI.Toggle.invoke(b);Recite.DomEvent.add(b,'click',function(a){a=a.currentTarget?a.currentTarget:a.srcElement;Recite.Preferences.set(a.getAttribute('data-preference'),a.checked)})});Recite.Util.each(Recite.Sizzle('.recite-ui-checkbox',a),function(a,b){Recite.UI.Checkbox.invoke(b);Recite.DomEvent.add(b,'click',function(a){a=a.currentTarget?
a.currentTarget:a.srcElement;Recite.Preferences.set(a.getAttribute('data-preference'),a.checked)})});Recite.Util.each(Recite.Sizzle('.recite-slider'),function(a,b){var d=b.getAttribute('data-type');Recite.UI.Slider.invoke(b,function(a){Recite.Event.publish('Slider:'+d,a)})});h(a);Recite.cssFilter.invoke();a=Recite.Sizzle('.recite-sprite-button-focus-text')[0];Recite.FocusText.isEnabled()||a.remove()},disableButtons:function(a,b){b=void 0===b?!1:b;a=Recite.Sizzle(a);Recite.Util.each(a,function(a,d){b?
d.style.display='none':d.setAttribute('disabled','true')})},enableButtons:function(a){a=Recite.Sizzle(a);Recite.Util.each(a,function(a,b){b.style.display='block';b.removeAttribute('disabled')})},bindSetLangugesButtons:function(a){g(a)}}}();Recite.namespace('Controls.ScrollButtons');
Recite.Controls.ScrollButtons=function(){function f(a){var b=Math.min(g.scrollStep,m.offsetWidth-90);m.scrollLeft='right'===a?Math.min(m.scrollLeft+b,m.scrollWidth):Math.max(m.scrollLeft-b,0)}function c(){return h?h:h=document.getElementById('recite-fixed-more-button')||b()}function e(){return l?l:l=document.getElementById('recite-fixed-less-button')||a()}function b(){var a=document.createElement('button');a.id='recite-fixed-more-button';a.setAttribute('tabindex','-1');a.innerHTML="<span aria-hidden='true'>&gt;</span>more";
a.classList.add('recite-fixed-more-button','recite-scroll-btn');a.classList.add();a.addEventListener('click',function(){f('right')});k(a);return a}function a(){var a=document.createElement('button');a.id='recite-fixed-less-button';a.setAttribute('tabindex','-1');a.innerHTML="<span aria-hidden='true'>&lt;</span>less";a.classList.add('recite-fixed-less-button','recite-scroll-btn');a.addEventListener('click',function(){f('left')});k(a);return a}function k(a){var b=document.getElementById('recite-dropdowns'),
d=document.querySelector('#recite-languages-dropdown');b&&b.insertBefore(a,d)}function d(){var a=0;if(g.enableMoreBtn)if(m.offsetWidth+m.scrollLeft>=m.scrollWidth)c().style.display='none';else{var b=c();a+=b.offsetWidth;b.style.display='block'}g.enableLessBtn&&(0>=m.scrollLeft?(e().style.display='none',m.style.marginLeft='0px'):(b=e(),b.style.display='block',a+=b.offsetWidth,m.style.marginLeft=b.offsetWidth+'px'));a=Recite.Browser.isMobile()?a+40:a+200;m.style.width='calc(100vw - '+a+'px)'}var g=
{scrollStep:104,enableMoreBtn:!0,enableLessBtn:!0,allowScroll:!0},h,l,m;return{invoke:function(){m=document.querySelector('.recite-controls');if(g.enableMoreBtn||g.enableLessBtn){g.allowScroll||(m.style.overflow='hidden');d();m.addEventListener('scroll',function(){d()});window.addEventListener('resize',function(){d()},!1);var a=document.querySelectorAll('.recite-button-primary');a=$jscomp.makeIterator(a);for(var b=a.next();!b.done;b=a.next())b.value.addEventListener('focus',function(a){a.target.scrollIntoView({block:'center',
behavior:'smooth'})})}},setOptions:function(a){g=Recite.Util.merge(g,a)}}}();Recite.namespace('Controls.Desktop');
Recite.Controls.Desktop=function(){function f(){var a=Recite.Language.Translate.getAvailableLanguages();'string'==typeof a||!a||0>=a.length||(Recite.Debug.log('Recite.Controls.Desktop','Available languages presented.  Configuring: '+a),Recite.Util.each(w.languages,function(b,d){'undefined'!=typeof d.langCode&&-1===a.indexOf(d.langCode)&&(b=Recite.Sizzle("#recite-languages .recite-language-set[data-language='"+d.langCode+"']"),Recite.Util.each(b,function(a,b){b.remove()}))}))}function c(a,b){if('play'===
b||'stopped'===a.getAttribute('data-status')&&'undefined'===b)return a.setAttribute('class',a.getAttribute('class').replace('recite-sprite-button-play','recite-sprite-button-stop')),a.setAttribute('data-status','playing'),'playing';if('stop'===b||'playing'===a.getAttribute('data-status')&&'undefined'===b)return a.setAttribute('class',a.getAttribute('class').replace('recite-sprite-button-stop','recite-sprite-button-play')),a.setAttribute('data-status','stopped'),'stopped'}function e(){var a=Recite.Sizzle('[tabindex]');
Recite.Util.each(a,function(a,b){parseInt(b.getAttribute('tabindex'))>=w.tabIndexStartValue&&b.setAttribute('tabindex','0')})}function b(d){w.tabEnabled&&(null==u&&(u=w.tabIndexStartValue),d=Recite.Sizzle('[data-recite-tabbable]',d),Recite.Util.each(d,function(d,c){if('undefined'!=typeof c.getAttribute('data-tabbable-offset'))var g=parseInt(c.getAttribute('data-tabbable-offset'));if(null==c.getAttribute('tabindex')){d=u;isNaN(g)||(d+=g);c.setAttribute('tabindex',d);u++;if(-1<(' '+c.className+' ').replace(/[\n\t]/g,
' ').indexOf(' recite-dropdown-invoke ')||-1<(' '+c.className+' ').replace(/[\n\t]/g,' ').indexOf(' recite-sprite-button-dictionary ')||-1<(' '+c.className+' ').replace(/[\n\t]/g,' ').indexOf(' recite-sprite-button-summary '))g=Recite.Sizzle(c.getAttribute('data-target'))[0],b(g);c.onfocus=function(b){var d='undefined'!=typeof b.target?b.target:b.srcElement;Recite.Util.each(Recite.Sizzle('.recite-dropdown-invoke-active'),function(a,b){a=Recite.Sizzle(b.getAttribute('data-target'))[0];Recite.Dom.isDescendant(document.activeElement,
a)||b.click()});Recite.Util.each(Recite.Sizzle('.recite-dropdown'),function(b,c){Recite.Dom.isDescendant(d,c)&&(b=Recite.Sizzle("[data-target='#"+c.getAttribute('id')+"']")[0],'undefined'!=b&&-1==(' '+b.className+' ').replace(/[\n\t]/g,' ').indexOf(' recite-dropdown-invoke-active ')&&a(b))})}}}))}function a(a){var b=parseInt(a.getAttribute('tabindex')),d=0;Recite.Util.each(Recite.Sizzle('.recite-button-primary'),function(a,c){a=parseInt(c.getAttribute('tabindex'));a>b&&(0==d||a<d)&&(d=a)});Recite.Sizzle('[tabindex='+
d+']')[0].focus()}function k(){var a=!1;Recite.Key('enter',function(){if(null!=document.activeElement.getAttribute('data-recite-tabbable')&&!a)return a=!0,document.activeElement.click(),setTimeout(function(){a=!1},500),!1});Recite.Key('space',function(){if(null!=document.activeElement.getAttribute('data-recite-tabbable'))return document.activeElement.click(),!1});Recite.Key('shift+tab',function(){if('recite-toolbar-tutorial-dummy-focus'==document.activeElement.id){var a=document.querySelector('.recite-sprite-button-close.recite-button');
a&&a.focus();return!1}a=parseInt(document.activeElement.getAttribute('tabindex'))-1;var b=Recite.Sizzle('[tabindex='+a+']')[0],d=!1;Recite.Util.each(Recite.Sizzle('.recite-dropdown'),function(a,c){Recite.Dom.isDescendant(b,c)&&(a=Recite.Sizzle("[data-target='#"+c.getAttribute('id')+"']")[0],-1==(' '+a.className+' ').replace(/[\n\t]/g,' ').indexOf(' recite-dropdown-invoke-active ')&&(d=!0,a.focus()))});if(d)return!1});Recite.Key('up',function(){var a=document.activeElement;if(a.hasAttribute('data-group')){var b=
a.getAttribute('data-group');b=Array.from(document.querySelectorAll('[data-group='+CSS.escape(b)+']'));a=b.indexOf(a)-1;0>a&&(a=b.length-1);b[a].focus();return!1}});Recite.Key('down',function(){var a=document.activeElement;if(a.hasAttribute('data-group')){var b=a.getAttribute('data-group');b=Array.from(document.querySelectorAll('[data-group='+CSS.escape(b)+']'));a=b.indexOf(a)+1;a>=b.length&&(a=0);b[a].focus();return!1}})}function d(){0<w.disabledButtons.length&&Recite.Util.each(w.disabledButtons,
function(a,b){p.hasOwnProperty(b)&&(a=p[b],a.hasOwnProperty('buttonClass')&&(b=Recite.Sizzle(a.buttonClass),Recite.Util.each(b,function(a,b){b.style.display='none'})),a.hasOwnProperty('module')&&Recite.hasOwnProperty(a.module)&&'function'==typeof Recite[a.module].disable&&'function'==typeof Recite[a.module].isEnabled&&Recite[a.module].isEnabled()&&(Recite[a.module].disable(),Recite.Debug.log('Recite.Controls.Desktop','Disable button : '+a.module)))})}function g(a,b){var d=null;return function(c){for(var g=
[],e=0;e<arguments.length;++e)g[e-0]=arguments[e];clearTimeout(d);d=setTimeout(function(){a.apply(null,$jscomp.arrayFromIterable(g))},b)}}function h(a){if('Enter'===a.key)return a.preventDefault(),(a=document.getElementById('recite-languages-live-conainer'))&&a.focus(),!1}function l(){var a,b;var d=0;var c=Recite.Sizzle('.recite-languages-live-conainer')[0];var g=c.querySelectorAll('#recite-languages')[0];void 0===v&&(v=Array.from(g.getElementsByTagName('li')));c=c.querySelectorAll('#search-result-count')[0];
c.innerHTML='';c.setAttribute('lang','');var e=Recite.Sizzle('#languageSearch')[0];if(''!=e){var f=e.value.toUpperCase();e=v.filter(function(c){a=c.querySelectorAll('.recite_language_main_name_str')[0].innerText;b=c.querySelectorAll('.recite_language_native_name_str')[0].innerText;return 0<=a.toUpperCase().indexOf(f)||0<=b.toUpperCase().indexOf(f)?(d++,!0):!1});g.innerHTML='';e.forEach(function(a){g.appendChild(a)});c.innerText=0==d?'No Search Results found for '+f:d+' Results Found';e=Recite.Preferences.get('language');
null!=e&&Recite.Language.Translate.translate(c,e)}''!=f?(c=document.createElement('span'),c.setAttribute('id','search-close-icon'),c.setAttribute('data-recite-tabbable',''),c.setAttribute('aria-label','Clear language search'),c.classList.add('recite-sprite-close-circle'),c.setAttribute('role','button'),c.addEventListener('click',function(){Recite.Sizzle('#languageSearch')[0].value='';l();Recite.Sizzle('#search-result-count')[0].textContent='';Recite.Sizzle('#languageSearch')[0].focus()}),(e=document.getElementById('languages-search-container'))&&
e.appendChild(c)):(c=document.getElementById('search-close-icon'))&&c.remove()}function m(a){for(var b in r)if(r.hasOwnProperty(b)){var d=r[b];if(Array.isArray(d)){if(d.includes(a))return b}else if(d===a)return b}return null}var p={previous:{buttonClass:'.recite-sprite-button-back'},play:{buttonClass:'.recite-sprite-button-play'},forward:{buttonClass:'.recite-sprite-button-forward'},fontMinus:{buttonClass:'.recite-sprite-button-font-minus'},font:{buttonClass:'.recite-sprite-button-font'},fontPlus:{buttonClass:'.recite-sprite-button-font-plus'},
themes:{buttonClass:'.recite-sprite-button-themes'},ruler:{buttonClass:'.recite-sprite-button-ruler',module:'Ruler',preferences:{'style.ruler.enabled':!1}},screenMask:{buttonClass:'.recite-sprite-button-screenmask',module:'ScreenMask',preferences:{'style.screenMask.enabled':!1}},dictionary:{buttonClass:'.recite-sprite-button-dictionary',module:'Dictionary'},translate:{buttonClass:'.recite-sprite-button-translate'},textMode:{buttonClass:'.recite-sprite-button-textmode'},margin:{buttonClass:'.recite-sprite-button-margin'},
alignment:{buttonClass:'.recite-sprite-button-alignment'},mp3:{buttonClass:'.recite-sprite-button-mp3'},magnifier:{buttonClass:'.recite-sprite-button-magnifier',module:'Magnifier',preferences:{'magnifier.enabled':!1}},settings:{buttonClass:'.recite-sprite-button-settings'},reset:{buttonClass:'.recite-sprite-button-reset'},guide:{buttonClass:'.recite-sprite-button-userguide'}},u=null,n={'default':{name:'Default',native_name:'Reset',audible:!1,flag:null},af:{name:'Afrikaans',native_name:'Afrikaans',
audible:!0,flag:'sa'},sq:{name:'Albanian',native_name:'shqip',audible:!1,flag:'al'},am:{name:'Amharic',native_name:'\u12a3\u121b\u122d\u129b',audible:!0,flag:null},ar:{name:'Arabic',native_name:'\u0639\u0631\u0628\u064a',audible:!0,flag:'dz',direction:'rtl'},hy:{name:'Armenian',native_name:'\u0540\u0561\u0575\u0565\u0580\u0567\u0576',audible:!1,flag:null},az:{name:'Azerbaijani',native_name:'\u0622\u0630\u0631\u0628\u0627\u064a\u062c\u0627\u0646\u062c\u0627 \u062f\u064a\u0644\u064a',audible:!1,flag:'az'},
eu:{name:'Basque',native_name:'euskara',audible:!1,flag:null},bn:{name:'Bengali',native_name:'\u09ac\u09be\u0982\u09b2\u09be (ba\u025b\u1e45l\u0101)',audible:!0,flag:'bd'},be:{name:'Belarusian',native_name:'\u0411\u0435\u043b\u0430\u0440\u0443\u0441\u043a\u0430\u044f \u043c\u043e\u0432\u0430',audible:!1,flag:'by'},bs:{name:'Bosnian',native_name:'bosanski',audible:!1,flag:null},bg:{name:'Bulgarian',native_name:'\u0431\u044a\u043b\u0433\u0430\u0440\u0441\u043a\u0438 (b\u00e3lgarski)',audible:!0,flag:'bg'},
ca:{name:'Catalan',native_name:'catal\u00e0',audible:!0,flag:'ad'},ceb:{name:'Cebuano',native_name:'Sinugboanon',audible:!1,flag:null},ny:{name:'Chichewa',native_name:'Chiche\u0175a',audible:!1,flag:null},'zh-CN':{name:'Chinese Simplified',native_name:'\u4e2d\u56fd\u7b80\u5316',audible:!0,flag:'cn'},'zh-TW':{name:'Chinese Traditional',native_name:'\u4e2d\u570b\u50b3\u7d71',audible:!0,flag:'cn'},co:{name:'Corsican',native_name:'corsu',audible:!1,flag:null},hr:{name:'Croatian',native_name:'Hrvatski',
audible:!0,flag:'hr'},cs:{name:'Czech',native_name:'\u010de\u0161tina',audible:!0,flag:'cz'},da:{name:'Danish',native_name:'dansk',audible:!0,flag:'dk'},nl:{name:'Dutch',native_name:'Nederlands',audible:!0,flag:'nl'},'en-GB':{name:'English - GB',native_name:'English - GB',audible:!0,flag:'gb'},'en-US':{name:'English - US',native_name:'English - US',audible:!0,flag:'us'},eo:{name:'Esperanto',native_name:'Esperanto',audible:!1,flag:null},et:{name:'Estonian',native_name:'eesti keel',audible:!1,flag:'ee'},
tl:{name:'Filipino',native_name:'filipino',audible:!1,flag:'ph'},fi:{name:'Finnish',native_name:'suomi',audible:!0,flag:'fi'},'fr-FR':{name:'French - Europe',native_name:'fran\u00e7ais',audible:!0,flag:'fr'},'fr-CA':{name:'French - Canadian ',native_name:'fran\u00e7ais canadien',audible:!0,flag:'fr'},fy:{name:'Frisian (West)',native_name:'Frysk',audible:!1,flag:null},gl:{name:'Galician',native_name:'Galego',audible:!0,flag:'gl'},ka:{name:'Georgian',native_name:'\u10e5\u10d0\u10e0\u10d7\u10e3\u10da\u10d8 (k\u02bbart\u02bbuli)',
audible:!1,flag:'ge'},de:{name:'German',native_name:'Deutsch',audible:!0,flag:'de'},el:{name:'Greek',native_name:'\u03b5\u03bb\u03bb\u03b7\u03bd\u03b9\u03ba\u03ac ',audible:!0,flag:'gr'},gu:{name:'Gujarati',native_name:'\t\u0a97\u0ac1\u0a9c\u0ab0\u0abe\u0aa4\u0ac0 ',audible:!0,flag:'gu'},ht:{name:'Haitian Creole',native_name:'Krey\u00f2l ayisyen',audible:!1,flag:'ht'},ha:{name:'Hausa',native_name:'\u062d\u064e\u0648\u0652\u0633',audible:!1,flag:null},haw:{name:'Hawaiian',native_name:'\u02bb\u014dlelo Hawai\u02bbi',
audible:!1,flag:null},iw:{name:'Hebrew',native_name:'\u05e2\u05b4\u05d1\u05b0\u05e8\u05b4\u05d9\u05ea',audible:!0,flag:'il',direction:'rtl'},hi:{name:'Hindi',native_name:'\u0939\u093f\u0928\u094d\u0926\u0940',audible:!0,flag:'in'},hmn:{name:'Hmong',native_name:'Hmong',audible:!1,flag:null},hu:{name:'Hungarian',native_name:'Hungarian Magyar',audible:!0,flag:'hu'},is:{name:'Icelandic',native_name:'\u00cdslenska',audible:!0,flag:'is'},ig:{name:'Igbo',native_name:'Igbo',audible:!1,flag:null},id:{name:'Indonesian',
native_name:'Bahasa Indonesia',audible:!0,flag:'id'},ga:{name:'Irish (Gaelic)',native_name:'Gaeilge',audible:!0,flag:'ie'},it:{name:'Italian',native_name:'italiano',audible:!0,flag:'it'},ja:{name:'Japanese',native_name:'\u65e5\u672c\u8a9e',audible:!0,flag:'jp'},jv:{name:'Javanese',native_name:'ba\u1e63a Jawa',audible:!1,flag:null},kn:{name:'Kannada',native_name:'\u0c95\u0ca8\u0ccd\u0ca8\u0ca1 ',audible:!0,flag:'id'},kk:{name:'Kazakh',native_name:'\u049a\u0430\u0437\u0430\u049b \u0442\u0456\u043b\u0456 ',
audible:!1,flag:null},km:{name:'Khmer',native_name:'\t\u1797\u17b6\u179f\u17b6\u1781\u17d2\u1798\u17c2\u179a ',audible:!0,flag:null},ko:{name:'Korean',native_name:'\ud55c\uad6d\uc5b4 ',audible:!0,flag:'kr'},ku:{name:'Kurdish',native_name:'Kurmanji ',audible:!1,flag:null,direction:'rtl'},ky:{name:'Kyrgyz',native_name:'\u0642\u0649\u0631\u0639\u0649\u0632 ',audible:!1,flag:null},lo:{name:'Lao',native_name:'\u0e9e\u0eb2\u0eaa\u0eb2\u0ea5\u0eb2\u0ea7 ',audible:!0,flag:null},la:{name:'Latin',native_name:'Lingua Latina',
audible:!1,flag:'va'},lv:{name:'Latvian',native_name:'\tlatvie\u0161u valoda',audible:!0,flag:'lv'},lt:{name:'Lithuanian',native_name:'lietuvi\u0173 kalba',audible:!0,flag:'lt'},lb:{name:'Luxembourgish',native_name:'L\u00ebtzebuergesch',audible:!1,flag:null},mk:{name:'Macedonian',native_name:'\u043c\u0430\u043a\u0435\u0434\u043e\u043d\u0441\u043a\u0438',audible:!0,flag:'mk'},mg:{name:'Malagasy',native_name:'Fiteny Malagasy',audible:!1,flag:null},ms:{name:'Malay',native_name:'Bahasa melayu',audible:!0,
flag:'my'},ml:{name:'Malayalam',native_name:'\u0d2e\u0d32\u0d2f\u0d3e\u0d33\u0d02 ',audible:!0,flag:null},mt:{name:'Maltese',native_name:'Malti',audible:!0,flag:'mt'},mi:{name:'Maori',native_name:'\tte Reo M\u0101ori',audible:!1,flag:null},mr:{name:'Marathi',native_name:'\u092e\u0930\u093e\u0920\u0940',audible:!0,flag:null},mn:{name:'Mongolian',native_name:'\u041c\u043e\u043d\u0433\u043e\u043b',audible:!1,flag:null},my:{name:'Myanmar (Burmese)',native_name:'\t\u1017\u1019\u102c\u1005\u1000\u102c\u1038 ',
audible:!1,flag:null},ne:{name:'Nepali',native_name:'\u0928\u0947\u092a\u093e\u0932\u0940',audible:!1,flag:null},no:{name:'Norwegian',native_name:'norsk',audible:!0,flag:'no'},ps:{name:'Pashto',native_name:'\u067e\u069a\u062a\u0648',audible:!1,flag:null},fa:{name:'Persian (Farsi)',native_name:'\u0641\u0627\u0631\u0633\u0649',audible:!0,flag:'ir',direction:'rtl'},pl:{name:'Polish',native_name:'polski',audible:!0,flag:'pl'},pt:{name:'Portuguese',native_name:'portugu\u00eas',audible:!0,flag:'pt'},pa:{name:'Punjabi',
native_name:'\u0a2a\u0a70\u0a1c\u0a3e\u0a2c\u0a40',audible:!1,flag:null},ro:{name:'Romanian',native_name:'rom\u00e2n\u0103',audible:!0,flag:'ro'},ru:{name:'Russian',native_name:'\u0420\u0443\u0441\u0441\u043a\u0438\u0439 \u044f\u0437\u044b\u043a ',audible:!0,flag:'ru'},sm:{name:'Samoan',native_name:'Gagana Samoa',audible:!1,flag:null},gd:{name:'Scots Gaelic',native_name:'G\u00e0idhlig',audible:!0,flag:null},sr:{name:'Serbian',native_name:'\u0441\u0440\u043f\u0441\u043a\u0438',audible:!0,flag:'rs'},
st:{name:'Sesotho',native_name:'seSotho',audible:!1,flag:null},sn:{name:'Shona',native_name:'chiShona',audible:!1,flag:null},sd:{name:'Sindhi',native_name:'\u0633\u0646\u068c\u064a',audible:!1,flag:null},si:{name:'Sinhala',native_name:'\u0dc3\u0dd2\u0d82\u0dc4\u0dbd',audible:!0,flag:null},sk:{name:'Slovak',native_name:'sloven\u010dina',audible:!0,flag:'sk'},sl:{name:'Slovenian',native_name:'sloven\u0161\u010dina',audible:!0,flag:'sk'},so:{name:'Somali',native_name:'af Soomaali',audible:!0,flag:null},
'es-ES':{name:'Spanish - Europe',native_name:'espa\u00f1ol',audible:!0,flag:'es'},'es-US':{name:'Spanish - US',native_name:'espa\u00f1ol',audible:!0,flag:'es'},su:{name:'Sundanese',native_name:'Basa Sunda',audible:!0,flag:null},sw:{name:'Swahili',native_name:'Kiswahili',audible:!1,flag:'ke'},sv:{name:'Swedish',native_name:'svenska',audible:!0,flag:'se'},ta:{name:'Tamil',native_name:'\u0ba4\u0bae\u0bbf\u0bb4\u0bcd ',audible:!1,flag:'in'},tg:{name:'Tajik',native_name:'\u0442\u043e\u04b7\u0438\u043a\u0438',
audible:!1,flag:null},te:{name:'Telugu',native_name:'\u0c24\u0c46\u0c32\u0c41\u0c17\u0c41',audible:!0,flag:'in'},th:{name:'Thai',native_name:'\u0e20\u0e32\u0e29\u0e32\u0e44\u0e17\u0e22',audible:!0,flag:'th'},tr:{name:'Turkish',native_name:'T\u00fcrk\u00e7e',audible:!0,flag:'tr'},uk:{name:'Ukrainian',native_name:'\u0423\u043a\u0440\u0430\u0457\u043d\u0441\u044c\u043a\u0430',audible:!0,flag:'ua'},ur:{name:'Urdu',native_name:'\u0627\u0631\u062f\u0648',audible:!0,flag:'pk',direction:'rtl',font:'Noto Nastaliq Urdu'},
uz:{name:'Uzbek',native_name:"\t\u0623\u06c7\u0632\u0628\u06d0\u0643 \ufe97\ufef4\ufee0\u06cc o'zbek tili \u045e\u0437\u0431\u0435\u043a \u0442\u0438\u043b\u0438",audible:!0,flag:null},vi:{name:'Vietnamese',native_name:'ti\u1ebfng vi\u1ec7t',audible:!0,flag:'vn'},cy:{name:'Welsh',native_name:'Cymraeg',audible:!0,flag:'wales'},yi:{name:'Yiddish',native_name:'\u05f2\u05b4\u05d3\u05d9\u05e9',audible:!1,flag:'ua'},xh:{name:'Xhosa',native_name:'isiXhosa',audible:!1,flag:null},yo:{name:'Yoruba',native_name:'Yor\u00f9b\u00e1',
audible:!1,flag:null},zu:{name:'Zulu',native_name:'isiZulu',audible:!0,flag:null},as:{name:'Assamese',native_name:'\u0985\u09b8\u09ae\u09c0\u09df\u09be  (asam\u012by\u0307a)',audible:!1,flag:'as'},ay:{name:'Aymara',native_name:'aymar aru',audible:!1,flag:'ay'},bm:{name:'Bambara',native_name:'Bamanankan',audible:!1,flag:'bm'},bho:{name:'Bhojpuri',native_name:'\u092d\u094b\u091c\u092a\u0941\u0930\u0940 (b\u02b0ojpur\u012b)',audible:!1,flag:'bho'},dv:{name:'Dhivehi',native_name:'\u078b\u07a8\u0788\u07ac\u0780\u07a8 (dhivehi)',
audible:!1,flag:'dv',direction:'rtl'},doi:{name:'Dogri',native_name:'Dogra \u0921\u094b\u0917\u0930\u0940',audible:!1,flag:'doi'},ee:{name:'Ewe',native_name:'E\u028begbe',audible:!1,flag:'ee'},gn:{name:'Guarani',native_name:'Ava\u00f1e\u2019\u1ebd',audible:!1,flag:'gn'},ilo:{name:'Ilocano',native_name:'ilokano',audible:!1,flag:'ilo'},gom:{name:'Konkani',native_name:'\t\u0915\u094b\u0902\u0915\u0923\u0940 (k\u014dn\u0307kan\u0323\u012b) \u0c95\u0cca\u0c82\u0c95\u0ca3\u0cbf (kon\u0307kan\u0323i)',audible:!1,
flag:'gom'},kri:{name:'Krio',native_name:'Krio',audible:!1,flag:'kri'},ckb:{name:'Kurdish (Sorani)',native_name:'Kurd\u00ed / \u06a9\u0648\u0631\u062f\u06cc / \u043a\u2019\u00f6\u0440\u0434\u0438',audible:!1,flag:'ckb',direction:'rtl'},ln:{name:'Lingala',native_name:'ling\u00e1la',audible:!1,flag:'ln'},lg:{name:'Luganda',native_name:'Luganda',audible:!1,flag:'lg'},mai:{name:'Maithili',native_name:'\u092e\u0948\u0925\u093f\u0932\u0940 (m\u025bt\u02b0il\u012b)',audible:!1,flag:'mai'},'mni-mtei':{name:'Meiteilon (Manipuri)',
native_name:'Manipuri',audible:!1,flag:'mni-mtei',font:'Noto Sans Meetei Mayek'},lus:{name:'Mizo',native_name:'Mizo \u1e6dawng',audible:!1,flag:'lus'},om:{name:'Oromo',native_name:'Afaan Oromo',audible:!1,flag:'om'},qu:{name:'Quechua',native_name:'Qhichwa',audible:!1,flag:'qu'},sa:{name:'Sanskrit',native_name:'\u0938\u0902\u0938\u094d\u0915\u0943\u0924\u092e\u094d (sa\u1e43sk\u1e5btam) \u0938\u0902\u0938\u094d\u0915\u0943\u0924\u093e \u092d\u093e\u0937\u093e (sa\u1e43sk\u1e5bt\u0101 bh\u0101\u1e63\u0101)',
audible:!1,flag:'sa'},nso:{name:'Sepedi (Pedi)',native_name:'Sepedi',audible:!1,flag:'nso'},ti:{name:'Tigrinya',native_name:'\u1275\u130d\u122d\u129b (t\u0259g\u0259r\u0259\u00f1a)',audible:!1,flag:'ti'},ts:{name:'Tsonga',native_name:'xiTsonga',audible:!1,flag:'ts'},ak:{name:'Twi (Akan)',native_name:'twi',audible:!1,flag:'ak'}},w={promptBeforeLeave:!0,allowCustomColors:!1,tabEnabled:!0,tabIndexStartValue:1,autoIncrementTabIndex:!0,disabledButtons:[],fonts:[{name:'Default',font:'Default'},{name:'Lexend',
font:'Lexend'},{name:'Arial',font:'Arial'},{name:'Verdana',font:'Verdana'},{name:'Comic-Sans-MS',font:'Comic Sans MS'},{name:'Georgia',font:'Georgia'},{name:'Tahoma',font:'Tahoma'},{name:'Lato',font:'Lato'},{name:'Trebuchet',font:'Trebuchet'},{name:'Open-Dyslexic',font:'Open Dyslexic'}],swatches:[{backgroundColor:'#000',color:'#fff',linkColor:'#FF0000',rulerColor:'#fff',maskColor:'#fff',section:'dark'},{backgroundColor:'#000',color:'#FCED20',linkColor:'#FF0000',rulerColor:'#FCED20',maskColor:'#FCED20',
section:'dark'},{backgroundColor:'#005B0E',color:'#fff',linkColor:'#FFE100',section:'dark'},{backgroundColor:'#0201FF',color:'#fff',linkColor:'#FFAB00',section:'dark'},{backgroundColor:'#C83400',color:'#FFF',linkColor:'#F5FF00',section:'dark'},{backgroundColor:'#0201F5',color:'#FCEB3E',linkColor:'#fff',section:'dark'},{backgroundColor:'#343A3F',color:'#B8BCC0',linkColor:'#FCED20',section:'dark'},{backgroundColor:'#4D4D4D',color:'#FFF',linkColor:'#ffcb53',section:'dark'},{backgroundColor:'#932191',
color:'#FFF',linkColor:'#fff902',section:'dark'},{backgroundColor:'#7C1818',color:'#FFF',linkColor:'#00ff67',section:'dark'},{backgroundColor:'#F4EED9',color:'#1D1916',linkColor:'#000',rulerColor:'#1D1916',maskColor:'#1D1916',section:'light'},{backgroundColor:'#CACFD3',color:'#343A3F',linkColor:'#000',rulerColor:'#343A3F',maskColor:'#343A3F',section:'light'},{backgroundColor:'#FFE9BD',color:'#000000',linkColor:'#000',rulerColor:'#000',maskColor:'#000',section:'light'},{backgroundColor:'#FCED20',color:'#000',
linkColor:'#000',rulerColor:'#000',maskColor:'#000',section:'light'},{backgroundColor:'#FCED20',color:'#0201FF',linkColor:'#000',rulerColor:'#000',maskColor:'#000',section:'light'},{backgroundColor:'#FFFFFF',color:'#C3272B',linkColor:'#000',rulerColor:'#000',maskColor:'#000',section:'light'},{backgroundColor:'#FFFFFF',color:'#955200',linkColor:'#000',rulerColor:'#000',maskColor:'#000',section:'light'},{backgroundColor:'#FFFFFF',color:'#007312',linkColor:'#000',rulerColor:'#000',maskColor:'#000',section:'light'},
{backgroundColor:'#FFFFFF',color:'#0100FF',linkColor:'#000',rulerColor:'#000',maskColor:'#000',section:'light'},{backgroundColor:'#fff',color:'#000',linkColor:'#C00',rulerColor:'#000',maskColor:'#000',section:'light'}],pallettes:[{backgroundColor:'#FCED20',color:'#000',linkColor:'#C00',rulerColor:'#000',maskColor:'#000'},{backgroundColor:'#FCED20',color:'#000',linkColor:'#C00',rulerColor:'#000',maskColor:'#000'},{backgroundColor:'#FCED20',color:'#000',linkColor:'#C00',rulerColor:'#000',maskColor:'#000'}],
margins:[{name:'Default',value:null,icon:null},{name:'Large',value:'5%',icon:'recite-sprite-margin-large'},{name:'Medium',value:'15%',icon:'recite-sprite-margin-medium'},{name:'Small',value:'30%',icon:'recite-sprite-margin-small'}],alignments:[{name:'Default',value:null,icon:null},{name:'Left aligned',value:'left',icon:null},{name:'Right aligned',value:'right',icon:null},{name:'Centered',value:'center',icon:null},{name:'Justified',value:'justify',icon:null}],focusColor:'#267AB5',languages:function(){var a=
[],b;for(b in n)if('default'!=b){var d=n[b];d.langCode=b;a.push(d)}a=Object.values(a).sort(function(a,b){return a.name.toLowerCase()>b.name.toLowerCase()?1:-1});d={'default':n['default']};for(b in a)d[a[b].langCode]=a[b];return d}(),simplifiedControls:!0,showLogo:!0,customLogo:!1,customLogoLink:!1,customLogoTitle:!1,customCloseTitle:!1,repositionBackground:!0,audibleTranslationKey:'Audio available'},r={Black:['#000','#000000','#1D1916'],White:['#fff','#FFFFFF','#FFF'],Yellow:['#FCED20','#FCEB3E'],
Orange:'#C83400',Red:'#C3272B',DarkRed:'#7C1818',Green:['#00FF00','#007312','#005B0E'],Blue:['#0201FF','#0201F5','#0100FF'],Grey:['#4D4D4D','#CACFD3'],DarkGrey:'#343A3F',LightGrey:'#B8BCC0',Purple:'#932191',OffWhite:'#F4EED9',Cream:'#FFE9BD',Brown:'#955200'};Recite.Event.subscribe('Preferences:load',d);Recite.Event.subscribe('Preferences:set',d);Recite.Event.subscribe('Preferences:reset',d);Recite.Event.subscribe('Controls:loaded',function(){var a=Recite.Sizzle('#recite-toolbar-button-previous')[0];
if(!0===Recite.Preferences.get('userGuide.enabled')){var b=document.querySelector('#recite-toolbar-tutorial-dummy-focus');b&&b.focus()}else{var d=Recite.Sizzle('#recite-dummy-focus')[0];d.focus();d.addEventListener('blur',function(){d.remove()})}b=Recite.Sizzle('#recite-toolbar-button-next')[0];var c=Recite.Sizzle('#recite-toolbar-button-download')[0],g=Recite.Sizzle('#recite-close')[0];a&&Recite.DomEvent.add(a,'click',function(){Recite.PlayerControls.previous()});b&&Recite.DomEvent.add(b,'click',
function(){Recite.PlayerControls.next()});c&&Recite.DomEvent.add(c,'click',function(){Recite.AudioDownload.generateDownload()});g&&Recite.DomEvent.add(g,'click',function(){Recite.disable()});f()});var v;Recite.Event.subscribe('DropDown:menuShown',function(a,b){if('recite-languages-dropdown'===b.id){if(a=document.getElementById('search-result-count'))a.ariaLive='polite';if(a=document.getElementById('recite-languages'))a.ariaLive='polite'}});Recite.Event.subscribe('DropDown:menuHidden',function(a,b){if('recite-languages-dropdown'===
b.id){if(a=document.getElementById('search-result-count'))a.ariaLive='off';if(a=document.getElementById('recite-languages'))a.ariaLive='off'}});return{setOptions:function(a){w=Recite.Util.merge(w,a)},getOptions:function(){return w},init:function(){},localize:function(a){Recite.Debug.log('Recite.Controls.Desktop','Localizing controls: '+a);Recite.Language.Translate.translate(Recite.Sizzle('#recite-header')[0],a)},applyTabOrder:function(){w.autoIncrementTabIndex&&e();b();k()},disable:function(){},invoke:function(a){var b=
document.body;if(w.simplifiedControls){a.setAttribute('class',a.getAttribute('class')+' recite-controls-simplified');var e=Recite.Sizzle('.recite-sprite-logo')[0],f=Recite.Sizzle('#recite-logo-header')[0];f.setAttribute('tabindex','-1');var k=Recite.Sizzle('#recite-close')[0];k.setAttribute('tabindex','-1');var x=Recite.Sizzle('.recite-sprite-button-summary')[0],n=Recite.Sizzle('.recite-sprite-button-bsl')[0];Recite.ReadingAid.isEnabled()||x.remove();Recite.Controls.ScrollButtons.invoke();Recite.BSL.isEnabled()||
n.remove();Recite.UserGuide.isEnabled()?Recite.Sizzle('#recite-user-guide-settings-link')[0].remove():Recite.Sizzle('#recite-toolbar-guide-link')[0].remove();if(Recite.Browser.isMobile()){e.setAttribute('class','recite-sprite-logo-icon-mobile');f.setAttribute('class',f.getAttribute('class')+' recite-header-logo-icon');e=Recite.Sizzle('.recite-sprite-button-magnifier')[0];x=Recite.Sizzle('.recite-sprite-button-ruler')[0];n=Recite.Sizzle('.recite-sprite-button-screenmask')[0];var p=Recite.Sizzle('.recite-controls-inner')[0],
u=Recite.Sizzle('.recite-controls')[0],r=document.querySelector('.recite-container .recite-sprite-button-pointer-size');r&&(r.style.display='none');u.setAttribute('class',u.getAttribute('class').replace('mobile')+' mobile-controls');e.style.display='none';x.style.display='none';n.style.display='none';k.setAttribute('class','recite-close-smaller-screen');k.setAttribute('aria-label','Close recite toolbar');k.innerHTML='X';f.parentNode.removeChild(f);f.setAttribute('class',f.getAttribute('class')+' mobileLogo');
p.appendChild(f);(f=Recite.Sizzle('.recite-user-guide-link')[0])&&f.setAttribute('class',f.getAttribute('class')+' recite-default-button recite-default-button-full recite-standard-border-radius');document.querySelectorAll('#recite-dropdowns .recite-dropdown').forEach(function(a){a.style.display='none'});Recite.Debug.log(' Recite.Controls','mobile controls set')}else e.setAttribute('class','recite-sprite-logo-small')}d();var v=Recite.Dom.getStyle(a,'height');v=parseInt(v.replace('px',''),10);if('tooltip'===
Recite.getOptions().selectionMethod)try{Recite.PlayerControls.getProvider().setTopProtection(v)}catch(P){}if(w.repositionBackground)if(f=Recite.Dom.getStyle(b,'background-position-y'),'0%'===f)b.setAttribute('style','background-position-y:'+v+' px !important');else if(f.match(/px/i)||'top'===f)f=f.replace('px',''),f=parseInt(f,10)+parseInt(v,10),b.setAttribute('style','background-position-y:'+f+' px !important');b.style.setProperty?(b.style.setProperty('position','absolute','important'),b.style.setProperty('top',
v+'px','important'),b.style.setProperty('width','100%','important'),b.style.setProperty('margin','auto','important')):(b.style.width='100%',b.style.position='absolute',b.style.top=v+'px',b.style.margin='auto');Recite.Util.each(Recite.Sizzle('*'),function(a,b){/recite/.test(b.getAttribute('id'))||/recite/.test(b.getAttribute('class'))||'fixed'!==Recite.Dom.getStyle(b,'position')||(a=b.offsetTop,a<v&&(b.style.top=v+a+'px'))});var C=Recite.Sizzle('#recite-fonts')[0];Recite.Util.each(w.fonts,function(a,
b){a=document.createElement('div');a.setAttribute('class','recite-font recite-preference-set recite-default-button recite-default-button-full recite-standard-border-radius');a.setAttribute('data-key','style.font.face');a.setAttribute('role','button');'Default'!==b?(a.setAttribute('data-value',b.name),a.style.fontFamily=b.font):a.setAttribute('data-value','null');a.innerText=b.name;a.textContent=b.name;a.setAttribute('data-recite-tabbable','');C.appendChild(a)});Recite.Sizzle('#recite-swatches');var N=
Recite.Sizzle('#recite-swatches-dark')[0],G=Recite.Sizzle('#recite-swatches-light')[0];Recite.Util.each(w.swatches,function(a,b){a=document.createElement('div');var d=m(b.backgroundColor).replace(/([a-z])([A-Z])/g,'$1 $2')+' Background '+m(b.color).replace(/([a-z])([A-Z])/g,'$1 $2')+' Text';a.setAttribute('class','recite-swatch recite-preference-set recite-standard-border-radius');a.setAttribute('data-recite-translate-skip','true');null===b.backgroundColor&&null===b.color&&null===b.linkColor?(a.setAttribute('class',
a.getAttribute('class')+' recite-swatch-default'),a.textContent='Default',a.innerText='Default'):a.innerText='A '+d;var c='style.backgroundColor style.font.color style.link.color style.focus.color',e=b.backgroundColor+' '+b.color+' '+b.linkColor+' '+w.focusColor;b.hasOwnProperty('rulerColor')&&(c+=' style.ruler.color',e+=' '+b.rulerColor);b.hasOwnProperty('maskColor')&&(c+=' style.screenMask.color',e+=' '+b.maskColor);b.hasOwnProperty('highlightColor')&&(c+=' style.wwHighlight.color',e+=' '+b.highlightColor);
a.addEventListener('click',function(){Recite.Preferences.set('cssFilter.enabled',!1)});a.setAttribute('data-key',c);a.setAttribute('data-value',e);a.setAttribute('title',d);a.setAttribute('aria-label',d);a.setAttribute('data-recite-tabbable','');a.style.color=b.color;a.style.backgroundColor=b.backgroundColor;'dark'==b.section&&N.appendChild(a);'light'==b.section&&G.appendChild(a)});var K=Recite.Sizzle('#recite-languages')[0];b=Recite.Sizzle('.recite-languages-live-conainer')[0];f=document.createElement('div');
f.id='languages-search-container';f.setAttribute('class','recite-search recite-default-button recite-default-button-full recite-standard-border-radius');k=document.createElement('div');k.setAttribute('class','recite-sprite-search');k.setAttribute('role','presentation');e=document.createElement('input');e.setAttribute('type','text');e.setAttribute('role','searchbox');e.setAttribute('placeholder','Search Languages');e.setAttribute('id','languageSearch');e.setAttribute('data-recite-tabbable','');g(l,
500);e.addEventListener('keyup',l);e.addEventListener('keydown',h);f.appendChild(k);f.appendChild(e);b.insertAdjacentElement('beforebegin',f);Recite.Util.each(w.languages,function(a,b){var d=document.createElement('li'),c=document.createElement('div'),e=document.createElement('div');b.audible&&(e.setAttribute('class','recite_language_audible recite-sprite-audible'),e.setAttribute('title',w.audibleTranslationKey),d.appendChild(e));e=document.createElement('div');e.appendChild(document.createTextNode(b.name));
e.setAttribute('class','recite_language_main_name_str');d.appendChild(e);'undefined'!=typeof b.native_name&&(c.setAttribute('class','recite_language_native_name_str'),c.setAttribute('data-recite-translate-skip','false'),c.setAttribute('aria-hidden','true'),c.appendChild(document.createTextNode(b.native_name)),d.appendChild(c));d.setAttribute('class','recite-language-set recite-default-button recite-default-button-full recite-standard-border-radius');d.setAttribute('data-language',a);d.setAttribute('role',
'button');d.setAttribute('data-text-direction',b.hasOwnProperty('direction')?b.direction:'ltr');d.setAttribute('data-font',b.hasOwnProperty('font')?b.font:'');d.setAttribute('data-recite-tabbable','');d.setAttribute('data-recite-translate-skip','false');a=b.name;b.audible&&(a+=', '+w.audibleTranslationKey);d.setAttribute('aria-label',a);K.appendChild(d)});Recite.Dictionary.setup();var Q=Recite.Sizzle('#recite-margins')[0];Recite.Util.each(w.margins,function(a,b){a=document.createElement('div');a.setAttribute('class',
'recite-margin recite-preference-set');a.setAttribute('data-key','style.marginSize');a.setAttribute('data-value',b.value);var d=b.icon||null;if(null!==d){var c=document.createElement('div');c.setAttribute('class',d);c.style.margin='0 auto';c.setAttribute('data-key','style.marginSize');c.setAttribute('data-value',b.value);a.appendChild(c)}else a.textContent=b.name,a.innerText=b.name;Q.appendChild(a)});var L=Recite.Sizzle('.recite-sprite-button-margin')[0];L.style.display='none';Recite.Event.subscribe('TextMode:enabled',
function(a,b){L.style.display='block'});Recite.Event.subscribe('TextMode:disabled',function(a,b){L.style.display='none'});var I=Recite.Sizzle('#recite-alignments')[0];Recite.Util.each(w.alignments,function(a,b){a=document.createElement('div');a.setAttribute('class','recite-alignment recite-preference-set');a.setAttribute('data-key','style.textAlign');a.setAttribute('data-value',b.value);var d=b.icon||null;if(null!==d){var c=document.createElement('div');c.setAttribute('class',d);c.style.margin='0 auto';
c.setAttribute('data-key','style.text-align');c.setAttribute('data-value',b.value);a.appendChild(c)}else a.textContent=b.name,a.innerText=b.name;I.appendChild(a)});var O=Recite.Sizzle('.recite-sprite-button-alignment')[0];O&&(O.style.display='none',Recite.Event.subscribe('TextMode:enabled',function(a,b){O.style.display='block'}),Recite.Event.subscribe('TextMode:disabled',function(a,b){O.style.display='none'}));b=Recite.Sizzle('.recite-button',a);Recite.UI.Dropdown.invoke(b);Recite.Debug.log('Recite.Desktop',
'launch advanced');Recite.UI.AdvancedColors.invoke('.recite-colorpicker',a);var M=Recite.Sizzle('.recite-sprite-button-play')[0];Recite.DomEvent.add(M,'click',function(a){'stopped'===M.getAttribute('data-status')?Recite.PlayerControls.play():Recite.PlayerControls.stop()});Recite.Event.subscribe('Audio:ended',function(a,b){c(M,'stop')});Recite.Event.subscribe('Audio:started',function(a,b){c(M,'play')});w.showLogo&&Recite.getOptions('showBrand')||(a=Recite.Sizzle('.recite-logo')[0],a.innerHTML='',a.setAttribute('class',
'custom-logo'));0!=w.customLogo&&(a=Recite.Sizzle('.recite-logo')[0],a.setAttribute('class',a.getAttribute('class')+' custom-logo'),a.innerHTML='<img src="'+w.customLogo+'" />',0!=w.customLogoLink&&(a.href=w.customLogoLink),0!=w.customLogoTitle&&(a.title=w.customLogoTitle));0!=w.customCloseTitle&&(a=Recite.Sizzle('a.recite-close'),Recite.Util.each(a,function(a,b){b.title=w.customCloseTitle}));!1===Recite.AudioDownload.getOptions().enabled&&(a=Recite.Sizzle('.recite-sprite-button-mp3')[0],a.outerHTML=
'');a=Recite.Sizzle('.recite-close');Recite.getOptions('showBrand')||Recite.Util.each(a,function(a,b){b.setAttribute('title','Close Accessibility Toolbar')});Recite.DomEvent.add(a,'click',function(a){a.preventDefault()});a=Recite.Sizzle('.recite-version');Recite.DomEvent.add(a,'click',function(a){Recite.Util.each(Recite.Sizzle('.recite-auth'),function(a,b){b.style.display='block'})});Recite.DomEvent.add(Recite.Sizzle('#recite-logo-header'),'click',function(a){if(w.promptBeforeLeave){a.preventDefault();
var b=Recite.Controls.disableOverlay();Recite.Gui.Modal.show(Recite.Message.getMessage('leavingCloseHeader','Leaving Website'),Recite.Message.getMessage('leavingCloseDialog','You are about to leave this website to go to http://www.reciteme.com. Click OK or hit <em>enter</em> key to continue. Press esc key or hit <em>cancel</em> to stay on this page.'),Recite.Message.getMessage('leavingCloseOk','OK'),Recite.Message.getMessage('leavingCloseCancel','Cancel'),function(){window.open(Recite.Sizzle('#recite-logo-header')[0].getAttribute('href'),
'_blank')},function(){Recite.Gui.Notification.show('Close operation canceled');Recite.Controls.reEnableOverlay(b)})}});a=document.querySelector('.recite-select-your-own');if(w.allowCustomColors)a&&a.addEventListener('click',function(){Recite.Preferences.set('cssFilter.enabled',!1);Recite.cssFilter.disable()});else{if(b=document.getElementById('select-your-own-divider'))b.style.display='none';a.style.display='none'}(a=document.querySelector('#recite-swatch-enable-monochrome'))&&a.addEventListener('click',
function(){Recite.Preferences.set('cssFilter.enabled',!0);Recite.cssFilter.enable()});(a=document.querySelector('#recite-swatch-disable-monochrome'))&&a.addEventListener('click',function(){Recite.Preferences.set('cssFilter.enabled',!1);Recite.cssFilter.disable()})}}}();Recite.namespace('Controls.Mobile');
Recite.Controls.Mobile=function(){function f(c,b){if('play'===b||'stopped'===c.getAttribute('data-status')&&'undefined'===b)return c.setAttribute('class',c.getAttribute('class').replace('recite-sprite-button-top-play-mobile','recite-sprite-button-top-stop-mobile')),c.setAttribute('data-status','playing'),'playing';if('stop'===b||'playing'===c.getAttribute('data-status')&&'undefined'===b)return c.setAttribute('class',c.getAttribute('class').replace('recite-sprite-button-top-stop-mobile','recite-sprite-button-top-play-mobile')),
c.setAttribute('data-status','stopped'),'stopped'}var c={fonts:'Default Arial Verdana Georgia Tahoma Trebuchet Tiresias'.split(' '),swatches:[{backgroundColor:null,color:null,linkColor:null},{backgroundColor:'#000',color:'#fff',linkColor:'#C00'},{backgroundColor:'#C3272A',color:'#FFF',linkColor:'#00C'},{backgroundColor:'#F05924',color:'#FFF',linkColor:'#00C'},{backgroundColor:'#37B64B',color:'#fff',linkColor:'#2fc2ef'},{backgroundColor:'#0201FF',color:'#fff',linkColor:'#9c0001'},{backgroundColor:'#0000FE',
color:'#FCED20',linkColor:'#2fc2ef'},{backgroundColor:'#FCED20',color:'#0000FE',linkColor:'#2fc2ef'},{backgroundColor:'#fff',color:'#C3272A',linkColor:'#2fc2ef'},{backgroundColor:'#fff',color:'#F05924',linkColor:'#2fc2ef'},{backgroundColor:'#fff',color:'#37B64B',linkColor:'#C00'},{backgroundColor:'#fff',color:'#0201FF',linkColor:'#C00'},{backgroundColor:'#1DFF16',color:'#F4EED9',linkColor:'#C00'},{backgroundColor:'#CACFD3',color:'#343A3F',linkColor:'#C00'},{backgroundColor:'#F4EED9',color:'#1D1916',
linkColor:'#C00'},{backgroundColor:'#343A3F',color:'#CACFD3',linkColor:'#C00'},{backgroundColor:'#fff',color:'#000',linkColor:'#C00'}],languages:{'default':{name:'Default',flag:null},af:{name:'Afrikaans',flag:'sa'},sq:{name:'Albanian',flag:'al'},ar:{name:'Arabic',flag:'dz'},az:{name:'Azerbaijani',flag:'az'},eu:{name:'Basque',flag:null},bn:{name:'Bengali',flag:'bd'},be:{name:'Belarusian',flag:'by'},bg:{name:'Bulgarian',flag:'bg'},ca:{name:'Catalan',flag:'ad'},'zh-CN':{name:'Chinese Simplified',flag:'cn'},
'zh-TW':{name:'Chinese Traditional',flag:'cn'},hr:{name:'Croatian',flag:'hr'},cs:{name:'Czech',flag:'cz'},da:{name:'Danish',flag:'dk'},nl:{name:'Dutch',flag:'nl'},en:{name:'English',flag:'gb'},eo:{name:'Esperanto',flag:null},et:{name:'Estonian',flag:'ee'},tl:{name:'Filipino',flag:'ph'},fi:{name:'Finnish',flag:'fi'},fr:{name:'French',flag:'fr'},gl:{name:'Galician',flag:'gl'},ka:{name:'Georgian',flag:'ge'},de:{name:'German',flag:'de'},el:{name:'Greek',flag:'gr'},gu:{name:'Gujarati',flag:'gu'},ht:{name:'Haitian Creole',
flag:'ht'},iw:{name:'Hebrew',flag:'il'},hi:{name:'Hindi',flag:'in'},hu:{name:'Hungarian',flag:'hu'},is:{name:'Icelandic',flag:'is'},id:{name:'Indonesian',flag:'id'},ga:{name:'Irish',flag:'ie'},it:{name:'Italian',flag:'it'},ja:{name:'Japanese',flag:'jp'},kn:{name:'Kannada',flag:'id'},ko:{name:'Korean',flag:'kr'},la:{name:'Latin',flag:'va'},lv:{name:'Latvian',flag:'lv'},lt:{name:'Lithuanian',flag:'lt'},mk:{name:'Macedonian',flag:'mk'},ms:{name:'Malay',flag:'my'},mt:{name:'Maltese',flag:'mt'},no:{name:'Norwegian',
flag:'no'},fa:{name:'Persian',flag:'ir'},pl:{name:'Polish',flag:'pl'},pt:{name:'Portuguese',flag:'pt'},ro:{name:'Romanian',flag:'ro'},ru:{name:'Russian',flag:'ru'},sr:{name:'Serbian',flag:'rs'},sk:{name:'Slovak',flag:'sk'},sl:{name:'Slovenian',flag:'sk'},es:{name:'Spanish',flag:'es'},sw:{name:'Swahili',flag:'ke'},sv:{name:'Swedish',flag:'se'},ta:{name:'Tamil',flag:'in'},te:{name:'Telugu',flag:'in'},th:{name:'Thai',flag:'th'},tr:{name:'Turkish',flag:'tr'},uk:{name:'Ukrainian',flag:'ua'},ur:{name:'Urdu',
flag:'pk'},vi:{name:'Vietnamese',flag:'vn'},cy:{name:'Welsh',flag:'wales'},yi:{name:'Yiddish',flag:'ua'}}};return{setOptions:function(e){Recite.Debug.log('Recite.Controls.Mobile','Setting options');c=Recite.Util.merge(c,e)},init:function(){},localize:function(c){Recite.Debug.log('Recite.Controls.Desktop','Localizing controls: '+c)},invoke:function(e){var b=document.body,a=Recite.Dom.getStyle(e,'height');a=parseInt(a.replace('px',''),10)+10;b.style.position='absolute';b.style.paddingBottom=a+'px';
b.style.top=a+'px';b.style.width='100%';var k=Recite.Sizzle('#recite-fonts-list')[0];Recite.Util.each(c.fonts,function(a,b){a=document.createElement('li');var d=document.createTextNode(b);a.setAttribute('class','recite-font recite-preference-set');a.setAttribute('data-key','style.font.face');a.setAttribute('data-value',b);a.style.fontFamily=b;a.appendChild(d);k.appendChild(a)});var d=Recite.Sizzle('#recite-languages')[0];Recite.Util.each(c.languages,function(a,b){var c=document.createElement('li');
b=document.createTextNode(b.name);c.setAttribute('class','recite-language-set');c.setAttribute('data-language',a);c.appendChild(b);d.appendChild(c)});var g=Recite.Sizzle('#recite-swatches')[0];Recite.Util.each(c.swatches,function(a,b){a=document.createElement('div');a.setAttribute('class','recite-swatch recite-preference-set');null===b.backgroundColor&&null===b.color&&null===b.linkColor?(a.setAttribute('class',a.getAttribute('class')+' recite-swatch-default'),a.textContent='/',a.innerText='/'):(a.textContent=
'A',a.innerText='A');a.setAttribute('data-key','style.backgroundColor style.font.color style.link.color');a.setAttribute('data-value',b.backgroundColor+' '+b.color+' '+b.linkColor);a.style.setProperty('color',b.color,'important');a.style.backgroundColor=b.backgroundColor;g.appendChild(a)});e=Recite.Sizzle('.recite-dropdown-invoke',e);Recite.UI.Dropdown.invoke(e);e=Recite.Sizzle('.recite-language-set');Recite.DomEvent.add(e,'click',function(a){Recite.UI.Dropdown.hideGroup('main')});e=Recite.Sizzle('.recite-sprite-button-share-mobile')[0];
Recite.DomEvent.add(e,'click',function(a){ReciteAndroidInterface.sharePage(document.URL)});e=Recite.Sizzle('.recite-sprite-button-favourite-mobile')[0];Recite.DomEvent.add(e,'click',function(a){ReciteAndroidInterface.addToFavourites(document.URL)});var h=Recite.Sizzle('.recite-sprite-button-top-play-mobile')[0];Recite.DomEvent.add(h,'click',function(a){'stopped'===h.getAttribute('data-status')?Recite.PlayerControls.play():Recite.PlayerControls.stop()});Recite.Event.subscribe('Audio:ended',function(a,
b){f(h,'stop')});Recite.Event.subscribe('Audio:started',function(a,b){f(h,'play')})}}}();Recite.namespace('Controls.DarkMode');
Recite.Controls.DarkMode=function(){function f(){document.documentElement.setAttribute('data-recite-theme','dark');var a=document.getElementById('recite-logo-img');a&&(a.classList.remove('recite-sprite-logo-small'),a.classList.add('recite-sprite-logo-dark'))}function c(){document.documentElement.setAttribute('data-recite-theme','light');var a=document.getElementById('recite-logo-img');a&&(a.classList.remove('recite-sprite-logo-dark'),a.classList.add('recite-sprite-logo-small'))}function e(a){a=a.target.checked;
Recite.Preferences.set('darkMode',{enabled:a});a?f():c()}function b(){Recite.Preferences.set('darkMode',null);a()}function a(){k=document.getElementById('recite-dark-mode-checkbox');k.addEventListener('change',e);var a=document.getElementById('recite-swatch-reset-default');a&&a.addEventListener('click',b);a=Recite.Preferences.get('darkMode');if(a)var d=a.enabled;void 0===d||null===d?window.matchMedia&&window.matchMedia('(prefers-color-scheme: dark)').matches?(k.checked=!0,f()):(k.checked=!1,c()):
d&&(k.checked=!0,f())}Recite.Event.subscribe('Preferences:load',a);Recite.Event.subscribe('Preferences:reset',a);var k,d={enabled:!0};return{setOptions:function(a){d=Recite.Util.merge(d,a)}}}();Recite.namespace('Recite.Parser.Html');
Recite.Parser.Html=function(){function f(a){!1!==k.bubbleEvents&&(a=Recite.Sizzle('.recite-ele'),Recite.DomEvent.add(a,'click',function(a){a.target.parentNode.click()}))}function c(a){var b=null;if(0<a.length){var d=0,c=!1;Recite.Util.each(a,function(a,e){d+=Recite.Dom.getText(e).trim().length;if('IMG'==e.nodeName||'INPUT'==e.nodeName||'TEXTAREA'==e.nodeName)c=!0,e.setAttribute(k.elementAttribute,'true'),b=e});if(d>=k.minCharacters&&!c){var g=!1;Recite.Util.each(Recite.Dom.getAncestors(a[0]),function(d,
c){/ui-datepicker/g.test(c.getAttribute('class'))&&3===a[0].nodeType&&(g=!0,b=a[0].parentNode,(d=a[0].parentNode.getAttribute('class'))&&(d=d.replace(' recite-ele','')),a[0].parentNode.setAttribute('class',d+' recite-ele'))});if(!g){b=e(a[0].ownerDocument);a[0].parentNode.insertBefore(b,a[0]);for(var f=0;f<a.length;f++){var n=a[f].parentNode.removeChild(a[f]);b.appendChild(n)}}}}return b}function e(a){a=a.createElement(k.wrapTag);a.className='recite-ele recite-ele-style';a.style.display='inline';
if(k.debug.highlightElements){var b=Math.floor(256*Math.random()),d=Math.floor(256*Math.random()),c=Math.floor(256*Math.random());try{a.style.backgroundColor='rgba('+b+','+d+','+c+',0.4)'}catch(p){a.style.backgroundColor='rgb('+b+','+d+','+c+')'}}return a}function b(a){var b=[],d=[];Recite.Util.each(k.concatenateElementExceptions,function(a,d){b.push(d.toLowerCase())});Recite.Util.each(k.concatenateTypes,function(a,b){d.push(b.toLowerCase())});Recite.Util.each(k.skipConcatenation.elementTypes,function(a,
d){b.push(d.toLowerCase())});var c=0<=Recite.Util.inArray(Recite.Dom.getStyle(a,'display'),d),e=0<=Recite.Util.inArray(a.tagName.toLowerCase(),b),g=!1;Recite.Util.each(k.skipConcatenation.selectors,function(b,d){b=Recite.Sizzle(d);Recite.Util.each(b,function(b,d){d==a&&(g=!0)})});return c&&!e&&!g}function a(c,e,f){'undefined'===typeof f&&(f=[[]]);var g=!1,h=!1;if(1===c.nodeType&&/recite-ele/g.test(c.getAttribute('class')))return f;if(c){c.shadowRoot&&1==Recite.getOptions('shadowDomSupport')&&(a(c.shadowRoot,
1,f),c.setAttribute('data-recite-shadow','true'));if(1===c.nodeType&&(0<=Recite.Util.inArray(c.tagName,k.skipElements)||'true'===c.getAttribute('data-recite-skip'))||1===c.nodeType&&0<d.length&&'BR'===c.tagName&&'BR'===d[d.length-1].tagName)return f;3===c.nodeType&&Recite.Dom.getText(c).replace(/^\s*/,'').replace(/\s*$/,'');if(1===c.nodeType){var l;if(l=b(c)){a:{if(1===c.nodeType){l=c.getElementsByTagName('*');for(var n=0;n<l.length;n++)if('block'===Recite.Dom.getStyle(l[n],'display')){l=!0;break a}}l=
!1}l=!l}if(l||'INPUT'==c.nodeName||'TEXTAREA'==c.nodeName&&'true'!==c.getAttribute('data-recite-skip'))g=!0}else 3===c.nodeType&&(g=!0);!0===g&&(d[d.length-1]!==c.previousSibling&&(f.push(d),d=[]),d.push(c),h=!0);g=0;l=c.childNodes[g];if(!h)for(;l;)a(l,e+1,f),g++,l=c.childNodes[g]}return f}var k={maxCharacters:1E3,minCharacters:1,wrapTag:'recite',elementAttribute:'data-recite-ele',concatenateTypes:['inline','inline-block'],skipConcatenation:{elementTypes:['li','img','label','br'],selectors:[]},skipElements:'SCRIPT STYLE SELECT OPTION FRAMESET FRAME IFRAME NOSCRIPT'.split(' '),
parseImgAltAttribute:!0,bubbleEvents:!1,bubbleStyles:!0,debug:{highlightElements:!1},ignoreSelectors:[],concatenateElementExceptions:['li']},d=[];return{setOptions:function(a){Recite.Debug.log('Recite.Parser.Html','Setting options');k=Recite.Util.merge(k,a)},parse:function(b){var e=new Date;k.ignoreSelectors&&Recite.Util.each(k.ignoreSelectors,function(a,b){a=Recite.Sizzle(b);Recite.Util.each(a,function(a,b){b&&'true'!==b.getAttribute('data-recite-skip')&&b.setAttribute('data-recite-skip',!0)})});
var g=a(b,1);b=Recite.Sizzle('img');Recite.Util.each(b,function(a,b){'true'!==b.getAttribute('data-recite-skip')&&g.push([b])});0<d.length&&g.push(d);0===g[g.length-1].length&&g.pop();var m=[];Recite.Util.each(g,function(a,b){0!==b.length&&(a=c(b),null!==a&&m.push(a))});Recite.Debug.log('Recite.Parser.Html','Parsed '+m.length+' elements in: '+((new Date).getTime()-e.getTime())+'ms');f(m);Recite.Event.publish('Recite.Parser:parsed');e=document.getElementsByTagName('*');b=0;for(var p=e.length;b<p;b++)Recite.Style.getOptions().preserve_background_images&&
''!=e[b].style.backgroundImage&&e[b].setAttribute('class',e[b].getAttribute('class')+' recite-ignore-styles-background ');return m},wrapElements:function(a){Recite.Util.each(a,function(a,b){c(b)})}}}();Recite.namespace('Recite.Parser.Selector');
Recite.Parser.Selector=function(){var f={maxCharacters:1E3,minCharacters:1,selector:'.recite'};return{setOptions:function(c){Recite.Debug.log('Recite.Parser.Selector','Setting options');f=Recite.Util.merge(f,c)},parse:function(c){Recite.Debug.log('Recite.Parser.Selector','Parser invoked on element:',c);var e=Recite.Sizzle(f.selector,c);Recite.Util.each(e,function(b,a){a=Recite.Dom.getText(a);(a.length<f.minCharacters||a.length>f.maxCharacters)&&e.splice(b)});return e}}}();Recite.namespace('PlayerControls');
Recite.PlayerControls=function(){function f(){null===e.provider?e.enableMobileControls&&Recite.Browser.isMobile()?e.provider=Recite.PlayerControls.Fixed:e.provider=Recite.PlayerControls.Tooltip:'none'===e.provider?e.provider=Recite.PlayerControls.NoGUI:'disable'===e.provider&&(e.provider=null);null!=e.provider&&e.provider.init&&e.provider.init()}function c(){Recite.Preferences.get('playerControls.enabled')?Recite.PlayerControls.enable():Recite.PlayerControls.disable()}var e={provider:null,enableMobileControls:!0,
minSkipTime:300},b=null;Recite.Event.subscribe('Recite.Dom.Observor:change',function(a,b){void 0!=b&&b.hasOwnProperty('affectedElements')&&Recite.PlayerControls.invoke(b.affectedElements)});Recite.Event.subscribe('Recite:load',f);Recite.Event.subscribe('Preferences:load',c);Recite.Event.subscribe('Preferences:set',c);Recite.Event.subscribe('Preferences:reset',c);return{init:f,setOptions:function(a){a.provider&&e.provider&&e.provider.destroy();e=Recite.Util.merge(e,a);Recite.PlayerControls.Tooltip.setOptions(a.Tooltip);
Recite.PlayerControls.Fixed.setOptions(a.Fixed);Recite.PlayerControls.NoGUI.setOptions(a.NoGUI);a.provider&&a.provider.init&&e.provider.init()},invoke:function(a){null!=e.provider&&e.provider.invoke(a)},enable:function(){null!=e.provider&&e.provider.enable()},disable:function(){null!=e.provider&&e.provider.disable()},hide:function(){null!=e.provider&&e.provider.hide()},invalidate:function(){null!=e.provider&&e.provider.invalidate()},getControls:function(){return null!=e.provider?e.provider.getControls():
null},getProvider:function(){return e.provider},play:function(){Recite.Debug.log('Recite.PlayerControls PLAY',document.activeElement);return null!=e.provider?document.activeElement!==document.body?e.provider.play(document.activeElement):e.provider.play():null},stop:function(){return null!=e.provider?e.provider.stop():null},next:function(a){var c=Math.floor(Date.now());window.clearTimeout(null);if(null==b||c-b>e.minSkipTime)return Recite.Debug.log('Recite.PlayerControls','next'),Recite.FrameUpdater.isActive()&&
Recite.FrameUpdater.hasActiveChildFrame()?(Recite.FrameUpdater.activeFramePlayNext(),null):null!=e.provider?(a=e.provider.next(a),b=c,a):null;Recite.Debug.log('Recite.PlayerControls','Skipping too fast, halting')},previous:function(a){var c=Math.floor(Date.now());window.clearTimeout(null);if(null==b||c-b>e.minSkipTime)return Recite.Debug.log('Recite.PlayerControls','prev'),Recite.FrameUpdater.isActive()&&Recite.FrameUpdater.hasActiveChildFrame()?(Recite.FrameUpdater.activeFramePlayPrev(),null):null!=
e.provider?(a=e.provider.previous(a),b=c,a):null;Recite.Debug.log('Recite.PlayerControls','Skipping too fast, halting')},first:function(){var a=Math.floor(Date.now());window.clearTimeout(null);if(null==b||a-b>e.minSkipTime)return b=a,Recite.Debug.log('Recite.PlayerControls','first'),null!=e.provider?e.provider.first():null;Recite.Debug.log('Recite.PlayerControls','Skipping too fast, halting')},last:function(){var a=Math.floor(Date.now());window.clearTimeout(null);if(null==b||a-b>e.minSkipTime)return b=
a,Recite.Debug.log('Recite.PlayerControls','last'),null!=e.provider?e.provider.last():null;Recite.Debug.log('Recite.PlayerControls','Skipping too fast, halting')},current:function(){return null!=e.provider?e.provider.current:null}}}();Recite.namespace('PlayerControls.Tooltip');
Recite.PlayerControls.Tooltip=function(){function f(a){Recite.Util.each(p,function(b,d){Recite.Dom.isDescendant(a.target,d)||a.target===d||Recite.Dom.isDescendant(a.target,u)||a.target===u||Recite.Dom.isDescendant(a.target,Recite.Sizzle('#recite-header')[0])||k(d)})}function c(){Recite.Event.unsubscribe(w);Recite.Util.each([window],function(a,b){Recite.DomEvent.remove(b,'resize',r);Recite.DomEvent.remove(b,'scroll',v);Recite.DomEvent.remove(b,'click',f)})}function e(a){if(l){clearTimeout(h.timeout);
var d=this;u!==this&&(h.timeout=setTimeout(function(){b(d)},h.intent))}}function b(a){null!==a&&(null!==u&&(null!=u.getAttribute('class')&&u.setAttribute('class',u.getAttribute('class').replace(' recite-selected','')),Recite.Event.publish('Recite.Tooltip:hide',{target:u})),u=a,g(a),u.setAttribute('class',u.getAttribute('class')+' recite-selected'),Recite.Event.publish('Recite.Tooltip:show',{target:u}),Recite.Preferences.get('player.autoplay')&&Recite.PlayerControls.Tooltip.play())}function a(){Recite.Debug.log('Recite.Tooltip',
'Binding buttons for tooltip');var a=m.getElementById('recite-play');Recite.DomEvent.add(a,'click',function(a){Recite.PlayerControls.Tooltip.play()});a=m.getElementById('recite-stop');Recite.DomEvent.add(a,'click',function(a){Recite.Player.stop()});a=m.getElementById('recite-back');Recite.DomEvent.add(a,'click',function(a){Recite.Player.rewind()});a=m.getElementById('recite-forward');Recite.DomEvent.add(a,'click',function(a){Recite.Player.forward()})}function k(a){a.style.display='none';u&&(null!=
u.getAttribute('class')&&u.setAttribute('class',u.getAttribute('class').replace('recite-selected','')),Recite.Event.publish('Recite.Tooltip:hide',{target:u}));u=null}function d(a){return a.style&&a.style.transform?a.style.transform:'HTML'!=a.nodeName&&a.parentNode?d(a.parentNode):''}function g(b){b&&u&&b===u&&Recite.PlayerControls.getProvider().current&&Recite.PlayerControls.getProvider().current!==b&&(b=Recite.PlayerControls.getProvider().current);if(!b.matches('.recite-button-primary')&&!b.matches('.recite-sprite-button-close')){var c=
Recite.Sizzle('#recite-tooltip',m)[0];'undefined'===typeof c&&(Recite.Debug.log('Recite.Tooltip','Adding tooltip to document'),c=m.createElement('div'),c.setAttribute('class','recite-tooltip small'),c.setAttribute('id','recite-tooltip'),c.style.position='absolute',c.innerHTML='<div class="recite-tooltip-content">'+h.content+'</div>                         <div class="recite-sprite-tip-bottomleft" id="recite-tip"></div>',Recite.Sizzle('body',m)[0].appendChild(c),Recite.getOptions(),!1!==Recite.Controls.Desktop.getOptions().showLogo&&
!1!==Recite.getOptions('showBrand')&&!1===Recite.Controls.Desktop.getOptions().customLogo&&(document.getElementById('recite-tooltip-logo').setAttribute('class','recite-sprite-tooltip-logo'),c.setAttribute('class','recite-tooltip')),a(m),p.push(c),Recite.Event.publish('Tooltip:loaded'));var e=c;e.style.display='block';for(var f=0;f<p.length;f++)p[f]!==e&&(p[f].style.display='none');var g=m.body,l=Recite.Dom.getPosition(b);f=Recite.Dom.getScroll(b.ownerDocument.defaultView);var k=l.top-e.offsetHeight-
h.adjust.y,x=l.left+('right'==h.position?b.offsetWidth:0);c='recite-sprite-tip-bottom-left';var n=k-f.y-h.adjust.y,v=x+e.offsetWidth-f.x;e.style.position='absolute';var r=Recite.Dom.getAncestors(b);for(f=0;f<r.length;f++)'fixed'===Recite.Dom.getStyle(r[f],'position')&&(e.style.position='fixed',n=k-h.adjust.y);n<h.protect.top-h.adjust.y?(k=l.top+b.offsetHeight+h.adjust.y,c='recite-sprite-tip-top-left',v>g.clientWidth-h.protect.right&&(x=l.left-e.offsetWidth+h.adjust.x,c='recite-sprite-tip-top-right')):
v>g.clientWidth&&(x=l.left-e.offsetWidth+h.adjust.x,c='recite-sprite-tip-bottom-right');e.style.top=k+'px';e.style.left=x+'px';b&&(e.style.transform=d(b));b=m.getElementById('recite-tip');b.setAttribute('class',c);b.setAttribute('className',c)}}var h={dimensions:{height:0},adjust:{x:0,y:15},protect:{top:60,right:0,bottom:0,left:0},position:'left',intent:500,timeout:null,content:'<div id="recite-tooltip-logo" data-recite-skip="true"></div>            <a id="recite-play" class= "recite-sprite-tooltip-btn recite-sprite-tooltip-play" ></a>            <a id="recite-stop" class="recite-sprite-tooltip-btn recite-sprite-tooltip-stop"></a>            <a id="recite-back" class="recite-sprite-tooltip-btn recite-sprite-tooltip-back"></a>            <a id="recite-forward" class="recite-sprite-tooltip-btn recite-sprite-tooltip-forward"></a>'},
l=!0,m,p=[],u=null,n=!1,w=null,r;var v=r=function(){u&&g(u)};return{init:function(){if(!n){w=Recite.Event.subscribe('Style:updated',Recite.PlayerControls.Tooltip.invalidate);for(var a=[window],b=0;b<a.length;b++)Recite.DomEvent.add(a[b],'resize',r),Recite.DomEvent.add(a[b],'scroll',v),Recite.DomEvent.add(a[b],'click',f);n=!0}},destroy:function(){c();n=!1},enable:function(){l=!0},disable:function(){l=!1;Recite.Util.each(p,function(a,b){k(b)})},hide:function(){Recite.Util.each(p,function(a,b){k(b)})},
setOptions:function(a){h=Recite.Util.merge(h,a)},getOptions:function(){return h},invoke:function(a){this.init();m=a.ownerDocument?a.ownerDocument:document;Recite.Sizzle('.recite-controls-inner',document)&&document.querySelectorAll('.recite-controls-inner .recite-button-primary:not(.recite-player-control-btn)').forEach(function(a){a.setAttribute('data-recite-ele',!0);Recite.DomEvent.add(a,'mouseover',e);Recite.DomEvent.add(a,'focus',e);Recite.DomEvent.add(a,'mouseout',function(a){clearTimeout(h.timeout)});
Recite.DomEvent.add(a,'blur',function(a){clearTimeout(h.timeout)});Recite.DomEvent.add(a,'mouseout',function(a){clearTimeout(h.timeout)})});var b=document.querySelector('.recite-sprite-button-close');b&&(Recite.DomEvent.add(b,'mouseover',e),Recite.DomEvent.add(b,'focus',e),b=document.querySelector('.recite-sprite-button-close'),Recite.DomEvent.add(b,'blur',function(a){clearTimeout(h.timeout)}),Recite.DomEvent.add(b,'mouseout',function(a){clearTimeout(h.timeout)}));if(b=document.querySelector('.recite-sprite-logo-small'))Recite.DomEvent.add(b,
'mouseover',e),Recite.DomEvent.add(b,'focus',e),b=document.querySelector('.recite-sprite-logo-small'),Recite.DomEvent.add(b,'blur',function(a){clearTimeout(h.timeout)}),Recite.DomEvent.add(b,'mouseout',function(a){clearTimeout(h.timeout)});Recite.DomEvent.add(a,'mouseover',e);Recite.DomEvent.add(a,'mouseout',function(a){clearTimeout(h.timeout)})},invalidate:function(){u&&g(u)},play:function(a){a?(Recite.PlayerDispatcher.dispatch(a),b(a)):null===u?Recite.PlayerControls.next():Recite.PlayerDispatcher.dispatch(u)},
stop:function(){Recite.Player.stop()},seekingSupported:function(){return!0},next:function(a){'undefined'!=typeof a&&(u=a);a=Recite.Dom.getNextElement(u);if(a===u||null==a)return Recite.Debug.log('Recite.PlayerControls.Tooltip','next element same as current or null, halting'),null;b(a);Recite.Dom.isVisible(a)||Recite.Dom.scrollTo(a);return a},previous:function(a){'undefined'!=typeof a&&(u=a);a=Recite.Dom.getPreviousElement(u);if(a===u||null==a)return Recite.Debug.log('Recite.PlayerControls.Tooltip',
'prev element same as current or null, halting'),null;b(a);Recite.Dom.isVisible(a)||Recite.Dom.scrollTo(a);return a},first:function(){var a=Recite.Dom.getFirstElement();if(null!=a)b(a);else return Recite.Debug.log('Recite.PlayerControls.Tooltip','no first element, halting'),null;Recite.Dom.isVisible(a)||Recite.Dom.scrollTo(a)},last:function(){var a=Recite.Dom.getLastElement();if(null!=a)b(a);else return Recite.Debug.log('Recite.PlayerControls.Tooltip','no last element, halting'),null;Recite.Dom.isVisible(a)||
Recite.Dom.scrollTo(a)},setCurrent:function(a){u=a},current:u}}();Recite.namespace('PlayerControls.Fixed');
Recite.PlayerControls.Fixed=function(){function f(){n=Recite.Event.subscribe('Style:updated',Recite.PlayerControls.Tooltip.invalidate);for(var a=[window],b=0;b<a.length;b++)Recite.DomEvent.add(a[b],'resize',w),Recite.DomEvent.add(a[b],'scroll',r),Recite.DomEvent.add(a[b],'click',v)}function c(){Recite.Event.unsubscribe(n);Recite.Util.each([window],function(a,b){Recite.DomEvent.remove(b,'resize',w);Recite.DomEvent.remove(b,'scroll',r);Recite.DomEvent.remove(b,'click',v)})}function e(a){if(h){clearTimeout(g.timeout);
var d=this;p!==this&&(g.timeout=setTimeout(function(){b(d)},g.intent))}}function b(a){null!==p&&null!=p.getAttribute('class')&&p.setAttribute('class',p.getAttribute('class').replace('recite-selected',''));p=a;d(a);Recite.Event.publish('PlayerControls:show_tooltip');Recite.Preferences.get('player.autoplay')&&Recite.PlayerDispatcher.dispatch(p);p.setAttribute('class',p.getAttribute('class')+' recite-selected')}function a(){Recite.Debug.log('Recite.PlayerControls.Fixed','Binding buttons for fixed controls');
var a=l.getElementById('recite-play');Recite.DomEvent.add(a,'click',function(a){Recite.PlayerDispatcher.dispatch(p)});a=l.getElementById('recite-stop');Recite.DomEvent.add(a,'click',function(a){Recite.Player.stop()});a=l.getElementById('recite-back');Recite.DomEvent.add(a,'click',function(a){Recite.PlayerControls.previous()});a=l.getElementById('recite-forward');Recite.DomEvent.add(a,'click',function(a){Recite.PlayerControls.next()})}function k(a){a.style.display='none';null!==p&&null!=p.getAttribute('class')&&
p.setAttribute('class',p.getAttribute('class').replace('recite-selected',''));Recite.Sizzle('body',document)[0].style.paddingBottom='0px';p=null;Recite.Event.publish('PlayerControls:hide_tooltip')}function d(b){b=Recite.Sizzle('#recite-tooltip',l)[0];'undefined'===typeof b&&(Recite.Debug.log('Recite.PlayerControls.Fixed','Adding fixed controls to document'),b=l.createElement('div'),b.setAttribute('class','recite-tooltip-fixed'),b.setAttribute('id','recite-tooltip'),b.style.position='absolute',b.innerHTML=
'<div class="recite-tooltip-content">'+g.content+'</div>               <div class="recite-tip-bottomleft" id="recite-tip"></div>',Recite.Sizzle('body',l)[0].appendChild(b),a(l),m.push(b));Recite.Debug.log('Recite.PlayerControls.Fixed','Fixed controls added to document: '+b);b.style.display='block';b.style.position='fixed';for(var d=0;d<m.length;d++)m[d]!==b&&(m[d].style.display='none');Recite.Sizzle('body',document)[0].style.paddingBottom=g.dimensions.height+'px'}var g={dimensions:{height:98},intent:500,
timeout:null,content:'<a id="recite-back" class="recite-sprite-mobile-previous"></a>                   <a id="recite-play" class="recite-sprite-mobile-play"></a>                   <a id="recite-stop" class="recite-sprite-mobile-stop"></a>                   <a id="recite-forward" class="recite-sprite-mobile-next"></a>'},h=!0,l,m=[],p=null,u=!1,n=null,w;var r=w=function(){p&&d(p)};var v=function(a){Recite.Util.each(m,function(b,d){Recite.Dom.isDescendant(a.target,d)||a.target===d||Recite.Dom.isDescendant(a.target,
p)||a.target===p||Recite.Dom.isDescendant(a.target,Recite.Sizzle('#recite-header')[0])||k(d)})};return{init:function(){u||(f(),u=!0)},destroy:function(){c();u=!1},enable:function(){h||f();h=!0},disable:function(){h&&c();h=!1},hide:function(){Recite.Util.each(m,function(a,b){k(b)})},setOptions:function(a){g=Recite.Util.merge(g,a)},getOptions:function(){return g},invoke:function(a){Recite.Debug.log('Recite.Tooltop.Desktop','Invoking fixed playerControls');l=a.ownerDocument?a.ownerDocument:document;
Recite.DomEvent.add(a,'mouseover',e);Recite.DomEvent.add(a,'mouseout',function(a){clearTimeout(g.timeout)})},invalidate:function(){p&&d(p)},seekingSupported:function(){return!0},play:function(a){a?(Recite.PlayerDispatcher.dispatch(a),b(a)):null===p?Recite.PlayerControls.next():Recite.PlayerDispatcher.dispatch(p)},stop:function(){Recite.Player.stop()},next:function(a){'undefined'!=typeof a&&(p=a);a=Recite.Dom.getNextElement(p);a===p||null===a?Recite.Debug.log('Recite.PlayerControls.Fixed','next element same as current or null, halting'):
(b(a),Recite.Dom.isVisible(a)||Recite.Dom.scrollTo(a))},previous:function(a){'undefined'!=typeof a&&(p=a);a=Recite.Dom.getPreviousElement(p);a===p||null===a?Recite.Debug.log('Recite.PlayerControls.Fixed','prev element same as current or null, halting'):(b(a),Recite.Dom.isVisible(a)||Recite.Dom.scrollTo(a))},first:function(){var a=Recite.Dom.getFirstElement();if(null!=a)b(a);else return Recite.Debug.log('Recite.PlayerControls.Fixed','no first element, halting'),null;Recite.Dom.isVisible(a)||Recite.Dom.scrollTo(a)},
last:function(){var a=Recite.Dom.getLastElement();if(null!=a)b(a);else return Recite.Debug.log('Recite.PlayerControls.Fixed','no last element, halting'),null;Recite.Dom.isVisible(a)||Recite.Dom.scrollTo(a)},current:p}}();Recite.namespace('PlayerControls.NoGUI');
Recite.PlayerControls.NoGUI=function(){function f(b){null!==b&&(null!==a&&null!=a.getAttribute('class')&&a.setAttribute('class',a.getAttribute('class').replace('recite-selected','')),a=b,a.setAttribute('class',a.getAttribute('class')+' recite-selected'),Recite.Preferences.get('player.autoplay')&&Recite.PlayerControls.NoGUI.play())}function c(d){if(b){clearTimeout(e.timeout);var c=this;a!==this&&(e.timeout=setTimeout(function(){f(c)},e.intent))}}var e={timeout:null,dimensions:{height:0}},b=!0,a=null,
k=!1;return{init:function(){k||(Recite.Event.subscribe('Style:updated',Recite.PlayerControls.Tooltip.invalidate),k=!0)},destroy:function(){k=!1},enable:function(){b=!0},disable:function(){b=!1},hide:function(){null!==a&&(null!=a.getAttribute('class')&&a.setAttribute('class',a.getAttribute('class').replace('recite-selected','')),Recite.Event.publish('Recite.Tooltip:hide',{target:a}));a=null},setOptions:function(a){e=Recite.Util.merge(e,a)},getOptions:function(){return e},invoke:function(a){this.init();
Recite.Debug.log('Recite.PlayerControls.NoGUI','Invoking NoGUI controls.');Recite.DomEvent.add(a,'mouseover',c);Recite.DomEvent.add(a,'mouseout',function(a){clearTimeout(e.timeout)})},invalidate:function(){},play:function(b){b?(Recite.PlayerDispatcher.dispatch(b),f(b)):null===a?Recite.PlayerControls.next():Recite.PlayerDispatcher.dispatch(a)},stop:function(){Recite.Player.stop()},seekingSupported:function(){return!0},next:function(b){'undefined'!=typeof b&&(a=b);b=Recite.Dom.getNextElement(a);b===
a||null===b?Recite.Debug.log('Recite.PlayerControls.NoGUI','next element same as current or null, halting'):f(b)},previous:function(b){'undefined'!=typeof b&&(a=b);b=Recite.Dom.getPreviousElement(a);b===a||null===b?Recite.Debug.log('Recite.PlayerControls.NoGUI','prev element same as current or null, halting'):f(b)},first:function(){var a=Recite.Dom.getFirstElement();if(null!=a)f(a);else return Recite.Debug.log('Recite.PlayerControls.NoGUI','no first element, halting'),null},last:function(){var a=
Recite.Dom.getLastElement();if(null!=a)f(a);else return Recite.Debug.log('Recite.PlayerControls.NoGUI','no last element, halting'),null},current:a}}();Recite.namespace('PlayerControls.MobileControls');
Recite.PlayerControls.MobileControls=function(){function f(){v=Recite.Event.subscribe('Style:updated',Recite.PlayerControls.Tooltip.invalidate);for(var a=[window],b=0;b<a.length;b++)Recite.DomEvent.add(a[b],'resize',y),Recite.DomEvent.add(a[b],'scroll',B),Recite.DomEvent.add(a[b],'click',E)}function c(){Recite.Event.unsubscribe(v);Recite.Util.each([window],function(a,b){Recite.DomEvent.remove(b,'resize',y);Recite.DomEvent.remove(b,'scroll',B);Recite.DomEvent.remove(b,'click',E)})}function e(a){if(m)if(w)w=
!1;else{Recite.Player.prepare();clearTimeout(l.timeout);var d=this;n!==this&&(l.timeout=setTimeout(function(){b(d)},l.intent))}}function b(a){null!==n&&null!=n.getAttribute('class')&&n.setAttribute('class',n.getAttribute('class').replace('recite-selected',''));n=a;h(a);Recite.Preferences.get('player.autoplay')&&(Recite.Debug.log('Recite.MobileControls','Playing audio...'),Recite.PlayerDispatcher.dispatch(n));n.setAttribute('class',n.getAttribute('class')+' recite-selected')}function a(){Recite.Debug.log('Recite.PlayerControls.MobileControls',
'Binding buttons for mobile controls');var a=p.getElementById('recite-play');Recite.DomEvent.add(a,'click',function(a){p.getElementById('recite-play');x?(d(),Recite.Player.stop(),x=!1):(g(),Recite.PlayerDispatcher.dispatch(n),x=!0)});a=p.getElementById('recite-back');Recite.DomEvent.add(a,'click',function(a){Recite.PlayerControls.Mobile.previous()});a=p.getElementById('recite-forward');Recite.DomEvent.add(a,'click',function(a){Recite.PlayerControls.next()})}function k(a){a.style.display='none';null!==
n&&null!=n.getAttribute('class')&&n.setAttribute('class',n.getAttribute('class').replace('recite-selected',''));Recite.Sizzle('body',document)[0].style.paddingBottom='0px';n=null}function d(){p.getElementById('recite-play').setAttribute('class','recite-sprite-mobile-play')}function g(){p.getElementById('recite-play').setAttribute('class','recite-sprite-mobile-stop')}function h(b){b=Recite.Sizzle('#recite-tooltip',p)[0];'undefined'===typeof b&&(Recite.Debug.log('Recite.PlayerControls.MobileControls',
'Adding mobile controls to document'),b=p.createElement('div'),b.setAttribute('class','recite-tooltip-mobile'),b.setAttribute('id','recite-tooltip'),b.style.position='absolute',b.innerHTML='<div class="recite-tooltip-content">'+l.content+'</div>               <div class="recite-tip-bottomleft" id="recite-tip"></div>',Recite.Sizzle('body',p)[0].appendChild(b),a(p),u.push(b));Recite.Debug.log('Recite.PlayerControls.MobileControls','Mobile controls added to document: '+b);b.style.display='block';b.style.position=
'mobile';for(var d=0;d<u.length;d++)u[d]!==b&&(u[d].style.display='none');Recite.Sizzle('body',document)[0].style.paddingBottom=l.dimensions.height+'px'}var l={dimensions:{height:58},intent:500,timeout:null,content:'<a id="recite-back" class="recite-sprite-mobile-previous"></a>                   <a id="recite-play" class="recite-sprite-mobile-play"></a>                   <a id="recite-forward" class="recite-sprite-mobile-next"></a>'},m=!0,p,u=[],n=null,w=!1,r=!1,v=null,x=!1,y;var B=y=function(){n&&
h(n)};var E=function(a){Recite.Util.each(u,function(b,d){Recite.Dom.isDescendant(a.target,d)||a.target===d||Recite.Dom.isDescendant(a.target,n)||a.target===n||Recite.Dom.isDescendant(a.target,Recite.Sizzle('#recite-header')[0])||k(d)})};return{init:function(){r||(f(),r=!0)},destroy:function(){c();r=!1},enable:function(){m||f();m=!0},disable:function(){m&&c();m=!1},hide:function(){Recite.Util.each(u,function(a,b){k(b)})},setOptions:function(a){l=Recite.Util.merge(l,a)},getOptions:function(){return l},
invoke:function(a){Recite.Debug.log('Recite.Tooltop.Desktop','Invoking mobile playerControls');p=a.ownerDocument?a.ownerDocument:document;Recite.DomEvent.add(a,'touchmove',function(){w=!0});Recite.DomEvent.add(a,'click',e);Recite.Event.subscribe('Audio:started',function(){x=!0;g()});Recite.Event.subscribe('Audio:ended',function(){d()})},invalidate:function(){n&&h(n)},seekingSupported:function(){return!0},play:function(a){a?(Recite.PlayerDispatcher.dispatch(a),b(a)):null===n?Recite.PlayerControls.next():
Recite.PlayerDispatcher.dispatch(n)},stop:function(){Recite.Player.stop()},next:function(a){'undefined'!=typeof a&&(n=a);a=Recite.Dom.getNextElement(n);a===n||null===a?Recite.Debug.log('Recite.PlayerControls.MobileControls','next element same as current or null, halting'):(b(a),Recite.Dom.isVisible(a)||Recite.Dom.scrollTo(a))},previous:function(a){'undefined'!=typeof a&&(n=a);a=Recite.Dom.getPreviousElement(n);a===n||null===a?Recite.Debug.log('Recite.PlayerControls.MobileControls','prev element same as current or null, halting'):
(b(a),Recite.Dom.isVisible(a)||Recite.Dom.scrollTo(a))},first:function(){var a=Recite.Dom.getFirstElement();if(null!=a)b(a);else return Recite.Debug.log('Recite.PlayerControls.MobileControls','no first element, halting'),null;Recite.Dom.isVisible(a)||Recite.Dom.scrollTo(a)},last:function(){var a=Recite.Dom.getLastElement();if(null!=a)b(a);else return Recite.Debug.log('Recite.PlayerControls.MobileControls','no last element, halting'),null;Recite.Dom.isVisible(a)||Recite.Dom.scrollTo(a)},current:n}}();
Recite.namespace('PlayerDispatcher');
Recite.PlayerDispatcher=function(){function f(){g='en';for(var a in d)d[a].translated=!1}function c(b){if('A'===b.tagName&&!b.getAttribute('href')||'IMG'===b.tagName&&!b.getAttribute('alt'))return d[a.readElements.SPAN];if('LABEL'===b.tagName){var c=b.getAttribute('for');if(c&&(c=document.getElementById(c))&&c.checked)return d.checked}return d[a.readElements[b.tagName]]}function e(a,b){b=void 0===b?'':b;if('undefined'==typeof a)return'';var d=c(a);if(d){var f='';d.translated?f=d.translated:d['default']&&
(f=d['default']);-1==b.lastIndexOf(f,0)&&(b+=f+': ')}if(!b){f=Recite.Dom.getAncestors(a);for(var g=0;g<f.length;g++)if(d=c(f[g])){f='';d.translated?f=d.translated:d['default']&&(f=d['default']);b+=f+': ';break}}if(a.nodeType===Node.TEXT_NODE)b+=Recite.Dom.getText(a)+' ';else if('IMG'===a.tagName&&a.getAttribute('alt'))b+=a.getAttribute('alt')+' ';else if('INPUT'===a.tagName||'TEXTAREA'===a.tagName)if(''==a.value)(d=a.getAttribute('placeholder'))&&(b+=d+' ');else if('button'==a.getAttribute('type')||
'submit'==a.getAttribute('type'))b=a.value;if('RECITE-HIDDEN'===a.tagName)return b;if(a.ariaLabel)b+=a.ariaLabel;else if(a.childNodes)for(g=0;g<a.childNodes.length;g++)b=e(a.childNodes[g],b);return b}function b(a,b){b||(b=Recite.Language.Locale.getWorkingPageLocale());var d=null,c=null;'string'===typeof a?d=a:(d=e(a),c=a.getAttribute('data-recite-voice')||null);try{if(d&&0<d.length&&(Recite.Player.play(d,b,c),Recite.Stats.log('tts','global','play','confirm',b),Recite.getOptions().autoCache&&'string'!==
typeof a)){var f=Recite.Dom.getNextElement(a,!0),g=e(f);f!==a&&null!=f&&''!=g&&setTimeout(function(){k===a&&Recite.Player.cache(g,b,c)},500)}}catch(w){if(w instanceof Recite.Player.PlayerException)switch(w.code){case 400:Recite.Gui.Notification.show('This language is not supported by Recite',{play:!0})}}}var a={readElements:{A:'link',IMG:'image'}},k=null,d={link:{'default':'link',translated:!1},image:{'default':'image',translated:!1},checked:{'default':'selected',translated:!1}},g='en';Recite.Event.subscribe('Translate:begin',
function(a,b){b=b['lang:'];if(b!=g){g=b;a=[];for(var c in d)a.push(d[c]['default']);c=Recite.Language.Locale.stripLanguageLocale(b);c==Recite.Language.Translate.getOptions().sourceLanguage?f():Recite.Api.call('translate','POST',{data:{target:c,source:'en',text:a},contentType:'application/json',success:function(a){var b=0,c;for(c in d)d[c].translated=a[b++]}})}});Recite.Event.subscribe('Translate:restore_begin',f);return{setOptions:function(b){a=Recite.Util.merge(a,b)},dispatch:function(a){(null===
Recite.Player.getPlayer()||Recite.Player.getPlayer().getOptions().prepareAudio)&&Recite.Player.prepare();var d=null,c=null;'string'===typeof a?d=a:(c=Recite.Dom.getLanguage(a),k=a,d=Recite.Dom.getText(a));var e=Recite.Player.getOptions().languageDetection;2===e||null===c&&1<=e?c=Recite.Dom.detectLanguage(d,function(d){'und'===d&&(d=null);b(a,d)}):b(a,c)}}}();Recite.namespace('Player');
Recite.Player=function(){function f(){if(e)return e;var a=Recite.Audio.AEBroker.init();a?e=a:alert('Sorry, Recite requires either an HTML5 compatible browser or Flash support. Please upgrade your browser or install Flash to use Recite.');return e}function c(a,c,d,g,h){c=c||b.language;if(!Recite.Player.languageSupported(c))throw Recite.Debug.log('Recite.Player','Language not supported:'+c),new Recite.Player.PlayerException(400,'Unsupported Language');var l=f().format();d={q:a,f:l};null!==c&&(d.l=c);
var k=Recite.Preferences.get('voice.gender');d.g=k;(k=Recite.Preferences.get('player.playbackSpeed'))||(k=1);d.s=k;Recite.Debug.log('Recite.Player','Audio request: '+a);0>a.length&&!g.cache?(Recite.Debug.log('Recite.Player','GET Request'),Recite.Api.getUri('tts',{authRequired:!0,data:d,success:function(a){Recite.Debug.log('Recite.Player','Request url: '+a);h&&h(a)}})):(Recite.Debug.log('Recite.Player','POST Request'),e.getOptions().playlist||(d.playlist=!1),e.getOptions().waitForAudioProcessing&&
(d.waitForProcessing=!0),Recite.Api.call('tts','POST',{data:d,contentType:'application/json; charset=UTF-8',success:function(a){var b=a.data;Recite.Auth.getStatus(function(a){g.cache&&h.call();var d=[];Recite.Debug.log('Recite.Player','POST Callback');void 0!==b.id?(Recite.Debug.log('Recite.Player','Playing single file'),b.url=Recite.baseUrl+'/api/tts/'+b.id+'?f='+l+'&cid='+Recite.Auth.getOptions().client_id+'&guid='+a.guid,d.push(b)):(Recite.Debug.log('Recite.Player','Playing multiple files - create a playlist'),
Recite.Util.each(b,function(b,c){c.url=Recite.baseUrl+'/api/tts/'+c.id+'?f='+l+'&cid='+Recite.Auth.getOptions().client_id+'&guid='+a.guid;Recite.Debug.log('Recite.Player','Adding to playlist: '+c.url);d.push(c);Recite.Debug.log('Recite.Player','Added to playlist: '+c.url)}));h&&(Recite.Debug.log('Recite.Player','Calling callback with playlist'),h(d))})}}));Recite.Event.publish('Recite:ModuleEvent',{name:'Recite.Player',event:'play ('+c+')'})}var e=null,b={language:null,voices:{},languages:["cy","cy-gb","en","en-gb","en-us","en-ca","en-ie","en-nie","en-in","en-au","fr","fr-fr","fr-ca","cn","da","nl","nl-nl","de","de-de","hi","is","it","ja","ko","no","pl","pl-pl","pt-br","pt","ro","ru","es","es-es","es-mx","es-us","sv","tr","cy","cy-gb","en","en-gb","en-us","en-ca","en-ie","en-nie","en-in","en-au","fr","fr-fr","fr-ca","cn","da","nl","nl-nl","de","de-de","hi","is","it","ja","ko","no","pl","pl-pl","pt-br","pt","ro","ru","es","es-es","es-mx","es-us","sv","tr","cy","cy-gb","en","en-gb","en-us","en-ca","en-ie","en-nie","en-in","en-au","fr","fr-fr","fr-ca","cn","da","nl","nl-nl","de","de-de","hi","is","it","ja","ko","no","pl","pl-pl","pt-br","pt","ro","ru","es","es-es","es-mx","es-us","sv","tr","ar-ae","ar","zh-cn","zh-tw","cs","el","fi","sk","sk-sk","hu","hu-hu","id","ta","vi","ar-ae","ar","zh-cn","zh-tw","cs","el","fi","sk","sk-sk","hu","hu-hu","id","ta","vi","ar-ae","ar","zh-cn","zh-tw","cs","el","fi","sk","sk-sk","hu","hu-hu","id","ta","vi","ar-ae","ar","zh-cn","zh-tw","cs","el","fi","sk","sk-sk","hu","hu-hu","id","ta","vi","ar-ae","ar","zh-cn","zh-tw","cs","el","fi","sk","sk-sk","hu","hu-hu","id","ta","vi","ar-ae","ar","zh-cn","zh-tw","cs","el","fi","sk","sk-sk","hu","hu-hu","id","ta","vi","ur","ga","ga-ga","uk","af","am","bn","bg","ca","hr","gl","gu","he","iw","is","kn","km","lo","lv","lt","mk","ms","ml","mt","mr","fa","sr","si","sk","sk-sk","so","su","te","th","uz","zu","sl","ar-ae","ar","zh-cn","zh-tw","cs","el","fi","sk","sk-sk","hu","hu-hu","id","ta","vi","ar-ae","ar","zh-cn","zh-tw","cs","el","fi","sk","sk-sk","hu","hu-hu","id","ta","vi","ar-ae","ar","zh-cn","zh-tw","cs","el","fi","sk","sk-sk","hu","hu-hu","id","ta","vi","en","EN-US","en-us","en-gb","en-sc","en-au","ar-ae","ar","tr","it","ko","zh-CN","zh-TW","th","ja","id","eu","ca","cs","da","nl","fi","fr","fr-fr","de","el","hi","hu","no","pl","pt","ro","ru","sk","es","sv","gl","iw","ar-ae","ar","zh-cn","zh-tw","cs","el","fi","sk","sk-sk","hu","hu-hu","id","ta","vi","ar-ae","ar","zh-cn","zh-tw","cs","el","fi","sk","sk-sk","hu","hu-hu","id","ta","vi","gd","ga","ga-ga","ur","ga","ga-ga","uk","af","am","bn","bg","ca","hr","gl","gu","he","iw","is","kn","km","lo","lv","lt","mk","ms","ml","mt","mr","fa","sr","si","sk","sk-sk","so","su","te","th","uz","zu","sl","ur","ga","ga-ga","uk","af","am","bn","bg","ca","hr","gl","gu","he","iw","is","kn","km","lo","lv","lt","mk","ms","ml","mt","mr","fa","sr","si","sk","sk-sk","so","su","te","th","uz","zu","sl","ur","ga","ga-ga","uk","af","am","bn","bg","ca","hr","gl","gu","he","iw","is","kn","km","lo","lv","lt","mk","ms","ml","mt","mr","fa","sr","si","sk","sk-sk","so","su","te","th","uz","zu","sl","ar-ae","ar","zh-cn","zh-tw","cs","el","fi","sk","sk-sk","hu","hu-hu","id","ta","vi","ur","ga","ga-ga","uk","af","am","bn","bg","ca","hr","gl","gu","he","iw","is","kn","km","lo","lv","lt","mk","ms","ml","mt","mr","fa","sr","si","sk","sk-sk","so","su","te","th","uz","zu","sl","ur","ga","ga-ga","uk","af","am","bn","bg","ca","hr","gl","gu","he","iw","is","kn","km","lo","lv","lt","mk","ms","ml","mt","mr","fa","sr","si","sk","sk-sk","so","su","te","th","uz","zu","sl","ur","ga","ga-ga","uk","af","am","bn","bg","ca","hr","gl","gu","he","iw","is","kn","km","lo","lv","lt","mk","ms","ml","mt","mr","fa","sr","si","sk","sk-sk","so","su","te","th","uz","zu","sl","ur","ga","ga-ga","uk","af","am","bn","bg","ca","hr","gl","gu","he","iw","is","kn","km","lo","lv","lt","mk","ms","ml","mt","mr","fa","sr","si","sk","sk-sk","so","su","te","th","uz","zu","sl","ur","ga","ga-ga","uk","af","am","bn","bg","ca","hr","gl","gu","he","iw","is","kn","km","lo","lv","lt","mk","ms","ml","mt","mr","fa","sr","si","sk","sk-sk","so","su","te","th","uz","zu","sl","ur","ga","ga-ga","uk","af","am","bn","bg","ca","hr","gl","gu","he","iw","is","kn","km","lo","lv","lt","mk","ms","ml","mt","mr","fa","sr","si","sk","sk-sk","so","su","te","th","uz","zu","sl","ur","ga","ga-ga","uk","af","am","bn","bg","ca","hr","gl","gu","he","iw","is","kn","km","lo","lv","lt","mk","ms","ml","mt","mr","fa","sr","si","sk","sk-sk","so","su","te","th","uz","zu","sl","ur","ga","ga-ga","uk","af","am","bn","bg","ca","hr","gl","gu","he","iw","is","kn","km","lo","lv","lt","mk","ms","ml","mt","mr","fa","sr","si","sk","sk-sk","so","su","te","th","uz","zu","sl","ur","ga","ga-ga","uk","af","am","bn","bg","ca","hr","gl","gu","he","iw","is","kn","km","lo","lv","lt","mk","ms","ml","mt","mr","fa","sr","si","sk","sk-sk","so","su","te","th","uz","zu","sl","ur","ga","ga-ga","uk","af","am","bn","bg","ca","hr","gl","gu","he","iw","is","kn","km","lo","lv","lt","mk","ms","ml","mt","mr","fa","sr","si","sk","sk-sk","so","su","te","th","uz","zu","sl","ur","ga","ga-ga","uk","af","am","bn","bg","ca","hr","gl","gu","he","iw","is","kn","km","lo","lv","lt","mk","ms","ml","mt","mr","fa","sr","si","sk","sk-sk","so","su","te","th","uz","zu","sl","ur","ga","ga-ga","uk","af","am","bn","bg","ca","hr","gl","gu","he","iw","is","kn","km","lo","lv","lt","mk","ms","ml","mt","mr","fa","sr","si","sk","sk-sk","so","su","te","th","uz","zu","sl","ur","ga","ga-ga","uk","af","am","bn","bg","ca","hr","gl","gu","he","iw","is","kn","km","lo","lv","lt","mk","ms","ml","mt","mr","fa","sr","si","sk","sk-sk","so","su","te","th","uz","zu","sl","ur","ga","ga-ga","uk","af","am","bn","bg","ca","hr","gl","gu","he","iw","is","kn","km","lo","lv","lt","mk","ms","ml","mt","mr","fa","sr","si","sk","sk-sk","so","su","te","th","uz","zu","sl","ur","ga","ga-ga","uk","af","am","bn","bg","ca","hr","gl","gu","he","iw","is","kn","km","lo","lv","lt","mk","ms","ml","mt","mr","fa","sr","si","sk","sk-sk","so","su","te","th","uz","zu","sl","ur","ga","ga-ga","uk","af","am","bn","bg","ca","hr","gl","gu","he","iw","is","kn","km","lo","lv","lt","mk","ms","ml","mt","mr","fa","sr","si","sk","sk-sk","so","su","te","th","uz","zu","sl","ur","ga","ga-ga","uk","af","am","bn","bg","ca","hr","gl","gu","he","iw","is","kn","km","lo","lv","lt","mk","ms","ml","mt","mr","fa","sr","si","sk","sk-sk","so","su","te","th","uz","zu","sl","ur","ga","ga-ga","uk","af","am","bn","bg","ca","hr","gl","gu","he","iw","is","kn","km","lo","lv","lt","mk","ms","ml","mt","mr","fa","sr","si","sk","sk-sk","so","su","te","th","uz","zu","sl","ur","ga","ga-ga","uk","af","am","bn","bg","ca","hr","gl","gu","he","iw","is","kn","km","lo","lv","lt","mk","ms","ml","mt","mr","fa","sr","si","sk","sk-sk","so","su","te","th","uz","zu","sl","ur","ga","ga-ga","uk","af","am","bn","bg","ca","hr","gl","gu","he","iw","is","kn","km","lo","lv","lt","mk","ms","ml","mt","mr","fa","sr","si","sk","sk-sk","so","su","te","th","uz","zu","sl","ur","ga","ga-ga","uk","af","am","bn","bg","ca","hr","gl","gu","he","iw","is","kn","km","lo","lv","lt","mk","ms","ml","mt","mr","fa","sr","si","sk","sk-sk","so","su","te","th","uz","zu","sl","ur","ga","ga-ga","uk","af","am","bn","bg","ca","hr","gl","gu","he","iw","is","kn","km","lo","lv","lt","mk","ms","ml","mt","mr","fa","sr","si","sk","sk-sk","so","su","te","th","uz","zu","sl","ur","ga","ga-ga","uk","af","am","bn","bg","ca","hr","gl","gu","he","iw","is","kn","km","lo","lv","lt","mk","ms","ml","mt","mr","fa","sr","si","sk","sk-sk","so","su","te","th","uz","zu","sl","ur","ga","ga-ga","uk","af","am","bn","bg","ca","hr","gl","gu","he","iw","is","kn","km","lo","lv","lt","mk","ms","ml","mt","mr","fa","sr","si","sk","sk-sk","so","su","te","th","uz","zu","sl","ur","ga","ga-ga","uk","af","am","bn","bg","ca","hr","gl","gu","he","iw","is","kn","km","lo","lv","lt","mk","ms","ml","mt","mr","fa","sr","si","sk","sk-sk","so","su","te","th","uz","zu","sl","ur","ga","ga-ga","uk","af","am","bn","bg","ca","hr","gl","gu","he","iw","is","kn","km","lo","lv","lt","mk","ms","ml","mt","mr","fa","sr","si","sk","sk-sk","so","su","te","th","uz","zu","sl","ur","ga","ga-ga","uk","af","am","bn","bg","ca","hr","gl","gu","he","iw","is","kn","km","lo","lv","lt","mk","ms","ml","mt","mr","fa","sr","si","sk","sk-sk","so","su","te","th","uz","zu","sl","ur","ga","ga-ga","uk","af","am","bn","bg","ca","hr","gl","gu","he","iw","is","kn","km","lo","lv","lt","mk","ms","ml","mt","mr","fa","sr","si","sk","sk-sk","so","su","te","th","uz","zu","sl","ur","ga","ga-ga","uk","af","am","bn","bg","ca","hr","gl","gu","he","iw","is","kn","km","lo","lv","lt","mk","ms","ml","mt","mr","fa","sr","si","sk","sk-sk","so","su","te","th","uz","zu","sl","ur","ga","ga-ga","uk","af","am","bn","bg","ca","hr","gl","gu","he","iw","is","kn","km","lo","lv","lt","mk","ms","ml","mt","mr","fa","sr","si","sk","sk-sk","so","su","te","th","uz","zu","sl","ur","ga","ga-ga","uk","af","am","bn","bg","ca","hr","gl","gu","he","iw","is","kn","km","lo","lv","lt","mk","ms","ml","mt","mr","fa","sr","si","sk","sk-sk","so","su","te","th","uz","zu","sl","ur","ga","ga-ga","uk","af","am","bn","bg","ca","hr","gl","gu","he","iw","is","kn","km","lo","lv","lt","mk","ms","ml","mt","mr","fa","sr","si","sk","sk-sk","so","su","te","th","uz","zu","sl","ur","ga","ga-ga","uk","af","am","bn","bg","ca","hr","gl","gu","he","iw","is","kn","km","lo","lv","lt","mk","ms","ml","mt","mr","fa","sr","si","sk","sk-sk","so","su","te","th","uz","zu","sl","cy","cy-gb","en","en-gb","en-us","en-ca","en-ie","en-nie","en-in","en-au","fr","fr-fr","fr-ca","cn","da","nl","nl-nl","de","de-de","hi","is","it","ja","ko","no","pl","pl-pl","pt-br","pt","ro","ru","es","es-es","es-mx","es-us","sv","tr","cy","cy-gb"],
languageDetection:1};Recite.Event.subscribe('Audio:ended',function(){Recite.Debug.log('Recite.Player','-------\x3eAudio ended')});return{setOptions:function(a){b=Recite.Util.merge(b,a)},getOptions:function(){return b},init:function(){if(null===b.language){var a=document.documentElement.lang;0<a.length&&this.setOptions({language:a})}},prepare:function(){f().getOptions().prepareAudio&&(Recite.Debug.log('Recite.Player','--------------------\x3e Preloading audio...'),f().play({url:Recite.baseUrl+'/audio/blank.mp3'}))},
play:function(a,b,d){f().getOptions().playlist&&f().clearPlaylist();c(a,b.toLowerCase(),d,{},function(a){Recite.Debug.log('Recite.Player','In callback');1==a.length?(Recite.Debug.log('Recite.Player','Queue length == 1 ... '+a[0].url),f().play(a[0])):(Recite.Debug.log('Recite.Player','Queue length = '+a.length),Recite.Util.each(a,function(a,b){Recite.Debug.log('Recite.Player','Adding URL to playlist: '+b.url);f().addToPlaylist(b)}),Recite.Debug.log('Recite.Player','Play the playlist'),f().playPlaylist(),
Recite.Debug.log('Recite.Player','Finished invoking play'))})},pause:function(){f().pause()},restart:function(){f().restart()},resume:function(){f().resume()},cache:function(a,b,d){c(a,b.toLowerCase(),d,{cache:!0},function(b){Recite.Debug.log('Recite.Player','Cached audio for: '+a)})},stop:function(){f().stop()},rewind:function(){f().rewind()},forward:function(){f().forward()},setPlayer:function(a){e=a},getPlayer:function(){return e},getSupportedLanguauges:function(){return b.languages},languageSupported:function(a){return-1<
Recite.Util.inArray(a.toLowerCase(),b.languages)||null===a}}}();Recite.Player.PlayerException=function(f,c){this.code=f;this.message=c};Recite.namespace('Audio.WebAudio');
Recite.Audio.WebAudio=function(){function f(){Recite.Player.getPlayer().play(b[0]);b.splice(0,1)}function c(d){null!=a&&Recite.Audio.WebAudio.stop();Recite.Event.publish('Audio:started');a=k.createBufferSource();a.buffer=d;a.connect(k.destination);a.start(0);a.onended=function(){0<b.length?(Recite.Event.publish('Audio:playlist-item-ended'),f()):Recite.Preferences.get('player.continuePlay')?Recite.PlayerControls.next():Recite.Event.publish('Audio:ended')}}var e='',b=[],a=null,k=null,d={prepareAudio:!0,
playlist:!0,waitForAudioProcessing:!1};return{setOptions:function(a){d=Recite.Util.merge(d,a)},init:function(){Recite.Debug.log('Recite.Audio.WebAudio','Init');e=Recite.Audio.WebAudio.support();Recite.Debug.log('Recite.Audio.WebAudio','Preferred format detected as:'+e);Recite.Debug.log('Recite.Audio.WebAudio',e)},play:function(a){Recite.Debug.log('Recite.Audio.WebAudio','Webaudio play called!');var b=new XMLHttpRequest;b.open('GET',a,!0);b.responseType='arraybuffer';b.onload=function(){Recite.Debug.log('Recite.Audio.WebAudio',
'ONLOAD CALLED!');k.decodeAudioData(b.response,function(a){Recite.Debug.log('Recite.Audio.WebAudio','PLAY SOUND CALLED!');c(a)})};b.send()},stop:function(){null!=a&&(a.onended=null,a.stop(0),Recite.Event.publish('Audio:ended'))},rewind:function(){},forward:function(){},support:function(){try{var a=window.AudioContext||window.webkitAudioContext||window.mozAudioContext||window.oAudioContext||window.msAudioContext;return AudioContext?(window.AudioContext=a,k=new a,!0):!1}catch(h){return!1}},format:function(){return'mp3'},
getOptions:function(){return d},getPlaylistState:function(){return _playlistPlaying},addToPlaylist:function(a){b.push(a);return b},clearPlaylist:function(){return b=[]},playPlaylist:function(){f()},updateMeta:function(a,d){if(d&&a)for(var c=0,e=b.length;c<e;c++)b[c]&&b[c].hasOwnProperty('id')&&b[c].id==d&&(b[c].meta=a);return b}}}();Recite.namespace('Audio.HTML5');
Recite.Audio.HTML5=function(){function f(){var a=k[0];k.splice(0,1);Recite.Player.getPlayer().play(a)}function c(){Recite.Debug.log('Recite.Audio.HTML5','Moving onto next playlist item');Recite.Preferences.get('player.continuePlay')&&0>=k.length?Recite.PlayerControls.next():(Recite.Debug.log('Recite.Audio.HTML5','Playlist length: '+k.length),Recite.Event.publish('Audio:playlist-item-ended'))}function e(){var a=b.play();void 0!==a&&(a.then(function(){}),a.catch(function(a){Recite.Audio.AEBroker.stop();
Recite.WordByWord.resetSection();Recite.Gui.Notification.show('Recite would like to read this content aloud.  Please click the play button.')}))}var b=null,a='',k=[],d={prepareAudio:!0,playlist:!0,waitForAudioProcessing:!1};return{setOptions:function(a){d=Recite.Util.merge(d,a)},init:function(){Recite.Event.subscribe('Audio:playlist-item-ended',function(){0<k.length?f():Recite.Event.publish('Audio:ended')});null==b&&(Recite.Debug.log('Recite.Audio.HTML5','Init'),b=document.createElement('audio'),
a=Recite.Audio.HTML5.format(),b.addEventListener('ended',function(){c()},!1),b.addEventListener('error',function(){Recite.Debug.log('Recite.Audio.HTML5','Audio failed');c()},!1),b.addEventListener('loadedmetadata',function(){Recite.Debug.log('Recite.Audio.HTML5','loadedmetadata');e()},!1),Recite.Debug.log('Recite.Audio.HTML5','Preferred format detected as:'+a),Recite.Debug.log('Recite.Audio.Html5',a))},play:function(a){Recite.Event.publish('Audio:started');b.setAttribute('src',a);Recite.Debug.log('Recite.Audio.HTML5',
'PLAY CALLED...'+a);return b.load()},pause:function(){b.pause();Recite.Event.publish('Audio:paused')},resume:function(){b.play();Recite.Event.publish('Audio:started')},restart:function(){b.currentTime=0;b.load();b.play();Recite.Event.publish('Audio:restarted')},stop:function(){Recite.Debug.log('Recite.Audio.HTML5','STOP CALLED...');b.pause();k=[];Recite.Event.publish('Audio:ended')},rewind:function(){--b.currentTime},forward:function(){var a=b.currentTime+2;a<Math.floor(b.duration-1.5)?b.currentTime=
a:0<k.length?f():Recite.Event.publish('Audio:ended')},support:function(){var a=document.createElement('audio'),b=!!a.canPlayType;b&&(b=new Boolean(b),b.ogg=a.canPlayType('audio/ogg; codecs="vorbis"'),b.mp3=a.canPlayType('audio/mpeg;'),b.wav=a.canPlayType('audio/wav; codecs="1"'),b.m4a=a.canPlayType('audio/x-m4a;')||a.canPlayType('audio/aac;'));return b},format:function(){var a=Recite.Audio.HTML5.support();return a.ogg?'ogg':a.mp3?'mp3':a.wav?'wav':a.m4a?'m4a':!1},getOptions:function(){return d},getPlaylistState:function(){return _playlistPlaying},
addToPlaylist:function(a){k.push(a);return k},clearPlaylist:function(){Recite.Debug.log('Recite.Audio.HTML5','CLEAR PLAYLIST CALLED...');return k=[]},playPlaylist:function(){f()},getCurrentTime:function(){return Math.floor(1E3*b.currentTime)},updateMeta:function(a,b){if(b&&a)for(var d=0,c=k.length;d<c;d++)k[d]&&k[d].hasOwnProperty('id')&&k[d].id==b&&(k[d].meta=a);return k}}}();Recite.namespace('Audio.SoundManager');
Recite.Audio.SoundManager=function(){function f(){Recite.Player.getPlayer().play(e[0]);e.splice(0,1)}var c=null,e=[],b={path:Recite.baseUrl+'/common/js/soundmanager/soundmanager2-jsmin.js',soundmanager:{debugMode:!1,debug:!1,url:Recite.baseUrl+'/common/swf/'},prepareAudio:!0,playlist:!0,waitForAudioProcessing:!1};return{setOptions:function(a){b=Recite.Util.merge(b,a)},init:function(){Recite.Debug.log('Recite.Audio.SoundManager','Init soundmanager');Recite.Event.subscribe('Audio:ended',function(){Recite.Preferences.get('player.continuePlay')&&
Recite.PlayerControls.next()});Recite.Event.subscribe('Audio:playlist-item-ended',function(){0<e.length?f():Recite.Event.publish('Audio:ended')})},play:function(a){Recite.Debug.log('Recite.Audio.SoundManager','Play called');window.soundManager?((c=soundManager.getSoundById(a))||(c=soundManager.createSound({id:a,url:a})),soundManager.stopAll(),c.play({onload:function(a){a||(Recite.Debug.log('Recite.Audio.SoundManager','Cannot load audio file'),Recite.Event.publish('Audio:playlist-item-ended'))},onfinish:function(){Recite.Debug.log('Recite.Audio.SoundManager',
'Onfinish called');Recite.Event.publish('Audio:playlist-item-ended')},ondataerror:function(){Recite.Debug.log('Sound manager --- > Item failed: '+a);Recite.Event.publish('Audio:playlist-item-ended')}})):Recite.AssetLoader.js(b.path,function(){window.soundManager=new SoundManager;Recite.Util.each(b.soundmanager,function(a,b){soundManager[a]=b});soundManager.beginDelayedInit();soundManager.stopAll();soundManager.onready(function(){c=soundManager.createSound({id:a,url:a}).play({onload:function(a){a||
(Recite.Debug.log('Recite.Audio.SoundManager','Cannot load audio file'),Recite.Event.publish('Audio:playlist-item-ended'))},onfinish:function(){Recite.Debug.log('Recite.Audio.SoundManager','Onfinish called');Recite.Event.publish('Audio:playlist-item-ended')},ondataerror:function(){Recite.Debug.log('Sound manager --- > Item failed: '+a);Recite.Event.publish('Audio:playlist-item-ended')}})})});Recite.Event.publish('Audio:started')},preload:function(a){Recite.Audio.SoundManager.play(a)},pause:function(){c.pause();
Recite.Event.publish('Audio:paused')},resume:function(){c.resume();Recite.Event.publish('Audio:started')},restart:function(){c&&(Recite.Debug.log('Recite.Audio.Soundmanager','Restarting track'),c.setPosition(0))},stop:function(){c&&c.stop();Recite.Event.publish('Audio:ended')},rewind:function(){c&&(Recite.Debug.log('Recite.Audio.Soundmanager','Skiping backwards'),c.setPosition(c.position-500))},forward:function(){c?(Recite.Debug.log('Recite.Sudio.Soundmanager','Skiping forward'),c.setPosition(c.position+
500)):Recite.Debug.log('Recite.Sudio.Soundmanager','No sound object!?')},support:function(){return!0},format:function(){return'mp3'},addToPlaylist:function(a){e.push(a);return e},clearPlaylist:function(){return e=[]},playPlaylist:function(){f()},getOptions:function(){return b},getCurrentTime:function(){return c.position},updateMeta:function(a,b){if(b&&a)for(var d=0,c=e.length;d<c;d++)e[d]&&e[d].hasOwnProperty('id')&&e[d].id==b&&(e[d].meta=a);return e}}}();Recite.namespace('Audio.Download');
Recite.Audio.Download=function(){var f={prepareAudio:!1,playlist:!1,waitForAudioProcessing:!0};return{setOptions:function(c){f=Recite.Util.merge(f,c)},init:function(){},play:function(c){Recite.Audio.AEBroker.setDownload(!1);Recite.Debug.log('Recite.Audio.Download','PLAY');window.location.href=c+'&download=true'},stop:function(){},rewind:function(){},forward:function(){},support:function(){return!0},format:function(){return'mp3'},getOptions:function(){return f}}}();Recite.namespace('Audio.AEBroker');
Recite.Audio.AEBroker=function(){function f(){var a=Recite.Preferences.get('player.playbackSpeed');0>m?m=a:0<m&&m!=a&&(m=a,setTimeout(function(){if(l&&m==a){c();var b=Recite.Sizzle('recite.recite-selected');0<b.length&&Recite.PlayerDispatcher.dispatch(b[0])}},g.speedChangeWait))}function c(){null!=d&&d.stop()}function e(a){var c=a.id,f=a.url;if('blank.mp3'!=f.substr(f.length-9,9)){var k=b(c,'meta');if(k)d.updateMeta(k,c),l&&l.hasOwnProperty('id')&&l.id==c&&(l.meta=k);else{var m=b(c,'count');null==
m&&(m=0);m<=g.metaLoadAttempts&&Recite.Ajax.ajax(f+'&meta=true',{method:'get',success:function(a){200==a.status&&a.response&&(a=JSON.parse(a.response))&&(null!=c&&null!=m&&(h[c]={meta:a,count:m}),d.updateMeta(a,c),l&&l.hasOwnProperty('id')&&l.id==c&&(l.meta=a))},error:function(b){if(404==b.status||408==b.status)m++,null!=c&&null!=m&&(h[c]={meta:null,count:m}),m<g.metaLoadAttempts&&setTimeout(function(){e(a)},g.metaLoadPause)}})}}}function b(a,b){return h.hasOwnProperty(a)&&h[a].hasOwnProperty(b)?
h[a][b]:null}function a(){Recite.Audio.HTML5.support()?(Recite.Debug.log('Recite.Player','HTML5 Audio support detected, using Recite.Audio.HTML5 as backend.'),Recite.Audio.HTML5.init(),d=Recite.Audio.HTML5):Recite.Audio.SoundManager.support()&&(Recite.Debug.log('Recite.Player','HTML5 Audio not supported, using Recite.Audio.SoundManager as backend.'),Recite.Audio.SoundManager.init(),d=Recite.Audio.SoundManager)}function k(a,b){null!=d&&(a=a?d.play(a):d.play(),void 0!==a?(a.then(function(){'function'==
typeof b&&b()}),a.catch(function(a){Recite.Audio.AEBroker.stop();Recite.WordByWord.resetSection();Recite.Gui.Notification.show('Recite would like to read this content aloud.  Please click the play button.')})):'function'==typeof b&&b())}var d=null,g={metaLoadAttempts:10,metaLoadPause:500,speedChangeWait:300},h={},l=null,m=-1,p=!1;Recite.Event.subscribe('Translate:global-begin',c);Recite.Event.subscribe('Preferences:load',f);Recite.Event.subscribe('Preferences:set',f);Recite.Event.subscribe('Preferences:reset',
f);Recite.Event.subscribe('Audio:ended',function(){l=null});return{setOptions:function(a){g=Recite.Util.merge(g,a)},init:function(){if(null!=d)return this;a();return this},play:function(b){var c=null;if(b&&(b.hasOwnProperty('url')&&(c=b.url),null!=c&&'blank.mp3'==c.toLowerCase().substr(c.length-9)))return;p&&null!==c?(d.play(c),a()):((l=b)&&!l.hasOwnProperty('meta')&&e(l),k(c,'_setStartPlay'))},getMeta:function(){return l&&l.hasOwnProperty('meta')?l.meta:null},pause:function(){null!=d&&'function'==
typeof d.pause&&d.pause()},resume:function(){null!=d&&'function'==typeof d.play&&d.play()},restart:function(){null!=d&&'function'==typeof d.restart&&d.restart()},stop:function(){null!=d&&'function'==typeof d.stop&&d.stop()},rewind:function(){null!=d&&'function'==typeof d.rewind&&(d.rewind(),Recite.Event.publish('Audio:rewind'))},forward:function(){null!=d&&'function'==typeof d.forward&&(d.forward(),Recite.Event.publish('Audio:forward'))},getOptions:function(){return null!=d?Recite.Util.merge(g,d.getOptions()):
g},getPlaylistState:function(){if(null!=d)return d.getPlaylistState()},addToPlaylist:function(a){null!=d&&(d.addToPlaylist(a),!a.hasOwnProperty('meta')&&a.hasOwnProperty('id')&&a.hasOwnProperty('url')&&e(a))},clearPlaylist:function(){null!=d&&'function'==typeof d.clearPlaylist&&d.clearPlaylist()},playPlaylist:function(){null!=d&&d.playPlaylist()},format:function(){if(null!=d)return d.format()},getPlayTime:function(){return null!=d&&d.hasOwnProperty('getCurrentTime')?d.getCurrentTime():Date.now()-
0},setDownload:function(a){p=1==a;Recite.Audio.Download.init();d=Recite.Audio.Download}}}();Recite.namespace('WordByWord');
Recite.WordByWord=function(){function f(){for(var a=Recite.Sizzle('reciteword[data-highlight=1]'),d=b(),c=0;c<a.length;c++)a[c]&&(d.fg&&(a[c].style.color=d.fg),d.bg&&(a[c].style.background=d.bg))}function c(){if(null!=N)return N;var a=null;P&&(a=P.color);if(null!=a){a=a.replace('rgb(','').replace('rgba(','').replace(')','');a=a.split(',');a=e(a);var b='rgb('+(255-parseInt(a[0]))+','+(255-parseInt(a[1]))+','+(255-parseInt(a[2]))+')';a=[parseInt(a[0]),parseInt(a[1]),parseInt(a[2])];a=e(a);a='rgb('+
a[0]+','+a[1]+','+a[2]+')';return N={bg:a,fg:b}}return{bg:'black',fg:'white'}}function e(a){for(var b=0;b<a.length;b++)parseInt(a[b])<A.colorRoundingThreshold&&(a[b]=0),a[b]>255-A.colorRoundingThreshold&&(a[b]=255);return a}function b(){var a=c(),b=Recite.Preferences.get('style.wwHighlight.color'),d=Recite.Preferences.get('style.font.color'),e=Recite.Preferences.get('style.backgroundColor');return{fg:null==e||'null'==e?a.fg:e,bg:null==b||'null'==b?null==d||'null'==d?a.bg:d:b}}function a(){d();C=!0}
function k(){C=!1}function d(){A.enabled&&!C&&(q(),Recite.Audio.AEBroker.pause(),(0<Recite.Sizzle('[data-have-read]').length||0<Recite.Sizzle('reciteword[data-highlight=1]').length)&&n())}function g(){if(G&&F&&!C){var a=Recite.Audio.AEBroker.getMeta();if(Q!=a&&void 0!=a){var b=A.wordCheckRate;for(var d=1,c=a.length;d<c;d++){var e=a[d].time-a[d-1].time;e<b&&(b=e)}b<A.wordCheckRate&&(A.wordCheckRate=b,z());Q=a}if(a){b=Recite.Audio.AEBroker.getPlayTime();d=null;c=0;for(e=a.length;c<e;c++)a[c].time<=
b?d=a[c]:c=e+10;(a=d)&&a.hasOwnProperty('time')&&a.hasOwnProperty('value')&&(null==K||a.time!=K)&&(K=a.time,h(a.value))}}}function h(a){if(F&&!C){m();var b=l(a),d=void 0,c=Recite.Sizzle('reciteword[data-have-read]'),e=Recite.Sizzle('reciteword:not([data-have-read])'),g=void 0;if(!L&&e){var h=/^[0-9a-zA-Z]+$/,k=0;-1=='af eu ca da nl en fi fr gl de id id id ms no pt es sw sv'.split(' ').indexOf(Recite.Language.Translate.getWorkingPageLanguage())&&(g=e[k],d=e[k].getAttribute('data-word-value'));for(;k<
e.length&&void 0==d;){var p=e[k].getAttribute('data-word-value');p.match(h)&&(g=e[k],d=p);k++}}if(d&&d==b&&!g.hasAttribute('data-partword'))g.setAttribute('data-highlight',1),f();else if(e=null,c&&(e=c[c.length-1]),e&&(e=e.getAttribute('data-word-value')),c=d?d.length>a.length:!1,g=d?d.length<a.length:!1,b=void 0,g&&(h=l(a),k=l(d),0==h.indexOf(k)&&(b=[d],h=h.substr(k.length),b=b.concat(h.split(J)))),void 0==b&&(b=-1<['&amp;'].indexOf(a)?[a]:a.split(J)),!(!g&&2<=b.length&&e&&d&&b.includes(e)&&b.includes(d))){for(a=
b.length-1;-1<a;a--)if(e=l(b[a]).trim(),''!=e){g=Recite.Sizzle('reciteword[data-word-value'+(L||c?'*':'')+'="'+e+'"]:not([data-have-read]):not([data-currentword])');if(0<g.length)var n=g[0];void 0!=n&&(n.setAttribute('data-highlight',1),n.setAttribute('data-currentword',1),c&&(g=n.getAttribute('data-partword'),h='',g&&(h=g),g=l(h+e),h=d?l(d):'',g!=h&&g.length<h.length?n.setAttribute('data-partword',e):n.removeAttribute('data-partword')))}Recite.Util.each(Recite.Sizzle('[data-currentword]'),function(){this.removeAttribute('data-currentword')});
L=!1;f()}}}function l(a){a=a.replace(/\u00a0/g,' ');for(var b=0;b<D.length;b++)a=a.replace(D[b],'');return a}function m(){Recite.Util.each(Recite.Sizzle('reciteword[data-highlight]:not([data-partword])'),function(){var a=this,b=!1,d=Recite.Sizzle('reciteWordByWord')[0];Recite.Util.each(Recite.Sizzle('reciteword:not([data-have-read])',d),function(){if(!b&&(this.setAttribute('data-have-read',1),this.removeAttribute('data-highlight'),this.removeAttribute('style'),this==a))return b=!0,!1})})}function p(a){Recite.Util.each(Recite.Sizzle('reciteword['+
a+']'),function(){this.removeAttribute(a)})}function u(){A.enabled&&!C&&(L=!0,K=null,p('data-have-read'),p('data-currentword'),p('data-partword'),p('data-highlight'),p('style'))}function n(){F&&G&&I&&(I.remove(),I=null,G.setAttribute('style',M));G&&(G.positionalProxy=null);F=!1;G=N=P=K=null}function w(){var a=document.createElement('recitesentence');a.setAttribute('class','recite-ignore-styles-background recite-ignore-styles-color');return a}function r(a,b){void 0==b&&(b=J);var d=B(a);if(null==d)return a;
var c=document.createElement(a.tagName);c.innerHTML=a.innerHTML;for(var e=d.nextNode();e;)if(e.nodeType===Node.ELEMENT_NODE&&'RECITE-FOCUS-TEXT'===e.nodeName){for(var f=w(),g=$jscomp.makeIterator(e.childNodes),h=g.next();!h.done;h=g.next())v(h.value,f,b);g=B(c);if(null==g)return a;for(var l=g.nextNode();l;)if(h=l.parentElement){if(l.nodeType===Node.ELEMENT_NODE&&'RECITE-FOCUS-TEXT'===l.nodeName&&l.textContent===e.textContent){h.insertBefore(f,l);h.removeChild(l);break}else 3==l.nodeType&&l.textContent==
e.textContent&&'RECITEWORD'!=h.tagName&&(h.insertBefore(f,l),h.removeChild(l));l=g.nextNode()}e=d.nextSibling()}else{if(3==e.nodeType){f=w();y(e,f,b);g=B(c);if(null==g)return a;for(;g.nextNode();)l=g.currentNode,h=l.parentElement,3==l.nodeType&&l.textContent==e.textContent&&'RECITEWORD'!=h.tagName&&(h.insertBefore(f,l),h.removeChild(l))}e=d.nextNode()}return c}function v(a,b,d){if(a.nodeType===Node.TEXT_NODE)y(a,b,d);else if(a.nodeType===Node.ELEMENT_NODE&&a.ariaLabel){var c=a.ariaLabel;d=document.createElement('reciteword');
d.innerHTML=a.innerHTML;a=E(c);for(c=0;c<D.length;c++)a=a.replace(D[c],'');d.setAttribute('data-word-value',a);d.setAttribute('class','recite-ignore-styles-background recite-ignore-styles-color');b.appendChild(d)}else if(a.nodeType===Node.ELEMENT_NODE)for(b=$jscomp.makeIterator(a.childNodes),c=b.next();!c.done;c=b.next())v(c.value,a,d)}function x(a){var b=document.createElement('reciteword');b.innerText=a;a=E(a);for(var d=0;d<D.length;d++)a=a.replace(D[d],'');b.setAttribute('data-word-value',a);b.setAttribute('class',
'recite-ignore-styles-background recite-ignore-styles-color');return b}function y(a,b,d){a=(a.textContent||'').replace(/\u00a0/g,' ').split(d);for(d=0;d<a.length;d++)''!=a[d].trim()?b.appendChild(x(a[d])):b.appendChild(document.createTextNode(a[d]))}function B(a){try{return document.createTreeWalker(a)}catch(S){A.enabled=!1}return null}function E(a){1<a.length&&(a=a.replace(/^[ '".,;:'`|\/?]/,''),a=a.replace(/[ '".,;:'`|\/?]+$/,''));'&'==a&&(a='&amp;');return a}function z(){q();H=setInterval(function(){g()},
A.wordCheckRate)}function q(){H&&(clearInterval(H),H=null)}var A={enabled:!1,wordCheckRate:50,css:'',colorRoundingThreshold:75},D=[/"/g,/'/g,/\//g,/\\/g,/`/g,/-/g,/\(/g,/\)/g,/{/g,/}/g,/\[/g,/\]/g],J=/([ . !:;\u2013?,\n])/gi,H=null,F=!1,C=!1,N=null,G=null,K=null,Q;Recite.Event.subscribe('Audio:started',function(){if(A.enabled&&!C){var a=Recite.Sizzle('recite.recite-selected');0<a.length&&(a=a[0],G&&G==a||(n(),F=!1,G=a),F||A.enabled&&!C&&G&&(I=document.createElement('reciteWordByWord'),I.setAttribute('class',
'recite-word-by-word'),I.setAttribute('data-recite-skip','true'),a=G.cloneNode(!0),P=getComputedStyle(G),b(),I.innerHTML=r(a).innerHTML,I.innerHTML!==a.innerHTML&&(G.parentNode.insertBefore(I,G),M=G.getAttribute('style'),I.style=A.css,I.style.color=P.color,G.setAttribute('style',M+' '+O),F=!0,G.positionalProxy=I)),q(),K=null,g(),z())}});Recite.Event.subscribe('Audio:ended',d);Recite.Event.subscribe('Audio:rewind',u);Recite.Event.subscribe('Audio:forward',u);Recite.Event.subscribe('Translate:global-begin',
a);Recite.Event.subscribe('Translate:restore_begin',a);Recite.Event.subscribe('Translate:global-end',k);Recite.Event.subscribe('Translate:restore_complete',k);Recite.Event.subscribe('Preferences:load',f);Recite.Event.subscribe('Preferences:set',f);Recite.Event.subscribe('Preferences:reset',f);var L=!1,I=null,O=' ; display:none; color:transparent !IMPORTANT; background:transparent',M='',P=null;return{createSentenceElement:w,updateWordHighlight:function(){A.enabled&&!C&&g()},enable:function(){A.enabled=
!0},disable:function(){n();A.enabled=!1},getOptions:function(){return A},setOptions:function(a){A=Recite.Util.merge(A,a)},resetSection:function(){n()}}}();Recite.namespace('Style');
Recite.Style=function(){function f(a){var b=Recite.Sizzle('style[id=recite-style]');0===b.length?(b=a.createElement('style'),b.type='text/css',b.id='recite-style',b.setAttribute('data-recite-skip','true'),Recite.Sizzle('head',a)[0].appendChild(b)):b=b[0];return b}function c(){var b='',c=Recite.Preferences.get('style'),e=Recite.Preferences.get('textMode.enabled');null!==c.marginSize&&e&&(b+='#recite-wrapper{ padding: 0 '+c.marginSize+'; } body { padding-left: 0 !important; padding-right: 0 !important; margin-left: 0 !important; margin-right: 0 !important; } ',
c.marginSize!==k.marginSize&&(k.marginSize=c.marginSize,Recite.Event.publish('Recite:ModuleEvent',{name:'Recite.Style',event:'margin: '+c.marginSize})));null!==c.textAlign&&e&&(b+='#recite-wrapper, recitewordbyword { text-align: '+c.textAlign+'; }',c.textAlign!==k.textAlign&&(k.textAlign=c.textAlign,Recite.Event.publish('Recite:ModuleEvent',{name:'Recite.Style',event:'textAlign: '+c.textAlign})));c.font&&null!==c.font.face&&(b+='[data-recite-shadow] *, #recite-wrapper, recitewordbyword, #recite-wrapper *, #recite-dictionary * , #recite-bsl-overlay * , recite-header *{ font-family: '+
c.font.face+' !important; }',c.font.face!==k.font.face&&(k.font.face=c.font.face,Recite.Event.publish('Recite:ModuleEvent',{name:'Recite.Style',event:'font-family: '+c.font.face})));c.font&&null!==c.font.size&&(b+='.recite-ele,  recitewordbyword, #recite-bsl-overlay { font-size: '+c.font.size+'% !important; } ',c.font.size!==k.font.size&&(k.font.size=c.font.size,Recite.Event.publish('Recite:ModuleEvent',{name:'Recite.Style',event:'font-size: '+c.font.size+'%'})));if(c.font&&null!==c.font.color){var f=
'{color: '+c.font.color+'!important; text-shadow: none !important;}';for(e=0;e<a.foregroundColorSelectors.length;e++){var m=a.foregroundColorSelectors[e],p=':not(.recite-ignore-styles-color)';b+='#recite-wrapper '+m+', #recite-bsl-overlay '+m+p+' '+f;b+='[data-recite-shadow] '+m+p+' '+f}b=b+('#recite-wrapper '+f)+('#recite-dictionary * '+f)+('*::-webkit-input-placeholder '+f)+('*:-moz-placeholder '+f)+('*::-moz-placeholder '+f)+('*::-ms-input-placeholder '+f)+(' #recite-colors-advanced input:not(.recite-colorpicker) '+
f)+('textarea '+f)+('select '+f)+('button '+f);c.font.color!==k.font.color&&(k.font.color=c.font.color,Recite.Event.publish('Recite:ModuleEvent',{name:'Recite.Style',event:'font-colour: '+c.font.color}))}if(c.link&&null!==c.link.color){f='{color: '+c.link.color+' !important;}';for(e=0;e<a.linkColorSelectors.length;e++)m=a.linkColorSelectors[e],p='',b+='#recite-wrapper '+m+', #recite-bsl-overlay '+m+p+' '+f,b+='[data-recite-shadow] '+m+p+' '+f;c.link.color!==k.link.color&&(k.link.color=c.link.color,
Recite.Event.publish('Recite:ModuleEvent',{name:'Recite.Style',event:'link-colour: '+c.link.color}))}if(null!==c.backgroundColor){f='{background: '+c.backgroundColor+' !important; box-shadow: none !important;}';for(e=0;e<a.backgroundColorSelectors.length;e++)m=a.backgroundColorSelectors[e],p=':not(.recite-ignore-styles-background)',b+='#recite-wrapper '+m+p+', .recite-sidebar'+p+', .recite-sidebar '+m+p+' '+f,b+='[data-recite-shadow] '+m+p+' '+f;b=b+('body, html, #recite-wrapper, #recite-dictionary, #recite-dictionary * '+
f)+('#recite-colors-advanced input:not(.recite-colorpicker) '+f)+('textarea '+f)+('select '+f)+('button:not(#recite-header button, .arrows-buttons button) '+f);c.backgroundColor!==k.backgroundColor&&(k.backgroundColor=c.backgroundColor,Recite.Event.publish('Recite:ModuleEvent',{name:'Recite.Style',event:'background-colour: '+c.backgroundColor}))}b+='#recite-wrapper:not(.recite-ignore-styles-background) *:not(.recite-ignore-styles-background):focus, #recite-wrapper:not(.recite-ignore-styles-color) *:not(.recite-ignore-styles-background):focus {outline: none !important;box-shadow: 0 0 0 2px '+
(a.focusShadow.innerColor+', 0 0 0 4px '+a.focusShadow.outerColor+' !important; z-index: 99 !important;}');c.ruler&&null!==c.ruler.color&&c.ruler.color!==k.ruler.color&&(k.ruler.color=c.ruler.color,Recite.Event.publish('Recite:ModuleEvent',{name:'Recite.Style',event:'ruler-colour: '+c.ruler.color}));c.screenMask&&null!==c.screenMask.color&&c.screenMask.color!==k.screenMask.color&&(k.screenMask.color=c.screenMask.color,Recite.Event.publish('Recite:ModuleEvent',{name:'Recite.Style',event:'screenMask-colour: '+
c.screenMask.color}));null!==c.zoom&&void 0!==c.zoom&&(e=parseInt(c.zoom),p=e/100,b+='#recite-wrapper {  -moz-transform: scale( '+p+' , '+p+' ); /* Moz-browsers */  zoom: '+p+'; /* Other non-webkit browsers */  zoom: '+e+'%; /* Webkit browsers*/ } ',c.zoom!==k.zoom&&(k.zoom=c.zoom,Recite.Event.publish('Recite:ModuleEvent',{name:'Recite.Style',event:'zoom: '+c.zoom})));null!==c.lineHeight&&(b+='.recite-ele,  recitewordbyword, #recite-dictionary * { line-height: '+c.lineHeight+'% !important; } ',c.lineHeight!==
k.lineHeight&&(k.lineHeight=c.lineHeight,Recite.Event.publish('Recite:ModuleEvent',{name:'Recite.Style',event:'line-height: '+c.lineHeight+'%'})));null!==c.charSpacing&&(b+='.recite-ele,  recitewordbyword, #recite-dictionary * { letter-spacing: '+c.charSpacing+'px !important; } ',c.charSpacing!==k.charSpacing&&(k.charSpacing=c.charSpacing,Recite.Event.publish('Recite:ModuleEvent',{name:'Recite.Style',event:'character-spacing: '+c.charSpacing+'px'})));return b}function e(){var a=f(window.document);
if(a.styleSheet)a.styleSheet.cssText=c();else{for(var e=window.document.createTextNode(c());a.hasChildNodes();)a.removeChild(a.lastChild);a.appendChild(e)}1==Recite.getOptions('shadowDomSupport')&&(e=Recite.Sizzle("[data-recite-shadow='true']"),Recite.Util.each(e,function(b,d){b=a.cloneNode(!0);b.setAttribute('id','recite-shadow-style');if('undefined'!=typeof d.shadowRoot){var c=d.shadowRoot.querySelectorAll('#recite-shadow-style');Recite.Util.each(c,function(a,b){b.remove()});d.shadowRoot.appendChild(b)}}));
b();Recite.Event.publish('Style:updated',{origin:'Recite.Style'})}function b(){var a=document.getElementById('recite-toolbar-button-select-font'),b=Recite.Preferences.get('style');b.font&&b.font.face&&'Default'!==b.font.face||b.lineHeight||b.charSpacing?a.classList.add('active'):a.classList.remove('active');a=document.getElementById('recite-toolbar-button-colour-theme');var c=b.backgroundColor&&'null'!==b.backgroundColor,e=b.font&&b.font.color&&'null'!==b.font.color,f=b.link&&b.link.color&&'null'!==
b.link.color;b=b.wwHighlight&&b.wwHighlight.color&&'null'!==b.wwHighlight.color;var k=Recite.Preferences.get('cssFilter.enabled');c||e||f||b||k?a.classList.add('active'):a.classList.remove('active')}var a={preserve_background_images:!1,foregroundColorSelectors:['*:not(a)'],linkColorSelectors:['a'],backgroundColorSelectors:['*'],focusShadow:{outerColor:'#F7FC00',innerColor:'#06334A'}},k={marginSize:null,font:{color:null,face:null,size:null},backgroundColor:null,link:{color:null},focus:{color:null},
ruler:{color:null},screenMask:{color:null,opacity:1},zoom:null,lineHeight:null,charSpacing:null};Recite.Event.subscribe('Preferences:load',function(){e()});Recite.Event.subscribe('Preferences:set',function(){e()});Recite.Event.subscribe('Preferences:reset',function(){e()});Recite.Event.subscribe('Recite:enable',function(){var a=Recite.Sizzle('body > *',document),b=Recite.Sizzle('body',document)[0];Recite.Debug.log('Recite.Style','Wrapping body elements in a recite-wrapper.');var c=document.createElement('div');
c.id='recite-wrapper';Recite.Util.each(a,function(a,b){'true'!==b.getAttribute('data-recite-skipwrap')&&(b.parentNode.removeChild(b),c.appendChild(b))});b.appendChild(c);Recite.Event.publish('Recite:Style:wrappedElements')});return{setOptions:function(b){a=Recite.Util.merge(a,b)},getOptions:function(){return a},update:e}}();Recite.namespace('Ruler');
Recite.Ruler=function(){function f(){var a=document.getElementById('recite-toolbar-button-ruler');Recite.Preferences.get('style.ruler.enabled')?(Recite.Ruler.enable(),a&&(a.classList.add('active'),document.addEventListener('keydown',b))):(Recite.Ruler.disable(),a&&(a.classList.remove('active'),document.removeEventListener('keydown',b)));k()}function c(a){var b=Recite.Sizzle('#recite-ruler',a);if(0==b.length){var c=Recite.Sizzle('body',a)[0];b=a.createElement('div');b.id='recite-ruler';b.tabIndex=
'-1';b.style.backgroundColor=e();b.style.opacity=d.opacity;a=document.createElement('div');a.innerHTML='<div id="instructions-content" style="top: auto; bottom: 30px; height: auto"><div class="recite-sprite-mouse recite-center" style="font-size: 18px;"></div><div class="instructions-text recite-center" style="font-size: 18px;"><p style="font-size: 18px;" class="recite-center-text text">Move mouse or Use your keyboard keys</p><div style="font-size: 18px;" class="recite-center-text text">Shift + Arrow keys (up & down)</div></div></div>';
b.appendChild(a);c.appendChild(b)}else b=b[0];return b}function e(){var a=Recite.Preferences.get('style.ruler.color');if(null==a||'null'==a||''==a.trim())a=d.backgroundColor;return a}function b(b){var e=c(document);document.activeElement===e&&'Tab'===b.key&&(b.preventDefault(),b.stopPropagation(),document.getElementById('recite-toolbar-button-ruler').focus());b.shiftKey&&('ArrowDown'===b.key?a(d.keyboardIncrementOffset):'ArrowUp'===b.key&&a(-1*d.keyboardIncrementOffset))}function a(a){var b=c(document);
switch(d.mode){case 'bottom':b.style.bottom=0;var e=parseInt(window.getComputedStyle(b,null).getPropertyValue('top'));b.style.top=Math.max(0,Math.min(e+a,window.innerHeight-d.modes.bottom.yOffset))+'px';break;case 'top':e=parseInt(window.getComputedStyle(b,null).getPropertyValue('height'));a=Math.max(0,Math.min(e+a,window.innerHeight-d.modes.bottom.yOffset));b.style.top=0;b.style.height=a+'px';break;case 'bar':b.style.bottom='auto',e=parseInt(window.getComputedStyle(b,null).getPropertyValue('top')),
b.style.top=Math.max(0,Math.min(e+a,window.innerHeight-d.modes.bottom.yOffset))+'px',b.style.height=d.modes.bar.height+'px'}}function k(a){if(d.enabled&&!g){clearTimeout(d.timeout);Recite.Util.unSetIFramePointerEvents();d.timeout=setTimeout(function(){Recite.Util.reSetIFramePointerEvents()},d.intent);var b=c(document),f=a?a.clientY:0;switch(d.mode){case 'bottom':void 0!=a&&(b.style.bottom=0,b.style.top=f+d.modes.bottom.yOffset+'px');break;case 'top':void 0!=a&&(b.style.top=0,b.style.height=f+d.modes.top.yOffset+
'px');break;case 'bar':void 0!=a&&(b.style.bottom='auto',b.style.top=f+d.modes.bar.yOffset+'px'),b.style.height=d.modes.bar.height+'px'}b.style.backgroundColor=e();b.style.opacity=d.opacity}}var d={enabled:!1,mode:'bar',backgroundColor:'#000',keyboardIncrementOffset:10,opacity:1,modes:{top:{yOffset:-80},bottom:{yOffset:-80},bar:{yOffset:40,height:160}},timeout:null,intent:200},g=!1,h=null;Recite.Event.subscribe('Preferences:load',f);Recite.Event.subscribe('Preferences:set',f);Recite.Event.subscribe('Preferences:reset',
f);return{setOptions:function(a){d=Recite.Util.merge(d,a)},enable:function(){if(Recite.Browser.isMobile())Recite.Debug.log('Recite.Ruler','Preventing load as feature not supported on mobile'),Recite.Gui.Notification.show('This feature is not available on your platform.',{read:!1});else if(!g&&!d.enabled){Recite.Debug.log('Recite.Ruler','Enabled ruler');Recite.PlayerControls.disable();Recite.Player.stop();Recite.ScreenMask.disable();Recite.Magnifier.disable();Recite.Sizzle('body',document);var a=c(document);
if(null==h){var b=Recite.Sizzle('iframe');h=[];Recite.Util.each(b,function(a,b){h.push({frame:b,state:void 0==b.style.pointerEvents?'all':b.style.pointerEvents})})}Recite.Util.unSetIFramePointerEvents();Recite.DomEvent.add(document,'mousemove',k);d.enabled=!0;a.focus();Recite.Event.publish('Recite:ModuleEvent',{name:'Recite.Ruler',event:'enable'})}},disable:function(){if(d.enabled){Recite.Debug.log('Recite.Ruler','Disabled ruler');Recite.Util.reSetIFramePointerEvents();Recite.PlayerControls.enable();
Recite.Preferences.set('style.ruler.enabled',!1);Recite.Sizzle('body',document);Recite.DomEvent.remove(document,'mousemove',k);var a=c(document);a.parentNode.removeChild(a);d.enabled=!1;Recite.Event.publish('Recite:ModuleEvent',{name:'Recite.Ruler',event:'disable'});Recite.Event.publish('Recite.Dom.Observor:change')}},disableInstance:function(){g=!0},isEnabled:function(){return d.enabled}}}();Recite.namespace('ScreenMask');
Recite.ScreenMask=function(){function f(){var b=document.getElementById('recite-toolbar-button-mask');Recite.Preferences.get('style.screenMask.enabled')?(Recite.ScreenMask.enable(),b.classList.add('active'),document.addEventListener('keydown',c),a(null,!0)):(Recite.ScreenMask.disable(),b.classList.remove('active'),document.removeEventListener('keydown',c),a())}function c(a){var c=b(document).top;document.activeElement===c&&'Tab'===a.key&&(a.preventDefault(),a.stopPropagation(),document.getElementById('recite-toolbar-button-mask').focus());
a.shiftKey&&('ArrowDown'===a.key?e(d.keyboardIncrementOffset):'ArrowUp'===a.key&&e(-1*d.keyboardIncrementOffset))}function e(a){var c=b(document);if(d.enabled){var e=d.height,f=parseInt(window.getComputedStyle(c.top,null).getPropertyValue('height')),g=parseInt(window.getComputedStyle(c.bottom,null).getPropertyValue('top'));g=Math.max(0+e,Math.min(g+a,window.innerHeight));c.top.style.height=Math.max(0,Math.min(f+a,window.innerHeight-e))+'px';c.bottom.style.top=g+'px';c.top.style.backgroundColor=k();
c.bottom.style.backgroundColor=k();c.top.style.opacity=d.opacity;c.bottom.style.opacity=d.opacity}}function b(a){var b=Recite.Sizzle('#recite-screen-mask-top',a),c=Recite.Sizzle('#recite-screen-mask-bottom',a);if(0==b.length){var e=Recite.Sizzle('body',a)[0];b=a.createElement('div');b.id='recite-screen-mask-top';b.tabIndex='-1';b.style.backgroundColor=k();b.style.opacity=d.opacity;var f=document.createElement('div');f.innerHTML='<div id="instructions-content" style="top: auto; bottom: 30px; height: auto"><div class="recite-sprite-mouse recite-center" style="font-size: 18px;"></div><div class="instructions-text recite-center" style="font-size: 18px;"><p style="font-size: 18px;" class="recite-center-text text">Move mouse or Use your keyboard keys</p><div style="font-size: 18px;" class="recite-center-text text">Shift + Arrow keys (up & down)</div></div></div>';
b.appendChild(f);e.appendChild(b)}else b=b[0];0==c.length?(e=Recite.Sizzle('body',a)[0],c=a.createElement('div'),c.id='recite-screen-mask-bottom',c.style.backgroundColor=k(),c.style.opacity=d.opacity,e.appendChild(c)):c=c[0];return{top:b,bottom:c}}function a(a,c){if(!g){clearTimeout(d.timeout);Recite.Util.unSetIFramePointerEvents();d.timeout=setTimeout(function(){Recite.Util.reSetIFramePointerEvents()},d.intent);var e=b(document);if(d.enabled){var f=d.height/2,h;void 0!=a?h=a.clientY+d.yOffset:c&&
(h=window.innerHeight/2);h&&(a=h+f,f=h-f,e.top.style.height=(0<f?f:0)+'px',e.bottom.style.top=(0<a?a:0)+'px');e.top.style.backgroundColor=k();e.bottom.style.backgroundColor=k();e.top.style.opacity=d.opacity;e.bottom.style.opacity=d.opacity}}}function k(){var a=Recite.Preferences.get('style.screenMask.color');if(null==a||'null'==a||''==a.trim())a=d.backgroundColor;return a}var d={enabled:!1,height:160,keyboardIncrementOffset:10,yOffset:0,backgroundColor:'#000',opacity:1,timeout:null,intent:200},g=
!1;Recite.Event.subscribe('Preferences:load',f);Recite.Event.subscribe('Preferences:set',f);Recite.Event.subscribe('Preferences:reset',f);return{setOptions:function(a){d=Recite.Util.merge(d,a)},enable:function(){if(Recite.Browser.isMobile())Recite.Debug.log('Recite.ScreenMask','Preventing load as feature not supported on mobile'),Recite.Gui.Notification.show('This feature is not available on your platform.',{read:!1});else if(!g&&!d.enabled){Recite.Debug.log('Recite.ScreenMask','Enabled ScreenMask');
Recite.PlayerControls.disable();Recite.Player.stop();Recite.Ruler.disable();Recite.Magnifier.disable();var c=Recite.Sizzle('body',document)[0],e=b(document);Recite.Util.unSetIFramePointerEvents();Recite.DomEvent.add(c,'mousemove',a);d.enabled=!0;e.top.focus();Recite.Event.publish('Recite:ModuleEvent',{name:'Recite.ScreenMask',event:'enable'})}},disable:function(){if(d.enabled){Recite.Debug.log('Recite.ScreenMask','Disabled screen mask');Recite.Preferences.set('style.screenMask.enabled',!1);Recite.Util.reSetIFramePointerEvents();
Recite.PlayerControls.enable();var c=Recite.Sizzle('body',document)[0];Recite.DomEvent.remove(c,'mousemove',a);c=b(document);var e=c.top.parentNode;e.removeChild(c.top);e.removeChild(c.bottom);d.enabled=!1;Recite.Event.publish('Recite:ModuleEvent',{name:'Recite.ScreenMask',event:'disable'});Recite.Event.publish('Recite.Dom.Observor:change')}},isEnabled:function(){return d.enabled},disableInstance:function(){g=!0}}}();Recite.namespace('Browser');
Recite.Browser=function(){function f(){b=c(g)||'unknown browser';a=e(navigator.userAgent)||e(navigator.appVersion)||'unknown version';k=c(h)||'unknown OS'}function c(a){for(var b=0;b<a.length;b++){var c=a[b].string,e=a[b].prop;d=a[b].versionSearch||a[b].identity;if(c){if(-1!==c.indexOf(a[b].subString))return a[b].subString}else if(e)return a[b].subString}return!1}function e(a){var b=a.indexOf(d);return-1===b?!1:parseFloat(a.substring(b+d.length+1))}var b,a,k,d,g=[{string:navigator.userAgent,subString:'Chrome',
identity:'Chrome'},{string:navigator.userAgent,subString:'OmniWeb',versionSearch:'OmniWeb/',identity:'OmniWeb'},{string:navigator.vendor,subString:'Apple',identity:'Safari',versionSearch:'Version'},{prop:window.opera,subString:'Opera',identity:'Opera',versionSearch:'Version'},{string:navigator.vendor,subString:'iCab',identity:'iCab'},{string:navigator.vendor,subString:'KDE',identity:'Konqueror'},{string:navigator.userAgent,subString:'Firefox',identity:'Firefox'},{string:navigator.vendor,subString:'Camino',
identity:'Camino'},{string:navigator.userAgent,subString:'Netscape',identity:'Netscape'},{string:navigator.userAgent,subString:'MSIE',identity:'Internet Explorer',versionSearch:'MSIE'},{string:navigator.userAgent,subString:'Gecko',identity:'Mozilla',versionSearch:'rv'},{string:navigator.userAgent,subString:'Mozilla',identity:'Netscape',versionSearch:'Mozilla'}],h=[{string:navigator.userAgent,subString:'iPhone',identity:'iPhone/iPod'},{string:navigator.userAgent,subString:'iPad',identity:'iPad'},{string:navigator.userAgent,
subString:'Android',identity:'Andriod'},{string:navigator.platform,subString:'Linux',identity:'Linux'},{string:navigator.platform,subString:'Andriod',identity:'Andriod'},{string:navigator.platform,subString:'Win',identity:'Windows'},{string:navigator.platform,subString:'Mac',identity:'Mac'}];return{getName:function(){f();return b},getVersion:function(){f();return a},getOS:function(){f();return k},getData:function(){f();return{name:b,version:a,OS:k}},isMobile:function(){return'Android'===Recite.Browser.getOS()||
'iPhone'===Recite.Browser.getOS()||'iPad'===Recite.Browser.getOS()?!0:!1}}}();Recite.namespace('Selection');
Recite.Selection=function(){function f(){var c='';'undefined'!==typeof window.getSelection?c=window.getSelection().toString():'undefined'!==typeof document.selection&&'Text'===document.selection.type&&(c=document.selection.createRange().text);return c.replace(/^\s+|\s+$/g,'')}var c={playOnSelection:!1};Recite.DomEvent.add(document,'mouseup',function(e){e=f();0<e.length&&(Recite.Event.publish('Selection:textSelection',{method:'selection',text:e}),c.playOnSelection&&Recite.Player.play(e))});return{setOptions:function(e){c=
Recite.Util.merge(c,e)},getOptions:function(){return c},getTextSelection:f}}();Recite.namespace('AudioDownload');
Recite.AudioDownload=function(){function f(b){Recite.Audio.AEBroker.stop();Recite.Audio.AEBroker.clearPlaylist();Recite.Gui.Notification.show('Your download file is being created.  It will be automatically downloaded once created',{read:!1});Recite.Audio.AEBroker.setDownload(!0);Recite.PlayerDispatcher.dispatch(b);Recite.Event.publish('Recite:ModuleEvent',{name:'Recite.Audio',event:'download'})}var c={enabled:!0},e=!1;Recite.Event.subscribe('Selection:textSelection',function(b,a){'selection'===a.method&&
c.enabled&&e&&(f(a.text),e=!1)});return{setOptions:function(b){c=Recite.Util.merge(c,b)},getOptions:function(){return c},getEnabled:function(){return c.enabled},generateDownload:function(b){Recite.Debug.log('AudioDownload','Generate');c.enabled?(b=b||null)&&void 0!=b&&null!=b&&''!=b?(Recite.Debug.log('AudioDownload','Generate: '+b),f(b)):(Recite.Debug.log('AudioDownload','Listen for selection....'),Recite.Gui.Notification.show('Please select some text.',{read:!1}),e=!0):(Recite.Debug.log('AudioDownload',
'Disabled'),Recite.Gui.Notification.show('MP3 download functionality currently disabled',{read:!0}))},init:function(){}}}();Recite.namespace('TextMode');
Recite.TextMode=function(){function f(a,b){Recite.Util.each(a.styleSheets,function(a,c){b?'true'!==(c.ownerNode||c.owningElement).getAttribute('data-recite-skip')&&(c.prevState=c.disabled,c.disabled=!0):'undefined'!==typeof c.prevState?(c.disabled=c.prevState,c.prevState=null):c.disabled=!1})}function c(a){var b=document.getElementById('recite-toolbar-button-text-mode');a?b.classList.add('active'):b.classList.remove('active')}var e={disableInlineStyles:!0,disableStylesheets:!0,hideElements:['img',
'iframe','object','embed'],textAlign:!1,defaultMarginSize:'30%'},b=[];Recite.Event.subscribe('Preferences:load',function(a,b){if(a=Recite.Preferences.get('textMode.enabled'))b=Recite.Sizzle('#recite-wrapper')[0],Recite.TextMode.transform(b);c(a)});Recite.Event.subscribe('Preferences:set',function(a,b){a=Recite.Preferences.get('textMode.enabled');b=Recite.Sizzle('#recite-wrapper')[0];a?Recite.TextMode.transform(b):Recite.TextMode.restore(b);c(a)});Recite.Event.subscribe('Preferences:reset',function(){var a=
Recite.Preferences.get('textMode.enabled'),b=Recite.Sizzle('#recite-wrapper')[0];!0===a?Recite.TextMode.transform(b):Recite.TextMode.restore(b);c(a)});return{setOptions:function(a){e=Recite.Util.merge(e,a)},transform:function(a){if(!(0<=Recite.Util.inArray(a,b))){b.push(a);var c=a.ownerDocument;e.disableStylesheets&&f(c,!0);c=Recite.Sizzle('*',a);e.disableInlineStyles&&Recite.Util.each(c,function(a,b){null!==b.getAttribute('style')&&'RECITE-FOCUS-BOLD'!==b.nodeName&&'RECITE-FOCUS-NORMAL'!==b.nodeName&&
(b.setAttribute('data-recite-restore-style',b.getAttribute('style')),b.setAttribute('style',null))});e.textAlign&&Recite.Util.each(c,function(a,b){b&&b.style&&(b.style.textAlign&&b.setAttribute('data-recite-restore-text-align',b.style.textAlign),b.style.textAlign=e.textAlign)});Recite.Util.each(e.hideElements,function(b,c){b=Recite.Sizzle(c,a);Recite.Util.each(b,function(a,b){b.setAttribute('data-recite-restore-display',Recite.Dom.getStyle(b,'display'));b.style.display='none'})});Recite.Preferences.get('style.marginSize')||
Recite.Preferences.set('style.marginSize',e.defaultMarginSize);Recite.Event.publish('TextMode:enabled');Recite.Event.publish('Recite:ModuleEvent',{name:'Recite.TextMode',event:'enable'})}},restore:function(a){var c=Recite.Util.inArray(a,b);if(!(0>c)){var d=a.ownerDocument;e.disableStylesheets&&f(d,!1);d=Recite.Sizzle('*',a);e.textAlign&&Recite.Util.each(d,function(a,b){null!==b.getAttribute('data-recite-restore-text-align')&&b.style?b.style.textAlign=b.getAttribute('data-recite-restore-text-align'):
b.style.textAlign=null});e.disableInlineStyles&&Recite.Util.each(d,function(a,b){null!==b.getAttribute('data-recite-restore-style')&&(b.setAttribute('style',b.getAttribute('data-recite-restore-style')),b.setAttribute('data-recite-restore-style',null))});Recite.Util.each(e.hideElements,function(b,c){b=Recite.Sizzle(c,a);Recite.Util.each(b,function(a,b){null!==b.getAttribute('data-recite-restore-display')&&(b.style.display=b.getAttribute('data-recite-restore-display'),b.setAttribute('data-recite-restore-display',
null))})});b.splice(c,1);Recite.Event.publish('TextMode:disabled');Recite.Event.publish('Recite:ModuleEvent',{name:'Recite.TextMode',event:'disable'})}}}}();Recite.namespace('Recite.FocusText');
Recite.FocusText=function(){function f(){var b=document.getElementById('recite-toolbar-button-focus-text');Recite.FocusText.isEnabled()&&c?Recite.Preferences.get('focusText.enabled')?(Recite.FocusText.ConvertText.convert(void 0),b&&b.classList.add('active')):(Recite.FocusText.ConvertText.remove(),b&&b.classList.remove('active')):b&&b.classList.remove('active')}var c=!1,e={enabled:!0,translationTimeout:1E3};Recite.Event.subscribe('Preferences:load',function(b,a){return $jscomp.asyncExecutePromiseGeneratorProgram(function(b){'language'in
a&&a.language||(c=Recite.Preferences.get('focusText.enabled'));f();b.jumpToEnd()})});Recite.Event.subscribe('FocusText:iframe',function(b,a){b=a.data;'loaded'===a.type?('language'in b&&b.language||(c=Recite.Preferences.get('focusText.enabled')),f()):'pref-change'===a.type&&'focusText.enabled'in b&&Recite.FocusText.activate()});Recite.Event.subscribe('Preferences:set',function(b,a){'focusText.enabled'in a&&Recite.FocusText.activate()});Recite.Event.subscribe('Preferences:reset',function(b,a){f()});
Recite.Event.subscribe('Recite:ModuleEvent',function(b,a){if(a&&'Recite.Dictionary'===a.name&&'enable'===a.event){if(!Recite.Preferences.get('focusText.enabled'))return;b=document.querySelector('#recite-dictionary-inner');Recite.FocusText.ConvertText.convert(b)}a&&'Recite.ReadingAid'===a.name&&Recite.Preferences.get('focusText.enabled')&&(a=document.querySelector('#recite-reading-aid-overlay'),Recite.FocusText.ConvertText.convert(a))});return{activate:function(){c=!0;f()},deactivate:function(){c=
!1;Recite.FocusText.ConvertText.remove()},isEnabled:function(){return e.enabled},isActive:function(){return c},getOptions:function(){return e},setOptions:function(b){e=Recite.Util.merge(e,b)}}}();
Recite.FocusText.ConvertText=function(){function f(b){var a=b.nodeName;if('SCRIPT'!==a&&'STYLE'!==a&&'RECITE-FOCUS-TEXT'!==a&&'RECITE-HIDDEN'!==a)if(b.nodeType===Node.TEXT_NODE){if(null!==b.textContent){var k=b.textContent.split(e);if(k){var d=b.textContent||'';if(!(1>d.trim().length)){a=document.createElement('recite-focus-text');a.setAttribute('data-recite-focus-text',d);a.originalNode=b;for(d=0;d<k.length;d++){var g=k[d];1>g.trim().length?a.appendChild(document.createTextNode(g)):a.appendChild(c(g))}(k=
b.parentElement)&&k.replaceChild(a,b)}}}}else if(b.nodeType===Node.ELEMENT_NODE)for(b=$jscomp.makeIterator(b.childNodes),a=b.next();!a.done;a=b.next())f(a.value)}function c(b){var a=document.createElement('span');a.ariaLabel=b.trim();b=b.split(/(-|\.)/g);for(var c=0;c<b.length;c++){var d=b[c];if('-'===d||'.'===d)a.appendChild(document.createTextNode(d));else{var e=4<d.length?Math.round(d.length/2):Math.floor(d.length/2);e=Math.max(1,e);var f=d.slice(0,e),l=document.createElement('recite-focus-bold');
l.style.setProperty('font-weight','bold','important');l.textContent=f;a.appendChild(l);d=d.slice(e);e=document.createElement('recite-focus-normal');e.style.setProperty('font-weight','normal','important');e.textContent=d;a.appendChild(e)}}return a}var e=/([ . !:;\u2013?,\n])/gi;return{convert:function(b){b||(b=document.body);if(b){b=b.querySelectorAll('recite');b=$jscomp.makeIterator(b);for(var a=b.next();!a.done;a=b.next())f(a.value)}},remove:function(){var b=document.querySelectorAll('recite-focus-text');
b=$jscomp.makeIterator(b);for(var a=b.next();!a.done;a=b.next()){a=a.value;var c=a.parentElement;if(c){var d=a.originalNode;d&&c.replaceChild(d,a)}}}}}();Recite.PauseMediaExtensions=function(){return{builtin:function(){return[Recite.PauseMediaExtensions.PauseImgExtension(),Recite.PauseMediaExtensions.PauseCSSExtension(),Recite.PauseMediaExtensions.PauseHTMLMediaExtension(),Recite.PauseMediaExtensions.PauseIframeExtension()]}}}();
Recite.PauseMediaExtensions.PauseCSSExtension=function(){return{pause:function(){var f=document.body;f&&f.classList.add('recite-animation-disable')},reset:function(){var f=document.body;f&&f.classList.remove('recite-animation-disable')}}};
Recite.PauseMediaExtensions.PauseIframeExtension=function(){function f(){var c=document.querySelectorAll('iframe');c=$jscomp.makeIterator(c);for(var e=c.next();!e.done;e=c.next()){e=e.value;var b=e.getAttribute('src');if(b)try{var a=new URL(b),f=a.hostname.split('.').reverse()[1];f.includes('youtube')&&(a.searchParams.set('enablejsapi','1'),e.setAttribute('src',a.href));var d=Recite.PauseMedia.getOptions();if(d){var g=d.iframeOptions.messages;var h=f in g?g[f]:g.fallback}else h=null;if(b=h)e.setAttribute('data-pause-message',
b.pause),e.setAttribute('data-play-message',b.play)}catch(l){}}}return{init:f,onDomChange:function(c){f()},pause:function(){var c=document.querySelectorAll('iframe');c=$jscomp.makeIterator(c);for(var e=c.next();!e.done;e=c.next()){var b=e.value;e=b.getAttribute('data-pause-message');b=b.contentWindow;e&&b&&b.postMessage(e,'*')}},reset:function(){}}};
Recite.PauseMediaExtensions.PauseImgExtension=function(){function f(){var a=Recite.PauseMedia.getOptions();if(!a)return[];a=a.imgAnimationFileExtensions;if(0===a.length)return[];for(var b=document.querySelectorAll('img'),c=[],e=0;e<b.length;e++){var f=b[e].src;if(f&&0!==f.length){try{var l=new URL(f),m=a.join('|');var p=(new RegExp('\\.('+m+')$','i')).test(l.pathname)}catch(u){p=!1}p&&c.push(b[e])}}return c}function c(a){return $jscomp.asyncExecutePromiseGeneratorProgram(function(b){return b.return(new Promise(function(b,
c){a.complete?b(!0):(a.onload=function(){return b(!0)},a.onerror=function(){return c(!1)})}))})}function e(){var a=f();a=$jscomp.makeIterator(a);for(var b=a.next();!b.done;b=a.next())b.value.setAttribute('crossorigin','anonymous')}function b(a){var b,d;return $jscomp.asyncExecutePromiseGeneratorProgram(function(e){if(1==e.nextAddress)return e.yield(c(a),2);b=document.createElement('canvas');b.setAttribute('crossorigin','anonymous');b.width=a.width;b.height=a.height;b.style.display='none';d=b.getContext('2d');
if(!d)return e.return();try{d.drawImage(a,0,0,a.width,a.height),a.dataset.initialSrc=a.src,a.src=b.toDataURL('image/png'),a.setAttribute('data-recite-animation-paused','true')}catch(h){return e.return()}e.jumpToEnd()})}return{init:e,onDomChange:function(a){e()},pause:function(){var a;return $jscomp.asyncExecutePromiseGeneratorProgram(function(c){a=f();return 0===a.length?c.return():c.yield(Promise.all(a.map(b)),0)})},reset:function(){var a=document.querySelectorAll('img[data-recite-animation-paused]');
if(0!==a.length){a=$jscomp.makeIterator(a);for(var b=a.next();!b.done;b=a.next())b=b.value,void 0!==b.dataset.initialSrc&&(b.src=b.dataset.initialSrc,delete b.dataset.initialSrc)}}}};
Recite.PauseMediaExtensions.PauseHTMLMediaExtension=function(){return{pause:function(){var f=document.querySelectorAll('audio, video');f=$jscomp.makeIterator(f);for(var c=f.next();!c.done;c=f.next())c=c.value,c.paused||(c.setAttribute('data-original-state','playing'),c.pause())},reset:function(){var f=document.querySelectorAll('audio, video');f=$jscomp.makeIterator(f);for(var c=f.next();!c.done;c=f.next())c=c.value,'playing'===c.getAttribute('data-original-state')&&c.play(),c.removeAttribute('data-original-state')}}};
Recite.namespace('Recite.PauseMedia');
Recite.PauseMedia=function(){function f(b,d){c||Recite.PauseMedia.init();b=Recite.Preferences.get('pauseMedia.active');a!==b&&(a=b,b=document.getElementById('recite-toolbar-button-settings'),a?(Recite.PauseMedia.activate(),b&&b.classList.add('active')):(Recite.PauseMedia.deactivate(),b&&b.classList.remove('active')))}var c=!1,e=Recite.PauseMediaExtensions.builtin(),b={mergeExtensions:!0,enabled:!1,imgAnimationFileExtensions:['gif','apng','webp'],extensions:e,iframeOptions:{messages:{youtube:{play:'{"event":"command","func":"playVideo","args":""}',
pause:'{"event":"command","func":"pauseVideo","args":""}'},fallback:{play:'{"method": "play"}',pause:'{"method": "pause"}'}}}},a=!1;Recite.Event.subscribe('Preferences:set',f);Recite.Event.subscribe('Preferences:load',f);Recite.Event.subscribe('Preferences:reset',f);Recite.Event.subscribe('Recite.Dom.Observor:change',function(c,d){c=$jscomp.makeIterator(b.extensions);for(var e=c.next();!e.done;e=c.next())if(e=e.value,e.onDomChange)e.onDomChange(d);a&&Recite.PauseMedia.activate()});return{init:function(){if(!c){for(var a=
$jscomp.makeIterator(b.extensions),d=a.next();!d.done;d=a.next())d=d.value,d.init&&d.init();c=!0}},activate:function(){for(var a=$jscomp.makeIterator(b.extensions),c=a.next();!c.done;c=a.next())c.value.pause()},deactivate:function(){for(var a=$jscomp.makeIterator(b.extensions),c=a.next();!c.done;c=a.next())c.value.reset()},isEnabled:function(){return b.enabled},isActive:function(){return a},getOptions:function(){return b},setOptions:function(a){b=Recite.Util.merge(b,a);b.mergeExtensions&&Array.isArray(a.extensions)&&
0<a.extensions.length&&(b.extensions=e.concat(a.extensions))}}}();Recite.namespace('Recite.Pointer');
Recite.Pointer=function(){function f(){var b=c(Recite.Preferences.get('pointer.size')),a=c(Recite.Preferences.get('pointer.color')),f=document.getElementById('recite-toolbar-button-pointer-size');b||a?f.classList.add('active'):f.classList.remove('active');a&&!b&&(b=e.defaultSize);b&&!a&&(a=e.defaultColor);f=a;for(var d=document.querySelectorAll('.recite-pointer-color-select'),g=0;g<d.length;g++){var h=d[g];h.getAttribute('data-value')===f?(h.classList.add('active'),h.setAttribute('aria-checked','true')):
(h.classList.remove('active'),h.setAttribute('aria-checked','false'))}f=b;d=document.querySelectorAll('.recite-pointer-size-select');for(g=0;g<d.length;g++)h=d[g],h.getAttribute('data-value')===f?(h.classList.add('active'),h.setAttribute('aria-checked','true')):(h.classList.remove('active'),h.setAttribute('aria-checked','false'));f=document.documentElement;d=[];for(g=0;g<f.classList.length;g++)h=f.classList[g],h.startsWith('recite-pointer-')&&d.push(h);f.classList.remove.apply(f.classList,$jscomp.arrayFromIterable(d));
if(b||a)b=b||e.defaultSize,a=a||e.defaultColor,f.classList.add('recite-pointer-size-'+b),f.classList.add('recite-pointer-color-'+a)}function c(b){if('undefined'!==b)return'null'===b?null:b}var e={defaultSize:'sm',defaultColor:'white'};Recite.Event.subscribe('Preferences:set',f);Recite.Event.subscribe('Preferences:load',f);Recite.Event.subscribe('Preferences:reset',f);return{getOptions:function(){return e},setOptions:function(b){e=Recite.Util.merge(e,b)}}}();Recite.namespace('Recite.Dictionary');
Recite.Dictionary=function(){function f(){Recite.Preferences.get('dictionary.enabled')?Recite.Dictionary.enable():Recite.Dictionary.disable()}function c(){var a=document.getElementById('recite-toolbar-button-dictionary');a&&a.classList.add('active');if((a=Recite.Sizzle('#recite-dictionary',document))&&0<a.length){a=a[0];a.style.display='block';var b=Recite.Sizzle('#recite-dictionary-inner',document);a=Recite.Sizzle('#recite-dictionary-inner-reveal',document);b&&0<b.length&&a&&0<a.length&&Recite.DomEvent.add(a[0],
'click',function(){if(''===b[0].style.height){var a=Recite.Sizzle('#recite-dictionary-inner',document);if(a&&0<a.length){a=a[0];var c=Recite.Dom.getWindowDimensions(window).height-l.offsets.height;a.style.height=c+'px';a.style.overflow='auto'}Recite.Event.publish('Recite:ModuleEvent',{name:'Recite.Dictionary',event:'enable'})}else(a=Recite.Sizzle('#recite-dictionary-inner',document))&&0<a.length&&(a[0].style.height='',a[0].style.overflow='hidden'),Recite.Event.publish('Recite:ModuleEvent',{name:'Recite.Dictionary',
event:'disable'})})}}function e(){var b=Recite.Sizzle('#recite-dictionary-inner-words',document);b&&0<b.length&&(b[0].innerHTML="<div id='recite-dictionary-header'>                                <span id='title'>English Dictionary</span>                                <div class='close-div recite-button' data-recite-tabbable>                                <div class='recite-sprite-button-close-white'></div><span id='close'>Close</span>                                </div></div>                                <div id='recite-dictionary-desc'>                                <p>Here is a list of uncommon words taken from the website. Select a word to find the definition of the word</p>                                <div class='list'><ul id='words-list'> </ul>                                <div class='result'>                                <p id='def'>Definition(s):</p>                                <div id='div-content'><div class='square-content'> </div></div></div></div></div>",
a());var c=Recite.Sizzle('#recite-dictionary-header .close-div');c&&0<c.length&&Recite.DomEvent.add(c[0],'click',function(a){Recite.Event.publish('Recite.Dictionary.disabledViaClick');Recite.Dictionary.disable();Recite.Sizzle('#recite-dictionary')[0].querySelector('.recite-selected')&&(Recite.Player.stop(),Recite.PlayerControls.Tooltip.hide())});b=Recite.Parser.Html.parse(b[0]);Recite.PlayerControls.invoke(b)}function b(a){var b=Recite.Sizzle('.square-content',document);b&&0<b.length&&(b[0].innerHTML=
a?a:'',a=Recite.Parser.Html.parse(b[0]),Recite.PlayerControls.invoke(a),(a=Recite.Sizzle('.recite-dictionary-synonym'))&&0<a.length&&Recite.DomEvent.add(a,'click',function(a){d(a.target.innerHTML)}))}function a(){var a=Recite.Sizzle('#recite-wrapper');if(a&&0<a.length)var b=a[0].innerText;a=b.split(/\s+/).filter(function(a){return-1===a.search(/@/gi)}).map(function(a){return a.replace(/[^\w]/g,'').toLowerCase()});a=[].concat($jscomp.arrayFromIterable(new Set(a)));a.sort(function(a,b){return b.length-
a.length});a=a.slice(0,10);var c=document.getElementById('words-list');a.forEach(function(a,b){a=a.charAt(0).toUpperCase()+a.slice(1).toLowerCase();var d=document.createElement('li');d.textContent=a;d.setAttribute('data-recite-tabbable','');d.addEventListener('focus',k);c.appendChild(d);1===b%2&&d.classList.add('odd-item')})}function k(a,b){if(void 0!=a.target||'selection'===b.method){a=void 0!=a.target?a.target.innerText:b.text;if(!p||''===a||!1===a||a===u)return!1;d(a);u=a}return!0}function d(a){b('Getting definition...');
g(a.replace(/ /g,','),function(a){b('');var c='';Recite.Util.each(a,function(a,b){c+='<div><p><strong>'+unescape(b.word)+'</strong></p>';c=b.definition&&0!=b.definition?c+('<p>'+unescape(b.definition)+'</p>'):c+'<p>No definitions found for the given word.</p>';b.synonyms&&0!=b.synonyms.length&&(c+='<p>Synonyms</p><p>',Recite.Util.each(b.synonyms,function(a,d){c=a===b.synonyms.length-1?c+("<span class='recite-dictionary-synonym'>"+unescape(d)+'</span> </p>'):c+("<span class='recite-dictionary-synonym'>"+
unescape(d)+'</span>, ')}));c+='</div>'});b(c)})}function g(a,b){Recite.Debug.log('Recite.Dictionary','Start ajax');Recite.Event.publish('Recite:ModuleEvent',{name:'Recite.Dictionary',event:'definition: '+a});Recite.Api.call('dictionary','POST',{data:{words:escape(a)},contentType:'application/json',success:b});return!1}function h(a,b){var c=document.createElement('div');c.id='recite-dictionary';c.setAttribute('data-recite-skip','true');c.innerHTML=l.content;var d=document.getElementById('recite-languages-dropdown');
d&&d.insertAdjacentElement('beforebegin',c);c.className='recite-dictionary-'+l.position;'header'!==l.position&&(c.style.width=l.dimensions.width,c.style.height=l.dimensions.height);b.call();a.body.appendChild(c)}var l={offsets:{height:140},position:'top-left',dimensions:{width:'400px',height:'750px'},content:'<div id="recite-dictionary-inner">                        <div id="recite-dictionary-inner-words">                        </div>                  </div>                  <div id="recite-dictionary-inner-reveal">                  </div>'},
m=null,p=!1,u=null;Recite.Event.subscribe('Recite.disable',function(){Recite.Dictionary.disable()});Recite.Event.subscribe('Preferences:load',f);Recite.Event.subscribe('Preferences:set',f);Recite.Event.subscribe('Preferences:reset',f);return{setup:function(){h(document,function(){e()})},enable:function(){if(!p){var a=Recite.Language.Translate.getWorkingPageLanguage();a&&0===a.lastIndexOf('en',0)?(p=!0,c(),m=Recite.Event.subscribe('Selection:textSelection',k),Recite.PlayerControls.disable(),Recite.Player.stop(),
Recite.Debug.log('Recite.Dictionary','Dictionary enabled'),Recite.Gui.Notification.show("Recite dictionary enabled.  Select any word on the page to view it's definition"),Recite.Event.publish('Recite.Dictionary.enabled'),Recite.Event.publish('Recite:ModuleEvent',{name:'Recite.Dictionary',event:'enable'})):Recite.Gui.Notification.show('Dictionary not available for this language.')}},disable:function(){if(p){var a=document.getElementById('recite-toolbar-button-dictionary');a&&a.classList.remove('active');
(a=Recite.Sizzle('#recite-dictionary',document))&&0<a.length&&(a[0].style.display='none');Recite.Event.unsubscribe(m);Recite.Preferences.set('dictionary.enabled',!1);p=!1;Recite.PlayerControls.enable();Recite.Gui.Notification.show('Dictionary disabled');Recite.Event.publish('Recite.Dictionary.disabled');Recite.Event.publish('Recite:ModuleEvent',{name:'Recite.Dictionary',event:'disable'})}},isEnabled:function(){return p},setOptions:function(a){l=Recite.Util.merge(l,a)}}}();Recite.namespace('Docreader');
Recite.Docreader=function(){function f(a){if(-1===a.getAttribute('href').indexOf(b.endpoint)){var c=a.getAttribute('href');var d=document.createElement('span');d.innerHTML='<a href="'+c.split('&').join('&amp;').split('"').join('&quot;').split('<').join('&lt;')+'">&nbsp;</a>';c=d.firstChild.href;b.ttl&&(c+='&ttl='+b.ttl);b.maxViews&&(c+='&max_views='+b.maxViews);a.setAttribute('href',b.endpoint+encodeURI(c))}}var c=[],e=['pdf'],b={enabled:!0,selector:'docreader',urlMatches:[],endpoint:'https://docreader.reciteme.com/doc/url?q=',
ttl:null,maxViews:null};return{setOptions:function(a){b=Recite.Util.merge(b,a)},enabled:function(){return b.enabled},setEnabled:function(a){b.enabled=a},load:function(){if(b.enabled){c=document.getElementsByTagNameNS('http://www.w3.org/1999/xhtml','a');for(var a=0;a<c.length;a++){var k=c[a];if(null!==k.getAttribute('href')){for(var d=k,g=0;g<b.urlMatches.length;g++)null!==d.getAttribute('href').match(b.urlMatches[g])&&f(d);d=k;g=d.getAttribute('href').split('.').pop();for(var h=0;h<e.length;h++)g===
e[h]&&f(d);('string'==typeof k.className&&-1!==k.className.indexOf(' '+b.selector)||'string'==typeof k.className&&-1!==k.className.indexOf(b.selector+' ')||'string'==typeof k.className&&k.className===b.selector||k.getAttribute('id')===b.selector)&&f(k)}}}}}}();Recite.namespace('Keyboard');
Recite.Keyboard=function(){function f(){Recite.Debug.log('Recite.Keyboard','Binding keyboard keys');c.enabled&&Recite.Util.each(c.key_bindings,function(c,b){Recite.Key(c,b)})}var c={enabled:!0,key_bindings:{'ctrl+right':function(){Recite.PlayerControls.next();return!1},'ctrl+left':function(){Recite.PlayerControls.previous();return!1},'ctrl+alt+p':function(){Recite.PlayerControls.play();return!1},'ctrl+alt+f':function(){Recite.Sizzle('.recite-sprite-button-font')[0].click();return!1},'ctrl+alt+c':function(){Recite.Sizzle('.recite-sprite-button-themes')[0].click();
return!1},'ctrl+r':function(){Recite.Sizzle('.recite-sprite-button-ruler')[0].click();return!1},'ctrl+d':function(){Recite.Sizzle('.recite-sprite-button-dictionary')[0].click();return!1},'ctrl+l':function(){Recite.Sizzle('.recite-sprite-button-translate')[0].click();return!1},'ctrl+x':function(){Recite.Sizzle('.recite-sprite-button-textmode')[0].click();return!1},'ctrl+m':function(){Recite.Sizzle('.recite-sprite-button-margin')[0].click();return!1},'ctrl+shift+o':function(){Recite.Sizzle('.recite-sprite-button-settings')[0].click();
return!1},'ctrl+s':function(){Recite.Sizzle('.recite-sprite-button-save')[0].click();return!1}}};Recite.Event.subscribe('Recite:enable',f);return{setOptions:function(e){c=Recite.Util.merge(c,e)},enabled:function(){return c.enabled},setEnabled:function(e){c.enabled=e},load:function(){f()}}}();Recite.namespace('Tracker');
Recite.Tracker=function(){var f={enabled:!0};return{setOptions:function(c){f=Recite.Util.merge(f,c);Recite.Tracker.Api.setOptions(f.Api);Recite.Tracker.Ga.setOptions(f.Ga);Recite.Tracker.Ga4.setOptions(f.Ga4)},track:function(c,e){Recite.Debug.log('Recite.Tracker',c);Recite.Tracker.Api.track(c,e);Recite.Tracker.Ga.track(c,e);Recite.Tracker.Ga4.track(c,e)}}}();Recite.namespace('Tracker.Ga');
Recite.Tracker.Ga=function(){var f={enabled:!1,trackerName:void 0};return{setOptions:function(c){f=Recite.Util.merge(f,c)},track:function(c,e){f.enabled?(window.hasOwnProperty=window.hasOwnProperty||Object.prototype.hasOwnProperty,window.hasOwnProperty('GoogleAnalyticsObject')&&'function'==typeof window[window.GoogleAnalyticsObject]&&(Recite.Debug.log('Recite.Tracker.Ga',c),window[window.GoogleAnalyticsObject](void 0==f.trackerName?'send':f.trackerName+'.send','event','ReciteMe',c+': '+e))):Recite.Debug.log('Recite.Tracker.Ga',
'Not enabled, ignoring')}}}();Recite.namespace('Tracker.Ga4');
Recite.Tracker.Ga4=function(){var f={enabled:!1,TAG_ID:void 0};return{setOptions:function(c){f=Recite.Util.merge(f,c)},track:function(c,e){if(f.enabled){if(window.hasOwnProperty=window.hasOwnProperty||Object.prototype.hasOwnProperty,window.hasOwnProperty('gtag')&&'function'==typeof gtag){Recite.Debug.log('Recite.Tracker.Ga4',c);var b={event_category:c};void 0!=e?(-1<e.indexOf(':')?(e=e.split(':'),b.eventAction=e[0],b.eventValue=e[1]):b.eventAction=e,void 0!=f.TAG_ID&&(b.send_to=f.TAG_ID),c=(c+'_'+
b.eventAction).replace(/[-.]/g,'_')):c='ReciteMe_'+c;gtag('event',c,b)}}else Recite.Debug.log('Recite.Tracker.Ga4','Not enabled, ignoring')}}}();Recite.namespace('Tracker.Api');
Recite.Tracker.Api=function(){var f={enabled:!0};return{setOptions:function(c){f=Recite.Util.merge(f,c)},track:function(c,e){if(f.enabled){Recite.Debug.log('Recite.Tracker.Api',c);var b={};b.type=c;b.value=e;b.uri=Recite.Util.getWindowUrlForStats();b.referrer=window.document.referrer||null;Recite.Api.call('tracking','POST',{data:{events:[b],system_info:{type:'browser',recite_version:'3.7.1',screenWidth:window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,screenHeight:window.innerHeight||
document.documentElement.clientHeight||document.body.clientHeight}},success:function(a){Recite.Debug.log('Recite.Tracker.Api','Tracked event type: '+c)}})}else Recite.Debug.log('Recite.Tracker.Api','Not enabled, ignoring')}}}();Recite.namespace('Tooltip');
Recite.Tooltip=function(){function f(a){return new Promise(function(b){setTimeout(function(){b()},a)})}function c(b){var c,e;return $jscomp.asyncExecutePromiseGeneratorProgram(function(l){if(1==l.nextAddress){c=b.currentTarget;if(!c)return l.return();h=c;e=c.getAttribute('data-tooltip-label');d.innerText=e||'';d.style.display='block';return l.yield(f(0),2)}k(c);g&&g.addEventListener('scroll',a);l.jumpToEnd()})}function e(){b();h=null;g&&g.removeEventListener('scroll',a)}function b(){d.style.opacity=
'0';d.style.transform='scale(0)'}function a(){if(h&&g)return k(h,g)}function k(a,c){a=a.getBoundingClientRect();c=c&&a.x>c.offsetWidth-50;0>a.x||c?b():Object.assign(d.style,{opacity:1,transform:'scale(1)',top:'66px',left:Math.max(a.x-(d.offsetWidth-a.width)/2,0)+'px'})}var d=document.createElement('div');d.id='recite-toolbar-tooltip';d.ariaHidden='true';d.setAttribute('data-recite-skip','true');d.setAttribute('data-recite-skipwrap','true');document.body.appendChild(d);var g;Recite.Event.subscribe('Controls:loaded',
function(){g=document.querySelector('.recite-controls');var a=document.getElementById('recite-header');if(a){a=a.querySelectorAll('.recite-controls-inner .recite-button');a=$jscomp.makeIterator(a);for(var b=a.next();!b.done;b=a.next())b=b.value,b.addEventListener('mouseenter',c),b.addEventListener('focusin',c),b.addEventListener('focusout',e),b.addEventListener('mouseout',e)}});var h=null;return{}}();Recite.namespace('Stats');
Recite.Stats=function(){function f(){var a=k+document.location.origin,b=0;if(0===a.length)return b;for(var c=0;c<a.length;c++){var d=a.charCodeAt(c);b=(b<<5)-b+d;b|=0}return b}function c(){var a=(new Date).getTime(),b=performance&&performance.now&&1E3*performance.now()||0;return'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g,function(c){var d=16*Math.random();0<a?(d=(a+d)%16|0,a=Math.floor(a/16)):(d=(b+d)%16|0,b=Math.floor(b/16));return('x'===c?d:d&3|8).toString(16)})}function e(){if(!a.consent)return null;
var b=Recite.Storage.Cookie.load('Recite.User');if(b)return b;b=c();Recite.Storage.Cookie.save('Recite.User',b);return b}function b(b){Recite.Debug.log('Recite.Stats','Sending Logs',d);var c=a.statsUrl;Recite.Ajax.ajax(c,{method:'POST',data:{reciteme_toolbar_events:d},contentType:'application/json',timeout:a.trackingTimeout,beforeSend:function(a){a.setRequestHeader('Authorization','Bearer '+k);a.setRequestHeader('Key',f())},success:function(a,c){Recite.Debug.log('Recite.Stats','Data sent to Stats System.',
c);'function'==typeof b&&(Recite.Debug.log('Recite.Stats','Invoking callback'),b())},error:function(a,d){Recite.Debug.log('Recite.Stats','Error sending data to the Stats System. Using URI: '+c,d);'function'==typeof b&&(Recite.Debug.log('Recite.Stats','Invoking callback'),b())}})}var a={enabled:!0,consent:!1,statsUrl:'__STATS_URL__',trackingTime:1E3,trackingTimeout:5E3};'__STATS_URL__'==a.statsUrl&&(a.statsUrl='https://events.reciteme.com/api/v3/log');var k='__STATS_TOKEN__';'__STATS_TOKEN__'==k&&
(k='nYIEapzMivjjPO85E68rUDQ7FJJkWUYU12wplBo3UEmvKXtqgxbH2P1CSPCm4GbCIoPc4i4kVIDX2ZhB');var d=[],g=null,h=!1;window.addEventListener('beforeunload',function(){Recite.Stats.send(!0)});return{setOptions:function(b){a=Recite.Util.merge(a,b);Recite.Debug.log('Stats','options updated...'+a)},getOptions:function(){return a},setConsent:function(b){a.consent=b},enabled:function(){return a.enabled},log:function(b,c,f,g,h,k,r,v){var l=e();if(a.enabled){Recite.Debug.log('Recite.Stats','Queued Log: '+b+':::'+
c+':::'+f+':::'+g+':::'+h+':::'+k);var m=Recite.Util.getWindowUrlForStats();b={service_version:Recite.version,service_url:Recite.baseUrl,client_key:Recite.Auth.getOptions().client_id,user_id:l,category:b,context:c,name:f,action:g,value:h,language:k,uri:m,referrer:window.document.referrer||null,screen_width:window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,screen_height:window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight};d.push(b);
Recite.Stats.send(r,v)}},send:function(c,e){c=!0===c;var f=Math.floor(Date.now());null===g&&(g=f-a.trackingTime);var k=f-g;if(k<a.trackingTime&&!c)return h||(setTimeout(Recite.Stats.send,a.trackingTime-k+1),h=!0),!1;g=f;h=!1;0!=d.length&&(b(e),d=[])}}}();Recite.namespace('Recite.ReadingAid');
Recite.ReadingAid=function(){function f(){var a=J+document.location.origin,b=0;if(0===a.length)return b;for(var c=0;c<a.length;c++){var d=a.charCodeAt(c);b=(b<<5)-b+d;b|=0}return b}function c(){var a=Recite.Preferences.get('language');null!=a?Recite.Language.Translate.translate(document.querySelector('#recite-reading-aid-overlay'),a):'en'!=Recite.Language.Translate.getWorkingPageLanguage()&&Recite.Language.Translate.translate(document.querySelector('#recite-reading-aid-overlay'),Recite.Language.Translate.getWorkingPageLanguage())}
function e(){Recite.Preferences.get('readingaid.enabled')?(Recite.ReadingAid.enable(),c()):Recite.ReadingAid.disable()}function b(){var a=l();a=h(a);Recite.Debug.log('Recite.ReadingAid','Reading time '+a);r(a);y();(a=document.querySelector('.recite-close-overlay'))&&a.addEventListener('click',function(a){a.preventDefault();Recite.ReadingAid.disable();Recite.Stats.log('reading_aid','reading_aid','disable','confirm',Recite.Language.Translate.getWorkingPageLanguage())});var b=document.querySelectorAll('.change-reading-level-button');
b&&b.forEach(function(a){a.addEventListener('click',function(a){b.forEach(function(a){a.classList.remove('selected')});a.preventDefault();a=l();var c=this.getAttribute('data-level');D=B(c);this.classList.add('selected');p(a,function(a){var b='';'en'==Recite.Language.Translate.getWorkingPageLanguage()&&(b=q.uiContent.summaryIntro);n(b+a.replace(/(?:\r\n|\r|\n)/g,'<br>'))},!1,!1,q.useWebsiteUrlForAI)})});(a=document.querySelector('.button-simplify'))&&a.addEventListener('click',function(a){a.preventDefault();
a=l();p(a,function(a){var b='';'en'==Recite.Language.Translate.getWorkingPageLanguage()&&(b=q.uiContent.simplifiedSummaryIntro);n(b+a.replace(/(?:\r\n|\r|\n)/g,'<br>'))},!1,!0,q.useWebsiteUrlForAI,!0)});(a=document.querySelector('.button-copy'))&&a.addEventListener('click',function(a){a.preventDefault();g();a=document.querySelector('#mainOverlayContent');var b=document.createRange();b.selectNode(a);window.getSelection().removeAllRanges();window.getSelection().addRange(b);document.execCommand('copy');
window.getSelection().removeAllRanges()});document.querySelector('#recite-reading-aid-overlay')&&(a=Recite.Parser.Html.parse(document.querySelector('#recite-reading-aid-overlay')),Recite.PlayerControls.invoke(a))}function a(){d();n(q.loadingContent.summary);w(q.loadingContent.acronyms)}function k(){Recite.Debug.log('Recite.ReadingAid','Enabling reading aid');var d=l();d=E(d);A=z(d);D=B(A);Recite.Preferences.get('bsl.enabled')&&(Recite.BSL.disable(),Recite.Gui.Notification.show('British Sign Language disabled'));
x();c();d=document.querySelector('#recite-reading-aid-overlay');Recite.Util.trapFocus([d]);document.querySelector('#recite-reading-aid-dummy-focus').focus();H=!0;d=Recite.Preferences.get('language');null!=d&&'en'!=d?(a(),setTimeout(function(){b()},q.translationBufferTime)):(a(),b());document.getElementById('recite-toolbar-button-summary').classList.add('active')}function d(){var a=document.querySelector('.recite-selected'),b=document.querySelector('#recite-reading-aid-overlay');a&&Recite.Dom.isDescendant(a,
b)&&Recite.PlayerControls.stop()}function g(){var a=document.querySelector('button.button-copy');a.style.color='green';setTimeout(function(){a.style.color='var(--recite-on-background)'},1E3)}function h(a){a=a.split(' ');a=a.filter(function(a){return''!==a});return Math.ceil(a.length/q.readingWordsPerMinute)}function l(){Recite.Debug.log('Recite.ReadingAid','Attempting to get the page content');var a='',b=document.querySelector(q.contentTargetSelector);if(!b)return'';if(Recite.Preferences.get('focusText.enabled')){var c=
b.querySelectorAll('RECITE-FOCUS-TEXT');if(0!==c.length){b=$jscomp.makeIterator(c);for(c=b.next();!c.done;c=b.next())c=c.value,m(c,{checkParent:!0})||((c=c.getAttribute('data-recite-focus-text'))&&(c=c.trim()),c&&0<c.length&&(a+=c+'\n'));return a}}a='';b=document.createTreeWalker(b);for(c=b.currentNode;c;)c.nodeType===Node.ELEMENT_NODE&&m(c,{checkParent:!1})?c=b.nextSibling():(c.nodeType===Node.TEXT_NODE&&(a+='\n\n'+b.currentNode.textContent.replace(/^\s+|\s+$/g,''),a=a.replace(/^\s*[\r\n]/gm,'')),
c=b.nextNode());return a}function m(a,b){var c=b&&b.checkParent;b=q.contentTargetExclusionTagNames.concat(q.contentTargetExclusionSelectors);if(c)for(c=0;c<b.length;c++){if(a.closest(q.contentTargetExclusionSelectors[c]))return!0}else for(c=0;c<b.length;c++)if(a.matches(q.contentTargetExclusionSelectors[c]))return!0;return!1}function p(a,b,c,e,g,h){d();Recite.Ajax.ajax(q.readingAidApi+q.textSummaryEndPoint,{method:'POST',data:{query:g?window.location.href:a,bypass_cache:q.bypassCacheOnAPICalls||h,
language:Recite.Language.Translate.getWorkingPageLanguage(),reading_level:D},contentType:'application/json',timeout:3E4,beforeSend:function(a){Recite.Debug.log('Recite.ReadingAid','Pre-call to text-summary API');a.setRequestHeader('Authorization','Bearer '+J);a.setRequestHeader('Key',f());n(e?q.loadingContent.summarySimplified:q.loadingContent.summary);c&&n('<br />Still trying.. ',!0)},success:function(d,f){Recite.Debug.log('Recite.ReadingAid','Successful call to text-summary API');f.error?(n(q.loadingContent.summaryFailed),
!c&&q.tryApiCallsTwiceOnFail&&p(a,b,!0,e,g),Recite.Event.publish('Recite:ModuleEvent',{name:'Recite.ReadingAid',event:'content.error'})):('function'==typeof b?b(f.data[0]['text-summary']):Recite.Debug.log('Recite.ReadingAid','Nothing to do with the response data'),Recite.Event.publish('Recite:ModuleEvent',{name:'Recite.ReadingAid',event:'content.complete'}))},error:function(d,f){Recite.Debug.log('Recite.ReadingAid','Bad call to text-summary API');n(q.loadingContent.summaryFailed);!c&&q.tryApiCallsTwiceOnFail&&
p(a,b,!0,e,g);Recite.Event.publish('Recite:ModuleEvent',{name:'Recite.ReadingAid',event:'content.error'})}})}function u(a,b,c,e,g){d();Recite.Ajax.ajax(q.readingAidApi+q.acronymEndPoint,{method:'POST',data:{query:e?window.location.href:a,type:'acronyms',bypass_cache:q.bypassCacheOnAPICalls||g,language:Recite.Language.Translate.getWorkingPageLanguage()},contentType:'application/json',timeout:3E4,beforeSend:function(a){Recite.Debug.log('Recite.ReadingAid','Pre-call to acronym API');a.setRequestHeader('Authorization',
'Bearer '+J);a.setRequestHeader('Key',f());w(q.loadingContent.acronyms);c&&w('<br />Still trying... ',!0)},success:function(d,f){Recite.Debug.log('Recite.ReadingAid','Successful call to acronym API');f.error||'undefined'==typeof f.data?(w(q.loadingContent.acronymsFailed),!c&&q.tryApiCallsTwiceOnFail&&u(a,b,!0,e),Recite.Event.publish('Recite:ModuleEvent',{name:'Recite.ReadingAid',event:'acronyms.error'})):('function'==typeof b&&b(f),Recite.Event.publish('Recite:ModuleEvent',{name:'Recite.ReadingAid',
event:'acronyms.complete'}))},error:function(d,f){Recite.Debug.log('Recite.ReadingAid','Bad call to acronym API');w(q.loadingContent.acronymsFailed);!c&&q.tryApiCallsTwiceOnFail&&u(a,b,!0,e);Recite.Event.publish('Recite:ModuleEvent',{name:'Recite.ReadingAid',event:'acronyms.error'})}})}function n(a,b){var c=document.querySelector('#recite-reading-aid-overlay');c&&(c=c.querySelector('#mainOverlayContent'),b&&(a=c.innerHTML+a),c.innerHTML=a,c.setAttribute('lang',Recite.Language.Locale.getWorkingPageLocale()),
a=Recite.Parser.Html.parse(document.querySelector('#recite-reading-aid-overlay')),Recite.PlayerControls.invoke(a))}function w(a,b){var c=document.querySelector('#recite-reading-aid-overlay');if(c){c=c.querySelector('#mainAcronymContent');if('object'==typeof a)if(0==a.data.length)a=q.uiContent.noAcronymsFound;else{var d='<ul>';a.data.forEach(function(a){d+='<li>'+a.acronym+': '+a.expansion+'</li>'});a=d+='</ul>'}b&&(a=c.innerHTML+a);c.innerHTML=a;c.setAttribute('lang',Recite.Language.Locale.getWorkingPageLocale());
a=Recite.Parser.Html.parse(document.querySelector('#recite-reading-aid-overlay'));Recite.PlayerControls.invoke(a)}}function r(a){var b=document.querySelector('#recite-reading-aid-overlay');b&&(b.querySelector('.reading-time').querySelector('.time-1-inner').innerHTML=a+' min(s)')}function v(){var a=document.getElementById('recite-reading-aid-warning');if(a){var b=Recite.Preferences.get('language');!b||b.trim().toLowerCase().startsWith('en')?a.style.display='none':a.style.display=''}}function x(){if(!document.getElementById('recite-reading-aid-overlay')){var a=
Recite.Browser.isMobile();if(a){var b=document.body;C.position.value=b.style.getPropertyValue('position');C.position.priority=b.style.getPropertyPriority('position');C.top.value=b.style.getPropertyValue('top');C.top.priority=b.style.getPropertyPriority('top');var c=window.scrollY;b.style.position='fixed';b.style.setProperty('position','fixed');b.style.setProperty('top','-'+(c-60)+'px')}Recite.Debug.log('Recite.ReadingAid','Showing the overlay');b='<div class="recite-overlay-content" aria-modal="true"><div class="recite-overlay-header"><h2>'+
q.overlayTitle+'</h2></div><div class="recite-overlay-body"><div class="timeLevelWrapper"><div class="reading-overview"><div class="reading-time"><div class="time"><div class="time-1"><div class="time-1-icon recite-sprite-time recite-ignore-styles-background"></div><div class="time-1-inner"></div></div><div class="time-2">Average Reading Time</div><a id="recite-reading-aid-dummy-focus" tabindex="-1"></a></div></div>';c=0==q.readingLevelsEnabled?'':'<div class="reading-level"><div class="reading-level-icon recite-sprite-book recite-ignore-styles-background"></div><div class="reading-level-1">'+
(q.readingLevelText[A]+'</div><div class="reading-level-2"> Page Reading Level</div></div>');if(0==q.readingLevelsEnabled)var d='';else{d='<div class="change-reading-level"><div class="change-reading-level-label changeLevel"><div class="change-reading-level-icon recite-sprite-change recite-ignore-styles-background"></div><div class="change-reading-level-wording">Change Reading Level</div></div>';switch(A){case 'Basic':d+='<div class="change-reading-level-basic">This page is already set to \''+q.readingLevelText[A]+
"' reading level</div>";break;case 'Average':d=d+'<div class="change-reading-level-buttons average"><div class="change-reading-level-button-wrapper"><button class="change-reading-level-button button-basic" role="button" data-recite-tabbable data-level="Basic">'+(q.readingLevelText.Basic+'</button>');d=d+'</div><div class="change-reading-level-button-wrapper"><button class="change-reading-level-button button-average selected" role="button" data-recite-tabbable data-level="Average">'+(q.readingLevelText.Average+
'</button>');d+='</div></div>';break;case 'Advanced':d=d+'<div class="change-reading-level-buttons advanced"><div class="change-reading-level-button-wrapper"><button class="change-reading-level-button button-basic" role="button" data-recite-tabbable data-level="Basic">'+(q.readingLevelText.Basic+'</button>'),d=d+'</div><div class="change-reading-level-button-wrapper"><button class="change-reading-level-button button-average" role="button" data-recite-tabbable data-level="Average">'+(q.readingLevelText.Average+
'</button>'),d=d+'</div><div class="change-reading-level-button-wrapper"><button class="change-reading-level-button button-advanced selected" role="button" data-recite-tabbable data-level="Advanced">'+(q.readingLevelText.Advanced+'</button>'),d+='</div></div>'}d+='</div>'}b=b+c+d+'</div></div> <a href="#" data-recite-tabbable title="Close Page Summariser tool" class="recite-close-overlay recite-ignore"><svg aria-hidden="true" width="16" height="15" viewBox="0 0 16 15" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><title>Close button icon</title><path d="M15.0935 2.17523L13.6646 0.746338L7.99969 6.41125L2.33478 0.746338L0.905884 2.17523L6.5708 7.84015L0.905884 13.5051L2.33478 14.934L7.99969 9.26904L13.6646 14.934L15.0935 13.5051L9.42859 7.84015L15.0935 2.17523Z" fill="currentColor"/></svg></a><div class="recite-reading-aid-result"><div class="content-label">Summary of page:<div class="recite-overlay-button-group"><button data-recite-tabbable class="button-simplify recite-overlay-button" title="Regenerate page summary"><svg width="18" height="18" viewBox="0 0 21 21" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><path d="M10.8792 20.7179C8.08748 20.7179 5.7229 19.7491 3.7854 17.8116C1.8479 15.8741 0.87915 13.5096 0.87915 10.7179C0.87915 7.92623 1.8479 5.56165 3.7854 3.62415C5.7229 1.68665 8.08748 0.717896 10.8792 0.717896C12.3167 0.717896 13.6917 1.01456 15.0042 1.6079C16.3167 2.20123 17.4417 3.0504 18.3792 4.1554V0.717896H20.8792V9.4679H12.1292V6.9679H17.3792C16.7125 5.80123 15.8012 4.88456 14.6454 4.2179C13.4896 3.55123 12.2341 3.2179 10.8792 3.2179C8.79582 3.2179 7.02498 3.94706 5.56665 5.4054C4.10832 6.86373 3.37915 8.63456 3.37915 10.7179C3.37915 12.8012 4.10832 14.5721 5.56665 16.0304C7.02498 17.4887 8.79582 18.2179 10.8792 18.2179C12.4833 18.2179 13.9312 17.7596 15.2229 16.8429C16.5146 15.9262 17.4208 14.7179 17.9417 13.2179H20.5667C19.9833 15.4262 18.7958 17.2283 17.0042 18.6241C15.2125 20.02 13.1708 20.7179 10.8792 20.7179Z"  fill="currentColor"/></svg></button><button data-recite-tabbable class="button-copy recite-overlay-button" title="Copy content of page summary" >  <svg width="18" height="18" viewBox="0 0 21 21" fill="currentColor" xmlns="http://www.w3.org/2000/svg"> <path d="M19.6792 0.717896H6.87915C6.56089 0.717896 6.25567 0.844324 6.03062 1.06937C5.80558 1.29441 5.67915 1.59964 5.67915 1.9179V5.5179H2.07915C1.76089 5.5179 1.45567 5.64432 1.23062 5.86937C1.00558 6.09441 0.87915 6.39964 0.87915 6.7179V19.5179C0.87915 19.8362 1.00558 20.1414 1.23062 20.3664C1.45567 20.5915 1.76089 20.7179 2.07915 20.7179H14.8792C15.1974 20.7179 15.5026 20.5915 15.7277 20.3664C15.9527 20.1414 16.0792 19.8362 16.0792 19.5179V15.9179H19.6792C19.9974 15.9179 20.3026 15.7915 20.5277 15.5664C20.7527 15.3414 20.8792 15.0362 20.8792 14.7179V1.9179C20.8792 1.59964 20.7527 1.29441 20.5277 1.06937C20.3026 0.844324 19.9974 0.717896 19.6792 0.717896ZM13.6792 18.3179H3.27915V7.9179H13.6792V18.3179ZM18.4792 13.5179H16.0792V6.7179C16.0792 6.39964 15.9527 6.09441 15.7277 5.86937C15.5026 5.64432 15.1974 5.5179 14.8792 5.5179H8.07915V3.1179H18.4792V13.5179Z"  fill="currentColor"/></svg> </button></div></div><div id="mainOverlayContent" class="content"></div><div class="content-label">Acronyms on this page:</div><div id="mainAcronymContent" class="content c2 reciteAcronymSummary"></div>';
c=Recite.Preferences.get('language');c='<p id="recite-reading-aid-warning" style='+(!c||c.trim().toLowerCase().startsWith('en')?'"font-weight: 700; display: none;"':'"font-weight: 700;"')+'>'+q.warningText+'</p>';b=b+c+'</div></div></div > ';c=document.createElement('div');c.setAttribute('id','recite-reading-aid-overlay');c.setAttribute('lang','en');a&&c.classList.add('recite-mobile-reading-aid-overlay');c.innerHTML=b;document.querySelector(q.contentTargetSelector).appendChild(c)}}function y(a){if(H){var b=
Recite.Language.Translate.getNumberOfPendingCalls();a='undefined'==typeof a?0:a;5>a&&0<b?(a++,setTimeout(function(){y(a)},q.translationBufferTime)):(b=l(),p(b,function(a){var b='';'en'==Recite.Language.Translate.getWorkingPageLanguage()&&(b=q.uiContent.summaryIntro);n(b+a.replace(/(?:\r\n|\r|\n)/g,'<br>'))},!1,!1,q.useWebsiteUrlForAI),u(b,function(a){w(a)},!1,q.useWebsiteUrlForAI));v()}}function B(a){switch(a){case 'Basic':return q.readingLevelToValue.Basic;case 'Average':return q.readingLevelToValue.Average;
case 'Advanced':return q.readingLevelToValue.Advanced}}function E(a){Recite.Debug.log('Recite.ReadingAid','Calculate reading level');a=Recite.Readability(a);Recite.Debug.log('Recite.ReadingAid','?level calulated ? '+a[q.readingAgeAlgorithm]);if(a.hasOwnProperty(q.readingAgeAlgorithm)&&F.includes(q.readingAgeAlgorithm))return a[q.readingAgeAlgorithm];Recite.Debug.log('Recite.ReadingAid','Unable to find reading age algorithm '+q.readingAgeAlgorithm);return null}function z(a){a=parseInt(a);a=a<=q.readingLevelAgeMapping.Basic?
'Basic':a<=q.readingLevelAgeMapping.Average?'Average':'Advanced';return a}var q={enabled:!1,overlayTitle:'Page Summary',warningText:'Your chosen language may not be fully supported.',contentTargetSelector:'#recite-wrapper',overlayParentSelector:'body',contentTargetExclusionTagNames:[],contentTargetExclusionSelectors:"SCRIPT STYLE NAV LINK HEAD TITLE META #recite-reading-aid-overlay [data-recite-skip='true'] [data-reading-aid-skip='true'] .recite-skip .recite-ignore".split(' '),confirmedContentSelector:null,
readingWordsPerMinute:200,readingAidApi:'__READING_AID_URL__',bypassCacheOnAPICalls:!1,tryApiCallsTwiceOnFail:!0,summariseByDefault:!0,useWebsiteUrlForAI:!1,loadingContent:{summary:"<span class='reciteme-loader'><span class='spinner'></span></span>",summarySimplified:"<span class='reciteme-loader'><span class='spinner'></span></span>",acronyms:"<span class='reciteme-loader'><span class='spinner'></span></span>",summaryFailed:"Sorry, we're unable to summarise this content.",acronymsFailed:"Sorry, we're unable to find any acronyms for this content."},
uiContent:{summaryIntro:"<p><strong>Here's a summary of what we found on this page</strong></p>",simplifiedSummaryIntro:"<p><strong>Here's a summary of what we found on this page</strong></p>",acronymsIntro:'<p><strong>The acronyms we found on this page include</strong></p>',noAcronymsFound:'<p><strong>It looks like there are no acronyms on this page</strong></p>'},textSummaryEndPoint:'/text-summary',acronymEndPoint:'/acronyms',translationBufferTime:2E3,readingLevelsEnabled:!1,readingLevelText:{Basic:'Easy',
Average:'Intermediate',Advanced:'Advanced'},readingAgeAlgorithm:'fleschKincaidGrade',readingLevelAgeMapping:{Basic:6,Average:15},readingLevelToValue:{Basic:9,Average:7,Advanced:4}},A='Average',D=9;'__READING_AID_URL__'==q.readingAidApi&&(q.readingAidApi='https://linguistics.reciteme.com/api/v1');var J='__READING_AID_TOKEN__';'__READING_AID_TOKEN__'==J&&(J='VoFcFzbTK5gFfsj8nlIX6s9sPYEscsmmyqYdJDvToKUkbFyUbML4pwkF1ZdW60K7g0bGBTEDhIEOUoAz');var H=!1,F=['fleschKincaidGrade'],C={position:{value:void 0,
priority:void 0},top:{value:void 0,priority:void 0}};Recite.Event.subscribe('Preferences:load',function(){Recite.Preferences.get('focusText.enabled')?setTimeout(function(){e()},1E3):e()});Recite.Event.subscribe('Preferences:set',e);Recite.Event.subscribe('Preferences:reset',e);Recite.Event.subscribe('Translate:global-begin',function(){H&&a()});Recite.Event.subscribe('Translate:global-end',function(){y()});Recite.Event.subscribe('Translate:restore_complete',function(){H&&a();y()});Recite.Event.subscribe('PlayerControls:hide_tooltip',
function(){if(Recite.Browser.isMobile()){var a=document.getElementById('recite-reading-aid-overlay');a&&(a.style.bottom='10px')}});Recite.Event.subscribe('PlayerControls:show_tooltip',function(){if(Recite.Browser.isMobile()){var a=document.getElementById('recite-reading-aid-overlay');a&&(a.style.bottom='65px')}});return{load:function(){e()},enable:function(){H||(q.enabled?k():Recite.Debug.log('Recite.ReadingAid','Module is not enabled.  Ignoring request to enable'))},disable:function(){if(H){Recite.Debug.log('Recite.ReadingAid',
'Disabling module');if(Recite.Browser.isMobile()){var a=document.body,b=-1*parseInt(a.style.top||'0');a.style.setProperty('position',C.position.value||'',C.position.priority);a.style.setProperty('top',C.top.value||'',C.top.priority);window.scrollTo(0,b+60)}d();a=document.querySelector('#recite-reading-aid-overlay');a.parentNode.removeChild(a);Recite.Preferences.set('readingaid.enabled',!1);H=!1;document.getElementById('recite-toolbar-button-summary').classList.remove('active')}},isEnabled:function(){return q.enabled},
isLoaded:function(){return H},setOptions:function(a){q=Recite.Util.merge(q,a)}}}();Recite.namespace('Stats.Interactions');
Recite.Interactions=function(){function f(c,e,b,a,f,d,g,h){Recite.DomEvent.add(Array.from(document.querySelectorAll(c)),e,function(c,e,k){try{var l=b;'function'===typeof b&&(l=b(c,e,k));var m=f;'function'===typeof f&&(m=f(c,e,k));var p=g;'function'===typeof g&&(p=g(c,e,k));var r=a;'function'===typeof a&&(r=a(c,e,k));var v=d;'function'===typeof d&&(v=d(c,e,k));var x=h;'function'===typeof h&&(x=d(c,e,k));Recite.Stats.log(l,r,m,v,p,x)}catch(y){Recite.Debug.log('DomEvent--Issue',y)}},!0)}Recite.Event.subscribe('Controls:loaded',
function(){f('#recite-toolbar-button-previous','click','tts','toolbar','previous','confirm');f('#recite-toolbar-button-next','click','tts','toolbar','next','confirm');f('#recite-language-m','click','tts','toolbar','gender','confirm','male');f('#recite-language-f','click','tts','toolbar','gender','confirm','female');f('[data-key="player.playbackSpeed"].recite-submenu-button-plus','click','tts','toolbar','speed','increase',function(c,e){return(Recite.Preferences.get('player.playbackSpeed')+Number.parseFloat(e.getAttribute('data-value'))).toFixed(1)});
f('[data-key="player.playbackSpeed"].recite-submenu-button-minus','click','tts','toolbar','speed','decrease',function(c,e){return(Recite.Preferences.get('player.playbackSpeed')+Number.parseFloat(e.getAttribute('data-value'))).toFixed(1)});f('#recite-toolbar-button-language','click','translate','toolbar','select',function(c,e){return e.classList.contains('recite-dropdown-invoke-active')?'intent':'cancel'},null);f('.recite-language-set','click','translate','toolbar','select',function(c,e){return'default'!=
e.getAttribute('data-language').toLowerCase()?'confirm':'reset'},function(c,e){return e.getAttribute('data-language')});f('#recite-toolbar-button-select-font','click','font','toolbar','select',function(c,e){return e.classList.contains('recite-dropdown-invoke-active')?'intent':'cancel'},null);f('.recite-font','click','font','toolbar','select',function(c,e){return'default'!=e.getAttribute('data-value').toLowerCase()?'confirm':'reset'},function(c,e){return'default'!=e.getAttribute('data-value').toLowerCase()?
e.getAttribute('data-value').toLowerCase():null});f('#recite-toolbar-button-inc-font','click','font','toolbar','size','increase',function(c,e){(c=Recite.Preferences.get('style.font.size'))||(c=100);return(c+Number.parseFloat(e.getAttribute('data-value'))).toFixed(1)});f('#recite-toolbar-button-dec-font','click','font','toolbar','size','decrease',function(c,e){(c=Recite.Preferences.get('style.font.size'))||(c=100);return(c+Number.parseFloat(e.getAttribute('data-value'))).toFixed(1)});f('[data-key="style.lineHeight"].recite-submenu-button-plus',
'click','font','toolbar','line_height','increase',function(c,e){(c=Recite.Preferences.get('style.lineHeight'))||(c=100);return(c+Number.parseFloat(e.getAttribute('data-value'))).toFixed(1)});f('[data-key="style.lineHeight"].recite-submenu-button-minus','click','font','toolbar','line_height','decrease',function(c,e){(c=Recite.Preferences.get('style.lineHeight'))||(c=100);return(c+Number.parseFloat(e.getAttribute('data-value'))).toFixed(1)});f('[data-key="style.charSpacing"].recite-submenu-button-plus',
'click','font','toolbar','spacing','increase',function(c,e){return(Recite.Preferences.get('style.charSpacing')+Number.parseFloat(e.getAttribute('data-value'))).toFixed(1)});f('[data-key="style.charSpacing"].recite-submenu-button-minus','click','font','toolbar','spacing','decrease',function(c,e){return(Recite.Preferences.get('style.charSpacing')+Number.parseFloat(e.getAttribute('data-value'))).toFixed(1)});f('#recite-toolbar-button-ruler','click','ruler','toolbar',function(c,e){return Recite.Ruler.isEnabled()?
'disable':'enable'},'confirm',null);f('#recite-toolbar-button-mask','click','mask','toolbar',function(c,e){return Recite.ScreenMask.isEnabled()?'disable':'enable'},'confirm',null);f('#recite-toolbar-button-colour-theme','click','color','toolbar','select',function(c,e){return e.classList.contains('recite-dropdown-invoke-active')?'intent':'cancel'},null);f('#recite-swatches-dark .recite-swatch','click','color','toolbar','select','confirm',function(c,e,b){return'd'+(b+1)});f('#recite-swatches-light .recite-swatch',
'click','color','toolbar','select','confirm',function(c,e,b){return'l'+(b+1)});f('#recite-swatch-reset-default','click','color','toolbar','select','reset');f('#recite-toolbar-button-magnifier','click','magnifier','toolbar',function(c,e){return Recite.Magnifier.isEnabled()?'disable':'enable'},'confirm',null);f('#recite-toolbar-button-dictionary','click','dictionary','toolbar',function(c,e){return Recite.Dictionary.isEnabled()?'disable':'enable'},'confirm',null);f('#recite-toolbar-button-summary','click',
'reading_aid','toolbar',function(c,e){return Recite.ReadingAid.isLoaded()?'disable':'enable'},'confirm',function(c,e){return Recite.Language.Translate.getWorkingPageLanguage()});f('#recite-toolbar-button-bsl','click','bsl','toolbar',function(c,e){return Recite.BSL.isEnabled()?'disable':'enable'},'confirm',null);Recite.Event.subscribe('Recite.Dictionary.disabledViaClick',function(){Recite.Stats.log('dictionary','dictionary','disable','confirm')});Recite.Event.subscribe('Recite:ModuleEvent',function(c,
e){e&&'Recite.Dictionary'===e.name&&(c=e.event.replace('definition: ',''),c!==e.event&&Recite.Stats.log('dictionary','toolbar','word','search',c))});f('#recite-toolbar-button-text-mode','click','reader','toolbar',function(c,e){return'none'===document.querySelector('#recite-toolbar-button-margins').style.display?'enable':'disable'},'confirm',null);f('#recite-swatch-enable-monochrome','click','color_vision','toolbar','select','confirm','monochrome');f('#recite-swatch-disable-monochrome','click','color_vision',
'toolbar','select','reset',null);f('.recite-margin[data-key="style.marginSize"]','click','reader','toolbar','margin',function(c,e,b){return 0===b?'reset':'confirm'},function(c,e,b){return 0===b?null:b});f('#recite-toolbar-button-focus-text','click','focus_text','toolbar',function(c,e){return Recite.Preferences.get('focusText.enabled')?'disable':'enable'},'confirm',null);f('#recite-toolbar-button-settings','click','setting','toolbar',function(c,e){return e.classList.contains('recite-dropdown-invoke-active')?
'open':'close'},'confirm',null);f('#recite-player-autoplay-checkbox','click','autoplay','setting',function(c,e){return(c=document.querySelector('#recite-player-autoplay-checkbox'))&&c.classList.contains('recite-ui-checkbox-active')?'enable':'disable'},'confirm');f('#recite-player-controls-checkbox','click','tooltip','setting',function(c,e){return(c=document.querySelector('#recite-player-controls-checkbox'))&&c.classList.contains('recite-ui-checkbox-active')?'enable':'disable'},'confirm');f('#recite-continue-play-checkbox',
'click','continuous_play','setting',function(c,e){return(c=document.querySelector('#recite-continue-play-checkbox'))&&c.classList.contains('recite-ui-checkbox-active')?'enable':'disable'},'confirm');f('#recite-toolbar-button-reset','click','global','toolbar','all','reset');Recite.DomEvent.add(Array.from(document.querySelectorAll('.recite-sprite-button-play')),'click',function(c,e,b){c.target&&c.target.classList.contains('recite-sprite-button-stop')?Recite.Stats.log('tts','toolbar','stop','confirm'):
Recite.Stats.log('tts','toolbar','play','confirm')});Recite.Event.subscribe('DropDown:menuHidden',function(c,e){if(c=document.querySelector('[data-target="#'+e.id+'"]'))c=c.id,'recite-toolbar-button-settings'==c&&Recite.Stats.log('setting','page','close','confirm'),'recite-toolbar-button-language'==c&&Recite.Stats.log('translate','page','select','cancel'),'recite-toolbar-button-select-font'==c&&Recite.Stats.log('font','page','select','cancel'),'recite-toolbar-button-colour-theme'==c&&Recite.Stats.log('color',
'page','select','cancel')});f('#search-close-icon','click','translate','toolbar','select','clear');f('#languageSearch','blur','translate','toolbar','select','search',function(c,e){return e.value});f('#recite-toolbar-button-guide','click','guide','toolbar','open','confirm',null);Recite.Event.subscribe('Recite:ModuleEvent',function(c,e){e&&'Recite.Audio'===e.name&&'download'===e.event&&Recite.Stats.log('audio','toolbar','download','confirm',null)})});Recite.Event.subscribe('Tooltip:loaded',function(){f('#recite-play',
'click','tts','tooltip','play','confirm');f('#recite-stop','click','tts','tooltip','stop','confirm');f('#recite-back','click','tts','tooltip','previous','confirm');f('#recite-forward','click','tts','tooltip','next','confirm')});return{}}();Recite.namespace('Language.Translate');
Recite.Language.Translate=function(){function f(){try{var a=JSON.parse(r.availableLanguages);r.availableLanguages=a}catch(y){r.availableLanguages=null}a=Recite.Dom.getLanguage(n);null==a&&(a='en');if(null==r.sourceLanguage||r.sourceLanguage!=a)r.sourceLanguage=a;var b=Recite.Dom.getLanguageDirection(n);null==b&&(b='ltr');if(null==r.sourceDirection||r.sourceDirection!=b)r.sourceDirection=b;null==r.workingPageLanguage&&(r.workingPageLanguage=a);r.listenForPreferenceChanges?(Recite.Debug.log('Recite.Language.Translate',
'Listening for prerefrence changes'),Recite.Event.subscribe('Preferences:load',g),Recite.Event.subscribe('Preferences:set',g),Recite.Event.subscribe('Preferences:reset',g)):Recite.Debug.log('Recite.Language.Translate','NOT Listening for prerefrence changes')}function c(a){if('undefined'!=typeof a.getAttribute&&('true'===a.getAttribute('data-recite-skip')||null!=r.translateIgnore&&void 0!=a.getAttribute(r.translateIgnore)))return!1;if(r.ignoreSelectors)for(var b=0;b<r.ignoreSelectors.length;b++){var c=
r.ignoreSelectors[b];if(e(a,c))return!1;for(var d=Recite.Dom.getAncestors(a),f=0;f<d.length;f++)if(e(d[f],c))return!1}return!0}function e(a,b){if('function'==typeof a.matches)return a.matches(b);if('function'==typeof a.matchesSelector)return a.matchesSelector(b);if('function'==typeof a.mozMatchesSelector)return a.mozMatchesSelector(b);if('function'==typeof a.msMatchesSelector)return a.msMatchesSelector(b);if('function'==typeof a.oMatchesSelector)return a.oMatchesSelector(b);if('function'==typeof a.webkitMatchesSelector)return a.webkitMatchesSelector(b);
b=document.querySelectorAll(b);for(var c=0;c<b.length;c++)if(b[c]==a)return!0;return!1}function b(a,b){var d={};Recite.Util.each(a,function(a,e){a=null;for('undefined'!=typeof e&&(a=e.childNodes[0]);null!==a&&'undefined'!=typeof a;){var f=!c(a);if(!f&&3===a.nodeType&&0<a.nodeValue.trim().length){if('undefined'===typeof a.originalContent||null===a.originalContent){a.originalContent=a.nodeValue;var g=Recite.Dom.getLanguage(a);a.originalLang=null!==g?g:r.sourceLanguage;a.originalParentLang=a.parentNode.lang}if(a.originalLang===
b||a.originalLang&&a.originalLang.split('-')[0]===b){if(a.nodeValue=a.originalContent,a.parentNode.lang=a.originalParentLang||null,null==a.parentNode.lang||'null'==a.parentNode.lang)a.parentNode.lang=r.sourceLanguage}else g=a.originalLang?a.originalLang.split('-')[0]:r.sourceLanguage,'undefined'===typeof d[g]&&(d[g]=[]),d[g].push(a)}if(a.hasChildNodes()&&0>Recite.Util.inArray(a.tagName,r.disallowedTags)&&!f)a=a.firstChild;else{for(;null===a.nextSibling&&a!==e;)a=a.parentNode;a=a===e?null:a.nextSibling}}});
return d}function a(a){var b=[];if('INPUT'===a.nodeName&&a.attributes&&a.attributes.type){var c=a.attributes.type.value.toLowerCase();if('submit'==c||'reset'==c||'button'==c)b=['value']}'BUTTON'===a.nodeName&&(b=['value']);return r.translateableAttributes.concat(b)}function k(b,d){var e={};if(0===r.translateableAttributes.length)return e;Recite.Util.each(b,function(b,f){var g=null;for('undefined'!=typeof f&&(g=f.childNodes[0]);null!==g&&'undefined'!=typeof g;){g.affectedAttributes=[];var h=!1;if('undefined'!==
typeof g.attributes&&null!==g.attributes){var k=a(g);if(c(g))for(var l=0;l<k.length;l++)for(b=0;b<g.attributes.length;b++)if(g.attributes[b].nodeName===k[l]){g.affectedAttributes.push(g.attributes[b].nodeName);'undefined'===typeof g.originalContent&&(g.originalContent=[]);if('undefined'===typeof g.originalContent[k[l]]||null===g.originalContent[k[l]])g.originalContent[k[l]]=g.getAttribute(k[l]),g.originalLang=null!==Recite.Dom.getLanguage(g)?Recite.Dom.getLanguage(g):r.sourceLanguage,g.originalParentLang=
g.parentNode.lang;if(g.originalLang===d||'string'===typeof g.originalLang&&g.originalLang.split('-')[0]===d)g.setAttribute(g.attributes[b].nodeName,g.originalContent[k[l]]),g.parentNode.lang=g.originalParentLang||r.sourceLanguage,null==g.parentNode.lang&&(g.parentNode.lang=r.sourceLanguage),h=!0}h||'undefined'===typeof g.originalLang||(b=g.originalLang.split('-')[0],'undefined'===typeof e[b]&&(e[b]=[]),e[b].push(g))}if(g.hasChildNodes()&&0>Recite.Util.inArray(g.tagName,r.disallowedTags))g=g.firstChild;
else{for(;null===g.nextSibling&&g!==f;)g=g.parentNode;g=g===f?null:g.nextSibling}}});return e}function d(a){return new Promise(function(b){return setTimeout(b,a)})}function g(a,b){var c,e,g,k,m,p;return $jscomp.asyncExecutePromiseGeneratorProgram(function(a){switch(a.nextAddress){case 1:if(void 0!=b&&!b.hasOwnProperty('language')){a.jumpTo(2);break}if(!Recite.Preferences.get('focusText.enabled')){a.jumpTo(3);break}Recite.FocusText.deactivate();return a.yield(d(1E3),4);case 4:window.self!==window.top?
c=Recite.Event.subscribe('Translate:global-end',function(){return $jscomp.asyncExecutePromiseGeneratorProgram(function(a){if(1==a.nextAddress)return a.yield(d(1E3),2);Recite.FocusText.activate();Recite.Event.unsubscribe(c);a.jumpToEnd()})}):e=Recite.Event.subscribe('Translate:complete',function(){return $jscomp.asyncExecutePromiseGeneratorProgram(function(a){if(1==a.nextAddress)return a.yield(d(1E3),2);Recite.FocusText.activate();Recite.Event.unsubscribe(e);a.jumpToEnd()})});case 3:g=Recite.Preferences.get('language'),
null==r.sourceLanguage&&f(),(k=null===g?r.workingPageLanguage!=r.sourceLanguage:g!=r.workingPageLanguage)&&Recite.Event.publish('Translate:global-begin'),null!==g?(Recite.Language.Translate.translate(Recite.Sizzle('#recite-wrapper')[0],g),Recite.Language.Translate.translate(Recite.Sizzle('#recite-header')[0],g),Recite.Language.Translate.translate(Recite.Sizzle('#recite-userguide-modal-content')[0],g),Recite.Language.Translate.translate(Recite.Sizzle('#recite-bsl-overlay')[0],g),Recite.getOptions('shadowDomSupport')&&
(m=Recite.Sizzle('[data-recite-shadow]'),Recite.Util.each(m,function(a,b){'undefined'!=typeof b.shadowRoot&&Recite.Language.Translate.translate(b.shadowRoot,g)}))):(Recite.Language.Translate.restore(),Recite.Language.Translate.setWorkingPageLaguage(g)),k&&Recite.Event.publish('Translate:global-end'),null!==g&&(p=Recite.Event.subscribe('Translate:complete',function(){Recite.Language.Translate.setWorkingPageLaguage(g);l(g);Recite.Event.unsubscribe(p)}));case 2:h(),a.jumpToEnd()}})}function h(){var a=
document.getElementById('recite-toolbar-button-language');Recite.Preferences.get('language')?a.classList.add('active'):a.classList.remove('active')}function l(a){var b=Recite.Controls.Desktop.getOptions();a&&b&&b.hasOwnProperty('languages')&&b.languages.hasOwnProperty(a)&&b.languages[a].hasOwnProperty('font')?Recite.Controls.Core.disableButtons('#recite-fonts .recite-default-button'):Recite.Controls.Core.enableButtons('#recite-fonts .recite-default-button')}function m(a,b,c){a&&(3===a.nodeType?(c&&
(a.nodeValue=c),a.parentNode&&(a.parentNode.lang=b)):(c&&(a.innerHTML=t),a.lang=b))}var p=[],u=[],n=Recite.Sizzle('html')[0],w=0;Text.prototype.originalContent=null;Text.prototype.originalLang=null;Text.prototype.originalParentLang=null;var r={availableLanguages:'__TRANSLATION_LANGUAGES__',sourceLanguage:'en',sourceDirection:'ltr',workingPageLanguage:null,maxChunkSize:100,maxCharacterLimit:3E3,disallowedTags:['SCRIPT','STYLE','NOSCRIPT'],translateableAttributes:['title','alt','placeholder','data-tooltip-label',
'aria-label'],translateIgnore:'data-recite-translate-skip',ignoreSelectors:[],listenForPreferenceChanges:!0};Recite.Event.subscribe('Recite.Dom.Observor:change',function(a,b){var c=Recite.Preferences.get('language');null!=c&&void 0!=b&&b.hasOwnProperty('affectedElements')&&Recite.Util.each(b.affectedElements,function(a,b){Recite.Debug.log('Recite.Language.Translate','DOM observer detected change');Recite.Debug.log('Recite.Language.Translate',b);a=document.querySelectorAll('[data-recite-translate-skip]');
if(0<a.length)for(var d=0;d<a.length;d++)if(Recite.Dom.isDescendant(b,a[d]))return;void 0==b.getAttribute('lang')&&(a=Recite.Dom.getLanguage(b.textContent),a=null===a?r.sourceLanguage:a,b.setAttribute('lang',a));Recite.Language.Translate.translate(b,c)})});return{init:function(){f()},setOptions:function(a){null!=a.sourceLanguage&&(a.workingPageLanguage=a.sourceLanguage);r=Recite.Util.merge(r,a)},getOptions:function(){return r},translate:function(a,c){Recite.Dom.getLanguage(a)!=c||c!==r.sourceLanguage&&
0!==c.indexOf(r.sourceLanguage)||Recite.Language.Translate.restore();Recite.Event.publish('Translate:begin',{'lang:':c});a=Recite.Util.isArray(a)?a:[a];var d=[],e=[];d=b(a,c);e=k(a,c);for(var f in e){var g=[];Recite.Util.each(e[f],function(a,b){for(a=0;a<b.affectedAttributes.length;a++)g.push(b.originalContent[b.affectedAttributes[a]])});a='null'!=f?f:r.sourceLanguage;var h=Recite.Language.Locale.stripLanguageLocale(a),l=Recite.Language.Locale.stripLanguageLocale(c);if(h==l)Recite.Util.each(e[f],
function(a,b){for(a=0;a<b.affectedAttributes.length;a++)b.lang=c;u.push(b)});else{var n={target:Recite.Language.Locale.stripLanguageLocale(c),source:a,text:g};w++;Recite.Api.call('translate','POST',{data:n,contentType:'application/json',success:function(a){Recite.Event.publish('Recite:ModuleEvent',{name:'Recite.Language',event:'translate:'+c});for(var b in e)Recite.Util.each(e[b],function(b,d){for(b=0;b<d.affectedAttributes.length;b++)d.setAttribute(d.affectedAttributes[b],a[0]),d.lang=c,a.shift&&
a.shift();u.push(d)});w--}})}}for(f in d){var v=[],x=0,F=[];Recite.Util.each(d[f],function(a,b){if(null!==r.maxChunkSize&&F.length>=r.maxChunkSize||null!==r.maxCharacterLimit&&x>=r.maxCharacters)v.push(F),F=[],x=0;F.push(b.originalContent);x+=b.originalContent.length});v.push(F);Recite.Util.each(v,function(a,b){var e='null'!=f?f:r.sourceLanguage,g=Recite.Language.Locale.stripLanguageLocale(e),h=Recite.Language.Locale.stripLanguageLocale(c);g!=h?(n={target:Recite.Language.Locale.stripLanguageLocale(c),
source:e,text:b},w++,Recite.Api.call('translate','POST',{data:n,contentType:'application/json',success:function(b){Recite.Util.each(b,function(b,f){b=d[e][a*r.maxChunkSize+b];m(b,c,f);p.push(b)});Recite.Event.publish('Translate:complete');Recite.Event.publish('Recite:ModuleEvent',{name:'Recite.Language',event:'translate:'+c});w--}})):(h=Recite.Language.Locale.stripLanguageLocale(c),h==Recite.Language.Locale.stripLanguageLocale(r.sourceLanguage)&&Recite.Language.Translate.restore(null,c),Recite.Util.each(d[f],
function(a,b){m(b,c);Recite.Language.Translate.setWorkingPageLaguage(c)}),Recite.Event.publish('Translate:complete'),Recite.Event.publish('Recite:ModuleEvent',{name:'Recite.Language',event:'translate:'+c}))})}},restore:function(b,c){c?Recite.Language.Translate.setWorkingPageLaguage(c):Recite.Language.Translate.resetWorkingPageLanguage();Recite.Util.each(document.querySelectorAll('.recite-ele'),function(a,b){a=null!==b.originalLang?b.originalLang:r.sourceLanguage;b.lang='undefined'!==typeof a?a:''});
if(0<p.length){var d=function(a){if(a.originalContent&&a.nodeType===Node.TEXT_NODE)a.nodeValue=a.originalContent,a.parentNode&&(a.parentNode.lang=c?c:null!==a.originalParentLang?a.originalParentLang:r.sourceLanguage);else if(a.childNodes){a=$jscomp.makeIterator(a.childNodes);for(var b=a.next();!b.done;b=a.next())d(b.value)}};Recite.Debug.log('Language','Restoring source language');Recite.Event.publish('Translate:restore_begin');b=document.querySelectorAll('body');0<b.length&&Recite.Util.each(b,function(a,
b){d(b)});Recite.Util.each(u,function(b,d){var e=a(d);for(b=0;b<d.attributes.length;b++)for(var f=0;f<e.length;f++)e[f]===d.attributes[b].nodeName&&(d.setAttribute(d.attributes[b].nodeName,d.originalContent[d.attributes[b].nodeName]),d.lang=c?c:null!==d.originalLang?d.originalLang:r.sourceLanguage)});l(c);p=[];u=[];Recite.Event.publish('Translate:restore_complete')}},setWorkingPageLaguage:function(a){var b=Recite.Language.Locale.stripLanguageLocale(a);if(null!=b){if(null==n.originalLang||'undefined'==
typeof n.originalLang){var c=Recite.Dom.getLanguage(n);null==c&&(c=r.sourceLanguage);n.originalLang=c;n.originalLocale=Recite.Language.Locale.getLocalePreference(c)}if(null==n.originalDirection||'undefined'==typeof n.originalDirection)n.originalDirection=Recite.Dom.getLanguageDirection(n);'undefined'!=typeof n.getAttribute&&(n.setAttribute('lang',a),n.setAttribute('dir',Recite.Preferences.get('direction')));r.workingPageLanguage=b;Recite.Language.Locale.setWorkingPageLocale(a)}},getWorkingPageLanguage:function(){return Recite.Language.Locale.stripLanguageLocale(r.workingPageLanguage)},
resetWorkingPageLanguage:function(){null===n.originalLang&&(n.originalLang=r.sourceLanguage,n.originalLocale=Recite.Language.Locale.getLocalePreference(r.sourceLanguage));null!==n.originalLang&&'undefined'!==typeof n.originalLang&&n.setAttribute('lang',n.originalLang);null===n.originalDirection&&(n.originalDirection=r.sourceDirection);null!==n.originalDirection&&'undefined'!==typeof n.originalDirection&&n.setAttribute('dir',n.originalDirection);r.workingPageLanguage=r.sourceLanguage;Recite.Language.Locale.setWorkingPageLocale(Recite.Language.Locale.getLocalePreference(r.sourceLanguage))},
hasActiveWorkingPageLanguage:function(){return r.workingPageLanguage!=r.sourceLanguage?!0:!1},getAvailableLanguages:function(){return r.availableLanguages},getNumberOfPendingCalls:function(){return w}}}();Recite.namespace('Language.Locale');
Recite.Language.Locale=function(){var f={skipLanguageLocaleExceptions:['zh','mni'],localePreferences:{},direction:'ltr',workingPageLocale:null};return{getLocalePreference:function(c){if(!c)return c;if(!Recite.Preferences.get('language'))for(var e in f.localePreferences)f.localePreferences.hasOwnProperty(c)&&(c=f.localePreferences[e]);return c.toLowerCase()},getLocalTextDirection:function(){return f.direction},setLocalTextDirection:function(c){f.direction=c},stripLanguageLocale:function(c){if(!c)return c;
var e=c.split('-');return-1!=f.skipLanguageLocaleExceptions.indexOf(e[0])?c:e[0]},setOptions:function(c){f=Recite.Util.merge(f,c)},getOptions:function(){return f},getWorkingPageLocale:function(){return f.workingPageLocale},setWorkingPageLocale:function(c){f.workingPageLocale=c}}}();Recite.namespace('Gui.Notification');
Recite.Gui.Notification=function(){function f(a){var b=document.createElement('div');b.innerHTML=a;b.id=g;b.content=a;b.setAttribute('role','alert');g++;var c=!1;Recite.Util.each(d,function(a,d){d.content==b.content&&(c=!0)});c||(d.push(b),document.body.appendChild(b));return b}function c(a){try{document.body.removeChild(a),d.splice(d.indexOf(a.id),1)}catch(l){}}function e(a,d){a.style.display='block';a.setAttribute('lang','en');k.timeout&&setTimeout(function(){c(a)},k.timeout);if(k.read)try{setTimeout(function(){Recite.Player.play(a.innerHTML)},
200)}catch(m){}k.localize&&setTimeout(function(){b(a)},200);Recite.DomEvent.add(a,'click',function(b,d){c(a)})}function b(b){var c=[];null==b?c=a():c.push(b);var d=null;Recite.Language.Translate.hasActiveWorkingPageLanguage()&&(d=Recite.Language.Translate.getWorkingPageLanguage());null==d&&(d=Recite.Dom.getLanguage(Recite.Sizzle('html')[0]));null!==d&&Recite.Language.Locale.stripLanguageLocale(d)!=Recite.Language.Translate.getOptions().sourceLanguage&&Recite.Util.each(c,function(a,b){'object'==typeof b&&
Recite.Language.Translate.translate(b,d)})}function a(){var a=Recite.Sizzle('.recite-notification');return 1<a.length?a:[]}var k={position:'top-right',timeout:4E3,read:!1,elementTopMgn:5,suppress:!1,localize:!0},d=[],g=0;return{show:function(a,b){k.suppress||Recite.Browser.isMobile()||(Recite.Gui.Notification.setOptions(b),a=f(a),a.className='recite-notification recite-notification-'+k.position,b=Recite.Sizzle('.recite-notification'),1<b.length&&(b=b[b.length-2],b=parseInt(b.offsetTop+b.offsetHeight+
k.elementTopMgn,10),a.style.top=b+'px'),e(a))},destroy:function(a){c(a)},setOptions:function(a){k=Recite.Util.merge(k,a)},getOptions:function(){return k},getActive:function(){return a()},localizeActive:function(){b()}}}();Recite.namespace('Gui.Modal');
Recite.Gui.Modal=function(){function f(a,b,c){Recite.DomEvent.add(g,'click',function(b){e(c);a.call()});Recite.DomEvent.add(h,'click',function(a){e(c);b.call()})}function c(b){l||(Recite.DomEvent.add(Recite.Sizzle('#recite-wrapper')[0],'click',function(a){Recite.Gui.Modal.hide(b)}),Recite.Key('enter',function(){null==a||document.activeElement.classList.contains('recite-modal-button')||document.activeElement.click()}),Recite.Key('esc',function(){null!=a&&h.click()}),l=!0)}function e(b){if(null!=a){a.parentNode.removeChild(a);
a=null;var c=document.getElementById('recite-header');c&&c.classList.remove('recite-diminish');(c=document.getElementById('recite-wrapper'))&&c.classList.remove('recite-fade');b&&b.focus()}}function b(b){var c=[];null==b?null!=a&&c.push(a):c.push(b);if(0!=c.length){var d=null;Recite.Language.Translate.hasActiveWorkingPageLanguage()&&(d=Recite.Language.Translate.getWorkingPageLanguage());null==d&&(d=Recite.Dom.getLanguage(Recite.Sizzle('html')[0]));null!==d&&(b=Recite.Language.Locale.stripLanguageLocale(d),
b==Recite.Language.Translate.getOptions().sourceLanguage&&'en'==b||Recite.Util.each(c,function(a,b){'object'==typeof b&&Recite.Language.Translate.translate(b,d)}))}}var a=null,k=null,d=null,g=null,h=null,l=!1;Recite.Event.subscribe('Translate:restore_complete',b);Recite.Event.subscribe('Translate:complete',b);return{init:function(){c()},show:function(l,p,u,n,w,r,v){c(v);e(v);if(null==a){var m=document.createElement('div');m.id='recite-modal';m.setAttribute('role','alertdialog');m.setAttribute('aria-modal',
'true');m.setAttribute('aria-labelledby','recite-modal-header');m.setAttribute('aria-describedby','recite-modal-content');m.setAttribute('tabindex','-1');a=m;var y=document.createElement('div');y.id='recite-modal-header';m.appendChild(y);k=y;y=document.createElement('div');y.id='recite-modal-content';m.appendChild(y);d=y;y=document.createElement('div');y.id='recite-modal-buttons';m.appendChild(y);var B=document.createElement('a');B.id='recite-modal-button-ok';B.setAttribute('role','button');B.className=
'recite-modal-button';B.setAttribute('tabindex',9001);B.setAttribute('data-recite-tabbable','');B.innerHTML='OK';y.appendChild(B);g=B;B=document.createElement('a');B.id='recite-modal-button-cancel';B.className='recite-modal-button';B.setAttribute('tabindex',9002);B.setAttribute('data-recite-tabbable','');B.setAttribute('role','button');B.innerHTML='Cancel';y.appendChild(B);h=B;document.body.appendChild(m)}k.innerHTML=l;d.innerHTML=p;null!=u&&(g.innerHTML=u);null!=n&&(h.innerHTML=n);f(w,r,v);a.style.display=
'block';a.setAttribute('lang','en');Recite.Util.trapFocus([a]);a.focus();(l=document.getElementById('recite-header'))&&l.classList.add('recite-diminish');(l=document.getElementById('recite-wrapper'))&&l.classList.add('recite-fade');b(a)},hide:function(a){e(a)},localizeActive:function(){b()}}}();Recite.namespace('Gui.Sidebar');
Recite.Gui.Sidebar=function(){function f(){if(!Recite.Browser.isMobile()){var c=document.querySelector('#recite-wrapper');c&&(Recite.Sizzle('.recite-sidebar')[0]?c.classList.add('recite-sidebar-active'):c.classList.remove('recite-sidebar-active'))}}return{create:function(c){if(c=document.querySelector('#'+c))c.classList.add('recite-sidebar'),f()},toggle:function(){f()}}}();Recite.namespace('Magnifier');
Recite.Magnifier=function(){var f;function c(){Recite.Preferences.get('magnifier.enabled')&&!y?Recite.Magnifier.enable():y&&!Recite.Preferences.get('magnifier.enabled')&&Recite.Magnifier.disable()}function e(a){var b=document.getElementById('recite-toolbar-button-magnifier');a?b.classList.add('active'):b.classList.remove('active')}function b(){if(!w){if(B||!y)return!1;Recite.Debug.log('Recite.Magnifier','Rendering Magnifier ...');B=!0;if(E){v=document.createElement('div');v.className='magnifying_holder';
v.id='magnifying_holder';x=document.createElement('div');x.className='magnifying_glass';x.id='magnifying_glass';v.appendChild(x);var b=document.createElement('div');b.className='magnifying_handle';b.id='magnifying_handle';v.appendChild(b);document.body.appendChild(v)}var c=document.createElement('div');c.id='magnifying_content';if(q){var e=function(a){document.activeElement===c&&'Tab'===a.key&&(a.preventDefault(),a.stopPropagation(),document.getElementById('recite-toolbar-button-magnifier').focus(),
c.removeEventListener('keydown',e))};c.innerHTML='<div id="instructions-wrapper"><div id="instructions-content"><div class="recite-sprite-mouse recite-center"></div><div class="instructions-text recite-center"><p class="recite-center-text text">Click and drag or Use your keyboard keys</p></div><div aria-label="Shift + Arrow keys to move the magnifier." class="recite-center magnifier-key-info">Shift + Arrow keys</div>';c.tabIndex=-1;c.style.width='100%';c.style.height='100%';x.style.opacity='0.98';
x.style.background='#424848';setTimeout(function(){c.focus();c.addEventListener('keydown',e)},0)}else x.style.opacity='1',x.style.background='white',c.className='magnifying_content',c.innerHTML+=Recite.Sizzle('body')[0].innerHTML,c.style.top=F+'px',c.style.left=H+'px',c.style.width=window.innerWidth+'px',c.style.height='auto',b=window.getComputedStyle(Recite.Sizzle('body')[0],null).getPropertyValue('padding-top'),c.style.paddingTop=b,''!=Recite.Dom.getStyle(document.body,'background')&&(c.style.background=
Recite.Dom.getStyle(document.body,'background'));c.style.visibility='hidden';a('magnifying_holder',c);d(Recite.Sizzle('#recite-header',c)[0],c);k('script',c);x.appendChild(c);c.style.visibility='visible';r&&d(r,document);r=c;E&&(b=window.pageXOffset,v.style.top=window.pageYOffset+30+'px',v.style.left=b+30+'px',A=parseInt(v.style.top,10),f=parseInt(v.style.left,10),E=!1);B=!1}}function a(a,b){a=b.getElementsByClassName(a);Recite.Util.each(a,function(a,c){d(c,b)})}function k(a,b){a=b.getElementsByTagName(a);
Recite.Util.each(a,function(a,c){d(c,b)})}function d(a,b){try{a.parentNode.removeChild(a)}catch(K){Recite.Debug.log('Recite.Magnifier','Error '+K)}}function g(){document.onmousemove=function(a){var b=a.pageX-v.offsetWidth/2,c=-(Math.abs(a.pageY)*n.scale)+v.offsetHeight-20,d=-(Math.abs(a.pageX)*n.scale)+v.offsetWidth;v.style.top=a.pageY-v.offsetHeight/2+'px';v.style.left=b+'px';r.style.top=c+'px';r.style.left=d+'px'}}function h(a){if(a){a=f;var c=A}else a=parseInt(v.getAttribute('data-dragOffsetLeft'))+
(f-v.getAttribute('data-dragMouseLeft')),c=parseInt(v.getAttribute('data-dragOffsetTop'))+(A-v.getAttribute('data-dragMouseTop'));v.style.top=c+'px';v.style.left=a+'px';c=-(c*n.scale)-v.offsetHeight/2;a=-(a*n.scale)-v.offsetWidth/2;r.style.top=c+'px';r.style.left=a+'px';H=a;F=c;q&&(q=!1,b())}function l(){var a=document.getElementById('magnifying_holder');document.getElementById('magnifying_glass');var b=document.getElementById('magnifying_content');Recite.DomEvent.add(b,'mousedown',function(a){var b=
[];var c=Recite.Dom.getIndex(v),d=Recite.Dom.getPath(a.target);c=d.indexOf(c);--d[c];var e=Recite.Dom.getPath(r.querySelector('#recite-wrapper')),f=Recite.Dom.getPath(document.querySelector('#recite-wrapper'));e&&--e[c];for(var g in e)-1>=f.indexOf(e[g])&&b.push(g);for(g in b)d.splice(b[0],1);b=Recite.Dom.getNode(d);a=a.target;'INPUT'==a.nodeName&&a.focus();try{Recite.Debug.log('Recite.Magnifier','simulate mousedown');var h=u(J,{});d=a=null;for(var k in D)if(D[k].test('mousedown')){d=k;break}if(!d)throw new SyntaxError('Only HTMLEvents and MouseEvents interfaces are supported');
if(document.createEvent)a=document.createEvent(d),'HTMLEvents'==d?a.initEvent('mousedown',h.bubbles,h.cancelable):a.initMouseEvent('mousedown',h.bubbles,h.cancelable,document.defaultView,h.button,h.pointerX,h.pointerY,h.pointerX,h.pointerY,h.ctrlKey,h.altKey,h.shiftKey,h.metaKey,h.button,b),b.dispatchEvent(a);else{h.clientX=h.pointerX;h.clientY=h.pointerY;var l=document.createEventObject();a=u(l,h);b.fireEvent('onmousedown',a)}}catch(R){Recite.Debug.log('Recite.Magnifier','Error '+R)}});Recite.DomEvent.add(a,
'mousedown',function(a){a.preventDefault();this.setAttribute('data-drag',!0);this.setAttribute('data-dragMouseTop',a.pageY);this.setAttribute('data-dragMouseLeft',a.pageX);this.setAttribute('data-dragOffsetTop',parseInt(document.defaultView.getComputedStyle(this,null).getPropertyValue('top')));this.setAttribute('data-dragOffsetLeft',parseInt(document.defaultView.getComputedStyle(this,null).getPropertyValue('left')))});Recite.DomEvent.add(document,'mousemove',function(a){f=a.pageX;A=a.pageY;'true'==
v.getAttribute('data-drag')&&h()});Recite.DomEvent.add(window,'mouseup',function(a){v.setAttribute('data-drag',!1);A=parseInt(v.style.top,10);f=parseInt(v.style.left,10)})}function m(){1==n.keyboardNavEnable&&(window.onkeydown=function(a){if(a.shiftKey&&'Shift'!=a.key){switch(a.key){case 'ArrowUp':A-=10;break;case 'ArrowDown':A+=10;break;case 'ArrowLeft':f-=10;break;case 'ArrowRight':f+=10}f>C.maxiX?f=C.maxiX:f<C.minX&&(f=C.minX);A>C.maxiY?A=C.maxiY:A<C.minY&&(A=C.minY);a=document.getElementById('magnifying_holder');
a.setAttribute('data-dragOffsetTop',A);a.setAttribute('data-dragOffsetLeft',f);h(!0)}})}function p(){var a=!1;window.onkeydown=function(c){17==c.keyCode&&(v.style.borderColor='#FF9600',v.style.pointerEvents='none',r.style.pointerEvents='none',a=1==a?!1:!0);if(192==c.keyCode){c=f;var d=A,e=v;e.setAttribute('data-dragMouseTop',d);e.setAttribute('data-dragMouseLeft',c);e.setAttribute('data-dragOffsetTop',d);e.setAttribute('data-dragOffsetLeft',c);c=f-v.offsetWidth/2;d=A-v.offsetHeight/2;c=parseInt(v.getAttribute('data-dragOffsetLeft'))+
(c-v.getAttribute('data-dragMouseLeft'));d=parseInt(v.getAttribute('data-dragOffsetTop'))+(d-v.getAttribute('data-dragMouseTop'));v.style.top=d+'px';v.style.left=c+'px';d=-(d*n.scale)-v.offsetHeight/2;c=-(c*n.scale)-v.offsetWidth/2;r.style.top=d+'px';r.style.left=c+'px';H=c;F=d;q&&(q=!1,b())}};window.onkeyup=function(b){0==a&&17==b.keyCode&&(v.style.borderColor='#333333',v.style.pointerEvents='inherit',r.style.pointerEvents='inherit',a=!1)}}function u(a,b){for(var c in b)a[c]=b[c];return a}var n=
{realtimeRender:!0,followMouse:!1,scale:2,allowHighlights:!1,cacheImages:!0,keyboardNavEnable:!0},w=!1,r=!1,v=!1,x=!1,y=!1,B=!1,E=!0,z=null,q=!0;var A=f=0;var D={HTMLEvents:/^(?:load|unload|abort|error|select|change|submit|reset|focus|blur|resize|scroll)$/,MouseEvents:/^(?:click|hover|dblclick|mouse(?:down|up|over|move|out))$/},J={pointerX:0,pointerY:0,button:0,ctrlKey:!1,altKey:!1,shiftKey:!1,metaKey:!1,bubbles:!0,cancelable:!0},H=100,F=100,C={maxiX:0,maxiY:0,minX:-500,minY:-500};Recite.Event.subscribe('Preferences:load',
c);Recite.Event.subscribe('Preferences:set',c);Recite.Event.subscribe('Preferences:reset',c);return{enable:function(){if(Recite.Browser.isMobile())Recite.Debug.log('Recite.Magnifier','Preventing load as feature not supported on mobile'),Recite.Gui.Notification.show('This feature is not available on your platform.',{read:!1});else if(!y){y=!0;C.maxiX=document.body.scrollWidth+150;C.maxiY=document.body.scrollHeight+300;w||(Recite.Ruler.disable(),Recite.ScreenMask.disable(),b(),n.followMouse?g():l(),
m(),1==n.realtimeRender&&(z=Recite.Event.subscribe('Recite.Dom.Observor:change',b)),n.allowHighlights&&p(),Recite.Debug.log('Recite.Magnifier','Magnifier enabled'),Recite.Event.publish('Recite.Magnifier.enabled'),Recite.Event.publish('Recite:ModuleEvent',{name:'Recite.Magnifier',event:'enable'}),e(!0));for(var a=[window],c=0;c<a.length;c++)Recite.DomEvent.add(a[c],'resize',b)}},disable:function(){if(y){y=!1;d(v,document);E=!0;Recite.Event.unsubscribe(z);Recite.Debug.log('Recite.Magnifier','Magnifier disabled');
Recite.Gui.Notification.show('Recite magnifier disabled');Recite.Event.publish('Recite.Magnifier.disabled');Recite.Event.publish('Recite:ModuleEvent',{name:'Recite.Magnifier',event:'disable'});e(!1);Recite.Preferences.set('magnifier.enabled',!1);for(var a=[window],c=0;c<a.length;c++)Recite.DomEvent.remove(a[c],'resize',b)}},toggle:function(){Recite.Magnifier.isEnabled()?Recite.Magnifier.disable():Recite.Magnifier.enable()},isEnabled:function(){return y},setOptions:function(a){n=Recite.Util.merge(n,
a)},disableInstance:function(){w=!0}}}();Recite.namespace('FrameUpdater');
Recite.FrameUpdater=function(){function f(a){var b=!1;a.hasOwnProperty('msgType')&&Recite.Util.each(y.validMessages,function(c,d){a.msgType==d&&(b=c)});return b}function c(a,c){if(p&&1==y.enable.post)for(var d=0;d<u.length;d++)('undefined'==typeof c||'undefined'!=typeof c&&-1==c.indexOf(u[d]))&&b(u[d],a)}function e(a){p&&1==y.enable.post&&b(window.top,a)}function b(a,b){if(p&&1==y.enable.post)try{var c=JSON.stringify(b);a.postMessage(c,'*')}catch(q){}}function a(a){if(p&&1==y.enable.listen&&'undefined'!=
typeof a.data)try{var b=JSON.parse(a.data);!1!==f(b)&&k(a)}catch(z){}}function k(a){var d=JSON.parse(a.data),g=f(d);if(0!=g&&p&&1==y.enable.listen){'setChildFrame'==g&&(u.push(a.source),b(a.source,{msgType:y.validMessages.HideControls}),setTimeout(function(){Recite.Event.publish('Preferences:load',Recite.Preferences.get())},y.parentSetDelay));'HideControls'==g&&(Recite.Controls.disable(),Recite.Controls.disableInstanceOverlay());'PreferencesSet'==g&&(d.hasOwnProperty('payload')&&Recite.Preferences.set(d.payload),
d.hasOwnProperty('changes')&&Recite.Event.publish('FocusText:iframe',{type:'pref-change',data:d.changes}),d.hasOwnProperty('firstLoad')&&d.firstLoad&&Recite.Event.publish('FocusText:iframe',{type:'loaded',data:d.payload}));'PreferencesReset'==g&&d.hasOwnProperty('payload')&&Recite.Preferences.resetAll();'playerControlsShown'==g&&(n&&c({msgType:y.validMessages.playerControlsShown},[a.source]),Recite.PlayerControls.hide(),Recite.PlayerControls.stop());'disable'==g&&(n&&c({msgType:y.validMessages.disable},
[a.source]),Recite.disable(!0));if('playNext'==g&&d.hasOwnProperty('payload'))if(d.payload.hasOwnProperty('playParent'))n&&(r=null,setTimeout(function(){Recite.PlayerControls.next(x)},400));else if(d.payload.hasOwnProperty('src')){if(d.payload.src==window.self.location.href){var h={msgType:y.validMessages.setActiveChildFrame};e(h);v=!0;Recite.PlayerControls.first()}}else d.payload.hasOwnProperty('playActiveChild')&&v&&(h=Recite.PlayerControls.next(),null==h&&'undefined'!=typeof h&&(h={msgType:y.validMessages.removeActiveChildFrame},
e(h),v=!1,e({msgType:y.validMessages.playNext,payload:{playParent:!0,src:window.location.href}})));'playPrev'==g&&d.hasOwnProperty('payload')&&(d.payload.hasOwnProperty('playParent')?n&&(r=null,setTimeout(function(){Recite.PlayerControls.previous(x)},400)):d.payload.hasOwnProperty('src')?d.payload.src==window.self.location.href&&(h={msgType:y.validMessages.setActiveChildFrame},e(h),v=!0,Recite.PlayerControls.last()):d.payload.hasOwnProperty('playActiveChild')&&v&&(h=Recite.PlayerControls.previous(),
null==h&&'undefined'!=typeof h&&(h={msgType:y.validMessages.removeActiveChildFrame},e(h),v=!1,e({msgType:y.validMessages.playPrev,payload:{playParent:!0,src:window.location.href}}))));'setActiveChildFrame'==g&&(n?r=a.source:(r=null,v=!1));'removeActiveChildFrame'==g&&(n&&(h={msgType:y.validMessages.removeActiveChildFrame},c(h,[a.source])),v=!1,r=null)}}function d(){var a={msgType:y.validMessages.PreferencesSet},b={msgType:y.validMessages.PreferencesReset},d={msgType:y.validMessages.playerControlsShown},
f={msgType:y.validMessages.playNext},g={msgType:y.validMessages.playPrev};Recite.Event.subscribe('Preferences:set',function(b,d){a.payload=Recite.Preferences.get();a.changes=d;a.firstLoad=!1;c(a)});Recite.Event.subscribe('Preferences:load',function(){a.payload=Recite.Preferences.get();delete a.changes;a.firstLoad=!0;c(a)});Recite.Event.subscribe('Preferences:reset',function(){b.payload=Recite.Preferences.get();c(b)});Recite.Event.subscribe('Recite.Tooltip:show',function(){e({msgType:y.validMessages.removeActiveChildFrame});
n?(c(d),r=null):(e(d),e({msgType:y.validMessages.setActiveChildFrame}),v=!0)});Recite.Event.subscribe('FrameUpdater:EnterFrame',function(a,b){b.hasOwnProperty('element')&&(b.hasOwnProperty('direction')&&'next'==b.direction?(f.payload={src:b.element.src},x=b.element,c(f)):b.hasOwnProperty('direction')&&'prev'==b.direction?(g.payload={src:b.element.src},x=b.element,c(g)):(f.payload={src:b.element.src},x=b.element,c(f)))});n&&Recite.Event.subscribe('Recite:disable',function(a,b){c({msgType:y.validMessages.disable})})}
function g(){Recite.Debug.log('FrameUpdater','Enabling');h();p||(window.top==window.self?n=!0:w=!0,p=1==y.enable.post||1==y.enable.listen,1==y.enable.listen&&window.addEventListener('message',a),1==y.enable.post&&d());w&&b(window.top,{msgType:y.validMessages.setChildFrame});n&&(Recite.Util.each(window.frames,function(a,b){}),Recite.Util.each(Recite.Sizzle('iframe'),function(a,b){Recite.DomEvent.add(b,'mouseover',function(){x=b})}))}function h(){var a=document.querySelectorAll('iframe');window.top==
window.self&&l();Recite.Util.each(a,function(a,b){l();b.addEventListener('load',function(){m(b)})})}function l(){if(''!=y.iframeIgnoreSelector&&'undefined'!=typeof y.iframeIgnoreSelector){var a=document.querySelectorAll(y.iframeIgnoreSelector);Recite.Util.each(a,function(a,b){b.classList.add(y.iframeIgnoreClass)})}}function m(a){if(a.classList.contains(y.iframeIgnoreClass))a=a.contentWindow.document.querySelectorAll('iframe'),1<=a.length&&Recite.Util.each(a,function(a,b){m(b)});else{var b=Recite.Util.merge(options,
{Controls:{enabled:!1},FrameUpdater:y,ReadingAid:{enabled:!1},Gui:{Notification:{suppress:!0}}});try{if('undefined'!=typeof a.contentWindow.serviceUrl&&'undefined'!=typeof a.contentWindow.serviceKey){Recite.Debug.log('Recite.FrameUpdater','We have Recite in this frame - skipping');return}}catch(q){a.contentWindow.postMessage({version:Recite.version,key:Recite.Auth.getOptions().client_id,options:JSON.stringify(b)},'*');return}var c=a.contentWindow.document.createElement('script');'undefined'==typeof options&&
(options={});c.append('var serviceUrl = "'+Recite.baseUrl+'/asset/js?v='+Recite.version+'&key="; \nvar serviceKey = "'+Recite.Auth.getOptions().client_id+'"; \nvar options = '+JSON.stringify(b)+'; \nvar autoLoad = true; \nvar enableFragment = "'+Recite.getOptions().enableFragment+'"; \nvar loaded=[],frag=!1;window.location.hash===enableFragment&&(frag=!0);function loadScript(c,b){var a=document.createElement("script");a.type="text/javascript";a.readyState?a.onreadystatechange=function(){if("loaded"==a.readyState||"complete"==a.readyState)a.onreadystatechange=null,void 0!=b&&b()}:void 0!=b&&(a.onload=function(){b()});a.src=c;document.getElementsByTagName("head")[0].appendChild(a)}function _rc(c){c+="=";for(var b=document.cookie.split(";"),a=0;a<b.length;a++){for(var d=b[a];" "==d.charAt(0);)d=d.substring(1,d.length);if(0==d.indexOf(c))return d.substring(c.length,d.length)}return null}function loadService(c){for(var b=serviceUrl+serviceKey,a=0;a<loaded.length;a++)if(loaded[a]==b)return;loaded.push(b);loadScript(serviceUrl+serviceKey,function(){"function"===typeof _reciteLoaded&&_reciteLoaded();"function"==typeof c&&c();Recite.load(options);Recite.Event.subscribe("Recite: load",function(){Recite.enable()})})}"true"==_rc("Recite.Persist")&&loadService();if(autoLoad&&"false"!=_rc("Recite.Persist")||frag)document.addEventListener?document.addEventListener("DOMContentLoaded",function(c){loadService()}):loadService();');
Recite.Debug.log('Recite.FrameUpdater','Injecting Recite');a.contentWindow.document.body.appendChild(c)}}var p=!1,u=[],n=null,w=null,r=null,v=!1,x=null,y={enabled:!1,enable:{post:!0,listen:!0},validOrigins:[window.location.origin],validDestinations:[window.location.origin],validMessages:{PreferencesSet:'Recite.PreferencesSet',PreferencesReset:'Recite.PreferencesReset',setChildFrame:'iknowittobetrue',playerControlsShown:'playerControlsShown',HideControls:'HideControls',playNext:'playNext',playPrev:'playPrev',
setActiveChildFrame:'setActiveChildFrame',removeActiveChildFrame:'removeActiveChildFrame',disable:'disable'},preferencesReloadDelay:100,parentSetDelay:1E3,maxTries:10,iframeIgnoreSelector:[]};return{setOptions:function(a){y=Recite.Util.merge(y,a)},getOptions:function(){return y},load:function(){p||g()},disable:function(){p=!1},enabled:function(){return y.enabled},isActive:function(){return p},isParentFrame:function(){return n},isChildFrame:function(){return w},getActiveChildFrame:function(){return r},
hasActiveChildFrame:function(){return n&&null!=r?!0:!1},activeFramePlayNext:function(){c({msgType:y.validMessages.playNext,payload:{playActiveChild:!0}})},activeFramePlayPrev:function(){c({msgType:y.validMessages.playPrev,payload:{playActiveChild:!0}})}}}();Recite.namespace('cssFilter');
Recite.cssFilter=function(){function f(){var a=Recite.Preferences.get('cssFilter'),b=a.style;a=!0===a.enabled;if(d!==a){a=d=a;var f=document.querySelectorAll('.recite-filter-checkbox');f=$jscomp.makeIterator(f);for(var k=f.next();!k.done;k=f.next())k=k.value,k.getAttribute('data-style')!==b&&b||(k.checked=a);d?c():e()}}function c(){var a=document.querySelector('#recite-colors-advanced');a&&a.classList.contains('recite-active')&&(Recite.UI.ColorPicker.hide(),a.classList.remove('recite-active'));b()}
function e(){document.querySelectorAll('[data-recite-filtered]').forEach(function(a){a.style.filter='';a.removeAttribute('data-recite-filtered')})}function b(){var a=Recite.Preferences.get('cssFilter.style'),b=k.filterStyle.find(function(b){return b[a]});if(b){var c=document.querySelector('html');c&&(c.style.filter=b[a],c.setAttribute('data-recite-filtered',!0))}}function a(a){var b=a.target.checked;if(b){a=a.target.getAttribute('data-style');Recite.Preferences.set('cssFilter',{style:a,enabled:b});
b=$jscomp.makeIterator('style.backgroundColor style.font.color style.link.color style.focus.color style.ruler.color style.screenMask.color style.wwHighlight.color'.split(' '));for(a=b.next();!a.done;a=b.next())Recite.Preferences.set(a.value,null);c()}else Recite.Preferences.set('cssFilter',{enabled:!1}),e()}var k={filterStyle:[{monochrome:'grayscale(100%)'}]},d=!1;Recite.Event.subscribe('Preferences:load',function(){f()});Recite.Event.subscribe('Preferences:set',function(a,b){f()});Recite.Event.subscribe('Preferences:reset',
function(){f()});return{invoke:function(){var b=document.querySelectorAll('.recite-filter-checkbox');b=$jscomp.makeIterator(b);for(var c=b.next();!c.done;c=b.next())c.value.addEventListener('change',a)},enable:function(){f()},disable:function(){e();Recite.Debug.log('CSS Filter','Filter disabled')}}}();Recite.namespace('UserGuide');
Recite.UserGuide=function(){function f(){Recite.Preferences.get('userGuide.enabled')?Recite.UserGuide.enable():Recite.UserGuide.disable()}function c(){Recite.Debug.log('Recite.UserGuide','Enabling user guide');w=!0;var a=document.getElementById('recite-wrapper');a&&Array.from(a.children).forEach(function(a){a.classList.add('recite-fade')});document.querySelectorAll('body').forEach(function(a){a.classList.add('recite-dark-fade')});Recite.UI.Dropdown.hideGroup('main');b();g();k();p()}function e(){Recite.Debug.log('Recite.UserGuide',
'Disabling user guide');w=!1;var a=document.querySelector('#recite-userguide-modal');a.parentElement.removeChild(a);a=document.querySelectorAll('.recite-fade');var b=document.querySelectorAll('.recite-dark-fade');a.forEach(function(a){a.classList.remove('recite-fade')});b.forEach(function(a){a.classList.remove('recite-dark-fade')});Recite.Preferences.set('userGuide.enabled',!1)}function b(){var b=document.createElement('div');b.id='recite-userguide-modal';b.setAttribute('aria-modal','true');var c=
document.createElement('div');c.id='recite-userguide-modal-header';c.className='recite-userguide-header';c.innerHTML+='<div class="recite-userguide-logo recite-sprite-logo-small"></div>';b.appendChild(c);b.innerHTML+='<a id="recite-toolbar-tutorial-dummy-focus" class="recite-ignore-styles-background" tabindex="-1"></a>';for(c=0;7>c;c++){var e=d(c);b.innerHTML+=e}(c=document.querySelector('#recite-wrapper'))?c.prepend(b):document.body.appendChild(b);c=Recite.Preferences.get('userGuide.currentPage');
document.querySelector('#recite-userguide-modal-content-page-'+c)&&document.querySelector('#recite-userguide-modal-content-page-'+c).classList.add('recite-userguide-modal-active-page');c=document.createElement('a');c.id='recite-userguide-modal-button-cancel';c.className='recite-sprite-button-close-blue recite-ignore-styles-background';c.setAttribute('href','#');c.setAttribute('role','button');c.setAttribute('title','Close toolbar tutorial');c.setAttribute('data-recite-tabbable','');b.appendChild(c);
document.querySelector('#recite-userguide-modal-button-cancel')&&document.querySelector('#recite-userguide-modal-button-cancel').addEventListener('click',function(){Recite.UserGuide.disable()});(b=document.querySelectorAll('.recite-fade'))&&b.forEach(function(a){a.addEventListener('click',function(){Recite.UserGuide.disable()})});a();m();l();document.querySelector('#recite-toolbar-tutorial-dummy-focus').focus()}function a(){var a=document.querySelector('#recite-userguide-modal-header');0==Recite.Preferences.get('userGuide.currentPage')?
a.setAttribute('class','recite-userguide-header recite-welcome-page'):a.setAttribute('class','recite-userguide-header')}function k(){var a=document.querySelector('#recite-userguide-modal');'recite-userguide-modal-content-page-0'==document.querySelector('.recite-userguide-modal-active-page').id?a.classList.contains('recite-welcome-page-modal')||a.classList.add('recite-welcome-page-modal'):a.classList.contains('recite-welcome-page-modal')&&a.classList.remove('recite-welcome-page-modal')}function d(a){var b=
Recite.Preferences.get('userGuide.currentPage'),c='Welcome to the Recite Me Toolbar,Screen Reader Tools,Text &amp; Styling Tools,Focus Tools,Reading Aids,Toolbar Misc Tools,Keyboard Controls'.split(',');var d='<div id="recite-userguide-modal-content-page-'+a+'" class="recite-userguide-modal-content">';0==a?(d=d+'<div id="recite-welcome-page"><div class="recite-userguide-logo recite-sprite-logo-icon"></div><h1 class="recite-userguide-page-title">'+(c[a]+'</h1>'),d+='<div class="recite-userguide-navigation-controls"><button data-recite-tabbable class="recite-userguide-button recite-userguide-nav-button recite-userguide-next-group">Learn More</button><button data-recite-tabbable class="recite-userguide-button recite-userguide-nav-button recite-userguide-button-primary recite-userguide-button-get-started">Get Started</button></div><div class="recite-userguide-welcome-illustration"></div></div>'):
(d+='<h1 class="recite-userguide-page-title">'+c[a]+'</h1>',Recite.Browser.isMobile()?(d=d+'<div class="recite-userguide-page-content">'+u(a||b),d+='</div>',0<a&&6>a&&(d+='<div class="recite-userguide-navigation-controls"><button data-recite-tabbable class="recite-userguide-button recite-userguide-nav-button recite-userguide-previous-group">Previous Group</button><button data-recite-tabbable class="recite-userguide-button recite-userguide-nav-button recite-userguide-next-group">Next Group</button></div>')):
(0<a&&6>a&&(d+='<div class="recite-userguide-navigation-controls"><button data-recite-tabbable class="recite-userguide-button recite-userguide-nav-button recite-userguide-previous-group">Previous Group</button><button data-recite-tabbable class="recite-userguide-button recite-userguide-nav-button recite-userguide-next-group">Next Group</button></div>'),d=d+'<div class="recite-userguide-page-content">'+u(a||b),d+='</div><div class="recite-userguide-keyboard-container"><button data-recite-tabbable class="recite-userguide-button recite-userguide-button-primary recite-userguide-button-keyboard">View Keyboard Controls</button></div>'));
return d+'</div>'}function g(){var a=Recite.Preferences.get('language');null!=a?Recite.Language.Translate.translate(Recite.Sizzle('#recite-userguide-modal-content')[0],a):'en'!=Recite.Language.Translate.getWorkingPageLanguage()&&Recite.Language.Translate.translate(Recite.Sizzle('#recite-userguide-modal-content')[0],Recite.Language.Translate.getWorkingPageLanguage())}function h(b,c){if(w){var d='number'!==typeof b?parseInt(d):b;b=document.querySelector('.recite-userguide-modal-active-page');var e=
document.querySelector('#recite-userguide-modal-content-page-'+d);e.querySelector('.recite-userguide-page-content')&&''==e.querySelector('.recite-userguide-page-content').innerHTML&&(c&&'forward'==c?(d+=1,e=document.querySelector('#recite-userguide-modal-content-page-'+d)):c&&'backward'==c&&(--d,e=document.querySelector('#recite-userguide-modal-content-page-'+d)));if(e)b.classList.remove('recite-userguide-modal-active-page'),e.classList.add('recite-userguide-modal-active-page');else return!1;Recite.Preferences.set('userGuide.currentPage',
d);k();a();m();l();document.querySelector('#recite-toolbar-tutorial-dummy-focus').focus()}}function l(){var a=document.querySelector('.recite-userguide-modal-active-page .recite-userguide-previous-group'),b=document.querySelector('.recite-userguide-modal-active-page .recite-userguide-next-group');a&&a.addEventListener('click',function(b){b.stopImmediatePropagation();b.preventDefault();(b=parseInt(a.dataset.value))&&h(b,'backward')},{once:!0});b&&b.addEventListener('click',function(a){a.stopImmediatePropagation();
a.preventDefault();(a=parseInt(b.dataset.value))&&h(a,'forward')},{once:!0});document.querySelector('.recite-userguide-modal-active-page .recite-userguide-button-keyboard')&&document.querySelector('.recite-userguide-modal-active-page .recite-userguide-button-keyboard').addEventListener('click',function(a){a.stopImmediatePropagation();a.preventDefault();a=document.querySelector('.recite-userguide-modal-active-page').id;var b=Recite.Preferences.get('userGuide.prevPage');document.querySelector('#'+a)&&
('recite-userguide-modal-content-page-6'==a?(6!=b&&b||(b=1),Recite.Debug.log('Recite.UserGuide','Returning to previous tutorial page'),h(b),Recite.Preferences.set('userGuide.prevPage',null)):(h(6),a=parseInt(a.charAt(a.length-1)),Recite.Preferences.set('userGuide.prevPage',a)))},{once:!0});document.querySelectorAll('.recite-userguide-button-get-started').forEach(function(a){a.addEventListener('click',function(){Recite.Preferences.set('userGuide.currentPage',1);Recite.UserGuide.disable()})})}function m(){var a=
document.querySelector('.recite-userguide-modal-active-page .recite-userguide-previous-group'),b=document.querySelector('.recite-userguide-modal-active-page .recite-userguide-next-group'),c=document.querySelector('.recite-userguide-modal-active-page .recite-userguide-button-keyboard'),d=Recite.Preferences.get('userGuide.currentPage');a&&(a.removeAttribute('disabled'),a.removeAttribute('aria-disbaled'),a.dataset.value=parseInt(d)-1);b&&(b.dataset.value=parseInt(d)+1);a&&1==d&&(a.setAttribute('disabled',
!0),a.setAttribute('aria-disabled',!0),delete a.dataset.value);b&&5==d&&(delete b.dataset.value,b.classList.add('recite-userguide-button-primary'),b.classList.add('recite-userguide-button-get-started'),b.classList.remove('recite-userguide-next-group'),b.innerHTML='Get started');c&&6==d&&(c.innerHTML='View Toolbar Guide')}function p(){var a=document.querySelector('#recite-userguide-modal');Recite.FocusText.isEnabled()&&a&&(Recite.Preferences.get('focusText.enabled')?Recite.FocusText.ConvertText.convert(a):
Recite.FocusText.ConvertText.remove())}function u(a){if(6==a)return'<table role="presentation"><tr><td>Next Toolbar Icon</td><td class="recite-userguide-keyboard-control">TAB</td></tr><tr><td>Previous Toolbar Icon</td><td class="recite-userguide-keyboard-control">SHIFT + TAB</td></tr><tr><td>Select</td><td class="recite-userguide-keyboard-control">SPACE</td></tr><tr><td>Play Next Element</td><td class="recite-userguide-keyboard-control">CTRL + RIGHT</td></tr><tr><td>Play Previous Element</td><td class="recite-userguide-keyboard-control">CTRL + LEFT</td></tr><tr><td>Play the Current Element</td><td class="recite-userguide-keyboard-control">CTRL + ALT + P</td></tr><tr><td>Show Font Menu</td><td class="recite-userguide-keyboard-control">CTRL + ALT + F</td></tr><tr><td>Show Colour Theme Menu</td><td class="recite-userguide-keyboard-control">CTRL + ALT + C</td></tr><tr><td>Enable/Disable Ruler</td><td class="recite-userguide-keyboard-control">CTRL + R</td></tr><tr><td>Enable/Disable Dictionary</td><td class="recite-userguide-keyboard-control">CTRL + D</td></tr><tr><td>Show Translate Menu</td><td class="recite-userguide-keyboard-control">CTRL + L</td></tr><tr><td>Enable/Disable Text-Only Mode</td><td class="recite-userguide-keyboard-control">CTRL + X</td></tr><tr><td>Show Page Margin Settings</td><td class="recite-userguide-keyboard-control">CTRL + M</td></tr><tr><td>Show Settings Menu</td><td class="recite-userguide-keyboard-control">CTRL + SHIFT + O</td></tr><tr><td>Save Settings</td><td class="recite-userguide-keyboard-control">CTRL + S</td></tr></table>';
var b=[{name:'Previous Page Element',description:'Rewind to the previous page element.',selector:'recite-sprite-button-back',page:1,enabled:!0,onMobile:!0},{name:'Play Screen Reader',description:'Plays screen reader.',selector:'recite-sprite-button-play',page:1,enabled:!0,onMobile:!0},{name:'Next Page Element',description:'Fast forward to the next page element.',selector:'recite-sprite-button-forward',page:1,enabled:!0,onMobile:!0},{name:'British Sign Language',description:'Enable British Sign Language videos on available pages.',
selector:'recite-sprite-button-bsl',page:1,enabled:!0,onMobile:!0},{name:'Decrease Size',description:'Decrease text size.',selector:'recite-sprite-button-font-minus',page:2,enabled:!0,onMobile:!0},{name:'Change Font',description:'Change the font of the text on the page.',selector:'recite-sprite-button-font',page:2,enabled:!0,onMobile:!0},{name:'Focus Text Mode',description:'Highlight half of a word in bold to improve readability.',selector:'recite-sprite-button-focus-text',page:2,enabled:!0,onMobile:!0},
{name:'Increase Size',description:'Increase text size.',selector:'recite-sprite-button-font-plus',page:2,enabled:!0,onMobile:!0},{name:'Language Options',description:'Translate content into any language.',selector:'recite-sprite-button-translate',page:2,enabled:!0,onMobile:!0},{name:'Colour Options',description:'Customise background colour and text colour.',selector:'recite-sprite-button-themes',page:2,enabled:!0,onMobile:!0},{name:'Enable Ruler',description:'Adds a ruler to the page to make reading easier.',
selector:'recite-sprite-button-ruler',page:3,enabled:!0,onMobile:!1},{name:'Cursor Options',description:'Increase or decrease cursor size and edit colour.',selector:'recite-sprite-button-pointer-size',page:3,enabled:!0,onMobile:!1},{name:'Enable Screen Mask',description:'Focus on a specific section of the website.',selector:'recite-sprite-button-screenmask',page:3,enabled:!0,onMobile:!1},{name:'Enable Text Mode',description:'Display the web page content in plain text.',selector:'recite-sprite-button-textmode',
page:3,enabled:!0,onMobile:!0},{name:'Margin Options',description:'This icon only appears when Enable Text Mode is pressed. It allows you to adjust margin width in text mode.',selector:'recite-sprite-button-margin',page:3,enabled:!0,onMobile:!0},{name:'Use Dictionary',description:'Search for definitions of words on the page.',selector:'recite-sprite-button-dictionary',page:4,enabled:!0,onMobile:!1},{name:'Summary of Page',description:'Summarise all content on page into a paragraph.',selector:'recite-sprite-button-summary',
page:4,enabled:!0,onMobile:!0},{name:'Enable Magnifier',description:'Zoom into sections of the website.',selector:'recite-sprite-button-magnifier',page:4,enabled:!0,onMobile:!1},{name:'Download Reader Audio',description:'Download sections of the screen reader audio.',selector:'recite-sprite-button-mp3',page:5,enabled:!0,onMobile:!1},{name:'Toolbar Settings',description:'Here you can control Text to Speech, Pause animations, view our Accessibility Statement and relaunch this Tutorial.',selector:'recite-sprite-button-settings',
page:5,enabled:!0,onMobile:!0},{name:'Reset Toolbar',description:'Reset the website to its default state.',selector:'recite-sprite-button-reset',page:5,enabled:!0,onMobile:!0},{name:'View User Guide',description:'View the user guide on the Recite Me website.',selector:'recite-sprite-button-userguide',page:5,enabled:!0,onMobile:!0}],c=document.querySelector('.recite-controls');b.forEach(function(a){'Play Screen Reader'!=a.name&&(c.querySelector('.'+a.selector)||(a.enabled=!1),Recite.Browser.isMobile()&&
!a.onMobile&&(a.enabled=!1))});var d='';b=b.filter(function(b){return b.page==a&&b.enabled});if(0==b.length)return d;b.forEach(function(a){d+='<div class="recite-userguide-item">';d+='<div class="recite-userguide-button-image">';d+='<div aria-labelledby="'+a.selector+'-header" class="recite-ignore-styles-background '+a.selector+'"></div>';d+='</div>';d+='<div class="recite-userguide-content">';d+='<p id="'+a.selector+'-header" class="recite-userguide-content-title">'+a.name+'</p>';d+='<p class="recite-userguide-content-description">'+
a.description+'</p>';d+='</div>';d+='</div>'});return d}var n={enabled:!1},w=!1;Recite.Event.subscribe('Preferences:load',function(){Recite.Preferences.get('focusText.enabled')?setTimeout(function(){f()},1E3):f()});Recite.Event.subscribe('Preferences:set',f);Recite.Event.subscribe('Preferences:reset',f);Recite.Event.subscribe('Controls:loaded',function(){n.enabled&&null===Recite.Preferences.get('userGuide.showWelcome')&&(Recite.Preferences.set('userGuide.currentPage',0),Recite.Preferences.set('userGuide.enabled',
!0),Recite.UserGuide.enable(),Recite.Preferences.set('userGuide.currentPage',1),Recite.Preferences.set('userGuide.showWelcome',!1))});return{enable:function(){w||(n.enabled?c():Recite.Debug.log('Recite.UserGuide','Module is not enabled.  Ignoring request to enable'))},disable:function(){w&&e()},load:function(){f()},isEnabled:function(){return n.enabled},setOptions:function(a){n=Recite.Util.merge(n,a)}}}();Recite.namespace('BSL');
Recite.BSL=function(){function f(){var a=document.querySelector('.recite-selected'),b=document.querySelector('#recite-bsl-overlay');a&&Recite.Dom.isDescendant(a,b)&&Recite.PlayerControls.stop();a=document.querySelector('#recite-bsl-overlay');a.parentNode.removeChild(a);Recite.Preferences.set('bsl.enabled',!1);g=!1;Recite.Gui.Sidebar.toggle();Recite.Controls.Desktop.applyTabOrder();document.querySelector('#recite-toolbar-button-bsl').classList.remove('active')}function c(){Recite.Preferences.get('bsl.enabled')?
Recite.BSL.enable():Recite.BSL.disable()}function e(){Recite.Debug.log('Recite.BSL','Showing overlay');if(!document.querySelector('#recite-bsl-overlay')){var c='<div class="recite-overlay-content" aria-modal="true"><div class="recite-overlay-header"><div id="recite-bsl-dummy-focus" tabindex="-1"></div><h2>'+d.overlayTitle+'</h2><a href="#" data-recite-tabbable title="Close BSL Overlay" class="recite-close-bsl-overlay recite-sprite-button-close-blue recite-ignore-styles-background"></a></div><div class="recite-overlay-body"><div class="recite-bsl-video-container">'+
b()+'</div> <div class="recite-bsl-pages"><p>British Sign Language is available on:</p><div id="recite-bsl-page-list-container"></div></div><hr/></div></div >';var e=document.createElement('div');e.setAttribute('id','recite-bsl-overlay');e.setAttribute('lang','en');e.innerHTML=c;document.querySelector(d.contentTargetSelector).appendChild(e);Recite.Gui.Sidebar.create(e.id);(c=document.querySelector('.recite-close-bsl-overlay'))&&c.addEventListener('click',function(a){Recite.Debug.log('Recite.BSL',
'Close button pressed');a.preventDefault();Recite.Preferences.set('bsl.enabled',!1);f()});a()}}function b(){var a=d.aspectRatio.split(':').map(function(a){return parseInt(a)});a=d.videoWidth/a[0]*a[1];var b=window.location.pathname,c=(d.pages?d.pages:[]).filter(function(a){return a.path.replace(/\[slash\]/g,'/').replace(/\[dot\]/g,'.')==b});c=0<c.length?c[0].videoUrl:d.defaultVideo;return'<video id="recite-bsl-video" playsinline disablePictureInPicture preload="metadata" width="'+d.videoWidth+'" height="'+
parseInt(a)+'">  <source src="'+c.replace(/\[dot\]/g,'.').replace(/\[slash\]/g,'/')+'#t=0.001" type="video/mp4"> Your browser does not support the video tag.</video><div class="recite-video-controls"><button data-recite-tabbable class="recite-video-control recite-video-play" title="Play Video">Play BSL <span class="control-symbol recite-sprite-play-icon"></span></button><button data-recite-tabbable class="recite-video-control recite-video-stop" title="Stop Video">Stop BSL <span class="control-symbol recite-sprite-stop-icon"></span></button></div>'}
function a(){var a=document.createElement('div');a.setAttribute('id','recite-bsl-page-list');var b='';d.pages.forEach(function(a,c){var d='',e='';window.location.pathname==a.path.replace(/\[slash\]/g,'/').replace(/\[dot\]/g,'.')&&(d+=' recite-bsl-current-page',e+='<span class="recite-bsl-current-page-marker">Current Page</span>');b+='<a class="recite-page-list-item'+d+'" href="'+a.path.replace(/\[slash\]/g,'/').replace(/\[dot\]/g,'.')+'" data-recite-tabbable data-value="'+c+'"><span>'+a.title+'</span>'+
e+'</a>'});a.innerHTML=b;document.querySelector('#recite-bsl-page-list-container').appendChild(a);document.querySelectorAll('.recite-page-list-item');Recite.Controls.Desktop.applyTabOrder()}function k(){var a=document.querySelector('#recite-bsl-video'),b=document.querySelector('#recite-bsl-overlay .recite-video-controls'),c=b.querySelector('.recite-video-play');b=b.querySelector('.recite-video-stop');a&&(c&&c.addEventListener('click',function(a){a=document.querySelector('#recite-bsl-video');var b=
document.querySelector('#recite-bsl-overlay .recite-video-controls').querySelector('.recite-video-play');b.classList.contains('recite-video-control-active')?(a.pause(),b.innerHTML='Play BSL <span class="control-symbol recite-sprite-play-icon"></span>',b.classList.remove('recite-video-control-active')):(a.play(),b.classList.toggle('recite-video-control-active'),b.innerHTML='Pause BSL <span class="control-symbol recite-sprite-pause-icon"></span>',a.ended&&(a.currentTime=0,a.play()))}),b&&b.addEventListener('click',
function(){var a=document.querySelector('#recite-bsl-video'),b=document.querySelector('#recite-bsl-overlay .recite-video-controls').querySelector('.recite-video-play');b.classList.contains('recite-video-control-active')&&(b.innerHTML='Play BSL <span class="control-symbol recite-sprite-play-icon"></span>',b.classList.remove('recite-video-control-active'));a.pause();a.currentTime=0}),a.addEventListener('playing',function(){console.log('playing')}),a.addEventListener('paused',function(){console.log('paused')}),
a.addEventListener('ended',function(){c.innerHTML='Play BSL <span class="control-symbol recite-sprite-play-icon"></span>';c.classList.remove('recite-video-control-active')}))}var d={enabled:!1,overlayTitle:'British Sign Language',contentTargetSelector:'body',videoWidth:320,aspectRatio:'3:4',defaultVideo:'Welcome.mp4'},g=!1;Recite.Event.subscribe('Preferences:load',function(){Recite.Preferences.get('focusText.enabled')?setTimeout(function(){c()},1E3):c()});Recite.Event.subscribe('Preferences:set',
c);Recite.Event.subscribe('Preferences:reset',c);return{load:function(){c()},enable:function(){g||(d.enabled?(Recite.Debug.log('Recite.BSL','Enabling module'),Recite.Debug.log('Recite.BSL','Enabling British Sign Language'),e(),document.querySelector('#recite-bsl-dummy-focus').focus(),k(),Recite.Controls.Desktop.applyTabOrder(),Recite.Preferences.get('readingaid.enabled')&&(Recite.ReadingAid.disable(),Recite.Gui.Notification.show('Page Summariser disabled')),g=!0,document.querySelector('#recite-toolbar-button-bsl').classList.add('active')):
Recite.Debug.log('Recite.BSL','Module is not enabled.  Ignoring request to enable'))},disable:function(){g&&(Recite.Debug.log('Recite.BSL','Disabling module'),f())},isEnabled:function(){return d.enabled},isLoaded:function(){return g},setOptions:function(a){d=Recite.Util.merge(d,a)}}}();
