@ppg_pl/pallete 2.0.23 → 2.0.26

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.
Files changed (90) hide show
  1. package/README.md +12 -5
  2. package/dist/cjs/{index-53e78fc8.js → index-d74cbc0d.js} +33 -2
  3. package/dist/cjs/index-d74cbc0d.js.map +1 -0
  4. package/dist/cjs/loader.cjs.js +2 -2
  5. package/dist/cjs/loader.cjs.js.map +1 -1
  6. package/dist/cjs/my-backdrop_8.cjs.entry.js +1651 -1286
  7. package/dist/cjs/my-backdrop_8.cjs.entry.js.map +1 -1
  8. package/dist/cjs/pallete.cjs.js +2 -2
  9. package/dist/cjs/pallete.cjs.js.map +1 -1
  10. package/dist/collection/components/my-backdrop/my-backdrop.css +7 -0
  11. package/dist/collection/components/my-colorbox/my-colorbox.css +7 -0
  12. package/dist/collection/components/my-colorinfo/assets/Shape.svg +4 -0
  13. package/dist/collection/components/my-colorinfo/assets/close.png +0 -0
  14. package/dist/collection/components/my-colorinfo/assets/shape.png +0 -0
  15. package/dist/collection/components/my-colorinfo/my-colorinfo.css +350 -0
  16. package/dist/collection/components/my-colorinfo/my-colorinfo.js +135 -1
  17. package/dist/collection/components/my-colorinfo/my-colorinfo.js.map +1 -1
  18. package/dist/collection/components/my-component/my-component.js +68 -1
  19. package/dist/collection/components/my-component/my-component.js.map +1 -1
  20. package/dist/collection/components/my-modal/my-modal.css +8 -239
  21. package/dist/collection/components/my-modal/my-modal.js +42 -2
  22. package/dist/collection/components/my-modal/my-modal.js.map +1 -1
  23. package/dist/collection/components/my-search/my-search.css +7 -0
  24. package/dist/collection/components/my-slider/index.js +9 -6
  25. package/dist/collection/components/my-slider/index.js.map +1 -1
  26. package/dist/collection/components/my-slider/my-slider.css +12 -3
  27. package/dist/collection/types.js.map +1 -1
  28. package/dist/components/index3.js +10 -7
  29. package/dist/components/index3.js.map +1 -1
  30. package/dist/components/my-backdrop2.js +1 -1
  31. package/dist/components/my-backdrop2.js.map +1 -1
  32. package/dist/components/my-colorbox2.js +1 -1
  33. package/dist/components/my-colorbox2.js.map +1 -1
  34. package/dist/components/my-colorinfo2.js +46 -3
  35. package/dist/components/my-colorinfo2.js.map +1 -1
  36. package/dist/components/my-component.js +15 -3
  37. package/dist/components/my-component.js.map +1 -1
  38. package/dist/components/my-modal2.js +1589 -1274
  39. package/dist/components/my-modal2.js.map +1 -1
  40. package/dist/components/my-search2.js +1 -1
  41. package/dist/components/my-search2.js.map +1 -1
  42. package/dist/esm/{index-b0145abf.js → index-45a30349.js} +33 -2
  43. package/dist/esm/index-45a30349.js.map +1 -0
  44. package/dist/esm/loader.js +3 -3
  45. package/dist/esm/loader.js.map +1 -1
  46. package/dist/esm/my-backdrop_8.entry.js +1651 -1286
  47. package/dist/esm/my-backdrop_8.entry.js.map +1 -1
  48. package/dist/esm/pallete.js +3 -3
  49. package/dist/esm/pallete.js.map +1 -1
  50. package/dist/pallete/assets/Shape.svg +4 -0
  51. package/dist/pallete/assets/shape.png +0 -0
  52. package/dist/pallete/p-2394bcec.entry.js +2 -0
  53. package/dist/pallete/p-2394bcec.entry.js.map +1 -0
  54. package/dist/pallete/p-a3449132.js +3 -0
  55. package/dist/pallete/p-a3449132.js.map +1 -0
  56. package/dist/pallete/pallete.css +1 -1
  57. package/dist/pallete/pallete.esm.js +1 -1
  58. package/dist/pallete/pallete.esm.js.map +1 -1
  59. package/dist/types/components/my-colorinfo/my-colorinfo.d.ts +11 -1
  60. package/dist/types/components/my-component/my-component.d.ts +9 -0
  61. package/dist/types/components/my-modal/my-modal.d.ts +3 -1
  62. package/dist/types/components.d.ts +24 -2
  63. package/dist/types/types.d.ts +4 -0
  64. package/package.json +5 -4
  65. package/www/build/assets/Shape.svg +4 -0
  66. package/www/build/assets/shape.png +0 -0
  67. package/www/build/p-2394bcec.entry.js +2 -0
  68. package/www/build/p-2394bcec.entry.js.map +1 -0
  69. package/www/build/p-a3449132.js +3 -0
  70. package/www/build/p-a3449132.js.map +1 -0
  71. package/www/build/p-c5910eb7.js +2 -0
  72. package/www/build/p-f8a0208d.css +1 -0
  73. package/www/build/pallete.css +1 -1
  74. package/www/build/pallete.esm.js +1 -1
  75. package/www/build/pallete.esm.js.map +1 -1
  76. package/www/index.html +62 -10
  77. package/dist/cjs/index-53e78fc8.js.map +0 -1
  78. package/dist/esm/index-b0145abf.js.map +0 -1
  79. package/dist/pallete/p-bdb05818.entry.js +0 -2
  80. package/dist/pallete/p-bdb05818.entry.js.map +0 -1
  81. package/dist/pallete/p-c6a049a2.js +0 -3
  82. package/dist/pallete/p-c6a049a2.js.map +0 -1
  83. package/www/build/p-bdb05818.entry.js +0 -2
  84. package/www/build/p-bdb05818.entry.js.map +0 -1
  85. package/www/build/p-c6a049a2.js +0 -3
  86. package/www/build/p-c6a049a2.js.map +0 -1
  87. /package/www/{build/assets → assets}/fonts/Galatea-Regular.eot +0 -0
  88. /package/www/{build/assets → assets}/fonts/Galatea-Regular.ttf +0 -0
  89. /package/www/{build/assets → assets}/fonts/Galatea-Regular.woff +0 -0
  90. /package/www/{build/assets → assets}/fonts/Galatea-Regular.woff2 +0 -0
@@ -1,6 +1,6 @@
1
- import { r as registerInstance, h, c as createEvent, g as getAssetPath, a as getElement } from './index-b0145abf.js';
1
+ import { r as registerInstance, h, c as createEvent, g as getAssetPath, a as getElement } from './index-45a30349.js';
2
2
 
3
- const myBackdropCss = ".pallete-wrapper *{font-family:\"Galatea\", sans-serif}my-backdrop{width:100%;height:100%;background-color:rgba(0, 0, 0, 0.7);position:fixed;z-index:100;left:0;top:0}";
3
+ const myBackdropCss = "@font-face{font-family:\"Galatea\";src:url(\"/assets/fonts/Galatea-Regular.woff2\") format(\"woff2\"), url(\"/assets/fonts/Galatea-Regular.woff\") format(\"woff\"), url(\"/assets/fonts/Galatea-Regular.ttf\") format(\"truetype\");font-weight:normal;font-style:normal;font-display:swap}.pallete-wrapper *{font-family:\"Galatea\", sans-serif}my-backdrop{width:100%;height:100%;background-color:rgba(0, 0, 0, 0.7);position:fixed;z-index:100;left:0;top:0}";
4
4
 
5
5
  const MyBackdrop = class {
6
6
  constructor(hostRef) {
@@ -43,7 +43,7 @@ class API {
43
43
  }
44
44
  const ApiService = new API();
45
45
 
46
- const myColorboxCss = ".pallete-wrapper *{font-family:\"Galatea\", sans-serif}.my-color-box{width:125px;height:125px;display:block;margin-bottom:5px;cursor:pointer;display:flex;flex-direction:column;justify-content:flex-end;position:relative}@media (max-width: 1024px){.my-color-box{width:65px;height:65px}}.my-color-box .color-name{width:100%;background-color:#fff;padding:15px 0px 10px;border-top-left-radius:15px;border-top-right-radius:15px;opacity:0;transition:0.3s opacity ease-in-out;font-size:10px;color:#232323;text-transform:lowercase}.my-color-box.active .color-name{opacity:1}.my-color-box.categoryactive{width:120px;height:115px}.my-color-box.categoryactive .color-name{opacity:1}@media (max-width: 1024px){.my-color-box.categoryactive{width:72px;height:72px}}.my-color-box:hover .color-name{opacity:1}";
46
+ const myColorboxCss = "@font-face{font-family:\"Galatea\";src:url(\"/assets/fonts/Galatea-Regular.woff2\") format(\"woff2\"), url(\"/assets/fonts/Galatea-Regular.woff\") format(\"woff\"), url(\"/assets/fonts/Galatea-Regular.ttf\") format(\"truetype\");font-weight:normal;font-style:normal;font-display:swap}.pallete-wrapper *{font-family:\"Galatea\", sans-serif}.my-color-box{width:125px;height:125px;display:block;margin-bottom:5px;cursor:pointer;display:flex;flex-direction:column;justify-content:flex-end;position:relative}@media (max-width: 1024px){.my-color-box{width:65px;height:65px}}.my-color-box .color-name{width:100%;background-color:#fff;padding:15px 0px 10px;border-top-left-radius:15px;border-top-right-radius:15px;opacity:0;transition:0.3s opacity ease-in-out;font-size:10px;color:#232323;text-transform:lowercase}.my-color-box.active .color-name{opacity:1}.my-color-box.categoryactive{width:120px;height:115px}.my-color-box.categoryactive .color-name{opacity:1}@media (max-width: 1024px){.my-color-box.categoryactive{width:72px;height:72px}}.my-color-box:hover .color-name{opacity:1}";
47
47
 
48
48
  const MyColorBox = class {
49
49
  constructor(hostRef) {
@@ -89,10 +89,13 @@ const MyColorBox = class {
89
89
  };
90
90
  MyColorBox.style = myColorboxCss;
91
91
 
92
+ const myColorinfoCss = "@font-face{font-family:\"Galatea\";src:url(\"/assets/fonts/Galatea-Regular.woff2\") format(\"woff2\"), url(\"/assets/fonts/Galatea-Regular.woff\") format(\"woff\"), url(\"/assets/fonts/Galatea-Regular.ttf\") format(\"truetype\");font-weight:normal;font-style:normal;font-display:swap}.pallete-wrapper.sc-my-colorinfo *.sc-my-colorinfo{font-family:\"Galatea\", sans-serif}.boxes__box-content.sc-my-colorinfo{width:100%;margin-bottom:5px;height:500px;text-align:left;display:flex;flex-direction:row;justify-content:space-between;position:relative}.boxes__box-content.sc-my-colorinfo .closebtn.sc-my-colorinfo{position:absolute;right:10px;top:10px;width:53px;height:53px;cursor:pointer;object-fit:cover;z-index:9999}@media (max-width: 1024px){.boxes__box-content.sc-my-colorinfo{flex-direction:column-reverse;height:auto}}@media (max-width: 768px){.boxes__box-content.sc-my-colorinfo{margin:0 auto}}.boxes__box-content__info.sc-my-colorinfo{width:40%;padding:50px 40px;position:relative;display:flex;flex-direction:column;justify-content:space-between}@media (max-width: 1024px){.boxes__box-content__info.sc-my-colorinfo{width:100%;padding:15px;min-height:100px}}@media (max-width: 768px){.boxes__box-content__info.sc-my-colorinfo{min-height:auto}}.boxes__box-content__info__header.sc-my-colorinfo{display:flex;flex-direction:column;align-items:flex-start}.boxes__box-content__info.sc-my-colorinfo h2.sc-my-colorinfo{font-size:35px;font-weight:normal;margin-bottom:30px;color:#232323}@media (max-width: 768px){.boxes__box-content__info.sc-my-colorinfo h2.sc-my-colorinfo{font-size:16px;text-align:center;margin-bottom:15px;margin-top:5px}}.boxes__box-content__info.sc-my-colorinfo h4.sc-my-colorinfo{margin-top:0px;margin-bottom:15px;font-size:16px;color:#4c4c4c}.boxes__box-content__info__value.sc-my-colorinfo{display:flex;flex-direction:column;align-items:flex-start;gap:20px}@media (max-width: 1024px){.boxes__box-content__info__value.sc-my-colorinfo{justify-content:flex-start;margin-top:30px}}@media (max-width: 768px){.boxes__box-content__info__value.sc-my-colorinfo{flex-direction:column}}@media (max-width: 768px){.boxes__box-content__info__value-image.sc-my-colorinfo{margin:0 auto;margin-bottom:10px}}.boxes__box-content__info__value-image.sc-my-colorinfo img.sc-my-colorinfo{width:114px;object-fit:cover}@media (max-width: 1024px){.boxes__box-content__info__value-image.sc-my-colorinfo img.sc-my-colorinfo{width:75px}}.boxes__box-content__info__value-product.sc-my-colorinfo{color:#232323;margin-left:10px}@media (max-width: 1024px){.boxes__box-content__info__value-product.sc-my-colorinfo h2.sc-my-colorinfo{font-size:26px;margin:0;margin-right:10px}}@media (max-width: 768px){.boxes__box-content__info__value-product.sc-my-colorinfo h2.sc-my-colorinfo{font-size:16px}}.boxes__box-content__info__value-product.sc-my-colorinfo p.sc-my-colorinfo{font-size:20px;margin-top:0px;margin-bottom:0px}.boxes__box-content__info__value-product.sc-my-colorinfo p.sc-my-colorinfo:last-of-type{margin-bottom:20px}@media (max-width: 1024px){.boxes__box-content__info__value-product.sc-my-colorinfo p.sc-my-colorinfo:last-of-type{margin-bottom:0}}@media (max-width: 768px){.boxes__box-content__info__value-product.sc-my-colorinfo p.sc-my-colorinfo{font-size:10px}}@media (max-width: 1024px){.boxes__box-content__info__value-product.sc-my-colorinfo>div.sc-my-colorinfo{display:flex;justify-content:flex-start;align-items:center}}@media (max-width: 768px){.boxes__box-content__info__value-product.sc-my-colorinfo>div.sc-my-colorinfo{flex-direction:column}}.boxes__box-content__info__tester.sc-my-colorinfo{display:flex;flex-direction:column;gap:15px;width:100%}@media (max-width: 1024px){.boxes__box-content__info__tester.sc-my-colorinfo{text-align:center}}.boxes__box-content__info__tester.sc-my-colorinfo .tester-text.sc-my-colorinfo h2.sc-my-colorinfo{margin:0 0 10px;font-size:18px;font-weight:700}.boxes__box-content__info__tester.sc-my-colorinfo .tester-text.sc-my-colorinfo p.sc-my-colorinfo{margin:0;font-size:14px}.boxes__box-content__info__tester.sc-my-colorinfo .tester-buy.sc-my-colorinfo{display:flex;align-items:center;gap:15px}@media (max-width: 1024px){.boxes__box-content__info__tester.sc-my-colorinfo .tester-buy.sc-my-colorinfo{flex-direction:column}.boxes__box-content__info__tester.sc-my-colorinfo .tester-buy.sc-my-colorinfo button.sc-my-colorinfo{margin:0;max-width:100%}}.boxes__box-content__info__tester.sc-my-colorinfo .price.sc-my-colorinfo{font-size:20px;font-weight:600}.boxes__box-content__slider.sc-my-colorinfo{width:60%;min-width:60%;max-width:60%;position:relative}@media (max-width: 1024px){.boxes__box-content__slider.sc-my-colorinfo{width:100%;display:block;min-width:100%;max-width:100%}}.boxes__box-content__slider.sc-my-colorinfo .color-big-image.sc-my-colorinfo{width:100%;height:100%;object-fit:cover}@media (max-width: 1024px){.boxes__box-content__slider.sc-my-colorinfo .color-big-image.sc-my-colorinfo{height:300px}}.boxes__box-content__white.sc-my-colorinfo .tester-text.sc-my-colorinfo,.boxes__box-content__white.sc-my-colorinfo .tester-buy.sc-my-colorinfo{color:#fff}.boxes__box-content__white.sc-my-colorinfo h2.sc-my-colorinfo{color:#fff}.button.sc-my-colorinfo,a.button.sc-my-colorinfo{background-color:#fff;font-size:16px;box-shadow:0px 10px 20px rgba(0, 0, 0, 0.1);border-radius:22px;padding:10px 35px;color:#232323;text-decoration:none;text-align:center;transition:all 0.7s ease-in-out;border:none;cursor:pointer;display:flex;align-items:center;gap:5px}.button.sc-my-colorinfo .shape-icon.sc-my-colorinfo,a.button.sc-my-colorinfo .shape-icon.sc-my-colorinfo{display:inline-flex}.button.sc-my-colorinfo .shape-icon.sc-my-colorinfo svg.sc-my-colorinfo,a.button.sc-my-colorinfo .shape-icon.sc-my-colorinfo svg.sc-my-colorinfo{display:block}.button.sc-my-colorinfo .shape-icon.sc-my-colorinfo path.sc-my-colorinfo,.button.sc-my-colorinfo .shape-icon.sc-my-colorinfo .shape-icon__path.sc-my-colorinfo,a.button.sc-my-colorinfo .shape-icon.sc-my-colorinfo path.sc-my-colorinfo,a.button.sc-my-colorinfo .shape-icon.sc-my-colorinfo .shape-icon__path.sc-my-colorinfo{fill:currentColor;transition:fill 0.7s ease-in-out}.button.fit.sc-my-colorinfo,a.button.fit.sc-my-colorinfo{padding:10px 15px}.button.sc-my-colorinfo:hover,a.button.sc-my-colorinfo:hover{color:#fff;background-color:#232323}.button.brown.sc-my-colorinfo,a.button.brown.sc-my-colorinfo{background-color:#3c2114;color:#fff}.button.brown.sc-my-colorinfo:hover,a.button.brown.sc-my-colorinfo:hover{color:#fff;background-color:#232323}.button.inverse.sc-my-colorinfo,a.button.inverse.sc-my-colorinfo{background-color:#232323;color:#fff}.button.inverse.sc-my-colorinfo:hover,a.button.inverse.sc-my-colorinfo:hover{color:#232323;background-color:#fff}.button.inverse.sc-my-colorinfo svg.sc-my-colorinfo path.sc-my-colorinfo,a.button.inverse.sc-my-colorinfo svg.sc-my-colorinfo path.sc-my-colorinfo{fill:#fff}.button.sc-my-colorinfo:disabled,a.button.sc-my-colorinfo:disabled{cursor:not-allowed;background-color:white;opacity:0.5}.button.sc-my-colorinfo:disabled.brown,a.button.sc-my-colorinfo:disabled.brown{background-color:black;color:white;opacity:0.5}.button.sc-my-colorinfo:disabled.inverse,a.button.sc-my-colorinfo:disabled.inverse{background-color:black;color:white;opacity:0.5}.button.sc-my-colorinfo:disabled:hover,a.button.sc-my-colorinfo:disabled:hover{background-color:inherit;color:inherit;opacity:0.5}@media (max-width: 1024px){.button.sc-my-colorinfo,a.button.sc-my-colorinfo{max-width:150px;font-size:13px;padding:12px 25px}}@media (max-width: 768px){.button.sc-my-colorinfo,a.button.sc-my-colorinfo{margin:0 auto}}.divider.sc-my-colorinfo{border:1px solid #4c4c4c;opacity:0.2;margin-bottom:20px}@media (max-width: 768px){.divider.sc-my-colorinfo{margin:10px 0px;display:none}}";
93
+
92
94
  const MyColorInfo = class {
93
95
  constructor(hostRef) {
94
96
  registerInstance(this, hostRef);
95
97
  this.closeInfoBox = createEvent(this, "closeInfoBox", 7);
98
+ this.addToBasket = createEvent(this, "addToBasket", 7);
96
99
  this.goToProduct = () => {
97
100
  var _a;
98
101
  this.currentColor &&
@@ -128,14 +131,48 @@ const MyColorInfo = class {
128
131
  this.capitalizeFirstLetter = (string) => {
129
132
  return string.charAt(0).toUpperCase() + string.slice(1).toLocaleLowerCase();
130
133
  };
134
+ this.isVeryLightBackground = () => {
135
+ var _a, _b;
136
+ if (this.currentColor.imageInsteadHex)
137
+ return true;
138
+ const hex = (_b = (_a = this.currentColor.hex) === null || _a === void 0 ? void 0 : _a.replace('#', '')) !== null && _b !== void 0 ? _b : '';
139
+ if (hex.length !== 6 && hex.length !== 3)
140
+ return false;
141
+ const r = parseInt(hex.length === 3 ? hex[0] + hex[0] : hex.slice(0, 2), 16) / 255;
142
+ const g = parseInt(hex.length === 3 ? hex[1] + hex[1] : hex.slice(2, 4), 16) / 255;
143
+ const b = parseInt(hex.length === 3 ? hex[2] + hex[2] : hex.slice(4, 6), 16) / 255;
144
+ const luminance = 0.299 * r + 0.587 * g + 0.114 * b;
145
+ return luminance > 0.96; // only near-white: dark button; rest: white button
146
+ };
147
+ this.getButtonClass = () => {
148
+ if (this.currentColor.imageInsteadHex)
149
+ return 'brown';
150
+ return this.isVeryLightBackground() ? 'inverse' : '';
151
+ };
152
+ this.handleAddToBasket = () => {
153
+ var _a;
154
+ if (!((_a = this.availableTesters) === null || _a === void 0 ? void 0 : _a.id_product_attribute))
155
+ return;
156
+ this.buttonBlocked = true;
157
+ this.addToBasket.emit({
158
+ id: this.availableTesters.id_product_attribute,
159
+ });
160
+ setTimeout(() => {
161
+ this.buttonBlocked = false;
162
+ }, 10000);
163
+ };
131
164
  this.currentColor = undefined;
132
165
  this.shop = undefined;
133
166
  this.product = undefined;
134
167
  this.baselink = undefined;
168
+ this.availableTesters = undefined;
169
+ this.price = undefined;
135
170
  this.data = null;
136
171
  this.isMobile = false;
137
172
  this.infoBoxWidth = undefined;
138
173
  this.closeImage = 'close.png';
174
+ this.shapeImage = 'Shape.svg';
175
+ this.buttonBlocked = false;
139
176
  }
140
177
  render() {
141
178
  var _a;
@@ -144,9 +181,11 @@ const MyColorInfo = class {
144
181
  maxWidth: `${this.infoBoxWidth && this.infoBoxWidth - 4}px`,
145
182
  } }, this.isMobile && h("img", { class: 'closebtn', onClick: this.onCloseButtonClick, src: getAssetPath(`./assets/${this.closeImage}`), alt: "closebtn" }), h("div", { class: "boxes__box-content__info", style: {
146
183
  maxWidth: this.isMobile ? `${this.infoBoxWidth && this.infoBoxWidth - 35}px` : ``,
147
- } }, !this.isMobile && h("img", { class: 'closebtn', onClick: this.onCloseButtonClick, src: getAssetPath(`./assets/${this.closeImage}`), alt: "closebtn" }), h("h2", null, this.capitalizeFirstLetter(this.currentColor.name)), !this.isMobile && h("h4", null, this.currentColor.number), h("div", { class: "boxes__box-content__info__value" }, h("div", { class: "boxes__box-content__info__value-product" }, this.isMobile && h("div", { class: 'divider' }), this.currentColor && ((_a = this.currentColor.links) === null || _a === void 0 ? void 0 : _a.find((link) => (link === null || link === void 0 ? void 0 : link.shop) === this.shop)) && (h("a", { onClick: this.goToProduct, href: this.getHref(), class: `button ${this.currentColor.imageInsteadHex ? 'brown' : this.currentColor.buttonInverse ? 'inverse' : ''}` }, "wybierz kolor"))))), h("div", { class: "boxes__box-content__slider" }, this.renderSliderOrImage())));
184
+ } }, h("div", { class: "boxes__box-content__info__header" }, !this.isMobile && h("img", { class: 'closebtn', onClick: this.onCloseButtonClick, src: getAssetPath(`./assets/${this.closeImage}`), alt: "closebtn" }), h("h2", null, this.capitalizeFirstLetter(this.currentColor.name)), !this.isMobile && h("h4", null, this.currentColor.number), this.currentColor && ((_a = this.currentColor.links) === null || _a === void 0 ? void 0 : _a.find((link) => (link === null || link === void 0 ? void 0 : link.shop) === this.shop)) && (h("a", { onClick: this.goToProduct, href: this.getHref(), class: `button ${this.getButtonClass()}` }, "wybierz kolor"))), h("div", { class: "boxes__box-content__info__value" }, h("div", { class: "divider" }), h("div", { class: "boxes__box-content__info__tester" }, ' ', h("div", { class: "divider" }), h("div", { class: "tester-text" }, h("h2", null, "Zam\u00F3w tester"), h("p", null, "Sprawd\u017A go na swojej \u015Bcianie.")), h("div", { class: "tester-buy" }, h("div", { class: "price" }, this.price ? `${this.price} zł` : ''), h("button", { class: `button fit ${this.getButtonClass()} ${!this.availableTesters ? 'disabled' : ''}`, onClick: this.handleAddToBasket, disabled: !this.availableTesters || this.buttonBlocked }, h("span", { class: "shape-icon", "aria-hidden": "true" }, h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "15", height: "16", viewBox: "0 0 15 16" }, h("path", { class: "shape-icon__path", transform: "translate(0.0867462 0)", d: "M13.246571 12.763281L11.931726 4.961875C11.801879 4.1936703 11.13567 3.6319427 10.35657 3.63375L9.7429771 3.63375L9.7429771 3.1025C9.7429771 1.3890365 8.35394 0 6.6404767 0C4.9270134 0 3.537977 1.3890365 3.537977 3.1025L3.537977 3.63375L2.9217269 3.63375C2.1426277 3.6319427 1.4764187 4.1936703 1.3465706 4.961875L0.034383144 12.763281C-0.086738147 13.483807 0.11555123 14.221112 0.58740741 14.778946C1.0592636 15.336781 1.7528107 15.658594 2.4834456 15.658594L10.797508 15.658594C11.528143 15.658594 12.22169 15.336781 12.693546 14.778946C13.165402 14.221112 13.367692 13.483807 13.246571 12.763281L13.246571 12.763281ZM4.3348517 3.0892186C4.3348517 1.8158572 5.3671155 0.78359371 6.6404767 0.78359371C7.9138384 0.78359371 8.9461021 1.8158572 8.9461021 3.0892186L8.9461021 3.6204686L4.3348517 3.6204686L4.3348517 3.0892186ZM12.08579 14.264063C11.765244 14.643165 11.293964 14.86172 10.797508 14.86172L2.4834456 14.86172C1.9871488 14.862442 1.5158025 14.644215 1.195269 14.265309C0.87473541 13.886404 0.73765546 13.385406 0.82063317 12.896093L2.1248519 5.092031C2.1891608 4.703371 2.5278175 4.4200282 2.9217269 4.4252396L3.5353208 4.4252396L3.5353208 5.5834374C3.5353208 5.8034883 3.7137072 5.9818749 3.9337583 5.9818749C4.1538091 5.9818749 4.3321958 5.8034883 4.3321958 5.5834374L4.3321958 4.4252396L8.9461021 4.4252396L8.9461021 5.5834374C8.9461021 5.8034883 9.1244888 5.9818749 9.3445396 5.9818749C9.5645905 5.9818749 9.7429771 5.8034883 9.7429771 5.5834374L9.7429771 4.4252396L10.359227 4.4252396C10.753137 4.4200282 11.091793 4.703371 11.156102 5.092031L12.46032 12.896093C12.542204 13.384947 12.40527 13.885097 12.08579 14.264063L12.08579 14.264063Z" }))), this.buttonBlocked ? 'Dodano do koszyka…' : !this.availableTesters ? 'Tester obecnie niedostępny' : 'Dodaj do koszyka'))))), h("div", { class: "boxes__box-content__slider" }, this.renderSliderOrImage())));
148
185
  }
186
+ static get assetsDirs() { return ["assets"]; }
149
187
  };
188
+ MyColorInfo.style = myColorinfoCss;
150
189
 
151
190
  const isObject$2 = (val) => !Array.isArray(val) && val !== null && typeof val === 'object';
152
191
  const hasAttributes = ({ vattrs }, requiredAttrs = []) => isObject$2(vattrs) && requiredAttrs.every(vattrs.hasOwnProperty.bind(vattrs));
