axe-core 4.7.2-canary.173f29d → 4.7.2-canary.481ade0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/axe.js +1711 -1682
- package/axe.min.js +2 -2
- package/package.json +1 -1
- package/sri-history.json +3 -3
package/axe.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! axe v4.7.2-canary.
|
|
1
|
+
/*! axe v4.7.2-canary.481ade0
|
|
2
2
|
* Copyright (c) 2023 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(obj);
|
|
23
23
|
}
|
|
24
24
|
var axe = axe || {};
|
|
25
|
-
axe.version = '4.7.2-canary.
|
|
25
|
+
axe.version = '4.7.2-canary.481ade0';
|
|
26
26
|
if (typeof define === 'function' && define.amd) {
|
|
27
27
|
define('axe-core', [], function() {
|
|
28
28
|
return axe;
|
|
@@ -532,879 +532,258 @@
|
|
|
532
532
|
__defNormalProp(obj, _typeof(key) !== 'symbol' ? key + '' : key, value);
|
|
533
533
|
return value;
|
|
534
534
|
};
|
|
535
|
-
var
|
|
535
|
+
var require_noop = __commonJS(function(exports, module) {
|
|
536
536
|
'use strict';
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
var i = 0;
|
|
556
|
-
while (i < len) {
|
|
557
|
-
var chr = s.charAt(i);
|
|
558
|
-
if (exports.identSpecialChars[chr]) {
|
|
559
|
-
result += '\\' + chr;
|
|
560
|
-
} else {
|
|
561
|
-
if (!(chr === '_' || chr === '-' || chr >= 'A' && chr <= 'Z' || chr >= 'a' && chr <= 'z' || i !== 0 && chr >= '0' && chr <= '9')) {
|
|
562
|
-
var charCode = chr.charCodeAt(0);
|
|
563
|
-
if ((charCode & 63488) === 55296) {
|
|
564
|
-
var extraCharCode = s.charCodeAt(i++);
|
|
565
|
-
if ((charCode & 64512) !== 55296 || (extraCharCode & 64512) !== 56320) {
|
|
566
|
-
throw Error('UCS-2(decode): illegal sequence');
|
|
567
|
-
}
|
|
568
|
-
charCode = ((charCode & 1023) << 10) + (extraCharCode & 1023) + 65536;
|
|
569
|
-
}
|
|
570
|
-
result += '\\' + charCode.toString(16) + ' ';
|
|
571
|
-
} else {
|
|
572
|
-
result += chr;
|
|
573
|
-
}
|
|
574
|
-
}
|
|
575
|
-
i++;
|
|
537
|
+
module.exports = function() {};
|
|
538
|
+
});
|
|
539
|
+
var require_is_value = __commonJS(function(exports, module) {
|
|
540
|
+
'use strict';
|
|
541
|
+
var _undefined = require_noop()();
|
|
542
|
+
module.exports = function(val) {
|
|
543
|
+
return val !== _undefined && val !== null;
|
|
544
|
+
};
|
|
545
|
+
});
|
|
546
|
+
var require_normalize_options = __commonJS(function(exports, module) {
|
|
547
|
+
'use strict';
|
|
548
|
+
var isValue = require_is_value();
|
|
549
|
+
var forEach = Array.prototype.forEach;
|
|
550
|
+
var create = Object.create;
|
|
551
|
+
var process2 = function process2(src, obj) {
|
|
552
|
+
var key;
|
|
553
|
+
for (key in src) {
|
|
554
|
+
obj[key] = src[key];
|
|
576
555
|
}
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
var i = 0;
|
|
584
|
-
var replacement;
|
|
585
|
-
while (i < len) {
|
|
586
|
-
var chr = s.charAt(i);
|
|
587
|
-
if (chr === '"') {
|
|
588
|
-
chr = '\\"';
|
|
589
|
-
} else if (chr === '\\') {
|
|
590
|
-
chr = '\\\\';
|
|
591
|
-
} else if ((replacement = exports.strReplacementsRev[chr]) !== void 0) {
|
|
592
|
-
chr = replacement;
|
|
556
|
+
};
|
|
557
|
+
module.exports = function(opts1) {
|
|
558
|
+
var result = create(null);
|
|
559
|
+
forEach.call(arguments, function(options) {
|
|
560
|
+
if (!isValue(options)) {
|
|
561
|
+
return;
|
|
593
562
|
}
|
|
594
|
-
result
|
|
595
|
-
|
|
563
|
+
process2(Object(options), result);
|
|
564
|
+
});
|
|
565
|
+
return result;
|
|
566
|
+
};
|
|
567
|
+
});
|
|
568
|
+
var require_is_implemented = __commonJS(function(exports, module) {
|
|
569
|
+
'use strict';
|
|
570
|
+
module.exports = function() {
|
|
571
|
+
var sign = Math.sign;
|
|
572
|
+
if (typeof sign !== 'function') {
|
|
573
|
+
return false;
|
|
596
574
|
}
|
|
597
|
-
return
|
|
598
|
-
}
|
|
599
|
-
exports.escapeStr = escapeStr;
|
|
600
|
-
exports.identSpecialChars = {
|
|
601
|
-
'!': true,
|
|
602
|
-
'"': true,
|
|
603
|
-
'#': true,
|
|
604
|
-
$: true,
|
|
605
|
-
'%': true,
|
|
606
|
-
'&': true,
|
|
607
|
-
'\'': true,
|
|
608
|
-
'(': true,
|
|
609
|
-
')': true,
|
|
610
|
-
'*': true,
|
|
611
|
-
'+': true,
|
|
612
|
-
',': true,
|
|
613
|
-
'.': true,
|
|
614
|
-
'/': true,
|
|
615
|
-
';': true,
|
|
616
|
-
'<': true,
|
|
617
|
-
'=': true,
|
|
618
|
-
'>': true,
|
|
619
|
-
'?': true,
|
|
620
|
-
'@': true,
|
|
621
|
-
'[': true,
|
|
622
|
-
'\\': true,
|
|
623
|
-
']': true,
|
|
624
|
-
'^': true,
|
|
625
|
-
'`': true,
|
|
626
|
-
'{': true,
|
|
627
|
-
'|': true,
|
|
628
|
-
'}': true,
|
|
629
|
-
'~': true
|
|
575
|
+
return sign(10) === 1 && sign(-20) === -1;
|
|
630
576
|
};
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
577
|
+
});
|
|
578
|
+
var require_shim = __commonJS(function(exports, module) {
|
|
579
|
+
'use strict';
|
|
580
|
+
module.exports = function(value) {
|
|
581
|
+
value = Number(value);
|
|
582
|
+
if (isNaN(value) || value === 0) {
|
|
583
|
+
return value;
|
|
584
|
+
}
|
|
585
|
+
return value > 0 ? 1 : -1;
|
|
637
586
|
};
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
587
|
+
});
|
|
588
|
+
var require_sign = __commonJS(function(exports, module) {
|
|
589
|
+
'use strict';
|
|
590
|
+
module.exports = require_is_implemented()() ? Math.sign : require_shim();
|
|
591
|
+
});
|
|
592
|
+
var require_to_integer = __commonJS(function(exports, module) {
|
|
593
|
+
'use strict';
|
|
594
|
+
var sign = require_sign();
|
|
595
|
+
var abs = Math.abs;
|
|
596
|
+
var floor = Math.floor;
|
|
597
|
+
module.exports = function(value) {
|
|
598
|
+
if (isNaN(value)) {
|
|
599
|
+
return 0;
|
|
600
|
+
}
|
|
601
|
+
value = Number(value);
|
|
602
|
+
if (value === 0 || !isFinite(value)) {
|
|
603
|
+
return value;
|
|
604
|
+
}
|
|
605
|
+
return sign(value) * floor(abs(value));
|
|
645
606
|
};
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
607
|
+
});
|
|
608
|
+
var require_to_pos_integer = __commonJS(function(exports, module) {
|
|
609
|
+
'use strict';
|
|
610
|
+
var toInteger = require_to_integer();
|
|
611
|
+
var max2 = Math.max;
|
|
612
|
+
module.exports = function(value) {
|
|
613
|
+
return max2(0, toInteger(value));
|
|
653
614
|
};
|
|
654
615
|
});
|
|
655
|
-
var
|
|
616
|
+
var require_resolve_length = __commonJS(function(exports, module) {
|
|
656
617
|
'use strict';
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
function getStr(quote, escapeTable) {
|
|
665
|
-
var result = '';
|
|
666
|
-
pos++;
|
|
667
|
-
chr = str.charAt(pos);
|
|
668
|
-
while (pos < l) {
|
|
669
|
-
if (chr === quote) {
|
|
670
|
-
pos++;
|
|
671
|
-
return result;
|
|
672
|
-
} else if (chr === '\\') {
|
|
673
|
-
pos++;
|
|
674
|
-
chr = str.charAt(pos);
|
|
675
|
-
var esc = void 0;
|
|
676
|
-
if (chr === quote) {
|
|
677
|
-
result += quote;
|
|
678
|
-
} else if ((esc = escapeTable[chr]) !== void 0) {
|
|
679
|
-
result += esc;
|
|
680
|
-
} else if (utils_1.isHex(chr)) {
|
|
681
|
-
var hex = chr;
|
|
682
|
-
pos++;
|
|
683
|
-
chr = str.charAt(pos);
|
|
684
|
-
while (utils_1.isHex(chr)) {
|
|
685
|
-
hex += chr;
|
|
686
|
-
pos++;
|
|
687
|
-
chr = str.charAt(pos);
|
|
688
|
-
}
|
|
689
|
-
if (chr === ' ') {
|
|
690
|
-
pos++;
|
|
691
|
-
chr = str.charAt(pos);
|
|
692
|
-
}
|
|
693
|
-
result += String.fromCharCode(parseInt(hex, 16));
|
|
694
|
-
continue;
|
|
695
|
-
} else {
|
|
696
|
-
result += chr;
|
|
697
|
-
}
|
|
698
|
-
} else {
|
|
699
|
-
result += chr;
|
|
700
|
-
}
|
|
701
|
-
pos++;
|
|
702
|
-
chr = str.charAt(pos);
|
|
618
|
+
var toPosInt = require_to_pos_integer();
|
|
619
|
+
module.exports = function(optsLength, fnLength, isAsync) {
|
|
620
|
+
var length;
|
|
621
|
+
if (isNaN(optsLength)) {
|
|
622
|
+
length = fnLength;
|
|
623
|
+
if (!(length >= 0)) {
|
|
624
|
+
return 1;
|
|
703
625
|
}
|
|
704
|
-
|
|
626
|
+
if (isAsync && length) {
|
|
627
|
+
return length - 1;
|
|
628
|
+
}
|
|
629
|
+
return length;
|
|
705
630
|
}
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
chr = str.charAt(pos);
|
|
709
|
-
while (pos < l) {
|
|
710
|
-
if (utils_1.isIdent(chr)) {
|
|
711
|
-
result += chr;
|
|
712
|
-
} else if (chr === '\\') {
|
|
713
|
-
pos++;
|
|
714
|
-
if (pos >= l) {
|
|
715
|
-
throw Error('Expected symbol but end of file reached.');
|
|
716
|
-
}
|
|
717
|
-
chr = str.charAt(pos);
|
|
718
|
-
if (utils_1.identSpecialChars[chr]) {
|
|
719
|
-
result += chr;
|
|
720
|
-
} else if (utils_1.isHex(chr)) {
|
|
721
|
-
var hex = chr;
|
|
722
|
-
pos++;
|
|
723
|
-
chr = str.charAt(pos);
|
|
724
|
-
while (utils_1.isHex(chr)) {
|
|
725
|
-
hex += chr;
|
|
726
|
-
pos++;
|
|
727
|
-
chr = str.charAt(pos);
|
|
728
|
-
}
|
|
729
|
-
if (chr === ' ') {
|
|
730
|
-
pos++;
|
|
731
|
-
chr = str.charAt(pos);
|
|
732
|
-
}
|
|
733
|
-
result += String.fromCharCode(parseInt(hex, 16));
|
|
734
|
-
continue;
|
|
735
|
-
} else {
|
|
736
|
-
result += chr;
|
|
737
|
-
}
|
|
738
|
-
} else {
|
|
739
|
-
return result;
|
|
740
|
-
}
|
|
741
|
-
pos++;
|
|
742
|
-
chr = str.charAt(pos);
|
|
743
|
-
}
|
|
744
|
-
return result;
|
|
631
|
+
if (optsLength === false) {
|
|
632
|
+
return false;
|
|
745
633
|
}
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
return result;
|
|
634
|
+
return toPosInt(optsLength);
|
|
635
|
+
};
|
|
636
|
+
});
|
|
637
|
+
var require_valid_callable = __commonJS(function(exports, module) {
|
|
638
|
+
'use strict';
|
|
639
|
+
module.exports = function(fn) {
|
|
640
|
+
if (typeof fn !== 'function') {
|
|
641
|
+
throw new TypeError(fn + ' is not a function');
|
|
755
642
|
}
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
643
|
+
return fn;
|
|
644
|
+
};
|
|
645
|
+
});
|
|
646
|
+
var require_valid_value = __commonJS(function(exports, module) {
|
|
647
|
+
'use strict';
|
|
648
|
+
var isValue = require_is_value();
|
|
649
|
+
module.exports = function(value) {
|
|
650
|
+
if (!isValue(value)) {
|
|
651
|
+
throw new TypeError('Cannot use null or undefined');
|
|
762
652
|
}
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
653
|
+
return value;
|
|
654
|
+
};
|
|
655
|
+
});
|
|
656
|
+
var require_iterate = __commonJS(function(exports, module) {
|
|
657
|
+
'use strict';
|
|
658
|
+
var callable = require_valid_callable();
|
|
659
|
+
var value = require_valid_value();
|
|
660
|
+
var bind = Function.prototype.bind;
|
|
661
|
+
var call = Function.prototype.call;
|
|
662
|
+
var keys = Object.keys;
|
|
663
|
+
var objPropertyIsEnumerable = Object.prototype.propertyIsEnumerable;
|
|
664
|
+
module.exports = function(method, defVal) {
|
|
665
|
+
return function(obj, cb) {
|
|
666
|
+
var list, thisArg = arguments[2], compareFn = arguments[3];
|
|
667
|
+
obj = Object(value(obj));
|
|
668
|
+
callable(cb);
|
|
669
|
+
list = keys(obj);
|
|
670
|
+
if (compareFn) {
|
|
671
|
+
list.sort(typeof compareFn === 'function' ? bind.call(compareFn, obj) : void 0);
|
|
767
672
|
}
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
res = {
|
|
775
|
-
type: 'selectors',
|
|
776
|
-
selectors: [ selector ]
|
|
777
|
-
};
|
|
673
|
+
if (typeof method !== 'function') {
|
|
674
|
+
method = list[method];
|
|
675
|
+
}
|
|
676
|
+
return call.call(method, list, function(key, index) {
|
|
677
|
+
if (!objPropertyIsEnumerable.call(obj, key)) {
|
|
678
|
+
return defVal;
|
|
778
679
|
}
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
680
|
+
return call.call(cb, thisArg, obj[key], key, obj, index);
|
|
681
|
+
});
|
|
682
|
+
};
|
|
683
|
+
};
|
|
684
|
+
});
|
|
685
|
+
var require_for_each = __commonJS(function(exports, module) {
|
|
686
|
+
'use strict';
|
|
687
|
+
module.exports = require_iterate()('forEach');
|
|
688
|
+
});
|
|
689
|
+
var require_registered_extensions = __commonJS(function() {
|
|
690
|
+
'use strict';
|
|
691
|
+
});
|
|
692
|
+
var require_is_implemented2 = __commonJS(function(exports, module) {
|
|
693
|
+
'use strict';
|
|
694
|
+
module.exports = function() {
|
|
695
|
+
var assign = Object.assign, obj;
|
|
696
|
+
if (typeof assign !== 'function') {
|
|
697
|
+
return false;
|
|
698
|
+
}
|
|
699
|
+
obj = {
|
|
700
|
+
foo: 'raz'
|
|
701
|
+
};
|
|
702
|
+
assign(obj, {
|
|
703
|
+
bar: 'dwa'
|
|
704
|
+
}, {
|
|
705
|
+
trzy: 'trzy'
|
|
706
|
+
});
|
|
707
|
+
return obj.foo + obj.bar + obj.trzy === 'razdwatrzy';
|
|
708
|
+
};
|
|
709
|
+
});
|
|
710
|
+
var require_is_implemented3 = __commonJS(function(exports, module) {
|
|
711
|
+
'use strict';
|
|
712
|
+
module.exports = function() {
|
|
713
|
+
try {
|
|
714
|
+
Object.keys('primitive');
|
|
715
|
+
return true;
|
|
716
|
+
} catch (e) {
|
|
717
|
+
return false;
|
|
718
|
+
}
|
|
719
|
+
};
|
|
720
|
+
});
|
|
721
|
+
var require_shim2 = __commonJS(function(exports, module) {
|
|
722
|
+
'use strict';
|
|
723
|
+
var isValue = require_is_value();
|
|
724
|
+
var keys = Object.keys;
|
|
725
|
+
module.exports = function(object) {
|
|
726
|
+
return keys(isValue(object) ? Object(object) : object);
|
|
727
|
+
};
|
|
728
|
+
});
|
|
729
|
+
var require_keys = __commonJS(function(exports, module) {
|
|
730
|
+
'use strict';
|
|
731
|
+
module.exports = require_is_implemented3()() ? Object.keys : require_shim2();
|
|
732
|
+
});
|
|
733
|
+
var require_shim3 = __commonJS(function(exports, module) {
|
|
734
|
+
'use strict';
|
|
735
|
+
var keys = require_keys();
|
|
736
|
+
var value = require_valid_value();
|
|
737
|
+
var max2 = Math.max;
|
|
738
|
+
module.exports = function(dest, src) {
|
|
739
|
+
var error, i, length = max2(arguments.length, 2), assign;
|
|
740
|
+
dest = Object(value(dest));
|
|
741
|
+
assign = function assign(key) {
|
|
742
|
+
try {
|
|
743
|
+
dest[key] = src[key];
|
|
744
|
+
} catch (e) {
|
|
745
|
+
if (!error) {
|
|
746
|
+
error = e;
|
|
782
747
|
}
|
|
783
|
-
res.selectors.push(selector);
|
|
784
748
|
}
|
|
785
|
-
|
|
749
|
+
};
|
|
750
|
+
for (i = 1; i < length; ++i) {
|
|
751
|
+
src = arguments[i];
|
|
752
|
+
keys(src).forEach(assign);
|
|
786
753
|
}
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
}
|
|
821
|
-
}
|
|
822
|
-
return selector;
|
|
823
|
-
}
|
|
824
|
-
function parseRule() {
|
|
825
|
-
var rule = null;
|
|
826
|
-
while (pos < l) {
|
|
827
|
-
chr = str.charAt(pos);
|
|
828
|
-
if (chr === '*') {
|
|
829
|
-
pos++;
|
|
830
|
-
(rule = rule || {}).tagName = '*';
|
|
831
|
-
} else if (utils_1.isIdentStart(chr) || chr === '\\') {
|
|
832
|
-
(rule = rule || {}).tagName = getIdent();
|
|
833
|
-
} else if (chr === '.') {
|
|
834
|
-
pos++;
|
|
835
|
-
rule = rule || {};
|
|
836
|
-
(rule.classNames = rule.classNames || []).push(getIdent());
|
|
837
|
-
} else if (chr === '#') {
|
|
838
|
-
pos++;
|
|
839
|
-
(rule = rule || {}).id = getIdent();
|
|
840
|
-
} else if (chr === '[') {
|
|
841
|
-
pos++;
|
|
842
|
-
skipWhitespace();
|
|
843
|
-
var attr = {
|
|
844
|
-
name: getIdent()
|
|
845
|
-
};
|
|
846
|
-
skipWhitespace();
|
|
847
|
-
if (chr === ']') {
|
|
848
|
-
pos++;
|
|
849
|
-
} else {
|
|
850
|
-
var operator = '';
|
|
851
|
-
if (attrEqualityMods[chr]) {
|
|
852
|
-
operator = chr;
|
|
853
|
-
pos++;
|
|
854
|
-
chr = str.charAt(pos);
|
|
855
|
-
}
|
|
856
|
-
if (pos >= l) {
|
|
857
|
-
throw Error('Expected "=" but end of file reached.');
|
|
858
|
-
}
|
|
859
|
-
if (chr !== '=') {
|
|
860
|
-
throw Error('Expected "=" but "' + chr + '" found.');
|
|
861
|
-
}
|
|
862
|
-
attr.operator = operator + '=';
|
|
863
|
-
pos++;
|
|
864
|
-
skipWhitespace();
|
|
865
|
-
var attrValue = '';
|
|
866
|
-
attr.valueType = 'string';
|
|
867
|
-
if (chr === '"') {
|
|
868
|
-
attrValue = getStr('"', utils_1.doubleQuotesEscapeChars);
|
|
869
|
-
} else if (chr === '\'') {
|
|
870
|
-
attrValue = getStr('\'', utils_1.singleQuoteEscapeChars);
|
|
871
|
-
} else if (substitutesEnabled && chr === '$') {
|
|
872
|
-
pos++;
|
|
873
|
-
attrValue = getIdent();
|
|
874
|
-
attr.valueType = 'substitute';
|
|
875
|
-
} else {
|
|
876
|
-
while (pos < l) {
|
|
877
|
-
if (chr === ']') {
|
|
878
|
-
break;
|
|
879
|
-
}
|
|
880
|
-
attrValue += chr;
|
|
881
|
-
pos++;
|
|
882
|
-
chr = str.charAt(pos);
|
|
883
|
-
}
|
|
884
|
-
attrValue = attrValue.trim();
|
|
885
|
-
}
|
|
886
|
-
skipWhitespace();
|
|
887
|
-
if (pos >= l) {
|
|
888
|
-
throw Error('Expected "]" but end of file reached.');
|
|
889
|
-
}
|
|
890
|
-
if (chr !== ']') {
|
|
891
|
-
throw Error('Expected "]" but "' + chr + '" found.');
|
|
892
|
-
}
|
|
893
|
-
pos++;
|
|
894
|
-
attr.value = attrValue;
|
|
895
|
-
}
|
|
896
|
-
rule = rule || {};
|
|
897
|
-
(rule.attrs = rule.attrs || []).push(attr);
|
|
898
|
-
} else if (chr === ':') {
|
|
899
|
-
pos++;
|
|
900
|
-
var pseudoName = getIdent();
|
|
901
|
-
var pseudo = {
|
|
902
|
-
name: pseudoName
|
|
903
|
-
};
|
|
904
|
-
if (chr === '(') {
|
|
905
|
-
pos++;
|
|
906
|
-
var value = '';
|
|
907
|
-
skipWhitespace();
|
|
908
|
-
if (pseudos[pseudoName] === 'selector') {
|
|
909
|
-
pseudo.valueType = 'selector';
|
|
910
|
-
value = parseSelector();
|
|
911
|
-
} else {
|
|
912
|
-
pseudo.valueType = pseudos[pseudoName] || 'string';
|
|
913
|
-
if (chr === '"') {
|
|
914
|
-
value = getStr('"', utils_1.doubleQuotesEscapeChars);
|
|
915
|
-
} else if (chr === '\'') {
|
|
916
|
-
value = getStr('\'', utils_1.singleQuoteEscapeChars);
|
|
917
|
-
} else if (substitutesEnabled && chr === '$') {
|
|
918
|
-
pos++;
|
|
919
|
-
value = getIdent();
|
|
920
|
-
pseudo.valueType = 'substitute';
|
|
921
|
-
} else {
|
|
922
|
-
while (pos < l) {
|
|
923
|
-
if (chr === ')') {
|
|
924
|
-
break;
|
|
925
|
-
}
|
|
926
|
-
value += chr;
|
|
927
|
-
pos++;
|
|
928
|
-
chr = str.charAt(pos);
|
|
929
|
-
}
|
|
930
|
-
value = value.trim();
|
|
931
|
-
}
|
|
932
|
-
skipWhitespace();
|
|
933
|
-
}
|
|
934
|
-
if (pos >= l) {
|
|
935
|
-
throw Error('Expected ")" but end of file reached.');
|
|
936
|
-
}
|
|
937
|
-
if (chr !== ')') {
|
|
938
|
-
throw Error('Expected ")" but "' + chr + '" found.');
|
|
939
|
-
}
|
|
940
|
-
pos++;
|
|
941
|
-
pseudo.value = value;
|
|
942
|
-
}
|
|
943
|
-
rule = rule || {};
|
|
944
|
-
(rule.pseudos = rule.pseudos || []).push(pseudo);
|
|
945
|
-
} else {
|
|
946
|
-
break;
|
|
947
|
-
}
|
|
948
|
-
}
|
|
949
|
-
return rule;
|
|
950
|
-
}
|
|
951
|
-
return parse3();
|
|
952
|
-
}
|
|
953
|
-
exports.parseCssSelector = parseCssSelector;
|
|
954
|
-
});
|
|
955
|
-
var require_render = __commonJS(function(exports) {
|
|
956
|
-
'use strict';
|
|
957
|
-
Object.defineProperty(exports, '__esModule', {
|
|
958
|
-
value: true
|
|
959
|
-
});
|
|
960
|
-
var utils_1 = require_utils();
|
|
961
|
-
function renderEntity(entity) {
|
|
962
|
-
var res = '';
|
|
963
|
-
switch (entity.type) {
|
|
964
|
-
case 'ruleSet':
|
|
965
|
-
var currentEntity = entity.rule;
|
|
966
|
-
var parts = [];
|
|
967
|
-
while (currentEntity) {
|
|
968
|
-
if (currentEntity.nestingOperator) {
|
|
969
|
-
parts.push(currentEntity.nestingOperator);
|
|
970
|
-
}
|
|
971
|
-
parts.push(renderEntity(currentEntity));
|
|
972
|
-
currentEntity = currentEntity.rule;
|
|
973
|
-
}
|
|
974
|
-
res = parts.join(' ');
|
|
975
|
-
break;
|
|
976
|
-
|
|
977
|
-
case 'selectors':
|
|
978
|
-
res = entity.selectors.map(renderEntity).join(', ');
|
|
979
|
-
break;
|
|
980
|
-
|
|
981
|
-
case 'rule':
|
|
982
|
-
if (entity.tagName) {
|
|
983
|
-
if (entity.tagName === '*') {
|
|
984
|
-
res = '*';
|
|
985
|
-
} else {
|
|
986
|
-
res = utils_1.escapeIdentifier(entity.tagName);
|
|
987
|
-
}
|
|
988
|
-
}
|
|
989
|
-
if (entity.id) {
|
|
990
|
-
res += '#' + utils_1.escapeIdentifier(entity.id);
|
|
991
|
-
}
|
|
992
|
-
if (entity.classNames) {
|
|
993
|
-
res += entity.classNames.map(function(cn) {
|
|
994
|
-
return '.' + utils_1.escapeIdentifier(cn);
|
|
995
|
-
}).join('');
|
|
996
|
-
}
|
|
997
|
-
if (entity.attrs) {
|
|
998
|
-
res += entity.attrs.map(function(attr) {
|
|
999
|
-
if ('operator' in attr) {
|
|
1000
|
-
if (attr.valueType === 'substitute') {
|
|
1001
|
-
return '[' + utils_1.escapeIdentifier(attr.name) + attr.operator + '$' + attr.value + ']';
|
|
1002
|
-
} else {
|
|
1003
|
-
return '[' + utils_1.escapeIdentifier(attr.name) + attr.operator + utils_1.escapeStr(attr.value) + ']';
|
|
1004
|
-
}
|
|
1005
|
-
} else {
|
|
1006
|
-
return '[' + utils_1.escapeIdentifier(attr.name) + ']';
|
|
1007
|
-
}
|
|
1008
|
-
}).join('');
|
|
1009
|
-
}
|
|
1010
|
-
if (entity.pseudos) {
|
|
1011
|
-
res += entity.pseudos.map(function(pseudo) {
|
|
1012
|
-
if (pseudo.valueType) {
|
|
1013
|
-
if (pseudo.valueType === 'selector') {
|
|
1014
|
-
return ':' + utils_1.escapeIdentifier(pseudo.name) + '(' + renderEntity(pseudo.value) + ')';
|
|
1015
|
-
} else if (pseudo.valueType === 'substitute') {
|
|
1016
|
-
return ':' + utils_1.escapeIdentifier(pseudo.name) + '($' + pseudo.value + ')';
|
|
1017
|
-
} else if (pseudo.valueType === 'numeric') {
|
|
1018
|
-
return ':' + utils_1.escapeIdentifier(pseudo.name) + '(' + pseudo.value + ')';
|
|
1019
|
-
} else {
|
|
1020
|
-
return ':' + utils_1.escapeIdentifier(pseudo.name) + '(' + utils_1.escapeIdentifier(pseudo.value) + ')';
|
|
1021
|
-
}
|
|
1022
|
-
} else {
|
|
1023
|
-
return ':' + utils_1.escapeIdentifier(pseudo.name);
|
|
1024
|
-
}
|
|
1025
|
-
}).join('');
|
|
1026
|
-
}
|
|
1027
|
-
break;
|
|
1028
|
-
|
|
1029
|
-
default:
|
|
1030
|
-
throw Error('Unknown entity type: "' + entity.type + '".');
|
|
1031
|
-
}
|
|
1032
|
-
return res;
|
|
1033
|
-
}
|
|
1034
|
-
exports.renderEntity = renderEntity;
|
|
1035
|
-
});
|
|
1036
|
-
var require_lib = __commonJS(function(exports) {
|
|
1037
|
-
'use strict';
|
|
1038
|
-
Object.defineProperty(exports, '__esModule', {
|
|
1039
|
-
value: true
|
|
1040
|
-
});
|
|
1041
|
-
var parser_context_1 = require_parser_context();
|
|
1042
|
-
var render_1 = require_render();
|
|
1043
|
-
var CssSelectorParser3 = function() {
|
|
1044
|
-
function CssSelectorParser4() {
|
|
1045
|
-
this.pseudos = {};
|
|
1046
|
-
this.attrEqualityMods = {};
|
|
1047
|
-
this.ruleNestingOperators = {};
|
|
1048
|
-
this.substitutesEnabled = false;
|
|
1049
|
-
}
|
|
1050
|
-
CssSelectorParser4.prototype.registerSelectorPseudos = function() {
|
|
1051
|
-
var pseudos = [];
|
|
1052
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
1053
|
-
pseudos[_i] = arguments[_i];
|
|
1054
|
-
}
|
|
1055
|
-
for (var _a = 0, pseudos_1 = pseudos; _a < pseudos_1.length; _a++) {
|
|
1056
|
-
var pseudo = pseudos_1[_a];
|
|
1057
|
-
this.pseudos[pseudo] = 'selector';
|
|
1058
|
-
}
|
|
1059
|
-
return this;
|
|
1060
|
-
};
|
|
1061
|
-
CssSelectorParser4.prototype.unregisterSelectorPseudos = function() {
|
|
1062
|
-
var pseudos = [];
|
|
1063
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
1064
|
-
pseudos[_i] = arguments[_i];
|
|
1065
|
-
}
|
|
1066
|
-
for (var _a = 0, pseudos_2 = pseudos; _a < pseudos_2.length; _a++) {
|
|
1067
|
-
var pseudo = pseudos_2[_a];
|
|
1068
|
-
delete this.pseudos[pseudo];
|
|
1069
|
-
}
|
|
1070
|
-
return this;
|
|
1071
|
-
};
|
|
1072
|
-
CssSelectorParser4.prototype.registerNumericPseudos = function() {
|
|
1073
|
-
var pseudos = [];
|
|
1074
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
1075
|
-
pseudos[_i] = arguments[_i];
|
|
1076
|
-
}
|
|
1077
|
-
for (var _a = 0, pseudos_3 = pseudos; _a < pseudos_3.length; _a++) {
|
|
1078
|
-
var pseudo = pseudos_3[_a];
|
|
1079
|
-
this.pseudos[pseudo] = 'numeric';
|
|
1080
|
-
}
|
|
1081
|
-
return this;
|
|
1082
|
-
};
|
|
1083
|
-
CssSelectorParser4.prototype.unregisterNumericPseudos = function() {
|
|
1084
|
-
var pseudos = [];
|
|
1085
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
1086
|
-
pseudos[_i] = arguments[_i];
|
|
1087
|
-
}
|
|
1088
|
-
for (var _a = 0, pseudos_4 = pseudos; _a < pseudos_4.length; _a++) {
|
|
1089
|
-
var pseudo = pseudos_4[_a];
|
|
1090
|
-
delete this.pseudos[pseudo];
|
|
1091
|
-
}
|
|
1092
|
-
return this;
|
|
1093
|
-
};
|
|
1094
|
-
CssSelectorParser4.prototype.registerNestingOperators = function() {
|
|
1095
|
-
var operators = [];
|
|
1096
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
1097
|
-
operators[_i] = arguments[_i];
|
|
1098
|
-
}
|
|
1099
|
-
for (var _a = 0, operators_1 = operators; _a < operators_1.length; _a++) {
|
|
1100
|
-
var operator = operators_1[_a];
|
|
1101
|
-
this.ruleNestingOperators[operator] = true;
|
|
1102
|
-
}
|
|
1103
|
-
return this;
|
|
1104
|
-
};
|
|
1105
|
-
CssSelectorParser4.prototype.unregisterNestingOperators = function() {
|
|
1106
|
-
var operators = [];
|
|
1107
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
1108
|
-
operators[_i] = arguments[_i];
|
|
1109
|
-
}
|
|
1110
|
-
for (var _a = 0, operators_2 = operators; _a < operators_2.length; _a++) {
|
|
1111
|
-
var operator = operators_2[_a];
|
|
1112
|
-
delete this.ruleNestingOperators[operator];
|
|
1113
|
-
}
|
|
1114
|
-
return this;
|
|
1115
|
-
};
|
|
1116
|
-
CssSelectorParser4.prototype.registerAttrEqualityMods = function() {
|
|
1117
|
-
var mods = [];
|
|
1118
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
1119
|
-
mods[_i] = arguments[_i];
|
|
1120
|
-
}
|
|
1121
|
-
for (var _a = 0, mods_1 = mods; _a < mods_1.length; _a++) {
|
|
1122
|
-
var mod = mods_1[_a];
|
|
1123
|
-
this.attrEqualityMods[mod] = true;
|
|
1124
|
-
}
|
|
1125
|
-
return this;
|
|
1126
|
-
};
|
|
1127
|
-
CssSelectorParser4.prototype.unregisterAttrEqualityMods = function() {
|
|
1128
|
-
var mods = [];
|
|
1129
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
1130
|
-
mods[_i] = arguments[_i];
|
|
1131
|
-
}
|
|
1132
|
-
for (var _a = 0, mods_2 = mods; _a < mods_2.length; _a++) {
|
|
1133
|
-
var mod = mods_2[_a];
|
|
1134
|
-
delete this.attrEqualityMods[mod];
|
|
1135
|
-
}
|
|
1136
|
-
return this;
|
|
1137
|
-
};
|
|
1138
|
-
CssSelectorParser4.prototype.enableSubstitutes = function() {
|
|
1139
|
-
this.substitutesEnabled = true;
|
|
1140
|
-
return this;
|
|
1141
|
-
};
|
|
1142
|
-
CssSelectorParser4.prototype.disableSubstitutes = function() {
|
|
1143
|
-
this.substitutesEnabled = false;
|
|
1144
|
-
return this;
|
|
1145
|
-
};
|
|
1146
|
-
CssSelectorParser4.prototype.parse = function(str) {
|
|
1147
|
-
return parser_context_1.parseCssSelector(str, 0, this.pseudos, this.attrEqualityMods, this.ruleNestingOperators, this.substitutesEnabled);
|
|
1148
|
-
};
|
|
1149
|
-
CssSelectorParser4.prototype.render = function(path) {
|
|
1150
|
-
return render_1.renderEntity(path).trim();
|
|
1151
|
-
};
|
|
1152
|
-
return CssSelectorParser4;
|
|
1153
|
-
}();
|
|
1154
|
-
exports.CssSelectorParser = CssSelectorParser3;
|
|
1155
|
-
});
|
|
1156
|
-
var require_noop = __commonJS(function(exports, module) {
|
|
1157
|
-
'use strict';
|
|
1158
|
-
module.exports = function() {};
|
|
1159
|
-
});
|
|
1160
|
-
var require_is_value = __commonJS(function(exports, module) {
|
|
1161
|
-
'use strict';
|
|
1162
|
-
var _undefined = require_noop()();
|
|
1163
|
-
module.exports = function(val) {
|
|
1164
|
-
return val !== _undefined && val !== null;
|
|
1165
|
-
};
|
|
1166
|
-
});
|
|
1167
|
-
var require_normalize_options = __commonJS(function(exports, module) {
|
|
1168
|
-
'use strict';
|
|
1169
|
-
var isValue = require_is_value();
|
|
1170
|
-
var forEach = Array.prototype.forEach;
|
|
1171
|
-
var create = Object.create;
|
|
1172
|
-
var process2 = function process2(src, obj) {
|
|
1173
|
-
var key;
|
|
1174
|
-
for (key in src) {
|
|
1175
|
-
obj[key] = src[key];
|
|
1176
|
-
}
|
|
1177
|
-
};
|
|
1178
|
-
module.exports = function(opts1) {
|
|
1179
|
-
var result = create(null);
|
|
1180
|
-
forEach.call(arguments, function(options) {
|
|
1181
|
-
if (!isValue(options)) {
|
|
1182
|
-
return;
|
|
1183
|
-
}
|
|
1184
|
-
process2(Object(options), result);
|
|
1185
|
-
});
|
|
1186
|
-
return result;
|
|
1187
|
-
};
|
|
1188
|
-
});
|
|
1189
|
-
var require_is_implemented = __commonJS(function(exports, module) {
|
|
1190
|
-
'use strict';
|
|
1191
|
-
module.exports = function() {
|
|
1192
|
-
var sign = Math.sign;
|
|
1193
|
-
if (typeof sign !== 'function') {
|
|
1194
|
-
return false;
|
|
1195
|
-
}
|
|
1196
|
-
return sign(10) === 1 && sign(-20) === -1;
|
|
1197
|
-
};
|
|
1198
|
-
});
|
|
1199
|
-
var require_shim = __commonJS(function(exports, module) {
|
|
1200
|
-
'use strict';
|
|
1201
|
-
module.exports = function(value) {
|
|
1202
|
-
value = Number(value);
|
|
1203
|
-
if (isNaN(value) || value === 0) {
|
|
1204
|
-
return value;
|
|
1205
|
-
}
|
|
1206
|
-
return value > 0 ? 1 : -1;
|
|
1207
|
-
};
|
|
1208
|
-
});
|
|
1209
|
-
var require_sign = __commonJS(function(exports, module) {
|
|
1210
|
-
'use strict';
|
|
1211
|
-
module.exports = require_is_implemented()() ? Math.sign : require_shim();
|
|
1212
|
-
});
|
|
1213
|
-
var require_to_integer = __commonJS(function(exports, module) {
|
|
1214
|
-
'use strict';
|
|
1215
|
-
var sign = require_sign();
|
|
1216
|
-
var abs = Math.abs;
|
|
1217
|
-
var floor = Math.floor;
|
|
1218
|
-
module.exports = function(value) {
|
|
1219
|
-
if (isNaN(value)) {
|
|
1220
|
-
return 0;
|
|
1221
|
-
}
|
|
1222
|
-
value = Number(value);
|
|
1223
|
-
if (value === 0 || !isFinite(value)) {
|
|
1224
|
-
return value;
|
|
1225
|
-
}
|
|
1226
|
-
return sign(value) * floor(abs(value));
|
|
1227
|
-
};
|
|
1228
|
-
});
|
|
1229
|
-
var require_to_pos_integer = __commonJS(function(exports, module) {
|
|
1230
|
-
'use strict';
|
|
1231
|
-
var toInteger = require_to_integer();
|
|
1232
|
-
var max2 = Math.max;
|
|
1233
|
-
module.exports = function(value) {
|
|
1234
|
-
return max2(0, toInteger(value));
|
|
1235
|
-
};
|
|
1236
|
-
});
|
|
1237
|
-
var require_resolve_length = __commonJS(function(exports, module) {
|
|
1238
|
-
'use strict';
|
|
1239
|
-
var toPosInt = require_to_pos_integer();
|
|
1240
|
-
module.exports = function(optsLength, fnLength, isAsync) {
|
|
1241
|
-
var length;
|
|
1242
|
-
if (isNaN(optsLength)) {
|
|
1243
|
-
length = fnLength;
|
|
1244
|
-
if (!(length >= 0)) {
|
|
1245
|
-
return 1;
|
|
1246
|
-
}
|
|
1247
|
-
if (isAsync && length) {
|
|
1248
|
-
return length - 1;
|
|
1249
|
-
}
|
|
1250
|
-
return length;
|
|
1251
|
-
}
|
|
1252
|
-
if (optsLength === false) {
|
|
1253
|
-
return false;
|
|
1254
|
-
}
|
|
1255
|
-
return toPosInt(optsLength);
|
|
1256
|
-
};
|
|
1257
|
-
});
|
|
1258
|
-
var require_valid_callable = __commonJS(function(exports, module) {
|
|
1259
|
-
'use strict';
|
|
1260
|
-
module.exports = function(fn) {
|
|
1261
|
-
if (typeof fn !== 'function') {
|
|
1262
|
-
throw new TypeError(fn + ' is not a function');
|
|
1263
|
-
}
|
|
1264
|
-
return fn;
|
|
1265
|
-
};
|
|
1266
|
-
});
|
|
1267
|
-
var require_valid_value = __commonJS(function(exports, module) {
|
|
1268
|
-
'use strict';
|
|
1269
|
-
var isValue = require_is_value();
|
|
1270
|
-
module.exports = function(value) {
|
|
1271
|
-
if (!isValue(value)) {
|
|
1272
|
-
throw new TypeError('Cannot use null or undefined');
|
|
1273
|
-
}
|
|
1274
|
-
return value;
|
|
1275
|
-
};
|
|
1276
|
-
});
|
|
1277
|
-
var require_iterate = __commonJS(function(exports, module) {
|
|
1278
|
-
'use strict';
|
|
1279
|
-
var callable = require_valid_callable();
|
|
1280
|
-
var value = require_valid_value();
|
|
1281
|
-
var bind = Function.prototype.bind;
|
|
1282
|
-
var call = Function.prototype.call;
|
|
1283
|
-
var keys = Object.keys;
|
|
1284
|
-
var objPropertyIsEnumerable = Object.prototype.propertyIsEnumerable;
|
|
1285
|
-
module.exports = function(method, defVal) {
|
|
1286
|
-
return function(obj, cb) {
|
|
1287
|
-
var list, thisArg = arguments[2], compareFn = arguments[3];
|
|
1288
|
-
obj = Object(value(obj));
|
|
1289
|
-
callable(cb);
|
|
1290
|
-
list = keys(obj);
|
|
1291
|
-
if (compareFn) {
|
|
1292
|
-
list.sort(typeof compareFn === 'function' ? bind.call(compareFn, obj) : void 0);
|
|
1293
|
-
}
|
|
1294
|
-
if (typeof method !== 'function') {
|
|
1295
|
-
method = list[method];
|
|
1296
|
-
}
|
|
1297
|
-
return call.call(method, list, function(key, index) {
|
|
1298
|
-
if (!objPropertyIsEnumerable.call(obj, key)) {
|
|
1299
|
-
return defVal;
|
|
1300
|
-
}
|
|
1301
|
-
return call.call(cb, thisArg, obj[key], key, obj, index);
|
|
1302
|
-
});
|
|
1303
|
-
};
|
|
1304
|
-
};
|
|
1305
|
-
});
|
|
1306
|
-
var require_for_each = __commonJS(function(exports, module) {
|
|
1307
|
-
'use strict';
|
|
1308
|
-
module.exports = require_iterate()('forEach');
|
|
1309
|
-
});
|
|
1310
|
-
var require_registered_extensions = __commonJS(function() {
|
|
1311
|
-
'use strict';
|
|
1312
|
-
});
|
|
1313
|
-
var require_is_implemented2 = __commonJS(function(exports, module) {
|
|
1314
|
-
'use strict';
|
|
1315
|
-
module.exports = function() {
|
|
1316
|
-
var assign = Object.assign, obj;
|
|
1317
|
-
if (typeof assign !== 'function') {
|
|
1318
|
-
return false;
|
|
1319
|
-
}
|
|
1320
|
-
obj = {
|
|
1321
|
-
foo: 'raz'
|
|
1322
|
-
};
|
|
1323
|
-
assign(obj, {
|
|
1324
|
-
bar: 'dwa'
|
|
1325
|
-
}, {
|
|
1326
|
-
trzy: 'trzy'
|
|
1327
|
-
});
|
|
1328
|
-
return obj.foo + obj.bar + obj.trzy === 'razdwatrzy';
|
|
1329
|
-
};
|
|
1330
|
-
});
|
|
1331
|
-
var require_is_implemented3 = __commonJS(function(exports, module) {
|
|
1332
|
-
'use strict';
|
|
1333
|
-
module.exports = function() {
|
|
1334
|
-
try {
|
|
1335
|
-
Object.keys('primitive');
|
|
1336
|
-
return true;
|
|
1337
|
-
} catch (e) {
|
|
1338
|
-
return false;
|
|
1339
|
-
}
|
|
1340
|
-
};
|
|
1341
|
-
});
|
|
1342
|
-
var require_shim2 = __commonJS(function(exports, module) {
|
|
1343
|
-
'use strict';
|
|
1344
|
-
var isValue = require_is_value();
|
|
1345
|
-
var keys = Object.keys;
|
|
1346
|
-
module.exports = function(object) {
|
|
1347
|
-
return keys(isValue(object) ? Object(object) : object);
|
|
1348
|
-
};
|
|
1349
|
-
});
|
|
1350
|
-
var require_keys = __commonJS(function(exports, module) {
|
|
1351
|
-
'use strict';
|
|
1352
|
-
module.exports = require_is_implemented3()() ? Object.keys : require_shim2();
|
|
1353
|
-
});
|
|
1354
|
-
var require_shim3 = __commonJS(function(exports, module) {
|
|
1355
|
-
'use strict';
|
|
1356
|
-
var keys = require_keys();
|
|
1357
|
-
var value = require_valid_value();
|
|
1358
|
-
var max2 = Math.max;
|
|
1359
|
-
module.exports = function(dest, src) {
|
|
1360
|
-
var error, i, length = max2(arguments.length, 2), assign;
|
|
1361
|
-
dest = Object(value(dest));
|
|
1362
|
-
assign = function assign(key) {
|
|
1363
|
-
try {
|
|
1364
|
-
dest[key] = src[key];
|
|
1365
|
-
} catch (e) {
|
|
1366
|
-
if (!error) {
|
|
1367
|
-
error = e;
|
|
1368
|
-
}
|
|
1369
|
-
}
|
|
1370
|
-
};
|
|
1371
|
-
for (i = 1; i < length; ++i) {
|
|
1372
|
-
src = arguments[i];
|
|
1373
|
-
keys(src).forEach(assign);
|
|
1374
|
-
}
|
|
1375
|
-
if (error !== void 0) {
|
|
1376
|
-
throw error;
|
|
1377
|
-
}
|
|
1378
|
-
return dest;
|
|
1379
|
-
};
|
|
1380
|
-
});
|
|
1381
|
-
var require_assign = __commonJS(function(exports, module) {
|
|
1382
|
-
'use strict';
|
|
1383
|
-
module.exports = require_is_implemented2()() ? Object.assign : require_shim3();
|
|
1384
|
-
});
|
|
1385
|
-
var require_is_object = __commonJS(function(exports, module) {
|
|
1386
|
-
'use strict';
|
|
1387
|
-
var isValue = require_is_value();
|
|
1388
|
-
var map = {
|
|
1389
|
-
function: true,
|
|
1390
|
-
object: true
|
|
1391
|
-
};
|
|
1392
|
-
module.exports = function(value) {
|
|
1393
|
-
return isValue(value) && map[_typeof(value)] || false;
|
|
1394
|
-
};
|
|
1395
|
-
});
|
|
1396
|
-
var require_custom = __commonJS(function(exports, module) {
|
|
1397
|
-
'use strict';
|
|
1398
|
-
var assign = require_assign();
|
|
1399
|
-
var isObject = require_is_object();
|
|
1400
|
-
var isValue = require_is_value();
|
|
1401
|
-
var captureStackTrace = Error.captureStackTrace;
|
|
1402
|
-
module.exports = function(message) {
|
|
1403
|
-
var err2 = new Error(message), code = arguments[1], ext = arguments[2];
|
|
1404
|
-
if (!isValue(ext)) {
|
|
1405
|
-
if (isObject(code)) {
|
|
1406
|
-
ext = code;
|
|
1407
|
-
code = null;
|
|
754
|
+
if (error !== void 0) {
|
|
755
|
+
throw error;
|
|
756
|
+
}
|
|
757
|
+
return dest;
|
|
758
|
+
};
|
|
759
|
+
});
|
|
760
|
+
var require_assign = __commonJS(function(exports, module) {
|
|
761
|
+
'use strict';
|
|
762
|
+
module.exports = require_is_implemented2()() ? Object.assign : require_shim3();
|
|
763
|
+
});
|
|
764
|
+
var require_is_object = __commonJS(function(exports, module) {
|
|
765
|
+
'use strict';
|
|
766
|
+
var isValue = require_is_value();
|
|
767
|
+
var map = {
|
|
768
|
+
function: true,
|
|
769
|
+
object: true
|
|
770
|
+
};
|
|
771
|
+
module.exports = function(value) {
|
|
772
|
+
return isValue(value) && map[_typeof(value)] || false;
|
|
773
|
+
};
|
|
774
|
+
});
|
|
775
|
+
var require_custom = __commonJS(function(exports, module) {
|
|
776
|
+
'use strict';
|
|
777
|
+
var assign = require_assign();
|
|
778
|
+
var isObject = require_is_object();
|
|
779
|
+
var isValue = require_is_value();
|
|
780
|
+
var captureStackTrace = Error.captureStackTrace;
|
|
781
|
+
module.exports = function(message) {
|
|
782
|
+
var err2 = new Error(message), code = arguments[1], ext = arguments[2];
|
|
783
|
+
if (!isValue(ext)) {
|
|
784
|
+
if (isObject(code)) {
|
|
785
|
+
ext = code;
|
|
786
|
+
code = null;
|
|
1408
787
|
}
|
|
1409
788
|
}
|
|
1410
789
|
if (isValue(ext)) {
|
|
@@ -1707,21 +1086,21 @@
|
|
|
1707
1086
|
var descriptors;
|
|
1708
1087
|
var base;
|
|
1709
1088
|
on = function on(type2, listener) {
|
|
1710
|
-
var
|
|
1089
|
+
var data;
|
|
1711
1090
|
callable(listener);
|
|
1712
1091
|
if (!hasOwnProperty2.call(this, '__ee__')) {
|
|
1713
|
-
|
|
1092
|
+
data = descriptor.value = create(null);
|
|
1714
1093
|
defineProperty(this, '__ee__', descriptor);
|
|
1715
1094
|
descriptor.value = null;
|
|
1716
1095
|
} else {
|
|
1717
|
-
|
|
1096
|
+
data = this.__ee__;
|
|
1718
1097
|
}
|
|
1719
|
-
if (!
|
|
1720
|
-
|
|
1721
|
-
} else if (_typeof(
|
|
1722
|
-
|
|
1098
|
+
if (!data[type2]) {
|
|
1099
|
+
data[type2] = listener;
|
|
1100
|
+
} else if (_typeof(data[type2]) === 'object') {
|
|
1101
|
+
data[type2].push(listener);
|
|
1723
1102
|
} else {
|
|
1724
|
-
|
|
1103
|
+
data[type2] = [ data[type2], listener ];
|
|
1725
1104
|
}
|
|
1726
1105
|
return this;
|
|
1727
1106
|
};
|
|
@@ -1737,21 +1116,21 @@
|
|
|
1737
1116
|
return this;
|
|
1738
1117
|
};
|
|
1739
1118
|
off = function off(type2, listener) {
|
|
1740
|
-
var
|
|
1119
|
+
var data, listeners, candidate, i;
|
|
1741
1120
|
callable(listener);
|
|
1742
1121
|
if (!hasOwnProperty2.call(this, '__ee__')) {
|
|
1743
1122
|
return this;
|
|
1744
1123
|
}
|
|
1745
|
-
|
|
1746
|
-
if (!
|
|
1124
|
+
data = this.__ee__;
|
|
1125
|
+
if (!data[type2]) {
|
|
1747
1126
|
return this;
|
|
1748
1127
|
}
|
|
1749
|
-
listeners =
|
|
1128
|
+
listeners = data[type2];
|
|
1750
1129
|
if (_typeof(listeners) === 'object') {
|
|
1751
1130
|
for (i = 0; candidate = listeners[i]; ++i) {
|
|
1752
1131
|
if (candidate === listener || candidate.__eeOnceListener__ === listener) {
|
|
1753
1132
|
if (listeners.length === 2) {
|
|
1754
|
-
|
|
1133
|
+
data[type2] = listeners[i ? 0 : 1];
|
|
1755
1134
|
} else {
|
|
1756
1135
|
listeners.splice(i, 1);
|
|
1757
1136
|
}
|
|
@@ -1759,7 +1138,7 @@
|
|
|
1759
1138
|
}
|
|
1760
1139
|
} else {
|
|
1761
1140
|
if (listeners === listener || listeners.__eeOnceListener__ === listener) {
|
|
1762
|
-
delete
|
|
1141
|
+
delete data[type2];
|
|
1763
1142
|
}
|
|
1764
1143
|
}
|
|
1765
1144
|
return this;
|
|
@@ -2986,640 +2365,1261 @@
|
|
|
2986
2365
|
args = currentArgs;
|
|
2987
2366
|
currentCallback = currentContext = currentArgs = null;
|
|
2988
2367
|
nextTick(function() {
|
|
2989
|
-
var
|
|
2368
|
+
var data;
|
|
2990
2369
|
if (hasOwnProperty.call(cache2, id)) {
|
|
2991
|
-
|
|
2370
|
+
data = cache2[id];
|
|
2992
2371
|
conf.emit('getasync', id, args, context);
|
|
2993
|
-
apply.call(cb,
|
|
2372
|
+
apply.call(cb, data.context, data.args);
|
|
2994
2373
|
} else {
|
|
2995
2374
|
currentCallback = cb;
|
|
2996
2375
|
currentContext = context;
|
|
2997
2376
|
currentArgs = args;
|
|
2998
2377
|
base.apply(context, args);
|
|
2999
2378
|
}
|
|
3000
|
-
});
|
|
3001
|
-
});
|
|
3002
|
-
conf.original = function() {
|
|
3003
|
-
var args, cb, origCb, result;
|
|
3004
|
-
if (!currentCallback) {
|
|
3005
|
-
return apply.call(original, this, arguments);
|
|
2379
|
+
});
|
|
2380
|
+
});
|
|
2381
|
+
conf.original = function() {
|
|
2382
|
+
var args, cb, origCb, result;
|
|
2383
|
+
if (!currentCallback) {
|
|
2384
|
+
return apply.call(original, this, arguments);
|
|
2385
|
+
}
|
|
2386
|
+
args = aFrom(arguments);
|
|
2387
|
+
cb = function self2(err2) {
|
|
2388
|
+
var cb2, args2, id = self2.id;
|
|
2389
|
+
if (id == null) {
|
|
2390
|
+
nextTick(apply.bind(self2, this, arguments));
|
|
2391
|
+
return void 0;
|
|
2392
|
+
}
|
|
2393
|
+
delete self2.id;
|
|
2394
|
+
cb2 = waiting[id];
|
|
2395
|
+
delete waiting[id];
|
|
2396
|
+
if (!cb2) {
|
|
2397
|
+
return void 0;
|
|
2398
|
+
}
|
|
2399
|
+
args2 = aFrom(arguments);
|
|
2400
|
+
if (conf.has(id)) {
|
|
2401
|
+
if (err2) {
|
|
2402
|
+
conf['delete'](id);
|
|
2403
|
+
} else {
|
|
2404
|
+
cache2[id] = {
|
|
2405
|
+
context: this,
|
|
2406
|
+
args: args2
|
|
2407
|
+
};
|
|
2408
|
+
conf.emit('setasync', id, typeof cb2 === 'function' ? 1 : cb2.length);
|
|
2409
|
+
}
|
|
2410
|
+
}
|
|
2411
|
+
if (typeof cb2 === 'function') {
|
|
2412
|
+
result = apply.call(cb2, this, args2);
|
|
2413
|
+
} else {
|
|
2414
|
+
cb2.forEach(function(cb3) {
|
|
2415
|
+
result = apply.call(cb3, this, args2);
|
|
2416
|
+
}, this);
|
|
2417
|
+
}
|
|
2418
|
+
return result;
|
|
2419
|
+
};
|
|
2420
|
+
origCb = currentCallback;
|
|
2421
|
+
currentCallback = currentContext = currentArgs = null;
|
|
2422
|
+
args.push(cb);
|
|
2423
|
+
result = apply.call(original, this, args);
|
|
2424
|
+
cb.cb = origCb;
|
|
2425
|
+
currentCallback = cb;
|
|
2426
|
+
return result;
|
|
2427
|
+
};
|
|
2428
|
+
conf.on('set', function(id) {
|
|
2429
|
+
if (!currentCallback) {
|
|
2430
|
+
conf['delete'](id);
|
|
2431
|
+
return;
|
|
2432
|
+
}
|
|
2433
|
+
if (waiting[id]) {
|
|
2434
|
+
if (typeof waiting[id] === 'function') {
|
|
2435
|
+
waiting[id] = [ waiting[id], currentCallback.cb ];
|
|
2436
|
+
} else {
|
|
2437
|
+
waiting[id].push(currentCallback.cb);
|
|
2438
|
+
}
|
|
2439
|
+
} else {
|
|
2440
|
+
waiting[id] = currentCallback.cb;
|
|
2441
|
+
}
|
|
2442
|
+
delete currentCallback.cb;
|
|
2443
|
+
currentCallback.id = id;
|
|
2444
|
+
currentCallback = null;
|
|
2445
|
+
});
|
|
2446
|
+
conf.on('delete', function(id) {
|
|
2447
|
+
var result;
|
|
2448
|
+
if (hasOwnProperty.call(waiting, id)) {
|
|
2449
|
+
return;
|
|
2450
|
+
}
|
|
2451
|
+
if (!cache2[id]) {
|
|
2452
|
+
return;
|
|
2453
|
+
}
|
|
2454
|
+
result = cache2[id];
|
|
2455
|
+
delete cache2[id];
|
|
2456
|
+
conf.emit('deleteasync', id, slice.call(result.args, 1));
|
|
2457
|
+
});
|
|
2458
|
+
conf.on('clear', function() {
|
|
2459
|
+
var oldCache = cache2;
|
|
2460
|
+
cache2 = create(null);
|
|
2461
|
+
conf.emit('clearasync', objectMap(oldCache, function(data) {
|
|
2462
|
+
return slice.call(data.args, 1);
|
|
2463
|
+
}));
|
|
2464
|
+
});
|
|
2465
|
+
};
|
|
2466
|
+
});
|
|
2467
|
+
var require_primitive_set = __commonJS(function(exports, module) {
|
|
2468
|
+
'use strict';
|
|
2469
|
+
var forEach = Array.prototype.forEach;
|
|
2470
|
+
var create = Object.create;
|
|
2471
|
+
module.exports = function(arg) {
|
|
2472
|
+
var set2 = create(null);
|
|
2473
|
+
forEach.call(arguments, function(name) {
|
|
2474
|
+
set2[name] = true;
|
|
2475
|
+
});
|
|
2476
|
+
return set2;
|
|
2477
|
+
};
|
|
2478
|
+
});
|
|
2479
|
+
var require_is_callable = __commonJS(function(exports, module) {
|
|
2480
|
+
'use strict';
|
|
2481
|
+
module.exports = function(obj) {
|
|
2482
|
+
return typeof obj === 'function';
|
|
2483
|
+
};
|
|
2484
|
+
});
|
|
2485
|
+
var require_validate_stringifiable = __commonJS(function(exports, module) {
|
|
2486
|
+
'use strict';
|
|
2487
|
+
var isCallable = require_is_callable();
|
|
2488
|
+
module.exports = function(stringifiable) {
|
|
2489
|
+
try {
|
|
2490
|
+
if (stringifiable && isCallable(stringifiable.toString)) {
|
|
2491
|
+
return stringifiable.toString();
|
|
2492
|
+
}
|
|
2493
|
+
return String(stringifiable);
|
|
2494
|
+
} catch (e) {
|
|
2495
|
+
throw new TypeError('Passed argument cannot be stringifed');
|
|
2496
|
+
}
|
|
2497
|
+
};
|
|
2498
|
+
});
|
|
2499
|
+
var require_validate_stringifiable_value = __commonJS(function(exports, module) {
|
|
2500
|
+
'use strict';
|
|
2501
|
+
var ensureValue = require_valid_value();
|
|
2502
|
+
var stringifiable = require_validate_stringifiable();
|
|
2503
|
+
module.exports = function(value) {
|
|
2504
|
+
return stringifiable(ensureValue(value));
|
|
2505
|
+
};
|
|
2506
|
+
});
|
|
2507
|
+
var require_safe_to_string = __commonJS(function(exports, module) {
|
|
2508
|
+
'use strict';
|
|
2509
|
+
var isCallable = require_is_callable();
|
|
2510
|
+
module.exports = function(value) {
|
|
2511
|
+
try {
|
|
2512
|
+
if (value && isCallable(value.toString)) {
|
|
2513
|
+
return value.toString();
|
|
2514
|
+
}
|
|
2515
|
+
return String(value);
|
|
2516
|
+
} catch (e) {
|
|
2517
|
+
return '<Non-coercible to string value>';
|
|
2518
|
+
}
|
|
2519
|
+
};
|
|
2520
|
+
});
|
|
2521
|
+
var require_to_short_string_representation = __commonJS(function(exports, module) {
|
|
2522
|
+
'use strict';
|
|
2523
|
+
var safeToString = require_safe_to_string();
|
|
2524
|
+
var reNewLine = /[\n\r\u2028\u2029]/g;
|
|
2525
|
+
module.exports = function(value) {
|
|
2526
|
+
var string = safeToString(value);
|
|
2527
|
+
if (string.length > 100) {
|
|
2528
|
+
string = string.slice(0, 99) + '\u2026';
|
|
2529
|
+
}
|
|
2530
|
+
string = string.replace(reNewLine, function(_char) {
|
|
2531
|
+
return JSON.stringify(_char).slice(1, -1);
|
|
2532
|
+
});
|
|
2533
|
+
return string;
|
|
2534
|
+
};
|
|
2535
|
+
});
|
|
2536
|
+
var require_is_promise = __commonJS(function(exports, module) {
|
|
2537
|
+
module.exports = isPromise;
|
|
2538
|
+
module.exports['default'] = isPromise;
|
|
2539
|
+
function isPromise(obj) {
|
|
2540
|
+
return !!obj && (_typeof(obj) === 'object' || typeof obj === 'function') && typeof obj.then === 'function';
|
|
2541
|
+
}
|
|
2542
|
+
});
|
|
2543
|
+
var require_promise = __commonJS(function() {
|
|
2544
|
+
'use strict';
|
|
2545
|
+
var objectMap = require_map();
|
|
2546
|
+
var primitiveSet = require_primitive_set();
|
|
2547
|
+
var ensureString = require_validate_stringifiable_value();
|
|
2548
|
+
var toShortString = require_to_short_string_representation();
|
|
2549
|
+
var isPromise = require_is_promise();
|
|
2550
|
+
var nextTick = require_next_tick();
|
|
2551
|
+
var create = Object.create;
|
|
2552
|
+
var supportedModes = primitiveSet('then', 'then:finally', 'done', 'done:finally');
|
|
2553
|
+
require_registered_extensions().promise = function(mode, conf) {
|
|
2554
|
+
var waiting = create(null), cache2 = create(null), promises = create(null);
|
|
2555
|
+
if (mode === true) {
|
|
2556
|
+
mode = null;
|
|
2557
|
+
} else {
|
|
2558
|
+
mode = ensureString(mode);
|
|
2559
|
+
if (!supportedModes[mode]) {
|
|
2560
|
+
throw new TypeError('\'' + toShortString(mode) + '\' is not valid promise mode');
|
|
2561
|
+
}
|
|
2562
|
+
}
|
|
2563
|
+
conf.on('set', function(id, ignore, promise) {
|
|
2564
|
+
var isFailed = false;
|
|
2565
|
+
if (!isPromise(promise)) {
|
|
2566
|
+
cache2[id] = promise;
|
|
2567
|
+
conf.emit('setasync', id, 1);
|
|
2568
|
+
return;
|
|
2569
|
+
}
|
|
2570
|
+
waiting[id] = 1;
|
|
2571
|
+
promises[id] = promise;
|
|
2572
|
+
var onSuccess = function onSuccess(result) {
|
|
2573
|
+
var count = waiting[id];
|
|
2574
|
+
if (isFailed) {
|
|
2575
|
+
throw new Error('Memoizee error: Detected unordered then|done & finally resolution, which in turn makes proper detection of success/failure impossible (when in \'done:finally\' mode)\nConsider to rely on \'then\' or \'done\' mode instead.');
|
|
2576
|
+
}
|
|
2577
|
+
if (!count) {
|
|
2578
|
+
return;
|
|
2579
|
+
}
|
|
2580
|
+
delete waiting[id];
|
|
2581
|
+
cache2[id] = result;
|
|
2582
|
+
conf.emit('setasync', id, count);
|
|
2583
|
+
};
|
|
2584
|
+
var onFailure = function onFailure() {
|
|
2585
|
+
isFailed = true;
|
|
2586
|
+
if (!waiting[id]) {
|
|
2587
|
+
return;
|
|
2588
|
+
}
|
|
2589
|
+
delete waiting[id];
|
|
2590
|
+
delete promises[id];
|
|
2591
|
+
conf['delete'](id);
|
|
2592
|
+
};
|
|
2593
|
+
var resolvedMode = mode;
|
|
2594
|
+
if (!resolvedMode) {
|
|
2595
|
+
resolvedMode = 'then';
|
|
3006
2596
|
}
|
|
3007
|
-
|
|
3008
|
-
|
|
3009
|
-
|
|
3010
|
-
|
|
3011
|
-
|
|
3012
|
-
|
|
2597
|
+
if (resolvedMode === 'then') {
|
|
2598
|
+
var nextTickFailure = function nextTickFailure() {
|
|
2599
|
+
nextTick(onFailure);
|
|
2600
|
+
};
|
|
2601
|
+
promise = promise.then(function(result) {
|
|
2602
|
+
nextTick(onSuccess.bind(this, result));
|
|
2603
|
+
}, nextTickFailure);
|
|
2604
|
+
if (typeof promise['finally'] === 'function') {
|
|
2605
|
+
promise['finally'](nextTickFailure);
|
|
3013
2606
|
}
|
|
3014
|
-
|
|
3015
|
-
|
|
3016
|
-
|
|
3017
|
-
if (!cb2) {
|
|
3018
|
-
return void 0;
|
|
2607
|
+
} else if (resolvedMode === 'done') {
|
|
2608
|
+
if (typeof promise.done !== 'function') {
|
|
2609
|
+
throw new Error('Memoizee error: Retrieved promise does not implement \'done\' in \'done\' mode');
|
|
3019
2610
|
}
|
|
3020
|
-
|
|
3021
|
-
|
|
3022
|
-
|
|
3023
|
-
|
|
3024
|
-
} else {
|
|
3025
|
-
cache2[id] = {
|
|
3026
|
-
context: this,
|
|
3027
|
-
args: args2
|
|
3028
|
-
};
|
|
3029
|
-
conf.emit('setasync', id, typeof cb2 === 'function' ? 1 : cb2.length);
|
|
3030
|
-
}
|
|
2611
|
+
promise.done(onSuccess, onFailure);
|
|
2612
|
+
} else if (resolvedMode === 'done:finally') {
|
|
2613
|
+
if (typeof promise.done !== 'function') {
|
|
2614
|
+
throw new Error('Memoizee error: Retrieved promise does not implement \'done\' in \'done:finally\' mode');
|
|
3031
2615
|
}
|
|
3032
|
-
if (typeof
|
|
3033
|
-
|
|
3034
|
-
} else {
|
|
3035
|
-
cb2.forEach(function(cb3) {
|
|
3036
|
-
result = apply.call(cb3, this, args2);
|
|
3037
|
-
}, this);
|
|
2616
|
+
if (typeof promise['finally'] !== 'function') {
|
|
2617
|
+
throw new Error('Memoizee error: Retrieved promise does not implement \'finally\' in \'done:finally\' mode');
|
|
3038
2618
|
}
|
|
3039
|
-
|
|
3040
|
-
|
|
3041
|
-
origCb = currentCallback;
|
|
3042
|
-
currentCallback = currentContext = currentArgs = null;
|
|
3043
|
-
args.push(cb);
|
|
3044
|
-
result = apply.call(original, this, args);
|
|
3045
|
-
cb.cb = origCb;
|
|
3046
|
-
currentCallback = cb;
|
|
3047
|
-
return result;
|
|
3048
|
-
};
|
|
3049
|
-
conf.on('set', function(id) {
|
|
3050
|
-
if (!currentCallback) {
|
|
3051
|
-
conf['delete'](id);
|
|
3052
|
-
return;
|
|
2619
|
+
promise.done(onSuccess);
|
|
2620
|
+
promise['finally'](onFailure);
|
|
3053
2621
|
}
|
|
2622
|
+
});
|
|
2623
|
+
conf.on('get', function(id, args, context) {
|
|
2624
|
+
var promise;
|
|
3054
2625
|
if (waiting[id]) {
|
|
3055
|
-
|
|
3056
|
-
|
|
2626
|
+
++waiting[id];
|
|
2627
|
+
return;
|
|
2628
|
+
}
|
|
2629
|
+
promise = promises[id];
|
|
2630
|
+
var emit = function emit() {
|
|
2631
|
+
conf.emit('getasync', id, args, context);
|
|
2632
|
+
};
|
|
2633
|
+
if (isPromise(promise)) {
|
|
2634
|
+
if (typeof promise.done === 'function') {
|
|
2635
|
+
promise.done(emit);
|
|
3057
2636
|
} else {
|
|
3058
|
-
|
|
2637
|
+
promise.then(function() {
|
|
2638
|
+
nextTick(emit);
|
|
2639
|
+
});
|
|
3059
2640
|
}
|
|
3060
2641
|
} else {
|
|
3061
|
-
|
|
2642
|
+
emit();
|
|
3062
2643
|
}
|
|
3063
|
-
delete currentCallback.cb;
|
|
3064
|
-
currentCallback.id = id;
|
|
3065
|
-
currentCallback = null;
|
|
3066
2644
|
});
|
|
3067
2645
|
conf.on('delete', function(id) {
|
|
3068
|
-
|
|
3069
|
-
if (
|
|
2646
|
+
delete promises[id];
|
|
2647
|
+
if (waiting[id]) {
|
|
2648
|
+
delete waiting[id];
|
|
3070
2649
|
return;
|
|
3071
2650
|
}
|
|
3072
|
-
if (!cache2
|
|
2651
|
+
if (!hasOwnProperty.call(cache2, id)) {
|
|
3073
2652
|
return;
|
|
3074
2653
|
}
|
|
3075
|
-
result = cache2[id];
|
|
2654
|
+
var result = cache2[id];
|
|
3076
2655
|
delete cache2[id];
|
|
3077
|
-
conf.emit('deleteasync', id,
|
|
2656
|
+
conf.emit('deleteasync', id, [ result ]);
|
|
3078
2657
|
});
|
|
3079
2658
|
conf.on('clear', function() {
|
|
3080
2659
|
var oldCache = cache2;
|
|
3081
2660
|
cache2 = create(null);
|
|
3082
|
-
|
|
3083
|
-
|
|
2661
|
+
waiting = create(null);
|
|
2662
|
+
promises = create(null);
|
|
2663
|
+
conf.emit('clearasync', objectMap(oldCache, function(data) {
|
|
2664
|
+
return [ data ];
|
|
3084
2665
|
}));
|
|
3085
2666
|
});
|
|
3086
2667
|
};
|
|
3087
2668
|
});
|
|
3088
|
-
var
|
|
2669
|
+
var require_dispose = __commonJS(function() {
|
|
3089
2670
|
'use strict';
|
|
3090
|
-
var
|
|
3091
|
-
var
|
|
3092
|
-
|
|
3093
|
-
|
|
3094
|
-
|
|
3095
|
-
|
|
2671
|
+
var callable = require_valid_callable();
|
|
2672
|
+
var forEach = require_for_each();
|
|
2673
|
+
var extensions = require_registered_extensions();
|
|
2674
|
+
var apply = Function.prototype.apply;
|
|
2675
|
+
extensions.dispose = function(dispose, conf, options) {
|
|
2676
|
+
var del;
|
|
2677
|
+
callable(dispose);
|
|
2678
|
+
if (options.async && extensions.async || options.promise && extensions.promise) {
|
|
2679
|
+
conf.on('deleteasync', del = function del(id, resultArray) {
|
|
2680
|
+
apply.call(dispose, null, resultArray);
|
|
2681
|
+
});
|
|
2682
|
+
conf.on('clearasync', function(cache2) {
|
|
2683
|
+
forEach(cache2, function(result, id) {
|
|
2684
|
+
del(id, result);
|
|
2685
|
+
});
|
|
2686
|
+
});
|
|
2687
|
+
return;
|
|
2688
|
+
}
|
|
2689
|
+
conf.on('delete', del = function del(id, result) {
|
|
2690
|
+
dispose(result);
|
|
2691
|
+
});
|
|
2692
|
+
conf.on('clear', function(cache2) {
|
|
2693
|
+
forEach(cache2, function(result, id) {
|
|
2694
|
+
del(id, result);
|
|
2695
|
+
});
|
|
3096
2696
|
});
|
|
3097
|
-
return set2;
|
|
3098
|
-
};
|
|
3099
|
-
});
|
|
3100
|
-
var require_is_callable = __commonJS(function(exports, module) {
|
|
3101
|
-
'use strict';
|
|
3102
|
-
module.exports = function(obj) {
|
|
3103
|
-
return typeof obj === 'function';
|
|
3104
2697
|
};
|
|
3105
2698
|
});
|
|
3106
|
-
var
|
|
2699
|
+
var require_max_timeout = __commonJS(function(exports, module) {
|
|
3107
2700
|
'use strict';
|
|
3108
|
-
|
|
3109
|
-
module.exports = function(stringifiable) {
|
|
3110
|
-
try {
|
|
3111
|
-
if (stringifiable && isCallable(stringifiable.toString)) {
|
|
3112
|
-
return stringifiable.toString();
|
|
3113
|
-
}
|
|
3114
|
-
return String(stringifiable);
|
|
3115
|
-
} catch (e) {
|
|
3116
|
-
throw new TypeError('Passed argument cannot be stringifed');
|
|
3117
|
-
}
|
|
3118
|
-
};
|
|
2701
|
+
module.exports = 2147483647;
|
|
3119
2702
|
});
|
|
3120
|
-
var
|
|
2703
|
+
var require_valid_timeout = __commonJS(function(exports, module) {
|
|
3121
2704
|
'use strict';
|
|
3122
|
-
var
|
|
3123
|
-
var
|
|
2705
|
+
var toPosInt = require_to_pos_integer();
|
|
2706
|
+
var maxTimeout = require_max_timeout();
|
|
3124
2707
|
module.exports = function(value) {
|
|
3125
|
-
|
|
2708
|
+
value = toPosInt(value);
|
|
2709
|
+
if (value > maxTimeout) {
|
|
2710
|
+
throw new TypeError(value + ' exceeds maximum possible timeout');
|
|
2711
|
+
}
|
|
2712
|
+
return value;
|
|
3126
2713
|
};
|
|
3127
2714
|
});
|
|
3128
|
-
var
|
|
2715
|
+
var require_max_age = __commonJS(function() {
|
|
3129
2716
|
'use strict';
|
|
3130
|
-
var
|
|
3131
|
-
|
|
3132
|
-
|
|
3133
|
-
|
|
3134
|
-
|
|
2717
|
+
var aFrom = require_from();
|
|
2718
|
+
var forEach = require_for_each();
|
|
2719
|
+
var nextTick = require_next_tick();
|
|
2720
|
+
var isPromise = require_is_promise();
|
|
2721
|
+
var timeout = require_valid_timeout();
|
|
2722
|
+
var extensions = require_registered_extensions();
|
|
2723
|
+
var noop3 = Function.prototype;
|
|
2724
|
+
var max2 = Math.max;
|
|
2725
|
+
var min = Math.min;
|
|
2726
|
+
var create = Object.create;
|
|
2727
|
+
extensions.maxAge = function(maxAge, conf, options) {
|
|
2728
|
+
var timeouts, postfix, preFetchAge, preFetchTimeouts;
|
|
2729
|
+
maxAge = timeout(maxAge);
|
|
2730
|
+
if (!maxAge) {
|
|
2731
|
+
return;
|
|
2732
|
+
}
|
|
2733
|
+
timeouts = create(null);
|
|
2734
|
+
postfix = options.async && extensions.async || options.promise && extensions.promise ? 'async' : '';
|
|
2735
|
+
conf.on('set' + postfix, function(id) {
|
|
2736
|
+
timeouts[id] = setTimeout(function() {
|
|
2737
|
+
conf['delete'](id);
|
|
2738
|
+
}, maxAge);
|
|
2739
|
+
if (typeof timeouts[id].unref === 'function') {
|
|
2740
|
+
timeouts[id].unref();
|
|
2741
|
+
}
|
|
2742
|
+
if (!preFetchTimeouts) {
|
|
2743
|
+
return;
|
|
2744
|
+
}
|
|
2745
|
+
if (preFetchTimeouts[id]) {
|
|
2746
|
+
if (preFetchTimeouts[id] !== 'nextTick') {
|
|
2747
|
+
clearTimeout(preFetchTimeouts[id]);
|
|
2748
|
+
}
|
|
2749
|
+
}
|
|
2750
|
+
preFetchTimeouts[id] = setTimeout(function() {
|
|
2751
|
+
delete preFetchTimeouts[id];
|
|
2752
|
+
}, preFetchAge);
|
|
2753
|
+
if (typeof preFetchTimeouts[id].unref === 'function') {
|
|
2754
|
+
preFetchTimeouts[id].unref();
|
|
2755
|
+
}
|
|
2756
|
+
});
|
|
2757
|
+
conf.on('delete' + postfix, function(id) {
|
|
2758
|
+
clearTimeout(timeouts[id]);
|
|
2759
|
+
delete timeouts[id];
|
|
2760
|
+
if (!preFetchTimeouts) {
|
|
2761
|
+
return;
|
|
2762
|
+
}
|
|
2763
|
+
if (preFetchTimeouts[id] !== 'nextTick') {
|
|
2764
|
+
clearTimeout(preFetchTimeouts[id]);
|
|
2765
|
+
}
|
|
2766
|
+
delete preFetchTimeouts[id];
|
|
2767
|
+
});
|
|
2768
|
+
if (options.preFetch) {
|
|
2769
|
+
if (options.preFetch === true || isNaN(options.preFetch)) {
|
|
2770
|
+
preFetchAge = .333;
|
|
2771
|
+
} else {
|
|
2772
|
+
preFetchAge = max2(min(Number(options.preFetch), 1), 0);
|
|
2773
|
+
}
|
|
2774
|
+
if (preFetchAge) {
|
|
2775
|
+
preFetchTimeouts = {};
|
|
2776
|
+
preFetchAge = (1 - preFetchAge) * maxAge;
|
|
2777
|
+
conf.on('get' + postfix, function(id, args, context) {
|
|
2778
|
+
if (!preFetchTimeouts[id]) {
|
|
2779
|
+
preFetchTimeouts[id] = 'nextTick';
|
|
2780
|
+
nextTick(function() {
|
|
2781
|
+
var result;
|
|
2782
|
+
if (preFetchTimeouts[id] !== 'nextTick') {
|
|
2783
|
+
return;
|
|
2784
|
+
}
|
|
2785
|
+
delete preFetchTimeouts[id];
|
|
2786
|
+
conf['delete'](id);
|
|
2787
|
+
if (options.async) {
|
|
2788
|
+
args = aFrom(args);
|
|
2789
|
+
args.push(noop3);
|
|
2790
|
+
}
|
|
2791
|
+
result = conf.memoized.apply(context, args);
|
|
2792
|
+
if (options.promise) {
|
|
2793
|
+
if (isPromise(result)) {
|
|
2794
|
+
if (typeof result.done === 'function') {
|
|
2795
|
+
result.done(noop3, noop3);
|
|
2796
|
+
} else {
|
|
2797
|
+
result.then(noop3, noop3);
|
|
2798
|
+
}
|
|
2799
|
+
}
|
|
2800
|
+
}
|
|
2801
|
+
});
|
|
2802
|
+
}
|
|
2803
|
+
});
|
|
3135
2804
|
}
|
|
3136
|
-
return String(value);
|
|
3137
|
-
} catch (e) {
|
|
3138
|
-
return '<Non-coercible to string value>';
|
|
3139
|
-
}
|
|
3140
|
-
};
|
|
3141
|
-
});
|
|
3142
|
-
var require_to_short_string_representation = __commonJS(function(exports, module) {
|
|
3143
|
-
'use strict';
|
|
3144
|
-
var safeToString = require_safe_to_string();
|
|
3145
|
-
var reNewLine = /[\n\r\u2028\u2029]/g;
|
|
3146
|
-
module.exports = function(value) {
|
|
3147
|
-
var string = safeToString(value);
|
|
3148
|
-
if (string.length > 100) {
|
|
3149
|
-
string = string.slice(0, 99) + '\u2026';
|
|
3150
2805
|
}
|
|
3151
|
-
|
|
3152
|
-
|
|
2806
|
+
conf.on('clear' + postfix, function() {
|
|
2807
|
+
forEach(timeouts, function(id) {
|
|
2808
|
+
clearTimeout(id);
|
|
2809
|
+
});
|
|
2810
|
+
timeouts = {};
|
|
2811
|
+
if (preFetchTimeouts) {
|
|
2812
|
+
forEach(preFetchTimeouts, function(id) {
|
|
2813
|
+
if (id !== 'nextTick') {
|
|
2814
|
+
clearTimeout(id);
|
|
2815
|
+
}
|
|
2816
|
+
});
|
|
2817
|
+
preFetchTimeouts = {};
|
|
2818
|
+
}
|
|
3153
2819
|
});
|
|
3154
|
-
return string;
|
|
3155
2820
|
};
|
|
3156
2821
|
});
|
|
3157
|
-
var
|
|
3158
|
-
module.exports = isPromise;
|
|
3159
|
-
module.exports['default'] = isPromise;
|
|
3160
|
-
function isPromise(obj) {
|
|
3161
|
-
return !!obj && (_typeof(obj) === 'object' || typeof obj === 'function') && typeof obj.then === 'function';
|
|
3162
|
-
}
|
|
3163
|
-
});
|
|
3164
|
-
var require_promise = __commonJS(function() {
|
|
2822
|
+
var require_lru_queue = __commonJS(function(exports, module) {
|
|
3165
2823
|
'use strict';
|
|
3166
|
-
var
|
|
3167
|
-
var primitiveSet = require_primitive_set();
|
|
3168
|
-
var ensureString = require_validate_stringifiable_value();
|
|
3169
|
-
var toShortString = require_to_short_string_representation();
|
|
3170
|
-
var isPromise = require_is_promise();
|
|
3171
|
-
var nextTick = require_next_tick();
|
|
2824
|
+
var toPosInt = require_to_pos_integer();
|
|
3172
2825
|
var create = Object.create;
|
|
3173
|
-
var
|
|
3174
|
-
|
|
3175
|
-
var
|
|
3176
|
-
|
|
3177
|
-
|
|
3178
|
-
|
|
3179
|
-
|
|
3180
|
-
|
|
3181
|
-
|
|
3182
|
-
|
|
3183
|
-
|
|
3184
|
-
|
|
3185
|
-
|
|
3186
|
-
|
|
3187
|
-
|
|
3188
|
-
|
|
3189
|
-
|
|
3190
|
-
}
|
|
3191
|
-
waiting[id] = 1;
|
|
3192
|
-
promises[id] = promise;
|
|
3193
|
-
var onSuccess = function onSuccess(result) {
|
|
3194
|
-
var count = waiting[id];
|
|
3195
|
-
if (isFailed) {
|
|
3196
|
-
throw new Error('Memoizee error: Detected unordered then|done & finally resolution, which in turn makes proper detection of success/failure impossible (when in \'done:finally\' mode)\nConsider to rely on \'then\' or \'done\' mode instead.');
|
|
2826
|
+
var hasOwnProperty2 = Object.prototype.hasOwnProperty;
|
|
2827
|
+
module.exports = function(limit) {
|
|
2828
|
+
var size = 0, base = 1, queue2 = create(null), map = create(null), index = 0, del;
|
|
2829
|
+
limit = toPosInt(limit);
|
|
2830
|
+
return {
|
|
2831
|
+
hit: function hit(id) {
|
|
2832
|
+
var oldIndex = map[id], nuIndex = ++index;
|
|
2833
|
+
queue2[nuIndex] = id;
|
|
2834
|
+
map[id] = nuIndex;
|
|
2835
|
+
if (!oldIndex) {
|
|
2836
|
+
++size;
|
|
2837
|
+
if (size <= limit) {
|
|
2838
|
+
return;
|
|
2839
|
+
}
|
|
2840
|
+
id = queue2[base];
|
|
2841
|
+
del(id);
|
|
2842
|
+
return id;
|
|
3197
2843
|
}
|
|
3198
|
-
|
|
2844
|
+
delete queue2[oldIndex];
|
|
2845
|
+
if (base !== oldIndex) {
|
|
3199
2846
|
return;
|
|
3200
2847
|
}
|
|
3201
|
-
|
|
3202
|
-
|
|
3203
|
-
conf.emit('setasync', id, count);
|
|
3204
|
-
};
|
|
3205
|
-
var onFailure = function onFailure() {
|
|
3206
|
-
isFailed = true;
|
|
3207
|
-
if (!waiting[id]) {
|
|
3208
|
-
return;
|
|
2848
|
+
while (!hasOwnProperty2.call(queue2, ++base)) {
|
|
2849
|
+
continue;
|
|
3209
2850
|
}
|
|
3210
|
-
|
|
3211
|
-
|
|
3212
|
-
|
|
3213
|
-
|
|
3214
|
-
|
|
3215
|
-
if (!resolvedMode) {
|
|
3216
|
-
resolvedMode = 'then';
|
|
3217
|
-
}
|
|
3218
|
-
if (resolvedMode === 'then') {
|
|
3219
|
-
var nextTickFailure = function nextTickFailure() {
|
|
3220
|
-
nextTick(onFailure);
|
|
3221
|
-
};
|
|
3222
|
-
promise = promise.then(function(result) {
|
|
3223
|
-
nextTick(onSuccess.bind(this, result));
|
|
3224
|
-
}, nextTickFailure);
|
|
3225
|
-
if (typeof promise['finally'] === 'function') {
|
|
3226
|
-
promise['finally'](nextTickFailure);
|
|
2851
|
+
},
|
|
2852
|
+
delete: del = function del(id) {
|
|
2853
|
+
var oldIndex = map[id];
|
|
2854
|
+
if (!oldIndex) {
|
|
2855
|
+
return;
|
|
3227
2856
|
}
|
|
3228
|
-
|
|
3229
|
-
|
|
3230
|
-
|
|
2857
|
+
delete queue2[oldIndex];
|
|
2858
|
+
delete map[id];
|
|
2859
|
+
--size;
|
|
2860
|
+
if (base !== oldIndex) {
|
|
2861
|
+
return;
|
|
3231
2862
|
}
|
|
3232
|
-
|
|
3233
|
-
|
|
3234
|
-
|
|
3235
|
-
|
|
2863
|
+
if (!size) {
|
|
2864
|
+
index = 0;
|
|
2865
|
+
base = 1;
|
|
2866
|
+
return;
|
|
3236
2867
|
}
|
|
3237
|
-
|
|
3238
|
-
|
|
2868
|
+
while (!hasOwnProperty2.call(queue2, ++base)) {
|
|
2869
|
+
continue;
|
|
3239
2870
|
}
|
|
3240
|
-
|
|
3241
|
-
|
|
2871
|
+
},
|
|
2872
|
+
clear: function clear() {
|
|
2873
|
+
size = 0;
|
|
2874
|
+
base = 1;
|
|
2875
|
+
queue2 = create(null);
|
|
2876
|
+
map = create(null);
|
|
2877
|
+
index = 0;
|
|
3242
2878
|
}
|
|
3243
|
-
}
|
|
3244
|
-
|
|
3245
|
-
|
|
3246
|
-
|
|
3247
|
-
|
|
2879
|
+
};
|
|
2880
|
+
};
|
|
2881
|
+
});
|
|
2882
|
+
var require_max = __commonJS(function() {
|
|
2883
|
+
'use strict';
|
|
2884
|
+
var toPosInteger = require_to_pos_integer();
|
|
2885
|
+
var lruQueue = require_lru_queue();
|
|
2886
|
+
var extensions = require_registered_extensions();
|
|
2887
|
+
extensions.max = function(max2, conf, options) {
|
|
2888
|
+
var postfix, queue2, hit;
|
|
2889
|
+
max2 = toPosInteger(max2);
|
|
2890
|
+
if (!max2) {
|
|
2891
|
+
return;
|
|
2892
|
+
}
|
|
2893
|
+
queue2 = lruQueue(max2);
|
|
2894
|
+
postfix = options.async && extensions.async || options.promise && extensions.promise ? 'async' : '';
|
|
2895
|
+
conf.on('set' + postfix, hit = function hit(id) {
|
|
2896
|
+
id = queue2.hit(id);
|
|
2897
|
+
if (id === void 0) {
|
|
3248
2898
|
return;
|
|
3249
2899
|
}
|
|
3250
|
-
|
|
3251
|
-
var emit = function emit() {
|
|
3252
|
-
conf.emit('getasync', id, args, context);
|
|
3253
|
-
};
|
|
3254
|
-
if (isPromise(promise)) {
|
|
3255
|
-
if (typeof promise.done === 'function') {
|
|
3256
|
-
promise.done(emit);
|
|
3257
|
-
} else {
|
|
3258
|
-
promise.then(function() {
|
|
3259
|
-
nextTick(emit);
|
|
3260
|
-
});
|
|
3261
|
-
}
|
|
3262
|
-
} else {
|
|
3263
|
-
emit();
|
|
3264
|
-
}
|
|
2900
|
+
conf['delete'](id);
|
|
3265
2901
|
});
|
|
3266
|
-
conf.on('
|
|
3267
|
-
|
|
3268
|
-
|
|
3269
|
-
|
|
3270
|
-
|
|
3271
|
-
|
|
3272
|
-
|
|
3273
|
-
|
|
3274
|
-
|
|
3275
|
-
|
|
2902
|
+
conf.on('get' + postfix, hit);
|
|
2903
|
+
conf.on('delete' + postfix, queue2['delete']);
|
|
2904
|
+
conf.on('clear' + postfix, queue2.clear);
|
|
2905
|
+
};
|
|
2906
|
+
});
|
|
2907
|
+
var require_ref_counter = __commonJS(function() {
|
|
2908
|
+
'use strict';
|
|
2909
|
+
var d2 = require_d();
|
|
2910
|
+
var extensions = require_registered_extensions();
|
|
2911
|
+
var create = Object.create;
|
|
2912
|
+
var defineProperties = Object.defineProperties;
|
|
2913
|
+
extensions.refCounter = function(ignore, conf, options) {
|
|
2914
|
+
var cache2, postfix;
|
|
2915
|
+
cache2 = create(null);
|
|
2916
|
+
postfix = options.async && extensions.async || options.promise && extensions.promise ? 'async' : '';
|
|
2917
|
+
conf.on('set' + postfix, function(id, length) {
|
|
2918
|
+
cache2[id] = length || 1;
|
|
2919
|
+
});
|
|
2920
|
+
conf.on('get' + postfix, function(id) {
|
|
2921
|
+
++cache2[id];
|
|
2922
|
+
});
|
|
2923
|
+
conf.on('delete' + postfix, function(id) {
|
|
3276
2924
|
delete cache2[id];
|
|
3277
|
-
conf.emit('deleteasync', id, [ result ]);
|
|
3278
2925
|
});
|
|
3279
|
-
conf.on('clear', function() {
|
|
3280
|
-
|
|
3281
|
-
|
|
3282
|
-
|
|
3283
|
-
|
|
3284
|
-
|
|
3285
|
-
|
|
3286
|
-
|
|
2926
|
+
conf.on('clear' + postfix, function() {
|
|
2927
|
+
cache2 = {};
|
|
2928
|
+
});
|
|
2929
|
+
defineProperties(conf.memoized, {
|
|
2930
|
+
deleteRef: d2(function() {
|
|
2931
|
+
var id = conf.get(arguments);
|
|
2932
|
+
if (id === null) {
|
|
2933
|
+
return null;
|
|
2934
|
+
}
|
|
2935
|
+
if (!cache2[id]) {
|
|
2936
|
+
return null;
|
|
2937
|
+
}
|
|
2938
|
+
if (!--cache2[id]) {
|
|
2939
|
+
conf['delete'](id);
|
|
2940
|
+
return true;
|
|
2941
|
+
}
|
|
2942
|
+
return false;
|
|
2943
|
+
}),
|
|
2944
|
+
getRefCount: d2(function() {
|
|
2945
|
+
var id = conf.get(arguments);
|
|
2946
|
+
if (id === null) {
|
|
2947
|
+
return 0;
|
|
2948
|
+
}
|
|
2949
|
+
if (!cache2[id]) {
|
|
2950
|
+
return 0;
|
|
2951
|
+
}
|
|
2952
|
+
return cache2[id];
|
|
2953
|
+
})
|
|
3287
2954
|
});
|
|
3288
2955
|
};
|
|
3289
2956
|
});
|
|
3290
|
-
var
|
|
2957
|
+
var require_memoizee = __commonJS(function(exports, module) {
|
|
3291
2958
|
'use strict';
|
|
3292
|
-
var
|
|
3293
|
-
var
|
|
3294
|
-
var
|
|
3295
|
-
|
|
3296
|
-
|
|
3297
|
-
|
|
3298
|
-
|
|
3299
|
-
|
|
3300
|
-
|
|
3301
|
-
|
|
3302
|
-
|
|
3303
|
-
|
|
3304
|
-
|
|
3305
|
-
|
|
3306
|
-
})
|
|
3307
|
-
|
|
3308
|
-
|
|
2959
|
+
var normalizeOpts = require_normalize_options();
|
|
2960
|
+
var resolveLength = require_resolve_length();
|
|
2961
|
+
var plain = require_plain();
|
|
2962
|
+
module.exports = function(fn) {
|
|
2963
|
+
var options = normalizeOpts(arguments[1]), length;
|
|
2964
|
+
if (!options.normalizer) {
|
|
2965
|
+
length = options.length = resolveLength(options.length, fn.length, options.async);
|
|
2966
|
+
if (length !== 0) {
|
|
2967
|
+
if (options.primitive) {
|
|
2968
|
+
if (length === false) {
|
|
2969
|
+
options.normalizer = require_primitive();
|
|
2970
|
+
} else if (length > 1) {
|
|
2971
|
+
options.normalizer = require_get_primitive_fixed()(length);
|
|
2972
|
+
}
|
|
2973
|
+
} else if (length === false) {
|
|
2974
|
+
options.normalizer = require_get()();
|
|
2975
|
+
} else if (length === 1) {
|
|
2976
|
+
options.normalizer = require_get_1()();
|
|
2977
|
+
} else {
|
|
2978
|
+
options.normalizer = require_get_fixed()(length);
|
|
2979
|
+
}
|
|
2980
|
+
}
|
|
3309
2981
|
}
|
|
3310
|
-
|
|
3311
|
-
|
|
3312
|
-
}
|
|
3313
|
-
|
|
3314
|
-
|
|
3315
|
-
|
|
3316
|
-
|
|
3317
|
-
|
|
2982
|
+
if (options.async) {
|
|
2983
|
+
require_async();
|
|
2984
|
+
}
|
|
2985
|
+
if (options.promise) {
|
|
2986
|
+
require_promise();
|
|
2987
|
+
}
|
|
2988
|
+
if (options.dispose) {
|
|
2989
|
+
require_dispose();
|
|
2990
|
+
}
|
|
2991
|
+
if (options.maxAge) {
|
|
2992
|
+
require_max_age();
|
|
2993
|
+
}
|
|
2994
|
+
if (options.max) {
|
|
2995
|
+
require_max();
|
|
2996
|
+
}
|
|
2997
|
+
if (options.refCounter) {
|
|
2998
|
+
require_ref_counter();
|
|
2999
|
+
}
|
|
3000
|
+
return plain(fn, options);
|
|
3318
3001
|
};
|
|
3319
3002
|
});
|
|
3320
|
-
var
|
|
3321
|
-
'use strict';
|
|
3322
|
-
module.exports = 2147483647;
|
|
3323
|
-
});
|
|
3324
|
-
var require_valid_timeout = __commonJS(function(exports, module) {
|
|
3003
|
+
var require_utils = __commonJS(function(exports) {
|
|
3325
3004
|
'use strict';
|
|
3326
|
-
|
|
3327
|
-
|
|
3328
|
-
|
|
3329
|
-
|
|
3330
|
-
|
|
3331
|
-
|
|
3005
|
+
Object.defineProperty(exports, '__esModule', {
|
|
3006
|
+
value: true
|
|
3007
|
+
});
|
|
3008
|
+
function isIdentStart(c4) {
|
|
3009
|
+
return c4 >= 'a' && c4 <= 'z' || c4 >= 'A' && c4 <= 'Z' || c4 === '-' || c4 === '_';
|
|
3010
|
+
}
|
|
3011
|
+
exports.isIdentStart = isIdentStart;
|
|
3012
|
+
function isIdent(c4) {
|
|
3013
|
+
return c4 >= 'a' && c4 <= 'z' || c4 >= 'A' && c4 <= 'Z' || c4 >= '0' && c4 <= '9' || c4 === '-' || c4 === '_';
|
|
3014
|
+
}
|
|
3015
|
+
exports.isIdent = isIdent;
|
|
3016
|
+
function isHex(c4) {
|
|
3017
|
+
return c4 >= 'a' && c4 <= 'f' || c4 >= 'A' && c4 <= 'F' || c4 >= '0' && c4 <= '9';
|
|
3018
|
+
}
|
|
3019
|
+
exports.isHex = isHex;
|
|
3020
|
+
function escapeIdentifier(s) {
|
|
3021
|
+
var len = s.length;
|
|
3022
|
+
var result = '';
|
|
3023
|
+
var i = 0;
|
|
3024
|
+
while (i < len) {
|
|
3025
|
+
var chr = s.charAt(i);
|
|
3026
|
+
if (exports.identSpecialChars[chr]) {
|
|
3027
|
+
result += '\\' + chr;
|
|
3028
|
+
} else {
|
|
3029
|
+
if (!(chr === '_' || chr === '-' || chr >= 'A' && chr <= 'Z' || chr >= 'a' && chr <= 'z' || i !== 0 && chr >= '0' && chr <= '9')) {
|
|
3030
|
+
var charCode = chr.charCodeAt(0);
|
|
3031
|
+
if ((charCode & 63488) === 55296) {
|
|
3032
|
+
var extraCharCode = s.charCodeAt(i++);
|
|
3033
|
+
if ((charCode & 64512) !== 55296 || (extraCharCode & 64512) !== 56320) {
|
|
3034
|
+
throw Error('UCS-2(decode): illegal sequence');
|
|
3035
|
+
}
|
|
3036
|
+
charCode = ((charCode & 1023) << 10) + (extraCharCode & 1023) + 65536;
|
|
3037
|
+
}
|
|
3038
|
+
result += '\\' + charCode.toString(16) + ' ';
|
|
3039
|
+
} else {
|
|
3040
|
+
result += chr;
|
|
3041
|
+
}
|
|
3042
|
+
}
|
|
3043
|
+
i++;
|
|
3332
3044
|
}
|
|
3333
|
-
return
|
|
3045
|
+
return result;
|
|
3046
|
+
}
|
|
3047
|
+
exports.escapeIdentifier = escapeIdentifier;
|
|
3048
|
+
function escapeStr(s) {
|
|
3049
|
+
var len = s.length;
|
|
3050
|
+
var result = '';
|
|
3051
|
+
var i = 0;
|
|
3052
|
+
var replacement;
|
|
3053
|
+
while (i < len) {
|
|
3054
|
+
var chr = s.charAt(i);
|
|
3055
|
+
if (chr === '"') {
|
|
3056
|
+
chr = '\\"';
|
|
3057
|
+
} else if (chr === '\\') {
|
|
3058
|
+
chr = '\\\\';
|
|
3059
|
+
} else if ((replacement = exports.strReplacementsRev[chr]) !== void 0) {
|
|
3060
|
+
chr = replacement;
|
|
3061
|
+
}
|
|
3062
|
+
result += chr;
|
|
3063
|
+
i++;
|
|
3064
|
+
}
|
|
3065
|
+
return '"' + result + '"';
|
|
3066
|
+
}
|
|
3067
|
+
exports.escapeStr = escapeStr;
|
|
3068
|
+
exports.identSpecialChars = {
|
|
3069
|
+
'!': true,
|
|
3070
|
+
'"': true,
|
|
3071
|
+
'#': true,
|
|
3072
|
+
$: true,
|
|
3073
|
+
'%': true,
|
|
3074
|
+
'&': true,
|
|
3075
|
+
'\'': true,
|
|
3076
|
+
'(': true,
|
|
3077
|
+
')': true,
|
|
3078
|
+
'*': true,
|
|
3079
|
+
'+': true,
|
|
3080
|
+
',': true,
|
|
3081
|
+
'.': true,
|
|
3082
|
+
'/': true,
|
|
3083
|
+
';': true,
|
|
3084
|
+
'<': true,
|
|
3085
|
+
'=': true,
|
|
3086
|
+
'>': true,
|
|
3087
|
+
'?': true,
|
|
3088
|
+
'@': true,
|
|
3089
|
+
'[': true,
|
|
3090
|
+
'\\': true,
|
|
3091
|
+
']': true,
|
|
3092
|
+
'^': true,
|
|
3093
|
+
'`': true,
|
|
3094
|
+
'{': true,
|
|
3095
|
+
'|': true,
|
|
3096
|
+
'}': true,
|
|
3097
|
+
'~': true
|
|
3098
|
+
};
|
|
3099
|
+
exports.strReplacementsRev = {
|
|
3100
|
+
'\n': '\\n',
|
|
3101
|
+
'\r': '\\r',
|
|
3102
|
+
'\t': '\\t',
|
|
3103
|
+
'\f': '\\f',
|
|
3104
|
+
'\v': '\\v'
|
|
3105
|
+
};
|
|
3106
|
+
exports.singleQuoteEscapeChars = {
|
|
3107
|
+
n: '\n',
|
|
3108
|
+
r: '\r',
|
|
3109
|
+
t: '\t',
|
|
3110
|
+
f: '\f',
|
|
3111
|
+
'\\': '\\',
|
|
3112
|
+
'\'': '\''
|
|
3113
|
+
};
|
|
3114
|
+
exports.doubleQuotesEscapeChars = {
|
|
3115
|
+
n: '\n',
|
|
3116
|
+
r: '\r',
|
|
3117
|
+
t: '\t',
|
|
3118
|
+
f: '\f',
|
|
3119
|
+
'\\': '\\',
|
|
3120
|
+
'"': '"'
|
|
3334
3121
|
};
|
|
3335
3122
|
});
|
|
3336
|
-
var
|
|
3123
|
+
var require_parser_context = __commonJS(function(exports) {
|
|
3337
3124
|
'use strict';
|
|
3338
|
-
|
|
3339
|
-
|
|
3340
|
-
|
|
3341
|
-
var
|
|
3342
|
-
|
|
3343
|
-
|
|
3344
|
-
|
|
3345
|
-
|
|
3346
|
-
|
|
3347
|
-
|
|
3348
|
-
|
|
3349
|
-
|
|
3350
|
-
|
|
3351
|
-
|
|
3352
|
-
|
|
3125
|
+
Object.defineProperty(exports, '__esModule', {
|
|
3126
|
+
value: true
|
|
3127
|
+
});
|
|
3128
|
+
var utils_1 = require_utils();
|
|
3129
|
+
function parseCssSelector(str, pos, pseudos, attrEqualityMods, ruleNestingOperators, substitutesEnabled) {
|
|
3130
|
+
var l = str.length;
|
|
3131
|
+
var chr = '';
|
|
3132
|
+
function getStr(quote, escapeTable) {
|
|
3133
|
+
var result = '';
|
|
3134
|
+
pos++;
|
|
3135
|
+
chr = str.charAt(pos);
|
|
3136
|
+
while (pos < l) {
|
|
3137
|
+
if (chr === quote) {
|
|
3138
|
+
pos++;
|
|
3139
|
+
return result;
|
|
3140
|
+
} else if (chr === '\\') {
|
|
3141
|
+
pos++;
|
|
3142
|
+
chr = str.charAt(pos);
|
|
3143
|
+
var esc = void 0;
|
|
3144
|
+
if (chr === quote) {
|
|
3145
|
+
result += quote;
|
|
3146
|
+
} else if ((esc = escapeTable[chr]) !== void 0) {
|
|
3147
|
+
result += esc;
|
|
3148
|
+
} else if (utils_1.isHex(chr)) {
|
|
3149
|
+
var hex = chr;
|
|
3150
|
+
pos++;
|
|
3151
|
+
chr = str.charAt(pos);
|
|
3152
|
+
while (utils_1.isHex(chr)) {
|
|
3153
|
+
hex += chr;
|
|
3154
|
+
pos++;
|
|
3155
|
+
chr = str.charAt(pos);
|
|
3156
|
+
}
|
|
3157
|
+
if (chr === ' ') {
|
|
3158
|
+
pos++;
|
|
3159
|
+
chr = str.charAt(pos);
|
|
3160
|
+
}
|
|
3161
|
+
result += String.fromCharCode(parseInt(hex, 16));
|
|
3162
|
+
continue;
|
|
3163
|
+
} else {
|
|
3164
|
+
result += chr;
|
|
3165
|
+
}
|
|
3166
|
+
} else {
|
|
3167
|
+
result += chr;
|
|
3168
|
+
}
|
|
3169
|
+
pos++;
|
|
3170
|
+
chr = str.charAt(pos);
|
|
3171
|
+
}
|
|
3172
|
+
return result;
|
|
3353
3173
|
}
|
|
3354
|
-
|
|
3355
|
-
|
|
3356
|
-
|
|
3357
|
-
|
|
3358
|
-
|
|
3359
|
-
|
|
3360
|
-
|
|
3361
|
-
|
|
3174
|
+
function getIdent() {
|
|
3175
|
+
var result = '';
|
|
3176
|
+
chr = str.charAt(pos);
|
|
3177
|
+
while (pos < l) {
|
|
3178
|
+
if (utils_1.isIdent(chr)) {
|
|
3179
|
+
result += chr;
|
|
3180
|
+
} else if (chr === '\\') {
|
|
3181
|
+
pos++;
|
|
3182
|
+
if (pos >= l) {
|
|
3183
|
+
throw Error('Expected symbol but end of file reached.');
|
|
3184
|
+
}
|
|
3185
|
+
chr = str.charAt(pos);
|
|
3186
|
+
if (utils_1.identSpecialChars[chr]) {
|
|
3187
|
+
result += chr;
|
|
3188
|
+
} else if (utils_1.isHex(chr)) {
|
|
3189
|
+
var hex = chr;
|
|
3190
|
+
pos++;
|
|
3191
|
+
chr = str.charAt(pos);
|
|
3192
|
+
while (utils_1.isHex(chr)) {
|
|
3193
|
+
hex += chr;
|
|
3194
|
+
pos++;
|
|
3195
|
+
chr = str.charAt(pos);
|
|
3196
|
+
}
|
|
3197
|
+
if (chr === ' ') {
|
|
3198
|
+
pos++;
|
|
3199
|
+
chr = str.charAt(pos);
|
|
3200
|
+
}
|
|
3201
|
+
result += String.fromCharCode(parseInt(hex, 16));
|
|
3202
|
+
continue;
|
|
3203
|
+
} else {
|
|
3204
|
+
result += chr;
|
|
3205
|
+
}
|
|
3206
|
+
} else {
|
|
3207
|
+
return result;
|
|
3208
|
+
}
|
|
3209
|
+
pos++;
|
|
3210
|
+
chr = str.charAt(pos);
|
|
3362
3211
|
}
|
|
3363
|
-
|
|
3364
|
-
|
|
3212
|
+
return result;
|
|
3213
|
+
}
|
|
3214
|
+
function skipWhitespace() {
|
|
3215
|
+
chr = str.charAt(pos);
|
|
3216
|
+
var result = false;
|
|
3217
|
+
while (chr === ' ' || chr === '\t' || chr === '\n' || chr === '\r' || chr === '\f') {
|
|
3218
|
+
result = true;
|
|
3219
|
+
pos++;
|
|
3220
|
+
chr = str.charAt(pos);
|
|
3365
3221
|
}
|
|
3366
|
-
|
|
3367
|
-
|
|
3368
|
-
|
|
3369
|
-
|
|
3222
|
+
return result;
|
|
3223
|
+
}
|
|
3224
|
+
function parse3() {
|
|
3225
|
+
var res = parseSelector();
|
|
3226
|
+
if (pos < l) {
|
|
3227
|
+
throw Error('Rule expected but "' + str.charAt(pos) + '" found.');
|
|
3370
3228
|
}
|
|
3371
|
-
|
|
3372
|
-
|
|
3373
|
-
|
|
3374
|
-
|
|
3375
|
-
|
|
3229
|
+
return res;
|
|
3230
|
+
}
|
|
3231
|
+
function parseSelector() {
|
|
3232
|
+
var selector = parseSingleSelector();
|
|
3233
|
+
if (!selector) {
|
|
3234
|
+
return null;
|
|
3376
3235
|
}
|
|
3377
|
-
|
|
3378
|
-
|
|
3379
|
-
|
|
3380
|
-
|
|
3381
|
-
|
|
3382
|
-
|
|
3236
|
+
var res = selector;
|
|
3237
|
+
chr = str.charAt(pos);
|
|
3238
|
+
while (chr === ',') {
|
|
3239
|
+
pos++;
|
|
3240
|
+
skipWhitespace();
|
|
3241
|
+
if (res.type !== 'selectors') {
|
|
3242
|
+
res = {
|
|
3243
|
+
type: 'selectors',
|
|
3244
|
+
selectors: [ selector ]
|
|
3245
|
+
};
|
|
3246
|
+
}
|
|
3247
|
+
selector = parseSingleSelector();
|
|
3248
|
+
if (!selector) {
|
|
3249
|
+
throw Error('Rule expected after ",".');
|
|
3250
|
+
}
|
|
3251
|
+
res.selectors.push(selector);
|
|
3383
3252
|
}
|
|
3384
|
-
|
|
3385
|
-
|
|
3253
|
+
return res;
|
|
3254
|
+
}
|
|
3255
|
+
function parseSingleSelector() {
|
|
3256
|
+
skipWhitespace();
|
|
3257
|
+
var selector = {
|
|
3258
|
+
type: 'ruleSet'
|
|
3259
|
+
};
|
|
3260
|
+
var rule = parseRule();
|
|
3261
|
+
if (!rule) {
|
|
3262
|
+
return null;
|
|
3386
3263
|
}
|
|
3387
|
-
|
|
3388
|
-
|
|
3389
|
-
|
|
3390
|
-
|
|
3391
|
-
|
|
3392
|
-
|
|
3393
|
-
|
|
3264
|
+
var currentRule = selector;
|
|
3265
|
+
while (rule) {
|
|
3266
|
+
rule.type = 'rule';
|
|
3267
|
+
currentRule.rule = rule;
|
|
3268
|
+
currentRule = rule;
|
|
3269
|
+
skipWhitespace();
|
|
3270
|
+
chr = str.charAt(pos);
|
|
3271
|
+
if (pos >= l || chr === ',' || chr === ')') {
|
|
3272
|
+
break;
|
|
3273
|
+
}
|
|
3274
|
+
if (ruleNestingOperators[chr]) {
|
|
3275
|
+
var op = chr;
|
|
3276
|
+
pos++;
|
|
3277
|
+
skipWhitespace();
|
|
3278
|
+
rule = parseRule();
|
|
3279
|
+
if (!rule) {
|
|
3280
|
+
throw Error('Rule expected after "' + op + '".');
|
|
3281
|
+
}
|
|
3282
|
+
rule.nestingOperator = op;
|
|
3283
|
+
} else {
|
|
3284
|
+
rule = parseRule();
|
|
3285
|
+
if (rule) {
|
|
3286
|
+
rule.nestingOperator = null;
|
|
3287
|
+
}
|
|
3288
|
+
}
|
|
3394
3289
|
}
|
|
3395
|
-
|
|
3396
|
-
|
|
3397
|
-
|
|
3398
|
-
|
|
3399
|
-
|
|
3400
|
-
|
|
3401
|
-
|
|
3402
|
-
|
|
3403
|
-
|
|
3404
|
-
|
|
3405
|
-
|
|
3406
|
-
|
|
3407
|
-
|
|
3408
|
-
|
|
3409
|
-
|
|
3410
|
-
|
|
3290
|
+
return selector;
|
|
3291
|
+
}
|
|
3292
|
+
function parseRule() {
|
|
3293
|
+
var rule = null;
|
|
3294
|
+
while (pos < l) {
|
|
3295
|
+
chr = str.charAt(pos);
|
|
3296
|
+
if (chr === '*') {
|
|
3297
|
+
pos++;
|
|
3298
|
+
(rule = rule || {}).tagName = '*';
|
|
3299
|
+
} else if (utils_1.isIdentStart(chr) || chr === '\\') {
|
|
3300
|
+
(rule = rule || {}).tagName = getIdent();
|
|
3301
|
+
} else if (chr === '.') {
|
|
3302
|
+
pos++;
|
|
3303
|
+
rule = rule || {};
|
|
3304
|
+
(rule.classNames = rule.classNames || []).push(getIdent());
|
|
3305
|
+
} else if (chr === '#') {
|
|
3306
|
+
pos++;
|
|
3307
|
+
(rule = rule || {}).id = getIdent();
|
|
3308
|
+
} else if (chr === '[') {
|
|
3309
|
+
pos++;
|
|
3310
|
+
skipWhitespace();
|
|
3311
|
+
var attr = {
|
|
3312
|
+
name: getIdent()
|
|
3313
|
+
};
|
|
3314
|
+
skipWhitespace();
|
|
3315
|
+
if (chr === ']') {
|
|
3316
|
+
pos++;
|
|
3317
|
+
} else {
|
|
3318
|
+
var operator = '';
|
|
3319
|
+
if (attrEqualityMods[chr]) {
|
|
3320
|
+
operator = chr;
|
|
3321
|
+
pos++;
|
|
3322
|
+
chr = str.charAt(pos);
|
|
3323
|
+
}
|
|
3324
|
+
if (pos >= l) {
|
|
3325
|
+
throw Error('Expected "=" but end of file reached.');
|
|
3326
|
+
}
|
|
3327
|
+
if (chr !== '=') {
|
|
3328
|
+
throw Error('Expected "=" but "' + chr + '" found.');
|
|
3329
|
+
}
|
|
3330
|
+
attr.operator = operator + '=';
|
|
3331
|
+
pos++;
|
|
3332
|
+
skipWhitespace();
|
|
3333
|
+
var attrValue = '';
|
|
3334
|
+
attr.valueType = 'string';
|
|
3335
|
+
if (chr === '"') {
|
|
3336
|
+
attrValue = getStr('"', utils_1.doubleQuotesEscapeChars);
|
|
3337
|
+
} else if (chr === '\'') {
|
|
3338
|
+
attrValue = getStr('\'', utils_1.singleQuoteEscapeChars);
|
|
3339
|
+
} else if (substitutesEnabled && chr === '$') {
|
|
3340
|
+
pos++;
|
|
3341
|
+
attrValue = getIdent();
|
|
3342
|
+
attr.valueType = 'substitute';
|
|
3343
|
+
} else {
|
|
3344
|
+
while (pos < l) {
|
|
3345
|
+
if (chr === ']') {
|
|
3346
|
+
break;
|
|
3347
|
+
}
|
|
3348
|
+
attrValue += chr;
|
|
3349
|
+
pos++;
|
|
3350
|
+
chr = str.charAt(pos);
|
|
3411
3351
|
}
|
|
3412
|
-
|
|
3413
|
-
|
|
3414
|
-
|
|
3415
|
-
|
|
3416
|
-
|
|
3417
|
-
|
|
3418
|
-
|
|
3352
|
+
attrValue = attrValue.trim();
|
|
3353
|
+
}
|
|
3354
|
+
skipWhitespace();
|
|
3355
|
+
if (pos >= l) {
|
|
3356
|
+
throw Error('Expected "]" but end of file reached.');
|
|
3357
|
+
}
|
|
3358
|
+
if (chr !== ']') {
|
|
3359
|
+
throw Error('Expected "]" but "' + chr + '" found.');
|
|
3360
|
+
}
|
|
3361
|
+
pos++;
|
|
3362
|
+
attr.value = attrValue;
|
|
3363
|
+
}
|
|
3364
|
+
rule = rule || {};
|
|
3365
|
+
(rule.attrs = rule.attrs || []).push(attr);
|
|
3366
|
+
} else if (chr === ':') {
|
|
3367
|
+
pos++;
|
|
3368
|
+
var pseudoName = getIdent();
|
|
3369
|
+
var pseudo = {
|
|
3370
|
+
name: pseudoName
|
|
3371
|
+
};
|
|
3372
|
+
if (chr === '(') {
|
|
3373
|
+
pos++;
|
|
3374
|
+
var value = '';
|
|
3375
|
+
skipWhitespace();
|
|
3376
|
+
if (pseudos[pseudoName] === 'selector') {
|
|
3377
|
+
pseudo.valueType = 'selector';
|
|
3378
|
+
value = parseSelector();
|
|
3379
|
+
} else {
|
|
3380
|
+
pseudo.valueType = pseudos[pseudoName] || 'string';
|
|
3381
|
+
if (chr === '"') {
|
|
3382
|
+
value = getStr('"', utils_1.doubleQuotesEscapeChars);
|
|
3383
|
+
} else if (chr === '\'') {
|
|
3384
|
+
value = getStr('\'', utils_1.singleQuoteEscapeChars);
|
|
3385
|
+
} else if (substitutesEnabled && chr === '$') {
|
|
3386
|
+
pos++;
|
|
3387
|
+
value = getIdent();
|
|
3388
|
+
pseudo.valueType = 'substitute';
|
|
3389
|
+
} else {
|
|
3390
|
+
while (pos < l) {
|
|
3391
|
+
if (chr === ')') {
|
|
3392
|
+
break;
|
|
3419
3393
|
}
|
|
3394
|
+
value += chr;
|
|
3395
|
+
pos++;
|
|
3396
|
+
chr = str.charAt(pos);
|
|
3420
3397
|
}
|
|
3398
|
+
value = value.trim();
|
|
3421
3399
|
}
|
|
3422
|
-
|
|
3423
|
-
|
|
3424
|
-
|
|
3425
|
-
|
|
3426
|
-
|
|
3427
|
-
|
|
3428
|
-
|
|
3429
|
-
|
|
3430
|
-
|
|
3431
|
-
|
|
3432
|
-
if (preFetchTimeouts) {
|
|
3433
|
-
forEach(preFetchTimeouts, function(id) {
|
|
3434
|
-
if (id !== 'nextTick') {
|
|
3435
|
-
clearTimeout(id);
|
|
3436
|
-
}
|
|
3437
|
-
});
|
|
3438
|
-
preFetchTimeouts = {};
|
|
3439
|
-
}
|
|
3440
|
-
});
|
|
3441
|
-
};
|
|
3442
|
-
});
|
|
3443
|
-
var require_lru_queue = __commonJS(function(exports, module) {
|
|
3444
|
-
'use strict';
|
|
3445
|
-
var toPosInt = require_to_pos_integer();
|
|
3446
|
-
var create = Object.create;
|
|
3447
|
-
var hasOwnProperty2 = Object.prototype.hasOwnProperty;
|
|
3448
|
-
module.exports = function(limit) {
|
|
3449
|
-
var size = 0, base = 1, queue2 = create(null), map = create(null), index = 0, del;
|
|
3450
|
-
limit = toPosInt(limit);
|
|
3451
|
-
return {
|
|
3452
|
-
hit: function hit(id) {
|
|
3453
|
-
var oldIndex = map[id], nuIndex = ++index;
|
|
3454
|
-
queue2[nuIndex] = id;
|
|
3455
|
-
map[id] = nuIndex;
|
|
3456
|
-
if (!oldIndex) {
|
|
3457
|
-
++size;
|
|
3458
|
-
if (size <= limit) {
|
|
3459
|
-
return;
|
|
3400
|
+
skipWhitespace();
|
|
3401
|
+
}
|
|
3402
|
+
if (pos >= l) {
|
|
3403
|
+
throw Error('Expected ")" but end of file reached.');
|
|
3404
|
+
}
|
|
3405
|
+
if (chr !== ')') {
|
|
3406
|
+
throw Error('Expected ")" but "' + chr + '" found.');
|
|
3407
|
+
}
|
|
3408
|
+
pos++;
|
|
3409
|
+
pseudo.value = value;
|
|
3460
3410
|
}
|
|
3461
|
-
|
|
3462
|
-
|
|
3463
|
-
|
|
3464
|
-
|
|
3465
|
-
delete queue2[oldIndex];
|
|
3466
|
-
if (base !== oldIndex) {
|
|
3467
|
-
return;
|
|
3468
|
-
}
|
|
3469
|
-
while (!hasOwnProperty2.call(queue2, ++base)) {
|
|
3470
|
-
continue;
|
|
3471
|
-
}
|
|
3472
|
-
},
|
|
3473
|
-
delete: del = function del(id) {
|
|
3474
|
-
var oldIndex = map[id];
|
|
3475
|
-
if (!oldIndex) {
|
|
3476
|
-
return;
|
|
3477
|
-
}
|
|
3478
|
-
delete queue2[oldIndex];
|
|
3479
|
-
delete map[id];
|
|
3480
|
-
--size;
|
|
3481
|
-
if (base !== oldIndex) {
|
|
3482
|
-
return;
|
|
3483
|
-
}
|
|
3484
|
-
if (!size) {
|
|
3485
|
-
index = 0;
|
|
3486
|
-
base = 1;
|
|
3487
|
-
return;
|
|
3488
|
-
}
|
|
3489
|
-
while (!hasOwnProperty2.call(queue2, ++base)) {
|
|
3490
|
-
continue;
|
|
3411
|
+
rule = rule || {};
|
|
3412
|
+
(rule.pseudos = rule.pseudos || []).push(pseudo);
|
|
3413
|
+
} else {
|
|
3414
|
+
break;
|
|
3491
3415
|
}
|
|
3492
|
-
},
|
|
3493
|
-
clear: function clear() {
|
|
3494
|
-
size = 0;
|
|
3495
|
-
base = 1;
|
|
3496
|
-
queue2 = create(null);
|
|
3497
|
-
map = create(null);
|
|
3498
|
-
index = 0;
|
|
3499
3416
|
}
|
|
3500
|
-
|
|
3501
|
-
};
|
|
3502
|
-
});
|
|
3503
|
-
var require_max = __commonJS(function() {
|
|
3504
|
-
'use strict';
|
|
3505
|
-
var toPosInteger = require_to_pos_integer();
|
|
3506
|
-
var lruQueue = require_lru_queue();
|
|
3507
|
-
var extensions = require_registered_extensions();
|
|
3508
|
-
extensions.max = function(max2, conf, options) {
|
|
3509
|
-
var postfix, queue2, hit;
|
|
3510
|
-
max2 = toPosInteger(max2);
|
|
3511
|
-
if (!max2) {
|
|
3512
|
-
return;
|
|
3417
|
+
return rule;
|
|
3513
3418
|
}
|
|
3514
|
-
|
|
3515
|
-
|
|
3516
|
-
|
|
3517
|
-
id = queue2.hit(id);
|
|
3518
|
-
if (id === void 0) {
|
|
3519
|
-
return;
|
|
3520
|
-
}
|
|
3521
|
-
conf['delete'](id);
|
|
3522
|
-
});
|
|
3523
|
-
conf.on('get' + postfix, hit);
|
|
3524
|
-
conf.on('delete' + postfix, queue2['delete']);
|
|
3525
|
-
conf.on('clear' + postfix, queue2.clear);
|
|
3526
|
-
};
|
|
3419
|
+
return parse3();
|
|
3420
|
+
}
|
|
3421
|
+
exports.parseCssSelector = parseCssSelector;
|
|
3527
3422
|
});
|
|
3528
|
-
var
|
|
3423
|
+
var require_render = __commonJS(function(exports) {
|
|
3529
3424
|
'use strict';
|
|
3530
|
-
|
|
3531
|
-
|
|
3532
|
-
|
|
3533
|
-
var
|
|
3534
|
-
|
|
3535
|
-
var
|
|
3536
|
-
|
|
3537
|
-
|
|
3538
|
-
|
|
3539
|
-
|
|
3540
|
-
|
|
3541
|
-
|
|
3542
|
-
|
|
3543
|
-
});
|
|
3544
|
-
conf.on('delete' + postfix, function(id) {
|
|
3545
|
-
delete cache2[id];
|
|
3546
|
-
});
|
|
3547
|
-
conf.on('clear' + postfix, function() {
|
|
3548
|
-
cache2 = {};
|
|
3549
|
-
});
|
|
3550
|
-
defineProperties(conf.memoized, {
|
|
3551
|
-
deleteRef: d2(function() {
|
|
3552
|
-
var id = conf.get(arguments);
|
|
3553
|
-
if (id === null) {
|
|
3554
|
-
return null;
|
|
3555
|
-
}
|
|
3556
|
-
if (!cache2[id]) {
|
|
3557
|
-
return null;
|
|
3558
|
-
}
|
|
3559
|
-
if (!--cache2[id]) {
|
|
3560
|
-
conf['delete'](id);
|
|
3561
|
-
return true;
|
|
3562
|
-
}
|
|
3563
|
-
return false;
|
|
3564
|
-
}),
|
|
3565
|
-
getRefCount: d2(function() {
|
|
3566
|
-
var id = conf.get(arguments);
|
|
3567
|
-
if (id === null) {
|
|
3568
|
-
return 0;
|
|
3569
|
-
}
|
|
3570
|
-
if (!cache2[id]) {
|
|
3571
|
-
return 0;
|
|
3425
|
+
Object.defineProperty(exports, '__esModule', {
|
|
3426
|
+
value: true
|
|
3427
|
+
});
|
|
3428
|
+
var utils_1 = require_utils();
|
|
3429
|
+
function renderEntity(entity) {
|
|
3430
|
+
var res = '';
|
|
3431
|
+
switch (entity.type) {
|
|
3432
|
+
case 'ruleSet':
|
|
3433
|
+
var currentEntity = entity.rule;
|
|
3434
|
+
var parts = [];
|
|
3435
|
+
while (currentEntity) {
|
|
3436
|
+
if (currentEntity.nestingOperator) {
|
|
3437
|
+
parts.push(currentEntity.nestingOperator);
|
|
3572
3438
|
}
|
|
3573
|
-
|
|
3574
|
-
|
|
3575
|
-
|
|
3576
|
-
|
|
3577
|
-
|
|
3578
|
-
|
|
3579
|
-
|
|
3580
|
-
|
|
3581
|
-
|
|
3582
|
-
|
|
3583
|
-
|
|
3584
|
-
|
|
3585
|
-
|
|
3586
|
-
|
|
3587
|
-
if (length !== 0) {
|
|
3588
|
-
if (options.primitive) {
|
|
3589
|
-
if (length === false) {
|
|
3590
|
-
options.normalizer = require_primitive();
|
|
3591
|
-
} else if (length > 1) {
|
|
3592
|
-
options.normalizer = require_get_primitive_fixed()(length);
|
|
3593
|
-
}
|
|
3594
|
-
} else if (length === false) {
|
|
3595
|
-
options.normalizer = require_get()();
|
|
3596
|
-
} else if (length === 1) {
|
|
3597
|
-
options.normalizer = require_get_1()();
|
|
3439
|
+
parts.push(renderEntity(currentEntity));
|
|
3440
|
+
currentEntity = currentEntity.rule;
|
|
3441
|
+
}
|
|
3442
|
+
res = parts.join(' ');
|
|
3443
|
+
break;
|
|
3444
|
+
|
|
3445
|
+
case 'selectors':
|
|
3446
|
+
res = entity.selectors.map(renderEntity).join(', ');
|
|
3447
|
+
break;
|
|
3448
|
+
|
|
3449
|
+
case 'rule':
|
|
3450
|
+
if (entity.tagName) {
|
|
3451
|
+
if (entity.tagName === '*') {
|
|
3452
|
+
res = '*';
|
|
3598
3453
|
} else {
|
|
3599
|
-
|
|
3454
|
+
res = utils_1.escapeIdentifier(entity.tagName);
|
|
3600
3455
|
}
|
|
3601
3456
|
}
|
|
3457
|
+
if (entity.id) {
|
|
3458
|
+
res += '#' + utils_1.escapeIdentifier(entity.id);
|
|
3459
|
+
}
|
|
3460
|
+
if (entity.classNames) {
|
|
3461
|
+
res += entity.classNames.map(function(cn) {
|
|
3462
|
+
return '.' + utils_1.escapeIdentifier(cn);
|
|
3463
|
+
}).join('');
|
|
3464
|
+
}
|
|
3465
|
+
if (entity.attrs) {
|
|
3466
|
+
res += entity.attrs.map(function(attr) {
|
|
3467
|
+
if ('operator' in attr) {
|
|
3468
|
+
if (attr.valueType === 'substitute') {
|
|
3469
|
+
return '[' + utils_1.escapeIdentifier(attr.name) + attr.operator + '$' + attr.value + ']';
|
|
3470
|
+
} else {
|
|
3471
|
+
return '[' + utils_1.escapeIdentifier(attr.name) + attr.operator + utils_1.escapeStr(attr.value) + ']';
|
|
3472
|
+
}
|
|
3473
|
+
} else {
|
|
3474
|
+
return '[' + utils_1.escapeIdentifier(attr.name) + ']';
|
|
3475
|
+
}
|
|
3476
|
+
}).join('');
|
|
3477
|
+
}
|
|
3478
|
+
if (entity.pseudos) {
|
|
3479
|
+
res += entity.pseudos.map(function(pseudo) {
|
|
3480
|
+
if (pseudo.valueType) {
|
|
3481
|
+
if (pseudo.valueType === 'selector') {
|
|
3482
|
+
return ':' + utils_1.escapeIdentifier(pseudo.name) + '(' + renderEntity(pseudo.value) + ')';
|
|
3483
|
+
} else if (pseudo.valueType === 'substitute') {
|
|
3484
|
+
return ':' + utils_1.escapeIdentifier(pseudo.name) + '($' + pseudo.value + ')';
|
|
3485
|
+
} else if (pseudo.valueType === 'numeric') {
|
|
3486
|
+
return ':' + utils_1.escapeIdentifier(pseudo.name) + '(' + pseudo.value + ')';
|
|
3487
|
+
} else {
|
|
3488
|
+
return ':' + utils_1.escapeIdentifier(pseudo.name) + '(' + utils_1.escapeIdentifier(pseudo.value) + ')';
|
|
3489
|
+
}
|
|
3490
|
+
} else {
|
|
3491
|
+
return ':' + utils_1.escapeIdentifier(pseudo.name);
|
|
3492
|
+
}
|
|
3493
|
+
}).join('');
|
|
3494
|
+
}
|
|
3495
|
+
break;
|
|
3496
|
+
|
|
3497
|
+
default:
|
|
3498
|
+
throw Error('Unknown entity type: "' + entity.type + '".');
|
|
3602
3499
|
}
|
|
3603
|
-
|
|
3604
|
-
|
|
3605
|
-
|
|
3606
|
-
|
|
3607
|
-
|
|
3608
|
-
|
|
3609
|
-
|
|
3610
|
-
|
|
3611
|
-
|
|
3612
|
-
|
|
3613
|
-
|
|
3614
|
-
|
|
3615
|
-
|
|
3616
|
-
|
|
3617
|
-
|
|
3618
|
-
|
|
3619
|
-
|
|
3500
|
+
return res;
|
|
3501
|
+
}
|
|
3502
|
+
exports.renderEntity = renderEntity;
|
|
3503
|
+
});
|
|
3504
|
+
var require_lib = __commonJS(function(exports) {
|
|
3505
|
+
'use strict';
|
|
3506
|
+
Object.defineProperty(exports, '__esModule', {
|
|
3507
|
+
value: true
|
|
3508
|
+
});
|
|
3509
|
+
var parser_context_1 = require_parser_context();
|
|
3510
|
+
var render_1 = require_render();
|
|
3511
|
+
var CssSelectorParser3 = function() {
|
|
3512
|
+
function CssSelectorParser4() {
|
|
3513
|
+
this.pseudos = {};
|
|
3514
|
+
this.attrEqualityMods = {};
|
|
3515
|
+
this.ruleNestingOperators = {};
|
|
3516
|
+
this.substitutesEnabled = false;
|
|
3620
3517
|
}
|
|
3621
|
-
|
|
3622
|
-
|
|
3518
|
+
CssSelectorParser4.prototype.registerSelectorPseudos = function() {
|
|
3519
|
+
var pseudos = [];
|
|
3520
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
3521
|
+
pseudos[_i] = arguments[_i];
|
|
3522
|
+
}
|
|
3523
|
+
for (var _a = 0, pseudos_1 = pseudos; _a < pseudos_1.length; _a++) {
|
|
3524
|
+
var pseudo = pseudos_1[_a];
|
|
3525
|
+
this.pseudos[pseudo] = 'selector';
|
|
3526
|
+
}
|
|
3527
|
+
return this;
|
|
3528
|
+
};
|
|
3529
|
+
CssSelectorParser4.prototype.unregisterSelectorPseudos = function() {
|
|
3530
|
+
var pseudos = [];
|
|
3531
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
3532
|
+
pseudos[_i] = arguments[_i];
|
|
3533
|
+
}
|
|
3534
|
+
for (var _a = 0, pseudos_2 = pseudos; _a < pseudos_2.length; _a++) {
|
|
3535
|
+
var pseudo = pseudos_2[_a];
|
|
3536
|
+
delete this.pseudos[pseudo];
|
|
3537
|
+
}
|
|
3538
|
+
return this;
|
|
3539
|
+
};
|
|
3540
|
+
CssSelectorParser4.prototype.registerNumericPseudos = function() {
|
|
3541
|
+
var pseudos = [];
|
|
3542
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
3543
|
+
pseudos[_i] = arguments[_i];
|
|
3544
|
+
}
|
|
3545
|
+
for (var _a = 0, pseudos_3 = pseudos; _a < pseudos_3.length; _a++) {
|
|
3546
|
+
var pseudo = pseudos_3[_a];
|
|
3547
|
+
this.pseudos[pseudo] = 'numeric';
|
|
3548
|
+
}
|
|
3549
|
+
return this;
|
|
3550
|
+
};
|
|
3551
|
+
CssSelectorParser4.prototype.unregisterNumericPseudos = function() {
|
|
3552
|
+
var pseudos = [];
|
|
3553
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
3554
|
+
pseudos[_i] = arguments[_i];
|
|
3555
|
+
}
|
|
3556
|
+
for (var _a = 0, pseudos_4 = pseudos; _a < pseudos_4.length; _a++) {
|
|
3557
|
+
var pseudo = pseudos_4[_a];
|
|
3558
|
+
delete this.pseudos[pseudo];
|
|
3559
|
+
}
|
|
3560
|
+
return this;
|
|
3561
|
+
};
|
|
3562
|
+
CssSelectorParser4.prototype.registerNestingOperators = function() {
|
|
3563
|
+
var operators = [];
|
|
3564
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
3565
|
+
operators[_i] = arguments[_i];
|
|
3566
|
+
}
|
|
3567
|
+
for (var _a = 0, operators_1 = operators; _a < operators_1.length; _a++) {
|
|
3568
|
+
var operator = operators_1[_a];
|
|
3569
|
+
this.ruleNestingOperators[operator] = true;
|
|
3570
|
+
}
|
|
3571
|
+
return this;
|
|
3572
|
+
};
|
|
3573
|
+
CssSelectorParser4.prototype.unregisterNestingOperators = function() {
|
|
3574
|
+
var operators = [];
|
|
3575
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
3576
|
+
operators[_i] = arguments[_i];
|
|
3577
|
+
}
|
|
3578
|
+
for (var _a = 0, operators_2 = operators; _a < operators_2.length; _a++) {
|
|
3579
|
+
var operator = operators_2[_a];
|
|
3580
|
+
delete this.ruleNestingOperators[operator];
|
|
3581
|
+
}
|
|
3582
|
+
return this;
|
|
3583
|
+
};
|
|
3584
|
+
CssSelectorParser4.prototype.registerAttrEqualityMods = function() {
|
|
3585
|
+
var mods = [];
|
|
3586
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
3587
|
+
mods[_i] = arguments[_i];
|
|
3588
|
+
}
|
|
3589
|
+
for (var _a = 0, mods_1 = mods; _a < mods_1.length; _a++) {
|
|
3590
|
+
var mod = mods_1[_a];
|
|
3591
|
+
this.attrEqualityMods[mod] = true;
|
|
3592
|
+
}
|
|
3593
|
+
return this;
|
|
3594
|
+
};
|
|
3595
|
+
CssSelectorParser4.prototype.unregisterAttrEqualityMods = function() {
|
|
3596
|
+
var mods = [];
|
|
3597
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
3598
|
+
mods[_i] = arguments[_i];
|
|
3599
|
+
}
|
|
3600
|
+
for (var _a = 0, mods_2 = mods; _a < mods_2.length; _a++) {
|
|
3601
|
+
var mod = mods_2[_a];
|
|
3602
|
+
delete this.attrEqualityMods[mod];
|
|
3603
|
+
}
|
|
3604
|
+
return this;
|
|
3605
|
+
};
|
|
3606
|
+
CssSelectorParser4.prototype.enableSubstitutes = function() {
|
|
3607
|
+
this.substitutesEnabled = true;
|
|
3608
|
+
return this;
|
|
3609
|
+
};
|
|
3610
|
+
CssSelectorParser4.prototype.disableSubstitutes = function() {
|
|
3611
|
+
this.substitutesEnabled = false;
|
|
3612
|
+
return this;
|
|
3613
|
+
};
|
|
3614
|
+
CssSelectorParser4.prototype.parse = function(str) {
|
|
3615
|
+
return parser_context_1.parseCssSelector(str, 0, this.pseudos, this.attrEqualityMods, this.ruleNestingOperators, this.substitutesEnabled);
|
|
3616
|
+
};
|
|
3617
|
+
CssSelectorParser4.prototype.render = function(path) {
|
|
3618
|
+
return render_1.renderEntity(path).trim();
|
|
3619
|
+
};
|
|
3620
|
+
return CssSelectorParser4;
|
|
3621
|
+
}();
|
|
3622
|
+
exports.CssSelectorParser = CssSelectorParser3;
|
|
3623
3623
|
});
|
|
3624
3624
|
var require_doT = __commonJS(function(exports, module) {
|
|
3625
3625
|
(function() {
|
|
@@ -5084,7 +5084,7 @@
|
|
|
5084
5084
|
return check_helper_default;
|
|
5085
5085
|
},
|
|
5086
5086
|
clone: function clone() {
|
|
5087
|
-
return
|
|
5087
|
+
return _clone;
|
|
5088
5088
|
},
|
|
5089
5089
|
closest: function closest() {
|
|
5090
5090
|
return closest_default;
|
|
@@ -5649,12 +5649,20 @@
|
|
|
5649
5649
|
};
|
|
5650
5650
|
}();
|
|
5651
5651
|
var element_matches_default = matchesSelector;
|
|
5652
|
-
|
|
5653
|
-
|
|
5652
|
+
var import_memoizee = __toModule(require_memoizee());
|
|
5653
|
+
axe._memoizedFns = [];
|
|
5654
|
+
function memoizeImplementation(fn) {
|
|
5655
|
+
var memoized = (0, import_memoizee['default'])(fn);
|
|
5656
|
+
axe._memoizedFns.push(memoized);
|
|
5657
|
+
return memoized;
|
|
5658
|
+
}
|
|
5659
|
+
var memoize_default = memoizeImplementation;
|
|
5660
|
+
var isXHTML = memoize_default(function(doc) {
|
|
5661
|
+
if (!(doc !== null && doc !== void 0 && doc.createElement)) {
|
|
5654
5662
|
return false;
|
|
5655
5663
|
}
|
|
5656
5664
|
return doc.createElement('A').localName === 'A';
|
|
5657
|
-
}
|
|
5665
|
+
});
|
|
5658
5666
|
var is_xhtml_default = isXHTML;
|
|
5659
5667
|
function getShadowSelector(generateSelector2, elm) {
|
|
5660
5668
|
var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
@@ -5687,7 +5695,6 @@
|
|
|
5687
5695
|
});
|
|
5688
5696
|
}
|
|
5689
5697
|
var get_shadow_selector_default = getShadowSelector;
|
|
5690
|
-
var xhtml;
|
|
5691
5698
|
var ignoredAttributes = [ 'class', 'style', 'id', 'selected', 'checked', 'disabled', 'tabindex', 'aria-checked', 'aria-selected', 'aria-invalid', 'aria-activedescendant', 'aria-busy', 'aria-disabled', 'aria-expanded', 'aria-grabbed', 'aria-pressed', 'aria-valuenow' ];
|
|
5692
5699
|
var MAXATTRIBUTELENGTH = 31;
|
|
5693
5700
|
var attrCharsRegex = /([\\"])/g;
|
|
@@ -5717,7 +5724,7 @@
|
|
|
5717
5724
|
return !ignoredAttributes.includes(at.name) && at.name.indexOf(':') === -1 && (!at.value || at.value.length < MAXATTRIBUTELENGTH);
|
|
5718
5725
|
}
|
|
5719
5726
|
function _getSelectorData(domTree) {
|
|
5720
|
-
var
|
|
5727
|
+
var data = {
|
|
5721
5728
|
classes: {},
|
|
5722
5729
|
tags: {},
|
|
5723
5730
|
attributes: {}
|
|
@@ -5730,18 +5737,18 @@
|
|
|
5730
5737
|
var node = current.actualNode;
|
|
5731
5738
|
if (!!node.querySelectorAll) {
|
|
5732
5739
|
var tag = node.nodeName;
|
|
5733
|
-
if (
|
|
5734
|
-
|
|
5740
|
+
if (data.tags[tag]) {
|
|
5741
|
+
data.tags[tag]++;
|
|
5735
5742
|
} else {
|
|
5736
|
-
|
|
5743
|
+
data.tags[tag] = 1;
|
|
5737
5744
|
}
|
|
5738
5745
|
if (node.classList) {
|
|
5739
5746
|
Array.from(node.classList).forEach(function(cl) {
|
|
5740
5747
|
var ind = escape_selector_default(cl);
|
|
5741
|
-
if (
|
|
5742
|
-
|
|
5748
|
+
if (data.classes[ind]) {
|
|
5749
|
+
data.classes[ind]++;
|
|
5743
5750
|
} else {
|
|
5744
|
-
|
|
5751
|
+
data.classes[ind] = 1;
|
|
5745
5752
|
}
|
|
5746
5753
|
});
|
|
5747
5754
|
}
|
|
@@ -5749,10 +5756,10 @@
|
|
|
5749
5756
|
Array.from(get_node_attributes_default(node)).filter(filterAttributes).forEach(function(at) {
|
|
5750
5757
|
var atnv = getAttributeNameValue(node, at);
|
|
5751
5758
|
if (atnv) {
|
|
5752
|
-
if (
|
|
5753
|
-
|
|
5759
|
+
if (data.attributes[atnv]) {
|
|
5760
|
+
data.attributes[atnv]++;
|
|
5754
5761
|
} else {
|
|
5755
|
-
|
|
5762
|
+
data.attributes[atnv] = 1;
|
|
5756
5763
|
}
|
|
5757
5764
|
}
|
|
5758
5765
|
});
|
|
@@ -5769,7 +5776,7 @@
|
|
|
5769
5776
|
while (currentLevel.length) {
|
|
5770
5777
|
_loop2();
|
|
5771
5778
|
}
|
|
5772
|
-
return
|
|
5779
|
+
return data;
|
|
5773
5780
|
}
|
|
5774
5781
|
function uncommonClasses(node, selectorData) {
|
|
5775
5782
|
var retVal = [];
|
|
@@ -5812,9 +5819,7 @@
|
|
|
5812
5819
|
}
|
|
5813
5820
|
}
|
|
5814
5821
|
function getBaseSelector(elm) {
|
|
5815
|
-
|
|
5816
|
-
xhtml = is_xhtml_default(document);
|
|
5817
|
-
}
|
|
5822
|
+
var xhtml = is_xhtml_default(document);
|
|
5818
5823
|
return escape_selector_default(xhtml ? elm.localName : elm.nodeName.toLowerCase());
|
|
5819
5824
|
}
|
|
5820
5825
|
function uncommonAttributes(node, selectorData) {
|
|
@@ -6123,8 +6128,8 @@
|
|
|
6123
6128
|
}
|
|
6124
6129
|
};
|
|
6125
6130
|
},
|
|
6126
|
-
data: function data(
|
|
6127
|
-
checkResult.data =
|
|
6131
|
+
data: function data(_data) {
|
|
6132
|
+
checkResult.data = _data;
|
|
6128
6133
|
},
|
|
6129
6134
|
relatedNodes: function relatedNodes(nodes) {
|
|
6130
6135
|
if (!window.Node) {
|
|
@@ -6149,28 +6154,35 @@
|
|
|
6149
6154
|
};
|
|
6150
6155
|
}
|
|
6151
6156
|
var check_helper_default = checkHelper;
|
|
6152
|
-
function
|
|
6157
|
+
function _clone(obj) {
|
|
6158
|
+
return cloneRecused(obj, new Map());
|
|
6159
|
+
}
|
|
6160
|
+
function cloneRecused(obj, seen) {
|
|
6153
6161
|
var _window, _window2;
|
|
6154
|
-
|
|
6155
|
-
if ((_window = window) !== null && _window !== void 0 && _window.Node && obj instanceof window.Node || (_window2 = window) !== null && _window2 !== void 0 && _window2.HTMLCollection && obj instanceof window.HTMLCollection) {
|
|
6162
|
+
if (obj === null || _typeof(obj) !== 'object') {
|
|
6156
6163
|
return obj;
|
|
6157
6164
|
}
|
|
6158
|
-
if (
|
|
6159
|
-
|
|
6160
|
-
|
|
6161
|
-
|
|
6162
|
-
|
|
6163
|
-
|
|
6164
|
-
|
|
6165
|
-
|
|
6166
|
-
|
|
6167
|
-
|
|
6168
|
-
|
|
6169
|
-
}
|
|
6165
|
+
if ((_window = window) !== null && _window !== void 0 && _window.Node && obj instanceof window.Node || (_window2 = window) !== null && _window2 !== void 0 && _window2.HTMLCollection && obj instanceof window.HTMLCollection || 'nodeName' in obj && 'nodeType' in obj && 'ownerDocument' in obj) {
|
|
6166
|
+
return obj;
|
|
6167
|
+
}
|
|
6168
|
+
if (seen.has(obj)) {
|
|
6169
|
+
return seen.get(obj);
|
|
6170
|
+
}
|
|
6171
|
+
if (Array.isArray(obj)) {
|
|
6172
|
+
var out2 = [];
|
|
6173
|
+
seen.set(obj, out2);
|
|
6174
|
+
obj.forEach(function(value) {
|
|
6175
|
+
out2.push(cloneRecused(value, seen));
|
|
6176
|
+
});
|
|
6177
|
+
return out2;
|
|
6178
|
+
}
|
|
6179
|
+
var out = {};
|
|
6180
|
+
seen.set(obj, out);
|
|
6181
|
+
for (var key in obj) {
|
|
6182
|
+
out[key] = cloneRecused(obj[key], seen);
|
|
6170
6183
|
}
|
|
6171
6184
|
return out;
|
|
6172
6185
|
}
|
|
6173
|
-
var clone_default = clone;
|
|
6174
6186
|
var import_css_selector_parser = __toModule(require_lib());
|
|
6175
6187
|
var parser = new import_css_selector_parser.CssSelectorParser();
|
|
6176
6188
|
parser.registerSelectorPseudos('not');
|
|
@@ -6603,7 +6615,7 @@
|
|
|
6603
6615
|
var errorTypes = Object.freeze([ 'EvalError', 'RangeError', 'ReferenceError', 'SyntaxError', 'TypeError', 'URIError' ]);
|
|
6604
6616
|
function stringifyMessage(_ref2) {
|
|
6605
6617
|
var topic = _ref2.topic, channelId = _ref2.channelId, message = _ref2.message, messageId = _ref2.messageId, keepalive = _ref2.keepalive;
|
|
6606
|
-
var
|
|
6618
|
+
var data = {
|
|
6607
6619
|
channelId: channelId,
|
|
6608
6620
|
topic: topic,
|
|
6609
6621
|
messageId: messageId,
|
|
@@ -6611,28 +6623,28 @@
|
|
|
6611
6623
|
source: getSource2()
|
|
6612
6624
|
};
|
|
6613
6625
|
if (message instanceof Error) {
|
|
6614
|
-
|
|
6626
|
+
data.error = {
|
|
6615
6627
|
name: message.name,
|
|
6616
6628
|
message: message.message,
|
|
6617
6629
|
stack: message.stack
|
|
6618
6630
|
};
|
|
6619
6631
|
} else {
|
|
6620
|
-
|
|
6632
|
+
data.payload = message;
|
|
6621
6633
|
}
|
|
6622
|
-
return JSON.stringify(
|
|
6634
|
+
return JSON.stringify(data);
|
|
6623
6635
|
}
|
|
6624
6636
|
function parseMessage(dataString) {
|
|
6625
|
-
var
|
|
6637
|
+
var data;
|
|
6626
6638
|
try {
|
|
6627
|
-
|
|
6639
|
+
data = JSON.parse(dataString);
|
|
6628
6640
|
} catch (e) {
|
|
6629
6641
|
return;
|
|
6630
6642
|
}
|
|
6631
|
-
if (!isRespondableMessage(
|
|
6643
|
+
if (!isRespondableMessage(data)) {
|
|
6632
6644
|
return;
|
|
6633
6645
|
}
|
|
6634
|
-
var
|
|
6635
|
-
var message = _typeof(
|
|
6646
|
+
var _data2 = data, topic = _data2.topic, channelId = _data2.channelId, messageId = _data2.messageId, keepalive = _data2.keepalive;
|
|
6647
|
+
var message = _typeof(data.error) === 'object' ? buildErrorObject(data.error) : data.payload;
|
|
6636
6648
|
return {
|
|
6637
6649
|
topic: topic,
|
|
6638
6650
|
message: message,
|
|
@@ -6706,22 +6718,22 @@
|
|
|
6706
6718
|
messageIds.push(uuid2);
|
|
6707
6719
|
return true;
|
|
6708
6720
|
}
|
|
6709
|
-
function postMessage(win,
|
|
6710
|
-
if (typeof replyHandler === 'function') {
|
|
6711
|
-
storeReplyHandler(data2.channelId, replyHandler, sendToParent);
|
|
6712
|
-
}
|
|
6721
|
+
function postMessage(win, data, sendToParent, replyHandler) {
|
|
6713
6722
|
sendToParent ? assertIsParentWindow(win) : assertIsFrameWindow(win);
|
|
6714
|
-
if (
|
|
6715
|
-
axe.log(
|
|
6723
|
+
if (data.message instanceof Error && !sendToParent) {
|
|
6724
|
+
axe.log(data.message);
|
|
6716
6725
|
return false;
|
|
6717
6726
|
}
|
|
6718
6727
|
var dataString = stringifyMessage(_extends({
|
|
6719
6728
|
messageId: createMessageId()
|
|
6720
|
-
},
|
|
6729
|
+
}, data));
|
|
6721
6730
|
var allowedOrigins = axe._audit.allowedOrigins;
|
|
6722
6731
|
if (!allowedOrigins || !allowedOrigins.length) {
|
|
6723
6732
|
return false;
|
|
6724
6733
|
}
|
|
6734
|
+
if (typeof replyHandler === 'function') {
|
|
6735
|
+
storeReplyHandler(data.channelId, replyHandler, sendToParent);
|
|
6736
|
+
}
|
|
6725
6737
|
allowedOrigins.forEach(function(origin) {
|
|
6726
6738
|
try {
|
|
6727
6739
|
win.postMessage(dataString, origin);
|
|
@@ -6753,12 +6765,12 @@
|
|
|
6753
6765
|
function createResponder(win, channelId) {
|
|
6754
6766
|
var sendToParent = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
|
|
6755
6767
|
return function respond(message, keepalive, replyHandler) {
|
|
6756
|
-
var
|
|
6768
|
+
var data = {
|
|
6757
6769
|
channelId: channelId,
|
|
6758
6770
|
message: message,
|
|
6759
6771
|
keepalive: keepalive
|
|
6760
6772
|
};
|
|
6761
|
-
postMessage(win,
|
|
6773
|
+
postMessage(win, data, sendToParent, replyHandler);
|
|
6762
6774
|
};
|
|
6763
6775
|
}
|
|
6764
6776
|
function originIsAllowed(origin) {
|
|
@@ -6768,8 +6780,8 @@
|
|
|
6768
6780
|
function messageHandler(_ref3, topicHandler) {
|
|
6769
6781
|
var origin = _ref3.origin, dataString = _ref3.data, win = _ref3.source;
|
|
6770
6782
|
try {
|
|
6771
|
-
var
|
|
6772
|
-
var channelId =
|
|
6783
|
+
var data = parseMessage(dataString) || {};
|
|
6784
|
+
var channelId = data.channelId, message = data.message, messageId = data.messageId;
|
|
6773
6785
|
if (!originIsAllowed(origin) || !isNewMessage(messageId)) {
|
|
6774
6786
|
return;
|
|
6775
6787
|
}
|
|
@@ -6778,12 +6790,12 @@
|
|
|
6778
6790
|
return false;
|
|
6779
6791
|
}
|
|
6780
6792
|
try {
|
|
6781
|
-
if (
|
|
6793
|
+
if (data.topic) {
|
|
6782
6794
|
var responder = createResponder(win, channelId);
|
|
6783
6795
|
assertIsParentWindow(win);
|
|
6784
|
-
topicHandler(
|
|
6796
|
+
topicHandler(data, responder);
|
|
6785
6797
|
} else {
|
|
6786
|
-
callReplyHandler(win,
|
|
6798
|
+
callReplyHandler(win, data);
|
|
6787
6799
|
}
|
|
6788
6800
|
} catch (error) {
|
|
6789
6801
|
processError(win, error, channelId);
|
|
@@ -6793,8 +6805,8 @@
|
|
|
6793
6805
|
return false;
|
|
6794
6806
|
}
|
|
6795
6807
|
}
|
|
6796
|
-
function callReplyHandler(win,
|
|
6797
|
-
var channelId =
|
|
6808
|
+
function callReplyHandler(win, data) {
|
|
6809
|
+
var channelId = data.channelId, message = data.message, keepalive = data.keepalive;
|
|
6798
6810
|
var _ref4 = getReplyHandler(channelId) || {}, replyHandler = _ref4.replyHandler, sendToParent = _ref4.sendToParent;
|
|
6799
6811
|
if (!replyHandler) {
|
|
6800
6812
|
return;
|
|
@@ -6824,11 +6836,11 @@
|
|
|
6824
6836
|
window.removeEventListener('message', handler, false);
|
|
6825
6837
|
};
|
|
6826
6838
|
},
|
|
6827
|
-
post: function post(win,
|
|
6839
|
+
post: function post(win, data, replyHandler) {
|
|
6828
6840
|
if (typeof window.addEventListener !== 'function') {
|
|
6829
6841
|
return false;
|
|
6830
6842
|
}
|
|
6831
|
-
return postMessage(win,
|
|
6843
|
+
return postMessage(win, data, false, replyHandler);
|
|
6832
6844
|
}
|
|
6833
6845
|
};
|
|
6834
6846
|
function setDefaultFrameMessenger(respondable2) {
|
|
@@ -6838,16 +6850,16 @@
|
|
|
6838
6850
|
var postMessage2;
|
|
6839
6851
|
var topicHandlers = {};
|
|
6840
6852
|
function _respondable(win, topic, message, keepalive, replyHandler) {
|
|
6841
|
-
var
|
|
6853
|
+
var data = {
|
|
6842
6854
|
topic: topic,
|
|
6843
6855
|
message: message,
|
|
6844
6856
|
channelId: ''.concat(v4(), ':').concat(v4()),
|
|
6845
6857
|
keepalive: keepalive
|
|
6846
6858
|
};
|
|
6847
|
-
return postMessage2(win,
|
|
6859
|
+
return postMessage2(win, data, replyHandler);
|
|
6848
6860
|
}
|
|
6849
|
-
function messageListener(
|
|
6850
|
-
var topic =
|
|
6861
|
+
function messageListener(data, responder) {
|
|
6862
|
+
var topic = data.topic, message = data.message, keepalive = data.keepalive;
|
|
6851
6863
|
var topicHandler = topicHandlers[topic];
|
|
6852
6864
|
if (!topicHandler) {
|
|
6853
6865
|
return;
|
|
@@ -6919,12 +6931,12 @@
|
|
|
6919
6931
|
var timeout = setTimeout(function collectResultFramesTimeout() {
|
|
6920
6932
|
reject(err('Axe in frame timed out', node));
|
|
6921
6933
|
}, frameWaitTime);
|
|
6922
|
-
_respondable(win, 'axe.start', parameters, void 0, function(
|
|
6934
|
+
_respondable(win, 'axe.start', parameters, void 0, function(data) {
|
|
6923
6935
|
clearTimeout(timeout);
|
|
6924
|
-
if (
|
|
6925
|
-
resolve(
|
|
6936
|
+
if (data instanceof Error === false) {
|
|
6937
|
+
resolve(data);
|
|
6926
6938
|
} else {
|
|
6927
|
-
reject(
|
|
6939
|
+
reject(data);
|
|
6928
6940
|
}
|
|
6929
6941
|
});
|
|
6930
6942
|
}
|
|
@@ -6943,7 +6955,7 @@
|
|
|
6943
6955
|
function findBy(array, key, value) {
|
|
6944
6956
|
if (Array.isArray(array)) {
|
|
6945
6957
|
return array.find(function(obj) {
|
|
6946
|
-
return _typeof(obj) === 'object' && obj[key] === value;
|
|
6958
|
+
return obj !== null && _typeof(obj) === 'object' && Object.hasOwn(obj, key) && obj[key] === value;
|
|
6947
6959
|
});
|
|
6948
6960
|
}
|
|
6949
6961
|
}
|
|
@@ -7066,8 +7078,8 @@
|
|
|
7066
7078
|
_sendCommandToFrame(frameElement, params, callback, rej);
|
|
7067
7079
|
});
|
|
7068
7080
|
});
|
|
7069
|
-
q.then(function(
|
|
7070
|
-
resolve(merge_results_default(
|
|
7081
|
+
q.then(function(data) {
|
|
7082
|
+
resolve(merge_results_default(data, options));
|
|
7071
7083
|
})['catch'](reject);
|
|
7072
7084
|
}
|
|
7073
7085
|
function _contains(vNode, otherVNode) {
|
|
@@ -7325,14 +7337,6 @@
|
|
|
7325
7337
|
return find_up_virtual_default(get_node_from_tree_default(element), target);
|
|
7326
7338
|
}
|
|
7327
7339
|
var find_up_default = findUp;
|
|
7328
|
-
var import_memoizee = __toModule(require_memoizee());
|
|
7329
|
-
axe._memoizedFns = [];
|
|
7330
|
-
function memoizeImplementation(fn) {
|
|
7331
|
-
var memoized = (0, import_memoizee['default'])(fn);
|
|
7332
|
-
axe._memoizedFns.push(memoized);
|
|
7333
|
-
return memoized;
|
|
7334
|
-
}
|
|
7335
|
-
var memoize_default = memoizeImplementation;
|
|
7336
7340
|
function _rectsOverlap(rect1, rect2) {
|
|
7337
7341
|
return (rect1.left | 0) < (rect2.right | 0) && (rect1.right | 0) > (rect2.left | 0) && (rect1.top | 0) < (rect2.bottom | 0) && (rect1.bottom | 0) > (rect2.top | 0);
|
|
7338
7342
|
}
|
|
@@ -10753,9 +10757,13 @@
|
|
|
10753
10757
|
}
|
|
10754
10758
|
return false;
|
|
10755
10759
|
}
|
|
10756
|
-
var
|
|
10757
|
-
return ''
|
|
10758
|
-
|
|
10760
|
+
var getSectioningElementSelector = function getSectioningElementSelector() {
|
|
10761
|
+
return cache_default.get('sectioningElementSelector', function() {
|
|
10762
|
+
return get_elements_by_content_type_default('sectioning').map(function(nodeName2) {
|
|
10763
|
+
return ''.concat(nodeName2, ':not([role])');
|
|
10764
|
+
}).join(', ') + ' , main:not([role]), [role=article], [role=complementary], [role=main], [role=navigation], [role=region]';
|
|
10765
|
+
});
|
|
10766
|
+
};
|
|
10759
10767
|
function hasAccessibleName(vNode) {
|
|
10760
10768
|
var ariaLabelledby = sanitize_default(arialabelledby_text_default(vNode));
|
|
10761
10769
|
var ariaLabel = sanitize_default(_arialabelText(vNode));
|
|
@@ -10781,7 +10789,7 @@
|
|
|
10781
10789
|
fieldset: 'group',
|
|
10782
10790
|
figure: 'figure',
|
|
10783
10791
|
footer: function footer(vNode) {
|
|
10784
|
-
var sectioningElement = closest_default(vNode,
|
|
10792
|
+
var sectioningElement = closest_default(vNode, getSectioningElementSelector());
|
|
10785
10793
|
return !sectioningElement ? 'contentinfo' : null;
|
|
10786
10794
|
},
|
|
10787
10795
|
form: function form(vNode) {
|
|
@@ -10794,7 +10802,7 @@
|
|
|
10794
10802
|
h5: 'heading',
|
|
10795
10803
|
h6: 'heading',
|
|
10796
10804
|
header: function header(vNode) {
|
|
10797
|
-
var sectioningElement = closest_default(vNode,
|
|
10805
|
+
var sectioningElement = closest_default(vNode, getSectioningElementSelector());
|
|
10798
10806
|
return !sectioningElement ? 'banner' : null;
|
|
10799
10807
|
},
|
|
10800
10808
|
hr: 'separator',
|
|
@@ -12261,22 +12269,26 @@
|
|
|
12261
12269
|
return element instanceof window.Node;
|
|
12262
12270
|
}
|
|
12263
12271
|
var is_node_default = isNode;
|
|
12264
|
-
var
|
|
12272
|
+
var cacheKey = 'color.incompleteData';
|
|
12265
12273
|
var incompleteData = {
|
|
12266
12274
|
set: function set(key, reason) {
|
|
12267
12275
|
if (typeof key !== 'string') {
|
|
12268
12276
|
throw new Error('Incomplete data: key must be a string');
|
|
12269
12277
|
}
|
|
12278
|
+
var data = cache_default.get(cacheKey, function() {
|
|
12279
|
+
return {};
|
|
12280
|
+
});
|
|
12270
12281
|
if (reason) {
|
|
12271
12282
|
data[key] = reason;
|
|
12272
12283
|
}
|
|
12273
12284
|
return data[key];
|
|
12274
12285
|
},
|
|
12275
12286
|
get: function get(key) {
|
|
12276
|
-
|
|
12287
|
+
var data = cache_default.get(cacheKey);
|
|
12288
|
+
return data === null || data === void 0 ? void 0 : data[key];
|
|
12277
12289
|
},
|
|
12278
12290
|
clear: function clear() {
|
|
12279
|
-
|
|
12291
|
+
cache_default.set(cacheKey, {});
|
|
12280
12292
|
}
|
|
12281
12293
|
};
|
|
12282
12294
|
var incomplete_data_default = incompleteData;
|
|
@@ -15873,7 +15885,6 @@
|
|
|
15873
15885
|
return true;
|
|
15874
15886
|
}
|
|
15875
15887
|
var visually_overlaps_default = visuallyOverlaps;
|
|
15876
|
-
var isXHTMLGlobal;
|
|
15877
15888
|
var nodeIndex2 = 0;
|
|
15878
15889
|
var VirtualNode = function(_abstract_virtual_nod) {
|
|
15879
15890
|
_inherits(VirtualNode, _abstract_virtual_nod);
|
|
@@ -15892,10 +15903,7 @@
|
|
|
15892
15903
|
_this4.nodeIndex = nodeIndex2++;
|
|
15893
15904
|
_this4._isHidden = null;
|
|
15894
15905
|
_this4._cache = {};
|
|
15895
|
-
|
|
15896
|
-
isXHTMLGlobal = is_xhtml_default(node.ownerDocument);
|
|
15897
|
-
}
|
|
15898
|
-
_this4._isXHTML = isXHTMLGlobal;
|
|
15906
|
+
_this4._isXHTML = is_xhtml_default(node.ownerDocument);
|
|
15899
15907
|
if (node.nodeName.toLowerCase() === 'input') {
|
|
15900
15908
|
var type2 = node.getAttribute('type');
|
|
15901
15909
|
type2 = _this4._isXHTML ? type2 : (type2 || '').toLowerCase();
|
|
@@ -16060,7 +16068,7 @@
|
|
|
16060
16068
|
} else {
|
|
16061
16069
|
if (exp.id) {
|
|
16062
16070
|
var _selectorMap$idsKey$e;
|
|
16063
|
-
if (!selectorMap[idsKey] || !((_selectorMap$idsKey$e = selectorMap[idsKey][exp.id]) !== null && _selectorMap$idsKey$e !== void 0 && _selectorMap$idsKey$e.length)) {
|
|
16071
|
+
if (!selectorMap[idsKey] || !Object.hasOwn(selectorMap[idsKey], exp.id) || !((_selectorMap$idsKey$e = selectorMap[idsKey][exp.id]) !== null && _selectorMap$idsKey$e !== void 0 && _selectorMap$idsKey$e.length)) {
|
|
16064
16072
|
return;
|
|
16065
16073
|
}
|
|
16066
16074
|
nodes = selectorMap[idsKey][exp.id].filter(function(node) {
|
|
@@ -16112,7 +16120,9 @@
|
|
|
16112
16120
|
});
|
|
16113
16121
|
}
|
|
16114
16122
|
function cacheSelector(key, vNode, map) {
|
|
16115
|
-
map
|
|
16123
|
+
if (!Object.hasOwn(map, key)) {
|
|
16124
|
+
map[key] = [];
|
|
16125
|
+
}
|
|
16116
16126
|
map[key].push(vNode);
|
|
16117
16127
|
}
|
|
16118
16128
|
function cacheNodeSelectors(vNode, selectorMap) {
|
|
@@ -16337,46 +16347,46 @@
|
|
|
16337
16347
|
}
|
|
16338
16348
|
var process_aggregate_default = processAggregate;
|
|
16339
16349
|
var dataRegex = /\$\{\s?data\s?\}/g;
|
|
16340
|
-
function substitute(str,
|
|
16341
|
-
if (typeof
|
|
16342
|
-
return str.replace(dataRegex,
|
|
16350
|
+
function substitute(str, data) {
|
|
16351
|
+
if (typeof data === 'string') {
|
|
16352
|
+
return str.replace(dataRegex, data);
|
|
16343
16353
|
}
|
|
16344
|
-
for (var prop in
|
|
16345
|
-
if (
|
|
16354
|
+
for (var prop in data) {
|
|
16355
|
+
if (data.hasOwnProperty(prop)) {
|
|
16346
16356
|
var regex = new RegExp('\\${\\s?data\\.' + prop + '\\s?}', 'g');
|
|
16347
|
-
var replace = typeof
|
|
16357
|
+
var replace = typeof data[prop] === 'undefined' ? '' : String(data[prop]);
|
|
16348
16358
|
str = str.replace(regex, replace);
|
|
16349
16359
|
}
|
|
16350
16360
|
}
|
|
16351
16361
|
return str;
|
|
16352
16362
|
}
|
|
16353
|
-
function processMessage(message,
|
|
16363
|
+
function processMessage(message, data) {
|
|
16354
16364
|
if (!message) {
|
|
16355
16365
|
return;
|
|
16356
16366
|
}
|
|
16357
|
-
if (Array.isArray(
|
|
16358
|
-
|
|
16367
|
+
if (Array.isArray(data)) {
|
|
16368
|
+
data.values = data.join(', ');
|
|
16359
16369
|
if (typeof message.singular === 'string' && typeof message.plural === 'string') {
|
|
16360
|
-
var str2 =
|
|
16361
|
-
return substitute(str2,
|
|
16370
|
+
var str2 = data.length === 1 ? message.singular : message.plural;
|
|
16371
|
+
return substitute(str2, data);
|
|
16362
16372
|
}
|
|
16363
|
-
return substitute(message,
|
|
16373
|
+
return substitute(message, data);
|
|
16364
16374
|
}
|
|
16365
16375
|
if (typeof message === 'string') {
|
|
16366
|
-
return substitute(message,
|
|
16376
|
+
return substitute(message, data);
|
|
16367
16377
|
}
|
|
16368
|
-
if (typeof
|
|
16369
|
-
var _str = message[
|
|
16370
|
-
return substitute(_str,
|
|
16378
|
+
if (typeof data === 'string') {
|
|
16379
|
+
var _str = message[data];
|
|
16380
|
+
return substitute(_str, data);
|
|
16371
16381
|
}
|
|
16372
16382
|
var str = message['default'] || incompleteFallbackMessage();
|
|
16373
|
-
if (
|
|
16374
|
-
str = message[
|
|
16383
|
+
if (data && data.messageKey && message[data.messageKey]) {
|
|
16384
|
+
str = message[data.messageKey];
|
|
16375
16385
|
}
|
|
16376
|
-
return processMessage(str,
|
|
16386
|
+
return processMessage(str, data);
|
|
16377
16387
|
}
|
|
16378
16388
|
var process_message_default = processMessage;
|
|
16379
|
-
function getCheckMessage(checkId, type2,
|
|
16389
|
+
function getCheckMessage(checkId, type2, data) {
|
|
16380
16390
|
var check = axe._audit.data.checks[checkId];
|
|
16381
16391
|
if (!check) {
|
|
16382
16392
|
throw new Error('Cannot get message for unknown check: '.concat(checkId, '.'));
|
|
@@ -16384,7 +16394,7 @@
|
|
|
16384
16394
|
if (!check.messages[type2]) {
|
|
16385
16395
|
throw new Error('Check "'.concat(checkId, '"" does not have a "').concat(type2, '" message.'));
|
|
16386
16396
|
}
|
|
16387
|
-
return process_message_default(check.messages[type2],
|
|
16397
|
+
return process_message_default(check.messages[type2], data);
|
|
16388
16398
|
}
|
|
16389
16399
|
var get_check_message_default = getCheckMessage;
|
|
16390
16400
|
function getCheckOption(check, ruleID, options) {
|
|
@@ -16660,7 +16670,7 @@
|
|
|
16660
16670
|
}
|
|
16661
16671
|
function Context(spec, flatTree) {
|
|
16662
16672
|
var _spec, _spec2, _spec3, _spec4, _this5 = this;
|
|
16663
|
-
spec =
|
|
16673
|
+
spec = _clone(spec);
|
|
16664
16674
|
this.frames = [];
|
|
16665
16675
|
this.page = typeof ((_spec = spec) === null || _spec === void 0 ? void 0 : _spec.page) === 'boolean' ? spec.page : void 0;
|
|
16666
16676
|
this.initiator = typeof ((_spec2 = spec) === null || _spec2 === void 0 ? void 0 : _spec2.initiator) === 'boolean' ? spec.initiator : true;
|
|
@@ -16793,20 +16803,20 @@
|
|
|
16793
16803
|
}
|
|
16794
16804
|
var get_scroll_state_default = getScrollState;
|
|
16795
16805
|
function _getStandards() {
|
|
16796
|
-
return
|
|
16806
|
+
return _clone(standards_default);
|
|
16797
16807
|
}
|
|
16798
16808
|
function getStyleSheetFactory(dynamicDoc) {
|
|
16799
16809
|
if (!dynamicDoc) {
|
|
16800
16810
|
throw new Error('axe.utils.getStyleSheetFactory should be invoked with an argument');
|
|
16801
16811
|
}
|
|
16802
16812
|
return function(options) {
|
|
16803
|
-
var
|
|
16813
|
+
var data = options.data, _options$isCrossOrigi = options.isCrossOrigin, isCrossOrigin = _options$isCrossOrigi === void 0 ? false : _options$isCrossOrigi, shadowId = options.shadowId, root = options.root, priority = options.priority, _options$isLink = options.isLink, isLink = _options$isLink === void 0 ? false : _options$isLink;
|
|
16804
16814
|
var style = dynamicDoc.createElement('style');
|
|
16805
16815
|
if (isLink) {
|
|
16806
|
-
var text = dynamicDoc.createTextNode('@import "'.concat(
|
|
16816
|
+
var text = dynamicDoc.createTextNode('@import "'.concat(data.href, '"'));
|
|
16807
16817
|
style.appendChild(text);
|
|
16808
16818
|
} else {
|
|
16809
|
-
style.appendChild(dynamicDoc.createTextNode(
|
|
16819
|
+
style.appendChild(dynamicDoc.createTextNode(data));
|
|
16810
16820
|
}
|
|
16811
16821
|
dynamicDoc.head.appendChild(style);
|
|
16812
16822
|
return {
|
|
@@ -17037,9 +17047,9 @@
|
|
|
17037
17047
|
reject(request.responseText);
|
|
17038
17048
|
});
|
|
17039
17049
|
request.send();
|
|
17040
|
-
}).then(function(
|
|
17050
|
+
}).then(function(data) {
|
|
17041
17051
|
var result = options.convertDataToStylesheet({
|
|
17042
|
-
data:
|
|
17052
|
+
data: data,
|
|
17043
17053
|
isCrossOrigin: isCrossOrigin,
|
|
17044
17054
|
priority: priority,
|
|
17045
17055
|
root: options.rootNode,
|
|
@@ -17383,8 +17393,10 @@
|
|
|
17383
17393
|
retVal.parentShadowId = parentShadowId;
|
|
17384
17394
|
return retVal;
|
|
17385
17395
|
}
|
|
17386
|
-
var recycledLocalVariables = [];
|
|
17387
17396
|
function matchExpressions(domTree, expressions, filter) {
|
|
17397
|
+
var recycledLocalVariables = cache_default.get('qsa.recycledLocalVariables', function() {
|
|
17398
|
+
return [];
|
|
17399
|
+
});
|
|
17388
17400
|
var stack = [];
|
|
17389
17401
|
var vNodes = Array.isArray(domTree) ? domTree : [ domTree ];
|
|
17390
17402
|
var currentLevel = createLocalVariables(vNodes, expressions, null, domTree[0].shadowId, recycledLocalVariables.pop());
|
|
@@ -17512,10 +17524,10 @@
|
|
|
17512
17524
|
function getStylesheetsFromDocumentFragment(rootNode, convertDataToStylesheet) {
|
|
17513
17525
|
return Array.from(rootNode.children).filter(filerStyleAndLinkAttributesInDocumentFragment).reduce(function(out, node) {
|
|
17514
17526
|
var nodeName2 = node.nodeName.toUpperCase();
|
|
17515
|
-
var
|
|
17527
|
+
var data = nodeName2 === 'STYLE' ? node.textContent : node;
|
|
17516
17528
|
var isLink = nodeName2 === 'LINK';
|
|
17517
17529
|
var stylesheet = convertDataToStylesheet({
|
|
17518
|
-
data:
|
|
17530
|
+
data: data,
|
|
17519
17531
|
isLink: isLink,
|
|
17520
17532
|
root: rootNode
|
|
17521
17533
|
});
|
|
@@ -17691,29 +17703,29 @@
|
|
|
17691
17703
|
return function(check) {
|
|
17692
17704
|
var sourceData = checksData[check.id] || {};
|
|
17693
17705
|
var messages = sourceData.messages || {};
|
|
17694
|
-
var
|
|
17695
|
-
delete
|
|
17706
|
+
var data = Object.assign({}, sourceData);
|
|
17707
|
+
delete data.messages;
|
|
17696
17708
|
if (!rule.reviewOnFail && check.result === void 0) {
|
|
17697
17709
|
if (_typeof(messages.incomplete) === 'object' && !Array.isArray(check.data)) {
|
|
17698
|
-
|
|
17710
|
+
data.message = getIncompleteReason(check.data, messages);
|
|
17699
17711
|
}
|
|
17700
|
-
if (!
|
|
17701
|
-
|
|
17712
|
+
if (!data.message) {
|
|
17713
|
+
data.message = messages.incomplete;
|
|
17702
17714
|
}
|
|
17703
17715
|
} else {
|
|
17704
|
-
|
|
17716
|
+
data.message = check.result === shouldBeTrue ? messages.pass : messages.fail;
|
|
17705
17717
|
}
|
|
17706
|
-
if (typeof
|
|
17707
|
-
|
|
17718
|
+
if (typeof data.message !== 'function') {
|
|
17719
|
+
data.message = process_message_default(data.message, check.data);
|
|
17708
17720
|
}
|
|
17709
|
-
extend_meta_data_default(check,
|
|
17721
|
+
extend_meta_data_default(check, data);
|
|
17710
17722
|
};
|
|
17711
17723
|
}
|
|
17712
17724
|
function publishMetaData(ruleResult) {
|
|
17713
17725
|
var checksData = axe._audit.data.checks || {};
|
|
17714
17726
|
var rulesData = axe._audit.data.rules || {};
|
|
17715
17727
|
var rule = find_by_default(axe._audit.rules, 'id', ruleResult.id) || {};
|
|
17716
|
-
ruleResult.tags =
|
|
17728
|
+
ruleResult.tags = _clone(rule.tags || []);
|
|
17717
17729
|
var shouldBeTrue = extender(checksData, true, rule);
|
|
17718
17730
|
var shouldBeFalse = extender(checksData, false, rule);
|
|
17719
17731
|
ruleResult.nodes.forEach(function(detail) {
|
|
@@ -17721,7 +17733,7 @@
|
|
|
17721
17733
|
detail.all.forEach(shouldBeTrue);
|
|
17722
17734
|
detail.none.forEach(shouldBeFalse);
|
|
17723
17735
|
});
|
|
17724
|
-
extend_meta_data_default(ruleResult,
|
|
17736
|
+
extend_meta_data_default(ruleResult, _clone(rulesData[ruleResult.id] || {}));
|
|
17725
17737
|
}
|
|
17726
17738
|
var publish_metadata_default = publishMetaData;
|
|
17727
17739
|
function querySelectorAll(domTree, selector) {
|
|
@@ -18323,8 +18335,11 @@
|
|
|
18323
18335
|
if (node.hasAttribute) {
|
|
18324
18336
|
if (node.nodeName.toUpperCase() === 'LABEL' && node.hasAttribute('for')) {
|
|
18325
18337
|
var _id2 = node.getAttribute('for');
|
|
18326
|
-
|
|
18327
|
-
|
|
18338
|
+
if (!idRefs.has(_id2)) {
|
|
18339
|
+
idRefs.set(_id2, [ node ]);
|
|
18340
|
+
} else {
|
|
18341
|
+
idRefs.get(_id2).push(node);
|
|
18342
|
+
}
|
|
18328
18343
|
}
|
|
18329
18344
|
for (var _i27 = 0; _i27 < refAttrs.length; ++_i27) {
|
|
18330
18345
|
var attr = refAttrs[_i27];
|
|
@@ -18332,10 +18347,20 @@
|
|
|
18332
18347
|
if (!attrValue) {
|
|
18333
18348
|
continue;
|
|
18334
18349
|
}
|
|
18335
|
-
var
|
|
18336
|
-
|
|
18337
|
-
|
|
18338
|
-
|
|
18350
|
+
var _iterator13 = _createForOfIteratorHelper(token_list_default(attrValue)), _step13;
|
|
18351
|
+
try {
|
|
18352
|
+
for (_iterator13.s(); !(_step13 = _iterator13.n()).done; ) {
|
|
18353
|
+
var token = _step13.value;
|
|
18354
|
+
if (!idRefs.has(token)) {
|
|
18355
|
+
idRefs.set(token, [ node ]);
|
|
18356
|
+
} else {
|
|
18357
|
+
idRefs.get(token).push(node);
|
|
18358
|
+
}
|
|
18359
|
+
}
|
|
18360
|
+
} catch (err) {
|
|
18361
|
+
_iterator13.e(err);
|
|
18362
|
+
} finally {
|
|
18363
|
+
_iterator13.f();
|
|
18339
18364
|
}
|
|
18340
18365
|
}
|
|
18341
18366
|
}
|
|
@@ -18346,15 +18371,16 @@
|
|
|
18346
18371
|
}
|
|
18347
18372
|
}
|
|
18348
18373
|
function getAccessibleRefs(node) {
|
|
18374
|
+
var _idRefs$get;
|
|
18349
18375
|
node = node.actualNode || node;
|
|
18350
18376
|
var root = get_root_node_default2(node);
|
|
18351
18377
|
root = root.documentElement || root;
|
|
18352
18378
|
var idRefsByRoot = cache_default.get('idRefsByRoot', function() {
|
|
18353
|
-
return new
|
|
18379
|
+
return new Map();
|
|
18354
18380
|
});
|
|
18355
18381
|
var idRefs = idRefsByRoot.get(root);
|
|
18356
18382
|
if (!idRefs) {
|
|
18357
|
-
idRefs =
|
|
18383
|
+
idRefs = new Map();
|
|
18358
18384
|
idRefsByRoot.set(root, idRefs);
|
|
18359
18385
|
var refAttrs = Object.keys(standards_default.ariaAttrs).filter(function(attr) {
|
|
18360
18386
|
var type2 = standards_default.ariaAttrs[attr].type;
|
|
@@ -18362,7 +18388,7 @@
|
|
|
18362
18388
|
});
|
|
18363
18389
|
cacheIdRefs(root, idRefs, refAttrs);
|
|
18364
18390
|
}
|
|
18365
|
-
return idRefs
|
|
18391
|
+
return (_idRefs$get = idRefs.get(node.id)) !== null && _idRefs$get !== void 0 ? _idRefs$get : [];
|
|
18366
18392
|
}
|
|
18367
18393
|
var get_accessible_refs_default = getAccessibleRefs;
|
|
18368
18394
|
function isAriaRoleAllowedOnElement(node, role) {
|
|
@@ -20293,7 +20319,7 @@
|
|
|
20293
20319
|
var implicit = null;
|
|
20294
20320
|
var roles = lookup_table_default.role[role];
|
|
20295
20321
|
if (roles && roles.implicit) {
|
|
20296
|
-
implicit =
|
|
20322
|
+
implicit = _clone(roles.implicit);
|
|
20297
20323
|
}
|
|
20298
20324
|
return implicit;
|
|
20299
20325
|
}
|
|
@@ -20441,18 +20467,18 @@
|
|
|
20441
20467
|
if (Array.isArray(options[role])) {
|
|
20442
20468
|
allowed = unique_array_default(options[role].concat(allowed));
|
|
20443
20469
|
}
|
|
20444
|
-
var
|
|
20470
|
+
var _iterator14 = _createForOfIteratorHelper(virtualNode.attrNames), _step14;
|
|
20445
20471
|
try {
|
|
20446
|
-
for (
|
|
20447
|
-
var attrName =
|
|
20472
|
+
for (_iterator14.s(); !(_step14 = _iterator14.n()).done; ) {
|
|
20473
|
+
var attrName = _step14.value;
|
|
20448
20474
|
if (validate_attr_default(attrName) && !allowed.includes(attrName)) {
|
|
20449
20475
|
invalid.push(attrName);
|
|
20450
20476
|
}
|
|
20451
20477
|
}
|
|
20452
20478
|
} catch (err) {
|
|
20453
|
-
|
|
20479
|
+
_iterator14.e(err);
|
|
20454
20480
|
} finally {
|
|
20455
|
-
|
|
20481
|
+
_iterator14.f();
|
|
20456
20482
|
}
|
|
20457
20483
|
if (!invalid.length) {
|
|
20458
20484
|
return true;
|
|
@@ -21812,11 +21838,11 @@
|
|
|
21812
21838
|
return fgColor;
|
|
21813
21839
|
}
|
|
21814
21840
|
function findNodeInContexts(contexts, node) {
|
|
21815
|
-
var
|
|
21841
|
+
var _iterator15 = _createForOfIteratorHelper(contexts), _step15;
|
|
21816
21842
|
try {
|
|
21817
|
-
for (
|
|
21843
|
+
for (_iterator15.s(); !(_step15 = _iterator15.n()).done; ) {
|
|
21818
21844
|
var _context$vNode;
|
|
21819
|
-
var context =
|
|
21845
|
+
var context = _step15.value;
|
|
21820
21846
|
if (((_context$vNode = context.vNode) === null || _context$vNode === void 0 ? void 0 : _context$vNode.actualNode) === node) {
|
|
21821
21847
|
return context;
|
|
21822
21848
|
}
|
|
@@ -21826,9 +21852,9 @@
|
|
|
21826
21852
|
}
|
|
21827
21853
|
}
|
|
21828
21854
|
} catch (err) {
|
|
21829
|
-
|
|
21855
|
+
_iterator15.e(err);
|
|
21830
21856
|
} finally {
|
|
21831
|
-
|
|
21857
|
+
_iterator15.f();
|
|
21832
21858
|
}
|
|
21833
21859
|
}
|
|
21834
21860
|
function hasValidContrastRatio(bg, fg, fontSize, isBold) {
|
|
@@ -22724,8 +22750,8 @@
|
|
|
22724
22750
|
return (value || '').trim() !== '';
|
|
22725
22751
|
}
|
|
22726
22752
|
function hasLangEvaluate(node, options, virtualNode) {
|
|
22727
|
-
var
|
|
22728
|
-
if (options.attributes.includes('xml:lang') && options.attributes.includes('lang') && hasValue(virtualNode.attr('xml:lang')) && !hasValue(virtualNode.attr('lang')) && !
|
|
22753
|
+
var xhtml = typeof document !== 'undefined' ? is_xhtml_default(document) : false;
|
|
22754
|
+
if (options.attributes.includes('xml:lang') && options.attributes.includes('lang') && hasValue(virtualNode.attr('xml:lang')) && !hasValue(virtualNode.attr('lang')) && !xhtml) {
|
|
22729
22755
|
this.data({
|
|
22730
22756
|
messageKey: 'noXHTML'
|
|
22731
22757
|
});
|
|
@@ -23283,10 +23309,10 @@
|
|
|
23283
23309
|
var minOffset = (options === null || options === void 0 ? void 0 : options.minOffset) || 24;
|
|
23284
23310
|
var closeNeighbors = [];
|
|
23285
23311
|
var closestOffset = minOffset;
|
|
23286
|
-
var
|
|
23312
|
+
var _iterator16 = _createForOfIteratorHelper(_findNearbyElms(vNode, minOffset)), _step16;
|
|
23287
23313
|
try {
|
|
23288
|
-
for (
|
|
23289
|
-
var vNeighbor =
|
|
23314
|
+
for (_iterator16.s(); !(_step16 = _iterator16.n()).done; ) {
|
|
23315
|
+
var vNeighbor = _step16.value;
|
|
23290
23316
|
if (get_role_type_default(vNeighbor) !== 'widget' || !_isFocusable(vNeighbor)) {
|
|
23291
23317
|
continue;
|
|
23292
23318
|
}
|
|
@@ -23298,9 +23324,9 @@
|
|
|
23298
23324
|
closeNeighbors.push(vNeighbor);
|
|
23299
23325
|
}
|
|
23300
23326
|
} catch (err) {
|
|
23301
|
-
|
|
23327
|
+
_iterator16.e(err);
|
|
23302
23328
|
} finally {
|
|
23303
|
-
|
|
23329
|
+
_iterator16.f();
|
|
23304
23330
|
}
|
|
23305
23331
|
if (closeNeighbors.length === 0) {
|
|
23306
23332
|
this.data({
|
|
@@ -23388,10 +23414,10 @@
|
|
|
23388
23414
|
function filterByElmsOverlap(vNode, nearbyElms) {
|
|
23389
23415
|
var fullyObscuringElms = [];
|
|
23390
23416
|
var partialObscuringElms = [];
|
|
23391
|
-
var
|
|
23417
|
+
var _iterator17 = _createForOfIteratorHelper(nearbyElms), _step17;
|
|
23392
23418
|
try {
|
|
23393
|
-
for (
|
|
23394
|
-
var vNeighbor =
|
|
23419
|
+
for (_iterator17.s(); !(_step17 = _iterator17.n()).done; ) {
|
|
23420
|
+
var vNeighbor = _step17.value;
|
|
23395
23421
|
if (!isDescendantNotInTabOrder(vNode, vNeighbor) && _hasVisualOverlap(vNode, vNeighbor) && getCssPointerEvents(vNeighbor) !== 'none') {
|
|
23396
23422
|
if (isEnclosedRect(vNode, vNeighbor)) {
|
|
23397
23423
|
fullyObscuringElms.push(vNeighbor);
|
|
@@ -23401,9 +23427,9 @@
|
|
|
23401
23427
|
}
|
|
23402
23428
|
}
|
|
23403
23429
|
} catch (err) {
|
|
23404
|
-
|
|
23430
|
+
_iterator17.e(err);
|
|
23405
23431
|
} finally {
|
|
23406
|
-
|
|
23432
|
+
_iterator17.f();
|
|
23407
23433
|
}
|
|
23408
23434
|
return {
|
|
23409
23435
|
fullyObscuringElms: fullyObscuringElms,
|
|
@@ -23624,12 +23650,12 @@
|
|
|
23624
23650
|
return 'continue';
|
|
23625
23651
|
}
|
|
23626
23652
|
var sameNameResults = incompleteResults.filter(function(_ref129, resultNum) {
|
|
23627
|
-
var
|
|
23628
|
-
return
|
|
23653
|
+
var data = _ref129.data;
|
|
23654
|
+
return data.name === name && resultNum !== index;
|
|
23629
23655
|
});
|
|
23630
23656
|
var isSameUrl = sameNameResults.every(function(_ref130) {
|
|
23631
|
-
var
|
|
23632
|
-
return isIdenticalObject(
|
|
23657
|
+
var data = _ref130.data;
|
|
23658
|
+
return isIdenticalObject(data.urlProps, urlProps);
|
|
23633
23659
|
});
|
|
23634
23660
|
if (sameNameResults.length && !isSameUrl) {
|
|
23635
23661
|
currentResult.result = void 0;
|
|
@@ -24159,19 +24185,19 @@
|
|
|
24159
24185
|
return;
|
|
24160
24186
|
}
|
|
24161
24187
|
var frameAncestry = r.node.ancestry.slice(0, -1);
|
|
24162
|
-
var
|
|
24188
|
+
var _iterator18 = _createForOfIteratorHelper(iframeResults), _step18;
|
|
24163
24189
|
try {
|
|
24164
|
-
for (
|
|
24165
|
-
var iframeResult =
|
|
24190
|
+
for (_iterator18.s(); !(_step18 = _iterator18.n()).done; ) {
|
|
24191
|
+
var iframeResult = _step18.value;
|
|
24166
24192
|
if (match_ancestry_default(frameAncestry, iframeResult.node.ancestry)) {
|
|
24167
24193
|
r.result = iframeResult.result;
|
|
24168
24194
|
break;
|
|
24169
24195
|
}
|
|
24170
24196
|
}
|
|
24171
24197
|
} catch (err) {
|
|
24172
|
-
|
|
24198
|
+
_iterator18.e(err);
|
|
24173
24199
|
} finally {
|
|
24174
|
-
|
|
24200
|
+
_iterator18.f();
|
|
24175
24201
|
}
|
|
24176
24202
|
});
|
|
24177
24203
|
iframeResults.forEach(function(r) {
|
|
@@ -24182,7 +24208,6 @@
|
|
|
24182
24208
|
return results;
|
|
24183
24209
|
}
|
|
24184
24210
|
var region_after_default = regionAfter;
|
|
24185
|
-
var landmarkRoles2 = get_aria_roles_by_type_default('landmark');
|
|
24186
24211
|
var implicitAriaLiveRoles = [ 'alert', 'log', 'status' ];
|
|
24187
24212
|
function regionEvaluate(node, options, virtualNode) {
|
|
24188
24213
|
this.data({
|
|
@@ -24233,6 +24258,7 @@
|
|
|
24233
24258
|
var node = virtualNode.actualNode;
|
|
24234
24259
|
var role = get_role_default(virtualNode);
|
|
24235
24260
|
var ariaLive = (node.getAttribute('aria-live') || '').toLowerCase().trim();
|
|
24261
|
+
var landmarkRoles2 = get_aria_roles_by_type_default('landmark');
|
|
24236
24262
|
if ([ 'assertive', 'polite' ].includes(ariaLive) || implicitAriaLiveRoles.includes(role)) {
|
|
24237
24263
|
return true;
|
|
24238
24264
|
}
|
|
@@ -24343,18 +24369,18 @@
|
|
|
24343
24369
|
if (!noImportant && node.style.getPropertyPriority(cssProperty) !== 'important' || multiLineOnly && !_isMultiline(node)) {
|
|
24344
24370
|
return true;
|
|
24345
24371
|
}
|
|
24346
|
-
var
|
|
24372
|
+
var data = {};
|
|
24347
24373
|
if (typeof minValue === 'number') {
|
|
24348
|
-
|
|
24374
|
+
data.minValue = minValue;
|
|
24349
24375
|
}
|
|
24350
24376
|
if (typeof maxValue === 'number') {
|
|
24351
|
-
|
|
24377
|
+
data.maxValue = maxValue;
|
|
24352
24378
|
}
|
|
24353
24379
|
var declaredPropValue = node.style.getPropertyValue(cssProperty);
|
|
24354
24380
|
if ([ 'inherit', 'unset', 'revert', 'revert-layer' ].includes(declaredPropValue)) {
|
|
24355
24381
|
this.data(_extends({
|
|
24356
24382
|
value: declaredPropValue
|
|
24357
|
-
},
|
|
24383
|
+
}, data));
|
|
24358
24384
|
return true;
|
|
24359
24385
|
}
|
|
24360
24386
|
var value = getNumberValue(node, {
|
|
@@ -24364,7 +24390,7 @@
|
|
|
24364
24390
|
});
|
|
24365
24391
|
this.data(_extends({
|
|
24366
24392
|
value: value
|
|
24367
|
-
},
|
|
24393
|
+
}, data));
|
|
24368
24394
|
if (typeof value !== 'number') {
|
|
24369
24395
|
return void 0;
|
|
24370
24396
|
}
|
|
@@ -24977,7 +25003,7 @@
|
|
|
24977
25003
|
}
|
|
24978
25004
|
function isLandmarkVirtual(virtualNode2) {
|
|
24979
25005
|
var actualNode = virtualNode2.actualNode;
|
|
24980
|
-
var
|
|
25006
|
+
var landmarkRoles2 = get_aria_roles_by_type_default('landmark');
|
|
24981
25007
|
var role = get_role_default(actualNode);
|
|
24982
25008
|
if (!role) {
|
|
24983
25009
|
return false;
|
|
@@ -24990,7 +25016,7 @@
|
|
|
24990
25016
|
var accessibleText2 = accessible_text_virtual_default(virtualNode2);
|
|
24991
25017
|
return !!accessibleText2;
|
|
24992
25018
|
}
|
|
24993
|
-
return
|
|
25019
|
+
return landmarkRoles2.indexOf(role) >= 0 || role === 'region';
|
|
24994
25020
|
}
|
|
24995
25021
|
return isLandmarkVirtual(virtualNode) && _isVisibleToScreenReaders(node);
|
|
24996
25022
|
}
|
|
@@ -25773,8 +25799,8 @@
|
|
|
25773
25799
|
var ruleID = this.id;
|
|
25774
25800
|
afterChecks.forEach(function(check) {
|
|
25775
25801
|
var beforeResults = findCheckResults(result.nodes, check.id);
|
|
25776
|
-
var
|
|
25777
|
-
var afterResults = check.after(beforeResults,
|
|
25802
|
+
var checkOption = get_check_option_default(check, ruleID, options);
|
|
25803
|
+
var afterResults = check.after(beforeResults, checkOption.options);
|
|
25778
25804
|
if (_this12.reviewOnFail) {
|
|
25779
25805
|
afterResults.forEach(function(checkResult) {
|
|
25780
25806
|
var changeAnyAllResults = (_this12.any.includes(checkResult.id) || _this12.all.includes(checkResult.id)) && checkResult.result === false;
|
|
@@ -25847,7 +25873,7 @@
|
|
|
25847
25873
|
function getDefaultConfiguration(audit) {
|
|
25848
25874
|
var config;
|
|
25849
25875
|
if (audit) {
|
|
25850
|
-
config =
|
|
25876
|
+
config = _clone(audit);
|
|
25851
25877
|
config.commons = audit.commons;
|
|
25852
25878
|
} else {
|
|
25853
25879
|
config = {};
|
|
@@ -26041,10 +26067,10 @@
|
|
|
26041
26067
|
value: function setAllowedOrigins(allowedOrigins) {
|
|
26042
26068
|
var defaultOrigin = getDefaultOrigin();
|
|
26043
26069
|
this.allowedOrigins = [];
|
|
26044
|
-
var
|
|
26070
|
+
var _iterator19 = _createForOfIteratorHelper(allowedOrigins), _step19;
|
|
26045
26071
|
try {
|
|
26046
|
-
for (
|
|
26047
|
-
var origin =
|
|
26072
|
+
for (_iterator19.s(); !(_step19 = _iterator19.n()).done; ) {
|
|
26073
|
+
var origin = _step19.value;
|
|
26048
26074
|
if (origin === constants_default.allOrigins) {
|
|
26049
26075
|
this.allowedOrigins = [ '*' ];
|
|
26050
26076
|
return;
|
|
@@ -26055,9 +26081,9 @@
|
|
|
26055
26081
|
}
|
|
26056
26082
|
}
|
|
26057
26083
|
} catch (err) {
|
|
26058
|
-
|
|
26084
|
+
_iterator19.e(err);
|
|
26059
26085
|
} finally {
|
|
26060
|
-
|
|
26086
|
+
_iterator19.f();
|
|
26061
26087
|
}
|
|
26062
26088
|
}
|
|
26063
26089
|
}, {
|
|
@@ -26424,12 +26450,12 @@
|
|
|
26424
26450
|
q.defer(function(res, rej) {
|
|
26425
26451
|
audit.run(context, options, res, rej);
|
|
26426
26452
|
});
|
|
26427
|
-
q.then(function(
|
|
26453
|
+
q.then(function(data) {
|
|
26428
26454
|
try {
|
|
26429
26455
|
if (options.performanceTimer) {
|
|
26430
26456
|
performance_timer_default.auditEnd();
|
|
26431
26457
|
}
|
|
26432
|
-
var results = merge_results_default(
|
|
26458
|
+
var results = merge_results_default(data.map(function(results2) {
|
|
26433
26459
|
return {
|
|
26434
26460
|
results: results2
|
|
26435
26461
|
};
|
|
@@ -26455,7 +26481,7 @@
|
|
|
26455
26481
|
});
|
|
26456
26482
|
}
|
|
26457
26483
|
var run_rules_default = runRules;
|
|
26458
|
-
function runCommand(
|
|
26484
|
+
function runCommand(data, keepalive, callback) {
|
|
26459
26485
|
var resolve = callback;
|
|
26460
26486
|
var reject = function reject2(err2) {
|
|
26461
26487
|
if (err2 instanceof Error === false) {
|
|
@@ -26463,12 +26489,12 @@
|
|
|
26463
26489
|
}
|
|
26464
26490
|
callback(err2);
|
|
26465
26491
|
};
|
|
26466
|
-
var context =
|
|
26492
|
+
var context = data && data.context || {};
|
|
26467
26493
|
if (context.hasOwnProperty('include') && !context.include.length) {
|
|
26468
26494
|
context.include = [ document ];
|
|
26469
26495
|
}
|
|
26470
|
-
var options =
|
|
26471
|
-
switch (
|
|
26496
|
+
var options = data && data.options || {};
|
|
26497
|
+
switch (data.command) {
|
|
26472
26498
|
case 'rules':
|
|
26473
26499
|
return run_rules_default(context, options, function(results, cleanup3) {
|
|
26474
26500
|
resolve(results);
|
|
@@ -26479,14 +26505,14 @@
|
|
|
26479
26505
|
return cleanup_default(resolve, reject);
|
|
26480
26506
|
|
|
26481
26507
|
default:
|
|
26482
|
-
if (axe._audit && axe._audit.commands && axe._audit.commands[
|
|
26483
|
-
return axe._audit.commands[
|
|
26508
|
+
if (axe._audit && axe._audit.commands && axe._audit.commands[data.command]) {
|
|
26509
|
+
return axe._audit.commands[data.command](data, callback);
|
|
26484
26510
|
}
|
|
26485
26511
|
}
|
|
26486
26512
|
}
|
|
26487
26513
|
if (window.top !== window) {
|
|
26488
26514
|
_respondable.subscribe('axe.start', runCommand);
|
|
26489
|
-
_respondable.subscribe('axe.ping', function(
|
|
26515
|
+
_respondable.subscribe('axe.ping', function(data, keepalive, respond) {
|
|
26490
26516
|
respond({
|
|
26491
26517
|
axe: true
|
|
26492
26518
|
});
|
|
@@ -26597,7 +26623,7 @@
|
|
|
26597
26623
|
if (typeof callback !== 'function' && callback !== void 0) {
|
|
26598
26624
|
throw typeErr;
|
|
26599
26625
|
}
|
|
26600
|
-
options =
|
|
26626
|
+
options = _clone(options);
|
|
26601
26627
|
options.reporter = (_ref139 = (_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 && _ref139 !== void 0 ? _ref139 : 'v1';
|
|
26602
26628
|
return {
|
|
26603
26629
|
context: context,
|
|
@@ -26749,7 +26775,7 @@
|
|
|
26749
26775
|
function finishRun(partialResults) {
|
|
26750
26776
|
var _ref145, _options$reporter2, _axe$_audit2;
|
|
26751
26777
|
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
26752
|
-
options =
|
|
26778
|
+
options = _clone(options);
|
|
26753
26779
|
var _ref144 = partialResults.find(function(r) {
|
|
26754
26780
|
return r.environmentData;
|
|
26755
26781
|
}) || {}, environmentData = _ref144.environmentData;
|
|
@@ -26766,10 +26792,10 @@
|
|
|
26766
26792
|
}
|
|
26767
26793
|
function setFrameSpec(partialResults) {
|
|
26768
26794
|
var frameStack = [];
|
|
26769
|
-
var
|
|
26795
|
+
var _iterator20 = _createForOfIteratorHelper(partialResults), _step20;
|
|
26770
26796
|
try {
|
|
26771
|
-
for (
|
|
26772
|
-
var partialResult =
|
|
26797
|
+
for (_iterator20.s(); !(_step20 = _iterator20.n()).done; ) {
|
|
26798
|
+
var partialResult = _step20.value;
|
|
26773
26799
|
var frameSpec = frameStack.shift();
|
|
26774
26800
|
if (!partialResult) {
|
|
26775
26801
|
continue;
|
|
@@ -26779,9 +26805,9 @@
|
|
|
26779
26805
|
frameStack.unshift.apply(frameStack, _toConsumableArray(frameSpecs));
|
|
26780
26806
|
}
|
|
26781
26807
|
} catch (err) {
|
|
26782
|
-
|
|
26808
|
+
_iterator20.e(err);
|
|
26783
26809
|
} finally {
|
|
26784
|
-
|
|
26810
|
+
_iterator20.f();
|
|
26785
26811
|
}
|
|
26786
26812
|
}
|
|
26787
26813
|
function getMergedFrameSpecs(_ref146) {
|
|
@@ -28448,7 +28474,7 @@
|
|
|
28448
28474
|
id: 'area-alt',
|
|
28449
28475
|
selector: 'map area[href]',
|
|
28450
28476
|
excludeHidden: false,
|
|
28451
|
-
tags: [ 'cat.text-alternatives', 'wcag2a', 'wcag244', 'wcag412', 'section508', 'section508.22.a', '
|
|
28477
|
+
tags: [ 'cat.text-alternatives', 'wcag2a', 'wcag244', 'wcag412', 'section508', 'section508.22.a', 'TTv5', 'TT6.a', 'EN-301-549', 'EN-9.2.4.4', 'EN-9.4.1.2', 'ACT' ],
|
|
28452
28478
|
actIds: [ 'c487ae' ],
|
|
28453
28479
|
all: [],
|
|
28454
28480
|
any: [ {
|
|
@@ -28466,7 +28492,7 @@
|
|
|
28466
28492
|
}, {
|
|
28467
28493
|
id: 'aria-allowed-attr',
|
|
28468
28494
|
matches: 'aria-allowed-attr-matches',
|
|
28469
|
-
tags: [ 'cat.aria', 'wcag2a', 'wcag412' ],
|
|
28495
|
+
tags: [ 'cat.aria', 'wcag2a', 'wcag412', 'EN-301-549', 'EN-9.4.1.2' ],
|
|
28470
28496
|
actIds: [ '5c01ea' ],
|
|
28471
28497
|
all: [ {
|
|
28472
28498
|
options: {
|
|
@@ -28505,7 +28531,7 @@
|
|
|
28505
28531
|
id: 'aria-command-name',
|
|
28506
28532
|
selector: '[role="link"], [role="button"], [role="menuitem"]',
|
|
28507
28533
|
matches: 'no-naming-method-matches',
|
|
28508
|
-
tags: [ 'cat.aria', 'wcag2a', 'wcag412', '
|
|
28534
|
+
tags: [ 'cat.aria', 'wcag2a', 'wcag412', 'TTv5', 'TT6.a', 'EN-301-549', 'EN-9.4.1.2', 'ACT' ],
|
|
28509
28535
|
actIds: [ '97a4e1' ],
|
|
28510
28536
|
all: [],
|
|
28511
28537
|
any: [ 'has-visible-text', 'aria-label', 'aria-labelledby', {
|
|
@@ -28533,7 +28559,7 @@
|
|
|
28533
28559
|
selector: 'body',
|
|
28534
28560
|
excludeHidden: false,
|
|
28535
28561
|
matches: 'is-initiator-matches',
|
|
28536
|
-
tags: [ 'cat.aria', 'wcag2a', 'wcag412' ],
|
|
28562
|
+
tags: [ 'cat.aria', 'wcag2a', 'wcag412', 'EN-301-549', 'EN-9.4.1.2' ],
|
|
28537
28563
|
all: [],
|
|
28538
28564
|
any: [ 'aria-hidden-body' ],
|
|
28539
28565
|
none: []
|
|
@@ -28542,7 +28568,7 @@
|
|
|
28542
28568
|
selector: '[aria-hidden="true"]',
|
|
28543
28569
|
matches: 'aria-hidden-focus-matches',
|
|
28544
28570
|
excludeHidden: false,
|
|
28545
|
-
tags: [ 'cat.name-role-value', 'wcag2a', 'wcag412', 'TTv5', 'TT6.a' ],
|
|
28571
|
+
tags: [ 'cat.name-role-value', 'wcag2a', 'wcag412', 'TTv5', 'TT6.a', 'EN-301-549', 'EN-9.4.1.2' ],
|
|
28546
28572
|
actIds: [ '6cfa84' ],
|
|
28547
28573
|
all: [ 'focusable-modal-open', 'focusable-disabled', 'focusable-not-tabbable' ],
|
|
28548
28574
|
any: [],
|
|
@@ -28551,7 +28577,7 @@
|
|
|
28551
28577
|
id: 'aria-input-field-name',
|
|
28552
28578
|
selector: '[role="combobox"], [role="listbox"], [role="searchbox"], [role="slider"], [role="spinbutton"], [role="textbox"]',
|
|
28553
28579
|
matches: 'no-naming-method-matches',
|
|
28554
|
-
tags: [ 'cat.aria', 'wcag2a', 'wcag412', '
|
|
28580
|
+
tags: [ 'cat.aria', 'wcag2a', 'wcag412', 'TTv5', 'TT5.c', 'EN-301-549', 'EN-9.4.1.2', 'ACT' ],
|
|
28555
28581
|
actIds: [ 'e086e5' ],
|
|
28556
28582
|
all: [],
|
|
28557
28583
|
any: [ 'aria-label', 'aria-labelledby', {
|
|
@@ -28565,7 +28591,7 @@
|
|
|
28565
28591
|
id: 'aria-meter-name',
|
|
28566
28592
|
selector: '[role="meter"]',
|
|
28567
28593
|
matches: 'no-naming-method-matches',
|
|
28568
|
-
tags: [ 'cat.aria', 'wcag2a', 'wcag111' ],
|
|
28594
|
+
tags: [ 'cat.aria', 'wcag2a', 'wcag111', 'EN-301-549', 'EN-9.1.1.1' ],
|
|
28569
28595
|
all: [],
|
|
28570
28596
|
any: [ 'aria-label', 'aria-labelledby', {
|
|
28571
28597
|
options: {
|
|
@@ -28578,7 +28604,7 @@
|
|
|
28578
28604
|
id: 'aria-progressbar-name',
|
|
28579
28605
|
selector: '[role="progressbar"]',
|
|
28580
28606
|
matches: 'no-naming-method-matches',
|
|
28581
|
-
tags: [ 'cat.aria', 'wcag2a', 'wcag111' ],
|
|
28607
|
+
tags: [ 'cat.aria', 'wcag2a', 'wcag111', 'EN-301-549', 'EN-9.1.1.1' ],
|
|
28582
28608
|
all: [],
|
|
28583
28609
|
any: [ 'aria-label', 'aria-labelledby', {
|
|
28584
28610
|
options: {
|
|
@@ -28590,7 +28616,7 @@
|
|
|
28590
28616
|
}, {
|
|
28591
28617
|
id: 'aria-required-attr',
|
|
28592
28618
|
selector: '[role]',
|
|
28593
|
-
tags: [ 'cat.aria', 'wcag2a', 'wcag412' ],
|
|
28619
|
+
tags: [ 'cat.aria', 'wcag2a', 'wcag412', 'EN-301-549', 'EN-9.4.1.2' ],
|
|
28594
28620
|
actIds: [ '4e8ab6' ],
|
|
28595
28621
|
all: [],
|
|
28596
28622
|
any: [ 'aria-required-attr' ],
|
|
@@ -28599,7 +28625,7 @@
|
|
|
28599
28625
|
id: 'aria-required-children',
|
|
28600
28626
|
selector: '[role]',
|
|
28601
28627
|
matches: 'aria-required-children-matches',
|
|
28602
|
-
tags: [ 'cat.aria', 'wcag2a', 'wcag131' ],
|
|
28628
|
+
tags: [ 'cat.aria', 'wcag2a', 'wcag131', 'EN-301-549', 'EN-9.1.3.1' ],
|
|
28603
28629
|
actIds: [ 'bc4a75', 'ff89c9' ],
|
|
28604
28630
|
all: [],
|
|
28605
28631
|
any: [ {
|
|
@@ -28613,7 +28639,7 @@
|
|
|
28613
28639
|
id: 'aria-required-parent',
|
|
28614
28640
|
selector: '[role]',
|
|
28615
28641
|
matches: 'aria-required-parent-matches',
|
|
28616
|
-
tags: [ 'cat.aria', 'wcag2a', 'wcag131' ],
|
|
28642
|
+
tags: [ 'cat.aria', 'wcag2a', 'wcag131', 'EN-301-549', 'EN-9.1.3.1' ],
|
|
28617
28643
|
actIds: [ 'ff89c9' ],
|
|
28618
28644
|
all: [],
|
|
28619
28645
|
any: [ {
|
|
@@ -28626,7 +28652,7 @@
|
|
|
28626
28652
|
}, {
|
|
28627
28653
|
id: 'aria-roledescription',
|
|
28628
28654
|
selector: '[aria-roledescription]',
|
|
28629
|
-
tags: [ 'cat.aria', 'wcag2a', 'wcag412', 'deprecated' ],
|
|
28655
|
+
tags: [ 'cat.aria', 'wcag2a', 'wcag412', 'EN-301-549', 'EN-9.4.1.2', 'deprecated' ],
|
|
28630
28656
|
enabled: false,
|
|
28631
28657
|
all: [],
|
|
28632
28658
|
any: [ {
|
|
@@ -28640,7 +28666,7 @@
|
|
|
28640
28666
|
id: 'aria-roles',
|
|
28641
28667
|
selector: '[role]',
|
|
28642
28668
|
matches: 'no-empty-role-matches',
|
|
28643
|
-
tags: [ 'cat.aria', 'wcag2a', 'wcag412' ],
|
|
28669
|
+
tags: [ 'cat.aria', 'wcag2a', 'wcag412', 'EN-301-549', 'EN-9.4.1.2' ],
|
|
28644
28670
|
actIds: [ '674b10' ],
|
|
28645
28671
|
all: [],
|
|
28646
28672
|
any: [],
|
|
@@ -28656,7 +28682,7 @@
|
|
|
28656
28682
|
id: 'aria-toggle-field-name',
|
|
28657
28683
|
selector: '[role="checkbox"], [role="menuitemcheckbox"], [role="menuitemradio"], [role="radio"], [role="switch"], [role="option"]',
|
|
28658
28684
|
matches: 'no-naming-method-matches',
|
|
28659
|
-
tags: [ 'cat.aria', 'wcag2a', 'wcag412', '
|
|
28685
|
+
tags: [ 'cat.aria', 'wcag2a', 'wcag412', 'TTv5', 'TT5.c', 'EN-301-549', 'EN-9.4.1.2', 'ACT' ],
|
|
28660
28686
|
actIds: [ 'e086e5' ],
|
|
28661
28687
|
all: [],
|
|
28662
28688
|
any: [ 'has-visible-text', 'aria-label', 'aria-labelledby', {
|
|
@@ -28670,7 +28696,7 @@
|
|
|
28670
28696
|
id: 'aria-tooltip-name',
|
|
28671
28697
|
selector: '[role="tooltip"]',
|
|
28672
28698
|
matches: 'no-naming-method-matches',
|
|
28673
|
-
tags: [ 'cat.aria', 'wcag2a', 'wcag412' ],
|
|
28699
|
+
tags: [ 'cat.aria', 'wcag2a', 'wcag412', 'EN-301-549', 'EN-9.4.1.2' ],
|
|
28674
28700
|
all: [],
|
|
28675
28701
|
any: [ 'has-visible-text', 'aria-label', 'aria-labelledby', {
|
|
28676
28702
|
options: {
|
|
@@ -28695,7 +28721,7 @@
|
|
|
28695
28721
|
}, {
|
|
28696
28722
|
id: 'aria-valid-attr-value',
|
|
28697
28723
|
matches: 'aria-has-attr-matches',
|
|
28698
|
-
tags: [ 'cat.aria', 'wcag2a', 'wcag412' ],
|
|
28724
|
+
tags: [ 'cat.aria', 'wcag2a', 'wcag412', 'EN-301-549', 'EN-9.4.1.2' ],
|
|
28699
28725
|
actIds: [ '6a7281' ],
|
|
28700
28726
|
all: [ {
|
|
28701
28727
|
options: [],
|
|
@@ -28706,7 +28732,7 @@
|
|
|
28706
28732
|
}, {
|
|
28707
28733
|
id: 'aria-valid-attr',
|
|
28708
28734
|
matches: 'aria-has-attr-matches',
|
|
28709
|
-
tags: [ 'cat.aria', 'wcag2a', 'wcag412' ],
|
|
28735
|
+
tags: [ 'cat.aria', 'wcag2a', 'wcag412', 'EN-301-549', 'EN-9.4.1.2' ],
|
|
28710
28736
|
actIds: [ '5f99a7' ],
|
|
28711
28737
|
all: [],
|
|
28712
28738
|
any: [ {
|
|
@@ -28719,7 +28745,7 @@
|
|
|
28719
28745
|
selector: 'audio',
|
|
28720
28746
|
enabled: false,
|
|
28721
28747
|
excludeHidden: false,
|
|
28722
|
-
tags: [ 'cat.time-and-media', 'wcag2a', 'wcag121', 'section508', 'section508.22.a', 'deprecated' ],
|
|
28748
|
+
tags: [ 'cat.time-and-media', 'wcag2a', 'wcag121', 'EN-301-549', 'EN-9.1.2.1', 'section508', 'section508.22.a', 'deprecated' ],
|
|
28723
28749
|
actIds: [ '2eb176', 'afb423' ],
|
|
28724
28750
|
all: [],
|
|
28725
28751
|
any: [],
|
|
@@ -28727,7 +28753,7 @@
|
|
|
28727
28753
|
}, {
|
|
28728
28754
|
id: 'autocomplete-valid',
|
|
28729
28755
|
matches: 'autocomplete-matches',
|
|
28730
|
-
tags: [ 'cat.forms', 'wcag21aa', 'wcag135', 'ACT' ],
|
|
28756
|
+
tags: [ 'cat.forms', 'wcag21aa', 'wcag135', 'EN-301-549', 'EN-9.1.3.5', 'ACT' ],
|
|
28731
28757
|
actIds: [ '73f2c2' ],
|
|
28732
28758
|
all: [ {
|
|
28733
28759
|
options: {
|
|
@@ -28741,7 +28767,7 @@
|
|
|
28741
28767
|
id: 'avoid-inline-spacing',
|
|
28742
28768
|
selector: '[style]',
|
|
28743
28769
|
matches: 'is-visible-on-screen-matches',
|
|
28744
|
-
tags: [ 'cat.structure', 'wcag21aa', 'wcag1412', 'ACT' ],
|
|
28770
|
+
tags: [ 'cat.structure', 'wcag21aa', 'wcag1412', 'EN-301-549', 'EN-9.1.4.12', 'ACT' ],
|
|
28745
28771
|
actIds: [ '24afc2', '9e45ec', '78fd32' ],
|
|
28746
28772
|
all: [ {
|
|
28747
28773
|
options: {
|
|
@@ -28770,7 +28796,7 @@
|
|
|
28770
28796
|
id: 'blink',
|
|
28771
28797
|
selector: 'blink',
|
|
28772
28798
|
excludeHidden: false,
|
|
28773
|
-
tags: [ 'cat.time-and-media', 'wcag2a', 'wcag222', 'section508', 'section508.22.j', 'TTv5', 'TT2.b' ],
|
|
28799
|
+
tags: [ 'cat.time-and-media', 'wcag2a', 'wcag222', 'section508', 'section508.22.j', 'TTv5', 'TT2.b', 'EN-301-549', 'EN-9.2.2.2' ],
|
|
28774
28800
|
all: [],
|
|
28775
28801
|
any: [],
|
|
28776
28802
|
none: [ 'is-on-screen' ]
|
|
@@ -28778,7 +28804,7 @@
|
|
|
28778
28804
|
id: 'button-name',
|
|
28779
28805
|
selector: 'button',
|
|
28780
28806
|
matches: 'no-explicit-name-required-matches',
|
|
28781
|
-
tags: [ 'cat.name-role-value', 'wcag2a', 'wcag412', 'section508', 'section508.22.a', '
|
|
28807
|
+
tags: [ 'cat.name-role-value', 'wcag2a', 'wcag412', 'section508', 'section508.22.a', 'TTv5', 'TT6.a', 'EN-301-549', 'EN-9.4.1.2', 'ACT' ],
|
|
28782
28808
|
actIds: [ '97a4e1', 'm6b1q3' ],
|
|
28783
28809
|
all: [],
|
|
28784
28810
|
any: [ 'button-has-visible-text', 'aria-label', 'aria-labelledby', {
|
|
@@ -28794,7 +28820,7 @@
|
|
|
28794
28820
|
pageLevel: true,
|
|
28795
28821
|
matches: 'bypass-matches',
|
|
28796
28822
|
reviewOnFail: true,
|
|
28797
|
-
tags: [ 'cat.keyboard', 'wcag2a', 'wcag241', 'section508', 'section508.22.o', 'TTv5', 'TT9.a' ],
|
|
28823
|
+
tags: [ 'cat.keyboard', 'wcag2a', 'wcag241', 'section508', 'section508.22.o', 'TTv5', 'TT9.a', 'EN-301-549', 'EN-9.2.4.1' ],
|
|
28798
28824
|
actIds: [ 'cf77f2', '047fe0', 'b40fd1', '3e12e1', 'ye5d6e' ],
|
|
28799
28825
|
all: [],
|
|
28800
28826
|
any: [ 'internal-link-present', {
|
|
@@ -28846,7 +28872,7 @@
|
|
|
28846
28872
|
id: 'color-contrast',
|
|
28847
28873
|
matches: 'color-contrast-matches',
|
|
28848
28874
|
excludeHidden: false,
|
|
28849
|
-
tags: [ 'cat.color', 'wcag2aa', 'wcag143', '
|
|
28875
|
+
tags: [ 'cat.color', 'wcag2aa', 'wcag143', 'TTv5', 'TT13.c', 'EN-301-549', 'EN-9.1.4.3', 'ACT' ],
|
|
28850
28876
|
actIds: [ 'afw4f7', '09o5cg' ],
|
|
28851
28877
|
all: [],
|
|
28852
28878
|
any: [ {
|
|
@@ -28875,7 +28901,7 @@
|
|
|
28875
28901
|
}, {
|
|
28876
28902
|
id: 'css-orientation-lock',
|
|
28877
28903
|
selector: 'html',
|
|
28878
|
-
tags: [ 'cat.structure', 'wcag134', 'wcag21aa', 'experimental' ],
|
|
28904
|
+
tags: [ 'cat.structure', 'wcag134', 'wcag21aa', 'EN-301-549', 'EN-9.1.3.4', 'experimental' ],
|
|
28879
28905
|
actIds: [ 'b33eff' ],
|
|
28880
28906
|
all: [ {
|
|
28881
28907
|
options: {
|
|
@@ -28890,7 +28916,7 @@
|
|
|
28890
28916
|
id: 'definition-list',
|
|
28891
28917
|
selector: 'dl',
|
|
28892
28918
|
matches: 'no-role-matches',
|
|
28893
|
-
tags: [ 'cat.structure', 'wcag2a', 'wcag131' ],
|
|
28919
|
+
tags: [ 'cat.structure', 'wcag2a', 'wcag131', 'EN-301-549', 'EN-9.1.3.1' ],
|
|
28894
28920
|
all: [],
|
|
28895
28921
|
any: [],
|
|
28896
28922
|
none: [ 'structured-dlitems', {
|
|
@@ -28905,7 +28931,7 @@
|
|
|
28905
28931
|
id: 'dlitem',
|
|
28906
28932
|
selector: 'dd, dt',
|
|
28907
28933
|
matches: 'no-role-matches',
|
|
28908
|
-
tags: [ 'cat.structure', 'wcag2a', 'wcag131' ],
|
|
28934
|
+
tags: [ 'cat.structure', 'wcag2a', 'wcag131', 'EN-301-549', 'EN-9.1.3.1' ],
|
|
28909
28935
|
all: [],
|
|
28910
28936
|
any: [ 'dlitem' ],
|
|
28911
28937
|
none: []
|
|
@@ -28913,7 +28939,7 @@
|
|
|
28913
28939
|
id: 'document-title',
|
|
28914
28940
|
selector: 'html',
|
|
28915
28941
|
matches: 'is-initiator-matches',
|
|
28916
|
-
tags: [ 'cat.text-alternatives', 'wcag2a', 'wcag242', '
|
|
28942
|
+
tags: [ 'cat.text-alternatives', 'wcag2a', 'wcag242', 'TTv5', 'TT12.a', 'EN-301-549', 'EN-9.2.4.2', 'ACT' ],
|
|
28917
28943
|
actIds: [ '2779a5' ],
|
|
28918
28944
|
all: [],
|
|
28919
28945
|
any: [ 'doc-has-title' ],
|
|
@@ -28923,7 +28949,8 @@
|
|
|
28923
28949
|
selector: '[id]',
|
|
28924
28950
|
matches: 'duplicate-id-active-matches',
|
|
28925
28951
|
excludeHidden: false,
|
|
28926
|
-
tags: [ 'cat.parsing', 'wcag2a', 'wcag411' ],
|
|
28952
|
+
tags: [ 'cat.parsing', 'wcag2a-obsolete', 'wcag411', 'deprecated' ],
|
|
28953
|
+
enabled: false,
|
|
28927
28954
|
actIds: [ '3ea0c8' ],
|
|
28928
28955
|
all: [],
|
|
28929
28956
|
any: [ 'duplicate-id-active' ],
|
|
@@ -28933,7 +28960,8 @@
|
|
|
28933
28960
|
selector: '[id]',
|
|
28934
28961
|
matches: 'duplicate-id-aria-matches',
|
|
28935
28962
|
excludeHidden: false,
|
|
28936
|
-
tags: [ 'cat.parsing', 'wcag2a', '
|
|
28963
|
+
tags: [ 'cat.parsing', 'wcag2a', 'wcag412', 'EN-301-549', 'EN-9.4.1.2' ],
|
|
28964
|
+
reviewOnFail: true,
|
|
28937
28965
|
actIds: [ '3ea0c8' ],
|
|
28938
28966
|
all: [],
|
|
28939
28967
|
any: [ 'duplicate-id-aria' ],
|
|
@@ -28943,7 +28971,8 @@
|
|
|
28943
28971
|
selector: '[id]',
|
|
28944
28972
|
matches: 'duplicate-id-misc-matches',
|
|
28945
28973
|
excludeHidden: false,
|
|
28946
|
-
tags: [ 'cat.parsing', 'wcag2a', 'wcag411' ],
|
|
28974
|
+
tags: [ 'cat.parsing', 'wcag2a-obsolete', 'wcag411', 'deprecated' ],
|
|
28975
|
+
enabled: false,
|
|
28947
28976
|
actIds: [ '3ea0c8' ],
|
|
28948
28977
|
all: [],
|
|
28949
28978
|
any: [ 'duplicate-id' ],
|
|
@@ -28990,7 +29019,7 @@
|
|
|
28990
29019
|
id: 'form-field-multiple-labels',
|
|
28991
29020
|
selector: 'input, select, textarea',
|
|
28992
29021
|
matches: 'label-matches',
|
|
28993
|
-
tags: [ 'cat.forms', 'wcag2a', 'wcag332', 'TTv5', 'TT5.c' ],
|
|
29022
|
+
tags: [ 'cat.forms', 'wcag2a', 'wcag332', 'TTv5', 'TT5.c', 'EN-301-549', 'EN-9.3.3.2' ],
|
|
28994
29023
|
all: [],
|
|
28995
29024
|
any: [],
|
|
28996
29025
|
none: [ 'multiple-label' ]
|
|
@@ -28998,7 +29027,7 @@
|
|
|
28998
29027
|
id: 'frame-focusable-content',
|
|
28999
29028
|
selector: 'html',
|
|
29000
29029
|
matches: 'frame-focusable-content-matches',
|
|
29001
|
-
tags: [ 'cat.keyboard', 'wcag2a', 'wcag211', 'TTv5', 'TT4.a' ],
|
|
29030
|
+
tags: [ 'cat.keyboard', 'wcag2a', 'wcag211', 'TTv5', 'TT4.a', 'EN-301-549', 'EN-9.2.1.1' ],
|
|
29002
29031
|
actIds: [ 'akn7bn' ],
|
|
29003
29032
|
all: [],
|
|
29004
29033
|
any: [ 'frame-focusable-content' ],
|
|
@@ -29006,7 +29035,7 @@
|
|
|
29006
29035
|
}, {
|
|
29007
29036
|
id: 'frame-tested',
|
|
29008
29037
|
selector: 'html, frame, iframe',
|
|
29009
|
-
tags: [ 'cat.structure', '
|
|
29038
|
+
tags: [ 'cat.structure', 'best-practice', 'review-item' ],
|
|
29010
29039
|
all: [ {
|
|
29011
29040
|
options: {
|
|
29012
29041
|
isViolation: false
|
|
@@ -29019,7 +29048,7 @@
|
|
|
29019
29048
|
id: 'frame-title-unique',
|
|
29020
29049
|
selector: 'frame[title], iframe[title]',
|
|
29021
29050
|
matches: 'frame-title-has-text-matches',
|
|
29022
|
-
tags: [ 'cat.text-alternatives', '
|
|
29051
|
+
tags: [ 'cat.text-alternatives', 'wcag2a', 'wcag412', 'TTv5', 'TT12.d', 'EN-301-549', 'EN-9.4.1.2' ],
|
|
29023
29052
|
actIds: [ '4b1c6c' ],
|
|
29024
29053
|
all: [],
|
|
29025
29054
|
any: [],
|
|
@@ -29029,7 +29058,7 @@
|
|
|
29029
29058
|
id: 'frame-title',
|
|
29030
29059
|
selector: 'frame, iframe',
|
|
29031
29060
|
matches: 'no-negative-tabindex-matches',
|
|
29032
|
-
tags: [ 'cat.text-alternatives', 'wcag2a', 'wcag412', 'section508', 'section508.22.i', 'TTv5', 'TT12.d' ],
|
|
29061
|
+
tags: [ 'cat.text-alternatives', 'wcag2a', 'wcag412', 'section508', 'section508.22.i', 'TTv5', 'TT12.d', 'EN-301-549', 'EN-9.4.1.2' ],
|
|
29033
29062
|
actIds: [ 'cae760' ],
|
|
29034
29063
|
all: [],
|
|
29035
29064
|
any: [ {
|
|
@@ -29051,7 +29080,7 @@
|
|
|
29051
29080
|
id: 'hidden-content',
|
|
29052
29081
|
selector: '*',
|
|
29053
29082
|
excludeHidden: false,
|
|
29054
|
-
tags: [ 'cat.structure', '
|
|
29083
|
+
tags: [ 'cat.structure', 'best-practice', 'experimental', 'review-item' ],
|
|
29055
29084
|
all: [],
|
|
29056
29085
|
any: [ 'hidden-content' ],
|
|
29057
29086
|
none: []
|
|
@@ -29059,7 +29088,7 @@
|
|
|
29059
29088
|
id: 'html-has-lang',
|
|
29060
29089
|
selector: 'html',
|
|
29061
29090
|
matches: 'is-initiator-matches',
|
|
29062
|
-
tags: [ 'cat.language', 'wcag2a', 'wcag311', '
|
|
29091
|
+
tags: [ 'cat.language', 'wcag2a', 'wcag311', 'TTv5', 'TT11.a', 'EN-301-549', 'EN-9.3.1.1', 'ACT' ],
|
|
29063
29092
|
actIds: [ 'b5c3f8' ],
|
|
29064
29093
|
all: [],
|
|
29065
29094
|
any: [ {
|
|
@@ -29072,7 +29101,7 @@
|
|
|
29072
29101
|
}, {
|
|
29073
29102
|
id: 'html-lang-valid',
|
|
29074
29103
|
selector: 'html[lang]:not([lang=""]), html[xml\\:lang]:not([xml\\:lang=""])',
|
|
29075
|
-
tags: [ 'cat.language', 'wcag2a', 'wcag311', '
|
|
29104
|
+
tags: [ 'cat.language', 'wcag2a', 'wcag311', 'TTv5', 'TT11.a', 'EN-301-549', 'EN-9.3.1.1', 'ACT' ],
|
|
29076
29105
|
actIds: [ 'bf051a' ],
|
|
29077
29106
|
all: [],
|
|
29078
29107
|
any: [],
|
|
@@ -29086,7 +29115,7 @@
|
|
|
29086
29115
|
id: 'html-xml-lang-mismatch',
|
|
29087
29116
|
selector: 'html[lang][xml\\:lang]',
|
|
29088
29117
|
matches: 'xml-lang-mismatch-matches',
|
|
29089
|
-
tags: [ 'cat.language', 'wcag2a', 'wcag311', 'ACT' ],
|
|
29118
|
+
tags: [ 'cat.language', 'wcag2a', 'wcag311', 'EN-301-549', 'EN-9.3.1.1', 'ACT' ],
|
|
29090
29119
|
actIds: [ '5b7ae0' ],
|
|
29091
29120
|
all: [ 'xml-lang-mismatch' ],
|
|
29092
29121
|
any: [],
|
|
@@ -29106,7 +29135,7 @@
|
|
|
29106
29135
|
id: 'image-alt',
|
|
29107
29136
|
selector: 'img',
|
|
29108
29137
|
matches: 'no-explicit-name-required-matches',
|
|
29109
|
-
tags: [ 'cat.text-alternatives', 'wcag2a', 'wcag111', 'section508', 'section508.22.a', '
|
|
29138
|
+
tags: [ 'cat.text-alternatives', 'wcag2a', 'wcag111', 'section508', 'section508.22.a', 'TTv5', 'TT7.a', 'TT7.b', 'EN-301-549', 'EN-9.1.1.1', 'ACT' ],
|
|
29110
29139
|
actIds: [ '23a2a8' ],
|
|
29111
29140
|
all: [],
|
|
29112
29141
|
any: [ 'has-alt', 'aria-label', 'aria-labelledby', {
|
|
@@ -29132,7 +29161,7 @@
|
|
|
29132
29161
|
id: 'input-button-name',
|
|
29133
29162
|
selector: 'input[type="button"], input[type="submit"], input[type="reset"]',
|
|
29134
29163
|
matches: 'no-explicit-name-required-matches',
|
|
29135
|
-
tags: [ 'cat.name-role-value', 'wcag2a', 'wcag412', 'section508', 'section508.22.a', '
|
|
29164
|
+
tags: [ 'cat.name-role-value', 'wcag2a', 'wcag412', 'section508', 'section508.22.a', 'TTv5', 'TT5.c', 'EN-301-549', 'EN-9.4.1.2', 'ACT' ],
|
|
29136
29165
|
actIds: [ '97a4e1' ],
|
|
29137
29166
|
all: [],
|
|
29138
29167
|
any: [ 'non-empty-if-present', {
|
|
@@ -29151,7 +29180,7 @@
|
|
|
29151
29180
|
id: 'input-image-alt',
|
|
29152
29181
|
selector: 'input[type="image"]',
|
|
29153
29182
|
matches: 'no-explicit-name-required-matches',
|
|
29154
|
-
tags: [ 'cat.text-alternatives', 'wcag2a', 'wcag111', 'wcag412', 'section508', 'section508.22.a', '
|
|
29183
|
+
tags: [ 'cat.text-alternatives', 'wcag2a', 'wcag111', 'wcag412', 'section508', 'section508.22.a', 'TTv5', 'TT7.a', 'EN-301-549', 'EN-9.1.1.1', 'EN-9.4.1.2', 'ACT' ],
|
|
29155
29184
|
actIds: [ '59796f' ],
|
|
29156
29185
|
all: [],
|
|
29157
29186
|
any: [ {
|
|
@@ -29169,7 +29198,7 @@
|
|
|
29169
29198
|
}, {
|
|
29170
29199
|
id: 'label-content-name-mismatch',
|
|
29171
29200
|
matches: 'label-content-name-mismatch-matches',
|
|
29172
|
-
tags: [ 'cat.semantics', 'wcag21a', 'wcag253', 'experimental' ],
|
|
29201
|
+
tags: [ 'cat.semantics', 'wcag21a', 'wcag253', 'EN-301-549', 'EN-9.2.5.3', 'experimental' ],
|
|
29173
29202
|
actIds: [ '2ee8b8' ],
|
|
29174
29203
|
all: [],
|
|
29175
29204
|
any: [ {
|
|
@@ -29192,7 +29221,7 @@
|
|
|
29192
29221
|
id: 'label',
|
|
29193
29222
|
selector: 'input, textarea',
|
|
29194
29223
|
matches: 'label-matches',
|
|
29195
|
-
tags: [ 'cat.forms', 'wcag2a', 'wcag412', 'section508', 'section508.22.n', '
|
|
29224
|
+
tags: [ 'cat.forms', 'wcag2a', 'wcag412', 'section508', 'section508.22.n', 'TTv5', 'TT5.c', 'EN-301-549', 'EN-9.4.1.2', 'ACT' ],
|
|
29196
29225
|
actIds: [ 'e086e5' ],
|
|
29197
29226
|
all: [],
|
|
29198
29227
|
any: [ 'implicit-label', 'explicit-label', 'aria-label', 'aria-labelledby', {
|
|
@@ -29301,7 +29330,7 @@
|
|
|
29301
29330
|
selector: 'a[href], [role=link]',
|
|
29302
29331
|
matches: 'link-in-text-block-matches',
|
|
29303
29332
|
excludeHidden: false,
|
|
29304
|
-
tags: [ 'cat.color', 'wcag2a', 'wcag141', 'TTv5', 'TT13.a' ],
|
|
29333
|
+
tags: [ 'cat.color', 'wcag2a', 'wcag141', 'TTv5', 'TT13.a', 'EN-301-549', 'EN-9.1.4.1' ],
|
|
29305
29334
|
all: [],
|
|
29306
29335
|
any: [ {
|
|
29307
29336
|
options: {
|
|
@@ -29314,7 +29343,7 @@
|
|
|
29314
29343
|
}, {
|
|
29315
29344
|
id: 'link-name',
|
|
29316
29345
|
selector: 'a[href]',
|
|
29317
|
-
tags: [ 'cat.name-role-value', 'wcag2a', '
|
|
29346
|
+
tags: [ 'cat.name-role-value', 'wcag2a', 'wcag244', 'wcag412', 'section508', 'section508.22.a', 'TTv5', 'TT6.a', 'EN-301-549', 'EN-9.2.4.4', 'EN-9.4.1.2', 'ACT' ],
|
|
29318
29347
|
actIds: [ 'c487ae' ],
|
|
29319
29348
|
all: [],
|
|
29320
29349
|
any: [ 'has-visible-text', 'aria-label', 'aria-labelledby', {
|
|
@@ -29328,7 +29357,7 @@
|
|
|
29328
29357
|
id: 'list',
|
|
29329
29358
|
selector: 'ul, ol',
|
|
29330
29359
|
matches: 'no-role-matches',
|
|
29331
|
-
tags: [ 'cat.structure', 'wcag2a', 'wcag131' ],
|
|
29360
|
+
tags: [ 'cat.structure', 'wcag2a', 'wcag131', 'EN-301-549', 'EN-9.1.3.1' ],
|
|
29332
29361
|
all: [],
|
|
29333
29362
|
any: [],
|
|
29334
29363
|
none: [ {
|
|
@@ -29342,7 +29371,7 @@
|
|
|
29342
29371
|
id: 'listitem',
|
|
29343
29372
|
selector: 'li',
|
|
29344
29373
|
matches: 'no-role-matches',
|
|
29345
|
-
tags: [ 'cat.structure', 'wcag2a', 'wcag131' ],
|
|
29374
|
+
tags: [ 'cat.structure', 'wcag2a', 'wcag131', 'EN-301-549', 'EN-9.1.3.1' ],
|
|
29346
29375
|
all: [],
|
|
29347
29376
|
any: [ 'listitem' ],
|
|
29348
29377
|
none: []
|
|
@@ -29350,7 +29379,7 @@
|
|
|
29350
29379
|
id: 'marquee',
|
|
29351
29380
|
selector: 'marquee',
|
|
29352
29381
|
excludeHidden: false,
|
|
29353
|
-
tags: [ 'cat.parsing', 'wcag2a', 'wcag222', 'TTv5', 'TT2.b' ],
|
|
29382
|
+
tags: [ 'cat.parsing', 'wcag2a', 'wcag222', 'TTv5', 'TT2.b', 'EN-301-549', 'EN-9.2.2.2' ],
|
|
29354
29383
|
all: [],
|
|
29355
29384
|
any: [],
|
|
29356
29385
|
none: [ 'is-on-screen' ]
|
|
@@ -29374,7 +29403,7 @@
|
|
|
29374
29403
|
id: 'meta-refresh',
|
|
29375
29404
|
selector: 'meta[http-equiv="refresh"][content]',
|
|
29376
29405
|
excludeHidden: false,
|
|
29377
|
-
tags: [ 'cat.time-and-media', 'wcag2a', 'wcag221', 'TTv5', 'TT8.a' ],
|
|
29406
|
+
tags: [ 'cat.time-and-media', 'wcag2a', 'wcag221', 'TTv5', 'TT8.a', 'EN-301-549', 'EN-9.2.2.1' ],
|
|
29378
29407
|
actIds: [ 'bc659a', 'bisz58' ],
|
|
29379
29408
|
all: [],
|
|
29380
29409
|
any: [ {
|
|
@@ -29405,7 +29434,7 @@
|
|
|
29405
29434
|
selector: 'meta[name="viewport"]',
|
|
29406
29435
|
matches: 'is-initiator-matches',
|
|
29407
29436
|
excludeHidden: false,
|
|
29408
|
-
tags: [ 'cat.sensory-and-visual-cues', 'wcag2aa', 'wcag144', 'ACT' ],
|
|
29437
|
+
tags: [ 'cat.sensory-and-visual-cues', 'wcag2aa', 'wcag144', 'EN-301-549', 'EN-9.1.4.4', 'ACT' ],
|
|
29409
29438
|
actIds: [ 'b4f0c3' ],
|
|
29410
29439
|
all: [],
|
|
29411
29440
|
any: [ {
|
|
@@ -29418,7 +29447,7 @@
|
|
|
29418
29447
|
}, {
|
|
29419
29448
|
id: 'nested-interactive',
|
|
29420
29449
|
matches: 'nested-interactive-matches',
|
|
29421
|
-
tags: [ 'cat.keyboard', 'wcag2a', 'wcag412', 'TTv5', 'TT6.a' ],
|
|
29450
|
+
tags: [ 'cat.keyboard', 'wcag2a', 'wcag412', 'TTv5', 'TT6.a', 'EN-301-549', 'EN-9.4.1.2' ],
|
|
29422
29451
|
actIds: [ '307n5z' ],
|
|
29423
29452
|
all: [],
|
|
29424
29453
|
any: [ 'no-focusable-content' ],
|
|
@@ -29429,7 +29458,7 @@
|
|
|
29429
29458
|
selector: 'audio[autoplay], video[autoplay]',
|
|
29430
29459
|
matches: 'no-autoplay-audio-matches',
|
|
29431
29460
|
reviewOnFail: true,
|
|
29432
|
-
tags: [ 'cat.time-and-media', 'wcag2a', 'wcag142', '
|
|
29461
|
+
tags: [ 'cat.time-and-media', 'wcag2a', 'wcag142', 'TTv5', 'TT2.a', 'EN-301-549', 'EN-9.1.4.2', 'ACT' ],
|
|
29433
29462
|
actIds: [ '80f0bf' ],
|
|
29434
29463
|
preload: true,
|
|
29435
29464
|
all: [ {
|
|
@@ -29444,7 +29473,7 @@
|
|
|
29444
29473
|
id: 'object-alt',
|
|
29445
29474
|
selector: 'object[data]',
|
|
29446
29475
|
matches: 'object-is-loaded-matches',
|
|
29447
|
-
tags: [ 'cat.text-alternatives', 'wcag2a', 'wcag111', 'section508', 'section508.22.a' ],
|
|
29476
|
+
tags: [ 'cat.text-alternatives', 'wcag2a', 'wcag111', 'section508', 'section508.22.a', 'EN-301-549', 'EN-9.1.1.1' ],
|
|
29448
29477
|
actIds: [ '8fc3b6' ],
|
|
29449
29478
|
all: [],
|
|
29450
29479
|
any: [ 'aria-label', 'aria-labelledby', {
|
|
@@ -29458,7 +29487,7 @@
|
|
|
29458
29487
|
id: 'p-as-heading',
|
|
29459
29488
|
selector: 'p',
|
|
29460
29489
|
matches: 'p-as-heading-matches',
|
|
29461
|
-
tags: [ 'cat.semantics', 'wcag2a', 'wcag131', 'experimental' ],
|
|
29490
|
+
tags: [ 'cat.semantics', 'wcag2a', 'wcag131', 'EN-301-549', 'EN-9.1.3.1', 'experimental' ],
|
|
29462
29491
|
all: [ {
|
|
29463
29492
|
options: {
|
|
29464
29493
|
margins: [ {
|
|
@@ -29518,7 +29547,7 @@
|
|
|
29518
29547
|
id: 'role-img-alt',
|
|
29519
29548
|
selector: '[role=\'img\']:not(img, area, input, object)',
|
|
29520
29549
|
matches: 'html-namespace-matches',
|
|
29521
|
-
tags: [ 'cat.text-alternatives', 'wcag2a', 'wcag111', 'section508', 'section508.22.a', '
|
|
29550
|
+
tags: [ 'cat.text-alternatives', 'wcag2a', 'wcag111', 'section508', 'section508.22.a', 'TTv5', 'TT7.a', 'EN-301-549', 'EN-9.1.1.1', 'ACT' ],
|
|
29522
29551
|
actIds: [ '23a2a8' ],
|
|
29523
29552
|
all: [],
|
|
29524
29553
|
any: [ 'aria-label', 'aria-labelledby', {
|
|
@@ -29544,7 +29573,7 @@
|
|
|
29544
29573
|
id: 'scrollable-region-focusable',
|
|
29545
29574
|
selector: '*:not(select,textarea)',
|
|
29546
29575
|
matches: 'scrollable-region-focusable-matches',
|
|
29547
|
-
tags: [ 'cat.keyboard', 'wcag2a', 'wcag211', 'TTv5', 'TT4.a' ],
|
|
29576
|
+
tags: [ 'cat.keyboard', 'wcag2a', 'wcag211', 'TTv5', 'TT4.a', 'EN-301-549', 'EN-9.2.1.1' ],
|
|
29548
29577
|
actIds: [ '0ssw9k' ],
|
|
29549
29578
|
all: [],
|
|
29550
29579
|
any: [ 'focusable-content', 'focusable-element' ],
|
|
@@ -29552,7 +29581,7 @@
|
|
|
29552
29581
|
}, {
|
|
29553
29582
|
id: 'select-name',
|
|
29554
29583
|
selector: 'select',
|
|
29555
|
-
tags: [ 'cat.forms', 'wcag2a', 'wcag412', 'section508', 'section508.22.n', '
|
|
29584
|
+
tags: [ 'cat.forms', 'wcag2a', 'wcag412', 'section508', 'section508.22.n', 'TTv5', 'TT5.c', 'EN-301-549', 'EN-9.4.1.2', 'ACT' ],
|
|
29556
29585
|
actIds: [ 'e086e5' ],
|
|
29557
29586
|
all: [],
|
|
29558
29587
|
any: [ 'implicit-label', 'explicit-label', 'aria-label', 'aria-labelledby', {
|
|
@@ -29565,7 +29594,7 @@
|
|
|
29565
29594
|
}, {
|
|
29566
29595
|
id: 'server-side-image-map',
|
|
29567
29596
|
selector: 'img[ismap]',
|
|
29568
|
-
tags: [ 'cat.text-alternatives', 'wcag2a', 'wcag211', 'section508', 'section508.22.f', 'TTv5', 'TT4.a' ],
|
|
29597
|
+
tags: [ 'cat.text-alternatives', 'wcag2a', 'wcag211', 'section508', 'section508.22.f', 'TTv5', 'TT4.a', 'EN-301-549', 'EN-9.2.1.1' ],
|
|
29569
29598
|
all: [],
|
|
29570
29599
|
any: [],
|
|
29571
29600
|
none: [ 'exists' ]
|
|
@@ -29581,7 +29610,7 @@
|
|
|
29581
29610
|
id: 'svg-img-alt',
|
|
29582
29611
|
selector: '[role="img"], [role="graphics-symbol"], svg[role="graphics-document"]',
|
|
29583
29612
|
matches: 'svg-namespace-matches',
|
|
29584
|
-
tags: [ 'cat.text-alternatives', 'wcag2a', 'wcag111', 'section508', 'section508.22.a', '
|
|
29613
|
+
tags: [ 'cat.text-alternatives', 'wcag2a', 'wcag111', 'section508', 'section508.22.a', 'TTv5', 'TT7.a', 'EN-301-549', 'EN-9.1.1.1', 'ACT' ],
|
|
29585
29614
|
actIds: [ '7d6734' ],
|
|
29586
29615
|
all: [],
|
|
29587
29616
|
any: [ 'svg-non-empty-title', 'aria-label', 'aria-labelledby', {
|
|
@@ -29609,7 +29638,7 @@
|
|
|
29609
29638
|
id: 'table-fake-caption',
|
|
29610
29639
|
selector: 'table',
|
|
29611
29640
|
matches: 'data-table-matches',
|
|
29612
|
-
tags: [ 'cat.tables', 'experimental', 'wcag2a', 'wcag131', 'section508', 'section508.22.g' ],
|
|
29641
|
+
tags: [ 'cat.tables', 'experimental', 'wcag2a', 'wcag131', 'section508', 'section508.22.g', 'EN-301-549', 'EN-9.1.3.1' ],
|
|
29613
29642
|
all: [ 'caption-faked' ],
|
|
29614
29643
|
any: [],
|
|
29615
29644
|
none: []
|
|
@@ -29618,7 +29647,7 @@
|
|
|
29618
29647
|
selector: '*',
|
|
29619
29648
|
enabled: false,
|
|
29620
29649
|
matches: 'widget-not-inline-matches',
|
|
29621
|
-
tags: [ '
|
|
29650
|
+
tags: [ 'cat.sensory-and-visual-cues', 'wcag22aa', 'wcag258' ],
|
|
29622
29651
|
all: [],
|
|
29623
29652
|
any: [ {
|
|
29624
29653
|
options: {
|
|
@@ -29636,7 +29665,7 @@
|
|
|
29636
29665
|
id: 'td-has-header',
|
|
29637
29666
|
selector: 'table',
|
|
29638
29667
|
matches: 'data-table-large-matches',
|
|
29639
|
-
tags: [ 'cat.tables', 'experimental', 'wcag2a', 'wcag131', 'section508', 'section508.22.g', 'TTv5', 'TT14.b' ],
|
|
29668
|
+
tags: [ 'cat.tables', 'experimental', 'wcag2a', 'wcag131', 'section508', 'section508.22.g', 'TTv5', 'TT14.b', 'EN-301-549', 'EN-9.1.3.1' ],
|
|
29640
29669
|
all: [ 'td-has-header' ],
|
|
29641
29670
|
any: [],
|
|
29642
29671
|
none: []
|
|
@@ -29644,7 +29673,7 @@
|
|
|
29644
29673
|
id: 'td-headers-attr',
|
|
29645
29674
|
selector: 'table',
|
|
29646
29675
|
matches: 'table-or-grid-role-matches',
|
|
29647
|
-
tags: [ 'cat.tables', 'wcag2a', 'wcag131', 'section508', 'section508.22.g', 'TTv5', 'TT14.b' ],
|
|
29676
|
+
tags: [ 'cat.tables', 'wcag2a', 'wcag131', 'section508', 'section508.22.g', 'TTv5', 'TT14.b', 'EN-301-549', 'EN-9.1.3.1' ],
|
|
29648
29677
|
actIds: [ 'a25f45' ],
|
|
29649
29678
|
all: [ 'td-headers-attr' ],
|
|
29650
29679
|
any: [],
|
|
@@ -29653,7 +29682,7 @@
|
|
|
29653
29682
|
id: 'th-has-data-cells',
|
|
29654
29683
|
selector: 'table',
|
|
29655
29684
|
matches: 'data-table-matches',
|
|
29656
|
-
tags: [ 'cat.tables', 'wcag2a', 'wcag131', 'section508', 'section508.22.g', 'TTv5', '
|
|
29685
|
+
tags: [ 'cat.tables', 'wcag2a', 'wcag131', 'section508', 'section508.22.g', 'TTv5', 'TT14.b', 'EN-301-549', 'EN-9.1.3.1' ],
|
|
29657
29686
|
actIds: [ 'd0f69e' ],
|
|
29658
29687
|
all: [ 'th-has-data-cells' ],
|
|
29659
29688
|
any: [],
|
|
@@ -29661,7 +29690,7 @@
|
|
|
29661
29690
|
}, {
|
|
29662
29691
|
id: 'valid-lang',
|
|
29663
29692
|
selector: '[lang]:not(html), [xml\\:lang]:not(html)',
|
|
29664
|
-
tags: [ 'cat.language', 'wcag2aa', 'wcag312', '
|
|
29693
|
+
tags: [ 'cat.language', 'wcag2aa', 'wcag312', 'TTv5', 'TT11.b', 'EN-301-549', 'EN-9.3.1.2', 'ACT' ],
|
|
29665
29694
|
actIds: [ 'de46e4' ],
|
|
29666
29695
|
all: [],
|
|
29667
29696
|
any: [],
|
|
@@ -29674,7 +29703,7 @@
|
|
|
29674
29703
|
}, {
|
|
29675
29704
|
id: 'video-caption',
|
|
29676
29705
|
selector: 'video',
|
|
29677
|
-
tags: [ 'cat.text-alternatives', 'wcag2a', 'wcag122', 'section508', 'section508.22.a', 'TTv5', 'TT17.a' ],
|
|
29706
|
+
tags: [ 'cat.text-alternatives', 'wcag2a', 'wcag122', 'section508', 'section508.22.a', 'TTv5', 'TT17.a', 'EN-301-549', 'EN-9.1.2.2' ],
|
|
29678
29707
|
actIds: [ 'eac66b' ],
|
|
29679
29708
|
all: [],
|
|
29680
29709
|
any: [],
|