govuk_publishing_components 44.4.1 → 44.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/govuk_publishing_components/analytics-ga4/ga4-core.js +1 -1
- data/app/assets/javascripts/govuk_publishing_components/components/govspeak.js +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_chart.scss +25 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/_govspeak-html-publication.scss +2 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/_govspeak.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_attachment.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_tables.scss +3 -3
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_typography.scss +3 -3
- data/app/models/govuk_publishing_components/component_wrapper_helper_options.rb +1 -0
- data/app/views/govuk_publishing_components/components/_chart.html.erb +95 -66
- data/app/views/govuk_publishing_components/components/_emergency_banner.html.erb +17 -17
- data/app/views/govuk_publishing_components/components/_error_alert.html.erb +8 -1
- data/app/views/govuk_publishing_components/components/_govspeak.html.erb +11 -11
- data/app/views/govuk_publishing_components/components/docs/chart.yml +92 -2
- data/app/views/govuk_publishing_components/components/docs/emergency_banner.yml +1 -0
- data/app/views/govuk_publishing_components/components/docs/error_alert.yml +1 -0
- data/app/views/govuk_publishing_components/components/docs/govspeak.yml +1 -0
- data/lib/govuk_publishing_components/presenters/component_wrapper_helper.rb +17 -0
- data/lib/govuk_publishing_components/version.rb +1 -1
- data/node_modules/axe-core/README.md +3 -3
- data/node_modules/axe-core/axe.d.ts +5 -1
- data/node_modules/axe-core/axe.js +317 -299
- data/node_modules/axe-core/axe.min.js +2 -2
- data/node_modules/axe-core/locales/README.md +3 -3
- data/node_modules/axe-core/locales/_template.json +14 -14
- data/node_modules/axe-core/package.json +2 -1
- data/node_modules/axe-core/sri-history.json +4 -0
- metadata +2 -2
@@ -1,4 +1,4 @@
|
|
1
|
-
/*! axe v4.10.
|
1
|
+
/*! axe v4.10.1
|
2
2
|
* Copyright (c) 2015 - 2024 Deque Systems, Inc.
|
3
3
|
*
|
4
4
|
* Your use of this Source Code Form is subject to the terms of the Mozilla Public
|
@@ -22,7 +22,7 @@
|
|
22
22
|
}, _typeof(o);
|
23
23
|
}
|
24
24
|
var axe = axe || {};
|
25
|
-
axe.version = '4.10.
|
25
|
+
axe.version = '4.10.1';
|
26
26
|
if (typeof define === 'function' && define.amd) {
|
27
27
|
define('axe-core', [], function() {
|
28
28
|
return axe;
|
@@ -149,9 +149,9 @@
|
|
149
149
|
}
|
150
150
|
var o, r, i = _objectWithoutPropertiesLoose(e, t);
|
151
151
|
if (Object.getOwnPropertySymbols) {
|
152
|
-
var
|
153
|
-
for (r = 0; r <
|
154
|
-
o =
|
152
|
+
var s = Object.getOwnPropertySymbols(e);
|
153
|
+
for (r = 0; r < s.length; r++) {
|
154
|
+
o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
|
155
155
|
}
|
156
156
|
}
|
157
157
|
return i;
|
@@ -163,7 +163,7 @@
|
|
163
163
|
var t = {};
|
164
164
|
for (var n in r) {
|
165
165
|
if ({}.hasOwnProperty.call(r, n)) {
|
166
|
-
if (e.
|
166
|
+
if (e.includes(n)) {
|
167
167
|
continue;
|
168
168
|
}
|
169
169
|
t[n] = r[n];
|
@@ -5284,8 +5284,8 @@
|
|
5284
5284
|
var createNonEnumerableProperty = require_create_non_enumerable_property();
|
5285
5285
|
var hasOwn2 = require_has_own_property();
|
5286
5286
|
var wrapConstructor = function wrapConstructor(NativeConstructor) {
|
5287
|
-
var
|
5288
|
-
if (this instanceof
|
5287
|
+
var _Wrapper = function Wrapper(a2, b2, c4) {
|
5288
|
+
if (this instanceof _Wrapper) {
|
5289
5289
|
switch (arguments.length) {
|
5290
5290
|
case 0:
|
5291
5291
|
return new NativeConstructor();
|
@@ -5300,8 +5300,8 @@
|
|
5300
5300
|
}
|
5301
5301
|
return apply(NativeConstructor, this, arguments);
|
5302
5302
|
};
|
5303
|
-
|
5304
|
-
return
|
5303
|
+
_Wrapper.prototype = NativeConstructor.prototype;
|
5304
|
+
return _Wrapper;
|
5305
5305
|
};
|
5306
5306
|
module.exports = function(options, source) {
|
5307
5307
|
var TARGET = options.target;
|
@@ -6663,6 +6663,7 @@
|
|
6663
6663
|
var constants = {
|
6664
6664
|
helpUrlBase: 'https://dequeuniversity.com/rules/',
|
6665
6665
|
gridSize: 200,
|
6666
|
+
selectorSimilarFilterLimit: 700,
|
6666
6667
|
results: [],
|
6667
6668
|
resultGroups: [],
|
6668
6669
|
resultGroupMap: {},
|
@@ -6847,7 +6848,7 @@
|
|
6847
6848
|
return get_scroll_state_default;
|
6848
6849
|
},
|
6849
6850
|
getSelector: function getSelector() {
|
6850
|
-
return
|
6851
|
+
return get_selector_default;
|
6851
6852
|
},
|
6852
6853
|
getSelectorData: function getSelectorData() {
|
6853
6854
|
return _getSelectorData;
|
@@ -7596,8 +7597,8 @@
|
|
7596
7597
|
} else {
|
7597
7598
|
selector = features;
|
7598
7599
|
}
|
7599
|
-
if (!similar) {
|
7600
|
-
similar =
|
7600
|
+
if (!similar || similar.length > constants_default.selectorSimilarFilterLimit) {
|
7601
|
+
similar = findSimilar(doc, selector);
|
7601
7602
|
} else {
|
7602
7603
|
similar = similar.filter(function(item) {
|
7603
7604
|
return element_matches_default(item, selector);
|
@@ -7612,21 +7613,26 @@
|
|
7612
7613
|
}
|
7613
7614
|
return ':root';
|
7614
7615
|
}
|
7615
|
-
function
|
7616
|
+
function getSelector(elm, options) {
|
7616
7617
|
return _getShadowSelector(generateSelector, elm, options);
|
7617
7618
|
}
|
7619
|
+
var get_selector_default = memoize_default(getSelector);
|
7620
|
+
var findSimilar = memoize_default(function(doc, selector) {
|
7621
|
+
return Array.from(doc.querySelectorAll(selector));
|
7622
|
+
});
|
7618
7623
|
function generateAncestry(node) {
|
7619
7624
|
var nodeName2 = node.nodeName.toLowerCase();
|
7620
|
-
var
|
7621
|
-
|
7622
|
-
return nodeName2;
|
7623
|
-
}
|
7625
|
+
var parentElement = node.parentElement;
|
7626
|
+
var parentNode = node.parentNode;
|
7624
7627
|
var nthChild = '';
|
7625
|
-
if (nodeName2 !== 'head' && nodeName2 !== 'body' &&
|
7626
|
-
var index = Array.prototype.indexOf.call(
|
7628
|
+
if (nodeName2 !== 'head' && nodeName2 !== 'body' && parentNode.children.length > 1) {
|
7629
|
+
var index = Array.prototype.indexOf.call(parentNode.children, node) + 1;
|
7627
7630
|
nthChild = ':nth-child('.concat(index, ')');
|
7628
7631
|
}
|
7629
|
-
|
7632
|
+
if (!parentElement) {
|
7633
|
+
return nodeName2 + nthChild;
|
7634
|
+
}
|
7635
|
+
return generateAncestry(parentElement) + ' > ' + nodeName2 + nthChild;
|
7630
7636
|
}
|
7631
7637
|
function _getAncestry(elm, options) {
|
7632
7638
|
return _getShadowSelector(generateAncestry, elm, options);
|
@@ -7790,7 +7796,7 @@
|
|
7790
7796
|
});
|
7791
7797
|
DqElement.prototype = {
|
7792
7798
|
get selector() {
|
7793
|
-
return this.spec.selector || [
|
7799
|
+
return this.spec.selector || [ get_selector_default(this.element, this._options) ];
|
7794
7800
|
},
|
7795
7801
|
get ancestry() {
|
7796
7802
|
return this.spec.ancestry || [ _getAncestry(this.element) ];
|
@@ -8663,7 +8669,7 @@
|
|
8663
8669
|
function err(message, node) {
|
8664
8670
|
var selector;
|
8665
8671
|
if (axe._tree) {
|
8666
|
-
selector =
|
8672
|
+
selector = get_selector_default(node);
|
8667
8673
|
}
|
8668
8674
|
return new Error(message + ': ' + (selector || node));
|
8669
8675
|
}
|
@@ -11738,7 +11744,7 @@
|
|
11738
11744
|
},
|
11739
11745
|
form: {
|
11740
11746
|
contentTypes: [ 'flow' ],
|
11741
|
-
allowedRoles: [ 'search', 'none', 'presentation' ]
|
11747
|
+
allowedRoles: [ 'form', 'search', 'none', 'presentation' ]
|
11742
11748
|
},
|
11743
11749
|
h1: {
|
11744
11750
|
contentTypes: [ 'heading', 'flow' ],
|
@@ -13299,13 +13305,11 @@
|
|
13299
13305
|
button: ''
|
13300
13306
|
};
|
13301
13307
|
var nativeTextMethods = {
|
13302
|
-
valueText: function valueText(
|
13303
|
-
|
13304
|
-
return actualNode.value || '';
|
13308
|
+
valueText: function valueText(vNode) {
|
13309
|
+
return vNode.props.value || '';
|
13305
13310
|
},
|
13306
|
-
buttonDefaultText: function buttonDefaultText(
|
13307
|
-
|
13308
|
-
return defaultButtonValues[actualNode.type] || '';
|
13311
|
+
buttonDefaultText: function buttonDefaultText(vNode) {
|
13312
|
+
return defaultButtonValues[vNode.props.type] || '';
|
13309
13313
|
},
|
13310
13314
|
tableCaptionText: descendantText.bind(null, 'caption'),
|
13311
13315
|
figureText: descendantText.bind(null, 'figcaption'),
|
@@ -13324,8 +13328,8 @@
|
|
13324
13328
|
function attrText(attr, vNode) {
|
13325
13329
|
return vNode.attr(attr) || '';
|
13326
13330
|
}
|
13327
|
-
function descendantText(nodeName2,
|
13328
|
-
var actualNode =
|
13331
|
+
function descendantText(nodeName2, _ref35, context) {
|
13332
|
+
var actualNode = _ref35.actualNode;
|
13329
13333
|
nodeName2 = nodeName2.toLowerCase();
|
13330
13334
|
var nodeNames2 = [ nodeName2, actualNode.nodeName.toLowerCase() ].join(',');
|
13331
13335
|
var candidate = actualNode.querySelector(nodeNames2);
|
@@ -13372,7 +13376,7 @@
|
|
13372
13376
|
return /[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC38]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/g;
|
13373
13377
|
}
|
13374
13378
|
var emoji_regex_default = function emoji_regex_default() {
|
13375
|
-
return /[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC2\uDECE-\uDEDB\uDEE0-\uDEE8]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;
|
13379
|
+
return /[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE89\uDE8F-\uDEC2\uDEC6\uDECE-\uDEDC\uDEDF-\uDEE9]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;
|
13376
13380
|
};
|
13377
13381
|
function hasUnicode(str, options) {
|
13378
13382
|
var emoji = options.emoji, nonBmp = options.nonBmp, punctuations = options.punctuations;
|
@@ -13593,7 +13597,7 @@
|
|
13593
13597
|
locations: [ 'billing', 'shipping' ]
|
13594
13598
|
};
|
13595
13599
|
function isValidAutocomplete(autocompleteValue) {
|
13596
|
-
var
|
13600
|
+
var _ref36 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, _ref36$looseTyped = _ref36.looseTyped, looseTyped = _ref36$looseTyped === void 0 ? false : _ref36$looseTyped, _ref36$stateTerms = _ref36.stateTerms, stateTerms = _ref36$stateTerms === void 0 ? [] : _ref36$stateTerms, _ref36$locations = _ref36.locations, locations = _ref36$locations === void 0 ? [] : _ref36$locations, _ref36$qualifiers = _ref36.qualifiers, qualifiers = _ref36$qualifiers === void 0 ? [] : _ref36$qualifiers, _ref36$standaloneTerm = _ref36.standaloneTerms, standaloneTerms = _ref36$standaloneTerm === void 0 ? [] : _ref36$standaloneTerm, _ref36$qualifiedTerms = _ref36.qualifiedTerms, qualifiedTerms = _ref36$qualifiedTerms === void 0 ? [] : _ref36$qualifiedTerms, _ref36$ignoredValues = _ref36.ignoredValues, ignoredValues = _ref36$ignoredValues === void 0 ? [] : _ref36$ignoredValues;
|
13597
13601
|
autocompleteValue = autocompleteValue.toLowerCase().trim();
|
13598
13602
|
stateTerms = stateTerms.concat(_autocomplete.stateTerms);
|
13599
13603
|
if (stateTerms.includes(autocompleteValue) || autocompleteValue === '') {
|
@@ -13861,8 +13865,8 @@
|
|
13861
13865
|
if (hiddenTextElms.includes(elm.props.nodeName)) {
|
13862
13866
|
return false;
|
13863
13867
|
}
|
13864
|
-
return elm.children.some(function(
|
13865
|
-
var props =
|
13868
|
+
return elm.children.some(function(_ref37) {
|
13869
|
+
var props = _ref37.props;
|
13866
13870
|
return props.nodeType === 3 && props.nodeValue.trim();
|
13867
13871
|
});
|
13868
13872
|
}
|
@@ -14155,7 +14159,7 @@
|
|
14155
14159
|
return import_from2['default'];
|
14156
14160
|
},
|
14157
14161
|
Colorjs: function Colorjs() {
|
14158
|
-
return
|
14162
|
+
return _Color;
|
14159
14163
|
},
|
14160
14164
|
CssSelectorParser: function CssSelectorParser() {
|
14161
14165
|
return import_css_selector_parser2.CssSelectorParser;
|
@@ -14585,15 +14589,15 @@
|
|
14585
14589
|
}
|
14586
14590
|
}
|
14587
14591
|
var \u03b5$4 = 75e-6;
|
14588
|
-
var
|
14592
|
+
var _ColorSpace2 = (_Class_brand = new WeakSet(), _path = new WeakMap(), function() {
|
14589
14593
|
function _ColorSpace(options) {
|
14590
|
-
var _options$coords,
|
14594
|
+
var _options$coords, _ref38, _options$white, _options$formats, _this$formats$functio, _this$formats, _this$formats2;
|
14591
14595
|
_classCallCheck(this, _ColorSpace);
|
14592
14596
|
_classPrivateMethodInitSpec(this, _Class_brand);
|
14593
14597
|
_classPrivateFieldInitSpec(this, _path, void 0);
|
14594
14598
|
this.id = options.id;
|
14595
14599
|
this.name = options.name;
|
14596
|
-
this.base = options.base ?
|
14600
|
+
this.base = options.base ? _ColorSpace2.get(options.base) : null;
|
14597
14601
|
this.aliases = options.aliases;
|
14598
14602
|
if (this.base) {
|
14599
14603
|
this.fromBase = options.fromBase;
|
@@ -14601,7 +14605,7 @@
|
|
14601
14605
|
}
|
14602
14606
|
var _coords = (_options$coords = options.coords) !== null && _options$coords !== void 0 ? _options$coords : this.base.coords;
|
14603
14607
|
this.coords = _coords;
|
14604
|
-
var white2 = (
|
14608
|
+
var white2 = (_ref38 = (_options$white = options.white) !== null && _options$white !== void 0 ? _options$white : this.base.white) !== null && _ref38 !== void 0 ? _ref38 : 'D65';
|
14605
14609
|
this.white = getWhite(white2);
|
14606
14610
|
this.formats = (_options$formats = options.formats) !== null && _options$formats !== void 0 ? _options$formats : {};
|
14607
14611
|
for (var name in this.formats) {
|
@@ -14626,7 +14630,7 @@
|
|
14626
14630
|
return _createClass(_ColorSpace, [ {
|
14627
14631
|
key: 'inGamut',
|
14628
14632
|
value: function inGamut(coords) {
|
14629
|
-
var
|
14633
|
+
var _ref39 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, _ref39$epsilon = _ref39.epsilon, epsilon = _ref39$epsilon === void 0 ? \u03b5$4 : _ref39$epsilon;
|
14630
14634
|
if (this.isPolar) {
|
14631
14635
|
coords = this.toBase(coords);
|
14632
14636
|
return this.base.inGamut(coords, {
|
@@ -14685,11 +14689,11 @@
|
|
14685
14689
|
key: 'to',
|
14686
14690
|
value: function to(space, coords) {
|
14687
14691
|
if (arguments.length === 1) {
|
14688
|
-
var
|
14689
|
-
space =
|
14690
|
-
coords =
|
14692
|
+
var _ref40 = [ space.space, space.coords ];
|
14693
|
+
space = _ref40[0];
|
14694
|
+
coords = _ref40[1];
|
14691
14695
|
}
|
14692
|
-
space =
|
14696
|
+
space = _ColorSpace2.get(space);
|
14693
14697
|
if (this === space) {
|
14694
14698
|
return coords;
|
14695
14699
|
}
|
@@ -14722,11 +14726,11 @@
|
|
14722
14726
|
key: 'from',
|
14723
14727
|
value: function from(space, coords) {
|
14724
14728
|
if (arguments.length === 1) {
|
14725
|
-
var
|
14726
|
-
space =
|
14727
|
-
coords =
|
14729
|
+
var _ref41 = [ space.space, space.coords ];
|
14730
|
+
space = _ref41[0];
|
14731
|
+
coords = _ref41[1];
|
14728
14732
|
}
|
14729
|
-
space =
|
14733
|
+
space = _ColorSpace2.get(space);
|
14730
14734
|
return space.to(this, coords);
|
14731
14735
|
}
|
14732
14736
|
}, {
|
@@ -14749,7 +14753,7 @@
|
|
14749
14753
|
} ], [ {
|
14750
14754
|
key: 'all',
|
14751
14755
|
get: function get() {
|
14752
|
-
return _toConsumableArray(new Set(Object.values(
|
14756
|
+
return _toConsumableArray(new Set(Object.values(_ColorSpace2.registry)));
|
14753
14757
|
}
|
14754
14758
|
}, {
|
14755
14759
|
key: 'register',
|
@@ -14781,12 +14785,12 @@
|
|
14781
14785
|
}, {
|
14782
14786
|
key: 'get',
|
14783
14787
|
value: function get(space) {
|
14784
|
-
if (!space || space instanceof
|
14788
|
+
if (!space || space instanceof _ColorSpace2) {
|
14785
14789
|
return space;
|
14786
14790
|
}
|
14787
14791
|
var argType = type(space);
|
14788
14792
|
if (argType === 'string') {
|
14789
|
-
var ret =
|
14793
|
+
var ret = _ColorSpace2.registry[space.toLowerCase()];
|
14790
14794
|
if (!ret) {
|
14791
14795
|
throw new TypeError('No color space found with id = "'.concat(space, '"'));
|
14792
14796
|
}
|
@@ -14796,7 +14800,7 @@
|
|
14796
14800
|
alternatives[_key2 - 1] = arguments[_key2];
|
14797
14801
|
}
|
14798
14802
|
if (alternatives.length) {
|
14799
|
-
return
|
14803
|
+
return _ColorSpace2.get.apply(_ColorSpace2, alternatives);
|
14800
14804
|
}
|
14801
14805
|
throw new TypeError(''.concat(space, ' is not a valid color space'));
|
14802
14806
|
}
|
@@ -14816,14 +14820,14 @@
|
|
14816
14820
|
coord = ref;
|
14817
14821
|
}
|
14818
14822
|
} else if (Array.isArray(ref)) {
|
14819
|
-
var
|
14820
|
-
space =
|
14821
|
-
coord =
|
14823
|
+
var _ref42 = _slicedToArray(ref, 2);
|
14824
|
+
space = _ref42[0];
|
14825
|
+
coord = _ref42[1];
|
14822
14826
|
} else {
|
14823
14827
|
space = ref.space;
|
14824
14828
|
coord = ref.coordId;
|
14825
14829
|
}
|
14826
|
-
space =
|
14830
|
+
space = _ColorSpace2.get(space);
|
14827
14831
|
if (!space) {
|
14828
14832
|
space = workingSpace;
|
14829
14833
|
}
|
@@ -14841,7 +14845,7 @@
|
|
14841
14845
|
}, meta[1]);
|
14842
14846
|
}
|
14843
14847
|
}
|
14844
|
-
space =
|
14848
|
+
space = _ColorSpace2.get(space);
|
14845
14849
|
var normalizedCoord = coord.toLowerCase();
|
14846
14850
|
var i = 0;
|
14847
14851
|
for (var id in space.coords) {
|
@@ -14865,8 +14869,8 @@
|
|
14865
14869
|
format.type || (format.type = 'function');
|
14866
14870
|
format.name || (format.name = 'color');
|
14867
14871
|
format.coordGrammar = parseCoordGrammar(format.coords);
|
14868
|
-
var coordFormats = Object.entries(this.coords).map(function(
|
14869
|
-
var
|
14872
|
+
var coordFormats = Object.entries(this.coords).map(function(_ref150, i) {
|
14873
|
+
var _ref151 = _slicedToArray(_ref150, 2), id = _ref151[0], coordMeta = _ref151[1];
|
14870
14874
|
var outputType = format.coordGrammar[i][0];
|
14871
14875
|
var fromRange = coordMeta.range || coordMeta.refRange;
|
14872
14876
|
var toRange = outputType.range, suffix = '';
|
@@ -14905,7 +14909,7 @@
|
|
14905
14909
|
}
|
14906
14910
|
return ret;
|
14907
14911
|
}
|
14908
|
-
var ColorSpace =
|
14912
|
+
var ColorSpace = _ColorSpace2;
|
14909
14913
|
__publicField(ColorSpace, 'registry', {});
|
14910
14914
|
__publicField(ColorSpace, 'DEFAULT_FORMAT', {
|
14911
14915
|
type: 'functions',
|
@@ -14933,7 +14937,7 @@
|
|
14933
14937
|
},
|
14934
14938
|
aliases: [ 'xyz' ]
|
14935
14939
|
});
|
14936
|
-
var RGBColorSpace = function(
|
14940
|
+
var RGBColorSpace = function(_ColorSpace3) {
|
14937
14941
|
function RGBColorSpace(options) {
|
14938
14942
|
var _options$referred;
|
14939
14943
|
var _this;
|
@@ -14974,7 +14978,7 @@
|
|
14974
14978
|
(_options$referred = options.referred) !== null && _options$referred !== void 0 ? _options$referred : options.referred = 'display';
|
14975
14979
|
return _this = _callSuper(this, RGBColorSpace, [ options ]);
|
14976
14980
|
}
|
14977
|
-
_inherits(RGBColorSpace,
|
14981
|
+
_inherits(RGBColorSpace, _ColorSpace3);
|
14978
14982
|
return _createClass(RGBColorSpace);
|
14979
14983
|
}(ColorSpace);
|
14980
14984
|
function parse2(str) {
|
@@ -15048,9 +15052,9 @@
|
|
15048
15052
|
}
|
15049
15053
|
var coords = env.parsed.args;
|
15050
15054
|
if (format.coordGrammar) {
|
15051
|
-
Object.entries(space.coords).forEach(function(
|
15055
|
+
Object.entries(space.coords).forEach(function(_ref43, i) {
|
15052
15056
|
var _coords$i;
|
15053
|
-
var
|
15057
|
+
var _ref44 = _slicedToArray(_ref43, 2), id = _ref44[0], coordMeta = _ref44[1];
|
15054
15058
|
var coordGrammar2 = format.coordGrammar[i];
|
15055
15059
|
var providedType = (_coords$i = coords[i]) === null || _coords$i === void 0 ? void 0 : _coords$i.type;
|
15056
15060
|
coordGrammar2 = coordGrammar2.find(function(c4) {
|
@@ -15314,7 +15318,7 @@
|
|
15314
15318
|
var r2d = 180 / \u03c0$1;
|
15315
15319
|
var d2r$1 = \u03c0$1 / 180;
|
15316
15320
|
function deltaE2000(color, sample) {
|
15317
|
-
var
|
15321
|
+
var _ref45 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}, _ref45$kL = _ref45.kL, kL = _ref45$kL === void 0 ? 1 : _ref45$kL, _ref45$kC = _ref45.kC, kC = _ref45$kC === void 0 ? 1 : _ref45$kC, _ref45$kH = _ref45.kH, kH = _ref45$kH === void 0 ? 1 : _ref45$kH;
|
15318
15322
|
var _lab$from = lab.from(color), _lab$from2 = _slicedToArray(_lab$from, 3), L1 = _lab$from2[0], a1 = _lab$from2[1], b1 = _lab$from2[2];
|
15319
15323
|
var C1 = lch.from(lab, [ L1, a1, b1 ])[1];
|
15320
15324
|
var _lab$from3 = lab.from(sample), _lab$from4 = _slicedToArray(_lab$from3, 3), L2 = _lab$from4[0], a2 = _lab$from4[1], b2 = _lab$from4[2];
|
@@ -15394,7 +15398,7 @@
|
|
15394
15398
|
var \u03b5$2 = 75e-6;
|
15395
15399
|
function inGamut(color) {
|
15396
15400
|
var space = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : color.space;
|
15397
|
-
var
|
15401
|
+
var _ref46 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}, _ref46$epsilon = _ref46.epsilon, epsilon = _ref46$epsilon === void 0 ? \u03b5$2 : _ref46$epsilon;
|
15398
15402
|
color = getColor(color);
|
15399
15403
|
space = ColorSpace.get(space);
|
15400
15404
|
var coords = color.coords;
|
@@ -15413,7 +15417,7 @@
|
|
15413
15417
|
};
|
15414
15418
|
}
|
15415
15419
|
function toGamut(color) {
|
15416
|
-
var
|
15420
|
+
var _ref47 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, _ref47$method = _ref47.method, method = _ref47$method === void 0 ? defaults.gamut_mapping : _ref47$method, _ref47$space = _ref47.space, space = _ref47$space === void 0 ? color.space : _ref47$space;
|
15417
15421
|
if (isString(arguments[1])) {
|
15418
15422
|
space = arguments[1];
|
15419
15423
|
}
|
@@ -15483,7 +15487,7 @@
|
|
15483
15487
|
}
|
15484
15488
|
toGamut.returns = 'color';
|
15485
15489
|
function to(color, space) {
|
15486
|
-
var
|
15490
|
+
var _ref48 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}, inGamut2 = _ref48.inGamut;
|
15487
15491
|
color = getColor(color);
|
15488
15492
|
space = ColorSpace.get(space);
|
15489
15493
|
var coords = space.from(color);
|
@@ -15499,13 +15503,13 @@
|
|
15499
15503
|
}
|
15500
15504
|
to.returns = 'color';
|
15501
15505
|
function serialize(color) {
|
15502
|
-
var
|
15503
|
-
var
|
15504
|
-
var
|
15506
|
+
var _ref50, _color$space$getForma;
|
15507
|
+
var _ref49 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
15508
|
+
var _ref49$precision = _ref49.precision, precision = _ref49$precision === void 0 ? defaults.precision : _ref49$precision, _ref49$format = _ref49.format, format = _ref49$format === void 0 ? 'default' : _ref49$format, _ref49$inGamut = _ref49.inGamut, inGamut$1 = _ref49$inGamut === void 0 ? true : _ref49$inGamut, customOptions = _objectWithoutProperties(_ref49, _excluded9);
|
15505
15509
|
var ret;
|
15506
15510
|
color = getColor(color);
|
15507
15511
|
var formatId = format;
|
15508
|
-
format = (
|
15512
|
+
format = (_ref50 = (_color$space$getForma = color.space.getFormat(format)) !== null && _color$space$getForma !== void 0 ? _color$space$getForma : color.space.getFormat('default')) !== null && _ref50 !== void 0 ? _ref50 : ColorSpace.DEFAULT_FORMAT;
|
15509
15513
|
inGamut$1 || (inGamut$1 = format.toGamut);
|
15510
15514
|
var coords = color.coords;
|
15511
15515
|
coords = coords.map(function(c4) {
|
@@ -15824,7 +15828,7 @@
|
|
15824
15828
|
};
|
15825
15829
|
},
|
15826
15830
|
serialize: function serialize(coords, alpha) {
|
15827
|
-
var
|
15831
|
+
var _ref51 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}, _ref51$collapse = _ref51.collapse, collapse = _ref51$collapse === void 0 ? true : _ref51$collapse;
|
15828
15832
|
if (alpha < 1) {
|
15829
15833
|
coords.push(alpha);
|
15830
15834
|
}
|
@@ -15899,8 +15903,8 @@
|
|
15899
15903
|
}
|
15900
15904
|
function _display(color) {
|
15901
15905
|
var _CSS2;
|
15902
|
-
var
|
15903
|
-
var
|
15906
|
+
var _ref52 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
15907
|
+
var _ref52$space = _ref52.space, space = _ref52$space === void 0 ? defaults.display_space : _ref52$space, options = _objectWithoutProperties(_ref52, _excluded10);
|
15904
15908
|
var ret = serialize(color, options);
|
15905
15909
|
if (typeof CSS === 'undefined' || (_CSS2 = CSS) !== null && _CSS2 !== void 0 && _CSS2.supports('color', ret) || !defaults.display_space) {
|
15906
15910
|
ret = new String(ret);
|
@@ -15960,9 +15964,9 @@
|
|
15960
15964
|
var Y1 = Math.max(getLuminance(color1), 0);
|
15961
15965
|
var Y2 = Math.max(getLuminance(color2), 0);
|
15962
15966
|
if (Y2 > Y1) {
|
15963
|
-
var
|
15964
|
-
Y1 =
|
15965
|
-
Y2 =
|
15967
|
+
var _ref53 = [ Y2, Y1 ];
|
15968
|
+
Y1 = _ref53[0];
|
15969
|
+
Y2 = _ref53[1];
|
15966
15970
|
}
|
15967
15971
|
return (Y1 + .05) / (Y2 + .05);
|
15968
15972
|
}
|
@@ -16036,9 +16040,9 @@
|
|
16036
16040
|
var Y1 = Math.max(getLuminance(color1), 0);
|
16037
16041
|
var Y2 = Math.max(getLuminance(color2), 0);
|
16038
16042
|
if (Y2 > Y1) {
|
16039
|
-
var
|
16040
|
-
Y1 =
|
16041
|
-
Y2 =
|
16043
|
+
var _ref54 = [ Y2, Y1 ];
|
16044
|
+
Y1 = _ref54[0];
|
16045
|
+
Y2 = _ref54[1];
|
16042
16046
|
}
|
16043
16047
|
var denom = Y1 + Y2;
|
16044
16048
|
return denom === 0 ? 0 : (Y1 - Y2) / denom;
|
@@ -16050,9 +16054,9 @@
|
|
16050
16054
|
var Y1 = Math.max(getLuminance(color1), 0);
|
16051
16055
|
var Y2 = Math.max(getLuminance(color2), 0);
|
16052
16056
|
if (Y2 > Y1) {
|
16053
|
-
var
|
16054
|
-
Y1 =
|
16055
|
-
Y2 =
|
16057
|
+
var _ref55 = [ Y2, Y1 ];
|
16058
|
+
Y1 = _ref55[0];
|
16059
|
+
Y2 = _ref55[1];
|
16056
16060
|
}
|
16057
16061
|
return Y2 === 0 ? max : (Y1 - Y2) / Y2;
|
16058
16062
|
}
|
@@ -16185,7 +16189,7 @@
|
|
16185
16189
|
var \u03c0 = Math.PI;
|
16186
16190
|
var d2r = \u03c0 / 180;
|
16187
16191
|
function deltaECMC(color, sample) {
|
16188
|
-
var
|
16192
|
+
var _ref56 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}, _ref56$l = _ref56.l, l = _ref56$l === void 0 ? 2 : _ref56$l, _ref56$c = _ref56.c, c4 = _ref56$c === void 0 ? 1 : _ref56$c;
|
16189
16193
|
var _lab$from5 = lab.from(color), _lab$from6 = _slicedToArray(_lab$from5, 3), L1 = _lab$from6[0], a1 = _lab$from6[1], b1 = _lab$from6[2];
|
16190
16194
|
var _lch$from = lch.from(lab, [ L1, a1, b1 ]), _lch$from2 = _slicedToArray(_lch$from, 3), C1 = _lch$from2[1], H1 = _lch$from2[2];
|
16191
16195
|
var _lab$from7 = lab.from(sample), _lab$from8 = _slicedToArray(_lab$from7, 3), L2 = _lab$from8[0], a2 = _lab$from8[1], b2 = _lab$from8[2];
|
@@ -16533,13 +16537,13 @@
|
|
16533
16537
|
function mix(c12, c22) {
|
16534
16538
|
var p2 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : .5;
|
16535
16539
|
var o = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
|
16536
|
-
var
|
16537
|
-
c12 =
|
16538
|
-
c22 =
|
16540
|
+
var _ref57 = [ getColor(c12), getColor(c22) ];
|
16541
|
+
c12 = _ref57[0];
|
16542
|
+
c22 = _ref57[1];
|
16539
16543
|
if (type(p2) === 'object') {
|
16540
|
-
var
|
16541
|
-
p2 =
|
16542
|
-
o =
|
16544
|
+
var _ref58 = [ .5, p2 ];
|
16545
|
+
p2 = _ref58[0];
|
16546
|
+
o = _ref58[1];
|
16543
16547
|
}
|
16544
16548
|
var _o3 = o, space = _o3.space, outputSpace = _o3.outputSpace, premultiplied = _o3.premultiplied;
|
16545
16549
|
var r = range(c12, c22, {
|
@@ -16561,9 +16565,9 @@
|
|
16561
16565
|
}
|
16562
16566
|
var _options2 = options, maxDeltaE = _options2.maxDeltaE, deltaEMethod = _options2.deltaEMethod, _options2$steps = _options2.steps, steps2 = _options2$steps === void 0 ? 2 : _options2$steps, _options2$maxSteps = _options2.maxSteps, maxSteps = _options2$maxSteps === void 0 ? 1e3 : _options2$maxSteps, rangeOptions = _objectWithoutProperties(_options2, _excluded13);
|
16563
16567
|
if (!colorRange) {
|
16564
|
-
var
|
16565
|
-
c12 =
|
16566
|
-
c22 =
|
16568
|
+
var _ref59 = [ getColor(c12), getColor(c22) ];
|
16569
|
+
c12 = _ref59[0];
|
16570
|
+
c22 = _ref59[1];
|
16567
16571
|
colorRange = range(c12, c22, rangeOptions);
|
16568
16572
|
}
|
16569
16573
|
var totalDelta = deltaE(c12, c22);
|
@@ -16646,7 +16650,7 @@
|
|
16646
16650
|
if (space.coords.h && space.coords.h.type === 'angle') {
|
16647
16651
|
var arc = options.hue = options.hue || 'shorter';
|
16648
16652
|
var hue = [ space, 'h' ];
|
16649
|
-
var
|
16653
|
+
var _ref60 = [ get(color1, hue), get(color2, hue) ], \u03b81 = _ref60[0], \u03b82 = _ref60[1];
|
16650
16654
|
var _adjust = adjust(arc, [ \u03b81, \u03b82 ]);
|
16651
16655
|
var _adjust2 = _slicedToArray(_adjust, 2);
|
16652
16656
|
\u03b81 = _adjust2[0];
|
@@ -17048,8 +17052,8 @@
|
|
17048
17052
|
env.M = adapt(env.W1, env.W2, env.options.method);
|
17049
17053
|
}
|
17050
17054
|
});
|
17051
|
-
function defineCAT(
|
17052
|
-
var id =
|
17055
|
+
function defineCAT(_ref61) {
|
17056
|
+
var id = _ref61.id, toCone_M = _ref61.toCone_M, fromCone_M = _ref61.fromCone_M;
|
17053
17057
|
CATs[id] = arguments[0];
|
17054
17058
|
}
|
17055
17059
|
function adapt(W1, W2) {
|
@@ -17200,7 +17204,7 @@
|
|
17200
17204
|
ACEScg: ACEScg,
|
17201
17205
|
ACEScc: acescc
|
17202
17206
|
});
|
17203
|
-
var
|
17207
|
+
var _Color = (_space = new WeakMap(), function() {
|
17204
17208
|
function Color() {
|
17205
17209
|
var _this2 = this;
|
17206
17210
|
_classCallCheck(this, Color);
|
@@ -17257,7 +17261,7 @@
|
|
17257
17261
|
}, {
|
17258
17262
|
key: 'clone',
|
17259
17263
|
value: function clone() {
|
17260
|
-
return new
|
17264
|
+
return new _Color(this.space, this.coords, this.alpha);
|
17261
17265
|
}
|
17262
17266
|
}, {
|
17263
17267
|
key: 'toJSON',
|
@@ -17275,19 +17279,19 @@
|
|
17275
17279
|
args[_key4] = arguments[_key4];
|
17276
17280
|
}
|
17277
17281
|
var ret = _display.apply(void 0, [ this ].concat(args));
|
17278
|
-
ret.color = new
|
17282
|
+
ret.color = new _Color(ret.color);
|
17279
17283
|
return ret;
|
17280
17284
|
}
|
17281
17285
|
} ], [ {
|
17282
17286
|
key: 'get',
|
17283
17287
|
value: function get(color) {
|
17284
|
-
if (color instanceof
|
17288
|
+
if (color instanceof _Color) {
|
17285
17289
|
return color;
|
17286
17290
|
}
|
17287
17291
|
for (var _len5 = arguments.length, args = new Array(_len5 > 1 ? _len5 - 1 : 0), _key5 = 1; _key5 < _len5; _key5++) {
|
17288
17292
|
args[_key5 - 1] = arguments[_key5];
|
17289
17293
|
}
|
17290
|
-
return _construct(
|
17294
|
+
return _construct(_Color, [ color ].concat(args));
|
17291
17295
|
}
|
17292
17296
|
}, {
|
17293
17297
|
key: 'defineFunction',
|
@@ -17297,26 +17301,26 @@
|
|
17297
17301
|
var func = function func() {
|
17298
17302
|
var ret = code.apply(void 0, arguments);
|
17299
17303
|
if (returns === 'color') {
|
17300
|
-
ret =
|
17304
|
+
ret = _Color.get(ret);
|
17301
17305
|
} else if (returns === 'function<color>') {
|
17302
17306
|
var f = ret;
|
17303
17307
|
ret = function ret() {
|
17304
17308
|
var ret2 = f.apply(void 0, arguments);
|
17305
|
-
return
|
17309
|
+
return _Color.get(ret2);
|
17306
17310
|
};
|
17307
17311
|
Object.assign(ret, f);
|
17308
17312
|
} else if (returns === 'array<color>') {
|
17309
17313
|
ret = ret.map(function(c4) {
|
17310
|
-
return
|
17314
|
+
return _Color.get(c4);
|
17311
17315
|
});
|
17312
17316
|
}
|
17313
17317
|
return ret;
|
17314
17318
|
};
|
17315
|
-
if (!(name in
|
17316
|
-
|
17319
|
+
if (!(name in _Color)) {
|
17320
|
+
_Color[name] = func;
|
17317
17321
|
}
|
17318
17322
|
if (instance) {
|
17319
|
-
|
17323
|
+
_Color.prototype[name] = function() {
|
17320
17324
|
for (var _len6 = arguments.length, args = new Array(_len6), _key6 = 0; _key6 < _len6; _key6++) {
|
17321
17325
|
args[_key6] = arguments[_key6];
|
17322
17326
|
}
|
@@ -17328,23 +17332,23 @@
|
|
17328
17332
|
key: 'defineFunctions',
|
17329
17333
|
value: function defineFunctions(o) {
|
17330
17334
|
for (var name in o) {
|
17331
|
-
|
17335
|
+
_Color.defineFunction(name, o[name], o[name]);
|
17332
17336
|
}
|
17333
17337
|
}
|
17334
17338
|
}, {
|
17335
17339
|
key: 'extend',
|
17336
17340
|
value: function extend(exports) {
|
17337
17341
|
if (exports.register) {
|
17338
|
-
exports.register(
|
17342
|
+
exports.register(_Color);
|
17339
17343
|
} else {
|
17340
17344
|
for (var name in exports) {
|
17341
|
-
|
17345
|
+
_Color.defineFunction(name, exports[name]);
|
17342
17346
|
}
|
17343
17347
|
}
|
17344
17348
|
}
|
17345
17349
|
} ]);
|
17346
17350
|
}());
|
17347
|
-
|
17351
|
+
_Color.defineFunctions({
|
17348
17352
|
get: get,
|
17349
17353
|
getAll: getAll,
|
17350
17354
|
set: set,
|
@@ -17356,7 +17360,7 @@
|
|
17356
17360
|
distance: distance,
|
17357
17361
|
toString: serialize
|
17358
17362
|
});
|
17359
|
-
Object.assign(
|
17363
|
+
Object.assign(_Color, {
|
17360
17364
|
util: util,
|
17361
17365
|
hooks: hooks,
|
17362
17366
|
WHITES: WHITES,
|
@@ -17385,7 +17389,7 @@
|
|
17385
17389
|
return c4.name;
|
17386
17390
|
});
|
17387
17391
|
var propId = id.replace(/-/g, '_');
|
17388
|
-
Object.defineProperty(
|
17392
|
+
Object.defineProperty(_Color.prototype, propId, {
|
17389
17393
|
get: function get() {
|
17390
17394
|
var _this3 = this;
|
17391
17395
|
var ret = this.getAll(id);
|
@@ -17429,23 +17433,23 @@
|
|
17429
17433
|
enumerable: true
|
17430
17434
|
});
|
17431
17435
|
}
|
17432
|
-
|
17433
|
-
|
17436
|
+
_Color.extend(deltaEMethods);
|
17437
|
+
_Color.extend({
|
17434
17438
|
deltaE: deltaE
|
17435
17439
|
});
|
17436
|
-
|
17437
|
-
|
17440
|
+
_Color.extend(variations);
|
17441
|
+
_Color.extend({
|
17438
17442
|
contrast: contrast
|
17439
17443
|
});
|
17440
|
-
|
17441
|
-
|
17442
|
-
|
17443
|
-
|
17444
|
+
_Color.extend(chromaticity);
|
17445
|
+
_Color.extend(luminance);
|
17446
|
+
_Color.extend(interpolation);
|
17447
|
+
_Color.extend(contrastMethods);
|
17444
17448
|
var import_from2 = __toModule(require_from4());
|
17445
17449
|
import_dot['default'].templateSettings.strip = false;
|
17446
17450
|
var hexRegex = /^#[0-9a-f]{3,8}$/i;
|
17447
17451
|
var hslRegex = /hsl\(\s*([-\d.]+)(rad|turn)/;
|
17448
|
-
var
|
17452
|
+
var _Color2 = (_r = new WeakMap(), _g = new WeakMap(), _b = new WeakMap(), _red = new WeakMap(),
|
17449
17453
|
_green = new WeakMap(), _blue = new WeakMap(), _Class3_brand = new WeakSet(),
|
17450
17454
|
function() {
|
17451
17455
|
function Color2(red, green, blue) {
|
@@ -17458,7 +17462,7 @@
|
|
17458
17462
|
_classPrivateFieldInitSpec(this, _red, void 0);
|
17459
17463
|
_classPrivateFieldInitSpec(this, _green, void 0);
|
17460
17464
|
_classPrivateFieldInitSpec(this, _blue, void 0);
|
17461
|
-
if (red instanceof
|
17465
|
+
if (red instanceof _Color2) {
|
17462
17466
|
var r = red.r, g2 = red.g, b2 = red.b;
|
17463
17467
|
this.r = r;
|
17464
17468
|
this.g = g2;
|
@@ -17563,7 +17567,7 @@
|
|
17563
17567
|
prototypeArrayFrom = Array.from;
|
17564
17568
|
Array.from = import_from2['default'];
|
17565
17569
|
}
|
17566
|
-
var _color2 = new
|
17570
|
+
var _color2 = new _Color(colorString).to('srgb');
|
17567
17571
|
if (prototypeArrayFrom) {
|
17568
17572
|
Array.from = prototypeArrayFrom;
|
17569
17573
|
prototypeArrayFrom = null;
|
@@ -17623,7 +17627,7 @@
|
|
17623
17627
|
}, {
|
17624
17628
|
key: 'setSaturation',
|
17625
17629
|
value: function setSaturation(s) {
|
17626
|
-
var C = new
|
17630
|
+
var C = new _Color2(this);
|
17627
17631
|
var colorEntires = [ {
|
17628
17632
|
name: 'r',
|
17629
17633
|
value: C.r
|
@@ -17652,7 +17656,7 @@
|
|
17652
17656
|
}, {
|
17653
17657
|
key: 'clip',
|
17654
17658
|
value: function clip() {
|
17655
|
-
var C = new
|
17659
|
+
var C = new _Color2(this);
|
17656
17660
|
var L = C.getLuminosity();
|
17657
17661
|
var n2 = Math.min(C.r, C.g, C.b);
|
17658
17662
|
var x = Math.max(C.r, C.g, C.b);
|
@@ -17671,13 +17675,13 @@
|
|
17671
17675
|
} ]);
|
17672
17676
|
}());
|
17673
17677
|
function _add(value) {
|
17674
|
-
var C = new
|
17678
|
+
var C = new _Color2(this);
|
17675
17679
|
C.r += value;
|
17676
17680
|
C.g += value;
|
17677
17681
|
C.b += value;
|
17678
17682
|
return C;
|
17679
17683
|
}
|
17680
|
-
var color_default =
|
17684
|
+
var color_default = _Color2;
|
17681
17685
|
function clamp(value, min, max2) {
|
17682
17686
|
return Math.min(Math.max(min, value), max2);
|
17683
17687
|
}
|
@@ -17766,8 +17770,8 @@
|
|
17766
17770
|
if (!refs || !refs.length) {
|
17767
17771
|
return false;
|
17768
17772
|
}
|
17769
|
-
return refs.some(function(
|
17770
|
-
var actualNode =
|
17773
|
+
return refs.some(function(_ref62) {
|
17774
|
+
var actualNode = _ref62.actualNode;
|
17771
17775
|
return isVisible(actualNode, screenReader, recursed);
|
17772
17776
|
});
|
17773
17777
|
}
|
@@ -17779,7 +17783,7 @@
|
|
17779
17783
|
var vNode = el instanceof abstract_virtual_node_default ? el : get_node_from_tree_default(el);
|
17780
17784
|
el = vNode ? vNode.actualNode : el;
|
17781
17785
|
var cacheName = '_isVisible' + (screenReader ? 'ScreenReader' : '');
|
17782
|
-
var
|
17786
|
+
var _ref63 = (_window$Node2 = window.Node) !== null && _window$Node2 !== void 0 ? _window$Node2 : {}, DOCUMENT_NODE = _ref63.DOCUMENT_NODE, DOCUMENT_FRAGMENT_NODE = _ref63.DOCUMENT_FRAGMENT_NODE;
|
17783
17787
|
var nodeType = vNode ? vNode.props.nodeType : el.nodeType;
|
17784
17788
|
var nodeName2 = vNode ? vNode.props.nodeName : el.nodeName.toLowerCase();
|
17785
17789
|
if (vNode && typeof vNode[cacheName] !== 'undefined') {
|
@@ -18586,7 +18590,7 @@
|
|
18586
18590
|
return {};
|
18587
18591
|
}
|
18588
18592
|
var navigator2 = win.navigator, innerHeight = win.innerHeight, innerWidth = win.innerWidth;
|
18589
|
-
var
|
18593
|
+
var _ref64 = getOrientation(win) || {}, angle = _ref64.angle, type2 = _ref64.type;
|
18590
18594
|
return {
|
18591
18595
|
userAgent: navigator2.userAgent,
|
18592
18596
|
windowWidth: innerWidth,
|
@@ -18595,12 +18599,12 @@
|
|
18595
18599
|
orientationType: type2
|
18596
18600
|
};
|
18597
18601
|
}
|
18598
|
-
function getOrientation(
|
18599
|
-
var screen =
|
18602
|
+
function getOrientation(_ref65) {
|
18603
|
+
var screen = _ref65.screen;
|
18600
18604
|
return screen.orientation || screen.msOrientation || screen.mozOrientation;
|
18601
18605
|
}
|
18602
|
-
function createFrameContext(frame,
|
18603
|
-
var focusable =
|
18606
|
+
function createFrameContext(frame, _ref66) {
|
18607
|
+
var focusable = _ref66.focusable, page = _ref66.page;
|
18604
18608
|
return {
|
18605
18609
|
node: frame,
|
18606
18610
|
include: [],
|
@@ -18813,8 +18817,8 @@
|
|
18813
18817
|
}
|
18814
18818
|
context.frames.push(createFrameContext(frame, context));
|
18815
18819
|
}
|
18816
|
-
function isPageContext(
|
18817
|
-
var include =
|
18820
|
+
function isPageContext(_ref67) {
|
18821
|
+
var include = _ref67.include;
|
18818
18822
|
return include.length === 1 && include[0].actualNode === document.documentElement;
|
18819
18823
|
}
|
18820
18824
|
function validateContext(context) {
|
@@ -18823,8 +18827,8 @@
|
|
18823
18827
|
throw new Error('No elements found for include in ' + env + ' Context');
|
18824
18828
|
}
|
18825
18829
|
}
|
18826
|
-
function getRootNode2(
|
18827
|
-
var include =
|
18830
|
+
function getRootNode2(_ref68) {
|
18831
|
+
var include = _ref68.include, exclude = _ref68.exclude;
|
18828
18832
|
var selectors = Array.from(include).concat(Array.from(exclude));
|
18829
18833
|
for (var _i27 = 0; _i27 < selectors.length; _i27++) {
|
18830
18834
|
var item = selectors[_i27];
|
@@ -18843,8 +18847,8 @@
|
|
18843
18847
|
return [];
|
18844
18848
|
}
|
18845
18849
|
var _Context = new Context(context), frames = _Context.frames;
|
18846
|
-
return frames.map(function(
|
18847
|
-
var node =
|
18850
|
+
return frames.map(function(_ref69) {
|
18851
|
+
var node = _ref69.node, frameContext = _objectWithoutProperties(_ref69, _excluded14);
|
18848
18852
|
frameContext.initiator = false;
|
18849
18853
|
var frameSelector = _getAncestry(node);
|
18850
18854
|
return {
|
@@ -18854,8 +18858,8 @@
|
|
18854
18858
|
});
|
18855
18859
|
}
|
18856
18860
|
function _getRule(ruleId) {
|
18857
|
-
var rule = axe._audit.rules.find(function(
|
18858
|
-
var id =
|
18861
|
+
var rule = axe._audit.rules.find(function(_ref70) {
|
18862
|
+
var id = _ref70.id;
|
18859
18863
|
return id === ruleId;
|
18860
18864
|
});
|
18861
18865
|
if (!rule) {
|
@@ -19020,8 +19024,8 @@
|
|
19020
19024
|
return !!standards_default.htmlElms[nodeName2];
|
19021
19025
|
}
|
19022
19026
|
var is_html_element_default = isHtmlElement;
|
19023
|
-
function _isNodeInContext(node,
|
19024
|
-
var
|
19027
|
+
function _isNodeInContext(node, _ref71) {
|
19028
|
+
var _ref71$include = _ref71.include, include = _ref71$include === void 0 ? [] : _ref71$include, _ref71$exclude = _ref71.exclude, exclude = _ref71$exclude === void 0 ? [] : _ref71$exclude;
|
19025
19029
|
var filterInclude = include.filter(function(candidate) {
|
19026
19030
|
return _contains(candidate, node);
|
19027
19031
|
});
|
@@ -19377,8 +19381,8 @@
|
|
19377
19381
|
return matchExpressions(domTree, expressions, filter);
|
19378
19382
|
}
|
19379
19383
|
var query_selector_all_filter_default = querySelectorAllFilter;
|
19380
|
-
function preloadCssom(
|
19381
|
-
var
|
19384
|
+
function preloadCssom(_ref72) {
|
19385
|
+
var _ref72$treeRoot = _ref72.treeRoot, treeRoot = _ref72$treeRoot === void 0 ? axe._tree[0] : _ref72$treeRoot;
|
19382
19386
|
var rootNodes = getAllRootNodesInTree(treeRoot);
|
19383
19387
|
if (!rootNodes.length) {
|
19384
19388
|
return Promise.resolve();
|
@@ -19408,8 +19412,8 @@
|
|
19408
19412
|
}
|
19409
19413
|
function getCssomForAllRootNodes(rootNodes, convertDataToStylesheet) {
|
19410
19414
|
var promises = [];
|
19411
|
-
rootNodes.forEach(function(
|
19412
|
-
var rootNode =
|
19415
|
+
rootNodes.forEach(function(_ref73, index) {
|
19416
|
+
var rootNode = _ref73.rootNode, shadowId = _ref73.shadowId;
|
19413
19417
|
var sheets = getStylesheetsOfRootNode(rootNode, shadowId, convertDataToStylesheet);
|
19414
19418
|
if (!sheets) {
|
19415
19419
|
return Promise.all(promises);
|
@@ -19495,10 +19499,10 @@
|
|
19495
19499
|
return true;
|
19496
19500
|
});
|
19497
19501
|
}
|
19498
|
-
function preloadMedia(
|
19499
|
-
var
|
19500
|
-
var mediaVirtualNodes = query_selector_all_filter_default(treeRoot, 'video, audio', function(
|
19501
|
-
var actualNode =
|
19502
|
+
function preloadMedia(_ref74) {
|
19503
|
+
var _ref74$treeRoot = _ref74.treeRoot, treeRoot = _ref74$treeRoot === void 0 ? axe._tree[0] : _ref74$treeRoot;
|
19504
|
+
var mediaVirtualNodes = query_selector_all_filter_default(treeRoot, 'video, audio', function(_ref75) {
|
19505
|
+
var actualNode = _ref75.actualNode;
|
19502
19506
|
if (actualNode.hasAttribute('src')) {
|
19503
19507
|
return !!actualNode.getAttribute('src');
|
19504
19508
|
}
|
@@ -19510,8 +19514,8 @@
|
|
19510
19514
|
}
|
19511
19515
|
return true;
|
19512
19516
|
});
|
19513
|
-
return Promise.all(mediaVirtualNodes.map(function(
|
19514
|
-
var actualNode =
|
19517
|
+
return Promise.all(mediaVirtualNodes.map(function(_ref76) {
|
19518
|
+
var actualNode = _ref76.actualNode;
|
19515
19519
|
return isMediaElementReady(actualNode);
|
19516
19520
|
}));
|
19517
19521
|
}
|
@@ -19814,8 +19818,8 @@
|
|
19814
19818
|
}
|
19815
19819
|
}
|
19816
19820
|
function setScrollState(scrollState) {
|
19817
|
-
scrollState.forEach(function(
|
19818
|
-
var elm =
|
19821
|
+
scrollState.forEach(function(_ref78) {
|
19822
|
+
var elm = _ref78.elm, top = _ref78.top, left = _ref78.left;
|
19819
19823
|
return setScroll(elm, top, left);
|
19820
19824
|
});
|
19821
19825
|
}
|
@@ -19843,8 +19847,8 @@
|
|
19843
19847
|
}
|
19844
19848
|
return selectAllRecursive(selectorArr, doc);
|
19845
19849
|
}
|
19846
|
-
function selectAllRecursive(
|
19847
|
-
var
|
19850
|
+
function selectAllRecursive(_ref79, doc) {
|
19851
|
+
var _ref80 = _toArray(_ref79), selectorStr = _ref80[0], restSelector = _ref80.slice(1);
|
19848
19852
|
var elms = doc.querySelectorAll(selectorStr);
|
19849
19853
|
if (restSelector.length === 0) {
|
19850
19854
|
return Array.from(elms);
|
@@ -19946,9 +19950,9 @@
|
|
19946
19950
|
nodeTypeToName[nodeNamesToTypes[nodeName2]] = nodeName2;
|
19947
19951
|
});
|
19948
19952
|
function normaliseProps(serialNode) {
|
19949
|
-
var _serialNode$nodeName,
|
19953
|
+
var _serialNode$nodeName, _ref81, _serialNode$nodeType;
|
19950
19954
|
var nodeName2 = (_serialNode$nodeName = serialNode.nodeName) !== null && _serialNode$nodeName !== void 0 ? _serialNode$nodeName : nodeTypeToName[serialNode.nodeType];
|
19951
|
-
var nodeType = (
|
19955
|
+
var nodeType = (_ref81 = (_serialNode$nodeType = serialNode.nodeType) !== null && _serialNode$nodeType !== void 0 ? _serialNode$nodeType : nodeNamesToTypes[serialNode.nodeName]) !== null && _ref81 !== void 0 ? _ref81 : 1;
|
19952
19956
|
assert_default(typeof nodeType === 'number', 'nodeType has to be a number, got \''.concat(nodeType, '\''));
|
19953
19957
|
assert_default(typeof nodeName2 === 'string', 'nodeName has to be a string, got \''.concat(nodeName2, '\''));
|
19954
19958
|
nodeName2 = nodeName2.toLowerCase();
|
@@ -19969,8 +19973,8 @@
|
|
19969
19973
|
delete props.attributes;
|
19970
19974
|
return Object.freeze(props);
|
19971
19975
|
}
|
19972
|
-
function normaliseAttrs(
|
19973
|
-
var
|
19976
|
+
function normaliseAttrs(_ref82) {
|
19977
|
+
var _ref82$attributes = _ref82.attributes, attributes2 = _ref82$attributes === void 0 ? {} : _ref82$attributes;
|
19974
19978
|
var attrMap = {
|
19975
19979
|
htmlFor: 'for',
|
19976
19980
|
className: 'class'
|
@@ -22535,8 +22539,8 @@
|
|
22535
22539
|
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' ]
|
22536
22540
|
} ];
|
22537
22541
|
lookupTable.evaluateRoleForElement = {
|
22538
|
-
A: function A(
|
22539
|
-
var node =
|
22542
|
+
A: function A(_ref83) {
|
22543
|
+
var node = _ref83.node, out = _ref83.out;
|
22540
22544
|
if (node.namespaceURI === 'http://www.w3.org/2000/svg') {
|
22541
22545
|
return true;
|
22542
22546
|
}
|
@@ -22545,19 +22549,19 @@
|
|
22545
22549
|
}
|
22546
22550
|
return true;
|
22547
22551
|
},
|
22548
|
-
AREA: function AREA(
|
22549
|
-
var node =
|
22552
|
+
AREA: function AREA(_ref84) {
|
22553
|
+
var node = _ref84.node;
|
22550
22554
|
return !node.href;
|
22551
22555
|
},
|
22552
|
-
BUTTON: function BUTTON(
|
22553
|
-
var node =
|
22556
|
+
BUTTON: function BUTTON(_ref85) {
|
22557
|
+
var node = _ref85.node, role = _ref85.role, out = _ref85.out;
|
22554
22558
|
if (node.getAttribute('type') === 'menu') {
|
22555
22559
|
return role === 'menuitem';
|
22556
22560
|
}
|
22557
22561
|
return out;
|
22558
22562
|
},
|
22559
|
-
IMG: function IMG(
|
22560
|
-
var node =
|
22563
|
+
IMG: function IMG(_ref86) {
|
22564
|
+
var node = _ref86.node, role = _ref86.role, out = _ref86.out;
|
22561
22565
|
switch (node.alt) {
|
22562
22566
|
case null:
|
22563
22567
|
return out;
|
@@ -22569,8 +22573,8 @@
|
|
22569
22573
|
return role !== 'presentation' && role !== 'none';
|
22570
22574
|
}
|
22571
22575
|
},
|
22572
|
-
INPUT: function INPUT(
|
22573
|
-
var node =
|
22576
|
+
INPUT: function INPUT(_ref87) {
|
22577
|
+
var node = _ref87.node, role = _ref87.role, out = _ref87.out;
|
22574
22578
|
switch (node.type) {
|
22575
22579
|
case 'button':
|
22576
22580
|
case 'image':
|
@@ -22600,32 +22604,32 @@
|
|
22600
22604
|
return false;
|
22601
22605
|
}
|
22602
22606
|
},
|
22603
|
-
LI: function LI(
|
22604
|
-
var node =
|
22607
|
+
LI: function LI(_ref88) {
|
22608
|
+
var node = _ref88.node, out = _ref88.out;
|
22605
22609
|
var hasImplicitListitemRole = axe.utils.matchesSelector(node, 'ol li, ul li');
|
22606
22610
|
if (hasImplicitListitemRole) {
|
22607
22611
|
return out;
|
22608
22612
|
}
|
22609
22613
|
return true;
|
22610
22614
|
},
|
22611
|
-
MENU: function MENU(
|
22612
|
-
var node =
|
22615
|
+
MENU: function MENU(_ref89) {
|
22616
|
+
var node = _ref89.node;
|
22613
22617
|
if (node.getAttribute('type') === 'context') {
|
22614
22618
|
return false;
|
22615
22619
|
}
|
22616
22620
|
return true;
|
22617
22621
|
},
|
22618
|
-
OPTION: function OPTION(
|
22619
|
-
var node =
|
22622
|
+
OPTION: function OPTION(_ref90) {
|
22623
|
+
var node = _ref90.node;
|
22620
22624
|
var withinOptionList = axe.utils.matchesSelector(node, 'select > option, datalist > option, optgroup > option');
|
22621
22625
|
return !withinOptionList;
|
22622
22626
|
},
|
22623
|
-
SELECT: function SELECT(
|
22624
|
-
var node =
|
22627
|
+
SELECT: function SELECT(_ref91) {
|
22628
|
+
var node = _ref91.node, role = _ref91.role;
|
22625
22629
|
return !node.multiple && node.size <= 1 && role === 'menu';
|
22626
22630
|
},
|
22627
|
-
SVG: function SVG(
|
22628
|
-
var node =
|
22631
|
+
SVG: function SVG(_ref92) {
|
22632
|
+
var node = _ref92.node, out = _ref92.out;
|
22629
22633
|
if (node.parentNode && node.parentNode.namespaceURI === 'http://www.w3.org/2000/svg') {
|
22630
22634
|
return true;
|
22631
22635
|
}
|
@@ -22651,7 +22655,7 @@
|
|
22651
22655
|
var is_accessible_ref_default = isAccessibleRef;
|
22652
22656
|
function _isComboboxPopup(virtualNode) {
|
22653
22657
|
var _popupRoles;
|
22654
|
-
var
|
22658
|
+
var _ref93 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, popupRoles = _ref93.popupRoles;
|
22655
22659
|
var role = get_role_default(virtualNode);
|
22656
22660
|
(_popupRoles = popupRoles) !== null && _popupRoles !== void 0 ? _popupRoles : popupRoles = aria_attrs_default['aria-haspopup'].values;
|
22657
22661
|
if (!popupRoles.includes(role)) {
|
@@ -22834,8 +22838,8 @@
|
|
22834
22838
|
if (!virtualNode.children) {
|
22835
22839
|
return void 0;
|
22836
22840
|
}
|
22837
|
-
var titleNode = virtualNode.children.find(function(
|
22838
|
-
var props =
|
22841
|
+
var titleNode = virtualNode.children.find(function(_ref94) {
|
22842
|
+
var props = _ref94.props;
|
22839
22843
|
return props.nodeName === 'title';
|
22840
22844
|
});
|
22841
22845
|
if (!titleNode) {
|
@@ -22972,8 +22976,8 @@
|
|
22972
22976
|
}
|
22973
22977
|
return false;
|
22974
22978
|
}
|
22975
|
-
function getNumberValue(domNode,
|
22976
|
-
var cssProperty =
|
22979
|
+
function getNumberValue(domNode, _ref95) {
|
22980
|
+
var cssProperty = _ref95.cssProperty, absoluteValues = _ref95.absoluteValues, normalValue = _ref95.normalValue;
|
22977
22981
|
var computedStyle = window.getComputedStyle(domNode);
|
22978
22982
|
var cssPropValue = computedStyle.getPropertyValue(cssProperty);
|
22979
22983
|
if (cssPropValue === 'normal') {
|
@@ -23120,8 +23124,8 @@
|
|
23120
23124
|
} else if (node !== document.body && has_content_default(node, true) && !isShallowlyHidden(virtualNode)) {
|
23121
23125
|
return [ virtualNode ];
|
23122
23126
|
} else {
|
23123
|
-
return virtualNode.children.filter(function(
|
23124
|
-
var actualNode =
|
23127
|
+
return virtualNode.children.filter(function(_ref96) {
|
23128
|
+
var actualNode = _ref96.actualNode;
|
23125
23129
|
return actualNode.nodeType === 1;
|
23126
23130
|
}).map(function(vNode) {
|
23127
23131
|
return findRegionlessElms(vNode, options);
|
@@ -23269,7 +23273,7 @@
|
|
23269
23273
|
var separatorRegex = /[;,\s]/;
|
23270
23274
|
var validRedirectNumRegex = /^[0-9.]+$/;
|
23271
23275
|
function metaRefreshEvaluate(node, options, virtualNode) {
|
23272
|
-
var
|
23276
|
+
var _ref97 = options || {}, minDelay = _ref97.minDelay, maxDelay = _ref97.maxDelay;
|
23273
23277
|
var content = (virtualNode.attr('content') || '').trim();
|
23274
23278
|
var _content$split = content.split(separatorRegex), _content$split2 = _slicedToArray(_content$split, 1), redirectStr = _content$split2[0];
|
23275
23279
|
if (!redirectStr.match(validRedirectNumRegex)) {
|
@@ -23632,10 +23636,10 @@
|
|
23632
23636
|
var OPAQUE_STROKE_OFFSET_MIN_PX = 1.5;
|
23633
23637
|
var edges = [ 'top', 'right', 'bottom', 'left' ];
|
23634
23638
|
function _getStrokeColorsFromShadows(parsedShadows) {
|
23635
|
-
var
|
23639
|
+
var _ref98 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, _ref98$ignoreEdgeCoun = _ref98.ignoreEdgeCount, ignoreEdgeCount = _ref98$ignoreEdgeCoun === void 0 ? false : _ref98$ignoreEdgeCoun;
|
23636
23640
|
var shadowMap = getShadowColorsMap(parsedShadows);
|
23637
|
-
var shadowsByColor = Object.entries(shadowMap).map(function(
|
23638
|
-
var
|
23641
|
+
var shadowsByColor = Object.entries(shadowMap).map(function(_ref99) {
|
23642
|
+
var _ref100 = _slicedToArray(_ref99, 2), colorStr = _ref100[0], sides = _ref100[1];
|
23639
23643
|
var edgeCount = edges.filter(function(side) {
|
23640
23644
|
return sides[side].length !== 0;
|
23641
23645
|
}).length;
|
@@ -23645,8 +23649,8 @@
|
|
23645
23649
|
edgeCount: edgeCount
|
23646
23650
|
};
|
23647
23651
|
});
|
23648
|
-
if (!ignoreEdgeCount && shadowsByColor.some(function(
|
23649
|
-
var edgeCount =
|
23652
|
+
if (!ignoreEdgeCount && shadowsByColor.some(function(_ref101) {
|
23653
|
+
var edgeCount = _ref101.edgeCount;
|
23650
23654
|
return edgeCount > 1 && edgeCount < 4;
|
23651
23655
|
})) {
|
23652
23656
|
return null;
|
@@ -23688,8 +23692,8 @@
|
|
23688
23692
|
}
|
23689
23693
|
return colorMap;
|
23690
23694
|
}
|
23691
|
-
function shadowGroupToColor(
|
23692
|
-
var colorStr =
|
23695
|
+
function shadowGroupToColor(_ref102) {
|
23696
|
+
var colorStr = _ref102.colorStr, sides = _ref102.sides, edgeCount = _ref102.edgeCount;
|
23693
23697
|
if (edgeCount !== 4) {
|
23694
23698
|
return null;
|
23695
23699
|
}
|
@@ -23740,8 +23744,8 @@
|
|
23740
23744
|
throw new Error('Unable to process text-shadows: '.concat(str));
|
23741
23745
|
}
|
23742
23746
|
}
|
23743
|
-
shadows.forEach(function(
|
23744
|
-
var pixels =
|
23747
|
+
shadows.forEach(function(_ref103) {
|
23748
|
+
var pixels = _ref103.pixels;
|
23745
23749
|
if (pixels.length === 2) {
|
23746
23750
|
pixels.push(0);
|
23747
23751
|
}
|
@@ -23749,7 +23753,7 @@
|
|
23749
23753
|
return shadows;
|
23750
23754
|
}
|
23751
23755
|
function _getTextShadowColors(node) {
|
23752
|
-
var
|
23756
|
+
var _ref104 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, minRatio = _ref104.minRatio, maxRatio = _ref104.maxRatio, ignoreEdgeCount = _ref104.ignoreEdgeCount;
|
23753
23757
|
var shadowColors = [];
|
23754
23758
|
var style = window.getComputedStyle(node);
|
23755
23759
|
var textShadow = style.getPropertyValue('text-shadow');
|
@@ -23812,8 +23816,8 @@
|
|
23812
23816
|
}
|
23813
23817
|
return shadowColors;
|
23814
23818
|
}
|
23815
|
-
function textShadowColor(
|
23816
|
-
var colorStr =
|
23819
|
+
function textShadowColor(_ref105) {
|
23820
|
+
var colorStr = _ref105.colorStr, offsetX = _ref105.offsetX, offsetY = _ref105.offsetY, blurRadius = _ref105.blurRadius, fontSize = _ref105.fontSize;
|
23817
23821
|
if (offsetX > blurRadius || offsetY > blurRadius) {
|
23818
23822
|
return new color_default(0, 0, 0, 0);
|
23819
23823
|
}
|
@@ -23842,13 +23846,13 @@
|
|
23842
23846
|
var _stackingOrder2;
|
23843
23847
|
var bgVNode = get_node_from_tree_default(bgElm);
|
23844
23848
|
var bgColor = getOwnBackgroundColor2(bgVNode);
|
23845
|
-
var stackingOrder = bgVNode._stackingOrder.filter(function(
|
23846
|
-
var vNode =
|
23849
|
+
var stackingOrder = bgVNode._stackingOrder.filter(function(_ref106) {
|
23850
|
+
var vNode = _ref106.vNode;
|
23847
23851
|
return !!vNode;
|
23848
23852
|
});
|
23849
|
-
stackingOrder.forEach(function(
|
23853
|
+
stackingOrder.forEach(function(_ref107, index) {
|
23850
23854
|
var _stackingOrder;
|
23851
|
-
var vNode =
|
23855
|
+
var vNode = _ref107.vNode;
|
23852
23856
|
var ancestorVNode2 = (_stackingOrder = stackingOrder[index - 1]) === null || _stackingOrder === void 0 ? void 0 : _stackingOrder.vNode;
|
23853
23857
|
var context2 = addToStackingContext(contextMap, vNode, ancestorVNode2);
|
23854
23858
|
if (index === 0 && !contextMap.get(vNode)) {
|
@@ -24084,8 +24088,8 @@
|
|
24084
24088
|
function getTextColor(nodeStyle) {
|
24085
24089
|
return new color_default().parseString(nodeStyle.getPropertyValue('-webkit-text-fill-color') || nodeStyle.getPropertyValue('color'));
|
24086
24090
|
}
|
24087
|
-
function getStrokeColor(nodeStyle,
|
24088
|
-
var
|
24091
|
+
function getStrokeColor(nodeStyle, _ref108) {
|
24092
|
+
var _ref108$textStrokeEmM = _ref108.textStrokeEmMin, textStrokeEmMin = _ref108$textStrokeEmM === void 0 ? 0 : _ref108$textStrokeEmM;
|
24089
24093
|
var strokeWidth = parseFloat(nodeStyle.getPropertyValue('-webkit-text-stroke-width'));
|
24090
24094
|
if (strokeWidth === 0) {
|
24091
24095
|
return null;
|
@@ -24247,8 +24251,8 @@
|
|
24247
24251
|
if (results.length < 2) {
|
24248
24252
|
return results;
|
24249
24253
|
}
|
24250
|
-
var incompleteResults = results.filter(function(
|
24251
|
-
var result =
|
24254
|
+
var incompleteResults = results.filter(function(_ref109) {
|
24255
|
+
var result = _ref109.result;
|
24252
24256
|
return result !== void 0;
|
24253
24257
|
});
|
24254
24258
|
var uniqueResults = [];
|
@@ -24260,12 +24264,12 @@
|
|
24260
24264
|
if (nameMap[name]) {
|
24261
24265
|
return 1;
|
24262
24266
|
}
|
24263
|
-
var sameNameResults = incompleteResults.filter(function(
|
24264
|
-
var data =
|
24267
|
+
var sameNameResults = incompleteResults.filter(function(_ref110, resultNum) {
|
24268
|
+
var data = _ref110.data;
|
24265
24269
|
return data.name === name && resultNum !== index;
|
24266
24270
|
});
|
24267
|
-
var isSameUrl = sameNameResults.every(function(
|
24268
|
-
var data =
|
24271
|
+
var isSameUrl = sameNameResults.every(function(_ref111) {
|
24272
|
+
var data = _ref111.data;
|
24269
24273
|
return isIdenticalObject(data.urlProps, urlProps);
|
24270
24274
|
});
|
24271
24275
|
if (sameNameResults.length && !isSameUrl) {
|
@@ -24291,7 +24295,7 @@
|
|
24291
24295
|
var headingRole = role && role.includes('heading');
|
24292
24296
|
var ariaHeadingLevel = vNode.attr('aria-level');
|
24293
24297
|
var ariaLevel = parseInt(ariaHeadingLevel, 10);
|
24294
|
-
var
|
24298
|
+
var _ref112 = vNode.props.nodeName.match(/h(\d)/) || [], _ref113 = _slicedToArray(_ref112, 2), headingLevel = _ref113[1];
|
24295
24299
|
if (!headingRole) {
|
24296
24300
|
return -1;
|
24297
24301
|
}
|
@@ -24351,14 +24355,14 @@
|
|
24351
24355
|
}
|
24352
24356
|
function getHeadingOrder(results) {
|
24353
24357
|
results = _toConsumableArray(results);
|
24354
|
-
results.sort(function(
|
24355
|
-
var nodeA =
|
24356
|
-
var nodeB =
|
24358
|
+
results.sort(function(_ref114, _ref115) {
|
24359
|
+
var nodeA = _ref114.node;
|
24360
|
+
var nodeB = _ref115.node;
|
24357
24361
|
return nodeA.ancestry.length - nodeB.ancestry.length;
|
24358
24362
|
});
|
24359
24363
|
var headingOrder = results.reduce(mergeHeadingOrder, []);
|
24360
|
-
return headingOrder.filter(function(
|
24361
|
-
var level =
|
24364
|
+
return headingOrder.filter(function(_ref116) {
|
24365
|
+
var level = _ref116.level;
|
24362
24366
|
return level !== -1;
|
24363
24367
|
});
|
24364
24368
|
}
|
@@ -24511,8 +24515,8 @@
|
|
24511
24515
|
}
|
24512
24516
|
function getLargestUnobscuredArea(vNode, obscuredNodes) {
|
24513
24517
|
var nodeRect = vNode.boundingClientRect;
|
24514
|
-
var obscuringRects = obscuredNodes.map(function(
|
24515
|
-
var rect =
|
24518
|
+
var obscuringRects = obscuredNodes.map(function(_ref117) {
|
24519
|
+
var rect = _ref117.boundingClientRect;
|
24516
24520
|
return rect;
|
24517
24521
|
});
|
24518
24522
|
var unobscuredRects;
|
@@ -24558,8 +24562,8 @@
|
|
24558
24562
|
return _contains(vAncestor, vNode) && !_isInTabOrder(vNode);
|
24559
24563
|
}
|
24560
24564
|
function mapActualNodes(vNodes) {
|
24561
|
-
return vNodes.map(function(
|
24562
|
-
var actualNode =
|
24565
|
+
return vNodes.map(function(_ref118) {
|
24566
|
+
var actualNode = _ref118.actualNode;
|
24563
24567
|
return actualNode;
|
24564
24568
|
});
|
24565
24569
|
}
|
@@ -24618,8 +24622,8 @@
|
|
24618
24622
|
});
|
24619
24623
|
return true;
|
24620
24624
|
}
|
24621
|
-
this.relatedNodes(closeNeighbors.map(function(
|
24622
|
-
var actualNode =
|
24625
|
+
this.relatedNodes(closeNeighbors.map(function(_ref119) {
|
24626
|
+
var actualNode = _ref119.actualNode;
|
24623
24627
|
return actualNode;
|
24624
24628
|
}));
|
24625
24629
|
if (!closeNeighbors.some(_isInTabOrder)) {
|
@@ -24640,7 +24644,7 @@
|
|
24640
24644
|
return Math.round(num * 10) / 10;
|
24641
24645
|
}
|
24642
24646
|
function metaViewportScaleEvaluate(node, options, virtualNode) {
|
24643
|
-
var
|
24647
|
+
var _ref120 = options || {}, _ref120$scaleMinimum = _ref120.scaleMinimum, scaleMinimum = _ref120$scaleMinimum === void 0 ? 2 : _ref120$scaleMinimum, _ref120$lowerBound = _ref120.lowerBound, lowerBound = _ref120$lowerBound === void 0 ? false : _ref120$lowerBound;
|
24644
24648
|
var content = virtualNode.attr('content') || '';
|
24645
24649
|
if (!content) {
|
24646
24650
|
return true;
|
@@ -24685,8 +24689,8 @@
|
|
24685
24689
|
}
|
24686
24690
|
var meta_viewport_scale_evaluate_default = metaViewportScaleEvaluate;
|
24687
24691
|
function cssOrientationLockEvaluate(node, options, virtualNode, context) {
|
24688
|
-
var
|
24689
|
-
var
|
24692
|
+
var _ref121 = context || {}, _ref121$cssom = _ref121.cssom, cssom = _ref121$cssom === void 0 ? void 0 : _ref121$cssom;
|
24693
|
+
var _ref122 = options || {}, _ref122$degreeThresho = _ref122.degreeThreshold, degreeThreshold = _ref122$degreeThresho === void 0 ? 0 : _ref122$degreeThresho;
|
24690
24694
|
if (!cssom || !cssom.length) {
|
24691
24695
|
return void 0;
|
24692
24696
|
}
|
@@ -24700,8 +24704,8 @@
|
|
24700
24704
|
if (!orientationRules.length) {
|
24701
24705
|
return 1;
|
24702
24706
|
}
|
24703
|
-
orientationRules.forEach(function(
|
24704
|
-
var cssRules =
|
24707
|
+
orientationRules.forEach(function(_ref123) {
|
24708
|
+
var cssRules = _ref123.cssRules;
|
24705
24709
|
Array.from(cssRules).forEach(function(cssRule) {
|
24706
24710
|
var locked = getIsOrientationLocked(cssRule);
|
24707
24711
|
if (locked && cssRule.selectorText.toUpperCase() !== 'HTML') {
|
@@ -24725,8 +24729,8 @@
|
|
24725
24729
|
}
|
24726
24730
|
return false;
|
24727
24731
|
function groupCssomByDocument(cssObjectModel) {
|
24728
|
-
return cssObjectModel.reduce(function(out,
|
24729
|
-
var sheet =
|
24732
|
+
return cssObjectModel.reduce(function(out, _ref124) {
|
24733
|
+
var sheet = _ref124.sheet, root = _ref124.root, shadowId = _ref124.shadowId;
|
24730
24734
|
var key = shadowId ? shadowId : 'topDocument';
|
24731
24735
|
if (!out[key]) {
|
24732
24736
|
out[key] = {
|
@@ -24742,15 +24746,15 @@
|
|
24742
24746
|
return out;
|
24743
24747
|
}, {});
|
24744
24748
|
}
|
24745
|
-
function isMediaRuleWithOrientation(
|
24746
|
-
var type2 =
|
24749
|
+
function isMediaRuleWithOrientation(_ref125) {
|
24750
|
+
var type2 = _ref125.type, cssText = _ref125.cssText;
|
24747
24751
|
if (type2 !== 4) {
|
24748
24752
|
return false;
|
24749
24753
|
}
|
24750
24754
|
return /orientation:\s*landscape/i.test(cssText) || /orientation:\s*portrait/i.test(cssText);
|
24751
24755
|
}
|
24752
|
-
function getIsOrientationLocked(
|
24753
|
-
var selectorText =
|
24756
|
+
function getIsOrientationLocked(_ref126) {
|
24757
|
+
var selectorText = _ref126.selectorText, style = _ref126.style;
|
24754
24758
|
if (!selectorText || style.length <= 0) {
|
24755
24759
|
return false;
|
24756
24760
|
}
|
@@ -24805,7 +24809,7 @@
|
|
24805
24809
|
}
|
24806
24810
|
}
|
24807
24811
|
function getAngleInDegrees(angleWithUnit) {
|
24808
|
-
var
|
24812
|
+
var _ref127 = angleWithUnit.match(/(deg|grad|rad|turn)/) || [], _ref128 = _slicedToArray(_ref127, 1), unit = _ref128[0];
|
24809
24813
|
if (!unit) {
|
24810
24814
|
return 0;
|
24811
24815
|
}
|
@@ -25096,8 +25100,8 @@
|
|
25096
25100
|
this.relatedNodes(relatedNodes);
|
25097
25101
|
return true;
|
25098
25102
|
}
|
25099
|
-
function getInvalidSelector(vChild, nested,
|
25100
|
-
var
|
25103
|
+
function getInvalidSelector(vChild, nested, _ref129) {
|
25104
|
+
var _ref129$validRoles = _ref129.validRoles, validRoles = _ref129$validRoles === void 0 ? [] : _ref129$validRoles, _ref129$validNodeName = _ref129.validNodeNames, validNodeNames = _ref129$validNodeName === void 0 ? [] : _ref129$validNodeName;
|
25101
25105
|
var _vChild$props = vChild.props, nodeName2 = _vChild$props.nodeName, nodeType = _vChild$props.nodeType, nodeValue = _vChild$props.nodeValue;
|
25102
25106
|
var selector = nested ? 'div > ' : '';
|
25103
25107
|
if (nodeType === 3 && nodeValue.trim() !== '') {
|
@@ -25549,8 +25553,8 @@
|
|
25549
25553
|
}
|
25550
25554
|
var focusable_no_name_evaluate_default = focusableNoNameEvaluate;
|
25551
25555
|
function focusableModalOpenEvaluate(node, options, virtualNode) {
|
25552
|
-
var tabbableElements = virtualNode.tabbableElements.map(function(
|
25553
|
-
var actualNode =
|
25556
|
+
var tabbableElements = virtualNode.tabbableElements.map(function(_ref130) {
|
25557
|
+
var actualNode = _ref130.actualNode;
|
25554
25558
|
return actualNode;
|
25555
25559
|
});
|
25556
25560
|
if (!tabbableElements || !tabbableElements.length) {
|
@@ -25945,7 +25949,7 @@
|
|
25945
25949
|
var bold = parseFloat(fontWeight) >= boldValue || fontWeight === 'bold';
|
25946
25950
|
var ptSize = Math.ceil(fontSize * 72) / 96;
|
25947
25951
|
var isSmallFont = bold && ptSize < boldTextPt || !bold && ptSize < largeTextPt;
|
25948
|
-
var
|
25952
|
+
var _ref131 = isSmallFont ? contrastRatio.normal : contrastRatio.large, expected = _ref131.expected, minThreshold = _ref131.minThreshold, maxThreshold = _ref131.maxThreshold;
|
25949
25953
|
var pseudoElm = findPseudoElement(virtualNode, {
|
25950
25954
|
ignorePseudo: ignorePseudo,
|
25951
25955
|
pseudoSizeThreshold: pseudoSizeThreshold
|
@@ -26030,8 +26034,8 @@
|
|
26030
26034
|
}
|
26031
26035
|
return isValid;
|
26032
26036
|
}
|
26033
|
-
function findPseudoElement(vNode,
|
26034
|
-
var
|
26037
|
+
function findPseudoElement(vNode, _ref132) {
|
26038
|
+
var _ref132$pseudoSizeThr = _ref132.pseudoSizeThreshold, pseudoSizeThreshold = _ref132$pseudoSizeThr === void 0 ? .25 : _ref132$pseudoSizeThr, _ref132$ignorePseudo = _ref132.ignorePseudo, ignorePseudo = _ref132$ignorePseudo === void 0 ? false : _ref132$ignorePseudo;
|
26035
26039
|
if (ignorePseudo) {
|
26036
26040
|
return;
|
26037
26041
|
}
|
@@ -26073,7 +26077,7 @@
|
|
26073
26077
|
}
|
26074
26078
|
function parseUnit(str) {
|
26075
26079
|
var unitRegex = /^([0-9.]+)([a-z]+)$/i;
|
26076
|
-
var
|
26080
|
+
var _ref133 = str.match(unitRegex) || [], _ref134 = _slicedToArray(_ref133, 3), _ref134$ = _ref134[1], value = _ref134$ === void 0 ? '' : _ref134$, _ref134$2 = _ref134[2], unit = _ref134$2 === void 0 ? '' : _ref134$2;
|
26077
26081
|
return {
|
26078
26082
|
value: parseFloat(value),
|
26079
26083
|
unit: unit.toLowerCase()
|
@@ -26451,19 +26455,19 @@
|
|
26451
26455
|
return true;
|
26452
26456
|
}
|
26453
26457
|
var ownedRoles = getOwnedRoles(virtualNode, required);
|
26454
|
-
var unallowed = ownedRoles.filter(function(
|
26455
|
-
var role =
|
26458
|
+
var unallowed = ownedRoles.filter(function(_ref135) {
|
26459
|
+
var role = _ref135.role, vNode = _ref135.vNode;
|
26456
26460
|
return vNode.props.nodeType === 1 && !required.includes(role);
|
26457
26461
|
});
|
26458
26462
|
if (unallowed.length) {
|
26459
|
-
this.relatedNodes(unallowed.map(function(
|
26460
|
-
var vNode =
|
26463
|
+
this.relatedNodes(unallowed.map(function(_ref136) {
|
26464
|
+
var vNode = _ref136.vNode;
|
26461
26465
|
return vNode;
|
26462
26466
|
}));
|
26463
26467
|
this.data({
|
26464
26468
|
messageKey: 'unallowed',
|
26465
|
-
values: unallowed.map(function(
|
26466
|
-
var vNode =
|
26469
|
+
values: unallowed.map(function(_ref137) {
|
26470
|
+
var vNode = _ref137.vNode, attr = _ref137.attr;
|
26467
26471
|
return getUnallowedSelector(vNode, attr);
|
26468
26472
|
}).filter(function(selector, index, array) {
|
26469
26473
|
return array.indexOf(selector) === index;
|
@@ -26526,8 +26530,8 @@
|
|
26526
26530
|
return ownedRoles;
|
26527
26531
|
}
|
26528
26532
|
function hasRequiredChildren(required, ownedRoles) {
|
26529
|
-
return ownedRoles.some(function(
|
26530
|
-
var role =
|
26533
|
+
return ownedRoles.some(function(_ref138) {
|
26534
|
+
var role = _ref138.role;
|
26531
26535
|
return role && required.includes(role);
|
26532
26536
|
});
|
26533
26537
|
}
|
@@ -26552,8 +26556,8 @@
|
|
26552
26556
|
}
|
26553
26557
|
return nodeName2;
|
26554
26558
|
}
|
26555
|
-
function isContent(
|
26556
|
-
var vNode =
|
26559
|
+
function isContent(_ref139) {
|
26560
|
+
var vNode = _ref139.vNode;
|
26557
26561
|
if (vNode.props.nodeType === 3) {
|
26558
26562
|
return vNode.props.nodeValue.trim().length > 0;
|
26559
26563
|
}
|
@@ -26711,7 +26715,7 @@
|
|
26711
26715
|
}
|
26712
26716
|
function ariaConditionalRowAttr(node) {
|
26713
26717
|
var _invalidTableRowAttrs, _invalidTableRowAttrs2;
|
26714
|
-
var
|
26718
|
+
var _ref140 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, invalidTableRowAttrs = _ref140.invalidTableRowAttrs;
|
26715
26719
|
var virtualNode = arguments.length > 2 ? arguments[2] : undefined;
|
26716
26720
|
var invalidAttrs = (_invalidTableRowAttrs = invalidTableRowAttrs === null || invalidTableRowAttrs === void 0 || (_invalidTableRowAttrs2 = invalidTableRowAttrs.filter) === null || _invalidTableRowAttrs2 === void 0 ? void 0 : _invalidTableRowAttrs2.call(invalidTableRowAttrs, function(invalidAttr) {
|
26717
26721
|
return virtualNode.hasAttr(invalidAttr);
|
@@ -26972,7 +26976,7 @@
|
|
26972
26976
|
if (!role || [ 'none', 'presentation' ].includes(role)) {
|
26973
26977
|
return true;
|
26974
26978
|
}
|
26975
|
-
var
|
26979
|
+
var _ref141 = aria_roles_default[role] || {}, accessibleNameRequired = _ref141.accessibleNameRequired;
|
26976
26980
|
if (accessibleNameRequired || _isFocusable(virtualNode)) {
|
26977
26981
|
return true;
|
26978
26982
|
}
|
@@ -28582,8 +28586,8 @@
|
|
28582
28586
|
});
|
28583
28587
|
};
|
28584
28588
|
}
|
28585
|
-
function getHelpUrl(
|
28586
|
-
var brand =
|
28589
|
+
function getHelpUrl(_ref142, ruleId, version) {
|
28590
|
+
var brand = _ref142.brand, application = _ref142.application, lang = _ref142.lang;
|
28587
28591
|
return constants_default.helpUrlBase + brand + '/' + (version || axe.version.substring(0, axe.version.lastIndexOf('.'))) + '/' + ruleId + '?application=' + encodeURIComponent(application) + (lang && lang !== 'en' ? '&lang=' + encodeURIComponent(lang) : '');
|
28588
28592
|
}
|
28589
28593
|
function setupGlobals(context) {
|
@@ -28658,7 +28662,15 @@
|
|
28658
28662
|
};
|
28659
28663
|
}));
|
28660
28664
|
if (context.initiator) {
|
28665
|
+
if (options.performanceTimer) {
|
28666
|
+
performance_timer_default.mark('auditAfterStart');
|
28667
|
+
}
|
28661
28668
|
results = audit.after(results, options);
|
28669
|
+
if (options.performanceTimer) {
|
28670
|
+
performance_timer_default.mark('auditAfterEnd');
|
28671
|
+
performance_timer_default.measure('audit.after', 'auditAfterStart', 'auditAfterEnd');
|
28672
|
+
performance_timer_default.logMeasures('audit.after');
|
28673
|
+
}
|
28662
28674
|
results.forEach(_publishMetaData);
|
28663
28675
|
results = results.map(_finalizeRuleResult);
|
28664
28676
|
}
|
@@ -28797,9 +28809,9 @@
|
|
28797
28809
|
toolOptions: options
|
28798
28810
|
});
|
28799
28811
|
}
|
28800
|
-
function normalizeRunParams(
|
28801
|
-
var
|
28802
|
-
var
|
28812
|
+
function normalizeRunParams(_ref143) {
|
28813
|
+
var _ref145, _options$reporter, _axe$_audit;
|
28814
|
+
var _ref144 = _slicedToArray(_ref143, 3), context = _ref144[0], options = _ref144[1], callback = _ref144[2];
|
28803
28815
|
var typeErr = new TypeError('axe.run arguments are invalid');
|
28804
28816
|
if (!_isContextSpec(context)) {
|
28805
28817
|
if (callback !== void 0) {
|
@@ -28820,7 +28832,7 @@
|
|
28820
28832
|
throw typeErr;
|
28821
28833
|
}
|
28822
28834
|
options = _clone(options);
|
28823
|
-
options.reporter = (
|
28835
|
+
options.reporter = (_ref145 = (_options$reporter = options.reporter) !== null && _options$reporter !== void 0 ? _options$reporter : (_axe$_audit = axe._audit) === null || _axe$_audit === void 0 ? void 0 : _axe$_audit.reporter) !== null && _ref145 !== void 0 ? _ref145 : 'v1';
|
28824
28836
|
return {
|
28825
28837
|
context: context,
|
28826
28838
|
options: options,
|
@@ -28843,10 +28855,16 @@
|
|
28843
28855
|
}
|
28844
28856
|
axe._running = true;
|
28845
28857
|
if (options.performanceTimer) {
|
28846
|
-
|
28858
|
+
performance_timer_default.start();
|
28847
28859
|
}
|
28848
28860
|
function handleRunRules(rawResults, teardown2) {
|
28849
28861
|
var respond = function respond(results) {
|
28862
|
+
if (options.performanceTimer) {
|
28863
|
+
performance_timer_default.mark('reporterEnd');
|
28864
|
+
performance_timer_default.measure('reporter', 'reporterStart', 'reporterEnd');
|
28865
|
+
performance_timer_default.logMeasures('reporter');
|
28866
|
+
performance_timer_default.end();
|
28867
|
+
}
|
28850
28868
|
axe._running = false;
|
28851
28869
|
teardown2();
|
28852
28870
|
try {
|
@@ -28864,10 +28882,10 @@
|
|
28864
28882
|
axe.log(e);
|
28865
28883
|
}
|
28866
28884
|
};
|
28867
|
-
if (options.performanceTimer) {
|
28868
|
-
axe.utils.performanceTimer.end();
|
28869
|
-
}
|
28870
28885
|
try {
|
28886
|
+
if (options.performanceTimer) {
|
28887
|
+
performance_timer_default.mark('reporterStart');
|
28888
|
+
}
|
28871
28889
|
createReport(rawResults, options, respond, wrappedReject);
|
28872
28890
|
} catch (err2) {
|
28873
28891
|
wrappedReject(err2);
|
@@ -28875,7 +28893,7 @@
|
|
28875
28893
|
}
|
28876
28894
|
function errorRunRules(err2) {
|
28877
28895
|
if (options.performanceTimer) {
|
28878
|
-
|
28896
|
+
performance_timer_default.end();
|
28879
28897
|
}
|
28880
28898
|
axe._running = false;
|
28881
28899
|
callback(err2);
|
@@ -28935,8 +28953,8 @@
|
|
28935
28953
|
axe._audit.run(contextObj, options, res, rej);
|
28936
28954
|
}).then(function(results) {
|
28937
28955
|
results = node_serializer_default.mapRawResults(results);
|
28938
|
-
var frames = contextObj.frames.map(function(
|
28939
|
-
var node =
|
28956
|
+
var frames = contextObj.frames.map(function(_ref146) {
|
28957
|
+
var node = _ref146.node;
|
28940
28958
|
return node_serializer_default.toSpec(node);
|
28941
28959
|
});
|
28942
28960
|
var environmentData;
|
@@ -28957,14 +28975,14 @@
|
|
28957
28975
|
});
|
28958
28976
|
}
|
28959
28977
|
function finishRun(partialResults) {
|
28960
|
-
var
|
28978
|
+
var _ref148, _options$reporter2, _axe$_audit2;
|
28961
28979
|
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
28962
28980
|
options = _clone(options);
|
28963
|
-
var
|
28981
|
+
var _ref147 = partialResults.find(function(r) {
|
28964
28982
|
return r.environmentData;
|
28965
|
-
}) || {}, environmentData =
|
28983
|
+
}) || {}, environmentData = _ref147.environmentData;
|
28966
28984
|
axe._audit.normalizeOptions(options);
|
28967
|
-
options.reporter = (
|
28985
|
+
options.reporter = (_ref148 = (_options$reporter2 = options.reporter) !== null && _options$reporter2 !== void 0 ? _options$reporter2 : (_axe$_audit2 = axe._audit) === null || _axe$_audit2 === void 0 ? void 0 : _axe$_audit2.reporter) !== null && _ref148 !== void 0 ? _ref148 : 'v1';
|
28968
28986
|
setFrameSpec(partialResults);
|
28969
28987
|
var results = merge_results_default(partialResults);
|
28970
28988
|
results = axe._audit.after(results, options);
|
@@ -28994,8 +29012,8 @@
|
|
28994
29012
|
_iterator23.f();
|
28995
29013
|
}
|
28996
29014
|
}
|
28997
|
-
function getMergedFrameSpecs(
|
28998
|
-
var childFrameSpecs =
|
29015
|
+
function getMergedFrameSpecs(_ref149) {
|
29016
|
+
var childFrameSpecs = _ref149.frames, parentFrameSpec = _ref149.frameSpec;
|
28999
29017
|
if (!parentFrameSpec) {
|
29000
29018
|
return childFrameSpecs;
|
29001
29019
|
}
|
@@ -29200,8 +29218,8 @@
|
|
29200
29218
|
help: 'accesskey attribute value should be unique'
|
29201
29219
|
},
|
29202
29220
|
'area-alt': {
|
29203
|
-
description: 'Ensure <area> elements of image maps have
|
29204
|
-
help: 'Active <area> elements must have
|
29221
|
+
description: 'Ensure <area> elements of image maps have alternative text',
|
29222
|
+
help: 'Active <area> elements must have alternative text'
|
29205
29223
|
},
|
29206
29224
|
'aria-allowed-attr': {
|
29207
29225
|
description: 'Ensure an element\'s role supports its ARIA attributes',
|
@@ -29416,8 +29434,8 @@
|
|
29416
29434
|
help: 'Links with the same name must have a similar purpose'
|
29417
29435
|
},
|
29418
29436
|
'image-alt': {
|
29419
|
-
description: 'Ensure <img> elements have
|
29420
|
-
help: 'Images must have
|
29437
|
+
description: 'Ensure <img> elements have alternative text or a role of none or presentation',
|
29438
|
+
help: 'Images must have alternative text'
|
29421
29439
|
},
|
29422
29440
|
'image-redundant-alt': {
|
29423
29441
|
description: 'Ensure image alternative is not repeated as text',
|
@@ -29428,8 +29446,8 @@
|
|
29428
29446
|
help: 'Input buttons must have discernible text'
|
29429
29447
|
},
|
29430
29448
|
'input-image-alt': {
|
29431
|
-
description: 'Ensure <input type="image"> elements have
|
29432
|
-
help: 'Image buttons must have
|
29449
|
+
description: 'Ensure <input type="image"> elements have alternative text',
|
29450
|
+
help: 'Image buttons must have alternative text'
|
29433
29451
|
},
|
29434
29452
|
'label-content-name-mismatch': {
|
29435
29453
|
description: 'Ensure that elements labelled through their content must have their visible text as part of their accessible name',
|
@@ -29524,8 +29542,8 @@
|
|
29524
29542
|
help: '<video> or <audio> elements must not play automatically'
|
29525
29543
|
},
|
29526
29544
|
'object-alt': {
|
29527
|
-
description: 'Ensure <object> elements have
|
29528
|
-
help: '<object> elements must have
|
29545
|
+
description: 'Ensure <object> elements have alternative text',
|
29546
|
+
help: '<object> elements must have alternative text'
|
29529
29547
|
},
|
29530
29548
|
'p-as-heading': {
|
29531
29549
|
description: 'Ensure bold, italic text and font-size is not used to style <p> elements as a heading',
|
@@ -29544,7 +29562,7 @@
|
|
29544
29562
|
help: 'All page content should be contained by landmarks'
|
29545
29563
|
},
|
29546
29564
|
'role-img-alt': {
|
29547
|
-
description: 'Ensure [role="img"] elements have
|
29565
|
+
description: 'Ensure [role="img"] elements have alternative text',
|
29548
29566
|
help: '[role="img"] elements must have an alternative text'
|
29549
29567
|
},
|
29550
29568
|
'scope-attr-valid': {
|
@@ -30120,8 +30138,8 @@
|
|
30120
30138
|
'explicit-label': {
|
30121
30139
|
impact: 'critical',
|
30122
30140
|
messages: {
|
30123
|
-
pass: '
|
30124
|
-
fail: '
|
30141
|
+
pass: 'Element has an explicit <label>',
|
30142
|
+
fail: 'Element does not have an explicit <label>',
|
30125
30143
|
incomplete: 'Unable to determine if form element has an explicit <label>'
|
30126
30144
|
}
|
30127
30145
|
},
|
@@ -30143,9 +30161,9 @@
|
|
30143
30161
|
'implicit-label': {
|
30144
30162
|
impact: 'critical',
|
30145
30163
|
messages: {
|
30146
|
-
pass: '
|
30147
|
-
fail: '
|
30148
|
-
incomplete: 'Unable to determine if form element has an implicit (wrapped
|
30164
|
+
pass: 'Element has an implicit (wrapped) <label>',
|
30165
|
+
fail: 'Element does not have an implicit (wrapped) <label>',
|
30166
|
+
incomplete: 'Unable to determine if form element has an implicit (wrapped) <label>'
|
30149
30167
|
}
|
30150
30168
|
},
|
30151
30169
|
'label-content-name-mismatch': {
|
@@ -31106,7 +31124,7 @@
|
|
31106
31124
|
attribute: 'title'
|
31107
31125
|
},
|
31108
31126
|
id: 'non-empty-title'
|
31109
|
-
}, 'presentational-role' ],
|
31127
|
+
}, 'implicit-label', 'explicit-label', 'presentational-role' ],
|
31110
31128
|
none: []
|
31111
31129
|
}, {
|
31112
31130
|
id: 'bypass',
|
@@ -31494,7 +31512,7 @@
|
|
31494
31512
|
attribute: 'title'
|
31495
31513
|
},
|
31496
31514
|
id: 'non-empty-title'
|
31497
|
-
}, 'presentational-role' ],
|
31515
|
+
}, 'implicit-label', 'explicit-label', 'presentational-role' ],
|
31498
31516
|
none: []
|
31499
31517
|
}, {
|
31500
31518
|
id: 'input-image-alt',
|
@@ -31514,7 +31532,7 @@
|
|
31514
31532
|
attribute: 'title'
|
31515
31533
|
},
|
31516
31534
|
id: 'non-empty-title'
|
31517
|
-
} ],
|
31535
|
+
}, 'implicit-label', 'explicit-label' ],
|
31518
31536
|
none: []
|
31519
31537
|
}, {
|
31520
31538
|
id: 'label-content-name-mismatch',
|