axe-core 4.10.3-canary.e6712bc → 4.10.3-canary.eb52b4e
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/axe.js +242 -193
- package/axe.min.js +2 -2
- package/locales/_template.json +3 -3
- package/locales/de.json +5 -1
- package/package.json +4 -4
- package/sri-history.json +3 -3
package/axe.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! axe v4.10.3-canary.
|
|
1
|
+
/*! axe v4.10.3-canary.eb52b4e
|
|
2
2
|
* Copyright (c) 2015 - 2025 Deque Systems, Inc.
|
|
3
3
|
*
|
|
4
4
|
* Your use of this Source Code Form is subject to the terms of the Mozilla Public
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
}, _typeof(o);
|
|
23
23
|
}
|
|
24
24
|
var axe = axe || {};
|
|
25
|
-
axe.version = '4.10.3-canary.
|
|
25
|
+
axe.version = '4.10.3-canary.eb52b4e';
|
|
26
26
|
if (typeof define === 'function' && define.amd) {
|
|
27
27
|
define('axe-core', [], function() {
|
|
28
28
|
return axe;
|
|
@@ -4673,14 +4673,14 @@
|
|
|
4673
4673
|
}
|
|
4674
4674
|
})(typeof globalThis !== 'undefined' ? globalThis : typeof self !== 'undefined' ? self : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : exports);
|
|
4675
4675
|
});
|
|
4676
|
-
var
|
|
4676
|
+
var require_global_this2 = __commonJS(function(exports, module) {
|
|
4677
4677
|
'use strict';
|
|
4678
4678
|
var check = function check(it) {
|
|
4679
4679
|
return it && it.Math === Math && it;
|
|
4680
4680
|
};
|
|
4681
|
-
module.exports = check((typeof globalThis === 'undefined' ? 'undefined' : _typeof(globalThis)) == 'object' && globalThis) || check((typeof window === 'undefined' ? 'undefined' : _typeof(window)) == 'object' && window) || check((typeof self === 'undefined' ? 'undefined' : _typeof(self)) == 'object' && self) || check((typeof global === 'undefined' ? 'undefined' : _typeof(global)) == 'object' && global) || function() {
|
|
4681
|
+
module.exports = check((typeof globalThis === 'undefined' ? 'undefined' : _typeof(globalThis)) == 'object' && globalThis) || check((typeof window === 'undefined' ? 'undefined' : _typeof(window)) == 'object' && window) || check((typeof self === 'undefined' ? 'undefined' : _typeof(self)) == 'object' && self) || check((typeof global === 'undefined' ? 'undefined' : _typeof(global)) == 'object' && global) || check(_typeof(exports) == 'object' && exports) || function() {
|
|
4682
4682
|
return this;
|
|
4683
|
-
}() ||
|
|
4683
|
+
}() || Function('return this')();
|
|
4684
4684
|
});
|
|
4685
4685
|
var require_fails = __commonJS(function(exports, module) {
|
|
4686
4686
|
'use strict';
|
|
@@ -4741,20 +4741,10 @@
|
|
|
4741
4741
|
}
|
|
4742
4742
|
};
|
|
4743
4743
|
});
|
|
4744
|
-
var require_document_all = __commonJS(function(exports, module) {
|
|
4745
|
-
'use strict';
|
|
4746
|
-
var documentAll = (typeof document === 'undefined' ? 'undefined' : _typeof(document)) == 'object' && document.all;
|
|
4747
|
-
var IS_HTMLDDA = typeof documentAll == 'undefined' && documentAll !== void 0;
|
|
4748
|
-
module.exports = {
|
|
4749
|
-
all: documentAll,
|
|
4750
|
-
IS_HTMLDDA: IS_HTMLDDA
|
|
4751
|
-
};
|
|
4752
|
-
});
|
|
4753
4744
|
var require_is_callable2 = __commonJS(function(exports, module) {
|
|
4754
4745
|
'use strict';
|
|
4755
|
-
var
|
|
4756
|
-
|
|
4757
|
-
module.exports = $documentAll.IS_HTMLDDA ? function(argument) {
|
|
4746
|
+
var documentAll = (typeof document === 'undefined' ? 'undefined' : _typeof(document)) == 'object' && document.all;
|
|
4747
|
+
module.exports = typeof documentAll == 'undefined' && documentAll !== void 0 ? function(argument) {
|
|
4758
4748
|
return typeof argument == 'function' || argument === documentAll;
|
|
4759
4749
|
} : function(argument) {
|
|
4760
4750
|
return typeof argument == 'function';
|
|
@@ -4843,11 +4833,7 @@
|
|
|
4843
4833
|
var require_is_object2 = __commonJS(function(exports, module) {
|
|
4844
4834
|
'use strict';
|
|
4845
4835
|
var isCallable = require_is_callable2();
|
|
4846
|
-
|
|
4847
|
-
var documentAll = $documentAll.all;
|
|
4848
|
-
module.exports = $documentAll.IS_HTMLDDA ? function(it) {
|
|
4849
|
-
return _typeof(it) == 'object' ? it !== null : isCallable(it) || it === documentAll;
|
|
4850
|
-
} : function(it) {
|
|
4836
|
+
module.exports = function(it) {
|
|
4851
4837
|
return _typeof(it) == 'object' ? it !== null : isCallable(it);
|
|
4852
4838
|
};
|
|
4853
4839
|
});
|
|
@@ -4858,13 +4844,13 @@
|
|
|
4858
4844
|
var require_get_built_in = __commonJS(function(exports, module) {
|
|
4859
4845
|
'use strict';
|
|
4860
4846
|
var path = require_path();
|
|
4861
|
-
var
|
|
4847
|
+
var globalThis2 = require_global_this2();
|
|
4862
4848
|
var isCallable = require_is_callable2();
|
|
4863
4849
|
var aFunction = function aFunction(variable) {
|
|
4864
4850
|
return isCallable(variable) ? variable : void 0;
|
|
4865
4851
|
};
|
|
4866
4852
|
module.exports = function(namespace, method) {
|
|
4867
|
-
return arguments.length < 2 ? aFunction(path[namespace]) || aFunction(
|
|
4853
|
+
return arguments.length < 2 ? aFunction(path[namespace]) || aFunction(globalThis2[namespace]) : path[namespace] && path[namespace][method] || globalThis2[namespace] && globalThis2[namespace][method];
|
|
4868
4854
|
};
|
|
4869
4855
|
});
|
|
4870
4856
|
var require_object_is_prototype_of = __commonJS(function(exports, module) {
|
|
@@ -4872,16 +4858,19 @@
|
|
|
4872
4858
|
var uncurryThis = require_function_uncurry_this();
|
|
4873
4859
|
module.exports = uncurryThis({}.isPrototypeOf);
|
|
4874
4860
|
});
|
|
4875
|
-
var
|
|
4861
|
+
var require_environment_user_agent = __commonJS(function(exports, module) {
|
|
4876
4862
|
'use strict';
|
|
4877
|
-
|
|
4863
|
+
var globalThis2 = require_global_this2();
|
|
4864
|
+
var navigator = globalThis2.navigator;
|
|
4865
|
+
var userAgent = navigator && navigator.userAgent;
|
|
4866
|
+
module.exports = userAgent ? String(userAgent) : '';
|
|
4878
4867
|
});
|
|
4879
|
-
var
|
|
4868
|
+
var require_environment_v8_version = __commonJS(function(exports, module) {
|
|
4880
4869
|
'use strict';
|
|
4881
|
-
var
|
|
4882
|
-
var userAgent =
|
|
4883
|
-
var process2 =
|
|
4884
|
-
var Deno =
|
|
4870
|
+
var globalThis2 = require_global_this2();
|
|
4871
|
+
var userAgent = require_environment_user_agent();
|
|
4872
|
+
var process2 = globalThis2.process;
|
|
4873
|
+
var Deno = globalThis2.Deno;
|
|
4885
4874
|
var versions = process2 && process2.versions || Deno && Deno.version;
|
|
4886
4875
|
var v8 = versions && versions.v8;
|
|
4887
4876
|
var match;
|
|
@@ -4903,10 +4892,10 @@
|
|
|
4903
4892
|
});
|
|
4904
4893
|
var require_symbol_constructor_detection = __commonJS(function(exports, module) {
|
|
4905
4894
|
'use strict';
|
|
4906
|
-
var V8_VERSION =
|
|
4895
|
+
var V8_VERSION = require_environment_v8_version();
|
|
4907
4896
|
var fails = require_fails();
|
|
4908
|
-
var
|
|
4909
|
-
var $String =
|
|
4897
|
+
var globalThis2 = require_global_this2();
|
|
4898
|
+
var $String = globalThis2.String;
|
|
4910
4899
|
module.exports = !!Object.getOwnPropertySymbols && !fails(function() {
|
|
4911
4900
|
var symbol = Symbol('symbol detection');
|
|
4912
4901
|
return !$String(symbol) || !(Object(symbol) instanceof Symbol) || !Symbol.sham && V8_VERSION && V8_VERSION < 41;
|
|
@@ -4989,42 +4978,42 @@
|
|
|
4989
4978
|
});
|
|
4990
4979
|
var require_define_global_property = __commonJS(function(exports, module) {
|
|
4991
4980
|
'use strict';
|
|
4992
|
-
var
|
|
4981
|
+
var globalThis2 = require_global_this2();
|
|
4993
4982
|
var defineProperty = Object.defineProperty;
|
|
4994
4983
|
module.exports = function(key, value) {
|
|
4995
4984
|
try {
|
|
4996
|
-
defineProperty(
|
|
4985
|
+
defineProperty(globalThis2, key, {
|
|
4997
4986
|
value: value,
|
|
4998
4987
|
configurable: true,
|
|
4999
4988
|
writable: true
|
|
5000
4989
|
});
|
|
5001
4990
|
} catch (error) {
|
|
5002
|
-
|
|
4991
|
+
globalThis2[key] = value;
|
|
5003
4992
|
}
|
|
5004
4993
|
return value;
|
|
5005
4994
|
};
|
|
5006
4995
|
});
|
|
5007
4996
|
var require_shared_store = __commonJS(function(exports, module) {
|
|
5008
4997
|
'use strict';
|
|
5009
|
-
var
|
|
4998
|
+
var IS_PURE = require_is_pure();
|
|
4999
|
+
var globalThis2 = require_global_this2();
|
|
5010
5000
|
var defineGlobalProperty = require_define_global_property();
|
|
5011
5001
|
var SHARED = '__core-js_shared__';
|
|
5012
|
-
var store =
|
|
5013
|
-
|
|
5002
|
+
var store = module.exports = globalThis2[SHARED] || defineGlobalProperty(SHARED, {});
|
|
5003
|
+
(store.versions || (store.versions = [])).push({
|
|
5004
|
+
version: '3.44.0',
|
|
5005
|
+
mode: IS_PURE ? 'pure' : 'global',
|
|
5006
|
+
copyright: '\xa9 2014-2025 Denis Pushkarev (zloirock.ru)',
|
|
5007
|
+
license: 'https://github.com/zloirock/core-js/blob/v3.44.0/LICENSE',
|
|
5008
|
+
source: 'https://github.com/zloirock/core-js'
|
|
5009
|
+
});
|
|
5014
5010
|
});
|
|
5015
5011
|
var require_shared = __commonJS(function(exports, module) {
|
|
5016
5012
|
'use strict';
|
|
5017
|
-
var IS_PURE = require_is_pure();
|
|
5018
5013
|
var store = require_shared_store();
|
|
5019
|
-
|
|
5020
|
-
return store[key] || (store[key] = value
|
|
5021
|
-
}
|
|
5022
|
-
version: '3.33.0',
|
|
5023
|
-
mode: IS_PURE ? 'pure' : 'global',
|
|
5024
|
-
copyright: '\xa9 2014-2023 Denis Pushkarev (zloirock.ru)',
|
|
5025
|
-
license: 'https://github.com/zloirock/core-js/blob/v3.33.0/LICENSE',
|
|
5026
|
-
source: 'https://github.com/zloirock/core-js'
|
|
5027
|
-
});
|
|
5014
|
+
module.exports = function(key, value) {
|
|
5015
|
+
return store[key] || (store[key] = value || {});
|
|
5016
|
+
};
|
|
5028
5017
|
});
|
|
5029
5018
|
var require_to_object = __commonJS(function(exports, module) {
|
|
5030
5019
|
'use strict';
|
|
@@ -5048,20 +5037,20 @@
|
|
|
5048
5037
|
var uncurryThis = require_function_uncurry_this();
|
|
5049
5038
|
var id = 0;
|
|
5050
5039
|
var postfix = Math.random();
|
|
5051
|
-
var toString = uncurryThis(1
|
|
5040
|
+
var toString = uncurryThis(1.1.toString);
|
|
5052
5041
|
module.exports = function(key) {
|
|
5053
5042
|
return 'Symbol(' + (key === void 0 ? '' : key) + ')_' + toString(++id + postfix, 36);
|
|
5054
5043
|
};
|
|
5055
5044
|
});
|
|
5056
5045
|
var require_well_known_symbol = __commonJS(function(exports, module) {
|
|
5057
5046
|
'use strict';
|
|
5058
|
-
var
|
|
5047
|
+
var globalThis2 = require_global_this2();
|
|
5059
5048
|
var shared = require_shared();
|
|
5060
5049
|
var hasOwn2 = require_has_own_property();
|
|
5061
5050
|
var uid = require_uid();
|
|
5062
5051
|
var NATIVE_SYMBOL = require_symbol_constructor_detection();
|
|
5063
5052
|
var USE_SYMBOL_AS_UID = require_use_symbol_as_uid();
|
|
5064
|
-
var Symbol2 =
|
|
5053
|
+
var Symbol2 = globalThis2.Symbol;
|
|
5065
5054
|
var WellKnownSymbolsStore = shared('wks');
|
|
5066
5055
|
var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol2['for'] || Symbol2 : Symbol2 && Symbol2.withoutSetter || uid;
|
|
5067
5056
|
module.exports = function(name) {
|
|
@@ -5114,9 +5103,9 @@
|
|
|
5114
5103
|
});
|
|
5115
5104
|
var require_document_create_element = __commonJS(function(exports, module) {
|
|
5116
5105
|
'use strict';
|
|
5117
|
-
var
|
|
5106
|
+
var globalThis2 = require_global_this2();
|
|
5118
5107
|
var isObject = require_is_object2();
|
|
5119
|
-
var document2 =
|
|
5108
|
+
var document2 = globalThis2.document;
|
|
5120
5109
|
var EXISTS = isObject(document2) && isObject(document2.createElement);
|
|
5121
5110
|
module.exports = function(it) {
|
|
5122
5111
|
return EXISTS ? document2.createElement(it) : {};
|
|
@@ -5273,7 +5262,7 @@
|
|
|
5273
5262
|
});
|
|
5274
5263
|
var require_export = __commonJS(function(exports, module) {
|
|
5275
5264
|
'use strict';
|
|
5276
|
-
var
|
|
5265
|
+
var globalThis2 = require_global_this2();
|
|
5277
5266
|
var apply = require_function_apply();
|
|
5278
5267
|
var uncurryThis = require_function_uncurry_this_clause();
|
|
5279
5268
|
var isCallable = require_is_callable2();
|
|
@@ -5283,6 +5272,7 @@
|
|
|
5283
5272
|
var bind = require_function_bind_context();
|
|
5284
5273
|
var createNonEnumerableProperty = require_create_non_enumerable_property();
|
|
5285
5274
|
var hasOwn2 = require_has_own_property();
|
|
5275
|
+
require_shared_store();
|
|
5286
5276
|
var wrapConstructor = function wrapConstructor(NativeConstructor) {
|
|
5287
5277
|
var _Wrapper = function Wrapper(a2, b2, c4) {
|
|
5288
5278
|
if (this instanceof _Wrapper) {
|
|
@@ -5308,7 +5298,7 @@
|
|
|
5308
5298
|
var GLOBAL = options.global;
|
|
5309
5299
|
var STATIC = options.stat;
|
|
5310
5300
|
var PROTO = options.proto;
|
|
5311
|
-
var nativeSource = GLOBAL ?
|
|
5301
|
+
var nativeSource = GLOBAL ? globalThis2 : STATIC ? globalThis2[TARGET] : globalThis2[TARGET] && globalThis2[TARGET].prototype;
|
|
5312
5302
|
var target = GLOBAL ? path : path[TARGET] || createNonEnumerableProperty(path, TARGET, {})[TARGET];
|
|
5313
5303
|
var targetPrototype = target.prototype;
|
|
5314
5304
|
var FORCED, USE_NATIVE, VIRTUAL_PROTOTYPE;
|
|
@@ -5326,11 +5316,11 @@
|
|
|
5326
5316
|
}
|
|
5327
5317
|
}
|
|
5328
5318
|
sourceProperty = USE_NATIVE && nativeProperty ? nativeProperty : source[key];
|
|
5329
|
-
if (
|
|
5319
|
+
if (!FORCED && !PROTO && _typeof(targetProperty) == _typeof(sourceProperty)) {
|
|
5330
5320
|
continue;
|
|
5331
5321
|
}
|
|
5332
5322
|
if (options.bind && USE_NATIVE) {
|
|
5333
|
-
resultProperty = bind(sourceProperty,
|
|
5323
|
+
resultProperty = bind(sourceProperty, globalThis2);
|
|
5334
5324
|
} else if (options.wrap && USE_NATIVE) {
|
|
5335
5325
|
resultProperty = wrapConstructor(sourceProperty);
|
|
5336
5326
|
} else if (PROTO && isCallable(sourceProperty)) {
|
|
@@ -5454,7 +5444,8 @@
|
|
|
5454
5444
|
var toIntegerOrInfinity = require_to_integer_or_infinity();
|
|
5455
5445
|
var min = Math.min;
|
|
5456
5446
|
module.exports = function(argument) {
|
|
5457
|
-
|
|
5447
|
+
var len = toIntegerOrInfinity(argument);
|
|
5448
|
+
return len > 0 ? min(len, 9007199254740991) : 0;
|
|
5458
5449
|
};
|
|
5459
5450
|
});
|
|
5460
5451
|
var require_length_of_array_like = __commonJS(function(exports, module) {
|
|
@@ -5473,6 +5464,9 @@
|
|
|
5473
5464
|
return function($this, el, fromIndex) {
|
|
5474
5465
|
var O = toIndexedObject($this);
|
|
5475
5466
|
var length = lengthOfArrayLike(O);
|
|
5467
|
+
if (length === 0) {
|
|
5468
|
+
return !IS_INCLUDES && -1;
|
|
5469
|
+
}
|
|
5476
5470
|
var index = toAbsoluteIndex(fromIndex, length);
|
|
5477
5471
|
var value;
|
|
5478
5472
|
if (IS_INCLUDES && el !== el) {
|
|
@@ -5674,15 +5668,15 @@
|
|
|
5674
5668
|
});
|
|
5675
5669
|
var require_weak_map_basic_detection = __commonJS(function(exports, module) {
|
|
5676
5670
|
'use strict';
|
|
5677
|
-
var
|
|
5671
|
+
var globalThis2 = require_global_this2();
|
|
5678
5672
|
var isCallable = require_is_callable2();
|
|
5679
|
-
var WeakMap2 =
|
|
5673
|
+
var WeakMap2 = globalThis2.WeakMap;
|
|
5680
5674
|
module.exports = isCallable(WeakMap2) && /native code/.test(String(WeakMap2));
|
|
5681
5675
|
});
|
|
5682
5676
|
var require_internal_state = __commonJS(function(exports, module) {
|
|
5683
5677
|
'use strict';
|
|
5684
5678
|
var NATIVE_WEAK_MAP = require_weak_map_basic_detection();
|
|
5685
|
-
var
|
|
5679
|
+
var globalThis2 = require_global_this2();
|
|
5686
5680
|
var isObject = require_is_object2();
|
|
5687
5681
|
var createNonEnumerableProperty = require_create_non_enumerable_property();
|
|
5688
5682
|
var hasOwn2 = require_has_own_property();
|
|
@@ -5690,8 +5684,8 @@
|
|
|
5690
5684
|
var sharedKey = require_shared_key();
|
|
5691
5685
|
var hiddenKeys = require_hidden_keys();
|
|
5692
5686
|
var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
|
|
5693
|
-
var TypeError2 =
|
|
5694
|
-
var WeakMap2 =
|
|
5687
|
+
var TypeError2 = globalThis2.TypeError;
|
|
5688
|
+
var WeakMap2 = globalThis2.WeakMap;
|
|
5695
5689
|
var set2;
|
|
5696
5690
|
var get2;
|
|
5697
5691
|
var has;
|
|
@@ -5934,8 +5928,8 @@
|
|
|
5934
5928
|
var wellKnownSymbol = require_well_known_symbol();
|
|
5935
5929
|
var TO_STRING_TAG = wellKnownSymbol('toStringTag');
|
|
5936
5930
|
module.exports = function(it, TAG, STATIC, SET_METHOD) {
|
|
5937
|
-
|
|
5938
|
-
|
|
5931
|
+
var target = STATIC ? it : it && it.prototype;
|
|
5932
|
+
if (target) {
|
|
5939
5933
|
if (!hasOwn2(target, TO_STRING_TAG)) {
|
|
5940
5934
|
defineProperty(target, TO_STRING_TAG, {
|
|
5941
5935
|
configurable: true,
|
|
@@ -5982,13 +5976,20 @@
|
|
|
5982
5976
|
} catch (error) {}
|
|
5983
5977
|
};
|
|
5984
5978
|
});
|
|
5979
|
+
var require_is_possible_prototype = __commonJS(function(exports, module) {
|
|
5980
|
+
'use strict';
|
|
5981
|
+
var isObject = require_is_object2();
|
|
5982
|
+
module.exports = function(argument) {
|
|
5983
|
+
return isObject(argument) || argument === null;
|
|
5984
|
+
};
|
|
5985
|
+
});
|
|
5985
5986
|
var require_a_possible_prototype = __commonJS(function(exports, module) {
|
|
5986
5987
|
'use strict';
|
|
5987
|
-
var
|
|
5988
|
+
var isPossiblePrototype = require_is_possible_prototype();
|
|
5988
5989
|
var $String = String;
|
|
5989
5990
|
var $TypeError = TypeError;
|
|
5990
5991
|
module.exports = function(argument) {
|
|
5991
|
-
if (
|
|
5992
|
+
if (isPossiblePrototype(argument)) {
|
|
5992
5993
|
return argument;
|
|
5993
5994
|
}
|
|
5994
5995
|
throw new $TypeError('Can\'t set ' + $String(argument) + ' as a prototype');
|
|
@@ -5997,7 +5998,8 @@
|
|
|
5997
5998
|
var require_object_set_prototype_of = __commonJS(function(exports, module) {
|
|
5998
5999
|
'use strict';
|
|
5999
6000
|
var uncurryThisAccessor = require_function_uncurry_this_accessor();
|
|
6000
|
-
var
|
|
6001
|
+
var isObject = require_is_object2();
|
|
6002
|
+
var requireObjectCoercible = require_require_object_coercible();
|
|
6001
6003
|
var aPossiblePrototype = require_a_possible_prototype();
|
|
6002
6004
|
module.exports = Object.setPrototypeOf || ('__proto__' in {} ? function() {
|
|
6003
6005
|
var CORRECT_SETTER = false;
|
|
@@ -6009,8 +6011,11 @@
|
|
|
6009
6011
|
CORRECT_SETTER = test instanceof Array;
|
|
6010
6012
|
} catch (error) {}
|
|
6011
6013
|
return function setPrototypeOf(O, proto) {
|
|
6012
|
-
|
|
6014
|
+
requireObjectCoercible(O);
|
|
6013
6015
|
aPossiblePrototype(proto);
|
|
6016
|
+
if (!isObject(O)) {
|
|
6017
|
+
return O;
|
|
6018
|
+
}
|
|
6014
6019
|
if (CORRECT_SETTER) {
|
|
6015
6020
|
setter(O, proto);
|
|
6016
6021
|
} else {
|
|
@@ -6251,7 +6256,6 @@
|
|
|
6251
6256
|
var getBuiltIn = require_get_built_in();
|
|
6252
6257
|
var inspectSource = require_inspect_source();
|
|
6253
6258
|
var noop3 = function noop3() {};
|
|
6254
|
-
var empty = [];
|
|
6255
6259
|
var construct = getBuiltIn('Reflect', 'construct');
|
|
6256
6260
|
var constructorRegExp = /^\s*(?:class|function)\b/;
|
|
6257
6261
|
var exec = uncurryThis(constructorRegExp.exec);
|
|
@@ -6261,7 +6265,7 @@
|
|
|
6261
6265
|
return false;
|
|
6262
6266
|
}
|
|
6263
6267
|
try {
|
|
6264
|
-
construct(noop3,
|
|
6268
|
+
construct(noop3, [], argument);
|
|
6265
6269
|
return true;
|
|
6266
6270
|
} catch (error) {
|
|
6267
6271
|
return false;
|
|
@@ -6293,15 +6297,14 @@
|
|
|
6293
6297
|
});
|
|
6294
6298
|
var require_create_property = __commonJS(function(exports, module) {
|
|
6295
6299
|
'use strict';
|
|
6296
|
-
var
|
|
6300
|
+
var DESCRIPTORS = require_descriptors();
|
|
6297
6301
|
var definePropertyModule = require_object_define_property();
|
|
6298
6302
|
var createPropertyDescriptor = require_create_property_descriptor();
|
|
6299
6303
|
module.exports = function(object, key, value) {
|
|
6300
|
-
|
|
6301
|
-
|
|
6302
|
-
definePropertyModule.f(object, propertyKey, createPropertyDescriptor(0, value));
|
|
6304
|
+
if (DESCRIPTORS) {
|
|
6305
|
+
definePropertyModule.f(object, key, createPropertyDescriptor(0, value));
|
|
6303
6306
|
} else {
|
|
6304
|
-
object[
|
|
6307
|
+
object[key] = value;
|
|
6305
6308
|
}
|
|
6306
6309
|
};
|
|
6307
6310
|
});
|
|
@@ -6361,9 +6364,9 @@
|
|
|
6361
6364
|
var index = 0;
|
|
6362
6365
|
var length, result, step, iterator, next, value;
|
|
6363
6366
|
if (iteratorMethod && !(this === $Array && isArrayIteratorMethod(iteratorMethod))) {
|
|
6367
|
+
result = IS_CONSTRUCTOR ? new this() : [];
|
|
6364
6368
|
iterator = getIterator(O, iteratorMethod);
|
|
6365
6369
|
next = iterator.next;
|
|
6366
|
-
result = IS_CONSTRUCTOR ? new this() : [];
|
|
6367
6370
|
for (;!(step = call(next, iterator)).done; index++) {
|
|
6368
6371
|
value = mapping ? callWithSafeIterationClosing(iterator, mapfn, [ step.value, index ], true) : step.value;
|
|
6369
6372
|
createProperty(result, index, value);
|
|
@@ -18591,10 +18594,10 @@
|
|
|
18591
18594
|
if (!win.navigator || _typeof(win.navigator) !== 'object') {
|
|
18592
18595
|
return {};
|
|
18593
18596
|
}
|
|
18594
|
-
var
|
|
18597
|
+
var navigator = win.navigator, innerHeight = win.innerHeight, innerWidth = win.innerWidth;
|
|
18595
18598
|
var _ref62 = getOrientation(win) || {}, angle = _ref62.angle, type2 = _ref62.type;
|
|
18596
18599
|
return {
|
|
18597
|
-
userAgent:
|
|
18600
|
+
userAgent: navigator.userAgent,
|
|
18598
18601
|
windowWidth: innerWidth,
|
|
18599
18602
|
windowHeight: innerHeight,
|
|
18600
18603
|
orientationAngle: angle,
|
|
@@ -19211,62 +19214,105 @@
|
|
|
19211
19214
|
return window.performance.now();
|
|
19212
19215
|
}
|
|
19213
19216
|
}
|
|
19214
|
-
var
|
|
19215
|
-
var
|
|
19217
|
+
var axeStartTime = now();
|
|
19218
|
+
var axeStarted = false;
|
|
19216
19219
|
return {
|
|
19217
19220
|
start: function start() {
|
|
19221
|
+
this.reset();
|
|
19222
|
+
axeStarted = true;
|
|
19218
19223
|
this.mark('mark_axe_start');
|
|
19219
19224
|
},
|
|
19220
19225
|
end: function end() {
|
|
19221
19226
|
this.mark('mark_axe_end');
|
|
19222
|
-
this.measure('axe', 'mark_axe_start', 'mark_axe_end');
|
|
19227
|
+
this.measure('axe', 'mark_axe_start', 'mark_axe_end', true);
|
|
19223
19228
|
this.logMeasures('axe');
|
|
19229
|
+
this.clearMark('mark_axe_start', 'mark_axe_end');
|
|
19230
|
+
axeStarted = false;
|
|
19224
19231
|
},
|
|
19225
19232
|
auditStart: function auditStart() {
|
|
19233
|
+
if (!axeStarted) {
|
|
19234
|
+
this.reset();
|
|
19235
|
+
}
|
|
19226
19236
|
this.mark('mark_audit_start');
|
|
19227
19237
|
},
|
|
19228
19238
|
auditEnd: function auditEnd() {
|
|
19229
19239
|
this.mark('mark_audit_end');
|
|
19230
|
-
this.measure('audit_start_to_end', 'mark_audit_start', 'mark_audit_end');
|
|
19240
|
+
this.measure('audit_start_to_end', 'mark_audit_start', 'mark_audit_end', true);
|
|
19231
19241
|
this.logMeasures();
|
|
19242
|
+
this.clearMark('mark_audit_start', 'mark_audit_end');
|
|
19232
19243
|
},
|
|
19233
19244
|
mark: function mark(markName) {
|
|
19234
|
-
|
|
19245
|
+
var _window$performance;
|
|
19246
|
+
if ((_window$performance = window.performance) !== null && _window$performance !== void 0 && _window$performance.mark) {
|
|
19235
19247
|
window.performance.mark(markName);
|
|
19236
19248
|
}
|
|
19237
19249
|
},
|
|
19238
19250
|
measure: function measure(measureName, startMark, endMark) {
|
|
19239
|
-
|
|
19251
|
+
var _window$performance2;
|
|
19252
|
+
var keepMarks = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
|
|
19253
|
+
if (!((_window$performance2 = window.performance) !== null && _window$performance2 !== void 0 && _window$performance2.measure)) {
|
|
19254
|
+
return;
|
|
19255
|
+
}
|
|
19256
|
+
try {
|
|
19240
19257
|
window.performance.measure(measureName, startMark, endMark);
|
|
19258
|
+
} catch (e) {
|
|
19259
|
+
this._log(e);
|
|
19260
|
+
}
|
|
19261
|
+
if (!keepMarks) {
|
|
19262
|
+
this.clearMark(startMark, endMark);
|
|
19241
19263
|
}
|
|
19242
19264
|
},
|
|
19243
19265
|
logMeasures: function logMeasures(measureName) {
|
|
19244
|
-
|
|
19245
|
-
|
|
19266
|
+
var _this6 = this, _window$performance3, _window$performance4;
|
|
19267
|
+
var last2 = function last2(arr) {
|
|
19268
|
+
return Array.isArray(arr) ? arr[arr.length - 1] : arr;
|
|
19269
|
+
};
|
|
19270
|
+
var logMeasure = function logMeasure(req) {
|
|
19271
|
+
_this6._log('Measure ' + req.name + ' took ' + req.duration + 'ms');
|
|
19272
|
+
};
|
|
19273
|
+
if (!((_window$performance3 = window.performance) !== null && _window$performance3 !== void 0 && _window$performance3.getEntriesByType) || !((_window$performance4 = window.performance) !== null && _window$performance4 !== void 0 && _window$performance4.getEntriesByName)) {
|
|
19274
|
+
return;
|
|
19246
19275
|
}
|
|
19247
|
-
|
|
19248
|
-
|
|
19249
|
-
|
|
19250
|
-
|
|
19251
|
-
|
|
19252
|
-
|
|
19253
|
-
|
|
19254
|
-
|
|
19255
|
-
|
|
19256
|
-
|
|
19257
|
-
|
|
19276
|
+
var axeStart = last2(window.performance.getEntriesByName('mark_axe_start')) || last2(window.performance.getEntriesByName('mark_audit_start'));
|
|
19277
|
+
if (!axeStart) {
|
|
19278
|
+
this._log('Axe must be started before using performanceTimer');
|
|
19279
|
+
return;
|
|
19280
|
+
}
|
|
19281
|
+
var measures = window.performance.getEntriesByType('measure').filter(function(measure) {
|
|
19282
|
+
return measure.startTime >= axeStart.startTime;
|
|
19283
|
+
});
|
|
19284
|
+
for (var _i26 = 0; _i26 < measures.length; ++_i26) {
|
|
19285
|
+
var req = measures[_i26];
|
|
19286
|
+
if (req.name === measureName) {
|
|
19287
|
+
logMeasure(req);
|
|
19288
|
+
return;
|
|
19289
|
+
} else if (!measureName) {
|
|
19258
19290
|
logMeasure(req);
|
|
19259
19291
|
}
|
|
19260
19292
|
}
|
|
19261
19293
|
},
|
|
19262
19294
|
timeElapsed: function timeElapsed() {
|
|
19263
|
-
|
|
19295
|
+
var currentTime = now();
|
|
19296
|
+
return currentTime - axeStartTime;
|
|
19264
19297
|
},
|
|
19265
|
-
|
|
19266
|
-
|
|
19267
|
-
|
|
19298
|
+
clearMark: function clearMark() {
|
|
19299
|
+
var _window$performance5;
|
|
19300
|
+
if (!((_window$performance5 = window.performance) !== null && _window$performance5 !== void 0 && _window$performance5.clearMarks)) {
|
|
19301
|
+
return;
|
|
19302
|
+
}
|
|
19303
|
+
for (var _len7 = arguments.length, markNames = new Array(_len7), _key8 = 0; _key8 < _len7; _key8++) {
|
|
19304
|
+
markNames[_key8] = arguments[_key8];
|
|
19268
19305
|
}
|
|
19269
|
-
|
|
19306
|
+
for (var _i27 = 0, _markNames = markNames; _i27 < _markNames.length; _i27++) {
|
|
19307
|
+
var markName = _markNames[_i27];
|
|
19308
|
+
window.performance.clearMarks(markName);
|
|
19309
|
+
}
|
|
19310
|
+
},
|
|
19311
|
+
reset: function reset() {
|
|
19312
|
+
axeStartTime = now();
|
|
19313
|
+
},
|
|
19314
|
+
_log: function _log(message) {
|
|
19315
|
+
log_default(message);
|
|
19270
19316
|
}
|
|
19271
19317
|
};
|
|
19272
19318
|
}();
|
|
@@ -19344,9 +19390,9 @@
|
|
|
19344
19390
|
var childAny = null;
|
|
19345
19391
|
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);
|
|
19346
19392
|
var added = false;
|
|
19347
|
-
for (var
|
|
19393
|
+
for (var _i28 = 0; _i28 < combinedLength; _i28++) {
|
|
19348
19394
|
var _currentLevel$anyLeve2, _currentLevel$anyLeve3, _currentLevel$anyLeve4;
|
|
19349
|
-
var exp =
|
|
19395
|
+
var exp = _i28 < (((_currentLevel$anyLeve2 = currentLevel.anyLevel) === null || _currentLevel$anyLeve2 === void 0 ? void 0 : _currentLevel$anyLeve2.length) || 0) ? currentLevel.anyLevel[_i28] : currentLevel.thisLevel[_i28 - (((_currentLevel$anyLeve3 = currentLevel.anyLevel) === null || _currentLevel$anyLeve3 === void 0 ? void 0 : _currentLevel$anyLeve3.length) || 0)];
|
|
19350
19396
|
if ((!exp[0].id || vNode.shadowId === currentLevel.parentShadowId) && _matchesExpression(vNode, exp[0])) {
|
|
19351
19397
|
if (exp.length === 1) {
|
|
19352
19398
|
if (!added && (!filter || filter(vNode))) {
|
|
@@ -19779,8 +19825,8 @@
|
|
|
19779
19825
|
}
|
|
19780
19826
|
var outerIncludes = getOuterIncludes(context.include);
|
|
19781
19827
|
var isInContext = getContextFilter(context);
|
|
19782
|
-
for (var
|
|
19783
|
-
candidate = outerIncludes[
|
|
19828
|
+
for (var _i29 = 0; _i29 < outerIncludes.length; _i29++) {
|
|
19829
|
+
candidate = outerIncludes[_i29];
|
|
19784
19830
|
var nodes = query_selector_all_filter_default(candidate, selector, isInContext);
|
|
19785
19831
|
result = mergeArrayUniques(result, nodes);
|
|
19786
19832
|
}
|
|
@@ -19817,9 +19863,9 @@
|
|
|
19817
19863
|
arr1 = arr2;
|
|
19818
19864
|
arr2 = temp;
|
|
19819
19865
|
}
|
|
19820
|
-
for (var
|
|
19821
|
-
if (!arr1.includes(arr2[
|
|
19822
|
-
arr1.push(arr2[
|
|
19866
|
+
for (var _i30 = 0, l = arr2.length; _i30 < l; _i30++) {
|
|
19867
|
+
if (!arr1.includes(arr2[_i30])) {
|
|
19868
|
+
arr1.push(arr2[_i30]);
|
|
19823
19869
|
}
|
|
19824
19870
|
}
|
|
19825
19871
|
return arr1;
|
|
@@ -19894,8 +19940,8 @@
|
|
|
19894
19940
|
while (lang.length < 3) {
|
|
19895
19941
|
lang += '`';
|
|
19896
19942
|
}
|
|
19897
|
-
for (var
|
|
19898
|
-
var index = lang.charCodeAt(
|
|
19943
|
+
for (var _i31 = 0; _i31 <= lang.length - 1; _i31++) {
|
|
19944
|
+
var index = lang.charCodeAt(_i31) - 96;
|
|
19899
19945
|
array = array[index];
|
|
19900
19946
|
if (!array) {
|
|
19901
19947
|
return false;
|
|
@@ -19921,12 +19967,12 @@
|
|
|
19921
19967
|
var valid_langs_default = isValidLang;
|
|
19922
19968
|
var SerialVirtualNode = function(_abstract_virtual_nod2) {
|
|
19923
19969
|
function SerialVirtualNode(serialNode) {
|
|
19924
|
-
var
|
|
19970
|
+
var _this7;
|
|
19925
19971
|
_classCallCheck(this, SerialVirtualNode);
|
|
19926
|
-
|
|
19927
|
-
|
|
19928
|
-
|
|
19929
|
-
return
|
|
19972
|
+
_this7 = _callSuper(this, SerialVirtualNode);
|
|
19973
|
+
_this7._props = normaliseProps(serialNode);
|
|
19974
|
+
_this7._attrs = normaliseAttrs(serialNode);
|
|
19975
|
+
return _this7;
|
|
19930
19976
|
}
|
|
19931
19977
|
_inherits(SerialVirtualNode, _abstract_virtual_nod2);
|
|
19932
19978
|
return _createClass(SerialVirtualNode, [ {
|
|
@@ -20587,8 +20633,8 @@
|
|
|
20587
20633
|
idRefs.get(_id3).push(node);
|
|
20588
20634
|
}
|
|
20589
20635
|
}
|
|
20590
|
-
for (var
|
|
20591
|
-
var attr = refAttrs[
|
|
20636
|
+
for (var _i32 = 0; _i32 < refAttrs.length; ++_i32) {
|
|
20637
|
+
var attr = refAttrs[_i32];
|
|
20592
20638
|
var attrValue = sanitize_default(node.getAttribute(attr) || '');
|
|
20593
20639
|
if (!attrValue) {
|
|
20594
20640
|
continue;
|
|
@@ -20610,9 +20656,9 @@
|
|
|
20610
20656
|
}
|
|
20611
20657
|
}
|
|
20612
20658
|
}
|
|
20613
|
-
for (var
|
|
20614
|
-
if (node.childNodes[
|
|
20615
|
-
cacheIdRefs(node.childNodes[
|
|
20659
|
+
for (var _i33 = 0; _i33 < node.childNodes.length; _i33++) {
|
|
20660
|
+
if (node.childNodes[_i33].nodeType === 1) {
|
|
20661
|
+
cacheIdRefs(node.childNodes[_i33], idRefs, refAttrs);
|
|
20616
20662
|
}
|
|
20617
20663
|
}
|
|
20618
20664
|
}
|
|
@@ -23233,16 +23279,16 @@
|
|
|
23233
23279
|
var outerText = elm.textContent.trim();
|
|
23234
23280
|
var innerText = outerText;
|
|
23235
23281
|
while (innerText === outerText && nextNode !== void 0) {
|
|
23236
|
-
var
|
|
23282
|
+
var _i34 = -1;
|
|
23237
23283
|
elm = nextNode;
|
|
23238
23284
|
if (elm.children.length === 0) {
|
|
23239
23285
|
return elm;
|
|
23240
23286
|
}
|
|
23241
23287
|
do {
|
|
23242
|
-
|
|
23243
|
-
innerText = elm.children[
|
|
23244
|
-
} while (innerText === '' &&
|
|
23245
|
-
nextNode = elm.children[
|
|
23288
|
+
_i34++;
|
|
23289
|
+
innerText = elm.children[_i34].textContent.trim();
|
|
23290
|
+
} while (innerText === '' && _i34 + 1 < elm.children.length);
|
|
23291
|
+
nextNode = elm.children[_i34];
|
|
23246
23292
|
}
|
|
23247
23293
|
return elm;
|
|
23248
23294
|
}
|
|
@@ -23650,8 +23696,8 @@
|
|
|
23650
23696
|
if (a2.length !== b2.length) {
|
|
23651
23697
|
return false;
|
|
23652
23698
|
}
|
|
23653
|
-
for (var
|
|
23654
|
-
if (a2[
|
|
23699
|
+
for (var _i35 = 0; _i35 < a2.length; ++_i35) {
|
|
23700
|
+
if (a2[_i35] !== b2[_i35]) {
|
|
23655
23701
|
return false;
|
|
23656
23702
|
}
|
|
23657
23703
|
}
|
|
@@ -23985,8 +24031,8 @@
|
|
|
23985
24031
|
color: bgColors.reduce(_flattenShadowColors)
|
|
23986
24032
|
} ];
|
|
23987
24033
|
}
|
|
23988
|
-
for (var
|
|
23989
|
-
var bgElm = elmStack[
|
|
24034
|
+
for (var _i36 = 0; _i36 < elmStack.length; _i36++) {
|
|
24035
|
+
var bgElm = elmStack[_i36];
|
|
23990
24036
|
var bgElmStyle = window.getComputedStyle(bgElm);
|
|
23991
24037
|
if (element_has_image_default(bgElm, bgElmStyle)) {
|
|
23992
24038
|
bgElms.push(bgElm);
|
|
@@ -24085,8 +24131,8 @@
|
|
|
24085
24131
|
});
|
|
24086
24132
|
} ];
|
|
24087
24133
|
var fgColors = [];
|
|
24088
|
-
for (var
|
|
24089
|
-
var colorFn = _colorStack[
|
|
24134
|
+
for (var _i37 = 0, _colorStack = colorStack; _i37 < _colorStack.length; _i37++) {
|
|
24135
|
+
var colorFn = _colorStack[_i37];
|
|
24090
24136
|
var _color4 = colorFn();
|
|
24091
24137
|
if (!_color4) {
|
|
24092
24138
|
continue;
|
|
@@ -24722,7 +24768,7 @@
|
|
|
24722
24768
|
var relatedElements = [];
|
|
24723
24769
|
var rulesGroupByDocumentFragment = groupCssomByDocument(cssom);
|
|
24724
24770
|
var _loop9 = function _loop9() {
|
|
24725
|
-
var key = _Object$keys3[
|
|
24771
|
+
var key = _Object$keys3[_i38];
|
|
24726
24772
|
var _rulesGroupByDocument = rulesGroupByDocumentFragment[key], root = _rulesGroupByDocument.root, rules = _rulesGroupByDocument.rules;
|
|
24727
24773
|
var orientationRules = rules.filter(isMediaRuleWithOrientation);
|
|
24728
24774
|
if (!orientationRules.length) {
|
|
@@ -24740,7 +24786,7 @@
|
|
|
24740
24786
|
});
|
|
24741
24787
|
});
|
|
24742
24788
|
};
|
|
24743
|
-
for (var
|
|
24789
|
+
for (var _i38 = 0, _Object$keys3 = Object.keys(rulesGroupByDocumentFragment); _i38 < _Object$keys3.length; _i38++) {
|
|
24744
24790
|
if (_loop9()) {
|
|
24745
24791
|
continue;
|
|
24746
24792
|
}
|
|
@@ -24974,8 +25020,8 @@
|
|
|
24974
25020
|
return false;
|
|
24975
25021
|
}
|
|
24976
25022
|
var hasDt = false, hasDd = false, nodeName2;
|
|
24977
|
-
for (var
|
|
24978
|
-
nodeName2 = children[
|
|
25023
|
+
for (var _i39 = 0; _i39 < children.length; _i39++) {
|
|
25024
|
+
nodeName2 = children[_i39].props.nodeName.toUpperCase();
|
|
24979
25025
|
if (nodeName2 === 'DT') {
|
|
24980
25026
|
hasDt = true;
|
|
24981
25027
|
}
|
|
@@ -25394,7 +25440,7 @@
|
|
|
25394
25440
|
}
|
|
25395
25441
|
var help_same_as_label_evaluate_default = helpSameAsLabelEvaluate;
|
|
25396
25442
|
function explicitEvaluate(node, options, virtualNode) {
|
|
25397
|
-
var
|
|
25443
|
+
var _this8 = this;
|
|
25398
25444
|
if (!virtualNode.attr('id')) {
|
|
25399
25445
|
return false;
|
|
25400
25446
|
}
|
|
@@ -25417,7 +25463,7 @@
|
|
|
25417
25463
|
inControlContext: true,
|
|
25418
25464
|
startNode: virtualNode
|
|
25419
25465
|
}));
|
|
25420
|
-
|
|
25466
|
+
_this8.data({
|
|
25421
25467
|
explicitLabel: explicitLabel
|
|
25422
25468
|
});
|
|
25423
25469
|
return !!explicitLabel;
|
|
@@ -25868,8 +25914,8 @@
|
|
|
25868
25914
|
return blockLike2.indexOf(display2) !== -1 || display2.substr(0, 6) === 'table-';
|
|
25869
25915
|
}
|
|
25870
25916
|
function hasPseudoContent(node) {
|
|
25871
|
-
for (var
|
|
25872
|
-
var pseudo = _arr3[
|
|
25917
|
+
for (var _i40 = 0, _arr3 = [ 'before', 'after' ]; _i40 < _arr3.length; _i40++) {
|
|
25918
|
+
var pseudo = _arr3[_i40];
|
|
25873
25919
|
var style = window.getComputedStyle(node, ':'.concat(pseudo));
|
|
25874
25920
|
var content = style.getPropertyValue('content');
|
|
25875
25921
|
if (content !== 'none') {
|
|
@@ -26461,8 +26507,8 @@
|
|
|
26461
26507
|
}
|
|
26462
26508
|
var owners = getAriaOwners(node);
|
|
26463
26509
|
if (owners) {
|
|
26464
|
-
for (var
|
|
26465
|
-
missingParents = getMissingContext(get_node_from_tree_default(owners[
|
|
26510
|
+
for (var _i41 = 0, l = owners.length; _i41 < l; _i41++) {
|
|
26511
|
+
missingParents = getMissingContext(get_node_from_tree_default(owners[_i41]), ownGroupRoles, missingParents, true);
|
|
26466
26512
|
if (!missingParents) {
|
|
26467
26513
|
return true;
|
|
26468
26514
|
}
|
|
@@ -27305,6 +27351,9 @@
|
|
|
27305
27351
|
if (!hasRealTextChildren(virtualNode)) {
|
|
27306
27352
|
return false;
|
|
27307
27353
|
}
|
|
27354
|
+
if (!parseFloat(virtualNode.getComputedStylePropertyValue('font-size'))) {
|
|
27355
|
+
return false;
|
|
27356
|
+
}
|
|
27308
27357
|
var range2 = document.createRange();
|
|
27309
27358
|
var childNodes = virtualNode.children;
|
|
27310
27359
|
for (var index = 0; index < childNodes.length; index++) {
|
|
@@ -27426,8 +27475,8 @@
|
|
|
27426
27475
|
var aria = /^aria-/;
|
|
27427
27476
|
var attrs = virtualNode.attrNames;
|
|
27428
27477
|
if (attrs.length) {
|
|
27429
|
-
for (var
|
|
27430
|
-
if (aria.test(attrs[
|
|
27478
|
+
for (var _i42 = 0, l = attrs.length; _i42 < l; _i42++) {
|
|
27479
|
+
if (aria.test(attrs[_i42])) {
|
|
27431
27480
|
return true;
|
|
27432
27481
|
}
|
|
27433
27482
|
}
|
|
@@ -27686,7 +27735,7 @@
|
|
|
27686
27735
|
return checkResult;
|
|
27687
27736
|
};
|
|
27688
27737
|
Check.prototype.configure = function configure2(spec) {
|
|
27689
|
-
var
|
|
27738
|
+
var _this9 = this;
|
|
27690
27739
|
if (!spec.evaluate || metadata_function_map_default[spec.evaluate]) {
|
|
27691
27740
|
this._internalCheck = true;
|
|
27692
27741
|
}
|
|
@@ -27703,7 +27752,7 @@
|
|
|
27703
27752
|
[ 'evaluate', 'after' ].filter(function(prop) {
|
|
27704
27753
|
return spec.hasOwnProperty(prop);
|
|
27705
27754
|
}).forEach(function(prop) {
|
|
27706
|
-
return
|
|
27755
|
+
return _this9[prop] = createExecutionContext(spec[prop]);
|
|
27707
27756
|
});
|
|
27708
27757
|
};
|
|
27709
27758
|
Check.prototype.getOptions = function getOptions(options) {
|
|
@@ -27812,7 +27861,7 @@
|
|
|
27812
27861
|
};
|
|
27813
27862
|
};
|
|
27814
27863
|
Rule.prototype.run = function run2(context) {
|
|
27815
|
-
var
|
|
27864
|
+
var _this0 = this;
|
|
27816
27865
|
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
27817
27866
|
var resolve = arguments.length > 2 ? arguments[2] : undefined;
|
|
27818
27867
|
var reject = arguments.length > 3 ? arguments[3] : undefined;
|
|
@@ -27839,7 +27888,7 @@
|
|
|
27839
27888
|
var checkQueue = queue_default();
|
|
27840
27889
|
[ 'any', 'all', 'none' ].forEach(function(type2) {
|
|
27841
27890
|
checkQueue.defer(function(res, rej) {
|
|
27842
|
-
|
|
27891
|
+
_this0.runChecks(type2, node, options, context, res, rej);
|
|
27843
27892
|
});
|
|
27844
27893
|
});
|
|
27845
27894
|
checkQueue.then(function(results) {
|
|
@@ -27847,7 +27896,7 @@
|
|
|
27847
27896
|
if (result) {
|
|
27848
27897
|
result.node = new dq_element_default(node);
|
|
27849
27898
|
ruleResult.nodes.push(result);
|
|
27850
|
-
if (
|
|
27899
|
+
if (_this0.reviewOnFail) {
|
|
27851
27900
|
[ 'any', 'all' ].forEach(function(type2) {
|
|
27852
27901
|
result[type2].forEach(function(checkResult) {
|
|
27853
27902
|
if (checkResult.result === false) {
|
|
@@ -27870,20 +27919,20 @@
|
|
|
27870
27919
|
});
|
|
27871
27920
|
q.then(function() {
|
|
27872
27921
|
if (options.performanceTimer) {
|
|
27873
|
-
|
|
27922
|
+
_this0._logRulePerformance();
|
|
27874
27923
|
}
|
|
27875
27924
|
setTimeout(function() {
|
|
27876
27925
|
resolve(ruleResult);
|
|
27877
27926
|
}, 0);
|
|
27878
27927
|
})['catch'](function(error) {
|
|
27879
27928
|
if (options.performanceTimer) {
|
|
27880
|
-
|
|
27929
|
+
_this0._logRulePerformance();
|
|
27881
27930
|
}
|
|
27882
27931
|
reject(error);
|
|
27883
27932
|
});
|
|
27884
27933
|
};
|
|
27885
27934
|
Rule.prototype.runSync = function runSync2(context) {
|
|
27886
|
-
var
|
|
27935
|
+
var _this1 = this;
|
|
27887
27936
|
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
27888
27937
|
if (options.performanceTimer) {
|
|
27889
27938
|
this._trackPerformance();
|
|
@@ -27904,13 +27953,13 @@
|
|
|
27904
27953
|
nodes.forEach(function(node) {
|
|
27905
27954
|
var results = [];
|
|
27906
27955
|
[ 'any', 'all', 'none' ].forEach(function(type2) {
|
|
27907
|
-
results.push(
|
|
27956
|
+
results.push(_this1.runChecksSync(type2, node, options, context));
|
|
27908
27957
|
});
|
|
27909
27958
|
var result = getResult(results);
|
|
27910
27959
|
if (result) {
|
|
27911
27960
|
result.node = node.actualNode ? new dq_element_default(node) : null;
|
|
27912
27961
|
ruleResult.nodes.push(result);
|
|
27913
|
-
if (
|
|
27962
|
+
if (_this1.reviewOnFail) {
|
|
27914
27963
|
[ 'any', 'all' ].forEach(function(type2) {
|
|
27915
27964
|
result[type2].forEach(function(checkResult) {
|
|
27916
27965
|
if (checkResult.result === false) {
|
|
@@ -27938,7 +27987,7 @@
|
|
|
27938
27987
|
this._markChecksEnd = 'mark_runchecks_end_' + this.id;
|
|
27939
27988
|
};
|
|
27940
27989
|
Rule.prototype._logGatherPerformance = function _logGatherPerformance(nodes) {
|
|
27941
|
-
log_default('gather (
|
|
27990
|
+
log_default('gather for '.concat(this.id, ' (').concat(nodes.length, ' nodes): ').concat(performance_timer_default.timeElapsed(), 'ms'));
|
|
27942
27991
|
performance_timer_default.mark(this._markChecksStart);
|
|
27943
27992
|
};
|
|
27944
27993
|
Rule.prototype._logRulePerformance = function _logRulePerformance() {
|
|
@@ -27967,7 +28016,7 @@
|
|
|
27967
28016
|
}
|
|
27968
28017
|
}
|
|
27969
28018
|
Rule.prototype.gatherAndMatchNodes = function gatherAndMatchNodes(context, options) {
|
|
27970
|
-
var
|
|
28019
|
+
var _this10 = this;
|
|
27971
28020
|
var markMatchesStart = 'mark_matches_start_' + this.id;
|
|
27972
28021
|
var markMatchesEnd = 'mark_matches_end_' + this.id;
|
|
27973
28022
|
var nodes = this.gather(context, options);
|
|
@@ -27975,7 +28024,7 @@
|
|
|
27975
28024
|
performance_timer_default.mark(markMatchesStart);
|
|
27976
28025
|
}
|
|
27977
28026
|
nodes = nodes.filter(function(node) {
|
|
27978
|
-
return
|
|
28027
|
+
return _this10.matches(node.actualNode, node, context);
|
|
27979
28028
|
});
|
|
27980
28029
|
if (options.performanceTimer) {
|
|
27981
28030
|
performance_timer_default.mark(markMatchesEnd);
|
|
@@ -28030,17 +28079,17 @@
|
|
|
28030
28079
|
return nodes;
|
|
28031
28080
|
}
|
|
28032
28081
|
Rule.prototype.after = function after(result, options) {
|
|
28033
|
-
var
|
|
28082
|
+
var _this11 = this;
|
|
28034
28083
|
var afterChecks = findAfterChecks(this);
|
|
28035
28084
|
var ruleID = this.id;
|
|
28036
28085
|
afterChecks.forEach(function(check) {
|
|
28037
28086
|
var beforeResults = findCheckResults(result.nodes, check.id);
|
|
28038
28087
|
var checkOption = get_check_option_default(check, ruleID, options);
|
|
28039
28088
|
var afterResults = check.after(beforeResults, checkOption.options);
|
|
28040
|
-
if (
|
|
28089
|
+
if (_this11.reviewOnFail) {
|
|
28041
28090
|
afterResults.forEach(function(checkResult) {
|
|
28042
|
-
var changeAnyAllResults = (
|
|
28043
|
-
var changeNoneResult =
|
|
28091
|
+
var changeAnyAllResults = (_this11.any.includes(checkResult.id) || _this11.all.includes(checkResult.id)) && checkResult.result === false;
|
|
28092
|
+
var changeNoneResult = _this11.none.includes(checkResult.id) && checkResult.result === true;
|
|
28044
28093
|
if (changeAnyAllResults || changeNoneResult) {
|
|
28045
28094
|
checkResult.result = void 0;
|
|
28046
28095
|
}
|
|
@@ -28120,8 +28169,8 @@
|
|
|
28120
28169
|
lang: this.lang
|
|
28121
28170
|
};
|
|
28122
28171
|
var checkIDs = Object.keys(this.data.checks);
|
|
28123
|
-
for (var
|
|
28124
|
-
var _id6 = checkIDs[
|
|
28172
|
+
for (var _i43 = 0; _i43 < checkIDs.length; _i43++) {
|
|
28173
|
+
var _id6 = checkIDs[_i43];
|
|
28125
28174
|
var check = this.data.checks[_id6];
|
|
28126
28175
|
var _check$messages = check.messages, pass = _check$messages.pass, fail = _check$messages.fail, incomplete = _check$messages.incomplete;
|
|
28127
28176
|
locale.checks[_id6] = {
|
|
@@ -28131,8 +28180,8 @@
|
|
|
28131
28180
|
};
|
|
28132
28181
|
}
|
|
28133
28182
|
var ruleIDs = Object.keys(this.data.rules);
|
|
28134
|
-
for (var
|
|
28135
|
-
var _id7 = ruleIDs[
|
|
28183
|
+
for (var _i44 = 0; _i44 < ruleIDs.length; _i44++) {
|
|
28184
|
+
var _id7 = ruleIDs[_i44];
|
|
28136
28185
|
var rule = this.data.rules[_id7];
|
|
28137
28186
|
var description = rule.description, help = rule.help;
|
|
28138
28187
|
locale.rules[_id7] = {
|
|
@@ -28141,8 +28190,8 @@
|
|
|
28141
28190
|
};
|
|
28142
28191
|
}
|
|
28143
28192
|
var failureSummaries = Object.keys(this.data.failureSummaries);
|
|
28144
|
-
for (var
|
|
28145
|
-
var type2 = failureSummaries[
|
|
28193
|
+
for (var _i45 = 0; _i45 < failureSummaries.length; _i45++) {
|
|
28194
|
+
var type2 = failureSummaries[_i45];
|
|
28146
28195
|
var failureSummary2 = this.data.failureSummaries[type2];
|
|
28147
28196
|
var failureMessage = failureSummary2.failureMessage;
|
|
28148
28197
|
locale.failureSummaries[type2] = {
|
|
@@ -28165,8 +28214,8 @@
|
|
|
28165
28214
|
key: '_applyCheckLocale',
|
|
28166
28215
|
value: function _applyCheckLocale(checks) {
|
|
28167
28216
|
var keys = Object.keys(checks);
|
|
28168
|
-
for (var
|
|
28169
|
-
var _id8 = keys[
|
|
28217
|
+
for (var _i46 = 0; _i46 < keys.length; _i46++) {
|
|
28218
|
+
var _id8 = keys[_i46];
|
|
28170
28219
|
if (!this.data.checks[_id8]) {
|
|
28171
28220
|
throw new Error('Locale provided for unknown check: "'.concat(_id8, '"'));
|
|
28172
28221
|
}
|
|
@@ -28177,8 +28226,8 @@
|
|
|
28177
28226
|
key: '_applyRuleLocale',
|
|
28178
28227
|
value: function _applyRuleLocale(rules) {
|
|
28179
28228
|
var keys = Object.keys(rules);
|
|
28180
|
-
for (var
|
|
28181
|
-
var _id9 = keys[
|
|
28229
|
+
for (var _i47 = 0; _i47 < keys.length; _i47++) {
|
|
28230
|
+
var _id9 = keys[_i47];
|
|
28182
28231
|
if (!this.data.rules[_id9]) {
|
|
28183
28232
|
throw new Error('Locale provided for unknown rule: "'.concat(_id9, '"'));
|
|
28184
28233
|
}
|
|
@@ -28189,12 +28238,12 @@
|
|
|
28189
28238
|
key: '_applyFailureSummaries',
|
|
28190
28239
|
value: function _applyFailureSummaries(messages) {
|
|
28191
28240
|
var keys = Object.keys(messages);
|
|
28192
|
-
for (var
|
|
28193
|
-
var
|
|
28194
|
-
if (!this.data.failureSummaries[
|
|
28195
|
-
throw new Error('Locale provided for unknown failureMessage: "'.concat(
|
|
28241
|
+
for (var _i48 = 0; _i48 < keys.length; _i48++) {
|
|
28242
|
+
var _key9 = keys[_i48];
|
|
28243
|
+
if (!this.data.failureSummaries[_key9]) {
|
|
28244
|
+
throw new Error('Locale provided for unknown failureMessage: "'.concat(_key9, '"'));
|
|
28196
28245
|
}
|
|
28197
|
-
this.data.failureSummaries[
|
|
28246
|
+
this.data.failureSummaries[_key9] = mergeFailureMessage(this.data.failureSummaries[_key9], messages[_key9]);
|
|
28198
28247
|
}
|
|
28199
28248
|
}
|
|
28200
28249
|
}, {
|
|
@@ -28476,16 +28525,16 @@
|
|
|
28476
28525
|
}, {
|
|
28477
28526
|
key: '_constructHelpUrls',
|
|
28478
28527
|
value: function _constructHelpUrls() {
|
|
28479
|
-
var
|
|
28528
|
+
var _this12 = this;
|
|
28480
28529
|
var previous = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
|
|
28481
28530
|
var version = (axe.version.match(/^[1-9][0-9]*\.[0-9]+/) || [ 'x.y' ])[0];
|
|
28482
28531
|
this.rules.forEach(function(rule) {
|
|
28483
|
-
if (!
|
|
28484
|
-
|
|
28532
|
+
if (!_this12.data.rules[rule.id]) {
|
|
28533
|
+
_this12.data.rules[rule.id] = {};
|
|
28485
28534
|
}
|
|
28486
|
-
var metaData =
|
|
28535
|
+
var metaData = _this12.data.rules[rule.id];
|
|
28487
28536
|
if (typeof metaData.helpUrl !== 'string' || previous && metaData.helpUrl === getHelpUrl(previous, rule.id, version)) {
|
|
28488
|
-
metaData.helpUrl = getHelpUrl(
|
|
28537
|
+
metaData.helpUrl = getHelpUrl(_this12, rule.id, version);
|
|
28489
28538
|
}
|
|
28490
28539
|
});
|
|
28491
28540
|
}
|
|
@@ -28875,8 +28924,8 @@
|
|
|
28875
28924
|
}
|
|
28876
28925
|
var noop2 = function noop2() {};
|
|
28877
28926
|
function run4() {
|
|
28878
|
-
for (var
|
|
28879
|
-
args[
|
|
28927
|
+
for (var _len8 = arguments.length, args = new Array(_len8), _key0 = 0; _key0 < _len8; _key0++) {
|
|
28928
|
+
args[_key0] = arguments[_key0];
|
|
28880
28929
|
}
|
|
28881
28930
|
setupGlobals(args[0]);
|
|
28882
28931
|
var _normalizeRunParams = normalizeRunParams(args), context = _normalizeRunParams.context, options = _normalizeRunParams.options, _normalizeRunParams$c = _normalizeRunParams.callback, callback = _normalizeRunParams$c === void 0 ? noop2 : _normalizeRunParams$c;
|
|
@@ -28972,8 +29021,8 @@
|
|
|
28972
29021
|
throw err2;
|
|
28973
29022
|
}
|
|
28974
29023
|
function runPartial() {
|
|
28975
|
-
for (var
|
|
28976
|
-
args[
|
|
29024
|
+
for (var _len9 = arguments.length, args = new Array(_len9), _key1 = 0; _key1 < _len9; _key1++) {
|
|
29025
|
+
args[_key1] = arguments[_key1];
|
|
28977
29026
|
}
|
|
28978
29027
|
var _normalizeRunParams2 = normalizeRunParams(args), options = _normalizeRunParams2.options, context = _normalizeRunParams2.context;
|
|
28979
29028
|
assert_default(axe._audit, 'Axe is not configured. Audit is missing.');
|
|
@@ -29111,8 +29160,8 @@
|
|
|
29111
29160
|
var transformedResults = results.map(function(result) {
|
|
29112
29161
|
var transformedResult = _extends({}, result);
|
|
29113
29162
|
var types = [ 'passes', 'violations', 'incomplete', 'inapplicable' ];
|
|
29114
|
-
for (var
|
|
29115
|
-
var type2 = _types[
|
|
29163
|
+
for (var _i49 = 0, _types = types; _i49 < _types.length; _i49++) {
|
|
29164
|
+
var type2 = _types[_i49];
|
|
29116
29165
|
transformedResult[type2] = node_serializer_default.mapRawNodeResults(transformedResult[type2]);
|
|
29117
29166
|
}
|
|
29118
29167
|
return transformedResult;
|
|
@@ -29597,7 +29646,7 @@
|
|
|
29597
29646
|
},
|
|
29598
29647
|
'role-img-alt': {
|
|
29599
29648
|
description: 'Ensure [role="img"] elements have alternative text',
|
|
29600
|
-
help: '[role="img"] elements must have
|
|
29649
|
+
help: '[role="img"] elements must have alternative text'
|
|
29601
29650
|
},
|
|
29602
29651
|
'scope-attr-valid': {
|
|
29603
29652
|
description: 'Ensure the scope attribute is used correctly on tables',
|
|
@@ -29624,8 +29673,8 @@
|
|
|
29624
29673
|
help: 'Summary elements must have discernible text'
|
|
29625
29674
|
},
|
|
29626
29675
|
'svg-img-alt': {
|
|
29627
|
-
description: 'Ensure <svg> elements with an img, graphics-document or graphics-symbol role have
|
|
29628
|
-
help: '<svg> elements with an img role must have
|
|
29676
|
+
description: 'Ensure <svg> elements with an img, graphics-document or graphics-symbol role have accessible text',
|
|
29677
|
+
help: '<svg> elements with an img role must have alternative text'
|
|
29629
29678
|
},
|
|
29630
29679
|
tabindex: {
|
|
29631
29680
|
description: 'Ensure tabindex attribute values are not greater than 0',
|