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={VERBOSITY_VERBOSE:0,VERBOSITY_BRIEF:1,ChromeVox:function(){}};cvo
x.ChromeVox.host=null;cvox.ChromeVox.msgs=null;cvox.ChromeVox.isActive=!0;cvox.C
hromeVox.version=null;cvox.ChromeVox.earcons=null;cvox.ChromeVox.navigationManag
er=null;cvox.ChromeVox.serializer=null;cvox.ChromeVox.isStickyOn=!1;cvox.ChromeV
ox.keyPrefixOn=!1;cvox.ChromeVox.verbosity=cvox.VERBOSITY_VERBOSE;cvox.ChromeVox
.typingEcho=0;cvox.ChromeVox.keyEcho={};cvox.ChromeVox.position={};cvox.ChromeVo
x.isChromeOS=-1!=navigator.userAgent.indexOf("CrOS"); | 22 a)});var cvox={VERBOSITY_VERBOSE:0,VERBOSITY_BRIEF:1,ChromeVox:function(){}};cvo
x.ChromeVox.host=null;cvox.ChromeVox.msgs=null;cvox.ChromeVox.isActive=!0;cvox.C
hromeVox.version=null;cvox.ChromeVox.earcons=null;cvox.ChromeVox.navigationManag
er=null;cvox.ChromeVox.serializer=null;cvox.ChromeVox.isStickyOn=!1;cvox.ChromeV
ox.keyPrefixOn=!1;cvox.ChromeVox.verbosity=cvox.VERBOSITY_VERBOSE;cvox.ChromeVox
.typingEcho=0;cvox.ChromeVox.keyEcho={};cvox.ChromeVox.position={};cvox.ChromeVo
x.isChromeOS=-1!=navigator.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.KeySequence=function(a,b,c,d){this.doubleTap=!!d;this.cvoxModifier=void 0==
b?this.isCVoxModifierActive(a):b;this.stickyMode=!!a.stickyMode;this.prefixKey=!
!a.keyPrefix;this.skipStripping=!!c;if(this.stickyMode&&this.prefixKey)throw"Pre
fix key and sticky mode cannot both be enabled: "+a;a=this.resolveChromeOSSpecia
lKeys_(a);this.keys={ctrlKey:[],searchKeyHeld:[],altKey:[],altGraphKey:[],shiftK
ey:[],metaKey:[],keyCode:[]};this.extractKey_(a)}; | 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.KeySequence=function(a,b,c,d){this.doubleTap=!!d;this.cvoxModifier=void 0==
b?this.isCVoxModifierActive(a):b;this.stickyMode=!!a.stickyMode;this.prefixKey=!
!a.keyPrefix;this.skipStripping=!!c;if(this.stickyMode&&this.prefixKey)throw"Pre
fix key and sticky mode cannot both be enabled: "+a;a=this.resolveChromeOSSpecia
lKeys_(a);this.keys={ctrlKey:[],searchKeyHeld:[],altKey:[],altGraphKey:[],shiftK
ey:[],metaKey:[],keyCode:[]};this.extractKey_(a)}; |
25 cvox.KeySequence.KEY_PRESS_CODE={39:222,44:188,45:189,46:190,47:191,59:186,91:21
9,92:220,93:221};cvox.KeySequence.doubleTapCache=[];cvox.KeySequence.prototype.a
ddKeyEvent=function(a){if(1<this.keys.keyCode.length)return!1;this.extractKey_(a
);return!0};cvox.KeySequence.prototype.equals=function(a){if(!this.checkKeyEqual
ity_(a)||this.doubleTap!=a.doubleTap)return!1;if(this.cvoxModifier===a.cvoxModif
ier)return!0;a=this.cvoxModifier?a:this;return a.stickyMode||a.prefixKey}; | 25 cvox.KeySequence.KEY_PRESS_CODE={39:222,44:188,45:189,46:190,47:191,59:186,91:21
9,92:220,93:221};cvox.KeySequence.doubleTapCache=[];cvox.KeySequence.prototype.a
ddKeyEvent=function(a){if(1<this.keys.keyCode.length)return!1;this.extractKey_(a
);return!0};cvox.KeySequence.prototype.equals=function(a){if(!this.checkKeyEqual
ity_(a)||this.doubleTap!=a.doubleTap)return!1;if(this.cvoxModifier===a.cvoxModif
ier)return!0;a=this.cvoxModifier?a:this;return a.stickyMode||a.prefixKey}; |
26 cvox.KeySequence.prototype.extractKey_=function(a){for(var b in this.keys)if("ke
yCode"==b){var c;"keypress"==a.type&&97<=a[b]&&122>=a[b]?c=a[b]-32:"keypress"==a
.type&&(c=cvox.KeySequence.KEY_PRESS_CODE[a[b]]);this.keys[b].push(c||a[b])}else
this.isKeyModifierActive(a,b)?this.keys[b].push(!0):this.keys[b].push(!1);this.
cvoxModifier&&this.rationalizeKeys_()}; | 26 cvox.KeySequence.prototype.extractKey_=function(a){for(var b in this.keys)if("ke
yCode"==b){var c;"keypress"==a.type&&97<=a[b]&&122>=a[b]?c=a[b]-32:"keypress"==a
.type&&(c=cvox.KeySequence.KEY_PRESS_CODE[a[b]]);this.keys[b].push(c||a[b])}else
this.isKeyModifierActive(a,b)?this.keys[b].push(!0):this.keys[b].push(!1);this.
cvoxModifier&&this.rationalizeKeys_()}; |
27 cvox.KeySequence.prototype.rationalizeKeys_=function(){if(!this.skipStripping){v
ar a=cvox.ChromeVox.modKeyStr.split(/\+/g),b=this.keys.keyCode.length-1;-1!=a.in
dexOf("Ctrl")&&(this.keys.ctrlKey[b]=!1);-1!=a.indexOf("Alt")&&(this.keys.altKey
[b]=!1);-1!=a.indexOf("Shift")&&(this.keys.shiftKey[b]=!1);var c=this.getMetaKey
Name_();if(-1!=a.indexOf(c))if("Search"==c)this.keys.searchKeyHeld[b]=!1;else if
("Cmd"==c||"Win"==c)this.keys.metaKey[b]=!1}}; | 27 cvox.KeySequence.prototype.rationalizeKeys_=function(){if(!this.skipStripping){v
ar a=cvox.ChromeVox.modKeyStr.split(/\+/g),b=this.keys.keyCode.length-1;-1!=a.in
dexOf("Ctrl")&&(this.keys.ctrlKey[b]=!1);-1!=a.indexOf("Alt")&&(this.keys.altKey
[b]=!1);-1!=a.indexOf("Shift")&&(this.keys.shiftKey[b]=!1);var c=this.getMetaKey
Name_();if(-1!=a.indexOf(c))if("Search"==c)this.keys.searchKeyHeld[b]=!1;else if
("Cmd"==c||"Win"==c)this.keys.metaKey[b]=!1}}; |
(...skipping 27 matching lines...) Expand all Loading... |
55 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, | 55 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, |
56 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"}, | 56 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"}, |
57 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", | 57 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", |
58 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, | 58 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, |
59 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"}, | 59 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"}, |
60 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, | 60 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, |
61 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"}, | 61 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"}, |
62 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"}, | 62 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"}, |
63 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}, | 63 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}, |
64 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, | 64 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, |
65 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, | 65 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", |
66 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", | 66 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", |
67 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, | 67 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, |
68 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"}, | 68 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, |
69 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"}, | 69 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", |
70 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"}, | 70 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"}, |
71 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"}, | 71 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"}, |
72 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"}, | 72 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, |
73 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, | 73 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, |
74 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", | 74 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"}, |
75 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", | 75 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, |
76 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", | 76 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", |
77 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, | 77 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, |
78 announce:!0,msgId:"braille_top",category:"braille"},bottom:{backward:!0,announce
:!0,msgId:"braille_bottom",category:"braille"},debug:{announce:!1},nop:{announce
:!1}}; | 78 msgId:"braille_captions",category:"developer"},startHistoryRecording:{announce:!
1},stopHistoryRecording:{announce:!1},autorunner:{announce:!1},debug:{announce:!
1},nop:{announce:!1}}; |
79 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", | 79 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", |
80 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", | 80 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", |
81 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"}, | 81 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"}, |
82 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", | 82 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", |
83 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", | 83 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", |
84 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", | 84 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", |
85 backwardError:"no_previous_section"},control:{predicate:"controlPredicate",forwa
rdError:"no_next_control",backwardError:"no_previous_control"}};cvox.Cursor=func
tion(a,b,c){this.node=a;this.index=b;this.text=c};cvox.Cursor.prototype.clone=fu
nction(){return new cvox.Cursor(this.node,this.index,this.text)};cvox.Cursor.pro
totype.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.node&&this.index=
=a.index&&this.text==a.text};goog.debug={};goog.debug.Error=function(a){if(Error
.captureStackTrace)Error.captureStackTrace(this,goog.debug.Error);else{var b=Err
or().stack;b&&(this.stack=b)}a&&(this.message=String(a))};goog.inherits(goog.deb
ug.Error,Error);goog.debug.Error.prototype.name="CustomError";goog.dom={};goog.d
om.NodeType={ELEMENT:1,ATTRIBUTE:2,TEXT:3,CDATA_SECTION:4,ENTITY_REFERENCE:5,ENT
ITY:6,PROCESSING_INSTRUCTION:7,COMMENT:8,DOCUMENT:9,DOCUMENT_TYPE:10,DOCUMENT_FR
AGMENT:11,NOTATION:12};goog.string={};goog.string.Unicode={NBSP:"\u00a0"};goog.s
tring.startsWith=function(a,b){return 0==a.lastIndexOf(b,0)};goog.string.endsWit
h=function(a,b){var c=a.length-b.length;return 0<=c&&a.indexOf(b,c)==c};goog.str
ing.caseInsensitiveStartsWith=function(a,b){return 0==goog.string.caseInsensitiv
eCompare(b,a.substr(0,b.length))};goog.string.caseInsensitiveEndsWith=function(a
,b){return 0==goog.string.caseInsensitiveCompare(b,a.substr(a.length-b.length,b.
length))}; | 85 backwardError:"no_previous_section"},control:{predicate:"controlPredicate",forwa
rdError:"no_next_control",backwardError:"no_previous_control"}};cvox.Cursor=func
tion(a,b,c){this.node=a;this.index=b;this.text=c};cvox.Cursor.prototype.clone=fu
nction(){return new cvox.Cursor(this.node,this.index,this.text)};cvox.Cursor.pro
totype.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.node&&this.index=
=a.index&&this.text==a.text};goog.debug={};goog.debug.Error=function(a){if(Error
.captureStackTrace)Error.captureStackTrace(this,goog.debug.Error);else{var b=Err
or().stack;b&&(this.stack=b)}a&&(this.message=String(a))};goog.inherits(goog.deb
ug.Error,Error);goog.debug.Error.prototype.name="CustomError";goog.dom={};goog.d
om.NodeType={ELEMENT:1,ATTRIBUTE:2,TEXT:3,CDATA_SECTION:4,ENTITY_REFERENCE:5,ENT
ITY:6,PROCESSING_INSTRUCTION:7,COMMENT:8,DOCUMENT:9,DOCUMENT_TYPE:10,DOCUMENT_FR
AGMENT:11,NOTATION:12};goog.string={};goog.string.Unicode={NBSP:"\u00a0"};goog.s
tring.startsWith=function(a,b){return 0==a.lastIndexOf(b,0)};goog.string.endsWit
h=function(a,b){var c=a.length-b.length;return 0<=c&&a.indexOf(b,c)==c};goog.str
ing.caseInsensitiveStartsWith=function(a,b){return 0==goog.string.caseInsensitiv
eCompare(b,a.substr(0,b.length))};goog.string.caseInsensitiveEndsWith=function(a
,b){return 0==goog.string.caseInsensitiveCompare(b,a.substr(a.length-b.length,b.
length))}; |
86 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))}; | 86 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))}; |
87 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
," ")}; | 87 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
," ")}; |
88 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,"")}; | 88 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,"")}; |
89 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; | 89 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; |
90 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))}; | 90 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))}; |
91 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>")}; | 91 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>")}; |
92 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_, | 92 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_, |
93 """));-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}; | 93 """));-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}; |
94 goog.string.unescapeEntitiesWithDocument=function(a,b){return goog.string.contai
ns(a,"&")?goog.string.unescapeEntitiesUsingDom_(a,b):a}; | 94 goog.string.unescapeEntitiesWithDocument=function(a,b){return goog.string.contai
ns(a,"&")?goog.string.unescapeEntitiesUsingDom_(a,b):a}; |
95 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})}; | 95 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})}; |
96 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)}; | 96 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)}; |
97 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}; | 97 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}; |
98 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_
={"'":"\\'"}; | 98 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_
={"'":"\\'"}; |
99 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("")}; | 99 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("")}; |
100 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}; | 100 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}; |
101 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,"")}; | 101 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,"")}; |
102 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}; | 102 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}; |
103 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)}; | 103 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)}; |
104 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)|| | 104 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)|| |
105 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_++}; | 105 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_++}; |
106 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()}; | 106 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()}; |
107 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||[])
;}; | 107 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|
|[]);}; |
108 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));}; | 108 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));}; |
109 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}; | 109 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}; |
110 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}; | 110 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}; |
111 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}; | 111 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}; |
112 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}; | 112 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}; |
113 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; | 113 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; |
114 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}; | 114 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}; |
115 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}; | 115 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}; |
116 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)}; | 116 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)}; |
117 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}; | 117 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... |
131 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}; | 131 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}; |
132 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}; | 132 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}; |
133 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}; | 133 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}; |
134 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}; | 134 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}; |
135 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])}; | 135 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])}; |
136 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)}; | 136 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)}; |
137 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)))}; | 137 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)))}; |
138 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}; | 138 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}; |
139 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}; | 139 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}; |
140 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)}; | 140 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)}; |
141 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))}; | 141 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))}; |
142 goog.math.safeCeil=function(a,b){goog.asserts.assert(!goog.isDef(b)||0<b);return
Math.ceil(a-(b||2E-15))};goog.i18n={}; | 142 goog.math.safeCeil=function(a,b){goog.asserts.assert(!goog.isDef(b)||0<b);return
Math.ceil(a-(b||2E-15))};goog.i18n={}; |
143 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"}, | 143 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"}, |
144 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; | 144 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; |
145 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"}, | 145 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"}, |
146 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; | 146 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; |
147 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"}, | 147 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"}, |
148 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"}, | 148 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"}, |
149 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; | 149 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; |
150 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"}, | 150 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"}, |
151 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; | 151 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 510 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
662 b=a.substring(b);""!=b&&d.push({type:goog.i18n.MessageFormat.Element_.STRING,val
ue:b});return d};goog.i18n.MessageFormat.PLURAL_BLOCK_RE_=/^\s*(\w+)\s*,\s*plura
l\s*,(?:\s*offset:(\d+))?/;goog.i18n.MessageFormat.ORDINAL_BLOCK_RE_=/^\s*(\w+)\
s*,\s*selectordinal\s*,/;goog.i18n.MessageFormat.SELECT_BLOCK_RE_=/^\s*(\w+)\s*,
\s*select\s*,/; | 662 b=a.substring(b);""!=b&&d.push({type:goog.i18n.MessageFormat.Element_.STRING,val
ue:b});return d};goog.i18n.MessageFormat.PLURAL_BLOCK_RE_=/^\s*(\w+)\s*,\s*plura
l\s*,(?:\s*offset:(\d+))?/;goog.i18n.MessageFormat.ORDINAL_BLOCK_RE_=/^\s*(\w+)\
s*,\s*selectordinal\s*,/;goog.i18n.MessageFormat.SELECT_BLOCK_RE_=/^\s*(\w+)\s*,
\s*select\s*,/; |
663 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}; | 663 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}; |
664 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; | 664 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; |
665 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."); | 665 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."); |
666 b.push(d)}return b}; | 666 b.push(d)}return b}; |
667 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, | 667 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, |
668 "")]=f;d++}goog.asserts.assertArray(c[goog.i18n.MessageFormat.OTHER_],"Missing o
ther key in select statement.");return c}; | 668 "")]=f;d++}goog.asserts.assertArray(c[goog.i18n.MessageFormat.OTHER_],"Missing o
ther key in select statement.");return c}; |
669 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); | 669 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); |
670 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}; | 670 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}; |
671 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."); | 671 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."); |
672 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.TtsInterface=function(){};cvox.TtsInterface.prototype.speak
=function(){};cvox.TtsInterface.prototype.isSpeaking=function(){};cvox.TtsInterf
ace.prototype.stop=function(){};cvox.TtsInterface.prototype.increaseOrDecreasePr
operty=function(){};cvox.TtsInterface.prototype.getDefaultProperty=function(){};
cvox.AbstractTts=function(){this.ttsProperties={};this.propertyDefault={rate:0.5
,pitch:0.5,volume:0.5};this.propertyMin={rate:0,pitch:0,volume:0};this.propertyM
ax={rate:1,pitch:1,volume:1};this.propertyStep={rate:0.1,pitch:0.1,volume:0.1};i
f(void 0==cvox.AbstractTts.pronunciationDictionaryRegexp_){var a=[],b;for(b in c
vox.AbstractTts.PRONUNCIATION_DICTIONARY)a.push(b);a="\\b("+a.join("|")+")\\b";c
vox.AbstractTts.pronunciationDictionaryRegexp_=RegExp(a,"ig")}if(void 0==cvox.Ab
stractTts.substitutionDictionaryRegexp_){var a= | 672 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.TtsInterface=function(){};cvox.TtsInterface.prototype.speak
=function(){};cvox.TtsInterface.prototype.isSpeaking=function(){};cvox.TtsInterf
ace.prototype.stop=function(){};cvox.TtsInterface.prototype.increaseOrDecreasePr
operty=function(){};cvox.TtsInterface.prototype.getDefaultProperty=function(){};
cvox.AbstractTts=function(){this.ttsProperties={};this.propertyDefault={rate:0.5
,pitch:0.5,volume:0.5};this.propertyMin={rate:0,pitch:0,volume:0};this.propertyM
ax={rate:1,pitch:1,volume:1};this.propertyStep={rate:0.1,pitch:0.1,volume:0.1};i
f(void 0==cvox.AbstractTts.pronunciationDictionaryRegexp_){var a=[],b;for(b in c
vox.AbstractTts.PRONUNCIATION_DICTIONARY)a.push(b);a="\\b("+a.join("|")+")\\b";c
vox.AbstractTts.pronunciationDictionaryRegexp_=new RegExp(a,"ig")}if(void 0==cvo
x.AbstractTts.substitutionDictionaryRegexp_){var a= |
673 [],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(){}; | 673 [],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(){}; |
674 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)};cvox.AbstractTts
.RATE="rate";cvox.AbstractTts.PITCH="pitch";cvox.AbstractTts.VOLUME="volume";cvo
x.AbstractTts.LANG="lang";cvox.AbstractTts.RELATIVE_RATE="relativeRate";cvox.Abs
tractTts.RELATIVE_PITCH="relativePitch";cvox.AbstractTts.RELATIVE_VOLUME="relati
veVolume"; | 674 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)};cvox.AbstractTts
.RATE="rate";cvox.AbstractTts.PITCH="pitch";cvox.AbstractTts.VOLUME="volume";cvo
x.AbstractTts.LANG="lang";cvox.AbstractTts.RELATIVE_RATE="relativeRate";cvox.Abs
tractTts.RELATIVE_PITCH="relativePitch";cvox.AbstractTts.RELATIVE_VOLUME="relati
veVolume"; |
675 cvox.AbstractTts.COLOR="color";cvox.AbstractTts.FONT_WEIGHT="fontWeight";cvox.Ab
stractTts.PUNCTUATION_ECHO="punctuationEcho";cvox.AbstractTts.PAUSE="pause";cvox
.AbstractTts.PERSONALITY_ANNOTATION={relativePitch:-0.25,color:"yellow",punctuat
ionEcho:"none"};cvox.AbstractTts.PERSONALITY_ANNOUNCEMENT={punctuationEcho:"none
"};cvox.AbstractTts.PERSONALITY_SYSTEM_ALERT={punctuationEcho:"none",doNotInterr
upt:!0};cvox.AbstractTts.PERSONALITY_ASIDE={relativePitch:-0.1,color:"#669"}; | 675 cvox.AbstractTts.COLOR="color";cvox.AbstractTts.FONT_WEIGHT="fontWeight";cvox.Ab
stractTts.PUNCTUATION_ECHO="punctuationEcho";cvox.AbstractTts.PAUSE="pause";cvox
.AbstractTts.PERSONALITY_ANNOTATION={relativePitch:-0.25,color:"yellow",punctuat
ionEcho:"none"};cvox.AbstractTts.PERSONALITY_ANNOUNCEMENT={punctuationEcho:"none
"};cvox.AbstractTts.PERSONALITY_SYSTEM_ALERT={punctuationEcho:"none",doNotInterr
upt:!0};cvox.AbstractTts.PERSONALITY_ASIDE={relativePitch:-0.1,color:"#669"}; |
676 cvox.AbstractTts.PERSONALITY_CAPITAL={relativePitch:0.6};cvox.AbstractTts.PERSON
ALITY_DELETED={punctuationEcho:"none",relativePitch:-0.6};cvox.AbstractTts.PERSO
NALITY_QUOTE={relativePitch:0.1,color:"#b6b",fontWeight:"bold"};cvox.AbstractTts
.PERSONALITY_STRONG={relativePitch:0.1,color:"#b66",fontWeight:"bold"};cvox.Abst
ractTts.PERSONALITY_EMPHASIS={relativeVolume:0.1,relativeRate:-0.1,color:"#6bb",
fontWeight:"bold"};cvox.AbstractTts.DEBUG=!0;cvox.AbstractTts.QUEUE_MODE_FLUSH=0
; | 676 cvox.AbstractTts.PERSONALITY_CAPITAL={relativePitch:0.6};cvox.AbstractTts.PERSON
ALITY_DELETED={punctuationEcho:"none",relativePitch:-0.6};cvox.AbstractTts.PERSO
NALITY_QUOTE={relativePitch:0.1,color:"#b6b",fontWeight:"bold"};cvox.AbstractTts
.PERSONALITY_STRONG={relativePitch:0.1,color:"#b66",fontWeight:"bold"};cvox.Abst
ractTts.PERSONALITY_EMPHASIS={relativeVolume:0.1,relativeRate:-0.1,color:"#6bb",
fontWeight:"bold"};cvox.AbstractTts.DEBUG=!0;cvox.AbstractTts.QUEUE_MODE_FLUSH=0
; |
677 cvox.AbstractTts.QUEUE_MODE_QUEUE=1; | 677 cvox.AbstractTts.QUEUE_MODE_QUEUE=1; |
678 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", | 678 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", |
679 "\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"}; | 679 "\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"}; |
680 cvox.AbstractTts.SUBSTITUTION_DICTIONARY={"://":"colon slash slash","\u00bc":"on
e fourth","\u00bd":"one half","\u2190":"left arrow","\u2191":"up arrow","\u2192"
:"right arrow","\u2193":"down arrow","\u21d0":"left double arrow","\u21d1":"up d
ouble arrow","\u21d2":"right double arrow","\u21d3":"down double arrow","\u21e6
":"left arrow","\u21e7":"up arrow","\u21e8":"right arrow","\u21e9":"down arrow",
"\u2303":"control","\u2318":"command","\u2325":"option","\u25b2":"up triangle","
\u25b3":"up triangle", | 680 cvox.AbstractTts.SUBSTITUTION_DICTIONARY={"://":"colon slash slash","\u00bc":"on
e fourth","\u00bd":"one half","\u2190":"left arrow","\u2191":"up arrow","\u2192"
:"right arrow","\u2193":"down arrow","\u21d0":"left double arrow","\u21d1":"up d
ouble arrow","\u21d2":"right double arrow","\u21d3":"down double arrow","\u21e6
":"left arrow","\u21e7":"up arrow","\u21e8":"right arrow","\u21e9":"down arrow",
"\u2303":"control","\u2318":"command","\u2325":"option","\u25b2":"up triangle","
\u25b3":"up triangle", |
681 "\u25b4":"up triangle","\u25b5":"up triangle","\u25b6":"right triangle","\u25b7"
:"right triangle","\u25b8":"right triangle","\u25b9":"right triangle","\u25ba":"
right pointer","\u25bb":"right pointer","\u25bc":"down triangle","\u25bd":"down
triangle","\u25be":"down triangle","\u25bf":"down triangle","\u25c0":"left trian
gle","\u25c1":"left triangle","\u25c2":"left triangle","\u25c3":"left triangle",
"\u25c4":"left pointer","\u25c5":"left pointer","\uf8ff":"apple"}; | 681 "\u25b4":"up triangle","\u25b5":"up triangle","\u25b6":"right triangle","\u25b7"
:"right triangle","\u25b8":"right triangle","\u25b9":"right triangle","\u25ba":"
right pointer","\u25bb":"right pointer","\u25bc":"down triangle","\u25bd":"down
triangle","\u25be":"down triangle","\u25bf":"down triangle","\u25c0":"left trian
gle","\u25c1":"left triangle","\u25c2":"left triangle","\u25c3":"left triangle",
"\u25c4":"left pointer","\u25c5":"left pointer","\uf8ff":"apple"}; |
682 cvox.AbstractTts.repetitionRegexp_=/([-\/\\|!@#$%^&*\(\)=_+\[\]\{\}.?;'":<>])\1{
2,}/g;cvox.AbstractTts.repetitionReplace_=function(a){var b=a.length;return" "+(
new goog.i18n.MessageFormat(cvox.ChromeVox.msgs.getMsg(cvox.AbstractTts.CHARACTE
R_DICTIONARY[a[0]]))).format({COUNT:b})+" "};cvox.AbstractTts.prototype.getDefau
ltProperty=function(a){return this.propertyDefault[a]};cvox.AbstractEarcons=func
tion(){this.enabled=!0};cvox.AbstractEarcons.prototype.playEarcon=function(){};c
vox.AbstractEarcons.prototype.playEarconByName=function(a){this.playEarcon(this.
getEarconId(a))}; | 682 cvox.AbstractTts.repetitionRegexp_=/([-\/\\|!@#$%^&*\(\)=_+\[\]\{\}.?;'":<>])\1{
2,}/g;cvox.AbstractTts.repetitionReplace_=function(a){var b=a.length;return" "+(
new goog.i18n.MessageFormat(cvox.ChromeVox.msgs.getMsg(cvox.AbstractTts.CHARACTE
R_DICTIONARY[a[0]]))).format({COUNT:b})+" "};cvox.AbstractTts.prototype.getDefau
ltProperty=function(a){return this.propertyDefault[a]};cvox.AbstractEarcons=func
tion(){this.enabled=!0};cvox.AbstractEarcons.prototype.playEarcon=function(){};c
vox.AbstractEarcons.prototype.playEarconByName=function(a){this.playEarcon(this.
getEarconId(a))}; |
683 cvox.AbstractEarcons.prototype.getEarconId=function(a){this.earconNamesToIds||(t
his.earconNamesToIds={},this.earconNamesToIds.ALERT_MODAL=cvox.AbstractEarcons.A
LERT_MODAL,this.earconNamesToIds.ALERT_NONMODAL=cvox.AbstractEarcons.ALERT_NONMO
DAL,this.earconNamesToIds.BULLET=cvox.AbstractEarcons.BULLET,this.earconNamesToI
ds.BUSY_PROGRESS_LOOP=cvox.AbstractEarcons.BUSY_PROGRESS_LOOP,this.earconNamesTo
Ids.BUSY_WORKING_LOOP=cvox.AbstractEarcons.BUSY_WORKING_LOOP,this.earconNamesToI
ds.BUTTON=cvox.AbstractEarcons.BUTTON, | 683 cvox.AbstractEarcons.prototype.getEarconId=function(a){this.earconNamesToIds||(t
his.earconNamesToIds={},this.earconNamesToIds.ALERT_MODAL=cvox.AbstractEarcons.A
LERT_MODAL,this.earconNamesToIds.ALERT_NONMODAL=cvox.AbstractEarcons.ALERT_NONMO
DAL,this.earconNamesToIds.BULLET=cvox.AbstractEarcons.BULLET,this.earconNamesToI
ds.BUSY_PROGRESS_LOOP=cvox.AbstractEarcons.BUSY_PROGRESS_LOOP,this.earconNamesTo
Ids.BUSY_WORKING_LOOP=cvox.AbstractEarcons.BUSY_WORKING_LOOP,this.earconNamesToI
ds.BUTTON=cvox.AbstractEarcons.BUTTON, |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
756 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), | 756 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), |
757 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)):""}; | 757 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)):""}; |
758 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== | 758 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== |
759 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):""}; | 759 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):""}; |
760 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}; | 760 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}; |
761 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; | 761 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; |
762 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"== | 762 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"== |
763 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}; | 763 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}; |
764 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}; | 764 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}; |
765 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], | 765 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], |
766 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}; | 766 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}; |
| 767 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}; |
767 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? | 768 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? |
768 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]&& | 769 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]&& |
769 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}; | 770 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}; |
770 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}; | 771 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}; |
771 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", | 772 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", |
772 !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)}; | 773 !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)}; |
773 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)}}; | 774 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)}}; |
774 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}; | 775 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}; |
775 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}; | 776 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}; |
776 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)}; | 777 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)}; |
777 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}; | 778 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}; |
778 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)}; | 779 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)}; |
779 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}; | 780 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}; |
780 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)}; | 781 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)}; |
781 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}; | 782 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}; |
782 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|| | 783 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|| |
783 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)}; | 784 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)}; |
784 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}; | 785 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}; |
785 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}; | 786 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}; |
786 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}; | 787 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}; |
787 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}; | 788 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}; |
788 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)}}; | 789 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)}}; |
789 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)}; | 790 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)}; |
790 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)}; | 791 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)}; |
791 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}; | 792 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}; |
792 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}}; | 793 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}}; |
793 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}; | 794 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}; |
794 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}; | 795 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}; |
795 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]}; | 796 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]}; |
796 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]}; | 797 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]}; |
797 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)}}; | 798 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)}}; |
798 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, | 799 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, |
799 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}; | 800 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}; |
800 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}; | 801 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}; |
801 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}; | 802 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}; |
802 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)}; | 803 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)}; |
803 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)}; | 804 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)}; |
804 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()}; | 805 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()}; |
805 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}; | 806 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}; |
806 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}; | 807 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 30 matching lines...) Expand all Loading... |
837 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}; | 838 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}; |
838 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)}; | 839 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)}; |
839 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}}; | 840 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}}; |
840 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}}; | 841 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}}; |
841 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)}; | 842 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)}; |
842 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)}; | 843 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)}; |
843 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}; | 844 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}; |
844 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= | 845 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= |
845 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})}; | 846 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})}; |
846 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()}; | 847 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()}; |
847 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.LibLouis=function(a,b){this.nmfPath_=a;this.tablesD
ir_=goog.isDef(b)?b:null;this.embedElement_=null;this.instanceState_=cvox.LibLou
is.InstanceState.NOT_LOADED;this.pendingTranslators_=[];this.pendingRpcCallbacks
_={};this.nextMessageId_=1};cvox.LibLouis.InstanceState={NOT_LOADED:0,LOADING:1,
LOADED:2,ERROR:-1}; | 848 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.LibLouis=function(a,b){this.nmfPath_=a;this.tablesDir_=goog.isDe
f(b)?b:null;this.embedElement_=null;this.instanceState_=cvox.LibLouis.InstanceSt
ate.NOT_LOADED;this.pendingTranslators_=[];this.pendingRpcCallbacks_={};this.nex
tMessageId_=1};cvox.LibLouis.InstanceState={NOT_LOADED:0,LOADING:1,LOADED:2,ERRO
R:-1}; |
848 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); | 849 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); |
849 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_}; | 850 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_}; |
850 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))}}; | 851 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))}}; |
851 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}; | 852 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}; |
852 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}; | 853 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}; |
853 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}; | 854 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}; |
854 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}; | 855 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}; |
855 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)})}; | 856 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)})}; |
856 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={}); | 857 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={}); |
857 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); | 858 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); |
858 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)&& | 859 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)&& |
859 (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()}); | 860 (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()}); |
860 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&& | 861 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&& |
861 (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)})); | 862 (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)})); |
862 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"; | 863 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"; |
863 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)}; | 864 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)}; |
864 cvox.ExtensionBridge.removeMessageListeners=function(){cvox.ExtensionBridge.mess
ageListeners.length=0};cvox.ExtensionBridge.uniqueId=function(){return cvox.Exte
nsionBridge.id_}; | 865 cvox.ExtensionBridge.removeMessageListeners=function(){cvox.ExtensionBridge.mess
ageListeners.length=0};cvox.ExtensionBridge.uniqueId=function(){return cvox.Exte
nsionBridge.id_}; |
865 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, | 866 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, |
866 1);break}}))};chrome.extension.onConnect.addListener(b);chrome.extension.onConne
ctExternal.addListener(b)}; | 867 1);break}}))};chrome.extension.onConnect.addListener(b)}; |
867 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()}; | 868 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()}; |
868 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](); | 869 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](); |
869 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)}; | 870 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)}; |
870 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)}; | 871 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)}; |
871 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]}; | 872 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]}; |
872 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})}; | 873 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})}; |
873 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)))}; | 874 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)))}; |
874 cvox.BrailleCaptionsBackground.getVirtualDisplayState=function(){var a=cvox.Brai
lleCaptionsBackground;return a.isEnabled()?{available:!0,textCellCount:40}:{avai
lable:!1}};cvox.ChromeVoxEventSuspender=function(){};cvox.ChromeVoxEventSuspende
r.suspendLevel_=0;cvox.ChromeVoxEventSuspender.enterSuspendEvents=function(){cvo
x.ChromeVoxEventSuspender.suspendLevel_+=1};cvox.ChromeVoxEventSuspender.exitSus
pendEvents=function(){cvox.ChromeVoxEventSuspender.suspendLevel_-=1};cvox.Chrome
VoxEventSuspender.areEventsSuspended=function(){return 0<cvox.ChromeVoxEventSusp
ender.suspendLevel_}; | 875 cvox.BrailleCaptionsBackground.getVirtualDisplayState=function(){var a=cvox.Brai
lleCaptionsBackground;return a.isEnabled()?{available:!0,textCellCount:40}:{avai
lable:!1}};cvox.ChromeVoxEventSuspender=function(){};cvox.ChromeVoxEventSuspende
r.suspendLevel_=0;cvox.ChromeVoxEventSuspender.enterSuspendEvents=function(){cvo
x.ChromeVoxEventSuspender.suspendLevel_+=1};cvox.ChromeVoxEventSuspender.exitSus
pendEvents=function(){cvox.ChromeVoxEventSuspender.suspendLevel_-=1};cvox.Chrome
VoxEventSuspender.areEventsSuspended=function(){return 0<cvox.ChromeVoxEventSusp
ender.suspendLevel_}; |
875 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={}; | 876 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={}; |
876 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&& | 877 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&& |
877 (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))}; | 878 (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))}; |
878 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(" "); | 879 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(" "); |
879 cvox.BrailleUtil.TEMPLATE={base:"c n v r s",aria_role_alert:"r: n",aria_role_but
ton:"[n]",aria_role_textbox:"n: v r",input_type_button:"[n]",input_type_checkbox
:"n (s)",input_type_email:"n: v r",input_type_number:"n: v r",input_type_passwor
d:"n: v r",input_type_search:"n: v r",input_type_submit:"[n]",input_type_text:"n
: v r",input_type_tel:"n: v r",input_type_url:"n: v r",tag_button:"[n]",tag_text
area:"n: v r"};cvox.BrailleUtil.ValueSpan=function(a){this.offset=a}; | 880 cvox.BrailleUtil.TEMPLATE={base:"c n v r s",aria_role_alert:"r: n",aria_role_but
ton:"[n]",aria_role_textbox:"n: v r",input_type_button:"[n]",input_type_checkbox
:"n (s)",input_type_email:"n: v r",input_type_number:"n: v r",input_type_passwor
d:"n: v r",input_type_search:"n: v r",input_type_submit:"[n]",input_type_text:"n
: v r",input_type_tel:"n: v r",input_type_url:"n: v r",tag_button:"[n]",tag_text
area:"n: v r"};cvox.BrailleUtil.ValueSpan=function(a){this.offset=a}; |
880 cvox.BrailleUtil.ValueSpan.fromJson=function(a){return new cvox.BrailleUtil.Valu
eSpan(a.offset)};cvox.BrailleUtil.ValueSpan.prototype.toJson=function(){return t
his};cvox.Spannable.registerSerializableSpan(cvox.BrailleUtil.ValueSpan,"cvox.Br
ailleUtil.ValueSpan",cvox.BrailleUtil.ValueSpan.fromJson,cvox.BrailleUtil.ValueS
pan.prototype.toJson);cvox.BrailleUtil.ValueSelectionSpan=function(){};cvox.Span
nable.registerStatelessSerializableSpan(cvox.BrailleUtil.ValueSelectionSpan,"cvo
x.BrailleUtil.ValueSelectionSpan"); | 881 cvox.BrailleUtil.ValueSpan.fromJson=function(a){return new cvox.BrailleUtil.Valu
eSpan(a.offset)};cvox.BrailleUtil.ValueSpan.prototype.toJson=function(){return t
his};cvox.Spannable.registerSerializableSpan(cvox.BrailleUtil.ValueSpan,"cvox.Br
ailleUtil.ValueSpan",cvox.BrailleUtil.ValueSpan.fromJson,cvox.BrailleUtil.ValueS
pan.prototype.toJson);cvox.BrailleUtil.ValueSelectionSpan=function(){};cvox.Span
nable.registerStatelessSerializableSpan(cvox.BrailleUtil.ValueSelectionSpan,"cvo
x.BrailleUtil.ValueSelectionSpan"); |
881 cvox.BrailleUtil.getName=function(a){return a?cvox.DomUtil.getName(a).trim():""}
;cvox.BrailleUtil.getRoleMsg=function(a){if(!a)return"";(a=cvox.DomUtil.getRoleM
sg(a,cvox.VERBOSITY_VERBOSE))&&(a=cvox.DomUtil.collapseWhitespace(a));a&&0<a.len
gth&&cvox.ChromeVox.msgs.getMsg(a+"_brl")&&(a+="_brl");return a};cvox.BrailleUti
l.getRole=function(a){return a?(a=cvox.BrailleUtil.getRoleMsg(a))?cvox.ChromeVox
.msgs.getMsg(a):"":""}; | 882 cvox.BrailleUtil.getName=function(a){return a?cvox.DomUtil.getName(a).trim():""}
;cvox.BrailleUtil.getRoleMsg=function(a){if(!a)return"";(a=cvox.DomUtil.getRoleM
sg(a,cvox.VERBOSITY_VERBOSE))&&(a=cvox.DomUtil.collapseWhitespace(a));a&&0<a.len
gth&&cvox.ChromeVox.msgs.getMsg(a+"_brl")&&(a+="_brl");return a};cvox.BrailleUti
l.getRole=function(a){return a?(a=cvox.BrailleUtil.getRoleMsg(a))?cvox.ChromeVox
.msgs.getMsg(a):"":""}; |
882 cvox.BrailleUtil.getState=function(a){return a?cvox.NodeStateUtil.expand(cvox.Do
mUtil.getStateMsgs(a,!0).map(function(a){cvox.ChromeVox.msgs.getMsg(a[0]+"_brl")
&&(a[0]+="_brl");return a})):""};cvox.BrailleUtil.getContainer=function(a,b){if(
!a||!b)return"";for(var c=cvox.DomUtil.getUniqueAncestors(a,b),d=0,e;e=c[d];d++)
if((e=cvox.BrailleUtil.getRoleMsg(e))&&-1!=cvox.BrailleUtil.CONTAINER.indexOf(e)
)return cvox.ChromeVox.msgs.getMsg(e);return""}; | 883 cvox.BrailleUtil.getState=function(a){return a?cvox.NodeStateUtil.expand(cvox.Do
mUtil.getStateMsgs(a,!0).map(function(a){cvox.ChromeVox.msgs.getMsg(a[0]+"_brl")
&&(a[0]+="_brl");return a})):""};cvox.BrailleUtil.getContainer=function(a,b){if(
!a||!b)return"";for(var c=cvox.DomUtil.getUniqueAncestors(a,b),d=0,e;e=c[d];d++)
if((e=cvox.BrailleUtil.getRoleMsg(e))&&-1!=cvox.BrailleUtil.CONTAINER.indexOf(e)
)return cvox.ChromeVox.msgs.getMsg(e);return""}; |
883 cvox.BrailleUtil.getValue=function(a){if(!a)return new cvox.Spannable;var b=new
cvox.BrailleUtil.ValueSpan(0);if(cvox.DomUtil.isInputTypeText(a)){var c=a.value;
"password"===a.type&&(c=c.replace(/./g,"*"));b=new cvox.Spannable(c,b);if(a===do
cument.activeElement&&cvox.DomUtil.doesInputSupportSelection(a)){var d=goog.math
.clamp(a.selectionStart,0,b.getLength());a=goog.math.clamp(a.selectionEnd,0,b.ge
tLength());b.setSpan(new cvox.BrailleUtil.ValueSelectionSpan,Math.min(d,a),Math.
max(d,a))}return b}if(a instanceof | 884 cvox.BrailleUtil.getValue=function(a){if(!a)return new cvox.Spannable;var b=new
cvox.BrailleUtil.ValueSpan(0);if(cvox.DomUtil.isInputTypeText(a)){var c=a.value;
"password"===a.type&&(c=c.replace(/./g,"*"));b=new cvox.Spannable(c,b);if(a===do
cument.activeElement&&cvox.DomUtil.doesInputSupportSelection(a)){var d=goog.math
.clamp(a.selectionStart,0,b.getLength());a=goog.math.clamp(a.selectionEnd,0,b.ge
tLength());b.setSpan(new cvox.BrailleUtil.ValueSelectionSpan,Math.min(d,a),Math.
max(d,a))}return b}if(a instanceof |
884 HTMLTextAreaElement){d=new cvox.EditableTextAreaShadow;d.update(a);var e=d.getLi
neIndex(a.selectionEnd),c=d.getLineStart(e),d=d.getLineEnd(e),d=a.value.substrin
g(c,d);b.offset=c;b=new cvox.Spannable(d,b);a===document.activeElement&&(d=goog.
math.clamp(a.selectionStart-c,0,b.getLength()),a=goog.math.clamp(a.selectionEnd-
c,0,b.getLength()),b.setSpan(new cvox.BrailleUtil.ValueSelectionSpan,Math.min(d,
a),Math.max(d,a)));return b}return new cvox.Spannable(cvox.DomUtil.getValue(a),b
)}; | 885 HTMLTextAreaElement){d=new cvox.EditableTextAreaShadow;d.update(a);var e=d.getLi
neIndex(a.selectionEnd),c=d.getLineStart(e),d=d.getLineEnd(e),d=a.value.substrin
g(c,d);b.offset=c;b=new cvox.Spannable(d,b);a===document.activeElement&&(d=goog.
math.clamp(a.selectionStart-c,0,b.getLength()),a=goog.math.clamp(a.selectionEnd-
c,0,b.getLength()),b.setSpan(new cvox.BrailleUtil.ValueSelectionSpan,Math.min(d,
a),Math.max(d,a)));return b}return new cvox.Spannable(cvox.DomUtil.getValue(a),b
)}; |
885 cvox.BrailleUtil.getTemplated=function(a,b,c){c=c?c:{};var d=c.roleMsg||(b?cvox.
DomUtil.getRoleMsg(b,cvox.VERBOSITY_VERBOSE):""),e=c.role;!e&&c.roleMsg&&(e=cvox
.ChromeVox.msgs.getMsg(c.roleMsg+"_brl")||cvox.ChromeVox.msgs.getMsg(c.roleMsg))
;for(var e=e||cvox.BrailleUtil.getRole(b),d=cvox.BrailleUtil.TEMPLATE[d]||cvox.B
railleUtil.TEMPLATE.base,f=new cvox.Spannable,g=function(d){switch(d){case "n":r
eturn c.name||cvox.BrailleUtil.getName(b);case "r":return e;case "s":return c.st
ate||cvox.BrailleUtil.getState(b); | 886 cvox.BrailleUtil.getTemplated=function(a,b,c){c=c?c:{};var d=c.roleMsg||(b?cvox.
DomUtil.getRoleMsg(b,cvox.VERBOSITY_VERBOSE):""),e=c.role;!e&&c.roleMsg&&(e=cvox
.ChromeVox.msgs.getMsg(c.roleMsg+"_brl")||cvox.ChromeVox.msgs.getMsg(c.roleMsg))
;for(var e=e||cvox.BrailleUtil.getRole(b),d=cvox.BrailleUtil.TEMPLATE[d]||cvox.B
railleUtil.TEMPLATE.base,f=new cvox.Spannable,g=function(d){switch(d){case "n":r
eturn c.name||cvox.BrailleUtil.getName(b);case "r":return e;case "s":return c.st
ate||cvox.BrailleUtil.getState(b); |
886 case "c":return c.container||cvox.BrailleUtil.getContainer(a,b);case "v":return
c.value||cvox.BrailleUtil.getValue(b);default:return d}},h=0;h<d.length;h++){var
k=g(d[h]);f.append(k);k.toString()||" "!=d[h+1]||h++}return f.trimRight()};cvox
.BrailleUtil.createValue=function(a,b,c,d){a=new cvox.Spannable(a,new cvox.Brail
leUtil.ValueSpan(d||0));goog.isDef(b)&&(c=goog.isDef(c)?c:b,b>c&&(d=b,b=c,c=d),a
.setSpan(new cvox.BrailleUtil.ValueSelectionSpan,b,c));return a}; | 887 case "c":return c.container||cvox.BrailleUtil.getContainer(a,b);case "v":return
c.value||cvox.BrailleUtil.getValue(b);default:return d}},h=0;h<d.length;h++){var
k=g(d[h]);f.append(k);k.toString()||" "!=d[h+1]||h++}return f.trimRight()};cvox
.BrailleUtil.createValue=function(a,b,c,d){a=new cvox.Spannable(a,new cvox.Brail
leUtil.ValueSpan(d||0));goog.isDef(b)&&(c=goog.isDef(c)?c:b,b>c&&(d=b,b=c,c=d),a
.setSpan(new cvox.BrailleUtil.ValueSelectionSpan,b,c));return a}; |
887 cvox.BrailleUtil.click=function(a,b){var c=a.text.getSpans(b||0),d=c.filter(func
tion(a){return a instanceof Node})[0];d&&(cvox.Focuser.setFocus(d),goog.isDef(b)
&&(cvox.DomUtil.isInputTypeText(d)||d instanceof HTMLTextAreaElement)&&(c=c.filt
er(function(a){return a instanceof cvox.BrailleUtil.ValueSpan})[0]))&&(c=b-a.tex
t.getSpanStart(c)+c.offset,cvox.ChromeVoxEventWatcher.setUpTextHandler(),d.selec
tionStart=d.selectionEnd=c,cvox.ChromeVoxEventWatcher.handleTextChanged(!0));cvo
x.DomUtil.clickElem(d|| | 888 cvox.BrailleUtil.click=function(a,b){var c=a.text.getSpans(b||0),d=c.filter(func
tion(a){return a instanceof Node})[0];d&&(cvox.Focuser.setFocus(d),goog.isDef(b)
&&(cvox.DomUtil.isInputTypeText(d)||d instanceof HTMLTextAreaElement)&&(c=c.filt
er(function(a){return a instanceof cvox.BrailleUtil.ValueSpan})[0]))&&(c=b-a.tex
t.getSpanStart(c)+c.offset,cvox.ChromeVoxEventWatcher.setUpTextHandler(),d.selec
tionStart=d.selectionEnd=c,cvox.ChromeVoxEventWatcher.handleTextChanged(!0));cvo
x.DomUtil.clickElem(d|| |
888 cvox.ChromeVox.navigationManager.getCurrentNode(),!1,!1)};cvox.ExpandingBrailleT
ranslator=function(a,b){this.defaultTranslator_=a;this.uncontractedTranslator_=b
||null}; | 889 cvox.ChromeVox.navigationManager.getCurrentNode(),!1,!1)};cvox.ExpandingBrailleT
ranslator=function(a,b){this.defaultTranslator_=a;this.uncontractedTranslator_=b
||null}; |
889 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, | 890 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, |
890 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))}}; | 891 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- |
891 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}}; | 892 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}}; |
892 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); | 893 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}; |
893 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}; | 894 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); |
| 895 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}; |
894 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_()}; | 896 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_()}; |
895 cvox.BrailleDisplayManager.prototype.onCaptionsStateChanged_=function(){this.ref
reshDisplayState_(this.realDisplayState_)}; | 897 cvox.BrailleDisplayManager.prototype.onCaptionsStateChanged_=function(){this.ref
reshDisplayState_(this.realDisplayState_)}; |
896 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, | 898 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, |
897 c),a)}}}; | 899 c),a)}}}; |
898 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= | 900 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_= |
899 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)}; | 901 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)}; |
900 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_()}}; | 902 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_()}}; |
901 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_())}; | 903 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_())}; |
902 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_())}; | 904 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_())}; |
903 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}; | 905 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}; |
904 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)}; | 906 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)}; |
905 cvox.BrailleBackground.prototype.setCommandListener=function(){}; | 907 cvox.BrailleBackground.prototype.setCommandListener=function(){}; |
906 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= | 908 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= |
907 "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, | 909 "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, |
908 goog.bind(function(b){this.displayManager_.setTranslator(a,b)},this))},this))}}; | 910 goog.bind(function(b){this.displayManager_.setTranslator(a,b)},this))},this))}}; |
909 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))}; | 911 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)}; |
910 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.AbstractHost=function(){};cvox.AbstractHost.State={ACTI
VE:0,INACTIVE:1,KILLED:2};cvox.AbstractHost.prototype.init=function(){};cvox.Abs
tractHost.prototype.sendToBackgroundPage=function(){};cvox.AbstractHost.prototyp
e.getApiSrc=function(){return""};cvox.AbstractHost.prototype.getFileSrc=function
(){return""};cvox.AbstractHost.prototype.hasTtsCallback=function(){return!0};cvo
x.AbstractHost.prototype.mustRedispatchClickEvent=function(){return!1}; | 912 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.AbstractHost=function(){};cvox.AbstractHost.State={ACTI
VE:0,INACTIVE:1,KILLED:2};cvox.AbstractHost.prototype.init=function(){};cvox.Abs
tractHost.prototype.sendToBackgroundPage=function(){};cvox.AbstractHost.prototyp
e.getApiSrc=function(){return""};cvox.AbstractHost.prototype.getFileSrc=function
(){return""};cvox.AbstractHost.prototype.hasTtsCallback=function(){return!0};cvo
x.AbstractHost.prototype.mustRedispatchClickEvent=function(){return!1}; |
911 cvox.AbstractHost.prototype.activateOrDeactivateChromeVox=function(a){this.onSta
teChanged_(a?cvox.AbstractHost.State.ACTIVE:cvox.AbstractHost.State.INACTIVE)}; | 913 cvox.AbstractHost.prototype.activateOrDeactivateChromeVox=function(a){this.onSta
teChanged_(a?cvox.AbstractHost.State.ACTIVE:cvox.AbstractHost.State.INACTIVE)}; |
912 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(); | 914 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(); |
913 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.AbstractMsgs=function(){};cvox.AbstractMsgs.prototype.g
etMsg=function(){};cvox.AbstractMsgs.prototype.getNumber=function(){};cvox.HostF
actory=function(){};cvox.HostFactory.getHost=function(){return new cvox.HostFact
ory.hostConstructor};cvox.HostFactory.getTts=function(){return new cvox.HostFact
ory.ttsConstructor};cvox.HostFactory.getBraille=function(){return new cvox.HostF
actory.brailleConstructor};cvox.HostFactory.getMsgs=function(){return new cvox.H
ostFactory.msgsConstructor};cvox.HostFactory.getEarcons=function(){return new cv
ox.HostFactory.earconsConstructor};cvox.HostFactory.getMathJax=function(){return
new cvox.HostFactory.mathJaxConstructor};cvox.ChromeEarcons=function(){cvox.Abs
tractEarcons.call(this)};goog.inherits(cvox.ChromeEarcons,cvox.AbstractEarcons);
cvox.ChromeEarcons.prototype.playEarcon=function(a){cvox.ChromeEarcons.superClas
s_.playEarcon.call(this,a);this.enabled&&cvox.ExtensionBridge.send({target:"EARC
ON",action:"play",earcon:a})}; | 915 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.AbstractMsgs=function(){};cvox.AbstractMsgs.prototype.g
etMsg=function(){};cvox.AbstractMsgs.prototype.getNumber=function(){};cvox.HostF
actory=function(){};cvox.HostFactory.getHost=function(){return new cvox.HostFact
ory.hostConstructor};cvox.HostFactory.getTts=function(){return new cvox.HostFact
ory.ttsConstructor};cvox.HostFactory.getBraille=function(){return new cvox.HostF
actory.brailleConstructor};cvox.HostFactory.getMsgs=function(){return new cvox.H
ostFactory.msgsConstructor};cvox.HostFactory.getEarcons=function(){return new cv
ox.HostFactory.earconsConstructor};cvox.HostFactory.getMathJax=function(){return
new cvox.HostFactory.mathJaxConstructor};cvox.ChromeEarcons=function(){cvox.Abs
tractEarcons.call(this)};goog.inherits(cvox.ChromeEarcons,cvox.AbstractEarcons);
cvox.ChromeEarcons.prototype.playEarcon=function(a){cvox.ChromeEarcons.superClas
s_.playEarcon.call(this,a);this.enabled&&cvox.ExtensionBridge.send({target:"EARC
ON",action:"play",earcon:a})}; |
914 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_}; | 916 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_}; |
915 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)}; | 917 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)}; |
916 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}; | 918 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}; |
917 cvox.BrailleOverlayWidget.prototype.createContainerNode_=function(){var a=docume
nt.createElement("div");a.id="cvox-braille-overlay";a.style.position="fixed";a.s
tyle.top="50%";a.style.left="50%";a.style["-webkit-transition"]="all 0.3s ease-i
n";a.style.opacity="0.0";a.style["z-index"]="2147483647";a.setAttribute("aria-hi
dden","true");return a}; | 919 cvox.BrailleOverlayWidget.prototype.createContainerNode_=function(){var a=docume
nt.createElement("div");a.id="cvox-braille-overlay";a.style.position="fixed";a.s
tyle.top="50%";a.style.left="50%";a.style["-webkit-transition"]="all 0.3s ease-i
n";a.style.opacity="0.0";a.style["z-index"]="2147483647";a.setAttribute("aria-hi
dden","true");return a}; |
918 cvox.BrailleOverlayWidget.prototype.createOverlayNode_=function(){var a=document
.createElement("div");a.style.position="fixed";a.style.left="40px";a.style.botto
m="20px";a.style["line-height"]="1.2em";a.style["font-size"]="20px";a.style["fon
t-family"]="monospace";a.style.padding="30px";a.style["min-width"]="150px";a.sty
le.color="#fff";a.style["background-color"]="rgba(0, 0, 0, 0.7)";a.style["border
-radius"]="10px";return a}; | 920 cvox.BrailleOverlayWidget.prototype.createOverlayNode_=function(){var a=document
.createElement("div");a.style.position="fixed";a.style.left="40px";a.style.botto
m="20px";a.style["line-height"]="1.2em";a.style["font-size"]="20px";a.style["fon
t-family"]="monospace";a.style.padding="30px";a.style["min-width"]="150px";a.sty
le.color="#fff";a.style["background-color"]="rgba(0, 0, 0, 0.7)";a.style["border
-radius"]="10px";return a}; |
919 cvox.BrailleOverlayWidget.prototype.onMessage_=function(a){"BRAILLE_CAPTION"==a.
message&&this.setContent_(a.text,a.brailleChars)};cvox.BuildInfo={};cvox.BuildIn
fo.build="development build";"undefined"!=typeof goog&&goog.provide&&(cvox.ApiUt
il={});window.cvox||(window.cvox={});cvox.ApiUtils=function(){};cvox.ApiUtils.ne
xtCvoxId_=1; | 921 cvox.BrailleOverlayWidget.prototype.onMessage_=function(a){"BRAILLE_CAPTION"==a.
message&&this.setContent_(a.text,a.brailleChars)};cvox.BuildInfo={};cvox.BuildIn
fo.build="development build";"undefined"!=typeof goog&&goog.provide&&(cvox.ApiUt
il={});window.cvox||(window.cvox={});cvox.ApiUtils=function(){};cvox.ApiUtils.ne
xtCvoxId_=1; |
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1159 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;}}; | 1161 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;}}; |
1160 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}; | 1162 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}; |
1161 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= | 1163 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= |
1162 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
}; | 1164 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
}; |
1163 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])}; | 1165 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])}; |
1164 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)}; | 1166 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)}; |
1165 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}; | 1167 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}; |
1166 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&& | 1168 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&& |
1167 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_); | 1169 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_); |
1168 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_)
; | 1170 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_)
; |
1169 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=[]}; | 1171 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=[]}; |
1170 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}; | 1172 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}; |
1171 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)
}; | 1173 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)
}; |
1172 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})]}; | 1174 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})]}; |
1173 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}; | 1175 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}; |
1174 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)}; | 1176 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)}; |
1175 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.countMatchingDynamicConstraintValue
s_=function(a,b){for(var c=0,d=0,e;e=this.dynamicCstrAttribs[d];d++)if(a[e]==b.d
ynamicCstr[e])c++;else break;return c}; | 1177 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.countMatchingDynamicConstraintValue
s_=function(a,b){for(var c=0,d=0,e;e=this.dynamicCstrAttribs[d];d++)if(a[e]==b.d
ynamicCstr[e])c++;else break;return c}; |
1176 cvox.BaseRuleStore.prototype.pickMostConstraint_=function(a,b){b.sort(goog.bind(
function(b,d){var e=this.countMatchingDynamicConstraintValues_(a,b),f=this.count
MatchingDynamicConstraintValues_(a,d);return e>f?-1:f>e?1:d.precondition.constra
ints.length-b.precondition.constraints.length},this));return b[0]}; | 1178 cvox.BaseRuleStore.prototype.pickMostConstraint_=function(a,b){b.sort(goog.bind(
function(b,d){var e=this.countMatchingDynamicConstraintValues_(a,b),f=this.count
MatchingDynamicConstraintValues_(a,d);return e>f?-1:f>e?1:d.precondition.constra
ints.length-b.precondition.constraints.length},this));return b[0]}; |
1177 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}; | 1179 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}; |
1178 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"; | 1180 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"; |
1179 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}; | 1181 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 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1370 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_= | 1372 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_= |
1371 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()}; | 1373 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()}; |
1372 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}; | 1374 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}; |
1373 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}; | 1375 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}; |
1374 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}
; | 1376 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}
; |
1375 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)}; | 1377 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)}; |
1376 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}; | 1378 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}; |
1377 cvox.NavigationManager.prototype.togglePageSel=function(){this.pageSel_=this.pag
eSel_?null:new cvox.PageSelection(this.curSel_.setReversed(!1));return!!this.pag
eSel_}; | 1379 cvox.NavigationManager.prototype.togglePageSel=function(){this.pageSel_=this.pag
eSel_?null:new cvox.PageSelection(this.curSel_.setReversed(!1));return!!this.pag
eSel_}; |
1378 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_, | 1380 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_, |
1379 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}; | 1381 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}; |
1380 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({})}; | 1382 cvox.NavigationManager.prototype.getBraille=function(){return this.shifter_.getB
raille(this.prevSel_,this.curSel_)}; |
1381 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_= | 1383 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_= |
1382 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()}; | 1384 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()}; |
1383 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))}; | 1385 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))}; |
1384 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())}; | 1386 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())}; |
1385 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)})}; | 1387 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)})}; |
1386 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_|| | 1388 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_|| |
1387 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())}}; | 1389 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())}}; |
1388 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
))}; | 1390 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
))}; |
1389 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}; | 1391 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}; |
1390 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})}; | 1392 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... |
1409 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}; | 1411 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}; |
1410 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}; | 1412 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}; |
1411 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}; | 1413 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}; |
1412 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}; | 1414 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}; |
1413 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))}; | 1415 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))}; |
1414 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: | 1416 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: |
1415 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()}; | 1417 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()}; |
1416 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}; | 1418 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}; |
1417 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), | 1419 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), |
1418 this.outputSearchResultToBraille_(b)):(cvox.ChromeVox.earcons.playEarcon(cvox.Ab
stractEarcons.WRAP),this.hasMatch_=!1)}; | 1420 this.outputSearchResultToBraille_(b)):(cvox.ChromeVox.earcons.playEarcon(cvox.Ab
stractEarcons.WRAP),this.hasMatch_=!1)}; |
1419 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+ | 1421 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}))}}; |
1420 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); | 1422 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); |
1421 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)}; | 1423 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)}; |
1422 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(), | 1424 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(), |
1423 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)}, | 1425 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)}, |
1424 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"]}; | 1426 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"]}; |
1425 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= | 1427 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= |
1426 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(" "); | 1428 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(" "); |
1427 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}; | 1429 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}; |
1428 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); | 1430 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); |
1429 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"
]}; | 1431 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"
]}; |
1430 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_}; | 1432 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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1490 5))}; | 1492 5))}; |
1491 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, | 1493 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, |
1492 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, | 1494 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, |
1493 "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, | 1495 "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, |
1494 "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&& | 1496 "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&& |
1495 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)}; | 1497 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)}; |
1496 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&& | 1498 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&& |
1497 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}; | 1499 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}; |
1498 cvox.ChromeVoxEventWatcher.setLastFocusedNode_=function(a){cvox.ChromeVoxEventWa
tcher.lastFocusedNode=a;cvox.ChromeVoxEventWatcher.lastFocusedNodeValue=a?cvox.D
omUtil.getControlValueAndStateString(a):null}; | 1500 cvox.ChromeVoxEventWatcher.setLastFocusedNode_=function(a){cvox.ChromeVoxEventWa
tcher.lastFocusedNode=a;cvox.ChromeVoxEventWatcher.lastFocusedNodeValue=a?cvox.D
omUtil.getControlValueAndStateString(a):null}; |
1499 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})}; | 1501 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})}; |
1500 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, | 1502 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, |
1501 cvox.AbstractTts.PERSONALITY_ANNOTATION),a=cvox.ChromeVox.navigationManager.getC
urrentNode(),cvox.DomUtil.clickElem(a,!1,!0),!1):cvox.ChromeVoxUserCommands.wasM
ouseClicked=!0}; | 1503 !1,!0),!1;cvox.ChromeVoxEventWatcher.addEvent(a);return cvox.ChromeVoxUserComman
ds.wasMouseClicked=!0}; |
1502 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&& | 1504 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&& |
1503 "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= | 1505 "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= |
1504 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}; | 1506 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}; |
1505 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}; | 1507 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}; |
1506 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): | 1508 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): |
1507 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_(); | 1509 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_(); |
1508 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)}; | 1510 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)}; |
1509 cvox.ChromeVoxEventWatcher.blurEventWatcher=function(a){window.setTimeout(functi
on(){document.activeElement||(cvox.ChromeVoxEventWatcher.setLastFocusedNode_(nul
l),cvox.ChromeVoxEventWatcher.addEvent(a))},0);return!0}; | 1511 cvox.ChromeVoxEventWatcher.blurEventWatcher=function(a){window.setTimeout(functi
on(){document.activeElement||(cvox.ChromeVoxEventWatcher.setLastFocusedNode_(nul
l),cvox.ChromeVoxEventWatcher.addEvent(a))},0);return!0}; |
1510 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)|| | 1512 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)|| |
1511 cvox.ChromeVoxEventWatcher.handleControlAction(a))return a.preventDefault(),a.st
opPropagation(),cvox.ChromeVoxEventWatcher.eventToEat=a,!1;cvox.ChromeVoxEventWa
tcher.addEvent(a);return!0}; | 1513 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... |
1528 !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), | 1530 !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), |
1529 !0),d=!0);d&&!cvox.ChromeVoxEventSuspender.areEventsSuspended()&&(cvox.ChromeVox
.tts.speak(b,cvox.ChromeVoxEventWatcher.queueMode_(),null),cvox.NavBraille.fromT
ext(b).write())}; | 1531 !0),d=!0);d&&!cvox.ChromeVoxEventSuspender.areEventsSuspended()&&(cvox.ChromeVox
.tts.speak(b,cvox.ChromeVoxEventWatcher.queueMode_(),null),cvox.NavBraille.fromT
ext(b).write())}; |
1530 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&& | 1532 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&& |
1531 (c=b.min);b.value=c}return!1}; | 1533 (c=b.min);b.value=c}return!1}; |
1532 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, | 1534 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, |
1533 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}; | 1535 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}; |
1534 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}; | 1536 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}; |
1535 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&& | 1537 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&& |
1536 "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_= | 1538 "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_= |
1537 !1;cvox.ChromeVoxEventWatcher.events_=[];cvox.ChromeVoxEventWatcher.firstUnproce
ssedEventTime=-1;cvox.ChromeVoxEventWatcher.queueProcessingScheduled_=!1;cvox.Ch
romeVoxEventWatcher.maybeCallReadyCallbacks_()}}}; | 1539 !1;cvox.ChromeVoxEventWatcher.events_=[];cvox.ChromeVoxEventWatcher.firstUnproce
ssedEventTime=-1;cvox.ChromeVoxEventWatcher.queueProcessingScheduled_=!1;cvox.Ch
romeVoxEventWatcher.maybeCallReadyCallbacks_()}}}; |
1538 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); | 1540 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, |
1539 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)}}; | 1541 !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)}}; |
1540 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}; | 1542 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}; |
1541 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}; | 1543 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}; |
1542 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); | 1544 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); |
1543 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= | 1545 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&& |
1544 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={}; | 1546 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={}; |
1545 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"; | 1547 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"; |
1546 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), | 1548 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), |
1547 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= | 1549 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= |
1548 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."); | 1550 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."); |
1549 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}; | 1551 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}; |
1550 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, | 1552 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, |
1551 !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); | 1553 !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); |
1552 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}; | 1554 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}; |
1553 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)}}; | 1555 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)}}; |
1554 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); | 1556 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1605 cvox.OptionsPage.populateVoicesSelect=function(){var a=document.getElementById("
voices");chrome.tts.getVoices(function(b){b.forEach(function(b){var d=document.c
reateElement("option");d.voiceName=b.voiceName||"";d.innerText=d.voiceName;local
Storage.voiceName==b.voiceName&&d.setAttribute("selected","");a.add(d)})});a.add
EventListener("change",function(){var b=a.selectedIndex,b=a.options[b];localStor
age.voiceName=b.voiceName},!0)}; | 1607 cvox.OptionsPage.populateVoicesSelect=function(){var a=document.getElementById("
voices");chrome.tts.getVoices(function(b){b.forEach(function(b){var d=document.c
reateElement("option");d.voiceName=b.voiceName||"";d.innerText=d.voiceName;local
Storage.voiceName==b.voiceName&&d.setAttribute("selected","");a.add(d)})});a.add
EventListener("change",function(){var b=a.selectedIndex,b=a.options[b];localStor
age.voiceName=b.voiceName},!0)}; |
1606 cvox.OptionsPage.populateBrailleTablesSelect=function(){if(cvox.ChromeVox.isChro
meOS){var a=cvox.OptionsPage.brailleTables,b=JSON.parse(cvox.ChromeVox.msgs.getM
sg("locale_dict")),c=function(c,d){for(var e=[],f=localStorage[c.id]||localStora
ge.brailleTable,g=0,q;q=a[g];g++)if(q.dots===d){var m=document.createElement("op
tion");m.id=q.id;e[q.locale]||(e[q.locale]=0);e[q.locale]++;var s=q.grade;m.text
Content=s?cvox.ChromeVox.msgs.getMsg("options_braille_locale_grade",[b[q.locale]
,s]):b[q.locale];q.id== | 1608 cvox.OptionsPage.populateBrailleTablesSelect=function(){if(cvox.ChromeVox.isChro
meOS){var a=cvox.OptionsPage.brailleTables,b=JSON.parse(cvox.ChromeVox.msgs.getM
sg("locale_dict")),c=function(c,d){for(var e=[],f=localStorage[c.id]||localStora
ge.brailleTable,g=0,q;q=a[g];g++)if(q.dots===d){var m=document.createElement("op
tion");m.id=q.id;e[q.locale]||(e[q.locale]=0);e[q.locale]++;var s=q.grade;m.text
Content=s?cvox.ChromeVox.msgs.getMsg("options_braille_locale_grade",[b[q.locale]
,s]):b[q.locale];q.id== |
1607 f&&m.setAttribute("selected","");c.appendChild(m)}},d=document.getElementById("b
railleTable6"),e=document.getElementById("brailleTable8");c(d,"6");c(e,"8");c=fu
nction(a){return function(){var b=a.selectedIndex,b=a.options[b];localStorage.br
ailleTable=b.id;localStorage[a.id]=b.id;b=chrome.extension.getBackgroundPage().b
raille;b.refreshTranslator()}};d.addEventListener("change",c(d),!0);e.addEventLi
stener("change",c(e),!0);var f=document.getElementById("brailleTableType"),g=fun
ction(a){var b=localStorage.brailleTableType|| | 1609 f&&m.setAttribute("selected","");c.appendChild(m)}},d=document.getElementById("b
railleTable6"),e=document.getElementById("brailleTable8");c(d,"6");c(e,"8");c=fu
nction(a){return function(){var b=a.selectedIndex,b=a.options[b];localStorage.br
ailleTable=b.id;localStorage[a.id]=b.id;b=chrome.extension.getBackgroundPage().b
raille;b.refreshTranslator()}};d.addEventListener("change",c(d),!0);e.addEventLi
stener("change",c(e),!0);var f=document.getElementById("brailleTableType"),g=fun
ction(a){var b=localStorage.brailleTableType|| |
1608 "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"), | 1610 "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"), |
1609 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)
}}; | 1611 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)
}}; |
1610 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}; | 1612 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}; |
1611 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, | 1613 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, |
1612 b.value),cvox.OptionsPage.prefs.sendPrefsToAllTabs(!0,!0)):cvox.OptionsPage.pref
s.setKey(b.id,c))},0);return!0}; | 1614 b.value),cvox.OptionsPage.prefs.sendPrefsToAllTabs(!0,!0)):cvox.OptionsPage.pref
s.setKey(b.id,c))},0);return!0}; |
1613 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)}; | 1615 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)}; |
1614 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); | 1616 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); |
OLD | NEW |