UNPKG

accessibility-developer-tools

Version:

This is a library of accessibility-related testing and utility code.

981 lines (979 loc) 111 kB
/* * Copyright 2017 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * Generated from http://github.com/GoogleChrome/accessibility-developer-tools/tree/9acd1c6e3e72a39a0ec14506d68203a4e8cfafb4 * * See project README for build steps. */ // AUTO-GENERATED CONTENT BELOW: DO NOT EDIT! See above for details. var fn = (function() { var COMPILED = !0, goog = goog || {}; goog.global = this; goog.isDef = function(a) { return void 0 !== a; }; 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 && goog.isDef(b) ? c[d] = b : c = c[d] ? c[d] : c[d] = {}; } }; goog.define = function(a, b) { var c = b; COMPILED || (goog.global.CLOSURE_UNCOMPILED_DEFINES && Object.prototype.hasOwnProperty.call(goog.global.CLOSURE_UNCOMPILED_DEFINES, a) ? c = goog.global.CLOSURE_UNCOMPILED_DEFINES[a] : goog.global.CLOSURE_DEFINES && Object.prototype.hasOwnProperty.call(goog.global.CLOSURE_DEFINES, a) && (c = goog.global.CLOSURE_DEFINES[a])); goog.exportPath_(a, c); }; goog.DEBUG = !0; goog.LOCALE = "en"; goog.TRUSTED_SITE = !0; goog.STRICT_MODE_COMPATIBLE = !1; goog.DISALLOW_TEST_ONLY_CODE = COMPILED && !goog.DEBUG; goog.ENABLE_CHROME_APP_SAFE_SCRIPT_LOADING = !1; goog.provide = function(a) { if (goog.isInModuleLoader_()) { throw Error("goog.provide can not be used within a goog.module."); } if (!COMPILED && goog.isProvided_(a)) { throw Error('Namespace "' + a + '" already declared.'); } goog.constructNamespace_(a); }; goog.constructNamespace_ = function(a, b) { if (!COMPILED) { delete goog.implicitNamespaces_[a]; for (var c = a;(c = c.substring(0, c.lastIndexOf("."))) && !goog.getObjectByName(c);) { goog.implicitNamespaces_[c] = !0; } } goog.exportPath_(a, b); }; goog.VALID_MODULE_RE_ = /^[a-zA-Z_$][a-zA-Z0-9._$]*$/; goog.module = function(a) { if (!goog.isString(a) || !a || -1 == a.search(goog.VALID_MODULE_RE_)) { throw Error("Invalid module identifier"); } if (!goog.isInModuleLoader_()) { throw Error("Module " + a + " has been loaded incorrectly. Note, modules cannot be loaded as normal scripts. They require some kind of pre-processing step. You're likely trying to load a module via a script tag or as a part of a concatenated bundle without rewriting the module. For more info see: https://github.com/google/closure-library/wiki/goog.module:-an-ES6-module-like-alternative-to-goog.provide."); } if (goog.moduleLoaderState_.moduleName) { throw Error("goog.module may only be called once per module."); } goog.moduleLoaderState_.moduleName = a; if (!COMPILED) { if (goog.isProvided_(a)) { throw Error('Namespace "' + a + '" already declared.'); } delete goog.implicitNamespaces_[a]; } }; goog.module.get = function(a) { return goog.module.getInternal_(a); }; goog.module.getInternal_ = function(a) { if (!COMPILED) { if (a in goog.loadedModules_) { return goog.loadedModules_[a]; } if (!goog.implicitNamespaces_[a]) { return a = goog.getObjectByName(a), null != a ? a : null; } } return null; }; goog.moduleLoaderState_ = null; goog.isInModuleLoader_ = function() { return null != goog.moduleLoaderState_; }; goog.module.declareLegacyNamespace = function() { if (!COMPILED && !goog.isInModuleLoader_()) { throw Error("goog.module.declareLegacyNamespace must be called from within a goog.module"); } if (!COMPILED && !goog.moduleLoaderState_.moduleName) { throw Error("goog.module must be called prior to goog.module.declareLegacyNamespace."); } goog.moduleLoaderState_.declareLegacyNamespace = !0; }; goog.setTestOnly = function(a) { if (goog.DISALLOW_TEST_ONLY_CODE) { throw a = a || "", Error("Importing test-only code into non-debug environment" + (a ? ": " + a : ".")); } }; goog.forwardDeclare = function(a) { }; COMPILED || (goog.isProvided_ = function(a) { return a in goog.loadedModules_ || !goog.implicitNamespaces_[a] && goog.isDefAndNotNull(goog.getObjectByName(a)); }, goog.implicitNamespaces_ = {"goog.module":!0}); goog.getObjectByName = function(a, b) { for (var c = a.split("."), d = b || goog.global, 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]; } }; goog.addDependency = function(a, b, c, d) { if (goog.DEPENDENCIES_ENABLED) { var e; a = a.replace(/\\/g, "/"); var f = goog.dependencies_; d && "boolean" !== typeof d || (d = d ? {module:"goog"} : {}); for (var g = 0;e = b[g];g++) { f.nameToPath[e] = a, f.loadFlags[a] = d; } for (d = 0;b = c[d];d++) { a in f.requires || (f.requires[a] = {}), f.requires[a][b] = !0; } } }; goog.ENABLE_DEBUG_LOADER = !0; goog.logToConsole_ = function(a) { goog.global.console && goog.global.console.error(a); }; goog.require = function(a) { if (!COMPILED) { goog.ENABLE_DEBUG_LOADER && goog.IS_OLD_IE_ && goog.maybeProcessDeferredDep_(a); if (goog.isProvided_(a)) { if (goog.isInModuleLoader_()) { return goog.module.getInternal_(a); } } else { if (goog.ENABLE_DEBUG_LOADER) { var b = goog.getPathFromDeps_(a); if (b) { goog.writeScripts_(b); } else { throw a = "goog.require could not find: " + a, goog.logToConsole_(a), Error(a); } } } return null; } }; goog.basePath = ""; goog.nullFunction = function() { }; goog.abstractMethod = function() { throw Error("unimplemented abstract method"); }; goog.addSingletonGetter = function(a) { a.getInstance = function() { if (a.instance_) { return a.instance_; } goog.DEBUG && (goog.instantiatedSingletons_[goog.instantiatedSingletons_.length] = a); return a.instance_ = new a; }; }; goog.instantiatedSingletons_ = []; goog.LOAD_MODULE_USING_EVAL = !0; goog.SEAL_MODULE_EXPORTS = goog.DEBUG; goog.loadedModules_ = {}; goog.DEPENDENCIES_ENABLED = !COMPILED && goog.ENABLE_DEBUG_LOADER; goog.TRANSPILE = "detect"; goog.TRANSPILER = "transpile.js"; goog.DEPENDENCIES_ENABLED && (goog.dependencies_ = {loadFlags:{}, nameToPath:{}, requires:{}, visited:{}, written:{}, deferred:{}}, goog.inHtmlDocument_ = function() { var a = goog.global.document; return null != a && "write" in a; }, goog.findBasePath_ = function() { if (goog.isDef(goog.global.CLOSURE_BASE_PATH)) { goog.basePath = goog.global.CLOSURE_BASE_PATH; } else { if (goog.inHtmlDocument_()) { for (var a = goog.global.document.getElementsByTagName("SCRIPT"), b = a.length - 1;0 <= b;--b) { var c = a[b].src, d = c.lastIndexOf("?"), d = -1 == d ? c.length : d; if ("base.js" == c.substr(d - 7, 7)) { goog.basePath = c.substr(0, d - 7); break; } } } } }, goog.importScript_ = function(a, b) { (goog.global.CLOSURE_IMPORT_SCRIPT || goog.writeScriptTag_)(a, b) && (goog.dependencies_.written[a] = !0); }, goog.IS_OLD_IE_ = !(goog.global.atob || !goog.global.document || !goog.global.document.all), goog.importProcessedScript_ = function(a, b, c) { goog.importScript_("", 'goog.retrieveAndExec_("' + a + '", ' + b + ", " + c + ");"); }, goog.queuedModules_ = [], goog.wrapModule_ = function(a, b) { return goog.LOAD_MODULE_USING_EVAL && goog.isDef(goog.global.JSON) ? "goog.loadModule(" + goog.global.JSON.stringify(b + "\n//# sourceURL=" + a + "\n") + ");" : 'goog.loadModule(function(exports) {"use strict";' + b + "\n;return exports});\n//# sourceURL=" + a + "\n"; }, goog.loadQueuedModules_ = function() { var a = goog.queuedModules_.length; if (0 < a) { var b = goog.queuedModules_; goog.queuedModules_ = []; for (var c = 0;c < a;c++) { goog.maybeProcessDeferredPath_(b[c]); } } }, goog.maybeProcessDeferredDep_ = function(a) { goog.isDeferredModule_(a) && goog.allDepsAreAvailable_(a) && (a = goog.getPathFromDeps_(a), goog.maybeProcessDeferredPath_(goog.basePath + a)); }, goog.isDeferredModule_ = function(a) { var b = (a = goog.getPathFromDeps_(a)) && goog.dependencies_.loadFlags[a] || {}, c = b.lang || "es3"; return a && ("goog" == b.module || goog.needsTranspile_(c)) ? goog.basePath + a in goog.dependencies_.deferred : !1; }, goog.allDepsAreAvailable_ = function(a) { if ((a = goog.getPathFromDeps_(a)) && a in goog.dependencies_.requires) { for (var b in goog.dependencies_.requires[a]) { if (!goog.isProvided_(b) && !goog.isDeferredModule_(b)) { return !1; } } } return !0; }, goog.maybeProcessDeferredPath_ = function(a) { if (a in goog.dependencies_.deferred) { var b = goog.dependencies_.deferred[a]; delete goog.dependencies_.deferred[a]; goog.globalEval(b); } }, goog.loadModuleFromUrl = function(a) { goog.retrieveAndExec_(a, !0, !1); }, goog.writeScriptSrcNode_ = function(a) { goog.global.document.write('<script type="text/javascript" src="' + a + '">\x3c/script>'); }, goog.appendScriptSrcNode_ = function(a) { var b = goog.global.document, c = b.createElement("script"); c.type = "text/javascript"; c.src = a; c.defer = !1; c.async = !1; b.head.appendChild(c); }, goog.writeScriptTag_ = function(a, b) { if (goog.inHtmlDocument_()) { var c = goog.global.document; if (!goog.ENABLE_CHROME_APP_SAFE_SCRIPT_LOADING && "complete" == c.readyState) { if (/\bdeps.js$/.test(a)) { return !1; } throw Error('Cannot write "' + a + '" after document load'); } if (void 0 === b) { if (goog.IS_OLD_IE_) { var d = " onreadystatechange='goog.onScriptLoad_(this, " + ++goog.lastNonModuleScriptIndex_ + ")' "; c.write('<script type="text/javascript" src="' + a + '"' + d + ">\x3c/script>"); } else { goog.ENABLE_CHROME_APP_SAFE_SCRIPT_LOADING ? goog.appendScriptSrcNode_(a) : goog.writeScriptSrcNode_(a); } } else { c.write('<script type="text/javascript">' + goog.protectScriptTag_(b) + "\x3c/script>"); } return !0; } return !1; }, goog.protectScriptTag_ = function(a) { return a.replace(/<\/(SCRIPT)/ig, "\\x3c\\$1"); }, goog.needsTranspile_ = function(a) { if ("always" == goog.TRANSPILE) { return !0; } if ("never" == goog.TRANSPILE) { return !1; } goog.requiresTranspilation_ || (goog.requiresTranspilation_ = goog.createRequiresTranspilation_()); if (a in goog.requiresTranspilation_) { return goog.requiresTranspilation_[a]; } throw Error("Unknown language mode: " + a); }, goog.requiresTranspilation_ = null, goog.lastNonModuleScriptIndex_ = 0, goog.onScriptLoad_ = function(a, b) { "complete" == a.readyState && goog.lastNonModuleScriptIndex_ == b && goog.loadQueuedModules_(); return !0; }, goog.writeScripts_ = function(a) { function b(a) { if (!(a in e.written || a in e.visited)) { e.visited[a] = !0; if (a in e.requires) { for (var f in e.requires[a]) { if (!goog.isProvided_(f)) { if (f in e.nameToPath) { b(e.nameToPath[f]); } else { throw Error("Undefined nameToPath for " + f); } } } } a in d || (d[a] = !0, c.push(a)); } } var c = [], d = {}, e = goog.dependencies_; b(a); for (a = 0;a < c.length;a++) { var f = c[a]; goog.dependencies_.written[f] = !0; } var g = goog.moduleLoaderState_; goog.moduleLoaderState_ = null; for (a = 0;a < c.length;a++) { if (f = c[a]) { var h = e.loadFlags[f] || {}, k = goog.needsTranspile_(h.lang || "es3"); "goog" == h.module || k ? goog.importProcessedScript_(goog.basePath + f, "goog" == h.module, k) : goog.importScript_(goog.basePath + f); } else { throw goog.moduleLoaderState_ = g, Error("Undefined script input"); } } goog.moduleLoaderState_ = g; }, goog.getPathFromDeps_ = function(a) { return a in goog.dependencies_.nameToPath ? goog.dependencies_.nameToPath[a] : null; }, goog.findBasePath_(), goog.global.CLOSURE_NO_DEPS || goog.importScript_(goog.basePath + "deps.js")); goog.loadModule = function(a) { var b = goog.moduleLoaderState_; try { goog.moduleLoaderState_ = {moduleName:void 0, declareLegacyNamespace:!1}; var c; if (goog.isFunction(a)) { c = a.call(void 0, {}); } else { if (goog.isString(a)) { c = goog.loadModuleFromSource_.call(void 0, a); } else { throw Error("Invalid module definition"); } } var d = goog.moduleLoaderState_.moduleName; if (!goog.isString(d) || !d) { throw Error('Invalid module name "' + d + '"'); } goog.moduleLoaderState_.declareLegacyNamespace ? goog.constructNamespace_(d, c) : goog.SEAL_MODULE_EXPORTS && Object.seal && goog.isObject(c) && Object.seal(c); goog.loadedModules_[d] = c; } finally { goog.moduleLoaderState_ = b; } }; goog.loadModuleFromSource_ = function(a) { eval(a); return {}; }; goog.normalizePath_ = function(a) { a = a.split("/"); for (var b = 0;b < a.length;) { "." == a[b] ? a.splice(b, 1) : b && ".." == a[b] && a[b - 1] && ".." != a[b - 1] ? a.splice(--b, 2) : b++; } return a.join("/"); }; goog.loadFileSync_ = function(a) { if (goog.global.CLOSURE_LOAD_FILE_SYNC) { return goog.global.CLOSURE_LOAD_FILE_SYNC(a); } try { var b = new goog.global.XMLHttpRequest; b.open("get", a, !1); b.send(); return 0 == b.status || 200 == b.status ? b.responseText : null; } catch (c) { return null; } }; goog.retrieveAndExec_ = function(a, b, c) { if (!COMPILED) { var d = a; a = goog.normalizePath_(a); var e = goog.global.CLOSURE_IMPORT_SCRIPT || goog.writeScriptTag_, f = goog.loadFileSync_(a); if (null == f) { throw Error('Load of "' + a + '" failed'); } c && (f = goog.transpile_.call(goog.global, f, a)); f = b ? goog.wrapModule_(a, f) : f + ("\n//# sourceURL=" + a); goog.IS_OLD_IE_ ? (goog.dependencies_.deferred[d] = f, goog.queuedModules_.push(d)) : e(a, f); } }; goog.transpile_ = function(a, b) { var c = goog.global.$jscomp; c || (goog.global.$jscomp = c = {}); var d = c.transpile; if (!d) { var e = goog.basePath + goog.TRANSPILER, f = goog.loadFileSync_(e); if (f) { eval(f + "\n//# sourceURL=" + e); if (goog.global.$gwtExport && goog.global.$gwtExport.$jscomp && !goog.global.$gwtExport.$jscomp.transpile) { throw Error('The transpiler did not properly export the "transpile" method. $gwtExport: ' + JSON.stringify(goog.global.$gwtExport)); } goog.global.$jscomp.transpile = goog.global.$gwtExport.$jscomp.transpile; c = goog.global.$jscomp; d = c.transpile; } } d || (d = c.transpile = function(a, b) { goog.logToConsole_(b + " requires transpilation but no transpiler was found."); return a; }); return d(a, b); }; goog.typeOf = function(a) { var b = typeof a; if ("object" == b) { if (a) { if (a instanceof Array) { 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.propertyIsEnumerable && !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"; } } 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 = function(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; }; goog.isBoolean = function(a) { return "boolean" == typeof a; }; goog.isNumber = function(a) { return "number" == typeof a; }; goog.isFunction = function(a) { return "function" == goog.typeOf(a); }; goog.isObject = function(a) { var b = typeof a; return "object" == b && null != a || "function" == b; }; goog.getUid = function(a) { return a[goog.UID_PROPERTY_] || (a[goog.UID_PROPERTY_] = ++goog.uidCounter_); }; goog.hasUid = function(a) { return !!a[goog.UID_PROPERTY_]; }; goog.removeUid = function(a) { null !== a && "removeAttribute" in a && a.removeAttribute(goog.UID_PROPERTY_); try { delete a[goog.UID_PROPERTY_]; } catch (b) { } }; goog.UID_PROPERTY_ = "closure_uid_" + (1E9 * Math.random() >>> 0); goog.uidCounter_ = 0; goog.getHashCode = goog.getUid; goog.removeHashCode = goog.removeUid; goog.cloneObject = function(a) { var b = goog.typeOf(a); if ("object" == b || "array" == b) { if (a.clone) { return a.clone(); } var b = "array" == b ? [] : {}, c; for (c in a) { b[c] = goog.cloneObject(a[c]); } return b; } return a; }; goog.bindNative_ = function(a, b, c) { return a.call.apply(a.bind, arguments); }; goog.bindJs_ = function(a, b, c) { if (!a) { throw Error(); } if (2 < arguments.length) { var d = Array.prototype.slice.call(arguments, 2); return function() { var c = Array.prototype.slice.call(arguments); Array.prototype.unshift.apply(c, d); return a.apply(b, c); }; } return function() { return a.apply(b, arguments); }; }; goog.bind = function(a, b, c) { Function.prototype.bind && -1 != Function.prototype.bind.toString().indexOf("native code") ? goog.bind = goog.bindNative_ : goog.bind = goog.bindJs_; return goog.bind.apply(null, arguments); }; 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); }; }; goog.mixin = function(a, b) { for (var c in b) { a[c] = b[c]; } }; goog.now = goog.TRUSTED_SITE && Date.now || function() { return +new Date; }; goog.globalEval = function(a) { if (goog.global.execScript) { goog.global.execScript(a, "JavaScript"); } else { if (goog.global.eval) { if (null == goog.evalWorksForGlobals_) { if (goog.global.eval("var _evalTest_ = 1;"), "undefined" != typeof goog.global._evalTest_) { try { delete goog.global._evalTest_; } catch (d) { } goog.evalWorksForGlobals_ = !0; } else { goog.evalWorksForGlobals_ = !1; } } if (goog.evalWorksForGlobals_) { goog.global.eval(a); } else { var b = goog.global.document, c = b.createElement("SCRIPT"); c.type = "text/javascript"; c.defer = !1; c.appendChild(b.createTextNode(a)); b.body.appendChild(c); b.body.removeChild(c); } } else { throw Error("goog.globalEval not available"); } } }; goog.evalWorksForGlobals_ = null; goog.getCssName = function(a, b) { if ("." == String(a).charAt(0)) { throw Error('className passed in goog.getCssName must not start with ".". You passed: ' + a); } var c = function(a) { return goog.cssNameMapping_[a] || a; }, d = function(a) { a = a.split("-"); for (var b = [], d = 0;d < a.length;d++) { b.push(c(a[d])); } return b.join("-"); }, d = goog.cssNameMapping_ ? "BY_WHOLE" == goog.cssNameMappingStyle_ ? c : d : function(a) { return a; }, d = b ? a + "-" + d(b) : d(a); return goog.global.CLOSURE_CSS_NAME_MAP_FN ? goog.global.CLOSURE_CSS_NAME_MAP_FN(d) : d; }; goog.setCssNameMapping = function(a, b) { goog.cssNameMapping_ = a; goog.cssNameMappingStyle_ = b; }; !COMPILED && goog.global.CLOSURE_CSS_NAME_MAPPING && (goog.cssNameMapping_ = goog.global.CLOSURE_CSS_NAME_MAPPING); goog.getMsg = function(a, b) { b && (a = a.replace(/\{\$([^}]+)}/g, function(a, d) { return null != b && d in b ? b[d] : a; })); return a; }; goog.getMsgWithFallback = function(a, b) { return a; }; goog.exportSymbol = function(a, b, c) { goog.exportPath_(a, b, c); }; goog.exportProperty = function(a, b, c) { a[b] = c; }; 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) { for (var d = Array(arguments.length - 2), e = 2;e < arguments.length;e++) { d[e - 2] = arguments[e]; } return b.prototype[c].apply(a, d); }; }; goog.base = function(a, b, c) { var d = arguments.callee.caller; if (goog.STRICT_MODE_COMPATIBLE || goog.DEBUG && !d) { throw Error("arguments.caller not defined. goog.base() cannot be used with strict mode code. See http://www.ecma-international.org/ecma-262/5.1/#sec-C"); } if (d.superClass_) { for (var e = Array(arguments.length - 1), f = 1;f < arguments.length;f++) { e[f - 1] = arguments[f]; } return d.superClass_.constructor.apply(a, e); } e = Array(arguments.length - 2); for (f = 2;f < arguments.length;f++) { e[f - 2] = arguments[f]; } for (var f = !1, g = a.constructor;g;g = g.superClass_ && g.superClass_.constructor) { if (g.prototype[b] === d) { f = !0; } else { if (f) { return g.prototype[b].apply(a, e); } } } if (a[b] === d) { return a.constructor.prototype[b].apply(a, e); } throw Error("goog.base called from a method of one name to a method of a different name"); }; goog.scope = function(a) { if (goog.isInModuleLoader_()) { throw Error("goog.scope is not supported within a goog.module."); } a.call(goog.global); }; COMPILED || (goog.global.COMPILED = COMPILED); goog.defineClass = function(a, b) { var c = b.constructor, d = b.statics; c && c != Object.prototype.constructor || (c = function() { throw Error("cannot instantiate an interface (no constructor defined)."); }); c = goog.defineClass.createSealingConstructor_(c, a); a && goog.inherits(c, a); delete b.constructor; delete b.statics; goog.defineClass.applyProperties_(c.prototype, b); null != d && (d instanceof Function ? d(c) : goog.defineClass.applyProperties_(c, d)); return c; }; goog.defineClass.SEAL_CLASS_INSTANCES = goog.DEBUG; goog.defineClass.createSealingConstructor_ = function(a, b) { if (!goog.defineClass.SEAL_CLASS_INSTANCES) { return a; } var c = !goog.defineClass.isUnsealable_(b), d = function() { var b = a.apply(this, arguments) || this; b[goog.UID_PROPERTY_] = b[goog.UID_PROPERTY_]; this.constructor === d && c && Object.seal instanceof Function && Object.seal(b); return b; }; return d; }; goog.defineClass.isUnsealable_ = function(a) { return a && a.prototype && a.prototype[goog.UNSEALABLE_CONSTRUCTOR_PROPERTY_]; }; goog.defineClass.OBJECT_PROTOTYPE_FIELDS_ = "constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "); goog.defineClass.applyProperties_ = function(a, b) { for (var c in b) { Object.prototype.hasOwnProperty.call(b, c) && (a[c] = b[c]); } for (var d = 0;d < goog.defineClass.OBJECT_PROTOTYPE_FIELDS_.length;d++) { c = goog.defineClass.OBJECT_PROTOTYPE_FIELDS_[d], Object.prototype.hasOwnProperty.call(b, c) && (a[c] = b[c]); } }; goog.tagUnsealableClass = function(a) { !COMPILED && goog.defineClass.SEAL_CLASS_INSTANCES && (a.prototype[goog.UNSEALABLE_CONSTRUCTOR_PROPERTY_] = !0); }; goog.UNSEALABLE_CONSTRUCTOR_PROPERTY_ = "goog_defineClass_legacy_unsealable"; goog.createRequiresTranspilation_ = function() { function a(a, b) { d ? c[a] = !0 : b() ? c[a] = !1 : d = c[a] = !0; } function b(a) { try { return !!eval(a); } catch (f) { return !1; } } var c = {es3:!1}, d = !1; a("es5", function() { return b("[1,].length==1"); }); a("es6", function() { return b('(()=>{"use strict";class X{constructor(){if(new.target!=String)throw 1;this.x=42}}let q=Reflect.construct(X,[],String);if(q.x!=42||!(q instanceof String))throw 1;for(const a of[2,3]){if(a==2)continue;function f(z={a}){let a=0;return z.a}{function f(){return 0;}}return f()==3}})()'); }); a("es6-impl", function() { return !0; }); a("es7", function() { return b("2 ** 2 == 4"); }); a("es8", function() { return b("async () => 1, true"); }); return c; }; var axs = {}; axs.browserUtils = {}; axs.browserUtils.matchSelector = function(a, b) { return a.matches ? a.matches(b) : a.webkitMatchesSelector ? a.webkitMatchesSelector(b) : a.mozMatchesSelector ? a.mozMatchesSelector(b) : a.msMatchesSelector ? a.msMatchesSelector(b) : !1; }; axs.color = {}; axs.color.Color = function(a, b, c, d) { this.red = a; this.green = b; this.blue = c; this.alpha = d; }; axs.color.YCbCr = function(a) { this.luma = this.z = a[0]; this.Cb = this.x = a[1]; this.Cr = this.y = a[2]; }; axs.color.YCbCr.prototype = {multiply:function(a) { return new axs.color.YCbCr([this.luma * a, this.Cb * a, this.Cr * a]); }, add:function(a) { return new axs.color.YCbCr([this.luma + a.luma, this.Cb + a.Cb, this.Cr + a.Cr]); }, subtract:function(a) { return new axs.color.YCbCr([this.luma - a.luma, this.Cb - a.Cb, this.Cr - a.Cr]); }}; axs.color.calculateContrastRatio = function(a, b) { 1 > a.alpha && (a = axs.color.flattenColors(a, b)); var c = axs.color.calculateLuminance(a), d = axs.color.calculateLuminance(b); return (Math.max(c, d) + .05) / (Math.min(c, d) + .05); }; axs.color.calculateLuminance = function(a) { return axs.color.toYCbCr(a).luma; }; axs.color.luminanceRatio = function(a, b) { return (Math.max(a, b) + .05) / (Math.min(a, b) + .05); }; axs.color.parseColor = function(a) { if ("transparent" === a) { return new axs.color.Color(0, 0, 0, 0); } var b = a.match(/^rgb\((\d+), (\d+), (\d+)\)$/); if (b) { a = parseInt(b[1], 10); var c = parseInt(b[2], 10), d = parseInt(b[3], 10); return new axs.color.Color(a, c, d, 1); } return (b = a.match(/^rgba\((\d+), (\d+), (\d+), (\d*(\.\d+)?)\)/)) ? (a = parseInt(b[1], 10), c = parseInt(b[2], 10), d = parseInt(b[3], 10), b = parseFloat(b[4]), new axs.color.Color(a, c, d, b)) : null; }; axs.color.colorChannelToString = function(a) { a = Math.round(a); return 15 >= a ? "0" + a.toString(16) : a.toString(16); }; axs.color.colorToString = function(a) { return 1 == a.alpha ? "#" + axs.color.colorChannelToString(a.red) + axs.color.colorChannelToString(a.green) + axs.color.colorChannelToString(a.blue) : "rgba(" + [a.red, a.green, a.blue, a.alpha].join() + ")"; }; axs.color.luminanceFromContrastRatio = function(a, b, c) { return c ? (a + .05) * b - .05 : (a + .05) / b - .05; }; axs.color.translateColor = function(a, b) { for (var c = b > a.luma ? axs.color.WHITE_YCC : axs.color.BLACK_YCC, d = c == axs.color.WHITE_YCC ? axs.color.YCC_CUBE_FACES_WHITE : axs.color.YCC_CUBE_FACES_BLACK, e = new axs.color.YCbCr([0, a.Cb, a.Cr]), f = new axs.color.YCbCr([1, a.Cb, a.Cr]), f = {a:e, b:f}, e = null, g = 0;g < d.length && !(e = axs.color.findIntersection(f, d[g]), 0 <= e.z && 1 >= e.z);g++) { } if (!e) { throw "Couldn't find intersection with YCbCr color cube for Cb=" + a.Cb + ", Cr=" + a.Cr + "."; } if (e.x != a.x || e.y != a.y) { throw "Intersection has wrong Cb/Cr values."; } if (Math.abs(c.luma - e.luma) < Math.abs(c.luma - b)) { return c = [b, a.Cb, a.Cr], axs.color.fromYCbCrArray(c); } c = (b - e.luma) / (c.luma - e.luma); c = [b, e.Cb - e.Cb * c, e.Cr - e.Cr * c]; return axs.color.fromYCbCrArray(c); }; axs.color.suggestColors = function(a, b, c) { var d = {}, e = axs.color.calculateLuminance(a), f = axs.color.calculateLuminance(b), g = f > e, h = axs.color.toYCbCr(b), k = axs.color.toYCbCr(a), m; for (m in c) { var l = c[m], n = axs.color.luminanceFromContrastRatio(e, l + .02, g); if (1 >= n && 0 <= n) { var p = axs.color.translateColor(h, n), l = axs.color.calculateContrastRatio(p, a), n = {}; n.fg = axs.color.colorToString(p); n.bg = axs.color.colorToString(a); n.contrast = l.toFixed(2); d[m] = n; } else { l = axs.color.luminanceFromContrastRatio(f, l + .02, !g), 1 >= l && 0 <= l && (p = axs.color.translateColor(k, l), l = axs.color.calculateContrastRatio(b, p), n = {}, n.bg = axs.color.colorToString(p), n.fg = axs.color.colorToString(b), n.contrast = l.toFixed(2), d[m] = n); } } return d; }; axs.color.flattenColors = function(a, b) { var c = a.alpha; return new axs.color.Color((1 - c) * b.red + c * a.red, (1 - c) * b.green + c * a.green, (1 - c) * b.blue + c * a.blue, a.alpha + b.alpha * (1 - a.alpha)); }; axs.color.multiplyMatrixVector = function(a, b) { var c = b[0], d = b[1], e = b[2]; return [a[0][0] * c + a[0][1] * d + a[0][2] * e, a[1][0] * c + a[1][1] * d + a[1][2] * e, a[2][0] * c + a[2][1] * d + a[2][2] * e]; }; axs.color.toYCbCr = function(a) { var b = a.red / 255, c = a.green / 255; a = a.blue / 255; return new axs.color.YCbCr(axs.color.multiplyMatrixVector(axs.color.YCC_MATRIX, [.03928 >= b ? b / 12.92 : Math.pow((b + .055) / 1.055, 2.4), .03928 >= c ? c / 12.92 : Math.pow((c + .055) / 1.055, 2.4), .03928 >= a ? a / 12.92 : Math.pow((a + .055) / 1.055, 2.4)])); }; axs.color.fromYCbCr = function(a) { return axs.color.fromYCbCrArray([a.luma, a.Cb, a.Cr]); }; axs.color.fromYCbCrArray = function(a) { var b = axs.color.multiplyMatrixVector(axs.color.INVERTED_YCC_MATRIX, a); a = b[0]; var c = b[1], b = b[2]; return new axs.color.Color(Math.min(Math.max(Math.round(255 * (.00303949 >= a ? 12.92 * a : 1.055 * Math.pow(a, 1 / 2.4) - .055)), 0), 255), Math.min(Math.max(Math.round(255 * (.00303949 >= c ? 12.92 * c : 1.055 * Math.pow(c, 1 / 2.4) - .055)), 0), 255), Math.min(Math.max(Math.round(255 * (.00303949 >= b ? 12.92 * b : 1.055 * Math.pow(b, 1 / 2.4) - .055)), 0), 255), 1); }; axs.color.RGBToYCbCrMatrix = function(a, b) { return [[a, 1 - a - b, b], [-a / (2 - 2 * b), (a + b - 1) / (2 - 2 * b), (1 - b) / (2 - 2 * b)], [(1 - a) / (2 - 2 * a), (a + b - 1) / (2 - 2 * a), -b / (2 - 2 * a)]]; }; axs.color.invert3x3Matrix = function(a) { var b = a[0][0], c = a[0][1], d = a[0][2], e = a[1][0], f = a[1][1], g = a[1][2], h = a[2][0], k = a[2][1]; a = a[2][2]; return axs.color.scalarMultiplyMatrix([[f * a - g * k, d * k - c * a, c * g - d * f], [g * h - e * a, b * a - d * h, d * e - b * g], [e * k - f * h, h * c - b * k, b * f - c * e]], 1 / (b * (f * a - g * k) - c * (a * e - g * h) + d * (e * k - f * h))); }; axs.color.findIntersection = function(a, b) { var c = [a.a.x - b.p0.x, a.a.y - b.p0.y, a.a.z - b.p0.z], d = axs.color.invert3x3Matrix([[a.a.x - a.b.x, b.p1.x - b.p0.x, b.p2.x - b.p0.x], [a.a.y - a.b.y, b.p1.y - b.p0.y, b.p2.y - b.p0.y], [a.a.z - a.b.z, b.p1.z - b.p0.z, b.p2.z - b.p0.z]]), c = axs.color.multiplyMatrixVector(d, c)[0]; return a.a.add(a.b.subtract(a.a).multiply(c)); }; axs.color.scalarMultiplyMatrix = function(a, b) { for (var c = [], d = 0;3 > d;d++) { c[d] = axs.color.scalarMultiplyVector(a[d], b); } return c; }; axs.color.scalarMultiplyVector = function(a, b) { for (var c = [], d = 0;d < a.length;d++) { c[d] = a[d] * b; } return c; }; axs.color.kR = .2126; axs.color.kB = .0722; axs.color.YCC_MATRIX = axs.color.RGBToYCbCrMatrix(axs.color.kR, axs.color.kB); axs.color.INVERTED_YCC_MATRIX = axs.color.invert3x3Matrix(axs.color.YCC_MATRIX); axs.color.BLACK = new axs.color.Color(0, 0, 0, 1); axs.color.BLACK_YCC = axs.color.toYCbCr(axs.color.BLACK); axs.color.WHITE = new axs.color.Color(255, 255, 255, 1); axs.color.WHITE_YCC = axs.color.toYCbCr(axs.color.WHITE); axs.color.RED = new axs.color.Color(255, 0, 0, 1); axs.color.RED_YCC = axs.color.toYCbCr(axs.color.RED); axs.color.GREEN = new axs.color.Color(0, 255, 0, 1); axs.color.GREEN_YCC = axs.color.toYCbCr(axs.color.GREEN); axs.color.BLUE = new axs.color.Color(0, 0, 255, 1); axs.color.BLUE_YCC = axs.color.toYCbCr(axs.color.BLUE); axs.color.CYAN = new axs.color.Color(0, 255, 255, 1); axs.color.CYAN_YCC = axs.color.toYCbCr(axs.color.CYAN); axs.color.MAGENTA = new axs.color.Color(255, 0, 255, 1); axs.color.MAGENTA_YCC = axs.color.toYCbCr(axs.color.MAGENTA); axs.color.YELLOW = new axs.color.Color(255, 255, 0, 1); axs.color.YELLOW_YCC = axs.color.toYCbCr(axs.color.YELLOW); axs.color.YCC_CUBE_FACES_BLACK = [{p0:axs.color.BLACK_YCC, p1:axs.color.RED_YCC, p2:axs.color.GREEN_YCC}, {p0:axs.color.BLACK_YCC, p1:axs.color.GREEN_YCC, p2:axs.color.BLUE_YCC}, {p0:axs.color.BLACK_YCC, p1:axs.color.BLUE_YCC, p2:axs.color.RED_YCC}]; axs.color.YCC_CUBE_FACES_WHITE = [{p0:axs.color.WHITE_YCC, p1:axs.color.CYAN_YCC, p2:axs.color.MAGENTA_YCC}, {p0:axs.color.WHITE_YCC, p1:axs.color.MAGENTA_YCC, p2:axs.color.YELLOW_YCC}, {p0:axs.color.WHITE_YCC, p1:axs.color.YELLOW_YCC, p2:axs.color.CYAN_YCC}]; axs.constants = {}; axs.constants.ARIA_ROLES = {alert:{namefrom:["author"], parent:["region"]}, alertdialog:{namefrom:["author"], namerequired:!0, parent:["alert", "dialog"]}, application:{namefrom:["author"], namerequired:!0, parent:["landmark"]}, article:{namefrom:["author"], parent:["document", "region"]}, banner:{namefrom:["author"], parent:["landmark"]}, button:{childpresentational:!0, namefrom:["contents", "author"], namerequired:!0, parent:["command"], properties:["aria-expanded", "aria-pressed"]}, checkbox:{namefrom:["contents", "author"], namerequired:!0, parent:["input"], requiredProperties:["aria-checked"], properties:["aria-checked"]}, columnheader:{namefrom:["contents", "author"], namerequired:!0, parent:["gridcell", "sectionhead", "widget"], properties:["aria-sort"], scope:["row"]}, combobox:{mustcontain:["listbox", "textbox"], namefrom:["author"], namerequired:!0, parent:["select"], requiredProperties:["aria-expanded"], properties:["aria-expanded", "aria-autocomplete", "aria-required"]}, command:{"abstract":!0, namefrom:["author"], parent:["widget"]}, complementary:{namefrom:["author"], parent:["landmark"]}, composite:{"abstract":!0, childpresentational:!1, namefrom:["author"], parent:["widget"], properties:["aria-activedescendant"]}, contentinfo:{namefrom:["author"], parent:["landmark"]}, definition:{namefrom:["author"], parent:["section"]}, dialog:{namefrom:["author"], namerequired:!0, parent:["window"]}, directory:{namefrom:["contents", "author"], parent:["list"]}, document:{namefrom:[" author"], namerequired:!0, parent:["structure"], properties:["aria-expanded"]}, form:{namefrom:["author"], parent:["landmark"]}, grid:{mustcontain:["row", "rowgroup"], namefrom:["author"], namerequired:!0, parent:["composite", "region"], properties:["aria-level", "aria-multiselectable", "aria-readonly"]}, gridcell:{namefrom:["contents", "author"], namerequired:!0, parent:["section", "widget"], properties:["aria-readonly", "aria-required", "aria-selected"], scope:["row"]}, group:{namefrom:[" author"], parent:["section"], properties:["aria-activedescendant"]}, heading:{namerequired:!0, parent:["sectionhead"], properties:["aria-level"]}, img:{childpresentational:!0, namefrom:["author"], namerequired:!0, parent:["section"]}, input:{"abstract":!0, namefrom:["author"], parent:["widget"]}, landmark:{"abstract":!0, namefrom:["contents", "author"], namerequired:!1, parent:["region"]}, link:{namefrom:["contents", "author"], namerequired:!0, parent:["command"], properties:["aria-expanded"]}, list:{mustcontain:["group", "listitem"], namefrom:["author"], parent:["region"]}, listbox:{mustcontain:["option"], namefrom:["author"], namerequired:!0, parent:["list", "select"], properties:["aria-multiselectable", "aria-required"]}, listitem:{namefrom:["contents", "author"], namerequired:!0, parent:["section"], properties:["aria-level", "aria-posinset", "aria-setsize"], scope:["list"]}, log:{namefrom:[" author"], namerequired:!0, parent:["region"]}, main:{namefrom:["author"], parent:["landmark"]}, marquee:{namerequired:!0, parent:["section"]}, math:{childpresentational:!0, namefrom:["author"], parent:["section"]}, menu:{mustcontain:["group", "menuitemradio", "menuitem", "menuitemcheckbox"], namefrom:["author"], namerequired:!0, parent:["list", "select"]}, menubar:{namefrom:["author"], parent:["menu"]}, menuitem:{namefrom:["contents", "author"], namerequired:!0, parent:["command"], scope:["menu", "menubar"]}, menuitemcheckbox:{namefrom:["contents", "author"], namerequired:!0, parent:["checkbox", "menuitem"], scope:["menu", "menubar"]}, menuitemradio:{namefrom:["contents", "author"], namerequired:!0, parent:["menuitemcheckbox", "radio"], scope:["menu", "menubar"]}, navigation:{namefrom:["author"], parent:["landmark"]}, note:{namefrom:["author"], parent:["section"]}, option:{namefrom:["contents", "author"], namerequired:!0, parent:["input"], properties:["aria-checked", "aria-posinset", "aria-selected", "aria-setsize"]}, presentation:{parent:["structure"]}, progressbar:{childpresentational:!0, namefrom:["author"], namerequired:!0, parent:["range"]}, radio:{namefrom:["contents", "author"], namerequired:!0, parent:["checkbox", "option"]}, radiogroup:{mustcontain:["radio"], namefrom:["author"], namerequired:!0, parent:["select"], properties:["aria-required"]}, range:{"abstract":!0, namefrom:["author"], parent:["widget"], properties:["aria-valuemax", "aria-valuemin", "aria-valuenow", "aria-valuetext"]}, region:{namefrom:[" author"], parent:["section"]}, roletype:{"abstract":!0, properties:"aria-atomic aria-busy aria-controls aria-describedby aria-disabled aria-dropeffect aria-flowto aria-grabbed aria-haspopup aria-hidden aria-invalid aria-label aria-labelledby aria-live aria-owns aria-relevant".split(" ")}, row:{mustcontain:["columnheader", "gridcell", "rowheader"], namefrom:["contents", "author"], parent:["group", "widget"], properties:["aria-level", "aria-selected"], scope:["grid", "rowgroup", "treegrid"]}, rowgroup:{mustcontain:["row"], namefrom:["contents", "author"], parent:["group"], scope:["grid"]}, rowheader:{namefrom:["contents", "author"], namerequired:!0, parent:["gridcell", "sectionhead", "widget"], properties:["aria-sort"], scope:["row"]}, search:{namefrom:["author"], parent:["landmark"]}, section:{"abstract":!0, namefrom:["contents", "author"], parent:["structure"], properties:["aria-expanded"]}, sectionhead:{"abstract":!0, namefrom:["contents", "author"], parent:["structure"], properties:["aria-expanded"]}, select:{"abstract":!0, namefrom:["author"], parent:["composite", "group", "input"]}, separator:{childpresentational:!0, namefrom:["author"], parent:["structure"], properties:["aria-expanded", "aria-orientation"]}, scrollbar:{childpresentational:!0, namefrom:["author"], namerequired:!1, parent:["input", "range"], requiredProperties:["aria-controls", "aria-orientation", "aria-valuemax", "aria-valuemin", "aria-valuenow"], properties:["aria-controls", "aria-orientation", "aria-valuemax", "aria-valuemin", "aria-valuenow"]}, slider:{childpresentational:!0, namefrom:["author"], namerequired:!0, parent:["input", "range"], requiredProperties:["aria-valuemax", "aria-valuemin", "aria-valuenow"], properties:["aria-valuemax", "aria-valuemin", "aria-valuenow", "aria-orientation"]}, spinbutton:{namefrom:["author"], namerequired:!0, parent:["input", "range"], requiredProperties:["aria-valuemax", "aria-valuemin", "aria-valuenow"], properties:["aria-valuemax", "aria-valuemin", "aria-valuenow", "aria-required"]}, status:{parent:["region"]}, structure:{"abstract":!0, parent:["roletype"]}, tab:{namefrom:["contents", "author"], parent:["sectionhead", "widget"], properties:["aria-selected"], scope:["tablist"]}, tablist:{mustcontain:["tab"], namefrom:["author"], parent:["composite", "directory"], properties:["aria-level"]}, tabpanel:{namefrom:["author"], namerequired:!0, parent:["region"]}, textbox:{namefrom:["author"], namerequired:!0, parent:["input"], properties:["aria-activedescendant", "aria-autocomplete", "aria-multiline", "aria-readonly", "aria-required"]}, timer:{namefrom:["author"], namerequired:!0, parent:["status"]}, toolbar:{namefrom:["author"], parent:["group"]}, tooltip:{namerequired:!0, parent:["section"]}, tree:{mustcontain:["group", "treeitem"], namefrom:["author"], namerequired:!0, parent:["select"], properties:["aria-multiselectable", "aria-required"]}, treegrid:{mustcontain:["row"], namefrom:["author"], namerequired:!0, parent:["grid", "tree"]}, treeitem:{namefrom:["contents", "author"], namerequired:!0, parent:["listitem", "option"], scope:["group", "tree"]}, widget:{"abstract":!0, parent:["roletype"]}, window:{"abstract":!0, namefrom:[" author"], parent:["roletype"], properties:["aria-expanded"]}}; axs.constants.WIDGET_ROLES = {}; axs.constants.addAllParentRolesToSet_ = function(a, b) { if (a.parent) { for (var c = a.parent, d = 0;d < c.length;d++) { var e = c[d]; b[e] = !0; axs.constants.addAllParentRolesToSet_(axs.constants.ARIA_ROLES[e], b); } } }; axs.constants.addAllPropertiesToSet_ = function(a, b, c) { var d = a[b]; if (d) { for (var e = 0;e < d.length;e++) { c[d[e]] = !0; } } if (a.parent) { for (a = a.parent, d = 0;d < a.length;d++) { axs.constants.addAllPropertiesToSet_(axs.constants.ARIA_ROLES[a[d]], b, c); } } }; for (var roleName in axs.constants.ARIA_ROLES) { var role = axs.constants.ARIA_ROLES[roleName], propertiesSet = {}; axs.constants.addAllPropertiesToSet_(role, "properties", propertiesSet); role.propertiesSet = propertiesSet; var requiredPropertiesSet = {}; axs.constants.addAllPropertiesToSet_(role, "requiredProperties", requiredPropertiesSet); role.requiredPropertiesSet = requiredPropertiesSet; var parentRolesSet = {}; axs.constants.addAllParentRolesToSet_(role, parentRolesSet); role.allParentRolesSet = parentRolesSet; "widget" in parentRolesSet && (axs.constants.WIDGET_ROLES[roleName] = role); } axs.constants.ARIA_PROPERTIES = {activedescendant:{type:"property", valueType:"idref"}, atomic:{defaultValue:"false", type:"property", valueType:"boolean"}, autocomplete:{defaultValue:"none", type:"property", valueType:"token", values:["inline", "list", "both", "none"]}, busy:{defaultValue:"false", type:"state", valueType:"boolean"}, checked:{defaultValue:"undefined", type:"state", valueType:"token", values:["true", "false", "mixed", "undefined"]}, controls:{type:"property", valueType:"idref_list"}, describedby:{type:"property", valueType:"idref_list"}, disabled:{defaultValue:"false", type:"state", valueType:"boolean"}, dropeffect:{defaultValue:"none", type:"property", valueType:"token_list", values:"copy move link execute popup none".split(" ")}, expanded:{defaultValue:"undefined", type:"state", valueType:"token", values:["true", "false", "undefined"]}, flowto:{type:"property", valueType:"idref_list"}, grabbed:{defaultValue:"undefined", type:"state", valueType:"token", values:["true", "false", "undefined"]}, haspopup:{defaultValue:"false", type:"property", valueType:"boolean"}, hidden:{defaultValue:"false", type:"state", valueType:"boolean"}, invalid:{defaultValue:"false", type:"state", valueType:"token", values:["grammar", "false", "spelling", "true"]}, label:{type:"property", valueType:"string"}, labelledby:{type:"property", valueType:"idref_list"}, level:{type:"property", valueType:"integer"}, live:{defaultValue:"off", type:"property", valueType:"token", values:["off", "polite", "assertive"]}, multiline:{defaultValue:"false", type:"property", valueType:"boolean"}, multiselectable:{defaultValue:"false", type:"property", valueType:"boolean"}, orientation:{defaultValue:"vertical", type:"property", valueType:"token", values:["horizontal", "vertical"]}, owns:{type:"property", valueType:"idref_list"}, posinset:{type:"property", valueType:"integer"}, pressed:{defaultValue:"undefined", type:"state", valueType:"token", values:["true", "false", "mixed", "undefined"]}, readonly:{defaultValue:"false", type:"property", valueType:"boolean"}, relevant:{defaultValue:"additions text", type:"property", valueType:"token_list", values:["additions", "removals", "text", "all"]}, required:{defaultValue:"false", type:"property", valueType:"boolean"}, selected:{defaultValue:"undefined", type:"state", valueType:"token", values:["true", "false", "undefined"]}, setsize:{type:"property", valueType:"integer"}, sort:{defaultValue:"none", type:"property", valueType:"token", values:["ascending", "descending", "none", "other"]}, valuemax:{type:"property", valueType:"decimal"}, valuemin:{type:"property", valueType:"decimal"}, valuenow:{type:"property", valueType:"decimal"}, valuetext:{type:"property", valueType:"string"}}; (function() { for (var a in axs.constants.ARIA_PROPERTIES) { var b = axs.constants.ARIA_PROPERTIES[a]; if (b.values) { for (var c = {}, d = 0;d < b.values.length;d++) { c[b.values[d]] = !0; } b.valuesSet = c; } } })(); axs.constants.GLOBAL_PROPERTIES = axs.constants.ARIA_ROLES.roletype.propertiesSet; axs.constants.NO_ROLE_NAME = " "; axs.constants.WIDGET_ROLE_TO_NAME = {alert:"aria_role_alert", alertdialog:"aria_role_alertdialog", button:"aria_role_button", checkbox:"aria_role_checkbox", columnheader:"aria_role_columnheader", combobox:"aria_role_combobox", dialog:"aria_role_dialog", grid:"aria_role_grid", gridcell:"aria_role_gridcell", link:"aria_role_link", listbox:"aria_role_listbox", log:"aria_role_log", marquee:"aria_role_marquee", menu:"aria_role_menu", menubar:"aria_role_menubar", menuitem:"aria_role_menuitem", menuitemcheckbox:"aria_role_menuitemcheckbox", menuitemradio:"aria_role_menuitemradio", option:axs.constants.NO_ROLE_NAME, progressbar:"aria_role_progressbar", radio:"aria_role_radio", radiogroup:"aria_role_radiogroup", rowheader:"aria_role_rowheader", scrollbar:"aria_role_scrollbar", slider:"aria_role_slider", spinbutton:"aria_role_spinbutton", status:"aria_role_status", tab:"aria_role_tab", tabpanel:"aria_role_tabpanel", textbox:"aria_role_textbox", timer:"aria_role_timer", toolbar:"aria_role_toolbar", tooltip:"aria_role_tooltip", treeitem:"aria_role_treeitem"}; axs.constants.STRUCTURE_ROLE_TO_NAME = {article:"aria_role_article", application:"aria_role_application", banner:"aria_role_banner", columnheader:"aria_role_columnheader", complementary:"aria_role_complementary", contentinfo:"aria_role_contentinfo", definition:"aria_role_definition", directory:"aria_role_directory", document:"aria_role_document", form:"aria_role_form", group:"aria_role_group", heading:"aria_role_heading", img:"aria_role_img", list:"aria_role_list", listitem:"aria_role_listitem", main:"aria_role_main", math:"aria_role_math", navigation:"aria_role_navigation", note:"aria_role_note", region:"aria_role_region", rowheader:"aria_role_rowheader", search:"aria_role_search", separator:"aria_role_separator"}; axs.constants.ATTRIBUTE_VALUE_TO_STATUS = [{name:"aria-autocomplete", values:{inline:"aria_autocomplete_inline", list:"aria_autocomplete_list", both:"aria_autocomplete_both"}}, {name:"aria-checked", values:{"true":"aria_checked_true", "false":"aria_checked_false", mixed:"aria_checked_mixed"}}, {name:"aria-disabled", values:{"true":"aria_disabled_true"}}, {name:"aria-expanded", values:{"true":"aria_expanded_true", "false":"aria_expanded_false"}}, {name:"aria-invalid", values:{"true":"aria_invalid_true", grammar:"aria_invalid_grammar", spelling:"aria_invalid_spelling"}}, {name:"aria-multiline", values:{"true":"aria_multiline_true"}}, {name:"aria-multiselectable", values:{"true":"aria_multiselectable_true"}}, {name:"aria-pressed", values:{"true":"aria_pressed_true", "false":"aria_pressed_false", mixed:"aria_pressed_mixed"}}, {name:"aria-readonly", values:{"true":"aria_readonly_true"}}, {name:"aria-required", values:{"true":"aria_required_true"}}, {name:"aria-selected", values:{"true":"aria_selected_true", "false":"aria_selected_false"}}]; axs.constants.INPUT_TYPE_TO_INFORMATION_TABLE_MSG = {button:"input_type_button", checkbox:"input_type_checkbox", color:"input_type_color", datetime:"input_type_datetime", "datetime-local":"input_type_datetime_local", date:"input_type_date", email:"input_type_email", file:"input_type_file", image:"input_type_image", month:"input_type_month", number:"input_type_number", password:"input_type_password", radio:"input_type_radio", range:"input_type_range", reset:"input_type_reset", search:"input_type_search", submit:"input_type_submit", tel:"input_type_tel", text:"input_type_text", url:"input_type_url", week:"input_type_week"}; axs.constants.TAG_TO_INFORMATION_TABLE_VERBOSE_MSG = {A:"tag_link", BUTTON:"tag_button", H1:"tag_h1", H2:"tag_h2", H3:"tag_h3", H4:"tag_h4", H5:"tag_h5", H6:"tag_h6", LI:"tag_li", OL:"tag_ol", SELECT:"tag_select", TEXTAREA:"tag_textarea", UL:"tag_ul", SECTION:"tag_section", NAV:"tag_nav", ARTICLE:"tag_article", ASIDE:"tag_aside", HGROUP:"tag_hgroup", HEADER:"tag_header", FOOTER:"tag_footer", TIME:"tag_time", MARK:"tag_mark"}; axs.constants.TAG_TO_INFORMATION_TABLE_BRIEF_MSG = {BUTTON:"tag_button", SELECT:"tag_select", TEXTAREA:"tag_textarea"}; axs.constants.MIXED_VALUES = {"tr