OLD | NEW |
1 var goog=goog||{};goog.global=this;goog.exportPath_=function(a,b,c){a=a.split(".
");c=c||goog.global;a[0]in c||!c.execScript||c.execScript("var "+a[0]);for(var d
;a.length&&(d=a.shift());)a.length||void 0===b?c=c[d]?c[d]:c[d]={}:c[d]=b};goog.
define=function(a,b){var c=b;goog.exportPath_(a,c)};goog.DEBUG=!1;goog.LOCALE="e
n";goog.TRUSTED_SITE=!0;goog.STRICT_MODE_COMPATIBLE=!1;goog.provide=function(a){
goog.exportPath_(a)}; | 1 var goog=goog||{};goog.global=this;goog.isDef=function(a){return void 0!==a};goo
g.exportPath_=function(a,b,c){a=a.split(".");c=c||goog.global;a[0]in c||!c.execS
cript||c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)!a.length&&g
oog.isDef(b)?c[d]=b:c=c[d]?c[d]:c[d]={}};goog.define=function(a,b){var c=b;goog.
exportPath_(a,c)};goog.DEBUG=!1;goog.LOCALE="en";goog.TRUSTED_SITE=!0;goog.STRIC
T_MODE_COMPATIBLE=!1;goog.provide=function(a){goog.exportPath_(a)}; |
2 goog.setTestOnly=function(a){if(!goog.DEBUG)throw a=a||"",Error("Importing test-
only code into non-debug environment"+a?": "+a:".");};goog.forwardDeclare=functi
on(){};goog.getObjectByName=function(a,b){for(var c=a.split("."),d=b||goog.globa
l,e;e=c.shift();)if(goog.isDefAndNotNull(d[e]))d=d[e];else return null;return d}
;goog.globalize=function(a,b){var c=b||goog.global,d;for(d in a)c[d]=a[d]}; | 2 goog.setTestOnly=function(a){if(!goog.DEBUG)throw a=a||"",Error("Importing test-
only code into non-debug environment"+a?": "+a:".");};goog.forwardDeclare=functi
on(){};goog.getObjectByName=function(a,b){for(var c=a.split("."),d=b||goog.globa
l,e;e=c.shift();)if(goog.isDefAndNotNull(d[e]))d=d[e];else return null;return d}
;goog.globalize=function(a,b){var c=b||goog.global,d;for(d in a)c[d]=a[d]}; |
3 goog.addDependency=function(a,b,c){if(goog.DEPENDENCIES_ENABLED){var d;a=a.repla
ce(/\\/g,"/");for(var e=goog.dependencies_,f=0;d=b[f];f++)e.nameToPath[d]=a,a in
e.pathToNames||(e.pathToNames[a]={}),e.pathToNames[a][d]=!0;for(d=0;b=c[d];d++)
a in e.requires||(e.requires[a]={}),e.requires[a][b]=!0}};goog.useStrictRequires
=!1;goog.ENABLE_DEBUG_LOADER=!0;goog.require=function(){};goog.basePath="";goog.
nullFunction=function(){};goog.identityFunction=function(a){return a}; | 3 goog.addDependency=function(a,b,c){if(goog.DEPENDENCIES_ENABLED){var d;a=a.repla
ce(/\\/g,"/");for(var e=goog.dependencies_,f=0;d=b[f];f++)e.nameToPath[d]=a,a in
e.pathToNames||(e.pathToNames[a]={}),e.pathToNames[a][d]=!0;for(d=0;b=c[d];d++)
a in e.requires||(e.requires[a]={}),e.requires[a][b]=!0}};goog.useStrictRequires
=!1;goog.ENABLE_DEBUG_LOADER=!0;goog.require=function(){};goog.basePath="";goog.
nullFunction=function(){};goog.identityFunction=function(a){return a}; |
4 goog.abstractMethod=function(){throw Error("unimplemented abstract method");};go
og.addSingletonGetter=function(a){a.getInstance=function(){if(a.instance_)return
a.instance_;goog.DEBUG&&(goog.instantiatedSingletons_[goog.instantiatedSingleto
ns_.length]=a);return a.instance_=new a}};goog.instantiatedSingletons_=[];goog.D
EPENDENCIES_ENABLED=!1; | 4 goog.abstractMethod=function(){throw Error("unimplemented abstract method");};go
og.addSingletonGetter=function(a){a.getInstance=function(){if(a.instance_)return
a.instance_;goog.DEBUG&&(goog.instantiatedSingletons_[goog.instantiatedSingleto
ns_.length]=a);return a.instance_=new a}};goog.instantiatedSingletons_=[];goog.D
EPENDENCIES_ENABLED=!1; |
5 goog.DEPENDENCIES_ENABLED&&(goog.included_={},goog.dependencies_={pathToNames:{}
,nameToPath:{},requires:{},visited:{},written:{}},goog.inHtmlDocument_=function(
){var a=goog.global.document;return"undefined"!=typeof a&&"write"in a},goog.find
BasePath_=function(){if(goog.global.CLOSURE_BASE_PATH)goog.basePath=goog.global.
CLOSURE_BASE_PATH;else if(goog.inHtmlDocument_())for(var a=goog.global.document,
a=a.getElementsByTagName("script"),b=a.length-1;0<=b;--b){var c=a[b].src,d=c.las
tIndexOf("?"),d=-1==d? | 5 goog.DEPENDENCIES_ENABLED&&(goog.included_={},goog.dependencies_={pathToNames:{}
,nameToPath:{},requires:{},visited:{},written:{}},goog.inHtmlDocument_=function(
){var a=goog.global.document;return"undefined"!=typeof a&&"write"in a},goog.find
BasePath_=function(){if(goog.global.CLOSURE_BASE_PATH)goog.basePath=goog.global.
CLOSURE_BASE_PATH;else if(goog.inHtmlDocument_())for(var a=goog.global.document,
a=a.getElementsByTagName("script"),b=a.length-1;0<=b;--b){var c=a[b].src,d=c.las
tIndexOf("?"),d=-1==d? |
6 c.length:d;if("base.js"==c.substr(d-7,7)){goog.basePath=c.substr(0,d-7);break}}}
,goog.importScript_=function(a){var b=goog.global.CLOSURE_IMPORT_SCRIPT||goog.wr
iteScriptTag_;!goog.dependencies_.written[a]&&b(a)&&(goog.dependencies_.written[
a]=!0)},goog.writeScriptTag_=function(a){if(goog.inHtmlDocument_()){var b=goog.g
lobal.document;if("complete"==b.readyState){if(b=/\bdeps.js$/.test(a))return!1;t
hrow Error('Cannot write "'+a+'" after document load');}b.write('<script type="t
ext/javascript" src="'+ | 6 c.length:d;if("base.js"==c.substr(d-7,7)){goog.basePath=c.substr(0,d-7);break}}}
,goog.importScript_=function(a){var b=goog.global.CLOSURE_IMPORT_SCRIPT||goog.wr
iteScriptTag_;!goog.dependencies_.written[a]&&b(a)&&(goog.dependencies_.written[
a]=!0)},goog.writeScriptTag_=function(a){if(goog.inHtmlDocument_()){var b=goog.g
lobal.document;if("complete"==b.readyState){if(b=/\bdeps.js$/.test(a))return!1;t
hrow Error('Cannot write "'+a+'" after document load');}b.write('<script type="t
ext/javascript" src="'+ |
7 a+'">\x3c/script>');return!0}return!1},goog.writeScripts_=function(){function a(
e){if(!(e in d.written)){if(!(e in d.visited)&&(d.visited[e]=!0,e in d.requires)
)for(var g in d.requires[e])if(!goog.isProvided_(g))if(g in d.nameToPath)a(d.nam
eToPath[g]);else throw Error("Undefined nameToPath for "+g);e in c||(c[e]=!0,b.p
ush(e))}}var b=[],c={},d=goog.dependencies_,e;for(e in goog.included_)d.written[
e]||a(e);for(e=0;e<b.length;e++)if(b[e])goog.importScript_(goog.basePath+b[e]);e
lse throw Error("Undefined script input"); | 7 a+'">\x3c/script>');return!0}return!1},goog.writeScripts_=function(){function a(
e){if(!(e in d.written)){if(!(e in d.visited)&&(d.visited[e]=!0,e in d.requires)
)for(var g in d.requires[e])if(!goog.isProvided_(g))if(g in d.nameToPath)a(d.nam
eToPath[g]);else throw Error("Undefined nameToPath for "+g);e in c||(c[e]=!0,b.p
ush(e))}}var b=[],c={},d=goog.dependencies_,e;for(e in goog.included_)d.written[
e]||a(e);for(e=0;e<b.length;e++)if(b[e])goog.importScript_(goog.basePath+b[e]);e
lse throw Error("Undefined script input"); |
8 },goog.getPathFromDeps_=function(a){return a in goog.dependencies_.nameToPath?go
og.dependencies_.nameToPath[a]:null},goog.findBasePath_(),goog.global.CLOSURE_NO
_DEPS||goog.importScript_(goog.basePath+"deps.js")); | 8 },goog.getPathFromDeps_=function(a){return a in goog.dependencies_.nameToPath?go
og.dependencies_.nameToPath[a]:null},goog.findBasePath_(),goog.global.CLOSURE_NO
_DEPS||goog.importScript_(goog.basePath+"deps.js")); |
9 goog.typeOf=function(a){var b=typeof a;if("object"==b)if(a){if(a instanceof Arra
y)return"array";if(a instanceof Object)return b;var c=Object.prototype.toString.
call(a);if("[object Window]"==c)return"object";if("[object Array]"==c||"number"=
=typeof a.length&&"undefined"!=typeof a.splice&&"undefined"!=typeof a.propertyIs
Enumerable&&!a.propertyIsEnumerable("splice"))return"array";if("[object Function
]"==c||"undefined"!=typeof a.call&&"undefined"!=typeof a.propertyIsEnumerable&&!
a.propertyIsEnumerable("call"))return"function"}else return"null"; | 9 goog.typeOf=function(a){var b=typeof a;if("object"==b)if(a){if(a instanceof Arra
y)return"array";if(a instanceof Object)return b;var c=Object.prototype.toString.
call(a);if("[object Window]"==c)return"object";if("[object Array]"==c||"number"=
=typeof a.length&&"undefined"!=typeof a.splice&&"undefined"!=typeof a.propertyIs
Enumerable&&!a.propertyIsEnumerable("splice"))return"array";if("[object Function
]"==c||"undefined"!=typeof a.call&&"undefined"!=typeof a.propertyIsEnumerable&&!
a.propertyIsEnumerable("call"))return"function"}else return"null"; |
10 else if("function"==b&&"undefined"==typeof a.call)return"object";return b};goog.
isDef=function(a){return void 0!==a};goog.isNull=function(a){return null===a};go
og.isDefAndNotNull=function(a){return null!=a};goog.isArray=function(a){return"a
rray"==goog.typeOf(a)};goog.isArrayLike=function(a){var b=goog.typeOf(a);return"
array"==b||"object"==b&&"number"==typeof a.length};goog.isDateLike=function(a){r
eturn goog.isObject(a)&&"function"==typeof a.getFullYear};goog.isString=function
(a){return"string"==typeof a}; | 10 else if("function"==b&&"undefined"==typeof a.call)return"object";return b};goog.
isNull=function(a){return null===a};goog.isDefAndNotNull=function(a){return null
!=a};goog.isArray=function(a){return"array"==goog.typeOf(a)};goog.isArrayLike=fu
nction(a){var b=goog.typeOf(a);return"array"==b||"object"==b&&"number"==typeof a
.length};goog.isDateLike=function(a){return goog.isObject(a)&&"function"==typeof
a.getFullYear};goog.isString=function(a){return"string"==typeof a}; |
11 goog.isBoolean=function(a){return"boolean"==typeof a};goog.isNumber=function(a){
return"number"==typeof a};goog.isFunction=function(a){return"function"==goog.typ
eOf(a)};goog.isObject=function(a){var b=typeof a;return"object"==b&&null!=a||"fu
nction"==b};goog.getUid=function(a){return a[goog.UID_PROPERTY_]||(a[goog.UID_PR
OPERTY_]=++goog.uidCounter_)};goog.hasUid=function(a){return!!a[goog.UID_PROPERT
Y_]};goog.removeUid=function(a){"removeAttribute"in a&&a.removeAttribute(goog.UI
D_PROPERTY_);try{delete a[goog.UID_PROPERTY_]}catch(b){}}; | 11 goog.isBoolean=function(a){return"boolean"==typeof a};goog.isNumber=function(a){
return"number"==typeof a};goog.isFunction=function(a){return"function"==goog.typ
eOf(a)};goog.isObject=function(a){var b=typeof a;return"object"==b&&null!=a||"fu
nction"==b};goog.getUid=function(a){return a[goog.UID_PROPERTY_]||(a[goog.UID_PR
OPERTY_]=++goog.uidCounter_)};goog.hasUid=function(a){return!!a[goog.UID_PROPERT
Y_]};goog.removeUid=function(a){"removeAttribute"in a&&a.removeAttribute(goog.UI
D_PROPERTY_);try{delete a[goog.UID_PROPERTY_]}catch(b){}}; |
12 goog.UID_PROPERTY_="closure_uid_"+(1E9*Math.random()>>>0);goog.uidCounter_=0;goo
g.getHashCode=goog.getUid;goog.removeHashCode=goog.removeUid;goog.cloneObject=fu
nction(a){var b=goog.typeOf(a);if("object"==b||"array"==b){if(a.clone)return a.c
lone();var b="array"==b?[]:{},c;for(c in a)b[c]=goog.cloneObject(a[c]);return b}
return a};goog.bindNative_=function(a,b,c){return a.call.apply(a.bind,arguments)
}; | 12 goog.UID_PROPERTY_="closure_uid_"+(1E9*Math.random()>>>0);goog.uidCounter_=0;goo
g.getHashCode=goog.getUid;goog.removeHashCode=goog.removeUid;goog.cloneObject=fu
nction(a){var b=goog.typeOf(a);if("object"==b||"array"==b){if(a.clone)return a.c
lone();var b="array"==b?[]:{},c;for(c in a)b[c]=goog.cloneObject(a[c]);return b}
return a};goog.bindNative_=function(a,b,c){return a.call.apply(a.bind,arguments)
}; |
13 goog.bindJs_=function(a,b,c){if(!a)throw Error();if(2<arguments.length){var d=Ar
ray.prototype.slice.call(arguments,2);return function(){var c=Array.prototype.sl
ice.call(arguments);Array.prototype.unshift.apply(c,d);return a.apply(b,c)}}retu
rn function(){return a.apply(b,arguments)}};goog.bind=function(a,b,c){Function.p
rototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?goo
g.bind=goog.bindNative_:goog.bind=goog.bindJs_;return goog.bind.apply(null,argum
ents)}; | 13 goog.bindJs_=function(a,b,c){if(!a)throw Error();if(2<arguments.length){var d=Ar
ray.prototype.slice.call(arguments,2);return function(){var c=Array.prototype.sl
ice.call(arguments);Array.prototype.unshift.apply(c,d);return a.apply(b,c)}}retu
rn function(){return a.apply(b,arguments)}};goog.bind=function(a,b,c){Function.p
rototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?goo
g.bind=goog.bindNative_:goog.bind=goog.bindJs_;return goog.bind.apply(null,argum
ents)}; |
14 goog.partial=function(a,b){var c=Array.prototype.slice.call(arguments,1);return
function(){var b=c.slice();b.push.apply(b,arguments);return a.apply(this,b)}};go
og.mixin=function(a,b){for(var c in b)a[c]=b[c]};goog.now=goog.TRUSTED_SITE&&Dat
e.now||function(){return+new Date}; | 14 goog.partial=function(a,b){var c=Array.prototype.slice.call(arguments,1);return
function(){var b=c.slice();b.push.apply(b,arguments);return a.apply(this,b)}};go
og.mixin=function(a,b){for(var c in b)a[c]=b[c]};goog.now=goog.TRUSTED_SITE&&Dat
e.now||function(){return+new Date}; |
15 goog.globalEval=function(a){if(goog.global.execScript)goog.global.execScript(a,"
JavaScript");else if(goog.global.eval)if(null==goog.evalWorksForGlobals_&&(goog.
global.eval("var _et_ = 1;"),"undefined"!=typeof goog.global._et_?(delete goog.g
lobal._et_,goog.evalWorksForGlobals_=!0):goog.evalWorksForGlobals_=!1),goog.eval
WorksForGlobals_)goog.global.eval(a);else{var b=goog.global.document,c=b.createE
lement("script");c.type="text/javascript";c.defer=!1;c.appendChild(b.createTextN
ode(a));b.body.appendChild(c); | 15 goog.globalEval=function(a){if(goog.global.execScript)goog.global.execScript(a,"
JavaScript");else if(goog.global.eval)if(null==goog.evalWorksForGlobals_&&(goog.
global.eval("var _et_ = 1;"),"undefined"!=typeof goog.global._et_?(delete goog.g
lobal._et_,goog.evalWorksForGlobals_=!0):goog.evalWorksForGlobals_=!1),goog.eval
WorksForGlobals_)goog.global.eval(a);else{var b=goog.global.document,c=b.createE
lement("script");c.type="text/javascript";c.defer=!1;c.appendChild(b.createTextN
ode(a));b.body.appendChild(c); |
16 b.body.removeChild(c)}else throw Error("goog.globalEval not available");};goog.e
valWorksForGlobals_=null;goog.getCssName=function(a,b){var c=function(a){return
goog.cssNameMapping_[a]||a},d=function(a){a=a.split("-");for(var b=[],d=0;d<a.le
ngth;d++)b.push(c(a[d]));return b.join("-")},d=goog.cssNameMapping_?"BY_WHOLE"==
goog.cssNameMappingStyle_?c:d:function(a){return a};return b?a+"-"+d(b):d(a)};go
og.setCssNameMapping=function(a,b){goog.cssNameMapping_=a;goog.cssNameMappingSty
le_=b}; | 16 b.body.removeChild(c)}else throw Error("goog.globalEval not available");};goog.e
valWorksForGlobals_=null;goog.getCssName=function(a,b){var c=function(a){return
goog.cssNameMapping_[a]||a},d=function(a){a=a.split("-");for(var b=[],d=0;d<a.le
ngth;d++)b.push(c(a[d]));return b.join("-")},d=goog.cssNameMapping_?"BY_WHOLE"==
goog.cssNameMappingStyle_?c:d:function(a){return a};return b?a+"-"+d(b):d(a)};go
og.setCssNameMapping=function(a,b){goog.cssNameMapping_=a;goog.cssNameMappingSty
le_=b}; |
17 goog.getMsg=function(a,b){var c=b||{},d;for(d in c){var e=(""+c[d]).replace(/\$/
g,"$$$$");a=a.replace(RegExp("\\{\\$"+d+"\\}","gi"),e)}return a};goog.getMsgWith
Fallback=function(a){return a};goog.exportSymbol=function(a,b,c){goog.exportPath
_(a,b,c)};goog.exportProperty=function(a,b,c){a[b]=c}; | 17 goog.getMsg=function(a,b){var c=b||{},d;for(d in c){var e=(""+c[d]).replace(/\$/
g,"$$$$");a=a.replace(new RegExp("\\{\\$"+d+"\\}","gi"),e)}return a};goog.getMsg
WithFallback=function(a){return a};goog.exportSymbol=function(a,b,c){goog.export
Path_(a,b,c)};goog.exportProperty=function(a,b,c){a[b]=c}; |
18 goog.inherits=function(a,b){function c(){}c.prototype=b.prototype;a.superClass_=
b.prototype;a.prototype=new c;a.prototype.constructor=a;a.base=function(a,c,f){v
ar g=Array.prototype.slice.call(arguments,2);return b.prototype[c].apply(a,g)}}; | 18 goog.inherits=function(a,b){function c(){}c.prototype=b.prototype;a.superClass_=
b.prototype;a.prototype=new c;a.prototype.constructor=a;a.base=function(a,c,f){v
ar g=Array.prototype.slice.call(arguments,2);return b.prototype[c].apply(a,g)}}; |
19 goog.base=function(a,b,c){var d=arguments.callee.caller;if(goog.STRICT_MODE_COMP
ATIBLE||goog.DEBUG&&!d)throw Error("arguments.caller not defined. goog.base() c
annot be used with strict mode code. See http://www.ecma-international.org/ecma-
262/5.1/#sec-C");if(d.superClass_)return d.superClass_.constructor.apply(a,Array
.prototype.slice.call(arguments,1));for(var e=Array.prototype.slice.call(argumen
ts,2),f=!1,g=a.constructor;g;g=g.superClass_&&g.superClass_.constructor)if(g.pro
totype[b]===d)f=!0;else if(f)return g.prototype[b].apply(a, | 19 goog.base=function(a,b,c){var d=arguments.callee.caller;if(goog.STRICT_MODE_COMP
ATIBLE||goog.DEBUG&&!d)throw Error("arguments.caller not defined. goog.base() c
annot be used with strict mode code. See http://www.ecma-international.org/ecma-
262/5.1/#sec-C");if(d.superClass_)return d.superClass_.constructor.apply(a,Array
.prototype.slice.call(arguments,1));for(var e=Array.prototype.slice.call(argumen
ts,2),f=!1,g=a.constructor;g;g=g.superClass_&&g.superClass_.constructor)if(g.pro
totype[b]===d)f=!0;else if(f)return g.prototype[b].apply(a, |
20 e);if(a[b]===d)return a.constructor.prototype[b].apply(a,e);throw Error("goog.ba
se called from a method of one name to a method of a different name");};goog.sco
pe=function(a){a.call(goog.global)};goog.MODIFY_FUNCTION_PROTOTYPES=!0; | 20 e);if(a[b]===d)return a.constructor.prototype[b].apply(a,e);throw Error("goog.ba
se called from a method of one name to a method of a different name");};goog.sco
pe=function(a){a.call(goog.global)};goog.MODIFY_FUNCTION_PROTOTYPES=!0; |
21 goog.MODIFY_FUNCTION_PROTOTYPES&&(Function.prototype.bind=Function.prototype.bin
d||function(a,b){if(1<arguments.length){var c=Array.prototype.slice.call(argumen
ts,1);c.unshift(this,a);return goog.bind.apply(null,c)}return goog.bind(this,a)}
,Function.prototype.partial=function(a){var b=Array.prototype.slice.call(argumen
ts);b.unshift(this,null);return goog.bind.apply(null,b)},Function.prototype.inhe
rits=function(a){goog.inherits(this,a)},Function.prototype.mixin=function(a){goo
g.mixin(this.prototype, | 21 goog.MODIFY_FUNCTION_PROTOTYPES&&(Function.prototype.bind=Function.prototype.bin
d||function(a,b){if(1<arguments.length){var c=Array.prototype.slice.call(argumen
ts,1);c.unshift(this,a);return goog.bind.apply(null,c)}return goog.bind(this,a)}
,Function.prototype.partial=function(a){var b=Array.prototype.slice.call(argumen
ts);b.unshift(this,null);return goog.bind.apply(null,b)},Function.prototype.inhe
rits=function(a){goog.inherits(this,a)},Function.prototype.mixin=function(a){goo
g.mixin(this.prototype, |
22 a)});var cvox={AbstractMsgs:function(){}};cvox.AbstractMsgs.prototype.getMsg=fun
ction(){};cvox.AbstractMsgs.prototype.getNumber=function(){};cvox.VERBOSITY_VERB
OSE=0;cvox.VERBOSITY_BRIEF=1;cvox.ChromeVox=function(){};cvox.ChromeVox.host=nul
l;cvox.ChromeVox.msgs=null;cvox.ChromeVox.isActive=!0;cvox.ChromeVox.version=nul
l;cvox.ChromeVox.earcons=null;cvox.ChromeVox.navigationManager=null;cvox.ChromeV
ox.serializer=null;cvox.ChromeVox.isStickyOn=!1;cvox.ChromeVox.keyPrefixOn=!1;cv
ox.ChromeVox.verbosity=cvox.VERBOSITY_VERBOSE;cvox.ChromeVox.typingEcho=0;cvox.C
hromeVox.keyEcho={};cvox.ChromeVox.position={};cvox.ChromeVox.isChromeOS=-1!=nav
igator.userAgent.indexOf("CrOS"); | 22 a)});var cvox={AbstractMsgs:function(){}};cvox.AbstractMsgs.prototype.getMsg=fun
ction(){};cvox.AbstractMsgs.prototype.getNumber=function(){};cvox.VERBOSITY_VERB
OSE=0;cvox.VERBOSITY_BRIEF=1;cvox.ChromeVox=function(){};cvox.ChromeVox.host=nul
l;cvox.ChromeVox.msgs=null;cvox.ChromeVox.isActive=!0;cvox.ChromeVox.version=nul
l;cvox.ChromeVox.earcons=null;cvox.ChromeVox.navigationManager=null;cvox.ChromeV
ox.serializer=null;cvox.ChromeVox.isStickyOn=!1;cvox.ChromeVox.keyPrefixOn=!1;cv
ox.ChromeVox.verbosity=cvox.VERBOSITY_VERBOSE;cvox.ChromeVox.typingEcho=0;cvox.C
hromeVox.keyEcho={};cvox.ChromeVox.position={};cvox.ChromeVox.isChromeOS=-1!=nav
igator.userAgent.indexOf("CrOS"); |
23 cvox.ChromeVox.isMac=-1!=navigator.platform.indexOf("Mac");cvox.ChromeVox.modKey
Str=cvox.ChromeVox.isChromeOS?"Shift+Search":cvox.ChromeVox.isMac?"Ctrl+Cmd":"Sh
ift+Alt";cvox.ChromeVox.sequenceSwitchKeyCodes=[];cvox.ChromeVox.visitedUrls={};
cvox.ChromeVox.markInUserCommand=function(){};cvox.ChromeVox.syncToNode=function
(){};cvox.ChromeVox.speakNode=function(){};cvox.ChromeVox.executeUserCommand=fun
ction(){};cvox.ChromeVox.entireDocumentIsHidden=!1; | 23 cvox.ChromeVox.isMac=-1!=navigator.platform.indexOf("Mac");cvox.ChromeVox.modKey
Str=cvox.ChromeVox.isChromeOS?"Shift+Search":cvox.ChromeVox.isMac?"Ctrl+Cmd":"Sh
ift+Alt";cvox.ChromeVox.sequenceSwitchKeyCodes=[];cvox.ChromeVox.visitedUrls={};
cvox.ChromeVox.markInUserCommand=function(){};cvox.ChromeVox.syncToNode=function
(){};cvox.ChromeVox.speakNode=function(){};cvox.ChromeVox.executeUserCommand=fun
ction(){};cvox.ChromeVox.entireDocumentIsHidden=!1; |
24 cvox.ChromeVox.storeOn=function(a){a.isStickyOn=cvox.ChromeVox.isStickyOn;cvox.C
hromeVox.navigationManager.storeOn(a)};cvox.ChromeVox.readFrom=function(a){cvox.
ChromeVox.isStickyOn=a.isStickyOn;cvox.ChromeVox.navigationManager.readFrom(a)};
cvox.Cursor=function(a,b,c){this.node=a;this.index=b;this.text=c};cvox.Cursor.pr
ototype.clone=function(){return new cvox.Cursor(this.node,this.index,this.text)}
;cvox.Cursor.prototype.copyFrom=function(a){this.node=a.node;this.index=a.index;
this.text=a.text};cvox.Cursor.prototype.equals=function(a){return this.node==a.n
ode&&this.index==a.index&&this.text==a.text};goog.debug={};goog.debug.Error=func
tion(a){if(Error.captureStackTrace)Error.captureStackTrace(this,goog.debug.Error
);else{var b=Error().stack;b&&(this.stack=b)}a&&(this.message=String(a))};goog.i
nherits(goog.debug.Error,Error);goog.debug.Error.prototype.name="CustomError";go
og.dom={};goog.dom.NodeType={ELEMENT:1,ATTRIBUTE:2,TEXT:3,CDATA_SECTION:4,ENTITY
_REFERENCE:5,ENTITY:6,PROCESSING_INSTRUCTION:7,COMMENT:8,DOCUMENT:9,DOCUMENT_TYP
E:10,DOCUMENT_FRAGMENT:11,NOTATION:12};goog.string={};goog.string.Unicode={NBSP:
"\u00a0"};goog.string.startsWith=function(a,b){return 0==a.lastIndexOf(b,0)};goo
g.string.endsWith=function(a,b){var c=a.length-b.length;return 0<=c&&a.indexOf(b
,c)==c};goog.string.caseInsensitiveStartsWith=function(a,b){return 0==goog.strin
g.caseInsensitiveCompare(b,a.substr(0,b.length))};goog.string.caseInsensitiveEnd
sWith=function(a,b){return 0==goog.string.caseInsensitiveCompare(b,a.substr(a.le
ngth-b.length,b.length))}; | 24 cvox.ChromeVox.storeOn=function(a){a.isStickyOn=cvox.ChromeVox.isStickyOn;cvox.C
hromeVox.navigationManager.storeOn(a)};cvox.ChromeVox.readFrom=function(a){cvox.
ChromeVox.isStickyOn=a.isStickyOn;cvox.ChromeVox.navigationManager.readFrom(a)};
cvox.Cursor=function(a,b,c){this.node=a;this.index=b;this.text=c};cvox.Cursor.pr
ototype.clone=function(){return new cvox.Cursor(this.node,this.index,this.text)}
;cvox.Cursor.prototype.copyFrom=function(a){this.node=a.node;this.index=a.index;
this.text=a.text};cvox.Cursor.prototype.equals=function(a){return this.node==a.n
ode&&this.index==a.index&&this.text==a.text};goog.debug={};goog.debug.Error=func
tion(a){if(Error.captureStackTrace)Error.captureStackTrace(this,goog.debug.Error
);else{var b=Error().stack;b&&(this.stack=b)}a&&(this.message=String(a))};goog.i
nherits(goog.debug.Error,Error);goog.debug.Error.prototype.name="CustomError";go
og.dom={};goog.dom.NodeType={ELEMENT:1,ATTRIBUTE:2,TEXT:3,CDATA_SECTION:4,ENTITY
_REFERENCE:5,ENTITY:6,PROCESSING_INSTRUCTION:7,COMMENT:8,DOCUMENT:9,DOCUMENT_TYP
E:10,DOCUMENT_FRAGMENT:11,NOTATION:12};goog.string={};goog.string.Unicode={NBSP:
"\u00a0"};goog.string.startsWith=function(a,b){return 0==a.lastIndexOf(b,0)};goo
g.string.endsWith=function(a,b){var c=a.length-b.length;return 0<=c&&a.indexOf(b
,c)==c};goog.string.caseInsensitiveStartsWith=function(a,b){return 0==goog.strin
g.caseInsensitiveCompare(b,a.substr(0,b.length))};goog.string.caseInsensitiveEnd
sWith=function(a,b){return 0==goog.string.caseInsensitiveCompare(b,a.substr(a.le
ngth-b.length,b.length))}; |
25 goog.string.caseInsensitiveEquals=function(a,b){return a.toLowerCase()==b.toLowe
rCase()};goog.string.subs=function(a,b){for(var c=a.split("%s"),d="",e=Array.pro
totype.slice.call(arguments,1);e.length&&1<c.length;)d+=c.shift()+e.shift();retu
rn d+c.join("%s")};goog.string.collapseWhitespace=function(a){return a.replace(/
[\s\xa0]+/g," ").replace(/^\s+|\s+$/g,"")};goog.string.isEmpty=function(a){retur
n/^[\s\xa0]*$/.test(a)};goog.string.isEmptySafe=function(a){return goog.string.i
sEmpty(goog.string.makeSafe(a))}; | 25 goog.string.caseInsensitiveEquals=function(a,b){return a.toLowerCase()==b.toLowe
rCase()};goog.string.subs=function(a,b){for(var c=a.split("%s"),d="",e=Array.pro
totype.slice.call(arguments,1);e.length&&1<c.length;)d+=c.shift()+e.shift();retu
rn d+c.join("%s")};goog.string.collapseWhitespace=function(a){return a.replace(/
[\s\xa0]+/g," ").replace(/^\s+|\s+$/g,"")};goog.string.isEmpty=function(a){retur
n/^[\s\xa0]*$/.test(a)};goog.string.isEmptySafe=function(a){return goog.string.i
sEmpty(goog.string.makeSafe(a))}; |
26 goog.string.isBreakingWhitespace=function(a){return!/[^\t\n\r ]/.test(a)};goog.s
tring.isAlpha=function(a){return!/[^a-zA-Z]/.test(a)};goog.string.isNumeric=func
tion(a){return!/[^0-9]/.test(a)};goog.string.isAlphaNumeric=function(a){return!/
[^a-zA-Z0-9]/.test(a)};goog.string.isSpace=function(a){return" "==a};goog.string
.isUnicodeChar=function(a){return 1==a.length&&" "<=a&&"~">=a||"\u0080"<=a&&"\uf
ffd">=a};goog.string.stripNewlines=function(a){return a.replace(/(\r\n|\r|\n)+/g
," ")}; | 26 goog.string.isBreakingWhitespace=function(a){return!/[^\t\n\r ]/.test(a)};goog.s
tring.isAlpha=function(a){return!/[^a-zA-Z]/.test(a)};goog.string.isNumeric=func
tion(a){return!/[^0-9]/.test(a)};goog.string.isAlphaNumeric=function(a){return!/
[^a-zA-Z0-9]/.test(a)};goog.string.isSpace=function(a){return" "==a};goog.string
.isUnicodeChar=function(a){return 1==a.length&&" "<=a&&"~">=a||"\u0080"<=a&&"\uf
ffd">=a};goog.string.stripNewlines=function(a){return a.replace(/(\r\n|\r|\n)+/g
," ")}; |
27 goog.string.canonicalizeNewlines=function(a){return a.replace(/(\r\n|\r|\n)/g,"\
n")};goog.string.normalizeWhitespace=function(a){return a.replace(/\xa0|\s/g," "
)};goog.string.normalizeSpaces=function(a){return a.replace(/\xa0|[ \t]+/g," ")}
;goog.string.collapseBreakingSpaces=function(a){return a.replace(/[\t\r\n ]+/g,"
").replace(/^[\t\r\n ]+|[\t\r\n ]+$/g,"")};goog.string.trim=function(a){return
a.replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")}; | 27 goog.string.canonicalizeNewlines=function(a){return a.replace(/(\r\n|\r|\n)/g,"\
n")};goog.string.normalizeWhitespace=function(a){return a.replace(/\xa0|\s/g," "
)};goog.string.normalizeSpaces=function(a){return a.replace(/\xa0|[ \t]+/g," ")}
;goog.string.collapseBreakingSpaces=function(a){return a.replace(/[\t\r\n ]+/g,"
").replace(/^[\t\r\n ]+|[\t\r\n ]+$/g,"")};goog.string.trim=function(a){return
a.replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")}; |
28 goog.string.trimLeft=function(a){return a.replace(/^[\s\xa0]+/,"")};goog.string.
trimRight=function(a){return a.replace(/[\s\xa0]+$/,"")};goog.string.caseInsensi
tiveCompare=function(a,b){var c=String(a).toLowerCase(),d=String(b).toLowerCase(
);return c<d?-1:c==d?0:1};goog.string.numerateCompareRegExp_=/(\.\d+)|(\d+)|(\D+
)/g; | 28 goog.string.trimLeft=function(a){return a.replace(/^[\s\xa0]+/,"")};goog.string.
trimRight=function(a){return a.replace(/[\s\xa0]+$/,"")};goog.string.caseInsensi
tiveCompare=function(a,b){var c=String(a).toLowerCase(),d=String(b).toLowerCase(
);return c<d?-1:c==d?0:1};goog.string.numerateCompareRegExp_=/(\.\d+)|(\d+)|(\D+
)/g; |
29 goog.string.numerateCompare=function(a,b){if(a==b)return 0;if(!a)return-1;if(!b)
return 1;for(var c=a.toLowerCase().match(goog.string.numerateCompareRegExp_),d=b
.toLowerCase().match(goog.string.numerateCompareRegExp_),e=Math.min(c.length,d.l
ength),f=0;f<e;f++){var g=c[f],h=d[f];if(g!=h)return c=parseInt(g,10),!isNaN(c)&
&(d=parseInt(h,10),!isNaN(d)&&c-d)?c-d:g<h?-1:1}return c.length!=d.length?c.leng
th-d.length:a<b?-1:1};goog.string.urlEncode=function(a){return encodeURIComponen
t(String(a))}; | 29 goog.string.numerateCompare=function(a,b){if(a==b)return 0;if(!a)return-1;if(!b)
return 1;for(var c=a.toLowerCase().match(goog.string.numerateCompareRegExp_),d=b
.toLowerCase().match(goog.string.numerateCompareRegExp_),e=Math.min(c.length,d.l
ength),f=0;f<e;f++){var g=c[f],h=d[f];if(g!=h)return c=parseInt(g,10),!isNaN(c)&
&(d=parseInt(h,10),!isNaN(d)&&c-d)?c-d:g<h?-1:1}return c.length!=d.length?c.leng
th-d.length:a<b?-1:1};goog.string.urlEncode=function(a){return encodeURIComponen
t(String(a))}; |
30 goog.string.urlDecode=function(a){return decodeURIComponent(a.replace(/\+/g," ")
)};goog.string.newLineToBr=function(a,b){return a.replace(/(\r\n|\r|\n)/g,b?"<br
/>":"<br>")}; | 30 goog.string.urlDecode=function(a){return decodeURIComponent(a.replace(/\+/g," ")
)};goog.string.newLineToBr=function(a,b){return a.replace(/(\r\n|\r|\n)/g,b?"<br
/>":"<br>")}; |
31 goog.string.htmlEscape=function(a,b){if(b)return a.replace(goog.string.amperRe_,
"&").replace(goog.string.ltRe_,"<").replace(goog.string.gtRe_,">").rep
lace(goog.string.quotRe_,""").replace(goog.string.singleQuoteRe_,"'");i
f(!goog.string.allRe_.test(a))return a;-1!=a.indexOf("&")&&(a=a.replace(goog.str
ing.amperRe_,"&"));-1!=a.indexOf("<")&&(a=a.replace(goog.string.ltRe_,"<"
));-1!=a.indexOf(">")&&(a=a.replace(goog.string.gtRe_,">"));-1!=a.indexOf('"'
)&&(a=a.replace(goog.string.quotRe_, | 31 goog.string.htmlEscape=function(a,b){if(b)return a.replace(goog.string.amperRe_,
"&").replace(goog.string.ltRe_,"<").replace(goog.string.gtRe_,">").rep
lace(goog.string.quotRe_,""").replace(goog.string.singleQuoteRe_,"'");i
f(!goog.string.allRe_.test(a))return a;-1!=a.indexOf("&")&&(a=a.replace(goog.str
ing.amperRe_,"&"));-1!=a.indexOf("<")&&(a=a.replace(goog.string.ltRe_,"<"
));-1!=a.indexOf(">")&&(a=a.replace(goog.string.gtRe_,">"));-1!=a.indexOf('"'
)&&(a=a.replace(goog.string.quotRe_, |
32 """));-1!=a.indexOf("'")&&(a=a.replace(goog.string.singleQuoteRe_,"'"))
;return a};goog.string.amperRe_=/&/g;goog.string.ltRe_=/</g;goog.string.gtRe_=/>
/g;goog.string.quotRe_=/"/g;goog.string.singleQuoteRe_=/'/g;goog.string.allRe_=/
[&<>"']/;goog.string.unescapeEntities=function(a){return goog.string.contains(a,
"&")?"document"in goog.global?goog.string.unescapeEntitiesUsingDom_(a):goog.stri
ng.unescapePureXmlEntities_(a):a}; | 32 """));-1!=a.indexOf("'")&&(a=a.replace(goog.string.singleQuoteRe_,"'"))
;return a};goog.string.amperRe_=/&/g;goog.string.ltRe_=/</g;goog.string.gtRe_=/>
/g;goog.string.quotRe_=/"/g;goog.string.singleQuoteRe_=/'/g;goog.string.allRe_=/
[&<>"']/;goog.string.unescapeEntities=function(a){return goog.string.contains(a,
"&")?"document"in goog.global?goog.string.unescapeEntitiesUsingDom_(a):goog.stri
ng.unescapePureXmlEntities_(a):a}; |
33 goog.string.unescapeEntitiesWithDocument=function(a,b){return goog.string.contai
ns(a,"&")?goog.string.unescapeEntitiesUsingDom_(a,b):a}; | 33 goog.string.unescapeEntitiesWithDocument=function(a,b){return goog.string.contai
ns(a,"&")?goog.string.unescapeEntitiesUsingDom_(a,b):a}; |
34 goog.string.unescapeEntitiesUsingDom_=function(a,b){var c={"&":"&","<":"<
",">":">",""":'"'},d;d=b?b.createElement("div"):document.createElement("
div");return a.replace(goog.string.HTML_ENTITY_PATTERN_,function(a,b){var g=c[a]
;if(g)return g;if("#"==b.charAt(0)){var h=Number("0"+b.substr(1));isNaN(h)||(g=S
tring.fromCharCode(h))}g||(d.innerHTML=a+" ",g=d.firstChild.nodeValue.slice(0,-1
));return c[a]=g})}; | 34 goog.string.unescapeEntitiesUsingDom_=function(a,b){var c={"&":"&","<":"<
",">":">",""":'"'},d;d=b?b.createElement("div"):document.createElement("
div");return a.replace(goog.string.HTML_ENTITY_PATTERN_,function(a,b){var g=c[a]
;if(g)return g;if("#"==b.charAt(0)){var h=Number("0"+b.substr(1));isNaN(h)||(g=S
tring.fromCharCode(h))}g||(d.innerHTML=a+" ",g=d.firstChild.nodeValue.slice(0,-1
));return c[a]=g})}; |
35 goog.string.unescapePureXmlEntities_=function(a){return a.replace(/&([^;]+);/g,f
unction(a,c){switch(c){case "amp":return"&";case "lt":return"<";case "gt":return
">";case "quot":return'"';default:if("#"==c.charAt(0)){var d=Number("0"+c.substr
(1));if(!isNaN(d))return String.fromCharCode(d)}return a}})};goog.string.HTML_EN
TITY_PATTERN_=/&([^;\s<&]+);?/g;goog.string.whitespaceEscape=function(a,b){retur
n goog.string.newLineToBr(a.replace(/ /g,"  "),b)}; | 35 goog.string.unescapePureXmlEntities_=function(a){return a.replace(/&([^;]+);/g,f
unction(a,c){switch(c){case "amp":return"&";case "lt":return"<";case "gt":return
">";case "quot":return'"';default:if("#"==c.charAt(0)){var d=Number("0"+c.substr
(1));if(!isNaN(d))return String.fromCharCode(d)}return a}})};goog.string.HTML_EN
TITY_PATTERN_=/&([^;\s<&]+);?/g;goog.string.whitespaceEscape=function(a,b){retur
n goog.string.newLineToBr(a.replace(/ /g,"  "),b)}; |
36 goog.string.stripQuotes=function(a,b){for(var c=b.length,d=0;d<c;d++){var e=1==c
?b:b.charAt(d);if(a.charAt(0)==e&&a.charAt(a.length-1)==e)return a.substring(1,a
.length-1)}return a};goog.string.truncate=function(a,b,c){c&&(a=goog.string.unes
capeEntities(a));a.length>b&&(a=a.substring(0,b-3)+"...");c&&(a=goog.string.html
Escape(a));return a}; | 36 goog.string.stripQuotes=function(a,b){for(var c=b.length,d=0;d<c;d++){var e=1==c
?b:b.charAt(d);if(a.charAt(0)==e&&a.charAt(a.length-1)==e)return a.substring(1,a
.length-1)}return a};goog.string.truncate=function(a,b,c){c&&(a=goog.string.unes
capeEntities(a));a.length>b&&(a=a.substring(0,b-3)+"...");c&&(a=goog.string.html
Escape(a));return a}; |
37 goog.string.truncateMiddle=function(a,b,c,d){c&&(a=goog.string.unescapeEntities(
a));if(d&&a.length>b){d>b&&(d=b);var e=a.length-d;b-=d;a=a.substring(0,b)+"..."+
a.substring(e)}else a.length>b&&(e=Math.floor(b/2),d=a.length-e,e+=b%2,a=a.subst
ring(0,e)+"..."+a.substring(d));c&&(a=goog.string.htmlEscape(a));return a};goog.
string.specialEscapeChars_={"\x00":"\\0","\b":"\\b","\f":"\\f","\n":"\\n","\r":"
\\r","\t":"\\t","\x0B":"\\x0B",'"':'\\"',"\\":"\\\\"};goog.string.jsEscapeCache_
={"'":"\\'"}; | 37 goog.string.truncateMiddle=function(a,b,c,d){c&&(a=goog.string.unescapeEntities(
a));if(d&&a.length>b){d>b&&(d=b);var e=a.length-d;b-=d;a=a.substring(0,b)+"..."+
a.substring(e)}else a.length>b&&(e=Math.floor(b/2),d=a.length-e,e+=b%2,a=a.subst
ring(0,e)+"..."+a.substring(d));c&&(a=goog.string.htmlEscape(a));return a};goog.
string.specialEscapeChars_={"\x00":"\\0","\b":"\\b","\f":"\\f","\n":"\\n","\r":"
\\r","\t":"\\t","\x0B":"\\x0B",'"':'\\"',"\\":"\\\\"};goog.string.jsEscapeCache_
={"'":"\\'"}; |
38 goog.string.quote=function(a){a=String(a);if(a.quote)return a.quote();for(var b=
['"'],c=0;c<a.length;c++){var d=a.charAt(c),e=d.charCodeAt(0);b[c+1]=goog.string
.specialEscapeChars_[d]||(31<e&&127>e?d:goog.string.escapeChar(d))}b.push('"');r
eturn b.join("")};goog.string.escapeString=function(a){for(var b=[],c=0;c<a.leng
th;c++)b[c]=goog.string.escapeChar(a.charAt(c));return b.join("")}; | 38 goog.string.quote=function(a){a=String(a);if(a.quote)return a.quote();for(var b=
['"'],c=0;c<a.length;c++){var d=a.charAt(c),e=d.charCodeAt(0);b[c+1]=goog.string
.specialEscapeChars_[d]||(31<e&&127>e?d:goog.string.escapeChar(d))}b.push('"');r
eturn b.join("")};goog.string.escapeString=function(a){for(var b=[],c=0;c<a.leng
th;c++)b[c]=goog.string.escapeChar(a.charAt(c));return b.join("")}; |
39 goog.string.escapeChar=function(a){if(a in goog.string.jsEscapeCache_)return goo
g.string.jsEscapeCache_[a];if(a in goog.string.specialEscapeChars_)return goog.s
tring.jsEscapeCache_[a]=goog.string.specialEscapeChars_[a];var b=a,c=a.charCodeA
t(0);if(31<c&&127>c)b=a;else{if(256>c){if(b="\\x",16>c||256<c)b+="0"}else b="\\u
",4096>c&&(b+="0");b+=c.toString(16).toUpperCase()}return goog.string.jsEscapeCa
che_[a]=b};goog.string.toMap=function(a){for(var b={},c=0;c<a.length;c++)b[a.cha
rAt(c)]=!0;return b}; | 39 goog.string.escapeChar=function(a){if(a in goog.string.jsEscapeCache_)return goo
g.string.jsEscapeCache_[a];if(a in goog.string.specialEscapeChars_)return goog.s
tring.jsEscapeCache_[a]=goog.string.specialEscapeChars_[a];var b=a,c=a.charCodeA
t(0);if(31<c&&127>c)b=a;else{if(256>c){if(b="\\x",16>c||256<c)b+="0"}else b="\\u
",4096>c&&(b+="0");b+=c.toString(16).toUpperCase()}return goog.string.jsEscapeCa
che_[a]=b};goog.string.toMap=function(a){for(var b={},c=0;c<a.length;c++)b[a.cha
rAt(c)]=!0;return b}; |
40 goog.string.contains=function(a,b){return-1!=a.indexOf(b)};goog.string.caseInsen
sitiveContains=function(a,b){return goog.string.contains(a.toLowerCase(),b.toLow
erCase())};goog.string.countOf=function(a,b){return a&&b?a.split(b).length-1:0};
goog.string.removeAt=function(a,b,c){var d=a;0<=b&&b<a.length&&0<c&&(d=a.substr(
0,b)+a.substr(b+c,a.length-b-c));return d};goog.string.remove=function(a,b){var
c=RegExp(goog.string.regExpEscape(b),"");return a.replace(c,"")}; | 40 goog.string.contains=function(a,b){return-1!=a.indexOf(b)};goog.string.caseInsen
sitiveContains=function(a,b){return goog.string.contains(a.toLowerCase(),b.toLow
erCase())};goog.string.countOf=function(a,b){return a&&b?a.split(b).length-1:0};
goog.string.removeAt=function(a,b,c){var d=a;0<=b&&b<a.length&&0<c&&(d=a.substr(
0,b)+a.substr(b+c,a.length-b-c));return d};goog.string.remove=function(a,b){var
c=new RegExp(goog.string.regExpEscape(b),"");return a.replace(c,"")}; |
41 goog.string.removeAll=function(a,b){var c=RegExp(goog.string.regExpEscape(b),"g"
);return a.replace(c,"")};goog.string.regExpEscape=function(a){return String(a).
replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};goog.s
tring.repeat=function(a,b){return Array(b+1).join(a)};goog.string.padNumber=func
tion(a,b,c){a=goog.isDef(c)?a.toFixed(c):String(a);c=a.indexOf(".");-1==c&&(c=a.
length);return goog.string.repeat("0",Math.max(0,b-c))+a}; | 41 goog.string.removeAll=function(a,b){var c=new RegExp(goog.string.regExpEscape(b)
,"g");return a.replace(c,"")};goog.string.regExpEscape=function(a){return String
(a).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};go
og.string.repeat=function(a,b){return Array(b+1).join(a)};goog.string.padNumber=
function(a,b,c){a=goog.isDef(c)?a.toFixed(c):String(a);c=a.indexOf(".");-1==c&&(
c=a.length);return goog.string.repeat("0",Math.max(0,b-c))+a}; |
42 goog.string.makeSafe=function(a){return null==a?"":String(a)};goog.string.buildS
tring=function(a){return Array.prototype.join.call(arguments,"")};goog.string.ge
tRandomString=function(){var a=2147483648;return Math.floor(Math.random()*a).toS
tring(36)+Math.abs(Math.floor(Math.random()*a)^goog.now()).toString(36)}; | 42 goog.string.makeSafe=function(a){return null==a?"":String(a)};goog.string.buildS
tring=function(a){return Array.prototype.join.call(arguments,"")};goog.string.ge
tRandomString=function(){var a=2147483648;return Math.floor(Math.random()*a).toS
tring(36)+Math.abs(Math.floor(Math.random()*a)^goog.now()).toString(36)}; |
43 goog.string.compareVersions=function(a,b){for(var c=0,d=goog.string.trim(String(
a)).split("."),e=goog.string.trim(String(b)).split("."),f=Math.max(d.length,e.le
ngth),g=0;0==c&&g<f;g++){var h=d[g]||"",k=e[g]||"",l=/(\d*)(\D*)/g,n=/(\d*)(\D*)
/g;do{var p=l.exec(h)||["","",""],q=n.exec(k)||["","",""];if(0==p[0].length&&0==
q[0].length)break;var c=0==p[1].length?0:parseInt(p[1],10),m=0==q[1].length?0:pa
rseInt(q[1],10),c=goog.string.compareElements_(c,m)||goog.string.compareElements
_(0==p[2].length,0==q[2].length)|| | 43 goog.string.compareVersions=function(a,b){for(var c=0,d=goog.string.trim(String(
a)).split("."),e=goog.string.trim(String(b)).split("."),f=Math.max(d.length,e.le
ngth),g=0;0==c&&g<f;g++){var h=d[g]||"",k=e[g]||"",l=/(\d*)(\D*)/g,n=/(\d*)(\D*)
/g;do{var p=l.exec(h)||["","",""],q=n.exec(k)||["","",""];if(0==p[0].length&&0==
q[0].length)break;var c=0==p[1].length?0:parseInt(p[1],10),m=0==q[1].length?0:pa
rseInt(q[1],10),c=goog.string.compareElements_(c,m)||goog.string.compareElements
_(0==p[2].length,0==q[2].length)|| |
44 goog.string.compareElements_(p[2],q[2])}while(0==c)}return c};goog.string.compar
eElements_=function(a,b){return a<b?-1:a>b?1:0};goog.string.HASHCODE_MAX_=429496
7296;goog.string.hashCode=function(a){for(var b=0,c=0;c<a.length;++c)b=31*b+a.ch
arCodeAt(c),b%=goog.string.HASHCODE_MAX_;return b};goog.string.uniqueStringCount
er_=2147483648*Math.random()|0;goog.string.createUniqueString=function(){return"
goog_"+goog.string.uniqueStringCounter_++}; | 44 goog.string.compareElements_(p[2],q[2])}while(0==c)}return c};goog.string.compar
eElements_=function(a,b){return a<b?-1:a>b?1:0};goog.string.HASHCODE_MAX_=429496
7296;goog.string.hashCode=function(a){for(var b=0,c=0;c<a.length;++c)b=31*b+a.ch
arCodeAt(c),b%=goog.string.HASHCODE_MAX_;return b};goog.string.uniqueStringCount
er_=2147483648*Math.random()|0;goog.string.createUniqueString=function(){return"
goog_"+goog.string.uniqueStringCounter_++}; |
45 goog.string.toNumber=function(a){var b=Number(a);return 0==b&&goog.string.isEmpt
y(a)?NaN:b};goog.string.isLowerCamelCase=function(a){return/^[a-z]+([A-Z][a-z]*)
*$/.test(a)};goog.string.isUpperCamelCase=function(a){return/^([A-Z][a-z]*)+$/.t
est(a)};goog.string.toCamelCase=function(a){return String(a).replace(/\-([a-z])/
g,function(a,c){return c.toUpperCase()})};goog.string.toSelectorCase=function(a)
{return String(a).replace(/([A-Z])/g,"-$1").toLowerCase()}; | 45 goog.string.toNumber=function(a){var b=Number(a);return 0==b&&goog.string.isEmpt
y(a)?NaN:b};goog.string.isLowerCamelCase=function(a){return/^[a-z]+([A-Z][a-z]*)
*$/.test(a)};goog.string.isUpperCamelCase=function(a){return/^([A-Z][a-z]*)+$/.t
est(a)};goog.string.toCamelCase=function(a){return String(a).replace(/\-([a-z])/
g,function(a,c){return c.toUpperCase()})};goog.string.toSelectorCase=function(a)
{return String(a).replace(/([A-Z])/g,"-$1").toLowerCase()}; |
46 goog.string.toTitleCase=function(a,b){var c=goog.isString(b)?goog.string.regExpE
scape(b):"\\s",c=c?"|["+c+"]+":"",c=RegExp("(^"+c+")([a-z])","g");return a.repla
ce(c,function(a,b,c){return b+c.toUpperCase()})};goog.string.parseInt=function(a
){isFinite(a)&&(a=String(a));return goog.isString(a)?/^\s*-?0x/i.test(a)?parseIn
t(a,16):parseInt(a,10):NaN};goog.string.splitLimit=function(a,b,c){a=a.split(b);
for(var d=[];0<c&&a.length;)d.push(a.shift()),c--;a.length&&d.push(a.join(b));re
turn d};goog.asserts={};goog.asserts.ENABLE_ASSERTS=goog.DEBUG;goog.asserts.Asse
rtionError=function(a,b){b.unshift(a);goog.debug.Error.call(this,goog.string.sub
s.apply(null,b));b.shift()};goog.inherits(goog.asserts.AssertionError,goog.debug
.Error);goog.asserts.AssertionError.prototype.name="AssertionError";goog.asserts
.doAssertFailure_=function(a,b,c,d){var e="Assertion failed";if(c)var e=e+(": "+
c),f=d;else a&&(e+=": "+a,f=b);throw new goog.asserts.AssertionError(""+e,f||[])
;}; | 46 goog.string.toTitleCase=function(a,b){var c=goog.isString(b)?goog.string.regExpE
scape(b):"\\s",c=c?"|["+c+"]+":"",c=new RegExp("(^"+c+")([a-z])","g");return a.r
eplace(c,function(a,b,c){return b+c.toUpperCase()})};goog.string.parseInt=functi
on(a){isFinite(a)&&(a=String(a));return goog.isString(a)?/^\s*-?0x/i.test(a)?par
seInt(a,16):parseInt(a,10):NaN};goog.string.splitLimit=function(a,b,c){a=a.split
(b);for(var d=[];0<c&&a.length;)d.push(a.shift()),c--;a.length&&d.push(a.join(b)
);return d};goog.asserts={};goog.asserts.ENABLE_ASSERTS=goog.DEBUG;goog.asserts.
AssertionError=function(a,b){b.unshift(a);goog.debug.Error.call(this,goog.string
.subs.apply(null,b));b.shift()};goog.inherits(goog.asserts.AssertionError,goog.d
ebug.Error);goog.asserts.AssertionError.prototype.name="AssertionError";goog.ass
erts.doAssertFailure_=function(a,b,c,d){var e="Assertion failed";if(c)var e=e+("
: "+c),f=d;else a&&(e+=": "+a,f=b);throw new goog.asserts.AssertionError(""+e,f|
|[]);}; |
47 goog.asserts.assert=function(a,b,c){goog.asserts.ENABLE_ASSERTS&&!a&&goog.assert
s.doAssertFailure_("",null,b,Array.prototype.slice.call(arguments,2));return a};
goog.asserts.fail=function(a,b){if(goog.asserts.ENABLE_ASSERTS)throw new goog.as
serts.AssertionError("Failure"+(a?": "+a:""),Array.prototype.slice.call(argument
s,1));}; | 47 goog.asserts.assert=function(a,b,c){goog.asserts.ENABLE_ASSERTS&&!a&&goog.assert
s.doAssertFailure_("",null,b,Array.prototype.slice.call(arguments,2));return a};
goog.asserts.fail=function(a,b){if(goog.asserts.ENABLE_ASSERTS)throw new goog.as
serts.AssertionError("Failure"+(a?": "+a:""),Array.prototype.slice.call(argument
s,1));}; |
48 goog.asserts.assertNumber=function(a,b,c){goog.asserts.ENABLE_ASSERTS&&!goog.isN
umber(a)&&goog.asserts.doAssertFailure_("Expected number but got %s: %s.",[goog.
typeOf(a),a],b,Array.prototype.slice.call(arguments,2));return a};goog.asserts.a
ssertString=function(a,b,c){goog.asserts.ENABLE_ASSERTS&&!goog.isString(a)&&goog
.asserts.doAssertFailure_("Expected string but got %s: %s.",[goog.typeOf(a),a],b
,Array.prototype.slice.call(arguments,2));return a}; | 48 goog.asserts.assertNumber=function(a,b,c){goog.asserts.ENABLE_ASSERTS&&!goog.isN
umber(a)&&goog.asserts.doAssertFailure_("Expected number but got %s: %s.",[goog.
typeOf(a),a],b,Array.prototype.slice.call(arguments,2));return a};goog.asserts.a
ssertString=function(a,b,c){goog.asserts.ENABLE_ASSERTS&&!goog.isString(a)&&goog
.asserts.doAssertFailure_("Expected string but got %s: %s.",[goog.typeOf(a),a],b
,Array.prototype.slice.call(arguments,2));return a}; |
49 goog.asserts.assertFunction=function(a,b,c){goog.asserts.ENABLE_ASSERTS&&!goog.i
sFunction(a)&&goog.asserts.doAssertFailure_("Expected function but got %s: %s.",
[goog.typeOf(a),a],b,Array.prototype.slice.call(arguments,2));return a};goog.ass
erts.assertObject=function(a,b,c){goog.asserts.ENABLE_ASSERTS&&!goog.isObject(a)
&&goog.asserts.doAssertFailure_("Expected object but got %s: %s.",[goog.typeOf(a
),a],b,Array.prototype.slice.call(arguments,2));return a}; | 49 goog.asserts.assertFunction=function(a,b,c){goog.asserts.ENABLE_ASSERTS&&!goog.i
sFunction(a)&&goog.asserts.doAssertFailure_("Expected function but got %s: %s.",
[goog.typeOf(a),a],b,Array.prototype.slice.call(arguments,2));return a};goog.ass
erts.assertObject=function(a,b,c){goog.asserts.ENABLE_ASSERTS&&!goog.isObject(a)
&&goog.asserts.doAssertFailure_("Expected object but got %s: %s.",[goog.typeOf(a
),a],b,Array.prototype.slice.call(arguments,2));return a}; |
50 goog.asserts.assertArray=function(a,b,c){goog.asserts.ENABLE_ASSERTS&&!goog.isAr
ray(a)&&goog.asserts.doAssertFailure_("Expected array but got %s: %s.",[goog.typ
eOf(a),a],b,Array.prototype.slice.call(arguments,2));return a};goog.asserts.asse
rtBoolean=function(a,b,c){goog.asserts.ENABLE_ASSERTS&&!goog.isBoolean(a)&&goog.
asserts.doAssertFailure_("Expected boolean but got %s: %s.",[goog.typeOf(a),a],b
,Array.prototype.slice.call(arguments,2));return a}; | 50 goog.asserts.assertArray=function(a,b,c){goog.asserts.ENABLE_ASSERTS&&!goog.isAr
ray(a)&&goog.asserts.doAssertFailure_("Expected array but got %s: %s.",[goog.typ
eOf(a),a],b,Array.prototype.slice.call(arguments,2));return a};goog.asserts.asse
rtBoolean=function(a,b,c){goog.asserts.ENABLE_ASSERTS&&!goog.isBoolean(a)&&goog.
asserts.doAssertFailure_("Expected boolean but got %s: %s.",[goog.typeOf(a),a],b
,Array.prototype.slice.call(arguments,2));return a}; |
51 goog.asserts.assertElement=function(a,b,c){!goog.asserts.ENABLE_ASSERTS||goog.is
Object(a)&&a.nodeType==goog.dom.NodeType.ELEMENT||goog.asserts.doAssertFailure_(
"Expected Element but got %s: %s.",[goog.typeOf(a),a],b,Array.prototype.slice.ca
ll(arguments,2));return a};goog.asserts.assertInstanceof=function(a,b,c,d){!goog
.asserts.ENABLE_ASSERTS||a instanceof b||goog.asserts.doAssertFailure_("instance
of check failed.",null,c,Array.prototype.slice.call(arguments,3));return a}; | 51 goog.asserts.assertElement=function(a,b,c){!goog.asserts.ENABLE_ASSERTS||goog.is
Object(a)&&a.nodeType==goog.dom.NodeType.ELEMENT||goog.asserts.doAssertFailure_(
"Expected Element but got %s: %s.",[goog.typeOf(a),a],b,Array.prototype.slice.ca
ll(arguments,2));return a};goog.asserts.assertInstanceof=function(a,b,c,d){!goog
.asserts.ENABLE_ASSERTS||a instanceof b||goog.asserts.doAssertFailure_("instance
of check failed.",null,c,Array.prototype.slice.call(arguments,3));return a}; |
52 goog.asserts.assertObjectPrototypeIsIntact=function(){for(var a in Object.protot
ype)goog.asserts.fail(a+" should not be enumerable in Object.prototype.")};goog.
array={};goog.NATIVE_ARRAY_PROTOTYPES=goog.TRUSTED_SITE;goog.array.ASSUME_NATIVE
_FUNCTIONS=!1;goog.array.peek=function(a){return a[a.length-1]};goog.array.ARRAY
_PROTOTYPE_=Array.prototype; | 52 goog.asserts.assertObjectPrototypeIsIntact=function(){for(var a in Object.protot
ype)goog.asserts.fail(a+" should not be enumerable in Object.prototype.")};goog.
array={};goog.NATIVE_ARRAY_PROTOTYPES=goog.TRUSTED_SITE;goog.array.ASSUME_NATIVE
_FUNCTIONS=!1;goog.array.peek=function(a){return a[a.length-1]};goog.array.ARRAY
_PROTOTYPE_=Array.prototype; |
53 goog.array.indexOf=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCT
IONS||goog.array.ARRAY_PROTOTYPE_.indexOf)?function(a,b,c){goog.asserts.assert(n
ull!=a.length);return goog.array.ARRAY_PROTOTYPE_.indexOf.call(a,b,c)}:function(
a,b,c){c=null==c?0:0>c?Math.max(0,a.length+c):c;if(goog.isString(a))return goog.
isString(b)&&1==b.length?a.indexOf(b,c):-1;for(;c<a.length;c++)if(c in a&&a[c]==
=b)return c;return-1}; | 53 goog.array.indexOf=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCT
IONS||goog.array.ARRAY_PROTOTYPE_.indexOf)?function(a,b,c){goog.asserts.assert(n
ull!=a.length);return goog.array.ARRAY_PROTOTYPE_.indexOf.call(a,b,c)}:function(
a,b,c){c=null==c?0:0>c?Math.max(0,a.length+c):c;if(goog.isString(a))return goog.
isString(b)&&1==b.length?a.indexOf(b,c):-1;for(;c<a.length;c++)if(c in a&&a[c]==
=b)return c;return-1}; |
54 goog.array.lastIndexOf=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_F
UNCTIONS||goog.array.ARRAY_PROTOTYPE_.lastIndexOf)?function(a,b,c){goog.asserts.
assert(null!=a.length);c=null==c?a.length-1:c;return goog.array.ARRAY_PROTOTYPE_
.lastIndexOf.call(a,b,c)}:function(a,b,c){c=null==c?a.length-1:c;0>c&&(c=Math.ma
x(0,a.length+c));if(goog.isString(a))return goog.isString(b)&&1==b.length?a.last
IndexOf(b,c):-1;for(;0<=c;c--)if(c in a&&a[c]===b)return c;return-1}; | 54 goog.array.lastIndexOf=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_F
UNCTIONS||goog.array.ARRAY_PROTOTYPE_.lastIndexOf)?function(a,b,c){goog.asserts.
assert(null!=a.length);c=null==c?a.length-1:c;return goog.array.ARRAY_PROTOTYPE_
.lastIndexOf.call(a,b,c)}:function(a,b,c){c=null==c?a.length-1:c;0>c&&(c=Math.ma
x(0,a.length+c));if(goog.isString(a))return goog.isString(b)&&1==b.length?a.last
IndexOf(b,c):-1;for(;0<=c;c--)if(c in a&&a[c]===b)return c;return-1}; |
55 goog.array.forEach=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCT
IONS||goog.array.ARRAY_PROTOTYPE_.forEach)?function(a,b,c){goog.asserts.assert(n
ull!=a.length);goog.array.ARRAY_PROTOTYPE_.forEach.call(a,b,c)}:function(a,b,c){
for(var d=a.length,e=goog.isString(a)?a.split(""):a,f=0;f<d;f++)f in e&&b.call(c
,e[f],f,a)};goog.array.forEachRight=function(a,b,c){for(var d=a.length,e=goog.is
String(a)?a.split(""):a,d=d-1;0<=d;--d)d in e&&b.call(c,e[d],d,a)}; | 55 goog.array.forEach=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCT
IONS||goog.array.ARRAY_PROTOTYPE_.forEach)?function(a,b,c){goog.asserts.assert(n
ull!=a.length);goog.array.ARRAY_PROTOTYPE_.forEach.call(a,b,c)}:function(a,b,c){
for(var d=a.length,e=goog.isString(a)?a.split(""):a,f=0;f<d;f++)f in e&&b.call(c
,e[f],f,a)};goog.array.forEachRight=function(a,b,c){for(var d=a.length,e=goog.is
String(a)?a.split(""):a,d=d-1;0<=d;--d)d in e&&b.call(c,e[d],d,a)}; |
56 goog.array.filter=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTI
ONS||goog.array.ARRAY_PROTOTYPE_.filter)?function(a,b,c){goog.asserts.assert(nul
l!=a.length);return goog.array.ARRAY_PROTOTYPE_.filter.call(a,b,c)}:function(a,b
,c){for(var d=a.length,e=[],f=0,g=goog.isString(a)?a.split(""):a,h=0;h<d;h++)if(
h in g){var k=g[h];b.call(c,k,h,a)&&(e[f++]=k)}return e}; | 56 goog.array.filter=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTI
ONS||goog.array.ARRAY_PROTOTYPE_.filter)?function(a,b,c){goog.asserts.assert(nul
l!=a.length);return goog.array.ARRAY_PROTOTYPE_.filter.call(a,b,c)}:function(a,b
,c){for(var d=a.length,e=[],f=0,g=goog.isString(a)?a.split(""):a,h=0;h<d;h++)if(
h in g){var k=g[h];b.call(c,k,h,a)&&(e[f++]=k)}return e}; |
(...skipping 13 matching lines...) Expand all Loading... |
70 goog.array.sortObjectsByKey=function(a,b,c){var d=c||goog.array.defaultCompare;g
oog.array.sort(a,function(a,c){return d(a[b],c[b])})};goog.array.isSorted=functi
on(a,b,c){b=b||goog.array.defaultCompare;for(var d=1;d<a.length;d++){var e=b(a[d
-1],a[d]);if(0<e||0==e&&c)return!1}return!0};goog.array.equals=function(a,b,c){i
f(!goog.isArrayLike(a)||!goog.isArrayLike(b)||a.length!=b.length)return!1;var d=
a.length;c=c||goog.array.defaultCompareEquality;for(var e=0;e<d;e++)if(!c(a[e],b
[e]))return!1;return!0}; | 70 goog.array.sortObjectsByKey=function(a,b,c){var d=c||goog.array.defaultCompare;g
oog.array.sort(a,function(a,c){return d(a[b],c[b])})};goog.array.isSorted=functi
on(a,b,c){b=b||goog.array.defaultCompare;for(var d=1;d<a.length;d++){var e=b(a[d
-1],a[d]);if(0<e||0==e&&c)return!1}return!0};goog.array.equals=function(a,b,c){i
f(!goog.isArrayLike(a)||!goog.isArrayLike(b)||a.length!=b.length)return!1;var d=
a.length;c=c||goog.array.defaultCompareEquality;for(var e=0;e<d;e++)if(!c(a[e],b
[e]))return!1;return!0}; |
71 goog.array.compare3=function(a,b,c){c=c||goog.array.defaultCompare;for(var d=Mat
h.min(a.length,b.length),e=0;e<d;e++){var f=c(a[e],b[e]);if(0!=f)return f}return
goog.array.defaultCompare(a.length,b.length)};goog.array.defaultCompare=functio
n(a,b){return a>b?1:a<b?-1:0};goog.array.defaultCompareEquality=function(a,b){re
turn a===b};goog.array.binaryInsert=function(a,b,c){c=goog.array.binarySearch(a,
b,c);return 0>c?(goog.array.insertAt(a,b,-(c+1)),!0):!1}; | 71 goog.array.compare3=function(a,b,c){c=c||goog.array.defaultCompare;for(var d=Mat
h.min(a.length,b.length),e=0;e<d;e++){var f=c(a[e],b[e]);if(0!=f)return f}return
goog.array.defaultCompare(a.length,b.length)};goog.array.defaultCompare=functio
n(a,b){return a>b?1:a<b?-1:0};goog.array.defaultCompareEquality=function(a,b){re
turn a===b};goog.array.binaryInsert=function(a,b,c){c=goog.array.binarySearch(a,
b,c);return 0>c?(goog.array.insertAt(a,b,-(c+1)),!0):!1}; |
72 goog.array.binaryRemove=function(a,b,c){b=goog.array.binarySearch(a,b,c);return
0<=b?goog.array.removeAt(a,b):!1};goog.array.bucket=function(a,b,c){for(var d={}
,e=0;e<a.length;e++){var f=a[e],g=b.call(c,f,e,a);goog.isDef(g)&&(g=d[g]||(d[g]=
[]),g.push(f))}return d};goog.array.toObject=function(a,b,c){var d={};goog.array
.forEach(a,function(e,f){d[b.call(c,e,f,a)]=e});return d}; | 72 goog.array.binaryRemove=function(a,b,c){b=goog.array.binarySearch(a,b,c);return
0<=b?goog.array.removeAt(a,b):!1};goog.array.bucket=function(a,b,c){for(var d={}
,e=0;e<a.length;e++){var f=a[e],g=b.call(c,f,e,a);goog.isDef(g)&&(g=d[g]||(d[g]=
[]),g.push(f))}return d};goog.array.toObject=function(a,b,c){var d={};goog.array
.forEach(a,function(e,f){d[b.call(c,e,f,a)]=e});return d}; |
73 goog.array.range=function(a,b,c){var d=[],e=0,f=a;c=c||1;void 0!==b&&(e=a,f=b);i
f(0>c*(f-e))return[];if(0<c)for(a=e;a<f;a+=c)d.push(a);else for(a=e;a>f;a+=c)d.p
ush(a);return d};goog.array.repeat=function(a,b){for(var c=[],d=0;d<b;d++)c[d]=a
;return c};goog.array.flatten=function(a){for(var b=[],c=0;c<arguments.length;c+
+){var d=arguments[c];goog.isArray(d)?b.push.apply(b,goog.array.flatten.apply(nu
ll,d)):b.push(d)}return b}; | 73 goog.array.range=function(a,b,c){var d=[],e=0,f=a;c=c||1;void 0!==b&&(e=a,f=b);i
f(0>c*(f-e))return[];if(0<c)for(a=e;a<f;a+=c)d.push(a);else for(a=e;a>f;a+=c)d.p
ush(a);return d};goog.array.repeat=function(a,b){for(var c=[],d=0;d<b;d++)c[d]=a
;return c};goog.array.flatten=function(a){for(var b=[],c=0;c<arguments.length;c+
+){var d=arguments[c];goog.isArray(d)?b.push.apply(b,goog.array.flatten.apply(nu
ll,d)):b.push(d)}return b}; |
74 goog.array.rotate=function(a,b){goog.asserts.assert(null!=a.length);a.length&&(b
%=a.length,0<b?goog.array.ARRAY_PROTOTYPE_.unshift.apply(a,a.splice(-b,b)):0>b&&
goog.array.ARRAY_PROTOTYPE_.push.apply(a,a.splice(0,-b)));return a};goog.array.m
oveItem=function(a,b,c){goog.asserts.assert(0<=b&&b<a.length);goog.asserts.asser
t(0<=c&&c<a.length);b=goog.array.ARRAY_PROTOTYPE_.splice.call(a,b,1);goog.array.
ARRAY_PROTOTYPE_.splice.call(a,c,0,b[0])}; | 74 goog.array.rotate=function(a,b){goog.asserts.assert(null!=a.length);a.length&&(b
%=a.length,0<b?goog.array.ARRAY_PROTOTYPE_.unshift.apply(a,a.splice(-b,b)):0>b&&
goog.array.ARRAY_PROTOTYPE_.push.apply(a,a.splice(0,-b)));return a};goog.array.m
oveItem=function(a,b,c){goog.asserts.assert(0<=b&&b<a.length);goog.asserts.asser
t(0<=c&&c<a.length);b=goog.array.ARRAY_PROTOTYPE_.splice.call(a,b,1);goog.array.
ARRAY_PROTOTYPE_.splice.call(a,c,0,b[0])}; |
75 goog.array.zip=function(a){if(!arguments.length)return[];for(var b=[],c=0;;c++){
for(var d=[],e=0;e<arguments.length;e++){var f=arguments[e];if(c>=f.length)retur
n b;d.push(f[c])}b.push(d)}};goog.array.shuffle=function(a,b){for(var c=b||Math.
random,d=a.length-1;0<d;d--){var e=Math.floor(c()*(d+1)),f=a[d];a[d]=a[e];a[e]=f
}};goog.math={};goog.math.randomInt=function(a){return Math.floor(Math.random()*
a)};goog.math.uniformRandom=function(a,b){return a+Math.random()*(b-a)};goog.mat
h.clamp=function(a,b,c){return Math.min(Math.max(a,b),c)};goog.math.modulo=funct
ion(a,b){var c=a%b;return 0>c*b?c+b:c};goog.math.lerp=function(a,b,c){return a+c
*(b-a)};goog.math.nearlyEquals=function(a,b,c){return Math.abs(a-b)<=(c||1E-6)};
goog.math.standardAngle=function(a){return goog.math.modulo(a,360)}; | 75 goog.array.zip=function(a){if(!arguments.length)return[];for(var b=[],c=0;;c++){
for(var d=[],e=0;e<arguments.length;e++){var f=arguments[e];if(c>=f.length)retur
n b;d.push(f[c])}b.push(d)}};goog.array.shuffle=function(a,b){for(var c=b||Math.
random,d=a.length-1;0<d;d--){var e=Math.floor(c()*(d+1)),f=a[d];a[d]=a[e];a[e]=f
}};goog.math={};goog.math.randomInt=function(a){return Math.floor(Math.random()*
a)};goog.math.uniformRandom=function(a,b){return a+Math.random()*(b-a)};goog.mat
h.clamp=function(a,b,c){return Math.min(Math.max(a,b),c)};goog.math.modulo=funct
ion(a,b){var c=a%b;return 0>c*b?c+b:c};goog.math.lerp=function(a,b,c){return a+c
*(b-a)};goog.math.nearlyEquals=function(a,b,c){return Math.abs(a-b)<=(c||1E-6)};
goog.math.standardAngle=function(a){return goog.math.modulo(a,360)}; |
76 goog.math.standardAngleInRadians=function(a){return goog.math.modulo(a,2*Math.PI
)};goog.math.toRadians=function(a){return a*Math.PI/180};goog.math.toDegrees=fun
ction(a){return 180*a/Math.PI};goog.math.angleDx=function(a,b){return b*Math.cos
(goog.math.toRadians(a))};goog.math.angleDy=function(a,b){return b*Math.sin(goog
.math.toRadians(a))};goog.math.angle=function(a,b,c,d){return goog.math.standard
Angle(goog.math.toDegrees(Math.atan2(d-b,c-a)))}; | 76 goog.math.standardAngleInRadians=function(a){return goog.math.modulo(a,2*Math.PI
)};goog.math.toRadians=function(a){return a*Math.PI/180};goog.math.toDegrees=fun
ction(a){return 180*a/Math.PI};goog.math.angleDx=function(a,b){return b*Math.cos
(goog.math.toRadians(a))};goog.math.angleDy=function(a,b){return b*Math.sin(goog
.math.toRadians(a))};goog.math.angle=function(a,b,c,d){return goog.math.standard
Angle(goog.math.toDegrees(Math.atan2(d-b,c-a)))}; |
77 goog.math.angleDifference=function(a,b){var c=goog.math.standardAngle(b)-goog.ma
th.standardAngle(a);180<c?c-=360:-180>=c&&(c=360+c);return c};goog.math.sign=fun
ction(a){return 0==a?0:0>a?-1:1}; | 77 goog.math.angleDifference=function(a,b){var c=goog.math.standardAngle(b)-goog.ma
th.standardAngle(a);180<c?c-=360:-180>=c&&(c=360+c);return c};goog.math.sign=fun
ction(a){return 0==a?0:0>a?-1:1}; |
78 goog.math.longestCommonSubsequence=function(a,b,c,d){c=c||function(a,b){return a
==b};d=d||function(b){return a[b]};for(var e=a.length,f=b.length,g=[],h=0;h<e+1;
h++)g[h]=[],g[h][0]=0;for(var k=0;k<f+1;k++)g[0][k]=0;for(h=1;h<=e;h++)for(k=1;k
<=f;k++)c(a[h-1],b[k-1])?g[h][k]=g[h-1][k-1]+1:g[h][k]=Math.max(g[h-1][k],g[h][k
-1]);for(var l=[],h=e,k=f;0<h&&0<k;)c(a[h-1],b[k-1])?(l.unshift(d(h-1,k-1)),h--,
k--):g[h-1][k]>g[h][k-1]?h--:k--;return l}; | 78 goog.math.longestCommonSubsequence=function(a,b,c,d){c=c||function(a,b){return a
==b};d=d||function(b){return a[b]};for(var e=a.length,f=b.length,g=[],h=0;h<e+1;
h++)g[h]=[],g[h][0]=0;for(var k=0;k<f+1;k++)g[0][k]=0;for(h=1;h<=e;h++)for(k=1;k
<=f;k++)c(a[h-1],b[k-1])?g[h][k]=g[h-1][k-1]+1:g[h][k]=Math.max(g[h-1][k],g[h][k
-1]);for(var l=[],h=e,k=f;0<h&&0<k;)c(a[h-1],b[k-1])?(l.unshift(d(h-1,k-1)),h--,
k--):g[h-1][k]>g[h][k-1]?h--:k--;return l}; |
79 goog.math.sum=function(a){return goog.array.reduce(arguments,function(a,c){retur
n a+c},0)};goog.math.average=function(a){return goog.math.sum.apply(null,argumen
ts)/arguments.length};goog.math.sampleVariance=function(a){var b=arguments.lengt
h;if(2>b)return 0;var c=goog.math.average.apply(null,arguments);return b=goog.ma
th.sum.apply(null,goog.array.map(arguments,function(a){return Math.pow(a-c,2)}))
/(b-1)}; | 79 goog.math.sum=function(a){return goog.array.reduce(arguments,function(a,c){retur
n a+c},0)};goog.math.average=function(a){return goog.math.sum.apply(null,argumen
ts)/arguments.length};goog.math.sampleVariance=function(a){var b=arguments.lengt
h;if(2>b)return 0;var c=goog.math.average.apply(null,arguments);return b=goog.ma
th.sum.apply(null,goog.array.map(arguments,function(a){return Math.pow(a-c,2)}))
/(b-1)}; |
80 goog.math.standardDeviation=function(a){return Math.sqrt(goog.math.sampleVarianc
e.apply(null,arguments))};goog.math.isInt=function(a){return isFinite(a)&&0==a%1
};goog.math.isFiniteNumber=function(a){return isFinite(a)&&!isNaN(a)};goog.math.
log10Floor=function(a){if(0<a){var b=Math.round(Math.log(a)*Math.LOG10E);return
b-(Math.pow(10,b)>a)}return 0==a?-Infinity:NaN};goog.math.safeFloor=function(a,b
){goog.asserts.assert(!goog.isDef(b)||0<b);return Math.floor(a+(b||2E-15))}; | 80 goog.math.standardDeviation=function(a){return Math.sqrt(goog.math.sampleVarianc
e.apply(null,arguments))};goog.math.isInt=function(a){return isFinite(a)&&0==a%1
};goog.math.isFiniteNumber=function(a){return isFinite(a)&&!isNaN(a)};goog.math.
log10Floor=function(a){if(0<a){var b=Math.round(Math.log(a)*Math.LOG10E);return
b-(parseFloat("1e"+b)>a)}return 0==a?-Infinity:NaN};goog.math.safeFloor=function
(a,b){goog.asserts.assert(!goog.isDef(b)||0<b);return Math.floor(a+(b||2E-15))}; |
81 goog.math.safeCeil=function(a,b){goog.asserts.assert(!goog.isDef(b)||0<b);return
Math.ceil(a-(b||2E-15))};goog.i18n={}; | 81 goog.math.safeCeil=function(a,b){goog.asserts.assert(!goog.isDef(b)||0<b);return
Math.ceil(a-(b||2E-15))};goog.i18n={}; |
82 goog.i18n.CompactNumberFormatSymbols_af={COMPACT_DECIMAL_SHORT_PATTERN:{1E3:{oth
er:"0"},1E4:{other:"0"},1E5:{other:"0"},1E6:{other:"0\u00a0m"},1E7:{other:"00\u0
0a0m"},1E8:{other:"000\u00a0m"},1E9:{other:"0\u00a0mjd"},1E10:{other:"00\u00a0mj
d"},1E11:{other:"000\u00a0mjd"},1E12:{other:"0\u00a0bn"},1E13:{other:"00\u00a0bn
"},1E14:{other:"000\u00a0bn"}},COMPACT_DECIMAL_LONG_PATTERN:{1E3:{other:"0 duise
nd"},1E4:{other:"00 duisend"},1E5:{other:"000 duisend"},1E6:{other:"0 miljoen"},
1E7:{other:"00 miljoen"},1E8:{other:"000 miljoen"}, | 82 goog.i18n.CompactNumberFormatSymbols_af={COMPACT_DECIMAL_SHORT_PATTERN:{1E3:{oth
er:"0"},1E4:{other:"0"},1E5:{other:"0"},1E6:{other:"0\u00a0m"},1E7:{other:"00\u0
0a0m"},1E8:{other:"000\u00a0m"},1E9:{other:"0\u00a0mjd"},1E10:{other:"00\u00a0mj
d"},1E11:{other:"000\u00a0mjd"},1E12:{other:"0\u00a0bn"},1E13:{other:"00\u00a0bn
"},1E14:{other:"000\u00a0bn"}},COMPACT_DECIMAL_LONG_PATTERN:{1E3:{other:"0 duise
nd"},1E4:{other:"00 duisend"},1E5:{other:"000 duisend"},1E6:{other:"0 miljoen"},
1E7:{other:"00 miljoen"},1E8:{other:"000 miljoen"}, |
83 1E9:{other:"0 miljard"},1E10:{other:"00 miljard"},1E11:{other:"000 miljard"},1E1
2:{other:"0 biljoen"},1E13:{other:"00 biljoen"},1E14:{other:"000 biljoen"}}};goo
g.i18n.CompactNumberFormatSymbols_af_ZA=goog.i18n.CompactNumberFormatSymbols_af; | 83 1E9:{other:"0 miljard"},1E10:{other:"00 miljard"},1E11:{other:"000 miljard"},1E1
2:{other:"0 biljoen"},1E13:{other:"00 biljoen"},1E14:{other:"000 biljoen"}}};goo
g.i18n.CompactNumberFormatSymbols_af_ZA=goog.i18n.CompactNumberFormatSymbols_af; |
84 goog.i18n.CompactNumberFormatSymbols_am={COMPACT_DECIMAL_SHORT_PATTERN:{1E3:{oth
er:"0\u00a0\u123a"},1E4:{other:"00\u00a0\u123a"},1E5:{other:"000\u00a0\u123a"},1
E6:{other:"0\u00a0\u121c\u1275\u122d"},1E7:{other:"00\u00a0\u121c\u1275\u122d"},
1E8:{other:"000\u00a0\u121c\u1275\u122d"},1E9:{other:"0\u00a0\u1262"},1E10:{othe
r:"00\u00a0\u1262"},1E11:{other:"000\u00a0\u1262"},1E12:{other:"0\u00a0\u1275"},
1E13:{other:"00\u00a0\u1275"},1E14:{other:"000\u00a0\u1275"}},COMPACT_DECIMAL_LO
NG_PATTERN:{1E3:{other:"0 \u123a"}, | 84 goog.i18n.CompactNumberFormatSymbols_am={COMPACT_DECIMAL_SHORT_PATTERN:{1E3:{oth
er:"0\u00a0\u123a"},1E4:{other:"00\u00a0\u123a"},1E5:{other:"000\u00a0\u123a"},1
E6:{other:"0\u00a0\u121c\u1275\u122d"},1E7:{other:"00\u00a0\u121c\u1275\u122d"},
1E8:{other:"000\u00a0\u121c\u1275\u122d"},1E9:{other:"0\u00a0\u1262"},1E10:{othe
r:"00\u00a0\u1262"},1E11:{other:"000\u00a0\u1262"},1E12:{other:"0\u00a0\u1275"},
1E13:{other:"00\u00a0\u1275"},1E14:{other:"000\u00a0\u1275"}},COMPACT_DECIMAL_LO
NG_PATTERN:{1E3:{other:"0 \u123a"}, |
85 1E4:{other:"00 \u123a"},1E5:{other:"000 \u123a"},1E6:{other:"0 \u121a\u120a\u12e
e\u1295"},1E7:{other:"00 \u121a\u120a\u12ee\u1295"},1E8:{other:"000 \u121a\u120a
\u12ee\u1295"},1E9:{other:"0 \u1262\u120a\u12ee\u1295"},1E10:{other:"00 \u1262\u
120a\u12ee\u1295"},1E11:{other:"000 \u1262\u120a\u12ee\u1295"},1E12:{other:"0 \u
1275\u122a\u120a\u12ee\u1295"},1E13:{other:"00 \u1275\u122a\u120a\u12ee\u1295"},
1E14:{other:"000 \u1275\u122a\u120a\u12ee\u1295"}}};goog.i18n.CompactNumberForma
tSymbols_am_ET=goog.i18n.CompactNumberFormatSymbols_am; | 85 1E4:{other:"00 \u123a"},1E5:{other:"000 \u123a"},1E6:{other:"0 \u121a\u120a\u12e
e\u1295"},1E7:{other:"00 \u121a\u120a\u12ee\u1295"},1E8:{other:"000 \u121a\u120a
\u12ee\u1295"},1E9:{other:"0 \u1262\u120a\u12ee\u1295"},1E10:{other:"00 \u1262\u
120a\u12ee\u1295"},1E11:{other:"000 \u1262\u120a\u12ee\u1295"},1E12:{other:"0 \u
1275\u122a\u120a\u12ee\u1295"},1E13:{other:"00 \u1275\u122a\u120a\u12ee\u1295"},
1E14:{other:"000 \u1275\u122a\u120a\u12ee\u1295"}}};goog.i18n.CompactNumberForma
tSymbols_am_ET=goog.i18n.CompactNumberFormatSymbols_am; |
86 goog.i18n.CompactNumberFormatSymbols_ar={COMPACT_DECIMAL_SHORT_PATTERN:{1E3:{oth
er:"0\u00a0\u0623\u0644\u0641"},1E4:{other:"00\u00a0\u0623\u0644\u0641"},1E5:{ot
her:"000\u00a0\u0623\u0644\u0641"},1E6:{other:"0\u00a0\u0645\u0644\u064a\u0648"}
,1E7:{other:"00\u00a0\u0645\u0644\u064a\u0648"},1E8:{other:"000\u00a0\u0645\u064
4\u064a\u0648"},1E9:{other:"0\u00a0\u0628\u0644\u064a\u0648"},1E10:{other:"00\u0
0a0\u0628\u0644\u064a\u0648"},1E11:{other:"000\u00a0\u0628\u0644\u064a\u0648"},1
E12:{other:"0\u00a0\u062a\u0631\u0644\u064a\u0648"}, | 86 goog.i18n.CompactNumberFormatSymbols_ar={COMPACT_DECIMAL_SHORT_PATTERN:{1E3:{oth
er:"0\u00a0\u0623\u0644\u0641"},1E4:{other:"00\u00a0\u0623\u0644\u0641"},1E5:{ot
her:"000\u00a0\u0623\u0644\u0641"},1E6:{other:"0\u00a0\u0645\u0644\u064a\u0648"}
,1E7:{other:"00\u00a0\u0645\u0644\u064a\u0648"},1E8:{other:"000\u00a0\u0645\u064
4\u064a\u0648"},1E9:{other:"0\u00a0\u0628\u0644\u064a\u0648"},1E10:{other:"00\u0
0a0\u0628\u0644\u064a\u0648"},1E11:{other:"000\u00a0\u0628\u0644\u064a\u0648"},1
E12:{other:"0\u00a0\u062a\u0631\u0644\u064a\u0648"}, |
87 1E13:{other:"00\u00a0\u062a\u0631\u0644\u064a\u0648"},1E14:{other:"000\u00a0\u06
2a\u0631\u0644\u064a\u0648"}},COMPACT_DECIMAL_LONG_PATTERN:{1E3:{other:"0 \u0623
\u0644\u0641"},1E4:{other:"00 \u0623\u0644\u0641"},1E5:{other:"000 \u0623\u0644\
u0641"},1E6:{other:"0 \u0645\u0644\u064a\u0648\u0646"},1E7:{other:"00 \u0645\u06
44\u064a\u0648\u0646"},1E8:{other:"000 \u0645\u0644\u064a\u0648\u0646"},1E9:{oth
er:"0 \u0628\u0644\u064a\u0648\u0646"},1E10:{other:"00 \u0628\u0644\u064a\u0648\
u0646"},1E11:{other:"000 \u0628\u0644\u064a\u0648\u0646"}, | 87 1E13:{other:"00\u00a0\u062a\u0631\u0644\u064a\u0648"},1E14:{other:"000\u00a0\u06
2a\u0631\u0644\u064a\u0648"}},COMPACT_DECIMAL_LONG_PATTERN:{1E3:{other:"0 \u0623
\u0644\u0641"},1E4:{other:"00 \u0623\u0644\u0641"},1E5:{other:"000 \u0623\u0644\
u0641"},1E6:{other:"0 \u0645\u0644\u064a\u0648\u0646"},1E7:{other:"00 \u0645\u06
44\u064a\u0648\u0646"},1E8:{other:"000 \u0645\u0644\u064a\u0648\u0646"},1E9:{oth
er:"0 \u0628\u0644\u064a\u0648\u0646"},1E10:{other:"00 \u0628\u0644\u064a\u0648\
u0646"},1E11:{other:"000 \u0628\u0644\u064a\u0648\u0646"}, |
88 1E12:{other:"0 \u062a\u0631\u064a\u0644\u064a\u0648\u0646"},1E13:{other:"00 \u06
2a\u0631\u064a\u0644\u064a\u0648\u0646"},1E14:{other:"000 \u062a\u0631\u064a\u06
44\u064a\u0648\u0646"}}};goog.i18n.CompactNumberFormatSymbols_ar_001=goog.i18n.C
ompactNumberFormatSymbols_ar; | 88 1E12:{other:"0 \u062a\u0631\u064a\u0644\u064a\u0648\u0646"},1E13:{other:"00 \u06
2a\u0631\u064a\u0644\u064a\u0648\u0646"},1E14:{other:"000 \u062a\u0631\u064a\u06
44\u064a\u0648\u0646"}}};goog.i18n.CompactNumberFormatSymbols_ar_001=goog.i18n.C
ompactNumberFormatSymbols_ar; |
89 goog.i18n.CompactNumberFormatSymbols_az={COMPACT_DECIMAL_SHORT_PATTERN:{1E3:{oth
er:"0K"},1E4:{other:"00K"},1E5:{other:"000K"},1E6:{other:"0M"},1E7:{other:"00M"}
,1E8:{other:"000M"},1E9:{other:"0G"},1E10:{other:"00G"},1E11:{other:"000G"},1E12
:{other:"0T"},1E13:{other:"00T"},1E14:{other:"000T"}},COMPACT_DECIMAL_LONG_PATTE
RN:{1E3:{other:"0K"},1E4:{other:"00K"},1E5:{other:"000K"},1E6:{other:"0M"},1E7:{
other:"00M"},1E8:{other:"000M"},1E9:{other:"0G"},1E10:{other:"00G"},1E11:{other:
"000G"},1E12:{other:"0T"}, | 89 goog.i18n.CompactNumberFormatSymbols_az={COMPACT_DECIMAL_SHORT_PATTERN:{1E3:{oth
er:"0K"},1E4:{other:"00K"},1E5:{other:"000K"},1E6:{other:"0M"},1E7:{other:"00M"}
,1E8:{other:"000M"},1E9:{other:"0G"},1E10:{other:"00G"},1E11:{other:"000G"},1E12
:{other:"0T"},1E13:{other:"00T"},1E14:{other:"000T"}},COMPACT_DECIMAL_LONG_PATTE
RN:{1E3:{other:"0K"},1E4:{other:"00K"},1E5:{other:"000K"},1E6:{other:"0M"},1E7:{
other:"00M"},1E8:{other:"000M"},1E9:{other:"0G"},1E10:{other:"00G"},1E11:{other:
"000G"},1E12:{other:"0T"}, |
90 1E13:{other:"00T"},1E14:{other:"000T"}}};goog.i18n.CompactNumberFormatSymbols_az
_Cyrl_AZ=goog.i18n.CompactNumberFormatSymbols_az;goog.i18n.CompactNumberFormatSy
mbols_az_Latn_AZ=goog.i18n.CompactNumberFormatSymbols_az; | 90 1E13:{other:"00T"},1E14:{other:"000T"}}};goog.i18n.CompactNumberFormatSymbols_az
_Cyrl_AZ=goog.i18n.CompactNumberFormatSymbols_az;goog.i18n.CompactNumberFormatSy
mbols_az_Latn_AZ=goog.i18n.CompactNumberFormatSymbols_az; |
(...skipping 511 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
602 goog.i18n.MessageFormat.prototype.parseBlockType_=function(a){return goog.i18n.M
essageFormat.PLURAL_BLOCK_RE_.test(a)?goog.i18n.MessageFormat.BlockType_.PLURAL:
goog.i18n.MessageFormat.ORDINAL_BLOCK_RE_.test(a)?goog.i18n.MessageFormat.BlockT
ype_.ORDINAL:goog.i18n.MessageFormat.SELECT_BLOCK_RE_.test(a)?goog.i18n.MessageF
ormat.BlockType_.SELECT:/^\s*\w+\s*/.test(a)?goog.i18n.MessageFormat.BlockType_.
SIMPLE:goog.i18n.MessageFormat.BlockType_.UNKNOWN}; | 602 goog.i18n.MessageFormat.prototype.parseBlockType_=function(a){return goog.i18n.M
essageFormat.PLURAL_BLOCK_RE_.test(a)?goog.i18n.MessageFormat.BlockType_.PLURAL:
goog.i18n.MessageFormat.ORDINAL_BLOCK_RE_.test(a)?goog.i18n.MessageFormat.BlockT
ype_.ORDINAL:goog.i18n.MessageFormat.SELECT_BLOCK_RE_.test(a)?goog.i18n.MessageF
ormat.BlockType_.SELECT:/^\s*\w+\s*/.test(a)?goog.i18n.MessageFormat.BlockType_.
SIMPLE:goog.i18n.MessageFormat.BlockType_.UNKNOWN}; |
603 goog.i18n.MessageFormat.prototype.parseBlock_=function(a){var b=[];a=this.extrac
tParts_(a);for(var c=0;c<a.length;c++){var d={};if(goog.i18n.MessageFormat.Eleme
nt_.STRING==a[c].type)d.type=goog.i18n.MessageFormat.BlockType_.STRING,d.value=a
[c].value;else if(goog.i18n.MessageFormat.Element_.BLOCK==a[c].type){var e=this.
parseBlockType_(a[c].value);switch(e){case goog.i18n.MessageFormat.BlockType_.SE
LECT:d.type=goog.i18n.MessageFormat.BlockType_.SELECT;d.value=this.parseSelectBl
ock_(a[c].value);break; | 603 goog.i18n.MessageFormat.prototype.parseBlock_=function(a){var b=[];a=this.extrac
tParts_(a);for(var c=0;c<a.length;c++){var d={};if(goog.i18n.MessageFormat.Eleme
nt_.STRING==a[c].type)d.type=goog.i18n.MessageFormat.BlockType_.STRING,d.value=a
[c].value;else if(goog.i18n.MessageFormat.Element_.BLOCK==a[c].type){var e=this.
parseBlockType_(a[c].value);switch(e){case goog.i18n.MessageFormat.BlockType_.SE
LECT:d.type=goog.i18n.MessageFormat.BlockType_.SELECT;d.value=this.parseSelectBl
ock_(a[c].value);break; |
604 case goog.i18n.MessageFormat.BlockType_.PLURAL:d.type=goog.i18n.MessageFormat.Bl
ockType_.PLURAL;d.value=this.parsePluralBlock_(a[c].value);break;case goog.i18n.
MessageFormat.BlockType_.ORDINAL:d.type=goog.i18n.MessageFormat.BlockType_.ORDIN
AL;d.value=this.parseOrdinalBlock_(a[c].value);break;case goog.i18n.MessageForma
t.BlockType_.SIMPLE:d.type=goog.i18n.MessageFormat.BlockType_.SIMPLE;d.value=a[c
].value;break;default:goog.asserts.fail("Unknown block type.")}}else goog.assert
s.fail("Unknown part of the pattern."); | 604 case goog.i18n.MessageFormat.BlockType_.PLURAL:d.type=goog.i18n.MessageFormat.Bl
ockType_.PLURAL;d.value=this.parsePluralBlock_(a[c].value);break;case goog.i18n.
MessageFormat.BlockType_.ORDINAL:d.type=goog.i18n.MessageFormat.BlockType_.ORDIN
AL;d.value=this.parseOrdinalBlock_(a[c].value);break;case goog.i18n.MessageForma
t.BlockType_.SIMPLE:d.type=goog.i18n.MessageFormat.BlockType_.SIMPLE;d.value=a[c
].value;break;default:goog.asserts.fail("Unknown block type.")}}else goog.assert
s.fail("Unknown part of the pattern."); |
605 b.push(d)}return b}; | 605 b.push(d)}return b}; |
606 goog.i18n.MessageFormat.prototype.parseSelectBlock_=function(a){var b="",c=goog.
i18n.MessageFormat.SELECT_BLOCK_RE_;a=a.replace(c,function(a,c){b=c;return""});c
={};c.argumentIndex=b;a=this.extractParts_(a);for(var d=0;d<a.length;){var e=a[d
].value;goog.asserts.assertString(e,"Missing select key element.");d++;goog.asse
rts.assert(d<a.length,"Missing or invalid select value element.");if(goog.i18n.M
essageFormat.Element_.BLOCK==a[d].type)var f=this.parseBlock_(a[d].value);else g
oog.asserts.fail("Expected block type.");c[e.replace(/\s/g, | 606 goog.i18n.MessageFormat.prototype.parseSelectBlock_=function(a){var b="",c=goog.
i18n.MessageFormat.SELECT_BLOCK_RE_;a=a.replace(c,function(a,c){b=c;return""});c
={};c.argumentIndex=b;a=this.extractParts_(a);for(var d=0;d<a.length;){var e=a[d
].value;goog.asserts.assertString(e,"Missing select key element.");d++;goog.asse
rts.assert(d<a.length,"Missing or invalid select value element.");if(goog.i18n.M
essageFormat.Element_.BLOCK==a[d].type)var f=this.parseBlock_(a[d].value);else g
oog.asserts.fail("Expected block type.");c[e.replace(/\s/g, |
607 "")]=f;d++}goog.asserts.assertArray(c[goog.i18n.MessageFormat.OTHER_],"Missing o
ther key in select statement.");return c}; | 607 "")]=f;d++}goog.asserts.assertArray(c[goog.i18n.MessageFormat.OTHER_],"Missing o
ther key in select statement.");return c}; |
608 goog.i18n.MessageFormat.prototype.parsePluralBlock_=function(a){var b="",c=0,d=g
oog.i18n.MessageFormat.PLURAL_BLOCK_RE_;a=a.replace(d,function(a,d,e){b=d;e&&(c=
parseInt(e,10));return""});d={};d.argumentIndex=b;d.argumentOffset=c;a=this.extr
actParts_(a);for(var e=0;e<a.length;){var f=a[e].value;goog.asserts.assertString
(f,"Missing plural key element.");e++;goog.asserts.assert(e<a.length,"Missing or
invalid plural value element.");if(goog.i18n.MessageFormat.Element_.BLOCK==a[e]
.type)var g=this.parseBlock_(a[e].value); | 608 goog.i18n.MessageFormat.prototype.parsePluralBlock_=function(a){var b="",c=0,d=g
oog.i18n.MessageFormat.PLURAL_BLOCK_RE_;a=a.replace(d,function(a,d,e){b=d;e&&(c=
parseInt(e,10));return""});d={};d.argumentIndex=b;d.argumentOffset=c;a=this.extr
actParts_(a);for(var e=0;e<a.length;){var f=a[e].value;goog.asserts.assertString
(f,"Missing plural key element.");e++;goog.asserts.assert(e<a.length,"Missing or
invalid plural value element.");if(goog.i18n.MessageFormat.Element_.BLOCK==a[e]
.type)var g=this.parseBlock_(a[e].value); |
609 else goog.asserts.fail("Expected block type.");d[f.replace(/\s*(?:=)?(\w+)\s*/,"
$1")]=g;e++}goog.asserts.assertArray(d[goog.i18n.MessageFormat.OTHER_],"Missing
other key in plural statement.");return d}; | 609 else goog.asserts.fail("Expected block type.");d[f.replace(/\s*(?:=)?(\w+)\s*/,"
$1")]=g;e++}goog.asserts.assertArray(d[goog.i18n.MessageFormat.OTHER_],"Missing
other key in plural statement.");return d}; |
610 goog.i18n.MessageFormat.prototype.parseOrdinalBlock_=function(a){var b="",c=goog
.i18n.MessageFormat.ORDINAL_BLOCK_RE_;a=a.replace(c,function(a,c){b=c;return""})
;c={};c.argumentIndex=b;c.argumentOffset=0;a=this.extractParts_(a);for(var d=0;d
<a.length;){var e=a[d].value;goog.asserts.assertString(e,"Missing ordinal key el
ement.");d++;goog.asserts.assert(d<a.length,"Missing or invalid ordinal value el
ement.");if(goog.i18n.MessageFormat.Element_.BLOCK==a[d].type)var f=this.parseBl
ock_(a[d].value);else goog.asserts.fail("Expected block type."); | 610 goog.i18n.MessageFormat.prototype.parseOrdinalBlock_=function(a){var b="",c=goog
.i18n.MessageFormat.ORDINAL_BLOCK_RE_;a=a.replace(c,function(a,c){b=c;return""})
;c={};c.argumentIndex=b;c.argumentOffset=0;a=this.extractParts_(a);for(var d=0;d
<a.length;){var e=a[d].value;goog.asserts.assertString(e,"Missing ordinal key el
ement.");d++;goog.asserts.assert(d<a.length,"Missing or invalid ordinal value el
ement.");if(goog.i18n.MessageFormat.Element_.BLOCK==a[d].type)var f=this.parseBl
ock_(a[d].value);else goog.asserts.fail("Expected block type."); |
611 c[e.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=f;d++}goog.asserts.assertArray(c[goog.i18
n.MessageFormat.OTHER_],"Missing other key in selectordinal statement.");return
c};goog.i18n.MessageFormat.prototype.buildPlaceholder_=function(a){goog.asserts.
assert(0<a.length,"Literal array is empty.");a=(a.length-1).toString(10);return
goog.i18n.MessageFormat.LITERAL_PLACEHOLDER_+a+"_"};cvox.TtsCapturingEventListen
er=function(){};cvox.TtsCapturingEventListener.prototype.onTtsStart=function(){}
;cvox.TtsCapturingEventListener.prototype.onTtsEnd=function(){};cvox.TtsInterfac
e=function(){};cvox.TtsInterface.prototype.speak=function(){};cvox.TtsInterface.
prototype.isSpeaking=function(){};cvox.TtsInterface.prototype.stop=function(){};
cvox.TtsInterface.prototype.addCapturingEventListener=function(){};cvox.TtsInter
face.prototype.increaseOrDecreaseProperty=function(){}; | 611 c[e.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=f;d++}goog.asserts.assertArray(c[goog.i18
n.MessageFormat.OTHER_],"Missing other key in selectordinal statement.");return
c};goog.i18n.MessageFormat.prototype.buildPlaceholder_=function(a){goog.asserts.
assert(0<a.length,"Literal array is empty.");a=(a.length-1).toString(10);return
goog.i18n.MessageFormat.LITERAL_PLACEHOLDER_+a+"_"};cvox.TtsCapturingEventListen
er=function(){};cvox.TtsCapturingEventListener.prototype.onTtsStart=function(){}
;cvox.TtsCapturingEventListener.prototype.onTtsEnd=function(){};cvox.TtsInterfac
e=function(){};cvox.TtsInterface.prototype.speak=function(){};cvox.TtsInterface.
prototype.isSpeaking=function(){};cvox.TtsInterface.prototype.stop=function(){};
cvox.TtsInterface.prototype.addCapturingEventListener=function(){};cvox.TtsInter
face.prototype.increaseOrDecreaseProperty=function(){}; |
612 cvox.TtsInterface.prototype.getDefaultProperty=function(){};cvox.AbstractTts=fun
ction(){this.ttsProperties={};this.propertyDefault={rate:0.5,pitch:0.5,volume:0.
5};this.propertyMin={rate:0,pitch:0,volume:0};this.propertyMax={rate:1,pitch:1,v
olume:1};this.propertyStep={rate:0.1,pitch:0.1,volume:0.1};if(void 0==cvox.Abstr
actTts.pronunciationDictionaryRegexp_){var a=[],b;for(b in cvox.AbstractTts.PRON
UNCIATION_DICTIONARY)a.push(b);a="\\b("+a.join("|")+")\\b";cvox.AbstractTts.pron
unciationDictionaryRegexp_=RegExp(a,"ig")}if(void 0==cvox.AbstractTts.substituti
onDictionaryRegexp_){var a= | 612 cvox.TtsInterface.prototype.getDefaultProperty=function(){};cvox.AbstractTts=fun
ction(){this.ttsProperties={};this.propertyDefault={rate:0.5,pitch:0.5,volume:0.
5};this.propertyMin={rate:0,pitch:0,volume:0};this.propertyMax={rate:1,pitch:1,v
olume:1};this.propertyStep={rate:0.1,pitch:0.1,volume:0.1};if(void 0==cvox.Abstr
actTts.pronunciationDictionaryRegexp_){var a=[],b;for(b in cvox.AbstractTts.PRON
UNCIATION_DICTIONARY)a.push(b);a="\\b("+a.join("|")+")\\b";cvox.AbstractTts.pron
unciationDictionaryRegexp_=new RegExp(a,"ig")}if(void 0==cvox.AbstractTts.substi
tutionDictionaryRegexp_){var a= |
613 [],c;for(c in cvox.AbstractTts.SUBSTITUTION_DICTIONARY)a.push(c);a="("+a.join("|
")+")";cvox.AbstractTts.substitutionDictionaryRegexp_=RegExp(a,"ig")}};cvox.Abst
ractTts.prototype.speak=function(){return this};cvox.AbstractTts.prototype.isSpe
aking=function(){return!1};cvox.AbstractTts.prototype.stop=function(){};cvox.Abs
tractTts.prototype.addCapturingEventListener=function(){}; | 613 [],c;for(c in cvox.AbstractTts.SUBSTITUTION_DICTIONARY)a.push(c);a="("+a.join("|
")+")";cvox.AbstractTts.substitutionDictionaryRegexp_=new RegExp(a,"ig")}};cvox.
AbstractTts.prototype.speak=function(){return this};cvox.AbstractTts.prototype.i
sSpeaking=function(){return!1};cvox.AbstractTts.prototype.stop=function(){};cvox
.AbstractTts.prototype.addCapturingEventListener=function(){}; |
614 cvox.AbstractTts.prototype.increaseOrDecreaseProperty=function(a,b){var c=this.p
ropertyMin[a],d=this.propertyMax[a],e=this.propertyStep[a],f=this.ttsProperties[
a],f=b?f+e:f-e;this.ttsProperties[a]=Math.max(Math.min(f,d),c)}; | 614 cvox.AbstractTts.prototype.increaseOrDecreaseProperty=function(a,b){var c=this.p
ropertyMin[a],d=this.propertyMax[a],e=this.propertyStep[a],f=this.ttsProperties[
a],f=b?f+e:f-e;this.ttsProperties[a]=Math.max(Math.min(f,d),c)}; |
615 cvox.AbstractTts.prototype.mergeProperties=function(a){var b={},c;if(this.ttsPro
perties)for(c in this.ttsProperties)b[c]=this.ttsProperties[c];if(a){c=cvox.Abst
ractTts;"number"==typeof a[c.VOLUME]&&(b[c.VOLUME]=a[c.VOLUME]);"number"==typeof
a[c.PITCH]&&(b[c.PITCH]=a[c.PITCH]);"number"==typeof a[c.RATE]&&(b[c.RATE]=a[c.
RATE]);"string"==typeof a[c.LANG]&&(b[c.LANG]=a[c.LANG]);var d=this,e=function(c
,e){if("number"==typeof a[e]&&"number"==typeof b[c]){b[c]+=a[e];var h=d.property
Min[c],k=d.propertyMax[c]; | 615 cvox.AbstractTts.prototype.mergeProperties=function(a){var b={},c;if(this.ttsPro
perties)for(c in this.ttsProperties)b[c]=this.ttsProperties[c];if(a){c=cvox.Abst
ractTts;"number"==typeof a[c.VOLUME]&&(b[c.VOLUME]=a[c.VOLUME]);"number"==typeof
a[c.PITCH]&&(b[c.PITCH]=a[c.PITCH]);"number"==typeof a[c.RATE]&&(b[c.RATE]=a[c.
RATE]);"string"==typeof a[c.LANG]&&(b[c.LANG]=a[c.LANG]);var d=this,e=function(c
,e){if("number"==typeof a[e]&&"number"==typeof b[c]){b[c]+=a[e];var h=d.property
Min[c],k=d.propertyMax[c]; |
616 b[c]>k?b[c]=k:b[c]<h&&(b[c]=h)}};e(c.VOLUME,c.RELATIVE_VOLUME);e(c.PITCH,c.RELAT
IVE_PITCH);e(c.RATE,c.RELATIVE_RATE)}return b}; | 616 b[c]>k?b[c]=k:b[c]<h&&(b[c]=h)}};e(c.VOLUME,c.RELATIVE_VOLUME);e(c.PITCH,c.RELAT
IVE_PITCH);e(c.RATE,c.RELATIVE_RATE)}return b}; |
617 cvox.AbstractTts.prototype.preprocess=function(a,b){if(1==a.length&&"A"<=a&&"Z">
=a)for(var c in cvox.AbstractTts.PERSONALITY_CAPITAL)b[c]=cvox.AbstractTts.PERSO
NALITY_CAPITAL[c];a=a.replace(cvox.AbstractTts.substitutionDictionaryRegexp_,fun
ction(a){return" "+cvox.AbstractTts.SUBSTITUTION_DICTIONARY[a]+" "});if(1==a.len
gth)return cvox.AbstractTts.CHARACTER_DICTIONARY[a]?(new goog.i18n.MessageFormat
(cvox.ChromeVox.msgs.getMsg(cvox.AbstractTts.CHARACTER_DICTIONARY[a]))).format({
COUNT:1}):a.toUpperCase(); | 617 cvox.AbstractTts.prototype.preprocess=function(a,b){if(1==a.length&&"A"<=a&&"Z">
=a)for(var c in cvox.AbstractTts.PERSONALITY_CAPITAL)b[c]=cvox.AbstractTts.PERSO
NALITY_CAPITAL[c];a=a.replace(cvox.AbstractTts.substitutionDictionaryRegexp_,fun
ction(a){return" "+cvox.AbstractTts.SUBSTITUTION_DICTIONARY[a]+" "});if(1==a.len
gth)return cvox.AbstractTts.CHARACTER_DICTIONARY[a]?(new goog.i18n.MessageFormat
(cvox.ChromeVox.msgs.getMsg(cvox.AbstractTts.CHARACTER_DICTIONARY[a]))).format({
COUNT:1}):a.toUpperCase(); |
618 a=a.replace(cvox.AbstractTts.pronunciationDictionaryRegexp_,function(a){return c
vox.AbstractTts.PRONUNCIATION_DICTIONARY[a.toLowerCase()]});a=a.replace(/google\
+/ig,"google plus");a=a.replace(cvox.AbstractTts.repetitionRegexp_,cvox.Abstract
Tts.repetitionReplace_);var d=!1;a.match(/[a-z]+/)||a.indexOf(" ")==a.lastIndexO
f(" ")||(d=!0);return a=a.replace(/[A-Z]+/g,function(a){return 3<a.length&&a.mat
ch(/([AEIOUY])/g)?a.toLowerCase():d?a:" "+a.split("").join(" ")})};cvox.Abstract
Tts.RATE="rate"; | 618 a=a.replace(cvox.AbstractTts.pronunciationDictionaryRegexp_,function(a){return c
vox.AbstractTts.PRONUNCIATION_DICTIONARY[a.toLowerCase()]});a=a.replace(/google\
+/ig,"google plus");a=a.replace(cvox.AbstractTts.repetitionRegexp_,cvox.Abstract
Tts.repetitionReplace_);var d=!1;a.match(/[a-z]+/)||a.indexOf(" ")==a.lastIndexO
f(" ")||(d=!0);return a=a.replace(/[A-Z]+/g,function(a){return 3<a.length&&a.mat
ch(/([AEIOUY])/g)?a.toLowerCase():d?a:" "+a.split("").join(" ")})};cvox.Abstract
Tts.RATE="rate"; |
619 cvox.AbstractTts.PITCH="pitch";cvox.AbstractTts.VOLUME="volume";cvox.AbstractTts
.LANG="lang";cvox.AbstractTts.RELATIVE_RATE="relativeRate";cvox.AbstractTts.RELA
TIVE_PITCH="relativePitch";cvox.AbstractTts.RELATIVE_VOLUME="relativeVolume";cvo
x.AbstractTts.COLOR="color";cvox.AbstractTts.FONT_WEIGHT="fontWeight";cvox.Abstr
actTts.PUNCTUATION_ECHO="punctuationEcho";cvox.AbstractTts.PAUSE="pause";cvox.Ab
stractTts.PERSONALITY_ANNOTATION={relativePitch:-0.25,color:"yellow",punctuation
Echo:"none"}; | 619 cvox.AbstractTts.PITCH="pitch";cvox.AbstractTts.VOLUME="volume";cvox.AbstractTts
.LANG="lang";cvox.AbstractTts.RELATIVE_RATE="relativeRate";cvox.AbstractTts.RELA
TIVE_PITCH="relativePitch";cvox.AbstractTts.RELATIVE_VOLUME="relativeVolume";cvo
x.AbstractTts.COLOR="color";cvox.AbstractTts.FONT_WEIGHT="fontWeight";cvox.Abstr
actTts.PUNCTUATION_ECHO="punctuationEcho";cvox.AbstractTts.PAUSE="pause";cvox.Ab
stractTts.PERSONALITY_ANNOTATION={relativePitch:-0.25,color:"yellow",punctuation
Echo:"none"}; |
620 cvox.AbstractTts.PERSONALITY_ANNOUNCEMENT={punctuationEcho:"none"};cvox.Abstract
Tts.PERSONALITY_SYSTEM_ALERT={punctuationEcho:"none",doNotInterrupt:!0};cvox.Abs
tractTts.PERSONALITY_ASIDE={relativePitch:-0.1,color:"#669"};cvox.AbstractTts.PE
RSONALITY_CAPITAL={relativePitch:0.6};cvox.AbstractTts.PERSONALITY_DELETED={punc
tuationEcho:"none",relativePitch:-0.6};cvox.AbstractTts.PERSONALITY_QUOTE={relat
ivePitch:0.1,color:"#b6b",fontWeight:"bold"}; | 620 cvox.AbstractTts.PERSONALITY_ANNOUNCEMENT={punctuationEcho:"none"};cvox.Abstract
Tts.PERSONALITY_SYSTEM_ALERT={punctuationEcho:"none",doNotInterrupt:!0};cvox.Abs
tractTts.PERSONALITY_ASIDE={relativePitch:-0.1,color:"#669"};cvox.AbstractTts.PE
RSONALITY_CAPITAL={relativePitch:0.6};cvox.AbstractTts.PERSONALITY_DELETED={punc
tuationEcho:"none",relativePitch:-0.6};cvox.AbstractTts.PERSONALITY_QUOTE={relat
ivePitch:0.1,color:"#b6b",fontWeight:"bold"}; |
621 cvox.AbstractTts.PERSONALITY_STRONG={relativePitch:0.1,color:"#b66",fontWeight:"
bold"};cvox.AbstractTts.PERSONALITY_EMPHASIS={relativeVolume:0.1,relativeRate:-0
.1,color:"#6bb",fontWeight:"bold"};cvox.AbstractTts.DEBUG=!0;cvox.AbstractTts.QU
EUE_MODE_FLUSH=0;cvox.AbstractTts.QUEUE_MODE_QUEUE=1; | 621 cvox.AbstractTts.PERSONALITY_STRONG={relativePitch:0.1,color:"#b66",fontWeight:"
bold"};cvox.AbstractTts.PERSONALITY_EMPHASIS={relativeVolume:0.1,relativeRate:-0
.1,color:"#6bb",fontWeight:"bold"};cvox.AbstractTts.DEBUG=!0;cvox.AbstractTts.QU
EUE_MODE_FLUSH=0;cvox.AbstractTts.QUEUE_MODE_QUEUE=1; |
622 cvox.AbstractTts.CHARACTER_DICTIONARY={" ":"space","`":"backtick","~":"tilde","!
":"exclamation","@":"at","#":"pound",$:"dollar","%":"percent","^":"caret","&":"a
mpersand","*":"asterisk","(":"open_paren",")":"close_paren","-":"dash",_:"unders
core","=":"equals","+":"plus","[":"left_bracket","]":"right_bracket","{":"left_b
race","}":"right_brace","|":"pipe",";":"semicolon",":":"colon",",":"comma",".":"
dot","<":"less_than",">":"greater_than","/":"slash","?":"question_mark",'"':"quo
te","'":"apostrophe", | 622 cvox.AbstractTts.CHARACTER_DICTIONARY={" ":"space","`":"backtick","~":"tilde","!
":"exclamation","@":"at","#":"pound",$:"dollar","%":"percent","^":"caret","&":"a
mpersand","*":"asterisk","(":"open_paren",")":"close_paren","-":"dash",_:"unders
core","=":"equals","+":"plus","[":"left_bracket","]":"right_bracket","{":"left_b
race","}":"right_brace","|":"pipe",";":"semicolon",":":"colon",",":"comma",".":"
dot","<":"less_than",">":"greater_than","/":"slash","?":"question_mark",'"':"quo
te","'":"apostrophe", |
623 "\t":"tab","\r":"return","\n":"new_line","\\":"backslash"};cvox.AbstractTts.PRON
UNCIATION_DICTIONARY={admob:"ad-mob",adsense:"ad-sense",adwords:"ad-words",angul
arjs:"angular j s",bcc:"B C C",cc:"C C",chromevox:"chrome vox",cr48:"C R 48",ctr
l:"control",doubleclick:"double-click",gmail:"gee mail",gtalk:"gee talk",http:"H
T T P",https:"H T T P S",igoogle:"eye google",pagerank:"page-rank",username:"us
er-name",www:"W W W",youtube:"you tube"}; | 623 "\t":"tab","\r":"return","\n":"new_line","\\":"backslash"};cvox.AbstractTts.PRON
UNCIATION_DICTIONARY={admob:"ad-mob",adsense:"ad-sense",adwords:"ad-words",angul
arjs:"angular j s",bcc:"B C C",cc:"C C",chromevox:"chrome vox",cr48:"C R 48",ctr
l:"control",doubleclick:"double-click",gmail:"gee mail",gtalk:"gee talk",http:"H
T T P",https:"H T T P S",igoogle:"eye google",pagerank:"page-rank",username:"us
er-name",www:"W W W",youtube:"you tube"}; |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
703 cvox.DomUtil.getControlLabelHeuristics=function(a){if(a.hasAttribute&&(a.hasAttr
ibute("aria-label")&&""==a.getAttribute("aria-label")||a.hasAttribute("aria-titl
e")&&""==a.getAttribute("aria-title")))return"";for(var b=cvox.DomUtil.previousL
eafNode(a),c=0;b&&(!cvox.DomUtil.hasContent(b)||cvox.DomUtil.isControl(b));)b=cv
ox.DomUtil.previousLeafNode(b),c++;for(var c=cvox.DomUtil.directedNextLeafNode(a
),d=0;c&&(!cvox.DomUtil.hasContent(c)||cvox.DomUtil.isControl(c));)c=cvox.DomUti
l.directedNextLeafNode(c), | 703 cvox.DomUtil.getControlLabelHeuristics=function(a){if(a.hasAttribute&&(a.hasAttr
ibute("aria-label")&&""==a.getAttribute("aria-label")||a.hasAttribute("aria-titl
e")&&""==a.getAttribute("aria-title")))return"";for(var b=cvox.DomUtil.previousL
eafNode(a),c=0;b&&(!cvox.DomUtil.hasContent(b)||cvox.DomUtil.isControl(b));)b=cv
ox.DomUtil.previousLeafNode(b),c++;for(var c=cvox.DomUtil.directedNextLeafNode(a
),d=0;c&&(!cvox.DomUtil.hasContent(c)||cvox.DomUtil.isControl(c));)c=cvox.DomUti
l.directedNextLeafNode(c), |
704 d++;if(b&&c){for(var d=a,e=0;d&&!cvox.DomUtil.isDescendantOfNode(b,d);)d=d.paren
tNode,e++;d=a;for(a=0;d&&!cvox.DomUtil.isDescendantOfNode(c,d);)d=d.parentNode,a
++;b=a<e?c:b}else b=b||c;return b?cvox.DomUtil.collapseWhitespace(cvox.DomUtil.g
etValue(b)+" "+cvox.DomUtil.getName(b)):""}; | 704 d++;if(b&&c){for(var d=a,e=0;d&&!cvox.DomUtil.isDescendantOfNode(b,d);)d=d.paren
tNode,e++;d=a;for(a=0;d&&!cvox.DomUtil.isDescendantOfNode(c,d);)d=d.parentNode,a
++;b=a<e?c:b}else b=b||c;return b?cvox.DomUtil.collapseWhitespace(cvox.DomUtil.g
etValue(b)+" "+cvox.DomUtil.getName(b)):""}; |
705 cvox.DomUtil.getValue=function(a){var b=cvox.AriaUtil.getActiveDescendant(a);if(
b)return cvox.DomUtil.collapseWhitespace(cvox.DomUtil.getValue(b)+" "+cvox.DomUt
il.getName(b));if(a.constructor==HTMLSelectElement){var b="",c=a.selectedOptions
?a.selectedOptions[0]:null;a=a.selectedOptions?a.selectedOptions[a.selectedOptio
ns.length-1]:null;c&&a&&c!=a?b=cvox.ChromeVox.msgs.getMsg("selected_options_valu
e",[c.text,a.text]):c&&(b=c.text+"");return b}if(a.constructor==HTMLTextAreaElem
ent)return a.value;if(a.constructor== | 705 cvox.DomUtil.getValue=function(a){var b=cvox.AriaUtil.getActiveDescendant(a);if(
b)return cvox.DomUtil.collapseWhitespace(cvox.DomUtil.getValue(b)+" "+cvox.DomUt
il.getName(b));if(a.constructor==HTMLSelectElement){var b="",c=a.selectedOptions
?a.selectedOptions[0]:null;a=a.selectedOptions?a.selectedOptions[a.selectedOptio
ns.length-1]:null;c&&a&&c!=a?b=cvox.ChromeVox.msgs.getMsg("selected_options_valu
e",[c.text,a.text]):c&&(b=c.text+"");return b}if(a.constructor==HTMLTextAreaElem
ent)return a.value;if(a.constructor== |
706 HTMLInputElement)switch(a.type){case "hidden":case "image":case "submit":case "r
eset":case "button":case "checkbox":case "radio":return"";case "password":return
a.value.replace(/./g,"dot ");default:return a.value}return a.isContentEditable?
cvox.DomUtil.getNameFromChildren(a,!0):""}; | 706 HTMLInputElement)switch(a.type){case "hidden":case "image":case "submit":case "r
eset":case "button":case "checkbox":case "radio":return"";case "password":return
a.value.replace(/./g,"dot ");default:return a.value}return a.isContentEditable?
cvox.DomUtil.getNameFromChildren(a,!0):""}; |
707 cvox.DomUtil.getImageTitle=function(a){a.hasAttribute("alt")?a=a.alt:a.hasAttrib
ute("title")?a=a.title:(a=a.src,"data"!=a.substring(0,4)?(a=a.substring(a.lastIn
dexOf("/")+1,a.lastIndexOf(".")),a=1<=a.length&&16>=a.length?a+" Image":"Image")
:a="Image");return a}; | 707 cvox.DomUtil.getImageTitle=function(a){a.hasAttribute("alt")?a=a.alt:a.hasAttrib
ute("title")?a=a.title:(a=a.src,"data"!=a.substring(0,4)?(a=a.substring(a.lastIn
dexOf("/")+1,a.lastIndexOf(".")),a=1<=a.length&&16>=a.length?a+" Image":"Image")
:a="Image");return a}; |
708 cvox.DomUtil.hasContent=function(a){if(8==a.nodeType||cvox.DomUtil.isDescendantO
f(a,"HEAD")||cvox.DomUtil.isDescendantOf(a,"SCRIPT")||cvox.DomUtil.isDescendantO
f(a,"NOSCRIPT")||cvox.DomUtil.isDescendantOf(a,"NOEMBED")||cvox.DomUtil.isDescen
dantOf(a,"STYLE")||!cvox.DomUtil.isVisible(a)||cvox.AriaUtil.isHidden(a))return!
1;if(cvox.DomUtil.isControl(a)||cvox.DomUtil.isDescendantOf(a,"VIDEO")||cvox.Dom
Util.isDescendantOf(a,"AUDIO")||"IFRAME"==a.tagName&&a.src&&0!=a.src.indexOf("ja
vascript:"))return!0; | 708 cvox.DomUtil.hasContent=function(a){if(8==a.nodeType||cvox.DomUtil.isDescendantO
f(a,"HEAD")||cvox.DomUtil.isDescendantOf(a,"SCRIPT")||cvox.DomUtil.isDescendantO
f(a,"NOSCRIPT")||cvox.DomUtil.isDescendantOf(a,"NOEMBED")||cvox.DomUtil.isDescen
dantOf(a,"STYLE")||!cvox.DomUtil.isVisible(a)||cvox.AriaUtil.isHidden(a))return!
1;if(cvox.DomUtil.isControl(a)||cvox.DomUtil.isDescendantOf(a,"VIDEO")||cvox.Dom
Util.isDescendantOf(a,"AUDIO")||"IFRAME"==a.tagName&&a.src&&0!=a.src.indexOf("ja
vascript:"))return!0; |
709 for(var b="button,input,select,textarea",c=a.parentElement;c&&"LABEL"!=c.tagName
;)c=c.parentElement;if(c){var d=c.querySelector(b);if(c.hasAttribute("for")){if(
c=c.getAttribute("for"),(c=document.getElementById(c))&&cvox.DomUtil.isControl(c
)&&!d)return!1}else if(d)return!1}for(d=a.parentElement;d&&"LEGEND"!=d.tagName;)
d=d.parentElement;if(d){for(c=d.parentElement;c&&"FIELDSET"!=c.tagName;)c=c.pare
ntElement;d=c&&c.querySelector(b);if(c&&!d)return!1}if(cvox.DomPredicates.linkPr
edicate([a])||"TABLE"== | 709 for(var b="button,input,select,textarea",c=a.parentElement;c&&"LABEL"!=c.tagName
;)c=c.parentElement;if(c){var d=c.querySelector(b);if(c.hasAttribute("for")){if(
c=c.getAttribute("for"),(c=document.getElementById(c))&&cvox.DomUtil.isControl(c
)&&!d)return!1}else if(d)return!1}for(d=a.parentElement;d&&"LEGEND"!=d.tagName;)
d=d.parentElement;if(d){for(c=d.parentElement;c&&"FIELDSET"!=c.tagName;)c=c.pare
ntElement;d=c&&c.querySelector(b);if(c&&!d)return!1}if(cvox.DomPredicates.linkPr
edicate([a])||"TABLE"== |
710 a.tagName&&!cvox.DomUtil.isLayoutTable(a)||cvox.DomUtil.isMath(a)||cvox.DomPredi
cates.headingPredicate([a]))return!0;b=cvox.DomUtil.getValue(a)+" "+cvox.DomUtil
.getName(a);a=cvox.DomUtil.getState(a,!0);return b.match(/^\s+$/)&&""===a?!1:!0}
;cvox.DomUtil.getAncestors=function(a){for(var b=[];a;)b.push(a),a=a.parentNode;
for(b.reverse();b.length&&!b[0].tagName&&!b[0].nodeValue;)b.shift();return b}; | 710 a.tagName&&!cvox.DomUtil.isLayoutTable(a)||cvox.DomUtil.isMath(a)||cvox.DomPredi
cates.headingPredicate([a]))return!0;b=cvox.DomUtil.getValue(a)+" "+cvox.DomUtil
.getName(a);a=cvox.DomUtil.getState(a,!0);return b.match(/^\s+$/)&&""===a?!1:!0}
;cvox.DomUtil.getAncestors=function(a){for(var b=[];a;)b.push(a),a=a.parentNode;
for(b.reverse();b.length&&!b[0].tagName&&!b[0].nodeValue;)b.shift();return b}; |
711 cvox.DomUtil.compareAncestors=function(a,b){for(var c=0;a[c]&&b[c]&&a[c]==b[c];)
c++;a[c]||b[c]||(c=-1);return c};cvox.DomUtil.getUniqueAncestors=function(a,b,c)
{a=cvox.DomUtil.getAncestors(a);b=cvox.DomUtil.getAncestors(b);a=cvox.DomUtil.co
mpareAncestors(a,b);a=b.slice(a);return 0==a.length&&c?b:a}; | 711 cvox.DomUtil.compareAncestors=function(a,b){for(var c=0;a[c]&&b[c]&&a[c]==b[c];)
c++;a[c]||b[c]||(c=-1);return c};cvox.DomUtil.getUniqueAncestors=function(a,b,c)
{a=cvox.DomUtil.getAncestors(a);b=cvox.DomUtil.getAncestors(b);a=cvox.DomUtil.co
mpareAncestors(a,b);a=b.slice(a);return 0==a.length&&c?b:a}; |
712 cvox.DomUtil.getRoleMsg=function(a,b){var c;c=cvox.AriaUtil.getRoleNameMsg(a);c|
|("INPUT"==a.tagName?c=cvox.DomUtil.INPUT_TYPE_TO_INFORMATION_TABLE_MSG[a.type]:
"A"==a.tagName&&cvox.DomUtil.isInternalLink(a)?c="internal_link":"A"==a.tagName&
&a.getAttribute("name")?c="":a.isContentEditable?c="input_type_text":cvox.DomUti
l.isMath(a)?c="math_expr":"TABLE"==a.tagName&&cvox.DomUtil.isLayoutTable(a)?c=""
:b==cvox.VERBOSITY_BRIEF?c=cvox.DomUtil.TAG_TO_INFORMATION_TABLE_BRIEF_MSG[a.tag
Name]:(c=cvox.DomUtil.TAG_TO_INFORMATION_TABLE_VERBOSE_MSG[a.tagName], | 712 cvox.DomUtil.getRoleMsg=function(a,b){var c;c=cvox.AriaUtil.getRoleNameMsg(a);c|
|("INPUT"==a.tagName?c=cvox.DomUtil.INPUT_TYPE_TO_INFORMATION_TABLE_MSG[a.type]:
"A"==a.tagName&&cvox.DomUtil.isInternalLink(a)?c="internal_link":"A"==a.tagName&
&a.getAttribute("name")?c="":a.isContentEditable?c="input_type_text":cvox.DomUti
l.isMath(a)?c="math_expr":"TABLE"==a.tagName&&cvox.DomUtil.isLayoutTable(a)?c=""
:b==cvox.VERBOSITY_BRIEF?c=cvox.DomUtil.TAG_TO_INFORMATION_TABLE_BRIEF_MSG[a.tag
Name]:(c=cvox.DomUtil.TAG_TO_INFORMATION_TABLE_VERBOSE_MSG[a.tagName], |
713 cvox.DomUtil.hasLongDesc(a)&&(c="image_with_long_desc"),!c&&a.onclick&&(c="click
able")));return c};cvox.DomUtil.getRole=function(a,b){var c=cvox.DomUtil.getRole
Msg(a,b)||"",d=c&&" "!=c?cvox.ChromeVox.msgs.getMsg(c):"";return d?d:c};cvox.Dom
Util.getListLength=function(a){var b=0;for(a=a.firstChild;a;a=a.nextSibling)if("
LI"==a.tagName||a.getAttribute&&"listitem"==a.getAttribute("role")){if(a.hasAttr
ibute("aria-setsize")){var c=parseInt(a.getAttribute("aria-setsize"),10);if(!isN
aN(c))return c}b++}return b}; | 713 cvox.DomUtil.hasLongDesc(a)&&(c="image_with_long_desc"),!c&&a.onclick&&(c="click
able")));return c};cvox.DomUtil.getRole=function(a,b){var c=cvox.DomUtil.getRole
Msg(a,b)||"",d=c&&" "!=c?cvox.ChromeVox.msgs.getMsg(c):"";return d?d:c}; |
| 714 cvox.DomUtil.getListLength=function(a){var b=0;for(a=a.firstChild;a;a=a.nextSibl
ing)if(cvox.DomUtil.isVisible(a)&&("LI"==a.tagName||a.getAttribute&&"listitem"==
a.getAttribute("role"))){if(a.hasAttribute("aria-setsize")){var c=parseInt(a.get
Attribute("aria-setsize"),10);if(!isNaN(c))return c}b++}return b}; |
714 cvox.DomUtil.getStateMsgs=function(a,b){var c=cvox.AriaUtil.getActiveDescendant(
a);if(c)return cvox.DomUtil.getStateMsgs(c,b);var c=[],d=a.getAttribute?a.getAtt
ribute("role"):"";(c=cvox.AriaUtil.getStateMsgs(a,b))||(c=[]);"INPUT"==a.tagName
?a.hasAttribute("aria-checked")||(d={"checkbox-true":"checkbox_checked_state","c
heckbox-false":"checkbox_unchecked_state","radio-true":"radio_selected_state","r
adio-false":"radio_unselected_state"},(d=d[a.type+"-"+!!a.checked])&&c.push([d])
):"SELECT"==a.tagName? | 715 cvox.DomUtil.getStateMsgs=function(a,b){var c=cvox.AriaUtil.getActiveDescendant(
a);if(c)return cvox.DomUtil.getStateMsgs(c,b);var c=[],d=a.getAttribute?a.getAtt
ribute("role"):"";(c=cvox.AriaUtil.getStateMsgs(a,b))||(c=[]);"INPUT"==a.tagName
?a.hasAttribute("aria-checked")||(d={"checkbox-true":"checkbox_checked_state","c
heckbox-false":"checkbox_unchecked_state","radio-true":"radio_selected_state","r
adio-false":"radio_unselected_state"},(d=d[a.type+"-"+!!a.checked])&&c.push([d])
):"SELECT"==a.tagName? |
715 a.selectedOptions&&1>=a.selectedOptions.length?c.push(["list_position",cvox.Chro
meVox.msgs.getNumber(a.selectedIndex+1),cvox.ChromeVox.msgs.getNumber(a.options.
length)]):c.push(["selected_options_state",cvox.ChromeVox.msgs.getNumber(a.selec
tedOptions.length)]):"UL"!=a.tagName&&"OL"!=a.tagName&&"list"!=d||c.push(["list_
with_items",cvox.ChromeVox.msgs.getNumber(cvox.DomUtil.getListLength(a))]);cvox.
DomUtil.isDisabled(a)&&c.push(["aria_disabled_true"]);cvox.DomPredicates.linkPre
dicate([a])&&cvox.ChromeVox.visitedUrls[a.href]&& | 716 a.selectedOptions&&1>=a.selectedOptions.length?c.push(["list_position",cvox.Chro
meVox.msgs.getNumber(a.selectedIndex+1),cvox.ChromeVox.msgs.getNumber(a.options.
length)]):c.push(["selected_options_state",cvox.ChromeVox.msgs.getNumber(a.selec
tedOptions.length)]):"UL"!=a.tagName&&"OL"!=a.tagName&&"list"!=d||c.push(["list_
with_items",cvox.ChromeVox.msgs.getNumber(cvox.DomUtil.getListLength(a))]);cvox.
DomUtil.isDisabled(a)&&c.push(["aria_disabled_true"]);cvox.DomPredicates.linkPre
dicate([a])&&cvox.ChromeVox.visitedUrls[a.href]&& |
716 c.push(["visited_url"]);a.accessKey&&c.push(["access_key",a.accessKey]);return c
};cvox.DomUtil.getState=function(a,b){return cvox.NodeStateUtil.expand(cvox.DomU
til.getStateMsgs(a,b))};cvox.DomUtil.isFocusable=function(a){return a&&"number"=
=typeof a.tabIndex&&("A"!=a.tagName||a.hasAttribute("href")||a.hasAttribute("tab
index"))?0<=a.tabIndex||a.hasAttribute&&a.hasAttribute("tabindex")&&"-1"==a.getA
ttribute("tabindex")?!0:!1:!1}; | 717 c.push(["visited_url"]);a.accessKey&&c.push(["access_key",a.accessKey]);return c
};cvox.DomUtil.getState=function(a,b){return cvox.NodeStateUtil.expand(cvox.DomU
til.getStateMsgs(a,b))};cvox.DomUtil.isFocusable=function(a){return a&&"number"=
=typeof a.tabIndex&&("A"!=a.tagName||a.hasAttribute("href")||a.hasAttribute("tab
index"))?0<=a.tabIndex||a.hasAttribute&&a.hasAttribute("tabindex")&&"-1"==a.getA
ttribute("tabindex")?!0:!1:!1}; |
717 cvox.DomUtil.findFocusableDescendant=function(a){return a&&(a=cvox.DomUtil.findN
ode(a,cvox.DomUtil.isFocusable))?a:null};cvox.DomUtil.countFocusableDescendants=
function(a){return a?cvox.DomUtil.countNodes(a,cvox.DomUtil.isFocusable):0};cvox
.DomUtil.isAttachedToDocument=function(a){for(;a;){if(a.tagName&&"HTML"==a.tagNa
me)return!0;a=a.parentNode}return!1}; | 718 cvox.DomUtil.findFocusableDescendant=function(a){return a&&(a=cvox.DomUtil.findN
ode(a,cvox.DomUtil.isFocusable))?a:null};cvox.DomUtil.countFocusableDescendants=
function(a){return a?cvox.DomUtil.countNodes(a,cvox.DomUtil.isFocusable):0};cvox
.DomUtil.isAttachedToDocument=function(a){for(;a;){if(a.tagName&&"HTML"==a.tagNa
me)return!0;a=a.parentNode}return!1}; |
718 cvox.DomUtil.clickElem=function(a,b,c,d){var e=cvox.AriaUtil.getActiveDescendant
(a);e&&(a=e);if(c){c=null;a.onclick&&(c=a.onclick);!c&&1!=a.nodeType&&a.parentNo
de&&a.parentNode.onclick&&(c=a.parentNode.onclick);e=!0;if(c)try{e=c()}catch(f){
}if(!e)return}c=document.createEvent("MouseEvents");d=d?"dblclick":"mousedown";c
.initMouseEvent(d,!0,!0,document.defaultView,1,0,0,0,0,!1,!1,b,!1,0,null);c.from
Cvox=!0;try{a.dispatchEvent(c)}catch(g){}c=document.createEvent("MouseEvents");c
.initMouseEvent("mouseup", | 719 cvox.DomUtil.clickElem=function(a,b,c,d){var e=cvox.AriaUtil.getActiveDescendant
(a);e&&(a=e);if(c){c=null;a.onclick&&(c=a.onclick);!c&&1!=a.nodeType&&a.parentNo
de&&a.parentNode.onclick&&(c=a.parentNode.onclick);e=!0;if(c)try{e=c()}catch(f){
}if(!e)return}c=document.createEvent("MouseEvents");d=d?"dblclick":"mousedown";c
.initMouseEvent(d,!0,!0,document.defaultView,1,0,0,0,0,!1,!1,b,!1,0,null);c.from
Cvox=!0;try{a.dispatchEvent(c)}catch(g){}c=document.createEvent("MouseEvents");c
.initMouseEvent("mouseup", |
719 !0,!0,document.defaultView,1,0,0,0,0,!1,!1,b,!1,0,null);c.fromCvox=!0;try{a.disp
atchEvent(c)}catch(h){}c=document.createEvent("MouseEvents");c.initMouseEvent("c
lick",!0,!0,document.defaultView,1,0,0,0,0,!1,!1,b,!1,0,null);c.fromCvox=!0;try{
a.dispatchEvent(c)}catch(k){}cvox.DomUtil.isInternalLink(a)&&cvox.DomUtil.syncIn
ternalLink(a)}; | 720 !0,!0,document.defaultView,1,0,0,0,0,!1,!1,b,!1,0,null);c.fromCvox=!0;try{a.disp
atchEvent(c)}catch(h){}c=document.createEvent("MouseEvents");c.initMouseEvent("c
lick",!0,!0,document.defaultView,1,0,0,0,0,!1,!1,b,!1,0,null);c.fromCvox=!0;try{
a.dispatchEvent(c)}catch(k){}cvox.DomUtil.isInternalLink(a)&&cvox.DomUtil.syncIn
ternalLink(a)}; |
720 cvox.DomUtil.syncInternalLink=function(a){var b=a.href.split("#")[1];a=document.
getElementById(b);a||(b=document.getElementsByName(b),0<b.length&&(a=b[0]));if(a
){var b=a.parentNode,c=document.createElement("div");c.setAttribute("tabindex","
-1");b.insertBefore(c,a);c.setAttribute("chromevoxignoreariahidden",1);c.focus()
;cvox.ChromeVox.syncToNode(a,!1)}}; | 721 cvox.DomUtil.syncInternalLink=function(a){var b=a.href.split("#")[1];a=document.
getElementById(b);a||(b=document.getElementsByName(b),0<b.length&&(a=b[0]));if(a
){var b=a.parentNode,c=document.createElement("div");c.setAttribute("tabindex","
-1");b.insertBefore(c,a);c.setAttribute("chromevoxignoreariahidden",1);c.focus()
;cvox.ChromeVox.syncToNode(a,!1)}}; |
721 cvox.DomUtil.isInputTypeText=function(a){if(!a||a.constructor!=HTMLInputElement)
return!1;switch(a.type){case "email":case "number":case "password":case "search"
:case "text":case "tel":case "url":case "":return!0;default:return!1}};cvox.DomU
til.isControl=function(a){if(cvox.AriaUtil.isControlWidget(a)&&cvox.DomUtil.isFo
cusable(a))return!0;if(a.tagName)switch(a.tagName){case "BUTTON":case "TEXTAREA"
:case "SELECT":return!0;case "INPUT":return"hidden"!=a.type}return a.isContentEd
itable?!0:!1}; | 722 cvox.DomUtil.isInputTypeText=function(a){if(!a||a.constructor!=HTMLInputElement)
return!1;switch(a.type){case "email":case "number":case "password":case "search"
:case "text":case "tel":case "url":case "":return!0;default:return!1}};cvox.DomU
til.isControl=function(a){if(cvox.AriaUtil.isControlWidget(a)&&cvox.DomUtil.isFo
cusable(a))return!0;if(a.tagName)switch(a.tagName){case "BUTTON":case "TEXTAREA"
:case "SELECT":return!0;case "INPUT":return"hidden"!=a.type}return a.isContentEd
itable?!0:!1}; |
722 cvox.DomUtil.isLeafLevelControl=function(a){return cvox.DomUtil.isControl(a)?!(c
vox.AriaUtil.isCompositeControl(a)&&cvox.DomUtil.findFocusableDescendant(a)):!1}
;cvox.DomUtil.getSurroundingControl=function(a){var b=null;if(!cvox.DomUtil.isCo
ntrol(a)&&a.hasAttribute&&a.hasAttribute("role"))for(b=a.parentElement;b&&!cvox.
AriaUtil.isCompositeControl(b);)b=b.parentElement;return b}; | 723 cvox.DomUtil.isLeafLevelControl=function(a){return cvox.DomUtil.isControl(a)?!(c
vox.AriaUtil.isCompositeControl(a)&&cvox.DomUtil.findFocusableDescendant(a)):!1}
;cvox.DomUtil.getSurroundingControl=function(a){var b=null;if(!cvox.DomUtil.isCo
ntrol(a)&&a.hasAttribute&&a.hasAttribute("role"))for(b=a.parentElement;b&&!cvox.
AriaUtil.isCompositeControl(b);)b=b.parentElement;return b}; |
723 cvox.DomUtil.directedNextLeafLikeNode=function(a,b,c){if(a!=document.body){for(;
!cvox.DomUtil.directedNextSibling(a,b);){if(!a)return null;a=a.parentNode;if(a==
document.body)return null}cvox.DomUtil.directedNextSibling(a,b)&&(a=cvox.DomUtil
.directedNextSibling(a,b))}for(;cvox.DomUtil.directedFirstChild(a,b)&&!c(a);)a=c
vox.DomUtil.directedFirstChild(a,b);return a==document.body?null:a};cvox.DomUtil
.directedNextLeafNode=function(a,b){b=!!b;return cvox.DomUtil.directedNextLeafLi
keNode(a,b,cvox.DomUtil.isLeafNode)}; | 724 cvox.DomUtil.directedNextLeafLikeNode=function(a,b,c){if(a!=document.body){for(;
!cvox.DomUtil.directedNextSibling(a,b);){if(!a)return null;a=a.parentNode;if(a==
document.body)return null}cvox.DomUtil.directedNextSibling(a,b)&&(a=cvox.DomUtil
.directedNextSibling(a,b))}for(;cvox.DomUtil.directedFirstChild(a,b)&&!c(a);)a=c
vox.DomUtil.directedFirstChild(a,b);return a==document.body?null:a};cvox.DomUtil
.directedNextLeafNode=function(a,b){b=!!b;return cvox.DomUtil.directedNextLeafLi
keNode(a,b,cvox.DomUtil.isLeafNode)}; |
724 cvox.DomUtil.previousLeafNode=function(a){return cvox.DomUtil.directedNextLeafNo
de(a,!0)};cvox.DomUtil.directedFindFirstNode=function(a,b,c){for(a=cvox.DomUtil.
directedFirstChild(a,b);a;){if(c(a))return a;var d=cvox.DomUtil.directedFindFirs
tNode(a,b,c);if(d)return d;a=cvox.DomUtil.directedNextSibling(a,b)}return null};
cvox.DomUtil.directedFindDeepestNode=function(a,b,c){var d=cvox.DomUtil.directed
FindFirstNode(a,b,c);return d?cvox.DomUtil.directedFindDeepestNode(d,b,c):c(a)?a
:null}; | 725 cvox.DomUtil.previousLeafNode=function(a){return cvox.DomUtil.directedNextLeafNo
de(a,!0)};cvox.DomUtil.directedFindFirstNode=function(a,b,c){for(a=cvox.DomUtil.
directedFirstChild(a,b);a;){if(c(a))return a;var d=cvox.DomUtil.directedFindFirs
tNode(a,b,c);if(d)return d;a=cvox.DomUtil.directedNextSibling(a,b)}return null};
cvox.DomUtil.directedFindDeepestNode=function(a,b,c){var d=cvox.DomUtil.directed
FindFirstNode(a,b,c);return d?cvox.DomUtil.directedFindDeepestNode(d,b,c):c(a)?a
:null}; |
725 cvox.DomUtil.directedFindNextNode=function(a,b,c,d,e,f){e=!!e;f=!!f;if(!cvox.Dom
Util.isDescendantOfNode(a,b)||a==b)return null;for(var g=cvox.DomUtil.directedNe
xtSibling(a,c);g;){if(!f&&d(g))return g;var h=(f?cvox.DomUtil.directedFindDeepes
tNode:cvox.DomUtil.directedFindFirstNode)(g,c,d);if(h)return h;if(f&&d(g))return
g;g=cvox.DomUtil.directedNextSibling(g,c)}a=a.parentNode;return e&&d(a)?a:cvox.
DomUtil.directedFindNextNode(a,b,c,d,e,f)}; | 726 cvox.DomUtil.directedFindNextNode=function(a,b,c,d,e,f){e=!!e;f=!!f;if(!cvox.Dom
Util.isDescendantOfNode(a,b)||a==b)return null;for(var g=cvox.DomUtil.directedNe
xtSibling(a,c);g;){if(!f&&d(g))return g;var h=(f?cvox.DomUtil.directedFindDeepes
tNode:cvox.DomUtil.directedFindFirstNode)(g,c,d);if(h)return h;if(f&&d(g))return
g;g=cvox.DomUtil.directedNextSibling(g,c)}a=a.parentNode;return e&&d(a)?a:cvox.
DomUtil.directedFindNextNode(a,b,c,d,e,f)}; |
726 cvox.DomUtil.getControlValueAndStateString=function(a){var b=cvox.DomUtil.getSur
roundingControl(a);return b?cvox.DomUtil.collapseWhitespace(cvox.DomUtil.getValu
e(a)+" "+cvox.DomUtil.getName(a)+" "+cvox.DomUtil.getState(a,!0)):cvox.DomUtil.c
ollapseWhitespace(cvox.DomUtil.getValue(a)+" "+cvox.DomUtil.getState(a,!0))};cvo
x.DomUtil.isInternalLink=function(a){return 1==a.nodeType&&(a=a.getAttribute("hr
ef"))&&-1!=a.indexOf("#")?(a=a.split("#")[0],""==a||a==window.location.pathname)
:!1}; | 727 cvox.DomUtil.getControlValueAndStateString=function(a){var b=cvox.DomUtil.getSur
roundingControl(a);return b?cvox.DomUtil.collapseWhitespace(cvox.DomUtil.getValu
e(a)+" "+cvox.DomUtil.getName(a)+" "+cvox.DomUtil.getState(a,!0)):cvox.DomUtil.c
ollapseWhitespace(cvox.DomUtil.getValue(a)+" "+cvox.DomUtil.getState(a,!0))};cvo
x.DomUtil.isInternalLink=function(a){return 1==a.nodeType&&(a=a.getAttribute("hr
ef"))&&-1!=a.indexOf("#")?(a=a.split("#")[0],""==a||a==window.location.pathname)
:!1}; |
727 cvox.DomUtil.getLinkURL=function(a){if("A"==a.tagName){if(a.getAttribute("href")
)return cvox.DomUtil.isInternalLink(a)?cvox.ChromeVox.msgs.getMsg("internal_link
"):a.getAttribute("href")}else if(cvox.AriaUtil.getRoleName(a)==cvox.ChromeVox.m
sgs.getMsg("aria_role_link"))return cvox.ChromeVox.msgs.getMsg("unknown_link");r
eturn""};cvox.DomUtil.getContainingTable=function(a,b){var c=cvox.DomUtil.getAnc
estors(a);return cvox.DomUtil.findTableNodeInList(c,b)}; | 728 cvox.DomUtil.getLinkURL=function(a){if("A"==a.tagName){if(a.getAttribute("href")
)return cvox.DomUtil.isInternalLink(a)?cvox.ChromeVox.msgs.getMsg("internal_link
"):a.getAttribute("href")}else if(cvox.AriaUtil.getRoleName(a)==cvox.ChromeVox.m
sgs.getMsg("aria_role_link"))return cvox.ChromeVox.msgs.getMsg("unknown_link");r
eturn""};cvox.DomUtil.getContainingTable=function(a,b){var c=cvox.DomUtil.getAnc
estors(a);return cvox.DomUtil.findTableNodeInList(c,b)}; |
728 cvox.DomUtil.findTableNodeInList=function(a,b){b=b||{allowCaptions:!1};for(var c
=a.length-1,d;d=a[c];c--)if(d.constructor!=Text){if(!b.allowCaptions&&"CAPTION"=
=d.tagName)break;if("TABLE"==d.tagName||cvox.AriaUtil.isGrid(d))return d}return
null}; | 729 cvox.DomUtil.findTableNodeInList=function(a,b){b=b||{allowCaptions:!1};for(var c
=a.length-1,d;d=a[c];c--)if(d.constructor!=Text){if(!b.allowCaptions&&"CAPTION"=
=d.tagName)break;if("TABLE"==d.tagName||cvox.AriaUtil.isGrid(d))return d}return
null}; |
729 cvox.DomUtil.isLayoutTable=function(a){if(a.rows&&(1>=a.rows.length||1==a.rows[0
].childElementCount))return!0;if(cvox.AriaUtil.isGrid(a)||cvox.AriaUtil.isLandma
rk(a)||a.caption||a.summary||0<cvox.XpathUtil.evalXPath("tbody/tr/th",a).length&
&0<cvox.XpathUtil.evalXPath("tbody/tr/td",a).length||0<cvox.XpathUtil.evalXPath(
"colgroup",a).length||0<cvox.XpathUtil.evalXPath("thead",a).length||0<cvox.Xpath
Util.evalXPath("tfoot",a).length)return!1;if(0<cvox.XpathUtil.evalXPath("tbody/t
r/td/embed",a).length|| | 730 cvox.DomUtil.isLayoutTable=function(a){if(a.rows&&(1>=a.rows.length||1==a.rows[0
].childElementCount))return!0;if(cvox.AriaUtil.isGrid(a)||cvox.AriaUtil.isLandma
rk(a)||a.caption||a.summary||0<cvox.XpathUtil.evalXPath("tbody/tr/th",a).length&
&0<cvox.XpathUtil.evalXPath("tbody/tr/td",a).length||0<cvox.XpathUtil.evalXPath(
"colgroup",a).length||0<cvox.XpathUtil.evalXPath("thead",a).length||0<cvox.Xpath
Util.evalXPath("tfoot",a).length)return!1;if(0<cvox.XpathUtil.evalXPath("tbody/t
r/td/embed",a).length|| |
730 0<cvox.XpathUtil.evalXPath("tbody/tr/td/object",a).length||0<cvox.XpathUtil.eval
XPath("tbody/tr/td/iframe",a).length||0<cvox.XpathUtil.evalXPath("tbody/tr/td/ap
plet",a).length)return!0;var b=0;cvox.DomUtil.hasBorder(a)||b++;6>=a.rows.length
&&b++;12>=cvox.DomUtil.countPreviousTags(a)&&b++;0<cvox.XpathUtil.evalXPath("tbo
dy/tr/td/table",a).length&&b++;return 3<=b};cvox.DomUtil.countPreviousTags=funct
ion(a){var b=cvox.DomUtil.getAncestors(a);return b.length+cvox.DomUtil.countPrev
iousSiblings(a)}; | 731 0<cvox.XpathUtil.evalXPath("tbody/tr/td/object",a).length||0<cvox.XpathUtil.eval
XPath("tbody/tr/td/iframe",a).length||0<cvox.XpathUtil.evalXPath("tbody/tr/td/ap
plet",a).length)return!0;var b=0;cvox.DomUtil.hasBorder(a)||b++;6>=a.rows.length
&&b++;12>=cvox.DomUtil.countPreviousTags(a)&&b++;0<cvox.XpathUtil.evalXPath("tbo
dy/tr/td/table",a).length&&b++;return 3<=b};cvox.DomUtil.countPreviousTags=funct
ion(a){var b=cvox.DomUtil.getAncestors(a);return b.length+cvox.DomUtil.countPrev
iousSiblings(a)}; |
731 cvox.DomUtil.countPreviousSiblings=function(a){var b=0;for(a=a.previousSibling;n
ull!=a;)a.constructor!=Text&&b++,a=a.previousSibling;return b};cvox.DomUtil.hasB
order=function(a){return a.frame?-1==a.frame.indexOf("void"):a.border?1==a.borde
r.length?"0"!=a.border:0!=a.border.slice(0,-2):a.style.borderStyle&&"none"==a.st
yle.borderStyle?!1:a.style.borderWidth?0!=a.style.borderWidth.slice(0,-2):a.styl
e.borderColor?!0:!1}; | 732 cvox.DomUtil.countPreviousSiblings=function(a){var b=0;for(a=a.previousSibling;n
ull!=a;)a.constructor!=Text&&b++,a=a.previousSibling;return b};cvox.DomUtil.hasB
order=function(a){return a.frame?-1==a.frame.indexOf("void"):a.border?1==a.borde
r.length?"0"!=a.border:0!=a.border.slice(0,-2):a.style.borderStyle&&"none"==a.st
yle.borderStyle?!1:a.style.borderWidth?0!=a.style.borderWidth.slice(0,-2):a.styl
e.borderColor?!0:!1}; |
732 cvox.DomUtil.getFirstLeafNode=function(){for(var a=document.body;a&&a.firstChild
;)a=a.firstChild;for(;a&&!cvox.DomUtil.hasContent(a);)a=cvox.DomUtil.directedNex
tLeafNode(a);return a};cvox.DomUtil.findNode=function(a,b){var c=[],d=cvox.DomUt
il.findNodes_(a,b,c,!0,1E4);return d?c[0]:void 0};cvox.DomUtil.countNodes=functi
on(a,b){var c=[];cvox.DomUtil.findNodes_(a,b,c,!1,1E4);return c.length}; | 733 cvox.DomUtil.getFirstLeafNode=function(){for(var a=document.body;a&&a.firstChild
;)a=a.firstChild;for(;a&&!cvox.DomUtil.hasContent(a);)a=cvox.DomUtil.directedNex
tLeafNode(a);return a};cvox.DomUtil.findNode=function(a,b){var c=[],d=cvox.DomUt
il.findNodes_(a,b,c,!0,1E4);return d?c[0]:void 0};cvox.DomUtil.countNodes=functi
on(a,b){var c=[];cvox.DomUtil.findNodes_(a,b,c,!1,1E4);return c.length}; |
733 cvox.DomUtil.findNodes_=function(a,b,c,d,e){if(null!=a||0==e)for(a=a.firstChild;
a;){if(b(a)&&(c.push(a),d))return!0;e-=1;if(cvox.DomUtil.findNodes_(a,b,c,d,e))r
eturn!0;a=a.nextSibling}return!1};cvox.DomUtil.toArray=function(a){for(var b=[],
c=0;c<a.length;c++)b.push(a[c]);return b}; | 734 cvox.DomUtil.findNodes_=function(a,b,c,d,e){if(null!=a||0==e)for(a=a.firstChild;
a;){if(b(a)&&(c.push(a),d))return!0;e-=1;if(cvox.DomUtil.findNodes_(a,b,c,d,e))r
eturn!0;a=a.nextSibling}return!1};cvox.DomUtil.toArray=function(a){for(var b=[],
c=0;c<a.length;c++)b.push(a[c]);return b}; |
734 cvox.DomUtil.shallowChildlessClone=function(a,b){if("#text"==a.nodeName)return d
ocument.createTextNode(a.nodeValue);if("#comment"==a.nodeName)return document.cr
eateComment(a.nodeValue);for(var c=document.createElement(a.nodeName),d=0;d<a.at
tributes.length;++d){var e=a.attributes[d];b&&b[e.nodeName]||c.setAttribute(e.no
deName,e.nodeValue)}return c}; | 735 cvox.DomUtil.shallowChildlessClone=function(a,b){if("#text"==a.nodeName)return d
ocument.createTextNode(a.nodeValue);if("#comment"==a.nodeName)return document.cr
eateComment(a.nodeValue);for(var c=document.createElement(a.nodeName),d=0;d<a.at
tributes.length;++d){var e=a.attributes[d];b&&b[e.nodeName]||c.setAttribute(e.no
deName,e.nodeValue)}return c}; |
735 cvox.DomUtil.deepClone=function(a,b){for(var c=cvox.DomUtil.shallowChildlessClon
e(a,b),d=0;d<a.childNodes.length;++d)c.appendChild(cvox.DomUtil.deepClone(a.chil
dNodes[d],b));return c};cvox.DomUtil.directedFirstChild=function(a,b){return b?a
.lastChild:a.firstChild};cvox.DomUtil.directedNextSibling=function(a,b){return a
?b?a.previousSibling:a.nextSibling:null};cvox.DomUtil.createSimpleClickFunction=
function(a){var b=a.cloneNode(!0);return function(){cvox.DomUtil.clickElem(b,!1,
!1)}}; | 736 cvox.DomUtil.deepClone=function(a,b){for(var c=cvox.DomUtil.shallowChildlessClon
e(a,b),d=0;d<a.childNodes.length;++d)c.appendChild(cvox.DomUtil.deepClone(a.chil
dNodes[d],b));return c};cvox.DomUtil.directedFirstChild=function(a,b){return b?a
.lastChild:a.firstChild};cvox.DomUtil.directedNextSibling=function(a,b){return a
?b?a.previousSibling:a.nextSibling:null};cvox.DomUtil.createSimpleClickFunction=
function(a){var b=a.cloneNode(!0);return function(){cvox.DomUtil.clickElem(b,!1,
!1)}}; |
736 cvox.DomUtil.addNodeToHead=function(a,b){if(!b||!document.getElementById(b)){var
c=document.head||document.body;c.appendChild(a)}};cvox.DomUtil.getContainingMat
h=function(a){a=cvox.DomUtil.getAncestors(a);return cvox.DomUtil.findMathNodeInL
ist(a)};cvox.DomUtil.findMathNodeInList=function(a){for(var b=0,c;c=a[b];b++)if(
cvox.DomUtil.isMath(c))return c;return null};cvox.DomUtil.isMath=function(a){ret
urn cvox.DomUtil.isMathml(a)||cvox.DomUtil.isMathJax(a)||cvox.DomUtil.isMathImg(
a)||cvox.AriaUtil.isMath(a)}; | 737 cvox.DomUtil.addNodeToHead=function(a,b){if(!b||!document.getElementById(b)){var
c=document.head||document.body;c.appendChild(a)}};cvox.DomUtil.getContainingMat
h=function(a){a=cvox.DomUtil.getAncestors(a);return cvox.DomUtil.findMathNodeInL
ist(a)};cvox.DomUtil.findMathNodeInList=function(a){for(var b=0,c;c=a[b];b++)if(
cvox.DomUtil.isMath(c))return c;return null};cvox.DomUtil.isMath=function(a){ret
urn cvox.DomUtil.isMathml(a)||cvox.DomUtil.isMathJax(a)||cvox.DomUtil.isMathImg(
a)||cvox.AriaUtil.isMath(a)}; |
737 cvox.DomUtil.ALT_MATH_CLASSES={tex:["tex","latex"],asciimath:["numberedequation"
,"inlineformula","displayformula"]};cvox.DomUtil.altMathQuerySelector=function(a
){return(a=cvox.DomUtil.ALT_MATH_CLASSES[a])?a.map(function(a){return"img."+a}).
join(", "):""};cvox.DomUtil.isMathImg=function(a){if(!a||!a.tagName||!a.classNam
e||"IMG"!=a.tagName)return!1;a=a.className.toLowerCase();return-1!=cvox.DomUtil.
ALT_MATH_CLASSES.tex.indexOf(a)||-1!=cvox.DomUtil.ALT_MATH_CLASSES.asciimath.ind
exOf(a)}; | 738 cvox.DomUtil.ALT_MATH_CLASSES={tex:["tex","latex"],asciimath:["numberedequation"
,"inlineformula","displayformula"]};cvox.DomUtil.altMathQuerySelector=function(a
){return(a=cvox.DomUtil.ALT_MATH_CLASSES[a])?a.map(function(a){return"img."+a}).
join(", "):""};cvox.DomUtil.isMathImg=function(a){if(!a||!a.tagName||!a.classNam
e||"IMG"!=a.tagName)return!1;a=a.className.toLowerCase();return-1!=cvox.DomUtil.
ALT_MATH_CLASSES.tex.indexOf(a)||-1!=cvox.DomUtil.ALT_MATH_CLASSES.asciimath.ind
exOf(a)}; |
738 cvox.DomUtil.isMathml=function(a){return a&&a.tagName?"math"==a.tagName.toLowerC
ase():!1};cvox.DomUtil.isMathJax=function(a){function b(a,b){return"SPAN"==a.tag
Name&&a.className.split(" ").some(function(a){return a.toLowerCase()==b})}return
a&&a.tagName&&a.className?b(a,"math")?(a=cvox.DomUtil.getAncestors(a),a.some(fu
nction(a){return b(a,"mathjax")})):!1:!1};cvox.DomUtil.getMathSpanId=function(a)
{if(a=document.getElementById(a+"-Frame"))if(a=a.querySelector("span.math"))retu
rn a.id}; | 739 cvox.DomUtil.isMathml=function(a){return a&&a.tagName?"math"==a.tagName.toLowerC
ase():!1};cvox.DomUtil.isMathJax=function(a){function b(a,b){return"SPAN"==a.tag
Name&&a.className.split(" ").some(function(a){return a.toLowerCase()==b})}return
a&&a.tagName&&a.className?b(a,"math")?(a=cvox.DomUtil.getAncestors(a),a.some(fu
nction(a){return b(a,"mathjax")})):!1:!1};cvox.DomUtil.getMathSpanId=function(a)
{if(a=document.getElementById(a+"-Frame"))if(a=a.querySelector("span.math"))retu
rn a.id}; |
739 cvox.DomUtil.hasLongDesc=function(a){return a&&a.longDesc?!0:!1};cvox.DomUtil.ge
tNodeTagName=function(a){return a.nodeType==Node.ELEMENT_NODE?a.tagName:""};cvox
.DomUtil.purgeNodes=function(a){return cvox.DomUtil.toArray(a).filter(function(a
){return a.nodeType!=Node.TEXT_NODE||!a.textContent.match(/^\s+$/)})};cvox.DomUt
il.elementToPoint=function(a){if(!a)return{x:0,y:0};a.constructor==Text&&(a=a.pa
rentNode);a=a.getBoundingClientRect();return{x:a.left+a.width/2,y:a.top+a.height
/2}}; | 740 cvox.DomUtil.hasLongDesc=function(a){return a&&a.longDesc?!0:!1};cvox.DomUtil.ge
tNodeTagName=function(a){return a.nodeType==Node.ELEMENT_NODE?a.tagName:""};cvox
.DomUtil.purgeNodes=function(a){return cvox.DomUtil.toArray(a).filter(function(a
){return a.nodeType!=Node.TEXT_NODE||!a.textContent.match(/^\s+$/)})};cvox.DomUt
il.elementToPoint=function(a){if(!a)return{x:0,y:0};a.constructor==Text&&(a=a.pa
rentNode);a=a.getBoundingClientRect();return{x:a.left+a.width/2,y:a.top+a.height
/2}}; |
740 cvox.DomUtil.doesInputSupportSelection=function(a){return goog.isDef(a)&&"INPUT"
==a.tagName&&"email"!=a.type&&"number"!=a.type};cvox.DomUtil.getHint=function(a)
{var b="";if(a.hasAttribute&&a.hasAttribute("aria-describedby")){a=a.getAttribut
e("aria-describedby").split(" ");for(var c,d=0;c=a[d];d++)(c=document.getElement
ById(c))&&(b+=" "+cvox.DomUtil.getName(c,!0,!0,!0))}return b};cvox.SelectionUtil
=function(){};cvox.SelectionUtil.cleanUpParagraphForward=function(a){for(;3==a.f
ocusNode.nodeType;){var b=a.focusNode,c=a.focusOffset;a.modify("extend","forward
","sentence");if(b==a.focusNode&&c==a.focusOffset)return!1}return!0};cvox.Select
ionUtil.cleanUpParagraphBack=function(a){for(var b,c;3==a.focusNode.nodeType&&(b
=a.focusNode,c=a.focusOffset,a.modify("extend","backward","sentence"),b!=a.focus
Node||c!=a.focusOffset););return!0}; | 741 cvox.DomUtil.doesInputSupportSelection=function(a){return goog.isDef(a)&&"INPUT"
==a.tagName&&"email"!=a.type&&"number"!=a.type};cvox.DomUtil.getHint=function(a)
{var b="";if(a.hasAttribute&&a.hasAttribute("aria-describedby")){a=a.getAttribut
e("aria-describedby").split(" ");for(var c,d=0;c=a[d];d++)(c=document.getElement
ById(c))&&(b+=" "+cvox.DomUtil.getName(c,!0,!0,!0))}return b};cvox.SelectionUtil
=function(){};cvox.SelectionUtil.cleanUpParagraphForward=function(a){for(;3==a.f
ocusNode.nodeType;){var b=a.focusNode,c=a.focusOffset;a.modify("extend","forward
","sentence");if(b==a.focusNode&&c==a.focusOffset)return!1}return!0};cvox.Select
ionUtil.cleanUpParagraphBack=function(a){for(var b,c;3==a.focusNode.nodeType&&(b
=a.focusNode,c=a.focusOffset,a.modify("extend","backward","sentence"),b!=a.focus
Node||c!=a.focusOffset););return!0}; |
741 cvox.SelectionUtil.cleanUpSentence=function(a){for(var b=!0;b;)if(3==a.focusNode
.nodeType){var c=a.focusNode,d=a.focusOffset;if(0<a.rangeCount&&0<a.getRangeAt(0
).endOffset)if("."==c.substringData(a.getRangeAt(0).endOffset-1,1))break;else if
(" "==c.substringData(a.getRangeAt(0).endOffset-1,1))break;else{if(a.modify("ext
end","forward","sentence"),c==a.focusNode&&d==a.focusOffset)return!1}else break}
else break;return!0}; | 742 cvox.SelectionUtil.cleanUpSentence=function(a){for(var b=!0;b;)if(3==a.focusNode
.nodeType){var c=a.focusNode,d=a.focusOffset;if(0<a.rangeCount&&0<a.getRangeAt(0
).endOffset)if("."==c.substringData(a.getRangeAt(0).endOffset-1,1))break;else if
(" "==c.substringData(a.getRangeAt(0).endOffset-1,1))break;else{if(a.modify("ext
end","forward","sentence"),c==a.focusNode&&d==a.focusOffset)return!1}else break}
else break;return!0}; |
742 cvox.SelectionUtil.findSelPosition=function(a){if(0==a.rangeCount)return[0,0];va
r b=a.getRangeAt(0).getBoundingClientRect();if(!b)return[0,0];a=window.pageYOffs
et+b.top;b=window.pageXOffset+b.left;return[a,b]};cvox.SelectionUtil.findTopLeft
Position=function(a){var b=0,c=0;if(a.offsetParent)for(b=a.offsetLeft,c=a.offset
Top,a=a.offsetParent;null!==a;)b+=a.offsetLeft,c+=a.offsetTop,a=a.offsetParent;r
eturn[c,b]}; | 743 cvox.SelectionUtil.findSelPosition=function(a){if(0==a.rangeCount)return[0,0];va
r b=a.getRangeAt(0).getBoundingClientRect();if(!b)return[0,0];a=window.pageYOffs
et+b.top;b=window.pageXOffset+b.left;return[a,b]};cvox.SelectionUtil.findTopLeft
Position=function(a){var b=0,c=0;if(a.offsetParent)for(b=a.offsetLeft,c=a.offset
Top,a=a.offsetParent;null!==a;)b+=a.offsetLeft,c+=a.offsetTop,a=a.offsetParent;r
eturn[c,b]}; |
743 cvox.SelectionUtil.isSelectionValid=function(a){var b=RegExp(/^\s+$/);return!(b.
test(a.toString())||""==a.toString())};cvox.SelectionUtil.isRangeValid=function(
a){a=a.cloneContents().textContent;var b=RegExp(/^\s+$/);return!(b.test(a)||""==
a)};cvox.SelectionUtil.findPos_=function(a){var b=0,c=0;if(a.offsetParent){do b+
=a.offsetLeft,c+=a.offsetTop;while(a=a.offsetParent)}return[b,c]}; | 744 cvox.SelectionUtil.isSelectionValid=function(a){var b=new RegExp(/^\s+$/);return
!(b.test(a.toString())||""==a.toString())};cvox.SelectionUtil.isRangeValid=funct
ion(a){a=a.cloneContents().textContent;var b=new RegExp(/^\s+$/);return!(b.test(
a)||""==a)};cvox.SelectionUtil.findPos_=function(a){var b=0,c=0;if(a.offsetParen
t){do b+=a.offsetLeft,c+=a.offsetTop;while(a=a.offsetParent)}return[b,c]}; |
744 cvox.SelectionUtil.scrollElementsToView=function(a){for(;a&&!a.getBoundingClient
Rect;)a=a.parentElement;if(a){for(var b=a,c=b.parentElement;b!=document.body&&c;
)b.scrollTop=b.offsetTop,b.scrollLeft=b.offsetLeft,b=c,c=b.parentElement;a=cvox.
SelectionUtil.findPos_(a);window.scrollTo(a[0]-window.innerWidth/2,a[1]-window.i
nnerHeight/2)}}; | 745 cvox.SelectionUtil.scrollElementsToView=function(a){for(;a&&!a.getBoundingClient
Rect;)a=a.parentElement;if(a){for(var b=a,c=b.parentElement;b!=document.body&&c;
)b.scrollTop=b.offsetTop,b.scrollLeft=b.offsetLeft,b=c,c=b.parentElement;a=cvox.
SelectionUtil.findPos_(a);window.scrollTo(a[0]-window.innerWidth/2,a[1]-window.i
nnerHeight/2)}}; |
745 cvox.SelectionUtil.scrollToSelection=function(a){if(0!=a.rangeCount){cvox.Select
ionUtil.scrollElementsToView(a.focusNode);var b=cvox.SelectionUtil.findSelPositi
on(a);a=b[0];var b=b[1],c=window.pageYOffset||document.documentElement.scrollTop
||document.body.scrollTop,d=window.innerHeight||document.documentElement.clientH
eight||document.body.clientHeight,e=window.innerWidth||document.documentElement.
innerWidth||document.body.clientWidth;b<e&&(b=0);c+d<a?(a-=d,window.scroll(b,a+1
00)):a<c&&window.scroll(b, | 746 cvox.SelectionUtil.scrollToSelection=function(a){if(0!=a.rangeCount){cvox.Select
ionUtil.scrollElementsToView(a.focusNode);var b=cvox.SelectionUtil.findSelPositi
on(a);a=b[0];var b=b[1],c=window.pageYOffset||document.documentElement.scrollTop
||document.body.scrollTop,d=window.innerHeight||document.documentElement.clientH
eight||document.body.clientHeight,e=window.innerWidth||document.documentElement.
innerWidth||document.body.clientWidth;b<e&&(b=0);c+d<a?(a-=d,window.scroll(b,a+1
00)):a<c&&window.scroll(b, |
746 a-100)}};cvox.SelectionUtil.isAllWs=function(a){return!/[^\t\n\r ]/.test(a.data)
};cvox.SelectionUtil.isIgnorable=function(a){return 8==a.nodeType||3==a.nodeType
&&cvox.SelectionUtil.isAllWs(a)};cvox.SelectionUtil.nodeBefore=function(a){for(;
a=a.previousSibling;)if(!cvox.SelectionUtil.isIgnorable(a))return a;return null}
;cvox.SelectionUtil.nodeAfter=function(a){for(;a=a.nextSibling;)if(!cvox.Selecti
onUtil.isIgnorable(a))return a;return null}; | 747 a-100)}};cvox.SelectionUtil.isAllWs=function(a){return!/[^\t\n\r ]/.test(a.data)
};cvox.SelectionUtil.isIgnorable=function(a){return 8==a.nodeType||3==a.nodeType
&&cvox.SelectionUtil.isAllWs(a)};cvox.SelectionUtil.nodeBefore=function(a){for(;
a=a.previousSibling;)if(!cvox.SelectionUtil.isIgnorable(a))return a;return null}
;cvox.SelectionUtil.nodeAfter=function(a){for(;a=a.nextSibling;)if(!cvox.Selecti
onUtil.isIgnorable(a))return a;return null}; |
747 cvox.SelectionUtil.lastChildNode=function(a){for(a=a.lastChild;a;){if(!cvox.Sele
ctionUtil.isIgnorable(a))return a;a=a.previousSibling}return null};cvox.Selectio
nUtil.firstChildNode=function(a){for(a=a.firstChild;a;){if(!cvox.SelectionUtil.i
sIgnorable(a))return a;a=a.nextSibling}return null};cvox.SelectionUtil.dataOf=fu
nction(a){a=a.data;a=a.replace(/[\t\n\r ]+/g," ");" "==a.charAt(0)&&(a=a.substri
ng(1,a.length));" "==a.charAt(a.length-1)&&(a=a.substring(0,a.length-1));return
a}; | 748 cvox.SelectionUtil.lastChildNode=function(a){for(a=a.lastChild;a;){if(!cvox.Sele
ctionUtil.isIgnorable(a))return a;a=a.previousSibling}return null};cvox.Selectio
nUtil.firstChildNode=function(a){for(a=a.firstChild;a;){if(!cvox.SelectionUtil.i
sIgnorable(a))return a;a=a.nextSibling}return null};cvox.SelectionUtil.dataOf=fu
nction(a){a=a.data;a=a.replace(/[\t\n\r ]+/g," ");" "==a.charAt(0)&&(a=a.substri
ng(1,a.length));" "==a.charAt(a.length-1)&&(a=a.substring(0,a.length-1));return
a}; |
748 cvox.SelectionUtil.hasContentWithTag=function(a,b){if(!a||!a.anchorNode||!a.focu
sNode)return!1;if(a.anchorNode.tagName&&a.anchorNode.tagName==b||a.focusNode.tag
Name&&a.focusNode.tagName==b||a.anchorNode.parentNode.tagName&&a.anchorNode.pare
ntNode.tagName==b||a.focusNode.parentNode.tagName&&a.focusNode.parentNode.tagNam
e==b)return!0;var c=a.getRangeAt(0).cloneContents(),d=document.createElement("sp
an");d.appendChild(c);return 0<d.getElementsByTagName(b).length}; | 749 cvox.SelectionUtil.hasContentWithTag=function(a,b){if(!a||!a.anchorNode||!a.focu
sNode)return!1;if(a.anchorNode.tagName&&a.anchorNode.tagName==b||a.focusNode.tag
Name&&a.focusNode.tagName==b||a.anchorNode.parentNode.tagName&&a.anchorNode.pare
ntNode.tagName==b||a.focusNode.parentNode.tagName&&a.focusNode.parentNode.tagNam
e==b)return!0;var c=a.getRangeAt(0).cloneContents(),d=document.createElement("sp
an");d.appendChild(c);return 0<d.getElementsByTagName(b).length}; |
749 cvox.SelectionUtil.selectText=function(a,b,c){var d=document.createRange();d.set
Start(a,b);d.setEnd(a,c);a=window.getSelection();a.removeAllRanges();a.addRange(
d)};cvox.SelectionUtil.selectAllTextInNode=function(a){var b=document.createRang
e();b.setStart(a,0);b.setEndAfter(a);a=window.getSelection();a.removeAllRanges()
;a.addRange(b)}; | 750 cvox.SelectionUtil.selectText=function(a,b,c){var d=document.createRange();d.set
Start(a,b);d.setEnd(a,c);a=window.getSelection();a.removeAllRanges();a.addRange(
d)};cvox.SelectionUtil.selectAllTextInNode=function(a){var b=document.createRang
e();b.setStart(a,0);b.setEndAfter(a);a=window.getSelection();a.removeAllRanges()
;a.addRange(b)}; |
750 cvox.SelectionUtil.collapseToStart=function(a){var b=window.getSelection(),c=b.a
nchorNode,d=b.anchorOffset;null==c&&(c=a,d=0);a=document.createRange();a.setStar
t(c,d);a.setEnd(c,d);b.removeAllRanges();b.addRange(a)};cvox.SelectionUtil.colla
pseToEnd=function(a){var b=window.getSelection(),c=b.focusNode,d=b.focusOffset;n
ull==c&&(c=a,d=0);a=document.createRange();a.setStart(c,d);a.setEnd(c,d);b.remov
eAllRanges();b.addRange(a)}; | 751 cvox.SelectionUtil.collapseToStart=function(a){var b=window.getSelection(),c=b.a
nchorNode,d=b.anchorOffset;null==c&&(c=a,d=0);a=document.createRange();a.setStar
t(c,d);a.setEnd(c,d);b.removeAllRanges();b.addRange(a)};cvox.SelectionUtil.colla
pseToEnd=function(a){var b=window.getSelection(),c=b.focusNode,d=b.focusOffset;n
ull==c&&(c=a,d=0);a=document.createRange();a.setStart(c,d);a.setEnd(c,d);b.remov
eAllRanges();b.addRange(a)}; |
751 cvox.SelectionUtil.getText=function(){var a=window.getSelection();if(cvox.Select
ionUtil.hasContentWithTag(a,"IMG")){var b="",a=a.getRangeAt(0).cloneContents(),c
=document.createElement("span");c.appendChild(a);for(var a=cvox.XpathUtil.getLea
fNodes(c),c=0,d;d=a[c];c++)b=b+" "+cvox.DomUtil.getName(d);return b}return this.
getSelectionText_()};cvox.SelectionUtil.getSelectionText_=function(){return""+wi
ndow.getSelection()}; | 752 cvox.SelectionUtil.getText=function(){var a=window.getSelection();if(cvox.Select
ionUtil.hasContentWithTag(a,"IMG")){var b="",a=a.getRangeAt(0).cloneContents(),c
=document.createElement("span");c.appendChild(a);for(var a=cvox.XpathUtil.getLea
fNodes(c),c=0,d;d=a[c];c++)b=b+" "+cvox.DomUtil.getName(d);return b}return this.
getSelectionText_()};cvox.SelectionUtil.getSelectionText_=function(){return""+wi
ndow.getSelection()}; |
752 cvox.SelectionUtil.getRangeText=function(a){return a?a.cloneContents().textConte
nt.replace(/\s+/g," "):""};cvox.TraverseUtil=function(){};cvox.TraverseUtil.getN
odeText=function(a){return a.constructor==Text?a.data:""};cvox.TraverseUtil.trea
tAsLeafNode=function(a){return 0==a.childNodes.length||"SELECT"==a.nodeName||"li
stbox"==a.getAttribute("role")||"OBJECT"==a.nodeName};cvox.TraverseUtil.isWhites
pace=function(a){return" "==a||"\n"==a||"\r"==a||"\t"==a}; | 753 cvox.SelectionUtil.getRangeText=function(a){return a?a.cloneContents().textConte
nt.replace(/\s+/g," "):""};cvox.TraverseUtil=function(){};cvox.TraverseUtil.getN
odeText=function(a){return a.constructor==Text?a.data:""};cvox.TraverseUtil.trea
tAsLeafNode=function(a){return 0==a.childNodes.length||"SELECT"==a.nodeName||"li
stbox"==a.getAttribute("role")||"OBJECT"==a.nodeName};cvox.TraverseUtil.isWhites
pace=function(a){return" "==a||"\n"==a||"\r"==a||"\t"==a}; |
753 cvox.TraverseUtil.setSelection=function(a,b){var c=window.getSelection();c.remov
eAllRanges();var d=document.createRange();d.setStart(a.node,a.index);d.setEnd(b.
node,b.index);c.addRange(d);return c};cvox.TraverseUtil.isHidden=function(a){if(
a instanceof HTMLElement&&"true"==a.getAttribute("aria-hidden"))return!0;switch(
a.tagName){case "SCRIPT":case "NOSCRIPT":return!0}return!1}; | 754 cvox.TraverseUtil.setSelection=function(a,b){var c=window.getSelection();c.remov
eAllRanges();var d=document.createRange();d.setStart(a.node,a.index);d.setEnd(b.
node,b.index);c.addRange(d);return c};cvox.TraverseUtil.isHidden=function(a){if(
a instanceof HTMLElement&&"true"==a.getAttribute("aria-hidden"))return!0;switch(
a.tagName){case "SCRIPT":case "NOSCRIPT":return!0}return!1}; |
(...skipping 13 matching lines...) Expand all Loading... |
767 cvox.TraverseUtil.getNextLine=function(a,b,c,d,e){var f=document.createRange(),g
=null,h=b.clone();return cvox.TraverseUtil.getNextString(a,b,c,d,function(c,d,n,
p){f.setStart(a.node,a.index);f.setEnd(b.node,b.index);c=f.getBoundingClientRect
();g||(g=c);if(c.bottom!=g.bottom&&!cvox.DomPredicates.linkPredicate(cvox.DomUti
l.getAncestors(b.node)))return b.copyFrom(h),!0;g=c;h.copyFrom(b);return cvox.Tr
averseUtil.includesBreakTagOrSkippedNode(n,p,e)})}; | 768 cvox.TraverseUtil.getNextLine=function(a,b,c,d,e){var f=document.createRange(),g
=null,h=b.clone();return cvox.TraverseUtil.getNextString(a,b,c,d,function(c,d,n,
p){f.setStart(a.node,a.index);f.setEnd(b.node,b.index);c=f.getBoundingClientRect
();g||(g=c);if(c.bottom!=g.bottom&&!cvox.DomPredicates.linkPredicate(cvox.DomUti
l.getAncestors(b.node)))return b.copyFrom(h),!0;g=c;h.copyFrom(b);return cvox.Tr
averseUtil.includesBreakTagOrSkippedNode(n,p,e)})}; |
768 cvox.TraverseUtil.getPreviousLine=function(a,b,c,d,e){var f=document.createRange
(),g=null,h=a.clone();return cvox.TraverseUtil.getPreviousString(a,b,c,d,functio
n(c,d,n,p){f.setStart(a.node,a.index);f.setEnd(b.node,b.index);c=f.getBoundingCl
ientRect();g||(g=c);if(c.top!=g.top&&!cvox.DomPredicates.linkPredicate(cvox.DomU
til.getAncestors(a.node)))return a.copyFrom(h),!0;g=c;h.copyFrom(a);return cvox.
TraverseUtil.includesBreakTagOrSkippedNode(n,p,e)})}; | 769 cvox.TraverseUtil.getPreviousLine=function(a,b,c,d,e){var f=document.createRange
(),g=null,h=a.clone();return cvox.TraverseUtil.getPreviousString(a,b,c,d,functio
n(c,d,n,p){f.setStart(a.node,a.index);f.setEnd(b.node,b.index);c=f.getBoundingCl
ientRect();g||(g=c);if(c.top!=g.top&&!cvox.DomPredicates.linkPredicate(cvox.DomU
til.getAncestors(a.node)))return a.copyFrom(h),!0;g=c;h.copyFrom(a);return cvox.
TraverseUtil.includesBreakTagOrSkippedNode(n,p,e)})}; |
769 cvox.TraverseUtil.getNextParagraph=function(a,b,c,d){return cvox.TraverseUtil.ge
tNextString(a,b,c,d,function(a,b,c,d){for(a=0;a<c.length;a++)if(cvox.TraverseUti
l.isHidden(c[a])||(b=window.getComputedStyle(c[a],null))&&"inline"!=b.display)re
turn!0;for(a=0;a<d.length;a++)if((b=window.getComputedStyle(d[a],null))&&"inline
"!=b.display)return!0;return!1})}; | 770 cvox.TraverseUtil.getNextParagraph=function(a,b,c,d){return cvox.TraverseUtil.ge
tNextString(a,b,c,d,function(a,b,c,d){for(a=0;a<c.length;a++)if(cvox.TraverseUti
l.isHidden(c[a])||(b=window.getComputedStyle(c[a],null))&&"inline"!=b.display)re
turn!0;for(a=0;a<d.length;a++)if((b=window.getComputedStyle(d[a],null))&&"inline
"!=b.display)return!0;return!1})}; |
770 cvox.TraverseUtil.getPreviousParagraph=function(a,b,c,d){return cvox.TraverseUti
l.getPreviousString(a,b,c,d,function(a,b,c,d){for(a=0;a<c.length;a++)if(cvox.Tra
verseUtil.isHidden(c[a])||(b=window.getComputedStyle(c[a],null))&&"inline"!=b.di
splay)return!0;for(a=0;a<d.length;a++)if((b=window.getComputedStyle(d[a],null))&
&"inline"!=b.display)return!0;return!1})}; | 771 cvox.TraverseUtil.getPreviousParagraph=function(a,b,c,d){return cvox.TraverseUti
l.getPreviousString(a,b,c,d,function(a,b,c,d){for(a=0;a<c.length;a++)if(cvox.Tra
verseUtil.isHidden(c[a])||(b=window.getComputedStyle(c[a],null))&&"inline"!=b.di
splay)return!0;for(a=0;a<d.length;a++)if((b=window.getComputedStyle(d[a],null))&
&"inline"!=b.display)return!0;return!1})}; |
771 cvox.TraverseUtil.getNextString=function(a,b,c,d,e){c=b.clone();d=b.clone();var
f=[],g=[],h="",k=cvox.TraverseUtil.getNextWord(c,d,f,g);if(null==k)return null;f
or(a.copyFrom(c);!(h&&e(h,k,f,g)||(h&&(h+=" "),h+=k,b.copyFrom(d),f=[],g=[],k=cv
ox.TraverseUtil.getNextWord(c,d,f,g),null==k)););return h}; | 772 cvox.TraverseUtil.getNextString=function(a,b,c,d,e){c=b.clone();d=b.clone();var
f=[],g=[],h="",k=cvox.TraverseUtil.getNextWord(c,d,f,g);if(null==k)return null;f
or(a.copyFrom(c);!(h&&e(h,k,f,g)||(h&&(h+=" "),h+=k,b.copyFrom(d),f=[],g=[],k=cv
ox.TraverseUtil.getNextWord(c,d,f,g),null==k)););return h}; |
772 cvox.TraverseUtil.getPreviousString=function(a,b,c,d,e){c=a.clone();d=a.clone();
var f=[],g=[],h="",k=cvox.TraverseUtil.getPreviousWord(c,d,f,g);if(null==k)retur
n null;for(b.copyFrom(d);!(h&&e(h,k,f,g)||(h&&(h=" "+h),h=k+h,a.copyFrom(c),f=[]
,g=[],k=cvox.TraverseUtil.getPreviousWord(c,d,f,g),null==k)););return h};cvox.Cu
rsorSelection=function(a,b,c){this.start=a.clone();this.end=b.clone();void 0==c&
&(c=!1);if((this.isReversed_=c)&&this.start.node.compareDocumentPosition(this.en
d.node)==cvox.CursorSelection.BEFORE||!this.isReversed_&&this.end.node.compareDo
cumentPosition(this.start.node)==cvox.CursorSelection.BEFORE)a=this.start,this.s
tart=this.end,this.end=a};cvox.CursorSelection.BEFORE=4; | 773 cvox.TraverseUtil.getPreviousString=function(a,b,c,d,e){c=a.clone();d=a.clone();
var f=[],g=[],h="",k=cvox.TraverseUtil.getPreviousWord(c,d,f,g);if(null==k)retur
n null;for(b.copyFrom(d);!(h&&e(h,k,f,g)||(h&&(h=" "+h),h=k+h,a.copyFrom(c),f=[]
,g=[],k=cvox.TraverseUtil.getPreviousWord(c,d,f,g),null==k)););return h};cvox.Cu
rsorSelection=function(a,b,c){this.start=a.clone();this.end=b.clone();void 0==c&
&(c=!1);if((this.isReversed_=c)&&this.start.node.compareDocumentPosition(this.en
d.node)==cvox.CursorSelection.BEFORE||!this.isReversed_&&this.end.node.compareDo
cumentPosition(this.start.node)==cvox.CursorSelection.BEFORE)a=this.start,this.s
tart=this.end,this.end=a};cvox.CursorSelection.BEFORE=4; |
773 cvox.CursorSelection.prototype.setReversed=function(a){if(a==this.isReversed_)re
turn this;var b=this.start;this.start=this.end;this.end=b;this.isReversed_=a;ret
urn this};cvox.CursorSelection.prototype.isReversed=function(){return this.isRev
ersed_};cvox.CursorSelection.prototype.absStart=function(){return this.isReverse
d_?this.end:this.start};cvox.CursorSelection.prototype.absEnd=function(){return
this.isReversed_?this.start:this.end}; | 774 cvox.CursorSelection.prototype.setReversed=function(a){if(a==this.isReversed_)re
turn this;var b=this.start;this.start=this.end;this.end=b;this.isReversed_=a;ret
urn this};cvox.CursorSelection.prototype.isReversed=function(){return this.isRev
ersed_};cvox.CursorSelection.prototype.absStart=function(){return this.isReverse
d_?this.end:this.start};cvox.CursorSelection.prototype.absEnd=function(){return
this.isReversed_?this.start:this.end}; |
774 cvox.CursorSelection.prototype.clone=function(){return new cvox.CursorSelection(
this.start,this.end,this.isReversed_)};cvox.CursorSelection.prototype.select=fun
ction(){var a=window.getSelection();a.removeAllRanges();this.normalize();a.addRa
nge(this.getRange())};cvox.CursorSelection.fromNode=function(a){if(!a)return nul
l;var b=cvox.TraverseUtil.getNodeText(a);return new cvox.CursorSelection(new cvo
x.Cursor(a,0,b),new cvox.Cursor(a,0,b))};cvox.CursorSelection.fromBody=function(
){return cvox.CursorSelection.fromNode(document.body)}; | 775 cvox.CursorSelection.prototype.clone=function(){return new cvox.CursorSelection(
this.start,this.end,this.isReversed_)};cvox.CursorSelection.prototype.select=fun
ction(){var a=window.getSelection();a.removeAllRanges();this.normalize();a.addRa
nge(this.getRange())};cvox.CursorSelection.fromNode=function(a){if(!a)return nul
l;var b=cvox.TraverseUtil.getNodeText(a);return new cvox.CursorSelection(new cvo
x.Cursor(a,0,b),new cvox.Cursor(a,0,b))};cvox.CursorSelection.fromBody=function(
){return cvox.CursorSelection.fromNode(document.body)}; |
775 cvox.CursorSelection.prototype.getText=function(){return this.start.equals(this.
end)?cvox.TraverseUtil.getNodeText(this.start.node):cvox.SelectionUtil.getRangeT
ext(this.getRange())};cvox.CursorSelection.prototype.getRange=function(){var a=d
ocument.createRange();this.isReversed_?(a.setStart(this.end.node,this.end.index)
,a.setEnd(this.start.node,this.start.index)):(a.setStart(this.start.node,this.st
art.index),a.setEnd(this.end.node,this.end.index));return a}; | 776 cvox.CursorSelection.prototype.getText=function(){return this.start.equals(this.
end)?cvox.TraverseUtil.getNodeText(this.start.node):cvox.SelectionUtil.getRangeT
ext(this.getRange())};cvox.CursorSelection.prototype.getRange=function(){var a=d
ocument.createRange();this.isReversed_?(a.setStart(this.end.node,this.end.index)
,a.setEnd(this.start.node,this.start.index)):(a.setStart(this.start.node,this.st
art.index),a.setEnd(this.end.node,this.end.index));return a}; |
776 cvox.CursorSelection.prototype.equals=function(a){return this.start.equals(a.sta
rt)&&this.end.equals(a.end)};cvox.CursorSelection.prototype.absEquals=function(a
){return this.start.equals(a.start)&&this.end.equals(a.end)||this.end.equals(a.s
tart)&&this.start.equals(a.end)};cvox.CursorSelection.prototype.directedBefore=f
unction(a){var b=this.start.node.compareDocumentPosition(a.start.node)==cvox.Cur
sorSelection.BEFORE;return this.start.node==a.start.node||(this.isReversed()?!b:
b)}; | 777 cvox.CursorSelection.prototype.equals=function(a){return this.start.equals(a.sta
rt)&&this.end.equals(a.end)};cvox.CursorSelection.prototype.absEquals=function(a
){return this.start.equals(a.start)&&this.end.equals(a.end)||this.end.equals(a.s
tart)&&this.start.equals(a.end)};cvox.CursorSelection.prototype.directedBefore=f
unction(a){var b=this.start.node.compareDocumentPosition(a.start.node)==cvox.Cur
sorSelection.BEFORE;return this.start.node==a.start.node||(this.isReversed()?!b:
b)}; |
777 cvox.CursorSelection.prototype.normalize=function(){if(0==this.absEnd().index&&t
his.absEnd().node){var a=this.absEnd().node,b=document.createRange();b.selectNod
eContents(a);this.absEnd().index=b.endOffset}return this};cvox.CursorSelection.p
rototype.collapse=function(){if(this.start.equals(this.end))return this;this.end
.copyFrom(this.start);if(0==this.start.text.length)return this;this.isReversed()
?0<this.end.index&&this.end.index--:this.end.index<this.end.text.length&&this.en
d.index++;return this};cvox.PlatformUtil={};cvox.PlatformFilter={NONE:0,WINDOWS:
1,MAC:2,LINUX:4,WML:7,CHROMEOS:8,ANDROID:16};cvox.PlatformUtil.matchesPlatform=f
unction(a){var b=navigator.userAgent;return void 0==a?!0:-1!=b.indexOf("Android"
)?0!=(a&cvox.PlatformFilter.ANDROID):-1!=b.indexOf("Win")?0!=(a&cvox.PlatformFil
ter.WINDOWS):-1!=b.indexOf("Mac")?0!=(a&cvox.PlatformFilter.MAC):-1!=b.indexOf("
Linux")?0!=(a&cvox.PlatformFilter.LINUX):-1!=b.indexOf("CrOS")?0!=(a&cvox.Platfo
rmFilter.CHROMEOS):!1};goog.object={};goog.object.forEach=function(a,b,c){for(va
r d in a)b.call(c,a[d],d,a)};goog.object.filter=function(a,b,c){var d={},e;for(e
in a)b.call(c,a[e],e,a)&&(d[e]=a[e]);return d};goog.object.map=function(a,b,c){
var d={},e;for(e in a)d[e]=b.call(c,a[e],e,a);return d};goog.object.some=functio
n(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return!0;return!1};goog.object.eve
ry=function(a,b,c){for(var d in a)if(!b.call(c,a[d],d,a))return!1;return!0}; | 778 cvox.CursorSelection.prototype.normalize=function(){if(0==this.absEnd().index&&t
his.absEnd().node){var a=this.absEnd().node,b=document.createRange();b.selectNod
eContents(a);this.absEnd().index=b.endOffset}return this};cvox.CursorSelection.p
rototype.collapse=function(){if(this.start.equals(this.end))return this;this.end
.copyFrom(this.start);if(0==this.start.text.length)return this;this.isReversed()
?0<this.end.index&&this.end.index--:this.end.index<this.end.text.length&&this.en
d.index++;return this};goog.object={};goog.object.forEach=function(a,b,c){for(va
r d in a)b.call(c,a[d],d,a)};goog.object.filter=function(a,b,c){var d={},e;for(e
in a)b.call(c,a[e],e,a)&&(d[e]=a[e]);return d};goog.object.map=function(a,b,c){
var d={},e;for(e in a)d[e]=b.call(c,a[e],e,a);return d};goog.object.some=functio
n(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return!0;return!1};goog.object.eve
ry=function(a,b,c){for(var d in a)if(!b.call(c,a[d],d,a))return!1;return!0}; |
778 goog.object.getCount=function(a){var b=0,c;for(c in a)b++;return b};goog.object.
getAnyKey=function(a){for(var b in a)return b};goog.object.getAnyValue=function(
a){for(var b in a)return a[b]};goog.object.contains=function(a,b){return goog.ob
ject.containsValue(a,b)};goog.object.getValues=function(a){var b=[],c=0,d;for(d
in a)b[c++]=a[d];return b};goog.object.getKeys=function(a){var b=[],c=0,d;for(d
in a)b[c++]=d;return b}; | 779 goog.object.getCount=function(a){var b=0,c;for(c in a)b++;return b};goog.object.
getAnyKey=function(a){for(var b in a)return b};goog.object.getAnyValue=function(
a){for(var b in a)return a[b]};goog.object.contains=function(a,b){return goog.ob
ject.containsValue(a,b)};goog.object.getValues=function(a){var b=[],c=0,d;for(d
in a)b[c++]=a[d];return b};goog.object.getKeys=function(a){var b=[],c=0,d;for(d
in a)b[c++]=d;return b}; |
779 goog.object.getValueByKeys=function(a,b){for(var c=goog.isArrayLike(b),d=c?b:arg
uments,c=c?0:1;c<d.length&&(a=a[d[c]],goog.isDef(a));c++);return a};goog.object.
containsKey=function(a,b){return b in a};goog.object.containsValue=function(a,b)
{for(var c in a)if(a[c]==b)return!0;return!1};goog.object.findKey=function(a,b,c
){for(var d in a)if(b.call(c,a[d],d,a))return d};goog.object.findValue=function(
a,b,c){return(b=goog.object.findKey(a,b,c))&&a[b]}; | 780 goog.object.getValueByKeys=function(a,b){for(var c=goog.isArrayLike(b),d=c?b:arg
uments,c=c?0:1;c<d.length&&(a=a[d[c]],goog.isDef(a));c++);return a};goog.object.
containsKey=function(a,b){return b in a};goog.object.containsValue=function(a,b)
{for(var c in a)if(a[c]==b)return!0;return!1};goog.object.findKey=function(a,b,c
){for(var d in a)if(b.call(c,a[d],d,a))return d};goog.object.findValue=function(
a,b,c){return(b=goog.object.findKey(a,b,c))&&a[b]}; |
780 goog.object.isEmpty=function(a){for(var b in a)return!1;return!0};goog.object.cl
ear=function(a){for(var b in a)delete a[b]};goog.object.remove=function(a,b){var
c;(c=b in a)&&delete a[b];return c};goog.object.add=function(a,b,c){if(b in a)t
hrow Error('The object already contains the key "'+b+'"');goog.object.set(a,b,c)
};goog.object.get=function(a,b,c){return b in a?a[b]:c};goog.object.set=function
(a,b,c){a[b]=c};goog.object.setIfUndefined=function(a,b,c){return b in a?a[b]:a[
b]=c}; | 781 goog.object.isEmpty=function(a){for(var b in a)return!1;return!0};goog.object.cl
ear=function(a){for(var b in a)delete a[b]};goog.object.remove=function(a,b){var
c;(c=b in a)&&delete a[b];return c};goog.object.add=function(a,b,c){if(b in a)t
hrow Error('The object already contains the key "'+b+'"');goog.object.set(a,b,c)
};goog.object.get=function(a,b,c){return b in a?a[b]:c};goog.object.set=function
(a,b,c){a[b]=c};goog.object.setIfUndefined=function(a,b,c){return b in a?a[b]:a[
b]=c}; |
781 goog.object.clone=function(a){var b={},c;for(c in a)b[c]=a[c];return b};goog.obj
ect.unsafeClone=function(a){var b=goog.typeOf(a);if("object"==b||"array"==b){if(
a.clone)return a.clone();var b="array"==b?[]:{},c;for(c in a)b[c]=goog.object.un
safeClone(a[c]);return b}return a};goog.object.transpose=function(a){var b={},c;
for(c in a)b[a[c]]=c;return b};goog.object.PROTOTYPE_FIELDS_="constructor hasOwn
Property isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".spl
it(" "); | 782 goog.object.clone=function(a){var b={},c;for(c in a)b[c]=a[c];return b};goog.obj
ect.unsafeClone=function(a){var b=goog.typeOf(a);if("object"==b||"array"==b){if(
a.clone)return a.clone();var b="array"==b?[]:{},c;for(c in a)b[c]=goog.object.un
safeClone(a[c]);return b}return a};goog.object.transpose=function(a){var b={},c;
for(c in a)b[a[c]]=c;return b};goog.object.PROTOTYPE_FIELDS_="constructor hasOwn
Property isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".spl
it(" "); |
782 goog.object.extend=function(a,b){for(var c,d,e=1;e<arguments.length;e++){d=argum
ents[e];for(c in d)a[c]=d[c];for(var f=0;f<goog.object.PROTOTYPE_FIELDS_.length;
f++)c=goog.object.PROTOTYPE_FIELDS_[f],Object.prototype.hasOwnProperty.call(d,c)
&&(a[c]=d[c])}}; | 783 goog.object.extend=function(a,b){for(var c,d,e=1;e<arguments.length;e++){d=argum
ents[e];for(c in d)a[c]=d[c];for(var f=0;f<goog.object.PROTOTYPE_FIELDS_.length;
f++)c=goog.object.PROTOTYPE_FIELDS_[f],Object.prototype.hasOwnProperty.call(d,c)
&&(a[c]=d[c])}}; |
783 goog.object.create=function(a){var b=arguments.length;if(1==b&&goog.isArray(argu
ments[0]))return goog.object.create.apply(null,arguments[0]);if(b%2)throw Error(
"Uneven number of arguments");for(var c={},d=0;d<b;d+=2)c[arguments[d]]=argument
s[d+1];return c};goog.object.createSet=function(a){var b=arguments.length;if(1==
b&&goog.isArray(arguments[0]))return goog.object.createSet.apply(null,arguments[
0]);for(var c={},d=0;d<b;d++)c[arguments[d]]=!0;return c}; | 784 goog.object.create=function(a){var b=arguments.length;if(1==b&&goog.isArray(argu
ments[0]))return goog.object.create.apply(null,arguments[0]);if(b%2)throw Error(
"Uneven number of arguments");for(var c={},d=0;d<b;d+=2)c[arguments[d]]=argument
s[d+1];return c};goog.object.createSet=function(a){var b=arguments.length;if(1==
b&&goog.isArray(arguments[0]))return goog.object.createSet.apply(null,arguments[
0]);for(var c={},d=0;d<b;d++)c[arguments[d]]=!0;return c}; |
784 goog.object.createImmutableView=function(a){var b=a;Object.isFrozen&&!Object.isF
rozen(a)&&(b=Object.create(a),Object.freeze(b));return b};goog.object.isImmutabl
eView=function(a){return!!Object.isFrozen&&Object.isFrozen(a)};cvox.Spannable=fu
nction(a,b){this.string_=a||"";this.spans_=[];if(goog.isDef(b)){var c=this.strin
g_.length;this.spans_.push({value:b,start:0,end:c})}};cvox.Spannable.prototype.t
oString=function(){return this.string_};cvox.Spannable.prototype.getLength=funct
ion(){return this.string_.length}; | 785 goog.object.createImmutableView=function(a){var b=a;Object.isFrozen&&!Object.isF
rozen(a)&&(b=Object.create(a),Object.freeze(b));return b};goog.object.isImmutabl
eView=function(a){return!!Object.isFrozen&&Object.isFrozen(a)};cvox.Spannable=fu
nction(a,b){this.string_=a||"";this.spans_=[];if(goog.isDef(b)){var c=this.strin
g_.length;this.spans_.push({value:b,start:0,end:c})}};cvox.Spannable.prototype.t
oString=function(){return this.string_};cvox.Spannable.prototype.getLength=funct
ion(){return this.string_.length}; |
785 cvox.Spannable.prototype.setSpan=function(a,b,c){this.removeSpan(a);if(0<=b&&b<=
c&&c<=this.string_.length)this.spans_.push({value:a,start:b,end:c});else throw n
ew RangeError("span out of range (start="+b+", end="+c+", len="+this.string_.len
gth+")");};cvox.Spannable.prototype.removeSpan=function(a){for(var b=this.spans_
.length-1;0<=b;b--)this.spans_[b].value===a&&this.spans_.splice(b,1)}; | 786 cvox.Spannable.prototype.setSpan=function(a,b,c){this.removeSpan(a);if(0<=b&&b<=
c&&c<=this.string_.length)this.spans_.push({value:a,start:b,end:c});else throw n
ew RangeError("span out of range (start="+b+", end="+c+", len="+this.string_.len
gth+")");};cvox.Spannable.prototype.removeSpan=function(a){for(var b=this.spans_
.length-1;0<=b;b--)this.spans_[b].value===a&&this.spans_.splice(b,1)}; |
786 cvox.Spannable.prototype.append=function(a){if(a instanceof cvox.Spannable){var
b=a,c=this.getLength();this.string_+=b.string_;a.spans_.forEach(goog.bind(functi
on(a){this.setSpan(a.value,a.start+c,a.end+c)},this))}else"string"===typeof a&&(
this.string_+=a)};cvox.Spannable.prototype.getSpanInstanceOf=function(a){for(var
b=0;b<this.spans_.length;b++){var c=this.spans_[b];if(c.value instanceof a)retu
rn c.value}}; | 787 cvox.Spannable.prototype.append=function(a){if(a instanceof cvox.Spannable){var
b=a,c=this.getLength();this.string_+=b.string_;a.spans_.forEach(goog.bind(functi
on(a){this.setSpan(a.value,a.start+c,a.end+c)},this))}else"string"===typeof a&&(
this.string_+=a)};cvox.Spannable.prototype.getSpanInstanceOf=function(a){for(var
b=0;b<this.spans_.length;b++){var c=this.spans_[b];if(c.value instanceof a)retu
rn c.value}}; |
787 cvox.Spannable.prototype.getSpans=function(a){for(var b=[],c=0;c<this.spans_.len
gth;c++){var d=this.spans_[c];d.start<=a&&a<d.end&&b.push(d.value)}return b};cvo
x.Spannable.prototype.getSpanStart=function(a){for(var b=0;b<this.spans_.length;
b++){var c=this.spans_[b];if(c.value===a)return c.start}};cvox.Spannable.prototy
pe.getSpanEnd=function(a){for(var b=0;b<this.spans_.length;b++){var c=this.spans
_[b];if(c.value===a)return c.end}}; | 788 cvox.Spannable.prototype.getSpans=function(a){for(var b=[],c=0;c<this.spans_.len
gth;c++){var d=this.spans_[c];d.start<=a&&a<d.end&&b.push(d.value)}return b};cvo
x.Spannable.prototype.getSpanStart=function(a){for(var b=0;b<this.spans_.length;
b++){var c=this.spans_[b];if(c.value===a)return c.start}};cvox.Spannable.prototy
pe.getSpanEnd=function(a){for(var b=0;b<this.spans_.length;b++){var c=this.spans
_[b];if(c.value===a)return c.end}}; |
788 cvox.Spannable.prototype.substring=function(a,b){var c=goog.isDef(b)?b:this.stri
ng_.length;if(0>a||c>this.string_.length||a>c)throw new RangeError("substring in
dices out of range");for(var d=new cvox.Spannable(this.string_.substring(a,c)),e
=0;e<this.spans_.length;e++){var f=this.spans_[e];if(f.start<=c&&f.end>=a){var g
=Math.max(0,f.start-a),h=Math.min(c-a,f.end-a);d.spans_.push({value:f.value,star
t:g,end:h})}}return d};cvox.Spannable.prototype.trimLeft=function(){return this.
trim_(!0,!1)}; | 789 cvox.Spannable.prototype.substring=function(a,b){var c=goog.isDef(b)?b:this.stri
ng_.length;if(0>a||c>this.string_.length||a>c)throw new RangeError("substring in
dices out of range");for(var d=new cvox.Spannable(this.string_.substring(a,c)),e
=0;e<this.spans_.length;e++){var f=this.spans_[e];if(f.start<=c&&f.end>=a){var g
=Math.max(0,f.start-a),h=Math.min(c-a,f.end-a);d.spans_.push({value:f.value,star
t:g,end:h})}}return d};cvox.Spannable.prototype.trimLeft=function(){return this.
trim_(!0,!1)}; |
789 cvox.Spannable.prototype.trimRight=function(){return this.trim_(!1,!0)};cvox.Spa
nnable.prototype.trim=function(){return this.trim_(!0,!0)};cvox.Spannable.protot
ype.trim_=function(a,b){if(!a&&!b)return this;if(/^\s*$/.test(this.string_))retu
rn this.substring(0,0);var c=a?this.string_.match(/^\s*/)[0].length:0,d=b?this.s
tring_.match(/\s*$/).index:this.string_.length;return this.substring(c,d)}; | 790 cvox.Spannable.prototype.trimRight=function(){return this.trim_(!1,!0)};cvox.Spa
nnable.prototype.trim=function(){return this.trim_(!0,!0)};cvox.Spannable.protot
ype.trim_=function(a,b){if(!a&&!b)return this;if(/^\s*$/.test(this.string_))retu
rn this.substring(0,0);var c=a?this.string_.match(/^\s*/)[0].length:0,d=b?this.s
tring_.match(/\s*$/).index:this.string_.length;return this.substring(c,d)}; |
790 cvox.Spannable.prototype.toJson=function(){var a={};a.string=this.string_;a.span
s=[];for(var b=0;b<this.spans_.length;++b){var c=this.spans_[b],d=goog.object.fi
ndValue(cvox.Spannable.serializableSpansByName_,function(a){return a.ctor===c.va
lue.constructor});if(d){var e={type:d.name,start:c.start,end:c.end};d.toJson&&(e
.value=d.toJson.apply(c.value));a.spans.push(e)}}return a}; | 791 cvox.Spannable.prototype.toJson=function(){var a={};a.string=this.string_;a.span
s=[];for(var b=0;b<this.spans_.length;++b){var c=this.spans_[b],d=goog.object.fi
ndValue(cvox.Spannable.serializableSpansByName_,function(a){return a.ctor===c.va
lue.constructor});if(d){var e={type:d.name,start:c.start,end:c.end};d.toJson&&(e
.value=d.toJson.apply(c.value));a.spans.push(e)}}return a}; |
791 cvox.Spannable.fromJson=function(a){if("string"!==typeof a.string)throw"Invalid
spannable json object: string field not a string";if(!(a.spans instanceof Array)
)throw"Invalid spannable json object: no spans array";for(var b=new cvox.Spannab
le(a.string),c=0,d;d=a.spans[c];++c){if("string"!==typeof d.type)throw"Invalid s
pan in spannable json object: type not a string";if("number"!==typeof d.start||"
number"!==typeof d.end)throw"Invalid span in spannable json object: start or end
not a number";var e= | 792 cvox.Spannable.fromJson=function(a){if("string"!==typeof a.string)throw"Invalid
spannable json object: string field not a string";if(!(a.spans instanceof Array)
)throw"Invalid spannable json object: no spans array";for(var b=new cvox.Spannab
le(a.string),c=0,d;d=a.spans[c];++c){if("string"!==typeof d.type)throw"Invalid s
pan in spannable json object: type not a string";if("number"!==typeof d.start||"
number"!==typeof d.end)throw"Invalid span in spannable json object: start or end
not a number";var e= |
792 cvox.Spannable.serializableSpansByName_[d.type],e=e.fromJson(d.value);b.setSpan(
e,d.start,d.end)}return b};cvox.Spannable.registerSerializableSpan=function(a,b,
c,d){a={name:b,ctor:a,fromJson:c,toJson:d};cvox.Spannable.serializableSpansByNam
e_[b]=a};cvox.Spannable.registerStatelessSerializableSpan=function(a,b){var c={n
ame:b,ctor:a,toJson:void 0,fromJson:function(){return new a}};cvox.Spannable.ser
ializableSpansByName_[b]=c};cvox.Spannable.serializableSpansByName_={};cvox.NavB
raille=function(a){this.text=a.text instanceof cvox.Spannable?a.text:new cvox.Sp
annable(a.text);this.startIndex=goog.isDef(a.startIndex)?a.startIndex:-1;this.en
dIndex=goog.isDef(a.endIndex)?a.endIndex:this.startIndex};cvox.NavBraille.fromTe
xt=function(a){return new cvox.NavBraille({text:a})}; | 793 cvox.Spannable.serializableSpansByName_[d.type],e=e.fromJson(d.value);b.setSpan(
e,d.start,d.end)}return b};cvox.Spannable.registerSerializableSpan=function(a,b,
c,d){a={name:b,ctor:a,fromJson:c,toJson:d};cvox.Spannable.serializableSpansByNam
e_[b]=a};cvox.Spannable.registerStatelessSerializableSpan=function(a,b){var c={n
ame:b,ctor:a,toJson:void 0,fromJson:function(){return new a}};cvox.Spannable.ser
ializableSpansByName_[b]=c};cvox.Spannable.serializableSpansByName_={};cvox.NavB
raille=function(a){this.text=a.text instanceof cvox.Spannable?a.text:new cvox.Sp
annable(a.text);this.startIndex=goog.isDef(a.startIndex)?a.startIndex:-1;this.en
dIndex=goog.isDef(a.endIndex)?a.endIndex:this.startIndex};cvox.NavBraille.fromTe
xt=function(a){return new cvox.NavBraille({text:a})}; |
793 cvox.NavBraille.fromJson=function(a){if("number"!==typeof a.startIndex||"number"
!==typeof a.endIndex)throw"Invalid start or end index in serialized NavBraille:
"+a;return new cvox.NavBraille({text:cvox.Spannable.fromJson(a.spannable),startI
ndex:a.startIndex,endIndex:a.endIndex})};cvox.NavBraille.prototype.isEmpty=funct
ion(){return 0==this.text.getLength()}; | 794 cvox.NavBraille.fromJson=function(a){if("number"!==typeof a.startIndex||"number"
!==typeof a.endIndex)throw"Invalid start or end index in serialized NavBraille:
"+a;return new cvox.NavBraille({text:cvox.Spannable.fromJson(a.spannable),startI
ndex:a.startIndex,endIndex:a.endIndex})};cvox.NavBraille.prototype.isEmpty=funct
ion(){return 0==this.text.getLength()}; |
794 cvox.NavBraille.prototype.toString=function(){return'NavBraille(text="'+this.tex
t.toString()+'" startIndex="'+this.startIndex+'" endIndex="'+this.endIndex+'")
'};cvox.NavBraille.prototype.toJson=function(){return{spannable:this.text.toJson
(),startIndex:this.startIndex,endIndex:this.endIndex}};cvox.NavBraille.prototype
.write=function(){cvox.PlatformUtil.matchesPlatform(cvox.PlatformFilter.CHROMEOS
|cvox.PlatformFilter.ANDROID)&&cvox.ChromeVox.braille.write(this)};cvox.BrailleK
eyCommand={PAN_LEFT:"pan_left",PAN_RIGHT:"pan_right",LINE_UP:"line_up",LINE_DOWN
:"line_down",TOP:"top",BOTTOM:"bottom",ROUTING:"routing",SECONDARY_ROUTING:"seco
ndary_routing",DOTS:"dots",STANDARD_KEY:"standard_key"};cvox.BrailleKeyEvent={};
cvox.BrailleInterface=function(){};cvox.BrailleInterface.prototype.write=functio
n(){};cvox.BrailleInterface.prototype.setCommandListener=function(){};cvox.Abstr
actBraille=function(){};cvox.AbstractHost=function(){};cvox.AbstractHost.State={
ACTIVE:0,INACTIVE:1,KILLED:2};cvox.AbstractHost.prototype.init=function(){};cvox
.AbstractHost.prototype.sendToBackgroundPage=function(){};cvox.AbstractHost.prot
otype.getApiSrc=function(){return""};cvox.AbstractHost.prototype.getFileSrc=func
tion(){return""};cvox.AbstractHost.prototype.hasTtsCallback=function(){return!0}
;cvox.AbstractHost.prototype.mustRedispatchClickEvent=function(){return!1}; | 795 cvox.NavBraille.prototype.toString=function(){return'NavBraille(text="'+this.tex
t.toString()+'" startIndex="'+this.startIndex+'" endIndex="'+this.endIndex+'")
'};cvox.NavBraille.prototype.toJson=function(){return{spannable:this.text.toJson
(),startIndex:this.startIndex,endIndex:this.endIndex}};cvox.NavBraille.prototype
.write=function(){cvox.ChromeVox.braille.write(this)};cvox.BrailleKeyCommand={PA
N_LEFT:"pan_left",PAN_RIGHT:"pan_right",LINE_UP:"line_up",LINE_DOWN:"line_down",
TOP:"top",BOTTOM:"bottom",ROUTING:"routing",SECONDARY_ROUTING:"secondary_routing
",DOTS:"dots",STANDARD_KEY:"standard_key"};cvox.BrailleKeyEvent={};cvox.BrailleI
nterface=function(){};cvox.BrailleInterface.prototype.write=function(){};cvox.Br
ailleInterface.prototype.setCommandListener=function(){};cvox.AbstractBraille=fu
nction(){};cvox.AbstractHost=function(){};cvox.AbstractHost.State={ACTIVE:0,INAC
TIVE:1,KILLED:2};cvox.AbstractHost.prototype.init=function(){};cvox.AbstractHost
.prototype.sendToBackgroundPage=function(){};cvox.AbstractHost.prototype.getApiS
rc=function(){return""};cvox.AbstractHost.prototype.getFileSrc=function(){return
""};cvox.AbstractHost.prototype.hasTtsCallback=function(){return!0};cvox.Abstrac
tHost.prototype.mustRedispatchClickEvent=function(){return!1}; |
795 cvox.AbstractHost.prototype.activateOrDeactivateChromeVox=function(a){this.onSta
teChanged_(a?cvox.AbstractHost.State.ACTIVE:cvox.AbstractHost.State.INACTIVE)}; | 796 cvox.AbstractHost.prototype.activateOrDeactivateChromeVox=function(a){this.onSta
teChanged_(a?cvox.AbstractHost.State.ACTIVE:cvox.AbstractHost.State.INACTIVE)}; |
796 cvox.AbstractHost.prototype.onStateChanged_=function(a){var b=a==cvox.AbstractHo
st.State.ACTIVE;if(b!=cvox.ChromeVox.isActive)switch(cvox.ChromeVoxEventWatcher.
cleanup(window),a){case cvox.AbstractHost.State.ACTIVE:cvox.ChromeVox.isActive=!
0;cvox.ChromeVox.navigationManager.showOrHideIndicator(!0);cvox.ChromeVoxEventWa
tcher.init(window);document.activeElement?(a=document.hasFocus()&&!document.webk
itHidden,cvox.ApiImplementation.syncToNode(document.activeElement,a)):cvox.Chrom
eVox.navigationManager.updateIndicator(); | 797 cvox.AbstractHost.prototype.onStateChanged_=function(a){var b=a==cvox.AbstractHo
st.State.ACTIVE;if(b!=cvox.ChromeVox.isActive)switch(cvox.ChromeVoxEventWatcher.
cleanup(window),a){case cvox.AbstractHost.State.ACTIVE:cvox.ChromeVox.isActive=!
0;cvox.ChromeVox.navigationManager.showOrHideIndicator(!0);cvox.ChromeVoxEventWa
tcher.init(window);document.activeElement?(a=document.hasFocus()&&!document.webk
itHidden,cvox.ApiImplementation.syncToNode(document.activeElement,a)):cvox.Chrom
eVox.navigationManager.updateIndicator(); |
797 break;case cvox.AbstractHost.State.INACTIVE:cvox.ChromeVox.isActive=!1;cvox.Chro
meVox.navigationManager.showOrHideIndicator(!1);cvox.ChromeVoxEventWatcher.init(
window);break;case cvox.AbstractHost.State.KILLED:cvox.ChromeVox.isActive=!1,cvo
x.ChromeVox.navigationManager.showOrHideIndicator(!1)}};cvox.MathJaxInterface=fu
nction(){};cvox.MathJaxInterface.prototype.getAllJax=function(){};cvox.AbstractM
athJax=function(){};cvox.HostFactory=function(){};cvox.HostFactory.getHost=funct
ion(){return new cvox.HostFactory.hostConstructor};cvox.HostFactory.getTts=funct
ion(){return new cvox.HostFactory.ttsConstructor};cvox.HostFactory.getBraille=fu
nction(){return new cvox.HostFactory.brailleConstructor};cvox.HostFactory.getMsg
s=function(){return new cvox.HostFactory.msgsConstructor};cvox.HostFactory.getEa
rcons=function(){return new cvox.HostFactory.earconsConstructor};cvox.HostFactor
y.getMathJax=function(){return new cvox.HostFactory.mathJaxConstructor};cvox.Chr
omeMsgs=function(){};goog.inherits(cvox.ChromeMsgs,cvox.AbstractMsgs);cvox.Chrom
eMsgs.NAMESPACE_="chromevox_";cvox.ChromeMsgs.prototype.getMsg=function(a,b){var
c=chrome.i18n.getMessage(cvox.ChromeMsgs.NAMESPACE_+a,b);if(void 0==c||""==c)th
row Error("Invalid ChromeVox message id: "+a);return c}; | 798 break;case cvox.AbstractHost.State.INACTIVE:cvox.ChromeVox.isActive=!1;cvox.Chro
meVox.navigationManager.showOrHideIndicator(!1);cvox.ChromeVoxEventWatcher.init(
window);break;case cvox.AbstractHost.State.KILLED:cvox.ChromeVox.isActive=!1,cvo
x.ChromeVox.navigationManager.showOrHideIndicator(!1)}};cvox.MathJaxInterface=fu
nction(){};cvox.MathJaxInterface.prototype.getAllJax=function(){};cvox.AbstractM
athJax=function(){};cvox.HostFactory=function(){};cvox.HostFactory.getHost=funct
ion(){return new cvox.HostFactory.hostConstructor};cvox.HostFactory.getTts=funct
ion(){return new cvox.HostFactory.ttsConstructor};cvox.HostFactory.getBraille=fu
nction(){return new cvox.HostFactory.brailleConstructor};cvox.HostFactory.getMsg
s=function(){return new cvox.HostFactory.msgsConstructor};cvox.HostFactory.getEa
rcons=function(){return new cvox.HostFactory.earconsConstructor};cvox.HostFactor
y.getMathJax=function(){return new cvox.HostFactory.mathJaxConstructor};cvox.Chr
omeMsgs=function(){};goog.inherits(cvox.ChromeMsgs,cvox.AbstractMsgs);cvox.Chrom
eMsgs.NAMESPACE_="chromevox_";cvox.ChromeMsgs.prototype.getMsg=function(a,b){var
c=chrome.i18n.getMessage(cvox.ChromeMsgs.NAMESPACE_+a,b);if(void 0==c||""==c)th
row Error("Invalid ChromeVox message id: "+a);return c}; |
798 cvox.ChromeMsgs.prototype.addTranslatedMessagesToDom=function(a){a=a.querySelect
orAll(".i18n");for(var b=0;b<a.length;b++){var c=a[b].getAttribute("msgid");if(!
c)throw Error("Element has no msgid attribute: "+a[b]);a[b].textContent=this.get
Msg(c);a[b].classList.add("i18n-processed")}};cvox.ChromeMsgs.prototype.getNumbe
r=function(a){return""+a};cvox.HostFactory.msgsConstructor=cvox.ChromeMsgs;cvox.
ConsoleTts=function(){this.enabled_=!1};goog.addSingletonGetter(cvox.ConsoleTts)
;cvox.ConsoleTts.prototype.speak=function(a,b,c){if(this.enabled_&&window.consol
e){var d="Speak",d=b==cvox.AbstractTts.QUEUE_MODE_FLUSH?d+" (I)":d+" (Q)",d=d+('
"'+a+'"');window.console.log(d);c&&void 0!=c.startCallback&&window.console.log(
" using startCallback");c&&void 0!=c.endCallback&&window.console.log(" using e
ndCallback")}return this};cvox.ConsoleTts.prototype.isSpeaking=function(){return
!1}; | 799 cvox.ChromeMsgs.prototype.addTranslatedMessagesToDom=function(a){a=a.querySelect
orAll(".i18n");for(var b=0;b<a.length;b++){var c=a[b].getAttribute("msgid");if(!
c)throw Error("Element has no msgid attribute: "+a[b]);a[b].textContent=this.get
Msg(c);a[b].classList.add("i18n-processed")}};cvox.ChromeMsgs.prototype.getNumbe
r=function(a){return""+a};cvox.HostFactory.msgsConstructor=cvox.ChromeMsgs;cvox.
ConsoleTts=function(){this.enabled_=!1};goog.addSingletonGetter(cvox.ConsoleTts)
;cvox.ConsoleTts.prototype.speak=function(a,b,c){if(this.enabled_&&window.consol
e){var d="Speak",d=b==cvox.AbstractTts.QUEUE_MODE_FLUSH?d+" (I)":d+" (Q)",d=d+('
"'+a+'"');window.console.log(d);c&&void 0!=c.startCallback&&window.console.log(
" using startCallback");c&&void 0!=c.endCallback&&window.console.log(" using e
ndCallback")}return this};cvox.ConsoleTts.prototype.isSpeaking=function(){return
!1}; |
799 cvox.ConsoleTts.prototype.stop=function(){this.enabled_&&window.console.log("Sto
p")};cvox.ConsoleTts.prototype.addCapturingEventListener=function(){};cvox.Conso
leTts.prototype.increaseOrDecreaseProperty=function(){};cvox.ConsoleTts.prototyp
e.setEnabled=function(a){this.enabled_=a};cvox.ConsoleTts.prototype.getDefaultPr
operty=function(){};cvox.CompositeTts=function(){this.ttsEngines_=[]};cvox.Compo
siteTts.prototype.add=function(a){this.ttsEngines_.push(a);return this};cvox.Com
positeTts.prototype.speak=function(a,b,c){this.ttsEngines_.forEach(function(d){d
.speak(a,b,c)})};cvox.CompositeTts.prototype.isSpeaking=function(){return this.t
tsEngines_.some(function(a){return a.isSpeaking()})};cvox.CompositeTts.prototype
.stop=function(){this.ttsEngines_.forEach(function(a){a.stop()})};cvox.Composite
Tts.prototype.addCapturingEventListener=function(a){this.ttsEngines_.forEach(fun
ction(b){b.addCapturingEventListener(a)})}; | 800 cvox.ConsoleTts.prototype.stop=function(){this.enabled_&&window.console.log("Sto
p")};cvox.ConsoleTts.prototype.addCapturingEventListener=function(){};cvox.Conso
leTts.prototype.increaseOrDecreaseProperty=function(){};cvox.ConsoleTts.prototyp
e.setEnabled=function(a){this.enabled_=a};cvox.ConsoleTts.prototype.getDefaultPr
operty=function(){};cvox.CompositeTts=function(){this.ttsEngines_=[]};cvox.Compo
siteTts.prototype.add=function(a){this.ttsEngines_.push(a);return this};cvox.Com
positeTts.prototype.speak=function(a,b,c){this.ttsEngines_.forEach(function(d){d
.speak(a,b,c)})};cvox.CompositeTts.prototype.isSpeaking=function(){return this.t
tsEngines_.some(function(a){return a.isSpeaking()})};cvox.CompositeTts.prototype
.stop=function(){this.ttsEngines_.forEach(function(a){a.stop()})};cvox.Composite
Tts.prototype.addCapturingEventListener=function(a){this.ttsEngines_.forEach(fun
ction(b){b.addCapturingEventListener(a)})}; |
800 cvox.CompositeTts.prototype.increaseOrDecreaseProperty=function(a,b){this.ttsEng
ines_.forEach(function(c){c.increaseOrDecreaseProperty(a,b)})};cvox.CompositeTts
.prototype.getDefaultProperty=function(a){for(var b=0,c;c=this.ttsEngines_[b];b+
+)if(c=c.getDefaultProperty(a))return c};cvox.ChromeVoxEventSuspender=function()
{};cvox.ChromeVoxEventSuspender.suspendLevel_=0;cvox.ChromeVoxEventSuspender.ent
erSuspendEvents=function(){cvox.ChromeVoxEventSuspender.suspendLevel_+=1};cvox.C
hromeVoxEventSuspender.exitSuspendEvents=function(){cvox.ChromeVoxEventSuspender
.suspendLevel_-=1};cvox.ChromeVoxEventSuspender.areEventsSuspended=function(){re
turn 0<cvox.ChromeVoxEventSuspender.suspendLevel_}; | 801 cvox.CompositeTts.prototype.increaseOrDecreaseProperty=function(a,b){this.ttsEng
ines_.forEach(function(c){c.increaseOrDecreaseProperty(a,b)})};cvox.CompositeTts
.prototype.getDefaultProperty=function(a){for(var b=0,c;c=this.ttsEngines_[b];b+
+)if(c=c.getDefaultProperty(a))return c};cvox.ChromeVoxEventSuspender=function()
{};cvox.ChromeVoxEventSuspender.suspendLevel_=0;cvox.ChromeVoxEventSuspender.ent
erSuspendEvents=function(){cvox.ChromeVoxEventSuspender.suspendLevel_+=1};cvox.C
hromeVoxEventSuspender.exitSuspendEvents=function(){cvox.ChromeVoxEventSuspender
.suspendLevel_-=1};cvox.ChromeVoxEventSuspender.areEventsSuspended=function(){re
turn 0<cvox.ChromeVoxEventSuspender.suspendLevel_}; |
801 cvox.ChromeVoxEventSuspender.withSuspendedEvents=function(a){return function(){c
vox.ChromeVoxEventSuspender.enterSuspendEvents();var b=a.apply(this,arguments);c
vox.ChromeVoxEventSuspender.exitSuspendEvents();return b}};cvox.ChromeVoxEventSu
spender.makeSuspendableHandler=function(a,b){return function(){return cvox.Chrom
eVoxEventSuspender.areEventsSuspended()?b:a()}};cvox.Focuser={}; | 802 cvox.ChromeVoxEventSuspender.withSuspendedEvents=function(a){return function(){c
vox.ChromeVoxEventSuspender.enterSuspendEvents();var b=a.apply(this,arguments);c
vox.ChromeVoxEventSuspender.exitSuspendEvents();return b}};cvox.ChromeVoxEventSu
spender.makeSuspendableHandler=function(a,b){return function(){return cvox.Chrom
eVoxEventSuspender.areEventsSuspended()?b:a()}};cvox.Focuser={}; |
802 cvox.Focuser.setFocus=function(a,b){var c=window.getSelection(),d;0<c.rangeCount
&&(d=c.getRangeAt(0));document.activeElement&&!cvox.DomUtil.isDescendantOfNode(a
,document.activeElement)&&document.activeElement.blur();a&&a.constructor==HTMLVi
deoElement&&(cvox.DomUtil.isFocusable(a)||a.setAttribute("tabIndex",0));if(b&&!c
vox.DomUtil.isFocusable(a)){var e=cvox.DomUtil.findFocusableDescendant(a);e&&(a=
e)}else for(;a&&!cvox.DomUtil.isFocusable(a);)a=a.parentNode;cvox.DomUtil.isFocu
sable(a)?"IFRAME"!=a.tagName&& | 803 cvox.Focuser.setFocus=function(a,b){var c=window.getSelection(),d;0<c.rangeCount
&&(d=c.getRangeAt(0));document.activeElement&&!cvox.DomUtil.isDescendantOfNode(a
,document.activeElement)&&document.activeElement.blur();a&&a.constructor==HTMLVi
deoElement&&(cvox.DomUtil.isFocusable(a)||a.setAttribute("tabIndex",0));if(b&&!c
vox.DomUtil.isFocusable(a)){var e=cvox.DomUtil.findFocusableDescendant(a);e&&(a=
e)}else for(;a&&!cvox.DomUtil.isFocusable(a);)a=a.parentNode;cvox.DomUtil.isFocu
sable(a)?"IFRAME"!=a.tagName&& |
803 (cvox.ChromeVoxEventSuspender.areEventsSuspended()?(cvox.Focuser.shouldEnterSusp
endEvents_(a)&&cvox.ChromeVoxEventSuspender.enterSuspendEvents(),window.setTimeo
ut(function(){a.focus();cvox.ChromeVoxEventSuspender.exitSuspendEvents()},0)):wi
ndow.setTimeout(function(){a.focus()},0)):document.activeElement&&"BODY"!=docume
nt.activeElement.tagName&&document.activeElement.blur();cvox.DomUtil.isInputType
Text(a)?a.select():d&&(c.removeAllRanges(),c.addRange(d))}; | 804 (cvox.ChromeVoxEventSuspender.areEventsSuspended()?(cvox.Focuser.shouldEnterSusp
endEvents_(a)&&cvox.ChromeVoxEventSuspender.enterSuspendEvents(),window.setTimeo
ut(function(){a.focus();cvox.ChromeVoxEventSuspender.exitSuspendEvents()},0)):wi
ndow.setTimeout(function(){a.focus()},0)):document.activeElement&&"BODY"!=docume
nt.activeElement.tagName&&document.activeElement.blur();cvox.DomUtil.isInputType
Text(a)?a.select():d&&(c.removeAllRanges(),c.addRange(d))}; |
804 cvox.Focuser.shouldEnterSuspendEvents_=function(a){if(a.constructor&&a.construct
or==HTMLVideoElement)return!1;if(a.hasAttribute)switch(a.getAttribute("type")){c
ase "time":case "date":case "week":case "month":return!1}return!0};cvox.BrailleU
til={};cvox.BrailleUtil.ITEM_SEPARATOR=" ";cvox.BrailleUtil.CONTAINER="tag_h1_br
l tag_h2_brl tag_h3_brl tag_h4_brl tag_h5_brl tag_h6_brl".split(" "); | 805 cvox.Focuser.shouldEnterSuspendEvents_=function(a){if(a.constructor&&a.construct
or==HTMLVideoElement)return!1;if(a.hasAttribute)switch(a.getAttribute("type")){c
ase "time":case "date":case "week":case "month":return!1}return!0};cvox.BrailleU
til={};cvox.BrailleUtil.ITEM_SEPARATOR=" ";cvox.BrailleUtil.CONTAINER="tag_h1_br
l tag_h2_brl tag_h3_brl tag_h4_brl tag_h5_brl tag_h6_brl".split(" "); |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
839 b+1-f):(l=c,g=!1)}else{if(cvox.ChromeVox.typingEcho==cvox.TypingEcho.CHARACTER||
cvox.ChromeVox.typingEcho==cvox.TypingEcho.CHARACTER_AND_WORD)l=cvox.ChromeVoxEd
itableTextBase.eventTypingEcho?"":c}else 1<f&&!d?l=h+", deleted":1==f&&(l=h);d&&
l?l+=", "+d:d&&(l=d);l&&this.speak(l,g,e)};cvox.ChromeVoxEditableElement=functio
n(a,b,c,d,e,f){cvox.ChromeVoxEditableTextBase.call(this,b,c,d,e,f);this.node=a;t
his.justSpokeDescription_=!1};goog.inherits(cvox.ChromeVoxEditableElement,cvox.C
hromeVoxEditableTextBase); | 840 b+1-f):(l=c,g=!1)}else{if(cvox.ChromeVox.typingEcho==cvox.TypingEcho.CHARACTER||
cvox.ChromeVox.typingEcho==cvox.TypingEcho.CHARACTER_AND_WORD)l=cvox.ChromeVoxEd
itableTextBase.eventTypingEcho?"":c}else 1<f&&!d?l=h+", deleted":1==f&&(l=h);d&&
l?l+=", "+d:d&&(l=d);l&&this.speak(l,g,e)};cvox.ChromeVoxEditableElement=functio
n(a,b,c,d,e,f){cvox.ChromeVoxEditableTextBase.call(this,b,c,d,e,f);this.node=a;t
his.justSpokeDescription_=!1};goog.inherits(cvox.ChromeVoxEditableElement,cvox.C
hromeVoxEditableTextBase); |
840 cvox.ChromeVoxEditableElement.prototype.changed=function(a){this.justSpokeDescri
ption_&&this.value==a.value&&(this.value=a.value,this.start=a.start,this.end=a.e
nd,this.justSpokeDescription_=!1);cvox.ChromeVoxEditableElement.superClass_.chan
ged.call(this,a)};cvox.ChromeVoxEditableHTMLInput=function(a,b){this.node=a;this
.setup();cvox.ChromeVoxEditableElement.call(this,a,a.value,a.selectionStart,a.se
lectionEnd,"password"===a.type,b)};goog.inherits(cvox.ChromeVoxEditableHTMLInput
,cvox.ChromeVoxEditableElement); | 841 cvox.ChromeVoxEditableElement.prototype.changed=function(a){this.justSpokeDescri
ption_&&this.value==a.value&&(this.value=a.value,this.start=a.start,this.end=a.e
nd,this.justSpokeDescription_=!1);cvox.ChromeVoxEditableElement.superClass_.chan
ged.call(this,a)};cvox.ChromeVoxEditableHTMLInput=function(a,b){this.node=a;this
.setup();cvox.ChromeVoxEditableElement.call(this,a,a.value,a.selectionStart,a.se
lectionEnd,"password"===a.type,b)};goog.inherits(cvox.ChromeVoxEditableHTMLInput
,cvox.ChromeVoxEditableElement); |
841 cvox.ChromeVoxEditableHTMLInput.prototype.setup=function(){this.node&&!cvox.DomU
til.doesInputSupportSelection(this.node)&&(this.originalType=this.node.type,this
.node.type="text")};cvox.ChromeVoxEditableHTMLInput.prototype.teardown=function(
){this.node&&this.originalType&&(this.node.type=this.originalType)};cvox.ChromeV
oxEditableHTMLInput.prototype.update=function(a){var b=this.node.value;a=new cvo
x.TextChangeEvent(b,this.node.selectionStart,this.node.selectionEnd,a);this.chan
ged(a)}; | 842 cvox.ChromeVoxEditableHTMLInput.prototype.setup=function(){this.node&&!cvox.DomU
til.doesInputSupportSelection(this.node)&&(this.originalType=this.node.type,this
.node.type="text")};cvox.ChromeVoxEditableHTMLInput.prototype.teardown=function(
){this.node&&this.originalType&&(this.node.type=this.originalType)};cvox.ChromeV
oxEditableHTMLInput.prototype.update=function(a){var b=this.node.value;a=new cvo
x.TextChangeEvent(b,this.node.selectionStart,this.node.selectionEnd,a);this.chan
ged(a)}; |
842 cvox.ChromeVoxEditableTextArea=function(a,b){cvox.ChromeVoxEditableElement.call(
this,a,a.value,a.selectionStart,a.selectionEnd,!1,b);this.multiline=!0;this.shad
owIsCurrent_=!1};goog.inherits(cvox.ChromeVoxEditableTextArea,cvox.ChromeVoxEdit
ableElement);cvox.ChromeVoxEditableTextArea.prototype.update=function(a){this.no
de.value!=this.value&&(this.shadowIsCurrent_=!1);a=new cvox.TextChangeEvent(this
.node.value,this.node.selectionStart,this.node.selectionEnd,a);this.changed(a)}; | 843 cvox.ChromeVoxEditableTextArea=function(a,b){cvox.ChromeVoxEditableElement.call(
this,a,a.value,a.selectionStart,a.selectionEnd,!1,b);this.multiline=!0;this.shad
owIsCurrent_=!1};goog.inherits(cvox.ChromeVoxEditableTextArea,cvox.ChromeVoxEdit
ableElement);cvox.ChromeVoxEditableTextArea.prototype.update=function(a){this.no
de.value!=this.value&&(this.shadowIsCurrent_=!1);a=new cvox.TextChangeEvent(this
.node.value,this.node.selectionStart,this.node.selectionEnd,a);this.changed(a)}; |
843 cvox.ChromeVoxEditableTextArea.prototype.getLineIndex=function(a){return this.ge
tShadow().getLineIndex(a)};cvox.ChromeVoxEditableTextArea.prototype.getLineStart
=function(a){return this.getShadow().getLineStart(a)};cvox.ChromeVoxEditableText
Area.prototype.getLineEnd=function(a){return this.getShadow().getLineEnd(a)}; | 844 cvox.ChromeVoxEditableTextArea.prototype.getLineIndex=function(a){return this.ge
tShadow().getLineIndex(a)};cvox.ChromeVoxEditableTextArea.prototype.getLineStart
=function(a){return this.getShadow().getLineStart(a)};cvox.ChromeVoxEditableText
Area.prototype.getLineEnd=function(a){return this.getShadow().getLineEnd(a)}; |
844 cvox.ChromeVoxEditableTextArea.prototype.getShadow=function(){var a=cvox.ChromeV
oxEditableTextArea.shadow_;a||(a=cvox.ChromeVoxEditableTextArea.shadow_=new cvox
.EditableTextAreaShadow);this.shadowIsCurrent_||(a.update(this.node),this.shadow
IsCurrent_=!0);return a}; | 845 cvox.ChromeVoxEditableTextArea.prototype.getShadow=function(){var a=cvox.ChromeV
oxEditableTextArea.shadow_;a||(a=cvox.ChromeVoxEditableTextArea.shadow_=new cvox
.EditableTextAreaShadow);this.shadowIsCurrent_||(a.update(this.node),this.shadow
IsCurrent_=!0);return a}; |
845 cvox.ChromeVoxEditableContentEditable=function(a,b){cvox.ChromeVoxEditableElemen
t.call(this,a,"",0,0,!1,b);this.extractorIsCurrent_=!1;var c=this.getExtractor()
;this.value=c.getText();this.start=c.getStartIndex();this.end=c.getEndIndex();th
is.multiline=!0};goog.inherits(cvox.ChromeVoxEditableContentEditable,cvox.Chrome
VoxEditableElement); | 846 cvox.ChromeVoxEditableContentEditable=function(a,b){cvox.ChromeVoxEditableElemen
t.call(this,a,"",0,0,!1,b);this.extractorIsCurrent_=!1;var c=this.getExtractor()
;this.value=c.getText();this.start=c.getStartIndex();this.end=c.getEndIndex();th
is.multiline=!0};goog.inherits(cvox.ChromeVoxEditableContentEditable,cvox.Chrome
VoxEditableElement); |
846 cvox.ChromeVoxEditableContentEditable.prototype.update=function(a){this.extracto
rIsCurrent_=!1;a=new cvox.TextChangeEvent(this.getExtractor().getText(),this.get
Extractor().getStartIndex(),this.getExtractor().getEndIndex(),a);this.changed(a)
};cvox.ChromeVoxEditableContentEditable.prototype.getLineIndex=function(a){retur
n this.getExtractor().getLineIndex(a)};cvox.ChromeVoxEditableContentEditable.pro
totype.getLineStart=function(a){return this.getExtractor().getLineStart(a)}; | 847 cvox.ChromeVoxEditableContentEditable.prototype.update=function(a){this.extracto
rIsCurrent_=!1;a=new cvox.TextChangeEvent(this.getExtractor().getText(),this.get
Extractor().getStartIndex(),this.getExtractor().getEndIndex(),a);this.changed(a)
};cvox.ChromeVoxEditableContentEditable.prototype.getLineIndex=function(a){retur
n this.getExtractor().getLineIndex(a)};cvox.ChromeVoxEditableContentEditable.pro
totype.getLineStart=function(a){return this.getExtractor().getLineStart(a)}; |
847 cvox.ChromeVoxEditableContentEditable.prototype.getLineEnd=function(a){return th
is.getExtractor().getLineEnd(a)};cvox.ChromeVoxEditableContentEditable.prototype
.getExtractor=function(){var a=cvox.ChromeVoxEditableContentEditable.extractor_;
a||(a=cvox.ChromeVoxEditableContentEditable.extractor_=new cvox.ContentEditableE
xtractor);this.extractorIsCurrent_||(a.update(this.node),this.extractorIsCurrent
_=!0);return a}; | 848 cvox.ChromeVoxEditableContentEditable.prototype.getLineEnd=function(a){return th
is.getExtractor().getLineEnd(a)};cvox.ChromeVoxEditableContentEditable.prototype
.getExtractor=function(){var a=cvox.ChromeVoxEditableContentEditable.extractor_;
a||(a=cvox.ChromeVoxEditableContentEditable.extractor_=new cvox.ContentEditableE
xtractor);this.extractorIsCurrent_||(a.update(this.node),this.extractorIsCurrent
_=!0);return a}; |
848 cvox.ChromeVoxEditableContentEditable.prototype.changed=function(a){a.triggeredB
yUser&&(this.shouldDescribeChange(a)?cvox.ChromeVoxEditableContentEditable.super
Class_.changed.call(this,a):this.speak(cvox.ChromeVox.msgs.getMsg("text_box_blan
k"),!0))}; | 849 cvox.ChromeVoxEditableContentEditable.prototype.changed=function(a){a.triggeredB
yUser&&(this.shouldDescribeChange(a)?cvox.ChromeVoxEditableContentEditable.super
Class_.changed.call(this,a):this.speak(cvox.ChromeVox.msgs.getMsg("text_box_blan
k"),!0))}; |
849 cvox.ChromeVoxEditableContentEditable.prototype.shouldDescribeChange=function(a)
{var b=window.getSelection(),c=new cvox.Cursor(b.baseNode,b.baseOffset,"");retur
n 1!=Math.abs(this.start-a.start)&&this.start==this.end&&a.start==a.end&&b.baseN
ode==b.extentNode&&b.baseOffset==b.extentOffset&&b.baseNode.nodeType==Node.ELEME
NT_NODE&&b.baseNode.querySelector("BR")&&cvox.TraverseUtil.forwardsChar(c,[],[])
?!1:!0};cvox.LibLouis=function(a,b){this.nmfPath_=a;this.tablesDir_=goog.isDef(b
)?b:null;this.embedElement_=null;this.instanceState_=cvox.LibLouis.InstanceState
.NOT_LOADED;this.pendingTranslators_=[];this.pendingRpcCallbacks_={};this.nextMe
ssageId_=1};cvox.LibLouis.InstanceState={NOT_LOADED:0,LOADING:1,LOADED:2,ERROR:-
1}; | 850 cvox.ChromeVoxEditableContentEditable.prototype.shouldDescribeChange=function(a)
{var b=window.getSelection(),c=new cvox.Cursor(b.baseNode,b.baseOffset,"");retur
n 1!=Math.abs(this.start-a.start)&&this.start==this.end&&a.start==a.end&&b.baseN
ode==b.extentNode&&b.baseOffset==b.extentOffset&&b.baseNode.nodeType==Node.ELEME
NT_NODE&&b.baseNode.querySelector("BR")&&cvox.TraverseUtil.forwardsChar(c,[],[])
?!1:!0};cvox.PlatformUtil={};cvox.PlatformFilter={NONE:0,WINDOWS:1,MAC:2,LINUX:4
,WML:7,CHROMEOS:8,ANDROID:16};cvox.PlatformUtil.matchesPlatform=function(a){var
b=navigator.userAgent;return void 0==a?!0:-1!=b.indexOf("Android")?0!=(a&cvox.Pl
atformFilter.ANDROID):-1!=b.indexOf("Win")?0!=(a&cvox.PlatformFilter.WINDOWS):-1
!=b.indexOf("Mac")?0!=(a&cvox.PlatformFilter.MAC):-1!=b.indexOf("Linux")?0!=(a&c
vox.PlatformFilter.LINUX):-1!=b.indexOf("CrOS")?0!=(a&cvox.PlatformFilter.CHROME
OS):!1};cvox.LibLouis=function(a,b){this.nmfPath_=a;this.tablesDir_=goog.isDef(b
)?b:null;this.embedElement_=null;this.instanceState_=cvox.LibLouis.InstanceState
.NOT_LOADED;this.pendingTranslators_=[];this.pendingRpcCallbacks_={};this.nextMe
ssageId_=1};cvox.LibLouis.InstanceState={NOT_LOADED:0,LOADING:1,LOADED:2,ERROR:-
1}; |
850 cvox.LibLouis.prototype.attachToElement=function(a){if(this.isAttached())throw E
rror("instance already attached");var b=document.createElement("embed");b.src=th
is.nmfPath_;b.type="application/x-nacl";b.width=0;b.height=0;goog.isNull(this.ta
blesDir_)||b.setAttribute("tablesdir",this.tablesDir_);b.addEventListener("load"
,goog.bind(this.onInstanceLoad_,this),!1);b.addEventListener("error",goog.bind(t
his.onInstanceError_,this),!1);b.addEventListener("message",goog.bind(this.onIns
tanceMessage_,this),!1); | 851 cvox.LibLouis.prototype.attachToElement=function(a){if(this.isAttached())throw E
rror("instance already attached");var b=document.createElement("embed");b.src=th
is.nmfPath_;b.type="application/x-nacl";b.width=0;b.height=0;goog.isNull(this.ta
blesDir_)||b.setAttribute("tablesdir",this.tablesDir_);b.addEventListener("load"
,goog.bind(this.onInstanceLoad_,this),!1);b.addEventListener("error",goog.bind(t
his.onInstanceError_,this),!1);b.addEventListener("message",goog.bind(this.onIns
tanceMessage_,this),!1); |
851 a.appendChild(b);this.embedElement_=b;this.instanceState_=cvox.LibLouis.Instance
State.LOADING};cvox.LibLouis.prototype.detach=function(){if(!this.isAttached())t
hrow Error("cannot detach unattached instance");this.embedElement_.parentNode.re
moveChild(this.embedElement_);this.embedElement_=null;this.instanceState_=cvox.L
ibLouis.InstanceState.NOT_LOADED};cvox.LibLouis.prototype.isAttached=function(){
return null!==this.embedElement_}; | 852 a.appendChild(b);this.embedElement_=b;this.instanceState_=cvox.LibLouis.Instance
State.LOADING};cvox.LibLouis.prototype.detach=function(){if(!this.isAttached())t
hrow Error("cannot detach unattached instance");this.embedElement_.parentNode.re
moveChild(this.embedElement_);this.embedElement_=null;this.instanceState_=cvox.L
ibLouis.InstanceState.NOT_LOADED};cvox.LibLouis.prototype.isAttached=function(){
return null!==this.embedElement_}; |
852 cvox.LibLouis.prototype.getTranslator=function(a,b){switch(this.instanceState_){
case cvox.LibLouis.InstanceState.NOT_LOADED:case cvox.LibLouis.InstanceState.LOA
DING:this.pendingTranslators_.push({tableName:a,callback:b});break;case cvox.Lib
Louis.InstanceState.ERROR:b(null);break;case cvox.LibLouis.InstanceState.LOADED:
this.rpc_("CheckTable",{table_name:a},goog.bind(function(c){c.success?(c=new cvo
x.LibLouis.Translator(this,a),b(c)):b(null)},this))}}; | 853 cvox.LibLouis.prototype.getTranslator=function(a,b){switch(this.instanceState_){
case cvox.LibLouis.InstanceState.NOT_LOADED:case cvox.LibLouis.InstanceState.LOA
DING:this.pendingTranslators_.push({tableName:a,callback:b});break;case cvox.Lib
Louis.InstanceState.ERROR:b(null);break;case cvox.LibLouis.InstanceState.LOADED:
this.rpc_("CheckTable",{table_name:a},goog.bind(function(c){c.success?(c=new cvo
x.LibLouis.Translator(this,a),b(c)):b(null)},this))}}; |
853 cvox.LibLouis.prototype.rpc_=function(a,b,c){if(this.instanceState_!==cvox.LibLo
uis.InstanceState.LOADED)throw Error("cannot send RPC: liblouis instance not loa
ded");var d=""+this.nextMessageId_++;b.message_id=d;b.command=a;a=JSON.stringify
(b);goog.DEBUG&&window.console.debug("RPC -> "+a);this.embedElement_.postMessage
(a);this.pendingRpcCallbacks_[d]=c}; | 854 cvox.LibLouis.prototype.rpc_=function(a,b,c){if(this.instanceState_!==cvox.LibLo
uis.InstanceState.LOADED)throw Error("cannot send RPC: liblouis instance not loa
ded");var d=""+this.nextMessageId_++;b.message_id=d;b.command=a;a=JSON.stringify
(b);goog.DEBUG&&window.console.debug("RPC -> "+a);this.embedElement_.postMessage
(a);this.pendingRpcCallbacks_[d]=c}; |
854 cvox.LibLouis.prototype.onInstanceLoad_=function(){window.console.info("loaded l
iblouis Native Client instance");this.instanceState_=cvox.LibLouis.InstanceState
.LOADED;this.pendingTranslators_.forEach(goog.bind(function(a){this.getTranslato
r(a.tableName,a.callback)},this));this.pendingTranslators_.length=0}; | 855 cvox.LibLouis.prototype.onInstanceLoad_=function(){window.console.info("loaded l
iblouis Native Client instance");this.instanceState_=cvox.LibLouis.InstanceState
.LOADED;this.pendingTranslators_.forEach(goog.bind(function(a){this.getTranslato
r(a.tableName,a.callback)},this));this.pendingTranslators_.length=0}; |
855 cvox.LibLouis.prototype.onInstanceError_=function(){window.console.error("failed
to load liblouis Native Client instance");this.instanceState_=cvox.LibLouis.Ins
tanceState.ERROR;this.pendingTranslators_.forEach(goog.bind(function(a){this.get
Translator(a.tableName,a.callback)},this));this.pendingTranslators_.length=0}; | 856 cvox.LibLouis.prototype.onInstanceError_=function(){window.console.error("failed
to load liblouis Native Client instance");this.instanceState_=cvox.LibLouis.Ins
tanceState.ERROR;this.pendingTranslators_.forEach(goog.bind(function(a){this.get
Translator(a.tableName,a.callback)},this));this.pendingTranslators_.length=0}; |
856 cvox.LibLouis.prototype.onInstanceMessage_=function(a){goog.DEBUG&&window.consol
e.debug("RPC <- "+a.data);a=JSON.parse(a.data);var b=a.in_reply_to;if(goog.isDef
(b)){goog.isDef(a.error)&&window.console.error("liblouis Native Client error",a.
error);var c=this.pendingRpcCallbacks_[b];goog.isDef(c)&&(delete this.pendingRpc
Callbacks_[b],c(a))}else window.console.warn("liblouis Native Client module sent
message with no ID",a)};cvox.LibLouis.Translator=function(a,b){this.instance_=a
;this.tableName_=b}; | 857 cvox.LibLouis.prototype.onInstanceMessage_=function(a){goog.DEBUG&&window.consol
e.debug("RPC <- "+a.data);a=JSON.parse(a.data);var b=a.in_reply_to;if(goog.isDef
(b)){goog.isDef(a.error)&&window.console.error("liblouis Native Client error",a.
error);var c=this.pendingRpcCallbacks_[b];goog.isDef(c)&&(delete this.pendingRpc
Callbacks_[b],c(a))}else window.console.warn("liblouis Native Client module sent
message with no ID",a)};cvox.LibLouis.Translator=function(a,b){this.instance_=a
;this.tableName_=b}; |
857 cvox.LibLouis.Translator.prototype.translate=function(a,b){var c={table_name:thi
s.tableName_,text:a};this.instance_.rpc_("Translate",c,function(a){var c=null,f=
null,g=null;a.success&&goog.isString(a.cells)&&(c=cvox.LibLouis.Translator.decod
eHexString_(a.cells),goog.isDef(a.text_to_braille)&&(f=a.text_to_braille),goog.i
sDef(a.braille_to_text)&&(g=a.braille_to_text));b(c,f,g)})}; | 858 cvox.LibLouis.Translator.prototype.translate=function(a,b){var c={table_name:thi
s.tableName_,text:a};this.instance_.rpc_("Translate",c,function(d){var e=null,f=
null,g=null;d.success&&goog.isString(d.cells)?(e=cvox.LibLouis.Translator.decode
HexString_(d.cells),goog.isDef(d.text_to_braille)&&(f=d.text_to_braille),goog.is
Def(d.braille_to_text)&&(g=d.braille_to_text)):0<a.length&&console.error("Braill
e translation error for "+JSON.stringify(c));b(e,f,g)})}; |
858 cvox.LibLouis.Translator.decodeHexString_=function(a){if(!/^([0-9a-f]{2})*$/i.te
st(a))throw Error("invalid hexadecimal string");for(var b=new Uint8Array(a.lengt
h/2),c=0,d=0;d<a.length;d+=2)b[c++]=parseInt(a.substring(d,d+2),16);return b.buf
fer};cvox.LibLouis.Translator.encodeHexString_=function(a){a=new Uint8Array(a);f
or(var b="",c=0;c<a.length;c++)var d=a[c],b=b+((16>d?"0":"")+d.toString(16));ret
urn b};cvox.ChromeVoxJSON||(cvox.ChromeVoxJSON={}); | 859 cvox.LibLouis.Translator.decodeHexString_=function(a){if(!/^([0-9a-f]{2})*$/i.te
st(a))throw Error("invalid hexadecimal string");for(var b=new Uint8Array(a.lengt
h/2),c=0,d=0;d<a.length;d+=2)b[c++]=parseInt(a.substring(d,d+2),16);return b.buf
fer};cvox.LibLouis.Translator.encodeHexString_=function(a){a=new Uint8Array(a);f
or(var b="",c=0;c<a.length;c++)var d=a[c],b=b+((16>d?"0":"")+d.toString(16));ret
urn b};cvox.ChromeVoxJSON||(cvox.ChromeVoxJSON={}); |
859 window.JSON&&"[object JSON]"==window.JSON.toString()?cvox.ChromeVoxJSON=window.J
SON:function(){function a(a){return 10>a?"0"+a:a}function b(a){e.lastIndex=0;ret
urn e.test(a)?'"'+a.replace(e,function(a){var b=h[a];return"string"===typeof b?b
:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+a+'"'}function
c(a,d){var e,h,m,s,u=f,t,r=d[a];r&&"object"===typeof r&&"function"===typeof r.to
JSON&&(r=r.toJSON(a));"function"===typeof k&&(r=k.call(d,a,r));switch(typeof r){
case "string":return b(r); | 860 window.JSON&&"[object JSON]"==window.JSON.toString()?cvox.ChromeVoxJSON=window.J
SON:function(){function a(a){return 10>a?"0"+a:a}function b(a){e.lastIndex=0;ret
urn e.test(a)?'"'+a.replace(e,function(a){var b=h[a];return"string"===typeof b?b
:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+a+'"'}function
c(a,d){var e,h,m,s,u=f,t,r=d[a];r&&"object"===typeof r&&"function"===typeof r.to
JSON&&(r=r.toJSON(a));"function"===typeof k&&(r=k.call(d,a,r));switch(typeof r){
case "string":return b(r); |
860 case "number":return isFinite(r)?String(r):"null";case "boolean":case "null":ret
urn String(r);case "object":if(!r)return"null";f+=g;t=[];if("[object Array]"===O
bject.prototype.toString.apply(r)){s=r.length;for(e=0;e<s;e+=1)t[e]=c(e,r)||"nul
l";m=0===t.length?"[]":f?"[\n"+f+t.join(",\n"+f)+"\n"+u+"]":"["+t.join(",")+"]";
f=u;return m}if(k&&"object"===typeof k)for(s=k.length,e=0;e<s;e+=1)h=k[e],"strin
g"===typeof h&&(m=c(h,r))&&t.push(b(h)+(f?": ":":")+m);else for(h in r)Object.ha
sOwnProperty.call(r,h)&& | 861 case "number":return isFinite(r)?String(r):"null";case "boolean":case "null":ret
urn String(r);case "object":if(!r)return"null";f+=g;t=[];if("[object Array]"===O
bject.prototype.toString.apply(r)){s=r.length;for(e=0;e<s;e+=1)t[e]=c(e,r)||"nul
l";m=0===t.length?"[]":f?"[\n"+f+t.join(",\n"+f)+"\n"+u+"]":"["+t.join(",")+"]";
f=u;return m}if(k&&"object"===typeof k)for(s=k.length,e=0;e<s;e+=1)h=k[e],"strin
g"===typeof h&&(m=c(h,r))&&t.push(b(h)+(f?": ":":")+m);else for(h in r)Object.ha
sOwnProperty.call(r,h)&& |
861 (m=c(h,r))&&t.push(b(h)+(f?": ":":")+m);m=0===t.length?"{}":f?"{\n"+f+t.join(",\
n"+f)+"\n"+u+"}":"{"+t.join(",")+"}";f=u;return m}}"function"!==typeof Date.prot
otype.toJSON&&(Date.prototype.toJSON=function(){return isFinite(this.valueOf())?
this.getUTCFullYear()+"-"+a(this.getUTCMonth()+1)+"-"+a(this.getUTCDate())+"T"+a
(this.getUTCHours())+":"+a(this.getUTCMinutes())+":"+a(this.getUTCSeconds())+"Z"
:"null"},String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSO
N=function(){return this.valueOf()}); | 862 (m=c(h,r))&&t.push(b(h)+(f?": ":":")+m);m=0===t.length?"{}":f?"{\n"+f+t.join(",\
n"+f)+"\n"+u+"}":"{"+t.join(",")+"}";f=u;return m}}"function"!==typeof Date.prot
otype.toJSON&&(Date.prototype.toJSON=function(){return isFinite(this.valueOf())?
this.getUTCFullYear()+"-"+a(this.getUTCMonth()+1)+"-"+a(this.getUTCDate())+"T"+a
(this.getUTCHours())+":"+a(this.getUTCMinutes())+":"+a(this.getUTCSeconds())+"Z"
:"null"},String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSO
N=function(){return this.valueOf()}); |
862 var d=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2
060-\u206f\ufeff\ufff0-\uffff]/g,e=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u
070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,f,
g,h={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\
"},k;"function"!==typeof cvox.ChromeVoxJSON.stringify&&(cvox.ChromeVoxJSON.strin
gify=function(a,b,d){var e;g=f="";if("number"===typeof d)for(e=0;e<d;e+=1)g+=" "
;else"string"===typeof d&& | 863 var d=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2
060-\u206f\ufeff\ufff0-\uffff]/g,e=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u
070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,f,
g,h={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\
"},k;"function"!==typeof cvox.ChromeVoxJSON.stringify&&(cvox.ChromeVoxJSON.strin
gify=function(a,b,d){var e;g=f="";if("number"===typeof d)for(e=0;e<d;e+=1)g+=" "
;else"string"===typeof d&& |
863 (g=d);if((k=b)&&"function"!==typeof b&&("object"!==typeof b||"number"!==typeof b
.length))throw Error("JSON.stringify");return c("",{"":a})});"function"!==typeof
cvox.ChromeVoxJSON.parse&&(cvox.ChromeVoxJSON.parse=function(a,b){function c(a,
d){var e,f,g=a[d];if(g&&"object"===typeof g)for(e in g)Object.hasOwnProperty.cal
l(g,e)&&(f=c(g,e),void 0!==f?g[e]=f:delete g[e]);return b.call(a,d,g)}var e;a=St
ring(a);d.lastIndex=0;d.test(a)&&(a=a.replace(d,function(a){return"\\u"+("0000"+
a.charCodeAt(0).toString(16)).slice(-4)})); | 864 (g=d);if((k=b)&&"function"!==typeof b&&("object"!==typeof b||"number"!==typeof b
.length))throw Error("JSON.stringify");return c("",{"":a})});"function"!==typeof
cvox.ChromeVoxJSON.parse&&(cvox.ChromeVoxJSON.parse=function(a,b){function c(a,
d){var e,f,g=a[d];if(g&&"object"===typeof g)for(e in g)Object.hasOwnProperty.cal
l(g,e)&&(f=c(g,e),void 0!==f?g[e]=f:delete g[e]);return b.call(a,d,g)}var e;a=St
ring(a);d.lastIndex=0;d.test(a)&&(a=a.replace(d,function(a){return"\\u"+("0000"+
a.charCodeAt(0).toString(16)).slice(-4)})); |
864 if(/^[\],:{}\s]*$/.test(a.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").rep
lace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").rep
lace(/(?:^|:|,)(?:\s*\[)+/g,"")))return e=eval("("+a+")"),"function"===typeof b?
c({"":e},""):e;throw new SyntaxError("JSON.parse");})}();cvox.ExtensionBridge=fu
nction(){};cvox.ExtensionBridge.init=function(){var a=cvox.ExtensionBridge;a.mes
sageListeners=[];a.disconnectListeners=[];/^chrome-extension:\/\/.*background\.h
tml$/.test(window.location.href)?(a.context=a.BACKGROUND,a.initBackground()):chr
ome&&chrome.extension&&(a.context=a.CONTENT_SCRIPT,a.initContentScript())};cvox.
ExtensionBridge.BACKGROUND=0;cvox.ExtensionBridge.CONTENT_SCRIPT=1;cvox.Extensio
nBridge.PORT_NAME="cvox.ExtensionBridge.Port";cvox.ExtensionBridge.PING_MSG="cvo
x.ExtensionBridge.Ping"; | 865 if(/^[\],:{}\s]*$/.test(a.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").rep
lace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").rep
lace(/(?:^|:|,)(?:\s*\[)+/g,"")))return e=eval("("+a+")"),"function"===typeof b?
c({"":e},""):e;throw new SyntaxError("JSON.parse");})}();cvox.ExtensionBridge=fu
nction(){};cvox.ExtensionBridge.init=function(){var a=cvox.ExtensionBridge;a.mes
sageListeners=[];a.disconnectListeners=[];/^chrome-extension:\/\/.*background\.h
tml$/.test(window.location.href)?(a.context=a.BACKGROUND,a.initBackground()):chr
ome&&chrome.extension&&(a.context=a.CONTENT_SCRIPT,a.initContentScript())};cvox.
ExtensionBridge.BACKGROUND=0;cvox.ExtensionBridge.CONTENT_SCRIPT=1;cvox.Extensio
nBridge.PORT_NAME="cvox.ExtensionBridge.Port";cvox.ExtensionBridge.PING_MSG="cvo
x.ExtensionBridge.Ping"; |
865 cvox.ExtensionBridge.PONG_MSG="cvox.ExtensionBridge.Pong";cvox.ExtensionBridge.s
end=function(a){var b=cvox.ExtensionBridge;switch(b.context){case b.BACKGROUND:b
.sendBackgroundToContentScript(a);break;case b.CONTENT_SCRIPT:b.sendContentScrip
tToBackground(a)}};cvox.ExtensionBridge.addMessageListener=function(a){cvox.Exte
nsionBridge.messageListeners.push(a)};cvox.ExtensionBridge.addDisconnectListener
=function(a){cvox.ExtensionBridge.disconnectListeners.push(a)}; | 866 cvox.ExtensionBridge.PONG_MSG="cvox.ExtensionBridge.Pong";cvox.ExtensionBridge.s
end=function(a){var b=cvox.ExtensionBridge;switch(b.context){case b.BACKGROUND:b
.sendBackgroundToContentScript(a);break;case b.CONTENT_SCRIPT:b.sendContentScrip
tToBackground(a)}};cvox.ExtensionBridge.addMessageListener=function(a){cvox.Exte
nsionBridge.messageListeners.push(a)};cvox.ExtensionBridge.addDisconnectListener
=function(a){cvox.ExtensionBridge.disconnectListeners.push(a)}; |
866 cvox.ExtensionBridge.removeMessageListeners=function(){cvox.ExtensionBridge.mess
ageListeners.length=0};cvox.ExtensionBridge.uniqueId=function(){return cvox.Exte
nsionBridge.id_}; | 867 cvox.ExtensionBridge.removeMessageListeners=function(){cvox.ExtensionBridge.mess
ageListeners.length=0};cvox.ExtensionBridge.uniqueId=function(){return cvox.Exte
nsionBridge.id_}; |
867 cvox.ExtensionBridge.initBackground=function(){var a=cvox.ExtensionBridge;a.port
Cache_=[];a.nextPongId_=1;a.id_=0;var b=function(b){b.name==a.PORT_NAME&&(a.port
Cache_.push(b),b.onMessage.addListener(function(d){if(d[cvox.ExtensionBridge.PIN
G_MSG])d={},d[cvox.ExtensionBridge.PONG_MSG]=a.nextPongId_++,b.postMessage(d);el
se for(var e=0;e<a.messageListeners.length;e++)a.messageListeners[e](d,b)}),b.on
Disconnect.addListener(function(){for(var d=0;d<a.portCache_.length;d++)if(a.por
tCache_[d]==b){a.portCache_.splice(d, | 868 cvox.ExtensionBridge.initBackground=function(){var a=cvox.ExtensionBridge;a.port
Cache_=[];a.nextPongId_=1;a.id_=0;var b=function(b){b.name==a.PORT_NAME&&(a.port
Cache_.push(b),b.onMessage.addListener(function(d){if(d[cvox.ExtensionBridge.PIN
G_MSG])d={},d[cvox.ExtensionBridge.PONG_MSG]=a.nextPongId_++,b.postMessage(d);el
se for(var e=0;e<a.messageListeners.length;e++)a.messageListeners[e](d,b)}),b.on
Disconnect.addListener(function(){for(var d=0;d<a.portCache_.length;d++)if(a.por
tCache_[d]==b){a.portCache_.splice(d, |
868 1);break}}))};chrome.extension.onConnect.addListener(b);chrome.extension.onConne
ctExternal.addListener(b)}; | 869 1);break}}))};chrome.extension.onConnect.addListener(b)}; |
869 cvox.ExtensionBridge.initContentScript=function(){var a=cvox.ExtensionBridge;a.c
onnected=!1;a.pingAttempts=0;a.queuedMessages=[];a.id_=-1;var b=function(b,d,e){
if(!b||!b.srcFile){if(b[cvox.ExtensionBridge.PONG_MSG])a.gotPongFromBackgroundPa
ge(b[cvox.ExtensionBridge.PONG_MSG]);else for(d=0;d<a.messageListeners.length;d+
+)a.messageListeners[d](b,cvox.ExtensionBridge.backgroundPort);e({})}};chrome.ex
tension.onMessage.addListener(b);a.setupBackgroundPort();a.tryToPingBackgroundPa
ge()}; | 870 cvox.ExtensionBridge.initContentScript=function(){var a=cvox.ExtensionBridge;a.c
onnected=!1;a.pingAttempts=0;a.queuedMessages=[];a.id_=-1;var b=function(b,d,e){
if(!b||!b.srcFile){if(b[cvox.ExtensionBridge.PONG_MSG])a.gotPongFromBackgroundPa
ge(b[cvox.ExtensionBridge.PONG_MSG]);else for(d=0;d<a.messageListeners.length;d+
+)a.messageListeners[d](b,cvox.ExtensionBridge.backgroundPort);e({})}};chrome.ex
tension.onMessage.addListener(b);a.setupBackgroundPort();a.tryToPingBackgroundPa
ge()}; |
870 cvox.ExtensionBridge.setupBackgroundPort=function(){var a=cvox.ExtensionBridge;a
.backgroundPort=chrome.extension.connect({name:a.PORT_NAME});a.backgroundPort.on
Message.addListener(function(b){if(b[cvox.ExtensionBridge.PONG_MSG])a.gotPongFro
mBackgroundPage(b[cvox.ExtensionBridge.PONG_MSG]);else for(var c=0;c<a.messageLi
steners.length;c++)a.messageListeners[c](b,a.backgroundPort)});a.backgroundPort.
onDisconnect.addListener(function(){if(a.connected)for(var b=0;b<a.disconnectLis
teners.length;b++)a.disconnectListeners[b](); | 871 cvox.ExtensionBridge.setupBackgroundPort=function(){var a=cvox.ExtensionBridge;a
.backgroundPort=chrome.extension.connect({name:a.PORT_NAME});a.backgroundPort.on
Message.addListener(function(b){if(b[cvox.ExtensionBridge.PONG_MSG])a.gotPongFro
mBackgroundPage(b[cvox.ExtensionBridge.PONG_MSG]);else for(var c=0;c<a.messageLi
steners.length;c++)a.messageListeners[c](b,a.backgroundPort)});a.backgroundPort.
onDisconnect.addListener(function(){if(a.connected)for(var b=0;b<a.disconnectLis
teners.length;b++)a.disconnectListeners[b](); |
871 else a.backgroundPort=null})};cvox.ExtensionBridge.tryToPingBackgroundPage=funct
ion(){var a=cvox.ExtensionBridge;if(!a.connected)if(a.pingAttempts++,5<a.pingAtt
empts)for(var b=0;b<a.disconnectListeners.length;b++)a.disconnectListeners[b]();
else b={},b[cvox.ExtensionBridge.PING_MSG]=1,a.backgroundPort||a.setupBackground
Port(),a.backgroundPort.postMessage(b),window.setTimeout(cvox.ExtensionBridge.tr
yToPingBackgroundPage,500)}; | 872 else a.backgroundPort=null})};cvox.ExtensionBridge.tryToPingBackgroundPage=funct
ion(){var a=cvox.ExtensionBridge;if(!a.connected)if(a.pingAttempts++,5<a.pingAtt
empts)for(var b=0;b<a.disconnectListeners.length;b++)a.disconnectListeners[b]();
else b={},b[cvox.ExtensionBridge.PING_MSG]=1,a.backgroundPort||a.setupBackground
Port(),a.backgroundPort.postMessage(b),window.setTimeout(cvox.ExtensionBridge.tr
yToPingBackgroundPage,500)}; |
872 cvox.ExtensionBridge.gotPongFromBackgroundPage=function(a){var b=cvox.ExtensionB
ridge;b.connected=!0;for(b.id_=a;0<b.queuedMessages.length;)b.sendContentScriptT
oBackground(b.queuedMessages.shift())};cvox.ExtensionBridge.sendContentScriptToB
ackground=function(a){var b=cvox.ExtensionBridge;b.connected?cvox.ExtensionBridg
e.backgroundPort?cvox.ExtensionBridge.backgroundPort.postMessage(a):chrome.exten
sion.sendMessage(a):b.queuedMessages.push(a)}; | 873 cvox.ExtensionBridge.gotPongFromBackgroundPage=function(a){var b=cvox.ExtensionB
ridge;b.connected=!0;for(b.id_=a;0<b.queuedMessages.length;)b.sendContentScriptT
oBackground(b.queuedMessages.shift())};cvox.ExtensionBridge.sendContentScriptToB
ackground=function(a){var b=cvox.ExtensionBridge;b.connected?cvox.ExtensionBridg
e.backgroundPort?cvox.ExtensionBridge.backgroundPort.postMessage(a):chrome.exten
sion.sendMessage(a):b.queuedMessages.push(a)}; |
873 cvox.ExtensionBridge.sendBackgroundToContentScript=function(a){chrome.tabs.query
({active:!0,lastFocusedWindow:!0},function(b){b&&0<b.length?chrome.tabs.sendMess
age(b[0].id,a):cvox.ExtensionBridge.portCache_.forEach(function(b){b.postMessage
(a)})})};cvox.ExtensionBridge.init();cvox.BrailleCaptionsBackground={};cvox.Brai
lleCaptionsBackground.PREF_KEY="brailleCaptions";cvox.BrailleCaptionsBackground.
BRAILLE_UNICODE_BLOCK_START=10240;cvox.BrailleCaptionsBackground.init=function(a
){var b=cvox.BrailleCaptionsBackground;b.stateCallback_=a};cvox.BrailleCaptionsB
ackground.isEnabled=function(){var a=cvox.BrailleCaptionsBackground;return"true"
===localStorage[a.PREF_KEY]}; | 874 cvox.ExtensionBridge.sendBackgroundToContentScript=function(a){chrome.tabs.query
({active:!0,lastFocusedWindow:!0},function(b){b&&0<b.length?chrome.tabs.sendMess
age(b[0].id,a):cvox.ExtensionBridge.portCache_.forEach(function(b){b.postMessage
(a)})})};cvox.ExtensionBridge.init();cvox.BrailleCaptionsBackground={};cvox.Brai
lleCaptionsBackground.PREF_KEY="brailleCaptions";cvox.BrailleCaptionsBackground.
BRAILLE_UNICODE_BLOCK_START=10240;cvox.BrailleCaptionsBackground.init=function(a
){var b=cvox.BrailleCaptionsBackground;b.stateCallback_=a};cvox.BrailleCaptionsB
ackground.isEnabled=function(){var a=cvox.BrailleCaptionsBackground;return"true"
===localStorage[a.PREF_KEY]}; |
874 cvox.BrailleCaptionsBackground.setContent=function(a,b){for(var c=cvox.BrailleCa
ptionsBackground,d=new Uint8Array(b),e="",f=0;f<d.length;++f)e+=String.fromCharC
ode(c.BRAILLE_UNICODE_BLOCK_START|d[f]);cvox.ExtensionBridge.send({message:"BRAI
LLE_CAPTION",text:a,brailleChars:e})}; | 875 cvox.BrailleCaptionsBackground.setContent=function(a,b){for(var c=cvox.BrailleCa
ptionsBackground,d=new Uint8Array(b),e="",f=0;f<d.length;++f)e+=String.fromCharC
ode(c.BRAILLE_UNICODE_BLOCK_START|d[f]);cvox.ExtensionBridge.send({message:"BRAI
LLE_CAPTION",text:a,brailleChars:e})}; |
875 cvox.BrailleCaptionsBackground.setActive=function(a){var b=cvox.BrailleCaptionsB
ackground,c=b.isEnabled();window.prefs.setPref(b.PREF_KEY,String(a));c!=a&&(b.st
ateCallback_&&b.stateCallback_(),a=a?cvox.ChromeVox.msgs.getMsg("braille_caption
s_enabled"):cvox.ChromeVox.msgs.getMsg("braille_captions_disabled"),cvox.ChromeV
ox.tts.speak(a),cvox.ChromeVox.braille.write(cvox.NavBraille.fromText(a)))}; | 876 cvox.BrailleCaptionsBackground.setActive=function(a){var b=cvox.BrailleCaptionsB
ackground,c=b.isEnabled();window.prefs.setPref(b.PREF_KEY,String(a));c!=a&&(b.st
ateCallback_&&b.stateCallback_(),a=a?cvox.ChromeVox.msgs.getMsg("braille_caption
s_enabled"):cvox.ChromeVox.msgs.getMsg("braille_captions_disabled"),cvox.ChromeV
ox.tts.speak(a),cvox.ChromeVox.braille.write(cvox.NavBraille.fromText(a)))}; |
876 cvox.BrailleCaptionsBackground.getVirtualDisplayState=function(){var a=cvox.Brai
lleCaptionsBackground;return a.isEnabled()?{available:!0,textCellCount:40}:{avai
lable:!1}};cvox.ExpandingBrailleTranslator=function(a,b){this.defaultTranslator_
=a;this.uncontractedTranslator_=b||null}; | 877 cvox.BrailleCaptionsBackground.getVirtualDisplayState=function(){var a=cvox.Brai
lleCaptionsBackground;return a.isEnabled()?{available:!0,textCellCount:40}:{avai
lable:!1}};cvox.ExpandingBrailleTranslator=function(a,b){this.defaultTranslator_
=a;this.uncontractedTranslator_=b||null}; |
877 cvox.ExpandingBrailleTranslator.prototype.translate=function(a,b){function c(a,b
,c){g.push({translator:a,start:b,end:c})}function d(a,b,c,d){a.cells=b;a.textToB
raille=c;a.brailleToText=d;0>=--n&&e()}function e(){function a(b,c,d){b.push.app
ly(b,c.map(function(a){return d+a}))}for(var c=g.reduce(function(a,b){return a+b
.cells.byteLength},0),c=new Uint8Array(c),d=0,e=[],f=[],h=0,k;k=g[h];++h)c.set(n
ew Uint8Array(k.cells),d),a(e,k.textToBraille,d),a(f,k.brailleToText,k.start),d+
=k.cells.byteLength;b(c.buffer, | 878 cvox.ExpandingBrailleTranslator.prototype.translate=function(a,b){function c(a,b
,c){g.push({translator:a,start:b,end:c})}function d(a,b,c,d){a.cells=b;a.textToB
raille=c;a.brailleToText=d;0>=--n&&e()}function e(){function a(b,c,d){b.push.app
ly(b,c.map(function(a){return d+a}))}for(var c=g.reduce(function(a,b){return a+b
.cells.byteLength},0),c=new Uint8Array(c),d=0,e=[],f=[],h=0,k;k=g[h];++h)c.set(n
ew Uint8Array(k.cells),d),a(e,k.textToBraille,d),a(f,k.brailleToText,k.start),d+
=k.cells.byteLength;b(c.buffer, |
878 e,f)}var f=this.findExpandRanges_(a);if(0==f.length)this.defaultTranslator_.tran
slate(a.toString(),b);else{for(var g=[],h=0,k=0;k<f.length;++k){var l=f[k];h<l.s
tart&&c(this.defaultTranslator_,h,l.start);c(this.uncontractedTranslator_,l.star
t,l.end);h=l.end}h<a.getLength()&&c(this.defaultTranslator_,h,a.getLength());for
(var n=g.length,k=0;f=g[k];++k)f.translator.translate(a.toString().substring(f.s
tart,f.end),goog.partial(d,f))}}; | 879 e,f)}var f=this.findExpandRanges_(a);if(0==f.length)this.defaultTranslator_.tran
slate(a.toString(),cvox.ExpandingBrailleTranslator.nullParamsToEmptyAdapter_(a.g
etLength(),b));else{for(var g=[],h=0,k=0;k<f.length;++k){var l=f[k];h<l.start&&c
(this.defaultTranslator_,h,l.start);c(this.uncontractedTranslator_,l.start,l.end
);h=l.end}h<a.getLength()&&c(this.defaultTranslator_,h,a.getLength());for(var n=
g.length,k=0;f=g[k];++k)f.translator.translate(a.toString().substring(f.start,f.
end),cvox.ExpandingBrailleTranslator.nullParamsToEmptyAdapter_(f.end- |
879 cvox.ExpandingBrailleTranslator.rangeForPosition_=function(a,b){var c=a.substrin
g(0,b+1).search(/(\s+|\S+)$/),d=b;b<a.length&&(d+=/^(\s+|\S+)/.exec(a.substring(
b))[0].length);return{start:c,end:d}}; | 880 f.start,goog.partial(d,f)))}};cvox.ExpandingBrailleTranslator.rangeForPosition_=
function(a,b){if(0>b||b>=a.length)throw Error("Position out of range looking for
braille expansion range");var c=a.substring(0,b+1).search(/(\s+|\S+)$/),d=b+/^(
\s+|\S+)/.exec(a.substring(b))[0].length;return{start:c,end:d}}; |
880 cvox.ExpandingBrailleTranslator.prototype.findExpandRanges_=function(a){var b=a.
getSpanInstanceOf(cvox.BrailleUtil.ValueSelectionSpan);if(!this.uncontractedTran
slator_||!b)return[];var c=[],d=a.getSpanStart(b),e=a.getSpanEnd(b),b=[d];e>d+1&
&b.push(e-1);d=null;for(e=0;e<b.length;++e){var f=cvox.ExpandingBrailleTranslato
r.rangeForPosition_(a.toString(),b[e]);d&&d.end>=f.start?d.end=f.end:(c.push(f),
d=f)}return c};cvox.BrailleDisplayManager=function(){this.translator_=null;this.
content_=new cvox.NavBraille({});this.translatedContent_=new ArrayBuffer(0);this
.panPosition_=0;this.commandListener_=function(){};this.realDisplayState_=this.d
isplayState_={available:!1,textCellCount:void 0};this.textToBraille_=[];this.bra
illeToText_=[];if(goog.isDef(chrome.brailleDisplayPrivate)){var a=goog.bind(this
.refreshDisplayState_,this);chrome.brailleDisplayPrivate.getDisplayState(a);chro
me.brailleDisplayPrivate.onDisplayStateChanged.addListener(a); | 881 cvox.ExpandingBrailleTranslator.prototype.findExpandRanges_=function(a){var b=[]
;if(this.uncontractedTranslator_){var c=a.getSpanInstanceOf(cvox.BrailleUtil.Val
ueSelectionSpan);if(c){var d=a.getSpanStart(c),e=a.getSpanEnd(c);if(d<a.getLengt
h())for(c=[d],e>d+1&&c.push(e-1),d=null,e=0;e<c.length;++e){var f=cvox.Expanding
BrailleTranslator.rangeForPosition_(a.toString(),c[e]);d&&d.end>=f.start?d.end=f
.end:(b.push(f),d=f)}}}return b}; |
881 chrome.brailleDisplayPrivate.onKeyEvent.addListener(goog.bind(this.onKeyEvent_,t
his));cvox.BrailleCaptionsBackground.init(goog.bind(this.onCaptionsStateChanged_
,this))}};cvox.BrailleDisplayManager.CURSOR_DOTS_=192;cvox.BrailleDisplayManager
.prototype.setContent=function(a){this.translateContent_(a)};cvox.BrailleDisplay
Manager.prototype.setCommandListener=function(a){this.commandListener_=a}; | 882 cvox.ExpandingBrailleTranslator.nullParamsToEmptyAdapter_=function(a,b){return f
unction(c,d,e){b(c||new ArrayBuffer(0),d||goog.array.repeat(0,a),e||[])}};cvox.B
railleDisplayManager=function(){this.translator_=null;this.content_=new cvox.Nav
Braille({});this.translatedContent_=new ArrayBuffer(0);this.panPosition_=0;this.
commandListener_=function(){};this.realDisplayState_=this.displayState_={availab
le:!1,textCellCount:void 0};this.textToBraille_=[];this.brailleToText_=[];cvox.B
railleCaptionsBackground.init(goog.bind(this.onCaptionsStateChanged_,this));if(g
oog.isDef(chrome.brailleDisplayPrivate)){var a=goog.bind(this.refreshDisplayStat
e_,this);chrome.brailleDisplayPrivate.getDisplayState(a); |
| 883 chrome.brailleDisplayPrivate.onDisplayStateChanged.addListener(a);chrome.braille
DisplayPrivate.onKeyEvent.addListener(goog.bind(this.onKeyEvent_,this))}else thi
s.onCaptionsStateChanged_()};cvox.BrailleDisplayManager.CURSOR_DOTS_=192;cvox.Br
ailleDisplayManager.prototype.setContent=function(a){this.translateContent_(a)};
cvox.BrailleDisplayManager.prototype.setCommandListener=function(a){this.command
Listener_=a}; |
882 cvox.BrailleDisplayManager.prototype.setTranslator=function(a,b){var c=null!=thi
s.translator_;this.translator_=a?new cvox.ExpandingBrailleTranslator(a,b):null;t
his.translateContent_(this.content_);c&&!this.translator_&&this.refresh_()};cvox
.BrailleDisplayManager.prototype.refreshDisplayState_=function(a){this.realDispl
ayState_=a;this.displayState_=a.available?a:cvox.BrailleCaptionsBackground.getVi
rtualDisplayState();this.panPosition_=0;this.refresh_()}; | 884 cvox.BrailleDisplayManager.prototype.setTranslator=function(a,b){var c=null!=thi
s.translator_;this.translator_=a?new cvox.ExpandingBrailleTranslator(a,b):null;t
his.translateContent_(this.content_);c&&!this.translator_&&this.refresh_()};cvox
.BrailleDisplayManager.prototype.refreshDisplayState_=function(a){this.realDispl
ayState_=a;this.displayState_=a.available?a:cvox.BrailleCaptionsBackground.getVi
rtualDisplayState();this.panPosition_=0;this.refresh_()}; |
883 cvox.BrailleDisplayManager.prototype.onCaptionsStateChanged_=function(){this.ref
reshDisplayState_(this.realDisplayState_)}; | 885 cvox.BrailleDisplayManager.prototype.onCaptionsStateChanged_=function(){this.ref
reshDisplayState_(this.realDisplayState_)}; |
884 cvox.BrailleDisplayManager.prototype.refresh_=function(){if(this.displayState_.a
vailable){var a=this.translatedContent_.slice(this.panPosition_,this.panPosition
_+this.displayState_.textCellCount);this.realDisplayState_.available&&chrome.bra
illeDisplayPrivate.writeDots(a);if(cvox.BrailleCaptionsBackground.isEnabled()){v
ar b=this.brailleToTextPosition_(this.panPosition_),c=this.brailleToTextPosition
_(this.panPosition_+a.byteLength);cvox.BrailleCaptionsBackground.setContent(this
.content_.text.toString().substring(b, | 886 cvox.BrailleDisplayManager.prototype.refresh_=function(){if(this.displayState_.a
vailable){var a=this.translatedContent_.slice(this.panPosition_,this.panPosition
_+this.displayState_.textCellCount);this.realDisplayState_.available&&chrome.bra
illeDisplayPrivate.writeDots(a);if(cvox.BrailleCaptionsBackground.isEnabled()){v
ar b=this.brailleToTextPosition_(this.panPosition_),c=this.brailleToTextPosition
_(this.panPosition_+a.byteLength);cvox.BrailleCaptionsBackground.setContent(this
.content_.text.toString().substring(b, |
885 c),a)}}}; | 887 c),a)}}}; |
886 cvox.BrailleDisplayManager.prototype.translateContent_=function(a){this.translat
or_?this.translator_.translate(a.text,goog.bind(function(b,c,d){this.content_=a;
b=b||new ArrayBuffer(0);c=c||[];d=d||[];var e=this.content_.startIndex,f=this.co
ntent_.endIndex;this.panPosition_=0;if(0<=e){if(e>=c.length){var e=new ArrayBuff
er(b.byteLength+1),g=new Uint8Array(e);g.set(new Uint8Array(b));b=e;e=b.byteLeng
th-1}else e=c[e];f=f>=c.length?b.byteLength:c[f];this.writeCursor_(b,e,f);this.d
isplayState_.available&&(f= | 888 cvox.BrailleDisplayManager.prototype.translateContent_=function(a){this.translat
or_?this.translator_.translate(a.text,goog.bind(function(b,c,d){this.content_=a;
var e=this.content_.startIndex,f=this.content_.endIndex;this.panPosition_=0;if(0
<=e){if(e>=c.length){var e=new ArrayBuffer(b.byteLength+1),g=new Uint8Array(e);g
.set(new Uint8Array(b));b=e;e=b.byteLength-1}else e=c[e];f=f>=c.length?b.byteLen
gth:c[f];this.writeCursor_(b,e,f);this.displayState_.available&&(f=this.displayS
tate_.textCellCount,this.panPosition_= |
887 this.displayState_.textCellCount,this.panPosition_=Math.floor(e/f)*f)}this.trans
latedContent_=b;this.brailleToText_=d;this.textToBraille_=c;this.refresh_()},thi
s)):(this.content_=a,this.translatedContent_=new ArrayBuffer(0),this.textToBrail
le_.length=0,this.brailleToText_.length=0)}; | 889 Math.floor(e/f)*f)}this.translatedContent_=b;this.brailleToText_=d;this.textToBr
aille_=c;this.refresh_()},this)):(this.content_=a,this.translatedContent_=new Ar
rayBuffer(0),this.textToBraille_.length=0,this.brailleToText_.length=0)}; |
888 cvox.BrailleDisplayManager.prototype.onKeyEvent_=function(a){switch(a.command){c
ase cvox.BrailleKeyCommand.ROUTING:a.displayPosition=this.brailleToTextPosition_
(a.displayPosition+this.panPosition_);case cvox.BrailleKeyCommand.LINE_UP:case c
vox.BrailleKeyCommand.LINE_DOWN:case cvox.BrailleKeyCommand.TOP:case cvox.Braill
eKeyCommand.BOTTOM:this.commandListener_(a,this.content_);break;case cvox.Braill
eKeyCommand.PAN_LEFT:this.panLeft_();break;case cvox.BrailleKeyCommand.PAN_RIGHT
:this.panRight_()}}; | 890 cvox.BrailleDisplayManager.prototype.onKeyEvent_=function(a){switch(a.command){c
ase cvox.BrailleKeyCommand.ROUTING:a.displayPosition=this.brailleToTextPosition_
(a.displayPosition+this.panPosition_);case cvox.BrailleKeyCommand.LINE_UP:case c
vox.BrailleKeyCommand.LINE_DOWN:case cvox.BrailleKeyCommand.TOP:case cvox.Braill
eKeyCommand.BOTTOM:this.commandListener_(a,this.content_);break;case cvox.Braill
eKeyCommand.PAN_LEFT:this.panLeft_();break;case cvox.BrailleKeyCommand.PAN_RIGHT
:this.panRight_()}}; |
889 cvox.BrailleDisplayManager.prototype.panLeft_=function(){0>=this.panPosition_?th
is.commandListener_({command:cvox.BrailleKeyCommand.PAN_LEFT},this.content_):(th
is.panPosition_=Math.max(0,this.panPosition_-this.displayState_.textCellCount),t
his.refresh_())}; | 891 cvox.BrailleDisplayManager.prototype.panLeft_=function(){0>=this.panPosition_?th
is.commandListener_({command:cvox.BrailleKeyCommand.PAN_LEFT},this.content_):(th
is.panPosition_=Math.max(0,this.panPosition_-this.displayState_.textCellCount),t
his.refresh_())}; |
890 cvox.BrailleDisplayManager.prototype.panRight_=function(){var a=this.panPosition
_+this.displayState_.textCellCount;a>=this.translatedContent_.byteLength?this.co
mmandListener_({command:cvox.BrailleKeyCommand.PAN_RIGHT},this.content_):(this.p
anPosition_=a,this.refresh_())}; | 892 cvox.BrailleDisplayManager.prototype.panRight_=function(){var a=this.panPosition
_+this.displayState_.textCellCount;a>=this.translatedContent_.byteLength?this.co
mmandListener_({command:cvox.BrailleKeyCommand.PAN_RIGHT},this.content_):(this.p
anPosition_=a,this.refresh_())}; |
891 cvox.BrailleDisplayManager.prototype.writeCursor_=function(a,b,c){if(!(0>b||b>=a
.byteLength||c<b||c>a.byteLength))for(b==c&&(c=b+1),a=new DataView(a);b<c;){var
d=a.getUint8(b),d=d|cvox.BrailleDisplayManager.CURSOR_DOTS_;a.setUint8(b,d);b++}
};cvox.BrailleDisplayManager.prototype.brailleToTextPosition_=function(a){var b=
this.brailleToText_;return 0>a?(console.error("WARNING: Braille position < 0: "+
a),0):a>=b.length?this.content_.text.getLength():b[a]};cvox.BrailleTable={};cvox
.BrailleTable.TABLE_PATH="chromevox/background/braille/tables.json";cvox.Braille
Table.getAll=function(a){var b=chrome.extension.getURL(cvox.BrailleTable.TABLE_P
ATH);if(!b)throw"Invalid path: "+cvox.BrailleTable.TABLE_PATH;var c=new XMLHttpR
equest;c.open("GET",b,!0);c.onreadystatechange=function(){4==c.readyState&&200==
c.status&&a(JSON.parse(c.responseText))};c.send()};cvox.BrailleTable.forId=funct
ion(a,b){return a.filter(function(a){return a.id===b})[0]||null}; | 893 cvox.BrailleDisplayManager.prototype.writeCursor_=function(a,b,c){if(!(0>b||b>=a
.byteLength||c<b||c>a.byteLength))for(b==c&&(c=b+1),a=new DataView(a);b<c;){var
d=a.getUint8(b),d=d|cvox.BrailleDisplayManager.CURSOR_DOTS_;a.setUint8(b,d);b++}
};cvox.BrailleDisplayManager.prototype.brailleToTextPosition_=function(a){var b=
this.brailleToText_;return 0>a?(console.error("WARNING: Braille position < 0: "+
a),0):a>=b.length?this.content_.text.getLength():b[a]};cvox.BrailleTable={};cvox
.BrailleTable.TABLE_PATH="chromevox/background/braille/tables.json";cvox.Braille
Table.getAll=function(a){var b=chrome.extension.getURL(cvox.BrailleTable.TABLE_P
ATH);if(!b)throw"Invalid path: "+cvox.BrailleTable.TABLE_PATH;var c=new XMLHttpR
equest;c.open("GET",b,!0);c.onreadystatechange=function(){4==c.readyState&&200==
c.status&&a(JSON.parse(c.responseText))};c.send()};cvox.BrailleTable.forId=funct
ion(a,b){return a.filter(function(a){return a.id===b})[0]||null}; |
892 cvox.BrailleTable.getUncontracted=function(a,b){function c(a,b){return"6"===a.do
ts&&"8"===b.dots&&goog.string.startsWith(a.locale,b.locale)||a.locale===b.locale
&&a.dots===b.dots&&goog.isDef(a.grade)&&goog.isDef(b.grade)&&b.grade<a.grade?b:a
}return a.reduce(c,b)};cvox.BrailleBackground=function(a){this.displayManager_=a
||new cvox.BrailleDisplayManager;cvox.BrailleTable.getAll(goog.bind(function(a){
this.tables_=a;this.initialize_(0)},this));this.displayManager_.setCommandListen
er(goog.bind(this.sendCommand_,this));this.lastContentId_=this.lastContent_=null
};goog.inherits(cvox.BrailleBackground,cvox.AbstractBraille);cvox.BrailleBackgro
und.prototype.write=function(a){this.lastContent_=this.lastContentId_=null;this.
displayManager_.setContent(a)}; | 894 cvox.BrailleTable.getUncontracted=function(a,b){function c(a,b){return"6"===a.do
ts&&"8"===b.dots&&goog.string.startsWith(a.locale,b.locale)||a.locale===b.locale
&&a.dots===b.dots&&goog.isDef(a.grade)&&goog.isDef(b.grade)&&b.grade<a.grade?b:a
}return a.reduce(c,b)};cvox.BrailleBackground=function(a){this.displayManager_=a
||new cvox.BrailleDisplayManager;cvox.BrailleTable.getAll(goog.bind(function(a){
this.tables_=a;this.initialize_(0)},this));this.displayManager_.setCommandListen
er(goog.bind(this.sendCommand_,this));this.lastContentId_=this.lastContent_=null
};goog.inherits(cvox.BrailleBackground,cvox.AbstractBraille);cvox.BrailleBackgro
und.prototype.write=function(a){this.lastContent_=this.lastContentId_=null;this.
displayManager_.setContent(a)}; |
893 cvox.BrailleBackground.prototype.setCommandListener=function(){}; | 895 cvox.BrailleBackground.prototype.setCommandListener=function(){}; |
894 cvox.BrailleBackground.prototype.refreshTranslator=function(){if(this.liblouis_)
{var a=this.tables_,b=cvox.BrailleTable.forId(a,localStorage.brailleTable);if(!b
){var c=chrome.i18n.getMessage("@@ui_locale").split(/[_-]/),d=c[0],e=c[1],c=a.fi
lter(function(a){return a.locale.split(/[_-]/)[0]==d});0<c.length&&(b=c[0],e&&(c
=c.filter(function(a){return a.locale.split(/[_-]/)[1]==e}),0<c.length&&(b=c[0])
))}b||(b=cvox.BrailleTable.forId(a,"en-US-comp8"));localStorage.brailleTable=b.i
d;"6"==b.dots?(localStorage.brailleTableType= | 896 cvox.BrailleBackground.prototype.refreshTranslator=function(){if(this.liblouis_)
{var a=this.tables_,b=cvox.BrailleTable.forId(a,localStorage.brailleTable);if(!b
){var c=chrome.i18n.getMessage("@@ui_locale").split(/[_-]/),d=c[0],e=c[1],c=a.fi
lter(function(a){return a.locale.split(/[_-]/)[0]==d});0<c.length&&(b=c[0],e&&(c
=c.filter(function(a){return a.locale.split(/[_-]/)[1]==e}),0<c.length&&(b=c[0])
))}b||(b=cvox.BrailleTable.forId(a,"en-US-comp8"));localStorage.brailleTable=b.i
d;"6"==b.dots?(localStorage.brailleTableType= |
895 "brailleTable6",localStorage.brailleTable6=b.id):(localStorage.brailleTableType=
"brailleTable8",localStorage.brailleTable8=b.id);localStorage.brailleTable6||(lo
calStorage.brailleTable6="en-US-g1");localStorage.brailleTable8||(localStorage.b
railleTable8="en-US-comp8");var c=cvox.BrailleTable.forId(a,localStorage.braille
Table8),f=cvox.BrailleTable.getUncontracted(a,c?c:b);this.liblouis_.getTranslato
r(b.fileName,goog.bind(function(a){f.id===b.id?this.displayManager_.setTranslato
r(a):this.liblouis_.getTranslator(f.fileName, | 897 "brailleTable6",localStorage.brailleTable6=b.id):(localStorage.brailleTableType=
"brailleTable8",localStorage.brailleTable8=b.id);localStorage.brailleTable6||(lo
calStorage.brailleTable6="en-US-g1");localStorage.brailleTable8||(localStorage.b
railleTable8="en-US-comp8");var c=cvox.BrailleTable.forId(a,localStorage.braille
Table8),f=cvox.BrailleTable.getUncontracted(a,c?c:b);this.liblouis_.getTranslato
r(b.fileName,goog.bind(function(a){f.id===b.id?this.displayManager_.setTranslato
r(a):this.liblouis_.getTranslator(f.fileName, |
896 goog.bind(function(b){this.displayManager_.setTranslator(a,b)},this))},this))}};
cvox.BrailleBackground.prototype.onBrailleMessage=function(a){"write"==a.action&
&(this.lastContentId_=a.contentId,this.lastContent_=cvox.NavBraille.fromJson(a.p
arams),this.displayManager_.setContent(this.lastContent_))}; | 898 goog.bind(function(b){this.displayManager_.setTranslator(a,b)},this))},this))}};
cvox.BrailleBackground.prototype.onBrailleMessage=function(a){"write"==a.action&
&(this.lastContentId_=a.contentId,this.lastContent_=cvox.NavBraille.fromJson(a.p
arams),this.displayManager_.setContent(this.lastContent_))}; |
897 cvox.BrailleBackground.prototype.initialize_=function(a){cvox.ChromeVox.isChrome
OS&&(5<a?console.error("Timeout waiting for document.body; not initializing brai
lle."):document.body?(this.liblouis_=new cvox.LibLouis(chrome.extension.getURL("
chromevox/background/braille/liblouis_nacl.nmf"),chrome.extension.getURL("chrome
vox/background/braille/tables")),this.liblouis_.attachToElement(document.body),t
his.refreshTranslator()):window.setTimeout(goog.bind(this.initialize_,this,++a),
500))}; | 899 cvox.BrailleBackground.prototype.initialize_=function(a){5<a?console.error("Time
out waiting for document.body; not initializing braille."):document.body?(this.l
iblouis_=new cvox.LibLouis(chrome.extension.getURL("chromevox/background/braille
/liblouis_nacl.nmf"),chrome.extension.getURL("chromevox/background/braille/table
s")),this.liblouis_.attachToElement(document.body),this.refreshTranslator()):win
dow.setTimeout(goog.bind(this.initialize_,this,++a),500)}; |
898 cvox.BrailleBackground.prototype.sendCommand_=function(a,b){var c={message:"BRAI
LLE",args:a};b===this.lastContent_&&(c.contentId=this.lastContentId_);cvox.Exten
sionBridge.send(c)};cvox.EarconsBackground=function(){cvox.AbstractEarcons.call(
this);this.audioMap={};"false"===localStorage.earcons&&(this.enabled=!1)};goog.i
nherits(cvox.EarconsBackground,cvox.AbstractEarcons);cvox.EarconsBackground.prot
otype.getName=function(){return"ChromeVox earcons"};cvox.EarconsBackground.proto
type.getBaseUrl=function(){return cvox.EarconsBackground.BASE_URL}; | 900 cvox.BrailleBackground.prototype.sendCommand_=function(a,b){var c={message:"BRAI
LLE",args:a};b===this.lastContent_&&(c.contentId=this.lastContentId_);cvox.Exten
sionBridge.send(c)};cvox.EarconsBackground=function(){cvox.AbstractEarcons.call(
this);this.audioMap={};"false"===localStorage.earcons&&(this.enabled=!1)};goog.i
nherits(cvox.EarconsBackground,cvox.AbstractEarcons);cvox.EarconsBackground.prot
otype.getName=function(){return"ChromeVox earcons"};cvox.EarconsBackground.proto
type.getBaseUrl=function(){return cvox.EarconsBackground.BASE_URL}; |
899 cvox.EarconsBackground.prototype.playEarcon=function(a){cvox.EarconsBackground.s
uperClass_.playEarcon.call(this,a);if(this.enabled){window.console&&window.conso
le.log("Earcon "+this.getEarconName(a));this.currentAudio=this.audioMap[a];this.
currentAudio||(this.currentAudio=new Audio(this.getBaseUrl()+this.getEarconFilen
ame(a)),this.audioMap[a]=this.currentAudio);try{this.currentAudio.currentTime=0}
catch(b){}this.currentAudio.paused&&(this.currentAudio.volume=0.7,this.currentAu
dio.play())}}; | 901 cvox.EarconsBackground.prototype.playEarcon=function(a){cvox.EarconsBackground.s
uperClass_.playEarcon.call(this,a);if(this.enabled){window.console&&window.conso
le.log("Earcon "+this.getEarconName(a));this.currentAudio=this.audioMap[a];this.
currentAudio||(this.currentAudio=new Audio(this.getBaseUrl()+this.getEarconFilen
ame(a)),this.audioMap[a]=this.currentAudio);try{this.currentAudio.currentTime=0}
catch(b){}this.currentAudio.paused&&(this.currentAudio.volume=0.7,this.currentAu
dio.play())}}; |
900 cvox.EarconsBackground.BASE_URL="earcons/";cvox.MathUtil={};cvox.MathUtil.isMath
mlNodeOfClass_=function(a,b){return-1!=b.indexOf(a.tagName.toUpperCase())};cvox.
MathUtil.isMathjaxNodeOfClass_=function(a,b){if("SPAN"==a.tagName){var c=a.class
Name.split(" ");return c.some(function(a){return-1!=b.indexOf(a.toUpperCase())})
}return!1};cvox.MathUtil.isMathNodeOfClass_=function(a,b){return a.nodeType==Nod
e.ELEMENT_NODE&&(cvox.MathUtil.isMathmlNodeOfClass_(a,b)||cvox.MathUtil.isMathja
xNodeOfClass_(a,b))};cvox.MathUtil.TOKEN_LIST="MI MN MO MTEXT MSPACE MS".split("
"); | 902 cvox.EarconsBackground.BASE_URL="earcons/";cvox.MathUtil={};cvox.MathUtil.isMath
mlNodeOfClass_=function(a,b){return-1!=b.indexOf(a.tagName.toUpperCase())};cvox.
MathUtil.isMathjaxNodeOfClass_=function(a,b){if("SPAN"==a.tagName){var c=a.class
Name.split(" ");return c.some(function(a){return-1!=b.indexOf(a.toUpperCase())})
}return!1};cvox.MathUtil.isMathNodeOfClass_=function(a,b){return a.nodeType==Nod
e.ELEMENT_NODE&&(cvox.MathUtil.isMathmlNodeOfClass_(a,b)||cvox.MathUtil.isMathja
xNodeOfClass_(a,b))};cvox.MathUtil.TOKEN_LIST="MI MN MO MTEXT MSPACE MS".split("
"); |
901 cvox.MathUtil.isToken=function(a){return cvox.MathUtil.isMathNodeOfClass_(a,cvox
.MathUtil.TOKEN_LIST)};cvox.MathUtil.LAYOUT_LIST="MROW MFRAC MSQRT MROOT MSTYLE
MERROR MPADDED MPHANTOM MFENCED MENCLOSE".split(" ");cvox.MathUtil.isLayout=func
tion(a){return cvox.MathUtil.isMathNodeOfClass_(a,cvox.MathUtil.LAYOUT_LIST)};cv
ox.MathUtil.SCRIPT_LIST="MSUB MSUP MSUBSUP MUNDER MOVER MUNDEROVER MMULTISCRIPTS
MPRESCRIPTS".split(" "); | 903 cvox.MathUtil.isToken=function(a){return cvox.MathUtil.isMathNodeOfClass_(a,cvox
.MathUtil.TOKEN_LIST)};cvox.MathUtil.LAYOUT_LIST="MROW MFRAC MSQRT MROOT MSTYLE
MERROR MPADDED MPHANTOM MFENCED MENCLOSE".split(" ");cvox.MathUtil.isLayout=func
tion(a){return cvox.MathUtil.isMathNodeOfClass_(a,cvox.MathUtil.LAYOUT_LIST)};cv
ox.MathUtil.SCRIPT_LIST="MSUB MSUP MSUBSUP MUNDER MOVER MUNDEROVER MMULTISCRIPTS
MPRESCRIPTS".split(" "); |
902 cvox.MathUtil.isScript=function(a){return cvox.MathUtil.isMathNodeOfClass_(a,cvo
x.MathUtil.SCRIPT_LIST)};cvox.MathUtil.TABLES_LIST="MTABLE MLABELEDTR MTR MTD MA
LIGNGROUP MALIGNMARK".split(" ");cvox.MathUtil.isTables=function(a){return cvox.
MathUtil.isMathNodeOfClass_(a,cvox.MathUtil.TABLES_LIST)};cvox.MathUtil.ELEMENTA
RY_LIST="MSTACK MLONGDIV MSGROUP MSROW MSCARRIES MSCARRY MSLINE".split(" ");cvox
.MathUtil.isElementary=function(a){return cvox.MathUtil.isMathNodeOfClass_(a,cvo
x.MathUtil.ELEMENTARY_LIST)}; | 904 cvox.MathUtil.isScript=function(a){return cvox.MathUtil.isMathNodeOfClass_(a,cvo
x.MathUtil.SCRIPT_LIST)};cvox.MathUtil.TABLES_LIST="MTABLE MLABELEDTR MTR MTD MA
LIGNGROUP MALIGNMARK".split(" ");cvox.MathUtil.isTables=function(a){return cvox.
MathUtil.isMathNodeOfClass_(a,cvox.MathUtil.TABLES_LIST)};cvox.MathUtil.ELEMENTA
RY_LIST="MSTACK MLONGDIV MSGROUP MSROW MSCARRIES MSCARRY MSLINE".split(" ");cvox
.MathUtil.isElementary=function(a){return cvox.MathUtil.isMathNodeOfClass_(a,cvo
x.MathUtil.ELEMENTARY_LIST)}; |
903 cvox.MathUtil.MATHML_TAG_LIST=[cvox.MathUtil.TOKEN_LIST,cvox.MathUtil.LAYOUT_LIS
T,cvox.MathUtil.SCRIPT_LIST,cvox.MathUtil.TABLES_LIST,cvox.MathUtil.ELEMENTARY_L
IST].reduce(function(a,b){return a.concat(b)});cvox.MathUtil.isMathmlTag=functio
n(a){return cvox.MathUtil.isMathNodeOfClass_(a,cvox.MathUtil.MATHML_TAG_LIST)};c
vox.MathUtil.WHITESPACE_LIST=["MSROW","MROW","MSPACE","MPHANTOM","MPADDED"];cvox
.MathUtil.isWhitespace=function(a){return cvox.MathUtil.isMathNodeOfClass_(a,cvo
x.MathUtil.WHITESPACE_LIST)}; | 905 cvox.MathUtil.MATHML_TAG_LIST=[cvox.MathUtil.TOKEN_LIST,cvox.MathUtil.LAYOUT_LIS
T,cvox.MathUtil.SCRIPT_LIST,cvox.MathUtil.TABLES_LIST,cvox.MathUtil.ELEMENTARY_L
IST].reduce(function(a,b){return a.concat(b)});cvox.MathUtil.isMathmlTag=functio
n(a){return cvox.MathUtil.isMathNodeOfClass_(a,cvox.MathUtil.MATHML_TAG_LIST)};c
vox.MathUtil.WHITESPACE_LIST=["MSROW","MROW","MSPACE","MPHANTOM","MPADDED"];cvox
.MathUtil.isWhitespace=function(a){return cvox.MathUtil.isMathNodeOfClass_(a,cvo
x.MathUtil.WHITESPACE_LIST)}; |
904 cvox.MathUtil.isNotWhitespace=function(a){return cvox.MathUtil.isMathmlTag(a)&&!
cvox.MathUtil.isWhitespace(a)};cvox.MathUtil.union=function(a,b){return a.concat
(b.filter(function(b){return 0>a.indexOf(b)}))};cvox.NavDescription=function(a){
this.context=a.context?a.context:"";this.text=a.text?a.text:"";this.userValue=a.
userValue?a.userValue:"";this.annotation=a.annotation?a.annotation:"";this.earco
ns=a.earcons?a.earcons:[];this.personality=a.personality;this.hint=a.hint?a.hint
:""};cvox.NavDescription.prototype.isEmpty=function(){return 0==this.context.len
gth&&0==this.earcons.length&&0==this.text.length&&0==this.userValue.length&&0==t
his.annotation.length}; | 906 cvox.MathUtil.isNotWhitespace=function(a){return cvox.MathUtil.isMathmlTag(a)&&!
cvox.MathUtil.isWhitespace(a)};cvox.MathUtil.union=function(a,b){return a.concat
(b.filter(function(b){return 0>a.indexOf(b)}))};cvox.NavDescription=function(a){
this.context=a.context?a.context:"";this.text=a.text?a.text:"";this.userValue=a.
userValue?a.userValue:"";this.annotation=a.annotation?a.annotation:"";this.earco
ns=a.earcons?a.earcons:[];this.personality=a.personality;this.hint=a.hint?a.hint
:""};cvox.NavDescription.prototype.isEmpty=function(){return 0==this.context.len
gth&&0==this.earcons.length&&0==this.text.length&&0==this.userValue.length&&0==t
his.annotation.length}; |
905 cvox.NavDescription.prototype.toString=function(){return'NavDescription(context=
"'+this.context+'" text="'+this.text+'" userValue="'+this.userValue+'" annota
tion="'+this.annotation+'")'};cvox.NavDescription.prototype.pushEarcon=function(
a){this.earcons.push(a)}; | 907 cvox.NavDescription.prototype.toString=function(){return'NavDescription(context=
"'+this.context+'" text="'+this.text+'" userValue="'+this.userValue+'" annota
tion="'+this.annotation+'")'};cvox.NavDescription.prototype.pushEarcon=function(
a){this.earcons.push(a)}; |
906 cvox.NavDescription.prototype.speak=function(a,b,c){function d(){var a={},b=cvox
.AbstractTts.PERSONALITY_ANNOTATION,c;for(c in b)a[c]=b[c];return a}var e=[];thi
s.context&&(e.push([this.context,a,d()]),a=1);e.push([this.text,a,this.personali
ty?this.personality:{}]);a=1;this.userValue&&e.push([this.userValue,a,{}]);this.
annotation&&e.push([this.annotation,a,d()]);this.hint&&e.push([this.hint,a,d()])
;a=e.length;for(var f=0;f<a;f++)0==f&&b&&(e[f][2].startCallback=b),f==a-1&&c&&(e
[f][2].endCallback=c), | 908 cvox.NavDescription.prototype.speak=function(a,b,c){function d(){var a={},b=cvox
.AbstractTts.PERSONALITY_ANNOTATION,c;for(c in b)a[c]=b[c];return a}var e=[];thi
s.context&&(e.push([this.context,a,d()]),a=1);e.push([this.text,a,this.personali
ty?this.personality:{}]);a=1;this.userValue&&e.push([this.userValue,a,{}]);this.
annotation&&e.push([this.annotation,a,d()]);this.hint&&e.push([this.hint,a,d()])
;a=e.length;for(var f=0;f<a;f++)0==f&&b&&(e[f][2].startCallback=b),f==a-1&&c&&(e
[f][2].endCallback=c), |
907 cvox.ChromeVox.tts.speak.apply(cvox.ChromeVox.tts,e[f])};cvox.NavDescription.pro
totype.equals=function(a){return this.context==a.context&&this.text==a.text&&thi
s.userValue==a.userValue&&this.annotation==a.annotation};cvox.NavMathDescription
=function(a){cvox.NavDescription.call(this,a);var b=this.personality?this.person
ality:{},c={};c.domain=a.domain?a.domain:"";c.style=a.style?a.style:"";b.math=c;
this.personality=b};goog.inherits(cvox.NavMathDescription,cvox.NavDescription);c
vox.SemanticUtil=function(){};cvox.SemanticUtil.objectsToKeys=function(a){a=Arra
y.prototype.slice.call(arguments,0);var b=[];return b.concat.apply(b,a.map(Objec
t.keys))};cvox.SemanticUtil.objectsToValues=function(a){a=Array.prototype.slice.
call(arguments,0);var b=[],c=function(a){for(var c in a)b.push(a[c])};a.forEach(
c);return b}; | 909 cvox.ChromeVox.tts.speak.apply(cvox.ChromeVox.tts,e[f])};cvox.NavDescription.pro
totype.equals=function(a){return this.context==a.context&&this.text==a.text&&thi
s.userValue==a.userValue&&this.annotation==a.annotation};cvox.NavMathDescription
=function(a){cvox.NavDescription.call(this,a);var b=this.personality?this.person
ality:{},c={};c.domain=a.domain?a.domain:"";c.style=a.style?a.style:"";b.math=c;
this.personality=b};goog.inherits(cvox.NavMathDescription,cvox.NavDescription);c
vox.SemanticUtil=function(){};cvox.SemanticUtil.objectsToKeys=function(a){a=Arra
y.prototype.slice.call(arguments,0);var b=[];return b.concat.apply(b,a.map(Objec
t.keys))};cvox.SemanticUtil.objectsToValues=function(a){a=Array.prototype.slice.
call(arguments,0);var b=[],c=function(a){for(var c in a)b.push(a[c])};a.forEach(
c);return b}; |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1025 cvox.SpeechRule.Type.fromString=function(a){switch(a){case "[n]":return cvox.Spe
echRule.Type.NODE;case "[m]":return cvox.SpeechRule.Type.MULTI;case "[t]":return
cvox.SpeechRule.Type.TEXT;case "[p]":return cvox.SpeechRule.Type.PERSONALITY;de
fault:throw"Parse error: "+a;}}; | 1027 cvox.SpeechRule.Type.fromString=function(a){switch(a){case "[n]":return cvox.Spe
echRule.Type.NODE;case "[m]":return cvox.SpeechRule.Type.MULTI;case "[t]":return
cvox.SpeechRule.Type.TEXT;case "[p]":return cvox.SpeechRule.Type.PERSONALITY;de
fault:throw"Parse error: "+a;}}; |
1026 cvox.SpeechRule.Type.toString=function(a){switch(a){case cvox.SpeechRule.Type.NO
DE:return"[n]";case cvox.SpeechRule.Type.MULTI:return"[m]";case cvox.SpeechRule.
Type.TEXT:return"[t]";case cvox.SpeechRule.Type.PERSONALITY:return"[p]";default:
throw"Unknown type error: "+a;}};cvox.SpeechRule.Component=function(a){this.type
=a.type;this.content=a.content}; | 1028 cvox.SpeechRule.Type.toString=function(a){switch(a){case cvox.SpeechRule.Type.NO
DE:return"[n]";case cvox.SpeechRule.Type.MULTI:return"[m]";case cvox.SpeechRule.
Type.TEXT:return"[t]";case cvox.SpeechRule.Type.PERSONALITY:return"[p]";default:
throw"Unknown type error: "+a;}};cvox.SpeechRule.Component=function(a){this.type
=a.type;this.content=a.content}; |
1027 cvox.SpeechRule.Component.fromString=function(a){var b={};b.type=cvox.SpeechRule
.Type.fromString(a.substring(0,3));a=a.slice(3).trimLeft();if(!a)throw new cvox.
SpeechRule.OutputError("Missing content.");switch(b.type){case cvox.SpeechRule.T
ype.TEXT:if('"'==a[0]){var c=cvox.SpeechRule.splitString_(a,"\\(")[0].trim();if(
'"'!=c.slice(-1))throw new cvox.SpeechRule.OutputError("Invalid string syntax.")
;b.content=c;a=a.slice(c.length).trim();-1==a.indexOf("(")&&(a="");break}case cv
ox.SpeechRule.Type.NODE:case cvox.SpeechRule.Type.MULTI:c= | 1029 cvox.SpeechRule.Component.fromString=function(a){var b={};b.type=cvox.SpeechRule
.Type.fromString(a.substring(0,3));a=a.slice(3).trimLeft();if(!a)throw new cvox.
SpeechRule.OutputError("Missing content.");switch(b.type){case cvox.SpeechRule.T
ype.TEXT:if('"'==a[0]){var c=cvox.SpeechRule.splitString_(a,"\\(")[0].trim();if(
'"'!=c.slice(-1))throw new cvox.SpeechRule.OutputError("Invalid string syntax.")
;b.content=c;a=a.slice(c.length).trim();-1==a.indexOf("(")&&(a="");break}case cv
ox.SpeechRule.Type.NODE:case cvox.SpeechRule.Type.MULTI:c= |
1028 a.indexOf(" (");if(-1==c){b.content=a.trim();a="";break}b.content=a.substring(0,
c).trim();a=a.slice(c).trimLeft()}b=new cvox.SpeechRule.Component(b);a&&b.addAtt
ributes(a);return b};cvox.SpeechRule.Component.prototype.toString=function(){var
a="",a=a+cvox.SpeechRule.Type.toString(this.type),a=a+(this.content?" "+this.co
ntent:""),b=this.getAttributes();0<b.length&&(a+=" ("+b.join(", ")+")");return a
}; | 1030 a.indexOf(" (");if(-1==c){b.content=a.trim();a="";break}b.content=a.substring(0,
c).trim();a=a.slice(c).trimLeft()}b=new cvox.SpeechRule.Component(b);a&&b.addAtt
ributes(a);return b};cvox.SpeechRule.Component.prototype.toString=function(){var
a="",a=a+cvox.SpeechRule.Type.toString(this.type),a=a+(this.content?" "+this.co
ntent:""),b=this.getAttributes();0<b.length&&(a+=" ("+b.join(", ")+")");return a
}; |
1029 cvox.SpeechRule.Component.prototype.addAttribute=function(a){var b=a.indexOf(":"
);-1==b?this[a.trim()]="true":this[a.substring(0,b).trim()]=a.slice(b+1).trim()}
;cvox.SpeechRule.Component.prototype.addAttributes=function(a){if("("!=a[0]||")"
!=a.slice(-1))throw new cvox.SpeechRule.OutputError("Invalid attribute expressio
n: "+a);a=cvox.SpeechRule.splitString_(a.slice(1,-1),",");for(var b=0;b<a.length
;b++)this.addAttribute(a[b])}; | 1031 cvox.SpeechRule.Component.prototype.addAttribute=function(a){var b=a.indexOf(":"
);-1==b?this[a.trim()]="true":this[a.substring(0,b).trim()]=a.slice(b+1).trim()}
;cvox.SpeechRule.Component.prototype.addAttributes=function(a){if("("!=a[0]||")"
!=a.slice(-1))throw new cvox.SpeechRule.OutputError("Invalid attribute expressio
n: "+a);a=cvox.SpeechRule.splitString_(a.slice(1,-1),",");for(var b=0;b<a.length
;b++)this.addAttribute(a[b])}; |
1030 cvox.SpeechRule.Component.prototype.getAttributes=function(){var a=[],b;for(b in
this)"content"!=b&&"type"!=b&&"function"!=typeof this[b]&&a.push(b+":"+this[b])
;return a};cvox.SpeechRule.Action=function(a){this.components=a};cvox.SpeechRule
.Action.fromString=function(a){a=cvox.SpeechRule.splitString_(a,";").filter(func
tion(a){return a.match(/\S/)}).map(function(a){return a.trim()});for(var b=[],c=
0;c<a.length;c++){var d=cvox.SpeechRule.Component.fromString(a[c]);d&&b.push(d)}
return new cvox.SpeechRule.Action(b)}; | 1032 cvox.SpeechRule.Component.prototype.getAttributes=function(){var a=[],b;for(b in
this)"content"!=b&&"type"!=b&&"function"!=typeof this[b]&&a.push(b+":"+this[b])
;return a};cvox.SpeechRule.Action=function(a){this.components=a};cvox.SpeechRule
.Action.fromString=function(a){a=cvox.SpeechRule.splitString_(a,";").filter(func
tion(a){return a.match(/\S/)}).map(function(a){return a.trim()});for(var b=[],c=
0;c<a.length;c++){var d=cvox.SpeechRule.Component.fromString(a[c]);d&&b.push(d)}
return new cvox.SpeechRule.Action(b)}; |
1031 cvox.SpeechRule.Action.prototype.toString=function(){var a=this.components.map(f
unction(a){return a.toString()});return a.join("; ")};cvox.SpeechRule.Preconditi
on=function(a,b){this.query=a;this.constraints=b||[]};cvox.SpeechRule.Preconditi
on.prototype.toString=function(){var a=this.constraints.join(", ");return this.q
uery+", "+a}; | 1033 cvox.SpeechRule.Action.prototype.toString=function(){var a=this.components.map(f
unction(a){return a.toString()});return a.join("; ")};cvox.SpeechRule.Preconditi
on=function(a,b){this.query=a;this.constraints=b||[]};cvox.SpeechRule.Preconditi
on.prototype.toString=function(){var a=this.constraints.join(", ");return this.q
uery+", "+a}; |
1032 cvox.SpeechRule.splitString_=function(a,b){for(var c=[],d="";""!=a;){var e=a.sea
rch(b);if(-1==e){if(0!=(a.match(/"/g)||[]).length%2)throw new cvox.SpeechRule.Ou
tputError("Invalid string in expression: "+a);c.push(d+a);a=d=""}else if(0==(a.s
ubstring(0,e).match(/"/g)||[]).length%2)c.push(d+a.substring(0,e)),d="",a=a.subs
tring(e+1);else{var f=a.substring(e).search('"');if(-1==f)throw new cvox.SpeechR
ule.OutputError("Invalid string in expression: "+a);d+=a.substring(0,e+f+1);a=a.
substring(e+f+1)}}d&& | 1034 cvox.SpeechRule.splitString_=function(a,b){for(var c=[],d="";""!=a;){var e=a.sea
rch(b);if(-1==e){if(0!=(a.match(/"/g)||[]).length%2)throw new cvox.SpeechRule.Ou
tputError("Invalid string in expression: "+a);c.push(d+a);a=d=""}else if(0==(a.s
ubstring(0,e).match(/"/g)||[]).length%2)c.push(d+a.substring(0,e)),d="",a=a.subs
tring(e+1);else{var f=a.substring(e).search('"');if(-1==f)throw new cvox.SpeechR
ule.OutputError("Invalid string in expression: "+a);d+=a.substring(0,e+f+1);a=a.
substring(e+f+1)}}d&& |
1033 c.push(d);return c};cvox.SpeechRule.DynamicCstrAttrib={STYLE:"style"};cvox.Speec
hRule.OutputError=function(a){this.name="RuleError";this.message=a||""};goog.inh
erits(cvox.SpeechRule.OutputError,Error);cvox.SpeechRuleFunctions=function(){};c
vox.SpeechRuleFunctions.Store_=function(a,b){this.prefix_=a;this.store_=b};cvox.
SpeechRuleFunctions.Store_.prototype.add=function(a,b){this.checkCustomFunctionS
yntax_(a)&&(this.store_[a]=b)};cvox.SpeechRuleFunctions.Store_.prototype.lookup=
function(a){return this.store_[a]};cvox.SpeechRuleFunctions.CustomQueries=functi
on(){var a={};cvox.SpeechRuleFunctions.Store_.call(this,"CQF",a)};goog.inherits(
cvox.SpeechRuleFunctions.CustomQueries,cvox.SpeechRuleFunctions.Store_); | 1035 c.push(d);return c};cvox.SpeechRule.DynamicCstrAttrib={STYLE:"style"};cvox.Speec
hRule.OutputError=function(a){this.name="RuleError";this.message=a||""};goog.inh
erits(cvox.SpeechRule.OutputError,Error);cvox.SpeechRuleFunctions=function(){};c
vox.SpeechRuleFunctions.Store_=function(a,b){this.prefix_=a;this.store_=b};cvox.
SpeechRuleFunctions.Store_.prototype.add=function(a,b){this.checkCustomFunctionS
yntax_(a)&&(this.store_[a]=b)};cvox.SpeechRuleFunctions.Store_.prototype.lookup=
function(a){return this.store_[a]};cvox.SpeechRuleFunctions.CustomQueries=functi
on(){var a={};cvox.SpeechRuleFunctions.Store_.call(this,"CQF",a)};goog.inherits(
cvox.SpeechRuleFunctions.CustomQueries,cvox.SpeechRuleFunctions.Store_); |
1034 cvox.SpeechRuleFunctions.CustomStrings=function(){var a={};cvox.SpeechRuleFuncti
ons.Store_.call(this,"CSF",a)};goog.inherits(cvox.SpeechRuleFunctions.CustomStri
ngs,cvox.SpeechRuleFunctions.Store_);cvox.SpeechRuleFunctions.ContextFunctions=f
unction(){var a={};cvox.SpeechRuleFunctions.Store_.call(this,"CTXF",a)};goog.inh
erits(cvox.SpeechRuleFunctions.ContextFunctions,cvox.SpeechRuleFunctions.Store_)
; | 1036 cvox.SpeechRuleFunctions.CustomStrings=function(){var a={};cvox.SpeechRuleFuncti
ons.Store_.call(this,"CSF",a)};goog.inherits(cvox.SpeechRuleFunctions.CustomStri
ngs,cvox.SpeechRuleFunctions.Store_);cvox.SpeechRuleFunctions.ContextFunctions=f
unction(){var a={};cvox.SpeechRuleFunctions.Store_.call(this,"CTXF",a)};goog.inh
erits(cvox.SpeechRuleFunctions.ContextFunctions,cvox.SpeechRuleFunctions.Store_)
; |
1035 cvox.SpeechRuleFunctions.Store_.prototype.checkCustomFunctionSyntax_=function(a)
{var b=RegExp("^"+this.prefix_);return a.match(b)?!0:(console.log("FunctionError
: Invalid function name. Expected prefix"+this.prefix_),!1)};cvox.BaseRuleStore=
function(){this.customQueries=new cvox.SpeechRuleFunctions.CustomQueries;this.cu
stomStrings=new cvox.SpeechRuleFunctions.CustomStrings;this.contextFunctions=new
cvox.SpeechRuleFunctions.ContextFunctions;this.speechRules_=[];this.dynamicCstr
Attribs=[cvox.SpeechRule.DynamicCstrAttrib.STYLE];this.defaultTtsProps=[]}; | 1037 cvox.SpeechRuleFunctions.Store_.prototype.checkCustomFunctionSyntax_=function(a)
{var b=new RegExp("^"+this.prefix_);return a.match(b)?!0:(console.log("FunctionE
rror: Invalid function name. Expected prefix"+this.prefix_),!1)};cvox.BaseRuleSt
ore=function(){this.customQueries=new cvox.SpeechRuleFunctions.CustomQueries;thi
s.customStrings=new cvox.SpeechRuleFunctions.CustomStrings;this.contextFunctions
=new cvox.SpeechRuleFunctions.ContextFunctions;this.speechRules_=[];this.dynamic
CstrAttribs=[cvox.SpeechRule.DynamicCstrAttrib.STYLE];this.defaultTtsProps=[]}; |
1036 cvox.BaseRuleStore.prototype.lookupRule=function(a,b){if(!a||a.nodeType!=Node.EL
EMENT_NODE&&a.nodeType!=Node.TEXT_NODE)return null;var c=this.speechRules_.filte
r(goog.bind(function(c){return this.testDynamicConstraints(b,c)&&this.testPrecon
dition_(a,c)},this));return 0<c.length?this.pickMostConstraint_(b,c):null}; | 1038 cvox.BaseRuleStore.prototype.lookupRule=function(a,b){if(!a||a.nodeType!=Node.EL
EMENT_NODE&&a.nodeType!=Node.TEXT_NODE)return null;var c=this.speechRules_.filte
r(goog.bind(function(c){return this.testDynamicConstraints(b,c)&&this.testPrecon
dition_(a,c)},this));return 0<c.length?this.pickMostConstraint_(b,c):null}; |
1037 cvox.BaseRuleStore.prototype.defineRule=function(a,b,c,d,e){try{var f=cvox.Speec
hRule.Action.fromString(c),g=Array.prototype.slice.call(arguments,4),h=new cvox.
SpeechRule.Precondition(d,g),g={};g[cvox.SpeechRule.DynamicCstrAttrib.STYLE]=b;v
ar k=new cvox.SpeechRule(a,g,h,f)}catch(l){if("RuleError"==l.name)return console
.log("Rule Error ",d,"("+b+"):",l.message),null;throw l;}this.addRule(k);return
k};cvox.BaseRuleStore.prototype.addRule=function(a){this.speechRules_.unshift(a)
}; | 1039 cvox.BaseRuleStore.prototype.defineRule=function(a,b,c,d,e){try{var f=cvox.Speec
hRule.Action.fromString(c),g=Array.prototype.slice.call(arguments,4),h=new cvox.
SpeechRule.Precondition(d,g),g={};g[cvox.SpeechRule.DynamicCstrAttrib.STYLE]=b;v
ar k=new cvox.SpeechRule(a,g,h,f)}catch(l){if("RuleError"==l.name)return console
.log("Rule Error ",d,"("+b+"):",l.message),null;throw l;}this.addRule(k);return
k};cvox.BaseRuleStore.prototype.addRule=function(a){this.speechRules_.unshift(a)
}; |
1038 cvox.BaseRuleStore.prototype.deleteRule=function(a){a=this.speechRules_.indexOf(
a);-1!=a&&this.speechRules_.splice(a,1)};cvox.BaseRuleStore.prototype.findRule=f
unction(a){for(var b=0,c;c=this.speechRules_[b];b++)if(a(c))return c;return null
};cvox.BaseRuleStore.prototype.findAllRules=function(a){return this.speechRules_
.filter(a)};cvox.BaseRuleStore.prototype.evaluateDefault=function(a){return[new
cvox.NavDescription({text:a.textContent})]}; | 1040 cvox.BaseRuleStore.prototype.deleteRule=function(a){a=this.speechRules_.indexOf(
a);-1!=a&&this.speechRules_.splice(a,1)};cvox.BaseRuleStore.prototype.findRule=f
unction(a){for(var b=0,c;c=this.speechRules_[b];b++)if(a(c))return c;return null
};cvox.BaseRuleStore.prototype.findAllRules=function(a){return this.speechRules_
.filter(a)};cvox.BaseRuleStore.prototype.evaluateDefault=function(a){return[new
cvox.NavDescription({text:a.textContent})]}; |
1039 cvox.BaseRuleStore.prototype.removeDuplicates=function(a){for(var b=this.speechR
ules_.length-1,c;c=this.speechRules_[b];b--)c!=a&&cvox.BaseRuleStore.compareDyna
micConstraints_(c.dynamicCstr,a.dynamicCstr)&&cvox.BaseRuleStore.comparePrecondi
tions_(c,a)&&this.speechRules_.splice(b,1)};cvox.BaseRuleStore.prototype.applyCu
stomQuery=function(a,b){var c=this.customQueries.lookup(b);return c?c(a):null}; | 1041 cvox.BaseRuleStore.prototype.removeDuplicates=function(a){for(var b=this.speechR
ules_.length-1,c;c=this.speechRules_[b];b--)c!=a&&cvox.BaseRuleStore.compareDyna
micConstraints_(c.dynamicCstr,a.dynamicCstr)&&cvox.BaseRuleStore.comparePrecondi
tions_(c,a)&&this.speechRules_.splice(b,1)};cvox.BaseRuleStore.prototype.applyCu
stomQuery=function(a,b){var c=this.customQueries.lookup(b);return c?c(a):null}; |
1040 cvox.BaseRuleStore.prototype.applySelector=function(a,b){var c=this.applyCustomQ
uery(a,b);return c||cvox.XpathUtil.evalXPath(b,a)};cvox.BaseRuleStore.prototype.
applyQuery=function(a,b){var c=this.applySelector(a,b);return 0<c.length?c[0]:nu
ll};cvox.BaseRuleStore.prototype.applyConstraint=function(a,b){var c=this.applyQ
uery(a,b);return!!c||cvox.XpathUtil.evaluateBoolean(b,a)}; | 1042 cvox.BaseRuleStore.prototype.applySelector=function(a,b){var c=this.applyCustomQ
uery(a,b);return c||cvox.XpathUtil.evalXPath(b,a)};cvox.BaseRuleStore.prototype.
applyQuery=function(a,b){var c=this.applySelector(a,b);return 0<c.length?c[0]:nu
ll};cvox.BaseRuleStore.prototype.applyConstraint=function(a,b){var c=this.applyQ
uery(a,b);return!!c||cvox.XpathUtil.evaluateBoolean(b,a)}; |
1041 cvox.BaseRuleStore.prototype.testDynamicConstraints=function(a,b){var c=Object.k
eys(a);return c.every(function(c){return a[c]==b.dynamicCstr[c]||"default"==b.dy
namicCstr[c]})};cvox.BaseRuleStore.prototype.getDynamicConstraintValues=function
(){for(var a={},b=0,c;c=this.speechRules_[b];b++)for(var d in c.dynamicCstr){var
e=[c.dynamicCstr[d]];a[d]=a[d]?cvox.MathUtil.union(a[d],e):e}return a}; | 1043 cvox.BaseRuleStore.prototype.testDynamicConstraints=function(a,b){var c=Object.k
eys(a);return c.every(function(c){return a[c]==b.dynamicCstr[c]||"default"==b.dy
namicCstr[c]})};cvox.BaseRuleStore.prototype.getDynamicConstraintValues=function
(){for(var a={},b=0,c;c=this.speechRules_[b];b++)for(var d in c.dynamicCstr){var
e=[c.dynamicCstr[d]];a[d]=a[d]?cvox.MathUtil.union(a[d],e):e}return a}; |
1042 cvox.BaseRuleStore.prototype.countMatchingDynamicConstraintValues_=function(a,b)
{for(var c=0,d=0,e;e=this.dynamicCstrAttribs[d];d++)if(a[e]==b.dynamicCstr[e])c+
+;else break;return c};cvox.BaseRuleStore.prototype.pickMostConstraint_=function
(a,b){b.sort(goog.bind(function(b,d){var e=this.countMatchingDynamicConstraintVa
lues_(a,b),f=this.countMatchingDynamicConstraintValues_(a,d);return e>f?-1:f>e?1
:d.precondition.constraints.length-b.precondition.constraints.length},this));ret
urn b[0]}; | 1044 cvox.BaseRuleStore.prototype.countMatchingDynamicConstraintValues_=function(a,b)
{for(var c=0,d=0,e;e=this.dynamicCstrAttribs[d];d++)if(a[e]==b.dynamicCstr[e])c+
+;else break;return c};cvox.BaseRuleStore.prototype.pickMostConstraint_=function
(a,b){b.sort(goog.bind(function(b,d){var e=this.countMatchingDynamicConstraintVa
lues_(a,b),f=this.countMatchingDynamicConstraintValues_(a,d);return e>f?-1:f>e?1
:d.precondition.constraints.length-b.precondition.constraints.length},this));ret
urn b[0]}; |
1043 cvox.BaseRuleStore.prototype.testPrecondition_=function(a,b){var c=b.preconditio
n;return this.applyQuery(a,c.query)===a&&c.constraints.every(goog.bind(function(
b){return this.applyConstraint(a,b)},this))};cvox.BaseRuleStore.compareDynamicCo
nstraints_=function(a,b){if(Object.keys(a).length!=Object.keys(b).length)return!
1;for(var c in a)if(!b[c]||a[c]!==b[c])return!1;return!0}; | 1045 cvox.BaseRuleStore.prototype.testPrecondition_=function(a,b){var c=b.preconditio
n;return this.applyQuery(a,c.query)===a&&c.constraints.every(goog.bind(function(
b){return this.applyConstraint(a,b)},this))};cvox.BaseRuleStore.compareDynamicCo
nstraints_=function(a,b){if(Object.keys(a).length!=Object.keys(b).length)return!
1;for(var c in a)if(!b[c]||a[c]!==b[c])return!1;return!0}; |
1044 cvox.BaseRuleStore.compareStaticConstraints_=function(a,b){if(a.length!=b.length
)return!1;for(var c=0,d;d=a[c];c++)if(-1==b.indexOf(d))return!1;return!0};cvox.B
aseRuleStore.comparePreconditions_=function(a,b){var c=a.precondition,d=b.precon
dition;return c.query!=d.query?!1:cvox.BaseRuleStore.compareStaticConstraints_(c
.constraints,d.constraints)};cvox.MathStore=function(){cvox.BaseRuleStore.call(t
his);this.dynamicCstrAttribs=[cvox.SpeechRule.DynamicCstrAttrib.DOMAIN,cvox.Spee
chRule.DynamicCstrAttrib.STYLE];this.defaultTtsProps=[cvox.AbstractTts.PITCH,cvo
x.AbstractTts.RATE]};goog.inherits(cvox.MathStore,cvox.BaseRuleStore);cvox.Speec
hRule.DynamicCstrAttrib.DOMAIN="domain"; | 1046 cvox.BaseRuleStore.compareStaticConstraints_=function(a,b){if(a.length!=b.length
)return!1;for(var c=0,d;d=a[c];c++)if(-1==b.indexOf(d))return!1;return!0};cvox.B
aseRuleStore.comparePreconditions_=function(a,b){var c=a.precondition,d=b.precon
dition;return c.query!=d.query?!1:cvox.BaseRuleStore.compareStaticConstraints_(c
.constraints,d.constraints)};cvox.MathStore=function(){cvox.BaseRuleStore.call(t
his);this.dynamicCstrAttribs=[cvox.SpeechRule.DynamicCstrAttrib.DOMAIN,cvox.Spee
chRule.DynamicCstrAttrib.STYLE];this.defaultTtsProps=[cvox.AbstractTts.PITCH,cvo
x.AbstractTts.RATE]};goog.inherits(cvox.MathStore,cvox.BaseRuleStore);cvox.Speec
hRule.DynamicCstrAttrib.DOMAIN="domain"; |
1045 cvox.MathStore.prototype.defineRule=function(a,b,c,d,e){var f=this.parseDynamicC
onstraint(b),g=Array.prototype.slice.call(arguments,4),g=cvox.MathStore.superCla
ss_.defineRule.apply(this,[a,f[cvox.SpeechRule.DynamicCstrAttrib.STYLE],c,d].con
cat(g));g.dynamicCstr=f;this.removeDuplicates(g);return g}; | 1047 cvox.MathStore.prototype.defineRule=function(a,b,c,d,e){var f=this.parseDynamicC
onstraint(b),g=Array.prototype.slice.call(arguments,4),g=cvox.MathStore.superCla
ss_.defineRule.apply(this,[a,f[cvox.SpeechRule.DynamicCstrAttrib.STYLE],c,d].con
cat(g));g.dynamicCstr=f;this.removeDuplicates(g);return g}; |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1125 cvox.CommandStore.CMD_WHITELIST={toggleStickyMode:{announce:!1,msgId:"toggle_sti
cky_mode",disallowOOBE:!0,category:"modifier_keys"},toggleKeyPrefix:{announce:!1
,skipInput:!0,msgId:"prefix_key",disallowOOBE:!0,category:"modifier_keys"},passT
hroughMode:{announce:!1,msgId:"pass_through_key_description",category:"modifier_
keys"},stopSpeech:{announce:!1,disallowContinuation:!0,doDefault:!0,msgId:"stop_
speech_key",category:"controlling_speech"},toggleChromeVox:{announce:!1,platform
Filter:cvox.PlatformFilter.WML, | 1127 cvox.CommandStore.CMD_WHITELIST={toggleStickyMode:{announce:!1,msgId:"toggle_sti
cky_mode",disallowOOBE:!0,category:"modifier_keys"},toggleKeyPrefix:{announce:!1
,skipInput:!0,msgId:"prefix_key",disallowOOBE:!0,category:"modifier_keys"},passT
hroughMode:{announce:!1,msgId:"pass_through_key_description",category:"modifier_
keys"},stopSpeech:{announce:!1,disallowContinuation:!0,doDefault:!0,msgId:"stop_
speech_key",category:"controlling_speech"},toggleChromeVox:{announce:!1,platform
Filter:cvox.PlatformFilter.WML, |
1126 msgId:"toggle_chromevox_active",category:"controlling_speech"},decreaseTtsRate:{
announce:!1,msgId:"decrease_tts_rate",category:"controlling_speech"},increaseTts
Rate:{announce:!1,msgId:"increase_tts_rate",category:"controlling_speech"},decre
aseTtsPitch:{announce:!1,msgId:"decrease_tts_pitch",category:"controlling_speech
"},increaseTtsPitch:{announce:!1,msgId:"increase_tts_pitch",category:"controllin
g_speech"},decreaseTtsVolume:{announce:!1,msgId:"decrease_tts_volume",category:"
controlling_speech"}, | 1128 msgId:"toggle_chromevox_active",category:"controlling_speech"},decreaseTtsRate:{
announce:!1,msgId:"decrease_tts_rate",category:"controlling_speech"},increaseTts
Rate:{announce:!1,msgId:"increase_tts_rate",category:"controlling_speech"},decre
aseTtsPitch:{announce:!1,msgId:"decrease_tts_pitch",category:"controlling_speech
"},increaseTtsPitch:{announce:!1,msgId:"increase_tts_pitch",category:"controllin
g_speech"},decreaseTtsVolume:{announce:!1,msgId:"decrease_tts_volume",category:"
controlling_speech"}, |
1127 increaseTtsVolume:{announce:!1,msgId:"increase_tts_volume",category:"controlling
_speech"},cyclePunctuationEcho:{announce:!1,msgId:"cycle_punctuation_echo",categ
ory:"controlling_speech"},cycleTypingEcho:{announce:!1,msgId:"cycle_typing_echo"
,category:"controlling_speech"},toggleEarcons:{announce:!0,msgId:"toggle_earcons
",category:"controlling_speech"},handleTab:{allowEvents:!0,msgId:"handle_tab_nex
t",disallowContinuation:!0,category:"navigation"},handleTabPrev:{allowEvents:!0,
msgId:"handle_tab_prev", | 1129 increaseTtsVolume:{announce:!1,msgId:"increase_tts_volume",category:"controlling
_speech"},cyclePunctuationEcho:{announce:!1,msgId:"cycle_punctuation_echo",categ
ory:"controlling_speech"},cycleTypingEcho:{announce:!1,msgId:"cycle_typing_echo"
,category:"controlling_speech"},toggleEarcons:{announce:!0,msgId:"toggle_earcons
",category:"controlling_speech"},handleTab:{allowEvents:!0,msgId:"handle_tab_nex
t",disallowContinuation:!0,category:"navigation"},handleTabPrev:{allowEvents:!0,
msgId:"handle_tab_prev", |
1128 disallowContinuation:!0,category:"navigation"},forward:{forward:!0,announce:!0,m
sgId:"forward",category:"navigation"},backward:{backward:!0,announce:!0,msgId:"b
ackward",category:"navigation"},right:{forward:!0,announce:!0,msgId:"right",cate
gory:"navigation"},left:{backward:!0,announce:!0,msgId:"left",category:"navigati
on"},previousGranularity:{announce:!0,msgId:"previous_granularity",category:"nav
igation"},nextGranularity:{announce:!0,msgId:"next_granularity",category:"naviga
tion"},previousCharacter:{backward:!0, | 1130 disallowContinuation:!0,category:"navigation"},forward:{forward:!0,announce:!0,m
sgId:"forward",category:"navigation"},backward:{backward:!0,announce:!0,msgId:"b
ackward",category:"navigation"},right:{forward:!0,announce:!0,msgId:"right",cate
gory:"navigation"},left:{backward:!0,announce:!0,msgId:"left",category:"navigati
on"},previousGranularity:{announce:!0,msgId:"previous_granularity",category:"nav
igation"},nextGranularity:{announce:!0,msgId:"next_granularity",category:"naviga
tion"},previousCharacter:{backward:!0, |
1129 announce:!0,msgId:"previous_character",skipInput:!0,category:"navigation"},nextC
haracter:{forward:!0,announce:!0,msgId:"next_character",skipInput:!0,category:"n
avigation"},previousWord:{backward:!0,announce:!0,msgId:"previous_word",skipInpu
t:!0,category:"navigation"},nextWord:{forward:!0,announce:!0,msgId:"next_word",s
kipInput:!0,category:"navigation"},previousLine:{backward:!0,announce:!0,msgId:"
previous_line",category:"navigation"},nextLine:{forward:!0,announce:!0,msgId:"ne
xt_line",category:"navigation"}, | 1131 announce:!0,msgId:"previous_character",skipInput:!0,category:"navigation"},nextC
haracter:{forward:!0,announce:!0,msgId:"next_character",skipInput:!0,category:"n
avigation"},previousWord:{backward:!0,announce:!0,msgId:"previous_word",skipInpu
t:!0,category:"navigation"},nextWord:{forward:!0,announce:!0,msgId:"next_word",s
kipInput:!0,category:"navigation"},previousLine:{backward:!0,announce:!0,msgId:"
previous_line",category:"navigation"},nextLine:{forward:!0,announce:!0,msgId:"ne
xt_line",category:"navigation"}, |
1130 previousSentence:{backward:!0,announce:!0,msgId:"previous_sentence",skipInput:!0
,category:"navigation"},nextSentence:{forward:!0,announce:!0,msgId:"next_sentenc
e",skipInput:!0,category:"navigation"},previousObject:{backward:!0,announce:!0,m
sgId:"previous_object",skipInput:!0,category:"navigation"},nextObject:{forward:!
0,announce:!0,msgId:"next_object",skipInput:!0,category:"navigation"},previousGr
oup:{backward:!0,announce:!0,msgId:"previous_group",skipInput:!0,category:"navig
ation"},nextGroup:{forward:!0, | 1132 previousSentence:{backward:!0,announce:!0,msgId:"previous_sentence",skipInput:!0
,category:"navigation"},nextSentence:{forward:!0,announce:!0,msgId:"next_sentenc
e",skipInput:!0,category:"navigation"},previousObject:{backward:!0,announce:!0,m
sgId:"previous_object",skipInput:!0,category:"navigation"},nextObject:{forward:!
0,announce:!0,msgId:"next_object",skipInput:!0,category:"navigation"},previousGr
oup:{backward:!0,announce:!0,msgId:"previous_group",skipInput:!0,category:"navig
ation"},nextGroup:{forward:!0, |
1131 announce:!0,msgId:"next_group",skipInput:!0,category:"navigation"},jumpToTop:{fo
rward:!0,announce:!0,msgId:"jump_to_top",category:"navigation"},jumpToBottom:{ba
ckward:!0,announce:!0,msgId:"jump_to_bottom",category:"navigation"},moveToStartO
fLine:{forward:!0,announce:!0},moveToEndOfLine:{backward:!0,announce:!0},readFro
mHere:{forward:!0,announce:!1,msgId:"read_from_here",category:"navigation"},perf
ormDefaultAction:{disallowContinuation:!0,msgId:"perform_default_action",doDefau
lt:!0,skipInput:!0,category:"navigation"}, | 1133 announce:!0,msgId:"next_group",skipInput:!0,category:"navigation"},jumpToTop:{fo
rward:!0,announce:!0,msgId:"jump_to_top",category:"navigation"},jumpToBottom:{ba
ckward:!0,announce:!0,msgId:"jump_to_bottom",category:"navigation"},moveToStartO
fLine:{forward:!0,announce:!0},moveToEndOfLine:{backward:!0,announce:!0},readFro
mHere:{forward:!0,announce:!1,msgId:"read_from_here",category:"navigation"},perf
ormDefaultAction:{disallowContinuation:!0,msgId:"perform_default_action",doDefau
lt:!0,skipInput:!0,category:"navigation"}, |
1132 forceClickOnCurrentItem:{announce:!0,disallowContinuation:!0,allowEvents:!0,msgI
d:"force_click_on_current_item",category:"navigation"},forceDoubleClickOnCurrent
Item:{announce:!0,allowEvents:!0,disallowContinuation:!0},readLinkURL:{announce:
!1,msgId:"read_link_url",category:"information"},readCurrentTitle:{announce:!1,m
sgId:"read_current_title",category:"information"},readCurrentURL:{announce:!1,ms
gId:"read_current_url",category:"information"},fullyDescribe:{announce:!1,msgId:
"fully_describe",category:"information"}, | 1134 forceClickOnCurrentItem:{announce:!0,disallowContinuation:!0,allowEvents:!0,msgI
d:"force_click_on_current_item",category:"navigation"},forceDoubleClickOnCurrent
Item:{announce:!0,allowEvents:!0,disallowContinuation:!0},readLinkURL:{announce:
!1,msgId:"read_link_url",category:"information"},readCurrentTitle:{announce:!1,m
sgId:"read_current_title",category:"information"},readCurrentURL:{announce:!1,ms
gId:"read_current_url",category:"information"},fullyDescribe:{announce:!1,msgId:
"fully_describe",category:"information"}, |
1133 speakTimeAndDate:{announce:!1,msgId:"speak_time_and_date",category:"information"
},toggleSelection:{announce:!0,msgId:"toggle_selection",category:"information"},
toggleSearchWidget:{announce:!1,disallowContinuation:!0,msgId:"toggle_search_wid
get",category:"information"},toggleKeyboardHelp:{announce:!1,disallowContinuatio
n:!0,msgId:"show_power_key",category:"help_commands"},help:{announce:!1,msgId:"h
elp",disallowOOBE:!0,disallowContinuation:!0,category:"help_commands"},contextMe
nu:{announce:!1,disallowContinuation:!0}, | 1135 speakTimeAndDate:{announce:!1,msgId:"speak_time_and_date",category:"information"
},toggleSelection:{announce:!0,msgId:"toggle_selection",category:"information"},
toggleSearchWidget:{announce:!1,disallowContinuation:!0,msgId:"toggle_search_wid
get",category:"information"},toggleKeyboardHelp:{announce:!1,disallowContinuatio
n:!0,msgId:"show_power_key",category:"help_commands"},help:{announce:!1,msgId:"h
elp",disallowOOBE:!0,disallowContinuation:!0,category:"help_commands"},contextMe
nu:{announce:!1,disallowContinuation:!0}, |
1134 showOptionsPage:{announce:!1,disallowContinuation:!0,msgId:"show_options_page",d
isallowOOBE:!0,category:"help_commands"},showKbExplorerPage:{announce:!1,disallo
wContinuation:!0,msgId:"show_kb_explorer_page",disallowOOBE:!0,category:"help_co
mmands"},showFormsList:{announce:!1,disallowContinuation:!0,nodeList:"formField"
,msgId:"show_forms_list",category:"overview"},showHeadingsList:{announce:!1,node
List:"heading",disallowContinuation:!0,msgId:"show_headings_list",category:"over
view"},showLandmarksList:{announce:!1, | 1136 showOptionsPage:{announce:!1,disallowContinuation:!0,msgId:"show_options_page",d
isallowOOBE:!0,category:"help_commands"},showKbExplorerPage:{announce:!1,disallo
wContinuation:!0,msgId:"show_kb_explorer_page",disallowOOBE:!0,category:"help_co
mmands"},showFormsList:{announce:!1,disallowContinuation:!0,nodeList:"formField"
,msgId:"show_forms_list",category:"overview"},showHeadingsList:{announce:!1,node
List:"heading",disallowContinuation:!0,msgId:"show_headings_list",category:"over
view"},showLandmarksList:{announce:!1, |
1135 nodeList:"landmark",disallowContinuation:!0,msgId:"show_landmarks_list",category
:"overview"},showLinksList:{announce:!1,nodeList:"link",disallowContinuation:!0,
msgId:"show_links_list",category:"overview"},showTablesList:{announce:!1,nodeLis
t:"table",disallowContinuation:!0,msgId:"show_tables_list",category:"overview"},
startHistoryRecording:{announce:!1},stopHistoryRecording:{announce:!1},enableCon
soleTts:{announce:!1},toggleBrailleCaptions:{announce:!1},autorunner:{announce:!
1},nextArticle:{forward:!0, | 1137 nodeList:"landmark",disallowContinuation:!0,msgId:"show_landmarks_list",category
:"overview"},showLinksList:{announce:!1,nodeList:"link",disallowContinuation:!0,
msgId:"show_links_list",category:"overview"},showTablesList:{announce:!1,nodeLis
t:"table",disallowContinuation:!0,msgId:"show_tables_list",category:"overview"},
nextArticle:{forward:!0,findNext:"article"},nextButton:{forward:!0,findNext:"but
ton",msgId:"next_button",category:"jump_commands"},nextCheckbox:{forward:!0,find
Next:"checkbox",msgId:"next_checkbox", |
1136 findNext:"article"},nextButton:{forward:!0,findNext:"button",msgId:"next_button"
,category:"jump_commands"},nextCheckbox:{forward:!0,findNext:"checkbox",msgId:"n
ext_checkbox",category:"jump_commands"},nextComboBox:{forward:!0,findNext:"combo
box",msgId:"next_combo_box",category:"jump_commands"},nextControl:{forward:!0,fi
ndNext:"control"},nextEditText:{forward:!0,findNext:"editText",msgId:"next_edit_
text",category:"jump_commands"},nextFormField:{forward:!0,findNext:"formField",m
sgId:"next_form_field", | 1138 category:"jump_commands"},nextComboBox:{forward:!0,findNext:"combobox",msgId:"ne
xt_combo_box",category:"jump_commands"},nextControl:{forward:!0,findNext:"contro
l"},nextEditText:{forward:!0,findNext:"editText",msgId:"next_edit_text",category
:"jump_commands"},nextFormField:{forward:!0,findNext:"formField",msgId:"next_for
m_field",category:"jump_commands"},nextGraphic:{forward:!0,findNext:"graphic",ms
gId:"next_graphic",category:"jump_commands"},nextHeading:{forward:!0,findNext:"h
eading",msgId:"next_heading", |
1137 category:"jump_commands"},nextGraphic:{forward:!0,findNext:"graphic",msgId:"next
_graphic",category:"jump_commands"},nextHeading:{forward:!0,findNext:"heading",m
sgId:"next_heading",category:"jump_commands"},nextHeading1:{forward:!0,findNext:
"heading1",msgId:"next_heading1",category:"jump_commands"},nextHeading2:{forward
:!0,findNext:"heading2",msgId:"next_heading2",category:"jump_commands"},nextHead
ing3:{forward:!0,findNext:"heading3",msgId:"next_heading3",category:"jump_comman
ds"},nextHeading4:{forward:!0, | 1139 category:"jump_commands"},nextHeading1:{forward:!0,findNext:"heading1",msgId:"ne
xt_heading1",category:"jump_commands"},nextHeading2:{forward:!0,findNext:"headin
g2",msgId:"next_heading2",category:"jump_commands"},nextHeading3:{forward:!0,fin
dNext:"heading3",msgId:"next_heading3",category:"jump_commands"},nextHeading4:{f
orward:!0,findNext:"heading4",msgId:"next_heading4",category:"jump_commands"},ne
xtHeading5:{forward:!0,findNext:"heading5",msgId:"next_heading5",category:"jump_
commands"},nextHeading6:{forward:!0, |
1138 findNext:"heading4",msgId:"next_heading4",category:"jump_commands"},nextHeading5
:{forward:!0,findNext:"heading5",msgId:"next_heading5",category:"jump_commands"}
,nextHeading6:{forward:!0,findNext:"heading6",msgId:"next_heading6",category:"ju
mp_commands"},nextLandmark:{forward:!0,findNext:"landmark",msgId:"next_landmark"
,category:"jump_commands"},nextLink:{forward:!0,findNext:"link",msgId:"next_link
",category:"jump_commands"},nextList:{forward:!0,findNext:"list",msgId:"next_lis
t",category:"jump_commands"}, | 1140 findNext:"heading6",msgId:"next_heading6",category:"jump_commands"},nextLandmark
:{forward:!0,findNext:"landmark",msgId:"next_landmark",category:"jump_commands"}
,nextLink:{forward:!0,findNext:"link",msgId:"next_link",category:"jump_commands"
},nextList:{forward:!0,findNext:"list",msgId:"next_list",category:"jump_commands
"},nextListItem:{forward:!0,findNext:"listItem",msgId:"next_list_item",category:
"jump_commands"},nextMath:{forward:!0,findNext:"math",msgId:"next_math",category
:"jump_commands"},nextMedia:{forward:!0, |
1139 nextListItem:{forward:!0,findNext:"listItem",msgId:"next_list_item",category:"ju
mp_commands"},nextMath:{forward:!0,findNext:"math",msgId:"next_math",category:"j
ump_commands"},nextMedia:{forward:!0,findNext:"media",msgId:"next_media",categor
y:"jump_commands"},nextRadio:{forward:!0,findNext:"radio",msgId:"next_radio",cat
egory:"jump_commands"},nextSection:{forward:!0,findNext:"section"},nextSlider:{f
orward:!0,findNext:"slider"},nextTable:{forward:!0,findNext:"table",msgId:"next_
table",category:"jump_commands"}, | 1141 findNext:"media",msgId:"next_media",category:"jump_commands"},nextRadio:{forward
:!0,findNext:"radio",msgId:"next_radio",category:"jump_commands"},nextSection:{f
orward:!0,findNext:"section"},nextSlider:{forward:!0,findNext:"slider"},nextTabl
e:{forward:!0,findNext:"table",msgId:"next_table",category:"jump_commands"},next
VisitedLink:{forward:!0,findNext:"visitedLink",msgId:"next_visited_link",categor
y:"jump_commands"},previousArticle:{backward:!0,findNext:"article"},previousButt
on:{backward:!0,findNext:"button", |
1140 nextVisitedLink:{forward:!0,findNext:"visitedLink",msgId:"next_visited_link",cat
egory:"jump_commands"},previousArticle:{backward:!0,findNext:"article"},previous
Button:{backward:!0,findNext:"button",msgId:"previous_button",category:"jump_com
mands"},previousCheckbox:{backward:!0,findNext:"checkbox",msgId:"previous_checkb
ox",category:"jump_commands"},previousComboBox:{backward:!0,findNext:"combobox",
msgId:"previous_combo_box",category:"jump_commands"},previousControl:{backward:!
0,findNext:"control"}, | 1142 msgId:"previous_button",category:"jump_commands"},previousCheckbox:{backward:!0,
findNext:"checkbox",msgId:"previous_checkbox",category:"jump_commands"},previous
ComboBox:{backward:!0,findNext:"combobox",msgId:"previous_combo_box",category:"j
ump_commands"},previousControl:{backward:!0,findNext:"control"},previousEditText
:{backward:!0,findNext:"editText",msgId:"previous_edit_text",category:"jump_comm
ands"},previousFormField:{backward:!0,findNext:"formField",msgId:"previous_form_
field",category:"jump_commands"}, |
1141 previousEditText:{backward:!0,findNext:"editText",msgId:"previous_edit_text",cat
egory:"jump_commands"},previousFormField:{backward:!0,findNext:"formField",msgId
:"previous_form_field",category:"jump_commands"},previousGraphic:{backward:!0,fi
ndNext:"graphic",msgId:"previous_graphic",category:"jump_commands"},previousHead
ing:{backward:!0,findNext:"heading",msgId:"previous_heading",category:"jump_comm
ands"},previousHeading1:{backward:!0,findNext:"heading1",msgId:"previous_heading
1",category:"jump_commands"}, | 1143 previousGraphic:{backward:!0,findNext:"graphic",msgId:"previous_graphic",categor
y:"jump_commands"},previousHeading:{backward:!0,findNext:"heading",msgId:"previo
us_heading",category:"jump_commands"},previousHeading1:{backward:!0,findNext:"he
ading1",msgId:"previous_heading1",category:"jump_commands"},previousHeading2:{ba
ckward:!0,findNext:"heading2",msgId:"previous_heading2",category:"jump_commands"
},previousHeading3:{backward:!0,findNext:"heading3",msgId:"previous_heading3",ca
tegory:"jump_commands"}, |
1142 previousHeading2:{backward:!0,findNext:"heading2",msgId:"previous_heading2",cate
gory:"jump_commands"},previousHeading3:{backward:!0,findNext:"heading3",msgId:"p
revious_heading3",category:"jump_commands"},previousHeading4:{backward:!0,findNe
xt:"heading4",msgId:"previous_heading4",category:"jump_commands"},previousHeadin
g5:{backward:!0,findNext:"heading5",msgId:"previous_heading5",category:"jump_com
mands"},previousHeading6:{backward:!0,findNext:"heading6",msgId:"previous_headin
g6",category:"jump_commands"}, | 1144 previousHeading4:{backward:!0,findNext:"heading4",msgId:"previous_heading4",cate
gory:"jump_commands"},previousHeading5:{backward:!0,findNext:"heading5",msgId:"p
revious_heading5",category:"jump_commands"},previousHeading6:{backward:!0,findNe
xt:"heading6",msgId:"previous_heading6",category:"jump_commands"},previousLandma
rk:{backward:!0,findNext:"landmark",msgId:"previous_landmark",category:"jump_com
mands"},previousLink:{backward:!0,findNext:"link",msgId:"previous_link",category
:"jump_commands"},previousList:{backward:!0, |
1143 previousLandmark:{backward:!0,findNext:"landmark",msgId:"previous_landmark",cate
gory:"jump_commands"},previousLink:{backward:!0,findNext:"link",msgId:"previous_
link",category:"jump_commands"},previousList:{backward:!0,findNext:"list",msgId:
"previous_list",category:"jump_commands"},previousListItem:{backward:!0,findNext
:"listItem",msgId:"previous_list_item",category:"jump_commands"},previousMath:{b
ackward:!0,findNext:"math",msgId:"previous_math",category:"jump_commands"},previ
ousMedia:{backward:!0, | 1145 findNext:"list",msgId:"previous_list",category:"jump_commands"},previousListItem
:{backward:!0,findNext:"listItem",msgId:"previous_list_item",category:"jump_comm
ands"},previousMath:{backward:!0,findNext:"math",msgId:"previous_math",category:
"jump_commands"},previousMedia:{backward:!0,findNext:"media",msgId:"previous_med
ia",category:"jump_commands"},previousRadio:{backward:!0,findNext:"radio",msgId:
"previous_radio",category:"jump_commands"},previousSection:{backward:!0,findNext
:"section"},previousSlider:{backward:!0, |
1144 findNext:"media",msgId:"previous_media",category:"jump_commands"},previousRadio:
{backward:!0,findNext:"radio",msgId:"previous_radio",category:"jump_commands"},p
reviousSection:{backward:!0,findNext:"section"},previousSlider:{backward:!0,find
Next:"slider"},previousTable:{backward:!0,findNext:"table",msgId:"previous_table
",category:"jump_commands"},previousVisitedLink:{backward:!0,findNext:"visitedLi
nk",msgId:"previous_visited_link",category:"jump_commands"},announceHeaders:{ann
ounce:!1,msgId:"announce_headers", | 1146 findNext:"slider"},previousTable:{backward:!0,findNext:"table",msgId:"previous_t
able",category:"jump_commands"},previousVisitedLink:{backward:!0,findNext:"visit
edLink",msgId:"previous_visited_link",category:"jump_commands"},announceHeaders:
{announce:!1,msgId:"announce_headers",category:"tables"},speakTableLocation:{ann
ounce:!1,msgId:"speak_table_location",category:"tables"},goToFirstCell:{announce
:!0,msgId:"skip_to_beginning",category:"tables"},goToLastCell:{announce:!0,msgId
:"skip_to_end",category:"tables"}, |
1145 category:"tables"},speakTableLocation:{announce:!1,msgId:"speak_table_location",
category:"tables"},goToFirstCell:{announce:!0,msgId:"skip_to_beginning",category
:"tables"},goToLastCell:{announce:!0,msgId:"skip_to_end",category:"tables"},goTo
RowFirstCell:{announce:!0,msgId:"skip_to_row_beginning",category:"tables"},goToR
owLastCell:{announce:!0,msgId:"skip_to_row_end",category:"tables"},goToColFirstC
ell:{announce:!0,msgId:"skip_to_col_beginning",category:"tables"},goToColLastCel
l:{announce:!0,msgId:"skip_to_col_end", | 1147 goToRowFirstCell:{announce:!0,msgId:"skip_to_row_beginning",category:"tables"},g
oToRowLastCell:{announce:!0,msgId:"skip_to_row_end",category:"tables"},goToColFi
rstCell:{announce:!0,msgId:"skip_to_col_beginning",category:"tables"},goToColLas
tCell:{announce:!0,msgId:"skip_to_col_end",category:"tables"},previousRow:{backw
ard:!0,announce:!0,skipInput:!0},previousCol:{backward:!0,announce:!0,skipInput:
!0},nextRow:{forward:!0,announce:!0,skipInput:!0},nextCol:{forward:!0,announce:!
0,skipInput:!0},enterShifter:{announce:!0, |
1146 category:"tables"},previousRow:{backward:!0,announce:!0,skipInput:!0},previousCo
l:{backward:!0,announce:!0,skipInput:!0},nextRow:{forward:!0,announce:!0,skipInp
ut:!0},nextCol:{forward:!0,announce:!0,skipInput:!0},enterShifter:{announce:!0,m
sgId:"enter_content",category:"navigation"},exitShifter:{announce:!0,msgId:"exit
_content",category:"navigation"},exitShifterContent:{announce:!0},openLongDesc:{
announce:!1,msgId:"open_long_desc",category:"information"},pauseAllMedia:{announ
ce:!1,msgId:"pause_all_media", | 1148 msgId:"enter_content",category:"navigation"},exitShifter:{announce:!0,msgId:"exi
t_content",category:"navigation"},exitShifterContent:{announce:!0},openLongDesc:
{announce:!1,msgId:"open_long_desc",category:"information"},pauseAllMedia:{annou
nce:!1,msgId:"pause_all_media",category:"information"},toggleSemantics:{announce
:!1,msgId:"toggle_semantics",category:"information"},routing:{announce:!1,allowE
vents:!0,msgId:"braille_routing",category:"braille"},pan_left:{backward:!0,annou
nce:!0,msgId:"braille_pan_left", |
1147 category:"information"},toggleSemantics:{announce:!1,msgId:"toggle_semantics",ca
tegory:"information"},routing:{announce:!1,allowEvents:!0,msgId:"braille_routing
",category:"braille"},pan_left:{backward:!0,announce:!0,msgId:"braille_pan_left"
,category:"braille"},pan_right:{forward:!0,announce:!0,msgId:"braille_pan_right"
,category:"braille"},line_up:{backward:!0,announce:!0,msgId:"braille_line_up",ca
tegory:"braille"},line_down:{forward:!0,announce:!0,msgId:"braille_line_down",ca
tegory:"braille"},top:{forward:!0, | 1149 category:"braille"},pan_right:{forward:!0,announce:!0,msgId:"braille_pan_right",
category:"braille"},line_up:{backward:!0,announce:!0,msgId:"braille_line_up",cat
egory:"braille"},line_down:{forward:!0,announce:!0,msgId:"braille_line_down",cat
egory:"braille"},top:{forward:!0,announce:!0,msgId:"braille_top",category:"brail
le"},bottom:{backward:!0,announce:!0,msgId:"braille_bottom",category:"braille"},
enableConsoleTts:{announce:!1,msgId:"enable_tts_log",category:"developer"},toggl
eBrailleCaptions:{announce:!1, |
1148 announce:!0,msgId:"braille_top",category:"braille"},bottom:{backward:!0,announce
:!0,msgId:"braille_bottom",category:"braille"},debug:{announce:!1},nop:{announce
:!1}}; | 1150 msgId:"braille_captions",category:"developer"},startHistoryRecording:{announce:!
1},stopHistoryRecording:{announce:!1},autorunner:{announce:!1},debug:{announce:!
1},nop:{announce:!1}}; |
1149 cvox.CommandStore.NODE_INFO_MAP={checkbox:{predicate:"checkboxPredicate",forward
Error:"no_next_checkbox",backwardError:"no_previous_checkbox",typeMsg:"aria_role
_checkbox"},radio:{predicate:"radioPredicate",forwardError:"no_next_radio_button
",backwardError:"no_previous_radio_button",typeMsg:"aria_role_radio"},slider:{pr
edicate:"sliderPredicate",forwardError:"no_next_slider",backwardError:"no_previo
us_slider",typeMsg:"aria_role_slider"},graphic:{predicate:"graphicPredicate",for
wardError:"no_next_graphic", | 1151 cvox.CommandStore.NODE_INFO_MAP={checkbox:{predicate:"checkboxPredicate",forward
Error:"no_next_checkbox",backwardError:"no_previous_checkbox",typeMsg:"aria_role
_checkbox"},radio:{predicate:"radioPredicate",forwardError:"no_next_radio_button
",backwardError:"no_previous_radio_button",typeMsg:"aria_role_radio"},slider:{pr
edicate:"sliderPredicate",forwardError:"no_next_slider",backwardError:"no_previo
us_slider",typeMsg:"aria_role_slider"},graphic:{predicate:"graphicPredicate",for
wardError:"no_next_graphic", |
1150 backwardError:"no_previous_graphic",typeMsg:"UNUSED"},article:{predicate:"articl
ePredicate",forwardError:"no_next_ARTICLE",backwardError:"no_previous_ARTICLE",t
ypeMsg:"TAG_ARTICLE"},button:{predicate:"buttonPredicate",forwardError:"no_next_
button",backwardError:"no_previous_button",typeMsg:"aria_role_button"},combobox:
{predicate:"comboBoxPredicate",forwardError:"no_next_combo_box",backwardError:"n
o_previous_combo_box",typeMsg:"aria_role_combobox"},editText:{predicate:"editTex
tPredicate",forwardError:"no_next_edit_text", | 1152 backwardError:"no_previous_graphic",typeMsg:"UNUSED"},article:{predicate:"articl
ePredicate",forwardError:"no_next_ARTICLE",backwardError:"no_previous_ARTICLE",t
ypeMsg:"TAG_ARTICLE"},button:{predicate:"buttonPredicate",forwardError:"no_next_
button",backwardError:"no_previous_button",typeMsg:"aria_role_button"},combobox:
{predicate:"comboBoxPredicate",forwardError:"no_next_combo_box",backwardError:"n
o_previous_combo_box",typeMsg:"aria_role_combobox"},editText:{predicate:"editTex
tPredicate",forwardError:"no_next_edit_text", |
1151 backwardError:"no_previous_edit_text",typeMsg:"input_type_text"},heading:{predic
ate:"headingPredicate",forwardError:"no_next_heading",backwardError:"no_previous
_heading",typeMsg:"aria_role_heading"},heading1:{predicate:"heading1Predicate",f
orwardError:"no_next_heading_1",backwardError:"no_previous_heading_1"},heading2:
{predicate:"heading2Predicate",forwardError:"no_next_heading_2",backwardError:"n
o_previous_heading_2"},heading3:{predicate:"heading3Predicate",forwardError:"no_
next_heading_3",backwardError:"no_previous_heading_3"}, | 1153 backwardError:"no_previous_edit_text",typeMsg:"input_type_text"},heading:{predic
ate:"headingPredicate",forwardError:"no_next_heading",backwardError:"no_previous
_heading",typeMsg:"aria_role_heading"},heading1:{predicate:"heading1Predicate",f
orwardError:"no_next_heading_1",backwardError:"no_previous_heading_1"},heading2:
{predicate:"heading2Predicate",forwardError:"no_next_heading_2",backwardError:"n
o_previous_heading_2"},heading3:{predicate:"heading3Predicate",forwardError:"no_
next_heading_3",backwardError:"no_previous_heading_3"}, |
1152 heading4:{predicate:"heading4Predicate",forwardError:"no_next_heading_4",backwar
dError:"no_previous_heading_4"},heading5:{predicate:"heading5Predicate",forwardE
rror:"no_next_heading_5",backwardError:"no_previous_heading_5"},heading6:{predic
ate:"heading6Predicate",forwardError:"no_next_heading_6",backwardError:"no_previ
ous_heading_6"},link:{predicate:"linkPredicate",forwardError:"no_next_link",back
wardError:"no_previous_link",typeMsg:"aria_role_link"},table:{predicate:"tablePr
edicate",forwardError:"no_next_table", | 1154 heading4:{predicate:"heading4Predicate",forwardError:"no_next_heading_4",backwar
dError:"no_previous_heading_4"},heading5:{predicate:"heading5Predicate",forwardE
rror:"no_next_heading_5",backwardError:"no_previous_heading_5"},heading6:{predic
ate:"heading6Predicate",forwardError:"no_next_heading_6",backwardError:"no_previ
ous_heading_6"},link:{predicate:"linkPredicate",forwardError:"no_next_link",back
wardError:"no_previous_link",typeMsg:"aria_role_link"},table:{predicate:"tablePr
edicate",forwardError:"no_next_table", |
1153 backwardError:"no_previous_table",typeMsg:"table_strategy"},visitedLink:{predica
te:"visitedLinkPredicate",forwardError:"no_next_visited_link",backwardError:"no_
previous_visited_link",typeMsg:"tag_link"},list:{predicate:"listPredicate",forwa
rdError:"no_next_list",backwardError:"no_previous_list",typeMsg:"aria_role_list"
},listItem:{predicate:"listItemPredicate",forwardError:"no_next_list_item",backw
ardError:"no_previous_list_item",typeMsg:"aria_role_listitem"},formField:{predic
ate:"formFieldPredicate", | 1155 backwardError:"no_previous_table",typeMsg:"table_strategy"},visitedLink:{predica
te:"visitedLinkPredicate",forwardError:"no_next_visited_link",backwardError:"no_
previous_visited_link",typeMsg:"tag_link"},list:{predicate:"listPredicate",forwa
rdError:"no_next_list",backwardError:"no_previous_list",typeMsg:"aria_role_list"
},listItem:{predicate:"listItemPredicate",forwardError:"no_next_list_item",backw
ardError:"no_previous_list_item",typeMsg:"aria_role_listitem"},formField:{predic
ate:"formFieldPredicate", |
1154 forwardError:"no_next_form_field",backwardError:"no_previous_form_field",typeMsg
:"aria_role_form"},landmark:{predicate:"landmarkPredicate",forwardError:"no_next
_landmark",backwardError:"no_previous_landmark",typeMsg:"role_landmark"},math:{p
redicate:"mathPredicate",forwardError:"no_next_math",backwardError:"no_previous_
math",typeMsg:"math_expr"},media:{predicate:"mediaPredicate",forwardError:"no_ne
xt_media_widget",backwardError:"no_previous_media_widget"},section:{predicate:"s
ectionPredicate",forwardError:"no_next_section", | 1156 forwardError:"no_next_form_field",backwardError:"no_previous_form_field",typeMsg
:"aria_role_form"},landmark:{predicate:"landmarkPredicate",forwardError:"no_next
_landmark",backwardError:"no_previous_landmark",typeMsg:"role_landmark"},math:{p
redicate:"mathPredicate",forwardError:"no_next_math",backwardError:"no_previous_
math",typeMsg:"math_expr"},media:{predicate:"mediaPredicate",forwardError:"no_ne
xt_media_widget",backwardError:"no_previous_media_widget"},section:{predicate:"s
ectionPredicate",forwardError:"no_next_section", |
1155 backwardError:"no_previous_section"},control:{predicate:"controlPredicate",forwa
rdError:"no_next_control",backwardError:"no_previous_control"}};cvox.ChromeEarco
ns=function(){cvox.AbstractEarcons.call(this)};goog.inherits(cvox.ChromeEarcons,
cvox.AbstractEarcons);cvox.ChromeEarcons.prototype.playEarcon=function(a){cvox.C
hromeEarcons.superClass_.playEarcon.call(this,a);this.enabled&&cvox.ExtensionBri
dge.send({target:"EARCON",action:"play",earcon:a})}; | 1157 backwardError:"no_previous_section"},control:{predicate:"controlPredicate",forwa
rdError:"no_next_control",backwardError:"no_previous_control"}};cvox.ChromeEarco
ns=function(){cvox.AbstractEarcons.call(this)};goog.inherits(cvox.ChromeEarcons,
cvox.AbstractEarcons);cvox.ChromeEarcons.prototype.playEarcon=function(a){cvox.C
hromeEarcons.superClass_.playEarcon.call(this,a);this.enabled&&cvox.ExtensionBri
dge.send({target:"EARCON",action:"play",earcon:a})}; |
1156 cvox.ChromeEarcons.prototype.toggle=function(){cvox.ChromeEarcons.superClass_.to
ggle.call(this);cvox.ChromeVox.host.sendToBackgroundPage({target:"Prefs",action:
"setPref",pref:"earcons",value:this.enabled});this.enabled||cvox.ChromeVox.host.
sendToBackgroundPage({target:"Prefs",action:"setPref",pref:"useVerboseMode",valu
e:!0});return this.enabled};cvox.HostFactory.earconsConstructor=cvox.ChromeEarco
ns;cvox.BrailleOverlayWidget=function(){this.active_=!1;this.brailleNode_=this.c
ontentNode_=this.containerNode_=null};goog.addSingletonGetter(cvox.BrailleOverla
yWidget);cvox.BrailleOverlayWidget.prototype.init=function(){cvox.ExtensionBridg
e.addMessageListener(goog.bind(this.onMessage_,this))};cvox.BrailleOverlayWidget
.prototype.setActive=function(a){(this.active_=a)||this.hide_()};cvox.BrailleOve
rlayWidget.prototype.isActive=function(){return this.active_}; | 1158 cvox.ChromeEarcons.prototype.toggle=function(){cvox.ChromeEarcons.superClass_.to
ggle.call(this);cvox.ChromeVox.host.sendToBackgroundPage({target:"Prefs",action:
"setPref",pref:"earcons",value:this.enabled});this.enabled||cvox.ChromeVox.host.
sendToBackgroundPage({target:"Prefs",action:"setPref",pref:"useVerboseMode",valu
e:!0});return this.enabled};cvox.HostFactory.earconsConstructor=cvox.ChromeEarco
ns;cvox.BrailleOverlayWidget=function(){this.active_=!1;this.brailleNode_=this.c
ontentNode_=this.containerNode_=null};goog.addSingletonGetter(cvox.BrailleOverla
yWidget);cvox.BrailleOverlayWidget.prototype.init=function(){cvox.ExtensionBridg
e.addMessageListener(goog.bind(this.onMessage_,this))};cvox.BrailleOverlayWidget
.prototype.setActive=function(a){(this.active_=a)||this.hide_()};cvox.BrailleOve
rlayWidget.prototype.isActive=function(){return this.active_}; |
1157 cvox.BrailleOverlayWidget.prototype.show_=function(){var a=this.createContainerN
ode_();this.containerNode_=a;var b=this.createOverlayNode_();a.appendChild(b);th
is.contentNode_=document.createElement("div");this.brailleNode_=document.createE
lement("div");b.appendChild(this.contentNode_);b.appendChild(this.brailleNode_);
document.body.appendChild(a);window.setTimeout(function(){a.style.opacity="1.0"}
,0)}; | 1159 cvox.BrailleOverlayWidget.prototype.show_=function(){var a=this.createContainerN
ode_();this.containerNode_=a;var b=this.createOverlayNode_();a.appendChild(b);th
is.contentNode_=document.createElement("div");this.brailleNode_=document.createE
lement("div");b.appendChild(this.contentNode_);b.appendChild(this.brailleNode_);
document.body.appendChild(a);window.setTimeout(function(){a.style.opacity="1.0"}
,0)}; |
1158 cvox.BrailleOverlayWidget.prototype.hide_=function(){if(this.containerNode_){var
a=this.containerNode_;a.style.opacity="0.0";window.setTimeout(function(){docume
nt.body.removeChild(a)},1E3);this.brailleNode_=this.contentNode_=this.containerN
ode_=null}};cvox.BrailleOverlayWidget.prototype.setContent_=function(a,b){this.c
ontentNode_||this.show_();this.contentNode_.textContent=a;this.brailleNode_.text
Content=b}; | 1160 cvox.BrailleOverlayWidget.prototype.hide_=function(){if(this.containerNode_){var
a=this.containerNode_;a.style.opacity="0.0";window.setTimeout(function(){docume
nt.body.removeChild(a)},1E3);this.brailleNode_=this.contentNode_=this.containerN
ode_=null}};cvox.BrailleOverlayWidget.prototype.setContent_=function(a,b){this.c
ontentNode_||this.show_();this.contentNode_.textContent=a;this.brailleNode_.text
Content=b}; |
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1427 cvox.NavigationManager.prototype.reset=function(){this.navSpeaker_=new cvox.Navi
gationSpeaker;this.shifterTypes_=[cvox.NavigationShifter,cvox.TableShifter,cvox.
MathShifter];this.shifterStack_=[];this.shifter_=new cvox.NavigationShifter;this
.curSel_=document.activeElement!=document.body?cvox.CursorSelection.fromNode(doc
ument.activeElement):this.shifter_.begin(this.curSel_,{reversed:!1});this.prevSe
l_=this.curSel_.clone();this.ignoreIframesNoMatterWhat_=this.exitedShifter_=this
.enteredShifter_=this.pageEndAnnounced_= | 1429 cvox.NavigationManager.prototype.reset=function(){this.navSpeaker_=new cvox.Navi
gationSpeaker;this.shifterTypes_=[cvox.NavigationShifter,cvox.TableShifter,cvox.
MathShifter];this.shifterStack_=[];this.shifter_=new cvox.NavigationShifter;this
.curSel_=document.activeElement!=document.body?cvox.CursorSelection.fromNode(doc
ument.activeElement):this.shifter_.begin(this.curSel_,{reversed:!1});this.prevSe
l_=this.curSel_.clone();this.ignoreIframesNoMatterWhat_=this.exitedShifter_=this
.enteredShifter_=this.pageEndAnnounced_= |
1428 this.pageEnd_=this.keepReading_=this.recovered_=this.skipped_=!1;this.pageSel_=n
ull;this.predicate_="";this.saveSel_=null;this.activeIndicator&&this.activeIndic
ator.removeFromDom();this.activeIndicator=new cvox.ActiveIndicator;this.navigati
onHistory_=new cvox.NavigationHistory;this.focusRecovery_="chrome:"!=window.loca
tion.protocol;this.iframeIdMap={};this.nextIframeId=1;document.activeElement!=do
cument.body&&this.sync();cvox.TraverseMath.getInstance()}; | 1430 this.pageEnd_=this.keepReading_=this.recovered_=this.skipped_=!1;this.pageSel_=n
ull;this.predicate_="";this.saveSel_=null;this.activeIndicator&&this.activeIndic
ator.removeFromDom();this.activeIndicator=new cvox.ActiveIndicator;this.navigati
onHistory_=new cvox.NavigationHistory;this.focusRecovery_="chrome:"!=window.loca
tion.protocol;this.iframeIdMap={};this.nextIframeId=1;document.activeElement!=do
cument.body&&this.sync();cvox.TraverseMath.getInstance()}; |
1429 cvox.NavigationManager.prototype.resolve=function(a){if(!this.getFocusRecovery()
)return!0;var b=this.getCurrentNode();if(!this.navigationHistory_.becomeInvalid(
b)||this.hasNext_())return!0;b=this.navigationHistory_.revert(a);if(!b.current)r
eturn!0;a=cvox.CursorSelection.fromNode(b.current);b=cvox.CursorSelection.fromNo
de(b.previous);a=a||cvox.CursorSelection.fromBody();b=b||cvox.CursorSelection.fr
omBody();a.setReversed(this.isReversed());this.updateSel(a,b);this.recovered_=!0
;return!1}; | 1431 cvox.NavigationManager.prototype.resolve=function(a){if(!this.getFocusRecovery()
)return!0;var b=this.getCurrentNode();if(!this.navigationHistory_.becomeInvalid(
b)||this.hasNext_())return!0;b=this.navigationHistory_.revert(a);if(!b.current)r
eturn!0;a=cvox.CursorSelection.fromNode(b.current);b=cvox.CursorSelection.fromNo
de(b.previous);a=a||cvox.CursorSelection.fromBody();b=b||cvox.CursorSelection.fr
omBody();a.setReversed(this.isReversed());this.updateSel(a,b);this.recovered_=!0
;return!1}; |
1430 cvox.NavigationManager.prototype.getFocusRecovery=function(){return this.focusRe
covery_};cvox.NavigationManager.prototype.setFocusRecovery=function(a){this.focu
sRecovery_=a};cvox.NavigationManager.prototype.next_=function(a){return this.try
Boundaries_(this.shifter_.next(this.curSel_),a)?(this.pageSel_&&this.pageSel_.ex
tend(this.curSel_),!0):!1}; | 1432 cvox.NavigationManager.prototype.getFocusRecovery=function(){return this.focusRe
covery_};cvox.NavigationManager.prototype.setFocusRecovery=function(a){this.focu
sRecovery_=a};cvox.NavigationManager.prototype.next_=function(a){return this.try
Boundaries_(this.shifter_.next(this.curSel_),a)?(this.pageSel_&&this.pageSel_.ex
tend(this.curSel_),!0):!1}; |
1431 cvox.NavigationManager.prototype.hasNext_=function(){if(0<this.shifterStack_.len
gth)return!0;var a=this.curSel_.clone(),b=!1,c=new cvox.NavigationShifter;c.setG
ranularity(this.shifter_.getGranularity());c.sync(a);c.next(a)&&(b=!0);return b}
; | 1433 cvox.NavigationManager.prototype.hasNext_=function(){if(0<this.shifterStack_.len
gth)return!0;var a=this.curSel_.clone(),b=!1,c=new cvox.NavigationShifter;c.setG
ranularity(this.shifter_.getGranularity());c.sync(a);c.next(a)&&(b=!0);return b}
; |
1432 cvox.NavigationManager.prototype.findNext=function(a,b,c){this.predicate_=b||"";
this.resolve();this.shifter_=this.shifterStack_[0]||this.shifter_;this.shifterSt
ack_=[];a=cvox.FindUtil.findNext(this.curSel_,a,c);this.ignoreIframesNoMatterWha
t_||this.tryIframe_(a&&a.start.node);a&&this.updateSelToArbitraryNode(a.start.no
de);this.predicate_="";return a};cvox.NavigationManager.prototype.sync=function(
){this.resolve();var a=this.shifter_.sync(this.curSel_);a&&(this.curSel_=a)}; | 1434 cvox.NavigationManager.prototype.findNext=function(a,b,c){this.predicate_=b||"";
this.resolve();this.shifter_=this.shifterStack_[0]||this.shifter_;this.shifterSt
ack_=[];a=cvox.FindUtil.findNext(this.curSel_,a,c);this.ignoreIframesNoMatterWha
t_||this.tryIframe_(a&&a.start.node);a&&this.updateSelToArbitraryNode(a.start.no
de);this.predicate_="";return a};cvox.NavigationManager.prototype.sync=function(
){this.resolve();var a=this.shifter_.sync(this.curSel_);a&&(this.curSel_=a)}; |
1433 cvox.NavigationManager.prototype.syncAll=function(a){this.sync();this.setFocus(a
);this.updateIndicator()};cvox.NavigationManager.prototype.clearPageSel=function
(a){var b=!!this.pageSel_;b&&a&&(a=cvox.ChromeVox.msgs.getMsg("clear_page_select
ion"),cvox.ChromeVox.tts.speak(a,cvox.AbstractTts.QUEUE_MODE_FLUSH,cvox.Abstract
Tts.PERSONALITY_ANNOTATION));this.pageSel_=null;return b}; | 1435 cvox.NavigationManager.prototype.syncAll=function(a){this.sync();this.setFocus(a
);this.updateIndicator()};cvox.NavigationManager.prototype.clearPageSel=function
(a){var b=!!this.pageSel_;b&&a&&(a=cvox.ChromeVox.msgs.getMsg("clear_page_select
ion"),cvox.ChromeVox.tts.speak(a,cvox.AbstractTts.QUEUE_MODE_FLUSH,cvox.Abstract
Tts.PERSONALITY_ANNOTATION));this.pageSel_=null;return b}; |
1434 cvox.NavigationManager.prototype.togglePageSel=function(){this.pageSel_=this.pag
eSel_?null:new cvox.PageSelection(this.curSel_.setReversed(!1));return!!this.pag
eSel_}; | 1436 cvox.NavigationManager.prototype.togglePageSel=function(){this.pageSel_=this.pag
eSel_?null:new cvox.PageSelection(this.curSel_.setReversed(!1));return!!this.pag
eSel_}; |
1435 cvox.NavigationManager.prototype.getDescription=function(){if(this.getCurrentNod
e().hasAttribute&&this.getCurrentNode().hasAttribute("cvoxnodedesc")){for(var a=
cvox.ChromeVoxJSON.parse(this.getCurrentNode().getAttribute("cvoxnodedesc")),b=[
],c=0;c<a.length;++c){var d=a[c];b.push(new cvox.NavDescription({context:d.conte
xt,text:d.text,userValue:d.userValue,annotation:d.annotation}))}return b}var e=t
his.pageSel_?this.pageSel_.getDescription(this.shifter_,this.prevSel_,this.curSe
l_):this.shifter_.getDescription(this.prevSel_, | 1437 cvox.NavigationManager.prototype.getDescription=function(){if(this.getCurrentNod
e().hasAttribute&&this.getCurrentNode().hasAttribute("cvoxnodedesc")){for(var a=
cvox.ChromeVoxJSON.parse(this.getCurrentNode().getAttribute("cvoxnodedesc")),b=[
],c=0;c<a.length;++c){var d=a[c];b.push(new cvox.NavDescription({context:d.conte
xt,text:d.text,userValue:d.userValue,annotation:d.annotation}))}return b}var e=t
his.pageSel_?this.pageSel_.getDescription(this.shifter_,this.prevSel_,this.curSe
l_):this.shifter_.getDescription(this.prevSel_, |
1436 this.curSel_),a=[];this.skipped_&&(a.push(cvox.AbstractEarcons.PARAGRAPH_BREAK),
this.skipped_=!1);this.recovered_&&(a.push(cvox.AbstractEarcons.FONT_CHANGE),thi
s.recovered_=!1);this.pageEnd_&&(a.push(cvox.AbstractEarcons.WRAP),this.pageEnd_
=!1);this.enteredShifter_&&(a.push(cvox.AbstractEarcons.OBJECT_ENTER),this.enter
edShifter_=!1);this.exitedShifter_&&(a.push(cvox.AbstractEarcons.OBJECT_EXIT),th
is.exitedShifter_=!1);0<a.length&&0<e.length&&a.forEach(function(a){e[0].pushEar
con(a)});return e}; | 1438 this.curSel_),a=[];this.skipped_&&(a.push(cvox.AbstractEarcons.PARAGRAPH_BREAK),
this.skipped_=!1);this.recovered_&&(a.push(cvox.AbstractEarcons.FONT_CHANGE),thi
s.recovered_=!1);this.pageEnd_&&(a.push(cvox.AbstractEarcons.WRAP),this.pageEnd_
=!1);this.enteredShifter_&&(a.push(cvox.AbstractEarcons.OBJECT_ENTER),this.enter
edShifter_=!1);this.exitedShifter_&&(a.push(cvox.AbstractEarcons.OBJECT_EXIT),th
is.exitedShifter_=!1);0<a.length&&0<e.length&&a.forEach(function(a){e[0].pushEar
con(a)});return e}; |
1437 cvox.NavigationManager.prototype.getBraille=function(){return cvox.PlatformUtil.
matchesPlatform(cvox.PlatformFilter.ANDROID|cvox.PlatformFilter.CHROMEOS)?this.s
hifter_.getBraille(this.prevSel_,this.curSel_):new cvox.NavBraille({})}; | 1439 cvox.NavigationManager.prototype.getBraille=function(){return this.shifter_.getB
raille(this.prevSel_,this.curSel_)}; |
1438 cvox.NavigationManager.prototype.performAction=function(a){switch(a){case "enter
Shifter":case "enterShifterSilently":for(var b=this.shifterTypes_.length-1,c;c=t
his.shifterTypes_[b];b--)if((c=c.create(this.curSel_))&&c.getName()!=this.shifte
r_.getName()){this.shifterStack_.push(this.shifter_);this.shifter_=c;this.sync()
;this.enteredShifter_="enterShifterSilently"!=a;break}else if(c&&this.shifter_.g
etName()==c.getName())break;break;case "exitShifter":if(0==this.shifterStack_.le
ngth)return!1;this.shifter_= | 1440 cvox.NavigationManager.prototype.performAction=function(a){switch(a){case "enter
Shifter":case "enterShifterSilently":for(var b=this.shifterTypes_.length-1,c;c=t
his.shifterTypes_[b];b--)if((c=c.create(this.curSel_))&&c.getName()!=this.shifte
r_.getName()){this.shifterStack_.push(this.shifter_);this.shifter_=c;this.sync()
;this.enteredShifter_="enterShifterSilently"!=a;break}else if(c&&this.shifter_.g
etName()==c.getName())break;break;case "exitShifter":if(0==this.shifterStack_.le
ngth)return!1;this.shifter_= |
1439 this.shifterStack_.pop();this.sync();this.exitedShifter_=!0;break;case "exitShif
terContent":if(0==this.shifterStack_.length)return!1;this.updateSel(this.shifter
_.performAction(a,this.curSel_));this.shifter_=this.shifterStack_.pop()||this.sh
ifter_;this.sync();this.exitedShifter_=!0;break;default:return this.shifter_.has
Action(a)?this.updateSel(this.shifter_.performAction(a,this.curSel_)):!1}return!
0};cvox.NavigationManager.prototype.getGranularityMsg=function(){return this.shi
fter_.getGranularityMsg()}; | 1441 this.shifterStack_.pop();this.sync();this.exitedShifter_=!0;break;case "exitShif
terContent":if(0==this.shifterStack_.length)return!1;this.updateSel(this.shifter
_.performAction(a,this.curSel_));this.shifter_=this.shifterStack_.pop()||this.sh
ifter_;this.sync();this.exitedShifter_=!0;break;default:return this.shifter_.has
Action(a)?this.updateSel(this.shifter_.performAction(a,this.curSel_)):!1}return!
0};cvox.NavigationManager.prototype.getGranularityMsg=function(){return this.shi
fter_.getGranularityMsg()}; |
1440 cvox.NavigationManager.prototype.makeMoreGranular=function(a){this.shifter_.make
MoreGranular();this.sync();this.persistGranularity_(a)};cvox.NavigationManager.p
rototype.makeLessGranular=function(a){this.shifter_.makeLessGranular();this.sync
();this.persistGranularity_(a)};cvox.NavigationManager.prototype.setGranularity=
function(a,b,c){!b&&0<this.shifterStack_.length||(this.shifter_=this.shifterStac
k_.shift()||this.shifter_,this.shifter_.setGranularity(a),this.persistGranularit
y_(c))}; | 1442 cvox.NavigationManager.prototype.makeMoreGranular=function(a){this.shifter_.make
MoreGranular();this.sync();this.persistGranularity_(a)};cvox.NavigationManager.p
rototype.makeLessGranular=function(a){this.shifter_.makeLessGranular();this.sync
();this.persistGranularity_(a)};cvox.NavigationManager.prototype.setGranularity=
function(a,b,c){!b&&0<this.shifterStack_.length||(this.shifter_=this.shifterStac
k_.shift()||this.shifter_,this.shifter_.setGranularity(a),this.persistGranularit
y_(c))}; |
1441 cvox.NavigationManager.prototype.getGranularity=function(){var a=this.shifterSta
ck_[0]||this.shifter_;return a.getGranularity()};cvox.NavigationManager.prototyp
e.ensureSubnavigating=function(){this.shifter_.isSubnavigating()||(this.shifter_
.ensureSubnavigating(),this.sync())};cvox.NavigationManager.prototype.ensureNotS
ubnavigating=function(){this.shifter_.isSubnavigating()&&(this.shifter_.ensureNo
tSubnavigating(),this.sync())}; | 1443 cvox.NavigationManager.prototype.getGranularity=function(){var a=this.shifterSta
ck_[0]||this.shifter_;return a.getGranularity()};cvox.NavigationManager.prototyp
e.ensureSubnavigating=function(){this.shifter_.isSubnavigating()||(this.shifter_
.ensureSubnavigating(),this.sync())};cvox.NavigationManager.prototype.ensureNotS
ubnavigating=function(){this.shifter_.isSubnavigating()&&(this.shifter_.ensureNo
tSubnavigating(),this.sync())}; |
1442 cvox.NavigationManager.prototype.speakDescriptionArray=function(a,b,c,d){d&&a.ev
ery(function(a){a.personality||(a.personality=d)});this.navSpeaker_.speakDescrip
tionArray(a,b,c)};cvox.NavigationManager.prototype.updatePosition=function(a){va
r b=cvox.ChromeVox.position;b[document.location.href]=cvox.DomUtil.elementToPoin
t(a);cvox.ChromeVox.host.sendToBackgroundPage({target:"Prefs",action:"setPref",p
ref:"position",value:JSON.stringify(b)})}; | 1444 cvox.NavigationManager.prototype.speakDescriptionArray=function(a,b,c,d){d&&a.ev
ery(function(a){a.personality||(a.personality=d)});this.navSpeaker_.speakDescrip
tionArray(a,b,c)};cvox.NavigationManager.prototype.updatePosition=function(a){va
r b=cvox.ChromeVox.position;b[document.location.href]=cvox.DomUtil.elementToPoin
t(a);cvox.ChromeVox.host.sendToBackgroundPage({target:"Prefs",action:"setPref",p
ref:"position",value:JSON.stringify(b)})}; |
1443 cvox.NavigationManager.prototype.finishNavCommand=function(a,b,c,d){if(this.page
End_&&!this.pageEndAnnounced_)this.pageEndAnnounced_=!0,cvox.ChromeVox.tts.stop(
),cvox.ChromeVox.earcons.playEarcon(cvox.AbstractEarcons.WRAP),cvox.ChromeVox.ve
rbosity===cvox.VERBOSITY_VERBOSE&&(a=cvox.ChromeVox.msgs.getMsg("wrapped_to_top"
),this.isReversed()&&(a=cvox.ChromeVox.msgs.getMsg("wrapped_to_bottom")),cvox.Ch
romeVox.tts.speak(a,cvox.AbstractTts.QUEUE_MODE_QUEUE,cvox.AbstractTts.PERSONALI
TY_ANNOTATION));else{if(this.enteredShifter_|| | 1445 cvox.NavigationManager.prototype.finishNavCommand=function(a,b,c,d){if(this.page
End_&&!this.pageEndAnnounced_)this.pageEndAnnounced_=!0,cvox.ChromeVox.tts.stop(
),cvox.ChromeVox.earcons.playEarcon(cvox.AbstractEarcons.WRAP),cvox.ChromeVox.ve
rbosity===cvox.VERBOSITY_VERBOSE&&(a=cvox.ChromeVox.msgs.getMsg("wrapped_to_top"
),this.isReversed()&&(a=cvox.ChromeVox.msgs.getMsg("wrapped_to_bottom")),cvox.Ch
romeVox.tts.speak(a,cvox.AbstractTts.QUEUE_MODE_QUEUE,cvox.AbstractTts.PERSONALI
TY_ANNOTATION));else{if(this.enteredShifter_|| |
1444 this.exitedShifter_)a=cvox.ChromeVox.msgs.getMsg("enter_content_say",[this.shift
er_.getName()]);var e=cvox.ChromeVox.navigationManager.getDescription();(b=void
0===b?!0:b)&&this.setFocus();this.updateIndicator();b=c||cvox.AbstractTts.QUEUE_
MODE_FLUSH;a&&(cvox.ChromeVox.tts.speak(a,b,cvox.AbstractTts.PERSONALITY_ANNOTAT
ION),b=cvox.AbstractTts.QUEUE_MODE_QUEUE);this.speakDescriptionArray(e,b,d||null
);this.getBraille().write();this.updatePosition(this.getCurrentNode())}}; | 1446 this.exitedShifter_)a=cvox.ChromeVox.msgs.getMsg("enter_content_say",[this.shift
er_.getName()]);var e=cvox.ChromeVox.navigationManager.getDescription();(b=void
0===b?!0:b)&&this.setFocus();this.updateIndicator();b=c||cvox.AbstractTts.QUEUE_
MODE_FLUSH;a&&(cvox.ChromeVox.tts.speak(a,b,cvox.AbstractTts.PERSONALITY_ANNOTAT
ION),b=cvox.AbstractTts.QUEUE_MODE_QUEUE);this.speakDescriptionArray(e,b,d||null
);this.getBraille().write();this.updatePosition(this.getCurrentNode())}}; |
1445 cvox.NavigationManager.prototype.navigate=function(a,b){this.pageEndAnnounced_=!
1;if(this.pageEnd_)return this.pageEnd_=!1,this.syncToBeginning(a),!0;if(!this.r
esolve())return!1;this.ensureNotSubnavigating();void 0!==b&&(b!==this.getGranula
rity()||0<this.shifterStack_.length)&&(this.setGranularity(b,!0),this.sync());re
turn this.next_(!a)};cvox.NavigationManager.prototype.subnavigate=function(){thi
s.pageEndAnnounced_=!1;this.resolve()&&(this.ensureSubnavigating(),this.next_(!0
))}; | 1447 cvox.NavigationManager.prototype.navigate=function(a,b){this.pageEndAnnounced_=!
1;if(this.pageEnd_)return this.pageEnd_=!1,this.syncToBeginning(a),!0;if(!this.r
esolve())return!1;this.ensureNotSubnavigating();void 0!==b&&(b!==this.getGranula
rity()||0<this.shifterStack_.length)&&(this.setGranularity(b,!0),this.sync());re
turn this.next_(!a)};cvox.NavigationManager.prototype.subnavigate=function(){thi
s.pageEndAnnounced_=!1;this.resolve()&&(this.ensureSubnavigating(),this.next_(!0
))}; |
1446 cvox.NavigationManager.prototype.skip=function(){if(!this.keepReading_)return!1;
cvox.ChromeVox.host.hasTtsCallback()&&(this.skipped_=!0,this.setReversed(!1),thi
s.startCallbackReading_(cvox.AbstractTts.QUEUE_MODE_FLUSH));return!0}; | 1448 cvox.NavigationManager.prototype.skip=function(){if(!this.keepReading_)return!1;
cvox.ChromeVox.host.hasTtsCallback()&&(this.skipped_=!0,this.setReversed(!1),thi
s.startCallbackReading_(cvox.AbstractTts.QUEUE_MODE_FLUSH));return!0}; |
1447 cvox.NavigationManager.prototype.startReading=function(a){this.keepReading_=!0;c
vox.ChromeVox.host.hasTtsCallback()?this.startCallbackReading_(a):this.startNonC
allbackReading_(a);this.prevStickyState_=cvox.ChromeVox.isStickyOn;cvox.ChromeVo
x.host.sendToBackgroundPage({target:"Prefs",action:"setPref",pref:"sticky",value
:!0,announce:!1})}; | 1449 cvox.NavigationManager.prototype.startReading=function(a){this.keepReading_=!0;c
vox.ChromeVox.host.hasTtsCallback()?this.startCallbackReading_(a):this.startNonC
allbackReading_(a);this.prevStickyState_=cvox.ChromeVox.isStickyOn;cvox.ChromeVo
x.host.sendToBackgroundPage({target:"Prefs",action:"setPref",pref:"sticky",value
:!0,announce:!1})}; |
(...skipping 18 matching lines...) Expand all Loading... |
1466 else return cvox.SearchWidget.superClass_.onKeyDown.call(this,a);a.preventDefaul
t();a.stopPropagation();return!0};cvox.SearchWidget.prototype.onKeyPress=functio
n(a){if(!this.isActive())return!1;this.txtNode_.value+=String.fromCharCode(a.cha
rCode);var b=this.txtNode_.value;this.beginSearch_(b);a.preventDefault();a.stopP
ropagation();return!0};cvox.SearchWidget.prototype.onNavigate=function(){};cvox.
SearchWidget.prototype.getPredicate=function(){return null}; | 1468 else return cvox.SearchWidget.superClass_.onKeyDown.call(this,a);a.preventDefaul
t();a.stopPropagation();return!0};cvox.SearchWidget.prototype.onKeyPress=functio
n(a){if(!this.isActive())return!1;this.txtNode_.value+=String.fromCharCode(a.cha
rCode);var b=this.txtNode_.value;this.beginSearch_(b);a.preventDefault();a.stopP
ropagation();return!0};cvox.SearchWidget.prototype.onNavigate=function(){};cvox.
SearchWidget.prototype.getPredicate=function(){return null}; |
1467 cvox.SearchWidget.prototype.createContainerNode_=function(){var a=document.creat
eElement("div");a.id="cvox-search";a.style.position="fixed";a.style.top="50%";a.
style.left="50%";a.style["-webkit-transition"]="all 0.3s ease-in";a.style.opacit
y="0.0";a.style["z-index"]="2147483647";a.setAttribute("aria-hidden","true");ret
urn a}; | 1469 cvox.SearchWidget.prototype.createContainerNode_=function(){var a=document.creat
eElement("div");a.id="cvox-search";a.style.position="fixed";a.style.top="50%";a.
style.left="50%";a.style["-webkit-transition"]="all 0.3s ease-in";a.style.opacit
y="0.0";a.style["z-index"]="2147483647";a.setAttribute("aria-hidden","true");ret
urn a}; |
1468 cvox.SearchWidget.prototype.createOverlayNode_=function(){var a=document.createE
lement("div");a.style.position="relative";a.style.left="-50%";a.style.top="-40px
";a.style["line-height"]="1.2em";a.style["font-size"]="20px";a.style.padding="30
px";a.style["min-width"]="150px";a.style.color="#fff";a.style["background-color"
]="rgba(0, 0, 0, 0.7)";a.style["border-radius"]="10px";return a}; | 1470 cvox.SearchWidget.prototype.createOverlayNode_=function(){var a=document.createE
lement("div");a.style.position="relative";a.style.left="-50%";a.style.top="-40px
";a.style["line-height"]="1.2em";a.style["font-size"]="20px";a.style.padding="30
px";a.style["min-width"]="150px";a.style.color="#fff";a.style["background-color"
]="rgba(0, 0, 0, 0.7)";a.style["border-radius"]="10px";return a}; |
1469 cvox.SearchWidget.prototype.createTextAreaNode_=function(){var a=document.create
Element("textarea");a.setAttribute("aria-hidden","true");a.setAttribute("rows","
1");a.style.color="#fff";a.style["background-color"]="rgba(0, 0, 0, 0.7)";a.styl
e["vertical-align"]="middle";a.addEventListener("textInput",this.handleSearchCha
nged_,!1);return a}; | 1471 cvox.SearchWidget.prototype.createTextAreaNode_=function(){var a=document.create
Element("textarea");a.setAttribute("aria-hidden","true");a.setAttribute("rows","
1");a.style.color="#fff";a.style["background-color"]="rgba(0, 0, 0, 0.7)";a.styl
e["vertical-align"]="middle";a.addEventListener("textInput",this.handleSearchCha
nged_,!1);return a}; |
1470 cvox.SearchWidget.prototype.toggleCaseSensitivity_=function(){this.caseSensitive
_?(cvox.SearchWidget.caseSensitive_=!1,cvox.ChromeVox.tts.speak("Ignoring case."
,0,null)):(this.caseSensitive_=!0,cvox.ChromeVox.tts.speak("Case sensitive.",0,n
ull))}; | 1472 cvox.SearchWidget.prototype.toggleCaseSensitivity_=function(){this.caseSensitive
_?(cvox.SearchWidget.caseSensitive_=!1,cvox.ChromeVox.tts.speak("Ignoring case."
,0,null)):(this.caseSensitive_=!0,cvox.ChromeVox.tts.speak("Case sensitive.",0,n
ull))}; |
1471 cvox.SearchWidget.prototype.getNextResult_=function(a){var b=cvox.ChromeVox.navi
gationManager.isReversed();this.caseSensitive_||(a=a.toLowerCase());cvox.ChromeV
ox.navigationManager.setGranularity(cvox.NavigationShifter.GRANULARITIES.OBJECT,
!0,!1);do{if(this.getPredicate()){var c=this.getPredicate()(cvox.DomUtil.getAnce
stors(cvox.ChromeVox.navigationManager.getCurrentNode()));if(!c)continue}for(var
c=cvox.ChromeVox.navigationManager.getDescription(),d=0;d<c.length;d++){var e=t
his.caseSensitive_?c[d].text: | 1473 cvox.SearchWidget.prototype.getNextResult_=function(a){var b=cvox.ChromeVox.navi
gationManager.isReversed();this.caseSensitive_||(a=a.toLowerCase());cvox.ChromeV
ox.navigationManager.setGranularity(cvox.NavigationShifter.GRANULARITIES.OBJECT,
!0,!1);do{if(this.getPredicate()){var c=this.getPredicate()(cvox.DomUtil.getAnce
stors(cvox.ChromeVox.navigationManager.getCurrentNode()));if(!c)continue}for(var
c=cvox.ChromeVox.navigationManager.getDescription(),d=0;d<c.length;d++){var e=t
his.caseSensitive_?c[d].text: |
1472 c[d].text.toLowerCase(),f=e.indexOf(a);-1!=f&&e.length>a.length&&(c[d].text=cvox
.DomUtil.collapseWhitespace(e.substring(0,f))+", "+a+", "+e.substring(f+a.length
),c[d].text=cvox.DomUtil.collapseWhitespace(c[d].text));if(-1!=f)return c}cvox.C
hromeVox.navigationManager.setReversed(b)}while(cvox.ChromeVox.navigationManager
.navigate(!0,cvox.NavigationShifter.GRANULARITIES.OBJECT))};cvox.SearchWidget.pr
ototype.beginSearch_=function(a){var b=this.getNextResult_(a);this.outputSearchR
esult_(b,a);this.onNavigate()}; | 1474 c[d].text.toLowerCase(),f=e.indexOf(a);-1!=f&&e.length>a.length&&(c[d].text=cvox
.DomUtil.collapseWhitespace(e.substring(0,f))+", "+a+", "+e.substring(f+a.length
),c[d].text=cvox.DomUtil.collapseWhitespace(c[d].text));if(-1!=f)return c}cvox.C
hromeVox.navigationManager.setReversed(b)}while(cvox.ChromeVox.navigationManager
.navigate(!0,cvox.NavigationShifter.GRANULARITIES.OBJECT))};cvox.SearchWidget.pr
ototype.beginSearch_=function(a){var b=this.getNextResult_(a);this.outputSearchR
esult_(b,a);this.onNavigate()}; |
1473 cvox.SearchWidget.prototype.next_=function(a,b){cvox.ChromeVox.navigationManager
.setReversed(!!b);var c=!1;this.getPredicate()?(c=cvox.ChromeVox.navigationManag
er.findNext(this.getPredicate()),cvox.ChromeVox.navigationManager.setReversed(!!
b),c||(cvox.ChromeVox.navigationManager.syncToBeginning(),cvox.ChromeVox.earcons
.playEarcon(cvox.AbstractEarcons.WRAP),c=!0)):c=cvox.ChromeVox.navigationManager
.navigate(!0);c=c?this.getNextResult_(a):null;this.outputSearchResult_(c,a);this
.onNavigate();return c}; | 1475 cvox.SearchWidget.prototype.next_=function(a,b){cvox.ChromeVox.navigationManager
.setReversed(!!b);var c=!1;this.getPredicate()?(c=cvox.ChromeVox.navigationManag
er.findNext(this.getPredicate()),cvox.ChromeVox.navigationManager.setReversed(!!
b),c||(cvox.ChromeVox.navigationManager.syncToBeginning(),cvox.ChromeVox.earcons
.playEarcon(cvox.AbstractEarcons.WRAP),c=!0)):c=cvox.ChromeVox.navigationManager
.navigate(!0);c=c?this.getNextResult_(a):null;this.outputSearchResult_(c,a);this
.onNavigate();return c}; |
1474 cvox.SearchWidget.prototype.outputSearchResult_=function(a,b){cvox.ChromeVox.tts
.stop();a?(this.hasMatch_=!0,cvox.ChromeVoxEventSuspender.withSuspendedEvents(go
og.bind(cvox.ChromeVox.navigationManager.syncAll,cvox.ChromeVox.navigationManage
r))(!0),cvox.ChromeVox.navigationManager.speakDescriptionArray(a,cvox.AbstractTt
s.QUEUE_MODE_FLUSH,null,cvox.AbstractTts.PERSONALITY_ANNOUNCEMENT),cvox.ChromeVo
x.tts.speak(cvox.ChromeVox.msgs.getMsg("search_help_item"),cvox.AbstractTts.QUEU
E_MODE_QUEUE,cvox.AbstractTts.PERSONALITY_ANNOTATION), | 1476 cvox.SearchWidget.prototype.outputSearchResult_=function(a,b){cvox.ChromeVox.tts
.stop();a?(this.hasMatch_=!0,cvox.ChromeVoxEventSuspender.withSuspendedEvents(go
og.bind(cvox.ChromeVox.navigationManager.syncAll,cvox.ChromeVox.navigationManage
r))(!0),cvox.ChromeVox.navigationManager.speakDescriptionArray(a,cvox.AbstractTt
s.QUEUE_MODE_FLUSH,null,cvox.AbstractTts.PERSONALITY_ANNOUNCEMENT),cvox.ChromeVo
x.tts.speak(cvox.ChromeVox.msgs.getMsg("search_help_item"),cvox.AbstractTts.QUEU
E_MODE_QUEUE,cvox.AbstractTts.PERSONALITY_ANNOTATION), |
1475 this.outputSearchResultToBraille_(b)):(cvox.ChromeVox.earcons.playEarcon(cvox.Ab
stractEarcons.WRAP),this.hasMatch_=!1)}; | 1477 this.outputSearchResultToBraille_(b)):(cvox.ChromeVox.earcons.playEarcon(cvox.Ab
stractEarcons.WRAP),this.hasMatch_=!1)}; |
1476 cvox.SearchWidget.prototype.outputSearchResultToBraille_=function(a){if(cvox.Chr
omeVox.braille){var b=this.textFromCurrentDescription_(),c=this.caseSensitive_?b
:b.toLowerCase();a=this.caseSensitive_?a:a.toLowerCase();c=c.indexOf(a);if(-1==c
)console.log("Search string not in result when preparing for Braille.");else{var
d=b.length,b=cvox.ChromeVox.msgs.getMsg("mark_as_search_result_brl",[b]),e=b.le
ngth,c=c+(e-d);cvox.ChromeVox.braille.write(new cvox.NavBraille({text:b,startInd
ex:c+a.length,endIndex:c+ | 1478 cvox.SearchWidget.prototype.outputSearchResultToBraille_=function(a){var b=this.
textFromCurrentDescription_(),c=this.caseSensitive_?b:b.toLowerCase();a=this.cas
eSensitive_?a:a.toLowerCase();c=c.indexOf(a);if(-1==c)console.log("Search string
not in result when preparing for Braille.");else{var d=b.length,b=cvox.ChromeVo
x.msgs.getMsg("mark_as_search_result_brl",[b]),e=b.length,c=c+(e-d);cvox.ChromeV
ox.braille.write(new cvox.NavBraille({text:b,startIndex:c+a.length,endIndex:c+a.
length}))}}; |
1477 a.length}))}}};cvox.SearchWidget.prototype.textFromCurrentDescription_=function(
){for(var a=cvox.ChromeVox.navigationManager.getDescription(),b="",c=0;c<a.lengt
h;c++)b+=a[c].text+" ";return b};cvox.SearchWidget.prototype.handleSearchChanged
_=function(a){a=a.target.value+a.data;cvox.SearchWidget.prototype.beginSearch_(a
)};cvox.OverlayWidget=function(a){cvox.SearchWidget.call(this);this.snippet_=a};
goog.inherits(cvox.OverlayWidget,cvox.SearchWidget); | 1479 cvox.SearchWidget.prototype.textFromCurrentDescription_=function(){for(var a=cvo
x.ChromeVox.navigationManager.getDescription(),b="",c=0;c<a.length;c++)b+=a[c].t
ext+" ";return b};cvox.SearchWidget.prototype.handleSearchChanged_=function(a){a
=a.target.value+a.data;cvox.SearchWidget.prototype.beginSearch_(a)};cvox.Overlay
Widget=function(a){cvox.SearchWidget.call(this);this.snippet_=a};goog.inherits(c
vox.OverlayWidget,cvox.SearchWidget); |
1478 cvox.OverlayWidget.prototype.show=function(){cvox.OverlayWidget.superClass_.show
.call(this);var a=document.createElement("DIV");a.innerHTML=this.snippet_;var b=
cvox.DomUtil.elementToPoint(cvox.ChromeVox.navigationManager.getCurrentNode());a
.style.position="absolute";a.style.left=b.x;a.style.top=b.y;document.body.append
Child(a);cvox.ChromeVox.navigationManager.updateSelToArbitraryNode(a);this.host_
=a};cvox.OverlayWidget.prototype.hide=function(){this.host_.remove();cvox.Overla
yWidget.superClass_.hide.call(this)}; | 1480 cvox.OverlayWidget.prototype.show=function(){cvox.OverlayWidget.superClass_.show
.call(this);var a=document.createElement("DIV");a.innerHTML=this.snippet_;var b=
cvox.DomUtil.elementToPoint(cvox.ChromeVox.navigationManager.getCurrentNode());a
.style.position="absolute";a.style.left=b.x;a.style.top=b.y;document.body.append
Child(a);cvox.ChromeVox.navigationManager.updateSelToArbitraryNode(a);this.host_
=a};cvox.OverlayWidget.prototype.hide=function(){this.host_.remove();cvox.Overla
yWidget.superClass_.hide.call(this)}; |
1479 cvox.OverlayWidget.prototype.onKeyDown=function(a){cvox.OverlayWidget.superClass
_.onKeyDown.call(this,a);if(13==a.keyCode||27==a.keyCode)return!0;a=cvox.ChromeV
ox.navigationManager.isReversed();cvox.DomUtil.isDescendantOfNode(cvox.ChromeVox
.navigationManager.getCurrentNode(),this.host_)||(a?cvox.ChromeVox.navigationMan
ager.syncToBeginning():cvox.ChromeVox.navigationManager.updateSelToArbitraryNode
(this.host_),this.onNavigate(),cvox.ChromeVox.navigationManager.speakDescription
Array(cvox.ChromeVox.navigationManager.getDescription(), | 1481 cvox.OverlayWidget.prototype.onKeyDown=function(a){cvox.OverlayWidget.superClass
_.onKeyDown.call(this,a);if(13==a.keyCode||27==a.keyCode)return!0;a=cvox.ChromeV
ox.navigationManager.isReversed();cvox.DomUtil.isDescendantOfNode(cvox.ChromeVox
.navigationManager.getCurrentNode(),this.host_)||(a?cvox.ChromeVox.navigationMan
ager.syncToBeginning():cvox.ChromeVox.navigationManager.updateSelToArbitraryNode
(this.host_),this.onNavigate(),cvox.ChromeVox.navigationManager.speakDescription
Array(cvox.ChromeVox.navigationManager.getDescription(), |
1480 0,null))};cvox.KeyboardHelpWidget=function(){cvox.OverlayWidget.call(this,"");th
is.container_=document.createElement("div");var a=cvox.ChromeVoxKbHandler.handle
rKeyMap;a.bindings().forEach(goog.bind(function(a){var c=a.command;a=a.sequence;
var d=c;try{var e=cvox.CommandStore.messageForCommand(c);if(!e)return;d=cvox.Chr
omeVox.msgs.getMsg(e)}catch(f){}e=document.createElement("p");e.id=c;e.setAttrib
ute("role","menuitem");e.textContent=d+" - "+cvox.KeyUtil.keySequenceToString(a,
!0);this.container_.appendChild(e)}, | 1482 0,null))};cvox.KeyboardHelpWidget=function(){cvox.OverlayWidget.call(this,"");th
is.container_=document.createElement("div");var a=cvox.ChromeVoxKbHandler.handle
rKeyMap;a.bindings().forEach(goog.bind(function(a){var c=a.command;a=a.sequence;
var d=c;try{var e=cvox.CommandStore.messageForCommand(c);if(!e)return;d=cvox.Chr
omeVox.msgs.getMsg(e)}catch(f){}e=document.createElement("p");e.id=c;e.setAttrib
ute("role","menuitem");e.textContent=d+" - "+cvox.KeyUtil.keySequenceToString(a,
!0);this.container_.appendChild(e)}, |
1481 this))};goog.inherits(cvox.KeyboardHelpWidget,cvox.OverlayWidget);goog.addSingle
tonGetter(cvox.KeyboardHelpWidget);cvox.KeyboardHelpWidget.prototype.show=functi
on(){cvox.KeyboardHelpWidget.superClass_.show.call(this);this.host_.appendChild(
this.container_)};cvox.KeyboardHelpWidget.prototype.getNameMsg=function(){return
["keyboard_help_intro"]}; | 1483 this))};goog.inherits(cvox.KeyboardHelpWidget,cvox.OverlayWidget);goog.addSingle
tonGetter(cvox.KeyboardHelpWidget);cvox.KeyboardHelpWidget.prototype.show=functi
on(){cvox.KeyboardHelpWidget.superClass_.show.call(this);this.host_.appendChild(
this.container_)};cvox.KeyboardHelpWidget.prototype.getNameMsg=function(){return
["keyboard_help_intro"]}; |
1482 cvox.KeyboardHelpWidget.prototype.onKeyDown=function(a){if(13==a.keyCode){var b=
cvox.ChromeVox.navigationManager.getCurrentNode().parentNode.id;this.hide();cvox
.ChromeVoxEventSuspender.withSuspendedEvents(cvox.ChromeVoxUserCommands.commands
[b])();a.preventDefault();a.stopPropagation();return!0}return cvox.KeyboardHelpW
idget.superClass_.onKeyDown.call(this,a)};cvox.UserEventDetail=function(a){this.
command=this.category="";-1!=cvox.UserEventDetail.JUMP_COMMANDS.indexOf(a.comman
d)&&(this.command=a.command,this.category=cvox.UserEventDetail.Category.JUMP);th
is.customCommand="";a.customCommand&&(this.customCommand=a.customCommand,this.ca
tegory=cvox.UserEventDetail.Category.CUSTOM);this.status=cvox.UserEventDetail.St
atus.PENDING;switch(a.status){case cvox.UserEventDetail.Status.SUCCESS:this.stat
us=cvox.UserEventDetail.Status.SUCCESS;break;case cvox.UserEventDetail.Status.FA
ILURE:this.status= | 1484 cvox.KeyboardHelpWidget.prototype.onKeyDown=function(a){if(13==a.keyCode){var b=
cvox.ChromeVox.navigationManager.getCurrentNode().parentNode.id;this.hide();cvox
.ChromeVoxEventSuspender.withSuspendedEvents(cvox.ChromeVoxUserCommands.commands
[b])();a.preventDefault();a.stopPropagation();return!0}return cvox.KeyboardHelpW
idget.superClass_.onKeyDown.call(this,a)};cvox.UserEventDetail=function(a){this.
command=this.category="";-1!=cvox.UserEventDetail.JUMP_COMMANDS.indexOf(a.comman
d)&&(this.command=a.command,this.category=cvox.UserEventDetail.Category.JUMP);th
is.customCommand="";a.customCommand&&(this.customCommand=a.customCommand,this.ca
tegory=cvox.UserEventDetail.Category.CUSTOM);this.status=cvox.UserEventDetail.St
atus.PENDING;switch(a.status){case cvox.UserEventDetail.Status.SUCCESS:this.stat
us=cvox.UserEventDetail.Status.SUCCESS;break;case cvox.UserEventDetail.Status.FA
ILURE:this.status= |
1483 cvox.UserEventDetail.Status.FAILURE}this.resultNode=null;a.resultNode&&cvox.DomU
til.isAttachedToDocument(a.resultNode)&&(this.resultNode=a.resultNode)};cvox.Use
rEventDetail.Category={JUMP:"ATJumpEvent",CUSTOM:"ATCustomEvent"};cvox.UserEvent
Detail.Status={PENDING:"PENDING",SUCCESS:"SUCCESS",FAILURE:"FAILURE"};cvox.UserE
ventDetail.JUMP_COMMANDS="nextCheckbox previousCheckbox nextRadio previousRadio
nextSlider previousSlider nextGraphic previousGraphic nextButton previousButton
nextComboBox previousComboBox nextEditText previousEditText nextHeading previous
Heading nextHeading1 previousHeading1 nextHeading2 previousHeading2 nextHeading3
previousHeading3 nextHeading4 previousHeading4 nextHeading5 previousHeading5 ne
xtHeading6 previousHeading6 nextLink previousLink nextMath previousMath nextTabl
e previousTable nextList previousList nextListItem previousListItem nextFormFiel
d previousFormField nextLandmark previousLandmark nextSection previousSection ne
xtControl previousControl".split(" "); | 1485 cvox.UserEventDetail.Status.FAILURE}this.resultNode=null;a.resultNode&&cvox.DomU
til.isAttachedToDocument(a.resultNode)&&(this.resultNode=a.resultNode)};cvox.Use
rEventDetail.Category={JUMP:"ATJumpEvent",CUSTOM:"ATCustomEvent"};cvox.UserEvent
Detail.Status={PENDING:"PENDING",SUCCESS:"SUCCESS",FAILURE:"FAILURE"};cvox.UserE
ventDetail.JUMP_COMMANDS="nextCheckbox previousCheckbox nextRadio previousRadio
nextSlider previousSlider nextGraphic previousGraphic nextButton previousButton
nextComboBox previousComboBox nextEditText previousEditText nextHeading previous
Heading nextHeading1 previousHeading1 nextHeading2 previousHeading2 nextHeading3
previousHeading3 nextHeading4 previousHeading4 nextHeading5 previousHeading5 ne
xtHeading6 previousHeading6 nextLink previousLink nextMath previousMath nextTabl
e previousTable nextList previousList nextListItem previousListItem nextFormFiel
d previousFormField nextLandmark previousLandmark nextSection previousSection ne
xtControl previousControl".split(" "); |
1484 cvox.UserEventDetail.prototype.createEventObject=function(){var a=document.creat
eEvent("CustomEvent");a.initCustomEvent(this.category,!0,!0,this);return a};var
extractMenuList_=function(a){for(;a!==document;){var b=a.getAttribute("contextMe
nuActions");if(b)return JSON.parse(b);a=a.parentNode}return null},getCurrentElem
ent_=function(){for(var a=cvox.ChromeVox.navigationManager.getCurrentNode();a.no
deType!==Node.ELEMENT_NODE;)a=a.parentNode;return a}; | 1486 cvox.UserEventDetail.prototype.createEventObject=function(){var a=document.creat
eEvent("CustomEvent");a.initCustomEvent(this.category,!0,!0,this);return a};var
extractMenuList_=function(a){for(;a!==document;){var b=a.getAttribute("contextMe
nuActions");if(b)return JSON.parse(b);a=a.parentNode}return null},getCurrentElem
ent_=function(){for(var a=cvox.ChromeVox.navigationManager.getCurrentNode();a.no
deType!==Node.ELEMENT_NODE;)a=a.parentNode;return a}; |
1485 cvox.ContextMenuWidget=function(){cvox.OverlayWidget.call(this,"");this.containe
r_=document.createElement("div");this.triggerElement_=getCurrentElement_();(this
.menuList=extractMenuList_(this.triggerElement_))?this.menuList.forEach(goog.bin
d(function(a){if(a.desc||a.cmd){var b=a.desc;a=a.cmd;var c=document.createElemen
t("p");c.id=a;c.textContent=b;c.setAttribute("role","menuitem");this.container_.
appendChild(c)}},this)):console.log("No context menu found.")};goog.inherits(cvo
x.ContextMenuWidget,cvox.OverlayWidget); | 1487 cvox.ContextMenuWidget=function(){cvox.OverlayWidget.call(this,"");this.containe
r_=document.createElement("div");this.triggerElement_=getCurrentElement_();(this
.menuList=extractMenuList_(this.triggerElement_))?this.menuList.forEach(goog.bin
d(function(a){if(a.desc||a.cmd){var b=a.desc;a=a.cmd;var c=document.createElemen
t("p");c.id=a;c.textContent=b;c.setAttribute("role","menuitem");this.container_.
appendChild(c)}},this)):console.log("No context menu found.")};goog.inherits(cvo
x.ContextMenuWidget,cvox.OverlayWidget); |
1486 cvox.ContextMenuWidget.prototype.show=function(){this.menuList&&(cvox.ContextMen
uWidget.superClass_.show.call(this),this.host_.appendChild(this.container_))};cv
ox.ContextMenuWidget.prototype.getNameMsg=function(){return["context_menu_intro"
]}; | 1488 cvox.ContextMenuWidget.prototype.show=function(){this.menuList&&(cvox.ContextMen
uWidget.superClass_.show.call(this),this.host_.appendChild(this.container_))};cv
ox.ContextMenuWidget.prototype.getNameMsg=function(){return["context_menu_intro"
]}; |
1487 cvox.ContextMenuWidget.prototype.onKeyDown=function(a){if(13==a.keyCode){var b=c
vox.ChromeVox.navigationManager.getCurrentNode(),b=b.parentNode.id,b=new cvox.Us
erEventDetail({customCommand:b}),b=b.createEventObject();this.triggerElement_.di
spatchEvent(b);this.hide();a.preventDefault();a.stopPropagation();return!0}retur
n cvox.ContextMenuWidget.superClass_.onKeyDown.call(this,a)};cvox.NodeSearchWidg
et=function(a,b){this.typeMsg_=a;this.predicate_=b;cvox.SearchWidget.call(this)}
;goog.inherits(cvox.NodeSearchWidget,cvox.SearchWidget);cvox.NodeSearchWidget.pr
ototype.getNameMsg=function(){return["choice_widget_name",[cvox.ChromeVox.msgs.g
etMsg(this.typeMsg_)]]};cvox.NodeSearchWidget.prototype.getHelpMsg=function(){re
turn"choice_widget_help"};cvox.NodeSearchWidget.prototype.getPredicate=function(
){return this.predicate_}; | 1489 cvox.ContextMenuWidget.prototype.onKeyDown=function(a){if(13==a.keyCode){var b=c
vox.ChromeVox.navigationManager.getCurrentNode(),b=b.parentNode.id,b=new cvox.Us
erEventDetail({customCommand:b}),b=b.createEventObject();this.triggerElement_.di
spatchEvent(b);this.hide();a.preventDefault();a.stopPropagation();return!0}retur
n cvox.ContextMenuWidget.superClass_.onKeyDown.call(this,a)};cvox.NodeSearchWidg
et=function(a,b){this.typeMsg_=a;this.predicate_=b;cvox.SearchWidget.call(this)}
;goog.inherits(cvox.NodeSearchWidget,cvox.SearchWidget);cvox.NodeSearchWidget.pr
ototype.getNameMsg=function(){return["choice_widget_name",[cvox.ChromeVox.msgs.g
etMsg(this.typeMsg_)]]};cvox.NodeSearchWidget.prototype.getHelpMsg=function(){re
turn"choice_widget_help"};cvox.NodeSearchWidget.prototype.getPredicate=function(
){return this.predicate_}; |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1545 5))}; | 1547 5))}; |
1546 cvox.ChromeVoxEventWatcher.addEventListeners_=function(a){cvox.ChromeVoxEventWat
cher.addEventListener_(a,"keydown",cvox.ChromeVoxEventWatcher.keyDownEventWatche
r,!0);if(cvox.ChromeVox.isActive&&!cvox.ChromeVox.entireDocumentIsHidden)if(cvox
.ChromeVoxEventWatcher.addEventListener_(a,"keypress",cvox.ChromeVoxEventWatcher
.keyPressEventWatcher,!0),cvox.ChromeVoxEventWatcher.addEventListener_(a,"keyup"
,cvox.ChromeVoxEventWatcher.keyUpEventWatcher,!0),cvox.ChromeVoxEventWatcher.add
EventListener_(a,cvox.UserEventDetail.Category.JUMP, | 1548 cvox.ChromeVoxEventWatcher.addEventListeners_=function(a){cvox.ChromeVoxEventWat
cher.addEventListener_(a,"keydown",cvox.ChromeVoxEventWatcher.keyDownEventWatche
r,!0);if(cvox.ChromeVox.isActive&&!cvox.ChromeVox.entireDocumentIsHidden)if(cvox
.ChromeVoxEventWatcher.addEventListener_(a,"keypress",cvox.ChromeVoxEventWatcher
.keyPressEventWatcher,!0),cvox.ChromeVoxEventWatcher.addEventListener_(a,"keyup"
,cvox.ChromeVoxEventWatcher.keyUpEventWatcher,!0),cvox.ChromeVoxEventWatcher.add
EventListener_(a,cvox.UserEventDetail.Category.JUMP, |
1547 cvox.ChromeVoxUserCommands.handleChromeVoxUserEvent,!1),cvox.ChromeVoxEventWatch
er.addEventListener_(a,"focus",cvox.ChromeVoxEventWatcher.focusEventWatcher,!0),
cvox.ChromeVoxEventWatcher.addEventListener_(a,"blur",cvox.ChromeVoxEventWatcher
.blurEventWatcher,!0),cvox.ChromeVoxEventWatcher.addEventListener_(a,"change",cv
ox.ChromeVoxEventWatcher.changeEventWatcher,!0),cvox.ChromeVoxEventWatcher.addEv
entListener_(a,"copy",cvox.ChromeVoxEventWatcher.clipboardEventWatcher,!0),cvox.
ChromeVoxEventWatcher.addEventListener_(a, | 1549 cvox.ChromeVoxUserCommands.handleChromeVoxUserEvent,!1),cvox.ChromeVoxEventWatch
er.addEventListener_(a,"focus",cvox.ChromeVoxEventWatcher.focusEventWatcher,!0),
cvox.ChromeVoxEventWatcher.addEventListener_(a,"blur",cvox.ChromeVoxEventWatcher
.blurEventWatcher,!0),cvox.ChromeVoxEventWatcher.addEventListener_(a,"change",cv
ox.ChromeVoxEventWatcher.changeEventWatcher,!0),cvox.ChromeVoxEventWatcher.addEv
entListener_(a,"copy",cvox.ChromeVoxEventWatcher.clipboardEventWatcher,!0),cvox.
ChromeVoxEventWatcher.addEventListener_(a, |
1548 "cut",cvox.ChromeVoxEventWatcher.clipboardEventWatcher,!0),cvox.ChromeVoxEventWa
tcher.addEventListener_(a,"paste",cvox.ChromeVoxEventWatcher.clipboardEventWatch
er,!0),cvox.ChromeVoxEventWatcher.addEventListener_(a,"select",cvox.ChromeVoxEve
ntWatcher.selectEventWatcher,!0),cvox.ChromeVoxEventWatcher.addEventListener_(a,
"webkitvisibilitychange",cvox.ChromeVoxEventWatcher.visibilityChangeWatcher,!0),
cvox.ChromeVoxEventWatcher.events_=[],cvox.ChromeVoxEventWatcher.queueProcessing
Scheduled_=!1,cvox.ChromeVoxEventWatcher.addEventListener_(a, | 1550 "cut",cvox.ChromeVoxEventWatcher.clipboardEventWatcher,!0),cvox.ChromeVoxEventWa
tcher.addEventListener_(a,"paste",cvox.ChromeVoxEventWatcher.clipboardEventWatch
er,!0),cvox.ChromeVoxEventWatcher.addEventListener_(a,"select",cvox.ChromeVoxEve
ntWatcher.selectEventWatcher,!0),cvox.ChromeVoxEventWatcher.addEventListener_(a,
"webkitvisibilitychange",cvox.ChromeVoxEventWatcher.visibilityChangeWatcher,!0),
cvox.ChromeVoxEventWatcher.events_=[],cvox.ChromeVoxEventWatcher.queueProcessing
Scheduled_=!1,cvox.ChromeVoxEventWatcher.addEventListener_(a, |
1549 "mouseover",cvox.ChromeVoxEventWatcher.mouseOverEventWatcher,!0),cvox.ChromeVoxE
ventWatcher.addEventListener_(a,"mouseout",cvox.ChromeVoxEventWatcher.mouseOutEv
entWatcher,!0),cvox.ChromeVoxEventWatcher.addEventListener_(a,"click",cvox.Chrom
eVoxEventWatcher.mouseClickEventWatcher,!0),"undefined"!=typeof WebKitMutationOb
server){cvox.ChromeVoxEventWatcher.mutationObserver_=new WebKitMutationObserver(
cvox.ChromeVoxEventWatcher.mutationHandler);var b=null;a.documentElement?b=a.doc
umentElement:a.document&& | 1551 "mouseover",cvox.ChromeVoxEventWatcher.mouseOverEventWatcher,!0),cvox.ChromeVoxE
ventWatcher.addEventListener_(a,"mouseout",cvox.ChromeVoxEventWatcher.mouseOutEv
entWatcher,!0),cvox.ChromeVoxEventWatcher.addEventListener_(a,"click",cvox.Chrom
eVoxEventWatcher.mouseClickEventWatcher,!0),"undefined"!=typeof WebKitMutationOb
server){cvox.ChromeVoxEventWatcher.mutationObserver_=new WebKitMutationObserver(
cvox.ChromeVoxEventWatcher.mutationHandler);var b=null;a.documentElement?b=a.doc
umentElement:a.document&& |
1550 a.document.documentElement&&(b=a.document.documentElement);b&&cvox.ChromeVoxEven
tWatcher.mutationObserver_.observe(b,{childList:!0,attributes:!0,characterData:!
0,subtree:!0,attributeOldValue:!0,characterDataOldValue:!0})}else cvox.ChromeVox
EventWatcher.addEventListener_(a,"DOMSubtreeModified",cvox.ChromeVoxEventWatcher
.subtreeModifiedEventWatcher,!0)}; | 1552 a.document.documentElement&&(b=a.document.documentElement);b&&cvox.ChromeVoxEven
tWatcher.mutationObserver_.observe(b,{childList:!0,attributes:!0,characterData:!
0,subtree:!0,attributeOldValue:!0,characterDataOldValue:!0})}else cvox.ChromeVox
EventWatcher.addEventListener_(a,"DOMSubtreeModified",cvox.ChromeVoxEventWatcher
.subtreeModifiedEventWatcher,!0)}; |
1551 cvox.ChromeVoxEventWatcher.cleanup=function(a){for(var b=0;b<cvox.ChromeVoxEvent
Watcher.listeners_.length;b++){var c=cvox.ChromeVoxEventWatcher.listeners_[b];a.
removeEventListener(c.type,c.listener,c.useCapture)}cvox.ChromeVoxEventWatcher.l
isteners_=[];cvox.ChromeVoxEventWatcher.currentDateHandler&&cvox.ChromeVoxEventW
atcher.currentDateHandler.shutdown();cvox.ChromeVoxEventWatcher.currentTimeHandl
er&&cvox.ChromeVoxEventWatcher.currentTimeHandler.shutdown();cvox.ChromeVoxEvent
Watcher.currentMediaHandler&& | 1553 cvox.ChromeVoxEventWatcher.cleanup=function(a){for(var b=0;b<cvox.ChromeVoxEvent
Watcher.listeners_.length;b++){var c=cvox.ChromeVoxEventWatcher.listeners_[b];a.
removeEventListener(c.type,c.listener,c.useCapture)}cvox.ChromeVoxEventWatcher.l
isteners_=[];cvox.ChromeVoxEventWatcher.currentDateHandler&&cvox.ChromeVoxEventW
atcher.currentDateHandler.shutdown();cvox.ChromeVoxEventWatcher.currentTimeHandl
er&&cvox.ChromeVoxEventWatcher.currentTimeHandler.shutdown();cvox.ChromeVoxEvent
Watcher.currentMediaHandler&& |
1552 cvox.ChromeVoxEventWatcher.currentMediaHandler.shutdown();cvox.ChromeVoxEventWat
cher.mutationObserver_&&cvox.ChromeVoxEventWatcher.mutationObserver_.disconnect(
);cvox.ChromeVoxEventWatcher.mutationObserver_=null};cvox.ChromeVoxEventWatcher.
addEventListener_=function(a,b,c,d){cvox.ChromeVoxEventWatcher.listeners_.push({
type:b,listener:c,useCapture:d});a.addEventListener(b,c,d)};cvox.ChromeVoxEventW
atcher.getLastFocusedNode=function(){return cvox.ChromeVoxEventWatcher.lastFocus
edNode}; | 1554 cvox.ChromeVoxEventWatcher.currentMediaHandler.shutdown();cvox.ChromeVoxEventWat
cher.mutationObserver_&&cvox.ChromeVoxEventWatcher.mutationObserver_.disconnect(
);cvox.ChromeVoxEventWatcher.mutationObserver_=null};cvox.ChromeVoxEventWatcher.
addEventListener_=function(a,b,c,d){cvox.ChromeVoxEventWatcher.listeners_.push({
type:b,listener:c,useCapture:d});a.addEventListener(b,c,d)};cvox.ChromeVoxEventW
atcher.getLastFocusedNode=function(){return cvox.ChromeVoxEventWatcher.lastFocus
edNode}; |
1553 cvox.ChromeVoxEventWatcher.setLastFocusedNode_=function(a){cvox.ChromeVoxEventWa
tcher.lastFocusedNode=a;cvox.ChromeVoxEventWatcher.lastFocusedNodeValue=a?cvox.D
omUtil.getControlValueAndStateString(a):null}; | 1555 cvox.ChromeVoxEventWatcher.setLastFocusedNode_=function(a){cvox.ChromeVoxEventWa
tcher.lastFocusedNode=a;cvox.ChromeVoxEventWatcher.lastFocusedNodeValue=a?cvox.D
omUtil.getControlValueAndStateString(a):null}; |
1554 cvox.ChromeVoxEventWatcher.mutationHandler=function(a){if(cvox.ChromeVoxEventSus
pender.areEventsSuspended())return!0;cvox.ChromeVox.navigationManager.updateIndi
catorIfChanged();cvox.LiveRegions.processMutations(a,function(a,c){var d=new win
dow.Event("LiveRegion");d.navDescriptions=c;d.assertive=a;cvox.ChromeVoxEventWat
cher.addEvent(d);return!0})}; | 1556 cvox.ChromeVoxEventWatcher.mutationHandler=function(a){if(cvox.ChromeVoxEventSus
pender.areEventsSuspended())return!0;cvox.ChromeVox.navigationManager.updateIndi
catorIfChanged();cvox.LiveRegions.processMutations(a,function(a,c){var d=new win
dow.Event("LiveRegion");d.navDescriptions=c;d.assertive=a;cvox.ChromeVoxEventWat
cher.addEvent(d);return!0})}; |
1555 cvox.ChromeVoxEventWatcher.mouseClickEventWatcher=function(a){cvox.PlatformUtil.
matchesPlatform(cvox.PlatformFilter.WML)&&!a.fromCvox&&cvox.ApiImplementation.sy
ncToNode(a.target,!0);return cvox.ChromeVox.host.mustRedispatchClickEvent()&&!a.
fromCvox?(cvox.ChromeVoxUserCommands.wasMouseClicked=!0,a.stopPropagation(),a.pr
eventDefault(),cvox.Focuser.setFocus(cvox.ChromeVox.navigationManager.getCurrent
Node()),cvox.ChromeVox.tts.speak(cvox.ChromeVox.msgs.getMsg("element_clicked"),c
vox.AbstractTts.QUEUE_MODE_FLUSH, | 1557 cvox.ChromeVoxEventWatcher.mouseClickEventWatcher=function(a){if(a.fromCvox)retu
rn!0;if(cvox.ChromeVox.host.mustRedispatchClickEvent())return cvox.ChromeVoxUser
Commands.wasMouseClicked=!0,a.stopPropagation(),a.preventDefault(),cvox.Focuser.
setFocus(cvox.ChromeVox.navigationManager.getCurrentNode()),cvox.ChromeVox.tts.s
peak(cvox.ChromeVox.msgs.getMsg("element_clicked"),cvox.AbstractTts.QUEUE_MODE_F
LUSH,cvox.AbstractTts.PERSONALITY_ANNOTATION),a=cvox.ChromeVox.navigationManager
.getCurrentNode(),cvox.DomUtil.clickElem(a, |
1556 cvox.AbstractTts.PERSONALITY_ANNOTATION),a=cvox.ChromeVox.navigationManager.getC
urrentNode(),cvox.DomUtil.clickElem(a,!1,!0),!1):cvox.ChromeVoxUserCommands.wasM
ouseClicked=!0}; | 1558 !1,!0),!1;cvox.ChromeVoxEventWatcher.addEvent(a);return cvox.ChromeVoxUserComman
ds.wasMouseClicked=!0}; |
1557 cvox.ChromeVoxEventWatcher.mouseOverEventWatcher=function(a){if(!cvox.ChromeVoxE
ventWatcher.focusFollowsMouse||cvox.DomUtil.isDescendantOfNode(cvox.ChromeVoxEve
ntWatcher.announcedMouseOverNode,a.target)||a.target==cvox.ChromeVoxEventWatcher
.pendingMouseOverNode)return!0;cvox.ChromeVoxEventWatcher.pendingMouseOverNode=a
.target;cvox.ChromeVoxEventWatcher.mouseOverTimeoutId&&(window.clearTimeout(cvox
.ChromeVoxEventWatcher.mouseOverTimeoutId),cvox.ChromeVoxEventWatcher.mouseOverT
imeoutId=null);if(a.target.tagName&& | 1559 cvox.ChromeVoxEventWatcher.mouseOverEventWatcher=function(a){if(!cvox.ChromeVoxE
ventWatcher.focusFollowsMouse||cvox.DomUtil.isDescendantOfNode(cvox.ChromeVoxEve
ntWatcher.announcedMouseOverNode,a.target)||a.target==cvox.ChromeVoxEventWatcher
.pendingMouseOverNode)return!0;cvox.ChromeVoxEventWatcher.pendingMouseOverNode=a
.target;cvox.ChromeVoxEventWatcher.mouseOverTimeoutId&&(window.clearTimeout(cvox
.ChromeVoxEventWatcher.mouseOverTimeoutId),cvox.ChromeVoxEventWatcher.mouseOverT
imeoutId=null);if(a.target.tagName&& |
1558 "BODY"==a.target.tagName)return cvox.ChromeVoxEventWatcher.pendingMouseOverNode=
null,cvox.ChromeVoxEventWatcher.announcedMouseOverNode=null,!0;cvox.ChromeVoxEve
ntWatcher.mouseOverTimeoutId=window.setTimeout(function(){cvox.ChromeVoxEventWat
cher.mouseOverTimeoutId=null;if(a.target==cvox.ChromeVoxEventWatcher.pendingMous
eOverNode){cvox.ChromeVox.navigationManager.stopReading(!0);var b=a.target;cvox.
Focuser.setFocus(b);cvox.ApiImplementation.syncToNode(b,!0,cvox.AbstractTts.QUEU
E_MODE_FLUSH);cvox.ChromeVoxEventWatcher.announcedMouseOverNode= | 1560 "BODY"==a.target.tagName)return cvox.ChromeVoxEventWatcher.pendingMouseOverNode=
null,cvox.ChromeVoxEventWatcher.announcedMouseOverNode=null,!0;cvox.ChromeVoxEve
ntWatcher.mouseOverTimeoutId=window.setTimeout(function(){cvox.ChromeVoxEventWat
cher.mouseOverTimeoutId=null;if(a.target==cvox.ChromeVoxEventWatcher.pendingMous
eOverNode){cvox.ChromeVox.navigationManager.stopReading(!0);var b=a.target;cvox.
Focuser.setFocus(b);cvox.ApiImplementation.syncToNode(b,!0,cvox.AbstractTts.QUEU
E_MODE_FLUSH);cvox.ChromeVoxEventWatcher.announcedMouseOverNode= |
1559 b}},cvox.ChromeVoxEventWatcher.mouseoverDelayMs);return!0};cvox.ChromeVoxEventWa
tcher.mouseOutEventWatcher=function(a){a.target==cvox.ChromeVoxEventWatcher.pend
ingMouseOverNode&&(cvox.ChromeVoxEventWatcher.pendingMouseOverNode=null,cvox.Chr
omeVoxEventWatcher.mouseOverTimeoutId&&(window.clearTimeout(cvox.ChromeVoxEventW
atcher.mouseOverTimeoutId),cvox.ChromeVoxEventWatcher.mouseOverTimeoutId=null));
return!0}; | 1561 b}},cvox.ChromeVoxEventWatcher.mouseoverDelayMs);return!0};cvox.ChromeVoxEventWa
tcher.mouseOutEventWatcher=function(a){a.target==cvox.ChromeVoxEventWatcher.pend
ingMouseOverNode&&(cvox.ChromeVoxEventWatcher.pendingMouseOverNode=null,cvox.Chr
omeVoxEventWatcher.mouseOverTimeoutId&&(window.clearTimeout(cvox.ChromeVoxEventW
atcher.mouseOverTimeoutId),cvox.ChromeVoxEventWatcher.mouseOverTimeoutId=null));
return!0}; |
1560 cvox.ChromeVoxEventWatcher.focusEventWatcher=function(a){cvox.ChromeVoxUserComma
nds.removeTabDummySpan();cvox.ChromeVoxEventSuspender.areEventsSuspended()?a.tar
get&&a.target.nodeType==Node.ELEMENT_NODE&&cvox.ChromeVoxEventWatcher.setLastFoc
usedNode_(a.target):cvox.ChromeVoxEventWatcher.addEvent(a);return!0}; | 1562 cvox.ChromeVoxEventWatcher.focusEventWatcher=function(a){cvox.ChromeVoxUserComma
nds.removeTabDummySpan();cvox.ChromeVoxEventSuspender.areEventsSuspended()?a.tar
get&&a.target.nodeType==Node.ELEMENT_NODE&&cvox.ChromeVoxEventWatcher.setLastFoc
usedNode_(a.target):cvox.ChromeVoxEventWatcher.addEvent(a);return!0}; |
1561 cvox.ChromeVoxEventWatcher.focusHandler=function(a){if(a.target&&a.target.hasAtt
ribute&&"true"==a.target.getAttribute("aria-hidden")&&"true"!=a.target.getAttrib
ute("chromevoxignoreariahidden"))cvox.ChromeVoxEventWatcher.setLastFocusedNode_(
null),cvox.ChromeVoxEventWatcher.setUpTextHandler();else if(a.target&&a.target!=
window){var b=a.target,c=cvox.DomUtil.getSurroundingControl(b);if(c&&c==cvox.Chr
omeVoxEventWatcher.lastFocusedNode)cvox.ChromeVoxEventWatcher.handleControlChang
ed(b);else{c?cvox.ChromeVoxEventWatcher.setLastFocusedNode_(c): | 1563 cvox.ChromeVoxEventWatcher.focusHandler=function(a){if(a.target&&a.target.hasAtt
ribute&&"true"==a.target.getAttribute("aria-hidden")&&"true"!=a.target.getAttrib
ute("chromevoxignoreariahidden"))cvox.ChromeVoxEventWatcher.setLastFocusedNode_(
null),cvox.ChromeVoxEventWatcher.setUpTextHandler();else if(a.target&&a.target!=
window){var b=a.target,c=cvox.DomUtil.getSurroundingControl(b);if(c&&c==cvox.Chr
omeVoxEventWatcher.lastFocusedNode)cvox.ChromeVoxEventWatcher.handleControlChang
ed(b);else{c?cvox.ChromeVoxEventWatcher.setLastFocusedNode_(c): |
1562 cvox.ChromeVoxEventWatcher.setLastFocusedNode_(b);c=cvox.ChromeVoxEventWatcher.q
ueueMode_();if(cvox.ChromeVoxEventWatcher.getInitialVisibility()||cvox.ChromeVox
EventWatcher.handleDialogFocus(b))c=cvox.AbstractTts.QUEUE_MODE_QUEUE;cvox.Chrom
eVox.navigationManager.clearPageSel(!0)&&(c=cvox.AbstractTts.QUEUE_MODE_QUEUE);c
vox.ApiImplementation.syncToNode(b,!document.webkitHidden,c);if(a.target.constru
ctor==HTMLVideoElement||a.target.constructor==HTMLAudioElement)cvox.ChromeVoxEve
ntWatcher.setUpMediaHandler_(); | 1564 cvox.ChromeVoxEventWatcher.setLastFocusedNode_(b);c=cvox.ChromeVoxEventWatcher.q
ueueMode_();if(cvox.ChromeVoxEventWatcher.getInitialVisibility()||cvox.ChromeVox
EventWatcher.handleDialogFocus(b))c=cvox.AbstractTts.QUEUE_MODE_QUEUE;cvox.Chrom
eVox.navigationManager.clearPageSel(!0)&&(c=cvox.AbstractTts.QUEUE_MODE_QUEUE);c
vox.ApiImplementation.syncToNode(b,!document.webkitHidden,c);if(a.target.constru
ctor==HTMLVideoElement||a.target.constructor==HTMLAudioElement)cvox.ChromeVoxEve
ntWatcher.setUpMediaHandler_(); |
1563 else{if(a.target.hasAttribute)switch(a=a.target.getAttribute("type"),a){case "ti
me":cvox.ChromeVoxEventWatcher.setUpTimeHandler_();return;case "date":case "mont
h":case "week":cvox.ChromeVoxEventWatcher.setUpDateHandler_();return}cvox.Chrome
VoxEventWatcher.setUpTextHandler()}}}else cvox.ChromeVoxEventWatcher.setLastFocu
sedNode_(null)}; | 1565 else{if(a.target.hasAttribute)switch(a=a.target.getAttribute("type"),a){case "ti
me":cvox.ChromeVoxEventWatcher.setUpTimeHandler_();return;case "date":case "mont
h":case "week":cvox.ChromeVoxEventWatcher.setUpDateHandler_();return}cvox.Chrome
VoxEventWatcher.setUpTextHandler()}}}else cvox.ChromeVoxEventWatcher.setLastFocu
sedNode_(null)}; |
1564 cvox.ChromeVoxEventWatcher.blurEventWatcher=function(a){window.setTimeout(functi
on(){document.activeElement||(cvox.ChromeVoxEventWatcher.setLastFocusedNode_(nul
l),cvox.ChromeVoxEventWatcher.addEvent(a))},0);return!0}; | 1566 cvox.ChromeVoxEventWatcher.blurEventWatcher=function(a){window.setTimeout(functi
on(){document.activeElement||(cvox.ChromeVoxEventWatcher.setLastFocusedNode_(nul
l),cvox.ChromeVoxEventWatcher.addEvent(a))},0);return!0}; |
1565 cvox.ChromeVoxEventWatcher.keyDownEventWatcher=function(a){if(cvox.ChromeVox.pas
sThroughMode)return!0;cvox.ChromeVox.isChromeOS&&91==a.keyCode&&(cvox.ChromeVox.
searchKeyHeld=!0);a.searchKeyHeld=cvox.ChromeVox.searchKeyHeld&&cvox.ChromeVox.i
sActive;a.stickyMode=cvox.ChromeVox.isStickyOn&&cvox.ChromeVox.isActive;a.keyPre
fix=cvox.ChromeVox.keyPrefixOn&&cvox.ChromeVox.isActive;cvox.ChromeVox.keyPrefix
On=!1;cvox.ChromeVoxEventWatcher.eventToEat=null;if(!cvox.ChromeVoxKbHandler.bas
icKeyDownActionsListener(a)|| | 1567 cvox.ChromeVoxEventWatcher.keyDownEventWatcher=function(a){if(cvox.ChromeVox.pas
sThroughMode)return!0;cvox.ChromeVox.isChromeOS&&91==a.keyCode&&(cvox.ChromeVox.
searchKeyHeld=!0);a.searchKeyHeld=cvox.ChromeVox.searchKeyHeld&&cvox.ChromeVox.i
sActive;a.stickyMode=cvox.ChromeVox.isStickyOn&&cvox.ChromeVox.isActive;a.keyPre
fix=cvox.ChromeVox.keyPrefixOn&&cvox.ChromeVox.isActive;cvox.ChromeVox.keyPrefix
On=!1;cvox.ChromeVoxEventWatcher.eventToEat=null;if(!cvox.ChromeVoxKbHandler.bas
icKeyDownActionsListener(a)|| |
1566 cvox.ChromeVoxEventWatcher.handleControlAction(a))return a.preventDefault(),a.st
opPropagation(),cvox.ChromeVoxEventWatcher.eventToEat=a,!1;cvox.ChromeVoxEventWa
tcher.addEvent(a);return!0}; | 1568 cvox.ChromeVoxEventWatcher.handleControlAction(a))return a.preventDefault(),a.st
opPropagation(),cvox.ChromeVoxEventWatcher.eventToEat=a,!1;cvox.ChromeVoxEventWa
tcher.addEvent(a);return!0}; |
(...skipping 16 matching lines...) Expand all Loading... |
1583 !0,a.checked?cvox.ChromeVox.earcons.playEarcon(cvox.AbstractEarcons.CHECK_ON):cv
ox.ChromeVox.earcons.playEarcon(cvox.AbstractEarcons.CHECK_OFF);"SELECT"==a.tagN
ame&&(d=!0);if("INPUT"==a.tagName)switch(a.type){case "color":case "datetime":ca
se "datetime-local":case "range":d=!0}a.hasAttribute&&a.hasAttribute("role")&&(d
=!0);c&&c!=a&&document.activeElement==a?(cvox.ApiImplementation.syncToNode(a,!0,
cvox.AbstractTts.QUEUE_MODE_FLUSH),d=!1):cvox.AriaUtil.getActiveDescendant(a)&&(
cvox.ChromeVox.navigationManager.updateSelToArbitraryNode(cvox.AriaUtil.getActiv
eDescendant(a), | 1585 !0,a.checked?cvox.ChromeVox.earcons.playEarcon(cvox.AbstractEarcons.CHECK_ON):cv
ox.ChromeVox.earcons.playEarcon(cvox.AbstractEarcons.CHECK_OFF);"SELECT"==a.tagN
ame&&(d=!0);if("INPUT"==a.tagName)switch(a.type){case "color":case "datetime":ca
se "datetime-local":case "range":d=!0}a.hasAttribute&&a.hasAttribute("role")&&(d
=!0);c&&c!=a&&document.activeElement==a?(cvox.ApiImplementation.syncToNode(a,!0,
cvox.AbstractTts.QUEUE_MODE_FLUSH),d=!1):cvox.AriaUtil.getActiveDescendant(a)&&(
cvox.ChromeVox.navigationManager.updateSelToArbitraryNode(cvox.AriaUtil.getActiv
eDescendant(a), |
1584 !0),d=!0);d&&!cvox.ChromeVoxEventSuspender.areEventsSuspended()&&(cvox.ChromeVox
.tts.speak(b,cvox.ChromeVoxEventWatcher.queueMode_(),null),cvox.NavBraille.fromT
ext(b).write())}; | 1586 !0),d=!0);d&&!cvox.ChromeVoxEventSuspender.areEventsSuspended()&&(cvox.ChromeVox
.tts.speak(b,cvox.ChromeVoxEventWatcher.queueMode_(),null),cvox.NavBraille.fromT
ext(b).write())}; |
1585 cvox.ChromeVoxEventWatcher.handleControlAction=function(a){if(!cvox.ChromeVox.is
Active)return!1;var b=a.target;if("SELECT"==b.tagName&&1>=b.size&&(13==a.keyCode
||32==a.keyCode))return a.preventDefault(),a.stopPropagation(),!0;if("INPUT"==b.
tagName&&"range"==b.type){var c=parseFloat(b.value),d;b.step&&0<b.step?d=b.step:
b.min&&b.max?(d=b.max-b.min,d=2<d&&31>d?1:(b.max-b.min)/10):d=1;if(37==a.keyCode
||38==a.keyCode)c-=d;else if(39==a.keyCode||40==a.keyCode)c+=d;b.max&&c>b.max&&(
c=b.max);b.min&&c<b.min&& | 1587 cvox.ChromeVoxEventWatcher.handleControlAction=function(a){if(!cvox.ChromeVox.is
Active)return!1;var b=a.target;if("SELECT"==b.tagName&&1>=b.size&&(13==a.keyCode
||32==a.keyCode))return a.preventDefault(),a.stopPropagation(),!0;if("INPUT"==b.
tagName&&"range"==b.type){var c=parseFloat(b.value),d;b.step&&0<b.step?d=b.step:
b.min&&b.max?(d=b.max-b.min,d=2<d&&31>d?1:(b.max-b.min)/10):d=1;if(37==a.keyCode
||38==a.keyCode)c-=d;else if(39==a.keyCode||40==a.keyCode)c+=d;b.max&&c>b.max&&(
c=b.max);b.min&&c<b.min&& |
1586 (c=b.min);b.value=c}return!1}; | 1588 (c=b.min);b.value=c}return!1}; |
1587 cvox.ChromeVoxEventWatcher.handleDialogFocus=function(a){for(;a;){if(a.hasAttrib
ute){var b=a.getAttribute("role");if("dialog"==b||"alertdialog"==b)break}a=a.par
entElement}if(a==cvox.ChromeVox.navigationManager.currentDialog)return!1;if(cvox
.ChromeVox.navigationManager.currentDialog&&!a){if(!cvox.DomUtil.isDescendantOfN
ode(document.activeElement,cvox.ChromeVox.navigationManager.currentDialog))retur
n cvox.ChromeVox.navigationManager.currentDialog=null,cvox.ChromeVox.tts.speak(c
vox.ChromeVox.msgs.getMsg("exiting_dialog"),cvox.AbstractTts.QUEUE_MODE_FLUSH, | 1589 cvox.ChromeVoxEventWatcher.handleDialogFocus=function(a){for(;a;){if(a.hasAttrib
ute){var b=a.getAttribute("role");if("dialog"==b||"alertdialog"==b)break}a=a.par
entElement}if(a==cvox.ChromeVox.navigationManager.currentDialog)return!1;if(cvox
.ChromeVox.navigationManager.currentDialog&&!a){if(!cvox.DomUtil.isDescendantOfN
ode(document.activeElement,cvox.ChromeVox.navigationManager.currentDialog))retur
n cvox.ChromeVox.navigationManager.currentDialog=null,cvox.ChromeVox.tts.speak(c
vox.ChromeVox.msgs.getMsg("exiting_dialog"),cvox.AbstractTts.QUEUE_MODE_FLUSH, |
1588 cvox.AbstractTts.PERSONALITY_ANNOTATION),!0}else if(a)return cvox.ChromeVox.navi
gationManager.currentDialog=a,cvox.ChromeVox.tts.speak(cvox.ChromeVox.msgs.getMs
g("entering_dialog"),cvox.AbstractTts.QUEUE_MODE_FLUSH,cvox.AbstractTts.PERSONAL
ITY_ANNOTATION),a=cvox.DescriptionUtil.getFullDescriptionsFromChildren(null,a),b
=new cvox.NavigationSpeaker,b.speakDescriptionArray(a,cvox.AbstractTts.QUEUE_MOD
E_QUEUE,null),!0;return!1}; | 1590 cvox.AbstractTts.PERSONALITY_ANNOTATION),!0}else if(a)return cvox.ChromeVox.navi
gationManager.currentDialog=a,cvox.ChromeVox.tts.speak(cvox.ChromeVox.msgs.getMs
g("entering_dialog"),cvox.AbstractTts.QUEUE_MODE_FLUSH,cvox.AbstractTts.PERSONAL
ITY_ANNOTATION),a=cvox.DescriptionUtil.getFullDescriptionsFromChildren(null,a),b
=new cvox.NavigationSpeaker,b.speakDescriptionArray(a,cvox.AbstractTts.QUEUE_MOD
E_QUEUE,null),!0;return!1}; |
1589 cvox.ChromeVoxEventWatcherUtil.shouldWaitToProcess=function(a,b,c){a=c-a;b=c-b;r
eturn a<cvox.ChromeVoxEventWatcher.WAIT_TIME_MS_&&b<cvox.ChromeVoxEventWatcher.M
AX_WAIT_TIME_MS_};cvox.ChromeVoxEventWatcher.queueMode_=function(){return cvox.C
hromeVoxEventWatcher.processing_?cvox.AbstractTts.QUEUE_MODE_QUEUE:cvox.Abstract
Tts.QUEUE_MODE_FLUSH}; | 1591 cvox.ChromeVoxEventWatcherUtil.shouldWaitToProcess=function(a,b,c){a=c-a;b=c-b;r
eturn a<cvox.ChromeVoxEventWatcher.WAIT_TIME_MS_&&b<cvox.ChromeVoxEventWatcher.M
AX_WAIT_TIME_MS_};cvox.ChromeVoxEventWatcher.queueMode_=function(){return cvox.C
hromeVoxEventWatcher.processing_?cvox.AbstractTts.QUEUE_MODE_QUEUE:cvox.Abstract
Tts.QUEUE_MODE_FLUSH}; |
1590 cvox.ChromeVoxEventWatcher.processQueue_=function(){if(0!=cvox.ChromeVoxEventWat
cher.events_.length){var a=cvox.ChromeVoxEventWatcher.events_,b=-1,c=0,d,e;for(e
=0;d=a[e];e++)"focus"==d.type&&(b=e,c=d.timeStamp);cvox.ChromeVoxEventWatcher.ev
ents_=[];for(e=0;d=a[e];e++){var f=a[e-1]||{};!(e>=b||"LiveRegion"==d.type||"DOM
SubtreeModified"==d.type)||"focus"==f.type&&"change"==d.type||cvox.ChromeVoxEven
tWatcher.events_.push(d)}cvox.ChromeVoxEventWatcher.events_.sort(function(a,b){r
eturn"LiveRegion"!=b.type&& | 1592 cvox.ChromeVoxEventWatcher.processQueue_=function(){if(0!=cvox.ChromeVoxEventWat
cher.events_.length){var a=cvox.ChromeVoxEventWatcher.events_,b=-1,c=0,d,e;for(e
=0;d=a[e];e++)"focus"==d.type&&(b=e,c=d.timeStamp);cvox.ChromeVoxEventWatcher.ev
ents_=[];for(e=0;d=a[e];e++){var f=a[e-1]||{};!(e>=b||"LiveRegion"==d.type||"DOM
SubtreeModified"==d.type)||"focus"==f.type&&"change"==d.type||cvox.ChromeVoxEven
tWatcher.events_.push(d)}cvox.ChromeVoxEventWatcher.events_.sort(function(a,b){r
eturn"LiveRegion"!=b.type&& |
1591 "LiveRegion"==a.type||"DOMSubtreeModified"!=b.type&&"DOMSubtreeModified"==a.type
?1:-1});a=(new Date).getTime();if(0<=b&&cvox.ChromeVoxEventWatcherUtil.shouldWai
tToProcess(c,cvox.ChromeVoxEventWatcher.firstUnprocessedEventTime,a))window.setT
imeout(cvox.ChromeVoxEventWatcher.processQueue_,cvox.ChromeVoxEventWatcher.WAIT_
TIME_MS_);else{for(e=0;d=cvox.ChromeVoxEventWatcher.events_[e];e++)cvox.ChromeVo
xEventWatcher.handleEvent_(d),cvox.ChromeVoxEventWatcher.processing_=!0;cvox.Chr
omeVoxEventWatcher.processing_= | 1593 "LiveRegion"==a.type||"DOMSubtreeModified"!=b.type&&"DOMSubtreeModified"==a.type
?1:-1});a=(new Date).getTime();if(0<=b&&cvox.ChromeVoxEventWatcherUtil.shouldWai
tToProcess(c,cvox.ChromeVoxEventWatcher.firstUnprocessedEventTime,a))window.setT
imeout(cvox.ChromeVoxEventWatcher.processQueue_,cvox.ChromeVoxEventWatcher.WAIT_
TIME_MS_);else{for(e=0;d=cvox.ChromeVoxEventWatcher.events_[e];e++)cvox.ChromeVo
xEventWatcher.handleEvent_(d),cvox.ChromeVoxEventWatcher.processing_=!0;cvox.Chr
omeVoxEventWatcher.processing_= |
1592 !1;cvox.ChromeVoxEventWatcher.events_=[];cvox.ChromeVoxEventWatcher.firstUnproce
ssedEventTime=-1;cvox.ChromeVoxEventWatcher.queueProcessingScheduled_=!1;cvox.Ch
romeVoxEventWatcher.maybeCallReadyCallbacks_()}}}; | 1594 !1;cvox.ChromeVoxEventWatcher.events_=[];cvox.ChromeVoxEventWatcher.firstUnproce
ssedEventTime=-1;cvox.ChromeVoxEventWatcher.queueProcessingScheduled_=!1;cvox.Ch
romeVoxEventWatcher.maybeCallReadyCallbacks_()}}}; |
1593 cvox.ChromeVoxEventWatcher.handleEvent_=function(a){switch(a.type){case "keydown
":cvox.ChromeVoxEventWatcher.setUpTextHandler();if(cvox.ChromeVoxEventWatcher.cu
rrentTextControl&&(cvox.ChromeVoxEventWatcher.handleTextChanged(!0),(a=cvox.Chro
meVoxEventWatcher.currentTextHandler)&&a.lastChangeDescribed))break;cvox.ChromeV
oxEventWatcher.handleControlChanged(document.activeElement);break;case "keypress
":cvox.ChromeVoxEventWatcher.setUpTextHandler();break;case "focus":cvox.ChromeVo
xEventWatcher.focusHandler(a); | 1595 cvox.ChromeVoxEventWatcher.handleEvent_=function(a){switch(a.type){case "keydown
":cvox.ChromeVoxEventWatcher.setUpTextHandler();if(cvox.ChromeVoxEventWatcher.cu
rrentTextControl&&(cvox.ChromeVoxEventWatcher.handleTextChanged(!0),(a=cvox.Chro
meVoxEventWatcher.currentTextHandler)&&a.lastChangeDescribed))break;cvox.ChromeV
oxEventWatcher.handleControlChanged(document.activeElement);break;case "keypress
":cvox.ChromeVoxEventWatcher.setUpTextHandler();break;case "click":cvox.ApiImple
mentation.syncToNode(a.target, |
1594 break;case "blur":cvox.ChromeVoxEventWatcher.setUpTextHandler();break;case "chan
ge":cvox.ChromeVoxEventWatcher.changeHandler(a);break;case "select":cvox.ChromeV
oxEventWatcher.setUpTextHandler();break;case "LiveRegion":cvox.ChromeVoxEventWat
cher.speakLiveRegion_(a.assertive,a.navDescriptions);break;case "DOMSubtreeModif
ied":cvox.ChromeVoxEventWatcher.subtreeModifiedHandler(a)}}; | 1596 !0);break;case "focus":cvox.ChromeVoxEventWatcher.focusHandler(a);break;case "bl
ur":cvox.ChromeVoxEventWatcher.setUpTextHandler();break;case "change":cvox.Chrom
eVoxEventWatcher.changeHandler(a);break;case "select":cvox.ChromeVoxEventWatcher
.setUpTextHandler();break;case "LiveRegion":cvox.ChromeVoxEventWatcher.speakLive
Region_(a.assertive,a.navDescriptions);break;case "DOMSubtreeModified":cvox.Chro
meVoxEventWatcher.subtreeModifiedHandler(a)}}; |
1595 cvox.ChromeVoxEventWatcher.setUpTimeHandler_=function(){var a=document.activeEle
ment;a&&a.hasAttribute&&"true"==a.getAttribute("aria-hidden")&&"true"!=a.getAttr
ibute("chromevoxignoreariahidden")&&(a=null);cvox.ChromeVoxEventWatcher.currentT
imeHandler=a.constructor==HTMLInputElement&&a.type&&"time"==a.type?new cvox.Chro
meVoxHTMLTimeWidget(a,cvox.ChromeVox.tts):null;return null!=cvox.ChromeVoxEventW
atcher.currentTimeHandler}; | 1597 cvox.ChromeVoxEventWatcher.setUpTimeHandler_=function(){var a=document.activeEle
ment;a&&a.hasAttribute&&"true"==a.getAttribute("aria-hidden")&&"true"!=a.getAttr
ibute("chromevoxignoreariahidden")&&(a=null);cvox.ChromeVoxEventWatcher.currentT
imeHandler=a.constructor==HTMLInputElement&&a.type&&"time"==a.type?new cvox.Chro
meVoxHTMLTimeWidget(a,cvox.ChromeVox.tts):null;return null!=cvox.ChromeVoxEventW
atcher.currentTimeHandler}; |
1596 cvox.ChromeVoxEventWatcher.setUpMediaHandler_=function(){var a=document.activeEl
ement;a&&a.hasAttribute&&"true"==a.getAttribute("aria-hidden")&&"true"!=a.getAtt
ribute("chromevoxignoreariahidden")&&(a=null);cvox.ChromeVoxEventWatcher.current
MediaHandler=a.constructor==HTMLVideoElement||a.constructor==HTMLAudioElement?ne
w cvox.ChromeVoxHTMLMediaWidget(a,cvox.ChromeVox.tts):null;return null!=cvox.Chr
omeVoxEventWatcher.currentMediaHandler}; | 1598 cvox.ChromeVoxEventWatcher.setUpMediaHandler_=function(){var a=document.activeEl
ement;a&&a.hasAttribute&&"true"==a.getAttribute("aria-hidden")&&"true"!=a.getAtt
ribute("chromevoxignoreariahidden")&&(a=null);cvox.ChromeVoxEventWatcher.current
MediaHandler=a.constructor==HTMLVideoElement||a.constructor==HTMLAudioElement?ne
w cvox.ChromeVoxHTMLMediaWidget(a,cvox.ChromeVox.tts):null;return null!=cvox.Chr
omeVoxEventWatcher.currentMediaHandler}; |
1597 cvox.ChromeVoxEventWatcher.setUpDateHandler_=function(){var a=document.activeEle
ment;a&&a.hasAttribute&&"true"==a.getAttribute("aria-hidden")&&"true"!=a.getAttr
ibute("chromevoxignoreariahidden")&&(a=null);cvox.ChromeVoxEventWatcher.currentD
ateHandler=a.constructor!=HTMLInputElement||!a.type||"date"!=a.type&&"month"!=a.
type&&"week"!=a.type?null:new cvox.ChromeVoxHTMLDateWidget(a,cvox.ChromeVox.tts)
;return null!=cvox.ChromeVoxEventWatcher.currentDateHandler};cvox.InitialSpeech=
{};window.INJECTED_AFTER_LOAD||(window.INJECTED_AFTER_LOAD=!1); | 1599 cvox.ChromeVoxEventWatcher.setUpDateHandler_=function(){var a=document.activeEle
ment;a&&a.hasAttribute&&"true"==a.getAttribute("aria-hidden")&&"true"!=a.getAttr
ibute("chromevoxignoreariahidden")&&(a=null);cvox.ChromeVoxEventWatcher.currentD
ateHandler=a.constructor!=HTMLInputElement||!a.type||"date"!=a.type&&"month"!=a.
type&&"week"!=a.type?null:new cvox.ChromeVoxHTMLDateWidget(a,cvox.ChromeVox.tts)
;return null!=cvox.ChromeVoxEventWatcher.currentDateHandler};cvox.InitialSpeech=
{};window.INJECTED_AFTER_LOAD||(window.INJECTED_AFTER_LOAD=!1); |
1598 cvox.InitialSpeech.speak=function(){var a=window.INJECTED_AFTER_LOAD;if(!cvox.Ch
romeVox.isActive||document.webkitHidden)a=!0;window.top==window&&(document.title
&&!a&&cvox.ChromeVox.tts.speak(document.title,cvox.AbstractTts.QUEUE_MODE_FLUSH)
,cvox.BrailleOverlayWidget.getInstance().init());cvox.LiveRegions.init(new Date,
cvox.AbstractTts.QUEUE_MODE_QUEUE,a);document.hasFocus()&&document.activeElement
==document.body&&cvox.ChromeVox.navigationManager.syncToBeginning();if(cvox.Chro
meVox.position[document.location.href]){var b= | 1600 cvox.InitialSpeech.speak=function(){var a=window.INJECTED_AFTER_LOAD;if(!cvox.Ch
romeVox.isActive||document.webkitHidden)a=!0;if(window.top==window){var b=docume
nt.title,c=document.querySelector("head > title");c&&"true"==c.getAttribute("ari
a-hidden")&&(b=null);b&&!a&&cvox.ChromeVox.tts.speak(b,cvox.AbstractTts.QUEUE_MO
DE_FLUSH);cvox.BrailleOverlayWidget.getInstance().init()}cvox.LiveRegions.init(n
ew Date,cvox.AbstractTts.QUEUE_MODE_QUEUE,a);document.hasFocus()&&document.activ
eElement==document.body&& |
1599 cvox.ChromeVox.position[document.location.href];cvox.ChromeVox.navigationManager
.updateSelToArbitraryNode(document.elementFromPoint(b.x,b.y))}document.hasFocus(
)&&(a||cvox.ChromeVoxEventSuspender.withSuspendedEvents(function(){cvox.ChromeVo
x.navigationManager.finishNavCommand("",!0,cvox.AbstractTts.QUEUE_MODE_QUEUE)})(
))};cvox.PdfProcessor={}; | 1601 cvox.ChromeVox.navigationManager.syncToBeginning();cvox.ChromeVox.position[docum
ent.location.href]&&(b=cvox.ChromeVox.position[document.location.href],cvox.Chro
meVox.navigationManager.updateSelToArbitraryNode(document.elementFromPoint(b.x,b
.y)));document.hasFocus()&&(a||cvox.ChromeVoxEventSuspender.withSuspendedEvents(
function(){cvox.ChromeVox.navigationManager.finishNavCommand("",!0,cvox.Abstract
Tts.QUEUE_MODE_QUEUE)})())};cvox.PdfProcessor={}; |
1600 cvox.PdfProcessor.processEmbeddedPdfs=function(){if("#original"!=window.location
.hash)for(var a=document.querySelectorAll('embed[type="application/pdf"]'),b=0;b
<a.length;b++){var c=a[b];if("function"===typeof c.accessibility){var d=c.access
ibility(),e=cvox.ChromeVoxJSON.parse(d);if(e.loaded)if(e.copyable){var f=documen
t.createElement("DIV"),d=document.createElement("DIV");d.style.position="relativ
e";d.style.background="white";d.style.margin="20pt";d.style.padding="20pt";d.sty
le.border="1px solid #000"; | 1602 cvox.PdfProcessor.processEmbeddedPdfs=function(){if("#original"!=window.location
.hash)for(var a=document.querySelectorAll('embed[type="application/pdf"]'),b=0;b
<a.length;b++){var c=a[b];if("function"===typeof c.accessibility){var d=c.access
ibility(),e=cvox.ChromeVoxJSON.parse(d);if(e.loaded)if(e.copyable){var f=documen
t.createElement("DIV"),d=document.createElement("DIV");d.style.position="relativ
e";d.style.background="white";d.style.margin="20pt";d.style.padding="20pt";d.sty
le.border="1px solid #000"; |
1601 var g=c.src.substr(c.src.lastIndexOf("/")+1);document.title=g;g=cvox.ChromeVox.m
sgs.getMsg("pdf_header",[g,c.src+"#original"]);d.innerHTML=g;g=d.getElementsByTa
gName("a")[0];g.addEventListener("click",function(){window.location.href=c.src+"
#original";window.location.reload()},!0);f.appendChild(d);f.style.position="rela
tive";f.style.background="#CCC";f.style.paddingTop="1pt";f.style.paddingBottom="
1pt";f.style.width="100%";f.style.minHeight="100%";var h=function(a){var b=c.acc
essibility(a),d=cvox.ChromeVoxJSON.parse(b), | 1603 var g=c.src.substr(c.src.lastIndexOf("/")+1);document.title=g;g=cvox.ChromeVox.m
sgs.getMsg("pdf_header",[g,c.src+"#original"]);d.innerHTML=g;g=d.getElementsByTa
gName("a")[0];g.addEventListener("click",function(){window.location.href=c.src+"
#original";window.location.reload()},!0);f.appendChild(d);f.style.position="rela
tive";f.style.background="#CCC";f.style.paddingTop="1pt";f.style.paddingBottom="
1pt";f.style.width="100%";f.style.minHeight="100%";var h=function(a){var b=c.acc
essibility(a),d=cvox.ChromeVoxJSON.parse(b), |
1602 b=document.createElement("DIV"),g=document.createElement("A");g.name="page"+a;b.
style.position="relative";b.style.background="white";b.style.margin="auto";b.sty
le.marginTop="20pt";b.style.marginBottom="20pt";b.style.height=d.height+"pt";b.s
tyle.width=d.width+"pt";b.style.boxShadow="0pt 0pt 10pt #333";for(var d=d.textBo
x,q=0;q<d.length;q++){var m=d[q],s=document.createElement("Span");s.style.positi
on="absolute";s.style.left=m.left+"pt";s.style.top=m.top+"pt";s.style.fontSize=0
.8*m.height+"pt";for(var u= | 1604 b=document.createElement("DIV"),g=document.createElement("A");g.name="page"+a;b.
style.position="relative";b.style.background="white";b.style.margin="auto";b.sty
le.marginTop="20pt";b.style.marginBottom="20pt";b.style.height=d.height+"pt";b.s
tyle.width=d.width+"pt";b.style.boxShadow="0pt 0pt 10pt #333";for(var d=d.textBo
x,q=0;q<d.length;q++){var m=d[q],s=document.createElement("Span");s.style.positi
on="absolute";s.style.left=m.left+"pt";s.style.top=m.top+"pt";s.style.fontSize=0
.8*m.height+"pt";for(var u= |
1603 0;u<m.textNodes.length;u++){var t=m.textNodes[u];if("text"==t.type)s.appendChild
(document.createTextNode(t.text));else if("url"==t.type){var r=document.createEl
ement("A");r.href=t.url;r.appendChild(document.createTextNode(t.text));s.appendC
hild(r)}}b.appendChild(s)}f.appendChild(g);f.appendChild(b);a<e.numberOfPages-1?
window.setTimeout(function(){h(a+1)},0):(c.style.display="none",c.parentNode.app
endChild(f),cvox.ChromeVox.navigationManager.reset())};window.setTimeout(functio
n(){h(0)},0)}else cvox.ChromeVox.tts.speak("Unable to access copy-protected PDF.
Skipping."); | 1605 0;u<m.textNodes.length;u++){var t=m.textNodes[u];if("text"==t.type)s.appendChild
(document.createTextNode(t.text));else if("url"==t.type){var r=document.createEl
ement("A");r.href=t.url;r.appendChild(document.createTextNode(t.text));s.appendC
hild(r)}}b.appendChild(s)}f.appendChild(g);f.appendChild(b);a<e.numberOfPages-1?
window.setTimeout(function(){h(a+1)},0):(c.style.display="none",c.parentNode.app
endChild(f),cvox.ChromeVox.navigationManager.reset())};window.setTimeout(functio
n(){h(0)},0)}else cvox.ChromeVox.tts.speak("Unable to access copy-protected PDF.
Skipping."); |
1604 else window.setTimeout(cvox.PdfProcessor.processEmbeddedPdfs,100)}}};cvox.Search
Constants=function(){};cvox.SearchConstants.KeyCode={UP:38,DOWN:40,PAGE_UP:33,PA
GE_DOWN:34,LEFT:37,RIGHT:39,ENTER:13,ESC:27};cvox.SearchUtil=function(){};cvox.S
earchUtil.extractURL=function(a){return a&&("A"===a.tagName||(a=a.querySelector(
"a")))?a.href:null};cvox.SearchUtil.isSearchWidgetActive=function(){return null!
==document.querySelector("#cvox-search")};cvox.SearchUtil.addOneWrap=function(a,
b){return(a+1)%b};cvox.SearchUtil.subOneWrap=function(a,b){return(a-1+b)%b}; | 1606 else window.setTimeout(cvox.PdfProcessor.processEmbeddedPdfs,100)}}};cvox.Search
Constants=function(){};cvox.SearchConstants.KeyCode={UP:38,DOWN:40,PAGE_UP:33,PA
GE_DOWN:34,LEFT:37,RIGHT:39,ENTER:13,ESC:27};cvox.SearchUtil=function(){};cvox.S
earchUtil.extractURL=function(a){return a&&("A"===a.tagName||(a=a.querySelector(
"a")))?a.href:null};cvox.SearchUtil.isSearchWidgetActive=function(){return null!
==document.querySelector("#cvox-search")};cvox.SearchUtil.addOneWrap=function(a,
b){return(a+1)%b};cvox.SearchUtil.subOneWrap=function(a,b){return(a-1+b)%b}; |
1605 cvox.SearchUtil.clickElem=function(a,b,c,d){var e;o:{e=a;for(var f={},g=e;g;){va
r h;h=g.getAttribute?(h=g.getAttribute("aria-activedescendant"))?h:null:null;if(
!h)break;if(h in f){e=null;break o}f[h]=!0;g=document.getElementById(h)}e=g==e?n
ull:g}e&&(a=e);if(c){c=null;a.onclick&&(c=a.onclick);!c&&1!=a.nodeType&&a.parent
Node&&a.parentNode.onclick&&(c=a.parentNode.onclick);e=!0;if(c)try{e=c()}catch(k
){}if(!e)return}c=document.createEvent("MouseEvents");d=d?"dblclick":"mousedown"
;c.initMouseEvent(d,!0, | 1607 cvox.SearchUtil.clickElem=function(a,b,c,d){var e;o:{e=a;for(var f={},g=e;g;){va
r h;h=g.getAttribute?(h=g.getAttribute("aria-activedescendant"))?h:null:null;if(
!h)break;if(h in f){e=null;break o}f[h]=!0;g=document.getElementById(h)}e=g==e?n
ull:g}e&&(a=e);if(c){c=null;a.onclick&&(c=a.onclick);!c&&1!=a.nodeType&&a.parent
Node&&a.parentNode.onclick&&(c=a.parentNode.onclick);e=!0;if(c)try{e=c()}catch(k
){}if(!e)return}c=document.createEvent("MouseEvents");d=d?"dblclick":"mousedown"
;c.initMouseEvent(d,!0, |
1606 !0,document.defaultView,1,0,0,0,0,!1,!1,b,!1,0,null);c.fromCvox=!0;try{a.dispatc
hEvent(c)}catch(l){}c=document.createEvent("MouseEvents");c.initMouseEvent("mous
eup",!0,!0,document.defaultView,1,0,0,0,0,!1,!1,b,!1,0,null);c.fromCvox=!0;try{a
.dispatchEvent(c)}catch(n){}c=document.createEvent("MouseEvents");c.initMouseEve
nt("click",!0,!0,document.defaultView,1,0,0,0,0,!1,!1,b,!1,0,null);c.fromCvox=!0
;try{a.dispatchEvent(c)}catch(p){}};cvox.AbstractResult=function(){};cvox.Abstra
ctResult.prototype.isType=function(){return!1};cvox.AbstractResult.prototype.spe
ak=function(){return!1};cvox.AbstractResult.prototype.getURL=cvox.SearchUtil.ext
ractURL;cvox.AbstractResult.prototype.getSyncNode=function(a){return a};cvox.Sea
rchResults=function(){};cvox.SearchResults.speakResultBySelectTexts=function(a,b
){for(var c=0;c<b.length;c++){var d=b[c];if(d.select)for(var e=a.querySelectorAl
l(d.select),f=0;f<e.length;f++)cvox.ChromeVox.speakNode(e.item(f),1);d.text&&cvo
x.ChromeVox.tts.speak(d.text,1)}};cvox.UnknownResult=function(){};goog.inherits(
cvox.UnknownResult,cvox.AbstractResult);cvox.NormalResult=function(){};goog.inhe
rits(cvox.NormalResult,cvox.AbstractResult); | 1608 !0,document.defaultView,1,0,0,0,0,!1,!1,b,!1,0,null);c.fromCvox=!0;try{a.dispatc
hEvent(c)}catch(l){}c=document.createEvent("MouseEvents");c.initMouseEvent("mous
eup",!0,!0,document.defaultView,1,0,0,0,0,!1,!1,b,!1,0,null);c.fromCvox=!0;try{a
.dispatchEvent(c)}catch(n){}c=document.createEvent("MouseEvents");c.initMouseEve
nt("click",!0,!0,document.defaultView,1,0,0,0,0,!1,!1,b,!1,0,null);c.fromCvox=!0
;try{a.dispatchEvent(c)}catch(p){}};cvox.AbstractResult=function(){};cvox.Abstra
ctResult.prototype.isType=function(){return!1};cvox.AbstractResult.prototype.spe
ak=function(){return!1};cvox.AbstractResult.prototype.getURL=cvox.SearchUtil.ext
ractURL;cvox.AbstractResult.prototype.getSyncNode=function(a){return a};cvox.Sea
rchResults=function(){};cvox.SearchResults.speakResultBySelectTexts=function(a,b
){for(var c=0;c<b.length;c++){var d=b[c];if(d.select)for(var e=a.querySelectorAl
l(d.select),f=0;f<e.length;f++)cvox.ChromeVox.speakNode(e.item(f),1);d.text&&cvo
x.ChromeVox.tts.speak(d.text,1)}};cvox.UnknownResult=function(){};goog.inherits(
cvox.UnknownResult,cvox.AbstractResult);cvox.NormalResult=function(){};goog.inhe
rits(cvox.NormalResult,cvox.AbstractResult); |
1607 cvox.NormalResult.prototype.isType=function(a){return null!==a.querySelector(".r
c")};cvox.NormalResult.prototype.speak=function(a){if(!a)return!1;var b=[{select
:".rc .r"},{select:".rc .st"},{select:".kv"},{select:".osl"},{select:".sld"},{se
lect:".mrf"}];cvox.SearchResults.speakResultBySelectTexts(a,b);b=a.querySelector
All(".mas-1st-col div");a=a.querySelectorAll(".mas-col div");for(var c=0;c<b.len
gth;c++)cvox.ChromeVox.speakNode(b.item(c),1),cvox.ChromeVox.speakNode(a.item(c)
,1);return!0}; | 1609 cvox.NormalResult.prototype.isType=function(a){return null!==a.querySelector(".r
c")};cvox.NormalResult.prototype.speak=function(a){if(!a)return!1;var b=[{select
:".rc .r"},{select:".rc .st"},{select:".kv"},{select:".osl"},{select:".sld"},{se
lect:".mrf"}];cvox.SearchResults.speakResultBySelectTexts(a,b);b=a.querySelector
All(".mas-1st-col div");a=a.querySelectorAll(".mas-col div");for(var c=0;c<b.len
gth;c++)cvox.ChromeVox.speakNode(b.item(c),1),cvox.ChromeVox.speakNode(a.item(c)
,1);return!0}; |
1608 cvox.WeatherResult=function(){};goog.inherits(cvox.WeatherResult,cvox.AbstractRe
sult);cvox.WeatherResult.prototype.isType=function(a){return null!==a.querySelec
tor("#wob_wc")};cvox.WeatherResult.speakForecast=function(a){if(a){var b=[{selec
t:".vk_lgy"},{select:"img"},{select:".vk_gy"},{select:".vk_lgy"}];cvox.SearchRes
ults.speakResultBySelectTexts(a,b)}}; | 1610 cvox.WeatherResult=function(){};goog.inherits(cvox.WeatherResult,cvox.AbstractRe
sult);cvox.WeatherResult.prototype.isType=function(a){return null!==a.querySelec
tor("#wob_wc")};cvox.WeatherResult.speakForecast=function(a){if(a){var b=[{selec
t:".vk_lgy"},{select:"img"},{select:".vk_gy"},{select:".vk_lgy"}];cvox.SearchRes
ults.speakResultBySelectTexts(a,b)}}; |
1609 cvox.WeatherResult.prototype.speak=function(a){if(!a)return!1;var b=[{text:"The
weather forcast for"},{select:".vk_h"},{select:"#wob_dts"},{select:"#wob_dc"},{s
elect:"#wob_tm"},{text:"degrees fahrenheit"},{text:"precipitation is"},{select:"
#wob_pp"},{text:"humidity is"},{select:"#wob_hm"},{text:"wind is"},{select:"#wob
_ws"}];cvox.SearchResults.speakResultBySelectTexts(a,b);a=a.getElementsByClassNa
me("wob_df");cvox.ChromeVox.tts.speak("Forecasts for this week",1);for(b=0;b<a.l
ength;b++){var c=a.item(b); | 1611 cvox.WeatherResult.prototype.speak=function(a){if(!a)return!1;var b=[{text:"The
weather forcast for"},{select:".vk_h"},{select:"#wob_dts"},{select:"#wob_dc"},{s
elect:"#wob_tm"},{text:"degrees fahrenheit"},{text:"precipitation is"},{select:"
#wob_pp"},{text:"humidity is"},{select:"#wob_hm"},{text:"wind is"},{select:"#wob
_ws"}];cvox.SearchResults.speakResultBySelectTexts(a,b);a=a.getElementsByClassNa
me("wob_df");cvox.ChromeVox.tts.speak("Forecasts for this week",1);for(b=0;b<a.l
ength;b++){var c=a.item(b); |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1662 "brailleTable6";"brailleTable6"==b?(d.removeAttribute("aria-hidden"),d.setAttrib
ute("tabIndex",0),d.style.display="block",a&&d.focus(),e.setAttribute("aria-hidd
en","true"),e.setAttribute("tabIndex",-1),e.style.display="none",localStorage.br
ailleTable=localStorage.brailleTable6,localStorage.brailleTableType="brailleTabl
e6",f.textContent=cvox.ChromeVox.msgs.getMsg("options_braille_table_type_6")):(d
.setAttribute("aria-hidden","true"),d.setAttribute("tabIndex",-1),d.style.displa
y="none",e.removeAttribute("aria-hidden"), | 1664 "brailleTable6";"brailleTable6"==b?(d.removeAttribute("aria-hidden"),d.setAttrib
ute("tabIndex",0),d.style.display="block",a&&d.focus(),e.setAttribute("aria-hidd
en","true"),e.setAttribute("tabIndex",-1),e.style.display="none",localStorage.br
ailleTable=localStorage.brailleTable6,localStorage.brailleTableType="brailleTabl
e6",f.textContent=cvox.ChromeVox.msgs.getMsg("options_braille_table_type_6")):(d
.setAttribute("aria-hidden","true"),d.setAttribute("tabIndex",-1),d.style.displa
y="none",e.removeAttribute("aria-hidden"), |
1663 e.setAttribute("tabIndex",0),e.style.display="block",a&&e.focus(),localStorage.b
railleTable=localStorage.brailleTable8,localStorage.brailleTableType="brailleTab
le8",f.textContent=cvox.ChromeVox.msgs.getMsg("options_braille_table_type_8"));a
=chrome.extension.getBackgroundPage().braille;a.refreshTranslator()};g(!1);f.add
EventListener("click",function(){var a=localStorage.brailleTableType;localStorag
e.brailleTableType="brailleTable6"==a?"brailleTable8":"brailleTable6";g(!0)},!0)
}}; | 1665 e.setAttribute("tabIndex",0),e.style.display="block",a&&e.focus(),localStorage.b
railleTable=localStorage.brailleTable8,localStorage.brailleTableType="brailleTab
le8",f.textContent=cvox.ChromeVox.msgs.getMsg("options_braille_table_type_8"));a
=chrome.extension.getBackgroundPage().braille;a.refreshTranslator()};g(!1);f.add
EventListener("click",function(){var a=localStorage.brailleTableType;localStorag
e.brailleTableType="brailleTable6"==a?"brailleTable8":"brailleTable6";g(!0)},!0)
}}; |
1664 cvox.OptionsPage.setValue=function(a,b){"INPUT"==a.tagName&&"checkbox"==a.type?a
.checked="true"==b:"INPUT"==a.tagName&&"radio"==a.type?a.checked=String(a.value)
==b:a.value=b}; | 1666 cvox.OptionsPage.setValue=function(a,b){"INPUT"==a.tagName&&"checkbox"==a.type?a
.checked="true"==b:"INPUT"==a.tagName&&"radio"==a.type?a.checked=String(a.value)
==b:a.value=b}; |
1665 cvox.OptionsPage.eventListener=function(a){window.setTimeout(function(){var b=a.
target;if(b.classList.contains("pref"))if("INPUT"==b.tagName&&"checkbox"==b.type
)cvox.OptionsPage.prefs.setPref(b.name,b.checked);else{if("INPUT"==b.tagName&&"r
adio"==b.type)for(var c=b.name,c=document.querySelectorAll('*[name="'+c+'"]'),d=
0;d<c.length;d++)c[d].checked&&cvox.OptionsPage.prefs.setPref(b.name,c[d].value)
}else b.classList.contains("key")&&(c=cvox.KeySequence.fromStr(b.value),"cvoxKey
"==b.id?(cvox.OptionsPage.prefs.setPref(b.id, | 1667 cvox.OptionsPage.eventListener=function(a){window.setTimeout(function(){var b=a.
target;if(b.classList.contains("pref"))if("INPUT"==b.tagName&&"checkbox"==b.type
)cvox.OptionsPage.prefs.setPref(b.name,b.checked);else{if("INPUT"==b.tagName&&"r
adio"==b.type)for(var c=b.name,c=document.querySelectorAll('*[name="'+c+'"]'),d=
0;d<c.length;d++)c[d].checked&&cvox.OptionsPage.prefs.setPref(b.name,c[d].value)
}else b.classList.contains("key")&&(c=cvox.KeySequence.fromStr(b.value),"cvoxKey
"==b.id?(cvox.OptionsPage.prefs.setPref(b.id, |
1666 b.value),cvox.OptionsPage.prefs.sendPrefsToAllTabs(!0,!0)):cvox.OptionsPage.pref
s.setKey(b.id,c))},0);return!0}; | 1668 b.value),cvox.OptionsPage.prefs.sendPrefsToAllTabs(!0,!0)):cvox.OptionsPage.pref
s.setKey(b.id,c))},0);return!0}; |
1667 cvox.OptionsPage.reset=function(){var a=document.getElementById("cvox_keymaps"),
a=a.options[a.selectedIndex].id,b=cvox.ChromeVox.msgs,b=cvox.OptionsPage.prefs.g
etPrefs().currentKeyMap==a?b.getMsg("keymap_reset",[b.getMsg(a)]):b.getMsg("keym
ap_switch",[b.getMsg(a)]);cvox.OptionsPage.updateStatus_(b);cvox.OptionsPage.pre
fs.switchToKeyMap(a);document.getElementById("keysContainer").innerHTML="";cvox.
OptionsPage.addKeys();cvox.ChromeVox.msgs.addTranslatedMessagesToDom(document)}; | 1669 cvox.OptionsPage.reset=function(){var a=document.getElementById("cvox_keymaps"),
a=a.options[a.selectedIndex].id,b=cvox.ChromeVox.msgs,b=cvox.OptionsPage.prefs.g
etPrefs().currentKeyMap==a?b.getMsg("keymap_reset",[b.getMsg(a)]):b.getMsg("keym
ap_switch",[b.getMsg(a)]);cvox.OptionsPage.updateStatus_(b);cvox.OptionsPage.pre
fs.switchToKeyMap(a);document.getElementById("keysContainer").innerHTML="";cvox.
OptionsPage.addKeys();cvox.ChromeVox.msgs.addTranslatedMessagesToDom(document)}; |
1668 cvox.OptionsPage.updateStatus_=function(a){document.getElementById("status").inn
erText=a};cvox.OptionsPage.hidePlatformSpecifics=function(){if(!cvox.ChromeVox.i
sChromeOS)for(var a=document.body.querySelectorAll(".chromeos"),b=0,c;c=a[b];b++
)c.setAttribute("aria-hidden","true"),c.style.display="none"};document.addEventL
istener("DOMContentLoaded",function(){cvox.OptionsPage.init()},!1);cvox.ChromeVo
xBackground=function(){}; | 1670 cvox.OptionsPage.updateStatus_=function(a){document.getElementById("status").inn
erText=a};cvox.OptionsPage.hidePlatformSpecifics=function(){if(!cvox.ChromeVox.i
sChromeOS)for(var a=document.body.querySelectorAll(".chromeos"),b=0,c;c=a[b];b++
)c.setAttribute("aria-hidden","true"),c.style.display="none"};document.addEventL
istener("DOMContentLoaded",function(){cvox.OptionsPage.init()},!1);cvox.ChromeVo
xBackground=function(){}; |
1669 cvox.ChromeVoxBackground.prototype.init=function(){if(!cvox.ChromeVox.isChromeOS
||"mndnfokpggljbaajbnioimlmbfngpief"==chrome.i18n.getMessage("@@extension_id")){
cvox.ChromeVox.msgs=cvox.HostFactory.getMsgs();this.prefs=new cvox.ChromeVoxPref
s;this.readPrefs();var a=cvox.ConsoleTts.getInstance();a.setEnabled(!0);this.bac
kgroundTts_=new cvox.TtsBackground;this.tts=(new cvox.CompositeTts).add(this.bac
kgroundTts_).add(a);this.earcons=new cvox.EarconsBackground;this.addBridgeListen
er();this.backgroundBraille_= | 1671 cvox.ChromeVoxBackground.prototype.init=function(){if(!cvox.ChromeVox.isChromeOS
||"mndnfokpggljbaajbnioimlmbfngpief"==chrome.i18n.getMessage("@@extension_id")){
cvox.ChromeVox.msgs=cvox.HostFactory.getMsgs();this.prefs=new cvox.ChromeVoxPref
s;this.readPrefs();var a=cvox.ConsoleTts.getInstance();a.setEnabled(!0);this.bac
kgroundTts_=new cvox.TtsBackground;this.tts=(new cvox.CompositeTts).add(this.bac
kgroundTts_).add(a);this.earcons=new cvox.EarconsBackground;this.addBridgeListen
er();this.backgroundBraille_= |
1670 new cvox.BrailleBackground;this.accessibilityApiHandler_=new cvox.AccessibilityA
piHandler(this.tts,this.backgroundBraille_,this.earcons);cvox.ChromeVox.tts=this
.tts;cvox.ChromeVox.braille=this.backgroundBraille_;cvox.ChromeVox.earcons=this.
earcons;cvox.ChromeVox.isChromeOS&&chrome.accessibilityPrivate.onChromeVoxLoadSt
ateChanged&&chrome.accessibilityPrivate.onChromeVoxLoadStateChanged.addListener(
this.onLoadStateChanged);var b;b=["chromeVoxChromePageScript.js"];var c=this,a=f
unction(a){chrome.windows.getAll({populate:!0}, | 1672 new cvox.BrailleBackground;this.accessibilityApiHandler_=new cvox.AccessibilityA
piHandler(this.tts,this.backgroundBraille_,this.earcons);cvox.ChromeVox.tts=this
.tts;cvox.ChromeVox.braille=this.backgroundBraille_;cvox.ChromeVox.earcons=this.
earcons;cvox.ChromeVox.isChromeOS&&chrome.accessibilityPrivate.onChromeVoxLoadSt
ateChanged&&chrome.accessibilityPrivate.onChromeVoxLoadStateChanged.addListener(
this.onLoadStateChanged);var b;b=["chromeVoxChromePageScript.js"];var c=this,a=f
unction(a){chrome.windows.getAll({populate:!0}, |
1671 function(e){for(var f=0;f<e.length;f++)for(var g=e[f].tabs,h=0;h<g.length;h++){v
ar k=g[h];c.injectChromeVoxIntoTab(k,b,a)}})};this.checkVersionNumber();chrome.e
xtension.onMessage.addListener(function(a,b,c){if(a.srcFile){var g=a.srcFile;cvo
x.InjectedScriptLoader.fetchCode([g],function(a){c({code:a[g]})})}return!0});cvo
x.InjectedScriptLoader.fetchCode(b,a);"false"==localStorage.active?this.tts.spea
k(cvox.ChromeVox.msgs.getMsg("chromevox_inactive"),1):cvox.PlatformUtil.matchesP
latform(cvox.PlatformFilter.WML)&& | 1673 function(e){for(var f=0;f<e.length;f++)for(var g=e[f].tabs,h=0;h<g.length;h++){v
ar k=g[h];c.injectChromeVoxIntoTab(k,b,a)}})};this.checkVersionNumber();chrome.e
xtension.onMessage.addListener(function(a,b,c){if(a.srcFile){var g=a.srcFile;cvo
x.InjectedScriptLoader.fetchCode([g],function(a){c({code:a[g]})})}return!0});cvo
x.InjectedScriptLoader.fetchCode(b,a);"false"==localStorage.active?this.tts.spea
k(cvox.ChromeVox.msgs.getMsg("chromevox_inactive"),1):cvox.PlatformUtil.matchesP
latform(cvox.PlatformFilter.WML)&& |
1672 this.tts.speak(cvox.ChromeVox.msgs.getMsg("chromevox_intro"),1)}}; | 1674 (this.tts.speak(cvox.ChromeVox.msgs.getMsg("chromevox_intro"),1),cvox.ChromeVox.
braille.write(cvox.NavBraille.fromText(cvox.ChromeVox.msgs.getMsg("intro_brl")))
)}}; |
1673 cvox.ChromeVoxBackground.prototype.injectChromeVoxIntoTab=function(a,b,c){window
.console.log("Injecting into "+a.id,a);var d=!1,e=goog.bind(function(b){chrome.t
abs.executeScript(a.id,{code:b,allFrames:!0},goog.bind(function(){chrome.extensi
on.lastError&&!d&&(d=!0,console.error("Could not inject into tab",a),this.tts.sp
eak("Error starting ChromeVox for "+a.title+", "+a.url,1))},this))},this);e("try
{ window.disableChromeVox(); } catch(e) { }\nwindow.INJECTED_AFTER_LOAD = true;
\nwindow.CLOSURE_NO_DEPS = true\n");b.forEach(function(a){e(c[a])})}; | 1675 cvox.ChromeVoxBackground.prototype.injectChromeVoxIntoTab=function(a,b,c){window
.console.log("Injecting into "+a.id,a);var d=!1,e=goog.bind(function(b){chrome.t
abs.executeScript(a.id,{code:b,allFrames:!0},goog.bind(function(){chrome.extensi
on.lastError&&!d&&(d=!0,console.error("Could not inject into tab",a),this.tts.sp
eak("Error starting ChromeVox for "+a.title+", "+a.url,1))},this))},this);e("try
{ window.disableChromeVox(); } catch(e) { }\nwindow.INJECTED_AFTER_LOAD = true;
\nwindow.CLOSURE_NO_DEPS = true\n"); |
| 1676 b.forEach(function(a){e(c[a])})}; |
1674 cvox.ChromeVoxBackground.prototype.onTtsMessage=function(a){if("speak"==a.action
)this.accessibilityApiHandler_.setWebContext(),this.tts.speak(a.text,a.queueMode
,a.properties);else if("stop"==a.action)this.tts.stop();else if("increaseOrDecre
ase"==a.action){this.tts.increaseOrDecreaseProperty(a.property,a.increase);var b
=a.property,b=Math.round(100*this.backgroundTts_.propertyToPercentage(b)),c;swit
ch(a.property){case cvox.AbstractTts.RATE:c=cvox.ChromeVox.msgs.getMsg("announce
_rate",[b]);break;case cvox.AbstractTts.PITCH:c= | 1677 cvox.ChromeVoxBackground.prototype.onTtsMessage=function(a){if("speak"==a.action
)this.accessibilityApiHandler_.setWebContext(),this.tts.speak(a.text,a.queueMode
,a.properties);else if("stop"==a.action)this.tts.stop();else if("increaseOrDecre
ase"==a.action){this.tts.increaseOrDecreaseProperty(a.property,a.increase);var b
=a.property,b=Math.round(100*this.backgroundTts_.propertyToPercentage(b)),c;swit
ch(a.property){case cvox.AbstractTts.RATE:c=cvox.ChromeVox.msgs.getMsg("announce
_rate",[b]);break;case cvox.AbstractTts.PITCH:c= |
1675 cvox.ChromeVox.msgs.getMsg("announce_pitch",[b]);break;case cvox.AbstractTts.VOL
UME:c=cvox.ChromeVox.msgs.getMsg("announce_volume",[b])}c&&this.tts.speak(c,cvox
.AbstractTts.QUEUE_MODE_FLUSH,cvox.AbstractTts.PERSONALITY_ANNOTATION)}else"cycl
ePunctuationEcho"==a.action&&this.tts.speak(cvox.ChromeVox.msgs.getMsg(this.back
groundTts_.cyclePunctuationEcho()),cvox.AbstractTts.QUEUE_MODE_FLUSH)};cvox.Chro
meVoxBackground.prototype.onEarconMessage=function(a){"play"==a.action&&this.ear
cons.playEarcon(a.earcon)}; | 1678 cvox.ChromeVox.msgs.getMsg("announce_pitch",[b]);break;case cvox.AbstractTts.VOL
UME:c=cvox.ChromeVox.msgs.getMsg("announce_volume",[b])}c&&this.tts.speak(c,cvox
.AbstractTts.QUEUE_MODE_FLUSH,cvox.AbstractTts.PERSONALITY_ANNOTATION)}else"cycl
ePunctuationEcho"==a.action&&this.tts.speak(cvox.ChromeVox.msgs.getMsg(this.back
groundTts_.cyclePunctuationEcho()),cvox.AbstractTts.QUEUE_MODE_FLUSH)};cvox.Chro
meVoxBackground.prototype.onEarconMessage=function(a){"play"==a.action&&this.ear
cons.playEarcon(a.earcon)}; |
1676 cvox.ChromeVoxBackground.prototype.addBridgeListener=function(){cvox.ExtensionBr
idge.addMessageListener(goog.bind(function(a,b){var c=a.target,d=a.action;switch
(c){case "OpenTab":c={};c.url=a.url;chrome.tabs.create(c);break;case "KbExplorer
":c={url:"chromevox/background/kbexplorer.html"};chrome.tabs.create(c);break;cas
e "HelpDocs":c={url:"http://chromevox.com/tutorial/index.html"};chrome.tabs.crea
te(c);break;case "Options":"open"==d&&(c={url:"chromevox/background/options.html
"},chrome.tabs.create(c)); | 1679 cvox.ChromeVoxBackground.prototype.addBridgeListener=function(){cvox.ExtensionBr
idge.addMessageListener(goog.bind(function(a,b){var c=a.target,d=a.action;switch
(c){case "OpenTab":c={};c.url=a.url;chrome.tabs.create(c);break;case "KbExplorer
":c={url:"chromevox/background/kbexplorer.html"};chrome.tabs.create(c);break;cas
e "HelpDocs":c={url:"http://chromevox.com/tutorial/index.html"};chrome.tabs.crea
te(c);break;case "Options":"open"==d&&(c={url:"chromevox/background/options.html
"},chrome.tabs.create(c)); |
1677 break;case "Data":if("getHistory"==d){var e={};chrome.history.search({text:"",ma
xResults:25},function(a){a.forEach(function(a){a.url&&(e[a.url]=!0)});b.postMess
age({history:e})})}break;case "Prefs":if("getPrefs"==d)this.prefs.sendPrefsToPor
t(b);else if("setPref"==d){if("active"==a.pref&&a.value!=cvox.ChromeVox.isActive
)cvox.ChromeVox.isActive?(this.tts.speak(cvox.ChromeVox.msgs.getMsg("chromevox_i
nactive")),chrome.accessibilityPrivate.setNativeAccessibilityEnabled(!0)):chrome
.accessibilityPrivate.setNativeAccessibilityEnabled(!1); | 1680 break;case "Data":if("getHistory"==d){var e={};chrome.history.search({text:"",ma
xResults:25},function(a){a.forEach(function(a){a.url&&(e[a.url]=!0)});b.postMess
age({history:e})})}break;case "Prefs":if("getPrefs"==d)this.prefs.sendPrefsToPor
t(b);else if("setPref"==d){if("active"==a.pref&&a.value!=cvox.ChromeVox.isActive
)cvox.ChromeVox.isActive?(this.tts.speak(cvox.ChromeVox.msgs.getMsg("chromevox_i
nactive")),chrome.accessibilityPrivate.setNativeAccessibilityEnabled(!0)):chrome
.accessibilityPrivate.setNativeAccessibilityEnabled(!1); |
1678 else if("earcons"==a.pref)this.earcons.enabled=a.value;else if("sticky"==a.pref&
&a.announce)a.value?this.tts.speak(cvox.ChromeVox.msgs.getMsg("sticky_mode_enabl
ed")):this.tts.speak(cvox.ChromeVox.msgs.getMsg("sticky_mode_disabled"));else if
("typingEcho"==a.pref&&a.announce){c="";switch(a.value){case cvox.TypingEcho.CHA
RACTER:c=cvox.ChromeVox.msgs.getMsg("character_echo");break;case cvox.TypingEcho
.WORD:c=cvox.ChromeVox.msgs.getMsg("word_echo");break;case cvox.TypingEcho.CHARA
CTER_AND_WORD:c=cvox.ChromeVox.msgs.getMsg("character_and_word_echo"); | 1681 else if("earcons"==a.pref)this.earcons.enabled=a.value;else if("sticky"==a.pref&
&a.announce)a.value?this.tts.speak(cvox.ChromeVox.msgs.getMsg("sticky_mode_enabl
ed")):this.tts.speak(cvox.ChromeVox.msgs.getMsg("sticky_mode_disabled"));else if
("typingEcho"==a.pref&&a.announce){c="";switch(a.value){case cvox.TypingEcho.CHA
RACTER:c=cvox.ChromeVox.msgs.getMsg("character_echo");break;case cvox.TypingEcho
.WORD:c=cvox.ChromeVox.msgs.getMsg("word_echo");break;case cvox.TypingEcho.CHARA
CTER_AND_WORD:c=cvox.ChromeVox.msgs.getMsg("character_and_word_echo"); |
1679 break;case cvox.TypingEcho.NONE:c=cvox.ChromeVox.msgs.getMsg("none_echo")}c&&thi
s.tts.speak(c)}else"brailleCaptions"==a.pref&&cvox.BrailleCaptionsBackground.set
Active(a.value);this.prefs.setPref(a.pref,a.value);this.readPrefs()}break;case "
Math":"getDomains"==a.action&&b.postMessage({message:"DOMAINS_STYLES",domains:th
is.backgroundTts_.mathmap.allDomains,styles:this.backgroundTts_.mathmap.allStyle
s});break;case "TTS":void 0!=a.startCallbackId&&(a.properties.startCallback=func
tion(){b.postMessage({message:"TTS_CALLBACK", | 1682 break;case cvox.TypingEcho.NONE:c=cvox.ChromeVox.msgs.getMsg("none_echo")}c&&thi
s.tts.speak(c)}else"brailleCaptions"==a.pref&&cvox.BrailleCaptionsBackground.set
Active(a.value);this.prefs.setPref(a.pref,a.value);this.readPrefs()}break;case "
Math":"getDomains"==a.action&&b.postMessage({message:"DOMAINS_STYLES",domains:th
is.backgroundTts_.mathmap.allDomains,styles:this.backgroundTts_.mathmap.allStyle
s});break;case "TTS":void 0!=a.startCallbackId&&(a.properties.startCallback=func
tion(){b.postMessage({message:"TTS_CALLBACK", |
1680 id:a.startCallbackId})});void 0!=a.endCallbackId&&(a.properties.endCallback=func
tion(){b.postMessage({message:"TTS_CALLBACK",id:a.endCallbackId})});try{this.onT
tsMessage(a)}catch(f){console.log(f)}break;case "EARCON":this.onEarconMessage(a)
;break;case "BRAILLE":try{this.backgroundBraille_.onBrailleMessage(a)}catch(g){c
onsole.log(g)}}},this))};cvox.ChromeVoxBackground.prototype.checkVersionNumber=f
unction(){this.isIncognito_()||(this.localStorageVersion=localStorage.versionStr
ing,this.showNotesIfNewVersion())}; | 1683 id:a.startCallbackId})});void 0!=a.endCallbackId&&(a.properties.endCallback=func
tion(){b.postMessage({message:"TTS_CALLBACK",id:a.endCallbackId})});try{this.onT
tsMessage(a)}catch(f){console.log(f)}break;case "EARCON":this.onEarconMessage(a)
;break;case "BRAILLE":try{this.backgroundBraille_.onBrailleMessage(a)}catch(g){c
onsole.log(g)}}},this))};cvox.ChromeVoxBackground.prototype.checkVersionNumber=f
unction(){this.isIncognito_()||(this.localStorageVersion=localStorage.versionStr
ing,this.showNotesIfNewVersion())}; |
1681 cvox.ChromeVoxBackground.prototype.displayReleaseNotes=function(){chrome.tabs.cr
eate({url:"http://chromevox.com/release_notes.html"})}; | 1684 cvox.ChromeVoxBackground.prototype.displayReleaseNotes=function(){chrome.tabs.cr
eate({url:"http://chromevox.com/release_notes.html"})}; |
1682 cvox.ChromeVoxBackground.prototype.showNotesIfNewVersion=function(){var a=chrome
.extension.getURL("manifest.json"),b=new XMLHttpRequest,c=this;b.onreadystatecha
nge=function(){if(4==b.readyState){var a=JSON.parse(b.responseText);console.log(
"Version: "+a.version);var e=c.localStorageVersion!=a.version;-1!=navigator.user
Agent.indexOf("CrOS")&&void 0==c.localStorageVersion&&(e=!1);e&&c.displayRelease
Notes();this.localStorageVersion=localStorage.versionString=a.version}};b.open("
GET",a);b.send()}; | 1685 cvox.ChromeVoxBackground.prototype.showNotesIfNewVersion=function(){var a=chrome
.extension.getURL("manifest.json"),b=new XMLHttpRequest,c=this;b.onreadystatecha
nge=function(){if(4==b.readyState){var a=JSON.parse(b.responseText);console.log(
"Version: "+a.version);var e=c.localStorageVersion!=a.version;-1!=navigator.user
Agent.indexOf("CrOS")&&void 0==c.localStorageVersion&&(e=!1);e&&c.displayRelease
Notes();this.localStorageVersion=localStorage.versionString=a.version}};b.open("
GET",a);b.send()}; |
1683 cvox.ChromeVoxBackground.prototype.readPrefs=function(){var a=this.prefs.getPref
s();cvox.ChromeVoxEditableTextBase.useIBeamCursor="true"==a.useIBeamCursor;cvox.
ChromeVox.isActive="true"==a.active||cvox.ChromeVox.isChromeOS;cvox.ChromeVox.is
StickyOn="true"==a.sticky};cvox.ChromeVoxBackground.prototype.isIncognito_=funct
ion(){var a=!1;chrome.tabs.getCurrent(function(b){a=b?b.incognito:!0});return a}
; | 1686 cvox.ChromeVoxBackground.prototype.readPrefs=function(){var a=this.prefs.getPref
s();cvox.ChromeVoxEditableTextBase.useIBeamCursor="true"==a.useIBeamCursor;cvox.
ChromeVox.isActive="true"==a.active||cvox.ChromeVox.isChromeOS;cvox.ChromeVox.is
StickyOn="true"==a.sticky};cvox.ChromeVoxBackground.prototype.isIncognito_=funct
ion(){var a=!1;chrome.tabs.getCurrent(function(b){a=b?b.incognito:!0});return a}
; |
1684 cvox.ChromeVoxBackground.prototype.onLoadStateChanged=function(a,b){a&&b&&(cvox.
ChromeVox.tts.speak(cvox.ChromeVox.msgs.getMsg("chromevox_intro"),1,{doNotInterr
upt:!0}),cvox.ChromeVox.braille.write(cvox.NavBraille.fromText(cvox.ChromeVox.ms
gs.getMsg("intro_brl"))))};var background$$inline_14=new cvox.ChromeVoxBackgroun
d;background$$inline_14.init();window.speak=goog.bind(background$$inline_14.tts.
speak,background$$inline_14.tts);window.prefs=background$$inline_14.prefs;window
.braille=cvox.ChromeVox.braille; | 1687 cvox.ChromeVoxBackground.prototype.onLoadStateChanged=function(a,b){a&&b&&(cvox.
ChromeVox.tts.speak(cvox.ChromeVox.msgs.getMsg("chromevox_intro"),1,{doNotInterr
upt:!0}),cvox.ChromeVox.braille.write(cvox.NavBraille.fromText(cvox.ChromeVox.ms
gs.getMsg("intro_brl"))))};var background$$inline_14=new cvox.ChromeVoxBackgroun
d;background$$inline_14.init();window.speak=goog.bind(background$$inline_14.tts.
speak,background$$inline_14.tts);window.prefs=background$$inline_14.prefs;window
.braille=cvox.ChromeVox.braille; |
OLD | NEW |