axe-core 4.14.0 → 4.14.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/axe.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! axe v4.14.0
1
+ /*! axe v4.14.1
2
2
  * Copyright (c) 2015 - 2026 Deque Systems, Inc.
3
3
  *
4
4
  * Your use of this Source Code Form is subject to the terms of the Mozilla Public
@@ -22,7 +22,7 @@
22
22
  }, _typeof(o);
23
23
  }
24
24
  var axe = axe || {};
25
- axe.version = '4.14.0';
25
+ axe.version = '4.14.1';
26
26
  if (typeof define === 'function' && define.amd) {
27
27
  define('axe-core', [], function() {
28
28
  return axe;
@@ -2101,10 +2101,10 @@
2101
2101
  var SHARED = '__core-js_shared__';
2102
2102
  var store = module.exports = globalThis2[SHARED] || defineGlobalProperty(SHARED, {});
2103
2103
  (store.versions || (store.versions = [])).push({
2104
- version: '3.50.0',
2104
+ version: '3.51.0',
2105
2105
  mode: IS_PURE ? 'pure' : 'global',
2106
2106
  copyright: '\xa9 2013\u20132025 Denis Pushkarev (zloirock.ru), 2025\u20132026 CoreJS Company (core-js.io). All rights reserved.',
2107
- license: 'https://github.com/zloirock/core-js/blob/v3.50.0/LICENSE',
2107
+ license: 'https://github.com/zloirock/core-js/blob/v3.51.0/LICENSE',
2108
2108
  source: 'https://github.com/zloirock/core-js'
2109
2109
  });
2110
2110
  });
@@ -15597,6 +15597,51 @@
15597
15597
  return _matchesExpression(vNode, expression);
15598
15598
  });
15599
15599
  }
15600
+ function _convertSelector(selector) {
15601
+ var expressions = css_parser_default.parse(selector);
15602
+ expressions = expressions.selectors ? expressions.selectors : [ expressions ];
15603
+ return convertExpressions(expressions);
15604
+ }
15605
+ function _matchesExpression(vNode, expressions) {
15606
+ expressions = Array.isArray(expressions) ? expressions : [ expressions ];
15607
+ var index = expressions.length - 1;
15608
+ if (!matchExpression(vNode, expressions[index])) {
15609
+ return false;
15610
+ }
15611
+ var lastDescendantMatch = {
15612
+ index: index,
15613
+ vNode: vNode
15614
+ };
15615
+ index--;
15616
+ vNode = vNode.parent;
15617
+ while (index >= 0 && index < expressions.length - 1 && vNode) {
15618
+ var expression = expressions[index];
15619
+ var combinator = expressions[index + 1].combinator;
15620
+ var matched = matchExpression(vNode, expression);
15621
+ if (matched) {
15622
+ if (combinator === ' ') {
15623
+ lastDescendantMatch.index = index;
15624
+ lastDescendantMatch.vNode = vNode;
15625
+ }
15626
+ index--;
15627
+ vNode = vNode.parent;
15628
+ continue;
15629
+ }
15630
+ if ([ ' ', '>' ].includes(combinator) === false) {
15631
+ throw new Error('axe.commons.dom.query does not support the combinator: ' + combinator);
15632
+ }
15633
+ if (combinator === ' ') {
15634
+ vNode = vNode.parent;
15635
+ } else {
15636
+ index = lastDescendantMatch.index;
15637
+ vNode = lastDescendantMatch.vNode.parent;
15638
+ }
15639
+ }
15640
+ return index < 0;
15641
+ }
15642
+ function matchExpression(vNode, expression) {
15643
+ return matchesTag(vNode, expression) && matchesClasses(vNode, expression) && matchesAttributes(vNode, expression) && matchesId(vNode, expression) && matchesPseudos(vNode, expression);
15644
+ }
15600
15645
  function matchesTag(vNode, exp2) {
15601
15646
  return vNode.props.nodeType === 1 && (exp2.tag === '*' || vNode.props.nodeName === exp2.tag);
15602
15647
  }
@@ -15631,9 +15676,6 @@
15631
15676
  }
15632
15677
  return false;
15633
15678
  }
15634
- function matchExpression(vNode, expression) {
15635
- return matchesTag(vNode, expression) && matchesClasses(vNode, expression) && matchesAttributes(vNode, expression) && matchesId(vNode, expression) && matchesPseudos(vNode, expression);
15636
- }
15637
15679
  var escapeRegExp = function() {
15638
15680
  var from = /(?=[\-\[\]{}()*+?.\\\^$|,#\s])/g;
15639
15681
  var to2 = '\\';
@@ -15756,33 +15798,6 @@
15756
15798
  return newExp;
15757
15799
  });
15758
15800
  }
15759
- function _convertSelector(selector) {
15760
- var expressions = css_parser_default.parse(selector);
15761
- expressions = expressions.selectors ? expressions.selectors : [ expressions ];
15762
- return convertExpressions(expressions);
15763
- }
15764
- function optimizedMatchesExpression(vNode, expressions, index, matchAnyParent) {
15765
- if (!vNode) {
15766
- return false;
15767
- }
15768
- var isArray = Array.isArray(expressions);
15769
- var expression = isArray ? expressions[index] : expressions;
15770
- var machedExpression = matchExpression(vNode, expression);
15771
- while (!machedExpression && matchAnyParent && vNode.parent) {
15772
- vNode = vNode.parent;
15773
- machedExpression = matchExpression(vNode, expression);
15774
- }
15775
- if (index > 0) {
15776
- if ([ ' ', '>' ].includes(expression.combinator) === false) {
15777
- throw new Error('axe.utils.matchesExpression does not support the combinator: ' + expression.combinator);
15778
- }
15779
- machedExpression = machedExpression && optimizedMatchesExpression(vNode.parent, expressions, index - 1, expression.combinator === ' ');
15780
- }
15781
- return machedExpression;
15782
- }
15783
- function _matchesExpression(vNode, expressions, matchAnyParent) {
15784
- return optimizedMatchesExpression(vNode, expressions, expressions.length - 1, matchAnyParent);
15785
- }
15786
15801
  function closest(vNode, selector) {
15787
15802
  while (vNode) {
15788
15803
  if (_matches(vNode, selector)) {
@@ -16085,9 +16100,14 @@
16085
16100
  function assetNotGlobalWindow(win) {
16086
16101
  assert_default(window !== win, 'Messages can not be sent to the same window.');
16087
16102
  }
16088
- var channels = {};
16103
+ var getChannels = function getChannels() {
16104
+ return cache_default.get('frameMessengerChannels', function() {
16105
+ return {};
16106
+ });
16107
+ };
16089
16108
  function storeReplyHandler(channelId, replyHandler) {
16090
16109
  var sendToParent = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
16110
+ var channels = getChannels();
16091
16111
  assert_default(!Object.prototype.hasOwnProperty.call(channels, channelId), 'A replyHandler already exists for this message channel.');
16092
16112
  channels[channelId] = {
16093
16113
  replyHandler: replyHandler,
@@ -16095,10 +16115,11 @@
16095
16115
  };
16096
16116
  }
16097
16117
  function getReplyHandler(channelId) {
16118
+ var channels = getChannels();
16098
16119
  return Object.prototype.hasOwnProperty.call(channels, channelId) ? channels[channelId] : void 0;
16099
16120
  }
16100
16121
  function deleteReplyHandler(channelId) {
16101
- delete channels[channelId];
16122
+ delete getChannels()[channelId];
16102
16123
  }
16103
16124
  var messageIds = [];
16104
16125
  function createMessageId() {
@@ -19575,6 +19596,9 @@
19575
19596
  var ROOT_LEVEL = 0;
19576
19597
  var FLOAT_LEVEL = .1;
19577
19598
  var DEFAULT_LEVEL = .2;
19599
+ var CONTAINING_BLOCK_PROPERTIES = [ 'transform', 'translate', 'rotate', 'scale', 'perspective', 'filter', 'backdrop-filter' ];
19600
+ var CONTAINING_BLOCK_CONTAIN_VALUES = [ 'layout', 'paint', 'strict', 'content' ];
19601
+ var CONTAINING_BLOCK_WILL_CHANGE_PROPERTIES = [].concat(CONTAINING_BLOCK_PROPERTIES, [ 'transform-style', 'contain' ]);
19578
19602
  var nodeIndex = 0;
19579
19603
  function _createGrid() {
19580
19604
  var root = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : document.body;
@@ -19601,6 +19625,7 @@
19601
19625
  var treeWalker = document.createTreeWalker(root, window.NodeFilter.SHOW_ELEMENT, null, false);
19602
19626
  var node = parentVNode ? treeWalker.nextNode() : treeWalker.currentNode;
19603
19627
  while (node) {
19628
+ var _getGrid;
19604
19629
  var _vNode = get_node_from_tree_default(node);
19605
19630
  if (_vNode && _vNode.parent) {
19606
19631
  parentVNode = _vNode.parent;
@@ -19615,8 +19640,7 @@
19615
19640
  _vNode = new axe.VirtualNode(node, parentVNode);
19616
19641
  }
19617
19642
  _vNode._stackingOrder = createStackingOrder(_vNode, parentVNode, nodeIndex++);
19618
- var scrollRegionParent = findScrollRegionParent(parentVNode);
19619
- var grid = scrollRegionParent ? scrollRegionParent._subGrid : rootGrid;
19643
+ var grid = (_getGrid = getGrid(_vNode)) !== null && _getGrid !== void 0 ? _getGrid : rootGrid;
19620
19644
  if (_getScroll(_vNode.actualNode)) {
19621
19645
  var _subGrid = new Grid(_vNode);
19622
19646
  _vNode._subGrid = _subGrid;
@@ -19751,17 +19775,79 @@
19751
19775
  }
19752
19776
  return vNode.getComputedStylePropertyValue('z-index');
19753
19777
  }
19754
- var findScrollRegionParent = memoize_default(function findScrollRegionParentMemoized(parentVNode) {
19755
- if (!parentVNode) {
19778
+ var getGrid = memoize_default(function getGridMemoized(vNode) {
19779
+ var _ref69, _anchor$_subGrid;
19780
+ var position = vNode.getComputedStylePropertyValue('position');
19781
+ if (position === 'fixed') {
19782
+ return cache_default.get('fixedGrid', function() {
19783
+ return new Grid(get_node_from_tree_default(document.documentElement));
19784
+ });
19785
+ }
19786
+ var anchor = getParent(vNode);
19787
+ if (!anchor) {
19756
19788
  return null;
19757
19789
  }
19758
- if (_getScroll(parentVNode.actualNode)) {
19759
- return parentVNode;
19790
+ if (position === 'absolute') {
19791
+ anchor = getContainingBlock(anchor);
19792
+ }
19793
+ return (_ref69 = (_anchor$_subGrid = anchor._subGrid) !== null && _anchor$_subGrid !== void 0 ? _anchor$_subGrid : anchor._grid) !== null && _ref69 !== void 0 ? _ref69 : getGrid(anchor);
19794
+ }, {
19795
+ primitive: true
19796
+ });
19797
+ var getContainingBlock = memoize_default(function getContainingBlockMemoized(vNode) {
19798
+ var parent = getParent(vNode);
19799
+ if (!parent || isAbsolutePositioningContainingBox(vNode)) {
19800
+ return vNode;
19760
19801
  }
19761
- return findScrollRegionParent(get_node_from_tree_default(parentVNode.actualNode.parentElement || parentVNode.actualNode.parentNode));
19802
+ return getContainingBlock(parent);
19762
19803
  }, {
19763
19804
  primitive: true
19764
19805
  });
19806
+ function getParent(vNode) {
19807
+ if (vNode.parent) {
19808
+ return vNode.parent;
19809
+ }
19810
+ return get_node_from_tree_default(vNode.actualNode.parentElement || vNode.actualNode.parentNode);
19811
+ }
19812
+ function isAbsolutePositioningContainingBox(vNode) {
19813
+ if (vNode.getComputedStylePropertyValue('position') !== 'static') {
19814
+ return true;
19815
+ }
19816
+ if (getWillChange(vNode).includes('position')) {
19817
+ return true;
19818
+ }
19819
+ return isFixedPositioningContainingBox(vNode);
19820
+ }
19821
+ function isFixedPositioningContainingBox(vNode) {
19822
+ var hasContainingBlockProperty = CONTAINING_BLOCK_PROPERTIES.some(function(property) {
19823
+ var value = vNode.getComputedStylePropertyValue(property);
19824
+ return value && value !== 'none';
19825
+ });
19826
+ if (hasContainingBlockProperty) {
19827
+ return true;
19828
+ }
19829
+ if (vNode.getComputedStylePropertyValue('transform-style') === 'preserve-3d') {
19830
+ return true;
19831
+ }
19832
+ var contain = vNode.getComputedStylePropertyValue('contain').split(' ');
19833
+ if (contain.some(function(value) {
19834
+ return CONTAINING_BLOCK_CONTAIN_VALUES.includes(value);
19835
+ })) {
19836
+ return true;
19837
+ }
19838
+ var contentVisibility = vNode.getComputedStylePropertyValue('content-visibility');
19839
+ if (contentVisibility && contentVisibility !== 'visible') {
19840
+ return true;
19841
+ }
19842
+ return getWillChange(vNode).some(function(property) {
19843
+ return CONTAINING_BLOCK_WILL_CHANGE_PROPERTIES.includes(property);
19844
+ });
19845
+ }
19846
+ function getWillChange(vNode) {
19847
+ return vNode.getComputedStylePropertyValue('will-change').split(',').map(function(property) {
19848
+ return property.trim();
19849
+ });
19850
+ }
19765
19851
  function addNodeToGrid(grid, vNode) {
19766
19852
  var overflowHiddenNodes = get_overflow_hidden_ancestors_default(vNode);
19767
19853
  vNode.clientRects.forEach(function(clientRect) {
@@ -19795,9 +19881,9 @@
19795
19881
  }
19796
19882
  }, {
19797
19883
  key: 'getCellFromPoint',
19798
- value: function getCellFromPoint(_ref69) {
19884
+ value: function getCellFromPoint(_ref70) {
19799
19885
  var _this$cells, _row;
19800
- var x = _ref69.x, y = _ref69.y;
19886
+ var x = _ref70.x, y = _ref70.y;
19801
19887
  assert_default(this.boundaries, 'Grid does not have cells added');
19802
19888
  var rowIndex = this.toGridIndex(y);
19803
19889
  var colIndex = this.toGridIndex(x);
@@ -19827,8 +19913,8 @@
19827
19913
  }
19828
19914
  }, {
19829
19915
  key: 'getGridPositionOfRect',
19830
- value: function getGridPositionOfRect(_ref70) {
19831
- var top = _ref70.top, right = _ref70.right, bottom = _ref70.bottom, left = _ref70.left;
19916
+ value: function getGridPositionOfRect(_ref71) {
19917
+ var top = _ref71.top, right = _ref71.right, bottom = _ref71.bottom, left = _ref71.left;
19832
19918
  var margin = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
19833
19919
  top = this.toGridIndex(top - margin);
19834
19920
  right = this.toGridIndex(right + margin - 1);
@@ -19863,13 +19949,12 @@
19863
19949
  function _findNearbyElms(vNode) {
19864
19950
  var _grid$cells;
19865
19951
  var margin = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
19866
- var _ref71 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}, _ref71$withinMargin = _ref71.withinMargin, withinMargin = _ref71$withinMargin === void 0 ? false : _ref71$withinMargin;
19952
+ var _ref72 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}, _ref72$withinMargin = _ref72.withinMargin, withinMargin = _ref72$withinMargin === void 0 ? false : _ref72$withinMargin;
19867
19953
  var grid = _getNodeGrid(vNode);
19868
19954
  if (!(grid !== null && grid !== void 0 && (_grid$cells = grid.cells) !== null && _grid$cells !== void 0 && _grid$cells.length)) {
19869
19955
  return [];
19870
19956
  }
19871
19957
  var rect = vNode.boundingClientRect;
19872
- var selfIsFixed = _isFixedPosition(vNode);
19873
19958
  var gridPosition = grid.getGridPositionOfRect(rect, margin);
19874
19959
  var marginRect = withinMargin ? new window.DOMRect(rect.left - margin, rect.top - margin, rect.width + margin * 2, rect.height + margin * 2) : null;
19875
19960
  var neighbors = [];
@@ -19878,7 +19963,7 @@
19878
19963
  try {
19879
19964
  for (_iterator13.s(); !(_step13 = _iterator13.n()).done; ) {
19880
19965
  var vNeighbor = _step13.value;
19881
- if (vNeighbor && vNeighbor !== vNode && (!marginRect || _getIntersectionRect(marginRect, vNeighbor.boundingClientRect)) && !neighbors.includes(vNeighbor) && selfIsFixed === _isFixedPosition(vNeighbor)) {
19966
+ if (vNeighbor && vNeighbor !== vNode && (!marginRect || _getIntersectionRect(marginRect, vNeighbor.boundingClientRect)) && !neighbors.includes(vNeighbor)) {
19882
19967
  neighbors.push(vNeighbor);
19883
19968
  }
19884
19969
  }
@@ -19916,7 +20001,7 @@
19916
20001
  }
19917
20002
  return (_dialogs$find = dialogs.find(function(dialog) {
19918
20003
  var _getNodeFromGrid;
19919
- var _ref72 = (_getNodeFromGrid = getNodeFromGrid(dialog)) !== null && _getNodeFromGrid !== void 0 ? _getNodeFromGrid : {}, vNode = _ref72.vNode, rect = _ref72.rect;
20004
+ var _ref73 = (_getNodeFromGrid = getNodeFromGrid(dialog)) !== null && _getNodeFromGrid !== void 0 ? _getNodeFromGrid : {}, vNode = _ref73.vNode, rect = _ref73.rect;
19920
20005
  if (!vNode) {
19921
20006
  return false;
19922
20007
  }
@@ -19957,7 +20042,7 @@
19957
20042
  }
19958
20043
  }
19959
20044
  function _isInert(vNode) {
19960
- var _ref73 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, skipAncestors = _ref73.skipAncestors, isAncestor = _ref73.isAncestor;
20045
+ var _ref74 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, skipAncestors = _ref74.skipAncestors, isAncestor = _ref74.isAncestor;
19961
20046
  if (skipAncestors) {
19962
20047
  return isInertSelf(vNode, isAncestor);
19963
20048
  }
@@ -20316,7 +20401,7 @@
20316
20401
  }
20317
20402
  function getIdrefsValue(vNode, attr) {
20318
20403
  var _standards_default$ar;
20319
- var _ref74 = (_standards_default$ar = standards_default.ariaAttrs[attr]) !== null && _standards_default$ar !== void 0 ? _standards_default$ar : {}, prop = _ref74.prop;
20404
+ var _ref75 = (_standards_default$ar = standards_default.ariaAttrs[attr]) !== null && _standards_default$ar !== void 0 ? _standards_default$ar : {}, prop = _ref75.prop;
20320
20405
  if (prop && vNode.actualNode) {
20321
20406
  var propValue = vNode.actualNode[prop];
20322
20407
  if (propValue !== null && propValue !== void 0) {
@@ -20491,7 +20576,7 @@
20491
20576
  }
20492
20577
  var is_unsupported_role_default = isUnsupportedRole;
20493
20578
  function isValidRole(role) {
20494
- var _ref75 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, allowAbstract = _ref75.allowAbstract, _ref75$flagUnsupporte = _ref75.flagUnsupported, flagUnsupported = _ref75$flagUnsupporte === void 0 ? false : _ref75$flagUnsupporte;
20579
+ var _ref76 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, allowAbstract = _ref76.allowAbstract, _ref76$flagUnsupporte = _ref76.flagUnsupported, flagUnsupported = _ref76$flagUnsupporte === void 0 ? false : _ref76$flagUnsupporte;
20495
20580
  var roleDefinition = standards_default.ariaRoles[role];
20496
20581
  var isRoleUnsupported = is_unsupported_role_default(role);
20497
20582
  if (!roleDefinition || flagUnsupported && isRoleUnsupported) {
@@ -20501,7 +20586,7 @@
20501
20586
  }
20502
20587
  var is_valid_role_default = isValidRole;
20503
20588
  function getExplicitRole(vNode) {
20504
- var _ref76 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, fallback = _ref76.fallback, abstracts = _ref76.abstracts, dpub = _ref76.dpub;
20589
+ var _ref77 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, fallback = _ref77.fallback, abstracts = _ref77.abstracts, dpub = _ref77.dpub;
20505
20590
  vNode = vNode instanceof abstract_virtual_node_default ? vNode : get_node_from_tree_default(vNode);
20506
20591
  if (vNode.props.nodeType !== 1) {
20507
20592
  return null;
@@ -20622,7 +20707,7 @@
20622
20707
  return 'col';
20623
20708
  } else if (role === 'rowheader') {
20624
20709
  return 'row';
20625
- } else if (scope === 'col' || scope === 'row') {
20710
+ } else if ([ 'col', 'row', 'colgroup', 'rowgroup' ].includes(scope)) {
20626
20711
  return scope;
20627
20712
  } else if (vNode.props.nodeName !== 'th') {
20628
20713
  return false;
@@ -20648,11 +20733,11 @@
20648
20733
  return 'auto';
20649
20734
  }
20650
20735
  function isColumnHeader(element) {
20651
- return [ 'col', 'auto' ].indexOf(_getScope(element)) !== -1;
20736
+ return [ 'col', 'colgroup', 'auto' ].indexOf(_getScope(element)) !== -1;
20652
20737
  }
20653
20738
  var is_column_header_default = isColumnHeader;
20654
20739
  function isRowHeader(cell) {
20655
- return [ 'row', 'auto' ].includes(_getScope(cell));
20740
+ return [ 'row', 'rowgroup', 'auto' ].includes(_getScope(cell));
20656
20741
  }
20657
20742
  var is_row_header_default = isRowHeader;
20658
20743
  function sanitize(str) {
@@ -20675,7 +20760,7 @@
20675
20760
  });
20676
20761
  };
20677
20762
  function hasAccessibleName(vNode) {
20678
- var _ref77 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, _ref77$checkTitle = _ref77.checkTitle, checkTitle = _ref77$checkTitle === void 0 ? false : _ref77$checkTitle;
20763
+ var _ref78 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, _ref78$checkTitle = _ref78.checkTitle, checkTitle = _ref78$checkTitle === void 0 ? false : _ref78$checkTitle;
20679
20764
  return !!(sanitize_default(arialabelledby_text_default(vNode)) || sanitize_default(_arialabelText(vNode)) || checkTitle && (vNode === null || vNode === void 0 ? void 0 : vNode.props.nodeType) === 1 && sanitize_default(vNode.attr('title')));
20680
20765
  }
20681
20766
  var implicitHtmlRoles = {
@@ -20830,16 +20915,13 @@
20830
20915
  }
20831
20916
  return matcher === someString;
20832
20917
  }
20833
- function fromPrimative(someString, matcher) {
20834
- return fromPrimitive(someString, matcher);
20835
- }
20836
20918
  function fromFunction(getValue, matcher) {
20837
20919
  var matcherType = _typeof(matcher);
20838
20920
  if (matcherType !== 'object' || Array.isArray(matcher) || matcher instanceof RegExp) {
20839
20921
  throw new Error('Expect matcher to be an object');
20840
20922
  }
20841
20923
  return Object.keys(matcher).every(function(propName) {
20842
- return fromPrimative(getValue(propName), matcher[propName]);
20924
+ return fromPrimitive(getValue(propName), matcher[propName]);
20843
20925
  });
20844
20926
  }
20845
20927
  var from_function_default = fromFunction;
@@ -20854,11 +20936,11 @@
20854
20936
  return !!matcher(arg);
20855
20937
  }
20856
20938
  function explicitRole(vNode, matcher) {
20857
- return fromPrimative(get_explicit_role_default(vNode), matcher);
20939
+ return fromPrimitive(get_explicit_role_default(vNode), matcher);
20858
20940
  }
20859
20941
  var explicit_role_default = explicitRole;
20860
20942
  function hasAccessibleName2(vNode, matcher) {
20861
- return fromPrimative(!!_accessibleTextVirtual(vNode), matcher);
20943
+ return fromPrimitive(!!_accessibleTextVirtual(vNode), matcher);
20862
20944
  }
20863
20945
  var has_accessible_name_default = hasAccessibleName2;
20864
20946
  function hasChild(vNode, selector) {
@@ -20867,7 +20949,7 @@
20867
20949
  });
20868
20950
  }
20869
20951
  function implicitRole(vNode, matcher) {
20870
- return fromPrimative(implicit_role_default(vNode), matcher);
20952
+ return fromPrimitive(implicit_role_default(vNode), matcher);
20871
20953
  }
20872
20954
  var implicit_role_default2 = implicitRole;
20873
20955
  var sectioningRoles = [ 'article', 'complementary', 'main', 'navigation', 'region' ];
@@ -20890,30 +20972,30 @@
20890
20972
  role = vNode.elementInternals.role;
20891
20973
  }
20892
20974
  if (!role && sectioningElms.includes(nodeName2) || sectioningRoles.includes(role)) {
20893
- return fromPrimative(true, matcher);
20975
+ return fromPrimitive(true, matcher);
20894
20976
  }
20895
20977
  if (typeof vNode.parent === 'undefined') {
20896
20978
  throw new TypeError('Cannot resolve parent for non-DOM nodes');
20897
20979
  }
20898
20980
  vNode = vNode.parent;
20899
20981
  }
20900
- return fromPrimative(false, matcher);
20982
+ return fromPrimitive(false, matcher);
20901
20983
  }
20902
20984
  function isSummaryForDetails(vNode, matcher) {
20903
20985
  if (typeof vNode.parent === 'undefined') {
20904
20986
  throw new TypeError('Cannot resolve parent for non-DOM nodes');
20905
20987
  }
20906
20988
  if (!vNode.parent || vNode.parent.props.nodeName !== 'details') {
20907
- return fromPrimative(false, matcher);
20989
+ return fromPrimitive(false, matcher);
20908
20990
  }
20909
20991
  var firstMatch = vNode.parent.children.find(function(node) {
20910
20992
  return node.props.nodeName === 'summary';
20911
20993
  });
20912
- return fromPrimative(firstMatch === vNode, matcher);
20994
+ return fromPrimitive(firstMatch === vNode, matcher);
20913
20995
  }
20914
20996
  function nodeName(vNode, matcher) {
20915
20997
  vNode = _nodeLookup(vNode).vNode;
20916
- return fromPrimative(vNode.props.nodeName, matcher);
20998
+ return fromPrimitive(vNode.props.nodeName, matcher);
20917
20999
  }
20918
21000
  var node_name_default = nodeName;
20919
21001
  function properties(vNode, matcher) {
@@ -20924,7 +21006,7 @@
20924
21006
  }
20925
21007
  var properties_default = properties;
20926
21008
  function semanticRole(vNode, matcher) {
20927
- return fromPrimative(get_role_default(vNode), matcher);
21009
+ return fromPrimitive(get_role_default(vNode), matcher);
20928
21010
  }
20929
21011
  var semantic_role_default = semanticRole;
20930
21012
  var matchers = {
@@ -20960,6 +21042,9 @@
20960
21042
  });
20961
21043
  }
20962
21044
  var from_definition_default = fromDefinition;
21045
+ function fromPrimative(someString, matcher) {
21046
+ return fromPrimitive(someString, matcher);
21047
+ }
20963
21048
  function matches2(vNode, definition) {
20964
21049
  return from_definition_default(vNode, definition);
20965
21050
  }
@@ -20981,7 +21066,7 @@
20981
21066
  matches_default.semanticRole = semantic_role_default;
20982
21067
  var matches_default2 = matches_default;
20983
21068
  function getElementSpec(vNode) {
20984
- var _ref78 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, _ref78$noMatchAccessi = _ref78.noMatchAccessibleName, noMatchAccessibleName = _ref78$noMatchAccessi === void 0 ? false : _ref78$noMatchAccessi;
21069
+ var _ref79 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, _ref79$noMatchAccessi = _ref79.noMatchAccessibleName, noMatchAccessibleName = _ref79$noMatchAccessi === void 0 ? false : _ref79$noMatchAccessi;
20985
21070
  var standard = standards_default.htmlElms[vNode.props.nodeName];
20986
21071
  if (!standard) {
20987
21072
  return {};
@@ -21019,7 +21104,7 @@
21019
21104
  var get_element_spec_default = getElementSpec;
21020
21105
  function implicitRole2(node) {
21021
21106
  var _vNode$elementInterna2;
21022
- var _ref79 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, chromium = _ref79.chromium;
21107
+ var _ref80 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, chromium = _ref80.chromium;
21023
21108
  var _nodeLookup14 = _nodeLookup(node), vNode = _nodeLookup14.vNode;
21024
21109
  if (!vNode) {
21025
21110
  throw new ReferenceError('Cannot get implicit role of a node outside the current scope.');
@@ -21074,8 +21159,8 @@
21074
21159
  }
21075
21160
  return getInheritedRole(vNode.parent, explicitRoleOptions);
21076
21161
  }
21077
- function resolveImplicitRole(vNode, _ref80) {
21078
- var chromium = _ref80.chromium, explicitRoleOptions = _objectWithoutProperties(_ref80, _excluded1);
21162
+ function resolveImplicitRole(vNode, _ref81) {
21163
+ var chromium = _ref81.chromium, explicitRoleOptions = _objectWithoutProperties(_ref81, _excluded1);
21079
21164
  var implicitRole3 = implicit_role_default(vNode, {
21080
21165
  chromium: chromium
21081
21166
  });
@@ -21095,8 +21180,8 @@
21095
21180
  return hasGlobalAria || _isFocusable(vNode);
21096
21181
  }
21097
21182
  function resolveRole(node) {
21098
- var _ref81 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
21099
- var noImplicit = _ref81.noImplicit, roleOptions = _objectWithoutProperties(_ref81, _excluded10);
21183
+ var _ref82 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
21184
+ var noImplicit = _ref82.noImplicit, roleOptions = _objectWithoutProperties(_ref82, _excluded10);
21100
21185
  var _nodeLookup15 = _nodeLookup(node), vNode = _nodeLookup15.vNode;
21101
21186
  if (vNode.props.nodeType !== 1) {
21102
21187
  return null;
@@ -21117,8 +21202,8 @@
21117
21202
  return explicitRole2;
21118
21203
  }
21119
21204
  function getRole(node) {
21120
- var _ref82 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
21121
- var noPresentational = _ref82.noPresentational, options = _objectWithoutProperties(_ref82, _excluded11);
21205
+ var _ref83 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
21206
+ var noPresentational = _ref83.noPresentational, options = _objectWithoutProperties(_ref83, _excluded11);
21122
21207
  var role = resolveRole(node, options);
21123
21208
  if (noPresentational && [ 'presentation', 'none' ].includes(role)) {
21124
21209
  return null;
@@ -21139,7 +21224,7 @@
21139
21224
  }
21140
21225
  var title_text_default = titleText;
21141
21226
  function namedFromContents(vNode) {
21142
- var _ref83 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, strict = _ref83.strict;
21227
+ var _ref84 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, strict = _ref84.strict;
21143
21228
  vNode = vNode instanceof abstract_virtual_node_default ? vNode : get_node_from_tree_default(vNode);
21144
21229
  if (vNode.props.nodeType !== 1) {
21145
21230
  return false;
@@ -21613,8 +21698,8 @@
21613
21698
  function attrText(attr, vNode) {
21614
21699
  return vNode.attr(attr) || '';
21615
21700
  }
21616
- function descendantText(nodeName2, _ref84, context) {
21617
- var actualNode = _ref84.actualNode;
21701
+ function descendantText(nodeName2, _ref85, context) {
21702
+ var actualNode = _ref85.actualNode;
21618
21703
  nodeName2 = nodeName2.toLowerCase();
21619
21704
  var nodeNames2 = [ nodeName2, actualNode.nodeName.toLowerCase() ].join(',');
21620
21705
  var candidate = actualNode.querySelector(nodeNames2);
@@ -21779,7 +21864,7 @@
21779
21864
  locations: [ 'billing', 'shipping' ]
21780
21865
  };
21781
21866
  function isValidAutocomplete(autocompleteValue) {
21782
- var _ref85 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, _ref85$looseTyped = _ref85.looseTyped, looseTyped = _ref85$looseTyped === void 0 ? false : _ref85$looseTyped, _ref85$stateTerms = _ref85.stateTerms, stateTerms = _ref85$stateTerms === void 0 ? [] : _ref85$stateTerms, _ref85$locations = _ref85.locations, locations = _ref85$locations === void 0 ? [] : _ref85$locations, _ref85$qualifiers = _ref85.qualifiers, qualifiers = _ref85$qualifiers === void 0 ? [] : _ref85$qualifiers, _ref85$standaloneTerm = _ref85.standaloneTerms, standaloneTerms = _ref85$standaloneTerm === void 0 ? [] : _ref85$standaloneTerm, _ref85$qualifiedTerms = _ref85.qualifiedTerms, qualifiedTerms = _ref85$qualifiedTerms === void 0 ? [] : _ref85$qualifiedTerms, _ref85$ignoredValues = _ref85.ignoredValues, ignoredValues = _ref85$ignoredValues === void 0 ? [] : _ref85$ignoredValues;
21867
+ var _ref86 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, _ref86$looseTyped = _ref86.looseTyped, looseTyped = _ref86$looseTyped === void 0 ? false : _ref86$looseTyped, _ref86$stateTerms = _ref86.stateTerms, stateTerms = _ref86$stateTerms === void 0 ? [] : _ref86$stateTerms, _ref86$locations = _ref86.locations, locations = _ref86$locations === void 0 ? [] : _ref86$locations, _ref86$qualifiers = _ref86.qualifiers, qualifiers = _ref86$qualifiers === void 0 ? [] : _ref86$qualifiers, _ref86$standaloneTerm = _ref86.standaloneTerms, standaloneTerms = _ref86$standaloneTerm === void 0 ? [] : _ref86$standaloneTerm, _ref86$qualifiedTerms = _ref86.qualifiedTerms, qualifiedTerms = _ref86$qualifiedTerms === void 0 ? [] : _ref86$qualifiedTerms, _ref86$ignoredValues = _ref86.ignoredValues, ignoredValues = _ref86$ignoredValues === void 0 ? [] : _ref86$ignoredValues;
21783
21868
  autocompleteValue = autocompleteValue.toLowerCase().trim();
21784
21869
  stateTerms = stateTerms.concat(_autocomplete.stateTerms);
21785
21870
  if (stateTerms.includes(autocompleteValue) || autocompleteValue === '') {
@@ -22049,8 +22134,8 @@
22049
22134
  if (hiddenTextElms.includes(elm.props.nodeName)) {
22050
22135
  return false;
22051
22136
  }
22052
- return elm.children.some(function(_ref86) {
22053
- var props = _ref86.props;
22137
+ return elm.children.some(function(_ref87) {
22138
+ var props = _ref87.props;
22054
22139
  return props.nodeType === 3 && props.nodeValue.trim();
22055
22140
  });
22056
22141
  }
@@ -22164,7 +22249,7 @@
22164
22249
  var blockLike = [ 'block', 'list-item', 'table', 'flex', 'grid' ];
22165
22250
  var inlineBlockLike = [ 'inline-block', 'inline-flex', 'inline-grid' ];
22166
22251
  function isInTextBlock(node) {
22167
- var _ref87 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, noLengthCompare = _ref87.noLengthCompare, _ref87$includeInlineB = _ref87.includeInlineBlock, includeInlineBlock = _ref87$includeInlineB === void 0 ? false : _ref87$includeInlineB;
22252
+ var _ref88 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, noLengthCompare = _ref88.noLengthCompare, _ref88$includeInlineB = _ref88.includeInlineBlock, includeInlineBlock = _ref88$includeInlineB === void 0 ? false : _ref88$includeInlineB;
22168
22253
  var _nodeLookup27 = _nodeLookup(node), vNode = _nodeLookup27.vNode, domNode = _nodeLookup27.domNode;
22169
22254
  if (isBlock(domNode) || !includeInlineBlock && isInlineBlockLike(vNode)) {
22170
22255
  return false;
@@ -22199,7 +22284,7 @@
22199
22284
  inBrBlock = 2;
22200
22285
  }
22201
22286
  }
22202
- if (nodeIsBlock || currNode.style.display === 'none' || currNode.style.overflow === 'hidden' || ![ '', null, 'none' ].includes(currNode.style['float']) || ![ '', null, 'relative' ].includes(currNode.style.position)) {
22287
+ if (nodeIsBlock || !_isVisibleOnScreen(currNode)) {
22203
22288
  return false;
22204
22289
  } else if (get_role_type_default(currNode) === 'widget') {
22205
22290
  widgetText += currNode.textContent;
@@ -22464,23 +22549,24 @@
22464
22549
  }, {
22465
22550
  key: 'parseString',
22466
22551
  value: function parseString(colorString) {
22467
- var _color$alpha2;
22468
22552
  var parsedColors = cache_default.get('parsedColors', function() {
22469
- return {};
22553
+ return new Map();
22470
22554
  });
22471
- var color = parsedColors[colorString];
22472
- if (!color) {
22555
+ var channels = parsedColors.get(colorString);
22556
+ if (!channels) {
22473
22557
  var cacheKey2 = colorString;
22474
22558
  try {
22559
+ var _color3$alpha;
22475
22560
  var prototypeArrayFrom;
22476
22561
  if ('Prototype' in window && 'Version' in window.Prototype) {
22477
22562
  prototypeArrayFrom = Array.from;
22478
22563
  Array.from = import_from2['default'];
22479
22564
  }
22480
- color = new src_default(colorString).toGamut({
22565
+ var _color3 = new src_default(colorString).toGamut({
22481
22566
  space: 'srgb',
22482
22567
  method: 'clip'
22483
22568
  }).to('srgb');
22569
+ channels = [ _color3.r, _color3.g, _color3.b, +((_color3$alpha = _color3.alpha) !== null && _color3$alpha !== void 0 ? _color3$alpha : 0) ];
22484
22570
  if (prototypeArrayFrom) {
22485
22571
  Array.from = prototypeArrayFrom;
22486
22572
  prototypeArrayFrom = null;
@@ -22489,12 +22575,14 @@
22489
22575
  incomplete_data_default.set('colorParse', colorString);
22490
22576
  throw new Error('Unable to parse color "'.concat(colorString, '"'));
22491
22577
  }
22492
- parsedColors[cacheKey2] = color;
22578
+ parsedColors.set(cacheKey2, channels);
22493
22579
  }
22494
- this.r = color.r;
22495
- this.g = color.g;
22496
- this.b = color.b;
22497
- this.alpha = +((_color$alpha2 = color.alpha) !== null && _color$alpha2 !== void 0 ? _color$alpha2 : 0);
22580
+ var _channels = channels;
22581
+ var _channels2 = _slicedToArray(_channels, 4);
22582
+ this.r = _channels2[0];
22583
+ this.g = _channels2[1];
22584
+ this.b = _channels2[2];
22585
+ this.alpha = _channels2[3];
22498
22586
  return this;
22499
22587
  }
22500
22588
  }, {
@@ -22617,7 +22705,26 @@
22617
22705
  }
22618
22706
  var is_opaque_default = isOpaque;
22619
22707
  function _isSeparateTarget(vNode, vOther) {
22620
- return get_role_type_default(vOther) === 'widget' && _isFocusable(vOther) && !_hasSameDestination(vNode, vOther);
22708
+ return get_role_type_default(vOther) === 'widget' && _isFocusable(vOther) && !_hasSameDestination(vNode, vOther) && !isOnlyDescendantOfWidget(vNode, vOther);
22709
+ }
22710
+ function isOnlyDescendantOfWidget(vNode, vOther) {
22711
+ var ancestor = _contains(vNode, vOther) ? vNode : _contains(vOther, vNode) ? vOther : null;
22712
+ var widgetDescendant = ancestor === vNode ? vOther : vNode;
22713
+ if (!ancestor) {
22714
+ return false;
22715
+ }
22716
+ var descendant = ancestor;
22717
+ while (descendant !== widgetDescendant) {
22718
+ var children = descendant.children.filter(function(node) {
22719
+ var _node$props$nodeValue;
22720
+ return node.props.type === 1 || ((_node$props$nodeValue = node.props.nodeValue) === null || _node$props$nodeValue === void 0 ? void 0 : _node$props$nodeValue.trim()) !== '';
22721
+ });
22722
+ if (children.length !== 1) {
22723
+ return false;
22724
+ }
22725
+ descendant = children[0];
22726
+ }
22727
+ return true;
22621
22728
  }
22622
22729
  function _isSkipLink(element) {
22623
22730
  if (!element.href) {
@@ -22683,8 +22790,8 @@
22683
22790
  if (!refs || !refs.length) {
22684
22791
  return false;
22685
22792
  }
22686
- return refs.some(function(_ref88) {
22687
- var actualNode = _ref88.actualNode;
22793
+ return refs.some(function(_ref89) {
22794
+ var actualNode = _ref89.actualNode;
22688
22795
  return isVisible(actualNode, screenReader, recursed);
22689
22796
  });
22690
22797
  }
@@ -22696,7 +22803,7 @@
22696
22803
  var vNode = el instanceof abstract_virtual_node_default ? el : get_node_from_tree_default(el);
22697
22804
  el = vNode ? vNode.actualNode : el;
22698
22805
  var cacheName = '_isVisible' + (screenReader ? 'ScreenReader' : '');
22699
- var _ref89 = (_window$Node2 = window.Node) !== null && _window$Node2 !== void 0 ? _window$Node2 : {}, DOCUMENT_NODE = _ref89.DOCUMENT_NODE, DOCUMENT_FRAGMENT_NODE = _ref89.DOCUMENT_FRAGMENT_NODE;
22806
+ var _ref90 = (_window$Node2 = window.Node) !== null && _window$Node2 !== void 0 ? _window$Node2 : {}, DOCUMENT_NODE = _ref90.DOCUMENT_NODE, DOCUMENT_FRAGMENT_NODE = _ref90.DOCUMENT_FRAGMENT_NODE;
22700
22807
  var nodeType = vNode ? vNode.props.nodeType : el.nodeType;
22701
22808
  var nodeName2 = vNode ? vNode.props.nodeName : el.nodeName.toLowerCase();
22702
22809
  if (vNode && typeof vNode[cacheName] !== 'undefined') {
@@ -23514,7 +23621,7 @@
23514
23621
  return {};
23515
23622
  }
23516
23623
  var navigator = win.navigator, innerHeight = win.innerHeight, innerWidth = win.innerWidth;
23517
- var _ref90 = getOrientation(win) || {}, angle = _ref90.angle, type2 = _ref90.type;
23624
+ var _ref91 = getOrientation(win) || {}, angle = _ref91.angle, type2 = _ref91.type;
23518
23625
  return {
23519
23626
  userAgent: navigator.userAgent,
23520
23627
  windowWidth: innerWidth,
@@ -23523,12 +23630,12 @@
23523
23630
  orientationType: type2
23524
23631
  };
23525
23632
  }
23526
- function getOrientation(_ref91) {
23527
- var screen = _ref91.screen;
23633
+ function getOrientation(_ref92) {
23634
+ var screen = _ref92.screen;
23528
23635
  return screen.orientation || screen.msOrientation || screen.mozOrientation;
23529
23636
  }
23530
- function createFrameContext(frame, _ref92) {
23531
- var focusable = _ref92.focusable, page = _ref92.page;
23637
+ function createFrameContext(frame, _ref93) {
23638
+ var focusable = _ref93.focusable, page = _ref93.page;
23532
23639
  return {
23533
23640
  node: frame,
23534
23641
  include: [],
@@ -23742,8 +23849,8 @@
23742
23849
  }
23743
23850
  context.frames.push(createFrameContext(frame, context));
23744
23851
  }
23745
- function isPageContext(_ref93) {
23746
- var include = _ref93.include;
23852
+ function isPageContext(_ref94) {
23853
+ var include = _ref94.include;
23747
23854
  return include.length === 1 && include[0].actualNode === document.documentElement;
23748
23855
  }
23749
23856
  function validateContext(context) {
@@ -23752,8 +23859,8 @@
23752
23859
  throw new Error('No elements found for include in ' + env + ' Context');
23753
23860
  }
23754
23861
  }
23755
- function getRootNode2(_ref94) {
23756
- var include = _ref94.include, exclude = _ref94.exclude;
23862
+ function getRootNode2(_ref95) {
23863
+ var include = _ref95.include, exclude = _ref95.exclude;
23757
23864
  var selectors = Array.from(include).concat(Array.from(exclude));
23758
23865
  for (var _i21 = 0; _i21 < selectors.length; _i21++) {
23759
23866
  var item = selectors[_i21];
@@ -23772,8 +23879,8 @@
23772
23879
  return [];
23773
23880
  }
23774
23881
  var _Context = new Context(context), frames = _Context.frames;
23775
- return frames.map(function(_ref95) {
23776
- var node = _ref95.node, frameContext = _objectWithoutProperties(_ref95, _excluded12);
23882
+ return frames.map(function(_ref96) {
23883
+ var node = _ref96.node, frameContext = _objectWithoutProperties(_ref96, _excluded12);
23777
23884
  frameContext.initiator = false;
23778
23885
  var frameSelector = _getAncestry(node);
23779
23886
  return {
@@ -23783,8 +23890,8 @@
23783
23890
  });
23784
23891
  }
23785
23892
  function _getRule(ruleId) {
23786
- var rule = axe._audit.rules.find(function(_ref96) {
23787
- var id = _ref96.id;
23893
+ var rule = axe._audit.rules.find(function(_ref97) {
23894
+ var id = _ref97.id;
23788
23895
  return id === ruleId;
23789
23896
  });
23790
23897
  if (!rule) {
@@ -24016,8 +24123,8 @@
24016
24123
  }
24017
24124
  return !!standards_default.htmlElms[nodeName2];
24018
24125
  }
24019
- function _isNodeInContext(node, _ref97) {
24020
- var _ref97$include = _ref97.include, include = _ref97$include === void 0 ? [] : _ref97$include, _ref97$exclude = _ref97.exclude, exclude = _ref97$exclude === void 0 ? [] : _ref97$exclude;
24126
+ function _isNodeInContext(node, _ref98) {
24127
+ var _ref98$include = _ref98.include, include = _ref98$include === void 0 ? [] : _ref98$include, _ref98$exclude = _ref98.exclude, exclude = _ref98$exclude === void 0 ? [] : _ref98$exclude;
24021
24128
  var filterInclude = include.filter(function(candidate) {
24022
24129
  return _contains(candidate, node);
24023
24130
  });
@@ -24445,8 +24552,8 @@
24445
24552
  return matchExpressions(domTree, expressions, filter);
24446
24553
  }
24447
24554
  var query_selector_all_filter_default = querySelectorAllFilter;
24448
- function preloadCssom(_ref98) {
24449
- var _ref98$treeRoot = _ref98.treeRoot, treeRoot = _ref98$treeRoot === void 0 ? axe._tree[0] : _ref98$treeRoot;
24555
+ function preloadCssom(_ref99) {
24556
+ var _ref99$treeRoot = _ref99.treeRoot, treeRoot = _ref99$treeRoot === void 0 ? axe._tree[0] : _ref99$treeRoot;
24450
24557
  var rootNodes = getAllRootNodesInTree(treeRoot);
24451
24558
  if (!rootNodes.length) {
24452
24559
  return Promise.resolve();
@@ -24476,8 +24583,8 @@
24476
24583
  }
24477
24584
  function getCssomForAllRootNodes(rootNodes, convertDataToStylesheet) {
24478
24585
  var promises = [];
24479
- rootNodes.forEach(function(_ref99, index) {
24480
- var rootNode = _ref99.rootNode, shadowId = _ref99.shadowId;
24586
+ rootNodes.forEach(function(_ref100, index) {
24587
+ var rootNode = _ref100.rootNode, shadowId = _ref100.shadowId;
24481
24588
  var sheets = getStylesheetsOfRootNode(rootNode, shadowId, convertDataToStylesheet);
24482
24589
  if (!sheets) {
24483
24590
  return Promise.all(promises);
@@ -24563,10 +24670,10 @@
24563
24670
  return true;
24564
24671
  });
24565
24672
  }
24566
- function preloadMedia(_ref100) {
24567
- var _ref100$treeRoot = _ref100.treeRoot, treeRoot = _ref100$treeRoot === void 0 ? axe._tree[0] : _ref100$treeRoot;
24568
- var mediaVirtualNodes = query_selector_all_filter_default(treeRoot, 'video[autoplay], audio[autoplay]', function(_ref101) {
24569
- var actualNode = _ref101.actualNode;
24673
+ function preloadMedia(_ref101) {
24674
+ var _ref101$treeRoot = _ref101.treeRoot, treeRoot = _ref101$treeRoot === void 0 ? axe._tree[0] : _ref101$treeRoot;
24675
+ var mediaVirtualNodes = query_selector_all_filter_default(treeRoot, 'video[autoplay], audio[autoplay]', function(_ref102) {
24676
+ var actualNode = _ref102.actualNode;
24570
24677
  if (actualNode.preload === 'none' && actualNode.readyState === 0 && actualNode.networkState !== actualNode.NETWORK_LOADING) {
24571
24678
  return false;
24572
24679
  }
@@ -24584,8 +24691,8 @@
24584
24691
  }
24585
24692
  return true;
24586
24693
  });
24587
- return Promise.all(mediaVirtualNodes.map(function(_ref102) {
24588
- var actualNode = _ref102.actualNode;
24694
+ return Promise.all(mediaVirtualNodes.map(function(_ref103) {
24695
+ var actualNode = _ref103.actualNode;
24589
24696
  return isMediaElementReady(actualNode);
24590
24697
  }));
24591
24698
  }
@@ -24906,10 +25013,10 @@
24906
25013
  return serial;
24907
25014
  }
24908
25015
  var RuleError = function(_Error) {
24909
- function RuleError(_ref104) {
25016
+ function RuleError(_ref105) {
24910
25017
  var _error$name;
24911
25018
  var _this12;
24912
- var error = _ref104.error, ruleId = _ref104.ruleId, method = _ref104.method, errorNode = _ref104.errorNode;
25019
+ var error = _ref105.error, ruleId = _ref105.ruleId, method = _ref105.method, errorNode = _ref105.errorNode;
24913
25020
  _classCallCheck(this, RuleError);
24914
25021
  _this12 = _callSuper(this, RuleError);
24915
25022
  _this12.name = (_error$name = error.name) !== null && _error$name !== void 0 ? _error$name : 'RuleError';
@@ -24943,8 +25050,8 @@
24943
25050
  }
24944
25051
  }
24945
25052
  function setScrollState(scrollState) {
24946
- scrollState.forEach(function(_ref105) {
24947
- var elm = _ref105.elm, top = _ref105.top, left = _ref105.left;
25053
+ scrollState.forEach(function(_ref106) {
25054
+ var elm = _ref106.elm, top = _ref106.top, left = _ref106.left;
24948
25055
  return setScroll(elm, top, left);
24949
25056
  });
24950
25057
  }
@@ -24972,8 +25079,8 @@
24972
25079
  }
24973
25080
  return selectAllRecursive(selectorArr, doc);
24974
25081
  }
24975
- function selectAllRecursive(_ref106, doc) {
24976
- var _ref107 = _toArray(_ref106), selectorStr = _ref107[0], restSelector = _arrayLikeToArray(_ref107).slice(1);
25082
+ function selectAllRecursive(_ref107, doc) {
25083
+ var _ref108 = _toArray(_ref107), selectorStr = _ref108[0], restSelector = _arrayLikeToArray(_ref108).slice(1);
24977
25084
  var elms = doc.querySelectorAll(selectorStr);
24978
25085
  if (restSelector.length === 0) {
24979
25086
  return Array.from(elms);
@@ -25153,9 +25260,9 @@
25153
25260
  nodeTypeToName[nodeNamesToTypes[nodeName2]] = nodeName2;
25154
25261
  });
25155
25262
  function normaliseProps(serialNode) {
25156
- var _serialNode$nodeName, _ref108, _serialNode$nodeType;
25263
+ var _serialNode$nodeName, _ref109, _serialNode$nodeType;
25157
25264
  var nodeName2 = (_serialNode$nodeName = serialNode.nodeName) !== null && _serialNode$nodeName !== void 0 ? _serialNode$nodeName : nodeTypeToName[serialNode.nodeType];
25158
- var nodeType = (_ref108 = (_serialNode$nodeType = serialNode.nodeType) !== null && _serialNode$nodeType !== void 0 ? _serialNode$nodeType : nodeNamesToTypes[serialNode.nodeName]) !== null && _ref108 !== void 0 ? _ref108 : 1;
25265
+ var nodeType = (_ref109 = (_serialNode$nodeType = serialNode.nodeType) !== null && _serialNode$nodeType !== void 0 ? _serialNode$nodeType : nodeNamesToTypes[serialNode.nodeName]) !== null && _ref109 !== void 0 ? _ref109 : 1;
25159
25266
  assert_default(typeof nodeType === 'number', 'nodeType has to be a number, got \''.concat(nodeType, '\''));
25160
25267
  assert_default(typeof nodeName2 === 'string', 'nodeName has to be a string, got \''.concat(nodeName2, '\''));
25161
25268
  nodeName2 = nodeName2.toLowerCase();
@@ -25176,8 +25283,8 @@
25176
25283
  delete props.attributes;
25177
25284
  return Object.freeze(props);
25178
25285
  }
25179
- function normaliseAttrs(_ref109) {
25180
- var _ref109$attributes = _ref109.attributes, attributes2 = _ref109$attributes === void 0 ? {} : _ref109$attributes;
25286
+ function normaliseAttrs(_ref110) {
25287
+ var _ref110$attributes = _ref110.attributes, attributes2 = _ref110$attributes === void 0 ? {} : _ref110$attributes;
25181
25288
  var attrMap = {
25182
25289
  htmlFor: 'for',
25183
25290
  className: 'class'
@@ -25340,7 +25447,7 @@
25340
25447
  var getElementInternals2;
25341
25448
  var elementInternalsTimeout;
25342
25449
  function externalAPIs() {
25343
- var _ref110 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}, internalsTimeout = _ref110.elementInternalsTimeout, getInternals = _ref110.getElementInternals;
25450
+ var _ref111 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}, internalsTimeout = _ref111.elementInternalsTimeout, getInternals = _ref111.getElementInternals;
25344
25451
  if (isNotNullOrUndefined(internalsTimeout)) {
25345
25452
  assert_default(typeof internalsTimeout === 'number', 'elementInternalsTimeout must be a number');
25346
25453
  elementInternalsTimeout = internalsTimeout;
@@ -25380,7 +25487,7 @@
25380
25487
  }
25381
25488
  function _loadElementInternals() {
25382
25489
  _loadElementInternals = _asyncToGenerator(_regenerator().m(function _callee2() {
25383
- var logger2, promiseValue, internalsMap, _i47, _internalsMap$_i, internals, ancestry, node, vNode, _i48, _Object$entries2, _Object$entries2$_i, _key14, val, type2, value, _args2 = arguments;
25490
+ var logger2, promiseValue, internalsMap, _i47, _internalsMap$_i, internals, ancestry, node, vNode, _i48, _Object$entries2, _Object$entries2$_i, _key15, val, type2, value, _args2 = arguments;
25384
25491
  return _regenerator().w(function(_context3) {
25385
25492
  while (1) {
25386
25493
  switch (_context3.n) {
@@ -25458,7 +25565,7 @@
25458
25565
  _context3.n = 12;
25459
25566
  break;
25460
25567
  }
25461
- _Object$entries2$_i = _slicedToArray(_Object$entries2[_i48], 2), _key14 = _Object$entries2$_i[0],
25568
+ _Object$entries2$_i = _slicedToArray(_Object$entries2[_i48], 2), _key15 = _Object$entries2$_i[0],
25462
25569
  val = _Object$entries2$_i[1];
25463
25570
  if (!(typeof val === 'string')) {
25464
25571
  _context3.n = 10;
@@ -25469,15 +25576,15 @@
25469
25576
  case 10:
25470
25577
  type2 = val.type, value = val.value;
25471
25578
  if (!type2) {
25472
- logger2('externalAPIs.getElementInternals()['.concat(_i47, '].internals.').concat(_key14, ' is an object but has no "type" property'));
25579
+ logger2('externalAPIs.getElementInternals()['.concat(_i47, '].internals.').concat(_key15, ' is an object but has no "type" property'));
25473
25580
  }
25474
25581
  if (!value) {
25475
- logger2('externalAPIs.getElementInternals()['.concat(_i47, '].internals.').concat(_key14, ' is an object but has no "value" property'));
25582
+ logger2('externalAPIs.getElementInternals()['.concat(_i47, '].internals.').concat(_key15, ' is an object but has no "value" property'));
25476
25583
  }
25477
25584
  if (type2 === 'HTMLElement') {
25478
- setHTMLElement(internals, _key14, value);
25585
+ setHTMLElement(internals, _key15, value);
25479
25586
  } else if (type2 === 'NodeList') {
25480
- setNodeList(internals, _key14, value);
25587
+ setNodeList(internals, _key15, value);
25481
25588
  }
25482
25589
 
25483
25590
  case 11:
@@ -27872,8 +27979,8 @@
27872
27979
  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' ]
27873
27980
  } ];
27874
27981
  lookupTable.evaluateRoleForElement = {
27875
- A: function A(_ref111) {
27876
- var node = _ref111.node, out = _ref111.out;
27982
+ A: function A(_ref112) {
27983
+ var node = _ref112.node, out = _ref112.out;
27877
27984
  if (node.namespaceURI === 'http://www.w3.org/2000/svg') {
27878
27985
  return true;
27879
27986
  }
@@ -27882,19 +27989,19 @@
27882
27989
  }
27883
27990
  return true;
27884
27991
  },
27885
- AREA: function AREA(_ref112) {
27886
- var node = _ref112.node;
27992
+ AREA: function AREA(_ref113) {
27993
+ var node = _ref113.node;
27887
27994
  return !node.href;
27888
27995
  },
27889
- BUTTON: function BUTTON(_ref113) {
27890
- var node = _ref113.node, role = _ref113.role, out = _ref113.out;
27996
+ BUTTON: function BUTTON(_ref114) {
27997
+ var node = _ref114.node, role = _ref114.role, out = _ref114.out;
27891
27998
  if (node.getAttribute('type') === 'menu') {
27892
27999
  return role === 'menuitem';
27893
28000
  }
27894
28001
  return out;
27895
28002
  },
27896
- IMG: function IMG(_ref114) {
27897
- var node = _ref114.node, role = _ref114.role, out = _ref114.out;
28003
+ IMG: function IMG(_ref115) {
28004
+ var node = _ref115.node, role = _ref115.role, out = _ref115.out;
27898
28005
  switch (node.alt) {
27899
28006
  case null:
27900
28007
  return out;
@@ -27906,8 +28013,8 @@
27906
28013
  return role !== 'presentation' && role !== 'none';
27907
28014
  }
27908
28015
  },
27909
- INPUT: function INPUT(_ref115) {
27910
- var node = _ref115.node, role = _ref115.role, out = _ref115.out;
28016
+ INPUT: function INPUT(_ref116) {
28017
+ var node = _ref116.node, role = _ref116.role, out = _ref116.out;
27911
28018
  switch (node.type) {
27912
28019
  case 'button':
27913
28020
  case 'image':
@@ -27937,32 +28044,32 @@
27937
28044
  return false;
27938
28045
  }
27939
28046
  },
27940
- LI: function LI(_ref116) {
27941
- var node = _ref116.node, out = _ref116.out;
28047
+ LI: function LI(_ref117) {
28048
+ var node = _ref117.node, out = _ref117.out;
27942
28049
  var hasImplicitListitemRole = axe.utils.matchesSelector(node, 'ol li, ul li');
27943
28050
  if (hasImplicitListitemRole) {
27944
28051
  return out;
27945
28052
  }
27946
28053
  return true;
27947
28054
  },
27948
- MENU: function MENU(_ref117) {
27949
- var node = _ref117.node;
28055
+ MENU: function MENU(_ref118) {
28056
+ var node = _ref118.node;
27950
28057
  if (node.getAttribute('type') === 'context') {
27951
28058
  return false;
27952
28059
  }
27953
28060
  return true;
27954
28061
  },
27955
- OPTION: function OPTION(_ref118) {
27956
- var node = _ref118.node;
28062
+ OPTION: function OPTION(_ref119) {
28063
+ var node = _ref119.node;
27957
28064
  var withinOptionList = axe.utils.matchesSelector(node, 'select > option, datalist > option, optgroup > option');
27958
28065
  return !withinOptionList;
27959
28066
  },
27960
- SELECT: function SELECT(_ref119) {
27961
- var node = _ref119.node, role = _ref119.role;
28067
+ SELECT: function SELECT(_ref120) {
28068
+ var node = _ref120.node, role = _ref120.role;
27962
28069
  return !node.multiple && node.size <= 1 && role === 'menu';
27963
28070
  },
27964
- SVG: function SVG(_ref120) {
27965
- var node = _ref120.node, out = _ref120.out;
28071
+ SVG: function SVG(_ref121) {
28072
+ var node = _ref121.node, out = _ref121.out;
27966
28073
  if (node.parentNode && node.parentNode.namespaceURI === 'http://www.w3.org/2000/svg') {
27967
28074
  return true;
27968
28075
  }
@@ -27987,7 +28094,7 @@
27987
28094
  }
27988
28095
  var is_accessible_ref_default = isAccessibleRef;
27989
28096
  function _isComboboxPopup(virtualNode) {
27990
- var _ref121 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, popupRoles = _ref121.popupRoles;
28097
+ var _ref122 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, popupRoles = _ref122.popupRoles;
27991
28098
  var role = get_role_default(virtualNode);
27992
28099
  popupRoles !== null && popupRoles !== void 0 ? popupRoles : popupRoles = aria_attrs_default['aria-haspopup'].values;
27993
28100
  if (!popupRoles.includes(role)) {
@@ -28276,8 +28383,8 @@
28276
28383
  if (!virtualNode.children) {
28277
28384
  return void 0;
28278
28385
  }
28279
- var titleNode = virtualNode.children.find(function(_ref122) {
28280
- var props = _ref122.props;
28386
+ var titleNode = virtualNode.children.find(function(_ref123) {
28387
+ var props = _ref123.props;
28281
28388
  return props.nodeName === 'title';
28282
28389
  });
28283
28390
  if (!titleNode) {
@@ -28476,13 +28583,13 @@
28476
28583
  var fontSize = parseFloat(vNode.getComputedStylePropertyValue('font-size'));
28477
28584
  return Math.round(parseFloat(value) / fontSize * 100) === Math.round(parseFloat(declared) * 100);
28478
28585
  }
28479
- function redeclares(_ref123, cssProperty) {
28480
- var actualNode = _ref123.actualNode;
28586
+ function redeclares(_ref124, cssProperty) {
28587
+ var actualNode = _ref124.actualNode;
28481
28588
  var value = actualNode.style.getPropertyValue(cssProperty);
28482
28589
  return value !== '' && value !== 'inherit' && value !== 'unset';
28483
28590
  }
28484
- function getNumberValue(vNode, _ref124) {
28485
- var cssProperty = _ref124.cssProperty, absoluteValues = _ref124.absoluteValues, normalValue = _ref124.normalValue;
28591
+ function getNumberValue(vNode, _ref125) {
28592
+ var cssProperty = _ref125.cssProperty, absoluteValues = _ref125.absoluteValues, normalValue = _ref125.normalValue;
28486
28593
  var cssPropValue = vNode.getComputedStylePropertyValue(cssProperty);
28487
28594
  if (cssPropValue === 'normal') {
28488
28595
  return normalValue;
@@ -28628,8 +28735,8 @@
28628
28735
  } else if (node !== document.body && has_content_default(node, true) && !isShallowlyHidden(virtualNode)) {
28629
28736
  return [ virtualNode ];
28630
28737
  } else {
28631
- return virtualNode.children.filter(function(_ref125) {
28632
- var actualNode = _ref125.actualNode;
28738
+ return virtualNode.children.filter(function(_ref126) {
28739
+ var actualNode = _ref126.actualNode;
28633
28740
  return actualNode.nodeType === 1;
28634
28741
  }).map(function(vNode) {
28635
28742
  return findRegionlessElms(vNode, options);
@@ -28777,7 +28884,7 @@
28777
28884
  var separatorRegex = /[;,\s]/;
28778
28885
  var validRedirectNumRegex = /^[0-9.]+$/;
28779
28886
  function metaRefreshEvaluate(node, options, virtualNode) {
28780
- var _ref126 = options || {}, minDelay = _ref126.minDelay, maxDelay = _ref126.maxDelay;
28887
+ var _ref127 = options || {}, minDelay = _ref127.minDelay, maxDelay = _ref127.maxDelay;
28781
28888
  var content = (virtualNode.attr('content') || '').trim();
28782
28889
  var _content$split = content.split(separatorRegex), _content$split2 = _slicedToArray(_content$split, 1), redirectStr = _content$split2[0];
28783
28890
  if (!redirectStr.match(validRedirectNumRegex)) {
@@ -29084,7 +29191,6 @@
29084
29191
  }
29085
29192
  function _getBackgroundStack(node) {
29086
29193
  var stacks = get_text_element_stack_default(node).map(function(stack) {
29087
- stack = reduce_to_elements_below_floating_default(stack, node);
29088
29194
  stack = sortPageBackground(stack);
29089
29195
  return stack;
29090
29196
  });
@@ -29140,10 +29246,10 @@
29140
29246
  var OPAQUE_STROKE_OFFSET_MIN_PX = 1.5;
29141
29247
  var edges = [ 'top', 'right', 'bottom', 'left' ];
29142
29248
  function _getStrokeColorsFromShadows(parsedShadows) {
29143
- var _ref127 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, _ref127$ignoreEdgeCou = _ref127.ignoreEdgeCount, ignoreEdgeCount = _ref127$ignoreEdgeCou === void 0 ? false : _ref127$ignoreEdgeCou;
29249
+ var _ref128 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, _ref128$ignoreEdgeCou = _ref128.ignoreEdgeCount, ignoreEdgeCount = _ref128$ignoreEdgeCou === void 0 ? false : _ref128$ignoreEdgeCou;
29144
29250
  var shadowMap = getShadowColorsMap(parsedShadows);
29145
- var shadowsByColor = Object.entries(shadowMap).map(function(_ref128) {
29146
- var _ref129 = _slicedToArray(_ref128, 2), colorStr = _ref129[0], sides = _ref129[1];
29251
+ var shadowsByColor = Object.entries(shadowMap).map(function(_ref129) {
29252
+ var _ref130 = _slicedToArray(_ref129, 2), colorStr = _ref130[0], sides = _ref130[1];
29147
29253
  var edgeCount = edges.filter(function(side) {
29148
29254
  return sides[side].length !== 0;
29149
29255
  }).length;
@@ -29153,8 +29259,8 @@
29153
29259
  edgeCount: edgeCount
29154
29260
  };
29155
29261
  });
29156
- if (!ignoreEdgeCount && shadowsByColor.some(function(_ref130) {
29157
- var edgeCount = _ref130.edgeCount;
29262
+ if (!ignoreEdgeCount && shadowsByColor.some(function(_ref131) {
29263
+ var edgeCount = _ref131.edgeCount;
29158
29264
  return edgeCount > 1 && edgeCount < 4;
29159
29265
  })) {
29160
29266
  return null;
@@ -29196,8 +29302,8 @@
29196
29302
  }
29197
29303
  return colorMap;
29198
29304
  }
29199
- function shadowGroupToColor(_ref131) {
29200
- var colorStr = _ref131.colorStr, sides = _ref131.sides, edgeCount = _ref131.edgeCount;
29305
+ function shadowGroupToColor(_ref132) {
29306
+ var colorStr = _ref132.colorStr, sides = _ref132.sides, edgeCount = _ref132.edgeCount;
29201
29307
  if (edgeCount !== 4) {
29202
29308
  return null;
29203
29309
  }
@@ -29248,8 +29354,8 @@
29248
29354
  throw new Error('Unable to process text-shadows: '.concat(str));
29249
29355
  }
29250
29356
  }
29251
- shadows.forEach(function(_ref132) {
29252
- var pixels = _ref132.pixels;
29357
+ shadows.forEach(function(_ref133) {
29358
+ var pixels = _ref133.pixels;
29253
29359
  if (pixels.length === 2) {
29254
29360
  pixels.push(0);
29255
29361
  }
@@ -29257,7 +29363,7 @@
29257
29363
  return shadows;
29258
29364
  }
29259
29365
  function _getTextShadowColors(node) {
29260
- var _ref133 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, minRatio = _ref133.minRatio, maxRatio = _ref133.maxRatio, ignoreEdgeCount = _ref133.ignoreEdgeCount;
29366
+ var _ref134 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, minRatio = _ref134.minRatio, maxRatio = _ref134.maxRatio, ignoreEdgeCount = _ref134.ignoreEdgeCount;
29261
29367
  var shadowColors = [];
29262
29368
  var style = window.getComputedStyle(node);
29263
29369
  var textShadow = style.getPropertyValue('text-shadow');
@@ -29295,14 +29401,14 @@
29295
29401
  shadowColors.push.apply(shadowColors, _toConsumableArray(_strokeColors));
29296
29402
  thinShadows.splice(0, thinShadows.length);
29297
29403
  }
29298
- var _color3 = textShadowColor({
29404
+ var _color4 = textShadowColor({
29299
29405
  colorStr: colorStr,
29300
29406
  offsetX: offsetX,
29301
29407
  offsetY: offsetY,
29302
29408
  blurRadius: blurRadius,
29303
29409
  fontSize: fontSize
29304
29410
  });
29305
- shadowColors.push(_color3);
29411
+ shadowColors.push(_color4);
29306
29412
  }
29307
29413
  } catch (err) {
29308
29414
  _iterator26.e(err);
@@ -29320,8 +29426,8 @@
29320
29426
  }
29321
29427
  return shadowColors;
29322
29428
  }
29323
- function textShadowColor(_ref134) {
29324
- var colorStr = _ref134.colorStr, offsetX = _ref134.offsetX, offsetY = _ref134.offsetY, blurRadius = _ref134.blurRadius, fontSize = _ref134.fontSize;
29429
+ function textShadowColor(_ref135) {
29430
+ var colorStr = _ref135.colorStr, offsetX = _ref135.offsetX, offsetY = _ref135.offsetY, blurRadius = _ref135.blurRadius, fontSize = _ref135.fontSize;
29325
29431
  if (offsetX > blurRadius || offsetY > blurRadius) {
29326
29432
  return new color_default2(0, 0, 0, 0);
29327
29433
  }
@@ -29349,13 +29455,13 @@
29349
29455
  var _stackingOrder2;
29350
29456
  var bgVNode = get_node_from_tree_default(bgElm);
29351
29457
  var bgColor = getOwnBackgroundColor2(bgVNode);
29352
- var stackingOrder = bgVNode._stackingOrder.filter(function(_ref135) {
29353
- var vNode = _ref135.vNode;
29458
+ var stackingOrder = bgVNode._stackingOrder.filter(function(_ref136) {
29459
+ var vNode = _ref136.vNode;
29354
29460
  return !!vNode;
29355
29461
  });
29356
- stackingOrder.forEach(function(_ref136, index) {
29462
+ stackingOrder.forEach(function(_ref137, index) {
29357
29463
  var _stackingOrder;
29358
- var vNode = _ref136.vNode;
29464
+ var vNode = _ref137.vNode;
29359
29465
  var ancestorVNode2 = (_stackingOrder = stackingOrder[index - 1]) === null || _stackingOrder === void 0 ? void 0 : _stackingOrder.vNode;
29360
29466
  var context2 = addToStackingContext(contextMap, vNode, ancestorVNode2);
29361
29467
  if (index === 0 && !contextMap.get(vNode)) {
@@ -29578,12 +29684,12 @@
29578
29684
  try {
29579
29685
  for (var _i33 = 0, _colorStack = colorStack; _i33 < _colorStack.length; _i33++) {
29580
29686
  var colorFn = _colorStack[_i33];
29581
- var _color4 = colorFn();
29582
- if (!_color4) {
29687
+ var _color5 = colorFn();
29688
+ if (!_color5) {
29583
29689
  continue;
29584
29690
  }
29585
- fgColors = fgColors.concat(_color4);
29586
- if (_color4.alpha === 1) {
29691
+ fgColors = fgColors.concat(_color5);
29692
+ if (_color5.alpha === 1) {
29587
29693
  break;
29588
29694
  }
29589
29695
  }
@@ -29609,8 +29715,8 @@
29609
29715
  function getTextColor(nodeStyle) {
29610
29716
  return new color_default2().parseString(nodeStyle.getPropertyValue('-webkit-text-fill-color') || nodeStyle.getPropertyValue('color'));
29611
29717
  }
29612
- function getStrokeColor(nodeStyle, _ref137) {
29613
- var _ref137$textStrokeEmM = _ref137.textStrokeEmMin, textStrokeEmMin = _ref137$textStrokeEmM === void 0 ? 0 : _ref137$textStrokeEmM;
29718
+ function getStrokeColor(nodeStyle, _ref138) {
29719
+ var _ref138$textStrokeEmM = _ref138.textStrokeEmMin, textStrokeEmMin = _ref138$textStrokeEmM === void 0 ? 0 : _ref138$textStrokeEmM;
29614
29720
  var strokeWidth = parseFloat(nodeStyle.getPropertyValue('-webkit-text-stroke-width'));
29615
29721
  if (strokeWidth === 0) {
29616
29722
  return null;
@@ -29772,8 +29878,8 @@
29772
29878
  if (results.length < 2) {
29773
29879
  return results;
29774
29880
  }
29775
- var incompleteResults = results.filter(function(_ref138) {
29776
- var result = _ref138.result;
29881
+ var incompleteResults = results.filter(function(_ref139) {
29882
+ var result = _ref139.result;
29777
29883
  return result !== void 0;
29778
29884
  });
29779
29885
  var uniqueResults = [];
@@ -29785,12 +29891,12 @@
29785
29891
  if (nameMap[name]) {
29786
29892
  return 1;
29787
29893
  }
29788
- var sameNameResults = incompleteResults.filter(function(_ref139, resultNum) {
29789
- var data = _ref139.data;
29894
+ var sameNameResults = incompleteResults.filter(function(_ref140, resultNum) {
29895
+ var data = _ref140.data;
29790
29896
  return data.name === name && resultNum !== index;
29791
29897
  });
29792
- var isSameUrl = sameNameResults.every(function(_ref140) {
29793
- var data = _ref140.data;
29898
+ var isSameUrl = sameNameResults.every(function(_ref141) {
29899
+ var data = _ref141.data;
29794
29900
  return isIdenticalObject(data.urlProps, urlProps);
29795
29901
  });
29796
29902
  if (sameNameResults.length && !isSameUrl) {
@@ -29816,7 +29922,7 @@
29816
29922
  var headingRole = role && role.includes('heading');
29817
29923
  var ariaHeadingLevel = _getAriaValue(vNode, 'aria-level').value;
29818
29924
  var ariaLevel = parseInt(ariaHeadingLevel, 10);
29819
- var _ref141 = vNode.props.nodeName.match(/h(\d)/) || [], _ref142 = _slicedToArray(_ref141, 2), headingLevel = _ref142[1];
29925
+ var _ref142 = vNode.props.nodeName.match(/h(\d)/) || [], _ref143 = _slicedToArray(_ref142, 2), headingLevel = _ref143[1];
29820
29926
  if (!headingRole) {
29821
29927
  return -1;
29822
29928
  }
@@ -29858,9 +29964,23 @@
29858
29964
  var headingOrder = getHeadingOrder(results);
29859
29965
  results.forEach(function(result) {
29860
29966
  result.result = getHeadingOrderOutcome(result, headingOrder);
29967
+ if (result.result === false) {
29968
+ addPreviousHeading(result, headingOrder, results);
29969
+ }
29861
29970
  });
29862
29971
  return results;
29863
29972
  }
29973
+ function addPreviousHeading(result, headingOrder, results) {
29974
+ var index = findHeadingOrderIndex(headingOrder, result.node.ancestry);
29975
+ var prevHeading = headingOrder[index - 1];
29976
+ var prevResult = results.find(function(_ref144) {
29977
+ var node = _ref144.node;
29978
+ return _matchAncestry(node.ancestry, prevHeading.ancestry);
29979
+ });
29980
+ if (prevResult) {
29981
+ result.relatedNodes = [ prevResult.node ];
29982
+ }
29983
+ }
29864
29984
  function getHeadingOrderOutcome(result, headingOrder) {
29865
29985
  var _headingOrder$index$l, _headingOrder$index, _headingOrder$level, _headingOrder;
29866
29986
  var index = findHeadingOrderIndex(headingOrder, result.node.ancestry);
@@ -29876,14 +29996,14 @@
29876
29996
  }
29877
29997
  function getHeadingOrder(results) {
29878
29998
  results = _toConsumableArray(results);
29879
- results.sort(function(_ref143, _ref144) {
29880
- var nodeA = _ref143.node;
29881
- var nodeB = _ref144.node;
29999
+ results.sort(function(_ref145, _ref146) {
30000
+ var nodeA = _ref145.node;
30001
+ var nodeB = _ref146.node;
29882
30002
  return nodeA.ancestry.length - nodeB.ancestry.length;
29883
30003
  });
29884
30004
  var headingOrder = results.reduce(mergeHeadingOrder, []);
29885
- return headingOrder.filter(function(_ref145) {
29886
- var level = _ref145.level;
30005
+ return headingOrder.filter(function(_ref147) {
30006
+ var level = _ref147.level;
29887
30007
  return level !== -1;
29888
30008
  });
29889
30009
  }
@@ -30080,8 +30200,8 @@
30080
30200
  return _contains(vAncestor, vNode) && !_isInTabOrder(vNode);
30081
30201
  }
30082
30202
  function mapActualNodes(vNodes) {
30083
- return vNodes.map(function(_ref146) {
30084
- var actualNode = _ref146.actualNode;
30203
+ return vNodes.map(function(_ref148) {
30204
+ var actualNode = _ref148.actualNode;
30085
30205
  return actualNode;
30086
30206
  });
30087
30207
  }
@@ -30143,8 +30263,8 @@
30143
30263
  });
30144
30264
  return true;
30145
30265
  }
30146
- this.relatedNodes(closeNeighbors.map(function(_ref147) {
30147
- var actualNode = _ref147.actualNode;
30266
+ this.relatedNodes(closeNeighbors.map(function(_ref149) {
30267
+ var actualNode = _ref149.actualNode;
30148
30268
  return actualNode;
30149
30269
  }));
30150
30270
  if (!closeNeighbors.some(_isInTabOrder)) {
@@ -30164,54 +30284,61 @@
30164
30284
  function roundToSingleDecimal(num) {
30165
30285
  return Math.round(num * 10) / 10;
30166
30286
  }
30287
+ var USER_SCALABLE_ALLOWED = [ 'yes', 'device-width', 'device-height' ];
30288
+ var MAXIMUM_SCALE_ALLOWED = [ 'device-width', 'device-height' ];
30167
30289
  function metaViewportScaleEvaluate(node, options, virtualNode) {
30168
- var _ref148 = options || {}, _ref148$scaleMinimum = _ref148.scaleMinimum, scaleMinimum = _ref148$scaleMinimum === void 0 ? 2 : _ref148$scaleMinimum, _ref148$lowerBound = _ref148.lowerBound, lowerBound = _ref148$lowerBound === void 0 ? false : _ref148$lowerBound;
30290
+ var _ref150 = options || {}, _ref150$scaleMinimum = _ref150.scaleMinimum, scaleMinimum = _ref150$scaleMinimum === void 0 ? 2 : _ref150$scaleMinimum, _ref150$lowerBound = _ref150.lowerBound, lowerBound = _ref150$lowerBound === void 0 ? false : _ref150$lowerBound;
30169
30291
  var content = virtualNode.attr('content') || '';
30170
30292
  if (!content) {
30171
30293
  return true;
30172
30294
  }
30173
- var result = content.split(/[;,]/).reduce(function(out, item) {
30174
- var contentValue = item.trim();
30175
- if (!contentValue) {
30176
- return out;
30177
- }
30178
- var _contentValue$split = contentValue.split('='), _contentValue$split2 = _slicedToArray(_contentValue$split, 2), key = _contentValue$split2[0], value = _contentValue$split2[1];
30179
- if (!key || !value) {
30180
- return out;
30181
- }
30182
- var curatedKey = key.toLowerCase().trim();
30183
- var curatedValue = value.toLowerCase().trim();
30184
- if (curatedKey === 'maximum-scale' && curatedValue === 'yes') {
30185
- curatedValue = 1;
30186
- }
30187
- if (curatedKey === 'maximum-scale' && parseFloat(curatedValue) < 0) {
30188
- return out;
30295
+ var items = content.toLowerCase().split(/[;,]/);
30296
+ var _iterator30 = _createForOfIteratorHelper(items), _step30;
30297
+ try {
30298
+ for (_iterator30.s(); !(_step30 = _iterator30.n()).done; ) {
30299
+ var item = _step30.value;
30300
+ var _item$split$map = item.split('=').map(function(part) {
30301
+ return part.trim();
30302
+ }), _item$split$map2 = _slicedToArray(_item$split$map, 2), _key11 = _item$split$map2[0], value = _item$split$map2[1];
30303
+ if (!_key11 || !value) {
30304
+ continue;
30305
+ }
30306
+ var floatValue = parseFloat(value);
30307
+ if (_key11 === 'user-scalable') {
30308
+ if (lowerBound) {
30309
+ continue;
30310
+ }
30311
+ var invalidString = isNaN(floatValue) && !USER_SCALABLE_ALLOWED.includes(value);
30312
+ var invalidNumber = floatValue > -1 && floatValue < 1;
30313
+ if (invalidString || invalidNumber) {
30314
+ this.data('user-scalable='.concat(value));
30315
+ return false;
30316
+ }
30317
+ }
30318
+ if (_key11 === 'maximum-scale') {
30319
+ if (floatValue < 0) {
30320
+ continue;
30321
+ }
30322
+ var _invalidString = isNaN(floatValue) && !MAXIMUM_SCALE_ALLOWED.includes(value);
30323
+ if (lowerBound && (_invalidString || floatValue < lowerBound)) {
30324
+ continue;
30325
+ }
30326
+ if (_invalidString || floatValue < scaleMinimum) {
30327
+ this.data('maximum-scale='.concat(value));
30328
+ return false;
30329
+ }
30330
+ }
30189
30331
  }
30190
- out[curatedKey] = curatedValue;
30191
- return out;
30192
- }, {});
30193
- if (lowerBound && result['maximum-scale'] && parseFloat(result['maximum-scale']) < lowerBound) {
30194
- return true;
30195
- }
30196
- if (!lowerBound && result['user-scalable'] === 'no') {
30197
- this.data('user-scalable=no');
30198
- return false;
30199
- }
30200
- var userScalableAsFloat = parseFloat(result['user-scalable']);
30201
- if (!lowerBound && result['user-scalable'] && (userScalableAsFloat || userScalableAsFloat === 0) && userScalableAsFloat > -1 && userScalableAsFloat < 1) {
30202
- this.data('user-scalable');
30203
- return false;
30204
- }
30205
- if (result['maximum-scale'] && parseFloat(result['maximum-scale']) < scaleMinimum) {
30206
- this.data('maximum-scale');
30207
- return false;
30332
+ } catch (err) {
30333
+ _iterator30.e(err);
30334
+ } finally {
30335
+ _iterator30.f();
30208
30336
  }
30209
30337
  return true;
30210
30338
  }
30211
- var meta_viewport_scale_evaluate_default = metaViewportScaleEvaluate;
30212
30339
  function cssOrientationLockEvaluate(node, options, virtualNode, context) {
30213
- var _ref149 = context || {}, _ref149$cssom = _ref149.cssom, cssom = _ref149$cssom === void 0 ? void 0 : _ref149$cssom;
30214
- var _ref150 = options || {}, _ref150$degreeThresho = _ref150.degreeThreshold, degreeThreshold = _ref150$degreeThresho === void 0 ? 0 : _ref150$degreeThresho;
30340
+ var _ref151 = context || {}, _ref151$cssom = _ref151.cssom, cssom = _ref151$cssom === void 0 ? void 0 : _ref151$cssom;
30341
+ var _ref152 = options || {}, _ref152$degreeThresho = _ref152.degreeThreshold, degreeThreshold = _ref152$degreeThresho === void 0 ? 0 : _ref152$degreeThresho;
30215
30342
  if (!cssom || !cssom.length) {
30216
30343
  return void 0;
30217
30344
  }
@@ -30225,8 +30352,8 @@
30225
30352
  if (!orientationRules.length) {
30226
30353
  return 1;
30227
30354
  }
30228
- orientationRules.forEach(function(_ref151) {
30229
- var cssRules = _ref151.cssRules;
30355
+ orientationRules.forEach(function(_ref153) {
30356
+ var cssRules = _ref153.cssRules;
30230
30357
  Array.from(cssRules).forEach(function(cssRule) {
30231
30358
  var locked = getIsOrientationLocked(cssRule);
30232
30359
  if (locked && cssRule.selectorText.toUpperCase() !== 'HTML') {
@@ -30250,8 +30377,8 @@
30250
30377
  }
30251
30378
  return false;
30252
30379
  function groupCssomByDocument(cssObjectModel) {
30253
- return cssObjectModel.reduce(function(out, _ref152) {
30254
- var sheet = _ref152.sheet, root = _ref152.root, shadowId = _ref152.shadowId;
30380
+ return cssObjectModel.reduce(function(out, _ref154) {
30381
+ var sheet = _ref154.sheet, root = _ref154.root, shadowId = _ref154.shadowId;
30255
30382
  var key = shadowId ? shadowId : 'topDocument';
30256
30383
  if (!out[key]) {
30257
30384
  out[key] = {
@@ -30267,15 +30394,15 @@
30267
30394
  return out;
30268
30395
  }, {});
30269
30396
  }
30270
- function isMediaRuleWithOrientation(_ref153) {
30271
- var type2 = _ref153.type, cssText = _ref153.cssText;
30397
+ function isMediaRuleWithOrientation(_ref155) {
30398
+ var type2 = _ref155.type, cssText = _ref155.cssText;
30272
30399
  if (type2 !== 4) {
30273
30400
  return false;
30274
30401
  }
30275
30402
  return /orientation:\s*landscape/i.test(cssText) || /orientation:\s*portrait/i.test(cssText);
30276
30403
  }
30277
- function getIsOrientationLocked(_ref154) {
30278
- var selectorText = _ref154.selectorText, style = _ref154.style;
30404
+ function getIsOrientationLocked(_ref156) {
30405
+ var selectorText = _ref156.selectorText, style = _ref156.style;
30279
30406
  if (!selectorText || style.length <= 0) {
30280
30407
  return false;
30281
30408
  }
@@ -30330,7 +30457,7 @@
30330
30457
  }
30331
30458
  }
30332
30459
  function getAngleInDegrees(angleWithUnit) {
30333
- var _ref155 = angleWithUnit.match(/(deg|grad|rad|turn)/) || [], _ref156 = _slicedToArray(_ref155, 1), unit = _ref156[0];
30460
+ var _ref157 = angleWithUnit.match(/(deg|grad|rad|turn)/) || [], _ref158 = _slicedToArray(_ref157, 1), unit = _ref158[0];
30334
30461
  if (!unit) {
30335
30462
  return 0;
30336
30463
  }
@@ -30624,8 +30751,8 @@
30624
30751
  this.relatedNodes(relatedNodes);
30625
30752
  return true;
30626
30753
  }
30627
- function getInvalidSelector(vChild, nested, _ref157) {
30628
- var _ref157$validRoles = _ref157.validRoles, validRoles = _ref157$validRoles === void 0 ? [] : _ref157$validRoles, _ref157$validNodeName = _ref157.validNodeNames, validNodeNames = _ref157$validNodeName === void 0 ? [] : _ref157$validNodeName;
30754
+ function getInvalidSelector(vChild, nested, _ref159) {
30755
+ var _ref159$validRoles = _ref159.validRoles, validRoles = _ref159$validRoles === void 0 ? [] : _ref159$validRoles, _ref159$validNodeName = _ref159.validNodeNames, validNodeNames = _ref159$validNodeName === void 0 ? [] : _ref159$validNodeName;
30629
30756
  var _vChild$props = vChild.props, nodeName2 = _vChild$props.nodeName, nodeType = _vChild$props.nodeType, nodeValue = _vChild$props.nodeValue;
30630
30757
  var selector = nested ? 'div > ' : '';
30631
30758
  if (nodeType === 3 && nodeValue.trim() !== '') {
@@ -30835,19 +30962,19 @@
30835
30962
  return text.split(/\s+/).filter(Boolean);
30836
30963
  }
30837
30964
  var words = [];
30838
- var _iterator30 = _createForOfIteratorHelper(WORD_SEGMENTER.segment(text)), _step30;
30965
+ var _iterator31 = _createForOfIteratorHelper(WORD_SEGMENTER.segment(text)), _step31;
30839
30966
  try {
30840
- for (_iterator30.s(); !(_step30 = _iterator30.n()).done; ) {
30841
- var segment = _step30.value.segment;
30967
+ for (_iterator31.s(); !(_step31 = _iterator31.n()).done; ) {
30968
+ var segment = _step31.value.segment;
30842
30969
  var trimmed = segment.trim();
30843
30970
  if (trimmed) {
30844
30971
  words.push(trimmed);
30845
30972
  }
30846
30973
  }
30847
30974
  } catch (err) {
30848
- _iterator30.e(err);
30975
+ _iterator31.e(err);
30849
30976
  } finally {
30850
- _iterator30.f();
30977
+ _iterator31.f();
30851
30978
  }
30852
30979
  return words;
30853
30980
  }
@@ -31149,8 +31276,8 @@
31149
31276
  }
31150
31277
  var focusable_no_name_evaluate_default = focusableNoNameEvaluate;
31151
31278
  function focusableModalOpenEvaluate(node, options, virtualNode) {
31152
- var tabbableElements = virtualNode.tabbableElements.map(function(_ref158) {
31153
- var actualNode = _ref158.actualNode;
31279
+ var tabbableElements = virtualNode.tabbableElements.map(function(_ref160) {
31280
+ var actualNode = _ref160.actualNode;
31154
31281
  return actualNode;
31155
31282
  });
31156
31283
  if (!tabbableElements || !tabbableElements.length) {
@@ -31552,7 +31679,7 @@
31552
31679
  var bold = parseFloat(fontWeight) >= boldValue || fontWeight === 'bold';
31553
31680
  var ptSize = Math.ceil(fontSize * 72) / 96;
31554
31681
  var isSmallFont = bold && ptSize < boldTextPt || !bold && ptSize < largeTextPt;
31555
- var _ref159 = isSmallFont ? contrastRatio.normal : contrastRatio.large, expected = _ref159.expected, minThreshold = _ref159.minThreshold, maxThreshold = _ref159.maxThreshold;
31682
+ var _ref161 = isSmallFont ? contrastRatio.normal : contrastRatio.large, expected = _ref161.expected, minThreshold = _ref161.minThreshold, maxThreshold = _ref161.maxThreshold;
31556
31683
  var pseudoElm = findPseudoElement(virtualNode, {
31557
31684
  ignorePseudo: ignorePseudo,
31558
31685
  pseudoSizeThreshold: pseudoSizeThreshold
@@ -31651,8 +31778,8 @@
31651
31778
  }
31652
31779
  return isValid;
31653
31780
  }
31654
- function findPseudoElement(vNode, _ref160) {
31655
- var _ref160$pseudoSizeThr = _ref160.pseudoSizeThreshold, pseudoSizeThreshold = _ref160$pseudoSizeThr === void 0 ? .25 : _ref160$pseudoSizeThr, _ref160$ignorePseudo = _ref160.ignorePseudo, ignorePseudo = _ref160$ignorePseudo === void 0 ? false : _ref160$ignorePseudo;
31781
+ function findPseudoElement(vNode, _ref162) {
31782
+ var _ref162$pseudoSizeThr = _ref162.pseudoSizeThreshold, pseudoSizeThreshold = _ref162$pseudoSizeThr === void 0 ? .25 : _ref162$pseudoSizeThr, _ref162$ignorePseudo = _ref162.ignorePseudo, ignorePseudo = _ref162$ignorePseudo === void 0 ? false : _ref162$ignorePseudo;
31656
31783
  if (ignorePseudo) {
31657
31784
  return;
31658
31785
  }
@@ -31696,7 +31823,7 @@
31696
31823
  }
31697
31824
  function parseUnit(str) {
31698
31825
  var unitRegex = /^([0-9.]+)([a-z]+)$/i;
31699
- var _ref161 = str.match(unitRegex) || [], _ref162 = _slicedToArray(_ref161, 3), _ref162$ = _ref162[1], value = _ref162$ === void 0 ? '' : _ref162$, _ref162$2 = _ref162[2], unit = _ref162$2 === void 0 ? '' : _ref162$2;
31826
+ var _ref163 = str.match(unitRegex) || [], _ref164 = _slicedToArray(_ref163, 3), _ref164$ = _ref164[1], value = _ref164$ === void 0 ? '' : _ref164$, _ref164$2 = _ref164[2], unit = _ref164$2 === void 0 ? '' : _ref164$2;
31700
31827
  return {
31701
31828
  value: parseFloat(value),
31702
31829
  unit: unit.toLowerCase()
@@ -31885,10 +32012,10 @@
31885
32012
  var aria = /^aria-/;
31886
32013
  var skipAttrs = [ 'aria-errormessage' ];
31887
32014
  var preChecks = {
31888
- 'aria-controls': function ariaControls() {
32015
+ 'aria-controls': function ariaControls(validValue) {
31889
32016
  var _getAriaValue$value5;
31890
32017
  var hasPopup = ![ 'false', null ].includes((_getAriaValue$value5 = _getAriaValue(virtualNode, 'aria-haspopup').value) !== null && _getAriaValue$value5 !== void 0 ? _getAriaValue$value5 : null);
31891
- if (hasPopup) {
32018
+ if (hasPopup && !validValue) {
31892
32019
  needsReview = 'aria-controls="'.concat(_getAriaValue(virtualNode, 'aria-controls').value, '"');
31893
32020
  messageKey = 'controlsWithinPopup';
31894
32021
  }
@@ -32084,26 +32211,26 @@
32084
32211
  return true;
32085
32212
  }
32086
32213
  var ownedRoles = getOwnedRoles(virtualNode, required);
32087
- var unallowed = ownedRoles.filter(function(_ref163) {
32088
- var role = _ref163.role, vNode = _ref163.vNode;
32214
+ var unallowed = ownedRoles.filter(function(_ref165) {
32215
+ var role = _ref165.role, vNode = _ref165.vNode;
32089
32216
  return vNode.props.nodeType === 1 && !required.includes(role) && !isAllowedInContext(role, explicitRole2);
32090
32217
  });
32091
32218
  if (unallowed.length) {
32092
- this.relatedNodes(unallowed.map(function(_ref164) {
32093
- var vNode = _ref164.vNode;
32219
+ this.relatedNodes(unallowed.map(function(_ref166) {
32220
+ var vNode = _ref166.vNode;
32094
32221
  return vNode;
32095
32222
  }));
32096
32223
  var messageKey = 'unallowed';
32097
- var selectors = unallowed.map(function(_ref165) {
32098
- var vNode = _ref165.vNode, attr = _ref165.attr;
32224
+ var selectors = unallowed.map(function(_ref167) {
32225
+ var vNode = _ref167.vNode, attr = _ref167.attr;
32099
32226
  return getUnallowedSelector(vNode, attr);
32100
32227
  });
32101
32228
  if (_getAriaValue(virtualNode, 'aria-busy').value === 'true') {
32102
32229
  messageKey = 'aria-busy-fail';
32103
32230
  } else if (unallowed.every(isPresentationalConflict)) {
32104
32231
  messageKey = 'unallowedPresentational';
32105
- selectors = unallowed.map(function(_ref166) {
32106
- var attr = _ref166.attr;
32232
+ selectors = unallowed.map(function(_ref168) {
32233
+ var attr = _ref168.attr;
32107
32234
  return '['.concat(attr, ']');
32108
32235
  });
32109
32236
  }
@@ -32174,8 +32301,8 @@
32174
32301
  return !!context && context.includes(parentRole);
32175
32302
  }
32176
32303
  function hasRequiredChildren(required, ownedRoles) {
32177
- return ownedRoles.some(function(_ref167) {
32178
- var role = _ref167.role;
32304
+ return ownedRoles.some(function(_ref169) {
32305
+ var role = _ref169.role;
32179
32306
  return role && required.includes(role);
32180
32307
  });
32181
32308
  }
@@ -32184,8 +32311,8 @@
32184
32311
  return vNode.hasAttr(attr);
32185
32312
  });
32186
32313
  }
32187
- function isPresentationalConflict(_ref168) {
32188
- var vNode = _ref168.vNode, attr = _ref168.attr;
32314
+ function isPresentationalConflict(_ref170) {
32315
+ var vNode = _ref170.vNode, attr = _ref170.attr;
32189
32316
  return !!attr && !is_natively_focusable_default(vNode) && PRESENTATIONAL_ROLES.includes(get_explicit_role_default(vNode));
32190
32317
  }
32191
32318
  function getUnallowedSelector(vNode, attr) {
@@ -32210,8 +32337,8 @@
32210
32337
  }
32211
32338
  return nodeName2;
32212
32339
  }
32213
- function isContent(_ref169) {
32214
- var vNode = _ref169.vNode;
32340
+ function isContent(_ref171) {
32341
+ var vNode = _ref171.vNode;
32215
32342
  if (vNode.props.nodeType === 3) {
32216
32343
  return vNode.props.nodeValue.trim().length > 0;
32217
32344
  }
@@ -32435,7 +32562,7 @@
32435
32562
  }
32436
32563
  function ariaConditionalRowAttr(node) {
32437
32564
  var _invalidTableRowAttrs, _invalidTableRowAttrs2;
32438
- var _ref170 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, invalidTableRowAttrs = _ref170.invalidTableRowAttrs;
32565
+ var _ref172 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, invalidTableRowAttrs = _ref172.invalidTableRowAttrs;
32439
32566
  var virtualNode = arguments.length > 2 ? arguments[2] : undefined;
32440
32567
  var invalidAttrs = (_invalidTableRowAttrs = invalidTableRowAttrs === null || invalidTableRowAttrs === void 0 || (_invalidTableRowAttrs2 = invalidTableRowAttrs.filter) === null || _invalidTableRowAttrs2 === void 0 ? void 0 : _invalidTableRowAttrs2.call(invalidTableRowAttrs, function(invalidAttr) {
32441
32568
  return virtualNode.hasAttr(invalidAttr);
@@ -32567,18 +32694,18 @@
32567
32694
  if (Array.isArray(options[role])) {
32568
32695
  allowed = unique_array_default(options[role].concat(allowed));
32569
32696
  }
32570
- var _iterator31 = _createForOfIteratorHelper(virtualNode.attrNames), _step31;
32697
+ var _iterator32 = _createForOfIteratorHelper(virtualNode.attrNames), _step32;
32571
32698
  try {
32572
- for (_iterator31.s(); !(_step31 = _iterator31.n()).done; ) {
32573
- var _attrName = _step31.value;
32699
+ for (_iterator32.s(); !(_step32 = _iterator32.n()).done; ) {
32700
+ var _attrName = _step32.value;
32574
32701
  if (validate_attr_default(_attrName) && !allowed.includes(_attrName) && !ignoredAttrs(_attrName, virtualNode.attr(_attrName), virtualNode)) {
32575
32702
  invalid.push(_attrName);
32576
32703
  }
32577
32704
  }
32578
32705
  } catch (err) {
32579
- _iterator31.e(err);
32706
+ _iterator32.e(err);
32580
32707
  } finally {
32581
- _iterator31.f();
32708
+ _iterator32.f();
32582
32709
  }
32583
32710
  if (!invalid.length) {
32584
32711
  var caseSensitiveFailures = [];
@@ -32588,10 +32715,10 @@
32588
32715
  return values2;
32589
32716
  }, {});
32590
32717
  Object.assign(defaultValues, options.ariaFallbackValues || {});
32591
- var _iterator32 = _createForOfIteratorHelper(virtualNode.attrNames), _step32;
32718
+ var _iterator33 = _createForOfIteratorHelper(virtualNode.attrNames), _step33;
32592
32719
  try {
32593
- for (_iterator32.s(); !(_step32 = _iterator32.n()).done; ) {
32594
- var attrName = _step32.value;
32720
+ for (_iterator33.s(); !(_step33 = _iterator33.n()).done; ) {
32721
+ var attrName = _step33.value;
32595
32722
  if (!validate_attr_default(attrName)) {
32596
32723
  continue;
32597
32724
  }
@@ -32611,9 +32738,9 @@
32611
32738
  caseSensitiveFailures.push(values2);
32612
32739
  }
32613
32740
  } catch (err) {
32614
- _iterator32.e(err);
32741
+ _iterator33.e(err);
32615
32742
  } finally {
32616
- _iterator32.f();
32743
+ _iterator33.f();
32617
32744
  }
32618
32745
  if (caseSensitiveFailures.length) {
32619
32746
  this.data({
@@ -32666,18 +32793,18 @@
32666
32793
  var allowedAriaAttrs = elmSpec.allowedAriaAttrs;
32667
32794
  var globalAriaAttrs = get_global_aria_attrs_default();
32668
32795
  var invalid = [];
32669
- var _iterator33 = _createForOfIteratorHelper(virtualNode.attrNames), _step33;
32796
+ var _iterator34 = _createForOfIteratorHelper(virtualNode.attrNames), _step34;
32670
32797
  try {
32671
- for (_iterator33.s(); !(_step33 = _iterator33.n()).done; ) {
32672
- var attrName = _step33.value;
32798
+ for (_iterator34.s(); !(_step34 = _iterator34.n()).done; ) {
32799
+ var attrName = _step34.value;
32673
32800
  if (globalAriaAttrs.includes(attrName) && !allowedAriaAttrs.includes(attrName)) {
32674
32801
  invalid.push(attrName);
32675
32802
  }
32676
32803
  }
32677
32804
  } catch (err) {
32678
- _iterator33.e(err);
32805
+ _iterator34.e(err);
32679
32806
  } finally {
32680
- _iterator33.f();
32807
+ _iterator34.f();
32681
32808
  }
32682
32809
  if (!invalid.length) {
32683
32810
  return true;
@@ -32841,7 +32968,7 @@
32841
32968
  if (!role || [ 'none', 'presentation' ].includes(role)) {
32842
32969
  return true;
32843
32970
  }
32844
- var _ref171 = aria_roles_default[role] || {}, accessibleNameRequired = _ref171.accessibleNameRequired;
32971
+ var _ref173 = aria_roles_default[role] || {}, accessibleNameRequired = _ref173.accessibleNameRequired;
32845
32972
  if (accessibleNameRequired || _isFocusable(virtualNode)) {
32846
32973
  return true;
32847
32974
  }
@@ -33380,7 +33507,7 @@
33380
33507
  'listitem-evaluate': listitemEvaluate,
33381
33508
  'matches-definition-evaluate': matches_definition_evaluate_default,
33382
33509
  'meta-refresh-evaluate': metaRefreshEvaluate,
33383
- 'meta-viewport-scale-evaluate': meta_viewport_scale_evaluate_default,
33510
+ 'meta-viewport-scale-evaluate': metaViewportScaleEvaluate,
33384
33511
  'multiple-label-evaluate': multiple_label_evaluate_default,
33385
33512
  'nested-interactive-matches': nested_interactive_matches_default,
33386
33513
  'no-autoplay-audio-evaluate': no_autoplay_audio_evaluate_default,
@@ -34036,11 +34163,11 @@
34036
34163
  value: function _applyFailureSummaries(messages) {
34037
34164
  var keys = Object.keys(messages);
34038
34165
  for (var _i45 = 0; _i45 < keys.length; _i45++) {
34039
- var _key11 = keys[_i45];
34040
- if (!this.data.failureSummaries[_key11]) {
34041
- throw new Error('Locale provided for unknown failureMessage: "'.concat(_key11, '"'));
34166
+ var _key12 = keys[_i45];
34167
+ if (!this.data.failureSummaries[_key12]) {
34168
+ throw new Error('Locale provided for unknown failureMessage: "'.concat(_key12, '"'));
34042
34169
  }
34043
- this.data.failureSummaries[_key11] = mergeFailureMessage(this.data.failureSummaries[_key11], messages[_key11]);
34170
+ this.data.failureSummaries[_key12] = mergeFailureMessage(this.data.failureSummaries[_key12], messages[_key12]);
34044
34171
  }
34045
34172
  }
34046
34173
  }, {
@@ -34068,10 +34195,10 @@
34068
34195
  value: function setAllowedOrigins(allowedOrigins) {
34069
34196
  var defaultOrigin = getDefaultOrigin();
34070
34197
  this.allowedOrigins = [];
34071
- var _iterator34 = _createForOfIteratorHelper(allowedOrigins), _step34;
34198
+ var _iterator35 = _createForOfIteratorHelper(allowedOrigins), _step35;
34072
34199
  try {
34073
- for (_iterator34.s(); !(_step34 = _iterator34.n()).done; ) {
34074
- var origin = _step34.value;
34200
+ for (_iterator35.s(); !(_step35 = _iterator35.n()).done; ) {
34201
+ var origin = _step35.value;
34075
34202
  if (origin === constants_default.allOrigins) {
34076
34203
  this.allowedOrigins = [ '*' ];
34077
34204
  return;
@@ -34082,9 +34209,9 @@
34082
34209
  }
34083
34210
  }
34084
34211
  } catch (err) {
34085
- _iterator34.e(err);
34212
+ _iterator35.e(err);
34086
34213
  } finally {
34087
- _iterator34.f();
34214
+ _iterator35.f();
34088
34215
  }
34089
34216
  }
34090
34217
  }, {
@@ -34393,7 +34520,7 @@
34393
34520
  };
34394
34521
  }
34395
34522
  function createIncompleteErrorResult(rule, error) {
34396
- var errorNode = error.errorNode;
34523
+ var node = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : error.errorNode || new dq_element_default(document.documentElement);
34397
34524
  var serialError = _serializeError(error);
34398
34525
  var none = [ {
34399
34526
  id: 'error-occurred',
@@ -34401,7 +34528,6 @@
34401
34528
  data: serialError,
34402
34529
  relatedNodes: []
34403
34530
  } ];
34404
- var node = errorNode || new dq_element_default(document.documentElement);
34405
34531
  return Object.assign(new rule_result_default(rule), {
34406
34532
  error: serialError,
34407
34533
  result: constants_default.CANTTELL,
@@ -34413,8 +34539,8 @@
34413
34539
  } ]
34414
34540
  });
34415
34541
  }
34416
- function getHelpUrl(_ref172, ruleId, version) {
34417
- var brand = _ref172.brand, application = _ref172.application, lang = _ref172.lang;
34542
+ function getHelpUrl(_ref174, ruleId, version) {
34543
+ var brand = _ref174.brand, application = _ref174.application, lang = _ref174.lang;
34418
34544
  return constants_default.helpUrlBase + brand + '/' + (version || axe.version.substring(0, axe.version.lastIndexOf('.'))) + '/' + ruleId + '?application=' + encodeURIComponent(application) + (lang && lang !== 'en' ? '&lang=' + encodeURIComponent(lang) : '');
34419
34545
  }
34420
34546
  function setupGlobals(context) {
@@ -34631,7 +34757,17 @@
34631
34757
  size: {},
34632
34758
  flatTree: []
34633
34759
  };
34634
- var rawResults = rule.runSync(context, options);
34760
+ var ruleResult = rule.runSync(context, options);
34761
+ var rawResults;
34762
+ try {
34763
+ rawResults = rule.after(ruleResult, options);
34764
+ } catch (err2) {
34765
+ var _err2$errorNode;
34766
+ if (options.debug) {
34767
+ throw err2;
34768
+ }
34769
+ rawResults = createIncompleteErrorResult(rule, err2, (_err2$errorNode = err2.errorNode) !== null && _err2$errorNode !== void 0 ? _err2$errorNode : null);
34770
+ }
34635
34771
  _publishMetaData(rawResults);
34636
34772
  _finalizeRuleResult(rawResults);
34637
34773
  var results = aggregate_result_default([ rawResults ]);
@@ -34644,9 +34780,9 @@
34644
34780
  toolOptions: options
34645
34781
  });
34646
34782
  }
34647
- function normalizeRunParams(_ref173) {
34648
- var _ref175, _options$reporter, _axe$_audit2;
34649
- var _ref174 = _slicedToArray(_ref173, 3), context = _ref174[0], options = _ref174[1], callback = _ref174[2];
34783
+ function normalizeRunParams(_ref175) {
34784
+ var _ref177, _options$reporter, _axe$_audit2;
34785
+ var _ref176 = _slicedToArray(_ref175, 3), context = _ref176[0], options = _ref176[1], callback = _ref176[2];
34650
34786
  var typeErr = new TypeError('axe.run arguments are invalid');
34651
34787
  if (!_isContextSpec(context)) {
34652
34788
  if (callback !== void 0) {
@@ -34667,7 +34803,7 @@
34667
34803
  throw typeErr;
34668
34804
  }
34669
34805
  options = clone2(options);
34670
- options.reporter = (_ref175 = (_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 && _ref175 !== void 0 ? _ref175 : 'v1';
34806
+ options.reporter = (_ref177 = (_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 && _ref177 !== void 0 ? _ref177 : 'v1';
34671
34807
  return {
34672
34808
  context: context,
34673
34809
  options: options,
@@ -34676,8 +34812,8 @@
34676
34812
  }
34677
34813
  var noop2 = function noop2() {};
34678
34814
  function run4() {
34679
- for (var _len9 = arguments.length, args = new Array(_len9), _key12 = 0; _key12 < _len9; _key12++) {
34680
- args[_key12] = arguments[_key12];
34815
+ for (var _len9 = arguments.length, args = new Array(_len9), _key13 = 0; _key13 < _len9; _key13++) {
34816
+ args[_key13] = arguments[_key13];
34681
34817
  }
34682
34818
  setupGlobals(args[0]);
34683
34819
  var _normalizeRunParams = normalizeRunParams(args), context = _normalizeRunParams.context, options = _normalizeRunParams.options, _normalizeRunParams$c = _normalizeRunParams.callback, callback = _normalizeRunParams$c === void 0 ? noop2 : _normalizeRunParams$c;
@@ -34773,8 +34909,8 @@
34773
34909
  throw err2;
34774
34910
  }
34775
34911
  function runPartial() {
34776
- for (var _len0 = arguments.length, args = new Array(_len0), _key13 = 0; _key13 < _len0; _key13++) {
34777
- args[_key13] = arguments[_key13];
34912
+ for (var _len0 = arguments.length, args = new Array(_len0), _key14 = 0; _key14 < _len0; _key14++) {
34913
+ args[_key14] = arguments[_key14];
34778
34914
  }
34779
34915
  var _normalizeRunParams2 = normalizeRunParams(args), options = _normalizeRunParams2.options, context = _normalizeRunParams2.context;
34780
34916
  assert_default(axe._audit, 'Axe is not configured. Audit is missing.');
@@ -34794,8 +34930,8 @@
34794
34930
  performance_timer_default.auditEnd();
34795
34931
  }
34796
34932
  results = node_serializer_default.mapRawResults(results);
34797
- var frames = contextObj.frames.map(function(_ref176) {
34798
- var node = _ref176.node;
34933
+ var frames = contextObj.frames.map(function(_ref178) {
34934
+ var node = _ref178.node;
34799
34935
  return node_serializer_default.toSpec(node);
34800
34936
  });
34801
34937
  var environmentData;
@@ -34816,14 +34952,14 @@
34816
34952
  });
34817
34953
  }
34818
34954
  function finishRun(partialResults) {
34819
- var _ref178, _options$reporter2, _axe$_audit3;
34955
+ var _ref180, _options$reporter2, _axe$_audit3;
34820
34956
  var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
34821
34957
  options = clone2(options);
34822
- var _ref177 = partialResults.find(function(r) {
34958
+ var _ref179 = partialResults.find(function(r) {
34823
34959
  return r.environmentData;
34824
- }) || {}, environmentData = _ref177.environmentData;
34960
+ }) || {}, environmentData = _ref179.environmentData;
34825
34961
  _normalizeRunOptions(options);
34826
- options.reporter = (_ref178 = (_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 && _ref178 !== void 0 ? _ref178 : 'v1';
34962
+ options.reporter = (_ref180 = (_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 && _ref180 !== void 0 ? _ref180 : 'v1';
34827
34963
  setFrameSpec(partialResults);
34828
34964
  var results = merge_results_default(partialResults);
34829
34965
  results = axe._audit.after(results, options);
@@ -34835,10 +34971,10 @@
34835
34971
  }
34836
34972
  function setFrameSpec(partialResults) {
34837
34973
  var frameStack = [];
34838
- var _iterator35 = _createForOfIteratorHelper(partialResults), _step35;
34974
+ var _iterator36 = _createForOfIteratorHelper(partialResults), _step36;
34839
34975
  try {
34840
- for (_iterator35.s(); !(_step35 = _iterator35.n()).done; ) {
34841
- var partialResult = _step35.value;
34976
+ for (_iterator36.s(); !(_step36 = _iterator36.n()).done; ) {
34977
+ var partialResult = _step36.value;
34842
34978
  var frameSpec = frameStack.shift();
34843
34979
  if (!partialResult) {
34844
34980
  continue;
@@ -34848,13 +34984,13 @@
34848
34984
  frameStack.unshift.apply(frameStack, _toConsumableArray(frameSpecs));
34849
34985
  }
34850
34986
  } catch (err) {
34851
- _iterator35.e(err);
34987
+ _iterator36.e(err);
34852
34988
  } finally {
34853
- _iterator35.f();
34989
+ _iterator36.f();
34854
34990
  }
34855
34991
  }
34856
- function getMergedFrameSpecs(_ref179) {
34857
- var childFrameSpecs = _ref179.frames, parentFrameSpec = _ref179.frameSpec;
34992
+ function getMergedFrameSpecs(_ref181) {
34993
+ var childFrameSpecs = _ref181.frames, parentFrameSpec = _ref181.frameSpec;
34858
34994
  if (!parentFrameSpec) {
34859
34995
  return childFrameSpecs;
34860
34996
  }
@@ -37251,7 +37387,7 @@
37251
37387
  selector: 'th:not([role]), [role="rowheader"], [role="columnheader"]',
37252
37388
  tags: [ 'cat.name-role-value', 'best-practice' ],
37253
37389
  all: [],
37254
- any: [ 'has-visible-text' ],
37390
+ any: [ 'has-visible-text', 'presentational-role' ],
37255
37391
  none: []
37256
37392
  }, {
37257
37393
  id: 'focus-order-semantics',