axe-core 4.10.3-canary.237a586 → 4.10.3-canary.3aac6fe
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 +283 -242
- package/axe.min.js +2 -2
- package/locales/de.json +5 -1
- package/package.json +3 -3
- 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.3aac6fe
|
|
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.3aac6fe';
|
|
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);
|
|
@@ -18299,78 +18302,70 @@
|
|
|
18299
18302
|
return tree;
|
|
18300
18303
|
}
|
|
18301
18304
|
function getSlotChildren(node) {
|
|
18302
|
-
var
|
|
18305
|
+
var childNodes = [];
|
|
18303
18306
|
node = node.firstChild;
|
|
18304
18307
|
while (node) {
|
|
18305
|
-
|
|
18308
|
+
childNodes.push(node);
|
|
18306
18309
|
node = node.nextSibling;
|
|
18307
18310
|
}
|
|
18308
|
-
return
|
|
18311
|
+
return childNodes;
|
|
18309
18312
|
}
|
|
18310
18313
|
function createNode(node, parent, shadowId) {
|
|
18311
18314
|
var vNode = new virtual_node_default(node, parent, shadowId);
|
|
18312
18315
|
cacheNodeSelectors(vNode, cache_default.get('selectorMap'));
|
|
18313
18316
|
return vNode;
|
|
18314
18317
|
}
|
|
18315
|
-
function
|
|
18316
|
-
var
|
|
18317
|
-
function
|
|
18318
|
-
var
|
|
18319
|
-
if (
|
|
18320
|
-
|
|
18318
|
+
function createChildren(childNodes, parent, shadowId) {
|
|
18319
|
+
var children = [];
|
|
18320
|
+
childNodes.forEach(function(childNode) {
|
|
18321
|
+
var child = flattenTree(childNode, shadowId, parent);
|
|
18322
|
+
if (child) {
|
|
18323
|
+
children.push.apply(children, _toConsumableArray(child));
|
|
18321
18324
|
}
|
|
18322
|
-
|
|
18323
|
-
|
|
18325
|
+
});
|
|
18326
|
+
return children;
|
|
18327
|
+
}
|
|
18328
|
+
function flattenTree(node, shadowId, parent) {
|
|
18329
|
+
var vNode, childNodes;
|
|
18324
18330
|
if (node.documentElement) {
|
|
18325
18331
|
node = node.documentElement;
|
|
18326
18332
|
}
|
|
18327
18333
|
var nodeName2 = node.nodeName.toLowerCase();
|
|
18328
18334
|
if (is_shadow_root_default(node)) {
|
|
18329
18335
|
hasShadowRoot = true;
|
|
18330
|
-
|
|
18336
|
+
vNode = createNode(node, parent, shadowId);
|
|
18331
18337
|
shadowId = 'a' + Math.random().toString().substring(2);
|
|
18332
|
-
|
|
18333
|
-
|
|
18334
|
-
|
|
18335
|
-
|
|
18336
|
-
|
|
18337
|
-
|
|
18338
|
-
|
|
18339
|
-
|
|
18340
|
-
|
|
18341
|
-
|
|
18342
|
-
|
|
18343
|
-
|
|
18344
|
-
realArray = Array.from(node.assignedNodes());
|
|
18345
|
-
if (!realArray.length) {
|
|
18346
|
-
realArray = getSlotChildren(node);
|
|
18347
|
-
}
|
|
18348
|
-
var styl = window.getComputedStyle(node);
|
|
18349
|
-
if (false) {
|
|
18350
|
-
retVal = createNode(node, parent, shadowId);
|
|
18351
|
-
retVal.children = realArray.reduce(function(res, child) {
|
|
18352
|
-
return reduceShadowDOM(res, child, retVal);
|
|
18353
|
-
}, []);
|
|
18354
|
-
return [ retVal ];
|
|
18355
|
-
} else {
|
|
18356
|
-
return realArray.reduce(function(res, child) {
|
|
18357
|
-
return reduceShadowDOM(res, child, parent);
|
|
18358
|
-
}, []);
|
|
18359
|
-
}
|
|
18360
|
-
} else {
|
|
18361
|
-
if (node.nodeType === 1) {
|
|
18362
|
-
retVal = createNode(node, parent, shadowId);
|
|
18363
|
-
realArray = Array.from(node.childNodes);
|
|
18364
|
-
retVal.children = realArray.reduce(function(res, child) {
|
|
18365
|
-
return reduceShadowDOM(res, child, retVal);
|
|
18366
|
-
}, []);
|
|
18367
|
-
return [ retVal ];
|
|
18368
|
-
} else if (node.nodeType === 3) {
|
|
18369
|
-
return [ createNode(node, parent) ];
|
|
18370
|
-
}
|
|
18371
|
-
return void 0;
|
|
18338
|
+
childNodes = Array.from(node.shadowRoot.childNodes);
|
|
18339
|
+
vNode.children = createChildren(childNodes, vNode, shadowId);
|
|
18340
|
+
return [ vNode ];
|
|
18341
|
+
}
|
|
18342
|
+
if (nodeName2 === 'content' && typeof node.getDistributedNodes === 'function') {
|
|
18343
|
+
childNodes = Array.from(node.getDistributedNodes());
|
|
18344
|
+
return createChildren(childNodes, parent, shadowId);
|
|
18345
|
+
}
|
|
18346
|
+
if (nodeName2 === 'slot' && typeof node.assignedNodes === 'function') {
|
|
18347
|
+
childNodes = Array.from(node.assignedNodes());
|
|
18348
|
+
if (!childNodes.length) {
|
|
18349
|
+
childNodes = getSlotChildren(node);
|
|
18372
18350
|
}
|
|
18351
|
+
var styl = window.getComputedStyle(node);
|
|
18352
|
+
if (false) {
|
|
18353
|
+
vNode = createNode(node, parent, shadowId);
|
|
18354
|
+
vNode.children = createChildren(childNodes, vNode, shadowId);
|
|
18355
|
+
return [ vNode ];
|
|
18356
|
+
}
|
|
18357
|
+
return createChildren(childNodes, parent, shadowId);
|
|
18358
|
+
}
|
|
18359
|
+
if (node.nodeType === document.ELEMENT_NODE) {
|
|
18360
|
+
vNode = createNode(node, parent, shadowId);
|
|
18361
|
+
childNodes = Array.from(node.childNodes);
|
|
18362
|
+
vNode.children = createChildren(childNodes, vNode, shadowId);
|
|
18363
|
+
return [ vNode ];
|
|
18373
18364
|
}
|
|
18365
|
+
if (node.nodeType === document.TEXT_NODE) {
|
|
18366
|
+
return [ createNode(node, parent) ];
|
|
18367
|
+
}
|
|
18368
|
+
return void 0;
|
|
18374
18369
|
}
|
|
18375
18370
|
function getBaseLang(lang) {
|
|
18376
18371
|
if (!lang) {
|
|
@@ -18591,10 +18586,10 @@
|
|
|
18591
18586
|
if (!win.navigator || _typeof(win.navigator) !== 'object') {
|
|
18592
18587
|
return {};
|
|
18593
18588
|
}
|
|
18594
|
-
var
|
|
18589
|
+
var navigator = win.navigator, innerHeight = win.innerHeight, innerWidth = win.innerWidth;
|
|
18595
18590
|
var _ref62 = getOrientation(win) || {}, angle = _ref62.angle, type2 = _ref62.type;
|
|
18596
18591
|
return {
|
|
18597
|
-
userAgent:
|
|
18592
|
+
userAgent: navigator.userAgent,
|
|
18598
18593
|
windowWidth: innerWidth,
|
|
18599
18594
|
windowHeight: innerHeight,
|
|
18600
18595
|
orientationAngle: angle,
|
|
@@ -19211,62 +19206,105 @@
|
|
|
19211
19206
|
return window.performance.now();
|
|
19212
19207
|
}
|
|
19213
19208
|
}
|
|
19214
|
-
var
|
|
19215
|
-
var
|
|
19209
|
+
var axeStartTime = now();
|
|
19210
|
+
var axeStarted = false;
|
|
19216
19211
|
return {
|
|
19217
19212
|
start: function start() {
|
|
19213
|
+
this.reset();
|
|
19214
|
+
axeStarted = true;
|
|
19218
19215
|
this.mark('mark_axe_start');
|
|
19219
19216
|
},
|
|
19220
19217
|
end: function end() {
|
|
19221
19218
|
this.mark('mark_axe_end');
|
|
19222
|
-
this.measure('axe', 'mark_axe_start', 'mark_axe_end');
|
|
19219
|
+
this.measure('axe', 'mark_axe_start', 'mark_axe_end', true);
|
|
19223
19220
|
this.logMeasures('axe');
|
|
19221
|
+
this.clearMark('mark_axe_start', 'mark_axe_end');
|
|
19222
|
+
axeStarted = false;
|
|
19224
19223
|
},
|
|
19225
19224
|
auditStart: function auditStart() {
|
|
19225
|
+
if (!axeStarted) {
|
|
19226
|
+
this.reset();
|
|
19227
|
+
}
|
|
19226
19228
|
this.mark('mark_audit_start');
|
|
19227
19229
|
},
|
|
19228
19230
|
auditEnd: function auditEnd() {
|
|
19229
19231
|
this.mark('mark_audit_end');
|
|
19230
|
-
this.measure('audit_start_to_end', 'mark_audit_start', 'mark_audit_end');
|
|
19232
|
+
this.measure('audit_start_to_end', 'mark_audit_start', 'mark_audit_end', true);
|
|
19231
19233
|
this.logMeasures();
|
|
19234
|
+
this.clearMark('mark_audit_start', 'mark_audit_end');
|
|
19232
19235
|
},
|
|
19233
19236
|
mark: function mark(markName) {
|
|
19234
|
-
|
|
19237
|
+
var _window$performance;
|
|
19238
|
+
if ((_window$performance = window.performance) !== null && _window$performance !== void 0 && _window$performance.mark) {
|
|
19235
19239
|
window.performance.mark(markName);
|
|
19236
19240
|
}
|
|
19237
19241
|
},
|
|
19238
19242
|
measure: function measure(measureName, startMark, endMark) {
|
|
19239
|
-
|
|
19243
|
+
var _window$performance2;
|
|
19244
|
+
var keepMarks = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
|
|
19245
|
+
if (!((_window$performance2 = window.performance) !== null && _window$performance2 !== void 0 && _window$performance2.measure)) {
|
|
19246
|
+
return;
|
|
19247
|
+
}
|
|
19248
|
+
try {
|
|
19240
19249
|
window.performance.measure(measureName, startMark, endMark);
|
|
19250
|
+
} catch (e) {
|
|
19251
|
+
this._log(e);
|
|
19252
|
+
}
|
|
19253
|
+
if (!keepMarks) {
|
|
19254
|
+
this.clearMark(startMark, endMark);
|
|
19241
19255
|
}
|
|
19242
19256
|
},
|
|
19243
19257
|
logMeasures: function logMeasures(measureName) {
|
|
19244
|
-
|
|
19245
|
-
|
|
19258
|
+
var _this6 = this, _window$performance3, _window$performance4;
|
|
19259
|
+
var last2 = function last2(arr) {
|
|
19260
|
+
return Array.isArray(arr) ? arr[arr.length - 1] : arr;
|
|
19261
|
+
};
|
|
19262
|
+
var logMeasure = function logMeasure(req) {
|
|
19263
|
+
_this6._log('Measure ' + req.name + ' took ' + req.duration + 'ms');
|
|
19264
|
+
};
|
|
19265
|
+
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)) {
|
|
19266
|
+
return;
|
|
19246
19267
|
}
|
|
19247
|
-
|
|
19248
|
-
|
|
19249
|
-
|
|
19250
|
-
|
|
19251
|
-
|
|
19252
|
-
|
|
19253
|
-
|
|
19254
|
-
|
|
19255
|
-
|
|
19256
|
-
|
|
19257
|
-
|
|
19268
|
+
var axeStart = last2(window.performance.getEntriesByName('mark_axe_start')) || last2(window.performance.getEntriesByName('mark_audit_start'));
|
|
19269
|
+
if (!axeStart) {
|
|
19270
|
+
this._log('Axe must be started before using performanceTimer');
|
|
19271
|
+
return;
|
|
19272
|
+
}
|
|
19273
|
+
var measures = window.performance.getEntriesByType('measure').filter(function(measure) {
|
|
19274
|
+
return measure.startTime >= axeStart.startTime;
|
|
19275
|
+
});
|
|
19276
|
+
for (var _i26 = 0; _i26 < measures.length; ++_i26) {
|
|
19277
|
+
var req = measures[_i26];
|
|
19278
|
+
if (req.name === measureName) {
|
|
19279
|
+
logMeasure(req);
|
|
19280
|
+
return;
|
|
19281
|
+
} else if (!measureName) {
|
|
19258
19282
|
logMeasure(req);
|
|
19259
19283
|
}
|
|
19260
19284
|
}
|
|
19261
19285
|
},
|
|
19262
19286
|
timeElapsed: function timeElapsed() {
|
|
19263
|
-
|
|
19287
|
+
var currentTime = now();
|
|
19288
|
+
return currentTime - axeStartTime;
|
|
19264
19289
|
},
|
|
19265
|
-
|
|
19266
|
-
|
|
19267
|
-
|
|
19290
|
+
clearMark: function clearMark() {
|
|
19291
|
+
var _window$performance5;
|
|
19292
|
+
if (!((_window$performance5 = window.performance) !== null && _window$performance5 !== void 0 && _window$performance5.clearMarks)) {
|
|
19293
|
+
return;
|
|
19268
19294
|
}
|
|
19269
|
-
|
|
19295
|
+
for (var _len7 = arguments.length, markNames = new Array(_len7), _key8 = 0; _key8 < _len7; _key8++) {
|
|
19296
|
+
markNames[_key8] = arguments[_key8];
|
|
19297
|
+
}
|
|
19298
|
+
for (var _i27 = 0, _markNames = markNames; _i27 < _markNames.length; _i27++) {
|
|
19299
|
+
var markName = _markNames[_i27];
|
|
19300
|
+
window.performance.clearMarks(markName);
|
|
19301
|
+
}
|
|
19302
|
+
},
|
|
19303
|
+
reset: function reset() {
|
|
19304
|
+
axeStartTime = now();
|
|
19305
|
+
},
|
|
19306
|
+
_log: function _log(message) {
|
|
19307
|
+
log_default(message);
|
|
19270
19308
|
}
|
|
19271
19309
|
};
|
|
19272
19310
|
}();
|
|
@@ -19344,9 +19382,9 @@
|
|
|
19344
19382
|
var childAny = null;
|
|
19345
19383
|
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
19384
|
var added = false;
|
|
19347
|
-
for (var
|
|
19385
|
+
for (var _i28 = 0; _i28 < combinedLength; _i28++) {
|
|
19348
19386
|
var _currentLevel$anyLeve2, _currentLevel$anyLeve3, _currentLevel$anyLeve4;
|
|
19349
|
-
var exp =
|
|
19387
|
+
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
19388
|
if ((!exp[0].id || vNode.shadowId === currentLevel.parentShadowId) && _matchesExpression(vNode, exp[0])) {
|
|
19351
19389
|
if (exp.length === 1) {
|
|
19352
19390
|
if (!added && (!filter || filter(vNode))) {
|
|
@@ -19779,8 +19817,8 @@
|
|
|
19779
19817
|
}
|
|
19780
19818
|
var outerIncludes = getOuterIncludes(context.include);
|
|
19781
19819
|
var isInContext = getContextFilter(context);
|
|
19782
|
-
for (var
|
|
19783
|
-
candidate = outerIncludes[
|
|
19820
|
+
for (var _i29 = 0; _i29 < outerIncludes.length; _i29++) {
|
|
19821
|
+
candidate = outerIncludes[_i29];
|
|
19784
19822
|
var nodes = query_selector_all_filter_default(candidate, selector, isInContext);
|
|
19785
19823
|
result = mergeArrayUniques(result, nodes);
|
|
19786
19824
|
}
|
|
@@ -19817,9 +19855,9 @@
|
|
|
19817
19855
|
arr1 = arr2;
|
|
19818
19856
|
arr2 = temp;
|
|
19819
19857
|
}
|
|
19820
|
-
for (var
|
|
19821
|
-
if (!arr1.includes(arr2[
|
|
19822
|
-
arr1.push(arr2[
|
|
19858
|
+
for (var _i30 = 0, l = arr2.length; _i30 < l; _i30++) {
|
|
19859
|
+
if (!arr1.includes(arr2[_i30])) {
|
|
19860
|
+
arr1.push(arr2[_i30]);
|
|
19823
19861
|
}
|
|
19824
19862
|
}
|
|
19825
19863
|
return arr1;
|
|
@@ -19894,8 +19932,8 @@
|
|
|
19894
19932
|
while (lang.length < 3) {
|
|
19895
19933
|
lang += '`';
|
|
19896
19934
|
}
|
|
19897
|
-
for (var
|
|
19898
|
-
var index = lang.charCodeAt(
|
|
19935
|
+
for (var _i31 = 0; _i31 <= lang.length - 1; _i31++) {
|
|
19936
|
+
var index = lang.charCodeAt(_i31) - 96;
|
|
19899
19937
|
array = array[index];
|
|
19900
19938
|
if (!array) {
|
|
19901
19939
|
return false;
|
|
@@ -19921,12 +19959,12 @@
|
|
|
19921
19959
|
var valid_langs_default = isValidLang;
|
|
19922
19960
|
var SerialVirtualNode = function(_abstract_virtual_nod2) {
|
|
19923
19961
|
function SerialVirtualNode(serialNode) {
|
|
19924
|
-
var
|
|
19962
|
+
var _this7;
|
|
19925
19963
|
_classCallCheck(this, SerialVirtualNode);
|
|
19926
|
-
|
|
19927
|
-
|
|
19928
|
-
|
|
19929
|
-
return
|
|
19964
|
+
_this7 = _callSuper(this, SerialVirtualNode);
|
|
19965
|
+
_this7._props = normaliseProps(serialNode);
|
|
19966
|
+
_this7._attrs = normaliseAttrs(serialNode);
|
|
19967
|
+
return _this7;
|
|
19930
19968
|
}
|
|
19931
19969
|
_inherits(SerialVirtualNode, _abstract_virtual_nod2);
|
|
19932
19970
|
return _createClass(SerialVirtualNode, [ {
|
|
@@ -20587,8 +20625,8 @@
|
|
|
20587
20625
|
idRefs.get(_id3).push(node);
|
|
20588
20626
|
}
|
|
20589
20627
|
}
|
|
20590
|
-
for (var
|
|
20591
|
-
var attr = refAttrs[
|
|
20628
|
+
for (var _i32 = 0; _i32 < refAttrs.length; ++_i32) {
|
|
20629
|
+
var attr = refAttrs[_i32];
|
|
20592
20630
|
var attrValue = sanitize_default(node.getAttribute(attr) || '');
|
|
20593
20631
|
if (!attrValue) {
|
|
20594
20632
|
continue;
|
|
@@ -20610,9 +20648,9 @@
|
|
|
20610
20648
|
}
|
|
20611
20649
|
}
|
|
20612
20650
|
}
|
|
20613
|
-
for (var
|
|
20614
|
-
if (node.childNodes[
|
|
20615
|
-
cacheIdRefs(node.childNodes[
|
|
20651
|
+
for (var _i33 = 0; _i33 < node.childNodes.length; _i33++) {
|
|
20652
|
+
if (node.childNodes[_i33].nodeType === 1) {
|
|
20653
|
+
cacheIdRefs(node.childNodes[_i33], idRefs, refAttrs);
|
|
20616
20654
|
}
|
|
20617
20655
|
}
|
|
20618
20656
|
}
|
|
@@ -23233,16 +23271,16 @@
|
|
|
23233
23271
|
var outerText = elm.textContent.trim();
|
|
23234
23272
|
var innerText = outerText;
|
|
23235
23273
|
while (innerText === outerText && nextNode !== void 0) {
|
|
23236
|
-
var
|
|
23274
|
+
var _i34 = -1;
|
|
23237
23275
|
elm = nextNode;
|
|
23238
23276
|
if (elm.children.length === 0) {
|
|
23239
23277
|
return elm;
|
|
23240
23278
|
}
|
|
23241
23279
|
do {
|
|
23242
|
-
|
|
23243
|
-
innerText = elm.children[
|
|
23244
|
-
} while (innerText === '' &&
|
|
23245
|
-
nextNode = elm.children[
|
|
23280
|
+
_i34++;
|
|
23281
|
+
innerText = elm.children[_i34].textContent.trim();
|
|
23282
|
+
} while (innerText === '' && _i34 + 1 < elm.children.length);
|
|
23283
|
+
nextNode = elm.children[_i34];
|
|
23246
23284
|
}
|
|
23247
23285
|
return elm;
|
|
23248
23286
|
}
|
|
@@ -23650,8 +23688,8 @@
|
|
|
23650
23688
|
if (a2.length !== b2.length) {
|
|
23651
23689
|
return false;
|
|
23652
23690
|
}
|
|
23653
|
-
for (var
|
|
23654
|
-
if (a2[
|
|
23691
|
+
for (var _i35 = 0; _i35 < a2.length; ++_i35) {
|
|
23692
|
+
if (a2[_i35] !== b2[_i35]) {
|
|
23655
23693
|
return false;
|
|
23656
23694
|
}
|
|
23657
23695
|
}
|
|
@@ -23985,8 +24023,8 @@
|
|
|
23985
24023
|
color: bgColors.reduce(_flattenShadowColors)
|
|
23986
24024
|
} ];
|
|
23987
24025
|
}
|
|
23988
|
-
for (var
|
|
23989
|
-
var bgElm = elmStack[
|
|
24026
|
+
for (var _i36 = 0; _i36 < elmStack.length; _i36++) {
|
|
24027
|
+
var bgElm = elmStack[_i36];
|
|
23990
24028
|
var bgElmStyle = window.getComputedStyle(bgElm);
|
|
23991
24029
|
if (element_has_image_default(bgElm, bgElmStyle)) {
|
|
23992
24030
|
bgElms.push(bgElm);
|
|
@@ -24085,8 +24123,8 @@
|
|
|
24085
24123
|
});
|
|
24086
24124
|
} ];
|
|
24087
24125
|
var fgColors = [];
|
|
24088
|
-
for (var
|
|
24089
|
-
var colorFn = _colorStack[
|
|
24126
|
+
for (var _i37 = 0, _colorStack = colorStack; _i37 < _colorStack.length; _i37++) {
|
|
24127
|
+
var colorFn = _colorStack[_i37];
|
|
24090
24128
|
var _color4 = colorFn();
|
|
24091
24129
|
if (!_color4) {
|
|
24092
24130
|
continue;
|
|
@@ -24722,7 +24760,7 @@
|
|
|
24722
24760
|
var relatedElements = [];
|
|
24723
24761
|
var rulesGroupByDocumentFragment = groupCssomByDocument(cssom);
|
|
24724
24762
|
var _loop9 = function _loop9() {
|
|
24725
|
-
var key = _Object$keys3[
|
|
24763
|
+
var key = _Object$keys3[_i38];
|
|
24726
24764
|
var _rulesGroupByDocument = rulesGroupByDocumentFragment[key], root = _rulesGroupByDocument.root, rules = _rulesGroupByDocument.rules;
|
|
24727
24765
|
var orientationRules = rules.filter(isMediaRuleWithOrientation);
|
|
24728
24766
|
if (!orientationRules.length) {
|
|
@@ -24740,7 +24778,7 @@
|
|
|
24740
24778
|
});
|
|
24741
24779
|
});
|
|
24742
24780
|
};
|
|
24743
|
-
for (var
|
|
24781
|
+
for (var _i38 = 0, _Object$keys3 = Object.keys(rulesGroupByDocumentFragment); _i38 < _Object$keys3.length; _i38++) {
|
|
24744
24782
|
if (_loop9()) {
|
|
24745
24783
|
continue;
|
|
24746
24784
|
}
|
|
@@ -24974,8 +25012,8 @@
|
|
|
24974
25012
|
return false;
|
|
24975
25013
|
}
|
|
24976
25014
|
var hasDt = false, hasDd = false, nodeName2;
|
|
24977
|
-
for (var
|
|
24978
|
-
nodeName2 = children[
|
|
25015
|
+
for (var _i39 = 0; _i39 < children.length; _i39++) {
|
|
25016
|
+
nodeName2 = children[_i39].props.nodeName.toUpperCase();
|
|
24979
25017
|
if (nodeName2 === 'DT') {
|
|
24980
25018
|
hasDt = true;
|
|
24981
25019
|
}
|
|
@@ -25394,7 +25432,7 @@
|
|
|
25394
25432
|
}
|
|
25395
25433
|
var help_same_as_label_evaluate_default = helpSameAsLabelEvaluate;
|
|
25396
25434
|
function explicitEvaluate(node, options, virtualNode) {
|
|
25397
|
-
var
|
|
25435
|
+
var _this8 = this;
|
|
25398
25436
|
if (!virtualNode.attr('id')) {
|
|
25399
25437
|
return false;
|
|
25400
25438
|
}
|
|
@@ -25417,7 +25455,7 @@
|
|
|
25417
25455
|
inControlContext: true,
|
|
25418
25456
|
startNode: virtualNode
|
|
25419
25457
|
}));
|
|
25420
|
-
|
|
25458
|
+
_this8.data({
|
|
25421
25459
|
explicitLabel: explicitLabel
|
|
25422
25460
|
});
|
|
25423
25461
|
return !!explicitLabel;
|
|
@@ -25868,8 +25906,8 @@
|
|
|
25868
25906
|
return blockLike2.indexOf(display2) !== -1 || display2.substr(0, 6) === 'table-';
|
|
25869
25907
|
}
|
|
25870
25908
|
function hasPseudoContent(node) {
|
|
25871
|
-
for (var
|
|
25872
|
-
var pseudo = _arr3[
|
|
25909
|
+
for (var _i40 = 0, _arr3 = [ 'before', 'after' ]; _i40 < _arr3.length; _i40++) {
|
|
25910
|
+
var pseudo = _arr3[_i40];
|
|
25873
25911
|
var style = window.getComputedStyle(node, ':'.concat(pseudo));
|
|
25874
25912
|
var content = style.getPropertyValue('content');
|
|
25875
25913
|
if (content !== 'none') {
|
|
@@ -26461,8 +26499,8 @@
|
|
|
26461
26499
|
}
|
|
26462
26500
|
var owners = getAriaOwners(node);
|
|
26463
26501
|
if (owners) {
|
|
26464
|
-
for (var
|
|
26465
|
-
missingParents = getMissingContext(get_node_from_tree_default(owners[
|
|
26502
|
+
for (var _i41 = 0, l = owners.length; _i41 < l; _i41++) {
|
|
26503
|
+
missingParents = getMissingContext(get_node_from_tree_default(owners[_i41]), ownGroupRoles, missingParents, true);
|
|
26466
26504
|
if (!missingParents) {
|
|
26467
26505
|
return true;
|
|
26468
26506
|
}
|
|
@@ -27305,6 +27343,9 @@
|
|
|
27305
27343
|
if (!hasRealTextChildren(virtualNode)) {
|
|
27306
27344
|
return false;
|
|
27307
27345
|
}
|
|
27346
|
+
if (!parseFloat(virtualNode.getComputedStylePropertyValue('font-size'))) {
|
|
27347
|
+
return false;
|
|
27348
|
+
}
|
|
27308
27349
|
var range2 = document.createRange();
|
|
27309
27350
|
var childNodes = virtualNode.children;
|
|
27310
27351
|
for (var index = 0; index < childNodes.length; index++) {
|
|
@@ -27426,8 +27467,8 @@
|
|
|
27426
27467
|
var aria = /^aria-/;
|
|
27427
27468
|
var attrs = virtualNode.attrNames;
|
|
27428
27469
|
if (attrs.length) {
|
|
27429
|
-
for (var
|
|
27430
|
-
if (aria.test(attrs[
|
|
27470
|
+
for (var _i42 = 0, l = attrs.length; _i42 < l; _i42++) {
|
|
27471
|
+
if (aria.test(attrs[_i42])) {
|
|
27431
27472
|
return true;
|
|
27432
27473
|
}
|
|
27433
27474
|
}
|
|
@@ -27686,7 +27727,7 @@
|
|
|
27686
27727
|
return checkResult;
|
|
27687
27728
|
};
|
|
27688
27729
|
Check.prototype.configure = function configure2(spec) {
|
|
27689
|
-
var
|
|
27730
|
+
var _this9 = this;
|
|
27690
27731
|
if (!spec.evaluate || metadata_function_map_default[spec.evaluate]) {
|
|
27691
27732
|
this._internalCheck = true;
|
|
27692
27733
|
}
|
|
@@ -27703,7 +27744,7 @@
|
|
|
27703
27744
|
[ 'evaluate', 'after' ].filter(function(prop) {
|
|
27704
27745
|
return spec.hasOwnProperty(prop);
|
|
27705
27746
|
}).forEach(function(prop) {
|
|
27706
|
-
return
|
|
27747
|
+
return _this9[prop] = createExecutionContext(spec[prop]);
|
|
27707
27748
|
});
|
|
27708
27749
|
};
|
|
27709
27750
|
Check.prototype.getOptions = function getOptions(options) {
|
|
@@ -27812,7 +27853,7 @@
|
|
|
27812
27853
|
};
|
|
27813
27854
|
};
|
|
27814
27855
|
Rule.prototype.run = function run2(context) {
|
|
27815
|
-
var
|
|
27856
|
+
var _this0 = this;
|
|
27816
27857
|
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
27817
27858
|
var resolve = arguments.length > 2 ? arguments[2] : undefined;
|
|
27818
27859
|
var reject = arguments.length > 3 ? arguments[3] : undefined;
|
|
@@ -27839,7 +27880,7 @@
|
|
|
27839
27880
|
var checkQueue = queue_default();
|
|
27840
27881
|
[ 'any', 'all', 'none' ].forEach(function(type2) {
|
|
27841
27882
|
checkQueue.defer(function(res, rej) {
|
|
27842
|
-
|
|
27883
|
+
_this0.runChecks(type2, node, options, context, res, rej);
|
|
27843
27884
|
});
|
|
27844
27885
|
});
|
|
27845
27886
|
checkQueue.then(function(results) {
|
|
@@ -27847,7 +27888,7 @@
|
|
|
27847
27888
|
if (result) {
|
|
27848
27889
|
result.node = new dq_element_default(node);
|
|
27849
27890
|
ruleResult.nodes.push(result);
|
|
27850
|
-
if (
|
|
27891
|
+
if (_this0.reviewOnFail) {
|
|
27851
27892
|
[ 'any', 'all' ].forEach(function(type2) {
|
|
27852
27893
|
result[type2].forEach(function(checkResult) {
|
|
27853
27894
|
if (checkResult.result === false) {
|
|
@@ -27870,20 +27911,20 @@
|
|
|
27870
27911
|
});
|
|
27871
27912
|
q.then(function() {
|
|
27872
27913
|
if (options.performanceTimer) {
|
|
27873
|
-
|
|
27914
|
+
_this0._logRulePerformance();
|
|
27874
27915
|
}
|
|
27875
27916
|
setTimeout(function() {
|
|
27876
27917
|
resolve(ruleResult);
|
|
27877
27918
|
}, 0);
|
|
27878
27919
|
})['catch'](function(error) {
|
|
27879
27920
|
if (options.performanceTimer) {
|
|
27880
|
-
|
|
27921
|
+
_this0._logRulePerformance();
|
|
27881
27922
|
}
|
|
27882
27923
|
reject(error);
|
|
27883
27924
|
});
|
|
27884
27925
|
};
|
|
27885
27926
|
Rule.prototype.runSync = function runSync2(context) {
|
|
27886
|
-
var
|
|
27927
|
+
var _this1 = this;
|
|
27887
27928
|
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
27888
27929
|
if (options.performanceTimer) {
|
|
27889
27930
|
this._trackPerformance();
|
|
@@ -27904,13 +27945,13 @@
|
|
|
27904
27945
|
nodes.forEach(function(node) {
|
|
27905
27946
|
var results = [];
|
|
27906
27947
|
[ 'any', 'all', 'none' ].forEach(function(type2) {
|
|
27907
|
-
results.push(
|
|
27948
|
+
results.push(_this1.runChecksSync(type2, node, options, context));
|
|
27908
27949
|
});
|
|
27909
27950
|
var result = getResult(results);
|
|
27910
27951
|
if (result) {
|
|
27911
27952
|
result.node = node.actualNode ? new dq_element_default(node) : null;
|
|
27912
27953
|
ruleResult.nodes.push(result);
|
|
27913
|
-
if (
|
|
27954
|
+
if (_this1.reviewOnFail) {
|
|
27914
27955
|
[ 'any', 'all' ].forEach(function(type2) {
|
|
27915
27956
|
result[type2].forEach(function(checkResult) {
|
|
27916
27957
|
if (checkResult.result === false) {
|
|
@@ -27938,7 +27979,7 @@
|
|
|
27938
27979
|
this._markChecksEnd = 'mark_runchecks_end_' + this.id;
|
|
27939
27980
|
};
|
|
27940
27981
|
Rule.prototype._logGatherPerformance = function _logGatherPerformance(nodes) {
|
|
27941
|
-
log_default('gather (
|
|
27982
|
+
log_default('gather for '.concat(this.id, ' (').concat(nodes.length, ' nodes): ').concat(performance_timer_default.timeElapsed(), 'ms'));
|
|
27942
27983
|
performance_timer_default.mark(this._markChecksStart);
|
|
27943
27984
|
};
|
|
27944
27985
|
Rule.prototype._logRulePerformance = function _logRulePerformance() {
|
|
@@ -27967,7 +28008,7 @@
|
|
|
27967
28008
|
}
|
|
27968
28009
|
}
|
|
27969
28010
|
Rule.prototype.gatherAndMatchNodes = function gatherAndMatchNodes(context, options) {
|
|
27970
|
-
var
|
|
28011
|
+
var _this10 = this;
|
|
27971
28012
|
var markMatchesStart = 'mark_matches_start_' + this.id;
|
|
27972
28013
|
var markMatchesEnd = 'mark_matches_end_' + this.id;
|
|
27973
28014
|
var nodes = this.gather(context, options);
|
|
@@ -27975,7 +28016,7 @@
|
|
|
27975
28016
|
performance_timer_default.mark(markMatchesStart);
|
|
27976
28017
|
}
|
|
27977
28018
|
nodes = nodes.filter(function(node) {
|
|
27978
|
-
return
|
|
28019
|
+
return _this10.matches(node.actualNode, node, context);
|
|
27979
28020
|
});
|
|
27980
28021
|
if (options.performanceTimer) {
|
|
27981
28022
|
performance_timer_default.mark(markMatchesEnd);
|
|
@@ -28030,17 +28071,17 @@
|
|
|
28030
28071
|
return nodes;
|
|
28031
28072
|
}
|
|
28032
28073
|
Rule.prototype.after = function after(result, options) {
|
|
28033
|
-
var
|
|
28074
|
+
var _this11 = this;
|
|
28034
28075
|
var afterChecks = findAfterChecks(this);
|
|
28035
28076
|
var ruleID = this.id;
|
|
28036
28077
|
afterChecks.forEach(function(check) {
|
|
28037
28078
|
var beforeResults = findCheckResults(result.nodes, check.id);
|
|
28038
28079
|
var checkOption = get_check_option_default(check, ruleID, options);
|
|
28039
28080
|
var afterResults = check.after(beforeResults, checkOption.options);
|
|
28040
|
-
if (
|
|
28081
|
+
if (_this11.reviewOnFail) {
|
|
28041
28082
|
afterResults.forEach(function(checkResult) {
|
|
28042
|
-
var changeAnyAllResults = (
|
|
28043
|
-
var changeNoneResult =
|
|
28083
|
+
var changeAnyAllResults = (_this11.any.includes(checkResult.id) || _this11.all.includes(checkResult.id)) && checkResult.result === false;
|
|
28084
|
+
var changeNoneResult = _this11.none.includes(checkResult.id) && checkResult.result === true;
|
|
28044
28085
|
if (changeAnyAllResults || changeNoneResult) {
|
|
28045
28086
|
checkResult.result = void 0;
|
|
28046
28087
|
}
|
|
@@ -28120,8 +28161,8 @@
|
|
|
28120
28161
|
lang: this.lang
|
|
28121
28162
|
};
|
|
28122
28163
|
var checkIDs = Object.keys(this.data.checks);
|
|
28123
|
-
for (var
|
|
28124
|
-
var _id6 = checkIDs[
|
|
28164
|
+
for (var _i43 = 0; _i43 < checkIDs.length; _i43++) {
|
|
28165
|
+
var _id6 = checkIDs[_i43];
|
|
28125
28166
|
var check = this.data.checks[_id6];
|
|
28126
28167
|
var _check$messages = check.messages, pass = _check$messages.pass, fail = _check$messages.fail, incomplete = _check$messages.incomplete;
|
|
28127
28168
|
locale.checks[_id6] = {
|
|
@@ -28131,8 +28172,8 @@
|
|
|
28131
28172
|
};
|
|
28132
28173
|
}
|
|
28133
28174
|
var ruleIDs = Object.keys(this.data.rules);
|
|
28134
|
-
for (var
|
|
28135
|
-
var _id7 = ruleIDs[
|
|
28175
|
+
for (var _i44 = 0; _i44 < ruleIDs.length; _i44++) {
|
|
28176
|
+
var _id7 = ruleIDs[_i44];
|
|
28136
28177
|
var rule = this.data.rules[_id7];
|
|
28137
28178
|
var description = rule.description, help = rule.help;
|
|
28138
28179
|
locale.rules[_id7] = {
|
|
@@ -28141,8 +28182,8 @@
|
|
|
28141
28182
|
};
|
|
28142
28183
|
}
|
|
28143
28184
|
var failureSummaries = Object.keys(this.data.failureSummaries);
|
|
28144
|
-
for (var
|
|
28145
|
-
var type2 = failureSummaries[
|
|
28185
|
+
for (var _i45 = 0; _i45 < failureSummaries.length; _i45++) {
|
|
28186
|
+
var type2 = failureSummaries[_i45];
|
|
28146
28187
|
var failureSummary2 = this.data.failureSummaries[type2];
|
|
28147
28188
|
var failureMessage = failureSummary2.failureMessage;
|
|
28148
28189
|
locale.failureSummaries[type2] = {
|
|
@@ -28165,8 +28206,8 @@
|
|
|
28165
28206
|
key: '_applyCheckLocale',
|
|
28166
28207
|
value: function _applyCheckLocale(checks) {
|
|
28167
28208
|
var keys = Object.keys(checks);
|
|
28168
|
-
for (var
|
|
28169
|
-
var _id8 = keys[
|
|
28209
|
+
for (var _i46 = 0; _i46 < keys.length; _i46++) {
|
|
28210
|
+
var _id8 = keys[_i46];
|
|
28170
28211
|
if (!this.data.checks[_id8]) {
|
|
28171
28212
|
throw new Error('Locale provided for unknown check: "'.concat(_id8, '"'));
|
|
28172
28213
|
}
|
|
@@ -28177,8 +28218,8 @@
|
|
|
28177
28218
|
key: '_applyRuleLocale',
|
|
28178
28219
|
value: function _applyRuleLocale(rules) {
|
|
28179
28220
|
var keys = Object.keys(rules);
|
|
28180
|
-
for (var
|
|
28181
|
-
var _id9 = keys[
|
|
28221
|
+
for (var _i47 = 0; _i47 < keys.length; _i47++) {
|
|
28222
|
+
var _id9 = keys[_i47];
|
|
28182
28223
|
if (!this.data.rules[_id9]) {
|
|
28183
28224
|
throw new Error('Locale provided for unknown rule: "'.concat(_id9, '"'));
|
|
28184
28225
|
}
|
|
@@ -28189,12 +28230,12 @@
|
|
|
28189
28230
|
key: '_applyFailureSummaries',
|
|
28190
28231
|
value: function _applyFailureSummaries(messages) {
|
|
28191
28232
|
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(
|
|
28233
|
+
for (var _i48 = 0; _i48 < keys.length; _i48++) {
|
|
28234
|
+
var _key9 = keys[_i48];
|
|
28235
|
+
if (!this.data.failureSummaries[_key9]) {
|
|
28236
|
+
throw new Error('Locale provided for unknown failureMessage: "'.concat(_key9, '"'));
|
|
28196
28237
|
}
|
|
28197
|
-
this.data.failureSummaries[
|
|
28238
|
+
this.data.failureSummaries[_key9] = mergeFailureMessage(this.data.failureSummaries[_key9], messages[_key9]);
|
|
28198
28239
|
}
|
|
28199
28240
|
}
|
|
28200
28241
|
}, {
|
|
@@ -28476,16 +28517,16 @@
|
|
|
28476
28517
|
}, {
|
|
28477
28518
|
key: '_constructHelpUrls',
|
|
28478
28519
|
value: function _constructHelpUrls() {
|
|
28479
|
-
var
|
|
28520
|
+
var _this12 = this;
|
|
28480
28521
|
var previous = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
|
|
28481
28522
|
var version = (axe.version.match(/^[1-9][0-9]*\.[0-9]+/) || [ 'x.y' ])[0];
|
|
28482
28523
|
this.rules.forEach(function(rule) {
|
|
28483
|
-
if (!
|
|
28484
|
-
|
|
28524
|
+
if (!_this12.data.rules[rule.id]) {
|
|
28525
|
+
_this12.data.rules[rule.id] = {};
|
|
28485
28526
|
}
|
|
28486
|
-
var metaData =
|
|
28527
|
+
var metaData = _this12.data.rules[rule.id];
|
|
28487
28528
|
if (typeof metaData.helpUrl !== 'string' || previous && metaData.helpUrl === getHelpUrl(previous, rule.id, version)) {
|
|
28488
|
-
metaData.helpUrl = getHelpUrl(
|
|
28529
|
+
metaData.helpUrl = getHelpUrl(_this12, rule.id, version);
|
|
28489
28530
|
}
|
|
28490
28531
|
});
|
|
28491
28532
|
}
|
|
@@ -28875,8 +28916,8 @@
|
|
|
28875
28916
|
}
|
|
28876
28917
|
var noop2 = function noop2() {};
|
|
28877
28918
|
function run4() {
|
|
28878
|
-
for (var
|
|
28879
|
-
args[
|
|
28919
|
+
for (var _len8 = arguments.length, args = new Array(_len8), _key0 = 0; _key0 < _len8; _key0++) {
|
|
28920
|
+
args[_key0] = arguments[_key0];
|
|
28880
28921
|
}
|
|
28881
28922
|
setupGlobals(args[0]);
|
|
28882
28923
|
var _normalizeRunParams = normalizeRunParams(args), context = _normalizeRunParams.context, options = _normalizeRunParams.options, _normalizeRunParams$c = _normalizeRunParams.callback, callback = _normalizeRunParams$c === void 0 ? noop2 : _normalizeRunParams$c;
|
|
@@ -28972,8 +29013,8 @@
|
|
|
28972
29013
|
throw err2;
|
|
28973
29014
|
}
|
|
28974
29015
|
function runPartial() {
|
|
28975
|
-
for (var
|
|
28976
|
-
args[
|
|
29016
|
+
for (var _len9 = arguments.length, args = new Array(_len9), _key1 = 0; _key1 < _len9; _key1++) {
|
|
29017
|
+
args[_key1] = arguments[_key1];
|
|
28977
29018
|
}
|
|
28978
29019
|
var _normalizeRunParams2 = normalizeRunParams(args), options = _normalizeRunParams2.options, context = _normalizeRunParams2.context;
|
|
28979
29020
|
assert_default(axe._audit, 'Axe is not configured. Audit is missing.');
|
|
@@ -29111,8 +29152,8 @@
|
|
|
29111
29152
|
var transformedResults = results.map(function(result) {
|
|
29112
29153
|
var transformedResult = _extends({}, result);
|
|
29113
29154
|
var types = [ 'passes', 'violations', 'incomplete', 'inapplicable' ];
|
|
29114
|
-
for (var
|
|
29115
|
-
var type2 = _types[
|
|
29155
|
+
for (var _i49 = 0, _types = types; _i49 < _types.length; _i49++) {
|
|
29156
|
+
var type2 = _types[_i49];
|
|
29116
29157
|
transformedResult[type2] = node_serializer_default.mapRawNodeResults(transformedResult[type2]);
|
|
29117
29158
|
}
|
|
29118
29159
|
return transformedResult;
|