govuk_publishing_components 37.1.0 → 37.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (37) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/config/govuk_publishing_components_manifest.js +0 -2
  3. data/app/assets/javascripts/govuk_publishing_components/analytics-ga4/ga4-core.js +6 -0
  4. data/app/assets/javascripts/govuk_publishing_components/analytics-ga4/ga4-schemas.js +2 -2
  5. data/app/assets/javascripts/govuk_publishing_components/lib/cookie-settings.js +109 -0
  6. data/app/assets/javascripts/govuk_publishing_components/load-analytics.js +83 -60
  7. data/app/assets/stylesheets/component_guide/application.scss +1 -1
  8. data/app/assets/stylesheets/govuk_publishing_components/components/_contents-list.scss +1 -1
  9. data/app/assets/stylesheets/govuk_publishing_components/components/_image-card.scss +3 -3
  10. data/app/assets/stylesheets/govuk_publishing_components/components/_modal-dialogue.scss +1 -1
  11. data/app/assets/stylesheets/govuk_publishing_components/components/_search.scss +2 -2
  12. data/app/assets/stylesheets/govuk_publishing_components/components/_share-links.scss +1 -1
  13. data/app/assets/stylesheets/govuk_publishing_components/components/_step-by-step-nav-related.scss +1 -1
  14. data/app/assets/stylesheets/govuk_publishing_components/components/_step-by-step-nav.scss +10 -10
  15. data/app/assets/stylesheets/govuk_publishing_components/components/_table.scss +1 -1
  16. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_warning-callout.scss +2 -2
  17. data/app/assets/stylesheets/govuk_publishing_components/components/helpers/_markdown-typography.scss +1 -1
  18. data/app/assets/stylesheets/govuk_publishing_components/components/mixins/_grid-helper.scss +1 -1
  19. data/app/models/govuk_publishing_components/audit_applications.rb +1 -1
  20. data/app/models/govuk_publishing_components/component_docs.rb +1 -1
  21. data/app/views/govuk_publishing_components/components/_details.html.erb +18 -2
  22. data/app/views/govuk_publishing_components/components/_image_card.html.erb +11 -11
  23. data/app/views/govuk_publishing_components/components/_layout_footer.html.erb +5 -0
  24. data/app/views/govuk_publishing_components/components/_layout_super_navigation_header.html.erb +7 -3
  25. data/app/views/govuk_publishing_components/components/_metadata.html.erb +1 -5
  26. data/app/views/govuk_publishing_components/components/docs/details.yml +21 -0
  27. data/app/views/govuk_publishing_components/components/docs/image_card.yml +18 -11
  28. data/app/views/govuk_publishing_components/components/feedback/_problem_form.html.erb +5 -1
  29. data/app/views/govuk_publishing_components/components/feedback/_survey_signup_form.html.erb +5 -1
  30. data/lib/govuk_publishing_components/presenters/absolute_links_helper.rb +20 -0
  31. data/lib/govuk_publishing_components/version.rb +1 -1
  32. data/lib/govuk_publishing_components.rb +1 -0
  33. data/node_modules/axe-core/axe.js +604 -440
  34. data/node_modules/axe-core/axe.min.js +2 -2
  35. data/node_modules/axe-core/package.json +1 -1
  36. data/node_modules/axe-core/sri-history.json +4 -0
  37. metadata +5 -3
