paraqeet 0.10.0 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Bootstrap v5.3.0-alpha3 (https://getbootstrap.com/)
2
+ * Bootstrap v5.3.0 (https://getbootstrap.com/)
3
3
  * Copyright 2011-2023 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
4
4
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
5
5
  */
@@ -311,6 +311,7 @@
311
311
  * --------------------------------------------------------------------------
312
312
  */
313
313
 
314
+
314
315
  /**
315
316
  * Constants
316
317
  */
@@ -589,6 +590,7 @@
589
590
  * --------------------------------------------------------------------------
590
591
  */
591
592
 
593
+
592
594
  /**
593
595
  * Class definition
594
596
  */
@@ -641,11 +643,12 @@
641
643
  * --------------------------------------------------------------------------
642
644
  */
643
645
 
646
+
644
647
  /**
645
648
  * Constants
646
649
  */
647
650
 
648
- const VERSION = '5.3.0-alpha2';
651
+ const VERSION = '5.3.0';
649
652
 
650
653
  /**
651
654
  * Class definition
@@ -708,6 +711,7 @@
708
711
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
709
712
  * --------------------------------------------------------------------------
710
713
  */
714
+
711
715
  const getSelector = element => {
712
716
  let selector = element.getAttribute('data-bs-target');
713
717
  if (!selector || selector === '#') {
@@ -796,6 +800,7 @@
796
800
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
797
801
  * --------------------------------------------------------------------------
798
802
  */
803
+
799
804
  const enableDismissTrigger = (component, method = 'hide') => {
800
805
  const clickEvent = `click.dismiss${component.EVENT_KEY}`;
801
806
  const name = component.NAME;
@@ -821,6 +826,7 @@
821
826
  * --------------------------------------------------------------------------
822
827
  */
823
828
 
829
+
824
830
  /**
825
831
  * Constants
826
832
  */
@@ -895,6 +901,7 @@
895
901
  * --------------------------------------------------------------------------
896
902
  */
897
903
 
904
+
898
905
  /**
899
906
  * Constants
900
907
  */
@@ -958,6 +965,7 @@
958
965
  * --------------------------------------------------------------------------
959
966
  */
960
967
 
968
+
961
969
  /**
962
970
  * Constants
963
971
  */
@@ -1077,6 +1085,7 @@
1077
1085
  * --------------------------------------------------------------------------
1078
1086
  */
1079
1087
 
1088
+
1080
1089
  /**
1081
1090
  * Constants
1082
1091
  */
@@ -1449,6 +1458,7 @@
1449
1458
  * --------------------------------------------------------------------------
1450
1459
  */
1451
1460
 
1461
+
1452
1462
  /**
1453
1463
  * Constants
1454
1464
  */
@@ -2126,7 +2136,6 @@
2126
2136
  }
2127
2137
 
2128
2138
  if (!contains(state.elements.popper, arrowElement)) {
2129
-
2130
2139
  return;
2131
2140
  }
2132
2141
 
@@ -2268,7 +2277,6 @@
2268
2277
  adaptive = _options$adaptive === void 0 ? true : _options$adaptive,
2269
2278
  _options$roundOffsets = options.roundOffsets,
2270
2279
  roundOffsets = _options$roundOffsets === void 0 ? true : _options$roundOffsets;
2271
-
2272
2280
  var commonStyles = {
2273
2281
  placement: getBasePlacement(state.placement),
2274
2282
  variation: getVariation(state.placement),
@@ -3336,8 +3344,7 @@
3336
3344
 
3337
3345
  state.orderedModifiers = orderedModifiers.filter(function (m) {
3338
3346
  return m.enabled;
3339
- }); // Validate the provided modifiers so that the consumer will get warned
3340
-
3347
+ });
3341
3348
  runModifierEffects();
3342
3349
  return instance.update();
3343
3350
  },
@@ -3357,7 +3364,6 @@
3357
3364
  // anymore
3358
3365
 
3359
3366
  if (!areValidElements(reference, popper)) {
3360
-
3361
3367
  return;
3362
3368
  } // Store the reference and popper rects to be read by modifiers
3363
3369
 
@@ -3382,7 +3388,6 @@
3382
3388
  });
3383
3389
 