@@ -269,10 +308,13 @@ const myComponentCss = ".pallete-wrapper.sc-my-component{display:flex;flex-direc
269
308
  const MyModalBundle = class {
270
309
  constructor(hostRef) {
271
310
  registerInstance(this, hostRef);
311
+ this.addToBasket = createEvent(this, "addToBasket", 7);
272
312
  this.shop = undefined;
273
313
  this.product = undefined;
274
314
  this.baselink = undefined;
275
315
  this.colorname = undefined;
316
+ this.available_testers = undefined;
317
+ this.price = undefined;
276
318
  this.show = false;
277
319
  this.readyToClose = false;
278
320
  }
@@ -289,10 +331,17 @@ const MyModalBundle = class {
289
331
  this.show = false;
290
332
  this.readyToClose = false;
291
333
  }
334
+ addToBasketHandler(event) {
335
+ const { id } = event.detail;
336
+ return id;
337
+ }
292
338
  render() {
293
339
  let content = null;
294
340
  if (this.show) {
295
- content = [h("my-backdrop", null), h("my-modal", { shop: this.shop, product: this.product, baselink: this.baselink, selectedcolor: this.colorname })];
341
+ content = [
342
+ h("my-backdrop", null),
343
+ h("my-modal", { shop: this.shop, product: this.product, baselink: this.baselink, selectedcolor: this.colorname, available_testers: this.available_testers ? JSON.parse(this.available_testers) : null, price: this.price }),
344
+ ];
296
345
  }
297
346
  return (h("div", { onClick: () => {
298
347
  if (this.readyToClose) {
@@ -325,1389 +374,1534 @@ const MyLoader = class {
325
374
  };
326
375
  MyLoader.style = myLoaderCss;
327
376
 
328
- /** @type {import('.')} */
329
- var esErrors = Error;
330
-
331
- /** @type {import('./eval')} */
332
- var _eval = EvalError;
333
-
334
- /** @type {import('./range')} */
335
- var range = RangeError;
336
-
337
- /** @type {import('./ref')} */
338
- var ref = ReferenceError;
339
-
340
- /** @type {import('./syntax')} */
341
- var syntax = SyntaxError;
342
-
343
377
  /** @type {import('./type')} */
344
378
  var type = TypeError;
345
379
 
346
- /** @type {import('./uri')} */
347
- var uri = URIError;
348
-
349
- /* eslint complexity: [2, 18], max-statements: [2, 33] */
350
- var shams = function hasSymbols() {
351
- if (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; }
352
- if (typeof Symbol.iterator === 'symbol') { return true; }
353
-
354
- var obj = {};
355
- var sym = Symbol('test');
356
- var symObj = Object(sym);
357
- if (typeof sym === 'string') { return false; }
358
-
359
- if (Object.prototype.toString.call(sym) !== '[object Symbol]') { return false; }
360
- if (Object.prototype.toString.call(symObj) !== '[object Symbol]') { return false; }
361
-
362
- // temp disabled per https://github.com/ljharb/object.assign/issues/17
363
- // if (sym instanceof Symbol) { return false; }
364
- // temp disabled per https://github.com/WebReflection/get-own-property-symbols/issues/4
365
- // if (!(symObj instanceof Symbol)) { return false; }
366
-
367
- // if (typeof Symbol.prototype.toString !== 'function') { return false; }
368
- // if (String(sym) !== Symbol.prototype.toString.call(sym)) { return false; }
369
-
370
- var symVal = 42;
371
- obj[sym] = symVal;
372
- for (sym in obj) { return false; } // eslint-disable-line no-restricted-syntax, no-unreachable-loop
373
- if (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; }
380
+ var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
374
381
 
375
- if (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; }
382
+ function getAugmentedNamespace(n) {
383
+ if (n.__esModule) return n;
384
+ var a = Object.defineProperty({}, '__esModule', {value: true});
385
+ Object.keys(n).forEach(function (k) {
386
+ var d = Object.getOwnPropertyDescriptor(n, k);
387
+ Object.defineProperty(a, k, d.get ? d : {
388
+ enumerable: true,
389
+ get: function () {
390
+ return n[k];
391
+ }
392
+ });
393
+ });
394
+ return a;
395
+ }
376
396
 
377
- var syms = Object.getOwnPropertySymbols(obj);
378
- if (syms.length !== 1 || syms[0] !== sym) { return false; }
397
+ const _nodeResolve_empty = {};
379
398
 
380
- if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) { return false; }
399
+ const _nodeResolve_empty$1 = /*#__PURE__*/Object.freeze({
400
+ __proto__: null,
401
+ 'default': _nodeResolve_empty
402
+ });
381
403
 
382
- if (typeof Object.getOwnPropertyDescriptor === 'function') {
383
- var descriptor = Object.getOwnPropertyDescriptor(obj, sym);
384
- if (descriptor.value !== symVal || descriptor.enumerable !== true) { return false; }
385
- }
404
+ const utilInspect = /*@__PURE__*/getAugmentedNamespace(_nodeResolve_empty$1);
386
405
 
387
- return true;
388
- };
406
+ var hasMap = typeof Map === 'function' && Map.prototype;
407
+ var mapSizeDescriptor = Object.getOwnPropertyDescriptor && hasMap ? Object.getOwnPropertyDescriptor(Map.prototype, 'size') : null;
408
+ var mapSize = hasMap && mapSizeDescriptor && typeof mapSizeDescriptor.get === 'function' ? mapSizeDescriptor.get : null;
409
+ var mapForEach = hasMap && Map.prototype.forEach;
410
+ var hasSet = typeof Set === 'function' && Set.prototype;
411
+ var setSizeDescriptor = Object.getOwnPropertyDescriptor && hasSet ? Object.getOwnPropertyDescriptor(Set.prototype, 'size') : null;
412
+ var setSize = hasSet && setSizeDescriptor && typeof setSizeDescriptor.get === 'function' ? setSizeDescriptor.get : null;
413
+ var setForEach = hasSet && Set.prototype.forEach;
414
+ var hasWeakMap = typeof WeakMap === 'function' && WeakMap.prototype;
415
+ var weakMapHas = hasWeakMap ? WeakMap.prototype.has : null;
416
+ var hasWeakSet = typeof WeakSet === 'function' && WeakSet.prototype;
417
+ var weakSetHas = hasWeakSet ? WeakSet.prototype.has : null;
418
+ var hasWeakRef = typeof WeakRef === 'function' && WeakRef.prototype;
419
+ var weakRefDeref = hasWeakRef ? WeakRef.prototype.deref : null;
420
+ var booleanValueOf = Boolean.prototype.valueOf;
421
+ var objectToString = Object.prototype.toString;
422
+ var functionToString = Function.prototype.toString;
423
+ var $match = String.prototype.match;
424
+ var $slice = String.prototype.slice;
425
+ var $replace$1 = String.prototype.replace;
426
+ var $toUpperCase = String.prototype.toUpperCase;
427
+ var $toLowerCase = String.prototype.toLowerCase;
428
+ var $test = RegExp.prototype.test;
429
+ var $concat$1 = Array.prototype.concat;
430
+ var $join = Array.prototype.join;
431
+ var $arrSlice = Array.prototype.slice;
432
+ var $floor = Math.floor;
433
+ var bigIntValueOf = typeof BigInt === 'function' ? BigInt.prototype.valueOf : null;
434
+ var gOPS = Object.getOwnPropertySymbols;
435
+ var symToString = typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol' ? Symbol.prototype.toString : null;
436
+ var hasShammedSymbols = typeof Symbol === 'function' && typeof Symbol.iterator === 'object';
437
+ // ie, `has-tostringtag/shams
438
+ var toStringTag = typeof Symbol === 'function' && Symbol.toStringTag && (typeof Symbol.toStringTag === hasShammedSymbols ? 'object' : 'symbol')
439
+ ? Symbol.toStringTag
440
+ : null;
441
+ var isEnumerable = Object.prototype.propertyIsEnumerable;
389
442
 
390
- var origSymbol = typeof Symbol !== 'undefined' && Symbol;
443
+ var gPO = (typeof Reflect === 'function' ? Reflect.getPrototypeOf : Object.getPrototypeOf) || (
444
+ [].__proto__ === Array.prototype // eslint-disable-line no-proto
445
+ ? function (O) {
446
+ return O.__proto__; // eslint-disable-line no-proto
447
+ }
448
+ : null
449
+ );
391
450
 
451
+ function addNumericSeparator(num, str) {
452
+ if (
453
+ num === Infinity
454
+ || num === -Infinity
455
+ || num !== num
456
+ || (num && num > -1000 && num < 1000)
457
+ || $test.call(/e/, str)
458
+ ) {
459
+ return str;
460
+ }
461
+ var sepRegex = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
462
+ if (typeof num === 'number') {
463
+ var int = num < 0 ? -$floor(-num) : $floor(num); // trunc(num)
464
+ if (int !== num) {
465
+ var intStr = String(int);
466
+ var dec = $slice.call(str, intStr.length + 1);
467
+ return $replace$1.call(intStr, sepRegex, '$&_') + '.' + $replace$1.call($replace$1.call(dec, /([0-9]{3})/g, '$&_'), /_$/, '');
468
+ }
469
+ }
470
+ return $replace$1.call(str, sepRegex, '$&_');
471
+ }
392
472
 
393
- var hasSymbols$1 = function hasNativeSymbols() {
394
- if (typeof origSymbol !== 'function') { return false; }
395
- if (typeof Symbol !== 'function') { return false; }
396
- if (typeof origSymbol('foo') !== 'symbol') { return false; }
397
- if (typeof Symbol('bar') !== 'symbol') { return false; }
398
473
 
399
- return shams();
400
- };
474
+ var inspectCustom = utilInspect.custom;
475
+ var inspectSymbol = isSymbol(inspectCustom) ? inspectCustom : null;
401
476
 
402
- var test = {
403
- __proto__: null,
404
- foo: {}
477
+ var quotes = {
478
+ __proto__: null,
479
+ 'double': '"',
480
+ single: "'"
405
481
  };
406
-
407
- var $Object = Object;
408
-
409
- /** @type {import('.')} */
410
- var hasProto$1 = function hasProto() {
411
- // @ts-expect-error: TS errors on an inherited property for some reason
412
- return { __proto__: test }.foo === test.foo
413
- && !(test instanceof $Object);
482
+ var quoteREs = {
483
+ __proto__: null,
484
+ 'double': /(["\\])/g,
485
+ single: /(['\\])/g
414
486
  };
415
487
 
416
- /* eslint no-invalid-this: 1 */
417
-
418
- var ERROR_MESSAGE = 'Function.prototype.bind called on incompatible ';
419
- var toStr$1 = Object.prototype.toString;
420
- var max = Math.max;
421
- var funcType = '[object Function]';
422
-
423
- var concatty = function concatty(a, b) {
424
- var arr = [];
488
+ var objectInspect = function inspect_(obj, options, depth, seen) {
489
+ var opts = options || {};
425
490
 
426
- for (var i = 0; i < a.length; i += 1) {
427
- arr[i] = a[i];
491
+ if (has$3(opts, 'quoteStyle') && !has$3(quotes, opts.quoteStyle)) {
492
+ throw new TypeError('option "quoteStyle" must be "single" or "double"');
428
493
  }
429
- for (var j = 0; j < b.length; j += 1) {
430
- arr[j + a.length] = b[j];
494
+ if (
495
+ has$3(opts, 'maxStringLength') && (typeof opts.maxStringLength === 'number'
496
+ ? opts.maxStringLength < 0 && opts.maxStringLength !== Infinity
497
+ : opts.maxStringLength !== null
498
+ )
499
+ ) {
500
+ throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
501
+ }
502
+ var customInspect = has$3(opts, 'customInspect') ? opts.customInspect : true;
503
+ if (typeof customInspect !== 'boolean' && customInspect !== 'symbol') {
504
+ throw new TypeError('option "customInspect", if provided, must be `true`, `false`, or `\'symbol\'`');
431
505
  }
432
506
 
433
- return arr;
434
- };
507
+ if (
508
+ has$3(opts, 'indent')
509
+ && opts.indent !== null
510
+ && opts.indent !== '\t'
511
+ && !(parseInt(opts.indent, 10) === opts.indent && opts.indent > 0)
512
+ ) {
513
+ throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
514
+ }
515
+ if (has$3(opts, 'numericSeparator') && typeof opts.numericSeparator !== 'boolean') {
516
+ throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
517
+ }
518
+ var numericSeparator = opts.numericSeparator;
435
519
 
436
- var slicy = function slicy(arrLike, offset) {
437
- var arr = [];
438
- for (var i = offset || 0, j = 0; i < arrLike.length; i += 1, j += 1) {
439
- arr[j] = arrLike[i];
520
+ if (typeof obj === 'undefined') {
521
+ return 'undefined';
522
+ }
523
+ if (obj === null) {
524
+ return 'null';
525
+ }
526
+ if (typeof obj === 'boolean') {
527
+ return obj ? 'true' : 'false';
440
528
  }
441
- return arr;
442
- };
443
529
 
444
- var joiny = function (arr, joiner) {
445
- var str = '';
446
- for (var i = 0; i < arr.length; i += 1) {
447
- str += arr[i];
448
- if (i + 1 < arr.length) {
449
- str += joiner;
530
+ if (typeof obj === 'string') {
531
+ return inspectString(obj, opts);
532
+ }
533
+ if (typeof obj === 'number') {
534
+ if (obj === 0) {
535
+ return Infinity / obj > 0 ? '0' : '-0';
450
536
  }
537
+ var str = String(obj);
538
+ return numericSeparator ? addNumericSeparator(obj, str) : str;
539
+ }
540
+ if (typeof obj === 'bigint') {
541
+ var bigIntStr = String(obj) + 'n';
542
+ return numericSeparator ? addNumericSeparator(obj, bigIntStr) : bigIntStr;
451
543
  }
452
- return str;
453
- };
454
544
 
455
- var implementation = function bind(that) {
456
- var target = this;
457
- if (typeof target !== 'function' || toStr$1.apply(target) !== funcType) {
458
- throw new TypeError(ERROR_MESSAGE + target);
545
+ var maxDepth = typeof opts.depth === 'undefined' ? 5 : opts.depth;
546
+ if (typeof depth === 'undefined') { depth = 0; }
547
+ if (depth >= maxDepth && maxDepth > 0 && typeof obj === 'object') {
548
+ return isArray$3(obj) ? '[Array]' : '[Object]';
459
549
  }
460
- var args = slicy(arguments, 1);
461
550
 
462
- var bound;
463
- var binder = function () {
464
- if (this instanceof bound) {
465
- var result = target.apply(
466
- this,
467
- concatty(args, arguments)
468
- );
469
- if (Object(result) === result) {
470
- return result;
471
- }
472
- return this;
473
- }
474
- return target.apply(
475
- that,
476
- concatty(args, arguments)
477
- );
478
-
479
- };
551
+ var indent = getIndent(opts, depth);
480
552
 
481
- var boundLength = max(0, target.length - args.length);
482
- var boundArgs = [];
483
- for (var i = 0; i < boundLength; i++) {
484
- boundArgs[i] = '$' + i;
553
+ if (typeof seen === 'undefined') {
554
+ seen = [];
555
+ } else if (indexOf(seen, obj) >= 0) {
556
+ return '[Circular]';
485
557
  }
486
558
 
487
- bound = Function('binder', 'return function (' + joiny(boundArgs, ',') + '){ return binder.apply(this,arguments); }')(binder);
488
-
489
- if (target.prototype) {
490
- var Empty = function Empty() {};
491
- Empty.prototype = target.prototype;
492
- bound.prototype = new Empty();
493
- Empty.prototype = null;
559
+ function inspect(value, from, noIndent) {
560
+ if (from) {
561
+ seen = $arrSlice.call(seen);
562
+ seen.push(from);
563
+ }
564
+ if (noIndent) {
565
+ var newOpts = {
566
+ depth: opts.depth
567
+ };
568
+ if (has$3(opts, 'quoteStyle')) {
569
+ newOpts.quoteStyle = opts.quoteStyle;
570
+ }
571
+ return inspect_(value, newOpts, depth + 1, seen);
572
+ }
573
+ return inspect_(value, opts, depth + 1, seen);
494
574
  }
495
575
 
496
- return bound;
576
+ if (typeof obj === 'function' && !isRegExp$1(obj)) { // in older engines, regexes are callable
577
+ var name = nameOf(obj);
578
+ var keys = arrObjKeys(obj, inspect);
579
+ return '[Function' + (name ? ': ' + name : ' (anonymous)') + ']' + (keys.length > 0 ? ' { ' + $join.call(keys, ', ') + ' }' : '');
580
+ }
581
+ if (isSymbol(obj)) {
582
+ var symString = hasShammedSymbols ? $replace$1.call(String(obj), /^(Symbol\(.*\))_[^)]*$/, '$1') : symToString.call(obj);
583
+ return typeof obj === 'object' && !hasShammedSymbols ? markBoxed(symString) : symString;
584
+ }
585
+ if (isElement(obj)) {
586
+ var s = '<' + $toLowerCase.call(String(obj.nodeName));
587
+ var attrs = obj.attributes || [];
588
+ for (var i = 0; i < attrs.length; i++) {
589
+ s += ' ' + attrs[i].name + '=' + wrapQuotes(quote(attrs[i].value), 'double', opts);
590
+ }
591
+ s += '>';
592
+ if (obj.childNodes && obj.childNodes.length) { s += '...'; }
593
+ s += '</' + $toLowerCase.call(String(obj.nodeName)) + '>';
594
+ return s;
595
+ }
596
+ if (isArray$3(obj)) {
597
+ if (obj.length === 0) { return '[]'; }
598
+ var xs = arrObjKeys(obj, inspect);
599
+ if (indent && !singleLineValues(xs)) {
600
+ return '[' + indentedJoin(xs, indent) + ']';
601
+ }
602
+ return '[ ' + $join.call(xs, ', ') + ' ]';
603
+ }
604
+ if (isError(obj)) {
605
+ var parts = arrObjKeys(obj, inspect);
606
+ if (!('cause' in Error.prototype) && 'cause' in obj && !isEnumerable.call(obj, 'cause')) {
607
+ return '{ [' + String(obj) + '] ' + $join.call($concat$1.call('[cause]: ' + inspect(obj.cause), parts), ', ') + ' }';
608
+ }
609
+ if (parts.length === 0) { return '[' + String(obj) + ']'; }
610
+ return '{ [' + String(obj) + '] ' + $join.call(parts, ', ') + ' }';
611
+ }
612
+ if (typeof obj === 'object' && customInspect) {
613
+ if (inspectSymbol && typeof obj[inspectSymbol] === 'function' && utilInspect) {
614
+ return utilInspect(obj, { depth: maxDepth - depth });
615
+ } else if (customInspect !== 'symbol' && typeof obj.inspect === 'function') {
616
+ return obj.inspect();
617
+ }
618
+ }
619
+ if (isMap(obj)) {
620
+ var mapParts = [];
621
+ if (mapForEach) {
622
+ mapForEach.call(obj, function (value, key) {
623
+ mapParts.push(inspect(key, obj, true) + ' => ' + inspect(value, obj));
624
+ });
625
+ }
626
+ return collectionOf('Map', mapSize.call(obj), mapParts, indent);
627
+ }
628
+ if (isSet(obj)) {
629
+ var setParts = [];
630
+ if (setForEach) {
631
+ setForEach.call(obj, function (value) {
632
+ setParts.push(inspect(value, obj));
633
+ });
634
+ }
635
+ return collectionOf('Set', setSize.call(obj), setParts, indent);
636
+ }
637
+ if (isWeakMap(obj)) {
638
+ return weakCollectionOf('WeakMap');
639
+ }
640
+ if (isWeakSet(obj)) {
641
+ return weakCollectionOf('WeakSet');
642
+ }
643
+ if (isWeakRef(obj)) {
644
+ return weakCollectionOf('WeakRef');
645
+ }
646
+ if (isNumber(obj)) {
647
+ return markBoxed(inspect(Number(obj)));
648
+ }
649
+ if (isBigInt(obj)) {
650
+ return markBoxed(inspect(bigIntValueOf.call(obj)));
651
+ }
652
+ if (isBoolean(obj)) {
653
+ return markBoxed(booleanValueOf.call(obj));
654
+ }
655
+ if (isString(obj)) {
656
+ return markBoxed(inspect(String(obj)));
657
+ }
658
+ // note: in IE 8, sometimes `global !== window` but both are the prototypes of each other
659
+ /* eslint-env browser */
660
+ if (typeof window !== 'undefined' && obj === window) {
661
+ return '{ [object Window] }';
662
+ }
663
+ if (
664
+ (typeof globalThis !== 'undefined' && obj === globalThis)
665
+ || (typeof commonjsGlobal !== 'undefined' && obj === commonjsGlobal)
666
+ ) {
667
+ return '{ [object globalThis] }';
668
+ }
669
+ if (!isDate(obj) && !isRegExp$1(obj)) {
670
+ var ys = arrObjKeys(obj, inspect);
671
+ var isPlainObject = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object;
672
+ var protoTag = obj instanceof Object ? '' : 'null prototype';
673
+ var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice.call(toStr$1(obj), 8, -1) : protoTag ? 'Object' : '';
674
+ var constructorTag = isPlainObject || typeof obj.constructor !== 'function' ? '' : obj.constructor.name ? obj.constructor.name + ' ' : '';
675
+ var tag = constructorTag + (stringTag || protoTag ? '[' + $join.call($concat$1.call([], stringTag || [], protoTag || []), ': ') + '] ' : '');
676
+ if (ys.length === 0) { return tag + '{}'; }
677
+ if (indent) {
678
+ return tag + '{' + indentedJoin(ys, indent) + '}';
679
+ }
680
+ return tag + '{ ' + $join.call(ys, ', ') + ' }';
681
+ }
682
+ return String(obj);
497
683
  };
498
684
 
499
- var functionBind = Function.prototype.bind || implementation;
500
-
501
- var call = Function.prototype.call;
502
- var $hasOwn = Object.prototype.hasOwnProperty;
685
+ function wrapQuotes(s, defaultStyle, opts) {
686
+ var style = opts.quoteStyle || defaultStyle;
687
+ var quoteChar = quotes[style];
688
+ return quoteChar + s + quoteChar;
689
+ }
503
690
 
691
+ function quote(s) {
692
+ return $replace$1.call(String(s), /"/g, '&quot;');
693
+ }
504
694
 
505
- /** @type {import('.')} */
506
- var hasown = functionBind.call(call, $hasOwn);
695
+ function canTrustToString(obj) {
696
+ return !toStringTag || !(typeof obj === 'object' && (toStringTag in obj || typeof obj[toStringTag] !== 'undefined'));
697
+ }
698
+ function isArray$3(obj) { return toStr$1(obj) === '[object Array]' && canTrustToString(obj); }
699
+ function isDate(obj) { return toStr$1(obj) === '[object Date]' && canTrustToString(obj); }
700
+ function isRegExp$1(obj) { return toStr$1(obj) === '[object RegExp]' && canTrustToString(obj); }
701
+ function isError(obj) { return toStr$1(obj) === '[object Error]' && canTrustToString(obj); }
702
+ function isString(obj) { return toStr$1(obj) === '[object String]' && canTrustToString(obj); }
703
+ function isNumber(obj) { return toStr$1(obj) === '[object Number]' && canTrustToString(obj); }
704
+ function isBoolean(obj) { return toStr$1(obj) === '[object Boolean]' && canTrustToString(obj); }
507
705
 
508
- var undefined$1;
706
+ // Symbol and BigInt do have Symbol.toStringTag by spec, so that can't be used to eliminate false positives
707
+ function isSymbol(obj) {
708
+ if (hasShammedSymbols) {
709
+ return obj && typeof obj === 'object' && obj instanceof Symbol;
710
+ }
711
+ if (typeof obj === 'symbol') {
712
+ return true;
713
+ }
714
+ if (!obj || typeof obj !== 'object' || !symToString) {
715
+ return false;
716
+ }
717
+ try {
718
+ symToString.call(obj);
719
+ return true;
720
+ } catch (e) {}
721
+ return false;
722
+ }
509
723
 
724
+ function isBigInt(obj) {
725
+ if (!obj || typeof obj !== 'object' || !bigIntValueOf) {
726
+ return false;
727
+ }
728
+ try {
729
+ bigIntValueOf.call(obj);
730
+ return true;
731
+ } catch (e) {}
732
+ return false;
733
+ }
510
734
 
735
+ var hasOwn = Object.prototype.hasOwnProperty || function (key) { return key in this; };
736
+ function has$3(obj, key) {
737
+ return hasOwn.call(obj, key);
738
+ }
511
739
 
740
+ function toStr$1(obj) {
741
+ return objectToString.call(obj);
742
+ }
512
743
 
744
+ function nameOf(f) {
745
+ if (f.name) { return f.name; }
746
+ var m = $match.call(functionToString.call(f), /^function\s*([\w$]+)/);
747
+ if (m) { return m[1]; }
748
+ return null;
749
+ }
513
750
 
751
+ function indexOf(xs, x) {
752
+ if (xs.indexOf) { return xs.indexOf(x); }
753
+ for (var i = 0, l = xs.length; i < l; i++) {
754
+ if (xs[i] === x) { return i; }
755
+ }
756
+ return -1;
757
+ }
514
758
 
759
+ function isMap(x) {
760
+ if (!mapSize || !x || typeof x !== 'object') {
761
+ return false;
762
+ }
763
+ try {
764
+ mapSize.call(x);
765
+ try {
766
+ setSize.call(x);
767
+ } catch (s) {
768
+ return true;
769
+ }
770
+ return x instanceof Map; // core-js workaround, pre-v2.5.0
771
+ } catch (e) {}
772
+ return false;
773
+ }
515
774
 
775
+ function isWeakMap(x) {
776
+ if (!weakMapHas || !x || typeof x !== 'object') {
777
+ return false;
778
+ }
779
+ try {
780
+ weakMapHas.call(x, weakMapHas);
781
+ try {
782
+ weakSetHas.call(x, weakSetHas);
783
+ } catch (s) {
784
+ return true;
785
+ }
786
+ return x instanceof WeakMap; // core-js workaround, pre-v2.5.0
787
+ } catch (e) {}
788
+ return false;
789
+ }
516
790
 
791
+ function isWeakRef(x) {
792
+ if (!weakRefDeref || !x || typeof x !== 'object') {
793
+ return false;
794
+ }
795
+ try {
796
+ weakRefDeref.call(x);
797
+ return true;
798
+ } catch (e) {}
799
+ return false;
800
+ }
517
801
 
518
- var $Function = Function;
802
+ function isSet(x) {
803
+ if (!setSize || !x || typeof x !== 'object') {
804
+ return false;
805
+ }
806
+ try {
807
+ setSize.call(x);
808
+ try {
809
+ mapSize.call(x);
810
+ } catch (m) {
811
+ return true;
812
+ }
813
+ return x instanceof Set; // core-js workaround, pre-v2.5.0
814
+ } catch (e) {}
815
+ return false;
816
+ }
519
817
 
520
- // eslint-disable-next-line consistent-return
521
- var getEvalledConstructor = function (expressionSyntax) {
522
- try {
523
- return $Function('"use strict"; return (' + expressionSyntax + ').constructor;')();
524
- } catch (e) {}
525
- };
526
-
527
- var $gOPD$1 = Object.getOwnPropertyDescriptor;
528
-
529
- var throwTypeError = function () {
530
- throw new type();
531
- };
532
- var ThrowTypeError = $gOPD$1
533
- ? (function () {
534
- try {
535
- return throwTypeError;
536
- } catch (calleeThrows) {
537
- try {
538
- // IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')
539
- return $gOPD$1(arguments, 'callee').get;
540
- } catch (gOPDthrows) {
541
- return throwTypeError;
542
- }
543
- }
544
- }())
545
- : throwTypeError;
546
-
547
- var hasSymbols = hasSymbols$1();
548
- var hasProto = hasProto$1();
549
-
550
- var getProto = Object.getPrototypeOf || (
551
- hasProto
552
- ? function (x) { return x.__proto__; } // eslint-disable-line no-proto
553
- : null
554
- );
555
-
556
- var needsEval = {};
557
-
558
- var TypedArray = typeof Uint8Array === 'undefined' || !getProto ? undefined$1 : getProto(Uint8Array);
559
-
560
- var INTRINSICS = {
561
- __proto__: null,
562
- '%AggregateError%': typeof AggregateError === 'undefined' ? undefined$1 : AggregateError,
563
- '%Array%': Array,
564
- '%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined$1 : ArrayBuffer,
565
- '%ArrayIteratorPrototype%': hasSymbols && getProto ? getProto([][Symbol.iterator]()) : undefined$1,
566
- '%AsyncFromSyncIteratorPrototype%': undefined$1,
567
- '%AsyncFunction%': needsEval,
568
- '%AsyncGenerator%': needsEval,
569
- '%AsyncGeneratorFunction%': needsEval,
570
- '%AsyncIteratorPrototype%': needsEval,
571
- '%Atomics%': typeof Atomics === 'undefined' ? undefined$1 : Atomics,
572
- '%BigInt%': typeof BigInt === 'undefined' ? undefined$1 : BigInt,
573
- '%BigInt64Array%': typeof BigInt64Array === 'undefined' ? undefined$1 : BigInt64Array,
574
- '%BigUint64Array%': typeof BigUint64Array === 'undefined' ? undefined$1 : BigUint64Array,
575
- '%Boolean%': Boolean,
576
- '%DataView%': typeof DataView === 'undefined' ? undefined$1 : DataView,
577
- '%Date%': Date,
578
- '%decodeURI%': decodeURI,
579
- '%decodeURIComponent%': decodeURIComponent,
580
- '%encodeURI%': encodeURI,
581
- '%encodeURIComponent%': encodeURIComponent,
582
- '%Error%': esErrors,
583
- '%eval%': eval, // eslint-disable-line no-eval
584
- '%EvalError%': _eval,
585
- '%Float32Array%': typeof Float32Array === 'undefined' ? undefined$1 : Float32Array,
586
- '%Float64Array%': typeof Float64Array === 'undefined' ? undefined$1 : Float64Array,
587
- '%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined$1 : FinalizationRegistry,
588
- '%Function%': $Function,
589
- '%GeneratorFunction%': needsEval,
590
- '%Int8Array%': typeof Int8Array === 'undefined' ? undefined$1 : Int8Array,
591
- '%Int16Array%': typeof Int16Array === 'undefined' ? undefined$1 : Int16Array,
592
- '%Int32Array%': typeof Int32Array === 'undefined' ? undefined$1 : Int32Array,
593
- '%isFinite%': isFinite,
594
- '%isNaN%': isNaN,
595
- '%IteratorPrototype%': hasSymbols && getProto ? getProto(getProto([][Symbol.iterator]())) : undefined$1,
596
- '%JSON%': typeof JSON === 'object' ? JSON : undefined$1,
597
- '%Map%': typeof Map === 'undefined' ? undefined$1 : Map,
598
- '%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols || !getProto ? undefined$1 : getProto(new Map()[Symbol.iterator]()),
599
- '%Math%': Math,
600
- '%Number%': Number,
601
- '%Object%': Object,
602
- '%parseFloat%': parseFloat,
603
- '%parseInt%': parseInt,
604
- '%Promise%': typeof Promise === 'undefined' ? undefined$1 : Promise,
605
- '%Proxy%': typeof Proxy === 'undefined' ? undefined$1 : Proxy,
606
- '%RangeError%': range,
607
- '%ReferenceError%': ref,
608
- '%Reflect%': typeof Reflect === 'undefined' ? undefined$1 : Reflect,
609
- '%RegExp%': RegExp,
610
- '%Set%': typeof Set === 'undefined' ? undefined$1 : Set,
611
- '%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols || !getProto ? undefined$1 : getProto(new Set()[Symbol.iterator]()),
612
- '%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined$1 : SharedArrayBuffer,
613
- '%String%': String,
614
- '%StringIteratorPrototype%': hasSymbols && getProto ? getProto(''[Symbol.iterator]()) : undefined$1,
615
- '%Symbol%': hasSymbols ? Symbol : undefined$1,
616
- '%SyntaxError%': syntax,
617
- '%ThrowTypeError%': ThrowTypeError,
618
- '%TypedArray%': TypedArray,
619
- '%TypeError%': type,
620
- '%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined$1 : Uint8Array,
621
- '%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined$1 : Uint8ClampedArray,
622
- '%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined$1 : Uint16Array,
623
- '%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined$1 : Uint32Array,
624
- '%URIError%': uri,
625
- '%WeakMap%': typeof WeakMap === 'undefined' ? undefined$1 : WeakMap,
626
- '%WeakRef%': typeof WeakRef === 'undefined' ? undefined$1 : WeakRef,
627
- '%WeakSet%': typeof WeakSet === 'undefined' ? undefined$1 : WeakSet
628
- };
629
-
630
- var doEval = function doEval(name) {
631
- var value;
632
- if (name === '%AsyncFunction%') {
633
- value = getEvalledConstructor('async function () {}');
634
- } else if (name === '%GeneratorFunction%') {
635
- value = getEvalledConstructor('function* () {}');
636
- } else if (name === '%AsyncGeneratorFunction%') {
637
- value = getEvalledConstructor('async function* () {}');
638
- } else if (name === '%AsyncGenerator%') {
639
- var fn = doEval('%AsyncGeneratorFunction%');
640
- if (fn) {
641
- value = fn.prototype;
642
- }
643
- } else if (name === '%AsyncIteratorPrototype%') {
644
- var gen = doEval('%AsyncGenerator%');
645
- if (gen && getProto) {
646
- value = getProto(gen.prototype);
647
- }
648
- }
649
-
650
- INTRINSICS[name] = value;
651
-
652
- return value;
653
- };
654
-
655
- var LEGACY_ALIASES = {
656
- __proto__: null,
657
- '%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'],
658
- '%ArrayPrototype%': ['Array', 'prototype'],
659
- '%ArrayProto_entries%': ['Array', 'prototype', 'entries'],
660
- '%ArrayProto_forEach%': ['Array', 'prototype', 'forEach'],
661
- '%ArrayProto_keys%': ['Array', 'prototype', 'keys'],
662
- '%ArrayProto_values%': ['Array', 'prototype', 'values'],
663
- '%AsyncFunctionPrototype%': ['AsyncFunction', 'prototype'],
664
- '%AsyncGenerator%': ['AsyncGeneratorFunction', 'prototype'],
665
- '%AsyncGeneratorPrototype%': ['AsyncGeneratorFunction', 'prototype', 'prototype'],
666
- '%BooleanPrototype%': ['Boolean', 'prototype'],
667
- '%DataViewPrototype%': ['DataView', 'prototype'],
668
- '%DatePrototype%': ['Date', 'prototype'],
669
- '%ErrorPrototype%': ['Error', 'prototype'],
670
- '%EvalErrorPrototype%': ['EvalError', 'prototype'],
671
- '%Float32ArrayPrototype%': ['Float32Array', 'prototype'],
672
- '%Float64ArrayPrototype%': ['Float64Array', 'prototype'],
673
- '%FunctionPrototype%': ['Function', 'prototype'],
674
- '%Generator%': ['GeneratorFunction', 'prototype'],
675
- '%GeneratorPrototype%': ['GeneratorFunction', 'prototype', 'prototype'],
676
- '%Int8ArrayPrototype%': ['Int8Array', 'prototype'],
677
- '%Int16ArrayPrototype%': ['Int16Array', 'prototype'],
678
- '%Int32ArrayPrototype%': ['Int32Array', 'prototype'],
679
- '%JSONParse%': ['JSON', 'parse'],
680
- '%JSONStringify%': ['JSON', 'stringify'],
681
- '%MapPrototype%': ['Map', 'prototype'],
682
- '%NumberPrototype%': ['Number', 'prototype'],
683
- '%ObjectPrototype%': ['Object', 'prototype'],
684
- '%ObjProto_toString%': ['Object', 'prototype', 'toString'],
685
- '%ObjProto_valueOf%': ['Object', 'prototype', 'valueOf'],
686
- '%PromisePrototype%': ['Promise', 'prototype'],
687
- '%PromiseProto_then%': ['Promise', 'prototype', 'then'],
688
- '%Promise_all%': ['Promise', 'all'],
689
- '%Promise_reject%': ['Promise', 'reject'],
690
- '%Promise_resolve%': ['Promise', 'resolve'],
691
- '%RangeErrorPrototype%': ['RangeError', 'prototype'],
692
- '%ReferenceErrorPrototype%': ['ReferenceError', 'prototype'],
693
- '%RegExpPrototype%': ['RegExp', 'prototype'],
694
- '%SetPrototype%': ['Set', 'prototype'],
695
- '%SharedArrayBufferPrototype%': ['SharedArrayBuffer', 'prototype'],
696
- '%StringPrototype%': ['String', 'prototype'],
697
- '%SymbolPrototype%': ['Symbol', 'prototype'],
698
- '%SyntaxErrorPrototype%': ['SyntaxError', 'prototype'],
699
- '%TypedArrayPrototype%': ['TypedArray', 'prototype'],
700
- '%TypeErrorPrototype%': ['TypeError', 'prototype'],
701
- '%Uint8ArrayPrototype%': ['Uint8Array', 'prototype'],
702
- '%Uint8ClampedArrayPrototype%': ['Uint8ClampedArray', 'prototype'],
703
- '%Uint16ArrayPrototype%': ['Uint16Array', 'prototype'],
704
- '%Uint32ArrayPrototype%': ['Uint32Array', 'prototype'],
705
- '%URIErrorPrototype%': ['URIError', 'prototype'],
706
- '%WeakMapPrototype%': ['WeakMap', 'prototype'],
707
- '%WeakSetPrototype%': ['WeakSet', 'prototype']
708
- };
709
-
710
-
711
-
712
- var $concat$1 = functionBind.call(Function.call, Array.prototype.concat);
713
- var $spliceApply = functionBind.call(Function.apply, Array.prototype.splice);
714
- var $replace$1 = functionBind.call(Function.call, String.prototype.replace);
715
- var $strSlice = functionBind.call(Function.call, String.prototype.slice);
716
- var $exec = functionBind.call(Function.call, RegExp.prototype.exec);
717
-
718
- /* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
719
- var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
720
- var reEscapeChar = /\\(\\)?/g; /** Used to match backslashes in property paths. */
721
- var stringToPath = function stringToPath(string) {
722
- var first = $strSlice(string, 0, 1);
723
- var last = $strSlice(string, -1);
724
- if (first === '%' && last !== '%') {
725
- throw new syntax('invalid intrinsic syntax, expected closing `%`');
726
- } else if (last === '%' && first !== '%') {
727
- throw new syntax('invalid intrinsic syntax, expected opening `%`');
728
- }
729
- var result = [];
730
- $replace$1(string, rePropName, function (match, number, quote, subString) {
731
- result[result.length] = quote ? $replace$1(subString, reEscapeChar, '$1') : number || match;
732
- });
733
- return result;
734
- };
735
- /* end adaptation */
736
-
737
- var getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {
738
- var intrinsicName = name;
739
- var alias;
740
- if (hasown(LEGACY_ALIASES, intrinsicName)) {
741
- alias = LEGACY_ALIASES[intrinsicName];
742
- intrinsicName = '%' + alias[0] + '%';
743
- }
744
-
745
- if (hasown(INTRINSICS, intrinsicName)) {
746
- var value = INTRINSICS[intrinsicName];
747
- if (value === needsEval) {
748
- value = doEval(intrinsicName);
749
- }
750
- if (typeof value === 'undefined' && !allowMissing) {
751
- throw new type('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
752
- }
753
-
754
- return {
755
- alias: alias,
756
- name: intrinsicName,
757
- value: value
758
- };
759
- }
760
-
761
- throw new syntax('intrinsic ' + name + ' does not exist!');
762
- };
763
-
764
- var getIntrinsic = function GetIntrinsic(name, allowMissing) {
765
- if (typeof name !== 'string' || name.length === 0) {
766
- throw new type('intrinsic name must be a non-empty string');
767
- }
768
- if (arguments.length > 1 && typeof allowMissing !== 'boolean') {
769
- throw new type('"allowMissing" argument must be a boolean');
770
- }
771
-
772
- if ($exec(/^%?[^%]*%?$/, name) === null) {
773
- throw new syntax('`%` may not be present anywhere but at the beginning and end of the intrinsic name');
774
- }
775
- var parts = stringToPath(name);
776
- var intrinsicBaseName = parts.length > 0 ? parts[0] : '';
777
-
778
- var intrinsic = getBaseIntrinsic('%' + intrinsicBaseName + '%', allowMissing);
779
- var intrinsicRealName = intrinsic.name;
780
- var value = intrinsic.value;
781
- var skipFurtherCaching = false;
782
-
783
- var alias = intrinsic.alias;
784
- if (alias) {
785
- intrinsicBaseName = alias[0];
786
- $spliceApply(parts, $concat$1([0, 1], alias));
787
- }
788
-
789
- for (var i = 1, isOwn = true; i < parts.length; i += 1) {
790
- var part = parts[i];
791
- var first = $strSlice(part, 0, 1);
792
- var last = $strSlice(part, -1);
793
- if (
794
- (
795
- (first === '"' || first === "'" || first === '`')
796
- || (last === '"' || last === "'" || last === '`')
797
- )
798
- && first !== last
799
- ) {
800
- throw new syntax('property names with quotes must have matching quotes');
801
- }
802
- if (part === 'constructor' || !isOwn) {
803
- skipFurtherCaching = true;
804
- }
805
-
806
- intrinsicBaseName += '.' + part;
807
- intrinsicRealName = '%' + intrinsicBaseName + '%';
818
+ function isWeakSet(x) {
819
+ if (!weakSetHas || !x || typeof x !== 'object') {
820
+ return false;
821
+ }
822
+ try {
823
+ weakSetHas.call(x, weakSetHas);
824
+ try {
825
+ weakMapHas.call(x, weakMapHas);
826
+ } catch (s) {
827
+ return true;
828
+ }
829
+ return x instanceof WeakSet; // core-js workaround, pre-v2.5.0
830
+ } catch (e) {}
831
+ return false;
832
+ }
808
833
 
809
- if (hasown(INTRINSICS, intrinsicRealName)) {
810
- value = INTRINSICS[intrinsicRealName];
811
- } else if (value != null) {
812
- if (!(part in value)) {
813
- if (!allowMissing) {
814
- throw new type('base intrinsic for ' + name + ' exists, but the property is not available.');
815
- }
816
- return void undefined$1;
817
- }
818
- if ($gOPD$1 && (i + 1) >= parts.length) {
819
- var desc = $gOPD$1(value, part);
820
- isOwn = !!desc;
834
+ function isElement(x) {
835
+ if (!x || typeof x !== 'object') { return false; }
836
+ if (typeof HTMLElement !== 'undefined' && x instanceof HTMLElement) {
837
+ return true;
838
+ }
839
+ return typeof x.nodeName === 'string' && typeof x.getAttribute === 'function';
840
+ }
821
841
 
822
- // By convention, when a data property is converted to an accessor
823
- // property to emulate a data property that does not suffer from
824
- // the override mistake, that accessor's getter is marked with
825
- // an `originalValue` property. Here, when we detect this, we
826
- // uphold the illusion by pretending to see that original data
827
- // property, i.e., returning the value rather than the getter
828
- // itself.
829
- if (isOwn && 'get' in desc && !('originalValue' in desc.get)) {
830
- value = desc.get;
831
- } else {
832
- value = value[part];
833
- }
834
- } else {
835
- isOwn = hasown(value, part);
836
- value = value[part];
837
- }
842
+ function inspectString(str, opts) {
843
+ if (str.length > opts.maxStringLength) {
844
+ var remaining = str.length - opts.maxStringLength;
845
+ var trailer = '... ' + remaining + ' more character' + (remaining > 1 ? 's' : '');
846
+ return inspectString($slice.call(str, 0, opts.maxStringLength), opts) + trailer;
847
+ }
848
+ var quoteRE = quoteREs[opts.quoteStyle || 'single'];
849
+ quoteRE.lastIndex = 0;
850
+ // eslint-disable-next-line no-control-regex
851
+ var s = $replace$1.call($replace$1.call(str, quoteRE, '\\$1'), /[\x00-\x1f]/g, lowbyte);
852
+ return wrapQuotes(s, 'single', opts);
853
+ }
838
854
 
839
- if (isOwn && !skipFurtherCaching) {
840
- INTRINSICS[intrinsicRealName] = value;
841
- }
842
- }
843
- }
844
- return value;
845
- };
855
+ function lowbyte(c) {
856
+ var n = c.charCodeAt(0);
857
+ var x = {
858
+ 8: 'b',
859
+ 9: 't',
860
+ 10: 'n',
861
+ 12: 'f',
862
+ 13: 'r'
863
+ }[n];
864
+ if (x) { return '\\' + x; }
865
+ return '\\x' + (n < 0x10 ? '0' : '') + $toUpperCase.call(n.toString(16));
866
+ }
846
867
 
847
- var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
868
+ function markBoxed(str) {
869
+ return 'Object(' + str + ')';
870
+ }
848
871
 
849
- function createCommonjsModule(fn, basedir, module) {
850
- return module = {
851
- path: basedir,
852
- exports: {},
853
- require: function (path, base) {
854
- return commonjsRequire();
855
- }
856
- }, fn(module, module.exports), module.exports;
872
+ function weakCollectionOf(type) {
873
+ return type + ' { ? }';
857
874
  }
858
875
 
859
- function getAugmentedNamespace(n) {
860
- if (n.__esModule) return n;
861
- var a = Object.defineProperty({}, '__esModule', {value: true});
862
- Object.keys(n).forEach(function (k) {
863
- var d = Object.getOwnPropertyDescriptor(n, k);
864
- Object.defineProperty(a, k, d.get ? d : {
865
- enumerable: true,
866
- get: function () {
867
- return n[k];
868
- }
869
- });
870
- });
871
- return a;
876
+ function collectionOf(type, size, entries, indent) {
877
+ var joinedEntries = indent ? indentedJoin(entries, indent) : $join.call(entries, ', ');
878
+ return type + ' (' + size + ') {' + joinedEntries + '}';
872
879
  }
873
880
 
874
- function commonjsRequire () {
875
- throw new Error('Dynamic requires are not currently supported by @rollup/plugin-commonjs');
881
+ function singleLineValues(xs) {
882
+ for (var i = 0; i < xs.length; i++) {
883
+ if (indexOf(xs[i], '\n') >= 0) {
884
+ return false;
885
+ }
886
+ }
887
+ return true;
876
888
  }
877
889
 
878
- /** @type {import('.')} */
879
- var $defineProperty = getIntrinsic('%Object.defineProperty%', true) || false;
880
- if ($defineProperty) {
881
- try {
882
- $defineProperty({}, 'a', { value: 1 });
883
- } catch (e) {
884
- // IE 8 has a broken defineProperty
885
- $defineProperty = false;
886
- }
890
+ function getIndent(opts, depth) {
891
+ var baseIndent;
892
+ if (opts.indent === '\t') {
893
+ baseIndent = '\t';
894
+ } else if (typeof opts.indent === 'number' && opts.indent > 0) {
895
+ baseIndent = $join.call(Array(opts.indent + 1), ' ');
896
+ } else {
897
+ return null;
898
+ }
899
+ return {
900
+ base: baseIndent,
901
+ prev: $join.call(Array(depth + 1), baseIndent)
902
+ };
887
903
  }
888
904
 
889
- var esDefineProperty = $defineProperty;
905
+ function indentedJoin(xs, indent) {
906
+ if (xs.length === 0) { return ''; }
907
+ var lineJoiner = '\n' + indent.prev + indent.base;
908
+ return lineJoiner + $join.call(xs, ',' + lineJoiner) + '\n' + indent.prev;
909
+ }
890
910
 
891
- var $gOPD = getIntrinsic('%Object.getOwnPropertyDescriptor%', true);
911
+ function arrObjKeys(obj, inspect) {
912
+ var isArr = isArray$3(obj);
913
+ var xs = [];
914
+ if (isArr) {
915
+ xs.length = obj.length;
916
+ for (var i = 0; i < obj.length; i++) {
917
+ xs[i] = has$3(obj, i) ? inspect(obj[i], obj) : '';
918
+ }
919
+ }
920
+ var syms = typeof gOPS === 'function' ? gOPS(obj) : [];
921
+ var symMap;
922
+ if (hasShammedSymbols) {
923
+ symMap = {};
924
+ for (var k = 0; k < syms.length; k++) {
925
+ symMap['$' + syms[k]] = syms[k];
926
+ }
927
+ }
892
928
 
893
- if ($gOPD) {
894
- try {
895
- $gOPD([], 'length');
896
- } catch (e) {
897
- // IE 8 has a broken gOPD
898
- $gOPD = null;
899
- }
929
+ for (var key in obj) { // eslint-disable-line no-restricted-syntax
930
+ if (!has$3(obj, key)) { continue; } // eslint-disable-line no-restricted-syntax, no-continue
931
+ if (isArr && String(Number(key)) === key && key < obj.length) { continue; } // eslint-disable-line no-restricted-syntax, no-continue
932
+ if (hasShammedSymbols && symMap['$' + key] instanceof Symbol) {
933
+ // this is to prevent shammed Symbols, which are stored as strings, from being included in the string key section
934
+ continue; // eslint-disable-line no-restricted-syntax, no-continue
935
+ } else if ($test.call(/[^\w$]/, key)) {
936
+ xs.push(inspect(key, obj) + ': ' + inspect(obj[key], obj));
937
+ } else {
938
+ xs.push(key + ': ' + inspect(obj[key], obj));
939
+ }
940
+ }
941
+ if (typeof gOPS === 'function') {
942
+ for (var j = 0; j < syms.length; j++) {
943
+ if (isEnumerable.call(obj, syms[j])) {
944
+ xs.push('[' + inspect(syms[j]) + ']: ' + inspect(obj[syms[j]], obj));
945
+ }
946
+ }
947
+ }
948
+ return xs;
900
949
  }
901
950
 
902
- var gopd = $gOPD;
903
-
904
- /** @type {import('.')} */
905
- var defineDataProperty = function defineDataProperty(
906
- obj,
907
- property,
908
- value
909
- ) {
910
- if (!obj || (typeof obj !== 'object' && typeof obj !== 'function')) {
911
- throw new type('`obj` must be an object or a function`');
912
- }
913
- if (typeof property !== 'string' && typeof property !== 'symbol') {
914
- throw new type('`property` must be a string or a symbol`');
915
- }
916
- if (arguments.length > 3 && typeof arguments[3] !== 'boolean' && arguments[3] !== null) {
917
- throw new type('`nonEnumerable`, if provided, must be a boolean or null');
918
- }
919
- if (arguments.length > 4 && typeof arguments[4] !== 'boolean' && arguments[4] !== null) {
920
- throw new type('`nonWritable`, if provided, must be a boolean or null');
921
- }
922
- if (arguments.length > 5 && typeof arguments[5] !== 'boolean' && arguments[5] !== null) {
923
- throw new type('`nonConfigurable`, if provided, must be a boolean or null');
924
- }
925
- if (arguments.length > 6 && typeof arguments[6] !== 'boolean') {
926
- throw new type('`loose`, if provided, must be a boolean');
951
+ /*
952
+ * This function traverses the list returning the node corresponding to the given key.
953
+ *
954
+ * That node is also moved to the head of the list, so that if it's accessed again we don't need to traverse the whole list.
955
+ * By doing so, all the recently used nodes can be accessed relatively quickly.
956
+ */
957
+ /** @type {import('./list.d.ts').listGetNode} */
958
+ // eslint-disable-next-line consistent-return
959
+ var listGetNode = function (list, key, isDelete) {
960
+ /** @type {typeof list | NonNullable<(typeof list)['next']>} */
961
+ var prev = list;
962
+ /** @type {(typeof list)['next']} */
963
+ var curr;
964
+ // eslint-disable-next-line eqeqeq
965
+ for (; (curr = prev.next) != null; prev = curr) {
966
+ if (curr.key === key) {
967
+ prev.next = curr.next;
968
+ if (!isDelete) {
969
+ // eslint-disable-next-line no-extra-parens
970
+ curr.next = /** @type {NonNullable<typeof list.next>} */ (list.next);
971
+ list.next = curr; // eslint-disable-line no-param-reassign
972
+ }
973
+ return curr;
974
+ }
927
975
  }
976
+ };
928
977
 
929
- var nonEnumerable = arguments.length > 3 ? arguments[3] : null;
930
- var nonWritable = arguments.length > 4 ? arguments[4] : null;
931
- var nonConfigurable = arguments.length > 5 ? arguments[5] : null;
932
- var loose = arguments.length > 6 ? arguments[6] : false;
933
-
934
- /* @type {false | TypedPropertyDescriptor<unknown>} */
935
- var desc = !!gopd && gopd(obj, property);
936
-
937
- if (esDefineProperty) {
938
- esDefineProperty(obj, property, {
939
- configurable: nonConfigurable === null && desc ? desc.configurable : !nonConfigurable,
940
- enumerable: nonEnumerable === null && desc ? desc.enumerable : !nonEnumerable,
941
- value: value,
942
- writable: nonWritable === null && desc ? desc.writable : !nonWritable
943
- });
944
- } else if (loose || (!nonEnumerable && !nonWritable && !nonConfigurable)) {
945
- // must fall back to [[Set]], and was not explicitly asked to make non-enumerable, non-writable, or non-configurable
946
- obj[property] = value; // eslint-disable-line no-param-reassign
947
- } else {
948
- throw new syntax('This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.');
978
+ /** @type {import('./list.d.ts').listGet} */
979
+ var listGet = function (objects, key) {
980
+ if (!objects) {
981
+ return void undefined;
949
982
  }
983
+ var node = listGetNode(objects, key);
984
+ return node && node.value;
950
985
  };
951
-
952
- var hasPropertyDescriptors = function hasPropertyDescriptors() {
953
- return !!esDefineProperty;
986
+ /** @type {import('./list.d.ts').listSet} */
987
+ var listSet = function (objects, key, value) {
988
+ var node = listGetNode(objects, key);
989
+ if (node) {
990
+ node.value = value;
991
+ } else {
992
+ // Prepend the new node to the beginning of the list
993
+ objects.next = /** @type {import('./list.d.ts').ListNode<typeof value, typeof key>} */ ({ // eslint-disable-line no-param-reassign, no-extra-parens
994
+ key: key,
995
+ next: objects.next,
996
+ value: value
997
+ });
998
+ }
954
999
  };
955
-
956
- hasPropertyDescriptors.hasArrayLengthDefineBug = function hasArrayLengthDefineBug() {
957
- // node v0.6 has a bug where array lengths can be Set but not Defined
958
- if (!esDefineProperty) {
959
- return null;
1000
+ /** @type {import('./list.d.ts').listHas} */
1001
+ var listHas = function (objects, key) {
1002
+ if (!objects) {
1003
+ return false;
960
1004
  }
961
- try {
962
- return esDefineProperty([], 'length', { value: 1 }).length !== 1;
963
- } catch (e) {
964
- // In Firefox 4-22, defining length on an array throws an exception.
965
- return true;
1005
+ return !!listGetNode(objects, key);
1006
+ };
1007
+ /** @type {import('./list.d.ts').listDelete} */
1008
+ // eslint-disable-next-line consistent-return
1009
+ var listDelete = function (objects, key) {
1010
+ if (objects) {
1011
+ return listGetNode(objects, key, true);
966
1012
  }
967
1013
  };
968
1014
 
969
- var hasPropertyDescriptors_1 = hasPropertyDescriptors;
970
-
971
- var hasDescriptors = hasPropertyDescriptors_1();
1015
+ /** @type {import('.')} */
1016
+ var sideChannelList = function getSideChannelList() {
1017
+ /** @typedef {ReturnType<typeof getSideChannelList>} Channel */
1018
+ /** @typedef {Parameters<Channel['get']>[0]} K */
1019
+ /** @typedef {Parameters<Channel['set']>[1]} V */
972
1020
 
1021
+ /** @type {import('./list.d.ts').RootNode<V, K> | undefined} */ var $o;
973
1022
 
1023
+ /** @type {Channel} */
1024
+ var channel = {
1025
+ assert: function (key) {
1026
+ if (!channel.has(key)) {
1027
+ throw new type('Side channel does not contain ' + objectInspect(key));
1028
+ }
1029
+ },
1030
+ 'delete': function (key) {
1031
+ var root = $o && $o.next;
1032
+ var deletedNode = listDelete($o, key);
1033
+ if (deletedNode && root && root === deletedNode) {
1034
+ $o = void undefined;
1035
+ }
1036
+ return !!deletedNode;
1037
+ },
1038
+ get: function (key) {
1039
+ return listGet($o, key);
1040
+ },
1041
+ has: function (key) {
1042
+ return listHas($o, key);
1043
+ },
1044
+ set: function (key, value) {
1045
+ if (!$o) {
1046
+ // Initialize the linked list as an empty node, so that we don't have to special-case handling of the first node: we can always refer to it as (previous node).next, instead of something like (list).head
1047
+ $o = {
1048
+ next: void undefined
1049
+ };
1050
+ }
1051
+ // eslint-disable-next-line no-extra-parens
1052
+ listSet(/** @type {NonNullable<typeof $o>} */ ($o), key, value);
1053
+ }
1054
+ };
1055
+ // @ts-expect-error TODO: figure out why this is erroring
1056
+ return channel;
1057
+ };
974
1058
 
975
- var $floor$1 = getIntrinsic('%Math.floor%');
1059
+ /** @type {import('.')} */
1060
+ var esObjectAtoms = Object;
976
1061
 
977
1062
  /** @type {import('.')} */
978
- var setFunctionLength = function setFunctionLength(fn, length) {
979
- if (typeof fn !== 'function') {
980
- throw new type('`fn` is not a function');
981
- }
982
- if (typeof length !== 'number' || length < 0 || length > 0xFFFFFFFF || $floor$1(length) !== length) {
983
- throw new type('`length` must be a positive 32-bit integer');
984
- }
1063
+ var esErrors = Error;
985
1064
 
986
- var loose = arguments.length > 2 && !!arguments[2];
1065
+ /** @type {import('./eval')} */
1066
+ var _eval = EvalError;
987
1067
 
988
- var functionLengthIsConfigurable = true;
989
- var functionLengthIsWritable = true;
990
- if ('length' in fn && gopd) {
991
- var desc = gopd(fn, 'length');
992
- if (desc && !desc.configurable) {
993
- functionLengthIsConfigurable = false;
994
- }
995
- if (desc && !desc.writable) {
996
- functionLengthIsWritable = false;
997
- }
998
- }
1068
+ /** @type {import('./range')} */
1069
+ var range = RangeError;
999
1070
 
1000
- if (functionLengthIsConfigurable || functionLengthIsWritable || !loose) {
1001
- if (hasDescriptors) {
1002
- defineDataProperty(/** @type {Parameters<define>[0]} */ (fn), 'length', length, true, true);
1003
- } else {
1004
- defineDataProperty(/** @type {Parameters<define>[0]} */ (fn), 'length', length);
1005
- }
1006
- }
1007
- return fn;
1008
- };
1071
+ /** @type {import('./ref')} */
1072
+ var ref = ReferenceError;
1009
1073
 
1010
- var callBind = createCommonjsModule(function (module) {
1074
+ /** @type {import('./syntax')} */
1075
+ var syntax = SyntaxError;
1011
1076
 
1077
+ /** @type {import('./uri')} */
1078
+ var uri = URIError;
1012
1079
 
1080
+ /** @type {import('./abs')} */
1081
+ var abs = Math.abs;
1013
1082
 
1083
+ /** @type {import('./floor')} */
1084
+ var floor = Math.floor;
1014
1085
 
1086
+ /** @type {import('./max')} */
1087
+ var max$1 = Math.max;
1015
1088
 
1089
+ /** @type {import('./min')} */
1090
+ var min = Math.min;
1016
1091
 
1017
- var $apply = getIntrinsic('%Function.prototype.apply%');
1018
- var $call = getIntrinsic('%Function.prototype.call%');
1019
- var $reflectApply = getIntrinsic('%Reflect.apply%', true) || functionBind.call($call, $apply);
1092
+ /** @type {import('./pow')} */
1093
+ var pow = Math.pow;
1020
1094
 
1095
+ /** @type {import('./round')} */
1096
+ var round = Math.round;
1021
1097
 
1022
- var $max = getIntrinsic('%Math.max%');
1098
+ /** @type {import('./isNaN')} */
1099
+ var _isNaN = Number.isNaN || function isNaN(a) {
1100
+ return a !== a;
1101
+ };
1023
1102
 
1024
- module.exports = function callBind(originalFunction) {
1025
- if (typeof originalFunction !== 'function') {
1026
- throw new type('a function is required');
1103
+ /** @type {import('./sign')} */
1104
+ var sign = function sign(number) {
1105
+ if (_isNaN(number) || number === 0) {
1106
+ return number;
1027
1107
  }
1028
- var func = $reflectApply(functionBind, $call, arguments);
1029
- return setFunctionLength(
1030
- func,
1031
- 1 + $max(0, originalFunction.length - (arguments.length - 1)),
1032
- true
1033
- );
1108
+ return number < 0 ? -1 : +1;
1034
1109
  };
1035
1110
 
1036
- var applyBind = function applyBind() {
1037
- return $reflectApply(functionBind, $apply, arguments);
1038
- };
1111
+ /** @type {import('./gOPD')} */
1112
+ var gOPD = Object.getOwnPropertyDescriptor;
1039
1113
 
1040
- if (esDefineProperty) {
1041
- esDefineProperty(module.exports, 'apply', { value: applyBind });
1042
- } else {
1043
- module.exports.apply = applyBind;
1044
- }
1045
- });
1114
+ /** @type {import('.')} */
1115
+ var $gOPD = gOPD;
1046
1116
 
1047
- var $indexOf = callBind(getIntrinsic('String.prototype.indexOf'));
1117
+ var gopd = $gOPD;
1048
1118
 
1049
- var callBound = function callBoundIntrinsic(name, allowMissing) {
1050
- var intrinsic = getIntrinsic(name, !!allowMissing);
1051
- if (typeof intrinsic === 'function' && $indexOf(name, '.prototype.') > -1) {
1052
- return callBind(intrinsic);
1119
+ /** @type {import('.')} */
1120
+ var $defineProperty = Object.defineProperty || false;
1121
+ if ($defineProperty) {
1122
+ try {
1123
+ $defineProperty({}, 'a', { value: 1 });
1124
+ } catch (e) {
1125
+ // IE 8 has a broken defineProperty
1126
+ $defineProperty = false;
1053
1127
  }
1054
- return intrinsic;
1055
- };
1128
+ }
1056
1129
 
1057
- const _nodeResolve_empty = {};
1130
+ var esDefineProperty = $defineProperty;
1058
1131
 
1059
- const _nodeResolve_empty$1 = /*#__PURE__*/Object.freeze({
1060
- __proto__: null,
1061
- 'default': _nodeResolve_empty
1062
- });
1132
+ /** @type {import('./shams')} */
1133
+ /* eslint complexity: [2, 18], max-statements: [2, 33] */
1134
+ var shams = function hasSymbols() {
1135
+ if (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; }
1136
+ if (typeof Symbol.iterator === 'symbol') { return true; }
1063
1137
 
1064
- const utilInspect = /*@__PURE__*/getAugmentedNamespace(_nodeResolve_empty$1);
1138
+ /** @type {{ [k in symbol]?: unknown }} */
1139
+ var obj = {};
1140
+ var sym = Symbol('test');
1141
+ var symObj = Object(sym);
1142
+ if (typeof sym === 'string') { return false; }
1065
1143
 
1066
- var hasMap = typeof Map === 'function' && Map.prototype;
1067
- var mapSizeDescriptor = Object.getOwnPropertyDescriptor && hasMap ? Object.getOwnPropertyDescriptor(Map.prototype, 'size') : null;
1068
- var mapSize = hasMap && mapSizeDescriptor && typeof mapSizeDescriptor.get === 'function' ? mapSizeDescriptor.get : null;
1069
- var mapForEach = hasMap && Map.prototype.forEach;
1070
- var hasSet = typeof Set === 'function' && Set.prototype;
1071
- var setSizeDescriptor = Object.getOwnPropertyDescriptor && hasSet ? Object.getOwnPropertyDescriptor(Set.prototype, 'size') : null;
1072
- var setSize = hasSet && setSizeDescriptor && typeof setSizeDescriptor.get === 'function' ? setSizeDescriptor.get : null;
1073
- var setForEach = hasSet && Set.prototype.forEach;
1074
- var hasWeakMap = typeof WeakMap === 'function' && WeakMap.prototype;
1075
- var weakMapHas = hasWeakMap ? WeakMap.prototype.has : null;
1076
- var hasWeakSet = typeof WeakSet === 'function' && WeakSet.prototype;
1077
- var weakSetHas = hasWeakSet ? WeakSet.prototype.has : null;
1078
- var hasWeakRef = typeof WeakRef === 'function' && WeakRef.prototype;
1079
- var weakRefDeref = hasWeakRef ? WeakRef.prototype.deref : null;
1080
- var booleanValueOf = Boolean.prototype.valueOf;
1081
- var objectToString = Object.prototype.toString;
1082
- var functionToString = Function.prototype.toString;
1083
- var $match = String.prototype.match;
1084
- var $slice = String.prototype.slice;
1085
- var $replace = String.prototype.replace;
1086
- var $toUpperCase = String.prototype.toUpperCase;
1087
- var $toLowerCase = String.prototype.toLowerCase;
1088
- var $test = RegExp.prototype.test;
1089
- var $concat = Array.prototype.concat;
1090
- var $join = Array.prototype.join;
1091
- var $arrSlice = Array.prototype.slice;
1092
- var $floor = Math.floor;
1093
- var bigIntValueOf = typeof BigInt === 'function' ? BigInt.prototype.valueOf : null;
1094
- var gOPS = Object.getOwnPropertySymbols;
1095
- var symToString = typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol' ? Symbol.prototype.toString : null;
1096
- var hasShammedSymbols = typeof Symbol === 'function' && typeof Symbol.iterator === 'object';
1097
- // ie, `has-tostringtag/shams
1098
- var toStringTag = typeof Symbol === 'function' && Symbol.toStringTag && (typeof Symbol.toStringTag === hasShammedSymbols ? 'object' : 'symbol')
1099
- ? Symbol.toStringTag
1100
- : null;
1101
- var isEnumerable = Object.prototype.propertyIsEnumerable;
1144
+ if (Object.prototype.toString.call(sym) !== '[object Symbol]') { return false; }
1145
+ if (Object.prototype.toString.call(symObj) !== '[object Symbol]') { return false; }
1102
1146
 
1103
- var gPO = (typeof Reflect === 'function' ? Reflect.getPrototypeOf : Object.getPrototypeOf) || (
1104
- [].__proto__ === Array.prototype // eslint-disable-line no-proto
1105
- ? function (O) {
1106
- return O.__proto__; // eslint-disable-line no-proto
1107
- }
1108
- : null
1109
- );
1147
+ // temp disabled per https://github.com/ljharb/object.assign/issues/17
1148
+ // if (sym instanceof Symbol) { return false; }
1149
+ // temp disabled per https://github.com/WebReflection/get-own-property-symbols/issues/4
1150
+ // if (!(symObj instanceof Symbol)) { return false; }
1151
+
1152
+ // if (typeof Symbol.prototype.toString !== 'function') { return false; }
1153
+ // if (String(sym) !== Symbol.prototype.toString.call(sym)) { return false; }
1154
+
1155
+ var symVal = 42;
1156
+ obj[sym] = symVal;
1157
+ for (var _ in obj) { return false; } // eslint-disable-line no-restricted-syntax, no-unreachable-loop
1158
+ if (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; }
1159
+
1160
+ if (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; }
1110
1161
 
1111
- function addNumericSeparator(num, str) {
1112
- if (
1113
- num === Infinity
1114
- || num === -Infinity
1115
- || num !== num
1116
- || (num && num > -1000 && num < 1000)
1117
- || $test.call(/e/, str)
1118
- ) {
1119
- return str;
1120
- }
1121
- var sepRegex = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
1122
- if (typeof num === 'number') {
1123
- var int = num < 0 ? -$floor(-num) : $floor(num); // trunc(num)
1124
- if (int !== num) {
1125
- var intStr = String(int);
1126
- var dec = $slice.call(str, intStr.length + 1);
1127
- return $replace.call(intStr, sepRegex, '$&_') + '.' + $replace.call($replace.call(dec, /([0-9]{3})/g, '$&_'), /_$/, '');
1128
- }
1129
- }
1130
- return $replace.call(str, sepRegex, '$&_');
1131
- }
1162
+ var syms = Object.getOwnPropertySymbols(obj);
1163
+ if (syms.length !== 1 || syms[0] !== sym) { return false; }
1132
1164
 
1165
+ if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) { return false; }
1133
1166
 
1134
- var inspectCustom = utilInspect.custom;
1135
- var inspectSymbol = isSymbol(inspectCustom) ? inspectCustom : null;
1167
+ if (typeof Object.getOwnPropertyDescriptor === 'function') {
1168
+ // eslint-disable-next-line no-extra-parens
1169
+ var descriptor = /** @type {PropertyDescriptor} */ (Object.getOwnPropertyDescriptor(obj, sym));
1170
+ if (descriptor.value !== symVal || descriptor.enumerable !== true) { return false; }
1171
+ }
1136
1172
 
1137
- var objectInspect = function inspect_(obj, options, depth, seen) {
1138
- var opts = options || {};
1173
+ return true;
1174
+ };
1139
1175
 
1140
- if (has$3(opts, 'quoteStyle') && (opts.quoteStyle !== 'single' && opts.quoteStyle !== 'double')) {
1141
- throw new TypeError('option "quoteStyle" must be "single" or "double"');
1142
- }
1143
- if (
1144
- has$3(opts, 'maxStringLength') && (typeof opts.maxStringLength === 'number'
1145
- ? opts.maxStringLength < 0 && opts.maxStringLength !== Infinity
1146
- : opts.maxStringLength !== null
1147
- )
1148
- ) {
1149
- throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
1150
- }
1151
- var customInspect = has$3(opts, 'customInspect') ? opts.customInspect : true;
1152
- if (typeof customInspect !== 'boolean' && customInspect !== 'symbol') {
1153
- throw new TypeError('option "customInspect", if provided, must be `true`, `false`, or `\'symbol\'`');
1154
- }
1176
+ var origSymbol = typeof Symbol !== 'undefined' && Symbol;
1155
1177
 
1156
- if (
1157
- has$3(opts, 'indent')
1158
- && opts.indent !== null
1159
- && opts.indent !== '\t'
1160
- && !(parseInt(opts.indent, 10) === opts.indent && opts.indent > 0)
1161
- ) {
1162
- throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
1163
- }
1164
- if (has$3(opts, 'numericSeparator') && typeof opts.numericSeparator !== 'boolean') {
1165
- throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
1166
- }
1167
- var numericSeparator = opts.numericSeparator;
1168
1178
 
1169
- if (typeof obj === 'undefined') {
1170
- return 'undefined';
1171
- }
1172
- if (obj === null) {
1173
- return 'null';
1174
- }
1175
- if (typeof obj === 'boolean') {
1176
- return obj ? 'true' : 'false';
1177
- }
1179
+ /** @type {import('.')} */
1180
+ var hasSymbols$1 = function hasNativeSymbols() {
1181
+ if (typeof origSymbol !== 'function') { return false; }
1182
+ if (typeof Symbol !== 'function') { return false; }
1183
+ if (typeof origSymbol('foo') !== 'symbol') { return false; }
1184
+ if (typeof Symbol('bar') !== 'symbol') { return false; }
1178
1185
 
1179
- if (typeof obj === 'string') {
1180
- return inspectString(obj, opts);
1181
- }
1182
- if (typeof obj === 'number') {
1183
- if (obj === 0) {
1184
- return Infinity / obj > 0 ? '0' : '-0';
1185
- }
1186
- var str = String(obj);
1187
- return numericSeparator ? addNumericSeparator(obj, str) : str;
1188
- }
1189
- if (typeof obj === 'bigint') {
1190
- var bigIntStr = String(obj) + 'n';
1191
- return numericSeparator ? addNumericSeparator(obj, bigIntStr) : bigIntStr;
1192
- }
1186
+ return shams();
1187
+ };
1193
1188
 
1194
- var maxDepth = typeof opts.depth === 'undefined' ? 5 : opts.depth;
1195
- if (typeof depth === 'undefined') { depth = 0; }
1196
- if (depth >= maxDepth && maxDepth > 0 && typeof obj === 'object') {
1197
- return isArray$3(obj) ? '[Array]' : '[Object]';
1198
- }
1189
+ /** @type {import('./Reflect.getPrototypeOf')} */
1190
+ var Reflect_getPrototypeOf = (typeof Reflect !== 'undefined' && Reflect.getPrototypeOf) || null;
1199
1191
 
1200
- var indent = getIndent(opts, depth);
1192
+ /** @type {import('./Object.getPrototypeOf')} */
1193
+ var Object_getPrototypeOf = esObjectAtoms.getPrototypeOf || null;
1201
1194
 
1202
- if (typeof seen === 'undefined') {
1203
- seen = [];
1204
- } else if (indexOf(seen, obj) >= 0) {
1205
- return '[Circular]';
1206
- }
1195
+ /* eslint no-invalid-this: 1 */
1207
1196
 
1208
- function inspect(value, from, noIndent) {
1209
- if (from) {
1210
- seen = $arrSlice.call(seen);
1211
- seen.push(from);
1212
- }
1213
- if (noIndent) {
1214
- var newOpts = {
1215
- depth: opts.depth
1216
- };
1217
- if (has$3(opts, 'quoteStyle')) {
1218
- newOpts.quoteStyle = opts.quoteStyle;
1219
- }
1220
- return inspect_(value, newOpts, depth + 1, seen);
1221
- }
1222
- return inspect_(value, opts, depth + 1, seen);
1223
- }
1197
+ var ERROR_MESSAGE = 'Function.prototype.bind called on incompatible ';
1198
+ var toStr = Object.prototype.toString;
1199
+ var max = Math.max;
1200
+ var funcType = '[object Function]';
1224
1201
 
1225
- if (typeof obj === 'function' && !isRegExp$1(obj)) { // in older engines, regexes are callable
1226
- var name = nameOf(obj);
1227
- var keys = arrObjKeys(obj, inspect);
1228
- return '[Function' + (name ? ': ' + name : ' (anonymous)') + ']' + (keys.length > 0 ? ' { ' + $join.call(keys, ', ') + ' }' : '');
1229
- }
1230
- if (isSymbol(obj)) {
1231
- var symString = hasShammedSymbols ? $replace.call(String(obj), /^(Symbol\(.*\))_[^)]*$/, '$1') : symToString.call(obj);
1232
- return typeof obj === 'object' && !hasShammedSymbols ? markBoxed(symString) : symString;
1233
- }
1234
- if (isElement(obj)) {
1235
- var s = '<' + $toLowerCase.call(String(obj.nodeName));
1236
- var attrs = obj.attributes || [];
1237
- for (var i = 0; i < attrs.length; i++) {
1238
- s += ' ' + attrs[i].name + '=' + wrapQuotes(quote(attrs[i].value), 'double', opts);
1239
- }
1240
- s += '>';
1241
- if (obj.childNodes && obj.childNodes.length) { s += '...'; }
1242
- s += '</' + $toLowerCase.call(String(obj.nodeName)) + '>';
1243
- return s;
1244
- }
1245
- if (isArray$3(obj)) {
1246
- if (obj.length === 0) { return '[]'; }
1247
- var xs = arrObjKeys(obj, inspect);
1248
- if (indent && !singleLineValues(xs)) {
1249
- return '[' + indentedJoin(xs, indent) + ']';
1250
- }
1251
- return '[ ' + $join.call(xs, ', ') + ' ]';
1252
- }
1253
- if (isError(obj)) {
1254
- var parts = arrObjKeys(obj, inspect);
1255
- if (!('cause' in Error.prototype) && 'cause' in obj && !isEnumerable.call(obj, 'cause')) {
1256
- return '{ [' + String(obj) + '] ' + $join.call($concat.call('[cause]: ' + inspect(obj.cause), parts), ', ') + ' }';
1257
- }
1258
- if (parts.length === 0) { return '[' + String(obj) + ']'; }
1259
- return '{ [' + String(obj) + '] ' + $join.call(parts, ', ') + ' }';
1202
+ var concatty = function concatty(a, b) {
1203
+ var arr = [];
1204
+
1205
+ for (var i = 0; i < a.length; i += 1) {
1206
+ arr[i] = a[i];
1260
1207
  }
1261
- if (typeof obj === 'object' && customInspect) {
1262
- if (inspectSymbol && typeof obj[inspectSymbol] === 'function' && utilInspect) {
1263
- return utilInspect(obj, { depth: maxDepth - depth });
1264
- } else if (customInspect !== 'symbol' && typeof obj.inspect === 'function') {
1265
- return obj.inspect();
1266
- }
1208
+ for (var j = 0; j < b.length; j += 1) {
1209
+ arr[j + a.length] = b[j];
1267
1210
  }
1268
- if (isMap(obj)) {
1269
- var mapParts = [];
1270
- if (mapForEach) {
1271
- mapForEach.call(obj, function (value, key) {
1272
- mapParts.push(inspect(key, obj, true) + ' => ' + inspect(value, obj));
1273
- });
1274
- }
1275
- return collectionOf('Map', mapSize.call(obj), mapParts, indent);
1211
+
1212
+ return arr;
1213
+ };
1214
+
1215
+ var slicy = function slicy(arrLike, offset) {
1216
+ var arr = [];
1217
+ for (var i = offset || 0, j = 0; i < arrLike.length; i += 1, j += 1) {
1218
+ arr[j] = arrLike[i];
1276
1219
  }
1277
- if (isSet(obj)) {
1278
- var setParts = [];
1279
- if (setForEach) {
1280
- setForEach.call(obj, function (value) {
1281
- setParts.push(inspect(value, obj));
1282
- });
1220
+ return arr;
1221
+ };
1222
+
1223
+ var joiny = function (arr, joiner) {
1224
+ var str = '';
1225
+ for (var i = 0; i < arr.length; i += 1) {
1226
+ str += arr[i];
1227
+ if (i + 1 < arr.length) {
1228
+ str += joiner;
1283
1229
  }
1284
- return collectionOf('Set', setSize.call(obj), setParts, indent);
1285
- }
1286
- if (isWeakMap(obj)) {
1287
- return weakCollectionOf('WeakMap');
1288
- }
1289
- if (isWeakSet(obj)) {
1290
- return weakCollectionOf('WeakSet');
1291
- }
1292
- if (isWeakRef(obj)) {
1293
- return weakCollectionOf('WeakRef');
1294
- }
1295
- if (isNumber(obj)) {
1296
- return markBoxed(inspect(Number(obj)));
1297
- }
1298
- if (isBigInt(obj)) {
1299
- return markBoxed(inspect(bigIntValueOf.call(obj)));
1300
- }
1301
- if (isBoolean(obj)) {
1302
- return markBoxed(booleanValueOf.call(obj));
1303
- }
1304
- if (isString(obj)) {
1305
- return markBoxed(inspect(String(obj)));
1306
- }
1307
- // note: in IE 8, sometimes `global !== window` but both are the prototypes of each other
1308
- /* eslint-env browser */
1309
- if (typeof window !== 'undefined' && obj === window) {
1310
- return '{ [object Window] }';
1311
1230
  }
1312
- if (obj === commonjsGlobal) {
1313
- return '{ [object globalThis] }';
1231
+ return str;
1232
+ };
1233
+
1234
+ var implementation = function bind(that) {
1235
+ var target = this;
1236
+ if (typeof target !== 'function' || toStr.apply(target) !== funcType) {
1237
+ throw new TypeError(ERROR_MESSAGE + target);
1314
1238
  }
1315
- if (!isDate(obj) && !isRegExp$1(obj)) {
1316
- var ys = arrObjKeys(obj, inspect);
1317
- var isPlainObject = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object;
1318
- var protoTag = obj instanceof Object ? '' : 'null prototype';
1319
- var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice.call(toStr(obj), 8, -1) : protoTag ? 'Object' : '';
1320
- var constructorTag = isPlainObject || typeof obj.constructor !== 'function' ? '' : obj.constructor.name ? obj.constructor.name + ' ' : '';
1321
- var tag = constructorTag + (stringTag || protoTag ? '[' + $join.call($concat.call([], stringTag || [], protoTag || []), ': ') + '] ' : '');
1322
- if (ys.length === 0) { return tag + '{}'; }
1323
- if (indent) {
1324
- return tag + '{' + indentedJoin(ys, indent) + '}';
1239
+ var args = slicy(arguments, 1);
1240
+
1241
+ var bound;
1242
+ var binder = function () {
1243
+ if (this instanceof bound) {
1244
+ var result = target.apply(
1245
+ this,
1246
+ concatty(args, arguments)
1247
+ );
1248
+ if (Object(result) === result) {
1249
+ return result;
1250
+ }
1251
+ return this;
1325
1252
  }
1326
- return tag + '{ ' + $join.call(ys, ', ') + ' }';
1253
+ return target.apply(
1254
+ that,
1255
+ concatty(args, arguments)
1256
+ );
1257
+
1258
+ };
1259
+
1260
+ var boundLength = max(0, target.length - args.length);
1261
+ var boundArgs = [];
1262
+ for (var i = 0; i < boundLength; i++) {
1263
+ boundArgs[i] = '$' + i;
1327
1264
  }
1328
- return String(obj);
1265
+
1266
+ bound = Function('binder', 'return function (' + joiny(boundArgs, ',') + '){ return binder.apply(this,arguments); }')(binder);
1267
+
1268
+ if (target.prototype) {
1269
+ var Empty = function Empty() {};
1270
+ Empty.prototype = target.prototype;
1271
+ bound.prototype = new Empty();
1272
+ Empty.prototype = null;
1273
+ }
1274
+
1275
+ return bound;
1329
1276
  };
1330
1277
 
1331
- function wrapQuotes(s, defaultStyle, opts) {
1332
- var quoteChar = (opts.quoteStyle || defaultStyle) === 'double' ? '"' : "'";
1333
- return quoteChar + s + quoteChar;
1334
- }
1278
+ var functionBind = Function.prototype.bind || implementation;
1335
1279
 
1336
- function quote(s) {
1337
- return $replace.call(String(s), /"/g, '&quot;');
1338
- }
1280
+ /** @type {import('./functionCall')} */
1281
+ var functionCall = Function.prototype.call;
1339
1282
 
1340
- function isArray$3(obj) { return toStr(obj) === '[object Array]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
1341
- function isDate(obj) { return toStr(obj) === '[object Date]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
1342
- function isRegExp$1(obj) { return toStr(obj) === '[object RegExp]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
1343
- function isError(obj) { return toStr(obj) === '[object Error]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
1344
- function isString(obj) { return toStr(obj) === '[object String]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
1345
- function isNumber(obj) { return toStr(obj) === '[object Number]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
1346
- function isBoolean(obj) { return toStr(obj) === '[object Boolean]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
1283
+ /** @type {import('./functionApply')} */
1284
+ var functionApply = Function.prototype.apply;
1347
1285
 
1348
- // Symbol and BigInt do have Symbol.toStringTag by spec, so that can't be used to eliminate false positives
1349
- function isSymbol(obj) {
1350
- if (hasShammedSymbols) {
1351
- return obj && typeof obj === 'object' && obj instanceof Symbol;
1352
- }
1353
- if (typeof obj === 'symbol') {
1354
- return true;
1355
- }
1356
- if (!obj || typeof obj !== 'object' || !symToString) {
1357
- return false;
1358
- }
1359
- try {
1360
- symToString.call(obj);
1361
- return true;
1362
- } catch (e) {}
1363
- return false;
1364
- }
1286
+ /** @type {import('./reflectApply')} */
1287
+ var reflectApply = typeof Reflect !== 'undefined' && Reflect && Reflect.apply;
1365
1288
 
1366
- function isBigInt(obj) {
1367
- if (!obj || typeof obj !== 'object' || !bigIntValueOf) {
1368
- return false;
1369
- }
1370
- try {
1371
- bigIntValueOf.call(obj);
1372
- return true;
1373
- } catch (e) {}
1374
- return false;
1375
- }
1289
+ /** @type {import('./actualApply')} */
1290
+ var actualApply = reflectApply || functionBind.call(functionCall, functionApply);
1376
1291
 
1377
- var hasOwn = Object.prototype.hasOwnProperty || function (key) { return key in this; };
1378
- function has$3(obj, key) {
1379
- return hasOwn.call(obj, key);
1380
- }
1292
+ /** @type {(args: [Function, thisArg?: unknown, ...args: unknown[]]) => Function} TODO FIXME, find a way to use import('.') */
1293
+ var callBindApplyHelpers = function callBindBasic(args) {
1294
+ if (args.length < 1 || typeof args[0] !== 'function') {
1295
+ throw new type('a function is required');
1296
+ }
1297
+ return actualApply(functionBind, functionCall, args);
1298
+ };
1381
1299
 
1382
- function toStr(obj) {
1383
- return objectToString.call(obj);
1300
+ var hasProtoAccessor;
1301
+ try {
1302
+ // eslint-disable-next-line no-extra-parens, no-proto
1303
+ hasProtoAccessor = /** @type {{ __proto__?: typeof Array.prototype }} */ ([]).__proto__ === Array.prototype;
1304
+ } catch (e) {
1305
+ if (!e || typeof e !== 'object' || !('code' in e) || e.code !== 'ERR_PROTO_ACCESS') {
1306
+ throw e;
1307
+ }
1384
1308
  }
1385
1309
 
1386
- function nameOf(f) {
1387
- if (f.name) { return f.name; }
1388
- var m = $match.call(functionToString.call(f), /^function\s*([\w$]+)/);
1389
- if (m) { return m[1]; }
1390
- return null;
1391
- }
1310
+ // eslint-disable-next-line no-extra-parens
1311
+ var desc = !!hasProtoAccessor && gopd && gopd(Object.prototype, /** @type {keyof typeof Object.prototype} */ ('__proto__'));
1392
1312
 
1393
- function indexOf(xs, x) {
1394
- if (xs.indexOf) { return xs.indexOf(x); }
1395
- for (var i = 0, l = xs.length; i < l; i++) {
1396
- if (xs[i] === x) { return i; }
1397
- }
1398
- return -1;
1399
- }
1313
+ var $Object = Object;
1314
+ var $getPrototypeOf = $Object.getPrototypeOf;
1315
+
1316
+ /** @type {import('./get')} */
1317
+ var get = desc && typeof desc.get === 'function'
1318
+ ? callBindApplyHelpers([desc.get])
1319
+ : typeof $getPrototypeOf === 'function'
1320
+ ? /** @type {import('./get')} */ function getDunder(value) {
1321
+ // eslint-disable-next-line eqeqeq
1322
+ return $getPrototypeOf(value == null ? value : $Object(value));
1323
+ }
1324
+ : false;
1400
1325
 
1401
- function isMap(x) {
1402
- if (!mapSize || !x || typeof x !== 'object') {
1403
- return false;
1404
- }
1405
- try {
1406
- mapSize.call(x);
1407
- try {
1408
- setSize.call(x);
1409
- } catch (s) {
1410
- return true;
1411
- }
1412
- return x instanceof Map; // core-js workaround, pre-v2.5.0
1413
- } catch (e) {}
1414
- return false;
1415
- }
1326
+ /** @type {import('.')} */
1327
+ var getProto = Reflect_getPrototypeOf
1328
+ ? function getProto(O) {
1329
+ // @ts-expect-error TS can't narrow inside a closure, for some reason
1330
+ return Reflect_getPrototypeOf(O);
1331
+ }
1332
+ : Object_getPrototypeOf
1333
+ ? function getProto(O) {
1334
+ if (!O || (typeof O !== 'object' && typeof O !== 'function')) {
1335
+ throw new TypeError('getProto: not an object');
1336
+ }
1337
+ // @ts-expect-error TS can't narrow inside a closure, for some reason
1338
+ return Object_getPrototypeOf(O);
1339
+ }
1340
+ : get
1341
+ ? function getProto(O) {
1342
+ // @ts-expect-error TS can't narrow inside a closure, for some reason
1343
+ return get(O);
1344
+ }
1345
+ : null;
1346
+
1347
+ var call = Function.prototype.call;
1348
+ var $hasOwn = Object.prototype.hasOwnProperty;
1349
+
1350
+
1351
+ /** @type {import('.')} */
1352
+ var hasown = functionBind.call(call, $hasOwn);
1353
+
1354
+ var undefined$1;
1355
+
1356
+
1357
+
1358
+
1359
+
1360
+
1361
+
1362
+
1363
+
1364
+
1365
+
1366
+
1367
+
1368
+
1369
+
1370
+
1371
+
1372
+
1373
+
1374
+ var $Function = Function;
1375
+
1376
+ // eslint-disable-next-line consistent-return
1377
+ var getEvalledConstructor = function (expressionSyntax) {
1378
+ try {
1379
+ return $Function('"use strict"; return (' + expressionSyntax + ').constructor;')();
1380
+ } catch (e) {}
1381
+ };
1382
+
1383
+
1384
+
1385
+
1386
+ var throwTypeError = function () {
1387
+ throw new type();
1388
+ };
1389
+ var ThrowTypeError = gopd
1390
+ ? (function () {
1391
+ try {
1392
+ return throwTypeError;
1393
+ } catch (calleeThrows) {
1394
+ try {
1395
+ // IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')
1396
+ return gopd(arguments, 'callee').get;
1397
+ } catch (gOPDthrows) {
1398
+ return throwTypeError;
1399
+ }
1400
+ }
1401
+ }())
1402
+ : throwTypeError;
1403
+
1404
+ var hasSymbols = hasSymbols$1();
1405
+
1406
+
1407
+
1408
+
1409
+
1410
+
1411
+
1412
+
1413
+ var needsEval = {};
1414
+
1415
+ var TypedArray = typeof Uint8Array === 'undefined' || !getProto ? undefined$1 : getProto(Uint8Array);
1416
+
1417
+ var INTRINSICS = {
1418
+ __proto__: null,
1419
+ '%AggregateError%': typeof AggregateError === 'undefined' ? undefined$1 : AggregateError,
1420
+ '%Array%': Array,
1421
+ '%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined$1 : ArrayBuffer,
1422
+ '%ArrayIteratorPrototype%': hasSymbols && getProto ? getProto([][Symbol.iterator]()) : undefined$1,
1423
+ '%AsyncFromSyncIteratorPrototype%': undefined$1,
1424
+ '%AsyncFunction%': needsEval,
1425
+ '%AsyncGenerator%': needsEval,
1426
+ '%AsyncGeneratorFunction%': needsEval,
1427
+ '%AsyncIteratorPrototype%': needsEval,
1428
+ '%Atomics%': typeof Atomics === 'undefined' ? undefined$1 : Atomics,
1429
+ '%BigInt%': typeof BigInt === 'undefined' ? undefined$1 : BigInt,
1430
+ '%BigInt64Array%': typeof BigInt64Array === 'undefined' ? undefined$1 : BigInt64Array,
1431
+ '%BigUint64Array%': typeof BigUint64Array === 'undefined' ? undefined$1 : BigUint64Array,
1432
+ '%Boolean%': Boolean,
1433
+ '%DataView%': typeof DataView === 'undefined' ? undefined$1 : DataView,
1434
+ '%Date%': Date,
1435
+ '%decodeURI%': decodeURI,
1436
+ '%decodeURIComponent%': decodeURIComponent,
1437
+ '%encodeURI%': encodeURI,
1438
+ '%encodeURIComponent%': encodeURIComponent,
1439
+ '%Error%': esErrors,
1440
+ '%eval%': eval, // eslint-disable-line no-eval
1441
+ '%EvalError%': _eval,
1442
+ '%Float16Array%': typeof Float16Array === 'undefined' ? undefined$1 : Float16Array,
1443
+ '%Float32Array%': typeof Float32Array === 'undefined' ? undefined$1 : Float32Array,
1444
+ '%Float64Array%': typeof Float64Array === 'undefined' ? undefined$1 : Float64Array,
1445
+ '%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined$1 : FinalizationRegistry,
1446
+ '%Function%': $Function,
1447
+ '%GeneratorFunction%': needsEval,
1448
+ '%Int8Array%': typeof Int8Array === 'undefined' ? undefined$1 : Int8Array,
1449
+ '%Int16Array%': typeof Int16Array === 'undefined' ? undefined$1 : Int16Array,
1450
+ '%Int32Array%': typeof Int32Array === 'undefined' ? undefined$1 : Int32Array,
1451
+ '%isFinite%': isFinite,
1452
+ '%isNaN%': isNaN,
1453
+ '%IteratorPrototype%': hasSymbols && getProto ? getProto(getProto([][Symbol.iterator]())) : undefined$1,
1454
+ '%JSON%': typeof JSON === 'object' ? JSON : undefined$1,
1455
+ '%Map%': typeof Map === 'undefined' ? undefined$1 : Map,
1456
+ '%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols || !getProto ? undefined$1 : getProto(new Map()[Symbol.iterator]()),
1457
+ '%Math%': Math,
1458
+ '%Number%': Number,
1459
+ '%Object%': esObjectAtoms,
1460
+ '%Object.getOwnPropertyDescriptor%': gopd,
1461
+ '%parseFloat%': parseFloat,
1462
+ '%parseInt%': parseInt,
1463
+ '%Promise%': typeof Promise === 'undefined' ? undefined$1 : Promise,
1464
+ '%Proxy%': typeof Proxy === 'undefined' ? undefined$1 : Proxy,
1465
+ '%RangeError%': range,
1466
+ '%ReferenceError%': ref,
1467
+ '%Reflect%': typeof Reflect === 'undefined' ? undefined$1 : Reflect,
1468
+ '%RegExp%': RegExp,
1469
+ '%Set%': typeof Set === 'undefined' ? undefined$1 : Set,
1470
+ '%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols || !getProto ? undefined$1 : getProto(new Set()[Symbol.iterator]()),
1471
+ '%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined$1 : SharedArrayBuffer,
1472
+ '%String%': String,
1473
+ '%StringIteratorPrototype%': hasSymbols && getProto ? getProto(''[Symbol.iterator]()) : undefined$1,
1474
+ '%Symbol%': hasSymbols ? Symbol : undefined$1,
1475
+ '%SyntaxError%': syntax,
1476
+ '%ThrowTypeError%': ThrowTypeError,
1477
+ '%TypedArray%': TypedArray,
1478
+ '%TypeError%': type,
1479
+ '%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined$1 : Uint8Array,
1480
+ '%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined$1 : Uint8ClampedArray,
1481
+ '%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined$1 : Uint16Array,
1482
+ '%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined$1 : Uint32Array,
1483
+ '%URIError%': uri,
1484
+ '%WeakMap%': typeof WeakMap === 'undefined' ? undefined$1 : WeakMap,
1485
+ '%WeakRef%': typeof WeakRef === 'undefined' ? undefined$1 : WeakRef,
1486
+ '%WeakSet%': typeof WeakSet === 'undefined' ? undefined$1 : WeakSet,
1487
+
1488
+ '%Function.prototype.call%': functionCall,
1489
+ '%Function.prototype.apply%': functionApply,
1490
+ '%Object.defineProperty%': esDefineProperty,
1491
+ '%Object.getPrototypeOf%': Object_getPrototypeOf,
1492
+ '%Math.abs%': abs,
1493
+ '%Math.floor%': floor,
1494
+ '%Math.max%': max$1,
1495
+ '%Math.min%': min,
1496
+ '%Math.pow%': pow,
1497
+ '%Math.round%': round,
1498
+ '%Math.sign%': sign,
1499
+ '%Reflect.getPrototypeOf%': Reflect_getPrototypeOf
1500
+ };
1501
+
1502
+ var doEval = function doEval(name) {
1503
+ var value;
1504
+ if (name === '%AsyncFunction%') {
1505
+ value = getEvalledConstructor('async function () {}');
1506
+ } else if (name === '%GeneratorFunction%') {
1507
+ value = getEvalledConstructor('function* () {}');
1508
+ } else if (name === '%AsyncGeneratorFunction%') {
1509
+ value = getEvalledConstructor('async function* () {}');
1510
+ } else if (name === '%AsyncGenerator%') {
1511
+ var fn = doEval('%AsyncGeneratorFunction%');
1512
+ if (fn) {
1513
+ value = fn.prototype;
1514
+ }
1515
+ } else if (name === '%AsyncIteratorPrototype%') {
1516
+ var gen = doEval('%AsyncGenerator%');
1517
+ if (gen && getProto) {
1518
+ value = getProto(gen.prototype);
1519
+ }
1520
+ }
1521
+
1522
+ INTRINSICS[name] = value;
1523
+
1524
+ return value;
1525
+ };
1416
1526
 
1417
- function isWeakMap(x) {
1418
- if (!weakMapHas || !x || typeof x !== 'object') {
1419
- return false;
1420
- }
1421
- try {
1422
- weakMapHas.call(x, weakMapHas);
1423
- try {
1424
- weakSetHas.call(x, weakSetHas);
1425
- } catch (s) {
1426
- return true;
1427
- }
1428
- return x instanceof WeakMap; // core-js workaround, pre-v2.5.0
1429
- } catch (e) {}
1430
- return false;
1431
- }
1527
+ var LEGACY_ALIASES = {
1528
+ __proto__: null,
1529
+ '%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'],
1530
+ '%ArrayPrototype%': ['Array', 'prototype'],
1531
+ '%ArrayProto_entries%': ['Array', 'prototype', 'entries'],
1532
+ '%ArrayProto_forEach%': ['Array', 'prototype', 'forEach'],
1533
+ '%ArrayProto_keys%': ['Array', 'prototype', 'keys'],
1534
+ '%ArrayProto_values%': ['Array', 'prototype', 'values'],
1535
+ '%AsyncFunctionPrototype%': ['AsyncFunction', 'prototype'],
1536
+ '%AsyncGenerator%': ['AsyncGeneratorFunction', 'prototype'],
1537
+ '%AsyncGeneratorPrototype%': ['AsyncGeneratorFunction', 'prototype', 'prototype'],
1538
+ '%BooleanPrototype%': ['Boolean', 'prototype'],
1539
+ '%DataViewPrototype%': ['DataView', 'prototype'],
1540
+ '%DatePrototype%': ['Date', 'prototype'],
1541
+ '%ErrorPrototype%': ['Error', 'prototype'],
1542
+ '%EvalErrorPrototype%': ['EvalError', 'prototype'],
1543
+ '%Float32ArrayPrototype%': ['Float32Array', 'prototype'],
1544
+ '%Float64ArrayPrototype%': ['Float64Array', 'prototype'],
1545
+ '%FunctionPrototype%': ['Function', 'prototype'],
1546
+ '%Generator%': ['GeneratorFunction', 'prototype'],
1547
+ '%GeneratorPrototype%': ['GeneratorFunction', 'prototype', 'prototype'],
1548
+ '%Int8ArrayPrototype%': ['Int8Array', 'prototype'],
1549
+ '%Int16ArrayPrototype%': ['Int16Array', 'prototype'],
1550
+ '%Int32ArrayPrototype%': ['Int32Array', 'prototype'],
1551
+ '%JSONParse%': ['JSON', 'parse'],
1552
+ '%JSONStringify%': ['JSON', 'stringify'],
1553
+ '%MapPrototype%': ['Map', 'prototype'],
1554
+ '%NumberPrototype%': ['Number', 'prototype'],
1555
+ '%ObjectPrototype%': ['Object', 'prototype'],
1556
+ '%ObjProto_toString%': ['Object', 'prototype', 'toString'],
1557
+ '%ObjProto_valueOf%': ['Object', 'prototype', 'valueOf'],
1558
+ '%PromisePrototype%': ['Promise', 'prototype'],
1559
+ '%PromiseProto_then%': ['Promise', 'prototype', 'then'],
1560
+ '%Promise_all%': ['Promise', 'all'],
1561
+ '%Promise_reject%': ['Promise', 'reject'],
1562
+ '%Promise_resolve%': ['Promise', 'resolve'],
1563
+ '%RangeErrorPrototype%': ['RangeError', 'prototype'],
1564
+ '%ReferenceErrorPrototype%': ['ReferenceError', 'prototype'],
1565
+ '%RegExpPrototype%': ['RegExp', 'prototype'],
1566
+ '%SetPrototype%': ['Set', 'prototype'],
1567
+ '%SharedArrayBufferPrototype%': ['SharedArrayBuffer', 'prototype'],
1568
+ '%StringPrototype%': ['String', 'prototype'],
1569
+ '%SymbolPrototype%': ['Symbol', 'prototype'],
1570
+ '%SyntaxErrorPrototype%': ['SyntaxError', 'prototype'],
1571
+ '%TypedArrayPrototype%': ['TypedArray', 'prototype'],
1572
+ '%TypeErrorPrototype%': ['TypeError', 'prototype'],
1573
+ '%Uint8ArrayPrototype%': ['Uint8Array', 'prototype'],
1574
+ '%Uint8ClampedArrayPrototype%': ['Uint8ClampedArray', 'prototype'],
1575
+ '%Uint16ArrayPrototype%': ['Uint16Array', 'prototype'],
1576
+ '%Uint32ArrayPrototype%': ['Uint32Array', 'prototype'],
1577
+ '%URIErrorPrototype%': ['URIError', 'prototype'],
1578
+ '%WeakMapPrototype%': ['WeakMap', 'prototype'],
1579
+ '%WeakSetPrototype%': ['WeakSet', 'prototype']
1580
+ };
1432
1581
 
1433
- function isWeakRef(x) {
1434
- if (!weakRefDeref || !x || typeof x !== 'object') {
1435
- return false;
1436
- }
1437
- try {
1438
- weakRefDeref.call(x);
1439
- return true;
1440
- } catch (e) {}
1441
- return false;
1442
- }
1443
1582
 
1444
- function isSet(x) {
1445
- if (!setSize || !x || typeof x !== 'object') {
1446
- return false;
1447
- }
1448
- try {
1449
- setSize.call(x);
1450
- try {
1451
- mapSize.call(x);
1452
- } catch (m) {
1453
- return true;
1454
- }
1455
- return x instanceof Set; // core-js workaround, pre-v2.5.0
1456
- } catch (e) {}
1457
- return false;
1458
- }
1459
1583
 
1460
- function isWeakSet(x) {
1461
- if (!weakSetHas || !x || typeof x !== 'object') {
1462
- return false;
1463
- }
1464
- try {
1465
- weakSetHas.call(x, weakSetHas);
1466
- try {
1467
- weakMapHas.call(x, weakMapHas);
1468
- } catch (s) {
1469
- return true;
1470
- }
1471
- return x instanceof WeakSet; // core-js workaround, pre-v2.5.0
1472
- } catch (e) {}
1473
- return false;
1474
- }
1584
+ var $concat = functionBind.call(functionCall, Array.prototype.concat);
1585
+ var $spliceApply = functionBind.call(functionApply, Array.prototype.splice);
1586
+ var $replace = functionBind.call(functionCall, String.prototype.replace);
1587
+ var $strSlice = functionBind.call(functionCall, String.prototype.slice);
1588
+ var $exec = functionBind.call(functionCall, RegExp.prototype.exec);
1475
1589
 
1476
- function isElement(x) {
1477
- if (!x || typeof x !== 'object') { return false; }
1478
- if (typeof HTMLElement !== 'undefined' && x instanceof HTMLElement) {
1479
- return true;
1480
- }
1481
- return typeof x.nodeName === 'string' && typeof x.getAttribute === 'function';
1482
- }
1590
+ /* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
1591
+ var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
1592
+ var reEscapeChar = /\\(\\)?/g; /** Used to match backslashes in property paths. */
1593
+ var stringToPath = function stringToPath(string) {
1594
+ var first = $strSlice(string, 0, 1);
1595
+ var last = $strSlice(string, -1);
1596
+ if (first === '%' && last !== '%') {
1597
+ throw new syntax('invalid intrinsic syntax, expected closing `%`');
1598
+ } else if (last === '%' && first !== '%') {
1599
+ throw new syntax('invalid intrinsic syntax, expected opening `%`');
1600
+ }
1601
+ var result = [];
1602
+ $replace(string, rePropName, function (match, number, quote, subString) {
1603
+ result[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : number || match;
1604
+ });
1605
+ return result;
1606
+ };
1607
+ /* end adaptation */
1483
1608
 
1484
- function inspectString(str, opts) {
1485
- if (str.length > opts.maxStringLength) {
1486
- var remaining = str.length - opts.maxStringLength;
1487
- var trailer = '... ' + remaining + ' more character' + (remaining > 1 ? 's' : '');
1488
- return inspectString($slice.call(str, 0, opts.maxStringLength), opts) + trailer;
1489
- }
1490
- // eslint-disable-next-line no-control-regex
1491
- var s = $replace.call($replace.call(str, /(['\\])/g, '\\$1'), /[\x00-\x1f]/g, lowbyte);
1492
- return wrapQuotes(s, 'single', opts);
1493
- }
1609
+ var getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {
1610
+ var intrinsicName = name;
1611
+ var alias;
1612
+ if (hasown(LEGACY_ALIASES, intrinsicName)) {
1613
+ alias = LEGACY_ALIASES[intrinsicName];
1614
+ intrinsicName = '%' + alias[0] + '%';
1615
+ }
1494
1616
 
1495
- function lowbyte(c) {
1496
- var n = c.charCodeAt(0);
1497
- var x = {
1498
- 8: 'b',
1499
- 9: 't',
1500
- 10: 'n',
1501
- 12: 'f',
1502
- 13: 'r'
1503
- }[n];
1504
- if (x) { return '\\' + x; }
1505
- return '\\x' + (n < 0x10 ? '0' : '') + $toUpperCase.call(n.toString(16));
1506
- }
1617
+ if (hasown(INTRINSICS, intrinsicName)) {
1618
+ var value = INTRINSICS[intrinsicName];
1619
+ if (value === needsEval) {
1620
+ value = doEval(intrinsicName);
1621
+ }
1622
+ if (typeof value === 'undefined' && !allowMissing) {
1623
+ throw new type('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
1624
+ }
1507
1625
 
1508
- function markBoxed(str) {
1509
- return 'Object(' + str + ')';
1510
- }
1626
+ return {
1627
+ alias: alias,
1628
+ name: intrinsicName,
1629
+ value: value
1630
+ };
1631
+ }
1511
1632
 
1512
- function weakCollectionOf(type) {
1513
- return type + ' { ? }';
1514
- }
1633
+ throw new syntax('intrinsic ' + name + ' does not exist!');
1634
+ };
1515
1635
 
1516
- function collectionOf(type, size, entries, indent) {
1517
- var joinedEntries = indent ? indentedJoin(entries, indent) : $join.call(entries, ', ');
1518
- return type + ' (' + size + ') {' + joinedEntries + '}';
1519
- }
1636
+ var getIntrinsic = function GetIntrinsic(name, allowMissing) {
1637
+ if (typeof name !== 'string' || name.length === 0) {
1638
+ throw new type('intrinsic name must be a non-empty string');
1639
+ }
1640
+ if (arguments.length > 1 && typeof allowMissing !== 'boolean') {
1641
+ throw new type('"allowMissing" argument must be a boolean');
1642
+ }
1520
1643
 
1521
- function singleLineValues(xs) {
1522
- for (var i = 0; i < xs.length; i++) {
1523
- if (indexOf(xs[i], '\n') >= 0) {
1524
- return false;
1525
- }
1526
- }
1527
- return true;
1528
- }
1644
+ if ($exec(/^%?[^%]*%?$/, name) === null) {
1645
+ throw new syntax('`%` may not be present anywhere but at the beginning and end of the intrinsic name');
1646
+ }
1647
+ var parts = stringToPath(name);
1648
+ var intrinsicBaseName = parts.length > 0 ? parts[0] : '';
1529
1649
 
1530
- function getIndent(opts, depth) {
1531
- var baseIndent;
1532
- if (opts.indent === '\t') {
1533
- baseIndent = '\t';
1534
- } else if (typeof opts.indent === 'number' && opts.indent > 0) {
1535
- baseIndent = $join.call(Array(opts.indent + 1), ' ');
1536
- } else {
1537
- return null;
1538
- }
1539
- return {
1540
- base: baseIndent,
1541
- prev: $join.call(Array(depth + 1), baseIndent)
1542
- };
1543
- }
1650
+ var intrinsic = getBaseIntrinsic('%' + intrinsicBaseName + '%', allowMissing);
1651
+ var intrinsicRealName = intrinsic.name;
1652
+ var value = intrinsic.value;
1653
+ var skipFurtherCaching = false;
1544
1654
 
1545
- function indentedJoin(xs, indent) {
1546
- if (xs.length === 0) { return ''; }
1547
- var lineJoiner = '\n' + indent.prev + indent.base;
1548
- return lineJoiner + $join.call(xs, ',' + lineJoiner) + '\n' + indent.prev;
1549
- }
1655
+ var alias = intrinsic.alias;
1656
+ if (alias) {
1657
+ intrinsicBaseName = alias[0];
1658
+ $spliceApply(parts, $concat([0, 1], alias));
1659
+ }
1550
1660
 
1551
- function arrObjKeys(obj, inspect) {
1552
- var isArr = isArray$3(obj);
1553
- var xs = [];
1554
- if (isArr) {
1555
- xs.length = obj.length;
1556
- for (var i = 0; i < obj.length; i++) {
1557
- xs[i] = has$3(obj, i) ? inspect(obj[i], obj) : '';
1558
- }
1559
- }
1560
- var syms = typeof gOPS === 'function' ? gOPS(obj) : [];
1561
- var symMap;
1562
- if (hasShammedSymbols) {
1563
- symMap = {};
1564
- for (var k = 0; k < syms.length; k++) {
1565
- symMap['$' + syms[k]] = syms[k];
1566
- }
1567
- }
1661
+ for (var i = 1, isOwn = true; i < parts.length; i += 1) {
1662
+ var part = parts[i];
1663
+ var first = $strSlice(part, 0, 1);
1664
+ var last = $strSlice(part, -1);
1665
+ if (
1666
+ (
1667
+ (first === '"' || first === "'" || first === '`')
1668
+ || (last === '"' || last === "'" || last === '`')
1669
+ )
1670
+ && first !== last
1671
+ ) {
1672
+ throw new syntax('property names with quotes must have matching quotes');
1673
+ }
1674
+ if (part === 'constructor' || !isOwn) {
1675
+ skipFurtherCaching = true;
1676
+ }
1568
1677
 
1569
- for (var key in obj) { // eslint-disable-line no-restricted-syntax
1570
- if (!has$3(obj, key)) { continue; } // eslint-disable-line no-restricted-syntax, no-continue
1571
- if (isArr && String(Number(key)) === key && key < obj.length) { continue; } // eslint-disable-line no-restricted-syntax, no-continue
1572
- if (hasShammedSymbols && symMap['$' + key] instanceof Symbol) {
1573
- // this is to prevent shammed Symbols, which are stored as strings, from being included in the string key section
1574
- continue; // eslint-disable-line no-restricted-syntax, no-continue
1575
- } else if ($test.call(/[^\w$]/, key)) {
1576
- xs.push(inspect(key, obj) + ': ' + inspect(obj[key], obj));
1577
- } else {
1578
- xs.push(key + ': ' + inspect(obj[key], obj));
1579
- }
1580
- }
1581
- if (typeof gOPS === 'function') {
1582
- for (var j = 0; j < syms.length; j++) {
1583
- if (isEnumerable.call(obj, syms[j])) {
1584
- xs.push('[' + inspect(syms[j]) + ']: ' + inspect(obj[syms[j]], obj));
1585
- }
1586
- }
1587
- }
1588
- return xs;
1589
- }
1678
+ intrinsicBaseName += '.' + part;
1679
+ intrinsicRealName = '%' + intrinsicBaseName + '%';
1590
1680
 
1591
- var $WeakMap = getIntrinsic('%WeakMap%', true);
1592
- var $Map = getIntrinsic('%Map%', true);
1681
+ if (hasown(INTRINSICS, intrinsicRealName)) {
1682
+ value = INTRINSICS[intrinsicRealName];
1683
+ } else if (value != null) {
1684
+ if (!(part in value)) {
1685
+ if (!allowMissing) {
1686
+ throw new type('base intrinsic for ' + name + ' exists, but the property is not available.');
1687
+ }
1688
+ return void undefined$1;
1689
+ }
1690
+ if (gopd && (i + 1) >= parts.length) {
1691
+ var desc = gopd(value, part);
1692
+ isOwn = !!desc;
1593
1693
 
1594
- var $weakMapGet = callBound('WeakMap.prototype.get', true);
1595
- var $weakMapSet = callBound('WeakMap.prototype.set', true);
1596
- var $weakMapHas = callBound('WeakMap.prototype.has', true);
1597
- var $mapGet = callBound('Map.prototype.get', true);
1598
- var $mapSet = callBound('Map.prototype.set', true);
1599
- var $mapHas = callBound('Map.prototype.has', true);
1694
+ // By convention, when a data property is converted to an accessor
1695
+ // property to emulate a data property that does not suffer from
1696
+ // the override mistake, that accessor's getter is marked with
1697
+ // an `originalValue` property. Here, when we detect this, we
1698
+ // uphold the illusion by pretending to see that original data
1699
+ // property, i.e., returning the value rather than the getter
1700
+ // itself.
1701
+ if (isOwn && 'get' in desc && !('originalValue' in desc.get)) {
1702
+ value = desc.get;
1703
+ } else {
1704
+ value = value[part];
1705
+ }
1706
+ } else {
1707
+ isOwn = hasown(value, part);
1708
+ value = value[part];
1709
+ }
1600
1710
 
1601
- /*
1602
- * This function traverses the list returning the node corresponding to the given key.
1603
- *
1604
- * That node is also moved to the head of the list, so that if it's accessed again we don't need to traverse the whole list. By doing so, all the recently used nodes can be accessed relatively quickly.
1605
- */
1606
- /** @type {import('.').listGetNode} */
1607
- var listGetNode = function (list, key) { // eslint-disable-line consistent-return
1608
- /** @type {typeof list | NonNullable<(typeof list)['next']>} */
1609
- var prev = list;
1610
- /** @type {(typeof list)['next']} */
1611
- var curr;
1612
- for (; (curr = prev.next) !== null; prev = curr) {
1613
- if (curr.key === key) {
1614
- prev.next = curr.next;
1615
- // eslint-disable-next-line no-extra-parens
1616
- curr.next = /** @type {NonNullable<typeof list.next>} */ (list.next);
1617
- list.next = curr; // eslint-disable-line no-param-reassign
1618
- return curr;
1711
+ if (isOwn && !skipFurtherCaching) {
1712
+ INTRINSICS[intrinsicRealName] = value;
1713
+ }
1619
1714
  }
1620
1715
  }
1716
+ return value;
1621
1717
  };
1622
1718
 
1623
- /** @type {import('.').listGet} */
1624
- var listGet = function (objects, key) {
1625
- var node = listGetNode(objects, key);
1626
- return node && node.value;
1627
- };
1628
- /** @type {import('.').listSet} */
1629
- var listSet = function (objects, key, value) {
1630
- var node = listGetNode(objects, key);
1631
- if (node) {
1632
- node.value = value;
1633
- } else {
1634
- // Prepend the new node to the beginning of the list
1635
- objects.next = /** @type {import('.').ListNode<typeof value>} */ ({ // eslint-disable-line no-param-reassign, no-extra-parens
1636
- key: key,
1637
- next: objects.next,
1638
- value: value
1639
- });
1719
+ /** @type {(thisArg: string, searchString: string, position?: number) => number} */
1720
+ var $indexOf = callBindApplyHelpers([getIntrinsic('%String.prototype.indexOf%')]);
1721
+
1722
+ /** @type {import('.')} */
1723
+ var callBound = function callBoundIntrinsic(name, allowMissing) {
1724
+ /* eslint no-extra-parens: 0 */
1725
+
1726
+ var intrinsic = /** @type {(this: unknown, ...args: unknown[]) => unknown} */ (getIntrinsic(name, !!allowMissing));
1727
+ if (typeof intrinsic === 'function' && $indexOf(name, '.prototype.') > -1) {
1728
+ return callBindApplyHelpers(/** @type {const} */ ([intrinsic]));
1640
1729
  }
1730
+ return intrinsic;
1641
1731
  };
1642
- /** @type {import('.').listHas} */
1643
- var listHas = function (objects, key) {
1644
- return !!listGetNode(objects, key);
1645
- };
1732
+
1733
+ var $Map = getIntrinsic('%Map%', true);
1734
+
1735
+ /** @type {<K, V>(thisArg: Map<K, V>, key: K) => V} */
1736
+ var $mapGet = callBound('Map.prototype.get', true);
1737
+ /** @type {<K, V>(thisArg: Map<K, V>, key: K, value: V) => void} */
1738
+ var $mapSet = callBound('Map.prototype.set', true);
1739
+ /** @type {<K, V>(thisArg: Map<K, V>, key: K) => boolean} */
1740
+ var $mapHas = callBound('Map.prototype.has', true);
1741
+ /** @type {<K, V>(thisArg: Map<K, V>, key: K) => boolean} */
1742
+ var $mapDelete = callBound('Map.prototype.delete', true);
1743
+ /** @type {<K, V>(thisArg: Map<K, V>) => number} */
1744
+ var $mapSize = callBound('Map.prototype.size', true);
1646
1745
 
1647
1746
  /** @type {import('.')} */
1648
- var sideChannel = function getSideChannel() {
1649
- /** @type {WeakMap<object, unknown>} */ var $wm;
1650
- /** @type {Map<object, unknown>} */ var $m;
1651
- /** @type {import('.').RootNode<unknown>} */ var $o;
1747
+ var sideChannelMap = !!$Map && /** @type {Exclude<import('.'), false>} */ function getSideChannelMap() {
1748
+ /** @typedef {ReturnType<typeof getSideChannelMap>} Channel */
1749
+ /** @typedef {Parameters<Channel['get']>[0]} K */
1750
+ /** @typedef {Parameters<Channel['set']>[1]} V */
1751
+
1752
+ /** @type {Map<K, V> | undefined} */ var $m;
1652
1753
 
1653
- /** @type {import('.').Channel} */
1754
+ /** @type {Channel} */
1654
1755
  var channel = {
1655
1756
  assert: function (key) {
1656
1757
  if (!channel.has(key)) {
1657
1758
  throw new type('Side channel does not contain ' + objectInspect(key));
1658
1759
  }
1659
1760
  },
1660
- get: function (key) { // eslint-disable-line consistent-return
1661
- if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
1662
- if ($wm) {
1663
- return $weakMapGet($wm, key);
1664
- }
1665
- } else if ($Map) {
1666
- if ($m) {
1667
- return $mapGet($m, key);
1668
- }
1669
- } else {
1670
- if ($o) { // eslint-disable-line no-lonely-if
1671
- return listGet($o, key);
1761
+ 'delete': function (key) {
1762
+ if ($m) {
1763
+ var result = $mapDelete($m, key);
1764
+ if ($mapSize($m) === 0) {
1765
+ $m = void undefined;
1672
1766
  }
1767
+ return result;
1768
+ }
1769
+ return false;
1770
+ },
1771
+ get: function (key) { // eslint-disable-line consistent-return
1772
+ if ($m) {
1773
+ return $mapGet($m, key);
1673
1774
  }
1674
1775
  },
1675
1776
  has: function (key) {
1676
- if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
1677
- if ($wm) {
1678
- return $weakMapHas($wm, key);
1679
- }
1680
- } else if ($Map) {
1681
- if ($m) {
1682
- return $mapHas($m, key);
1683
- }
1684
- } else {
1685
- if ($o) { // eslint-disable-line no-lonely-if
1686
- return listHas($o, key);
1687
- }
1777
+ if ($m) {
1778
+ return $mapHas($m, key);
1688
1779
  }
1689
1780
  return false;
1690
1781
  },
1691
1782
  set: function (key, value) {
1692
- if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
1693
- if (!$wm) {
1694
- $wm = new $WeakMap();
1783
+ if (!$m) {
1784
+ // @ts-expect-error TS can't handle narrowing a variable inside a closure
1785
+ $m = new $Map();
1786
+ }
1787
+ $mapSet($m, key, value);
1788
+ }
1789
+ };
1790
+
1791
+ // @ts-expect-error TODO: figure out why TS is erroring here
1792
+ return channel;
1793
+ };
1794
+
1795
+ var $WeakMap = getIntrinsic('%WeakMap%', true);
1796
+
1797
+ /** @type {<K extends object, V>(thisArg: WeakMap<K, V>, key: K) => V} */
1798
+ var $weakMapGet = callBound('WeakMap.prototype.get', true);
1799
+ /** @type {<K extends object, V>(thisArg: WeakMap<K, V>, key: K, value: V) => void} */
1800
+ var $weakMapSet = callBound('WeakMap.prototype.set', true);
1801
+ /** @type {<K extends object, V>(thisArg: WeakMap<K, V>, key: K) => boolean} */
1802
+ var $weakMapHas = callBound('WeakMap.prototype.has', true);
1803
+ /** @type {<K extends object, V>(thisArg: WeakMap<K, V>, key: K) => boolean} */
1804
+ var $weakMapDelete = callBound('WeakMap.prototype.delete', true);
1805
+
1806
+ /** @type {import('.')} */
1807
+ var sideChannelWeakmap = $WeakMap
1808
+ ? /** @type {Exclude<import('.'), false>} */ function getSideChannelWeakMap() {
1809
+ /** @typedef {ReturnType<typeof getSideChannelWeakMap>} Channel */
1810
+ /** @typedef {Parameters<Channel['get']>[0]} K */
1811
+ /** @typedef {Parameters<Channel['set']>[1]} V */
1812
+
1813
+ /** @type {WeakMap<K & object, V> | undefined} */ var $wm;
1814
+ /** @type {Channel | undefined} */ var $m;
1815
+
1816
+ /** @type {Channel} */
1817
+ var channel = {
1818
+ assert: function (key) {
1819
+ if (!channel.has(key)) {
1820
+ throw new type('Side channel does not contain ' + objectInspect(key));
1695
1821
  }
1696
- $weakMapSet($wm, key, value);
1697
- } else if ($Map) {
1698
- if (!$m) {
1699
- $m = new $Map();
1822
+ },
1823
+ 'delete': function (key) {
1824
+ if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
1825
+ if ($wm) {
1826
+ return $weakMapDelete($wm, key);
1827
+ }
1828
+ } else if (sideChannelMap) {
1829
+ if ($m) {
1830
+ return $m['delete'](key);
1831
+ }
1700
1832
  }
1701
- $mapSet($m, key, value);
1702
- } else {
1703
- if (!$o) {
1704
- // Initialize the linked list as an empty node, so that we don't have to special-case handling of the first node: we can always refer to it as (previous node).next, instead of something like (list).head
1705
- $o = { key: {}, next: null };
1833
+ return false;
1834
+ },
1835
+ get: function (key) {
1836
+ if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
1837
+ if ($wm) {
1838
+ return $weakMapGet($wm, key);
1839
+ }
1840
+ }
1841
+ return $m && $m.get(key);
1842
+ },
1843
+ has: function (key) {
1844
+ if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
1845
+ if ($wm) {
1846
+ return $weakMapHas($wm, key);
1847
+ }
1706
1848
  }
1707
- listSet($o, key, value);
1849
+ return !!$m && $m.has(key);
1850
+ },
1851
+ set: function (key, value) {
1852
+ if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
1853
+ if (!$wm) {
1854
+ $wm = new $WeakMap();
1855
+ }
1856
+ $weakMapSet($wm, key, value);
1857
+ } else if (sideChannelMap) {
1858
+ if (!$m) {
1859
+ $m = sideChannelMap();
1860
+ }
1861
+ // eslint-disable-next-line no-extra-parens
1862
+ /** @type {NonNullable<typeof $m>} */ ($m).set(key, value);
1863
+ }
1864
+ }
1865
+ };
1866
+
1867
+ // @ts-expect-error TODO: figure out why this is erroring
1868
+ return channel;
1869
+ }
1870
+ : sideChannelMap;
1871
+
1872
+ var makeChannel = sideChannelWeakmap || sideChannelMap || sideChannelList;
1873
+
1874
+ /** @type {import('.')} */
1875
+ var sideChannel = function getSideChannel() {
1876
+ /** @typedef {ReturnType<typeof getSideChannel>} Channel */
1877
+
1878
+ /** @type {Channel | undefined} */ var $channelData;
1879
+
1880
+ /** @type {Channel} */
1881
+ var channel = {
1882
+ assert: function (key) {
1883
+ if (!channel.has(key)) {
1884
+ throw new type('Side channel does not contain ' + objectInspect(key));
1885
+ }
1886
+ },
1887
+ 'delete': function (key) {
1888
+ return !!$channelData && $channelData['delete'](key);
1889
+ },
1890
+ get: function (key) {
1891
+ return $channelData && $channelData.get(key);
1892
+ },
1893
+ has: function (key) {
1894
+ return !!$channelData && $channelData.has(key);
1895
+ },
1896
+ set: function (key, value) {
1897
+ if (!$channelData) {
1898
+ $channelData = makeChannel();
1708
1899
  }
1900
+
1901
+ $channelData.set(key, value);
1709
1902
  }
1710
1903
  };
1904
+ // @ts-expect-error TODO: figure out why this is erroring
1711
1905
  return channel;
1712
1906
  };
1713
1907
 
@@ -1736,10 +1930,31 @@ var formats = {
1736
1930
  var has$2 = Object.prototype.hasOwnProperty;
1737
1931
  var isArray$2 = Array.isArray;
1738
1932
 
1933
+ // Track objects created from arrayLimit overflow using side-channel
1934
+ // Stores the current max numeric index for O(1) lookup
1935
+ var overflowChannel = sideChannel();
1936
+
1937
+ var markOverflow = function markOverflow(obj, maxIndex) {
1938
+ overflowChannel.set(obj, maxIndex);
1939
+ return obj;
1940
+ };
1941
+
1942
+ var isOverflow = function isOverflow(obj) {
1943
+ return overflowChannel.has(obj);
1944
+ };
1945
+
1946
+ var getMaxIndex = function getMaxIndex(obj) {
1947
+ return overflowChannel.get(obj);
1948
+ };
1949
+
1950
+ var setMaxIndex = function setMaxIndex(obj, maxIndex) {
1951
+ overflowChannel.set(obj, maxIndex);
1952
+ };
1953
+
1739
1954
  var hexTable = (function () {
1740
1955
  var array = [];
1741
1956
  for (var i = 0; i < 256; ++i) {
1742
- array.push('%' + ((i < 16 ? '0' : '') + i.toString(16)).toUpperCase());
1957
+ array[array.length] = '%' + ((i < 16 ? '0' : '') + i.toString(16)).toUpperCase();
1743
1958
  }
1744
1959
 
1745
1960
  return array;
@@ -1755,7 +1970,7 @@ var compactQueue = function compactQueue(queue) {
1755
1970
 
1756
1971
  for (var j = 0; j < obj.length; ++j) {
1757
1972
  if (typeof obj[j] !== 'undefined') {
1758
- compacted.push(obj[j]);
1973
+ compacted[compacted.length] = obj[j];
1759
1974
  }
1760
1975
  }
1761
1976
 
@@ -1765,7 +1980,7 @@ var compactQueue = function compactQueue(queue) {
1765
1980
  };
1766
1981
 
1767
1982
  var arrayToObject = function arrayToObject(source, options) {
1768
- var obj = options && options.plainObjects ? Object.create(null) : {};
1983
+ var obj = options && options.plainObjects ? { __proto__: null } : {};
1769
1984
  for (var i = 0; i < source.length; ++i) {
1770
1985
  if (typeof source[i] !== 'undefined') {
1771
1986
  obj[i] = source[i];
@@ -1781,11 +1996,25 @@ var merge = function merge(target, source, options) {
1781
1996
  return target;
1782
1997
  }
1783
1998
 
1784
- if (typeof source !== 'object') {
1999
+ if (typeof source !== 'object' && typeof source !== 'function') {
1785
2000
  if (isArray$2(target)) {
1786
- target.push(source);
2001
+ var nextIndex = target.length;
2002
+ if (options && typeof options.arrayLimit === 'number' && nextIndex > options.arrayLimit) {
2003
+ return markOverflow(arrayToObject(target.concat(source), options), nextIndex);
2004
+ }
2005
+ target[nextIndex] = source;
1787
2006
  } else if (target && typeof target === 'object') {
1788
- if ((options && (options.plainObjects || options.allowPrototypes)) || !has$2.call(Object.prototype, source)) {
2007
+ if (isOverflow(target)) {
2008
+ // Add at next numeric index for overflow objects
2009
+ var newIndex = getMaxIndex(target) + 1;
2010
+ target[newIndex] = source;
2011
+ setMaxIndex(target, newIndex);
2012
+ } else if (options && options.strictMerge) {
2013
+ return [target, source];
2014
+ } else if (
2015
+ (options && (options.plainObjects || options.allowPrototypes))
2016
+ || !has$2.call(Object.prototype, source)
2017
+ ) {
1789
2018
  target[source] = true;
1790
2019
  }
1791
2020
  } else {
@@ -1796,7 +2025,23 @@ var merge = function merge(target, source, options) {
1796
2025
  }
1797
2026
 
1798
2027
  if (!target || typeof target !== 'object') {
1799
- return [target].concat(source);
2028
+ if (isOverflow(source)) {
2029
+ // Create new object with target at 0, source values shifted by 1
2030
+ var sourceKeys = Object.keys(source);
2031
+ var result = options && options.plainObjects
2032
+ ? { __proto__: null, 0: target }
2033
+ : { 0: target };
2034
+ for (var m = 0; m < sourceKeys.length; m++) {
2035
+ var oldKey = parseInt(sourceKeys[m], 10);
2036
+ result[oldKey + 1] = source[sourceKeys[m]];
2037
+ }
2038
+ return markOverflow(result, getMaxIndex(source) + 1);
2039
+ }
2040
+ var combined = [target].concat(source);
2041
+ if (options && typeof options.arrayLimit === 'number' && combined.length > options.arrayLimit) {
2042
+ return markOverflow(arrayToObject(combined, options), combined.length - 1);
2043
+ }
2044
+ return combined;
1800
2045
  }
1801
2046
 
1802
2047
  var mergeTarget = target;
@@ -1811,7 +2056,7 @@ var merge = function merge(target, source, options) {
1811
2056
  if (targetItem && typeof targetItem === 'object' && item && typeof item === 'object') {
1812
2057
  target[i] = merge(targetItem, item, options);
1813
2058
  } else {
1814
- target.push(item);
2059
+ target[target.length] = item;
1815
2060
  }
1816
2061
  } else {
1817
2062
  target[i] = item;
@@ -1828,6 +2073,17 @@ var merge = function merge(target, source, options) {
1828
2073
  } else {
1829
2074
  acc[key] = value;
1830
2075
  }
2076
+
2077
+ if (isOverflow(source) && !isOverflow(acc)) {
2078
+ markOverflow(acc, getMaxIndex(source));
2079
+ }
2080
+ if (isOverflow(acc)) {
2081
+ var keyNum = parseInt(key, 10);
2082
+ if (String(keyNum) === key && keyNum >= 0 && keyNum > getMaxIndex(acc)) {
2083
+ setMaxIndex(acc, keyNum);
2084
+ }
2085
+ }
2086
+
1831
2087
  return acc;
1832
2088
  }, mergeTarget);
1833
2089
  };
@@ -1839,7 +2095,7 @@ var assign = function assignSingleSource(target, source) {
1839
2095
  }, target);
1840
2096
  };
1841
2097
 
1842
- var decode = function (str, decoder, charset) {
2098
+ var decode = function (str, defaultDecoder, charset) {
1843
2099
  var strWithoutPlus = str.replace(/\+/g, ' ');
1844
2100
  if (charset === 'iso-8859-1') {
1845
2101
  // unescape never throws, no try...catch needed:
@@ -1944,8 +2200,8 @@ var compact = function compact(value) {
1944
2200
  var key = keys[j];
1945
2201
  var val = obj[key];
1946
2202
  if (typeof val === 'object' && val !== null && refs.indexOf(val) === -1) {
1947
- queue.push({ obj: obj, prop: key });
1948
- refs.push(val);
2203
+ queue[queue.length] = { obj: obj, prop: key };
2204
+ refs[refs.length] = val;
1949
2205
  }
1950
2206
  }
1951
2207
  }
@@ -1967,15 +2223,27 @@ var isBuffer = function isBuffer(obj) {
1967
2223
  return !!(obj.constructor && obj.constructor.isBuffer && obj.constructor.isBuffer(obj));
1968
2224
  };
1969
2225
 
1970
- var combine = function combine(a, b) {
1971
- return [].concat(a, b);
2226
+ var combine = function combine(a, b, arrayLimit, plainObjects) {
2227
+ // If 'a' is already an overflow object, add to it
2228
+ if (isOverflow(a)) {
2229
+ var newIndex = getMaxIndex(a) + 1;
2230
+ a[newIndex] = b;
2231
+ setMaxIndex(a, newIndex);
2232
+ return a;
2233
+ }
2234
+
2235
+ var result = [].concat(a, b);
2236
+ if (result.length > arrayLimit) {
2237
+ return markOverflow(arrayToObject(result, { plainObjects: plainObjects }), result.length - 1);
2238
+ }
2239
+ return result;
1972
2240
  };
1973
2241
 
1974
2242
  var maybeMap = function maybeMap(val, fn) {
1975
2243
  if (isArray$2(val)) {
1976
2244
  var mapped = [];
1977
2245
  for (var i = 0; i < val.length; i += 1) {
1978
- mapped.push(fn(val[i]));
2246
+ mapped[mapped.length] = fn(val[i]);
1979
2247
  }
1980
2248
  return mapped;
1981
2249
  }
@@ -1990,7 +2258,9 @@ var utils = {
1990
2258
  decode: decode,
1991
2259
  encode: encode,
1992
2260
  isBuffer: isBuffer,
2261
+ isOverflow: isOverflow,
1993
2262
  isRegExp: isRegExp,
2263
+ markOverflow: markOverflow,
1994
2264
  maybeMap: maybeMap,
1995
2265
  merge: merge
1996
2266
  };
@@ -2026,11 +2296,13 @@ var defaults$2 = {
2026
2296
  arrayFormat: 'indices',
2027
2297
  charset: 'utf-8',
2028
2298
  charsetSentinel: false,
2299
+ commaRoundTrip: false,
2029
2300
  delimiter: '&',
2030
2301
  encode: true,
2031
2302
  encodeDotInKeys: false,
2032
2303
  encoder: utils.encode,
2033
2304
  encodeValuesOnly: false,
2305
+ filter: void undefined,
2034
2306
  format: defaultFormat,
2035
2307
  formatter: formats.formatters[defaultFormat],
2036
2308
  // deprecated
@@ -2142,7 +2414,7 @@ var stringify = function stringify(
2142
2414
  objKeys = sort ? keys.sort(sort) : keys;
2143
2415
  }
2144
2416
 
2145
- var encodedPrefix = encodeDotInKeys ? prefix.replace(/\./g, '%2E') : prefix;
2417
+ var encodedPrefix = encodeDotInKeys ? String(prefix).replace(/\./g, '%2E') : String(prefix);
2146
2418
 
2147
2419
  var adjustedPrefix = commaRoundTrip && isArray$1(obj) && obj.length === 1 ? encodedPrefix + '[]' : encodedPrefix;
2148
2420
 
@@ -2152,13 +2424,15 @@ var stringify = function stringify(
2152
2424
 
2153
2425
  for (var j = 0; j < objKeys.length; ++j) {
2154
2426
  var key = objKeys[j];
2155
- var value = typeof key === 'object' && typeof key.value !== 'undefined' ? key.value : obj[key];
2427
+ var value = typeof key === 'object' && key && typeof key.value !== 'undefined'
2428
+ ? key.value
2429
+ : obj[key];
2156
2430
 
2157
2431
  if (skipNulls && value === null) {
2158
2432
  continue;
2159
2433
  }
2160
2434
 
2161
- var encodedKey = allowDots && encodeDotInKeys ? key.replace(/\./g, '%2E') : key;
2435
+ var encodedKey = allowDots && encodeDotInKeys ? String(key).replace(/\./g, '%2E') : String(key);
2162
2436
  var keyPrefix = isArray$1(obj)
2163
2437
  ? typeof generateArrayPrefix === 'function' ? generateArrayPrefix(adjustedPrefix, encodedKey) : adjustedPrefix
2164
2438
  : adjustedPrefix + (allowDots ? '.' + encodedKey : '[' + encodedKey + ']');
@@ -2249,7 +2523,7 @@ var normalizeStringifyOptions = function normalizeStringifyOptions(opts) {
2249
2523
  arrayFormat: arrayFormat,
2250
2524
  charset: charset,
2251
2525
  charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults$2.charsetSentinel,
2252
- commaRoundTrip: opts.commaRoundTrip,
2526
+ commaRoundTrip: !!opts.commaRoundTrip,
2253
2527
  delimiter: typeof opts.delimiter === 'undefined' ? defaults$2.delimiter : opts.delimiter,
2254
2528
  encode: typeof opts.encode === 'boolean' ? opts.encode : defaults$2.encode,
2255
2529
  encodeDotInKeys: typeof opts.encodeDotInKeys === 'boolean' ? opts.encodeDotInKeys : defaults$2.encodeDotInKeys,
@@ -2300,12 +2574,13 @@ var stringify_1 = function (object, opts) {
2300
2574
  var sideChannel$1 = sideChannel();
2301
2575
  for (var i = 0; i < objKeys.length; ++i) {
2302
2576
  var key = objKeys[i];
2577
+ var value = obj[key];
2303
2578
 
2304
- if (options.skipNulls && obj[key] === null) {
2579
+ if (options.skipNulls && value === null) {
2305
2580
  continue;
2306
2581
  }
2307
2582
  pushToArray(keys, stringify(
2308
- obj[key],
2583
+ value,
2309
2584
  key,
2310
2585
  generateArrayPrefix,
2311
2586
  commaRoundTrip,
@@ -2364,7 +2639,10 @@ var defaults$1 = {
2364
2639
  parameterLimit: 1000,
2365
2640
  parseArrays: true,
2366
2641
  plainObjects: false,
2367
- strictNullHandling: false
2642
+ strictDepth: false,
2643
+ strictMerge: true,
2644
+ strictNullHandling: false,
2645
+ throwOnLimitExceeded: false
2368
2646
  };
2369
2647
 
2370
2648
  var interpretNumericEntities = function (str) {
@@ -2373,11 +2651,15 @@ var interpretNumericEntities = function (str) {
2373
2651
  });
2374
2652
  };
2375
2653
 
2376
- var parseArrayValue = function (val, options) {
2654
+ var parseArrayValue = function (val, options, currentArrayLength) {
2377
2655
  if (val && typeof val === 'string' && options.comma && val.indexOf(',') > -1) {
2378
2656
  return val.split(',');
2379
2657
  }
2380
2658
 
2659
+ if (options.throwOnLimitExceeded && currentArrayLength >= options.arrayLimit) {
2660
+ throw new RangeError('Array limit exceeded. Only ' + options.arrayLimit + ' element' + (options.arrayLimit === 1 ? '' : 's') + ' allowed in an array.');
2661
+ }
2662
+
2381
2663
  return val;
2382
2664
  };
2383
2665
 
@@ -2395,8 +2677,18 @@ var parseValues = function parseQueryStringValues(str, options) {
2395
2677
  var obj = { __proto__: null };
2396
2678
 
2397
2679
  var cleanStr = options.ignoreQueryPrefix ? str.replace(/^\?/, '') : str;
2398
- var limit = options.parameterLimit === Infinity ? undefined : options.parameterLimit;
2399
- var parts = cleanStr.split(options.delimiter, limit);
2680
+ cleanStr = cleanStr.replace(/%5B/gi, '[').replace(/%5D/gi, ']');
2681
+
2682
+ var limit = options.parameterLimit === Infinity ? void undefined : options.parameterLimit;
2683
+ var parts = cleanStr.split(
2684
+ options.delimiter,
2685
+ options.throwOnLimitExceeded ? limit + 1 : limit
2686
+ );
2687
+
2688
+ if (options.throwOnLimitExceeded && parts.length > limit) {
2689
+ throw new RangeError('Parameter limit exceeded. Only ' + limit + ' parameter' + (limit === 1 ? '' : 's') + ' allowed.');
2690
+ }
2691
+
2400
2692
  var skipIndex = -1; // Keep track of where the utf8 sentinel was found
2401
2693
  var i;
2402
2694
 
@@ -2424,33 +2716,55 @@ var parseValues = function parseQueryStringValues(str, options) {
2424
2716
  var bracketEqualsPos = part.indexOf(']=');
2425
2717
  var pos = bracketEqualsPos === -1 ? part.indexOf('=') : bracketEqualsPos + 1;
2426
2718
 
2427
- var key, val;
2719
+ var key;
2720
+ var val;
2428
2721
  if (pos === -1) {
2429
2722
  key = options.decoder(part, defaults$1.decoder, charset, 'key');
2430
2723
  val = options.strictNullHandling ? null : '';
2431
2724
  } else {
2432
2725
  key = options.decoder(part.slice(0, pos), defaults$1.decoder, charset, 'key');
2433
- val = utils.maybeMap(
2434
- parseArrayValue(part.slice(pos + 1), options),
2435
- function (encodedVal) {
2436
- return options.decoder(encodedVal, defaults$1.decoder, charset, 'value');
2437
- }
2438
- );
2726
+
2727
+ if (key !== null) {
2728
+ val = utils.maybeMap(
2729
+ parseArrayValue(
2730
+ part.slice(pos + 1),
2731
+ options,
2732
+ isArray(obj[key]) ? obj[key].length : 0
2733
+ ),
2734
+ function (encodedVal) {
2735
+ return options.decoder(encodedVal, defaults$1.decoder, charset, 'value');
2736
+ }
2737
+ );
2738
+ }
2439
2739
  }
2440
2740
 
2441
2741
  if (val && options.interpretNumericEntities && charset === 'iso-8859-1') {
2442
- val = interpretNumericEntities(val);
2742
+ val = interpretNumericEntities(String(val));
2443
2743
  }
2444
2744
 
2445
2745
  if (part.indexOf('[]=') > -1) {
2446
2746
  val = isArray(val) ? [val] : val;
2447
2747
  }
2448
2748
 
2449
- var existing = has.call(obj, key);
2450
- if (existing && options.duplicates === 'combine') {
2451
- obj[key] = utils.combine(obj[key], val);
2452
- } else if (!existing || options.duplicates === 'last') {
2453
- obj[key] = val;
2749
+ if (options.comma && isArray(val) && val.length > options.arrayLimit) {
2750
+ if (options.throwOnLimitExceeded) {
2751
+ throw new RangeError('Array limit exceeded. Only ' + options.arrayLimit + ' element' + (options.arrayLimit === 1 ? '' : 's') + ' allowed in an array.');
2752
+ }
2753
+ val = utils.combine([], val, options.arrayLimit, options.plainObjects);
2754
+ }
2755
+
2756
+ if (key !== null) {
2757
+ var existing = has.call(obj, key);
2758
+ if (existing && (options.duplicates === 'combine' || part.indexOf('[]=') > -1)) {
2759
+ obj[key] = utils.combine(
2760
+ obj[key],
2761
+ val,
2762
+ options.arrayLimit,
2763
+ options.plainObjects
2764
+ );
2765
+ } else if (!existing || options.duplicates === 'last') {
2766
+ obj[key] = val;
2767
+ }
2454
2768
  }
2455
2769
  }
2456
2770
 
@@ -2458,30 +2772,52 @@ var parseValues = function parseQueryStringValues(str, options) {
2458
2772
  };
2459
2773
 
2460
2774
  var parseObject = function (chain, val, options, valuesParsed) {
2461
- var leaf = valuesParsed ? val : parseArrayValue(val, options);
2775
+ var currentArrayLength = 0;
2776
+ if (chain.length > 0 && chain[chain.length - 1] === '[]') {
2777
+ var parentKey = chain.slice(0, -1).join('');
2778
+ currentArrayLength = Array.isArray(val) && val[parentKey] ? val[parentKey].length : 0;
2779
+ }
2780
+
2781
+ var leaf = valuesParsed ? val : parseArrayValue(val, options, currentArrayLength);
2462
2782
 
2463
2783
  for (var i = chain.length - 1; i >= 0; --i) {
2464
2784
  var obj;
2465
2785
  var root = chain[i];
2466
2786
 
2467
2787
  if (root === '[]' && options.parseArrays) {
2468
- obj = options.allowEmptyArrays && leaf === '' ? [] : [].concat(leaf);
2788
+ if (utils.isOverflow(leaf)) {
2789
+ // leaf is already an overflow object, preserve it
2790
+ obj = leaf;
2791
+ } else {
2792
+ obj = options.allowEmptyArrays && (leaf === '' || (options.strictNullHandling && leaf === null))
2793
+ ? []
2794
+ : utils.combine(
2795
+ [],
2796
+ leaf,
2797
+ options.arrayLimit,
2798
+ options.plainObjects
2799
+ );
2800
+ }
2469
2801
  } else {
2470
- obj = options.plainObjects ? Object.create(null) : {};
2802
+ obj = options.plainObjects ? { __proto__: null } : {};
2471
2803
  var cleanRoot = root.charAt(0) === '[' && root.charAt(root.length - 1) === ']' ? root.slice(1, -1) : root;
2472
2804
  var decodedRoot = options.decodeDotInKeys ? cleanRoot.replace(/%2E/g, '.') : cleanRoot;
2473
2805
  var index = parseInt(decodedRoot, 10);
2474
- if (!options.parseArrays && decodedRoot === '') {
2475
- obj = { 0: leaf };
2476
- } else if (
2477
- !isNaN(index)
2806
+ var isValidArrayIndex = !isNaN(index)
2478
2807
  && root !== decodedRoot
2479
2808
  && String(index) === decodedRoot
2480
2809
  && index >= 0
2481
- && (options.parseArrays && index <= options.arrayLimit)
2482
- ) {
2810
+ && options.parseArrays;
2811
+ if (!options.parseArrays && decodedRoot === '') {
2812
+ obj = { 0: leaf };
2813
+ } else if (isValidArrayIndex && index < options.arrayLimit) {
2483
2814
  obj = [];
2484
2815
  obj[index] = leaf;
2816
+ } else if (isValidArrayIndex && options.throwOnLimitExceeded) {
2817
+ throw new RangeError('Array limit exceeded. Only ' + options.arrayLimit + ' element' + (options.arrayLimit === 1 ? '' : 's') + ' allowed in an array.');
2818
+ } else if (isValidArrayIndex) {
2819
+ obj[index] = leaf;
2820
+ utils.markOverflow(obj, index);
2485
2821
  } else if (decodedRoot !== '__proto__') {
2486
2822
  obj[decodedRoot] = leaf;
2487
2823
  }
@@ -2493,55 +2829,71 @@ var parseObject = function (chain, val, options, valuesParsed) {
2493
2829
  return leaf;
2494
2830
  };
2495
2831
 
2496
- var parseKeys = function parseQueryStringKeys(givenKey, val, options, valuesParsed) {
2497
- if (!givenKey) {
2498
- return;
2499
- }
2500
-
2501
- // Transform dot notation to bracket notation
2832
+ var splitKeyIntoSegments = function splitKeyIntoSegments(givenKey, options) {
2502
2833
  var key = options.allowDots ? givenKey.replace(/\.([^.[]+)/g, '[$1]') : givenKey;
2503
2834
 
2504
- // The regex chunks
2835
+ if (options.depth <= 0) {
2836
+ if (!options.plainObjects && has.call(Object.prototype, key)) {
2837
+ if (!options.allowPrototypes) {
2838
+ return;
2839
+ }
2840
+ }
2841
+
2842
+ return [key];
2843
+ }
2505
2844
 
2506
2845
  var brackets = /(\[[^[\]]*])/;
2507
2846
  var child = /(\[[^[\]]*])/g;
2508
2847
 
2509
- // Get the parent
2510
-
2511
- var segment = options.depth > 0 && brackets.exec(key);
2848
+ var segment = brackets.exec(key);
2512
2849
  var parent = segment ? key.slice(0, segment.index) : key;
2513
2850
 
2514
- // Stash the parent if it exists
2515
-
2516
2851
  var keys = [];
2852
+
2517
2853
  if (parent) {
2518
- // If we aren't using plain objects, optionally prefix keys that would overwrite object prototype properties
2519
2854
  if (!options.plainObjects && has.call(Object.prototype, parent)) {
2520
2855
  if (!options.allowPrototypes) {
2521
2856
  return;
2522
2857
  }
2523
2858
  }
2524
2859
 
2525
- keys.push(parent);
2860
+ keys[keys.length] = parent;
2526
2861
  }
2527
2862
 
2528
- // Loop through children appending to the array until we hit depth
2529
-
2530
2863
  var i = 0;
2531
- while (options.depth > 0 && (segment = child.exec(key)) !== null && i < options.depth) {
2864
+ while ((segment = child.exec(key)) !== null && i < options.depth) {
2532
2865
  i += 1;
2533
- if (!options.plainObjects && has.call(Object.prototype, segment[1].slice(1, -1))) {
2866
+
2867
+ var segmentContent = segment[1].slice(1, -1);
2868
+ if (!options.plainObjects && has.call(Object.prototype, segmentContent)) {
2534
2869
  if (!options.allowPrototypes) {
2535
2870
  return;
2536
2871
  }
2537
2872
  }
2538
- keys.push(segment[1]);
2539
- }
2540
2873
 
2541
- // If there's a remainder, just add whatever is left
2874
+ keys[keys.length] = segment[1];
2875
+ }
2542
2876
 
2543
2877
  if (segment) {
2544
- keys.push('[' + key.slice(segment.index) + ']');
2878
+ if (options.strictDepth === true) {
2879
+ throw new RangeError('Input depth exceeded depth option of ' + options.depth + ' and strictDepth is true');
2880
+ }
2881
+
2882
+ keys[keys.length] = '[' + key.slice(segment.index) + ']';
2883
+ }
2884
+
2885
+ return keys;
2886
+ };
2887
+
2888
+ var parseKeys = function parseQueryStringKeys(givenKey, val, options, valuesParsed) {
2889
+ if (!givenKey) {
2890
+ return;
2891
+ }
2892
+
2893
+ var keys = splitKeyIntoSegments(givenKey, options);
2894
+
2895
+ if (!keys) {
2896
+ return;
2545
2897
  }
2546
2898
 
2547
2899
  return parseObject(keys, val, options, valuesParsed);
@@ -2567,6 +2919,11 @@ var normalizeParseOptions = function normalizeParseOptions(opts) {
2567
2919
  if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') {
2568
2920
  throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined');
2569
2921
  }
2922
+
2923
+ if (typeof opts.throwOnLimitExceeded !== 'undefined' && typeof opts.throwOnLimitExceeded !== 'boolean') {
2924
+ throw new TypeError('`throwOnLimitExceeded` option must be a boolean');
2925
+ }
2926
+
2570
2927
  var charset = typeof opts.charset === 'undefined' ? defaults$1.charset : opts.charset;
2571
2928
 
2572
2929
  var duplicates = typeof opts.duplicates === 'undefined' ? defaults$1.duplicates : opts.duplicates;
@@ -2597,7 +2954,10 @@ var normalizeParseOptions = function normalizeParseOptions(opts) {
2597
2954
  parameterLimit: typeof opts.parameterLimit === 'number' ? opts.parameterLimit : defaults$1.parameterLimit,
2598
2955
  parseArrays: opts.parseArrays !== false,
2599
2956
  plainObjects: typeof opts.plainObjects === 'boolean' ? opts.plainObjects : defaults$1.plainObjects,
2600
- strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults$1.strictNullHandling
2957
+ strictDepth: typeof opts.strictDepth === 'boolean' ? !!opts.strictDepth : defaults$1.strictDepth,
2958
+ strictMerge: typeof opts.strictMerge === 'boolean' ? !!opts.strictMerge : defaults$1.strictMerge,
2959
+ strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults$1.strictNullHandling,
2960
+ throwOnLimitExceeded: typeof opts.throwOnLimitExceeded === 'boolean' ? opts.throwOnLimitExceeded : false
2601
2961
  };
2602
2962
  };
2603
2963
 
@@ -2605,11 +2965,11 @@ var parse = function (str, opts) {
2605
2965
  var options = normalizeParseOptions(opts);
2606
2966
 
2607
2967
  if (str === '' || str === null || typeof str === 'undefined') {
2608
- return options.plainObjects ? Object.create(null) : {};
2968
+ return options.plainObjects ? { __proto__: null } : {};
2609
2969
  }
2610
2970
 
2611
2971
  var tempObj = typeof str === 'string' ? parseValues(str, options) : str;
2612
- var obj = options.plainObjects ? Object.create(null) : {};
2972
+ var obj = options.plainObjects ? { __proto__: null } : {};
2613
2973
 
2614
2974
  // Iterate over the keys and setup the new object
2615
2975
 
@@ -2694,7 +3054,7 @@ function debounce$1(func, wait) {
2694
3054
  };
2695
3055
  }
2696
3056
 
2697
- const myModalCss = ".pallete-wrapper *{font-family:\"Galatea\", sans-serif}.my-modal{box-shadow:1px 1px 1px #ccc;background-color:#fff;position:fixed;top:20px;left:50%;transform:translateX(-50%);max-width:1555px;width:90%;z-index:1000;text-align:center;padding:35px 40px;max-height:calc(100vh - 100px);overflow-y:auto;min-height:50vh}@media (max-width: 1024px){.my-modal{padding:40px 20px 20px}}.my-modal::-webkit-scrollbar{display:none}.my-modal .loader{display:flex;flex-direction:column;align-items:center;justify-content:center;height:300px}.my-modal__header{display:flex;align-items:center;justify-content:space-between;align-items:flex-end;margin-bottom:16px}@media (max-width: 1024px){.my-modal__header{flex-direction:column;margin-bottom:12px;align-items:center;display:block}}@media (max-width: 768px){.my-modal__header .image-wrapper{margin-bottom:12px}}.my-modal__header .image-wrapper>img{max-width:300px;object-fit:cover}@media (max-width: 768px){.my-modal__header .image-wrapper>img{max-width:200px}}.my-modal__header .search-wrapper{display:flex;gap:55px;align-items:flex-start}@media (max-width: 1024px){.my-modal__header .search-wrapper{justify-content:center;width:92%}}@media (max-width: 1024px){.my-modal__header .search-wrapper .sc-my-search-h{width:100%;margin:0 auto}}.my-modal__header .search-wrapper .my-modal__close{background:transparent;border:none;margin-top:-20px}.my-modal__header .search-wrapper .my-modal__close>img{width:45px;height:45px;object-fit:cover;cursor:pointer}@media (max-width: 1024px){.my-modal__header .search-wrapper .my-modal__close{margin-top:0px;position:absolute;right:10px;top:10px}}.my-modal__see-more{font-size:16px;display:flex;justify-content:center;align-items:center;font-weight:300;color:#575757;margin-top:12px;margin-bottom:0px}@media (max-width: 1024px){.my-modal__see-more{font-size:18px}}.my-modal__see-more img{width:45px;height:45px}@media (max-width: 1024px){.my-modal__see-more img{display:none}}.my-modal__wrapper{display:flex;flex-direction:column;position:relative}.my-modal__wrapper .boxes{display:flex;flex-direction:column;flex-wrap:wrap}.my-modal__wrapper .boxes__list{display:flex;flex-wrap:wrap;gap:5px 5px}@media (max-width: 1024px){.my-modal__wrapper .boxes__list{justify-content:center}}.my-modal__wrapper .boxes__box-content{width:100%;margin-bottom:5px;height:500px;text-align:left;display:flex;flex-direction:row;justify-content:space-between;position:relative}.my-modal__wrapper .boxes__box-content .closebtn{position:absolute;right:10px;top:10px;width:53px;height:53px;cursor:pointer;object-fit:cover;z-index:9999}@media (max-width: 1024px){.my-modal__wrapper .boxes__box-content{flex-direction:column-reverse;height:auto}}@media (max-width: 768px){.my-modal__wrapper .boxes__box-content{margin:0 auto}}.my-modal__wrapper .boxes__box-content__info{width:40%;padding:50px 40px;position:relative}@media (max-width: 1024px){.my-modal__wrapper .boxes__box-content__info{width:100%;padding:15px;min-height:100px}}@media (max-width: 768px){.my-modal__wrapper .boxes__box-content__info{min-height:auto}}.my-modal__wrapper .boxes__box-content__info h2{font-size:35px;font-weight:normal;margin-bottom:30px;color:#232323}@media (max-width: 768px){.my-modal__wrapper .boxes__box-content__info h2{font-size:16px;text-align:center;margin-bottom:15px;margin-top:5px}}.my-modal__wrapper .boxes__box-content__info h4{margin-top:0px;margin-bottom:15px;font-size:16px;color:#4c4c4c}.my-modal__wrapper .boxes__box-content__info .divider{border:1px solid #4c4c4c;opacity:0.2;margin-bottom:20px}@media (max-width: 768px){.my-modal__wrapper .boxes__box-content__info .divider{margin:10px 0px;display:none}}.my-modal__wrapper .boxes__box-content__info__value{display:flex;flex-direction:row;justify-content:flex-start}@media (max-width: 1024px){.my-modal__wrapper .boxes__box-content__info__value{justify-content:flex-start}}@media (max-width: 768px){.my-modal__wrapper .boxes__box-content__info__value{flex-direction:column}}@media (max-width: 768px){.my-modal__wrapper .boxes__box-content__info__value-image{margin:0 auto;margin-bottom:10px}}.my-modal__wrapper .boxes__box-content__info__value-image img{width:114px;object-fit:cover}@media (max-width: 1024px){.my-modal__wrapper .boxes__box-content__info__value-image img{width:75px}}.my-modal__wrapper .boxes__box-content__info__value-product{color:#232323;margin-left:10px}@media (max-width: 1024px){.my-modal__wrapper .boxes__box-content__info__value-product h2{font-size:26px;margin:0;margin-right:10px}}@media (max-width: 768px){.my-modal__wrapper .boxes__box-content__info__value-product h2{font-size:16px}}.my-modal__wrapper .boxes__box-content__info__value-product p{font-size:20px;margin-top:0px;margin-bottom:0px}.my-modal__wrapper .boxes__box-content__info__value-product p:last-of-type{margin-bottom:20px}@media (max-width: 1024px){.my-modal__wrapper .boxes__box-content__info__value-product p:last-of-type{margin-bottom:0}}@media (max-width: 768px){.my-modal__wrapper .boxes__box-content__info__value-product p{font-size:10px}}@media (max-width: 1024px){.my-modal__wrapper .boxes__box-content__info__value-product>div{display:flex;justify-content:flex-start;align-items:center}}@media (max-width: 768px){.my-modal__wrapper .boxes__box-content__info__value-product>div{flex-direction:column}}.my-modal__wrapper .boxes__box-content__slider{width:60%;min-width:60%;max-width:60%;position:relative}@media (max-width: 1024px){.my-modal__wrapper .boxes__box-content__slider{width:100%;display:block;min-width:100%;max-width:100%}}.my-modal__wrapper .boxes__box-content__slider .color-big-image{width:100%;height:100%;object-fit:cover}@media (max-width: 1024px){.my-modal__wrapper .boxes__box-content__slider .color-big-image{height:300px}}.my-modal__wrapper .boxes__box-content__white *{color:#fff}.my-modal__wrapper .boxes__box-content__white h2{color:#fff}.my-modal__wrapper .pagination{margin:10px 0px;font-size:16px;display:flex;flex-direction:row;align-items:center;justify-content:center}.my-modal__wrapper .pagination>span{margin:0 3px;cursor:pointer;min-width:20px;padding:5px;box-shadow:1px 1px 1px #ccc}.my-modal__wrapper .pagination .current{background-color:wheat}.my-modal .categories{padding-bottom:20px;margin-bottom:20px;border-bottom:1px solid #dfdfdf;display:flex;flex-direction:column;align-items:flex-start}.my-modal .categories__container{display:flex;flex-wrap:nowrap;gap:5px 5px;overflow-x:auto;width:100%}@media (max-width: 1024px){.my-modal .categories__container{padding-bottom:5px}}.my-modal .categories__slide-information{display:flex;flex-direction:row;align-items:center;justify-content:space-between}.my-modal .categories__slide-information span{color:#4c4c4c;font-size:16px;font-weight:normal}.my-modal .categories__slide-information span:first-of-type{margin-left:7px}.my-modal .categories__slide-information span:last-of-type{margin-right:7px}.my-modal .button,.my-modal a{background-color:#fff;font-size:16px;box-shadow:0px 10px 20px rgba(0, 0, 0, 0.1);border-radius:22px;padding:10px 35px;color:#232323;text-decoration:none;display:block;text-align:center;transition:all 0.7s ease-in-out;border:none;cursor:pointer}.my-modal .button:hover,.my-modal a:hover{color:#fff;background-color:#232323}.my-modal .button.brown,.my-modal a.brown{background-color:#3c2114;color:#fff}.my-modal .button.brown:hover,.my-modal a.brown:hover{color:#fff;background-color:#232323}.my-modal .button.inverse,.my-modal a.inverse{background-color:#232323;color:#fff}.my-modal .button.inverse:hover,.my-modal a.inverse:hover{color:#232323;background-color:#fff}@media (max-width: 1024px){.my-modal .button,.my-modal a{max-width:150px;font-size:13px;padding:12px 25px}}@media (max-width: 768px){.my-modal .button,.my-modal a{margin:0 auto}}.my-modal>.button{margin:10px auto}";
3057
+ const myModalCss = "@font-face{font-family:\"Galatea\";src:url(\"/assets/fonts/Galatea-Regular.woff2\") format(\"woff2\"), url(\"/assets/fonts/Galatea-Regular.woff\") format(\"woff\"), url(\"/assets/fonts/Galatea-Regular.ttf\") format(\"truetype\");font-weight:normal;font-style:normal;font-display:swap}.pallete-wrapper.sc-my-modal *.sc-my-modal{font-family:\"Galatea\", sans-serif}.my-modal.sc-my-modal{box-shadow:1px 1px 1px #ccc;background-color:#fff;position:fixed;top:20px;left:50%;transform:translateX(-50%);max-width:1555px;width:90%;z-index:1000;text-align:center;padding:35px 40px;max-height:calc(100vh - 100px);overflow-y:auto;min-height:50vh}@media (max-width: 1024px){.my-modal.sc-my-modal{padding:40px 20px 20px}}.my-modal.sc-my-modal::-webkit-scrollbar{display:none}.my-modal.sc-my-modal .loader.sc-my-modal{display:flex;flex-direction:column;align-items:center;justify-content:center;height:300px}.my-modal__header.sc-my-modal{display:flex;align-items:center;justify-content:space-between;align-items:flex-end;margin-bottom:16px}@media (max-width: 1024px){.my-modal__header.sc-my-modal{flex-direction:column;margin-bottom:12px;align-items:center;display:block}}@media (max-width: 768px){.my-modal__header.sc-my-modal .image-wrapper.sc-my-modal{margin-bottom:12px}}.my-modal__header.sc-my-modal .image-wrapper.sc-my-modal>img.sc-my-modal{max-width:300px;object-fit:cover}@media (max-width: 768px){.my-modal__header.sc-my-modal .image-wrapper.sc-my-modal>img.sc-my-modal{max-width:200px}}.my-modal__header.sc-my-modal .search-wrapper.sc-my-modal{display:flex;gap:55px;align-items:flex-start}@media (max-width: 1024px){.my-modal__header.sc-my-modal .search-wrapper.sc-my-modal{justify-content:center;width:92%}}@media (max-width: 1024px){.my-modal__header.sc-my-modal .search-wrapper.sc-my-modal .sc-my-search-h.sc-my-modal{width:100%;margin:0 auto}}.my-modal__header.sc-my-modal .search-wrapper.sc-my-modal .my-modal__close.sc-my-modal{background:transparent;border:none;margin-top:-20px}.my-modal__header.sc-my-modal .search-wrapper.sc-my-modal .my-modal__close.sc-my-modal>img.sc-my-modal{width:45px;height:45px;object-fit:cover;cursor:pointer}@media (max-width: 1024px){.my-modal__header.sc-my-modal .search-wrapper.sc-my-modal .my-modal__close.sc-my-modal{margin-top:0px;position:absolute;right:10px;top:10px}}.my-modal__see-more.sc-my-modal{font-size:16px;display:flex;justify-content:center;align-items:center;font-weight:300;color:#575757;margin-top:12px;margin-bottom:0px}@media (max-width: 1024px){.my-modal__see-more.sc-my-modal{font-size:18px}}.my-modal__see-more.sc-my-modal img.sc-my-modal{width:45px;height:45px}@media (max-width: 1024px){.my-modal__see-more.sc-my-modal img.sc-my-modal{display:none}}.my-modal__wrapper.sc-my-modal{display:flex;flex-direction:column;position:relative}.my-modal__wrapper.sc-my-modal .boxes.sc-my-modal{display:flex;flex-direction:column;flex-wrap:wrap}.my-modal__wrapper.sc-my-modal .boxes__list.sc-my-modal{display:flex;flex-wrap:wrap;gap:5px 5px}@media (max-width: 1024px){.my-modal__wrapper.sc-my-modal .boxes__list.sc-my-modal{justify-content:center}}.my-modal__wrapper.sc-my-modal .pagination.sc-my-modal{margin:10px 0px;font-size:16px;display:flex;flex-direction:row;align-items:center;justify-content:center}.my-modal__wrapper.sc-my-modal .pagination.sc-my-modal>span.sc-my-modal{margin:0 3px;cursor:pointer;min-width:20px;padding:5px;box-shadow:1px 1px 1px #ccc}.my-modal__wrapper.sc-my-modal .pagination.sc-my-modal .current.sc-my-modal{background-color:wheat}.my-modal.sc-my-modal .categories.sc-my-modal{padding-bottom:20px;margin-bottom:20px;border-bottom:1px solid #dfdfdf;display:flex;flex-direction:column;align-items:flex-start}.my-modal.sc-my-modal .categories__container.sc-my-modal{display:flex;flex-wrap:nowrap;gap:5px 5px;overflow-x:auto;width:100%}@media (max-width: 1024px){.my-modal.sc-my-modal .categories__container.sc-my-modal{padding-bottom:5px}}.my-modal.sc-my-modal .categories__slide-information.sc-my-modal{display:flex;flex-direction:row;align-items:center;justify-content:space-between}.my-modal.sc-my-modal .categories__slide-information.sc-my-modal span.sc-my-modal{color:#4c4c4c;font-size:16px;font-weight:normal}.my-modal.sc-my-modal .categories__slide-information.sc-my-modal span.sc-my-modal:first-of-type{margin-left:7px}.my-modal.sc-my-modal .categories__slide-information.sc-my-modal span.sc-my-modal:last-of-type{margin-right:7px}.my-modal.sc-my-modal>.button.sc-my-modal{margin:10px auto}";
2698
3058
 
2699
3059
  const MyModal = class {
2700
3060
  constructor(hostRef) {
@@ -2875,6 +3235,8 @@ const MyModal = class {
2875
3235
  this.shop = undefined;
2876
3236
  this.product = undefined;
2877
3237
  this.baselink = undefined;
3238
+ this.available_testers = undefined;
3239
+ this.price = undefined;
2878
3240
  this.selectedcolor = undefined;
2879
3241
  this.closeImage = 'close.png';
2880
3242
  this.arrowDown = 'arrow_down.png';
@@ -2992,7 +3354,7 @@ const MyModal = class {
2992
3354
  render() {
2993
3355
  var _a, _b;
2994
3356
  return (h("div", { class: `my-modal`, onMouseEnter: () => this.handleReadyToClose(false), onMouseLeave: () => this.handleReadyToClose(true) }, this.preloader && (h("div", { class: 'loader' }, h("my-loader", null))), !this.preloader && this.data && (h("div", { class: `my-modal__header` }, h("div", { class: "image-wrapper" }, h("img", { src: `${APIURL}/assets/${(_a = this.data) === null || _a === void 0 ? void 0 : _a.modalLogo}?access_token=${accessToken}`, alt: "modal-logo" }), !this.preloader && this.data && (h("p", { class: "my-modal__see-more" }, (_b = this.data) === null || _b === void 0 ? void 0 : _b.modalDescription))), h("div", { class: "search-wrapper" }, !this.preloader && h("my-search", { shopname: this.shop, productname: this.data.name, isMobile: this.isMobile }), !this.preloader && (h("button", { class: "my-modal__close", onClick: () => this.closeModalHandler() }, h("img", { src: getAssetPath(`./assets/${this.closeImage}`), alt: "closebtn" })))))), h("div", { class: 'my-modal__wrapper' }, this.loading && h("my-loader", null), !this.loading && this.colors && (h("div", { class: 'container_boxes' }, this.colors.list.length > 0 ? (this.chunks(this.colors.list).map((color, index) => {
2995
- var _a;
3357
+ var _a, _b;
2996
3358
  return (h("div", { key: index, class: "boxes" }, h("div", { class: "boxes__list" }, color.map((c) => {
2997
3359
  var _a;
2998
3360
  return (h("my-colorbox", { key: c.id, onClick: () => {
@@ -3012,7 +3374,7 @@ const MyModal = class {
3012
3374
  isImageInsteadHex: c.imageInsteadHex,
3013
3375
  bigImage: c.bigImage,
3014
3376
  } }));
3015
- })), ((_a = this.currentColor) === null || _a === void 0 ? void 0 : _a.id) && index === this.currentIndex && (h("my-colorinfo", { currentColor: this.currentColor, shop: this.shop, product: this.product, data: this.data, isMobile: this.isMobile, infoBoxWidth: this.infoBoxWidth, baselink: this.baselink }))));
3377
+ })), ((_a = this.currentColor) === null || _a === void 0 ? void 0 : _a.id) && index === this.currentIndex && (h("my-colorinfo", { currentColor: this.currentColor, shop: this.shop, product: this.product, data: this.data, isMobile: this.isMobile, infoBoxWidth: this.infoBoxWidth, baselink: this.baselink, availableTesters: (_b = this.available_testers) === null || _b === void 0 ? void 0 : _b.find((t) => { var _a, _b, _c; return ((_a = t.color_name) === null || _a === void 0 ? void 0 : _a.trim().toLowerCase()) === ((_c = (_b = this.currentColor) === null || _b === void 0 ? void 0 : _b.name) === null || _c === void 0 ? void 0 : _c.trim().toLowerCase()); }), price: this.price }))));
3016
3378
  })) : (h("p", null, "Brak wynik\u00F3w")), this.colors.pagination.filter_count > limit && (h("div", { class: 'pagination' }, Array.from({ length: Math.ceil(this.colors.pagination.filter_count / limit) }).map((_, i) => (h("span", { class: i + 1 === this.page ? 'current' : '', onClick: e => {
3017
3379
  e.preventDefault();
3018
3380
  this.onPage(i + 1);
@@ -3027,7 +3389,7 @@ const MyModal = class {
3027
3389
  };
3028
3390
  MyModal.style = myModalCss;
3029
3391
 
3030
- const mySearchCss = ".pallete-wrapper.sc-my-search *.sc-my-search{font-family:\"Galatea\", sans-serif}.search.sc-my-search{position:relative;width:400px}@media (max-width: 768px){.search.sc-my-search{width:100%}}.search.sc-my-search input.sc-my-search{font-size:16px;padding:19px;border-radius:27.35px;border:1px solid #dfdfdf;width:100%;color:#4c4c4c}.search.sc-my-search button.sc-my-search{position:absolute;border:none;background-color:transparent;right:10px;top:0;width:50px;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;cursor:pointer}";
3392
+ const mySearchCss = "@font-face{font-family:\"Galatea\";src:url(\"/assets/fonts/Galatea-Regular.woff2\") format(\"woff2\"), url(\"/assets/fonts/Galatea-Regular.woff\") format(\"woff\"), url(\"/assets/fonts/Galatea-Regular.ttf\") format(\"truetype\");font-weight:normal;font-style:normal;font-display:swap}.pallete-wrapper.sc-my-search *.sc-my-search{font-family:\"Galatea\", sans-serif}.search.sc-my-search{position:relative;width:400px}@media (max-width: 768px){.search.sc-my-search{width:100%}}.search.sc-my-search input.sc-my-search{font-size:16px;padding:19px;border-radius:27.35px;border:1px solid #dfdfdf;width:100%;color:#4c4c4c}.search.sc-my-search button.sc-my-search{position:absolute;border:none;background-color:transparent;right:10px;top:0;width:50px;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;cursor:pointer}";
3031
3393
 
3032
3394
  function debounce(func, wait) {
3033
3395
  let timeout;
@@ -8309,7 +8671,7 @@ function Controller({
8309
8671
  });
8310
8672
  }
8311
8673
 
8312
- const mySliderCss = "@font-face{font-family:swiper-icons;src:url('data:application/font-woff;charset=utf-8;base64, d09GRgABAAAAAAZgABAAAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAAGRAAAABoAAAAci6qHkUdERUYAAAWgAAAAIwAAACQAYABXR1BPUwAABhQAAAAuAAAANuAY7+xHU1VCAAAFxAAAAFAAAABm2fPczU9TLzIAAAHcAAAASgAAAGBP9V5RY21hcAAAAkQAAACIAAABYt6F0cBjdnQgAAACzAAAAAQAAAAEABEBRGdhc3AAAAWYAAAACAAAAAj//wADZ2x5ZgAAAywAAADMAAAD2MHtryVoZWFkAAABbAAAADAAAAA2E2+eoWhoZWEAAAGcAAAAHwAAACQC9gDzaG10eAAAAigAAAAZAAAArgJkABFsb2NhAAAC0AAAAFoAAABaFQAUGG1heHAAAAG8AAAAHwAAACAAcABAbmFtZQAAA/gAAAE5AAACXvFdBwlwb3N0AAAFNAAAAGIAAACE5s74hXjaY2BkYGAAYpf5Hu/j+W2+MnAzMYDAzaX6QjD6/4//Bxj5GA8AuRwMYGkAPywL13jaY2BkYGA88P8Agx4j+/8fQDYfA1AEBWgDAIB2BOoAeNpjYGRgYNBh4GdgYgABEMnIABJzYNADCQAACWgAsQB42mNgYfzCOIGBlYGB0YcxjYGBwR1Kf2WQZGhhYGBiYGVmgAFGBiQQkOaawtDAoMBQxXjg/wEGPcYDDA4wNUA2CCgwsAAAO4EL6gAAeNpj2M0gyAACqxgGNWBkZ2D4/wMA+xkDdgAAAHjaY2BgYGaAYBkGRgYQiAHyGMF8FgYHIM3DwMHABGQrMOgyWDLEM1T9/w8UBfEMgLzE////P/5//f/V/xv+r4eaAAeMbAxwIUYmIMHEgKYAYjUcsDAwsLKxc3BycfPw8jEQA/gZBASFhEVExcQlJKWkZWTl5BUUlZRVVNXUNTQZBgMAAMR+E+gAEQFEAAAAKgAqACoANAA+AEgAUgBcAGYAcAB6AIQAjgCYAKIArAC2AMAAygDUAN4A6ADyAPwBBgEQARoBJAEuATgBQgFMAVYBYAFqAXQBfgGIAZIBnAGmAbIBzgHsAAB42u2NMQ6CUAyGW568x9AneYYgm4MJbhKFaExIOAVX8ApewSt4Bic4AfeAid3VOBixDxfPYEza5O+Xfi04YADggiUIULCuEJK8VhO4bSvpdnktHI5QCYtdi2sl8ZnXaHlqUrNKzdKcT8cjlq+rwZSvIVczNiezsfnP/uznmfPFBNODM2K7MTQ45YEAZqGP81AmGGcF3iPqOop0r1SPTaTbVkfUe4HXj97wYE+yNwWYxwWu4v1ugWHgo3S1XdZEVqWM7ET0cfnLGxWfkgR42o2PvWrDMBSFj/IHLaF0zKjRgdiVMwScNRAoWUoH78Y2icB/yIY09An6AH2Bdu/UB+yxopYshQiEvnvu0dURgDt8QeC8PDw7Fpji3fEA4z/PEJ6YOB5hKh4dj3EvXhxPqH/SKUY3rJ7srZ4FZnh1PMAtPhwP6fl2PMJMPDgeQ4rY8YT6Gzao0eAEA409DuggmTnFnOcSCiEiLMgxCiTI6Cq5DZUd3Qmp10vO0LaLTd2cjN4fOumlc7lUYbSQcZFkutRG7g6JKZKy0RmdLY680CDnEJ+UMkpFFe1RN7nxdVpXrC4aTtnaurOnYercZg2YVmLN/d/gczfEimrE/fs/bOuq29Zmn8tloORaXgZgGa78yO9/cnXm2BpaGvq25Dv9S4E9+5SIc9PqupJKhYFSSl47+Qcr1mYNAAAAeNptw0cKwkAAAMDZJA8Q7OUJvkLsPfZ6zFVERPy8qHh2YER+3i/BP83vIBLLySsoKimrqKqpa2hp6+jq6RsYGhmbmJqZSy0sraxtbO3sHRydnEMU4uR6yx7JJXveP7WrDycAAAAAAAH//wACeNpjYGRgYOABYhkgZgJCZgZNBkYGLQZtIJsFLMYAAAw3ALgAeNolizEKgDAQBCchRbC2sFER0YD6qVQiBCv/H9ezGI6Z5XBAw8CBK/m5iQQVauVbXLnOrMZv2oLdKFa8Pjuru2hJzGabmOSLzNMzvutpB3N42mNgZGBg4GKQYzBhYMxJLMlj4GBgAYow/P/PAJJhLM6sSoWKfWCAAwDAjgbRAAB42mNgYGBkAIIbCZo5IPrmUn0hGA0AO8EFTQAA');font-weight:400;font-style:normal}:root{--swiper-theme-color:#007aff}.swiper{margin-left:auto;margin-right:auto;position:relative;overflow:hidden;list-style:none;padding:0;z-index:1}.swiper-vertical>.swiper-wrapper{flex-direction:column}.swiper-wrapper{position:relative;width:100%;height:100%;z-index:1;display:flex;transition-property:transform;box-sizing:content-box}.swiper-android .swiper-slide,.swiper-wrapper{transform:translate3d(0px,0,0)}.swiper-pointer-events{touch-action:pan-y}.swiper-pointer-events.swiper-vertical{touch-action:pan-x}.swiper-slide{flex-shrink:0;width:100%;height:100%;position:relative;transition-property:transform}.swiper-slide-invisible-blank{visibility:hidden}.swiper-autoheight,.swiper-autoheight .swiper-slide{height:auto}.swiper-autoheight .swiper-wrapper{align-items:flex-start;transition-property:transform,height}.swiper-backface-hidden .swiper-slide{transform:translateZ(0);-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-3d,.swiper-3d.swiper-css-mode .swiper-wrapper{perspective:1200px}.swiper-3d .swiper-cube-shadow,.swiper-3d .swiper-slide,.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-bottom,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-wrapper{transform-style:preserve-3d}.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-bottom,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;z-index:10}.swiper-3d .swiper-slide-shadow{background:rgba(0,0,0,.15)}.swiper-3d .swiper-slide-shadow-left{background-image:linear-gradient(to left,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-3d .swiper-slide-shadow-right{background-image:linear-gradient(to right,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-3d .swiper-slide-shadow-top{background-image:linear-gradient(to top,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-3d .swiper-slide-shadow-bottom{background-image:linear-gradient(to bottom,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-css-mode>.swiper-wrapper{overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.swiper-css-mode>.swiper-wrapper::-webkit-scrollbar{display:none}.swiper-css-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:start start}.swiper-horizontal.swiper-css-mode>.swiper-wrapper{scroll-snap-type:x mandatory}.swiper-vertical.swiper-css-mode>.swiper-wrapper{scroll-snap-type:y mandatory}.swiper-centered>.swiper-wrapper::before{content:'';flex-shrink:0;order:9999}.swiper-centered.swiper-horizontal>.swiper-wrapper>.swiper-slide:first-child{margin-inline-start:var(--swiper-centered-offset-before)}.swiper-centered.swiper-horizontal>.swiper-wrapper::before{height:100%;min-height:1px;width:var(--swiper-centered-offset-after)}.swiper-centered.swiper-vertical>.swiper-wrapper>.swiper-slide:first-child{margin-block-start:var(--swiper-centered-offset-before)}.swiper-centered.swiper-vertical>.swiper-wrapper::before{width:100%;min-width:1px;height:var(--swiper-centered-offset-after)}.swiper-centered>.swiper-wrapper>.swiper-slide{scroll-snap-align:center center;scroll-snap-stop:always}.swiper-virtual .swiper-slide{-webkit-backface-visibility:hidden;transform:translateZ(0)}.swiper-virtual.swiper-css-mode .swiper-wrapper::after{content:'';position:absolute;left:0;top:0;pointer-events:none}.swiper-virtual.swiper-css-mode.swiper-horizontal .swiper-wrapper::after{height:1px;width:var(--swiper-virtual-size)}.swiper-virtual.swiper-css-mode.swiper-vertical .swiper-wrapper::after{width:1px;height:var(--swiper-virtual-size)}:root{--swiper-navigation-size:44px}.swiper-button-next,.swiper-button-prev{position:absolute;top:50%;width:calc(var(--swiper-navigation-size)/ 44 * 27);height:var(--swiper-navigation-size);margin-top:calc(0px - (var(--swiper-navigation-size)/ 2));z-index:10;cursor:pointer;display:flex;align-items:center;justify-content:center;color:var(--swiper-navigation-color,var(--swiper-theme-color))}.swiper-button-next.swiper-button-disabled,.swiper-button-prev.swiper-button-disabled{opacity:.35;cursor:auto;pointer-events:none}.swiper-button-next.swiper-button-hidden,.swiper-button-prev.swiper-button-hidden{opacity:0;cursor:auto;pointer-events:none}.swiper-navigation-disabled .swiper-button-next,.swiper-navigation-disabled .swiper-button-prev{display:none!important}.swiper-button-next:after,.swiper-button-prev:after{font-family:swiper-icons;font-size:var(--swiper-navigation-size);text-transform:none!important;letter-spacing:0;font-variant:initial;line-height:1}.swiper-button-prev,.swiper-rtl .swiper-button-next{left:10px;right:auto}.swiper-button-prev:after,.swiper-rtl .swiper-button-next:after{content:'prev'}.swiper-button-next,.swiper-rtl .swiper-button-prev{right:10px;left:auto}.swiper-button-next:after,.swiper-rtl .swiper-button-prev:after{content:'next'}.swiper-button-lock{display:none}.swiper-pagination{position:absolute;text-align:center;transition:.3s opacity;transform:translate3d(0,0,0);z-index:10}.swiper-pagination.swiper-pagination-hidden{opacity:0}.swiper-pagination-disabled>.swiper-pagination,.swiper-pagination.swiper-pagination-disabled{display:none!important}.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-bullets.swiper-pagination-horizontal,.swiper-pagination-custom,.swiper-pagination-fraction{bottom:10px;left:0;width:100%}.swiper-pagination-bullets-dynamic{overflow:hidden;font-size:0}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transform:scale(.33);position:relative}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active{transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-main{transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev{transform:scale(.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next{transform:scale(.33)}.swiper-pagination-bullet{width:var(--swiper-pagination-bullet-width,var(--swiper-pagination-bullet-size,8px));height:var(--swiper-pagination-bullet-height,var(--swiper-pagination-bullet-size,8px));display:inline-block;border-radius:50%;background:var(--swiper-pagination-bullet-inactive-color,#000);opacity:var(--swiper-pagination-bullet-inactive-opacity, .2)}button.swiper-pagination-bullet{border:none;margin:0;padding:0;box-shadow:none;-webkit-appearance:none;appearance:none}.swiper-pagination-clickable .swiper-pagination-bullet{cursor:pointer}.swiper-pagination-bullet:only-child{display:none!important}.swiper-pagination-bullet-active{opacity:var(--swiper-pagination-bullet-opacity, 1);background:var(--swiper-pagination-color,var(--swiper-theme-color))}.swiper-pagination-vertical.swiper-pagination-bullets,.swiper-vertical>.swiper-pagination-bullets{right:10px;top:50%;transform:translate3d(0px,-50%,0)}.swiper-pagination-vertical.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-vertical>.swiper-pagination-bullets .swiper-pagination-bullet{margin:var(--swiper-pagination-bullet-vertical-gap,6px) 0;display:block}.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{top:50%;transform:translateY(-50%);width:8px}.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{display:inline-block;transition:.2s transform,.2s top}.swiper-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet{margin:0 var(--swiper-pagination-bullet-horizontal-gap,4px)}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{left:50%;transform:translateX(-50%);white-space:nowrap}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:.2s transform,.2s left}.swiper-horizontal.swiper-rtl>.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:.2s transform,.2s right}.swiper-pagination-progressbar{background:rgba(0,0,0,.25);position:absolute}.swiper-pagination-progressbar .swiper-pagination-progressbar-fill{background:var(--swiper-pagination-color,var(--swiper-theme-color));position:absolute;left:0;top:0;width:100%;height:100%;transform:scale(0);transform-origin:left top}.swiper-rtl .swiper-pagination-progressbar .swiper-pagination-progressbar-fill{transform-origin:right top}.swiper-horizontal>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-horizontal,.swiper-pagination-progressbar.swiper-pagination-vertical.swiper-pagination-progressbar-opposite,.swiper-vertical>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite{width:100%;height:4px;left:0;top:0}.swiper-horizontal>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-horizontal.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-vertical,.swiper-vertical>.swiper-pagination-progressbar{width:4px;height:100%;left:0;top:0}.swiper-pagination-lock{display:none}.swiper-scrollbar{border-radius:10px;position:relative;-ms-touch-action:none;background:rgba(0,0,0,.1)}.swiper-scrollbar-disabled>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-disabled{display:none!important}.swiper-horizontal>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-horizontal{position:absolute;left:1%;bottom:3px;z-index:50;height:5px;width:98%}.swiper-scrollbar.swiper-scrollbar-vertical,.swiper-vertical>.swiper-scrollbar{position:absolute;right:3px;top:1%;z-index:50;width:5px;height:98%}.swiper-scrollbar-drag{height:100%;width:100%;position:relative;background:rgba(0,0,0,.5);border-radius:10px;left:0;top:0}.swiper-scrollbar-cursor-drag{cursor:move}.swiper-scrollbar-lock{display:none}.swiper-zoom-container{width:100%;height:100%;display:flex;justify-content:center;align-items:center;text-align:center}.swiper-zoom-container>canvas,.swiper-zoom-container>img,.swiper-zoom-container>svg{max-width:100%;max-height:100%;object-fit:contain}.swiper-slide-zoomed{cursor:move}.swiper-lazy-preloader{width:42px;height:42px;position:absolute;left:50%;top:50%;margin-left:-21px;margin-top:-21px;z-index:10;transform-origin:50%;box-sizing:border-box;border:4px solid var(--swiper-preloader-color,var(--swiper-theme-color));border-radius:50%;border-top-color:transparent}.swiper-watch-progress .swiper-slide-visible .swiper-lazy-preloader,.swiper:not(.swiper-watch-progress) .swiper-lazy-preloader{animation:swiper-preloader-spin 1s infinite linear}.swiper-lazy-preloader-white{--swiper-preloader-color:#fff}.swiper-lazy-preloader-black{--swiper-preloader-color:#000}@keyframes swiper-preloader-spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}.swiper .swiper-notification{position:absolute;left:0;top:0;pointer-events:none;opacity:0;z-index:-1000}.swiper-free-mode>.swiper-wrapper{transition-timing-function:ease-out;margin:0 auto}.swiper-grid>.swiper-wrapper{flex-wrap:wrap}.swiper-grid-column>.swiper-wrapper{flex-wrap:wrap;flex-direction:column}.swiper-fade.swiper-free-mode .swiper-slide{transition-timing-function:ease-out}.swiper-fade .swiper-slide{pointer-events:none;transition-property:opacity}.swiper-fade .swiper-slide .swiper-slide{pointer-events:none}.swiper-fade .swiper-slide-active,.swiper-fade .swiper-slide-active .swiper-slide-active{pointer-events:auto}.swiper-cube{overflow:visible}.swiper-cube .swiper-slide{pointer-events:none;-webkit-backface-visibility:hidden;backface-visibility:hidden;z-index:1;visibility:hidden;transform-origin:0 0;width:100%;height:100%}.swiper-cube .swiper-slide .swiper-slide{pointer-events:none}.swiper-cube.swiper-rtl .swiper-slide{transform-origin:100% 0}.swiper-cube .swiper-slide-active,.swiper-cube .swiper-slide-active .swiper-slide-active{pointer-events:auto}.swiper-cube .swiper-slide-active,.swiper-cube .swiper-slide-next,.swiper-cube .swiper-slide-next+.swiper-slide,.swiper-cube .swiper-slide-prev{pointer-events:auto;visibility:visible}.swiper-cube .swiper-slide-shadow-bottom,.swiper-cube .swiper-slide-shadow-left,.swiper-cube .swiper-slide-shadow-right,.swiper-cube .swiper-slide-shadow-top{z-index:0;-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-cube .swiper-cube-shadow{position:absolute;left:0;bottom:0px;width:100%;height:100%;opacity:.6;z-index:0}.swiper-cube .swiper-cube-shadow:before{content:'';background:#000;position:absolute;left:0;top:0;bottom:0;right:0;filter:blur(50px)}.swiper-flip{overflow:visible}.swiper-flip .swiper-slide{pointer-events:none;-webkit-backface-visibility:hidden;backface-visibility:hidden;z-index:1}.swiper-flip .swiper-slide .swiper-slide{pointer-events:none}.swiper-flip .swiper-slide-active,.swiper-flip .swiper-slide-active .swiper-slide-active{pointer-events:auto}.swiper-flip .swiper-slide-shadow-bottom,.swiper-flip .swiper-slide-shadow-left,.swiper-flip .swiper-slide-shadow-right,.swiper-flip .swiper-slide-shadow-top{z-index:0;-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-creative .swiper-slide{-webkit-backface-visibility:hidden;backface-visibility:hidden;overflow:hidden;transition-property:transform,opacity,height}.swiper-cards{overflow:visible}.swiper-cards .swiper-slide{transform-origin:center bottom;-webkit-backface-visibility:hidden;backface-visibility:hidden;overflow:hidden}.pallete-wrapper *{font-family:\"Galatea\", sans-serif}.slider-wrapper{width:100%;position:relative;height:100%;display:flex;max-width:1100px;flex-direction:row;align-items:center;justify-content:space-between}@media (max-width: 1024px){.slider-wrapper{height:220px}}.slider-wrapper .swiper{margin:0}.slider-wrapper .swiper-slide img{display:block;width:100%;height:100%;object-fit:cover}.slider-wrapper .mySwiper2{height:100%;width:80%;position:relative}@media (max-width: 1024px){.slider-wrapper .mySwiper2{width:100%}}.slider-wrapper .mySwiper2 .swiper-button-prev,.slider-wrapper .mySwiper2 .swiper-button-next{z-index:20;position:absolute;bottom:15px;width:23px;top:inherit;height:23px;background-color:#fff}.slider-wrapper .mySwiper2 .swiper-button-prev::after,.slider-wrapper .mySwiper2 .swiper-button-next::after{font-size:11px;color:#232323;font-weight:bold}.slider-wrapper .mySwiper2 .swiper-button-prev{right:40px;left:initial}.slider-wrapper .mySwiper{width:20%;height:100%;box-sizing:border-box}@media (max-width: 1024px){.slider-wrapper .mySwiper{display:none}}.slider-wrapper .mySwiper .swiper-slide{height:100%;cursor:pointer}.slider-wrapper .mySwiper .swiper-slide-thumb-active{opacity:1}";
8674
+ const mySliderCss = "@font-face{font-family:swiper-icons;src:url('data:application/font-woff;charset=utf-8;base64, d09GRgABAAAAAAZgABAAAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAAGRAAAABoAAAAci6qHkUdERUYAAAWgAAAAIwAAACQAYABXR1BPUwAABhQAAAAuAAAANuAY7+xHU1VCAAAFxAAAAFAAAABm2fPczU9TLzIAAAHcAAAASgAAAGBP9V5RY21hcAAAAkQAAACIAAABYt6F0cBjdnQgAAACzAAAAAQAAAAEABEBRGdhc3AAAAWYAAAACAAAAAj//wADZ2x5ZgAAAywAAADMAAAD2MHtryVoZWFkAAABbAAAADAAAAA2E2+eoWhoZWEAAAGcAAAAHwAAACQC9gDzaG10eAAAAigAAAAZAAAArgJkABFsb2NhAAAC0AAAAFoAAABaFQAUGG1heHAAAAG8AAAAHwAAACAAcABAbmFtZQAAA/gAAAE5AAACXvFdBwlwb3N0AAAFNAAAAGIAAACE5s74hXjaY2BkYGAAYpf5Hu/j+W2+MnAzMYDAzaX6QjD6/4//Bxj5GA8AuRwMYGkAPywL13jaY2BkYGA88P8Agx4j+/8fQDYfA1AEBWgDAIB2BOoAeNpjYGRgYNBh4GdgYgABEMnIABJzYNADCQAACWgAsQB42mNgYfzCOIGBlYGB0YcxjYGBwR1Kf2WQZGhhYGBiYGVmgAFGBiQQkOaawtDAoMBQxXjg/wEGPcYDDA4wNUA2CCgwsAAAO4EL6gAAeNpj2M0gyAACqxgGNWBkZ2D4/wMA+xkDdgAAAHjaY2BgYGaAYBkGRgYQiAHyGMF8FgYHIM3DwMHABGQrMOgyWDLEM1T9/w8UBfEMgLzE////P/5//f/V/xv+r4eaAAeMbAxwIUYmIMHEgKYAYjUcsDAwsLKxc3BycfPw8jEQA/gZBASFhEVExcQlJKWkZWTl5BUUlZRVVNXUNTQZBgMAAMR+E+gAEQFEAAAAKgAqACoANAA+AEgAUgBcAGYAcAB6AIQAjgCYAKIArAC2AMAAygDUAN4A6ADyAPwBBgEQARoBJAEuATgBQgFMAVYBYAFqAXQBfgGIAZIBnAGmAbIBzgHsAAB42u2NMQ6CUAyGW568x9AneYYgm4MJbhKFaExIOAVX8ApewSt4Bic4AfeAid3VOBixDxfPYEza5O+Xfi04YADggiUIULCuEJK8VhO4bSvpdnktHI5QCYtdi2sl8ZnXaHlqUrNKzdKcT8cjlq+rwZSvIVczNiezsfnP/uznmfPFBNODM2K7MTQ45YEAZqGP81AmGGcF3iPqOop0r1SPTaTbVkfUe4HXj97wYE+yNwWYxwWu4v1ugWHgo3S1XdZEVqWM7ET0cfnLGxWfkgR42o2PvWrDMBSFj/IHLaF0zKjRgdiVMwScNRAoWUoH78Y2icB/yIY09An6AH2Bdu/UB+yxopYshQiEvnvu0dURgDt8QeC8PDw7Fpji3fEA4z/PEJ6YOB5hKh4dj3EvXhxPqH/SKUY3rJ7srZ4FZnh1PMAtPhwP6fl2PMJMPDgeQ4rY8YT6Gzao0eAEA409DuggmTnFnOcSCiEiLMgxCiTI6Cq5DZUd3Qmp10vO0LaLTd2cjN4fOumlc7lUYbSQcZFkutRG7g6JKZKy0RmdLY680CDnEJ+UMkpFFe1RN7nxdVpXrC4aTtnaurOnYercZg2YVmLN/d/gczfEimrE/fs/bOuq29Zmn8tloORaXgZgGa78yO9/cnXm2BpaGvq25Dv9S4E9+5SIc9PqupJKhYFSSl47+Qcr1mYNAAAAeNptw0cKwkAAAMDZJA8Q7OUJvkLsPfZ6zFVERPy8qHh2YER+3i/BP83vIBLLySsoKimrqKqpa2hp6+jq6RsYGhmbmJqZSy0sraxtbO3sHRydnEMU4uR6yx7JJXveP7WrDycAAAAAAAH//wACeNpjYGRgYOABYhkgZgJCZgZNBkYGLQZtIJsFLMYAAAw3ALgAeNolizEKgDAQBCchRbC2sFER0YD6qVQiBCv/H9ezGI6Z5XBAw8CBK/m5iQQVauVbXLnOrMZv2oLdKFa8Pjuru2hJzGabmOSLzNMzvutpB3N42mNgZGBg4GKQYzBhYMxJLMlj4GBgAYow/P/PAJJhLM6sSoWKfWCAAwDAjgbRAAB42mNgYGBkAIIbCZo5IPrmUn0hGA0AO8EFTQAA');font-weight:400;font-style:normal}:root{--swiper-theme-color:#007aff}.swiper{margin-left:auto;margin-right:auto;position:relative;overflow:hidden;list-style:none;padding:0;z-index:1}.swiper-vertical>.swiper-wrapper{flex-direction:column}.swiper-wrapper{position:relative;width:100%;height:100%;z-index:1;display:flex;transition-property:transform;box-sizing:content-box}.swiper-android .swiper-slide,.swiper-wrapper{transform:translate3d(0px,0,0)}.swiper-pointer-events{touch-action:pan-y}.swiper-pointer-events.swiper-vertical{touch-action:pan-x}.swiper-slide{flex-shrink:0;width:100%;height:100%;position:relative;transition-property:transform}.swiper-slide-invisible-blank{visibility:hidden}.swiper-autoheight,.swiper-autoheight .swiper-slide{height:auto}.swiper-autoheight .swiper-wrapper{align-items:flex-start;transition-property:transform,height}.swiper-backface-hidden .swiper-slide{transform:translateZ(0);-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-3d,.swiper-3d.swiper-css-mode .swiper-wrapper{perspective:1200px}.swiper-3d .swiper-cube-shadow,.swiper-3d .swiper-slide,.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-bottom,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-wrapper{transform-style:preserve-3d}.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-bottom,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;z-index:10}.swiper-3d .swiper-slide-shadow{background:rgba(0,0,0,.15)}.swiper-3d .swiper-slide-shadow-left{background-image:linear-gradient(to left,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-3d .swiper-slide-shadow-right{background-image:linear-gradient(to right,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-3d .swiper-slide-shadow-top{background-image:linear-gradient(to top,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-3d .swiper-slide-shadow-bottom{background-image:linear-gradient(to bottom,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-css-mode>.swiper-wrapper{overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.swiper-css-mode>.swiper-wrapper::-webkit-scrollbar{display:none}.swiper-css-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:start start}.swiper-horizontal.swiper-css-mode>.swiper-wrapper{scroll-snap-type:x mandatory}.swiper-vertical.swiper-css-mode>.swiper-wrapper{scroll-snap-type:y mandatory}.swiper-centered>.swiper-wrapper::before{content:'';flex-shrink:0;order:9999}.swiper-centered.swiper-horizontal>.swiper-wrapper>.swiper-slide:first-child{margin-inline-start:var(--swiper-centered-offset-before)}.swiper-centered.swiper-horizontal>.swiper-wrapper::before{height:100%;min-height:1px;width:var(--swiper-centered-offset-after)}.swiper-centered.swiper-vertical>.swiper-wrapper>.swiper-slide:first-child{margin-block-start:var(--swiper-centered-offset-before)}.swiper-centered.swiper-vertical>.swiper-wrapper::before{width:100%;min-width:1px;height:var(--swiper-centered-offset-after)}.swiper-centered>.swiper-wrapper>.swiper-slide{scroll-snap-align:center center;scroll-snap-stop:always}.swiper-virtual .swiper-slide{-webkit-backface-visibility:hidden;transform:translateZ(0)}.swiper-virtual.swiper-css-mode .swiper-wrapper::after{content:'';position:absolute;left:0;top:0;pointer-events:none}.swiper-virtual.swiper-css-mode.swiper-horizontal .swiper-wrapper::after{height:1px;width:var(--swiper-virtual-size)}.swiper-virtual.swiper-css-mode.swiper-vertical .swiper-wrapper::after{width:1px;height:var(--swiper-virtual-size)}:root{--swiper-navigation-size:44px}.swiper-button-next,.swiper-button-prev{position:absolute;top:50%;width:calc(var(--swiper-navigation-size)/ 44 * 27);height:var(--swiper-navigation-size);margin-top:calc(0px - (var(--swiper-navigation-size)/ 2));z-index:10;cursor:pointer;display:flex;align-items:center;justify-content:center;color:var(--swiper-navigation-color,var(--swiper-theme-color))}.swiper-button-next.swiper-button-disabled,.swiper-button-prev.swiper-button-disabled{opacity:.35;cursor:auto;pointer-events:none}.swiper-button-next.swiper-button-hidden,.swiper-button-prev.swiper-button-hidden{opacity:0;cursor:auto;pointer-events:none}.swiper-navigation-disabled .swiper-button-next,.swiper-navigation-disabled .swiper-button-prev{display:none!important}.swiper-button-next:after,.swiper-button-prev:after{font-family:swiper-icons;font-size:var(--swiper-navigation-size);text-transform:none!important;letter-spacing:0;font-variant:initial;line-height:1}.swiper-button-prev,.swiper-rtl .swiper-button-next{left:10px;right:auto}.swiper-button-prev:after,.swiper-rtl .swiper-button-next:after{content:'prev'}.swiper-button-next,.swiper-rtl .swiper-button-prev{right:10px;left:auto}.swiper-button-next:after,.swiper-rtl .swiper-button-prev:after{content:'next'}.swiper-button-lock{display:none}.swiper-pagination{position:absolute;text-align:center;transition:.3s opacity;transform:translate3d(0,0,0);z-index:10}.swiper-pagination.swiper-pagination-hidden{opacity:0}.swiper-pagination-disabled>.swiper-pagination,.swiper-pagination.swiper-pagination-disabled{display:none!important}.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-bullets.swiper-pagination-horizontal,.swiper-pagination-custom,.swiper-pagination-fraction{bottom:10px;left:0;width:100%}.swiper-pagination-bullets-dynamic{overflow:hidden;font-size:0}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transform:scale(.33);position:relative}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active{transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-main{transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev{transform:scale(.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next{transform:scale(.33)}.swiper-pagination-bullet{width:var(--swiper-pagination-bullet-width,var(--swiper-pagination-bullet-size,8px));height:var(--swiper-pagination-bullet-height,var(--swiper-pagination-bullet-size,8px));display:inline-block;border-radius:50%;background:var(--swiper-pagination-bullet-inactive-color,#000);opacity:var(--swiper-pagination-bullet-inactive-opacity, .2)}button.swiper-pagination-bullet{border:none;margin:0;padding:0;box-shadow:none;-webkit-appearance:none;appearance:none}.swiper-pagination-clickable .swiper-pagination-bullet{cursor:pointer}.swiper-pagination-bullet:only-child{display:none!important}.swiper-pagination-bullet-active{opacity:var(--swiper-pagination-bullet-opacity, 1);background:var(--swiper-pagination-color,var(--swiper-theme-color))}.swiper-pagination-vertical.swiper-pagination-bullets,.swiper-vertical>.swiper-pagination-bullets{right:10px;top:50%;transform:translate3d(0px,-50%,0)}.swiper-pagination-vertical.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-vertical>.swiper-pagination-bullets .swiper-pagination-bullet{margin:var(--swiper-pagination-bullet-vertical-gap,6px) 0;display:block}.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{top:50%;transform:translateY(-50%);width:8px}.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{display:inline-block;transition:.2s transform,.2s top}.swiper-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet{margin:0 var(--swiper-pagination-bullet-horizontal-gap,4px)}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{left:50%;transform:translateX(-50%);white-space:nowrap}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:.2s transform,.2s left}.swiper-horizontal.swiper-rtl>.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:.2s transform,.2s right}.swiper-pagination-progressbar{background:rgba(0,0,0,.25);position:absolute}.swiper-pagination-progressbar .swiper-pagination-progressbar-fill{background:var(--swiper-pagination-color,var(--swiper-theme-color));position:absolute;left:0;top:0;width:100%;height:100%;transform:scale(0);transform-origin:left top}.swiper-rtl .swiper-pagination-progressbar .swiper-pagination-progressbar-fill{transform-origin:right top}.swiper-horizontal>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-horizontal,.swiper-pagination-progressbar.swiper-pagination-vertical.swiper-pagination-progressbar-opposite,.swiper-vertical>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite{width:100%;height:4px;left:0;top:0}.swiper-horizontal>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-horizontal.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-vertical,.swiper-vertical>.swiper-pagination-progressbar{width:4px;height:100%;left:0;top:0}.swiper-pagination-lock{display:none}.swiper-scrollbar{border-radius:10px;position:relative;-ms-touch-action:none;background:rgba(0,0,0,.1)}.swiper-scrollbar-disabled>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-disabled{display:none!important}.swiper-horizontal>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-horizontal{position:absolute;left:1%;bottom:3px;z-index:50;height:5px;width:98%}.swiper-scrollbar.swiper-scrollbar-vertical,.swiper-vertical>.swiper-scrollbar{position:absolute;right:3px;top:1%;z-index:50;width:5px;height:98%}.swiper-scrollbar-drag{height:100%;width:100%;position:relative;background:rgba(0,0,0,.5);border-radius:10px;left:0;top:0}.swiper-scrollbar-cursor-drag{cursor:move}.swiper-scrollbar-lock{display:none}.swiper-zoom-container{width:100%;height:100%;display:flex;justify-content:center;align-items:center;text-align:center}.swiper-zoom-container>canvas,.swiper-zoom-container>img,.swiper-zoom-container>svg{max-width:100%;max-height:100%;object-fit:contain}.swiper-slide-zoomed{cursor:move}.swiper-lazy-preloader{width:42px;height:42px;position:absolute;left:50%;top:50%;margin-left:-21px;margin-top:-21px;z-index:10;transform-origin:50%;box-sizing:border-box;border:4px solid var(--swiper-preloader-color,var(--swiper-theme-color));border-radius:50%;border-top-color:transparent}.swiper-watch-progress .swiper-slide-visible .swiper-lazy-preloader,.swiper:not(.swiper-watch-progress) .swiper-lazy-preloader{animation:swiper-preloader-spin 1s infinite linear}.swiper-lazy-preloader-white{--swiper-preloader-color:#fff}.swiper-lazy-preloader-black{--swiper-preloader-color:#000}@keyframes swiper-preloader-spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}.swiper .swiper-notification{position:absolute;left:0;top:0;pointer-events:none;opacity:0;z-index:-1000}.swiper-free-mode>.swiper-wrapper{transition-timing-function:ease-out;margin:0 auto}.swiper-grid>.swiper-wrapper{flex-wrap:wrap}.swiper-grid-column>.swiper-wrapper{flex-wrap:wrap;flex-direction:column}.swiper-fade.swiper-free-mode .swiper-slide{transition-timing-function:ease-out}.swiper-fade .swiper-slide{pointer-events:none;transition-property:opacity}.swiper-fade .swiper-slide .swiper-slide{pointer-events:none}.swiper-fade .swiper-slide-active,.swiper-fade .swiper-slide-active .swiper-slide-active{pointer-events:auto}.swiper-cube{overflow:visible}.swiper-cube .swiper-slide{pointer-events:none;-webkit-backface-visibility:hidden;backface-visibility:hidden;z-index:1;visibility:hidden;transform-origin:0 0;width:100%;height:100%}.swiper-cube .swiper-slide .swiper-slide{pointer-events:none}.swiper-cube.swiper-rtl .swiper-slide{transform-origin:100% 0}.swiper-cube .swiper-slide-active,.swiper-cube .swiper-slide-active .swiper-slide-active{pointer-events:auto}.swiper-cube .swiper-slide-active,.swiper-cube .swiper-slide-next,.swiper-cube .swiper-slide-next+.swiper-slide,.swiper-cube .swiper-slide-prev{pointer-events:auto;visibility:visible}.swiper-cube .swiper-slide-shadow-bottom,.swiper-cube .swiper-slide-shadow-left,.swiper-cube .swiper-slide-shadow-right,.swiper-cube .swiper-slide-shadow-top{z-index:0;-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-cube .swiper-cube-shadow{position:absolute;left:0;bottom:0px;width:100%;height:100%;opacity:.6;z-index:0}.swiper-cube .swiper-cube-shadow:before{content:'';background:#000;position:absolute;left:0;top:0;bottom:0;right:0;filter:blur(50px)}.swiper-flip{overflow:visible}.swiper-flip .swiper-slide{pointer-events:none;-webkit-backface-visibility:hidden;backface-visibility:hidden;z-index:1}.swiper-flip .swiper-slide .swiper-slide{pointer-events:none}.swiper-flip .swiper-slide-active,.swiper-flip .swiper-slide-active .swiper-slide-active{pointer-events:auto}.swiper-flip .swiper-slide-shadow-bottom,.swiper-flip .swiper-slide-shadow-left,.swiper-flip .swiper-slide-shadow-right,.swiper-flip .swiper-slide-shadow-top{z-index:0;-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-creative .swiper-slide{-webkit-backface-visibility:hidden;backface-visibility:hidden;overflow:hidden;transition-property:transform,opacity,height}.swiper-cards{overflow:visible}.swiper-cards .swiper-slide{transform-origin:center bottom;-webkit-backface-visibility:hidden;backface-visibility:hidden;overflow:hidden}@font-face{font-family:\"Galatea\";src:url(\"/assets/fonts/Galatea-Regular.woff2\") format(\"woff2\"), url(\"/assets/fonts/Galatea-Regular.woff\") format(\"woff\"), url(\"/assets/fonts/Galatea-Regular.ttf\") format(\"truetype\");font-weight:normal;font-style:normal;font-display:swap}.pallete-wrapper *{font-family:\"Galatea\", sans-serif}.slider-wrapper{width:100%;position:relative;height:100%;display:flex;max-width:1100px;flex-direction:row;align-items:center;justify-content:space-between}@media (max-width: 1024px){.slider-wrapper{height:220px}}.slider-wrapper .swiper{margin:0}.slider-wrapper .swiper-slide img{display:block;width:100%;height:100%;object-fit:cover}.slider-wrapper .mySwiper2{height:100%;width:100%;position:relative}@media (max-width: 1024px){.slider-wrapper .mySwiper2{width:100%}}.slider-wrapper .mySwiper2 .swiper-button-prev,.slider-wrapper .mySwiper2 .swiper-button-next{z-index:20;position:absolute;bottom:15px;width:23px;top:inherit;height:23px;background-color:#fff}.slider-wrapper .mySwiper2 .swiper-button-prev::after,.slider-wrapper .mySwiper2 .swiper-button-next::after{font-size:11px;color:#232323;font-weight:bold}.slider-wrapper .mySwiper2 .swiper-button-next{right:45%}.slider-wrapper .mySwiper2 .swiper-button-prev{left:45%}.slider-wrapper .mySwiper{width:20%;height:100%;box-sizing:border-box}@media (max-width: 1024px){.slider-wrapper .mySwiper{display:none}}.slider-wrapper .mySwiper .swiper-slide{height:100%;cursor:pointer}.slider-wrapper .mySwiper .swiper-slide-thumb-active{opacity:1}";
8313
8675
 
8314
8676
  const JcSwiper = class {
8315
8677
  constructor(hostRef) {
@@ -8344,11 +8706,16 @@ const JcSwiper = class {
8344
8706
  nextEl: '.swiper-button-next',
8345
8707
  prevEl: '.swiper-button-prev',
8346
8708
  },
8709
+ // loop: true,
8710
+ // loopedSlides: 3,
8711
+ slideToClickedSlide: true,
8347
8712
  loop: true,
8348
- loopedSlides: 3,
8713
+ freeMode: true,
8714
+ slidesPerView: 1,
8349
8715
  });
8350
- this.swiper2.controller.control = this.thumbs;
8351
- this.thumbs.controller.control = this.swiper2;
8716
+ // this.swiper2.controller.control = this.thumbs;
8717
+ this.swiper2.controller.control = this.swiper2;
8718
+ // this.thumbs.controller.control = this.swiper2;
8352
8719
  }
8353
8720
  componentDidLoad() {
8354
8721
  this.initSwiper();
@@ -8360,9 +8727,7 @@ const JcSwiper = class {
8360
8727
  render() {
8361
8728
  return (h("div", { class: "slider-wrapper" }, h("div", { class: "swiper mySwiper2" }, h("div", { class: "swiper-wrapper" }, this.slides &&
8362
8729
  this.slides.length > 0 &&
8363
- this.slides.map((slide) => (h("div", { key: slide.id, class: "swiper-slide" }, h("img", { src: `${APIURL}/assets/${slide.directus_files_id}?access_token=${accessToken}`, alt: "room_image" }))))), this.slides && this.slides.length >= 2 && (h("div", null, h("div", { onClick: this.colorInteraction, class: "swiper-button-next" }), h("div", { onClick: this.colorInteraction, class: "swiper-button-prev" })))), h("div", { class: "swiper mySwiper" }, h("div", { class: "swiper-wrapper" }, this.slides &&
8364
- this.slides.length > 0 &&
8365
- this.slides.map((slide) => (h("div", { key: slide.id, class: "swiper-slide" }, h("img", { src: `${APIURL}/assets/${slide.directus_files_id}?access_token=${accessToken}`, alt: "room_image" }))))))));
8730
+ this.slides.map((slide) => (h("div", { key: slide.id, class: "swiper-slide" }, h("img", { src: `${APIURL}/assets/${slide.directus_files_id}?access_token=${accessToken}`, alt: "room_image" }))))), this.slides && this.slides.length >= 2 && (h("div", null, h("div", { onClick: this.colorInteraction, class: "swiper-button-next" }), h("div", { onClick: this.colorInteraction, class: "swiper-button-prev" }))))));
8366
8731
  }
8367
8732
  get modalEl() { return getElement(this); }
8368
8733
  };