@@ -1,4 +1,4 @@
1
- /*! axe v4.8.2
1
+ /*! axe v4.8.3
2
2
  * Copyright (c) 2015 - 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.8.2';
25
+ axe.version = '4.8.3';
26
26
  if (typeof define === 'function' && define.amd) {
27
27
  define('axe-core', [], function() {
28
28
  return axe;
@@ -3621,181 +3621,6 @@
3621
3621
  }();
3622
3622
  exports.CssSelectorParser = CssSelectorParser3;
3623
3623
  });
3624
- var require_doT = __commonJS(function(exports, module) {
3625
- (function() {
3626
- 'use strict';
3627
- var doT3 = {
3628
- name: 'doT',
3629
- version: '1.1.1',
3630
- templateSettings: {
3631
- evaluate: /\{\{([\s\S]+?(\}?)+)\}\}/g,
3632
- interpolate: /\{\{=([\s\S]+?)\}\}/g,
3633
- encode: /\{\{!([\s\S]+?)\}\}/g,
3634
- use: /\{\{#([\s\S]+?)\}\}/g,
3635
- useParams: /(^|[^\w$])def(?:\.|\[[\'\"])([\w$\.]+)(?:[\'\"]\])?\s*\:\s*([\w$\.]+|\"[^\"]+\"|\'[^\']+\'|\{[^\}]+\})/g,
3636
- define: /\{\{##\s*([\w\.$]+)\s*(\:|=)([\s\S]+?)#\}\}/g,
3637
- defineParams: /^\s*([\w$]+):([\s\S]+)/,
3638
- conditional: /\{\{\?(\?)?\s*([\s\S]*?)\s*\}\}/g,
3639
- iterate: /\{\{~\s*(?:\}\}|([\s\S]+?)\s*\:\s*([\w$]+)\s*(?:\:\s*([\w$]+))?\s*\}\})/g,
3640
- varname: 'it',
3641
- strip: true,
3642
- append: true,
3643
- selfcontained: false,
3644
- doNotSkipEncoded: false
3645
- },
3646
- template: void 0,
3647
- compile: void 0,
3648
- log: true
3649
- };
3650
- (function() {
3651
- if ((typeof globalThis === 'undefined' ? 'undefined' : _typeof(globalThis)) === 'object') {
3652
- return;
3653
- }
3654
- try {
3655
- Object.defineProperty(Object.prototype, '__magic__', {
3656
- get: function get() {
3657
- return this;
3658
- },
3659
- configurable: true
3660
- });
3661
- __magic__.globalThis = __magic__;
3662
- delete Object.prototype.__magic__;
3663
- } catch (e) {
3664
- window.globalThis = function() {
3665
- if (typeof self !== 'undefined') {
3666
- return self;
3667
- }
3668
- if (typeof window !== 'undefined') {
3669
- return window;
3670
- }
3671
- if (typeof global !== 'undefined') {
3672
- return global;
3673
- }
3674
- if (typeof this !== 'undefined') {
3675
- return this;
3676
- }
3677
- throw new Error('Unable to locate global `this`');
3678
- }();
3679
- }
3680
- })();
3681
- doT3.encodeHTMLSource = function(doNotSkipEncoded) {
3682
- var encodeHTMLRules = {
3683
- '&': '&',
3684
- '<': '&#60;',
3685
- '>': '&#62;',
3686
- '"': '&#34;',
3687
- '\'': '&#39;',
3688
- '/': '&#47;'
3689
- }, matchHTML = doNotSkipEncoded ? /[&<>"'\/]/g : /&(?!#?\w+;)|<|>|"|'|\//g;
3690
- return function(code) {
3691
- return code ? code.toString().replace(matchHTML, function(m3) {
3692
- return encodeHTMLRules[m3] || m3;
3693
- }) : '';
3694
- };
3695
- };
3696
- if (typeof module !== 'undefined' && module.exports) {
3697
- module.exports = doT3;
3698
- } else if (typeof define === 'function' && define.amd) {
3699
- define(function() {
3700
- return doT3;
3701
- });
3702
- } else {
3703
- globalThis.doT = doT3;
3704
- }
3705
- var startend = {
3706
- append: {
3707
- start: '\'+(',
3708
- end: ')+\'',
3709
- startencode: '\'+encodeHTML('
3710
- },
3711
- split: {
3712
- start: '\';out+=(',
3713
- end: ');out+=\'',
3714
- startencode: '\';out+=encodeHTML('
3715
- }
3716
- }, skip = /$^/;
3717
- function resolveDefs(c4, block, def) {
3718
- return (typeof block === 'string' ? block : block.toString()).replace(c4.define || skip, function(m3, code, assign, value) {
3719
- if (code.indexOf('def.') === 0) {
3720
- code = code.substring(4);
3721
- }
3722
- if (!(code in def)) {
3723
- if (assign === ':') {
3724
- if (c4.defineParams) {
3725
- value.replace(c4.defineParams, function(m4, param, v) {
3726
- def[code] = {
3727
- arg: param,
3728
- text: v
3729
- };
3730
- });
3731
- }
3732
- if (!(code in def)) {
3733
- def[code] = value;
3734
- }
3735
- } else {
3736
- new Function('def', 'def[\'' + code + '\']=' + value)(def);
3737
- }
3738
- }
3739
- return '';
3740
- }).replace(c4.use || skip, function(m3, code) {
3741
- if (c4.useParams) {
3742
- code = code.replace(c4.useParams, function(m4, s, d2, param) {
3743
- if (def[d2] && def[d2].arg && param) {
3744
- var rw = (d2 + ':' + param).replace(/'|\\/g, '_');
3745
- def.__exp = def.__exp || {};
3746
- def.__exp[rw] = def[d2].text.replace(new RegExp('(^|[^\\w$])' + def[d2].arg + '([^\\w$])', 'g'), '$1' + param + '$2');
3747
- return s + 'def.__exp[\'' + rw + '\']';
3748
- }
3749
- });
3750
- }
3751
- var v = new Function('def', 'return ' + code)(def);
3752
- return v ? resolveDefs(c4, v, def) : v;
3753
- });
3754
- }
3755
- function unescape(code) {
3756
- return code.replace(/\\('|\\)/g, '$1').replace(/[\r\t\n]/g, ' ');
3757
- }
3758
- doT3.template = function(tmpl, c4, def) {
3759
- c4 = c4 || doT3.templateSettings;
3760
- var cse = c4.append ? startend.append : startend.split, needhtmlencode, sid = 0, indv, str = c4.use || c4.define ? resolveDefs(c4, tmpl, def || {}) : tmpl;
3761
- str = ('var out=\'' + (c4.strip ? str.replace(/(^|\r|\n)\t* +| +\t*(\r|\n|$)/g, ' ').replace(/\r|\n|\t|\/\*[\s\S]*?\*\//g, '') : str).replace(/'|\\/g, '\\$&').replace(c4.interpolate || skip, function(m3, code) {
3762
- return cse.start + unescape(code) + cse.end;
3763
- }).replace(c4.encode || skip, function(m3, code) {
3764
- needhtmlencode = true;
3765
- return cse.startencode + unescape(code) + cse.end;
3766
- }).replace(c4.conditional || skip, function(m3, elsecase, code) {
3767
- return elsecase ? code ? '\';}else if(' + unescape(code) + '){out+=\'' : '\';}else{out+=\'' : code ? '\';if(' + unescape(code) + '){out+=\'' : '\';}out+=\'';
3768
- }).replace(c4.iterate || skip, function(m3, iterate, vname, iname) {
3769
- if (!iterate) {
3770
- return '\';} } out+=\'';
3771
- }
3772
- sid += 1;
3773
- indv = iname || 'i' + sid;
3774
- iterate = unescape(iterate);
3775
- return '\';var arr' + sid + '=' + iterate + ';if(arr' + sid + '){var ' + vname + ',' + indv + '=-1,l' + sid + '=arr' + sid + '.length-1;while(' + indv + '<l' + sid + '){' + vname + '=arr' + sid + '[' + indv + '+=1];out+=\'';
3776
- }).replace(c4.evaluate || skip, function(m3, code) {
3777
- return '\';' + unescape(code) + 'out+=\'';
3778
- }) + '\';return out;').replace(/\n/g, '\\n').replace(/\t/g, '\\t').replace(/\r/g, '\\r').replace(/(\s|;|\}|^|\{)out\+='';/g, '$1').replace(/\+''/g, '');
3779
- if (needhtmlencode) {
3780
- if (!c4.selfcontained && globalThis && !globalThis._encodeHTML) {
3781
- globalThis._encodeHTML = doT3.encodeHTMLSource(c4.doNotSkipEncoded);
3782
- }
3783
- str = 'var encodeHTML = typeof _encodeHTML !== \'undefined\' ? _encodeHTML : (' + doT3.encodeHTMLSource.toString() + '(' + (c4.doNotSkipEncoded || '') + '));' + str;
3784
- }
3785
- try {
3786
- return new Function(c4.varname, str);
3787
- } catch (e) {
3788
- if (typeof console !== 'undefined') {
3789
- console.log('Could not create a template function: ' + str);
3790
- }
3791
- throw e;
3792
- }
3793
- };
3794
- doT3.compile = function(tmpl, def) {
3795
- return doT3.template(tmpl, null, def);
3796
- };
3797
- })();
3798
- });
3799
3624
  var require_es6_promise = __commonJS(function(exports, module) {
3800
3625
  (function(global2, factory) {
3801
3626
  _typeof(exports) === 'object' && typeof module !== 'undefined' ? module.exports = factory() : typeof define === 'function' && define.amd ? define(factory) : global2.ES6Promise = factory();
@@ -5623,6 +5448,341 @@
5623
5448
  var parent = require_has_own2();
5624
5449
  module.exports = parent;
5625
5450
  });
5451
+ var require_math_trunc = __commonJS(function(exports, module) {
5452
+ var ceil = Math.ceil;
5453
+ var floor = Math.floor;
5454
+ module.exports = Math.trunc || function trunc(x) {
5455
+ var n2 = +x;
5456
+ return (n2 > 0 ? floor : ceil)(n2);
5457
+ };
5458
+ });
5459
+ var require_to_integer_or_infinity = __commonJS(function(exports, module) {
5460
+ var trunc = require_math_trunc();
5461
+ module.exports = function(argument) {
5462
+ var number = +argument;
5463
+ return number !== number || number === 0 ? 0 : trunc(number);
5464
+ };
5465
+ });
5466
+ var require_to_absolute_index = __commonJS(function(exports, module) {
5467
+ var toIntegerOrInfinity = require_to_integer_or_infinity();
5468
+ var max2 = Math.max;
5469
+ var min = Math.min;
5470
+ module.exports = function(index, length) {
5471
+ var integer = toIntegerOrInfinity(index);
5472
+ return integer < 0 ? max2(integer + length, 0) : min(integer, length);
5473
+ };
5474
+ });
5475
+ var require_to_length = __commonJS(function(exports, module) {
5476
+ var toIntegerOrInfinity = require_to_integer_or_infinity();
5477
+ var min = Math.min;
5478
+ module.exports = function(argument) {
5479
+ return argument > 0 ? min(toIntegerOrInfinity(argument), 9007199254740991) : 0;
5480
+ };
5481
+ });
5482
+ var require_length_of_array_like = __commonJS(function(exports, module) {
5483
+ var toLength = require_to_length();
5484
+ module.exports = function(obj) {
5485
+ return toLength(obj.length);
5486
+ };
5487
+ });
5488
+ var require_array_includes = __commonJS(function(exports, module) {
5489
+ var toIndexedObject = require_to_indexed_object();
5490
+ var toAbsoluteIndex = require_to_absolute_index();
5491
+ var lengthOfArrayLike = require_length_of_array_like();
5492
+ var createMethod = function createMethod(IS_INCLUDES) {
5493
+ return function($this, el, fromIndex) {
5494
+ var O = toIndexedObject($this);
5495
+ var length = lengthOfArrayLike(O);
5496
+ var index = toAbsoluteIndex(fromIndex, length);
5497
+ var value;
5498
+ if (IS_INCLUDES && el != el) {
5499
+ while (length > index) {
5500
+ value = O[index++];
5501
+ if (value != value) {
5502
+ return true;
5503
+ }
5504
+ }
5505
+ } else {
5506
+ for (;length > index; index++) {
5507
+ if ((IS_INCLUDES || index in O) && O[index] === el) {
5508
+ return IS_INCLUDES || index || 0;
5509
+ }
5510
+ }
5511
+ }
5512
+ return !IS_INCLUDES && -1;
5513
+ };
5514
+ };
5515
+ module.exports = {
5516
+ includes: createMethod(true),
5517
+ indexOf: createMethod(false)
5518
+ };
5519
+ });
5520
+ var require_hidden_keys = __commonJS(function(exports, module) {
5521
+ module.exports = {};
5522
+ });
5523
+ var require_object_keys_internal = __commonJS(function(exports, module) {
5524
+ var uncurryThis = require_function_uncurry_this();
5525
+ var hasOwn2 = require_has_own_property();
5526
+ var toIndexedObject = require_to_indexed_object();
5527
+ var indexOf = require_array_includes().indexOf;
5528
+ var hiddenKeys = require_hidden_keys();
5529
+ var push = uncurryThis([].push);
5530
+ module.exports = function(object, names) {
5531
+ var O = toIndexedObject(object);
5532
+ var i = 0;
5533
+ var result = [];
5534
+ var key;
5535
+ for (key in O) {
5536
+ !hasOwn2(hiddenKeys, key) && hasOwn2(O, key) && push(result, key);
5537
+ }
5538
+ while (names.length > i) {
5539
+ if (hasOwn2(O, key = names[i++])) {
5540
+ ~indexOf(result, key) || push(result, key);
5541
+ }
5542
+ }
5543
+ return result;
5544
+ };
5545
+ });
5546
+ var require_enum_bug_keys = __commonJS(function(exports, module) {
5547
+ module.exports = [ 'constructor', 'hasOwnProperty', 'isPrototypeOf', 'propertyIsEnumerable', 'toLocaleString', 'toString', 'valueOf' ];
5548
+ });
5549
+ var require_object_keys = __commonJS(function(exports, module) {
5550
+ var internalObjectKeys = require_object_keys_internal();
5551
+ var enumBugKeys = require_enum_bug_keys();
5552
+ module.exports = Object.keys || function keys(O) {
5553
+ return internalObjectKeys(O, enumBugKeys);
5554
+ };
5555
+ });
5556
+ var require_object_to_array = __commonJS(function(exports, module) {
5557
+ var DESCRIPTORS = require_descriptors();
5558
+ var uncurryThis = require_function_uncurry_this();
5559
+ var objectKeys = require_object_keys();
5560
+ var toIndexedObject = require_to_indexed_object();
5561
+ var $propertyIsEnumerable = require_object_property_is_enumerable().f;
5562
+ var propertyIsEnumerable = uncurryThis($propertyIsEnumerable);
5563
+ var push = uncurryThis([].push);
5564
+ var createMethod = function createMethod(TO_ENTRIES) {
5565
+ return function(it) {
5566
+ var O = toIndexedObject(it);
5567
+ var keys = objectKeys(O);
5568
+ var length = keys.length;
5569
+ var i = 0;
5570
+ var result = [];
5571
+ var key;
5572
+ while (length > i) {
5573
+ key = keys[i++];
5574
+ if (!DESCRIPTORS || propertyIsEnumerable(O, key)) {
5575
+ push(result, TO_ENTRIES ? [ key, O[key] ] : O[key]);
5576
+ }
5577
+ }
5578
+ return result;
5579
+ };
5580
+ };
5581
+ module.exports = {
5582
+ entries: createMethod(true),
5583
+ values: createMethod(false)
5584
+ };
5585
+ });
5586
+ var require_es_object_values = __commonJS(function() {
5587
+ var $ = require_export();
5588
+ var $values = require_object_to_array().values;
5589
+ $({
5590
+ target: 'Object',
5591
+ stat: true
5592
+ }, {
5593
+ values: function values2(O) {
5594
+ return $values(O);
5595
+ }
5596
+ });
5597
+ });
5598
+ var require_values = __commonJS(function(exports, module) {
5599
+ require_es_object_values();
5600
+ var path = require_path();
5601
+ module.exports = path.Object.values;
5602
+ });
5603
+ var require_values2 = __commonJS(function(exports, module) {
5604
+ var parent = require_values();
5605
+ module.exports = parent;
5606
+ });
5607
+ var require_values3 = __commonJS(function(exports, module) {
5608
+ var parent = require_values2();
5609
+ module.exports = parent;
5610
+ });
5611
+ var require_doT = __commonJS(function(exports, module) {
5612
+ (function() {
5613
+ 'use strict';
5614
+ var doT3 = {
5615
+ name: 'doT',
5616
+ version: '1.1.1',
5617
+ templateSettings: {
5618
+ evaluate: /\{\{([\s\S]+?(\}?)+)\}\}/g,
5619
+ interpolate: /\{\{=([\s\S]+?)\}\}/g,
5620
+ encode: /\{\{!([\s\S]+?)\}\}/g,
5621
+ use: /\{\{#([\s\S]+?)\}\}/g,
5622
+ useParams: /(^|[^\w$])def(?:\.|\[[\'\"])([\w$\.]+)(?:[\'\"]\])?\s*\:\s*([\w$\.]+|\"[^\"]+\"|\'[^\']+\'|\{[^\}]+\})/g,
5623
+ define: /\{\{##\s*([\w\.$]+)\s*(\:|=)([\s\S]+?)#\}\}/g,
5624
+ defineParams: /^\s*([\w$]+):([\s\S]+)/,
5625
+ conditional: /\{\{\?(\?)?\s*([\s\S]*?)\s*\}\}/g,
5626
+ iterate: /\{\{~\s*(?:\}\}|([\s\S]+?)\s*\:\s*([\w$]+)\s*(?:\:\s*([\w$]+))?\s*\}\})/g,
5627
+ varname: 'it',
5628
+ strip: true,
5629
+ append: true,
5630
+ selfcontained: false,
5631
+ doNotSkipEncoded: false
5632
+ },
5633
+ template: void 0,
5634
+ compile: void 0,
5635
+ log: true
5636
+ };
5637
+ (function() {
5638
+ if ((typeof globalThis === 'undefined' ? 'undefined' : _typeof(globalThis)) === 'object') {
5639
+ return;
5640
+ }
5641
+ try {
5642
+ Object.defineProperty(Object.prototype, '__magic__', {
5643
+ get: function get() {
5644
+ return this;
5645
+ },
5646
+ configurable: true
5647
+ });
5648
+ __magic__.globalThis = __magic__;
5649
+ delete Object.prototype.__magic__;
5650
+ } catch (e) {
5651
+ window.globalThis = function() {
5652
+ if (typeof self !== 'undefined') {
5653
+ return self;
5654
+ }
5655
+ if (typeof window !== 'undefined') {
5656
+ return window;
5657
+ }
5658
+ if (typeof global !== 'undefined') {
5659
+ return global;
5660
+ }
5661
+ if (typeof this !== 'undefined') {
5662
+ return this;
5663
+ }
5664
+ throw new Error('Unable to locate global `this`');
5665
+ }();
5666
+ }
5667
+ })();
5668
+ doT3.encodeHTMLSource = function(doNotSkipEncoded) {
5669
+ var encodeHTMLRules = {
5670
+ '&': '&#38;',
5671
+ '<': '&#60;',
5672
+ '>': '&#62;',
5673
+ '"': '&#34;',
5674
+ '\'': '&#39;',
5675
+ '/': '&#47;'
5676
+ }, matchHTML = doNotSkipEncoded ? /[&<>"'\/]/g : /&(?!#?\w+;)|<|>|"|'|\//g;
5677
+ return function(code) {
5678
+ return code ? code.toString().replace(matchHTML, function(m3) {
5679
+ return encodeHTMLRules[m3] || m3;
5680
+ }) : '';
5681
+ };
5682
+ };
5683
+ if (typeof module !== 'undefined' && module.exports) {
5684
+ module.exports = doT3;
5685
+ } else if (typeof define === 'function' && define.amd) {
5686
+ define(function() {
5687
+ return doT3;
5688
+ });
5689
+ } else {
5690
+ globalThis.doT = doT3;
5691
+ }
5692
+ var startend = {
5693
+ append: {
5694
+ start: '\'+(',
5695
+ end: ')+\'',
5696
+ startencode: '\'+encodeHTML('
5697
+ },
5698
+ split: {
5699
+ start: '\';out+=(',
5700
+ end: ');out+=\'',
5701
+ startencode: '\';out+=encodeHTML('
5702
+ }
5703
+ }, skip = /$^/;
5704
+ function resolveDefs(c4, block, def) {
5705
+ return (typeof block === 'string' ? block : block.toString()).replace(c4.define || skip, function(m3, code, assign, value) {
5706
+ if (code.indexOf('def.') === 0) {
5707
+ code = code.substring(4);
5708
+ }
5709
+ if (!(code in def)) {
5710
+ if (assign === ':') {
5711
+ if (c4.defineParams) {
5712
+ value.replace(c4.defineParams, function(m4, param, v) {
5713
+ def[code] = {
5714
+ arg: param,
5715
+ text: v
5716
+ };
5717
+ });
5718
+ }
5719
+ if (!(code in def)) {
5720
+ def[code] = value;
5721
+ }
5722
+ } else {
5723
+ new Function('def', 'def[\'' + code + '\']=' + value)(def);
5724
+ }
5725
+ }
5726
+ return '';
5727
+ }).replace(c4.use || skip, function(m3, code) {
5728
+ if (c4.useParams) {
5729
+ code = code.replace(c4.useParams, function(m4, s, d2, param) {
5730
+ if (def[d2] && def[d2].arg && param) {
5731
+ var rw = (d2 + ':' + param).replace(/'|\\/g, '_');
5732
+ def.__exp = def.__exp || {};
5733
+ def.__exp[rw] = def[d2].text.replace(new RegExp('(^|[^\\w$])' + def[d2].arg + '([^\\w$])', 'g'), '$1' + param + '$2');
5734
+ return s + 'def.__exp[\'' + rw + '\']';
5735
+ }
5736
+ });
5737
+ }
5738
+ var v = new Function('def', 'return ' + code)(def);
5739
+ return v ? resolveDefs(c4, v, def) : v;
5740
+ });
5741
+ }
5742
+ function unescape(code) {
5743
+ return code.replace(/\\('|\\)/g, '$1').replace(/[\r\t\n]/g, ' ');
5744
+ }
5745
+ doT3.template = function(tmpl, c4, def) {
5746
+ c4 = c4 || doT3.templateSettings;
5747
+ var cse = c4.append ? startend.append : startend.split, needhtmlencode, sid = 0, indv, str = c4.use || c4.define ? resolveDefs(c4, tmpl, def || {}) : tmpl;
5748
+ str = ('var out=\'' + (c4.strip ? str.replace(/(^|\r|\n)\t* +| +\t*(\r|\n|$)/g, ' ').replace(/\r|\n|\t|\/\*[\s\S]*?\*\//g, '') : str).replace(/'|\\/g, '\\$&').replace(c4.interpolate || skip, function(m3, code) {
5749
+ return cse.start + unescape(code) + cse.end;
5750
+ }).replace(c4.encode || skip, function(m3, code) {
5751
+ needhtmlencode = true;
5752
+ return cse.startencode + unescape(code) + cse.end;
5753
+ }).replace(c4.conditional || skip, function(m3, elsecase, code) {
5754
+ return elsecase ? code ? '\';}else if(' + unescape(code) + '){out+=\'' : '\';}else{out+=\'' : code ? '\';if(' + unescape(code) + '){out+=\'' : '\';}out+=\'';
5755
+ }).replace(c4.iterate || skip, function(m3, iterate, vname, iname) {
5756
+ if (!iterate) {
5757
+ return '\';} } out+=\'';
5758
+ }
5759
+ sid += 1;
5760
+ indv = iname || 'i' + sid;
5761
+ iterate = unescape(iterate);
5762
+ return '\';var arr' + sid + '=' + iterate + ';if(arr' + sid + '){var ' + vname + ',' + indv + '=-1,l' + sid + '=arr' + sid + '.length-1;while(' + indv + '<l' + sid + '){' + vname + '=arr' + sid + '[' + indv + '+=1];out+=\'';
5763
+ }).replace(c4.evaluate || skip, function(m3, code) {
5764
+ return '\';' + unescape(code) + 'out+=\'';
5765
+ }) + '\';return out;').replace(/\n/g, '\\n').replace(/\t/g, '\\t').replace(/\r/g, '\\r').replace(/(\s|;|\}|^|\{)out\+='';/g, '$1').replace(/\+''/g, '');
5766
+ if (needhtmlencode) {
5767
+ if (!c4.selfcontained && globalThis && !globalThis._encodeHTML) {
5768
+ globalThis._encodeHTML = doT3.encodeHTMLSource(c4.doNotSkipEncoded);
5769
+ }
5770
+ str = 'var encodeHTML = typeof _encodeHTML !== \'undefined\' ? _encodeHTML : (' + doT3.encodeHTMLSource.toString() + '(' + (c4.doNotSkipEncoded || '') + '));' + str;
5771
+ }
5772
+ try {
5773
+ return new Function(c4.varname, str);
5774
+ } catch (e) {
5775
+ if (typeof console !== 'undefined') {
5776
+ console.log('Could not create a template function: ' + str);
5777
+ }
5778
+ throw e;
5779
+ }
5780
+ };
5781
+ doT3.compile = function(tmpl, def) {
5782
+ return doT3.template(tmpl, null, def);
5783
+ };
5784
+ })();
5785
+ });
5626
5786
  var definitions = [ {
5627
5787
  name: 'NA',
5628
5788
  value: 'inapplicable',
@@ -5979,12 +6139,12 @@
5979
6139
  return _validLangs;
5980
6140
  }
5981
6141
  });
5982
- function aggregate(map, values, initial) {
5983
- values = values.slice();
6142
+ function aggregate(map, values2, initial) {
6143
+ values2 = values2.slice();
5984
6144
  if (initial) {
5985
- values.push(initial);
6145
+ values2.push(initial);
5986
6146
  }
5987
- var sorting = values.map(function(val) {
6147
+ var sorting = values2.map(function(val) {
5988
6148
  return map.indexOf(val);
5989
6149
  }).sort();
5990
6150
  return map[sorting.pop()];
@@ -13070,25 +13230,264 @@
13070
13230
  }
13071
13231
  return hasBgImage;
13072
13232
  }
13073
- var element_has_image_default = elementHasImage;
13074
- var imports_exports = {};
13075
- __export(imports_exports, {
13076
- Colorjs: function Colorjs() {
13077
- return Color;
13078
- },
13079
- CssSelectorParser: function CssSelectorParser() {
13080
- return import_css_selector_parser2.CssSelectorParser;
13081
- },
13082
- doT: function doT() {
13083
- return import_dot['default'];
13084
- },
13085
- emojiRegexText: function emojiRegexText() {
13086
- return emoji_regex_default;
13087
- },
13088
- memoize: function memoize() {
13089
- return import_memoizee2['default'];
13090
- }
13091
- });
13233
+ var element_has_image_default = elementHasImage;
13234
+ var imports_exports = {};
13235
+ __export(imports_exports, {
13236
+ Colorjs: function Colorjs() {
13237
+ return Color;
13238
+ },
13239
+ CssSelectorParser: function CssSelectorParser() {
13240
+ return import_css_selector_parser2.CssSelectorParser;
13241
+ },
13242
+ doT: function doT() {
13243
+ return import_dot['default'];
13244
+ },
13245
+ emojiRegexText: function emojiRegexText() {
13246
+ return emoji_regex_default;
13247
+ },
13248
+ memoize: function memoize() {
13249
+ return import_memoizee2['default'];
13250
+ }
13251
+ });
13252
+ var import_es6_promise = __toModule(require_es6_promise());
13253
+ var import_typedarray = __toModule(require_typedarray());
13254
+ var import_weakmap_polyfill = __toModule(require_weakmap_polyfill());
13255
+ var import_has_own = __toModule(require_has_own3());
13256
+ var import_values = __toModule(require_values3());
13257
+ if (!('hasOwn' in Object)) {
13258
+ Object.hasOwn = import_has_own['default'];
13259
+ }
13260
+ if (!('values' in Object)) {
13261
+ Object.values = import_values['default'];
13262
+ }
13263
+ if (!('Promise' in window)) {
13264
+ import_es6_promise['default'].polyfill();
13265
+ }
13266
+ if (!('Uint32Array' in window)) {
13267
+ window.Uint32Array = import_typedarray.Uint32Array;
13268
+ }
13269
+ if (window.Uint32Array) {
13270
+ if (!('some' in window.Uint32Array.prototype)) {
13271
+ Object.defineProperty(window.Uint32Array.prototype, 'some', {
13272
+ value: Array.prototype.some
13273
+ });
13274
+ }
13275
+ if (!('reduce' in window.Uint32Array.prototype)) {
13276
+ Object.defineProperty(window.Uint32Array.prototype, 'reduce', {
13277
+ value: Array.prototype.reduce
13278
+ });
13279
+ }
13280
+ }
13281
+ if (typeof Object.assign !== 'function') {
13282
+ (function() {
13283
+ Object.assign = function(target) {
13284
+ if (target === void 0 || target === null) {
13285
+ throw new TypeError('Cannot convert undefined or null to object');
13286
+ }
13287
+ var output = Object(target);
13288
+ for (var index = 1; index < arguments.length; index++) {
13289
+ var source = arguments[index];
13290
+ if (source !== void 0 && source !== null) {
13291
+ for (var nextKey in source) {
13292
+ if (source.hasOwnProperty(nextKey)) {
13293
+ output[nextKey] = source[nextKey];
13294
+ }
13295
+ }
13296
+ }
13297
+ }
13298
+ return output;
13299
+ };
13300
+ })();
13301
+ }
13302
+ if (!Array.prototype.find) {
13303
+ Object.defineProperty(Array.prototype, 'find', {
13304
+ value: function value(predicate) {
13305
+ if (this === null) {
13306
+ throw new TypeError('Array.prototype.find called on null or undefined');
13307
+ }
13308
+ if (typeof predicate !== 'function') {
13309
+ throw new TypeError('predicate must be a function');
13310
+ }
13311
+ var list = Object(this);
13312
+ var length = list.length >>> 0;
13313
+ var thisArg = arguments[1];
13314
+ var value;
13315
+ for (var i = 0; i < length; i++) {
13316
+ value = list[i];
13317
+ if (predicate.call(thisArg, value, i, list)) {
13318
+ return value;
13319
+ }
13320
+ }
13321
+ return void 0;
13322
+ }
13323
+ });
13324
+ }
13325
+ if (!Array.prototype.findIndex) {
13326
+ Object.defineProperty(Array.prototype, 'findIndex', {
13327
+ value: function value(predicate, thisArg) {
13328
+ if (this === null) {
13329
+ throw new TypeError('Array.prototype.find called on null or undefined');
13330
+ }
13331
+ if (typeof predicate !== 'function') {
13332
+ throw new TypeError('predicate must be a function');
13333
+ }
13334
+ var list = Object(this);
13335
+ var length = list.length >>> 0;
13336
+ var value;
13337
+ for (var i = 0; i < length; i++) {
13338
+ value = list[i];
13339
+ if (predicate.call(thisArg, value, i, list)) {
13340
+ return i;
13341
+ }
13342
+ }
13343
+ return -1;
13344
+ }
13345
+ });
13346
+ }
13347
+ if (!Array.prototype.includes) {
13348
+ Object.defineProperty(Array.prototype, 'includes', {
13349
+ value: function value(searchElement) {
13350
+ var O = Object(this);
13351
+ var len = parseInt(O.length, 10) || 0;
13352
+ if (len === 0) {
13353
+ return false;
13354
+ }
13355
+ var n2 = parseInt(arguments[1], 10) || 0;
13356
+ var k;
13357
+ if (n2 >= 0) {
13358
+ k = n2;
13359
+ } else {
13360
+ k = len + n2;
13361
+ if (k < 0) {
13362
+ k = 0;
13363
+ }
13364
+ }
13365
+ var currentElement;
13366
+ while (k < len) {
13367
+ currentElement = O[k];
13368
+ if (searchElement === currentElement || searchElement !== searchElement && currentElement !== currentElement) {
13369
+ return true;
13370
+ }
13371
+ k++;
13372
+ }
13373
+ return false;
13374
+ }
13375
+ });
13376
+ }
13377
+ if (!Array.prototype.some) {
13378
+ Object.defineProperty(Array.prototype, 'some', {
13379
+ value: function value(fun) {
13380
+ if (this == null) {
13381
+ throw new TypeError('Array.prototype.some called on null or undefined');
13382
+ }
13383
+ if (typeof fun !== 'function') {
13384
+ throw new TypeError();
13385
+ }
13386
+ var t = Object(this);
13387
+ var len = t.length >>> 0;
13388
+ var thisArg = arguments.length >= 2 ? arguments[1] : void 0;
13389
+ for (var i = 0; i < len; i++) {
13390
+ if (i in t && fun.call(thisArg, t[i], i, t)) {
13391
+ return true;
13392
+ }
13393
+ }
13394
+ return false;
13395
+ }
13396
+ });
13397
+ }
13398
+ if (!Array.from) {
13399
+ Object.defineProperty(Array, 'from', {
13400
+ value: function() {
13401
+ var toStr = Object.prototype.toString;
13402
+ var isCallable = function isCallable(fn) {
13403
+ return typeof fn === 'function' || toStr.call(fn) === '[object Function]';
13404
+ };
13405
+ var toInteger = function toInteger(value) {
13406
+ var number = Number(value);
13407
+ if (isNaN(number)) {
13408
+ return 0;
13409
+ }
13410
+ if (number === 0 || !isFinite(number)) {
13411
+ return number;
13412
+ }
13413
+ return (number > 0 ? 1 : -1) * Math.floor(Math.abs(number));
13414
+ };
13415
+ var maxSafeInteger = Math.pow(2, 53) - 1;
13416
+ var toLength = function toLength(value) {
13417
+ var len = toInteger(value);
13418
+ return Math.min(Math.max(len, 0), maxSafeInteger);
13419
+ };
13420
+ return function from(arrayLike) {
13421
+ var C = this;
13422
+ var items = Object(arrayLike);
13423
+ if (arrayLike == null) {
13424
+ throw new TypeError('Array.from requires an array-like object - not null or undefined');
13425
+ }
13426
+ var mapFn = arguments.length > 1 ? arguments[1] : void 0;
13427
+ var T;
13428
+ if (typeof mapFn !== 'undefined') {
13429
+ if (!isCallable(mapFn)) {
13430
+ throw new TypeError('Array.from: when provided, the second argument must be a function');
13431
+ }
13432
+ if (arguments.length > 2) {
13433
+ T = arguments[2];
13434
+ }
13435
+ }
13436
+ var len = toLength(items.length);
13437
+ var A = isCallable(C) ? Object(new C(len)) : new Array(len);
13438
+ var k = 0;
13439
+ var kValue;
13440
+ while (k < len) {
13441
+ kValue = items[k];
13442
+ if (mapFn) {
13443
+ A[k] = typeof T === 'undefined' ? mapFn(kValue, k) : mapFn.call(T, kValue, k);
13444
+ } else {
13445
+ A[k] = kValue;
13446
+ }
13447
+ k += 1;
13448
+ }
13449
+ A.length = len;
13450
+ return A;
13451
+ };
13452
+ }()
13453
+ });
13454
+ }
13455
+ if (!String.prototype.includes) {
13456
+ String.prototype.includes = function(search, start) {
13457
+ if (typeof start !== 'number') {
13458
+ start = 0;
13459
+ }
13460
+ if (start + search.length > this.length) {
13461
+ return false;
13462
+ } else {
13463
+ return this.indexOf(search, start) !== -1;
13464
+ }
13465
+ };
13466
+ }
13467
+ if (!Array.prototype.flat) {
13468
+ Object.defineProperty(Array.prototype, 'flat', {
13469
+ configurable: true,
13470
+ value: function flat() {
13471
+ var depth = isNaN(arguments[0]) ? 1 : Number(arguments[0]);
13472
+ return depth ? Array.prototype.reduce.call(this, function(acc, cur) {
13473
+ if (Array.isArray(cur)) {
13474
+ acc.push.apply(acc, flat.call(cur, depth - 1));
13475
+ } else {
13476
+ acc.push(cur);
13477
+ }
13478
+ return acc;
13479
+ }, []) : Array.prototype.slice.call(this);
13480
+ },
13481
+ writable: true
13482
+ });
13483
+ }
13484
+ if (window.Node && !('isConnected' in window.Node.prototype)) {
13485
+ Object.defineProperty(window.Node.prototype, 'isConnected', {
13486
+ get: function get() {
13487
+ return !this.ownerDocument || !(this.ownerDocument.compareDocumentPosition(this) & this.DOCUMENT_POSITION_DISCONNECTED);
13488
+ }
13489
+ });
13490
+ }
13092
13491
  var import_css_selector_parser2 = __toModule(require_lib());
13093
13492
  var import_dot = __toModule(require_doT());
13094
13493
  var import_memoizee2 = __toModule(require_memoizee());
@@ -16193,32 +16592,7 @@
16193
16592
  Color.extend(luminance);
16194
16593
  Color.extend(interpolation);
16195
16594
  Color.extend(contrastMethods);
16196
- var import_es6_promise = __toModule(require_es6_promise());
16197
- var import_typedarray = __toModule(require_typedarray());
16198
- var import_weakmap_polyfill = __toModule(require_weakmap_polyfill());
16199
- var import_has_own = __toModule(require_has_own3());
16200
- if (!('hasOwn' in Object)) {
16201
- Object.hasOwn = import_has_own['default'];
16202
- }
16203
16595
  import_dot['default'].templateSettings.strip = false;
16204
- if (!('Promise' in window)) {
16205
- import_es6_promise['default'].polyfill();
16206
- }
16207
- if (!('Uint32Array' in window)) {
16208
- window.Uint32Array = import_typedarray.Uint32Array;
16209
- }
16210
- if (window.Uint32Array) {
16211
- if (!('some' in window.Uint32Array.prototype)) {
16212
- Object.defineProperty(window.Uint32Array.prototype, 'some', {
16213
- value: Array.prototype.some
16214
- });
16215
- }
16216
- if (!('reduce' in window.Uint32Array.prototype)) {
16217
- Object.defineProperty(window.Uint32Array.prototype, 'reduce', {
16218
- value: Array.prototype.reduce
16219
- });
16220
- }
16221
- }
16222
16596
  var hexRegex = /^#[0-9a-f]{3,8}$/i;
16223
16597
  var hslRegex = /hsl\(\s*([\d.]+)(rad|turn)/;
16224
16598
  var Color2 = function() {
@@ -17886,72 +18260,6 @@
17886
18260
  };
17887
18261
  }();
17888
18262
  var performance_timer_default = performanceTimer;
17889
- if (typeof Object.assign !== 'function') {
17890
- (function() {
17891
- Object.assign = function(target) {
17892
- if (target === void 0 || target === null) {
17893
- throw new TypeError('Cannot convert undefined or null to object');
17894
- }
17895
- var output = Object(target);
17896
- for (var index = 1; index < arguments.length; index++) {
17897
- var source = arguments[index];
17898
- if (source !== void 0 && source !== null) {
17899
- for (var nextKey in source) {
17900
- if (source.hasOwnProperty(nextKey)) {
17901
- output[nextKey] = source[nextKey];
17902
- }
17903
- }
17904
- }
17905
- }
17906
- return output;
17907
- };
17908
- })();
17909
- }
17910
- if (!Array.prototype.find) {
17911
- Object.defineProperty(Array.prototype, 'find', {
17912
- value: function value(predicate) {
17913
- if (this === null) {
17914
- throw new TypeError('Array.prototype.find called on null or undefined');
17915
- }
17916
- if (typeof predicate !== 'function') {
17917
- throw new TypeError('predicate must be a function');
17918
- }
17919
- var list = Object(this);
17920
- var length = list.length >>> 0;
17921
- var thisArg = arguments[1];
17922
- var value;
17923
- for (var i = 0; i < length; i++) {
17924
- value = list[i];
17925
- if (predicate.call(thisArg, value, i, list)) {
17926
- return value;
17927
- }
17928
- }
17929
- return void 0;
17930
- }
17931
- });
17932
- }
17933
- if (!Array.prototype.findIndex) {
17934
- Object.defineProperty(Array.prototype, 'findIndex', {
17935
- value: function value(predicate, thisArg) {
17936
- if (this === null) {
17937
- throw new TypeError('Array.prototype.find called on null or undefined');
17938
- }
17939
- if (typeof predicate !== 'function') {
17940
- throw new TypeError('predicate must be a function');
17941
- }
17942
- var list = Object(this);
17943
- var length = list.length >>> 0;
17944
- var value;
17945
- for (var i = 0; i < length; i++) {
17946
- value = list[i];
17947
- if (predicate.call(thisArg, value, i, list)) {
17948
- return i;
17949
- }
17950
- }
17951
- return -1;
17952
- }
17953
- });
17954
- }
17955
18263
  function _pollyfillElementsFromPoint() {
17956
18264
  if (document.elementsFromPoint) {
17957
18265
  return document.elementsFromPoint;
@@ -17995,150 +18303,6 @@
17995
18303
  if (typeof window.addEventListener === 'function') {
17996
18304
  document.elementsFromPoint = _pollyfillElementsFromPoint();
17997
18305
  }
17998
- if (!Array.prototype.includes) {
17999
- Object.defineProperty(Array.prototype, 'includes', {
18000
- value: function value(searchElement) {
18001
- var O = Object(this);
18002
- var len = parseInt(O.length, 10) || 0;
18003
- if (len === 0) {
18004
- return false;
18005
- }
18006
- var n2 = parseInt(arguments[1], 10) || 0;
18007
- var k;
18008
- if (n2 >= 0) {
18009
- k = n2;
18010
- } else {
18011
- k = len + n2;
18012
- if (k < 0) {
18013
- k = 0;
18014
- }
18015
- }
18016
- var currentElement;
18017
- while (k < len) {
18018
- currentElement = O[k];
18019
- if (searchElement === currentElement || searchElement !== searchElement && currentElement !== currentElement) {
18020
- return true;
18021
- }
18022
- k++;
18023
- }
18024
- return false;
18025
- }
18026
- });
18027
- }
18028
- if (!Array.prototype.some) {
18029
- Object.defineProperty(Array.prototype, 'some', {
18030
- value: function value(fun) {
18031
- if (this == null) {
18032
- throw new TypeError('Array.prototype.some called on null or undefined');
18033
- }
18034
- if (typeof fun !== 'function') {
18035
- throw new TypeError();
18036
- }
18037
- var t = Object(this);
18038
- var len = t.length >>> 0;
18039
- var thisArg = arguments.length >= 2 ? arguments[1] : void 0;
18040
- for (var i = 0; i < len; i++) {
18041
- if (i in t && fun.call(thisArg, t[i], i, t)) {
18042
- return true;
18043
- }
18044
- }
18045
- return false;
18046
- }
18047
- });
18048
- }
18049
- if (!Array.from) {
18050
- Object.defineProperty(Array, 'from', {
18051
- value: function() {
18052
- var toStr = Object.prototype.toString;
18053
- var isCallable = function isCallable(fn) {
18054
- return typeof fn === 'function' || toStr.call(fn) === '[object Function]';
18055
- };
18056
- var toInteger = function toInteger(value) {
18057
- var number = Number(value);
18058
- if (isNaN(number)) {
18059
- return 0;
18060
- }
18061
- if (number === 0 || !isFinite(number)) {
18062
- return number;
18063
- }
18064
- return (number > 0 ? 1 : -1) * Math.floor(Math.abs(number));
18065
- };
18066
- var maxSafeInteger = Math.pow(2, 53) - 1;
18067
- var toLength = function toLength(value) {
18068
- var len = toInteger(value);
18069
- return Math.min(Math.max(len, 0), maxSafeInteger);
18070
- };
18071
- return function from(arrayLike) {
18072
- var C = this;
18073
- var items = Object(arrayLike);
18074
- if (arrayLike == null) {
18075
- throw new TypeError('Array.from requires an array-like object - not null or undefined');
18076
- }
18077
- var mapFn = arguments.length > 1 ? arguments[1] : void 0;
18078
- var T;
18079
- if (typeof mapFn !== 'undefined') {
18080
- if (!isCallable(mapFn)) {
18081
- throw new TypeError('Array.from: when provided, the second argument must be a function');
18082
- }
18083
- if (arguments.length > 2) {
18084
- T = arguments[2];
18085
- }
18086
- }
18087
- var len = toLength(items.length);
18088
- var A = isCallable(C) ? Object(new C(len)) : new Array(len);
18089
- var k = 0;
18090
- var kValue;
18091
- while (k < len) {
18092
- kValue = items[k];
18093
- if (mapFn) {
18094
- A[k] = typeof T === 'undefined' ? mapFn(kValue, k) : mapFn.call(T, kValue, k);
18095
- } else {
18096
- A[k] = kValue;
18097
- }
18098
- k += 1;
18099
- }
18100
- A.length = len;
18101
- return A;
18102
- };
18103
- }()
18104
- });
18105
- }
18106
- if (!String.prototype.includes) {
18107
- String.prototype.includes = function(search, start) {
18108
- if (typeof start !== 'number') {
18109
- start = 0;
18110
- }
18111
- if (start + search.length > this.length) {
18112
- return false;
18113
- } else {
18114
- return this.indexOf(search, start) !== -1;
18115
- }
18116
- };
18117
- }
18118
- if (!Array.prototype.flat) {
18119
- Object.defineProperty(Array.prototype, 'flat', {
18120
- configurable: true,
18121
- value: function flat() {
18122
- var depth = isNaN(arguments[0]) ? 1 : Number(arguments[0]);
18123
- return depth ? Array.prototype.reduce.call(this, function(acc, cur) {
18124
- if (Array.isArray(cur)) {
18125
- acc.push.apply(acc, flat.call(cur, depth - 1));
18126
- } else {
18127
- acc.push(cur);
18128
- }
18129
- return acc;
18130
- }, []) : Array.prototype.slice.call(this);
18131
- },
18132
- writable: true
18133
- });
18134
- }
18135
- if (window.Node && !('isConnected' in window.Node.prototype)) {
18136
- Object.defineProperty(window.Node.prototype, 'isConnected', {
18137
- get: function get() {
18138
- return !this.ownerDocument || !(this.ownerDocument.compareDocumentPosition(this) & this.DOCUMENT_POSITION_DISCONNECTED);
18139
- }
18140
- });
18141
- }
18142
18306
  function uniqueArray(arr1, arr2) {
18143
18307
  return arr1.concat(arr2).filter(function(elem, pos, arr) {
18144
18308
  return arr.indexOf(elem) === pos;
@@ -24148,16 +24312,16 @@
24148
24312
  }
24149
24313
  }
24150
24314
  function getAngleInDegreesFromMatrixTransform(transformFnValue) {
24151
- var values = transformFnValue.split(',');
24152
- if (values.length <= 6) {
24153
- var _values = _slicedToArray(values, 2), a2 = _values[0], b3 = _values[1];
24315
+ var values2 = transformFnValue.split(',');
24316
+ if (values2.length <= 6) {
24317
+ var _values = _slicedToArray(values2, 2), a2 = _values[0], b3 = _values[1];
24154
24318
  var radians = Math.atan2(parseFloat(b3), parseFloat(a2));
24155
24319
  return convertRadToDeg(radians);
24156
24320
  }
24157
- var sinB = parseFloat(values[8]);
24321
+ var sinB = parseFloat(values2[8]);
24158
24322
  var b2 = Math.asin(sinB);
24159
24323
  var cosB = Math.cos(b2);
24160
- var rotateZRadians = Math.acos(parseFloat(values[0]) / cosB);
24324
+ var rotateZRadians = Math.acos(parseFloat(values2[0]) / cosB);
24161
24325
  return convertRadToDeg(rotateZRadians);
24162
24326
  }
24163
24327
  function convertRadToDeg(radians) {