3384
3390
  for (var index = 0; index < state.orderedModifiers.length; index++) {
3385
-
3386
3391
  if (state.reset === true) {
3387
3392
  state.reset = false;
3388
3393
  index = -1;
@@ -3420,7 +3425,6 @@
3420
3425
  };
3421
3426
 
3422
3427
  if (!areValidElements(reference, popper)) {
3423
-
3424
3428
  return instance;
3425
3429
  }
3426
3430
 
@@ -3435,11 +3439,11 @@
3435
3439
  // one.
3436
3440
 
3437
3441
  function runModifierEffects() {
3438
- state.orderedModifiers.forEach(function (_ref3) {
3439
- var name = _ref3.name,
3440
- _ref3$options = _ref3.options,
3441
- options = _ref3$options === void 0 ? {} : _ref3$options,
3442
- effect = _ref3.effect;
3442
+ state.orderedModifiers.forEach(function (_ref) {
3443
+ var name = _ref.name,
3444
+ _ref$options = _ref.options,
3445
+ options = _ref$options === void 0 ? {} : _ref$options,
3446
+ effect = _ref.effect;
3443
3447
 
3444
3448
  if (typeof effect === 'function') {
3445
3449
  var cleanupFn = effect({
@@ -3527,6 +3531,7 @@
3527
3531
  * --------------------------------------------------------------------------
3528
3532
  */
3529
3533
 
3534
+
3530
3535
  /**
3531
3536
  * Constants
3532
3537
  */
@@ -3894,6 +3899,7 @@
3894
3899
  * --------------------------------------------------------------------------
3895
3900
  */
3896
3901
 
3902
+
3897
3903
  /**
3898
3904
  * Constants
3899
3905
  */
@@ -4018,6 +4024,7 @@
4018
4024
  * --------------------------------------------------------------------------
4019
4025
  */
4020
4026
 
4027
+
4021
4028
  /**
4022
4029
  * Constants
4023
4030
  */
@@ -4116,6 +4123,7 @@
4116
4123
  * --------------------------------------------------------------------------
4117
4124
  */
4118
4125
 
4126
+
4119
4127
  /**
4120
4128
  * Constants
4121
4129
  */
@@ -4213,6 +4221,7 @@
4213
4221
  * --------------------------------------------------------------------------
4214
4222
  */
4215
4223
 
4224
+
4216
4225
  /**
4217
4226
  * Constants
4218
4227
  */
@@ -4517,6 +4526,7 @@
4517
4526
  * --------------------------------------------------------------------------
4518
4527
  */
4519
4528
 
4529
+
4520
4530
  /**
4521
4531
  * Constants
4522
4532
  */
@@ -4747,34 +4757,6 @@
4747
4757
  * --------------------------------------------------------------------------
4748
4758
  */
4749
4759
 
4750
- const uriAttributes = new Set(['background', 'cite', 'href', 'itemtype', 'longdesc', 'poster', 'src', 'xlink:href']);
4751
-
4752
- /**
4753
- * A pattern that recognizes a commonly useful subset of URLs that are safe.
4754
- *
4755
- * Shout-out to Angular https://github.com/angular/angular/blob/12.2.x/packages/core/src/sanitization/url_sanitizer.ts
4756
- */
4757
- const SAFE_URL_PATTERN = /^(?:(?:https?|mailto|ftp|tel|file|sms):|[^#&/:?]*(?:[#/?]|$))/i;
4758
-
4759
- /**
4760
- * A pattern that matches safe data URLs. Only matches image, video and audio types.
4761
- *
4762
- * Shout-out to Angular https://github.com/angular/angular/blob/12.2.x/packages/core/src/sanitization/url_sanitizer.ts
4763
- */
4764
- const DATA_URL_PATTERN = /^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i;
4765
- const allowedAttribute = (attribute, allowedAttributeList) => {
4766
- const attributeName = attribute.nodeName.toLowerCase();
4767
- if (allowedAttributeList.includes(attributeName)) {
4768
- if (uriAttributes.has(attributeName)) {
4769
- return Boolean(SAFE_URL_PATTERN.test(attribute.nodeValue) || DATA_URL_PATTERN.test(attribute.nodeValue));
4770
- }
4771
- return true;
4772
- }
4773
-
4774
- // Check if a regular expression validates the attribute.
4775
- return allowedAttributeList.filter(attributeRegex => attributeRegex instanceof RegExp).some(regex => regex.test(attributeName));
4776
- };
4777
-
4778
4760
  // js-docs-start allow-list
4779
4761
  const ARIA_ATTRIBUTE_PATTERN = /^aria-[\w-]*$/i;
4780
4762
  const DefaultAllowlist = {
@@ -4812,6 +4794,28 @@
4812
4794
  };
4813
4795
  // js-docs-end allow-list
4814
4796
 
4797
+ const uriAttributes = new Set(['background', 'cite', 'href', 'itemtype', 'longdesc', 'poster', 'src', 'xlink:href']);
4798
+
4799
+ /**
4800
+ * A pattern that recognizes URLs that are safe wrt. XSS in URL navigation
4801
+ * contexts.
4802
+ *
4803
+ * Shout-out to Angular https://github.com/angular/angular/blob/15.2.8/packages/core/src/sanitization/url_sanitizer.ts#L38
4804
+ */
4805
+ // eslint-disable-next-line unicorn/better-regex
4806
+ const SAFE_URL_PATTERN = /^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i;
4807
+ const allowedAttribute = (attribute, allowedAttributeList) => {
4808
+ const attributeName = attribute.nodeName.toLowerCase();
4809
+ if (allowedAttributeList.includes(attributeName)) {
4810
+ if (uriAttributes.has(attributeName)) {
4811
+ return Boolean(SAFE_URL_PATTERN.test(attribute.nodeValue));
4812
+ }
4813
+ return true;
4814
+ }
4815
+
4816
+ // Check if a regular expression validates the attribute.
4817
+ return allowedAttributeList.filter(attributeRegex => attributeRegex instanceof RegExp).some(regex => regex.test(attributeName));
4818
+ };
4815
4819
  function sanitizeHtml(unsafeHtml, allowList, sanitizeFunction) {
4816
4820
  if (!unsafeHtml.length) {
4817
4821
  return unsafeHtml;
@@ -4846,6 +4850,7 @@
4846
4850
  * --------------------------------------------------------------------------
4847
4851
  */
4848
4852
 
4853
+
4849
4854
  /**
4850
4855
  * Constants
4851
4856
  */
@@ -4981,6 +4986,7 @@
4981
4986
  * --------------------------------------------------------------------------
4982
4987
  */
4983
4988
 
4989
+
4984
4990
  /**
4985
4991
  * Constants
4986
4992
  */
@@ -5492,6 +5498,7 @@
5492
5498
  * --------------------------------------------------------------------------
5493
5499
  */
5494
5500
 
5501
+
5495
5502
  /**
5496
5503
  * Constants
5497
5504
  */
@@ -5572,6 +5579,7 @@
5572
5579
  * --------------------------------------------------------------------------
5573
5580
  */
5574
5581
 
5582
+
5575
5583
  /**
5576
5584
  * Constants
5577
5585
  */
@@ -5750,11 +5758,11 @@
5750
5758
  if (!anchor.hash || isDisabled(anchor)) {
5751
5759
  continue;
5752
5760
  }
5753
- const observableSection = SelectorEngine.findOne(anchor.hash, this._element);
5761
+ const observableSection = SelectorEngine.findOne(decodeURI(anchor.hash), this._element);
5754
5762
 
5755
5763
  // ensure that the observableSection exists & is visible
5756
5764
  if (isVisible(observableSection)) {
5757
- this._targetLinks.set(anchor.hash, anchor);
5765
+ this._targetLinks.set(decodeURI(anchor.hash), anchor);
5758
5766
  this._observableSections.set(anchor.hash, observableSection);
5759
5767
  }
5760
5768
  }
@@ -5831,6 +5839,7 @@
5831
5839
  * --------------------------------------------------------------------------
5832
5840
  */
5833
5841
 
5842
+
5834
5843
  /**
5835
5844
  * Constants
5836
5845
  */
@@ -6092,6 +6101,7 @@
6092
6101
  * --------------------------------------------------------------------------
6093
6102
  */
6094
6103
 
6104
+
6095
6105
  /**
6096
6106
  * Constants
6097
6107
  */
@@ -6274,6 +6284,7 @@
6274
6284
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
6275
6285
  * --------------------------------------------------------------------------
6276
6286
  */
6287
+
6277
6288
  const index_umd = {
6278
6289
  Alert,
6279
6290
  Button,