- commit
- 433df682c3fb44a691f1841ef27500863060e00e
- parent
- 21d44eb11d6be49c544a8716de439d3bd7fae5b4
- Author
- Tobias Bengfort <tobias.bengfort@posteo.de>
- Date
- 2023-01-08 07:42
update tools
Diffstat
| M | babel.js | 15708 | ++++++++++++++++++++++++++++++++++--------------------------- |
| M | fuzz.js | 34 | ++++++++++++++-------------------- |
| M | package.json | 6 | +++--- |
| M | src/babel.js | 6 | +++--- |
4 files changed, 8680 insertions, 7074 deletions
diff --git a/babel.js b/babel.js
@@ -5117,7 +5117,7 @@ var getAttribute = function(el, key) {
5117 5117 if (el.matches('noscript')) {
5118 5118 return true;
5119 5119 }
5120 -1 if (el.matches('details:not([open]) :not(summary)')) {
-1 5120 if (el.matches('details:not([open]) > :not(summary)')) {
5121 5121 return true;
5122 5122 }
5123 5123 var style = window.getComputedStyle(el);
@@ -5482,6 +5482,9 @@ exports.roles = {
5482 5482 'selected': 'false',
5483 5483 },
5484 5484 },
-1 5485 presentation: {
-1 5486 selectors: ['img[alt=""]'],
-1 5487 },
5485 5488 progressbar: {
5486 5489 selectors: ['progress'],
5487 5490 },
@@ -5734,17 +5737,6 @@ exports.nameDefaults = {
5734 5737 'summary': 'Details',
5735 5738 };
5736 5739
5737 -1 exports.labelable = [
5738 -1 'button',
5739 -1 'input:not([type="hidden"])',
5740 -1 'keygen',
5741 -1 'meter',
5742 -1 'output',
5743 -1 'progress',
5744 -1 'select',
5745 -1 'textarea',
5746 -1 ];
5747 -1
5748 5740 },{}],13:[function(require,module,exports){
5749 5741 var constants = require('./constants.js');
5750 5742 var atree = require('./atree.js');
@@ -5797,14 +5789,9 @@ var allowNameFromContent = function(el) {
5797 5789 return (constants.roles[role] || {}).nameFromContents;
5798 5790 };
5799 5791
5800 -1 var isLabelable = function(el) {
5801 -1 var selector = constants.labelable.join(',');
5802 -1 return el.matches(selector);
5803 -1 };
5804 -1
5805 5792 var isInLabelForOtherWidget = function(el) {
5806 5793 var label = el.parentElement.closest('label');
5807 -1 return label && !Array.prototype.includes.call(el.labels, label);
-1 5794 return label && (!el.labels || !Array.prototype.includes.call(el.labels, label));
5808 5795 };
5809 5796
5810 5797 var getName = function(el, recursive, visited, directReference) {
@@ -5839,7 +5826,7 @@ var getName = function(el, recursive, visited, directReference) {
5839 5826 }
5840 5827
5841 5828 // D
5842 -1 if (!ret.trim() && !recursive && isLabelable(el)) {
-1 5829 if (!ret.trim() && !recursive && el.labels) {
5843 5830 var strings = Array.prototype.map.call(el.labels, function(label) {
5844 5831 return getName(label, true, visited);
5845 5832 });
@@ -5902,10 +5889,16 @@ var getName = function(el, recursive, visited, directReference) {
5902 5889
5903 5890 // I
5904 5891 // FIXME: presentation not mentioned in the spec
5905 -1 if (!ret.trim() && !query.matches(el, 'presentation')) {
-1 5892 if (!ret.trim() && (directReference || !query.matches(el, 'presentation'))) {
5906 5893 ret = el.title || '';
5907 5894 }
5908 5895
-1 5896 // FIXME: not exactly sure about this, but it reduces the number of failing
-1 5897 // WPT tests. Whitespace is hard.
-1 5898 if (!ret.trim()) {
-1 5899 ret = ' ';
-1 5900 }
-1 5901
5909 5902 var before = getPseudoContent(el, ':before');
5910 5903 var after = getPseudoContent(el, ':after');
5911 5904 return before + ret + after;
@@ -6011,8 +6004,8 @@ module.exports = {
6011 6004
6012 6005 },{"./atree.js":10,"./attrs.js":11}],15:[function(require,module,exports){
6013 6006 (function (process,setImmediate){(function (){
6014 -1 /*! axe v4.4.3
6015 -1 * Copyright (c) 2022 Deque Systems, Inc.
-1 6007 /*! axe v4.6.2
-1 6008 * Copyright (c) 2023 Deque Systems, Inc.
6016 6009 *
6017 6010 * Your use of this Source Code Form is subject to the terms of the Mozilla Public
6018 6011 * License, v. 2.0. If a copy of the MPL was not distributed with this
@@ -6035,7 +6028,7 @@ module.exports = {
6035 6028 }, _typeof(obj);
6036 6029 }
6037 6030 var axe = axe || {};
6038 -1 axe.version = '4.4.3';
-1 6031 axe.version = '4.6.2';
6039 6032 if (typeof define === 'function' && define.amd) {
6040 6033 define('axe-core', [], function() {
6041 6034 return axe;
@@ -6062,7 +6055,10 @@ module.exports = {
6062 6055 SupportError.prototype = Object.create(Error.prototype);
6063 6056 SupportError.prototype.constructor = SupportError;
6064 6057 'use strict';
6065 -1 var _excluded = [ 'node' ], _excluded2 = [ 'node' ], _excluded3 = [ 'variant' ], _excluded4 = [ 'matches' ], _excluded5 = [ 'chromium' ], _excluded6 = [ 'noImplicit' ], _excluded7 = [ 'noPresentational' ], _excluded8 = [ 'nodes' ], _excluded9 = [ 'node' ], _excluded10 = [ 'relatedNodes' ], _excluded11 = [ 'environmentData' ], _excluded12 = [ 'environmentData' ], _excluded13 = [ 'node' ], _excluded14 = [ 'environmentData' ], _excluded15 = [ 'environmentData' ], _excluded16 = [ 'environmentData' ];
-1 6058 var _excluded = [ 'node' ], _excluded2 = [ 'variant' ], _excluded3 = [ 'matches' ], _excluded4 = [ 'chromium' ], _excluded5 = [ 'noImplicit' ], _excluded6 = [ 'noPresentational' ], _excluded7 = [ 'node' ], _excluded8 = [ 'nodes' ], _excluded9 = [ 'node' ], _excluded10 = [ 'relatedNodes' ], _excluded11 = [ 'environmentData' ], _excluded12 = [ 'environmentData' ], _excluded13 = [ 'node' ], _excluded14 = [ 'environmentData' ], _excluded15 = [ 'environmentData' ], _excluded16 = [ 'environmentData' ];
-1 6059 function _toArray(arr) {
-1 6060 return _arrayWithHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableRest();
-1 6061 }
6066 6062 function _defineProperty(obj, key, value) {
6067 6063 if (key in obj) {
6068 6064 Object.defineProperty(obj, key, {
@@ -6095,7 +6091,7 @@ module.exports = {
6095 6091 }
6096 6092 }
6097 6093 function _setPrototypeOf(o, p) {
6098 -1 _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
-1 6094 _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
6099 6095 o.__proto__ = p;
6100 6096 return o;
6101 6097 };
@@ -6146,7 +6142,7 @@ module.exports = {
6146 6142 }
6147 6143 }
6148 6144 function _getPrototypeOf(o) {
6149 -1 _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
-1 6145 _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
6150 6146 return o.__proto__ || Object.getPrototypeOf(o);
6151 6147 };
6152 6148 return _getPrototypeOf(o);
@@ -6204,6 +6200,20 @@ module.exports = {
6204 6200 return _arrayLikeToArray(arr);
6205 6201 }
6206 6202 }
-1 6203 function _extends() {
-1 6204 _extends = Object.assign ? Object.assign.bind() : function(target) {
-1 6205 for (var i = 1; i < arguments.length; i++) {
-1 6206 var source = arguments[i];
-1 6207 for (var key in source) {
-1 6208 if (Object.prototype.hasOwnProperty.call(source, key)) {
-1 6209 target[key] = source[key];
-1 6210 }
-1 6211 }
-1 6212 }
-1 6213 return target;
-1 6214 };
-1 6215 return _extends.apply(this, arguments);
-1 6216 }
6207 6217 function _slicedToArray(arr, i) {
6208 6218 return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
6209 6219 }
@@ -6247,20 +6257,6 @@ module.exports = {
6247 6257 return arr;
6248 6258 }
6249 6259 }
6250 -1 function _extends() {
6251 -1 _extends = Object.assign || function(target) {
6252 -1 for (var i = 1; i < arguments.length; i++) {
6253 -1 var source = arguments[i];
6254 -1 for (var key in source) {
6255 -1 if (Object.prototype.hasOwnProperty.call(source, key)) {
6256 -1 target[key] = source[key];
6257 -1 }
6258 -1 }
6259 -1 }
6260 -1 return target;
6261 -1 };
6262 -1 return _extends.apply(this, arguments);
6263 -1 }
6264 6260 function _classCallCheck(instance, Constructor) {
6265 6261 if (!(instance instanceof Constructor)) {
6266 6262 throw new TypeError('Cannot call a class as a function');
@@ -6393,19 +6389,14 @@ module.exports = {
6393 6389 value: true
6394 6390 });
6395 6391 };
6396 -1 var __commonJS = function __commonJS(callback, module) {
-1 6392 var __commonJS = function __commonJS(cb, mod) {
6397 6393 return function() {
6398 -1 if (!module) {
6399 -1 module = {
6400 -1 exports: {}
6401 -1 };
6402 -1 callback(module.exports, module);
6403 -1 }
6404 -1 return module.exports;
-1 6394 return mod || cb((mod = {
-1 6395 exports: {}
-1 6396 }).exports, mod), mod.exports;
6405 6397 };
6406 6398 };
6407 6399 var __export = function __export(target, all) {
6408 -1 __markAsModule(target);
6409 6400 for (var name in all) {
6410 6401 __defProp(target, name, {
6411 6402 get: all[name],
@@ -6414,8 +6405,7 @@ module.exports = {
6414 6405 }
6415 6406 };
6416 6407 var __exportStar = function __exportStar(target, module, desc) {
6417 -1 __markAsModule(target);
6418 -1 if (_typeof(module) === 'object' || typeof module === 'function') {
-1 6408 if (module && _typeof(module) === 'object' || typeof module === 'function') {
6419 6409 var _iterator = _createForOfIteratorHelper(__getOwnPropNames(module)), _step;
6420 6410 try {
6421 6411 var _loop = function _loop() {
@@ -6441,13 +6431,15 @@ module.exports = {
6441 6431 return target;
6442 6432 };
6443 6433 var __toModule = function __toModule(module) {
6444 -1 if (module && module.__esModule) {
6445 -1 return module;
6446 -1 }
6447 -1 return __exportStar(__defProp(__create(__getProtoOf(module)), 'default', {
-1 6434 return __exportStar(__markAsModule(__defProp(module != null ? __create(__getProtoOf(module)) : {}, 'default', module && module.__esModule && 'default' in module ? {
-1 6435 get: function get() {
-1 6436 return module['default'];
-1 6437 },
-1 6438 enumerable: true
-1 6439 } : {
6448 6440 value: module,
6449 6441 enumerable: true
6450 -1 }), module);
-1 6442 })), module);
6451 6443 };
6452 6444 var require_utils = __commonJS(function(exports) {
6453 6445 'use strict';
@@ -6706,15 +6698,15 @@ module.exports = {
6706 6698 var selector = {
6707 6699 type: 'ruleSet'
6708 6700 };
6709 -1 var rule3 = parseRule();
6710 -1 if (!rule3) {
-1 6701 var rule = parseRule();
-1 6702 if (!rule) {
6711 6703 return null;
6712 6704 }
6713 6705 var currentRule = selector;
6714 -1 while (rule3) {
6715 -1 rule3.type = 'rule';
6716 -1 currentRule.rule = rule3;
6717 -1 currentRule = rule3;
-1 6706 while (rule) {
-1 6707 rule.type = 'rule';
-1 6708 currentRule.rule = rule;
-1 6709 currentRule = rule;
6718 6710 skipWhitespace();
6719 6711 chr = str.charAt(pos);
6720 6712 if (pos >= l || chr === ',' || chr === ')') {
@@ -6724,36 +6716,36 @@ module.exports = {
6724 6716 var op = chr;
6725 6717 pos++;
6726 6718 skipWhitespace();
6727 -1 rule3 = parseRule();
6728 -1 if (!rule3) {
-1 6719 rule = parseRule();
-1 6720 if (!rule) {
6729 6721 throw Error('Rule expected after "' + op + '".');
6730 6722 }
6731 -1 rule3.nestingOperator = op;
-1 6723 rule.nestingOperator = op;
6732 6724 } else {
6733 -1 rule3 = parseRule();
6734 -1 if (rule3) {
6735 -1 rule3.nestingOperator = null;
-1 6725 rule = parseRule();
-1 6726 if (rule) {
-1 6727 rule.nestingOperator = null;
6736 6728 }
6737 6729 }
6738 6730 }
6739 6731 return selector;
6740 6732 }
6741 6733 function parseRule() {
6742 -1 var rule3 = null;
-1 6734 var rule = null;
6743 6735 while (pos < l) {
6744 6736 chr = str.charAt(pos);
6745 6737 if (chr === '*') {
6746 6738 pos++;
6747 -1 (rule3 = rule3 || {}).tagName = '*';
-1 6739 (rule = rule || {}).tagName = '*';
6748 6740 } else if (utils_1.isIdentStart(chr) || chr === '\\') {
6749 -1 (rule3 = rule3 || {}).tagName = getIdent();
-1 6741 (rule = rule || {}).tagName = getIdent();
6750 6742 } else if (chr === '.') {
6751 6743 pos++;
6752 -1 rule3 = rule3 || {};
6753 -1 (rule3.classNames = rule3.classNames || []).push(getIdent());
-1 6744 rule = rule || {};
-1 6745 (rule.classNames = rule.classNames || []).push(getIdent());
6754 6746 } else if (chr === '#') {
6755 6747 pos++;
6756 -1 (rule3 = rule3 || {}).id = getIdent();
-1 6748 (rule = rule || {}).id = getIdent();
6757 6749 } else if (chr === '[') {
6758 6750 pos++;
6759 6751 skipWhitespace();
@@ -6810,8 +6802,8 @@ module.exports = {
6810 6802 pos++;
6811 6803 attr.value = attrValue;
6812 6804 }
6813 -1 rule3 = rule3 || {};
6814 -1 (rule3.attrs = rule3.attrs || []).push(attr);
-1 6805 rule = rule || {};
-1 6806 (rule.attrs = rule.attrs || []).push(attr);
6815 6807 } else if (chr === ':') {
6816 6808 pos++;
6817 6809 var pseudoName = getIdent();
@@ -6857,13 +6849,13 @@ module.exports = {
6857 6849 pos++;
6858 6850 pseudo.value = value;
6859 6851 }
6860 -1 rule3 = rule3 || {};
6861 -1 (rule3.pseudos = rule3.pseudos || []).push(pseudo);
-1 6852 rule = rule || {};
-1 6853 (rule.pseudos = rule.pseudos || []).push(pseudo);
6862 6854 } else {
6863 6855 break;
6864 6856 }
6865 6857 }
6866 -1 return rule3;
-1 6858 return rule;
6867 6859 }
6868 6860 return parse2();
6869 6861 }
@@ -7404,11 +7396,11 @@ module.exports = {
7404 7396 } else {
7405 7397 mixin = require_mixin();
7406 7398 generate = function() {
7407 -1 var cache21 = [];
-1 7399 var cache2 = [];
7408 7400 return function(length) {
7409 7401 var args, i = 0;
7410 -1 if (cache21[length]) {
7411 -1 return cache21[length];
-1 7402 if (cache2[length]) {
-1 7403 return cache2[length];
7412 7404 }
7413 7405 args = [];
7414 7406 while (length--) {
@@ -7538,7 +7530,7 @@ module.exports = {
7538 7530 var isPlainFunction = require_is5();
7539 7531 var assign = require_assign();
7540 7532 var normalizeOpts = require_normalize_options();
7541 -1 var contains6 = require_contains();
-1 7533 var contains3 = require_contains();
7542 7534 var d = module.exports = function(dscr, value) {
7543 7535 var c, e, w, options, desc;
7544 7536 if (arguments.length < 2 || typeof dscr !== 'string') {
@@ -7549,9 +7541,9 @@ module.exports = {
7549 7541 options = arguments[2];
7550 7542 }
7551 7543 if (isValue(dscr)) {
7552 -1 c = contains6.call(dscr, 'c');
7553 -1 e = contains6.call(dscr, 'e');
7554 -1 w = contains6.call(dscr, 'w');
-1 7544 c = contains3.call(dscr, 'c');
-1 7545 e = contains3.call(dscr, 'e');
-1 7546 w = contains3.call(dscr, 'w');
7555 7547 } else {
7556 7548 c = w = true;
7557 7549 e = false;
@@ -7586,8 +7578,8 @@ module.exports = {
7586 7578 set = void 0;
7587 7579 }
7588 7580 if (isValue(dscr)) {
7589 -1 c = contains6.call(dscr, 'c');
7590 -1 e = contains6.call(dscr, 'e');
-1 7581 c = contains3.call(dscr, 'c');
-1 7582 e = contains3.call(dscr, 'e');
7591 7583 } else {
7592 7584 c = true;
7593 7585 e = false;
@@ -8227,7 +8219,7 @@ module.exports = {
8227 8219 var _on = ee.on;
8228 8220 var emit = ee.emit;
8229 8221 module.exports = function(original, length, options) {
8230 -1 var cache21 = create(null), conf, memLength, _get, set, del, _clear, extDel, extGet, extHas, normalizer, getListeners, setListeners, deleteListeners, memoized, resolve;
-1 8222 var cache2 = create(null), conf, memLength, _get, set, del, _clear, extDel, extGet, extHas, normalizer, getListeners, setListeners, deleteListeners, memoized, resolve;
8231 8223 if (length !== false) {
8232 8224 memLength = length;
8233 8225 } else if (isNaN(original.length)) {
@@ -8253,11 +8245,11 @@ module.exports = {
8253 8245 }
8254 8246 id = _get(args);
8255 8247 if (id !== null) {
8256 -1 if (hasOwnProperty.call(cache21, id)) {
-1 8248 if (hasOwnProperty.call(cache2, id)) {
8257 8249 if (getListeners) {
8258 8250 conf.emit('get', id, args, this);
8259 8251 }
8260 -1 return cache21[id];
-1 8252 return cache2[id];
8261 8253 }
8262 8254 }
8263 8255 if (args.length === 1) {
@@ -8271,10 +8263,10 @@ module.exports = {
8271 8263 throw customError('Circular invocation', 'CIRCULAR_INVOCATION');
8272 8264 }
8273 8265 id = set(args);
8274 -1 } else if (hasOwnProperty.call(cache21, id)) {
-1 8266 } else if (hasOwnProperty.call(cache2, id)) {
8275 8267 throw customError('Circular invocation', 'CIRCULAR_INVOCATION');
8276 8268 }
8277 -1 cache21[id] = result;
-1 8269 cache2[id] = result;
8278 8270 if (setListeners) {
8279 8271 conf.emit('set', id, null, result);
8280 8272 }
@@ -8283,21 +8275,21 @@ module.exports = {
8283 8275 } else if (length === 0) {
8284 8276 memoized = function memoized() {
8285 8277 var result;
8286 -1 if (hasOwnProperty.call(cache21, 'data')) {
-1 8278 if (hasOwnProperty.call(cache2, 'data')) {
8287 8279 if (getListeners) {
8288 8280 conf.emit('get', 'data', arguments, this);
8289 8281 }
8290 -1 return cache21.data;
-1 8282 return cache2.data;
8291 8283 }
8292 8284 if (arguments.length) {
8293 8285 result = apply.call(original, this, arguments);
8294 8286 } else {
8295 8287 result = call.call(original, this);
8296 8288 }
8297 -1 if (hasOwnProperty.call(cache21, 'data')) {
-1 8289 if (hasOwnProperty.call(cache2, 'data')) {
8298 8290 throw customError('Circular invocation', 'CIRCULAR_INVOCATION');
8299 8291 }
8300 -1 cache21.data = result;
-1 8292 cache2.data = result;
8301 8293 if (setListeners) {
8302 8294 conf.emit('set', 'data', null, result);
8303 8295 }
@@ -8310,21 +8302,21 @@ module.exports = {
8310 8302 args = resolve(arguments);
8311 8303 }
8312 8304 id = String(args[0]);
8313 -1 if (hasOwnProperty.call(cache21, id)) {
-1 8305 if (hasOwnProperty.call(cache2, id)) {
8314 8306 if (getListeners) {
8315 8307 conf.emit('get', id, args, this);
8316 8308 }
8317 -1 return cache21[id];
-1 8309 return cache2[id];
8318 8310 }
8319 8311 if (args.length === 1) {
8320 8312 result = call.call(original, this, args[0]);
8321 8313 } else {
8322 8314 result = apply.call(original, this, args);
8323 8315 }
8324 -1 if (hasOwnProperty.call(cache21, id)) {
-1 8316 if (hasOwnProperty.call(cache2, id)) {
8325 8317 throw customError('Circular invocation', 'CIRCULAR_INVOCATION');
8326 8318 }
8327 -1 cache21[id] = result;
-1 8319 cache2[id] = result;
8328 8320 if (setListeners) {
8329 8321 conf.emit('set', id, null, result);
8330 8322 }
@@ -8345,28 +8337,28 @@ module.exports = {
8345 8337 return String(args[0]);
8346 8338 },
8347 8339 has: function has(id) {
8348 -1 return hasOwnProperty.call(cache21, id);
-1 8340 return hasOwnProperty.call(cache2, id);
8349 8341 },
8350 8342 delete: function _delete(id) {
8351 8343 var result;
8352 -1 if (!hasOwnProperty.call(cache21, id)) {
-1 8344 if (!hasOwnProperty.call(cache2, id)) {
8353 8345 return;
8354 8346 }
8355 8347 if (del) {
8356 8348 del(id);
8357 8349 }
8358 -1 result = cache21[id];
8359 -1 delete cache21[id];
-1 8350 result = cache2[id];
-1 8351 delete cache2[id];
8360 8352 if (deleteListeners) {
8361 8353 conf.emit('delete', id, result);
8362 8354 }
8363 8355 },
8364 8356 clear: function clear() {
8365 -1 var oldCache = cache21;
-1 8357 var oldCache = cache2;
8366 8358 if (_clear) {
8367 8359 _clear();
8368 8360 }
8369 -1 cache21 = create(null);
-1 8361 cache2 = create(null);
8370 8362 conf.emit('clear', oldCache);
8371 8363 },
8372 8364 on: function on(type, listener) {
@@ -8411,7 +8403,7 @@ module.exports = {
8411 8403 extGet = defineLength(function() {
8412 8404 var id, args = arguments;
8413 8405 if (length === 0) {
8414 -1 return cache21.data;
-1 8406 return cache2.data;
8415 8407 }
8416 8408 if (resolve) {
8417 8409 args = resolve(args);
@@ -8421,7 +8413,7 @@ module.exports = {
8421 8413 } else {
8422 8414 id = String(args[0]);
8423 8415 }
8424 -1 return cache21[id];
-1 8416 return cache2[id];
8425 8417 });
8426 8418 extHas = defineLength(function() {
8427 8419 var id, args = arguments;
@@ -8456,7 +8448,7 @@ module.exports = {
8456 8448 var callable = require_valid_callable();
8457 8449 var forEach = require_for_each();
8458 8450 var extensions = require_registered_extensions();
8459 -1 var configure5 = require_configure_map();
-1 8451 var configure4 = require_configure_map();
8460 8452 var resolveLength = require_resolve_length();
8461 8453 module.exports = function self2(fn) {
8462 8454 var options, length, conf;
@@ -8469,7 +8461,7 @@ module.exports = {
8469 8461 return fn;
8470 8462 }
8471 8463 length = resolveLength(options.length, fn.length, options.async && extensions.async);
8472 -1 conf = configure5(fn, length, options);
-1 8464 conf = configure4(fn, length, options);
8473 8465 forEach(extensions, function(extFn, name) {
8474 8466 if (options[name]) {
8475 8467 extFn(options[name], conf, options);
@@ -8572,7 +8564,7 @@ module.exports = {
8572 8564 var indexOf = require_e_index_of();
8573 8565 var create = Object.create;
8574 8566 module.exports = function() {
8575 -1 var lastId = 0, map = [], cache21 = create(null);
-1 8567 var lastId = 0, map = [], cache2 = create(null);
8576 8568 return {
8577 8569 get: function get(args) {
8578 8570 var index = 0, set = map, i, length = args.length;
@@ -8620,11 +8612,11 @@ module.exports = {
8620 8612 }
8621 8613 set[1][i] = ++lastId;
8622 8614 }
8623 -1 cache21[lastId] = args;
-1 8615 cache2[lastId] = args;
8624 8616 return lastId;
8625 8617 },
8626 8618 delete: function _delete(id) {
8627 -1 var index = 0, set = map, i, args = cache21[id], length = args.length, path = [];
-1 8619 var index = 0, set = map, i, args = cache2[id], length = args.length, path = [];
8628 8620 if (length === 0) {
8629 8621 delete set[length];
8630 8622 } else if (set = set[length]) {
@@ -8651,11 +8643,11 @@ module.exports = {
8651 8643 set[1].splice(i, 1);
8652 8644 }
8653 8645 }
8654 -1 delete cache21[id];
-1 8646 delete cache2[id];
8655 8647 },
8656 8648 clear: function clear() {
8657 8649 map = [];
8658 -1 cache21 = create(null);
-1 8650 cache2 = create(null);
8659 8651 }
8660 8652 };
8661 8653 };
@@ -8664,27 +8656,27 @@ module.exports = {
8664 8656 'use strict';
8665 8657 var indexOf = require_e_index_of();
8666 8658 module.exports = function() {
8667 -1 var lastId = 0, argsMap = [], cache21 = [];
-1 8659 var lastId = 0, argsMap = [], cache2 = [];
8668 8660 return {
8669 8661 get: function get(args) {
8670 8662 var index = indexOf.call(argsMap, args[0]);
8671 -1 return index === -1 ? null : cache21[index];
-1 8663 return index === -1 ? null : cache2[index];
8672 8664 },
8673 8665 set: function set(args) {
8674 8666 argsMap.push(args[0]);
8675 -1 cache21.push(++lastId);
-1 8667 cache2.push(++lastId);
8676 8668 return lastId;
8677 8669 },
8678 8670 delete: function _delete(id) {
8679 -1 var index = indexOf.call(cache21, id);
-1 8671 var index = indexOf.call(cache2, id);
8680 8672 if (index !== -1) {
8681 8673 argsMap.splice(index, 1);
8682 -1 cache21.splice(index, 1);
-1 8674 cache2.splice(index, 1);
8683 8675 }
8684 8676 },
8685 8677 clear: function clear() {
8686 8678 argsMap = [];
8687 -1 cache21 = [];
-1 8679 cache2 = [];
8688 8680 }
8689 8681 };
8690 8682 };
@@ -8694,7 +8686,7 @@ module.exports = {
8694 8686 var indexOf = require_e_index_of();
8695 8687 var create = Object.create;
8696 8688 module.exports = function(length) {
8697 -1 var lastId = 0, map = [ [], [] ], cache21 = create(null);
-1 8689 var lastId = 0, map = [ [], [] ], cache2 = create(null);
8698 8690 return {
8699 8691 get: function get(args) {
8700 8692 var index = 0, set = map, i;
@@ -8728,11 +8720,11 @@ module.exports = {
8728 8720 i = set[0].push(args[index]) - 1;
8729 8721 }
8730 8722 set[1][i] = ++lastId;
8731 -1 cache21[lastId] = args;
-1 8723 cache2[lastId] = args;
8732 8724 return lastId;
8733 8725 },
8734 8726 delete: function _delete(id) {
8735 -1 var index = 0, set = map, i, path = [], args = cache21[id];
-1 8727 var index = 0, set = map, i, path = [], args = cache2[id];
8736 8728 while (index < length - 1) {
8737 8729 i = indexOf.call(set[0], args[index]);
8738 8730 if (i === -1) {
@@ -8755,11 +8747,11 @@ module.exports = {
8755 8747 set[0].splice(i, 1);
8756 8748 set[1].splice(i, 1);
8757 8749 }
8758 -1 delete cache21[id];
-1 8750 delete cache2[id];
8759 8751 },
8760 8752 clear: function clear() {
8761 8753 map = [ [], [] ];
8762 -1 cache21 = create(null);
-1 8754 cache2 = create(null);
8763 8755 }
8764 8756 };
8765 8757 };
@@ -8787,19 +8779,19 @@ module.exports = {
8787 8779 return fn;
8788 8780 };
8789 8781 var byObserver = function byObserver(Observer) {
8790 -1 var node = document.createTextNode(''), queue4, currentQueue, i = 0;
-1 8782 var node = document.createTextNode(''), queue2, currentQueue, i = 0;
8791 8783 new Observer(function() {
8792 8784 var callback;
8793 -1 if (!queue4) {
-1 8785 if (!queue2) {
8794 8786 if (!currentQueue) {
8795 8787 return;
8796 8788 }
8797 -1 queue4 = currentQueue;
-1 8789 queue2 = currentQueue;
8798 8790 } else if (currentQueue) {
8799 -1 queue4 = currentQueue.concat(queue4);
-1 8791 queue2 = currentQueue.concat(queue2);
8800 8792 }
8801 -1 currentQueue = queue4;
8802 -1 queue4 = null;
-1 8793 currentQueue = queue2;
-1 8794 queue2 = null;
8803 8795 if (typeof currentQueue === 'function') {
8804 8796 callback = currentQueue;
8805 8797 currentQueue = null;
@@ -8819,15 +8811,15 @@ module.exports = {
8819 8811 });
8820 8812 return function(fn) {
8821 8813 ensureCallable(fn);
8822 -1 if (queue4) {
8823 -1 if (typeof queue4 === 'function') {
8824 -1 queue4 = [ queue4, fn ];
-1 8814 if (queue2) {
-1 8815 if (typeof queue2 === 'function') {
-1 8816 queue2 = [ queue2, fn ];
8825 8817 } else {
8826 -1 queue4.push(fn);
-1 8818 queue2.push(fn);
8827 8819 }
8828 8820 return;
8829 8821 }
8830 -1 queue4 = fn;
-1 8822 queue2 = fn;
8831 8823 node.data = i = ++i % 2;
8832 8824 };
8833 8825 };
@@ -8872,7 +8864,7 @@ module.exports = {
8872 8864 var apply = Function.prototype.apply;
8873 8865 var create = Object.create;
8874 8866 require_registered_extensions().async = function(tbi, conf) {
8875 -1 var waiting = create(null), cache21 = create(null), base = conf.memoized, original = conf.original, currentCallback, currentContext, currentArgs;
-1 8867 var waiting = create(null), cache2 = create(null), base = conf.memoized, original = conf.original, currentCallback, currentContext, currentArgs;
8876 8868 conf.memoized = defineLength(function(arg) {
8877 8869 var args = arguments, last = args[args.length - 1];
8878 8870 if (typeof last === 'function') {
@@ -8885,7 +8877,7 @@ module.exports = {
8885 8877 mixin(conf.memoized, base);
8886 8878 } catch (ignore) {}
8887 8879 conf.on('get', function(id) {
8888 -1 var cb, context5, args;
-1 8880 var cb, context, args;
8889 8881 if (!currentCallback) {
8890 8882 return;
8891 8883 }
@@ -8899,20 +8891,20 @@ module.exports = {
8899 8891 return;
8900 8892 }
8901 8893 cb = currentCallback;
8902 -1 context5 = currentContext;
-1 8894 context = currentContext;
8903 8895 args = currentArgs;
8904 8896 currentCallback = currentContext = currentArgs = null;
8905 8897 nextTick(function() {
8906 8898 var data2;
8907 -1 if (hasOwnProperty.call(cache21, id)) {
8908 -1 data2 = cache21[id];
8909 -1 conf.emit('getasync', id, args, context5);
-1 8899 if (hasOwnProperty.call(cache2, id)) {
-1 8900 data2 = cache2[id];
-1 8901 conf.emit('getasync', id, args, context);
8910 8902 apply.call(cb, data2.context, data2.args);
8911 8903 } else {
8912 8904 currentCallback = cb;
8913 -1 currentContext = context5;
-1 8905 currentContext = context;
8914 8906 currentArgs = args;
8915 -1 base.apply(context5, args);
-1 8907 base.apply(context, args);
8916 8908 }
8917 8909 });
8918 8910 });
@@ -8939,7 +8931,7 @@ module.exports = {
8939 8931 if (err2) {
8940 8932 conf['delete'](id);
8941 8933 } else {
8942 -1 cache21[id] = {
-1 8934 cache2[id] = {
8943 8935 context: this,
8944 8936 args: args2
8945 8937 };
@@ -8986,16 +8978,16 @@ module.exports = {
8986 8978 if (hasOwnProperty.call(waiting, id)) {
8987 8979 return;
8988 8980 }
8989 -1 if (!cache21[id]) {
-1 8981 if (!cache2[id]) {
8990 8982 return;
8991 8983 }
8992 -1 result = cache21[id];
8993 -1 delete cache21[id];
-1 8984 result = cache2[id];
-1 8985 delete cache2[id];
8994 8986 conf.emit('deleteasync', id, slice.call(result.args, 1));
8995 8987 });
8996 8988 conf.on('clear', function() {
8997 -1 var oldCache = cache21;
8998 -1 cache21 = create(null);
-1 8989 var oldCache = cache2;
-1 8990 cache2 = create(null);
8999 8991 conf.emit('clearasync', objectMap(oldCache, function(data2) {
9000 8992 return slice.call(data2.args, 1);
9001 8993 }));
@@ -9089,7 +9081,7 @@ module.exports = {
9089 9081 var create = Object.create;
9090 9082 var supportedModes = primitiveSet('then', 'then:finally', 'done', 'done:finally');
9091 9083 require_registered_extensions().promise = function(mode, conf) {
9092 -1 var waiting = create(null), cache21 = create(null), promises = create(null);
-1 9084 var waiting = create(null), cache2 = create(null), promises = create(null);
9093 9085 if (mode === true) {
9094 9086 mode = null;
9095 9087 } else {
@@ -9101,7 +9093,7 @@ module.exports = {
9101 9093 conf.on('set', function(id, ignore, promise) {
9102 9094 var isFailed = false;
9103 9095 if (!isPromise(promise)) {
9104 -1 cache21[id] = promise;
-1 9096 cache2[id] = promise;
9105 9097 conf.emit('setasync', id, 1);
9106 9098 return;
9107 9099 }
@@ -9116,7 +9108,7 @@ module.exports = {
9116 9108 return;
9117 9109 }
9118 9110 delete waiting[id];
9119 -1 cache21[id] = result;
-1 9111 cache2[id] = result;
9120 9112 conf.emit('setasync', id, count);
9121 9113 };
9122 9114 var onFailure = function onFailure() {
@@ -9158,7 +9150,7 @@ module.exports = {
9158 9150 promise['finally'](onFailure);
9159 9151 }
9160 9152 });
9161 -1 conf.on('get', function(id, args, context5) {
-1 9153 conf.on('get', function(id, args, context) {
9162 9154 var promise;
9163 9155 if (waiting[id]) {
9164 9156 ++waiting[id];
@@ -9166,7 +9158,7 @@ module.exports = {
9166 9158 }
9167 9159 promise = promises[id];
9168 9160 var emit = function emit() {
9169 -1 conf.emit('getasync', id, args, context5);
-1 9161 conf.emit('getasync', id, args, context);
9170 9162 };
9171 9163 if (isPromise(promise)) {
9172 9164 if (typeof promise.done === 'function') {
@@ -9186,16 +9178,16 @@ module.exports = {
9186 9178 delete waiting[id];
9187 9179 return;
9188 9180 }
9189 -1 if (!hasOwnProperty.call(cache21, id)) {
-1 9181 if (!hasOwnProperty.call(cache2, id)) {
9190 9182 return;
9191 9183 }
9192 -1 var result = cache21[id];
9193 -1 delete cache21[id];
-1 9184 var result = cache2[id];
-1 9185 delete cache2[id];
9194 9186 conf.emit('deleteasync', id, [ result ]);
9195 9187 });
9196 9188 conf.on('clear', function() {
9197 -1 var oldCache = cache21;
9198 -1 cache21 = create(null);
-1 9189 var oldCache = cache2;
-1 9190 cache2 = create(null);
9199 9191 waiting = create(null);
9200 9192 promises = create(null);
9201 9193 conf.emit('clearasync', objectMap(oldCache, function(data2) {
@@ -9217,8 +9209,8 @@ module.exports = {
9217 9209 conf.on('deleteasync', del = function del(id, resultArray) {
9218 9210 apply.call(dispose, null, resultArray);
9219 9211 });
9220 -1 conf.on('clearasync', function(cache21) {
9221 -1 forEach(cache21, function(result, id) {
-1 9212 conf.on('clearasync', function(cache2) {
-1 9213 forEach(cache2, function(result, id) {
9222 9214 del(id, result);
9223 9215 });
9224 9216 });
@@ -9227,8 +9219,8 @@ module.exports = {
9227 9219 conf.on('delete', del = function del(id, result) {
9228 9220 dispose(result);
9229 9221 });
9230 -1 conf.on('clear', function(cache21) {
9231 -1 forEach(cache21, function(result, id) {
-1 9222 conf.on('clear', function(cache2) {
-1 9223 forEach(cache2, function(result, id) {
9232 9224 del(id, result);
9233 9225 });
9234 9226 });
@@ -9312,7 +9304,7 @@ module.exports = {
9312 9304 if (preFetchAge) {
9313 9305 preFetchTimeouts = {};
9314 9306 preFetchAge = (1 - preFetchAge) * maxAge;
9315 -1 conf.on('get' + postfix, function(id, args, context5) {
-1 9307 conf.on('get' + postfix, function(id, args, context) {
9316 9308 if (!preFetchTimeouts[id]) {
9317 9309 preFetchTimeouts[id] = 'nextTick';
9318 9310 nextTick(function() {
@@ -9326,7 +9318,7 @@ module.exports = {
9326 9318 args = aFrom(args);
9327 9319 args.push(noop3);
9328 9320 }
9329 -1 result = conf.memoized.apply(context5, args);
-1 9321 result = conf.memoized.apply(context, args);
9330 9322 if (options.promise) {
9331 9323 if (isPromise(result)) {
9332 9324 if (typeof result.done === 'function') {
@@ -9363,27 +9355,27 @@ module.exports = {
9363 9355 var create = Object.create;
9364 9356 var hasOwnProperty2 = Object.prototype.hasOwnProperty;
9365 9357 module.exports = function(limit) {
9366 -1 var size = 0, base = 1, queue4 = create(null), map = create(null), index = 0, del;
-1 9358 var size = 0, base = 1, queue2 = create(null), map = create(null), index = 0, del;
9367 9359 limit = toPosInt(limit);
9368 9360 return {
9369 9361 hit: function hit(id) {
9370 9362 var oldIndex = map[id], nuIndex = ++index;
9371 -1 queue4[nuIndex] = id;
-1 9363 queue2[nuIndex] = id;
9372 9364 map[id] = nuIndex;
9373 9365 if (!oldIndex) {
9374 9366 ++size;
9375 9367 if (size <= limit) {
9376 9368 return;
9377 9369 }
9378 -1 id = queue4[base];
-1 9370 id = queue2[base];
9379 9371 del(id);
9380 9372 return id;
9381 9373 }
9382 -1 delete queue4[oldIndex];
-1 9374 delete queue2[oldIndex];
9383 9375 if (base !== oldIndex) {
9384 9376 return;
9385 9377 }
9386 -1 while (!hasOwnProperty2.call(queue4, ++base)) {
-1 9378 while (!hasOwnProperty2.call(queue2, ++base)) {
9387 9379 continue;
9388 9380 }
9389 9381 },
@@ -9392,7 +9384,7 @@ module.exports = {
9392 9384 if (!oldIndex) {
9393 9385 return;
9394 9386 }
9395 -1 delete queue4[oldIndex];
-1 9387 delete queue2[oldIndex];
9396 9388 delete map[id];
9397 9389 --size;
9398 9390 if (base !== oldIndex) {
@@ -9403,14 +9395,14 @@ module.exports = {
9403 9395 base = 1;
9404 9396 return;
9405 9397 }
9406 -1 while (!hasOwnProperty2.call(queue4, ++base)) {
-1 9398 while (!hasOwnProperty2.call(queue2, ++base)) {
9407 9399 continue;
9408 9400 }
9409 9401 },
9410 9402 clear: function clear() {
9411 9403 size = 0;
9412 9404 base = 1;
9413 -1 queue4 = create(null);
-1 9405 queue2 = create(null);
9414 9406 map = create(null);
9415 9407 index = 0;
9416 9408 }
@@ -9423,23 +9415,23 @@ module.exports = {
9423 9415 var lruQueue = require_lru_queue();
9424 9416 var extensions = require_registered_extensions();
9425 9417 extensions.max = function(max, conf, options) {
9426 -1 var postfix, queue4, hit;
-1 9418 var postfix, queue2, hit;
9427 9419 max = toPosInteger(max);
9428 9420 if (!max) {
9429 9421 return;
9430 9422 }
9431 -1 queue4 = lruQueue(max);
-1 9423 queue2 = lruQueue(max);
9432 9424 postfix = options.async && extensions.async || options.promise && extensions.promise ? 'async' : '';
9433 9425 conf.on('set' + postfix, hit = function hit(id) {
9434 -1 id = queue4.hit(id);
-1 9426 id = queue2.hit(id);
9435 9427 if (id === void 0) {
9436 9428 return;
9437 9429 }
9438 9430 conf['delete'](id);
9439 9431 });
9440 9432 conf.on('get' + postfix, hit);
9441 -1 conf.on('delete' + postfix, queue4['delete']);
9442 -1 conf.on('clear' + postfix, queue4.clear);
-1 9433 conf.on('delete' + postfix, queue2['delete']);
-1 9434 conf.on('clear' + postfix, queue2.clear);
9443 9435 };
9444 9436 });
9445 9437 var require_ref_counter = __commonJS(function() {
@@ -9449,20 +9441,20 @@ module.exports = {
9449 9441 var create = Object.create;
9450 9442 var defineProperties = Object.defineProperties;
9451 9443 extensions.refCounter = function(ignore, conf, options) {
9452 -1 var cache21, postfix;
9453 -1 cache21 = create(null);
-1 9444 var cache2, postfix;
-1 9445 cache2 = create(null);
9454 9446 postfix = options.async && extensions.async || options.promise && extensions.promise ? 'async' : '';
9455 9447 conf.on('set' + postfix, function(id, length) {
9456 -1 cache21[id] = length || 1;
-1 9448 cache2[id] = length || 1;
9457 9449 });
9458 9450 conf.on('get' + postfix, function(id) {
9459 -1 ++cache21[id];
-1 9451 ++cache2[id];
9460 9452 });
9461 9453 conf.on('delete' + postfix, function(id) {
9462 -1 delete cache21[id];
-1 9454 delete cache2[id];
9463 9455 });
9464 9456 conf.on('clear' + postfix, function() {
9465 -1 cache21 = {};
-1 9457 cache2 = {};
9466 9458 });
9467 9459 defineProperties(conf.memoized, {
9468 9460 deleteRef: d(function() {
@@ -9470,10 +9462,10 @@ module.exports = {
9470 9462 if (id === null) {
9471 9463 return null;
9472 9464 }
9473 -1 if (!cache21[id]) {
-1 9465 if (!cache2[id]) {
9474 9466 return null;
9475 9467 }
9476 -1 if (!--cache21[id]) {
-1 9468 if (!--cache2[id]) {
9477 9469 conf['delete'](id);
9478 9470 return true;
9479 9471 }
@@ -9484,10 +9476,10 @@ module.exports = {
9484 9476 if (id === null) {
9485 9477 return 0;
9486 9478 }
9487 -1 if (!cache21[id]) {
-1 9479 if (!cache2[id]) {
9488 9480 return 0;
9489 9481 }
9490 -1 return cache21[id];
-1 9482 return cache2[id];
9491 9483 })
9492 9484 });
9493 9485 };
@@ -9538,12 +9530,6 @@ module.exports = {
9538 9530 return plain(fn, options);
9539 9531 };
9540 9532 });
9541 -1 var require_emoji_regex = __commonJS(function(exports, module) {
9542 -1 'use strict';
9543 -1 module.exports = function() {
9544 -1 return /\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g;
9545 -1 };
9546 -1 });
9547 9533 var require_doT = __commonJS(function(exports, module) {
9548 9534 (function() {
9549 9535 'use strict';
@@ -9744,8 +9730,8 @@ module.exports = {
9744 9730 var vertxNext = void 0;
9745 9731 var customSchedulerFn = void 0;
9746 9732 var asap = function asap2(callback, arg) {
9747 -1 queue4[len] = callback;
9748 -1 queue4[len + 1] = arg;
-1 9733 queue2[len] = callback;
-1 9734 queue2[len + 1] = arg;
9749 9735 len += 2;
9750 9736 if (len === 2) {
9751 9737 if (customSchedulerFn) {
@@ -9803,14 +9789,14 @@ module.exports = {
9803 9789 return globalSetTimeout(flush, 1);
9804 9790 };
9805 9791 }
9806 -1 var queue4 = new Array(1e3);
-1 9792 var queue2 = new Array(1e3);
9807 9793 function flush() {
9808 9794 for (var i = 0; i < len; i += 2) {
9809 -1 var callback = queue4[i];
9810 -1 var arg = queue4[i + 1];
-1 9795 var callback = queue2[i];
-1 9796 var arg = queue2[i + 1];
9811 9797 callback(arg);
9812 -1 queue4[i] = void 0;
9813 -1 queue4[i + 1] = void 0;
-1 9798 queue2[i] = void 0;
-1 9799 queue2[i + 1] = void 0;
9814 9800 }
9815 9801 len = 0;
9816 9802 }
@@ -10266,7 +10252,7 @@ module.exports = {
10266 10252 var LN2 = Math.LN2;
10267 10253 var abs = Math.abs;
10268 10254 var floor = Math.floor;
10269 -1 var log9 = Math.log;
-1 10255 var log2 = Math.log;
10270 10256 var min = Math.min;
10271 10257 var pow = Math.pow;
10272 10258 var round = Math.round;
@@ -10422,7 +10408,7 @@ module.exports = {
10422 10408 s = v < 0;
10423 10409 v = abs(v);
10424 10410 if (v >= pow(2, 1 - bias)) {
10425 -1 e = min(floor(log9(v) / LN2), 1023);
-1 10411 e = min(floor(log2(v) / LN2), 1023);
10426 10412 f = roundToEven(v / pow(2, e) * pow(2, fbits));
10427 10413 if (f / pow(2, fbits) >= 2) {
10428 10414 e = e + 1;
@@ -10630,8 +10616,8 @@ module.exports = {
10630 10616 this.buffer._bytes[d] = tmp[i];
10631 10617 }
10632 10618 } else {
10633 -1 for (i = 0, s = array.byteOffset, d = byteOffset; i < byteLength; i += 1, s += 1,
10634 -1 d += 1) {
-1 10619 for (i = 0, s = array.byteOffset, d = byteOffset; i < byteLength; i += 1,
-1 10620 s += 1, d += 1) {
10635 10621 this.buffer._bytes[d] = array.buffer._bytes[s];
10636 10622 }
10637 10623 }
@@ -10903,6 +10889,7 @@ module.exports = {
10903 10889 } ];
10904 10890 var constants = {
10905 10891 helpUrlBase: 'https://dequeuniversity.com/rules/',
-1 10892 gridSize: 200,
10906 10893 results: [],
10907 10894 resultGroups: [],
10908 10895 resultGroupMap: {},
@@ -11031,7 +11018,7 @@ module.exports = {
11031 11018 return extend_meta_data_default;
11032 11019 },
11033 11020 filterHtmlAttrs: function filterHtmlAttrs() {
11034 -1 return filter_html_attrs_default;
-1 11021 return _filterHtmlAttrs;
11035 11022 },
11036 11023 finalizeRuleResult: function finalizeRuleResult() {
11037 11024 return finalize_result_default;
@@ -11115,7 +11102,7 @@ module.exports = {
11115 11102 return is_html_element_default;
11116 11103 },
11117 11104 isNodeInContext: function isNodeInContext() {
11118 -1 return is_node_in_context_default;
-1 11105 return _isNodeInContext;
11119 11106 },
11120 11107 isShadowRoot: function isShadowRoot() {
11121 11108 return is_shadow_root_default;
@@ -11193,7 +11180,7 @@ module.exports = {
11193 11180 return rule_should_run_default;
11194 11181 },
11195 11182 select: function select() {
11196 -1 return select_default;
-1 11183 return _select;
11197 11184 },
11198 11185 sendCommandToFrame: function sendCommandToFrame() {
11199 11186 return _sendCommandToFrame;
@@ -11204,6 +11191,9 @@ module.exports = {
11204 11191 shadowSelect: function shadowSelect() {
11205 11192 return _shadowSelect;
11206 11193 },
-1 11194 shadowSelectAll: function shadowSelectAll() {
-1 11195 return _shadowSelectAll;
-1 11196 },
11207 11197 shouldPreload: function shouldPreload() {
11208 11198 return _shouldPreload;
11209 11199 },
@@ -11226,1533 +11216,1556 @@ module.exports = {
11226 11216 return _validLangs;
11227 11217 }
11228 11218 });
11229 -1 var errorTypes = Object.freeze([ 'EvalError', 'RangeError', 'ReferenceError', 'SyntaxError', 'TypeError', 'URIError' ]);
11230 -1 function stringifyMessage(_ref) {
11231 -1 var topic = _ref.topic, channelId = _ref.channelId, message = _ref.message, messageId = _ref.messageId, keepalive = _ref.keepalive;
11232 -1 var data2 = {
11233 -1 channelId: channelId,
11234 -1 topic: topic,
11235 -1 messageId: messageId,
11236 -1 keepalive: !!keepalive,
11237 -1 source: getSource()
-1 11219 function aggregate(map, values, initial) {
-1 11220 values = values.slice();
-1 11221 if (initial) {
-1 11222 values.push(initial);
-1 11223 }
-1 11224 var sorting = values.map(function(val) {
-1 11225 return map.indexOf(val);
-1 11226 }).sort();
-1 11227 return map[sorting.pop()];
-1 11228 }
-1 11229 var aggregate_default = aggregate;
-1 11230 var CANTTELL_PRIO = constants_default.CANTTELL_PRIO, FAIL_PRIO = constants_default.FAIL_PRIO;
-1 11231 var checkMap = [];
-1 11232 checkMap[constants_default.PASS_PRIO] = true;
-1 11233 checkMap[constants_default.CANTTELL_PRIO] = null;
-1 11234 checkMap[constants_default.FAIL_PRIO] = false;
-1 11235 var checkTypes = [ 'any', 'all', 'none' ];
-1 11236 function anyAllNone(obj, functor) {
-1 11237 return checkTypes.reduce(function(out, type) {
-1 11238 out[type] = (obj[type] || []).map(function(val) {
-1 11239 return functor(val, type);
-1 11240 });
-1 11241 return out;
-1 11242 }, {});
-1 11243 }
-1 11244 function aggregateChecks(nodeResOriginal) {
-1 11245 var nodeResult = Object.assign({}, nodeResOriginal);
-1 11246 anyAllNone(nodeResult, function(check, type) {
-1 11247 var i = typeof check.result === 'undefined' ? -1 : checkMap.indexOf(check.result);
-1 11248 check.priority = i !== -1 ? i : constants_default.CANTTELL_PRIO;
-1 11249 if (type === 'none') {
-1 11250 if (check.priority === constants_default.PASS_PRIO) {
-1 11251 check.priority = constants_default.FAIL_PRIO;
-1 11252 } else if (check.priority === constants_default.FAIL_PRIO) {
-1 11253 check.priority = constants_default.PASS_PRIO;
-1 11254 }
-1 11255 }
-1 11256 });
-1 11257 var priorities = {
-1 11258 all: nodeResult.all.reduce(function(a, b) {
-1 11259 return Math.max(a, b.priority);
-1 11260 }, 0),
-1 11261 none: nodeResult.none.reduce(function(a, b) {
-1 11262 return Math.max(a, b.priority);
-1 11263 }, 0),
-1 11264 any: nodeResult.any.reduce(function(a, b) {
-1 11265 return Math.min(a, b.priority);
-1 11266 }, 4) % 4
11238 11267 };
11239 -1 if (message instanceof Error) {
11240 -1 data2.error = {
11241 -1 name: message.name,
11242 -1 message: message.message,
11243 -1 stack: message.stack
11244 -1 };
-1 11268 nodeResult.priority = Math.max(priorities.all, priorities.none, priorities.any);
-1 11269 var impacts = [];
-1 11270 checkTypes.forEach(function(type) {
-1 11271 nodeResult[type] = nodeResult[type].filter(function(check) {
-1 11272 return check.priority === nodeResult.priority && check.priority === priorities[type];
-1 11273 });
-1 11274 nodeResult[type].forEach(function(check) {
-1 11275 return impacts.push(check.impact);
-1 11276 });
-1 11277 });
-1 11278 if ([ CANTTELL_PRIO, FAIL_PRIO ].includes(nodeResult.priority)) {
-1 11279 nodeResult.impact = aggregate_default(constants_default.impact, impacts);
11245 11280 } else {
11246 -1 data2.payload = message;
-1 11281 nodeResult.impact = null;
11247 11282 }
11248 -1 return JSON.stringify(data2);
-1 11283 anyAllNone(nodeResult, function(c) {
-1 11284 delete c.result;
-1 11285 delete c.priority;
-1 11286 });
-1 11287 nodeResult.result = constants_default.results[nodeResult.priority];
-1 11288 delete nodeResult.priority;
-1 11289 return nodeResult;
11249 11290 }
11250 -1 function parseMessage(dataString) {
11251 -1 var data2;
11252 -1 try {
11253 -1 data2 = JSON.parse(dataString);
11254 -1 } catch (e) {
11255 -1 return;
-1 11291 var aggregate_checks_default = aggregateChecks;
-1 11292 function finalizeRuleResult(ruleResult) {
-1 11293 var rule = axe._audit.rules.find(function(rule2) {
-1 11294 return rule2.id === ruleResult.id;
-1 11295 });
-1 11296 if (rule && rule.impact) {
-1 11297 ruleResult.nodes.forEach(function(node) {
-1 11298 [ 'any', 'all', 'none' ].forEach(function(checkType) {
-1 11299 (node[checkType] || []).forEach(function(checkResult) {
-1 11300 checkResult.impact = rule.impact;
-1 11301 });
-1 11302 });
-1 11303 });
11256 11304 }
11257 -1 if (!isRespondableMessage(data2)) {
11258 -1 return;
-1 11305 Object.assign(ruleResult, aggregate_node_results_default(ruleResult.nodes));
-1 11306 delete ruleResult.nodes;
-1 11307 return ruleResult;
-1 11308 }
-1 11309 var finalize_result_default = finalizeRuleResult;
-1 11310 function aggregateNodeResults(nodeResults) {
-1 11311 var ruleResult = {};
-1 11312 nodeResults = nodeResults.map(function(nodeResult) {
-1 11313 if (nodeResult.any && nodeResult.all && nodeResult.none) {
-1 11314 return aggregate_checks_default(nodeResult);
-1 11315 } else if (Array.isArray(nodeResult.node)) {
-1 11316 return finalize_result_default(nodeResult);
-1 11317 } else {
-1 11318 throw new TypeError('Invalid Result type');
-1 11319 }
-1 11320 });
-1 11321 if (nodeResults && nodeResults.length) {
-1 11322 var resultList = nodeResults.map(function(node) {
-1 11323 return node.result;
-1 11324 });
-1 11325 ruleResult.result = aggregate_default(constants_default.results, resultList, ruleResult.result);
-1 11326 } else {
-1 11327 ruleResult.result = 'inapplicable';
11259 11328 }
11260 -1 var _data = data2, topic = _data.topic, channelId = _data.channelId, messageId = _data.messageId, keepalive = _data.keepalive;
11261 -1 var message = _typeof(data2.error) === 'object' ? buildErrorObject(data2.error) : data2.payload;
11262 -1 return {
11263 -1 topic: topic,
11264 -1 message: message,
11265 -1 messageId: messageId,
11266 -1 channelId: channelId,
11267 -1 keepalive: !!keepalive
11268 -1 };
-1 11329 constants_default.resultGroups.forEach(function(group) {
-1 11330 return ruleResult[group] = [];
-1 11331 });
-1 11332 nodeResults.forEach(function(nodeResult) {
-1 11333 var groupName = constants_default.resultGroupMap[nodeResult.result];
-1 11334 ruleResult[groupName].push(nodeResult);
-1 11335 });
-1 11336 var impactGroup = constants_default.FAIL_GROUP;
-1 11337 if (ruleResult[impactGroup].length === 0) {
-1 11338 impactGroup = constants_default.CANTTELL_GROUP;
-1 11339 }
-1 11340 if (ruleResult[impactGroup].length > 0) {
-1 11341 var impactList = ruleResult[impactGroup].map(function(failure) {
-1 11342 return failure.impact;
-1 11343 });
-1 11344 ruleResult.impact = aggregate_default(constants_default.impact, impactList) || null;
-1 11345 } else {
-1 11346 ruleResult.impact = null;
-1 11347 }
-1 11348 return ruleResult;
11269 11349 }
11270 -1 function isRespondableMessage(postedMessage) {
11271 -1 return postedMessage !== null && _typeof(postedMessage) === 'object' && typeof postedMessage.channelId === 'string' && postedMessage.source === getSource();
-1 11350 var aggregate_node_results_default = aggregateNodeResults;
-1 11351 function copyToGroup(resultObject, subResult, group) {
-1 11352 var resultCopy = Object.assign({}, subResult);
-1 11353 resultCopy.nodes = (resultCopy[group] || []).concat();
-1 11354 constants_default.resultGroups.forEach(function(group2) {
-1 11355 delete resultCopy[group2];
-1 11356 });
-1 11357 resultObject[group].push(resultCopy);
11272 11358 }
11273 -1 function buildErrorObject(error) {
11274 -1 var msg = error.message || 'Unknown error occurred';
11275 -1 var errorName = errorTypes.includes(error.name) ? error.name : 'Error';
11276 -1 var ErrConstructor = window[errorName] || Error;
11277 -1 if (error.stack) {
11278 -1 msg += '\n' + error.stack.replace(error.message, '');
11279 -1 }
11280 -1 return new ErrConstructor(msg);
-1 11359 function aggregateResult(results) {
-1 11360 var resultObject = {};
-1 11361 constants_default.resultGroups.forEach(function(groupName) {
-1 11362 return resultObject[groupName] = [];
-1 11363 });
-1 11364 results.forEach(function(subResult) {
-1 11365 if (subResult.error) {
-1 11366 copyToGroup(resultObject, subResult, constants_default.CANTTELL_GROUP);
-1 11367 } else if (subResult.result === constants_default.NA) {
-1 11368 copyToGroup(resultObject, subResult, constants_default.NA_GROUP);
-1 11369 } else {
-1 11370 constants_default.resultGroups.forEach(function(group) {
-1 11371 if (Array.isArray(subResult[group]) && subResult[group].length > 0) {
-1 11372 copyToGroup(resultObject, subResult, group);
-1 11373 }
-1 11374 });
-1 11375 }
-1 11376 });
-1 11377 return resultObject;
11281 11378 }
11282 -1 function getSource() {
11283 -1 var application = 'axeAPI';
11284 -1 var version = '';
11285 -1 if (typeof axe !== 'undefined' && axe._audit && axe._audit.application) {
11286 -1 application = axe._audit.application;
-1 11379 var aggregate_result_default = aggregateResult;
-1 11380 function areStylesSet(el, styles, stopAt) {
-1 11381 var styl = window.getComputedStyle(el, null);
-1 11382 if (!styl) {
-1 11383 return false;
11287 11384 }
11288 -1 if (typeof axe !== 'undefined') {
11289 -1 version = axe.version;
-1 11385 for (var i = 0; i < styles.length; ++i) {
-1 11386 var att = styles[i];
-1 11387 if (styl.getPropertyValue(att.property) === att.value) {
-1 11388 return true;
-1 11389 }
11290 11390 }
11291 -1 return application + '.' + version;
-1 11391 if (!el.parentNode || el.nodeName.toUpperCase() === stopAt.toUpperCase()) {
-1 11392 return false;
-1 11393 }
-1 11394 return areStylesSet(el.parentNode, styles, stopAt);
11292 11395 }
-1 11396 var are_styles_set_default = areStylesSet;
11293 11397 function assert(bool, message) {
11294 11398 if (!bool) {
11295 11399 throw new Error(message);
11296 11400 }
11297 11401 }
11298 11402 var assert_default = assert;
11299 -1 function assertIsParentWindow(win) {
11300 -1 assetNotGlobalWindow(win);
11301 -1 assert_default(window.parent === win, 'Source of the response must be the parent window.');
11302 -1 }
11303 -1 function assertIsFrameWindow(win) {
11304 -1 assetNotGlobalWindow(win);
11305 -1 assert_default(win.parent === window, 'Respondable target must be a frame in the current window');
-1 11403 function toArray(thing) {
-1 11404 return Array.prototype.slice.call(thing);
11306 11405 }
11307 -1 function assetNotGlobalWindow(win) {
11308 -1 assert_default(window !== win, 'Messages can not be sent to the same window.');
11309 -1 }
11310 -1 var channels = {};
11311 -1 function storeReplyHandler(channelId, replyHandler) {
11312 -1 var sendToParent = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
11313 -1 assert_default(!channels[channelId], 'A replyHandler already exists for this message channel.');
11314 -1 channels[channelId] = {
11315 -1 replyHandler: replyHandler,
11316 -1 sendToParent: sendToParent
11317 -1 };
11318 -1 }
11319 -1 function getReplyHandler(channelId) {
11320 -1 return channels[channelId];
11321 -1 }
11322 -1 function deleteReplyHandler(channelId) {
11323 -1 delete channels[channelId];
11324 -1 }
11325 -1 var uuid;
11326 -1 var _rng;
11327 -1 var _crypto = window.crypto || window.msCrypto;
11328 -1 if (!_rng && _crypto && _crypto.getRandomValues) {
11329 -1 var _rnds8 = new Uint8Array(16);
11330 -1 _rng = function whatwgRNG() {
11331 -1 _crypto.getRandomValues(_rnds8);
11332 -1 return _rnds8;
11333 -1 };
11334 -1 }
11335 -1 if (!_rng) {
11336 -1 var _rnds = new Array(16);
11337 -1 _rng = function _rng() {
11338 -1 for (var i = 0, r; i < 16; i++) {
11339 -1 if ((i & 3) === 0) {
11340 -1 r = Math.random() * 4294967296;
11341 -1 }
11342 -1 _rnds[i] = r >>> ((i & 3) << 3) & 255;
-1 11406 var to_array_default = toArray;
-1 11407 function escapeSelector(value) {
-1 11408 var string = String(value);
-1 11409 var length = string.length;
-1 11410 var index = -1;
-1 11411 var codeUnit;
-1 11412 var result = '';
-1 11413 var firstCodeUnit = string.charCodeAt(0);
-1 11414 while (++index < length) {
-1 11415 codeUnit = string.charCodeAt(index);
-1 11416 if (codeUnit == 0) {
-1 11417 result += '\ufffd';
-1 11418 continue;
11343 11419 }
11344 -1 return _rnds;
11345 -1 };
11346 -1 }
11347 -1 var BufferClass = typeof window.Buffer == 'function' ? window.Buffer : Array;
11348 -1 var _byteToHex = [];
11349 -1 var _hexToByte = {};
11350 -1 for (var i = 0; i < 256; i++) {
11351 -1 _byteToHex[i] = (i + 256).toString(16).substr(1);
11352 -1 _hexToByte[_byteToHex[i]] = i;
11353 -1 }
11354 -1 function parse(s, buf, offset) {
11355 -1 var i = buf && offset || 0, ii = 0;
11356 -1 buf = buf || [];
11357 -1 s.toLowerCase().replace(/[0-9a-f]{2}/g, function(oct) {
11358 -1 if (ii < 16) {
11359 -1 buf[i + ii++] = _hexToByte[oct];
-1 11420 if (codeUnit >= 1 && codeUnit <= 31 || codeUnit == 127 || index == 0 && codeUnit >= 48 && codeUnit <= 57 || index == 1 && codeUnit >= 48 && codeUnit <= 57 && firstCodeUnit == 45) {
-1 11421 result += '\\' + codeUnit.toString(16) + ' ';
-1 11422 continue;
11360 11423 }
11361 -1 });
11362 -1 while (ii < 16) {
11363 -1 buf[i + ii++] = 0;
-1 11424 if (index == 0 && length == 1 && codeUnit == 45) {
-1 11425 result += '\\' + string.charAt(index);
-1 11426 continue;
-1 11427 }
-1 11428 if (codeUnit >= 128 || codeUnit == 45 || codeUnit == 95 || codeUnit >= 48 && codeUnit <= 57 || codeUnit >= 65 && codeUnit <= 90 || codeUnit >= 97 && codeUnit <= 122) {
-1 11429 result += string.charAt(index);
-1 11430 continue;
-1 11431 }
-1 11432 result += '\\' + string.charAt(index);
11364 11433 }
11365 -1 return buf;
-1 11434 return result;
11366 11435 }
11367 -1 function unparse(buf, offset) {
11368 -1 var i = offset || 0, bth = _byteToHex;
11369 -1 return bth[buf[i++]] + bth[buf[i++]] + bth[buf[i++]] + bth[buf[i++]] + '-' + bth[buf[i++]] + bth[buf[i++]] + '-' + bth[buf[i++]] + bth[buf[i++]] + '-' + bth[buf[i++]] + bth[buf[i++]] + '-' + bth[buf[i++]] + bth[buf[i++]] + bth[buf[i++]] + bth[buf[i++]] + bth[buf[i++]] + bth[buf[i++]];
-1 11436 var escape_selector_default = escapeSelector;
-1 11437 function isMostlyNumbers() {
-1 11438 var str = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
-1 11439 return str.length !== 0 && (str.match(/[0-9]/g) || '').length >= str.length / 2;
11370 11440 }
11371 -1 var _seedBytes = _rng();
11372 -1 var _nodeId = [ _seedBytes[0] | 1, _seedBytes[1], _seedBytes[2], _seedBytes[3], _seedBytes[4], _seedBytes[5] ];
11373 -1 var _clockseq = (_seedBytes[6] << 8 | _seedBytes[7]) & 16383;
11374 -1 var _lastMSecs = 0;
11375 -1 var _lastNSecs = 0;
11376 -1 function v1(options, buf, offset) {
11377 -1 var i = buf && offset || 0;
11378 -1 var b = buf || [];
11379 -1 options = options || {};
11380 -1 var clockseq = options.clockseq != null ? options.clockseq : _clockseq;
11381 -1 var msecs = options.msecs != null ? options.msecs : new Date().getTime();
11382 -1 var nsecs = options.nsecs != null ? options.nsecs : _lastNSecs + 1;
11383 -1 var dt = msecs - _lastMSecs + (nsecs - _lastNSecs) / 1e4;
11384 -1 if (dt < 0 && options.clockseq == null) {
11385 -1 clockseq = clockseq + 1 & 16383;
-1 11441 function splitString(str, splitIndex) {
-1 11442 return [ str.substring(0, splitIndex), str.substring(splitIndex) ];
-1 11443 }
-1 11444 function trimRight(str) {
-1 11445 return str.replace(/\s+$/, '');
-1 11446 }
-1 11447 function uriParser(url) {
-1 11448 var original = url;
-1 11449 var protocol = '', domain = '', port = '', path = '', query = '', hash = '';
-1 11450 if (url.includes('#')) {
-1 11451 var _splitString = splitString(url, url.indexOf('#'));
-1 11452 var _splitString2 = _slicedToArray(_splitString, 2);
-1 11453 url = _splitString2[0];
-1 11454 hash = _splitString2[1];
11386 11455 }
11387 -1 if ((dt < 0 || msecs > _lastMSecs) && options.nsecs == null) {
11388 -1 nsecs = 0;
-1 11456 if (url.includes('?')) {
-1 11457 var _splitString3 = splitString(url, url.indexOf('?'));
-1 11458 var _splitString4 = _slicedToArray(_splitString3, 2);
-1 11459 url = _splitString4[0];
-1 11460 query = _splitString4[1];
11389 11461 }
11390 -1 if (nsecs >= 1e4) {
11391 -1 throw new Error('uuid.v1(): Can\'t create more than 10M uuids/sec');
-1 11462 if (url.includes('://')) {
-1 11463 var _url$split = url.split('://');
-1 11464 var _url$split2 = _slicedToArray(_url$split, 2);
-1 11465 protocol = _url$split2[0];
-1 11466 url = _url$split2[1];
-1 11467 var _splitString5 = splitString(url, url.indexOf('/'));
-1 11468 var _splitString6 = _slicedToArray(_splitString5, 2);
-1 11469 domain = _splitString6[0];
-1 11470 url = _splitString6[1];
-1 11471 } else if (url.substr(0, 2) === '//') {
-1 11472 url = url.substr(2);
-1 11473 var _splitString7 = splitString(url, url.indexOf('/'));
-1 11474 var _splitString8 = _slicedToArray(_splitString7, 2);
-1 11475 domain = _splitString8[0];
-1 11476 url = _splitString8[1];
11392 11477 }
11393 -1 _lastMSecs = msecs;
11394 -1 _lastNSecs = nsecs;
11395 -1 _clockseq = clockseq;
11396 -1 msecs += 122192928e5;
11397 -1 var tl = ((msecs & 268435455) * 1e4 + nsecs) % 4294967296;
11398 -1 b[i++] = tl >>> 24 & 255;
11399 -1 b[i++] = tl >>> 16 & 255;
11400 -1 b[i++] = tl >>> 8 & 255;
11401 -1 b[i++] = tl & 255;
11402 -1 var tmh = msecs / 4294967296 * 1e4 & 268435455;
11403 -1 b[i++] = tmh >>> 8 & 255;
11404 -1 b[i++] = tmh & 255;
11405 -1 b[i++] = tmh >>> 24 & 15 | 16;
11406 -1 b[i++] = tmh >>> 16 & 255;
11407 -1 b[i++] = clockseq >>> 8 | 128;
11408 -1 b[i++] = clockseq & 255;
11409 -1 var node = options.node || _nodeId;
11410 -1 for (var n = 0; n < 6; n++) {
11411 -1 b[i + n] = node[n];
-1 11478 if (domain.substr(0, 4) === 'www.') {
-1 11479 domain = domain.substr(4);
11412 11480 }
11413 -1 return buf ? buf : unparse(b);
-1 11481 if (domain && domain.includes(':')) {
-1 11482 var _splitString9 = splitString(domain, domain.indexOf(':'));
-1 11483 var _splitString10 = _slicedToArray(_splitString9, 2);
-1 11484 domain = _splitString10[0];
-1 11485 port = _splitString10[1];
-1 11486 }
-1 11487 path = url;
-1 11488 return {
-1 11489 original: original,
-1 11490 protocol: protocol,
-1 11491 domain: domain,
-1 11492 port: port,
-1 11493 path: path,
-1 11494 query: query,
-1 11495 hash: hash
-1 11496 };
11414 11497 }
11415 -1 function v4(options, buf, offset) {
11416 -1 var i = buf && offset || 0;
11417 -1 if (typeof options == 'string') {
11418 -1 buf = options == 'binary' ? new BufferClass(16) : null;
11419 -1 options = null;
-1 11498 function getFriendlyUriEnd() {
-1 11499 var uri = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
-1 11500 var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
-1 11501 if (uri.length <= 1 || uri.substr(0, 5) === 'data:' || uri.substr(0, 11) === 'javascript:' || uri.includes('?')) {
-1 11502 return;
11420 11503 }
11421 -1 options = options || {};
11422 -1 var rnds = options.random || (options.rng || _rng)();
11423 -1 rnds[6] = rnds[6] & 15 | 64;
11424 -1 rnds[8] = rnds[8] & 63 | 128;
11425 -1 if (buf) {
11426 -1 for (var ii = 0; ii < 16; ii++) {
11427 -1 buf[i + ii] = rnds[ii];
-1 11504 var currentDomain = options.currentDomain, _options$maxLength = options.maxLength, maxLength = _options$maxLength === void 0 ? 25 : _options$maxLength;
-1 11505 var _uriParser = uriParser(uri), path = _uriParser.path, domain = _uriParser.domain, hash = _uriParser.hash;
-1 11506 var pathEnd = path.substr(path.substr(0, path.length - 2).lastIndexOf('/') + 1);
-1 11507 if (hash) {
-1 11508 if (pathEnd && (pathEnd + hash).length <= maxLength) {
-1 11509 return trimRight(pathEnd + hash);
-1 11510 } else if (pathEnd.length < 2 && hash.length > 2 && hash.length <= maxLength) {
-1 11511 return trimRight(hash);
-1 11512 } else {
-1 11513 return;
11428 11514 }
-1 11515 } else if (domain && domain.length < maxLength && path.length <= 1) {
-1 11516 return trimRight(domain + path);
11429 11517 }
11430 -1 return buf || unparse(rnds);
11431 -1 }
11432 -1 uuid = v4;
11433 -1 uuid.v1 = v1;
11434 -1 uuid.v4 = v4;
11435 -1 uuid.parse = parse;
11436 -1 uuid.unparse = unparse;
11437 -1 uuid.BufferClass = BufferClass;
11438 -1 axe._uuid = v1();
11439 -1 var uuid_default = v4;
11440 -1 var messageIds = [];
11441 -1 function createMessageId() {
11442 -1 var uuid5 = ''.concat(v4(), ':').concat(v4());
11443 -1 if (messageIds.includes(uuid5)) {
11444 -1 return createMessageId();
-1 11518 if (path === '/' + pathEnd && domain && currentDomain && domain !== currentDomain && (domain + path).length <= maxLength) {
-1 11519 return trimRight(domain + path);
-1 11520 }
-1 11521 var lastDotIndex = pathEnd.lastIndexOf('.');
-1 11522 if ((lastDotIndex === -1 || lastDotIndex > 1) && (lastDotIndex !== -1 || pathEnd.length > 2) && pathEnd.length <= maxLength && !pathEnd.match(/index(\.[a-zA-Z]{2-4})?/) && !isMostlyNumbers(pathEnd)) {
-1 11523 return trimRight(pathEnd);
11445 11524 }
11446 -1 messageIds.push(uuid5);
11447 -1 return uuid5;
11448 11525 }
11449 -1 function isNewMessage(uuid5) {
11450 -1 if (messageIds.includes(uuid5)) {
11451 -1 return false;
-1 11526 var get_friendly_uri_end_default = getFriendlyUriEnd;
-1 11527 function getNodeAttributes(node) {
-1 11528 if (node.attributes instanceof window.NamedNodeMap) {
-1 11529 return node.attributes;
11452 11530 }
11453 -1 messageIds.push(uuid5);
11454 -1 return true;
-1 11531 return node.cloneNode(false).attributes;
11455 11532 }
11456 -1 function postMessage(win, data2, sendToParent, replyHandler) {
11457 -1 if (typeof replyHandler === 'function') {
11458 -1 storeReplyHandler(data2.channelId, replyHandler, sendToParent);
-1 11533 var get_node_attributes_default = getNodeAttributes;
-1 11534 var matchesSelector = function() {
-1 11535 var method;
-1 11536 function getMethod(node) {
-1 11537 var index, candidate, candidates = [ 'matches', 'matchesSelector', 'mozMatchesSelector', 'webkitMatchesSelector', 'msMatchesSelector' ], length = candidates.length;
-1 11538 for (index = 0; index < length; index++) {
-1 11539 candidate = candidates[index];
-1 11540 if (node[candidate]) {
-1 11541 return candidate;
-1 11542 }
-1 11543 }
11459 11544 }
11460 -1 sendToParent ? assertIsParentWindow(win) : assertIsFrameWindow(win);
11461 -1 if (data2.message instanceof Error && !sendToParent) {
11462 -1 axe.log(data2.message);
-1 11545 return function(node, selector) {
-1 11546 if (!method || !node[method]) {
-1 11547 method = getMethod(node);
-1 11548 }
-1 11549 if (node[method]) {
-1 11550 return node[method](selector);
-1 11551 }
11463 11552 return false;
11464 -1 }
11465 -1 var dataString = stringifyMessage(_extends({
11466 -1 messageId: createMessageId()
11467 -1 }, data2));
11468 -1 var allowedOrigins = axe._audit.allowedOrigins;
11469 -1 if (!allowedOrigins || !allowedOrigins.length) {
-1 11553 };
-1 11554 }();
-1 11555 var element_matches_default = matchesSelector;
-1 11556 function isXHTML(doc) {
-1 11557 if (!doc.createElement) {
11470 11558 return false;
11471 11559 }
11472 -1 allowedOrigins.forEach(function(origin) {
11473 -1 try {
11474 -1 win.postMessage(dataString, origin);
11475 -1 } catch (err2) {
11476 -1 if (err2 instanceof win.DOMException) {
11477 -1 throw new Error('allowedOrigins value "'.concat(origin, '" is not a valid origin'));
11478 -1 }
11479 -1 throw err2;
-1 11560 return doc.createElement('A').localName === 'A';
-1 11561 }
-1 11562 var is_xhtml_default = isXHTML;
-1 11563 function getShadowSelector(generateSelector2, elm) {
-1 11564 var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
-1 11565 if (!elm) {
-1 11566 return '';
-1 11567 }
-1 11568 var doc = elm.getRootNode && elm.getRootNode() || document;
-1 11569 if (doc.nodeType !== 11) {
-1 11570 return generateSelector2(elm, options, doc);
-1 11571 }
-1 11572 var stack = [];
-1 11573 while (doc.nodeType === 11) {
-1 11574 if (!doc.host) {
-1 11575 return '';
11480 11576 }
-1 11577 stack.unshift({
-1 11578 elm: elm,
-1 11579 doc: doc
-1 11580 });
-1 11581 elm = doc.host;
-1 11582 doc = elm.getRootNode();
-1 11583 }
-1 11584 stack.unshift({
-1 11585 elm: elm,
-1 11586 doc: doc
-1 11587 });
-1 11588 return stack.map(function(_ref) {
-1 11589 var elm2 = _ref.elm, doc2 = _ref.doc;
-1 11590 return generateSelector2(elm2, options, doc2);
11481 11591 });
11482 -1 return true;
11483 11592 }
11484 -1 function processError(win, error, channelId) {
11485 -1 if (!win.parent !== window) {
11486 -1 return axe.log(error);
11487 -1 }
11488 -1 try {
11489 -1 postMessage(win, {
11490 -1 topic: null,
11491 -1 channelId: channelId,
11492 -1 message: error,
11493 -1 messageId: createMessageId(),
11494 -1 keepalive: true
11495 -1 }, true);
11496 -1 } catch (err2) {
11497 -1 return axe.log(err2);
-1 11593 var get_shadow_selector_default = getShadowSelector;
-1 11594 var xhtml;
-1 11595 var ignoredAttributes = [ 'class', 'style', 'id', 'selected', 'checked', 'disabled', 'tabindex', 'aria-checked', 'aria-selected', 'aria-invalid', 'aria-activedescendant', 'aria-busy', 'aria-disabled', 'aria-expanded', 'aria-grabbed', 'aria-pressed', 'aria-valuenow' ];
-1 11596 var MAXATTRIBUTELENGTH = 31;
-1 11597 var attrCharsRegex = /([\\"])/g;
-1 11598 var newlineChars = /(\r\n|\r|\n)/g;
-1 11599 function escapeAttribute(str) {
-1 11600 return str.replace(attrCharsRegex, '\\$1').replace(newlineChars, '\\a ');
-1 11601 }
-1 11602 function getAttributeNameValue(node, at) {
-1 11603 var name = at.name;
-1 11604 var atnv;
-1 11605 if (name.indexOf('href') !== -1 || name.indexOf('src') !== -1) {
-1 11606 var friendly = get_friendly_uri_end_default(node.getAttribute(name));
-1 11607 if (friendly) {
-1 11608 atnv = escape_selector_default(at.name) + '$="' + escapeAttribute(friendly) + '"';
-1 11609 } else {
-1 11610 atnv = escape_selector_default(at.name) + '="' + escapeAttribute(node.getAttribute(name)) + '"';
-1 11611 }
-1 11612 } else {
-1 11613 atnv = escape_selector_default(name) + '="' + escapeAttribute(at.value) + '"';
11498 11614 }
-1 11615 return atnv;
11499 11616 }
11500 -1 function createResponder(win, channelId) {
11501 -1 var sendToParent = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
11502 -1 return function respond(message, keepalive, replyHandler) {
11503 -1 var data2 = {
11504 -1 channelId: channelId,
11505 -1 message: message,
11506 -1 keepalive: keepalive
11507 -1 };
11508 -1 postMessage(win, data2, sendToParent, replyHandler);
11509 -1 };
-1 11617 function countSort(a, b) {
-1 11618 return a.count < b.count ? -1 : a.count === b.count ? 0 : 1;
11510 11619 }
11511 -1 function originIsAllowed(origin) {
11512 -1 var allowedOrigins = axe._audit.allowedOrigins;
11513 -1 return allowedOrigins && allowedOrigins.includes('*') || allowedOrigins.includes(origin);
-1 11620 function filterAttributes(at) {
-1 11621 return !ignoredAttributes.includes(at.name) && at.name.indexOf(':') === -1 && (!at.value || at.value.length < MAXATTRIBUTELENGTH);
11514 11622 }
11515 -1 function messageHandler(_ref2, topicHandler) {
11516 -1 var origin = _ref2.origin, dataString = _ref2.data, win = _ref2.source;
11517 -1 try {
11518 -1 var data2 = parseMessage(dataString) || {};
11519 -1 var channelId = data2.channelId, message = data2.message, messageId = data2.messageId;
11520 -1 if (!originIsAllowed(origin) || !isNewMessage(messageId)) {
11521 -1 return;
11522 -1 }
11523 -1 if (message instanceof Error && win.parent !== window) {
11524 -1 axe.log(message);
11525 -1 return false;
11526 -1 }
11527 -1 try {
11528 -1 if (data2.topic) {
11529 -1 var responder = createResponder(win, channelId);
11530 -1 assertIsParentWindow(win);
11531 -1 topicHandler(data2, responder);
-1 11623 function _getSelectorData(domTree) {
-1 11624 var data2 = {
-1 11625 classes: {},
-1 11626 tags: {},
-1 11627 attributes: {}
-1 11628 };
-1 11629 domTree = Array.isArray(domTree) ? domTree : [ domTree ];
-1 11630 var currentLevel = domTree.slice();
-1 11631 var stack = [];
-1 11632 var _loop2 = function _loop2() {
-1 11633 var current = currentLevel.pop();
-1 11634 var node = current.actualNode;
-1 11635 if (!!node.querySelectorAll) {
-1 11636 var tag = node.nodeName;
-1 11637 if (data2.tags[tag]) {
-1 11638 data2.tags[tag]++;
11532 11639 } else {
11533 -1 callReplyHandler(win, data2);
-1 11640 data2.tags[tag] = 1;
-1 11641 }
-1 11642 if (node.classList) {
-1 11643 Array.from(node.classList).forEach(function(cl) {
-1 11644 var ind = escape_selector_default(cl);
-1 11645 if (data2.classes[ind]) {
-1 11646 data2.classes[ind]++;
-1 11647 } else {
-1 11648 data2.classes[ind] = 1;
-1 11649 }
-1 11650 });
-1 11651 }
-1 11652 if (node.hasAttributes()) {
-1 11653 Array.from(get_node_attributes_default(node)).filter(filterAttributes).forEach(function(at) {
-1 11654 var atnv = getAttributeNameValue(node, at);
-1 11655 if (atnv) {
-1 11656 if (data2.attributes[atnv]) {
-1 11657 data2.attributes[atnv]++;
-1 11658 } else {
-1 11659 data2.attributes[atnv] = 1;
-1 11660 }
-1 11661 }
-1 11662 });
11534 11663 }
11535 -1 } catch (error) {
11536 -1 processError(win, error, channelId);
11537 11664 }
11538 -1 } catch (error) {
11539 -1 axe.log(error);
11540 -1 return false;
-1 11665 if (current.children.length) {
-1 11666 stack.push(currentLevel);
-1 11667 currentLevel = current.children.slice();
-1 11668 }
-1 11669 while (!currentLevel.length && stack.length) {
-1 11670 currentLevel = stack.pop();
-1 11671 }
-1 11672 };
-1 11673 while (currentLevel.length) {
-1 11674 _loop2();
11541 11675 }
-1 11676 return data2;
11542 11677 }
11543 -1 function callReplyHandler(win, data2) {
11544 -1 var channelId = data2.channelId, message = data2.message, keepalive = data2.keepalive;
11545 -1 var _ref3 = getReplyHandler(channelId) || {}, replyHandler = _ref3.replyHandler, sendToParent = _ref3.sendToParent;
11546 -1 if (!replyHandler) {
11547 -1 return;
11548 -1 }
11549 -1 sendToParent ? assertIsParentWindow(win) : assertIsFrameWindow(win);
11550 -1 var responder = createResponder(win, channelId, sendToParent);
11551 -1 if (!keepalive && channelId) {
11552 -1 deleteReplyHandler(channelId);
-1 11678 function uncommonClasses(node, selectorData) {
-1 11679 var retVal = [];
-1 11680 var classData = selectorData.classes;
-1 11681 var tagData = selectorData.tags;
-1 11682 if (node.classList) {
-1 11683 Array.from(node.classList).forEach(function(cl) {
-1 11684 var ind = escape_selector_default(cl);
-1 11685 if (classData[ind] < tagData[node.nodeName]) {
-1 11686 retVal.push({
-1 11687 name: ind,
-1 11688 count: classData[ind],
-1 11689 species: 'class'
-1 11690 });
-1 11691 }
-1 11692 });
11553 11693 }
11554 -1 try {
11555 -1 replyHandler(message, keepalive, responder);
11556 -1 } catch (error) {
11557 -1 axe.log(error);
11558 -1 responder(error, keepalive);
-1 11694 return retVal.sort(countSort);
-1 11695 }
-1 11696 function getNthChildString(elm, selector) {
-1 11697 var siblings = elm.parentNode && Array.from(elm.parentNode.children || '') || [];
-1 11698 var hasMatchingSiblings = siblings.find(function(sibling) {
-1 11699 return sibling !== elm && element_matches_default(sibling, selector);
-1 11700 });
-1 11701 if (hasMatchingSiblings) {
-1 11702 var nthChild = 1 + siblings.indexOf(elm);
-1 11703 return ':nth-child(' + nthChild + ')';
-1 11704 } else {
-1 11705 return '';
11559 11706 }
11560 11707 }
11561 -1 var frameMessenger = {
11562 -1 open: function open(topicHandler) {
11563 -1 if (typeof window.addEventListener !== 'function') {
11564 -1 return;
11565 -1 }
11566 -1 var handler = function handler(messageEvent) {
11567 -1 messageHandler(messageEvent, topicHandler);
11568 -1 };
11569 -1 window.addEventListener('message', handler, false);
11570 -1 return function() {
11571 -1 window.removeEventListener('message', handler, false);
11572 -1 };
11573 -1 },
11574 -1 post: function post(win, data2, replyHandler) {
11575 -1 if (typeof window.addEventListener !== 'function') {
11576 -1 return false;
11577 -1 }
11578 -1 return postMessage(win, data2, false, replyHandler);
-1 11708 function getElmId(elm) {
-1 11709 if (!elm.getAttribute('id')) {
-1 11710 return;
-1 11711 }
-1 11712 var doc = elm.getRootNode && elm.getRootNode() || document;
-1 11713 var id = '#' + escape_selector_default(elm.getAttribute('id') || '');
-1 11714 if (!id.match(/player_uid_/) && doc.querySelectorAll(id).length === 1) {
-1 11715 return id;
11579 11716 }
11580 -1 };
11581 -1 function setDefaultFrameMessenger(respondable5) {
11582 -1 respondable5.updateMessenger(frameMessenger);
11583 11717 }
11584 -1 function aggregate(map, values, initial) {
11585 -1 values = values.slice();
11586 -1 if (initial) {
11587 -1 values.push(initial);
-1 11718 function getBaseSelector(elm) {
-1 11719 if (typeof xhtml === 'undefined') {
-1 11720 xhtml = is_xhtml_default(document);
11588 11721 }
11589 -1 var sorting = values.map(function(val) {
11590 -1 return map.indexOf(val);
11591 -1 }).sort();
11592 -1 return map[sorting.pop()];
-1 11722 return escape_selector_default(xhtml ? elm.localName : elm.nodeName.toLowerCase());
11593 11723 }
11594 -1 var aggregate_default = aggregate;
11595 -1 var CANTTELL_PRIO = constants_default.CANTTELL_PRIO, FAIL_PRIO = constants_default.FAIL_PRIO;
11596 -1 var checkMap = [];
11597 -1 checkMap[constants_default.PASS_PRIO] = true;
11598 -1 checkMap[constants_default.CANTTELL_PRIO] = null;
11599 -1 checkMap[constants_default.FAIL_PRIO] = false;
11600 -1 var checkTypes = [ 'any', 'all', 'none' ];
11601 -1 function anyAllNone(obj, functor) {
11602 -1 return checkTypes.reduce(function(out, type) {
11603 -1 out[type] = (obj[type] || []).map(function(val) {
11604 -1 return functor(val, type);
11605 -1 });
11606 -1 return out;
11607 -1 }, {});
11608 -1 }
11609 -1 function aggregateChecks(nodeResOriginal) {
11610 -1 var nodeResult = Object.assign({}, nodeResOriginal);
11611 -1 anyAllNone(nodeResult, function(check4, type) {
11612 -1 var i = typeof check4.result === 'undefined' ? -1 : checkMap.indexOf(check4.result);
11613 -1 check4.priority = i !== -1 ? i : constants_default.CANTTELL_PRIO;
11614 -1 if (type === 'none') {
11615 -1 if (check4.priority === constants_default.PASS_PRIO) {
11616 -1 check4.priority = constants_default.FAIL_PRIO;
11617 -1 } else if (check4.priority === constants_default.FAIL_PRIO) {
11618 -1 check4.priority = constants_default.PASS_PRIO;
11619 -1 }
11620 -1 }
11621 -1 });
11622 -1 var priorities = {
11623 -1 all: nodeResult.all.reduce(function(a, b) {
11624 -1 return Math.max(a, b.priority);
11625 -1 }, 0),
11626 -1 none: nodeResult.none.reduce(function(a, b) {
11627 -1 return Math.max(a, b.priority);
11628 -1 }, 0),
11629 -1 any: nodeResult.any.reduce(function(a, b) {
11630 -1 return Math.min(a, b.priority);
11631 -1 }, 4) % 4
11632 -1 };
11633 -1 nodeResult.priority = Math.max(priorities.all, priorities.none, priorities.any);
11634 -1 var impacts = [];
11635 -1 checkTypes.forEach(function(type) {
11636 -1 nodeResult[type] = nodeResult[type].filter(function(check4) {
11637 -1 return check4.priority === nodeResult.priority && check4.priority === priorities[type];
11638 -1 });
11639 -1 nodeResult[type].forEach(function(check4) {
11640 -1 return impacts.push(check4.impact);
11641 -1 });
11642 -1 });
11643 -1 if ([ CANTTELL_PRIO, FAIL_PRIO ].includes(nodeResult.priority)) {
11644 -1 nodeResult.impact = aggregate_default(constants_default.impact, impacts);
11645 -1 } else {
11646 -1 nodeResult.impact = null;
11647 -1 }
11648 -1 anyAllNone(nodeResult, function(c) {
11649 -1 delete c.result;
11650 -1 delete c.priority;
11651 -1 });
11652 -1 nodeResult.result = constants_default.results[nodeResult.priority];
11653 -1 delete nodeResult.priority;
11654 -1 return nodeResult;
11655 -1 }
11656 -1 var aggregate_checks_default = aggregateChecks;
11657 -1 function finalizeRuleResult(ruleResult) {
11658 -1 var rule3 = axe._audit.rules.find(function(rule4) {
11659 -1 return rule4.id === ruleResult.id;
11660 -1 });
11661 -1 if (rule3 && rule3.impact) {
11662 -1 ruleResult.nodes.forEach(function(node) {
11663 -1 [ 'any', 'all', 'none' ].forEach(function(checkType) {
11664 -1 (node[checkType] || []).forEach(function(checkResult) {
11665 -1 checkResult.impact = rule3.impact;
-1 11724 function uncommonAttributes(node, selectorData) {
-1 11725 var retVal = [];
-1 11726 var attData = selectorData.attributes;
-1 11727 var tagData = selectorData.tags;
-1 11728 if (node.hasAttributes()) {
-1 11729 Array.from(get_node_attributes_default(node)).filter(filterAttributes).forEach(function(at) {
-1 11730 var atnv = getAttributeNameValue(node, at);
-1 11731 if (atnv && attData[atnv] < tagData[node.nodeName]) {
-1 11732 retVal.push({
-1 11733 name: atnv,
-1 11734 count: attData[atnv],
-1 11735 species: 'attribute'
11666 11736 });
11667 -1 });
-1 11737 }
11668 11738 });
11669 11739 }
11670 -1 Object.assign(ruleResult, aggregate_node_results_default(ruleResult.nodes));
11671 -1 delete ruleResult.nodes;
11672 -1 return ruleResult;
-1 11740 return retVal.sort(countSort);
11673 11741 }
11674 -1 var finalize_result_default = finalizeRuleResult;
11675 -1 function aggregateNodeResults(nodeResults) {
11676 -1 var ruleResult = {};
11677 -1 nodeResults = nodeResults.map(function(nodeResult) {
11678 -1 if (nodeResult.any && nodeResult.all && nodeResult.none) {
11679 -1 return aggregate_checks_default(nodeResult);
11680 -1 } else if (Array.isArray(nodeResult.node)) {
11681 -1 return finalize_result_default(nodeResult);
11682 -1 } else {
11683 -1 throw new TypeError('Invalid Result type');
11684 -1 }
11685 -1 });
11686 -1 if (nodeResults && nodeResults.length) {
11687 -1 var resultList = nodeResults.map(function(node) {
11688 -1 return node.result;
11689 -1 });
11690 -1 ruleResult.result = aggregate_default(constants_default.results, resultList, ruleResult.result);
11691 -1 } else {
11692 -1 ruleResult.result = 'inapplicable';
11693 -1 }
11694 -1 constants_default.resultGroups.forEach(function(group) {
11695 -1 return ruleResult[group] = [];
11696 -1 });
11697 -1 nodeResults.forEach(function(nodeResult) {
11698 -1 var groupName = constants_default.resultGroupMap[nodeResult.result];
11699 -1 ruleResult[groupName].push(nodeResult);
11700 -1 });
11701 -1 var impactGroup = constants_default.FAIL_GROUP;
11702 -1 if (ruleResult[impactGroup].length === 0) {
11703 -1 impactGroup = constants_default.CANTTELL_GROUP;
11704 -1 }
11705 -1 if (ruleResult[impactGroup].length > 0) {
11706 -1 var impactList = ruleResult[impactGroup].map(function(failure) {
11707 -1 return failure.impact;
11708 -1 });
11709 -1 ruleResult.impact = aggregate_default(constants_default.impact, impactList) || null;
-1 11742 function getThreeLeastCommonFeatures(elm, selectorData) {
-1 11743 var selector = '';
-1 11744 var features;
-1 11745 var clss = uncommonClasses(elm, selectorData);
-1 11746 var atts = uncommonAttributes(elm, selectorData);
-1 11747 if (clss.length && clss[0].count === 1) {
-1 11748 features = [ clss[0] ];
-1 11749 } else if (atts.length && atts[0].count === 1) {
-1 11750 features = [ atts[0] ];
-1 11751 selector = getBaseSelector(elm);
11710 11752 } else {
11711 -1 ruleResult.impact = null;
11712 -1 }
11713 -1 return ruleResult;
11714 -1 }
11715 -1 var aggregate_node_results_default = aggregateNodeResults;
11716 -1 function copyToGroup(resultObject, subResult, group) {
11717 -1 var resultCopy = Object.assign({}, subResult);
11718 -1 resultCopy.nodes = (resultCopy[group] || []).concat();
11719 -1 constants_default.resultGroups.forEach(function(group2) {
11720 -1 delete resultCopy[group2];
11721 -1 });
11722 -1 resultObject[group].push(resultCopy);
11723 -1 }
11724 -1 function aggregateResult(results) {
11725 -1 var resultObject = {};
11726 -1 constants_default.resultGroups.forEach(function(groupName) {
11727 -1 return resultObject[groupName] = [];
11728 -1 });
11729 -1 results.forEach(function(subResult) {
11730 -1 if (subResult.error) {
11731 -1 copyToGroup(resultObject, subResult, constants_default.CANTTELL_GROUP);
11732 -1 } else if (subResult.result === constants_default.NA) {
11733 -1 copyToGroup(resultObject, subResult, constants_default.NA_GROUP);
-1 11753 features = clss.concat(atts);
-1 11754 features.sort(countSort);
-1 11755 features = features.slice(0, 3);
-1 11756 if (!features.some(function(feat) {
-1 11757 return feat.species === 'class';
-1 11758 })) {
-1 11759 selector = getBaseSelector(elm);
11734 11760 } else {
11735 -1 constants_default.resultGroups.forEach(function(group) {
11736 -1 if (Array.isArray(subResult[group]) && subResult[group].length > 0) {
11737 -1 copyToGroup(resultObject, subResult, group);
11738 -1 }
-1 11761 features.sort(function(a, b) {
-1 11762 return a.species !== b.species && a.species === 'class' ? -1 : a.species === b.species ? 0 : 1;
11739 11763 });
11740 11764 }
11741 -1 });
11742 -1 return resultObject;
11743 -1 }
11744 -1 var aggregate_result_default = aggregateResult;
11745 -1 function areStylesSet(el, styles, stopAt) {
11746 -1 var styl = window.getComputedStyle(el, null);
11747 -1 if (!styl) {
11748 -1 return false;
11749 11765 }
11750 -1 for (var i = 0; i < styles.length; ++i) {
11751 -1 var att = styles[i];
11752 -1 if (styl.getPropertyValue(att.property) === att.value) {
11753 -1 return true;
-1 11766 return selector += features.reduce(function(val, feat) {
-1 11767 switch (feat.species) {
-1 11768 case 'class':
-1 11769 return val + '.' + feat.name;
-1 11770
-1 11771 case 'attribute':
-1 11772 return val + '[' + feat.name + ']';
11754 11773 }
11755 -1 }
11756 -1 if (!el.parentNode || el.nodeName.toUpperCase() === stopAt.toUpperCase()) {
11757 -1 return false;
11758 -1 }
11759 -1 return areStylesSet(el.parentNode, styles, stopAt);
11760 -1 }
11761 -1 var are_styles_set_default = areStylesSet;
11762 -1 function toArray(thing) {
11763 -1 return Array.prototype.slice.call(thing);
-1 11774 return val;
-1 11775 }, '');
11764 11776 }
11765 -1 var to_array_default = toArray;
11766 -1 function escapeSelector(value) {
11767 -1 var string = String(value);
11768 -1 var length = string.length;
11769 -1 var index = -1;
11770 -1 var codeUnit;
11771 -1 var result = '';
11772 -1 var firstCodeUnit = string.charCodeAt(0);
11773 -1 while (++index < length) {
11774 -1 codeUnit = string.charCodeAt(index);
11775 -1 if (codeUnit == 0) {
11776 -1 result += '\ufffd';
11777 -1 continue;
11778 -1 }
11779 -1 if (codeUnit >= 1 && codeUnit <= 31 || codeUnit == 127 || index == 0 && codeUnit >= 48 && codeUnit <= 57 || index == 1 && codeUnit >= 48 && codeUnit <= 57 && firstCodeUnit == 45) {
11780 -1 result += '\\' + codeUnit.toString(16) + ' ';
11781 -1 continue;
-1 11777 function generateSelector(elm, options, doc) {
-1 11778 if (!axe._selectorData) {
-1 11779 throw new Error('Expect axe._selectorData to be set up');
-1 11780 }
-1 11781 var _options$toRoot = options.toRoot, toRoot = _options$toRoot === void 0 ? false : _options$toRoot;
-1 11782 var selector;
-1 11783 var similar;
-1 11784 do {
-1 11785 var features = getElmId(elm);
-1 11786 if (!features) {
-1 11787 features = getThreeLeastCommonFeatures(elm, axe._selectorData);
-1 11788 features += getNthChildString(elm, features);
11782 11789 }
11783 -1 if (index == 0 && length == 1 && codeUnit == 45) {
11784 -1 result += '\\' + string.charAt(index);
11785 -1 continue;
-1 11790 if (selector) {
-1 11791 selector = features + ' > ' + selector;
-1 11792 } else {
-1 11793 selector = features;
11786 11794 }
11787 -1 if (codeUnit >= 128 || codeUnit == 45 || codeUnit == 95 || codeUnit >= 48 && codeUnit <= 57 || codeUnit >= 65 && codeUnit <= 90 || codeUnit >= 97 && codeUnit <= 122) {
11788 -1 result += string.charAt(index);
11789 -1 continue;
-1 11795 if (!similar) {
-1 11796 similar = Array.from(doc.querySelectorAll(selector));
-1 11797 } else {
-1 11798 similar = similar.filter(function(item) {
-1 11799 return element_matches_default(item, selector);
-1 11800 });
11790 11801 }
11791 -1 result += '\\' + string.charAt(index);
-1 11802 elm = elm.parentElement;
-1 11803 } while ((similar.length > 1 || toRoot) && elm && elm.nodeType !== 11);
-1 11804 if (similar.length === 1) {
-1 11805 return selector;
-1 11806 } else if (selector.indexOf(' > ') !== -1) {
-1 11807 return ':root' + selector.substring(selector.indexOf(' > '));
11792 11808 }
11793 -1 return result;
-1 11809 return ':root';
11794 11810 }
11795 -1 var escape_selector_default = escapeSelector;
11796 -1 function isMostlyNumbers() {
11797 -1 var str = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
11798 -1 return str.length !== 0 && (str.match(/[0-9]/g) || '').length >= str.length / 2;
-1 11811 function _getSelector(elm, options) {
-1 11812 return get_shadow_selector_default(generateSelector, elm, options);
11799 11813 }
11800 -1 function splitString(str, splitIndex) {
11801 -1 return [ str.substring(0, splitIndex), str.substring(splitIndex) ];
-1 11814 function generateAncestry(node) {
-1 11815 var nodeName2 = node.nodeName.toLowerCase();
-1 11816 var parent = node.parentElement;
-1 11817 if (!parent) {
-1 11818 return nodeName2;
-1 11819 }
-1 11820 var nthChild = '';
-1 11821 if (nodeName2 !== 'head' && nodeName2 !== 'body' && parent.children.length > 1) {
-1 11822 var index = Array.prototype.indexOf.call(parent.children, node) + 1;
-1 11823 nthChild = ':nth-child('.concat(index, ')');
-1 11824 }
-1 11825 return generateAncestry(parent) + ' > ' + nodeName2 + nthChild;
11802 11826 }
11803 -1 function trimRight(str) {
11804 -1 return str.replace(/\s+$/, '');
-1 11827 function _getAncestry(elm, options) {
-1 11828 return get_shadow_selector_default(generateAncestry, elm, options);
11805 11829 }
11806 -1 function uriParser(url) {
11807 -1 var original = url;
11808 -1 var protocol = '', domain = '', port = '', path = '', query = '', hash = '';
11809 -1 if (url.includes('#')) {
11810 -1 var _splitString = splitString(url, url.indexOf('#'));
11811 -1 var _splitString2 = _slicedToArray(_splitString, 2);
11812 -1 url = _splitString2[0];
11813 -1 hash = _splitString2[1];
-1 11830 function getXPathArray(node, path) {
-1 11831 var sibling, count;
-1 11832 if (!node) {
-1 11833 return [];
11814 11834 }
11815 -1 if (url.includes('?')) {
11816 -1 var _splitString3 = splitString(url, url.indexOf('?'));
11817 -1 var _splitString4 = _slicedToArray(_splitString3, 2);
11818 -1 url = _splitString4[0];
11819 -1 query = _splitString4[1];
-1 11835 if (!path && node.nodeType === 9) {
-1 11836 path = [ {
-1 11837 str: 'html'
-1 11838 } ];
-1 11839 return path;
11820 11840 }
11821 -1 if (url.includes('://')) {
11822 -1 var _url$split = url.split('://');
11823 -1 var _url$split2 = _slicedToArray(_url$split, 2);
11824 -1 protocol = _url$split2[0];
11825 -1 url = _url$split2[1];
11826 -1 var _splitString5 = splitString(url, url.indexOf('/'));
11827 -1 var _splitString6 = _slicedToArray(_splitString5, 2);
11828 -1 domain = _splitString6[0];
11829 -1 url = _splitString6[1];
11830 -1 } else if (url.substr(0, 2) === '//') {
11831 -1 url = url.substr(2);
11832 -1 var _splitString7 = splitString(url, url.indexOf('/'));
11833 -1 var _splitString8 = _slicedToArray(_splitString7, 2);
11834 -1 domain = _splitString8[0];
11835 -1 url = _splitString8[1];
-1 11841 path = path || [];
-1 11842 if (node.parentNode && node.parentNode !== node) {
-1 11843 path = getXPathArray(node.parentNode, path);
11836 11844 }
11837 -1 if (domain.substr(0, 4) === 'www.') {
11838 -1 domain = domain.substr(4);
-1 11845 if (node.previousSibling) {
-1 11846 count = 1;
-1 11847 sibling = node.previousSibling;
-1 11848 do {
-1 11849 if (sibling.nodeType === 1 && sibling.nodeName === node.nodeName) {
-1 11850 count++;
-1 11851 }
-1 11852 sibling = sibling.previousSibling;
-1 11853 } while (sibling);
-1 11854 if (count === 1) {
-1 11855 count = null;
-1 11856 }
-1 11857 } else if (node.nextSibling) {
-1 11858 sibling = node.nextSibling;
-1 11859 do {
-1 11860 if (sibling.nodeType === 1 && sibling.nodeName === node.nodeName) {
-1 11861 count = 1;
-1 11862 sibling = null;
-1 11863 } else {
-1 11864 count = null;
-1 11865 sibling = sibling.previousSibling;
-1 11866 }
-1 11867 } while (sibling);
11839 11868 }
11840 -1 if (domain && domain.includes(':')) {
11841 -1 var _splitString9 = splitString(domain, domain.indexOf(':'));
11842 -1 var _splitString10 = _slicedToArray(_splitString9, 2);
11843 -1 domain = _splitString10[0];
11844 -1 port = _splitString10[1];
-1 11869 if (node.nodeType === 1) {
-1 11870 var element = {};
-1 11871 element.str = node.nodeName.toLowerCase();
-1 11872 var id = node.getAttribute && escape_selector_default(node.getAttribute('id'));
-1 11873 if (id && node.ownerDocument.querySelectorAll('#' + id).length === 1) {
-1 11874 element.id = node.getAttribute('id');
-1 11875 }
-1 11876 if (count > 1) {
-1 11877 element.count = count;
-1 11878 }
-1 11879 path.push(element);
11845 11880 }
11846 -1 path = url;
11847 -1 return {
11848 -1 original: original,
11849 -1 protocol: protocol,
11850 -1 domain: domain,
11851 -1 port: port,
11852 -1 path: path,
11853 -1 query: query,
11854 -1 hash: hash
11855 -1 };
-1 11881 return path;
11856 11882 }
11857 -1 function getFriendlyUriEnd() {
11858 -1 var uri = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
11859 -1 var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
11860 -1 if (uri.length <= 1 || uri.substr(0, 5) === 'data:' || uri.substr(0, 11) === 'javascript:' || uri.includes('?')) {
11861 -1 return;
11862 -1 }
11863 -1 var currentDomain = options.currentDomain, _options$maxLength = options.maxLength, maxLength = _options$maxLength === void 0 ? 25 : _options$maxLength;
11864 -1 var _uriParser = uriParser(uri), path = _uriParser.path, domain = _uriParser.domain, hash = _uriParser.hash;
11865 -1 var pathEnd = path.substr(path.substr(0, path.length - 2).lastIndexOf('/') + 1);
11866 -1 if (hash) {
11867 -1 if (pathEnd && (pathEnd + hash).length <= maxLength) {
11868 -1 return trimRight(pathEnd + hash);
11869 -1 } else if (pathEnd.length < 2 && hash.length > 2 && hash.length <= maxLength) {
11870 -1 return trimRight(hash);
-1 11883 function xpathToString(xpathArray) {
-1 11884 return xpathArray.reduce(function(str, elm) {
-1 11885 if (elm.id) {
-1 11886 return '/'.concat(elm.str, '[@id=\'').concat(elm.id, '\']');
11871 11887 } else {
11872 -1 return;
-1 11888 return str + '/'.concat(elm.str) + (elm.count > 0 ? '['.concat(elm.count, ']') : '');
11873 11889 }
11874 -1 } else if (domain && domain.length < maxLength && path.length <= 1) {
11875 -1 return trimRight(domain + path);
11876 -1 }
11877 -1 if (path === '/' + pathEnd && domain && currentDomain && domain !== currentDomain && (domain + path).length <= maxLength) {
11878 -1 return trimRight(domain + path);
11879 -1 }
11880 -1 var lastDotIndex = pathEnd.lastIndexOf('.');
11881 -1 if ((lastDotIndex === -1 || lastDotIndex > 1) && (lastDotIndex !== -1 || pathEnd.length > 2) && pathEnd.length <= maxLength && !pathEnd.match(/index(\.[a-zA-Z]{2-4})?/) && !isMostlyNumbers(pathEnd)) {
11882 -1 return trimRight(pathEnd);
11883 -1 }
-1 11890 }, '');
11884 11891 }
11885 -1 var get_friendly_uri_end_default = getFriendlyUriEnd;
11886 -1 function getNodeAttributes(node) {
11887 -1 if (node.attributes instanceof window.NamedNodeMap) {
11888 -1 return node.attributes;
11889 -1 }
11890 -1 return node.cloneNode(false).attributes;
-1 11892 function getXpath(node) {
-1 11893 var xpathArray = getXPathArray(node);
-1 11894 return xpathToString(xpathArray);
11891 11895 }
11892 -1 var get_node_attributes_default = getNodeAttributes;
11893 -1 var matchesSelector = function() {
11894 -1 var method;
11895 -1 function getMethod(node) {
11896 -1 var index, candidate, candidates = [ 'matches', 'matchesSelector', 'mozMatchesSelector', 'webkitMatchesSelector', 'msMatchesSelector' ], length = candidates.length;
11897 -1 for (index = 0; index < length; index++) {
11898 -1 candidate = candidates[index];
11899 -1 if (node[candidate]) {
11900 -1 return candidate;
11901 -1 }
11902 -1 }
11903 -1 }
11904 -1 return function(node, selector) {
11905 -1 if (!method || !node[method]) {
11906 -1 method = getMethod(node);
-1 11896 var get_xpath_default = getXpath;
-1 11897 var _cache = {};
-1 11898 var cache = {
-1 11899 set: function set(key, value) {
-1 11900 validateKey(key);
-1 11901 _cache[key] = value;
-1 11902 },
-1 11903 get: function get(key, creator) {
-1 11904 validateCreator(creator);
-1 11905 if (key in _cache) {
-1 11906 return _cache[key];
11907 11907 }
11908 -1 if (node[method]) {
11909 -1 return node[method](selector);
-1 11908 if (typeof creator === 'function') {
-1 11909 var value = creator();
-1 11910 assert_default(value !== void 0, 'Cache creator function should not return undefined');
-1 11911 this.set(key, value);
-1 11912 return _cache[key];
11910 11913 }
11911 -1 return false;
11912 -1 };
11913 -1 }();
11914 -1 var element_matches_default = matchesSelector;
11915 -1 function isXHTML(doc) {
11916 -1 if (!doc.createElement) {
11917 -1 return false;
-1 11914 },
-1 11915 clear: function clear() {
-1 11916 _cache = {};
11918 11917 }
11919 -1 return doc.createElement('A').localName === 'A';
-1 11918 };
-1 11919 function validateKey(key) {
-1 11920 assert_default(typeof key === 'string', 'key must be a string, ' + _typeof(key) + ' given');
-1 11921 assert_default(key !== '', 'key must not be empty');
11920 11922 }
11921 -1 var is_xhtml_default = isXHTML;
11922 -1 function getShadowSelector(generateSelector2, elm) {
11923 -1 var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
11924 -1 if (!elm) {
11925 -1 return '';
-1 11923 function validateCreator(creator) {
-1 11924 assert_default(typeof creator === 'function' || typeof creator === 'undefined', 'creator must be a function or undefined, ' + _typeof(creator) + ' given');
-1 11925 }
-1 11926 var cache_default = cache;
-1 11927 function getNodeFromTree(vNode, node) {
-1 11928 var el = node || vNode;
-1 11929 return cache_default.get('nodeMap') ? cache_default.get('nodeMap').get(el) : null;
-1 11930 }
-1 11931 var get_node_from_tree_default = getNodeFromTree;
-1 11932 function truncate(str, maxLength) {
-1 11933 maxLength = maxLength || 300;
-1 11934 if (str.length > maxLength) {
-1 11935 var index = str.indexOf('>');
-1 11936 str = str.substring(0, index + 1);
11926 11937 }
11927 -1 var doc = elm.getRootNode && elm.getRootNode() || document;
11928 -1 if (doc.nodeType !== 11) {
11929 -1 return generateSelector2(elm, options, doc);
-1 11938 return str;
-1 11939 }
-1 11940 function getSource(element) {
-1 11941 if (!(element !== null && element !== void 0 && element.outerHTML)) {
-1 11942 return '';
11930 11943 }
11931 -1 var stack = [];
11932 -1 while (doc.nodeType === 11) {
11933 -1 if (!doc.host) {
11934 -1 return '';
11935 -1 }
11936 -1 stack.unshift({
11937 -1 elm: elm,
11938 -1 doc: doc
11939 -1 });
11940 -1 elm = doc.host;
11941 -1 doc = elm.getRootNode();
-1 11944 var source = element.outerHTML;
-1 11945 if (!source && typeof window.XMLSerializer === 'function') {
-1 11946 source = new window.XMLSerializer().serializeToString(element);
11942 11947 }
11943 -1 stack.unshift({
11944 -1 elm: elm,
11945 -1 doc: doc
11946 -1 });
11947 -1 return stack.map(function(_ref4) {
11948 -1 var elm2 = _ref4.elm, doc2 = _ref4.doc;
11949 -1 return generateSelector2(elm2, options, doc2);
11950 -1 });
11951 -1 }
11952 -1 var get_shadow_selector_default = getShadowSelector;
11953 -1 var xhtml;
11954 -1 var ignoredAttributes = [ 'class', 'style', 'id', 'selected', 'checked', 'disabled', 'tabindex', 'aria-checked', 'aria-selected', 'aria-invalid', 'aria-activedescendant', 'aria-busy', 'aria-disabled', 'aria-expanded', 'aria-grabbed', 'aria-pressed', 'aria-valuenow' ];
11955 -1 var MAXATTRIBUTELENGTH = 31;
11956 -1 var attrCharsRegex = /([\\"])/g;
11957 -1 var newlineChars = /(\r\n|\r|\n)/g;
11958 -1 function escapeAttribute(str) {
11959 -1 return str.replace(attrCharsRegex, '\\$1').replace(newlineChars, '\\a ');
-1 11948 return truncate(source || '');
11960 11949 }
11961 -1 function getAttributeNameValue(node, at) {
11962 -1 var name = at.name;
11963 -1 var atnv;
11964 -1 if (name.indexOf('href') !== -1 || name.indexOf('src') !== -1) {
11965 -1 var friendly = get_friendly_uri_end_default(node.getAttribute(name));
11966 -1 if (friendly) {
11967 -1 atnv = escape_selector_default(at.name) + '$="' + escapeAttribute(friendly) + '"';
11968 -1 } else {
11969 -1 atnv = escape_selector_default(at.name) + '="' + escapeAttribute(node.getAttribute(name)) + '"';
11970 -1 }
-1 11950 function DqElement(elm) {
-1 11951 var _this$spec$selector, _this$_virtualNode;
-1 11952 var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
-1 11953 var spec = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
-1 11954 this.spec = spec;
-1 11955 if (elm instanceof abstract_virtual_node_default) {
-1 11956 this._virtualNode = elm;
-1 11957 this._element = elm.actualNode;
11971 11958 } else {
11972 -1 atnv = escape_selector_default(name) + '="' + escapeAttribute(at.value) + '"';
-1 11959 this._element = elm;
-1 11960 this._virtualNode = get_node_from_tree_default(elm);
11973 11961 }
11974 -1 return atnv;
11975 -1 }
11976 -1 function countSort(a, b) {
11977 -1 return a.count < b.count ? -1 : a.count === b.count ? 0 : 1;
11978 -1 }
11979 -1 function filterAttributes(at) {
11980 -1 return !ignoredAttributes.includes(at.name) && at.name.indexOf(':') === -1 && (!at.value || at.value.length < MAXATTRIBUTELENGTH);
11981 -1 }
11982 -1 function _getSelectorData(domTree) {
11983 -1 var data2 = {
11984 -1 classes: {},
11985 -1 tags: {},
11986 -1 attributes: {}
11987 -1 };
11988 -1 domTree = Array.isArray(domTree) ? domTree : [ domTree ];
11989 -1 var currentLevel = domTree.slice();
11990 -1 var stack = [];
11991 -1 var _loop2 = function _loop2() {
11992 -1 var current = currentLevel.pop();
11993 -1 var node = current.actualNode;
11994 -1 if (!!node.querySelectorAll) {
11995 -1 var tag = node.nodeName;
11996 -1 if (data2.tags[tag]) {
11997 -1 data2.tags[tag]++;
11998 -1 } else {
11999 -1 data2.tags[tag] = 1;
12000 -1 }
12001 -1 if (node.classList) {
12002 -1 Array.from(node.classList).forEach(function(cl) {
12003 -1 var ind = escape_selector_default(cl);
12004 -1 if (data2.classes[ind]) {
12005 -1 data2.classes[ind]++;
12006 -1 } else {
12007 -1 data2.classes[ind] = 1;
12008 -1 }
12009 -1 });
-1 11962 this.fromFrame = ((_this$spec$selector = this.spec.selector) === null || _this$spec$selector === void 0 ? void 0 : _this$spec$selector.length) > 1;
-1 11963 if (options.absolutePaths) {
-1 11964 this._options = {
-1 11965 toRoot: true
-1 11966 };
-1 11967 }
-1 11968 this.nodeIndexes = [];
-1 11969 if (Array.isArray(this.spec.nodeIndexes)) {
-1 11970 this.nodeIndexes = this.spec.nodeIndexes;
-1 11971 } else if (typeof ((_this$_virtualNode = this._virtualNode) === null || _this$_virtualNode === void 0 ? void 0 : _this$_virtualNode.nodeIndex) === 'number') {
-1 11972 this.nodeIndexes = [ this._virtualNode.nodeIndex ];
-1 11973 }
-1 11974 this.source = null;
-1 11975 if (!axe._audit.noHtml) {
-1 11976 var _this$spec$source;
-1 11977 this.source = (_this$spec$source = this.spec.source) !== null && _this$spec$source !== void 0 ? _this$spec$source : getSource(this._element);
-1 11978 }
-1 11979 }
-1 11980 DqElement.prototype = {
-1 11981 get selector() {
-1 11982 return this.spec.selector || [ _getSelector(this.element, this._options) ];
-1 11983 },
-1 11984 get ancestry() {
-1 11985 return this.spec.ancestry || [ _getAncestry(this.element) ];
-1 11986 },
-1 11987 get xpath() {
-1 11988 return this.spec.xpath || [ get_xpath_default(this.element) ];
-1 11989 },
-1 11990 get element() {
-1 11991 return this._element;
-1 11992 },
-1 11993 toJSON: function toJSON() {
-1 11994 return {
-1 11995 selector: this.selector,
-1 11996 source: this.source,
-1 11997 xpath: this.xpath,
-1 11998 ancestry: this.ancestry,
-1 11999 nodeIndexes: this.nodeIndexes
-1 12000 };
-1 12001 }
-1 12002 };
-1 12003 DqElement.fromFrame = function fromFrame(node, options, frame) {
-1 12004 var spec = DqElement.mergeSpecs(node, frame);
-1 12005 return new DqElement(frame.element, options, spec);
-1 12006 };
-1 12007 DqElement.mergeSpecs = function mergeSpec(node, frame) {
-1 12008 return _extends({}, node, {
-1 12009 selector: [].concat(_toConsumableArray(frame.selector), _toConsumableArray(node.selector)),
-1 12010 ancestry: [].concat(_toConsumableArray(frame.ancestry), _toConsumableArray(node.ancestry)),
-1 12011 xpath: [].concat(_toConsumableArray(frame.xpath), _toConsumableArray(node.xpath)),
-1 12012 nodeIndexes: [].concat(_toConsumableArray(frame.nodeIndexes), _toConsumableArray(node.nodeIndexes))
-1 12013 });
-1 12014 };
-1 12015 var dq_element_default = DqElement;
-1 12016 function checkHelper(checkResult, options, resolve, reject) {
-1 12017 return {
-1 12018 isAsync: false,
-1 12019 async: function async() {
-1 12020 this.isAsync = true;
-1 12021 return function(result) {
-1 12022 if (result instanceof Error === false) {
-1 12023 checkResult.result = result;
-1 12024 resolve(checkResult);
-1 12025 } else {
-1 12026 reject(result);
-1 12027 }
-1 12028 };
-1 12029 },
-1 12030 data: function data(data2) {
-1 12031 checkResult.data = data2;
-1 12032 },
-1 12033 relatedNodes: function relatedNodes(nodes) {
-1 12034 if (!window.Node) {
-1 12035 return;
12010 12036 }
12011 -1 if (node.hasAttributes()) {
12012 -1 Array.from(get_node_attributes_default(node)).filter(filterAttributes).forEach(function(at) {
12013 -1 var atnv = getAttributeNameValue(node, at);
12014 -1 if (atnv) {
12015 -1 if (data2.attributes[atnv]) {
12016 -1 data2.attributes[atnv]++;
12017 -1 } else {
12018 -1 data2.attributes[atnv] = 1;
12019 -1 }
12020 -1 }
12021 -1 });
-1 12037 nodes = nodes instanceof window.Node ? [ nodes ] : to_array_default(nodes);
-1 12038 if (!nodes.every(function(node) {
-1 12039 return node instanceof window.Node || node.actualNode;
-1 12040 })) {
-1 12041 return;
12022 12042 }
12023 -1 }
12024 -1 if (current.children.length) {
12025 -1 stack.push(currentLevel);
12026 -1 currentLevel = current.children.slice();
12027 -1 }
12028 -1 while (!currentLevel.length && stack.length) {
12029 -1 currentLevel = stack.pop();
-1 12043 checkResult.relatedNodes = nodes.map(function(element) {
-1 12044 return new dq_element_default(element, options);
-1 12045 });
12030 12046 }
12031 12047 };
12032 -1 while (currentLevel.length) {
12033 -1 _loop2();
12034 -1 }
12035 -1 return data2;
12036 12048 }
12037 -1 function uncommonClasses(node, selectorData) {
12038 -1 var retVal = [];
12039 -1 var classData = selectorData.classes;
12040 -1 var tagData = selectorData.tags;
12041 -1 if (node.classList) {
12042 -1 Array.from(node.classList).forEach(function(cl) {
12043 -1 var ind = escape_selector_default(cl);
12044 -1 if (classData[ind] < tagData[node.nodeName]) {
12045 -1 retVal.push({
12046 -1 name: ind,
12047 -1 count: classData[ind],
12048 -1 species: 'class'
12049 -1 });
-1 12049 var check_helper_default = checkHelper;
-1 12050 function clone(obj) {
-1 12051 var _window, _window2;
-1 12052 var index, length, out = obj;
-1 12053 if ((_window = window) !== null && _window !== void 0 && _window.Node && obj instanceof window.Node || (_window2 = window) !== null && _window2 !== void 0 && _window2.HTMLCollection && obj instanceof window.HTMLCollection) {
-1 12054 return obj;
-1 12055 }
-1 12056 if (obj !== null && _typeof(obj) === 'object') {
-1 12057 if (Array.isArray(obj)) {
-1 12058 out = [];
-1 12059 for (index = 0, length = obj.length; index < length; index++) {
-1 12060 out[index] = clone(obj[index]);
12050 12061 }
12051 -1 });
-1 12062 } else {
-1 12063 out = {};
-1 12064 for (index in obj) {
-1 12065 out[index] = clone(obj[index]);
-1 12066 }
-1 12067 }
12052 12068 }
12053 -1 return retVal.sort(countSort);
-1 12069 return out;
12054 12070 }
12055 -1 function getNthChildString(elm, selector) {
12056 -1 var siblings = elm.parentNode && Array.from(elm.parentNode.children || '') || [];
12057 -1 var hasMatchingSiblings = siblings.find(function(sibling) {
12058 -1 return sibling !== elm && element_matches_default(sibling, selector);
12059 -1 });
12060 -1 if (hasMatchingSiblings) {
12061 -1 var nthChild = 1 + siblings.indexOf(elm);
12062 -1 return ':nth-child(' + nthChild + ')';
12063 -1 } else {
12064 -1 return '';
12065 -1 }
-1 12071 var clone_default = clone;
-1 12072 var import_css_selector_parser = __toModule(require_lib());
-1 12073 var parser = new import_css_selector_parser.CssSelectorParser();
-1 12074 parser.registerSelectorPseudos('not');
-1 12075 parser.registerSelectorPseudos('is');
-1 12076 parser.registerNestingOperators('>');
-1 12077 parser.registerAttrEqualityMods('^', '$', '*', '~');
-1 12078 var css_parser_default = parser;
-1 12079 function matchesTag(vNode, exp) {
-1 12080 return vNode.props.nodeType === 1 && (exp.tag === '*' || vNode.props.nodeName === exp.tag);
12066 12081 }
12067 -1 function getElmId(elm) {
12068 -1 if (!elm.getAttribute('id')) {
12069 -1 return;
12070 -1 }
12071 -1 var doc = elm.getRootNode && elm.getRootNode() || document;
12072 -1 var id = '#' + escape_selector_default(elm.getAttribute('id') || '');
12073 -1 if (!id.match(/player_uid_/) && doc.querySelectorAll(id).length === 1) {
12074 -1 return id;
12075 -1 }
-1 12082 function matchesClasses(vNode, exp) {
-1 12083 return !exp.classes || exp.classes.every(function(cl) {
-1 12084 return vNode.hasClass(cl.value);
-1 12085 });
12076 12086 }
12077 -1 function getBaseSelector(elm) {
12078 -1 if (typeof xhtml === 'undefined') {
12079 -1 xhtml = is_xhtml_default(document);
12080 -1 }
12081 -1 return escape_selector_default(xhtml ? elm.localName : elm.nodeName.toLowerCase());
-1 12087 function matchesAttributes(vNode, exp) {
-1 12088 return !exp.attributes || exp.attributes.every(function(att) {
-1 12089 var nodeAtt = vNode.attr(att.key);
-1 12090 return nodeAtt !== null && att.test(nodeAtt);
-1 12091 });
12082 12092 }
12083 -1 function uncommonAttributes(node, selectorData) {
12084 -1 var retVal = [];
12085 -1 var attData = selectorData.attributes;
12086 -1 var tagData = selectorData.tags;
12087 -1 if (node.hasAttributes()) {
12088 -1 Array.from(get_node_attributes_default(node)).filter(filterAttributes).forEach(function(at) {
12089 -1 var atnv = getAttributeNameValue(node, at);
12090 -1 if (atnv && attData[atnv] < tagData[node.nodeName]) {
12091 -1 retVal.push({
12092 -1 name: atnv,
12093 -1 count: attData[atnv],
12094 -1 species: 'attribute'
12095 -1 });
12096 -1 }
12097 -1 });
12098 -1 }
12099 -1 return retVal.sort(countSort);
-1 12093 function matchesId(vNode, exp) {
-1 12094 return !exp.id || vNode.props.id === exp.id;
12100 12095 }
12101 -1 function getThreeLeastCommonFeatures(elm, selectorData) {
12102 -1 var selector = '';
12103 -1 var features;
12104 -1 var clss = uncommonClasses(elm, selectorData);
12105 -1 var atts = uncommonAttributes(elm, selectorData);
12106 -1 if (clss.length && clss[0].count === 1) {
12107 -1 features = [ clss[0] ];
12108 -1 } else if (atts.length && atts[0].count === 1) {
12109 -1 features = [ atts[0] ];
12110 -1 selector = getBaseSelector(elm);
12111 -1 } else {
12112 -1 features = clss.concat(atts);
12113 -1 features.sort(countSort);
12114 -1 features = features.slice(0, 3);
12115 -1 if (!features.some(function(feat) {
12116 -1 return feat.species === 'class';
12117 -1 })) {
12118 -1 selector = getBaseSelector(elm);
12119 -1 } else {
12120 -1 features.sort(function(a, b) {
12121 -1 return a.species !== b.species && a.species === 'class' ? -1 : a.species === b.species ? 0 : 1;
-1 12096 function matchesPseudos(target, exp) {
-1 12097 if (!exp.pseudos || exp.pseudos.every(function(pseudo) {
-1 12098 if (pseudo.name === 'not') {
-1 12099 return !pseudo.expressions.some(function(expression) {
-1 12100 return _matchesExpression(target, expression);
-1 12101 });
-1 12102 } else if (pseudo.name === 'is') {
-1 12103 return pseudo.expressions.some(function(expression) {
-1 12104 return _matchesExpression(target, expression);
12122 12105 });
12123 12106 }
-1 12107 throw new Error('the pseudo selector ' + pseudo.name + ' has not yet been implemented');
-1 12108 })) {
-1 12109 return true;
12124 12110 }
12125 -1 return selector += features.reduce(function(val, feat) {
12126 -1 switch (feat.species) {
12127 -1 case 'class':
12128 -1 return val + '.' + feat.name;
12129 -1
12130 -1 case 'attribute':
12131 -1 return val + '[' + feat.name + ']';
12132 -1 }
12133 -1 return val;
12134 -1 }, '');
-1 12111 return false;
12135 12112 }
12136 -1 function generateSelector(elm, options, doc) {
12137 -1 if (!axe._selectorData) {
12138 -1 throw new Error('Expect axe._selectorData to be set up');
-1 12113 function matchExpression(vNode, expression) {
-1 12114 return matchesTag(vNode, expression) && matchesClasses(vNode, expression) && matchesAttributes(vNode, expression) && matchesId(vNode, expression) && matchesPseudos(vNode, expression);
-1 12115 }
-1 12116 var escapeRegExp = function() {
-1 12117 var from = /(?=[\-\[\]{}()*+?.\\\^$|,#\s])/g;
-1 12118 var to = '\\';
-1 12119 return function(string) {
-1 12120 return string.replace(from, to);
-1 12121 };
-1 12122 }();
-1 12123 var reUnescape = /\\/g;
-1 12124 function convertAttributes(atts) {
-1 12125 if (!atts) {
-1 12126 return;
12139 12127 }
12140 -1 var _options$toRoot = options.toRoot, toRoot = _options$toRoot === void 0 ? false : _options$toRoot;
12141 -1 var selector;
12142 -1 var similar;
12143 -1 do {
12144 -1 var features = getElmId(elm);
12145 -1 if (!features) {
12146 -1 features = getThreeLeastCommonFeatures(elm, axe._selectorData);
12147 -1 features += getNthChildString(elm, features);
-1 12128 return atts.map(function(att) {
-1 12129 var attributeKey = att.name.replace(reUnescape, '');
-1 12130 var attributeValue = (att.value || '').replace(reUnescape, '');
-1 12131 var test, regexp;
-1 12132 switch (att.operator) {
-1 12133 case '^=':
-1 12134 regexp = new RegExp('^' + escapeRegExp(attributeValue));
-1 12135 break;
-1 12136
-1 12137 case '$=':
-1 12138 regexp = new RegExp(escapeRegExp(attributeValue) + '$');
-1 12139 break;
-1 12140
-1 12141 case '~=':
-1 12142 regexp = new RegExp('(^|\\s)' + escapeRegExp(attributeValue) + '(\\s|$)');
-1 12143 break;
-1 12144
-1 12145 case '|=':
-1 12146 regexp = new RegExp('^' + escapeRegExp(attributeValue) + '(-|$)');
-1 12147 break;
-1 12148
-1 12149 case '=':
-1 12150 test = function test(value) {
-1 12151 return attributeValue === value;
-1 12152 };
-1 12153 break;
-1 12154
-1 12155 case '*=':
-1 12156 test = function test(value) {
-1 12157 return value && value.includes(attributeValue);
-1 12158 };
-1 12159 break;
-1 12160
-1 12161 case '!=':
-1 12162 test = function test(value) {
-1 12163 return attributeValue !== value;
-1 12164 };
-1 12165 break;
-1 12166
-1 12167 default:
-1 12168 test = function test(value) {
-1 12169 return value !== null;
-1 12170 };
12148 12171 }
12149 -1 if (selector) {
12150 -1 selector = features + ' > ' + selector;
12151 -1 } else {
12152 -1 selector = features;
-1 12172 if (attributeValue === '' && /^[*$^]=$/.test(att.operator)) {
-1 12173 test = function test() {
-1 12174 return false;
-1 12175 };
12153 12176 }
12154 -1 if (!similar) {
12155 -1 similar = Array.from(doc.querySelectorAll(selector));
12156 -1 } else {
12157 -1 similar = similar.filter(function(item) {
12158 -1 return element_matches_default(item, selector);
12159 -1 });
-1 12177 if (!test) {
-1 12178 test = function test(value) {
-1 12179 return value && regexp.test(value);
-1 12180 };
12160 12181 }
12161 -1 elm = elm.parentElement;
12162 -1 } while ((similar.length > 1 || toRoot) && elm && elm.nodeType !== 11);
12163 -1 if (similar.length === 1) {
12164 -1 return selector;
12165 -1 } else if (selector.indexOf(' > ') !== -1) {
12166 -1 return ':root' + selector.substring(selector.indexOf(' > '));
12167 -1 }
12168 -1 return ':root';
12169 -1 }
12170 -1 function _getSelector(elm, options) {
12171 -1 return get_shadow_selector_default(generateSelector, elm, options);
-1 12182 return {
-1 12183 key: attributeKey,
-1 12184 value: attributeValue,
-1 12185 type: typeof att.value === 'undefined' ? 'attrExist' : 'attrValue',
-1 12186 test: test
-1 12187 };
-1 12188 });
12172 12189 }
12173 -1 function generateAncestry(node) {
12174 -1 var nodeName2 = node.nodeName.toLowerCase();
12175 -1 var parent = node.parentElement;
12176 -1 if (!parent) {
12177 -1 return nodeName2;
-1 12190 function convertClasses(classes) {
-1 12191 if (!classes) {
-1 12192 return;
12178 12193 }
12179 -1 var nthChild = '';
12180 -1 if (nodeName2 !== 'head' && nodeName2 !== 'body' && parent.children.length > 1) {
12181 -1 var index = Array.prototype.indexOf.call(parent.children, node) + 1;
12182 -1 nthChild = ':nth-child('.concat(index, ')');
-1 12194 return classes.map(function(className) {
-1 12195 className = className.replace(reUnescape, '');
-1 12196 return {
-1 12197 value: className,
-1 12198 regexp: new RegExp('(^|\\s)' + escapeRegExp(className) + '(\\s|$)')
-1 12199 };
-1 12200 });
-1 12201 }
-1 12202 function convertPseudos(pseudos) {
-1 12203 if (!pseudos) {
-1 12204 return;
12183 12205 }
12184 -1 return generateAncestry(parent) + ' > ' + nodeName2 + nthChild;
-1 12206 return pseudos.map(function(p) {
-1 12207 var expressions;
-1 12208 if ([ 'is', 'not' ].includes(p.name)) {
-1 12209 expressions = p.value;
-1 12210 expressions = expressions.selectors ? expressions.selectors : [ expressions ];
-1 12211 expressions = convertExpressions(expressions);
-1 12212 }
-1 12213 return {
-1 12214 name: p.name,
-1 12215 expressions: expressions,
-1 12216 value: p.value
-1 12217 };
-1 12218 });
12185 12219 }
12186 -1 function _getAncestry(elm, options) {
12187 -1 return get_shadow_selector_default(generateAncestry, elm, options);
-1 12220 function convertExpressions(expressions) {
-1 12221 return expressions.map(function(exp) {
-1 12222 var newExp = [];
-1 12223 var rule = exp.rule;
-1 12224 while (rule) {
-1 12225 newExp.push({
-1 12226 tag: rule.tagName ? rule.tagName.toLowerCase() : '*',
-1 12227 combinator: rule.nestingOperator ? rule.nestingOperator : ' ',
-1 12228 id: rule.id,
-1 12229 attributes: convertAttributes(rule.attrs),
-1 12230 classes: convertClasses(rule.classNames),
-1 12231 pseudos: convertPseudos(rule.pseudos)
-1 12232 });
-1 12233 rule = rule.rule;
-1 12234 }
-1 12235 return newExp;
-1 12236 });
12188 12237 }
12189 -1 function getXPathArray(node, path) {
12190 -1 var sibling, count;
12191 -1 if (!node) {
12192 -1 return [];
12193 -1 }
12194 -1 if (!path && node.nodeType === 9) {
12195 -1 path = [ {
12196 -1 str: 'html'
12197 -1 } ];
12198 -1 return path;
-1 12238 function _convertSelector(selector) {
-1 12239 var expressions = css_parser_default.parse(selector);
-1 12240 expressions = expressions.selectors ? expressions.selectors : [ expressions ];
-1 12241 return convertExpressions(expressions);
-1 12242 }
-1 12243 function optimizedMatchesExpression(vNode, expressions, index, matchAnyParent) {
-1 12244 if (!vNode) {
-1 12245 return false;
12199 12246 }
12200 -1 path = path || [];
12201 -1 if (node.parentNode && node.parentNode !== node) {
12202 -1 path = getXPathArray(node.parentNode, path);
-1 12247 var isArray = Array.isArray(expressions);
-1 12248 var expression = isArray ? expressions[index] : expressions;
-1 12249 var matches4 = matchExpression(vNode, expression);
-1 12250 while (!matches4 && matchAnyParent && vNode.parent) {
-1 12251 vNode = vNode.parent;
-1 12252 matches4 = matchExpression(vNode, expression);
12203 12253 }
12204 -1 if (node.previousSibling) {
12205 -1 count = 1;
12206 -1 sibling = node.previousSibling;
12207 -1 do {
12208 -1 if (sibling.nodeType === 1 && sibling.nodeName === node.nodeName) {
12209 -1 count++;
12210 -1 }
12211 -1 sibling = sibling.previousSibling;
12212 -1 } while (sibling);
12213 -1 if (count === 1) {
12214 -1 count = null;
-1 12254 if (index > 0) {
-1 12255 if ([ ' ', '>' ].includes(expression.combinator) === false) {
-1 12256 throw new Error('axe.utils.matchesExpression does not support the combinator: ' + expression.combinator);
12215 12257 }
12216 -1 } else if (node.nextSibling) {
12217 -1 sibling = node.nextSibling;
12218 -1 do {
12219 -1 if (sibling.nodeType === 1 && sibling.nodeName === node.nodeName) {
12220 -1 count = 1;
12221 -1 sibling = null;
12222 -1 } else {
12223 -1 count = null;
12224 -1 sibling = sibling.previousSibling;
12225 -1 }
12226 -1 } while (sibling);
-1 12258 matches4 = matches4 && optimizedMatchesExpression(vNode.parent, expressions, index - 1, expression.combinator === ' ');
12227 12259 }
12228 -1 if (node.nodeType === 1) {
12229 -1 var element = {};
12230 -1 element.str = node.nodeName.toLowerCase();
12231 -1 var id = node.getAttribute && escape_selector_default(node.getAttribute('id'));
12232 -1 if (id && node.ownerDocument.querySelectorAll('#' + id).length === 1) {
12233 -1 element.id = node.getAttribute('id');
-1 12260 return matches4;
-1 12261 }
-1 12262 function _matchesExpression(vNode, expressions, matchAnyParent) {
-1 12263 return optimizedMatchesExpression(vNode, expressions, expressions.length - 1, matchAnyParent);
-1 12264 }
-1 12265 function matches(vNode, selector) {
-1 12266 var expressions = _convertSelector(selector);
-1 12267 return expressions.some(function(expression) {
-1 12268 return _matchesExpression(vNode, expression);
-1 12269 });
-1 12270 }
-1 12271 var matches_default = matches;
-1 12272 function closest(vNode, selector) {
-1 12273 while (vNode) {
-1 12274 if (matches_default(vNode, selector)) {
-1 12275 return vNode;
12234 12276 }
12235 -1 if (count > 1) {
12236 -1 element.count = count;
-1 12277 if (typeof vNode.parent === 'undefined') {
-1 12278 throw new TypeError('Cannot resolve parent for non-DOM nodes');
12237 12279 }
12238 -1 path.push(element);
-1 12280 vNode = vNode.parent;
12239 12281 }
12240 -1 return path;
12241 -1 }
12242 -1 function xpathToString(xpathArray) {
12243 -1 return xpathArray.reduce(function(str, elm) {
12244 -1 if (elm.id) {
12245 -1 return '/'.concat(elm.str, '[@id=\'').concat(elm.id, '\']');
12246 -1 } else {
12247 -1 return str + '/'.concat(elm.str) + (elm.count > 0 ? '['.concat(elm.count, ']') : '');
12248 -1 }
12249 -1 }, '');
-1 12282 return null;
12250 12283 }
12251 -1 function getXpath(node) {
12252 -1 var xpathArray = getXPathArray(node);
12253 -1 return xpathToString(xpathArray);
-1 12284 var closest_default = closest;
-1 12285 function noop() {}
-1 12286 function funcGuard(f) {
-1 12287 if (typeof f !== 'function') {
-1 12288 throw new TypeError('Queue methods require functions as arguments');
-1 12289 }
12254 12290 }
12255 -1 var get_xpath_default = getXpath;
12256 -1 var _cache = {};
12257 -1 var cache = {
12258 -1 set: function set(key, value) {
12259 -1 _cache[key] = value;
12260 -1 },
12261 -1 get: function get(key) {
12262 -1 return _cache[key];
12263 -1 },
12264 -1 clear: function clear() {
12265 -1 _cache = {};
12266 -1 }
12267 -1 };
12268 -1 var cache_default = cache;
12269 -1 function getNodeFromTree(vNode, node) {
12270 -1 var el = node || vNode;
12271 -1 return cache_default.get('nodeMap') ? cache_default.get('nodeMap').get(el) : null;
12272 -1 }
12273 -1 var get_node_from_tree_default = getNodeFromTree;
12274 -1 function truncate(str, maxLength) {
12275 -1 maxLength = maxLength || 300;
12276 -1 if (str.length > maxLength) {
12277 -1 var index = str.indexOf('>');
12278 -1 str = str.substring(0, index + 1);
12279 -1 }
12280 -1 return str;
12281 -1 }
12282 -1 function getSource2(element) {
12283 -1 if (!(element !== null && element !== void 0 && element.outerHTML)) {
12284 -1 return '';
12285 -1 }
12286 -1 var source = element.outerHTML;
12287 -1 if (!source && typeof XMLSerializer === 'function') {
12288 -1 source = new XMLSerializer().serializeToString(element);
12289 -1 }
12290 -1 return truncate(source || '');
12291 -1 }
12292 -1 function DqElement(elm) {
12293 -1 var _this$spec$selector, _this$_virtualNode;
12294 -1 var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
12295 -1 var spec = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
12296 -1 this.spec = spec;
12297 -1 if (elm instanceof abstract_virtual_node_default) {
12298 -1 this._virtualNode = elm;
12299 -1 this._element = elm.actualNode;
12300 -1 } else {
12301 -1 this._element = elm;
12302 -1 this._virtualNode = get_node_from_tree_default(elm);
12303 -1 }
12304 -1 this.fromFrame = ((_this$spec$selector = this.spec.selector) === null || _this$spec$selector === void 0 ? void 0 : _this$spec$selector.length) > 1;
12305 -1 if (options.absolutePaths) {
12306 -1 this._options = {
12307 -1 toRoot: true
-1 12291 function queue() {
-1 12292 var tasks = [];
-1 12293 var started = 0;
-1 12294 var remaining = 0;
-1 12295 var completeQueue = noop;
-1 12296 var complete = false;
-1 12297 var err2;
-1 12298 var defaultFail = function defaultFail(e) {
-1 12299 err2 = e;
-1 12300 setTimeout(function() {
-1 12301 if (err2 !== void 0 && err2 !== null) {
-1 12302 log_default('Uncaught error (of queue)', err2);
-1 12303 }
-1 12304 }, 1);
-1 12305 };
-1 12306 var failed = defaultFail;
-1 12307 function createResolve(i) {
-1 12308 return function(r) {
-1 12309 tasks[i] = r;
-1 12310 remaining -= 1;
-1 12311 if (!remaining && completeQueue !== noop) {
-1 12312 complete = true;
-1 12313 completeQueue(tasks);
-1 12314 }
12308 12315 };
12309 12316 }
12310 -1 this.nodeIndexes = [];
12311 -1 if (Array.isArray(this.spec.nodeIndexes)) {
12312 -1 this.nodeIndexes = this.spec.nodeIndexes;
12313 -1 } else if (typeof ((_this$_virtualNode = this._virtualNode) === null || _this$_virtualNode === void 0 ? void 0 : _this$_virtualNode.nodeIndex) === 'number') {
12314 -1 this.nodeIndexes = [ this._virtualNode.nodeIndex ];
12315 -1 }
12316 -1 this.source = null;
12317 -1 if (!axe._audit.noHtml) {
12318 -1 var _this$spec$source;
12319 -1 this.source = (_this$spec$source = this.spec.source) !== null && _this$spec$source !== void 0 ? _this$spec$source : getSource2(this._element);
-1 12317 function abort(msg) {
-1 12318 completeQueue = noop;
-1 12319 failed(msg);
-1 12320 return tasks;
12320 12321 }
12321 -1 }
12322 -1 DqElement.prototype = {
12323 -1 get selector() {
12324 -1 return this.spec.selector || [ _getSelector(this.element, this._options) ];
12325 -1 },
12326 -1 get ancestry() {
12327 -1 return this.spec.ancestry || [ _getAncestry(this.element) ];
12328 -1 },
12329 -1 get xpath() {
12330 -1 return this.spec.xpath || [ get_xpath_default(this.element) ];
12331 -1 },
12332 -1 get element() {
12333 -1 return this._element;
12334 -1 },
12335 -1 toJSON: function toJSON() {
12336 -1 return {
12337 -1 selector: this.selector,
12338 -1 source: this.source,
12339 -1 xpath: this.xpath,
12340 -1 ancestry: this.ancestry,
12341 -1 nodeIndexes: this.nodeIndexes
12342 -1 };
-1 12322 function pop() {
-1 12323 var length = tasks.length;
-1 12324 for (;started < length; started++) {
-1 12325 var task = tasks[started];
-1 12326 try {
-1 12327 task.call(null, createResolve(started), abort);
-1 12328 } catch (e) {
-1 12329 abort(e);
-1 12330 }
-1 12331 }
12343 12332 }
12344 -1 };
12345 -1 DqElement.fromFrame = function fromFrame(node, options, frame) {
12346 -1 var spec = DqElement.mergeSpecs(node, frame);
12347 -1 return new DqElement(frame.element, options, spec);
12348 -1 };
12349 -1 DqElement.mergeSpecs = function mergeSpec(node, frame) {
12350 -1 return _extends({}, node, {
12351 -1 selector: [].concat(_toConsumableArray(frame.selector), _toConsumableArray(node.selector)),
12352 -1 ancestry: [].concat(_toConsumableArray(frame.ancestry), _toConsumableArray(node.ancestry)),
12353 -1 xpath: [].concat(_toConsumableArray(frame.xpath), _toConsumableArray(node.xpath)),
12354 -1 nodeIndexes: [].concat(_toConsumableArray(frame.nodeIndexes), _toConsumableArray(node.nodeIndexes))
12355 -1 });
12356 -1 };
12357 -1 var dq_element_default = DqElement;
12358 -1 function checkHelper(checkResult, options, resolve, reject) {
12359 -1 return {
12360 -1 isAsync: false,
12361 -1 async: function async() {
12362 -1 this.isAsync = true;
12363 -1 return function(result) {
12364 -1 if (result instanceof Error === false) {
12365 -1 checkResult.result = result;
12366 -1 resolve(checkResult);
12367 -1 } else {
12368 -1 reject(result);
12369 -1 }
12370 -1 };
-1 12333 var q = {
-1 12334 defer: function defer(fn) {
-1 12335 if (_typeof(fn) === 'object' && fn.then && fn['catch']) {
-1 12336 var defer = fn;
-1 12337 fn = function fn(resolve, reject) {
-1 12338 defer.then(resolve)['catch'](reject);
-1 12339 };
-1 12340 }
-1 12341 funcGuard(fn);
-1 12342 if (err2 !== void 0) {
-1 12343 return;
-1 12344 } else if (complete) {
-1 12345 throw new Error('Queue already completed');
-1 12346 }
-1 12347 tasks.push(fn);
-1 12348 ++remaining;
-1 12349 pop();
-1 12350 return q;
12371 12351 },
12372 -1 data: function data(data2) {
12373 -1 checkResult.data = data2;
-1 12352 then: function then(fn) {
-1 12353 funcGuard(fn);
-1 12354 if (completeQueue !== noop) {
-1 12355 throw new Error('queue `then` already set');
-1 12356 }
-1 12357 if (!err2) {
-1 12358 completeQueue = fn;
-1 12359 if (!remaining) {
-1 12360 complete = true;
-1 12361 completeQueue(tasks);
-1 12362 }
-1 12363 }
-1 12364 return q;
12374 12365 },
12375 -1 relatedNodes: function relatedNodes(nodes) {
12376 -1 if (!window.Node) {
12377 -1 return;
-1 12366 catch: function _catch(fn) {
-1 12367 funcGuard(fn);
-1 12368 if (failed !== defaultFail) {
-1 12369 throw new Error('queue `catch` already set');
12378 12370 }
12379 -1 nodes = nodes instanceof window.Node ? [ nodes ] : to_array_default(nodes);
12380 -1 if (!nodes.every(function(node) {
12381 -1 return node instanceof window.Node || node.actualNode;
12382 -1 })) {
12383 -1 return;
-1 12371 if (!err2) {
-1 12372 failed = fn;
-1 12373 } else {
-1 12374 fn(err2);
-1 12375 err2 = null;
12384 12376 }
12385 -1 checkResult.relatedNodes = nodes.map(function(element) {
12386 -1 return new dq_element_default(element, options);
12387 -1 });
12388 -1 }
-1 12377 return q;
-1 12378 },
-1 12379 abort: abort
12389 12380 };
-1 12381 return q;
12390 12382 }
12391 -1 var check_helper_default = checkHelper;
12392 -1 function clone(obj) {
12393 -1 var _window, _window2;
12394 -1 var index, length, out = obj;
12395 -1 if ((_window = window) !== null && _window !== void 0 && _window.Node && obj instanceof window.Node || (_window2 = window) !== null && _window2 !== void 0 && _window2.HTMLCollection && obj instanceof window.HTMLCollection) {
12396 -1 return obj;
12397 -1 }
12398 -1 if (obj !== null && _typeof(obj) === 'object') {
12399 -1 if (Array.isArray(obj)) {
12400 -1 out = [];
12401 -1 for (index = 0, length = obj.length; index < length; index++) {
12402 -1 out[index] = clone(obj[index]);
12403 -1 }
12404 -1 } else {
12405 -1 out = {};
12406 -1 for (index in obj) {
12407 -1 out[index] = clone(obj[index]);
-1 12383 var queue_default = queue;
-1 12384 var uuid;
-1 12385 var _rng;
-1 12386 var _crypto = window.crypto || window.msCrypto;
-1 12387 if (!_rng && _crypto && _crypto.getRandomValues) {
-1 12388 _rnds8 = new Uint8Array(16);
-1 12389 _rng = function whatwgRNG() {
-1 12390 _crypto.getRandomValues(_rnds8);
-1 12391 return _rnds8;
-1 12392 };
-1 12393 }
-1 12394 var _rnds8;
-1 12395 if (!_rng) {
-1 12396 _rnds = new Array(16);
-1 12397 _rng = function _rng() {
-1 12398 for (var i = 0, r; i < 16; i++) {
-1 12399 if ((i & 3) === 0) {
-1 12400 r = Math.random() * 4294967296;
12408 12401 }
-1 12402 _rnds[i] = r >>> ((i & 3) << 3) & 255;
12409 12403 }
12410 -1 }
12411 -1 return out;
-1 12404 return _rnds;
-1 12405 };
12412 12406 }
12413 -1 var clone_default = clone;
12414 -1 var css_selector_parser = __toModule(require_lib());
12415 -1 var parser = new css_selector_parser.CssSelectorParser();
12416 -1 parser.registerSelectorPseudos('not');
12417 -1 parser.registerSelectorPseudos('is');
12418 -1 parser.registerNestingOperators('>');
12419 -1 parser.registerAttrEqualityMods('^', '$', '*', '~');
12420 -1 var css_parser_default = parser;
12421 -1 function matchesTag(vNode, exp) {
12422 -1 return vNode.props.nodeType === 1 && (exp.tag === '*' || vNode.props.nodeName === exp.tag);
-1 12407 var _rnds;
-1 12408 var BufferClass = typeof window.Buffer == 'function' ? window.Buffer : Array;
-1 12409 var _byteToHex = [];
-1 12410 var _hexToByte = {};
-1 12411 for (var i = 0; i < 256; i++) {
-1 12412 _byteToHex[i] = (i + 256).toString(16).substr(1);
-1 12413 _hexToByte[_byteToHex[i]] = i;
12423 12414 }
12424 -1 function matchesClasses(vNode, exp) {
12425 -1 return !exp.classes || exp.classes.every(function(cl) {
12426 -1 return vNode.hasClass(cl.value);
12427 -1 });
12428 -1 }
12429 -1 function matchesAttributes(vNode, exp) {
12430 -1 return !exp.attributes || exp.attributes.every(function(att) {
12431 -1 var nodeAtt = vNode.attr(att.key);
12432 -1 return nodeAtt !== null && (!att.value || att.test(nodeAtt));
-1 12415 function parse(s, buf, offset) {
-1 12416 var i = buf && offset || 0, ii = 0;
-1 12417 buf = buf || [];
-1 12418 s.toLowerCase().replace(/[0-9a-f]{2}/g, function(oct) {
-1 12419 if (ii < 16) {
-1 12420 buf[i + ii++] = _hexToByte[oct];
-1 12421 }
12433 12422 });
-1 12423 while (ii < 16) {
-1 12424 buf[i + ii++] = 0;
-1 12425 }
-1 12426 return buf;
12434 12427 }
12435 -1 function matchesId(vNode, exp) {
12436 -1 return !exp.id || vNode.props.id === exp.id;
-1 12428 function unparse(buf, offset) {
-1 12429 var i = offset || 0, bth = _byteToHex;
-1 12430 return bth[buf[i++]] + bth[buf[i++]] + bth[buf[i++]] + bth[buf[i++]] + '-' + bth[buf[i++]] + bth[buf[i++]] + '-' + bth[buf[i++]] + bth[buf[i++]] + '-' + bth[buf[i++]] + bth[buf[i++]] + '-' + bth[buf[i++]] + bth[buf[i++]] + bth[buf[i++]] + bth[buf[i++]] + bth[buf[i++]] + bth[buf[i++]];
12437 12431 }
12438 -1 function matchesPseudos(target, exp) {
12439 -1 if (!exp.pseudos || exp.pseudos.every(function(pseudo) {
12440 -1 if (pseudo.name === 'not') {
12441 -1 return !pseudo.expressions.some(function(expression) {
12442 -1 return _matchesExpression(target, expression);
12443 -1 });
12444 -1 } else if (pseudo.name === 'is') {
12445 -1 return pseudo.expressions.some(function(expression) {
12446 -1 return _matchesExpression(target, expression);
12447 -1 });
12448 -1 }
12449 -1 throw new Error('the pseudo selector ' + pseudo.name + ' has not yet been implemented');
12450 -1 })) {
12451 -1 return true;
-1 12432 var _seedBytes = _rng();
-1 12433 var _nodeId = [ _seedBytes[0] | 1, _seedBytes[1], _seedBytes[2], _seedBytes[3], _seedBytes[4], _seedBytes[5] ];
-1 12434 var _clockseq = (_seedBytes[6] << 8 | _seedBytes[7]) & 16383;
-1 12435 var _lastMSecs = 0;
-1 12436 var _lastNSecs = 0;
-1 12437 function v1(options, buf, offset) {
-1 12438 var i = buf && offset || 0;
-1 12439 var b = buf || [];
-1 12440 options = options || {};
-1 12441 var clockseq = options.clockseq != null ? options.clockseq : _clockseq;
-1 12442 var msecs = options.msecs != null ? options.msecs : new Date().getTime();
-1 12443 var nsecs = options.nsecs != null ? options.nsecs : _lastNSecs + 1;
-1 12444 var dt = msecs - _lastMSecs + (nsecs - _lastNSecs) / 1e4;
-1 12445 if (dt < 0 && options.clockseq == null) {
-1 12446 clockseq = clockseq + 1 & 16383;
12452 12447 }
12453 -1 return false;
12454 -1 }
12455 -1 function matchExpression(vNode, expression) {
12456 -1 return matchesTag(vNode, expression) && matchesClasses(vNode, expression) && matchesAttributes(vNode, expression) && matchesId(vNode, expression) && matchesPseudos(vNode, expression);
-1 12448 if ((dt < 0 || msecs > _lastMSecs) && options.nsecs == null) {
-1 12449 nsecs = 0;
-1 12450 }
-1 12451 if (nsecs >= 1e4) {
-1 12452 throw new Error('uuid.v1(): Can\'t create more than 10M uuids/sec');
-1 12453 }
-1 12454 _lastMSecs = msecs;
-1 12455 _lastNSecs = nsecs;
-1 12456 _clockseq = clockseq;
-1 12457 msecs += 122192928e5;
-1 12458 var tl = ((msecs & 268435455) * 1e4 + nsecs) % 4294967296;
-1 12459 b[i++] = tl >>> 24 & 255;
-1 12460 b[i++] = tl >>> 16 & 255;
-1 12461 b[i++] = tl >>> 8 & 255;
-1 12462 b[i++] = tl & 255;
-1 12463 var tmh = msecs / 4294967296 * 1e4 & 268435455;
-1 12464 b[i++] = tmh >>> 8 & 255;
-1 12465 b[i++] = tmh & 255;
-1 12466 b[i++] = tmh >>> 24 & 15 | 16;
-1 12467 b[i++] = tmh >>> 16 & 255;
-1 12468 b[i++] = clockseq >>> 8 | 128;
-1 12469 b[i++] = clockseq & 255;
-1 12470 var node = options.node || _nodeId;
-1 12471 for (var n = 0; n < 6; n++) {
-1 12472 b[i + n] = node[n];
-1 12473 }
-1 12474 return buf ? buf : unparse(b);
12457 12475 }
12458 -1 var escapeRegExp = function() {
12459 -1 var from = /(?=[\-\[\]{}()*+?.\\\^$|,#\s])/g;
12460 -1 var to = '\\';
12461 -1 return function(string) {
12462 -1 return string.replace(from, to);
12463 -1 };
12464 -1 }();
12465 -1 var reUnescape = /\\/g;
12466 -1 function convertAttributes(atts) {
12467 -1 if (!atts) {
12468 -1 return;
-1 12476 function v4(options, buf, offset) {
-1 12477 var i = buf && offset || 0;
-1 12478 if (typeof options == 'string') {
-1 12479 buf = options == 'binary' ? new BufferClass(16) : null;
-1 12480 options = null;
12469 12481 }
12470 -1 return atts.map(function(att) {
12471 -1 var attributeKey = att.name.replace(reUnescape, '');
12472 -1 var attributeValue = (att.value || '').replace(reUnescape, '');
12473 -1 var test, regexp;
12474 -1 switch (att.operator) {
12475 -1 case '^=':
12476 -1 regexp = new RegExp('^' + escapeRegExp(attributeValue));
12477 -1 break;
12478 -1
12479 -1 case '$=':
12480 -1 regexp = new RegExp(escapeRegExp(attributeValue) + '$');
12481 -1 break;
12482 -1
12483 -1 case '~=':
12484 -1 regexp = new RegExp('(^|\\s)' + escapeRegExp(attributeValue) + '(\\s|$)');
12485 -1 break;
12486 -1
12487 -1 case '|=':
12488 -1 regexp = new RegExp('^' + escapeRegExp(attributeValue) + '(-|$)');
12489 -1 break;
12490 -1
12491 -1 case '=':
12492 -1 test = function test(value) {
12493 -1 return attributeValue === value;
12494 -1 };
12495 -1 break;
12496 -1
12497 -1 case '*=':
12498 -1 test = function test(value) {
12499 -1 return value && value.includes(attributeValue);
12500 -1 };
12501 -1 break;
12502 -1
12503 -1 case '!=':
12504 -1 test = function test(value) {
12505 -1 return attributeValue !== value;
12506 -1 };
12507 -1 break;
12508 -1
12509 -1 default:
12510 -1 test = function test(value) {
12511 -1 return !!value;
12512 -1 };
12513 -1 }
12514 -1 if (attributeValue === '' && /^[*$^]=$/.test(att.operator)) {
12515 -1 test = function test() {
12516 -1 return false;
12517 -1 };
12518 -1 }
12519 -1 if (!test) {
12520 -1 test = function test(value) {
12521 -1 return value && regexp.test(value);
12522 -1 };
-1 12482 options = options || {};
-1 12483 var rnds = options.random || (options.rng || _rng)();
-1 12484 rnds[6] = rnds[6] & 15 | 64;
-1 12485 rnds[8] = rnds[8] & 63 | 128;
-1 12486 if (buf) {
-1 12487 for (var ii = 0; ii < 16; ii++) {
-1 12488 buf[i + ii] = rnds[ii];
12523 12489 }
12524 -1 return {
12525 -1 key: attributeKey,
12526 -1 value: attributeValue,
12527 -1 test: test
-1 12490 }
-1 12491 return buf || unparse(rnds);
-1 12492 }
-1 12493 uuid = v4;
-1 12494 uuid.v1 = v1;
-1 12495 uuid.v4 = v4;
-1 12496 uuid.parse = parse;
-1 12497 uuid.unparse = unparse;
-1 12498 uuid.BufferClass = BufferClass;
-1 12499 axe._uuid = v1();
-1 12500 var uuid_default = v4;
-1 12501 var errorTypes = Object.freeze([ 'EvalError', 'RangeError', 'ReferenceError', 'SyntaxError', 'TypeError', 'URIError' ]);
-1 12502 function stringifyMessage(_ref2) {
-1 12503 var topic = _ref2.topic, channelId = _ref2.channelId, message = _ref2.message, messageId = _ref2.messageId, keepalive = _ref2.keepalive;
-1 12504 var data2 = {
-1 12505 channelId: channelId,
-1 12506 topic: topic,
-1 12507 messageId: messageId,
-1 12508 keepalive: !!keepalive,
-1 12509 source: getSource2()
-1 12510 };
-1 12511 if (message instanceof Error) {
-1 12512 data2.error = {
-1 12513 name: message.name,
-1 12514 message: message.message,
-1 12515 stack: message.stack
12528 12516 };
12529 -1 });
-1 12517 } else {
-1 12518 data2.payload = message;
-1 12519 }
-1 12520 return JSON.stringify(data2);
12530 12521 }
12531 -1 function convertClasses(classes) {
12532 -1 if (!classes) {
-1 12522 function parseMessage(dataString) {
-1 12523 var data2;
-1 12524 try {
-1 12525 data2 = JSON.parse(dataString);
-1 12526 } catch (e) {
12533 12527 return;
12534 12528 }
12535 -1 return classes.map(function(className) {
12536 -1 className = className.replace(reUnescape, '');
12537 -1 return {
12538 -1 value: className,
12539 -1 regexp: new RegExp('(^|\\s)' + escapeRegExp(className) + '(\\s|$)')
12540 -1 };
12541 -1 });
12542 -1 }
12543 -1 function convertPseudos(pseudos) {
12544 -1 if (!pseudos) {
-1 12529 if (!isRespondableMessage(data2)) {
12545 12530 return;
12546 12531 }
12547 -1 return pseudos.map(function(p) {
12548 -1 var expressions;
12549 -1 if ([ 'is', 'not' ].includes(p.name)) {
12550 -1 expressions = p.value;
12551 -1 expressions = expressions.selectors ? expressions.selectors : [ expressions ];
12552 -1 expressions = convertExpressions(expressions);
12553 -1 }
12554 -1 return {
12555 -1 name: p.name,
12556 -1 expressions: expressions,
12557 -1 value: p.value
12558 -1 };
12559 -1 });
-1 12532 var _data = data2, topic = _data.topic, channelId = _data.channelId, messageId = _data.messageId, keepalive = _data.keepalive;
-1 12533 var message = _typeof(data2.error) === 'object' ? buildErrorObject(data2.error) : data2.payload;
-1 12534 return {
-1 12535 topic: topic,
-1 12536 message: message,
-1 12537 messageId: messageId,
-1 12538 channelId: channelId,
-1 12539 keepalive: !!keepalive
-1 12540 };
12560 12541 }
12561 -1 function convertExpressions(expressions) {
12562 -1 return expressions.map(function(exp) {
12563 -1 var newExp = [];
12564 -1 var rule3 = exp.rule;
12565 -1 while (rule3) {
12566 -1 newExp.push({
12567 -1 tag: rule3.tagName ? rule3.tagName.toLowerCase() : '*',
12568 -1 combinator: rule3.nestingOperator ? rule3.nestingOperator : ' ',
12569 -1 id: rule3.id,
12570 -1 attributes: convertAttributes(rule3.attrs),
12571 -1 classes: convertClasses(rule3.classNames),
12572 -1 pseudos: convertPseudos(rule3.pseudos)
12573 -1 });
12574 -1 rule3 = rule3.rule;
12575 -1 }
12576 -1 return newExp;
12577 -1 });
-1 12542 function isRespondableMessage(postedMessage) {
-1 12543 return postedMessage !== null && _typeof(postedMessage) === 'object' && typeof postedMessage.channelId === 'string' && postedMessage.source === getSource2();
12578 12544 }
12579 -1 function _convertSelector(selector) {
12580 -1 var expressions = css_parser_default.parse(selector);
12581 -1 expressions = expressions.selectors ? expressions.selectors : [ expressions ];
12582 -1 return convertExpressions(expressions);
-1 12545 function buildErrorObject(error) {
-1 12546 var msg = error.message || 'Unknown error occurred';
-1 12547 var errorName = errorTypes.includes(error.name) ? error.name : 'Error';
-1 12548 var ErrConstructor = window[errorName] || Error;
-1 12549 if (error.stack) {
-1 12550 msg += '\n' + error.stack.replace(error.message, '');
-1 12551 }
-1 12552 return new ErrConstructor(msg);
12583 12553 }
12584 -1 function optimizedMatchesExpression(vNode, expressions, index, matchAnyParent) {
12585 -1 var isArray = Array.isArray(expressions);
12586 -1 var expression = isArray ? expressions[index] : expressions;
12587 -1 var matches14 = matchExpression(vNode, expression);
12588 -1 while (!matches14 && matchAnyParent && vNode.parent) {
12589 -1 vNode = vNode.parent;
12590 -1 matches14 = matchExpression(vNode, expression);
-1 12554 function getSource2() {
-1 12555 var application = 'axeAPI';
-1 12556 var version = '';
-1 12557 if (typeof axe !== 'undefined' && axe._audit && axe._audit.application) {
-1 12558 application = axe._audit.application;
12591 12559 }
12592 -1 if (index > 0) {
12593 -1 if ([ ' ', '>' ].includes(expression.combinator) === false) {
12594 -1 throw new Error('axe.utils.matchesExpression does not support the combinator: ' + expression.combinator);
12595 -1 }
12596 -1 matches14 = matches14 && optimizedMatchesExpression(vNode.parent, expressions, index - 1, expression.combinator === ' ');
-1 12560 if (typeof axe !== 'undefined') {
-1 12561 version = axe.version;
12597 12562 }
12598 -1 return matches14;
-1 12563 return application + '.' + version;
12599 12564 }
12600 -1 function _matchesExpression(vNode, expressions, matchAnyParent) {
12601 -1 return optimizedMatchesExpression(vNode, expressions, expressions.length - 1, matchAnyParent);
-1 12565 function assertIsParentWindow(win) {
-1 12566 assetNotGlobalWindow(win);
-1 12567 assert_default(window.parent === win, 'Source of the response must be the parent window.');
12602 12568 }
12603 -1 function matches(vNode, selector) {
12604 -1 var expressions = _convertSelector(selector);
12605 -1 return expressions.some(function(expression) {
12606 -1 return _matchesExpression(vNode, expression);
12607 -1 });
-1 12569 function assertIsFrameWindow(win) {
-1 12570 assetNotGlobalWindow(win);
-1 12571 assert_default(win.parent === window, 'Respondable target must be a frame in the current window');
12608 12572 }
12609 -1 var matches_default = matches;
12610 -1 function closest(vNode, selector) {
12611 -1 while (vNode) {
12612 -1 if (matches_default(vNode, selector)) {
12613 -1 return vNode;
12614 -1 }
12615 -1 if (typeof vNode.parent === 'undefined') {
12616 -1 throw new TypeError('Cannot resolve parent for non-DOM nodes');
12617 -1 }
12618 -1 vNode = vNode.parent;
-1 12573 function assetNotGlobalWindow(win) {
-1 12574 assert_default(window !== win, 'Messages can not be sent to the same window.');
-1 12575 }
-1 12576 var channels = {};
-1 12577 function storeReplyHandler(channelId, replyHandler) {
-1 12578 var sendToParent = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
-1 12579 assert_default(!channels[channelId], 'A replyHandler already exists for this message channel.');
-1 12580 channels[channelId] = {
-1 12581 replyHandler: replyHandler,
-1 12582 sendToParent: sendToParent
-1 12583 };
-1 12584 }
-1 12585 function getReplyHandler(channelId) {
-1 12586 return channels[channelId];
-1 12587 }
-1 12588 function deleteReplyHandler(channelId) {
-1 12589 delete channels[channelId];
-1 12590 }
-1 12591 var messageIds = [];
-1 12592 function createMessageId() {
-1 12593 var uuid2 = ''.concat(v4(), ':').concat(v4());
-1 12594 if (messageIds.includes(uuid2)) {
-1 12595 return createMessageId();
12619 12596 }
12620 -1 return null;
-1 12597 messageIds.push(uuid2);
-1 12598 return uuid2;
12621 12599 }
12622 -1 var closest_default = closest;
12623 -1 function noop() {}
12624 -1 function funcGuard(f) {
12625 -1 if (typeof f !== 'function') {
12626 -1 throw new TypeError('Queue methods require functions as arguments');
-1 12600 function isNewMessage(uuid2) {
-1 12601 if (messageIds.includes(uuid2)) {
-1 12602 return false;
12627 12603 }
-1 12604 messageIds.push(uuid2);
-1 12605 return true;
12628 12606 }
12629 -1 function queue() {
12630 -1 var tasks = [];
12631 -1 var started = 0;
12632 -1 var remaining = 0;
12633 -1 var completeQueue = noop;
12634 -1 var complete = false;
12635 -1 var err2;
12636 -1 var defaultFail = function defaultFail(e) {
12637 -1 err2 = e;
12638 -1 setTimeout(function() {
12639 -1 if (err2 !== void 0 && err2 !== null) {
12640 -1 log_default('Uncaught error (of queue)', err2);
12641 -1 }
12642 -1 }, 1);
12643 -1 };
12644 -1 var failed = defaultFail;
12645 -1 function createResolve(i) {
12646 -1 return function(r) {
12647 -1 tasks[i] = r;
12648 -1 remaining -= 1;
12649 -1 if (!remaining && completeQueue !== noop) {
12650 -1 complete = true;
12651 -1 completeQueue(tasks);
12652 -1 }
12653 -1 };
-1 12607 function postMessage(win, data2, sendToParent, replyHandler) {
-1 12608 if (typeof replyHandler === 'function') {
-1 12609 storeReplyHandler(data2.channelId, replyHandler, sendToParent);
12654 12610 }
12655 -1 function abort(msg) {
12656 -1 completeQueue = noop;
12657 -1 failed(msg);
12658 -1 return tasks;
-1 12611 sendToParent ? assertIsParentWindow(win) : assertIsFrameWindow(win);
-1 12612 if (data2.message instanceof Error && !sendToParent) {
-1 12613 axe.log(data2.message);
-1 12614 return false;
12659 12615 }
12660 -1 function pop() {
12661 -1 var length = tasks.length;
12662 -1 for (;started < length; started++) {
12663 -1 var task = tasks[started];
12664 -1 try {
12665 -1 task.call(null, createResolve(started), abort);
12666 -1 } catch (e) {
12667 -1 abort(e);
-1 12616 var dataString = stringifyMessage(_extends({
-1 12617 messageId: createMessageId()
-1 12618 }, data2));
-1 12619 var allowedOrigins = axe._audit.allowedOrigins;
-1 12620 if (!allowedOrigins || !allowedOrigins.length) {
-1 12621 return false;
-1 12622 }
-1 12623 allowedOrigins.forEach(function(origin) {
-1 12624 try {
-1 12625 win.postMessage(dataString, origin);
-1 12626 } catch (err2) {
-1 12627 if (err2 instanceof win.DOMException) {
-1 12628 throw new Error('allowedOrigins value "'.concat(origin, '" is not a valid origin'));
12668 12629 }
-1 12630 throw err2;
12669 12631 }
-1 12632 });
-1 12633 return true;
-1 12634 }
-1 12635 function processError(win, error, channelId) {
-1 12636 if (!win.parent !== window) {
-1 12637 return axe.log(error);
-1 12638 }
-1 12639 try {
-1 12640 postMessage(win, {
-1 12641 topic: null,
-1 12642 channelId: channelId,
-1 12643 message: error,
-1 12644 messageId: createMessageId(),
-1 12645 keepalive: true
-1 12646 }, true);
-1 12647 } catch (err2) {
-1 12648 return axe.log(err2);
12670 12649 }
12671 -1 var q = {
12672 -1 defer: function defer(fn) {
12673 -1 if (_typeof(fn) === 'object' && fn.then && fn['catch']) {
12674 -1 var defer = fn;
12675 -1 fn = function fn(resolve, reject) {
12676 -1 defer.then(resolve)['catch'](reject);
12677 -1 };
12678 -1 }
12679 -1 funcGuard(fn);
12680 -1 if (err2 !== void 0) {
12681 -1 return;
12682 -1 } else if (complete) {
12683 -1 throw new Error('Queue already completed');
12684 -1 }
12685 -1 tasks.push(fn);
12686 -1 ++remaining;
12687 -1 pop();
12688 -1 return q;
12689 -1 },
12690 -1 then: function then(fn) {
12691 -1 funcGuard(fn);
12692 -1 if (completeQueue !== noop) {
12693 -1 throw new Error('queue `then` already set');
12694 -1 }
12695 -1 if (!err2) {
12696 -1 completeQueue = fn;
12697 -1 if (!remaining) {
12698 -1 complete = true;
12699 -1 completeQueue(tasks);
12700 -1 }
12701 -1 }
12702 -1 return q;
12703 -1 },
12704 -1 catch: function _catch(fn) {
12705 -1 funcGuard(fn);
12706 -1 if (failed !== defaultFail) {
12707 -1 throw new Error('queue `catch` already set');
12708 -1 }
12709 -1 if (!err2) {
12710 -1 failed = fn;
12711 -1 } else {
12712 -1 fn(err2);
12713 -1 err2 = null;
12714 -1 }
12715 -1 return q;
12716 -1 },
12717 -1 abort: abort
12718 -1 };
12719 -1 return q;
12720 12650 }
12721 -1 var queue_default = queue;
12722 -1 var closeHandler;
12723 -1 var postMessage2;
12724 -1 var topicHandlers = {};
12725 -1 function _respondable(win, topic, message, keepalive, replyHandler) {
12726 -1 var data2 = {
12727 -1 topic: topic,
12728 -1 message: message,
12729 -1 channelId: ''.concat(v4(), ':').concat(v4()),
12730 -1 keepalive: keepalive
-1 12651 function createResponder(win, channelId) {
-1 12652 var sendToParent = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
-1 12653 return function respond(message, keepalive, replyHandler) {
-1 12654 var data2 = {
-1 12655 channelId: channelId,
-1 12656 message: message,
-1 12657 keepalive: keepalive
-1 12658 };
-1 12659 postMessage(win, data2, sendToParent, replyHandler);
12731 12660 };
12732 -1 return postMessage2(win, data2, replyHandler);
12733 12661 }
12734 -1 function messageListener(data2, responder) {
12735 -1 var topic = data2.topic, message = data2.message, keepalive = data2.keepalive;
12736 -1 var topicHandler = topicHandlers[topic];
12737 -1 if (!topicHandler) {
-1 12662 function originIsAllowed(origin) {
-1 12663 var allowedOrigins = axe._audit.allowedOrigins;
-1 12664 return allowedOrigins && allowedOrigins.includes('*') || allowedOrigins.includes(origin);
-1 12665 }
-1 12666 function messageHandler(_ref3, topicHandler) {
-1 12667 var origin = _ref3.origin, dataString = _ref3.data, win = _ref3.source;
-1 12668 try {
-1 12669 var data2 = parseMessage(dataString) || {};
-1 12670 var channelId = data2.channelId, message = data2.message, messageId = data2.messageId;
-1 12671 if (!originIsAllowed(origin) || !isNewMessage(messageId)) {
-1 12672 return;
-1 12673 }
-1 12674 if (message instanceof Error && win.parent !== window) {
-1 12675 axe.log(message);
-1 12676 return false;
-1 12677 }
-1 12678 try {
-1 12679 if (data2.topic) {
-1 12680 var responder = createResponder(win, channelId);
-1 12681 assertIsParentWindow(win);
-1 12682 topicHandler(data2, responder);
-1 12683 } else {
-1 12684 callReplyHandler(win, data2);
-1 12685 }
-1 12686 } catch (error) {
-1 12687 processError(win, error, channelId);
-1 12688 }
-1 12689 } catch (error) {
-1 12690 axe.log(error);
-1 12691 return false;
-1 12692 }
-1 12693 }
-1 12694 function callReplyHandler(win, data2) {
-1 12695 var channelId = data2.channelId, message = data2.message, keepalive = data2.keepalive;
-1 12696 var _ref4 = getReplyHandler(channelId) || {}, replyHandler = _ref4.replyHandler, sendToParent = _ref4.sendToParent;
-1 12697 if (!replyHandler) {
12738 12698 return;
12739 12699 }
-1 12700 sendToParent ? assertIsParentWindow(win) : assertIsFrameWindow(win);
-1 12701 var responder = createResponder(win, channelId, sendToParent);
-1 12702 if (!keepalive && channelId) {
-1 12703 deleteReplyHandler(channelId);
-1 12704 }
12740 12705 try {
12741 -1 topicHandler(message, keepalive, responder);
-1 12706 replyHandler(message, keepalive, responder);
12742 12707 } catch (error) {
12743 12708 axe.log(error);
12744 12709 responder(error, keepalive);
12745 12710 }
12746 12711 }
12747 -1 _respondable.updateMessenger = function updateMessenger(_ref5) {
12748 -1 var open = _ref5.open, post = _ref5.post;
12749 -1 assert_default(typeof open === 'function', 'open callback must be a function');
12750 -1 assert_default(typeof post === 'function', 'post callback must be a function');
12751 -1 if (closeHandler) {
12752 -1 closeHandler();
12753 -1 }
12754 -1 var close = open(messageListener);
12755 -1 if (close) {
-1 12712 var frameMessenger = {
-1 12713 open: function open(topicHandler) {
-1 12714 if (typeof window.addEventListener !== 'function') {
-1 12715 return;
-1 12716 }
-1 12717 var handler = function handler(messageEvent) {
-1 12718 messageHandler(messageEvent, topicHandler);
-1 12719 };
-1 12720 window.addEventListener('message', handler, false);
-1 12721 return function() {
-1 12722 window.removeEventListener('message', handler, false);
-1 12723 };
-1 12724 },
-1 12725 post: function post(win, data2, replyHandler) {
-1 12726 if (typeof window.addEventListener !== 'function') {
-1 12727 return false;
-1 12728 }
-1 12729 return postMessage(win, data2, false, replyHandler);
-1 12730 }
-1 12731 };
-1 12732 function setDefaultFrameMessenger(respondable2) {
-1 12733 respondable2.updateMessenger(frameMessenger);
-1 12734 }
-1 12735 var closeHandler;
-1 12736 var postMessage2;
-1 12737 var topicHandlers = {};
-1 12738 function _respondable(win, topic, message, keepalive, replyHandler) {
-1 12739 var data2 = {
-1 12740 topic: topic,
-1 12741 message: message,
-1 12742 channelId: ''.concat(v4(), ':').concat(v4()),
-1 12743 keepalive: keepalive
-1 12744 };
-1 12745 return postMessage2(win, data2, replyHandler);
-1 12746 }
-1 12747 function messageListener(data2, responder) {
-1 12748 var topic = data2.topic, message = data2.message, keepalive = data2.keepalive;
-1 12749 var topicHandler = topicHandlers[topic];
-1 12750 if (!topicHandler) {
-1 12751 return;
-1 12752 }
-1 12753 try {
-1 12754 topicHandler(message, keepalive, responder);
-1 12755 } catch (error) {
-1 12756 axe.log(error);
-1 12757 responder(error, keepalive);
-1 12758 }
-1 12759 }
-1 12760 _respondable.updateMessenger = function updateMessenger(_ref5) {
-1 12761 var open = _ref5.open, post = _ref5.post;
-1 12762 assert_default(typeof open === 'function', 'open callback must be a function');
-1 12763 assert_default(typeof post === 'function', 'post callback must be a function');
-1 12764 if (closeHandler) {
-1 12765 closeHandler();
-1 12766 }
-1 12767 var close = open(messageListener);
-1 12768 if (close) {
12756 12769 assert_default(typeof close === 'function', 'open callback must return a cleanup function');
12757 12770 closeHandler = close;
12758 12771 } else {
@@ -12837,8 +12850,8 @@ module.exports = {
12837 12850 resultSet.forEach(function(res) {
12838 12851 res.node = dq_element_default.fromFrame(res.node, options, frameSpec);
12839 12852 var checks = get_all_checks_default(res);
12840 -1 checks.forEach(function(check4) {
12841 -1 check4.relatedNodes = check4.relatedNodes.map(function(node) {
-1 12853 checks.forEach(function(check) {
-1 12854 check.relatedNodes = check.relatedNodes.map(function(node) {
12842 12855 return dq_element_default.fromFrame(node, options, frameSpec);
12843 12856 });
12844 12857 });
@@ -12931,13 +12944,13 @@ module.exports = {
12931 12944 var q = queue_default();
12932 12945 var frames = parentContent.frames;
12933 12946 frames.forEach(function(_ref6) {
12934 -1 var frameElement = _ref6.node, context5 = _objectWithoutProperties(_ref6, _excluded);
-1 12947 var frameElement = _ref6.node, context = _objectWithoutProperties(_ref6, _excluded);
12935 12948 q.defer(function(res, rej) {
12936 12949 var params = {
12937 12950 options: options,
12938 12951 command: command,
12939 12952 parameter: parameter,
12940 -1 context: context5
-1 12953 context: context
12941 12954 };
12942 12955 function callback(results) {
12943 12956 if (!results) {
@@ -12956,28 +12969,18 @@ module.exports = {
12956 12969 })['catch'](reject);
12957 12970 }
12958 12971 function _contains(vNode, otherVNode) {
12959 -1 if (vNode.shadowId || otherVNode.shadowId) {
12960 -1 do {
12961 -1 if (vNode.shadowId === otherVNode.shadowId) {
12962 -1 return true;
12963 -1 }
12964 -1 otherVNode = otherVNode.parent;
12965 -1 } while (otherVNode);
12966 -1 return false;
12967 -1 }
12968 -1 if (!vNode.actualNode) {
12969 -1 do {
12970 -1 if (otherVNode === vNode) {
12971 -1 return true;
12972 -1 }
12973 -1 otherVNode = otherVNode.parent;
12974 -1 } while (otherVNode);
-1 12972 if (!vNode.shadowId && !otherVNode.shadowId && vNode.actualNode && typeof vNode.actualNode.contains === 'function') {
-1 12973 return vNode.actualNode.contains(otherVNode.actualNode);
12975 12974 }
12976 -1 if (typeof vNode.actualNode.contains !== 'function') {
12977 -1 var position = vNode.actualNode.compareDocumentPosition(otherVNode.actualNode);
12978 -1 return !!(position & 16);
12979 -1 }
12980 -1 return vNode.actualNode.contains(otherVNode.actualNode);
-1 12975 do {
-1 12976 if (vNode === otherVNode) {
-1 12977 return true;
-1 12978 } else if (otherVNode.nodeIndex < vNode.nodeIndex) {
-1 12979 return false;
-1 12980 }
-1 12981 otherVNode = otherVNode.parent;
-1 12982 } while (otherVNode);
-1 12983 return false;
12981 12984 }
12982 12985 function deepMerge() {
12983 12986 var target = {};
@@ -13025,9 +13028,15 @@ module.exports = {
13025 13028 var is_shadow_root_default = isShadowRoot;
13026 13029 var dom_exports = {};
13027 13030 __export(dom_exports, {
-1 13031 createGrid: function createGrid() {
-1 13032 return _createGrid;
-1 13033 },
13028 13034 findElmsInContext: function findElmsInContext() {
13029 13035 return find_elms_in_context_default;
13030 13036 },
-1 13037 findNearbyElms: function findNearbyElms() {
-1 13038 return _findNearbyElms;
-1 13039 },
13031 13040 findUp: function findUp() {
13032 13041 return find_up_default;
13033 13042 },
@@ -13046,6 +13055,9 @@ module.exports = {
13046 13055 getElementStack: function getElementStack() {
13047 13056 return get_element_stack_default;
13048 13057 },
-1 13058 getOverflowHiddenAncestors: function getOverflowHiddenAncestors() {
-1 13059 return get_overflow_hidden_ancestors_default;
-1 13060 },
13049 13061 getRootNode: function getRootNode() {
13050 13062 return get_root_node_default2;
13051 13063 },
@@ -13061,12 +13073,18 @@ module.exports = {
13061 13073 getViewportSize: function getViewportSize() {
13062 13074 return get_viewport_size_default;
13063 13075 },
-1 13076 getVisibleChildTextRects: function getVisibleChildTextRects() {
-1 13077 return get_visible_child_text_rects_default;
-1 13078 },
13064 13079 hasContent: function hasContent() {
13065 13080 return has_content_default;
13066 13081 },
13067 13082 hasContentVirtual: function hasContentVirtual() {
13068 13083 return has_content_virtual_default;
13069 13084 },
-1 13085 hasLangText: function hasLangText() {
-1 13086 return _hasLangText;
-1 13087 },
13070 13088 idrefs: function idrefs() {
13071 13089 return idrefs_default;
13072 13090 },
@@ -13077,20 +13095,29 @@ module.exports = {
13077 13095 return _isCurrentPageLink;
13078 13096 },
13079 13097 isFocusable: function isFocusable() {
13080 -1 return is_focusable_default;
-1 13098 return _isFocusable;
13081 13099 },
13082 13100 isHTML5: function isHTML5() {
13083 13101 return is_html5_default;
13084 13102 },
-1 13103 isHiddenForEveryone: function isHiddenForEveryone() {
-1 13104 return _isHiddenForEveryone;
-1 13105 },
13085 13106 isHiddenWithCSS: function isHiddenWithCSS() {
13086 13107 return is_hidden_with_css_default;
13087 13108 },
-1 13109 isInTabOrder: function isInTabOrder() {
-1 13110 return _isInTabOrder;
-1 13111 },
13088 13112 isInTextBlock: function isInTextBlock() {
13089 13113 return is_in_text_block_default;
13090 13114 },
13091 13115 isModalOpen: function isModalOpen() {
13092 13116 return is_modal_open_default;
13093 13117 },
-1 13118 isMultiline: function isMultiline() {
-1 13119 return _isMultiline;
-1 13120 },
13094 13121 isNativelyFocusable: function isNativelyFocusable() {
13095 13122 return is_natively_focusable_default;
13096 13123 },
@@ -13109,6 +13136,12 @@ module.exports = {
13109 13136 isVisible: function isVisible() {
13110 13137 return is_visible_default;
13111 13138 },
-1 13139 isVisibleOnScreen: function isVisibleOnScreen() {
-1 13140 return _isVisibleOnScreen;
-1 13141 },
-1 13142 isVisibleToScreenReaders: function isVisibleToScreenReaders() {
-1 13143 return _isVisibleToScreenReaders;
-1 13144 },
13112 13145 isVisualContent: function isVisualContent() {
13113 13146 return is_visual_content_default;
13114 13147 },
@@ -13126,6 +13159,9 @@ module.exports = {
13126 13159 },
13127 13160 visuallyOverlaps: function visuallyOverlaps() {
13128 13161 return visually_overlaps_default;
-1 13162 },
-1 13163 visuallySort: function visuallySort() {
-1 13164 return _visuallySort;
13129 13165 }
13130 13166 });
13131 13167 function getRootNode(node) {
@@ -13138,13 +13174,13 @@ module.exports = {
13138 13174 var get_root_node_default = getRootNode;
13139 13175 var get_root_node_default2 = get_root_node_default;
13140 13176 function findElmsInContext(_ref7) {
13141 -1 var context5 = _ref7.context, value = _ref7.value, attr = _ref7.attr, _ref7$elm = _ref7.elm, elm = _ref7$elm === void 0 ? '' : _ref7$elm;
-1 13177 var context = _ref7.context, value = _ref7.value, attr = _ref7.attr, _ref7$elm = _ref7.elm, elm = _ref7$elm === void 0 ? '' : _ref7$elm;
13142 13178 var root;
13143 13179 var escapedValue = escape_selector_default(value);
13144 -1 if (context5.nodeType === 9 || context5.nodeType === 11) {
13145 -1 root = context5;
-1 13180 if (context.nodeType === 9 || context.nodeType === 11) {
-1 13181 root = context;
13146 13182 } else {
13147 -1 root = get_root_node_default2(context5);
-1 13183 root = get_root_node_default2(context);
13148 13184 }
13149 13185 return Array.from(root.querySelectorAll(elm + '[' + attr + '=' + escapedValue + ']'));
13150 13186 }
@@ -13178,77 +13214,189 @@ module.exports = {
13178 13214 return find_up_virtual_default(get_node_from_tree_default(element), target);
13179 13215 }
13180 13216 var find_up_default = findUp;
13181 -1 function getComposedParent(element) {
13182 -1 if (element.assignedSlot) {
13183 -1 return getComposedParent(element.assignedSlot);
13184 -1 } else if (element.parentNode) {
13185 -1 var parentNode = element.parentNode;
13186 -1 if (parentNode.nodeType === 1) {
13187 -1 return parentNode;
13188 -1 } else if (parentNode.host) {
13189 -1 return parentNode.host;
13190 -1 }
-1 13217 var import_memoizee = __toModule(require_memoizee());
-1 13218 axe._memoizedFns = [];
-1 13219 function memoizeImplementation(fn) {
-1 13220 var memoized = (0, import_memoizee['default'])(fn);
-1 13221 axe._memoizedFns.push(memoized);
-1 13222 return memoized;
-1 13223 }
-1 13224 var memoize_default = memoizeImplementation;
-1 13225 function _rectsOverlap(rect1, rect2) {
-1 13226 return (rect1.left | 0) < (rect2.right | 0) && (rect1.right | 0) > (rect2.left | 0) && (rect1.top | 0) < (rect2.bottom | 0) && (rect1.bottom | 0) > (rect2.top | 0);
-1 13227 }
-1 13228 var getOverflowHiddenAncestors = memoize_default(function getOverflowHiddenAncestorsMemoized(vNode) {
-1 13229 var ancestors = [];
-1 13230 if (!vNode) {
-1 13231 return ancestors;
13191 13232 }
13192 -1 return null;
-1 13233 var overflow = vNode.getComputedStylePropertyValue('overflow');
-1 13234 if (overflow === 'hidden') {
-1 13235 ancestors.push(vNode);
-1 13236 }
-1 13237 return ancestors.concat(getOverflowHiddenAncestors(vNode.parent));
-1 13238 });
-1 13239 var get_overflow_hidden_ancestors_default = getOverflowHiddenAncestors;
-1 13240 var clipRegex = /rect\s*\(([0-9]+)px,?\s*([0-9]+)px,?\s*([0-9]+)px,?\s*([0-9]+)px\s*\)/;
-1 13241 var clipPathRegex = /(\w+)\((\d+)/;
-1 13242 function nativelyHidden(vNode) {
-1 13243 return [ 'style', 'script', 'noscript', 'template' ].includes(vNode.props.nodeName);
13193 13244 }
13194 -1 var get_composed_parent_default = getComposedParent;
13195 -1 var angularSkipLinkRegex = /^\/\#/;
13196 -1 var angularRouterLinkRegex = /^#[!/]/;
13197 -1 function _isCurrentPageLink(anchor) {
13198 -1 var _window$location;
13199 -1 var href = anchor.getAttribute('href');
13200 -1 if (!href || href === '#') {
-1 13245 function displayHidden(vNode) {
-1 13246 if (vNode.props.nodeName === 'area') {
13201 13247 return false;
13202 13248 }
13203 -1 if (angularSkipLinkRegex.test(href)) {
13204 -1 return true;
-1 13249 return vNode.getComputedStylePropertyValue('display') === 'none';
-1 13250 }
-1 13251 function visibilityHidden(vNode) {
-1 13252 var _ref8 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, isAncestor = _ref8.isAncestor;
-1 13253 return !isAncestor && [ 'hidden', 'collapse' ].includes(vNode.getComputedStylePropertyValue('visibility'));
-1 13254 }
-1 13255 function contentVisibiltyHidden(vNode) {
-1 13256 var _ref9 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, isAncestor = _ref9.isAncestor;
-1 13257 return !!isAncestor && vNode.getComputedStylePropertyValue('content-visibility') === 'hidden';
-1 13258 }
-1 13259 function ariaHidden(vNode) {
-1 13260 return vNode.attr('aria-hidden') === 'true';
-1 13261 }
-1 13262 function opacityHidden(vNode) {
-1 13263 return vNode.getComputedStylePropertyValue('opacity') === '0';
-1 13264 }
-1 13265 function scrollHidden(vNode) {
-1 13266 var scroll = _getScroll(vNode.actualNode);
-1 13267 var elHeight = parseInt(vNode.getComputedStylePropertyValue('height'));
-1 13268 var elWidth = parseInt(vNode.getComputedStylePropertyValue('width'));
-1 13269 return !!scroll && (elHeight === 0 || elWidth === 0);
-1 13270 }
-1 13271 function overflowHidden(vNode) {
-1 13272 var _ref10 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, isAncestor = _ref10.isAncestor;
-1 13273 if (isAncestor) {
-1 13274 return false;
13205 13275 }
13206 -1 var hash = anchor.hash, protocol = anchor.protocol, hostname = anchor.hostname, port = anchor.port, pathname = anchor.pathname;
13207 -1 if (angularRouterLinkRegex.test(hash)) {
-1 13276 var rect = vNode.boundingClientRect;
-1 13277 var nodes = get_overflow_hidden_ancestors_default(vNode);
-1 13278 if (!nodes.length) {
13208 13279 return false;
13209 13280 }
13210 -1 if (href.charAt(0) === '#') {
-1 13281 return nodes.some(function(node) {
-1 13282 var nodeRect = node.boundingClientRect;
-1 13283 if (nodeRect.width < 2 || nodeRect.height < 2) {
-1 13284 return true;
-1 13285 }
-1 13286 return !_rectsOverlap(rect, nodeRect);
-1 13287 });
-1 13288 }
-1 13289 function clipHidden(vNode) {
-1 13290 var matchesClip = vNode.getComputedStylePropertyValue('clip').match(clipRegex);
-1 13291 var matchesClipPath = vNode.getComputedStylePropertyValue('clip-path').match(clipPathRegex);
-1 13292 if (matchesClip && matchesClip.length === 5) {
-1 13293 var position = vNode.getComputedStylePropertyValue('position');
-1 13294 if ([ 'fixed', 'absolute' ].includes(position)) {
-1 13295 return matchesClip[3] - matchesClip[1] <= 0 && matchesClip[2] - matchesClip[4] <= 0;
-1 13296 }
-1 13297 }
-1 13298 if (matchesClipPath) {
-1 13299 var type = matchesClipPath[1];
-1 13300 var value = parseInt(matchesClipPath[2], 10);
-1 13301 switch (type) {
-1 13302 case 'inset':
-1 13303 return value >= 50;
-1 13304
-1 13305 case 'circle':
-1 13306 return value === 0;
-1 13307
-1 13308 default:
-1 13309 }
-1 13310 }
-1 13311 return false;
-1 13312 }
-1 13313 function areaHidden(vNode, visibleFunction) {
-1 13314 var mapEl = closest_default(vNode, 'map');
-1 13315 if (!mapEl) {
13211 13316 return true;
13212 13317 }
13213 -1 if (typeof ((_window$location = window.location) === null || _window$location === void 0 ? void 0 : _window$location.origin) !== 'string' || window.location.origin.indexOf('://') === -1) {
13214 -1 return null;
-1 13318 var mapElName = mapEl.attr('name');
-1 13319 if (!mapElName) {
-1 13320 return true;
13215 13321 }
13216 -1 var currentPageUrl = window.location.origin + window.location.pathname;
13217 -1 var url;
13218 -1 if (!hostname) {
13219 -1 url = window.location.origin;
13220 -1 } else {
13221 -1 url = ''.concat(protocol, '//').concat(hostname).concat(port ? ':'.concat(port) : '');
-1 13322 var mapElRootNode = get_root_node_default(vNode.actualNode);
-1 13323 if (!mapElRootNode || mapElRootNode.nodeType !== 9) {
-1 13324 return true;
13222 13325 }
13223 -1 if (!pathname) {
13224 -1 url += window.location.pathname;
13225 -1 } else {
13226 -1 url += (pathname[0] !== '/' ? '/' : '') + pathname;
-1 13326 var refs = query_selector_all_default(axe._tree, 'img[usemap="#'.concat(escape_selector_default(mapElName), '"]'));
-1 13327 if (!refs || !refs.length) {
-1 13328 return true;
13227 13329 }
13228 -1 return url === currentPageUrl;
-1 13330 return refs.some(function(ref) {
-1 13331 return !visibleFunction(ref);
-1 13332 });
13229 13333 }
13230 -1 function getElementByReference(node, attr) {
13231 -1 var fragment = node.getAttribute(attr);
13232 -1 if (!fragment) {
13233 -1 return null;
-1 13334 function detailsHidden(vNode) {
-1 13335 var _vNode$parent;
-1 13336 if (((_vNode$parent = vNode.parent) === null || _vNode$parent === void 0 ? void 0 : _vNode$parent.props.nodeName) !== 'details') {
-1 13337 return false;
13234 13338 }
13235 -1 if (attr === 'href' && !_isCurrentPageLink(node)) {
13236 -1 return null;
-1 13339 if (vNode.props.nodeName === 'summary') {
-1 13340 var firstSummary = vNode.parent.children.find(function(node) {
-1 13341 return node.props.nodeName === 'summary';
-1 13342 });
-1 13343 if (firstSummary === vNode) {
-1 13344 return false;
-1 13345 }
13237 13346 }
13238 -1 if (fragment.indexOf('#') !== -1) {
13239 -1 fragment = decodeURIComponent(fragment.substr(fragment.indexOf('#') + 1));
-1 13347 return !vNode.parent.hasAttr('open');
-1 13348 }
-1 13349 var hiddenMethods = [ displayHidden, visibilityHidden, contentVisibiltyHidden, detailsHidden ];
-1 13350 function _isHiddenForEveryone(vNode) {
-1 13351 var _ref11 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, skipAncestors = _ref11.skipAncestors, _ref11$isAncestor = _ref11.isAncestor, isAncestor = _ref11$isAncestor === void 0 ? false : _ref11$isAncestor;
-1 13352 vNode = vNode instanceof abstract_virtual_node_default ? vNode : get_node_from_tree_default(vNode);
-1 13353 if (skipAncestors) {
-1 13354 return isHiddenSelf(vNode, isAncestor);
13240 13355 }
13241 -1 var candidate = document.getElementById(fragment);
13242 -1 if (candidate) {
13243 -1 return candidate;
-1 13356 return isHiddenAncestors(vNode, isAncestor);
-1 13357 }
-1 13358 var isHiddenSelf = memoize_default(function isHiddenSelfMemoized(vNode, isAncestor) {
-1 13359 if (nativelyHidden(vNode)) {
-1 13360 return true;
13244 13361 }
13245 -1 candidate = document.getElementsByName(fragment);
13246 -1 if (candidate.length) {
13247 -1 return candidate[0];
-1 13362 if (!vNode.actualNode) {
-1 13363 return false;
-1 13364 }
-1 13365 if (hiddenMethods.some(function(method) {
-1 13366 return method(vNode, {
-1 13367 isAncestor: isAncestor
-1 13368 });
-1 13369 })) {
-1 13370 return true;
-1 13371 }
-1 13372 if (!vNode.actualNode.isConnected) {
-1 13373 return true;
-1 13374 }
-1 13375 return false;
-1 13376 });
-1 13377 var isHiddenAncestors = memoize_default(function isHiddenAncestorsMemoized(vNode, isAncestor) {
-1 13378 if (isHiddenSelf(vNode, isAncestor)) {
-1 13379 return true;
-1 13380 }
-1 13381 if (!vNode.parent) {
-1 13382 return false;
-1 13383 }
-1 13384 return isHiddenAncestors(vNode.parent, true);
-1 13385 });
-1 13386 function getComposedParent(element) {
-1 13387 if (element.assignedSlot) {
-1 13388 return getComposedParent(element.assignedSlot);
-1 13389 } else if (element.parentNode) {
-1 13390 var parentNode = element.parentNode;
-1 13391 if (parentNode.nodeType === 1) {
-1 13392 return parentNode;
-1 13393 } else if (parentNode.host) {
-1 13394 return parentNode.host;
-1 13395 }
13248 13396 }
13249 13397 return null;
13250 13398 }
13251 -1 var get_element_by_reference_default = getElementByReference;
-1 13399 var get_composed_parent_default = getComposedParent;
13252 13400 function getScrollOffset(element) {
13253 13401 if (!element.nodeType && element.document) {
13254 13402 element = element.document;
@@ -13314,6 +13462,14 @@ module.exports = {
13314 13462 return true;
13315 13463 }
13316 13464 function isOffscreen(element) {
-1 13465 var _ref12 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, isAncestor = _ref12.isAncestor;
-1 13466 if (isAncestor) {
-1 13467 return false;
-1 13468 }
-1 13469 element = element instanceof abstract_virtual_node_default ? element.actualNode : element;
-1 13470 if (!element) {
-1 13471 return void 0;
-1 13472 }
13317 13473 var leftBoundary;
13318 13474 var docElement = document.documentElement;
13319 13475 var styl = window.getComputedStyle(element);
@@ -13338,147 +13494,64 @@ module.exports = {
13338 13494 return false;
13339 13495 }
13340 13496 var is_offscreen_default = isOffscreen;
13341 -1 var clipRegex = /rect\s*\(([0-9]+)px,?\s*([0-9]+)px,?\s*([0-9]+)px,?\s*([0-9]+)px\s*\)/;
13342 -1 var clipPathRegex = /(\w+)\((\d+)/;
13343 -1 function isClipped(style) {
13344 -1 var matchesClip = style.getPropertyValue('clip').match(clipRegex);
13345 -1 var matchesClipPath = style.getPropertyValue('clip-path').match(clipPathRegex);
13346 -1 if (matchesClip && matchesClip.length === 5) {
13347 -1 var position = style.getPropertyValue('position');
13348 -1 if ([ 'fixed', 'absolute' ].includes(position)) {
13349 -1 return matchesClip[3] - matchesClip[1] <= 0 && matchesClip[2] - matchesClip[4] <= 0;
13350 -1 }
13351 -1 }
13352 -1 if (matchesClipPath) {
13353 -1 var type = matchesClipPath[1];
13354 -1 var value = parseInt(matchesClipPath[2], 10);
13355 -1 switch (type) {
13356 -1 case 'inset':
13357 -1 return value >= 50;
13358 -1
13359 -1 case 'circle':
13360 -1 return value === 0;
13361 -1
13362 -1 default:
13363 -1 }
13364 -1 }
13365 -1 return false;
-1 13497 var hiddenMethods2 = [ opacityHidden, scrollHidden, overflowHidden, clipHidden, is_offscreen_default ];
-1 13498 function _isVisibleOnScreen(vNode) {
-1 13499 vNode = vNode instanceof abstract_virtual_node_default ? vNode : get_node_from_tree_default(vNode);
-1 13500 return isVisibleOnScreenVirtual(vNode);
13366 13501 }
13367 -1 function isAreaVisible(el, screenReader, recursed) {
13368 -1 var mapEl = find_up_default(el, 'map');
13369 -1 if (!mapEl) {
-1 13502 var isVisibleOnScreenVirtual = memoize_default(function isVisibleOnScreenMemoized(vNode, isAncestor) {
-1 13503 if (vNode.actualNode && vNode.props.nodeName === 'area') {
-1 13504 return !areaHidden(vNode, isVisibleOnScreenVirtual);
-1 13505 }
-1 13506 if (_isHiddenForEveryone(vNode, {
-1 13507 skipAncestors: true,
-1 13508 isAncestor: isAncestor
-1 13509 })) {
13370 13510 return false;
13371 13511 }
13372 -1 var mapElName = mapEl.getAttribute('name');
13373 -1 if (!mapElName) {
13374 -1 return false;
13375 -1 }
13376 -1 var mapElRootNode = get_root_node_default2(el);
13377 -1 if (!mapElRootNode || mapElRootNode.nodeType !== 9) {
13378 -1 return false;
13379 -1 }
13380 -1 var refs = query_selector_all_default(axe._tree, 'img[usemap="#'.concat(escape_selector_default(mapElName), '"]'));
13381 -1 if (!refs || !refs.length) {
-1 13512 if (vNode.actualNode && hiddenMethods2.some(function(method) {
-1 13513 return method(vNode, {
-1 13514 isAncestor: isAncestor
-1 13515 });
-1 13516 })) {
13382 13517 return false;
13383 13518 }
13384 -1 return refs.some(function(_ref8) {
13385 -1 var actualNode = _ref8.actualNode;
13386 -1 return isVisible(actualNode, screenReader, recursed);
13387 -1 });
13388 -1 }
13389 -1 function isVisible(el, screenReader, recursed) {
13390 -1 var _window$Node;
13391 -1 if (!el) {
13392 -1 throw new TypeError('Cannot determine if element is visible for non-DOM nodes');
13393 -1 }
13394 -1 var vNode = el instanceof abstract_virtual_node_default ? el : get_node_from_tree_default(el);
13395 -1 el = vNode ? vNode.actualNode : el;
13396 -1 var cacheName = '_isVisible' + (screenReader ? 'ScreenReader' : '');
13397 -1 var _ref9 = (_window$Node = window.Node) !== null && _window$Node !== void 0 ? _window$Node : {}, DOCUMENT_NODE = _ref9.DOCUMENT_NODE, DOCUMENT_FRAGMENT_NODE = _ref9.DOCUMENT_FRAGMENT_NODE;
13398 -1 var nodeType = vNode ? vNode.props.nodeType : el.nodeType;
13399 -1 var nodeName2 = vNode ? vNode.props.nodeName : el.nodeName.toLowerCase();
13400 -1 if (vNode && typeof vNode[cacheName] !== 'undefined') {
13401 -1 return vNode[cacheName];
13402 -1 }
13403 -1 if (nodeType === DOCUMENT_NODE) {
-1 13519 if (!vNode.parent) {
13404 13520 return true;
13405 13521 }
13406 -1 if ([ 'style', 'script', 'noscript', 'template' ].includes(nodeName2)) {
13407 -1 return false;
13408 -1 }
13409 -1 if (el && nodeType === DOCUMENT_FRAGMENT_NODE) {
13410 -1 el = el.host;
13411 -1 }
13412 -1 if (screenReader) {
13413 -1 var ariaHiddenValue = vNode ? vNode.attr('aria-hidden') : el.getAttribute('aria-hidden');
13414 -1 if (ariaHiddenValue === 'true') {
13415 -1 return false;
13416 -1 }
13417 -1 }
13418 -1 if (!el) {
13419 -1 var parent2 = vNode.parent;
13420 -1 var visible5 = true;
13421 -1 if (parent2) {
13422 -1 visible5 = isVisible(parent2, screenReader, true);
13423 -1 }
13424 -1 if (vNode) {
13425 -1 vNode[cacheName] = visible5;
13426 -1 }
13427 -1 return visible5;
13428 -1 }
13429 -1 var style = window.getComputedStyle(el, null);
13430 -1 if (style === null) {
13431 -1 return false;
13432 -1 }
13433 -1 if (nodeName2 === 'area') {
13434 -1 return isAreaVisible(el, screenReader, recursed);
13435 -1 }
13436 -1 if (style.getPropertyValue('display') === 'none') {
13437 -1 return false;
13438 -1 }
13439 -1 var elHeight = parseInt(style.getPropertyValue('height'));
13440 -1 var elWidth = parseInt(style.getPropertyValue('width'));
13441 -1 var scroll = _getScroll(el);
13442 -1 var scrollableWithZeroHeight = scroll && elHeight === 0;
13443 -1 var scrollableWithZeroWidth = scroll && elWidth === 0;
13444 -1 var posAbsoluteOverflowHiddenAndSmall = style.getPropertyValue('position') === 'absolute' && (elHeight < 2 || elWidth < 2) && style.getPropertyValue('overflow') === 'hidden';
13445 -1 if (!screenReader && (isClipped(style) || style.getPropertyValue('opacity') === '0' || scrollableWithZeroHeight || scrollableWithZeroWidth || posAbsoluteOverflowHiddenAndSmall)) {
13446 -1 return false;
13447 -1 }
13448 -1 if (!recursed && (style.getPropertyValue('visibility') === 'hidden' || !screenReader && is_offscreen_default(el))) {
13449 -1 return false;
13450 -1 }
13451 -1 var parent = el.assignedSlot ? el.assignedSlot : el.parentNode;
13452 -1 var visible4 = false;
13453 -1 if (parent) {
13454 -1 visible4 = isVisible(parent, screenReader, true);
13455 -1 }
13456 -1 if (vNode) {
13457 -1 vNode[cacheName] = visible4;
13458 -1 }
13459 -1 return visible4;
13460 -1 }
13461 -1 var is_visible_default = isVisible;
13462 -1 var gridSize = 200;
13463 -1 function createGrid() {
-1 13522 return isVisibleOnScreenVirtual(vNode.parent, true);
-1 13523 });
-1 13524 function _getBoundingRect(rectA, rectB) {
-1 13525 var top = Math.min(rectA.top, rectB.top);
-1 13526 var right = Math.max(rectA.right, rectB.right);
-1 13527 var bottom = Math.max(rectA.bottom, rectB.bottom);
-1 13528 var left = Math.min(rectA.left, rectB.left);
-1 13529 return new window.DOMRect(left, top, right - left, bottom - top);
-1 13530 }
-1 13531 function _isPointInRect(_ref13, _ref14) {
-1 13532 var x = _ref13.x, y = _ref13.y;
-1 13533 var top = _ref14.top, right = _ref14.right, bottom = _ref14.bottom, left = _ref14.left;
-1 13534 return y >= top && x <= right && y <= bottom && x >= left;
-1 13535 }
-1 13536 function _createGrid() {
13464 13537 var root = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : document.body;
13465 -1 var rootGrid = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {
13466 -1 container: null,
13467 -1 cells: []
13468 -1 };
-1 13538 var rootGrid = arguments.length > 1 ? arguments[1] : undefined;
13469 13539 var parentVNode = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
-1 13540 if (cache_default.get('gridCreated') && !parentVNode) {
-1 13541 return constants_default.gridSize;
-1 13542 }
-1 13543 cache_default.set('gridCreated', true);
13470 13544 if (!parentVNode) {
-1 13545 var _rootGrid;
13471 13546 var vNode = get_node_from_tree_default(document.documentElement);
13472 13547 if (!vNode) {
13473 13548 vNode = new virtual_node_default(document.documentElement);
13474 13549 }
13475 13550 vNode._stackingOrder = [ 0 ];
-1 13551 (_rootGrid = rootGrid) !== null && _rootGrid !== void 0 ? _rootGrid : rootGrid = new Grid();
13476 13552 addNodeToGrid(rootGrid, vNode);
13477 13553 if (_getScroll(vNode.actualNode)) {
13478 -1 var subGrid = {
13479 -1 container: vNode,
13480 -1 cells: []
13481 -1 };
-1 13554 var subGrid = new Grid(vNode);
13482 13555 vNode._subGrid = subGrid;
13483 13556 }
13484 13557 }
@@ -13498,51 +13571,19 @@ module.exports = {
13498 13571 var scrollRegionParent = findScrollRegionParent(_vNode, parentVNode);
13499 13572 var grid = scrollRegionParent ? scrollRegionParent._subGrid : rootGrid;
13500 13573 if (_getScroll(_vNode.actualNode)) {
13501 -1 var _subGrid = {
13502 -1 container: _vNode,
13503 -1 cells: []
13504 -1 };
-1 13574 var _subGrid = new Grid(_vNode);
13505 13575 _vNode._subGrid = _subGrid;
13506 13576 }
13507 13577 var rect = _vNode.boundingClientRect;
13508 -1 if (rect.width !== 0 && rect.height !== 0 && is_visible_default(node)) {
-1 13578 if (rect.width !== 0 && rect.height !== 0 && _isVisibleOnScreen(node)) {
13509 13579 addNodeToGrid(grid, _vNode);
13510 13580 }
13511 13581 if (is_shadow_root_default(node)) {
13512 -1 createGrid(node.shadowRoot, grid, _vNode);
-1 13582 _createGrid(node.shadowRoot, grid, _vNode);
13513 13583 }
13514 13584 node = treeWalker.nextNode();
13515 13585 }
13516 -1 }
13517 -1 function getRectStack(grid, rect) {
13518 -1 var _grid$cells$row$col$f, _grid$cells$row$col;
13519 -1 var recursed = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
13520 -1 var x = rect.left + rect.width / 2;
13521 -1 var y = rect.top + rect.height / 2;
13522 -1 var row = y / gridSize | 0;
13523 -1 var col = x / gridSize | 0;
13524 -1 if (row > grid.cells.length || col > grid.numCols) {
13525 -1 throw new Error('Element midpoint exceeds the grid bounds');
13526 -1 }
13527 -1 var stack = (_grid$cells$row$col$f = (_grid$cells$row$col = grid.cells[row][col]) === null || _grid$cells$row$col === void 0 ? void 0 : _grid$cells$row$col.filter(function(gridCellNode) {
13528 -1 return gridCellNode.clientRects.find(function(clientRect) {
13529 -1 var rectX = clientRect.left;
13530 -1 var rectY = clientRect.top;
13531 -1 return x <= rectX + clientRect.width && x >= rectX && y <= rectY + clientRect.height && y >= rectY;
13532 -1 });
13533 -1 })) !== null && _grid$cells$row$col$f !== void 0 ? _grid$cells$row$col$f : [];
13534 -1 var gridContainer = grid.container;
13535 -1 if (gridContainer) {
13536 -1 stack = getRectStack(gridContainer._grid, gridContainer.boundingClientRect, true).concat(stack);
13537 -1 }
13538 -1 if (!recursed) {
13539 -1 stack = stack.sort(visuallySort).map(function(vNode) {
13540 -1 return vNode.actualNode;
13541 -1 }).concat(document.documentElement).filter(function(node, index, array) {
13542 -1 return array.indexOf(node) === index;
13543 -1 });
13544 -1 }
13545 -1 return stack;
-1 13586 return constants_default.gridSize;
13546 13587 }
13547 13588 function isStackingContext(vNode, parentVNode) {
13548 13589 var position = vNode.getComputedStylePropertyValue('position');
@@ -13610,80 +13651,6 @@ module.exports = {
13610 13651 }
13611 13652 return false;
13612 13653 }
13613 -1 function isFloated(vNode) {
13614 -1 if (!vNode) {
13615 -1 return false;
13616 -1 }
13617 -1 if (vNode._isFloated !== void 0) {
13618 -1 return vNode._isFloated;
13619 -1 }
13620 -1 var floatStyle = vNode.getComputedStylePropertyValue('float');
13621 -1 if (floatStyle !== 'none') {
13622 -1 vNode._isFloated = true;
13623 -1 return true;
13624 -1 }
13625 -1 var floated = isFloated(vNode.parent);
13626 -1 vNode._isFloated = floated;
13627 -1 return floated;
13628 -1 }
13629 -1 function getPositionOrder(vNode) {
13630 -1 if (vNode.getComputedStylePropertyValue('display').indexOf('inline') !== -1) {
13631 -1 return 2;
13632 -1 }
13633 -1 if (isFloated(vNode)) {
13634 -1 return 1;
13635 -1 }
13636 -1 return 0;
13637 -1 }
13638 -1 function visuallySort(a, b) {
13639 -1 var length = Math.max(a._stackingOrder.length, b._stackingOrder.length);
13640 -1 for (var _i5 = 0; _i5 < length; _i5++) {
13641 -1 if (typeof b._stackingOrder[_i5] === 'undefined') {
13642 -1 return -1;
13643 -1 } else if (typeof a._stackingOrder[_i5] === 'undefined') {
13644 -1 return 1;
13645 -1 }
13646 -1 if (b._stackingOrder[_i5] > a._stackingOrder[_i5]) {
13647 -1 return 1;
13648 -1 }
13649 -1 if (b._stackingOrder[_i5] < a._stackingOrder[_i5]) {
13650 -1 return -1;
13651 -1 }
13652 -1 }
13653 -1 var aNode = a.actualNode;
13654 -1 var bNode = b.actualNode;
13655 -1 if (aNode.getRootNode && aNode.getRootNode() !== bNode.getRootNode()) {
13656 -1 var boundaries = [];
13657 -1 while (aNode) {
13658 -1 boundaries.push({
13659 -1 root: aNode.getRootNode(),
13660 -1 node: aNode
13661 -1 });
13662 -1 aNode = aNode.getRootNode().host;
13663 -1 }
13664 -1 while (bNode && !boundaries.find(function(boundary) {
13665 -1 return boundary.root === bNode.getRootNode();
13666 -1 })) {
13667 -1 bNode = bNode.getRootNode().host;
13668 -1 }
13669 -1 aNode = boundaries.find(function(boundary) {
13670 -1 return boundary.root === bNode.getRootNode();
13671 -1 }).node;
13672 -1 if (aNode === bNode) {
13673 -1 return a.actualNode.getRootNode() !== aNode.getRootNode() ? -1 : 1;
13674 -1 }
13675 -1 }
13676 -1 var _window$Node2 = window.Node, DOCUMENT_POSITION_FOLLOWING = _window$Node2.DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_CONTAINS = _window$Node2.DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_CONTAINED_BY = _window$Node2.DOCUMENT_POSITION_CONTAINED_BY;
13677 -1 var docPosition = aNode.compareDocumentPosition(bNode);
13678 -1 var DOMOrder = docPosition & DOCUMENT_POSITION_FOLLOWING ? 1 : -1;
13679 -1 var isDescendant = docPosition & DOCUMENT_POSITION_CONTAINS || docPosition & DOCUMENT_POSITION_CONTAINED_BY;
13680 -1 var aPosition = getPositionOrder(a);
13681 -1 var bPosition = getPositionOrder(b);
13682 -1 if (aPosition === bPosition || isDescendant) {
13683 -1 return DOMOrder;
13684 -1 }
13685 -1 return bPosition - aPosition;
13686 -1 }
13687 13654 function getStackingOrder(vNode, parentVNode) {
13688 13655 var stackingOrder = parentVNode._stackingOrder.slice();
13689 13656 var zIndex = vNode.getComputedStylePropertyValue('z-index');
@@ -13730,540 +13697,723 @@ module.exports = {
13730 13697 return scrollRegionParent;
13731 13698 }
13732 13699 function addNodeToGrid(grid, vNode) {
13733 -1 vNode._grid = grid;
13734 13700 vNode.clientRects.forEach(function(rect) {
13735 -1 var _grid$numCols;
13736 -1 var x = rect.left;
13737 -1 var y = rect.top;
13738 -1 var startRow = y / gridSize | 0;
13739 -1 var startCol = x / gridSize | 0;
13740 -1 var endRow = (y + rect.height) / gridSize | 0;
13741 -1 var endCol = (x + rect.width) / gridSize | 0;
13742 -1 grid.numCols = Math.max((_grid$numCols = grid.numCols) !== null && _grid$numCols !== void 0 ? _grid$numCols : 0, endCol);
13743 -1 for (var row = startRow; row <= endRow; row++) {
13744 -1 grid.cells[row] = grid.cells[row] || [];
13745 -1 for (var col = startCol; col <= endCol; col++) {
13746 -1 grid.cells[row][col] = grid.cells[row][col] || [];
13747 -1 if (!grid.cells[row][col].includes(vNode)) {
13748 -1 grid.cells[row][col].push(vNode);
13749 -1 }
-1 13701 var _vNode$_grid;
-1 13702 (_vNode$_grid = vNode._grid) !== null && _vNode$_grid !== void 0 ? _vNode$_grid : vNode._grid = grid;
-1 13703 var gridRect = grid.getGridPositionOfRect(rect);
-1 13704 grid.loopGridPosition(gridRect, function(gridCell) {
-1 13705 if (!gridCell.includes(vNode)) {
-1 13706 gridCell.push(vNode);
13750 13707 }
13751 -1 }
-1 13708 });
13752 13709 });
13753 13710 }
13754 -1 function getElementStack(node) {
13755 -1 if (!cache_default.get('gridCreated')) {
13756 -1 createGrid();
13757 -1 cache_default.set('gridCreated', true);
-1 13711 var Grid = function() {
-1 13712 function Grid() {
-1 13713 var container = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
-1 13714 _classCallCheck(this, Grid);
-1 13715 this.container = container;
-1 13716 this.cells = [];
13758 13717 }
13759 -1 var vNode = get_node_from_tree_default(node);
13760 -1 var grid = vNode._grid;
13761 -1 if (!grid) {
-1 13718 _createClass(Grid, [ {
-1 13719 key: 'toGridIndex',
-1 13720 value: function toGridIndex(num) {
-1 13721 return Math.floor(num / constants_default.gridSize);
-1 13722 }
-1 13723 }, {
-1 13724 key: 'getCellFromPoint',
-1 13725 value: function getCellFromPoint(_ref15) {
-1 13726 var _this$cells, _row;
-1 13727 var x = _ref15.x, y = _ref15.y;
-1 13728 assert_default(this.boundaries, 'Grid does not have cells added');
-1 13729 var rowIndex = this.toGridIndex(y);
-1 13730 var colIndex = this.toGridIndex(x);
-1 13731 assert_default(_isPointInRect({
-1 13732 y: rowIndex,
-1 13733 x: colIndex
-1 13734 }, this.boundaries), 'Element midpoint exceeds the grid bounds');
-1 13735 var row = (_this$cells = this.cells[rowIndex - this.cells._negativeIndex]) !== null && _this$cells !== void 0 ? _this$cells : [];
-1 13736 return (_row = row[colIndex - row._negativeIndex]) !== null && _row !== void 0 ? _row : [];
-1 13737 }
-1 13738 }, {
-1 13739 key: 'loopGridPosition',
-1 13740 value: function loopGridPosition(gridPosition, callback) {
-1 13741 var _gridPosition = gridPosition, left = _gridPosition.left, right = _gridPosition.right, top = _gridPosition.top, bottom = _gridPosition.bottom;
-1 13742 if (this.boundaries) {
-1 13743 gridPosition = _getBoundingRect(this.boundaries, gridPosition);
-1 13744 }
-1 13745 this.boundaries = gridPosition;
-1 13746 loopNegativeIndexMatrix(this.cells, top, bottom, function(gridRow, row) {
-1 13747 loopNegativeIndexMatrix(gridRow, left, right, function(gridCell, col) {
-1 13748 callback(gridCell, {
-1 13749 row: row,
-1 13750 col: col
-1 13751 });
-1 13752 });
-1 13753 });
-1 13754 }
-1 13755 }, {
-1 13756 key: 'getGridPositionOfRect',
-1 13757 value: function getGridPositionOfRect(_ref16) {
-1 13758 var top = _ref16.top, right = _ref16.right, bottom = _ref16.bottom, left = _ref16.left;
-1 13759 var margin = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
-1 13760 top = this.toGridIndex(top - margin);
-1 13761 right = this.toGridIndex(right + margin - 1);
-1 13762 bottom = this.toGridIndex(bottom + margin - 1);
-1 13763 left = this.toGridIndex(left - margin);
-1 13764 return new window.DOMRect(left, top, right - left, bottom - top);
-1 13765 }
-1 13766 } ]);
-1 13767 return Grid;
-1 13768 }();
-1 13769 function loopNegativeIndexMatrix(matrix, start, end, callback) {
-1 13770 var _matrix$_negativeInde;
-1 13771 (_matrix$_negativeInde = matrix._negativeIndex) !== null && _matrix$_negativeInde !== void 0 ? _matrix$_negativeInde : matrix._negativeIndex = 0;
-1 13772 if (start < matrix._negativeIndex) {
-1 13773 for (var _i5 = 0; _i5 < matrix._negativeIndex - start; _i5++) {
-1 13774 matrix.splice(0, 0, []);
-1 13775 }
-1 13776 matrix._negativeIndex = start;
-1 13777 }
-1 13778 var startOffset = start - matrix._negativeIndex;
-1 13779 var endOffset = end - matrix._negativeIndex;
-1 13780 for (var index = startOffset; index <= endOffset; index++) {
-1 13781 var _index, _matrix$_index;
-1 13782 (_matrix$_index = matrix[_index = index]) !== null && _matrix$_index !== void 0 ? _matrix$_index : matrix[_index] = [];
-1 13783 callback(matrix[index], index + matrix._negativeIndex);
-1 13784 }
-1 13785 }
-1 13786 function _findNearbyElms(vNode) {
-1 13787 var _vNode$_grid2, _vNode$_grid2$cells;
-1 13788 var margin = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
-1 13789 _createGrid();
-1 13790 if (!((_vNode$_grid2 = vNode._grid) !== null && _vNode$_grid2 !== void 0 && (_vNode$_grid2$cells = _vNode$_grid2.cells) !== null && _vNode$_grid2$cells !== void 0 && _vNode$_grid2$cells.length)) {
13762 13791 return [];
13763 13792 }
13764 -1 return getRectStack(grid, vNode.boundingClientRect);
13765 -1 }
13766 -1 var get_element_stack_default = getElementStack;
13767 -1 function getTabbableElements(virtualNode) {
13768 -1 var nodeAndDescendents = query_selector_all_default(virtualNode, '*');
13769 -1 var tabbableElements = nodeAndDescendents.filter(function(vNode) {
13770 -1 var isFocusable2 = vNode.isFocusable;
13771 -1 var tabIndex = vNode.actualNode.getAttribute('tabindex');
13772 -1 tabIndex = tabIndex && !isNaN(parseInt(tabIndex, 10)) ? parseInt(tabIndex) : null;
13773 -1 return tabIndex ? isFocusable2 && tabIndex >= 0 : isFocusable2;
13774 -1 });
13775 -1 return tabbableElements;
13776 -1 }
13777 -1 var get_tabbable_elements_default = getTabbableElements;
13778 -1 function sanitize(str) {
13779 -1 if (!str) {
13780 -1 return '';
13781 -1 }
13782 -1 return str.replace(/\r\n/g, '\n').replace(/\u00A0/g, ' ').replace(/[\s]{2,}/g, ' ').trim();
13783 -1 }
13784 -1 var sanitize_default = sanitize;
13785 -1 function getTextElementStack(node) {
13786 -1 if (!cache_default.get('gridCreated')) {
13787 -1 createGrid();
13788 -1 cache_default.set('gridCreated', true);
13789 -1 }
13790 -1 var vNode = get_node_from_tree_default(node);
-1 13793 var rect = vNode.boundingClientRect;
13791 13794 var grid = vNode._grid;
13792 -1 if (!grid) {
13793 -1 return [];
13794 -1 }
13795 -1 var nodeRect = vNode.boundingClientRect;
13796 -1 var clientRects = [];
13797 -1 Array.from(node.childNodes).forEach(function(elm) {
13798 -1 if (elm.nodeType === 3 && sanitize_default(elm.textContent) !== '') {
13799 -1 var range = document.createRange();
13800 -1 range.selectNodeContents(elm);
13801 -1 var rects = range.getClientRects();
13802 -1 var outsideRectBounds = Array.from(rects).some(function(rect) {
13803 -1 var horizontalMidpoint = rect.left + rect.width / 2;
13804 -1 var verticalMidpoint = rect.top + rect.height / 2;
13805 -1 return horizontalMidpoint < nodeRect.left || horizontalMidpoint > nodeRect.right || verticalMidpoint < nodeRect.top || verticalMidpoint > nodeRect.bottom;
13806 -1 });
13807 -1 if (outsideRectBounds) {
13808 -1 return;
13809 -1 }
13810 -1 for (var _i6 = 0; _i6 < rects.length; _i6++) {
13811 -1 var rect = rects[_i6];
13812 -1 if (rect.width >= 1 && rect.height >= 1) {
13813 -1 clientRects.push(rect);
-1 13795 var selfIsFixed = hasFixedPosition(vNode);
-1 13796 var gridPosition = grid.getGridPositionOfRect(rect, margin);
-1 13797 var neighbors = [];
-1 13798 grid.loopGridPosition(gridPosition, function(vNeighbors) {
-1 13799 var _iterator2 = _createForOfIteratorHelper(vNeighbors), _step2;
-1 13800 try {
-1 13801 for (_iterator2.s(); !(_step2 = _iterator2.n()).done; ) {
-1 13802 var vNeighbor = _step2.value;
-1 13803 if (vNeighbor && vNeighbor !== vNode && !neighbors.includes(vNeighbor) && selfIsFixed === hasFixedPosition(vNeighbor)) {
-1 13804 neighbors.push(vNeighbor);
13814 13805 }
13815 13806 }
-1 13807 } catch (err) {
-1 13808 _iterator2.e(err);
-1 13809 } finally {
-1 13810 _iterator2.f();
13816 13811 }
13817 13812 });
13818 -1 if (!clientRects.length) {
13819 -1 return [ get_element_stack_default(node) ];
13820 -1 }
13821 -1 return clientRects.map(function(rect) {
13822 -1 return getRectStack(grid, rect);
13823 -1 });
-1 13813 return neighbors;
13824 13814 }
13825 -1 var get_text_element_stack_default = getTextElementStack;
13826 -1 var visualRoles = [ 'checkbox', 'img', 'radio', 'range', 'slider', 'spinbutton', 'textbox' ];
13827 -1 function isVisualContent(element) {
13828 -1 var role = element.getAttribute('role');
13829 -1 if (role) {
13830 -1 return visualRoles.indexOf(role) !== -1;
-1 13815 var hasFixedPosition = memoize_default(function(vNode) {
-1 13816 if (!vNode) {
-1 13817 return false;
13831 13818 }
13832 -1 switch (element.nodeName.toUpperCase()) {
13833 -1 case 'IMG':
13834 -1 case 'IFRAME':
13835 -1 case 'OBJECT':
13836 -1 case 'VIDEO':
13837 -1 case 'AUDIO':
13838 -1 case 'CANVAS':
13839 -1 case 'SVG':
13840 -1 case 'MATH':
13841 -1 case 'BUTTON':
13842 -1 case 'SELECT':
13843 -1 case 'TEXTAREA':
13844 -1 case 'KEYGEN':
13845 -1 case 'PROGRESS':
13846 -1 case 'METER':
-1 13819 if (vNode.getComputedStylePropertyValue('position') === 'fixed') {
13847 13820 return true;
13848 -1
13849 -1 case 'INPUT':
13850 -1 return element.type !== 'hidden';
13851 -1
13852 -1 default:
-1 13821 }
-1 13822 return hasFixedPosition(vNode.parent);
-1 13823 });
-1 13824 var angularSkipLinkRegex = /^\/\#/;
-1 13825 var angularRouterLinkRegex = /^#[!/]/;
-1 13826 function _isCurrentPageLink(anchor) {
-1 13827 var _window$location;
-1 13828 var href = anchor.getAttribute('href');
-1 13829 if (!href || href === '#') {
13853 13830 return false;
13854 13831 }
13855 -1 }
13856 -1 var is_visual_content_default = isVisualContent;
13857 -1 function idrefs(node, attr) {
13858 -1 node = node.actualNode || node;
13859 -1 try {
13860 -1 var doc = get_root_node_default2(node);
13861 -1 var result = [];
13862 -1 var attrValue = node.getAttribute(attr);
13863 -1 if (attrValue) {
13864 -1 attrValue = token_list_default(attrValue);
13865 -1 for (var index = 0; index < attrValue.length; index++) {
13866 -1 result.push(doc.getElementById(attrValue[index]));
13867 -1 }
13868 -1 }
13869 -1 return result;
13870 -1 } catch (e) {
13871 -1 throw new TypeError('Cannot resolve id references for non-DOM nodes');
-1 13832 if (angularSkipLinkRegex.test(href)) {
-1 13833 return true;
13872 13834 }
13873 -1 }
13874 -1 var idrefs_default = idrefs;
13875 -1 function visibleVirtual(element, screenReader, noRecursing) {
13876 -1 var vNode = element instanceof abstract_virtual_node_default ? element : get_node_from_tree_default(element);
13877 -1 var visible4 = !element.actualNode || element.actualNode && is_visible_default(element.actualNode, screenReader);
13878 -1 var result = vNode.children.map(function(child) {
13879 -1 var _child$props = child.props, nodeType = _child$props.nodeType, nodeValue = _child$props.nodeValue;
13880 -1 if (nodeType === 3) {
13881 -1 if (nodeValue && visible4) {
13882 -1 return nodeValue;
13883 -1 }
13884 -1 } else if (!noRecursing) {
13885 -1 return visibleVirtual(child, screenReader);
13886 -1 }
13887 -1 }).join('');
13888 -1 return sanitize_default(result);
13889 -1 }
13890 -1 var visible_virtual_default = visibleVirtual;
13891 -1 function labelVirtual(virtualNode) {
13892 -1 var ref, candidate;
13893 -1 if (virtualNode.attr('aria-labelledby')) {
13894 -1 ref = idrefs_default(virtualNode.actualNode, 'aria-labelledby');
13895 -1 candidate = ref.map(function(thing) {
13896 -1 var vNode = get_node_from_tree_default(thing);
13897 -1 return vNode ? visible_virtual_default(vNode) : '';
13898 -1 }).join(' ').trim();
13899 -1 if (candidate) {
13900 -1 return candidate;
13901 -1 }
-1 13835 var hash = anchor.hash, protocol = anchor.protocol, hostname = anchor.hostname, port = anchor.port, pathname = anchor.pathname;
-1 13836 if (angularRouterLinkRegex.test(hash)) {
-1 13837 return false;
13902 13838 }
13903 -1 candidate = virtualNode.attr('aria-label');
13904 -1 if (candidate) {
13905 -1 candidate = sanitize_default(candidate);
13906 -1 if (candidate) {
13907 -1 return candidate;
13908 -1 }
-1 13839 if (href.charAt(0) === '#') {
-1 13840 return true;
13909 13841 }
13910 -1 return null;
13911 -1 }
13912 -1 var label_virtual_default = labelVirtual;
13913 -1 var hiddenTextElms = [ 'HEAD', 'TITLE', 'TEMPLATE', 'SCRIPT', 'STYLE', 'IFRAME', 'OBJECT', 'VIDEO', 'AUDIO', 'NOSCRIPT' ];
13914 -1 function hasChildTextNodes(elm) {
13915 -1 if (!hiddenTextElms.includes(elm.actualNode.nodeName.toUpperCase())) {
13916 -1 return elm.children.some(function(_ref10) {
13917 -1 var actualNode = _ref10.actualNode;
13918 -1 return actualNode.nodeType === 3 && actualNode.nodeValue.trim();
13919 -1 });
-1 13842 if (typeof ((_window$location = window.location) === null || _window$location === void 0 ? void 0 : _window$location.origin) !== 'string' || window.location.origin.indexOf('://') === -1) {
-1 13843 return null;
13920 13844 }
13921 -1 }
13922 -1 function hasContentVirtual(elm, noRecursion, ignoreAria) {
13923 -1 return hasChildTextNodes(elm) || is_visual_content_default(elm.actualNode) || !ignoreAria && !!label_virtual_default(elm) || !noRecursion && elm.children.some(function(child) {
13924 -1 return child.actualNode.nodeType === 1 && hasContentVirtual(child);
13925 -1 });
13926 -1 }
13927 -1 var has_content_virtual_default = hasContentVirtual;
13928 -1 function hasContent(elm, noRecursion, ignoreAria) {
13929 -1 elm = get_node_from_tree_default(elm);
13930 -1 return has_content_virtual_default(elm, noRecursion, ignoreAria);
13931 -1 }
13932 -1 var has_content_default = hasContent;
13933 -1 function isHiddenWithCSS(el, descendentVisibilityValue) {
13934 -1 var vNode = get_node_from_tree_default(el);
13935 -1 if (!vNode) {
13936 -1 return _isHiddenWithCSS(el, descendentVisibilityValue);
-1 13845 var currentPageUrl = window.location.origin + window.location.pathname;
-1 13846 var url;
-1 13847 if (!hostname) {
-1 13848 url = window.location.origin;
-1 13849 } else {
-1 13850 url = ''.concat(protocol, '//').concat(hostname).concat(port ? ':'.concat(port) : '');
13937 13851 }
13938 -1 if (vNode._isHiddenWithCSS === void 0) {
13939 -1 vNode._isHiddenWithCSS = _isHiddenWithCSS(el, descendentVisibilityValue);
-1 13852 if (!pathname) {
-1 13853 url += window.location.pathname;
-1 13854 } else {
-1 13855 url += (pathname[0] !== '/' ? '/' : '') + pathname;
13940 13856 }
13941 -1 return vNode._isHiddenWithCSS;
-1 13857 return url === currentPageUrl;
13942 13858 }
13943 -1 function _isHiddenWithCSS(el, descendentVisibilityValue) {
13944 -1 if (el.nodeType === 9) {
13945 -1 return false;
13946 -1 }
13947 -1 if (el.nodeType === 11) {
13948 -1 el = el.host;
13949 -1 }
13950 -1 if ([ 'STYLE', 'SCRIPT' ].includes(el.nodeName.toUpperCase())) {
13951 -1 return false;
13952 -1 }
13953 -1 var style = window.getComputedStyle(el, null);
13954 -1 if (!style) {
13955 -1 throw new Error('Style does not exist for the given element.');
-1 13859 function getElementByReference(node, attr) {
-1 13860 var fragment = node.getAttribute(attr);
-1 13861 if (!fragment) {
-1 13862 return null;
13956 13863 }
13957 -1 var displayValue = style.getPropertyValue('display');
13958 -1 if (displayValue === 'none') {
13959 -1 return true;
-1 13864 if (attr === 'href' && !_isCurrentPageLink(node)) {
-1 13865 return null;
13960 13866 }
13961 -1 var HIDDEN_VISIBILITY_VALUES = [ 'hidden', 'collapse' ];
13962 -1 var visibilityValue = style.getPropertyValue('visibility');
13963 -1 if (HIDDEN_VISIBILITY_VALUES.includes(visibilityValue) && !descendentVisibilityValue) {
13964 -1 return true;
-1 13867 if (fragment.indexOf('#') !== -1) {
-1 13868 fragment = decodeURIComponent(fragment.substr(fragment.indexOf('#') + 1));
13965 13869 }
13966 -1 if (HIDDEN_VISIBILITY_VALUES.includes(visibilityValue) && descendentVisibilityValue && HIDDEN_VISIBILITY_VALUES.includes(descendentVisibilityValue)) {
13967 -1 return true;
-1 13870 var candidate = document.getElementById(fragment);
-1 13871 if (candidate) {
-1 13872 return candidate;
13968 13873 }
13969 -1 var parent = get_composed_parent_default(el);
13970 -1 if (parent && !HIDDEN_VISIBILITY_VALUES.includes(visibilityValue)) {
13971 -1 return isHiddenWithCSS(parent, visibilityValue);
-1 13874 candidate = document.getElementsByName(fragment);
-1 13875 if (candidate.length) {
-1 13876 return candidate[0];
13972 13877 }
13973 -1 return false;
-1 13878 return null;
13974 13879 }
13975 -1 var is_hidden_with_css_default = isHiddenWithCSS;
13976 -1 function focusDisabled(el) {
13977 -1 var vNode = el instanceof abstract_virtual_node_default ? el : get_node_from_tree_default(el);
13978 -1 if (vNode.hasAttr('disabled')) {
13979 -1 return true;
13980 -1 }
13981 -1 var parentNode = vNode.parent;
13982 -1 var ancestors = [];
13983 -1 var fieldsetDisabled = false;
13984 -1 while (parentNode && parentNode.shadowId === vNode.shadowId && !fieldsetDisabled) {
13985 -1 ancestors.push(parentNode);
13986 -1 if (parentNode.props.nodeName === 'legend') {
13987 -1 break;
-1 13880 var get_element_by_reference_default = getElementByReference;
-1 13881 function _visuallySort(a, b) {
-1 13882 _createGrid();
-1 13883 var length = Math.max(a._stackingOrder.length, b._stackingOrder.length);
-1 13884 for (var _i6 = 0; _i6 < length; _i6++) {
-1 13885 if (typeof b._stackingOrder[_i6] === 'undefined') {
-1 13886 return -1;
-1 13887 } else if (typeof a._stackingOrder[_i6] === 'undefined') {
-1 13888 return 1;
13988 13889 }
13989 -1 if (parentNode._inDisabledFieldset !== void 0) {
13990 -1 fieldsetDisabled = parentNode._inDisabledFieldset;
13991 -1 break;
-1 13890 if (b._stackingOrder[_i6] > a._stackingOrder[_i6]) {
-1 13891 return 1;
13992 13892 }
13993 -1 if (parentNode.props.nodeName === 'fieldset' && parentNode.hasAttr('disabled')) {
13994 -1 fieldsetDisabled = true;
-1 13893 if (b._stackingOrder[_i6] < a._stackingOrder[_i6]) {
-1 13894 return -1;
13995 13895 }
13996 -1 parentNode = parentNode.parent;
13997 13896 }
13998 -1 ancestors.forEach(function(ancestor) {
13999 -1 return ancestor._inDisabledFieldset = fieldsetDisabled;
14000 -1 });
14001 -1 if (fieldsetDisabled) {
14002 -1 return true;
14003 -1 }
14004 -1 if (vNode.props.nodeName !== 'area') {
14005 -1 if (!vNode.actualNode) {
14006 -1 return false;
-1 13897 var aNode = a.actualNode;
-1 13898 var bNode = b.actualNode;
-1 13899 if (aNode.getRootNode && aNode.getRootNode() !== bNode.getRootNode()) {
-1 13900 var boundaries = [];
-1 13901 while (aNode) {
-1 13902 boundaries.push({
-1 13903 root: aNode.getRootNode(),
-1 13904 node: aNode
-1 13905 });
-1 13906 aNode = aNode.getRootNode().host;
-1 13907 }
-1 13908 while (bNode && !boundaries.find(function(boundary) {
-1 13909 return boundary.root === bNode.getRootNode();
-1 13910 })) {
-1 13911 bNode = bNode.getRootNode().host;
-1 13912 }
-1 13913 aNode = boundaries.find(function(boundary) {
-1 13914 return boundary.root === bNode.getRootNode();
-1 13915 }).node;
-1 13916 if (aNode === bNode) {
-1 13917 return a.actualNode.getRootNode() !== aNode.getRootNode() ? -1 : 1;
14007 13918 }
14008 -1 return is_hidden_with_css_default(vNode.actualNode);
14009 13919 }
14010 -1 return false;
-1 13920 var _window$Node = window.Node, DOCUMENT_POSITION_FOLLOWING = _window$Node.DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_CONTAINS = _window$Node.DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_CONTAINED_BY = _window$Node.DOCUMENT_POSITION_CONTAINED_BY;
-1 13921 var docPosition = aNode.compareDocumentPosition(bNode);
-1 13922 var DOMOrder = docPosition & DOCUMENT_POSITION_FOLLOWING ? 1 : -1;
-1 13923 var isDescendant = docPosition & DOCUMENT_POSITION_CONTAINS || docPosition & DOCUMENT_POSITION_CONTAINED_BY;
-1 13924 var aPosition = getPositionOrder(a);
-1 13925 var bPosition = getPositionOrder(b);
-1 13926 if (aPosition === bPosition || isDescendant) {
-1 13927 return DOMOrder;
-1 13928 }
-1 13929 return bPosition - aPosition;
14011 13930 }
14012 -1 var focus_disabled_default = focusDisabled;
14013 -1 function isNativelyFocusable(el) {
14014 -1 var vNode = el instanceof abstract_virtual_node_default ? el : get_node_from_tree_default(el);
14015 -1 if (!vNode || focus_disabled_default(vNode)) {
14016 -1 return false;
-1 13931 function getPositionOrder(vNode) {
-1 13932 if (vNode.getComputedStylePropertyValue('display').indexOf('inline') !== -1) {
-1 13933 return 2;
14017 13934 }
14018 -1 switch (vNode.props.nodeName) {
14019 -1 case 'a':
14020 -1 case 'area':
14021 -1 if (vNode.hasAttr('href')) {
14022 -1 return true;
14023 -1 }
14024 -1 break;
14025 -1
14026 -1 case 'input':
14027 -1 return vNode.props.type !== 'hidden';
14028 -1
14029 -1 case 'textarea':
14030 -1 case 'select':
14031 -1 case 'summary':
14032 -1 case 'button':
14033 -1 return true;
14034 -1
14035 -1 case 'details':
14036 -1 return !query_selector_all_default(vNode, 'summary').length;
-1 13935 if (isFloated(vNode)) {
-1 13936 return 1;
14037 13937 }
14038 -1 return false;
-1 13938 return 0;
14039 13939 }
14040 -1 var is_natively_focusable_default = isNativelyFocusable;
14041 -1 function isFocusable(el) {
14042 -1 var vNode = el instanceof abstract_virtual_node_default ? el : get_node_from_tree_default(el);
14043 -1 if (vNode.props.nodeType !== 1) {
-1 13940 function isFloated(vNode) {
-1 13941 if (!vNode) {
14044 13942 return false;
14045 13943 }
14046 -1 if (focus_disabled_default(vNode)) {
14047 -1 return false;
14048 -1 } else if (is_natively_focusable_default(vNode)) {
14049 -1 return true;
-1 13944 if (vNode._isFloated !== void 0) {
-1 13945 return vNode._isFloated;
14050 13946 }
14051 -1 var tabindex = vNode.attr('tabindex');
14052 -1 if (tabindex && !isNaN(parseInt(tabindex, 10))) {
-1 13947 var floatStyle = vNode.getComputedStylePropertyValue('float');
-1 13948 if (floatStyle !== 'none') {
-1 13949 vNode._isFloated = true;
14053 13950 return true;
14054 13951 }
14055 -1 return false;
14056 -1 }
14057 -1 var is_focusable_default = isFocusable;
14058 -1 function insertedIntoFocusOrder(el) {
14059 -1 var tabIndex = parseInt(el.getAttribute('tabindex'), 10);
14060 -1 return tabIndex > -1 && is_focusable_default(el) && !is_natively_focusable_default(el);
-1 13952 var floated = isFloated(vNode.parent);
-1 13953 vNode._isFloated = floated;
-1 13954 return floated;
14061 13955 }
14062 -1 var inserted_into_focus_order_default = insertedIntoFocusOrder;
14063 -1 function isHTML5(doc) {
14064 -1 var node = doc.doctype;
14065 -1 if (node === null) {
14066 -1 return false;
-1 13956 var math_exports = {};
-1 13957 __export(math_exports, {
-1 13958 getBoundingRect: function getBoundingRect() {
-1 13959 return _getBoundingRect;
-1 13960 },
-1 13961 getIntersectionRect: function getIntersectionRect() {
-1 13962 return _getIntersectionRect;
-1 13963 },
-1 13964 getOffset: function getOffset() {
-1 13965 return _getOffset;
-1 13966 },
-1 13967 getRectCenter: function getRectCenter() {
-1 13968 return _getRectCenter;
-1 13969 },
-1 13970 hasVisualOverlap: function hasVisualOverlap() {
-1 13971 return _hasVisualOverlap;
-1 13972 },
-1 13973 isPointInRect: function isPointInRect() {
-1 13974 return _isPointInRect;
-1 13975 },
-1 13976 rectsOverlap: function rectsOverlap() {
-1 13977 return _rectsOverlap;
-1 13978 },
-1 13979 splitRects: function splitRects() {
-1 13980 return _splitRects;
14067 13981 }
14068 -1 return node.name === 'html' && !node.publicId && !node.systemId;
14069 -1 }
14070 -1 var is_html5_default = isHTML5;
14071 -1 function walkDomNode(node, functor) {
14072 -1 if (functor(node.actualNode) !== false) {
14073 -1 node.children.forEach(function(child) {
14074 -1 return walkDomNode(child, functor);
14075 -1 });
-1 13982 });
-1 13983 function _getIntersectionRect(rect1, rect2) {
-1 13984 var leftX = Math.max(rect1.left, rect2.left);
-1 13985 var rightX = Math.min(rect1.right, rect2.right);
-1 13986 var topY = Math.max(rect1.top, rect2.top);
-1 13987 var bottomY = Math.min(rect1.bottom, rect2.bottom);
-1 13988 if (leftX >= rightX || topY >= bottomY) {
-1 13989 return null;
14076 13990 }
-1 13991 return new window.DOMRect(leftX, topY, rightX - leftX, bottomY - topY);
-1 13992 }
-1 13993 function _getOffset(vNodeA, vNodeB) {
-1 13994 var rectA = vNodeA.boundingClientRect;
-1 13995 var rectB = vNodeB.boundingClientRect;
-1 13996 var pointA = getFarthestPoint(rectA, rectB);
-1 13997 var pointB = getClosestPoint(pointA, rectA, rectB);
-1 13998 return pointDistance(pointA, pointB);
-1 13999 }
-1 14000 function getFarthestPoint(rectA, rectB) {
-1 14001 var dimensionProps = [ [ 'x', 'left', 'right', 'width' ], [ 'y', 'top', 'bottom', 'height' ] ];
-1 14002 var farthestPoint = {};
-1 14003 dimensionProps.forEach(function(_ref17) {
-1 14004 var _ref18 = _slicedToArray(_ref17, 4), axis = _ref18[0], start = _ref18[1], end = _ref18[2], diameter = _ref18[3];
-1 14005 if (rectB[start] < rectA[start] && rectB[end] > rectA[end]) {
-1 14006 farthestPoint[axis] = rectA[start] + rectA[diameter] / 2;
-1 14007 return;
-1 14008 }
-1 14009 var centerB = rectB[start] + rectB[diameter] / 2;
-1 14010 var startDistance = Math.abs(centerB - rectA[start]);
-1 14011 var endDistance = Math.abs(centerB - rectA[end]);
-1 14012 if (startDistance >= endDistance) {
-1 14013 farthestPoint[axis] = rectA[start];
-1 14014 } else {
-1 14015 farthestPoint[axis] = rectA[end];
-1 14016 }
-1 14017 });
-1 14018 return farthestPoint;
14077 14019 }
14078 -1 var blockLike = [ 'block', 'list-item', 'table', 'flex', 'grid', 'inline-block' ];
14079 -1 function isBlock(elm) {
14080 -1 var display = window.getComputedStyle(elm).getPropertyValue('display');
14081 -1 return blockLike.includes(display) || display.substr(0, 6) === 'table-';
-1 14020 function getClosestPoint(_ref19, ownRect, adjacentRect) {
-1 14021 var x = _ref19.x, y = _ref19.y;
-1 14022 if (pointInRect({
-1 14023 x: x,
-1 14024 y: y
-1 14025 }, adjacentRect)) {
-1 14026 var closestPoint = getCornerInAdjacentRect({
-1 14027 x: x,
-1 14028 y: y
-1 14029 }, ownRect, adjacentRect);
-1 14030 if (closestPoint !== null) {
-1 14031 return closestPoint;
-1 14032 }
-1 14033 adjacentRect = ownRect;
-1 14034 }
-1 14035 var _adjacentRect = adjacentRect, top = _adjacentRect.top, right = _adjacentRect.right, bottom = _adjacentRect.bottom, left = _adjacentRect.left;
-1 14036 var xAligned = x >= left && x <= right;
-1 14037 var yAligned = y >= top && y <= bottom;
-1 14038 var closestX = Math.abs(left - x) < Math.abs(right - x) ? left : right;
-1 14039 var closestY = Math.abs(top - y) < Math.abs(bottom - y) ? top : bottom;
-1 14040 if (!xAligned && yAligned) {
-1 14041 return {
-1 14042 x: closestX,
-1 14043 y: y
-1 14044 };
-1 14045 } else if (xAligned && !yAligned) {
-1 14046 return {
-1 14047 x: x,
-1 14048 y: closestY
-1 14049 };
-1 14050 } else if (!xAligned && !yAligned) {
-1 14051 return {
-1 14052 x: closestX,
-1 14053 y: closestY
-1 14054 };
-1 14055 }
-1 14056 if (Math.abs(x - closestX) < Math.abs(y - closestY)) {
-1 14057 return {
-1 14058 x: closestX,
-1 14059 y: y
-1 14060 };
-1 14061 } else {
-1 14062 return {
-1 14063 x: x,
-1 14064 y: closestY
-1 14065 };
-1 14066 }
14082 14067 }
14083 -1 function getBlockParent(node) {
14084 -1 var parentBlock = get_composed_parent_default(node);
14085 -1 while (parentBlock && !isBlock(parentBlock)) {
14086 -1 parentBlock = get_composed_parent_default(parentBlock);
-1 14068 function pointDistance(pointA, pointB) {
-1 14069 var xDistance = Math.abs(pointA.x - pointB.x);
-1 14070 var yDistance = Math.abs(pointA.y - pointB.y);
-1 14071 if (!xDistance || !yDistance) {
-1 14072 return xDistance || yDistance;
14087 14073 }
14088 -1 return get_node_from_tree_default(parentBlock);
-1 14074 return Math.sqrt(Math.pow(xDistance, 2) + Math.pow(yDistance, 2));
14089 14075 }
14090 -1 function isInTextBlock(node) {
14091 -1 if (isBlock(node)) {
-1 14076 function pointInRect(_ref20, rect) {
-1 14077 var x = _ref20.x, y = _ref20.y;
-1 14078 return y >= rect.top && x <= rect.right && y <= rect.bottom && x >= rect.left;
-1 14079 }
-1 14080 function getCornerInAdjacentRect(_ref21, ownRect, adjacentRect) {
-1 14081 var x = _ref21.x, y = _ref21.y;
-1 14082 var closestX, closestY;
-1 14083 if (x === ownRect.left && ownRect.right < adjacentRect.right) {
-1 14084 closestX = ownRect.right;
-1 14085 } else if (x === ownRect.right && ownRect.left > adjacentRect.left) {
-1 14086 closestX = ownRect.left;
-1 14087 }
-1 14088 if (y === ownRect.top && ownRect.bottom < adjacentRect.bottom) {
-1 14089 closestY = ownRect.bottom;
-1 14090 } else if (y === ownRect.bottom && ownRect.top > adjacentRect.top) {
-1 14091 closestY = ownRect.top;
-1 14092 }
-1 14093 if (!closestX && !closestY) {
-1 14094 return null;
-1 14095 } else if (!closestY) {
-1 14096 return {
-1 14097 x: closestX,
-1 14098 y: y
-1 14099 };
-1 14100 } else if (!closestX) {
-1 14101 return {
-1 14102 x: x,
-1 14103 y: closestY
-1 14104 };
-1 14105 }
-1 14106 if (Math.abs(x - closestX) < Math.abs(y - closestY)) {
-1 14107 return {
-1 14108 x: closestX,
-1 14109 y: y
-1 14110 };
-1 14111 } else {
-1 14112 return {
-1 14113 x: x,
-1 14114 y: closestY
-1 14115 };
-1 14116 }
-1 14117 }
-1 14118 function _getRectCenter(_ref22) {
-1 14119 var left = _ref22.left, top = _ref22.top, width = _ref22.width, height = _ref22.height;
-1 14120 return new window.DOMPoint(left + width / 2, top + height / 2);
-1 14121 }
-1 14122 function _hasVisualOverlap(vNodeA, vNodeB) {
-1 14123 var rectA = vNodeA.boundingClientRect;
-1 14124 var rectB = vNodeB.boundingClientRect;
-1 14125 if (rectA.left >= rectB.right || rectA.right <= rectB.left || rectA.top >= rectB.bottom || rectA.bottom <= rectB.top) {
14092 14126 return false;
14093 14127 }
14094 -1 var virtualParent = getBlockParent(node);
14095 -1 var parentText = '';
14096 -1 var linkText = '';
14097 -1 var inBrBlock = 0;
14098 -1 walkDomNode(virtualParent, function(currNode) {
14099 -1 if (inBrBlock === 2) {
14100 -1 return false;
14101 -1 }
14102 -1 if (currNode.nodeType === 3) {
14103 -1 parentText += currNode.nodeValue;
14104 -1 }
14105 -1 if (currNode.nodeType !== 1) {
14106 -1 return;
14107 -1 }
14108 -1 var nodeName2 = (currNode.nodeName || '').toUpperCase();
14109 -1 if ([ 'BR', 'HR' ].includes(nodeName2)) {
14110 -1 if (inBrBlock === 0) {
14111 -1 parentText = '';
14112 -1 linkText = '';
14113 -1 } else {
14114 -1 inBrBlock = 2;
14115 -1 }
14116 -1 } else if (currNode.style.display === 'none' || currNode.style.overflow === 'hidden' || ![ '', null, 'none' ].includes(currNode.style['float']) || ![ '', null, 'relative' ].includes(currNode.style.position)) {
14117 -1 return false;
14118 -1 } else if (nodeName2 === 'A' && currNode.href || (currNode.getAttribute('role') || '').toLowerCase() === 'link') {
14119 -1 if (currNode === node) {
14120 -1 inBrBlock = 1;
14121 -1 }
14122 -1 linkText += currNode.textContent;
14123 -1 return false;
14124 -1 }
14125 -1 });
14126 -1 parentText = sanitize_default(parentText);
14127 -1 linkText = sanitize_default(linkText);
14128 -1 return parentText.length > linkText.length;
-1 14128 return _visuallySort(vNodeA, vNodeB) > 0;
14129 14129 }
14130 -1 var is_in_text_block_default = isInTextBlock;
14131 -1 function isModalOpen(options) {
14132 -1 options = options || {};
14133 -1 var modalPercent = options.modalPercent || .75;
14134 -1 if (cache_default.get('isModalOpen')) {
14135 -1 return cache_default.get('isModalOpen');
-1 14130 function _splitRects(outerRect, overlapRects) {
-1 14131 var uniqueRects = [ outerRect ];
-1 14132 var _iterator3 = _createForOfIteratorHelper(overlapRects), _step3;
-1 14133 try {
-1 14134 var _loop3 = function _loop3() {
-1 14135 var overlapRect = _step3.value;
-1 14136 uniqueRects = uniqueRects.reduce(function(uniqueRects2, inputRect) {
-1 14137 return uniqueRects2.concat(splitRect(inputRect, overlapRect));
-1 14138 }, []);
-1 14139 };
-1 14140 for (_iterator3.s(); !(_step3 = _iterator3.n()).done; ) {
-1 14141 _loop3();
-1 14142 }
-1 14143 } catch (err) {
-1 14144 _iterator3.e(err);
-1 14145 } finally {
-1 14146 _iterator3.f();
-1 14147 }
-1 14148 return uniqueRects;
-1 14149 }
-1 14150 function splitRect(inputRect, clipRect) {
-1 14151 var top = inputRect.top, left = inputRect.left, bottom = inputRect.bottom, right = inputRect.right;
-1 14152 var yAligned = top < clipRect.bottom && bottom > clipRect.top;
-1 14153 var xAligned = left < clipRect.right && right > clipRect.left;
-1 14154 var rects = [];
-1 14155 if (between(clipRect.top, top, bottom) && xAligned) {
-1 14156 rects.push({
-1 14157 top: top,
-1 14158 left: left,
-1 14159 bottom: clipRect.top,
-1 14160 right: right
-1 14161 });
14136 14162 }
14137 -1 var definiteModals = query_selector_all_filter_default(axe._tree[0], 'dialog, [role=dialog], [aria-modal=true]', function(vNode) {
14138 -1 return is_visible_default(vNode.actualNode);
14139 -1 });
14140 -1 if (definiteModals.length) {
14141 -1 cache_default.set('isModalOpen', true);
14142 -1 return true;
-1 14163 if (between(clipRect.right, left, right) && yAligned) {
-1 14164 rects.push({
-1 14165 top: top,
-1 14166 left: clipRect.right,
-1 14167 bottom: bottom,
-1 14168 right: right
-1 14169 });
14143 14170 }
14144 -1 var viewport = get_viewport_size_default(window);
14145 -1 var percentWidth = viewport.width * modalPercent;
14146 -1 var percentHeight = viewport.height * modalPercent;
14147 -1 var x = (viewport.width - percentWidth) / 2;
14148 -1 var y = (viewport.height - percentHeight) / 2;
14149 -1 var points = [ {
14150 -1 x: x,
14151 -1 y: y
14152 -1 }, {
14153 -1 x: viewport.width - x,
14154 -1 y: y
14155 -1 }, {
14156 -1 x: viewport.width / 2,
14157 -1 y: viewport.height / 2
14158 -1 }, {
14159 -1 x: x,
14160 -1 y: viewport.height - y
14161 -1 }, {
14162 -1 x: viewport.width - x,
14163 -1 y: viewport.height - y
14164 -1 } ];
14165 -1 var stacks = points.map(function(point) {
14166 -1 return Array.from(document.elementsFromPoint(point.x, point.y));
14167 -1 });
14168 -1 var _loop3 = function _loop3(_i7) {
14169 -1 var modalElement = stacks[_i7].find(function(elm) {
14170 -1 var style = window.getComputedStyle(elm);
14171 -1 return parseInt(style.width, 10) >= percentWidth && parseInt(style.height, 10) >= percentHeight && style.getPropertyValue('pointer-events') !== 'none' && (style.position === 'absolute' || style.position === 'fixed');
-1 14171 if (between(clipRect.bottom, top, bottom) && xAligned) {
-1 14172 rects.push({
-1 14173 top: clipRect.bottom,
-1 14174 right: right,
-1 14175 bottom: bottom,
-1 14176 left: left
14172 14177 });
14173 -1 if (modalElement && stacks.every(function(stack) {
14174 -1 return stack.includes(modalElement);
14175 -1 })) {
14176 -1 cache_default.set('isModalOpen', true);
14177 -1 return {
14178 -1 v: true
14179 -1 };
14180 -1 }
14181 -1 };
14182 -1 for (var _i7 = 0; _i7 < stacks.length; _i7++) {
14183 -1 var _ret = _loop3(_i7);
14184 -1 if (_typeof(_ret) === 'object') {
14185 -1 return _ret.v;
14186 -1 }
14187 14178 }
14188 -1 cache_default.set('isModalOpen', void 0);
14189 -1 return void 0;
-1 14179 if (between(clipRect.left, left, right) && yAligned) {
-1 14180 rects.push({
-1 14181 top: top,
-1 14182 left: left,
-1 14183 bottom: bottom,
-1 14184 right: clipRect.left
-1 14185 });
-1 14186 }
-1 14187 if (rects.length === 0) {
-1 14188 rects.push(inputRect);
-1 14189 }
-1 14190 return rects.map(computeRect);
14190 14191 }
14191 -1 var is_modal_open_default = isModalOpen;
14192 -1 function isNode(element) {
14193 -1 return element instanceof window.Node;
-1 14192 var between = function between(num, min, max) {
-1 14193 return num > min && num < max;
-1 14194 };
-1 14195 function computeRect(baseRect) {
-1 14196 return _extends({}, baseRect, {
-1 14197 x: baseRect.left,
-1 14198 y: baseRect.top,
-1 14199 height: baseRect.bottom - baseRect.top,
-1 14200 width: baseRect.right - baseRect.left
-1 14201 });
14194 14202 }
14195 -1 var is_node_default = isNode;
14196 -1 var data = {};
14197 -1 var incompleteData = {
14198 -1 set: function set(key, reason) {
14199 -1 if (typeof key !== 'string') {
14200 -1 throw new Error('Incomplete data: key must be a string');
14201 -1 }
14202 -1 if (reason) {
14203 -1 data[key] = reason;
14204 -1 }
14205 -1 return data[key];
14206 -1 },
14207 -1 get: function get(key) {
14208 -1 return data[key];
14209 -1 },
14210 -1 clear: function clear() {
14211 -1 data = {};
-1 14203 function getRectStack(grid, rect) {
-1 14204 var recursed = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
-1 14205 var center = _getRectCenter(rect);
-1 14206 var gridCell = grid.getCellFromPoint(center) || [];
-1 14207 var floorX = Math.floor(center.x);
-1 14208 var floorY = Math.floor(center.y);
-1 14209 var stack = gridCell.filter(function(gridCellNode) {
-1 14210 return gridCellNode.clientRects.some(function(clientRect) {
-1 14211 var rectX = clientRect.left;
-1 14212 var rectY = clientRect.top;
-1 14213 return floorX < Math.floor(rectX + clientRect.width) && floorX >= Math.floor(rectX) && floorY < Math.floor(rectY + clientRect.height) && floorY >= Math.floor(rectY);
-1 14214 });
-1 14215 });
-1 14216 var gridContainer = grid.container;
-1 14217 if (gridContainer) {
-1 14218 stack = getRectStack(gridContainer._grid, gridContainer.boundingClientRect, true).concat(stack);
14212 14219 }
14213 -1 };
14214 -1 var incomplete_data_default = incompleteData;
14215 -1 function elementHasImage(elm, style) {
14216 -1 var graphicNodes = [ 'IMG', 'CANVAS', 'OBJECT', 'IFRAME', 'VIDEO', 'SVG' ];
14217 -1 var nodeName2 = elm.nodeName.toUpperCase();
14218 -1 if (graphicNodes.includes(nodeName2)) {
14219 -1 incomplete_data_default.set('bgColor', 'imgNode');
14220 -1 return true;
-1 14220 if (!recursed) {
-1 14221 stack = stack.sort(_visuallySort).map(function(vNode) {
-1 14222 return vNode.actualNode;
-1 14223 }).concat(document.documentElement).filter(function(node, index, array) {
-1 14224 return array.indexOf(node) === index;
-1 14225 });
14221 14226 }
14222 -1 style = style || window.getComputedStyle(elm);
14223 -1 var bgImageStyle = style.getPropertyValue('background-image');
14224 -1 var hasBgImage = bgImageStyle !== 'none';
14225 -1 if (hasBgImage) {
14226 -1 var hasGradient = /gradient/.test(bgImageStyle);
14227 -1 incomplete_data_default.set('bgColor', hasGradient ? 'bgGradient' : 'bgImage');
-1 14227 return stack;
-1 14228 }
-1 14229 function getElementStack(node) {
-1 14230 _createGrid();
-1 14231 var vNode = get_node_from_tree_default(node);
-1 14232 var grid = vNode._grid;
-1 14233 if (!grid) {
-1 14234 return [];
14228 14235 }
14229 -1 return hasBgImage;
-1 14236 return getRectStack(grid, vNode.boundingClientRect);
14230 14237 }
14231 -1 var element_has_image_default = elementHasImage;
14232 -1 var ariaAttrs = {
14233 -1 'aria-activedescendant': {
14234 -1 type: 'idref',
14235 -1 allowEmpty: true
-1 14238 var get_element_stack_default = getElementStack;
-1 14239 function getTabbableElements(virtualNode) {
-1 14240 var nodeAndDescendents = query_selector_all_default(virtualNode, '*');
-1 14241 var tabbableElements = nodeAndDescendents.filter(function(vNode) {
-1 14242 var isFocusable2 = vNode.isFocusable;
-1 14243 var tabIndex = vNode.actualNode.getAttribute('tabindex');
-1 14244 tabIndex = tabIndex && !isNaN(parseInt(tabIndex, 10)) ? parseInt(tabIndex) : null;
-1 14245 return tabIndex ? isFocusable2 && tabIndex >= 0 : isFocusable2;
-1 14246 });
-1 14247 return tabbableElements;
-1 14248 }
-1 14249 var get_tabbable_elements_default = getTabbableElements;
-1 14250 var text_exports = {};
-1 14251 __export(text_exports, {
-1 14252 accessibleText: function accessibleText() {
-1 14253 return accessible_text_default;
14236 14254 },
14237 -1 'aria-atomic': {
14238 -1 type: 'boolean',
14239 -1 global: true
-1 14255 accessibleTextVirtual: function accessibleTextVirtual() {
-1 14256 return accessible_text_virtual_default;
14240 14257 },
14241 -1 'aria-autocomplete': {
14242 -1 type: 'nmtoken',
14243 -1 values: [ 'inline', 'list', 'both', 'none' ]
-1 14258 autocomplete: function autocomplete() {
-1 14259 return _autocomplete;
14244 14260 },
14245 -1 'aria-busy': {
14246 -1 type: 'boolean',
14247 -1 global: true
-1 14261 formControlValue: function formControlValue() {
-1 14262 return form_control_value_default;
14248 14263 },
14249 -1 'aria-checked': {
14250 -1 type: 'nmtoken',
14251 -1 values: [ 'false', 'mixed', 'true', 'undefined' ]
-1 14264 formControlValueMethods: function formControlValueMethods() {
-1 14265 return _formControlValueMethods;
14252 14266 },
14253 -1 'aria-colcount': {
14254 -1 type: 'int',
14255 -1 minValue: -1
-1 14267 hasUnicode: function hasUnicode() {
-1 14268 return has_unicode_default;
14256 14269 },
14257 -1 'aria-colindex': {
14258 -1 type: 'int',
14259 -1 minValue: 1
-1 14270 isHumanInterpretable: function isHumanInterpretable() {
-1 14271 return is_human_interpretable_default;
14260 14272 },
14261 -1 'aria-colspan': {
14262 -1 type: 'int',
14263 -1 minValue: 1
-1 14273 isIconLigature: function isIconLigature() {
-1 14274 return is_icon_ligature_default;
14264 14275 },
14265 -1 'aria-controls': {
14266 -1 type: 'idrefs',
-1 14276 isValidAutocomplete: function isValidAutocomplete() {
-1 14277 return is_valid_autocomplete_default;
-1 14278 },
-1 14279 label: function label() {
-1 14280 return label_default;
-1 14281 },
-1 14282 labelText: function labelText() {
-1 14283 return label_text_default;
-1 14284 },
-1 14285 labelVirtual: function labelVirtual() {
-1 14286 return label_virtual_default2;
-1 14287 },
-1 14288 nativeElementType: function nativeElementType() {
-1 14289 return native_element_type_default;
-1 14290 },
-1 14291 nativeTextAlternative: function nativeTextAlternative() {
-1 14292 return native_text_alternative_default;
-1 14293 },
-1 14294 nativeTextMethods: function nativeTextMethods() {
-1 14295 return native_text_methods_default;
-1 14296 },
-1 14297 removeUnicode: function removeUnicode() {
-1 14298 return remove_unicode_default;
-1 14299 },
-1 14300 sanitize: function sanitize() {
-1 14301 return sanitize_default;
-1 14302 },
-1 14303 subtreeText: function subtreeText() {
-1 14304 return subtree_text_default;
-1 14305 },
-1 14306 titleText: function titleText() {
-1 14307 return title_text_default;
-1 14308 },
-1 14309 unsupported: function unsupported() {
-1 14310 return unsupported_default;
-1 14311 },
-1 14312 visible: function visible() {
-1 14313 return visible_default;
-1 14314 },
-1 14315 visibleTextNodes: function visibleTextNodes() {
-1 14316 return visible_text_nodes_default;
-1 14317 },
-1 14318 visibleVirtual: function visibleVirtual() {
-1 14319 return visible_virtual_default;
-1 14320 }
-1 14321 });
-1 14322 function idrefs(node, attr) {
-1 14323 node = node.actualNode || node;
-1 14324 try {
-1 14325 var doc = get_root_node_default2(node);
-1 14326 var result = [];
-1 14327 var attrValue = node.getAttribute(attr);
-1 14328 if (attrValue) {
-1 14329 attrValue = token_list_default(attrValue);
-1 14330 for (var index = 0; index < attrValue.length; index++) {
-1 14331 result.push(doc.getElementById(attrValue[index]));
-1 14332 }
-1 14333 }
-1 14334 return result;
-1 14335 } catch (e) {
-1 14336 throw new TypeError('Cannot resolve id references for non-DOM nodes');
-1 14337 }
-1 14338 }
-1 14339 var idrefs_default = idrefs;
-1 14340 function accessibleText(element, context) {
-1 14341 var virtualNode = get_node_from_tree_default(element);
-1 14342 return accessible_text_virtual_default(virtualNode, context);
-1 14343 }
-1 14344 var accessible_text_default = accessibleText;
-1 14345 function arialabelledbyText(vNode) {
-1 14346 var context = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
-1 14347 if (!(vNode instanceof abstract_virtual_node_default)) {
-1 14348 if (vNode.nodeType !== 1) {
-1 14349 return '';
-1 14350 }
-1 14351 vNode = get_node_from_tree_default(vNode);
-1 14352 }
-1 14353 if (vNode.props.nodeType !== 1 || context.inLabelledByContext || context.inControlContext || !vNode.attr('aria-labelledby')) {
-1 14354 return '';
-1 14355 }
-1 14356 var refs = idrefs_default(vNode, 'aria-labelledby').filter(function(elm) {
-1 14357 return elm;
-1 14358 });
-1 14359 return refs.reduce(function(accessibleName, elm) {
-1 14360 var accessibleNameAdd = accessible_text_default(elm, _extends({
-1 14361 inLabelledByContext: true,
-1 14362 startNode: context.startNode || vNode
-1 14363 }, context));
-1 14364 if (!accessibleName) {
-1 14365 return accessibleNameAdd;
-1 14366 } else {
-1 14367 return ''.concat(accessibleName, ' ').concat(accessibleNameAdd);
-1 14368 }
-1 14369 }, '');
-1 14370 }
-1 14371 var arialabelledby_text_default = arialabelledbyText;
-1 14372 function arialabelText(vNode) {
-1 14373 if (!(vNode instanceof abstract_virtual_node_default)) {
-1 14374 if (vNode.nodeType !== 1) {
-1 14375 return '';
-1 14376 }
-1 14377 vNode = get_node_from_tree_default(vNode);
-1 14378 }
-1 14379 return vNode.attr('aria-label') || '';
-1 14380 }
-1 14381 var arialabel_text_default = arialabelText;
-1 14382 var ariaAttrs = {
-1 14383 'aria-activedescendant': {
-1 14384 type: 'idref',
-1 14385 allowEmpty: true
-1 14386 },
-1 14387 'aria-atomic': {
-1 14388 type: 'boolean',
-1 14389 global: true
-1 14390 },
-1 14391 'aria-autocomplete': {
-1 14392 type: 'nmtoken',
-1 14393 values: [ 'inline', 'list', 'both', 'none' ]
-1 14394 },
-1 14395 'aria-busy': {
-1 14396 type: 'boolean',
-1 14397 global: true
-1 14398 },
-1 14399 'aria-checked': {
-1 14400 type: 'nmtoken',
-1 14401 values: [ 'false', 'mixed', 'true', 'undefined' ]
-1 14402 },
-1 14403 'aria-colcount': {
-1 14404 type: 'int',
-1 14405 minValue: -1
-1 14406 },
-1 14407 'aria-colindex': {
-1 14408 type: 'int',
-1 14409 minValue: 1
-1 14410 },
-1 14411 'aria-colspan': {
-1 14412 type: 'int',
-1 14413 minValue: 1
-1 14414 },
-1 14415 'aria-controls': {
-1 14416 type: 'idrefs',
14267 14417 allowEmpty: true,
14268 14418 global: true
14269 14419 },
@@ -14324,7 +14474,6 @@ module.exports = {
14324 14474 },
14325 14475 'aria-invalid': {
14326 14476 type: 'nmtoken',
14327 -1 allowEmpty: true,
14328 14477 values: [ 'grammar', 'false', 'spelling', 'true' ],
14329 14478 global: true
14330 14479 },
@@ -14491,7 +14640,8 @@ module.exports = {
14491 14640 },
14492 14641 checkbox: {
14493 14642 type: 'widget',
14494 -1 allowedAttrs: [ 'aria-checked', 'aria-readonly', 'aria-required' ],
-1 14643 requiredAttrs: [ 'aria-checked' ],
-1 14644 allowedAttrs: [ 'aria-readonly', 'aria-required' ],
14495 14645 superclassRole: [ 'input' ],
14496 14646 accessibleNameRequired: true,
14497 14647 nameFromContent: true,
@@ -14511,7 +14661,7 @@ module.exports = {
14511 14661 nameFromContent: true
14512 14662 },
14513 14663 combobox: {
14514 -1 type: 'composite',
-1 14664 type: 'widget',
14515 14665 requiredAttrs: [ 'aria-expanded', 'aria-controls' ],
14516 14666 allowedAttrs: [ 'aria-owns', 'aria-autocomplete', 'aria-readonly', 'aria-required', 'aria-activedescendant', 'aria-orientation' ],
14517 14667 superclassRole: [ 'select' ],
@@ -14645,12 +14795,12 @@ module.exports = {
14645 14795 },
14646 14796 list: {
14647 14797 type: 'structure',
14648 -1 requiredOwned: [ 'group', 'listitem' ],
-1 14798 requiredOwned: [ 'listitem' ],
14649 14799 allowedAttrs: [ 'aria-expanded' ],
14650 14800 superclassRole: [ 'section' ]
14651 14801 },
14652 14802 listbox: {
14653 -1 type: 'composite',
-1 14803 type: 'widget',
14654 14804 requiredOwned: [ 'group', 'option' ],
14655 14805 allowedAttrs: [ 'aria-multiselectable', 'aria-readonly', 'aria-required', 'aria-activedescendant', 'aria-expanded', 'aria-orientation' ],
14656 14806 superclassRole: [ 'select' ],
@@ -14658,7 +14808,7 @@ module.exports = {
14658 14808 },
14659 14809 listitem: {
14660 14810 type: 'structure',
14661 -1 requiredContext: [ 'list', 'group' ],
-1 14811 requiredContext: [ 'list' ],
14662 14812 allowedAttrs: [ 'aria-level', 'aria-posinset', 'aria-setsize', 'aria-expanded' ],
14663 14813 superclassRole: [ 'section' ],
14664 14814 nameFromContent: true
@@ -14686,13 +14836,13 @@ module.exports = {
14686 14836 },
14687 14837 menu: {
14688 14838 type: 'composite',
14689 -1 requiredOwned: [ 'group', 'menuitemradio', 'menuitem', 'menuitemcheckbox' ],
-1 14839 requiredOwned: [ 'group', 'menuitemradio', 'menuitem', 'menuitemcheckbox', 'menu' ],
14690 14840 allowedAttrs: [ 'aria-activedescendant', 'aria-expanded', 'aria-orientation' ],
14691 14841 superclassRole: [ 'select' ]
14692 14842 },
14693 14843 menubar: {
14694 14844 type: 'composite',
14695 -1 requiredOwned: [ 'group', 'menuitemradio', 'menuitem', 'menuitemcheckbox' ],
-1 14845 requiredOwned: [ 'group', 'menuitemradio', 'menuitem', 'menuitemcheckbox', 'menu' ],
14696 14846 allowedAttrs: [ 'aria-activedescendant', 'aria-expanded', 'aria-orientation' ],
14697 14847 superclassRole: [ 'menu' ]
14698 14848 },
@@ -14707,7 +14857,8 @@ module.exports = {
14707 14857 menuitemcheckbox: {
14708 14858 type: 'widget',
14709 14859 requiredContext: [ 'menu', 'menubar', 'group' ],
14710 -1 allowedAttrs: [ 'aria-checked', 'aria-posinset', 'aria-readonly', 'aria-setsize' ],
-1 14860 requiredAttrs: [ 'aria-checked' ],
-1 14861 allowedAttrs: [ 'aria-posinset', 'aria-readonly', 'aria-setsize' ],
14711 14862 superclassRole: [ 'checkbox', 'menuitem' ],
14712 14863 accessibleNameRequired: true,
14713 14864 nameFromContent: true,
@@ -14716,7 +14867,8 @@ module.exports = {
14716 14867 menuitemradio: {
14717 14868 type: 'widget',
14718 14869 requiredContext: [ 'menu', 'menubar', 'group' ],
14719 -1 allowedAttrs: [ 'aria-checked', 'aria-posinset', 'aria-readonly', 'aria-setsize' ],
-1 14870 requiredAttrs: [ 'aria-checked' ],
-1 14871 allowedAttrs: [ 'aria-posinset', 'aria-readonly', 'aria-setsize' ],
14720 14872 superclassRole: [ 'menuitemcheckbox', 'radio' ],
14721 14873 accessibleNameRequired: true,
14722 14874 nameFromContent: true,
@@ -14724,8 +14876,8 @@ module.exports = {
14724 14876 },
14725 14877 meter: {
14726 14878 type: 'structure',
14727 -1 allowedAttrs: [ 'aria-valuetext' ],
14728 -1 requiredAttrs: [ 'aria-valuemax', 'aria-valuemin', 'aria-valuenow' ],
-1 14879 requiredAttrs: [ 'aria-valuenow' ],
-1 14880 allowedAttrs: [ 'aria-valuemax', 'aria-valuemin', 'aria-valuetext' ],
14729 14881 superclassRole: [ 'range' ],
14730 14882 accessibleNameRequired: true,
14731 14883 childrenPresentational: true
@@ -14778,7 +14930,8 @@ module.exports = {
14778 14930 },
14779 14931 radio: {
14780 14932 type: 'widget',
14781 -1 allowedAttrs: [ 'aria-checked', 'aria-posinset', 'aria-setsize', 'aria-required' ],
-1 14933 requiredAttrs: [ 'aria-checked' ],
-1 14934 allowedAttrs: [ 'aria-posinset', 'aria-setsize', 'aria-required' ],
14782 14935 superclassRole: [ 'input' ],
14783 14936 accessibleNameRequired: true,
14784 14937 nameFromContent: true,
@@ -14786,7 +14939,6 @@ module.exports = {
14786 14939 },
14787 14940 radiogroup: {
14788 14941 type: 'composite',
14789 -1 requiredOwned: [ 'radio' ],
14790 14942 allowedAttrs: [ 'aria-readonly', 'aria-required', 'aria-activedescendant', 'aria-expanded', 'aria-orientation' ],
14791 14943 superclassRole: [ 'select' ],
14792 14944 accessibleNameRequired: false
@@ -14862,7 +15014,8 @@ module.exports = {
14862 15014 },
14863 15015 separator: {
14864 15016 type: 'structure',
14865 -1 allowedAttrs: [ 'aria-valuemax', 'aria-valuemin', 'aria-valuenow', 'aria-orientation', 'aria-valuetext' ],
-1 15017 requiredAttrs: [ 'aria-valuenow' ],
-1 15018 allowedAttrs: [ 'aria-valuemax', 'aria-valuemin', 'aria-orientation', 'aria-valuetext' ],
14866 15019 superclassRole: [ 'structure', 'widget' ],
14867 15020 childrenPresentational: true
14868 15021 },
@@ -14876,8 +15029,7 @@ module.exports = {
14876 15029 },
14877 15030 spinbutton: {
14878 15031 type: 'widget',
14879 -1 requiredAttrs: [ 'aria-valuenow' ],
14880 -1 allowedAttrs: [ 'aria-valuemax', 'aria-valuemin', 'aria-readonly', 'aria-required', 'aria-activedescendant', 'aria-valuetext' ],
-1 15032 allowedAttrs: [ 'aria-valuemax', 'aria-valuemin', 'aria-readonly', 'aria-required', 'aria-activedescendant', 'aria-valuetext', 'aria-valuenow' ],
14881 15033 superclassRole: [ 'composite', 'input', 'range' ],
14882 15034 accessibleNameRequired: true
14883 15035 },
@@ -15331,7 +15483,7 @@ module.exports = {
15331 15483 },
15332 15484 button: {
15333 15485 contentTypes: [ 'interactive', 'phrasing', 'flow' ],
15334 -1 allowedRoles: [ 'checkbox', 'link', 'menuitem', 'menuitemcheckbox', 'menuitemradio', 'option', 'radio', 'switch', 'tab' ],
-1 15486 allowedRoles: [ 'checkbox', 'combobox', 'link', 'menuitem', 'menuitemcheckbox', 'menuitemradio', 'option', 'radio', 'switch', 'tab' ],
15335 15487 namingMethods: [ 'subtreeText' ]
15336 15488 },
15337 15489 canvas: {
@@ -15542,7 +15694,7 @@ module.exports = {
15542 15694 type: 'button'
15543 15695 }
15544 15696 },
15545 -1 allowedRoles: [ 'link', 'menuitem', 'menuitemcheckbox', 'menuitemradio', 'option', 'radio', 'switch', 'tab' ]
-1 15697 allowedRoles: [ 'checkbox', 'combobox', 'link', 'menuitem', 'menuitemcheckbox', 'menuitemradio', 'option', 'radio', 'switch', 'tab' ]
15546 15698 },
15547 15699 buttonType: {
15548 15700 matches: {
@@ -16120,3727 +16272,4739 @@ module.exports = {
16120 16272 });
16121 16273 }
16122 16274 var standards_default = standards;
16123 -1 function convertColorVal(colorFunc, value, index) {
16124 -1 if (/%$/.test(value)) {
16125 -1 if (index === 3) {
16126 -1 return parseFloat(value) / 100;
16127 -1 }
16128 -1 return parseFloat(value) * 255 / 100;
16129 -1 }
16130 -1 if (colorFunc[index] === 'h') {
16131 -1 if (/turn$/.test(value)) {
16132 -1 return parseFloat(value) * 360;
16133 -1 }
16134 -1 if (/rad$/.test(value)) {
16135 -1 return parseFloat(value) * 57.3;
16136 -1 }
16137 -1 }
16138 -1 return parseFloat(value);
-1 16275 function isUnsupportedRole(role) {
-1 16276 var roleDefinition = standards_default.ariaRoles[role];
-1 16277 return roleDefinition ? !!roleDefinition.unsupported : false;
16139 16278 }
16140 -1 function hslToRgb(_ref11) {
16141 -1 var _ref12 = _slicedToArray(_ref11, 4), hue = _ref12[0], saturation = _ref12[1], lightness = _ref12[2], alpha = _ref12[3];
16142 -1 saturation /= 255;
16143 -1 lightness /= 255;
16144 -1 var high = (1 - Math.abs(2 * lightness - 1)) * saturation;
16145 -1 var low = high * (1 - Math.abs(hue / 60 % 2 - 1));
16146 -1 var base = lightness - high / 2;
16147 -1 var colors;
16148 -1 if (hue < 60) {
16149 -1 colors = [ high, low, 0 ];
16150 -1 } else if (hue < 120) {
16151 -1 colors = [ low, high, 0 ];
16152 -1 } else if (hue < 180) {
16153 -1 colors = [ 0, high, low ];
16154 -1 } else if (hue < 240) {
16155 -1 colors = [ 0, low, high ];
16156 -1 } else if (hue < 300) {
16157 -1 colors = [ low, 0, high ];
16158 -1 } else {
16159 -1 colors = [ high, 0, low ];
-1 16279 var is_unsupported_role_default = isUnsupportedRole;
-1 16280 function isValidRole(role) {
-1 16281 var _ref23 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, allowAbstract = _ref23.allowAbstract, _ref23$flagUnsupporte = _ref23.flagUnsupported, flagUnsupported = _ref23$flagUnsupporte === void 0 ? false : _ref23$flagUnsupporte;
-1 16282 var roleDefinition = standards_default.ariaRoles[role];
-1 16283 var isRoleUnsupported = is_unsupported_role_default(role);
-1 16284 if (!roleDefinition || flagUnsupported && isRoleUnsupported) {
-1 16285 return false;
16160 16286 }
16161 -1 return colors.map(function(color11) {
16162 -1 return Math.round((color11 + base) * 255);
16163 -1 }).concat(alpha);
-1 16287 return allowAbstract ? true : roleDefinition.type !== 'abstract';
16164 16288 }
16165 -1 function Color(red, green, blue, alpha) {
16166 -1 this.red = red;
16167 -1 this.green = green;
16168 -1 this.blue = blue;
16169 -1 this.alpha = alpha;
16170 -1 this.toHexString = function toHexString() {
16171 -1 var redString = Math.round(this.red).toString(16);
16172 -1 var greenString = Math.round(this.green).toString(16);
16173 -1 var blueString = Math.round(this.blue).toString(16);
16174 -1 return '#' + (this.red > 15.5 ? redString : '0' + redString) + (this.green > 15.5 ? greenString : '0' + greenString) + (this.blue > 15.5 ? blueString : '0' + blueString);
16175 -1 };
16176 -1 var hexRegex = /^#[0-9a-f]{3,8}$/i;
16177 -1 var colorFnRegex = /^((?:rgb|hsl)a?)\s*\(([^\)]*)\)/i;
16178 -1 this.parseString = function parseString(colorString) {
16179 -1 if (standards_default.cssColors[colorString] || colorString === 'transparent') {
16180 -1 var _ref13 = standards_default.cssColors[colorString] || [ 0, 0, 0 ], _ref14 = _slicedToArray(_ref13, 3), red2 = _ref14[0], green2 = _ref14[1], blue2 = _ref14[2];
16181 -1 this.red = red2;
16182 -1 this.green = green2;
16183 -1 this.blue = blue2;
16184 -1 this.alpha = colorString === 'transparent' ? 0 : 1;
16185 -1 return;
-1 16289 var is_valid_role_default = isValidRole;
-1 16290 function getExplicitRole(vNode) {
-1 16291 var _ref24 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, fallback = _ref24.fallback, abstracts = _ref24.abstracts, dpub = _ref24.dpub;
-1 16292 vNode = vNode instanceof abstract_virtual_node_default ? vNode : get_node_from_tree_default(vNode);
-1 16293 if (vNode.props.nodeType !== 1) {
-1 16294 return null;
-1 16295 }
-1 16296 var roleAttr = (vNode.attr('role') || '').trim().toLowerCase();
-1 16297 var roleList = fallback ? token_list_default(roleAttr) : [ roleAttr ];
-1 16298 var firstValidRole = roleList.find(function(role) {
-1 16299 if (!dpub && role.substr(0, 4) === 'doc-') {
-1 16300 return false;
16186 16301 }
16187 -1 if (colorString.match(colorFnRegex)) {
16188 -1 this.parseColorFnString(colorString);
16189 -1 return;
-1 16302 return is_valid_role_default(role, {
-1 16303 allowAbstract: abstracts
-1 16304 });
-1 16305 });
-1 16306 return firstValidRole || null;
-1 16307 }
-1 16308 var get_explicit_role_default = getExplicitRole;
-1 16309 function getElementsByContentType(type) {
-1 16310 return Object.keys(standards_default.htmlElms).filter(function(nodeName2) {
-1 16311 var elm = standards_default.htmlElms[nodeName2];
-1 16312 if (elm.contentTypes) {
-1 16313 return elm.contentTypes.includes(type);
16190 16314 }
16191 -1 if (colorString.match(hexRegex)) {
16192 -1 this.parseHexString(colorString);
16193 -1 return;
-1 16315 if (!elm.variant) {
-1 16316 return false;
16194 16317 }
16195 -1 throw new Error('Unable to parse color "'.concat(colorString, '"'));
16196 -1 };
16197 -1 this.parseRgbString = function parseRgbString(colorString) {
16198 -1 if (colorString === 'transparent') {
16199 -1 this.red = 0;
16200 -1 this.green = 0;
16201 -1 this.blue = 0;
16202 -1 this.alpha = 0;
16203 -1 return;
-1 16318 if (elm.variant['default'] && elm.variant['default'].contentTypes) {
-1 16319 return elm.variant['default'].contentTypes.includes(type);
16204 16320 }
16205 -1 this.parseColorFnString(colorString);
16206 -1 };
16207 -1 this.parseHexString = function parseHexString(colorString) {
16208 -1 if (!colorString.match(hexRegex) || [ 6, 8 ].includes(colorString.length)) {
16209 -1 return;
16210 -1 }
16211 -1 colorString = colorString.replace('#', '');
16212 -1 if (colorString.length < 6) {
16213 -1 var _colorString = colorString, _colorString2 = _slicedToArray(_colorString, 4), r = _colorString2[0], g = _colorString2[1], b = _colorString2[2], a = _colorString2[3];
16214 -1 colorString = r + r + g + g + b + b;
16215 -1 if (a) {
16216 -1 colorString += a + a;
16217 -1 }
16218 -1 }
16219 -1 var aRgbHex = colorString.match(/.{1,2}/g);
16220 -1 this.red = parseInt(aRgbHex[0], 16);
16221 -1 this.green = parseInt(aRgbHex[1], 16);
16222 -1 this.blue = parseInt(aRgbHex[2], 16);
16223 -1 if (aRgbHex[3]) {
16224 -1 this.alpha = parseInt(aRgbHex[3], 16) / 255;
16225 -1 } else {
16226 -1 this.alpha = 1;
16227 -1 }
16228 -1 };
16229 -1 this.parseColorFnString = function parseColorFnString(colorString) {
16230 -1 var _ref15 = colorString.match(colorFnRegex) || [], _ref16 = _slicedToArray(_ref15, 3), colorFunc = _ref16[1], colorValStr = _ref16[2];
16231 -1 if (!colorFunc || !colorValStr) {
16232 -1 return;
16233 -1 }
16234 -1 var colorVals = colorValStr.split(/\s*[,\/\s]\s*/).map(function(str) {
16235 -1 return str.replace(',', '').trim();
16236 -1 }).filter(function(str) {
16237 -1 return str !== '';
16238 -1 });
16239 -1 var colorNums = colorVals.map(function(val, index) {
16240 -1 return convertColorVal(colorFunc, val, index);
-1 16321 return false;
-1 16322 });
-1 16323 }
-1 16324 var get_elements_by_content_type_default = getElementsByContentType;
-1 16325 function getGlobalAriaAttrs() {
-1 16326 return cache_default.get('globalAriaAttrs', function() {
-1 16327 return Object.keys(standards_default.ariaAttrs).filter(function(attrName) {
-1 16328 return standards_default.ariaAttrs[attrName].global;
16241 16329 });
16242 -1 if (colorFunc.substr(0, 3) === 'hsl') {
16243 -1 colorNums = hslToRgb(colorNums);
16244 -1 }
16245 -1 this.red = colorNums[0];
16246 -1 this.green = colorNums[1];
16247 -1 this.blue = colorNums[2];
16248 -1 this.alpha = typeof colorNums[3] === 'number' ? colorNums[3] : 1;
16249 -1 };
16250 -1 this.getRelativeLuminance = function getRelativeLuminance() {
16251 -1 var rSRGB = this.red / 255;
16252 -1 var gSRGB = this.green / 255;
16253 -1 var bSRGB = this.blue / 255;
16254 -1 var r = rSRGB <= .03928 ? rSRGB / 12.92 : Math.pow((rSRGB + .055) / 1.055, 2.4);
16255 -1 var g = gSRGB <= .03928 ? gSRGB / 12.92 : Math.pow((gSRGB + .055) / 1.055, 2.4);
16256 -1 var b = bSRGB <= .03928 ? bSRGB / 12.92 : Math.pow((bSRGB + .055) / 1.055, 2.4);
16257 -1 return .2126 * r + .7152 * g + .0722 * b;
16258 -1 };
-1 16330 });
16259 16331 }
16260 -1 var color_default = Color;
16261 -1 function getOwnBackgroundColor(elmStyle) {
16262 -1 var bgColor = new color_default();
16263 -1 bgColor.parseString(elmStyle.getPropertyValue('background-color'));
16264 -1 if (bgColor.alpha !== 0) {
16265 -1 var opacity = elmStyle.getPropertyValue('opacity');
16266 -1 bgColor.alpha = bgColor.alpha * opacity;
-1 16332 var get_global_aria_attrs_default = getGlobalAriaAttrs;
-1 16333 function toGrid(node) {
-1 16334 var table = [];
-1 16335 var rows = node.rows;
-1 16336 for (var i = 0, rowLength = rows.length; i < rowLength; i++) {
-1 16337 var cells = rows[i].cells;
-1 16338 table[i] = table[i] || [];
-1 16339 var columnIndex = 0;
-1 16340 for (var j = 0, cellLength = cells.length; j < cellLength; j++) {
-1 16341 for (var colSpan = 0; colSpan < cells[j].colSpan; colSpan++) {
-1 16342 var rowspanAttr = cells[j].getAttribute('rowspan');
-1 16343 var rowspanValue = parseInt(rowspanAttr) === 0 || cells[j].rowspan === 0 ? rows.length : cells[j].rowSpan;
-1 16344 for (var rowSpan = 0; rowSpan < rowspanValue; rowSpan++) {
-1 16345 table[i + rowSpan] = table[i + rowSpan] || [];
-1 16346 while (table[i + rowSpan][columnIndex]) {
-1 16347 columnIndex++;
-1 16348 }
-1 16349 table[i + rowSpan][columnIndex] = cells[j];
-1 16350 }
-1 16351 columnIndex++;
-1 16352 }
-1 16353 }
16267 16354 }
16268 -1 return bgColor;
-1 16355 return table;
16269 16356 }
16270 -1 var get_own_background_color_default = getOwnBackgroundColor;
16271 -1 function isOpaque(node) {
16272 -1 var style = window.getComputedStyle(node);
16273 -1 return element_has_image_default(node, style) || get_own_background_color_default(style).alpha === 1;
-1 16357 var to_grid_default = memoize_default(toGrid);
-1 16358 function getCellPosition(cell, tableGrid) {
-1 16359 var rowIndex, index;
-1 16360 if (!tableGrid) {
-1 16361 tableGrid = to_grid_default(find_up_default(cell, 'table'));
-1 16362 }
-1 16363 for (rowIndex = 0; rowIndex < tableGrid.length; rowIndex++) {
-1 16364 if (tableGrid[rowIndex]) {
-1 16365 index = tableGrid[rowIndex].indexOf(cell);
-1 16366 if (index !== -1) {
-1 16367 return {
-1 16368 x: index,
-1 16369 y: rowIndex
-1 16370 };
-1 16371 }
-1 16372 }
-1 16373 }
16274 16374 }
16275 -1 var is_opaque_default = isOpaque;
16276 -1 function _isSkipLink(element) {
16277 -1 if (!element.href) {
-1 16375 var get_cell_position_default = memoize_default(getCellPosition);
-1 16376 function getScope(cell) {
-1 16377 var vNode = cell instanceof abstract_virtual_node_default ? cell : get_node_from_tree_default(cell);
-1 16378 cell = vNode.actualNode;
-1 16379 var scope = vNode.attr('scope');
-1 16380 var role = vNode.attr('role');
-1 16381 if (![ 'td', 'th' ].includes(vNode.props.nodeName)) {
-1 16382 throw new TypeError('Expected TD or TH element');
-1 16383 }
-1 16384 if (role === 'columnheader') {
-1 16385 return 'col';
-1 16386 } else if (role === 'rowheader') {
-1 16387 return 'row';
-1 16388 } else if (scope === 'col' || scope === 'row') {
-1 16389 return scope;
-1 16390 } else if (vNode.props.nodeName !== 'th') {
16278 16391 return false;
-1 16392 } else if (!vNode.actualNode) {
-1 16393 return 'auto';
16279 16394 }
16280 -1 var firstPageLink;
16281 -1 if (typeof cache_default.get('firstPageLink') !== 'undefined') {
16282 -1 firstPageLink = cache_default.get('firstPageLink');
16283 -1 } else {
16284 -1 if (!window.location.origin) {
16285 -1 firstPageLink = query_selector_all_default(axe._tree, 'a:not([href^="#"]):not([href^="/#"]):not([href^="javascript:"])')[0];
16286 -1 } else {
16287 -1 firstPageLink = query_selector_all_default(axe._tree, 'a[href]:not([href^="javascript:"])').find(function(link) {
16288 -1 return !_isCurrentPageLink(link.actualNode);
16289 -1 });
16290 -1 }
16291 -1 cache_default.set('firstPageLink', firstPageLink || null);
-1 16395 var tableGrid = to_grid_default(find_up_default(cell, 'table'));
-1 16396 var pos = get_cell_position_default(cell, tableGrid);
-1 16397 var headerRow = tableGrid[pos.y].reduce(function(headerRow2, cell2) {
-1 16398 return headerRow2 && cell2.nodeName.toUpperCase() === 'TH';
-1 16399 }, true);
-1 16400 if (headerRow) {
-1 16401 return 'col';
16292 16402 }
16293 -1 if (!firstPageLink) {
16294 -1 return true;
-1 16403 var headerCol = tableGrid.map(function(col) {
-1 16404 return col[pos.x];
-1 16405 }).reduce(function(headerCol2, cell2) {
-1 16406 return headerCol2 && cell2 && cell2.nodeName.toUpperCase() === 'TH';
-1 16407 }, true);
-1 16408 if (headerCol) {
-1 16409 return 'row';
16295 16410 }
16296 -1 return element.compareDocumentPosition(firstPageLink.actualNode) === element.DOCUMENT_POSITION_FOLLOWING;
-1 16411 return 'auto';
16297 16412 }
16298 -1 function reduceToElementsBelowFloating(elements, targetNode) {
16299 -1 var floatingPositions = [ 'fixed', 'sticky' ];
16300 -1 var finalElements = [];
16301 -1 var targetFound = false;
16302 -1 for (var index = 0; index < elements.length; ++index) {
16303 -1 var currentNode = elements[index];
16304 -1 if (currentNode === targetNode) {
16305 -1 targetFound = true;
16306 -1 }
16307 -1 var style = window.getComputedStyle(currentNode);
16308 -1 if (!targetFound && floatingPositions.indexOf(style.position) !== -1) {
16309 -1 finalElements = [];
16310 -1 continue;
16311 -1 }
16312 -1 finalElements.push(currentNode);
16313 -1 }
16314 -1 return finalElements;
-1 16413 var get_scope_default = getScope;
-1 16414 function isColumnHeader(element) {
-1 16415 return [ 'col', 'auto' ].indexOf(get_scope_default(element)) !== -1;
16315 16416 }
16316 -1 var reduce_to_elements_below_floating_default = reduceToElementsBelowFloating;
16317 -1 function _visuallyContains(node, parent) {
16318 -1 var parentScrollAncestor = getScrollAncestor(parent);
16319 -1 do {
16320 -1 var nextScrollAncestor = getScrollAncestor(node);
16321 -1 if (nextScrollAncestor === parentScrollAncestor || nextScrollAncestor === parent) {
16322 -1 return contains2(node, parent);
16323 -1 }
16324 -1 node = nextScrollAncestor;
16325 -1 } while (node);
16326 -1 return false;
-1 16417 var is_column_header_default = isColumnHeader;
-1 16418 function isRowHeader(cell) {
-1 16419 return [ 'row', 'auto' ].includes(get_scope_default(cell));
16327 16420 }
16328 -1 function getScrollAncestor(node) {
16329 -1 var vNode = get_node_from_tree_default(node);
16330 -1 var ancestor = vNode.parent;
16331 -1 while (ancestor) {
16332 -1 if (_getScroll(ancestor.actualNode)) {
16333 -1 return ancestor.actualNode;
16334 -1 }
16335 -1 ancestor = ancestor.parent;
-1 16421 var is_row_header_default = isRowHeader;
-1 16422 function sanitize(str) {
-1 16423 if (!str) {
-1 16424 return '';
16336 16425 }
-1 16426 return str.replace(/\r\n/g, '\n').replace(/\u00A0/g, ' ').replace(/[\s]{2,}/g, ' ').trim();
16337 16427 }
16338 -1 function contains2(node, parent) {
16339 -1 var style = window.getComputedStyle(parent);
16340 -1 var overflow = style.getPropertyValue('overflow');
16341 -1 if (style.getPropertyValue('display') === 'inline') {
-1 16428 var sanitize_default = sanitize;
-1 16429 var allowedDisabledNodeNames = [ 'button', 'command', 'fieldset', 'keygen', 'optgroup', 'option', 'select', 'textarea', 'input' ];
-1 16430 function isDisabledAttrAllowed(nodeName2) {
-1 16431 return allowedDisabledNodeNames.includes(nodeName2);
-1 16432 }
-1 16433 function focusDisabled(el) {
-1 16434 var vNode = el instanceof abstract_virtual_node_default ? el : get_node_from_tree_default(el);
-1 16435 if (isDisabledAttrAllowed(vNode.props.nodeName) && vNode.hasAttr('disabled')) {
16342 16436 return true;
16343 16437 }
16344 -1 var clientRects = Array.from(node.getClientRects());
16345 -1 var boundingRect = parent.getBoundingClientRect();
16346 -1 var rect = {
16347 -1 left: boundingRect.left,
16348 -1 top: boundingRect.top,
16349 -1 width: boundingRect.width,
16350 -1 height: boundingRect.height
16351 -1 };
16352 -1 if ([ 'scroll', 'auto' ].includes(overflow) || parent instanceof window.HTMLHtmlElement) {
16353 -1 rect.width = parent.scrollWidth;
16354 -1 rect.height = parent.scrollHeight;
16355 -1 }
16356 -1 if (clientRects.length === 1 && overflow === 'hidden' && style.getPropertyValue('white-space') === 'nowrap') {
16357 -1 clientRects[0] = rect;
-1 16438 var parentNode = vNode.parent;
-1 16439 var ancestors = [];
-1 16440 var fieldsetDisabled = false;
-1 16441 while (parentNode && parentNode.shadowId === vNode.shadowId && !fieldsetDisabled) {
-1 16442 ancestors.push(parentNode);
-1 16443 if (parentNode.props.nodeName === 'legend') {
-1 16444 break;
-1 16445 }
-1 16446 if (parentNode._inDisabledFieldset !== void 0) {
-1 16447 fieldsetDisabled = parentNode._inDisabledFieldset;
-1 16448 break;
-1 16449 }
-1 16450 if (parentNode.props.nodeName === 'fieldset' && parentNode.hasAttr('disabled')) {
-1 16451 fieldsetDisabled = true;
-1 16452 }
-1 16453 parentNode = parentNode.parent;
16358 16454 }
16359 -1 return clientRects.some(function(clientRect) {
16360 -1 return !(Math.ceil(clientRect.left) < Math.floor(rect.left) || Math.ceil(clientRect.top) < Math.floor(rect.top) || Math.floor(clientRect.left + clientRect.width) > Math.ceil(rect.left + rect.width) || Math.floor(clientRect.top + clientRect.height) > Math.ceil(rect.top + rect.height));
-1 16455 ancestors.forEach(function(ancestor) {
-1 16456 return ancestor._inDisabledFieldset = fieldsetDisabled;
16361 16457 });
16362 -1 }
16363 -1 function shadowElementsFromPoint(nodeX, nodeY) {
16364 -1 var root = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : document;
16365 -1 var i = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 0;
16366 -1 if (i > 999) {
16367 -1 throw new Error('Infinite loop detected');
-1 16458 if (fieldsetDisabled) {
-1 16459 return true;
16368 16460 }
16369 -1 return Array.from(root.elementsFromPoint(nodeX, nodeY) || []).filter(function(nodes) {
16370 -1 return get_root_node_default2(nodes) === root;
16371 -1 }).reduce(function(stack, elm) {
16372 -1 if (is_shadow_root_default(elm)) {
16373 -1 var shadowStack = shadowElementsFromPoint(nodeX, nodeY, elm.shadowRoot, i + 1);
16374 -1 stack = stack.concat(shadowStack);
16375 -1 if (stack.length && _visuallyContains(stack[0], elm)) {
16376 -1 stack.push(elm);
16377 -1 }
16378 -1 } else {
16379 -1 stack.push(elm);
-1 16461 if (vNode.props.nodeName !== 'area') {
-1 16462 if (!vNode.actualNode) {
-1 16463 return false;
16380 16464 }
16381 -1 return stack;
16382 -1 }, []);
16383 -1 }
16384 -1 var shadow_elements_from_point_default = shadowElementsFromPoint;
16385 -1 function urlPropsFromAttribute(node, attribute) {
16386 -1 if (!node.hasAttribute(attribute)) {
16387 -1 return void 0;
-1 16465 return _isHiddenForEveryone(vNode);
16388 16466 }
16389 -1 var nodeName2 = node.nodeName.toUpperCase();
16390 -1 var parser2 = node;
16391 -1 if (![ 'A', 'AREA' ].includes(nodeName2) || node.ownerSVGElement) {
16392 -1 parser2 = document.createElement('a');
16393 -1 parser2.href = node.getAttribute(attribute);
-1 16467 return false;
-1 16468 }
-1 16469 var focus_disabled_default = focusDisabled;
-1 16470 function isNativelyFocusable(el) {
-1 16471 var vNode = el instanceof abstract_virtual_node_default ? el : get_node_from_tree_default(el);
-1 16472 if (!vNode || focus_disabled_default(vNode)) {
-1 16473 return false;
-1 16474 }
-1 16475 switch (vNode.props.nodeName) {
-1 16476 case 'a':
-1 16477 case 'area':
-1 16478 if (vNode.hasAttr('href')) {
-1 16479 return true;
-1 16480 }
-1 16481 break;
-1 16482
-1 16483 case 'input':
-1 16484 return vNode.props.type !== 'hidden';
-1 16485
-1 16486 case 'textarea':
-1 16487 case 'select':
-1 16488 case 'summary':
-1 16489 case 'button':
-1 16490 return true;
-1 16491
-1 16492 case 'details':
-1 16493 return !query_selector_all_default(vNode, 'summary').length;
-1 16494 }
-1 16495 return false;
-1 16496 }
-1 16497 var is_natively_focusable_default = isNativelyFocusable;
-1 16498 function _isFocusable(el) {
-1 16499 var vNode = el instanceof abstract_virtual_node_default ? el : get_node_from_tree_default(el);
-1 16500 if (vNode.props.nodeType !== 1) {
-1 16501 return false;
-1 16502 }
-1 16503 if (focus_disabled_default(vNode)) {
-1 16504 return false;
-1 16505 } else if (is_natively_focusable_default(vNode)) {
-1 16506 return true;
-1 16507 }
-1 16508 var tabindex = vNode.attr('tabindex');
-1 16509 if (tabindex && !isNaN(parseInt(tabindex, 10))) {
-1 16510 return true;
-1 16511 }
-1 16512 return false;
-1 16513 }
-1 16514 var sectioningElementSelector = get_elements_by_content_type_default('sectioning').map(function(nodeName2) {
-1 16515 return ''.concat(nodeName2, ':not([role])');
-1 16516 }).join(', ') + ' , main:not([role]), [role=article], [role=complementary], [role=main], [role=navigation], [role=region]';
-1 16517 function hasAccessibleName(vNode) {
-1 16518 var ariaLabelledby = sanitize_default(arialabelledby_text_default(vNode));
-1 16519 var ariaLabel = sanitize_default(arialabel_text_default(vNode));
-1 16520 return !!(ariaLabelledby || ariaLabel);
-1 16521 }
-1 16522 var implicitHtmlRoles = {
-1 16523 a: function a(vNode) {
-1 16524 return vNode.hasAttr('href') ? 'link' : null;
-1 16525 },
-1 16526 area: function area(vNode) {
-1 16527 return vNode.hasAttr('href') ? 'link' : null;
-1 16528 },
-1 16529 article: 'article',
-1 16530 aside: 'complementary',
-1 16531 body: 'document',
-1 16532 button: 'button',
-1 16533 datalist: 'listbox',
-1 16534 dd: 'definition',
-1 16535 dfn: 'term',
-1 16536 details: 'group',
-1 16537 dialog: 'dialog',
-1 16538 dt: 'term',
-1 16539 fieldset: 'group',
-1 16540 figure: 'figure',
-1 16541 footer: function footer(vNode) {
-1 16542 var sectioningElement = closest_default(vNode, sectioningElementSelector);
-1 16543 return !sectioningElement ? 'contentinfo' : null;
-1 16544 },
-1 16545 form: function form(vNode) {
-1 16546 return hasAccessibleName(vNode) ? 'form' : null;
-1 16547 },
-1 16548 h1: 'heading',
-1 16549 h2: 'heading',
-1 16550 h3: 'heading',
-1 16551 h4: 'heading',
-1 16552 h5: 'heading',
-1 16553 h6: 'heading',
-1 16554 header: function header(vNode) {
-1 16555 var sectioningElement = closest_default(vNode, sectioningElementSelector);
-1 16556 return !sectioningElement ? 'banner' : null;
-1 16557 },
-1 16558 hr: 'separator',
-1 16559 img: function img(vNode) {
-1 16560 var emptyAlt = vNode.hasAttr('alt') && !vNode.attr('alt');
-1 16561 var hasGlobalAria = get_global_aria_attrs_default().find(function(attr) {
-1 16562 return vNode.hasAttr(attr);
-1 16563 });
-1 16564 return emptyAlt && !hasGlobalAria && !_isFocusable(vNode) ? 'presentation' : 'img';
-1 16565 },
-1 16566 input: function input(vNode) {
-1 16567 var suggestionsSourceElement;
-1 16568 if (vNode.hasAttr('list')) {
-1 16569 var listElement = idrefs_default(vNode.actualNode, 'list').filter(function(node) {
-1 16570 return !!node;
-1 16571 })[0];
-1 16572 suggestionsSourceElement = listElement && listElement.nodeName.toLowerCase() === 'datalist';
-1 16573 }
-1 16574 switch (vNode.props.type) {
-1 16575 case 'checkbox':
-1 16576 return 'checkbox';
-1 16577
-1 16578 case 'number':
-1 16579 return 'spinbutton';
-1 16580
-1 16581 case 'radio':
-1 16582 return 'radio';
-1 16583
-1 16584 case 'range':
-1 16585 return 'slider';
-1 16586
-1 16587 case 'search':
-1 16588 return !suggestionsSourceElement ? 'searchbox' : 'combobox';
-1 16589
-1 16590 case 'button':
-1 16591 case 'image':
-1 16592 case 'reset':
-1 16593 case 'submit':
-1 16594 return 'button';
-1 16595
-1 16596 case 'text':
-1 16597 case 'tel':
-1 16598 case 'url':
-1 16599 case 'email':
-1 16600 case '':
-1 16601 return !suggestionsSourceElement ? 'textbox' : 'combobox';
-1 16602
-1 16603 default:
-1 16604 return 'textbox';
-1 16605 }
-1 16606 },
-1 16607 li: 'listitem',
-1 16608 main: 'main',
-1 16609 math: 'math',
-1 16610 menu: 'list',
-1 16611 nav: 'navigation',
-1 16612 ol: 'list',
-1 16613 optgroup: 'group',
-1 16614 option: 'option',
-1 16615 output: 'status',
-1 16616 progress: 'progressbar',
-1 16617 section: function section(vNode) {
-1 16618 return hasAccessibleName(vNode) ? 'region' : null;
-1 16619 },
-1 16620 select: function select(vNode) {
-1 16621 return vNode.hasAttr('multiple') || parseInt(vNode.attr('size')) > 1 ? 'listbox' : 'combobox';
-1 16622 },
-1 16623 summary: 'button',
-1 16624 table: 'table',
-1 16625 tbody: 'rowgroup',
-1 16626 td: function td(vNode) {
-1 16627 var table = closest_default(vNode, 'table');
-1 16628 var role = get_explicit_role_default(table);
-1 16629 return [ 'grid', 'treegrid' ].includes(role) ? 'gridcell' : 'cell';
-1 16630 },
-1 16631 textarea: 'textbox',
-1 16632 tfoot: 'rowgroup',
-1 16633 th: function th(vNode) {
-1 16634 if (is_column_header_default(vNode)) {
-1 16635 return 'columnheader';
-1 16636 }
-1 16637 if (is_row_header_default(vNode)) {
-1 16638 return 'rowheader';
-1 16639 }
-1 16640 },
-1 16641 thead: 'rowgroup',
-1 16642 tr: 'row',
-1 16643 ul: 'list'
-1 16644 };
-1 16645 var implicit_html_roles_default = implicitHtmlRoles;
-1 16646 function fromPrimative(someString, matcher) {
-1 16647 var matcherType = _typeof(matcher);
-1 16648 if (Array.isArray(matcher) && typeof someString !== 'undefined') {
-1 16649 return matcher.includes(someString);
-1 16650 }
-1 16651 if (matcherType === 'function') {
-1 16652 return !!matcher(someString);
-1 16653 }
-1 16654 if (someString !== null && someString !== void 0) {
-1 16655 if (matcher instanceof RegExp) {
-1 16656 return matcher.test(someString);
-1 16657 }
-1 16658 if (/^\/.*\/$/.test(matcher)) {
-1 16659 var pattern = matcher.substring(1, matcher.length - 1);
-1 16660 return new RegExp(pattern).test(someString);
-1 16661 }
-1 16662 }
-1 16663 return matcher === someString;
-1 16664 }
-1 16665 var from_primative_default = fromPrimative;
-1 16666 function hasAccessibleName2(vNode, matcher) {
-1 16667 return from_primative_default(!!accessible_text_virtual_default(vNode), matcher);
-1 16668 }
-1 16669 var has_accessible_name_default = hasAccessibleName2;
-1 16670 function fromFunction(getValue, matcher) {
-1 16671 var matcherType = _typeof(matcher);
-1 16672 if (matcherType !== 'object' || Array.isArray(matcher) || matcher instanceof RegExp) {
-1 16673 throw new Error('Expect matcher to be an object');
-1 16674 }
-1 16675 return Object.keys(matcher).every(function(propName) {
-1 16676 return from_primative_default(getValue(propName), matcher[propName]);
-1 16677 });
-1 16678 }
-1 16679 var from_function_default = fromFunction;
-1 16680 function attributes(vNode, matcher) {
-1 16681 if (!(vNode instanceof abstract_virtual_node_default)) {
-1 16682 vNode = get_node_from_tree_default(vNode);
-1 16683 }
-1 16684 return from_function_default(function(attrName) {
-1 16685 return vNode.attr(attrName);
-1 16686 }, matcher);
-1 16687 }
-1 16688 var attributes_default = attributes;
-1 16689 function condition(arg, condition2) {
-1 16690 return !!condition2(arg);
-1 16691 }
-1 16692 var condition_default = condition;
-1 16693 function explicitRole(vNode, matcher) {
-1 16694 return from_primative_default(get_explicit_role_default(vNode), matcher);
-1 16695 }
-1 16696 var explicit_role_default = explicitRole;
-1 16697 function implicitRole(vNode, matcher) {
-1 16698 return from_primative_default(implicit_role_default(vNode), matcher);
-1 16699 }
-1 16700 var implicit_role_default2 = implicitRole;
-1 16701 function nodeName(vNode, matcher) {
-1 16702 if (!(vNode instanceof abstract_virtual_node_default)) {
-1 16703 vNode = get_node_from_tree_default(vNode);
-1 16704 }
-1 16705 return from_primative_default(vNode.props.nodeName, matcher);
-1 16706 }
-1 16707 var node_name_default = nodeName;
-1 16708 function properties(vNode, matcher) {
-1 16709 if (!(vNode instanceof abstract_virtual_node_default)) {
-1 16710 vNode = get_node_from_tree_default(vNode);
-1 16711 }
-1 16712 return from_function_default(function(propName) {
-1 16713 return vNode.props[propName];
-1 16714 }, matcher);
-1 16715 }
-1 16716 var properties_default = properties;
-1 16717 function semanticRole(vNode, matcher) {
-1 16718 return from_primative_default(get_role_default(vNode), matcher);
-1 16719 }
-1 16720 var semantic_role_default = semanticRole;
-1 16721 var matchers = {
-1 16722 hasAccessibleName: has_accessible_name_default,
-1 16723 attributes: attributes_default,
-1 16724 condition: condition_default,
-1 16725 explicitRole: explicit_role_default,
-1 16726 implicitRole: implicit_role_default2,
-1 16727 nodeName: node_name_default,
-1 16728 properties: properties_default,
-1 16729 semanticRole: semantic_role_default
-1 16730 };
-1 16731 function fromDefinition(vNode, definition) {
-1 16732 if (!(vNode instanceof abstract_virtual_node_default)) {
-1 16733 vNode = get_node_from_tree_default(vNode);
-1 16734 }
-1 16735 if (Array.isArray(definition)) {
-1 16736 return definition.some(function(definitionItem) {
-1 16737 return fromDefinition(vNode, definitionItem);
-1 16738 });
-1 16739 }
-1 16740 if (typeof definition === 'string') {
-1 16741 return matches_default(vNode, definition);
-1 16742 }
-1 16743 return Object.keys(definition).every(function(matcherName) {
-1 16744 if (!matchers[matcherName]) {
-1 16745 throw new Error('Unknown matcher type "'.concat(matcherName, '"'));
-1 16746 }
-1 16747 var matchMethod = matchers[matcherName];
-1 16748 var matcher = definition[matcherName];
-1 16749 return matchMethod(vNode, matcher);
-1 16750 });
-1 16751 }
-1 16752 var from_definition_default = fromDefinition;
-1 16753 function matches2(vNode, definition) {
-1 16754 return from_definition_default(vNode, definition);
-1 16755 }
-1 16756 var matches_default2 = matches2;
-1 16757 matches_default2.hasAccessibleName = has_accessible_name_default;
-1 16758 matches_default2.attributes = attributes_default;
-1 16759 matches_default2.condition = condition_default;
-1 16760 matches_default2.explicitRole = explicit_role_default;
-1 16761 matches_default2.fromDefinition = from_definition_default;
-1 16762 matches_default2.fromFunction = from_function_default;
-1 16763 matches_default2.fromPrimative = from_primative_default;
-1 16764 matches_default2.implicitRole = implicit_role_default2;
-1 16765 matches_default2.nodeName = node_name_default;
-1 16766 matches_default2.properties = properties_default;
-1 16767 matches_default2.semanticRole = semantic_role_default;
-1 16768 var matches_default3 = matches_default2;
-1 16769 function getElementSpec(vNode) {
-1 16770 var _ref25 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, _ref25$noMatchAccessi = _ref25.noMatchAccessibleName, noMatchAccessibleName = _ref25$noMatchAccessi === void 0 ? false : _ref25$noMatchAccessi;
-1 16771 var standard = standards_default.htmlElms[vNode.props.nodeName];
-1 16772 if (!standard) {
-1 16773 return {};
-1 16774 }
-1 16775 if (!standard.variant) {
-1 16776 return standard;
-1 16777 }
-1 16778 var variant = standard.variant, spec = _objectWithoutProperties(standard, _excluded2);
-1 16779 for (var variantName in variant) {
-1 16780 if (!variant.hasOwnProperty(variantName) || variantName === 'default') {
-1 16781 continue;
-1 16782 }
-1 16783 var _variant$variantName = variant[variantName], matches4 = _variant$variantName.matches, props = _objectWithoutProperties(_variant$variantName, _excluded3);
-1 16784 var matchProperties = Array.isArray(matches4) ? matches4 : [ matches4 ];
-1 16785 for (var _i7 = 0; _i7 < matchProperties.length && noMatchAccessibleName; _i7++) {
-1 16786 if (matchProperties[_i7].hasOwnProperty('hasAccessibleName')) {
-1 16787 return standard;
-1 16788 }
-1 16789 }
-1 16790 if (matches_default3(vNode, matches4)) {
-1 16791 for (var propName in props) {
-1 16792 if (props.hasOwnProperty(propName)) {
-1 16793 spec[propName] = props[propName];
-1 16794 }
-1 16795 }
-1 16796 }
-1 16797 }
-1 16798 for (var _propName in variant['default']) {
-1 16799 if (variant['default'].hasOwnProperty(_propName) && typeof spec[_propName] === 'undefined') {
-1 16800 spec[_propName] = variant['default'][_propName];
-1 16801 }
-1 16802 }
-1 16803 return spec;
-1 16804 }
-1 16805 var get_element_spec_default = getElementSpec;
-1 16806 function implicitRole2(node) {
-1 16807 var _ref26 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, chromium = _ref26.chromium;
-1 16808 var vNode = node instanceof abstract_virtual_node_default ? node : get_node_from_tree_default(node);
-1 16809 node = vNode.actualNode;
-1 16810 if (!vNode) {
-1 16811 throw new ReferenceError('Cannot get implicit role of a node outside the current scope.');
-1 16812 }
-1 16813 var nodeName2 = vNode.props.nodeName;
-1 16814 var role = implicit_html_roles_default[nodeName2];
-1 16815 if (!role && chromium) {
-1 16816 var _get_element_spec_def = get_element_spec_default(vNode), chromiumRole = _get_element_spec_def.chromiumRole;
-1 16817 return chromiumRole || null;
-1 16818 }
-1 16819 if (typeof role === 'function') {
-1 16820 return role(vNode);
-1 16821 }
-1 16822 return role || null;
-1 16823 }
-1 16824 var implicit_role_default = implicitRole2;
-1 16825 var inheritsPresentationChain = {
-1 16826 td: [ 'tr' ],
-1 16827 th: [ 'tr' ],
-1 16828 tr: [ 'thead', 'tbody', 'tfoot', 'table' ],
-1 16829 thead: [ 'table' ],
-1 16830 tbody: [ 'table' ],
-1 16831 tfoot: [ 'table' ],
-1 16832 li: [ 'ol', 'ul' ],
-1 16833 dt: [ 'dl', 'div' ],
-1 16834 dd: [ 'dl', 'div' ],
-1 16835 div: [ 'dl' ]
-1 16836 };
-1 16837 function getInheritedRole(vNode, explicitRoleOptions) {
-1 16838 var parentNodeNames = inheritsPresentationChain[vNode.props.nodeName];
-1 16839 if (!parentNodeNames) {
-1 16840 return null;
-1 16841 }
-1 16842 if (!vNode.parent) {
-1 16843 if (!vNode.actualNode) {
-1 16844 return null;
-1 16845 }
-1 16846 throw new ReferenceError('Cannot determine role presentational inheritance of a required parent outside the current scope.');
-1 16847 }
-1 16848 if (!parentNodeNames.includes(vNode.parent.props.nodeName)) {
-1 16849 return null;
-1 16850 }
-1 16851 var parentRole = get_explicit_role_default(vNode.parent, explicitRoleOptions);
-1 16852 if ([ 'none', 'presentation' ].includes(parentRole) && !hasConflictResolution(vNode.parent)) {
-1 16853 return parentRole;
-1 16854 }
-1 16855 if (parentRole) {
-1 16856 return null;
-1 16857 }
-1 16858 return getInheritedRole(vNode.parent, explicitRoleOptions);
-1 16859 }
-1 16860 function resolveImplicitRole(vNode, _ref27) {
-1 16861 var chromium = _ref27.chromium, explicitRoleOptions = _objectWithoutProperties(_ref27, _excluded4);
-1 16862 var implicitRole3 = implicit_role_default(vNode, {
-1 16863 chromium: chromium
-1 16864 });
-1 16865 if (!implicitRole3) {
-1 16866 return null;
-1 16867 }
-1 16868 var presentationalRole = getInheritedRole(vNode, explicitRoleOptions);
-1 16869 if (presentationalRole) {
-1 16870 return presentationalRole;
-1 16871 }
-1 16872 return implicitRole3;
-1 16873 }
-1 16874 function hasConflictResolution(vNode) {
-1 16875 var hasGlobalAria = get_global_aria_attrs_default().some(function(attr) {
-1 16876 return vNode.hasAttr(attr);
-1 16877 });
-1 16878 return hasGlobalAria || _isFocusable(vNode);
-1 16879 }
-1 16880 function resolveRole(node) {
-1 16881 var _ref28 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
-1 16882 var noImplicit = _ref28.noImplicit, roleOptions = _objectWithoutProperties(_ref28, _excluded5);
-1 16883 var vNode = node instanceof abstract_virtual_node_default ? node : get_node_from_tree_default(node);
-1 16884 if (vNode.props.nodeType !== 1) {
-1 16885 return null;
-1 16886 }
-1 16887 var explicitRole2 = get_explicit_role_default(vNode, roleOptions);
-1 16888 if (!explicitRole2) {
-1 16889 return noImplicit ? null : resolveImplicitRole(vNode, roleOptions);
-1 16890 }
-1 16891 if (![ 'presentation', 'none' ].includes(explicitRole2)) {
-1 16892 return explicitRole2;
-1 16893 }
-1 16894 if (hasConflictResolution(vNode)) {
-1 16895 return noImplicit ? null : resolveImplicitRole(vNode, roleOptions);
-1 16896 }
-1 16897 return explicitRole2;
-1 16898 }
-1 16899 function getRole(node) {
-1 16900 var _ref29 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
-1 16901 var noPresentational = _ref29.noPresentational, options = _objectWithoutProperties(_ref29, _excluded6);
-1 16902 var role = resolveRole(node, options);
-1 16903 if (noPresentational && [ 'presentation', 'none' ].includes(role)) {
-1 16904 return null;
-1 16905 }
-1 16906 return role;
-1 16907 }
-1 16908 var get_role_default = getRole;
-1 16909 var alwaysTitleElements = [ 'iframe' ];
-1 16910 function titleText(node) {
-1 16911 var vNode = node instanceof abstract_virtual_node_default ? node : get_node_from_tree_default(node);
-1 16912 if (vNode.props.nodeType !== 1 || !node.hasAttr('title')) {
-1 16913 return '';
-1 16914 }
-1 16915 if (!matches_default2(vNode, alwaysTitleElements) && [ 'none', 'presentation' ].includes(get_role_default(vNode))) {
-1 16916 return '';
-1 16917 }
-1 16918 return vNode.attr('title');
-1 16919 }
-1 16920 var title_text_default = titleText;
-1 16921 function namedFromContents(vNode) {
-1 16922 var _ref30 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, strict = _ref30.strict;
-1 16923 vNode = vNode instanceof abstract_virtual_node_default ? vNode : get_node_from_tree_default(vNode);
-1 16924 if (vNode.props.nodeType !== 1) {
-1 16925 return false;
-1 16926 }
-1 16927 var role = get_role_default(vNode);
-1 16928 var roleDef = standards_default.ariaRoles[role];
-1 16929 if (roleDef && roleDef.nameFromContent) {
-1 16930 return true;
-1 16931 }
-1 16932 if (strict) {
-1 16933 return false;
-1 16934 }
-1 16935 return !roleDef || [ 'presentation', 'none' ].includes(role);
-1 16936 }
-1 16937 var named_from_contents_default = namedFromContents;
-1 16938 function getOwnedVirtual(virtualNode) {
-1 16939 var actualNode = virtualNode.actualNode, children = virtualNode.children;
-1 16940 if (!children) {
-1 16941 throw new Error('getOwnedVirtual requires a virtual node');
-1 16942 }
-1 16943 if (virtualNode.hasAttr('aria-owns')) {
-1 16944 var owns = idrefs_default(actualNode, 'aria-owns').filter(function(element) {
-1 16945 return !!element;
-1 16946 }).map(function(element) {
-1 16947 return axe.utils.getNodeFromTree(element);
-1 16948 });
-1 16949 return [].concat(_toConsumableArray(children), _toConsumableArray(owns));
-1 16950 }
-1 16951 return _toConsumableArray(children);
-1 16952 }
-1 16953 var get_owned_virtual_default = getOwnedVirtual;
-1 16954 function subtreeText(virtualNode) {
-1 16955 var context = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
-1 16956 var alreadyProcessed2 = accessible_text_virtual_default.alreadyProcessed;
-1 16957 context.startNode = context.startNode || virtualNode;
-1 16958 var _context = context, strict = _context.strict, inControlContext = _context.inControlContext, inLabelledByContext = _context.inLabelledByContext;
-1 16959 var _get_element_spec_def2 = get_element_spec_default(virtualNode, {
-1 16960 noMatchAccessibleName: true
-1 16961 }), contentTypes = _get_element_spec_def2.contentTypes;
-1 16962 if (alreadyProcessed2(virtualNode, context) || virtualNode.props.nodeType !== 1 || contentTypes !== null && contentTypes !== void 0 && contentTypes.includes('embedded')) {
-1 16963 return '';
-1 16964 }
-1 16965 if (!named_from_contents_default(virtualNode, {
-1 16966 strict: strict
-1 16967 }) && !context.subtreeDescendant) {
-1 16968 return '';
-1 16969 }
-1 16970 if (!strict) {
-1 16971 var subtreeDescendant = !inControlContext && !inLabelledByContext;
-1 16972 context = _extends({
-1 16973 subtreeDescendant: subtreeDescendant
-1 16974 }, context);
-1 16975 }
-1 16976 return get_owned_virtual_default(virtualNode).reduce(function(contentText, child) {
-1 16977 return appendAccessibleText(contentText, child, context);
-1 16978 }, '');
-1 16979 }
-1 16980 var phrasingElements = get_elements_by_content_type_default('phrasing').concat([ '#text' ]);
-1 16981 function appendAccessibleText(contentText, virtualNode, context) {
-1 16982 var nodeName2 = virtualNode.props.nodeName;
-1 16983 var contentTextAdd = accessible_text_virtual_default(virtualNode, context);
-1 16984 if (!contentTextAdd) {
-1 16985 return contentText;
-1 16986 }
-1 16987 if (!phrasingElements.includes(nodeName2)) {
-1 16988 if (contentTextAdd[0] !== ' ') {
-1 16989 contentTextAdd += ' ';
-1 16990 }
-1 16991 if (contentText && contentText[contentText.length - 1] !== ' ') {
-1 16992 contentTextAdd = ' ' + contentTextAdd;
-1 16993 }
-1 16994 }
-1 16995 return contentText + contentTextAdd;
-1 16996 }
-1 16997 var subtree_text_default = subtreeText;
-1 16998 function labelText(virtualNode) {
-1 16999 var context = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
-1 17000 var alreadyProcessed2 = accessible_text_virtual_default.alreadyProcessed;
-1 17001 if (context.inControlContext || context.inLabelledByContext || alreadyProcessed2(virtualNode, context)) {
-1 17002 return '';
-1 17003 }
-1 17004 if (!context.startNode) {
-1 17005 context.startNode = virtualNode;
-1 17006 }
-1 17007 var labelContext = _extends({
-1 17008 inControlContext: true
-1 17009 }, context);
-1 17010 var explicitLabels = getExplicitLabels(virtualNode);
-1 17011 var implicitLabel = closest_default(virtualNode, 'label');
-1 17012 var labels;
-1 17013 if (implicitLabel) {
-1 17014 labels = [].concat(_toConsumableArray(explicitLabels), [ implicitLabel.actualNode ]);
-1 17015 labels.sort(node_sorter_default);
-1 17016 } else {
-1 17017 labels = explicitLabels;
-1 17018 }
-1 17019 return labels.map(function(label3) {
-1 17020 return accessible_text_default(label3, labelContext);
-1 17021 }).filter(function(text) {
-1 17022 return text !== '';
-1 17023 }).join(' ');
-1 17024 }
-1 17025 function getExplicitLabels(virtualNode) {
-1 17026 if (!virtualNode.attr('id')) {
-1 17027 return [];
-1 17028 }
-1 17029 if (!virtualNode.actualNode) {
-1 17030 throw new TypeError('Cannot resolve explicit label reference for non-DOM nodes');
-1 17031 }
-1 17032 return find_elms_in_context_default({
-1 17033 elm: 'label',
-1 17034 attr: 'for',
-1 17035 value: virtualNode.attr('id'),
-1 17036 context: virtualNode.actualNode
-1 17037 });
-1 17038 }
-1 17039 var label_text_default = labelText;
-1 17040 var defaultButtonValues = {
-1 17041 submit: 'Submit',
-1 17042 image: 'Submit',
-1 17043 reset: 'Reset',
-1 17044 button: ''
-1 17045 };
-1 17046 var nativeTextMethods = {
-1 17047 valueText: function valueText(_ref31) {
-1 17048 var actualNode = _ref31.actualNode;
-1 17049 return actualNode.value || '';
-1 17050 },
-1 17051 buttonDefaultText: function buttonDefaultText(_ref32) {
-1 17052 var actualNode = _ref32.actualNode;
-1 17053 return defaultButtonValues[actualNode.type] || '';
-1 17054 },
-1 17055 tableCaptionText: descendantText.bind(null, 'caption'),
-1 17056 figureText: descendantText.bind(null, 'figcaption'),
-1 17057 svgTitleText: descendantText.bind(null, 'title'),
-1 17058 fieldsetLegendText: descendantText.bind(null, 'legend'),
-1 17059 altText: attrText.bind(null, 'alt'),
-1 17060 tableSummaryText: attrText.bind(null, 'summary'),
-1 17061 titleText: title_text_default,
-1 17062 subtreeText: subtree_text_default,
-1 17063 labelText: label_text_default,
-1 17064 singleSpace: function singleSpace() {
-1 17065 return ' ';
-1 17066 },
-1 17067 placeholderText: attrText.bind(null, 'placeholder')
-1 17068 };
-1 17069 function attrText(attr, vNode) {
-1 17070 return vNode.attr(attr) || '';
-1 17071 }
-1 17072 function descendantText(nodeName2, _ref33, context) {
-1 17073 var actualNode = _ref33.actualNode;
-1 17074 nodeName2 = nodeName2.toLowerCase();
-1 17075 var nodeNames2 = [ nodeName2, actualNode.nodeName.toLowerCase() ].join(',');
-1 17076 var candidate = actualNode.querySelector(nodeNames2);
-1 17077 if (!candidate || candidate.nodeName.toLowerCase() !== nodeName2) {
-1 17078 return '';
-1 17079 }
-1 17080 return accessible_text_default(candidate, context);
-1 17081 }
-1 17082 var native_text_methods_default = nativeTextMethods;
-1 17083 function nativeTextAlternative(virtualNode) {
-1 17084 var context = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
-1 17085 var actualNode = virtualNode.actualNode;
-1 17086 if (virtualNode.props.nodeType !== 1 || [ 'presentation', 'none' ].includes(get_role_default(virtualNode))) {
-1 17087 return '';
-1 17088 }
-1 17089 var textMethods = findTextMethods(virtualNode);
-1 17090 var accName = textMethods.reduce(function(accName2, step) {
-1 17091 return accName2 || step(virtualNode, context);
-1 17092 }, '');
-1 17093 if (context.debug) {
-1 17094 axe.log(accName || '{empty-value}', actualNode, context);
-1 17095 }
-1 17096 return accName;
-1 17097 }
-1 17098 function findTextMethods(virtualNode) {
-1 17099 var elmSpec = get_element_spec_default(virtualNode, {
-1 17100 noMatchAccessibleName: true
-1 17101 });
-1 17102 var methods = elmSpec.namingMethods || [];
-1 17103 return methods.map(function(methodName) {
-1 17104 return native_text_methods_default[methodName];
-1 17105 });
-1 17106 }
-1 17107 var native_text_alternative_default = nativeTextAlternative;
-1 17108 var unsupported = {
-1 17109 accessibleNameFromFieldValue: [ 'combobox', 'listbox', 'progressbar' ]
-1 17110 };
-1 17111 var unsupported_default = unsupported;
-1 17112 function _isVisibleToScreenReaders(vNode) {
-1 17113 vNode = vNode instanceof abstract_virtual_node_default ? vNode : get_node_from_tree_default(vNode);
-1 17114 return isVisibleToScreenReadersVirtual(vNode);
-1 17115 }
-1 17116 var isVisibleToScreenReadersVirtual = memoize_default(function isVisibleToScreenReadersMemoized(vNode, isAncestor) {
-1 17117 if (ariaHidden(vNode)) {
-1 17118 return false;
-1 17119 }
-1 17120 if (vNode.actualNode && vNode.props.nodeName === 'area') {
-1 17121 return !areaHidden(vNode, isVisibleToScreenReadersVirtual);
-1 17122 }
-1 17123 if (_isHiddenForEveryone(vNode, {
-1 17124 skipAncestors: true,
-1 17125 isAncestor: isAncestor
-1 17126 })) {
-1 17127 return false;
-1 17128 }
-1 17129 if (!vNode.parent) {
-1 17130 return true;
-1 17131 }
-1 17132 return isVisibleToScreenReadersVirtual(vNode.parent, true);
-1 17133 });
-1 17134 function visibleVirtual(element, screenReader, noRecursing) {
-1 17135 var vNode = element instanceof abstract_virtual_node_default ? element : get_node_from_tree_default(element);
-1 17136 var visibleMethod = screenReader ? _isVisibleToScreenReaders : _isVisibleOnScreen;
-1 17137 var visible2 = !element.actualNode || element.actualNode && visibleMethod(element);
-1 17138 var result = vNode.children.map(function(child) {
-1 17139 var _child$props = child.props, nodeType = _child$props.nodeType, nodeValue = _child$props.nodeValue;
-1 17140 if (nodeType === 3) {
-1 17141 if (nodeValue && visible2) {
-1 17142 return nodeValue;
-1 17143 }
-1 17144 } else if (!noRecursing) {
-1 17145 return visibleVirtual(child, screenReader);
-1 17146 }
-1 17147 }).join('');
-1 17148 return sanitize_default(result);
-1 17149 }
-1 17150 var visible_virtual_default = visibleVirtual;
-1 17151 var nonTextInputTypes = [ 'button', 'checkbox', 'color', 'file', 'hidden', 'image', 'password', 'radio', 'reset', 'submit' ];
-1 17152 function isNativeTextbox(node) {
-1 17153 node = node instanceof abstract_virtual_node_default ? node : get_node_from_tree_default(node);
-1 17154 var nodeName2 = node.props.nodeName;
-1 17155 return nodeName2 === 'textarea' || nodeName2 === 'input' && !nonTextInputTypes.includes((node.attr('type') || '').toLowerCase());
-1 17156 }
-1 17157 var is_native_textbox_default = isNativeTextbox;
-1 17158 function isNativeSelect(node) {
-1 17159 node = node instanceof abstract_virtual_node_default ? node : get_node_from_tree_default(node);
-1 17160 var nodeName2 = node.props.nodeName;
-1 17161 return nodeName2 === 'select';
-1 17162 }
-1 17163 var is_native_select_default = isNativeSelect;
-1 17164 function isAriaTextbox(node) {
-1 17165 var role = get_explicit_role_default(node);
-1 17166 return role === 'textbox';
-1 17167 }
-1 17168 var is_aria_textbox_default = isAriaTextbox;
-1 17169 function isAriaListbox(node) {
-1 17170 var role = get_explicit_role_default(node);
-1 17171 return role === 'listbox';
-1 17172 }
-1 17173 var is_aria_listbox_default = isAriaListbox;
-1 17174 function isAriaCombobox(node) {
-1 17175 var role = get_explicit_role_default(node);
-1 17176 return role === 'combobox';
-1 17177 }
-1 17178 var is_aria_combobox_default = isAriaCombobox;
-1 17179 var rangeRoles = [ 'progressbar', 'scrollbar', 'slider', 'spinbutton' ];
-1 17180 function isAriaRange(node) {
-1 17181 var role = get_explicit_role_default(node);
-1 17182 return rangeRoles.includes(role);
-1 17183 }
-1 17184 var is_aria_range_default = isAriaRange;
-1 17185 var controlValueRoles = [ 'textbox', 'progressbar', 'scrollbar', 'slider', 'spinbutton', 'combobox', 'listbox' ];
-1 17186 var _formControlValueMethods = {
-1 17187 nativeTextboxValue: nativeTextboxValue,
-1 17188 nativeSelectValue: nativeSelectValue,
-1 17189 ariaTextboxValue: ariaTextboxValue,
-1 17190 ariaListboxValue: ariaListboxValue,
-1 17191 ariaComboboxValue: ariaComboboxValue,
-1 17192 ariaRangeValue: ariaRangeValue
-1 17193 };
-1 17194 function formControlValue(virtualNode) {
-1 17195 var context = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
-1 17196 var actualNode = virtualNode.actualNode;
-1 17197 var unsupportedRoles = unsupported_default.accessibleNameFromFieldValue || [];
-1 17198 var role = get_role_default(virtualNode);
-1 17199 if (context.startNode === virtualNode || !controlValueRoles.includes(role) || unsupportedRoles.includes(role)) {
-1 17200 return '';
16394 17201 }
16395 -1 var protocol = [ 'https:', 'ftps:' ].includes(parser2.protocol) ? parser2.protocol.replace(/s:$/, ':') : parser2.protocol;
16396 -1 var parserPathname = /^\//.test(parser2.pathname) ? parser2.pathname : '/'.concat(parser2.pathname);
16397 -1 var _getPathnameOrFilenam = getPathnameOrFilename(parserPathname), pathname = _getPathnameOrFilenam.pathname, filename = _getPathnameOrFilenam.filename;
16398 -1 return {
16399 -1 protocol: protocol,
16400 -1 hostname: parser2.hostname,
16401 -1 port: getPort(parser2.port),
16402 -1 pathname: /\/$/.test(pathname) ? pathname : ''.concat(pathname, '/'),
16403 -1 search: getSearchPairs(parser2.search),
16404 -1 hash: getHashRoute(parser2.hash),
16405 -1 filename: filename
16406 -1 };
-1 17202 var valueMethods = Object.keys(_formControlValueMethods).map(function(name) {
-1 17203 return _formControlValueMethods[name];
-1 17204 });
-1 17205 var valueString = valueMethods.reduce(function(accName, step) {
-1 17206 return accName || step(virtualNode, context);
-1 17207 }, '');
-1 17208 if (context.debug) {
-1 17209 log_default(valueString || '{empty-value}', actualNode, context);
-1 17210 }
-1 17211 return valueString;
16407 17212 }
16408 -1 function getPort(port) {
16409 -1 var excludePorts = [ '443', '80' ];
16410 -1 return !excludePorts.includes(port) ? port : '';
-1 17213 function nativeTextboxValue(node) {
-1 17214 var vNode = node instanceof abstract_virtual_node_default ? node : get_node_from_tree_default(node);
-1 17215 if (is_native_textbox_default(vNode)) {
-1 17216 return vNode.props.value || '';
-1 17217 }
-1 17218 return '';
16411 17219 }
16412 -1 function getPathnameOrFilename(pathname) {
16413 -1 var filename = pathname.split('/').pop();
16414 -1 if (!filename || filename.indexOf('.') === -1) {
16415 -1 return {
16416 -1 pathname: pathname,
16417 -1 filename: ''
16418 -1 };
-1 17220 function nativeSelectValue(node) {
-1 17221 var vNode = node instanceof abstract_virtual_node_default ? node : get_node_from_tree_default(node);
-1 17222 if (!is_native_select_default(vNode)) {
-1 17223 return '';
16419 17224 }
16420 -1 return {
16421 -1 pathname: pathname.replace(filename, ''),
16422 -1 filename: /index./.test(filename) ? '' : filename
16423 -1 };
-1 17225 var options = query_selector_all_default(vNode, 'option');
-1 17226 var selectedOptions = options.filter(function(option) {
-1 17227 return option.props.selected;
-1 17228 });
-1 17229 if (!selectedOptions.length) {
-1 17230 selectedOptions.push(options[0]);
-1 17231 }
-1 17232 return selectedOptions.map(function(option) {
-1 17233 return visible_virtual_default(option);
-1 17234 }).join(' ') || '';
16424 17235 }
16425 -1 function getSearchPairs(searchStr) {
16426 -1 var query = {};
16427 -1 if (!searchStr || !searchStr.length) {
16428 -1 return query;
-1 17236 function ariaTextboxValue(node) {
-1 17237 var vNode = node instanceof abstract_virtual_node_default ? node : get_node_from_tree_default(node);
-1 17238 var actualNode = vNode.actualNode;
-1 17239 if (!is_aria_textbox_default(vNode)) {
-1 17240 return '';
16429 17241 }
16430 -1 var pairs = searchStr.substring(1).split('&');
16431 -1 if (!pairs || !pairs.length) {
16432 -1 return query;
-1 17242 if (!actualNode || actualNode && !_isHiddenForEveryone(actualNode)) {
-1 17243 return visible_virtual_default(vNode, true);
-1 17244 } else {
-1 17245 return actualNode.textContent;
16433 17246 }
16434 -1 for (var index = 0; index < pairs.length; index++) {
16435 -1 var pair = pairs[index];
16436 -1 var _pair$split = pair.split('='), _pair$split2 = _slicedToArray(_pair$split, 2), key = _pair$split2[0], _pair$split2$ = _pair$split2[1], value = _pair$split2$ === void 0 ? '' : _pair$split2$;
16437 -1 query[decodeURIComponent(key)] = decodeURIComponent(value);
-1 17247 }
-1 17248 function ariaListboxValue(node, context) {
-1 17249 var vNode = node instanceof abstract_virtual_node_default ? node : get_node_from_tree_default(node);
-1 17250 if (!is_aria_listbox_default(vNode)) {
-1 17251 return '';
16438 17252 }
16439 -1 return query;
-1 17253 var selected = get_owned_virtual_default(vNode).filter(function(owned) {
-1 17254 return get_role_default(owned) === 'option' && owned.attr('aria-selected') === 'true';
-1 17255 });
-1 17256 if (selected.length === 0) {
-1 17257 return '';
-1 17258 }
-1 17259 return accessible_text_virtual_default(selected[0], context);
16440 17260 }
16441 -1 function getHashRoute(hash) {
16442 -1 if (!hash) {
-1 17261 function ariaComboboxValue(node, context) {
-1 17262 var vNode = node instanceof abstract_virtual_node_default ? node : get_node_from_tree_default(node);
-1 17263 if (!is_aria_combobox_default(vNode)) {
16443 17264 return '';
16444 17265 }
16445 -1 var hashRegex = /#!?\/?/g;
16446 -1 var hasMatch = hash.match(hashRegex);
16447 -1 if (!hasMatch) {
-1 17266 var listbox = get_owned_virtual_default(vNode).filter(function(elm) {
-1 17267 return get_role_default(elm) === 'listbox';
-1 17268 })[0];
-1 17269 return listbox ? ariaListboxValue(listbox, context) : '';
-1 17270 }
-1 17271 function ariaRangeValue(node) {
-1 17272 var vNode = node instanceof abstract_virtual_node_default ? node : get_node_from_tree_default(node);
-1 17273 if (!is_aria_range_default(vNode) || !vNode.hasAttr('aria-valuenow')) {
16448 17274 return '';
16449 17275 }
16450 -1 var _hasMatch = _slicedToArray(hasMatch, 1), matchedStr = _hasMatch[0];
16451 -1 if (matchedStr === '#') {
-1 17276 var valueNow = +vNode.attr('aria-valuenow');
-1 17277 return !isNaN(valueNow) ? String(valueNow) : '0';
-1 17278 }
-1 17279 var form_control_value_default = formControlValue;
-1 17280 function getUnicodeNonBmpRegExp() {
-1 17281 return /[\u1D00-\u1D7F\u1D80-\u1DBF\u1DC0-\u1DFF\u20A0-\u20CF\u20D0-\u20FF\u2100-\u214F\u2150-\u218F\u2190-\u21FF\u2200-\u22FF\u2300-\u23FF\u2400-\u243F\u2440-\u245F\u2460-\u24FF\u2500-\u257F\u2580-\u259F\u25A0-\u25FF\u2600-\u26FF\u2700-\u27BF\uE000-\uF8FF]/g;
-1 17282 }
-1 17283 function getPunctuationRegExp() {
-1 17284 return /[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&\xa3\xa2\xa5\xa7\u20ac()*+,\-.\/:;<=>?@\[\]^_`{|}~\xb1]/g;
-1 17285 }
-1 17286 function getSupplementaryPrivateUseRegExp() {
-1 17287 return /[\uDB80-\uDBBF][\uDC00-\uDFFF]/g;
-1 17288 }
-1 17289 var emoji_regex_default = function emoji_regex_default() {
-1 17290 return /[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26F9(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC3\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC08\uDC26](?:\u200D\u2B1B)?|[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC2\uDECE-\uDEDB\uDEE0-\uDEE8]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;
-1 17291 };
-1 17292 function hasUnicode(str, options) {
-1 17293 var emoji = options.emoji, nonBmp = options.nonBmp, punctuations = options.punctuations;
-1 17294 if (emoji) {
-1 17295 return emoji_regex_default().test(str);
-1 17296 }
-1 17297 if (nonBmp) {
-1 17298 return getUnicodeNonBmpRegExp().test(str) || getSupplementaryPrivateUseRegExp().test(str);
-1 17299 }
-1 17300 if (punctuations) {
-1 17301 return getPunctuationRegExp().test(str);
-1 17302 }
-1 17303 return false;
-1 17304 }
-1 17305 var has_unicode_default = hasUnicode;
-1 17306 function isIconLigature(textVNode) {
-1 17307 var differenceThreshold = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : .15;
-1 17308 var occurrenceThreshold = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 3;
-1 17309 var nodeValue = textVNode.actualNode.nodeValue.trim();
-1 17310 if (!sanitize_default(nodeValue) || has_unicode_default(nodeValue, {
-1 17311 emoji: true,
-1 17312 nonBmp: true
-1 17313 })) {
-1 17314 return false;
-1 17315 }
-1 17316 var canvasContext = cache_default.get('canvasContext', function() {
-1 17317 return document.createElement('canvas').getContext('2d');
-1 17318 });
-1 17319 var canvas = canvasContext.canvas;
-1 17320 if (!cache_default.get('fonts')) {
-1 17321 cache_default.set('fonts', {});
-1 17322 }
-1 17323 var fonts = cache_default.get('fonts');
-1 17324 var style = window.getComputedStyle(textVNode.parent.actualNode);
-1 17325 var fontFamily = style.getPropertyValue('font-family');
-1 17326 if (!fonts[fontFamily]) {
-1 17327 fonts[fontFamily] = {
-1 17328 occurrences: 0,
-1 17329 numLigatures: 0
-1 17330 };
-1 17331 }
-1 17332 var font = fonts[fontFamily];
-1 17333 if (font.occurrences >= occurrenceThreshold) {
-1 17334 if (font.numLigatures / font.occurrences === 1) {
-1 17335 return true;
-1 17336 } else if (font.numLigatures === 0) {
-1 17337 return false;
-1 17338 }
-1 17339 }
-1 17340 font.occurrences++;
-1 17341 var fontSize = 30;
-1 17342 var fontStyle = ''.concat(fontSize, 'px ').concat(fontFamily);
-1 17343 canvasContext.font = fontStyle;
-1 17344 var firstChar = nodeValue.charAt(0);
-1 17345 var width = canvasContext.measureText(firstChar).width;
-1 17346 if (width < 30) {
-1 17347 var diff = 30 / width;
-1 17348 width *= diff;
-1 17349 fontSize *= diff;
-1 17350 fontStyle = ''.concat(fontSize, 'px ').concat(fontFamily);
-1 17351 }
-1 17352 canvas.width = width;
-1 17353 canvas.height = fontSize;
-1 17354 canvasContext.font = fontStyle;
-1 17355 canvasContext.textAlign = 'left';
-1 17356 canvasContext.textBaseline = 'top';
-1 17357 canvasContext.fillText(firstChar, 0, 0);
-1 17358 var compareData = new Uint32Array(canvasContext.getImageData(0, 0, width, fontSize).data.buffer);
-1 17359 if (!compareData.some(function(pixel) {
-1 17360 return pixel;
-1 17361 })) {
-1 17362 font.numLigatures++;
-1 17363 return true;
-1 17364 }
-1 17365 canvasContext.clearRect(0, 0, width, fontSize);
-1 17366 canvasContext.fillText(nodeValue, 0, 0);
-1 17367 var compareWith = new Uint32Array(canvasContext.getImageData(0, 0, width, fontSize).data.buffer);
-1 17368 var differences = compareData.reduce(function(diff, pixel, i) {
-1 17369 if (pixel === 0 && compareWith[i] === 0) {
-1 17370 return diff;
-1 17371 }
-1 17372 if (pixel !== 0 && compareWith[i] !== 0) {
-1 17373 return diff;
-1 17374 }
-1 17375 return ++diff;
-1 17376 }, 0);
-1 17377 var expectedWidth = nodeValue.split('').reduce(function(width2, _char2) {
-1 17378 return width2 + canvasContext.measureText(_char2).width;
-1 17379 }, 0);
-1 17380 var actualWidth = canvasContext.measureText(nodeValue).width;
-1 17381 var pixelDifference = differences / compareData.length;
-1 17382 var sizeDifference = 1 - actualWidth / expectedWidth;
-1 17383 if (pixelDifference >= differenceThreshold && sizeDifference >= differenceThreshold) {
-1 17384 font.numLigatures++;
-1 17385 return true;
-1 17386 }
-1 17387 return false;
-1 17388 }
-1 17389 var is_icon_ligature_default = isIconLigature;
-1 17390 function accessibleTextVirtual(virtualNode) {
-1 17391 var context = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
-1 17392 context = prepareContext(virtualNode, context);
-1 17393 if (shouldIgnoreHidden(virtualNode, context)) {
-1 17394 return '';
-1 17395 }
-1 17396 if (shouldIgnoreIconLigature(virtualNode, context)) {
-1 17397 return '';
-1 17398 }
-1 17399 var computationSteps = [ arialabelledby_text_default, arialabel_text_default, native_text_alternative_default, form_control_value_default, subtree_text_default, textNodeValue, title_text_default ];
-1 17400 var accName = computationSteps.reduce(function(accName2, step) {
-1 17401 if (context.startNode === virtualNode) {
-1 17402 accName2 = sanitize_default(accName2);
-1 17403 }
-1 17404 if (accName2 !== '') {
-1 17405 return accName2;
-1 17406 }
-1 17407 return step(virtualNode, context);
-1 17408 }, '');
-1 17409 if (context.debug) {
-1 17410 axe.log(accName || '{empty-value}', virtualNode.actualNode, context);
-1 17411 }
-1 17412 return accName;
-1 17413 }
-1 17414 function textNodeValue(virtualNode) {
-1 17415 if (virtualNode.props.nodeType !== 3) {
16452 17416 return '';
16453 17417 }
16454 -1 return hash;
16455 -1 }
16456 -1 var url_props_from_attribute_default = urlPropsFromAttribute;
16457 -1 function visuallyOverlaps(rect, parent) {
16458 -1 var parentRect = parent.getBoundingClientRect();
16459 -1 var parentTop = parentRect.top;
16460 -1 var parentLeft = parentRect.left;
16461 -1 var parentScrollArea = {
16462 -1 top: parentTop - parent.scrollTop,
16463 -1 bottom: parentTop - parent.scrollTop + parent.scrollHeight,
16464 -1 left: parentLeft - parent.scrollLeft,
16465 -1 right: parentLeft - parent.scrollLeft + parent.scrollWidth
16466 -1 };
16467 -1 if (rect.left > parentScrollArea.right && rect.left > parentRect.right || rect.top > parentScrollArea.bottom && rect.top > parentRect.bottom || rect.right < parentScrollArea.left && rect.right < parentRect.left || rect.bottom < parentScrollArea.top && rect.bottom < parentRect.top) {
16468 -1 return false;
-1 17418 return virtualNode.props.nodeValue;
-1 17419 }
-1 17420 function shouldIgnoreHidden(virtualNode, context) {
-1 17421 if (!virtualNode) {
-1 17422 return false;
-1 17423 }
-1 17424 if (virtualNode.props.nodeType !== 1 || context.includeHidden) {
-1 17425 return false;
-1 17426 }
-1 17427 return !_isVisibleToScreenReaders(virtualNode);
-1 17428 }
-1 17429 function shouldIgnoreIconLigature(virtualNode, context) {
-1 17430 var _context$occurrenceTh;
-1 17431 var ignoreIconLigature = context.ignoreIconLigature, pixelThreshold = context.pixelThreshold;
-1 17432 var occurrenceThreshold = (_context$occurrenceTh = context.occurrenceThreshold) !== null && _context$occurrenceTh !== void 0 ? _context$occurrenceTh : context.occuranceThreshold;
-1 17433 if (virtualNode.props.nodeType !== 3 || !ignoreIconLigature) {
-1 17434 return false;
-1 17435 }
-1 17436 return is_icon_ligature_default(virtualNode, pixelThreshold, occurrenceThreshold);
-1 17437 }
-1 17438 function prepareContext(virtualNode, context) {
-1 17439 if (!context.startNode) {
-1 17440 context = _extends({
-1 17441 startNode: virtualNode
-1 17442 }, context);
-1 17443 }
-1 17444 if (virtualNode.props.nodeType === 1 && context.inLabelledByContext && context.includeHidden === void 0) {
-1 17445 context = _extends({
-1 17446 includeHidden: !_isVisibleToScreenReaders(virtualNode)
-1 17447 }, context);
-1 17448 }
-1 17449 return context;
-1 17450 }
-1 17451 accessibleTextVirtual.alreadyProcessed = function alreadyProcessed(virtualnode, context) {
-1 17452 context.processed = context.processed || [];
-1 17453 if (context.processed.includes(virtualnode)) {
-1 17454 return true;
-1 17455 }
-1 17456 context.processed.push(virtualnode);
-1 17457 return false;
-1 17458 };
-1 17459 var accessible_text_virtual_default = accessibleTextVirtual;
-1 17460 function removeUnicode(str, options) {
-1 17461 var emoji = options.emoji, nonBmp = options.nonBmp, punctuations = options.punctuations;
-1 17462 if (emoji) {
-1 17463 str = str.replace(emoji_regex_default(), '');
-1 17464 }
-1 17465 if (nonBmp) {
-1 17466 str = str.replace(getUnicodeNonBmpRegExp(), '');
-1 17467 str = str.replace(getSupplementaryPrivateUseRegExp(), '');
-1 17468 }
-1 17469 if (punctuations) {
-1 17470 str = str.replace(getPunctuationRegExp(), '');
-1 17471 }
-1 17472 return str;
-1 17473 }
-1 17474 var remove_unicode_default = removeUnicode;
-1 17475 function isHumanInterpretable(str) {
-1 17476 if (!str.length) {
-1 17477 return 0;
-1 17478 }
-1 17479 var alphaNumericIconMap = [ 'x', 'i' ];
-1 17480 if (alphaNumericIconMap.includes(str)) {
-1 17481 return 0;
16469 17482 }
16470 -1 var style = window.getComputedStyle(parent);
16471 -1 if (rect.left > parentRect.right || rect.top > parentRect.bottom) {
16472 -1 return style.overflow === 'scroll' || style.overflow === 'auto' || parent instanceof window.HTMLBodyElement || parent instanceof window.HTMLHtmlElement;
-1 17483 var noUnicodeStr = remove_unicode_default(str, {
-1 17484 emoji: true,
-1 17485 nonBmp: true,
-1 17486 punctuations: true
-1 17487 });
-1 17488 if (!sanitize_default(noUnicodeStr)) {
-1 17489 return 0;
16473 17490 }
16474 -1 return true;
-1 17491 return 1;
16475 17492 }
16476 -1 var visually_overlaps_default = visuallyOverlaps;
16477 -1 var isXHTMLGlobal;
16478 -1 var nodeIndex = 0;
16479 -1 var VirtualNode = function(_abstract_virtual_nod) {
16480 -1 _inherits(VirtualNode, _abstract_virtual_nod);
16481 -1 var _super = _createSuper(VirtualNode);
16482 -1 function VirtualNode(node, parent, shadowId) {
16483 -1 var _this;
16484 -1 _classCallCheck(this, VirtualNode);
16485 -1 _this = _super.call(this);
16486 -1 _this.shadowId = shadowId;
16487 -1 _this.children = [];
16488 -1 _this.actualNode = node;
16489 -1 _this.parent = parent;
16490 -1 if (!parent) {
16491 -1 nodeIndex = 0;
-1 17493 var is_human_interpretable_default = isHumanInterpretable;
-1 17494 var _autocomplete = {
-1 17495 stateTerms: [ 'on', 'off' ],
-1 17496 standaloneTerms: [ 'name', 'honorific-prefix', 'given-name', 'additional-name', 'family-name', 'honorific-suffix', 'nickname', 'username', 'new-password', 'current-password', 'organization-title', 'organization', 'street-address', 'address-line1', 'address-line2', 'address-line3', 'address-level4', 'address-level3', 'address-level2', 'address-level1', 'country', 'country-name', 'postal-code', 'cc-name', 'cc-given-name', 'cc-additional-name', 'cc-family-name', 'cc-number', 'cc-exp', 'cc-exp-month', 'cc-exp-year', 'cc-csc', 'cc-type', 'transaction-currency', 'transaction-amount', 'language', 'bday', 'bday-day', 'bday-month', 'bday-year', 'sex', 'url', 'photo', 'one-time-code' ],
-1 17497 qualifiers: [ 'home', 'work', 'mobile', 'fax', 'pager' ],
-1 17498 qualifiedTerms: [ 'tel', 'tel-country-code', 'tel-national', 'tel-area-code', 'tel-local', 'tel-local-prefix', 'tel-local-suffix', 'tel-extension', 'email', 'impp' ],
-1 17499 locations: [ 'billing', 'shipping' ]
-1 17500 };
-1 17501 function isValidAutocomplete(autocompleteValue) {
-1 17502 var _ref34 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, _ref34$looseTyped = _ref34.looseTyped, looseTyped = _ref34$looseTyped === void 0 ? false : _ref34$looseTyped, _ref34$stateTerms = _ref34.stateTerms, stateTerms = _ref34$stateTerms === void 0 ? [] : _ref34$stateTerms, _ref34$locations = _ref34.locations, locations = _ref34$locations === void 0 ? [] : _ref34$locations, _ref34$qualifiers = _ref34.qualifiers, qualifiers = _ref34$qualifiers === void 0 ? [] : _ref34$qualifiers, _ref34$standaloneTerm = _ref34.standaloneTerms, standaloneTerms = _ref34$standaloneTerm === void 0 ? [] : _ref34$standaloneTerm, _ref34$qualifiedTerms = _ref34.qualifiedTerms, qualifiedTerms = _ref34$qualifiedTerms === void 0 ? [] : _ref34$qualifiedTerms;
-1 17503 autocompleteValue = autocompleteValue.toLowerCase().trim();
-1 17504 stateTerms = stateTerms.concat(_autocomplete.stateTerms);
-1 17505 if (stateTerms.includes(autocompleteValue) || autocompleteValue === '') {
-1 17506 return true;
-1 17507 }
-1 17508 qualifiers = qualifiers.concat(_autocomplete.qualifiers);
-1 17509 locations = locations.concat(_autocomplete.locations);
-1 17510 standaloneTerms = standaloneTerms.concat(_autocomplete.standaloneTerms);
-1 17511 qualifiedTerms = qualifiedTerms.concat(_autocomplete.qualifiedTerms);
-1 17512 var autocompleteTerms = autocompleteValue.split(/\s+/g);
-1 17513 if (!looseTyped) {
-1 17514 if (autocompleteTerms[0].length > 8 && autocompleteTerms[0].substr(0, 8) === 'section-') {
-1 17515 autocompleteTerms.shift();
16492 17516 }
16493 -1 _this.nodeIndex = nodeIndex++;
16494 -1 _this._isHidden = null;
16495 -1 _this._cache = {};
16496 -1 if (typeof isXHTMLGlobal === 'undefined') {
16497 -1 isXHTMLGlobal = is_xhtml_default(node.ownerDocument);
-1 17517 if (locations.includes(autocompleteTerms[0])) {
-1 17518 autocompleteTerms.shift();
16498 17519 }
16499 -1 _this._isXHTML = isXHTMLGlobal;
16500 -1 if (node.nodeName.toLowerCase() === 'input') {
16501 -1 var type = node.getAttribute('type');
16502 -1 type = _this._isXHTML ? type : (type || '').toLowerCase();
16503 -1 if (!valid_input_type_default().includes(type)) {
16504 -1 type = 'text';
16505 -1 }
16506 -1 _this._type = type;
-1 17520 if (qualifiers.includes(autocompleteTerms[0])) {
-1 17521 autocompleteTerms.shift();
-1 17522 standaloneTerms = [];
16507 17523 }
16508 -1 if (cache_default.get('nodeMap')) {
16509 -1 cache_default.get('nodeMap').set(node, _assertThisInitialized(_this));
-1 17524 if (autocompleteTerms.length !== 1) {
-1 17525 return false;
16510 17526 }
16511 -1 return _this;
16512 17527 }
16513 -1 _createClass(VirtualNode, [ {
16514 -1 key: 'props',
16515 -1 get: function get() {
16516 -1 if (!this._cache.hasOwnProperty('props')) {
16517 -1 var _this$actualNode = this.actualNode, nodeType = _this$actualNode.nodeType, nodeName2 = _this$actualNode.nodeName, id = _this$actualNode.id, multiple = _this$actualNode.multiple, nodeValue = _this$actualNode.nodeValue, value = _this$actualNode.value, selected = _this$actualNode.selected;
16518 -1 this._cache.props = {
16519 -1 nodeType: nodeType,
16520 -1 nodeName: this._isXHTML ? nodeName2 : nodeName2.toLowerCase(),
16521 -1 id: id,
16522 -1 type: this._type,
16523 -1 multiple: multiple,
16524 -1 nodeValue: nodeValue,
16525 -1 value: value,
16526 -1 selected: selected
16527 -1 };
16528 -1 }
16529 -1 return this._cache.props;
16530 -1 }
16531 -1 }, {
16532 -1 key: 'attr',
16533 -1 value: function attr(attrName) {
16534 -1 if (typeof this.actualNode.getAttribute !== 'function') {
16535 -1 return null;
16536 -1 }
16537 -1 return this.actualNode.getAttribute(attrName);
-1 17528 var purposeTerm = autocompleteTerms[autocompleteTerms.length - 1];
-1 17529 return standaloneTerms.includes(purposeTerm) || qualifiedTerms.includes(purposeTerm);
-1 17530 }
-1 17531 var is_valid_autocomplete_default = isValidAutocomplete;
-1 17532 function labelVirtual(virtualNode) {
-1 17533 var ref, candidate;
-1 17534 if (virtualNode.attr('aria-labelledby')) {
-1 17535 ref = idrefs_default(virtualNode.actualNode, 'aria-labelledby');
-1 17536 candidate = ref.map(function(thing) {
-1 17537 var vNode = get_node_from_tree_default(thing);
-1 17538 return vNode ? visible_virtual_default(vNode) : '';
-1 17539 }).join(' ').trim();
-1 17540 if (candidate) {
-1 17541 return candidate;
16538 17542 }
16539 -1 }, {
16540 -1 key: 'hasAttr',
16541 -1 value: function hasAttr(attrName) {
16542 -1 if (typeof this.actualNode.hasAttribute !== 'function') {
16543 -1 return false;
16544 -1 }
16545 -1 return this.actualNode.hasAttribute(attrName);
-1 17543 }
-1 17544 candidate = virtualNode.attr('aria-label');
-1 17545 if (candidate) {
-1 17546 candidate = sanitize_default(candidate);
-1 17547 if (candidate) {
-1 17548 return candidate;
16546 17549 }
16547 -1 }, {
16548 -1 key: 'attrNames',
16549 -1 get: function get() {
16550 -1 if (!this._cache.hasOwnProperty('attrNames')) {
16551 -1 var attrs;
16552 -1 if (this.actualNode.attributes instanceof window.NamedNodeMap) {
16553 -1 attrs = this.actualNode.attributes;
16554 -1 } else {
16555 -1 attrs = this.actualNode.cloneNode(false).attributes;
16556 -1 }
16557 -1 this._cache.attrNames = Array.from(attrs).map(function(attr) {
16558 -1 return attr.name;
16559 -1 });
16560 -1 }
16561 -1 return this._cache.attrNames;
-1 17550 }
-1 17551 return null;
-1 17552 }
-1 17553 var label_virtual_default = labelVirtual;
-1 17554 function visible(element, screenReader, noRecursing) {
-1 17555 element = get_node_from_tree_default(element);
-1 17556 return visible_virtual_default(element, screenReader, noRecursing);
-1 17557 }
-1 17558 var visible_default = visible;
-1 17559 function labelVirtual2(virtualNode) {
-1 17560 var ref, candidate, doc;
-1 17561 candidate = label_virtual_default(virtualNode);
-1 17562 if (candidate) {
-1 17563 return candidate;
-1 17564 }
-1 17565 if (virtualNode.attr('id')) {
-1 17566 if (!virtualNode.actualNode) {
-1 17567 throw new TypeError('Cannot resolve explicit label reference for non-DOM nodes');
16562 17568 }
16563 -1 }, {
16564 -1 key: 'getComputedStylePropertyValue',
16565 -1 value: function getComputedStylePropertyValue(property) {
16566 -1 var key = 'computedStyle_' + property;
16567 -1 if (!this._cache.hasOwnProperty(key)) {
16568 -1 if (!this._cache.hasOwnProperty('computedStyle')) {
16569 -1 this._cache.computedStyle = window.getComputedStyle(this.actualNode);
16570 -1 }
16571 -1 this._cache[key] = this._cache.computedStyle.getPropertyValue(property);
16572 -1 }
16573 -1 return this._cache[key];
-1 17569 var id = escape_selector_default(virtualNode.attr('id'));
-1 17570 doc = get_root_node_default2(virtualNode.actualNode);
-1 17571 ref = doc.querySelector('label[for="' + id + '"]');
-1 17572 candidate = ref && visible_default(ref, true);
-1 17573 if (candidate) {
-1 17574 return candidate;
16574 17575 }
-1 17576 }
-1 17577 ref = closest_default(virtualNode, 'label');
-1 17578 candidate = ref && visible_virtual_default(ref, true);
-1 17579 if (candidate) {
-1 17580 return candidate;
-1 17581 }
-1 17582 return null;
-1 17583 }
-1 17584 var label_virtual_default2 = labelVirtual2;
-1 17585 function label(node) {
-1 17586 node = get_node_from_tree_default(node);
-1 17587 return label_virtual_default2(node);
-1 17588 }
-1 17589 var label_default = label;
-1 17590 var nativeElementType = [ {
-1 17591 matches: [ {
-1 17592 nodeName: 'textarea'
16575 17593 }, {
16576 -1 key: 'isFocusable',
16577 -1 get: function get() {
16578 -1 if (!this._cache.hasOwnProperty('isFocusable')) {
16579 -1 this._cache.isFocusable = is_focusable_default(this.actualNode);
16580 -1 }
16581 -1 return this._cache.isFocusable;
-1 17594 nodeName: 'input',
-1 17595 properties: {
-1 17596 type: [ 'text', 'password', 'search', 'tel', 'email', 'url' ]
16582 17597 }
16583 -1 }, {
16584 -1 key: 'tabbableElements',
16585 -1 get: function get() {
16586 -1 if (!this._cache.hasOwnProperty('tabbableElements')) {
16587 -1 this._cache.tabbableElements = get_tabbable_elements_default(this);
16588 -1 }
16589 -1 return this._cache.tabbableElements;
-1 17598 } ],
-1 17599 namingMethods: 'labelText'
-1 17600 }, {
-1 17601 matches: {
-1 17602 nodeName: 'input',
-1 17603 properties: {
-1 17604 type: [ 'button', 'submit', 'reset' ]
16590 17605 }
16591 -1 }, {
16592 -1 key: 'clientRects',
16593 -1 get: function get() {
16594 -1 if (!this._cache.hasOwnProperty('clientRects')) {
16595 -1 this._cache.clientRects = Array.from(this.actualNode.getClientRects()).filter(function(rect) {
16596 -1 return rect.width > 0;
16597 -1 });
16598 -1 }
16599 -1 return this._cache.clientRects;
-1 17606 },
-1 17607 namingMethods: [ 'valueText', 'titleText', 'buttonDefaultText' ]
-1 17608 }, {
-1 17609 matches: {
-1 17610 nodeName: 'input',
-1 17611 properties: {
-1 17612 type: 'image'
16600 17613 }
-1 17614 },
-1 17615 namingMethods: [ 'altText', 'valueText', 'labelText', 'titleText', 'buttonDefaultText' ]
-1 17616 }, {
-1 17617 matches: 'button',
-1 17618 namingMethods: 'subtreeText'
-1 17619 }, {
-1 17620 matches: 'fieldset',
-1 17621 namingMethods: 'fieldsetLegendText'
-1 17622 }, {
-1 17623 matches: 'OUTPUT',
-1 17624 namingMethods: 'subtreeText'
-1 17625 }, {
-1 17626 matches: [ {
-1 17627 nodeName: 'select'
16601 17628 }, {
16602 -1 key: 'boundingClientRect',
16603 -1 get: function get() {
16604 -1 if (!this._cache.hasOwnProperty('boundingClientRect')) {
16605 -1 this._cache.boundingClientRect = this.actualNode.getBoundingClientRect();
16606 -1 }
16607 -1 return this._cache.boundingClientRect;
16608 -1 }
16609 -1 } ]);
16610 -1 return VirtualNode;
16611 -1 }(abstract_virtual_node_default);
16612 -1 var virtual_node_default = VirtualNode;
16613 -1 var hasShadowRoot;
16614 -1 function getSlotChildren(node) {
16615 -1 var retVal = [];
16616 -1 node = node.firstChild;
16617 -1 while (node) {
16618 -1 retVal.push(node);
16619 -1 node = node.nextSibling;
16620 -1 }
16621 -1 return retVal;
16622 -1 }
16623 -1 function flattenTree(node, shadowId, parent) {
16624 -1 var retVal, realArray, nodeName2;
16625 -1 function reduceShadowDOM(res, child, parent2) {
16626 -1 var replacements = flattenTree(child, shadowId, parent2);
16627 -1 if (replacements) {
16628 -1 res = res.concat(replacements);
-1 17629 nodeName: 'input',
-1 17630 properties: {
-1 17631 type: /^(?!text|password|search|tel|email|url|button|submit|reset)/
16629 17632 }
16630 -1 return res;
16631 -1 }
16632 -1 if (node.documentElement) {
16633 -1 node = node.documentElement;
16634 -1 }
16635 -1 nodeName2 = node.nodeName.toLowerCase();
16636 -1 if (is_shadow_root_default(node)) {
16637 -1 hasShadowRoot = true;
16638 -1 retVal = new virtual_node_default(node, parent, shadowId);
16639 -1 shadowId = 'a' + Math.random().toString().substring(2);
16640 -1 realArray = Array.from(node.shadowRoot.childNodes);
16641 -1 retVal.children = realArray.reduce(function(res, child) {
16642 -1 return reduceShadowDOM(res, child, retVal);
16643 -1 }, []);
16644 -1 return [ retVal ];
16645 -1 } else {
16646 -1 if (nodeName2 === 'content' && typeof node.getDistributedNodes === 'function') {
16647 -1 realArray = Array.from(node.getDistributedNodes());
16648 -1 return realArray.reduce(function(res, child) {
16649 -1 return reduceShadowDOM(res, child, parent);
16650 -1 }, []);
16651 -1 } else if (nodeName2 === 'slot' && typeof node.assignedNodes === 'function') {
16652 -1 realArray = Array.from(node.assignedNodes());
16653 -1 if (!realArray.length) {
16654 -1 realArray = getSlotChildren(node);
16655 -1 }
16656 -1 var styl = window.getComputedStyle(node);
16657 -1 if (false) {
16658 -1 retVal = new virtual_node_default(node, parent, shadowId);
16659 -1 retVal.children = realArray.reduce(function(res, child) {
16660 -1 return reduceShadowDOM(res, child, retVal);
16661 -1 }, []);
16662 -1 return [ retVal ];
16663 -1 } else {
16664 -1 return realArray.reduce(function(res, child) {
16665 -1 return reduceShadowDOM(res, child, parent);
16666 -1 }, []);
-1 17633 } ],
-1 17634 namingMethods: 'labelText'
-1 17635 }, {
-1 17636 matches: 'summary',
-1 17637 namingMethods: 'subtreeText'
-1 17638 }, {
-1 17639 matches: 'figure',
-1 17640 namingMethods: [ 'figureText', 'titleText' ]
-1 17641 }, {
-1 17642 matches: 'img',
-1 17643 namingMethods: 'altText'
-1 17644 }, {
-1 17645 matches: 'table',
-1 17646 namingMethods: [ 'tableCaptionText', 'tableSummaryText' ]
-1 17647 }, {
-1 17648 matches: [ 'hr', 'br' ],
-1 17649 namingMethods: [ 'titleText', 'singleSpace' ]
-1 17650 } ];
-1 17651 var native_element_type_default = nativeElementType;
-1 17652 function visibleTextNodes(vNode) {
-1 17653 var parentVisible = _isVisibleOnScreen(vNode);
-1 17654 var nodes = [];
-1 17655 vNode.children.forEach(function(child) {
-1 17656 if (child.actualNode.nodeType === 3) {
-1 17657 if (parentVisible) {
-1 17658 nodes.push(child);
16667 17659 }
16668 17660 } else {
16669 -1 if (node.nodeType === 1) {
16670 -1 retVal = new virtual_node_default(node, parent, shadowId);
16671 -1 realArray = Array.from(node.childNodes);
16672 -1 retVal.children = realArray.reduce(function(res, child) {
16673 -1 return reduceShadowDOM(res, child, retVal);
16674 -1 }, []);
16675 -1 return [ retVal ];
16676 -1 } else if (node.nodeType === 3) {
16677 -1 return [ new virtual_node_default(node, parent) ];
16678 -1 }
16679 -1 return void 0;
-1 17661 nodes = nodes.concat(visibleTextNodes(child));
16680 17662 }
16681 -1 }
-1 17663 });
-1 17664 return nodes;
16682 17665 }
16683 -1 function getFlattenedTree() {
16684 -1 var node = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : document.documentElement;
16685 -1 var shadowId = arguments.length > 1 ? arguments[1] : undefined;
16686 -1 hasShadowRoot = false;
16687 -1 cache_default.set('nodeMap', new WeakMap());
16688 -1 var tree = flattenTree(node, shadowId, null);
16689 -1 tree[0]._hasShadowRoot = hasShadowRoot;
16690 -1 return tree;
-1 17666 var visible_text_nodes_default = visibleTextNodes;
-1 17667 var getVisibleChildTextRects = memoize_default(function getVisibleChildTextRectsMemoized(node) {
-1 17668 var vNode = get_node_from_tree_default(node);
-1 17669 var nodeRect = vNode.boundingClientRect;
-1 17670 var clientRects = [];
-1 17671 var overflowHiddenNodes = get_overflow_hidden_ancestors_default(vNode);
-1 17672 node.childNodes.forEach(function(textNode) {
-1 17673 if (textNode.nodeType !== 3 || sanitize_default(textNode.nodeValue) === '') {
-1 17674 return;
-1 17675 }
-1 17676 var contentRects = getContentRects(textNode);
-1 17677 if (isOutsideNodeBounds(contentRects, nodeRect)) {
-1 17678 return;
-1 17679 }
-1 17680 clientRects.push.apply(clientRects, _toConsumableArray(filterHiddenRects(contentRects, overflowHiddenNodes)));
-1 17681 });
-1 17682 return clientRects.length ? clientRects : [ nodeRect ];
-1 17683 });
-1 17684 var get_visible_child_text_rects_default = getVisibleChildTextRects;
-1 17685 function getContentRects(node) {
-1 17686 var range = document.createRange();
-1 17687 range.selectNodeContents(node);
-1 17688 return Array.from(range.getClientRects());
16691 17689 }
16692 -1 var get_flattened_tree_default = getFlattenedTree;
16693 -1 function getBaseLang(lang) {
16694 -1 if (!lang) {
16695 -1 return '';
16696 -1 }
16697 -1 return lang.trim().split('-')[0].toLowerCase();
-1 17690 function isOutsideNodeBounds(rects, nodeRect) {
-1 17691 return rects.some(function(rect) {
-1 17692 var centerPoint = _getRectCenter(rect);
-1 17693 return !_isPointInRect(centerPoint, nodeRect);
-1 17694 });
16698 17695 }
16699 -1 var get_base_lang_default = getBaseLang;
16700 -1 function failureSummary(nodeData) {
16701 -1 var failingChecks = {};
16702 -1 failingChecks.none = nodeData.none.concat(nodeData.all);
16703 -1 failingChecks.any = nodeData.any;
16704 -1 return Object.keys(failingChecks).map(function(key) {
16705 -1 if (!failingChecks[key].length) {
-1 17696 function filterHiddenRects(contentRects, overflowHiddenNodes) {
-1 17697 var visibleRects = [];
-1 17698 contentRects.forEach(function(contentRect) {
-1 17699 if (contentRect.width < 1 || contentRect.height < 1) {
16706 17700 return;
16707 17701 }
16708 -1 var sum = axe._audit.data.failureSummaries[key];
16709 -1 if (sum && typeof sum.failureMessage === 'function') {
16710 -1 return sum.failureMessage(failingChecks[key].map(function(check4) {
16711 -1 return check4.message || '';
16712 -1 }));
-1 17702 var visibleRect = overflowHiddenNodes.reduce(function(rect, overflowNode) {
-1 17703 return rect && _getIntersectionRect(rect, overflowNode.boundingClientRect);
-1 17704 }, contentRect);
-1 17705 if (visibleRect) {
-1 17706 visibleRects.push(visibleRect);
16713 17707 }
16714 -1 }).filter(function(i) {
16715 -1 return i !== void 0;
16716 -1 }).join('\n\n');
-1 17708 });
-1 17709 return visibleRects;
16717 17710 }
16718 -1 var failure_summary_default = failureSummary;
16719 -1 function incompleteFallbackMessage() {
16720 -1 var incompleteFallbackMessage2 = axe._audit.data.incompleteFallbackMessage;
16721 -1 if (typeof incompleteFallbackMessage2 === 'function') {
16722 -1 incompleteFallbackMessage2 = incompleteFallbackMessage2();
-1 17711 function getTextElementStack(node) {
-1 17712 _createGrid();
-1 17713 var vNode = get_node_from_tree_default(node);
-1 17714 var grid = vNode._grid;
-1 17715 if (!grid) {
-1 17716 return [];
16723 17717 }
16724 -1 if (typeof incompleteFallbackMessage2 !== 'string') {
16725 -1 return '';
-1 17718 var clientRects = get_visible_child_text_rects_default(node);
-1 17719 return clientRects.map(function(rect) {
-1 17720 return getRectStack(grid, rect);
-1 17721 });
-1 17722 }
-1 17723 var get_text_element_stack_default = getTextElementStack;
-1 17724 var visualRoles = [ 'checkbox', 'img', 'meter', 'progressbar', 'scrollbar', 'radio', 'slider', 'spinbutton', 'textbox' ];
-1 17725 function isVisualContent(el) {
-1 17726 var vNode = el instanceof abstract_virtual_node_default ? el : get_node_from_tree_default(el);
-1 17727 var role = axe.commons.aria.getExplicitRole(vNode);
-1 17728 if (role) {
-1 17729 return visualRoles.indexOf(role) !== -1;
-1 17730 }
-1 17731 switch (vNode.props.nodeName) {
-1 17732 case 'img':
-1 17733 case 'iframe':
-1 17734 case 'object':
-1 17735 case 'video':
-1 17736 case 'audio':
-1 17737 case 'canvas':
-1 17738 case 'svg':
-1 17739 case 'math':
-1 17740 case 'button':
-1 17741 case 'select':
-1 17742 case 'textarea':
-1 17743 case 'keygen':
-1 17744 case 'progress':
-1 17745 case 'meter':
-1 17746 return true;
-1 17747
-1 17748 case 'input':
-1 17749 return vNode.props.type !== 'hidden';
-1 17750
-1 17751 default:
-1 17752 return false;
16726 17753 }
16727 -1 return incompleteFallbackMessage2;
16728 17754 }
16729 -1 function normalizeRelatedNodes(node, options) {
16730 -1 [ 'any', 'all', 'none' ].forEach(function(type) {
16731 -1 if (!Array.isArray(node[type])) {
16732 -1 return;
16733 -1 }
16734 -1 node[type].filter(function(checkRes) {
16735 -1 return Array.isArray(checkRes.relatedNodes);
16736 -1 }).forEach(function(checkRes) {
16737 -1 checkRes.relatedNodes = checkRes.relatedNodes.map(function(relatedNode) {
16738 -1 var res = {
16739 -1 html: relatedNode.source
16740 -1 };
16741 -1 if (options.elementRef && !relatedNode.fromFrame) {
16742 -1 res.element = relatedNode.element;
16743 -1 }
16744 -1 if (options.selectors !== false || relatedNode.fromFrame) {
16745 -1 res.target = relatedNode.selector;
16746 -1 }
16747 -1 if (options.ancestry) {
16748 -1 res.ancestry = relatedNode.ancestry;
16749 -1 }
16750 -1 if (options.xpath) {
16751 -1 res.xpath = relatedNode.xpath;
16752 -1 }
16753 -1 return res;
16754 -1 });
16755 -1 });
-1 17755 var is_visual_content_default = isVisualContent;
-1 17756 var hiddenTextElms = [ 'head', 'title', 'template', 'script', 'style', 'iframe', 'object', 'video', 'audio', 'noscript' ];
-1 17757 function hasChildTextNodes(elm) {
-1 17758 if (hiddenTextElms.includes(elm.props.nodeName)) {
-1 17759 return false;
-1 17760 }
-1 17761 return elm.children.some(function(_ref35) {
-1 17762 var props = _ref35.props;
-1 17763 return props.nodeType === 3 && props.nodeValue.trim();
16756 17764 });
16757 17765 }
16758 -1 var resultKeys = constants_default.resultGroups;
16759 -1 function processAggregate(results, options) {
16760 -1 var resultObject = axe.utils.aggregateResult(results);
16761 -1 resultKeys.forEach(function(key) {
16762 -1 if (options.resultTypes && !options.resultTypes.includes(key)) {
16763 -1 (resultObject[key] || []).forEach(function(ruleResult) {
16764 -1 if (Array.isArray(ruleResult.nodes) && ruleResult.nodes.length > 0) {
16765 -1 ruleResult.nodes = [ ruleResult.nodes[0] ];
16766 -1 }
16767 -1 });
16768 -1 }
16769 -1 resultObject[key] = (resultObject[key] || []).map(function(ruleResult) {
16770 -1 ruleResult = Object.assign({}, ruleResult);
16771 -1 if (Array.isArray(ruleResult.nodes) && ruleResult.nodes.length > 0) {
16772 -1 ruleResult.nodes = ruleResult.nodes.map(function(subResult) {
16773 -1 if (_typeof(subResult.node) === 'object') {
16774 -1 subResult.html = subResult.node.source;
16775 -1 if (options.elementRef && !subResult.node.fromFrame) {
16776 -1 subResult.element = subResult.node.element;
16777 -1 }
16778 -1 if (options.selectors !== false || subResult.node.fromFrame) {
16779 -1 subResult.target = subResult.node.selector;
16780 -1 }
16781 -1 if (options.ancestry) {
16782 -1 subResult.ancestry = subResult.node.ancestry;
16783 -1 }
16784 -1 if (options.xpath) {
16785 -1 subResult.xpath = subResult.node.xpath;
16786 -1 }
16787 -1 }
16788 -1 delete subResult.result;
16789 -1 delete subResult.node;
16790 -1 normalizeRelatedNodes(subResult, options);
16791 -1 return subResult;
16792 -1 });
16793 -1 }
16794 -1 resultKeys.forEach(function(key2) {
16795 -1 return delete ruleResult[key2];
16796 -1 });
16797 -1 delete ruleResult.pageLevel;
16798 -1 delete ruleResult.result;
16799 -1 return ruleResult;
16800 -1 });
-1 17766 function hasContentVirtual(elm, noRecursion, ignoreAria) {
-1 17767 return hasChildTextNodes(elm) || is_visual_content_default(elm.actualNode) || !ignoreAria && !!label_virtual_default(elm) || !noRecursion && elm.children.some(function(child) {
-1 17768 return child.actualNode.nodeType === 1 && hasContentVirtual(child);
-1 17769 });
-1 17770 }
-1 17771 var has_content_virtual_default = hasContentVirtual;
-1 17772 function hasContent(elm, noRecursion, ignoreAria) {
-1 17773 elm = get_node_from_tree_default(elm);
-1 17774 return has_content_virtual_default(elm, noRecursion, ignoreAria);
-1 17775 }
-1 17776 var has_content_default = hasContent;
-1 17777 function _hasLangText(virtualNode) {
-1 17778 if (typeof virtualNode.children === 'undefined' || hasChildTextNodes(virtualNode)) {
-1 17779 return true;
-1 17780 }
-1 17781 if (virtualNode.props.nodeType === 1 && is_visual_content_default(virtualNode)) {
-1 17782 return !!axe.commons.text.accessibleTextVirtual(virtualNode);
-1 17783 }
-1 17784 return virtualNode.children.some(function(child) {
-1 17785 return !child.attr('lang') && _hasLangText(child) && !_isHiddenForEveryone(child);
16801 17786 });
16802 -1 return resultObject;
16803 17787 }
16804 -1 var process_aggregate_default = processAggregate;
16805 -1 axe._thisWillBeDeletedDoNotUse = axe._thisWillBeDeletedDoNotUse || {};
16806 -1 axe._thisWillBeDeletedDoNotUse.helpers = {
16807 -1 failureSummary: failure_summary_default,
16808 -1 incompleteFallbackMessage: incompleteFallbackMessage,
16809 -1 processAggregate: process_aggregate_default
16810 -1 };
16811 -1 var dataRegex = /\$\{\s?data\s?\}/g;
16812 -1 function substitute(str, data2) {
16813 -1 if (typeof data2 === 'string') {
16814 -1 return str.replace(dataRegex, data2);
-1 17788 function insertedIntoFocusOrder(el) {
-1 17789 var tabIndex = parseInt(el.getAttribute('tabindex'), 10);
-1 17790 return tabIndex > -1 && _isFocusable(el) && !is_natively_focusable_default(el);
-1 17791 }
-1 17792 var inserted_into_focus_order_default = insertedIntoFocusOrder;
-1 17793 function isHiddenWithCSS(node, descendentVisibilityValue) {
-1 17794 var vNode = node instanceof abstract_virtual_node_default ? node : get_node_from_tree_default(node);
-1 17795 var el = node instanceof window.Node ? node : vNode === null || vNode === void 0 ? void 0 : vNode.actualNode;
-1 17796 if (!vNode) {
-1 17797 return _isHiddenWithCSS(el, descendentVisibilityValue);
16815 17798 }
16816 -1 for (var prop in data2) {
16817 -1 if (data2.hasOwnProperty(prop)) {
16818 -1 var regex = new RegExp('\\${\\s?data\\.' + prop + '\\s?}', 'g');
16819 -1 var replace = typeof data2[prop] === 'undefined' ? '' : String(data2[prop]);
16820 -1 str = str.replace(regex, replace);
16821 -1 }
-1 17799 if (vNode._isHiddenWithCSS === void 0) {
-1 17800 vNode._isHiddenWithCSS = _isHiddenWithCSS(el, descendentVisibilityValue);
16822 17801 }
16823 -1 return str;
-1 17802 return vNode._isHiddenWithCSS;
16824 17803 }
16825 -1 function processMessage(message, data2) {
16826 -1 if (!message) {
16827 -1 return;
-1 17804 function _isHiddenWithCSS(el, descendentVisibilityValue) {
-1 17805 if (el.nodeType === 9) {
-1 17806 return false;
16828 17807 }
16829 -1 if (Array.isArray(data2)) {
16830 -1 data2.values = data2.join(', ');
16831 -1 if (typeof message.singular === 'string' && typeof message.plural === 'string') {
16832 -1 var str2 = data2.length === 1 ? message.singular : message.plural;
16833 -1 return substitute(str2, data2);
16834 -1 }
16835 -1 return substitute(message, data2);
-1 17808 if (el.nodeType === 11) {
-1 17809 el = el.host;
16836 17810 }
16837 -1 if (typeof message === 'string') {
16838 -1 return substitute(message, data2);
-1 17811 if ([ 'STYLE', 'SCRIPT' ].includes(el.nodeName.toUpperCase())) {
-1 17812 return false;
16839 17813 }
16840 -1 if (typeof data2 === 'string') {
16841 -1 var _str = message[data2];
16842 -1 return substitute(_str, data2);
-1 17814 var style = window.getComputedStyle(el, null);
-1 17815 if (!style) {
-1 17816 throw new Error('Style does not exist for the given element.');
16843 17817 }
16844 -1 var str = message['default'] || incompleteFallbackMessage();
16845 -1 if (data2 && data2.messageKey && message[data2.messageKey]) {
16846 -1 str = message[data2.messageKey];
-1 17818 var displayValue = style.getPropertyValue('display');
-1 17819 if (displayValue === 'none') {
-1 17820 return true;
16847 17821 }
16848 -1 return processMessage(str, data2);
16849 -1 }
16850 -1 var process_message_default = processMessage;
16851 -1 function getCheckMessage(checkId, type, data2) {
16852 -1 var check4 = axe._audit.data.checks[checkId];
16853 -1 if (!check4) {
16854 -1 throw new Error('Cannot get message for unknown check: '.concat(checkId, '.'));
-1 17822 var HIDDEN_VISIBILITY_VALUES = [ 'hidden', 'collapse' ];
-1 17823 var visibilityValue = style.getPropertyValue('visibility');
-1 17824 if (HIDDEN_VISIBILITY_VALUES.includes(visibilityValue) && !descendentVisibilityValue) {
-1 17825 return true;
16855 17826 }
16856 -1 if (!check4.messages[type]) {
16857 -1 throw new Error('Check "'.concat(checkId, '"" does not have a "').concat(type, '" message.'));
-1 17827 if (HIDDEN_VISIBILITY_VALUES.includes(visibilityValue) && descendentVisibilityValue && HIDDEN_VISIBILITY_VALUES.includes(descendentVisibilityValue)) {
-1 17828 return true;
-1 17829 }
-1 17830 var parent = get_composed_parent_default(el);
-1 17831 if (parent && !HIDDEN_VISIBILITY_VALUES.includes(visibilityValue)) {
-1 17832 return isHiddenWithCSS(parent, visibilityValue);
16858 17833 }
16859 -1 return process_message_default(check4.messages[type], data2);
-1 17834 return false;
16860 17835 }
16861 -1 var get_check_message_default = getCheckMessage;
16862 -1 function getCheckOption(check4, ruleID, options) {
16863 -1 var ruleCheckOption = ((options.rules && options.rules[ruleID] || {}).checks || {})[check4.id];
16864 -1 var checkOption = (options.checks || {})[check4.id];
16865 -1 var enabled = check4.enabled;
16866 -1 var opts = check4.options;
16867 -1 if (checkOption) {
16868 -1 if (checkOption.hasOwnProperty('enabled')) {
16869 -1 enabled = checkOption.enabled;
16870 -1 }
16871 -1 if (checkOption.hasOwnProperty('options')) {
16872 -1 opts = checkOption.options;
16873 -1 }
-1 17836 var is_hidden_with_css_default = isHiddenWithCSS;
-1 17837 function isHTML5(doc) {
-1 17838 var node = doc.doctype;
-1 17839 if (node === null) {
-1 17840 return false;
16874 17841 }
16875 -1 if (ruleCheckOption) {
16876 -1 if (ruleCheckOption.hasOwnProperty('enabled')) {
16877 -1 enabled = ruleCheckOption.enabled;
16878 -1 }
16879 -1 if (ruleCheckOption.hasOwnProperty('options')) {
16880 -1 opts = ruleCheckOption.options;
16881 -1 }
-1 17842 return node.name === 'html' && !node.publicId && !node.systemId;
-1 17843 }
-1 17844 var is_html5_default = isHTML5;
-1 17845 function _isInTabOrder(el) {
-1 17846 var vNode = el instanceof abstract_virtual_node_default ? el : get_node_from_tree_default(el);
-1 17847 if (vNode.props.nodeType !== 1) {
-1 17848 return false;
16882 17849 }
16883 -1 return {
16884 -1 enabled: enabled,
16885 -1 options: opts,
16886 -1 absolutePaths: options.absolutePaths
16887 -1 };
-1 17850 var tabindex = parseInt(vNode.attr('tabindex', 10));
-1 17851 if (tabindex <= -1) {
-1 17852 return false;
-1 17853 }
-1 17854 return _isFocusable(vNode);
16888 17855 }
16889 -1 var get_check_option_default = getCheckOption;
16890 -1 function _getEnvironmentData() {
16891 -1 var _win$location;
16892 -1 var metadata = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
16893 -1 var win = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : window;
16894 -1 if (metadata && _typeof(metadata) === 'object') {
16895 -1 return metadata;
16896 -1 } else if (_typeof(win) !== 'object') {
16897 -1 return {};
-1 17856 function getRoleType(role) {
-1 17857 var _window3;
-1 17858 if (role instanceof abstract_virtual_node_default || (_window3 = window) !== null && _window3 !== void 0 && _window3.Node && role instanceof window.Node) {
-1 17859 role = axe.commons.aria.getRole(role);
16898 17860 }
16899 -1 return {
16900 -1 testEngine: {
16901 -1 name: 'axe-core',
16902 -1 version: axe.version
16903 -1 },
16904 -1 testRunner: {
16905 -1 name: axe._audit.brand
16906 -1 },
16907 -1 testEnvironment: getTestEnvironment(win),
16908 -1 timestamp: new Date().toISOString(),
16909 -1 url: (_win$location = win.location) === null || _win$location === void 0 ? void 0 : _win$location.href
16910 -1 };
-1 17861 var roleDef = standards_default.ariaRoles[role];
-1 17862 return (roleDef === null || roleDef === void 0 ? void 0 : roleDef.type) || null;
16911 17863 }
16912 -1 function getTestEnvironment(win) {
16913 -1 if (!win.navigator || _typeof(win.navigator) !== 'object') {
16914 -1 return {};
-1 17864 var get_role_type_default = getRoleType;
-1 17865 function walkDomNode(node, functor) {
-1 17866 if (functor(node.actualNode) !== false) {
-1 17867 node.children.forEach(function(child) {
-1 17868 return walkDomNode(child, functor);
-1 17869 });
16915 17870 }
16916 -1 var navigator = win.navigator, innerHeight = win.innerHeight, innerWidth = win.innerWidth;
16917 -1 var _ref17 = getOrientation(win) || {}, angle = _ref17.angle, type = _ref17.type;
16918 -1 return {
16919 -1 userAgent: navigator.userAgent,
16920 -1 windowWidth: innerWidth,
16921 -1 windowHeight: innerHeight,
16922 -1 orientationAngle: angle,
16923 -1 orientationType: type
16924 -1 };
16925 17871 }
16926 -1 function getOrientation(_ref18) {
16927 -1 var screen = _ref18.screen;
16928 -1 return screen.orientation || screen.msOrientation || screen.mozOrientation;
-1 17872 var blockLike = [ 'block', 'list-item', 'table', 'flex', 'grid', 'inline-block' ];
-1 17873 function isBlock(elm) {
-1 17874 var display = window.getComputedStyle(elm).getPropertyValue('display');
-1 17875 return blockLike.includes(display) || display.substr(0, 6) === 'table-';
16929 17876 }
16930 -1 function createFrameContext(frame, _ref19) {
16931 -1 var focusable = _ref19.focusable, page = _ref19.page;
16932 -1 return {
16933 -1 node: frame,
16934 -1 include: [],
16935 -1 exclude: [],
16936 -1 initiator: false,
16937 -1 focusable: focusable && frameFocusable(frame),
16938 -1 size: getBoundingSize(frame),
16939 -1 page: page
16940 -1 };
-1 17877 function getBlockParent(node) {
-1 17878 var parentBlock = get_composed_parent_default(node);
-1 17879 while (parentBlock && !isBlock(parentBlock)) {
-1 17880 parentBlock = get_composed_parent_default(parentBlock);
-1 17881 }
-1 17882 return get_node_from_tree_default(parentBlock);
16941 17883 }
16942 -1 function frameFocusable(frame) {
16943 -1 var tabIndex = frame.getAttribute('tabindex');
16944 -1 if (!tabIndex) {
16945 -1 return true;
-1 17884 function isInTextBlock(node, options) {
-1 17885 if (isBlock(node)) {
-1 17886 return false;
16946 17887 }
16947 -1 var _int = parseInt(tabIndex, 10);
16948 -1 return isNaN(_int) || _int >= 0;
-1 17888 var virtualParent = getBlockParent(node);
-1 17889 var parentText = '';
-1 17890 var widgetText = '';
-1 17891 var inBrBlock = 0;
-1 17892 walkDomNode(virtualParent, function(currNode) {
-1 17893 if (inBrBlock === 2) {
-1 17894 return false;
-1 17895 }
-1 17896 if (currNode.nodeType === 3) {
-1 17897 parentText += currNode.nodeValue;
-1 17898 }
-1 17899 if (currNode.nodeType !== 1) {
-1 17900 return;
-1 17901 }
-1 17902 var nodeName2 = (currNode.nodeName || '').toUpperCase();
-1 17903 if (currNode === node) {
-1 17904 inBrBlock = 1;
-1 17905 }
-1 17906 if ([ 'BR', 'HR' ].includes(nodeName2)) {
-1 17907 if (inBrBlock === 0) {
-1 17908 parentText = '';
-1 17909 widgetText = '';
-1 17910 } else {
-1 17911 inBrBlock = 2;
-1 17912 }
-1 17913 } else if (currNode.style.display === 'none' || currNode.style.overflow === 'hidden' || ![ '', null, 'none' ].includes(currNode.style['float']) || ![ '', null, 'relative' ].includes(currNode.style.position)) {
-1 17914 return false;
-1 17915 } else if (get_role_type_default(currNode) === 'widget') {
-1 17916 widgetText += currNode.textContent;
-1 17917 return false;
-1 17918 }
-1 17919 });
-1 17920 parentText = sanitize_default(parentText);
-1 17921 if (options !== null && options !== void 0 && options.noLengthCompare) {
-1 17922 return parentText.length !== 0;
-1 17923 }
-1 17924 widgetText = sanitize_default(widgetText);
-1 17925 return parentText.length > widgetText.length;
16949 17926 }
16950 -1 function getBoundingSize(domNode) {
16951 -1 var width = parseInt(domNode.getAttribute('width'), 10);
16952 -1 var height = parseInt(domNode.getAttribute('height'), 10);
16953 -1 if (isNaN(width) || isNaN(height)) {
16954 -1 var rect = domNode.getBoundingClientRect();
16955 -1 width = isNaN(width) ? rect.width : width;
16956 -1 height = isNaN(height) ? rect.height : height;
-1 17927 var is_in_text_block_default = isInTextBlock;
-1 17928 function isModalOpen(options) {
-1 17929 options = options || {};
-1 17930 var modalPercent = options.modalPercent || .75;
-1 17931 if (cache_default.get('isModalOpen')) {
-1 17932 return cache_default.get('isModalOpen');
16957 17933 }
16958 -1 return {
16959 -1 width: width,
16960 -1 height: height
-1 17934 var definiteModals = query_selector_all_filter_default(axe._tree[0], 'dialog, [role=dialog], [aria-modal=true]', _isVisibleOnScreen);
-1 17935 if (definiteModals.length) {
-1 17936 cache_default.set('isModalOpen', true);
-1 17937 return true;
-1 17938 }
-1 17939 var viewport = get_viewport_size_default(window);
-1 17940 var percentWidth = viewport.width * modalPercent;
-1 17941 var percentHeight = viewport.height * modalPercent;
-1 17942 var x = (viewport.width - percentWidth) / 2;
-1 17943 var y = (viewport.height - percentHeight) / 2;
-1 17944 var points = [ {
-1 17945 x: x,
-1 17946 y: y
-1 17947 }, {
-1 17948 x: viewport.width - x,
-1 17949 y: y
-1 17950 }, {
-1 17951 x: viewport.width / 2,
-1 17952 y: viewport.height / 2
-1 17953 }, {
-1 17954 x: x,
-1 17955 y: viewport.height - y
-1 17956 }, {
-1 17957 x: viewport.width - x,
-1 17958 y: viewport.height - y
-1 17959 } ];
-1 17960 var stacks = points.map(function(point) {
-1 17961 return Array.from(document.elementsFromPoint(point.x, point.y));
-1 17962 });
-1 17963 var _loop4 = function _loop4(_i8) {
-1 17964 var modalElement = stacks[_i8].find(function(elm) {
-1 17965 var style = window.getComputedStyle(elm);
-1 17966 return parseInt(style.width, 10) >= percentWidth && parseInt(style.height, 10) >= percentHeight && style.getPropertyValue('pointer-events') !== 'none' && (style.position === 'absolute' || style.position === 'fixed');
-1 17967 });
-1 17968 if (modalElement && stacks.every(function(stack) {
-1 17969 return stack.includes(modalElement);
-1 17970 })) {
-1 17971 cache_default.set('isModalOpen', true);
-1 17972 return {
-1 17973 v: true
-1 17974 };
-1 17975 }
16961 17976 };
16962 -1 }
16963 -1 function pushUniqueFrame(context5, frame) {
16964 -1 if (is_hidden_default(frame) || find_by_default(context5.frames, 'node', frame)) {
16965 -1 return;
-1 17977 for (var _i8 = 0; _i8 < stacks.length; _i8++) {
-1 17978 var _ret = _loop4(_i8);
-1 17979 if (_typeof(_ret) === 'object') {
-1 17980 return _ret.v;
-1 17981 }
16966 17982 }
16967 -1 context5.frames.push(createFrameContext(frame, context5));
16968 -1 }
16969 -1 function isPageContext(_ref20) {
16970 -1 var include = _ref20.include;
16971 -1 return include.length === 1 && include[0].actualNode === document.documentElement;
-1 17983 cache_default.set('isModalOpen', void 0);
-1 17984 return void 0;
16972 17985 }
16973 -1 function pushUniqueFrameSelector(context5, type, selectorArray) {
16974 -1 context5.frames = context5.frames || [];
16975 -1 var frameSelector = selectorArray.shift();
16976 -1 var frames = document.querySelectorAll(frameSelector);
16977 -1 Array.from(frames).forEach(function(frame) {
16978 -1 context5.frames.forEach(function(contextFrame) {
16979 -1 if (contextFrame.node === frame) {
16980 -1 contextFrame[type].push(selectorArray);
-1 17986 var is_modal_open_default = isModalOpen;
-1 17987 function _isMultiline(domNode) {
-1 17988 var margin = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 2;
-1 17989 var range = domNode.ownerDocument.createRange();
-1 17990 range.setStart(domNode, 0);
-1 17991 range.setEnd(domNode, domNode.childNodes.length);
-1 17992 var lastLineEnd = 0;
-1 17993 var lineCount = 0;
-1 17994 var _iterator4 = _createForOfIteratorHelper(range.getClientRects()), _step4;
-1 17995 try {
-1 17996 for (_iterator4.s(); !(_step4 = _iterator4.n()).done; ) {
-1 17997 var rect = _step4.value;
-1 17998 if (rect.height <= margin) {
-1 17999 continue;
16981 18000 }
16982 -1 });
16983 -1 if (!context5.frames.find(function(result) {
16984 -1 return result.node === frame;
16985 -1 })) {
16986 -1 var result = createFrameContext(frame, context5);
16987 -1 if (selectorArray) {
16988 -1 result[type].push(selectorArray);
-1 18001 if (lastLineEnd > rect.top + margin) {
-1 18002 lastLineEnd = Math.max(lastLineEnd, rect.bottom);
-1 18003 } else if (lineCount === 0) {
-1 18004 lastLineEnd = rect.bottom;
-1 18005 lineCount++;
-1 18006 } else {
-1 18007 return true;
16989 18008 }
16990 -1 context5.frames.push(result);
16991 18009 }
16992 -1 });
-1 18010 } catch (err) {
-1 18011 _iterator4.e(err);
-1 18012 } finally {
-1 18013 _iterator4.f();
-1 18014 }
-1 18015 return false;
16993 18016 }
16994 -1 function normalizeContext(context5) {
16995 -1 if (context5 && _typeof(context5) === 'object' || context5 instanceof window.NodeList) {
16996 -1 if (context5 instanceof window.Node) {
16997 -1 return {
16998 -1 include: [ context5 ],
16999 -1 exclude: []
17000 -1 };
-1 18017 function isNode(element) {
-1 18018 return element instanceof window.Node;
-1 18019 }
-1 18020 var is_node_default = isNode;
-1 18021 var data = {};
-1 18022 var incompleteData = {
-1 18023 set: function set(key, reason) {
-1 18024 if (typeof key !== 'string') {
-1 18025 throw new Error('Incomplete data: key must be a string');
17001 18026 }
17002 -1 if (context5.hasOwnProperty('include') || context5.hasOwnProperty('exclude')) {
17003 -1 return {
17004 -1 include: context5.include && +context5.include.length ? context5.include : [ document ],
17005 -1 exclude: context5.exclude || []
17006 -1 };
-1 18027 if (reason) {
-1 18028 data[key] = reason;
17007 18029 }
17008 -1 if (context5.length === +context5.length) {
17009 -1 return {
17010 -1 include: context5,
17011 -1 exclude: []
17012 -1 };
-1 18030 return data[key];
-1 18031 },
-1 18032 get: function get(key) {
-1 18033 return data[key];
-1 18034 },
-1 18035 clear: function clear() {
-1 18036 data = {};
-1 18037 }
-1 18038 };
-1 18039 var incomplete_data_default = incompleteData;
-1 18040 function elementHasImage(elm, style) {
-1 18041 var graphicNodes = [ 'IMG', 'CANVAS', 'OBJECT', 'IFRAME', 'VIDEO', 'SVG' ];
-1 18042 var nodeName2 = elm.nodeName.toUpperCase();
-1 18043 if (graphicNodes.includes(nodeName2)) {
-1 18044 incomplete_data_default.set('bgColor', 'imgNode');
-1 18045 return true;
-1 18046 }
-1 18047 style = style || window.getComputedStyle(elm);
-1 18048 var bgImageStyle = style.getPropertyValue('background-image');
-1 18049 var hasBgImage = bgImageStyle !== 'none';
-1 18050 if (hasBgImage) {
-1 18051 var hasGradient = /gradient/.test(bgImageStyle);
-1 18052 incomplete_data_default.set('bgColor', hasGradient ? 'bgGradient' : 'bgImage');
-1 18053 }
-1 18054 return hasBgImage;
-1 18055 }
-1 18056 var element_has_image_default = elementHasImage;
-1 18057 function convertColorVal(colorFunc, value, index) {
-1 18058 if (/%$/.test(value)) {
-1 18059 if (index === 3) {
-1 18060 return parseFloat(value) / 100;
-1 18061 }
-1 18062 return parseFloat(value) * 255 / 100;
-1 18063 }
-1 18064 if (colorFunc[index] === 'h') {
-1 18065 if (/turn$/.test(value)) {
-1 18066 return parseFloat(value) * 360;
17013 18067 }
-1 18068 if (/rad$/.test(value)) {
-1 18069 return parseFloat(value) * 57.3;
-1 18070 }
-1 18071 }
-1 18072 return parseFloat(value);
-1 18073 }
-1 18074 function hslToRgb(_ref36) {
-1 18075 var _ref37 = _slicedToArray(_ref36, 4), hue = _ref37[0], saturation = _ref37[1], lightness = _ref37[2], alpha = _ref37[3];
-1 18076 saturation /= 255;
-1 18077 lightness /= 255;
-1 18078 var high = (1 - Math.abs(2 * lightness - 1)) * saturation;
-1 18079 var low = high * (1 - Math.abs(hue / 60 % 2 - 1));
-1 18080 var base = lightness - high / 2;
-1 18081 var colors;
-1 18082 if (hue < 60) {
-1 18083 colors = [ high, low, 0 ];
-1 18084 } else if (hue < 120) {
-1 18085 colors = [ low, high, 0 ];
-1 18086 } else if (hue < 180) {
-1 18087 colors = [ 0, high, low ];
-1 18088 } else if (hue < 240) {
-1 18089 colors = [ 0, low, high ];
-1 18090 } else if (hue < 300) {
-1 18091 colors = [ low, 0, high ];
-1 18092 } else {
-1 18093 colors = [ high, 0, low ];
17014 18094 }
17015 -1 if (typeof context5 === 'string') {
-1 18095 return colors.map(function(color) {
-1 18096 return Math.round((color + base) * 255);
-1 18097 }).concat(alpha);
-1 18098 }
-1 18099 function Color(red, green, blue) {
-1 18100 var alpha = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 1;
-1 18101 this.red = red;
-1 18102 this.green = green;
-1 18103 this.blue = blue;
-1 18104 this.alpha = alpha;
-1 18105 this.toHexString = function toHexString() {
-1 18106 var redString = Math.round(this.red).toString(16);
-1 18107 var greenString = Math.round(this.green).toString(16);
-1 18108 var blueString = Math.round(this.blue).toString(16);
-1 18109 return '#' + (this.red > 15.5 ? redString : '0' + redString) + (this.green > 15.5 ? greenString : '0' + greenString) + (this.blue > 15.5 ? blueString : '0' + blueString);
-1 18110 };
-1 18111 this.toJSON = function toJSON() {
-1 18112 var red2 = this.red, green2 = this.green, blue2 = this.blue, alpha2 = this.alpha;
17016 18113 return {
17017 -1 include: [ context5 ],
17018 -1 exclude: []
-1 18114 red: red2,
-1 18115 green: green2,
-1 18116 blue: blue2,
-1 18117 alpha: alpha2
17019 18118 };
17020 -1 }
17021 -1 return {
17022 -1 include: [ document ],
17023 -1 exclude: []
17024 18119 };
17025 -1 }
17026 -1 function parseSelectorArray(context5, type) {
17027 -1 var item, result = [], nodeList;
17028 -1 for (var i = 0, l = context5[type].length; i < l; i++) {
17029 -1 item = context5[type][i];
17030 -1 if (typeof item === 'string') {
17031 -1 nodeList = Array.from(document.querySelectorAll(item));
17032 -1 result = result.concat(nodeList.map(function(node) {
17033 -1 return get_node_from_tree_default(node);
17034 -1 }));
17035 -1 break;
17036 -1 } else if (item && item.length && !(item instanceof window.Node)) {
17037 -1 if (item.length > 1) {
17038 -1 pushUniqueFrameSelector(context5, type, item);
17039 -1 } else {
17040 -1 nodeList = Array.from(document.querySelectorAll(item[0]));
17041 -1 result = result.concat(nodeList.map(function(node) {
17042 -1 return get_node_from_tree_default(node);
17043 -1 }));
17044 -1 }
17045 -1 } else if (item instanceof window.Node) {
17046 -1 if (item.documentElement instanceof window.Node) {
17047 -1 result.push(context5.flatTree[0]);
17048 -1 } else {
17049 -1 result.push(get_node_from_tree_default(item));
-1 18120 var hexRegex = /^#[0-9a-f]{3,8}$/i;
-1 18121 var colorFnRegex = /^((?:rgb|hsl)a?)\s*\(([^\)]*)\)/i;
-1 18122 this.parseString = function parseString(colorString) {
-1 18123 if (standards_default.cssColors[colorString] || colorString === 'transparent') {
-1 18124 var _ref38 = standards_default.cssColors[colorString] || [ 0, 0, 0 ], _ref39 = _slicedToArray(_ref38, 3), red2 = _ref39[0], green2 = _ref39[1], blue2 = _ref39[2];
-1 18125 this.red = red2;
-1 18126 this.green = green2;
-1 18127 this.blue = blue2;
-1 18128 this.alpha = colorString === 'transparent' ? 0 : 1;
-1 18129 return this;
-1 18130 }
-1 18131 if (colorString.match(colorFnRegex)) {
-1 18132 this.parseColorFnString(colorString);
-1 18133 return this;
-1 18134 }
-1 18135 if (colorString.match(hexRegex)) {
-1 18136 this.parseHexString(colorString);
-1 18137 return this;
-1 18138 }
-1 18139 throw new Error('Unable to parse color "'.concat(colorString, '"'));
-1 18140 };
-1 18141 this.parseRgbString = function parseRgbString(colorString) {
-1 18142 if (colorString === 'transparent') {
-1 18143 this.red = 0;
-1 18144 this.green = 0;
-1 18145 this.blue = 0;
-1 18146 this.alpha = 0;
-1 18147 return;
-1 18148 }
-1 18149 this.parseColorFnString(colorString);
-1 18150 };
-1 18151 this.parseHexString = function parseHexString(colorString) {
-1 18152 if (!colorString.match(hexRegex) || [ 6, 8 ].includes(colorString.length)) {
-1 18153 return;
-1 18154 }
-1 18155 colorString = colorString.replace('#', '');
-1 18156 if (colorString.length < 6) {
-1 18157 var _colorString = colorString, _colorString2 = _slicedToArray(_colorString, 4), r = _colorString2[0], g = _colorString2[1], b = _colorString2[2], a = _colorString2[3];
-1 18158 colorString = r + r + g + g + b + b;
-1 18159 if (a) {
-1 18160 colorString += a + a;
17050 18161 }
17051 18162 }
-1 18163 var aRgbHex = colorString.match(/.{1,2}/g);
-1 18164 this.red = parseInt(aRgbHex[0], 16);
-1 18165 this.green = parseInt(aRgbHex[1], 16);
-1 18166 this.blue = parseInt(aRgbHex[2], 16);
-1 18167 if (aRgbHex[3]) {
-1 18168 this.alpha = parseInt(aRgbHex[3], 16) / 255;
-1 18169 } else {
-1 18170 this.alpha = 1;
-1 18171 }
-1 18172 };
-1 18173 this.parseColorFnString = function parseColorFnString(colorString) {
-1 18174 var _ref40 = colorString.match(colorFnRegex) || [], _ref41 = _slicedToArray(_ref40, 3), colorFunc = _ref41[1], colorValStr = _ref41[2];
-1 18175 if (!colorFunc || !colorValStr) {
-1 18176 return;
-1 18177 }
-1 18178 var colorVals = colorValStr.split(/\s*[,\/\s]\s*/).map(function(str) {
-1 18179 return str.replace(',', '').trim();
-1 18180 }).filter(function(str) {
-1 18181 return str !== '';
-1 18182 });
-1 18183 var colorNums = colorVals.map(function(val, index) {
-1 18184 return convertColorVal(colorFunc, val, index);
-1 18185 });
-1 18186 if (colorFunc.substr(0, 3) === 'hsl') {
-1 18187 colorNums = hslToRgb(colorNums);
-1 18188 }
-1 18189 this.red = colorNums[0];
-1 18190 this.green = colorNums[1];
-1 18191 this.blue = colorNums[2];
-1 18192 this.alpha = typeof colorNums[3] === 'number' ? colorNums[3] : 1;
-1 18193 };
-1 18194 this.getRelativeLuminance = function getRelativeLuminance() {
-1 18195 var rSRGB = this.red / 255;
-1 18196 var gSRGB = this.green / 255;
-1 18197 var bSRGB = this.blue / 255;
-1 18198 var r = rSRGB <= .03928 ? rSRGB / 12.92 : Math.pow((rSRGB + .055) / 1.055, 2.4);
-1 18199 var g = gSRGB <= .03928 ? gSRGB / 12.92 : Math.pow((gSRGB + .055) / 1.055, 2.4);
-1 18200 var b = bSRGB <= .03928 ? bSRGB / 12.92 : Math.pow((bSRGB + .055) / 1.055, 2.4);
-1 18201 return .2126 * r + .7152 * g + .0722 * b;
-1 18202 };
-1 18203 }
-1 18204 var color_default = Color;
-1 18205 function getOwnBackgroundColor(elmStyle) {
-1 18206 var bgColor = new color_default();
-1 18207 bgColor.parseString(elmStyle.getPropertyValue('background-color'));
-1 18208 if (bgColor.alpha !== 0) {
-1 18209 var opacity = elmStyle.getPropertyValue('opacity');
-1 18210 bgColor.alpha = bgColor.alpha * opacity;
17052 18211 }
17053 -1 return result.filter(function(r) {
17054 -1 return r;
17055 -1 });
-1 18212 return bgColor;
17056 18213 }
17057 -1 function validateContext(context5) {
17058 -1 if (context5.include.length === 0) {
17059 -1 if (context5.frames.length === 0) {
17060 -1 var env = _respondable.isInFrame() ? 'frame' : 'page';
17061 -1 return new Error('No elements found for include in ' + env + ' Context');
17062 -1 }
17063 -1 context5.frames.forEach(function(frame, i) {
17064 -1 if (frame.include.length === 0) {
17065 -1 return new Error('No elements found for include in Context of frame ' + i);
17066 -1 }
-1 18214 var get_own_background_color_default = getOwnBackgroundColor;
-1 18215 function isOpaque(node) {
-1 18216 var style = window.getComputedStyle(node);
-1 18217 return element_has_image_default(node, style) || get_own_background_color_default(style).alpha === 1;
-1 18218 }
-1 18219 var is_opaque_default = isOpaque;
-1 18220 function _isSkipLink(element) {
-1 18221 if (!element.href) {
-1 18222 return false;
-1 18223 }
-1 18224 var firstPageLink = cache_default.get('firstPageLink', generateFirstPageLink);
-1 18225 if (!firstPageLink) {
-1 18226 return true;
-1 18227 }
-1 18228 return element.compareDocumentPosition(firstPageLink.actualNode) === element.DOCUMENT_POSITION_FOLLOWING;
-1 18229 }
-1 18230 function generateFirstPageLink() {
-1 18231 var firstPageLink;
-1 18232 if (!window.location.origin) {
-1 18233 firstPageLink = query_selector_all_default(axe._tree, 'a:not([href^="#"]):not([href^="/#"]):not([href^="javascript:"])')[0];
-1 18234 } else {
-1 18235 firstPageLink = query_selector_all_default(axe._tree, 'a[href]:not([href^="javascript:"])').find(function(link) {
-1 18236 return !_isCurrentPageLink(link.actualNode);
17067 18237 });
17068 18238 }
-1 18239 return firstPageLink || null;
17069 18240 }
17070 -1 function getRootNode2(_ref21) {
17071 -1 var include = _ref21.include, exclude = _ref21.exclude;
17072 -1 var selectors = Array.from(include).concat(Array.from(exclude));
17073 -1 for (var i = 0; i < selectors.length; ++i) {
17074 -1 var item = selectors[i];
17075 -1 if (item instanceof window.Element) {
17076 -1 return item.ownerDocument.documentElement;
-1 18241 var clipRegex2 = /rect\s*\(([0-9]+)px,?\s*([0-9]+)px,?\s*([0-9]+)px,?\s*([0-9]+)px\s*\)/;
-1 18242 var clipPathRegex2 = /(\w+)\((\d+)/;
-1 18243 function isClipped(style) {
-1 18244 var matchesClip = style.getPropertyValue('clip').match(clipRegex2);
-1 18245 var matchesClipPath = style.getPropertyValue('clip-path').match(clipPathRegex2);
-1 18246 if (matchesClip && matchesClip.length === 5) {
-1 18247 var position = style.getPropertyValue('position');
-1 18248 if ([ 'fixed', 'absolute' ].includes(position)) {
-1 18249 return matchesClip[3] - matchesClip[1] <= 0 && matchesClip[2] - matchesClip[4] <= 0;
17077 18250 }
17078 -1 if (item instanceof window.Document) {
17079 -1 return item.documentElement;
-1 18251 }
-1 18252 if (matchesClipPath) {
-1 18253 var type = matchesClipPath[1];
-1 18254 var value = parseInt(matchesClipPath[2], 10);
-1 18255 switch (type) {
-1 18256 case 'inset':
-1 18257 return value >= 50;
-1 18258
-1 18259 case 'circle':
-1 18260 return value === 0;
-1 18261
-1 18262 default:
17080 18263 }
17081 18264 }
17082 -1 return document.documentElement;
-1 18265 return false;
17083 18266 }
17084 -1 function Context(spec, flatTree) {
17085 -1 var _spec, _spec2, _spec3, _spec4, _this2 = this;
17086 -1 spec = clone_default(spec);
17087 -1 this.frames = [];
17088 -1 this.page = typeof ((_spec = spec) === null || _spec === void 0 ? void 0 : _spec.page) === 'boolean' ? spec.page : void 0;
17089 -1 this.initiator = typeof ((_spec2 = spec) === null || _spec2 === void 0 ? void 0 : _spec2.initiator) === 'boolean' ? spec.initiator : true;
17090 -1 this.focusable = typeof ((_spec3 = spec) === null || _spec3 === void 0 ? void 0 : _spec3.focusable) === 'boolean' ? spec.focusable : true;
17091 -1 this.size = _typeof((_spec4 = spec) === null || _spec4 === void 0 ? void 0 : _spec4.size) === 'object' ? spec.size : {};
17092 -1 spec = normalizeContext(spec);
17093 -1 this.flatTree = flatTree !== null && flatTree !== void 0 ? flatTree : get_flattened_tree_default(getRootNode2(spec));
17094 -1 this.exclude = spec.exclude;
17095 -1 this.include = spec.include;
17096 -1 this.include = parseSelectorArray(this, 'include');
17097 -1 this.exclude = parseSelectorArray(this, 'exclude');
17098 -1 select_default('frame, iframe', this).forEach(function(frame) {
17099 -1 if (is_node_in_context_default(frame, _this2)) {
17100 -1 pushUniqueFrame(_this2, frame.actualNode);
17101 -1 }
17102 -1 });
17103 -1 if (typeof this.page === 'undefined') {
17104 -1 this.page = isPageContext(this);
17105 -1 this.frames.forEach(function(frame) {
17106 -1 frame.page = _this2.page;
17107 -1 });
-1 18267 function isAreaVisible(el, screenReader, recursed) {
-1 18268 var mapEl = find_up_default(el, 'map');
-1 18269 if (!mapEl) {
-1 18270 return false;
17108 18271 }
17109 -1 var err2 = validateContext(this);
17110 -1 if (err2 instanceof Error) {
17111 -1 throw err2;
-1 18272 var mapElName = mapEl.getAttribute('name');
-1 18273 if (!mapElName) {
-1 18274 return false;
17112 18275 }
17113 -1 if (!Array.isArray(this.include)) {
17114 -1 this.include = Array.from(this.include);
-1 18276 var mapElRootNode = get_root_node_default2(el);
-1 18277 if (!mapElRootNode || mapElRootNode.nodeType !== 9) {
-1 18278 return false;
17115 18279 }
17116 -1 this.include.sort(node_sorter_default);
17117 -1 }
17118 -1 function _getFrameContexts(context5) {
17119 -1 var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
17120 -1 if (options.iframes === false) {
17121 -1 return [];
-1 18280 var refs = query_selector_all_default(axe._tree, 'img[usemap="#'.concat(escape_selector_default(mapElName), '"]'));
-1 18281 if (!refs || !refs.length) {
-1 18282 return false;
17122 18283 }
17123 -1 var _Context = new Context(context5), frames = _Context.frames;
17124 -1 return frames.map(function(_ref22) {
17125 -1 var node = _ref22.node, frameContext = _objectWithoutProperties(_ref22, _excluded2);
17126 -1 frameContext.initiator = false;
17127 -1 var frameSelector = _getAncestry(node);
17128 -1 return {
17129 -1 frameSelector: frameSelector,
17130 -1 frameContext: frameContext
17131 -1 };
-1 18284 return refs.some(function(_ref42) {
-1 18285 var actualNode = _ref42.actualNode;
-1 18286 return isVisible(actualNode, screenReader, recursed);
17132 18287 });
17133 18288 }
17134 -1 function getRule(ruleId) {
17135 -1 var rule3 = axe._audit.rules.find(function(rule4) {
17136 -1 return rule4.id === ruleId;
17137 -1 });
17138 -1 if (!rule3) {
17139 -1 throw new Error('Cannot find rule by id: '.concat(ruleId));
-1 18289 function isVisible(el, screenReader, recursed) {
-1 18290 var _window$Node2;
-1 18291 if (!el) {
-1 18292 throw new TypeError('Cannot determine if element is visible for non-DOM nodes');
17140 18293 }
17141 -1 return rule3;
17142 -1 }
17143 -1 var get_rule_default = getRule;
17144 -1 function _getScroll(elm) {
17145 -1 var buffer = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
17146 -1 var overflowX = elm.scrollWidth > elm.clientWidth + buffer;
17147 -1 var overflowY = elm.scrollHeight > elm.clientHeight + buffer;
17148 -1 if (!(overflowX || overflowY)) {
17149 -1 return;
-1 18294 var vNode = el instanceof abstract_virtual_node_default ? el : get_node_from_tree_default(el);
-1 18295 el = vNode ? vNode.actualNode : el;
-1 18296 var cacheName = '_isVisible' + (screenReader ? 'ScreenReader' : '');
-1 18297 var _ref43 = (_window$Node2 = window.Node) !== null && _window$Node2 !== void 0 ? _window$Node2 : {}, DOCUMENT_NODE = _ref43.DOCUMENT_NODE, DOCUMENT_FRAGMENT_NODE = _ref43.DOCUMENT_FRAGMENT_NODE;
-1 18298 var nodeType = vNode ? vNode.props.nodeType : el.nodeType;
-1 18299 var nodeName2 = vNode ? vNode.props.nodeName : el.nodeName.toLowerCase();
-1 18300 if (vNode && typeof vNode[cacheName] !== 'undefined') {
-1 18301 return vNode[cacheName];
17150 18302 }
17151 -1 var style = window.getComputedStyle(elm);
17152 -1 var scrollableX = isScrollable(style, 'overflow-x');
17153 -1 var scrollableY = isScrollable(style, 'overflow-y');
17154 -1 if (overflowX && scrollableX || overflowY && scrollableY) {
17155 -1 return {
17156 -1 elm: elm,
17157 -1 top: elm.scrollTop,
17158 -1 left: elm.scrollLeft
17159 -1 };
-1 18303 if (nodeType === DOCUMENT_NODE) {
-1 18304 return true;
17160 18305 }
17161 -1 }
17162 -1 function isScrollable(style, prop) {
17163 -1 var overflowProp = style.getPropertyValue(prop);
17164 -1 return [ 'scroll', 'auto' ].includes(overflowProp);
17165 -1 }
17166 -1 function getElmScrollRecursive(root) {
17167 -1 return Array.from(root.children || root.childNodes || []).reduce(function(scrolls, elm) {
17168 -1 var scroll = _getScroll(elm);
17169 -1 if (scroll) {
17170 -1 scrolls.push(scroll);
-1 18306 if ([ 'style', 'script', 'noscript', 'template' ].includes(nodeName2)) {
-1 18307 return false;
-1 18308 }
-1 18309 if (el && nodeType === DOCUMENT_FRAGMENT_NODE) {
-1 18310 el = el.host;
-1 18311 }
-1 18312 if (screenReader) {
-1 18313 var ariaHiddenValue = vNode ? vNode.attr('aria-hidden') : el.getAttribute('aria-hidden');
-1 18314 if (ariaHiddenValue === 'true') {
-1 18315 return false;
17171 18316 }
17172 -1 return scrolls.concat(getElmScrollRecursive(elm));
17173 -1 }, []);
17174 -1 }
17175 -1 function getScrollState() {
17176 -1 var win = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : window;
17177 -1 var root = win.document.documentElement;
17178 -1 var windowScroll = [ win.pageXOffset !== void 0 ? {
17179 -1 elm: win,
17180 -1 top: win.pageYOffset,
17181 -1 left: win.pageXOffset
17182 -1 } : {
17183 -1 elm: root,
17184 -1 top: root.scrollTop,
17185 -1 left: root.scrollLeft
17186 -1 } ];
17187 -1 return windowScroll.concat(getElmScrollRecursive(document.body));
17188 -1 }
17189 -1 var get_scroll_state_default = getScrollState;
17190 -1 function _getStandards() {
17191 -1 return clone_default(standards_default);
17192 -1 }
17193 -1 function getStyleSheetFactory(dynamicDoc) {
17194 -1 if (!dynamicDoc) {
17195 -1 throw new Error('axe.utils.getStyleSheetFactory should be invoked with an argument');
17196 18317 }
17197 -1 return function(options) {
17198 -1 var data2 = options.data, _options$isCrossOrigi = options.isCrossOrigin, isCrossOrigin = _options$isCrossOrigi === void 0 ? false : _options$isCrossOrigi, shadowId = options.shadowId, root = options.root, priority = options.priority, _options$isLink = options.isLink, isLink = _options$isLink === void 0 ? false : _options$isLink;
17199 -1 var style = dynamicDoc.createElement('style');
17200 -1 if (isLink) {
17201 -1 var text32 = dynamicDoc.createTextNode('@import "'.concat(data2.href, '"'));
17202 -1 style.appendChild(text32);
17203 -1 } else {
17204 -1 style.appendChild(dynamicDoc.createTextNode(data2));
-1 18318 if (!el) {
-1 18319 var parent2 = vNode.parent;
-1 18320 var visible3 = true;
-1 18321 if (parent2) {
-1 18322 visible3 = isVisible(parent2, screenReader, true);
17205 18323 }
17206 -1 dynamicDoc.head.appendChild(style);
17207 -1 return {
17208 -1 sheet: style.sheet,
17209 -1 isCrossOrigin: isCrossOrigin,
17210 -1 shadowId: shadowId,
17211 -1 root: root,
17212 -1 priority: priority
17213 -1 };
17214 -1 };
17215 -1 }
17216 -1 var get_stylesheet_factory_default = getStyleSheetFactory;
17217 -1 var styleSheet;
17218 -1 function injectStyle(style) {
17219 -1 if (styleSheet && styleSheet.parentNode) {
17220 -1 if (styleSheet.styleSheet === void 0) {
17221 -1 styleSheet.appendChild(document.createTextNode(style));
17222 -1 } else {
17223 -1 styleSheet.styleSheet.cssText += style;
-1 18324 if (vNode) {
-1 18325 vNode[cacheName] = visible3;
17224 18326 }
17225 -1 return styleSheet;
-1 18327 return visible3;
17226 18328 }
17227 -1 if (!style) {
17228 -1 return;
-1 18329 var style = window.getComputedStyle(el, null);
-1 18330 if (style === null) {
-1 18331 return false;
17229 18332 }
17230 -1 var head = document.head || document.getElementsByTagName('head')[0];
17231 -1 styleSheet = document.createElement('style');
17232 -1 styleSheet.type = 'text/css';
17233 -1 if (styleSheet.styleSheet === void 0) {
17234 -1 styleSheet.appendChild(document.createTextNode(style));
17235 -1 } else {
17236 -1 styleSheet.styleSheet.cssText = style;
-1 18333 if (nodeName2 === 'area') {
-1 18334 return isAreaVisible(el, screenReader, recursed);
17237 18335 }
17238 -1 head.appendChild(styleSheet);
17239 -1 return styleSheet;
17240 -1 }
17241 -1 var inject_style_default = injectStyle;
17242 -1 function isHidden(el, recursed) {
17243 -1 var node = get_node_from_tree_default(el);
17244 -1 if (el.nodeType === 9) {
-1 18336 if (style.getPropertyValue('display') === 'none') {
17245 18337 return false;
17246 18338 }
17247 -1 if (el.nodeType === 11) {
17248 -1 el = el.host;
-1 18339 var elHeight = parseInt(style.getPropertyValue('height'));
-1 18340 var elWidth = parseInt(style.getPropertyValue('width'));
-1 18341 var scroll = _getScroll(el);
-1 18342 var scrollableWithZeroHeight = scroll && elHeight === 0;
-1 18343 var scrollableWithZeroWidth = scroll && elWidth === 0;
-1 18344 var posAbsoluteOverflowHiddenAndSmall = style.getPropertyValue('position') === 'absolute' && (elHeight < 2 || elWidth < 2) && style.getPropertyValue('overflow') === 'hidden';
-1 18345 if (!screenReader && (isClipped(style) || style.getPropertyValue('opacity') === '0' || scrollableWithZeroHeight || scrollableWithZeroWidth || posAbsoluteOverflowHiddenAndSmall)) {
-1 18346 return false;
17249 18347 }
17250 -1 if (node && node._isHidden !== null) {
17251 -1 return node._isHidden;
-1 18348 if (!recursed && (style.getPropertyValue('visibility') === 'hidden' || !screenReader && is_offscreen_default(el))) {
-1 18349 return false;
17252 18350 }
17253 -1 var style = window.getComputedStyle(el, null);
17254 -1 if (!style || !el.parentNode || style.getPropertyValue('display') === 'none' || !recursed && style.getPropertyValue('visibility') === 'hidden' || el.getAttribute('aria-hidden') === 'true') {
-1 18351 var parent = el.assignedSlot ? el.assignedSlot : el.parentNode;
-1 18352 var visible2 = false;
-1 18353 if (parent) {
-1 18354 visible2 = isVisible(parent, screenReader, true);
-1 18355 }
-1 18356 if (vNode) {
-1 18357 vNode[cacheName] = visible2;
-1 18358 }
-1 18359 return visible2;
-1 18360 }
-1 18361 var is_visible_default = isVisible;
-1 18362 function reduceToElementsBelowFloating(elements, targetNode) {
-1 18363 var floatingPositions = [ 'fixed', 'sticky' ];
-1 18364 var finalElements = [];
-1 18365 var targetFound = false;
-1 18366 for (var index = 0; index < elements.length; ++index) {
-1 18367 var currentNode = elements[index];
-1 18368 if (currentNode === targetNode) {
-1 18369 targetFound = true;
-1 18370 }
-1 18371 var style = window.getComputedStyle(currentNode);
-1 18372 if (!targetFound && floatingPositions.indexOf(style.position) !== -1) {
-1 18373 finalElements = [];
-1 18374 continue;
-1 18375 }
-1 18376 finalElements.push(currentNode);
-1 18377 }
-1 18378 return finalElements;
-1 18379 }
-1 18380 var reduce_to_elements_below_floating_default = reduceToElementsBelowFloating;
-1 18381 function _visuallyContains(node, parent) {
-1 18382 var parentScrollAncestor = getScrollAncestor(parent);
-1 18383 do {
-1 18384 var nextScrollAncestor = getScrollAncestor(node);
-1 18385 if (nextScrollAncestor === parentScrollAncestor || nextScrollAncestor === parent) {
-1 18386 return contains2(node, parent);
-1 18387 }
-1 18388 node = nextScrollAncestor;
-1 18389 } while (node);
-1 18390 return false;
-1 18391 }
-1 18392 function getScrollAncestor(node) {
-1 18393 var vNode = get_node_from_tree_default(node);
-1 18394 var ancestor = vNode.parent;
-1 18395 while (ancestor) {
-1 18396 if (_getScroll(ancestor.actualNode)) {
-1 18397 return ancestor.actualNode;
-1 18398 }
-1 18399 ancestor = ancestor.parent;
-1 18400 }
-1 18401 }
-1 18402 function contains2(node, parent) {
-1 18403 var style = window.getComputedStyle(parent);
-1 18404 var overflow = style.getPropertyValue('overflow');
-1 18405 if (style.getPropertyValue('display') === 'inline') {
17255 18406 return true;
17256 18407 }
17257 -1 var parent = el.assignedSlot ? el.assignedSlot : el.parentNode;
17258 -1 var hidden = isHidden(parent, true);
17259 -1 if (node) {
17260 -1 node._isHidden = hidden;
-1 18408 var clientRects = Array.from(node.getClientRects());
-1 18409 var boundingRect = parent.getBoundingClientRect();
-1 18410 var rect = {
-1 18411 left: boundingRect.left,
-1 18412 top: boundingRect.top,
-1 18413 width: boundingRect.width,
-1 18414 height: boundingRect.height
-1 18415 };
-1 18416 if ([ 'scroll', 'auto' ].includes(overflow) || parent instanceof window.HTMLHtmlElement) {
-1 18417 rect.width = parent.scrollWidth;
-1 18418 rect.height = parent.scrollHeight;
17261 18419 }
17262 -1 return hidden;
17263 -1 }
17264 -1 var is_hidden_default = isHidden;
17265 -1 function isHtmlElement(node) {
17266 -1 var _node$props$nodeName, _node$props;
17267 -1 var nodeName2 = (_node$props$nodeName = (_node$props = node.props) === null || _node$props === void 0 ? void 0 : _node$props.nodeName) !== null && _node$props$nodeName !== void 0 ? _node$props$nodeName : node.nodeName.toLowerCase();
17268 -1 if (node.namespaceURI === 'http://www.w3.org/2000/svg') {
17269 -1 return false;
-1 18420 if (clientRects.length === 1 && overflow === 'hidden' && style.getPropertyValue('white-space') === 'nowrap') {
-1 18421 clientRects[0] = rect;
17270 18422 }
17271 -1 return !!standards_default.htmlElms[nodeName2];
-1 18423 return clientRects.some(function(clientRect) {
-1 18424 return !(Math.ceil(clientRect.left) < Math.floor(rect.left) || Math.ceil(clientRect.top) < Math.floor(rect.top) || Math.floor(clientRect.left + clientRect.width) > Math.ceil(rect.left + rect.width) || Math.floor(clientRect.top + clientRect.height) > Math.ceil(rect.top + rect.height));
-1 18425 });
17272 18426 }
17273 -1 var is_html_element_default = isHtmlElement;
17274 -1 function getDeepest(collection) {
17275 -1 return collection.sort(function(a, b) {
17276 -1 if (_contains(a, b)) {
17277 -1 return 1;
-1 18427 function shadowElementsFromPoint(nodeX, nodeY) {
-1 18428 var root = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : document;
-1 18429 var i = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 0;
-1 18430 if (i > 999) {
-1 18431 throw new Error('Infinite loop detected');
-1 18432 }
-1 18433 return Array.from(root.elementsFromPoint(nodeX, nodeY) || []).filter(function(nodes) {
-1 18434 return get_root_node_default2(nodes) === root;
-1 18435 }).reduce(function(stack, elm) {
-1 18436 if (is_shadow_root_default(elm)) {
-1 18437 var shadowStack = shadowElementsFromPoint(nodeX, nodeY, elm.shadowRoot, i + 1);
-1 18438 stack = stack.concat(shadowStack);
-1 18439 if (stack.length && _visuallyContains(stack[0], elm)) {
-1 18440 stack.push(elm);
-1 18441 }
-1 18442 } else {
-1 18443 stack.push(elm);
17278 18444 }
17279 -1 return -1;
17280 -1 })[0];
-1 18445 return stack;
-1 18446 }, []);
17281 18447 }
17282 -1 function isNodeInContext(node, context5) {
17283 -1 var include = context5.include && getDeepest(context5.include.filter(function(candidate) {
17284 -1 return _contains(candidate, node);
17285 -1 }));
17286 -1 var exclude = context5.exclude && getDeepest(context5.exclude.filter(function(candidate) {
17287 -1 return _contains(candidate, node);
17288 -1 }));
17289 -1 if (!exclude && include || exclude && _contains(exclude, include)) {
17290 -1 return true;
-1 18448 var shadow_elements_from_point_default = shadowElementsFromPoint;
-1 18449 function urlPropsFromAttribute(node, attribute) {
-1 18450 if (!node.hasAttribute(attribute)) {
-1 18451 return void 0;
17291 18452 }
17292 -1 return false;
17293 -1 }
17294 -1 var is_node_in_context_default = isNodeInContext;
17295 -1 function matchAncestry(ancestryA, ancestryB) {
17296 -1 if (ancestryA.length !== ancestryB.length) {
17297 -1 return false;
-1 18453 var nodeName2 = node.nodeName.toUpperCase();
-1 18454 var parser2 = node;
-1 18455 if (![ 'A', 'AREA' ].includes(nodeName2) || node.ownerSVGElement) {
-1 18456 parser2 = document.createElement('a');
-1 18457 parser2.href = node.getAttribute(attribute);
17298 18458 }
17299 -1 return ancestryA.every(function(selectorA, index) {
17300 -1 var selectorB = ancestryB[index];
17301 -1 if (!Array.isArray(selectorA)) {
17302 -1 return selectorA === selectorB;
17303 -1 }
17304 -1 if (selectorA.length !== selectorB.length) {
17305 -1 return false;
17306 -1 }
17307 -1 return selectorA.every(function(str, index2) {
17308 -1 return selectorB[index2] === str;
17309 -1 });
17310 -1 });
-1 18459 var protocol = [ 'https:', 'ftps:' ].includes(parser2.protocol) ? parser2.protocol.replace(/s:$/, ':') : parser2.protocol;
-1 18460 var parserPathname = /^\//.test(parser2.pathname) ? parser2.pathname : '/'.concat(parser2.pathname);
-1 18461 var _getPathnameOrFilenam = getPathnameOrFilename(parserPathname), pathname = _getPathnameOrFilenam.pathname, filename = _getPathnameOrFilenam.filename;
-1 18462 return {
-1 18463 protocol: protocol,
-1 18464 hostname: parser2.hostname,
-1 18465 port: getPort(parser2.port),
-1 18466 pathname: /\/$/.test(pathname) ? pathname : ''.concat(pathname, '/'),
-1 18467 search: getSearchPairs(parser2.search),
-1 18468 hash: getHashRoute(parser2.hash),
-1 18469 filename: filename
-1 18470 };
17311 18471 }
17312 -1 var match_ancestry_default = matchAncestry;
17313 -1 var memoizee = __toModule(require_memoizee());
17314 -1 axe._memoizedFns = [];
17315 -1 function memoizeImplementation(fn) {
17316 -1 var memoized = memoizee['default'](fn);
17317 -1 axe._memoizedFns.push(memoized);
17318 -1 return memoized;
-1 18472 function getPort(port) {
-1 18473 var excludePorts = [ '443', '80' ];
-1 18474 return !excludePorts.includes(port) ? port : '';
17319 18475 }
17320 -1 var memoize_default = memoizeImplementation;
17321 -1 function nodeSorter(nodeA, nodeB) {
17322 -1 nodeA = nodeA.actualNode || nodeA;
17323 -1 nodeB = nodeB.actualNode || nodeB;
17324 -1 if (nodeA === nodeB) {
17325 -1 return 0;
17326 -1 }
17327 -1 if (nodeA.compareDocumentPosition(nodeB) & 4) {
17328 -1 return -1;
17329 -1 } else {
17330 -1 return 1;
-1 18476 function getPathnameOrFilename(pathname) {
-1 18477 var filename = pathname.split('/').pop();
-1 18478 if (!filename || filename.indexOf('.') === -1) {
-1 18479 return {
-1 18480 pathname: pathname,
-1 18481 filename: ''
-1 18482 };
17331 18483 }
-1 18484 return {
-1 18485 pathname: pathname.replace(filename, ''),
-1 18486 filename: /index./.test(filename) ? '' : filename
-1 18487 };
17332 18488 }
17333 -1 var node_sorter_default = nodeSorter;
17334 -1 function parseSameOriginStylesheet(sheet, options, priority, importedUrls) {
17335 -1 var isCrossOrigin = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;
17336 -1 var rules = Array.from(sheet.cssRules);
17337 -1 if (!rules) {
17338 -1 return Promise.resolve();
-1 18489 function getSearchPairs(searchStr) {
-1 18490 var query = {};
-1 18491 if (!searchStr || !searchStr.length) {
-1 18492 return query;
17339 18493 }
17340 -1 var cssImportRules = rules.filter(function(r) {
17341 -1 return r.type === 3;
17342 -1 });
17343 -1 if (!cssImportRules.length) {
17344 -1 return Promise.resolve({
17345 -1 isCrossOrigin: isCrossOrigin,
17346 -1 priority: priority,
17347 -1 root: options.rootNode,
17348 -1 shadowId: options.shadowId,
17349 -1 sheet: sheet
17350 -1 });
-1 18494 var pairs = searchStr.substring(1).split('&');
-1 18495 if (!pairs || !pairs.length) {
-1 18496 return query;
17351 18497 }
17352 -1 var cssImportUrlsNotAlreadyImported = cssImportRules.filter(function(rule3) {
17353 -1 return rule3.href;
17354 -1 }).map(function(rule3) {
17355 -1 return rule3.href;
17356 -1 }).filter(function(url) {
17357 -1 return !importedUrls.includes(url);
17358 -1 });
17359 -1 var promises = cssImportUrlsNotAlreadyImported.map(function(importUrl, cssRuleIndex) {
17360 -1 var newPriority = [].concat(_toConsumableArray(priority), [ cssRuleIndex ]);
17361 -1 var isCrossOriginRequest = /^https?:\/\/|^\/\//i.test(importUrl);
17362 -1 return parse_crossorigin_stylesheet_default(importUrl, options, newPriority, importedUrls, isCrossOriginRequest);
17363 -1 });
17364 -1 var nonImportCSSRules = rules.filter(function(r) {
17365 -1 return r.type !== 3;
17366 -1 });
17367 -1 if (!nonImportCSSRules.length) {
17368 -1 return Promise.all(promises);
-1 18498 for (var index = 0; index < pairs.length; index++) {
-1 18499 var pair = pairs[index];
-1 18500 var _pair$split = pair.split('='), _pair$split2 = _slicedToArray(_pair$split, 2), key = _pair$split2[0], _pair$split2$ = _pair$split2[1], value = _pair$split2$ === void 0 ? '' : _pair$split2$;
-1 18501 query[decodeURIComponent(key)] = decodeURIComponent(value);
17369 18502 }
17370 -1 promises.push(Promise.resolve(options.convertDataToStylesheet({
17371 -1 data: nonImportCSSRules.map(function(rule3) {
17372 -1 return rule3.cssText;
17373 -1 }).join(),
17374 -1 isCrossOrigin: isCrossOrigin,
17375 -1 priority: priority,
17376 -1 root: options.rootNode,
17377 -1 shadowId: options.shadowId
17378 -1 })));
17379 -1 return Promise.all(promises);
-1 18503 return query;
17380 18504 }
17381 -1 var parse_sameorigin_stylesheet_default = parseSameOriginStylesheet;
17382 -1 function parseStylesheet(sheet, options, priority, importedUrls) {
17383 -1 var isCrossOrigin = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;
17384 -1 var isSameOrigin = isSameOriginStylesheet(sheet);
17385 -1 if (isSameOrigin) {
17386 -1 return parse_sameorigin_stylesheet_default(sheet, options, priority, importedUrls, isCrossOrigin);
-1 18505 function getHashRoute(hash) {
-1 18506 if (!hash) {
-1 18507 return '';
17387 18508 }
17388 -1 return parse_crossorigin_stylesheet_default(sheet.href, options, priority, importedUrls, true);
-1 18509 var hashRegex = /#!?\/?/g;
-1 18510 var hasMatch = hash.match(hashRegex);
-1 18511 if (!hasMatch) {
-1 18512 return '';
-1 18513 }
-1 18514 var _hasMatch = _slicedToArray(hasMatch, 1), matchedStr = _hasMatch[0];
-1 18515 if (matchedStr === '#') {
-1 18516 return '';
-1 18517 }
-1 18518 return hash;
17389 18519 }
17390 -1 function isSameOriginStylesheet(sheet) {
17391 -1 try {
17392 -1 var rules = sheet.cssRules;
17393 -1 if (!rules && sheet.href) {
17394 -1 return false;
17395 -1 }
17396 -1 return true;
17397 -1 } catch (e) {
-1 18520 var url_props_from_attribute_default = urlPropsFromAttribute;
-1 18521 function visuallyOverlaps(rect, parent) {
-1 18522 var parentRect = parent.getBoundingClientRect();
-1 18523 var parentTop = parentRect.top;
-1 18524 var parentLeft = parentRect.left;
-1 18525 var parentScrollArea = {
-1 18526 top: parentTop - parent.scrollTop,
-1 18527 bottom: parentTop - parent.scrollTop + parent.scrollHeight,
-1 18528 left: parentLeft - parent.scrollLeft,
-1 18529 right: parentLeft - parent.scrollLeft + parent.scrollWidth
-1 18530 };
-1 18531 if (rect.left > parentScrollArea.right && rect.left > parentRect.right || rect.top > parentScrollArea.bottom && rect.top > parentRect.bottom || rect.right < parentScrollArea.left && rect.right < parentRect.left || rect.bottom < parentScrollArea.top && rect.bottom < parentRect.top) {
17398 18532 return false;
17399 18533 }
-1 18534 var style = window.getComputedStyle(parent);
-1 18535 if (rect.left > parentRect.right || rect.top > parentRect.bottom) {
-1 18536 return style.overflow === 'scroll' || style.overflow === 'auto' || parent instanceof window.HTMLBodyElement || parent instanceof window.HTMLHtmlElement;
-1 18537 }
-1 18538 return true;
17400 18539 }
17401 -1 var parse_stylesheet_default = parseStylesheet;
17402 -1 function parseCrossOriginStylesheet(url, options, priority, importedUrls, isCrossOrigin) {
17403 -1 importedUrls.push(url);
17404 -1 return new Promise(function(resolve, reject) {
17405 -1 var request = new XMLHttpRequest();
17406 -1 request.open('GET', url);
17407 -1 request.timeout = constants_default.preload.timeout;
17408 -1 request.addEventListener('error', reject);
17409 -1 request.addEventListener('timeout', reject);
17410 -1 request.addEventListener('loadend', function(event) {
17411 -1 if (event.loaded && request.responseText) {
17412 -1 return resolve(request.responseText);
-1 18540 var visually_overlaps_default = visuallyOverlaps;
-1 18541 var isXHTMLGlobal;
-1 18542 var nodeIndex = 0;
-1 18543 var VirtualNode = function(_abstract_virtual_nod) {
-1 18544 _inherits(VirtualNode, _abstract_virtual_nod);
-1 18545 var _super = _createSuper(VirtualNode);
-1 18546 function VirtualNode(node, parent, shadowId) {
-1 18547 var _this;
-1 18548 _classCallCheck(this, VirtualNode);
-1 18549 _this = _super.call(this);
-1 18550 _this.shadowId = shadowId;
-1 18551 _this.children = [];
-1 18552 _this.actualNode = node;
-1 18553 _this.parent = parent;
-1 18554 if (!parent) {
-1 18555 nodeIndex = 0;
-1 18556 }
-1 18557 _this.nodeIndex = nodeIndex++;
-1 18558 _this._isHidden = null;
-1 18559 _this._cache = {};
-1 18560 if (typeof isXHTMLGlobal === 'undefined') {
-1 18561 isXHTMLGlobal = is_xhtml_default(node.ownerDocument);
-1 18562 }
-1 18563 _this._isXHTML = isXHTMLGlobal;
-1 18564 if (node.nodeName.toLowerCase() === 'input') {
-1 18565 var type = node.getAttribute('type');
-1 18566 type = _this._isXHTML ? type : (type || '').toLowerCase();
-1 18567 if (!valid_input_type_default().includes(type)) {
-1 18568 type = 'text';
17413 18569 }
17414 -1 reject(request.responseText);
17415 -1 });
17416 -1 request.send();
17417 -1 }).then(function(data2) {
17418 -1 var result = options.convertDataToStylesheet({
17419 -1 data: data2,
17420 -1 isCrossOrigin: isCrossOrigin,
17421 -1 priority: priority,
17422 -1 root: options.rootNode,
17423 -1 shadowId: options.shadowId
17424 -1 });
17425 -1 return parse_stylesheet_default(result.sheet, options, priority, importedUrls, result.isCrossOrigin);
17426 -1 });
17427 -1 }
17428 -1 var parse_crossorigin_stylesheet_default = parseCrossOriginStylesheet;
17429 -1 var performanceTimer = function() {
17430 -1 function now() {
17431 -1 if (window.performance && window.performance) {
17432 -1 return window.performance.now();
-1 18570 _this._type = type;
17433 18571 }
-1 18572 if (cache_default.get('nodeMap')) {
-1 18573 cache_default.get('nodeMap').set(node, _assertThisInitialized(_this));
-1 18574 }
-1 18575 return _this;
17434 18576 }
17435 -1 var originalTime = null;
17436 -1 var lastRecordedTime = now();
17437 -1 return {
17438 -1 start: function start() {
17439 -1 this.mark('mark_axe_start');
17440 -1 },
17441 -1 end: function end() {
17442 -1 this.mark('mark_axe_end');
17443 -1 this.measure('axe', 'mark_axe_start', 'mark_axe_end');
17444 -1 this.logMeasures('axe');
17445 -1 },
17446 -1 auditStart: function auditStart() {
17447 -1 this.mark('mark_audit_start');
17448 -1 },
17449 -1 auditEnd: function auditEnd() {
17450 -1 this.mark('mark_audit_end');
17451 -1 this.measure('audit_start_to_end', 'mark_audit_start', 'mark_audit_end');
17452 -1 this.logMeasures();
17453 -1 },
17454 -1 mark: function mark(markName) {
17455 -1 if (window.performance && window.performance.mark !== void 0) {
17456 -1 window.performance.mark(markName);
17457 -1 }
17458 -1 },
17459 -1 measure: function measure(measureName, startMark, endMark) {
17460 -1 if (window.performance && window.performance.measure !== void 0) {
17461 -1 window.performance.measure(measureName, startMark, endMark);
17462 -1 }
17463 -1 },
17464 -1 logMeasures: function logMeasures(measureName) {
17465 -1 function logMeasure(req2) {
17466 -1 log_default('Measure ' + req2.name + ' took ' + req2.duration + 'ms');
17467 -1 }
17468 -1 if (window.performance && window.performance.getEntriesByType !== void 0) {
17469 -1 var axeStart = window.performance.getEntriesByName('mark_axe_start')[0];
17470 -1 var measures = window.performance.getEntriesByType('measure').filter(function(measure) {
17471 -1 return measure.startTime >= axeStart.startTime;
17472 -1 });
17473 -1 for (var i = 0; i < measures.length; ++i) {
17474 -1 var req = measures[i];
17475 -1 if (req.name === measureName) {
17476 -1 logMeasure(req);
17477 -1 return;
17478 -1 }
17479 -1 logMeasure(req);
17480 -1 }
17481 -1 }
17482 -1 },
17483 -1 timeElapsed: function timeElapsed() {
17484 -1 return now() - lastRecordedTime;
17485 -1 },
17486 -1 reset: function reset() {
17487 -1 if (!originalTime) {
17488 -1 originalTime = now();
-1 18577 _createClass(VirtualNode, [ {
-1 18578 key: 'props',
-1 18579 get: function get() {
-1 18580 if (!this._cache.hasOwnProperty('props')) {
-1 18581 var _this$actualNode = this.actualNode, nodeType = _this$actualNode.nodeType, nodeName2 = _this$actualNode.nodeName, id = _this$actualNode.id, multiple = _this$actualNode.multiple, nodeValue = _this$actualNode.nodeValue, value = _this$actualNode.value, selected = _this$actualNode.selected;
-1 18582 this._cache.props = {
-1 18583 nodeType: nodeType,
-1 18584 nodeName: this._isXHTML ? nodeName2 : nodeName2.toLowerCase(),
-1 18585 id: id,
-1 18586 type: this._type,
-1 18587 multiple: multiple,
-1 18588 nodeValue: nodeValue,
-1 18589 value: value,
-1 18590 selected: selected
-1 18591 };
17489 18592 }
17490 -1 lastRecordedTime = now();
-1 18593 return this._cache.props;
17491 18594 }
17492 -1 };
17493 -1 }();
17494 -1 var performance_timer_default = performanceTimer;
17495 -1 if (typeof Object.assign !== 'function') {
17496 -1 (function() {
17497 -1 Object.assign = function(target) {
17498 -1 if (target === void 0 || target === null) {
17499 -1 throw new TypeError('Cannot convert undefined or null to object');
17500 -1 }
17501 -1 var output = Object(target);
17502 -1 for (var index = 1; index < arguments.length; index++) {
17503 -1 var source = arguments[index];
17504 -1 if (source !== void 0 && source !== null) {
17505 -1 for (var nextKey in source) {
17506 -1 if (source.hasOwnProperty(nextKey)) {
17507 -1 output[nextKey] = source[nextKey];
17508 -1 }
17509 -1 }
17510 -1 }
17511 -1 }
17512 -1 return output;
17513 -1 };
17514 -1 })();
17515 -1 }
17516 -1 if (!Array.prototype.find) {
17517 -1 Object.defineProperty(Array.prototype, 'find', {
17518 -1 value: function value(predicate) {
17519 -1 if (this === null) {
17520 -1 throw new TypeError('Array.prototype.find called on null or undefined');
-1 18595 }, {
-1 18596 key: 'attr',
-1 18597 value: function attr(attrName) {
-1 18598 if (typeof this.actualNode.getAttribute !== 'function') {
-1 18599 return null;
17521 18600 }
17522 -1 if (typeof predicate !== 'function') {
17523 -1 throw new TypeError('predicate must be a function');
-1 18601 return this.actualNode.getAttribute(attrName);
-1 18602 }
-1 18603 }, {
-1 18604 key: 'hasAttr',
-1 18605 value: function hasAttr(attrName) {
-1 18606 if (typeof this.actualNode.hasAttribute !== 'function') {
-1 18607 return false;
17524 18608 }
17525 -1 var list = Object(this);
17526 -1 var length = list.length >>> 0;
17527 -1 var thisArg = arguments[1];
17528 -1 var value;
17529 -1 for (var i = 0; i < length; i++) {
17530 -1 value = list[i];
17531 -1 if (predicate.call(thisArg, value, i, list)) {
17532 -1 return value;
-1 18609 return this.actualNode.hasAttribute(attrName);
-1 18610 }
-1 18611 }, {
-1 18612 key: 'attrNames',
-1 18613 get: function get() {
-1 18614 if (!this._cache.hasOwnProperty('attrNames')) {
-1 18615 var attrs;
-1 18616 if (this.actualNode.attributes instanceof window.NamedNodeMap) {
-1 18617 attrs = this.actualNode.attributes;
-1 18618 } else {
-1 18619 attrs = this.actualNode.cloneNode(false).attributes;
17533 18620 }
-1 18621 this._cache.attrNames = Array.from(attrs).map(function(attr) {
-1 18622 return attr.name;
-1 18623 });
17534 18624 }
17535 -1 return void 0;
-1 18625 return this._cache.attrNames;
17536 18626 }
17537 -1 });
17538 -1 }
17539 -1 if (!Array.prototype.findIndex) {
17540 -1 Object.defineProperty(Array.prototype, 'findIndex', {
17541 -1 value: function value(predicate, thisArg) {
17542 -1 if (this === null) {
17543 -1 throw new TypeError('Array.prototype.find called on null or undefined');
17544 -1 }
17545 -1 if (typeof predicate !== 'function') {
17546 -1 throw new TypeError('predicate must be a function');
17547 -1 }
17548 -1 var list = Object(this);
17549 -1 var length = list.length >>> 0;
17550 -1 var value;
17551 -1 for (var i = 0; i < length; i++) {
17552 -1 value = list[i];
17553 -1 if (predicate.call(thisArg, value, i, list)) {
17554 -1 return i;
-1 18627 }, {
-1 18628 key: 'getComputedStylePropertyValue',
-1 18629 value: function getComputedStylePropertyValue(property) {
-1 18630 var key = 'computedStyle_' + property;
-1 18631 if (!this._cache.hasOwnProperty(key)) {
-1 18632 if (!this._cache.hasOwnProperty('computedStyle')) {
-1 18633 this._cache.computedStyle = window.getComputedStyle(this.actualNode);
17555 18634 }
-1 18635 this._cache[key] = this._cache.computedStyle.getPropertyValue(property);
17556 18636 }
17557 -1 return -1;
17558 -1 }
17559 -1 });
17560 -1 }
17561 -1 function _pollyfillElementsFromPoint() {
17562 -1 if (document.elementsFromPoint) {
17563 -1 return document.elementsFromPoint;
17564 -1 }
17565 -1 if (document.msElementsFromPoint) {
17566 -1 return document.msElementsFromPoint;
17567 -1 }
17568 -1 var usePointer = function() {
17569 -1 var element = document.createElement('x');
17570 -1 element.style.cssText = 'pointer-events:auto';
17571 -1 return element.style.pointerEvents === 'auto';
17572 -1 }();
17573 -1 var cssProp = usePointer ? 'pointer-events' : 'visibility';
17574 -1 var cssDisableVal = usePointer ? 'none' : 'hidden';
17575 -1 var style = document.createElement('style');
17576 -1 style.innerHTML = usePointer ? '* { pointer-events: all }' : '* { visibility: visible }';
17577 -1 return function(x, y) {
17578 -1 var current, i, d;
17579 -1 var elements = [];
17580 -1 var previousPointerEvents = [];
17581 -1 document.head.appendChild(style);
17582 -1 while ((current = document.elementFromPoint(x, y)) && elements.indexOf(current) === -1) {
17583 -1 elements.push(current);
17584 -1 previousPointerEvents.push({
17585 -1 value: current.style.getPropertyValue(cssProp),
17586 -1 priority: current.style.getPropertyPriority(cssProp)
17587 -1 });
17588 -1 current.style.setProperty(cssProp, cssDisableVal, 'important');
17589 -1 }
17590 -1 if (elements.indexOf(document.documentElement) < elements.length - 1) {
17591 -1 elements.splice(elements.indexOf(document.documentElement), 1);
17592 -1 elements.push(document.documentElement);
-1 18637 return this._cache[key];
17593 18638 }
17594 -1 for (i = previousPointerEvents.length; !!(d = previousPointerEvents[--i]); ) {
17595 -1 elements[i].style.setProperty(cssProp, d.value ? d.value : '', d.priority);
-1 18639 }, {
-1 18640 key: 'isFocusable',
-1 18641 get: function get() {
-1 18642 if (!this._cache.hasOwnProperty('isFocusable')) {
-1 18643 this._cache.isFocusable = _isFocusable(this.actualNode);
-1 18644 }
-1 18645 return this._cache.isFocusable;
17596 18646 }
17597 -1 document.head.removeChild(style);
17598 -1 return elements;
17599 -1 };
17600 -1 }
17601 -1 if (typeof window.addEventListener === 'function') {
17602 -1 document.elementsFromPoint = _pollyfillElementsFromPoint();
17603 -1 }
17604 -1 if (!Array.prototype.includes) {
17605 -1 Object.defineProperty(Array.prototype, 'includes', {
17606 -1 value: function value(searchElement) {
17607 -1 var O = Object(this);
17608 -1 var len = parseInt(O.length, 10) || 0;
17609 -1 if (len === 0) {
17610 -1 return false;
-1 18647 }, {
-1 18648 key: 'tabbableElements',
-1 18649 get: function get() {
-1 18650 if (!this._cache.hasOwnProperty('tabbableElements')) {
-1 18651 this._cache.tabbableElements = get_tabbable_elements_default(this);
17611 18652 }
17612 -1 var n = parseInt(arguments[1], 10) || 0;
17613 -1 var k;
17614 -1 if (n >= 0) {
17615 -1 k = n;
17616 -1 } else {
17617 -1 k = len + n;
17618 -1 if (k < 0) {
17619 -1 k = 0;
17620 -1 }
-1 18653 return this._cache.tabbableElements;
-1 18654 }
-1 18655 }, {
-1 18656 key: 'clientRects',
-1 18657 get: function get() {
-1 18658 if (!this._cache.hasOwnProperty('clientRects')) {
-1 18659 this._cache.clientRects = Array.from(this.actualNode.getClientRects()).filter(function(rect) {
-1 18660 return rect.width > 0;
-1 18661 });
17621 18662 }
17622 -1 var currentElement;
17623 -1 while (k < len) {
17624 -1 currentElement = O[k];
17625 -1 if (searchElement === currentElement || searchElement !== searchElement && currentElement !== currentElement) {
17626 -1 return true;
17627 -1 }
17628 -1 k++;
-1 18663 return this._cache.clientRects;
-1 18664 }
-1 18665 }, {
-1 18666 key: 'boundingClientRect',
-1 18667 get: function get() {
-1 18668 if (!this._cache.hasOwnProperty('boundingClientRect')) {
-1 18669 this._cache.boundingClientRect = this.actualNode.getBoundingClientRect();
17629 18670 }
17630 -1 return false;
-1 18671 return this._cache.boundingClientRect;
-1 18672 }
-1 18673 } ]);
-1 18674 return VirtualNode;
-1 18675 }(abstract_virtual_node_default);
-1 18676 var virtual_node_default = VirtualNode;
-1 18677 function tokenList(str) {
-1 18678 return (str || '').trim().replace(/\s{2,}/g, ' ').split(' ');
-1 18679 }
-1 18680 var token_list_default = tokenList;
-1 18681 var idsKey = ' [idsMap]';
-1 18682 function getNodesMatchingExpression(domTree, expressions, filter) {
-1 18683 var selectorMap = domTree[0]._selectorMap;
-1 18684 if (!selectorMap) {
-1 18685 return;
-1 18686 }
-1 18687 var shadowId = domTree[0].shadowId;
-1 18688 for (var _i9 = 0; _i9 < expressions.length; _i9++) {
-1 18689 if (expressions[_i9].length > 1 && expressions[_i9].some(function(expression) {
-1 18690 return isGlobalSelector(expression);
-1 18691 })) {
-1 18692 return;
17631 18693 }
-1 18694 }
-1 18695 var nodeSet = new Set();
-1 18696 expressions.forEach(function(expression) {
-1 18697 var _matchingNodes$nodes;
-1 18698 var matchingNodes = findMatchingNodes(expression, selectorMap, shadowId);
-1 18699 matchingNodes === null || matchingNodes === void 0 ? void 0 : (_matchingNodes$nodes = matchingNodes.nodes) === null || _matchingNodes$nodes === void 0 ? void 0 : _matchingNodes$nodes.forEach(function(node) {
-1 18700 if (matchingNodes.isComplexSelector && !_matchesExpression(node, expression)) {
-1 18701 return;
-1 18702 }
-1 18703 nodeSet.add(node);
-1 18704 });
-1 18705 });
-1 18706 var matchedNodes = [];
-1 18707 nodeSet.forEach(function(node) {
-1 18708 return matchedNodes.push(node);
-1 18709 });
-1 18710 if (filter) {
-1 18711 matchedNodes = matchedNodes.filter(filter);
-1 18712 }
-1 18713 return matchedNodes.sort(function(a, b) {
-1 18714 return a.nodeIndex - b.nodeIndex;
17632 18715 });
17633 18716 }
17634 -1 if (!Array.prototype.some) {
17635 -1 Object.defineProperty(Array.prototype, 'some', {
17636 -1 value: function value(fun) {
17637 -1 if (this == null) {
17638 -1 throw new TypeError('Array.prototype.some called on null or undefined');
-1 18717 function findMatchingNodes(expression, selectorMap, shadowId) {
-1 18718 var exp = expression[expression.length - 1];
-1 18719 var nodes = null;
-1 18720 var isComplexSelector = expression.length > 1 || !!exp.pseudos || !!exp.classes;
-1 18721 if (isGlobalSelector(exp)) {
-1 18722 nodes = selectorMap['*'];
-1 18723 } else {
-1 18724 if (exp.id) {
-1 18725 var _selectorMap$idsKey$e;
-1 18726 if (!selectorMap[idsKey] || !((_selectorMap$idsKey$e = selectorMap[idsKey][exp.id]) !== null && _selectorMap$idsKey$e !== void 0 && _selectorMap$idsKey$e.length)) {
-1 18727 return;
17639 18728 }
17640 -1 if (typeof fun !== 'function') {
17641 -1 throw new TypeError();
-1 18729 nodes = selectorMap[idsKey][exp.id].filter(function(node) {
-1 18730 return node.shadowId === shadowId;
-1 18731 });
-1 18732 }
-1 18733 if (exp.tag && exp.tag !== '*') {
-1 18734 var _selectorMap$exp$tag;
-1 18735 if (!((_selectorMap$exp$tag = selectorMap[exp.tag]) !== null && _selectorMap$exp$tag !== void 0 && _selectorMap$exp$tag.length)) {
-1 18736 return;
17642 18737 }
17643 -1 var t = Object(this);
17644 -1 var len = t.length >>> 0;
17645 -1 var thisArg = arguments.length >= 2 ? arguments[1] : void 0;
17646 -1 for (var i = 0; i < len; i++) {
17647 -1 if (i in t && fun.call(thisArg, t[i], i, t)) {
17648 -1 return true;
17649 -1 }
-1 18738 var cachedNodes = selectorMap[exp.tag];
-1 18739 nodes = nodes ? getSharedValues(cachedNodes, nodes) : cachedNodes;
-1 18740 }
-1 18741 if (exp.classes) {
-1 18742 var _selectorMap$Class;
-1 18743 if (!((_selectorMap$Class = selectorMap['[class]']) !== null && _selectorMap$Class !== void 0 && _selectorMap$Class.length)) {
-1 18744 return;
17650 18745 }
17651 -1 return false;
-1 18746 var _cachedNodes = selectorMap['[class]'];
-1 18747 nodes = nodes ? getSharedValues(_cachedNodes, nodes) : _cachedNodes;
17652 18748 }
17653 -1 });
17654 -1 }
17655 -1 if (!Array.from) {
17656 -1 Object.defineProperty(Array, 'from', {
17657 -1 value: function() {
17658 -1 var toStr = Object.prototype.toString;
17659 -1 var isCallable = function isCallable(fn) {
17660 -1 return typeof fn === 'function' || toStr.call(fn) === '[object Function]';
17661 -1 };
17662 -1 var toInteger = function toInteger(value) {
17663 -1 var number = Number(value);
17664 -1 if (isNaN(number)) {
17665 -1 return 0;
17666 -1 }
17667 -1 if (number === 0 || !isFinite(number)) {
17668 -1 return number;
-1 18749 if (exp.attributes) {
-1 18750 for (var _i10 = 0; _i10 < exp.attributes.length; _i10++) {
-1 18751 var _selectorMap;
-1 18752 var attr = exp.attributes[_i10];
-1 18753 if (attr.type === 'attrValue') {
-1 18754 isComplexSelector = true;
17669 18755 }
17670 -1 return (number > 0 ? 1 : -1) * Math.floor(Math.abs(number));
17671 -1 };
17672 -1 var maxSafeInteger = Math.pow(2, 53) - 1;
17673 -1 var toLength = function toLength(value) {
17674 -1 var len = toInteger(value);
17675 -1 return Math.min(Math.max(len, 0), maxSafeInteger);
17676 -1 };
17677 -1 return function from(arrayLike) {
17678 -1 var C = this;
17679 -1 var items = Object(arrayLike);
17680 -1 if (arrayLike == null) {
17681 -1 throw new TypeError('Array.from requires an array-like object - not null or undefined');
17682 -1 }
17683 -1 var mapFn = arguments.length > 1 ? arguments[1] : void 0;
17684 -1 var T;
17685 -1 if (typeof mapFn !== 'undefined') {
17686 -1 if (!isCallable(mapFn)) {
17687 -1 throw new TypeError('Array.from: when provided, the second argument must be a function');
17688 -1 }
17689 -1 if (arguments.length > 2) {
17690 -1 T = arguments[2];
17691 -1 }
17692 -1 }
17693 -1 var len = toLength(items.length);
17694 -1 var A = isCallable(C) ? Object(new C(len)) : new Array(len);
17695 -1 var k = 0;
17696 -1 var kValue;
17697 -1 while (k < len) {
17698 -1 kValue = items[k];
17699 -1 if (mapFn) {
17700 -1 A[k] = typeof T === 'undefined' ? mapFn(kValue, k) : mapFn.call(T, kValue, k);
17701 -1 } else {
17702 -1 A[k] = kValue;
17703 -1 }
17704 -1 k += 1;
-1 18756 if (!((_selectorMap = selectorMap['['.concat(attr.key, ']')]) !== null && _selectorMap !== void 0 && _selectorMap.length)) {
-1 18757 return;
17705 18758 }
17706 -1 A.length = len;
17707 -1 return A;
17708 -1 };
17709 -1 }()
17710 -1 });
17711 -1 }
17712 -1 if (!String.prototype.includes) {
17713 -1 String.prototype.includes = function(search, start) {
17714 -1 if (typeof start !== 'number') {
17715 -1 start = 0;
17716 -1 }
17717 -1 if (start + search.length > this.length) {
17718 -1 return false;
17719 -1 } else {
17720 -1 return this.indexOf(search, start) !== -1;
-1 18759 var _cachedNodes2 = selectorMap['['.concat(attr.key, ']')];
-1 18760 nodes = nodes ? getSharedValues(_cachedNodes2, nodes) : _cachedNodes2;
-1 18761 }
17721 18762 }
-1 18763 }
-1 18764 return {
-1 18765 nodes: nodes,
-1 18766 isComplexSelector: isComplexSelector
17722 18767 };
17723 18768 }
17724 -1 if (!Array.prototype.flat) {
17725 -1 Object.defineProperty(Array.prototype, 'flat', {
17726 -1 configurable: true,
17727 -1 value: function flat() {
17728 -1 var depth = isNaN(arguments[0]) ? 1 : Number(arguments[0]);
17729 -1 return depth ? Array.prototype.reduce.call(this, function(acc, cur) {
17730 -1 if (Array.isArray(cur)) {
17731 -1 acc.push.apply(acc, flat.call(cur, depth - 1));
17732 -1 } else {
17733 -1 acc.push(cur);
17734 -1 }
17735 -1 return acc;
17736 -1 }, []) : Array.prototype.slice.call(this);
17737 -1 },
17738 -1 writable: true
-1 18769 function isGlobalSelector(expression) {
-1 18770 return expression.tag === '*' && !expression.attributes && !expression.id && !expression.classes;
-1 18771 }
-1 18772 function getSharedValues(a, b) {
-1 18773 return a.filter(function(node) {
-1 18774 return b.includes(node);
17739 18775 });
17740 18776 }
17741 -1 function uniqueArray(arr1, arr2) {
17742 -1 return arr1.concat(arr2).filter(function(elem, pos, arr) {
17743 -1 return arr.indexOf(elem) === pos;
-1 18777 function cacheSelector(key, vNode, map) {
-1 18778 map[key] = map[key] || [];
-1 18779 map[key].push(vNode);
-1 18780 }
-1 18781 function cacheNodeSelectors(vNode, selectorMap) {
-1 18782 if (vNode.props.nodeType !== 1) {
-1 18783 return;
-1 18784 }
-1 18785 cacheSelector(vNode.props.nodeName, vNode, selectorMap);
-1 18786 cacheSelector('*', vNode, selectorMap);
-1 18787 vNode.attrNames.forEach(function(attrName) {
-1 18788 if (attrName === 'id') {
-1 18789 selectorMap[idsKey] = selectorMap[idsKey] || {};
-1 18790 token_list_default(vNode.attr(attrName)).forEach(function(value) {
-1 18791 cacheSelector(value, vNode, selectorMap[idsKey]);
-1 18792 });
-1 18793 }
-1 18794 cacheSelector('['.concat(attrName, ']'), vNode, selectorMap);
17744 18795 });
17745 18796 }
17746 -1 var unique_array_default = uniqueArray;
17747 -1 function createLocalVariables(vNodes, anyLevel, thisLevel, parentShadowId, recycledLocalVariable) {
17748 -1 var retVal = recycledLocalVariable || {};
17749 -1 retVal.vNodes = vNodes;
17750 -1 retVal.vNodesIndex = 0;
17751 -1 retVal.anyLevel = anyLevel;
17752 -1 retVal.thisLevel = thisLevel;
17753 -1 retVal.parentShadowId = parentShadowId;
-1 18797 var hasShadowRoot;
-1 18798 function getSlotChildren(node) {
-1 18799 var retVal = [];
-1 18800 node = node.firstChild;
-1 18801 while (node) {
-1 18802 retVal.push(node);
-1 18803 node = node.nextSibling;
-1 18804 }
17754 18805 return retVal;
17755 18806 }
17756 -1 var recycledLocalVariables = [];
17757 -1 function matchExpressions(domTree, expressions, filter) {
17758 -1 var stack = [];
17759 -1 var vNodes = Array.isArray(domTree) ? domTree : [ domTree ];
17760 -1 var currentLevel = createLocalVariables(vNodes, expressions, null, domTree[0].shadowId, recycledLocalVariables.pop());
17761 -1 var result = [];
17762 -1 while (currentLevel.vNodesIndex < currentLevel.vNodes.length) {
17763 -1 var _currentLevel$anyLeve, _currentLevel$thisLev;
17764 -1 var vNode = currentLevel.vNodes[currentLevel.vNodesIndex++];
17765 -1 var childOnly = null;
17766 -1 var childAny = null;
17767 -1 var combinedLength = (((_currentLevel$anyLeve = currentLevel.anyLevel) === null || _currentLevel$anyLeve === void 0 ? void 0 : _currentLevel$anyLeve.length) || 0) + (((_currentLevel$thisLev = currentLevel.thisLevel) === null || _currentLevel$thisLev === void 0 ? void 0 : _currentLevel$thisLev.length) || 0);
17768 -1 var added = false;
17769 -1 for (var _i8 = 0; _i8 < combinedLength; _i8++) {
17770 -1 var _currentLevel$anyLeve2, _currentLevel$anyLeve3, _currentLevel$anyLeve4;
17771 -1 var exp = _i8 < (((_currentLevel$anyLeve2 = currentLevel.anyLevel) === null || _currentLevel$anyLeve2 === void 0 ? void 0 : _currentLevel$anyLeve2.length) || 0) ? currentLevel.anyLevel[_i8] : currentLevel.thisLevel[_i8 - (((_currentLevel$anyLeve3 = currentLevel.anyLevel) === null || _currentLevel$anyLeve3 === void 0 ? void 0 : _currentLevel$anyLeve3.length) || 0)];
17772 -1 if ((!exp[0].id || vNode.shadowId === currentLevel.parentShadowId) && _matchesExpression(vNode, exp[0])) {
17773 -1 if (exp.length === 1) {
17774 -1 if (!added && (!filter || filter(vNode))) {
17775 -1 result.push(vNode);
17776 -1 added = true;
17777 -1 }
17778 -1 } else {
17779 -1 var rest = exp.slice(1);
17780 -1 if ([ ' ', '>' ].includes(rest[0].combinator) === false) {
17781 -1 throw new Error('axe.utils.querySelectorAll does not support the combinator: ' + exp[1].combinator);
17782 -1 }
17783 -1 if (rest[0].combinator === '>') {
17784 -1 (childOnly = childOnly || []).push(rest);
17785 -1 } else {
17786 -1 (childAny = childAny || []).push(rest);
17787 -1 }
17788 -1 }
-1 18807 function createNode(node, parent, shadowId) {
-1 18808 var vNode = new virtual_node_default(node, parent, shadowId);
-1 18809 cacheNodeSelectors(vNode, cache_default.get('selectorMap'));
-1 18810 return vNode;
-1 18811 }
-1 18812 function flattenTree(node, shadowId, parent) {
-1 18813 var retVal, realArray, nodeName2;
-1 18814 function reduceShadowDOM(res, child, parent2) {
-1 18815 var replacements = flattenTree(child, shadowId, parent2);
-1 18816 if (replacements) {
-1 18817 res = res.concat(replacements);
-1 18818 }
-1 18819 return res;
-1 18820 }
-1 18821 if (node.documentElement) {
-1 18822 node = node.documentElement;
-1 18823 }
-1 18824 nodeName2 = node.nodeName.toLowerCase();
-1 18825 if (is_shadow_root_default(node)) {
-1 18826 hasShadowRoot = true;
-1 18827 retVal = createNode(node, parent, shadowId);
-1 18828 shadowId = 'a' + Math.random().toString().substring(2);
-1 18829 realArray = Array.from(node.shadowRoot.childNodes);
-1 18830 retVal.children = realArray.reduce(function(res, child) {
-1 18831 return reduceShadowDOM(res, child, retVal);
-1 18832 }, []);
-1 18833 return [ retVal ];
-1 18834 } else {
-1 18835 if (nodeName2 === 'content' && typeof node.getDistributedNodes === 'function') {
-1 18836 realArray = Array.from(node.getDistributedNodes());
-1 18837 return realArray.reduce(function(res, child) {
-1 18838 return reduceShadowDOM(res, child, parent);
-1 18839 }, []);
-1 18840 } else if (nodeName2 === 'slot' && typeof node.assignedNodes === 'function') {
-1 18841 realArray = Array.from(node.assignedNodes());
-1 18842 if (!realArray.length) {
-1 18843 realArray = getSlotChildren(node);
-1 18844 }
-1 18845 var styl = window.getComputedStyle(node);
-1 18846 if (false) {
-1 18847 retVal = createNode(node, parent, shadowId);
-1 18848 retVal.children = realArray.reduce(function(res, child) {
-1 18849 return reduceShadowDOM(res, child, retVal);
-1 18850 }, []);
-1 18851 return [ retVal ];
-1 18852 } else {
-1 18853 return realArray.reduce(function(res, child) {
-1 18854 return reduceShadowDOM(res, child, parent);
-1 18855 }, []);
17789 18856 }
17790 -1 if ((!exp[0].id || vNode.shadowId === currentLevel.parentShadowId) && (_currentLevel$anyLeve4 = currentLevel.anyLevel) !== null && _currentLevel$anyLeve4 !== void 0 && _currentLevel$anyLeve4.includes(exp)) {
17791 -1 (childAny = childAny || []).push(exp);
-1 18857 } else {
-1 18858 if (node.nodeType === 1) {
-1 18859 retVal = createNode(node, parent, shadowId);
-1 18860 realArray = Array.from(node.childNodes);
-1 18861 retVal.children = realArray.reduce(function(res, child) {
-1 18862 return reduceShadowDOM(res, child, retVal);
-1 18863 }, []);
-1 18864 return [ retVal ];
-1 18865 } else if (node.nodeType === 3) {
-1 18866 return [ createNode(node, parent) ];
17792 18867 }
17793 -1 }
17794 -1 if (vNode.children && vNode.children.length) {
17795 -1 stack.push(currentLevel);
17796 -1 currentLevel = createLocalVariables(vNode.children, childAny, childOnly, vNode.shadowId, recycledLocalVariables.pop());
17797 -1 }
17798 -1 while (currentLevel.vNodesIndex === currentLevel.vNodes.length && stack.length) {
17799 -1 recycledLocalVariables.push(currentLevel);
17800 -1 currentLevel = stack.pop();
-1 18868 return void 0;
17801 18869 }
17802 18870 }
17803 -1 return result;
17804 18871 }
17805 -1 function querySelectorAllFilter(domTree, selector, filter) {
17806 -1 domTree = Array.isArray(domTree) ? domTree : [ domTree ];
17807 -1 var expressions = _convertSelector(selector);
17808 -1 return matchExpressions(domTree, expressions, filter);
-1 18872 function getFlattenedTree() {
-1 18873 var node = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : document.documentElement;
-1 18874 var shadowId = arguments.length > 1 ? arguments[1] : undefined;
-1 18875 hasShadowRoot = false;
-1 18876 var selectorMap = {};
-1 18877 cache_default.set('nodeMap', new WeakMap());
-1 18878 cache_default.set('selectorMap', selectorMap);
-1 18879 var tree = flattenTree(node, shadowId, null);
-1 18880 tree[0]._selectorMap = selectorMap;
-1 18881 tree[0]._hasShadowRoot = hasShadowRoot;
-1 18882 return tree;
17809 18883 }
17810 -1 var query_selector_all_filter_default = querySelectorAllFilter;
17811 -1 function preloadCssom(_ref23) {
17812 -1 var _ref23$treeRoot = _ref23.treeRoot, treeRoot = _ref23$treeRoot === void 0 ? axe._tree[0] : _ref23$treeRoot;
17813 -1 var rootNodes = getAllRootNodesInTree(treeRoot);
17814 -1 if (!rootNodes.length) {
17815 -1 return Promise.resolve();
-1 18884 var get_flattened_tree_default = getFlattenedTree;
-1 18885 function getBaseLang(lang) {
-1 18886 if (!lang) {
-1 18887 return '';
17816 18888 }
17817 -1 var dynamicDoc = document.implementation.createHTMLDocument('Dynamic document for loading cssom');
17818 -1 var convertDataToStylesheet = get_stylesheet_factory_default(dynamicDoc);
17819 -1 return getCssomForAllRootNodes(rootNodes, convertDataToStylesheet).then(function(assets) {
17820 -1 return flattenAssets(assets);
17821 -1 });
-1 18889 return lang.trim().split('-')[0].toLowerCase();
17822 18890 }
17823 -1 var preload_cssom_default = preloadCssom;
17824 -1 function getAllRootNodesInTree(tree) {
17825 -1 var ids = [];
17826 -1 var rootNodes = query_selector_all_filter_default(tree, '*', function(node) {
17827 -1 if (ids.includes(node.shadowId)) {
17828 -1 return false;
-1 18891 var get_base_lang_default = getBaseLang;
-1 18892 function failureSummary(nodeData) {
-1 18893 var failingChecks = {};
-1 18894 failingChecks.none = nodeData.none.concat(nodeData.all);
-1 18895 failingChecks.any = nodeData.any;
-1 18896 return Object.keys(failingChecks).map(function(key) {
-1 18897 if (!failingChecks[key].length) {
-1 18898 return;
17829 18899 }
17830 -1 ids.push(node.shadowId);
17831 -1 return true;
17832 -1 }).map(function(node) {
17833 -1 return {
17834 -1 shadowId: node.shadowId,
17835 -1 rootNode: get_root_node_default(node.actualNode)
17836 -1 };
17837 -1 });
17838 -1 return unique_array_default(rootNodes, []);
17839 -1 }
17840 -1 function getCssomForAllRootNodes(rootNodes, convertDataToStylesheet) {
17841 -1 var promises = [];
17842 -1 rootNodes.forEach(function(_ref24, index) {
17843 -1 var rootNode = _ref24.rootNode, shadowId = _ref24.shadowId;
17844 -1 var sheets = getStylesheetsOfRootNode(rootNode, shadowId, convertDataToStylesheet);
17845 -1 if (!sheets) {
17846 -1 return Promise.all(promises);
-1 18900 var sum = axe._audit.data.failureSummaries[key];
-1 18901 if (sum && typeof sum.failureMessage === 'function') {
-1 18902 return sum.failureMessage(failingChecks[key].map(function(check) {
-1 18903 return check.message || '';
-1 18904 }));
17847 18905 }
17848 -1 var rootIndex = index + 1;
17849 -1 var parseOptions = {
17850 -1 rootNode: rootNode,
17851 -1 shadowId: shadowId,
17852 -1 convertDataToStylesheet: convertDataToStylesheet,
17853 -1 rootIndex: rootIndex
17854 -1 };
17855 -1 var importedUrls = [];
17856 -1 var p = Promise.all(sheets.map(function(sheet, sheetIndex) {
17857 -1 var priority = [ rootIndex, sheetIndex ];
17858 -1 return parse_stylesheet_default(sheet, parseOptions, priority, importedUrls);
17859 -1 }));
17860 -1 promises.push(p);
17861 -1 });
17862 -1 return Promise.all(promises);
17863 -1 }
17864 -1 function flattenAssets(assets) {
17865 -1 return assets.reduce(function(acc, val) {
17866 -1 return Array.isArray(val) ? acc.concat(flattenAssets(val)) : acc.concat(val);
17867 -1 }, []);
-1 18906 }).filter(function(i) {
-1 18907 return i !== void 0;
-1 18908 }).join('\n\n');
17868 18909 }
17869 -1 function getStylesheetsOfRootNode(rootNode, shadowId, convertDataToStylesheet) {
17870 -1 var sheets;
17871 -1 if (rootNode.nodeType === 11 && shadowId) {
17872 -1 sheets = getStylesheetsFromDocumentFragment(rootNode, convertDataToStylesheet);
17873 -1 } else {
17874 -1 sheets = getStylesheetsFromDocument(rootNode);
-1 18910 var failure_summary_default = failureSummary;
-1 18911 function incompleteFallbackMessage() {
-1 18912 var incompleteFallbackMessage2 = axe._audit.data.incompleteFallbackMessage;
-1 18913 if (typeof incompleteFallbackMessage2 === 'function') {
-1 18914 incompleteFallbackMessage2 = incompleteFallbackMessage2();
17875 18915 }
17876 -1 return filterStylesheetsWithSameHref(sheets);
17877 -1 }
17878 -1 function getStylesheetsFromDocumentFragment(rootNode, convertDataToStylesheet) {
17879 -1 return Array.from(rootNode.children).filter(filerStyleAndLinkAttributesInDocumentFragment).reduce(function(out, node) {
17880 -1 var nodeName2 = node.nodeName.toUpperCase();
17881 -1 var data2 = nodeName2 === 'STYLE' ? node.textContent : node;
17882 -1 var isLink = nodeName2 === 'LINK';
17883 -1 var stylesheet = convertDataToStylesheet({
17884 -1 data: data2,
17885 -1 isLink: isLink,
17886 -1 root: rootNode
17887 -1 });
17888 -1 out.push(stylesheet.sheet);
17889 -1 return out;
17890 -1 }, []);
17891 -1 }
17892 -1 function getStylesheetsFromDocument(rootNode) {
17893 -1 return Array.from(rootNode.styleSheets).filter(function(sheet) {
17894 -1 return filterMediaIsPrint(sheet.media.mediaText);
17895 -1 });
17896 -1 }
17897 -1 function filerStyleAndLinkAttributesInDocumentFragment(node) {
17898 -1 var nodeName2 = node.nodeName.toUpperCase();
17899 -1 var linkHref = node.getAttribute('href');
17900 -1 var linkRel = node.getAttribute('rel');
17901 -1 var isLink = nodeName2 === 'LINK' && linkHref && linkRel && node.rel.toUpperCase().includes('STYLESHEET');
17902 -1 var isStyle = nodeName2 === 'STYLE';
17903 -1 return isStyle || isLink && filterMediaIsPrint(node.media);
17904 -1 }
17905 -1 function filterMediaIsPrint(media) {
17906 -1 if (!media) {
17907 -1 return true;
-1 18916 if (typeof incompleteFallbackMessage2 !== 'string') {
-1 18917 return '';
17908 18918 }
17909 -1 return !media.toUpperCase().includes('PRINT');
17910 -1 }
17911 -1 function filterStylesheetsWithSameHref(sheets) {
17912 -1 var hrefs = [];
17913 -1 return sheets.filter(function(sheet) {
17914 -1 if (!sheet.href) {
17915 -1 return true;
17916 -1 }
17917 -1 if (hrefs.includes(sheet.href)) {
17918 -1 return false;
17919 -1 }
17920 -1 hrefs.push(sheet.href);
17921 -1 return true;
17922 -1 });
-1 18919 return incompleteFallbackMessage2;
17923 18920 }
17924 -1 function preloadMedia(_ref25) {
17925 -1 var _ref25$treeRoot = _ref25.treeRoot, treeRoot = _ref25$treeRoot === void 0 ? axe._tree[0] : _ref25$treeRoot;
17926 -1 var mediaVirtualNodes = query_selector_all_filter_default(treeRoot, 'video, audio', function(_ref26) {
17927 -1 var actualNode = _ref26.actualNode;
17928 -1 if (actualNode.hasAttribute('src')) {
17929 -1 return !!actualNode.getAttribute('src');
-1 18921 function normalizeRelatedNodes(node, options) {
-1 18922 [ 'any', 'all', 'none' ].forEach(function(type) {
-1 18923 if (!Array.isArray(node[type])) {
-1 18924 return;
17930 18925 }
17931 -1 var sourceWithSrc = Array.from(actualNode.getElementsByTagName('source')).filter(function(source) {
17932 -1 return !!source.getAttribute('src');
-1 18926 node[type].filter(function(checkRes) {
-1 18927 return Array.isArray(checkRes.relatedNodes);
-1 18928 }).forEach(function(checkRes) {
-1 18929 checkRes.relatedNodes = checkRes.relatedNodes.map(function(relatedNode) {
-1 18930 var _relatedNode$source;
-1 18931 var res = {
-1 18932 html: (_relatedNode$source = relatedNode === null || relatedNode === void 0 ? void 0 : relatedNode.source) !== null && _relatedNode$source !== void 0 ? _relatedNode$source : 'Undefined'
-1 18933 };
-1 18934 if (options.elementRef && !(relatedNode !== null && relatedNode !== void 0 && relatedNode.fromFrame)) {
-1 18935 var _relatedNode$element;
-1 18936 res.element = (_relatedNode$element = relatedNode === null || relatedNode === void 0 ? void 0 : relatedNode.element) !== null && _relatedNode$element !== void 0 ? _relatedNode$element : null;
-1 18937 }
-1 18938 if (options.selectors !== false || relatedNode !== null && relatedNode !== void 0 && relatedNode.fromFrame) {
-1 18939 var _relatedNode$selector;
-1 18940 res.target = (_relatedNode$selector = relatedNode === null || relatedNode === void 0 ? void 0 : relatedNode.selector) !== null && _relatedNode$selector !== void 0 ? _relatedNode$selector : [ ':root' ];
-1 18941 }
-1 18942 if (options.ancestry) {
-1 18943 var _relatedNode$ancestry;
-1 18944 res.ancestry = (_relatedNode$ancestry = relatedNode === null || relatedNode === void 0 ? void 0 : relatedNode.ancestry) !== null && _relatedNode$ancestry !== void 0 ? _relatedNode$ancestry : [ ':root' ];
-1 18945 }
-1 18946 if (options.xpath) {
-1 18947 var _relatedNode$xpath;
-1 18948 res.xpath = (_relatedNode$xpath = relatedNode === null || relatedNode === void 0 ? void 0 : relatedNode.xpath) !== null && _relatedNode$xpath !== void 0 ? _relatedNode$xpath : [ '/' ];
-1 18949 }
-1 18950 return res;
-1 18951 });
17933 18952 });
17934 -1 if (sourceWithSrc.length <= 0) {
17935 -1 return false;
17936 -1 }
17937 -1 return true;
17938 18953 });
17939 -1 return Promise.all(mediaVirtualNodes.map(function(_ref27) {
17940 -1 var actualNode = _ref27.actualNode;
17941 -1 return isMediaElementReady(actualNode);
17942 -1 }));
17943 18954 }
17944 -1 var preload_media_default = preloadMedia;
17945 -1 function isMediaElementReady(elm) {
17946 -1 return new Promise(function(resolve) {
17947 -1 if (elm.readyState > 0) {
17948 -1 resolve(elm);
17949 -1 }
17950 -1 function onMediaReady() {
17951 -1 elm.removeEventListener('loadedmetadata', onMediaReady);
17952 -1 resolve(elm);
-1 18955 var resultKeys = constants_default.resultGroups;
-1 18956 function processAggregate(results, options) {
-1 18957 var resultObject = axe.utils.aggregateResult(results);
-1 18958 resultKeys.forEach(function(key) {
-1 18959 if (options.resultTypes && !options.resultTypes.includes(key)) {
-1 18960 (resultObject[key] || []).forEach(function(ruleResult) {
-1 18961 if (Array.isArray(ruleResult.nodes) && ruleResult.nodes.length > 0) {
-1 18962 ruleResult.nodes = [ ruleResult.nodes[0] ];
-1 18963 }
-1 18964 });
17953 18965 }
17954 -1 elm.addEventListener('loadedmetadata', onMediaReady);
-1 18966 resultObject[key] = (resultObject[key] || []).map(function(ruleResult) {
-1 18967 ruleResult = Object.assign({}, ruleResult);
-1 18968 if (Array.isArray(ruleResult.nodes) && ruleResult.nodes.length > 0) {
-1 18969 ruleResult.nodes = ruleResult.nodes.map(function(subResult) {
-1 18970 if (_typeof(subResult.node) === 'object') {
-1 18971 subResult.html = subResult.node.source;
-1 18972 if (options.elementRef && !subResult.node.fromFrame) {
-1 18973 subResult.element = subResult.node.element;
-1 18974 }
-1 18975 if (options.selectors !== false || subResult.node.fromFrame) {
-1 18976 subResult.target = subResult.node.selector;
-1 18977 }
-1 18978 if (options.ancestry) {
-1 18979 subResult.ancestry = subResult.node.ancestry;
-1 18980 }
-1 18981 if (options.xpath) {
-1 18982 subResult.xpath = subResult.node.xpath;
-1 18983 }
-1 18984 }
-1 18985 delete subResult.result;
-1 18986 delete subResult.node;
-1 18987 normalizeRelatedNodes(subResult, options);
-1 18988 return subResult;
-1 18989 });
-1 18990 }
-1 18991 resultKeys.forEach(function(key2) {
-1 18992 return delete ruleResult[key2];
-1 18993 });
-1 18994 delete ruleResult.pageLevel;
-1 18995 delete ruleResult.result;
-1 18996 return ruleResult;
-1 18997 });
17955 18998 });
17956 -1 }
17957 -1 function isValidPreloadObject(preload3) {
17958 -1 return _typeof(preload3) === 'object' && Array.isArray(preload3.assets);
17959 -1 }
17960 -1 function _shouldPreload(options) {
17961 -1 if (!options || options.preload === void 0 || options.preload === null) {
17962 -1 return true;
-1 18999 return resultObject;
-1 19000 }
-1 19001 var process_aggregate_default = processAggregate;
-1 19002 var dataRegex = /\$\{\s?data\s?\}/g;
-1 19003 function substitute(str, data2) {
-1 19004 if (typeof data2 === 'string') {
-1 19005 return str.replace(dataRegex, data2);
17963 19006 }
17964 -1 if (typeof options.preload === 'boolean') {
17965 -1 return options.preload;
-1 19007 for (var prop in data2) {
-1 19008 if (data2.hasOwnProperty(prop)) {
-1 19009 var regex = new RegExp('\\${\\s?data\\.' + prop + '\\s?}', 'g');
-1 19010 var replace = typeof data2[prop] === 'undefined' ? '' : String(data2[prop]);
-1 19011 str = str.replace(regex, replace);
-1 19012 }
17966 19013 }
17967 -1 return isValidPreloadObject(options.preload);
-1 19014 return str;
17968 19015 }
17969 -1 function _getPreloadConfig(options) {
17970 -1 var _constants_default$pr = constants_default.preload, assets = _constants_default$pr.assets, timeout = _constants_default$pr.timeout;
17971 -1 var config = {
17972 -1 assets: assets,
17973 -1 timeout: timeout
17974 -1 };
17975 -1 if (!options.preload) {
17976 -1 return config;
-1 19016 function processMessage(message, data2) {
-1 19017 if (!message) {
-1 19018 return;
17977 19019 }
17978 -1 if (typeof options.preload === 'boolean') {
17979 -1 return config;
-1 19020 if (Array.isArray(data2)) {
-1 19021 data2.values = data2.join(', ');
-1 19022 if (typeof message.singular === 'string' && typeof message.plural === 'string') {
-1 19023 var str2 = data2.length === 1 ? message.singular : message.plural;
-1 19024 return substitute(str2, data2);
-1 19025 }
-1 19026 return substitute(message, data2);
17980 19027 }
17981 -1 var areRequestedAssetsValid = options.preload.assets.every(function(a) {
17982 -1 return assets.includes(a.toLowerCase());
17983 -1 });
17984 -1 if (!areRequestedAssetsValid) {
17985 -1 throw new Error('Requested assets, not supported. Supported assets are: '.concat(assets.join(', '), '.'));
-1 19028 if (typeof message === 'string') {
-1 19029 return substitute(message, data2);
17986 19030 }
17987 -1 config.assets = unique_array_default(options.preload.assets.map(function(a) {
17988 -1 return a.toLowerCase();
17989 -1 }), []);
17990 -1 if (options.preload.timeout && typeof options.preload.timeout === 'number' && !isNaN(options.preload.timeout)) {
17991 -1 config.timeout = options.preload.timeout;
-1 19031 if (typeof data2 === 'string') {
-1 19032 var _str = message[data2];
-1 19033 return substitute(_str, data2);
17992 19034 }
17993 -1 return config;
-1 19035 var str = message['default'] || incompleteFallbackMessage();
-1 19036 if (data2 && data2.messageKey && message[data2.messageKey]) {
-1 19037 str = message[data2.messageKey];
-1 19038 }
-1 19039 return processMessage(str, data2);
17994 19040 }
17995 -1 function preload(options) {
17996 -1 var preloadFunctionsMap = {
17997 -1 cssom: preload_cssom_default,
17998 -1 media: preload_media_default
17999 -1 };
18000 -1 if (!_shouldPreload(options)) {
18001 -1 return Promise.resolve();
-1 19041 var process_message_default = processMessage;
-1 19042 function getCheckMessage(checkId, type, data2) {
-1 19043 var check = axe._audit.data.checks[checkId];
-1 19044 if (!check) {
-1 19045 throw new Error('Cannot get message for unknown check: '.concat(checkId, '.'));
18002 19046 }
18003 -1 return new Promise(function(resolve, reject) {
18004 -1 var _getPreloadConfig2 = _getPreloadConfig(options), assets = _getPreloadConfig2.assets, timeout = _getPreloadConfig2.timeout;
18005 -1 var preloadTimeout = setTimeout(function() {
18006 -1 return reject(new Error('Preload assets timed out.'));
18007 -1 }, timeout);
18008 -1 Promise.all(assets.map(function(asset) {
18009 -1 return preloadFunctionsMap[asset](options).then(function(results) {
18010 -1 return _defineProperty({}, asset, results);
18011 -1 });
18012 -1 })).then(function(results) {
18013 -1 var preloadAssets = results.reduce(function(out, result) {
18014 -1 return _extends({}, out, result);
18015 -1 }, {});
18016 -1 clearTimeout(preloadTimeout);
18017 -1 resolve(preloadAssets);
18018 -1 })['catch'](function(err2) {
18019 -1 clearTimeout(preloadTimeout);
18020 -1 reject(err2);
18021 -1 });
18022 -1 });
-1 19047 if (!check.messages[type]) {
-1 19048 throw new Error('Check "'.concat(checkId, '"" does not have a "').concat(type, '" message.'));
-1 19049 }
-1 19050 return process_message_default(check.messages[type], data2);
18023 19051 }
18024 -1 var preload_default = preload;
18025 -1 function getIncompleteReason(checkData, messages) {
18026 -1 function getDefaultMsg(messages2) {
18027 -1 if (messages2.incomplete && messages2.incomplete['default']) {
18028 -1 return messages2.incomplete['default'];
18029 -1 } else {
18030 -1 return incompleteFallbackMessage();
-1 19052 var get_check_message_default = getCheckMessage;
-1 19053 function getCheckOption(check, ruleID, options) {
-1 19054 var ruleCheckOption = ((options.rules && options.rules[ruleID] || {}).checks || {})[check.id];
-1 19055 var checkOption = (options.checks || {})[check.id];
-1 19056 var enabled = check.enabled;
-1 19057 var opts = check.options;
-1 19058 if (checkOption) {
-1 19059 if (checkOption.hasOwnProperty('enabled')) {
-1 19060 enabled = checkOption.enabled;
18031 19061 }
18032 -1 }
18033 -1 if (checkData && checkData.missingData) {
18034 -1 try {
18035 -1 var msg = messages.incomplete[checkData.missingData[0].reason];
18036 -1 if (!msg) {
18037 -1 throw new Error();
18038 -1 }
18039 -1 return msg;
18040 -1 } catch (e) {
18041 -1 if (typeof checkData.missingData === 'string') {
18042 -1 return messages.incomplete[checkData.missingData];
18043 -1 } else {
18044 -1 return getDefaultMsg(messages);
18045 -1 }
-1 19062 if (checkOption.hasOwnProperty('options')) {
-1 19063 opts = checkOption.options;
18046 19064 }
18047 -1 } else if (checkData && checkData.messageKey) {
18048 -1 return messages.incomplete[checkData.messageKey];
18049 -1 } else {
18050 -1 return getDefaultMsg(messages);
18051 19065 }
18052 -1 }
18053 -1 function extender(checksData, shouldBeTrue, rule3) {
18054 -1 return function(check4) {
18055 -1 var sourceData = checksData[check4.id] || {};
18056 -1 var messages = sourceData.messages || {};
18057 -1 var data2 = Object.assign({}, sourceData);
18058 -1 delete data2.messages;
18059 -1 if (!rule3.reviewOnFail && check4.result === void 0) {
18060 -1 if (_typeof(messages.incomplete) === 'object' && !Array.isArray(check4.data)) {
18061 -1 data2.message = getIncompleteReason(check4.data, messages);
18062 -1 }
18063 -1 if (!data2.message) {
18064 -1 data2.message = messages.incomplete;
18065 -1 }
18066 -1 } else {
18067 -1 data2.message = check4.result === shouldBeTrue ? messages.pass : messages.fail;
-1 19066 if (ruleCheckOption) {
-1 19067 if (ruleCheckOption.hasOwnProperty('enabled')) {
-1 19068 enabled = ruleCheckOption.enabled;
18068 19069 }
18069 -1 if (typeof data2.message !== 'function') {
18070 -1 data2.message = process_message_default(data2.message, check4.data);
-1 19070 if (ruleCheckOption.hasOwnProperty('options')) {
-1 19071 opts = ruleCheckOption.options;
18071 19072 }
18072 -1 extend_meta_data_default(check4, data2);
-1 19073 }
-1 19074 return {
-1 19075 enabled: enabled,
-1 19076 options: opts,
-1 19077 absolutePaths: options.absolutePaths
18073 19078 };
18074 19079 }
18075 -1 function publishMetaData(ruleResult) {
18076 -1 var checksData = axe._audit.data.checks || {};
18077 -1 var rulesData = axe._audit.data.rules || {};
18078 -1 var rule3 = find_by_default(axe._audit.rules, 'id', ruleResult.id) || {};
18079 -1 ruleResult.tags = clone_default(rule3.tags || []);
18080 -1 var shouldBeTrue = extender(checksData, true, rule3);
18081 -1 var shouldBeFalse = extender(checksData, false, rule3);
18082 -1 ruleResult.nodes.forEach(function(detail) {
18083 -1 detail.any.forEach(shouldBeTrue);
18084 -1 detail.all.forEach(shouldBeTrue);
18085 -1 detail.none.forEach(shouldBeFalse);
18086 -1 });
18087 -1 extend_meta_data_default(ruleResult, clone_default(rulesData[ruleResult.id] || {}));
-1 19080 var get_check_option_default = getCheckOption;
-1 19081 function _getEnvironmentData() {
-1 19082 var _win$location;
-1 19083 var metadata = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
-1 19084 var win = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : window;
-1 19085 if (metadata && _typeof(metadata) === 'object') {
-1 19086 return metadata;
-1 19087 } else if (_typeof(win) !== 'object') {
-1 19088 return {};
-1 19089 }
-1 19090 return {
-1 19091 testEngine: {
-1 19092 name: 'axe-core',
-1 19093 version: axe.version
-1 19094 },
-1 19095 testRunner: {
-1 19096 name: axe._audit.brand
-1 19097 },
-1 19098 testEnvironment: getTestEnvironment(win),
-1 19099 timestamp: new Date().toISOString(),
-1 19100 url: (_win$location = win.location) === null || _win$location === void 0 ? void 0 : _win$location.href
-1 19101 };
18088 19102 }
18089 -1 var publish_metadata_default = publishMetaData;
18090 -1 function querySelectorAll(domTree, selector) {
18091 -1 return query_selector_all_filter_default(domTree, selector);
-1 19103 function getTestEnvironment(win) {
-1 19104 if (!win.navigator || _typeof(win.navigator) !== 'object') {
-1 19105 return {};
-1 19106 }
-1 19107 var navigator = win.navigator, innerHeight = win.innerHeight, innerWidth = win.innerWidth;
-1 19108 var _ref44 = getOrientation(win) || {}, angle = _ref44.angle, type = _ref44.type;
-1 19109 return {
-1 19110 userAgent: navigator.userAgent,
-1 19111 windowWidth: innerWidth,
-1 19112 windowHeight: innerHeight,
-1 19113 orientationAngle: angle,
-1 19114 orientationType: type
-1 19115 };
18092 19116 }
18093 -1 var query_selector_all_default = querySelectorAll;
18094 -1 function matchTags(rule3, runOnly) {
18095 -1 var include, exclude, matching;
18096 -1 var defaultExclude = axe._audit && axe._audit.tagExclude ? axe._audit.tagExclude : [];
18097 -1 if (runOnly.hasOwnProperty('include') || runOnly.hasOwnProperty('exclude')) {
18098 -1 include = runOnly.include || [];
18099 -1 include = Array.isArray(include) ? include : [ include ];
18100 -1 exclude = runOnly.exclude || [];
18101 -1 exclude = Array.isArray(exclude) ? exclude : [ exclude ];
18102 -1 exclude = exclude.concat(defaultExclude.filter(function(tag) {
18103 -1 return include.indexOf(tag) === -1;
18104 -1 }));
18105 -1 } else {
18106 -1 include = Array.isArray(runOnly) ? runOnly : [ runOnly ];
18107 -1 exclude = defaultExclude.filter(function(tag) {
18108 -1 return include.indexOf(tag) === -1;
18109 -1 });
-1 19117 function getOrientation(_ref45) {
-1 19118 var screen = _ref45.screen;
-1 19119 return screen.orientation || screen.msOrientation || screen.mozOrientation;
-1 19120 }
-1 19121 function createFrameContext(frame, _ref46) {
-1 19122 var focusable = _ref46.focusable, page = _ref46.page;
-1 19123 return {
-1 19124 node: frame,
-1 19125 include: [],
-1 19126 exclude: [],
-1 19127 initiator: false,
-1 19128 focusable: focusable && frameFocusable(frame),
-1 19129 size: getBoundingSize(frame),
-1 19130 page: page
-1 19131 };
-1 19132 }
-1 19133 function frameFocusable(frame) {
-1 19134 var tabIndex = frame.getAttribute('tabindex');
-1 19135 if (!tabIndex) {
-1 19136 return true;
18110 19137 }
18111 -1 matching = include.some(function(tag) {
18112 -1 return rule3.tags.indexOf(tag) !== -1;
18113 -1 });
18114 -1 if (matching || include.length === 0 && rule3.enabled !== false) {
18115 -1 return exclude.every(function(tag) {
18116 -1 return rule3.tags.indexOf(tag) === -1;
18117 -1 });
18118 -1 } else {
18119 -1 return false;
-1 19138 var _int = parseInt(tabIndex, 10);
-1 19139 return isNaN(_int) || _int >= 0;
-1 19140 }
-1 19141 function getBoundingSize(domNode) {
-1 19142 var width = parseInt(domNode.getAttribute('width'), 10);
-1 19143 var height = parseInt(domNode.getAttribute('height'), 10);
-1 19144 if (isNaN(width) || isNaN(height)) {
-1 19145 var rect = domNode.getBoundingClientRect();
-1 19146 width = isNaN(width) ? rect.width : width;
-1 19147 height = isNaN(height) ? rect.height : height;
18120 19148 }
-1 19149 return {
-1 19150 width: width,
-1 19151 height: height
-1 19152 };
18121 19153 }
18122 -1 function ruleShouldRun(rule3, context5, options) {
18123 -1 var runOnly = options.runOnly || {};
18124 -1 var ruleOptions = (options.rules || {})[rule3.id];
18125 -1 if (rule3.pageLevel && !context5.page) {
18126 -1 return false;
18127 -1 } else if (runOnly.type === 'rule') {
18128 -1 return runOnly.values.indexOf(rule3.id) !== -1;
18129 -1 } else if (ruleOptions && typeof ruleOptions.enabled === 'boolean') {
18130 -1 return ruleOptions.enabled;
18131 -1 } else if (runOnly.type === 'tag' && runOnly.values) {
18132 -1 return matchTags(rule3, runOnly.values);
-1 19154 function normalizeContext(contextSpec) {
-1 19155 if (isContextObject(contextSpec)) {
-1 19156 var msg = ' must be used inside include or exclude. It should not be on the same object.';
-1 19157 assert2(!objectHasOwn(contextSpec, 'fromFrames'), 'fromFrames' + msg);
-1 19158 assert2(!objectHasOwn(contextSpec, 'fromShadowDom'), 'fromShadowDom' + msg);
-1 19159 } else if (isContextProp(contextSpec)) {
-1 19160 contextSpec = {
-1 19161 include: contextSpec,
-1 19162 exclude: []
-1 19163 };
18133 19164 } else {
18134 -1 return matchTags(rule3, []);
-1 19165 return {
-1 19166 include: [ document ],
-1 19167 exclude: []
-1 19168 };
-1 19169 }
-1 19170 var include = normalizeContextList(contextSpec.include);
-1 19171 if (include.length === 0) {
-1 19172 include.push(document);
-1 19173 }
-1 19174 var exclude = normalizeContextList(contextSpec.exclude);
-1 19175 return {
-1 19176 include: include,
-1 19177 exclude: exclude
-1 19178 };
-1 19179 }
-1 19180 function isContextSpec(contextSpec) {
-1 19181 return isContextObject(contextSpec) || isContextProp(contextSpec);
-1 19182 }
-1 19183 function normalizeContextList() {
-1 19184 var selectorList = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
-1 19185 var normalizedList = [];
-1 19186 if (!isArrayLike(selectorList)) {
-1 19187 selectorList = [ selectorList ];
-1 19188 }
-1 19189 for (var _i11 = 0; _i11 < selectorList.length; _i11++) {
-1 19190 var normalizedSelector = normalizeContextSelector(selectorList[_i11]);
-1 19191 if (normalizedSelector) {
-1 19192 normalizedList.push(normalizedSelector);
-1 19193 }
18135 19194 }
-1 19195 return normalizedList;
18136 19196 }
18137 -1 var rule_should_run_default = ruleShouldRun;
18138 -1 function attributeMatches(node, attrName, filterAttrs) {
18139 -1 if (typeof filterAttrs[attrName] === 'undefined') {
18140 -1 return false;
-1 19197 function normalizeContextSelector(selector) {
-1 19198 if (selector instanceof window.Node) {
-1 19199 return selector;
18141 19200 }
18142 -1 if (filterAttrs[attrName] === true) {
18143 -1 return true;
-1 19201 if (typeof selector === 'string') {
-1 19202 return [ selector ];
18144 19203 }
18145 -1 return element_matches_default(node, filterAttrs[attrName]);
-1 19204 if (isLabelledFramesSelector(selector)) {
-1 19205 assertLabelledFrameSelector(selector);
-1 19206 selector = selector.fromFrames;
-1 19207 } else if (isLabelledShadowDomSelector(selector)) {
-1 19208 selector = [ selector ];
-1 19209 }
-1 19210 return normalizeFrameSelectors(selector);
18146 19211 }
18147 -1 function filterHtmlAttrs(element, filterAttrs) {
18148 -1 if (!filterAttrs) {
18149 -1 return element;
-1 19212 function normalizeFrameSelectors(frameSelectors) {
-1 19213 if (!Array.isArray(frameSelectors)) {
-1 19214 return;
18150 19215 }
18151 -1 var node = element.cloneNode(false);
18152 -1 var outerHTML = node.outerHTML;
18153 -1 var attributes4 = get_node_attributes_default(node);
18154 -1 if (cache_default.get(outerHTML)) {
18155 -1 node = cache_default.get(outerHTML);
18156 -1 } else if (attributes4) {
18157 -1 node = document.createElement(node.nodeName);
18158 -1 Array.from(attributes4).forEach(function(attr) {
18159 -1 if (!attributeMatches(element, attr.name, filterAttrs)) {
18160 -1 node.setAttribute(attr.name, attr.value);
-1 19216 var normalizedSelectors = [];
-1 19217 var _iterator5 = _createForOfIteratorHelper(frameSelectors), _step5;
-1 19218 try {
-1 19219 for (_iterator5.s(); !(_step5 = _iterator5.n()).done; ) {
-1 19220 var selector = _step5.value;
-1 19221 if (isLabelledShadowDomSelector(selector)) {
-1 19222 assertLabelledShadowDomSelector(selector);
-1 19223 selector = selector.fromShadowDom;
18161 19224 }
18162 -1 });
18163 -1 cache_default.set(outerHTML, node);
-1 19225 if (typeof selector !== 'string' && !isShadowSelector(selector)) {
-1 19226 return;
-1 19227 }
-1 19228 normalizedSelectors.push(selector);
-1 19229 }
-1 19230 } catch (err) {
-1 19231 _iterator5.e(err);
-1 19232 } finally {
-1 19233 _iterator5.f();
18164 19234 }
18165 -1 Array.from(element.childNodes).forEach(function(child) {
18166 -1 node.appendChild(filterHtmlAttrs(child, filterAttrs));
-1 19235 return normalizedSelectors;
-1 19236 }
-1 19237 function isContextObject(contextSpec) {
-1 19238 return [ 'include', 'exclude' ].some(function(prop) {
-1 19239 return objectHasOwn(contextSpec, prop) && isContextProp(contextSpec[prop]);
18167 19240 });
18168 -1 return node;
18169 19241 }
18170 -1 var filter_html_attrs_default = filterHtmlAttrs;
18171 -1 function pushNode(result, nodes) {
18172 -1 var temp;
18173 -1 if (result.length === 0) {
18174 -1 return nodes;
18175 -1 }
18176 -1 if (result.length < nodes.length) {
18177 -1 temp = result;
18178 -1 result = nodes;
18179 -1 nodes = temp;
-1 19242 function isContextProp(contextList) {
-1 19243 return typeof contextList === 'string' || contextList instanceof window.Node || isLabelledFramesSelector(contextList) || isLabelledShadowDomSelector(contextList) || isArrayLike(contextList);
-1 19244 }
-1 19245 function isLabelledFramesSelector(selector) {
-1 19246 return objectHasOwn(selector, 'fromFrames');
-1 19247 }
-1 19248 function isLabelledShadowDomSelector(selector) {
-1 19249 return objectHasOwn(selector, 'fromShadowDom');
-1 19250 }
-1 19251 function assertLabelledFrameSelector(selector) {
-1 19252 assert2(Array.isArray(selector.fromFrames), 'fromFrames property must be an array');
-1 19253 assert2(selector.fromFrames.every(function(selector2) {
-1 19254 return !objectHasOwn(selector2, 'fromFrames');
-1 19255 }), 'Invalid context; fromFrames selector must be appended, rather than nested');
-1 19256 assert2(!objectHasOwn(selector, 'fromShadowDom'), 'fromFrames and fromShadowDom cannot be used on the same object');
-1 19257 }
-1 19258 function assertLabelledShadowDomSelector(selector) {
-1 19259 assert2(Array.isArray(selector.fromShadowDom), 'fromShadowDom property must be an array');
-1 19260 assert2(selector.fromShadowDom.every(function(selector2) {
-1 19261 return !objectHasOwn(selector2, 'fromFrames');
-1 19262 }), 'shadow selector must be inside fromFrame instead');
-1 19263 assert2(selector.fromShadowDom.every(function(selector2) {
-1 19264 return !objectHasOwn(selector2, 'fromShadowDom');
-1 19265 }), 'fromShadowDom selector must be appended, rather than nested');
-1 19266 }
-1 19267 function isShadowSelector(selector) {
-1 19268 return Array.isArray(selector) && selector.every(function(str) {
-1 19269 return typeof str === 'string';
-1 19270 });
-1 19271 }
-1 19272 function isArrayLike(arr) {
-1 19273 return arr && _typeof(arr) === 'object' && typeof arr.length === 'number' && arr instanceof window.Node === false;
-1 19274 }
-1 19275 function assert2(bool, str) {
-1 19276 assert_default(bool, 'Invalid context; '.concat(str, '\nSee: https://github.com/dequelabs/axe-core/blob/master/doc/context.md'));
-1 19277 }
-1 19278 function objectHasOwn(obj, prop) {
-1 19279 if (!obj || _typeof(obj) !== 'object') {
-1 19280 return false;
18180 19281 }
18181 -1 for (var _i9 = 0, l = nodes.length; _i9 < l; _i9++) {
18182 -1 if (!result.includes(nodes[_i9])) {
18183 -1 result.push(nodes[_i9]);
-1 19282 return Object.prototype.hasOwnProperty.call(obj, prop);
-1 19283 }
-1 19284 function parseSelectorArray(context, type) {
-1 19285 var result = [];
-1 19286 for (var _i12 = 0, l = context[type].length; _i12 < l; _i12++) {
-1 19287 var item = context[type][_i12];
-1 19288 if (item instanceof window.Node) {
-1 19289 if (item.documentElement instanceof window.Node) {
-1 19290 result.push(context.flatTree[0]);
-1 19291 } else {
-1 19292 result.push(get_node_from_tree_default(item));
-1 19293 }
-1 19294 } else if (item && item.length) {
-1 19295 if (item.length > 1) {
-1 19296 pushUniqueFrameSelector(context, type, item);
-1 19297 } else {
-1 19298 var nodeList = _shadowSelectAll(item[0]);
-1 19299 result.push.apply(result, _toConsumableArray(nodeList.map(function(node) {
-1 19300 return get_node_from_tree_default(node);
-1 19301 })));
-1 19302 }
18184 19303 }
18185 19304 }
18186 -1 return result;
-1 19305 return result.filter(function(r) {
-1 19306 return r;
-1 19307 });
18187 19308 }
18188 -1 function getOuterIncludes(includes) {
18189 -1 return includes.reduce(function(res, el) {
18190 -1 if (!res.length || !_contains(res[res.length - 1], el)) {
18191 -1 res.push(el);
-1 19309 function pushUniqueFrameSelector(context, type, selectorArray) {
-1 19310 context.frames = context.frames || [];
-1 19311 var frameSelector = selectorArray.shift();
-1 19312 var frames = _shadowSelectAll(frameSelector);
-1 19313 frames.forEach(function(frame) {
-1 19314 var frameContext = context.frames.find(function(result) {
-1 19315 return result.node === frame;
-1 19316 });
-1 19317 if (!frameContext) {
-1 19318 frameContext = createFrameContext(frame, context);
-1 19319 context.frames.push(frameContext);
18192 19320 }
18193 -1 return res;
18194 -1 }, []);
-1 19321 frameContext[type].push(selectorArray);
-1 19322 });
18195 19323 }
18196 -1 function select(selector, context5) {
18197 -1 var result = [];
18198 -1 var candidate;
18199 -1 if (axe._selectCache) {
18200 -1 for (var j = 0, l = axe._selectCache.length; j < l; j++) {
18201 -1 var item = axe._selectCache[j];
18202 -1 if (item.selector === selector) {
18203 -1 return item.result;
18204 -1 }
-1 19324 function Context(spec, flatTree) {
-1 19325 var _spec, _spec2, _spec3, _spec4, _this2 = this;
-1 19326 spec = clone_default(spec);
-1 19327 this.frames = [];
-1 19328 this.page = typeof ((_spec = spec) === null || _spec === void 0 ? void 0 : _spec.page) === 'boolean' ? spec.page : void 0;
-1 19329 this.initiator = typeof ((_spec2 = spec) === null || _spec2 === void 0 ? void 0 : _spec2.initiator) === 'boolean' ? spec.initiator : true;
-1 19330 this.focusable = typeof ((_spec3 = spec) === null || _spec3 === void 0 ? void 0 : _spec3.focusable) === 'boolean' ? spec.focusable : true;
-1 19331 this.size = _typeof((_spec4 = spec) === null || _spec4 === void 0 ? void 0 : _spec4.size) === 'object' ? spec.size : {};
-1 19332 spec = normalizeContext(spec);
-1 19333 this.flatTree = flatTree !== null && flatTree !== void 0 ? flatTree : get_flattened_tree_default(getRootNode2(spec));
-1 19334 this.exclude = spec.exclude;
-1 19335 this.include = spec.include;
-1 19336 this.include = parseSelectorArray(this, 'include');
-1 19337 this.exclude = parseSelectorArray(this, 'exclude');
-1 19338 _select('frame, iframe', this).forEach(function(frame) {
-1 19339 if (_isNodeInContext(frame, _this2)) {
-1 19340 pushUniqueFrame(_this2, frame.actualNode);
18205 19341 }
-1 19342 });
-1 19343 if (typeof this.page === 'undefined') {
-1 19344 this.page = isPageContext(this);
-1 19345 this.frames.forEach(function(frame) {
-1 19346 frame.page = _this2.page;
-1 19347 });
18206 19348 }
18207 -1 var outerIncludes = getOuterIncludes(context5.include);
18208 -1 var isInContext = getContextFilter(context5);
18209 -1 for (var _i10 = 0; _i10 < outerIncludes.length; _i10++) {
18210 -1 candidate = outerIncludes[_i10];
18211 -1 var nodes = query_selector_all_filter_default(candidate, selector, isInContext);
18212 -1 result = pushNode(result, nodes);
-1 19349 validateContext(this);
-1 19350 if (!Array.isArray(this.include)) {
-1 19351 this.include = Array.from(this.include);
18213 19352 }
18214 -1 if (axe._selectCache) {
18215 -1 axe._selectCache.push({
18216 -1 selector: selector,
18217 -1 result: result
18218 -1 });
-1 19353 this.include.sort(node_sorter_default);
-1 19354 }
-1 19355 function pushUniqueFrame(context, frame) {
-1 19356 if (!_isVisibleToScreenReaders(frame) || find_by_default(context.frames, 'node', frame)) {
-1 19357 return;
18219 19358 }
18220 -1 return result;
-1 19359 context.frames.push(createFrameContext(frame, context));
18221 19360 }
18222 -1 var select_default = select;
18223 -1 function getContextFilter(context5) {
18224 -1 if (!context5.exclude || context5.exclude.length === 0) {
18225 -1 return null;
-1 19361 function isPageContext(_ref47) {
-1 19362 var include = _ref47.include;
-1 19363 return include.length === 1 && include[0].actualNode === document.documentElement;
-1 19364 }
-1 19365 function validateContext(context) {
-1 19366 if (context.include.length === 0 && context.frames.length === 0) {
-1 19367 var env = _respondable.isInFrame() ? 'frame' : 'page';
-1 19368 throw new Error('No elements found for include in ' + env + ' Context');
18226 19369 }
18227 -1 return function(node) {
18228 -1 return is_node_in_context_default(node, context5);
18229 -1 };
18230 19370 }
18231 -1 function setScroll(elm, top, left) {
18232 -1 if (elm === window) {
18233 -1 return elm.scroll(left, top);
18234 -1 } else {
18235 -1 elm.scrollTop = top;
18236 -1 elm.scrollLeft = left;
-1 19371 function getRootNode2(_ref48) {
-1 19372 var include = _ref48.include, exclude = _ref48.exclude;
-1 19373 var selectors = Array.from(include).concat(Array.from(exclude));
-1 19374 for (var _i13 = 0; _i13 < selectors.length; _i13++) {
-1 19375 var item = selectors[_i13];
-1 19376 if (item instanceof window.Element) {
-1 19377 return item.ownerDocument.documentElement;
-1 19378 }
-1 19379 if (item instanceof window.Document) {
-1 19380 return item.documentElement;
-1 19381 }
18237 19382 }
-1 19383 return document.documentElement;
18238 19384 }
18239 -1 function setScrollState(scrollState) {
18240 -1 scrollState.forEach(function(_ref29) {
18241 -1 var elm = _ref29.elm, top = _ref29.top, left = _ref29.left;
18242 -1 return setScroll(elm, top, left);
-1 19385 function _getFrameContexts(context) {
-1 19386 var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
-1 19387 if (options.iframes === false) {
-1 19388 return [];
-1 19389 }
-1 19390 var _Context = new Context(context), frames = _Context.frames;
-1 19391 return frames.map(function(_ref49) {
-1 19392 var node = _ref49.node, frameContext = _objectWithoutProperties(_ref49, _excluded7);
-1 19393 frameContext.initiator = false;
-1 19394 var frameSelector = _getAncestry(node);
-1 19395 return {
-1 19396 frameSelector: frameSelector,
-1 19397 frameContext: frameContext
-1 19398 };
18243 19399 });
18244 19400 }
18245 -1 var set_scroll_state_default = setScrollState;
18246 -1 function _shadowSelect(selectors) {
18247 -1 var selectorArr = Array.isArray(selectors) ? _toConsumableArray(selectors) : [ selectors ];
18248 -1 return selectRecursive(selectorArr, document);
-1 19401 function getRule(ruleId) {
-1 19402 var rule = axe._audit.rules.find(function(rule2) {
-1 19403 return rule2.id === ruleId;
-1 19404 });
-1 19405 if (!rule) {
-1 19406 throw new Error('Cannot find rule by id: '.concat(ruleId));
-1 19407 }
-1 19408 return rule;
18249 19409 }
18250 -1 function selectRecursive(selectors, doc) {
18251 -1 var selectorStr = selectors.shift();
18252 -1 var elm = selectorStr ? doc.querySelector(selectorStr) : null;
18253 -1 if (selectors.length === 0) {
18254 -1 return elm;
-1 19410 var get_rule_default = getRule;
-1 19411 function _getScroll(elm) {
-1 19412 var buffer = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
-1 19413 var overflowX = elm.scrollWidth > elm.clientWidth + buffer;
-1 19414 var overflowY = elm.scrollHeight > elm.clientHeight + buffer;
-1 19415 if (!(overflowX || overflowY)) {
-1 19416 return;
18255 19417 }
18256 -1 if (!(elm !== null && elm !== void 0 && elm.shadowRoot)) {
18257 -1 return null;
-1 19418 var style = window.getComputedStyle(elm);
-1 19419 var scrollableX = isScrollable(style, 'overflow-x');
-1 19420 var scrollableY = isScrollable(style, 'overflow-y');
-1 19421 if (overflowX && scrollableX || overflowY && scrollableY) {
-1 19422 return {
-1 19423 elm: elm,
-1 19424 top: elm.scrollTop,
-1 19425 left: elm.scrollLeft
-1 19426 };
18258 19427 }
18259 -1 return selectRecursive(selectors, elm.shadowRoot);
18260 19428 }
18261 -1 function tokenList(str) {
18262 -1 return (str || '').trim().replace(/\s{2,}/g, ' ').split(' ');
-1 19429 function isScrollable(style, prop) {
-1 19430 var overflowProp = style.getPropertyValue(prop);
-1 19431 return [ 'scroll', 'auto' ].includes(overflowProp);
-1 19432 }
-1 19433 function getElmScrollRecursive(root) {
-1 19434 return Array.from(root.children || root.childNodes || []).reduce(function(scrolls, elm) {
-1 19435 var scroll = _getScroll(elm);
-1 19436 if (scroll) {
-1 19437 scrolls.push(scroll);
-1 19438 }
-1 19439 return scrolls.concat(getElmScrollRecursive(elm));
-1 19440 }, []);
-1 19441 }
-1 19442 function getScrollState() {
-1 19443 var win = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : window;
-1 19444 var root = win.document.documentElement;
-1 19445 var windowScroll = [ win.pageXOffset !== void 0 ? {
-1 19446 elm: win,
-1 19447 top: win.pageYOffset,
-1 19448 left: win.pageXOffset
-1 19449 } : {
-1 19450 elm: root,
-1 19451 top: root.scrollTop,
-1 19452 left: root.scrollLeft
-1 19453 } ];
-1 19454 return windowScroll.concat(getElmScrollRecursive(document.body));
-1 19455 }
-1 19456 var get_scroll_state_default = getScrollState;
-1 19457 function _getStandards() {
-1 19458 return clone_default(standards_default);
-1 19459 }
-1 19460 function getStyleSheetFactory(dynamicDoc) {
-1 19461 if (!dynamicDoc) {
-1 19462 throw new Error('axe.utils.getStyleSheetFactory should be invoked with an argument');
-1 19463 }
-1 19464 return function(options) {
-1 19465 var data2 = options.data, _options$isCrossOrigi = options.isCrossOrigin, isCrossOrigin = _options$isCrossOrigi === void 0 ? false : _options$isCrossOrigi, shadowId = options.shadowId, root = options.root, priority = options.priority, _options$isLink = options.isLink, isLink = _options$isLink === void 0 ? false : _options$isLink;
-1 19466 var style = dynamicDoc.createElement('style');
-1 19467 if (isLink) {
-1 19468 var text = dynamicDoc.createTextNode('@import "'.concat(data2.href, '"'));
-1 19469 style.appendChild(text);
-1 19470 } else {
-1 19471 style.appendChild(dynamicDoc.createTextNode(data2));
-1 19472 }
-1 19473 dynamicDoc.head.appendChild(style);
-1 19474 return {
-1 19475 sheet: style.sheet,
-1 19476 isCrossOrigin: isCrossOrigin,
-1 19477 shadowId: shadowId,
-1 19478 root: root,
-1 19479 priority: priority
-1 19480 };
-1 19481 };
-1 19482 }
-1 19483 var get_stylesheet_factory_default = getStyleSheetFactory;
-1 19484 var styleSheet;
-1 19485 function injectStyle(style) {
-1 19486 if (styleSheet && styleSheet.parentNode) {
-1 19487 if (styleSheet.styleSheet === void 0) {
-1 19488 styleSheet.appendChild(document.createTextNode(style));
-1 19489 } else {
-1 19490 styleSheet.styleSheet.cssText += style;
-1 19491 }
-1 19492 return styleSheet;
-1 19493 }
-1 19494 if (!style) {
-1 19495 return;
-1 19496 }
-1 19497 var head = document.head || document.getElementsByTagName('head')[0];
-1 19498 styleSheet = document.createElement('style');
-1 19499 styleSheet.type = 'text/css';
-1 19500 if (styleSheet.styleSheet === void 0) {
-1 19501 styleSheet.appendChild(document.createTextNode(style));
-1 19502 } else {
-1 19503 styleSheet.styleSheet.cssText = style;
-1 19504 }
-1 19505 head.appendChild(styleSheet);
-1 19506 return styleSheet;
-1 19507 }
-1 19508 var inject_style_default = injectStyle;
-1 19509 function isHidden(el, recursed) {
-1 19510 var node = get_node_from_tree_default(el);
-1 19511 if (el.nodeType === 9) {
-1 19512 return false;
-1 19513 }
-1 19514 if (el.nodeType === 11) {
-1 19515 el = el.host;
-1 19516 }
-1 19517 if (node && node._isHidden !== null) {
-1 19518 return node._isHidden;
-1 19519 }
-1 19520 var style = window.getComputedStyle(el, null);
-1 19521 if (!style || !el.parentNode || style.getPropertyValue('display') === 'none' || !recursed && style.getPropertyValue('visibility') === 'hidden' || el.getAttribute('aria-hidden') === 'true') {
-1 19522 return true;
-1 19523 }
-1 19524 var parent = el.assignedSlot ? el.assignedSlot : el.parentNode;
-1 19525 var hidden = isHidden(parent, true);
-1 19526 if (node) {
-1 19527 node._isHidden = hidden;
-1 19528 }
-1 19529 return hidden;
18263 19530 }
18264 -1 var token_list_default = tokenList;
18265 -1 function validInputTypes() {
18266 -1 return [ 'hidden', 'text', 'search', 'tel', 'url', 'email', 'password', 'date', 'month', 'week', 'time', 'datetime-local', 'number', 'range', 'color', 'checkbox', 'radio', 'file', 'submit', 'image', 'reset', 'button' ];
-1 19531 var is_hidden_default = isHidden;
-1 19532 function isHtmlElement(node) {
-1 19533 var _node$props$nodeName, _node$props;
-1 19534 var nodeName2 = (_node$props$nodeName = (_node$props = node.props) === null || _node$props === void 0 ? void 0 : _node$props.nodeName) !== null && _node$props$nodeName !== void 0 ? _node$props$nodeName : node.nodeName.toLowerCase();
-1 19535 if (node.namespaceURI === 'http://www.w3.org/2000/svg') {
-1 19536 return false;
-1 19537 }
-1 19538 return !!standards_default.htmlElms[nodeName2];
18267 19539 }
18268 -1 var valid_input_type_default = validInputTypes;
18269 -1 var langs = [ , [ , [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, , 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, , 1, 1, 1, , 1, 1, , 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, , 1, 1, 1, 1, 1, 1, 1, , 1, , 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, , , , , , 1, 1, 1, 1, , , 1, 1, 1, , 1, , 1, , 1, 1 ], [ 1, 1, 1, , 1, 1, , 1, 1, 1, , 1, , , 1, 1, 1, , , 1, 1, 1, , , , , 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, , , , , 1, 1, 1, , 1, 1, 1, 1, 1, 1, , 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , , 1, 1, 1 ], [ , 1, , , , , , 1, , 1, , , , , 1, , 1, , , , 1, 1, , 1, , , 1 ], [ 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, , 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , , , 1, 1, 1, 1, , , 1, , 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, , 1, 1, , , 1, , , , , 1, 1, 1, , 1, , 1, , 1, , , , , , 1 ], [ 1, , 1, 1, 1, 1, , , 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1 ], [ 1, , 1, , 1, , , , , 1, , 1, 1, 1, 1, 1, , , , 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, , 1, 1, 1, , 1, , 1, 1, 1, , , 1, 1, 1, 1, 1, 1, 1, 1 ], [ , , 1, , , 1, , 1, , , , 1, 1, 1, , , , , , , , , , , 1 ], [ 1, 1, 1, 1, 1, 1, , 1, 1, 1, , 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, , , 1, 1, 1 ], [ 1, 1, 1, 1, 1, , , 1, , , 1, , , 1, 1, 1, , , , , 1, , , , , , 1 ] ], [ , [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, , 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, , , 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, , , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, , 1, , , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, , 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ] ], [ , [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, , 1, 1, , 1, 1, 1, 1, 1, 1, 1, , 1 ], [ , 1, , 1, 1, 1, , 1, 1, , 1, , 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, , 1, 1, 1, 1, 1, 1, 1, 1, , , 1, 1, 1, , , 1, 1, , , , , , 1, 1 ], [ 1, 1, 1, , , , , 1, , , , 1, 1, , 1, , , , , , 1, , , , , 1 ], [ , 1, , , 1, , , 1, , , , , , 1 ], [ , 1, , 1, , , , 1, , , , 1 ], [ 1, , 1, 1, 1, , 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, , , 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, , , 1, , , 1, , 1, 1, , 1, , 1, , , , , 1, , 1 ], [ , 1, , , , 1, , , 1, 1, , 1, , 1, 1, 1, 1, , 1, 1, , , 1, , , 1 ], [ , 1, 1, , , , , , 1, , , , 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, , 1, 1, 1 ], [ , 1, , 1, 1, 1, , , 1, 1, 1, 1, 1, 1, , 1, , , , , 1, 1, , 1, , 1 ], [ , 1, , 1, , 1, , 1, , 1, , 1, 1, 1, 1, 1, , , 1, 1, 1 ], [ , 1, 1, 1, , , , 1, 1, 1, , 1, 1, , , 1, 1, , 1, 1, 1, 1, , 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, , , 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, , 1, 1, 1, , 1, , , , , 1, 1, 1, , , 1, , 1, , , 1, 1 ], [ , , , , 1, , , , , , , , , , , , , , , , , 1 ], [ 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1 ], [ , 1, , 1, 1, 1, , 1, 1, , , , 1, 1, 1, 1, 1, , , 1, 1, 1, , , , , 1 ], [ 1, 1, 1, 1, , , , 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, , , , , , , 1, , , , , , , 1 ], [ , 1, 1, , 1, 1, , 1, , , , , , , , , , , , , 1 ], , [ 1, 1, 1, , , , , , , , , , , , , 1 ], [ , , , , , , , , 1, , , 1, , , 1, 1, , , , , 1 ] ], [ , [ 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1 ], [ , 1, 1, , 1, 1, 1, 1, , 1, 1, , 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, , 1 ], [ , , , 1, , , , , , , , , , , , , , , 1 ], [ , 1, , , 1, 1, , 1, , 1, 1, , , , 1, 1, , , 1, 1, , , , 1 ], [ 1, , , 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, , 1, 1, 1, 1, , , 1, , , , 1 ], , [ , 1, 1, 1, 1, 1, , 1, 1, 1, , 1, 1, , 1, 1, , , 1, 1, 1, 1, , 1, 1, , 1 ], [ , 1, , , 1, , , 1, , 1, , , 1, 1, 1, 1, , , 1, 1, , 1, 1, 1, 1 ], [ , 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, , , 1, 1, 1, 1, 1, 1, 1, , , 1, , , 1, , 1 ], [ , 1, , , , , , , , , , 1, 1, , , , , , 1, 1, , , , , 1 ], [ , , , , , , , 1, , , , 1, , 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, , , , 1, 1, 1, 1, 1, , , 1, 1, , 1, 1, 1, 1, 1 ], [ , 1, , , 1, 1, , 1, , 1, 1, 1, , , 1, 1, , , 1, , 1, 1, 1, 1, , 1 ], [ , 1, 1, 1, , 1, 1, , 1, 1, , 1, 1, , 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1 ], [ , , , , , , , , , , , , , , , , 1 ], , [ , 1, 1, 1, 1, 1, , 1, 1, 1, , , 1, , 1, 1, , 1, 1, 1, 1, 1, , 1, , 1 ], [ , , 1, , , 1, , , 1, 1, , , 1, , 1, 1, , 1 ], [ , 1, 1, , 1, , , , 1, 1, , 1, , 1, 1, 1, 1, , 1, 1, 1, 1, , , , 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1 ], [ 1, 1 ], [ , 1, , , , , , , , , , 1, 1, , , , , , 1, 1, , 1, , 1, , 1, 1 ], , [ , 1, 1, , 1, , , 1, , 1, , , , 1, 1, 1, , , , , , 1, , , , 1 ], [ 1, 1, , , 1, 1, , 1, , , , , 1, , 1 ] ], [ , [ , 1 ], [ , , , 1, , , , 1, , , , 1, , , , 1, , , 1, , , 1 ], [ , , , , , , , , , , , , , , , , , , 1, 1, , , , , , 1 ], , [ 1, , , , , 1 ], [ , 1, , , , 1, , , , 1 ], [ , 1, , , , , , , , , , , 1, , , 1, , , , , , , , , 1, 1 ], [ , , , , , , , , , , , , , , , , , , , , , 1 ], [ , , , , , , , , , , , , , , , , 1, , , , 1, , 1 ], [ , 1 ], [ , 1, , 1, , 1, , 1, , 1, , 1, 1, 1, , 1, 1, , 1, , , , , , , 1 ], [ 1, , , , , 1, , , 1, 1, , 1, , 1, , 1, 1, , , , , 1, , , 1 ], [ , 1, 1, , , 1, , 1, , 1, , 1, , 1, 1, 1, 1, , , 1, , 1, , 1, 1, 1 ], [ 1, 1, 1, 1, 1, , 1, , 1, , , , 1, 1, 1, 1, , 1, 1, , , 1, 1, 1, 1 ], [ 1, , , , , , , , , , , , , , , , , , , , 1 ], [ , , , , , , , , , 1 ], , [ , 1, , , , , , 1, 1, 1, , 1, , , , 1, , , 1, 1, 1, , , 1 ], [ 1, , , , , 1, , 1, 1, 1, , 1, 1, 1, 1, 1, , 1, , 1, , 1, , , 1, 1 ], [ 1, , 1, 1, , , , , 1, , , , , , 1, 1, , , 1, 1, 1, 1, , , 1, , 1 ], [ 1, , , , , , , , , , , , , , , , , 1 ], [ , , , , , 1, , , 1, , , , , , 1 ], [ , , , , , , , , , , , , , , , 1 ], [ , , , , , , , , , , , , , , , , , , , , 1 ], [ , 1, , , , , , , , , , , , , , 1 ], [ , 1, , , , 1 ] ], [ , [ 1, 1, 1, , 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, , 1, , 1, 1, , , 1, 1, 1 ], [ , , , , , , , , , , , , 1 ], [ , , , , , , , , , , , , , , , , , , , 1 ], , [ , , , , , , , , , , , , , , , , , , 1 ], [ 1, , , , , , , , , 1, , , , 1 ], [ , , , , , , , , , , , , , , , , , , 1 ], , [ 1, 1, , , , 1, 1, , , , , , 1, , , , 1, , 1, , 1, 1, , 1 ], [ 1 ], [ , , , , , , , , , , , 1, , , , , , , , , , , 1 ], [ , 1, , , , , , , 1, 1, , , 1, , 1, , , , 1, , , , , , , 1 ], [ , , , , , , , , , , , , , , , , 1, , , , , 1 ], [ , , 1, , , , , 1, , 1 ], [ 1, , , , 1, , , , , 1, , , , 1, 1, , , , 1, 1, , , , , 1 ], [ , , , , , 1 ], [ , , , , , , , , , , , , , , , , , , , 1 ], [ 1, , , 1, 1, , , , , , , 1, , 1, , 1, 1, 1, 1, 1, 1 ], [ , , , , , 1, , , , , , , 1, , , , , , , 1 ], , [ , , 1, 1, 1, 1, 1, , 1, 1, 1, , , 1, 1, , , 1, 1, , 1, 1, 1, , , 1 ], [ , , , , , , , , , , , , , , , , , , 1 ], [ , 1, , , , 1 ], , [ 1 ] ], [ , [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1 ], [ , , , 1, 1, 1, 1, , , , , , 1, , 1, , , , 1, , 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, , , 1 ], [ , 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, , , , 1, , 1, , , 1, 1, 1, 1, 1 ], [ , , , , , , , , , , , 1, , , , , , , , , 1, , , , 1 ], [ , 1, 1, , 1, 1, , 1, , , , 1, 1, , 1, 1, , , 1, , 1, 1, , 1 ], [ , 1, , 1, , 1, , , 1, , , 1, 1, , 1, 1, , , 1, 1, 1 ], [ , 1, 1, 1, 1, 1, , 1, 1, , , , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1 ], [ , , , , , , , , , 1, , 1, , 1, 1, , , , 1, , , 1 ], [ , 1, , , 1, 1, , , , , , , , , 1, 1, 1, , , , , 1 ], [ 1, , , 1, 1, , , , 1, 1, 1, 1, 1, , , 1, , , 1, , , 1, , 1, , 1 ], [ , 1, 1, , 1, 1, , 1, 1, , , , 1, 1, 1, , , 1, 1, , , 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, , 1, 1, , 1, , , 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1 ], [ , 1, , , , 1, , , , , , , , , 1 ], [ , 1, , , , , , , , 1, , , , , 1, , , , 1, , , 1 ], [ , 1, 1, 1, 1, , , 1, 1, 1, 1, 1, , 1, , 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , , , , , 1, , 1, , , , , 1, 1, 1, 1, 1, , , 1, , , , 1 ], [ , 1, , , , , , , , 1, , , , , , , , , , , , 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1 ], [ 1, 1, , 1, , 1, 1, , , , 1, , 1, 1, 1, 1, 1, , 1, 1, , , , , , 1 ], [ , 1, 1, 1, 1, 1, 1, 1, , 1, 1, , , 1, 1, , , , 1, , 1, 1, , 1, 1 ], [ , , , , , , , , , , , , , , , , , , , , , , , , 1 ], [ , 1, 1, , 1, 1, 1, 1, , 1, , , 1, 1, 1, 1, , , 1, , , , , , , 1 ], [ , 1, , , , , , , , 1, , , , , 1 ] ], [ , [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , , 1, 1, 1, 1, 1 ], [ , 1, 1, , , , , , , , , , , , 1, 1, , , , , , 1 ], [ , 1, , , , , , , 1 ], [ , , , , , , , , , , , , , , 1, , , , , 1, , , , , , 1 ], [ 1, 1, , , 1, , , 1, 1, 1, , , , 1 ], , [ , , , , , , , , , , , , , 1, , , , , , , , , , 1 ], [ , , , , , , , , , 1, , , , , , , , , 1, , , , , , , 1 ], [ 1, 1, 1, , 1, , 1, 1, 1, 1, 1, 1, 1, 1, , 1, , , 1, , 1, , , 1, 1 ], [ , , , , , , , , , 1 ], [ , 1, , , , 1, , , , , , 1, , , 1, , , , , 1 ], [ , 1, 1, , 1, 1, , , , , , , , , , , , , , , 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, , , 1, 1, , 1, 1, 1, 1, , , , 1, 1, , , , 1, , 1 ], [ 1, 1, 1, 1, 1, 1, , , 1, 1, 1, 1, 1, 1, , 1, 1, , 1, 1, 1, , 1, 1, , 1, 1 ], [ , , , , , , , , , , , , , , , 1, , , , 1 ], , [ 1, 1, , 1, , 1, , , , , , 1, , 1, , 1, 1, , 1, , 1, 1, , 1, 1, , 1 ], [ , , 1, , , , , , 1, , , , 1, , 1, , , , , 1 ], [ 1, , , , , , , , , 1, , , , , , 1, , , , 1, , 1, , , 1 ], [ 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , , , 1, , 1, , , , , , 1, , , 1, , , , , , , , 1 ], [ , 1, , 1, , , , , , , , , , , , 1 ], , [ 1, 1, , , , , , , , , , , , , , , , , , , , , , 1, 1 ], [ 1 ] ], [ , [ 1, , , , , , , , , 1, , , , , 1, , 1, , 1 ], [ , 1, 1, , 1, 1, , 1, 1, 1, , , 1, 1, 1, , , , 1, , , 1, , , , 1 ], [ , 1, , , , , , , 1, , , , 1, , , , , , 1 ], [ 1, 1, 1, 1, 1, 1, , , , 1, , , , , , , , , 1, 1, 1, 1 ], [ 1 ], [ , 1, 1, , , 1, 1, , , , , 1, , 1, , , , , , , , 1, , , , 1 ], [ 1, , 1, , , 1, , 1, , , , , 1, 1, 1, 1, , , , 1, , , , 1 ], [ , , 1, , , , , , , 1, , , , , , , 1, , , , , , , 1 ], [ 1, , , , , , , , , , , , , , 1, , , , 1 ], [ , , , 1, , 1, , , , , 1, , , , 1, 1, , , , 1 ], [ 1, , , , , 1, , , , 1, , 1, 1, , , 1, 1, , 1, 1, 1, , 1, 1, 1, , 1 ], [ , 1, 1, , , , , 1, , 1, , 1, 1, 1, , 1, 1, , , 1, , 1, 1, 1 ], [ , 1, , , , 1, , , , 1, , , 1, , 1, 1, , , 1, 1, , , , , , 1 ], [ 1, , 1, 1, , 1, , 1, 1, , 1, , 1, 1, 1, 1, 1, , , 1, 1, , , , , , 1 ], [ 1, , , , , , , , , , , , , , , , , , 1, , , 1, , 1 ], [ , , , , , , , , , 1, , , , , , 1 ], [ , , , , , , , , , , , , , , , , , , , , , 1, , 1 ], [ , 1, , , , 1, , , 1, 1, , 1, , , 1, 1, , , 1, , , 1, , , 1, 1 ], [ 1, 1, , 1, 1, 1, , 1, 1, 1, , 1, , 1, 1, 1, , , 1, , 1, 1 ], [ 1, , 1, 1, 1, 1, , , , 1, , 1, 1, 1, , 1, , , 1, 1, 1, , 1, 1, 1, 1, 1 ], [ 1, , , , , , , , , , , , , 1 ], [ , , 1, , , , , , , , , , , , , , , , , , , , 1 ], [ 1, , , , , , , , , , , 1, , 1, , 1, , , , 1 ], [ , , , 1, , , , , , , , , 1 ], [ , 1, , , , , , , , , , , , , , 1, , , , , , , , , 1 ], [ , , , , , , , , 1, 1, , , , , , , , , 1, , , , , , , , 1 ] ], [ , [ 1, 1, 1, 1, 1, 1, 1, , 1, , 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, , , 1, 1, 1 ], [ , , , , , 1, , , , 1, 1, 1, , , 1, 1, , , 1, , 1, 1, , 1 ], [ , , , , , , , , , , , , , , , , , , , 1, 1 ], [ , 1, , , , , , 1, , , , , , , , , , , , , 1 ], [ , , 1, , , 1, , 1, 1, 1, , 1, 1, , 1, , , , 1, , 1, 1 ], , [ , , 1, , , 1, , , , , , 1, , , , 1 ], [ , , , , , , , , , 1, , , , , , , , , , 1 ], [ 1, 1, 1, 1, 1, 1, , 1, 1, 1, , , 1, 1, , 1, , 1, , , 1, 1, 1, , , 1 ], [ , , , , , 1, , , , , , , , , , , , , 1 ], [ , 1, , , , , , , , , , , , 1, , 1, 1, , 1, , , 1 ], [ , , , , , 1, , , , , , , , , , , , , , 1 ], [ , 1, 1, 1, 1, , , , , 1, , , 1, , 1, , , , 1, 1, , , , 1, 1 ], [ , 1, , , 1, , , 1, , 1, 1, , 1, , , , , , , 1 ], [ , , 1, , 1, , , 1, , , , , , , , , , , 1, 1, , , , 1 ], [ , 1, , , , , , , , , , , , , , , , , 1, , , , , , 1 ], [ , , , , , , , , , , , , , , , , , , 1 ], [ , 1, 1, , , , , , , , , , , , , , , , 1, , 1, 1 ], [ , , , , , , , , , , , , 1 ], , [ , 1, 1, 1, 1, , , , 1, 1, , 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, , 1, , 1 ], [ 1, , , , 1, , , , , , , , , , 1 ], [ 1, , , , , , , , , 1 ], , [ , 1, , , , 1, , , , , , , , , , , , , , , , , , , , 1 ] ], [ , [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, , 1, 1, 1, 1, , , , 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, , 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , , 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ] ], [ , [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, , 1, , 1, 1, 1, 1 ], [ 1, 1, 1, 1, , 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , , , 1, 1, 1, 1, , 1, , , , 1, 1, , , 1, 1, , 1 ], [ , 1, 1, , 1, , , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, , , , , , , , , , , , , 1 ], [ 1, 1, 1, , , , , 1, 1, 1, , 1, 1, 1, 1, , , 1, 1, , 1, 1, , , , , 1 ], [ , 1, , , , , , , 1, 1, , , 1, 1, 1, , 1, , , 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , , 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1 ], [ , 1, , , , 1, , , , 1, , , 1, , , , 1, , , , , , , 1, 1 ], [ , 1, 1, 1, 1, 1, , , 1, 1, 1, , 1, 1, 1, 1, , , 1, 1, 1, 1, , , , 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, , 1, , , 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , , 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, , 1, , , 1, 1, 1, 1, , 1, 1, 1, 1, , , , 1, , 1, , 1, , , 1 ], [ 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, , , , 1, , , , , , , , , 1, 1, , , , , , , , , 1 ], , [ , 1, , 1, , 1, , 1, , 1, , 1, 1, 1, 1, 1, , , 1, , 1, , 1, , , , 1 ], [ , 1, , , 1, 1, , 1, 1, 1, , , 1, 1, 1, 1, 1, , 1, 1, 1, , 1, , , 1 ], [ 1, , , 1, , , , 1, 1, 1, , , , , 1, 1, , , , 1, , 1 ], [ 1, 1, , 1, 1, 1, 1, , , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1 ], [ 1, 1, , , , , , , , 1, , 1, , , , , , , , 1, , 1 ], [ , 1, , , , 1, , 1, 1, , , , 1, 1, , 1, , , , 1, 1, 1, , 1 ], , [ , 1, , , , , , 1, , , , , , , 1 ], [ , , , , , , , , 1, , , , 1, , 1, , , , , , , , , , , , 1 ] ], [ , [ , 1, 1, , 1, 1, 1, 1, , 1, 1, 1, , 1, 1, , 1, 1, , 1, 1, 1, 1, 1, 1, , 1 ], [ , 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, , 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1 ], [ , 1, 1, , 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ] ], [ , [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , , 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , , 1, , 1 ], [ 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, , , 1, , , , , , , , 1, , , , , , 1, , , 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, , 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, , 1, , , , 1, 1, 1, , 1, 1, 1, 1, , , 1, 1, 1, 1, , , 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1 ], [ 1, 1, , 1, , 1, , 1, , 1, 1, 1, 1, 1, 1, 1, , 1, 1, , , 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, , 1, 1 ], [ , 1, 1, , , , , 1, 1, 1, , , 1, , 1, 1, , , , 1, , 1, , , 1, 1 ], [ , , , , , , , 1, , , , 1, 1, 1, 1, 1, , 1, , , , , , , , 1 ], [ 1, 1, 1, 1, , 1, 1, 1, , 1, , 1, 1, 1, 1, , 1, , 1, , 1, 1, , , 1, , 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , , , , 1, 1, , 1, , 1, 1, 1, , 1, , 1, 1, , 1, 1, , 1, , 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, , , , , , , , 1, , , , , 1, , 1 ], [ , 1, 1, 1, , 1, , 1, , 1, , , , 1, , 1, , , 1, , , , , , 1, 1 ], [ , 1, , , 1, 1, , 1, , 1, , 1, 1, 1, 1, 1, , 1, 1, , , 1, , , 1 ], [ 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, , 1, , , , , 1, , 1, , 1, , , , , , 1, , 1, , , , 1, 1 ] ], [ , [ , 1, , 1, , , , , , , , , , , , , , , 1, , , , 1 ], [ , , , , , , , , , 1, , 1, 1, 1, , 1, , , 1, , 1, 1 ], [ 1, 1, , , , , , , 1, , , , , , , 1, , , , , , 1 ], [ , 1, , , , , , , , , , 1, , , , , , , , , 1, 1 ], , [ , , , , , , , , , , , , , , , 1, , , , 1, , 1 ], [ , , 1, 1, , 1, , 1, , , , , , , , 1, , , , , , 1 ], [ , , , , , , , , , , , , , , , , , , , , 1, 1 ], [ , 1, , , , , , , , , , , , , 1 ], [ 1, , 1, 1, , , , 1, , , , , , , , , 1, , , 1, , , 1, 1 ], [ , 1, 1, , 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, , , 1, 1, , 1, 1, , 1 ], [ , 1, , , 1, 1, , , , , , 1, , 1, , 1, , , 1, , 1, 1 ], [ 1, 1, 1, 1, , 1, , 1, , 1, , 1, 1, , 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1 ], [ , 1, 1, , , 1, , 1, , 1, 1, 1, , , 1, 1, 1, , 1, 1, 1, 1, , 1, 1 ], [ , , , , 1, , , 1, , , , , , , 1, , , , 1, 1 ], [ , 1, , , , , , , , , , 1, , 1, , 1, , , , , 1, , , , , 1 ], , [ 1, 1, , 1, , 1, , 1, 1, , , , , , 1, 1, , , 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, , 1, , , , , , 1, , , , , , 1, 1, , , , 1, 1, , , 1 ], [ , 1, 1, , 1, 1, , , , 1, , 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, , 1, 1, 1, 1 ], [ , 1, 1, , , 1, , , , 1, , , , 1, 1 ], [ , , , , 1 ], [ , , , , , , , , , 1, , , 1 ], , [ , , 1, , 1, , , , , , , , , 1, , , , , , , , , , , , 1 ], [ , , , , , , , , , , , , , 1 ] ], [ , [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , , 1, 1, , 1, 1, 1, 1, 1, , , 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, , , 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, , 1, , , , , 1 ], [ , 1, , 1, , , , , , 1, , , , , 1, 1, , , , , 1, 1 ], [ , 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, , 1, , , 1, , 1, 1, 1 ], [ , 1, , , , 1, , , , , , , 1 ], [ , 1, , , 1, , , 1, , 1, , 1, 1, , 1, , , , , 1, , 1, , , , 1, 1 ], [ , 1, , , 1, , , 1, 1, 1, , 1, 1, 1, 1, 1, , 1, 1, , 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , , , , , , , , , , , , , , , , , , , , 1 ], [ , 1, 1, 1, , , , 1, 1, , , , , , 1, 1, 1, , 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1 ], [ , 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, , 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , , , 1, 1, 1, 1, 1, 1, 1, , 1, , 1, 1, 1, 1, 1, , 1, 1, , 1, 1, 1, 1, 1 ], [ , 1, , , , 1, , , , 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, , , , 1, , , , , , , , 1, , , , , , , , , , 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1 ], [ 1, 1, , 1, 1, 1, , 1, 1, 1, , , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, , 1 ], [ 1, 1, , , , , , , 1, 1, , , , , 1, 1, 1, 1, 1, , 1, 1, 1, 1, , 1 ], [ , 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, , 1, , 1, 1, 1, 1, , 1, 1, , 1, 1, 1, 1 ], , [ , 1, 1, , , , , 1, , 1, , , , 1, 1, 1, , , 1, , , , , 1 ], [ , , , , , , , , , , , , , 1 ], [ , , , , , 1, , , , , , , , 1, 1, , , , , 1, , 1, , , 1, 1 ], [ , , , , , , , , , , , , , , 1 ] ], [ , [ , 1 ], , , , , , , , , , , , , , , , , , , , [ 1, 1, 1, 1, 1, , 1, 1, 1, 1, , 1, 1, 1, 1, , 1, 1, 1, 1, , , 1, 1, 1, 1, 1 ], [ , 1, , 1, , 1, , , 1, 1, 1, , 1, 1, 1, 1, 1, , , 1, , , , 1, , 1, 1 ], [ , 1, , 1, , 1, , , 1, , , , , 1, , , , , , 1, 1 ], [ , 1, , 1, , , , , 1, , , , 1, , 1, 1, 1, 1, 1, 1, 1, 1, , 1 ], [ , 1, , , , , , , , , , , , , , , 1 ] ], [ , [ , 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , , 1, , , , , , , , , 1, 1, , , , 1 ], [ , , , , , , 1 ], [ , , 1 ], [ , 1, 1, , , 1, , 1, , 1, 1, , 1, 1, 1, , , , 1, 1, 1, , , , , 1 ], , [ , 1, , , , 1, , , , , , 1, , , 1, , , , 1, 1, , 1 ], [ , , , , , , , 1, , , , , , , , , 1 ], [ , 1, , , , 1, 1, , , , , , 1, 1, 1, , , , 1, , 1, 1 ], [ , , , , , , , 1, , 1, , , , , , , , , , 1 ], [ , 1, 1, , , , , , 1, 1, , , , 1, , , , , , , 1, , , 1 ], , [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, , , 1, , , 1, , , , , 1, , 1, , 1, , 1, , , , , 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, , , , , 1, 1, , 1, 1, , 1, , , 1, , 1 ], [ , , , , , , , , , , , , , , 1, , , , , , 1 ], , [ , , , , , , , , , 1, , , , , , 1, , , , , 1 ], [ , , 1, , , , , , , 1, , , 1, 1 ], [ , , , 1, , , , , 1, , , , , 1, , , , , , 1, , , , 1 ], [ 1, , 1, 1, , 1, 1, 1, 1, 1, , 1, , , , 1, 1, 1, , , 1, 1, , , , 1, 1 ], , [ 1, 1, , , , , , , , , , 1, , 1, , 1, , , 1 ], [ , , , , 1, , , , , , , , , , , , , , , , , , , 1 ], [ , , , , , , , , , , , , , , 1, , , , , 1, , 1 ], [ , , , , , , , , 1 ] ], [ , [ 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, , , 1, 1, 1, 1, 1, , 1, 1, , 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, , 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, , 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1 ], [ , , 1, , , 1, , , , , , , , 1, , , , , , 1, , , , 1 ], [ 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, , 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, , 1, 1, , 1, , , , 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, , 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, , 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, , 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1 ], [ , , 1, 1, 1, 1, , 1, , 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1 ], [ 1, 1, , , , , , , 1, , 1, 1, , 1, 1, 1, , 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, , 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1 ], [ 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1 ], [ 1, 1, 1, 1, , 1, , 1, , 1, 1, 1, 1, 1, , , , 1, 1, 1, 1, , 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, , 1, , , , , , 1, , 1, , , , , 1, 1, , , , , 1 ], [ 1, , 1, 1, , , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , , 1, 1, , 1, , 1, , , , 1, 1, 1, 1, 1, , , 1, 1, , 1, , 1 ], [ , 1, 1, 1, 1, , , , , 1, , 1, 1, 1, 1, 1, , , 1, 1, , , , 1, 1, 1 ], [ , 1, 1, 1, 1, 1, , 1, , , , , 1, , 1, , 1, , , 1, , , 1, 1, , 1 ] ], [ , [ 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, , 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, , 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , , , , , , , , , 1, , , , , 1, 1, , , 1, , 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , , , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, , , 1, 1, 1, 1, , 1, 1, , 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, , , , , , 1, , 1, 1, , 1, 1, 1, 1, 1, , , 1, , 1, , 1 ], [ 1, 1, 1, , 1, 1, 1, 1, , , , 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1 ], [ 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, , 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1 ], [ , 1, , 1, , 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1 ], [ , , 1, , , , , , , , , , 1, 1, 1, 1, 1, 1, 1, , 1, 1, , 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, , , 1, 1, , , , , , 1, 1, 1, 1, 1, , , , 1, 1, 1, , 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, , , , 1, 1, 1, 1, 1, 1, 1, , 1, 1, , 1, 1, 1 ], [ , 1, 1, 1, , 1, , 1, 1, 1, 1, , , 1, 1, 1, , 1, 1, 1, 1, 1, , , 1, 1 ], [ 1, 1, , , , 1, , , 1, 1, 1, , 1, , 1, , 1, , 1, 1, 1, 1, 1, , 1, , 1 ], [ , 1, , , , , , , 1, , 1, , 1, 1, 1, 1, , , , , , , , , 1 ] ], [ , [ , , , , , , , , , , , , , 1, 1, , , , 1 ], [ , 1, , , , , , , , 1, , , 1, , , , , , 1, , , 1, , , , 1 ], , [ , 1, , , , 1, , 1, , 1, 1, , 1, 1, , , , , , , , 1 ], [ , , , , , , , , , , , , , , , , , , , 1 ], [ , , , , , , , , , 1 ], [ 1, 1, 1, , , 1, , , , , , , , , 1, 1, , , , , , , , , , 1 ], [ , 1, , , , , , , , , , , , , 1 ], [ , , , , , , , , , , , , , , , , , , , 1, , , 1 ], [ , , , , , , , , , 1 ], [ 1, 1, , , , , , 1, 1, 1, , 1, 1, , , , 1, 1, , 1, , 1, 1, 1, , 1 ], [ , 1, 1, 1, , 1, 1, , , 1, , 1, 1, 1, 1, , , , , , , 1, , 1 ], [ , 1, 1, 1, 1, , , 1, , 1, , , , 1, 1, 1, 1, , 1, 1, , 1 ], [ , 1, , , 1, 1, , 1, , , , 1, , 1, 1, , 1, , 1, , , 1, , , 1, , 1 ], [ , , , , , , , , , , , 1 ], [ , , , , , , , , , 1, , , , , , , , , , , , , 1 ], , [ 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, , 1, 1, 1, 1, 1, 1, 1 ], [ , 1, , , , , , , 1, 1, , 1, , , , , 1, , , 1, , 1 ], [ , 1, , , , 1, , , 1, , , , , , , , 1, , 1, , , 1 ], [ , , , , , , , , , , , , , 1, 1, , , , 1, , , 1 ], [ , , , , , 1, , , 1, , , , 1 ], [ , 1 ], , [ , 1 ], [ 1, , , , , , , , , , , , , , 1, , , , , 1 ] ], [ , [ , 1, , , , 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, , 1, 1, , 1, 1, , , 1 ], [ , , 1, , , , , , , , , 1 ], , , [ 1, , , 1, 1, , , , , , , , 1, 1, , 1, 1, , 1 ], , [ , , , , , , , , , , , , , , , , , , 1, , 1 ], , [ 1, , , 1, 1, , 1, 1, , , , , 1, , 1, , , , , 1, 1, , 1 ], , [ , 1, , , , , , , , 1, 1, 1, 1, 1, , 1, 1, , , , 1, 1 ], [ , , , , , , , , , , , , , , , , 1, , , 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , , 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1 ], [ , , , , , , , , , , , 1, , 1, , , 1 ], [ 1, , , , , , , , , , , , , , , , , , 1, , 1 ], , , [ , 1, , , , , , , , , , , , , , 1, , , , 1, 1 ], [ , , , , , , , , , 1, , , 1, , , , , , , , , , 1 ], [ , , , , , , , , , , , , , , , 1 ], [ , , , , , , , , , , , , , 1, 1, , , , , , 1 ], , [ , 1 ] ], [ , [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, , , 1, 1, , 1, 1, 1, 1, 1, 1, , , 1, 1, 1, 1, 1, , 1, 1 ], [ , 1, , , , , , , , 1 ], [ , , , , 1, , , 1, , , 1, 1, , , , , , , , , , 1, , , , 1 ], [ , 1, , 1, 1, , , 1, 1, 1, , , , 1, 1, 1, 1, , 1, 1, 1, 1, , 1 ], [ , , , , , , , 1 ], [ , 1, 1, , , , , 1, , 1, , , , , , 1, , , , , , 1, , 1, , 1 ], [ , 1, , , , , , 1, , , , 1, , , , , , , , , , 1 ], [ , , 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , , , 1, , 1, 1, 1, 1, , 1 ], [ , 1, , , , , , , , 1 ], [ , 1, 1, , 1, , , , , , , , 1, , , , , , 1, , , 1, , 1, , 1 ], [ , 1, , 1, , 1, , 1, 1, 1, , 1, 1, 1, , 1, , , 1, 1, , 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, , , 1, 1, , , , 1, 1, 1, , , , 1, 1, , , 1, 1 ], [ , , 1, 1, 1, 1, , 1, , 1, , 1, , 1, 1, 1, 1, , , , , 1, , 1, , 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, , 1, , 1, , 1, 1, 1, , , 1, 1, , , , 1, , 1 ], [ , , , 1 ], , [ , 1, 1, , 1, , , 1, 1, 1, , 1, 1, 1, 1, 1, 1, , 1, 1, , 1, 1, 1, 1, 1, 1 ], [ , 1, , , , , , 1, , 1, , 1, , , , , , , 1, 1, , 1, 1 ], [ , , , , , , 1, , 1, 1, , 1, , 1, , , , , , , , , , 1 ], [ , 1, 1, , 1, , , , 1, , , , 1, 1, 1, , , , 1, , 1, 1, 1, , 1, 1 ], , [ , 1, 1, , , , , , , , , , , , , 1, , , 1, , , , , 1 ], [ , 1, , , , , , , , , , , , , , , , , , , , , , 1 ], [ , 1, 1, , , , , , , 1, , , , 1, , , , , 1, , , , , , , 1 ] ], [ , [ , 1, 1, 1, 1, 1, , 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1 ], [ , 1, 1, 1, 1, 1, , 1, , 1, 1, , , 1, 1, 1, 1, , 1, , , , , 1, 1, 1 ], [ , , 1, 1, , 1, , 1, 1, , , , 1, 1, 1, 1, , , 1, , 1, 1, 1, 1, , 1 ], [ , 1, , 1, , , , , , , , 1, , 1, , 1, , , , , , , , , , 1 ], [ , , 1, , 1, , , 1, , , , , 1, 1, , , 1, , 1, 1, 1, 1 ], [ , 1 ], [ , 1, 1, , 1, , 1, 1, , 1, , , 1, 1, 1, , , , 1, , , 1, , 1 ], [ 1, 1, , 1, 1, 1, , , , , , , , , , , , , 1, , 1, 1, 1 ], [ , 1, 1, , , , , , , 1, , , 1, , 1, , 1, , 1, 1, , , 1, , , 1 ], [ , , 1, , , , , , , , , , , , , , , , , , 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, , 1, , 1, , , , , 1, 1, 1, , , 1, , 1, , , , 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, , 1, , , 1, 1, 1, , 1, , 1, 1, 1, , , 1, 1, 1, 1, , , , 1, 1 ], [ , , , 1, 1, , , 1, , 1, , 1, , 1, 1, 1, 1, , 1, , , , , 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, , , , , , , , , , , , , , , , , , , 1 ], [ , 1, 1, , 1, 1, , 1, , 1, , , , 1, 1, , , 1, 1, , 1, 1, , 1 ], [ , 1, 1, 1, 1, 1, , , 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, , , 1 ], [ , 1, 1, 1, 1, 1, , 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1 ], [ , 1, 1, , 1, , , 1, , , 1, , 1, 1, 1, 1, 1, , 1, , 1, 1 ], [ , , , , , 1, , , , 1, , , , , 1, 1, , , , 1 ], [ , 1, , 1, 1, 1, , 1, , , 1, 1, 1, , , 1, , , 1, , 1, , , 1 ], [ , , 1, , , , , , , , , 1, , 1, , , , , 1, , 1 ], [ , 1, 1, , , , , , , , 1, 1, 1, , , , , , , , 1, , , , , 1 ], [ , , , , , , , , 1, , , , , 1, , , 1 ] ], [ , [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, , 1, 1, , , 1, 1, 1, 1, 1, 1, 1, 1, , , , , , , , , 1, 1 ], [ , , , , , , , , 1, , , , 1, , 1, , 1 ], [ , 1, , , 1, 1, , 1, , , , 1, , , , , , , , 1 ], [ , 1, , 1, , 1, , , , 1, 1, , 1, , 1, , , , 1, 1, 1, 1, 1, , , 1 ], , [ , 1, , , , , , , , 1, , , 1, 1, , , 1, , 1, 1, , 1, , 1 ], [ , 1, , , 1, , , , , , , , 1, , , , , , , 1 ], [ 1, 1, , , , , 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1 ], , [ , 1, , , , , , 1, , 1, , 1, 1, 1, 1, 1, , , 1, , 1, 1, , , , 1 ], [ , 1, 1, , , 1, , 1, , 1, , , 1, 1, 1, 1, , , 1, , , 1, , , , 1 ], [ , 1, 1, 1, 1, 1, , 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , , , 1, , 1 ], [ , 1, , , 1, 1, , 1, 1, , , 1, 1, , 1, 1, , 1, , 1, , 1 ], [ 1, , 1, , , , , 1, , 1, , 1, 1, 1, 1, , , , , 1, 1, , , , 1, 1 ], [ , 1, 1, , , , , 1, 1, , , 1, , 1, 1, 1, 1, , , , , , , , , , 1 ], , [ , 1, 1, , , 1, , , , 1, , 1, 1, 1, 1, 1, , , , 1, , , , 1, , 1 ], [ , , , 1, 1, , , 1, , , , , 1, , 1, 1, 1, , 1, 1, , , , , , 1 ], [ , 1, , , , , , , , , , , 1, , , , 1, , , , , , , 1, , 1 ], [ , 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, , 1, 1, 1, , 1, 1, , 1, 1, 1, 1 ], [ , 1, , , , , , , , , , , , , , , , , , , 1 ], [ , 1, , , , , , 1, , , , , 1, , 1, , , 1, 1, , 1, 1, , 1 ], [ , 1, , , , , , 1, , , , , 1, 1, , , , , , , , 1, , , , 1 ], [ , , , , , , , , , , , , , , , , , , 1, , , 1, , , , , 1 ], [ , , , , , , , 1, , , , 1 ] ], [ , [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, , 1, , 1, , , , , , , 1, , , , , , , , 1, , , 1 ], [ , 1, , , , , , , 1 ], [ , , , , , , , , , , 1 ], [ , 1, , , , , , 1, 1, , , , , , 1 ], , [ , 1, 1, , , , , , 1, , , , , 1, 1, , , , 1 ], [ 1, , 1, , 1, , , , , 1, , , , , 1, , , , , , , , , 1, 1 ], [ , 1, 1, , , , , , , , , 1, 1, 1, 1, , , , 1, , , , , 1, , , 1 ], , [ , 1, 1, , 1, , , 1, 1, , , 1, , , 1, 1, 1, , 1, , 1, 1, 1, , , , 1 ], [ , , , , , 1, , , , , 1, , , 1, 1, , , 1, , 1, , , , 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, , , 1, 1, , 1, , , , 1, , , , , , , , 1 ], [ , , , 1, , , , , 1, , , , , 1, , 1, , 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , , , , , 1 ], [ , 1, , , , , , 1, , , , , , , 1, 1, 1, , , 1 ], [ , 1, , , , , , , , , , 1, 1, 1, , , , , 1, , , 1 ], [ , , , , , 1, , 1, , , , , 1, 1, 1, , 1, 1, , 1, 1, 1, , , 1, 1 ], [ 1, 1, , , , , , , 1, , , , , 1, 1, , , , , , , , , , , 1 ], , [ , 1 ], [ , , , , , , , , , , , , , , , , , , , , , , , , 1 ], [ , , 1, , , , , 1, , , 1, , , , 1, , 1 ], [ , 1, , , , , , , , , 1 ] ] ];
18270 -1 function isValidLang(lang) {
18271 -1 var array = langs;
18272 -1 while (lang.length < 3) {
18273 -1 lang += '`';
-1 19540 var is_html_element_default = isHtmlElement;
-1 19541 function _isNodeInContext(node, _ref50) {
-1 19542 var _ref50$include = _ref50.include, include = _ref50$include === void 0 ? [] : _ref50$include, _ref50$exclude = _ref50.exclude, exclude = _ref50$exclude === void 0 ? [] : _ref50$exclude;
-1 19543 var filterInclude = include.filter(function(candidate) {
-1 19544 return _contains(candidate, node);
-1 19545 });
-1 19546 if (filterInclude.length === 0) {
-1 19547 return false;
18274 19548 }
18275 -1 for (var _i11 = 0; _i11 <= lang.length - 1; _i11++) {
18276 -1 var index = lang.charCodeAt(_i11) - 96;
18277 -1 array = array[index];
18278 -1 if (!array) {
18279 -1 return false;
18280 -1 }
-1 19549 var filterExcluded = exclude.filter(function(candidate) {
-1 19550 return _contains(candidate, node);
-1 19551 });
-1 19552 if (filterExcluded.length === 0) {
-1 19553 return true;
18281 19554 }
18282 -1 return true;
-1 19555 var deepestInclude = getDeepest(filterInclude);
-1 19556 var deepestExclude = getDeepest(filterExcluded);
-1 19557 return _contains(deepestExclude, deepestInclude);
18283 19558 }
18284 -1 function _validLangs(langArray) {
18285 -1 langArray = Array.isArray(langArray) ? langArray : langs;
18286 -1 var codes = [];
18287 -1 langArray.forEach(function(lang, index) {
18288 -1 var _char2 = String.fromCharCode(index + 96).replace('`', '');
18289 -1 if (Array.isArray(lang)) {
18290 -1 codes = codes.concat(_validLangs(lang).map(function(newLang) {
18291 -1 return _char2 + newLang;
18292 -1 }));
18293 -1 } else {
18294 -1 codes.push(_char2);
-1 19559 function getDeepest(collection) {
-1 19560 var deepest;
-1 19561 var _iterator6 = _createForOfIteratorHelper(collection), _step6;
-1 19562 try {
-1 19563 for (_iterator6.s(); !(_step6 = _iterator6.n()).done; ) {
-1 19564 var node = _step6.value;
-1 19565 if (!deepest || !_contains(node, deepest)) {
-1 19566 deepest = node;
-1 19567 }
18295 19568 }
18296 -1 });
18297 -1 return codes;
-1 19569 } catch (err) {
-1 19570 _iterator6.e(err);
-1 19571 } finally {
-1 19572 _iterator6.f();
-1 19573 }
-1 19574 return deepest;
18298 19575 }
18299 -1 var valid_langs_default = isValidLang;
18300 -1 axe._thisWillBeDeletedDoNotUse = axe._thisWillBeDeletedDoNotUse || {};
18301 -1 axe._thisWillBeDeletedDoNotUse.utils = {
18302 -1 setDefaultFrameMessenger: setDefaultFrameMessenger
18303 -1 };
18304 -1 var SerialVirtualNode = function(_abstract_virtual_nod2) {
18305 -1 _inherits(SerialVirtualNode, _abstract_virtual_nod2);
18306 -1 var _super2 = _createSuper(SerialVirtualNode);
18307 -1 function SerialVirtualNode(serialNode) {
18308 -1 var _this3;
18309 -1 _classCallCheck(this, SerialVirtualNode);
18310 -1 _this3 = _super2.call(this);
18311 -1 _this3._props = normaliseProps(serialNode);
18312 -1 _this3._attrs = normaliseAttrs(serialNode);
18313 -1 return _this3;
-1 19576 function matchAncestry(ancestryA, ancestryB) {
-1 19577 if (ancestryA.length !== ancestryB.length) {
-1 19578 return false;
18314 19579 }
18315 -1 _createClass(SerialVirtualNode, [ {
18316 -1 key: 'props',
18317 -1 get: function get() {
18318 -1 return this._props;
18319 -1 }
18320 -1 }, {
18321 -1 key: 'attr',
18322 -1 value: function attr(attrName) {
18323 -1 var _this$_attrs$attrName;
18324 -1 return (_this$_attrs$attrName = this._attrs[attrName]) !== null && _this$_attrs$attrName !== void 0 ? _this$_attrs$attrName : null;
18325 -1 }
18326 -1 }, {
18327 -1 key: 'hasAttr',
18328 -1 value: function hasAttr(attrName) {
18329 -1 return this._attrs[attrName] !== void 0;
18330 -1 }
18331 -1 }, {
18332 -1 key: 'attrNames',
18333 -1 get: function get() {
18334 -1 return Object.keys(this._attrs);
-1 19580 return ancestryA.every(function(selectorA, index) {
-1 19581 var selectorB = ancestryB[index];
-1 19582 if (!Array.isArray(selectorA)) {
-1 19583 return selectorA === selectorB;
18335 19584 }
18336 -1 } ]);
18337 -1 return SerialVirtualNode;
18338 -1 }(abstract_virtual_node_default);
18339 -1 var nodeNamesToTypes = {
18340 -1 '#cdata-section': 2,
18341 -1 '#text': 3,
18342 -1 '#comment': 8,
18343 -1 '#document': 9,
18344 -1 '#document-fragment': 11
18345 -1 };
18346 -1 var nodeTypeToName = {};
18347 -1 var nodeNames = Object.keys(nodeNamesToTypes);
18348 -1 nodeNames.forEach(function(nodeName2) {
18349 -1 nodeTypeToName[nodeNamesToTypes[nodeName2]] = nodeName2;
18350 -1 });
18351 -1 function normaliseProps(serialNode) {
18352 -1 var _serialNode$nodeName, _ref30, _serialNode$nodeType;
18353 -1 var nodeName2 = (_serialNode$nodeName = serialNode.nodeName) !== null && _serialNode$nodeName !== void 0 ? _serialNode$nodeName : nodeTypeToName[serialNode.nodeType];
18354 -1 var nodeType = (_ref30 = (_serialNode$nodeType = serialNode.nodeType) !== null && _serialNode$nodeType !== void 0 ? _serialNode$nodeType : nodeNamesToTypes[serialNode.nodeName]) !== null && _ref30 !== void 0 ? _ref30 : 1;
18355 -1 assert_default(typeof nodeType === 'number', 'nodeType has to be a number, got \''.concat(nodeType, '\''));
18356 -1 assert_default(typeof nodeName2 === 'string', 'nodeName has to be a string, got \''.concat(nodeName2, '\''));
18357 -1 nodeName2 = nodeName2.toLowerCase();
18358 -1 var type = null;
18359 -1 if (nodeName2 === 'input') {
18360 -1 type = (serialNode.type || serialNode.attributes && serialNode.attributes.type || '').toLowerCase();
18361 -1 if (!valid_input_type_default().includes(type)) {
18362 -1 type = 'text';
-1 19585 if (selectorA.length !== selectorB.length) {
-1 19586 return false;
18363 19587 }
18364 -1 }
18365 -1 var props = _extends({}, serialNode, {
18366 -1 nodeType: nodeType,
18367 -1 nodeName: nodeName2
-1 19588 return selectorA.every(function(str, index2) {
-1 19589 return selectorB[index2] === str;
-1 19590 });
18368 19591 });
18369 -1 if (type) {
18370 -1 props.type = type;
18371 -1 }
18372 -1 delete props.attributes;
18373 -1 return Object.freeze(props);
18374 -1 }
18375 -1 function normaliseAttrs(_ref31) {
18376 -1 var _ref31$attributes = _ref31.attributes, attributes4 = _ref31$attributes === void 0 ? {} : _ref31$attributes;
18377 -1 var attrMap = {
18378 -1 htmlFor: 'for',
18379 -1 className: 'class'
18380 -1 };
18381 -1 return Object.keys(attributes4).reduce(function(attrs, attrName) {
18382 -1 var value = attributes4[attrName];
18383 -1 assert_default(_typeof(value) !== 'object' || value === null, 'expects attributes not to be an object, \''.concat(attrName, '\' was'));
18384 -1 if (value !== void 0) {
18385 -1 var mappedName = attrMap[attrName] || attrName;
18386 -1 attrs[mappedName] = value !== null ? String(value) : null;
18387 -1 }
18388 -1 return attrs;
18389 -1 }, {});
18390 19592 }
18391 -1 var serial_virtual_node_default = SerialVirtualNode;
18392 -1 var aria_exports = {};
18393 -1 __export(aria_exports, {
18394 -1 allowedAttr: function allowedAttr() {
18395 -1 return allowed_attr_default;
18396 -1 },
18397 -1 arialabelText: function arialabelText() {
18398 -1 return arialabel_text_default;
18399 -1 },
18400 -1 arialabelledbyText: function arialabelledbyText() {
18401 -1 return arialabelledby_text_default;
18402 -1 },
18403 -1 getAccessibleRefs: function getAccessibleRefs() {
18404 -1 return get_accessible_refs_default;
18405 -1 },
18406 -1 getElementUnallowedRoles: function getElementUnallowedRoles() {
18407 -1 return get_element_unallowed_roles_default;
18408 -1 },
18409 -1 getExplicitRole: function getExplicitRole() {
18410 -1 return get_explicit_role_default;
18411 -1 },
18412 -1 getImplicitRole: function getImplicitRole() {
18413 -1 return implicit_role_default;
18414 -1 },
18415 -1 getOwnedVirtual: function getOwnedVirtual() {
18416 -1 return get_owned_virtual_default;
18417 -1 },
18418 -1 getRole: function getRole() {
18419 -1 return get_role_default;
18420 -1 },
18421 -1 getRoleType: function getRoleType() {
18422 -1 return get_role_type_default;
18423 -1 },
18424 -1 getRolesByType: function getRolesByType() {
18425 -1 return get_roles_by_type_default;
18426 -1 },
18427 -1 getRolesWithNameFromContents: function getRolesWithNameFromContents() {
18428 -1 return get_roles_with_name_from_contents_default;
18429 -1 },
18430 -1 implicitNodes: function implicitNodes() {
18431 -1 return implicit_nodes_default;
18432 -1 },
18433 -1 implicitRole: function implicitRole() {
18434 -1 return implicit_role_default;
18435 -1 },
18436 -1 isAccessibleRef: function isAccessibleRef() {
18437 -1 return is_accessible_ref_default;
18438 -1 },
18439 -1 isAriaRoleAllowedOnElement: function isAriaRoleAllowedOnElement() {
18440 -1 return is_aria_role_allowed_on_element_default;
18441 -1 },
18442 -1 isUnsupportedRole: function isUnsupportedRole() {
18443 -1 return is_unsupported_role_default;
18444 -1 },
18445 -1 isValidRole: function isValidRole() {
18446 -1 return is_valid_role_default;
18447 -1 },
18448 -1 label: function label() {
18449 -1 return label_default2;
18450 -1 },
18451 -1 labelVirtual: function labelVirtual() {
18452 -1 return label_virtual_default;
18453 -1 },
18454 -1 lookupTable: function lookupTable() {
18455 -1 return lookup_table_default;
18456 -1 },
18457 -1 namedFromContents: function namedFromContents() {
18458 -1 return named_from_contents_default;
18459 -1 },
18460 -1 requiredAttr: function requiredAttr() {
18461 -1 return required_attr_default;
18462 -1 },
18463 -1 requiredContext: function requiredContext() {
18464 -1 return required_context_default;
18465 -1 },
18466 -1 requiredOwned: function requiredOwned() {
18467 -1 return required_owned_default;
18468 -1 },
18469 -1 validateAttr: function validateAttr() {
18470 -1 return validate_attr_default;
18471 -1 },
18472 -1 validateAttrValue: function validateAttrValue() {
18473 -1 return validate_attr_value_default;
-1 19593 var match_ancestry_default = matchAncestry;
-1 19594 function nodeSorter(nodeA, nodeB) {
-1 19595 nodeA = nodeA.actualNode || nodeA;
-1 19596 nodeB = nodeB.actualNode || nodeB;
-1 19597 if (nodeA === nodeB) {
-1 19598 return 0;
18474 19599 }
18475 -1 });
18476 -1 function getGlobalAriaAttrs() {
18477 -1 if (cache_default.get('globalAriaAttrs')) {
18478 -1 return cache_default.get('globalAriaAttrs');
-1 19600 if (nodeA.compareDocumentPosition(nodeB) & 4) {
-1 19601 return -1;
-1 19602 } else {
-1 19603 return 1;
18479 19604 }
18480 -1 var globalAttrs = Object.keys(standards_default.ariaAttrs).filter(function(attrName) {
18481 -1 return standards_default.ariaAttrs[attrName].global;
18482 -1 });
18483 -1 cache_default.set('globalAriaAttrs', globalAttrs);
18484 -1 return globalAttrs;
18485 19605 }
18486 -1 var get_global_aria_attrs_default = getGlobalAriaAttrs;
18487 -1 function allowedAttr(role) {
18488 -1 var roleDef = standards_default.ariaRoles[role];
18489 -1 var attrs = _toConsumableArray(get_global_aria_attrs_default());
18490 -1 if (!roleDef) {
18491 -1 return attrs;
-1 19606 var node_sorter_default = nodeSorter;
-1 19607 function parseSameOriginStylesheet(sheet, options, priority, importedUrls) {
-1 19608 var isCrossOrigin = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;
-1 19609 var rules = Array.from(sheet.cssRules);
-1 19610 if (!rules) {
-1 19611 return Promise.resolve();
-1 19612 }
-1 19613 var cssImportRules = rules.filter(function(r) {
-1 19614 return r.type === 3;
-1 19615 });
-1 19616 if (!cssImportRules.length) {
-1 19617 return Promise.resolve({
-1 19618 isCrossOrigin: isCrossOrigin,
-1 19619 priority: priority,
-1 19620 root: options.rootNode,
-1 19621 shadowId: options.shadowId,
-1 19622 sheet: sheet
-1 19623 });
18492 19624 }
18493 -1 if (roleDef.allowedAttrs) {
18494 -1 attrs.push.apply(attrs, _toConsumableArray(roleDef.allowedAttrs));
-1 19625 var cssImportUrlsNotAlreadyImported = cssImportRules.filter(function(rule) {
-1 19626 return rule.href;
-1 19627 }).map(function(rule) {
-1 19628 return rule.href;
-1 19629 }).filter(function(url) {
-1 19630 return !importedUrls.includes(url);
-1 19631 });
-1 19632 var promises = cssImportUrlsNotAlreadyImported.map(function(importUrl, cssRuleIndex) {
-1 19633 var newPriority = [].concat(_toConsumableArray(priority), [ cssRuleIndex ]);
-1 19634 var isCrossOriginRequest = /^https?:\/\/|^\/\//i.test(importUrl);
-1 19635 return parse_crossorigin_stylesheet_default(importUrl, options, newPriority, importedUrls, isCrossOriginRequest);
-1 19636 });
-1 19637 var nonImportCSSRules = rules.filter(function(r) {
-1 19638 return r.type !== 3;
-1 19639 });
-1 19640 if (!nonImportCSSRules.length) {
-1 19641 return Promise.all(promises);
18495 19642 }
18496 -1 if (roleDef.requiredAttrs) {
18497 -1 attrs.push.apply(attrs, _toConsumableArray(roleDef.requiredAttrs));
-1 19643 promises.push(Promise.resolve(options.convertDataToStylesheet({
-1 19644 data: nonImportCSSRules.map(function(rule) {
-1 19645 return rule.cssText;
-1 19646 }).join(),
-1 19647 isCrossOrigin: isCrossOrigin,
-1 19648 priority: priority,
-1 19649 root: options.rootNode,
-1 19650 shadowId: options.shadowId
-1 19651 })));
-1 19652 return Promise.all(promises);
-1 19653 }
-1 19654 var parse_sameorigin_stylesheet_default = parseSameOriginStylesheet;
-1 19655 function parseStylesheet(sheet, options, priority, importedUrls) {
-1 19656 var isCrossOrigin = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;
-1 19657 var isSameOrigin = isSameOriginStylesheet(sheet);
-1 19658 if (isSameOrigin) {
-1 19659 return parse_sameorigin_stylesheet_default(sheet, options, priority, importedUrls, isCrossOrigin);
18498 19660 }
18499 -1 return attrs;
-1 19661 return parse_crossorigin_stylesheet_default(sheet.href, options, priority, importedUrls, true);
18500 19662 }
18501 -1 var allowed_attr_default = allowedAttr;
18502 -1 function arialabelText(vNode) {
18503 -1 if (!(vNode instanceof abstract_virtual_node_default)) {
18504 -1 if (vNode.nodeType !== 1) {
18505 -1 return '';
-1 19663 function isSameOriginStylesheet(sheet) {
-1 19664 try {
-1 19665 var rules = sheet.cssRules;
-1 19666 if (!rules && sheet.href) {
-1 19667 return false;
18506 19668 }
18507 -1 vNode = get_node_from_tree_default(vNode);
-1 19669 return true;
-1 19670 } catch (e) {
-1 19671 return false;
18508 19672 }
18509 -1 return vNode.attr('aria-label') || '';
18510 19673 }
18511 -1 var arialabel_text_default = arialabelText;
18512 -1 function isUnsupportedRole(role) {
18513 -1 var roleDefinition = standards_default.ariaRoles[role];
18514 -1 return roleDefinition ? !!roleDefinition.unsupported : false;
-1 19674 var parse_stylesheet_default = parseStylesheet;
-1 19675 function parseCrossOriginStylesheet(url, options, priority, importedUrls, isCrossOrigin) {
-1 19676 importedUrls.push(url);
-1 19677 return new Promise(function(resolve, reject) {
-1 19678 var request = new window.XMLHttpRequest();
-1 19679 request.open('GET', url);
-1 19680 request.timeout = constants_default.preload.timeout;
-1 19681 request.addEventListener('error', reject);
-1 19682 request.addEventListener('timeout', reject);
-1 19683 request.addEventListener('loadend', function(event) {
-1 19684 if (event.loaded && request.responseText) {
-1 19685 return resolve(request.responseText);
-1 19686 }
-1 19687 reject(request.responseText);
-1 19688 });
-1 19689 request.send();
-1 19690 }).then(function(data2) {
-1 19691 var result = options.convertDataToStylesheet({
-1 19692 data: data2,
-1 19693 isCrossOrigin: isCrossOrigin,
-1 19694 priority: priority,
-1 19695 root: options.rootNode,
-1 19696 shadowId: options.shadowId
-1 19697 });
-1 19698 return parse_stylesheet_default(result.sheet, options, priority, importedUrls, result.isCrossOrigin);
-1 19699 });
18515 19700 }
18516 -1 var is_unsupported_role_default = isUnsupportedRole;
18517 -1 function isValidRole(role) {
18518 -1 var _ref32 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, allowAbstract = _ref32.allowAbstract, _ref32$flagUnsupporte = _ref32.flagUnsupported, flagUnsupported = _ref32$flagUnsupporte === void 0 ? false : _ref32$flagUnsupporte;
18519 -1 var roleDefinition = standards_default.ariaRoles[role];
18520 -1 var isRoleUnsupported = is_unsupported_role_default(role);
18521 -1 if (!roleDefinition || flagUnsupported && isRoleUnsupported) {
18522 -1 return false;
-1 19701 var parse_crossorigin_stylesheet_default = parseCrossOriginStylesheet;
-1 19702 var performanceTimer = function() {
-1 19703 function now() {
-1 19704 if (window.performance && window.performance) {
-1 19705 return window.performance.now();
-1 19706 }
18523 19707 }
18524 -1 return allowAbstract ? true : roleDefinition.type !== 'abstract';
-1 19708 var originalTime = null;
-1 19709 var lastRecordedTime = now();
-1 19710 return {
-1 19711 start: function start() {
-1 19712 this.mark('mark_axe_start');
-1 19713 },
-1 19714 end: function end() {
-1 19715 this.mark('mark_axe_end');
-1 19716 this.measure('axe', 'mark_axe_start', 'mark_axe_end');
-1 19717 this.logMeasures('axe');
-1 19718 },
-1 19719 auditStart: function auditStart() {
-1 19720 this.mark('mark_audit_start');
-1 19721 },
-1 19722 auditEnd: function auditEnd() {
-1 19723 this.mark('mark_audit_end');
-1 19724 this.measure('audit_start_to_end', 'mark_audit_start', 'mark_audit_end');
-1 19725 this.logMeasures();
-1 19726 },
-1 19727 mark: function mark(markName) {
-1 19728 if (window.performance && window.performance.mark !== void 0) {
-1 19729 window.performance.mark(markName);
-1 19730 }
-1 19731 },
-1 19732 measure: function measure(measureName, startMark, endMark) {
-1 19733 if (window.performance && window.performance.measure !== void 0) {
-1 19734 window.performance.measure(measureName, startMark, endMark);
-1 19735 }
-1 19736 },
-1 19737 logMeasures: function logMeasures(measureName) {
-1 19738 function logMeasure(req2) {
-1 19739 log_default('Measure ' + req2.name + ' took ' + req2.duration + 'ms');
-1 19740 }
-1 19741 if (window.performance && window.performance.getEntriesByType !== void 0) {
-1 19742 var axeStart = window.performance.getEntriesByName('mark_axe_start')[0];
-1 19743 var measures = window.performance.getEntriesByType('measure').filter(function(measure) {
-1 19744 return measure.startTime >= axeStart.startTime;
-1 19745 });
-1 19746 for (var i = 0; i < measures.length; ++i) {
-1 19747 var req = measures[i];
-1 19748 if (req.name === measureName) {
-1 19749 logMeasure(req);
-1 19750 return;
-1 19751 }
-1 19752 logMeasure(req);
-1 19753 }
-1 19754 }
-1 19755 },
-1 19756 timeElapsed: function timeElapsed() {
-1 19757 return now() - lastRecordedTime;
-1 19758 },
-1 19759 reset: function reset() {
-1 19760 if (!originalTime) {
-1 19761 originalTime = now();
-1 19762 }
-1 19763 lastRecordedTime = now();
-1 19764 }
-1 19765 };
-1 19766 }();
-1 19767 var performance_timer_default = performanceTimer;
-1 19768 if (typeof Object.assign !== 'function') {
-1 19769 (function() {
-1 19770 Object.assign = function(target) {
-1 19771 if (target === void 0 || target === null) {
-1 19772 throw new TypeError('Cannot convert undefined or null to object');
-1 19773 }
-1 19774 var output = Object(target);
-1 19775 for (var index = 1; index < arguments.length; index++) {
-1 19776 var source = arguments[index];
-1 19777 if (source !== void 0 && source !== null) {
-1 19778 for (var nextKey in source) {
-1 19779 if (source.hasOwnProperty(nextKey)) {
-1 19780 output[nextKey] = source[nextKey];
-1 19781 }
-1 19782 }
-1 19783 }
-1 19784 }
-1 19785 return output;
-1 19786 };
-1 19787 })();
18525 19788 }
18526 -1 var is_valid_role_default = isValidRole;
18527 -1 function getExplicitRole(vNode) {
18528 -1 var _ref33 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, fallback = _ref33.fallback, abstracts = _ref33.abstracts, dpub = _ref33.dpub;
18529 -1 vNode = vNode instanceof abstract_virtual_node_default ? vNode : get_node_from_tree_default(vNode);
18530 -1 if (vNode.props.nodeType !== 1) {
18531 -1 return null;
18532 -1 }
18533 -1 var roleAttr = (vNode.attr('role') || '').trim().toLowerCase();
18534 -1 var roleList = fallback ? token_list_default(roleAttr) : [ roleAttr ];
18535 -1 var firstValidRole = roleList.find(function(role) {
18536 -1 if (!dpub && role.substr(0, 4) === 'doc-') {
18537 -1 return false;
-1 19789 if (!Array.prototype.find) {
-1 19790 Object.defineProperty(Array.prototype, 'find', {
-1 19791 value: function value(predicate) {
-1 19792 if (this === null) {
-1 19793 throw new TypeError('Array.prototype.find called on null or undefined');
-1 19794 }
-1 19795 if (typeof predicate !== 'function') {
-1 19796 throw new TypeError('predicate must be a function');
-1 19797 }
-1 19798 var list = Object(this);
-1 19799 var length = list.length >>> 0;
-1 19800 var thisArg = arguments[1];
-1 19801 var value;
-1 19802 for (var i = 0; i < length; i++) {
-1 19803 value = list[i];
-1 19804 if (predicate.call(thisArg, value, i, list)) {
-1 19805 return value;
-1 19806 }
-1 19807 }
-1 19808 return void 0;
18538 19809 }
18539 -1 return is_valid_role_default(role, {
18540 -1 allowAbstract: abstracts
18541 -1 });
18542 19810 });
18543 -1 return firstValidRole || null;
18544 19811 }
18545 -1 var get_explicit_role_default = getExplicitRole;
18546 -1 function getElementsByContentType(type) {
18547 -1 return Object.keys(standards_default.htmlElms).filter(function(nodeName2) {
18548 -1 var elm = standards_default.htmlElms[nodeName2];
18549 -1 if (elm.contentTypes) {
18550 -1 return elm.contentTypes.includes(type);
-1 19812 if (!Array.prototype.findIndex) {
-1 19813 Object.defineProperty(Array.prototype, 'findIndex', {
-1 19814 value: function value(predicate, thisArg) {
-1 19815 if (this === null) {
-1 19816 throw new TypeError('Array.prototype.find called on null or undefined');
-1 19817 }
-1 19818 if (typeof predicate !== 'function') {
-1 19819 throw new TypeError('predicate must be a function');
-1 19820 }
-1 19821 var list = Object(this);
-1 19822 var length = list.length >>> 0;
-1 19823 var value;
-1 19824 for (var i = 0; i < length; i++) {
-1 19825 value = list[i];
-1 19826 if (predicate.call(thisArg, value, i, list)) {
-1 19827 return i;
-1 19828 }
-1 19829 }
-1 19830 return -1;
-1 19831 }
-1 19832 });
-1 19833 }
-1 19834 function _pollyfillElementsFromPoint() {
-1 19835 if (document.elementsFromPoint) {
-1 19836 return document.elementsFromPoint;
-1 19837 }
-1 19838 if (document.msElementsFromPoint) {
-1 19839 return document.msElementsFromPoint;
-1 19840 }
-1 19841 var usePointer = function() {
-1 19842 var element = document.createElement('x');
-1 19843 element.style.cssText = 'pointer-events:auto';
-1 19844 return element.style.pointerEvents === 'auto';
-1 19845 }();
-1 19846 var cssProp = usePointer ? 'pointer-events' : 'visibility';
-1 19847 var cssDisableVal = usePointer ? 'none' : 'hidden';
-1 19848 var style = document.createElement('style');
-1 19849 style.innerHTML = usePointer ? '* { pointer-events: all }' : '* { visibility: visible }';
-1 19850 return function(x, y) {
-1 19851 var current, i, d;
-1 19852 var elements = [];
-1 19853 var previousPointerEvents = [];
-1 19854 document.head.appendChild(style);
-1 19855 while ((current = document.elementFromPoint(x, y)) && elements.indexOf(current) === -1) {
-1 19856 elements.push(current);
-1 19857 previousPointerEvents.push({
-1 19858 value: current.style.getPropertyValue(cssProp),
-1 19859 priority: current.style.getPropertyPriority(cssProp)
-1 19860 });
-1 19861 current.style.setProperty(cssProp, cssDisableVal, 'important');
18551 19862 }
18552 -1 if (!elm.variant) {
18553 -1 return false;
-1 19863 if (elements.indexOf(document.documentElement) < elements.length - 1) {
-1 19864 elements.splice(elements.indexOf(document.documentElement), 1);
-1 19865 elements.push(document.documentElement);
18554 19866 }
18555 -1 if (elm.variant['default'] && elm.variant['default'].contentTypes) {
18556 -1 return elm.variant['default'].contentTypes.includes(type);
-1 19867 for (i = previousPointerEvents.length; !!(d = previousPointerEvents[--i]); ) {
-1 19868 elements[i].style.setProperty(cssProp, d.value ? d.value : '', d.priority);
18557 19869 }
18558 -1 return false;
18559 -1 });
-1 19870 document.head.removeChild(style);
-1 19871 return elements;
-1 19872 };
18560 19873 }
18561 -1 var get_elements_by_content_type_default = getElementsByContentType;
18562 -1 function toGrid(node) {
18563 -1 var table5 = [];
18564 -1 var rows = node.rows;
18565 -1 for (var i = 0, rowLength = rows.length; i < rowLength; i++) {
18566 -1 var cells = rows[i].cells;
18567 -1 table5[i] = table5[i] || [];
18568 -1 var columnIndex = 0;
18569 -1 for (var j = 0, cellLength = cells.length; j < cellLength; j++) {
18570 -1 for (var colSpan = 0; colSpan < cells[j].colSpan; colSpan++) {
18571 -1 var rowspanAttr = cells[j].getAttribute('rowspan');
18572 -1 var rowspanValue = parseInt(rowspanAttr) === 0 || cells[j].rowspan === 0 ? rows.length : cells[j].rowSpan;
18573 -1 for (var rowSpan = 0; rowSpan < rowspanValue; rowSpan++) {
18574 -1 table5[i + rowSpan] = table5[i + rowSpan] || [];
18575 -1 while (table5[i + rowSpan][columnIndex]) {
18576 -1 columnIndex++;
18577 -1 }
18578 -1 table5[i + rowSpan][columnIndex] = cells[j];
-1 19874 if (typeof window.addEventListener === 'function') {
-1 19875 document.elementsFromPoint = _pollyfillElementsFromPoint();
-1 19876 }
-1 19877 if (!Array.prototype.includes) {
-1 19878 Object.defineProperty(Array.prototype, 'includes', {
-1 19879 value: function value(searchElement) {
-1 19880 var O = Object(this);
-1 19881 var len = parseInt(O.length, 10) || 0;
-1 19882 if (len === 0) {
-1 19883 return false;
-1 19884 }
-1 19885 var n = parseInt(arguments[1], 10) || 0;
-1 19886 var k;
-1 19887 if (n >= 0) {
-1 19888 k = n;
-1 19889 } else {
-1 19890 k = len + n;
-1 19891 if (k < 0) {
-1 19892 k = 0;
18579 19893 }
18580 -1 columnIndex++;
18581 19894 }
-1 19895 var currentElement;
-1 19896 while (k < len) {
-1 19897 currentElement = O[k];
-1 19898 if (searchElement === currentElement || searchElement !== searchElement && currentElement !== currentElement) {
-1 19899 return true;
-1 19900 }
-1 19901 k++;
-1 19902 }
-1 19903 return false;
18582 19904 }
18583 -1 }
18584 -1 return table5;
-1 19905 });
18585 19906 }
18586 -1 var to_grid_default = memoize_default(toGrid);
18587 -1 function getCellPosition(cell, tableGrid) {
18588 -1 var rowIndex, index;
18589 -1 if (!tableGrid) {
18590 -1 tableGrid = to_grid_default(find_up_default(cell, 'table'));
18591 -1 }
18592 -1 for (rowIndex = 0; rowIndex < tableGrid.length; rowIndex++) {
18593 -1 if (tableGrid[rowIndex]) {
18594 -1 index = tableGrid[rowIndex].indexOf(cell);
18595 -1 if (index !== -1) {
18596 -1 return {
18597 -1 x: index,
18598 -1 y: rowIndex
18599 -1 };
-1 19907 if (!Array.prototype.some) {
-1 19908 Object.defineProperty(Array.prototype, 'some', {
-1 19909 value: function value(fun) {
-1 19910 if (this == null) {
-1 19911 throw new TypeError('Array.prototype.some called on null or undefined');
-1 19912 }
-1 19913 if (typeof fun !== 'function') {
-1 19914 throw new TypeError();
-1 19915 }
-1 19916 var t = Object(this);
-1 19917 var len = t.length >>> 0;
-1 19918 var thisArg = arguments.length >= 2 ? arguments[1] : void 0;
-1 19919 for (var i = 0; i < len; i++) {
-1 19920 if (i in t && fun.call(thisArg, t[i], i, t)) {
-1 19921 return true;
-1 19922 }
18600 19923 }
-1 19924 return false;
18601 19925 }
18602 -1 }
18603 -1 }
18604 -1 var get_cell_position_default = memoize_default(getCellPosition);
18605 -1 function getScope(cell) {
18606 -1 var scope = cell.getAttribute('scope');
18607 -1 var role = cell.getAttribute('role');
18608 -1 if (cell instanceof window.Element === false || [ 'TD', 'TH' ].indexOf(cell.nodeName.toUpperCase()) === -1) {
18609 -1 throw new TypeError('Expected TD or TH element');
18610 -1 }
18611 -1 if (role === 'columnheader') {
18612 -1 return 'col';
18613 -1 } else if (role === 'rowheader') {
18614 -1 return 'row';
18615 -1 } else if (scope === 'col' || scope === 'row') {
18616 -1 return scope;
18617 -1 } else if (cell.nodeName.toUpperCase() !== 'TH') {
18618 -1 return false;
18619 -1 }
18620 -1 var tableGrid = to_grid_default(find_up_default(cell, 'table'));
18621 -1 var pos = get_cell_position_default(cell, tableGrid);
18622 -1 var headerRow = tableGrid[pos.y].reduce(function(headerRow2, cell2) {
18623 -1 return headerRow2 && cell2.nodeName.toUpperCase() === 'TH';
18624 -1 }, true);
18625 -1 if (headerRow) {
18626 -1 return 'col';
18627 -1 }
18628 -1 var headerCol = tableGrid.map(function(col) {
18629 -1 return col[pos.x];
18630 -1 }).reduce(function(headerCol2, cell2) {
18631 -1 return headerCol2 && cell2 && cell2.nodeName.toUpperCase() === 'TH';
18632 -1 }, true);
18633 -1 if (headerCol) {
18634 -1 return 'row';
18635 -1 }
18636 -1 return 'auto';
18637 -1 }
18638 -1 var get_scope_default = getScope;
18639 -1 function isColumnHeader(element) {
18640 -1 return [ 'col', 'auto' ].indexOf(get_scope_default(element)) !== -1;
18641 -1 }
18642 -1 var is_column_header_default = isColumnHeader;
18643 -1 function isRowHeader(cell) {
18644 -1 return [ 'row', 'auto' ].includes(get_scope_default(cell));
-1 19926 });
18645 19927 }
18646 -1 var is_row_header_default = isRowHeader;
18647 -1 var sectioningElementSelector = get_elements_by_content_type_default('sectioning').map(function(nodeName2) {
18648 -1 return ''.concat(nodeName2, ':not([role])');
18649 -1 }).join(', ') + ' , main:not([role]), [role=article], [role=complementary], [role=main], [role=navigation], [role=region]';
18650 -1 function hasAccessibleName(vNode) {
18651 -1 var ariaLabelledby = sanitize_default(arialabelledby_text_default(vNode));
18652 -1 var ariaLabel = sanitize_default(arialabel_text_default(vNode));
18653 -1 return !!(ariaLabelledby || ariaLabel);
-1 19928 if (!Array.from) {
-1 19929 Object.defineProperty(Array, 'from', {
-1 19930 value: function() {
-1 19931 var toStr = Object.prototype.toString;
-1 19932 var isCallable = function isCallable(fn) {
-1 19933 return typeof fn === 'function' || toStr.call(fn) === '[object Function]';
-1 19934 };
-1 19935 var toInteger = function toInteger(value) {
-1 19936 var number = Number(value);
-1 19937 if (isNaN(number)) {
-1 19938 return 0;
-1 19939 }
-1 19940 if (number === 0 || !isFinite(number)) {
-1 19941 return number;
-1 19942 }
-1 19943 return (number > 0 ? 1 : -1) * Math.floor(Math.abs(number));
-1 19944 };
-1 19945 var maxSafeInteger = Math.pow(2, 53) - 1;
-1 19946 var toLength = function toLength(value) {
-1 19947 var len = toInteger(value);
-1 19948 return Math.min(Math.max(len, 0), maxSafeInteger);
-1 19949 };
-1 19950 return function from(arrayLike) {
-1 19951 var C = this;
-1 19952 var items = Object(arrayLike);
-1 19953 if (arrayLike == null) {
-1 19954 throw new TypeError('Array.from requires an array-like object - not null or undefined');
-1 19955 }
-1 19956 var mapFn = arguments.length > 1 ? arguments[1] : void 0;
-1 19957 var T;
-1 19958 if (typeof mapFn !== 'undefined') {
-1 19959 if (!isCallable(mapFn)) {
-1 19960 throw new TypeError('Array.from: when provided, the second argument must be a function');
-1 19961 }
-1 19962 if (arguments.length > 2) {
-1 19963 T = arguments[2];
-1 19964 }
-1 19965 }
-1 19966 var len = toLength(items.length);
-1 19967 var A = isCallable(C) ? Object(new C(len)) : new Array(len);
-1 19968 var k = 0;
-1 19969 var kValue;
-1 19970 while (k < len) {
-1 19971 kValue = items[k];
-1 19972 if (mapFn) {
-1 19973 A[k] = typeof T === 'undefined' ? mapFn(kValue, k) : mapFn.call(T, kValue, k);
-1 19974 } else {
-1 19975 A[k] = kValue;
-1 19976 }
-1 19977 k += 1;
-1 19978 }
-1 19979 A.length = len;
-1 19980 return A;
-1 19981 };
-1 19982 }()
-1 19983 });
18654 19984 }
18655 -1 var implicitHtmlRoles = {
18656 -1 a: function a(vNode) {
18657 -1 return vNode.hasAttr('href') ? 'link' : null;
18658 -1 },
18659 -1 area: function area(vNode) {
18660 -1 return vNode.hasAttr('href') ? 'link' : null;
18661 -1 },
18662 -1 article: 'article',
18663 -1 aside: 'complementary',
18664 -1 body: 'document',
18665 -1 button: 'button',
18666 -1 datalist: 'listbox',
18667 -1 dd: 'definition',
18668 -1 dfn: 'term',
18669 -1 details: 'group',
18670 -1 dialog: 'dialog',
18671 -1 dt: 'term',
18672 -1 fieldset: 'group',
18673 -1 figure: 'figure',
18674 -1 footer: function footer(vNode) {
18675 -1 var sectioningElement = closest_default(vNode, sectioningElementSelector);
18676 -1 return !sectioningElement ? 'contentinfo' : null;
18677 -1 },
18678 -1 form: function form(vNode) {
18679 -1 return hasAccessibleName(vNode) ? 'form' : null;
18680 -1 },
18681 -1 h1: 'heading',
18682 -1 h2: 'heading',
18683 -1 h3: 'heading',
18684 -1 h4: 'heading',
18685 -1 h5: 'heading',
18686 -1 h6: 'heading',
18687 -1 header: function header(vNode) {
18688 -1 var sectioningElement = closest_default(vNode, sectioningElementSelector);
18689 -1 return !sectioningElement ? 'banner' : null;
18690 -1 },
18691 -1 hr: 'separator',
18692 -1 img: function img(vNode) {
18693 -1 var emptyAlt = vNode.hasAttr('alt') && !vNode.attr('alt');
18694 -1 var hasGlobalAria = get_global_aria_attrs_default().find(function(attr) {
18695 -1 return vNode.hasAttr(attr);
18696 -1 });
18697 -1 return emptyAlt && !hasGlobalAria && !is_focusable_default(vNode) ? 'presentation' : 'img';
18698 -1 },
18699 -1 input: function input(vNode) {
18700 -1 var suggestionsSourceElement;
18701 -1 if (vNode.hasAttr('list')) {
18702 -1 var listElement = idrefs_default(vNode.actualNode, 'list').filter(function(node) {
18703 -1 return !!node;
18704 -1 })[0];
18705 -1 suggestionsSourceElement = listElement && listElement.nodeName.toLowerCase() === 'datalist';
-1 19985 if (!String.prototype.includes) {
-1 19986 String.prototype.includes = function(search, start) {
-1 19987 if (typeof start !== 'number') {
-1 19988 start = 0;
18706 19989 }
18707 -1 switch (vNode.props.type) {
18708 -1 case 'checkbox':
18709 -1 return 'checkbox';
18710 -1
18711 -1 case 'number':
18712 -1 return 'spinbutton';
18713 -1
18714 -1 case 'radio':
18715 -1 return 'radio';
18716 -1
18717 -1 case 'range':
18718 -1 return 'slider';
18719 -1
18720 -1 case 'search':
18721 -1 return !suggestionsSourceElement ? 'searchbox' : 'combobox';
18722 -1
18723 -1 case 'button':
18724 -1 case 'image':
18725 -1 case 'reset':
18726 -1 case 'submit':
18727 -1 return 'button';
18728 -1
18729 -1 case 'text':
18730 -1 case 'tel':
18731 -1 case 'url':
18732 -1 case 'email':
18733 -1 case '':
18734 -1 return !suggestionsSourceElement ? 'textbox' : 'combobox';
18735 -1
18736 -1 default:
18737 -1 return 'textbox';
-1 19990 if (start + search.length > this.length) {
-1 19991 return false;
-1 19992 } else {
-1 19993 return this.indexOf(search, start) !== -1;
18738 19994 }
18739 -1 },
18740 -1 li: 'listitem',
18741 -1 main: 'main',
18742 -1 math: 'math',
18743 -1 menu: 'list',
18744 -1 nav: 'navigation',
18745 -1 ol: 'list',
18746 -1 optgroup: 'group',
18747 -1 option: 'option',
18748 -1 output: 'status',
18749 -1 progress: 'progressbar',
18750 -1 section: function section(vNode) {
18751 -1 return hasAccessibleName(vNode) ? 'region' : null;
18752 -1 },
18753 -1 select: function select(vNode) {
18754 -1 return vNode.hasAttr('multiple') || parseInt(vNode.attr('size')) > 1 ? 'listbox' : 'combobox';
18755 -1 },
18756 -1 summary: 'button',
18757 -1 table: 'table',
18758 -1 tbody: 'rowgroup',
18759 -1 td: function td(vNode) {
18760 -1 var table5 = closest_default(vNode, 'table');
18761 -1 var role = get_explicit_role_default(table5);
18762 -1 return [ 'grid', 'treegrid' ].includes(role) ? 'gridcell' : 'cell';
18763 -1 },
18764 -1 textarea: 'textbox',
18765 -1 tfoot: 'rowgroup',
18766 -1 th: function th(vNode) {
18767 -1 if (is_column_header_default(vNode.actualNode)) {
18768 -1 return 'columnheader';
-1 19995 };
-1 19996 }
-1 19997 if (!Array.prototype.flat) {
-1 19998 Object.defineProperty(Array.prototype, 'flat', {
-1 19999 configurable: true,
-1 20000 value: function flat() {
-1 20001 var depth = isNaN(arguments[0]) ? 1 : Number(arguments[0]);
-1 20002 return depth ? Array.prototype.reduce.call(this, function(acc, cur) {
-1 20003 if (Array.isArray(cur)) {
-1 20004 acc.push.apply(acc, flat.call(cur, depth - 1));
-1 20005 } else {
-1 20006 acc.push(cur);
-1 20007 }
-1 20008 return acc;
-1 20009 }, []) : Array.prototype.slice.call(this);
-1 20010 },
-1 20011 writable: true
-1 20012 });
-1 20013 }
-1 20014 if (window.Node && !('isConnected' in window.Node.prototype)) {
-1 20015 Object.defineProperty(window.Node.prototype, 'isConnected', {
-1 20016 get: function get() {
-1 20017 return !this.ownerDocument || !(this.ownerDocument.compareDocumentPosition(this) & this.DOCUMENT_POSITION_DISCONNECTED);
18769 20018 }
18770 -1 if (is_row_header_default(vNode.actualNode)) {
18771 -1 return 'rowheader';
-1 20019 });
-1 20020 }
-1 20021 function uniqueArray(arr1, arr2) {
-1 20022 return arr1.concat(arr2).filter(function(elem, pos, arr) {
-1 20023 return arr.indexOf(elem) === pos;
-1 20024 });
-1 20025 }
-1 20026 var unique_array_default = uniqueArray;
-1 20027 function createLocalVariables(vNodes, anyLevel, thisLevel, parentShadowId, recycledLocalVariable) {
-1 20028 var retVal = recycledLocalVariable || {};
-1 20029 retVal.vNodes = vNodes;
-1 20030 retVal.vNodesIndex = 0;
-1 20031 retVal.anyLevel = anyLevel;
-1 20032 retVal.thisLevel = thisLevel;
-1 20033 retVal.parentShadowId = parentShadowId;
-1 20034 return retVal;
-1 20035 }
-1 20036 var recycledLocalVariables = [];
-1 20037 function matchExpressions(domTree, expressions, filter) {
-1 20038 var stack = [];
-1 20039 var vNodes = Array.isArray(domTree) ? domTree : [ domTree ];
-1 20040 var currentLevel = createLocalVariables(vNodes, expressions, null, domTree[0].shadowId, recycledLocalVariables.pop());
-1 20041 var result = [];
-1 20042 while (currentLevel.vNodesIndex < currentLevel.vNodes.length) {
-1 20043 var _currentLevel$anyLeve, _currentLevel$thisLev;
-1 20044 var vNode = currentLevel.vNodes[currentLevel.vNodesIndex++];
-1 20045 var childOnly = null;
-1 20046 var childAny = null;
-1 20047 var combinedLength = (((_currentLevel$anyLeve = currentLevel.anyLevel) === null || _currentLevel$anyLeve === void 0 ? void 0 : _currentLevel$anyLeve.length) || 0) + (((_currentLevel$thisLev = currentLevel.thisLevel) === null || _currentLevel$thisLev === void 0 ? void 0 : _currentLevel$thisLev.length) || 0);
-1 20048 var added = false;
-1 20049 for (var _i14 = 0; _i14 < combinedLength; _i14++) {
-1 20050 var _currentLevel$anyLeve2, _currentLevel$anyLeve3, _currentLevel$anyLeve4;
-1 20051 var exp = _i14 < (((_currentLevel$anyLeve2 = currentLevel.anyLevel) === null || _currentLevel$anyLeve2 === void 0 ? void 0 : _currentLevel$anyLeve2.length) || 0) ? currentLevel.anyLevel[_i14] : currentLevel.thisLevel[_i14 - (((_currentLevel$anyLeve3 = currentLevel.anyLevel) === null || _currentLevel$anyLeve3 === void 0 ? void 0 : _currentLevel$anyLeve3.length) || 0)];
-1 20052 if ((!exp[0].id || vNode.shadowId === currentLevel.parentShadowId) && _matchesExpression(vNode, exp[0])) {
-1 20053 if (exp.length === 1) {
-1 20054 if (!added && (!filter || filter(vNode))) {
-1 20055 result.push(vNode);
-1 20056 added = true;
-1 20057 }
-1 20058 } else {
-1 20059 var rest = exp.slice(1);
-1 20060 if ([ ' ', '>' ].includes(rest[0].combinator) === false) {
-1 20061 throw new Error('axe.utils.querySelectorAll does not support the combinator: ' + exp[1].combinator);
-1 20062 }
-1 20063 if (rest[0].combinator === '>') {
-1 20064 (childOnly = childOnly || []).push(rest);
-1 20065 } else {
-1 20066 (childAny = childAny || []).push(rest);
-1 20067 }
-1 20068 }
-1 20069 }
-1 20070 if ((!exp[0].id || vNode.shadowId === currentLevel.parentShadowId) && (_currentLevel$anyLeve4 = currentLevel.anyLevel) !== null && _currentLevel$anyLeve4 !== void 0 && _currentLevel$anyLeve4.includes(exp)) {
-1 20071 (childAny = childAny || []).push(exp);
-1 20072 }
18772 20073 }
18773 -1 },
18774 -1 thead: 'rowgroup',
18775 -1 tr: 'row',
18776 -1 ul: 'list'
18777 -1 };
18778 -1 var implicit_html_roles_default = implicitHtmlRoles;
18779 -1 function fromPrimative(someString, matcher) {
18780 -1 var matcherType = _typeof(matcher);
18781 -1 if (Array.isArray(matcher) && typeof someString !== 'undefined') {
18782 -1 return matcher.includes(someString);
18783 -1 }
18784 -1 if (matcherType === 'function') {
18785 -1 return !!matcher(someString);
18786 -1 }
18787 -1 if (someString !== null && someString !== void 0) {
18788 -1 if (matcher instanceof RegExp) {
18789 -1 return matcher.test(someString);
-1 20074 if (vNode.children && vNode.children.length) {
-1 20075 stack.push(currentLevel);
-1 20076 currentLevel = createLocalVariables(vNode.children, childAny, childOnly, vNode.shadowId, recycledLocalVariables.pop());
18790 20077 }
18791 -1 if (/^\/.*\/$/.test(matcher)) {
18792 -1 var pattern = matcher.substring(1, matcher.length - 1);
18793 -1 return new RegExp(pattern).test(someString);
-1 20078 while (currentLevel.vNodesIndex === currentLevel.vNodes.length && stack.length) {
-1 20079 recycledLocalVariables.push(currentLevel);
-1 20080 currentLevel = stack.pop();
18794 20081 }
18795 20082 }
18796 -1 return matcher === someString;
18797 -1 }
18798 -1 var from_primative_default = fromPrimative;
18799 -1 function hasAccessibleName2(vNode, matcher) {
18800 -1 return from_primative_default(!!accessible_text_virtual_default(vNode), matcher);
-1 20083 return result;
18801 20084 }
18802 -1 var has_accessible_name_default = hasAccessibleName2;
18803 -1 function fromFunction(getValue, matcher) {
18804 -1 var matcherType = _typeof(matcher);
18805 -1 if (matcherType !== 'object' || Array.isArray(matcher) || matcher instanceof RegExp) {
18806 -1 throw new Error('Expect matcher to be an object');
-1 20085 function querySelectorAllFilter(domTree, selector, filter) {
-1 20086 domTree = Array.isArray(domTree) ? domTree : [ domTree ];
-1 20087 var expressions = _convertSelector(selector);
-1 20088 var nodes = getNodesMatchingExpression(domTree, expressions, filter);
-1 20089 if (nodes) {
-1 20090 return nodes;
18807 20091 }
18808 -1 return Object.keys(matcher).every(function(propName) {
18809 -1 return from_primative_default(getValue(propName), matcher[propName]);
18810 -1 });
-1 20092 return matchExpressions(domTree, expressions, filter);
18811 20093 }
18812 -1 var from_function_default = fromFunction;
18813 -1 function attributes(vNode, matcher) {
18814 -1 if (!(vNode instanceof abstract_virtual_node_default)) {
18815 -1 vNode = get_node_from_tree_default(vNode);
-1 20094 var query_selector_all_filter_default = querySelectorAllFilter;
-1 20095 function preloadCssom(_ref51) {
-1 20096 var _ref51$treeRoot = _ref51.treeRoot, treeRoot = _ref51$treeRoot === void 0 ? axe._tree[0] : _ref51$treeRoot;
-1 20097 var rootNodes = getAllRootNodesInTree(treeRoot);
-1 20098 if (!rootNodes.length) {
-1 20099 return Promise.resolve();
18816 20100 }
18817 -1 return from_function_default(function(attrName) {
18818 -1 return vNode.attr(attrName);
18819 -1 }, matcher);
18820 -1 }
18821 -1 var attributes_default = attributes;
18822 -1 function condition(arg, condition4) {
18823 -1 return !!condition4(arg);
18824 -1 }
18825 -1 var condition_default = condition;
18826 -1 function explicitRole(vNode, matcher) {
18827 -1 return from_primative_default(get_explicit_role_default(vNode), matcher);
18828 -1 }
18829 -1 var explicit_role_default = explicitRole;
18830 -1 function implicitRole(vNode, matcher) {
18831 -1 return from_primative_default(implicit_role_default(vNode), matcher);
-1 20101 var dynamicDoc = document.implementation.createHTMLDocument('Dynamic document for loading cssom');
-1 20102 var convertDataToStylesheet = get_stylesheet_factory_default(dynamicDoc);
-1 20103 return getCssomForAllRootNodes(rootNodes, convertDataToStylesheet).then(function(assets) {
-1 20104 return flattenAssets(assets);
-1 20105 });
18832 20106 }
18833 -1 var implicit_role_default2 = implicitRole;
18834 -1 function nodeName(vNode, matcher) {
18835 -1 if (!(vNode instanceof abstract_virtual_node_default)) {
18836 -1 vNode = get_node_from_tree_default(vNode);
18837 -1 }
18838 -1 return from_primative_default(vNode.props.nodeName, matcher);
-1 20107 var preload_cssom_default = preloadCssom;
-1 20108 function getAllRootNodesInTree(tree) {
-1 20109 var ids = [];
-1 20110 var rootNodes = query_selector_all_filter_default(tree, '*', function(node) {
-1 20111 if (ids.includes(node.shadowId)) {
-1 20112 return false;
-1 20113 }
-1 20114 ids.push(node.shadowId);
-1 20115 return true;
-1 20116 }).map(function(node) {
-1 20117 return {
-1 20118 shadowId: node.shadowId,
-1 20119 rootNode: get_root_node_default(node.actualNode)
-1 20120 };
-1 20121 });
-1 20122 return unique_array_default(rootNodes, []);
18839 20123 }
18840 -1 var node_name_default = nodeName;
18841 -1 function properties(vNode, matcher) {
18842 -1 if (!(vNode instanceof abstract_virtual_node_default)) {
18843 -1 vNode = get_node_from_tree_default(vNode);
18844 -1 }
18845 -1 return from_function_default(function(propName) {
18846 -1 return vNode.props[propName];
18847 -1 }, matcher);
-1 20124 function getCssomForAllRootNodes(rootNodes, convertDataToStylesheet) {
-1 20125 var promises = [];
-1 20126 rootNodes.forEach(function(_ref52, index) {
-1 20127 var rootNode = _ref52.rootNode, shadowId = _ref52.shadowId;
-1 20128 var sheets = getStylesheetsOfRootNode(rootNode, shadowId, convertDataToStylesheet);
-1 20129 if (!sheets) {
-1 20130 return Promise.all(promises);
-1 20131 }
-1 20132 var rootIndex = index + 1;
-1 20133 var parseOptions = {
-1 20134 rootNode: rootNode,
-1 20135 shadowId: shadowId,
-1 20136 convertDataToStylesheet: convertDataToStylesheet,
-1 20137 rootIndex: rootIndex
-1 20138 };
-1 20139 var importedUrls = [];
-1 20140 var p = Promise.all(sheets.map(function(sheet, sheetIndex) {
-1 20141 var priority = [ rootIndex, sheetIndex ];
-1 20142 return parse_stylesheet_default(sheet, parseOptions, priority, importedUrls);
-1 20143 }));
-1 20144 promises.push(p);
-1 20145 });
-1 20146 return Promise.all(promises);
18848 20147 }
18849 -1 var properties_default = properties;
18850 -1 function semanticRole(vNode, matcher) {
18851 -1 return from_primative_default(get_role_default(vNode), matcher);
-1 20148 function flattenAssets(assets) {
-1 20149 return assets.reduce(function(acc, val) {
-1 20150 return Array.isArray(val) ? acc.concat(flattenAssets(val)) : acc.concat(val);
-1 20151 }, []);
18852 20152 }
18853 -1 var semantic_role_default = semanticRole;
18854 -1 var matchers = {
18855 -1 hasAccessibleName: has_accessible_name_default,
18856 -1 attributes: attributes_default,
18857 -1 condition: condition_default,
18858 -1 explicitRole: explicit_role_default,
18859 -1 implicitRole: implicit_role_default2,
18860 -1 nodeName: node_name_default,
18861 -1 properties: properties_default,
18862 -1 semanticRole: semantic_role_default
18863 -1 };
18864 -1 function fromDefinition(vNode, definition) {
18865 -1 if (!(vNode instanceof abstract_virtual_node_default)) {
18866 -1 vNode = get_node_from_tree_default(vNode);
-1 20153 function getStylesheetsOfRootNode(rootNode, shadowId, convertDataToStylesheet) {
-1 20154 var sheets;
-1 20155 if (rootNode.nodeType === 11 && shadowId) {
-1 20156 sheets = getStylesheetsFromDocumentFragment(rootNode, convertDataToStylesheet);
-1 20157 } else {
-1 20158 sheets = getStylesheetsFromDocument(rootNode);
18867 20159 }
18868 -1 if (Array.isArray(definition)) {
18869 -1 return definition.some(function(definitionItem) {
18870 -1 return fromDefinition(vNode, definitionItem);
-1 20160 return filterStylesheetsWithSameHref(sheets);
-1 20161 }
-1 20162 function getStylesheetsFromDocumentFragment(rootNode, convertDataToStylesheet) {
-1 20163 return Array.from(rootNode.children).filter(filerStyleAndLinkAttributesInDocumentFragment).reduce(function(out, node) {
-1 20164 var nodeName2 = node.nodeName.toUpperCase();
-1 20165 var data2 = nodeName2 === 'STYLE' ? node.textContent : node;
-1 20166 var isLink = nodeName2 === 'LINK';
-1 20167 var stylesheet = convertDataToStylesheet({
-1 20168 data: data2,
-1 20169 isLink: isLink,
-1 20170 root: rootNode
18871 20171 });
18872 -1 }
18873 -1 if (typeof definition === 'string') {
18874 -1 return matches_default(vNode, definition);
18875 -1 }
18876 -1 return Object.keys(definition).every(function(matcherName) {
18877 -1 if (!matchers[matcherName]) {
18878 -1 throw new Error('Unknown matcher type "'.concat(matcherName, '"'));
-1 20172 out.push(stylesheet.sheet);
-1 20173 return out;
-1 20174 }, []);
-1 20175 }
-1 20176 function getStylesheetsFromDocument(rootNode) {
-1 20177 return Array.from(rootNode.styleSheets).filter(function(sheet) {
-1 20178 if (!sheet.media) {
-1 20179 return false;
18879 20180 }
18880 -1 var matchMethod = matchers[matcherName];
18881 -1 var matcher = definition[matcherName];
18882 -1 return matchMethod(vNode, matcher);
-1 20181 return filterMediaIsPrint(sheet.media.mediaText);
18883 20182 });
18884 20183 }
18885 -1 var from_definition_default = fromDefinition;
18886 -1 function matches5(vNode, definition) {
18887 -1 return from_definition_default(vNode, definition);
-1 20184 function filerStyleAndLinkAttributesInDocumentFragment(node) {
-1 20185 var nodeName2 = node.nodeName.toUpperCase();
-1 20186 var linkHref = node.getAttribute('href');
-1 20187 var linkRel = node.getAttribute('rel');
-1 20188 var isLink = nodeName2 === 'LINK' && linkHref && linkRel && node.rel.toUpperCase().includes('STYLESHEET');
-1 20189 var isStyle = nodeName2 === 'STYLE';
-1 20190 return isStyle || isLink && filterMediaIsPrint(node.media);
18888 20191 }
18889 -1 var matches_default2 = matches5;
18890 -1 matches_default2.hasAccessibleName = has_accessible_name_default;
18891 -1 matches_default2.attributes = attributes_default;
18892 -1 matches_default2.condition = condition_default;
18893 -1 matches_default2.explicitRole = explicit_role_default;
18894 -1 matches_default2.fromDefinition = from_definition_default;
18895 -1 matches_default2.fromFunction = from_function_default;
18896 -1 matches_default2.fromPrimative = from_primative_default;
18897 -1 matches_default2.implicitRole = implicit_role_default2;
18898 -1 matches_default2.nodeName = node_name_default;
18899 -1 matches_default2.properties = properties_default;
18900 -1 matches_default2.semanticRole = semantic_role_default;
18901 -1 var matches_default3 = matches_default2;
18902 -1 function getElementSpec(vNode) {
18903 -1 var _ref34 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, _ref34$noMatchAccessi = _ref34.noMatchAccessibleName, noMatchAccessibleName = _ref34$noMatchAccessi === void 0 ? false : _ref34$noMatchAccessi;
18904 -1 var standard = standards_default.htmlElms[vNode.props.nodeName];
18905 -1 if (!standard) {
18906 -1 return {};
18907 -1 }
18908 -1 if (!standard.variant) {
18909 -1 return standard;
-1 20192 function filterMediaIsPrint(media) {
-1 20193 if (!media) {
-1 20194 return true;
18910 20195 }
18911 -1 var variant = standard.variant, spec = _objectWithoutProperties(standard, _excluded3);
18912 -1 for (var variantName in variant) {
18913 -1 if (!variant.hasOwnProperty(variantName) || variantName === 'default') {
18914 -1 continue;
-1 20196 return !media.toUpperCase().includes('PRINT');
-1 20197 }
-1 20198 function filterStylesheetsWithSameHref(sheets) {
-1 20199 var hrefs = [];
-1 20200 return sheets.filter(function(sheet) {
-1 20201 if (!sheet.href) {
-1 20202 return true;
18915 20203 }
18916 -1 var _variant$variantName = variant[variantName], matches14 = _variant$variantName.matches, props = _objectWithoutProperties(_variant$variantName, _excluded4);
18917 -1 var matchProperties = Array.isArray(matches14) ? matches14 : [ matches14 ];
18918 -1 for (var _i12 = 0; _i12 < matchProperties.length && noMatchAccessibleName; _i12++) {
18919 -1 if (matchProperties[_i12].hasOwnProperty('hasAccessibleName')) {
18920 -1 return standard;
18921 -1 }
-1 20204 if (hrefs.includes(sheet.href)) {
-1 20205 return false;
18922 20206 }
18923 -1 if (matches_default3(vNode, matches14)) {
18924 -1 for (var propName in props) {
18925 -1 if (props.hasOwnProperty(propName)) {
18926 -1 spec[propName] = props[propName];
18927 -1 }
18928 -1 }
-1 20207 hrefs.push(sheet.href);
-1 20208 return true;
-1 20209 });
-1 20210 }
-1 20211 function preloadMedia(_ref53) {
-1 20212 var _ref53$treeRoot = _ref53.treeRoot, treeRoot = _ref53$treeRoot === void 0 ? axe._tree[0] : _ref53$treeRoot;
-1 20213 var mediaVirtualNodes = query_selector_all_filter_default(treeRoot, 'video, audio', function(_ref54) {
-1 20214 var actualNode = _ref54.actualNode;
-1 20215 if (actualNode.hasAttribute('src')) {
-1 20216 return !!actualNode.getAttribute('src');
18929 20217 }
18930 -1 }
18931 -1 for (var _propName in variant['default']) {
18932 -1 if (variant['default'].hasOwnProperty(_propName) && typeof spec[_propName] === 'undefined') {
18933 -1 spec[_propName] = variant['default'][_propName];
-1 20218 var sourceWithSrc = Array.from(actualNode.getElementsByTagName('source')).filter(function(source) {
-1 20219 return !!source.getAttribute('src');
-1 20220 });
-1 20221 if (sourceWithSrc.length <= 0) {
-1 20222 return false;
18934 20223 }
18935 -1 }
18936 -1 return spec;
18937 -1 }
18938 -1 var get_element_spec_default = getElementSpec;
18939 -1 function implicitRole2(node) {
18940 -1 var _ref35 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, chromium = _ref35.chromium;
18941 -1 var vNode = node instanceof abstract_virtual_node_default ? node : get_node_from_tree_default(node);
18942 -1 node = vNode.actualNode;
18943 -1 if (!vNode) {
18944 -1 throw new ReferenceError('Cannot get implicit role of a node outside the current scope.');
18945 -1 }
18946 -1 var nodeName2 = vNode.props.nodeName;
18947 -1 var role = implicit_html_roles_default[nodeName2];
18948 -1 if (!role && chromium) {
18949 -1 var _get_element_spec_def = get_element_spec_default(vNode), chromiumRole = _get_element_spec_def.chromiumRole;
18950 -1 return chromiumRole || null;
18951 -1 }
18952 -1 if (typeof role === 'function') {
18953 -1 return role(vNode);
18954 -1 }
18955 -1 return role || null;
18956 -1 }
18957 -1 var implicit_role_default = implicitRole2;
18958 -1 var inheritsPresentationChain = {
18959 -1 td: [ 'tr' ],
18960 -1 th: [ 'tr' ],
18961 -1 tr: [ 'thead', 'tbody', 'tfoot', 'table' ],
18962 -1 thead: [ 'table' ],
18963 -1 tbody: [ 'table' ],
18964 -1 tfoot: [ 'table' ],
18965 -1 li: [ 'ol', 'ul' ],
18966 -1 dt: [ 'dl', 'div' ],
18967 -1 dd: [ 'dl', 'div' ],
18968 -1 div: [ 'dl' ]
18969 -1 };
18970 -1 function getInheritedRole(vNode, explicitRoleOptions) {
18971 -1 var parentNodeNames = inheritsPresentationChain[vNode.props.nodeName];
18972 -1 if (!parentNodeNames) {
18973 -1 return null;
18974 -1 }
18975 -1 if (!vNode.parent) {
18976 -1 throw new ReferenceError('Cannot determine role presentational inheritance of a required parent outside the current scope.');
18977 -1 }
18978 -1 if (!parentNodeNames.includes(vNode.parent.props.nodeName)) {
18979 -1 return null;
18980 -1 }
18981 -1 var parentRole = get_explicit_role_default(vNode.parent, explicitRoleOptions);
18982 -1 if ([ 'none', 'presentation' ].includes(parentRole) && !hasConflictResolution(vNode.parent)) {
18983 -1 return parentRole;
18984 -1 }
18985 -1 if (parentRole) {
18986 -1 return null;
18987 -1 }
18988 -1 return getInheritedRole(vNode.parent, explicitRoleOptions);
18989 -1 }
18990 -1 function resolveImplicitRole(vNode, _ref36) {
18991 -1 var chromium = _ref36.chromium, explicitRoleOptions = _objectWithoutProperties(_ref36, _excluded5);
18992 -1 var implicitRole3 = implicit_role_default(vNode, {
18993 -1 chromium: chromium
-1 20224 return true;
18994 20225 });
18995 -1 if (!implicitRole3) {
18996 -1 return null;
18997 -1 }
18998 -1 var presentationalRole = getInheritedRole(vNode, explicitRoleOptions);
18999 -1 if (presentationalRole) {
19000 -1 return presentationalRole;
19001 -1 }
19002 -1 return implicitRole3;
-1 20226 return Promise.all(mediaVirtualNodes.map(function(_ref55) {
-1 20227 var actualNode = _ref55.actualNode;
-1 20228 return isMediaElementReady(actualNode);
-1 20229 }));
19003 20230 }
19004 -1 function hasConflictResolution(vNode) {
19005 -1 var hasGlobalAria = get_global_aria_attrs_default().some(function(attr) {
19006 -1 return vNode.hasAttr(attr);
-1 20231 var preload_media_default = preloadMedia;
-1 20232 function isMediaElementReady(elm) {
-1 20233 return new Promise(function(resolve) {
-1 20234 if (elm.readyState > 0) {
-1 20235 resolve(elm);
-1 20236 }
-1 20237 function onMediaReady() {
-1 20238 elm.removeEventListener('loadedmetadata', onMediaReady);
-1 20239 resolve(elm);
-1 20240 }
-1 20241 elm.addEventListener('loadedmetadata', onMediaReady);
19007 20242 });
19008 -1 return hasGlobalAria || is_focusable_default(vNode);
19009 -1 }
19010 -1 function resolveRole(node) {
19011 -1 var _ref37 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
19012 -1 var noImplicit = _ref37.noImplicit, roleOptions = _objectWithoutProperties(_ref37, _excluded6);
19013 -1 var vNode = node instanceof abstract_virtual_node_default ? node : get_node_from_tree_default(node);
19014 -1 if (vNode.props.nodeType !== 1) {
19015 -1 return null;
19016 -1 }
19017 -1 var explicitRole2 = get_explicit_role_default(vNode, roleOptions);
19018 -1 if (!explicitRole2) {
19019 -1 return noImplicit ? null : resolveImplicitRole(vNode, roleOptions);
19020 -1 }
19021 -1 if (![ 'presentation', 'none' ].includes(explicitRole2)) {
19022 -1 return explicitRole2;
19023 -1 }
19024 -1 if (hasConflictResolution(vNode)) {
19025 -1 return noImplicit ? null : resolveImplicitRole(vNode, roleOptions);
19026 -1 }
19027 -1 return explicitRole2;
19028 20243 }
19029 -1 function getRole(node) {
19030 -1 var _ref38 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
19031 -1 var noPresentational = _ref38.noPresentational, options = _objectWithoutProperties(_ref38, _excluded7);
19032 -1 var role = resolveRole(node, options);
19033 -1 if (noPresentational && [ 'presentation', 'none' ].includes(role)) {
19034 -1 return null;
19035 -1 }
19036 -1 return role;
-1 20244 function isValidPreloadObject(preload2) {
-1 20245 return _typeof(preload2) === 'object' && Array.isArray(preload2.assets);
19037 20246 }
19038 -1 var get_role_default = getRole;
19039 -1 var alwaysTitleElements = [ 'iframe' ];
19040 -1 function titleText(node) {
19041 -1 var vNode = node instanceof abstract_virtual_node_default ? node : get_node_from_tree_default(node);
19042 -1 if (vNode.props.nodeType !== 1 || !node.hasAttr('title')) {
19043 -1 return '';
-1 20247 function _shouldPreload(options) {
-1 20248 if (!options || options.preload === void 0 || options.preload === null) {
-1 20249 return true;
19044 20250 }
19045 -1 if (!matches_default2(vNode, alwaysTitleElements) && [ 'none', 'presentation' ].includes(get_role_default(vNode))) {
19046 -1 return '';
-1 20251 if (typeof options.preload === 'boolean') {
-1 20252 return options.preload;
19047 20253 }
19048 -1 return vNode.attr('title');
-1 20254 return isValidPreloadObject(options.preload);
19049 20255 }
19050 -1 var title_text_default = titleText;
19051 -1 function namedFromContents(vNode) {
19052 -1 var _ref39 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, strict = _ref39.strict;
19053 -1 vNode = vNode instanceof abstract_virtual_node_default ? vNode : get_node_from_tree_default(vNode);
19054 -1 if (vNode.props.nodeType !== 1) {
19055 -1 return false;
-1 20256 function _getPreloadConfig(options) {
-1 20257 var _constants_default$pr = constants_default.preload, assets = _constants_default$pr.assets, timeout = _constants_default$pr.timeout;
-1 20258 var config = {
-1 20259 assets: assets,
-1 20260 timeout: timeout
-1 20261 };
-1 20262 if (!options.preload) {
-1 20263 return config;
19056 20264 }
19057 -1 var role = get_role_default(vNode);
19058 -1 var roleDef = standards_default.ariaRoles[role];
19059 -1 if (roleDef && roleDef.nameFromContent) {
19060 -1 return true;
-1 20265 if (typeof options.preload === 'boolean') {
-1 20266 return config;
19061 20267 }
19062 -1 if (strict) {
19063 -1 return false;
-1 20268 var areRequestedAssetsValid = options.preload.assets.every(function(a) {
-1 20269 return assets.includes(a.toLowerCase());
-1 20270 });
-1 20271 if (!areRequestedAssetsValid) {
-1 20272 throw new Error('Requested assets, not supported. Supported assets are: '.concat(assets.join(', '), '.'));
19064 20273 }
19065 -1 return !roleDef || [ 'presentation', 'none' ].includes(role);
-1 20274 config.assets = unique_array_default(options.preload.assets.map(function(a) {
-1 20275 return a.toLowerCase();
-1 20276 }), []);
-1 20277 if (options.preload.timeout && typeof options.preload.timeout === 'number' && !isNaN(options.preload.timeout)) {
-1 20278 config.timeout = options.preload.timeout;
-1 20279 }
-1 20280 return config;
19066 20281 }
19067 -1 var named_from_contents_default = namedFromContents;
19068 -1 function getOwnedVirtual(virtualNode) {
19069 -1 var actualNode = virtualNode.actualNode, children = virtualNode.children;
19070 -1 if (!children) {
19071 -1 throw new Error('getOwnedVirtual requires a virtual node');
-1 20282 function preload(options) {
-1 20283 var preloadFunctionsMap = {
-1 20284 cssom: preload_cssom_default,
-1 20285 media: preload_media_default
-1 20286 };
-1 20287 if (!_shouldPreload(options)) {
-1 20288 return Promise.resolve();
19072 20289 }
19073 -1 if (virtualNode.hasAttr('aria-owns')) {
19074 -1 var owns = idrefs_default(actualNode, 'aria-owns').filter(function(element) {
19075 -1 return !!element;
19076 -1 }).map(function(element) {
19077 -1 return axe.utils.getNodeFromTree(element);
-1 20290 return new Promise(function(resolve, reject) {
-1 20291 var _getPreloadConfig2 = _getPreloadConfig(options), assets = _getPreloadConfig2.assets, timeout = _getPreloadConfig2.timeout;
-1 20292 var preloadTimeout = setTimeout(function() {
-1 20293 return reject(new Error('Preload assets timed out.'));
-1 20294 }, timeout);
-1 20295 Promise.all(assets.map(function(asset) {
-1 20296 return preloadFunctionsMap[asset](options).then(function(results) {
-1 20297 return _defineProperty({}, asset, results);
-1 20298 });
-1 20299 })).then(function(results) {
-1 20300 var preloadAssets = results.reduce(function(out, result) {
-1 20301 return _extends({}, out, result);
-1 20302 }, {});
-1 20303 clearTimeout(preloadTimeout);
-1 20304 resolve(preloadAssets);
-1 20305 })['catch'](function(err2) {
-1 20306 clearTimeout(preloadTimeout);
-1 20307 reject(err2);
19078 20308 });
19079 -1 return [].concat(_toConsumableArray(children), _toConsumableArray(owns));
19080 -1 }
19081 -1 return _toConsumableArray(children);
-1 20309 });
19082 20310 }
19083 -1 var get_owned_virtual_default = getOwnedVirtual;
19084 -1 function subtreeText(virtualNode) {
19085 -1 var context5 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
19086 -1 var alreadyProcessed2 = accessible_text_virtual_default.alreadyProcessed;
19087 -1 context5.startNode = context5.startNode || virtualNode;
19088 -1 var _context = context5, strict = _context.strict, inControlContext = _context.inControlContext, inLabelledByContext = _context.inLabelledByContext;
19089 -1 var _get_element_spec_def2 = get_element_spec_default(virtualNode, {
19090 -1 noMatchAccessibleName: true
19091 -1 }), contentTypes = _get_element_spec_def2.contentTypes;
19092 -1 if (alreadyProcessed2(virtualNode, context5) || virtualNode.props.nodeType !== 1 || contentTypes !== null && contentTypes !== void 0 && contentTypes.includes('embedded')) {
19093 -1 return '';
19094 -1 }
19095 -1 if (!named_from_contents_default(virtualNode, {
19096 -1 strict: strict
19097 -1 }) && !context5.subtreeDescendant) {
19098 -1 return '';
-1 20311 var preload_default = preload;
-1 20312 function getIncompleteReason(checkData, messages) {
-1 20313 function getDefaultMsg(messages2) {
-1 20314 if (messages2.incomplete && messages2.incomplete['default']) {
-1 20315 return messages2.incomplete['default'];
-1 20316 } else {
-1 20317 return incompleteFallbackMessage();
-1 20318 }
19099 20319 }
19100 -1 if (!strict) {
19101 -1 var subtreeDescendant = !inControlContext && !inLabelledByContext;
19102 -1 context5 = _extends({
19103 -1 subtreeDescendant: subtreeDescendant
19104 -1 }, context5);
-1 20320 if (checkData && checkData.missingData) {
-1 20321 try {
-1 20322 var msg = messages.incomplete[checkData.missingData[0].reason];
-1 20323 if (!msg) {
-1 20324 throw new Error();
-1 20325 }
-1 20326 return msg;
-1 20327 } catch (e) {
-1 20328 if (typeof checkData.missingData === 'string') {
-1 20329 return messages.incomplete[checkData.missingData];
-1 20330 } else {
-1 20331 return getDefaultMsg(messages);
-1 20332 }
-1 20333 }
-1 20334 } else if (checkData && checkData.messageKey) {
-1 20335 return messages.incomplete[checkData.messageKey];
-1 20336 } else {
-1 20337 return getDefaultMsg(messages);
19105 20338 }
19106 -1 return get_owned_virtual_default(virtualNode).reduce(function(contentText, child) {
19107 -1 return appendAccessibleText(contentText, child, context5);
19108 -1 }, '');
19109 20339 }
19110 -1 var phrasingElements = get_elements_by_content_type_default('phrasing').concat([ '#text' ]);
19111 -1 function appendAccessibleText(contentText, virtualNode, context5) {
19112 -1 var nodeName2 = virtualNode.props.nodeName;
19113 -1 var contentTextAdd = accessible_text_virtual_default(virtualNode, context5);
19114 -1 if (!contentTextAdd) {
19115 -1 return contentText;
19116 -1 }
19117 -1 if (!phrasingElements.includes(nodeName2)) {
19118 -1 if (contentTextAdd[0] !== ' ') {
19119 -1 contentTextAdd += ' ';
-1 20340 function extender(checksData, shouldBeTrue, rule) {
-1 20341 return function(check) {
-1 20342 var sourceData = checksData[check.id] || {};
-1 20343 var messages = sourceData.messages || {};
-1 20344 var data2 = Object.assign({}, sourceData);
-1 20345 delete data2.messages;
-1 20346 if (!rule.reviewOnFail && check.result === void 0) {
-1 20347 if (_typeof(messages.incomplete) === 'object' && !Array.isArray(check.data)) {
-1 20348 data2.message = getIncompleteReason(check.data, messages);
-1 20349 }
-1 20350 if (!data2.message) {
-1 20351 data2.message = messages.incomplete;
-1 20352 }
-1 20353 } else {
-1 20354 data2.message = check.result === shouldBeTrue ? messages.pass : messages.fail;
19120 20355 }
19121 -1 if (contentText && contentText[contentText.length - 1] !== ' ') {
19122 -1 contentTextAdd = ' ' + contentTextAdd;
-1 20356 if (typeof data2.message !== 'function') {
-1 20357 data2.message = process_message_default(data2.message, check.data);
19123 20358 }
19124 -1 }
19125 -1 return contentText + contentTextAdd;
-1 20359 extend_meta_data_default(check, data2);
-1 20360 };
19126 20361 }
19127 -1 var subtree_text_default = subtreeText;
19128 -1 function labelText(virtualNode) {
19129 -1 var context5 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
19130 -1 var alreadyProcessed2 = accessible_text_virtual_default.alreadyProcessed;
19131 -1 if (context5.inControlContext || context5.inLabelledByContext || alreadyProcessed2(virtualNode, context5)) {
19132 -1 return '';
-1 20362 function publishMetaData(ruleResult) {
-1 20363 var checksData = axe._audit.data.checks || {};
-1 20364 var rulesData = axe._audit.data.rules || {};
-1 20365 var rule = find_by_default(axe._audit.rules, 'id', ruleResult.id) || {};
-1 20366 ruleResult.tags = clone_default(rule.tags || []);
-1 20367 var shouldBeTrue = extender(checksData, true, rule);
-1 20368 var shouldBeFalse = extender(checksData, false, rule);
-1 20369 ruleResult.nodes.forEach(function(detail) {
-1 20370 detail.any.forEach(shouldBeTrue);
-1 20371 detail.all.forEach(shouldBeTrue);
-1 20372 detail.none.forEach(shouldBeFalse);
-1 20373 });
-1 20374 extend_meta_data_default(ruleResult, clone_default(rulesData[ruleResult.id] || {}));
-1 20375 }
-1 20376 var publish_metadata_default = publishMetaData;
-1 20377 function querySelectorAll(domTree, selector) {
-1 20378 return query_selector_all_filter_default(domTree, selector);
-1 20379 }
-1 20380 var query_selector_all_default = querySelectorAll;
-1 20381 function matchTags(rule, runOnly) {
-1 20382 var include, exclude, matching;
-1 20383 var defaultExclude = axe._audit && axe._audit.tagExclude ? axe._audit.tagExclude : [];
-1 20384 if (runOnly.hasOwnProperty('include') || runOnly.hasOwnProperty('exclude')) {
-1 20385 include = runOnly.include || [];
-1 20386 include = Array.isArray(include) ? include : [ include ];
-1 20387 exclude = runOnly.exclude || [];
-1 20388 exclude = Array.isArray(exclude) ? exclude : [ exclude ];
-1 20389 exclude = exclude.concat(defaultExclude.filter(function(tag) {
-1 20390 return include.indexOf(tag) === -1;
-1 20391 }));
-1 20392 } else {
-1 20393 include = Array.isArray(runOnly) ? runOnly : [ runOnly ];
-1 20394 exclude = defaultExclude.filter(function(tag) {
-1 20395 return include.indexOf(tag) === -1;
-1 20396 });
19133 20397 }
19134 -1 if (!context5.startNode) {
19135 -1 context5.startNode = virtualNode;
-1 20398 matching = include.some(function(tag) {
-1 20399 return rule.tags.indexOf(tag) !== -1;
-1 20400 });
-1 20401 if (matching || include.length === 0 && rule.enabled !== false) {
-1 20402 return exclude.every(function(tag) {
-1 20403 return rule.tags.indexOf(tag) === -1;
-1 20404 });
-1 20405 } else {
-1 20406 return false;
19136 20407 }
19137 -1 var labelContext = _extends({
19138 -1 inControlContext: true
19139 -1 }, context5);
19140 -1 var explicitLabels = getExplicitLabels(virtualNode);
19141 -1 var implicitLabel = closest_default(virtualNode, 'label');
19142 -1 var labels;
19143 -1 if (implicitLabel) {
19144 -1 labels = [].concat(_toConsumableArray(explicitLabels), [ implicitLabel.actualNode ]);
19145 -1 labels.sort(node_sorter_default);
-1 20408 }
-1 20409 function ruleShouldRun(rule, context, options) {
-1 20410 var runOnly = options.runOnly || {};
-1 20411 var ruleOptions = (options.rules || {})[rule.id];
-1 20412 if (rule.pageLevel && !context.page) {
-1 20413 return false;
-1 20414 } else if (runOnly.type === 'rule') {
-1 20415 return runOnly.values.indexOf(rule.id) !== -1;
-1 20416 } else if (ruleOptions && typeof ruleOptions.enabled === 'boolean') {
-1 20417 return ruleOptions.enabled;
-1 20418 } else if (runOnly.type === 'tag' && runOnly.values) {
-1 20419 return matchTags(rule, runOnly.values);
19146 20420 } else {
19147 -1 labels = explicitLabels;
-1 20421 return matchTags(rule, []);
19148 20422 }
19149 -1 return labels.map(function(label5) {
19150 -1 return accessible_text_default(label5, labelContext);
19151 -1 }).filter(function(text32) {
19152 -1 return text32 !== '';
19153 -1 }).join(' ');
19154 20423 }
19155 -1 function getExplicitLabels(virtualNode) {
19156 -1 if (!virtualNode.attr('id')) {
19157 -1 return [];
-1 20424 var rule_should_run_default = ruleShouldRun;
-1 20425 function _filterHtmlAttrs(element, filterAttrs) {
-1 20426 if (!filterAttrs) {
-1 20427 return element;
19158 20428 }
19159 -1 if (!virtualNode.actualNode) {
19160 -1 throw new TypeError('Cannot resolve explicit label reference for non-DOM nodes');
-1 20429 var node = element.cloneNode(false);
-1 20430 var attributes2 = get_node_attributes_default(node);
-1 20431 if (node.nodeType === 1) {
-1 20432 var outerHTML = node.outerHTML;
-1 20433 node = cache_default.get(outerHTML, function() {
-1 20434 return setNodeAttributes(node, attributes2, element, filterAttrs);
-1 20435 });
-1 20436 } else {
-1 20437 node = setNodeAttributes(node, attributes2, element, filterAttrs);
19161 20438 }
19162 -1 return find_elms_in_context_default({
19163 -1 elm: 'label',
19164 -1 attr: 'for',
19165 -1 value: virtualNode.attr('id'),
19166 -1 context: virtualNode.actualNode
-1 20439 Array.from(element.childNodes).forEach(function(child) {
-1 20440 node.appendChild(_filterHtmlAttrs(child, filterAttrs));
19167 20441 });
-1 20442 return node;
19168 20443 }
19169 -1 var label_text_default = labelText;
19170 -1 var defaultButtonValues = {
19171 -1 submit: 'Submit',
19172 -1 image: 'Submit',
19173 -1 reset: 'Reset',
19174 -1 button: ''
19175 -1 };
19176 -1 var nativeTextMethods = {
19177 -1 valueText: function valueText(_ref40) {
19178 -1 var actualNode = _ref40.actualNode;
19179 -1 return actualNode.value || '';
19180 -1 },
19181 -1 buttonDefaultText: function buttonDefaultText(_ref41) {
19182 -1 var actualNode = _ref41.actualNode;
19183 -1 return defaultButtonValues[actualNode.type] || '';
19184 -1 },
19185 -1 tableCaptionText: descendantText.bind(null, 'caption'),
19186 -1 figureText: descendantText.bind(null, 'figcaption'),
19187 -1 svgTitleText: descendantText.bind(null, 'title'),
19188 -1 fieldsetLegendText: descendantText.bind(null, 'legend'),
19189 -1 altText: attrText.bind(null, 'alt'),
19190 -1 tableSummaryText: attrText.bind(null, 'summary'),
19191 -1 titleText: title_text_default,
19192 -1 subtreeText: subtree_text_default,
19193 -1 labelText: label_text_default,
19194 -1 singleSpace: function singleSpace() {
19195 -1 return ' ';
19196 -1 },
19197 -1 placeholderText: attrText.bind(null, 'placeholder')
19198 -1 };
19199 -1 function attrText(attr, vNode) {
19200 -1 return vNode.attr(attr) || '';
-1 20444 function setNodeAttributes(node, attributes2, element, filterAttrs) {
-1 20445 if (!attributes2) {
-1 20446 return node;
-1 20447 }
-1 20448 node = document.createElement(node.nodeName);
-1 20449 Array.from(attributes2).forEach(function(attr) {
-1 20450 if (!attributeMatches(element, attr.name, filterAttrs)) {
-1 20451 node.setAttribute(attr.name, attr.value);
-1 20452 }
-1 20453 });
-1 20454 return node;
19201 20455 }
19202 -1 function descendantText(nodeName2, _ref42, context5) {
19203 -1 var actualNode = _ref42.actualNode;
19204 -1 nodeName2 = nodeName2.toLowerCase();
19205 -1 var nodeNames2 = [ nodeName2, actualNode.nodeName.toLowerCase() ].join(',');
19206 -1 var candidate = actualNode.querySelector(nodeNames2);
19207 -1 if (!candidate || candidate.nodeName.toLowerCase() !== nodeName2) {
19208 -1 return '';
-1 20456 function attributeMatches(node, attrName, filterAttrs) {
-1 20457 if (typeof filterAttrs[attrName] === 'undefined') {
-1 20458 return false;
-1 20459 }
-1 20460 if (filterAttrs[attrName] === true) {
-1 20461 return true;
-1 20462 }
-1 20463 return element_matches_default(node, filterAttrs[attrName]);
-1 20464 }
-1 20465 function _select(selector, context) {
-1 20466 var result = [];
-1 20467 var candidate;
-1 20468 if (axe._selectCache) {
-1 20469 for (var j = 0, l = axe._selectCache.length; j < l; j++) {
-1 20470 var item = axe._selectCache[j];
-1 20471 if (item.selector === selector) {
-1 20472 return item.result;
-1 20473 }
-1 20474 }
19209 20475 }
19210 -1 return accessible_text_default(candidate, context5);
19211 -1 }
19212 -1 var native_text_methods_default = nativeTextMethods;
19213 -1 function nativeTextAlternative(virtualNode) {
19214 -1 var context5 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
19215 -1 var actualNode = virtualNode.actualNode;
19216 -1 if (virtualNode.props.nodeType !== 1 || [ 'presentation', 'none' ].includes(get_role_default(virtualNode))) {
19217 -1 return '';
-1 20476 var outerIncludes = getOuterIncludes(context.include);
-1 20477 var isInContext = getContextFilter(context);
-1 20478 for (var _i15 = 0; _i15 < outerIncludes.length; _i15++) {
-1 20479 candidate = outerIncludes[_i15];
-1 20480 var nodes = query_selector_all_filter_default(candidate, selector, isInContext);
-1 20481 result = mergeArrayUniques(result, nodes);
19218 20482 }
19219 -1 var textMethods = findTextMethods(virtualNode);
19220 -1 var accName = textMethods.reduce(function(accName2, step) {
19221 -1 return accName2 || step(virtualNode, context5);
19222 -1 }, '');
19223 -1 if (context5.debug) {
19224 -1 axe.log(accName || '{empty-value}', actualNode, context5);
-1 20483 if (axe._selectCache) {
-1 20484 axe._selectCache.push({
-1 20485 selector: selector,
-1 20486 result: result
-1 20487 });
19225 20488 }
19226 -1 return accName;
19227 -1 }
19228 -1 function findTextMethods(virtualNode) {
19229 -1 var elmSpec = get_element_spec_default(virtualNode, {
19230 -1 noMatchAccessibleName: true
19231 -1 });
19232 -1 var methods = elmSpec.namingMethods || [];
19233 -1 return methods.map(function(methodName) {
19234 -1 return native_text_methods_default[methodName];
19235 -1 });
-1 20489 return result;
19236 20490 }
19237 -1 var native_text_alternative_default = nativeTextAlternative;
19238 -1 var unsupported = {
19239 -1 accessibleNameFromFieldValue: [ 'combobox', 'listbox', 'progressbar' ]
19240 -1 };
19241 -1 var unsupported_default = unsupported;
19242 -1 var nonTextInputTypes = [ 'button', 'checkbox', 'color', 'file', 'hidden', 'image', 'password', 'radio', 'reset', 'submit' ];
19243 -1 function isNativeTextbox(node) {
19244 -1 node = node instanceof abstract_virtual_node_default ? node : get_node_from_tree_default(node);
19245 -1 var nodeName2 = node.props.nodeName;
19246 -1 return nodeName2 === 'textarea' || nodeName2 === 'input' && !nonTextInputTypes.includes((node.attr('type') || '').toLowerCase());
-1 20491 function getOuterIncludes(includes) {
-1 20492 return includes.reduce(function(res, el) {
-1 20493 if (!res.length || !_contains(res[res.length - 1], el)) {
-1 20494 res.push(el);
-1 20495 }
-1 20496 return res;
-1 20497 }, []);
19247 20498 }
19248 -1 var is_native_textbox_default = isNativeTextbox;
19249 -1 function isNativeSelect(node) {
19250 -1 node = node instanceof abstract_virtual_node_default ? node : get_node_from_tree_default(node);
19251 -1 var nodeName2 = node.props.nodeName;
19252 -1 return nodeName2 === 'select';
-1 20499 function getContextFilter(context) {
-1 20500 if (!context.exclude || context.exclude.length === 0) {
-1 20501 return null;
-1 20502 }
-1 20503 return function(node) {
-1 20504 return _isNodeInContext(node, context);
-1 20505 };
19253 20506 }
19254 -1 var is_native_select_default = isNativeSelect;
19255 -1 function isAriaTextbox(node) {
19256 -1 var role = get_explicit_role_default(node);
19257 -1 return role === 'textbox';
-1 20507 function mergeArrayUniques(arr1, arr2) {
-1 20508 if (arr1.length === 0) {
-1 20509 return arr2;
-1 20510 }
-1 20511 if (arr1.length < arr2.length) {
-1 20512 var temp = arr1;
-1 20513 arr1 = arr2;
-1 20514 arr2 = temp;
-1 20515 }
-1 20516 for (var _i16 = 0, l = arr2.length; _i16 < l; _i16++) {
-1 20517 if (!arr1.includes(arr2[_i16])) {
-1 20518 arr1.push(arr2[_i16]);
-1 20519 }
-1 20520 }
-1 20521 return arr1;
19258 20522 }
19259 -1 var is_aria_textbox_default = isAriaTextbox;
19260 -1 function isAriaListbox(node) {
19261 -1 var role = get_explicit_role_default(node);
19262 -1 return role === 'listbox';
-1 20523 function setScroll(elm, top, left) {
-1 20524 if (elm === window) {
-1 20525 return elm.scroll(left, top);
-1 20526 } else {
-1 20527 elm.scrollTop = top;
-1 20528 elm.scrollLeft = left;
-1 20529 }
19263 20530 }
19264 -1 var is_aria_listbox_default = isAriaListbox;
19265 -1 function isAriaCombobox(node) {
19266 -1 var role = get_explicit_role_default(node);
19267 -1 return role === 'combobox';
-1 20531 function setScrollState(scrollState) {
-1 20532 scrollState.forEach(function(_ref57) {
-1 20533 var elm = _ref57.elm, top = _ref57.top, left = _ref57.left;
-1 20534 return setScroll(elm, top, left);
-1 20535 });
19268 20536 }
19269 -1 var is_aria_combobox_default = isAriaCombobox;
19270 -1 var rangeRoles = [ 'progressbar', 'scrollbar', 'slider', 'spinbutton' ];
19271 -1 function isAriaRange(node) {
19272 -1 var role = get_explicit_role_default(node);
19273 -1 return rangeRoles.includes(role);
-1 20537 var set_scroll_state_default = setScrollState;
-1 20538 function _shadowSelect(selectors) {
-1 20539 var selectorArr = Array.isArray(selectors) ? _toConsumableArray(selectors) : [ selectors ];
-1 20540 return selectRecursive(selectorArr, document);
19274 20541 }
19275 -1 var is_aria_range_default = isAriaRange;
19276 -1 var controlValueRoles = [ 'textbox', 'progressbar', 'scrollbar', 'slider', 'spinbutton', 'combobox', 'listbox' ];
19277 -1 var _formControlValueMethods = {
19278 -1 nativeTextboxValue: nativeTextboxValue,
19279 -1 nativeSelectValue: nativeSelectValue,
19280 -1 ariaTextboxValue: ariaTextboxValue,
19281 -1 ariaListboxValue: ariaListboxValue,
19282 -1 ariaComboboxValue: ariaComboboxValue,
19283 -1 ariaRangeValue: ariaRangeValue
19284 -1 };
19285 -1 function formControlValue(virtualNode) {
19286 -1 var context5 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
19287 -1 var actualNode = virtualNode.actualNode;
19288 -1 var unsupportedRoles = unsupported_default.accessibleNameFromFieldValue || [];
19289 -1 var role = get_role_default(virtualNode);
19290 -1 if (context5.startNode === virtualNode || !controlValueRoles.includes(role) || unsupportedRoles.includes(role)) {
19291 -1 return '';
-1 20542 function selectRecursive(selectors, doc) {
-1 20543 var selectorStr = selectors.shift();
-1 20544 var elm = selectorStr ? doc.querySelector(selectorStr) : null;
-1 20545 if (selectors.length === 0) {
-1 20546 return elm;
19292 20547 }
19293 -1 var valueMethods = Object.keys(_formControlValueMethods).map(function(name) {
19294 -1 return _formControlValueMethods[name];
19295 -1 });
19296 -1 var valueString = valueMethods.reduce(function(accName, step) {
19297 -1 return accName || step(virtualNode, context5);
19298 -1 }, '');
19299 -1 if (context5.debug) {
19300 -1 log_default(valueString || '{empty-value}', actualNode, context5);
-1 20548 if (!(elm !== null && elm !== void 0 && elm.shadowRoot)) {
-1 20549 return null;
19301 20550 }
19302 -1 return valueString;
-1 20551 return selectRecursive(selectors, elm.shadowRoot);
19303 20552 }
19304 -1 function nativeTextboxValue(node) {
19305 -1 var vNode = node instanceof abstract_virtual_node_default ? node : get_node_from_tree_default(node);
19306 -1 if (is_native_textbox_default(vNode)) {
19307 -1 return vNode.props.value || '';
-1 20553 function _shadowSelectAll(selectors) {
-1 20554 var doc = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : document;
-1 20555 var selectorArr = Array.isArray(selectors) ? _toConsumableArray(selectors) : [ selectors ];
-1 20556 if (selectors.length === 0) {
-1 20557 return [];
19308 20558 }
19309 -1 return '';
-1 20559 return selectAllRecursive(selectorArr, doc);
19310 20560 }
19311 -1 function nativeSelectValue(node) {
19312 -1 var vNode = node instanceof abstract_virtual_node_default ? node : get_node_from_tree_default(node);
19313 -1 if (!is_native_select_default(vNode)) {
19314 -1 return '';
-1 20561 function selectAllRecursive(_ref58, doc) {
-1 20562 var _ref59 = _toArray(_ref58), selectorStr = _ref59[0], restSelector = _ref59.slice(1);
-1 20563 var elms = doc.querySelectorAll(selectorStr);
-1 20564 if (restSelector.length === 0) {
-1 20565 return Array.from(elms);
19315 20566 }
19316 -1 var options = query_selector_all_default(vNode, 'option');
19317 -1 var selectedOptions = options.filter(function(option) {
19318 -1 return option.props.selected;
19319 -1 });
19320 -1 if (!selectedOptions.length) {
19321 -1 selectedOptions.push(options[0]);
-1 20567 var selected = [];
-1 20568 var _iterator7 = _createForOfIteratorHelper(elms), _step7;
-1 20569 try {
-1 20570 for (_iterator7.s(); !(_step7 = _iterator7.n()).done; ) {
-1 20571 var elm = _step7.value;
-1 20572 if (elm !== null && elm !== void 0 && elm.shadowRoot) {
-1 20573 selected.push.apply(selected, _toConsumableArray(selectAllRecursive(restSelector, elm.shadowRoot)));
-1 20574 }
-1 20575 }
-1 20576 } catch (err) {
-1 20577 _iterator7.e(err);
-1 20578 } finally {
-1 20579 _iterator7.f();
19322 20580 }
19323 -1 return selectedOptions.map(function(option) {
19324 -1 return visible_virtual_default(option);
19325 -1 }).join(' ') || '';
-1 20581 return selected;
19326 20582 }
19327 -1 function ariaTextboxValue(node) {
19328 -1 var vNode = node instanceof abstract_virtual_node_default ? node : get_node_from_tree_default(node);
19329 -1 var actualNode = vNode.actualNode;
19330 -1 if (!is_aria_textbox_default(vNode)) {
19331 -1 return '';
-1 20583 function validInputTypes() {
-1 20584 return [ 'hidden', 'text', 'search', 'tel', 'url', 'email', 'password', 'date', 'month', 'week', 'time', 'datetime-local', 'number', 'range', 'color', 'checkbox', 'radio', 'file', 'submit', 'image', 'reset', 'button' ];
-1 20585 }
-1 20586 var valid_input_type_default = validInputTypes;
-1 20587 var langs = [ , [ , [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, , 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, , 1, 1, 1, , 1, 1, , 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, , 1, 1, 1, 1, 1, 1, 1, , 1, , 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, , , , , , 1, 1, 1, 1, , , 1, 1, 1, , 1, , 1, , 1, 1 ], [ 1, 1, 1, , 1, 1, , 1, 1, 1, , 1, , , 1, 1, 1, , , 1, 1, 1, , , , , 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, , , , , 1, 1, 1, , 1, 1, 1, 1, 1, 1, , 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , , 1, 1, 1 ], [ , 1, , , , , , 1, , 1, , , , , 1, , 1, , , , 1, 1, , 1, , , 1 ], [ 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, , 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , , , 1, 1, 1, 1, , , 1, , 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, , 1, 1, , , 1, , , , , 1, 1, 1, , 1, , 1, , 1, , , , , , 1 ], [ 1, , 1, 1, 1, 1, , , 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1 ], [ 1, , 1, , 1, , , , , 1, , 1, 1, 1, 1, 1, , , , 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, , 1, 1, 1, , 1, , 1, 1, 1, , , 1, 1, 1, 1, 1, 1, 1, 1 ], [ , , 1, , , 1, , 1, , , , 1, 1, 1, , , , , , , , , , , 1 ], [ 1, 1, 1, 1, 1, 1, , 1, 1, 1, , 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, , , 1, 1, 1 ], [ 1, 1, 1, 1, 1, , , 1, , , 1, , , 1, 1, 1, , , , , 1, , , , , , 1 ] ], [ , [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, , 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, , , 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, , , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, , 1, , , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, , 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ] ], [ , [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, , 1, 1, , 1, 1, 1, 1, 1, 1, 1, , 1 ], [ , 1, , 1, 1, 1, , 1, 1, , 1, , 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, , 1, 1, 1, 1, 1, 1, 1, 1, , , 1, 1, 1, , , 1, 1, , , , , , 1, 1 ], [ 1, 1, 1, , , , , 1, , , , 1, 1, , 1, , , , , , 1, , , , , 1 ], [ , 1, , , 1, , , 1, , , , , , 1 ], [ , 1, , 1, , , , 1, , , , 1 ], [ 1, , 1, 1, 1, , 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, , , 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, , , 1, , , 1, , 1, 1, , 1, , 1, , , , , 1, , 1 ], [ , 1, , , , 1, , , 1, 1, , 1, , 1, 1, 1, 1, , 1, 1, , , 1, , , 1 ], [ , 1, 1, , , , , , 1, , , , 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, , 1, 1, 1 ], [ , 1, , 1, 1, 1, , , 1, 1, 1, 1, 1, 1, , 1, , , , , 1, 1, , 1, , 1 ], [ , 1, , 1, , 1, , 1, , 1, , 1, 1, 1, 1, 1, , , 1, 1, 1 ], [ , 1, 1, 1, , , , 1, 1, 1, , 1, 1, , , 1, 1, , 1, 1, 1, 1, , 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, , , 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, , 1, 1, 1, , 1, , , , , 1, 1, 1, , , 1, , 1, , , 1, 1 ], [ , , , , 1, , , , , , , , , , , , , , , , , 1 ], [ 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1 ], [ , 1, , 1, 1, 1, , 1, 1, , , , 1, 1, 1, 1, 1, , , 1, 1, 1, , , , , 1 ], [ 1, 1, 1, 1, , , , 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, , , , , , , 1, , , , , , , 1 ], [ , 1, 1, , 1, 1, , 1, , , , , , , , , , , , , 1 ], , [ 1, 1, 1, , , , , , , , , , , , , 1 ], [ , , , , , , , , 1, , , 1, , , 1, 1, , , , , 1 ] ], [ , [ 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1 ], [ , 1, 1, , 1, 1, 1, 1, , 1, 1, , 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, , 1 ], [ , , , 1, , , , , , , , , , , , , , , 1 ], [ , 1, , , 1, 1, , 1, , 1, 1, , , , 1, 1, , , 1, 1, , , , 1 ], [ 1, , , 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, , 1, 1, 1, 1, , , 1, , , , 1 ], , [ , 1, 1, 1, 1, 1, , 1, 1, 1, , 1, 1, , 1, 1, , , 1, 1, 1, 1, , 1, 1, , 1 ], [ , 1, , , 1, , , 1, , 1, , , 1, 1, 1, 1, , , 1, 1, , 1, 1, 1, 1 ], [ , 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, , , 1, 1, 1, 1, 1, 1, 1, , , 1, , , 1, , 1 ], [ , 1, , , , , , , , , , 1, 1, , , , , , 1, 1, , , , , 1 ], [ , , , , , , , 1, , , , 1, , 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, , , , 1, 1, 1, 1, 1, , , 1, 1, , 1, 1, 1, 1, 1 ], [ , 1, , , 1, 1, , 1, , 1, 1, 1, , , 1, 1, , , 1, , 1, 1, 1, 1, , 1 ], [ , 1, 1, 1, , 1, 1, , 1, 1, , 1, 1, , 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1 ], [ , , , , , , , , , , , , , , , , 1 ], , [ , 1, 1, 1, 1, 1, , 1, 1, 1, , , 1, , 1, 1, , 1, 1, 1, 1, 1, , 1, , 1 ], [ , , 1, , , 1, , , 1, 1, , , 1, , 1, 1, , 1 ], [ , 1, 1, , 1, , , , 1, 1, , 1, , 1, 1, 1, 1, , 1, 1, 1, 1, , , , 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1 ], [ 1, 1 ], [ , 1, , , , , , , , , , 1, 1, , , , , , 1, 1, , 1, , 1, , 1, 1 ], , [ , 1, 1, , 1, , , 1, , 1, , , , 1, 1, 1, , , , , , 1, , , , 1 ], [ 1, 1, , , 1, 1, , 1, , , , , 1, , 1 ] ], [ , [ , 1 ], [ , , , 1, , , , 1, , , , 1, , , , 1, , , 1, , , 1 ], [ , , , , , , , , , , , , , , , , , , 1, 1, , , , , , 1 ], , [ 1, , , , , 1 ], [ , 1, , , , 1, , , , 1 ], [ , 1, , , , , , , , , , , 1, , , 1, , , , , , , , , 1, 1 ], [ , , , , , , , , , , , , , , , , , , , , , 1 ], [ , , , , , , , , , , , , , , , , 1, , , , 1, , 1 ], [ , 1 ], [ , 1, , 1, , 1, , 1, , 1, , 1, 1, 1, , 1, 1, , 1, , , , , , , 1 ], [ 1, , , , , 1, , , 1, 1, , 1, , 1, , 1, 1, , , , , 1, , , 1 ], [ , 1, 1, , , 1, , 1, , 1, , 1, , 1, 1, 1, 1, , , 1, , 1, , 1, 1, 1 ], [ 1, 1, 1, 1, 1, , 1, , 1, , , , 1, 1, 1, 1, , 1, 1, , , 1, 1, 1, 1 ], [ 1, , , , , , , , , , , , , , , , , , , , 1 ], [ , , , , , , , , , 1 ], , [ , 1, , , , , , 1, 1, 1, , 1, , , , 1, , , 1, 1, 1, , , 1 ], [ 1, , , , , 1, , 1, 1, 1, , 1, 1, 1, 1, 1, , 1, , 1, , 1, , , 1, 1 ], [ 1, , 1, 1, , , , , 1, , , , , , 1, 1, , , 1, 1, 1, 1, , , 1, , 1 ], [ 1, , , , , , , , , , , , , , , , , 1 ], [ , , , , , 1, , , 1, , , , , , 1 ], [ , , , , , , , , , , , , , , , 1 ], [ , , , , , , , , , , , , , , , , , , , , 1 ], [ , 1, , , , , , , , , , , , , , 1 ], [ , 1, , , , 1 ] ], [ , [ 1, 1, 1, , 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, , 1, , 1, 1, , , 1, 1, 1 ], [ , , , , , , , , , , , , 1 ], [ , , , , , , , , , , , , , , , , , , , 1 ], , [ , , , , , , , , , , , , , , , , , , 1 ], [ 1, , , , , , , , , 1, , , , 1 ], [ , , , , , , , , , , , , , , , , , , 1 ], , [ 1, 1, , , , 1, 1, , , , , , 1, , , , 1, , 1, , 1, 1, , 1 ], [ 1 ], [ , , , , , , , , , , , 1, , , , , , , , , , , 1 ], [ , 1, , , , , , , 1, 1, , , 1, , 1, , , , 1, , , , , , , 1 ], [ , , , , , , , , , , , , , , , , 1, , , , , 1 ], [ , , 1, , , , , 1, , 1 ], [ 1, , , , 1, , , , , 1, , , , 1, 1, , , , 1, 1, , , , , 1 ], [ , , , , , 1 ], [ , , , , , , , , , , , , , , , , , , , 1 ], [ 1, , , 1, 1, , , , , , , 1, , 1, , 1, 1, 1, 1, 1, 1 ], [ , , , , , 1, , , , , , , 1, , , , , , , 1 ], , [ , , 1, 1, 1, 1, 1, , 1, 1, 1, , , 1, 1, , , 1, 1, , 1, 1, 1, , , 1 ], [ , , , , , , , , , , , , , , , , , , 1 ], [ , 1, , , , 1 ], , [ 1 ] ], [ , [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1 ], [ , , , 1, 1, 1, 1, , , , , , 1, , 1, , , , 1, , 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, , , 1 ], [ , 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, , , , 1, , 1, , , 1, 1, 1, 1, 1 ], [ , , , , , , , , , , , 1, , , , , , , , , 1, , , , 1 ], [ , 1, 1, , 1, 1, , 1, , , , 1, 1, , 1, 1, , , 1, , 1, 1, , 1 ], [ , 1, , 1, , 1, , , 1, , , 1, 1, , 1, 1, , , 1, 1, 1 ], [ , 1, 1, 1, 1, 1, , 1, 1, , , , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1 ], [ , , , , , , , , , 1, , 1, , 1, 1, , , , 1, , , 1 ], [ , 1, , , 1, 1, , , , , , , , , 1, 1, 1, , , , , 1 ], [ 1, , , 1, 1, , , , 1, 1, 1, 1, 1, , , 1, , , 1, , , 1, , 1, , 1 ], [ , 1, 1, , 1, 1, , 1, 1, , , , 1, 1, 1, , , 1, 1, , , 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, , 1, 1, , 1, , , 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1 ], [ , 1, , , , 1, , , , , , , , , 1 ], [ , 1, , , , , , , , 1, , , , , 1, , , , 1, , , 1 ], [ , 1, 1, 1, 1, , , 1, 1, 1, 1, 1, , 1, , 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , , , , , 1, , 1, , , , , 1, 1, 1, 1, 1, , , 1, , , , 1 ], [ , 1, , , , , , , , 1, , , , , , , , , , , , 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1 ], [ 1, 1, , 1, , 1, 1, , , , 1, , 1, 1, 1, 1, 1, , 1, 1, , , , , , 1 ], [ , 1, 1, 1, 1, 1, 1, 1, , 1, 1, , , 1, 1, , , , 1, , 1, 1, , 1, 1 ], [ , , , , , , , , , , , , , , , , , , , , , , , , 1 ], [ , 1, 1, , 1, 1, 1, 1, , 1, , , 1, 1, 1, 1, , , 1, , , , , , , 1 ], [ , 1, , , , , , , , 1, , , , , 1 ] ], [ , [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , , 1, 1, 1, 1, 1 ], [ , 1, 1, , , , , , , , , , , , 1, 1, , , , , , 1 ], [ , 1, , , , , , , 1 ], [ , , , , , , , , , , , , , , 1, , , , , 1, , , , , , 1 ], [ 1, 1, , , 1, , , 1, 1, 1, , , , 1 ], , [ , , , , , , , , , , , , , 1, , , , , , , , , , 1 ], [ , , , , , , , , , 1, , , , , , , , , 1, , , , , , , 1 ], [ 1, 1, 1, , 1, , 1, 1, 1, 1, 1, 1, 1, 1, , 1, , , 1, , 1, , , 1, 1 ], [ , , , , , , , , , 1 ], [ , 1, , , , 1, , , , , , 1, , , 1, , , , , 1 ], [ , 1, 1, , 1, 1, , , , , , , , , , , , , , , 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, , , 1, 1, , 1, 1, 1, 1, , , , 1, 1, , , , 1, , 1 ], [ 1, 1, 1, 1, 1, 1, , , 1, 1, 1, 1, 1, 1, , 1, 1, , 1, 1, 1, , 1, 1, , 1, 1 ], [ , , , , , , , , , , , , , , , 1, , , , 1 ], , [ 1, 1, , 1, , 1, , , , , , 1, , 1, , 1, 1, , 1, , 1, 1, , 1, 1, , 1 ], [ , , 1, , , , , , 1, , , , 1, , 1, , , , , 1 ], [ 1, , , , , , , , , 1, , , , , , 1, , , , 1, , 1, , , 1 ], [ 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , , , 1, , 1, , , , , , 1, , , 1, , , , , , , , 1 ], [ , 1, , 1, , , , , , , , , , , , 1 ], , [ 1, 1, , , , , , , , , , , , , , , , , , , , , , 1, 1 ], [ 1 ] ], [ , [ 1, , , , , , , , , 1, , , , , 1, , 1, , 1 ], [ , 1, 1, , 1, 1, , 1, 1, 1, , , 1, 1, 1, , , , 1, , , 1, , , , 1 ], [ , 1, , , , , , , 1, , , , 1, , , , , , 1 ], [ 1, 1, 1, 1, 1, 1, , , , 1, , , , , , , , , 1, 1, 1, 1 ], [ 1 ], [ , 1, 1, , , 1, 1, , , , , 1, , 1, , , , , , , , 1, , , , 1 ], [ 1, , 1, , , 1, , 1, , , , , 1, 1, 1, 1, , , , 1, , , , 1 ], [ , , 1, , , , , , , 1, , , , , , , 1, , , , , , , 1 ], [ 1, , , , , , , , , , , , , , 1, , , , 1 ], [ , , , 1, , 1, , , , , 1, , , , 1, 1, , , , 1 ], [ 1, , , , , 1, , , , 1, , 1, 1, , , 1, 1, , 1, 1, 1, , 1, 1, 1, , 1 ], [ , 1, 1, , , , , 1, , 1, , 1, 1, 1, , 1, 1, , , 1, , 1, 1, 1 ], [ , 1, , , , 1, , , , 1, , , 1, , 1, 1, , , 1, 1, , , , , , 1 ], [ 1, , 1, 1, , 1, , 1, 1, , 1, , 1, 1, 1, 1, 1, , , 1, 1, , , , , , 1 ], [ 1, , , , , , , , , , , , , , , , , , 1, , , 1, , 1 ], [ , , , , , , , , , 1, , , , , , 1 ], [ , , , , , , , , , , , , , , , , , , , , , 1, , 1 ], [ , 1, , , , 1, , , 1, 1, , 1, , , 1, 1, , , 1, , , 1, , , 1, 1 ], [ 1, 1, , 1, 1, 1, , 1, 1, 1, , 1, , 1, 1, 1, , , 1, , 1, 1 ], [ 1, , 1, 1, 1, 1, , , , 1, , 1, 1, 1, , 1, , , 1, 1, 1, , 1, 1, 1, 1, 1 ], [ 1, , , , , , , , , , , , , 1 ], [ , , 1, , , , , , , , , , , , , , , , , , , , 1 ], [ 1, , , , , , , , , , , 1, , 1, , 1, , , , 1 ], [ , , , 1, , , , , , , , , 1 ], [ , 1, , , , , , , , , , , , , , 1, , , , , , , , , 1 ], [ , , , , , , , , 1, 1, , , , , , , , , 1, , , , , , , , 1 ] ], [ , [ 1, 1, 1, 1, 1, 1, 1, , 1, , 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, , , 1, 1, 1 ], [ , , , , , 1, , , , 1, 1, 1, , , 1, 1, , , 1, , 1, 1, , 1 ], [ , , , , , , , , , , , , , , , , , , , 1, 1 ], [ , 1, , , , , , 1, , , , , , , , , , , , , 1 ], [ , , 1, , , 1, , 1, 1, 1, , 1, 1, , 1, , , , 1, , 1, 1 ], , [ , , 1, , , 1, , , , , , 1, , , , 1 ], [ , , , , , , , , , 1, , , , , , , , , , 1 ], [ 1, 1, 1, 1, 1, 1, , 1, 1, 1, , , 1, 1, , 1, , 1, , , 1, 1, 1, , , 1 ], [ , , , , , 1, , , , , , , , , , , , , 1 ], [ , 1, , , , , , , , , , , , 1, , 1, 1, , 1, , , 1 ], [ , , , , , 1, , , , , , , , , , , , , , 1 ], [ , 1, 1, 1, 1, , , , , 1, , , 1, , 1, , , , 1, 1, , , , 1, 1 ], [ , 1, , , 1, , , 1, , 1, 1, , 1, , , , , , , 1 ], [ , , 1, , 1, , , 1, , , , , , , , , , , 1, 1, , , , 1 ], [ , 1, , , , , , , , , , , , , , , , , 1, , , , , , 1 ], [ , , , , , , , , , , , , , , , , , , 1 ], [ , 1, 1, , , , , , , , , , , , , , , , 1, , 1, 1 ], [ , , , , , , , , , , , , 1 ], , [ , 1, 1, 1, 1, , , , 1, 1, , 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, , 1, , 1 ], [ 1, , , , 1, , , , , , , , , , 1 ], [ 1, , , , , , , , , 1 ], , [ , 1, , , , 1, , , , , , , , , , , , , , , , , , , , 1 ] ], [ , [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, , 1, 1, 1, 1, , , , 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, , 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , , 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ] ], [ , [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, , 1, , 1, 1, 1, 1 ], [ 1, 1, 1, 1, , 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , , , 1, 1, 1, 1, , 1, , , , 1, 1, , , 1, 1, , 1 ], [ , 1, 1, , 1, , , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, , , , , , , , , , , , , 1 ], [ 1, 1, 1, , , , , 1, 1, 1, , 1, 1, 1, 1, , , 1, 1, , 1, 1, , , , , 1 ], [ , 1, , , , , , , 1, 1, , , 1, 1, 1, , 1, , , 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , , 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1 ], [ , 1, , , , 1, , , , 1, , , 1, , , , 1, , , , , , , 1, 1 ], [ , 1, 1, 1, 1, 1, , , 1, 1, 1, , 1, 1, 1, 1, , , 1, 1, 1, 1, , , , 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, , 1, , , 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , , 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, , 1, , , 1, 1, 1, 1, , 1, 1, 1, 1, , , , 1, , 1, , 1, , , 1 ], [ 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, , , , 1, , , , , , , , , 1, 1, , , , , , , , , 1 ], , [ , 1, , 1, , 1, , 1, , 1, , 1, 1, 1, 1, 1, , , 1, , 1, , 1, , , , 1 ], [ , 1, , , 1, 1, , 1, 1, 1, , , 1, 1, 1, 1, 1, , 1, 1, 1, , 1, , , 1 ], [ 1, , , 1, , , , 1, 1, 1, , , , , 1, 1, , , , 1, , 1 ], [ 1, 1, , 1, 1, 1, 1, , , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1 ], [ 1, 1, , , , , , , , 1, , 1, , , , , , , , 1, , 1 ], [ , 1, , , , 1, , 1, 1, , , , 1, 1, , 1, , , , 1, 1, 1, , 1 ], , [ , 1, , , , , , 1, , , , , , , 1 ], [ , , , , , , , , 1, , , , 1, , 1, , , , , , , , , , , , 1 ] ], [ , [ , 1, 1, , 1, 1, 1, 1, , 1, 1, 1, , 1, 1, , 1, 1, , 1, 1, 1, 1, 1, 1, , 1 ], [ , 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, , 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1 ], [ , 1, 1, , 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ] ], [ , [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , , 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , , 1, , 1 ], [ 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, , , 1, , , , , , , , 1, , , , , , 1, , , 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, , 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, , 1, , , , 1, 1, 1, , 1, 1, 1, 1, , , 1, 1, 1, 1, , , 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1 ], [ 1, 1, , 1, , 1, , 1, , 1, 1, 1, 1, 1, 1, 1, , 1, 1, , , 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, , 1, 1 ], [ , 1, 1, , , , , 1, 1, 1, , , 1, , 1, 1, , , , 1, , 1, , , 1, 1 ], [ , , , , , , , 1, , , , 1, 1, 1, 1, 1, , 1, , , , , , , , 1 ], [ 1, 1, 1, 1, , 1, 1, 1, , 1, , 1, 1, 1, 1, , 1, , 1, , 1, 1, , , 1, , 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , , , , 1, 1, , 1, , 1, 1, 1, , 1, , 1, 1, , 1, 1, , 1, , 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, , , , , , , , 1, , , , , 1, , 1 ], [ , 1, 1, 1, , 1, , 1, , 1, , , , 1, , 1, , , 1, , , , , , 1, 1 ], [ , 1, , , 1, 1, , 1, , 1, , 1, 1, 1, 1, 1, , 1, 1, , , 1, , , 1 ], [ 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, , 1, , , , , 1, , 1, , 1, , , , , , 1, , 1, , , , 1, 1 ] ], [ , [ , 1, , 1, , , , , , , , , , , , , , , 1, , , , 1 ], [ , , , , , , , , , 1, , 1, 1, 1, , 1, , , 1, , 1, 1 ], [ 1, 1, , , , , , , 1, , , , , , , 1, , , , , , 1 ], [ , 1, , , , , , , , , , 1, , , , , , , , , 1, 1 ], , [ , , , , , , , , , , , , , , , 1, , , , 1, , 1 ], [ , , 1, 1, , 1, , 1, , , , , , , , 1, , , , , , 1 ], [ , , , , , , , , , , , , , , , , , , , , 1, 1 ], [ , 1, , , , , , , , , , , , , 1 ], [ 1, , 1, 1, , , , 1, , , , , , , , , 1, , , 1, , , 1, 1 ], [ , 1, 1, , 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, , , 1, 1, , 1, 1, , 1 ], [ , 1, , , 1, 1, , , , , , 1, , 1, , 1, , , 1, , 1, 1 ], [ 1, 1, 1, 1, , 1, , 1, , 1, , 1, 1, , 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1 ], [ , 1, 1, , , 1, , 1, , 1, 1, 1, , , 1, 1, 1, , 1, 1, 1, 1, , 1, 1 ], [ , , , , 1, , , 1, , , , , , , 1, , , , 1, 1 ], [ , 1, , , , , , , , , , 1, , 1, , 1, , , , , 1, , , , , 1 ], , [ 1, 1, , 1, , 1, , 1, 1, , , , , , 1, 1, , , 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, , 1, , , , , , 1, , , , , , 1, 1, , , , 1, 1, , , 1 ], [ , 1, 1, , 1, 1, , , , 1, , 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, , 1, 1, 1, 1 ], [ , 1, 1, , , 1, , , , 1, , , , 1, 1 ], [ , , , , 1 ], [ , , , , , , , , , 1, , , 1 ], , [ , , 1, , 1, , , , , , , , , 1, , , , , , , , , , , , 1 ], [ , , , , , , , , , , , , , 1 ] ], [ , [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , , 1, 1, , 1, 1, 1, 1, 1, , , 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, , , 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, , 1, , , , , 1 ], [ , 1, , 1, , , , , , 1, , , , , 1, 1, , , , , 1, 1 ], [ , 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, , 1, , , 1, , 1, 1, 1 ], [ , 1, , , , 1, , , , , , , 1 ], [ , 1, , , 1, , , 1, , 1, , 1, 1, , 1, , , , , 1, , 1, , , , 1, 1 ], [ , 1, , , 1, , , 1, 1, 1, , 1, 1, 1, 1, 1, , 1, 1, , 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , , , , , , , , , , , , , , , , , , , , 1 ], [ , 1, 1, 1, , , , 1, 1, , , , , , 1, 1, 1, , 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1 ], [ , 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, , 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , , , 1, 1, 1, 1, 1, 1, 1, , 1, , 1, 1, 1, 1, 1, , 1, 1, , 1, 1, 1, 1, 1 ], [ , 1, , , , 1, , , , 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, , , , 1, , , , , , , , 1, , , , , , , , , , 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1 ], [ 1, 1, , 1, 1, 1, , 1, 1, 1, , , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, , 1 ], [ 1, 1, , , , , , , 1, 1, , , , , 1, 1, 1, 1, 1, , 1, 1, 1, 1, , 1 ], [ , 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, , 1, , 1, 1, 1, 1, , 1, 1, , 1, 1, 1, 1 ], , [ , 1, 1, , , , , 1, , 1, , , , 1, 1, 1, , , 1, , , , , 1 ], [ , , , , , , , , , , , , , 1 ], [ , , , , , 1, , , , , , , , 1, 1, , , , , 1, , 1, , , 1, 1 ], [ , , , , , , , , , , , , , , 1 ] ], [ , [ , 1 ], , , , , , , , , , , , , , , , , , , , [ 1, 1, 1, 1, 1, , 1, 1, 1, 1, , 1, 1, 1, 1, , 1, 1, 1, 1, , , 1, 1, 1, 1, 1 ], [ , 1, , 1, , 1, , , 1, 1, 1, , 1, 1, 1, 1, 1, , , 1, , , , 1, , 1, 1 ], [ , 1, , 1, , 1, , , 1, , , , , 1, , , , , , 1, 1 ], [ , 1, , 1, , , , , 1, , , , 1, , 1, 1, 1, 1, 1, 1, 1, 1, , 1 ], [ , 1, , , , , , , , , , , , , , , 1 ] ], [ , [ , 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , , 1, , , , , , , , , 1, 1, , , , 1 ], [ , , , , , , 1 ], [ , , 1 ], [ , 1, 1, , , 1, , 1, , 1, 1, , 1, 1, 1, , , , 1, 1, 1, , , , , 1 ], , [ , 1, , , , 1, , , , , , 1, , , 1, , , , 1, 1, , 1 ], [ , , , , , , , 1, , , , , , , , , 1 ], [ , 1, , , , 1, 1, , , , , , 1, 1, 1, , , , 1, , 1, 1 ], [ , , , , , , , 1, , 1, , , , , , , , , , 1 ], [ , 1, 1, , , , , , 1, 1, , , , 1, , , , , , , 1, , , 1 ], , [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, , , 1, , , 1, , , , , 1, , 1, , 1, , 1, , , , , 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, , , , , 1, 1, , 1, 1, , 1, , , 1, , 1 ], [ , , , , , , , , , , , , , , 1, , , , , , 1 ], , [ , , , , , , , , , 1, , , , , , 1, , , , , 1 ], [ , , 1, , , , , , , 1, , , 1, 1 ], [ , , , 1, , , , , 1, , , , , 1, , , , , , 1, , , , 1 ], [ 1, , 1, 1, , 1, 1, 1, 1, 1, , 1, , , , 1, 1, 1, , , 1, 1, , , , 1, 1 ], , [ 1, 1, , , , , , , , , , 1, , 1, , 1, , , 1 ], [ , , , , 1, , , , , , , , , , , , , , , , , , , 1 ], [ , , , , , , , , , , , , , , 1, , , , , 1, , 1 ], [ , , , , , , , , 1 ] ], [ , [ 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, , , 1, 1, 1, 1, 1, , 1, 1, , 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, , 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, , 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1 ], [ , , 1, , , 1, , , , , , , , 1, , , , , , 1, , , , 1 ], [ 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, , 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, , 1, 1, , 1, , , , 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, , 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, , 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, , 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1 ], [ , , 1, 1, 1, 1, , 1, , 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1 ], [ 1, 1, , , , , , , 1, , 1, 1, , 1, 1, 1, , 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, , 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1 ], [ 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1 ], [ 1, 1, 1, 1, , 1, , 1, , 1, 1, 1, 1, 1, , , , 1, 1, 1, 1, , 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, , 1, , , , , , 1, , 1, , , , , 1, 1, , , , , 1 ], [ 1, , 1, 1, , , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , , 1, 1, , 1, , 1, , , , 1, 1, 1, 1, 1, , , 1, 1, , 1, , 1 ], [ , 1, 1, 1, 1, , , , , 1, , 1, 1, 1, 1, 1, , , 1, 1, , , , 1, 1, 1 ], [ , 1, 1, 1, 1, 1, , 1, , , , , 1, , 1, , 1, , , 1, , , 1, 1, , 1 ] ], [ , [ 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, , 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, , 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , , , , , , , , , 1, , , , , 1, 1, , , 1, , 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , , , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, , , 1, 1, 1, 1, , 1, 1, , 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, , , , , , 1, , 1, 1, , 1, 1, 1, 1, 1, , , 1, , 1, , 1 ], [ 1, 1, 1, , 1, 1, 1, 1, , , , 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1 ], [ 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, , 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1 ], [ , 1, , 1, , 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1 ], [ , , 1, , , , , , , , , , 1, 1, 1, 1, 1, 1, 1, , 1, 1, , 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, , , 1, 1, , , , , , 1, 1, 1, 1, 1, , , , 1, 1, 1, , 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, , , , 1, 1, 1, 1, 1, 1, 1, , 1, 1, , 1, 1, 1 ], [ , 1, 1, 1, , 1, , 1, 1, 1, 1, , , 1, 1, 1, , 1, 1, 1, 1, 1, , , 1, 1 ], [ 1, 1, , , , 1, , , 1, 1, 1, , 1, , 1, , 1, , 1, 1, 1, 1, 1, , 1, , 1 ], [ , 1, , , , , , , 1, , 1, , 1, 1, 1, 1, , , , , , , , , 1 ] ], [ , [ , , , , , , , , , , , , , 1, 1, , , , 1 ], [ , 1, , , , , , , , 1, , , 1, , , , , , 1, , , 1, , , , 1 ], , [ , 1, , , , 1, , 1, , 1, 1, , 1, 1, , , , , , , , 1 ], [ , , , , , , , , , , , , , , , , , , , 1 ], [ , , , , , , , , , 1 ], [ 1, 1, 1, , , 1, , , , , , , , , 1, 1, , , , , , , , , , 1 ], [ , 1, , , , , , , , , , , , , 1 ], [ , , , , , , , , , , , , , , , , , , , 1, , , 1 ], [ , , , , , , , , , 1 ], [ 1, 1, , , , , , 1, 1, 1, , 1, 1, , , , 1, 1, , 1, , 1, 1, 1, , 1 ], [ , 1, 1, 1, , 1, 1, , , 1, , 1, 1, 1, 1, , , , , , , 1, , 1 ], [ , 1, 1, 1, 1, , , 1, , 1, , , , 1, 1, 1, 1, , 1, 1, , 1 ], [ , 1, , , 1, 1, , 1, , , , 1, , 1, 1, , 1, , 1, , , 1, , , 1, , 1 ], [ , , , , , , , , , , , 1 ], [ , , , , , , , , , 1, , , , , , , , , , , , , 1 ], , [ 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, , 1, 1, 1, 1, 1, 1, 1 ], [ , 1, , , , , , , 1, 1, , 1, , , , , 1, , , 1, , 1 ], [ , 1, , , , 1, , , 1, , , , , , , , 1, , 1, , , 1 ], [ , , , , , , , , , , , , , 1, 1, , , , 1, , , 1 ], [ , , , , , 1, , , 1, , , , 1 ], [ , 1 ], , [ , 1 ], [ 1, , , , , , , , , , , , , , 1, , , , , 1 ] ], [ , [ , 1, , , , 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, , 1, 1, , 1, 1, , , 1 ], [ , , 1, , , , , , , , , 1 ], , , [ 1, , , 1, 1, , , , , , , , 1, 1, , 1, 1, , 1 ], , [ , , , , , , , , , , , , , , , , , , 1, , 1 ], , [ 1, , , 1, 1, , 1, 1, , , , , 1, , 1, , , , , 1, 1, , 1 ], , [ , 1, , , , , , , , 1, 1, 1, 1, 1, , 1, 1, , , , 1, 1 ], [ , , , , , , , , , , , , , , , , 1, , , 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , , 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1 ], [ , , , , , , , , , , , 1, , 1, , , 1 ], [ 1, , , , , , , , , , , , , , , , , , 1, , 1 ], , , [ , 1, , , , , , , , , , , , , , 1, , , , 1, 1 ], [ , , , , , , , , , 1, , , 1, , , , , , , , , , 1 ], [ , , , , , , , , , , , , , , , 1 ], [ , , , , , , , , , , , , , 1, 1, , , , , , 1 ], , [ , 1 ] ], [ , [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, , , 1, 1, , 1, 1, 1, 1, 1, 1, , , 1, 1, 1, 1, 1, , 1, 1 ], [ , 1, , , , , , , , 1 ], [ , , , , 1, , , 1, , , 1, 1, , , , , , , , , , 1, , , , 1 ], [ , 1, , 1, 1, , , 1, 1, 1, , , , 1, 1, 1, 1, , 1, 1, 1, 1, , 1 ], [ , , , , , , , 1 ], [ , 1, 1, , , , , 1, , 1, , , , , , 1, , , , , , 1, , 1, , 1 ], [ , 1, , , , , , 1, , , , 1, , , , , , , , , , 1 ], [ , , 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , , , 1, , 1, 1, 1, 1, , 1 ], [ , 1, , , , , , , , 1 ], [ , 1, 1, , 1, , , , , , , , 1, , , , , , 1, , , 1, , 1, , 1 ], [ , 1, , 1, , 1, , 1, 1, 1, , 1, 1, 1, , 1, , , 1, 1, , 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, , , 1, 1, , , , 1, 1, 1, , , , 1, 1, , , 1, 1 ], [ , , 1, 1, 1, 1, , 1, , 1, , 1, , 1, 1, 1, 1, , , , , 1, , 1, , 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, , 1, , 1, , 1, 1, 1, , , 1, 1, , , , 1, , 1 ], [ , , , 1 ], , [ , 1, 1, , 1, , , 1, 1, 1, , 1, 1, 1, 1, 1, 1, , 1, 1, , 1, 1, 1, 1, 1, 1 ], [ , 1, , , , , , 1, , 1, , 1, , , , , , , 1, 1, , 1, 1 ], [ , , , , , , 1, , 1, 1, , 1, , 1, , , , , , , , , , 1 ], [ , 1, 1, , 1, , , , 1, , , , 1, 1, 1, , , , 1, , 1, 1, 1, , 1, 1 ], , [ , 1, 1, , , , , , , , , , , , , 1, , , 1, , , , , 1 ], [ , 1, , , , , , , , , , , , , , , , , , , , , , 1 ], [ , 1, 1, , , , , , , 1, , , , 1, , , , , 1, , , , , , , 1 ] ], [ , [ , 1, 1, 1, 1, 1, , 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1 ], [ , 1, 1, 1, 1, 1, , 1, , 1, 1, , , 1, 1, 1, 1, , 1, , , , , 1, 1, 1 ], [ , , 1, 1, , 1, , 1, 1, , , , 1, 1, 1, 1, , , 1, , 1, 1, 1, 1, , 1 ], [ , 1, , 1, , , , , , , , 1, , 1, , 1, , , , , , , , , , 1 ], [ , , 1, , 1, , , 1, , , , , 1, 1, , , 1, , 1, 1, 1, 1 ], [ , 1 ], [ , 1, 1, , 1, , 1, 1, , 1, , , 1, 1, 1, , , , 1, , , 1, , 1 ], [ 1, 1, , 1, 1, 1, , , , , , , , , , , , , 1, , 1, 1, 1 ], [ , 1, 1, , , , , , , 1, , , 1, , 1, , 1, , 1, 1, , , 1, , , 1 ], [ , , 1, , , , , , , , , , , , , , , , , , 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, , 1, , 1, , , , , 1, 1, 1, , , 1, , 1, , , , 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, , 1, , , 1, 1, 1, , 1, , 1, 1, 1, , , 1, 1, 1, 1, , , , 1, 1 ], [ , , , 1, 1, , , 1, , 1, , 1, , 1, 1, 1, 1, , 1, , , , , 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, , , , , , , , , , , , , , , , , , , 1 ], [ , 1, 1, , 1, 1, , 1, , 1, , , , 1, 1, , , 1, 1, , 1, 1, , 1 ], [ , 1, 1, 1, 1, 1, , , 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, , , 1 ], [ , 1, 1, 1, 1, 1, , 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1 ], [ , 1, 1, , 1, , , 1, , , 1, , 1, 1, 1, 1, 1, , 1, , 1, 1 ], [ , , , , , 1, , , , 1, , , , , 1, 1, , , , 1 ], [ , 1, , 1, 1, 1, , 1, , , 1, 1, 1, , , 1, , , 1, , 1, , , 1 ], [ , , 1, , , , , , , , , 1, , 1, , , , , 1, , 1 ], [ , 1, 1, , , , , , , , 1, 1, 1, , , , , , , , 1, , , , , 1 ], [ , , , , , , , , 1, , , , , 1, , , 1 ] ], [ , [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, , 1, 1, , , 1, 1, 1, 1, 1, 1, 1, 1, , , , , , , , , 1, 1 ], [ , , , , , , , , 1, , , , 1, , 1, , 1 ], [ , 1, , , 1, 1, , 1, , , , 1, , , , , , , , 1 ], [ , 1, , 1, , 1, , , , 1, 1, , 1, , 1, , , , 1, 1, 1, 1, 1, , , 1 ], , [ , 1, , , , , , , , 1, , , 1, 1, , , 1, , 1, 1, , 1, , 1 ], [ , 1, , , 1, , , , , , , , 1, , , , , , , 1 ], [ 1, 1, , , , , 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1 ], , [ , 1, , , , , , 1, , 1, , 1, 1, 1, 1, 1, , , 1, , 1, 1, , , , 1 ], [ , 1, 1, , , 1, , 1, , 1, , , 1, 1, 1, 1, , , 1, , , 1, , , , 1 ], [ , 1, 1, 1, 1, 1, , 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , , , 1, , 1 ], [ , 1, , , 1, 1, , 1, 1, , , 1, 1, , 1, 1, , 1, , 1, , 1 ], [ 1, , 1, , , , , 1, , 1, , 1, 1, 1, 1, , , , , 1, 1, , , , 1, 1 ], [ , 1, 1, , , , , 1, 1, , , 1, , 1, 1, 1, 1, , , , , , , , , , 1 ], , [ , 1, 1, , , 1, , , , 1, , 1, 1, 1, 1, 1, , , , 1, , , , 1, , 1 ], [ , , , 1, 1, , , 1, , , , , 1, , 1, 1, 1, , 1, 1, , , , , , 1 ], [ , 1, , , , , , , , , , , 1, , , , 1, , , , , , , 1, , 1 ], [ , 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, , 1, 1, 1, , 1, 1, , 1, 1, 1, 1 ], [ , 1, , , , , , , , , , , , , , , , , , , 1 ], [ , 1, , , , , , 1, , , , , 1, , 1, , , 1, 1, , 1, 1, , 1 ], [ , 1, , , , , , 1, , , , , 1, 1, , , , , , , , 1, , , , 1 ], [ , , , , , , , , , , , , , , , , , , 1, , , 1, , , , , 1 ], [ , , , , , , , 1, , , , 1 ] ], [ , [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, , 1, , 1, , , , , , , 1, , , , , , , , 1, , , 1 ], [ , 1, , , , , , , 1 ], [ , , , , , , , , , , 1 ], [ , 1, , , , , , 1, 1, , , , , , 1 ], , [ , 1, 1, , , , , , 1, , , , , 1, 1, , , , 1 ], [ 1, , 1, , 1, , , , , 1, , , , , 1, , , , , , , , , 1, 1 ], [ , 1, 1, , , , , , , , , 1, 1, 1, 1, , , , 1, , , , , 1, , , 1 ], , [ , 1, 1, , 1, , , 1, 1, , , 1, , , 1, 1, 1, , 1, , 1, 1, 1, , , , 1 ], [ , , , , , 1, , , , , 1, , , 1, 1, , , 1, , 1, , , , 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, , , 1, 1, , 1, , , , 1, , , , , , , , 1 ], [ , , , 1, , , , , 1, , , , , 1, , 1, , 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , , , , , 1 ], [ , 1, , , , , , 1, , , , , , , 1, 1, 1, , , 1 ], [ , 1, , , , , , , , , , 1, 1, 1, , , , , 1, , , 1 ], [ , , , , , 1, , 1, , , , , 1, 1, 1, , 1, 1, , 1, 1, 1, , , 1, 1 ], [ 1, 1, , , , , , , 1, , , , , 1, 1, , , , , , , , , , , 1 ], , [ , 1 ], [ , , , , , , , , , , , , , , , , , , , , , , , , 1 ], [ , , 1, , , , , 1, , , 1, , , , 1, , 1 ], [ , 1, , , , , , , , , 1 ] ] ];
-1 20588 function isValidLang(lang) {
-1 20589 var array = langs;
-1 20590 while (lang.length < 3) {
-1 20591 lang += '`';
19332 20592 }
19333 -1 if (!actualNode || actualNode && !is_hidden_with_css_default(actualNode)) {
19334 -1 return visible_virtual_default(vNode, true);
19335 -1 } else {
19336 -1 return actualNode.textContent;
-1 20593 for (var _i17 = 0; _i17 <= lang.length - 1; _i17++) {
-1 20594 var index = lang.charCodeAt(_i17) - 96;
-1 20595 array = array[index];
-1 20596 if (!array) {
-1 20597 return false;
-1 20598 }
19337 20599 }
-1 20600 return true;
19338 20601 }
19339 -1 function ariaListboxValue(node, context5) {
19340 -1 var vNode = node instanceof abstract_virtual_node_default ? node : get_node_from_tree_default(node);
19341 -1 if (!is_aria_listbox_default(vNode)) {
19342 -1 return '';
19343 -1 }
19344 -1 var selected = get_owned_virtual_default(vNode).filter(function(owned) {
19345 -1 return get_role_default(owned) === 'option' && owned.attr('aria-selected') === 'true';
-1 20602 function _validLangs(langArray) {
-1 20603 langArray = Array.isArray(langArray) ? langArray : langs;
-1 20604 var codes = [];
-1 20605 langArray.forEach(function(lang, index) {
-1 20606 var _char3 = String.fromCharCode(index + 96).replace('`', '');
-1 20607 if (Array.isArray(lang)) {
-1 20608 codes = codes.concat(_validLangs(lang).map(function(newLang) {
-1 20609 return _char3 + newLang;
-1 20610 }));
-1 20611 } else {
-1 20612 codes.push(_char3);
-1 20613 }
19346 20614 });
19347 -1 if (selected.length === 0) {
19348 -1 return '';
19349 -1 }
19350 -1 return accessible_text_virtual_default(selected[0], context5);
-1 20615 return codes;
19351 20616 }
19352 -1 function ariaComboboxValue(node, context5) {
19353 -1 var vNode = node instanceof abstract_virtual_node_default ? node : get_node_from_tree_default(node);
19354 -1 if (!is_aria_combobox_default(vNode)) {
19355 -1 return '';
-1 20617 var valid_langs_default = isValidLang;
-1 20618 var SerialVirtualNode = function(_abstract_virtual_nod2) {
-1 20619 _inherits(SerialVirtualNode, _abstract_virtual_nod2);
-1 20620 var _super2 = _createSuper(SerialVirtualNode);
-1 20621 function SerialVirtualNode(serialNode) {
-1 20622 var _this3;
-1 20623 _classCallCheck(this, SerialVirtualNode);
-1 20624 _this3 = _super2.call(this);
-1 20625 _this3._props = normaliseProps(serialNode);
-1 20626 _this3._attrs = normaliseAttrs(serialNode);
-1 20627 return _this3;
19356 20628 }
19357 -1 var listbox = get_owned_virtual_default(vNode).filter(function(elm) {
19358 -1 return get_role_default(elm) === 'listbox';
19359 -1 })[0];
19360 -1 return listbox ? ariaListboxValue(listbox, context5) : '';
19361 -1 }
19362 -1 function ariaRangeValue(node) {
19363 -1 var vNode = node instanceof abstract_virtual_node_default ? node : get_node_from_tree_default(node);
19364 -1 if (!is_aria_range_default(vNode) || !vNode.hasAttr('aria-valuenow')) {
19365 -1 return '';
-1 20629 _createClass(SerialVirtualNode, [ {
-1 20630 key: 'props',
-1 20631 get: function get() {
-1 20632 return this._props;
-1 20633 }
-1 20634 }, {
-1 20635 key: 'attr',
-1 20636 value: function attr(attrName) {
-1 20637 var _this$_attrs$attrName;
-1 20638 return (_this$_attrs$attrName = this._attrs[attrName]) !== null && _this$_attrs$attrName !== void 0 ? _this$_attrs$attrName : null;
-1 20639 }
-1 20640 }, {
-1 20641 key: 'hasAttr',
-1 20642 value: function hasAttr(attrName) {
-1 20643 return this._attrs[attrName] !== void 0;
-1 20644 }
-1 20645 }, {
-1 20646 key: 'attrNames',
-1 20647 get: function get() {
-1 20648 return Object.keys(this._attrs);
-1 20649 }
-1 20650 } ]);
-1 20651 return SerialVirtualNode;
-1 20652 }(abstract_virtual_node_default);
-1 20653 var nodeNamesToTypes = {
-1 20654 '#cdata-section': 2,
-1 20655 '#text': 3,
-1 20656 '#comment': 8,
-1 20657 '#document': 9,
-1 20658 '#document-fragment': 11
-1 20659 };
-1 20660 var nodeTypeToName = {};
-1 20661 var nodeNames = Object.keys(nodeNamesToTypes);
-1 20662 nodeNames.forEach(function(nodeName2) {
-1 20663 nodeTypeToName[nodeNamesToTypes[nodeName2]] = nodeName2;
-1 20664 });
-1 20665 function normaliseProps(serialNode) {
-1 20666 var _serialNode$nodeName, _ref60, _serialNode$nodeType;
-1 20667 var nodeName2 = (_serialNode$nodeName = serialNode.nodeName) !== null && _serialNode$nodeName !== void 0 ? _serialNode$nodeName : nodeTypeToName[serialNode.nodeType];
-1 20668 var nodeType = (_ref60 = (_serialNode$nodeType = serialNode.nodeType) !== null && _serialNode$nodeType !== void 0 ? _serialNode$nodeType : nodeNamesToTypes[serialNode.nodeName]) !== null && _ref60 !== void 0 ? _ref60 : 1;
-1 20669 assert_default(typeof nodeType === 'number', 'nodeType has to be a number, got \''.concat(nodeType, '\''));
-1 20670 assert_default(typeof nodeName2 === 'string', 'nodeName has to be a string, got \''.concat(nodeName2, '\''));
-1 20671 nodeName2 = nodeName2.toLowerCase();
-1 20672 var type = null;
-1 20673 if (nodeName2 === 'input') {
-1 20674 type = (serialNode.type || serialNode.attributes && serialNode.attributes.type || '').toLowerCase();
-1 20675 if (!valid_input_type_default().includes(type)) {
-1 20676 type = 'text';
-1 20677 }
-1 20678 }
-1 20679 var props = _extends({}, serialNode, {
-1 20680 nodeType: nodeType,
-1 20681 nodeName: nodeName2
-1 20682 });
-1 20683 if (type) {
-1 20684 props.type = type;
19366 20685 }
19367 -1 var valueNow = +vNode.attr('aria-valuenow');
19368 -1 return !isNaN(valueNow) ? String(valueNow) : '0';
-1 20686 delete props.attributes;
-1 20687 return Object.freeze(props);
19369 20688 }
19370 -1 var form_control_value_default = formControlValue;
19371 -1 function getUnicodeNonBmpRegExp() {
19372 -1 return /[\u1D00-\u1D7F\u1D80-\u1DBF\u1DC0-\u1DFF\u20A0-\u20CF\u20D0-\u20FF\u2100-\u214F\u2150-\u218F\u2190-\u21FF\u2200-\u22FF\u2300-\u23FF\u2400-\u243F\u2440-\u245F\u2460-\u24FF\u2500-\u257F\u2580-\u259F\u25A0-\u25FF\u2600-\u26FF\u2700-\u27BF\uE000-\uF8FF]/g;
-1 20689 function normaliseAttrs(_ref61) {
-1 20690 var _ref61$attributes = _ref61.attributes, attributes2 = _ref61$attributes === void 0 ? {} : _ref61$attributes;
-1 20691 var attrMap = {
-1 20692 htmlFor: 'for',
-1 20693 className: 'class'
-1 20694 };
-1 20695 return Object.keys(attributes2).reduce(function(attrs, attrName) {
-1 20696 var value = attributes2[attrName];
-1 20697 assert_default(_typeof(value) !== 'object' || value === null, 'expects attributes not to be an object, \''.concat(attrName, '\' was'));
-1 20698 if (value !== void 0) {
-1 20699 var mappedName = attrMap[attrName] || attrName;
-1 20700 attrs[mappedName] = value !== null ? String(value) : null;
-1 20701 }
-1 20702 return attrs;
-1 20703 }, {});
19373 20704 }
19374 -1 function getPunctuationRegExp() {
19375 -1 return /[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&\xa3\xa2\xa5\xa7\u20ac()*+,\-.\/:;<=>?@\[\]^_`{|}~\xb1]/g;
-1 20705 var serial_virtual_node_default = SerialVirtualNode;
-1 20706 var imports_exports = {};
-1 20707 __export(imports_exports, {
-1 20708 CssSelectorParser: function CssSelectorParser() {
-1 20709 return import_css_selector_parser2.CssSelectorParser;
-1 20710 },
-1 20711 doT: function doT() {
-1 20712 return import_dot['default'];
-1 20713 },
-1 20714 emojiRegexText: function emojiRegexText() {
-1 20715 return emoji_regex_default;
-1 20716 },
-1 20717 memoize: function memoize() {
-1 20718 return import_memoizee2['default'];
-1 20719 }
-1 20720 });
-1 20721 var import_css_selector_parser2 = __toModule(require_lib());
-1 20722 var import_dot = __toModule(require_doT());
-1 20723 var import_memoizee2 = __toModule(require_memoizee());
-1 20724 var import_es6_promise = __toModule(require_es6_promise());
-1 20725 var import_typedarray = __toModule(require_typedarray());
-1 20726 var import_weakmap_polyfill = __toModule(require_weakmap_polyfill());
-1 20727 import_dot['default'].templateSettings.strip = false;
-1 20728 if (!('Promise' in window)) {
-1 20729 import_es6_promise['default'].polyfill();
19376 20730 }
19377 -1 function getSupplementaryPrivateUseRegExp() {
19378 -1 return /[\uDB80-\uDBBF][\uDC00-\uDFFF]/g;
-1 20731 if (!('Uint32Array' in window)) {
-1 20732 window.Uint32Array = import_typedarray.Uint32Array;
19379 20733 }
19380 -1 var emoji_regex = __toModule(require_emoji_regex());
19381 -1 function hasUnicode(str, options) {
19382 -1 var emoji = options.emoji, nonBmp = options.nonBmp, punctuations = options.punctuations;
19383 -1 if (emoji) {
19384 -1 return emoji_regex['default']().test(str);
19385 -1 }
19386 -1 if (nonBmp) {
19387 -1 return getUnicodeNonBmpRegExp().test(str) || getSupplementaryPrivateUseRegExp().test(str);
-1 20734 if (window.Uint32Array) {
-1 20735 if (!('some' in window.Uint32Array.prototype)) {
-1 20736 Object.defineProperty(window.Uint32Array.prototype, 'some', {
-1 20737 value: Array.prototype.some
-1 20738 });
19388 20739 }
19389 -1 if (punctuations) {
19390 -1 return getPunctuationRegExp().test(str);
-1 20740 if (!('reduce' in window.Uint32Array.prototype)) {
-1 20741 Object.defineProperty(window.Uint32Array.prototype, 'reduce', {
-1 20742 value: Array.prototype.reduce
-1 20743 });
19391 20744 }
19392 -1 return false;
19393 20745 }
19394 -1 var has_unicode_default = hasUnicode;
19395 -1 function isIconLigature(textVNode) {
19396 -1 var differenceThreshold = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : .15;
19397 -1 var occuranceThreshold = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 3;
19398 -1 var nodeValue = textVNode.actualNode.nodeValue.trim();
19399 -1 if (!sanitize_default(nodeValue) || has_unicode_default(nodeValue, {
19400 -1 emoji: true,
19401 -1 nonBmp: true
19402 -1 })) {
19403 -1 return false;
19404 -1 }
19405 -1 if (!cache_default.get('canvasContext')) {
19406 -1 cache_default.set('canvasContext', document.createElement('canvas').getContext('2d'));
19407 -1 }
19408 -1 var canvasContext = cache_default.get('canvasContext');
19409 -1 var canvas = canvasContext.canvas;
19410 -1 if (!cache_default.get('fonts')) {
19411 -1 cache_default.set('fonts', {});
19412 -1 }
19413 -1 var fonts = cache_default.get('fonts');
19414 -1 var style = window.getComputedStyle(textVNode.parent.actualNode);
19415 -1 var fontFamily = style.getPropertyValue('font-family');
19416 -1 if (!fonts[fontFamily]) {
19417 -1 fonts[fontFamily] = {
19418 -1 occurances: 0,
19419 -1 numLigatures: 0
19420 -1 };
-1 20746 function cleanup(resolve, reject) {
-1 20747 resolve = resolve || function res() {};
-1 20748 reject = reject || axe.log;
-1 20749 if (!axe._audit) {
-1 20750 throw new Error('No audit configured');
19421 20751 }
19422 -1 var font = fonts[fontFamily];
19423 -1 if (font.occurances >= occuranceThreshold) {
19424 -1 if (font.numLigatures / font.occurances === 1) {
19425 -1 return true;
19426 -1 } else if (font.numLigatures === 0) {
19427 -1 return false;
-1 20752 var q = axe.utils.queue();
-1 20753 var cleanupErrors = [];
-1 20754 Object.keys(axe.plugins).forEach(function(key) {
-1 20755 q.defer(function(res) {
-1 20756 var rej = function rej2(err2) {
-1 20757 cleanupErrors.push(err2);
-1 20758 res();
-1 20759 };
-1 20760 try {
-1 20761 axe.plugins[key].cleanup(res, rej);
-1 20762 } catch (err2) {
-1 20763 rej(err2);
-1 20764 }
-1 20765 });
-1 20766 });
-1 20767 var flattenedTree = axe.utils.getFlattenedTree(document.body);
-1 20768 axe.utils.querySelectorAll(flattenedTree, 'iframe, frame').forEach(function(node) {
-1 20769 q.defer(function(res, rej) {
-1 20770 return axe.utils.sendCommandToFrame(node.actualNode, {
-1 20771 command: 'cleanup-plugin'
-1 20772 }, res, rej);
-1 20773 });
-1 20774 });
-1 20775 q.then(function(results) {
-1 20776 if (cleanupErrors.length === 0) {
-1 20777 resolve(results);
-1 20778 } else {
-1 20779 reject(cleanupErrors);
19428 20780 }
-1 20781 })['catch'](reject);
-1 20782 }
-1 20783 var cleanup_default = cleanup;
-1 20784 var reporters = {};
-1 20785 var defaultReporter;
-1 20786 function hasReporter(reporterName) {
-1 20787 return reporters.hasOwnProperty(reporterName);
-1 20788 }
-1 20789 function getReporter(reporter) {
-1 20790 if (typeof reporter === 'string' && reporters[reporter]) {
-1 20791 return reporters[reporter];
19429 20792 }
19430 -1 font.occurances++;
19431 -1 var fontSize = 30;
19432 -1 var fontStyle = ''.concat(fontSize, 'px ').concat(fontFamily);
19433 -1 canvasContext.font = fontStyle;
19434 -1 var firstChar = nodeValue.charAt(0);
19435 -1 var width = canvasContext.measureText(firstChar).width;
19436 -1 if (width < 30) {
19437 -1 var diff = 30 / width;
19438 -1 width *= diff;
19439 -1 fontSize *= diff;
19440 -1 fontStyle = ''.concat(fontSize, 'px ').concat(fontFamily);
19441 -1 }
19442 -1 canvas.width = width;
19443 -1 canvas.height = fontSize;
19444 -1 canvasContext.font = fontStyle;
19445 -1 canvasContext.textAlign = 'left';
19446 -1 canvasContext.textBaseline = 'top';
19447 -1 canvasContext.fillText(firstChar, 0, 0);
19448 -1 var compareData = new Uint32Array(canvasContext.getImageData(0, 0, width, fontSize).data.buffer);
19449 -1 if (!compareData.some(function(pixel) {
19450 -1 return pixel;
19451 -1 })) {
19452 -1 font.numLigatures++;
19453 -1 return true;
19454 -1 }
19455 -1 canvasContext.clearRect(0, 0, width, fontSize);
19456 -1 canvasContext.fillText(nodeValue, 0, 0);
19457 -1 var compareWith = new Uint32Array(canvasContext.getImageData(0, 0, width, fontSize).data.buffer);
19458 -1 var differences = compareData.reduce(function(diff, pixel, i) {
19459 -1 if (pixel === 0 && compareWith[i] === 0) {
19460 -1 return diff;
19461 -1 }
19462 -1 if (pixel !== 0 && compareWith[i] !== 0) {
19463 -1 return diff;
19464 -1 }
19465 -1 return ++diff;
19466 -1 }, 0);
19467 -1 var expectedWidth = nodeValue.split('').reduce(function(width2, _char3) {
19468 -1 return width2 + canvasContext.measureText(_char3).width;
19469 -1 }, 0);
19470 -1 var actualWidth = canvasContext.measureText(nodeValue).width;
19471 -1 var pixelDifference = differences / compareData.length;
19472 -1 var sizeDifference = 1 - actualWidth / expectedWidth;
19473 -1 if (pixelDifference >= differenceThreshold && sizeDifference >= differenceThreshold) {
19474 -1 font.numLigatures++;
19475 -1 return true;
-1 20793 if (typeof reporter === 'function') {
-1 20794 return reporter;
19476 20795 }
19477 -1 return false;
-1 20796 return defaultReporter;
19478 20797 }
19479 -1 var is_icon_ligature_default = isIconLigature;
19480 -1 function accessibleTextVirtual(virtualNode) {
19481 -1 var context5 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
19482 -1 var actualNode = virtualNode.actualNode;
19483 -1 context5 = prepareContext(virtualNode, context5);
19484 -1 if (shouldIgnoreHidden(virtualNode, context5)) {
19485 -1 return '';
-1 20798 function addReporter(name, cb, isDefault) {
-1 20799 reporters[name] = cb;
-1 20800 if (isDefault) {
-1 20801 defaultReporter = cb;
19486 20802 }
19487 -1 if (shouldIgnoreIconLigature(virtualNode, context5)) {
19488 -1 return '';
-1 20803 }
-1 20804 function configure(spec) {
-1 20805 var audit;
-1 20806 audit = axe._audit;
-1 20807 if (!audit) {
-1 20808 throw new Error('No audit configured');
19489 20809 }
19490 -1 var computationSteps = [ arialabelledby_text_default, arialabel_text_default, native_text_alternative_default, form_control_value_default, subtree_text_default, textNodeValue, title_text_default ];
19491 -1 var accName = computationSteps.reduce(function(accName2, step) {
19492 -1 if (context5.startNode === virtualNode) {
19493 -1 accName2 = sanitize_default(accName2);
-1 20810 if (spec.axeVersion || spec.ver) {
-1 20811 var specVersion = spec.axeVersion || spec.ver;
-1 20812 if (!/^\d+\.\d+\.\d+(-canary)?/.test(specVersion)) {
-1 20813 throw new Error('Invalid configured version '.concat(specVersion));
19494 20814 }
19495 -1 if (accName2 !== '') {
19496 -1 return accName2;
-1 20815 var _specVersion$split = specVersion.split('-'), _specVersion$split2 = _slicedToArray(_specVersion$split, 2), version = _specVersion$split2[0], canary = _specVersion$split2[1];
-1 20816 var _version$split$map = version.split('.').map(Number), _version$split$map2 = _slicedToArray(_version$split$map, 3), major = _version$split$map2[0], minor = _version$split$map2[1], patch = _version$split$map2[2];
-1 20817 var _axe$version$split = axe.version.split('-'), _axe$version$split2 = _slicedToArray(_axe$version$split, 2), axeVersion = _axe$version$split2[0], axeCanary = _axe$version$split2[1];
-1 20818 var _axeVersion$split$map = axeVersion.split('.').map(Number), _axeVersion$split$map2 = _slicedToArray(_axeVersion$split$map, 3), axeMajor = _axeVersion$split$map2[0], axeMinor = _axeVersion$split$map2[1], axePatch = _axeVersion$split$map2[2];
-1 20819 if (major !== axeMajor || axeMinor < minor || axeMinor === minor && axePatch < patch || major === axeMajor && minor === axeMinor && patch === axePatch && canary && canary !== axeCanary) {
-1 20820 throw new Error('Configured version '.concat(specVersion, ' is not compatible with current axe version ').concat(axe.version));
19497 20821 }
19498 -1 return step(virtualNode, context5);
19499 -1 }, '');
19500 -1 if (context5.debug) {
19501 -1 axe.log(accName || '{empty-value}', actualNode, context5);
19502 20822 }
19503 -1 return accName;
19504 -1 }
19505 -1 function textNodeValue(virtualNode) {
19506 -1 if (virtualNode.props.nodeType !== 3) {
19507 -1 return '';
-1 20823 if (spec.reporter && (typeof spec.reporter === 'function' || hasReporter(spec.reporter))) {
-1 20824 audit.reporter = spec.reporter;
19508 20825 }
19509 -1 return virtualNode.props.nodeValue;
19510 -1 }
19511 -1 function shouldIgnoreHidden(_ref43, context5) {
19512 -1 var actualNode = _ref43.actualNode;
19513 -1 if (!actualNode) {
19514 -1 return false;
-1 20826 if (spec.checks) {
-1 20827 if (!Array.isArray(spec.checks)) {
-1 20828 throw new TypeError('Checks property must be an array');
-1 20829 }
-1 20830 spec.checks.forEach(function(check) {
-1 20831 if (!check.id) {
-1 20832 throw new TypeError('Configured check '.concat(JSON.stringify(check), ' is invalid. Checks must be an object with at least an id property'));
-1 20833 }
-1 20834 audit.addCheck(check);
-1 20835 });
19515 20836 }
19516 -1 if (actualNode.nodeType !== 1 || context5.includeHidden) {
19517 -1 return false;
-1 20837 var modifiedRules = [];
-1 20838 if (spec.rules) {
-1 20839 if (!Array.isArray(spec.rules)) {
-1 20840 throw new TypeError('Rules property must be an array');
-1 20841 }
-1 20842 spec.rules.forEach(function(rule) {
-1 20843 if (!rule.id) {
-1 20844 throw new TypeError('Configured rule '.concat(JSON.stringify(rule), ' is invalid. Rules must be an object with at least an id property'));
-1 20845 }
-1 20846 modifiedRules.push(rule.id);
-1 20847 audit.addRule(rule);
-1 20848 });
19518 20849 }
19519 -1 return !is_visible_default(actualNode, true);
19520 -1 }
19521 -1 function shouldIgnoreIconLigature(virtualNode, context5) {
19522 -1 var ignoreIconLigature = context5.ignoreIconLigature, pixelThreshold = context5.pixelThreshold, occuranceThreshold = context5.occuranceThreshold;
19523 -1 if (virtualNode.props.nodeType !== 3 || !ignoreIconLigature) {
19524 -1 return false;
-1 20850 if (spec.disableOtherRules) {
-1 20851 audit.rules.forEach(function(rule) {
-1 20852 if (modifiedRules.includes(rule.id) === false) {
-1 20853 rule.enabled = false;
-1 20854 }
-1 20855 });
19525 20856 }
19526 -1 return is_icon_ligature_default(virtualNode, pixelThreshold, occuranceThreshold);
19527 -1 }
19528 -1 function prepareContext(virtualNode, context5) {
19529 -1 var actualNode = virtualNode.actualNode;
19530 -1 if (!context5.startNode) {
19531 -1 context5 = _extends({
19532 -1 startNode: virtualNode
19533 -1 }, context5);
-1 20857 if (typeof spec.branding !== 'undefined') {
-1 20858 audit.setBranding(spec.branding);
-1 20859 } else {
-1 20860 audit._constructHelpUrls();
19534 20861 }
19535 -1 if (!actualNode) {
19536 -1 return context5;
-1 20862 if (spec.tagExclude) {
-1 20863 audit.tagExclude = spec.tagExclude;
19537 20864 }
19538 -1 if (actualNode.nodeType === 1 && context5.inLabelledByContext && context5.includeHidden === void 0) {
19539 -1 context5 = _extends({
19540 -1 includeHidden: !is_visible_default(actualNode, true)
19541 -1 }, context5);
-1 20865 if (spec.locale) {
-1 20866 audit.applyLocale(spec.locale);
19542 20867 }
19543 -1 return context5;
19544 -1 }
19545 -1 accessibleTextVirtual.alreadyProcessed = function alreadyProcessed(virtualnode, context5) {
19546 -1 context5.processed = context5.processed || [];
19547 -1 if (context5.processed.includes(virtualnode)) {
19548 -1 return true;
-1 20868 if (spec.standards) {
-1 20869 configureStandards(spec.standards);
19549 20870 }
19550 -1 context5.processed.push(virtualnode);
19551 -1 return false;
19552 -1 };
19553 -1 var accessible_text_virtual_default = accessibleTextVirtual;
19554 -1 function accessibleText(element, context5) {
19555 -1 var virtualNode = get_node_from_tree_default(element);
19556 -1 return accessible_text_virtual_default(virtualNode, context5);
19557 -1 }
19558 -1 var accessible_text_default = accessibleText;
19559 -1 function arialabelledbyText(vNode) {
19560 -1 var context5 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
19561 -1 if (!(vNode instanceof abstract_virtual_node_default)) {
19562 -1 if (vNode.nodeType !== 1) {
19563 -1 return '';
19564 -1 }
19565 -1 vNode = get_node_from_tree_default(vNode);
-1 20871 if (spec.noHtml) {
-1 20872 audit.noHtml = true;
19566 20873 }
19567 -1 if (vNode.props.nodeType !== 1 || context5.inLabelledByContext || context5.inControlContext || !vNode.attr('aria-labelledby')) {
19568 -1 return '';
-1 20874 if (spec.allowedOrigins) {
-1 20875 if (!Array.isArray(spec.allowedOrigins)) {
-1 20876 throw new TypeError('Allowed origins property must be an array');
-1 20877 }
-1 20878 if (spec.allowedOrigins.includes('*')) {
-1 20879 throw new Error('"*" is not allowed. Use "'.concat(constants_default.allOrigins, '" instead'));
-1 20880 }
-1 20881 audit.setAllowedOrigins(spec.allowedOrigins);
19569 20882 }
19570 -1 var refs = idrefs_default(vNode, 'aria-labelledby').filter(function(elm) {
19571 -1 return elm;
-1 20883 }
-1 20884 var configure_default = configure;
-1 20885 function frameMessenger2(frameHandler) {
-1 20886 _respondable.updateMessenger(frameHandler);
-1 20887 }
-1 20888 function getRules(tags) {
-1 20889 tags = tags || [];
-1 20890 var matchingRules = !tags.length ? axe._audit.rules : axe._audit.rules.filter(function(item) {
-1 20891 return !!tags.filter(function(tag) {
-1 20892 return item.tags.indexOf(tag) !== -1;
-1 20893 }).length;
-1 20894 });
-1 20895 var ruleData = axe._audit.data.rules || {};
-1 20896 return matchingRules.map(function(matchingRule) {
-1 20897 var rd = ruleData[matchingRule.id] || {};
-1 20898 return {
-1 20899 ruleId: matchingRule.id,
-1 20900 description: rd.description,
-1 20901 help: rd.help,
-1 20902 helpUrl: rd.helpUrl,
-1 20903 tags: matchingRule.tags,
-1 20904 actIds: matchingRule.actIds
-1 20905 };
19572 20906 });
19573 -1 return refs.reduce(function(accessibleName, elm) {
19574 -1 var accessibleNameAdd = accessible_text_default(elm, _extends({
19575 -1 inLabelledByContext: true,
19576 -1 startNode: context5.startNode || vNode
19577 -1 }, context5));
19578 -1 if (!accessibleName) {
19579 -1 return accessibleNameAdd;
19580 -1 } else {
19581 -1 return ''.concat(accessibleName, ' ').concat(accessibleNameAdd);
19582 -1 }
19583 -1 }, '');
19584 20907 }
19585 -1 var arialabelledby_text_default = arialabelledbyText;
19586 -1 var text_exports = {};
19587 -1 __export(text_exports, {
19588 -1 accessibleText: function accessibleText() {
19589 -1 return accessible_text_default;
-1 20908 var get_rules_default = getRules;
-1 20909 var aria_exports = {};
-1 20910 __export(aria_exports, {
-1 20911 allowedAttr: function allowedAttr() {
-1 20912 return allowed_attr_default;
19590 20913 },
19591 -1 accessibleTextVirtual: function accessibleTextVirtual() {
19592 -1 return accessible_text_virtual_default;
-1 20914 arialabelText: function arialabelText() {
-1 20915 return arialabel_text_default;
19593 20916 },
19594 -1 autocomplete: function autocomplete() {
19595 -1 return _autocomplete;
-1 20917 arialabelledbyText: function arialabelledbyText() {
-1 20918 return arialabelledby_text_default;
19596 20919 },
19597 -1 formControlValue: function formControlValue() {
19598 -1 return form_control_value_default;
-1 20920 getAccessibleRefs: function getAccessibleRefs() {
-1 20921 return get_accessible_refs_default;
19599 20922 },
19600 -1 formControlValueMethods: function formControlValueMethods() {
19601 -1 return _formControlValueMethods;
-1 20923 getElementUnallowedRoles: function getElementUnallowedRoles() {
-1 20924 return get_element_unallowed_roles_default;
19602 20925 },
19603 -1 hasUnicode: function hasUnicode() {
19604 -1 return has_unicode_default;
-1 20926 getExplicitRole: function getExplicitRole() {
-1 20927 return get_explicit_role_default;
19605 20928 },
19606 -1 isHumanInterpretable: function isHumanInterpretable() {
19607 -1 return is_human_interpretable_default;
-1 20929 getImplicitRole: function getImplicitRole() {
-1 20930 return implicit_role_default;
19608 20931 },
19609 -1 isIconLigature: function isIconLigature() {
19610 -1 return is_icon_ligature_default;
-1 20932 getOwnedVirtual: function getOwnedVirtual() {
-1 20933 return get_owned_virtual_default;
19611 20934 },
19612 -1 isValidAutocomplete: function isValidAutocomplete() {
19613 -1 return is_valid_autocomplete_default;
-1 20935 getRole: function getRole() {
-1 20936 return get_role_default;
19614 20937 },
19615 -1 label: function label() {
19616 -1 return label_default;
-1 20938 getRoleType: function getRoleType() {
-1 20939 return get_role_type_default;
19617 20940 },
19618 -1 labelText: function labelText() {
19619 -1 return label_text_default;
-1 20941 getRolesByType: function getRolesByType() {
-1 20942 return get_roles_by_type_default;
19620 20943 },
19621 -1 labelVirtual: function labelVirtual() {
19622 -1 return label_virtual_default2;
-1 20944 getRolesWithNameFromContents: function getRolesWithNameFromContents() {
-1 20945 return get_roles_with_name_from_contents_default;
19623 20946 },
19624 -1 nativeElementType: function nativeElementType() {
19625 -1 return native_element_type_default;
-1 20947 implicitNodes: function implicitNodes() {
-1 20948 return implicit_nodes_default;
19626 20949 },
19627 -1 nativeTextAlternative: function nativeTextAlternative() {
19628 -1 return native_text_alternative_default;
-1 20950 implicitRole: function implicitRole() {
-1 20951 return implicit_role_default;
19629 20952 },
19630 -1 nativeTextMethods: function nativeTextMethods() {
19631 -1 return native_text_methods_default;
-1 20953 isAccessibleRef: function isAccessibleRef() {
-1 20954 return is_accessible_ref_default;
19632 20955 },
19633 -1 removeUnicode: function removeUnicode() {
19634 -1 return remove_unicode_default;
-1 20956 isAriaRoleAllowedOnElement: function isAriaRoleAllowedOnElement() {
-1 20957 return is_aria_role_allowed_on_element_default;
19635 20958 },
19636 -1 sanitize: function sanitize() {
19637 -1 return sanitize_default;
-1 20959 isUnsupportedRole: function isUnsupportedRole() {
-1 20960 return is_unsupported_role_default;
19638 20961 },
19639 -1 subtreeText: function subtreeText() {
19640 -1 return subtree_text_default;
-1 20962 isValidRole: function isValidRole() {
-1 20963 return is_valid_role_default;
19641 20964 },
19642 -1 titleText: function titleText() {
19643 -1 return title_text_default;
-1 20965 label: function label() {
-1 20966 return label_default2;
19644 20967 },
19645 -1 unsupported: function unsupported() {
19646 -1 return unsupported_default;
-1 20968 labelVirtual: function labelVirtual() {
-1 20969 return label_virtual_default;
19647 20970 },
19648 -1 visible: function visible() {
19649 -1 return visible_default;
-1 20971 lookupTable: function lookupTable() {
-1 20972 return lookup_table_default;
19650 20973 },
19651 -1 visibleTextNodes: function visibleTextNodes() {
19652 -1 return visible_text_nodes_default;
-1 20974 namedFromContents: function namedFromContents() {
-1 20975 return named_from_contents_default;
19653 20976 },
19654 -1 visibleVirtual: function visibleVirtual() {
19655 -1 return visible_virtual_default;
19656 -1 }
19657 -1 });
19658 -1 var emoji_regex2 = __toModule(require_emoji_regex());
19659 -1 function removeUnicode(str, options) {
19660 -1 var emoji = options.emoji, nonBmp = options.nonBmp, punctuations = options.punctuations;
19661 -1 if (emoji) {
19662 -1 str = str.replace(emoji_regex2['default'](), '');
19663 -1 }
19664 -1 if (nonBmp) {
19665 -1 str = str.replace(getUnicodeNonBmpRegExp(), '');
19666 -1 str = str.replace(getSupplementaryPrivateUseRegExp(), '');
19667 -1 }
19668 -1 if (punctuations) {
19669 -1 str = str.replace(getPunctuationRegExp(), '');
19670 -1 }
19671 -1 return str;
19672 -1 }
19673 -1 var remove_unicode_default = removeUnicode;
19674 -1 function isHumanInterpretable(str) {
19675 -1 if (!str.length) {
19676 -1 return 0;
19677 -1 }
19678 -1 var alphaNumericIconMap = [ 'x', 'i' ];
19679 -1 if (alphaNumericIconMap.includes(str)) {
19680 -1 return 0;
19681 -1 }
19682 -1 var noUnicodeStr = remove_unicode_default(str, {
19683 -1 emoji: true,
19684 -1 nonBmp: true,
19685 -1 punctuations: true
19686 -1 });
19687 -1 if (!sanitize_default(noUnicodeStr)) {
19688 -1 return 0;
19689 -1 }
19690 -1 return 1;
19691 -1 }
19692 -1 var is_human_interpretable_default = isHumanInterpretable;
19693 -1 var _autocomplete = {
19694 -1 stateTerms: [ 'on', 'off' ],
19695 -1 standaloneTerms: [ 'name', 'honorific-prefix', 'given-name', 'additional-name', 'family-name', 'honorific-suffix', 'nickname', 'username', 'new-password', 'current-password', 'organization-title', 'organization', 'street-address', 'address-line1', 'address-line2', 'address-line3', 'address-level4', 'address-level3', 'address-level2', 'address-level1', 'country', 'country-name', 'postal-code', 'cc-name', 'cc-given-name', 'cc-additional-name', 'cc-family-name', 'cc-number', 'cc-exp', 'cc-exp-month', 'cc-exp-year', 'cc-csc', 'cc-type', 'transaction-currency', 'transaction-amount', 'language', 'bday', 'bday-day', 'bday-month', 'bday-year', 'sex', 'url', 'photo', 'one-time-code' ],
19696 -1 qualifiers: [ 'home', 'work', 'mobile', 'fax', 'pager' ],
19697 -1 qualifiedTerms: [ 'tel', 'tel-country-code', 'tel-national', 'tel-area-code', 'tel-local', 'tel-local-prefix', 'tel-local-suffix', 'tel-extension', 'email', 'impp' ],
19698 -1 locations: [ 'billing', 'shipping' ]
19699 -1 };
19700 -1 function isValidAutocomplete(autocompleteValue) {
19701 -1 var _ref44 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, _ref44$looseTyped = _ref44.looseTyped, looseTyped = _ref44$looseTyped === void 0 ? false : _ref44$looseTyped, _ref44$stateTerms = _ref44.stateTerms, stateTerms = _ref44$stateTerms === void 0 ? [] : _ref44$stateTerms, _ref44$locations = _ref44.locations, locations = _ref44$locations === void 0 ? [] : _ref44$locations, _ref44$qualifiers = _ref44.qualifiers, qualifiers = _ref44$qualifiers === void 0 ? [] : _ref44$qualifiers, _ref44$standaloneTerm = _ref44.standaloneTerms, standaloneTerms = _ref44$standaloneTerm === void 0 ? [] : _ref44$standaloneTerm, _ref44$qualifiedTerms = _ref44.qualifiedTerms, qualifiedTerms = _ref44$qualifiedTerms === void 0 ? [] : _ref44$qualifiedTerms;
19702 -1 autocompleteValue = autocompleteValue.toLowerCase().trim();
19703 -1 stateTerms = stateTerms.concat(_autocomplete.stateTerms);
19704 -1 if (stateTerms.includes(autocompleteValue) || autocompleteValue === '') {
19705 -1 return true;
19706 -1 }
19707 -1 qualifiers = qualifiers.concat(_autocomplete.qualifiers);
19708 -1 locations = locations.concat(_autocomplete.locations);
19709 -1 standaloneTerms = standaloneTerms.concat(_autocomplete.standaloneTerms);
19710 -1 qualifiedTerms = qualifiedTerms.concat(_autocomplete.qualifiedTerms);
19711 -1 var autocompleteTerms = autocompleteValue.split(/\s+/g);
19712 -1 if (!looseTyped) {
19713 -1 if (autocompleteTerms[0].length > 8 && autocompleteTerms[0].substr(0, 8) === 'section-') {
19714 -1 autocompleteTerms.shift();
19715 -1 }
19716 -1 if (locations.includes(autocompleteTerms[0])) {
19717 -1 autocompleteTerms.shift();
19718 -1 }
19719 -1 if (qualifiers.includes(autocompleteTerms[0])) {
19720 -1 autocompleteTerms.shift();
19721 -1 standaloneTerms = [];
19722 -1 }
19723 -1 if (autocompleteTerms.length !== 1) {
19724 -1 return false;
19725 -1 }
19726 -1 }
19727 -1 var purposeTerm = autocompleteTerms[autocompleteTerms.length - 1];
19728 -1 return standaloneTerms.includes(purposeTerm) || qualifiedTerms.includes(purposeTerm);
19729 -1 }
19730 -1 var is_valid_autocomplete_default = isValidAutocomplete;
19731 -1 function visible(element, screenReader, noRecursing) {
19732 -1 element = get_node_from_tree_default(element);
19733 -1 return visible_virtual_default(element, screenReader, noRecursing);
19734 -1 }
19735 -1 var visible_default = visible;
19736 -1 function labelVirtual2(virtualNode) {
19737 -1 var ref, candidate, doc;
19738 -1 candidate = label_virtual_default(virtualNode);
19739 -1 if (candidate) {
19740 -1 return candidate;
19741 -1 }
19742 -1 if (virtualNode.attr('id')) {
19743 -1 if (!virtualNode.actualNode) {
19744 -1 throw new TypeError('Cannot resolve explicit label reference for non-DOM nodes');
19745 -1 }
19746 -1 var id = escape_selector_default(virtualNode.attr('id'));
19747 -1 doc = get_root_node_default2(virtualNode.actualNode);
19748 -1 ref = doc.querySelector('label[for="' + id + '"]');
19749 -1 candidate = ref && visible_default(ref, true);
19750 -1 if (candidate) {
19751 -1 return candidate;
19752 -1 }
19753 -1 }
19754 -1 ref = closest_default(virtualNode, 'label');
19755 -1 candidate = ref && visible_virtual_default(ref, true);
19756 -1 if (candidate) {
19757 -1 return candidate;
19758 -1 }
19759 -1 return null;
19760 -1 }
19761 -1 var label_virtual_default2 = labelVirtual2;
19762 -1 function label(node) {
19763 -1 node = get_node_from_tree_default(node);
19764 -1 return label_virtual_default2(node);
19765 -1 }
19766 -1 var label_default = label;
19767 -1 var nativeElementType = [ {
19768 -1 matches: [ {
19769 -1 nodeName: 'textarea'
19770 -1 }, {
19771 -1 nodeName: 'input',
19772 -1 properties: {
19773 -1 type: [ 'text', 'password', 'search', 'tel', 'email', 'url' ]
19774 -1 }
19775 -1 } ],
19776 -1 namingMethods: 'labelText'
19777 -1 }, {
19778 -1 matches: {
19779 -1 nodeName: 'input',
19780 -1 properties: {
19781 -1 type: [ 'button', 'submit', 'reset' ]
19782 -1 }
-1 20977 requiredAttr: function requiredAttr() {
-1 20978 return required_attr_default;
-1 20979 },
-1 20980 requiredContext: function requiredContext() {
-1 20981 return required_context_default;
19783 20982 },
19784 -1 namingMethods: [ 'valueText', 'titleText', 'buttonDefaultText' ]
19785 -1 }, {
19786 -1 matches: {
19787 -1 nodeName: 'input',
19788 -1 properties: {
19789 -1 type: 'image'
19790 -1 }
-1 20983 requiredOwned: function requiredOwned() {
-1 20984 return required_owned_default;
19791 20985 },
19792 -1 namingMethods: [ 'altText', 'valueText', 'labelText', 'titleText', 'buttonDefaultText' ]
19793 -1 }, {
19794 -1 matches: 'button',
19795 -1 namingMethods: 'subtreeText'
19796 -1 }, {
19797 -1 matches: 'fieldset',
19798 -1 namingMethods: 'fieldsetLegendText'
19799 -1 }, {
19800 -1 matches: 'OUTPUT',
19801 -1 namingMethods: 'subtreeText'
19802 -1 }, {
19803 -1 matches: [ {
19804 -1 nodeName: 'select'
19805 -1 }, {
19806 -1 nodeName: 'input',
19807 -1 properties: {
19808 -1 type: /^(?!text|password|search|tel|email|url|button|submit|reset)/
19809 -1 }
19810 -1 } ],
19811 -1 namingMethods: 'labelText'
19812 -1 }, {
19813 -1 matches: 'summary',
19814 -1 namingMethods: 'subtreeText'
19815 -1 }, {
19816 -1 matches: 'figure',
19817 -1 namingMethods: [ 'figureText', 'titleText' ]
19818 -1 }, {
19819 -1 matches: 'img',
19820 -1 namingMethods: 'altText'
19821 -1 }, {
19822 -1 matches: 'table',
19823 -1 namingMethods: [ 'tableCaptionText', 'tableSummaryText' ]
19824 -1 }, {
19825 -1 matches: [ 'hr', 'br' ],
19826 -1 namingMethods: [ 'titleText', 'singleSpace' ]
19827 -1 } ];
19828 -1 var native_element_type_default = nativeElementType;
19829 -1 function visibleTextNodes(vNode) {
19830 -1 var parentVisible = is_visible_default(vNode.actualNode);
19831 -1 var nodes = [];
19832 -1 vNode.children.forEach(function(child) {
19833 -1 if (child.actualNode.nodeType === 3) {
19834 -1 if (parentVisible) {
19835 -1 nodes.push(child);
19836 -1 }
19837 -1 } else {
19838 -1 nodes = nodes.concat(visibleTextNodes(child));
19839 -1 }
19840 -1 });
19841 -1 return nodes;
-1 20986 validateAttr: function validateAttr() {
-1 20987 return validate_attr_default;
-1 20988 },
-1 20989 validateAttrValue: function validateAttrValue() {
-1 20990 return validate_attr_value_default;
-1 20991 }
-1 20992 });
-1 20993 function allowedAttr(role) {
-1 20994 var roleDef = standards_default.ariaRoles[role];
-1 20995 var attrs = _toConsumableArray(get_global_aria_attrs_default());
-1 20996 if (!roleDef) {
-1 20997 return attrs;
-1 20998 }
-1 20999 if (roleDef.allowedAttrs) {
-1 21000 attrs.push.apply(attrs, _toConsumableArray(roleDef.allowedAttrs));
-1 21001 }
-1 21002 if (roleDef.requiredAttrs) {
-1 21003 attrs.push.apply(attrs, _toConsumableArray(roleDef.requiredAttrs));
-1 21004 }
-1 21005 return attrs;
19842 21006 }
19843 -1 var visible_text_nodes_default = visibleTextNodes;
-1 21007 var allowed_attr_default = allowedAttr;
19844 21008 var idRefsRegex = /^idrefs?$/;
19845 21009 function cacheIdRefs(node, idRefs, refAttrs) {
19846 21010 if (node.hasAttribute) {
@@ -19849,8 +21013,8 @@ module.exports = {
19849 21013 idRefs[id] = idRefs[id] || [];
19850 21014 idRefs[id].push(node);
19851 21015 }
19852 -1 for (var _i13 = 0; _i13 < refAttrs.length; ++_i13) {
19853 -1 var attr = refAttrs[_i13];
-1 21016 for (var _i18 = 0; _i18 < refAttrs.length; ++_i18) {
-1 21017 var attr = refAttrs[_i18];
19854 21018 var attrValue = sanitize_default(node.getAttribute(attr) || '');
19855 21019 if (!attrValue) {
19856 21020 continue;
@@ -19862,9 +21026,9 @@ module.exports = {
19862 21026 }
19863 21027 }
19864 21028 }
19865 -1 for (var _i14 = 0; _i14 < node.childNodes.length; _i14++) {
19866 -1 if (node.childNodes[_i14].nodeType === 1) {
19867 -1 cacheIdRefs(node.childNodes[_i14], idRefs, refAttrs);
-1 21029 for (var _i19 = 0; _i19 < node.childNodes.length; _i19++) {
-1 21030 if (node.childNodes[_i19].nodeType === 1) {
-1 21031 cacheIdRefs(node.childNodes[_i19], idRefs, refAttrs);
19868 21032 }
19869 21033 }
19870 21034 }
@@ -19872,11 +21036,9 @@ module.exports = {
19872 21036 node = node.actualNode || node;
19873 21037 var root = get_root_node_default2(node);
19874 21038 root = root.documentElement || root;
19875 -1 var idRefsByRoot = cache_default.get('idRefsByRoot');
19876 -1 if (!idRefsByRoot) {
19877 -1 idRefsByRoot = new WeakMap();
19878 -1 cache_default.set('idRefsByRoot', idRefsByRoot);
19879 -1 }
-1 21039 var idRefsByRoot = cache_default.get('idRefsByRoot', function() {
-1 21040 return new WeakMap();
-1 21041 });
19880 21042 var idRefs = idRefsByRoot.get(root);
19881 21043 if (!idRefs) {
19882 21044 idRefs = {};
@@ -19890,14 +21052,6 @@ module.exports = {
19890 21052 return idRefs[node.id] || [];
19891 21053 }
19892 21054 var get_accessible_refs_default = getAccessibleRefs;
19893 -1 function getRoleType(role) {
19894 -1 var roleDef = standards_default.ariaRoles[role];
19895 -1 if (!roleDef) {
19896 -1 return null;
19897 -1 }
19898 -1 return roleDef.type;
19899 -1 }
19900 -1 var get_role_type_default = getRoleType;
19901 21055 function isAriaRoleAllowedOnElement(node, role) {
19902 21056 var vNode = node instanceof abstract_virtual_node_default ? node : get_node_from_tree_default(node);
19903 21057 var implicitRole3 = implicit_role_default(vNode);
@@ -19963,14 +21117,11 @@ module.exports = {
19963 21117 }
19964 21118 var get_roles_by_type_default = getRolesByType;
19965 21119 function getAriaRolesSupportingNameFromContent() {
19966 -1 if (cache_default.get('ariaRolesNameFromContent')) {
19967 -1 return cache_default.get('ariaRolesNameFromContent');
19968 -1 }
19969 -1 var contentRoles = Object.keys(standards_default.ariaRoles).filter(function(roleName) {
19970 -1 return standards_default.ariaRoles[roleName].nameFromContent;
-1 21120 return cache_default.get('ariaRolesNameFromContent', function() {
-1 21121 return Object.keys(standards_default.ariaRoles).filter(function(roleName) {
-1 21122 return standards_default.ariaRoles[roleName].nameFromContent;
-1 21123 });
19971 21124 });
19972 -1 cache_default.set('ariaRolesNameFromContent', contentRoles);
19973 -1 return contentRoles;
19974 21125 }
19975 21126 var get_aria_roles_supporting_name_from_content_default = getAriaRolesSupportingNameFromContent;
19976 21127 function getRolesWithNameFromContents() {
@@ -21724,8 +22875,8 @@ module.exports = {
21724 22875 nodeName: [ 'abbr', 'address', 'canvas', 'div', 'p', 'pre', 'blockquote', 'ins', 'del', 'output', 'span', 'table', 'tbody', 'thead', 'tfoot', 'td', 'em', 'strong', 'small', 's', 'cite', 'q', 'dfn', 'abbr', 'time', 'code', 'var', 'samp', 'kbd', 'sub', 'sup', 'i', 'b', 'u', 'mark', 'ruby', 'rt', 'rp', 'bdi', 'bdo', 'br', 'wbr', 'th', 'tr' ]
21725 22876 } ];
21726 22877 lookupTable.evaluateRoleForElement = {
21727 -1 A: function A(_ref45) {
21728 -1 var node = _ref45.node, out = _ref45.out;
-1 22878 A: function A(_ref62) {
-1 22879 var node = _ref62.node, out = _ref62.out;
21729 22880 if (node.namespaceURI === 'http://www.w3.org/2000/svg') {
21730 22881 return true;
21731 22882 }
@@ -21734,19 +22885,19 @@ module.exports = {
21734 22885 }
21735 22886 return true;
21736 22887 },
21737 -1 AREA: function AREA(_ref46) {
21738 -1 var node = _ref46.node;
-1 22888 AREA: function AREA(_ref63) {
-1 22889 var node = _ref63.node;
21739 22890 return !node.href;
21740 22891 },
21741 -1 BUTTON: function BUTTON(_ref47) {
21742 -1 var node = _ref47.node, role = _ref47.role, out = _ref47.out;
-1 22892 BUTTON: function BUTTON(_ref64) {
-1 22893 var node = _ref64.node, role = _ref64.role, out = _ref64.out;
21743 22894 if (node.getAttribute('type') === 'menu') {
21744 22895 return role === 'menuitem';
21745 22896 }
21746 22897 return out;
21747 22898 },
21748 -1 IMG: function IMG(_ref48) {
21749 -1 var node = _ref48.node, role = _ref48.role, out = _ref48.out;
-1 22899 IMG: function IMG(_ref65) {
-1 22900 var node = _ref65.node, role = _ref65.role, out = _ref65.out;
21750 22901 switch (node.alt) {
21751 22902 case null:
21752 22903 return out;
@@ -21758,8 +22909,8 @@ module.exports = {
21758 22909 return role !== 'presentation' && role !== 'none';
21759 22910 }
21760 22911 },
21761 -1 INPUT: function INPUT(_ref49) {
21762 -1 var node = _ref49.node, role = _ref49.role, out = _ref49.out;
-1 22912 INPUT: function INPUT(_ref66) {
-1 22913 var node = _ref66.node, role = _ref66.role, out = _ref66.out;
21763 22914 switch (node.type) {
21764 22915 case 'button':
21765 22916 case 'image':
@@ -21789,32 +22940,32 @@ module.exports = {
21789 22940 return false;
21790 22941 }
21791 22942 },
21792 -1 LI: function LI(_ref50) {
21793 -1 var node = _ref50.node, out = _ref50.out;
-1 22943 LI: function LI(_ref67) {
-1 22944 var node = _ref67.node, out = _ref67.out;
21794 22945 var hasImplicitListitemRole = axe.utils.matchesSelector(node, 'ol li, ul li');
21795 22946 if (hasImplicitListitemRole) {
21796 22947 return out;
21797 22948 }
21798 22949 return true;
21799 22950 },
21800 -1 MENU: function MENU(_ref51) {
21801 -1 var node = _ref51.node;
-1 22951 MENU: function MENU(_ref68) {
-1 22952 var node = _ref68.node;
21802 22953 if (node.getAttribute('type') === 'context') {
21803 22954 return false;
21804 22955 }
21805 22956 return true;
21806 22957 },
21807 -1 OPTION: function OPTION(_ref52) {
21808 -1 var node = _ref52.node;
-1 22958 OPTION: function OPTION(_ref69) {
-1 22959 var node = _ref69.node;
21809 22960 var withinOptionList = axe.utils.matchesSelector(node, 'select > option, datalist > option, optgroup > option');
21810 22961 return !withinOptionList;
21811 22962 },
21812 -1 SELECT: function SELECT(_ref53) {
21813 -1 var node = _ref53.node, role = _ref53.role;
-1 22963 SELECT: function SELECT(_ref70) {
-1 22964 var node = _ref70.node, role = _ref70.role;
21814 22965 return !node.multiple && node.size <= 1 && role === 'menu';
21815 22966 },
21816 -1 SVG: function SVG(_ref54) {
21817 -1 var node = _ref54.node, out = _ref54.out;
-1 22967 SVG: function SVG(_ref71) {
-1 22968 var node = _ref71.node, out = _ref71.out;
21818 22969 if (node.parentNode && node.parentNode.namespaceURI === 'http://www.w3.org/2000/svg') {
21819 22970 return true;
21820 22971 }
@@ -21838,11 +22989,11 @@ module.exports = {
21838 22989 return !!get_accessible_refs_default(node).length;
21839 22990 }
21840 22991 var is_accessible_ref_default = isAccessibleRef;
21841 -1 function label3(node) {
-1 22992 function label2(node) {
21842 22993 node = get_node_from_tree_default(node);
21843 22994 return label_virtual_default(node);
21844 22995 }
21845 -1 var label_default2 = label3;
-1 22996 var label_default2 = label2;
21846 22997 function requiredAttr(role) {
21847 22998 var roleDef = standards_default.ariaRoles[role];
21848 22999 if (!roleDef || !Array.isArray(roleDef.requiredAttrs)) {
@@ -21869,7 +23020,7 @@ module.exports = {
21869 23020 var required_owned_default = requiredOwned;
21870 23021 function validateAttrValue(vNode, attr) {
21871 23022 vNode = vNode instanceof abstract_virtual_node_default ? vNode : get_node_from_tree_default(vNode);
21872 -1 var matches14;
-1 23023 var matches4;
21873 23024 var list;
21874 23025 var value = vNode.attr(attr);
21875 23026 var attrInfo = standards_default.ariaAttrs[attr];
@@ -21909,8 +23060,8 @@ module.exports = {
21909 23060 return value.trim() !== '';
21910 23061
21911 23062 case 'decimal':
21912 -1 matches14 = value.match(/^[-+]?([0-9]*)\.?([0-9]*)$/);
21913 -1 return !!(matches14 && (matches14[1] || matches14[2]));
-1 23063 matches4 = value.match(/^[-+]?([0-9]*)\.?([0-9]*)$/);
-1 23064 return !!(matches4 && (matches4[1] || matches4[2]));
21914 23065
21915 23066 case 'int':
21916 23067 var minValue = typeof attrInfo.minValue !== 'undefined' ? attrInfo.minValue : -Infinity;
@@ -21942,18 +23093,16 @@ module.exports = {
21942 23093 if (Array.isArray(options[role])) {
21943 23094 allowed = unique_array_default(options[role].concat(allowed));
21944 23095 }
21945 -1 var tableMap = cache_default.get('aria-allowed-attr-table');
21946 -1 if (!tableMap) {
21947 -1 tableMap = new WeakMap();
21948 -1 cache_default.set('aria-allowed-attr-table', tableMap);
21949 -1 }
-1 23096 var tableMap = cache_default.get('aria-allowed-attr-table', function() {
-1 23097 return new WeakMap();
-1 23098 });
21950 23099 function validateRowAttrs() {
21951 23100 if (virtualNode.parent && role === 'row') {
21952 -1 var table5 = closest_default(virtualNode, 'table, [role="treegrid"], [role="table"], [role="grid"]');
21953 -1 var tableRole = tableMap.get(table5);
21954 -1 if (table5 && !tableRole) {
21955 -1 tableRole = get_role_default(table5);
21956 -1 tableMap.set(table5, tableRole);
-1 23101 var table = closest_default(virtualNode, 'table, [role="treegrid"], [role="table"], [role="grid"]');
-1 23102 var tableRole = tableMap.get(table);
-1 23103 if (table && !tableRole) {
-1 23104 tableRole = get_role_default(table);
-1 23105 tableMap.set(table, tableRole);
21957 23106 }
21958 23107 if ([ 'table', 'grid' ].includes(tableRole) && role === 'row') {
21959 23108 return true;
@@ -21966,9 +23115,9 @@ module.exports = {
21966 23115 preChecks[attr] = validateRowAttrs;
21967 23116 });
21968 23117 if (allowed) {
21969 -1 for (var _i15 = 0; _i15 < attrs.length; _i15++) {
-1 23118 for (var _i20 = 0; _i20 < attrs.length; _i20++) {
21970 23119 var _preChecks$attrName;
21971 -1 var attrName = attrs[_i15];
-1 23120 var attrName = attrs[_i20];
21972 23121 if (validate_attr_default(attrName) && (_preChecks$attrName = preChecks[attrName]) !== null && _preChecks$attrName !== void 0 && _preChecks$attrName.call(preChecks)) {
21973 23122 invalid.push(attrName + '="' + virtualNode.attr(attrName) + '"');
21974 23123 } else if (validate_attr_default(attrName) && !allowed.includes(attrName)) {
@@ -21978,14 +23127,13 @@ module.exports = {
21978 23127 }
21979 23128 if (invalid.length) {
21980 23129 this.data(invalid);
21981 -1 if (!is_html_element_default(virtualNode) && !role && !is_focusable_default(virtualNode)) {
-1 23130 if (!is_html_element_default(virtualNode) && !role && !_isFocusable(virtualNode)) {
21982 23131 return void 0;
21983 23132 }
21984 23133 return false;
21985 23134 }
21986 23135 return true;
21987 23136 }
21988 -1 var aria_allowed_attr_evaluate_default = ariaAllowedAttrEvaluate;
21989 23137 function ariaAllowedRoleEvaluate(node) {
21990 23138 var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
21991 23139 var virtualNode = arguments.length > 2 ? arguments[2] : undefined;
@@ -21999,7 +23147,7 @@ module.exports = {
21999 23147 var unallowedRoles = get_element_unallowed_roles_default(virtualNode, allowImplicit);
22000 23148 if (unallowedRoles.length) {
22001 23149 this.data(unallowedRoles);
22002 -1 if (!is_visible_default(virtualNode, true)) {
-1 23150 if (!_isVisibleToScreenReaders(virtualNode)) {
22003 23151 return void 0;
22004 23152 }
22005 23153 return false;
@@ -22007,6 +23155,9 @@ module.exports = {
22007 23155 return true;
22008 23156 }
22009 23157 var aria_allowed_role_evaluate_default = ariaAllowedRoleEvaluate;
-1 23158 function ariaBusyEvaluate(node, options, virtualNode) {
-1 23159 return virtualNode.attr('aria-busy') === 'true';
-1 23160 }
22010 23161 function ariaErrormessageEvaluate(node, options, virtualNode) {
22011 23162 options = Array.isArray(options) ? options : [];
22012 23163 var attr = virtualNode.attr('aria-errormessage');
@@ -22031,7 +23182,7 @@ module.exports = {
22031 23182 return void 0;
22032 23183 }
22033 23184 if (idref) {
22034 -1 if (!is_visible_default(idref, true)) {
-1 23185 if (!_isVisibleToScreenReaders(idref)) {
22035 23186 this.data({
22036 23187 messageKey: 'hidden',
22037 23188 values: token_list_default(attr2)
@@ -22130,64 +23281,82 @@ module.exports = {
22130 23281 function ariaRequiredAttrEvaluate(node) {
22131 23282 var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
22132 23283 var virtualNode = arguments.length > 2 ? arguments[2] : undefined;
22133 -1 var missing = [];
22134 -1 var attrs = virtualNode.attrNames;
22135 23284 var role = get_explicit_role_default(virtualNode);
22136 -1 if (attrs.length) {
22137 -1 var required = required_attr_default(role);
22138 -1 var elmSpec = get_element_spec_default(virtualNode);
22139 -1 if (Array.isArray(options[role])) {
22140 -1 required = unique_array_default(options[role], required);
22141 -1 }
22142 -1 if (role && required) {
22143 -1 for (var _i16 = 0, l = required.length; _i16 < l; _i16++) {
22144 -1 var attr = required[_i16];
22145 -1 if (!virtualNode.attr(attr) && !(elmSpec.implicitAttrs && typeof elmSpec.implicitAttrs[attr] !== 'undefined')) {
22146 -1 missing.push(attr);
22147 -1 }
22148 -1 }
22149 -1 }
-1 23285 var attrs = virtualNode.attrNames;
-1 23286 var requiredAttrs = required_attr_default(role);
-1 23287 if (Array.isArray(options[role])) {
-1 23288 requiredAttrs = unique_array_default(options[role], requiredAttrs);
22150 23289 }
22151 -1 var comboboxMissingControls = role === 'combobox' && missing.includes('aria-controls');
22152 -1 if (comboboxMissingControls && (virtualNode.hasAttr('aria-owns') || virtualNode.attr('aria-expanded') !== 'true')) {
22153 -1 missing.splice(missing.indexOf('aria-controls', 1));
-1 23290 if (!role || !attrs.length || !requiredAttrs.length) {
-1 23291 return true;
-1 23292 }
-1 23293 if (isStaticSeparator(virtualNode, role) || isClosedCombobox(virtualNode, role)) {
-1 23294 return true;
22154 23295 }
22155 -1 if (missing.length) {
22156 -1 this.data(missing);
-1 23296 var elmSpec = get_element_spec_default(virtualNode);
-1 23297 var missingAttrs = requiredAttrs.filter(function(requiredAttr2) {
-1 23298 return !virtualNode.attr(requiredAttr2) && !hasImplicitAttr(elmSpec, requiredAttr2);
-1 23299 });
-1 23300 if (missingAttrs.length) {
-1 23301 this.data(missingAttrs);
22157 23302 return false;
22158 23303 }
22159 23304 return true;
22160 23305 }
22161 -1 var aria_required_attr_evaluate_default = ariaRequiredAttrEvaluate;
-1 23306 function isStaticSeparator(vNode, role) {
-1 23307 return role === 'separator' && !_isFocusable(vNode);
-1 23308 }
-1 23309 function hasImplicitAttr(elmSpec, attr) {
-1 23310 var _elmSpec$implicitAttr;
-1 23311 return ((_elmSpec$implicitAttr = elmSpec.implicitAttrs) === null || _elmSpec$implicitAttr === void 0 ? void 0 : _elmSpec$implicitAttr[attr]) !== void 0;
-1 23312 }
-1 23313 function isClosedCombobox(vNode, role) {
-1 23314 return role === 'combobox' && vNode.attr('aria-expanded') === 'false';
-1 23315 }
22162 23316 function getOwnedRoles(virtualNode, required) {
22163 23317 var ownedRoles = [];
22164 23318 var ownedElements = get_owned_virtual_default(virtualNode);
22165 -1 var _loop4 = function _loop4(_i17) {
22166 -1 var ownedElement = ownedElements[_i17];
-1 23319 var _loop5 = function _loop5(_i21) {
-1 23320 var ownedElement = ownedElements[_i21];
22167 23321 var role = get_role_default(ownedElement, {
22168 23322 noPresentational: true
22169 23323 });
22170 -1 if (!role || [ 'group', 'rowgroup' ].includes(role) && required.some(function(requiredRole) {
-1 23324 var hasGlobalAria = get_global_aria_attrs_default().some(function(attr) {
-1 23325 return ownedElement.hasAttr(attr);
-1 23326 });
-1 23327 var hasGlobalAriaOrFocusable = hasGlobalAria || _isFocusable(ownedElement);
-1 23328 if (!role && !hasGlobalAriaOrFocusable || [ 'group', 'rowgroup' ].includes(role) && required.some(function(requiredRole) {
22171 23329 return requiredRole === role;
22172 23330 })) {
22173 23331 ownedElements.push.apply(ownedElements, _toConsumableArray(ownedElement.children));
22174 -1 } else if (role) {
22175 -1 ownedRoles.push(role);
-1 23332 } else if (role || hasGlobalAriaOrFocusable) {
-1 23333 ownedRoles.push({
-1 23334 role: role,
-1 23335 ownedElement: ownedElement
-1 23336 });
22176 23337 }
22177 23338 };
22178 -1 for (var _i17 = 0; _i17 < ownedElements.length; _i17++) {
22179 -1 _loop4(_i17);
-1 23339 for (var _i21 = 0; _i21 < ownedElements.length; _i21++) {
-1 23340 _loop5(_i21);
22180 23341 }
22181 23342 return ownedRoles;
22182 23343 }
22183 23344 function missingRequiredChildren(virtualNode, role, required, ownedRoles) {
22184 -1 for (var _i18 = 0; _i18 < ownedRoles.length; _i18++) {
22185 -1 var ownedRole = ownedRoles[_i18];
22186 -1 if (required.includes(ownedRole)) {
-1 23345 var _loop6 = function _loop6(_i22) {
-1 23346 var role2 = ownedRoles[_i22].role;
-1 23347 if (required.includes(role2)) {
22187 23348 required = required.filter(function(requiredRole) {
22188 -1 return requiredRole !== ownedRole;
-1 23349 return requiredRole !== role2;
22189 23350 });
22190 -1 return null;
-1 23351 return {
-1 23352 v: null
-1 23353 };
-1 23354 }
-1 23355 };
-1 23356 for (var _i22 = 0; _i22 < ownedRoles.length; _i22++) {
-1 23357 var _ret2 = _loop6(_i22);
-1 23358 if (_typeof(_ret2) === 'object') {
-1 23359 return _ret2.v;
22191 23360 }
22192 23361 }
22193 23362 if (required.length) {
@@ -22205,6 +23374,20 @@ module.exports = {
22205 23374 return true;
22206 23375 }
22207 23376 var ownedRoles = getOwnedRoles(virtualNode, required);
-1 23377 var unallowed = ownedRoles.filter(function(_ref72) {
-1 23378 var role2 = _ref72.role;
-1 23379 return !required.includes(role2);
-1 23380 });
-1 23381 if (unallowed.length) {
-1 23382 this.relatedNodes(unallowed.map(function(_ref73) {
-1 23383 var ownedElement = _ref73.ownedElement;
-1 23384 return ownedElement;
-1 23385 }));
-1 23386 this.data({
-1 23387 messageKey: 'unallowed'
-1 23388 });
-1 23389 return false;
-1 23390 }
22208 23391 var missing = missingRequiredChildren(virtualNode, role, required, ownedRoles);
22209 23392 if (!missing) {
22210 23393 return true;
@@ -22224,10 +23407,15 @@ module.exports = {
22224 23407 if (!reqContext) {
22225 23408 return null;
22226 23409 }
-1 23410 var allowsGroup = reqContext.includes('group');
22227 23411 var vNode = includeElement ? virtualNode : virtualNode.parent;
22228 23412 while (vNode) {
22229 -1 var parentRole = get_role_default(vNode);
22230 -1 if (reqContext.includes('group') && parentRole === 'group') {
-1 23413 var role = get_role_default(vNode, {
-1 23414 noPresentational: true
-1 23415 });
-1 23416 if (!role) {
-1 23417 vNode = vNode.parent;
-1 23418 } else if (role === 'group' && allowsGroup) {
22231 23419 if (ownGroupRoles.includes(explicitRole2)) {
22232 23420 reqContext.push(explicitRole2);
22233 23421 }
@@ -22235,14 +23423,11 @@ module.exports = {
22235 23423 return r !== 'group';
22236 23424 });
22237 23425 vNode = vNode.parent;
22238 -1 continue;
22239 -1 }
22240 -1 if (reqContext.includes(parentRole)) {
-1 23426 } else if (reqContext.includes(role)) {
22241 23427 return null;
22242 -1 } else if (parentRole && ![ 'presentation', 'none' ].includes(parentRole)) {
-1 23428 } else {
22243 23429 return reqContext;
22244 23430 }
22245 -1 vNode = vNode.parent;
22246 23431 }
22247 23432 return reqContext;
22248 23433 }
@@ -22269,8 +23454,8 @@ module.exports = {
22269 23454 }
22270 23455 var owners = getAriaOwners(node);
22271 23456 if (owners) {
22272 -1 for (var _i19 = 0, l = owners.length; _i19 < l; _i19++) {
22273 -1 missingParents = getMissingContext(get_node_from_tree_default(owners[_i19]), ownGroupRoles, missingParents, true);
-1 23457 for (var _i23 = 0, l = owners.length; _i23 < l; _i23++) {
-1 23458 missingParents = getMissingContext(get_node_from_tree_default(owners[_i23]), ownGroupRoles, missingParents, true);
22274 23459 if (!missingParents) {
22275 23460 return true;
22276 23461 }
@@ -22282,7 +23467,8 @@ module.exports = {
22282 23467 var aria_required_parent_evaluate_default = ariaRequiredParentEvaluate;
22283 23468 function ariaRoledescriptionEvaluate(node) {
22284 23469 var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
22285 -1 var role = get_role_default(node);
-1 23470 var virtualNode = arguments.length > 2 ? arguments[2] : undefined;
-1 23471 var role = get_role_default(virtualNode);
22286 23472 var supportedRoles = options.supportedRoles || [];
22287 23473 if (supportedRoles.includes(role)) {
22288 23474 return true;
@@ -22299,11 +23485,11 @@ module.exports = {
22299 23485 if (!validate_attr_default(name)) {
22300 23486 return false;
22301 23487 }
22302 -1 var unsupported4 = attribute.unsupported;
22303 -1 if (_typeof(unsupported4) !== 'object') {
22304 -1 return !!unsupported4;
-1 23488 var unsupported2 = attribute.unsupported;
-1 23489 if (_typeof(unsupported2) !== 'object') {
-1 23490 return !!unsupported2;
22305 23491 }
22306 -1 return !matches_default3(node, unsupported4.exceptions);
-1 23492 return !matches_default3(node, unsupported2.exceptions);
22307 23493 });
22308 23494 if (unsupportedAttrs.length) {
22309 23495 this.data(unsupportedAttrs);
@@ -22315,9 +23501,9 @@ module.exports = {
22315 23501 function ariaValidAttrEvaluate(node, options, virtualNode) {
22316 23502 options = Array.isArray(options.value) ? options.value : [];
22317 23503 var invalid = [];
22318 -1 var aria49 = /^aria-/;
-1 23504 var aria = /^aria-/;
22319 23505 virtualNode.attrNames.forEach(function(attr) {
22320 -1 if (options.indexOf(attr) === -1 && aria49.test(attr) && !validate_attr_default(attr)) {
-1 23506 if (options.indexOf(attr) === -1 && aria.test(attr) && !validate_attr_default(attr)) {
22321 23507 invalid.push(attr);
22322 23508 }
22323 23509 });
@@ -22333,7 +23519,7 @@ module.exports = {
22333 23519 var needsReview = '';
22334 23520 var messageKey = '';
22335 23521 var invalid = [];
22336 -1 var aria49 = /^aria-/;
-1 23522 var aria = /^aria-/;
22337 23523 var skipAttrs = [ 'aria-errormessage' ];
22338 23524 var preChecks = {
22339 23525 'aria-controls': function ariaControls() {
@@ -22364,7 +23550,7 @@ module.exports = {
22364 23550 }
22365 23551 };
22366 23552 virtualNode.attrNames.forEach(function(attrName) {
22367 -1 if (skipAttrs.includes(attrName) || options.includes(attrName) || !aria49.test(attrName)) {
-1 23553 if (skipAttrs.includes(attrName) || options.includes(attrName) || !aria.test(attrName)) {
22368 23554 return;
22369 23555 }
22370 23556 var validValue;
@@ -22374,11 +23560,21 @@ module.exports = {
22374 23560 } catch (e) {
22375 23561 needsReview = ''.concat(attrName, '="').concat(attrValue, '"');
22376 23562 messageKey = 'idrefs';
-1 23563 return;
22377 23564 }
22378 23565 if ((preChecks[attrName] ? preChecks[attrName](validValue) : true) && !validValue) {
22379 -1 invalid.push(''.concat(attrName, '="').concat(attrValue, '"'));
-1 23566 if (attrValue === '' && !isStringType(attrName)) {
-1 23567 needsReview = attrName;
-1 23568 messageKey = 'empty';
-1 23569 } else {
-1 23570 invalid.push(''.concat(attrName, '="').concat(attrValue, '"'));
-1 23571 }
22380 23572 }
22381 23573 });
-1 23574 if (invalid.length) {
-1 23575 this.data(invalid);
-1 23576 return false;
-1 23577 }
22382 23578 if (needsReview) {
22383 23579 this.data({
22384 23580 messageKey: messageKey,
@@ -22386,13 +23582,12 @@ module.exports = {
22386 23582 });
22387 23583 return void 0;
22388 23584 }
22389 -1 if (invalid.length) {
22390 -1 this.data(invalid);
22391 -1 return false;
22392 -1 }
22393 23585 return true;
22394 23586 }
22395 -1 var aria_valid_attr_value_evaluate_default = ariaValidAttrValueEvaluate;
-1 23587 function isStringType(attrName) {
-1 23588 var _standards_default$ar;
-1 23589 return ((_standards_default$ar = standards_default.ariaAttrs[attrName]) === null || _standards_default$ar === void 0 ? void 0 : _standards_default$ar.type) === 'string';
-1 23590 }
22396 23591 function deprecatedroleEvaluate(node, options, virtualNode) {
22397 23592 var role = get_role_default(virtualNode, {
22398 23593 dpub: true,
@@ -22449,7 +23644,7 @@ module.exports = {
22449 23644 }
22450 23645 var invalidrole_evaluate_default = invalidroleEvaluate;
22451 23646 function isElementFocusableEvaluate(node, options, virtualNode) {
22452 -1 return is_focusable_default(virtualNode);
-1 23647 return _isFocusable(virtualNode);
22453 23648 }
22454 23649 var is_element_focusable_evaluate_default = isElementFocusableEvaluate;
22455 23650 function noImplicitExplicitLabelEvaluate(node, options, virtualNode) {
@@ -22457,28 +23652,36 @@ module.exports = {
22457 23652 noImplicit: true
22458 23653 });
22459 23654 this.data(role);
22460 -1 var label5;
-1 23655 var label3;
22461 23656 var accText;
22462 23657 try {
22463 -1 label5 = sanitize_default(label_text_default(virtualNode)).toLowerCase();
-1 23658 label3 = sanitize_default(label_text_default(virtualNode)).toLowerCase();
22464 23659 accText = sanitize_default(accessible_text_virtual_default(virtualNode)).toLowerCase();
22465 23660 } catch (e) {
22466 23661 return void 0;
22467 23662 }
22468 -1 if (!accText && !label5) {
-1 23663 if (!accText && !label3) {
22469 23664 return false;
22470 23665 }
22471 -1 if (!accText && label5) {
-1 23666 if (!accText && label3) {
22472 23667 return void 0;
22473 23668 }
22474 -1 if (!accText.includes(label5)) {
-1 23669 if (!accText.includes(label3)) {
22475 23670 return void 0;
22476 23671 }
22477 23672 return false;
22478 23673 }
22479 23674 var no_implicit_explicit_label_evaluate_default = noImplicitExplicitLabelEvaluate;
22480 23675 function unsupportedroleEvaluate(node, options, virtualNode) {
22481 -1 return is_unsupported_role_default(get_role_default(virtualNode));
-1 23676 var role = get_role_default(virtualNode, {
-1 23677 dpub: true,
-1 23678 fallback: true
-1 23679 });
-1 23680 var isUnsupported = is_unsupported_role_default(role);
-1 23681 if (isUnsupported) {
-1 23682 this.data(role);
-1 23683 }
-1 23684 return isUnsupported;
22482 23685 }
22483 23686 var unsupportedrole_evaluate_default = unsupportedroleEvaluate;
22484 23687 var VALID_TAG_NAMES_FOR_SCROLLABLE_REGIONS = {
@@ -22534,19 +23737,19 @@ module.exports = {
22534 23737 return flatten_colors_default;
22535 23738 },
22536 23739 flattenShadowColors: function flattenShadowColors() {
22537 -1 return flatten_shadow_colors_default;
-1 23740 return _flattenShadowColors;
22538 23741 },
22539 23742 getBackgroundColor: function getBackgroundColor() {
22540 -1 return _getBackgroundColor;
-1 23743 return _getBackgroundColor2;
22541 23744 },
22542 23745 getBackgroundStack: function getBackgroundStack() {
22543 -1 return get_background_stack_default;
-1 23746 return _getBackgroundStack;
22544 23747 },
22545 23748 getContrast: function getContrast() {
22546 23749 return get_contrast_default;
22547 23750 },
22548 23751 getForegroundColor: function getForegroundColor() {
22549 -1 return get_foreground_color_default;
-1 23752 return _getForegroundColor;
22550 23753 },
22551 23754 getOwnBackgroundColor: function getOwnBackgroundColor() {
22552 23755 return get_own_background_color_default;
@@ -22708,13 +23911,16 @@ module.exports = {
22708 23911 var g = simpleAlphaCompositing(fgColor.green, fgColor.alpha, bgColor.green, bgColor.alpha, blendMode);
22709 23912 var b = simpleAlphaCompositing(fgColor.blue, fgColor.alpha, bgColor.blue, bgColor.alpha, blendMode);
22710 23913 var \u03b1o = clamp(fgColor.alpha + bgColor.alpha * (1 - fgColor.alpha), 0, 1);
-1 23914 if (\u03b1o === 0) {
-1 23915 return new color_default(r, g, b, \u03b1o);
-1 23916 }
22711 23917 var Cr = Math.round(r / \u03b1o);
22712 23918 var Cg = Math.round(g / \u03b1o);
22713 23919 var Cb = Math.round(b / \u03b1o);
22714 23920 return new color_default(Cr, Cg, Cb, \u03b1o);
22715 23921 }
22716 23922 var flatten_colors_default = flattenColors;
22717 -1 function flattenColors2(fgColor, bgColor) {
-1 23923 function _flattenShadowColors(fgColor, bgColor) {
22718 23924 var alpha = fgColor.alpha;
22719 23925 var r = (1 - alpha) * bgColor.red + alpha * fgColor.red;
22720 23926 var g = (1 - alpha) * bgColor.green + alpha * fgColor.green;
@@ -22722,28 +23928,24 @@ module.exports = {
22722 23928 var a = fgColor.alpha + bgColor.alpha * (1 - fgColor.alpha);
22723 23929 return new color_default(r, g, b, a);
22724 23930 }
22725 -1 var flatten_shadow_colors_default = flattenColors2;
22726 -1 function isInlineDescendant(node, descendant) {
22727 -1 var CONTAINED_BY = Node.DOCUMENT_POSITION_CONTAINED_BY;
22728 -1 if (!(node.compareDocumentPosition(descendant) & CONTAINED_BY)) {
22729 -1 return false;
22730 -1 }
22731 -1 var style = window.getComputedStyle(descendant);
22732 -1 var display = style.getPropertyValue('display');
22733 -1 if (!display.includes('inline')) {
22734 -1 return false;
22735 -1 }
22736 -1 var position = style.getPropertyValue('position');
22737 -1 return position === 'static';
22738 -1 }
22739 -1 function calculateObscuringElement(elmIndex, elmStack, originalElm) {
22740 -1 for (var _i20 = elmIndex - 1; _i20 >= 0; _i20--) {
22741 -1 if (!isInlineDescendant(originalElm, elmStack[_i20])) {
22742 -1 return true;
-1 23931 function _getBackgroundStack(node) {
-1 23932 var stacks = get_text_element_stack_default(node).map(function(stack) {
-1 23933 stack = reduce_to_elements_below_floating_default(stack, node);
-1 23934 stack = sortPageBackground(stack);
-1 23935 return stack;
-1 23936 });
-1 23937 for (var index = 0; index < stacks.length; index++) {
-1 23938 var stack = stacks[index];
-1 23939 if (stack[0] !== node) {
-1 23940 incomplete_data_default.set('bgColor', 'bgOverlap');
-1 23941 return null;
-1 23942 }
-1 23943 if (index !== 0 && !shallowArraysEqual(stack, stacks[0])) {
-1 23944 incomplete_data_default.set('bgColor', 'elmPartiallyObscuring');
-1 23945 return null;
22743 23946 }
22744 -1 elmStack.splice(_i20, 1);
22745 23947 }
22746 -1 return false;
-1 23948 return stacks[0] || null;
22747 23949 }
22748 23950 function sortPageBackground(elmStack) {
22749 23951 var bodyIndex = elmStack.indexOf(document.body);
@@ -22762,23 +23964,25 @@ module.exports = {
22762 23964 }
22763 23965 return bgNodes;
22764 23966 }
22765 -1 function getBackgroundStack(elm) {
22766 -1 var elmStack = filtered_rect_stack_default(elm);
22767 -1 if (elmStack === null) {
22768 -1 return null;
-1 23967 function shallowArraysEqual(a, b) {
-1 23968 if (a === b) {
-1 23969 return true;
22769 23970 }
22770 -1 elmStack = reduce_to_elements_below_floating_default(elmStack, elm);
22771 -1 elmStack = sortPageBackground(elmStack);
22772 -1 var elmIndex = elmStack.indexOf(elm);
22773 -1 if (calculateObscuringElement(elmIndex, elmStack, elm)) {
22774 -1 incomplete_data_default.set('bgColor', 'bgOverlap');
22775 -1 return null;
-1 23971 if (a === null || b === null) {
-1 23972 return false;
-1 23973 }
-1 23974 if (a.length !== b.length) {
-1 23975 return false;
22776 23976 }
22777 -1 return elmIndex !== -1 ? elmStack : null;
-1 23977 for (var i = 0; i < a.length; ++i) {
-1 23978 if (a[i] !== b[i]) {
-1 23979 return false;
-1 23980 }
-1 23981 }
-1 23982 return true;
22778 23983 }
22779 -1 var get_background_stack_default = getBackgroundStack;
22780 23984 function getTextShadowColors(node) {
22781 -1 var _ref55 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, minRatio = _ref55.minRatio, maxRatio = _ref55.maxRatio;
-1 23985 var _ref74 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, minRatio = _ref74.minRatio, maxRatio = _ref74.maxRatio;
22782 23986 var style = window.getComputedStyle(node);
22783 23987 var textShadow = style.getPropertyValue('text-shadow');
22784 23988 if (textShadow === 'none') {
@@ -22789,19 +23993,19 @@ module.exports = {
22789 23993 assert_default(isNaN(fontSize) === false, 'Unable to determine font-size value '.concat(fontSizeStr));
22790 23994 var shadowColors = [];
22791 23995 var shadows = parseTextShadows(textShadow);
22792 -1 shadows.forEach(function(_ref56) {
22793 -1 var colorStr = _ref56.colorStr, pixels = _ref56.pixels;
-1 23996 shadows.forEach(function(_ref75) {
-1 23997 var colorStr = _ref75.colorStr, pixels = _ref75.pixels;
22794 23998 colorStr = colorStr || style.getPropertyValue('color');
22795 23999 var _pixels = _slicedToArray(pixels, 3), offsetY = _pixels[0], offsetX = _pixels[1], _pixels$ = _pixels[2], blurRadius = _pixels$ === void 0 ? 0 : _pixels$;
22796 24000 if ((!minRatio || blurRadius >= fontSize * minRatio) && (!maxRatio || blurRadius < fontSize * maxRatio)) {
22797 -1 var color11 = textShadowColor({
-1 24001 var color = textShadowColor({
22798 24002 colorStr: colorStr,
22799 24003 offsetY: offsetY,
22800 24004 offsetX: offsetX,
22801 24005 blurRadius: blurRadius,
22802 24006 fontSize: fontSize
22803 24007 });
22804 -1 shadowColors.push(color11);
-1 24008 shadowColors.push(color);
22805 24009 }
22806 24010 });
22807 24011 return shadowColors;
@@ -22840,8 +24044,8 @@ module.exports = {
22840 24044 }
22841 24045 return shadows;
22842 24046 }
22843 -1 function textShadowColor(_ref57) {
22844 -1 var colorStr = _ref57.colorStr, offsetX = _ref57.offsetX, offsetY = _ref57.offsetY, blurRadius = _ref57.blurRadius, fontSize = _ref57.fontSize;
-1 24047 function textShadowColor(_ref76) {
-1 24048 var colorStr = _ref76.colorStr, offsetX = _ref76.offsetX, offsetY = _ref76.offsetY, blurRadius = _ref76.blurRadius, fontSize = _ref76.fontSize;
22845 24049 if (offsetX > blurRadius || offsetY > blurRadius) {
22846 24050 return new color_default(0, 0, 0, 0);
22847 24051 }
@@ -22858,38 +24062,60 @@ module.exports = {
22858 24062 return .185 / (relativeBlur + .4);
22859 24063 }
22860 24064 var get_text_shadow_colors_default = getTextShadowColors;
22861 -1 function _getBackgroundColor(elm) {
22862 -1 var _bgColors;
-1 24065 function _getBackgroundColor2(elm) {
22863 24066 var bgElms = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
22864 24067 var shadowOutlineEmMax = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : .1;
-1 24068 var vNode = get_node_from_tree_default(elm);
-1 24069 var bgColorCache = vNode._cache.getBackgroundColor;
-1 24070 if (bgColorCache) {
-1 24071 bgElms.push.apply(bgElms, _toConsumableArray(bgColorCache.bgElms));
-1 24072 incomplete_data_default.set('bgColor', bgColorCache.incompleteData);
-1 24073 return bgColorCache.bgColor;
-1 24074 }
-1 24075 var bgColor = _getBackgroundColor(elm, bgElms, shadowOutlineEmMax);
-1 24076 vNode._cache.getBackgroundColor = {
-1 24077 bgColor: bgColor,
-1 24078 bgElms: bgElms,
-1 24079 incompleteData: incomplete_data_default.get('bgColor')
-1 24080 };
-1 24081 return bgColor;
-1 24082 }
-1 24083 function _getBackgroundColor(elm, bgElms, shadowOutlineEmMax) {
-1 24084 var _bgColors;
22865 24085 var bgColors = get_text_shadow_colors_default(elm, {
22866 24086 minRatio: shadowOutlineEmMax
22867 24087 });
22868 24088 if (bgColors.length) {
22869 24089 bgColors = [ {
22870 -1 color: bgColors.reduce(flatten_shadow_colors_default)
-1 24090 color: bgColors.reduce(_flattenShadowColors)
22871 24091 } ];
22872 24092 }
22873 -1 var elmStack = get_background_stack_default(elm);
-1 24093 var elmStack = _getBackgroundStack(elm);
-1 24094 var textRects = get_visible_child_text_rects_default(elm);
22874 24095 (elmStack || []).some(function(bgElm) {
22875 24096 var bgElmStyle = window.getComputedStyle(bgElm);
22876 -1 var bgColor = get_own_background_color_default(bgElmStyle);
22877 -1 if (elmPartiallyObscured(elm, bgElm, bgColor) || element_has_image_default(bgElm, bgElmStyle)) {
-1 24097 if (element_has_image_default(bgElm, bgElmStyle)) {
22878 24098 bgColors = null;
22879 24099 bgElms.push(bgElm);
22880 24100 return true;
22881 24101 }
22882 -1 if (bgColor.alpha !== 0) {
22883 -1 bgElms.push(bgElm);
22884 -1 var blendMode = bgElmStyle.getPropertyValue('mix-blend-mode');
22885 -1 bgColors.unshift({
22886 -1 color: bgColor,
22887 -1 blendMode: normalizeBlendMode(blendMode)
22888 -1 });
22889 -1 return bgColor.alpha === 1;
22890 -1 } else {
-1 24102 var bgColor = get_own_background_color_default(bgElmStyle);
-1 24103 if (bgColor.alpha === 0) {
22891 24104 return false;
22892 24105 }
-1 24106 if (bgElmStyle.getPropertyValue('display') !== 'inline' && !fullyEncompasses(bgElm, textRects)) {
-1 24107 bgColors = null;
-1 24108 bgElms.push(bgElm);
-1 24109 incomplete_data_default.set('bgColor', 'elmPartiallyObscured');
-1 24110 return true;
-1 24111 }
-1 24112 bgElms.push(bgElm);
-1 24113 var blendMode = bgElmStyle.getPropertyValue('mix-blend-mode');
-1 24114 bgColors.unshift({
-1 24115 color: bgColor,
-1 24116 blendMode: normalizeBlendMode(blendMode)
-1 24117 });
-1 24118 return bgColor.alpha === 1;
22893 24119 });
22894 24120 if (bgColors === null || elmStack === null) {
22895 24121 return null;
@@ -22904,12 +24130,19 @@ module.exports = {
22904 24130 });
22905 24131 return flatten_colors_default(blendedColor.color instanceof color_default ? blendedColor.color : blendedColor, new color_default(255, 255, 255, 1));
22906 24132 }
22907 -1 function elmPartiallyObscured(elm, bgElm, bgColor) {
22908 -1 var obscured = elm !== bgElm && !_visuallyContains(elm, bgElm) && bgColor.alpha !== 0;
22909 -1 if (obscured) {
22910 -1 incomplete_data_default.set('bgColor', 'elmPartiallyObscured');
-1 24133 function fullyEncompasses(node, rects) {
-1 24134 rects = Array.isArray(rects) ? rects : [ rects ];
-1 24135 var nodeRect = node.getBoundingClientRect();
-1 24136 var right = nodeRect.right, bottom = nodeRect.bottom;
-1 24137 var style = window.getComputedStyle(node);
-1 24138 var overflow = style.getPropertyValue('overflow');
-1 24139 if ([ 'scroll', 'auto' ].includes(overflow) || node instanceof window.HTMLHtmlElement) {
-1 24140 right = nodeRect.left + node.scrollWidth;
-1 24141 bottom = nodeRect.top + node.scrollHeight;
22911 24142 }
22912 -1 return obscured;
-1 24143 return rects.every(function(rect) {
-1 24144 return rect.top >= nodeRect.top && rect.bottom <= bottom && rect.left >= nodeRect.left && rect.right <= right;
-1 24145 });
22913 24146 }
22914 24147 function normalizeBlendMode(blendmode) {
22915 24148 return !!blendmode ? blendmode : void 0;
@@ -22923,7 +24156,7 @@ module.exports = {
22923 24156 var bodyStyle = window.getComputedStyle(body);
22924 24157 var htmlBgColor = get_own_background_color_default(htmlStyle);
22925 24158 var bodyBgColor = get_own_background_color_default(bodyStyle);
22926 -1 var bodyBgColorApplies = bodyBgColor.alpha !== 0 && _visuallyContains(elm, body);
-1 24159 var bodyBgColorApplies = bodyBgColor.alpha !== 0 && fullyEncompasses(body, elm.getBoundingClientRect());
22927 24160 if (bodyBgColor.alpha !== 0 && htmlBgColor.alpha === 0 || bodyBgColorApplies && bodyBgColor.alpha !== 1) {
22928 24161 pageColors.unshift({
22929 24162 color: bodyBgColor,
@@ -22951,7 +24184,60 @@ module.exports = {
22951 24184 return (Math.max(fL, bL) + .05) / (Math.min(fL, bL) + .05);
22952 24185 }
22953 24186 var get_contrast_default = getContrast;
22954 -1 function getOpacity(node) {
-1 24187 function _getForegroundColor(node, _, bgColor) {
-1 24188 var _bgColor;
-1 24189 var options = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
-1 24190 var nodeStyle = window.getComputedStyle(node);
-1 24191 var opacity = getOpacity(node, nodeStyle);
-1 24192 var strokeColor = getStrokeColor(nodeStyle, options);
-1 24193 if (strokeColor && strokeColor.alpha * opacity === 1) {
-1 24194 strokeColor.alpha = 1;
-1 24195 return strokeColor;
-1 24196 }
-1 24197 var textColor = getTextColor(nodeStyle);
-1 24198 var fgColor = strokeColor ? flatten_colors_default(strokeColor, textColor) : textColor;
-1 24199 if (fgColor.alpha * opacity === 1) {
-1 24200 fgColor.alpha = 1;
-1 24201 return fgColor;
-1 24202 }
-1 24203 var textShadowColors = get_text_shadow_colors_default(node, {
-1 24204 minRatio: 0
-1 24205 });
-1 24206 fgColor = textShadowColors.reduce(function(colorA, colorB) {
-1 24207 return flatten_colors_default(colorA, colorB);
-1 24208 }, fgColor);
-1 24209 if (fgColor.alpha * opacity === 1) {
-1 24210 fgColor.alpha = 1;
-1 24211 return fgColor;
-1 24212 }
-1 24213 (_bgColor = bgColor) !== null && _bgColor !== void 0 ? _bgColor : bgColor = _getBackgroundColor2(node, []);
-1 24214 if (bgColor === null) {
-1 24215 var reason = incomplete_data_default.get('bgColor');
-1 24216 incomplete_data_default.set('fgColor', reason);
-1 24217 return null;
-1 24218 }
-1 24219 fgColor.alpha = fgColor.alpha * opacity;
-1 24220 return flatten_colors_default(fgColor, bgColor);
-1 24221 }
-1 24222 function getTextColor(nodeStyle) {
-1 24223 return new color_default().parseString(nodeStyle.getPropertyValue('-webkit-text-fill-color') || nodeStyle.getPropertyValue('color'));
-1 24224 }
-1 24225 function getStrokeColor(nodeStyle, _ref77) {
-1 24226 var _ref77$textStrokeEmMi = _ref77.textStrokeEmMin, textStrokeEmMin = _ref77$textStrokeEmMi === void 0 ? 0 : _ref77$textStrokeEmMi;
-1 24227 var strokeWidth = parseFloat(nodeStyle.getPropertyValue('-webkit-text-stroke-width'));
-1 24228 if (strokeWidth === 0) {
-1 24229 return null;
-1 24230 }
-1 24231 var fontSize = nodeStyle.getPropertyValue('font-size');
-1 24232 var relativeStrokeWidth = strokeWidth / parseFloat(fontSize);
-1 24233 if (isNaN(relativeStrokeWidth) || relativeStrokeWidth < textStrokeEmMin) {
-1 24234 return null;
-1 24235 }
-1 24236 var strokeColor = nodeStyle.getPropertyValue('-webkit-text-stroke-color');
-1 24237 return new color_default().parseString(strokeColor);
-1 24238 }
-1 24239 function getOpacity(node, nodeStyle) {
-1 24240 var _nodeStyle;
22955 24241 if (!node) {
22956 24242 return 1;
22957 24243 }
@@ -22959,7 +24245,7 @@ module.exports = {
22959 24245 if (vNode && vNode._opacity !== void 0 && vNode._opacity !== null) {
22960 24246 return vNode._opacity;
22961 24247 }
22962 -1 var nodeStyle = window.getComputedStyle(node);
-1 24248 (_nodeStyle = nodeStyle) !== null && _nodeStyle !== void 0 ? _nodeStyle : nodeStyle = window.getComputedStyle(node);
22963 24249 var opacity = nodeStyle.getPropertyValue('opacity');
22964 24250 var finalOpacity = opacity * getOpacity(node.parentElement);
22965 24251 if (vNode) {
@@ -22967,32 +24253,6 @@ module.exports = {
22967 24253 }
22968 24254 return finalOpacity;
22969 24255 }
22970 -1 function getForegroundColor(node, _, bgColor) {
22971 -1 var nodeStyle = window.getComputedStyle(node);
22972 -1 var fgColor = new color_default();
22973 -1 fgColor.parseString(nodeStyle.getPropertyValue('color'));
22974 -1 var opacity = getOpacity(node);
22975 -1 fgColor.alpha = fgColor.alpha * opacity;
22976 -1 if (fgColor.alpha === 1) {
22977 -1 return fgColor;
22978 -1 }
22979 -1 if (!bgColor) {
22980 -1 bgColor = _getBackgroundColor(node, []);
22981 -1 }
22982 -1 if (bgColor === null) {
22983 -1 var reason = incomplete_data_default.get('bgColor');
22984 -1 incomplete_data_default.set('fgColor', reason);
22985 -1 return null;
22986 -1 }
22987 -1 if (fgColor.alpha < 1) {
22988 -1 var textShadowColors = get_text_shadow_colors_default(node, {
22989 -1 minRatio: 0
22990 -1 });
22991 -1 return [ fgColor ].concat(_toConsumableArray(textShadowColors), [ bgColor ]).reduce(flatten_shadow_colors_default);
22992 -1 }
22993 -1 return flatten_colors_default(fgColor, bgColor);
22994 -1 }
22995 -1 var get_foreground_color_default = getForegroundColor;
22996 24256 function hasValidContrastRatio(bg, fg, fontSize, isBold) {
22997 24257 var contrast = get_contrast_default(bg, fg);
22998 24258 var isSmallFont = isBold && Math.ceil(fontSize * 72) / 96 < 14 || !isBold && Math.ceil(fontSize * 72) / 96 < 18;
@@ -23006,7 +24266,7 @@ module.exports = {
23006 24266 var has_valid_contrast_ratio_default = hasValidContrastRatio;
23007 24267 function colorContrastEvaluate(node, options, virtualNode) {
23008 24268 var ignoreUnicode = options.ignoreUnicode, ignoreLength = options.ignoreLength, ignorePseudo = options.ignorePseudo, boldValue = options.boldValue, boldTextPt = options.boldTextPt, largeTextPt = options.largeTextPt, contrastRatio = options.contrastRatio, shadowOutlineEmMax = options.shadowOutlineEmMax, pseudoSizeThreshold = options.pseudoSizeThreshold;
23009 -1 if (!is_visible_default(node, false)) {
-1 24269 if (!_isVisibleOnScreen(node)) {
23010 24270 this.data({
23011 24271 messageKey: 'hidden'
23012 24272 });
@@ -23025,7 +24285,7 @@ module.exports = {
23025 24285 var bold = parseFloat(fontWeight) >= boldValue || fontWeight === 'bold';
23026 24286 var ptSize = Math.ceil(fontSize * 72) / 96;
23027 24287 var isSmallFont = bold && ptSize < boldTextPt || !bold && ptSize < largeTextPt;
23028 -1 var _ref58 = isSmallFont ? contrastRatio.normal : contrastRatio.large, expected = _ref58.expected, minThreshold = _ref58.minThreshold, maxThreshold = _ref58.maxThreshold;
-1 24288 var _ref78 = isSmallFont ? contrastRatio.normal : contrastRatio.large, expected = _ref78.expected, minThreshold = _ref78.minThreshold, maxThreshold = _ref78.maxThreshold;
23029 24289 var pseudoElm = findPseudoElement(virtualNode, {
23030 24290 ignorePseudo: ignorePseudo,
23031 24291 pseudoSizeThreshold: pseudoSizeThreshold
@@ -23041,8 +24301,8 @@ module.exports = {
23041 24301 return void 0;
23042 24302 }
23043 24303 var bgNodes = [];
23044 -1 var bgColor = _getBackgroundColor(node, bgNodes, shadowOutlineEmMax);
23045 -1 var fgColor = get_foreground_color_default(node, false, bgColor);
-1 24304 var bgColor = _getBackgroundColor2(node, bgNodes, shadowOutlineEmMax);
-1 24305 var fgColor = _getForegroundColor(node, false, bgColor, options);
23046 24306 var shadowColors = get_text_shadow_colors_default(node, {
23047 24307 minRatio: .001,
23048 24308 maxRatio: shadowOutlineEmMax
@@ -23053,7 +24313,7 @@ module.exports = {
23053 24313 if (shadowColors.length === 0) {
23054 24314 contrast = get_contrast_default(bgColor, fgColor);
23055 24315 } else if (fgColor && bgColor) {
23056 -1 shadowColor = [].concat(_toConsumableArray(shadowColors), [ bgColor ]).reduce(flatten_shadow_colors_default);
-1 24316 shadowColor = [].concat(_toConsumableArray(shadowColors), [ bgColor ]).reduce(_flattenShadowColors);
23057 24317 var fgBgContrast = get_contrast_default(bgColor, fgColor);
23058 24318 var bgShContrast = get_contrast_default(bgColor, shadowColor);
23059 24319 var fgShContrast = get_contrast_default(shadowColor, fgColor);
@@ -23063,7 +24323,7 @@ module.exports = {
23063 24323 }
23064 24324 }
23065 24325 var isValid = contrast > expected;
23066 -1 if (typeof minThreshold === 'number' && contrast < minThreshold || typeof maxThreshold === 'number' && contrast > maxThreshold) {
-1 24326 if (typeof minThreshold === 'number' && (typeof contrast !== 'number' || contrast < minThreshold) || typeof maxThreshold === 'number' && (typeof contrast !== 'number' || contrast > maxThreshold)) {
23067 24327 this.data({
23068 24328 contrastRatio: contrast
23069 24329 });
@@ -23104,8 +24364,8 @@ module.exports = {
23104 24364 }
23105 24365 return isValid;
23106 24366 }
23107 -1 function findPseudoElement(vNode, _ref59) {
23108 -1 var _ref59$pseudoSizeThre = _ref59.pseudoSizeThreshold, pseudoSizeThreshold = _ref59$pseudoSizeThre === void 0 ? .25 : _ref59$pseudoSizeThre, _ref59$ignorePseudo = _ref59.ignorePseudo, ignorePseudo = _ref59$ignorePseudo === void 0 ? false : _ref59$ignorePseudo;
-1 24367 function findPseudoElement(vNode, _ref79) {
-1 24368 var _ref79$pseudoSizeThre = _ref79.pseudoSizeThreshold, pseudoSizeThreshold = _ref79$pseudoSizeThre === void 0 ? .25 : _ref79$pseudoSizeThre, _ref79$ignorePseudo = _ref79.ignorePseudo, ignorePseudo = _ref79$ignorePseudo === void 0 ? false : _ref79$ignorePseudo;
23109 24369 if (ignorePseudo) {
23110 24370 return;
23111 24371 }
@@ -23147,15 +24407,15 @@ module.exports = {
23147 24407 }
23148 24408 function parseUnit(str) {
23149 24409 var unitRegex = /^([0-9.]+)([a-z]+)$/i;
23150 -1 var _ref60 = str.match(unitRegex) || [], _ref61 = _slicedToArray(_ref60, 3), _ref61$ = _ref61[1], value = _ref61$ === void 0 ? '' : _ref61$, _ref61$2 = _ref61[2], unit = _ref61$2 === void 0 ? '' : _ref61$2;
-1 24410 var _ref80 = str.match(unitRegex) || [], _ref81 = _slicedToArray(_ref80, 3), _ref81$ = _ref81[1], value = _ref81$ === void 0 ? '' : _ref81$, _ref81$2 = _ref81[2], unit = _ref81$2 === void 0 ? '' : _ref81$2;
23151 24411 return {
23152 24412 value: parseFloat(value),
23153 24413 unit: unit.toLowerCase()
23154 24414 };
23155 24415 }
23156 -1 function getContrast2(color1, color22) {
-1 24416 function getContrast2(color1, color2) {
23157 24417 var c1lum = color1.getRelativeLuminance();
23158 -1 var c2lum = color22.getRelativeLuminance();
-1 24418 var c2lum = color2.getRelativeLuminance();
23159 24419 return (Math.max(c1lum, c2lum) + .05) / (Math.min(c1lum, c2lum) + .05);
23160 24420 }
23161 24421 var blockLike2 = [ 'block', 'list-item', 'table', 'flex', 'grid', 'inline-block' ];
@@ -23163,55 +24423,89 @@ module.exports = {
23163 24423 var display = window.getComputedStyle(elm).getPropertyValue('display');
23164 24424 return blockLike2.indexOf(display) !== -1 || display.substr(0, 6) === 'table-';
23165 24425 }
23166 -1 function linkInTextBlockEvaluate(node) {
-1 24426 function linkInTextBlockEvaluate(node, options) {
-1 24427 var requiredContrastRatio = options.requiredContrastRatio;
23167 24428 if (isBlock2(node)) {
23168 24429 return false;
23169 24430 }
23170 24431 var parentBlock = get_composed_parent_default(node);
23171 -1 while (parentBlock.nodeType === 1 && !isBlock2(parentBlock)) {
-1 24432 while (parentBlock && parentBlock.nodeType === 1 && !isBlock2(parentBlock)) {
23172 24433 parentBlock = get_composed_parent_default(parentBlock);
23173 24434 }
-1 24435 if (!parentBlock) {
-1 24436 return void 0;
-1 24437 }
23174 24438 this.relatedNodes([ parentBlock ]);
23175 -1 if (element_is_distinct_default(node, parentBlock)) {
-1 24439 var nodeColor = _getForegroundColor(node);
-1 24440 var parentColor = _getForegroundColor(parentBlock);
-1 24441 var nodeBackgroundColor = _getBackgroundColor2(node);
-1 24442 var parentBackgroundColor = _getBackgroundColor2(parentBlock);
-1 24443 var textContrast = nodeColor && parentColor ? getContrast2(nodeColor, parentColor) : void 0;
-1 24444 if (textContrast) {
-1 24445 textContrast = Math.floor(textContrast * 100) / 100;
-1 24446 }
-1 24447 if (textContrast && textContrast >= requiredContrastRatio) {
23176 24448 return true;
23177 -1 } else {
23178 -1 var nodeColor, parentColor;
23179 -1 nodeColor = get_foreground_color_default(node);
23180 -1 parentColor = get_foreground_color_default(parentBlock);
23181 -1 if (!nodeColor || !parentColor) {
23182 -1 return void 0;
23183 -1 }
23184 -1 var contrast = getContrast2(nodeColor, parentColor);
23185 -1 if (contrast === 1) {
23186 -1 return true;
23187 -1 } else if (contrast >= 3) {
23188 -1 incomplete_data_default.set('fgColor', 'bgContrast');
23189 -1 this.data({
23190 -1 messageKey: incomplete_data_default.get('fgColor')
23191 -1 });
23192 -1 incomplete_data_default.clear();
23193 -1 return void 0;
23194 -1 }
23195 -1 nodeColor = _getBackgroundColor(node);
23196 -1 parentColor = _getBackgroundColor(parentBlock);
23197 -1 if (!nodeColor || !parentColor || getContrast2(nodeColor, parentColor) >= 3) {
23198 -1 var reason;
23199 -1 if (!nodeColor || !parentColor) {
23200 -1 reason = incomplete_data_default.get('bgColor');
23201 -1 } else {
23202 -1 reason = 'bgContrast';
23203 -1 }
23204 -1 incomplete_data_default.set('fgColor', reason);
23205 -1 this.data({
23206 -1 messageKey: incomplete_data_default.get('fgColor')
23207 -1 });
23208 -1 incomplete_data_default.clear();
23209 -1 return void 0;
23210 -1 }
23211 24449 }
-1 24450 var backgroundContrast = nodeBackgroundColor && parentBackgroundColor ? getContrast2(nodeBackgroundColor, parentBackgroundColor) : void 0;
-1 24451 if (backgroundContrast) {
-1 24452 backgroundContrast = Math.floor(backgroundContrast * 100) / 100;
-1 24453 }
-1 24454 if (backgroundContrast && backgroundContrast >= requiredContrastRatio) {
-1 24455 return true;
-1 24456 }
-1 24457 if (!backgroundContrast) {
-1 24458 var _incomplete_data_defa;
-1 24459 var reason = (_incomplete_data_defa = incomplete_data_default.get('bgColor')) !== null && _incomplete_data_defa !== void 0 ? _incomplete_data_defa : 'bgContrast';
-1 24460 this.data({
-1 24461 messageKey: reason
-1 24462 });
-1 24463 incomplete_data_default.clear();
-1 24464 return void 0;
-1 24465 }
-1 24466 if (!textContrast) {
-1 24467 return void 0;
-1 24468 }
-1 24469 if (textContrast === 1 && backgroundContrast > 1) {
-1 24470 this.data({
-1 24471 messageKey: 'bgContrast',
-1 24472 contrastRatio: backgroundContrast,
-1 24473 requiredContrastRatio: requiredContrastRatio,
-1 24474 nodeBackgroundColor: nodeBackgroundColor ? nodeBackgroundColor.toHexString() : void 0,
-1 24475 parentBackgroundColor: parentBackgroundColor ? parentBackgroundColor.toHexString() : void 0
-1 24476 });
-1 24477 return false;
-1 24478 }
-1 24479 this.data({
-1 24480 messageKey: 'fgContrast',
-1 24481 contrastRatio: textContrast,
-1 24482 requiredContrastRatio: requiredContrastRatio,
-1 24483 nodeColor: nodeColor ? nodeColor.toHexString() : void 0,
-1 24484 parentColor: parentColor ? parentColor.toHexString() : void 0
-1 24485 });
23212 24486 return false;
23213 24487 }
23214 24488 var link_in_text_block_evaluate_default = linkInTextBlockEvaluate;
-1 24489 var blockLike3 = [ 'block', 'list-item', 'table', 'flex', 'grid', 'inline-block' ];
-1 24490 function isBlock3(elm) {
-1 24491 var display = window.getComputedStyle(elm).getPropertyValue('display');
-1 24492 return blockLike3.indexOf(display) !== -1 || display.substr(0, 6) === 'table-';
-1 24493 }
-1 24494 function linkInTextBlockStyleEvaluate(node) {
-1 24495 if (isBlock3(node)) {
-1 24496 return false;
-1 24497 }
-1 24498 var parentBlock = get_composed_parent_default(node);
-1 24499 while (parentBlock && parentBlock.nodeType === 1 && !isBlock3(parentBlock)) {
-1 24500 parentBlock = get_composed_parent_default(parentBlock);
-1 24501 }
-1 24502 if (!parentBlock) {
-1 24503 return void 0;
-1 24504 }
-1 24505 this.relatedNodes([ parentBlock ]);
-1 24506 return element_is_distinct_default(node, parentBlock);
-1 24507 }
-1 24508 var link_in_text_block_style_evaluate_default = linkInTextBlockStyleEvaluate;
23215 24509 function autocompleteAppropriateEvaluate(node, options, virtualNode) {
23216 24510 if (virtualNode.props.nodeName !== 'input') {
23217 24511 return true;
@@ -23315,8 +24609,11 @@ module.exports = {
23315 24609 if (!options || !options.selector || typeof options.selector !== 'string') {
23316 24610 throw new TypeError('has-descendant requires options.selector to be a string');
23317 24611 }
-1 24612 if (options.passForModal && is_modal_open_default()) {
-1 24613 return true;
-1 24614 }
23318 24615 var matchingElms = query_selector_all_filter_default(virtualNode, options.selector, function(vNode) {
23319 -1 return is_visible_default(vNode.actualNode, true);
-1 24616 return _isVisibleToScreenReaders(vNode);
23320 24617 });
23321 24618 this.relatedNodes(matchingElms.map(function(vNode) {
23322 24619 return vNode.actualNode;
@@ -23331,7 +24628,6 @@ module.exports = {
23331 24628 return void 0;
23332 24629 }
23333 24630 }
23334 -1 var has_text_content_evaluate_default = hasTextContentEvaluate;
23335 24631 function matchesDefinitionEvaluate(_, options, virtualNode) {
23336 24632 return matches_default3(virtualNode, options.matcher);
23337 24633 }
@@ -23353,7 +24649,7 @@ module.exports = {
23353 24649 }
23354 24650 cache_default.set(key, true);
23355 24651 var elms = query_selector_all_filter_default(axe._tree[0], options.selector, function(elm) {
23356 -1 return is_visible_default(elm.actualNode, true);
-1 24652 return _isVisibleToScreenReaders(elm);
23357 24653 });
23358 24654 if (typeof options.nativeScopeFilter === 'string') {
23359 24655 elms = elms.filter(function(elm) {
@@ -23388,9 +24684,9 @@ module.exports = {
23388 24684 });
23389 24685 }
23390 24686 var accesskeys_after_default = accesskeysAfter;
23391 -1 function accesskeysEvaluate(node) {
23392 -1 if (is_visible_default(node, false)) {
23393 -1 this.data(node.getAttribute('accesskey'));
-1 24687 function accesskeysEvaluate(node, options, vNode) {
-1 24688 if (!_isHiddenForEveryone(vNode)) {
-1 24689 this.data(vNode.attr('accesskey'));
23394 24690 this.relatedNodes([ node ]);
23395 24691 }
23396 24692 return true;
@@ -23408,25 +24704,25 @@ module.exports = {
23408 24704 }
23409 24705 var focusable_content_evaluate_default = focusableContentEvaluate;
23410 24706 function focusableDisabledEvaluate(node, options, virtualNode) {
23411 -1 var elementsThatCanBeDisabled = [ 'BUTTON', 'FIELDSET', 'INPUT', 'SELECT', 'TEXTAREA' ];
-1 24707 var elementsThatCanBeDisabled = [ 'button', 'fieldset', 'input', 'select', 'textarea' ];
23412 24708 var tabbableElements = virtualNode.tabbableElements;
23413 24709 if (!tabbableElements || !tabbableElements.length) {
23414 24710 return true;
23415 24711 }
23416 -1 var relatedNodes = tabbableElements.reduce(function(out, _ref62) {
23417 -1 var el = _ref62.actualNode;
23418 -1 var nodeName2 = el.nodeName.toUpperCase();
23419 -1 if (elementsThatCanBeDisabled.includes(nodeName2)) {
23420 -1 out.push(el);
23421 -1 }
23422 -1 return out;
23423 -1 }, []);
23424 -1 this.relatedNodes(relatedNodes);
-1 24712 var relatedNodes = tabbableElements.filter(function(vNode) {
-1 24713 return elementsThatCanBeDisabled.includes(vNode.props.nodeName);
-1 24714 });
-1 24715 this.relatedNodes(relatedNodes.map(function(vNode) {
-1 24716 return vNode.actualNode;
-1 24717 }));
23425 24718 if (relatedNodes.length === 0 || is_modal_open_default()) {
23426 24719 return true;
23427 24720 }
23428 -1 return relatedNodes.every(function(related) {
23429 -1 return related.onfocus;
-1 24721 return relatedNodes.every(function(vNode) {
-1 24722 var pointerEvents = vNode.getComputedStylePropertyValue('pointer-events');
-1 24723 var width = parseInt(vNode.getComputedStylePropertyValue('width'));
-1 24724 var height = parseInt(vNode.getComputedStylePropertyValue('height'));
-1 24725 return vNode.actualNode.onfocus || (width === 0 || height === 0) && pointerEvents === 'none';
23430 24726 }) ? void 0 : false;
23431 24727 }
23432 24728 var focusable_disabled_evaluate_default = focusableDisabledEvaluate;
@@ -23434,10 +24730,7 @@ module.exports = {
23434 24730 if (virtualNode.hasAttr('contenteditable') && isContenteditable(virtualNode)) {
23435 24731 return true;
23436 24732 }
23437 -1 var isFocusable2 = virtualNode.isFocusable;
23438 -1 var tabIndex = parseInt(virtualNode.attr('tabindex'), 10);
23439 -1 tabIndex = !isNaN(tabIndex) ? tabIndex : null;
23440 -1 return tabIndex ? isFocusable2 && tabIndex >= 0 : isFocusable2;
-1 24733 return _isInTabOrder(virtualNode);
23441 24734 function isContenteditable(vNode) {
23442 24735 var contenteditable = vNode.attr('contenteditable');
23443 24736 if (contenteditable === 'true' || contenteditable === '') {
@@ -23455,8 +24748,8 @@ module.exports = {
23455 24748 }
23456 24749 var focusable_element_evaluate_default = focusableElementEvaluate;
23457 24750 function focusableModalOpenEvaluate(node, options, virtualNode) {
23458 -1 var tabbableElements = virtualNode.tabbableElements.map(function(_ref63) {
23459 -1 var actualNode = _ref63.actualNode;
-1 24751 var tabbableElements = virtualNode.tabbableElements.map(function(_ref82) {
-1 24752 var actualNode = _ref82.actualNode;
23460 24753 return actualNode;
23461 24754 });
23462 24755 if (!tabbableElements || !tabbableElements.length) {
@@ -23471,7 +24764,7 @@ module.exports = {
23471 24764 var focusable_modal_open_evaluate_default = focusableModalOpenEvaluate;
23472 24765 function focusableNoNameEvaluate(node, options, virtualNode) {
23473 24766 var tabIndex = virtualNode.attr('tabindex');
23474 -1 var inFocusOrder = is_focusable_default(virtualNode) && tabIndex > -1;
-1 24767 var inFocusOrder = _isFocusable(virtualNode) && tabIndex > -1;
23475 24768 if (!inFocusOrder) {
23476 24769 return false;
23477 24770 }
@@ -23483,30 +24776,42 @@ module.exports = {
23483 24776 }
23484 24777 var focusable_no_name_evaluate_default = focusableNoNameEvaluate;
23485 24778 function focusableNotTabbableEvaluate(node, options, virtualNode) {
23486 -1 var elementsThatCanBeDisabled = [ 'BUTTON', 'FIELDSET', 'INPUT', 'SELECT', 'TEXTAREA' ];
-1 24779 var elementsThatCanBeDisabled = [ 'button', 'fieldset', 'input', 'select', 'textarea' ];
23487 24780 var tabbableElements = virtualNode.tabbableElements;
23488 24781 if (!tabbableElements || !tabbableElements.length) {
23489 24782 return true;
23490 24783 }
23491 -1 var relatedNodes = tabbableElements.reduce(function(out, _ref64) {
23492 -1 var el = _ref64.actualNode;
23493 -1 var nodeName2 = el.nodeName.toUpperCase();
23494 -1 if (!elementsThatCanBeDisabled.includes(nodeName2)) {
23495 -1 out.push(el);
23496 -1 }
23497 -1 return out;
23498 -1 }, []);
23499 -1 this.relatedNodes(relatedNodes);
-1 24784 var relatedNodes = tabbableElements.filter(function(vNode) {
-1 24785 return !elementsThatCanBeDisabled.includes(vNode.props.nodeName);
-1 24786 });
-1 24787 this.relatedNodes(relatedNodes.map(function(vNode) {
-1 24788 return vNode.actualNode;
-1 24789 }));
23500 24790 if (relatedNodes.length === 0 || is_modal_open_default()) {
23501 24791 return true;
23502 24792 }
23503 -1 return relatedNodes.every(function(related) {
23504 -1 return related.onfocus;
-1 24793 return relatedNodes.every(function(vNode) {
-1 24794 var pointerEvents = vNode.getComputedStylePropertyValue('pointer-events');
-1 24795 var width = parseInt(vNode.getComputedStylePropertyValue('width'));
-1 24796 var height = parseInt(vNode.getComputedStylePropertyValue('height'));
-1 24797 return vNode.actualNode.onfocus || (width === 0 || height === 0) && pointerEvents === 'none';
23505 24798 }) ? void 0 : false;
23506 24799 }
23507 24800 var focusable_not_tabbable_evaluate_default = focusableNotTabbableEvaluate;
-1 24801 function frameFocusableContentEvaluate(node, options, virtualNode) {
-1 24802 if (!virtualNode.children) {
-1 24803 return void 0;
-1 24804 }
-1 24805 try {
-1 24806 return !virtualNode.children.some(function(child) {
-1 24807 return focusableDescendants(child);
-1 24808 });
-1 24809 } catch (e) {
-1 24810 return void 0;
-1 24811 }
-1 24812 }
23508 24813 function focusableDescendants(vNode) {
23509 -1 if (is_focusable_default(vNode)) {
-1 24814 if (_isInTabOrder(vNode)) {
23510 24815 return true;
23511 24816 }
23512 24817 if (!vNode.children) {
@@ -23519,19 +24824,6 @@ module.exports = {
23519 24824 return focusableDescendants(child);
23520 24825 });
23521 24826 }
23522 -1 function frameFocusableContentEvaluate(node, options, virtualNode) {
23523 -1 if (!virtualNode.children) {
23524 -1 return void 0;
23525 -1 }
23526 -1 try {
23527 -1 return !virtualNode.children.some(function(child) {
23528 -1 return focusableDescendants(child);
23529 -1 });
23530 -1 } catch (e) {
23531 -1 return void 0;
23532 -1 }
23533 -1 }
23534 -1 var frame_focusable_content_evaluate_default = frameFocusableContentEvaluate;
23535 24827 function landmarkIsTopLevelEvaluate(node) {
23536 24828 var landmarks = get_aria_roles_by_type_default('landmark');
23537 24829 var parent = get_composed_parent_default(node);
@@ -23584,8 +24876,7 @@ module.exports = {
23584 24876 }
23585 24877 var retVal = [];
23586 24878 vNode.children.forEach(function(child) {
23587 -1 var role = get_role_default(child);
23588 -1 if (get_role_type_default(role) === 'widget' && is_focusable_default(child)) {
-1 24879 if (get_role_type_default(child) === 'widget' && _isFocusable(child)) {
23589 24880 retVal.push(child);
23590 24881 } else {
23591 24882 retVal.push.apply(retVal, _toConsumableArray(getFocusableDescendants(child)));
@@ -23624,45 +24915,55 @@ module.exports = {
23624 24915 }
23625 24916 var duplicate_img_label_evaluate_default = duplicateImgLabelEvaluate;
23626 24917 function explicitEvaluate(node, options, virtualNode) {
23627 -1 if (virtualNode.attr('id')) {
23628 -1 if (!virtualNode.actualNode) {
23629 -1 return void 0;
23630 -1 }
23631 -1 var root = get_root_node_default2(virtualNode.actualNode);
23632 -1 var id = escape_selector_default(virtualNode.attr('id'));
23633 -1 var labels = Array.from(root.querySelectorAll('label[for="'.concat(id, '"]')));
23634 -1 if (labels.length) {
23635 -1 try {
23636 -1 return labels.some(function(label5) {
23637 -1 if (!is_visible_default(label5)) {
23638 -1 return true;
23639 -1 } else {
23640 -1 return !!accessible_text_default(label5);
23641 -1 }
-1 24918 var _this4 = this;
-1 24919 if (!virtualNode.attr('id')) {
-1 24920 return false;
-1 24921 }
-1 24922 if (!virtualNode.actualNode) {
-1 24923 return void 0;
-1 24924 }
-1 24925 var root = get_root_node_default2(virtualNode.actualNode);
-1 24926 var id = escape_selector_default(virtualNode.attr('id'));
-1 24927 var labels = Array.from(root.querySelectorAll('label[for="'.concat(id, '"]')));
-1 24928 this.relatedNodes(labels);
-1 24929 if (!labels.length) {
-1 24930 return false;
-1 24931 }
-1 24932 try {
-1 24933 return labels.some(function(label3) {
-1 24934 if (!_isVisibleOnScreen(label3)) {
-1 24935 return true;
-1 24936 } else {
-1 24937 var explicitLabel = sanitize_default(accessible_text_default(label3, {
-1 24938 inControlContext: true,
-1 24939 startNode: virtualNode
-1 24940 }));
-1 24941 _this4.data({
-1 24942 explicitLabel: explicitLabel
23642 24943 });
23643 -1 } catch (e) {
23644 -1 return void 0;
-1 24944 return !!explicitLabel;
23645 24945 }
23646 -1 }
-1 24946 });
-1 24947 } catch (e) {
-1 24948 return void 0;
23647 24949 }
23648 -1 return false;
23649 24950 }
23650 24951 var explicit_evaluate_default = explicitEvaluate;
23651 24952 function helpSameAsLabelEvaluate(node, options, virtualNode) {
23652 -1 var labelText2 = label_virtual_default2(virtualNode), check4 = node.getAttribute('title');
-1 24953 var labelText2 = label_virtual_default2(virtualNode), check = node.getAttribute('title');
23653 24954 if (!labelText2) {
23654 24955 return false;
23655 24956 }
23656 -1 if (!check4) {
23657 -1 check4 = '';
-1 24957 if (!check) {
-1 24958 check = '';
23658 24959 if (node.getAttribute('aria-describedby')) {
23659 24960 var ref = idrefs_default(node, 'aria-describedby');
23660 -1 check4 = ref.map(function(thing) {
-1 24961 check = ref.map(function(thing) {
23661 24962 return thing ? accessible_text_default(thing) : '';
23662 24963 }).join('');
23663 24964 }
23664 24965 }
23665 -1 return sanitize_default(check4) === sanitize_default(labelText2);
-1 24966 return sanitize_default(check) === sanitize_default(labelText2);
23666 24967 }
23667 24968 var help_same_as_label_evaluate_default = helpSameAsLabelEvaluate;
23668 24969 function hiddenExplicitLabelEvaluate(node, options, virtualNode) {
@@ -23672,8 +24973,8 @@ module.exports = {
23672 24973 }
23673 24974 var root = get_root_node_default2(node);
23674 24975 var id = escape_selector_default(node.getAttribute('id'));
23675 -1 var label5 = root.querySelector('label[for="'.concat(id, '"]'));
23676 -1 if (label5 && !is_visible_default(label5, true)) {
-1 24976 var label3 = root.querySelector('label[for="'.concat(id, '"]'));
-1 24977 if (label3 && !_isVisibleToScreenReaders(label3)) {
23677 24978 var name;
23678 24979 try {
23679 24980 name = accessible_text_virtual_default(virtualNode).trim();
@@ -23689,11 +24990,19 @@ module.exports = {
23689 24990 var hidden_explicit_label_evaluate_default = hiddenExplicitLabelEvaluate;
23690 24991 function implicitEvaluate(node, options, virtualNode) {
23691 24992 try {
23692 -1 var label5 = closest_default(virtualNode, 'label');
23693 -1 if (label5) {
23694 -1 return !!accessible_text_virtual_default(label5, {
23695 -1 inControlContext: true
-1 24993 var label3 = closest_default(virtualNode, 'label');
-1 24994 if (label3) {
-1 24995 var implicitLabel = sanitize_default(accessible_text_virtual_default(label3, {
-1 24996 inControlContext: true,
-1 24997 startNode: virtualNode
-1 24998 }));
-1 24999 if (label3.actualNode) {
-1 25000 this.relatedNodes([ label3.actualNode ]);
-1 25001 }
-1 25002 this.data({
-1 25003 implicitLabel: implicitLabel
23696 25004 });
-1 25005 return !!implicitLabel;
23697 25006 }
23698 25007 return false;
23699 25008 } catch (e) {
@@ -23718,7 +25027,9 @@ module.exports = {
23718 25027 return sanitize_default(noUnicodeStr);
23719 25028 }
23720 25029 function labelContentNameMismatchEvaluate(node, options, virtualNode) {
23721 -1 var _ref65 = options || {}, pixelThreshold = _ref65.pixelThreshold, occuranceThreshold = _ref65.occuranceThreshold;
-1 25030 var _options$occurrenceTh;
-1 25031 var pixelThreshold = options === null || options === void 0 ? void 0 : options.pixelThreshold;
-1 25032 var occurrenceThreshold = (_options$occurrenceTh = options === null || options === void 0 ? void 0 : options.occurrenceThreshold) !== null && _options$occurrenceTh !== void 0 ? _options$occurrenceTh : options === null || options === void 0 ? void 0 : options.occuranceThreshold;
23722 25033 var accText = accessible_text_default(node).toLowerCase();
23723 25034 if (is_human_interpretable_default(accText) < 1) {
23724 25035 return void 0;
@@ -23727,7 +25038,7 @@ module.exports = {
23727 25038 subtreeDescendant: true,
23728 25039 ignoreIconLigature: true,
23729 25040 pixelThreshold: pixelThreshold,
23730 -1 occuranceThreshold: occuranceThreshold
-1 25041 occurrenceThreshold: occurrenceThreshold
23731 25042 })).toLowerCase();
23732 25043 if (!visibleText) {
23733 25044 return true;
@@ -23748,8 +25059,8 @@ module.exports = {
23748 25059 root = root.documentElement || root;
23749 25060 var labels = Array.from(root.querySelectorAll('label[for="'.concat(id, '"]')));
23750 25061 if (labels.length) {
23751 -1 labels = labels.filter(function(label5) {
23752 -1 return is_visible_default(label5);
-1 25062 labels = labels.filter(function(label3) {
-1 25063 return !_isHiddenForEveryone(label3);
23753 25064 });
23754 25065 }
23755 25066 while (parent) {
@@ -23760,8 +25071,8 @@ module.exports = {
23760 25071 }
23761 25072 this.relatedNodes(labels);
23762 25073 if (labels.length > 1) {
23763 -1 var ATVisibleLabels = labels.filter(function(label5) {
23764 -1 return is_visible_default(label5, true);
-1 25074 var ATVisibleLabels = labels.filter(function(label3) {
-1 25075 return _isVisibleToScreenReaders(label3);
23765 25076 });
23766 25077 if (ATVisibleLabels.length > 1) {
23767 25078 return void 0;
@@ -23845,11 +25156,14 @@ module.exports = {
23845 25156 invalid.push(langAttr + '="' + virtualNode.attr(langAttr) + '"');
23846 25157 }
23847 25158 });
23848 -1 if (invalid.length) {
23849 -1 this.data(invalid);
23850 -1 return true;
-1 25159 if (!invalid.length) {
-1 25160 return false;
23851 25161 }
23852 -1 return false;
-1 25162 if (virtualNode.props.nodeName !== 'html' && !_hasLangText(virtualNode)) {
-1 25163 return false;
-1 25164 }
-1 25165 this.data(invalid);
-1 25166 return true;
23853 25167 }
23854 25168 var valid_lang_evaluate_default = validLangEvaluate;
23855 25169 function xmlLangMismatchEvaluate(node, options, vNode) {
@@ -23876,6 +25190,75 @@ module.exports = {
23876 25190 return false;
23877 25191 }
23878 25192 var dlitem_evaluate_default = dlitemEvaluate;
-1 25193 function invalidChildrenEvaluate(node) {
-1 25194 var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
-1 25195 var virtualNode = arguments.length > 2 ? arguments[2] : undefined;
-1 25196 var relatedNodes = [];
-1 25197 var issues = [];
-1 25198 if (!virtualNode.children) {
-1 25199 return void 0;
-1 25200 }
-1 25201 var vChildren = mapWithNested(virtualNode.children);
-1 25202 while (vChildren.length) {
-1 25203 var _vChild$actualNode;
-1 25204 var _vChildren$shift = vChildren.shift(), vChild = _vChildren$shift.vChild, nested = _vChildren$shift.nested;
-1 25205 if (options.divGroups && !nested && isDivGroup(vChild)) {
-1 25206 if (!vChild.children) {
-1 25207 return void 0;
-1 25208 }
-1 25209 var vGrandChildren = mapWithNested(vChild.children, true);
-1 25210 vChildren.push.apply(vChildren, _toConsumableArray(vGrandChildren));
-1 25211 continue;
-1 25212 }
-1 25213 var issue = getInvalidSelector(vChild, nested, options);
-1 25214 if (!issue) {
-1 25215 continue;
-1 25216 }
-1 25217 if (!issues.includes(issue)) {
-1 25218 issues.push(issue);
-1 25219 }
-1 25220 if ((vChild === null || vChild === void 0 ? void 0 : (_vChild$actualNode = vChild.actualNode) === null || _vChild$actualNode === void 0 ? void 0 : _vChild$actualNode.nodeType) === 1) {
-1 25221 relatedNodes.push(vChild.actualNode);
-1 25222 }
-1 25223 }
-1 25224 if (issues.length === 0) {
-1 25225 return false;
-1 25226 }
-1 25227 this.data({
-1 25228 values: issues.join(', ')
-1 25229 });
-1 25230 this.relatedNodes(relatedNodes);
-1 25231 return true;
-1 25232 }
-1 25233 function getInvalidSelector(vChild, nested, _ref83) {
-1 25234 var _ref83$validRoles = _ref83.validRoles, validRoles = _ref83$validRoles === void 0 ? [] : _ref83$validRoles, _ref83$validNodeNames = _ref83.validNodeNames, validNodeNames = _ref83$validNodeNames === void 0 ? [] : _ref83$validNodeNames;
-1 25235 var _vChild$props = vChild.props, nodeName2 = _vChild$props.nodeName, nodeType = _vChild$props.nodeType, nodeValue = _vChild$props.nodeValue;
-1 25236 var selector = nested ? 'div > ' : '';
-1 25237 if (nodeType === 3 && nodeValue.trim() !== '') {
-1 25238 return selector + '#text';
-1 25239 }
-1 25240 if (nodeType !== 1 || !_isVisibleToScreenReaders(vChild)) {
-1 25241 return false;
-1 25242 }
-1 25243 var role = get_explicit_role_default(vChild);
-1 25244 if (role) {
-1 25245 return validRoles.includes(role) ? false : selector + '[role='.concat(role, ']');
-1 25246 } else {
-1 25247 return validNodeNames.includes(nodeName2) ? false : selector + nodeName2;
-1 25248 }
-1 25249 }
-1 25250 function isDivGroup(vNode) {
-1 25251 return vNode.props.nodeName === 'div' && get_explicit_role_default(vNode) === null;
-1 25252 }
-1 25253 function mapWithNested(vNodes) {
-1 25254 var nested = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
-1 25255 return vNodes.map(function(vChild) {
-1 25256 return {
-1 25257 vChild: vChild,
-1 25258 nested: nested
-1 25259 };
-1 25260 });
-1 25261 }
23879 25262 function listitemEvaluate(node, options, virtualNode) {
23880 25263 var parent = virtualNode.parent;
23881 25264 if (!parent) {
@@ -23910,7 +25293,7 @@ module.exports = {
23910 25293 var result = content.reduce(function(out, childNode) {
23911 25294 var actualNode = childNode.actualNode;
23912 25295 var tagName = actualNode.nodeName.toUpperCase();
23913 -1 if (actualNode.nodeType === 1 && is_visible_default(actualNode, true, false)) {
-1 25296 if (actualNode.nodeType === 1 && _isVisibleToScreenReaders(actualNode)) {
23914 25297 var explicitRole2 = get_explicit_role_default(actualNode);
23915 25298 if (tagName !== 'DT' && tagName !== 'DD' || explicitRole2) {
23916 25299 if (!ALLOWED_ROLES.includes(explicitRole2)) {
@@ -23941,7 +25324,7 @@ module.exports = {
23941 25324 hasNonEmptyTextNode = true;
23942 25325 return;
23943 25326 }
23944 -1 if (actualNode.nodeType !== 1 || !is_visible_default(actualNode, true, false)) {
-1 25327 if (actualNode.nodeType !== 1 || !_isVisibleToScreenReaders(actualNode)) {
23945 25328 return;
23946 25329 }
23947 25330 isEmpty = false;
@@ -24080,24 +25463,24 @@ module.exports = {
24080 25463 }
24081 25464 }
24082 25465 var no_autoplay_audio_evaluate_default = noAutoplayAudioEvaluate;
24083 -1 function cssOrientationLockEvaluate(node, options, virtualNode, context5) {
24084 -1 var _ref66 = context5 || {}, _ref66$cssom = _ref66.cssom, cssom = _ref66$cssom === void 0 ? void 0 : _ref66$cssom;
24085 -1 var _ref67 = options || {}, _ref67$degreeThreshol = _ref67.degreeThreshold, degreeThreshold = _ref67$degreeThreshol === void 0 ? 0 : _ref67$degreeThreshol;
-1 25466 function cssOrientationLockEvaluate(node, options, virtualNode, context) {
-1 25467 var _ref84 = context || {}, _ref84$cssom = _ref84.cssom, cssom = _ref84$cssom === void 0 ? void 0 : _ref84$cssom;
-1 25468 var _ref85 = options || {}, _ref85$degreeThreshol = _ref85.degreeThreshold, degreeThreshold = _ref85$degreeThreshol === void 0 ? 0 : _ref85$degreeThreshol;
24086 25469 if (!cssom || !cssom.length) {
24087 25470 return void 0;
24088 25471 }
24089 25472 var isLocked = false;
24090 25473 var relatedElements = [];
24091 25474 var rulesGroupByDocumentFragment = groupCssomByDocument(cssom);
24092 -1 var _loop5 = function _loop5() {
24093 -1 var key = _Object$keys2[_i21];
-1 25475 var _loop7 = function _loop7() {
-1 25476 var key = _Object$keys2[_i24];
24094 25477 var _rulesGroupByDocument = rulesGroupByDocumentFragment[key], root = _rulesGroupByDocument.root, rules = _rulesGroupByDocument.rules;
24095 25478 var orientationRules = rules.filter(isMediaRuleWithOrientation);
24096 25479 if (!orientationRules.length) {
24097 25480 return 'continue';
24098 25481 }
24099 -1 orientationRules.forEach(function(_ref68) {
24100 -1 var cssRules = _ref68.cssRules;
-1 25482 orientationRules.forEach(function(_ref86) {
-1 25483 var cssRules = _ref86.cssRules;
24101 25484 Array.from(cssRules).forEach(function(cssRule) {
24102 25485 var locked = getIsOrientationLocked(cssRule);
24103 25486 if (locked && cssRule.selectorText.toUpperCase() !== 'HTML') {
@@ -24108,9 +25491,9 @@ module.exports = {
24108 25491 });
24109 25492 });
24110 25493 };
24111 -1 for (var _i21 = 0, _Object$keys2 = Object.keys(rulesGroupByDocumentFragment); _i21 < _Object$keys2.length; _i21++) {
24112 -1 var _ret2 = _loop5();
24113 -1 if (_ret2 === 'continue') {
-1 25494 for (var _i24 = 0, _Object$keys2 = Object.keys(rulesGroupByDocumentFragment); _i24 < _Object$keys2.length; _i24++) {
-1 25495 var _ret3 = _loop7();
-1 25496 if (_ret3 === 'continue') {
24114 25497 continue;
24115 25498 }
24116 25499 }
@@ -24122,8 +25505,8 @@ module.exports = {
24122 25505 }
24123 25506 return false;
24124 25507 function groupCssomByDocument(cssObjectModel) {
24125 -1 return cssObjectModel.reduce(function(out, _ref69) {
24126 -1 var sheet = _ref69.sheet, root = _ref69.root, shadowId = _ref69.shadowId;
-1 25508 return cssObjectModel.reduce(function(out, _ref87) {
-1 25509 var sheet = _ref87.sheet, root = _ref87.root, shadowId = _ref87.shadowId;
24127 25510 var key = shadowId ? shadowId : 'topDocument';
24128 25511 if (!out[key]) {
24129 25512 out[key] = {
@@ -24139,15 +25522,15 @@ module.exports = {
24139 25522 return out;
24140 25523 }, {});
24141 25524 }
24142 -1 function isMediaRuleWithOrientation(_ref70) {
24143 -1 var type = _ref70.type, cssText = _ref70.cssText;
-1 25525 function isMediaRuleWithOrientation(_ref88) {
-1 25526 var type = _ref88.type, cssText = _ref88.cssText;
24144 25527 if (type !== 4) {
24145 25528 return false;
24146 25529 }
24147 25530 return /orientation:\s*landscape/i.test(cssText) || /orientation:\s*portrait/i.test(cssText);
24148 25531 }
24149 -1 function getIsOrientationLocked(_ref71) {
24150 -1 var selectorText = _ref71.selectorText, style = _ref71.style;
-1 25532 function getIsOrientationLocked(_ref89) {
-1 25533 var selectorText = _ref89.selectorText, style = _ref89.style;
24151 25534 if (!selectorText || style.length <= 0) {
24152 25535 return false;
24153 25536 }
@@ -24155,11 +25538,11 @@ module.exports = {
24155 25538 if (!transformStyle) {
24156 25539 return false;
24157 25540 }
24158 -1 var matches14 = transformStyle.match(/(rotate|rotateZ|rotate3d|matrix|matrix3d)\(([^)]+)\)(?!.*(rotate|rotateZ|rotate3d|matrix|matrix3d))/);
24159 -1 if (!matches14) {
-1 25541 var matches4 = transformStyle.match(/(rotate|rotateZ|rotate3d|matrix|matrix3d)\(([^)]+)\)(?!.*(rotate|rotateZ|rotate3d|matrix|matrix3d))/);
-1 25542 if (!matches4) {
24160 25543 return false;
24161 25544 }
24162 -1 var _matches = _slicedToArray(matches14, 3), transformFn = _matches[1], transformFnValue = _matches[2];
-1 25545 var _matches = _slicedToArray(matches4, 3), transformFn = _matches[1], transformFnValue = _matches[2];
24163 25546 var degrees = getRotationInDegrees(transformFn, transformFnValue);
24164 25547 if (!degrees) {
24165 25548 return false;
@@ -24194,7 +25577,7 @@ module.exports = {
24194 25577 }
24195 25578 }
24196 25579 function getAngleInDegrees(angleWithUnit) {
24197 -1 var _ref72 = angleWithUnit.match(/(deg|grad|rad|turn)/) || [], _ref73 = _slicedToArray(_ref72, 1), unit = _ref73[0];
-1 25580 var _ref90 = angleWithUnit.match(/(deg|grad|rad|turn)/) || [], _ref91 = _slicedToArray(_ref90, 1), unit = _ref91[0];
24198 25581 if (!unit) {
24199 25582 return;
24200 25583 }
@@ -24243,7 +25626,7 @@ module.exports = {
24243 25626 }
24244 25627 var css_orientation_lock_evaluate_default = cssOrientationLockEvaluate;
24245 25628 function metaViewportScaleEvaluate(node, options, virtualNode) {
24246 -1 var _ref74 = options || {}, _ref74$scaleMinimum = _ref74.scaleMinimum, scaleMinimum = _ref74$scaleMinimum === void 0 ? 2 : _ref74$scaleMinimum, _ref74$lowerBound = _ref74.lowerBound, lowerBound = _ref74$lowerBound === void 0 ? false : _ref74$lowerBound;
-1 25629 var _ref92 = options || {}, _ref92$scaleMinimum = _ref92.scaleMinimum, scaleMinimum = _ref92$scaleMinimum === void 0 ? 2 : _ref92$scaleMinimum, _ref92$lowerBound = _ref92.lowerBound, lowerBound = _ref92$lowerBound === void 0 ? false : _ref92$lowerBound;
24247 25630 var content = virtualNode.attr('content') || '';
24248 25631 if (!content) {
24249 25632 return true;
@@ -24287,6 +25670,194 @@ module.exports = {
24287 25670 return true;
24288 25671 }
24289 25672 var meta_viewport_scale_evaluate_default = metaViewportScaleEvaluate;
-1 25673 var roundingMargin = .05;
-1 25674 function targetOffsetEvaluate(node, options, vNode) {
-1 25675 var minOffset = (options === null || options === void 0 ? void 0 : options.minOffset) || 24;
-1 25676 var closeNeighbors = [];
-1 25677 var closestOffset = minOffset;
-1 25678 var _iterator8 = _createForOfIteratorHelper(_findNearbyElms(vNode, minOffset)), _step8;
-1 25679 try {
-1 25680 for (_iterator8.s(); !(_step8 = _iterator8.n()).done; ) {
-1 25681 var vNeighbor = _step8.value;
-1 25682 if (get_role_type_default(vNeighbor) !== 'widget' || !_isFocusable(vNeighbor)) {
-1 25683 continue;
-1 25684 }
-1 25685 var offset = roundToSingleDecimal(_getOffset(vNode, vNeighbor));
-1 25686 if (offset + roundingMargin >= minOffset) {
-1 25687 continue;
-1 25688 }
-1 25689 closestOffset = Math.min(closestOffset, offset);
-1 25690 closeNeighbors.push(vNeighbor);
-1 25691 }
-1 25692 } catch (err) {
-1 25693 _iterator8.e(err);
-1 25694 } finally {
-1 25695 _iterator8.f();
-1 25696 }
-1 25697 if (closeNeighbors.length === 0) {
-1 25698 this.data({
-1 25699 closestOffset: closestOffset,
-1 25700 minOffset: minOffset
-1 25701 });
-1 25702 return true;
-1 25703 }
-1 25704 this.relatedNodes(closeNeighbors.map(function(_ref93) {
-1 25705 var actualNode = _ref93.actualNode;
-1 25706 return actualNode;
-1 25707 }));
-1 25708 if (!closeNeighbors.some(_isInTabOrder)) {
-1 25709 this.data({
-1 25710 messageKey: 'nonTabbableNeighbor',
-1 25711 closestOffset: closestOffset,
-1 25712 minOffset: minOffset
-1 25713 });
-1 25714 return void 0;
-1 25715 }
-1 25716 this.data({
-1 25717 closestOffset: closestOffset,
-1 25718 minOffset: minOffset
-1 25719 });
-1 25720 return _isInTabOrder(vNode) ? false : void 0;
-1 25721 }
-1 25722 function roundToSingleDecimal(num) {
-1 25723 return Math.round(num * 10) / 10;
-1 25724 }
-1 25725 var roundingMargin2 = .05;
-1 25726 function targetSize(node, options, vNode) {
-1 25727 var minSize = (options === null || options === void 0 ? void 0 : options.minSize) || 24;
-1 25728 var nodeRect = vNode.boundingClientRect;
-1 25729 var hasMinimumSize = rectHasMinimumSize.bind(null, minSize);
-1 25730 var nearbyElms = _findNearbyElms(vNode);
-1 25731 var overflowingContent = filterOverflowingContent(vNode, nearbyElms);
-1 25732 var _filterByElmsOverlap = filterByElmsOverlap(vNode, nearbyElms), fullyObscuringElms = _filterByElmsOverlap.fullyObscuringElms, partialObscuringElms = _filterByElmsOverlap.partialObscuringElms;
-1 25733 if (fullyObscuringElms.length && !overflowingContent.length) {
-1 25734 this.relatedNodes(mapActualNodes(fullyObscuringElms));
-1 25735 this.data({
-1 25736 messageKey: 'obscured'
-1 25737 });
-1 25738 return true;
-1 25739 }
-1 25740 var negativeOutcome = _isInTabOrder(vNode) ? false : void 0;
-1 25741 if (!hasMinimumSize(nodeRect) && !overflowingContent.length) {
-1 25742 this.data(_extends({
-1 25743 minSize: minSize
-1 25744 }, toDecimalSize(nodeRect)));
-1 25745 return negativeOutcome;
-1 25746 }
-1 25747 var obscuredWidgets = filterFocusableWidgets(partialObscuringElms);
-1 25748 var largestInnerRect = getLargestUnobscuredArea(vNode, obscuredWidgets);
-1 25749 if (overflowingContent.length) {
-1 25750 if (fullyObscuringElms.length || !hasMinimumSize(largestInnerRect || nodeRect)) {
-1 25751 this.data({
-1 25752 minSize: minSize,
-1 25753 messageKey: 'contentOverflow'
-1 25754 });
-1 25755 this.relatedNodes(mapActualNodes(overflowingContent));
-1 25756 return void 0;
-1 25757 }
-1 25758 }
-1 25759 if (obscuredWidgets.length !== 0 && !hasMinimumSize(largestInnerRect)) {
-1 25760 var allTabbable = obscuredWidgets.every(_isInTabOrder);
-1 25761 var messageKey = 'partiallyObscured'.concat(allTabbable ? '' : 'NonTabbable');
-1 25762 this.data(_extends({
-1 25763 messageKey: messageKey,
-1 25764 minSize: minSize
-1 25765 }, toDecimalSize(largestInnerRect)));
-1 25766 this.relatedNodes(mapActualNodes(obscuredWidgets));
-1 25767 return allTabbable ? negativeOutcome : void 0;
-1 25768 }
-1 25769 this.data(_extends({
-1 25770 minSize: minSize
-1 25771 }, toDecimalSize(largestInnerRect || nodeRect)));
-1 25772 this.relatedNodes(mapActualNodes(obscuredWidgets));
-1 25773 return true;
-1 25774 }
-1 25775 function filterOverflowingContent(vNode, nearbyElms) {
-1 25776 return nearbyElms.filter(function(nearbyElm) {
-1 25777 return !isEnclosedRect(nearbyElm, vNode) && isDescendantNotInTabOrder(vNode, nearbyElm);
-1 25778 });
-1 25779 }
-1 25780 function filterByElmsOverlap(vNode, nearbyElms) {
-1 25781 var fullyObscuringElms = [];
-1 25782 var partialObscuringElms = [];
-1 25783 var _iterator9 = _createForOfIteratorHelper(nearbyElms), _step9;
-1 25784 try {
-1 25785 for (_iterator9.s(); !(_step9 = _iterator9.n()).done; ) {
-1 25786 var vNeighbor = _step9.value;
-1 25787 if (!isDescendantNotInTabOrder(vNode, vNeighbor) && _hasVisualOverlap(vNode, vNeighbor) && getCssPointerEvents(vNeighbor) !== 'none') {
-1 25788 if (isEnclosedRect(vNode, vNeighbor)) {
-1 25789 fullyObscuringElms.push(vNeighbor);
-1 25790 } else {
-1 25791 partialObscuringElms.push(vNeighbor);
-1 25792 }
-1 25793 }
-1 25794 }
-1 25795 } catch (err) {
-1 25796 _iterator9.e(err);
-1 25797 } finally {
-1 25798 _iterator9.f();
-1 25799 }
-1 25800 return {
-1 25801 fullyObscuringElms: fullyObscuringElms,
-1 25802 partialObscuringElms: partialObscuringElms
-1 25803 };
-1 25804 }
-1 25805 function getLargestUnobscuredArea(vNode, obscuredNodes) {
-1 25806 var nodeRect = vNode.boundingClientRect;
-1 25807 if (obscuredNodes.length === 0) {
-1 25808 return null;
-1 25809 }
-1 25810 var obscuringRects = obscuredNodes.map(function(_ref94) {
-1 25811 var rect = _ref94.boundingClientRect;
-1 25812 return rect;
-1 25813 });
-1 25814 var unobscuredRects = _splitRects(nodeRect, obscuringRects);
-1 25815 return getLargestRect(unobscuredRects);
-1 25816 }
-1 25817 function getLargestRect(rects, minSize) {
-1 25818 return rects.reduce(function(rectA, rectB) {
-1 25819 var rectAisMinimum = rectHasMinimumSize(minSize, rectA);
-1 25820 var rectBisMinimum = rectHasMinimumSize(minSize, rectB);
-1 25821 if (rectAisMinimum !== rectBisMinimum) {
-1 25822 return rectAisMinimum ? rectA : rectB;
-1 25823 }
-1 25824 var areaA = rectA.width * rectA.height;
-1 25825 var areaB = rectB.width * rectB.height;
-1 25826 return areaA > areaB ? rectA : rectB;
-1 25827 });
-1 25828 }
-1 25829 function filterFocusableWidgets(vNodes) {
-1 25830 return vNodes.filter(function(vNode) {
-1 25831 return get_role_type_default(vNode) === 'widget' && _isFocusable(vNode);
-1 25832 });
-1 25833 }
-1 25834 function isEnclosedRect(vNodeA, vNodeB) {
-1 25835 var rectA = vNodeA.boundingClientRect;
-1 25836 var rectB = vNodeB.boundingClientRect;
-1 25837 return rectA.top >= rectB.top && rectA.left >= rectB.left && rectA.bottom <= rectB.bottom && rectA.right <= rectB.right;
-1 25838 }
-1 25839 function getCssPointerEvents(vNode) {
-1 25840 return vNode.getComputedStylePropertyValue('pointer-events');
-1 25841 }
-1 25842 function toDecimalSize(rect) {
-1 25843 return {
-1 25844 width: Math.round(rect.width * 10) / 10,
-1 25845 height: Math.round(rect.height * 10) / 10
-1 25846 };
-1 25847 }
-1 25848 function isDescendantNotInTabOrder(vAncestor, vNode) {
-1 25849 return vAncestor.actualNode.contains(vNode.actualNode) && !_isInTabOrder(vNode);
-1 25850 }
-1 25851 function rectHasMinimumSize(minSize, _ref95) {
-1 25852 var width = _ref95.width, height = _ref95.height;
-1 25853 return width + roundingMargin2 >= minSize && height + roundingMargin2 >= minSize;
-1 25854 }
-1 25855 function mapActualNodes(vNodes) {
-1 25856 return vNodes.map(function(_ref96) {
-1 25857 var actualNode = _ref96.actualNode;
-1 25858 return actualNode;
-1 25859 });
-1 25860 }
24290 25861 function headingOrderAfter(results) {
24291 25862 var headingOrder = getHeadingOrder(results);
24292 25863 results.forEach(function(result) {
@@ -24309,14 +25880,14 @@ module.exports = {
24309 25880 }
24310 25881 function getHeadingOrder(results) {
24311 25882 results = _toConsumableArray(results);
24312 -1 results.sort(function(_ref75, _ref76) {
24313 -1 var nodeA = _ref75.node;
24314 -1 var nodeB = _ref76.node;
-1 25883 results.sort(function(_ref97, _ref98) {
-1 25884 var nodeA = _ref97.node;
-1 25885 var nodeB = _ref98.node;
24315 25886 return nodeA.ancestry.length - nodeB.ancestry.length;
24316 25887 });
24317 25888 var headingOrder = results.reduce(mergeHeadingOrder, []);
24318 -1 return headingOrder.filter(function(_ref77) {
24319 -1 var level = _ref77.level;
-1 25889 return headingOrder.filter(function(_ref99) {
-1 25890 var level = _ref99.level;
24320 25891 return level !== -1;
24321 25892 });
24322 25893 }
@@ -24367,7 +25938,7 @@ module.exports = {
24367 25938 var headingRole = role && role.includes('heading');
24368 25939 var ariaHeadingLevel = vNode.attr('aria-level');
24369 25940 var ariaLevel = parseInt(ariaHeadingLevel, 10);
24370 -1 var _ref78 = vNode.props.nodeName.match(/h(\d)/) || [], _ref79 = _slicedToArray(_ref78, 2), headingLevel = _ref79[1];
-1 25941 var _ref100 = vNode.props.nodeName.match(/h(\d)/) || [], _ref101 = _slicedToArray(_ref100, 2), headingLevel = _ref101[1];
24371 25942 if (!headingRole) {
24372 25943 return -1;
24373 25944 }
@@ -24391,9 +25962,7 @@ module.exports = {
24391 25962 return true;
24392 25963 }
24393 25964 var selector = 'h1, h2, h3, h4, h5, h6, [role=heading], iframe, frame';
24394 -1 var vNodes = query_selector_all_filter_default(axe._tree[0], selector, function(vNode) {
24395 -1 return is_visible_default(vNode.actualNode, true);
24396 -1 });
-1 25965 var vNodes = query_selector_all_filter_default(axe._tree[0], selector, _isVisibleToScreenReaders);
24397 25966 headingOrder = vNodes.map(function(vNode) {
24398 25967 return {
24399 25968 ancestry: [ _getAncestry(vNode.actualNode) ],
@@ -24422,7 +25991,7 @@ module.exports = {
24422 25991 if (_typeof(aValue) !== _typeof(bValue)) {
24423 25992 return false;
24424 25993 }
24425 -1 if (typeof aValue === 'object' || typeof bValue === 'object') {
-1 25994 if (_typeof(aValue) === 'object' || _typeof(bValue) === 'object') {
24426 25995 return isIdenticalObject(aValue, bValue);
24427 25996 }
24428 25997 return aValue === bValue;
@@ -24433,25 +26002,25 @@ module.exports = {
24433 26002 if (results.length < 2) {
24434 26003 return results;
24435 26004 }
24436 -1 var incompleteResults = results.filter(function(_ref80) {
24437 -1 var result = _ref80.result;
-1 26005 var incompleteResults = results.filter(function(_ref102) {
-1 26006 var result = _ref102.result;
24438 26007 return result !== void 0;
24439 26008 });
24440 26009 var uniqueResults = [];
24441 26010 var nameMap = {};
24442 -1 var _loop6 = function _loop6(index) {
-1 26011 var _loop8 = function _loop8(index) {
24443 26012 var _currentResult$relate;
24444 26013 var currentResult = incompleteResults[index];
24445 26014 var _currentResult$data = currentResult.data, name = _currentResult$data.name, urlProps = _currentResult$data.urlProps;
24446 26015 if (nameMap[name]) {
24447 26016 return 'continue';
24448 26017 }
24449 -1 var sameNameResults = incompleteResults.filter(function(_ref81, resultNum) {
24450 -1 var data2 = _ref81.data;
-1 26018 var sameNameResults = incompleteResults.filter(function(_ref103, resultNum) {
-1 26019 var data2 = _ref103.data;
24451 26020 return data2.name === name && resultNum !== index;
24452 26021 });
24453 -1 var isSameUrl = sameNameResults.every(function(_ref82) {
24454 -1 var data2 = _ref82.data;
-1 26022 var isSameUrl = sameNameResults.every(function(_ref104) {
-1 26023 var data2 = _ref104.data;
24455 26024 return isIdenticalObject(data2.urlProps, urlProps);
24456 26025 });
24457 26026 if (sameNameResults.length && !isSameUrl) {
@@ -24465,8 +26034,8 @@ module.exports = {
24465 26034 uniqueResults.push(currentResult);
24466 26035 };
24467 26036 for (var index = 0; index < incompleteResults.length; index++) {
24468 -1 var _ret3 = _loop6(index);
24469 -1 if (_ret3 === 'continue') {
-1 26037 var _ret4 = _loop8(index);
-1 26038 if (_ret4 === 'continue') {
24470 26039 continue;
24471 26040 }
24472 26041 }
@@ -24490,6 +26059,9 @@ module.exports = {
24490 26059 matches: function matches() {
24491 26060 return matches_default3;
24492 26061 },
-1 26062 math: function math() {
-1 26063 return math_exports;
-1 26064 },
24493 26065 standards: function standards() {
24494 26066 return standards_exports;
24495 26067 },
@@ -24665,7 +26237,7 @@ module.exports = {
24665 26237 var is_data_cell_default = isDataCell;
24666 26238 function isDataTable(node) {
24667 26239 var role = (node.getAttribute('role') || '').toLowerCase();
24668 -1 if ((role === 'presentation' || role === 'none') && !is_focusable_default(node)) {
-1 26240 if ((role === 'presentation' || role === 'none') && !_isFocusable(node)) {
24669 26241 return false;
24670 26242 }
24671 26243 if (node.getAttribute('contenteditable') === 'true' || find_up_default(node, '[contenteditable="true"]')) {
@@ -24838,17 +26410,6 @@ module.exports = {
24838 26410 }, tableGrid, callback);
24839 26411 }
24840 26412 var traverse_default = traverse;
24841 -1 var commons = {
24842 -1 aria: aria_exports,
24843 -1 color: color_exports,
24844 -1 dom: dom_exports,
24845 -1 forms: forms_exports,
24846 -1 matches: matches_default3,
24847 -1 standards: standards_exports,
24848 -1 table: table_exports,
24849 -1 text: text_exports,
24850 -1 utils: utils_exports
24851 -1 };
24852 26413 function identicalLinksSamePurposeEvaluate(node, options, virtualNode) {
24853 26414 var accText = text_exports.accessibleTextVirtual(virtualNode);
24854 26415 var name = text_exports.sanitize(text_exports.removeUnicode(accText, {
@@ -24875,11 +26436,27 @@ module.exports = {
24875 26436 });
24876 26437 }
24877 26438 var internal_link_present_evaluate_default = internalLinkPresentEvaluate;
-1 26439 var separatorRegex = /[;,\s]/;
-1 26440 var validRedirectNumRegex = /^[0-9.]+$/;
24878 26441 function metaRefreshEvaluate(node, options, virtualNode) {
24879 -1 var content = virtualNode.attr('content') || '', parsedParams = content.split(/[;,]/);
24880 -1 return content === '' || parsedParams[0] === '0';
-1 26442 var _ref105 = options || {}, minDelay = _ref105.minDelay, maxDelay = _ref105.maxDelay;
-1 26443 var content = (virtualNode.attr('content') || '').trim();
-1 26444 var _content$split = content.split(separatorRegex), _content$split2 = _slicedToArray(_content$split, 1), redirectStr = _content$split2[0];
-1 26445 if (!redirectStr.match(validRedirectNumRegex)) {
-1 26446 return true;
-1 26447 }
-1 26448 var redirectDelay = parseFloat(redirectStr);
-1 26449 this.data({
-1 26450 redirectDelay: redirectDelay
-1 26451 });
-1 26452 if (typeof minDelay === 'number' && redirectDelay <= options.minDelay) {
-1 26453 return true;
-1 26454 }
-1 26455 if (typeof maxDelay === 'number' && redirectDelay > options.maxDelay) {
-1 26456 return true;
-1 26457 }
-1 26458 return false;
24881 26459 }
24882 -1 var meta_refresh_evaluate_default = metaRefreshEvaluate;
24883 26460 function normalizeFontWeight(weight) {
24884 26461 switch (weight) {
24885 26462 case 'lighter':
@@ -24902,16 +26479,16 @@ module.exports = {
24902 26479 var outerText = elm.textContent.trim();
24903 26480 var innerText = outerText;
24904 26481 while (innerText === outerText && nextNode !== void 0) {
24905 -1 var _i22 = -1;
-1 26482 var _i25 = -1;
24906 26483 elm = nextNode;
24907 26484 if (elm.children.length === 0) {
24908 26485 return elm;
24909 26486 }
24910 26487 do {
24911 -1 _i22++;
24912 -1 innerText = elm.children[_i22].textContent.trim();
24913 -1 } while (innerText === '' && _i22 + 1 < elm.children.length);
24914 -1 nextNode = elm.children[_i22];
-1 26488 _i25++;
-1 26489 innerText = elm.children[_i25].textContent.trim();
-1 26490 } while (innerText === '' && _i25 + 1 < elm.children.length);
-1 26491 nextNode = elm.children[_i25];
24915 26492 }
24916 26493 return elm;
24917 26494 }
@@ -24974,19 +26551,19 @@ module.exports = {
24974 26551 return;
24975 26552 }
24976 26553 var frameAncestry = r.node.ancestry.slice(0, -1);
24977 -1 var _iterator2 = _createForOfIteratorHelper(iframeResults), _step2;
-1 26554 var _iterator10 = _createForOfIteratorHelper(iframeResults), _step10;
24978 26555 try {
24979 -1 for (_iterator2.s(); !(_step2 = _iterator2.n()).done; ) {
24980 -1 var iframeResult = _step2.value;
-1 26556 for (_iterator10.s(); !(_step10 = _iterator10.n()).done; ) {
-1 26557 var iframeResult = _step10.value;
24981 26558 if (match_ancestry_default(frameAncestry, iframeResult.node.ancestry)) {
24982 26559 r.result = iframeResult.result;
24983 26560 break;
24984 26561 }
24985 26562 }
24986 26563 } catch (err) {
24987 -1 _iterator2.e(err);
-1 26564 _iterator10.e(err);
24988 26565 } finally {
24989 -1 _iterator2.f();
-1 26566 _iterator10.f();
24990 26567 }
24991 26568 });
24992 26569 iframeResults.forEach(function(r) {
@@ -24999,24 +26576,29 @@ module.exports = {
24999 26576 var region_after_default = regionAfter;
25000 26577 var landmarkRoles2 = get_aria_roles_by_type_default('landmark');
25001 26578 var implicitAriaLiveRoles = [ 'alert', 'log', 'status' ];
25002 -1 function isRegion(virtualNode, options) {
25003 -1 var node = virtualNode.actualNode;
25004 -1 var role = get_role_default(virtualNode);
25005 -1 var ariaLive = (node.getAttribute('aria-live') || '').toLowerCase().trim();
25006 -1 if ([ 'assertive', 'polite' ].includes(ariaLive) || implicitAriaLiveRoles.includes(role)) {
25007 -1 return true;
25008 -1 }
25009 -1 if (landmarkRoles2.includes(role)) {
25010 -1 return true;
25011 -1 }
25012 -1 if (options.regionMatcher && matches_default3(virtualNode, options.regionMatcher)) {
25013 -1 return true;
25014 -1 }
25015 -1 return false;
-1 26579 function regionEvaluate(node, options, virtualNode) {
-1 26580 this.data({
-1 26581 isIframe: [ 'iframe', 'frame' ].includes(virtualNode.props.nodeName)
-1 26582 });
-1 26583 var regionlessNodes = cache_default.get('regionlessNodes', function() {
-1 26584 return getRegionlessNodes(options);
-1 26585 });
-1 26586 return !regionlessNodes.includes(virtualNode);
-1 26587 }
-1 26588 function getRegionlessNodes(options) {
-1 26589 var regionlessNodes = findRegionlessElms(axe._tree[0], options).map(function(vNode) {
-1 26590 while (vNode.parent && !vNode.parent._hasRegionDescendant && vNode.parent.actualNode !== document.body) {
-1 26591 vNode = vNode.parent;
-1 26592 }
-1 26593 return vNode;
-1 26594 }).filter(function(vNode, index, array) {
-1 26595 return array.indexOf(vNode) === index;
-1 26596 });
-1 26597 return regionlessNodes;
25016 26598 }
25017 26599 function findRegionlessElms(virtualNode, options) {
25018 26600 var node = virtualNode.actualNode;
25019 -1 if (get_role_default(virtualNode) === 'button' || isRegion(virtualNode, options) || [ 'iframe', 'frame' ].includes(virtualNode.props.nodeName) || _isSkipLink(virtualNode.actualNode) && get_element_by_reference_default(virtualNode.actualNode, 'href') || !is_visible_default(node, true)) {
-1 26601 if (get_role_default(virtualNode) === 'button' || isRegion(virtualNode, options) || [ 'iframe', 'frame' ].includes(virtualNode.props.nodeName) || _isSkipLink(virtualNode.actualNode) && get_element_by_reference_default(virtualNode.actualNode, 'href') || !_isVisibleToScreenReaders(node)) {
25020 26602 var vNode = virtualNode;
25021 26603 while (vNode) {
25022 26604 vNode._hasRegionDescendant = true;
@@ -25029,8 +26611,8 @@ module.exports = {
25029 26611 } else if (node !== document.body && has_content_default(node, true)) {
25030 26612 return [ virtualNode ];
25031 26613 } else {
25032 -1 return virtualNode.children.filter(function(_ref83) {
25033 -1 var actualNode = _ref83.actualNode;
-1 26614 return virtualNode.children.filter(function(_ref106) {
-1 26615 var actualNode = _ref106.actualNode;
25034 26616 return actualNode.nodeType === 1;
25035 26617 }).map(function(vNode) {
25036 26618 return findRegionlessElms(vNode, options);
@@ -25039,31 +26621,25 @@ module.exports = {
25039 26621 }, []);
25040 26622 }
25041 26623 }
25042 -1 function regionEvaluate(node, options, virtualNode) {
25043 -1 var regionlessNodes = cache_default.get('regionlessNodes');
25044 -1 this.data({
25045 -1 isIframe: [ 'iframe', 'frame' ].includes(virtualNode.props.nodeName)
25046 -1 });
25047 -1 if (regionlessNodes) {
25048 -1 return !regionlessNodes.includes(virtualNode);
-1 26624 function isRegion(virtualNode, options) {
-1 26625 var node = virtualNode.actualNode;
-1 26626 var role = get_role_default(virtualNode);
-1 26627 var ariaLive = (node.getAttribute('aria-live') || '').toLowerCase().trim();
-1 26628 if ([ 'assertive', 'polite' ].includes(ariaLive) || implicitAriaLiveRoles.includes(role)) {
-1 26629 return true;
-1 26630 }
-1 26631 if (landmarkRoles2.includes(role)) {
-1 26632 return true;
25049 26633 }
25050 -1 var tree = axe._tree;
25051 -1 regionlessNodes = findRegionlessElms(tree[0], options).map(function(vNode) {
25052 -1 while (vNode.parent && !vNode.parent._hasRegionDescendant && vNode.parent.actualNode !== document.body) {
25053 -1 vNode = vNode.parent;
25054 -1 }
25055 -1 return vNode;
25056 -1 }).filter(function(vNode, index, array) {
25057 -1 return array.indexOf(vNode) === index;
25058 -1 });
25059 -1 cache_default.set('regionlessNodes', regionlessNodes);
25060 -1 return !regionlessNodes.includes(virtualNode);
-1 26634 if (options.regionMatcher && matches_default3(virtualNode, options.regionMatcher)) {
-1 26635 return true;
-1 26636 }
-1 26637 return false;
25061 26638 }
25062 -1 var region_evaluate_default = regionEvaluate;
25063 26639 function skipLinkEvaluate(node) {
25064 26640 var target = get_element_by_reference_default(node, 'href');
25065 26641 if (target) {
25066 -1 return is_visible_default(target, true) || void 0;
-1 26642 return _isVisibleToScreenReaders(target) || void 0;
25067 26643 }
25068 26644 return false;
25069 26645 }
@@ -25154,28 +26730,88 @@ module.exports = {
25154 26730 return virtualNode.hasAttr('alt');
25155 26731 }
25156 26732 var has_alt_evaluate_default = hasAltEvaluate;
-1 26733 function inlineStyleProperty(node, options) {
-1 26734 var cssProperty = options.cssProperty, absoluteValues = options.absoluteValues, minValue = options.minValue, maxValue = options.maxValue, _options$normalValue = options.normalValue, normalValue = _options$normalValue === void 0 ? 0 : _options$normalValue, noImportant = options.noImportant, multiLineOnly = options.multiLineOnly;
-1 26735 if (!noImportant && node.style.getPropertyPriority(cssProperty) !== 'important' || multiLineOnly && !_isMultiline(node)) {
-1 26736 return true;
-1 26737 }
-1 26738 var data2 = {};
-1 26739 if (typeof minValue === 'number') {
-1 26740 data2.minValue = minValue;
-1 26741 }
-1 26742 if (typeof maxValue === 'number') {
-1 26743 data2.maxValue = maxValue;
-1 26744 }
-1 26745 var declaredPropValue = node.style.getPropertyValue(cssProperty);
-1 26746 if ([ 'inherit', 'unset', 'revert', 'revert-layer' ].includes(declaredPropValue)) {
-1 26747 this.data(_extends({
-1 26748 value: declaredPropValue
-1 26749 }, data2));
-1 26750 return true;
-1 26751 }
-1 26752 var value = getNumberValue(node, {
-1 26753 absoluteValues: absoluteValues,
-1 26754 cssProperty: cssProperty,
-1 26755 normalValue: normalValue
-1 26756 });
-1 26757 this.data(_extends({
-1 26758 value: value
-1 26759 }, data2));
-1 26760 if (typeof value !== 'number') {
-1 26761 return void 0;
-1 26762 }
-1 26763 if ((typeof minValue !== 'number' || value >= minValue) && (typeof maxValue !== 'number' || value <= maxValue)) {
-1 26764 return true;
-1 26765 }
-1 26766 return false;
-1 26767 }
-1 26768 function getNumberValue(domNode, _ref107) {
-1 26769 var cssProperty = _ref107.cssProperty, absoluteValues = _ref107.absoluteValues, normalValue = _ref107.normalValue;
-1 26770 var computedStyle = window.getComputedStyle(domNode);
-1 26771 var cssPropValue = computedStyle.getPropertyValue(cssProperty);
-1 26772 if (cssPropValue === 'normal') {
-1 26773 return normalValue;
-1 26774 }
-1 26775 var parsedValue = parseFloat(cssPropValue);
-1 26776 if (absoluteValues) {
-1 26777 return parsedValue;
-1 26778 }
-1 26779 var fontSize = parseFloat(computedStyle.getPropertyValue('font-size'));
-1 26780 var value = Math.round(parsedValue / fontSize * 100) / 100;
-1 26781 if (isNaN(value)) {
-1 26782 return cssPropValue;
-1 26783 }
-1 26784 return value;
-1 26785 }
25157 26786 function isOnScreenEvaluate(node) {
25158 -1 return is_visible_default(node, false) && !is_offscreen_default(node);
-1 26787 return _isVisibleOnScreen(node);
25159 26788 }
25160 26789 var is_on_screen_evaluate_default = isOnScreenEvaluate;
25161 26790 function nonEmptyIfPresentEvaluate(node, options, virtualNode) {
25162 26791 var nodeName2 = virtualNode.props.nodeName;
25163 26792 var type = (virtualNode.attr('type') || '').toLowerCase();
25164 -1 var label5 = virtualNode.attr('value');
25165 -1 if (label5) {
-1 26793 var label3 = virtualNode.attr('value');
-1 26794 if (label3) {
25166 26795 this.data({
25167 26796 messageKey: 'has-label'
25168 26797 });
25169 26798 }
25170 26799 if (nodeName2 === 'input' && [ 'submit', 'reset' ].includes(type)) {
25171 -1 return label5 === null;
-1 26800 return label3 === null;
25172 26801 }
25173 26802 return false;
25174 26803 }
25175 26804 var non_empty_if_present_evaluate_default = nonEmptyIfPresentEvaluate;
25176 26805 function presentationalRoleEvaluate(node, options, virtualNode) {
25177 -1 var role = get_role_default(virtualNode);
25178 26806 var explicitRole2 = get_explicit_role_default(virtualNode);
-1 26807 if ([ 'presentation', 'none' ].includes(explicitRole2) && [ 'iframe', 'frame' ].includes(virtualNode.props.nodeName) && virtualNode.hasAttr('title')) {
-1 26808 this.data({
-1 26809 messageKey: 'iframe',
-1 26810 nodeName: virtualNode.props.nodeName
-1 26811 });
-1 26812 return false;
-1 26813 }
-1 26814 var role = get_role_default(virtualNode);
25179 26815 if ([ 'presentation', 'none' ].includes(role)) {
25180 26816 this.data({
25181 26817 role: role
@@ -25188,7 +26824,7 @@ module.exports = {
25188 26824 var hasGlobalAria = get_global_aria_attrs_default().some(function(attr) {
25189 26825 return virtualNode.hasAttr(attr);
25190 26826 });
25191 -1 var focusable = is_focusable_default(virtualNode);
-1 26827 var focusable = _isFocusable(virtualNode);
25192 26828 var messageKey;
25193 26829 if (hasGlobalAria && !focusable) {
25194 26830 messageKey = 'globalAria';
@@ -25203,13 +26839,12 @@ module.exports = {
25203 26839 });
25204 26840 return false;
25205 26841 }
25206 -1 var presentational_role_evaluate_default = presentationalRoleEvaluate;
25207 26842 function svgNonEmptyTitleEvaluate(node, options, virtualNode) {
25208 26843 if (!virtualNode.children) {
25209 26844 return void 0;
25210 26845 }
25211 -1 var titleNode = virtualNode.children.find(function(_ref84) {
25212 -1 var props = _ref84.props;
-1 26846 var titleNode = virtualNode.children.find(function(_ref108) {
-1 26847 var props = _ref108.props;
25213 26848 return props.nodeName === 'title';
25214 26849 });
25215 26850 if (!titleNode) {
@@ -25219,7 +26854,10 @@ module.exports = {
25219 26854 return false;
25220 26855 }
25221 26856 try {
25222 -1 if (visible_virtual_default(titleNode) === '') {
-1 26857 var titleText2 = subtree_text_default(titleNode, {
-1 26858 includeHidden: true
-1 26859 }).trim();
-1 26860 if (titleText2 === '') {
25223 26861 this.data({
25224 26862 messageKey: 'emptyTitle'
25225 26863 });
@@ -25232,9 +26870,9 @@ module.exports = {
25232 26870 }
25233 26871 var svg_non_empty_title_evaluate_default = svgNonEmptyTitleEvaluate;
25234 26872 function captionFakedEvaluate(node) {
25235 -1 var table5 = to_grid_default(node);
25236 -1 var firstRow = table5[0];
25237 -1 if (table5.length <= 1 || firstRow.length <= 1 || node.rows.length <= 1) {
-1 26873 var table = to_grid_default(node);
-1 26874 var firstRow = table[0];
-1 26875 if (table.length <= 1 || firstRow.length <= 1 || node.rows.length <= 1) {
25238 26876 return true;
25239 26877 }
25240 26878 return firstRow.reduce(function(out, curr, i) {
@@ -25249,10 +26887,22 @@ module.exports = {
25249 26887 return node.nodeName.toUpperCase() === 'TH';
25250 26888 }
25251 26889 var html5_scope_evaluate_default = html5ScopeEvaluate;
25252 -1 function sameCaptionSummaryEvaluate(node) {
25253 -1 return !!(node.summary && node.caption) && node.summary.toLowerCase() === accessible_text_default(node.caption).toLowerCase();
25254 -1 }
25255 26890 var same_caption_summary_evaluate_default = sameCaptionSummaryEvaluate;
-1 26891 function sameCaptionSummaryEvaluate(node, options, virtualNode) {
-1 26892 if (virtualNode.children === void 0) {
-1 26893 return void 0;
-1 26894 }
-1 26895 var summary = virtualNode.attr('summary');
-1 26896 var captionNode = virtualNode.children.find(isCaptionNode);
-1 26897 var caption = captionNode ? sanitize_default(subtree_text_default(captionNode)) : false;
-1 26898 if (!caption || !summary) {
-1 26899 return false;
-1 26900 }
-1 26901 return sanitize_default(summary).toLowerCase() === sanitize_default(caption).toLowerCase();
-1 26902 }
-1 26903 function isCaptionNode(virtualNode) {
-1 26904 return virtualNode.props.nodeName === 'caption';
-1 26905 }
25256 26906 function scopeValueEvaluate(node, options) {
25257 26907 var value = node.getAttribute('scope').toLowerCase();
25258 26908 return options.values.indexOf(value) !== -1;
@@ -25298,7 +26948,7 @@ module.exports = {
25298 26948 cells.forEach(function(cell) {
25299 26949 var isSelf = false;
25300 26950 var notOfTable = false;
25301 -1 if (!cell.hasAttribute('headers')) {
-1 26951 if (!cell.hasAttribute('headers') || !_isVisibleToScreenReaders(cell)) {
25302 26952 return;
25303 26953 }
25304 26954 var headersAttr = cell.getAttribute('headers').trim();
@@ -25393,11 +27043,11 @@ module.exports = {
25393 27043 }
25394 27044 var hidden_content_evaluate_default = hiddenContentEvaluate;
25395 27045 function ariaAllowedAttrMatches(node, virtualNode) {
25396 -1 var aria49 = /^aria-/;
-1 27046 var aria = /^aria-/;
25397 27047 var attrs = virtualNode.attrNames;
25398 27048 if (attrs.length) {
25399 -1 for (var _i23 = 0, l = attrs.length; _i23 < l; _i23++) {
25400 -1 if (aria49.test(attrs[_i23])) {
-1 27049 for (var _i26 = 0, l = attrs.length; _i26 < l; _i26++) {
-1 27050 if (aria.test(attrs[_i26])) {
25401 27051 return true;
25402 27052 }
25403 27053 }
@@ -25413,9 +27063,9 @@ module.exports = {
25413 27063 }
25414 27064 var aria_allowed_role_matches_default = ariaAllowedRoleMatches;
25415 27065 function ariaHasAttrMatches(node, virtualNode) {
25416 -1 var aria49 = /^aria-/;
-1 27066 var aria = /^aria-/;
25417 27067 return virtualNode.attrNames.some(function(attr) {
25418 -1 return aria49.test(attr);
-1 27068 return aria.test(attr);
25419 27069 });
25420 27070 }
25421 27071 var aria_has_attr_matches_default = ariaHasAttrMatches;
@@ -25469,18 +27119,18 @@ module.exports = {
25469 27119 return false;
25470 27120 }
25471 27121 }
25472 -1 if (tabIndex === '-1' && virtualNode.actualNode && !is_visible_default(virtualNode.actualNode, false) && !is_visible_default(virtualNode.actualNode, true)) {
-1 27122 if (tabIndex === '-1' && virtualNode.actualNode && !_isVisibleOnScreen(virtualNode) && !_isVisibleToScreenReaders(virtualNode)) {
25473 27123 return false;
25474 27124 }
25475 27125 return true;
25476 27126 }
25477 27127 var autocomplete_matches_default = autocompleteMatches;
25478 -1 function isInitiatorMatches(node, virtualNode, context5) {
25479 -1 return context5.initiator;
-1 27128 function isInitiatorMatches(node, virtualNode, context) {
-1 27129 return context.initiator;
25480 27130 }
25481 27131 var is_initiator_matches_default = isInitiatorMatches;
25482 -1 function bypassMatches(node, virtualNode, context5) {
25483 -1 if (is_initiator_matches_default(node, virtualNode, context5)) {
-1 27132 function bypassMatches(node, virtualNode, context) {
-1 27133 if (is_initiator_matches_default(node, virtualNode, context)) {
25484 27134 return !!node.querySelector('a[href]');
25485 27135 }
25486 27136 return true;
@@ -25571,8 +27221,8 @@ module.exports = {
25571 27221 }
25572 27222 }
25573 27223 var rects = range.getClientRects();
25574 -1 for (var _index = 0; _index < rects.length; _index++) {
25575 -1 if (visually_overlaps_default(rects[_index], node)) {
-1 27224 for (var _index2 = 0; _index2 < rects.length; _index2++) {
-1 27225 if (visually_overlaps_default(rects[_index2], node)) {
25576 27226 return true;
25577 27227 }
25578 27228 }
@@ -25595,7 +27245,7 @@ module.exports = {
25595 27245 var id = node.getAttribute('id').trim();
25596 27246 var idSelector = '*[id="'.concat(escape_selector_default(id), '"]');
25597 27247 var idMatchingElms = Array.from(get_root_node_default2(node).querySelectorAll(idSelector));
25598 -1 return !is_accessible_ref_default(node) && idMatchingElms.some(is_focusable_default);
-1 27248 return !is_accessible_ref_default(node) && idMatchingElms.some(_isFocusable);
25599 27249 }
25600 27250 var duplicate_id_active_matches_default = duplicateIdActiveMatches;
25601 27251 function duplicateIdAriaMatches(node) {
@@ -25607,13 +27257,13 @@ module.exports = {
25607 27257 var idSelector = '*[id="'.concat(escape_selector_default(id), '"]');
25608 27258 var idMatchingElms = Array.from(get_root_node_default2(node).querySelectorAll(idSelector));
25609 27259 return !is_accessible_ref_default(node) && idMatchingElms.every(function(elm) {
25610 -1 return !is_focusable_default(elm);
-1 27260 return !_isFocusable(elm);
25611 27261 });
25612 27262 }
25613 27263 var duplicate_id_misc_matches_default = duplicateIdMiscMatches;
25614 -1 function frameFocusableContentMatches(node, virtualNode, context5) {
25615 -1 var _context5$size, _context5$size2;
25616 -1 return !context5.initiator && !context5.focusable && ((_context5$size = context5.size) === null || _context5$size === void 0 ? void 0 : _context5$size.width) * ((_context5$size2 = context5.size) === null || _context5$size2 === void 0 ? void 0 : _context5$size2.height) > 1;
-1 27264 function frameFocusableContentMatches(node, virtualNode, context) {
-1 27265 var _context$size, _context$size2;
-1 27266 return !context.initiator && !context.focusable && ((_context$size = context.size) === null || _context$size === void 0 ? void 0 : _context$size.width) * ((_context$size2 = context.size) === null || _context$size2 === void 0 ? void 0 : _context$size2.height) > 1;
25617 27267 }
25618 27268 var frame_focusable_content_matches_default = frameFocusableContentMatches;
25619 27269 function frameTitleHasTextMatches(node) {
@@ -25627,18 +27277,9 @@ module.exports = {
25627 27277 }) !== null;
25628 27278 }
25629 27279 var has_implicit_chromium_role_matches_default = hasImplicitChromiumRoleMatches;
25630 -1 function headingMatches(node) {
25631 -1 var explicitRoles;
25632 -1 if (node.hasAttribute('role')) {
25633 -1 explicitRoles = node.getAttribute('role').split(/\s+/i).filter(axe.commons.aria.isValidRole);
25634 -1 }
25635 -1 if (explicitRoles && explicitRoles.length > 0) {
25636 -1 return explicitRoles.includes('heading');
25637 -1 } else {
25638 -1 return axe.commons.aria.implicitRole(node) === 'heading';
25639 -1 }
-1 27280 function headingMatches(node, virtualNode) {
-1 27281 return get_role_default(virtualNode) === 'heading';
25640 27282 }
25641 -1 var heading_matches_default = headingMatches;
25642 27283 function svgNamespaceMatches(node, virtualNode) {
25643 27284 try {
25644 27285 var nodeName2 = virtualNode.props.nodeName;
@@ -25671,14 +27312,20 @@ module.exports = {
25671 27312 return inserted_into_focus_order_default(node);
25672 27313 }
25673 27314 var inserted_into_focus_order_matches_default = insertedIntoFocusOrderMatches;
-1 27315 function hasVisibleTextMatches(node) {
-1 27316 return _isVisibleOnScreen(node);
-1 27317 }
-1 27318 function isVisibleOnScreenMatches(node, virtualNode) {
-1 27319 return _isVisibleOnScreen(virtualNode);
-1 27320 }
25674 27321 function labelContentNameMismatchMatches(node, virtualNode) {
25675 27322 var role = get_role_default(node);
25676 27323 if (!role) {
25677 27324 return false;
25678 27325 }
25679 27326 var widgetRoles = get_aria_roles_by_type_default('widget');
25680 -1 var isWidgetType = widgetRoles.includes(role);
25681 -1 if (!isWidgetType) {
-1 27327 var isWidgetType2 = widgetRoles.includes(role);
-1 27328 if (!isWidgetType2) {
25682 27329 return false;
25683 27330 }
25684 27331 var rolesWithNameFromContents = get_aria_roles_supporting_name_from_content_default();
@@ -25710,7 +27357,7 @@ module.exports = {
25710 27357 function landmarkUniqueMatches(node, virtualNode) {
25711 27358 var excludedParentsForHeaderFooterLandmarks = [ 'article', 'aside', 'main', 'nav', 'section' ].join(',');
25712 27359 function isHeaderFooterLandmark(headerFooterElement) {
25713 -1 return !find_up_virtual_default(headerFooterElement, excludedParentsForHeaderFooterLandmarks);
-1 27360 return !closest_default(headerFooterElement, excludedParentsForHeaderFooterLandmarks);
25714 27361 }
25715 27362 function isLandmarkVirtual(virtualNode2) {
25716 27363 var actualNode = virtualNode2.actualNode;
@@ -25729,23 +27376,23 @@ module.exports = {
25729 27376 }
25730 27377 return landmarkRoles3.indexOf(role) >= 0 || role === 'region';
25731 27378 }
25732 -1 return isLandmarkVirtual(virtualNode) && is_visible_default(node, true);
-1 27379 return isLandmarkVirtual(virtualNode) && _isVisibleToScreenReaders(node);
25733 27380 }
25734 27381 var landmark_unique_matches_default = landmarkUniqueMatches;
25735 27382 function dataTableMatches2(node) {
25736 -1 return !is_data_table_default(node) && !is_focusable_default(node);
-1 27383 return !is_data_table_default(node) && !_isFocusable(node);
25737 27384 }
25738 27385 var layout_table_matches_default = dataTableMatches2;
25739 27386 function linkInTextBlockMatches(node) {
25740 -1 var text32 = sanitize_default(node.textContent);
-1 27387 var text = sanitize_default(node.innerText);
25741 27388 var role = node.getAttribute('role');
25742 27389 if (role && role !== 'link') {
25743 27390 return false;
25744 27391 }
25745 -1 if (!text32) {
-1 27392 if (!text) {
25746 27393 return false;
25747 27394 }
25748 -1 if (!is_visible_default(node, false)) {
-1 27395 if (!_isVisibleOnScreen(node)) {
25749 27396 return false;
25750 27397 }
25751 27398 return is_in_text_block_default(node);
@@ -25784,8 +27431,8 @@ module.exports = {
25784 27431 if (!role || [ 'none', 'presentation' ].includes(role)) {
25785 27432 return true;
25786 27433 }
25787 -1 var _ref85 = aria_roles_default[role] || {}, accessibleNameRequired = _ref85.accessibleNameRequired;
25788 -1 if (accessibleNameRequired || is_focusable_default(virtualNode)) {
-1 27434 var _ref109 = aria_roles_default[role] || {}, accessibleNameRequired = _ref109.accessibleNameRequired;
-1 27435 if (accessibleNameRequired || _isFocusable(virtualNode)) {
25789 27436 return true;
25790 27437 }
25791 27438 return false;
@@ -25802,14 +27449,34 @@ module.exports = {
25802 27449 return true;
25803 27450 }
25804 27451 var no_naming_method_matches_default = noNamingMethodMatches;
25805 -1 function noRoleMatches(node) {
25806 -1 return !node.getAttribute('role');
-1 27452 function noNegativeTabindexMatches(node, virtualNode) {
-1 27453 var tabindex = parseInt(virtualNode.attr('tabindex'), 10);
-1 27454 return isNaN(tabindex) || tabindex >= 0;
-1 27455 }
-1 27456 var no_negative_tabindex_matches_default = noNegativeTabindexMatches;
-1 27457 function noRoleMatches(node, vNode) {
-1 27458 return !vNode.attr('role');
25807 27459 }
25808 27460 var no_role_matches_default = noRoleMatches;
25809 27461 function notHtmlMatches(node, virtualNode) {
25810 27462 return virtualNode.props.nodeName !== 'html';
25811 27463 }
25812 27464 var not_html_matches_default = notHtmlMatches;
-1 27465 var object_is_loaded_matches_default = function object_is_loaded_matches_default(node, vNode) {
-1 27466 return [ no_explicit_name_required_matches_default, objectHasLoaded ].every(function(fn) {
-1 27467 return fn(node, vNode);
-1 27468 });
-1 27469 };
-1 27470 function objectHasLoaded(node) {
-1 27471 var _node$ownerDocument;
-1 27472 if (!(node !== null && node !== void 0 && (_node$ownerDocument = node.ownerDocument) !== null && _node$ownerDocument !== void 0 && _node$ownerDocument.createRange)) {
-1 27473 return true;
-1 27474 }
-1 27475 var range = node.ownerDocument.createRange();
-1 27476 range.setStart(node, 0);
-1 27477 range.setEnd(node, node.childNodes.length);
-1 27478 return range.getClientRects().length === 0;
-1 27479 }
25813 27480 function pAsHeadingMatches(node) {
25814 27481 var children = Array.from(node.parentNode.childNodes);
25815 27482 var nodeText = node.textContent.trim();
@@ -25865,6 +27532,45 @@ module.exports = {
25865 27532 return _isSkipLink(node) && is_offscreen_default(node);
25866 27533 }
25867 27534 var skip_link_matches_default = skipLinkMatches;
-1 27535 function tableOrGridRoleMatches(_, vNode) {
-1 27536 var role = get_role_default(vNode);
-1 27537 return [ 'treegrid', 'grid', 'table' ].includes(role);
-1 27538 }
-1 27539 function widgetNotInline(node, vNode) {
-1 27540 return matchesFns.every(function(fn) {
-1 27541 return fn(node, vNode);
-1 27542 });
-1 27543 }
-1 27544 var matchesFns = [ function(node, vNode) {
-1 27545 return isWidgetType(vNode);
-1 27546 }, function(node, vNode) {
-1 27547 return isNotAreaElement(vNode);
-1 27548 }, function(node, vNode) {
-1 27549 return !svg_namespace_matches_default(node, vNode);
-1 27550 }, function(node, vNode) {
-1 27551 return _isFocusable(vNode);
-1 27552 }, function(node, vNode) {
-1 27553 return _isInTabOrder(vNode) || !hasWidgetAncestorInTabOrder(vNode);
-1 27554 }, function(node) {
-1 27555 return !is_in_text_block_default(node, {
-1 27556 noLengthCompare: true
-1 27557 });
-1 27558 } ];
-1 27559 function isWidgetType(vNode) {
-1 27560 return get_role_type_default(vNode) === 'widget';
-1 27561 }
-1 27562 function isNotAreaElement(vNode) {
-1 27563 return vNode.props.nodeName !== 'area';
-1 27564 }
-1 27565 var hasWidgetAncestorInTabOrder = memoize_default(function hasWidgetAncestorInTabOrderMemoized(vNode) {
-1 27566 if (!(vNode !== null && vNode !== void 0 && vNode.parent)) {
-1 27567 return false;
-1 27568 }
-1 27569 if (isWidgetType(vNode.parent) && _isInTabOrder(vNode.parent)) {
-1 27570 return true;
-1 27571 }
-1 27572 return hasWidgetAncestorInTabOrderMemoized(vNode.parent);
-1 27573 });
25868 27574 function windowIsTopMatches(node) {
25869 27575 return node.ownerDocument.defaultView.self === node.ownerDocument.defaultView.top;
25870 27576 }
@@ -25880,10 +27586,11 @@ module.exports = {
25880 27586 'accesskeys-after': accesskeys_after_default,
25881 27587 'accesskeys-evaluate': accesskeys_evaluate_default,
25882 27588 'alt-space-value-evaluate': alt_space_value_evaluate_default,
25883 -1 'aria-allowed-attr-evaluate': aria_allowed_attr_evaluate_default,
-1 27589 'aria-allowed-attr-evaluate': ariaAllowedAttrEvaluate,
25884 27590 'aria-allowed-attr-matches': aria_allowed_attr_matches_default,
25885 27591 'aria-allowed-role-evaluate': aria_allowed_role_evaluate_default,
25886 27592 'aria-allowed-role-matches': aria_allowed_role_matches_default,
-1 27593 'aria-busy-evaluate': ariaBusyEvaluate,
25887 27594 'aria-errormessage-evaluate': aria_errormessage_evaluate_default,
25888 27595 'aria-has-attr-matches': aria_has_attr_matches_default,
25889 27596 'aria-hidden-body-evaluate': aria_hidden_body_evaluate_default,
@@ -25892,7 +27599,7 @@ module.exports = {
25892 27599 'aria-labelledby-evaluate': aria_labelledby_evaluate_default,
25893 27600 'aria-level-evaluate': aria_level_evaluate_default,
25894 27601 'aria-prohibited-attr-evaluate': ariaProhibitedAttrEvaluate,
25895 -1 'aria-required-attr-evaluate': aria_required_attr_evaluate_default,
-1 27602 'aria-required-attr-evaluate': ariaRequiredAttrEvaluate,
25896 27603 'aria-required-children-evaluate': aria_required_children_evaluate_default,
25897 27604 'aria-required-children-matches': aria_required_children_matches_default,
25898 27605 'aria-required-parent-evaluate': aria_required_parent_evaluate_default,
@@ -25900,7 +27607,7 @@ module.exports = {
25900 27607 'aria-roledescription-evaluate': aria_roledescription_evaluate_default,
25901 27608 'aria-unsupported-attr-evaluate': aria_unsupported_attr_evaluate_default,
25902 27609 'aria-valid-attr-evaluate': aria_valid_attr_evaluate_default,
25903 -1 'aria-valid-attr-value-evaluate': aria_valid_attr_value_evaluate_default,
-1 27610 'aria-valid-attr-value-evaluate': ariaValidAttrValueEvaluate,
25904 27611 'attr-non-space-content-evaluate': attr_non_space_content_evaluate_default,
25905 27612 'autocomplete-appropriate-evaluate': autocomplete_appropriate_evaluate_default,
25906 27613 'autocomplete-matches': autocomplete_matches_default,
@@ -25932,7 +27639,7 @@ module.exports = {
25932 27639 'focusable-modal-open-evaluate': focusable_modal_open_evaluate_default,
25933 27640 'focusable-no-name-evaluate': focusable_no_name_evaluate_default,
25934 27641 'focusable-not-tabbable-evaluate': focusable_not_tabbable_evaluate_default,
25935 -1 'frame-focusable-content-evaluate': frame_focusable_content_evaluate_default,
-1 27642 'frame-focusable-content-evaluate': frameFocusableContentEvaluate,
25936 27643 'frame-focusable-content-matches': frame_focusable_content_matches_default,
25937 27644 'frame-tested-after': frame_tested_after_default,
25938 27645 'frame-tested-evaluate': frame_tested_evaluate_default,
@@ -25943,9 +27650,9 @@ module.exports = {
25943 27650 'has-global-aria-attribute-evaluate': has_global_aria_attribute_evaluate_default,
25944 27651 'has-implicit-chromium-role-matches': has_implicit_chromium_role_matches_default,
25945 27652 'has-lang-evaluate': has_lang_evaluate_default,
25946 -1 'has-text-content-evaluate': has_text_content_evaluate_default,
-1 27653 'has-text-content-evaluate': hasTextContentEvaluate,
25947 27654 'has-widget-role-evaluate': has_widget_role_evaluate_default,
25948 -1 'heading-matches': heading_matches_default,
-1 27655 'heading-matches': headingMatches,
25949 27656 'heading-order-after': headingOrderAfter,
25950 27657 'heading-order-evaluate': heading_order_evaluate_default,
25951 27658 'help-same-as-label-evaluate': help_same_as_label_evaluate_default,
@@ -25957,12 +27664,16 @@ module.exports = {
25957 27664 'identical-links-same-purpose-evaluate': identical_links_same_purpose_evaluate_default,
25958 27665 'identical-links-same-purpose-matches': identical_links_same_purpose_matches_default,
25959 27666 'implicit-evaluate': implicit_evaluate_default,
-1 27667 'inline-style-property-evaluate': inlineStyleProperty,
25960 27668 'inserted-into-focus-order-matches': inserted_into_focus_order_matches_default,
25961 27669 'internal-link-present-evaluate': internal_link_present_evaluate_default,
-1 27670 'invalid-children-evaluate': invalidChildrenEvaluate,
25962 27671 'invalidrole-evaluate': invalidrole_evaluate_default,
25963 27672 'is-element-focusable-evaluate': is_element_focusable_evaluate_default,
25964 27673 'is-initiator-matches': is_initiator_matches_default,
25965 27674 'is-on-screen-evaluate': is_on_screen_evaluate_default,
-1 27675 'is-visible-matches': hasVisibleTextMatches,
-1 27676 'is-visible-on-screen-matches': isVisibleOnScreenMatches,
25966 27677 'label-content-name-mismatch-evaluate': label_content_name_mismatch_evaluate_default,
25967 27678 'label-content-name-mismatch-matches': label_content_name_mismatch_matches_default,
25968 27679 'label-matches': label_matches_default,
@@ -25974,9 +27685,10 @@ module.exports = {
25974 27685 'layout-table-matches': layout_table_matches_default,
25975 27686 'link-in-text-block-evaluate': link_in_text_block_evaluate_default,
25976 27687 'link-in-text-block-matches': link_in_text_block_matches_default,
-1 27688 'link-in-text-block-style-evaluate': link_in_text_block_style_evaluate_default,
25977 27689 'listitem-evaluate': listitemEvaluate,
25978 27690 'matches-definition-evaluate': matches_definition_evaluate_default,
25979 -1 'meta-refresh-evaluate': meta_refresh_evaluate_default,
-1 27691 'meta-refresh-evaluate': metaRefreshEvaluate,
25980 27692 'meta-viewport-scale-evaluate': meta_viewport_scale_evaluate_default,
25981 27693 'multiple-label-evaluate': multiple_label_evaluate_default,
25982 27694 'nested-interactive-matches': nested_interactive_matches_default,
@@ -25987,9 +27699,11 @@ module.exports = {
25987 27699 'no-focusable-content-evaluate': noFocusableContentEvaluate,
25988 27700 'no-implicit-explicit-label-evaluate': no_implicit_explicit_label_evaluate_default,
25989 27701 'no-naming-method-matches': no_naming_method_matches_default,
-1 27702 'no-negative-tabindex-matches': no_negative_tabindex_matches_default,
25990 27703 'no-role-matches': no_role_matches_default,
25991 27704 'non-empty-if-present-evaluate': non_empty_if_present_evaluate_default,
25992 27705 'not-html-matches': not_html_matches_default,
-1 27706 'object-is-loaded-matches': object_is_loaded_matches_default,
25993 27707 'only-dlitems-evaluate': only_dlitems_evaluate_default,
25994 27708 'only-listitems-evaluate': only_listitems_evaluate_default,
25995 27709 'p-as-heading-evaluate': p_as_heading_evaluate_default,
@@ -25997,9 +27711,9 @@ module.exports = {
25997 27711 'page-no-duplicate-after': page_no_duplicate_after_default,
25998 27712 'page-no-duplicate-evaluate': page_no_duplicate_evaluate_default,
25999 27713 'presentation-role-conflict-matches': presentation_role_conflict_matches_default,
26000 -1 'presentational-role-evaluate': presentational_role_evaluate_default,
-1 27714 'presentational-role-evaluate': presentationalRoleEvaluate,
26001 27715 'region-after': region_after_default,
26002 -1 'region-evaluate': region_evaluate_default,
-1 27716 'region-evaluate': regionEvaluate,
26003 27717 'same-caption-summary-evaluate': same_caption_summary_evaluate_default,
26004 27718 'scope-value-evaluate': scope_value_evaluate_default,
26005 27719 'scrollable-region-focusable-matches': scrollable_region_focusable_matches_default,
@@ -26009,6 +27723,9 @@ module.exports = {
26009 27723 'svg-namespace-matches': svg_namespace_matches_default,
26010 27724 'svg-non-empty-title-evaluate': svg_non_empty_title_evaluate_default,
26011 27725 'tabindex-evaluate': tabindex_evaluate_default,
-1 27726 'table-or-grid-role-matches': tableOrGridRoleMatches,
-1 27727 'target-offset-evaluate': targetOffsetEvaluate,
-1 27728 'target-size-evaluate': targetSize,
26012 27729 'td-has-header-evaluate': td_has_header_evaluate_default,
26013 27730 'td-headers-attr-evaluate': td_headers_attr_evaluate_default,
26014 27731 'th-has-data-cells-evaluate': th_has_data_cells_evaluate_default,
@@ -26018,13 +27735,14 @@ module.exports = {
26018 27735 'unsupportedrole-evaluate': unsupportedrole_evaluate_default,
26019 27736 'valid-lang-evaluate': valid_lang_evaluate_default,
26020 27737 'valid-scrollable-semantics-evaluate': valid_scrollable_semantics_evaluate_default,
-1 27738 'widget-not-inline-matches': widgetNotInline,
26021 27739 'window-is-top-matches': window_is_top_matches_default,
26022 27740 'xml-lang-mismatch-evaluate': xml_lang_mismatch_evaluate_default,
26023 27741 'xml-lang-mismatch-matches': xml_lang_mismatch_matches_default
26024 27742 };
26025 27743 var metadata_function_map_default = metadataFunctionMap;
26026 -1 function CheckResult(check4) {
26027 -1 this.id = check4.id;
-1 27744 function CheckResult(check) {
-1 27745 this.id = check.id;
26028 27746 this.data = null;
26029 27747 this.relatedNodes = [];
26030 27748 this.result = null;
@@ -26058,7 +27776,7 @@ module.exports = {
26058 27776 }
26059 27777 }
26060 27778 Check.prototype.enabled = true;
26061 -1 Check.prototype.run = function run(node, options, context5, resolve, reject) {
-1 27779 Check.prototype.run = function run(node, options, context, resolve, reject) {
26062 27780 options = options || {};
26063 27781 var enabled = options.hasOwnProperty('enabled') ? options.enabled : this.enabled;
26064 27782 var checkOptions = this.getOptions(options.options);
@@ -26067,7 +27785,7 @@ module.exports = {
26067 27785 var helper = check_helper_default(checkResult, options, resolve, reject);
26068 27786 var result;
26069 27787 try {
26070 -1 result = this.evaluate.call(helper, node.actualNode, checkOptions, node, context5);
-1 27788 result = this.evaluate.call(helper, node.actualNode, checkOptions, node, context);
26071 27789 } catch (e) {
26072 27790 if (node && node.actualNode) {
26073 27791 e.errorNode = new dq_element_default(node).toJSON();
@@ -26083,7 +27801,7 @@ module.exports = {
26083 27801 resolve(null);
26084 27802 }
26085 27803 };
26086 -1 Check.prototype.runSync = function runSync(node, options, context5) {
-1 27804 Check.prototype.runSync = function runSync(node, options, context) {
26087 27805 options = options || {};
26088 27806 var _options = options, _options$enabled = _options.enabled, enabled = _options$enabled === void 0 ? this.enabled : _options$enabled;
26089 27807 if (!enabled) {
@@ -26097,7 +27815,7 @@ module.exports = {
26097 27815 };
26098 27816 var result;
26099 27817 try {
26100 -1 result = this.evaluate.call(helper, node.actualNode, checkOptions, node, context5);
-1 27818 result = this.evaluate.call(helper, node.actualNode, checkOptions, node, context);
26101 27819 } catch (e) {
26102 27820 if (node && node.actualNode) {
26103 27821 e.errorNode = new dq_element_default(node).toJSON();
@@ -26107,8 +27825,8 @@ module.exports = {
26107 27825 checkResult.result = result;
26108 27826 return checkResult;
26109 27827 };
26110 -1 Check.prototype.configure = function configure(spec) {
26111 -1 var _this4 = this;
-1 27828 Check.prototype.configure = function configure2(spec) {
-1 27829 var _this5 = this;
26112 27830 if (!spec.evaluate || metadata_function_map_default[spec.evaluate]) {
26113 27831 this._internalCheck = true;
26114 27832 }
@@ -26125,7 +27843,7 @@ module.exports = {
26125 27843 [ 'evaluate', 'after' ].filter(function(prop) {
26126 27844 return spec.hasOwnProperty(prop);
26127 27845 }).forEach(function(prop) {
26128 -1 return _this4[prop] = createExecutionContext(spec[prop]);
-1 27846 return _this5[prop] = createExecutionContext(spec[prop]);
26129 27847 });
26130 27848 };
26131 27849 Check.prototype.getOptions = function getOptions(options) {
@@ -26136,10 +27854,10 @@ module.exports = {
26136 27854 }
26137 27855 };
26138 27856 var check_default = Check;
26139 -1 function RuleResult(rule3) {
26140 -1 this.id = rule3.id;
-1 27857 function RuleResult(rule) {
-1 27858 this.id = rule.id;
26141 27859 this.result = constants_default.NA;
26142 -1 this.pageLevel = rule3.pageLevel;
-1 27860 this.pageLevel = rule.pageLevel;
26143 27861 this.impact = null;
26144 27862 this.nodes = [];
26145 27863 }
@@ -26161,33 +27879,34 @@ module.exports = {
26161 27879 this.none = spec.none || [];
26162 27880 this.tags = spec.tags || [];
26163 27881 this.preload = spec.preload ? true : false;
-1 27882 this.actIds = spec.actIds;
26164 27883 if (spec.matches) {
26165 27884 this.matches = createExecutionContext(spec.matches);
26166 27885 }
26167 27886 }
26168 -1 Rule.prototype.matches = function matches13() {
-1 27887 Rule.prototype.matches = function matches3() {
26169 27888 return true;
26170 27889 };
26171 -1 Rule.prototype.gather = function gather(context5) {
-1 27890 Rule.prototype.gather = function gather(context) {
26172 27891 var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
26173 27892 var markStart = 'mark_gather_start_' + this.id;
26174 27893 var markEnd = 'mark_gather_end_' + this.id;
26175 -1 var markHiddenStart = 'mark_isHidden_start_' + this.id;
26176 -1 var markHiddenEnd = 'mark_isHidden_end_' + this.id;
-1 27894 var markHiddenStart = 'mark_isVisibleToScreenReaders_start_' + this.id;
-1 27895 var markHiddenEnd = 'mark_isVisibleToScreenReaders_end_' + this.id;
26177 27896 if (options.performanceTimer) {
26178 27897 performance_timer_default.mark(markStart);
26179 27898 }
26180 -1 var elements = select_default(this.selector, context5);
-1 27899 var elements = _select(this.selector, context);
26181 27900 if (this.excludeHidden) {
26182 27901 if (options.performanceTimer) {
26183 27902 performance_timer_default.mark(markHiddenStart);
26184 27903 }
26185 27904 elements = elements.filter(function(element) {
26186 -1 return !is_hidden_default(element.actualNode);
-1 27905 return _isVisibleToScreenReaders(element);
26187 27906 });
26188 27907 if (options.performanceTimer) {
26189 27908 performance_timer_default.mark(markHiddenEnd);
26190 -1 performance_timer_default.measure('rule_' + this.id + '#gather_axe.utils.isHidden', markHiddenStart, markHiddenEnd);
-1 27909 performance_timer_default.measure('rule_' + this.id + '#gather_axe.utils.isVisibleToScreenReaders', markHiddenStart, markHiddenEnd);
26191 27910 }
26192 27911 }
26193 27912 if (options.performanceTimer) {
@@ -26196,19 +27915,19 @@ module.exports = {
26196 27915 }
26197 27916 return elements;
26198 27917 };
26199 -1 Rule.prototype.runChecks = function runChecks(type, node, options, context5, resolve, reject) {
-1 27918 Rule.prototype.runChecks = function runChecks(type, node, options, context, resolve, reject) {
26200 27919 var self2 = this;
26201 27920 var checkQueue = queue_default();
26202 27921 this[type].forEach(function(c) {
26203 -1 var check4 = self2._audit.checks[c.id || c];
26204 -1 var option = get_check_option_default(check4, self2.id, options);
-1 27922 var check = self2._audit.checks[c.id || c];
-1 27923 var option = get_check_option_default(check, self2.id, options);
26205 27924 checkQueue.defer(function(res, rej) {
26206 -1 check4.run(node, option, context5, res, rej);
-1 27925 check.run(node, option, context, res, rej);
26207 27926 });
26208 27927 });
26209 27928 checkQueue.then(function(results) {
26210 -1 results = results.filter(function(check4) {
26211 -1 return check4;
-1 27929 results = results.filter(function(check) {
-1 27930 return check;
26212 27931 });
26213 27932 resolve({
26214 27933 type: type,
@@ -26216,24 +27935,24 @@ module.exports = {
26216 27935 });
26217 27936 })['catch'](reject);
26218 27937 };
26219 -1 Rule.prototype.runChecksSync = function runChecksSync(type, node, options, context5) {
-1 27938 Rule.prototype.runChecksSync = function runChecksSync(type, node, options, context) {
26220 27939 var self2 = this;
26221 27940 var results = [];
26222 27941 this[type].forEach(function(c) {
26223 -1 var check4 = self2._audit.checks[c.id || c];
26224 -1 var option = get_check_option_default(check4, self2.id, options);
26225 -1 results.push(check4.runSync(node, option, context5));
-1 27942 var check = self2._audit.checks[c.id || c];
-1 27943 var option = get_check_option_default(check, self2.id, options);
-1 27944 results.push(check.runSync(node, option, context));
26226 27945 });
26227 -1 results = results.filter(function(check4) {
26228 -1 return check4;
-1 27946 results = results.filter(function(check) {
-1 27947 return check;
26229 27948 });
26230 27949 return {
26231 27950 type: type,
26232 27951 results: results
26233 27952 };
26234 27953 };
26235 -1 Rule.prototype.run = function run2(context5) {
26236 -1 var _this5 = this;
-1 27954 Rule.prototype.run = function run2(context) {
-1 27955 var _this6 = this;
26237 27956 var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
26238 27957 var resolve = arguments.length > 2 ? arguments[2] : undefined;
26239 27958 var reject = arguments.length > 3 ? arguments[3] : undefined;
@@ -26244,7 +27963,7 @@ module.exports = {
26244 27963 var ruleResult = new rule_result_default(this);
26245 27964 var nodes;
26246 27965 try {
26247 -1 nodes = this.gatherAndMatchNodes(context5, options);
-1 27966 nodes = this.gatherAndMatchNodes(context, options);
26248 27967 } catch (error) {
26249 27968 reject(new SupportError({
26250 27969 cause: error,
@@ -26260,7 +27979,7 @@ module.exports = {
26260 27979 var checkQueue = queue_default();
26261 27980 [ 'any', 'all', 'none' ].forEach(function(type) {
26262 27981 checkQueue.defer(function(res, rej) {
26263 -1 _this5.runChecks(type, node, options, context5, res, rej);
-1 27982 _this6.runChecks(type, node, options, context, res, rej);
26264 27983 });
26265 27984 });
26266 27985 checkQueue.then(function(results) {
@@ -26268,7 +27987,7 @@ module.exports = {
26268 27987 if (result) {
26269 27988 result.node = new dq_element_default(node, options);
26270 27989 ruleResult.nodes.push(result);
26271 -1 if (_this5.reviewOnFail) {
-1 27990 if (_this6.reviewOnFail) {
26272 27991 [ 'any', 'all' ].forEach(function(type) {
26273 27992 result[type].forEach(function(checkResult) {
26274 27993 if (checkResult.result === false) {
@@ -26301,8 +28020,8 @@ module.exports = {
26301 28020 return reject(error);
26302 28021 });
26303 28022 };
26304 -1 Rule.prototype.runSync = function runSync2(context5) {
26305 -1 var _this6 = this;
-1 28023 Rule.prototype.runSync = function runSync2(context) {
-1 28024 var _this7 = this;
26306 28025 var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
26307 28026 if (options.performanceTimer) {
26308 28027 this._trackPerformance();
@@ -26310,7 +28029,7 @@ module.exports = {
26310 28029 var ruleResult = new rule_result_default(this);
26311 28030 var nodes;
26312 28031 try {
26313 -1 nodes = this.gatherAndMatchNodes(context5, options);
-1 28032 nodes = this.gatherAndMatchNodes(context, options);
26314 28033 } catch (error) {
26315 28034 throw new SupportError({
26316 28035 cause: error,
@@ -26323,13 +28042,13 @@ module.exports = {
26323 28042 nodes.forEach(function(node) {
26324 28043 var results = [];
26325 28044 [ 'any', 'all', 'none' ].forEach(function(type) {
26326 -1 results.push(_this6.runChecksSync(type, node, options, context5));
-1 28045 results.push(_this7.runChecksSync(type, node, options, context));
26327 28046 });
26328 28047 var result = getResult(results);
26329 28048 if (result) {
26330 28049 result.node = node.actualNode ? new dq_element_default(node, options) : null;
26331 28050 ruleResult.nodes.push(result);
26332 -1 if (_this6.reviewOnFail) {
-1 28051 if (_this7.reviewOnFail) {
26333 28052 [ 'any', 'all' ].forEach(function(type) {
26334 28053 result[type].forEach(function(checkResult) {
26335 28054 if (checkResult.result === false) {
@@ -26385,16 +28104,16 @@ module.exports = {
26385 28104 return null;
26386 28105 }
26387 28106 }
26388 -1 Rule.prototype.gatherAndMatchNodes = function gatherAndMatchNodes(context5, options) {
26389 -1 var _this7 = this;
-1 28107 Rule.prototype.gatherAndMatchNodes = function gatherAndMatchNodes(context, options) {
-1 28108 var _this8 = this;
26390 28109 var markMatchesStart = 'mark_matches_start_' + this.id;
26391 28110 var markMatchesEnd = 'mark_matches_end_' + this.id;
26392 -1 var nodes = this.gather(context5, options);
-1 28111 var nodes = this.gather(context, options);
26393 28112 if (options.performanceTimer) {
26394 28113 performance_timer_default.mark(markMatchesStart);
26395 28114 }
26396 28115 nodes = nodes.filter(function(node) {
26397 -1 return _this7.matches(node.actualNode, node, context5);
-1 28116 return _this8.matches(node.actualNode, node, context);
26398 28117 });
26399 28118 if (options.performanceTimer) {
26400 28119 performance_timer_default.mark(markMatchesEnd);
@@ -26402,10 +28121,10 @@ module.exports = {
26402 28121 }
26403 28122 return nodes;
26404 28123 };
26405 -1 function findAfterChecks(rule3) {
26406 -1 return get_all_checks_default(rule3).map(function(c) {
26407 -1 var check4 = rule3._audit.checks[c.id || c];
26408 -1 return check4 && typeof check4.after === 'function' ? check4 : null;
-1 28124 function findAfterChecks(rule) {
-1 28125 return get_all_checks_default(rule).map(function(c) {
-1 28126 var check = rule._audit.checks[c.id || c];
-1 28127 return check && typeof check.after === 'function' ? check : null;
26409 28128 }).filter(Boolean);
26410 28129 }
26411 28130 function findCheckResults(nodes, checkID) {
@@ -26422,8 +28141,8 @@ module.exports = {
26422 28141 return checkResults;
26423 28142 }
26424 28143 function filterChecks(checks) {
26425 -1 return checks.filter(function(check4) {
26426 -1 return check4.filtered !== true;
-1 28144 return checks.filter(function(check) {
-1 28145 return check.filtered !== true;
26427 28146 });
26428 28147 }
26429 28148 function sanitizeNodes(result) {
@@ -26449,12 +28168,22 @@ module.exports = {
26449 28168 return nodes;
26450 28169 }
26451 28170 Rule.prototype.after = function after(result, options) {
-1 28171 var _this9 = this;
26452 28172 var afterChecks = findAfterChecks(this);
26453 28173 var ruleID = this.id;
26454 -1 afterChecks.forEach(function(check4) {
26455 -1 var beforeResults = findCheckResults(result.nodes, check4.id);
26456 -1 var option = get_check_option_default(check4, ruleID, options);
26457 -1 var afterResults = check4.after(beforeResults, option);
-1 28174 afterChecks.forEach(function(check) {
-1 28175 var beforeResults = findCheckResults(result.nodes, check.id);
-1 28176 var option = get_check_option_default(check, ruleID, options);
-1 28177 var afterResults = check.after(beforeResults, option);
-1 28178 if (_this9.reviewOnFail) {
-1 28179 afterResults.forEach(function(checkResult) {
-1 28180 var changeAnyAllResults = (_this9.any.includes(checkResult.id) || _this9.all.includes(checkResult.id)) && checkResult.result === false;
-1 28181 var changeNoneResult = _this9.none.includes(checkResult.id) && checkResult.result === true;
-1 28182 if (changeAnyAllResults || changeNoneResult) {
-1 28183 checkResult.result = void 0;
-1 28184 }
-1 28185 });
-1 28186 }
26458 28187 beforeResults.forEach(function(item) {
26459 28188 delete item.node;
26460 28189 if (afterResults.indexOf(item) === -1) {
@@ -26465,7 +28194,7 @@ module.exports = {
26465 28194 result.nodes = sanitizeNodes(result);
26466 28195 return result;
26467 28196 };
26468 -1 Rule.prototype.configure = function configure2(spec) {
-1 28197 Rule.prototype.configure = function configure3(spec) {
26469 28198 if (spec.hasOwnProperty('selector')) {
26470 28199 this.selector = spec.selector;
26471 28200 }
@@ -26493,6 +28222,9 @@ module.exports = {
26493 28222 if (spec.hasOwnProperty('tags')) {
26494 28223 this.tags = spec.tags;
26495 28224 }
-1 28225 if (spec.hasOwnProperty('actIds')) {
-1 28226 this.actIds = spec.actIds;
-1 28227 }
26496 28228 if (spec.hasOwnProperty('matches')) {
26497 28229 this.matches = createExecutionContext(spec.matches);
26498 28230 }
@@ -26502,7 +28234,7 @@ module.exports = {
26502 28234 }
26503 28235 };
26504 28236 var rule_default = Rule;
26505 -1 var dot = __toModule(require_doT());
-1 28237 var import_dot2 = __toModule(require_doT());
26506 28238 var dotRegex = /\{\{.+?\}\}/g;
26507 28239 function getDefaultOrigin() {
26508 28240 if (window.origin) {
@@ -26512,11 +28244,11 @@ module.exports = {
26512 28244 return window.location.origin;
26513 28245 }
26514 28246 }
26515 -1 function getDefaultConfiguration(audit3) {
-1 28247 function getDefaultConfiguration(audit) {
26516 28248 var config;
26517 -1 if (audit3) {
26518 -1 config = clone_default(audit3);
26519 -1 config.commons = audit3.commons;
-1 28249 if (audit) {
-1 28250 config = clone_default(audit);
-1 28251 config.commons = audit.commons;
26520 28252 } else {
26521 28253 config = {};
26522 28254 }
@@ -26534,19 +28266,19 @@ module.exports = {
26534 28266 }, config.data);
26535 28267 return config;
26536 28268 }
26537 -1 function unpackToObject(collection, audit3, method) {
-1 28269 function unpackToObject(collection, audit, method) {
26538 28270 var i, l;
26539 28271 for (i = 0, l = collection.length; i < l; i++) {
26540 -1 audit3[method](collection[i]);
-1 28272 audit[method](collection[i]);
26541 28273 }
26542 28274 }
26543 28275 var mergeCheckLocale = function mergeCheckLocale(a, b) {
26544 28276 var pass = b.pass, fail = b.fail;
26545 28277 if (typeof pass === 'string' && dotRegex.test(pass)) {
26546 -1 pass = dot['default'].compile(pass);
-1 28278 pass = import_dot2['default'].compile(pass);
26547 28279 }
26548 28280 if (typeof fail === 'string' && dotRegex.test(fail)) {
26549 -1 fail = dot['default'].compile(fail);
-1 28281 fail = import_dot2['default'].compile(fail);
26550 28282 }
26551 28283 return _extends({}, a, {
26552 28284 messages: {
@@ -26559,10 +28291,10 @@ module.exports = {
26559 28291 var mergeRuleLocale = function mergeRuleLocale(a, b) {
26560 28292 var help = b.help, description = b.description;
26561 28293 if (typeof help === 'string' && dotRegex.test(help)) {
26562 -1 help = dot['default'].compile(help);
-1 28294 help = import_dot2['default'].compile(help);
26563 28295 }
26564 28296 if (typeof description === 'string' && dotRegex.test(description)) {
26565 -1 description = dot['default'].compile(description);
-1 28297 description = import_dot2['default'].compile(description);
26566 28298 }
26567 28299 return _extends({}, a, {
26568 28300 help: help || a.help,
@@ -26572,7 +28304,7 @@ module.exports = {
26572 28304 var mergeFailureMessage = function mergeFailureMessage(a, b) {
26573 28305 var failureMessage = b.failureMessage;
26574 28306 if (typeof failureMessage === 'string' && dotRegex.test(failureMessage)) {
26575 -1 failureMessage = dot['default'].compile(failureMessage);
-1 28307 failureMessage = import_dot2['default'].compile(failureMessage);
26576 28308 }
26577 28309 return _extends({}, a, {
26578 28310 failureMessage: failureMessage || a.failureMessage
@@ -26580,15 +28312,15 @@ module.exports = {
26580 28312 };
26581 28313 var mergeFallbackMessage = function mergeFallbackMessage(a, b) {
26582 28314 if (typeof b === 'string' && dotRegex.test(b)) {
26583 -1 b = dot['default'].compile(b);
-1 28315 b = import_dot2['default'].compile(b);
26584 28316 }
26585 28317 return b || a;
26586 28318 };
26587 28319 var Audit = function() {
26588 -1 function Audit(audit3) {
-1 28320 function Audit(audit) {
26589 28321 _classCallCheck(this, Audit);
26590 28322 this.lang = 'en';
26591 -1 this.defaultConfig = audit3;
-1 28323 this.defaultConfig = audit;
26592 28324 this.standards = standards_default;
26593 28325 this._init();
26594 28326 this._defaultLocale = null;
@@ -26607,10 +28339,10 @@ module.exports = {
26607 28339 lang: this.lang
26608 28340 };
26609 28341 var checkIDs = Object.keys(this.data.checks);
26610 -1 for (var _i24 = 0; _i24 < checkIDs.length; _i24++) {
26611 -1 var id = checkIDs[_i24];
26612 -1 var check4 = this.data.checks[id];
26613 -1 var _check4$messages = check4.messages, pass = _check4$messages.pass, fail = _check4$messages.fail, incomplete = _check4$messages.incomplete;
-1 28342 for (var _i27 = 0; _i27 < checkIDs.length; _i27++) {
-1 28343 var id = checkIDs[_i27];
-1 28344 var check = this.data.checks[id];
-1 28345 var _check$messages = check.messages, pass = _check$messages.pass, fail = _check$messages.fail, incomplete = _check$messages.incomplete;
26614 28346 locale.checks[id] = {
26615 28347 pass: pass,
26616 28348 fail: fail,
@@ -26618,18 +28350,18 @@ module.exports = {
26618 28350 };
26619 28351 }
26620 28352 var ruleIDs = Object.keys(this.data.rules);
26621 -1 for (var _i25 = 0; _i25 < ruleIDs.length; _i25++) {
26622 -1 var _id = ruleIDs[_i25];
26623 -1 var rule3 = this.data.rules[_id];
26624 -1 var description = rule3.description, help = rule3.help;
-1 28353 for (var _i28 = 0; _i28 < ruleIDs.length; _i28++) {
-1 28354 var _id = ruleIDs[_i28];
-1 28355 var rule = this.data.rules[_id];
-1 28356 var description = rule.description, help = rule.help;
26625 28357 locale.rules[_id] = {
26626 28358 description: description,
26627 28359 help: help
26628 28360 };
26629 28361 }
26630 28362 var failureSummaries = Object.keys(this.data.failureSummaries);
26631 -1 for (var _i26 = 0; _i26 < failureSummaries.length; _i26++) {
26632 -1 var type = failureSummaries[_i26];
-1 28363 for (var _i29 = 0; _i29 < failureSummaries.length; _i29++) {
-1 28364 var type = failureSummaries[_i29];
26633 28365 var failureSummary2 = this.data.failureSummaries[type];
26634 28366 var failureMessage = failureSummary2.failureMessage;
26635 28367 locale.failureSummaries[type] = {
@@ -26652,8 +28384,8 @@ module.exports = {
26652 28384 key: '_applyCheckLocale',
26653 28385 value: function _applyCheckLocale(checks) {
26654 28386 var keys = Object.keys(checks);
26655 -1 for (var _i27 = 0; _i27 < keys.length; _i27++) {
26656 -1 var id = keys[_i27];
-1 28387 for (var _i30 = 0; _i30 < keys.length; _i30++) {
-1 28388 var id = keys[_i30];
26657 28389 if (!this.data.checks[id]) {
26658 28390 throw new Error('Locale provided for unknown check: "'.concat(id, '"'));
26659 28391 }
@@ -26664,8 +28396,8 @@ module.exports = {
26664 28396 key: '_applyRuleLocale',
26665 28397 value: function _applyRuleLocale(rules) {
26666 28398 var keys = Object.keys(rules);
26667 -1 for (var _i28 = 0; _i28 < keys.length; _i28++) {
26668 -1 var id = keys[_i28];
-1 28399 for (var _i31 = 0; _i31 < keys.length; _i31++) {
-1 28400 var id = keys[_i31];
26669 28401 if (!this.data.rules[id]) {
26670 28402 throw new Error('Locale provided for unknown rule: "'.concat(id, '"'));
26671 28403 }
@@ -26676,8 +28408,8 @@ module.exports = {
26676 28408 key: '_applyFailureSummaries',
26677 28409 value: function _applyFailureSummaries(messages) {
26678 28410 var keys = Object.keys(messages);
26679 -1 for (var _i29 = 0; _i29 < keys.length; _i29++) {
26680 -1 var key = keys[_i29];
-1 28411 for (var _i32 = 0; _i32 < keys.length; _i32++) {
-1 28412 var key = keys[_i32];
26681 28413 if (!this.data.failureSummaries[key]) {
26682 28414 throw new Error('Locale provided for unknown failureMessage: "'.concat(key, '"'));
26683 28415 }
@@ -26709,10 +28441,10 @@ module.exports = {
26709 28441 value: function setAllowedOrigins(allowedOrigins) {
26710 28442 var defaultOrigin = getDefaultOrigin();
26711 28443 this.allowedOrigins = [];
26712 -1 var _iterator3 = _createForOfIteratorHelper(allowedOrigins), _step3;
-1 28444 var _iterator11 = _createForOfIteratorHelper(allowedOrigins), _step11;
26713 28445 try {
26714 -1 for (_iterator3.s(); !(_step3 = _iterator3.n()).done; ) {
26715 -1 var origin = _step3.value;
-1 28446 for (_iterator11.s(); !(_step11 = _iterator11.n()).done; ) {
-1 28447 var origin = _step11.value;
26716 28448 if (origin === constants_default.allOrigins) {
26717 28449 this.allowedOrigins = [ '*' ];
26718 28450 return;
@@ -26723,32 +28455,32 @@ module.exports = {
26723 28455 }
26724 28456 }
26725 28457 } catch (err) {
26726 -1 _iterator3.e(err);
-1 28458 _iterator11.e(err);
26727 28459 } finally {
26728 -1 _iterator3.f();
-1 28460 _iterator11.f();
26729 28461 }
26730 28462 }
26731 28463 }, {
26732 28464 key: '_init',
26733 28465 value: function _init() {
26734 -1 var audit3 = getDefaultConfiguration(this.defaultConfig);
26735 -1 this.lang = audit3.lang || 'en';
26736 -1 this.reporter = audit3.reporter;
-1 28466 var audit = getDefaultConfiguration(this.defaultConfig);
-1 28467 this.lang = audit.lang || 'en';
-1 28468 this.reporter = audit.reporter;
26737 28469 this.commands = {};
26738 28470 this.rules = [];
26739 28471 this.checks = {};
26740 28472 this.brand = 'axe';
26741 28473 this.application = 'axeAPI';
26742 28474 this.tagExclude = [ 'experimental' ];
26743 -1 this.noHtml = audit3.noHtml;
26744 -1 this.allowedOrigins = audit3.allowedOrigins;
26745 -1 unpackToObject(audit3.rules, this, 'addRule');
26746 -1 unpackToObject(audit3.checks, this, 'addCheck');
-1 28475 this.noHtml = audit.noHtml;
-1 28476 this.allowedOrigins = audit.allowedOrigins;
-1 28477 unpackToObject(audit.rules, this, 'addRule');
-1 28478 unpackToObject(audit.checks, this, 'addCheck');
26747 28479 this.data = {};
26748 -1 this.data.checks = audit3.data && audit3.data.checks || {};
26749 -1 this.data.rules = audit3.data && audit3.data.rules || {};
26750 -1 this.data.failureSummaries = audit3.data && audit3.data.failureSummaries || {};
26751 -1 this.data.incompleteFallbackMessage = audit3.data && audit3.data.incompleteFallbackMessage || '';
-1 28480 this.data.checks = audit.data && audit.data.checks || {};
-1 28481 this.data.rules = audit.data && audit.data.rules || {};
-1 28482 this.data.failureSummaries = audit.data && audit.data.failureSummaries || {};
-1 28483 this.data.incompleteFallbackMessage = audit.data && audit.data.incompleteFallbackMessage || '';
26752 28484 this._constructHelpUrls();
26753 28485 }
26754 28486 }, {
@@ -26762,9 +28494,9 @@ module.exports = {
26762 28494 if (spec.metadata) {
26763 28495 this.data.rules[spec.id] = spec.metadata;
26764 28496 }
26765 -1 var rule3 = this.getRule(spec.id);
26766 -1 if (rule3) {
26767 -1 rule3.configure(spec);
-1 28497 var rule = this.getRule(spec.id);
-1 28498 if (rule) {
-1 28499 rule.configure(spec);
26768 28500 } else {
26769 28501 this.rules.push(new rule_default(spec, this));
26770 28502 }
@@ -26793,15 +28525,15 @@ module.exports = {
26793 28525 }
26794 28526 }, {
26795 28527 key: 'run',
26796 -1 value: function run(context5, options, resolve, reject) {
-1 28528 value: function run(context, options, resolve, reject) {
26797 28529 this.normalizeOptions(options);
26798 28530 axe._selectCache = [];
26799 -1 var allRulesToRun = getRulesToRun(this.rules, context5, options);
-1 28531 var allRulesToRun = getRulesToRun(this.rules, context, options);
26800 28532 var runNowRules = allRulesToRun.now;
26801 28533 var runLaterRules = allRulesToRun.later;
26802 28534 var nowRulesQueue = queue_default();
26803 -1 runNowRules.forEach(function(rule3) {
26804 -1 nowRulesQueue.defer(getDefferedRule(rule3, context5, options));
-1 28535 runNowRules.forEach(function(rule) {
-1 28536 nowRulesQueue.defer(getDefferedRule(rule, context, options));
26805 28537 });
26806 28538 var preloaderQueue = queue_default();
26807 28539 if (runLaterRules.length) {
@@ -26822,7 +28554,7 @@ module.exports = {
26822 28554 if (assetsFromQueue && assetsFromQueue.length) {
26823 28555 var assets = assetsFromQueue[0];
26824 28556 if (assets) {
26825 -1 context5 = _extends({}, context5, assets);
-1 28557 context = _extends({}, context, assets);
26826 28558 }
26827 28559 }
26828 28560 var nowRulesResults = nowRulesAndPreloaderResults[0];
@@ -26834,8 +28566,8 @@ module.exports = {
26834 28566 return;
26835 28567 }
26836 28568 var laterRulesQueue = queue_default();
26837 -1 runLaterRules.forEach(function(rule3) {
26838 -1 var deferredRule = getDefferedRule(rule3, context5, options);
-1 28569 runLaterRules.forEach(function(rule) {
-1 28570 var deferredRule = getDefferedRule(rule, context, options);
26839 28571 laterRulesQueue.defer(deferredRule);
26840 28572 });
26841 28573 laterRulesQueue.then(function(laterRuleResults) {
@@ -26851,29 +28583,29 @@ module.exports = {
26851 28583 value: function after(results, options) {
26852 28584 var rules = this.rules;
26853 28585 return results.map(function(ruleResult) {
26854 -1 var rule3 = find_by_default(rules, 'id', ruleResult.id);
26855 -1 if (!rule3) {
-1 28586 var rule = find_by_default(rules, 'id', ruleResult.id);
-1 28587 if (!rule) {
26856 28588 throw new Error('Result for unknown rule. You may be running mismatch axe-core versions');
26857 28589 }
26858 -1 return rule3.after(ruleResult, options);
-1 28590 return rule.after(ruleResult, options);
26859 28591 });
26860 28592 }
26861 28593 }, {
26862 28594 key: 'getRule',
26863 28595 value: function getRule(ruleId) {
26864 -1 return this.rules.find(function(rule3) {
26865 -1 return rule3.id === ruleId;
-1 28596 return this.rules.find(function(rule) {
-1 28597 return rule.id === ruleId;
26866 28598 });
26867 28599 }
26868 28600 }, {
26869 28601 key: 'normalizeOptions',
26870 28602 value: function normalizeOptions(options) {
26871 -1 var audit3 = this;
-1 28603 var audit = this;
26872 28604 var tags = [];
26873 28605 var ruleIds = [];
26874 -1 audit3.rules.forEach(function(rule3) {
26875 -1 ruleIds.push(rule3.id);
26876 -1 rule3.tags.forEach(function(tag) {
-1 28606 audit.rules.forEach(function(rule) {
-1 28607 ruleIds.push(rule.id);
-1 28608 rule.tags.forEach(function(tag) {
26877 28609 if (!tags.includes(tag)) {
26878 28610 tags.push(tag);
26879 28611 }
@@ -26962,16 +28694,16 @@ module.exports = {
26962 28694 }, {
26963 28695 key: '_constructHelpUrls',
26964 28696 value: function _constructHelpUrls() {
26965 -1 var _this8 = this;
-1 28697 var _this10 = this;
26966 28698 var previous = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
26967 28699 var version = (axe.version.match(/^[1-9][0-9]*\.[0-9]+/) || [ 'x.y' ])[0];
26968 -1 this.rules.forEach(function(rule3) {
26969 -1 if (!_this8.data.rules[rule3.id]) {
26970 -1 _this8.data.rules[rule3.id] = {};
-1 28700 this.rules.forEach(function(rule) {
-1 28701 if (!_this10.data.rules[rule.id]) {
-1 28702 _this10.data.rules[rule.id] = {};
26971 28703 }
26972 -1 var metaData = _this8.data.rules[rule3.id];
26973 -1 if (typeof metaData.helpUrl !== 'string' || previous && metaData.helpUrl === getHelpUrl(previous, rule3.id, version)) {
26974 -1 metaData.helpUrl = getHelpUrl(_this8, rule3.id, version);
-1 28704 var metaData = _this10.data.rules[rule.id];
-1 28705 if (typeof metaData.helpUrl !== 'string' || previous && metaData.helpUrl === getHelpUrl(previous, rule.id, version)) {
-1 28706 metaData.helpUrl = getHelpUrl(_this10, rule.id, version);
26975 28707 }
26976 28708 });
26977 28709 }
@@ -26984,268 +28716,65 @@ module.exports = {
26984 28716 } ]);
26985 28717 return Audit;
26986 28718 }();
26987 -1 function getRulesToRun(rules, context5, options) {
-1 28719 function getRulesToRun(rules, context, options) {
26988 28720 var base = {
26989 28721 now: [],
26990 28722 later: []
26991 28723 };
26992 -1 var splitRules = rules.reduce(function(out, rule3) {
26993 -1 if (!rule_should_run_default(rule3, context5, options)) {
-1 28724 var splitRules = rules.reduce(function(out, rule) {
-1 28725 if (!rule_should_run_default(rule, context, options)) {
26994 28726 return out;
26995 28727 }
26996 -1 if (rule3.preload) {
26997 -1 out.later.push(rule3);
-1 28728 if (rule.preload) {
-1 28729 out.later.push(rule);
26998 28730 return out;
26999 28731 }
27000 -1 out.now.push(rule3);
-1 28732 out.now.push(rule);
27001 28733 return out;
27002 28734 }, base);
27003 28735 return splitRules;
27004 28736 }
27005 -1 function getDefferedRule(rule3, context5, options) {
-1 28737 function getDefferedRule(rule, context, options) {
27006 28738 if (options.performanceTimer) {
27007 -1 performance_timer_default.mark('mark_rule_start_' + rule3.id);
-1 28739 performance_timer_default.mark('mark_rule_start_' + rule.id);
27008 28740 }
27009 28741 return function(resolve, reject) {
27010 -1 rule3.run(context5, options, function(ruleResult) {
-1 28742 rule.run(context, options, function(ruleResult) {
27011 28743 resolve(ruleResult);
27012 -1 }, function(err2) {
27013 -1 if (!options.debug) {
27014 -1 var errResult = Object.assign(new rule_result_default(rule3), {
27015 -1 result: constants_default.CANTTELL,
27016 -1 description: 'An error occured while running this rule',
27017 -1 message: err2.message,
27018 -1 stack: err2.stack,
27019 -1 error: err2,
27020 -1 errorNode: err2.errorNode
27021 -1 });
27022 -1 resolve(errResult);
27023 -1 } else {
27024 -1 reject(err2);
27025 -1 }
27026 -1 });
27027 -1 };
27028 -1 }
27029 -1 function getHelpUrl(_ref86, ruleId, version) {
27030 -1 var brand = _ref86.brand, application = _ref86.application, lang = _ref86.lang;
27031 -1 return constants_default.helpUrlBase + brand + '/' + (version || axe.version.substring(0, axe.version.lastIndexOf('.'))) + '/' + ruleId + '?application=' + encodeURIComponent(application) + (lang && lang !== 'en' ? '&lang=' + encodeURIComponent(lang) : '');
27032 -1 }
27033 -1 var audit_default = Audit;
27034 -1 var imports_exports = {};
27035 -1 __export(imports_exports, {
27036 -1 CssSelectorParser: function CssSelectorParser() {
27037 -1 return css_selector_parser2.CssSelectorParser;
27038 -1 },
27039 -1 doT: function doT() {
27040 -1 return dot2['default'];
27041 -1 },
27042 -1 emojiRegexText: function emojiRegexText() {
27043 -1 return emoji_regex3['default'];
27044 -1 },
27045 -1 memoize: function memoize() {
27046 -1 return memoizee2['default'];
27047 -1 }
27048 -1 });
27049 -1 var css_selector_parser2 = __toModule(require_lib());
27050 -1 var dot2 = __toModule(require_doT());
27051 -1 var emoji_regex3 = __toModule(require_emoji_regex());
27052 -1 var memoizee2 = __toModule(require_memoizee());
27053 -1 var es6_promise = __toModule(require_es6_promise());
27054 -1 var typedarray = __toModule(require_typedarray());
27055 -1 var weakmap_polyfill = __toModule(require_weakmap_polyfill());
27056 -1 dot2['default'].templateSettings.strip = false;
27057 -1 if (!('Promise' in window)) {
27058 -1 es6_promise['default'].polyfill();
27059 -1 }
27060 -1 if (!('Uint32Array' in window)) {
27061 -1 window.Uint32Array = typedarray.Uint32Array;
27062 -1 }
27063 -1 if (window.Uint32Array) {
27064 -1 if (!('some' in window.Uint32Array.prototype)) {
27065 -1 Object.defineProperty(window.Uint32Array.prototype, 'some', {
27066 -1 value: Array.prototype.some
27067 -1 });
27068 -1 }
27069 -1 if (!('reduce' in window.Uint32Array.prototype)) {
27070 -1 Object.defineProperty(window.Uint32Array.prototype, 'reduce', {
27071 -1 value: Array.prototype.reduce
27072 -1 });
27073 -1 }
27074 -1 }
27075 -1 function cleanup(resolve, reject) {
27076 -1 resolve = resolve || function res() {};
27077 -1 reject = reject || axe.log;
27078 -1 if (!axe._audit) {
27079 -1 throw new Error('No audit configured');
27080 -1 }
27081 -1 var q = axe.utils.queue();
27082 -1 var cleanupErrors = [];
27083 -1 Object.keys(axe.plugins).forEach(function(key) {
27084 -1 q.defer(function(res) {
27085 -1 var rej = function rej2(err2) {
27086 -1 cleanupErrors.push(err2);
27087 -1 res();
27088 -1 };
27089 -1 try {
27090 -1 axe.plugins[key].cleanup(res, rej);
27091 -1 } catch (err2) {
27092 -1 rej(err2);
27093 -1 }
27094 -1 });
27095 -1 });
27096 -1 var flattenedTree = axe.utils.getFlattenedTree(document.body);
27097 -1 axe.utils.querySelectorAll(flattenedTree, 'iframe, frame').forEach(function(node) {
27098 -1 q.defer(function(res, rej) {
27099 -1 return axe.utils.sendCommandToFrame(node.actualNode, {
27100 -1 command: 'cleanup-plugin'
27101 -1 }, res, rej);
27102 -1 });
27103 -1 });
27104 -1 q.then(function(results) {
27105 -1 if (cleanupErrors.length === 0) {
27106 -1 resolve(results);
27107 -1 } else {
27108 -1 reject(cleanupErrors);
27109 -1 }
27110 -1 })['catch'](reject);
27111 -1 }
27112 -1 var cleanup_default = cleanup;
27113 -1 var reporters = {};
27114 -1 var defaultReporter;
27115 -1 function hasReporter(reporterName) {
27116 -1 return reporters.hasOwnProperty(reporterName);
27117 -1 }
27118 -1 function getReporter(reporter5) {
27119 -1 if (typeof reporter5 === 'string' && reporters[reporter5]) {
27120 -1 return reporters[reporter5];
27121 -1 }
27122 -1 if (typeof reporter5 === 'function') {
27123 -1 return reporter5;
27124 -1 }
27125 -1 return defaultReporter;
27126 -1 }
27127 -1 function addReporter(name, cb, isDefault) {
27128 -1 reporters[name] = cb;
27129 -1 if (isDefault) {
27130 -1 defaultReporter = cb;
27131 -1 }
27132 -1 }
27133 -1 function configure3(spec) {
27134 -1 var audit3;
27135 -1 audit3 = axe._audit;
27136 -1 if (!audit3) {
27137 -1 throw new Error('No audit configured');
27138 -1 }
27139 -1 if (spec.axeVersion || spec.ver) {
27140 -1 var specVersion = spec.axeVersion || spec.ver;
27141 -1 if (!/^\d+\.\d+\.\d+(-canary)?/.test(specVersion)) {
27142 -1 throw new Error('Invalid configured version '.concat(specVersion));
27143 -1 }
27144 -1 var _specVersion$split = specVersion.split('-'), _specVersion$split2 = _slicedToArray(_specVersion$split, 2), version = _specVersion$split2[0], canary = _specVersion$split2[1];
27145 -1 var _version$split$map = version.split('.').map(Number), _version$split$map2 = _slicedToArray(_version$split$map, 3), major = _version$split$map2[0], minor = _version$split$map2[1], patch = _version$split$map2[2];
27146 -1 var _axe$version$split = axe.version.split('-'), _axe$version$split2 = _slicedToArray(_axe$version$split, 2), axeVersion = _axe$version$split2[0], axeCanary = _axe$version$split2[1];
27147 -1 var _axeVersion$split$map = axeVersion.split('.').map(Number), _axeVersion$split$map2 = _slicedToArray(_axeVersion$split$map, 3), axeMajor = _axeVersion$split$map2[0], axeMinor = _axeVersion$split$map2[1], axePatch = _axeVersion$split$map2[2];
27148 -1 if (major !== axeMajor || axeMinor < minor || axeMinor === minor && axePatch < patch || major === axeMajor && minor === axeMinor && patch === axePatch && canary && canary !== axeCanary) {
27149 -1 throw new Error('Configured version '.concat(specVersion, ' is not compatible with current axe version ').concat(axe.version));
27150 -1 }
27151 -1 }
27152 -1 if (spec.reporter && (typeof spec.reporter === 'function' || hasReporter(spec.reporter))) {
27153 -1 audit3.reporter = spec.reporter;
27154 -1 }
27155 -1 if (spec.checks) {
27156 -1 if (!Array.isArray(spec.checks)) {
27157 -1 throw new TypeError('Checks property must be an array');
27158 -1 }
27159 -1 spec.checks.forEach(function(check4) {
27160 -1 if (!check4.id) {
27161 -1 throw new TypeError('Configured check '.concat(JSON.stringify(check4), ' is invalid. Checks must be an object with at least an id property'));
27162 -1 }
27163 -1 audit3.addCheck(check4);
27164 -1 });
27165 -1 }
27166 -1 var modifiedRules = [];
27167 -1 if (spec.rules) {
27168 -1 if (!Array.isArray(spec.rules)) {
27169 -1 throw new TypeError('Rules property must be an array');
27170 -1 }
27171 -1 spec.rules.forEach(function(rule3) {
27172 -1 if (!rule3.id) {
27173 -1 throw new TypeError('Configured rule '.concat(JSON.stringify(rule3), ' is invalid. Rules must be an object with at least an id property'));
27174 -1 }
27175 -1 modifiedRules.push(rule3.id);
27176 -1 audit3.addRule(rule3);
27177 -1 });
27178 -1 }
27179 -1 if (spec.disableOtherRules) {
27180 -1 audit3.rules.forEach(function(rule3) {
27181 -1 if (modifiedRules.includes(rule3.id) === false) {
27182 -1 rule3.enabled = false;
27183 -1 }
27184 -1 });
27185 -1 }
27186 -1 if (typeof spec.branding !== 'undefined') {
27187 -1 audit3.setBranding(spec.branding);
27188 -1 } else {
27189 -1 audit3._constructHelpUrls();
27190 -1 }
27191 -1 if (spec.tagExclude) {
27192 -1 audit3.tagExclude = spec.tagExclude;
27193 -1 }
27194 -1 if (spec.locale) {
27195 -1 audit3.applyLocale(spec.locale);
27196 -1 }
27197 -1 if (spec.standards) {
27198 -1 configureStandards(spec.standards);
27199 -1 }
27200 -1 if (spec.noHtml) {
27201 -1 audit3.noHtml = true;
27202 -1 }
27203 -1 if (spec.allowedOrigins) {
27204 -1 if (!Array.isArray(spec.allowedOrigins)) {
27205 -1 throw new TypeError('Allowed origins property must be an array');
27206 -1 }
27207 -1 if (spec.allowedOrigins.includes('*')) {
27208 -1 throw new Error('"*" is not allowed. Use "'.concat(constants_default.allOrigins, '" instead'));
27209 -1 }
27210 -1 audit3.setAllowedOrigins(spec.allowedOrigins);
27211 -1 }
27212 -1 }
27213 -1 var configure_default = configure3;
27214 -1 function frameMessenger2(frameHandler) {
27215 -1 _respondable.updateMessenger(frameHandler);
27216 -1 }
27217 -1 function getRules(tags) {
27218 -1 tags = tags || [];
27219 -1 var matchingRules = !tags.length ? axe._audit.rules : axe._audit.rules.filter(function(item) {
27220 -1 return !!tags.filter(function(tag) {
27221 -1 return item.tags.indexOf(tag) !== -1;
27222 -1 }).length;
27223 -1 });
27224 -1 var ruleData = axe._audit.data.rules || {};
27225 -1 return matchingRules.map(function(matchingRule) {
27226 -1 var rd = ruleData[matchingRule.id] || {};
27227 -1 return {
27228 -1 ruleId: matchingRule.id,
27229 -1 description: rd.description,
27230 -1 help: rd.help,
27231 -1 helpUrl: rd.helpUrl,
27232 -1 tags: matchingRule.tags
27233 -1 };
27234 -1 });
-1 28744 }, function(err2) {
-1 28745 if (!options.debug) {
-1 28746 var errResult = Object.assign(new rule_result_default(rule), {
-1 28747 result: constants_default.CANTTELL,
-1 28748 description: 'An error occured while running this rule',
-1 28749 message: err2.message,
-1 28750 stack: err2.stack,
-1 28751 error: err2,
-1 28752 errorNode: err2.errorNode
-1 28753 });
-1 28754 resolve(errResult);
-1 28755 } else {
-1 28756 reject(err2);
-1 28757 }
-1 28758 });
-1 28759 };
27235 28760 }
27236 -1 var get_rules_default = getRules;
27237 -1 function setupGlobals(context5) {
-1 28761 function getHelpUrl(_ref110, ruleId, version) {
-1 28762 var brand = _ref110.brand, application = _ref110.application, lang = _ref110.lang;
-1 28763 return constants_default.helpUrlBase + brand + '/' + (version || axe.version.substring(0, axe.version.lastIndexOf('.'))) + '/' + ruleId + '?application=' + encodeURIComponent(application) + (lang && lang !== 'en' ? '&lang=' + encodeURIComponent(lang) : '');
-1 28764 }
-1 28765 var audit_default = Audit;
-1 28766 function setupGlobals(context) {
27238 28767 var hasWindow = window && 'Node' in window && 'NodeList' in window;
27239 28768 var hasDoc = !!document;
27240 28769 if (hasWindow && hasDoc) {
27241 28770 return;
27242 28771 }
27243 -1 if (!context5 || !context5.ownerDocument) {
-1 28772 if (!context || !context.ownerDocument) {
27244 28773 throw new Error('Required "window" or "document" globals not defined and cannot be deduced from the context. Either set the globals before running or pass in a valid Element.');
27245 28774 }
27246 28775 if (!hasDoc) {
27247 28776 cache_default.set('globalDocumentSet', true);
27248 -1 document = context5.ownerDocument;
-1 28777 document = context.ownerDocument;
27249 28778 }
27250 28779 if (!hasWindow) {
27251 28780 cache_default.set('globalWindowSet', true);
@@ -27273,27 +28802,27 @@ module.exports = {
27273 28802 axe._selectCache = void 0;
27274 28803 }
27275 28804 var teardown_default = teardown;
27276 -1 function runRules(context5, options, resolve, reject) {
-1 28805 function runRules(context, options, resolve, reject) {
27277 28806 try {
27278 -1 context5 = new Context(context5);
27279 -1 axe._tree = context5.flatTree;
27280 -1 axe._selectorData = _getSelectorData(context5.flatTree);
-1 28807 context = new Context(context);
-1 28808 axe._tree = context.flatTree;
-1 28809 axe._selectorData = _getSelectorData(context.flatTree);
27281 28810 } catch (e) {
27282 28811 teardown_default();
27283 28812 return reject(e);
27284 28813 }
27285 28814 var q = queue_default();
27286 -1 var audit3 = axe._audit;
-1 28815 var audit = axe._audit;
27287 28816 if (options.performanceTimer) {
27288 28817 performance_timer_default.auditStart();
27289 28818 }
27290 -1 if (context5.frames.length && options.iframes !== false) {
-1 28819 if (context.frames.length && options.iframes !== false) {
27291 28820 q.defer(function(res, rej) {
27292 -1 _collectResultsFromFrames(context5, options, 'rules', null, res, rej);
-1 28821 _collectResultsFromFrames(context, options, 'rules', null, res, rej);
27293 28822 });
27294 28823 }
27295 28824 q.defer(function(res, rej) {
27296 -1 audit3.run(context5, options, res, rej);
-1 28825 audit.run(context, options, res, rej);
27297 28826 });
27298 28827 q.then(function(data2) {
27299 28828 try {
@@ -27305,8 +28834,8 @@ module.exports = {
27305 28834 results: results2
27306 28835 };
27307 28836 }));
27308 -1 if (context5.initiator) {
27309 -1 results = audit3.after(results, options);
-1 28837 if (context.initiator) {
-1 28838 results = audit.after(results, options);
27310 28839 results.forEach(publish_metadata_default);
27311 28840 results = results.map(finalize_result_default);
27312 28841 }
@@ -27334,16 +28863,16 @@ module.exports = {
27334 28863 }
27335 28864 callback(err2);
27336 28865 };
27337 -1 var context5 = data2 && data2.context || {};
27338 -1 if (context5.hasOwnProperty('include') && !context5.include.length) {
27339 -1 context5.include = [ document ];
-1 28866 var context = data2 && data2.context || {};
-1 28867 if (context.hasOwnProperty('include') && !context.include.length) {
-1 28868 context.include = [ document ];
27340 28869 }
27341 28870 var options = data2 && data2.options || {};
27342 28871 switch (data2.command) {
27343 28872 case 'rules':
27344 -1 return run_rules_default(context5, options, function(results, cleanup5) {
-1 28873 return run_rules_default(context, options, function(results, cleanup3) {
27345 28874 resolve(results);
27346 -1 cleanup5();
-1 28875 cleanup3();
27347 28876 }, reject);
27348 28877
27349 28878 case 'cleanup-plugin':
@@ -27363,8 +28892,8 @@ module.exports = {
27363 28892 });
27364 28893 });
27365 28894 }
27366 -1 function load(audit3) {
27367 -1 axe._audit = new audit_default(audit3);
-1 28895 function load(audit) {
-1 28896 axe._audit = new audit_default(audit);
27368 28897 }
27369 28898 var load_default = load;
27370 28899 function Plugin(spec) {
@@ -27381,7 +28910,7 @@ module.exports = {
27381 28910 Plugin.prototype.collect = function collect() {
27382 28911 return this._collect.apply(this, arguments);
27383 28912 };
27384 -1 Plugin.prototype.cleanup = function cleanup3(done) {
-1 28913 Plugin.prototype.cleanup = function cleanup2(done) {
27385 28914 var q = axe.utils.queue();
27386 28915 var that = this;
27387 28916 Object.keys(this._registry).forEach(function(key) {
@@ -27399,11 +28928,11 @@ module.exports = {
27399 28928 }
27400 28929 var plugins_default = registerPlugin;
27401 28930 function reset() {
27402 -1 var audit3 = axe._audit;
27403 -1 if (!audit3) {
-1 28931 var audit = axe._audit;
-1 28932 if (!audit) {
27404 28933 throw new Error('No audit configured');
27405 28934 }
27406 -1 audit3.resetRulesAndChecks();
-1 28935 audit.resetRulesAndChecks();
27407 28936 resetStandards();
27408 28937 }
27409 28938 var reset_default = reset;
@@ -27414,20 +28943,26 @@ module.exports = {
27414 28943 if (!(vNode instanceof abstract_virtual_node_default)) {
27415 28944 vNode = new serial_virtual_node_default(vNode);
27416 28945 }
27417 -1 var rule3 = get_rule_default(ruleId);
27418 -1 if (!rule3) {
-1 28946 var rule = get_rule_default(ruleId);
-1 28947 if (!rule) {
27419 28948 throw new Error('unknown rule `' + ruleId + '`');
27420 28949 }
27421 -1 rule3 = Object.create(rule3, {
-1 28950 rule = Object.create(rule, {
27422 28951 excludeHidden: {
27423 28952 value: false
27424 28953 }
27425 28954 });
27426 -1 var context5 = {
-1 28955 var context = {
27427 28956 initiator: true,
27428 -1 include: [ vNode ]
-1 28957 include: [ vNode ],
-1 28958 exclude: [],
-1 28959 frames: [],
-1 28960 page: false,
-1 28961 focusable: true,
-1 28962 size: {},
-1 28963 flatTree: []
27429 28964 };
27430 -1 var rawResults = rule3.runSync(context5, options);
-1 28965 var rawResults = rule.runSync(context, options);
27431 28966 publish_metadata_default(rawResults);
27432 28967 finalize_result_default(rawResults);
27433 28968 var results = aggregate_result_default([ rawResults ]);
@@ -27440,18 +28975,17 @@ module.exports = {
27440 28975 toolOptions: options
27441 28976 });
27442 28977 }
27443 -1 var run_virtual_rule_default = runVirtualRule;
27444 -1 function normalizeRunParams(_ref87) {
27445 -1 var _ref89, _options$reporter, _axe$_audit;
27446 -1 var _ref88 = _slicedToArray(_ref87, 3), context5 = _ref88[0], options = _ref88[1], callback = _ref88[2];
-1 28978 function normalizeRunParams(_ref111) {
-1 28979 var _ref113, _options$reporter, _axe$_audit;
-1 28980 var _ref112 = _slicedToArray(_ref111, 3), context = _ref112[0], options = _ref112[1], callback = _ref112[2];
27447 28981 var typeErr = new TypeError('axe.run arguments are invalid');
27448 -1 if (!isContext(context5)) {
-1 28982 if (!isContextSpec(context)) {
27449 28983 if (callback !== void 0) {
27450 28984 throw typeErr;
27451 28985 }
27452 28986 callback = options;
27453 -1 options = context5;
27454 -1 context5 = document;
-1 28987 options = context;
-1 28988 context = document;
27455 28989 }
27456 28990 if (_typeof(options) !== 'object') {
27457 28991 if (callback !== void 0) {
@@ -27464,40 +28998,20 @@ module.exports = {
27464 28998 throw typeErr;
27465 28999 }
27466 29000 options = clone_default(options);
27467 -1 options.reporter = (_ref89 = (_options$reporter = options.reporter) !== null && _options$reporter !== void 0 ? _options$reporter : (_axe$_audit = axe._audit) === null || _axe$_audit === void 0 ? void 0 : _axe$_audit.reporter) !== null && _ref89 !== void 0 ? _ref89 : 'v1';
-1 29001 options.reporter = (_ref113 = (_options$reporter = options.reporter) !== null && _options$reporter !== void 0 ? _options$reporter : (_axe$_audit = axe._audit) === null || _axe$_audit === void 0 ? void 0 : _axe$_audit.reporter) !== null && _ref113 !== void 0 ? _ref113 : 'v1';
27468 29002 return {
27469 -1 context: context5,
-1 29003 context: context,
27470 29004 options: options,
27471 29005 callback: callback
27472 29006 };
27473 29007 }
27474 -1 function isContext(potential) {
27475 -1 switch (true) {
27476 -1 case typeof potential === 'string':
27477 -1 case Array.isArray(potential):
27478 -1 case window.Node && potential instanceof window.Node:
27479 -1 case window.NodeList && potential instanceof window.NodeList:
27480 -1 return true;
27481 -1
27482 -1 case _typeof(potential) !== 'object':
27483 -1 return false;
27484 -1
27485 -1 case potential.include !== void 0:
27486 -1 case potential.exclude !== void 0:
27487 -1 case typeof potential.length === 'number':
27488 -1 return true;
27489 -1
27490 -1 default:
27491 -1 return false;
27492 -1 }
27493 -1 }
27494 29008 var noop2 = function noop2() {};
27495 29009 function run4() {
27496 29010 for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
27497 29011 args[_key2] = arguments[_key2];
27498 29012 }
27499 29013 setupGlobals(args[0]);
27500 -1 var _normalizeRunParams = normalizeRunParams(args), context5 = _normalizeRunParams.context, options = _normalizeRunParams.options, _normalizeRunParams$c = _normalizeRunParams.callback, callback = _normalizeRunParams$c === void 0 ? noop2 : _normalizeRunParams$c;
-1 29014 var _normalizeRunParams = normalizeRunParams(args), context = _normalizeRunParams.context, options = _normalizeRunParams.options, _normalizeRunParams$c = _normalizeRunParams.callback, callback = _normalizeRunParams$c === void 0 ? noop2 : _normalizeRunParams$c;
27501 29015 var _getPromiseHandlers = getPromiseHandlers(callback), thenable = _getPromiseHandlers.thenable, resolve = _getPromiseHandlers.resolve, reject = _getPromiseHandlers.reject;
27502 29016 try {
27503 29017 assert_default(axe._audit, 'No audit configured');
@@ -27509,10 +29023,10 @@ module.exports = {
27509 29023 if (options.performanceTimer) {
27510 29024 axe.utils.performanceTimer.start();
27511 29025 }
27512 -1 function handleRunRules(rawResults, cleanup5) {
-1 29026 function handleRunRules(rawResults, cleanup3) {
27513 29027 var respond = function respond(results) {
27514 29028 axe._running = false;
27515 -1 cleanup5();
-1 29029 cleanup3();
27516 29030 try {
27517 29031 callback(null, results);
27518 29032 } catch (e) {
@@ -27527,7 +29041,7 @@ module.exports = {
27527 29041 createReport(rawResults, options, respond);
27528 29042 } catch (err2) {
27529 29043 axe._running = false;
27530 -1 cleanup5();
-1 29044 cleanup3();
27531 29045 callback(err2);
27532 29046 reject(err2);
27533 29047 }
@@ -27541,7 +29055,7 @@ module.exports = {
27541 29055 callback(err2);
27542 29056 reject(err2);
27543 29057 }
27544 -1 axe._runRules(context5, options, handleRunRules, errorRunRules);
-1 29058 axe._runRules(context, options, handleRunRules, errorRunRules);
27545 29059 return thenable;
27546 29060 }
27547 29061 function getPromiseHandlers(callback) {
@@ -27561,8 +29075,8 @@ module.exports = {
27561 29075 };
27562 29076 }
27563 29077 function createReport(rawResults, options, respond) {
27564 -1 var reporter5 = getReporter(options.reporter);
27565 -1 var results = reporter5(rawResults, options, respond);
-1 29078 var reporter = getReporter(options.reporter);
-1 29079 var results = reporter(rawResults, options, respond);
27566 29080 if (results !== void 0) {
27567 29081 respond(results);
27568 29082 }
@@ -27579,24 +29093,24 @@ module.exports = {
27579 29093 for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
27580 29094 args[_key3] = arguments[_key3];
27581 29095 }
27582 -1 var _normalizeRunParams2 = normalizeRunParams(args), options = _normalizeRunParams2.options, context5 = _normalizeRunParams2.context;
-1 29096 var _normalizeRunParams2 = normalizeRunParams(args), options = _normalizeRunParams2.options, context = _normalizeRunParams2.context;
27583 29097 assert_default(axe._audit, 'Axe is not configured. Audit is missing.');
27584 29098 assert_default(!axe._running, 'Axe is already running. Use `await axe.run()` to wait for the previous run to finish before starting a new run.');
27585 -1 var contextObj = new Context(context5, axe._tree);
-1 29099 var contextObj = new Context(context, axe._tree);
27586 29100 axe._tree = contextObj.flatTree;
27587 29101 axe._selectorData = _getSelectorData(contextObj.flatTree);
27588 29102 axe._running = true;
27589 29103 return new Promise(function(res, rej) {
27590 29104 axe._audit.run(contextObj, options, res, rej);
27591 29105 }).then(function(results) {
27592 -1 results = results.map(function(_ref90) {
27593 -1 var nodes = _ref90.nodes, result = _objectWithoutProperties(_ref90, _excluded8);
-1 29106 results = results.map(function(_ref114) {
-1 29107 var nodes = _ref114.nodes, result = _objectWithoutProperties(_ref114, _excluded8);
27594 29108 return _extends({
27595 29109 nodes: nodes.map(serializeNode)
27596 29110 }, result);
27597 29111 });
27598 -1 var frames = contextObj.frames.map(function(_ref91) {
27599 -1 var node = _ref91.node;
-1 29112 var frames = contextObj.frames.map(function(_ref115) {
-1 29113 var node = _ref115.node;
27600 29114 return new dq_element_default(node, options).toJSON();
27601 29115 });
27602 29116 var environmentData;
@@ -27616,13 +29130,13 @@ module.exports = {
27616 29130 return Promise.reject(err2);
27617 29131 });
27618 29132 }
27619 -1 function serializeNode(_ref92) {
27620 -1 var node = _ref92.node, nodeResult = _objectWithoutProperties(_ref92, _excluded9);
-1 29133 function serializeNode(_ref116) {
-1 29134 var node = _ref116.node, nodeResult = _objectWithoutProperties(_ref116, _excluded9);
27621 29135 nodeResult.node = node.toJSON();
27622 -1 for (var _i30 = 0, _arr2 = [ 'any', 'all', 'none' ]; _i30 < _arr2.length; _i30++) {
27623 -1 var type = _arr2[_i30];
27624 -1 nodeResult[type] = nodeResult[type].map(function(_ref93) {
27625 -1 var relatedNodes = _ref93.relatedNodes, checkResult = _objectWithoutProperties(_ref93, _excluded10);
-1 29136 for (var _i33 = 0, _arr2 = [ 'any', 'all', 'none' ]; _i33 < _arr2.length; _i33++) {
-1 29137 var type = _arr2[_i33];
-1 29138 nodeResult[type] = nodeResult[type].map(function(_ref117) {
-1 29139 var relatedNodes = _ref117.relatedNodes, checkResult = _objectWithoutProperties(_ref117, _excluded10);
27626 29140 return _extends({}, checkResult, {
27627 29141 relatedNodes: relatedNodes.map(function(node2) {
27628 29142 return node2.toJSON();
@@ -27633,14 +29147,14 @@ module.exports = {
27633 29147 return nodeResult;
27634 29148 }
27635 29149 function finishRun(partialResults) {
27636 -1 var _ref95, _options$reporter2, _axe$_audit2;
-1 29150 var _ref119, _options$reporter2, _axe$_audit2;
27637 29151 var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
27638 29152 options = clone_default(options);
27639 -1 var _ref94 = partialResults.find(function(r) {
-1 29153 var _ref118 = partialResults.find(function(r) {
27640 29154 return r.environmentData;
27641 -1 }) || {}, environmentData = _ref94.environmentData;
-1 29155 }) || {}, environmentData = _ref118.environmentData;
27642 29156 axe._audit.normalizeOptions(options);
27643 -1 options.reporter = (_ref95 = (_options$reporter2 = options.reporter) !== null && _options$reporter2 !== void 0 ? _options$reporter2 : (_axe$_audit2 = axe._audit) === null || _axe$_audit2 === void 0 ? void 0 : _axe$_audit2.reporter) !== null && _ref95 !== void 0 ? _ref95 : 'v1';
-1 29157 options.reporter = (_ref119 = (_options$reporter2 = options.reporter) !== null && _options$reporter2 !== void 0 ? _options$reporter2 : (_axe$_audit2 = axe._audit) === null || _axe$_audit2 === void 0 ? void 0 : _axe$_audit2.reporter) !== null && _ref119 !== void 0 ? _ref119 : 'v1';
27644 29158 setFrameSpec(partialResults);
27645 29159 var results = merge_results_default(partialResults);
27646 29160 results = axe._audit.after(results, options);
@@ -27652,10 +29166,10 @@ module.exports = {
27652 29166 }
27653 29167 function setFrameSpec(partialResults) {
27654 29168 var frameStack = [];
27655 -1 var _iterator4 = _createForOfIteratorHelper(partialResults), _step4;
-1 29169 var _iterator12 = _createForOfIteratorHelper(partialResults), _step12;
27656 29170 try {
27657 -1 for (_iterator4.s(); !(_step4 = _iterator4.n()).done; ) {
27658 -1 var partialResult = _step4.value;
-1 29171 for (_iterator12.s(); !(_step12 = _iterator12.n()).done; ) {
-1 29172 var partialResult = _step12.value;
27659 29173 var frameSpec = frameStack.shift();
27660 29174 if (!partialResult) {
27661 29175 continue;
@@ -27665,13 +29179,13 @@ module.exports = {
27665 29179 frameStack.unshift.apply(frameStack, _toConsumableArray(frameSpecs));
27666 29180 }
27667 29181 } catch (err) {
27668 -1 _iterator4.e(err);
-1 29182 _iterator12.e(err);
27669 29183 } finally {
27670 -1 _iterator4.f();
-1 29184 _iterator12.f();
27671 29185 }
27672 29186 }
27673 -1 function getMergedFrameSpecs(_ref96) {
27674 -1 var childFrameSpecs = _ref96.frames, parentFrameSpec = _ref96.frameSpec;
-1 29187 function getMergedFrameSpecs(_ref120) {
-1 29188 var childFrameSpecs = _ref120.frames, parentFrameSpec = _ref120.frameSpec;
27675 29189 if (!parentFrameSpec) {
27676 29190 return childFrameSpecs;
27677 29191 }
@@ -27681,8 +29195,8 @@ module.exports = {
27681 29195 }
27682 29196 function createReport2(results, options) {
27683 29197 return new Promise(function(resolve) {
27684 -1 var reporter5 = getReporter(options.reporter);
27685 -1 reporter5(results, options, resolve);
-1 29198 var reporter = getReporter(options.reporter);
-1 29199 reporter(results, options, resolve);
27686 29200 });
27687 29201 }
27688 29202 function setup(node) {
@@ -27731,12 +29245,12 @@ module.exports = {
27731 29245 var transformedResults = results.map(function(result) {
27732 29246 var transformedResult = _extends({}, result);
27733 29247 var types = [ 'passes', 'violations', 'incomplete', 'inapplicable' ];
27734 -1 for (var _i31 = 0, _types = types; _i31 < _types.length; _i31++) {
27735 -1 var type = _types[_i31];
-1 29248 for (var _i34 = 0, _types = types; _i34 < _types.length; _i34++) {
-1 29249 var type = _types[_i34];
27736 29250 if (transformedResult[type] && Array.isArray(transformedResult[type])) {
27737 -1 transformedResult[type] = transformedResult[type].map(function(_ref97) {
-1 29251 transformedResult[type] = transformedResult[type].map(function(_ref121) {
27738 29252 var _node;
27739 -1 var node = _ref97.node, typeResult = _objectWithoutProperties(_ref97, _excluded13);
-1 29253 var node = _ref121.node, typeResult = _objectWithoutProperties(_ref121, _excluded13);
27740 29254 node = typeof ((_node = node) === null || _node === void 0 ? void 0 : _node.toJSON) === 'function' ? node.toJSON() : node;
27741 29255 return _extends({
27742 29256 node: node
@@ -27755,10 +29269,10 @@ module.exports = {
27755 29269 options = {};
27756 29270 }
27757 29271 var _options4 = options, environmentData = _options4.environmentData, toolOptions = _objectWithoutProperties(_options4, _excluded14);
27758 -1 raw_default(results, toolOptions, function(raw3) {
-1 29272 raw_default(results, toolOptions, function(raw) {
27759 29273 var env = _getEnvironmentData(environmentData);
27760 29274 callback({
27761 -1 raw: raw3,
-1 29275 raw: raw,
27762 29276 env: env
27763 29277 });
27764 29278 });
@@ -27795,25 +29309,54 @@ module.exports = {
27795 29309 }, out));
27796 29310 };
27797 29311 var v2_default = v2Reporter;
-1 29312 var _thisWillBeDeletedDoNotUse = {
-1 29313 base: {
-1 29314 Audit: audit_default,
-1 29315 CheckResult: check_result_default,
-1 29316 Check: check_default,
-1 29317 Context: Context,
-1 29318 RuleResult: rule_result_default,
-1 29319 Rule: rule_default,
-1 29320 metadataFunctionMap: metadata_function_map_default
-1 29321 },
-1 29322 public: {
-1 29323 reporters: reporters
-1 29324 },
-1 29325 helpers: {
-1 29326 failureSummary: failure_summary_default,
-1 29327 incompleteFallbackMessage: incompleteFallbackMessage,
-1 29328 processAggregate: process_aggregate_default
-1 29329 },
-1 29330 utils: {
-1 29331 setDefaultFrameMessenger: setDefaultFrameMessenger,
-1 29332 cacheNodeSelectors: cacheNodeSelectors,
-1 29333 getNodesMatchingExpression: getNodesMatchingExpression,
-1 29334 convertSelector: _convertSelector
-1 29335 },
-1 29336 commons: {
-1 29337 dom: {
-1 29338 nativelyHidden: nativelyHidden,
-1 29339 displayHidden: displayHidden,
-1 29340 visibilityHidden: visibilityHidden,
-1 29341 contentVisibiltyHidden: contentVisibiltyHidden,
-1 29342 ariaHidden: ariaHidden,
-1 29343 opacityHidden: opacityHidden,
-1 29344 scrollHidden: scrollHidden,
-1 29345 overflowHidden: overflowHidden,
-1 29346 clipHidden: clipHidden,
-1 29347 areaHidden: areaHidden,
-1 29348 detailsHidden: detailsHidden
-1 29349 }
-1 29350 }
-1 29351 };
-1 29352 var exposed_for_testing_default = _thisWillBeDeletedDoNotUse;
-1 29353 axe._thisWillBeDeletedDoNotUse = exposed_for_testing_default;
27798 29354 axe.constants = constants_default;
27799 29355 axe.log = log_default;
27800 29356 axe.AbstractVirtualNode = abstract_virtual_node_default;
27801 29357 axe.SerialVirtualNode = serial_virtual_node_default;
27802 29358 axe.VirtualNode = virtual_node_default;
27803 29359 axe._cache = cache_default;
27804 -1 axe._thisWillBeDeletedDoNotUse = axe._thisWillBeDeletedDoNotUse || {};
27805 -1 axe._thisWillBeDeletedDoNotUse.base = {
27806 -1 Audit: audit_default,
27807 -1 CheckResult: check_result_default,
27808 -1 Check: check_default,
27809 -1 Context: Context,
27810 -1 RuleResult: rule_result_default,
27811 -1 Rule: rule_default,
27812 -1 metadataFunctionMap: metadata_function_map_default
27813 -1 };
27814 -1 axe._thisWillBeDeletedDoNotUse['public'] = {
27815 -1 reporters: reporters
27816 -1 };
27817 29360 axe.imports = imports_exports;
27818 29361 axe.cleanup = cleanup_default;
27819 29362 axe.configure = configure_default;
@@ -27827,7 +29370,7 @@ module.exports = {
27827 29370 axe.addReporter = addReporter;
27828 29371 axe.reset = reset_default;
27829 29372 axe._runRules = run_rules_default;
27830 -1 axe.runVirtualRule = run_virtual_rule_default;
-1 29373 axe.runVirtualRule = runVirtualRule;
27831 29374 axe.run = run4;
27832 29375 axe.setup = setup_default;
27833 29376 axe.teardown = teardown_default;
@@ -28001,7 +29544,7 @@ module.exports = {
28001 29544 },
28002 29545 'empty-table-header': {
28003 29546 description: 'Ensures table headers have discernible text',
28004 -1 help: 'Table header text must not be empty'
-1 29547 help: 'Table header text should not be empty'
28005 29548 },
28006 29549 'focus-order-semantics': {
28007 29550 description: 'Ensures elements in the focus order have a role appropriate for interactive content',
@@ -28021,7 +29564,7 @@ module.exports = {
28021 29564 },
28022 29565 'frame-title-unique': {
28023 29566 description: 'Ensures <iframe> and <frame> elements contain a unique title attribute',
28024 -1 help: 'Frames should have a unique title attribute'
-1 29567 help: 'Frames must have a unique title attribute'
28025 29568 },
28026 29569 'frame-title': {
28027 29570 description: 'Ensures <iframe> and <frame> elements have an accessible name',
@@ -28135,9 +29678,13 @@ module.exports = {
28135 29678 description: 'Ensures <marquee> elements are not used',
28136 29679 help: '<marquee> elements are deprecated and must not be used'
28137 29680 },
-1 29681 'meta-refresh-no-exceptions': {
-1 29682 description: 'Ensures <meta http-equiv="refresh"> is not used for delayed refresh',
-1 29683 help: 'Delayed refresh must not be used'
-1 29684 },
28138 29685 'meta-refresh': {
28139 -1 description: 'Ensures <meta http-equiv="refresh"> is not used',
28140 -1 help: 'Timed refresh must not exist'
-1 29686 description: 'Ensures <meta http-equiv="refresh"> is not used for delayed refresh',
-1 29687 help: 'Delayed refresh under 20 hours must not be used'
28141 29688 },
28142 29689 'meta-viewport-large': {
28143 29690 description: 'Ensures <meta name="viewport"> can scale a significant amount',
@@ -28145,7 +29692,7 @@ module.exports = {
28145 29692 },
28146 29693 'meta-viewport': {
28147 29694 description: 'Ensures <meta name="viewport"> does not disable text scaling and zooming',
28148 -1 help: 'Zooming and scaling should not be disabled'
-1 29695 help: 'Zooming and scaling must not be disabled'
28149 29696 },
28150 29697 'nested-interactive': {
28151 29698 description: 'Ensures interactive controls are not nested as they are not always announced by screen readers or can cause focus problems for assistive technologies',
@@ -28168,8 +29715,8 @@ module.exports = {
28168 29715 help: 'Page should contain a level-one heading'
28169 29716 },
28170 29717 'presentation-role-conflict': {
28171 -1 description: 'Flags elements whose role is none or presentation and which cause the role conflict resolution to trigger.',
28172 -1 help: 'Elements of role none or presentation should be flagged'
-1 29718 description: 'Elements marked as presentational should not have global ARIA or tabindex to ensure all screen readers ignore them',
-1 29719 help: 'Ensure elements marked as presentational are consistently ignored'
28173 29720 },
28174 29721 region: {
28175 29722 description: 'Ensures all page content is contained by landmarks',
@@ -28215,6 +29762,10 @@ module.exports = {
28215 29762 description: 'Ensure that tables with a caption use the <caption> element.',
28216 29763 help: 'Data or header cells must not be used to give caption to a data table.'
28217 29764 },
-1 29765 'target-size': {
-1 29766 description: 'Ensure touch target have sufficient size and space',
-1 29767 help: 'All touch targets must be 24px large, or leave sufficient space'
-1 29768 },
28218 29769 'td-has-header': {
28219 29770 description: 'Ensure that each non-empty data cell in a <table> larger than 3 by 3 has one or more table headers',
28220 29771 help: 'Non-empty <td> elements in larger <table> must have an associated table header'
@@ -28272,6 +29823,13 @@ module.exports = {
28272 29823 }
28273 29824 }
28274 29825 },
-1 29826 'aria-busy': {
-1 29827 impact: 'serious',
-1 29828 messages: {
-1 29829 pass: 'Element has an aria-busy attribute',
-1 29830 fail: 'Element has no aria-busy="true" attribute'
-1 29831 }
-1 29832 },
28275 29833 'aria-errormessage': {
28276 29834 impact: 'critical',
28277 29835 messages: {
@@ -28336,7 +29894,8 @@ module.exports = {
28336 29894 pass: 'Required ARIA children are present',
28337 29895 fail: {
28338 29896 singular: 'Required ARIA child role not present: ${data.values}',
28339 -1 plural: 'Required ARIA children role not present: ${data.values}'
-1 29897 plural: 'Required ARIA children role not present: ${data.values}',
-1 29898 unallowed: 'Element has children which are not allowed (see related nodes)'
28340 29899 },
28341 29900 incomplete: {
28342 29901 singular: 'Expecting ARIA child role to be added: ${data.values}',
@@ -28381,7 +29940,8 @@ module.exports = {
28381 29940 noId: 'ARIA attribute element ID does not exist on the page: ${data.needsReview}',
28382 29941 noIdShadow: 'ARIA attribute element ID does not exist on the page or is a descendant of a different shadow DOM tree: ${data.needsReview}',
28383 29942 ariaCurrent: 'ARIA attribute value is invalid and will be treated as "aria-current=true": ${data.needsReview}',
28384 -1 idrefs: 'Unable to determine if ARIA attribute element ID exists on the page: ${data.needsReview}'
-1 29943 idrefs: 'Unable to determine if ARIA attribute element ID exists on the page: ${data.needsReview}',
-1 29944 empty: 'ARIA attribute value is ignored while empty: ${data.needsReview}'
28385 29945 }
28386 29946 }
28387 29947 },
@@ -28455,7 +30015,7 @@ module.exports = {
28455 30015 impact: 'critical',
28456 30016 messages: {
28457 30017 pass: 'ARIA role is supported',
28458 -1 fail: 'The role used is not widely supported in screen readers and assistive technologies: ${data.values}'
-1 30018 fail: 'The role used is not widely supported in screen readers and assistive technologies: ${data}'
28459 30019 }
28460 30020 },
28461 30021 'valid-scrollable-semantics': {
@@ -28520,14 +30080,24 @@ module.exports = {
28520 30080 }
28521 30081 }
28522 30082 },
-1 30083 'link-in-text-block-style': {
-1 30084 impact: 'serious',
-1 30085 messages: {
-1 30086 pass: 'Links can be distinguished from surrounding text by visual styling',
-1 30087 fail: 'The link has no styling (such as underline) to distinguish it from the surrounding text'
-1 30088 }
-1 30089 },
28523 30090 'link-in-text-block': {
28524 30091 impact: 'serious',
28525 30092 messages: {
28526 30093 pass: 'Links can be distinguished from surrounding text in some way other than by color',
28527 -1 fail: 'Links need to be distinguished from surrounding text in some way other than by color',
-1 30094 fail: {
-1 30095 fgContrast: 'The link has insufficient color contrast of ${data.contrastRatio}:1 with the surrounding text. (Minimum contrast is ${data.requiredContrastRatio}:1, link text: ${data.nodeColor}, surrounding text: ${data.parentColor})',
-1 30096 bgContrast: 'The link background has insufficient color contrast of ${data.contrastRatio} (Minimum contrast is ${data.requiredContrastRatio}:1, link background color: ${data.nodeBackgroundColor}, surrounding background color: ${data.parentBackgroundColor})'
-1 30097 },
28528 30098 incomplete: {
28529 -1 default: 'Unable to determine contrast ratio',
28530 -1 bgContrast: 'Element\'s contrast ratio could not be determined. Check for a distinct hover/focus style',
-1 30099 default: 'Element\'s foreground contrast ratio could not be determined',
-1 30100 bgContrast: 'Element\'s background contrast ratio could not be determined',
28531 30101 bgImage: 'Element\'s contrast ratio could not be determined due to a background image',
28532 30102 bgGradient: 'Element\'s contrast ratio could not be determined due to a background gradient',
28533 30103 imgNode: 'Element\'s contrast ratio could not be determined because element contains an image node',
@@ -28786,18 +30356,15 @@ module.exports = {
28786 30356 'only-dlitems': {
28787 30357 impact: 'serious',
28788 30358 messages: {
28789 -1 pass: 'List element only has direct children that are allowed inside <dt> or <dd> elements',
28790 -1 fail: 'List element has direct children that are not allowed inside <dt> or <dd> elements'
-1 30359 pass: 'dl element only has direct children that are allowed inside; <dt>, <dd>, or <div> elements',
-1 30360 fail: 'dl element has direct children that are not allowed: ${data.values}'
28791 30361 }
28792 30362 },
28793 30363 'only-listitems': {
28794 30364 impact: 'serious',
28795 30365 messages: {
28796 30366 pass: 'List element only has direct children that are allowed inside <li> elements',
28797 -1 fail: {
28798 -1 default: 'List element has direct children that are not allowed inside <li> elements',
28799 -1 roleNotValid: 'List element has direct children with a role that is not allowed: ${data.roles}'
28800 -1 }
-1 30367 fail: 'List element has direct children that are not allowed: ${data.values}'
28801 30368 }
28802 30369 },
28803 30370 'structured-dlitems': {
@@ -28852,6 +30419,36 @@ module.exports = {
28852 30419 fail: '${data} on <meta> tag disables zooming on mobile devices'
28853 30420 }
28854 30421 },
-1 30422 'target-offset': {
-1 30423 impact: 'serious',
-1 30424 messages: {
-1 30425 pass: 'Target has sufficient offset from its closest neighbor (${data.closestOffset}px should be at least ${data.minOffset}px)',
-1 30426 fail: 'Target has insufficient offset from its closest neighbor (${data.closestOffset}px should be at least ${data.minOffset}px)',
-1 30427 incomplete: {
-1 30428 default: 'Element with negative tabindex has insufficient offset from its closest neighbor (${data.closestOffset}px should be at least ${data.minOffset}px). Is this a target?',
-1 30429 nonTabbableNeighbor: 'Target has insufficient offset from a neighbor with negative tabindex (${data.closestOffset}px should be at least ${data.minOffset}px). Is the neighbor a target?'
-1 30430 }
-1 30431 }
-1 30432 },
-1 30433 'target-size': {
-1 30434 impact: 'serious',
-1 30435 messages: {
-1 30436 pass: {
-1 30437 default: 'Control has sufficient size (${data.width}px by ${data.height}px, should be at least ${data.minSize}px by ${data.minSize}px)',
-1 30438 obscured: 'Control is ignored because it is fully obscured and thus not clickable'
-1 30439 },
-1 30440 fail: {
-1 30441 default: 'Target has insufficient size (${data.width}px by ${data.height}px, should be at least ${data.minSize}px by ${data.minSize}px)',
-1 30442 partiallyObscured: 'Target has insufficient size because it is partially obscured (smallest space is ${data.width}px by ${data.height}px, should be at least ${data.minSize}px by ${data.minSize}px)'
-1 30443 },
-1 30444 incomplete: {
-1 30445 default: 'Element with negative tabindex has insufficient size (${data.width}px by ${data.height}px, should be at least ${data.minSize}px by ${data.minSize}px). Is this a target?',
-1 30446 contentOverflow: 'Element size could not be accurately determined due to overflow content',
-1 30447 partiallyObscured: 'Element with negative tabindex has insufficient size because it is partially obscured (smallest space is ${data.width}px by ${data.height}px, should be at least ${data.minSize}px by ${data.minSize}px). Is this a target?',
-1 30448 partiallyObscuredNonTabbable: 'Target has insufficient size because it is partially obscured by a neighbor with negative tabindex (smallest space is ${data.width}px by ${data.height}px, should be at least ${data.minSize}px by ${data.minSize}px). Is the neighbor a target?'
-1 30449 }
-1 30450 }
-1 30451 },
28855 30452 'header-present': {
28856 30453 impact: 'serious',
28857 30454 messages: {
@@ -28888,11 +30485,18 @@ module.exports = {
28888 30485 fail: 'Page does not have a landmark region'
28889 30486 }
28890 30487 },
-1 30488 'meta-refresh-no-exceptions': {
-1 30489 impact: 'minor',
-1 30490 messages: {
-1 30491 pass: '<meta> tag does not immediately refresh the page',
-1 30492 fail: '<meta> tag forces timed refresh of page'
-1 30493 }
-1 30494 },
28891 30495 'meta-refresh': {
28892 30496 impact: 'critical',
28893 30497 messages: {
28894 30498 pass: '<meta> tag does not immediately refresh the page',
28895 -1 fail: '<meta> tag forces timed refresh of page'
-1 30499 fail: '<meta> tag forces timed refresh of page (less than 20 hours)'
28896 30500 }
28897 30501 },
28898 30502 'p-as-heading': {
@@ -29008,6 +30612,27 @@ module.exports = {
29008 30612 incomplete: 'Unable to determine if element has children'
29009 30613 }
29010 30614 },
-1 30615 'important-letter-spacing': {
-1 30616 impact: 'serious',
-1 30617 messages: {
-1 30618 pass: 'Letter-spacing in the style attribute is not set to !important, or meets the minimum',
-1 30619 fail: 'letter-spacing in the style attribute must not use !important, or be at ${data.minValue}em (current ${data.value}em)'
-1 30620 }
-1 30621 },
-1 30622 'important-line-height': {
-1 30623 impact: 'serious',
-1 30624 messages: {
-1 30625 pass: 'line-height in the style attribute is not set to !important, or meets the minimum',
-1 30626 fail: 'line-height in the style attribute must not use !important, or be at ${data.minValue}em (current ${data.value}em)'
-1 30627 }
-1 30628 },
-1 30629 'important-word-spacing': {
-1 30630 impact: 'serious',
-1 30631 messages: {
-1 30632 pass: 'word-spacing in the style attribute is not set to !important, or meets the minimum',
-1 30633 fail: 'word-spacing in the style attribute must not use !important, or be at ${data.minValue}em (current ${data.value}em)'
-1 30634 }
-1 30635 },
29011 30636 'is-on-screen': {
29012 30637 impact: 'serious',
29013 30638 messages: {
@@ -29073,7 +30698,8 @@ module.exports = {
29073 30698 default: 'Element\'s default semantics were not overridden with role="none" or role="presentation"',
29074 30699 globalAria: 'Element\'s role is not presentational because it has a global ARIA attribute',
29075 30700 focusable: 'Element\'s role is not presentational because it is focusable',
29076 -1 both: 'Element\'s role is not presentational because it has a global ARIA attribute and is focusable'
-1 30701 both: 'Element\'s role is not presentational because it has a global ARIA attribute and is focusable',
-1 30702 iframe: 'Using the "title" attribute on an ${data.nodeName} element with a presentational role behaves inconsistently between screen readers'
29077 30703 }
29078 30704 }
29079 30705 },
@@ -29120,7 +30746,8 @@ module.exports = {
29120 30746 impact: 'minor',
29121 30747 messages: {
29122 30748 pass: 'Content of summary attribute and <caption> are not duplicated',
29123 -1 fail: 'Content of summary attribute and <caption> element are identical'
-1 30749 fail: 'Content of summary attribute and <caption> element are identical',
-1 30750 incomplete: 'Unable to determine if <table> element has a caption'
29124 30751 }
29125 30752 },
29126 30753 'scope-value': {
@@ -29206,7 +30833,7 @@ module.exports = {
29206 30833 id: 'area-alt',
29207 30834 selector: 'map area[href]',
29208 30835 excludeHidden: false,
29209 -1 tags: [ 'cat.text-alternatives', 'wcag2a', 'wcag111', 'wcag244', 'wcag412', 'section508', 'section508.22.a', 'ACT' ],
-1 30836 tags: [ 'cat.text-alternatives', 'wcag2a', 'wcag244', 'wcag412', 'section508', 'section508.22.a', 'ACT' ],
29210 30837 actIds: [ 'c487ae' ],
29211 30838 all: [],
29212 30839 any: [ {
@@ -29258,7 +30885,7 @@ module.exports = {
29258 30885 id: 'aria-command-name',
29259 30886 selector: '[role="link"], [role="button"], [role="menuitem"]',
29260 30887 matches: 'no-naming-method-matches',
29261 -1 tags: [ 'cat.aria', 'wcag2a', 'wcag412' ],
-1 30888 tags: [ 'cat.aria', 'wcag2a', 'wcag412', 'ACT' ],
29262 30889 actIds: [ '97a4e1' ],
29263 30890 all: [],
29264 30891 any: [ 'has-visible-text', 'aria-label', 'aria-labelledby', {
@@ -29295,7 +30922,7 @@ module.exports = {
29295 30922 selector: '[aria-hidden="true"]',
29296 30923 matches: 'aria-hidden-focus-matches',
29297 30924 excludeHidden: false,
29298 -1 tags: [ 'cat.name-role-value', 'wcag2a', 'wcag412', 'wcag131' ],
-1 30925 tags: [ 'cat.name-role-value', 'wcag2a', 'wcag412' ],
29299 30926 actIds: [ '6cfa84' ],
29300 30927 all: [ 'focusable-modal-open', 'focusable-disabled', 'focusable-not-tabbable' ],
29301 30928 any: [],
@@ -29344,6 +30971,7 @@ module.exports = {
29344 30971 id: 'aria-required-attr',
29345 30972 selector: '[role]',
29346 30973 tags: [ 'cat.aria', 'wcag2a', 'wcag412' ],
-1 30974 actIds: [ '4e8ab6' ],
29347 30975 all: [],
29348 30976 any: [ 'aria-required-attr' ],
29349 30977 none: []
@@ -29352,21 +30980,21 @@ module.exports = {
29352 30980 selector: '[role]',
29353 30981 matches: 'aria-required-children-matches',
29354 30982 tags: [ 'cat.aria', 'wcag2a', 'wcag131' ],
29355 -1 actIds: [ 'ff89c9' ],
-1 30983 actIds: [ 'bc4a75', 'ff89c9' ],
29356 30984 all: [],
29357 30985 any: [ {
29358 30986 options: {
29359 -1 reviewEmpty: [ 'doc-bibliography', 'doc-endnotes', 'grid', 'list', 'listbox', 'table', 'tablist', 'tree', 'treegrid', 'rowgroup' ]
-1 30987 reviewEmpty: [ 'doc-bibliography', 'doc-endnotes', 'grid', 'list', 'listbox', 'menu', 'menubar', 'table', 'tablist', 'tree', 'treegrid', 'rowgroup' ]
29360 30988 },
29361 30989 id: 'aria-required-children'
29362 -1 } ],
-1 30990 }, 'aria-busy' ],
29363 30991 none: []
29364 30992 }, {
29365 30993 id: 'aria-required-parent',
29366 30994 selector: '[role]',
29367 30995 matches: 'aria-required-parent-matches',
29368 30996 tags: [ 'cat.aria', 'wcag2a', 'wcag131' ],
29369 -1 actIds: [ 'bc4a75', 'ff89c9' ],
-1 30997 actIds: [ 'ff89c9' ],
29370 30998 all: [],
29371 30999 any: [ {
29372 31000 options: {
@@ -29392,9 +31020,10 @@ module.exports = {
29392 31020 selector: '[role]',
29393 31021 matches: 'no-empty-role-matches',
29394 31022 tags: [ 'cat.aria', 'wcag2a', 'wcag412' ],
-1 31023 actIds: [ '674b10' ],
29395 31024 all: [],
29396 31025 any: [],
29397 -1 none: [ 'fallbackrole', 'invalidrole', 'abstractrole', 'unsupportedrole', 'deprecatedrole' ]
-1 31026 none: [ 'invalidrole', 'abstractrole', 'unsupportedrole', 'deprecatedrole' ]
29398 31027 }, {
29399 31028 id: 'aria-text',
29400 31029 selector: '[role=text]',
@@ -29407,6 +31036,7 @@ module.exports = {
29407 31036 selector: '[role="checkbox"], [role="menuitemcheckbox"], [role="menuitemradio"], [role="radio"], [role="switch"], [role="option"]',
29408 31037 matches: 'no-naming-method-matches',
29409 31038 tags: [ 'cat.aria', 'wcag2a', 'wcag412', 'ACT' ],
-1 31039 actIds: [ 'e086e5' ],
29410 31040 all: [],
29411 31041 any: [ 'has-visible-text', 'aria-label', 'aria-labelledby', {
29412 31042 options: {
@@ -29445,7 +31075,7 @@ module.exports = {
29445 31075 id: 'aria-valid-attr-value',
29446 31076 matches: 'aria-has-attr-matches',
29447 31077 tags: [ 'cat.aria', 'wcag2a', 'wcag412' ],
29448 -1 actIds: [ '5c01ea', 'c487ae' ],
-1 31078 actIds: [ '6a7281' ],
29449 31079 all: [ {
29450 31080 options: [],
29451 31081 id: 'aria-valid-attr-value'
@@ -29456,6 +31086,7 @@ module.exports = {
29456 31086 id: 'aria-valid-attr',
29457 31087 matches: 'aria-has-attr-matches',
29458 31088 tags: [ 'cat.aria', 'wcag2a', 'wcag412' ],
-1 31089 actIds: [ '5f99a7' ],
29459 31090 all: [],
29460 31091 any: [ {
29461 31092 options: [],
@@ -29468,14 +31099,14 @@ module.exports = {
29468 31099 enabled: false,
29469 31100 excludeHidden: false,
29470 31101 tags: [ 'cat.time-and-media', 'wcag2a', 'wcag121', 'section508', 'section508.22.a' ],
29471 -1 actIds: [ 'c3232f', 'e7aa44' ],
-1 31102 actIds: [ '2eb176', 'afb423' ],
29472 31103 all: [],
29473 31104 any: [],
29474 31105 none: [ 'caption' ]
29475 31106 }, {
29476 31107 id: 'autocomplete-valid',
29477 31108 matches: 'autocomplete-matches',
29478 -1 tags: [ 'cat.forms', 'wcag21aa', 'wcag135' ],
-1 31109 tags: [ 'cat.forms', 'wcag21aa', 'wcag135', 'ACT' ],
29479 31110 actIds: [ '73f2c2' ],
29480 31111 all: [ {
29481 31112 options: {
@@ -29488,12 +31119,29 @@ module.exports = {
29488 31119 }, {
29489 31120 id: 'avoid-inline-spacing',
29490 31121 selector: '[style]',
29491 -1 tags: [ 'cat.structure', 'wcag21aa', 'wcag1412' ],
-1 31122 matches: 'is-visible-on-screen-matches',
-1 31123 tags: [ 'cat.structure', 'wcag21aa', 'wcag1412', 'ACT' ],
-1 31124 actIds: [ '24afc2', '9e45ec', '78fd32' ],
29492 31125 all: [ {
29493 31126 options: {
29494 -1 cssProperties: [ 'line-height', 'letter-spacing', 'word-spacing' ]
-1 31127 cssProperty: 'letter-spacing',
-1 31128 minValue: .12
-1 31129 },
-1 31130 id: 'important-letter-spacing'
-1 31131 }, {
-1 31132 options: {
-1 31133 cssProperty: 'word-spacing',
-1 31134 minValue: .16
29495 31135 },
29496 -1 id: 'avoid-inline-spacing'
-1 31136 id: 'important-word-spacing'
-1 31137 }, {
-1 31138 options: {
-1 31139 multiLineOnly: true,
-1 31140 cssProperty: 'line-height',
-1 31141 minValue: 1.5,
-1 31142 normalValue: 1
-1 31143 },
-1 31144 id: 'important-line-height'
29497 31145 } ],
29498 31146 any: [],
29499 31147 none: []
@@ -29526,6 +31174,7 @@ module.exports = {
29526 31174 matches: 'bypass-matches',
29527 31175 reviewOnFail: true,
29528 31176 tags: [ 'cat.keyboard', 'wcag2a', 'wcag241', 'section508', 'section508.22.o' ],
-1 31177 actIds: [ 'cf77f2', '047fe0', 'b40fd1', '3e12e1', 'ye5d6e' ],
29529 31178 all: [],
29530 31179 any: [ 'internal-link-present', {
29531 31180 options: {
@@ -29544,7 +31193,8 @@ module.exports = {
29544 31193 matches: 'color-contrast-matches',
29545 31194 excludeHidden: false,
29546 31195 enabled: false,
29547 -1 tags: [ 'cat.color', 'wcag2aaa', 'wcag146' ],
-1 31196 tags: [ 'cat.color', 'wcag2aaa', 'wcag146', 'ACT' ],
-1 31197 actIds: [ '09o5cg' ],
29548 31198 all: [],
29549 31199 any: [ {
29550 31200 options: {
@@ -29556,14 +31206,17 @@ module.exports = {
29556 31206 largeTextPt: 18,
29557 31207 contrastRatio: {
29558 31208 normal: {
29559 -1 expected: 7
-1 31209 expected: 7,
-1 31210 minThreshold: 4.5
29560 31211 },
29561 31212 large: {
29562 -1 expected: 4.5
-1 31213 expected: 4.5,
-1 31214 minThreshold: 3
29563 31215 }
29564 31216 },
29565 31217 pseudoSizeThreshold: .25,
29566 -1 shadowOutlineEmMax: .1
-1 31218 shadowOutlineEmMax: .1,
-1 31219 textStrokeEmMin: .03
29567 31220 },
29568 31221 id: 'color-contrast-enhanced'
29569 31222 } ],
@@ -29572,7 +31225,8 @@ module.exports = {
29572 31225 id: 'color-contrast',
29573 31226 matches: 'color-contrast-matches',
29574 31227 excludeHidden: false,
29575 -1 tags: [ 'cat.color', 'wcag2aa', 'wcag143' ],
-1 31228 tags: [ 'cat.color', 'wcag2aa', 'wcag143', 'ACT' ],
-1 31229 actIds: [ 'afw4f7', '09o5cg' ],
29576 31230 all: [],
29577 31231 any: [ {
29578 31232 options: {
@@ -29591,7 +31245,8 @@ module.exports = {
29591 31245 }
29592 31246 },
29593 31247 pseudoSizeThreshold: .25,
29594 -1 shadowOutlineEmMax: .2
-1 31248 shadowOutlineEmMax: .2,
-1 31249 textStrokeEmMin: .03
29595 31250 },
29596 31251 id: 'color-contrast'
29597 31252 } ],
@@ -29617,7 +31272,14 @@ module.exports = {
29617 31272 tags: [ 'cat.structure', 'wcag2a', 'wcag131' ],
29618 31273 all: [],
29619 31274 any: [],
29620 -1 none: [ 'structured-dlitems', 'only-dlitems' ]
-1 31275 none: [ 'structured-dlitems', {
-1 31276 options: {
-1 31277 validRoles: [ 'definition', 'term', 'listitem' ],
-1 31278 validNodeNames: [ 'dt', 'dd' ],
-1 31279 divGroups: true
-1 31280 },
-1 31281 id: 'only-dlitems'
-1 31282 } ]
29621 31283 }, {
29622 31284 id: 'dlitem',
29623 31285 selector: 'dd, dt',
@@ -29641,6 +31303,7 @@ module.exports = {
29641 31303 matches: 'duplicate-id-active-matches',
29642 31304 excludeHidden: false,
29643 31305 tags: [ 'cat.parsing', 'wcag2a', 'wcag411' ],
-1 31306 actIds: [ '3ea0c8' ],
29644 31307 all: [],
29645 31308 any: [ 'duplicate-id-active' ],
29646 31309 none: []
@@ -29660,6 +31323,7 @@ module.exports = {
29660 31323 matches: 'duplicate-id-misc-matches',
29661 31324 excludeHidden: false,
29662 31325 tags: [ 'cat.parsing', 'wcag2a', 'wcag411' ],
-1 31326 actIds: [ '3ea0c8' ],
29663 31327 all: [],
29664 31328 any: [ 'duplicate-id' ],
29665 31329 none: []
@@ -29668,6 +31332,7 @@ module.exports = {
29668 31332 selector: 'h1, h2, h3, h4, h5, h6, [role="heading"]',
29669 31333 matches: 'heading-matches',
29670 31334 tags: [ 'cat.name-role-value', 'best-practice' ],
-1 31335 actIds: [ 'ffd0e9' ],
29671 31336 impact: 'minor',
29672 31337 all: [],
29673 31338 any: [ 'has-visible-text', 'aria-label', 'aria-labelledby', {
@@ -29679,9 +31344,8 @@ module.exports = {
29679 31344 none: []
29680 31345 }, {
29681 31346 id: 'empty-table-header',
29682 -1 selector: 'th, [role="rowheader"], [role="columnheader"]',
29683 -1 tags: [ 'wcag131', 'cat.aria' ],
29684 -1 reviewOnFail: true,
-1 31347 selector: 'th:not([role]), [role="rowheader"], [role="columnheader"]',
-1 31348 tags: [ 'cat.name-role-value', 'best-practice' ],
29685 31349 all: [],
29686 31350 any: [ 'has-visible-text' ],
29687 31351 none: []
@@ -29714,6 +31378,7 @@ module.exports = {
29714 31378 selector: 'html',
29715 31379 matches: 'frame-focusable-content-matches',
29716 31380 tags: [ 'cat.keyboard', 'wcag2a', 'wcag211' ],
-1 31381 actIds: [ 'akn7bn' ],
29717 31382 all: [],
29718 31383 any: [ 'frame-focusable-content' ],
29719 31384 none: []
@@ -29733,14 +31398,18 @@ module.exports = {
29733 31398 id: 'frame-title-unique',
29734 31399 selector: 'frame[title], iframe[title]',
29735 31400 matches: 'frame-title-has-text-matches',
29736 -1 tags: [ 'cat.text-alternatives', 'best-practice' ],
-1 31401 tags: [ 'cat.text-alternatives', 'wcag412', 'wcag2a' ],
-1 31402 actIds: [ '4b1c6c' ],
29737 31403 all: [],
29738 31404 any: [],
29739 -1 none: [ 'unique-frame-title' ]
-1 31405 none: [ 'unique-frame-title' ],
-1 31406 reviewOnFail: true
29740 31407 }, {
29741 31408 id: 'frame-title',
29742 31409 selector: 'frame, iframe',
29743 -1 tags: [ 'cat.text-alternatives', 'wcag2a', 'wcag241', 'wcag412', 'section508', 'section508.22.i' ],
-1 31410 matches: 'no-negative-tabindex-matches',
-1 31411 tags: [ 'cat.text-alternatives', 'wcag2a', 'wcag412', 'section508', 'section508.22.i' ],
-1 31412 actIds: [ 'cae760' ],
29744 31413 all: [],
29745 31414 any: [ {
29746 31415 options: {
@@ -29781,7 +31450,7 @@ module.exports = {
29781 31450 none: []
29782 31451 }, {
29783 31452 id: 'html-lang-valid',
29784 -1 selector: 'html[lang], html[xml\\:lang]',
-1 31453 selector: 'html[lang]:not([lang=""]), html[xml\\:lang]:not([xml\\:lang=""])',
29785 31454 tags: [ 'cat.language', 'wcag2a', 'wcag311', 'ACT' ],
29786 31455 actIds: [ 'bf051a' ],
29787 31456 all: [],
@@ -29805,9 +31474,10 @@ module.exports = {
29805 31474 id: 'identical-links-same-purpose',
29806 31475 selector: 'a[href], area[href], [role="link"]',
29807 31476 excludeHidden: false,
-1 31477 enabled: false,
29808 31478 matches: 'identical-links-same-purpose-matches',
29809 31479 tags: [ 'cat.semantics', 'wcag2aaa', 'wcag249' ],
29810 -1 actIds: [ 'b20e66', 'fd3a94' ],
-1 31480 actIds: [ 'b20e66' ],
29811 31481 all: [ 'identical-links-same-purpose' ],
29812 31482 any: [],
29813 31483 none: []
@@ -29841,7 +31511,8 @@ module.exports = {
29841 31511 id: 'input-button-name',
29842 31512 selector: 'input[type="button"], input[type="submit"], input[type="reset"]',
29843 31513 matches: 'no-explicit-name-required-matches',
29844 -1 tags: [ 'cat.name-role-value', 'wcag2a', 'wcag412', 'section508', 'section508.22.a' ],
-1 31514 tags: [ 'cat.name-role-value', 'wcag2a', 'wcag412', 'section508', 'section508.22.a', 'ACT' ],
-1 31515 actIds: [ '97a4e1' ],
29845 31516 all: [],
29846 31517 any: [ 'non-empty-if-present', {
29847 31518 options: {
@@ -29859,7 +31530,7 @@ module.exports = {
29859 31530 id: 'input-image-alt',
29860 31531 selector: 'input[type="image"]',
29861 31532 matches: 'no-explicit-name-required-matches',
29862 -1 tags: [ 'cat.text-alternatives', 'wcag2a', 'wcag111', 'section508', 'section508.22.a', 'ACT' ],
-1 31533 tags: [ 'cat.text-alternatives', 'wcag2a', 'wcag111', 'wcag412', 'section508', 'section508.22.a', 'ACT' ],
29863 31534 actIds: [ '59796f' ],
29864 31535 all: [],
29865 31536 any: [ {
@@ -29883,7 +31554,7 @@ module.exports = {
29883 31554 any: [ {
29884 31555 options: {
29885 31556 pixelThreshold: .1,
29886 -1 occuranceThreshold: 3
-1 31557 occurrenceThreshold: 3
29887 31558 },
29888 31559 id: 'label-content-name-mismatch'
29889 31560 } ],
@@ -29900,8 +31571,8 @@ module.exports = {
29900 31571 id: 'label',
29901 31572 selector: 'input, textarea',
29902 31573 matches: 'label-matches',
29903 -1 tags: [ 'cat.forms', 'wcag2a', 'wcag412', 'wcag131', 'section508', 'section508.22.n', 'ACT' ],
29904 -1 actIds: [ 'e086e5', '307n5z' ],
-1 31574 tags: [ 'cat.forms', 'wcag2a', 'wcag412', 'section508', 'section508.22.n', 'ACT' ],
-1 31575 actIds: [ 'e086e5' ],
29905 31576 all: [],
29906 31577 any: [ 'implicit-label', 'explicit-label', 'aria-label', 'aria-labelledby', {
29907 31578 options: {
@@ -29989,7 +31660,8 @@ module.exports = {
29989 31660 tags: [ 'cat.semantics', 'best-practice' ],
29990 31661 all: [ {
29991 31662 options: {
29992 -1 selector: 'main:not([role]), [role=\'main\']'
-1 31663 selector: 'main:not([role]), [role=\'main\']',
-1 31664 passForModal: true
29993 31665 },
29994 31666 id: 'page-has-main'
29995 31667 } ],
@@ -30008,9 +31680,14 @@ module.exports = {
30008 31680 selector: 'a[href], [role=link]',
30009 31681 matches: 'link-in-text-block-matches',
30010 31682 excludeHidden: false,
30011 -1 tags: [ 'cat.color', 'experimental', 'wcag2a', 'wcag141' ],
30012 -1 all: [ 'link-in-text-block' ],
30013 -1 any: [],
-1 31683 tags: [ 'cat.color', 'wcag2a', 'wcag141' ],
-1 31684 all: [],
-1 31685 any: [ {
-1 31686 options: {
-1 31687 requiredContrastRatio: 3
-1 31688 },
-1 31689 id: 'link-in-text-block'
-1 31690 }, 'link-in-text-block-style' ],
30014 31691 none: []
30015 31692 }, {
30016 31693 id: 'link-name',
@@ -30032,7 +31709,13 @@ module.exports = {
30032 31709 tags: [ 'cat.structure', 'wcag2a', 'wcag131' ],
30033 31710 all: [],
30034 31711 any: [],
30035 -1 none: [ 'only-listitems' ]
-1 31712 none: [ {
-1 31713 options: {
-1 31714 validRoles: [ 'listitem' ],
-1 31715 validNodeNames: [ 'li' ]
-1 31716 },
-1 31717 id: 'only-listitems'
-1 31718 } ]
30036 31719 }, {
30037 31720 id: 'listitem',
30038 31721 selector: 'li',
@@ -30050,12 +31733,35 @@ module.exports = {
30050 31733 any: [],
30051 31734 none: [ 'is-on-screen' ]
30052 31735 }, {
-1 31736 id: 'meta-refresh-no-exceptions',
-1 31737 selector: 'meta[http-equiv="refresh"][content]',
-1 31738 excludeHidden: false,
-1 31739 enabled: false,
-1 31740 tags: [ 'cat.time-and-media', 'wcag2aaa', 'wcag224', 'wcag325' ],
-1 31741 actIds: [ 'bisz58' ],
-1 31742 all: [],
-1 31743 any: [ {
-1 31744 options: {
-1 31745 minDelay: 72e3,
-1 31746 maxDelay: false
-1 31747 },
-1 31748 id: 'meta-refresh-no-exceptions'
-1 31749 } ],
-1 31750 none: []
-1 31751 }, {
30053 31752 id: 'meta-refresh',
30054 -1 selector: 'meta[http-equiv="refresh"]',
-1 31753 selector: 'meta[http-equiv="refresh"][content]',
30055 31754 excludeHidden: false,
30056 -1 tags: [ 'cat.time-and-media', 'wcag2a', 'wcag221', 'wcag224', 'wcag325' ],
-1 31755 tags: [ 'cat.time-and-media', 'wcag2a', 'wcag221' ],
-1 31756 actIds: [ 'bc659a', 'bisz58' ],
30057 31757 all: [],
30058 -1 any: [ 'meta-refresh' ],
-1 31758 any: [ {
-1 31759 options: {
-1 31760 minDelay: 0,
-1 31761 maxDelay: 72e3
-1 31762 },
-1 31763 id: 'meta-refresh'
-1 31764 } ],
30059 31765 none: []
30060 31766 }, {
30061 31767 id: 'meta-viewport-large',
@@ -30077,7 +31783,7 @@ module.exports = {
30077 31783 selector: 'meta[name="viewport"]',
30078 31784 matches: 'is-initiator-matches',
30079 31785 excludeHidden: false,
30080 -1 tags: [ 'cat.sensory-and-visual-cues', 'best-practice', 'ACT' ],
-1 31786 tags: [ 'cat.sensory-and-visual-cues', 'wcag2aa', 'wcag144', 'ACT' ],
30081 31787 actIds: [ 'b4f0c3' ],
30082 31788 all: [],
30083 31789 any: [ {
@@ -30100,7 +31806,8 @@ module.exports = {
30100 31806 excludeHidden: false,
30101 31807 selector: 'audio[autoplay], video[autoplay]',
30102 31808 matches: 'no-autoplay-audio-matches',
30103 -1 tags: [ 'cat.time-and-media', 'wcag2a', 'wcag142', 'experimental' ],
-1 31809 reviewOnFail: true,
-1 31810 tags: [ 'cat.time-and-media', 'wcag2a', 'wcag142', 'ACT' ],
30104 31811 actIds: [ '80f0bf' ],
30105 31812 preload: true,
30106 31813 all: [ {
@@ -30113,8 +31820,8 @@ module.exports = {
30113 31820 none: []
30114 31821 }, {
30115 31822 id: 'object-alt',
30116 -1 selector: 'object',
30117 -1 matches: 'no-explicit-name-required-matches',
-1 31823 selector: 'object[data]',
-1 31824 matches: 'object-is-loaded-matches',
30118 31825 tags: [ 'cat.text-alternatives', 'wcag2a', 'wcag111', 'section508', 'section508.22.a' ],
30119 31826 actIds: [ '8fc3b6' ],
30120 31827 all: [],
@@ -30157,7 +31864,8 @@ module.exports = {
30157 31864 tags: [ 'cat.semantics', 'best-practice' ],
30158 31865 all: [ {
30159 31866 options: {
30160 -1 selector: 'h1:not([role], [aria-level]), :is(h1, h2, h3, h4, h5, h6):not([role])[aria-level=1], [role=heading][aria-level=1]'
-1 31867 selector: 'h1:not([role], [aria-level]), :is(h1, h2, h3, h4, h5, h6):not([role])[aria-level=1], [role=heading][aria-level=1]',
-1 31868 passForModal: true
30161 31869 },
30162 31870 id: 'page-has-heading-one'
30163 31871 } ],
@@ -30165,9 +31873,10 @@ module.exports = {
30165 31873 none: []
30166 31874 }, {
30167 31875 id: 'presentation-role-conflict',
-1 31876 selector: 'img[alt=\'\'], [role="none"], [role="presentation"]',
30168 31877 matches: 'has-implicit-chromium-role-matches',
30169 -1 selector: '[role="none"], [role="presentation"]',
30170 -1 tags: [ 'cat.aria', 'best-practice' ],
-1 31878 tags: [ 'cat.aria', 'best-practice', 'ACT' ],
-1 31879 actIds: [ '46ca7f' ],
30171 31880 all: [],
30172 31881 any: [],
30173 31882 none: [ 'is-element-focusable', 'has-global-aria-attribute' ]
@@ -30220,7 +31929,7 @@ module.exports = {
30220 31929 }, {
30221 31930 id: 'select-name',
30222 31931 selector: 'select',
30223 -1 tags: [ 'cat.forms', 'wcag2a', 'wcag412', 'wcag131', 'section508', 'section508.22.n', 'ACT' ],
-1 31932 tags: [ 'cat.forms', 'wcag2a', 'wcag412', 'section508', 'section508.22.n', 'ACT' ],
30224 31933 actIds: [ 'e086e5' ],
30225 31934 all: [],
30226 31935 any: [ 'implicit-label', 'explicit-label', 'aria-label', 'aria-labelledby', {
@@ -30282,6 +31991,25 @@ module.exports = {
30282 31991 any: [],
30283 31992 none: []
30284 31993 }, {
-1 31994 id: 'target-size',
-1 31995 selector: '*',
-1 31996 enabled: false,
-1 31997 matches: 'widget-not-inline-matches',
-1 31998 tags: [ 'wcag22aa', 'wcag258', 'cat.sensory-and-visual-cues' ],
-1 31999 all: [],
-1 32000 any: [ {
-1 32001 options: {
-1 32002 minSize: 24
-1 32003 },
-1 32004 id: 'target-size'
-1 32005 }, {
-1 32006 options: {
-1 32007 minOffset: 24
-1 32008 },
-1 32009 id: 'target-offset'
-1 32010 } ],
-1 32011 none: []
-1 32012 }, {
30285 32013 id: 'td-has-header',
30286 32014 selector: 'table',
30287 32015 matches: 'data-table-large-matches',
@@ -30292,6 +32020,7 @@ module.exports = {
30292 32020 }, {
30293 32021 id: 'td-headers-attr',
30294 32022 selector: 'table',
-1 32023 matches: 'table-or-grid-role-matches',
30295 32024 tags: [ 'cat.tables', 'wcag2a', 'wcag131', 'section508', 'section508.22.g' ],
30296 32025 actIds: [ 'a25f45' ],
30297 32026 all: [ 'td-headers-attr' ],
@@ -30308,9 +32037,9 @@ module.exports = {
30308 32037 none: []
30309 32038 }, {
30310 32039 id: 'valid-lang',
30311 -1 selector: '[lang], [xml\\:lang]',
30312 -1 matches: 'not-html-matches',
30313 -1 tags: [ 'cat.language', 'wcag2aa', 'wcag312' ],
-1 32040 selector: '[lang]:not(html), [xml\\:lang]:not(html)',
-1 32041 tags: [ 'cat.language', 'wcag2aa', 'wcag312', 'ACT' ],
-1 32042 actIds: [ 'de46e4' ],
30314 32043 all: [],
30315 32044 any: [],
30316 32045 none: [ {
@@ -30322,7 +32051,6 @@ module.exports = {
30322 32051 }, {
30323 32052 id: 'video-caption',
30324 32053 selector: 'video',
30325 -1 excludeHidden: false,
30326 32054 tags: [ 'cat.text-alternatives', 'wcag2a', 'wcag122', 'section508', 'section508.22.a' ],
30327 32055 actIds: [ 'eac66b' ],
30328 32056 all: [],
@@ -30346,6 +32074,9 @@ module.exports = {
30346 32074 ignoredTags: []
30347 32075 }
30348 32076 }, {
-1 32077 id: 'aria-busy',
-1 32078 evaluate: 'aria-busy-evaluate'
-1 32079 }, {
30349 32080 id: 'aria-errormessage',
30350 32081 evaluate: 'aria-errormessage-evaluate'
30351 32082 }, {
@@ -30367,7 +32098,7 @@ module.exports = {
30367 32098 id: 'aria-required-children',
30368 32099 evaluate: 'aria-required-children-evaluate',
30369 32100 options: {
30370 -1 reviewEmpty: [ 'doc-bibliography', 'doc-endnotes', 'grid', 'list', 'listbox', 'table', 'tablist', 'tree', 'treegrid', 'rowgroup' ]
-1 32101 reviewEmpty: [ 'doc-bibliography', 'doc-endnotes', 'grid', 'list', 'listbox', 'menu', 'menubar', 'table', 'tablist', 'tree', 'treegrid', 'rowgroup' ]
30371 32102 }
30372 32103 }, {
30373 32104 id: 'aria-required-parent',
@@ -30435,14 +32166,17 @@ module.exports = {
30435 32166 largeTextPt: 18,
30436 32167 contrastRatio: {
30437 32168 normal: {
30438 -1 expected: 7
-1 32169 expected: 7,
-1 32170 minThreshold: 4.5
30439 32171 },
30440 32172 large: {
30441 -1 expected: 4.5
-1 32173 expected: 4.5,
-1 32174 minThreshold: 3
30442 32175 }
30443 32176 },
30444 32177 pseudoSizeThreshold: .25,
30445 -1 shadowOutlineEmMax: .1
-1 32178 shadowOutlineEmMax: .1,
-1 32179 textStrokeEmMin: .03
30446 32180 }
30447 32181 }, {
30448 32182 id: 'color-contrast',
@@ -30463,11 +32197,18 @@ module.exports = {
30463 32197 }
30464 32198 },
30465 32199 pseudoSizeThreshold: .25,
30466 -1 shadowOutlineEmMax: .2
-1 32200 shadowOutlineEmMax: .2,
-1 32201 textStrokeEmMin: .03
30467 32202 }
30468 32203 }, {
-1 32204 id: 'link-in-text-block-style',
-1 32205 evaluate: 'link-in-text-block-style-evaluate'
-1 32206 }, {
30469 32207 id: 'link-in-text-block',
30470 -1 evaluate: 'link-in-text-block-evaluate'
-1 32208 evaluate: 'link-in-text-block-evaluate',
-1 32209 options: {
-1 32210 requiredContrastRatio: 3
-1 32211 }
30471 32212 }, {
30472 32213 id: 'autocomplete-appropriate',
30473 32214 evaluate: 'autocomplete-appropriate-evaluate',
@@ -30514,14 +32255,16 @@ module.exports = {
30514 32255 evaluate: 'has-descendant-evaluate',
30515 32256 after: 'has-descendant-after',
30516 32257 options: {
30517 -1 selector: 'h1:not([role], [aria-level]), :is(h1, h2, h3, h4, h5, h6):not([role])[aria-level=1], [role=heading][aria-level=1]'
-1 32258 selector: 'h1:not([role], [aria-level]), :is(h1, h2, h3, h4, h5, h6):not([role])[aria-level=1], [role=heading][aria-level=1]',
-1 32259 passForModal: true
30518 32260 }
30519 32261 }, {
30520 32262 id: 'page-has-main',
30521 32263 evaluate: 'has-descendant-evaluate',
30522 32264 after: 'has-descendant-after',
30523 32265 options: {
30524 -1 selector: 'main:not([role]), [role=\'main\']'
-1 32266 selector: 'main:not([role]), [role=\'main\']',
-1 32267 passForModal: true
30525 32268 }
30526 32269 }, {
30527 32270 id: 'page-no-duplicate-banner',
@@ -30576,7 +32319,7 @@ module.exports = {
30576 32319 evaluate: 'label-content-name-mismatch-evaluate',
30577 32320 options: {
30578 32321 pixelThreshold: .1,
30579 -1 occuranceThreshold: 3
-1 32322 occurrenceThreshold: 3
30580 32323 }
30581 32324 }, {
30582 32325 id: 'multiple-label',
@@ -30611,10 +32354,19 @@ module.exports = {
30611 32354 evaluate: 'listitem-evaluate'
30612 32355 }, {
30613 32356 id: 'only-dlitems',
30614 -1 evaluate: 'only-dlitems-evaluate'
-1 32357 evaluate: 'invalid-children-evaluate',
-1 32358 options: {
-1 32359 validRoles: [ 'definition', 'term', 'listitem' ],
-1 32360 validNodeNames: [ 'dt', 'dd' ],
-1 32361 divGroups: true
-1 32362 }
30615 32363 }, {
30616 32364 id: 'only-listitems',
30617 -1 evaluate: 'only-listitems-evaluate'
-1 32365 evaluate: 'invalid-children-evaluate',
-1 32366 options: {
-1 32367 validRoles: [ 'listitem' ],
-1 32368 validNodeNames: [ 'li' ]
-1 32369 }
30618 32370 }, {
30619 32371 id: 'structured-dlitems',
30620 32372 evaluate: 'structured-dlitems-evaluate'
@@ -30654,6 +32406,18 @@ module.exports = {
30654 32406 scaleMinimum: 2
30655 32407 }
30656 32408 }, {
-1 32409 id: 'target-offset',
-1 32410 evaluate: 'target-offset-evaluate',
-1 32411 options: {
-1 32412 minOffset: 24
-1 32413 }
-1 32414 }, {
-1 32415 id: 'target-size',
-1 32416 evaluate: 'target-size-evaluate',
-1 32417 options: {
-1 32418 minSize: 24
-1 32419 }
-1 32420 }, {
30657 32421 id: 'header-present',
30658 32422 evaluate: 'has-descendant-evaluate',
30659 32423 after: 'has-descendant-after',
@@ -30678,8 +32442,19 @@ module.exports = {
30678 32442 selector: 'main, [role=main]'
30679 32443 }
30680 32444 }, {
-1 32445 id: 'meta-refresh-no-exceptions',
-1 32446 evaluate: 'meta-refresh-evaluate',
-1 32447 options: {
-1 32448 minDelay: 72e3,
-1 32449 maxDelay: false
-1 32450 }
-1 32451 }, {
30681 32452 id: 'meta-refresh',
30682 -1 evaluate: 'meta-refresh-evaluate'
-1 32453 evaluate: 'meta-refresh-evaluate',
-1 32454 options: {
-1 32455 minDelay: 0,
-1 32456 maxDelay: 72e3
-1 32457 }
30683 32458 }, {
30684 32459 id: 'p-as-heading',
30685 32460 evaluate: 'p-as-heading-evaluate',
@@ -30753,6 +32528,29 @@ module.exports = {
30753 32528 id: 'has-visible-text',
30754 32529 evaluate: 'has-text-content-evaluate'
30755 32530 }, {
-1 32531 id: 'important-letter-spacing',
-1 32532 evaluate: 'inline-style-property-evaluate',
-1 32533 options: {
-1 32534 cssProperty: 'letter-spacing',
-1 32535 minValue: .12
-1 32536 }
-1 32537 }, {
-1 32538 id: 'important-line-height',
-1 32539 evaluate: 'inline-style-property-evaluate',
-1 32540 options: {
-1 32541 multiLineOnly: true,
-1 32542 cssProperty: 'line-height',
-1 32543 minValue: 1.5,
-1 32544 normalValue: 1
-1 32545 }
-1 32546 }, {
-1 32547 id: 'important-word-spacing',
-1 32548 evaluate: 'inline-style-property-evaluate',
-1 32549 options: {
-1 32550 cssProperty: 'word-spacing',
-1 32551 minValue: .16
-1 32552 }
-1 32553 }, {
30756 32554 id: 'is-on-screen',
30757 32555 evaluate: 'is-on-screen-evaluate'
30758 32556 }, {
@@ -30846,17 +32644,14 @@ module.exports = {
30846 32644
30847 32645 exports.__esModule = true;
30848 32646 exports.computeAccessibleDescription = computeAccessibleDescription;
30849 -1
30850 32647 var _accessibleNameAndDescription = require("./accessible-name-and-description");
30851 -1
30852 32648 var _util = require("./util");
30853 -1
-1 32649 function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
30854 32650 function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
30855 -1
30856 32651 function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
30857 -1
30858 -1 function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
30859 -1
-1 32652 function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
-1 32653 function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
-1 32654 function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
30860 32655 /**
30861 32656 * @param root
30862 32657 * @param options
@@ -30868,17 +32663,17 @@ function computeAccessibleDescription(root) {
30868 32663 return (0, _accessibleNameAndDescription.computeTextAlternative)(element, _objectSpread(_objectSpread({}, options), {}, {
30869 32664 compute: "description"
30870 32665 }));
30871 -1 }).join(" "); // TODO: Technically we need to make sure that node wasn't used for the accessible name
-1 32666 }).join(" ");
-1 32667
-1 32668 // TODO: Technically we need to make sure that node wasn't used for the accessible name
30872 32669 // This causes `description_1.0_combobox-focusable-manual` to fail
30873 32670 //
30874 32671 // https://www.w3.org/TR/html-aam-1.0/#accessible-name-and-description-computation
30875 32672 // says for so many elements to use the `title` that we assume all elements are considered
30876 -1
30877 32673 if (description === "") {
30878 32674 var title = root.getAttribute("title");
30879 32675 description = title === null ? "" : title;
30880 32676 }
30881 -1
30882 32677 return description;
30883 32678 }
30884 32679
@@ -30887,15 +32682,10 @@ function computeAccessibleDescription(root) {
30887 32682
30888 32683 exports.__esModule = true;
30889 32684 exports.computeTextAlternative = computeTextAlternative;
30890 -1
30891 32685 var _array = _interopRequireDefault(require("./polyfills/array.from"));
30892 -1
30893 32686 var _SetLike = _interopRequireDefault(require("./polyfills/SetLike"));
30894 -1
30895 32687 var _util = require("./util");
30896 -1
30897 32688 function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
30898 -1
30899 32689 /**
30900 32690 * implements https://w3c.github.io/accname/
30901 32691 */
@@ -30908,56 +32698,48 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
30908 32698 function asFlatString(s) {
30909 32699 return s.trim().replace(/\s\s+/g, " ");
30910 32700 }
-1 32701
30911 32702 /**
30912 32703 *
30913 32704 * @param node -
30914 32705 * @param options - These are not optional to prevent accidentally calling it without options in `computeAccessibleName`
30915 32706 * @returns {boolean} -
30916 32707 */
30917 -1
30918 -1
30919 32708 function isHidden(node, getComputedStyleImplementation) {
30920 32709 if (!(0, _util.isElement)(node)) {
30921 32710 return false;
30922 32711 }
30923 -1
30924 32712 if (node.hasAttribute("hidden") || node.getAttribute("aria-hidden") === "true") {
30925 32713 return true;
30926 32714 }
30927 -1
30928 32715 var style = getComputedStyleImplementation(node);
30929 32716 return style.getPropertyValue("display") === "none" || style.getPropertyValue("visibility") === "hidden";
30930 32717 }
-1 32718
30931 32719 /**
30932 32720 * @param {Node} node -
30933 32721 * @returns {boolean} - As defined in step 2E of https://w3c.github.io/accname/#mapping_additional_nd_te
30934 32722 */
30935 -1
30936 -1
30937 32723 function isControl(node) {
30938 32724 return (0, _util.hasAnyConcreteRoles)(node, ["button", "combobox", "listbox", "textbox"]) || hasAbstractRole(node, "range");
30939 32725 }
30940 -1
30941 32726 function hasAbstractRole(node, role) {
30942 32727 if (!(0, _util.isElement)(node)) {
30943 32728 return false;
30944 32729 }
30945 -1
30946 32730 switch (role) {
30947 32731 case "range":
30948 32732 return (0, _util.hasAnyConcreteRoles)(node, ["meter", "progressbar", "scrollbar", "slider", "spinbutton"]);
30949 -1
30950 32733 default:
30951 32734 throw new TypeError("No knowledge about abstract role '".concat(role, "'. This is likely a bug :("));
30952 32735 }
30953 32736 }
-1 32737
30954 32738 /**
30955 32739 * element.querySelectorAll but also considers owned tree
30956 32740 * @param element
30957 32741 * @param selectors
30958 32742 */
30959 -1
30960 -1
30961 32743 function querySelectorAllSubtree(element, selectors) {
30962 32744 var elements = (0, _array.default)(element.querySelectorAll(selectors));
30963 32745 (0, _util.queryIdRefs)(element, "aria-owns").forEach(function (root) {
@@ -30966,19 +32748,17 @@ function querySelectorAllSubtree(element, selectors) {
30966 32748 });
30967 32749 return elements;
30968 32750 }
30969 -1
30970 32751 function querySelectedOptions(listbox) {
30971 32752 if ((0, _util.isHTMLSelectElement)(listbox)) {
30972 32753 // IE11 polyfill
30973 32754 return listbox.selectedOptions || querySelectorAllSubtree(listbox, "[selected]");
30974 32755 }
30975 -1
30976 32756 return querySelectorAllSubtree(listbox, '[aria-selected="true"]');
30977 32757 }
30978 -1
30979 32758 function isMarkedPresentational(node) {
30980 32759 return (0, _util.hasAnyConcreteRoles)(node, ["none", "presentation"]);
30981 32760 }
-1 32761
30982 32762 /**
30983 32763 * Elements specifically listed in html-aam
30984 32764 *
@@ -30989,84 +32769,63 @@ function isMarkedPresentational(node) {
30989 32769 *
30990 32770 * - https://w3c.github.io/html-aam/#table-element
30991 32771 */
30992 -1
30993 -1
30994 32772 function isNativeHostLanguageTextAlternativeElement(node) {
30995 32773 return (0, _util.isHTMLTableCaptionElement)(node);
30996 32774 }
-1 32775
30997 32776 /**
30998 32777 * https://w3c.github.io/aria/#namefromcontent
30999 32778 */
31000 -1
31001 -1
31002 32779 function allowsNameFromContent(node) {
31003 32780 return (0, _util.hasAnyConcreteRoles)(node, ["button", "cell", "checkbox", "columnheader", "gridcell", "heading", "label", "legend", "link", "menuitem", "menuitemcheckbox", "menuitemradio", "option", "radio", "row", "rowheader", "switch", "tab", "tooltip", "treeitem"]);
31004 32781 }
-1 32782
31005 32783 /**
31006 32784 * TODO https://github.com/eps1lon/dom-accessibility-api/issues/100
31007 32785 */
31008 -1
31009 -1
31010 -1 function isDescendantOfNativeHostLanguageTextAlternativeElement( // eslint-disable-next-line @typescript-eslint/no-unused-vars -- not implemented yet
-1 32786 function isDescendantOfNativeHostLanguageTextAlternativeElement(
-1 32787 // eslint-disable-next-line @typescript-eslint/no-unused-vars -- not implemented yet
31011 32788 node) {
31012 32789 return false;
31013 32790 }
31014 -1 /**
31015 -1 * TODO https://github.com/eps1lon/dom-accessibility-api/issues/101
31016 -1 */
31017 -1 // eslint-disable-next-line @typescript-eslint/no-unused-vars -- not implemented yet
31018 -1
31019 -1
31020 -1 function computeTooltipAttributeValue(node) {
31021 -1 return null;
31022 -1 }
31023 -1
31024 32791 function getValueOfTextbox(element) {
31025 32792 if ((0, _util.isHTMLInputElement)(element) || (0, _util.isHTMLTextAreaElement)(element)) {
31026 32793 return element.value;
31027 -1 } // https://github.com/eps1lon/dom-accessibility-api/issues/4
31028 -1
31029 -1
-1 32794 }
-1 32795 // https://github.com/eps1lon/dom-accessibility-api/issues/4
31030 32796 return element.textContent || "";
31031 32797 }
31032 -1
31033 32798 function getTextualContent(declaration) {
31034 32799 var content = declaration.getPropertyValue("content");
31035 -1
31036 32800 if (/^["'].*["']$/.test(content)) {
31037 32801 return content.slice(1, -1);
31038 32802 }
31039 -1
31040 32803 return "";
31041 32804 }
-1 32805
31042 32806 /**
31043 32807 * https://html.spec.whatwg.org/multipage/forms.html#category-label
31044 32808 * TODO: form-associated custom elements
31045 32809 * @param element
31046 32810 */
31047 -1
31048 -1
31049 32811 function isLabelableElement(element) {
31050 32812 var localName = (0, _util.getLocalName)(element);
31051 32813 return localName === "button" || localName === "input" && element.getAttribute("type") !== "hidden" || localName === "meter" || localName === "output" || localName === "progress" || localName === "select" || localName === "textarea";
31052 32814 }
-1 32815
31053 32816 /**
31054 32817 * > [...], then the first such descendant in tree order is the label element's labeled control.
31055 32818 * -- https://html.spec.whatwg.org/multipage/forms.html#labeled-control
31056 32819 * @param element
31057 32820 */
31058 -1
31059 -1
31060 32821 function findLabelableElement(element) {
31061 32822 if (isLabelableElement(element)) {
31062 32823 return element;
31063 32824 }
31064 -1
31065 32825 var labelableElement = null;
31066 32826 element.childNodes.forEach(function (childNode) {
31067 32827 if (labelableElement === null && (0, _util.isElement)(childNode)) {
31068 32828 var descendantLabelableElement = findLabelableElement(childNode);
31069 -1
31070 32829 if (descendantLabelableElement !== null) {
31071 32830 labelableElement = descendantLabelableElement;
31072 32831 }
@@ -31074,160 +32833,146 @@ function findLabelableElement(element) {
31074 32833 });
31075 32834 return labelableElement;
31076 32835 }
-1 32836
31077 32837 /**
31078 32838 * Polyfill of HTMLLabelElement.control
31079 32839 * https://html.spec.whatwg.org/multipage/forms.html#labeled-control
31080 32840 * @param label
31081 32841 */
31082 -1
31083 -1
31084 32842 function getControlOfLabel(label) {
31085 32843 if (label.control !== undefined) {
31086 32844 return label.control;
31087 32845 }
31088 -1
31089 32846 var htmlFor = label.getAttribute("for");
31090 -1
31091 32847 if (htmlFor !== null) {
31092 32848 return label.ownerDocument.getElementById(htmlFor);
31093 32849 }
31094 -1
31095 32850 return findLabelableElement(label);
31096 32851 }
-1 32852
31097 32853 /**
31098 32854 * Polyfill of HTMLInputElement.labels
31099 32855 * https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/labels
31100 32856 * @param element
31101 32857 */
31102 -1
31103 -1
31104 32858 function getLabels(element) {
31105 32859 var labelsProperty = element.labels;
31106 -1
31107 32860 if (labelsProperty === null) {
31108 32861 return labelsProperty;
31109 32862 }
31110 -1
31111 32863 if (labelsProperty !== undefined) {
31112 32864 return (0, _array.default)(labelsProperty);
31113 -1 } // polyfill
31114 -1
-1 32865 }
31115 32866
-1 32867 // polyfill
31116 32868 if (!isLabelableElement(element)) {
31117 32869 return null;
31118 32870 }
31119 -1
31120 32871 var document = element.ownerDocument;
31121 32872 return (0, _array.default)(document.querySelectorAll("label")).filter(function (label) {
31122 32873 return getControlOfLabel(label) === element;
31123 32874 });
31124 32875 }
-1 32876
31125 32877 /**
31126 32878 * Gets the contents of a slot used for computing the accname
31127 32879 * @param slot
31128 32880 */
31129 -1
31130 -1
31131 32881 function getSlotContents(slot) {
31132 32882 // Computing the accessible name for elements containing slots is not
31133 32883 // currently defined in the spec. This implementation reflects the
31134 32884 // behavior of NVDA 2020.2/Firefox 81 and iOS VoiceOver/Safari 13.6.
31135 32885 var assignedNodes = slot.assignedNodes();
31136 -1
31137 32886 if (assignedNodes.length === 0) {
31138 32887 // if no nodes are assigned to the slot, it displays the default content
31139 32888 return (0, _array.default)(slot.childNodes);
31140 32889 }
31141 -1
31142 32890 return assignedNodes;
31143 32891 }
-1 32892
31144 32893 /**
31145 32894 * implements https://w3c.github.io/accname/#mapping_additional_nd_te
31146 32895 * @param root
31147 32896 * @param options
31148 32897 * @returns
31149 32898 */
31150 -1
31151 -1
31152 32899 function computeTextAlternative(root) {
31153 32900 var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
31154 32901 var consultedNodes = new _SetLike.default();
31155 32902 var window = (0, _util.safeWindow)(root);
31156 32903 var _options$compute = options.compute,
31157 -1 compute = _options$compute === void 0 ? "name" : _options$compute,
31158 -1 _options$computedStyl = options.computedStyleSupportsPseudoElements,
31159 -1 computedStyleSupportsPseudoElements = _options$computedStyl === void 0 ? options.getComputedStyle !== undefined : _options$computedStyl,
31160 -1 _options$getComputedS = options.getComputedStyle,
31161 -1 getComputedStyle = _options$getComputedS === void 0 ? window.getComputedStyle.bind(window) : _options$getComputedS,
31162 -1 _options$hidden = options.hidden,
31163 -1 hidden = _options$hidden === void 0 ? false : _options$hidden; // 2F.i
31164 -1
-1 32904 compute = _options$compute === void 0 ? "name" : _options$compute,
-1 32905 _options$computedStyl = options.computedStyleSupportsPseudoElements,
-1 32906 computedStyleSupportsPseudoElements = _options$computedStyl === void 0 ? options.getComputedStyle !== undefined : _options$computedStyl,
-1 32907 _options$getComputedS = options.getComputedStyle,
-1 32908 getComputedStyle = _options$getComputedS === void 0 ? window.getComputedStyle.bind(window) : _options$getComputedS,
-1 32909 _options$hidden = options.hidden,
-1 32910 hidden = _options$hidden === void 0 ? false : _options$hidden;
-1 32911
-1 32912 // 2F.i
31165 32913 function computeMiscTextAlternative(node, context) {
31166 32914 var accumulatedText = "";
31167 -1
31168 32915 if ((0, _util.isElement)(node) && computedStyleSupportsPseudoElements) {
31169 32916 var pseudoBefore = getComputedStyle(node, "::before");
31170 32917 var beforeContent = getTextualContent(pseudoBefore);
31171 32918 accumulatedText = "".concat(beforeContent, " ").concat(accumulatedText);
31172 -1 } // FIXME: Including aria-owns is not defined in the spec
31173 -1 // But it is required in the web-platform-test
31174 -1
-1 32919 }
31175 32920
-1 32921 // FIXME: Including aria-owns is not defined in the spec
-1 32922 // But it is required in the web-platform-test
31176 32923 var childNodes = (0, _util.isHTMLSlotElement)(node) ? getSlotContents(node) : (0, _array.default)(node.childNodes).concat((0, _util.queryIdRefs)(node, "aria-owns"));
31177 32924 childNodes.forEach(function (child) {
31178 32925 var result = computeTextAlternative(child, {
31179 32926 isEmbeddedInLabel: context.isEmbeddedInLabel,
31180 32927 isReferenced: false,
31181 32928 recursion: true
31182 -1 }); // TODO: Unclear why display affects delimiter
-1 32929 });
-1 32930 // TODO: Unclear why display affects delimiter
31183 32931 // see https://github.com/w3c/accname/issues/3
31184 -1
31185 32932 var display = (0, _util.isElement)(child) ? getComputedStyle(child).getPropertyValue("display") : "inline";
31186 -1 var separator = display !== "inline" ? " " : ""; // trailing separator for wpt tests
31187 -1
-1 32933 var separator = display !== "inline" ? " " : "";
-1 32934 // trailing separator for wpt tests
31188 32935 accumulatedText += "".concat(separator).concat(result).concat(separator);
31189 32936 });
31190 -1
31191 32937 if ((0, _util.isElement)(node) && computedStyleSupportsPseudoElements) {
31192 32938 var pseudoAfter = getComputedStyle(node, "::after");
31193 32939 var afterContent = getTextualContent(pseudoAfter);
31194 32940 accumulatedText = "".concat(accumulatedText, " ").concat(afterContent);
31195 32941 }
31196 -1
31197 32942 return accumulatedText.trim();
31198 32943 }
31199 32944
31200 -1 function computeElementTextAlternative(node) {
-1 32945 /**
-1 32946 *
-1 32947 * @param element
-1 32948 * @param attributeName
-1 32949 * @returns A string non-empty string or `null`
-1 32950 */
-1 32951 function useAttribute(element, attributeName) {
-1 32952 var attribute = element.getAttributeNode(attributeName);
-1 32953 if (attribute !== null && !consultedNodes.has(attribute) && attribute.value.trim() !== "") {
-1 32954 consultedNodes.add(attribute);
-1 32955 return attribute.value;
-1 32956 }
-1 32957 return null;
-1 32958 }
-1 32959 function computeTooltipAttributeValue(node) {
31201 32960 if (!(0, _util.isElement)(node)) {
31202 32961 return null;
31203 32962 }
31204 -1 /**
31205 -1 *
31206 -1 * @param element
31207 -1 * @param attributeName
31208 -1 * @returns A string non-empty string or `null`
31209 -1 */
31210 -1
31211 -1
31212 -1 function useAttribute(element, attributeName) {
31213 -1 var attribute = element.getAttributeNode(attributeName);
31214 -1
31215 -1 if (attribute !== null && !consultedNodes.has(attribute) && attribute.value.trim() !== "") {
31216 -1 consultedNodes.add(attribute);
31217 -1 return attribute.value;
31218 -1 }
31219 -1
-1 32963 return useAttribute(node, "title");
-1 32964 }
-1 32965 function computeElementTextAlternative(node) {
-1 32966 if (!(0, _util.isElement)(node)) {
31220 32967 return null;
31221 -1 } // https://w3c.github.io/html-aam/#fieldset-and-legend-elements
31222 -1
-1 32968 }
31223 32969
-1 32970 // https://w3c.github.io/html-aam/#fieldset-and-legend-elements
31224 32971 if ((0, _util.isHTMLFieldSetElement)(node)) {
31225 32972 consultedNodes.add(node);
31226 32973 var children = (0, _array.default)(node.childNodes);
31227 -1
31228 32974 for (var i = 0; i < children.length; i += 1) {
31229 32975 var child = children[i];
31230 -1
31231 32976 if ((0, _util.isHTMLLegendElement)(child)) {
31232 32977 return computeTextAlternative(child, {
31233 32978 isEmbeddedInLabel: false,
@@ -31239,12 +32984,9 @@ function computeTextAlternative(root) {
31239 32984 } else if ((0, _util.isHTMLTableElement)(node)) {
31240 32985 // https://w3c.github.io/html-aam/#table-element
31241 32986 consultedNodes.add(node);
31242 -1
31243 32987 var _children = (0, _array.default)(node.childNodes);
31244 -1
31245 32988 for (var _i = 0; _i < _children.length; _i += 1) {
31246 32989 var _child = _children[_i];
31247 -1
31248 32990 if ((0, _util.isHTMLTableCaptionElement)(_child)) {
31249 32991 return computeTextAlternative(_child, {
31250 32992 isEmbeddedInLabel: false,
@@ -31256,55 +32998,44 @@ function computeTextAlternative(root) {
31256 32998 } else if ((0, _util.isSVGSVGElement)(node)) {
31257 32999 // https://www.w3.org/TR/svg-aam-1.0/
31258 33000 consultedNodes.add(node);
31259 -1
31260 33001 var _children2 = (0, _array.default)(node.childNodes);
31261 -1
31262 33002 for (var _i2 = 0; _i2 < _children2.length; _i2 += 1) {
31263 33003 var _child2 = _children2[_i2];
31264 -1
31265 33004 if ((0, _util.isSVGTitleElement)(_child2)) {
31266 33005 return _child2.textContent;
31267 33006 }
31268 33007 }
31269 -1
31270 33008 return null;
31271 33009 } else if ((0, _util.getLocalName)(node) === "img" || (0, _util.getLocalName)(node) === "area") {
31272 33010 // https://w3c.github.io/html-aam/#area-element
31273 33011 // https://w3c.github.io/html-aam/#img-element
31274 33012 var nameFromAlt = useAttribute(node, "alt");
31275 -1
31276 33013 if (nameFromAlt !== null) {
31277 33014 return nameFromAlt;
31278 33015 }
31279 33016 } else if ((0, _util.isHTMLOptGroupElement)(node)) {
31280 33017 var nameFromLabel = useAttribute(node, "label");
31281 -1
31282 33018 if (nameFromLabel !== null) {
31283 33019 return nameFromLabel;
31284 33020 }
31285 33021 }
31286 -1
31287 33022 if ((0, _util.isHTMLInputElement)(node) && (node.type === "button" || node.type === "submit" || node.type === "reset")) {
31288 33023 // https://w3c.github.io/html-aam/#input-type-text-input-type-password-input-type-search-input-type-tel-input-type-email-input-type-url-and-textarea-element-accessible-description-computation
31289 33024 var nameFromValue = useAttribute(node, "value");
31290 -1
31291 33025 if (nameFromValue !== null) {
31292 33026 return nameFromValue;
31293 -1 } // TODO: l10n
31294 -1
-1 33027 }
31295 33028
-1 33029 // TODO: l10n
31296 33030 if (node.type === "submit") {
31297 33031 return "Submit";
31298 -1 } // TODO: l10n
31299 -1
31300 -1
-1 33032 }
-1 33033 // TODO: l10n
31301 33034 if (node.type === "reset") {
31302 33035 return "Reset";
31303 33036 }
31304 33037 }
31305 -1
31306 33038 var labels = getLabels(node);
31307 -1
31308 33039 if (labels !== null && labels.length !== 0) {
31309 33040 consultedNodes.add(node);
31310 33041 return (0, _array.default)(labels).map(function (element) {
@@ -31316,59 +33047,49 @@ function computeTextAlternative(root) {
31316 33047 }).filter(function (label) {
31317 33048 return label.length > 0;
31318 33049 }).join(" ");
31319 -1 } // https://w3c.github.io/html-aam/#input-type-image-accessible-name-computation
-1 33050 }
-1 33051
-1 33052 // https://w3c.github.io/html-aam/#input-type-image-accessible-name-computation
31320 33053 // TODO: wpt test consider label elements but html-aam does not mention them
31321 33054 // We follow existing implementations over spec
31322 -1
31323 -1
31324 33055 if ((0, _util.isHTMLInputElement)(node) && node.type === "image") {
31325 33056 var _nameFromAlt = useAttribute(node, "alt");
31326 -1
31327 33057 if (_nameFromAlt !== null) {
31328 33058 return _nameFromAlt;
31329 33059 }
31330 -1
31331 33060 var nameFromTitle = useAttribute(node, "title");
31332 -1
31333 33061 if (nameFromTitle !== null) {
31334 33062 return nameFromTitle;
31335 -1 } // TODO: l10n
31336 -1
-1 33063 }
31337 33064
-1 33065 // TODO: l10n
31338 33066 return "Submit Query";
31339 33067 }
31340 -1
31341 33068 if ((0, _util.hasAnyConcreteRoles)(node, ["button"])) {
31342 33069 // https://www.w3.org/TR/html-aam-1.0/#button-element
31343 33070 var nameFromSubTree = computeMiscTextAlternative(node, {
31344 33071 isEmbeddedInLabel: false,
31345 33072 isReferenced: false
31346 33073 });
31347 -1
31348 33074 if (nameFromSubTree !== "") {
31349 33075 return nameFromSubTree;
31350 33076 }
31351 -1
31352 -1 return useAttribute(node, "title");
31353 33077 }
31354 -1
31355 -1 return useAttribute(node, "title");
-1 33078 return null;
31356 33079 }
31357 -1
31358 33080 function computeTextAlternative(current, context) {
31359 33081 if (consultedNodes.has(current)) {
31360 33082 return "";
31361 -1 } // 2A
31362 -1
-1 33083 }
31363 33084
-1 33085 // 2A
31364 33086 if (!hidden && isHidden(current, getComputedStyle) && !context.isReferenced) {
31365 33087 consultedNodes.add(current);
31366 33088 return "";
31367 -1 } // 2B
31368 -1
-1 33089 }
31369 33090
-1 33091 // 2B
31370 33092 var labelElements = (0, _util.queryIdRefs)(current, "aria-labelledby");
31371 -1
31372 33093 if (compute === "name" && !context.isReferenced && labelElements.length > 0) {
31373 33094 return labelElements.map(function (element) {
31374 33095 return computeTextAlternative(element, {
@@ -31380,50 +33101,45 @@ function computeTextAlternative(root) {
31380 33101 recursion: false
31381 33102 });
31382 33103 }).join(" ");
31383 -1 } // 2C
-1 33104 }
-1 33105
-1 33106 // 2C
31384 33107 // Changed from the spec in anticipation of https://github.com/w3c/accname/issues/64
31385 33108 // spec says we should only consider skipping if we have a non-empty label
31386 -1
31387 -1
31388 33109 var skipToStep2E = context.recursion && isControl(current) && compute === "name";
31389 -1
31390 33110 if (!skipToStep2E) {
31391 33111 var ariaLabel = ((0, _util.isElement)(current) && current.getAttribute("aria-label") || "").trim();
31392 -1
31393 33112 if (ariaLabel !== "" && compute === "name") {
31394 33113 consultedNodes.add(current);
31395 33114 return ariaLabel;
31396 -1 } // 2D
31397 -1
-1 33115 }
31398 33116
-1 33117 // 2D
31399 33118 if (!isMarkedPresentational(current)) {
31400 33119 var elementTextAlternative = computeElementTextAlternative(current);
31401 -1
31402 33120 if (elementTextAlternative !== null) {
31403 33121 consultedNodes.add(current);
31404 33122 return elementTextAlternative;
31405 33123 }
31406 33124 }
31407 -1 } // special casing, cheating to make tests pass
31408 -1 // https://github.com/w3c/accname/issues/67
31409 -1
-1 33125 }
31410 33126
-1 33127 // special casing, cheating to make tests pass
-1 33128 // https://github.com/w3c/accname/issues/67
31411 33129 if ((0, _util.hasAnyConcreteRoles)(current, ["menu"])) {
31412 33130 consultedNodes.add(current);
31413 33131 return "";
31414 -1 } // 2E
31415 -1
-1 33132 }
31416 33133
-1 33134 // 2E
31417 33135 if (skipToStep2E || context.isEmbeddedInLabel || context.isReferenced) {
31418 33136 if ((0, _util.hasAnyConcreteRoles)(current, ["combobox", "listbox"])) {
31419 33137 consultedNodes.add(current);
31420 33138 var selectedOptions = querySelectedOptions(current);
31421 -1
31422 33139 if (selectedOptions.length === 0) {
31423 33140 // defined per test `name_heading_combobox`
31424 33141 return (0, _util.isHTMLInputElement)(current) ? current.value : "";
31425 33142 }
31426 -1
31427 33143 return (0, _array.default)(selectedOptions).map(function (selectedOption) {
31428 33144 return computeTextAlternative(selectedOption, {
31429 33145 isEmbeddedInLabel: context.isEmbeddedInLabel,
@@ -31432,44 +33148,40 @@ function computeTextAlternative(root) {
31432 33148 });
31433 33149 }).join(" ");
31434 33150 }
31435 -1
31436 33151 if (hasAbstractRole(current, "range")) {
31437 33152 consultedNodes.add(current);
31438 -1
31439 33153 if (current.hasAttribute("aria-valuetext")) {
31440 33154 // eslint-disable-next-line @typescript-eslint/no-non-null-assertion -- safe due to hasAttribute guard
31441 33155 return current.getAttribute("aria-valuetext");
31442 33156 }
31443 -1
31444 33157 if (current.hasAttribute("aria-valuenow")) {
31445 33158 // eslint-disable-next-line @typescript-eslint/no-non-null-assertion -- safe due to hasAttribute guard
31446 33159 return current.getAttribute("aria-valuenow");
31447 -1 } // Otherwise, use the value as specified by a host language attribute.
31448 -1
31449 -1
-1 33160 }
-1 33161 // Otherwise, use the value as specified by a host language attribute.
31450 33162 return current.getAttribute("value") || "";
31451 33163 }
31452 -1
31453 33164 if ((0, _util.hasAnyConcreteRoles)(current, ["textbox"])) {
31454 33165 consultedNodes.add(current);
31455 33166 return getValueOfTextbox(current);
31456 33167 }
31457 -1 } // 2F: https://w3c.github.io/accname/#step2F
31458 -1
-1 33168 }
31459 33169
-1 33170 // 2F: https://w3c.github.io/accname/#step2F
31460 33171 if (allowsNameFromContent(current) || (0, _util.isElement)(current) && context.isReferenced || isNativeHostLanguageTextAlternativeElement(current) || isDescendantOfNativeHostLanguageTextAlternativeElement(current)) {
31461 -1 consultedNodes.add(current);
31462 -1 return computeMiscTextAlternative(current, {
-1 33172 var accumulatedText2F = computeMiscTextAlternative(current, {
31463 33173 isEmbeddedInLabel: context.isEmbeddedInLabel,
31464 33174 isReferenced: false
31465 33175 });
-1 33176 if (accumulatedText2F !== "") {
-1 33177 consultedNodes.add(current);
-1 33178 return accumulatedText2F;
-1 33179 }
31466 33180 }
31467 -1
31468 33181 if (current.nodeType === current.TEXT_NODE) {
31469 33182 consultedNodes.add(current);
31470 33183 return current.textContent || "";
31471 33184 }
31472 -1
31473 33185 if (context.recursion) {
31474 33186 consultedNodes.add(current);
31475 33187 return computeMiscTextAlternative(current, {
@@ -31477,19 +33189,16 @@ function computeTextAlternative(root) {
31477 33189 isReferenced: false
31478 33190 });
31479 33191 }
31480 -1
31481 33192 var tooltipAttributeValue = computeTooltipAttributeValue(current);
31482 -1
31483 33193 if (tooltipAttributeValue !== null) {
31484 33194 consultedNodes.add(current);
31485 33195 return tooltipAttributeValue;
31486 -1 } // TODO should this be reachable?
31487 -1
-1 33196 }
31488 33197
-1 33198 // TODO should this be reachable?
31489 33199 consultedNodes.add(current);
31490 33200 return "";
31491 33201 }
31492 -1
31493 33202 return asFlatString(computeTextAlternative(root, {
31494 33203 isEmbeddedInLabel: false,
31495 33204 // by spec computeAccessibleDescription starts with the referenced elements as roots
@@ -31503,32 +33212,26 @@ function computeTextAlternative(root) {
31503 33212
31504 33213 exports.__esModule = true;
31505 33214 exports.computeAccessibleName = computeAccessibleName;
31506 -1
31507 33215 var _accessibleNameAndDescription = require("./accessible-name-and-description");
31508 -1
31509 33216 var _util = require("./util");
31510 -1
31511 33217 /**
31512 33218 * https://w3c.github.io/aria/#namefromprohibited
31513 33219 */
31514 33220 function prohibitsNaming(node) {
31515 33221 return (0, _util.hasAnyConcreteRoles)(node, ["caption", "code", "deletion", "emphasis", "generic", "insertion", "paragraph", "presentation", "strong", "subscript", "superscript"]);
31516 33222 }
-1 33223
31517 33224 /**
31518 33225 * implements https://w3c.github.io/accname/#mapping_additional_nd_name
31519 33226 * @param root
31520 33227 * @param options
31521 33228 * @returns
31522 33229 */
31523 -1
31524 -1
31525 33230 function computeAccessibleName(root) {
31526 33231 var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
31527 -1
31528 33232 if (prohibitsNaming(root)) {
31529 33233 return "";
31530 33234 }
31531 -1
31532 33235 return (0, _accessibleNameAndDescription.computeTextAlternative)(root, options);
31533 33236 }
31534 33237
@@ -31538,7 +33241,6 @@ function computeAccessibleName(root) {
31538 33241 exports.__esModule = true;
31539 33242 exports.default = getRole;
31540 33243 exports.getLocalName = getLocalName;
31541 -1
31542 33244 // https://w3c.github.io/html-aria/#document-conformance-requirements-for-use-of-aria-attributes-in-html
31543 33245
31544 33246 /**
@@ -31547,13 +33249,12 @@ exports.getLocalName = getLocalName;
31547 33249 */
31548 33250 function getLocalName(element) {
31549 33251 var _element$localName;
31550 -1
31551 33252 return (// eslint-disable-next-line no-restricted-properties -- actual guard for environments without localName
31552 -1 (_element$localName = element.localName) !== null && _element$localName !== void 0 ? _element$localName : // eslint-disable-next-line no-restricted-properties -- required for the fallback
-1 33253 (_element$localName = element.localName) !== null && _element$localName !== void 0 ? _element$localName :
-1 33254 // eslint-disable-next-line no-restricted-properties -- required for the fallback
31553 33255 element.tagName.toLowerCase()
31554 33256 );
31555 33257 }
31556 -1
31557 33258 var localNameToRoleMappings = {
31558 33259 article: "article",
31559 33260 aside: "complementary",
@@ -31616,52 +33317,47 @@ var prohibitedAttributes = {
31616 33317 subscript: new Set(["aria-label", "aria-labelledby"]),
31617 33318 superscript: new Set(["aria-label", "aria-labelledby"])
31618 33319 };
-1 33320
31619 33321 /**
31620 33322 *
31621 33323 * @param element
31622 33324 * @param role The role used for this element. This is specified to control whether you want to use the implicit or explicit role.
31623 33325 */
31624 -1
31625 33326 function hasGlobalAriaAttributes(element, role) {
31626 33327 // https://rawgit.com/w3c/aria/stable/#global_states
31627 33328 // commented attributes are deprecated
31628 -1 return ["aria-atomic", "aria-busy", "aria-controls", "aria-current", "aria-describedby", "aria-details", // "disabled",
31629 -1 "aria-dropeffect", // "errormessage",
31630 -1 "aria-flowto", "aria-grabbed", // "haspopup",
31631 -1 "aria-hidden", // "invalid",
-1 33329 return ["aria-atomic", "aria-busy", "aria-controls", "aria-current", "aria-describedby", "aria-details",
-1 33330 // "disabled",
-1 33331 "aria-dropeffect",
-1 33332 // "errormessage",
-1 33333 "aria-flowto", "aria-grabbed",
-1 33334 // "haspopup",
-1 33335 "aria-hidden",
-1 33336 // "invalid",
31632 33337 "aria-keyshortcuts", "aria-label", "aria-labelledby", "aria-live", "aria-owns", "aria-relevant", "aria-roledescription"].some(function (attributeName) {
31633 33338 var _prohibitedAttributes;
31634 -1
31635 33339 return element.hasAttribute(attributeName) && !((_prohibitedAttributes = prohibitedAttributes[role]) !== null && _prohibitedAttributes !== void 0 && _prohibitedAttributes.has(attributeName));
31636 33340 });
31637 33341 }
31638 -1
31639 33342 function ignorePresentationalRole(element, implicitRole) {
31640 33343 // https://rawgit.com/w3c/aria/stable/#conflict_resolution_presentation_none
31641 33344 return hasGlobalAriaAttributes(element, implicitRole);
31642 33345 }
31643 -1
31644 33346 function getRole(element) {
31645 33347 var explicitRole = getExplicitRole(element);
31646 -1
31647 33348 if (explicitRole === null || explicitRole === "presentation") {
31648 33349 var implicitRole = getImplicitRole(element);
31649 -1
31650 33350 if (explicitRole !== "presentation" || ignorePresentationalRole(element, implicitRole || "")) {
31651 33351 return implicitRole;
31652 33352 }
31653 33353 }
31654 -1
31655 33354 return explicitRole;
31656 33355 }
31657 -1
31658 33356 function getImplicitRole(element) {
31659 33357 var mappedByTag = localNameToRoleMappings[getLocalName(element)];
31660 -1
31661 33358 if (mappedByTag !== undefined) {
31662 33359 return mappedByTag;
31663 33360 }
31664 -1
31665 33361 switch (getLocalName(element)) {
31666 33362 case "a":
31667 33363 case "area":
@@ -31669,35 +33365,27 @@ function getImplicitRole(element) {
31669 33365 if (element.hasAttribute("href")) {
31670 33366 return "link";
31671 33367 }
31672 -1
31673 33368 break;
31674 -1
31675 33369 case "img":
31676 33370 if (element.getAttribute("alt") === "" && !ignorePresentationalRole(element, "img")) {
31677 33371 return "presentation";
31678 33372 }
31679 -1
31680 33373 return "img";
31681 -1
31682 33374 case "input":
31683 33375 {
31684 33376 var _ref = element,
31685 -1 type = _ref.type;
31686 -1
-1 33377 type = _ref.type;
31687 33378 switch (type) {
31688 33379 case "button":
31689 33380 case "image":
31690 33381 case "reset":
31691 33382 case "submit":
31692 33383 return "button";
31693 -1
31694 33384 case "checkbox":
31695 33385 case "radio":
31696 33386 return type;
31697 -1
31698 33387 case "range":
31699 33388 return "slider";
31700 -1
31701 33389 case "email":
31702 33390 case "tel":
31703 33391 case "text":
@@ -31705,47 +33393,36 @@ function getImplicitRole(element) {
31705 33393 if (element.hasAttribute("list")) {
31706 33394 return "combobox";
31707 33395 }
31708 -1
31709 33396 return "textbox";
31710 -1
31711 33397 case "search":
31712 33398 if (element.hasAttribute("list")) {
31713 33399 return "combobox";
31714 33400 }
31715 -1
31716 33401 return "searchbox";
31717 -1
31718 33402 case "number":
31719 33403 return "spinbutton";
31720 -1
31721 33404 default:
31722 33405 return null;
31723 33406 }
31724 33407 }
31725 -1
31726 33408 case "select":
31727 33409 if (element.hasAttribute("multiple") || element.size > 1) {
31728 33410 return "listbox";
31729 33411 }
31730 -1
31731 33412 return "combobox";
31732 33413 }
31733 -1
31734 33414 return null;
31735 33415 }
31736 -1
31737 33416 function getExplicitRole(element) {
31738 33417 var role = element.getAttribute("role");
31739 -1
31740 33418 if (role !== null) {
31741 -1 var explicitRole = role.trim().split(" ")[0]; // String.prototype.split(sep, limit) will always return an array with at least one member
-1 33419 var explicitRole = role.trim().split(" ")[0];
-1 33420 // String.prototype.split(sep, limit) will always return an array with at least one member
31742 33421 // as long as limit is either undefined or > 0
31743 -1
31744 33422 if (explicitRole.length > 0) {
31745 33423 return explicitRole;
31746 33424 }
31747 33425 }
31748 -1
31749 33426 return null;
31750 33427 }
31751 33428
@@ -31759,28 +33436,19 @@ var _exportNames = {
31759 33436 getRole: true
31760 33437 };
31761 33438 exports.getRole = exports.computeAccessibleName = exports.computeAccessibleDescription = void 0;
31762 -1
31763 33439 var _accessibleDescription = require("./accessible-description");
31764 -1
31765 33440 exports.computeAccessibleDescription = _accessibleDescription.computeAccessibleDescription;
31766 -1
31767 33441 var _accessibleName = require("./accessible-name");
31768 -1
31769 33442 exports.computeAccessibleName = _accessibleName.computeAccessibleName;
31770 -1
31771 33443 var _getRole = _interopRequireDefault(require("./getRole"));
31772 -1
31773 33444 exports.getRole = _getRole.default;
31774 -1
31775 33445 var _isInaccessible = require("./is-inaccessible");
31776 -1
31777 33446 Object.keys(_isInaccessible).forEach(function (key) {
31778 33447 if (key === "default" || key === "__esModule") return;
31779 33448 if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
31780 33449 if (key in exports && exports[key] === _isInaccessible[key]) return;
31781 33450 exports[key] = _isInaccessible[key];
31782 33451 });
31783 -1
31784 33452 function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
31785 33453
31786 33454 },{"./accessible-description":16,"./accessible-name":18,"./getRole":19,"./is-inaccessible":21}],21:[function(require,module,exports){
@@ -31789,7 +33457,6 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
31789 33457 exports.__esModule = true;
31790 33458 exports.isInaccessible = isInaccessible;
31791 33459 exports.isSubtreeInaccessible = isSubtreeInaccessible;
31792 -1
31793 33460 /**
31794 33461 * Partial implementation https://www.w3.org/TR/wai-aria-1.2/#tree_exclusion
31795 33462 * which should only be used for elements with a non-presentational role i.e.
@@ -31804,37 +33471,29 @@ exports.isSubtreeInaccessible = isSubtreeInaccessible;
31804 33471 */
31805 33472 function isInaccessible(element) {
31806 33473 var _element$ownerDocumen;
31807 -1
31808 33474 var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
31809 33475 var _options$getComputedS = options.getComputedStyle,
31810 -1 getComputedStyle = _options$getComputedS === void 0 ? (_element$ownerDocumen = element.ownerDocument.defaultView) === null || _element$ownerDocumen === void 0 ? void 0 : _element$ownerDocumen.getComputedStyle : _options$getComputedS,
31811 -1 _options$isSubtreeIna = options.isSubtreeInaccessible,
31812 -1 isSubtreeInaccessibleImpl = _options$isSubtreeIna === void 0 ? isSubtreeInaccessible : _options$isSubtreeIna;
31813 -1
-1 33476 getComputedStyle = _options$getComputedS === void 0 ? (_element$ownerDocumen = element.ownerDocument.defaultView) === null || _element$ownerDocumen === void 0 ? void 0 : _element$ownerDocumen.getComputedStyle : _options$getComputedS,
-1 33477 _options$isSubtreeIna = options.isSubtreeInaccessible,
-1 33478 isSubtreeInaccessibleImpl = _options$isSubtreeIna === void 0 ? isSubtreeInaccessible : _options$isSubtreeIna;
31814 33479 if (typeof getComputedStyle !== "function") {
31815 33480 throw new TypeError("Owner document of the element needs to have an associated window.");
31816 -1 } // since visibility is inherited we can exit early
31817 -1
31818 -1
-1 33481 }
-1 33482 // since visibility is inherited we can exit early
31819 33483 if (getComputedStyle(element).visibility === "hidden") {
31820 33484 return true;
31821 33485 }
31822 -1
31823 33486 var currentElement = element;
31824 -1
31825 33487 while (currentElement) {
31826 33488 if (isSubtreeInaccessibleImpl(currentElement, {
31827 33489 getComputedStyle: getComputedStyle
31828 33490 })) {
31829 33491 return true;
31830 33492 }
31831 -1
31832 33493 currentElement = currentElement.parentElement;
31833 33494 }
31834 -1
31835 33495 return false;
31836 33496 }
31837 -1
31838 33497 /**
31839 33498 *
31840 33499 * @param element
@@ -31843,27 +33502,21 @@ function isInaccessible(element) {
31843 33502 */
31844 33503 function isSubtreeInaccessible(element) {
31845 33504 var _element$ownerDocumen2;
31846 -1
31847 33505 var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
31848 33506 var _options$getComputedS2 = options.getComputedStyle,
31849 -1 getComputedStyle = _options$getComputedS2 === void 0 ? (_element$ownerDocumen2 = element.ownerDocument.defaultView) === null || _element$ownerDocumen2 === void 0 ? void 0 : _element$ownerDocumen2.getComputedStyle : _options$getComputedS2;
31850 -1
-1 33507 getComputedStyle = _options$getComputedS2 === void 0 ? (_element$ownerDocumen2 = element.ownerDocument.defaultView) === null || _element$ownerDocumen2 === void 0 ? void 0 : _element$ownerDocumen2.getComputedStyle : _options$getComputedS2;
31851 33508 if (typeof getComputedStyle !== "function") {
31852 33509 throw new TypeError("Owner document of the element needs to have an associated window.");
31853 33510 }
31854 -1
31855 33511 if (element.hidden === true) {
31856 33512 return true;
31857 33513 }
31858 -1
31859 33514 if (element.getAttribute("aria-hidden") === "true") {
31860 33515 return true;
31861 33516 }
31862 -1
31863 33517 if (getComputedStyle(element).display === "none") {
31864 33518 return true;
31865 33519 }
31866 -1
31867 33520 return false;
31868 33521 }
31869 33522
@@ -31872,34 +33525,27 @@ function isSubtreeInaccessible(element) {
31872 33525
31873 33526 exports.__esModule = true;
31874 33527 exports.default = void 0;
31875 -1
-1 33528 function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
31876 33529 function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
31877 -1
31878 -1 function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
31879 -1
-1 33530 function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
31880 33531 function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
31881 -1
31882 -1 function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
31883 -1
-1 33532 function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
-1 33533 function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
-1 33534 function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
31884 33535 // for environments without Set we fallback to arrays with unique members
31885 33536 var SetLike = /*#__PURE__*/function () {
31886 33537 function SetLike() {
31887 33538 var items = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
31888 -1
31889 33539 _classCallCheck(this, SetLike);
31890 -1
31891 33540 _defineProperty(this, "items", void 0);
31892 -1
31893 33541 this.items = items;
31894 33542 }
31895 -1
31896 33543 _createClass(SetLike, [{
31897 33544 key: "add",
31898 33545 value: function add(value) {
31899 33546 if (this.has(value) === false) {
31900 33547 this.items.push(value);
31901 33548 }
31902 -1
31903 33549 return this;
31904 33550 }
31905 33551 }, {
@@ -31920,7 +33566,6 @@ var SetLike = /*#__PURE__*/function () {
31920 33566 key: "forEach",
31921 33567 value: function forEach(callbackfn) {
31922 33568 var _this = this;
31923 -1
31924 33569 this.items.forEach(function (item) {
31925 33570 callbackfn(item, item, _this);
31926 33571 });
@@ -31936,12 +33581,9 @@ var SetLike = /*#__PURE__*/function () {
31936 33581 return this.items.length;
31937 33582 }
31938 33583 }]);
31939 -1
31940 33584 return SetLike;
31941 33585 }();
31942 -1
31943 33586 var _default = typeof Set === "undefined" ? Set : SetLike;
31944 -1
31945 33587 exports.default = _default;
31946 33588
31947 33589 },{}],23:[function(require,module,exports){
@@ -31949,33 +33591,25 @@ exports.default = _default;
31949 33591
31950 33592 exports.__esModule = true;
31951 33593 exports.default = arrayFrom;
31952 -1
31953 33594 /**
31954 33595 * @source {https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/from#Polyfill}
31955 33596 * but without thisArg (too hard to type, no need to `this`)
31956 33597 */
31957 33598 var toStr = Object.prototype.toString;
31958 -1
31959 33599 function isCallable(fn) {
31960 33600 return typeof fn === "function" || toStr.call(fn) === "[object Function]";
31961 33601 }
31962 -1
31963 33602 function toInteger(value) {
31964 33603 var number = Number(value);
31965 -1
31966 33604 if (isNaN(number)) {
31967 33605 return 0;
31968 33606 }
31969 -1
31970 33607 if (number === 0 || !isFinite(number)) {
31971 33608 return number;
31972 33609 }
31973 -1
31974 33610 return (number > 0 ? 1 : -1) * Math.floor(Math.abs(number));
31975 33611 }
31976 -1
31977 33612 var maxSafeInteger = Math.pow(2, 53) - 1;
31978 -1
31979 33613 function toLength(value) {
31980 33614 var len = toInteger(value);
31981 33615 return Math.min(Math.max(len, 0), maxSafeInteger);
@@ -31985,7 +33619,6 @@ function toLength(value) {
31985 33619 * @param iterable An iterable object to convert to an array.
31986 33620 */
31987 33621
31988 -1
31989 33622 /**
31990 33623 * Creates an array from an iterable object.
31991 33624 * @param iterable An iterable object to convert to an array.
@@ -31995,15 +33628,18 @@ function toLength(value) {
31995 33628 function arrayFrom(arrayLike, mapFn) {
31996 33629 // 1. Let C be the this value.
31997 33630 // edit(@eps1lon): we're not calling it as Array.from
31998 -1 var C = Array; // 2. Let items be ToObject(arrayLike).
-1 33631 var C = Array;
31999 33632
32000 -1 var items = Object(arrayLike); // 3. ReturnIfAbrupt(items).
-1 33633 // 2. Let items be ToObject(arrayLike).
-1 33634 var items = Object(arrayLike);
32001 33635
-1 33636 // 3. ReturnIfAbrupt(items).
32002 33637 if (arrayLike == null) {
32003 33638 throw new TypeError("Array.from requires an array-like object - not null or undefined");
32004 -1 } // 4. If mapfn is undefined, then let mapping be false.
32005 -1 // const mapFn = arguments.length > 1 ? arguments[1] : void undefined;
-1 33639 }
32006 33640
-1 33641 // 4. If mapfn is undefined, then let mapping be false.
-1 33642 // const mapFn = arguments.length > 1 ? arguments[1] : void undefined;
32007 33643
32008 33644 if (typeof mapFn !== "undefined") {
32009 33645 // 5. else
@@ -32011,36 +33647,34 @@ function arrayFrom(arrayLike, mapFn) {
32011 33647 if (!isCallable(mapFn)) {
32012 33648 throw new TypeError("Array.from: when provided, the second argument must be a function");
32013 33649 }
32014 -1 } // 10. Let lenValue be Get(items, "length").
32015 -1 // 11. Let len be ToLength(lenValue).
-1 33650 }
32016 33651
-1 33652 // 10. Let lenValue be Get(items, "length").
-1 33653 // 11. Let len be ToLength(lenValue).
-1 33654 var len = toLength(items.length);
32017 33655
32018 -1 var len = toLength(items.length); // 13. If IsConstructor(C) is true, then
-1 33656 // 13. If IsConstructor(C) is true, then
32019 33657 // 13. a. Let A be the result of calling the [[Construct]] internal method
32020 33658 // of C with an argument list containing the single item len.
32021 33659 // 14. a. Else, Let A be ArrayCreate(len).
-1 33660 var A = isCallable(C) ? Object(new C(len)) : new Array(len);
32022 33661
32023 -1 var A = isCallable(C) ? Object(new C(len)) : new Array(len); // 16. Let k be 0.
32024 -1
32025 -1 var k = 0; // 17. Repeat, while k < len… (also steps a - h)
32026 -1
-1 33662 // 16. Let k be 0.
-1 33663 var k = 0;
-1 33664 // 17. Repeat, while k < len… (also steps a - h)
32027 33665 var kValue;
32028 -1
32029 33666 while (k < len) {
32030 33667 kValue = items[k];
32031 -1
32032 33668 if (mapFn) {
32033 33669 A[k] = mapFn(kValue, k);
32034 33670 } else {
32035 33671 A[k] = kValue;
32036 33672 }
32037 -1
32038 33673 k += 1;
32039 -1 } // 18. Let putStatus be Put(A, "length", len, true).
32040 -1
32041 -1
32042 -1 A.length = len; // 20. Return A.
32043 -1
-1 33674 }
-1 33675 // 18. Let putStatus be Put(A, "length", len, true).
-1 33676 A.length = len;
-1 33677 // 20. Return A.
32044 33678 return A;
32045 33679 }
32046 33680
@@ -32048,7 +33682,6 @@ function arrayFrom(arrayLike, mapFn) {
32048 33682 "use strict";
32049 33683
32050 33684 function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
32051 -1
32052 33685 exports.__esModule = true;
32053 33686 exports.hasAnyConcreteRoles = hasAnyConcreteRoles;
32054 33687 exports.isElement = isElement;
@@ -32066,107 +33699,86 @@ exports.isSVGSVGElement = isSVGSVGElement;
32066 33699 exports.isSVGTitleElement = isSVGTitleElement;
32067 33700 exports.queryIdRefs = queryIdRefs;
32068 33701 exports.safeWindow = safeWindow;
32069 -1
32070 33702 var _getRole = _interopRequireWildcard(require("./getRole"));
32071 -1
32072 33703 exports.getLocalName = _getRole.getLocalName;
32073 -1
32074 33704 function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
32075 -1
32076 33705 function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
32077 -1
32078 33706 function isElement(node) {
32079 33707 return node !== null && node.nodeType === node.ELEMENT_NODE;
32080 33708 }
32081 -1
32082 33709 function isHTMLTableCaptionElement(node) {
32083 33710 return isElement(node) && (0, _getRole.getLocalName)(node) === "caption";
32084 33711 }
32085 -1
32086 33712 function isHTMLInputElement(node) {
32087 33713 return isElement(node) && (0, _getRole.getLocalName)(node) === "input";
32088 33714 }
32089 -1
32090 33715 function isHTMLOptGroupElement(node) {
32091 33716 return isElement(node) && (0, _getRole.getLocalName)(node) === "optgroup";
32092 33717 }
32093 -1
32094 33718 function isHTMLSelectElement(node) {
32095 33719 return isElement(node) && (0, _getRole.getLocalName)(node) === "select";
32096 33720 }
32097 -1
32098 33721 function isHTMLTableElement(node) {
32099 33722 return isElement(node) && (0, _getRole.getLocalName)(node) === "table";
32100 33723 }
32101 -1
32102 33724 function isHTMLTextAreaElement(node) {
32103 33725 return isElement(node) && (0, _getRole.getLocalName)(node) === "textarea";
32104 33726 }
32105 -1
32106 33727 function safeWindow(node) {
32107 33728 var _ref = node.ownerDocument === null ? node : node.ownerDocument,
32108 -1 defaultView = _ref.defaultView;
32109 -1
-1 33729 defaultView = _ref.defaultView;
32110 33730 if (defaultView === null) {
32111 33731 throw new TypeError("no window available");
32112 33732 }
32113 -1
32114 33733 return defaultView;
32115 33734 }
32116 -1
32117 33735 function isHTMLFieldSetElement(node) {
32118 33736 return isElement(node) && (0, _getRole.getLocalName)(node) === "fieldset";
32119 33737 }
32120 -1
32121 33738 function isHTMLLegendElement(node) {
32122 33739 return isElement(node) && (0, _getRole.getLocalName)(node) === "legend";
32123 33740 }
32124 -1
32125 33741 function isHTMLSlotElement(node) {
32126 33742 return isElement(node) && (0, _getRole.getLocalName)(node) === "slot";
32127 33743 }
32128 -1
32129 33744 function isSVGElement(node) {
32130 33745 return isElement(node) && node.ownerSVGElement !== undefined;
32131 33746 }
32132 -1
32133 33747 function isSVGSVGElement(node) {
32134 33748 return isElement(node) && (0, _getRole.getLocalName)(node) === "svg";
32135 33749 }
32136 -1
32137 33750 function isSVGTitleElement(node) {
32138 33751 return isSVGElement(node) && (0, _getRole.getLocalName)(node) === "title";
32139 33752 }
-1 33753
32140 33754 /**
32141 33755 *
32142 33756 * @param {Node} node -
32143 33757 * @param {string} attributeName -
32144 33758 * @returns {Element[]} -
32145 33759 */
32146 -1
32147 -1
32148 33760 function queryIdRefs(node, attributeName) {
32149 33761 if (isElement(node) && node.hasAttribute(attributeName)) {
32150 33762 // eslint-disable-next-line @typescript-eslint/no-non-null-assertion -- safe due to hasAttribute check
32151 -1 var ids = node.getAttribute(attributeName).split(" "); // Browsers that don't support shadow DOM won't have getRootNode
-1 33763 var ids = node.getAttribute(attributeName).split(" ");
32152 33764
-1 33765 // Browsers that don't support shadow DOM won't have getRootNode
32153 33766 var root = node.getRootNode ? node.getRootNode() : node.ownerDocument;
32154 33767 return ids.map(function (id) {
32155 33768 return root.getElementById(id);
32156 33769 }).filter(function (element) {
32157 33770 return element !== null;
32158 -1 } // TODO: why does this not narrow?
-1 33771 }
-1 33772 // TODO: why does this not narrow?
32159 33773 );
32160 33774 }
32161 33775
32162 33776 return [];
32163 33777 }
32164 -1
32165 33778 function hasAnyConcreteRoles(node, roles) {
32166 33779 if (isElement(node)) {
32167 33780 return roles.indexOf((0, _getRole.default)(node)) !== -1;
32168 33781 }
32169 -1
32170 33782 return false;
32171 33783 }
32172 33784
@@ -33909,7 +35521,7 @@ var ex = function(fn, args, _this) {
33909 35521 };
33910 35522
33911 35523 var implementations = [{
33912 -1 name: 'aria-api (0.4.3)',
-1 35524 name: 'aria-api (0.4.6)',
33913 35525 url: 'https://github.com/xi/aria-api',
33914 35526 fn: function(el) {
33915 35527 return {
@@ -33923,7 +35535,7 @@ var implementations = [{
33923 35535 url: 'https://github.com/accdc/w3c-alternative-text-computation',
33924 35536 fn: accdc.calcNames,
33925 35537 }, {
33926 -1 name: 'dom-accessibility-api (0.5.14)',
-1 35538 name: 'dom-accessibility-api (0.5.15)',
33927 35539 url: 'https://github.com/eps1lon/dom-accessibility-api/',
33928 35540 fn: function(el) {
33929 35541 return {
@@ -33933,7 +35545,7 @@ var implementations = [{
33933 35545 };
33934 35546 },
33935 35547 }, {
33936 -1 name: 'axe (4.4.3)',
-1 35548 name: 'axe (4.6.2)',
33937 35549 url: 'https://github.com/dequelabs/axe-core',
33938 35550 fn: function(el) {
33939 35551 axe._tree = axe.utils.getFlattenedTree(document.body);
diff --git a/fuzz.js b/fuzz.js
@@ -433,7 +433,7 @@ var getAttribute = function(el, key) {
433 433 if (el.matches('noscript')) {
434 434 return true;
435 435 }
436 -1 if (el.matches('details:not([open]) :not(summary)')) {
-1 436 if (el.matches('details:not([open]) > :not(summary)')) {
437 437 return true;
438 438 }
439 439 var style = window.getComputedStyle(el);
@@ -798,6 +798,9 @@ exports.roles = {
798 798 'selected': 'false',
799 799 },
800 800 },
-1 801 presentation: {
-1 802 selectors: ['img[alt=""]'],
-1 803 },
801 804 progressbar: {
802 805 selectors: ['progress'],
803 806 },
@@ -1050,34 +1053,25 @@ exports.nameDefaults = {
1050 1053 'summary': 'Details',
1051 1054 };
1052 1055
1053 -1 exports.labelable = [
1054 -1 'button',
1055 -1 'input:not([type="hidden"])',
1056 -1 'keygen',
1057 -1 'meter',
1058 -1 'output',
1059 -1 'progress',
1060 -1 'select',
1061 -1 'textarea',
1062 -1 ];
1063 -1
1064 1056 },{}],8:[function(require,module,exports){
1065 -1 function cov_22i8nvh4cs(){var path="node_modules/aria-api/lib/name.js";var hash="c8f3f73d8f8d54e5fea7a074053de5f2bc1811fd";var global=new Function("return this")();var gcv="__coverage__";var coverageData={path:"/home/tobias/code/a11y/babelacc/node_modules/aria-api/lib/name.js",statementMap:{"0":{start:{line:1,column:16},end:{line:1,column:41}},"1":{start:{line:2,column:12},end:{line:2,column:33}},"2":{start:{line:3,column:12},end:{line:3,column:33}},"3":{start:{line:5,column:23},end:{line:21,column:1}},"4":{start:{line:6,column:14},end:{line:6,column:53}},"5":{start:{line:7,column:11},end:{line:7,column:45}},"6":{start:{line:8,column:14},end:{line:8,column:54}},"7":{start:{line:9,column:1},end:{line:11,column:2}},"8":{start:{line:10,column:2},end:{line:10,column:12}},"9":{start:{line:12,column:1},end:{line:20,column:2}},"10":{start:{line:13,column:2},end:{line:13,column:12}},"11":{start:{line:15,column:2},end:{line:19,column:3}},"12":{start:{line:16,column:3},end:{line:16,column:27}},"13":{start:{line:18,column:3},end:{line:18,column:39}},"14":{start:{line:23,column:17},end:{line:45,column:1}},"15":{start:{line:24,column:16},end:{line:24,column:41}},"16":{start:{line:26,column:11},end:{line:26,column:13}},"17":{start:{line:27,column:1},end:{line:42,column:2}},"18":{start:{line:27,column:14},end:{line:27,column:15}},"19":{start:{line:28,column:13},end:{line:28,column:24}},"20":{start:{line:29,column:2},end:{line:41,column:3}},"21":{start:{line:30,column:3},end:{line:30,column:27}},"22":{start:{line:31,column:9},end:{line:41,column:3}},"23":{start:{line:32,column:3},end:{line:40,column:4}},"24":{start:{line:33,column:4},end:{line:33,column:16}},"25":{start:{line:34,column:10},end:{line:40,column:4}},"26":{start:{line:37,column:4},end:{line:37,column:40}},"27":{start:{line:39,column:4},end:{line:39,column:52}},"28":{start:{line:44,column:1},end:{line:44,column:12}},"29":{start:{line:47,column:27},end:{line:50,column:1}},"30":{start:{line:48,column:12},end:{line:48,column:29}},"31":{start:{line:49,column:1},end:{line:49,column:55}},"32":{start:{line:52,column:18},end:{line:55,column:1}},"33":{start:{line:53,column:16},end:{line:53,column:45}},"34":{start:{line:54,column:1},end:{line:54,column:29}},"35":{start:{line:57,column:30},end:{line:60,column:1}},"36":{start:{line:58,column:13},end:{line:58,column:46}},"37":{start:{line:59,column:1},end:{line:59,column:66}},"38":{start:{line:62,column:14},end:{line:164,column:1}},"39":{start:{line:63,column:11},end:{line:63,column:13}},"40":{start:{line:65,column:1},end:{line:65,column:25}},"41":{start:{line:66,column:1},end:{line:72,column:2}},"42":{start:{line:67,column:2},end:{line:69,column:3}},"43":{start:{line:68,column:3},end:{line:68,column:13}},"44":{start:{line:71,column:2},end:{line:71,column:19}},"45":{start:{line:78,column:1},end:{line:85,column:2}},"46":{start:{line:79,column:12},end:{line:79,column:59}},"47":{start:{line:80,column:16},end:{line:83,column:4}},"48":{start:{line:81,column:15},end:{line:81,column:42}},"49":{start:{line:82,column:3},end:{line:82,column:59}},"50":{start:{line:84,column:2},end:{line:84,column:26}},"51":{start:{line:88,column:1},end:{line:91,column:2}},"52":{start:{line:90,column:2},end:{line:90,column:38}},"53":{start:{line:94,column:1},end:{line:99,column:2}},"54":{start:{line:95,column:16},end:{line:97,column:4}},"55":{start:{line:96,column:3},end:{line:96,column:40}},"56":{start:{line:98,column:2},end:{line:98,column:26}},"57":{start:{line:100,column:1},end:{line:102,column:2}},"58":{start:{line:101,column:2},end:{line:101,column:29}},"59":{start:{line:103,column:1},end:{line:105,column:2}},"60":{start:{line:104,column:2},end:{line:104,column:21}},"61":{start:{line:106,column:1},end:{line:108,column:2}},"62":{start:{line:107,column:2},end:{line:107,column:17}},"63":{start:{line:109,column:1},end:{line:118,column:2}},"64":{start:{line:110,column:2},end:{line:117,column:3}},"65":{start:{line:111,column:3},end:{line:116,column:4}},"66":{start:{line:112,column:21},end:{line:112,column:77}},"67":{start:{line:113,column:4},end:{line:115,column:5}},"68":{start:{line:114,column:5},end:{line:114,column:46}},"69":{start:{line:121,column:1},end:{line:136,column:2}},"70":{start:{line:122,column:2},end:{line:135,column:3}},"71":{start:{line:123,column:3},end:{line:134,column:4}},"72":{start:{line:124,column:4},end:{line:124,column:37}},"73":{start:{line:125,column:10},end:{line:134,column:4}},"74":{start:{line:126,column:19},end:{line:126,column:92}},"75":{start:{line:127,column:4},end:{line:131,column:5}},"76":{start:{line:128,column:5},end:{line:128,column:49}},"77":{start:{line:130,column:5},end:{line:130,column:26}},"78":{start:{line:132,column:10},end:{line:134,column:4}},"79":{start:{line:133,column:4},end:{line:133,column:103}},"80":{start:{line:140,column:1},end:{line:142,column:2}},"81":{start:{line:141,column:2},end:{line:141,column:32}},"82":{start:{line:144,column:1},end:{line:150,column:2}},"83":{start:{line:145,column:2},end:{line:149,column:3}},"84":{start:{line:146,column:3},end:{line:148,column:4}},"85":{start:{line:147,column:4},end:{line:147,column:43}},"86":{start:{line:157,column:1},end:{line:159,column:2}},"87":{start:{line:158,column:2},end:{line:158,column:23}},"88":{start:{line:161,column:14},end:{line:161,column:45}},"89":{start:{line:162,column:13},end:{line:162,column:43}},"90":{start:{line:163,column:1},end:{line:163,column:29}},"91":{start:{line:166,column:21},end:{line:168,column:1}},"92":{start:{line:167,column:1},end:{line:167,column:48}},"93":{start:{line:170,column:21},end:{line:193,column:1}},"94":{start:{line:171,column:11},end:{line:171,column:13}},"95":{start:{line:173,column:1},end:{line:184,column:2}},"96":{start:{line:174,column:12},end:{line:174,column:60}},"97":{start:{line:175,column:16},end:{line:178,column:4}},"98":{start:{line:176,column:15},end:{line:176,column:42}},"99":{start:{line:177,column:3},end:{line:177,column:44}},"100":{start:{line:179,column:2},end:{line:179,column:26}},"101":{start:{line:180,column:8},end:{line:184,column:2}},"102":{start:{line:181,column:2},end:{line:181,column:17}},"103":{start:{line:182,column:8},end:{line:184,column:2}},"104":{start:{line:183,column:2},end:{line:183,column:23}},"105":{start:{line:186,column:1},end:{line:186,column:47}},"106":{start:{line:188,column:1},end:{line:190,column:2}},"107":{start:{line:189,column:2},end:{line:189,column:11}},"108":{start:{line:192,column:1},end:{line:192,column:12}},"109":{start:{line:195,column:0},end:{line:198,column:2}}},fnMap:{"0":{name:"(anonymous_0)",decl:{start:{line:5,column:23},end:{line:5,column:24}},loc:{start:{line:5,column:48},end:{line:21,column:1}},line:5},"1":{name:"(anonymous_1)",decl:{start:{line:23,column:17},end:{line:23,column:18}},loc:{start:{line:23,column:41},end:{line:45,column:1}},line:23},"2":{name:"(anonymous_2)",decl:{start:{line:47,column:27},end:{line:47,column:28}},loc:{start:{line:47,column:40},end:{line:50,column:1}},line:47},"3":{name:"(anonymous_3)",decl:{start:{line:52,column:18},end:{line:52,column:19}},loc:{start:{line:52,column:31},end:{line:55,column:1}},line:52},"4":{name:"(anonymous_4)",decl:{start:{line:57,column:30},end:{line:57,column:31}},loc:{start:{line:57,column:43},end:{line:60,column:1}},line:57},"5":{name:"(anonymous_5)",decl:{start:{line:62,column:14},end:{line:62,column:15}},loc:{start:{line:62,column:64},end:{line:164,column:1}},line:62},"6":{name:"(anonymous_6)",decl:{start:{line:80,column:24},end:{line:80,column:25}},loc:{start:{line:80,column:37},end:{line:83,column:3}},line:80},"7":{name:"(anonymous_7)",decl:{start:{line:95,column:52},end:{line:95,column:53}},loc:{start:{line:95,column:68},end:{line:97,column:3}},line:95},"8":{name:"(anonymous_8)",decl:{start:{line:166,column:21},end:{line:166,column:22}},loc:{start:{line:166,column:34},end:{line:168,column:1}},line:166},"9":{name:"(anonymous_9)",decl:{start:{line:170,column:21},end:{line:170,column:22}},loc:{start:{line:170,column:34},end:{line:193,column:1}},line:170},"10":{name:"(anonymous_10)",decl:{start:{line:175,column:24},end:{line:175,column:25}},loc:{start:{line:175,column:37},end:{line:178,column:3}},line:175}},branchMap:{"0":{loc:{start:{line:9,column:1},end:{line:11,column:2}},type:"if",locations:[{start:{line:9,column:1},end:{line:11,column:2}},{start:{line:9,column:1},end:{line:11,column:2}}],line:9},"1":{loc:{start:{line:12,column:1},end:{line:20,column:2}},type:"if",locations:[{start:{line:12,column:1},end:{line:20,column:2}},{start:{line:12,column:1},end:{line:20,column:2}}],line:12},"2":{loc:{start:{line:15,column:2},end:{line:19,column:3}},type:"if",locations:[{start:{line:15,column:2},end:{line:19,column:3}},{start:{line:15,column:2},end:{line:19,column:3}}],line:15},"3":{loc:{start:{line:29,column:2},end:{line:41,column:3}},type:"if",locations:[{start:{line:29,column:2},end:{line:41,column:3}},{start:{line:29,column:2},end:{line:41,column:3}}],line:29},"4":{loc:{start:{line:31,column:9},end:{line:41,column:3}},type:"if",locations:[{start:{line:31,column:9},end:{line:41,column:3}},{start:{line:31,column:9},end:{line:41,column:3}}],line:31},"5":{loc:{start:{line:32,column:3},end:{line:40,column:4}},type:"if",locations:[{start:{line:32,column:3},end:{line:40,column:4}},{start:{line:32,column:3},end:{line:40,column:4}}],line:32},"6":{loc:{start:{line:34,column:10},end:{line:40,column:4}},type:"if",locations:[{start:{line:34,column:10},end:{line:40,column:4}},{start:{line:34,column:10},end:{line:40,column:4}}],line:34},"7":{loc:{start:{line:34,column:14},end:{line:36,column:41}},type:"binary-expr",locations:[{start:{line:34,column:14},end:{line:34,column:77}},{start:{line:35,column:5},end:{line:35,column:43}},{start:{line:36,column:5},end:{line:36,column:41}}],line:34},"8":{loc:{start:{line:49,column:9},end:{line:49,column:36}},type:"binary-expr",locations:[{start:{line:49,column:9},end:{line:49,column:30}},{start:{line:49,column:34},end:{line:49,column:36}}],line:49},"9":{loc:{start:{line:59,column:8},end:{line:59,column:65}},type:"binary-expr",locations:[{start:{line:59,column:8},end:{line:59,column:13}},{start:{line:59,column:17},end:{line:59,column:65}}],line:59},"10":{loc:{start:{line:65,column:11},end:{line:65,column:24}},type:"binary-expr",locations:[{start:{line:65,column:11},end:{line:65,column:18}},{start:{line:65,column:22},end:{line:65,column:24}}],line:65},"11":{loc:{start:{line:66,column:1},end:{line:72,column:2}},type:"if",locations:[{start:{line:66,column:1},end:{line:72,column:2}},{start:{line:66,column:1},end:{line:72,column:2}}],line:66},"12":{loc:{start:{line:67,column:2},end:{line:69,column:3}},type:"if",locations:[{start:{line:67,column:2},end:{line:69,column:3}},{start:{line:67,column:2},end:{line:69,column:3}}],line:67},"13":{loc:{start:{line:78,column:1},end:{line:85,column:2}},type:"if",locations:[{start:{line:78,column:1},end:{line:85,column:2}},{start:{line:78,column:1},end:{line:85,column:2}}],line:78},"14":{loc:{start:{line:78,column:5},end:{line:78,column:50}},type:"binary-expr",locations:[{start:{line:78,column:5},end:{line:78,column:15}},{start:{line:78,column:19},end:{line:78,column:50}}],line:78},"15":{loc:{start:{line:82,column:10},end:{line:82,column:58}},type:"cond-expr",locations:[{start:{line:82,column:18},end:{line:82,column:53}},{start:{line:82,column:56},end:{line:82,column:58}}],line:82},"16":{loc:{start:{line:88,column:1},end:{line:91,column:2}},type:"if",locations:[{start:{line:88,column:1},end:{line:91,column:2}},{start:{line:88,column:1},end:{line:91,column:2}}],line:88},"17":{loc:{start:{line:88,column:5},end:{line:88,column:46}},type:"binary-expr",locations:[{start:{line:88,column:5},end:{line:88,column:16}},{start:{line:88,column:20},end:{line:88,column:46}}],line:88},"18":{loc:{start:{line:94,column:1},end:{line:99,column:2}},type:"if",locations:[{start:{line:94,column:1},end:{line:99,column:2}},{start:{line:94,column:1},end:{line:99,column:2}}],line:94},"19":{loc:{start:{line:94,column:5},end:{line:94,column:49}},type:"binary-expr",locations:[{start:{line:94,column:5},end:{line:94,column:16}},{start:{line:94,column:20},end:{line:94,column:30}},{start:{line:94,column:34},end:{line:94,column:49}}],line:94},"20":{loc:{start:{line:100,column:1},end:{line:102,column:2}},type:"if",locations:[{start:{line:100,column:1},end:{line:102,column:2}},{start:{line:100,column:1},end:{line:102,column:2}}],line:100},"21":{loc:{start:{line:101,column:8},end:{line:101,column:28}},type:"binary-expr",locations:[{start:{line:101,column:8},end:{line:101,column:22}},{start:{line:101,column:26},end:{line:101,column:28}}],line:101},"22":{loc:{start:{line:103,column:1},end:{line:105,column:2}},type:"if",locations:[{start:{line:103,column:1},end:{line:105,column:2}},{start:{line:103,column:1},end:{line:105,column:2}}],line:103},"23":{loc:{start:{line:104,column:8},end:{line:104,column:20}},type:"binary-expr",locations:[{start:{line:104,column:8},end:{line:104,column:14}},{start:{line:104,column:18},end:{line:104,column:20}}],line:104},"24":{loc:{start:{line:106,column:1},end:{line:108,column:2}},type:"if",locations:[{start:{line:106,column:1},end:{line:108,column:2}},{start:{line:106,column:1},end:{line:108,column:2}}],line:106},"25":{loc:{start:{line:106,column:5},end:{line:106,column:58}},type:"binary-expr",locations:[{start:{line:106,column:5},end:{line:106,column:16}},{start:{line:106,column:20},end:{line:106,column:46}},{start:{line:106,column:50},end:{line:106,column:58}}],line:106},"26":{loc:{start:{line:109,column:1},end:{line:118,column:2}},type:"if",locations:[{start:{line:109,column:1},end:{line:118,column:2}},{start:{line:109,column:1},end:{line:118,column:2}}],line:109},"27":{loc:{start:{line:111,column:3},end:{line:116,column:4}},type:"if",locations:[{start:{line:111,column:3},end:{line:116,column:4}},{start:{line:111,column:3},end:{line:116,column:4}}],line:111},"28":{loc:{start:{line:113,column:4},end:{line:115,column:5}},type:"if",locations:[{start:{line:113,column:4},end:{line:115,column:5}},{start:{line:113,column:4},end:{line:115,column:5}}],line:113},"29":{loc:{start:{line:121,column:1},end:{line:136,column:2}},type:"if",locations:[{start:{line:121,column:1},end:{line:136,column:2}},{start:{line:121,column:1},end:{line:136,column:2}}],line:121},"30":{loc:{start:{line:121,column:5},end:{line:121,column:93}},type:"binary-expr",locations:[{start:{line:121,column:5},end:{line:121,column:16}},{start:{line:121,column:21},end:{line:121,column:30}},{start:{line:121,column:34},end:{line:121,column:61}},{start:{line:121,column:65},end:{line:121,column:92}}],line:121},"31":{loc:{start:{line:122,column:2},end:{line:135,column:3}},type:"if",locations:[{start:{line:122,column:2},end:{line:135,column:3}},{start:{line:122,column:2},end:{line:135,column:3}}],line:122},"32":{loc:{start:{line:123,column:3},end:{line:134,column:4}},type:"if",locations:[{start:{line:123,column:3},end:{line:134,column:4}},{start:{line:123,column:3},end:{line:134,column:4}}],line:123},"33":{loc:{start:{line:124,column:10},end:{line:124,column:36}},type:"binary-expr",locations:[{start:{line:124,column:10},end:{line:124,column:18}},{start:{line:124,column:22},end:{line:124,column:36}}],line:124},"34":{loc:{start:{line:125,column:10},end:{line:134,column:4}},type:"if",locations:[{start:{line:125,column:10},end:{line:134,column:4}},{start:{line:125,column:10},end:{line:134,column:4}}],line:125},"35":{loc:{start:{line:126,column:19},end:{line:126,column:92}},type:"binary-expr",locations:[{start:{line:126,column:19},end:{line:126,column:55}},{start:{line:126,column:59},end:{line:126,column:92}}],line:126},"36":{loc:{start:{line:127,column:4},end:{line:131,column:5}},type:"if",locations:[{start:{line:127,column:4},end:{line:131,column:5}},{start:{line:127,column:4},end:{line:131,column:5}}],line:127},"37":{loc:{start:{line:130,column:11},end:{line:130,column:25}},type:"binary-expr",locations:[{start:{line:130,column:11},end:{line:130,column:19}},{start:{line:130,column:23},end:{line:130,column:25}}],line:130},"38":{loc:{start:{line:132,column:10},end:{line:134,column:4}},type:"if",locations:[{start:{line:132,column:10},end:{line:134,column:4}},{start:{line:132,column:10},end:{line:134,column:4}}],line:132},"39":{loc:{start:{line:133,column:16},end:{line:133,column:101}},type:"binary-expr",locations:[{start:{line:133,column:16},end:{line:133,column:51}},{start:{line:133,column:55},end:{line:133,column:89}},{start:{line:133,column:93},end:{line:133,column:101}}],line:133},"40":{loc:{start:{line:140,column:1},end:{line:142,column:2}},type:"if",locations:[{start:{line:140,column:1},end:{line:142,column:2}},{start:{line:140,column:1},end:{line:142,column:2}}],line:140},"41":{loc:{start:{line:140,column:5},end:{line:140,column:112}},type:"binary-expr",locations:[{start:{line:140,column:5},end:{line:140,column:16}},{start:{line:140,column:21},end:{line:140,column:30}},{start:{line:140,column:34},end:{line:140,column:58}},{start:{line:140,column:62},end:{line:140,column:81}},{start:{line:140,column:86},end:{line:140,column:112}}],line:140},"42":{loc:{start:{line:144,column:1},end:{line:150,column:2}},type:"if",locations:[{start:{line:144,column:1},end:{line:150,column:2}},{start:{line:144,column:1},end:{line:150,column:2}}],line:144},"43":{loc:{start:{line:146,column:3},end:{line:148,column:4}},type:"if",locations:[{start:{line:146,column:3},end:{line:148,column:4}},{start:{line:146,column:3},end:{line:148,column:4}}],line:146},"44":{loc:{start:{line:157,column:1},end:{line:159,column:2}},type:"if",locations:[{start:{line:157,column:1},end:{line:159,column:2}},{start:{line:157,column:1},end:{line:159,column:2}}],line:157},"45":{loc:{start:{line:157,column:5},end:{line:157,column:54}},type:"binary-expr",locations:[{start:{line:157,column:5},end:{line:157,column:16}},{start:{line:157,column:20},end:{line:157,column:54}}],line:157},"46":{loc:{start:{line:158,column:8},end:{line:158,column:22}},type:"binary-expr",locations:[{start:{line:158,column:8},end:{line:158,column:16}},{start:{line:158,column:20},end:{line:158,column:22}}],line:158},"47":{loc:{start:{line:173,column:1},end:{line:184,column:2}},type:"if",locations:[{start:{line:173,column:1},end:{line:184,column:2}},{start:{line:173,column:1},end:{line:184,column:2}}],line:173},"48":{loc:{start:{line:177,column:10},end:{line:177,column:43}},type:"cond-expr",locations:[{start:{line:177,column:18},end:{line:177,column:38}},{start:{line:177,column:41},end:{line:177,column:43}}],line:177},"49":{loc:{start:{line:180,column:8},end:{line:184,column:2}},type:"if",locations:[{start:{line:180,column:8},end:{line:184,column:2}},{start:{line:180,column:8},end:{line:184,column:2}}],line:180},"50":{loc:{start:{line:182,column:8},end:{line:184,column:2}},type:"if",locations:[{start:{line:182,column:8},end:{line:184,column:2}},{start:{line:182,column:8},end:{line:184,column:2}}],line:182},"51":{loc:{start:{line:186,column:8},end:{line:186,column:17}},type:"binary-expr",locations:[{start:{line:186,column:8},end:{line:186,column:11}},{start:{line:186,column:15},end:{line:186,column:17}}],line:186},"52":{loc:{start:{line:188,column:1},end:{line:190,column:2}},type:"if",locations:[{start:{line:188,column:1},end:{line:190,column:2}},{start:{line:188,column:1},end:{line:190,column:2}}],line:188}},s:{"0":0,"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0,"39":0,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0,"46":0,"47":0,"48":0,"49":0,"50":0,"51":0,"52":0,"53":0,"54":0,"55":0,"56":0,"57":0,"58":0,"59":0,"60":0,"61":0,"62":0,"63":0,"64":0,"65":0,"66":0,"67":0,"68":0,"69":0,"70":0,"71":0,"72":0,"73":0,"74":0,"75":0,"76":0,"77":0,"78":0,"79":0,"80":0,"81":0,"82":0,"83":0,"84":0,"85":0,"86":0,"87":0,"88":0,"89":0,"90":0,"91":0,"92":0,"93":0,"94":0,"95":0,"96":0,"97":0,"98":0,"99":0,"100":0,"101":0,"102":0,"103":0,"104":0,"105":0,"106":0,"107":0,"108":0,"109":0},f:{"0":0,"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0},b:{"0":[0,0],"1":[0,0],"2":[0,0],"3":[0,0],"4":[0,0],"5":[0,0],"6":[0,0],"7":[0,0,0],"8":[0,0],"9":[0,0],"10":[0,0],"11":[0,0],"12":[0,0],"13":[0,0],"14":[0,0],"15":[0,0],"16":[0,0],"17":[0,0],"18":[0,0],"19":[0,0,0],"20":[0,0],"21":[0,0],"22":[0,0],"23":[0,0],"24":[0,0],"25":[0,0,0],"26":[0,0],"27":[0,0],"28":[0,0],"29":[0,0],"30":[0,0,0,0],"31":[0,0],"32":[0,0],"33":[0,0],"34":[0,0],"35":[0,0],"36":[0,0],"37":[0,0],"38":[0,0],"39":[0,0,0],"40":[0,0],"41":[0,0,0,0,0],"42":[0,0],"43":[0,0],"44":[0,0],"45":[0,0],"46":[0,0],"47":[0,0],"48":[0,0],"49":[0,0],"50":[0,0],"51":[0,0],"52":[0,0]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"c8f3f73d8f8d54e5fea7a074053de5f2bc1811fd"};var coverage=global[gcv]||(global[gcv]={});if(!coverage[path]||coverage[path].hash!==hash){coverage[path]=coverageData;}var actualCoverage=coverage[path];{// @ts-ignore
-1 1057 function cov_22i8nvh4cs(){var path="node_modules/aria-api/lib/name.js";var hash="510e8f25ab8f75c5ebe94bd1b7f774bcc66601f3";var global=new Function("return this")();var gcv="__coverage__";var coverageData={path:"/home/tobias/code/a11y/babelacc/node_modules/aria-api/lib/name.js",statementMap:{"0":{start:{line:1,column:16},end:{line:1,column:41}},"1":{start:{line:2,column:12},end:{line:2,column:33}},"2":{start:{line:3,column:12},end:{line:3,column:33}},"3":{start:{line:5,column:23},end:{line:21,column:1}},"4":{start:{line:6,column:14},end:{line:6,column:53}},"5":{start:{line:7,column:11},end:{line:7,column:45}},"6":{start:{line:8,column:14},end:{line:8,column:54}},"7":{start:{line:9,column:1},end:{line:11,column:2}},"8":{start:{line:10,column:2},end:{line:10,column:12}},"9":{start:{line:12,column:1},end:{line:20,column:2}},"10":{start:{line:13,column:2},end:{line:13,column:12}},"11":{start:{line:15,column:2},end:{line:19,column:3}},"12":{start:{line:16,column:3},end:{line:16,column:27}},"13":{start:{line:18,column:3},end:{line:18,column:39}},"14":{start:{line:23,column:17},end:{line:45,column:1}},"15":{start:{line:24,column:16},end:{line:24,column:41}},"16":{start:{line:26,column:11},end:{line:26,column:13}},"17":{start:{line:27,column:1},end:{line:42,column:2}},"18":{start:{line:27,column:14},end:{line:27,column:15}},"19":{start:{line:28,column:13},end:{line:28,column:24}},"20":{start:{line:29,column:2},end:{line:41,column:3}},"21":{start:{line:30,column:3},end:{line:30,column:27}},"22":{start:{line:31,column:9},end:{line:41,column:3}},"23":{start:{line:32,column:3},end:{line:40,column:4}},"24":{start:{line:33,column:4},end:{line:33,column:16}},"25":{start:{line:34,column:10},end:{line:40,column:4}},"26":{start:{line:37,column:4},end:{line:37,column:40}},"27":{start:{line:39,column:4},end:{line:39,column:52}},"28":{start:{line:44,column:1},end:{line:44,column:12}},"29":{start:{line:47,column:27},end:{line:50,column:1}},"30":{start:{line:48,column:12},end:{line:48,column:29}},"31":{start:{line:49,column:1},end:{line:49,column:55}},"32":{start:{line:52,column:30},end:{line:55,column:1}},"33":{start:{line:53,column:13},end:{line:53,column:46}},"34":{start:{line:54,column:1},end:{line:54,column:82}},"35":{start:{line:57,column:14},end:{line:165,column:1}},"36":{start:{line:58,column:11},end:{line:58,column:13}},"37":{start:{line:60,column:1},end:{line:60,column:25}},"38":{start:{line:61,column:1},end:{line:67,column:2}},"39":{start:{line:62,column:2},end:{line:64,column:3}},"40":{start:{line:63,column:3},end:{line:63,column:13}},"41":{start:{line:66,column:2},end:{line:66,column:19}},"42":{start:{line:73,column:1},end:{line:80,column:2}},"43":{start:{line:74,column:12},end:{line:74,column:59}},"44":{start:{line:75,column:16},end:{line:78,column:4}},"45":{start:{line:76,column:15},end:{line:76,column:42}},"46":{start:{line:77,column:3},end:{line:77,column:59}},"47":{start:{line:79,column:2},end:{line:79,column:26}},"48":{start:{line:83,column:1},end:{line:86,column:2}},"49":{start:{line:85,column:2},end:{line:85,column:38}},"50":{start:{line:89,column:1},end:{line:94,column:2}},"51":{start:{line:90,column:16},end:{line:92,column:4}},"52":{start:{line:91,column:3},end:{line:91,column:40}},"53":{start:{line:93,column:2},end:{line:93,column:26}},"54":{start:{line:95,column:1},end:{line:97,column:2}},"55":{start:{line:96,column:2},end:{line:96,column:29}},"56":{start:{line:98,column:1},end:{line:100,column:2}},"57":{start:{line:99,column:2},end:{line:99,column:21}},"58":{start:{line:101,column:1},end:{line:103,column:2}},"59":{start:{line:102,column:2},end:{line:102,column:17}},"60":{start:{line:104,column:1},end:{line:113,column:2}},"61":{start:{line:105,column:2},end:{line:112,column:3}},"62":{start:{line:106,column:3},end:{line:111,column:4}},"63":{start:{line:107,column:21},end:{line:107,column:77}},"64":{start:{line:108,column:4},end:{line:110,column:5}},"65":{start:{line:109,column:5},end:{line:109,column:46}},"66":{start:{line:116,column:1},end:{line:131,column:2}},"67":{start:{line:117,column:2},end:{line:130,column:3}},"68":{start:{line:118,column:3},end:{line:129,column:4}},"69":{start:{line:119,column:4},end:{line:119,column:37}},"70":{start:{line:120,column:10},end:{line:129,column:4}},"71":{start:{line:121,column:19},end:{line:121,column:92}},"72":{start:{line:122,column:4},end:{line:126,column:5}},"73":{start:{line:123,column:5},end:{line:123,column:49}},"74":{start:{line:125,column:5},end:{line:125,column:26}},"75":{start:{line:127,column:10},end:{line:129,column:4}},"76":{start:{line:128,column:4},end:{line:128,column:103}},"77":{start:{line:135,column:1},end:{line:137,column:2}},"78":{start:{line:136,column:2},end:{line:136,column:32}},"79":{start:{line:139,column:1},end:{line:145,column:2}},"80":{start:{line:140,column:2},end:{line:144,column:3}},"81":{start:{line:141,column:3},end:{line:143,column:4}},"82":{start:{line:142,column:4},end:{line:142,column:43}},"83":{start:{line:152,column:1},end:{line:154,column:2}},"84":{start:{line:153,column:2},end:{line:153,column:23}},"85":{start:{line:158,column:1},end:{line:160,column:2}},"86":{start:{line:159,column:2},end:{line:159,column:12}},"87":{start:{line:162,column:14},end:{line:162,column:45}},"88":{start:{line:163,column:13},end:{line:163,column:43}},"89":{start:{line:164,column:1},end:{line:164,column:29}},"90":{start:{line:167,column:21},end:{line:169,column:1}},"91":{start:{line:168,column:1},end:{line:168,column:48}},"92":{start:{line:171,column:21},end:{line:194,column:1}},"93":{start:{line:172,column:11},end:{line:172,column:13}},"94":{start:{line:174,column:1},end:{line:185,column:2}},"95":{start:{line:175,column:12},end:{line:175,column:60}},"96":{start:{line:176,column:16},end:{line:179,column:4}},"97":{start:{line:177,column:15},end:{line:177,column:42}},"98":{start:{line:178,column:3},end:{line:178,column:44}},"99":{start:{line:180,column:2},end:{line:180,column:26}},"100":{start:{line:181,column:8},end:{line:185,column:2}},"101":{start:{line:182,column:2},end:{line:182,column:17}},"102":{start:{line:183,column:8},end:{line:185,column:2}},"103":{start:{line:184,column:2},end:{line:184,column:23}},"104":{start:{line:187,column:1},end:{line:187,column:47}},"105":{start:{line:189,column:1},end:{line:191,column:2}},"106":{start:{line:190,column:2},end:{line:190,column:11}},"107":{start:{line:193,column:1},end:{line:193,column:12}},"108":{start:{line:196,column:0},end:{line:199,column:2}}},fnMap:{"0":{name:"(anonymous_0)",decl:{start:{line:5,column:23},end:{line:5,column:24}},loc:{start:{line:5,column:48},end:{line:21,column:1}},line:5},"1":{name:"(anonymous_1)",decl:{start:{line:23,column:17},end:{line:23,column:18}},loc:{start:{line:23,column:41},end:{line:45,column:1}},line:23},"2":{name:"(anonymous_2)",decl:{start:{line:47,column:27},end:{line:47,column:28}},loc:{start:{line:47,column:40},end:{line:50,column:1}},line:47},"3":{name:"(anonymous_3)",decl:{start:{line:52,column:30},end:{line:52,column:31}},loc:{start:{line:52,column:43},end:{line:55,column:1}},line:52},"4":{name:"(anonymous_4)",decl:{start:{line:57,column:14},end:{line:57,column:15}},loc:{start:{line:57,column:64},end:{line:165,column:1}},line:57},"5":{name:"(anonymous_5)",decl:{start:{line:75,column:24},end:{line:75,column:25}},loc:{start:{line:75,column:37},end:{line:78,column:3}},line:75},"6":{name:"(anonymous_6)",decl:{start:{line:90,column:52},end:{line:90,column:53}},loc:{start:{line:90,column:68},end:{line:92,column:3}},line:90},"7":{name:"(anonymous_7)",decl:{start:{line:167,column:21},end:{line:167,column:22}},loc:{start:{line:167,column:34},end:{line:169,column:1}},line:167},"8":{name:"(anonymous_8)",decl:{start:{line:171,column:21},end:{line:171,column:22}},loc:{start:{line:171,column:34},end:{line:194,column:1}},line:171},"9":{name:"(anonymous_9)",decl:{start:{line:176,column:24},end:{line:176,column:25}},loc:{start:{line:176,column:37},end:{line:179,column:3}},line:176}},branchMap:{"0":{loc:{start:{line:9,column:1},end:{line:11,column:2}},type:"if",locations:[{start:{line:9,column:1},end:{line:11,column:2}},{start:{line:9,column:1},end:{line:11,column:2}}],line:9},"1":{loc:{start:{line:12,column:1},end:{line:20,column:2}},type:"if",locations:[{start:{line:12,column:1},end:{line:20,column:2}},{start:{line:12,column:1},end:{line:20,column:2}}],line:12},"2":{loc:{start:{line:15,column:2},end:{line:19,column:3}},type:"if",locations:[{start:{line:15,column:2},end:{line:19,column:3}},{start:{line:15,column:2},end:{line:19,column:3}}],line:15},"3":{loc:{start:{line:29,column:2},end:{line:41,column:3}},type:"if",locations:[{start:{line:29,column:2},end:{line:41,column:3}},{start:{line:29,column:2},end:{line:41,column:3}}],line:29},"4":{loc:{start:{line:31,column:9},end:{line:41,column:3}},type:"if",locations:[{start:{line:31,column:9},end:{line:41,column:3}},{start:{line:31,column:9},end:{line:41,column:3}}],line:31},"5":{loc:{start:{line:32,column:3},end:{line:40,column:4}},type:"if",locations:[{start:{line:32,column:3},end:{line:40,column:4}},{start:{line:32,column:3},end:{line:40,column:4}}],line:32},"6":{loc:{start:{line:34,column:10},end:{line:40,column:4}},type:"if",locations:[{start:{line:34,column:10},end:{line:40,column:4}},{start:{line:34,column:10},end:{line:40,column:4}}],line:34},"7":{loc:{start:{line:34,column:14},end:{line:36,column:41}},type:"binary-expr",locations:[{start:{line:34,column:14},end:{line:34,column:77}},{start:{line:35,column:5},end:{line:35,column:43}},{start:{line:36,column:5},end:{line:36,column:41}}],line:34},"8":{loc:{start:{line:49,column:9},end:{line:49,column:36}},type:"binary-expr",locations:[{start:{line:49,column:9},end:{line:49,column:30}},{start:{line:49,column:34},end:{line:49,column:36}}],line:49},"9":{loc:{start:{line:54,column:8},end:{line:54,column:81}},type:"binary-expr",locations:[{start:{line:54,column:8},end:{line:54,column:13}},{start:{line:54,column:18},end:{line:54,column:28}},{start:{line:54,column:32},end:{line:54,column:80}}],line:54},"10":{loc:{start:{line:60,column:11},end:{line:60,column:24}},type:"binary-expr",locations:[{start:{line:60,column:11},end:{line:60,column:18}},{start:{line:60,column:22},end:{line:60,column:24}}],line:60},"11":{loc:{start:{line:61,column:1},end:{line:67,column:2}},type:"if",locations:[{start:{line:61,column:1},end:{line:67,column:2}},{start:{line:61,column:1},end:{line:67,column:2}}],line:61},"12":{loc:{start:{line:62,column:2},end:{line:64,column:3}},type:"if",locations:[{start:{line:62,column:2},end:{line:64,column:3}},{start:{line:62,column:2},end:{line:64,column:3}}],line:62},"13":{loc:{start:{line:73,column:1},end:{line:80,column:2}},type:"if",locations:[{start:{line:73,column:1},end:{line:80,column:2}},{start:{line:73,column:1},end:{line:80,column:2}}],line:73},"14":{loc:{start:{line:73,column:5},end:{line:73,column:50}},type:"binary-expr",locations:[{start:{line:73,column:5},end:{line:73,column:15}},{start:{line:73,column:19},end:{line:73,column:50}}],line:73},"15":{loc:{start:{line:77,column:10},end:{line:77,column:58}},type:"cond-expr",locations:[{start:{line:77,column:18},end:{line:77,column:53}},{start:{line:77,column:56},end:{line:77,column:58}}],line:77},"16":{loc:{start:{line:83,column:1},end:{line:86,column:2}},type:"if",locations:[{start:{line:83,column:1},end:{line:86,column:2}},{start:{line:83,column:1},end:{line:86,column:2}}],line:83},"17":{loc:{start:{line:83,column:5},end:{line:83,column:46}},type:"binary-expr",locations:[{start:{line:83,column:5},end:{line:83,column:16}},{start:{line:83,column:20},end:{line:83,column:46}}],line:83},"18":{loc:{start:{line:89,column:1},end:{line:94,column:2}},type:"if",locations:[{start:{line:89,column:1},end:{line:94,column:2}},{start:{line:89,column:1},end:{line:94,column:2}}],line:89},"19":{loc:{start:{line:89,column:5},end:{line:89,column:43}},type:"binary-expr",locations:[{start:{line:89,column:5},end:{line:89,column:16}},{start:{line:89,column:20},end:{line:89,column:30}},{start:{line:89,column:34},end:{line:89,column:43}}],line:89},"20":{loc:{start:{line:95,column:1},end:{line:97,column:2}},type:"if",locations:[{start:{line:95,column:1},end:{line:97,column:2}},{start:{line:95,column:1},end:{line:97,column:2}}],line:95},"21":{loc:{start:{line:96,column:8},end:{line:96,column:28}},type:"binary-expr",locations:[{start:{line:96,column:8},end:{line:96,column:22}},{start:{line:96,column:26},end:{line:96,column:28}}],line:96},"22":{loc:{start:{line:98,column:1},end:{line:100,column:2}},type:"if",locations:[{start:{line:98,column:1},end:{line:100,column:2}},{start:{line:98,column:1},end:{line:100,column:2}}],line:98},"23":{loc:{start:{line:99,column:8},end:{line:99,column:20}},type:"binary-expr",locations:[{start:{line:99,column:8},end:{line:99,column:14}},{start:{line:99,column:18},end:{line:99,column:20}}],line:99},"24":{loc:{start:{line:101,column:1},end:{line:103,column:2}},type:"if",locations:[{start:{line:101,column:1},end:{line:103,column:2}},{start:{line:101,column:1},end:{line:103,column:2}}],line:101},"25":{loc:{start:{line:101,column:5},end:{line:101,column:58}},type:"binary-expr",locations:[{start:{line:101,column:5},end:{line:101,column:16}},{start:{line:101,column:20},end:{line:101,column:46}},{start:{line:101,column:50},end:{line:101,column:58}}],line:101},"26":{loc:{start:{line:104,column:1},end:{line:113,column:2}},type:"if",locations:[{start:{line:104,column:1},end:{line:113,column:2}},{start:{line:104,column:1},end:{line:113,column:2}}],line:104},"27":{loc:{start:{line:106,column:3},end:{line:111,column:4}},type:"if",locations:[{start:{line:106,column:3},end:{line:111,column:4}},{start:{line:106,column:3},end:{line:111,column:4}}],line:106},"28":{loc:{start:{line:108,column:4},end:{line:110,column:5}},type:"if",locations:[{start:{line:108,column:4},end:{line:110,column:5}},{start:{line:108,column:4},end:{line:110,column:5}}],line:108},"29":{loc:{start:{line:116,column:1},end:{line:131,column:2}},type:"if",locations:[{start:{line:116,column:1},end:{line:131,column:2}},{start:{line:116,column:1},end:{line:131,column:2}}],line:116},"30":{loc:{start:{line:116,column:5},end:{line:116,column:93}},type:"binary-expr",locations:[{start:{line:116,column:5},end:{line:116,column:16}},{start:{line:116,column:21},end:{line:116,column:30}},{start:{line:116,column:34},end:{line:116,column:61}},{start:{line:116,column:65},end:{line:116,column:92}}],line:116},"31":{loc:{start:{line:117,column:2},end:{line:130,column:3}},type:"if",locations:[{start:{line:117,column:2},end:{line:130,column:3}},{start:{line:117,column:2},end:{line:130,column:3}}],line:117},"32":{loc:{start:{line:118,column:3},end:{line:129,column:4}},type:"if",locations:[{start:{line:118,column:3},end:{line:129,column:4}},{start:{line:118,column:3},end:{line:129,column:4}}],line:118},"33":{loc:{start:{line:119,column:10},end:{line:119,column:36}},type:"binary-expr",locations:[{start:{line:119,column:10},end:{line:119,column:18}},{start:{line:119,column:22},end:{line:119,column:36}}],line:119},"34":{loc:{start:{line:120,column:10},end:{line:129,column:4}},type:"if",locations:[{start:{line:120,column:10},end:{line:129,column:4}},{start:{line:120,column:10},end:{line:129,column:4}}],line:120},"35":{loc:{start:{line:121,column:19},end:{line:121,column:92}},type:"binary-expr",locations:[{start:{line:121,column:19},end:{line:121,column:55}},{start:{line:121,column:59},end:{line:121,column:92}}],line:121},"36":{loc:{start:{line:122,column:4},end:{line:126,column:5}},type:"if",locations:[{start:{line:122,column:4},end:{line:126,column:5}},{start:{line:122,column:4},end:{line:126,column:5}}],line:122},"37":{loc:{start:{line:125,column:11},end:{line:125,column:25}},type:"binary-expr",locations:[{start:{line:125,column:11},end:{line:125,column:19}},{start:{line:125,column:23},end:{line:125,column:25}}],line:125},"38":{loc:{start:{line:127,column:10},end:{line:129,column:4}},type:"if",locations:[{start:{line:127,column:10},end:{line:129,column:4}},{start:{line:127,column:10},end:{line:129,column:4}}],line:127},"39":{loc:{start:{line:128,column:16},end:{line:128,column:101}},type:"binary-expr",locations:[{start:{line:128,column:16},end:{line:128,column:51}},{start:{line:128,column:55},end:{line:128,column:89}},{start:{line:128,column:93},end:{line:128,column:101}}],line:128},"40":{loc:{start:{line:135,column:1},end:{line:137,column:2}},type:"if",locations:[{start:{line:135,column:1},end:{line:137,column:2}},{start:{line:135,column:1},end:{line:137,column:2}}],line:135},"41":{loc:{start:{line:135,column:5},end:{line:135,column:112}},type:"binary-expr",locations:[{start:{line:135,column:5},end:{line:135,column:16}},{start:{line:135,column:21},end:{line:135,column:30}},{start:{line:135,column:34},end:{line:135,column:58}},{start:{line:135,column:62},end:{line:135,column:81}},{start:{line:135,column:86},end:{line:135,column:112}}],line:135},"42":{loc:{start:{line:139,column:1},end:{line:145,column:2}},type:"if",locations:[{start:{line:139,column:1},end:{line:145,column:2}},{start:{line:139,column:1},end:{line:145,column:2}}],line:139},"43":{loc:{start:{line:141,column:3},end:{line:143,column:4}},type:"if",locations:[{start:{line:141,column:3},end:{line:143,column:4}},{start:{line:141,column:3},end:{line:143,column:4}}],line:141},"44":{loc:{start:{line:152,column:1},end:{line:154,column:2}},type:"if",locations:[{start:{line:152,column:1},end:{line:154,column:2}},{start:{line:152,column:1},end:{line:154,column:2}}],line:152},"45":{loc:{start:{line:152,column:5},end:{line:152,column:75}},type:"binary-expr",locations:[{start:{line:152,column:5},end:{line:152,column:16}},{start:{line:152,column:21},end:{line:152,column:36}},{start:{line:152,column:40},end:{line:152,column:74}}],line:152},"46":{loc:{start:{line:153,column:8},end:{line:153,column:22}},type:"binary-expr",locations:[{start:{line:153,column:8},end:{line:153,column:16}},{start:{line:153,column:20},end:{line:153,column:22}}],line:153},"47":{loc:{start:{line:158,column:1},end:{line:160,column:2}},type:"if",locations:[{start:{line:158,column:1},end:{line:160,column:2}},{start:{line:158,column:1},end:{line:160,column:2}}],line:158},"48":{loc:{start:{line:174,column:1},end:{line:185,column:2}},type:"if",locations:[{start:{line:174,column:1},end:{line:185,column:2}},{start:{line:174,column:1},end:{line:185,column:2}}],line:174},"49":{loc:{start:{line:178,column:10},end:{line:178,column:43}},type:"cond-expr",locations:[{start:{line:178,column:18},end:{line:178,column:38}},{start:{line:178,column:41},end:{line:178,column:43}}],line:178},"50":{loc:{start:{line:181,column:8},end:{line:185,column:2}},type:"if",locations:[{start:{line:181,column:8},end:{line:185,column:2}},{start:{line:181,column:8},end:{line:185,column:2}}],line:181},"51":{loc:{start:{line:183,column:8},end:{line:185,column:2}},type:"if",locations:[{start:{line:183,column:8},end:{line:185,column:2}},{start:{line:183,column:8},end:{line:185,column:2}}],line:183},"52":{loc:{start:{line:187,column:8},end:{line:187,column:17}},type:"binary-expr",locations:[{start:{line:187,column:8},end:{line:187,column:11}},{start:{line:187,column:15},end:{line:187,column:17}}],line:187},"53":{loc:{start:{line:189,column:1},end:{line:191,column:2}},type:"if",locations:[{start:{line:189,column:1},end:{line:191,column:2}},{start:{line:189,column:1},end:{line:191,column:2}}],line:189}},s:{"0":0,"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0,"39":0,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0,"46":0,"47":0,"48":0,"49":0,"50":0,"51":0,"52":0,"53":0,"54":0,"55":0,"56":0,"57":0,"58":0,"59":0,"60":0,"61":0,"62":0,"63":0,"64":0,"65":0,"66":0,"67":0,"68":0,"69":0,"70":0,"71":0,"72":0,"73":0,"74":0,"75":0,"76":0,"77":0,"78":0,"79":0,"80":0,"81":0,"82":0,"83":0,"84":0,"85":0,"86":0,"87":0,"88":0,"89":0,"90":0,"91":0,"92":0,"93":0,"94":0,"95":0,"96":0,"97":0,"98":0,"99":0,"100":0,"101":0,"102":0,"103":0,"104":0,"105":0,"106":0,"107":0,"108":0},f:{"0":0,"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0},b:{"0":[0,0],"1":[0,0],"2":[0,0],"3":[0,0],"4":[0,0],"5":[0,0],"6":[0,0],"7":[0,0,0],"8":[0,0],"9":[0,0,0],"10":[0,0],"11":[0,0],"12":[0,0],"13":[0,0],"14":[0,0],"15":[0,0],"16":[0,0],"17":[0,0],"18":[0,0],"19":[0,0,0],"20":[0,0],"21":[0,0],"22":[0,0],"23":[0,0],"24":[0,0],"25":[0,0,0],"26":[0,0],"27":[0,0],"28":[0,0],"29":[0,0],"30":[0,0,0,0],"31":[0,0],"32":[0,0],"33":[0,0],"34":[0,0],"35":[0,0],"36":[0,0],"37":[0,0],"38":[0,0],"39":[0,0,0],"40":[0,0],"41":[0,0,0,0,0],"42":[0,0],"43":[0,0],"44":[0,0],"45":[0,0,0],"46":[0,0],"47":[0,0],"48":[0,0],"49":[0,0],"50":[0,0],"51":[0,0],"52":[0,0],"53":[0,0]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"510e8f25ab8f75c5ebe94bd1b7f774bcc66601f3"};var coverage=global[gcv]||(global[gcv]={});if(!coverage[path]||coverage[path].hash!==hash){coverage[path]=coverageData;}var actualCoverage=coverage[path];{// @ts-ignore
1066 1058 cov_22i8nvh4cs=function(){return actualCoverage;};}return actualCoverage;}cov_22i8nvh4cs();var constants=(cov_22i8nvh4cs().s[0]++,require('./constants.js'));var atree=(cov_22i8nvh4cs().s[1]++,require('./atree.js'));var query=(cov_22i8nvh4cs().s[2]++,require('./query.js'));cov_22i8nvh4cs().s[3]++;var getPseudoContent=function(node,selector){cov_22i8nvh4cs().f[0]++;var styles=(cov_22i8nvh4cs().s[4]++,window.getComputedStyle(node,selector));var ret=(cov_22i8nvh4cs().s[5]++,styles.getPropertyValue('content'));var inline=(cov_22i8nvh4cs().s[6]++,styles.display.substr(0,6)==='inline');cov_22i8nvh4cs().s[7]++;if(!ret){cov_22i8nvh4cs().b[0][0]++;cov_22i8nvh4cs().s[8]++;return'';}else{cov_22i8nvh4cs().b[0][1]++;}cov_22i8nvh4cs().s[9]++;if(ret.substr(0,1)!=='"'){cov_22i8nvh4cs().b[1][0]++;cov_22i8nvh4cs().s[10]++;return'';}else{cov_22i8nvh4cs().b[1][1]++;cov_22i8nvh4cs().s[11]++;if(inline){cov_22i8nvh4cs().b[2][0]++;cov_22i8nvh4cs().s[12]++;return ret.slice(1,-1);}else{cov_22i8nvh4cs().b[2][1]++;cov_22i8nvh4cs().s[13]++;return' '+ret.slice(1,-1)+' ';}}};cov_22i8nvh4cs().s[14]++;var getContent=function(root,visited){cov_22i8nvh4cs().f[1]++;var children=(cov_22i8nvh4cs().s[15]++,atree.getChildNodes(root));var ret=(cov_22i8nvh4cs().s[16]++,'');cov_22i8nvh4cs().s[17]++;for(var i=(cov_22i8nvh4cs().s[18]++,0);i<children.length;i++){var node=(cov_22i8nvh4cs().s[19]++,children[i]);cov_22i8nvh4cs().s[20]++;if(node.nodeType===node.TEXT_NODE){cov_22i8nvh4cs().b[3][0]++;cov_22i8nvh4cs().s[21]++;ret+=node.textContent;}else{cov_22i8nvh4cs().b[3][1]++;cov_22i8nvh4cs().s[22]++;if(node.nodeType===node.ELEMENT_NODE){cov_22i8nvh4cs().b[4][0]++;cov_22i8nvh4cs().s[23]++;if(node.tagName.toLowerCase()==='br'){cov_22i8nvh4cs().b[5][0]++;cov_22i8nvh4cs().s[24]++;ret+='\n';}else{cov_22i8nvh4cs().b[5][1]++;cov_22i8nvh4cs().s[25]++;if((cov_22i8nvh4cs().b[7][0]++,window.getComputedStyle(node).display.substr(0,6)==='inline')&&(cov_22i8nvh4cs().b[7][1]++,node.tagName.toLowerCase()!=='input')&&(cov_22i8nvh4cs().b[7][2]++,node.tagName.toLowerCase()!=='img')){cov_22i8nvh4cs().b[6][0]++;cov_22i8nvh4cs().s[26]++;// https://github.com/w3c/accname/issues/3
1067 -1 ret+=getName(node,true,visited);}else{cov_22i8nvh4cs().b[6][1]++;cov_22i8nvh4cs().s[27]++;ret+=' '+getName(node,true,visited)+' ';}}}else{cov_22i8nvh4cs().b[4][1]++;}}}cov_22i8nvh4cs().s[28]++;return ret;};cov_22i8nvh4cs().s[29]++;var allowNameFromContent=function(el){cov_22i8nvh4cs().f[2]++;var role=(cov_22i8nvh4cs().s[30]++,query.getRole(el));cov_22i8nvh4cs().s[31]++;return((cov_22i8nvh4cs().b[8][0]++,constants.roles[role])||(cov_22i8nvh4cs().b[8][1]++,{})).nameFromContents;};cov_22i8nvh4cs().s[32]++;var isLabelable=function(el){cov_22i8nvh4cs().f[3]++;var selector=(cov_22i8nvh4cs().s[33]++,constants.labelable.join(','));cov_22i8nvh4cs().s[34]++;return el.matches(selector);};cov_22i8nvh4cs().s[35]++;var isInLabelForOtherWidget=function(el){cov_22i8nvh4cs().f[4]++;var label=(cov_22i8nvh4cs().s[36]++,el.parentElement.closest('label'));cov_22i8nvh4cs().s[37]++;return(cov_22i8nvh4cs().b[9][0]++,label)&&(cov_22i8nvh4cs().b[9][1]++,!Array.prototype.includes.call(el.labels,label));};cov_22i8nvh4cs().s[38]++;var getName=function(el,recursive,visited,directReference){cov_22i8nvh4cs().f[5]++;var ret=(cov_22i8nvh4cs().s[39]++,'');cov_22i8nvh4cs().s[40]++;visited=(cov_22i8nvh4cs().b[10][0]++,visited)||(cov_22i8nvh4cs().b[10][1]++,[]);cov_22i8nvh4cs().s[41]++;if(visited.includes(el)){cov_22i8nvh4cs().b[11][0]++;cov_22i8nvh4cs().s[42]++;if(!directReference){cov_22i8nvh4cs().b[12][0]++;cov_22i8nvh4cs().s[43]++;return'';}else{cov_22i8nvh4cs().b[12][1]++;}}else{cov_22i8nvh4cs().b[11][1]++;cov_22i8nvh4cs().s[44]++;visited.push(el);}// A
-1 1059 ret+=getName(node,true,visited);}else{cov_22i8nvh4cs().b[6][1]++;cov_22i8nvh4cs().s[27]++;ret+=' '+getName(node,true,visited)+' ';}}}else{cov_22i8nvh4cs().b[4][1]++;}}}cov_22i8nvh4cs().s[28]++;return ret;};cov_22i8nvh4cs().s[29]++;var allowNameFromContent=function(el){cov_22i8nvh4cs().f[2]++;var role=(cov_22i8nvh4cs().s[30]++,query.getRole(el));cov_22i8nvh4cs().s[31]++;return((cov_22i8nvh4cs().b[8][0]++,constants.roles[role])||(cov_22i8nvh4cs().b[8][1]++,{})).nameFromContents;};cov_22i8nvh4cs().s[32]++;var isInLabelForOtherWidget=function(el){cov_22i8nvh4cs().f[3]++;var label=(cov_22i8nvh4cs().s[33]++,el.parentElement.closest('label'));cov_22i8nvh4cs().s[34]++;return(cov_22i8nvh4cs().b[9][0]++,label)&&((cov_22i8nvh4cs().b[9][1]++,!el.labels)||(cov_22i8nvh4cs().b[9][2]++,!Array.prototype.includes.call(el.labels,label)));};cov_22i8nvh4cs().s[35]++;var getName=function(el,recursive,visited,directReference){cov_22i8nvh4cs().f[4]++;var ret=(cov_22i8nvh4cs().s[36]++,'');cov_22i8nvh4cs().s[37]++;visited=(cov_22i8nvh4cs().b[10][0]++,visited)||(cov_22i8nvh4cs().b[10][1]++,[]);cov_22i8nvh4cs().s[38]++;if(visited.includes(el)){cov_22i8nvh4cs().b[11][0]++;cov_22i8nvh4cs().s[39]++;if(!directReference){cov_22i8nvh4cs().b[12][0]++;cov_22i8nvh4cs().s[40]++;return'';}else{cov_22i8nvh4cs().b[12][1]++;}}else{cov_22i8nvh4cs().b[11][1]++;cov_22i8nvh4cs().s[41]++;visited.push(el);}// A
1068 1060 // handled in atree
1069 1061 // B
1070 -1 cov_22i8nvh4cs().s[45]++;if((cov_22i8nvh4cs().b[14][0]++,!recursive)&&(cov_22i8nvh4cs().b[14][1]++,el.matches('[aria-labelledby]'))){cov_22i8nvh4cs().b[13][0]++;var ids=(cov_22i8nvh4cs().s[46]++,el.getAttribute('aria-labelledby').split(/\s+/));var strings=(cov_22i8nvh4cs().s[47]++,ids.map(function(id){cov_22i8nvh4cs().f[6]++;var label=(cov_22i8nvh4cs().s[48]++,document.getElementById(id));cov_22i8nvh4cs().s[49]++;return label?(cov_22i8nvh4cs().b[15][0]++,getName(label,true,visited,true)):(cov_22i8nvh4cs().b[15][1]++,'');}));cov_22i8nvh4cs().s[50]++;ret=strings.join(' ');}else{cov_22i8nvh4cs().b[13][1]++;}// C
1071 -1 cov_22i8nvh4cs().s[51]++;if((cov_22i8nvh4cs().b[17][0]++,!ret.trim())&&(cov_22i8nvh4cs().b[17][1]++,el.matches('[aria-label]'))){cov_22i8nvh4cs().b[16][0]++;cov_22i8nvh4cs().s[52]++;// FIXME: may skip to 2E
-1 1062 cov_22i8nvh4cs().s[42]++;if((cov_22i8nvh4cs().b[14][0]++,!recursive)&&(cov_22i8nvh4cs().b[14][1]++,el.matches('[aria-labelledby]'))){cov_22i8nvh4cs().b[13][0]++;var ids=(cov_22i8nvh4cs().s[43]++,el.getAttribute('aria-labelledby').split(/\s+/));var strings=(cov_22i8nvh4cs().s[44]++,ids.map(function(id){cov_22i8nvh4cs().f[5]++;var label=(cov_22i8nvh4cs().s[45]++,document.getElementById(id));cov_22i8nvh4cs().s[46]++;return label?(cov_22i8nvh4cs().b[15][0]++,getName(label,true,visited,true)):(cov_22i8nvh4cs().b[15][1]++,'');}));cov_22i8nvh4cs().s[47]++;ret=strings.join(' ');}else{cov_22i8nvh4cs().b[13][1]++;}// C
-1 1063 cov_22i8nvh4cs().s[48]++;if((cov_22i8nvh4cs().b[17][0]++,!ret.trim())&&(cov_22i8nvh4cs().b[17][1]++,el.matches('[aria-label]'))){cov_22i8nvh4cs().b[16][0]++;cov_22i8nvh4cs().s[49]++;// FIXME: may skip to 2E
1072 1064 ret=el.getAttribute('aria-label');}else{cov_22i8nvh4cs().b[16][1]++;}// D
1073 -1 cov_22i8nvh4cs().s[53]++;if((cov_22i8nvh4cs().b[19][0]++,!ret.trim())&&(cov_22i8nvh4cs().b[19][1]++,!recursive)&&(cov_22i8nvh4cs().b[19][2]++,isLabelable(el))){cov_22i8nvh4cs().b[18][0]++;var strings=(cov_22i8nvh4cs().s[54]++,Array.prototype.map.call(el.labels,function(label){cov_22i8nvh4cs().f[7]++;cov_22i8nvh4cs().s[55]++;return getName(label,true,visited);}));cov_22i8nvh4cs().s[56]++;ret=strings.join(' ');}else{cov_22i8nvh4cs().b[18][1]++;}cov_22i8nvh4cs().s[57]++;if(!ret.trim()){cov_22i8nvh4cs().b[20][0]++;cov_22i8nvh4cs().s[58]++;ret=(cov_22i8nvh4cs().b[21][0]++,el.placeholder)||(cov_22i8nvh4cs().b[21][1]++,'');}else{cov_22i8nvh4cs().b[20][1]++;}cov_22i8nvh4cs().s[59]++;if(!ret.trim()){cov_22i8nvh4cs().b[22][0]++;cov_22i8nvh4cs().s[60]++;ret=(cov_22i8nvh4cs().b[23][0]++,el.alt)||(cov_22i8nvh4cs().b[23][1]++,'');}else{cov_22i8nvh4cs().b[22][1]++;}cov_22i8nvh4cs().s[61]++;if((cov_22i8nvh4cs().b[25][0]++,!ret.trim())&&(cov_22i8nvh4cs().b[25][1]++,el.matches('abbr,acronym'))&&(cov_22i8nvh4cs().b[25][2]++,el.title)){cov_22i8nvh4cs().b[24][0]++;cov_22i8nvh4cs().s[62]++;ret=el.title;}else{cov_22i8nvh4cs().b[24][1]++;}cov_22i8nvh4cs().s[63]++;if(!ret.trim()){cov_22i8nvh4cs().b[26][0]++;cov_22i8nvh4cs().s[64]++;for(var selector in constants.nameFromDescendant){cov_22i8nvh4cs().s[65]++;if(el.matches(selector)){cov_22i8nvh4cs().b[27][0]++;var descendant=(cov_22i8nvh4cs().s[66]++,el.querySelector(constants.nameFromDescendant[selector]));cov_22i8nvh4cs().s[67]++;if(descendant){cov_22i8nvh4cs().b[28][0]++;cov_22i8nvh4cs().s[68]++;ret=getName(descendant,true,visited);}else{cov_22i8nvh4cs().b[28][1]++;}}else{cov_22i8nvh4cs().b[27][1]++;}}}else{cov_22i8nvh4cs().b[26][1]++;}// E
1074 -1 cov_22i8nvh4cs().s[69]++;if((cov_22i8nvh4cs().b[30][0]++,!ret.trim())&&((cov_22i8nvh4cs().b[30][1]++,recursive)||(cov_22i8nvh4cs().b[30][2]++,isInLabelForOtherWidget(el))||(cov_22i8nvh4cs().b[30][3]++,query.matches(el,'button')))){cov_22i8nvh4cs().b[29][0]++;cov_22i8nvh4cs().s[70]++;if(query.matches(el,'textbox,button,combobox,listbox,range')){cov_22i8nvh4cs().b[31][0]++;cov_22i8nvh4cs().s[71]++;if(query.matches(el,'textbox,button')){cov_22i8nvh4cs().b[32][0]++;cov_22i8nvh4cs().s[72]++;ret=(cov_22i8nvh4cs().b[33][0]++,el.value)||(cov_22i8nvh4cs().b[33][1]++,el.textContent);}else{cov_22i8nvh4cs().b[32][1]++;cov_22i8nvh4cs().s[73]++;if(query.matches(el,'combobox,listbox')){cov_22i8nvh4cs().b[34][0]++;var selected=(cov_22i8nvh4cs().s[74]++,(cov_22i8nvh4cs().b[35][0]++,query.querySelector(el,':selected'))||(cov_22i8nvh4cs().b[35][1]++,query.querySelector(el,'option')));cov_22i8nvh4cs().s[75]++;if(selected){cov_22i8nvh4cs().b[36][0]++;cov_22i8nvh4cs().s[76]++;ret=getName(selected,recursive,visited);}else{cov_22i8nvh4cs().b[36][1]++;cov_22i8nvh4cs().s[77]++;ret=(cov_22i8nvh4cs().b[37][0]++,el.value)||(cov_22i8nvh4cs().b[37][1]++,'');}}else{cov_22i8nvh4cs().b[34][1]++;cov_22i8nvh4cs().s[78]++;if(query.matches(el,'range')){cov_22i8nvh4cs().b[38][0]++;cov_22i8nvh4cs().s[79]++;ret=''+((cov_22i8nvh4cs().b[39][0]++,query.getAttribute(el,'valuetext'))||(cov_22i8nvh4cs().b[39][1]++,query.getAttribute(el,'valuenow'))||(cov_22i8nvh4cs().b[39][2]++,el.value));}else{cov_22i8nvh4cs().b[38][1]++;}}}}else{cov_22i8nvh4cs().b[31][1]++;}}else{cov_22i8nvh4cs().b[29][1]++;}// F
-1 1065 cov_22i8nvh4cs().s[50]++;if((cov_22i8nvh4cs().b[19][0]++,!ret.trim())&&(cov_22i8nvh4cs().b[19][1]++,!recursive)&&(cov_22i8nvh4cs().b[19][2]++,el.labels)){cov_22i8nvh4cs().b[18][0]++;var strings=(cov_22i8nvh4cs().s[51]++,Array.prototype.map.call(el.labels,function(label){cov_22i8nvh4cs().f[6]++;cov_22i8nvh4cs().s[52]++;return getName(label,true,visited);}));cov_22i8nvh4cs().s[53]++;ret=strings.join(' ');}else{cov_22i8nvh4cs().b[18][1]++;}cov_22i8nvh4cs().s[54]++;if(!ret.trim()){cov_22i8nvh4cs().b[20][0]++;cov_22i8nvh4cs().s[55]++;ret=(cov_22i8nvh4cs().b[21][0]++,el.placeholder)||(cov_22i8nvh4cs().b[21][1]++,'');}else{cov_22i8nvh4cs().b[20][1]++;}cov_22i8nvh4cs().s[56]++;if(!ret.trim()){cov_22i8nvh4cs().b[22][0]++;cov_22i8nvh4cs().s[57]++;ret=(cov_22i8nvh4cs().b[23][0]++,el.alt)||(cov_22i8nvh4cs().b[23][1]++,'');}else{cov_22i8nvh4cs().b[22][1]++;}cov_22i8nvh4cs().s[58]++;if((cov_22i8nvh4cs().b[25][0]++,!ret.trim())&&(cov_22i8nvh4cs().b[25][1]++,el.matches('abbr,acronym'))&&(cov_22i8nvh4cs().b[25][2]++,el.title)){cov_22i8nvh4cs().b[24][0]++;cov_22i8nvh4cs().s[59]++;ret=el.title;}else{cov_22i8nvh4cs().b[24][1]++;}cov_22i8nvh4cs().s[60]++;if(!ret.trim()){cov_22i8nvh4cs().b[26][0]++;cov_22i8nvh4cs().s[61]++;for(var selector in constants.nameFromDescendant){cov_22i8nvh4cs().s[62]++;if(el.matches(selector)){cov_22i8nvh4cs().b[27][0]++;var descendant=(cov_22i8nvh4cs().s[63]++,el.querySelector(constants.nameFromDescendant[selector]));cov_22i8nvh4cs().s[64]++;if(descendant){cov_22i8nvh4cs().b[28][0]++;cov_22i8nvh4cs().s[65]++;ret=getName(descendant,true,visited);}else{cov_22i8nvh4cs().b[28][1]++;}}else{cov_22i8nvh4cs().b[27][1]++;}}}else{cov_22i8nvh4cs().b[26][1]++;}// E
-1 1066 cov_22i8nvh4cs().s[66]++;if((cov_22i8nvh4cs().b[30][0]++,!ret.trim())&&((cov_22i8nvh4cs().b[30][1]++,recursive)||(cov_22i8nvh4cs().b[30][2]++,isInLabelForOtherWidget(el))||(cov_22i8nvh4cs().b[30][3]++,query.matches(el,'button')))){cov_22i8nvh4cs().b[29][0]++;cov_22i8nvh4cs().s[67]++;if(query.matches(el,'textbox,button,combobox,listbox,range')){cov_22i8nvh4cs().b[31][0]++;cov_22i8nvh4cs().s[68]++;if(query.matches(el,'textbox,button')){cov_22i8nvh4cs().b[32][0]++;cov_22i8nvh4cs().s[69]++;ret=(cov_22i8nvh4cs().b[33][0]++,el.value)||(cov_22i8nvh4cs().b[33][1]++,el.textContent);}else{cov_22i8nvh4cs().b[32][1]++;cov_22i8nvh4cs().s[70]++;if(query.matches(el,'combobox,listbox')){cov_22i8nvh4cs().b[34][0]++;var selected=(cov_22i8nvh4cs().s[71]++,(cov_22i8nvh4cs().b[35][0]++,query.querySelector(el,':selected'))||(cov_22i8nvh4cs().b[35][1]++,query.querySelector(el,'option')));cov_22i8nvh4cs().s[72]++;if(selected){cov_22i8nvh4cs().b[36][0]++;cov_22i8nvh4cs().s[73]++;ret=getName(selected,recursive,visited);}else{cov_22i8nvh4cs().b[36][1]++;cov_22i8nvh4cs().s[74]++;ret=(cov_22i8nvh4cs().b[37][0]++,el.value)||(cov_22i8nvh4cs().b[37][1]++,'');}}else{cov_22i8nvh4cs().b[34][1]++;cov_22i8nvh4cs().s[75]++;if(query.matches(el,'range')){cov_22i8nvh4cs().b[38][0]++;cov_22i8nvh4cs().s[76]++;ret=''+((cov_22i8nvh4cs().b[39][0]++,query.getAttribute(el,'valuetext'))||(cov_22i8nvh4cs().b[39][1]++,query.getAttribute(el,'valuenow'))||(cov_22i8nvh4cs().b[39][2]++,el.value));}else{cov_22i8nvh4cs().b[38][1]++;}}}}else{cov_22i8nvh4cs().b[31][1]++;}}else{cov_22i8nvh4cs().b[29][1]++;}// F
1075 1067 // FIXME: menu is not mentioned in the spec
1076 -1 cov_22i8nvh4cs().s[80]++;if((cov_22i8nvh4cs().b[41][0]++,!ret.trim())&&((cov_22i8nvh4cs().b[41][1]++,recursive)||(cov_22i8nvh4cs().b[41][2]++,allowNameFromContent(el))||(cov_22i8nvh4cs().b[41][3]++,el.closest('label')))&&(cov_22i8nvh4cs().b[41][4]++,!query.matches(el,'menu'))){cov_22i8nvh4cs().b[40][0]++;cov_22i8nvh4cs().s[81]++;ret=getContent(el,visited);}else{cov_22i8nvh4cs().b[40][1]++;}cov_22i8nvh4cs().s[82]++;if(!ret.trim()){cov_22i8nvh4cs().b[42][0]++;cov_22i8nvh4cs().s[83]++;for(var selector in constants.nameDefaults){cov_22i8nvh4cs().s[84]++;if(el.matches(selector)){cov_22i8nvh4cs().b[43][0]++;cov_22i8nvh4cs().s[85]++;ret=constants.nameDefaults[selector];}else{cov_22i8nvh4cs().b[43][1]++;}}}else{cov_22i8nvh4cs().b[42][1]++;}// G/H
-1 1068 cov_22i8nvh4cs().s[77]++;if((cov_22i8nvh4cs().b[41][0]++,!ret.trim())&&((cov_22i8nvh4cs().b[41][1]++,recursive)||(cov_22i8nvh4cs().b[41][2]++,allowNameFromContent(el))||(cov_22i8nvh4cs().b[41][3]++,el.closest('label')))&&(cov_22i8nvh4cs().b[41][4]++,!query.matches(el,'menu'))){cov_22i8nvh4cs().b[40][0]++;cov_22i8nvh4cs().s[78]++;ret=getContent(el,visited);}else{cov_22i8nvh4cs().b[40][1]++;}cov_22i8nvh4cs().s[79]++;if(!ret.trim()){cov_22i8nvh4cs().b[42][0]++;cov_22i8nvh4cs().s[80]++;for(var selector in constants.nameDefaults){cov_22i8nvh4cs().s[81]++;if(el.matches(selector)){cov_22i8nvh4cs().b[43][0]++;cov_22i8nvh4cs().s[82]++;ret=constants.nameDefaults[selector];}else{cov_22i8nvh4cs().b[43][1]++;}}}else{cov_22i8nvh4cs().b[42][1]++;}// G/H
1077 1069 // handled in getContent
1078 1070 // I
1079 1071 // FIXME: presentation not mentioned in the spec
1080 -1 cov_22i8nvh4cs().s[86]++;if((cov_22i8nvh4cs().b[45][0]++,!ret.trim())&&(cov_22i8nvh4cs().b[45][1]++,!query.matches(el,'presentation'))){cov_22i8nvh4cs().b[44][0]++;cov_22i8nvh4cs().s[87]++;ret=(cov_22i8nvh4cs().b[46][0]++,el.title)||(cov_22i8nvh4cs().b[46][1]++,'');}else{cov_22i8nvh4cs().b[44][1]++;}var before=(cov_22i8nvh4cs().s[88]++,getPseudoContent(el,':before'));var after=(cov_22i8nvh4cs().s[89]++,getPseudoContent(el,':after'));cov_22i8nvh4cs().s[90]++;return before+ret+after;};cov_22i8nvh4cs().s[91]++;var getNameTrimmed=function(el){cov_22i8nvh4cs().f[8]++;cov_22i8nvh4cs().s[92]++;return getName(el).replace(/\s+/g,' ').trim();};cov_22i8nvh4cs().s[93]++;var getDescription=function(el){cov_22i8nvh4cs().f[9]++;var ret=(cov_22i8nvh4cs().s[94]++,'');cov_22i8nvh4cs().s[95]++;if(el.matches('[aria-describedby]')){cov_22i8nvh4cs().b[47][0]++;var ids=(cov_22i8nvh4cs().s[96]++,el.getAttribute('aria-describedby').split(/\s+/));var strings=(cov_22i8nvh4cs().s[97]++,ids.map(function(id){cov_22i8nvh4cs().f[10]++;var label=(cov_22i8nvh4cs().s[98]++,document.getElementById(id));cov_22i8nvh4cs().s[99]++;return label?(cov_22i8nvh4cs().b[48][0]++,getName(label,true)):(cov_22i8nvh4cs().b[48][1]++,'');}));cov_22i8nvh4cs().s[100]++;ret=strings.join(' ');}else{cov_22i8nvh4cs().b[47][1]++;cov_22i8nvh4cs().s[101]++;if(el.title){cov_22i8nvh4cs().b[49][0]++;cov_22i8nvh4cs().s[102]++;ret=el.title;}else{cov_22i8nvh4cs().b[49][1]++;cov_22i8nvh4cs().s[103]++;if(el.placeholder){cov_22i8nvh4cs().b[50][0]++;cov_22i8nvh4cs().s[104]++;ret=el.placeholder;}else{cov_22i8nvh4cs().b[50][1]++;}}}cov_22i8nvh4cs().s[105]++;ret=((cov_22i8nvh4cs().b[51][0]++,ret)||(cov_22i8nvh4cs().b[51][1]++,'')).trim().replace(/\s+/g,' ');cov_22i8nvh4cs().s[106]++;if(ret===getNameTrimmed(el)){cov_22i8nvh4cs().b[52][0]++;cov_22i8nvh4cs().s[107]++;ret='';}else{cov_22i8nvh4cs().b[52][1]++;}cov_22i8nvh4cs().s[108]++;return ret;};cov_22i8nvh4cs().s[109]++;module.exports={getName:getNameTrimmed,getDescription:getDescription};
-1 1072 cov_22i8nvh4cs().s[83]++;if((cov_22i8nvh4cs().b[45][0]++,!ret.trim())&&((cov_22i8nvh4cs().b[45][1]++,directReference)||(cov_22i8nvh4cs().b[45][2]++,!query.matches(el,'presentation')))){cov_22i8nvh4cs().b[44][0]++;cov_22i8nvh4cs().s[84]++;ret=(cov_22i8nvh4cs().b[46][0]++,el.title)||(cov_22i8nvh4cs().b[46][1]++,'');}else{cov_22i8nvh4cs().b[44][1]++;}// FIXME: not exactly sure about this, but it reduces the number of failing
-1 1073 // WPT tests. Whitespace is hard.
-1 1074 cov_22i8nvh4cs().s[85]++;if(!ret.trim()){cov_22i8nvh4cs().b[47][0]++;cov_22i8nvh4cs().s[86]++;ret=' ';}else{cov_22i8nvh4cs().b[47][1]++;}var before=(cov_22i8nvh4cs().s[87]++,getPseudoContent(el,':before'));var after=(cov_22i8nvh4cs().s[88]++,getPseudoContent(el,':after'));cov_22i8nvh4cs().s[89]++;return before+ret+after;};cov_22i8nvh4cs().s[90]++;var getNameTrimmed=function(el){cov_22i8nvh4cs().f[7]++;cov_22i8nvh4cs().s[91]++;return getName(el).replace(/\s+/g,' ').trim();};cov_22i8nvh4cs().s[92]++;var getDescription=function(el){cov_22i8nvh4cs().f[8]++;var ret=(cov_22i8nvh4cs().s[93]++,'');cov_22i8nvh4cs().s[94]++;if(el.matches('[aria-describedby]')){cov_22i8nvh4cs().b[48][0]++;var ids=(cov_22i8nvh4cs().s[95]++,el.getAttribute('aria-describedby').split(/\s+/));var strings=(cov_22i8nvh4cs().s[96]++,ids.map(function(id){cov_22i8nvh4cs().f[9]++;var label=(cov_22i8nvh4cs().s[97]++,document.getElementById(id));cov_22i8nvh4cs().s[98]++;return label?(cov_22i8nvh4cs().b[49][0]++,getName(label,true)):(cov_22i8nvh4cs().b[49][1]++,'');}));cov_22i8nvh4cs().s[99]++;ret=strings.join(' ');}else{cov_22i8nvh4cs().b[48][1]++;cov_22i8nvh4cs().s[100]++;if(el.title){cov_22i8nvh4cs().b[50][0]++;cov_22i8nvh4cs().s[101]++;ret=el.title;}else{cov_22i8nvh4cs().b[50][1]++;cov_22i8nvh4cs().s[102]++;if(el.placeholder){cov_22i8nvh4cs().b[51][0]++;cov_22i8nvh4cs().s[103]++;ret=el.placeholder;}else{cov_22i8nvh4cs().b[51][1]++;}}}cov_22i8nvh4cs().s[104]++;ret=((cov_22i8nvh4cs().b[52][0]++,ret)||(cov_22i8nvh4cs().b[52][1]++,'')).trim().replace(/\s+/g,' ');cov_22i8nvh4cs().s[105]++;if(ret===getNameTrimmed(el)){cov_22i8nvh4cs().b[53][0]++;cov_22i8nvh4cs().s[106]++;ret='';}else{cov_22i8nvh4cs().b[53][1]++;}cov_22i8nvh4cs().s[107]++;return ret;};cov_22i8nvh4cs().s[108]++;module.exports={getName:getNameTrimmed,getDescription:getDescription};
1081 1075
1082 1076
1083 1077 },{"./atree.js":5,"./constants.js":7,"./query.js":9}],9:[function(require,module,exports){
diff --git a/package.json b/package.json
@@ -4,9 +4,9 @@ 4 4 "description": "compare different implementations of accname", 5 5 "devDependencies": { 6 6 "accessibility-developer-tools": "2.12.0",7 -1 "aria-api": "0.4.3",8 -1 "axe-core": "4.4.3",9 -1 "dom-accessibility-api": "0.5.14",-1 7 "aria-api": "0.4.6", -1 8 "axe-core": "4.6.2", -1 9 "dom-accessibility-api": "0.5.15", 10 10 "nyc": "^15.1.0", 11 11 "w3c-alternative-text-computation": "github:accdc/w3c-alternative-text-computation" 12 12 },
diff --git a/src/babel.js b/src/babel.js
@@ -17,7 +17,7 @@ var ex = function(fn, args, _this) {
17 17 };
18 18
19 19 var implementations = [{
20 -1 name: 'aria-api (0.4.3)',
-1 20 name: 'aria-api (0.4.6)',
21 21 url: 'https://github.com/xi/aria-api',
22 22 fn: function(el) {
23 23 return {
@@ -31,7 +31,7 @@ var implementations = [{
31 31 url: 'https://github.com/accdc/w3c-alternative-text-computation',
32 32 fn: accdc.calcNames,
33 33 }, {
34 -1 name: 'dom-accessibility-api (0.5.14)',
-1 34 name: 'dom-accessibility-api (0.5.15)',
35 35 url: 'https://github.com/eps1lon/dom-accessibility-api/',
36 36 fn: function(el) {
37 37 return {
@@ -41,7 +41,7 @@ var implementations = [{
41 41 };
42 42 },
43 43 }, {
44 -1 name: 'axe (4.4.3)',
-1 44 name: 'axe (4.6.2)',
45 45 url: 'https://github.com/dequelabs/axe-core',
46 46 fn: function(el) {
47 47 axe._tree = axe.utils.getFlattenedTree(document.body);