@lmvz-ds/components 0.32.0 → 0.34.0
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/CHANGELOG.md +13 -0
- package/cjs/{aria-loader-BRo2FTGh.js → aria-loader-DWUVcapD.js} +1 -1
- package/cjs/{aria-validation-controller-Z4TtOp2l.js → aria-validation-controller-BC0Eaiv4.js} +1 -1
- package/cjs/async.util-BQ60l-WC.js +20 -0
- package/cjs/{ds.constants-CKeXfK-s.js → ds.constants-C6eKRAEu.js} +5 -1
- package/cjs/{element.util-Cq4y-_iX.js → element.util-Dbyc8yUG.js} +35 -0
- package/cjs/{icons-BQASWgk-.js → icons-snv0hyf1.js} +1 -1
- package/cjs/{index-3g9Z9sfF.js → index-Bn3k5SiE.js} +1044 -508
- package/cjs/index.cjs.js +7 -5
- package/cjs/{list-keyboard-controller-StN6Yn8W.js → list-keyboard-controller-Dm5S_l0D.js} +1 -1
- package/cjs/lmvz-action-list.cjs.entry.js +13 -6
- package/cjs/lmvz-button-group.cjs.entry.js +4 -4
- package/cjs/lmvz-button_2.cjs.entry.js +7 -7
- package/cjs/lmvz-card.cjs.entry.js +1 -1
- package/cjs/lmvz-checkbox.cjs.entry.js +5 -5
- package/cjs/lmvz-chip.cjs.entry.js +3 -3
- package/cjs/lmvz-components.cjs.js +1 -1
- package/cjs/lmvz-header_2.cjs.entry.js +4 -4
- package/cjs/lmvz-input.cjs.entry.js +4 -3
- package/cjs/lmvz-link.cjs.entry.js +4 -4
- package/cjs/lmvz-menuitem.cjs.entry.js +3 -3
- package/cjs/lmvz-message.cjs.entry.js +3 -3
- package/cjs/lmvz-modal.cjs.entry.js +6 -6
- package/cjs/lmvz-popover.cjs.entry.js +1570 -0
- package/cjs/lmvz-radio.cjs.entry.js +4 -4
- package/cjs/lmvz-select.cjs.entry.js +3 -3
- package/cjs/lmvz-snackbar.cjs.entry.js +1 -1
- package/cjs/lmvz-spinner.cjs.entry.js +1 -1
- package/cjs/lmvz-tab.cjs.entry.js +1 -1
- package/cjs/lmvz-tabs.cjs.entry.js +3 -3
- package/cjs/lmvz-toggle.cjs.entry.js +6 -5
- package/cjs/loader.cjs.js +1 -1
- package/cjs/{logger-DsM6xg6V.js → logger-NBdKPSou.js} +1 -1
- package/cjs/{stencil.util-DzvzXSwk.js → stencil.util-DxdYjVoH.js} +2 -10
- package/cjs/{svg-BMBduILB.js → svg-CysxzZw7.js} +1 -1
- package/collection/api/ds.constants.js +3 -1
- package/collection/collection-manifest.json +1 -0
- package/collection/components/lmvz-action-list/lmvz-action-list.css +150 -38
- package/collection/components/lmvz-action-list/lmvz-action-list.js +9 -1
- package/collection/components/lmvz-button/lmvz-button.css +14 -18
- package/collection/components/lmvz-button/lmvz-button.js +1 -1
- package/collection/components/lmvz-button-group/lmvz-button-group.css +1 -2
- package/collection/components/lmvz-card/lmvz-card.css +16 -19
- package/collection/components/lmvz-checkbox/lmvz-checkbox.css +3 -6
- package/collection/components/lmvz-link/lmvz-link.css +1 -1
- package/collection/components/lmvz-menuitem/lmvz-menuitem.css +1 -2
- package/collection/components/lmvz-modal/lmvz-modal.css +1 -2
- package/collection/components/lmvz-popover/lmvz-popover.css +46 -0
- package/collection/components/lmvz-popover/lmvz-popover.js +470 -0
- package/collection/components/lmvz-radio/lmvz-radio.css +2 -4
- package/collection/components/lmvz-radio/lmvz-radio.js +1 -1
- package/collection/components/lmvz-select/lmvz-select.js +1 -1
- package/collection/components/lmvz-snackbar/lmvz-snackbar.js +1 -1
- package/collection/components/lmvz-spinner/lmvz-spinner.js +1 -1
- package/collection/components/lmvz-tab/lmvz-tab.js +1 -1
- package/collection/components/lmvz-tabs/lmvz-tabs.js +1 -1
- package/collection/components/lmvz-toggle/lmvz-toggle.css +1 -2
- package/collection/components/lmvz-toggle/lmvz-toggle.js +1 -1
- package/collection/integration/header-integration/header-integration.js +1 -1
- package/collection/utils/async/async.util.js +6 -0
- package/collection/utils/element/element.util.js +33 -0
- package/components/index.d.ts +2 -0
- package/components/index.d.ts.bak +2 -0
- package/components/index.js +1 -1
- package/components/lmvz-action-list.js +1 -1
- package/components/lmvz-button-group.js +1 -1
- package/components/lmvz-button.js +1 -1
- package/components/lmvz-card.js +1 -1
- package/components/lmvz-checkbox.js +1 -1
- package/components/lmvz-chip.js +1 -1
- package/components/lmvz-header.js +1 -1
- package/components/lmvz-icon.js +1 -1
- package/components/lmvz-input.js +1 -1
- package/components/lmvz-link.js +1 -1
- package/components/lmvz-menuitem.js +1 -1
- package/components/lmvz-message.js +1 -1
- package/components/lmvz-modal.js +1 -1
- package/components/lmvz-popover.d.ts +11 -0
- package/components/lmvz-popover.d.ts.bak +11 -0
- package/components/lmvz-popover.js +1 -0
- package/components/lmvz-radio.js +1 -1
- package/components/lmvz-select.js +1 -1
- package/components/lmvz-snackbar.js +1 -1
- package/components/lmvz-spinner.js +1 -1
- package/components/lmvz-tab.js +1 -1
- package/components/lmvz-tabs.js +1 -1
- package/components/lmvz-toggle.js +1 -1
- package/components/p-0ctLESas.js +1 -0
- package/components/{p-CdDO7mQa.js → p-BDonpCG8.js} +1 -1
- package/components/p-BhSTYZC6.js +1 -0
- package/components/p-CE-QR3Tp.js +1 -0
- package/components/{p-C8znmF2h.js → p-CFTmV4XZ.js} +1 -1
- package/components/{p-CxfT9IA1.js → p-CK3Ixl1K.js} +1 -1
- package/components/p-Cghfdblf.js +12 -0
- package/components/{p-B4m1n4et.js → p-D-2gj6LP.js} +1 -1
- package/components/{p-CGmJG63p.js → p-D06Ds9Dh.js} +1 -1
- package/components/{p-DeO5Vbxh.js → p-D7S1WiEC.js} +1 -1
- package/components/p-D9nUtvTm.js +1 -0
- package/components/{p-DJ90327O.js → p-De-xQqdU.js} +1 -1
- package/components/{p-CcxjkCOx.js → p-DjvtQE7c.js} +1 -1
- package/esm/{aria-loader-GfsGHZHY.js → aria-loader-BfH06m7H.js} +1 -1
- package/esm/{aria-validation-controller-BnyUKeJ6.js → aria-validation-controller-BvOU1BO8.js} +1 -1
- package/esm/async.util-D9nUtvTm.js +17 -0
- package/esm/{ds.constants-DuEtnKRj.js → ds.constants-0ctLESas.js} +4 -2
- package/esm/{element.util-CxfT9IA1.js → element.util-B0eCxdyI.js} +34 -1
- package/esm/{icons-CmuFKDRz.js → icons-DQOFaux5.js} +1 -1
- package/esm/{index-Dh_9sN0q.js → index-7ULiPTL_.js} +1044 -508
- package/esm/index.js +5 -5
- package/esm/{list-keyboard-controller-BKa9Kd2t.js → list-keyboard-controller-tle6IRkv.js} +1 -1
- package/esm/lmvz-action-list.entry.js +13 -6
- package/esm/lmvz-button-group.entry.js +4 -4
- package/esm/lmvz-button_2.entry.js +7 -7
- package/esm/lmvz-card.entry.js +1 -1
- package/esm/lmvz-checkbox.entry.js +5 -5
- package/esm/lmvz-chip.entry.js +3 -3
- package/esm/lmvz-components.js +1 -1
- package/esm/lmvz-header_2.entry.js +4 -4
- package/esm/lmvz-input.entry.js +4 -3
- package/esm/lmvz-link.entry.js +4 -4
- package/esm/lmvz-menuitem.entry.js +3 -3
- package/esm/lmvz-message.entry.js +3 -3
- package/esm/lmvz-modal.entry.js +6 -6
- package/esm/lmvz-popover.entry.js +1568 -0
- package/esm/lmvz-radio.entry.js +4 -4
- package/esm/lmvz-select.entry.js +3 -3
- package/esm/lmvz-snackbar.entry.js +1 -1
- package/esm/lmvz-spinner.entry.js +1 -1
- package/esm/lmvz-tab.entry.js +1 -1
- package/esm/lmvz-tabs.entry.js +3 -3
- package/esm/lmvz-toggle.entry.js +6 -5
- package/esm/loader.js +1 -1
- package/esm/{logger-CGmJG63p.js → logger-D06Ds9Dh.js} +1 -1
- package/esm/{stencil.util-CJRqhXjK.js → stencil.util-wGFRYLwZ.js} +1 -9
- package/esm/{svg-B2YoIRuh.js → svg-Dz3GD0LB.js} +1 -1
- package/hydrate/index.js +1652 -25
- package/hydrate/index.mjs +1652 -25
- package/lmvz-components/index.esm.js +1 -1
- package/lmvz-components/lmvz-components.esm.js +1 -1
- package/lmvz-components/p-03c38ff2.entry.js +1 -0
- package/lmvz-components/{p-582f44ff.entry.js → p-08613ba2.entry.js} +1 -1
- package/lmvz-components/p-0ctLESas.js +1 -0
- package/lmvz-components/{p-ed3c2b13.entry.js → p-11de5905.entry.js} +1 -1
- package/lmvz-components/{p-b79af711.entry.js → p-2036044c.entry.js} +1 -1
- package/lmvz-components/{p-c0d05a97.entry.js → p-4254aa38.entry.js} +1 -1
- package/lmvz-components/{p-8e1f66dd.entry.js → p-49e98627.entry.js} +1 -1
- package/lmvz-components/p-4f005b23.entry.js +1 -0
- package/lmvz-components/p-50063516.entry.js +1 -0
- package/lmvz-components/{p-48109e1d.entry.js → p-585470ef.entry.js} +1 -1
- package/lmvz-components/{p-24125bcf.entry.js → p-5bbbcfc0.entry.js} +1 -1
- package/lmvz-components/{p-c3e8092e.entry.js → p-6140866f.entry.js} +1 -1
- package/lmvz-components/p-9b7ce515.entry.js +1 -0
- package/lmvz-components/p-9f8fd077.entry.js +1 -0
- package/lmvz-components/{p-CxfT9IA1.js → p-B0eCxdyI.js} +1 -1
- package/lmvz-components/{p-CdDO7mQa.js → p-BDonpCG8.js} +1 -1
- package/lmvz-components/p-BhSTYZC6.js +1 -0
- package/lmvz-components/p-Cghfdblf.js +12 -0
- package/lmvz-components/p-CyDgnpOB.js +1 -0
- package/lmvz-components/{p-CGmJG63p.js → p-D06Ds9Dh.js} +1 -1
- package/lmvz-components/{p-CPOia2kT.js → p-D9PQIBzA.js} +1 -1
- package/lmvz-components/p-D9nUtvTm.js +1 -0
- package/lmvz-components/{p-CcxjkCOx.js → p-DjvtQE7c.js} +1 -1
- package/lmvz-components/{p-B4m1n4et.js → p-DuLiExhX.js} +1 -1
- package/lmvz-components/{p-1ce90ea7.entry.js → p-b0626234.entry.js} +1 -1
- package/lmvz-components/{p-fa2cd315.entry.js → p-b67ff2d1.entry.js} +1 -1
- package/lmvz-components/p-bfde444e.entry.js +1 -0
- package/lmvz-components/{p-703b10b5.entry.js → p-cc2734e9.entry.js} +1 -1
- package/lmvz-components/{p-25a78ead.entry.js → p-ce1a9f39.entry.js} +1 -1
- package/lmvz-components/{p-80a26307.entry.js → p-ddc28256.entry.js} +1 -1
- package/lmvz-components/p-fd455288.entry.js +1 -0
- package/manifest.json +386 -3
- package/package.json +7 -3
- package/types/api/ds.constants.d.ts +3 -1
- package/types/api/ds.types.d.ts +7 -0
- package/types/components/lmvz-popover/lmvz-popover.d.ts +37 -0
- package/types/components.d.ts +108 -1
- package/types/utils/async/async.util.d.ts +3 -0
- package/types/utils/element/element.util.d.ts +2 -0
- package/components/p-0s99QfRy.js +0 -12
- package/components/p-B0H9qIwE.js +0 -1
- package/components/p-CJRqhXjK.js +0 -1
- package/components/p-DuEtnKRj.js +0 -1
- package/lmvz-components/p-0s99QfRy.js +0 -12
- package/lmvz-components/p-4072b2fb.entry.js +0 -1
- package/lmvz-components/p-592d509b.entry.js +0 -1
- package/lmvz-components/p-6f61c24d.entry.js +0 -1
- package/lmvz-components/p-74c7521c.entry.js +0 -1
- package/lmvz-components/p-947e1fe6.entry.js +0 -1
- package/lmvz-components/p-CFsC37ww.js +0 -1
- package/lmvz-components/p-CJRqhXjK.js +0 -1
- package/lmvz-components/p-DuEtnKRj.js +0 -1
- package/lmvz-components/p-c00f0d96.entry.js +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var logger = require('./logger-
|
|
3
|
+
var logger = require('./logger-NBdKPSou.js');
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* This module provides an implementation of the `Order` type class which is used to define a total ordering on some type `A`.
|
|
@@ -12369,7 +12369,7 @@ const runDrain = runDrain$1;
|
|
|
12369
12369
|
|
|
12370
12370
|
var axe$1 = {exports: {}};
|
|
12371
12371
|
|
|
12372
|
-
/*! axe v4.
|
|
12372
|
+
/*! axe v4.12.1
|
|
12373
12373
|
* Copyright (c) 2015 - 2026 Deque Systems, Inc.
|
|
12374
12374
|
*
|
|
12375
12375
|
* Your use of this Source Code Form is subject to the terms of the Mozilla Public
|
|
@@ -12400,7 +12400,7 @@ function requireAxe () {
|
|
|
12400
12400
|
}, _typeof(o);
|
|
12401
12401
|
}
|
|
12402
12402
|
var axe = axe || {};
|
|
12403
|
-
axe.version = '4.
|
|
12403
|
+
axe.version = '4.12.1';
|
|
12404
12404
|
if ((_typeof(module)) === 'object' && module.exports && typeof axeFunction.toString === 'function') {
|
|
12405
12405
|
axe.source = '(' + axeFunction.toString() + ')(typeof window === "object" ? window : this);';
|
|
12406
12406
|
module.exports = axe;
|
|
@@ -12409,6 +12409,136 @@ function requireAxe () {
|
|
|
12409
12409
|
window.axe = axe;
|
|
12410
12410
|
}
|
|
12411
12411
|
var _excluded = [ 'precision', 'format', 'inGamut' ], _excluded2 = [ 'space' ], _excluded3 = [ 'algorithm' ], _excluded4 = [ 'method' ], _excluded5 = [ 'maxDeltaE', 'deltaEMethod', 'steps', 'maxSteps' ], _excluded6 = [ 'node' ], _excluded7 = [ 'relatedNodes' ], _excluded8 = [ 'node' ], _excluded9 = [ 'variant' ], _excluded0 = [ 'matches' ], _excluded1 = [ 'chromium' ], _excluded10 = [ 'noImplicit' ], _excluded11 = [ 'noPresentational' ], _excluded12 = [ 'node' ], _excluded13 = [ 'environmentData' ], _excluded14 = [ 'environmentData' ], _excluded15 = [ 'environmentData' ], _excluded16 = [ 'environmentData' ], _excluded17 = [ 'environmentData' ];
|
|
12412
|
+
function _regenerator() {
|
|
12413
|
+
var e, t, r = 'function' == typeof Symbol ? Symbol : {}, n = r.iterator || '@@iterator', o = r.toStringTag || '@@toStringTag';
|
|
12414
|
+
function i(r, n, o, i) {
|
|
12415
|
+
var c = n && n.prototype instanceof Generator ? n : Generator, u = Object.create(c.prototype);
|
|
12416
|
+
return _regeneratorDefine2(u, '_invoke', function(r, n, o) {
|
|
12417
|
+
var i, c, u, f = 0, p = o || [], y = false, G = {
|
|
12418
|
+
p: 0,
|
|
12419
|
+
n: 0,
|
|
12420
|
+
v: e,
|
|
12421
|
+
a: d,
|
|
12422
|
+
f: d.bind(e, 4),
|
|
12423
|
+
d: function d(t, r) {
|
|
12424
|
+
return i = t, c = 0, u = e, G.n = r, a;
|
|
12425
|
+
}
|
|
12426
|
+
};
|
|
12427
|
+
function d(r, n) {
|
|
12428
|
+
for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) {
|
|
12429
|
+
var o, i = p[t], d = G.p, l = i[2];
|
|
12430
|
+
r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0,
|
|
12431
|
+
G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r,
|
|
12432
|
+
i[5] = n, G.n = l, c = 0));
|
|
12433
|
+
}
|
|
12434
|
+
if (o || r > 1) {
|
|
12435
|
+
return a;
|
|
12436
|
+
}
|
|
12437
|
+
throw y = true, n;
|
|
12438
|
+
}
|
|
12439
|
+
return function(o, p, l) {
|
|
12440
|
+
if (f > 1) {
|
|
12441
|
+
throw TypeError('Generator is already running');
|
|
12442
|
+
}
|
|
12443
|
+
for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y; ) {
|
|
12444
|
+
i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u);
|
|
12445
|
+
try {
|
|
12446
|
+
if (f = 2, i) {
|
|
12447
|
+
if (c || (o = 'next'), t = i[o]) {
|
|
12448
|
+
if (!(t = t.call(i, u))) {
|
|
12449
|
+
throw TypeError('iterator result is not an object');
|
|
12450
|
+
}
|
|
12451
|
+
if (!t.done) {
|
|
12452
|
+
return t;
|
|
12453
|
+
}
|
|
12454
|
+
u = t.value, c < 2 && (c = 0);
|
|
12455
|
+
} else {
|
|
12456
|
+
1 === c && (t = i['return']) && t.call(i), c < 2 && (u = TypeError('The iterator does not provide a \'' + o + '\' method'),
|
|
12457
|
+
c = 1);
|
|
12458
|
+
}
|
|
12459
|
+
i = e;
|
|
12460
|
+
} else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) {
|
|
12461
|
+
break;
|
|
12462
|
+
}
|
|
12463
|
+
} catch (t) {
|
|
12464
|
+
i = e, c = 1, u = t;
|
|
12465
|
+
} finally {
|
|
12466
|
+
f = 1;
|
|
12467
|
+
}
|
|
12468
|
+
}
|
|
12469
|
+
return {
|
|
12470
|
+
value: t,
|
|
12471
|
+
done: y
|
|
12472
|
+
};
|
|
12473
|
+
};
|
|
12474
|
+
}(r, o, i), true), u;
|
|
12475
|
+
}
|
|
12476
|
+
var a = {};
|
|
12477
|
+
function Generator() {}
|
|
12478
|
+
function GeneratorFunction() {}
|
|
12479
|
+
function GeneratorFunctionPrototype() {}
|
|
12480
|
+
t = Object.getPrototypeOf;
|
|
12481
|
+
var c = [][n] ? t(t([][n]())) : (_regeneratorDefine2(t = {}, n, function() {
|
|
12482
|
+
return this;
|
|
12483
|
+
}), t), u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c);
|
|
12484
|
+
function f(e) {
|
|
12485
|
+
return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype,
|
|
12486
|
+
_regeneratorDefine2(e, o, 'GeneratorFunction')), e.prototype = Object.create(u),
|
|
12487
|
+
e;
|
|
12488
|
+
}
|
|
12489
|
+
return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine2(u, 'constructor', GeneratorFunctionPrototype),
|
|
12490
|
+
_regeneratorDefine2(GeneratorFunctionPrototype, 'constructor', GeneratorFunction),
|
|
12491
|
+
GeneratorFunction.displayName = 'GeneratorFunction', _regeneratorDefine2(GeneratorFunctionPrototype, o, 'GeneratorFunction'),
|
|
12492
|
+
_regeneratorDefine2(u), _regeneratorDefine2(u, o, 'Generator'), _regeneratorDefine2(u, n, function() {
|
|
12493
|
+
return this;
|
|
12494
|
+
}), _regeneratorDefine2(u, 'toString', function() {
|
|
12495
|
+
return '[object Generator]';
|
|
12496
|
+
}), (_regenerator = function _regenerator() {
|
|
12497
|
+
return {
|
|
12498
|
+
w: i,
|
|
12499
|
+
m: f
|
|
12500
|
+
};
|
|
12501
|
+
})();
|
|
12502
|
+
}
|
|
12503
|
+
function _regeneratorDefine2(e, r, n, t) {
|
|
12504
|
+
var i = Object.defineProperty;
|
|
12505
|
+
_regeneratorDefine2 = function _regeneratorDefine(e, r, n, t) {
|
|
12506
|
+
function o(r, n) {
|
|
12507
|
+
_regeneratorDefine2(e, r, function(e) {
|
|
12508
|
+
return this._invoke(r, n, e);
|
|
12509
|
+
});
|
|
12510
|
+
}
|
|
12511
|
+
r ? i ? i(e, r, {
|
|
12512
|
+
value: n,
|
|
12513
|
+
enumerable: !t,
|
|
12514
|
+
configurable: !t,
|
|
12515
|
+
writable: !t
|
|
12516
|
+
}) : e[r] = n : (o('next', 0), o('throw', 1), o('return', 2));
|
|
12517
|
+
}, _regeneratorDefine2(e, r, n, t);
|
|
12518
|
+
}
|
|
12519
|
+
function asyncGeneratorStep(n, t, e, r, o, a, c) {
|
|
12520
|
+
try {
|
|
12521
|
+
var i = n[a](c), u = i.value;
|
|
12522
|
+
} catch (n) {
|
|
12523
|
+
return void e(n);
|
|
12524
|
+
}
|
|
12525
|
+
i.done ? t(u) : Promise.resolve(u).then(r, o);
|
|
12526
|
+
}
|
|
12527
|
+
function _asyncToGenerator(n) {
|
|
12528
|
+
return function() {
|
|
12529
|
+
var t = this, e = arguments;
|
|
12530
|
+
return new Promise(function(r, o) {
|
|
12531
|
+
var a = n.apply(t, e);
|
|
12532
|
+
function _next(n) {
|
|
12533
|
+
asyncGeneratorStep(a, r, o, _next, _throw, 'next', n);
|
|
12534
|
+
}
|
|
12535
|
+
function _throw(n) {
|
|
12536
|
+
asyncGeneratorStep(a, r, o, _next, _throw, 'throw', n);
|
|
12537
|
+
}
|
|
12538
|
+
_next(void 0);
|
|
12539
|
+
});
|
|
12540
|
+
};
|
|
12541
|
+
}
|
|
12412
12542
|
function _toArray(r) {
|
|
12413
12543
|
return _arrayWithHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableRest();
|
|
12414
12544
|
}
|
|
@@ -18914,12 +19044,18 @@ function requireAxe () {
|
|
|
18914
19044
|
Object.freeze(constants.resultGroupMap);
|
|
18915
19045
|
Object.freeze(constants);
|
|
18916
19046
|
var constants_default = constants;
|
|
19047
|
+
var logger;
|
|
18917
19048
|
function log() {
|
|
18918
|
-
if (
|
|
18919
|
-
|
|
19049
|
+
if (logger) {
|
|
19050
|
+
logger.apply(void 0, arguments);
|
|
19051
|
+
} else if ((typeof console === 'undefined' ? 'undefined' : _typeof(console)) === 'object' && console.log) {
|
|
19052
|
+
var _console;
|
|
19053
|
+
(_console = console).log.apply(_console, arguments);
|
|
18920
19054
|
}
|
|
18921
19055
|
}
|
|
18922
|
-
|
|
19056
|
+
function setLogger(fn) {
|
|
19057
|
+
logger = fn;
|
|
19058
|
+
}
|
|
18923
19059
|
var whitespaceRegex = /[\t\r\n\f]/g;
|
|
18924
19060
|
var AbstractVirtualNode = function() {
|
|
18925
19061
|
function AbstractVirtualNode() {
|
|
@@ -19039,6 +19175,9 @@ function requireAxe () {
|
|
|
19039
19175
|
getCheckOption: function getCheckOption() {
|
|
19040
19176
|
return get_check_option_default;
|
|
19041
19177
|
},
|
|
19178
|
+
getElementInternals: function getElementInternals() {
|
|
19179
|
+
return _getElementInternals;
|
|
19180
|
+
},
|
|
19042
19181
|
getElementSource: function getElementSource() {
|
|
19043
19182
|
return _getElementSource;
|
|
19044
19183
|
},
|
|
@@ -19112,7 +19251,7 @@ function requireAxe () {
|
|
|
19112
19251
|
return is_hidden_default;
|
|
19113
19252
|
},
|
|
19114
19253
|
isHtmlElement: function isHtmlElement() {
|
|
19115
|
-
return
|
|
19254
|
+
return _isHtmlElement;
|
|
19116
19255
|
},
|
|
19117
19256
|
isLabelledFramesSelector: function isLabelledFramesSelector() {
|
|
19118
19257
|
return _isLabelledFramesSelector;
|
|
@@ -19126,6 +19265,9 @@ function requireAxe () {
|
|
|
19126
19265
|
isShadowRoot: function isShadowRoot() {
|
|
19127
19266
|
return is_shadow_root_default;
|
|
19128
19267
|
},
|
|
19268
|
+
isValidCustomElementName: function isValidCustomElementName() {
|
|
19269
|
+
return _isValidCustomElementName;
|
|
19270
|
+
},
|
|
19129
19271
|
isValidLang: function isValidLang() {
|
|
19130
19272
|
return valid_langs_default;
|
|
19131
19273
|
},
|
|
@@ -19159,6 +19301,9 @@ function requireAxe () {
|
|
|
19159
19301
|
nodeSorter: function nodeSorter() {
|
|
19160
19302
|
return node_sorter_default;
|
|
19161
19303
|
},
|
|
19304
|
+
normalizeRunOptions: function normalizeRunOptions() {
|
|
19305
|
+
return _normalizeRunOptions;
|
|
19306
|
+
},
|
|
19162
19307
|
objectHasOwn: function objectHasOwn() {
|
|
19163
19308
|
return _objectHasOwn;
|
|
19164
19309
|
},
|
|
@@ -20308,8 +20453,8 @@ function requireAxe () {
|
|
|
20308
20453
|
format.type || (format.type = 'function');
|
|
20309
20454
|
format.name || (format.name = 'color');
|
|
20310
20455
|
format.coordGrammar = parseCoordGrammar(format.coords);
|
|
20311
|
-
var coordFormats = Object.entries(this.coords).map(function(
|
|
20312
|
-
var
|
|
20456
|
+
var coordFormats = Object.entries(this.coords).map(function(_ref154, i) {
|
|
20457
|
+
var _ref155 = _slicedToArray(_ref154, 2), coordMeta = _ref155[1];
|
|
20313
20458
|
var outputType = format.coordGrammar[i][0];
|
|
20314
20459
|
var fromRange = coordMeta.range || coordMeta.refRange;
|
|
20315
20460
|
var toRange = outputType.range, suffix = '';
|
|
@@ -23150,7 +23295,7 @@ function requireAxe () {
|
|
|
23150
23295
|
return Array.from(doc.querySelectorAll(selector));
|
|
23151
23296
|
});
|
|
23152
23297
|
function generateAncestry(node) {
|
|
23153
|
-
var nodeName2 = node.nodeName.toLowerCase();
|
|
23298
|
+
var nodeName2 = escape_selector_default(node.nodeName.toLowerCase());
|
|
23154
23299
|
var parentElement = node.parentElement;
|
|
23155
23300
|
var parentNode = node.parentNode;
|
|
23156
23301
|
var nthChild = '';
|
|
@@ -23721,7 +23866,7 @@ function requireAxe () {
|
|
|
23721
23866
|
err2 = e;
|
|
23722
23867
|
setTimeout(function() {
|
|
23723
23868
|
if (err2 !== void 0 && err2 !== null) {
|
|
23724
|
-
|
|
23869
|
+
log('Uncaught error (of queue)', err2);
|
|
23725
23870
|
}
|
|
23726
23871
|
}, 1);
|
|
23727
23872
|
};
|
|
@@ -24208,7 +24353,7 @@ function requireAxe () {
|
|
|
24208
24353
|
var win = node.contentWindow;
|
|
24209
24354
|
var pingWaitTime = (_parameters$options$p = (_parameters$options = parameters.options) === null || _parameters$options === void 0 ? void 0 : _parameters$options.pingWaitTime) !== null && _parameters$options$p !== void 0 ? _parameters$options$p : 500;
|
|
24210
24355
|
if (!win) {
|
|
24211
|
-
|
|
24356
|
+
log('Frame does not have a content window', node);
|
|
24212
24357
|
resolve(null);
|
|
24213
24358
|
return;
|
|
24214
24359
|
}
|
|
@@ -24510,11 +24655,18 @@ function requireAxe () {
|
|
|
24510
24655
|
});
|
|
24511
24656
|
}
|
|
24512
24657
|
var extend_meta_data_default = extendMetaData;
|
|
24658
|
+
var reservedNames = [ 'annotation-xml', 'color-profile', 'font-face', 'font-face-src', 'font-face-uri', 'font-face-format', 'font-face-name', 'missing-glyph' ];
|
|
24659
|
+
var validLocalNameRegex = /^(?:[A-Za-z](?:[\x01-\x08\x0B\x0E-\x1F!-\.0-=\?-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*|(?:[:_\x80-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])(?:[\x2D\.0-:A-Z_a-z\x80-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])*)$/;
|
|
24660
|
+
var alphaLowerRegex = /[a-z]/;
|
|
24661
|
+
var alphaUpperRegex = /[A-Z]/;
|
|
24662
|
+
function _isValidCustomElementName(nodeName2) {
|
|
24663
|
+
return !reservedNames.includes(nodeName2) && validLocalNameRegex.test(nodeName2) && alphaLowerRegex.test(nodeName2[0]) && !alphaUpperRegex.test(nodeName2) && nodeName2.includes('-');
|
|
24664
|
+
}
|
|
24513
24665
|
var possibleShadowRoots = [ 'article', 'aside', 'blockquote', 'body', 'div', 'footer', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'header', 'main', 'nav', 'p', 'section', 'span' ];
|
|
24514
24666
|
function isShadowRoot(node) {
|
|
24515
24667
|
if (node.shadowRoot) {
|
|
24516
24668
|
var nodeName2 = node.nodeName.toLowerCase();
|
|
24517
|
-
if (possibleShadowRoots.includes(nodeName2) ||
|
|
24669
|
+
if (possibleShadowRoots.includes(nodeName2) || _isValidCustomElementName(nodeName2)) {
|
|
24518
24670
|
return true;
|
|
24519
24671
|
}
|
|
24520
24672
|
}
|
|
@@ -28498,12 +28650,15 @@ function requireAxe () {
|
|
|
28498
28650
|
}
|
|
28499
28651
|
var get_element_spec_default = getElementSpec;
|
|
28500
28652
|
function implicitRole2(node) {
|
|
28653
|
+
var _vNode$elementInterna;
|
|
28501
28654
|
var _ref56 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, chromium = _ref56.chromium;
|
|
28502
|
-
var
|
|
28503
|
-
node = vNode.actualNode;
|
|
28655
|
+
var _nodeLookup10 = _nodeLookup(node), vNode = _nodeLookup10.vNode;
|
|
28504
28656
|
if (!vNode) {
|
|
28505
28657
|
throw new ReferenceError('Cannot get implicit role of a node outside the current scope.');
|
|
28506
28658
|
}
|
|
28659
|
+
if ((_vNode$elementInterna = vNode.elementInternals) !== null && _vNode$elementInterna !== void 0 && _vNode$elementInterna.role) {
|
|
28660
|
+
return vNode.elementInternals.role;
|
|
28661
|
+
}
|
|
28507
28662
|
var nodeName2 = vNode.props.nodeName;
|
|
28508
28663
|
var role = implicit_html_roles_default[nodeName2];
|
|
28509
28664
|
if (!role && chromium) {
|
|
@@ -28574,7 +28729,7 @@ function requireAxe () {
|
|
|
28574
28729
|
function resolveRole(node) {
|
|
28575
28730
|
var _ref58 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
28576
28731
|
var noImplicit = _ref58.noImplicit, roleOptions = _objectWithoutProperties(_ref58, _excluded10);
|
|
28577
|
-
var
|
|
28732
|
+
var _nodeLookup11 = _nodeLookup(node), vNode = _nodeLookup11.vNode;
|
|
28578
28733
|
if (vNode.props.nodeType !== 1) {
|
|
28579
28734
|
return null;
|
|
28580
28735
|
}
|
|
@@ -28602,7 +28757,7 @@ function requireAxe () {
|
|
|
28602
28757
|
var get_role_default = getRole;
|
|
28603
28758
|
var alwaysTitleElements = [ 'iframe' ];
|
|
28604
28759
|
function titleText(node) {
|
|
28605
|
-
var
|
|
28760
|
+
var _nodeLookup12 = _nodeLookup(node), vNode = _nodeLookup12.vNode;
|
|
28606
28761
|
if (vNode.props.nodeType !== 1 || !node.hasAttr('title')) {
|
|
28607
28762
|
return '';
|
|
28608
28763
|
}
|
|
@@ -28679,18 +28834,143 @@ function requireAxe () {
|
|
|
28679
28834
|
}
|
|
28680
28835
|
return isVisibleToScreenReadersVirtual(vNode.parent, true);
|
|
28681
28836
|
});
|
|
28837
|
+
function getUnicodeNonBmpRegExp() {
|
|
28838
|
+
return /[\u1D00-\u1D7F\u1D80-\u1DBF\u1DC0-\u1DFF\u20A0-\u20CF\u20D0-\u20FF\u2100-\u214F\u2150-\u218F\u2190-\u21FF\u2200-\u22FF\u2300-\u23FF\u2400-\u243F\u2440-\u245F\u2460-\u24FF\u2500-\u257F\u2580-\u259F\u25A0-\u25FF\u2600-\u26FF\u2700-\u27BF\uE000-\uF8FF]/g;
|
|
28839
|
+
}
|
|
28840
|
+
function getPunctuationRegExp() {
|
|
28841
|
+
return /[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&\xa3\xa2\xa5\xa7\u20ac()*+,\-.\/:;<=>?@\[\]^_`{|}~\xb1]/g;
|
|
28842
|
+
}
|
|
28843
|
+
function getSupplementaryPrivateUseRegExp() {
|
|
28844
|
+
return /[\uDB80-\uDBBF][\uDC00-\uDFFF]/g;
|
|
28845
|
+
}
|
|
28846
|
+
function getCategoryFormatRegExp() {
|
|
28847
|
+
return /[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC38]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/g;
|
|
28848
|
+
}
|
|
28849
|
+
function hasUnicode(str, options) {
|
|
28850
|
+
var emoji = options.emoji, nonBmp = options.nonBmp, punctuations = options.punctuations;
|
|
28851
|
+
var value = false;
|
|
28852
|
+
if (emoji) {
|
|
28853
|
+
value || (value = emoji_regex_default().test(str));
|
|
28854
|
+
}
|
|
28855
|
+
if (nonBmp) {
|
|
28856
|
+
value || (value = getUnicodeNonBmpRegExp().test(str) || getSupplementaryPrivateUseRegExp().test(str) || getCategoryFormatRegExp().test(str));
|
|
28857
|
+
}
|
|
28858
|
+
if (punctuations) {
|
|
28859
|
+
value || (value = getPunctuationRegExp().test(str));
|
|
28860
|
+
}
|
|
28861
|
+
return value;
|
|
28862
|
+
}
|
|
28863
|
+
var has_unicode_default = hasUnicode;
|
|
28864
|
+
function _isIconLigature(textVNode) {
|
|
28865
|
+
var differenceThreshold = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : .15;
|
|
28866
|
+
var occurrenceThreshold = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 3;
|
|
28867
|
+
var nodeValue = textVNode.actualNode.nodeValue.trim();
|
|
28868
|
+
if (!sanitize_default(nodeValue) || has_unicode_default(nodeValue, {
|
|
28869
|
+
emoji: true,
|
|
28870
|
+
nonBmp: true
|
|
28871
|
+
})) {
|
|
28872
|
+
return false;
|
|
28873
|
+
}
|
|
28874
|
+
var canvasContext = cache_default.get('canvasContext', function() {
|
|
28875
|
+
return document.createElement('canvas').getContext('2d', {
|
|
28876
|
+
willReadFrequently: true
|
|
28877
|
+
});
|
|
28878
|
+
});
|
|
28879
|
+
var canvas = canvasContext.canvas;
|
|
28880
|
+
var fonts = cache_default.get('fonts', function() {
|
|
28881
|
+
return {};
|
|
28882
|
+
});
|
|
28883
|
+
var style = window.getComputedStyle(textVNode.parent.actualNode);
|
|
28884
|
+
var fontFamily = style.getPropertyValue('font-family');
|
|
28885
|
+
if (!fonts[fontFamily]) {
|
|
28886
|
+
fonts[fontFamily] = {
|
|
28887
|
+
occurrences: 0,
|
|
28888
|
+
numLigatures: 0
|
|
28889
|
+
};
|
|
28890
|
+
}
|
|
28891
|
+
var font = fonts[fontFamily];
|
|
28892
|
+
if (font.occurrences >= occurrenceThreshold) {
|
|
28893
|
+
if (font.numLigatures / font.occurrences === 1) {
|
|
28894
|
+
return true;
|
|
28895
|
+
} else if (font.numLigatures === 0) {
|
|
28896
|
+
return false;
|
|
28897
|
+
}
|
|
28898
|
+
}
|
|
28899
|
+
font.occurrences++;
|
|
28900
|
+
var fontSize = 30;
|
|
28901
|
+
var fontStyle = ''.concat(fontSize, 'px ').concat(fontFamily);
|
|
28902
|
+
canvasContext.font = fontStyle;
|
|
28903
|
+
var firstChar = nodeValue.charAt(0);
|
|
28904
|
+
var width = canvasContext.measureText(firstChar).width;
|
|
28905
|
+
if (width === 0) {
|
|
28906
|
+
font.numLigatures++;
|
|
28907
|
+
return true;
|
|
28908
|
+
}
|
|
28909
|
+
if (width < 30) {
|
|
28910
|
+
var diff = 30 / width;
|
|
28911
|
+
width *= diff;
|
|
28912
|
+
fontSize *= diff;
|
|
28913
|
+
fontStyle = ''.concat(fontSize, 'px ').concat(fontFamily);
|
|
28914
|
+
}
|
|
28915
|
+
canvas.width = width;
|
|
28916
|
+
canvas.height = fontSize;
|
|
28917
|
+
canvasContext.font = fontStyle;
|
|
28918
|
+
canvasContext.textAlign = 'left';
|
|
28919
|
+
canvasContext.textBaseline = 'top';
|
|
28920
|
+
canvasContext.fillText(firstChar, 0, 0);
|
|
28921
|
+
var compareData = new Uint32Array(canvasContext.getImageData(0, 0, width, fontSize).data.buffer);
|
|
28922
|
+
if (!compareData.some(function(pixel) {
|
|
28923
|
+
return pixel;
|
|
28924
|
+
})) {
|
|
28925
|
+
font.numLigatures++;
|
|
28926
|
+
return true;
|
|
28927
|
+
}
|
|
28928
|
+
canvasContext.clearRect(0, 0, width, fontSize);
|
|
28929
|
+
canvasContext.fillText(nodeValue, 0, 0);
|
|
28930
|
+
var compareWith = new Uint32Array(canvasContext.getImageData(0, 0, width, fontSize).data.buffer);
|
|
28931
|
+
var differences = compareData.reduce(function(diff, pixel, i) {
|
|
28932
|
+
if (pixel === 0 && compareWith[i] === 0) {
|
|
28933
|
+
return diff;
|
|
28934
|
+
}
|
|
28935
|
+
if (pixel !== 0 && compareWith[i] !== 0) {
|
|
28936
|
+
return diff;
|
|
28937
|
+
}
|
|
28938
|
+
return ++diff;
|
|
28939
|
+
}, 0);
|
|
28940
|
+
var expectedWidth = nodeValue.split('').reduce(function(totalWidth, _char2) {
|
|
28941
|
+
return totalWidth + canvasContext.measureText(_char2).width;
|
|
28942
|
+
}, 0);
|
|
28943
|
+
var actualWidth = canvasContext.measureText(nodeValue).width;
|
|
28944
|
+
var pixelDifference = differences / compareData.length;
|
|
28945
|
+
var sizeDifference = 1 - actualWidth / expectedWidth;
|
|
28946
|
+
if (pixelDifference >= differenceThreshold && sizeDifference >= differenceThreshold) {
|
|
28947
|
+
font.numLigatures++;
|
|
28948
|
+
return true;
|
|
28949
|
+
}
|
|
28950
|
+
return false;
|
|
28951
|
+
}
|
|
28682
28952
|
function visibleVirtual(element, screenReader, noRecursing) {
|
|
28683
|
-
var
|
|
28953
|
+
var options = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
|
|
28954
|
+
var _nodeLookup13 = _nodeLookup(element), vNode = _nodeLookup13.vNode;
|
|
28684
28955
|
var visibleMethod = screenReader ? _isVisibleToScreenReaders : _isVisibleOnScreen;
|
|
28685
28956
|
var visible2 = !element.actualNode || element.actualNode && visibleMethod(element);
|
|
28957
|
+
var ignoreIconLigature = options.ignoreIconLigature, pixelThreshold = options.pixelThreshold, occurrenceThreshold = options.occurrenceThreshold;
|
|
28686
28958
|
var result = vNode.children.map(function(child) {
|
|
28687
|
-
var _child$props = child.props, nodeType = _child$props.nodeType, nodeValue = _child$props.nodeValue;
|
|
28959
|
+
var _child$props = child.props, nodeType = _child$props.nodeType, nodeValue = _child$props.nodeValue, nodeName2 = _child$props.nodeName;
|
|
28688
28960
|
if (nodeType === 3) {
|
|
28689
|
-
if (nodeValue
|
|
28690
|
-
return
|
|
28961
|
+
if (!nodeValue || !visible2) {
|
|
28962
|
+
return '';
|
|
28963
|
+
}
|
|
28964
|
+
if (ignoreIconLigature && _isIconLigature(child, pixelThreshold, occurrenceThreshold)) {
|
|
28965
|
+
return '';
|
|
28691
28966
|
}
|
|
28692
|
-
|
|
28693
|
-
|
|
28967
|
+
return nodeValue;
|
|
28968
|
+
}
|
|
28969
|
+
if (nodeName2 === 'br') {
|
|
28970
|
+
return ' ';
|
|
28971
|
+
}
|
|
28972
|
+
if (!noRecursing) {
|
|
28973
|
+
return visibleVirtual(child, screenReader, false, options);
|
|
28694
28974
|
}
|
|
28695
28975
|
}).join('');
|
|
28696
28976
|
return sanitize_default(result);
|
|
@@ -28754,19 +29034,19 @@ function requireAxe () {
|
|
|
28754
29034
|
return accName || step(virtualNode, context);
|
|
28755
29035
|
}, '');
|
|
28756
29036
|
if (context.debug) {
|
|
28757
|
-
|
|
29037
|
+
log(valueString || '{empty-value}', actualNode, context);
|
|
28758
29038
|
}
|
|
28759
29039
|
return valueString;
|
|
28760
29040
|
}
|
|
28761
29041
|
function nativeTextboxValue(node) {
|
|
28762
|
-
var
|
|
29042
|
+
var _nodeLookup14 = _nodeLookup(node), vNode = _nodeLookup14.vNode;
|
|
28763
29043
|
if (is_native_textbox_default(vNode)) {
|
|
28764
29044
|
return vNode.props.value || '';
|
|
28765
29045
|
}
|
|
28766
29046
|
return '';
|
|
28767
29047
|
}
|
|
28768
29048
|
function nativeSelectValue(node) {
|
|
28769
|
-
var
|
|
29049
|
+
var _nodeLookup15 = _nodeLookup(node), vNode = _nodeLookup15.vNode;
|
|
28770
29050
|
if (!is_native_select_default(vNode)) {
|
|
28771
29051
|
return '';
|
|
28772
29052
|
}
|
|
@@ -28782,7 +29062,7 @@ function requireAxe () {
|
|
|
28782
29062
|
}).join(' ') || '';
|
|
28783
29063
|
}
|
|
28784
29064
|
function ariaTextboxValue(node) {
|
|
28785
|
-
var
|
|
29065
|
+
var _nodeLookup16 = _nodeLookup(node), vNode = _nodeLookup16.vNode, domNode = _nodeLookup16.domNode;
|
|
28786
29066
|
if (!is_aria_textbox_default(vNode)) {
|
|
28787
29067
|
return '';
|
|
28788
29068
|
}
|
|
@@ -28793,7 +29073,7 @@ function requireAxe () {
|
|
|
28793
29073
|
}
|
|
28794
29074
|
}
|
|
28795
29075
|
function ariaListboxValue(node, context) {
|
|
28796
|
-
var
|
|
29076
|
+
var _nodeLookup17 = _nodeLookup(node), vNode = _nodeLookup17.vNode;
|
|
28797
29077
|
if (!is_aria_listbox_default(vNode)) {
|
|
28798
29078
|
return '';
|
|
28799
29079
|
}
|
|
@@ -28806,7 +29086,7 @@ function requireAxe () {
|
|
|
28806
29086
|
return _accessibleTextVirtual(selected[0], context);
|
|
28807
29087
|
}
|
|
28808
29088
|
function ariaComboboxValue(node, context) {
|
|
28809
|
-
var
|
|
29089
|
+
var _nodeLookup18 = _nodeLookup(node), vNode = _nodeLookup18.vNode;
|
|
28810
29090
|
if (!is_aria_combobox_default(vNode)) {
|
|
28811
29091
|
return '';
|
|
28812
29092
|
}
|
|
@@ -28816,7 +29096,7 @@ function requireAxe () {
|
|
|
28816
29096
|
return listbox ? ariaListboxValue(listbox, context) : '';
|
|
28817
29097
|
}
|
|
28818
29098
|
function ariaRangeValue(node) {
|
|
28819
|
-
var
|
|
29099
|
+
var _nodeLookup19 = _nodeLookup(node), vNode = _nodeLookup19.vNode;
|
|
28820
29100
|
if (!is_aria_range_default(vNode) || !vNode.hasAttr('aria-valuenow')) {
|
|
28821
29101
|
return '';
|
|
28822
29102
|
}
|
|
@@ -28976,121 +29256,6 @@ function requireAxe () {
|
|
|
28976
29256
|
return native_text_methods_default[methodName];
|
|
28977
29257
|
});
|
|
28978
29258
|
}
|
|
28979
|
-
function getUnicodeNonBmpRegExp() {
|
|
28980
|
-
return /[\u1D00-\u1D7F\u1D80-\u1DBF\u1DC0-\u1DFF\u20A0-\u20CF\u20D0-\u20FF\u2100-\u214F\u2150-\u218F\u2190-\u21FF\u2200-\u22FF\u2300-\u23FF\u2400-\u243F\u2440-\u245F\u2460-\u24FF\u2500-\u257F\u2580-\u259F\u25A0-\u25FF\u2600-\u26FF\u2700-\u27BF\uE000-\uF8FF]/g;
|
|
28981
|
-
}
|
|
28982
|
-
function getPunctuationRegExp() {
|
|
28983
|
-
return /[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&\xa3\xa2\xa5\xa7\u20ac()*+,\-.\/:;<=>?@\[\]^_`{|}~\xb1]/g;
|
|
28984
|
-
}
|
|
28985
|
-
function getSupplementaryPrivateUseRegExp() {
|
|
28986
|
-
return /[\uDB80-\uDBBF][\uDC00-\uDFFF]/g;
|
|
28987
|
-
}
|
|
28988
|
-
function getCategoryFormatRegExp() {
|
|
28989
|
-
return /[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC38]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/g;
|
|
28990
|
-
}
|
|
28991
|
-
function hasUnicode(str, options) {
|
|
28992
|
-
var emoji = options.emoji, nonBmp = options.nonBmp, punctuations = options.punctuations;
|
|
28993
|
-
var value = false;
|
|
28994
|
-
if (emoji) {
|
|
28995
|
-
value || (value = emoji_regex_default().test(str));
|
|
28996
|
-
}
|
|
28997
|
-
if (nonBmp) {
|
|
28998
|
-
value || (value = getUnicodeNonBmpRegExp().test(str) || getSupplementaryPrivateUseRegExp().test(str) || getCategoryFormatRegExp().test(str));
|
|
28999
|
-
}
|
|
29000
|
-
if (punctuations) {
|
|
29001
|
-
value || (value = getPunctuationRegExp().test(str));
|
|
29002
|
-
}
|
|
29003
|
-
return value;
|
|
29004
|
-
}
|
|
29005
|
-
var has_unicode_default = hasUnicode;
|
|
29006
|
-
function _isIconLigature(textVNode) {
|
|
29007
|
-
var differenceThreshold = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : .15;
|
|
29008
|
-
var occurrenceThreshold = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 3;
|
|
29009
|
-
var nodeValue = textVNode.actualNode.nodeValue.trim();
|
|
29010
|
-
if (!sanitize_default(nodeValue) || has_unicode_default(nodeValue, {
|
|
29011
|
-
emoji: true,
|
|
29012
|
-
nonBmp: true
|
|
29013
|
-
})) {
|
|
29014
|
-
return false;
|
|
29015
|
-
}
|
|
29016
|
-
var canvasContext = cache_default.get('canvasContext', function() {
|
|
29017
|
-
return document.createElement('canvas').getContext('2d', {
|
|
29018
|
-
willReadFrequently: true
|
|
29019
|
-
});
|
|
29020
|
-
});
|
|
29021
|
-
var canvas = canvasContext.canvas;
|
|
29022
|
-
var fonts = cache_default.get('fonts', function() {
|
|
29023
|
-
return {};
|
|
29024
|
-
});
|
|
29025
|
-
var style = window.getComputedStyle(textVNode.parent.actualNode);
|
|
29026
|
-
var fontFamily = style.getPropertyValue('font-family');
|
|
29027
|
-
if (!fonts[fontFamily]) {
|
|
29028
|
-
fonts[fontFamily] = {
|
|
29029
|
-
occurrences: 0,
|
|
29030
|
-
numLigatures: 0
|
|
29031
|
-
};
|
|
29032
|
-
}
|
|
29033
|
-
var font = fonts[fontFamily];
|
|
29034
|
-
if (font.occurrences >= occurrenceThreshold) {
|
|
29035
|
-
if (font.numLigatures / font.occurrences === 1) {
|
|
29036
|
-
return true;
|
|
29037
|
-
} else if (font.numLigatures === 0) {
|
|
29038
|
-
return false;
|
|
29039
|
-
}
|
|
29040
|
-
}
|
|
29041
|
-
font.occurrences++;
|
|
29042
|
-
var fontSize = 30;
|
|
29043
|
-
var fontStyle = ''.concat(fontSize, 'px ').concat(fontFamily);
|
|
29044
|
-
canvasContext.font = fontStyle;
|
|
29045
|
-
var firstChar = nodeValue.charAt(0);
|
|
29046
|
-
var width = canvasContext.measureText(firstChar).width;
|
|
29047
|
-
if (width === 0) {
|
|
29048
|
-
font.numLigatures++;
|
|
29049
|
-
return true;
|
|
29050
|
-
}
|
|
29051
|
-
if (width < 30) {
|
|
29052
|
-
var diff = 30 / width;
|
|
29053
|
-
width *= diff;
|
|
29054
|
-
fontSize *= diff;
|
|
29055
|
-
fontStyle = ''.concat(fontSize, 'px ').concat(fontFamily);
|
|
29056
|
-
}
|
|
29057
|
-
canvas.width = width;
|
|
29058
|
-
canvas.height = fontSize;
|
|
29059
|
-
canvasContext.font = fontStyle;
|
|
29060
|
-
canvasContext.textAlign = 'left';
|
|
29061
|
-
canvasContext.textBaseline = 'top';
|
|
29062
|
-
canvasContext.fillText(firstChar, 0, 0);
|
|
29063
|
-
var compareData = new Uint32Array(canvasContext.getImageData(0, 0, width, fontSize).data.buffer);
|
|
29064
|
-
if (!compareData.some(function(pixel) {
|
|
29065
|
-
return pixel;
|
|
29066
|
-
})) {
|
|
29067
|
-
font.numLigatures++;
|
|
29068
|
-
return true;
|
|
29069
|
-
}
|
|
29070
|
-
canvasContext.clearRect(0, 0, width, fontSize);
|
|
29071
|
-
canvasContext.fillText(nodeValue, 0, 0);
|
|
29072
|
-
var compareWith = new Uint32Array(canvasContext.getImageData(0, 0, width, fontSize).data.buffer);
|
|
29073
|
-
var differences = compareData.reduce(function(diff, pixel, i) {
|
|
29074
|
-
if (pixel === 0 && compareWith[i] === 0) {
|
|
29075
|
-
return diff;
|
|
29076
|
-
}
|
|
29077
|
-
if (pixel !== 0 && compareWith[i] !== 0) {
|
|
29078
|
-
return diff;
|
|
29079
|
-
}
|
|
29080
|
-
return ++diff;
|
|
29081
|
-
}, 0);
|
|
29082
|
-
var expectedWidth = nodeValue.split('').reduce(function(totalWidth, _char2) {
|
|
29083
|
-
return totalWidth + canvasContext.measureText(_char2).width;
|
|
29084
|
-
}, 0);
|
|
29085
|
-
var actualWidth = canvasContext.measureText(nodeValue).width;
|
|
29086
|
-
var pixelDifference = differences / compareData.length;
|
|
29087
|
-
var sizeDifference = 1 - actualWidth / expectedWidth;
|
|
29088
|
-
if (pixelDifference >= differenceThreshold && sizeDifference >= differenceThreshold) {
|
|
29089
|
-
font.numLigatures++;
|
|
29090
|
-
return true;
|
|
29091
|
-
}
|
|
29092
|
-
return false;
|
|
29093
|
-
}
|
|
29094
29259
|
function _accessibleTextVirtual(virtualNode) {
|
|
29095
29260
|
var context = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
29096
29261
|
context = prepareContext(virtualNode, context);
|
|
@@ -29125,7 +29290,10 @@ function requireAxe () {
|
|
|
29125
29290
|
if (!virtualNode) {
|
|
29126
29291
|
return false;
|
|
29127
29292
|
}
|
|
29128
|
-
if (
|
|
29293
|
+
if (context.includeHidden && !nativelyHidden(virtualNode)) {
|
|
29294
|
+
return false;
|
|
29295
|
+
}
|
|
29296
|
+
if (virtualNode.props.nodeType !== 1) {
|
|
29129
29297
|
return false;
|
|
29130
29298
|
}
|
|
29131
29299
|
return !_isVisibleToScreenReaders(virtualNode);
|
|
@@ -29438,7 +29606,7 @@ function requireAxe () {
|
|
|
29438
29606
|
var get_text_element_stack_default = getTextElementStack;
|
|
29439
29607
|
var visualRoles = [ 'checkbox', 'img', 'meter', 'progressbar', 'scrollbar', 'radio', 'slider', 'spinbutton', 'textbox' ];
|
|
29440
29608
|
function isVisualContent(el) {
|
|
29441
|
-
var
|
|
29609
|
+
var _nodeLookup20 = _nodeLookup(el), vNode = _nodeLookup20.vNode;
|
|
29442
29610
|
var role = axe.commons.aria.getExplicitRole(vNode);
|
|
29443
29611
|
if (role) {
|
|
29444
29612
|
return visualRoles.indexOf(role) !== -1;
|
|
@@ -29506,7 +29674,7 @@ function requireAxe () {
|
|
|
29506
29674
|
}
|
|
29507
29675
|
var inserted_into_focus_order_default = insertedIntoFocusOrder;
|
|
29508
29676
|
function isHiddenWithCSS(el, descendentVisibilityValue) {
|
|
29509
|
-
var
|
|
29677
|
+
var _nodeLookup21 = _nodeLookup(el), vNode = _nodeLookup21.vNode, domNode = _nodeLookup21.domNode;
|
|
29510
29678
|
if (!vNode) {
|
|
29511
29679
|
return _isHiddenWithCSS(domNode, descendentVisibilityValue);
|
|
29512
29680
|
}
|
|
@@ -29569,7 +29737,7 @@ function requireAxe () {
|
|
|
29569
29737
|
var inlineBlockLike = [ 'inline-block', 'inline-flex', 'inline-grid' ];
|
|
29570
29738
|
function isInTextBlock(node) {
|
|
29571
29739
|
var _ref64 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, noLengthCompare = _ref64.noLengthCompare, _ref64$includeInlineB = _ref64.includeInlineBlock, includeInlineBlock = _ref64$includeInlineB === void 0 ? false : _ref64$includeInlineB;
|
|
29572
|
-
var
|
|
29740
|
+
var _nodeLookup22 = _nodeLookup(node), vNode = _nodeLookup22.vNode, domNode = _nodeLookup22.domNode;
|
|
29573
29741
|
if (isBlock(domNode) || !includeInlineBlock && isInlineBlockLike(vNode)) {
|
|
29574
29742
|
return false;
|
|
29575
29743
|
}
|
|
@@ -29619,7 +29787,7 @@ function requireAxe () {
|
|
|
29619
29787
|
}
|
|
29620
29788
|
var is_in_text_block_default = isInTextBlock;
|
|
29621
29789
|
function isBlock(node) {
|
|
29622
|
-
var
|
|
29790
|
+
var _nodeLookup23 = _nodeLookup(node), vNode = _nodeLookup23.vNode;
|
|
29623
29791
|
var display2 = vNode.getComputedStylePropertyValue('display');
|
|
29624
29792
|
return blockLike.includes(display2) || display2.substr(0, 6) === 'table-';
|
|
29625
29793
|
}
|
|
@@ -30487,6 +30655,20 @@ function requireAxe () {
|
|
|
30487
30655
|
}
|
|
30488
30656
|
return this._cache.boundingClientRect;
|
|
30489
30657
|
}
|
|
30658
|
+
}, {
|
|
30659
|
+
key: 'elementInternals',
|
|
30660
|
+
get: function get() {
|
|
30661
|
+
if (!axe._enableElementInternals) {
|
|
30662
|
+
return;
|
|
30663
|
+
}
|
|
30664
|
+
if (!this._cache.hasOwnProperty('elementInternals')) {
|
|
30665
|
+
this._cache.elementInternals = _getElementInternals(this.actualNode);
|
|
30666
|
+
}
|
|
30667
|
+
return this._cache.elementInternals;
|
|
30668
|
+
},
|
|
30669
|
+
set: function set(value) {
|
|
30670
|
+
this._cache.elementInternals = value;
|
|
30671
|
+
}
|
|
30490
30672
|
} ]);
|
|
30491
30673
|
}(abstract_virtual_node_default);
|
|
30492
30674
|
var virtual_node_default = VirtualNode;
|
|
@@ -31258,6 +31440,75 @@ function requireAxe () {
|
|
|
31258
31440
|
};
|
|
31259
31441
|
}
|
|
31260
31442
|
var get_stylesheet_factory_default = getStyleSheetFactory;
|
|
31443
|
+
var propNames = [ '_internals', 'internals', 'internals_' ];
|
|
31444
|
+
var symbolNames = [ 'internals', 'privateInternals' ];
|
|
31445
|
+
function _getElementInternals(node) {
|
|
31446
|
+
var _globalThis$_elementI;
|
|
31447
|
+
if (!_isValidCustomElementName(node.nodeName.toLowerCase())) {
|
|
31448
|
+
return;
|
|
31449
|
+
}
|
|
31450
|
+
var mapInternals = (_globalThis$_elementI = globalThis._elementInternals) === null || _globalThis$_elementI === void 0 ? void 0 : _globalThis$_elementI.get(node);
|
|
31451
|
+
if (mapInternals) {
|
|
31452
|
+
return mapInternals;
|
|
31453
|
+
}
|
|
31454
|
+
if (!('ElementInternals' in window)) {
|
|
31455
|
+
return;
|
|
31456
|
+
}
|
|
31457
|
+
var _iterator11 = _createForOfIteratorHelper(propNames), _step11;
|
|
31458
|
+
try {
|
|
31459
|
+
for (_iterator11.s(); !(_step11 = _iterator11.n()).done; ) {
|
|
31460
|
+
var _Object$getOwnPropert;
|
|
31461
|
+
var propName = _step11.value;
|
|
31462
|
+
if ((_Object$getOwnPropert = Object.getOwnPropertyDescriptor(node, propName)) !== null && _Object$getOwnPropert !== void 0 && _Object$getOwnPropert.get) {
|
|
31463
|
+
continue;
|
|
31464
|
+
}
|
|
31465
|
+
if (node[propName] instanceof window.ElementInternals) {
|
|
31466
|
+
return node[propName];
|
|
31467
|
+
}
|
|
31468
|
+
}
|
|
31469
|
+
} catch (err) {
|
|
31470
|
+
_iterator11.e(err);
|
|
31471
|
+
} finally {
|
|
31472
|
+
_iterator11.f();
|
|
31473
|
+
}
|
|
31474
|
+
var ownSymbols = Object.getOwnPropertySymbols(node);
|
|
31475
|
+
if (!ownSymbols.length) {
|
|
31476
|
+
return;
|
|
31477
|
+
}
|
|
31478
|
+
var _iterator12 = _createForOfIteratorHelper(symbolNames), _step12;
|
|
31479
|
+
try {
|
|
31480
|
+
var _loop8 = function _loop8() {
|
|
31481
|
+
var symbolName = _step12.value;
|
|
31482
|
+
var symbol = ownSymbols.find(function(s) {
|
|
31483
|
+
return s.description === symbolName;
|
|
31484
|
+
});
|
|
31485
|
+
if (symbol) {
|
|
31486
|
+
var _Object$getOwnPropert2;
|
|
31487
|
+
if ((_Object$getOwnPropert2 = Object.getOwnPropertyDescriptor(node, symbol)) !== null && _Object$getOwnPropert2 !== void 0 && _Object$getOwnPropert2.get) {
|
|
31488
|
+
return 0;
|
|
31489
|
+
}
|
|
31490
|
+
if (node[symbol] instanceof window.ElementInternals) {
|
|
31491
|
+
return {
|
|
31492
|
+
v: node[symbol]
|
|
31493
|
+
};
|
|
31494
|
+
}
|
|
31495
|
+
}
|
|
31496
|
+
}, _ret4;
|
|
31497
|
+
for (_iterator12.s(); !(_step12 = _iterator12.n()).done; ) {
|
|
31498
|
+
_ret4 = _loop8();
|
|
31499
|
+
if (_ret4 === 0) {
|
|
31500
|
+
continue;
|
|
31501
|
+
}
|
|
31502
|
+
if (_ret4) {
|
|
31503
|
+
return _ret4.v;
|
|
31504
|
+
}
|
|
31505
|
+
}
|
|
31506
|
+
} catch (err) {
|
|
31507
|
+
_iterator12.e(err);
|
|
31508
|
+
} finally {
|
|
31509
|
+
_iterator12.f();
|
|
31510
|
+
}
|
|
31511
|
+
}
|
|
31261
31512
|
var styleSheet;
|
|
31262
31513
|
function injectStyle(style) {
|
|
31263
31514
|
if (styleSheet && styleSheet.parentNode) {
|
|
@@ -31332,7 +31583,7 @@ function requireAxe () {
|
|
|
31332
31583
|
return hidden;
|
|
31333
31584
|
}
|
|
31334
31585
|
var is_hidden_default = isHidden;
|
|
31335
|
-
function
|
|
31586
|
+
function _isHtmlElement(node) {
|
|
31336
31587
|
var _node$props$nodeName, _node$props;
|
|
31337
31588
|
var nodeName2 = (_node$props$nodeName = (_node$props = node.props) === null || _node$props === void 0 ? void 0 : _node$props.nodeName) !== null && _node$props$nodeName !== void 0 ? _node$props$nodeName : node.nodeName.toLowerCase();
|
|
31338
31589
|
if (node.namespaceURI === 'http://www.w3.org/2000/svg') {
|
|
@@ -31340,7 +31591,6 @@ function requireAxe () {
|
|
|
31340
31591
|
}
|
|
31341
31592
|
return !!standards_default.htmlElms[nodeName2];
|
|
31342
31593
|
}
|
|
31343
|
-
var is_html_element_default = isHtmlElement;
|
|
31344
31594
|
function _isNodeInContext(node, _ref74) {
|
|
31345
31595
|
var _ref74$include = _ref74.include, include = _ref74$include === void 0 ? [] : _ref74$include, _ref74$exclude = _ref74.exclude, exclude = _ref74$exclude === void 0 ? [] : _ref74$exclude;
|
|
31346
31596
|
var filterInclude = include.filter(function(candidate) {
|
|
@@ -31361,18 +31611,18 @@ function requireAxe () {
|
|
|
31361
31611
|
}
|
|
31362
31612
|
function getDeepest(collection) {
|
|
31363
31613
|
var deepest;
|
|
31364
|
-
var
|
|
31614
|
+
var _iterator13 = _createForOfIteratorHelper(collection), _step13;
|
|
31365
31615
|
try {
|
|
31366
|
-
for (
|
|
31367
|
-
var node =
|
|
31616
|
+
for (_iterator13.s(); !(_step13 = _iterator13.n()).done; ) {
|
|
31617
|
+
var node = _step13.value;
|
|
31368
31618
|
if (!deepest || !_contains(node, deepest)) {
|
|
31369
31619
|
deepest = node;
|
|
31370
31620
|
}
|
|
31371
31621
|
}
|
|
31372
31622
|
} catch (err) {
|
|
31373
|
-
|
|
31623
|
+
_iterator13.e(err);
|
|
31374
31624
|
} finally {
|
|
31375
|
-
|
|
31625
|
+
_iterator13.f();
|
|
31376
31626
|
}
|
|
31377
31627
|
return deepest;
|
|
31378
31628
|
}
|
|
@@ -31487,6 +31737,9 @@ function requireAxe () {
|
|
|
31487
31737
|
}
|
|
31488
31738
|
var parse_stylesheet_default = parseStylesheet;
|
|
31489
31739
|
function parseCrossOriginStylesheet(url, options, priority, importedUrls, isCrossOrigin) {
|
|
31740
|
+
if (url === null || url === void 0) {
|
|
31741
|
+
return Promise.resolve();
|
|
31742
|
+
}
|
|
31490
31743
|
importedUrls.push(url);
|
|
31491
31744
|
return new Promise(function(resolve, reject) {
|
|
31492
31745
|
var request = new window.XMLHttpRequest();
|
|
@@ -31628,7 +31881,7 @@ function requireAxe () {
|
|
|
31628
31881
|
axeStartTime = now();
|
|
31629
31882
|
},
|
|
31630
31883
|
_log: function _log(message) {
|
|
31631
|
-
|
|
31884
|
+
log(message);
|
|
31632
31885
|
}
|
|
31633
31886
|
};
|
|
31634
31887
|
}();
|
|
@@ -32194,18 +32447,18 @@ function requireAxe () {
|
|
|
32194
32447
|
};
|
|
32195
32448
|
}
|
|
32196
32449
|
var serial = {};
|
|
32197
|
-
var
|
|
32450
|
+
var _iterator14 = _createForOfIteratorHelper(constants_default.serializableErrorProps), _step14;
|
|
32198
32451
|
try {
|
|
32199
|
-
for (
|
|
32200
|
-
var prop =
|
|
32452
|
+
for (_iterator14.s(); !(_step14 = _iterator14.n()).done; ) {
|
|
32453
|
+
var prop = _step14.value;
|
|
32201
32454
|
if ([ 'string', 'number', 'boolean' ].includes(_typeof(err2[prop]))) {
|
|
32202
32455
|
serial[prop] = err2[prop];
|
|
32203
32456
|
}
|
|
32204
32457
|
}
|
|
32205
32458
|
} catch (err) {
|
|
32206
|
-
|
|
32459
|
+
_iterator14.e(err);
|
|
32207
32460
|
} finally {
|
|
32208
|
-
|
|
32461
|
+
_iterator14.f();
|
|
32209
32462
|
}
|
|
32210
32463
|
if (err2.cause) {
|
|
32211
32464
|
serial.cause = iteration < 10 ? _serializeError(err2.cause, iteration + 1) : '...';
|
|
@@ -32286,18 +32539,18 @@ function requireAxe () {
|
|
|
32286
32539
|
return Array.from(elms);
|
|
32287
32540
|
}
|
|
32288
32541
|
var selected = [];
|
|
32289
|
-
var
|
|
32542
|
+
var _iterator15 = _createForOfIteratorHelper(elms), _step15;
|
|
32290
32543
|
try {
|
|
32291
|
-
for (
|
|
32292
|
-
var elm =
|
|
32544
|
+
for (_iterator15.s(); !(_step15 = _iterator15.n()).done; ) {
|
|
32545
|
+
var elm = _step15.value;
|
|
32293
32546
|
if (elm !== null && elm !== void 0 && elm.shadowRoot) {
|
|
32294
32547
|
selected.push.apply(selected, _toConsumableArray(selectAllRecursive(restSelector, elm.shadowRoot)));
|
|
32295
32548
|
}
|
|
32296
32549
|
}
|
|
32297
32550
|
} catch (err) {
|
|
32298
|
-
|
|
32551
|
+
_iterator15.e(err);
|
|
32299
32552
|
} finally {
|
|
32300
|
-
|
|
32553
|
+
_iterator15.f();
|
|
32301
32554
|
}
|
|
32302
32555
|
return selected;
|
|
32303
32556
|
}
|
|
@@ -32336,6 +32589,80 @@ function requireAxe () {
|
|
|
32336
32589
|
return codes;
|
|
32337
32590
|
}
|
|
32338
32591
|
var valid_langs_default = isValidLang;
|
|
32592
|
+
function _normalizeRunOptions() {
|
|
32593
|
+
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
32594
|
+
var tags = [];
|
|
32595
|
+
var ruleIds = [];
|
|
32596
|
+
axe._audit.rules.forEach(function(rule) {
|
|
32597
|
+
ruleIds.push(rule.id);
|
|
32598
|
+
rule.tags.forEach(function(tag) {
|
|
32599
|
+
if (!tags.includes(tag)) {
|
|
32600
|
+
tags.push(tag);
|
|
32601
|
+
}
|
|
32602
|
+
});
|
|
32603
|
+
});
|
|
32604
|
+
if ([ 'object', 'string' ].includes(_typeof(options.runOnly))) {
|
|
32605
|
+
if (typeof options.runOnly === 'string') {
|
|
32606
|
+
options.runOnly = [ options.runOnly ];
|
|
32607
|
+
}
|
|
32608
|
+
if (Array.isArray(options.runOnly)) {
|
|
32609
|
+
var hasTag = options.runOnly.find(function(value) {
|
|
32610
|
+
return tags.includes(value);
|
|
32611
|
+
});
|
|
32612
|
+
var hasRule = options.runOnly.find(function(value) {
|
|
32613
|
+
return ruleIds.includes(value);
|
|
32614
|
+
});
|
|
32615
|
+
if (hasTag && hasRule) {
|
|
32616
|
+
throw new Error('runOnly cannot be both rules and tags');
|
|
32617
|
+
}
|
|
32618
|
+
if (hasRule) {
|
|
32619
|
+
options.runOnly = {
|
|
32620
|
+
type: 'rule',
|
|
32621
|
+
values: options.runOnly
|
|
32622
|
+
};
|
|
32623
|
+
} else {
|
|
32624
|
+
options.runOnly = {
|
|
32625
|
+
type: 'tag',
|
|
32626
|
+
values: options.runOnly
|
|
32627
|
+
};
|
|
32628
|
+
}
|
|
32629
|
+
}
|
|
32630
|
+
var only = options.runOnly;
|
|
32631
|
+
if (only.value && !only.values) {
|
|
32632
|
+
only.values = only.value;
|
|
32633
|
+
delete only.value;
|
|
32634
|
+
}
|
|
32635
|
+
if (!Array.isArray(only.values) || only.values.length === 0) {
|
|
32636
|
+
throw new Error('runOnly.values must be a non-empty array');
|
|
32637
|
+
}
|
|
32638
|
+
if ([ 'rule', 'rules' ].includes(only.type)) {
|
|
32639
|
+
only.type = 'rule';
|
|
32640
|
+
only.values.forEach(function(ruleId) {
|
|
32641
|
+
if (!ruleIds.includes(ruleId)) {
|
|
32642
|
+
throw new Error('unknown rule `' + ruleId + '` in options.runOnly');
|
|
32643
|
+
}
|
|
32644
|
+
});
|
|
32645
|
+
} else if ([ 'tag', 'tags', void 0 ].includes(only.type)) {
|
|
32646
|
+
only.type = 'tag';
|
|
32647
|
+
var unmatchedTags = only.values.filter(function(tag) {
|
|
32648
|
+
return !tags.includes(tag) && !/wcag2[1-3]a{1,3}/.test(tag);
|
|
32649
|
+
});
|
|
32650
|
+
if (unmatchedTags.length !== 0) {
|
|
32651
|
+
axe.log('Could not find tags `' + unmatchedTags.join('`, `') + '`');
|
|
32652
|
+
}
|
|
32653
|
+
} else {
|
|
32654
|
+
throw new Error('Unknown runOnly type \''.concat(only.type, '\''));
|
|
32655
|
+
}
|
|
32656
|
+
}
|
|
32657
|
+
if (_typeof(options.rules) === 'object') {
|
|
32658
|
+
Object.keys(options.rules).forEach(function(ruleId) {
|
|
32659
|
+
if (!ruleIds.includes(ruleId)) {
|
|
32660
|
+
throw new Error('unknown rule `' + ruleId + '` in options.rules');
|
|
32661
|
+
}
|
|
32662
|
+
});
|
|
32663
|
+
}
|
|
32664
|
+
return options;
|
|
32665
|
+
}
|
|
32339
32666
|
var SerialVirtualNode = function(_abstract_virtual_nod2) {
|
|
32340
32667
|
function SerialVirtualNode(serialNode) {
|
|
32341
32668
|
var _this8;
|
|
@@ -32532,10 +32859,13 @@ function requireAxe () {
|
|
|
32532
32859
|
}
|
|
32533
32860
|
});
|
|
32534
32861
|
}
|
|
32862
|
+
var previousHelpUrlSettings = {
|
|
32863
|
+
brand: audit.brand,
|
|
32864
|
+
application: audit.application,
|
|
32865
|
+
lang: audit.lang
|
|
32866
|
+
};
|
|
32535
32867
|
if (typeof spec.branding !== 'undefined') {
|
|
32536
32868
|
audit.setBranding(spec.branding);
|
|
32537
|
-
} else {
|
|
32538
|
-
audit._constructHelpUrls();
|
|
32539
32869
|
}
|
|
32540
32870
|
if (spec.tagExclude) {
|
|
32541
32871
|
audit.tagExclude = spec.tagExclude;
|
|
@@ -32543,6 +32873,7 @@ function requireAxe () {
|
|
|
32543
32873
|
if (spec.locale) {
|
|
32544
32874
|
audit.applyLocale(spec.locale);
|
|
32545
32875
|
}
|
|
32876
|
+
audit._constructHelpUrls(previousHelpUrlSettings);
|
|
32546
32877
|
if (spec.standards) {
|
|
32547
32878
|
configureStandards(spec.standards);
|
|
32548
32879
|
}
|
|
@@ -32560,17 +32891,227 @@ function requireAxe () {
|
|
|
32560
32891
|
}
|
|
32561
32892
|
}
|
|
32562
32893
|
var configure_default = configure;
|
|
32894
|
+
var ELEMENT_INTERNALS_DEFAULT_TIMEOUT = 1e3;
|
|
32895
|
+
var getElementInternals2;
|
|
32896
|
+
var elementInternalsTimeout;
|
|
32897
|
+
function externalAPIs() {
|
|
32898
|
+
var _ref87 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}, internalsTimeout = _ref87.elementInternalsTimeout, getInternals = _ref87.getElementInternals;
|
|
32899
|
+
if (isNotNullOrUndefined(internalsTimeout)) {
|
|
32900
|
+
assert_default(typeof internalsTimeout === 'number', 'elementInternalsTimeout must be a number');
|
|
32901
|
+
elementInternalsTimeout = internalsTimeout;
|
|
32902
|
+
} else if (internalsTimeout === null) {
|
|
32903
|
+
elementInternalsTimeout = ELEMENT_INTERNALS_DEFAULT_TIMEOUT;
|
|
32904
|
+
}
|
|
32905
|
+
if (isNotNullOrUndefined(getInternals)) {
|
|
32906
|
+
assert_default(typeof getInternals === 'function', 'getElementInternals must be a function that returns a Promise');
|
|
32907
|
+
getElementInternals2 = getInternals;
|
|
32908
|
+
} else if (getInternals === null) {
|
|
32909
|
+
getElementInternals2 = null;
|
|
32910
|
+
}
|
|
32911
|
+
}
|
|
32912
|
+
function isNotNullOrUndefined(val) {
|
|
32913
|
+
return val !== void 0 && val !== null;
|
|
32914
|
+
}
|
|
32915
|
+
function asyncTimeout(_x) {
|
|
32916
|
+
return _asyncTimeout.apply(this, arguments);
|
|
32917
|
+
}
|
|
32918
|
+
function _asyncTimeout() {
|
|
32919
|
+
_asyncTimeout = _asyncToGenerator(_regenerator().m(function _callee(ms) {
|
|
32920
|
+
return _regenerator().w(function(_context2) {
|
|
32921
|
+
while (1) {
|
|
32922
|
+
switch (_context2.n) {
|
|
32923
|
+
case 0:
|
|
32924
|
+
return _context2.a(2, new Promise(function(res) {
|
|
32925
|
+
return setTimeout(res, ms, 'timeout');
|
|
32926
|
+
}));
|
|
32927
|
+
}
|
|
32928
|
+
}
|
|
32929
|
+
}, _callee);
|
|
32930
|
+
}));
|
|
32931
|
+
return _asyncTimeout.apply(this, arguments);
|
|
32932
|
+
}
|
|
32933
|
+
function loadElementInternals() {
|
|
32934
|
+
return _loadElementInternals.apply(this, arguments);
|
|
32935
|
+
}
|
|
32936
|
+
function _loadElementInternals() {
|
|
32937
|
+
_loadElementInternals = _asyncToGenerator(_regenerator().m(function _callee2() {
|
|
32938
|
+
var logger2, promiseValue, internalsMap, _i43, _internalsMap$_i, internals, ancestry, node, vNode, _i44, _Object$entries, _Object$entries$_i, _key12, val, type2, value, _args2 = arguments;
|
|
32939
|
+
return _regenerator().w(function(_context3) {
|
|
32940
|
+
while (1) {
|
|
32941
|
+
switch (_context3.n) {
|
|
32942
|
+
case 0:
|
|
32943
|
+
logger2 = _args2.length > 0 && _args2[0] !== undefined ? _args2[0] : log;
|
|
32944
|
+
if (getElementInternals2) {
|
|
32945
|
+
_context3.n = 1;
|
|
32946
|
+
break;
|
|
32947
|
+
}
|
|
32948
|
+
return _context3.a(2);
|
|
32949
|
+
|
|
32950
|
+
case 1:
|
|
32951
|
+
_context3.n = 2;
|
|
32952
|
+
return Promise.race([ asyncTimeout(elementInternalsTimeout), getElementInternals2() ]);
|
|
32953
|
+
|
|
32954
|
+
case 2:
|
|
32955
|
+
promiseValue = _context3.v;
|
|
32956
|
+
assert_default(promiseValue !== 'timeout', 'Timeout called for elementInternals');
|
|
32957
|
+
internalsMap = clone2(promiseValue);
|
|
32958
|
+
if (!(!internalsMap || !Array.isArray(internalsMap))) {
|
|
32959
|
+
_context3.n = 3;
|
|
32960
|
+
break;
|
|
32961
|
+
}
|
|
32962
|
+
logger2('externalAPIs.getElementInternals() did not return an array');
|
|
32963
|
+
return _context3.a(2);
|
|
32964
|
+
|
|
32965
|
+
case 3:
|
|
32966
|
+
_i43 = 0;
|
|
32967
|
+
|
|
32968
|
+
case 4:
|
|
32969
|
+
if (!(_i43 < internalsMap.length)) {
|
|
32970
|
+
_context3.n = 14;
|
|
32971
|
+
break;
|
|
32972
|
+
}
|
|
32973
|
+
if (!(!internalsMap[_i43] || _typeof(internalsMap[_i43]) !== 'object')) {
|
|
32974
|
+
_context3.n = 5;
|
|
32975
|
+
break;
|
|
32976
|
+
}
|
|
32977
|
+
logger2('externalAPIs.getElementInternals()['.concat(_i43, '] is not an object'));
|
|
32978
|
+
return _context3.a(3, 13);
|
|
32979
|
+
|
|
32980
|
+
case 5:
|
|
32981
|
+
_internalsMap$_i = internalsMap[_i43], internals = _internalsMap$_i.internals,
|
|
32982
|
+
ancestry = _internalsMap$_i.ancestry;
|
|
32983
|
+
if (!(!internals || _typeof(internals) !== 'object')) {
|
|
32984
|
+
_context3.n = 6;
|
|
32985
|
+
break;
|
|
32986
|
+
}
|
|
32987
|
+
logger2('externalAPIs.getElementInternals()['.concat(_i43, '].internals is not an object'));
|
|
32988
|
+
return _context3.a(3, 13);
|
|
32989
|
+
|
|
32990
|
+
case 6:
|
|
32991
|
+
if (!(!ancestry || !(Array.isArray(ancestry) || typeof ancestry === 'string'))) {
|
|
32992
|
+
_context3.n = 7;
|
|
32993
|
+
break;
|
|
32994
|
+
}
|
|
32995
|
+
logger2('externalAPIs.getElementInternals()['.concat(_i43, '].ancestry is not a string or an array of strings'));
|
|
32996
|
+
return _context3.a(3, 13);
|
|
32997
|
+
|
|
32998
|
+
case 7:
|
|
32999
|
+
node = _shadowSelect(ancestry);
|
|
33000
|
+
vNode = get_node_from_tree_default(node);
|
|
33001
|
+
if (vNode) {
|
|
33002
|
+
_context3.n = 8;
|
|
33003
|
+
break;
|
|
33004
|
+
}
|
|
33005
|
+
logger2('Unable to locate node using selector '.concat(ancestry, ' from externalAPIs.getElementInternals()[').concat(_i43, ']'));
|
|
33006
|
+
return _context3.a(3, 13);
|
|
33007
|
+
|
|
33008
|
+
case 8:
|
|
33009
|
+
_i44 = 0, _Object$entries = Object.entries(internals);
|
|
33010
|
+
|
|
33011
|
+
case 9:
|
|
33012
|
+
if (!(_i44 < _Object$entries.length)) {
|
|
33013
|
+
_context3.n = 12;
|
|
33014
|
+
break;
|
|
33015
|
+
}
|
|
33016
|
+
_Object$entries$_i = _slicedToArray(_Object$entries[_i44], 2), _key12 = _Object$entries$_i[0],
|
|
33017
|
+
val = _Object$entries$_i[1];
|
|
33018
|
+
if (!(typeof val === 'string')) {
|
|
33019
|
+
_context3.n = 10;
|
|
33020
|
+
break;
|
|
33021
|
+
}
|
|
33022
|
+
return _context3.a(3, 11);
|
|
33023
|
+
|
|
33024
|
+
case 10:
|
|
33025
|
+
type2 = val.type, value = val.value;
|
|
33026
|
+
if (!type2) {
|
|
33027
|
+
logger2('externalAPIs.getElementInternals()['.concat(_i43, '].internals.').concat(_key12, ' is an object but has no "type" property'));
|
|
33028
|
+
}
|
|
33029
|
+
if (!value) {
|
|
33030
|
+
logger2('externalAPIs.getElementInternals()['.concat(_i43, '].internals.').concat(_key12, ' is an object but has no "value" property'));
|
|
33031
|
+
}
|
|
33032
|
+
if (type2 === 'HTMLElement') {
|
|
33033
|
+
setHTMLElement(internals, _key12, value);
|
|
33034
|
+
} else if (type2 === 'NodeList') {
|
|
33035
|
+
setNodeList(internals, _key12, value);
|
|
33036
|
+
}
|
|
33037
|
+
|
|
33038
|
+
case 11:
|
|
33039
|
+
_i44++;
|
|
33040
|
+
_context3.n = 9;
|
|
33041
|
+
break;
|
|
33042
|
+
|
|
33043
|
+
case 12:
|
|
33044
|
+
vNode.elementInternals = internals;
|
|
33045
|
+
|
|
33046
|
+
case 13:
|
|
33047
|
+
_i43++;
|
|
33048
|
+
_context3.n = 4;
|
|
33049
|
+
break;
|
|
33050
|
+
|
|
33051
|
+
case 14:
|
|
33052
|
+
return _context3.a(2);
|
|
33053
|
+
}
|
|
33054
|
+
}
|
|
33055
|
+
}, _callee2);
|
|
33056
|
+
}));
|
|
33057
|
+
return _loadElementInternals.apply(this, arguments);
|
|
33058
|
+
}
|
|
33059
|
+
var external = {
|
|
33060
|
+
loadElementInternals: loadElementInternals
|
|
33061
|
+
};
|
|
33062
|
+
function setHTMLElement(internals, key, value) {
|
|
33063
|
+
var node = _shadowSelect(value);
|
|
33064
|
+
if (node) {
|
|
33065
|
+
internals[key] = node;
|
|
33066
|
+
} else {
|
|
33067
|
+
Object.defineProperty(internals, key, {
|
|
33068
|
+
get: function get() {
|
|
33069
|
+
throw new Error('Unable to locate node using selector: '.concat(value));
|
|
33070
|
+
}
|
|
33071
|
+
});
|
|
33072
|
+
}
|
|
33073
|
+
}
|
|
33074
|
+
function setNodeList(internals, key, value) {
|
|
33075
|
+
var nodes = [];
|
|
33076
|
+
var errorSelectors = [];
|
|
33077
|
+
var _iterator16 = _createForOfIteratorHelper(value), _step16;
|
|
33078
|
+
try {
|
|
33079
|
+
for (_iterator16.s(); !(_step16 = _iterator16.n()).done; ) {
|
|
33080
|
+
var selector = _step16.value;
|
|
33081
|
+
var node = _shadowSelect(selector);
|
|
33082
|
+
if (node) {
|
|
33083
|
+
nodes.push(node);
|
|
33084
|
+
} else {
|
|
33085
|
+
errorSelectors.push(selector);
|
|
33086
|
+
}
|
|
33087
|
+
}
|
|
33088
|
+
} catch (err) {
|
|
33089
|
+
_iterator16.e(err);
|
|
33090
|
+
} finally {
|
|
33091
|
+
_iterator16.f();
|
|
33092
|
+
}
|
|
33093
|
+
if (errorSelectors.length === 0) {
|
|
33094
|
+
internals[key] = nodes;
|
|
33095
|
+
} else {
|
|
33096
|
+
Object.defineProperty(internals, key, {
|
|
33097
|
+
get: function get() {
|
|
33098
|
+
throw new Error('Unable to locate nodes using selectors: '.concat(errorSelectors.join(',')));
|
|
33099
|
+
}
|
|
33100
|
+
});
|
|
33101
|
+
}
|
|
33102
|
+
}
|
|
32563
33103
|
function frameMessenger2(frameHandler) {
|
|
32564
33104
|
_respondable.updateMessenger(frameHandler);
|
|
32565
33105
|
}
|
|
32566
33106
|
function getRules(tags) {
|
|
32567
33107
|
tags = tags || [];
|
|
32568
|
-
var
|
|
33108
|
+
var _axe$_audit = axe._audit, rules = _axe$_audit.rules, data = _axe$_audit.data, tagExclude = _axe$_audit.tagExclude;
|
|
33109
|
+
var matchingRules = !tags.length ? rules : rules.filter(function(item) {
|
|
32569
33110
|
return !!tags.filter(function(tag) {
|
|
32570
33111
|
return item.tags.indexOf(tag) !== -1;
|
|
32571
33112
|
}).length;
|
|
32572
33113
|
});
|
|
32573
|
-
var ruleData =
|
|
33114
|
+
var ruleData = data.rules || {};
|
|
32574
33115
|
return matchingRules.map(function(matchingRule) {
|
|
32575
33116
|
var rd = ruleData[matchingRule.id] || {};
|
|
32576
33117
|
return {
|
|
@@ -32579,7 +33120,10 @@ function requireAxe () {
|
|
|
32579
33120
|
help: rd.help,
|
|
32580
33121
|
helpUrl: rd.helpUrl,
|
|
32581
33122
|
tags: matchingRule.tags,
|
|
32582
|
-
actIds: matchingRule.actIds
|
|
33123
|
+
actIds: matchingRule.actIds,
|
|
33124
|
+
enabled: matchingRule.enabled && !matchingRule.tags.some(function(tag) {
|
|
33125
|
+
return tagExclude.includes(tag);
|
|
33126
|
+
})
|
|
32583
33127
|
};
|
|
32584
33128
|
});
|
|
32585
33129
|
}
|
|
@@ -33010,10 +33554,10 @@ function requireAxe () {
|
|
|
33010
33554
|
if (!attrValue) {
|
|
33011
33555
|
continue;
|
|
33012
33556
|
}
|
|
33013
|
-
var
|
|
33557
|
+
var _iterator17 = _createForOfIteratorHelper(token_list_default(attrValue)), _step17;
|
|
33014
33558
|
try {
|
|
33015
|
-
for (
|
|
33016
|
-
var token =
|
|
33559
|
+
for (_iterator17.s(); !(_step17 = _iterator17.n()).done; ) {
|
|
33560
|
+
var token = _step17.value;
|
|
33017
33561
|
if (!idRefs.has(token)) {
|
|
33018
33562
|
idRefs.set(token, [ node ]);
|
|
33019
33563
|
} else {
|
|
@@ -33021,9 +33565,9 @@ function requireAxe () {
|
|
|
33021
33565
|
}
|
|
33022
33566
|
}
|
|
33023
33567
|
} catch (err) {
|
|
33024
|
-
|
|
33568
|
+
_iterator17.e(err);
|
|
33025
33569
|
} finally {
|
|
33026
|
-
|
|
33570
|
+
_iterator17.f();
|
|
33027
33571
|
}
|
|
33028
33572
|
}
|
|
33029
33573
|
}
|
|
@@ -33087,8 +33631,8 @@ function requireAxe () {
|
|
|
33087
33631
|
}
|
|
33088
33632
|
function getElementUnallowedRoles(node) {
|
|
33089
33633
|
var allowImplicit = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
|
|
33090
|
-
var
|
|
33091
|
-
if (!
|
|
33634
|
+
var _nodeLookup24 = _nodeLookup(node), vNode = _nodeLookup24.vNode;
|
|
33635
|
+
if (!_isHtmlElement(vNode)) {
|
|
33092
33636
|
return [];
|
|
33093
33637
|
}
|
|
33094
33638
|
var nodeName2 = vNode.props.nodeName;
|
|
@@ -34877,8 +35421,8 @@ function requireAxe () {
|
|
|
34877
35421
|
nodeName: [ 'abbr', 'address', 'canvas', 'div', 'p', 'pre', 'blockquote', 'ins', 'del', 'output', 'span', 'table', 'tbody', 'thead', 'tfoot', 'td', 'em', 'strong', 'small', 's', 'cite', 'q', 'dfn', 'abbr', 'time', 'code', 'var', 'samp', 'kbd', 'sub', 'sup', 'i', 'b', 'u', 'mark', 'ruby', 'rt', 'rp', 'bdi', 'bdo', 'br', 'wbr', 'th', 'tr' ]
|
|
34878
35422
|
} ];
|
|
34879
35423
|
lookupTable.evaluateRoleForElement = {
|
|
34880
|
-
A: function A(
|
|
34881
|
-
var node =
|
|
35424
|
+
A: function A(_ref88) {
|
|
35425
|
+
var node = _ref88.node, out = _ref88.out;
|
|
34882
35426
|
if (node.namespaceURI === 'http://www.w3.org/2000/svg') {
|
|
34883
35427
|
return true;
|
|
34884
35428
|
}
|
|
@@ -34887,19 +35431,19 @@ function requireAxe () {
|
|
|
34887
35431
|
}
|
|
34888
35432
|
return true;
|
|
34889
35433
|
},
|
|
34890
|
-
AREA: function AREA(
|
|
34891
|
-
var node =
|
|
35434
|
+
AREA: function AREA(_ref89) {
|
|
35435
|
+
var node = _ref89.node;
|
|
34892
35436
|
return !node.href;
|
|
34893
35437
|
},
|
|
34894
|
-
BUTTON: function BUTTON(
|
|
34895
|
-
var node =
|
|
35438
|
+
BUTTON: function BUTTON(_ref90) {
|
|
35439
|
+
var node = _ref90.node, role = _ref90.role, out = _ref90.out;
|
|
34896
35440
|
if (node.getAttribute('type') === 'menu') {
|
|
34897
35441
|
return role === 'menuitem';
|
|
34898
35442
|
}
|
|
34899
35443
|
return out;
|
|
34900
35444
|
},
|
|
34901
|
-
IMG: function IMG(
|
|
34902
|
-
var node =
|
|
35445
|
+
IMG: function IMG(_ref91) {
|
|
35446
|
+
var node = _ref91.node, role = _ref91.role, out = _ref91.out;
|
|
34903
35447
|
switch (node.alt) {
|
|
34904
35448
|
case null:
|
|
34905
35449
|
return out;
|
|
@@ -34911,8 +35455,8 @@ function requireAxe () {
|
|
|
34911
35455
|
return role !== 'presentation' && role !== 'none';
|
|
34912
35456
|
}
|
|
34913
35457
|
},
|
|
34914
|
-
INPUT: function INPUT(
|
|
34915
|
-
var node =
|
|
35458
|
+
INPUT: function INPUT(_ref92) {
|
|
35459
|
+
var node = _ref92.node, role = _ref92.role, out = _ref92.out;
|
|
34916
35460
|
switch (node.type) {
|
|
34917
35461
|
case 'button':
|
|
34918
35462
|
case 'image':
|
|
@@ -34942,32 +35486,32 @@ function requireAxe () {
|
|
|
34942
35486
|
return false;
|
|
34943
35487
|
}
|
|
34944
35488
|
},
|
|
34945
|
-
LI: function LI(
|
|
34946
|
-
var node =
|
|
35489
|
+
LI: function LI(_ref93) {
|
|
35490
|
+
var node = _ref93.node, out = _ref93.out;
|
|
34947
35491
|
var hasImplicitListitemRole = axe.utils.matchesSelector(node, 'ol li, ul li');
|
|
34948
35492
|
if (hasImplicitListitemRole) {
|
|
34949
35493
|
return out;
|
|
34950
35494
|
}
|
|
34951
35495
|
return true;
|
|
34952
35496
|
},
|
|
34953
|
-
MENU: function MENU(
|
|
34954
|
-
var node =
|
|
35497
|
+
MENU: function MENU(_ref94) {
|
|
35498
|
+
var node = _ref94.node;
|
|
34955
35499
|
if (node.getAttribute('type') === 'context') {
|
|
34956
35500
|
return false;
|
|
34957
35501
|
}
|
|
34958
35502
|
return true;
|
|
34959
35503
|
},
|
|
34960
|
-
OPTION: function OPTION(
|
|
34961
|
-
var node =
|
|
35504
|
+
OPTION: function OPTION(_ref95) {
|
|
35505
|
+
var node = _ref95.node;
|
|
34962
35506
|
var withinOptionList = axe.utils.matchesSelector(node, 'select > option, datalist > option, optgroup > option');
|
|
34963
35507
|
return !withinOptionList;
|
|
34964
35508
|
},
|
|
34965
|
-
SELECT: function SELECT(
|
|
34966
|
-
var node =
|
|
35509
|
+
SELECT: function SELECT(_ref96) {
|
|
35510
|
+
var node = _ref96.node, role = _ref96.role;
|
|
34967
35511
|
return !node.multiple && node.size <= 1 && role === 'menu';
|
|
34968
35512
|
},
|
|
34969
|
-
SVG: function SVG(
|
|
34970
|
-
var node =
|
|
35513
|
+
SVG: function SVG(_ref97) {
|
|
35514
|
+
var node = _ref97.node, out = _ref97.out;
|
|
34971
35515
|
if (node.parentNode && node.parentNode.namespaceURI === 'http://www.w3.org/2000/svg') {
|
|
34972
35516
|
return true;
|
|
34973
35517
|
}
|
|
@@ -34992,7 +35536,7 @@ function requireAxe () {
|
|
|
34992
35536
|
}
|
|
34993
35537
|
var is_accessible_ref_default = isAccessibleRef;
|
|
34994
35538
|
function _isComboboxPopup(virtualNode) {
|
|
34995
|
-
var
|
|
35539
|
+
var _ref98 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, popupRoles = _ref98.popupRoles;
|
|
34996
35540
|
var role = get_role_default(virtualNode);
|
|
34997
35541
|
popupRoles !== null && popupRoles !== void 0 ? popupRoles : popupRoles = aria_attrs_default['aria-haspopup'].values;
|
|
34998
35542
|
if (!popupRoles.includes(role)) {
|
|
@@ -35195,10 +35739,10 @@ function requireAxe () {
|
|
|
35195
35739
|
}
|
|
35196
35740
|
});
|
|
35197
35741
|
});
|
|
35198
|
-
var
|
|
35742
|
+
var _iterator18 = _createForOfIteratorHelper(messageKeys), _step18;
|
|
35199
35743
|
try {
|
|
35200
|
-
for (
|
|
35201
|
-
var messageKey =
|
|
35744
|
+
for (_iterator18.s(); !(_step18 = _iterator18.n()).done; ) {
|
|
35745
|
+
var messageKey = _step18.value;
|
|
35202
35746
|
if (badCells[messageKey].size > 0) {
|
|
35203
35747
|
this.relatedNodes(_toConsumableArray(badCells[messageKey]));
|
|
35204
35748
|
if (messageKey === emptyHdrs) {
|
|
@@ -35211,9 +35755,9 @@ function requireAxe () {
|
|
|
35211
35755
|
}
|
|
35212
35756
|
}
|
|
35213
35757
|
} catch (err) {
|
|
35214
|
-
|
|
35758
|
+
_iterator18.e(err);
|
|
35215
35759
|
} finally {
|
|
35216
|
-
|
|
35760
|
+
_iterator18.f();
|
|
35217
35761
|
}
|
|
35218
35762
|
return true;
|
|
35219
35763
|
}
|
|
@@ -35281,8 +35825,8 @@ function requireAxe () {
|
|
|
35281
35825
|
if (!virtualNode.children) {
|
|
35282
35826
|
return void 0;
|
|
35283
35827
|
}
|
|
35284
|
-
var titleNode = virtualNode.children.find(function(
|
|
35285
|
-
var props =
|
|
35828
|
+
var titleNode = virtualNode.children.find(function(_ref99) {
|
|
35829
|
+
var props = _ref99.props;
|
|
35286
35830
|
return props.nodeName === 'title';
|
|
35287
35831
|
});
|
|
35288
35832
|
if (!titleNode) {
|
|
@@ -35419,8 +35963,8 @@ function requireAxe () {
|
|
|
35419
35963
|
}
|
|
35420
35964
|
return false;
|
|
35421
35965
|
}
|
|
35422
|
-
function getNumberValue(domNode,
|
|
35423
|
-
var cssProperty =
|
|
35966
|
+
function getNumberValue(domNode, _ref100) {
|
|
35967
|
+
var cssProperty = _ref100.cssProperty, absoluteValues = _ref100.absoluteValues, normalValue = _ref100.normalValue;
|
|
35424
35968
|
var computedStyle = window.getComputedStyle(domNode);
|
|
35425
35969
|
var cssPropValue = computedStyle.getPropertyValue(cssProperty);
|
|
35426
35970
|
if (cssPropValue === 'normal') {
|
|
@@ -35567,8 +36111,8 @@ function requireAxe () {
|
|
|
35567
36111
|
} else if (node !== document.body && has_content_default(node, true) && !isShallowlyHidden(virtualNode)) {
|
|
35568
36112
|
return [ virtualNode ];
|
|
35569
36113
|
} else {
|
|
35570
|
-
return virtualNode.children.filter(function(
|
|
35571
|
-
var actualNode =
|
|
36114
|
+
return virtualNode.children.filter(function(_ref101) {
|
|
36115
|
+
var actualNode = _ref101.actualNode;
|
|
35572
36116
|
return actualNode.nodeType === 1;
|
|
35573
36117
|
}).map(function(vNode) {
|
|
35574
36118
|
return findRegionlessElms(vNode, options);
|
|
@@ -35605,19 +36149,19 @@ function requireAxe () {
|
|
|
35605
36149
|
return;
|
|
35606
36150
|
}
|
|
35607
36151
|
var frameAncestry = r.node.ancestry.slice(0, -1);
|
|
35608
|
-
var
|
|
36152
|
+
var _iterator19 = _createForOfIteratorHelper(iframeResults), _step19;
|
|
35609
36153
|
try {
|
|
35610
|
-
for (
|
|
35611
|
-
var iframeResult =
|
|
36154
|
+
for (_iterator19.s(); !(_step19 = _iterator19.n()).done; ) {
|
|
36155
|
+
var iframeResult = _step19.value;
|
|
35612
36156
|
if (_matchAncestry(frameAncestry, iframeResult.node.ancestry)) {
|
|
35613
36157
|
r.result = iframeResult.result;
|
|
35614
36158
|
break;
|
|
35615
36159
|
}
|
|
35616
36160
|
}
|
|
35617
36161
|
} catch (err) {
|
|
35618
|
-
|
|
36162
|
+
_iterator19.e(err);
|
|
35619
36163
|
} finally {
|
|
35620
|
-
|
|
36164
|
+
_iterator19.f();
|
|
35621
36165
|
}
|
|
35622
36166
|
});
|
|
35623
36167
|
iframeResults.forEach(function(r) {
|
|
@@ -35716,7 +36260,7 @@ function requireAxe () {
|
|
|
35716
36260
|
var separatorRegex = /[;,\s]/;
|
|
35717
36261
|
var validRedirectNumRegex = /^[0-9.]+$/;
|
|
35718
36262
|
function metaRefreshEvaluate(node, options, virtualNode) {
|
|
35719
|
-
var
|
|
36263
|
+
var _ref102 = options || {}, minDelay = _ref102.minDelay, maxDelay = _ref102.maxDelay;
|
|
35720
36264
|
var content = (virtualNode.attr('content') || '').trim();
|
|
35721
36265
|
var _content$split = content.split(separatorRegex), _content$split2 = _slicedToArray(_content$split, 1), redirectStr = _content$split2[0];
|
|
35722
36266
|
if (!redirectStr.match(validRedirectNumRegex)) {
|
|
@@ -36079,10 +36623,10 @@ function requireAxe () {
|
|
|
36079
36623
|
var OPAQUE_STROKE_OFFSET_MIN_PX = 1.5;
|
|
36080
36624
|
var edges = [ 'top', 'right', 'bottom', 'left' ];
|
|
36081
36625
|
function _getStrokeColorsFromShadows(parsedShadows) {
|
|
36082
|
-
var
|
|
36626
|
+
var _ref103 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, _ref103$ignoreEdgeCou = _ref103.ignoreEdgeCount, ignoreEdgeCount = _ref103$ignoreEdgeCou === void 0 ? false : _ref103$ignoreEdgeCou;
|
|
36083
36627
|
var shadowMap = getShadowColorsMap(parsedShadows);
|
|
36084
|
-
var shadowsByColor = Object.entries(shadowMap).map(function(
|
|
36085
|
-
var
|
|
36628
|
+
var shadowsByColor = Object.entries(shadowMap).map(function(_ref104) {
|
|
36629
|
+
var _ref105 = _slicedToArray(_ref104, 2), colorStr = _ref105[0], sides = _ref105[1];
|
|
36086
36630
|
var edgeCount = edges.filter(function(side) {
|
|
36087
36631
|
return sides[side].length !== 0;
|
|
36088
36632
|
}).length;
|
|
@@ -36092,8 +36636,8 @@ function requireAxe () {
|
|
|
36092
36636
|
edgeCount: edgeCount
|
|
36093
36637
|
};
|
|
36094
36638
|
});
|
|
36095
|
-
if (!ignoreEdgeCount && shadowsByColor.some(function(
|
|
36096
|
-
var edgeCount =
|
|
36639
|
+
if (!ignoreEdgeCount && shadowsByColor.some(function(_ref106) {
|
|
36640
|
+
var edgeCount = _ref106.edgeCount;
|
|
36097
36641
|
return edgeCount > 1 && edgeCount < 4;
|
|
36098
36642
|
})) {
|
|
36099
36643
|
return null;
|
|
@@ -36104,11 +36648,11 @@ function requireAxe () {
|
|
|
36104
36648
|
}
|
|
36105
36649
|
function getShadowColorsMap(parsedShadows) {
|
|
36106
36650
|
var colorMap = {};
|
|
36107
|
-
var
|
|
36651
|
+
var _iterator20 = _createForOfIteratorHelper(parsedShadows), _step20;
|
|
36108
36652
|
try {
|
|
36109
|
-
for (
|
|
36653
|
+
for (_iterator20.s(); !(_step20 = _iterator20.n()).done; ) {
|
|
36110
36654
|
var _colorMap$colorStr;
|
|
36111
|
-
var
|
|
36655
|
+
var _step20$value = _step20.value, colorStr = _step20$value.colorStr, pixels = _step20$value.pixels;
|
|
36112
36656
|
(_colorMap$colorStr = colorMap[colorStr]) !== null && _colorMap$colorStr !== void 0 ? _colorMap$colorStr : colorMap[colorStr] = {
|
|
36113
36657
|
top: [],
|
|
36114
36658
|
right: [],
|
|
@@ -36129,14 +36673,14 @@ function requireAxe () {
|
|
|
36129
36673
|
}
|
|
36130
36674
|
}
|
|
36131
36675
|
} catch (err) {
|
|
36132
|
-
|
|
36676
|
+
_iterator20.e(err);
|
|
36133
36677
|
} finally {
|
|
36134
|
-
|
|
36678
|
+
_iterator20.f();
|
|
36135
36679
|
}
|
|
36136
36680
|
return colorMap;
|
|
36137
36681
|
}
|
|
36138
|
-
function shadowGroupToColor(
|
|
36139
|
-
var colorStr =
|
|
36682
|
+
function shadowGroupToColor(_ref107) {
|
|
36683
|
+
var colorStr = _ref107.colorStr, sides = _ref107.sides, edgeCount = _ref107.edgeCount;
|
|
36140
36684
|
if (edgeCount !== 4) {
|
|
36141
36685
|
return null;
|
|
36142
36686
|
}
|
|
@@ -36187,8 +36731,8 @@ function requireAxe () {
|
|
|
36187
36731
|
throw new Error('Unable to process text-shadows: '.concat(str));
|
|
36188
36732
|
}
|
|
36189
36733
|
}
|
|
36190
|
-
shadows.forEach(function(
|
|
36191
|
-
var pixels =
|
|
36734
|
+
shadows.forEach(function(_ref108) {
|
|
36735
|
+
var pixels = _ref108.pixels;
|
|
36192
36736
|
if (pixels.length === 2) {
|
|
36193
36737
|
pixels.push(0);
|
|
36194
36738
|
}
|
|
@@ -36196,7 +36740,7 @@ function requireAxe () {
|
|
|
36196
36740
|
return shadows;
|
|
36197
36741
|
}
|
|
36198
36742
|
function _getTextShadowColors(node) {
|
|
36199
|
-
var
|
|
36743
|
+
var _ref109 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, minRatio = _ref109.minRatio, maxRatio = _ref109.maxRatio, ignoreEdgeCount = _ref109.ignoreEdgeCount;
|
|
36200
36744
|
var shadowColors = [];
|
|
36201
36745
|
var style = window.getComputedStyle(node);
|
|
36202
36746
|
var textShadow = style.getPropertyValue('text-shadow');
|
|
@@ -36208,10 +36752,10 @@ function requireAxe () {
|
|
|
36208
36752
|
assert_default(isNaN(fontSize) === false, 'Unable to determine font-size value '.concat(fontSizeStr));
|
|
36209
36753
|
var thinShadows = [];
|
|
36210
36754
|
var shadows = _parseTextShadows(textShadow);
|
|
36211
|
-
var
|
|
36755
|
+
var _iterator21 = _createForOfIteratorHelper(shadows), _step21;
|
|
36212
36756
|
try {
|
|
36213
|
-
for (
|
|
36214
|
-
var shadow =
|
|
36757
|
+
for (_iterator21.s(); !(_step21 = _iterator21.n()).done; ) {
|
|
36758
|
+
var shadow = _step21.value;
|
|
36215
36759
|
var colorStr = shadow.colorStr || style.getPropertyValue('color');
|
|
36216
36760
|
var _shadow$pixels = _slicedToArray(shadow.pixels, 3), offsetX = _shadow$pixels[0], offsetY = _shadow$pixels[1], _shadow$pixels$ = _shadow$pixels[2], blurRadius = _shadow$pixels$ === void 0 ? 0 : _shadow$pixels$;
|
|
36217
36761
|
if (maxRatio && blurRadius >= fontSize * maxRatio) {
|
|
@@ -36244,9 +36788,9 @@ function requireAxe () {
|
|
|
36244
36788
|
shadowColors.push(_color3);
|
|
36245
36789
|
}
|
|
36246
36790
|
} catch (err) {
|
|
36247
|
-
|
|
36791
|
+
_iterator21.e(err);
|
|
36248
36792
|
} finally {
|
|
36249
|
-
|
|
36793
|
+
_iterator21.f();
|
|
36250
36794
|
}
|
|
36251
36795
|
if (thinShadows.length > 0) {
|
|
36252
36796
|
var strokeColors = _getStrokeColorsFromShadows(thinShadows, {
|
|
@@ -36259,8 +36803,8 @@ function requireAxe () {
|
|
|
36259
36803
|
}
|
|
36260
36804
|
return shadowColors;
|
|
36261
36805
|
}
|
|
36262
|
-
function textShadowColor(
|
|
36263
|
-
var colorStr =
|
|
36806
|
+
function textShadowColor(_ref110) {
|
|
36807
|
+
var colorStr = _ref110.colorStr, offsetX = _ref110.offsetX, offsetY = _ref110.offsetY, blurRadius = _ref110.blurRadius, fontSize = _ref110.fontSize;
|
|
36264
36808
|
if (offsetX > blurRadius || offsetY > blurRadius) {
|
|
36265
36809
|
return new color_default(0, 0, 0, 0);
|
|
36266
36810
|
}
|
|
@@ -36288,13 +36832,13 @@ function requireAxe () {
|
|
|
36288
36832
|
var _stackingOrder2;
|
|
36289
36833
|
var bgVNode = get_node_from_tree_default(bgElm);
|
|
36290
36834
|
var bgColor = getOwnBackgroundColor2(bgVNode);
|
|
36291
|
-
var stackingOrder = bgVNode._stackingOrder.filter(function(
|
|
36292
|
-
var vNode =
|
|
36835
|
+
var stackingOrder = bgVNode._stackingOrder.filter(function(_ref111) {
|
|
36836
|
+
var vNode = _ref111.vNode;
|
|
36293
36837
|
return !!vNode;
|
|
36294
36838
|
});
|
|
36295
|
-
stackingOrder.forEach(function(
|
|
36839
|
+
stackingOrder.forEach(function(_ref112, index) {
|
|
36296
36840
|
var _stackingOrder;
|
|
36297
|
-
var vNode =
|
|
36841
|
+
var vNode = _ref112.vNode;
|
|
36298
36842
|
var ancestorVNode2 = (_stackingOrder = stackingOrder[index - 1]) === null || _stackingOrder === void 0 ? void 0 : _stackingOrder.vNode;
|
|
36299
36843
|
var context2 = addToStackingContext(contextMap, vNode, ancestorVNode2);
|
|
36300
36844
|
if (index === 0 && !contextMap.get(vNode)) {
|
|
@@ -36548,8 +37092,8 @@ function requireAxe () {
|
|
|
36548
37092
|
function getTextColor(nodeStyle) {
|
|
36549
37093
|
return new color_default().parseString(nodeStyle.getPropertyValue('-webkit-text-fill-color') || nodeStyle.getPropertyValue('color'));
|
|
36550
37094
|
}
|
|
36551
|
-
function getStrokeColor(nodeStyle,
|
|
36552
|
-
var
|
|
37095
|
+
function getStrokeColor(nodeStyle, _ref113) {
|
|
37096
|
+
var _ref113$textStrokeEmM = _ref113.textStrokeEmMin, textStrokeEmMin = _ref113$textStrokeEmM === void 0 ? 0 : _ref113$textStrokeEmM;
|
|
36553
37097
|
var strokeWidth = parseFloat(nodeStyle.getPropertyValue('-webkit-text-stroke-width'));
|
|
36554
37098
|
if (strokeWidth === 0) {
|
|
36555
37099
|
return null;
|
|
@@ -36591,11 +37135,11 @@ function requireAxe () {
|
|
|
36591
37135
|
return fgColor;
|
|
36592
37136
|
}
|
|
36593
37137
|
function findNodeInContexts(contexts, node) {
|
|
36594
|
-
var
|
|
37138
|
+
var _iterator22 = _createForOfIteratorHelper(contexts), _step22;
|
|
36595
37139
|
try {
|
|
36596
|
-
for (
|
|
37140
|
+
for (_iterator22.s(); !(_step22 = _iterator22.n()).done; ) {
|
|
36597
37141
|
var _context$vNode;
|
|
36598
|
-
var context =
|
|
37142
|
+
var context = _step22.value;
|
|
36599
37143
|
if (((_context$vNode = context.vNode) === null || _context$vNode === void 0 ? void 0 : _context$vNode.actualNode) === node) {
|
|
36600
37144
|
return context;
|
|
36601
37145
|
}
|
|
@@ -36605,9 +37149,9 @@ function requireAxe () {
|
|
|
36605
37149
|
}
|
|
36606
37150
|
}
|
|
36607
37151
|
} catch (err) {
|
|
36608
|
-
|
|
37152
|
+
_iterator22.e(err);
|
|
36609
37153
|
} finally {
|
|
36610
|
-
|
|
37154
|
+
_iterator22.f();
|
|
36611
37155
|
}
|
|
36612
37156
|
}
|
|
36613
37157
|
function hasValidContrastRatio(bg, fg, fontSize, isBold) {
|
|
@@ -36711,25 +37255,25 @@ function requireAxe () {
|
|
|
36711
37255
|
if (results.length < 2) {
|
|
36712
37256
|
return results;
|
|
36713
37257
|
}
|
|
36714
|
-
var incompleteResults = results.filter(function(
|
|
36715
|
-
var result =
|
|
37258
|
+
var incompleteResults = results.filter(function(_ref114) {
|
|
37259
|
+
var result = _ref114.result;
|
|
36716
37260
|
return result !== void 0;
|
|
36717
37261
|
});
|
|
36718
37262
|
var uniqueResults = [];
|
|
36719
37263
|
var nameMap = {};
|
|
36720
|
-
var
|
|
37264
|
+
var _loop9 = function _loop9(index) {
|
|
36721
37265
|
var _currentResult$relate;
|
|
36722
37266
|
var currentResult = incompleteResults[index];
|
|
36723
37267
|
var _currentResult$data = currentResult.data, name = _currentResult$data.name, urlProps = _currentResult$data.urlProps;
|
|
36724
37268
|
if (nameMap[name]) {
|
|
36725
37269
|
return 1;
|
|
36726
37270
|
}
|
|
36727
|
-
var sameNameResults = incompleteResults.filter(function(
|
|
36728
|
-
var data =
|
|
37271
|
+
var sameNameResults = incompleteResults.filter(function(_ref115, resultNum) {
|
|
37272
|
+
var data = _ref115.data;
|
|
36729
37273
|
return data.name === name && resultNum !== index;
|
|
36730
37274
|
});
|
|
36731
|
-
var isSameUrl = sameNameResults.every(function(
|
|
36732
|
-
var data =
|
|
37275
|
+
var isSameUrl = sameNameResults.every(function(_ref116) {
|
|
37276
|
+
var data = _ref116.data;
|
|
36733
37277
|
return isIdenticalObject(data.urlProps, urlProps);
|
|
36734
37278
|
});
|
|
36735
37279
|
if (sameNameResults.length && !isSameUrl) {
|
|
@@ -36743,7 +37287,7 @@ function requireAxe () {
|
|
|
36743
37287
|
uniqueResults.push(currentResult);
|
|
36744
37288
|
};
|
|
36745
37289
|
for (var index = 0; index < incompleteResults.length; index++) {
|
|
36746
|
-
if (
|
|
37290
|
+
if (_loop9(index)) {
|
|
36747
37291
|
continue;
|
|
36748
37292
|
}
|
|
36749
37293
|
}
|
|
@@ -36755,7 +37299,7 @@ function requireAxe () {
|
|
|
36755
37299
|
var headingRole = role && role.includes('heading');
|
|
36756
37300
|
var ariaHeadingLevel = vNode.attr('aria-level');
|
|
36757
37301
|
var ariaLevel = parseInt(ariaHeadingLevel, 10);
|
|
36758
|
-
var
|
|
37302
|
+
var _ref117 = vNode.props.nodeName.match(/h(\d)/) || [], _ref118 = _slicedToArray(_ref117, 2), headingLevel = _ref118[1];
|
|
36759
37303
|
if (!headingRole) {
|
|
36760
37304
|
return -1;
|
|
36761
37305
|
}
|
|
@@ -36815,14 +37359,14 @@ function requireAxe () {
|
|
|
36815
37359
|
}
|
|
36816
37360
|
function getHeadingOrder(results) {
|
|
36817
37361
|
results = _toConsumableArray(results);
|
|
36818
|
-
results.sort(function(
|
|
36819
|
-
var nodeA =
|
|
36820
|
-
var nodeB =
|
|
37362
|
+
results.sort(function(_ref119, _ref120) {
|
|
37363
|
+
var nodeA = _ref119.node;
|
|
37364
|
+
var nodeB = _ref120.node;
|
|
36821
37365
|
return nodeA.ancestry.length - nodeB.ancestry.length;
|
|
36822
37366
|
});
|
|
36823
37367
|
var headingOrder = results.reduce(mergeHeadingOrder, []);
|
|
36824
|
-
return headingOrder.filter(function(
|
|
36825
|
-
var level =
|
|
37368
|
+
return headingOrder.filter(function(_ref121) {
|
|
37369
|
+
var level = _ref121.level;
|
|
36826
37370
|
return level !== -1;
|
|
36827
37371
|
});
|
|
36828
37372
|
}
|
|
@@ -36951,10 +37495,10 @@ function requireAxe () {
|
|
|
36951
37495
|
function filterByElmsOverlap(vNode, nearbyElms) {
|
|
36952
37496
|
var fullyObscuringElms = [];
|
|
36953
37497
|
var partialObscuringElms = [];
|
|
36954
|
-
var
|
|
37498
|
+
var _iterator23 = _createForOfIteratorHelper(nearbyElms), _step23;
|
|
36955
37499
|
try {
|
|
36956
|
-
for (
|
|
36957
|
-
var vNeighbor =
|
|
37500
|
+
for (_iterator23.s(); !(_step23 = _iterator23.n()).done; ) {
|
|
37501
|
+
var vNeighbor = _step23.value;
|
|
36958
37502
|
if (!isDescendantNotInTabOrder2(vNode, vNeighbor) && _hasVisualOverlap(vNode, vNeighbor) && getCssPointerEvents(vNeighbor) !== 'none') {
|
|
36959
37503
|
if (isEnclosedRect2(vNode, vNeighbor)) {
|
|
36960
37504
|
fullyObscuringElms.push(vNeighbor);
|
|
@@ -36964,9 +37508,9 @@ function requireAxe () {
|
|
|
36964
37508
|
}
|
|
36965
37509
|
}
|
|
36966
37510
|
} catch (err) {
|
|
36967
|
-
|
|
37511
|
+
_iterator23.e(err);
|
|
36968
37512
|
} finally {
|
|
36969
|
-
|
|
37513
|
+
_iterator23.f();
|
|
36970
37514
|
}
|
|
36971
37515
|
return {
|
|
36972
37516
|
fullyObscuringElms: fullyObscuringElms,
|
|
@@ -37022,8 +37566,8 @@ function requireAxe () {
|
|
|
37022
37566
|
return _contains(vAncestor, vNode) && !_isInTabOrder(vNode);
|
|
37023
37567
|
}
|
|
37024
37568
|
function mapActualNodes(vNodes) {
|
|
37025
|
-
return vNodes.map(function(
|
|
37026
|
-
var actualNode =
|
|
37569
|
+
return vNodes.map(function(_ref122) {
|
|
37570
|
+
var actualNode = _ref122.actualNode;
|
|
37027
37571
|
return actualNode;
|
|
37028
37572
|
});
|
|
37029
37573
|
}
|
|
@@ -37039,10 +37583,10 @@ function requireAxe () {
|
|
|
37039
37583
|
}
|
|
37040
37584
|
var closeNeighbors = [];
|
|
37041
37585
|
var closestOffset = minOffset;
|
|
37042
|
-
var
|
|
37586
|
+
var _iterator24 = _createForOfIteratorHelper(_findNearbyElms(vNode, minOffset)), _step24;
|
|
37043
37587
|
try {
|
|
37044
|
-
for (
|
|
37045
|
-
var vNeighbor =
|
|
37588
|
+
for (_iterator24.s(); !(_step24 = _iterator24.n()).done; ) {
|
|
37589
|
+
var vNeighbor = _step24.value;
|
|
37046
37590
|
if (get_role_type_default(vNeighbor) !== 'widget' || !_isFocusable(vNeighbor)) {
|
|
37047
37591
|
continue;
|
|
37048
37592
|
}
|
|
@@ -37071,9 +37615,9 @@ function requireAxe () {
|
|
|
37071
37615
|
closeNeighbors.push(vNeighbor);
|
|
37072
37616
|
}
|
|
37073
37617
|
} catch (err) {
|
|
37074
|
-
|
|
37618
|
+
_iterator24.e(err);
|
|
37075
37619
|
} finally {
|
|
37076
|
-
|
|
37620
|
+
_iterator24.f();
|
|
37077
37621
|
}
|
|
37078
37622
|
if (closeNeighbors.length === 0) {
|
|
37079
37623
|
this.data({
|
|
@@ -37082,8 +37626,8 @@ function requireAxe () {
|
|
|
37082
37626
|
});
|
|
37083
37627
|
return true;
|
|
37084
37628
|
}
|
|
37085
|
-
this.relatedNodes(closeNeighbors.map(function(
|
|
37086
|
-
var actualNode =
|
|
37629
|
+
this.relatedNodes(closeNeighbors.map(function(_ref123) {
|
|
37630
|
+
var actualNode = _ref123.actualNode;
|
|
37087
37631
|
return actualNode;
|
|
37088
37632
|
}));
|
|
37089
37633
|
if (!closeNeighbors.some(_isInTabOrder)) {
|
|
@@ -37104,7 +37648,7 @@ function requireAxe () {
|
|
|
37104
37648
|
return Math.round(num * 10) / 10;
|
|
37105
37649
|
}
|
|
37106
37650
|
function metaViewportScaleEvaluate(node, options, virtualNode) {
|
|
37107
|
-
var
|
|
37651
|
+
var _ref124 = options || {}, _ref124$scaleMinimum = _ref124.scaleMinimum, scaleMinimum = _ref124$scaleMinimum === void 0 ? 2 : _ref124$scaleMinimum, _ref124$lowerBound = _ref124.lowerBound, lowerBound = _ref124$lowerBound === void 0 ? false : _ref124$lowerBound;
|
|
37108
37652
|
var content = virtualNode.attr('content') || '';
|
|
37109
37653
|
if (!content) {
|
|
37110
37654
|
return true;
|
|
@@ -37149,23 +37693,23 @@ function requireAxe () {
|
|
|
37149
37693
|
}
|
|
37150
37694
|
var meta_viewport_scale_evaluate_default = metaViewportScaleEvaluate;
|
|
37151
37695
|
function cssOrientationLockEvaluate(node, options, virtualNode, context) {
|
|
37152
|
-
var
|
|
37153
|
-
var
|
|
37696
|
+
var _ref125 = context || {}, _ref125$cssom = _ref125.cssom, cssom = _ref125$cssom === void 0 ? void 0 : _ref125$cssom;
|
|
37697
|
+
var _ref126 = options || {}, _ref126$degreeThresho = _ref126.degreeThreshold, degreeThreshold = _ref126$degreeThresho === void 0 ? 0 : _ref126$degreeThresho;
|
|
37154
37698
|
if (!cssom || !cssom.length) {
|
|
37155
37699
|
return void 0;
|
|
37156
37700
|
}
|
|
37157
37701
|
var isLocked = false;
|
|
37158
37702
|
var relatedElements = [];
|
|
37159
37703
|
var rulesGroupByDocumentFragment = groupCssomByDocument(cssom);
|
|
37160
|
-
var
|
|
37704
|
+
var _loop0 = function _loop0() {
|
|
37161
37705
|
var key = _Object$keys3[_i31];
|
|
37162
37706
|
var _rulesGroupByDocument = rulesGroupByDocumentFragment[key], root = _rulesGroupByDocument.root, rules = _rulesGroupByDocument.rules;
|
|
37163
37707
|
var orientationRules = rules.filter(isMediaRuleWithOrientation);
|
|
37164
37708
|
if (!orientationRules.length) {
|
|
37165
37709
|
return 1;
|
|
37166
37710
|
}
|
|
37167
|
-
orientationRules.forEach(function(
|
|
37168
|
-
var cssRules =
|
|
37711
|
+
orientationRules.forEach(function(_ref127) {
|
|
37712
|
+
var cssRules = _ref127.cssRules;
|
|
37169
37713
|
Array.from(cssRules).forEach(function(cssRule) {
|
|
37170
37714
|
var locked = getIsOrientationLocked(cssRule);
|
|
37171
37715
|
if (locked && cssRule.selectorText.toUpperCase() !== 'HTML') {
|
|
@@ -37177,7 +37721,7 @@ function requireAxe () {
|
|
|
37177
37721
|
});
|
|
37178
37722
|
};
|
|
37179
37723
|
for (var _i31 = 0, _Object$keys3 = Object.keys(rulesGroupByDocumentFragment); _i31 < _Object$keys3.length; _i31++) {
|
|
37180
|
-
if (
|
|
37724
|
+
if (_loop0()) {
|
|
37181
37725
|
continue;
|
|
37182
37726
|
}
|
|
37183
37727
|
}
|
|
@@ -37189,8 +37733,8 @@ function requireAxe () {
|
|
|
37189
37733
|
}
|
|
37190
37734
|
return false;
|
|
37191
37735
|
function groupCssomByDocument(cssObjectModel) {
|
|
37192
|
-
return cssObjectModel.reduce(function(out,
|
|
37193
|
-
var sheet =
|
|
37736
|
+
return cssObjectModel.reduce(function(out, _ref128) {
|
|
37737
|
+
var sheet = _ref128.sheet, root = _ref128.root, shadowId = _ref128.shadowId;
|
|
37194
37738
|
var key = shadowId ? shadowId : 'topDocument';
|
|
37195
37739
|
if (!out[key]) {
|
|
37196
37740
|
out[key] = {
|
|
@@ -37206,15 +37750,15 @@ function requireAxe () {
|
|
|
37206
37750
|
return out;
|
|
37207
37751
|
}, {});
|
|
37208
37752
|
}
|
|
37209
|
-
function isMediaRuleWithOrientation(
|
|
37210
|
-
var type2 =
|
|
37753
|
+
function isMediaRuleWithOrientation(_ref129) {
|
|
37754
|
+
var type2 = _ref129.type, cssText = _ref129.cssText;
|
|
37211
37755
|
if (type2 !== 4) {
|
|
37212
37756
|
return false;
|
|
37213
37757
|
}
|
|
37214
37758
|
return /orientation:\s*landscape/i.test(cssText) || /orientation:\s*portrait/i.test(cssText);
|
|
37215
37759
|
}
|
|
37216
|
-
function getIsOrientationLocked(
|
|
37217
|
-
var selectorText =
|
|
37760
|
+
function getIsOrientationLocked(_ref130) {
|
|
37761
|
+
var selectorText = _ref130.selectorText, style = _ref130.style;
|
|
37218
37762
|
if (!selectorText || style.length <= 0) {
|
|
37219
37763
|
return false;
|
|
37220
37764
|
}
|
|
@@ -37269,7 +37813,7 @@ function requireAxe () {
|
|
|
37269
37813
|
}
|
|
37270
37814
|
}
|
|
37271
37815
|
function getAngleInDegrees(angleWithUnit) {
|
|
37272
|
-
var
|
|
37816
|
+
var _ref131 = angleWithUnit.match(/(deg|grad|rad|turn)/) || [], _ref132 = _slicedToArray(_ref131, 1), unit = _ref132[0];
|
|
37273
37817
|
if (!unit) {
|
|
37274
37818
|
return 0;
|
|
37275
37819
|
}
|
|
@@ -37511,18 +38055,17 @@ function requireAxe () {
|
|
|
37511
38055
|
if (!parent) {
|
|
37512
38056
|
return void 0;
|
|
37513
38057
|
}
|
|
37514
|
-
var
|
|
37515
|
-
var parentRole =
|
|
38058
|
+
var parentExplicitRole = get_explicit_role_default(parent);
|
|
38059
|
+
var parentRole = get_role_default(parent);
|
|
37516
38060
|
if ([ 'presentation', 'none', 'list' ].includes(parentRole)) {
|
|
37517
38061
|
return true;
|
|
37518
38062
|
}
|
|
37519
|
-
if (
|
|
38063
|
+
if (parentExplicitRole && is_valid_role_default(parentExplicitRole)) {
|
|
37520
38064
|
this.data({
|
|
37521
38065
|
messageKey: 'roleNotValid'
|
|
37522
38066
|
});
|
|
37523
|
-
return false;
|
|
37524
38067
|
}
|
|
37525
|
-
return
|
|
38068
|
+
return false;
|
|
37526
38069
|
}
|
|
37527
38070
|
function invalidChildrenEvaluate(node) {
|
|
37528
38071
|
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
@@ -37564,8 +38107,8 @@ function requireAxe () {
|
|
|
37564
38107
|
this.relatedNodes(relatedNodes);
|
|
37565
38108
|
return true;
|
|
37566
38109
|
}
|
|
37567
|
-
function getInvalidSelector(vChild, nested,
|
|
37568
|
-
var
|
|
38110
|
+
function getInvalidSelector(vChild, nested, _ref133) {
|
|
38111
|
+
var _ref133$validRoles = _ref133.validRoles, validRoles = _ref133$validRoles === void 0 ? [] : _ref133$validRoles, _ref133$validNodeName = _ref133.validNodeNames, validNodeNames = _ref133$validNodeName === void 0 ? [] : _ref133$validNodeName;
|
|
37569
38112
|
var _vChild$props = vChild.props, nodeName2 = _vChild$props.nodeName, nodeType = _vChild$props.nodeType, nodeValue = _vChild$props.nodeValue;
|
|
37570
38113
|
var selector = nested ? 'div > ' : '';
|
|
37571
38114
|
if (nodeType === 3 && nodeValue.trim() !== '') {
|
|
@@ -37574,11 +38117,12 @@ function requireAxe () {
|
|
|
37574
38117
|
if (nodeType !== 1 || !_isVisibleToScreenReaders(vChild)) {
|
|
37575
38118
|
return false;
|
|
37576
38119
|
}
|
|
37577
|
-
var
|
|
37578
|
-
|
|
37579
|
-
|
|
38120
|
+
var explicitRole2 = get_explicit_role_default(vChild);
|
|
38121
|
+
var role = get_role_default(vChild);
|
|
38122
|
+
if (explicitRole2) {
|
|
38123
|
+
return validRoles.includes(explicitRole2) ? false : selector + '[role='.concat(role, ']');
|
|
37580
38124
|
} else {
|
|
37581
|
-
return validNodeNames.includes(nodeName2) ? false : selector + nodeName2;
|
|
38125
|
+
return validNodeNames.includes(nodeName2) || validRoles.includes(role) ? false : selector + nodeName2;
|
|
37582
38126
|
}
|
|
37583
38127
|
}
|
|
37584
38128
|
function isDivGroup(vNode) {
|
|
@@ -37752,12 +38296,11 @@ function requireAxe () {
|
|
|
37752
38296
|
var pixelThreshold = options === null || options === void 0 ? void 0 : options.pixelThreshold;
|
|
37753
38297
|
var occurrenceThreshold = (_options$occurrenceTh = options === null || options === void 0 ? void 0 : options.occurrenceThreshold) !== null && _options$occurrenceTh !== void 0 ? _options$occurrenceTh : options === null || options === void 0 ? void 0 : options.occuranceThreshold;
|
|
37754
38298
|
var accText = accessible_text_default(node).toLowerCase();
|
|
37755
|
-
var visibleText =
|
|
37756
|
-
subtreeDescendant: true,
|
|
38299
|
+
var visibleText = visible_virtual_default(virtualNode, false, false, {
|
|
37757
38300
|
ignoreIconLigature: true,
|
|
37758
38301
|
pixelThreshold: pixelThreshold,
|
|
37759
38302
|
occurrenceThreshold: occurrenceThreshold
|
|
37760
|
-
})
|
|
38303
|
+
}).toLowerCase();
|
|
37761
38304
|
if (!visibleText) {
|
|
37762
38305
|
return true;
|
|
37763
38306
|
}
|
|
@@ -38015,8 +38558,8 @@ function requireAxe () {
|
|
|
38015
38558
|
}
|
|
38016
38559
|
var focusable_no_name_evaluate_default = focusableNoNameEvaluate;
|
|
38017
38560
|
function focusableModalOpenEvaluate(node, options, virtualNode) {
|
|
38018
|
-
var tabbableElements = virtualNode.tabbableElements.map(function(
|
|
38019
|
-
var actualNode =
|
|
38561
|
+
var tabbableElements = virtualNode.tabbableElements.map(function(_ref134) {
|
|
38562
|
+
var actualNode = _ref134.actualNode;
|
|
38020
38563
|
return actualNode;
|
|
38021
38564
|
});
|
|
38022
38565
|
if (!tabbableElements || !tabbableElements.length) {
|
|
@@ -38411,7 +38954,7 @@ function requireAxe () {
|
|
|
38411
38954
|
var bold = parseFloat(fontWeight) >= boldValue || fontWeight === 'bold';
|
|
38412
38955
|
var ptSize = Math.ceil(fontSize * 72) / 96;
|
|
38413
38956
|
var isSmallFont = bold && ptSize < boldTextPt || !bold && ptSize < largeTextPt;
|
|
38414
|
-
var
|
|
38957
|
+
var _ref135 = isSmallFont ? contrastRatio.normal : contrastRatio.large, expected = _ref135.expected, minThreshold = _ref135.minThreshold, maxThreshold = _ref135.maxThreshold;
|
|
38415
38958
|
var pseudoElm = findPseudoElement(virtualNode, {
|
|
38416
38959
|
ignorePseudo: ignorePseudo,
|
|
38417
38960
|
pseudoSizeThreshold: pseudoSizeThreshold
|
|
@@ -38507,8 +39050,8 @@ function requireAxe () {
|
|
|
38507
39050
|
}
|
|
38508
39051
|
return isValid;
|
|
38509
39052
|
}
|
|
38510
|
-
function findPseudoElement(vNode,
|
|
38511
|
-
var
|
|
39053
|
+
function findPseudoElement(vNode, _ref136) {
|
|
39054
|
+
var _ref136$pseudoSizeThr = _ref136.pseudoSizeThreshold, pseudoSizeThreshold = _ref136$pseudoSizeThr === void 0 ? .25 : _ref136$pseudoSizeThr, _ref136$ignorePseudo = _ref136.ignorePseudo, ignorePseudo = _ref136$ignorePseudo === void 0 ? false : _ref136$ignorePseudo;
|
|
38512
39055
|
if (ignorePseudo) {
|
|
38513
39056
|
return;
|
|
38514
39057
|
}
|
|
@@ -38550,7 +39093,7 @@ function requireAxe () {
|
|
|
38550
39093
|
}
|
|
38551
39094
|
function parseUnit(str) {
|
|
38552
39095
|
var unitRegex = /^([0-9.]+)([a-z]+)$/i;
|
|
38553
|
-
var
|
|
39096
|
+
var _ref137 = str.match(unitRegex) || [], _ref138 = _slicedToArray(_ref137, 3), _ref138$ = _ref138[1], value = _ref138$ === void 0 ? '' : _ref138$, _ref138$2 = _ref138[2], unit = _ref138$2 === void 0 ? '' : _ref138$2;
|
|
38554
39097
|
return {
|
|
38555
39098
|
value: parseFloat(value),
|
|
38556
39099
|
unit: unit.toLowerCase()
|
|
@@ -38929,20 +39472,20 @@ function requireAxe () {
|
|
|
38929
39472
|
return true;
|
|
38930
39473
|
}
|
|
38931
39474
|
var ownedRoles = getOwnedRoles(virtualNode, required);
|
|
38932
|
-
var unallowed = ownedRoles.filter(function(
|
|
38933
|
-
var role =
|
|
39475
|
+
var unallowed = ownedRoles.filter(function(_ref139) {
|
|
39476
|
+
var role = _ref139.role, vNode = _ref139.vNode;
|
|
38934
39477
|
return vNode.props.nodeType === 1 && !required.includes(role);
|
|
38935
39478
|
});
|
|
38936
39479
|
if (unallowed.length) {
|
|
38937
|
-
this.relatedNodes(unallowed.map(function(
|
|
38938
|
-
var vNode =
|
|
39480
|
+
this.relatedNodes(unallowed.map(function(_ref140) {
|
|
39481
|
+
var vNode = _ref140.vNode;
|
|
38939
39482
|
return vNode;
|
|
38940
39483
|
}));
|
|
38941
39484
|
var messageKey = virtualNode.attr('aria-busy') === 'true' ? 'aria-busy-fail' : 'unallowed';
|
|
38942
39485
|
this.data({
|
|
38943
39486
|
messageKey: messageKey,
|
|
38944
|
-
values: unallowed.map(function(
|
|
38945
|
-
var vNode =
|
|
39487
|
+
values: unallowed.map(function(_ref141) {
|
|
39488
|
+
var vNode = _ref141.vNode, attr = _ref141.attr;
|
|
38946
39489
|
return getUnallowedSelector(vNode, attr);
|
|
38947
39490
|
}).filter(function(selector, index, array) {
|
|
38948
39491
|
return array.indexOf(selector) === index;
|
|
@@ -38969,7 +39512,7 @@ function requireAxe () {
|
|
|
38969
39512
|
var vNode;
|
|
38970
39513
|
var ownedRoles = [];
|
|
38971
39514
|
var ownedVirtual = get_owned_virtual_default(virtualNode);
|
|
38972
|
-
var
|
|
39515
|
+
var _loop1 = function _loop1() {
|
|
38973
39516
|
if (vNode.props.nodeType === 3) {
|
|
38974
39517
|
ownedRoles.push({
|
|
38975
39518
|
vNode: vNode,
|
|
@@ -38989,7 +39532,7 @@ function requireAxe () {
|
|
|
38989
39532
|
})) {
|
|
38990
39533
|
ownedVirtual.push.apply(ownedVirtual, _toConsumableArray(vNode.children));
|
|
38991
39534
|
} else if (role || hasGlobalAriaOrFocusable) {
|
|
38992
|
-
var attr = globalAriaAttr || 'tabindex';
|
|
39535
|
+
var attr = globalAriaAttr || (vNode.hasAttr('tabindex') ? 'tabindex' : void 0);
|
|
38993
39536
|
ownedRoles.push({
|
|
38994
39537
|
role: role,
|
|
38995
39538
|
attr: attr,
|
|
@@ -38998,15 +39541,15 @@ function requireAxe () {
|
|
|
38998
39541
|
}
|
|
38999
39542
|
};
|
|
39000
39543
|
while (vNode = ownedVirtual.shift()) {
|
|
39001
|
-
if (
|
|
39544
|
+
if (_loop1()) {
|
|
39002
39545
|
continue;
|
|
39003
39546
|
}
|
|
39004
39547
|
}
|
|
39005
39548
|
return ownedRoles;
|
|
39006
39549
|
}
|
|
39007
39550
|
function hasRequiredChildren(required, ownedRoles) {
|
|
39008
|
-
return ownedRoles.some(function(
|
|
39009
|
-
var role =
|
|
39551
|
+
return ownedRoles.some(function(_ref142) {
|
|
39552
|
+
var role = _ref142.role;
|
|
39010
39553
|
return role && required.includes(role);
|
|
39011
39554
|
});
|
|
39012
39555
|
}
|
|
@@ -39031,8 +39574,8 @@ function requireAxe () {
|
|
|
39031
39574
|
}
|
|
39032
39575
|
return nodeName2;
|
|
39033
39576
|
}
|
|
39034
|
-
function isContent(
|
|
39035
|
-
var vNode =
|
|
39577
|
+
function isContent(_ref143) {
|
|
39578
|
+
var vNode = _ref143.vNode;
|
|
39036
39579
|
if (vNode.props.nodeType === 3) {
|
|
39037
39580
|
return vNode.props.nodeValue.trim().length > 0;
|
|
39038
39581
|
}
|
|
@@ -39202,7 +39745,7 @@ function requireAxe () {
|
|
|
39202
39745
|
}
|
|
39203
39746
|
function ariaConditionalRowAttr(node) {
|
|
39204
39747
|
var _invalidTableRowAttrs, _invalidTableRowAttrs2;
|
|
39205
|
-
var
|
|
39748
|
+
var _ref144 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, invalidTableRowAttrs = _ref144.invalidTableRowAttrs;
|
|
39206
39749
|
var virtualNode = arguments.length > 2 ? arguments[2] : undefined;
|
|
39207
39750
|
var invalidAttrs = (_invalidTableRowAttrs = invalidTableRowAttrs === null || invalidTableRowAttrs === void 0 || (_invalidTableRowAttrs2 = invalidTableRowAttrs.filter) === null || _invalidTableRowAttrs2 === void 0 ? void 0 : _invalidTableRowAttrs2.call(invalidTableRowAttrs, function(invalidAttr) {
|
|
39208
39751
|
return virtualNode.hasAttr(invalidAttr);
|
|
@@ -39230,10 +39773,10 @@ function requireAxe () {
|
|
|
39230
39773
|
var rowOwnerQuery = 'table:not([role]), [role~="treegrid"], [role~="table"], [role~="grid"]';
|
|
39231
39774
|
return closest_default(virtualNode, rowOwnerQuery);
|
|
39232
39775
|
}
|
|
39233
|
-
function
|
|
39776
|
+
function ariaConditionalRadioAttr(node, options, virtualNode) {
|
|
39234
39777
|
var _virtualNode$props = virtualNode.props, nodeName2 = _virtualNode$props.nodeName, type2 = _virtualNode$props.type;
|
|
39235
39778
|
var ariaChecked = normalizeAriaChecked(virtualNode.attr('aria-checked'));
|
|
39236
|
-
if (nodeName2 !== 'input' || type2 !== '
|
|
39779
|
+
if (nodeName2 !== 'input' || type2 !== 'radio' || !ariaChecked) {
|
|
39237
39780
|
return true;
|
|
39238
39781
|
}
|
|
39239
39782
|
var checkState = getCheckState(virtualNode);
|
|
@@ -39241,18 +39784,47 @@ function requireAxe () {
|
|
|
39241
39784
|
return true;
|
|
39242
39785
|
}
|
|
39243
39786
|
this.data({
|
|
39244
|
-
messageKey: '
|
|
39787
|
+
messageKey: 'radio',
|
|
39245
39788
|
checkState: checkState
|
|
39246
39789
|
});
|
|
39247
39790
|
return false;
|
|
39248
39791
|
}
|
|
39249
39792
|
function getCheckState(vNode) {
|
|
39793
|
+
return vNode.props.checked ? 'true' : 'false';
|
|
39794
|
+
}
|
|
39795
|
+
function normalizeAriaChecked(ariaCheckedVal) {
|
|
39796
|
+
if (!ariaCheckedVal) {
|
|
39797
|
+
return '';
|
|
39798
|
+
}
|
|
39799
|
+
ariaCheckedVal = ariaCheckedVal.toLowerCase();
|
|
39800
|
+
if (ariaCheckedVal === 'true') {
|
|
39801
|
+
return ariaCheckedVal;
|
|
39802
|
+
}
|
|
39803
|
+
return 'false';
|
|
39804
|
+
}
|
|
39805
|
+
function ariaConditionalCheckboxAttr(node, options, virtualNode) {
|
|
39806
|
+
var _virtualNode$props2 = virtualNode.props, nodeName2 = _virtualNode$props2.nodeName, type2 = _virtualNode$props2.type;
|
|
39807
|
+
var ariaChecked = normalizeAriaChecked2(virtualNode.attr('aria-checked'));
|
|
39808
|
+
if (nodeName2 !== 'input' || type2 !== 'checkbox' || !ariaChecked) {
|
|
39809
|
+
return true;
|
|
39810
|
+
}
|
|
39811
|
+
var checkState = getCheckState2(virtualNode);
|
|
39812
|
+
if (ariaChecked === checkState) {
|
|
39813
|
+
return true;
|
|
39814
|
+
}
|
|
39815
|
+
this.data({
|
|
39816
|
+
messageKey: 'checkbox',
|
|
39817
|
+
checkState: checkState
|
|
39818
|
+
});
|
|
39819
|
+
return false;
|
|
39820
|
+
}
|
|
39821
|
+
function getCheckState2(vNode) {
|
|
39250
39822
|
if (vNode.props.indeterminate) {
|
|
39251
39823
|
return 'mixed';
|
|
39252
39824
|
}
|
|
39253
39825
|
return vNode.props.checked ? 'true' : 'false';
|
|
39254
39826
|
}
|
|
39255
|
-
function
|
|
39827
|
+
function normalizeAriaChecked2(ariaCheckedVal) {
|
|
39256
39828
|
if (!ariaCheckedVal) {
|
|
39257
39829
|
return '';
|
|
39258
39830
|
}
|
|
@@ -39264,7 +39836,8 @@ function requireAxe () {
|
|
|
39264
39836
|
}
|
|
39265
39837
|
var conditionalRoleMap = {
|
|
39266
39838
|
row: ariaConditionalRowAttr,
|
|
39267
|
-
checkbox: ariaConditionalCheckboxAttr
|
|
39839
|
+
checkbox: ariaConditionalCheckboxAttr,
|
|
39840
|
+
radio: ariaConditionalRadioAttr
|
|
39268
39841
|
};
|
|
39269
39842
|
function ariaConditionalAttrEvaluate(node, options, virtualNode) {
|
|
39270
39843
|
var role = get_role_default(virtualNode);
|
|
@@ -39304,18 +39877,18 @@ function requireAxe () {
|
|
|
39304
39877
|
if (Array.isArray(options[role])) {
|
|
39305
39878
|
allowed = unique_array_default(options[role].concat(allowed));
|
|
39306
39879
|
}
|
|
39307
|
-
var
|
|
39880
|
+
var _iterator25 = _createForOfIteratorHelper(virtualNode.attrNames), _step25;
|
|
39308
39881
|
try {
|
|
39309
|
-
for (
|
|
39310
|
-
var attrName =
|
|
39882
|
+
for (_iterator25.s(); !(_step25 = _iterator25.n()).done; ) {
|
|
39883
|
+
var attrName = _step25.value;
|
|
39311
39884
|
if (validate_attr_default(attrName) && !allowed.includes(attrName) && !ignoredAttrs(attrName, virtualNode.attr(attrName), virtualNode)) {
|
|
39312
39885
|
invalid.push(attrName);
|
|
39313
39886
|
}
|
|
39314
39887
|
}
|
|
39315
39888
|
} catch (err) {
|
|
39316
|
-
|
|
39889
|
+
_iterator25.e(err);
|
|
39317
39890
|
} finally {
|
|
39318
|
-
|
|
39891
|
+
_iterator25.f();
|
|
39319
39892
|
}
|
|
39320
39893
|
if (!invalid.length) {
|
|
39321
39894
|
return true;
|
|
@@ -39323,7 +39896,7 @@ function requireAxe () {
|
|
|
39323
39896
|
this.data(invalid.map(function(attrName) {
|
|
39324
39897
|
return attrName + '="' + virtualNode.attr(attrName) + '"';
|
|
39325
39898
|
}));
|
|
39326
|
-
if (!role && !
|
|
39899
|
+
if (!role && !_isHtmlElement(virtualNode) && !_isFocusable(virtualNode)) {
|
|
39327
39900
|
return void 0;
|
|
39328
39901
|
}
|
|
39329
39902
|
return false;
|
|
@@ -39349,18 +39922,18 @@ function requireAxe () {
|
|
|
39349
39922
|
var allowedAriaAttrs = elmSpec.allowedAriaAttrs;
|
|
39350
39923
|
var globalAriaAttrs = get_global_aria_attrs_default();
|
|
39351
39924
|
var invalid = [];
|
|
39352
|
-
var
|
|
39925
|
+
var _iterator26 = _createForOfIteratorHelper(virtualNode.attrNames), _step26;
|
|
39353
39926
|
try {
|
|
39354
|
-
for (
|
|
39355
|
-
var attrName =
|
|
39927
|
+
for (_iterator26.s(); !(_step26 = _iterator26.n()).done; ) {
|
|
39928
|
+
var attrName = _step26.value;
|
|
39356
39929
|
if (globalAriaAttrs.includes(attrName) && !allowedAriaAttrs.includes(attrName)) {
|
|
39357
39930
|
invalid.push(attrName);
|
|
39358
39931
|
}
|
|
39359
39932
|
}
|
|
39360
39933
|
} catch (err) {
|
|
39361
|
-
|
|
39934
|
+
_iterator26.e(err);
|
|
39362
39935
|
} finally {
|
|
39363
|
-
|
|
39936
|
+
_iterator26.f();
|
|
39364
39937
|
}
|
|
39365
39938
|
if (!invalid.length) {
|
|
39366
39939
|
return true;
|
|
@@ -39520,7 +40093,7 @@ function requireAxe () {
|
|
|
39520
40093
|
if (!role || [ 'none', 'presentation' ].includes(role)) {
|
|
39521
40094
|
return true;
|
|
39522
40095
|
}
|
|
39523
|
-
var
|
|
40096
|
+
var _ref145 = aria_roles_default[role] || {}, accessibleNameRequired = _ref145.accessibleNameRequired;
|
|
39524
40097
|
if (accessibleNameRequired || _isFocusable(virtualNode)) {
|
|
39525
40098
|
return true;
|
|
39526
40099
|
}
|
|
@@ -39752,7 +40325,7 @@ function requireAxe () {
|
|
|
39752
40325
|
}
|
|
39753
40326
|
var data_table_large_matches_default = dataTableLargeMatches;
|
|
39754
40327
|
function colorContrastMatches(node, virtualNode) {
|
|
39755
|
-
var _virtualNode$
|
|
40328
|
+
var _virtualNode$props3 = virtualNode.props, nodeName2 = _virtualNode$props3.nodeName, inputType = _virtualNode$props3.type;
|
|
39756
40329
|
if (nodeName2 === 'option') {
|
|
39757
40330
|
return false;
|
|
39758
40331
|
}
|
|
@@ -39967,6 +40540,7 @@ function requireAxe () {
|
|
|
39967
40540
|
'aria-busy-evaluate': ariaBusyEvaluate,
|
|
39968
40541
|
'aria-conditional-attr-evaluate': ariaConditionalAttrEvaluate,
|
|
39969
40542
|
'aria-conditional-checkbox-attr-evaluate': ariaConditionalCheckboxAttr,
|
|
40543
|
+
'aria-conditional-radio-attr-evaluate': ariaConditionalRadioAttr,
|
|
39970
40544
|
'aria-conditional-row-attr-evaluate': ariaConditionalRowAttr,
|
|
39971
40545
|
'aria-errormessage-evaluate': ariaErrormessageEvaluate,
|
|
39972
40546
|
'aria-has-attr-matches': aria_has_attr_matches_default,
|
|
@@ -40454,7 +41028,7 @@ function requireAxe () {
|
|
|
40454
41028
|
this._markChecksEnd = 'mark_runchecks_end_' + this.id;
|
|
40455
41029
|
};
|
|
40456
41030
|
Rule.prototype._logGatherPerformance = function _logGatherPerformance(nodes) {
|
|
40457
|
-
|
|
41031
|
+
log('gather for '.concat(this.id, ' (').concat(nodes.length, ' nodes): ').concat(performance_timer_default.timeElapsed(), 'ms'));
|
|
40458
41032
|
performance_timer_default.mark(this._markChecksStart);
|
|
40459
41033
|
};
|
|
40460
41034
|
Rule.prototype._logRulePerformance = function _logRulePerformance() {
|
|
@@ -40756,10 +41330,10 @@ function requireAxe () {
|
|
|
40756
41330
|
value: function setAllowedOrigins(allowedOrigins) {
|
|
40757
41331
|
var defaultOrigin = getDefaultOrigin();
|
|
40758
41332
|
this.allowedOrigins = [];
|
|
40759
|
-
var
|
|
41333
|
+
var _iterator27 = _createForOfIteratorHelper(allowedOrigins), _step27;
|
|
40760
41334
|
try {
|
|
40761
|
-
for (
|
|
40762
|
-
var origin =
|
|
41335
|
+
for (_iterator27.s(); !(_step27 = _iterator27.n()).done; ) {
|
|
41336
|
+
var origin = _step27.value;
|
|
40763
41337
|
if (origin === constants_default.allOrigins) {
|
|
40764
41338
|
this.allowedOrigins = [ '*' ];
|
|
40765
41339
|
return;
|
|
@@ -40770,9 +41344,9 @@ function requireAxe () {
|
|
|
40770
41344
|
}
|
|
40771
41345
|
}
|
|
40772
41346
|
} catch (err) {
|
|
40773
|
-
|
|
41347
|
+
_iterator27.e(err);
|
|
40774
41348
|
} finally {
|
|
40775
|
-
|
|
41349
|
+
_iterator27.f();
|
|
40776
41350
|
}
|
|
40777
41351
|
}
|
|
40778
41352
|
}, {
|
|
@@ -40841,56 +41415,61 @@ function requireAxe () {
|
|
|
40841
41415
|
}, {
|
|
40842
41416
|
key: 'run',
|
|
40843
41417
|
value: function run(context, options, resolve, reject) {
|
|
40844
|
-
this
|
|
41418
|
+
var _this13 = this;
|
|
41419
|
+
_normalizeRunOptions(options);
|
|
40845
41420
|
dq_element_default.setRunOptions(options);
|
|
40846
|
-
|
|
40847
|
-
|
|
40848
|
-
|
|
40849
|
-
|
|
40850
|
-
|
|
40851
|
-
|
|
40852
|
-
|
|
40853
|
-
|
|
40854
|
-
|
|
40855
|
-
|
|
40856
|
-
preloaderQueue.defer(function(res) {
|
|
40857
|
-
_preload(options).then(function(assets) {
|
|
40858
|
-
return res(assets);
|
|
40859
|
-
})['catch'](function(err2) {
|
|
40860
|
-
console.warn('Couldn\'t load preload assets: ', err2);
|
|
40861
|
-
res(void 0);
|
|
40862
|
-
});
|
|
41421
|
+
var internalsQueue = queue_default();
|
|
41422
|
+
internalsQueue.defer(external.loadElementInternals());
|
|
41423
|
+
internalsQueue.then(function() {
|
|
41424
|
+
axe._selectCache = [];
|
|
41425
|
+
var allRulesToRun = getRulesToRun(_this13.rules, context, options);
|
|
41426
|
+
var runNowRules = allRulesToRun.now;
|
|
41427
|
+
var runLaterRules = allRulesToRun.later;
|
|
41428
|
+
var nowRulesQueue = queue_default();
|
|
41429
|
+
runNowRules.forEach(function(rule) {
|
|
41430
|
+
nowRulesQueue.defer(getDefferedRule(rule, context, options));
|
|
40863
41431
|
});
|
|
40864
|
-
|
|
40865
|
-
|
|
40866
|
-
|
|
40867
|
-
|
|
40868
|
-
|
|
40869
|
-
|
|
40870
|
-
|
|
40871
|
-
|
|
40872
|
-
|
|
40873
|
-
|
|
40874
|
-
}
|
|
40875
|
-
}
|
|
40876
|
-
var nowRulesResults = nowRulesAndPreloaderResults[0];
|
|
40877
|
-
if (!runLaterRules.length) {
|
|
40878
|
-
axe._selectCache = void 0;
|
|
40879
|
-
resolve(nowRulesResults.filter(function(result) {
|
|
40880
|
-
return !!result;
|
|
40881
|
-
}));
|
|
40882
|
-
return;
|
|
41432
|
+
var preloaderQueue = queue_default();
|
|
41433
|
+
if (runLaterRules.length) {
|
|
41434
|
+
preloaderQueue.defer(function(res) {
|
|
41435
|
+
_preload(options).then(function(assets) {
|
|
41436
|
+
return res(assets);
|
|
41437
|
+
})['catch'](function(err2) {
|
|
41438
|
+
console.warn('Couldn\'t load preload assets: ', err2);
|
|
41439
|
+
res(void 0);
|
|
41440
|
+
});
|
|
41441
|
+
});
|
|
40883
41442
|
}
|
|
40884
|
-
var
|
|
40885
|
-
|
|
40886
|
-
|
|
40887
|
-
|
|
40888
|
-
|
|
40889
|
-
|
|
40890
|
-
|
|
40891
|
-
|
|
40892
|
-
|
|
40893
|
-
|
|
41443
|
+
var queueForNowRulesAndPreloader = queue_default();
|
|
41444
|
+
queueForNowRulesAndPreloader.defer(nowRulesQueue);
|
|
41445
|
+
queueForNowRulesAndPreloader.defer(preloaderQueue);
|
|
41446
|
+
queueForNowRulesAndPreloader.then(function(nowRulesAndPreloaderResults) {
|
|
41447
|
+
var assetsFromQueue = nowRulesAndPreloaderResults.pop();
|
|
41448
|
+
if (assetsFromQueue && assetsFromQueue.length) {
|
|
41449
|
+
var assets = assetsFromQueue[0];
|
|
41450
|
+
if (assets) {
|
|
41451
|
+
context = _extends({}, context, assets);
|
|
41452
|
+
}
|
|
41453
|
+
}
|
|
41454
|
+
var nowRulesResults = nowRulesAndPreloaderResults[0];
|
|
41455
|
+
if (!runLaterRules.length) {
|
|
41456
|
+
axe._selectCache = void 0;
|
|
41457
|
+
resolve(nowRulesResults.filter(function(result) {
|
|
41458
|
+
return !!result;
|
|
41459
|
+
}));
|
|
41460
|
+
return;
|
|
41461
|
+
}
|
|
41462
|
+
var laterRulesQueue = queue_default();
|
|
41463
|
+
runLaterRules.forEach(function(rule) {
|
|
41464
|
+
var deferredRule = getDefferedRule(rule, context, options);
|
|
41465
|
+
laterRulesQueue.defer(deferredRule);
|
|
41466
|
+
});
|
|
41467
|
+
laterRulesQueue.then(function(laterRuleResults) {
|
|
41468
|
+
axe._selectCache = void 0;
|
|
41469
|
+
resolve(nowRulesResults.concat(laterRuleResults).filter(function(result) {
|
|
41470
|
+
return !!result;
|
|
41471
|
+
}));
|
|
41472
|
+
})['catch'](reject);
|
|
40894
41473
|
})['catch'](reject);
|
|
40895
41474
|
})['catch'](reject);
|
|
40896
41475
|
}
|
|
@@ -40923,89 +41502,9 @@ function requireAxe () {
|
|
|
40923
41502
|
return rule.id === ruleId;
|
|
40924
41503
|
});
|
|
40925
41504
|
}
|
|
40926
|
-
}, {
|
|
40927
|
-
key: 'normalizeOptions',
|
|
40928
|
-
value: function normalizeOptions(options) {
|
|
40929
|
-
var audit = this;
|
|
40930
|
-
var tags = [];
|
|
40931
|
-
var ruleIds = [];
|
|
40932
|
-
audit.rules.forEach(function(rule) {
|
|
40933
|
-
ruleIds.push(rule.id);
|
|
40934
|
-
rule.tags.forEach(function(tag) {
|
|
40935
|
-
if (!tags.includes(tag)) {
|
|
40936
|
-
tags.push(tag);
|
|
40937
|
-
}
|
|
40938
|
-
});
|
|
40939
|
-
});
|
|
40940
|
-
if ([ 'object', 'string' ].includes(_typeof(options.runOnly))) {
|
|
40941
|
-
if (typeof options.runOnly === 'string') {
|
|
40942
|
-
options.runOnly = [ options.runOnly ];
|
|
40943
|
-
}
|
|
40944
|
-
if (Array.isArray(options.runOnly)) {
|
|
40945
|
-
var hasTag = options.runOnly.find(function(value) {
|
|
40946
|
-
return tags.includes(value);
|
|
40947
|
-
});
|
|
40948
|
-
var hasRule = options.runOnly.find(function(value) {
|
|
40949
|
-
return ruleIds.includes(value);
|
|
40950
|
-
});
|
|
40951
|
-
if (hasTag && hasRule) {
|
|
40952
|
-
throw new Error('runOnly cannot be both rules and tags');
|
|
40953
|
-
}
|
|
40954
|
-
if (hasRule) {
|
|
40955
|
-
options.runOnly = {
|
|
40956
|
-
type: 'rule',
|
|
40957
|
-
values: options.runOnly
|
|
40958
|
-
};
|
|
40959
|
-
} else {
|
|
40960
|
-
options.runOnly = {
|
|
40961
|
-
type: 'tag',
|
|
40962
|
-
values: options.runOnly
|
|
40963
|
-
};
|
|
40964
|
-
}
|
|
40965
|
-
}
|
|
40966
|
-
var only = options.runOnly;
|
|
40967
|
-
if (only.value && !only.values) {
|
|
40968
|
-
only.values = only.value;
|
|
40969
|
-
delete only.value;
|
|
40970
|
-
}
|
|
40971
|
-
if (!Array.isArray(only.values) || only.values.length === 0) {
|
|
40972
|
-
throw new Error('runOnly.values must be a non-empty array');
|
|
40973
|
-
}
|
|
40974
|
-
if ([ 'rule', 'rules' ].includes(only.type)) {
|
|
40975
|
-
only.type = 'rule';
|
|
40976
|
-
only.values.forEach(function(ruleId) {
|
|
40977
|
-
if (!ruleIds.includes(ruleId)) {
|
|
40978
|
-
throw new Error('unknown rule `' + ruleId + '` in options.runOnly');
|
|
40979
|
-
}
|
|
40980
|
-
});
|
|
40981
|
-
} else if ([ 'tag', 'tags', void 0 ].includes(only.type)) {
|
|
40982
|
-
only.type = 'tag';
|
|
40983
|
-
var unmatchedTags = only.values.filter(function(tag) {
|
|
40984
|
-
return !tags.includes(tag) && !/wcag2[1-3]a{1,3}/.test(tag);
|
|
40985
|
-
});
|
|
40986
|
-
if (unmatchedTags.length !== 0) {
|
|
40987
|
-
axe.log('Could not find tags `' + unmatchedTags.join('`, `') + '`');
|
|
40988
|
-
}
|
|
40989
|
-
} else {
|
|
40990
|
-
throw new Error('Unknown runOnly type \''.concat(only.type, '\''));
|
|
40991
|
-
}
|
|
40992
|
-
}
|
|
40993
|
-
if (_typeof(options.rules) === 'object') {
|
|
40994
|
-
Object.keys(options.rules).forEach(function(ruleId) {
|
|
40995
|
-
if (!ruleIds.includes(ruleId)) {
|
|
40996
|
-
throw new Error('unknown rule `' + ruleId + '` in options.rules');
|
|
40997
|
-
}
|
|
40998
|
-
});
|
|
40999
|
-
}
|
|
41000
|
-
return options;
|
|
41001
|
-
}
|
|
41002
41505
|
}, {
|
|
41003
41506
|
key: 'setBranding',
|
|
41004
41507
|
value: function setBranding(branding) {
|
|
41005
|
-
var previous = {
|
|
41006
|
-
brand: this.brand,
|
|
41007
|
-
application: this.application
|
|
41008
|
-
};
|
|
41009
41508
|
if (typeof branding === 'string') {
|
|
41010
41509
|
this.application = branding;
|
|
41011
41510
|
}
|
|
@@ -41015,21 +41514,20 @@ function requireAxe () {
|
|
|
41015
41514
|
if (branding && branding.hasOwnProperty('application') && branding.application && typeof branding.application === 'string') {
|
|
41016
41515
|
this.application = branding.application;
|
|
41017
41516
|
}
|
|
41018
|
-
this._constructHelpUrls(previous);
|
|
41019
41517
|
}
|
|
41020
41518
|
}, {
|
|
41021
41519
|
key: '_constructHelpUrls',
|
|
41022
41520
|
value: function _constructHelpUrls() {
|
|
41023
|
-
var
|
|
41521
|
+
var _this14 = this;
|
|
41024
41522
|
var previous = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
|
|
41025
41523
|
var version = (axe.version.match(/^[1-9][0-9]*\.[0-9]+/) || [ 'x.y' ])[0];
|
|
41026
41524
|
this.rules.forEach(function(rule) {
|
|
41027
|
-
if (!
|
|
41028
|
-
|
|
41525
|
+
if (!_this14.data.rules[rule.id]) {
|
|
41526
|
+
_this14.data.rules[rule.id] = {};
|
|
41029
41527
|
}
|
|
41030
|
-
var metaData =
|
|
41528
|
+
var metaData = _this14.data.rules[rule.id];
|
|
41031
41529
|
if (typeof metaData.helpUrl !== 'string' || previous && metaData.helpUrl === getHelpUrl(previous, rule.id, version)) {
|
|
41032
|
-
metaData.helpUrl = getHelpUrl(
|
|
41530
|
+
metaData.helpUrl = getHelpUrl(_this14, rule.id, version);
|
|
41033
41531
|
}
|
|
41034
41532
|
});
|
|
41035
41533
|
}
|
|
@@ -41177,8 +41675,8 @@ function requireAxe () {
|
|
|
41177
41675
|
} ]
|
|
41178
41676
|
});
|
|
41179
41677
|
}
|
|
41180
|
-
function getHelpUrl(
|
|
41181
|
-
var brand =
|
|
41678
|
+
function getHelpUrl(_ref146, ruleId, version) {
|
|
41679
|
+
var brand = _ref146.brand, application = _ref146.application, lang = _ref146.lang;
|
|
41182
41680
|
return constants_default.helpUrlBase + brand + '/' + (version || axe.version.substring(0, axe.version.lastIndexOf('.'))) + '/' + ruleId + '?application=' + encodeURIComponent(application) + (lang && lang !== 'en' ? '&lang=' + encodeURIComponent(lang) : '');
|
|
41183
41681
|
}
|
|
41184
41682
|
function setupGlobals(context) {
|
|
@@ -41269,7 +41767,7 @@ function requireAxe () {
|
|
|
41269
41767
|
resolve(results, teardown_default);
|
|
41270
41768
|
} catch (e) {
|
|
41271
41769
|
teardown_default();
|
|
41272
|
-
|
|
41770
|
+
log(e);
|
|
41273
41771
|
}
|
|
41274
41772
|
} catch (e) {
|
|
41275
41773
|
teardown_default();
|
|
@@ -41361,6 +41859,14 @@ function requireAxe () {
|
|
|
41361
41859
|
resetStandards();
|
|
41362
41860
|
}
|
|
41363
41861
|
var reset_default = reset;
|
|
41862
|
+
function resetLocale() {
|
|
41863
|
+
var audit = axe._audit;
|
|
41864
|
+
if (!audit) {
|
|
41865
|
+
throw new Error('No audit configured');
|
|
41866
|
+
}
|
|
41867
|
+
audit._resetLocale();
|
|
41868
|
+
}
|
|
41869
|
+
var reset_locale_default = resetLocale;
|
|
41364
41870
|
function runVirtualRule(ruleId, vNode) {
|
|
41365
41871
|
var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
41366
41872
|
options.reporter = options.reporter || axe._audit.reporter || 'v1';
|
|
@@ -41400,9 +41906,9 @@ function requireAxe () {
|
|
|
41400
41906
|
toolOptions: options
|
|
41401
41907
|
});
|
|
41402
41908
|
}
|
|
41403
|
-
function normalizeRunParams(
|
|
41404
|
-
var
|
|
41405
|
-
var
|
|
41909
|
+
function normalizeRunParams(_ref147) {
|
|
41910
|
+
var _ref149, _options$reporter, _axe$_audit2;
|
|
41911
|
+
var _ref148 = _slicedToArray(_ref147, 3), context = _ref148[0], options = _ref148[1], callback = _ref148[2];
|
|
41406
41912
|
var typeErr = new TypeError('axe.run arguments are invalid');
|
|
41407
41913
|
if (!_isContextSpec(context)) {
|
|
41408
41914
|
if (callback !== void 0) {
|
|
@@ -41423,7 +41929,7 @@ function requireAxe () {
|
|
|
41423
41929
|
throw typeErr;
|
|
41424
41930
|
}
|
|
41425
41931
|
options = clone2(options);
|
|
41426
|
-
options.reporter = (
|
|
41932
|
+
options.reporter = (_ref149 = (_options$reporter = options.reporter) !== null && _options$reporter !== void 0 ? _options$reporter : (_axe$_audit2 = axe._audit) === null || _axe$_audit2 === void 0 ? void 0 : _axe$_audit2.reporter) !== null && _ref149 !== void 0 ? _ref149 : 'v1';
|
|
41427
41933
|
return {
|
|
41428
41934
|
context: context,
|
|
41429
41935
|
options: options,
|
|
@@ -41541,11 +42047,17 @@ function requireAxe () {
|
|
|
41541
42047
|
axe._running = true;
|
|
41542
42048
|
options.elementRef = false;
|
|
41543
42049
|
return new Promise(function(res, rej) {
|
|
42050
|
+
if (options.performanceTimer) {
|
|
42051
|
+
performance_timer_default.auditStart();
|
|
42052
|
+
}
|
|
41544
42053
|
axe._audit.run(contextObj, options, res, rej);
|
|
41545
42054
|
}).then(function(results) {
|
|
42055
|
+
if (options.performanceTimer) {
|
|
42056
|
+
performance_timer_default.auditEnd();
|
|
42057
|
+
}
|
|
41546
42058
|
results = node_serializer_default.mapRawResults(results);
|
|
41547
|
-
var frames = contextObj.frames.map(function(
|
|
41548
|
-
var node =
|
|
42059
|
+
var frames = contextObj.frames.map(function(_ref150) {
|
|
42060
|
+
var node = _ref150.node;
|
|
41549
42061
|
return node_serializer_default.toSpec(node);
|
|
41550
42062
|
});
|
|
41551
42063
|
var environmentData;
|
|
@@ -41566,14 +42078,14 @@ function requireAxe () {
|
|
|
41566
42078
|
});
|
|
41567
42079
|
}
|
|
41568
42080
|
function finishRun(partialResults) {
|
|
41569
|
-
var
|
|
42081
|
+
var _ref152, _options$reporter2, _axe$_audit3;
|
|
41570
42082
|
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
41571
42083
|
options = clone2(options);
|
|
41572
|
-
var
|
|
42084
|
+
var _ref151 = partialResults.find(function(r) {
|
|
41573
42085
|
return r.environmentData;
|
|
41574
|
-
}) || {}, environmentData =
|
|
41575
|
-
|
|
41576
|
-
options.reporter = (
|
|
42086
|
+
}) || {}, environmentData = _ref151.environmentData;
|
|
42087
|
+
_normalizeRunOptions(options);
|
|
42088
|
+
options.reporter = (_ref152 = (_options$reporter2 = options.reporter) !== null && _options$reporter2 !== void 0 ? _options$reporter2 : (_axe$_audit3 = axe._audit) === null || _axe$_audit3 === void 0 ? void 0 : _axe$_audit3.reporter) !== null && _ref152 !== void 0 ? _ref152 : 'v1';
|
|
41577
42089
|
setFrameSpec(partialResults);
|
|
41578
42090
|
var results = merge_results_default(partialResults);
|
|
41579
42091
|
results = axe._audit.after(results, options);
|
|
@@ -41585,10 +42097,10 @@ function requireAxe () {
|
|
|
41585
42097
|
}
|
|
41586
42098
|
function setFrameSpec(partialResults) {
|
|
41587
42099
|
var frameStack = [];
|
|
41588
|
-
var
|
|
42100
|
+
var _iterator28 = _createForOfIteratorHelper(partialResults), _step28;
|
|
41589
42101
|
try {
|
|
41590
|
-
for (
|
|
41591
|
-
var partialResult =
|
|
42102
|
+
for (_iterator28.s(); !(_step28 = _iterator28.n()).done; ) {
|
|
42103
|
+
var partialResult = _step28.value;
|
|
41592
42104
|
var frameSpec = frameStack.shift();
|
|
41593
42105
|
if (!partialResult) {
|
|
41594
42106
|
continue;
|
|
@@ -41598,13 +42110,13 @@ function requireAxe () {
|
|
|
41598
42110
|
frameStack.unshift.apply(frameStack, _toConsumableArray(frameSpecs));
|
|
41599
42111
|
}
|
|
41600
42112
|
} catch (err) {
|
|
41601
|
-
|
|
42113
|
+
_iterator28.e(err);
|
|
41602
42114
|
} finally {
|
|
41603
|
-
|
|
42115
|
+
_iterator28.f();
|
|
41604
42116
|
}
|
|
41605
42117
|
}
|
|
41606
|
-
function getMergedFrameSpecs(
|
|
41607
|
-
var childFrameSpecs =
|
|
42118
|
+
function getMergedFrameSpecs(_ref153) {
|
|
42119
|
+
var childFrameSpecs = _ref153.frames, parentFrameSpec = _ref153.frameSpec;
|
|
41608
42120
|
if (!parentFrameSpec) {
|
|
41609
42121
|
return childFrameSpecs;
|
|
41610
42122
|
}
|
|
@@ -41734,7 +42246,8 @@ function requireAxe () {
|
|
|
41734
42246
|
metadataFunctionMap: metadata_function_map_default
|
|
41735
42247
|
},
|
|
41736
42248
|
public: {
|
|
41737
|
-
reporters: reporters
|
|
42249
|
+
reporters: reporters,
|
|
42250
|
+
external: external
|
|
41738
42251
|
},
|
|
41739
42252
|
helpers: {
|
|
41740
42253
|
failureSummary: failure_summary_default,
|
|
@@ -41766,7 +42279,8 @@ function requireAxe () {
|
|
|
41766
42279
|
var exposed_for_testing_default = _thisWillBeDeletedDoNotUse;
|
|
41767
42280
|
axe._thisWillBeDeletedDoNotUse = exposed_for_testing_default;
|
|
41768
42281
|
axe.constants = constants_default;
|
|
41769
|
-
axe.log =
|
|
42282
|
+
axe.log = log;
|
|
42283
|
+
axe._setLogger = setLogger;
|
|
41770
42284
|
axe.AbstractVirtualNode = abstract_virtual_node_default;
|
|
41771
42285
|
axe.SerialVirtualNode = serial_virtual_node_default;
|
|
41772
42286
|
axe.VirtualNode = virtual_node_default;
|
|
@@ -41774,6 +42288,7 @@ function requireAxe () {
|
|
|
41774
42288
|
axe.imports = imports_exports;
|
|
41775
42289
|
axe.cleanup = cleanup_default;
|
|
41776
42290
|
axe.configure = configure_default;
|
|
42291
|
+
axe.externalAPIs = externalAPIs;
|
|
41777
42292
|
axe.frameMessenger = frameMessenger2;
|
|
41778
42293
|
axe.getRules = get_rules_default;
|
|
41779
42294
|
axe._load = load;
|
|
@@ -41783,6 +42298,7 @@ function requireAxe () {
|
|
|
41783
42298
|
axe.getReporter = getReporter;
|
|
41784
42299
|
axe.addReporter = addReporter;
|
|
41785
42300
|
axe.reset = reset_default;
|
|
42301
|
+
axe.resetLocale = reset_locale_default;
|
|
41786
42302
|
axe._runRules = runRules;
|
|
41787
42303
|
axe.runVirtualRule = runVirtualRule;
|
|
41788
42304
|
axe.run = run4;
|
|
@@ -41883,6 +42399,10 @@ function requireAxe () {
|
|
|
41883
42399
|
description: 'Ensure all elements with a role attribute use a valid value',
|
|
41884
42400
|
help: 'ARIA roles used must conform to valid values'
|
|
41885
42401
|
},
|
|
42402
|
+
'aria-tab-name': {
|
|
42403
|
+
description: 'Ensure every ARIA tab node has an accessible name',
|
|
42404
|
+
help: 'ARIA tab nodes must have an accessible name'
|
|
42405
|
+
},
|
|
41886
42406
|
'aria-text': {
|
|
41887
42407
|
description: 'Ensure role="text" is used on elements with no focusable descendants',
|
|
41888
42408
|
help: '"role=text" should have no focusable descendants'
|
|
@@ -42278,6 +42798,7 @@ function requireAxe () {
|
|
|
42278
42798
|
pass: 'ARIA attribute is allowed',
|
|
42279
42799
|
fail: {
|
|
42280
42800
|
checkbox: 'Remove aria-checked, or set it to "${data.checkState}" to match the real checkbox state',
|
|
42801
|
+
radio: 'Remove aria-checked, or set it to "${data.checkState}" to match the real radio state',
|
|
42281
42802
|
rowSingular: 'This attribute is supported with treegrid rows, but not ${data.ownerRole}: ${data.invalidAttrs}',
|
|
42282
42803
|
rowPlural: 'These attributes are supported with treegrid rows, but not ${data.ownerRole}: ${data.invalidAttrs}'
|
|
42283
42804
|
}
|
|
@@ -43584,6 +44105,20 @@ function requireAxe () {
|
|
|
43584
44105
|
all: [],
|
|
43585
44106
|
any: [],
|
|
43586
44107
|
none: [ 'invalidrole', 'abstractrole', 'unsupportedrole' ]
|
|
44108
|
+
}, {
|
|
44109
|
+
id: 'aria-tab-name',
|
|
44110
|
+
impact: 'serious',
|
|
44111
|
+
selector: '[role="tab"]',
|
|
44112
|
+
matches: 'no-naming-method-matches',
|
|
44113
|
+
tags: [ 'cat.aria', 'wcag2a', 'wcag412', 'TTv5', 'TT5.c', 'EN-301-549', 'EN-9.4.1.2', 'ACT', 'RGAAv4', 'RGAA-7.1.1' ],
|
|
44114
|
+
all: [],
|
|
44115
|
+
any: [ 'has-visible-text', 'aria-label', 'aria-labelledby', {
|
|
44116
|
+
options: {
|
|
44117
|
+
attribute: 'title'
|
|
44118
|
+
},
|
|
44119
|
+
id: 'non-empty-title'
|
|
44120
|
+
} ],
|
|
44121
|
+
none: []
|
|
43587
44122
|
}, {
|
|
43588
44123
|
id: 'aria-text',
|
|
43589
44124
|
impact: 'serious',
|
|
@@ -44204,7 +44739,8 @@ function requireAxe () {
|
|
|
44204
44739
|
id: 'landmark-complementary-is-top-level',
|
|
44205
44740
|
impact: 'moderate',
|
|
44206
44741
|
selector: 'aside:not([role]), [role=complementary]',
|
|
44207
|
-
tags: [ 'cat.semantics', 'best-practice' ],
|
|
44742
|
+
tags: [ 'cat.semantics', 'best-practice', 'deprecated' ],
|
|
44743
|
+
enabled: false,
|
|
44208
44744
|
all: [],
|
|
44209
44745
|
any: [ 'landmark-is-top-level' ],
|
|
44210
44746
|
none: []
|