@ebrains/react 0.9.1-beta → 0.9.2-beta

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 (179) hide show
  1. package/.babelrc +12 -0
  2. package/package.json +2 -6
  3. package/project.json +10 -0
  4. package/rollup.config.js +43 -0
  5. package/src/components.ts +49 -0
  6. package/src/generated/components.ts +47 -0
  7. package/src/generated/react-component-lib/attachProps.ts +125 -0
  8. package/src/generated/react-component-lib/case.ts +7 -0
  9. package/src/generated/react-component-lib/createComponent.tsx +106 -0
  10. package/src/generated/react-component-lib/createOverlayComponent.tsx +142 -0
  11. package/src/generated/react-component-lib/dev.ts +14 -0
  12. package/src/generated/react-component-lib/index.tsx +50 -0
  13. package/src/generated/react-component-lib/interfaces.ts +34 -0
  14. package/src/generated/react-component-lib/utils/attachProps.ts +125 -0
  15. package/src/generated/react-component-lib/utils/case.ts +7 -0
  16. package/src/generated/react-component-lib/utils/dev.ts +14 -0
  17. package/src/generated/react-component-lib/utils/index.tsx +50 -0
  18. package/src/react-component-lib/attachProps.ts +125 -0
  19. package/src/react-component-lib/case.ts +7 -0
  20. package/src/react-component-lib/createComponent.tsx +106 -0
  21. package/src/react-component-lib/createOverlayComponent.tsx +142 -0
  22. package/src/react-component-lib/dev.ts +14 -0
  23. package/src/react-component-lib/index.tsx +50 -0
  24. package/src/react-component-lib/interfaces.ts +34 -0
  25. package/src/react-component-lib/utils/attachProps.ts +125 -0
  26. package/src/react-component-lib/utils/case.ts +7 -0
  27. package/src/react-component-lib/utils/index.tsx +50 -0
  28. package/tsconfig.json +17 -0
  29. package/tsconfig.lib.json +23 -0
  30. package/analytics-44b1416b.esm.js +0 -55
  31. package/arrow-diagonal-black-8f0494c3.esm.js +0 -3
  32. package/arrow-right-9322ba8a.esm.js +0 -5
  33. package/bluesky-cc5edd2d.esm.js +0 -14
  34. package/bookmark-c200037c.esm.js +0 -16
  35. package/chevron-down-6144c823.esm.js +0 -12
  36. package/chevron-left-ca6c66e1.esm.js +0 -11
  37. package/chevron-right-b88ed2d4.esm.js +0 -5
  38. package/chevron-up-c66bd477.esm.js +0 -12
  39. package/close-87fc0d63.esm.js +0 -5
  40. package/color-2554aad6.esm.js +0 -122
  41. package/color-primary-palette_6.entry.esm.js +0 -778
  42. package/components-section.entry.esm.js +0 -165
  43. package/copy-03b72cb6.esm.js +0 -5
  44. package/correct-use-of-colors.entry.esm.js +0 -243
  45. package/docs-palettes.entry.esm.js +0 -29
  46. package/docs-tokens.entry.esm.js +0 -45
  47. package/eds-accordion.entry.esm.js +0 -132
  48. package/eds-alert.entry.esm.js +0 -112
  49. package/eds-app-root.entry.esm.js +0 -53
  50. package/eds-avatar_26.entry.esm.js +0 -306
  51. package/eds-card-desc_2.entry.esm.js +0 -86
  52. package/eds-card-generic.entry.esm.js +0 -114
  53. package/eds-card-project.entry.esm.js +0 -93
  54. package/eds-card-section.entry.esm.js +0 -56
  55. package/eds-card-tags.entry.esm.js +0 -27
  56. package/eds-card-tool.entry.esm.js +0 -105
  57. package/eds-card-wrapper.entry.esm.js +0 -39
  58. package/eds-code-block.entry.esm.js +0 -2290
  59. package/eds-cookies-preference.entry.esm.js +0 -47
  60. package/eds-feedback.entry.esm.js +0 -82
  61. package/eds-frame.entry.esm.js +0 -112
  62. package/eds-icon-arrow-diagonal.entry.esm.js +0 -21
  63. package/eds-icon-arrow-right.entry.esm.js +0 -21
  64. package/eds-icon-bluesky.entry.esm.js +0 -21
  65. package/eds-icon-bookmark.entry.esm.js +0 -21
  66. package/eds-icon-chevron-down.entry.esm.js +0 -21
  67. package/eds-icon-chevron-left.entry.esm.js +0 -21
  68. package/eds-icon-chevron-right.entry.esm.js +0 -21
  69. package/eds-icon-chevron-up.entry.esm.js +0 -21
  70. package/eds-icon-close.entry.esm.js +0 -21
  71. package/eds-icon-copy.entry.esm.js +0 -21
  72. package/eds-icon-eu.entry.esm.js +0 -21
  73. package/eds-icon-external.entry.esm.js +0 -21
  74. package/eds-icon-facebook.entry.esm.js +0 -21
  75. package/eds-icon-gitlab.entry.esm.js +0 -21
  76. package/eds-icon-linkedin.entry.esm.js +0 -21
  77. package/eds-icon-loader.entry.esm.js +0 -21
  78. package/eds-icon-mastodon.entry.esm.js +0 -21
  79. package/eds-icon-menu.entry.esm.js +0 -21
  80. package/eds-icon-minus.entry.esm.js +0 -21
  81. package/eds-icon-more.entry.esm.js +0 -21
  82. package/eds-icon-paper.entry.esm.js +0 -21
  83. package/eds-icon-plus.entry.esm.js +0 -21
  84. package/eds-icon-portal.entry.esm.js +0 -21
  85. package/eds-icon-private.entry.esm.js +0 -21
  86. package/eds-icon-public.entry.esm.js +0 -21
  87. package/eds-icon-search.entry.esm.js +0 -21
  88. package/eds-icon-star.entry.esm.js +0 -21
  89. package/eds-icon-success.entry.esm.js +0 -21
  90. package/eds-icon-thumbs-down.entry.esm.js +0 -21
  91. package/eds-icon-thumbs-up.entry.esm.js +0 -21
  92. package/eds-icon-tutorial.entry.esm.js +0 -21
  93. package/eds-icon-twitter.entry.esm.js +0 -21
  94. package/eds-icon-unknown.entry.esm.js +0 -21
  95. package/eds-icon-updown.entry.esm.js +0 -21
  96. package/eds-icon-user.entry.esm.js +0 -21
  97. package/eds-icon-youtube.entry.esm.js +0 -21
  98. package/eds-login_2.entry.esm.js +0 -1828
  99. package/eds-matomo-notice.entry.esm.js +0 -162
  100. package/eds-modal.entry.esm.js +0 -142
  101. package/eds-pagination_2.entry.esm.js +0 -493
  102. package/eds-progress-bar.entry.esm.js +0 -41
  103. package/eds-rating.entry.esm.js +0 -79
  104. package/eds-section-core_2.entry.esm.js +0 -69
  105. package/eds-spinner.entry.esm.js +0 -67
  106. package/eds-switch.entry.esm.js +0 -58
  107. package/eds-tabs.entry.esm.js +0 -143
  108. package/eds-timeline.entry.esm.js +0 -117
  109. package/eds-toast-manager.entry.esm.js +0 -62
  110. package/eds-toast.entry.esm.js +0 -92
  111. package/eds-tooltip.entry.esm.js +0 -125
  112. package/eds-trl.entry.esm.js +0 -68
  113. package/eu-9ddde93a.esm.js +0 -30
  114. package/facebook-9cb5c17f.esm.js +0 -14
  115. package/incorrect-use-of-colors.entry.esm.js +0 -71
  116. package/index-39c58238.esm.js +0 -58
  117. package/index.esm.d.ts +0 -1
  118. package/index.esm.js +0 -4
  119. package/index.esm2.js +0 -4836
  120. package/linkedin-e8650abb.esm.js +0 -28
  121. package/loader-c9628637.esm.js +0 -30
  122. package/logo-color-7f1fd803.esm.js +0 -115
  123. package/logo-color-margins-ff8ce71b.esm.js +0 -118
  124. package/logo-space.entry.esm.js +0 -48
  125. package/logo-variations-horizontal_2.entry.esm.js +0 -123
  126. package/logo-variations-tabs.entry.esm.js +0 -29
  127. package/logo-white-no-bg-f382f86f.esm.js +0 -1021
  128. package/logo-wrong-usage.entry.esm.js +0 -101
  129. package/mastodon-3703ec61.esm.js +0 -14
  130. package/menu-340ea948.esm.js +0 -11
  131. package/minus-b30a7c71.esm.js +0 -11
  132. package/mono-53f70232.esm.js +0 -11
  133. package/more-4449d549.esm.js +0 -13
  134. package/paper-8e74ea31.esm.js +0 -15
  135. package/plus-89c07be2.esm.js +0 -12
  136. package/portal-d6c8ce56.esm.js +0 -18
  137. package/private-1c25ff8e.esm.js +0 -25
  138. package/public-d4d8c585.esm.js +0 -16
  139. package/search-fbcd79c2.esm.js +0 -12
  140. package/sharedUtils-a550989c.esm.js +0 -17
  141. package/src/components.d.ts +0 -40
  142. package/src/generated/components.d.ts +0 -38
  143. package/src/generated/react-component-lib/attachProps.d.ts +0 -16
  144. package/src/generated/react-component-lib/case.d.ts +0 -2
  145. package/src/generated/react-component-lib/createComponent.d.ts +0 -10
  146. package/src/generated/react-component-lib/createOverlayComponent.d.ts +0 -21
  147. package/src/generated/react-component-lib/dev.d.ts +0 -2
  148. package/src/generated/react-component-lib/interfaces.d.ts +0 -29
  149. package/src/generated/react-component-lib/utils/attachProps.d.ts +0 -16
  150. package/src/generated/react-component-lib/utils/case.d.ts +0 -2
  151. package/src/generated/react-component-lib/utils/dev.d.ts +0 -2
  152. package/src/generated/react-component-lib/utils/index.d.ts +0 -10
  153. package/src/react-component-lib/attachProps.d.ts +0 -16
  154. package/src/react-component-lib/case.d.ts +0 -2
  155. package/src/react-component-lib/createComponent.d.ts +0 -10
  156. package/src/react-component-lib/createOverlayComponent.d.ts +0 -21
  157. package/src/react-component-lib/dev.d.ts +0 -2
  158. package/src/react-component-lib/interfaces.d.ts +0 -29
  159. package/src/react-component-lib/utils/attachProps.d.ts +0 -16
  160. package/src/react-component-lib/utils/case.d.ts +0 -2
  161. package/src/react-component-lib/utils/index.d.ts +0 -10
  162. package/star-0da9b5e9.esm.js +0 -5
  163. package/success-443809da.esm.js +0 -18
  164. package/svg-repository.entry.esm.js +0 -337
  165. package/thumbs-down-a18fd049.esm.js +0 -5
  166. package/thumbs-up-c19a71bc.esm.js +0 -6
  167. package/toastManager-d9eee791.esm.js +0 -34
  168. package/token-list_3.entry.esm.js +0 -385
  169. package/token-ratios.entry.esm.js +0 -49
  170. package/token-typography.entry.esm.js +0 -267
  171. package/tutotial-150ee1fd.esm.js +0 -27
  172. package/twitter-ac21b505.esm.js +0 -14
  173. package/unknown-ed01a24c.esm.js +0 -22
  174. package/up-and-down-d747abee.esm.js +0 -12
  175. package/user-71ebdc15.esm.js +0 -16
  176. package/youtube-efbfbdc4.esm.js +0 -14
  177. /package/src/generated/react-component-lib/{index.d.ts → index.ts} +0 -0
  178. /package/src/{index.d.ts → index.ts} +0 -0
  179. /package/src/react-component-lib/{index.d.ts → index.ts} +0 -0
package/index.esm2.js DELETED
@@ -1,4836 +0,0 @@
1
- import React, { createElement as createElement$1 } from 'react';
2
- import { jsx } from 'react/jsx-runtime';
3
- import 'react-dom';
4
-
5
- var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
6
-
7
- var check = function (it) {
8
- return it && it.Math === Math && it;
9
- };
10
-
11
- // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
12
- var globalThis_1 =
13
- // eslint-disable-next-line es/no-global-this -- safe
14
- check(typeof globalThis == 'object' && globalThis) ||
15
- check(typeof window == 'object' && window) ||
16
- // eslint-disable-next-line no-restricted-globals -- safe
17
- check(typeof self == 'object' && self) ||
18
- check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
19
- check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
20
- // eslint-disable-next-line no-new-func -- fallback
21
- (function () { return this; })() || Function('return this')();
22
-
23
- var objectGetOwnPropertyDescriptor = {};
24
-
25
- var fails$i = function (exec) {
26
- try {
27
- return !!exec();
28
- } catch (error) {
29
- return true;
30
- }
31
- };
32
-
33
- var fails$h = fails$i;
34
-
35
- // Detect IE8's incomplete defineProperty implementation
36
- var descriptors = !fails$h(function () {
37
- // eslint-disable-next-line es/no-object-defineproperty -- required for testing
38
- return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
39
- });
40
-
41
- var fails$g = fails$i;
42
-
43
- var functionBindNative = !fails$g(function () {
44
- // eslint-disable-next-line es/no-function-prototype-bind -- safe
45
- var test = (function () { /* empty */ }).bind();
46
- // eslint-disable-next-line no-prototype-builtins -- safe
47
- return typeof test != 'function' || test.hasOwnProperty('prototype');
48
- });
49
-
50
- var NATIVE_BIND$2 = functionBindNative;
51
-
52
- var call$b = Function.prototype.call;
53
-
54
- var functionCall = NATIVE_BIND$2 ? call$b.bind(call$b) : function () {
55
- return call$b.apply(call$b, arguments);
56
- };
57
-
58
- var objectPropertyIsEnumerable = {};
59
-
60
- var $propertyIsEnumerable = {}.propertyIsEnumerable;
61
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
62
- var getOwnPropertyDescriptor$2 = Object.getOwnPropertyDescriptor;
63
-
64
- // Nashorn ~ JDK8 bug
65
- var NASHORN_BUG = getOwnPropertyDescriptor$2 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
66
-
67
- // `Object.prototype.propertyIsEnumerable` method implementation
68
- // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
69
- objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
70
- var descriptor = getOwnPropertyDescriptor$2(this, V);
71
- return !!descriptor && descriptor.enumerable;
72
- } : $propertyIsEnumerable;
73
-
74
- var createPropertyDescriptor$3 = function (bitmap, value) {
75
- return {
76
- enumerable: !(bitmap & 1),
77
- configurable: !(bitmap & 2),
78
- writable: !(bitmap & 4),
79
- value: value
80
- };
81
- };
82
-
83
- var NATIVE_BIND$1 = functionBindNative;
84
-
85
- var FunctionPrototype$2 = Function.prototype;
86
- var call$a = FunctionPrototype$2.call;
87
- var uncurryThisWithBind = NATIVE_BIND$1 && FunctionPrototype$2.bind.bind(call$a, call$a);
88
-
89
- var functionUncurryThis = NATIVE_BIND$1 ? uncurryThisWithBind : function (fn) {
90
- return function () {
91
- return call$a.apply(fn, arguments);
92
- };
93
- };
94
-
95
- var uncurryThis$e = functionUncurryThis;
96
-
97
- var toString$5 = uncurryThis$e({}.toString);
98
- var stringSlice$5 = uncurryThis$e(''.slice);
99
-
100
- var classofRaw$1 = function (it) {
101
- return stringSlice$5(toString$5(it), 8, -1);
102
- };
103
-
104
- var uncurryThis$d = functionUncurryThis;
105
- var fails$f = fails$i;
106
- var classof$5 = classofRaw$1;
107
-
108
- var $Object$4 = Object;
109
- var split = uncurryThis$d(''.split);
110
-
111
- // fallback for non-array-like ES3 and non-enumerable old V8 strings
112
- var indexedObject = fails$f(function () {
113
- // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
114
- // eslint-disable-next-line no-prototype-builtins -- safe
115
- return !$Object$4('z').propertyIsEnumerable(0);
116
- }) ? function (it) {
117
- return classof$5(it) === 'String' ? split(it, '') : $Object$4(it);
118
- } : $Object$4;
119
-
120
- // we can't use just `it == null` since of `document.all` special case
121
- // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
122
- var isNullOrUndefined$3 = function (it) {
123
- return it === null || it === undefined;
124
- };
125
-
126
- var isNullOrUndefined$2 = isNullOrUndefined$3;
127
-
128
- var $TypeError$a = TypeError;
129
-
130
- // `RequireObjectCoercible` abstract operation
131
- // https://tc39.es/ecma262/#sec-requireobjectcoercible
132
- var requireObjectCoercible$5 = function (it) {
133
- if (isNullOrUndefined$2(it)) throw new $TypeError$a("Can't call method on " + it);
134
- return it;
135
- };
136
-
137
- // toObject with fallback for non-array-like ES3 strings
138
- var IndexedObject$2 = indexedObject;
139
- var requireObjectCoercible$4 = requireObjectCoercible$5;
140
-
141
- var toIndexedObject$5 = function (it) {
142
- return IndexedObject$2(requireObjectCoercible$4(it));
143
- };
144
-
145
- // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
146
- var documentAll = typeof document == 'object' && document.all;
147
-
148
- // `IsCallable` abstract operation
149
- // https://tc39.es/ecma262/#sec-iscallable
150
- // eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
151
- var isCallable$g = typeof documentAll == 'undefined' && documentAll !== undefined ? function (argument) {
152
- return typeof argument == 'function' || argument === documentAll;
153
- } : function (argument) {
154
- return typeof argument == 'function';
155
- };
156
-
157
- var isCallable$f = isCallable$g;
158
-
159
- var isObject$8 = function (it) {
160
- return typeof it == 'object' ? it !== null : isCallable$f(it);
161
- };
162
-
163
- var globalThis$g = globalThis_1;
164
- var isCallable$e = isCallable$g;
165
-
166
- var aFunction = function (argument) {
167
- return isCallable$e(argument) ? argument : undefined;
168
- };
169
-
170
- var getBuiltIn$3 = function (namespace, method) {
171
- return arguments.length < 2 ? aFunction(globalThis$g[namespace]) : globalThis$g[namespace] && globalThis$g[namespace][method];
172
- };
173
-
174
- var uncurryThis$c = functionUncurryThis;
175
-
176
- var objectIsPrototypeOf = uncurryThis$c({}.isPrototypeOf);
177
-
178
- var globalThis$f = globalThis_1;
179
-
180
- var navigator = globalThis$f.navigator;
181
- var userAgent$2 = navigator && navigator.userAgent;
182
-
183
- var environmentUserAgent = userAgent$2 ? String(userAgent$2) : '';
184
-
185
- var globalThis$e = globalThis_1;
186
- var userAgent$1 = environmentUserAgent;
187
-
188
- var process = globalThis$e.process;
189
- var Deno$1 = globalThis$e.Deno;
190
- var versions = process && process.versions || Deno$1 && Deno$1.version;
191
- var v8 = versions && versions.v8;
192
- var match, version;
193
-
194
- if (v8) {
195
- match = v8.split('.');
196
- // in old Chrome, versions of V8 isn't V8 = Chrome / 10
197
- // but their correct versions are not interesting for us
198
- version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
199
- }
200
-
201
- // BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
202
- // so check `userAgent` even if `.v8` exists, but 0
203
- if (!version && userAgent$1) {
204
- match = userAgent$1.match(/Edge\/(\d+)/);
205
- if (!match || match[1] >= 74) {
206
- match = userAgent$1.match(/Chrome\/(\d+)/);
207
- if (match) version = +match[1];
208
- }
209
- }
210
-
211
- var environmentV8Version = version;
212
-
213
- /* eslint-disable es/no-symbol -- required for testing */
214
- var V8_VERSION = environmentV8Version;
215
- var fails$e = fails$i;
216
- var globalThis$d = globalThis_1;
217
-
218
- var $String$5 = globalThis$d.String;
219
-
220
- // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
221
- var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$e(function () {
222
- var symbol = Symbol('symbol detection');
223
- // Chrome 38 Symbol has incorrect toString conversion
224
- // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
225
- // nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will,
226
- // of course, fail.
227
- return !$String$5(symbol) || !(Object(symbol) instanceof Symbol) ||
228
- // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
229
- !Symbol.sham && V8_VERSION && V8_VERSION < 41;
230
- });
231
-
232
- /* eslint-disable es/no-symbol -- required for testing */
233
- var NATIVE_SYMBOL$1 = symbolConstructorDetection;
234
-
235
- var useSymbolAsUid = NATIVE_SYMBOL$1
236
- && !Symbol.sham
237
- && typeof Symbol.iterator == 'symbol';
238
-
239
- var getBuiltIn$2 = getBuiltIn$3;
240
- var isCallable$d = isCallable$g;
241
- var isPrototypeOf = objectIsPrototypeOf;
242
- var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
243
-
244
- var $Object$3 = Object;
245
-
246
- var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {
247
- return typeof it == 'symbol';
248
- } : function (it) {
249
- var $Symbol = getBuiltIn$2('Symbol');
250
- return isCallable$d($Symbol) && isPrototypeOf($Symbol.prototype, $Object$3(it));
251
- };
252
-
253
- var $String$4 = String;
254
-
255
- var tryToString$1 = function (argument) {
256
- try {
257
- return $String$4(argument);
258
- } catch (error) {
259
- return 'Object';
260
- }
261
- };
262
-
263
- var isCallable$c = isCallable$g;
264
- var tryToString = tryToString$1;
265
-
266
- var $TypeError$9 = TypeError;
267
-
268
- // `Assert: IsCallable(argument) is true`
269
- var aCallable$3 = function (argument) {
270
- if (isCallable$c(argument)) return argument;
271
- throw new $TypeError$9(tryToString(argument) + ' is not a function');
272
- };
273
-
274
- var aCallable$2 = aCallable$3;
275
- var isNullOrUndefined$1 = isNullOrUndefined$3;
276
-
277
- // `GetMethod` abstract operation
278
- // https://tc39.es/ecma262/#sec-getmethod
279
- var getMethod$2 = function (V, P) {
280
- var func = V[P];
281
- return isNullOrUndefined$1(func) ? undefined : aCallable$2(func);
282
- };
283
-
284
- var call$9 = functionCall;
285
- var isCallable$b = isCallable$g;
286
- var isObject$7 = isObject$8;
287
-
288
- var $TypeError$8 = TypeError;
289
-
290
- // `OrdinaryToPrimitive` abstract operation
291
- // https://tc39.es/ecma262/#sec-ordinarytoprimitive
292
- var ordinaryToPrimitive$1 = function (input, pref) {
293
- var fn, val;
294
- if (pref === 'string' && isCallable$b(fn = input.toString) && !isObject$7(val = call$9(fn, input))) return val;
295
- if (isCallable$b(fn = input.valueOf) && !isObject$7(val = call$9(fn, input))) return val;
296
- if (pref !== 'string' && isCallable$b(fn = input.toString) && !isObject$7(val = call$9(fn, input))) return val;
297
- throw new $TypeError$8("Can't convert object to primitive value");
298
- };
299
-
300
- var sharedStore = {exports: {}};
301
-
302
- var globalThis$c = globalThis_1;
303
-
304
- // eslint-disable-next-line es/no-object-defineproperty -- safe
305
- var defineProperty$5 = Object.defineProperty;
306
-
307
- var defineGlobalProperty$3 = function (key, value) {
308
- try {
309
- defineProperty$5(globalThis$c, key, { value: value, configurable: true, writable: true });
310
- } catch (error) {
311
- globalThis$c[key] = value;
312
- } return value;
313
- };
314
-
315
- var globalThis$b = globalThis_1;
316
- var defineGlobalProperty$2 = defineGlobalProperty$3;
317
-
318
- var SHARED = '__core-js_shared__';
319
- var store$3 = sharedStore.exports = globalThis$b[SHARED] || defineGlobalProperty$2(SHARED, {});
320
-
321
- (store$3.versions || (store$3.versions = [])).push({
322
- version: '3.38.1',
323
- mode: 'global',
324
- copyright: '© 2014-2024 Denis Pushkarev (zloirock.ru)',
325
- license: 'https://github.com/zloirock/core-js/blob/v3.38.1/LICENSE',
326
- source: 'https://github.com/zloirock/core-js'
327
- });
328
-
329
- var sharedStoreExports = sharedStore.exports;
330
-
331
- var store$2 = sharedStoreExports;
332
-
333
- var shared$4 = function (key, value) {
334
- return store$2[key] || (store$2[key] = value || {});
335
- };
336
-
337
- var requireObjectCoercible$3 = requireObjectCoercible$5;
338
-
339
- var $Object$2 = Object;
340
-
341
- // `ToObject` abstract operation
342
- // https://tc39.es/ecma262/#sec-toobject
343
- var toObject$6 = function (argument) {
344
- return $Object$2(requireObjectCoercible$3(argument));
345
- };
346
-
347
- var uncurryThis$b = functionUncurryThis;
348
- var toObject$5 = toObject$6;
349
-
350
- var hasOwnProperty = uncurryThis$b({}.hasOwnProperty);
351
-
352
- // `HasOwnProperty` abstract operation
353
- // https://tc39.es/ecma262/#sec-hasownproperty
354
- // eslint-disable-next-line es/no-object-hasown -- safe
355
- var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
356
- return hasOwnProperty(toObject$5(it), key);
357
- };
358
-
359
- var uncurryThis$a = functionUncurryThis;
360
-
361
- var id = 0;
362
- var postfix = Math.random();
363
- var toString$4 = uncurryThis$a(1.0.toString);
364
-
365
- var uid$2 = function (key) {
366
- return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$4(++id + postfix, 36);
367
- };
368
-
369
- var globalThis$a = globalThis_1;
370
- var shared$3 = shared$4;
371
- var hasOwn$8 = hasOwnProperty_1;
372
- var uid$1 = uid$2;
373
- var NATIVE_SYMBOL = symbolConstructorDetection;
374
- var USE_SYMBOL_AS_UID = useSymbolAsUid;
375
-
376
- var Symbol$1 = globalThis$a.Symbol;
377
- var WellKnownSymbolsStore = shared$3('wks');
378
- var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
379
-
380
- var wellKnownSymbol$a = function (name) {
381
- if (!hasOwn$8(WellKnownSymbolsStore, name)) {
382
- WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$8(Symbol$1, name)
383
- ? Symbol$1[name]
384
- : createWellKnownSymbol('Symbol.' + name);
385
- } return WellKnownSymbolsStore[name];
386
- };
387
-
388
- var call$8 = functionCall;
389
- var isObject$6 = isObject$8;
390
- var isSymbol$1 = isSymbol$2;
391
- var getMethod$1 = getMethod$2;
392
- var ordinaryToPrimitive = ordinaryToPrimitive$1;
393
- var wellKnownSymbol$9 = wellKnownSymbol$a;
394
-
395
- var $TypeError$7 = TypeError;
396
- var TO_PRIMITIVE = wellKnownSymbol$9('toPrimitive');
397
-
398
- // `ToPrimitive` abstract operation
399
- // https://tc39.es/ecma262/#sec-toprimitive
400
- var toPrimitive$1 = function (input, pref) {
401
- if (!isObject$6(input) || isSymbol$1(input)) return input;
402
- var exoticToPrim = getMethod$1(input, TO_PRIMITIVE);
403
- var result;
404
- if (exoticToPrim) {
405
- if (pref === undefined) pref = 'default';
406
- result = call$8(exoticToPrim, input, pref);
407
- if (!isObject$6(result) || isSymbol$1(result)) return result;
408
- throw new $TypeError$7("Can't convert object to primitive value");
409
- }
410
- if (pref === undefined) pref = 'number';
411
- return ordinaryToPrimitive(input, pref);
412
- };
413
-
414
- var toPrimitive = toPrimitive$1;
415
- var isSymbol = isSymbol$2;
416
-
417
- // `ToPropertyKey` abstract operation
418
- // https://tc39.es/ecma262/#sec-topropertykey
419
- var toPropertyKey$2 = function (argument) {
420
- var key = toPrimitive(argument, 'string');
421
- return isSymbol(key) ? key : key + '';
422
- };
423
-
424
- var globalThis$9 = globalThis_1;
425
- var isObject$5 = isObject$8;
426
-
427
- var document$1 = globalThis$9.document;
428
- // typeof document.createElement is 'object' in old IE
429
- var EXISTS$1 = isObject$5(document$1) && isObject$5(document$1.createElement);
430
-
431
- var documentCreateElement$2 = function (it) {
432
- return EXISTS$1 ? document$1.createElement(it) : {};
433
- };
434
-
435
- var DESCRIPTORS$a = descriptors;
436
- var fails$d = fails$i;
437
- var createElement = documentCreateElement$2;
438
-
439
- // Thanks to IE8 for its funny defineProperty
440
- var ie8DomDefine = !DESCRIPTORS$a && !fails$d(function () {
441
- // eslint-disable-next-line es/no-object-defineproperty -- required for testing
442
- return Object.defineProperty(createElement('div'), 'a', {
443
- get: function () { return 7; }
444
- }).a !== 7;
445
- });
446
-
447
- var DESCRIPTORS$9 = descriptors;
448
- var call$7 = functionCall;
449
- var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
450
- var createPropertyDescriptor$2 = createPropertyDescriptor$3;
451
- var toIndexedObject$4 = toIndexedObject$5;
452
- var toPropertyKey$1 = toPropertyKey$2;
453
- var hasOwn$7 = hasOwnProperty_1;
454
- var IE8_DOM_DEFINE$1 = ie8DomDefine;
455
-
456
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
457
- var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
458
-
459
- // `Object.getOwnPropertyDescriptor` method
460
- // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
461
- objectGetOwnPropertyDescriptor.f = DESCRIPTORS$9 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
462
- O = toIndexedObject$4(O);
463
- P = toPropertyKey$1(P);
464
- if (IE8_DOM_DEFINE$1) try {
465
- return $getOwnPropertyDescriptor$1(O, P);
466
- } catch (error) { /* empty */ }
467
- if (hasOwn$7(O, P)) return createPropertyDescriptor$2(!call$7(propertyIsEnumerableModule$1.f, O, P), O[P]);
468
- };
469
-
470
- var objectDefineProperty = {};
471
-
472
- var DESCRIPTORS$8 = descriptors;
473
- var fails$c = fails$i;
474
-
475
- // V8 ~ Chrome 36-
476
- // https://bugs.chromium.org/p/v8/issues/detail?id=3334
477
- var v8PrototypeDefineBug = DESCRIPTORS$8 && fails$c(function () {
478
- // eslint-disable-next-line es/no-object-defineproperty -- required for testing
479
- return Object.defineProperty(function () { /* empty */ }, 'prototype', {
480
- value: 42,
481
- writable: false
482
- }).prototype !== 42;
483
- });
484
-
485
- var isObject$4 = isObject$8;
486
-
487
- var $String$3 = String;
488
- var $TypeError$6 = TypeError;
489
-
490
- // `Assert: Type(argument) is Object`
491
- var anObject$7 = function (argument) {
492
- if (isObject$4(argument)) return argument;
493
- throw new $TypeError$6($String$3(argument) + ' is not an object');
494
- };
495
-
496
- var DESCRIPTORS$7 = descriptors;
497
- var IE8_DOM_DEFINE = ie8DomDefine;
498
- var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
499
- var anObject$6 = anObject$7;
500
- var toPropertyKey = toPropertyKey$2;
501
-
502
- var $TypeError$5 = TypeError;
503
- // eslint-disable-next-line es/no-object-defineproperty -- safe
504
- var $defineProperty = Object.defineProperty;
505
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
506
- var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
507
- var ENUMERABLE = 'enumerable';
508
- var CONFIGURABLE$1 = 'configurable';
509
- var WRITABLE = 'writable';
510
-
511
- // `Object.defineProperty` method
512
- // https://tc39.es/ecma262/#sec-object.defineproperty
513
- objectDefineProperty.f = DESCRIPTORS$7 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
514
- anObject$6(O);
515
- P = toPropertyKey(P);
516
- anObject$6(Attributes);
517
- if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
518
- var current = $getOwnPropertyDescriptor(O, P);
519
- if (current && current[WRITABLE]) {
520
- O[P] = Attributes.value;
521
- Attributes = {
522
- configurable: CONFIGURABLE$1 in Attributes ? Attributes[CONFIGURABLE$1] : current[CONFIGURABLE$1],
523
- enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
524
- writable: false
525
- };
526
- }
527
- } return $defineProperty(O, P, Attributes);
528
- } : $defineProperty : function defineProperty(O, P, Attributes) {
529
- anObject$6(O);
530
- P = toPropertyKey(P);
531
- anObject$6(Attributes);
532
- if (IE8_DOM_DEFINE) try {
533
- return $defineProperty(O, P, Attributes);
534
- } catch (error) { /* empty */ }
535
- if ('get' in Attributes || 'set' in Attributes) throw new $TypeError$5('Accessors not supported');
536
- if ('value' in Attributes) O[P] = Attributes.value;
537
- return O;
538
- };
539
-
540
- var DESCRIPTORS$6 = descriptors;
541
- var definePropertyModule$3 = objectDefineProperty;
542
- var createPropertyDescriptor$1 = createPropertyDescriptor$3;
543
-
544
- var createNonEnumerableProperty$5 = DESCRIPTORS$6 ? function (object, key, value) {
545
- return definePropertyModule$3.f(object, key, createPropertyDescriptor$1(1, value));
546
- } : function (object, key, value) {
547
- object[key] = value;
548
- return object;
549
- };
550
-
551
- var makeBuiltIn$2 = {exports: {}};
552
-
553
- var DESCRIPTORS$5 = descriptors;
554
- var hasOwn$6 = hasOwnProperty_1;
555
-
556
- var FunctionPrototype$1 = Function.prototype;
557
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
558
- var getDescriptor = DESCRIPTORS$5 && Object.getOwnPropertyDescriptor;
559
-
560
- var EXISTS = hasOwn$6(FunctionPrototype$1, 'name');
561
- // additional protection from minified / mangled / dropped function names
562
- var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
563
- var CONFIGURABLE = EXISTS && (!DESCRIPTORS$5 || (DESCRIPTORS$5 && getDescriptor(FunctionPrototype$1, 'name').configurable));
564
-
565
- var functionName = {
566
- EXISTS: EXISTS,
567
- PROPER: PROPER,
568
- CONFIGURABLE: CONFIGURABLE
569
- };
570
-
571
- var uncurryThis$9 = functionUncurryThis;
572
- var isCallable$a = isCallable$g;
573
- var store$1 = sharedStoreExports;
574
-
575
- var functionToString = uncurryThis$9(Function.toString);
576
-
577
- // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
578
- if (!isCallable$a(store$1.inspectSource)) {
579
- store$1.inspectSource = function (it) {
580
- return functionToString(it);
581
- };
582
- }
583
-
584
- var inspectSource$1 = store$1.inspectSource;
585
-
586
- var globalThis$8 = globalThis_1;
587
- var isCallable$9 = isCallable$g;
588
-
589
- var WeakMap$2 = globalThis$8.WeakMap;
590
-
591
- var weakMapBasicDetection = isCallable$9(WeakMap$2) && /native code/.test(String(WeakMap$2));
592
-
593
- var shared$2 = shared$4;
594
- var uid = uid$2;
595
-
596
- var keys = shared$2('keys');
597
-
598
- var sharedKey$3 = function (key) {
599
- return keys[key] || (keys[key] = uid(key));
600
- };
601
-
602
- var hiddenKeys$4 = {};
603
-
604
- var NATIVE_WEAK_MAP = weakMapBasicDetection;
605
- var globalThis$7 = globalThis_1;
606
- var isObject$3 = isObject$8;
607
- var createNonEnumerableProperty$4 = createNonEnumerableProperty$5;
608
- var hasOwn$5 = hasOwnProperty_1;
609
- var shared$1 = sharedStoreExports;
610
- var sharedKey$2 = sharedKey$3;
611
- var hiddenKeys$3 = hiddenKeys$4;
612
-
613
- var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
614
- var TypeError$1 = globalThis$7.TypeError;
615
- var WeakMap$1 = globalThis$7.WeakMap;
616
- var set, get, has;
617
-
618
- var enforce = function (it) {
619
- return has(it) ? get(it) : set(it, {});
620
- };
621
-
622
- var getterFor = function (TYPE) {
623
- return function (it) {
624
- var state;
625
- if (!isObject$3(it) || (state = get(it)).type !== TYPE) {
626
- throw new TypeError$1('Incompatible receiver, ' + TYPE + ' required');
627
- } return state;
628
- };
629
- };
630
-
631
- if (NATIVE_WEAK_MAP || shared$1.state) {
632
- var store = shared$1.state || (shared$1.state = new WeakMap$1());
633
- /* eslint-disable no-self-assign -- prototype methods protection */
634
- store.get = store.get;
635
- store.has = store.has;
636
- store.set = store.set;
637
- /* eslint-enable no-self-assign -- prototype methods protection */
638
- set = function (it, metadata) {
639
- if (store.has(it)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
640
- metadata.facade = it;
641
- store.set(it, metadata);
642
- return metadata;
643
- };
644
- get = function (it) {
645
- return store.get(it) || {};
646
- };
647
- has = function (it) {
648
- return store.has(it);
649
- };
650
- } else {
651
- var STATE = sharedKey$2('state');
652
- hiddenKeys$3[STATE] = true;
653
- set = function (it, metadata) {
654
- if (hasOwn$5(it, STATE)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
655
- metadata.facade = it;
656
- createNonEnumerableProperty$4(it, STATE, metadata);
657
- return metadata;
658
- };
659
- get = function (it) {
660
- return hasOwn$5(it, STATE) ? it[STATE] : {};
661
- };
662
- has = function (it) {
663
- return hasOwn$5(it, STATE);
664
- };
665
- }
666
-
667
- var internalState = {
668
- set: set,
669
- get: get,
670
- has: has,
671
- enforce: enforce,
672
- getterFor: getterFor
673
- };
674
-
675
- var uncurryThis$8 = functionUncurryThis;
676
- var fails$b = fails$i;
677
- var isCallable$8 = isCallable$g;
678
- var hasOwn$4 = hasOwnProperty_1;
679
- var DESCRIPTORS$4 = descriptors;
680
- var CONFIGURABLE_FUNCTION_NAME$1 = functionName.CONFIGURABLE;
681
- var inspectSource = inspectSource$1;
682
- var InternalStateModule$1 = internalState;
683
-
684
- var enforceInternalState = InternalStateModule$1.enforce;
685
- var getInternalState$2 = InternalStateModule$1.get;
686
- var $String$2 = String;
687
- // eslint-disable-next-line es/no-object-defineproperty -- safe
688
- var defineProperty$4 = Object.defineProperty;
689
- var stringSlice$4 = uncurryThis$8(''.slice);
690
- var replace$2 = uncurryThis$8(''.replace);
691
- var join = uncurryThis$8([].join);
692
-
693
- var CONFIGURABLE_LENGTH = DESCRIPTORS$4 && !fails$b(function () {
694
- return defineProperty$4(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
695
- });
696
-
697
- var TEMPLATE = String(String).split('String');
698
-
699
- var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) {
700
- if (stringSlice$4($String$2(name), 0, 7) === 'Symbol(') {
701
- name = '[' + replace$2($String$2(name), /^Symbol\(([^)]*)\).*$/, '$1') + ']';
702
- }
703
- if (options && options.getter) name = 'get ' + name;
704
- if (options && options.setter) name = 'set ' + name;
705
- if (!hasOwn$4(value, 'name') || (CONFIGURABLE_FUNCTION_NAME$1 && value.name !== name)) {
706
- if (DESCRIPTORS$4) defineProperty$4(value, 'name', { value: name, configurable: true });
707
- else value.name = name;
708
- }
709
- if (CONFIGURABLE_LENGTH && options && hasOwn$4(options, 'arity') && value.length !== options.arity) {
710
- defineProperty$4(value, 'length', { value: options.arity });
711
- }
712
- try {
713
- if (options && hasOwn$4(options, 'constructor') && options.constructor) {
714
- if (DESCRIPTORS$4) defineProperty$4(value, 'prototype', { writable: false });
715
- // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
716
- } else if (value.prototype) value.prototype = undefined;
717
- } catch (error) { /* empty */ }
718
- var state = enforceInternalState(value);
719
- if (!hasOwn$4(state, 'source')) {
720
- state.source = join(TEMPLATE, typeof name == 'string' ? name : '');
721
- } return value;
722
- };
723
-
724
- // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
725
- // eslint-disable-next-line no-extend-native -- required
726
- Function.prototype.toString = makeBuiltIn$1(function toString() {
727
- return isCallable$8(this) && getInternalState$2(this).source || inspectSource(this);
728
- }, 'toString');
729
-
730
- var makeBuiltInExports = makeBuiltIn$2.exports;
731
-
732
- var isCallable$7 = isCallable$g;
733
- var definePropertyModule$2 = objectDefineProperty;
734
- var makeBuiltIn = makeBuiltInExports;
735
- var defineGlobalProperty$1 = defineGlobalProperty$3;
736
-
737
- var defineBuiltIn$4 = function (O, key, value, options) {
738
- if (!options) options = {};
739
- var simple = options.enumerable;
740
- var name = options.name !== undefined ? options.name : key;
741
- if (isCallable$7(value)) makeBuiltIn(value, name, options);
742
- if (options.global) {
743
- if (simple) O[key] = value;
744
- else defineGlobalProperty$1(key, value);
745
- } else {
746
- try {
747
- if (!options.unsafe) delete O[key];
748
- else if (O[key]) simple = true;
749
- } catch (error) { /* empty */ }
750
- if (simple) O[key] = value;
751
- else definePropertyModule$2.f(O, key, {
752
- value: value,
753
- enumerable: false,
754
- configurable: !options.nonConfigurable,
755
- writable: !options.nonWritable
756
- });
757
- } return O;
758
- };
759
-
760
- var objectGetOwnPropertyNames = {};
761
-
762
- var ceil = Math.ceil;
763
- var floor$1 = Math.floor;
764
-
765
- // `Math.trunc` method
766
- // https://tc39.es/ecma262/#sec-math.trunc
767
- // eslint-disable-next-line es/no-math-trunc -- safe
768
- var mathTrunc = Math.trunc || function trunc(x) {
769
- var n = +x;
770
- return (n > 0 ? floor$1 : ceil)(n);
771
- };
772
-
773
- var trunc = mathTrunc;
774
-
775
- // `ToIntegerOrInfinity` abstract operation
776
- // https://tc39.es/ecma262/#sec-tointegerorinfinity
777
- var toIntegerOrInfinity$4 = function (argument) {
778
- var number = +argument;
779
- // eslint-disable-next-line no-self-compare -- NaN check
780
- return number !== number || number === 0 ? 0 : trunc(number);
781
- };
782
-
783
- var toIntegerOrInfinity$3 = toIntegerOrInfinity$4;
784
-
785
- var max$1 = Math.max;
786
- var min$2 = Math.min;
787
-
788
- // Helper for a popular repeating case of the spec:
789
- // Let integer be ? ToInteger(index).
790
- // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
791
- var toAbsoluteIndex$1 = function (index, length) {
792
- var integer = toIntegerOrInfinity$3(index);
793
- return integer < 0 ? max$1(integer + length, 0) : min$2(integer, length);
794
- };
795
-
796
- var toIntegerOrInfinity$2 = toIntegerOrInfinity$4;
797
-
798
- var min$1 = Math.min;
799
-
800
- // `ToLength` abstract operation
801
- // https://tc39.es/ecma262/#sec-tolength
802
- var toLength$2 = function (argument) {
803
- var len = toIntegerOrInfinity$2(argument);
804
- return len > 0 ? min$1(len, 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
805
- };
806
-
807
- var toLength$1 = toLength$2;
808
-
809
- // `LengthOfArrayLike` abstract operation
810
- // https://tc39.es/ecma262/#sec-lengthofarraylike
811
- var lengthOfArrayLike$3 = function (obj) {
812
- return toLength$1(obj.length);
813
- };
814
-
815
- var toIndexedObject$3 = toIndexedObject$5;
816
- var toAbsoluteIndex = toAbsoluteIndex$1;
817
- var lengthOfArrayLike$2 = lengthOfArrayLike$3;
818
-
819
- // `Array.prototype.{ indexOf, includes }` methods implementation
820
- var createMethod$2 = function (IS_INCLUDES) {
821
- return function ($this, el, fromIndex) {
822
- var O = toIndexedObject$3($this);
823
- var length = lengthOfArrayLike$2(O);
824
- if (length === 0) return !IS_INCLUDES && -1;
825
- var index = toAbsoluteIndex(fromIndex, length);
826
- var value;
827
- // Array#includes uses SameValueZero equality algorithm
828
- // eslint-disable-next-line no-self-compare -- NaN check
829
- if (IS_INCLUDES && el !== el) while (length > index) {
830
- value = O[index++];
831
- // eslint-disable-next-line no-self-compare -- NaN check
832
- if (value !== value) return true;
833
- // Array#indexOf ignores holes, Array#includes - not
834
- } else for (;length > index; index++) {
835
- if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
836
- } return !IS_INCLUDES && -1;
837
- };
838
- };
839
-
840
- var arrayIncludes = {
841
- // `Array.prototype.includes` method
842
- // https://tc39.es/ecma262/#sec-array.prototype.includes
843
- includes: createMethod$2(true),
844
- // `Array.prototype.indexOf` method
845
- // https://tc39.es/ecma262/#sec-array.prototype.indexof
846
- indexOf: createMethod$2(false)
847
- };
848
-
849
- var uncurryThis$7 = functionUncurryThis;
850
- var hasOwn$3 = hasOwnProperty_1;
851
- var toIndexedObject$2 = toIndexedObject$5;
852
- var indexOf$1 = arrayIncludes.indexOf;
853
- var hiddenKeys$2 = hiddenKeys$4;
854
-
855
- var push$1 = uncurryThis$7([].push);
856
-
857
- var objectKeysInternal = function (object, names) {
858
- var O = toIndexedObject$2(object);
859
- var i = 0;
860
- var result = [];
861
- var key;
862
- for (key in O) !hasOwn$3(hiddenKeys$2, key) && hasOwn$3(O, key) && push$1(result, key);
863
- // Don't enum bug & hidden keys
864
- while (names.length > i) if (hasOwn$3(O, key = names[i++])) {
865
- ~indexOf$1(result, key) || push$1(result, key);
866
- }
867
- return result;
868
- };
869
-
870
- // IE8- don't enum bug keys
871
- var enumBugKeys$3 = [
872
- 'constructor',
873
- 'hasOwnProperty',
874
- 'isPrototypeOf',
875
- 'propertyIsEnumerable',
876
- 'toLocaleString',
877
- 'toString',
878
- 'valueOf'
879
- ];
880
-
881
- var internalObjectKeys$1 = objectKeysInternal;
882
- var enumBugKeys$2 = enumBugKeys$3;
883
-
884
- var hiddenKeys$1 = enumBugKeys$2.concat('length', 'prototype');
885
-
886
- // `Object.getOwnPropertyNames` method
887
- // https://tc39.es/ecma262/#sec-object.getownpropertynames
888
- // eslint-disable-next-line es/no-object-getownpropertynames -- safe
889
- objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
890
- return internalObjectKeys$1(O, hiddenKeys$1);
891
- };
892
-
893
- var objectGetOwnPropertySymbols = {};
894
-
895
- // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
896
- objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
897
-
898
- var getBuiltIn$1 = getBuiltIn$3;
899
- var uncurryThis$6 = functionUncurryThis;
900
- var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
901
- var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
902
- var anObject$5 = anObject$7;
903
-
904
- var concat$2 = uncurryThis$6([].concat);
905
-
906
- // all object keys, includes non-enumerable and symbols
907
- var ownKeys$1 = getBuiltIn$1('Reflect', 'ownKeys') || function ownKeys(it) {
908
- var keys = getOwnPropertyNamesModule.f(anObject$5(it));
909
- var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;
910
- return getOwnPropertySymbols ? concat$2(keys, getOwnPropertySymbols(it)) : keys;
911
- };
912
-
913
- var hasOwn$2 = hasOwnProperty_1;
914
- var ownKeys = ownKeys$1;
915
- var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
916
- var definePropertyModule$1 = objectDefineProperty;
917
-
918
- var copyConstructorProperties$1 = function (target, source, exceptions) {
919
- var keys = ownKeys(source);
920
- var defineProperty = definePropertyModule$1.f;
921
- var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
922
- for (var i = 0; i < keys.length; i++) {
923
- var key = keys[i];
924
- if (!hasOwn$2(target, key) && !(exceptions && hasOwn$2(exceptions, key))) {
925
- defineProperty(target, key, getOwnPropertyDescriptor(source, key));
926
- }
927
- }
928
- };
929
-
930
- var fails$a = fails$i;
931
- var isCallable$6 = isCallable$g;
932
-
933
- var replacement = /#|\.prototype\./;
934
-
935
- var isForced$1 = function (feature, detection) {
936
- var value = data[normalize(feature)];
937
- return value === POLYFILL ? true
938
- : value === NATIVE ? false
939
- : isCallable$6(detection) ? fails$a(detection)
940
- : !!detection;
941
- };
942
-
943
- var normalize = isForced$1.normalize = function (string) {
944
- return String(string).replace(replacement, '.').toLowerCase();
945
- };
946
-
947
- var data = isForced$1.data = {};
948
- var NATIVE = isForced$1.NATIVE = 'N';
949
- var POLYFILL = isForced$1.POLYFILL = 'P';
950
-
951
- var isForced_1 = isForced$1;
952
-
953
- var globalThis$6 = globalThis_1;
954
- var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
955
- var createNonEnumerableProperty$3 = createNonEnumerableProperty$5;
956
- var defineBuiltIn$3 = defineBuiltIn$4;
957
- var defineGlobalProperty = defineGlobalProperty$3;
958
- var copyConstructorProperties = copyConstructorProperties$1;
959
- var isForced = isForced_1;
960
-
961
- /*
962
- options.target - name of the target object
963
- options.global - target is the global object
964
- options.stat - export as static methods of target
965
- options.proto - export as prototype methods of target
966
- options.real - real prototype method for the `pure` version
967
- options.forced - export even if the native feature is available
968
- options.bind - bind methods to the target, required for the `pure` version
969
- options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
970
- options.unsafe - use the simple assignment of property instead of delete + defineProperty
971
- options.sham - add a flag to not completely full polyfills
972
- options.enumerable - export as enumerable property
973
- options.dontCallGetSet - prevent calling a getter on target
974
- options.name - the .name of the function if it does not match the key
975
- */
976
- var _export = function (options, source) {
977
- var TARGET = options.target;
978
- var GLOBAL = options.global;
979
- var STATIC = options.stat;
980
- var FORCED, target, key, targetProperty, sourceProperty, descriptor;
981
- if (GLOBAL) {
982
- target = globalThis$6;
983
- } else if (STATIC) {
984
- target = globalThis$6[TARGET] || defineGlobalProperty(TARGET, {});
985
- } else {
986
- target = globalThis$6[TARGET] && globalThis$6[TARGET].prototype;
987
- }
988
- if (target) for (key in source) {
989
- sourceProperty = source[key];
990
- if (options.dontCallGetSet) {
991
- descriptor = getOwnPropertyDescriptor$1(target, key);
992
- targetProperty = descriptor && descriptor.value;
993
- } else targetProperty = target[key];
994
- FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
995
- // contained in target
996
- if (!FORCED && targetProperty !== undefined) {
997
- if (typeof sourceProperty == typeof targetProperty) continue;
998
- copyConstructorProperties(sourceProperty, targetProperty);
999
- }
1000
- // add a flag to not completely full polyfills
1001
- if (options.sham || (targetProperty && targetProperty.sham)) {
1002
- createNonEnumerableProperty$3(sourceProperty, 'sham', true);
1003
- }
1004
- defineBuiltIn$3(target, key, sourceProperty, options);
1005
- }
1006
- };
1007
-
1008
- var aCallable$1 = aCallable$3;
1009
- var toObject$4 = toObject$6;
1010
- var IndexedObject$1 = indexedObject;
1011
- var lengthOfArrayLike$1 = lengthOfArrayLike$3;
1012
-
1013
- var $TypeError$4 = TypeError;
1014
-
1015
- var REDUCE_EMPTY = 'Reduce of empty array with no initial value';
1016
-
1017
- // `Array.prototype.{ reduce, reduceRight }` methods implementation
1018
- var createMethod$1 = function (IS_RIGHT) {
1019
- return function (that, callbackfn, argumentsLength, memo) {
1020
- var O = toObject$4(that);
1021
- var self = IndexedObject$1(O);
1022
- var length = lengthOfArrayLike$1(O);
1023
- aCallable$1(callbackfn);
1024
- if (length === 0 && argumentsLength < 2) throw new $TypeError$4(REDUCE_EMPTY);
1025
- var index = IS_RIGHT ? length - 1 : 0;
1026
- var i = IS_RIGHT ? -1 : 1;
1027
- if (argumentsLength < 2) while (true) {
1028
- if (index in self) {
1029
- memo = self[index];
1030
- index += i;
1031
- break;
1032
- }
1033
- index += i;
1034
- if (IS_RIGHT ? index < 0 : length <= index) {
1035
- throw new $TypeError$4(REDUCE_EMPTY);
1036
- }
1037
- }
1038
- for (;IS_RIGHT ? index >= 0 : length > index; index += i) if (index in self) {
1039
- memo = callbackfn(memo, self[index], index, O);
1040
- }
1041
- return memo;
1042
- };
1043
- };
1044
-
1045
- var arrayReduce = {
1046
- // `Array.prototype.reduce` method
1047
- // https://tc39.es/ecma262/#sec-array.prototype.reduce
1048
- left: createMethod$1(false),
1049
- // `Array.prototype.reduceRight` method
1050
- // https://tc39.es/ecma262/#sec-array.prototype.reduceright
1051
- right: createMethod$1(true)
1052
- };
1053
-
1054
- var fails$9 = fails$i;
1055
-
1056
- var arrayMethodIsStrict$1 = function (METHOD_NAME, argument) {
1057
- var method = [][METHOD_NAME];
1058
- return !!method && fails$9(function () {
1059
- // eslint-disable-next-line no-useless-call -- required for testing
1060
- method.call(null, argument || function () { return 1; }, 1);
1061
- });
1062
- };
1063
-
1064
- /* global Bun, Deno -- detection */
1065
- var globalThis$5 = globalThis_1;
1066
- var userAgent = environmentUserAgent;
1067
- var classof$4 = classofRaw$1;
1068
-
1069
- var userAgentStartsWith = function (string) {
1070
- return userAgent.slice(0, string.length) === string;
1071
- };
1072
-
1073
- var environment = (function () {
1074
- if (userAgentStartsWith('Bun/')) return 'BUN';
1075
- if (userAgentStartsWith('Cloudflare-Workers')) return 'CLOUDFLARE';
1076
- if (userAgentStartsWith('Deno/')) return 'DENO';
1077
- if (userAgentStartsWith('Node.js/')) return 'NODE';
1078
- if (globalThis$5.Bun && typeof Bun.version == 'string') return 'BUN';
1079
- if (globalThis$5.Deno && typeof Deno.version == 'object') return 'DENO';
1080
- if (classof$4(globalThis$5.process) === 'process') return 'NODE';
1081
- if (globalThis$5.window && globalThis$5.document) return 'BROWSER';
1082
- return 'REST';
1083
- })();
1084
-
1085
- var ENVIRONMENT = environment;
1086
-
1087
- var environmentIsNode = ENVIRONMENT === 'NODE';
1088
-
1089
- var $$4 = _export;
1090
- var $reduce = arrayReduce.left;
1091
- var arrayMethodIsStrict = arrayMethodIsStrict$1;
1092
- var CHROME_VERSION = environmentV8Version;
1093
- var IS_NODE = environmentIsNode;
1094
-
1095
- // Chrome 80-82 has a critical bug
1096
- // https://bugs.chromium.org/p/chromium/issues/detail?id=1049982
1097
- var CHROME_BUG = !IS_NODE && CHROME_VERSION > 79 && CHROME_VERSION < 83;
1098
- var FORCED$1 = CHROME_BUG || !arrayMethodIsStrict('reduce');
1099
-
1100
- // `Array.prototype.reduce` method
1101
- // https://tc39.es/ecma262/#sec-array.prototype.reduce
1102
- $$4({ target: 'Array', proto: true, forced: FORCED$1 }, {
1103
- reduce: function reduce(callbackfn /* , initialValue */) {
1104
- var length = arguments.length;
1105
- return $reduce(this, callbackfn, length, length > 1 ? arguments[1] : undefined);
1106
- }
1107
- });
1108
-
1109
- var internalObjectKeys = objectKeysInternal;
1110
- var enumBugKeys$1 = enumBugKeys$3;
1111
-
1112
- // `Object.keys` method
1113
- // https://tc39.es/ecma262/#sec-object.keys
1114
- // eslint-disable-next-line es/no-object-keys -- safe
1115
- var objectKeys$2 = Object.keys || function keys(O) {
1116
- return internalObjectKeys(O, enumBugKeys$1);
1117
- };
1118
-
1119
- var DESCRIPTORS$3 = descriptors;
1120
- var uncurryThis$5 = functionUncurryThis;
1121
- var call$6 = functionCall;
1122
- var fails$8 = fails$i;
1123
- var objectKeys$1 = objectKeys$2;
1124
- var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
1125
- var propertyIsEnumerableModule = objectPropertyIsEnumerable;
1126
- var toObject$3 = toObject$6;
1127
- var IndexedObject = indexedObject;
1128
-
1129
- // eslint-disable-next-line es/no-object-assign -- safe
1130
- var $assign = Object.assign;
1131
- // eslint-disable-next-line es/no-object-defineproperty -- required for testing
1132
- var defineProperty$3 = Object.defineProperty;
1133
- var concat$1 = uncurryThis$5([].concat);
1134
-
1135
- // `Object.assign` method
1136
- // https://tc39.es/ecma262/#sec-object.assign
1137
- var objectAssign = !$assign || fails$8(function () {
1138
- // should have correct order of operations (Edge bug)
1139
- if (DESCRIPTORS$3 && $assign({ b: 1 }, $assign(defineProperty$3({}, 'a', {
1140
- enumerable: true,
1141
- get: function () {
1142
- defineProperty$3(this, 'b', {
1143
- value: 3,
1144
- enumerable: false
1145
- });
1146
- }
1147
- }), { b: 2 })).b !== 1) return true;
1148
- // should work with symbols and should have deterministic property order (V8 bug)
1149
- var A = {};
1150
- var B = {};
1151
- // eslint-disable-next-line es/no-symbol -- safe
1152
- var symbol = Symbol('assign detection');
1153
- var alphabet = 'abcdefghijklmnopqrst';
1154
- A[symbol] = 7;
1155
- alphabet.split('').forEach(function (chr) { B[chr] = chr; });
1156
- return $assign({}, A)[symbol] !== 7 || objectKeys$1($assign({}, B)).join('') !== alphabet;
1157
- }) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
1158
- var T = toObject$3(target);
1159
- var argumentsLength = arguments.length;
1160
- var index = 1;
1161
- var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
1162
- var propertyIsEnumerable = propertyIsEnumerableModule.f;
1163
- while (argumentsLength > index) {
1164
- var S = IndexedObject(arguments[index++]);
1165
- var keys = getOwnPropertySymbols ? concat$1(objectKeys$1(S), getOwnPropertySymbols(S)) : objectKeys$1(S);
1166
- var length = keys.length;
1167
- var j = 0;
1168
- var key;
1169
- while (length > j) {
1170
- key = keys[j++];
1171
- if (!DESCRIPTORS$3 || call$6(propertyIsEnumerable, S, key)) T[key] = S[key];
1172
- }
1173
- } return T;
1174
- } : $assign;
1175
-
1176
- var $$3 = _export;
1177
- var assign = objectAssign;
1178
-
1179
- // `Object.assign` method
1180
- // https://tc39.es/ecma262/#sec-object.assign
1181
- // eslint-disable-next-line es/no-object-assign -- required for testing
1182
- $$3({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
1183
- assign: assign
1184
- });
1185
-
1186
- /******************************************************************************
1187
- Copyright (c) Microsoft Corporation.
1188
-
1189
- Permission to use, copy, modify, and/or distribute this software for any
1190
- purpose with or without fee is hereby granted.
1191
-
1192
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
1193
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
1194
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
1195
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
1196
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
1197
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
1198
- PERFORMANCE OF THIS SOFTWARE.
1199
- ***************************************************************************** */
1200
- /* global Reflect, Promise, SuppressedError, Symbol, Iterator */
1201
-
1202
-
1203
- function __rest(s, e) {
1204
- var t = {};
1205
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
1206
- t[p] = s[p];
1207
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
1208
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
1209
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
1210
- t[p[i]] = s[p[i]];
1211
- }
1212
- return t;
1213
- }
1214
-
1215
- typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
1216
- var e = new Error(message);
1217
- return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
1218
- };
1219
-
1220
- var objectDefineProperties = {};
1221
-
1222
- var DESCRIPTORS$2 = descriptors;
1223
- var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
1224
- var definePropertyModule = objectDefineProperty;
1225
- var anObject$4 = anObject$7;
1226
- var toIndexedObject$1 = toIndexedObject$5;
1227
- var objectKeys = objectKeys$2;
1228
-
1229
- // `Object.defineProperties` method
1230
- // https://tc39.es/ecma262/#sec-object.defineproperties
1231
- // eslint-disable-next-line es/no-object-defineproperties -- safe
1232
- objectDefineProperties.f = DESCRIPTORS$2 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
1233
- anObject$4(O);
1234
- var props = toIndexedObject$1(Properties);
1235
- var keys = objectKeys(Properties);
1236
- var length = keys.length;
1237
- var index = 0;
1238
- var key;
1239
- while (length > index) definePropertyModule.f(O, key = keys[index++], props[key]);
1240
- return O;
1241
- };
1242
-
1243
- var getBuiltIn = getBuiltIn$3;
1244
-
1245
- var html$1 = getBuiltIn('document', 'documentElement');
1246
-
1247
- /* global ActiveXObject -- old IE, WSH */
1248
- var anObject$3 = anObject$7;
1249
- var definePropertiesModule = objectDefineProperties;
1250
- var enumBugKeys = enumBugKeys$3;
1251
- var hiddenKeys = hiddenKeys$4;
1252
- var html = html$1;
1253
- var documentCreateElement$1 = documentCreateElement$2;
1254
- var sharedKey$1 = sharedKey$3;
1255
-
1256
- var GT = '>';
1257
- var LT = '<';
1258
- var PROTOTYPE = 'prototype';
1259
- var SCRIPT = 'script';
1260
- var IE_PROTO$1 = sharedKey$1('IE_PROTO');
1261
-
1262
- var EmptyConstructor = function () { /* empty */ };
1263
-
1264
- var scriptTag = function (content) {
1265
- return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
1266
- };
1267
-
1268
- // Create object with fake `null` prototype: use ActiveX Object with cleared prototype
1269
- var NullProtoObjectViaActiveX = function (activeXDocument) {
1270
- activeXDocument.write(scriptTag(''));
1271
- activeXDocument.close();
1272
- var temp = activeXDocument.parentWindow.Object;
1273
- // eslint-disable-next-line no-useless-assignment -- avoid memory leak
1274
- activeXDocument = null;
1275
- return temp;
1276
- };
1277
-
1278
- // Create object with fake `null` prototype: use iframe Object with cleared prototype
1279
- var NullProtoObjectViaIFrame = function () {
1280
- // Thrash, waste and sodomy: IE GC bug
1281
- var iframe = documentCreateElement$1('iframe');
1282
- var JS = 'java' + SCRIPT + ':';
1283
- var iframeDocument;
1284
- iframe.style.display = 'none';
1285
- html.appendChild(iframe);
1286
- // https://github.com/zloirock/core-js/issues/475
1287
- iframe.src = String(JS);
1288
- iframeDocument = iframe.contentWindow.document;
1289
- iframeDocument.open();
1290
- iframeDocument.write(scriptTag('document.F=Object'));
1291
- iframeDocument.close();
1292
- return iframeDocument.F;
1293
- };
1294
-
1295
- // Check for document.domain and active x support
1296
- // No need to use active x approach when document.domain is not set
1297
- // see https://github.com/es-shims/es5-shim/issues/150
1298
- // variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
1299
- // avoid IE GC bug
1300
- var activeXDocument;
1301
- var NullProtoObject = function () {
1302
- try {
1303
- activeXDocument = new ActiveXObject('htmlfile');
1304
- } catch (error) { /* ignore */ }
1305
- NullProtoObject = typeof document != 'undefined'
1306
- ? document.domain && activeXDocument
1307
- ? NullProtoObjectViaActiveX(activeXDocument) // old IE
1308
- : NullProtoObjectViaIFrame()
1309
- : NullProtoObjectViaActiveX(activeXDocument); // WSH
1310
- var length = enumBugKeys.length;
1311
- while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
1312
- return NullProtoObject();
1313
- };
1314
-
1315
- hiddenKeys[IE_PROTO$1] = true;
1316
-
1317
- // `Object.create` method
1318
- // https://tc39.es/ecma262/#sec-object.create
1319
- // eslint-disable-next-line es/no-object-create -- safe
1320
- var objectCreate = Object.create || function create(O, Properties) {
1321
- var result;
1322
- if (O !== null) {
1323
- EmptyConstructor[PROTOTYPE] = anObject$3(O);
1324
- result = new EmptyConstructor();
1325
- EmptyConstructor[PROTOTYPE] = null;
1326
- // add "__proto__" for Object.getPrototypeOf polyfill
1327
- result[IE_PROTO$1] = O;
1328
- } else result = NullProtoObject();
1329
- return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
1330
- };
1331
-
1332
- var wellKnownSymbol$8 = wellKnownSymbol$a;
1333
- var create$2 = objectCreate;
1334
- var defineProperty$2 = objectDefineProperty.f;
1335
-
1336
- var UNSCOPABLES = wellKnownSymbol$8('unscopables');
1337
- var ArrayPrototype = Array.prototype;
1338
-
1339
- // Array.prototype[@@unscopables]
1340
- // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
1341
- if (ArrayPrototype[UNSCOPABLES] === undefined) {
1342
- defineProperty$2(ArrayPrototype, UNSCOPABLES, {
1343
- configurable: true,
1344
- value: create$2(null)
1345
- });
1346
- }
1347
-
1348
- // add a key to Array.prototype[@@unscopables]
1349
- var addToUnscopables$1 = function (key) {
1350
- ArrayPrototype[UNSCOPABLES][key] = true;
1351
- };
1352
-
1353
- var iterators = {};
1354
-
1355
- var fails$7 = fails$i;
1356
-
1357
- var correctPrototypeGetter = !fails$7(function () {
1358
- function F() { /* empty */ }
1359
- F.prototype.constructor = null;
1360
- // eslint-disable-next-line es/no-object-getprototypeof -- required for testing
1361
- return Object.getPrototypeOf(new F()) !== F.prototype;
1362
- });
1363
-
1364
- var hasOwn$1 = hasOwnProperty_1;
1365
- var isCallable$5 = isCallable$g;
1366
- var toObject$2 = toObject$6;
1367
- var sharedKey = sharedKey$3;
1368
- var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;
1369
-
1370
- var IE_PROTO = sharedKey('IE_PROTO');
1371
- var $Object$1 = Object;
1372
- var ObjectPrototype = $Object$1.prototype;
1373
-
1374
- // `Object.getPrototypeOf` method
1375
- // https://tc39.es/ecma262/#sec-object.getprototypeof
1376
- // eslint-disable-next-line es/no-object-getprototypeof -- safe
1377
- var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object$1.getPrototypeOf : function (O) {
1378
- var object = toObject$2(O);
1379
- if (hasOwn$1(object, IE_PROTO)) return object[IE_PROTO];
1380
- var constructor = object.constructor;
1381
- if (isCallable$5(constructor) && object instanceof constructor) {
1382
- return constructor.prototype;
1383
- } return object instanceof $Object$1 ? ObjectPrototype : null;
1384
- };
1385
-
1386
- var fails$6 = fails$i;
1387
- var isCallable$4 = isCallable$g;
1388
- var isObject$2 = isObject$8;
1389
- var getPrototypeOf$1 = objectGetPrototypeOf;
1390
- var defineBuiltIn$2 = defineBuiltIn$4;
1391
- var wellKnownSymbol$7 = wellKnownSymbol$a;
1392
-
1393
- var ITERATOR$2 = wellKnownSymbol$7('iterator');
1394
- var BUGGY_SAFARI_ITERATORS$1 = false;
1395
-
1396
- // `%IteratorPrototype%` object
1397
- // https://tc39.es/ecma262/#sec-%iteratorprototype%-object
1398
- var IteratorPrototype$2, PrototypeOfArrayIteratorPrototype, arrayIterator;
1399
-
1400
- /* eslint-disable es/no-array-prototype-keys -- safe */
1401
- if ([].keys) {
1402
- arrayIterator = [].keys();
1403
- // Safari 8 has buggy iterators w/o `next`
1404
- if (!('next' in arrayIterator)) BUGGY_SAFARI_ITERATORS$1 = true;
1405
- else {
1406
- PrototypeOfArrayIteratorPrototype = getPrototypeOf$1(getPrototypeOf$1(arrayIterator));
1407
- if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype$2 = PrototypeOfArrayIteratorPrototype;
1408
- }
1409
- }
1410
-
1411
- var NEW_ITERATOR_PROTOTYPE = !isObject$2(IteratorPrototype$2) || fails$6(function () {
1412
- var test = {};
1413
- // FF44- legacy iterators case
1414
- return IteratorPrototype$2[ITERATOR$2].call(test) !== test;
1415
- });
1416
-
1417
- if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype$2 = {};
1418
-
1419
- // `%IteratorPrototype%[@@iterator]()` method
1420
- // https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator
1421
- if (!isCallable$4(IteratorPrototype$2[ITERATOR$2])) {
1422
- defineBuiltIn$2(IteratorPrototype$2, ITERATOR$2, function () {
1423
- return this;
1424
- });
1425
- }
1426
-
1427
- var iteratorsCore = {
1428
- IteratorPrototype: IteratorPrototype$2,
1429
- BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS$1
1430
- };
1431
-
1432
- var defineProperty$1 = objectDefineProperty.f;
1433
- var hasOwn = hasOwnProperty_1;
1434
- var wellKnownSymbol$6 = wellKnownSymbol$a;
1435
-
1436
- var TO_STRING_TAG$2 = wellKnownSymbol$6('toStringTag');
1437
-
1438
- var setToStringTag$3 = function (target, TAG, STATIC) {
1439
- if (target && !STATIC) target = target.prototype;
1440
- if (target && !hasOwn(target, TO_STRING_TAG$2)) {
1441
- defineProperty$1(target, TO_STRING_TAG$2, { configurable: true, value: TAG });
1442
- }
1443
- };
1444
-
1445
- var IteratorPrototype$1 = iteratorsCore.IteratorPrototype;
1446
- var create$1 = objectCreate;
1447
- var createPropertyDescriptor = createPropertyDescriptor$3;
1448
- var setToStringTag$2 = setToStringTag$3;
1449
- var Iterators$2 = iterators;
1450
-
1451
- var returnThis$1 = function () { return this; };
1452
-
1453
- var iteratorCreateConstructor = function (IteratorConstructor, NAME, next, ENUMERABLE_NEXT) {
1454
- var TO_STRING_TAG = NAME + ' Iterator';
1455
- IteratorConstructor.prototype = create$1(IteratorPrototype$1, { next: createPropertyDescriptor(+!ENUMERABLE_NEXT, next) });
1456
- setToStringTag$2(IteratorConstructor, TO_STRING_TAG, false);
1457
- Iterators$2[TO_STRING_TAG] = returnThis$1;
1458
- return IteratorConstructor;
1459
- };
1460
-
1461
- var uncurryThis$4 = functionUncurryThis;
1462
- var aCallable = aCallable$3;
1463
-
1464
- var functionUncurryThisAccessor = function (object, key, method) {
1465
- try {
1466
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
1467
- return uncurryThis$4(aCallable(Object.getOwnPropertyDescriptor(object, key)[method]));
1468
- } catch (error) { /* empty */ }
1469
- };
1470
-
1471
- var isObject$1 = isObject$8;
1472
-
1473
- var isPossiblePrototype$1 = function (argument) {
1474
- return isObject$1(argument) || argument === null;
1475
- };
1476
-
1477
- var isPossiblePrototype = isPossiblePrototype$1;
1478
-
1479
- var $String$1 = String;
1480
- var $TypeError$3 = TypeError;
1481
-
1482
- var aPossiblePrototype$1 = function (argument) {
1483
- if (isPossiblePrototype(argument)) return argument;
1484
- throw new $TypeError$3("Can't set " + $String$1(argument) + ' as a prototype');
1485
- };
1486
-
1487
- /* eslint-disable no-proto -- safe */
1488
- var uncurryThisAccessor = functionUncurryThisAccessor;
1489
- var isObject = isObject$8;
1490
- var requireObjectCoercible$2 = requireObjectCoercible$5;
1491
- var aPossiblePrototype = aPossiblePrototype$1;
1492
-
1493
- // `Object.setPrototypeOf` method
1494
- // https://tc39.es/ecma262/#sec-object.setprototypeof
1495
- // Works with __proto__ only. Old v8 can't work with null proto objects.
1496
- // eslint-disable-next-line es/no-object-setprototypeof -- safe
1497
- var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () {
1498
- var CORRECT_SETTER = false;
1499
- var test = {};
1500
- var setter;
1501
- try {
1502
- setter = uncurryThisAccessor(Object.prototype, '__proto__', 'set');
1503
- setter(test, []);
1504
- CORRECT_SETTER = test instanceof Array;
1505
- } catch (error) { /* empty */ }
1506
- return function setPrototypeOf(O, proto) {
1507
- requireObjectCoercible$2(O);
1508
- aPossiblePrototype(proto);
1509
- if (!isObject(O)) return O;
1510
- if (CORRECT_SETTER) setter(O, proto);
1511
- else O.__proto__ = proto;
1512
- return O;
1513
- };
1514
- }() : undefined);
1515
-
1516
- var $$2 = _export;
1517
- var call$5 = functionCall;
1518
- var FunctionName = functionName;
1519
- var isCallable$3 = isCallable$g;
1520
- var createIteratorConstructor = iteratorCreateConstructor;
1521
- var getPrototypeOf = objectGetPrototypeOf;
1522
- var setPrototypeOf = objectSetPrototypeOf;
1523
- var setToStringTag$1 = setToStringTag$3;
1524
- var createNonEnumerableProperty$2 = createNonEnumerableProperty$5;
1525
- var defineBuiltIn$1 = defineBuiltIn$4;
1526
- var wellKnownSymbol$5 = wellKnownSymbol$a;
1527
- var Iterators$1 = iterators;
1528
- var IteratorsCore = iteratorsCore;
1529
-
1530
- var PROPER_FUNCTION_NAME = FunctionName.PROPER;
1531
- var CONFIGURABLE_FUNCTION_NAME = FunctionName.CONFIGURABLE;
1532
- var IteratorPrototype = IteratorsCore.IteratorPrototype;
1533
- var BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS;
1534
- var ITERATOR$1 = wellKnownSymbol$5('iterator');
1535
- var KEYS = 'keys';
1536
- var VALUES = 'values';
1537
- var ENTRIES = 'entries';
1538
-
1539
- var returnThis = function () { return this; };
1540
-
1541
- var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) {
1542
- createIteratorConstructor(IteratorConstructor, NAME, next);
1543
-
1544
- var getIterationMethod = function (KIND) {
1545
- if (KIND === DEFAULT && defaultIterator) return defaultIterator;
1546
- if (!BUGGY_SAFARI_ITERATORS && KIND && KIND in IterablePrototype) return IterablePrototype[KIND];
1547
-
1548
- switch (KIND) {
1549
- case KEYS: return function keys() { return new IteratorConstructor(this, KIND); };
1550
- case VALUES: return function values() { return new IteratorConstructor(this, KIND); };
1551
- case ENTRIES: return function entries() { return new IteratorConstructor(this, KIND); };
1552
- }
1553
-
1554
- return function () { return new IteratorConstructor(this); };
1555
- };
1556
-
1557
- var TO_STRING_TAG = NAME + ' Iterator';
1558
- var INCORRECT_VALUES_NAME = false;
1559
- var IterablePrototype = Iterable.prototype;
1560
- var nativeIterator = IterablePrototype[ITERATOR$1]
1561
- || IterablePrototype['@@iterator']
1562
- || DEFAULT && IterablePrototype[DEFAULT];
1563
- var defaultIterator = !BUGGY_SAFARI_ITERATORS && nativeIterator || getIterationMethod(DEFAULT);
1564
- var anyNativeIterator = NAME === 'Array' ? IterablePrototype.entries || nativeIterator : nativeIterator;
1565
- var CurrentIteratorPrototype, methods, KEY;
1566
-
1567
- // fix native
1568
- if (anyNativeIterator) {
1569
- CurrentIteratorPrototype = getPrototypeOf(anyNativeIterator.call(new Iterable()));
1570
- if (CurrentIteratorPrototype !== Object.prototype && CurrentIteratorPrototype.next) {
1571
- if (getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) {
1572
- if (setPrototypeOf) {
1573
- setPrototypeOf(CurrentIteratorPrototype, IteratorPrototype);
1574
- } else if (!isCallable$3(CurrentIteratorPrototype[ITERATOR$1])) {
1575
- defineBuiltIn$1(CurrentIteratorPrototype, ITERATOR$1, returnThis);
1576
- }
1577
- }
1578
- // Set @@toStringTag to native iterators
1579
- setToStringTag$1(CurrentIteratorPrototype, TO_STRING_TAG, true);
1580
- }
1581
- }
1582
-
1583
- // fix Array.prototype.{ values, @@iterator }.name in V8 / FF
1584
- if (PROPER_FUNCTION_NAME && DEFAULT === VALUES && nativeIterator && nativeIterator.name !== VALUES) {
1585
- if (CONFIGURABLE_FUNCTION_NAME) {
1586
- createNonEnumerableProperty$2(IterablePrototype, 'name', VALUES);
1587
- } else {
1588
- INCORRECT_VALUES_NAME = true;
1589
- defaultIterator = function values() { return call$5(nativeIterator, this); };
1590
- }
1591
- }
1592
-
1593
- // export additional methods
1594
- if (DEFAULT) {
1595
- methods = {
1596
- values: getIterationMethod(VALUES),
1597
- keys: IS_SET ? defaultIterator : getIterationMethod(KEYS),
1598
- entries: getIterationMethod(ENTRIES)
1599
- };
1600
- if (FORCED) for (KEY in methods) {
1601
- if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
1602
- defineBuiltIn$1(IterablePrototype, KEY, methods[KEY]);
1603
- }
1604
- } else $$2({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
1605
- }
1606
-
1607
- // define iterator
1608
- if (IterablePrototype[ITERATOR$1] !== defaultIterator) {
1609
- defineBuiltIn$1(IterablePrototype, ITERATOR$1, defaultIterator, { name: DEFAULT });
1610
- }
1611
- Iterators$1[NAME] = defaultIterator;
1612
-
1613
- return methods;
1614
- };
1615
-
1616
- // `CreateIterResultObject` abstract operation
1617
- // https://tc39.es/ecma262/#sec-createiterresultobject
1618
- var createIterResultObject$1 = function (value, done) {
1619
- return { value: value, done: done };
1620
- };
1621
-
1622
- var toIndexedObject = toIndexedObject$5;
1623
- var addToUnscopables = addToUnscopables$1;
1624
- var Iterators = iterators;
1625
- var InternalStateModule = internalState;
1626
- var defineProperty = objectDefineProperty.f;
1627
- var defineIterator = iteratorDefine;
1628
- var createIterResultObject = createIterResultObject$1;
1629
- var DESCRIPTORS$1 = descriptors;
1630
-
1631
- var ARRAY_ITERATOR = 'Array Iterator';
1632
- var setInternalState = InternalStateModule.set;
1633
- var getInternalState$1 = InternalStateModule.getterFor(ARRAY_ITERATOR);
1634
-
1635
- // `Array.prototype.entries` method
1636
- // https://tc39.es/ecma262/#sec-array.prototype.entries
1637
- // `Array.prototype.keys` method
1638
- // https://tc39.es/ecma262/#sec-array.prototype.keys
1639
- // `Array.prototype.values` method
1640
- // https://tc39.es/ecma262/#sec-array.prototype.values
1641
- // `Array.prototype[@@iterator]` method
1642
- // https://tc39.es/ecma262/#sec-array.prototype-@@iterator
1643
- // `CreateArrayIterator` internal method
1644
- // https://tc39.es/ecma262/#sec-createarrayiterator
1645
- var es_array_iterator = defineIterator(Array, 'Array', function (iterated, kind) {
1646
- setInternalState(this, {
1647
- type: ARRAY_ITERATOR,
1648
- target: toIndexedObject(iterated), // target
1649
- index: 0, // next index
1650
- kind: kind // kind
1651
- });
1652
- // `%ArrayIteratorPrototype%.next` method
1653
- // https://tc39.es/ecma262/#sec-%arrayiteratorprototype%.next
1654
- }, function () {
1655
- var state = getInternalState$1(this);
1656
- var target = state.target;
1657
- var index = state.index++;
1658
- if (!target || index >= target.length) {
1659
- state.target = null;
1660
- return createIterResultObject(undefined, true);
1661
- }
1662
- switch (state.kind) {
1663
- case 'keys': return createIterResultObject(index, false);
1664
- case 'values': return createIterResultObject(target[index], false);
1665
- } return createIterResultObject([index, target[index]], false);
1666
- }, 'values');
1667
-
1668
- // argumentsList[@@iterator] is %ArrayProto_values%
1669
- // https://tc39.es/ecma262/#sec-createunmappedargumentsobject
1670
- // https://tc39.es/ecma262/#sec-createmappedargumentsobject
1671
- var values = Iterators.Arguments = Iterators.Array;
1672
-
1673
- // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
1674
- addToUnscopables('keys');
1675
- addToUnscopables('values');
1676
- addToUnscopables('entries');
1677
-
1678
- // V8 ~ Chrome 45- bug
1679
- if (DESCRIPTORS$1 && values.name !== 'values') try {
1680
- defineProperty(values, 'name', { value: 'values' });
1681
- } catch (error) { /* empty */ }
1682
-
1683
- var classof$3 = classofRaw$1;
1684
-
1685
- // `IsArray` abstract operation
1686
- // https://tc39.es/ecma262/#sec-isarray
1687
- // eslint-disable-next-line es/no-array-isarray -- safe
1688
- var isArray$1 = Array.isArray || function isArray(argument) {
1689
- return classof$3(argument) === 'Array';
1690
- };
1691
-
1692
- var DESCRIPTORS = descriptors;
1693
- var isArray = isArray$1;
1694
-
1695
- var $TypeError$2 = TypeError;
1696
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
1697
- var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
1698
-
1699
- // Safari < 13 does not throw an error in this case
1700
- var SILENT_ON_NON_WRITABLE_LENGTH_SET = DESCRIPTORS && !function () {
1701
- // makes no sense without proper strict mode support
1702
- if (this !== undefined) return true;
1703
- try {
1704
- // eslint-disable-next-line es/no-object-defineproperty -- safe
1705
- Object.defineProperty([], 'length', { writable: false }).length = 1;
1706
- } catch (error) {
1707
- return error instanceof TypeError;
1708
- }
1709
- }();
1710
-
1711
- var arraySetLength = SILENT_ON_NON_WRITABLE_LENGTH_SET ? function (O, length) {
1712
- if (isArray(O) && !getOwnPropertyDescriptor(O, 'length').writable) {
1713
- throw new $TypeError$2('Cannot set read only .length');
1714
- } return O.length = length;
1715
- } : function (O, length) {
1716
- return O.length = length;
1717
- };
1718
-
1719
- var $TypeError$1 = TypeError;
1720
- var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991
1721
-
1722
- var doesNotExceedSafeInteger$1 = function (it) {
1723
- if (it > MAX_SAFE_INTEGER) throw $TypeError$1('Maximum allowed index exceeded');
1724
- return it;
1725
- };
1726
-
1727
- var $$1 = _export;
1728
- var toObject$1 = toObject$6;
1729
- var lengthOfArrayLike = lengthOfArrayLike$3;
1730
- var setArrayLength = arraySetLength;
1731
- var doesNotExceedSafeInteger = doesNotExceedSafeInteger$1;
1732
- var fails$5 = fails$i;
1733
-
1734
- var INCORRECT_TO_LENGTH = fails$5(function () {
1735
- return [].push.call({ length: 0x100000000 }, 1) !== 4294967297;
1736
- });
1737
-
1738
- // V8 <= 121 and Safari <= 15.4; FF < 23 throws InternalError
1739
- // https://bugs.chromium.org/p/v8/issues/detail?id=12681
1740
- var properErrorOnNonWritableLength = function () {
1741
- try {
1742
- // eslint-disable-next-line es/no-object-defineproperty -- safe
1743
- Object.defineProperty([], 'length', { writable: false }).push();
1744
- } catch (error) {
1745
- return error instanceof TypeError;
1746
- }
1747
- };
1748
-
1749
- var FORCED = INCORRECT_TO_LENGTH || !properErrorOnNonWritableLength();
1750
-
1751
- // `Array.prototype.push` method
1752
- // https://tc39.es/ecma262/#sec-array.prototype.push
1753
- $$1({ target: 'Array', proto: true, arity: 1, forced: FORCED }, {
1754
- // eslint-disable-next-line no-unused-vars -- required for `.length`
1755
- push: function push(item) {
1756
- var O = toObject$1(this);
1757
- var len = lengthOfArrayLike(O);
1758
- var argCount = arguments.length;
1759
- doesNotExceedSafeInteger(len + argCount);
1760
- for (var i = 0; i < argCount; i++) {
1761
- O[len] = arguments[i];
1762
- len++;
1763
- }
1764
- setArrayLength(O, len);
1765
- return len;
1766
- }
1767
- });
1768
-
1769
- // iterable DOM collections
1770
- // flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods
1771
- var domIterables = {
1772
- CSSRuleList: 0,
1773
- CSSStyleDeclaration: 0,
1774
- CSSValueList: 0,
1775
- ClientRectList: 0,
1776
- DOMRectList: 0,
1777
- DOMStringList: 0,
1778
- DOMTokenList: 1,
1779
- DataTransferItemList: 0,
1780
- FileList: 0,
1781
- HTMLAllCollection: 0,
1782
- HTMLCollection: 0,
1783
- HTMLFormElement: 0,
1784
- HTMLSelectElement: 0,
1785
- MediaList: 0,
1786
- MimeTypeArray: 0,
1787
- NamedNodeMap: 0,
1788
- NodeList: 1,
1789
- PaintRequestList: 0,
1790
- Plugin: 0,
1791
- PluginArray: 0,
1792
- SVGLengthList: 0,
1793
- SVGNumberList: 0,
1794
- SVGPathSegList: 0,
1795
- SVGPointList: 0,
1796
- SVGStringList: 0,
1797
- SVGTransformList: 0,
1798
- SourceBufferList: 0,
1799
- StyleSheetList: 0,
1800
- TextTrackCueList: 0,
1801
- TextTrackList: 0,
1802
- TouchList: 0
1803
- };
1804
-
1805
- // in old WebKit versions, `element.classList` is not an instance of global `DOMTokenList`
1806
- var documentCreateElement = documentCreateElement$2;
1807
-
1808
- var classList = documentCreateElement('span').classList;
1809
- var DOMTokenListPrototype$1 = classList && classList.constructor && classList.constructor.prototype;
1810
-
1811
- var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undefined : DOMTokenListPrototype$1;
1812
-
1813
- var globalThis$4 = globalThis_1;
1814
- var DOMIterables = domIterables;
1815
- var DOMTokenListPrototype = domTokenListPrototype;
1816
- var ArrayIteratorMethods = es_array_iterator;
1817
- var createNonEnumerableProperty$1 = createNonEnumerableProperty$5;
1818
- var setToStringTag = setToStringTag$3;
1819
- var wellKnownSymbol$4 = wellKnownSymbol$a;
1820
-
1821
- var ITERATOR = wellKnownSymbol$4('iterator');
1822
- var ArrayValues = ArrayIteratorMethods.values;
1823
-
1824
- var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
1825
- if (CollectionPrototype) {
1826
- // some Chrome versions have non-configurable methods on DOMTokenList
1827
- if (CollectionPrototype[ITERATOR] !== ArrayValues) try {
1828
- createNonEnumerableProperty$1(CollectionPrototype, ITERATOR, ArrayValues);
1829
- } catch (error) {
1830
- CollectionPrototype[ITERATOR] = ArrayValues;
1831
- }
1832
- setToStringTag(CollectionPrototype, COLLECTION_NAME, true);
1833
- if (DOMIterables[COLLECTION_NAME]) for (var METHOD_NAME in ArrayIteratorMethods) {
1834
- // some Chrome versions have non-configurable methods on DOMTokenList
1835
- if (CollectionPrototype[METHOD_NAME] !== ArrayIteratorMethods[METHOD_NAME]) try {
1836
- createNonEnumerableProperty$1(CollectionPrototype, METHOD_NAME, ArrayIteratorMethods[METHOD_NAME]);
1837
- } catch (error) {
1838
- CollectionPrototype[METHOD_NAME] = ArrayIteratorMethods[METHOD_NAME];
1839
- }
1840
- }
1841
- }
1842
- };
1843
-
1844
- for (var COLLECTION_NAME in DOMIterables) {
1845
- handlePrototype(globalThis$4[COLLECTION_NAME] && globalThis$4[COLLECTION_NAME].prototype, COLLECTION_NAME);
1846
- }
1847
-
1848
- handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
1849
-
1850
- var wellKnownSymbol$3 = wellKnownSymbol$a;
1851
-
1852
- var TO_STRING_TAG$1 = wellKnownSymbol$3('toStringTag');
1853
- var test = {};
1854
-
1855
- test[TO_STRING_TAG$1] = 'z';
1856
-
1857
- var toStringTagSupport = String(test) === '[object z]';
1858
-
1859
- var TO_STRING_TAG_SUPPORT = toStringTagSupport;
1860
- var isCallable$2 = isCallable$g;
1861
- var classofRaw = classofRaw$1;
1862
- var wellKnownSymbol$2 = wellKnownSymbol$a;
1863
-
1864
- var TO_STRING_TAG = wellKnownSymbol$2('toStringTag');
1865
- var $Object = Object;
1866
-
1867
- // ES3 wrong here
1868
- var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) === 'Arguments';
1869
-
1870
- // fallback for IE11 Script Access Denied error
1871
- var tryGet = function (it, key) {
1872
- try {
1873
- return it[key];
1874
- } catch (error) { /* empty */ }
1875
- };
1876
-
1877
- // getting tag from ES6+ `Object.prototype.toString`
1878
- var classof$2 = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
1879
- var O, tag, result;
1880
- return it === undefined ? 'Undefined' : it === null ? 'Null'
1881
- // @@toStringTag case
1882
- : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag
1883
- // builtinTag case
1884
- : CORRECT_ARGUMENTS ? classofRaw(O)
1885
- // ES3 arguments fallback
1886
- : (result = classofRaw(O)) === 'Object' && isCallable$2(O.callee) ? 'Arguments' : result;
1887
- };
1888
-
1889
- var classof$1 = classof$2;
1890
-
1891
- var $String = String;
1892
-
1893
- var toString$3 = function (argument) {
1894
- if (classof$1(argument) === 'Symbol') throw new TypeError('Cannot convert a Symbol value to a string');
1895
- return $String(argument);
1896
- };
1897
-
1898
- var anObject$2 = anObject$7;
1899
-
1900
- // `RegExp.prototype.flags` getter implementation
1901
- // https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
1902
- var regexpFlags$1 = function () {
1903
- var that = anObject$2(this);
1904
- var result = '';
1905
- if (that.hasIndices) result += 'd';
1906
- if (that.global) result += 'g';
1907
- if (that.ignoreCase) result += 'i';
1908
- if (that.multiline) result += 'm';
1909
- if (that.dotAll) result += 's';
1910
- if (that.unicode) result += 'u';
1911
- if (that.unicodeSets) result += 'v';
1912
- if (that.sticky) result += 'y';
1913
- return result;
1914
- };
1915
-
1916
- var fails$4 = fails$i;
1917
- var globalThis$3 = globalThis_1;
1918
-
1919
- // babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
1920
- var $RegExp$2 = globalThis$3.RegExp;
1921
-
1922
- var UNSUPPORTED_Y$1 = fails$4(function () {
1923
- var re = $RegExp$2('a', 'y');
1924
- re.lastIndex = 2;
1925
- return re.exec('abcd') !== null;
1926
- });
1927
-
1928
- // UC Browser bug
1929
- // https://github.com/zloirock/core-js/issues/1008
1930
- var MISSED_STICKY = UNSUPPORTED_Y$1 || fails$4(function () {
1931
- return !$RegExp$2('a', 'y').sticky;
1932
- });
1933
-
1934
- var BROKEN_CARET = UNSUPPORTED_Y$1 || fails$4(function () {
1935
- // https://bugzilla.mozilla.org/show_bug.cgi?id=773687
1936
- var re = $RegExp$2('^r', 'gy');
1937
- re.lastIndex = 2;
1938
- return re.exec('str') !== null;
1939
- });
1940
-
1941
- var regexpStickyHelpers = {
1942
- BROKEN_CARET: BROKEN_CARET,
1943
- MISSED_STICKY: MISSED_STICKY,
1944
- UNSUPPORTED_Y: UNSUPPORTED_Y$1
1945
- };
1946
-
1947
- var fails$3 = fails$i;
1948
- var globalThis$2 = globalThis_1;
1949
-
1950
- // babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
1951
- var $RegExp$1 = globalThis$2.RegExp;
1952
-
1953
- var regexpUnsupportedDotAll = fails$3(function () {
1954
- var re = $RegExp$1('.', 's');
1955
- return !(re.dotAll && re.test('\n') && re.flags === 's');
1956
- });
1957
-
1958
- var fails$2 = fails$i;
1959
- var globalThis$1 = globalThis_1;
1960
-
1961
- // babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError
1962
- var $RegExp = globalThis$1.RegExp;
1963
-
1964
- var regexpUnsupportedNcg = fails$2(function () {
1965
- var re = $RegExp('(?<a>b)', 'g');
1966
- return re.exec('b').groups.a !== 'b' ||
1967
- 'b'.replace(re, '$<a>c') !== 'bc';
1968
- });
1969
-
1970
- /* eslint-disable regexp/no-empty-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */
1971
- /* eslint-disable regexp/no-useless-quantifier -- testing */
1972
- var call$4 = functionCall;
1973
- var uncurryThis$3 = functionUncurryThis;
1974
- var toString$2 = toString$3;
1975
- var regexpFlags = regexpFlags$1;
1976
- var stickyHelpers = regexpStickyHelpers;
1977
- var shared = shared$4;
1978
- var create = objectCreate;
1979
- var getInternalState = internalState.get;
1980
- var UNSUPPORTED_DOT_ALL = regexpUnsupportedDotAll;
1981
- var UNSUPPORTED_NCG = regexpUnsupportedNcg;
1982
-
1983
- var nativeReplace = shared('native-string-replace', String.prototype.replace);
1984
- var nativeExec = RegExp.prototype.exec;
1985
- var patchedExec = nativeExec;
1986
- var charAt$3 = uncurryThis$3(''.charAt);
1987
- var indexOf = uncurryThis$3(''.indexOf);
1988
- var replace$1 = uncurryThis$3(''.replace);
1989
- var stringSlice$3 = uncurryThis$3(''.slice);
1990
-
1991
- var UPDATES_LAST_INDEX_WRONG = (function () {
1992
- var re1 = /a/;
1993
- var re2 = /b*/g;
1994
- call$4(nativeExec, re1, 'a');
1995
- call$4(nativeExec, re2, 'a');
1996
- return re1.lastIndex !== 0 || re2.lastIndex !== 0;
1997
- })();
1998
-
1999
- var UNSUPPORTED_Y = stickyHelpers.BROKEN_CARET;
2000
-
2001
- // nonparticipating capturing group, copied from es5-shim's String#split patch.
2002
- var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;
2003
-
2004
- var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y || UNSUPPORTED_DOT_ALL || UNSUPPORTED_NCG;
2005
-
2006
- if (PATCH) {
2007
- patchedExec = function exec(string) {
2008
- var re = this;
2009
- var state = getInternalState(re);
2010
- var str = toString$2(string);
2011
- var raw = state.raw;
2012
- var result, reCopy, lastIndex, match, i, object, group;
2013
-
2014
- if (raw) {
2015
- raw.lastIndex = re.lastIndex;
2016
- result = call$4(patchedExec, raw, str);
2017
- re.lastIndex = raw.lastIndex;
2018
- return result;
2019
- }
2020
-
2021
- var groups = state.groups;
2022
- var sticky = UNSUPPORTED_Y && re.sticky;
2023
- var flags = call$4(regexpFlags, re);
2024
- var source = re.source;
2025
- var charsAdded = 0;
2026
- var strCopy = str;
2027
-
2028
- if (sticky) {
2029
- flags = replace$1(flags, 'y', '');
2030
- if (indexOf(flags, 'g') === -1) {
2031
- flags += 'g';
2032
- }
2033
-
2034
- strCopy = stringSlice$3(str, re.lastIndex);
2035
- // Support anchored sticky behavior.
2036
- if (re.lastIndex > 0 && (!re.multiline || re.multiline && charAt$3(str, re.lastIndex - 1) !== '\n')) {
2037
- source = '(?: ' + source + ')';
2038
- strCopy = ' ' + strCopy;
2039
- charsAdded++;
2040
- }
2041
- // ^(? + rx + ) is needed, in combination with some str slicing, to
2042
- // simulate the 'y' flag.
2043
- reCopy = new RegExp('^(?:' + source + ')', flags);
2044
- }
2045
-
2046
- if (NPCG_INCLUDED) {
2047
- reCopy = new RegExp('^' + source + '$(?!\\s)', flags);
2048
- }
2049
- if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;
2050
-
2051
- match = call$4(nativeExec, sticky ? reCopy : re, strCopy);
2052
-
2053
- if (sticky) {
2054
- if (match) {
2055
- match.input = stringSlice$3(match.input, charsAdded);
2056
- match[0] = stringSlice$3(match[0], charsAdded);
2057
- match.index = re.lastIndex;
2058
- re.lastIndex += match[0].length;
2059
- } else re.lastIndex = 0;
2060
- } else if (UPDATES_LAST_INDEX_WRONG && match) {
2061
- re.lastIndex = re.global ? match.index + match[0].length : lastIndex;
2062
- }
2063
- if (NPCG_INCLUDED && match && match.length > 1) {
2064
- // Fix browsers whose `exec` methods don't consistently return `undefined`
2065
- // for NPCG, like IE8. NOTE: This doesn't work for /(.?)?/
2066
- call$4(nativeReplace, match[0], reCopy, function () {
2067
- for (i = 1; i < arguments.length - 2; i++) {
2068
- if (arguments[i] === undefined) match[i] = undefined;
2069
- }
2070
- });
2071
- }
2072
-
2073
- if (match && groups) {
2074
- match.groups = object = create(null);
2075
- for (i = 0; i < groups.length; i++) {
2076
- group = groups[i];
2077
- object[group[0]] = match[group[1]];
2078
- }
2079
- }
2080
-
2081
- return match;
2082
- };
2083
- }
2084
-
2085
- var regexpExec$2 = patchedExec;
2086
-
2087
- var $ = _export;
2088
- var exec = regexpExec$2;
2089
-
2090
- // `RegExp.prototype.exec` method
2091
- // https://tc39.es/ecma262/#sec-regexp.prototype.exec
2092
- $({ target: 'RegExp', proto: true, forced: /./.exec !== exec }, {
2093
- exec: exec
2094
- });
2095
-
2096
- var NATIVE_BIND = functionBindNative;
2097
-
2098
- var FunctionPrototype = Function.prototype;
2099
- var apply$1 = FunctionPrototype.apply;
2100
- var call$3 = FunctionPrototype.call;
2101
-
2102
- // eslint-disable-next-line es/no-reflect -- safe
2103
- var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND ? call$3.bind(apply$1) : function () {
2104
- return call$3.apply(apply$1, arguments);
2105
- });
2106
-
2107
- // TODO: Remove from `core-js@4` since it's moved to entry points
2108
-
2109
- var call$2 = functionCall;
2110
- var defineBuiltIn = defineBuiltIn$4;
2111
- var regexpExec$1 = regexpExec$2;
2112
- var fails$1 = fails$i;
2113
- var wellKnownSymbol$1 = wellKnownSymbol$a;
2114
- var createNonEnumerableProperty = createNonEnumerableProperty$5;
2115
-
2116
- var SPECIES = wellKnownSymbol$1('species');
2117
- var RegExpPrototype = RegExp.prototype;
2118
-
2119
- var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
2120
- var SYMBOL = wellKnownSymbol$1(KEY);
2121
-
2122
- var DELEGATES_TO_SYMBOL = !fails$1(function () {
2123
- // String methods call symbol-named RegExp methods
2124
- var O = {};
2125
- O[SYMBOL] = function () { return 7; };
2126
- return ''[KEY](O) !== 7;
2127
- });
2128
-
2129
- var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails$1(function () {
2130
- // Symbol-named RegExp methods call .exec
2131
- var execCalled = false;
2132
- var re = /a/;
2133
-
2134
- if (KEY === 'split') {
2135
- // We can't use real regex here since it causes deoptimization
2136
- // and serious performance degradation in V8
2137
- // https://github.com/zloirock/core-js/issues/306
2138
- re = {};
2139
- // RegExp[@@split] doesn't call the regex's exec method, but first creates
2140
- // a new one. We need to return the patched regex when creating the new one.
2141
- re.constructor = {};
2142
- re.constructor[SPECIES] = function () { return re; };
2143
- re.flags = '';
2144
- re[SYMBOL] = /./[SYMBOL];
2145
- }
2146
-
2147
- re.exec = function () {
2148
- execCalled = true;
2149
- return null;
2150
- };
2151
-
2152
- re[SYMBOL]('');
2153
- return !execCalled;
2154
- });
2155
-
2156
- if (
2157
- !DELEGATES_TO_SYMBOL ||
2158
- !DELEGATES_TO_EXEC ||
2159
- FORCED
2160
- ) {
2161
- var nativeRegExpMethod = /./[SYMBOL];
2162
- var methods = exec(SYMBOL, ''[KEY], function (nativeMethod, regexp, str, arg2, forceStringMethod) {
2163
- var $exec = regexp.exec;
2164
- if ($exec === regexpExec$1 || $exec === RegExpPrototype.exec) {
2165
- if (DELEGATES_TO_SYMBOL && !forceStringMethod) {
2166
- // The native String method already delegates to @@method (this
2167
- // polyfilled function), leasing to infinite recursion.
2168
- // We avoid it by directly calling the native @@method method.
2169
- return { done: true, value: call$2(nativeRegExpMethod, regexp, str, arg2) };
2170
- }
2171
- return { done: true, value: call$2(nativeMethod, str, regexp, arg2) };
2172
- }
2173
- return { done: false };
2174
- });
2175
-
2176
- defineBuiltIn(String.prototype, KEY, methods[0]);
2177
- defineBuiltIn(RegExpPrototype, SYMBOL, methods[1]);
2178
- }
2179
-
2180
- if (SHAM) createNonEnumerableProperty(RegExpPrototype[SYMBOL], 'sham', true);
2181
- };
2182
-
2183
- var uncurryThis$2 = functionUncurryThis;
2184
- var toIntegerOrInfinity$1 = toIntegerOrInfinity$4;
2185
- var toString$1 = toString$3;
2186
- var requireObjectCoercible$1 = requireObjectCoercible$5;
2187
-
2188
- var charAt$2 = uncurryThis$2(''.charAt);
2189
- var charCodeAt = uncurryThis$2(''.charCodeAt);
2190
- var stringSlice$2 = uncurryThis$2(''.slice);
2191
-
2192
- var createMethod = function (CONVERT_TO_STRING) {
2193
- return function ($this, pos) {
2194
- var S = toString$1(requireObjectCoercible$1($this));
2195
- var position = toIntegerOrInfinity$1(pos);
2196
- var size = S.length;
2197
- var first, second;
2198
- if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;
2199
- first = charCodeAt(S, position);
2200
- return first < 0xD800 || first > 0xDBFF || position + 1 === size
2201
- || (second = charCodeAt(S, position + 1)) < 0xDC00 || second > 0xDFFF
2202
- ? CONVERT_TO_STRING
2203
- ? charAt$2(S, position)
2204
- : first
2205
- : CONVERT_TO_STRING
2206
- ? stringSlice$2(S, position, position + 2)
2207
- : (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;
2208
- };
2209
- };
2210
-
2211
- var stringMultibyte = {
2212
- // `String.prototype.codePointAt` method
2213
- // https://tc39.es/ecma262/#sec-string.prototype.codepointat
2214
- codeAt: createMethod(false),
2215
- // `String.prototype.at` method
2216
- // https://github.com/mathiasbynens/String.prototype.at
2217
- charAt: createMethod(true)
2218
- };
2219
-
2220
- var charAt$1 = stringMultibyte.charAt;
2221
-
2222
- // `AdvanceStringIndex` abstract operation
2223
- // https://tc39.es/ecma262/#sec-advancestringindex
2224
- var advanceStringIndex$1 = function (S, index, unicode) {
2225
- return index + (unicode ? charAt$1(S, index).length : 1);
2226
- };
2227
-
2228
- var uncurryThis$1 = functionUncurryThis;
2229
- var toObject = toObject$6;
2230
-
2231
- var floor = Math.floor;
2232
- var charAt = uncurryThis$1(''.charAt);
2233
- var replace = uncurryThis$1(''.replace);
2234
- var stringSlice$1 = uncurryThis$1(''.slice);
2235
- // eslint-disable-next-line redos/no-vulnerable -- safe
2236
- var SUBSTITUTION_SYMBOLS = /\$([$&'`]|\d{1,2}|<[^>]*>)/g;
2237
- var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&'`]|\d{1,2})/g;
2238
-
2239
- // `GetSubstitution` abstract operation
2240
- // https://tc39.es/ecma262/#sec-getsubstitution
2241
- var getSubstitution$1 = function (matched, str, position, captures, namedCaptures, replacement) {
2242
- var tailPos = position + matched.length;
2243
- var m = captures.length;
2244
- var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED;
2245
- if (namedCaptures !== undefined) {
2246
- namedCaptures = toObject(namedCaptures);
2247
- symbols = SUBSTITUTION_SYMBOLS;
2248
- }
2249
- return replace(replacement, symbols, function (match, ch) {
2250
- var capture;
2251
- switch (charAt(ch, 0)) {
2252
- case '$': return '$';
2253
- case '&': return matched;
2254
- case '`': return stringSlice$1(str, 0, position);
2255
- case "'": return stringSlice$1(str, tailPos);
2256
- case '<':
2257
- capture = namedCaptures[stringSlice$1(ch, 1, -1)];
2258
- break;
2259
- default: // \d\d?
2260
- var n = +ch;
2261
- if (n === 0) return match;
2262
- if (n > m) {
2263
- var f = floor(n / 10);
2264
- if (f === 0) return match;
2265
- if (f <= m) return captures[f - 1] === undefined ? charAt(ch, 1) : captures[f - 1] + charAt(ch, 1);
2266
- return match;
2267
- }
2268
- capture = captures[n - 1];
2269
- }
2270
- return capture === undefined ? '' : capture;
2271
- });
2272
- };
2273
-
2274
- var call$1 = functionCall;
2275
- var anObject$1 = anObject$7;
2276
- var isCallable$1 = isCallable$g;
2277
- var classof = classofRaw$1;
2278
- var regexpExec = regexpExec$2;
2279
-
2280
- var $TypeError = TypeError;
2281
-
2282
- // `RegExpExec` abstract operation
2283
- // https://tc39.es/ecma262/#sec-regexpexec
2284
- var regexpExecAbstract = function (R, S) {
2285
- var exec = R.exec;
2286
- if (isCallable$1(exec)) {
2287
- var result = call$1(exec, R, S);
2288
- if (result !== null) anObject$1(result);
2289
- return result;
2290
- }
2291
- if (classof(R) === 'RegExp') return call$1(regexpExec, R, S);
2292
- throw new $TypeError('RegExp#exec called on incompatible receiver');
2293
- };
2294
-
2295
- var apply = functionApply;
2296
- var call = functionCall;
2297
- var uncurryThis = functionUncurryThis;
2298
- var fixRegExpWellKnownSymbolLogic = fixRegexpWellKnownSymbolLogic;
2299
- var fails = fails$i;
2300
- var anObject = anObject$7;
2301
- var isCallable = isCallable$g;
2302
- var isNullOrUndefined = isNullOrUndefined$3;
2303
- var toIntegerOrInfinity = toIntegerOrInfinity$4;
2304
- var toLength = toLength$2;
2305
- var toString = toString$3;
2306
- var requireObjectCoercible = requireObjectCoercible$5;
2307
- var advanceStringIndex = advanceStringIndex$1;
2308
- var getMethod = getMethod$2;
2309
- var getSubstitution = getSubstitution$1;
2310
- var regExpExec = regexpExecAbstract;
2311
- var wellKnownSymbol = wellKnownSymbol$a;
2312
-
2313
- var REPLACE = wellKnownSymbol('replace');
2314
- var max = Math.max;
2315
- var min = Math.min;
2316
- var concat = uncurryThis([].concat);
2317
- var push = uncurryThis([].push);
2318
- var stringIndexOf = uncurryThis(''.indexOf);
2319
- var stringSlice = uncurryThis(''.slice);
2320
-
2321
- var maybeToString = function (it) {
2322
- return it === undefined ? it : String(it);
2323
- };
2324
-
2325
- // IE <= 11 replaces $0 with the whole match, as if it was $&
2326
- // https://stackoverflow.com/questions/6024666/getting-ie-to-replace-a-regex-with-the-literal-string-0
2327
- var REPLACE_KEEPS_$0 = (function () {
2328
- // eslint-disable-next-line regexp/prefer-escape-replacement-dollar-char -- required for testing
2329
- return 'a'.replace(/./, '$0') === '$0';
2330
- })();
2331
-
2332
- // Safari <= 13.0.3(?) substitutes nth capture where n>m with an empty string
2333
- var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = (function () {
2334
- if (/./[REPLACE]) {
2335
- return /./[REPLACE]('a', '$0') === '';
2336
- }
2337
- return false;
2338
- })();
2339
-
2340
- var REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function () {
2341
- var re = /./;
2342
- re.exec = function () {
2343
- var result = [];
2344
- result.groups = { a: '7' };
2345
- return result;
2346
- };
2347
- // eslint-disable-next-line regexp/no-useless-dollar-replacements -- false positive
2348
- return ''.replace(re, '$<a>') !== '7';
2349
- });
2350
-
2351
- // @@replace logic
2352
- fixRegExpWellKnownSymbolLogic('replace', function (_, nativeReplace, maybeCallNative) {
2353
- var UNSAFE_SUBSTITUTE = REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE ? '$' : '$0';
2354
-
2355
- return [
2356
- // `String.prototype.replace` method
2357
- // https://tc39.es/ecma262/#sec-string.prototype.replace
2358
- function replace(searchValue, replaceValue) {
2359
- var O = requireObjectCoercible(this);
2360
- var replacer = isNullOrUndefined(searchValue) ? undefined : getMethod(searchValue, REPLACE);
2361
- return replacer
2362
- ? call(replacer, searchValue, O, replaceValue)
2363
- : call(nativeReplace, toString(O), searchValue, replaceValue);
2364
- },
2365
- // `RegExp.prototype[@@replace]` method
2366
- // https://tc39.es/ecma262/#sec-regexp.prototype-@@replace
2367
- function (string, replaceValue) {
2368
- var rx = anObject(this);
2369
- var S = toString(string);
2370
-
2371
- if (
2372
- typeof replaceValue == 'string' &&
2373
- stringIndexOf(replaceValue, UNSAFE_SUBSTITUTE) === -1 &&
2374
- stringIndexOf(replaceValue, '$<') === -1
2375
- ) {
2376
- var res = maybeCallNative(nativeReplace, rx, S, replaceValue);
2377
- if (res.done) return res.value;
2378
- }
2379
-
2380
- var functionalReplace = isCallable(replaceValue);
2381
- if (!functionalReplace) replaceValue = toString(replaceValue);
2382
-
2383
- var global = rx.global;
2384
- var fullUnicode;
2385
- if (global) {
2386
- fullUnicode = rx.unicode;
2387
- rx.lastIndex = 0;
2388
- }
2389
-
2390
- var results = [];
2391
- var result;
2392
- while (true) {
2393
- result = regExpExec(rx, S);
2394
- if (result === null) break;
2395
-
2396
- push(results, result);
2397
- if (!global) break;
2398
-
2399
- var matchStr = toString(result[0]);
2400
- if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);
2401
- }
2402
-
2403
- var accumulatedResult = '';
2404
- var nextSourcePosition = 0;
2405
- for (var i = 0; i < results.length; i++) {
2406
- result = results[i];
2407
-
2408
- var matched = toString(result[0]);
2409
- var position = max(min(toIntegerOrInfinity(result.index), S.length), 0);
2410
- var captures = [];
2411
- var replacement;
2412
- // NOTE: This is equivalent to
2413
- // captures = result.slice(1).map(maybeToString)
2414
- // but for some reason `nativeSlice.call(result, 1, result.length)` (called in
2415
- // the slice polyfill when slicing native arrays) "doesn't work" in safari 9 and
2416
- // causes a crash (https://pastebin.com/N21QzeQA) when trying to debug it.
2417
- for (var j = 1; j < result.length; j++) push(captures, maybeToString(result[j]));
2418
- var namedCaptures = result.groups;
2419
- if (functionalReplace) {
2420
- var replacerArgs = concat([matched], captures, position, S);
2421
- if (namedCaptures !== undefined) push(replacerArgs, namedCaptures);
2422
- replacement = toString(apply(replaceValue, undefined, replacerArgs));
2423
- } else {
2424
- replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue);
2425
- }
2426
- if (position >= nextSourcePosition) {
2427
- accumulatedResult += stringSlice(S, nextSourcePosition, position) + replacement;
2428
- nextSourcePosition = position + matched.length;
2429
- }
2430
- }
2431
-
2432
- return accumulatedResult + stringSlice(S, nextSourcePosition);
2433
- }
2434
- ];
2435
- }, !REPLACE_SUPPORTS_NAMED_GROUPS || !REPLACE_KEEPS_$0 || REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE);
2436
-
2437
- const dashToPascalCase = str => str.toLowerCase().split('-').map(segment => segment.charAt(0).toUpperCase() + segment.slice(1)).join('');
2438
- const camelToDashCase = str => str.replace(/([A-Z])/g, m => `-${m[0].toLowerCase()}`);
2439
-
2440
- const attachProps = (node, newProps, oldProps = {}) => {
2441
- // some test frameworks don't render DOM elements, so we test here to make sure we are dealing with DOM first
2442
- if (node instanceof Element) {
2443
- // add any classes in className to the class list
2444
- const className = getClassName(node.classList, newProps, oldProps);
2445
- if (className !== '') {
2446
- node.className = className;
2447
- }
2448
- Object.keys(newProps).forEach(name => {
2449
- if (name === 'children' || name === 'style' || name === 'ref' || name === 'class' || name === 'className' || name === 'forwardedRef') {
2450
- return;
2451
- }
2452
- if (name.indexOf('on') === 0 && name[2] === name[2].toUpperCase()) {
2453
- const eventName = name.substring(2);
2454
- const eventNameLc = eventName[0].toLowerCase() + eventName.substring(1);
2455
- if (!isCoveredByReact(eventNameLc)) {
2456
- syncEvent(node, eventNameLc, newProps[name]);
2457
- }
2458
- } else {
2459
- node[name] = newProps[name];
2460
- const propType = typeof newProps[name];
2461
- if (propType === 'string') {
2462
- node.setAttribute(camelToDashCase(name), newProps[name]);
2463
- }
2464
- }
2465
- });
2466
- }
2467
- };
2468
- const getClassName = (classList, newProps, oldProps) => {
2469
- const newClassProp = newProps.className || newProps.class;
2470
- const oldClassProp = oldProps.className || oldProps.class;
2471
- // map the classes to Maps for performance
2472
- const currentClasses = arrayToMap(classList);
2473
- const incomingPropClasses = arrayToMap(newClassProp ? newClassProp.split(' ') : []);
2474
- const oldPropClasses = arrayToMap(oldClassProp ? oldClassProp.split(' ') : []);
2475
- const finalClassNames = [];
2476
- // loop through each of the current classes on the component
2477
- // to see if it should be a part of the classNames added
2478
- currentClasses.forEach(currentClass => {
2479
- if (incomingPropClasses.has(currentClass)) {
2480
- // add it as its already included in classnames coming in from newProps
2481
- finalClassNames.push(currentClass);
2482
- incomingPropClasses.delete(currentClass);
2483
- } else if (!oldPropClasses.has(currentClass)) {
2484
- // add it as it has NOT been removed by user
2485
- finalClassNames.push(currentClass);
2486
- }
2487
- });
2488
- incomingPropClasses.forEach(s => finalClassNames.push(s));
2489
- return finalClassNames.join(' ');
2490
- };
2491
- /**
2492
- * Transforms a React event name to a browser event name.
2493
- */
2494
- const transformReactEventName = eventNameSuffix => {
2495
- switch (eventNameSuffix) {
2496
- case 'doubleclick':
2497
- return 'dblclick';
2498
- }
2499
- return eventNameSuffix;
2500
- };
2501
- /**
2502
- * Checks if an event is supported in the current execution environment.
2503
- * @license Modernizr 3.0.0pre (Custom Build) | MIT
2504
- */
2505
- const isCoveredByReact = eventNameSuffix => {
2506
- if (typeof document === 'undefined') {
2507
- return true;
2508
- } else {
2509
- const eventName = 'on' + transformReactEventName(eventNameSuffix);
2510
- let isSupported = eventName in document;
2511
- if (!isSupported) {
2512
- const element = document.createElement('div');
2513
- element.setAttribute(eventName, 'return;');
2514
- isSupported = typeof element[eventName] === 'function';
2515
- }
2516
- return isSupported;
2517
- }
2518
- };
2519
- const syncEvent = (node, eventName, newEventHandler) => {
2520
- const eventStore = node.__events || (node.__events = {});
2521
- const oldEventHandler = eventStore[eventName];
2522
- // Remove old listener so they don't double up.
2523
- if (oldEventHandler) {
2524
- node.removeEventListener(eventName, oldEventHandler);
2525
- }
2526
- // Bind new listener.
2527
- node.addEventListener(eventName, eventStore[eventName] = function handler(e) {
2528
- if (newEventHandler) {
2529
- newEventHandler.call(this, e);
2530
- }
2531
- });
2532
- };
2533
- const arrayToMap = arr => {
2534
- const map = new Map();
2535
- arr.forEach(s => map.set(s, s));
2536
- return map;
2537
- };
2538
-
2539
- const setRef = (ref, value) => {
2540
- if (typeof ref === 'function') {
2541
- ref(value);
2542
- } else if (ref != null) {
2543
- // Cast as a MutableRef so we can assign current
2544
- ref.current = value;
2545
- }
2546
- };
2547
- const mergeRefs = (...refs) => {
2548
- return value => {
2549
- refs.forEach(ref => {
2550
- setRef(ref, value);
2551
- });
2552
- };
2553
- };
2554
- const createForwardRef = (ReactComponent, displayName) => {
2555
- const forwardRef = (props, ref) => {
2556
- return jsx(ReactComponent, Object.assign({}, props, {
2557
- forwardedRef: ref
2558
- }));
2559
- };
2560
- forwardRef.displayName = displayName;
2561
- return /*#__PURE__*/React.forwardRef(forwardRef);
2562
- };
2563
-
2564
- const createReactComponent = (tagName, ReactComponentContext, manipulatePropsFunction, defineCustomElement) => {
2565
- const displayName = dashToPascalCase(tagName);
2566
- const ReactComponent = class extends React.Component {
2567
- constructor(props) {
2568
- super(props);
2569
- this.setComponentElRef = element => {
2570
- this.componentEl = element;
2571
- };
2572
- }
2573
- componentDidMount() {
2574
- this.componentDidUpdate(this.props);
2575
- }
2576
- componentDidUpdate(prevProps) {
2577
- attachProps(this.componentEl, this.props, prevProps);
2578
- }
2579
- render() {
2580
- const _a = this.props,
2581
- {
2582
- children,
2583
- forwardedRef,
2584
- style,
2585
- className,
2586
- ref
2587
- } = _a,
2588
- cProps = __rest(_a, ["children", "forwardedRef", "style", "className", "ref"]);
2589
- let propsToPass = Object.keys(cProps).reduce((acc, name) => {
2590
- const value = cProps[name];
2591
- if (name.indexOf('on') === 0 && name[2] === name[2].toUpperCase()) {
2592
- const eventName = name.substring(2).toLowerCase();
2593
- if (typeof document !== 'undefined' && isCoveredByReact(eventName)) {
2594
- acc[name] = value;
2595
- }
2596
- } else {
2597
- // we should only render strings, booleans, and numbers as attrs in html.
2598
- // objects, functions, arrays etc get synced via properties on mount.
2599
- const type = typeof value;
2600
- if (type === 'string' || type === 'boolean' || type === 'number') {
2601
- acc[camelToDashCase(name)] = value;
2602
- }
2603
- }
2604
- return acc;
2605
- }, {});
2606
- const newProps = Object.assign(Object.assign({}, propsToPass), {
2607
- ref: mergeRefs(forwardedRef, this.setComponentElRef),
2608
- style
2609
- });
2610
- /**
2611
- * We use createElement here instead of
2612
- * React.createElement to work around a
2613
- * bug in Vite (https://github.com/vitejs/vite/issues/6104).
2614
- * React.createElement causes all elements to be rendered
2615
- * as <tagname> instead of the actual Web Component.
2616
- */
2617
- return /*#__PURE__*/createElement$1(tagName, newProps, children);
2618
- }
2619
- static get displayName() {
2620
- return displayName;
2621
- }
2622
- };
2623
- return createForwardRef(ReactComponent, displayName);
2624
- };
2625
-
2626
- const NAMESPACE = 'components';
2627
- const BUILD = /* components */{
2628
- allRenderFn: true,
2629
- appendChildSlotFix: false,
2630
- asyncLoading: true,
2631
- asyncQueue: false,
2632
- attachStyles: true,
2633
- cloneNodeFix: false,
2634
- cmpDidLoad: true,
2635
- cmpDidRender: false,
2636
- cmpDidUnload: false,
2637
- cmpDidUpdate: true,
2638
- cmpShouldUpdate: false,
2639
- cmpWillLoad: true,
2640
- cmpWillRender: false,
2641
- cmpWillUpdate: false,
2642
- connectedCallback: true,
2643
- constructableCSS: true,
2644
- cssAnnotations: true,
2645
- devTools: false,
2646
- disconnectedCallback: true,
2647
- element: false,
2648
- event: true,
2649
- experimentalScopedSlotChanges: false,
2650
- experimentalSlotFixes: false,
2651
- formAssociated: false,
2652
- hasRenderFn: true,
2653
- hostListener: true,
2654
- hostListenerTarget: true,
2655
- hostListenerTargetBody: true,
2656
- hostListenerTargetDocument: false,
2657
- hostListenerTargetParent: false,
2658
- hostListenerTargetWindow: true,
2659
- hotModuleReplacement: false,
2660
- hydrateClientSide: true,
2661
- hydrateServerSide: false,
2662
- hydratedAttribute: false,
2663
- hydratedClass: true,
2664
- hydratedSelectorName: "hydrated",
2665
- initializeNextTick: false,
2666
- invisiblePrehydration: true,
2667
- isDebug: false,
2668
- isDev: false,
2669
- isTesting: false,
2670
- lazyLoad: true,
2671
- lifecycle: true,
2672
- lifecycleDOMEvents: false,
2673
- member: true,
2674
- method: true,
2675
- mode: false,
2676
- observeAttribute: true,
2677
- profile: false,
2678
- prop: true,
2679
- propBoolean: true,
2680
- propMutable: true,
2681
- propNumber: true,
2682
- propString: true,
2683
- reflect: true,
2684
- scoped: false,
2685
- scopedSlotTextContentFix: false,
2686
- scriptDataOpts: false,
2687
- shadowDelegatesFocus: false,
2688
- shadowDom: true,
2689
- slot: true,
2690
- slotChildNodesFix: false,
2691
- slotRelocation: true,
2692
- state: true,
2693
- style: true,
2694
- svg: false,
2695
- taskQueue: true,
2696
- transformTagName: false,
2697
- updatable: true,
2698
- vdomAttribute: true,
2699
- vdomClass: true,
2700
- vdomFunctional: true,
2701
- vdomKey: true,
2702
- vdomListener: true,
2703
- vdomPropOrAttr: true,
2704
- vdomRef: true,
2705
- vdomRender: true,
2706
- vdomStyle: true,
2707
- vdomText: true,
2708
- vdomXlink: true,
2709
- watchCallback: true
2710
- };
2711
-
2712
- /*
2713
- Stencil Client Platform v4.22.0 | MIT Licensed | https://stenciljs.com
2714
- */
2715
- var __defProp = Object.defineProperty;
2716
- var __export = (target, all) => {
2717
- for (var name in all) __defProp(target, name, {
2718
- get: all[name],
2719
- enumerable: true
2720
- });
2721
- };
2722
- var hostRefs = /* @__PURE__ */new WeakMap();
2723
- var getHostRef = ref => hostRefs.get(ref);
2724
- var registerInstance = (lazyInstance, hostRef) => hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
2725
- var registerHost = (hostElement, cmpMeta) => {
2726
- const hostRef = {
2727
- $flags$: 0,
2728
- $hostElement$: hostElement,
2729
- $cmpMeta$: cmpMeta,
2730
- $instanceValues$: /* @__PURE__ */new Map()
2731
- };
2732
- {
2733
- hostRef.$onInstancePromise$ = new Promise(r => hostRef.$onInstanceResolve$ = r);
2734
- }
2735
- {
2736
- hostRef.$onReadyPromise$ = new Promise(r => hostRef.$onReadyResolve$ = r);
2737
- hostElement["s-p"] = [];
2738
- hostElement["s-rc"] = [];
2739
- }
2740
- return hostRefs.set(hostElement, hostRef);
2741
- };
2742
- var isMemberInElement = (elm, memberName) => memberName in elm;
2743
- var consoleError = (e, el) => (0, console.error)(e, el);
2744
-
2745
- // src/client/client-load-module.ts
2746
- var cmpModules = /* @__PURE__ */new Map();
2747
- var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
2748
- const exportName = cmpMeta.$tagName$.replace(/-/g, "_");
2749
- const bundleId = cmpMeta.$lazyBundleId$;
2750
- if (!bundleId) {
2751
- return void 0;
2752
- }
2753
- const module = cmpModules.get(bundleId);
2754
- if (module) {
2755
- return module[exportName];
2756
- }
2757
- {
2758
- const processMod = importedModule => {
2759
- cmpModules.set(bundleId, importedModule);
2760
- return importedModule[exportName];
2761
- };
2762
- switch (bundleId) {
2763
- case 'eds-avatar_26':
2764
- return import(/* webpackMode: "lazy" */
2765
- './eds-avatar_26.entry.esm.js').then(processMod, consoleError);
2766
- case 'components-section':
2767
- return import(/* webpackMode: "lazy" */
2768
- './components-section.entry.esm.js').then(processMod, consoleError);
2769
- case 'correct-use-of-colors':
2770
- return import(/* webpackMode: "lazy" */
2771
- './correct-use-of-colors.entry.esm.js').then(processMod, consoleError);
2772
- case 'docs-palettes':
2773
- return import(/* webpackMode: "lazy" */
2774
- './docs-palettes.entry.esm.js').then(processMod, consoleError);
2775
- case 'docs-tokens':
2776
- return import(/* webpackMode: "lazy" */
2777
- './docs-tokens.entry.esm.js').then(processMod, consoleError);
2778
- case 'eds-app-root':
2779
- return import(/* webpackMode: "lazy" */
2780
- './eds-app-root.entry.esm.js').then(processMod, consoleError);
2781
- case 'eds-card-project':
2782
- return import(/* webpackMode: "lazy" */
2783
- './eds-card-project.entry.esm.js').then(processMod, consoleError);
2784
- case 'eds-card-section':
2785
- return import(/* webpackMode: "lazy" */
2786
- './eds-card-section.entry.esm.js').then(processMod, consoleError);
2787
- case 'eds-card-tags':
2788
- return import(/* webpackMode: "lazy" */
2789
- './eds-card-tags.entry.esm.js').then(processMod, consoleError);
2790
- case 'eds-card-tool':
2791
- return import(/* webpackMode: "lazy" */
2792
- './eds-card-tool.entry.esm.js').then(processMod, consoleError);
2793
- case 'eds-card-wrapper':
2794
- return import(/* webpackMode: "lazy" */
2795
- './eds-card-wrapper.entry.esm.js').then(processMod, consoleError);
2796
- case 'eds-cookies-preference':
2797
- return import(/* webpackMode: "lazy" */
2798
- './eds-cookies-preference.entry.esm.js').then(processMod, consoleError);
2799
- case 'eds-feedback':
2800
- return import(/* webpackMode: "lazy" */
2801
- './eds-feedback.entry.esm.js').then(processMod, consoleError);
2802
- case 'eds-frame':
2803
- return import(/* webpackMode: "lazy" */
2804
- './eds-frame.entry.esm.js').then(processMod, consoleError);
2805
- case 'eds-icon-arrow-diagonal':
2806
- return import(/* webpackMode: "lazy" */
2807
- './eds-icon-arrow-diagonal.entry.esm.js').then(processMod, consoleError);
2808
- case 'eds-icon-arrow-right':
2809
- return import(/* webpackMode: "lazy" */
2810
- './eds-icon-arrow-right.entry.esm.js').then(processMod, consoleError);
2811
- case 'eds-icon-bluesky':
2812
- return import(/* webpackMode: "lazy" */
2813
- './eds-icon-bluesky.entry.esm.js').then(processMod, consoleError);
2814
- case 'eds-icon-bookmark':
2815
- return import(/* webpackMode: "lazy" */
2816
- './eds-icon-bookmark.entry.esm.js').then(processMod, consoleError);
2817
- case 'eds-icon-chevron-down':
2818
- return import(/* webpackMode: "lazy" */
2819
- './eds-icon-chevron-down.entry.esm.js').then(processMod, consoleError);
2820
- case 'eds-icon-chevron-left':
2821
- return import(/* webpackMode: "lazy" */
2822
- './eds-icon-chevron-left.entry.esm.js').then(processMod, consoleError);
2823
- case 'eds-icon-chevron-right':
2824
- return import(/* webpackMode: "lazy" */
2825
- './eds-icon-chevron-right.entry.esm.js').then(processMod, consoleError);
2826
- case 'eds-icon-chevron-up':
2827
- return import(/* webpackMode: "lazy" */
2828
- './eds-icon-chevron-up.entry.esm.js').then(processMod, consoleError);
2829
- case 'eds-icon-close':
2830
- return import(/* webpackMode: "lazy" */
2831
- './eds-icon-close.entry.esm.js').then(processMod, consoleError);
2832
- case 'eds-icon-copy':
2833
- return import(/* webpackMode: "lazy" */
2834
- './eds-icon-copy.entry.esm.js').then(processMod, consoleError);
2835
- case 'eds-icon-eu':
2836
- return import(/* webpackMode: "lazy" */
2837
- './eds-icon-eu.entry.esm.js').then(processMod, consoleError);
2838
- case 'eds-icon-external':
2839
- return import(/* webpackMode: "lazy" */
2840
- './eds-icon-external.entry.esm.js').then(processMod, consoleError);
2841
- case 'eds-icon-facebook':
2842
- return import(/* webpackMode: "lazy" */
2843
- './eds-icon-facebook.entry.esm.js').then(processMod, consoleError);
2844
- case 'eds-icon-gitlab':
2845
- return import(/* webpackMode: "lazy" */
2846
- './eds-icon-gitlab.entry.esm.js').then(processMod, consoleError);
2847
- case 'eds-icon-linkedin':
2848
- return import(/* webpackMode: "lazy" */
2849
- './eds-icon-linkedin.entry.esm.js').then(processMod, consoleError);
2850
- case 'eds-icon-loader':
2851
- return import(/* webpackMode: "lazy" */
2852
- './eds-icon-loader.entry.esm.js').then(processMod, consoleError);
2853
- case 'eds-icon-mastodon':
2854
- return import(/* webpackMode: "lazy" */
2855
- './eds-icon-mastodon.entry.esm.js').then(processMod, consoleError);
2856
- case 'eds-icon-menu':
2857
- return import(/* webpackMode: "lazy" */
2858
- './eds-icon-menu.entry.esm.js').then(processMod, consoleError);
2859
- case 'eds-icon-minus':
2860
- return import(/* webpackMode: "lazy" */
2861
- './eds-icon-minus.entry.esm.js').then(processMod, consoleError);
2862
- case 'eds-icon-more':
2863
- return import(/* webpackMode: "lazy" */
2864
- './eds-icon-more.entry.esm.js').then(processMod, consoleError);
2865
- case 'eds-icon-paper':
2866
- return import(/* webpackMode: "lazy" */
2867
- './eds-icon-paper.entry.esm.js').then(processMod, consoleError);
2868
- case 'eds-icon-plus':
2869
- return import(/* webpackMode: "lazy" */
2870
- './eds-icon-plus.entry.esm.js').then(processMod, consoleError);
2871
- case 'eds-icon-portal':
2872
- return import(/* webpackMode: "lazy" */
2873
- './eds-icon-portal.entry.esm.js').then(processMod, consoleError);
2874
- case 'eds-icon-private':
2875
- return import(/* webpackMode: "lazy" */
2876
- './eds-icon-private.entry.esm.js').then(processMod, consoleError);
2877
- case 'eds-icon-public':
2878
- return import(/* webpackMode: "lazy" */
2879
- './eds-icon-public.entry.esm.js').then(processMod, consoleError);
2880
- case 'eds-icon-search':
2881
- return import(/* webpackMode: "lazy" */
2882
- './eds-icon-search.entry.esm.js').then(processMod, consoleError);
2883
- case 'eds-icon-star':
2884
- return import(/* webpackMode: "lazy" */
2885
- './eds-icon-star.entry.esm.js').then(processMod, consoleError);
2886
- case 'eds-icon-success':
2887
- return import(/* webpackMode: "lazy" */
2888
- './eds-icon-success.entry.esm.js').then(processMod, consoleError);
2889
- case 'eds-icon-thumbs-down':
2890
- return import(/* webpackMode: "lazy" */
2891
- './eds-icon-thumbs-down.entry.esm.js').then(processMod, consoleError);
2892
- case 'eds-icon-thumbs-up':
2893
- return import(/* webpackMode: "lazy" */
2894
- './eds-icon-thumbs-up.entry.esm.js').then(processMod, consoleError);
2895
- case 'eds-icon-tutorial':
2896
- return import(/* webpackMode: "lazy" */
2897
- './eds-icon-tutorial.entry.esm.js').then(processMod, consoleError);
2898
- case 'eds-icon-twitter':
2899
- return import(/* webpackMode: "lazy" */
2900
- './eds-icon-twitter.entry.esm.js').then(processMod, consoleError);
2901
- case 'eds-icon-unknown':
2902
- return import(/* webpackMode: "lazy" */
2903
- './eds-icon-unknown.entry.esm.js').then(processMod, consoleError);
2904
- case 'eds-icon-updown':
2905
- return import(/* webpackMode: "lazy" */
2906
- './eds-icon-updown.entry.esm.js').then(processMod, consoleError);
2907
- case 'eds-icon-user':
2908
- return import(/* webpackMode: "lazy" */
2909
- './eds-icon-user.entry.esm.js').then(processMod, consoleError);
2910
- case 'eds-icon-youtube':
2911
- return import(/* webpackMode: "lazy" */
2912
- './eds-icon-youtube.entry.esm.js').then(processMod, consoleError);
2913
- case 'eds-modal':
2914
- return import(/* webpackMode: "lazy" */
2915
- './eds-modal.entry.esm.js').then(processMod, consoleError);
2916
- case 'eds-switch':
2917
- return import(/* webpackMode: "lazy" */
2918
- './eds-switch.entry.esm.js').then(processMod, consoleError);
2919
- case 'eds-tabs':
2920
- return import(/* webpackMode: "lazy" */
2921
- './eds-tabs.entry.esm.js').then(processMod, consoleError);
2922
- case 'eds-timeline':
2923
- return import(/* webpackMode: "lazy" */
2924
- './eds-timeline.entry.esm.js').then(processMod, consoleError);
2925
- case 'eds-toast-manager':
2926
- return import(/* webpackMode: "lazy" */
2927
- './eds-toast-manager.entry.esm.js').then(processMod, consoleError);
2928
- case 'eds-tooltip':
2929
- return import(/* webpackMode: "lazy" */
2930
- './eds-tooltip.entry.esm.js').then(processMod, consoleError);
2931
- case 'eds-trl':
2932
- return import(/* webpackMode: "lazy" */
2933
- './eds-trl.entry.esm.js').then(processMod, consoleError);
2934
- case 'incorrect-use-of-colors':
2935
- return import(/* webpackMode: "lazy" */
2936
- './incorrect-use-of-colors.entry.esm.js').then(processMod, consoleError);
2937
- case 'logo-space':
2938
- return import(/* webpackMode: "lazy" */
2939
- './logo-space.entry.esm.js').then(processMod, consoleError);
2940
- case 'logo-variations-tabs':
2941
- return import(/* webpackMode: "lazy" */
2942
- './logo-variations-tabs.entry.esm.js').then(processMod, consoleError);
2943
- case 'logo-wrong-usage':
2944
- return import(/* webpackMode: "lazy" */
2945
- './logo-wrong-usage.entry.esm.js').then(processMod, consoleError);
2946
- case 'svg-repository':
2947
- return import(/* webpackMode: "lazy" */
2948
- './svg-repository.entry.esm.js').then(processMod, consoleError);
2949
- case 'token-ratios':
2950
- return import(/* webpackMode: "lazy" */
2951
- './token-ratios.entry.esm.js').then(processMod, consoleError);
2952
- case 'token-typography':
2953
- return import(/* webpackMode: "lazy" */
2954
- './token-typography.entry.esm.js').then(processMod, consoleError);
2955
- case 'color-primary-palette_6':
2956
- return import(/* webpackMode: "lazy" */
2957
- './color-primary-palette_6.entry.esm.js').then(processMod, consoleError);
2958
- case 'eds-login_2':
2959
- return import(/* webpackMode: "lazy" */
2960
- './eds-login_2.entry.esm.js').then(processMod, consoleError);
2961
- case 'eds-matomo-notice':
2962
- return import(/* webpackMode: "lazy" */
2963
- './eds-matomo-notice.entry.esm.js').then(processMod, consoleError);
2964
- case 'eds-progress-bar':
2965
- return import(/* webpackMode: "lazy" */
2966
- './eds-progress-bar.entry.esm.js').then(processMod, consoleError);
2967
- case 'eds-rating':
2968
- return import(/* webpackMode: "lazy" */
2969
- './eds-rating.entry.esm.js').then(processMod, consoleError);
2970
- case 'eds-toast':
2971
- return import(/* webpackMode: "lazy" */
2972
- './eds-toast.entry.esm.js').then(processMod, consoleError);
2973
- case 'logo-variations-horizontal_2':
2974
- return import(/* webpackMode: "lazy" */
2975
- './logo-variations-horizontal_2.entry.esm.js').then(processMod, consoleError);
2976
- case 'token-list_3':
2977
- return import(/* webpackMode: "lazy" */
2978
- './token-list_3.entry.esm.js').then(processMod, consoleError);
2979
- case 'eds-accordion':
2980
- return import(/* webpackMode: "lazy" */
2981
- './eds-accordion.entry.esm.js').then(processMod, consoleError);
2982
- case 'eds-alert':
2983
- return import(/* webpackMode: "lazy" */
2984
- './eds-alert.entry.esm.js').then(processMod, consoleError);
2985
- case 'eds-card-generic':
2986
- return import(/* webpackMode: "lazy" */
2987
- './eds-card-generic.entry.esm.js').then(processMod, consoleError);
2988
- case 'eds-section-core_2':
2989
- return import(/* webpackMode: "lazy" */
2990
- './eds-section-core_2.entry.esm.js').then(processMod, consoleError);
2991
- case 'eds-spinner':
2992
- return import(/* webpackMode: "lazy" */
2993
- './eds-spinner.entry.esm.js').then(processMod, consoleError);
2994
- case 'eds-pagination_2':
2995
- return import(/* webpackMode: "lazy" */
2996
- './eds-pagination_2.entry.esm.js').then(processMod, consoleError);
2997
- case 'eds-card-desc_2':
2998
- return import(/* webpackMode: "lazy" */
2999
- './eds-card-desc_2.entry.esm.js').then(processMod, consoleError);
3000
- case 'eds-code-block':
3001
- return import(/* webpackMode: "lazy" */
3002
- './eds-code-block.entry.esm.js').then(processMod, consoleError);
3003
- }
3004
- }
3005
- return import(/* @vite-ignore */
3006
- /* webpackInclude: /\.entry\.js$/ */
3007
- /* webpackExclude: /\.system\.entry\.js$/ */
3008
- /* webpackMode: "lazy" */
3009
- `./${bundleId}.entry.js${""}`).then(importedModule => {
3010
- {
3011
- cmpModules.set(bundleId, importedModule);
3012
- }
3013
- return importedModule[exportName];
3014
- }, consoleError);
3015
- };
3016
-
3017
- // src/client/client-style.ts
3018
- var styles = /* @__PURE__ */new Map();
3019
-
3020
- // src/runtime/runtime-constants.ts
3021
- var CONTENT_REF_ID = "r";
3022
- var ORG_LOCATION_ID = "o";
3023
- var SLOT_NODE_ID = "s";
3024
- var TEXT_NODE_ID = "t";
3025
- var HYDRATE_ID = "s-id";
3026
- var HYDRATED_STYLE_ID = "sty-id";
3027
- var HYDRATE_CHILD_ID = "c-id";
3028
- var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
3029
- var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
3030
- var XLINK_NS = "http://www.w3.org/1999/xlink";
3031
- var win = typeof window !== "undefined" ? window : {};
3032
- var doc = win.document || {
3033
- head: {}
3034
- };
3035
- var plt = {
3036
- $flags$: 0,
3037
- $resourcesUrl$: "",
3038
- jmp: h2 => h2(),
3039
- raf: h2 => requestAnimationFrame(h2),
3040
- ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
3041
- rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
3042
- ce: (eventName, opts) => new CustomEvent(eventName, opts)
3043
- };
3044
- var supportsShadow = BUILD.shadowDom;
3045
- var supportsListenerOptions = /* @__PURE__ */(() => {
3046
- let supportsListenerOptions2 = false;
3047
- try {
3048
- doc.addEventListener("e", null, Object.defineProperty({}, "passive", {
3049
- get() {
3050
- supportsListenerOptions2 = true;
3051
- }
3052
- }));
3053
- } catch (e) {}
3054
- return supportsListenerOptions2;
3055
- })();
3056
- var promiseResolve = v => Promise.resolve(v);
3057
- var supportsConstructableStylesheets = /* @__PURE__ */(() => {
3058
- try {
3059
- new CSSStyleSheet();
3060
- return typeof new CSSStyleSheet().replaceSync === "function";
3061
- } catch (e) {}
3062
- return false;
3063
- })();
3064
- var queuePending = false;
3065
- var queueDomReads = [];
3066
- var queueDomWrites = [];
3067
- var queueTask = (queue, write) => cb => {
3068
- queue.push(cb);
3069
- if (!queuePending) {
3070
- queuePending = true;
3071
- if (plt.$flags$ & 4 /* queueSync */) {
3072
- nextTick(flush);
3073
- } else {
3074
- plt.raf(flush);
3075
- }
3076
- }
3077
- };
3078
- var consume = queue => {
3079
- for (let i2 = 0; i2 < queue.length; i2++) {
3080
- try {
3081
- queue[i2](performance.now());
3082
- } catch (e) {
3083
- consoleError(e);
3084
- }
3085
- }
3086
- queue.length = 0;
3087
- };
3088
- var flush = () => {
3089
- consume(queueDomReads);
3090
- {
3091
- consume(queueDomWrites);
3092
- if (queuePending = queueDomReads.length > 0) {
3093
- plt.raf(flush);
3094
- }
3095
- }
3096
- };
3097
- var nextTick = cb => promiseResolve().then(cb);
3098
- var writeTask = /* @__PURE__ */queueTask(queueDomWrites);
3099
-
3100
- // src/utils/constants.ts
3101
- var EMPTY_OBJ = {};
3102
-
3103
- // src/utils/helpers.ts
3104
- var isDef = v => v != null;
3105
- var isComplexType = o => {
3106
- o = typeof o;
3107
- return o === "object" || o === "function";
3108
- };
3109
-
3110
- // src/utils/query-nonce-meta-tag-content.ts
3111
- function queryNonceMetaTagContent(doc2) {
3112
- var _a, _b, _c;
3113
- return (_c = (_b = (_a = doc2.head) == null ? void 0 : _a.querySelector('meta[name="csp-nonce"]')) == null ? void 0 : _b.getAttribute("content")) != null ? _c : void 0;
3114
- }
3115
-
3116
- // src/utils/result.ts
3117
- var result_exports = {};
3118
- __export(result_exports, {
3119
- err: () => err,
3120
- map: () => map,
3121
- ok: () => ok,
3122
- unwrap: () => unwrap,
3123
- unwrapErr: () => unwrapErr
3124
- });
3125
- var ok = value => ({
3126
- isOk: true,
3127
- isErr: false,
3128
- value
3129
- });
3130
- var err = value => ({
3131
- isOk: false,
3132
- isErr: true,
3133
- value
3134
- });
3135
- function map(result, fn) {
3136
- if (result.isOk) {
3137
- const val = fn(result.value);
3138
- if (val instanceof Promise) {
3139
- return val.then(newVal => ok(newVal));
3140
- } else {
3141
- return ok(val);
3142
- }
3143
- }
3144
- if (result.isErr) {
3145
- const value = result.value;
3146
- return err(value);
3147
- }
3148
- throw "should never get here";
3149
- }
3150
- var unwrap = result => {
3151
- if (result.isOk) {
3152
- return result.value;
3153
- } else {
3154
- throw result.value;
3155
- }
3156
- };
3157
- var unwrapErr = result => {
3158
- if (result.isErr) {
3159
- return result.value;
3160
- } else {
3161
- throw result.value;
3162
- }
3163
- };
3164
- var createTime = (fnName, tagName = "") => {
3165
- {
3166
- return () => {
3167
- return;
3168
- };
3169
- }
3170
- };
3171
- var uniqueTime = (key, measureText) => {
3172
- {
3173
- return () => {
3174
- return;
3175
- };
3176
- }
3177
- };
3178
- var h = (nodeName, vnodeData, ...children) => {
3179
- let child = null;
3180
- let key = null;
3181
- let slotName = null;
3182
- let simple = false;
3183
- let lastSimple = false;
3184
- const vNodeChildren = [];
3185
- const walk = c => {
3186
- for (let i2 = 0; i2 < c.length; i2++) {
3187
- child = c[i2];
3188
- if (Array.isArray(child)) {
3189
- walk(child);
3190
- } else if (child != null && typeof child !== "boolean") {
3191
- if (simple = typeof nodeName !== "function" && !isComplexType(child)) {
3192
- child = String(child);
3193
- }
3194
- if (simple && lastSimple) {
3195
- vNodeChildren[vNodeChildren.length - 1].$text$ += child;
3196
- } else {
3197
- vNodeChildren.push(simple ? newVNode(null, child) : child);
3198
- }
3199
- lastSimple = simple;
3200
- }
3201
- }
3202
- };
3203
- walk(children);
3204
- if (vnodeData) {
3205
- if (vnodeData.key) {
3206
- key = vnodeData.key;
3207
- }
3208
- if (vnodeData.name) {
3209
- slotName = vnodeData.name;
3210
- }
3211
- {
3212
- const classData = vnodeData.className || vnodeData.class;
3213
- if (classData) {
3214
- vnodeData.class = typeof classData !== "object" ? classData : Object.keys(classData).filter(k => classData[k]).join(" ");
3215
- }
3216
- }
3217
- }
3218
- if (typeof nodeName === "function") {
3219
- return nodeName(vnodeData === null ? {} : vnodeData, vNodeChildren, vdomFnUtils);
3220
- }
3221
- const vnode = newVNode(nodeName, null);
3222
- vnode.$attrs$ = vnodeData;
3223
- if (vNodeChildren.length > 0) {
3224
- vnode.$children$ = vNodeChildren;
3225
- }
3226
- {
3227
- vnode.$key$ = key;
3228
- }
3229
- {
3230
- vnode.$name$ = slotName;
3231
- }
3232
- return vnode;
3233
- };
3234
- var newVNode = (tag, text) => {
3235
- const vnode = {
3236
- $flags$: 0,
3237
- $tag$: tag,
3238
- $text$: text,
3239
- $elm$: null,
3240
- $children$: null
3241
- };
3242
- {
3243
- vnode.$attrs$ = null;
3244
- }
3245
- {
3246
- vnode.$key$ = null;
3247
- }
3248
- {
3249
- vnode.$name$ = null;
3250
- }
3251
- return vnode;
3252
- };
3253
- var Host = {};
3254
- var isHost = node => node && node.$tag$ === Host;
3255
- var vdomFnUtils = {
3256
- forEach: (children, cb) => children.map(convertToPublic).forEach(cb),
3257
- map: (children, cb) => children.map(convertToPublic).map(cb).map(convertToPrivate)
3258
- };
3259
- var convertToPublic = node => ({
3260
- vattrs: node.$attrs$,
3261
- vchildren: node.$children$,
3262
- vkey: node.$key$,
3263
- vname: node.$name$,
3264
- vtag: node.$tag$,
3265
- vtext: node.$text$
3266
- });
3267
- var convertToPrivate = node => {
3268
- if (typeof node.vtag === "function") {
3269
- const vnodeData = {
3270
- ...node.vattrs
3271
- };
3272
- if (node.vkey) {
3273
- vnodeData.key = node.vkey;
3274
- }
3275
- if (node.vname) {
3276
- vnodeData.name = node.vname;
3277
- }
3278
- return h(node.vtag, vnodeData, ...(node.vchildren || []));
3279
- }
3280
- const vnode = newVNode(node.vtag, node.vtext);
3281
- vnode.$attrs$ = node.vattrs;
3282
- vnode.$children$ = node.vchildren;
3283
- vnode.$key$ = node.vkey;
3284
- vnode.$name$ = node.vname;
3285
- return vnode;
3286
- };
3287
-
3288
- // src/runtime/client-hydrate.ts
3289
- var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
3290
- const endHydrate = createTime("hydrateClient", tagName);
3291
- const shadowRoot = hostElm.shadowRoot;
3292
- const childRenderNodes = [];
3293
- const slotNodes = [];
3294
- const shadowRootNodes = shadowRoot ? [] : null;
3295
- const vnode = hostRef.$vnode$ = newVNode(tagName, null);
3296
- if (!plt.$orgLocNodes$) {
3297
- initializeDocumentHydrate(doc.body, plt.$orgLocNodes$ = /* @__PURE__ */new Map());
3298
- }
3299
- hostElm[HYDRATE_ID] = hostId;
3300
- hostElm.removeAttribute(HYDRATE_ID);
3301
- clientHydrate(vnode, childRenderNodes, slotNodes, shadowRootNodes, hostElm, hostElm, hostId);
3302
- childRenderNodes.map(c => {
3303
- const orgLocationId = c.$hostId$ + "." + c.$nodeId$;
3304
- const orgLocationNode = plt.$orgLocNodes$.get(orgLocationId);
3305
- const node = c.$elm$;
3306
- if (orgLocationNode && supportsShadow && orgLocationNode["s-en"] === "") {
3307
- orgLocationNode.parentNode.insertBefore(node, orgLocationNode.nextSibling);
3308
- }
3309
- if (!shadowRoot) {
3310
- node["s-hn"] = tagName;
3311
- if (orgLocationNode) {
3312
- node["s-ol"] = orgLocationNode;
3313
- node["s-ol"]["s-nr"] = node;
3314
- }
3315
- }
3316
- plt.$orgLocNodes$.delete(orgLocationId);
3317
- });
3318
- if (shadowRoot) {
3319
- shadowRootNodes.map(shadowRootNode => {
3320
- if (shadowRootNode) {
3321
- shadowRoot.appendChild(shadowRootNode);
3322
- }
3323
- });
3324
- }
3325
- endHydrate();
3326
- };
3327
- var clientHydrate = (parentVNode, childRenderNodes, slotNodes, shadowRootNodes, hostElm, node, hostId) => {
3328
- let childNodeType;
3329
- let childIdSplt;
3330
- let childVNode;
3331
- let i2;
3332
- if (node.nodeType === 1 /* ElementNode */) {
3333
- childNodeType = node.getAttribute(HYDRATE_CHILD_ID);
3334
- if (childNodeType) {
3335
- childIdSplt = childNodeType.split(".");
3336
- if (childIdSplt[0] === hostId || childIdSplt[0] === "0") {
3337
- childVNode = {
3338
- $flags$: 0,
3339
- $hostId$: childIdSplt[0],
3340
- $nodeId$: childIdSplt[1],
3341
- $depth$: childIdSplt[2],
3342
- $index$: childIdSplt[3],
3343
- $tag$: node.tagName.toLowerCase(),
3344
- $elm$: node,
3345
- $attrs$: null,
3346
- $children$: null,
3347
- $key$: null,
3348
- $name$: null,
3349
- $text$: null
3350
- };
3351
- childRenderNodes.push(childVNode);
3352
- node.removeAttribute(HYDRATE_CHILD_ID);
3353
- if (!parentVNode.$children$) {
3354
- parentVNode.$children$ = [];
3355
- }
3356
- parentVNode.$children$[childVNode.$index$] = childVNode;
3357
- parentVNode = childVNode;
3358
- if (shadowRootNodes && childVNode.$depth$ === "0") {
3359
- shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
3360
- }
3361
- }
3362
- }
3363
- if (node.shadowRoot) {
3364
- for (i2 = node.shadowRoot.childNodes.length - 1; i2 >= 0; i2--) {
3365
- clientHydrate(parentVNode, childRenderNodes, slotNodes, shadowRootNodes, hostElm, node.shadowRoot.childNodes[i2], hostId);
3366
- }
3367
- }
3368
- for (i2 = node.childNodes.length - 1; i2 >= 0; i2--) {
3369
- clientHydrate(parentVNode, childRenderNodes, slotNodes, shadowRootNodes, hostElm, node.childNodes[i2], hostId);
3370
- }
3371
- } else if (node.nodeType === 8 /* CommentNode */) {
3372
- childIdSplt = node.nodeValue.split(".");
3373
- if (childIdSplt[1] === hostId || childIdSplt[1] === "0") {
3374
- childNodeType = childIdSplt[0];
3375
- childVNode = {
3376
- $flags$: 0,
3377
- $hostId$: childIdSplt[1],
3378
- $nodeId$: childIdSplt[2],
3379
- $depth$: childIdSplt[3],
3380
- $index$: childIdSplt[4],
3381
- $elm$: node,
3382
- $attrs$: null,
3383
- $children$: null,
3384
- $key$: null,
3385
- $name$: null,
3386
- $tag$: null,
3387
- $text$: null
3388
- };
3389
- if (childNodeType === TEXT_NODE_ID) {
3390
- childVNode.$elm$ = node.nextSibling;
3391
- if (childVNode.$elm$ && childVNode.$elm$.nodeType === 3 /* TextNode */) {
3392
- childVNode.$text$ = childVNode.$elm$.textContent;
3393
- childRenderNodes.push(childVNode);
3394
- node.remove();
3395
- if (!parentVNode.$children$) {
3396
- parentVNode.$children$ = [];
3397
- }
3398
- parentVNode.$children$[childVNode.$index$] = childVNode;
3399
- if (shadowRootNodes && childVNode.$depth$ === "0") {
3400
- shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
3401
- }
3402
- }
3403
- } else if (childVNode.$hostId$ === hostId) {
3404
- if (childNodeType === SLOT_NODE_ID) {
3405
- childVNode.$tag$ = "slot";
3406
- if (childIdSplt[5]) {
3407
- node["s-sn"] = childVNode.$name$ = childIdSplt[5];
3408
- } else {
3409
- node["s-sn"] = "";
3410
- }
3411
- node["s-sr"] = true;
3412
- if (shadowRootNodes) {
3413
- childVNode.$elm$ = doc.createElement(childVNode.$tag$);
3414
- if (childVNode.$name$) {
3415
- childVNode.$elm$.setAttribute("name", childVNode.$name$);
3416
- }
3417
- node.parentNode.insertBefore(childVNode.$elm$, node);
3418
- node.remove();
3419
- if (childVNode.$depth$ === "0") {
3420
- shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
3421
- }
3422
- }
3423
- slotNodes.push(childVNode);
3424
- if (!parentVNode.$children$) {
3425
- parentVNode.$children$ = [];
3426
- }
3427
- parentVNode.$children$[childVNode.$index$] = childVNode;
3428
- } else if (childNodeType === CONTENT_REF_ID) {
3429
- if (shadowRootNodes) {
3430
- node.remove();
3431
- } else {
3432
- hostElm["s-cr"] = node;
3433
- node["s-cn"] = true;
3434
- }
3435
- }
3436
- }
3437
- }
3438
- } else if (parentVNode && parentVNode.$tag$ === "style") {
3439
- const vnode = newVNode(null, node.textContent);
3440
- vnode.$elm$ = node;
3441
- vnode.$index$ = "0";
3442
- parentVNode.$children$ = [vnode];
3443
- }
3444
- };
3445
- var initializeDocumentHydrate = (node, orgLocNodes) => {
3446
- if (node.nodeType === 1 /* ElementNode */) {
3447
- let i2 = 0;
3448
- if (node.shadowRoot) {
3449
- for (; i2 < node.shadowRoot.childNodes.length; i2++) {
3450
- initializeDocumentHydrate(node.shadowRoot.childNodes[i2], orgLocNodes);
3451
- }
3452
- }
3453
- for (i2 = 0; i2 < node.childNodes.length; i2++) {
3454
- initializeDocumentHydrate(node.childNodes[i2], orgLocNodes);
3455
- }
3456
- } else if (node.nodeType === 8 /* CommentNode */) {
3457
- const childIdSplt = node.nodeValue.split(".");
3458
- if (childIdSplt[0] === ORG_LOCATION_ID) {
3459
- orgLocNodes.set(childIdSplt[1] + "." + childIdSplt[2], node);
3460
- node.nodeValue = "";
3461
- node["s-en"] = childIdSplt[3];
3462
- }
3463
- }
3464
- };
3465
- var parsePropertyValue = (propValue, propType) => {
3466
- if (propValue != null && !isComplexType(propValue)) {
3467
- if (propType & 4 /* Boolean */) {
3468
- return propValue === "false" ? false : propValue === "" || !!propValue;
3469
- }
3470
- if (propType & 2 /* Number */) {
3471
- return parseFloat(propValue);
3472
- }
3473
- if (propType & 1 /* String */) {
3474
- return String(propValue);
3475
- }
3476
- return propValue;
3477
- }
3478
- return propValue;
3479
- };
3480
- var getElement = ref => getHostRef(ref).$hostElement$;
3481
-
3482
- // src/runtime/event-emitter.ts
3483
- var createEvent = (ref, name, flags) => {
3484
- const elm = getElement(ref);
3485
- return {
3486
- emit: detail => {
3487
- return emitEvent(elm, name, {
3488
- bubbles: !!(flags & 4 /* Bubbles */),
3489
- composed: !!(flags & 2 /* Composed */),
3490
- cancelable: !!(flags & 1 /* Cancellable */),
3491
- detail
3492
- });
3493
- }
3494
- };
3495
- };
3496
- var emitEvent = (elm, name, opts) => {
3497
- const ev = plt.ce(name, opts);
3498
- elm.dispatchEvent(ev);
3499
- return ev;
3500
- };
3501
- var rootAppliedStyles = /* @__PURE__ */new WeakMap();
3502
- var registerStyle = (scopeId2, cssText, allowCS) => {
3503
- let style = styles.get(scopeId2);
3504
- if (supportsConstructableStylesheets && allowCS) {
3505
- style = style || new CSSStyleSheet();
3506
- if (typeof style === "string") {
3507
- style = cssText;
3508
- } else {
3509
- style.replaceSync(cssText);
3510
- }
3511
- } else {
3512
- style = cssText;
3513
- }
3514
- styles.set(scopeId2, style);
3515
- };
3516
- var addStyle = (styleContainerNode, cmpMeta, mode) => {
3517
- var _a;
3518
- const scopeId2 = getScopeId(cmpMeta);
3519
- const style = styles.get(scopeId2);
3520
- styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : doc;
3521
- if (style) {
3522
- if (typeof style === "string") {
3523
- styleContainerNode = styleContainerNode.head || styleContainerNode;
3524
- let appliedStyles = rootAppliedStyles.get(styleContainerNode);
3525
- let styleElm;
3526
- if (!appliedStyles) {
3527
- rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */new Set());
3528
- }
3529
- if (!appliedStyles.has(scopeId2)) {
3530
- if (styleContainerNode.host && (styleElm = styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`))) {
3531
- styleElm.innerHTML = style;
3532
- } else {
3533
- styleElm = doc.createElement("style");
3534
- styleElm.innerHTML = style;
3535
- const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
3536
- if (nonce != null) {
3537
- styleElm.setAttribute("nonce", nonce);
3538
- }
3539
- if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
3540
- if (styleContainerNode.nodeName === "HEAD") {
3541
- const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
3542
- const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
3543
- styleContainerNode.insertBefore(styleElm, referenceNode2);
3544
- } else if ("host" in styleContainerNode) {
3545
- styleContainerNode.prepend(styleElm);
3546
- } else {
3547
- styleContainerNode.append(styleElm);
3548
- }
3549
- }
3550
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
3551
- styleContainerNode.insertBefore(styleElm, null);
3552
- }
3553
- }
3554
- if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
3555
- styleElm.innerHTML += SLOT_FB_CSS;
3556
- }
3557
- if (appliedStyles) {
3558
- appliedStyles.add(scopeId2);
3559
- }
3560
- }
3561
- } else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
3562
- styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
3563
- }
3564
- }
3565
- return scopeId2;
3566
- };
3567
- var attachStyles = hostRef => {
3568
- const cmpMeta = hostRef.$cmpMeta$;
3569
- const elm = hostRef.$hostElement$;
3570
- const flags = cmpMeta.$flags$;
3571
- const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
3572
- const scopeId2 = addStyle(elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(), cmpMeta);
3573
- if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
3574
- elm["s-sc"] = scopeId2;
3575
- elm.classList.add(scopeId2 + "-h");
3576
- }
3577
- endAttachStyles();
3578
- };
3579
- var getScopeId = (cmp, mode) => "sc-" + cmp.$tagName$;
3580
- var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
3581
- if (oldValue !== newValue) {
3582
- let isProp = isMemberInElement(elm, memberName);
3583
- let ln = memberName.toLowerCase();
3584
- if (memberName === "class") {
3585
- const classList = elm.classList;
3586
- const oldClasses = parseClassList(oldValue);
3587
- const newClasses = parseClassList(newValue);
3588
- classList.remove(...oldClasses.filter(c => c && !newClasses.includes(c)));
3589
- classList.add(...newClasses.filter(c => c && !oldClasses.includes(c)));
3590
- } else if (memberName === "style") {
3591
- {
3592
- for (const prop in oldValue) {
3593
- if (!newValue || newValue[prop] == null) {
3594
- if (prop.includes("-")) {
3595
- elm.style.removeProperty(prop);
3596
- } else {
3597
- elm.style[prop] = "";
3598
- }
3599
- }
3600
- }
3601
- }
3602
- for (const prop in newValue) {
3603
- if (!oldValue || newValue[prop] !== oldValue[prop]) {
3604
- if (prop.includes("-")) {
3605
- elm.style.setProperty(prop, newValue[prop]);
3606
- } else {
3607
- elm.style[prop] = newValue[prop];
3608
- }
3609
- }
3610
- }
3611
- } else if (memberName === "key") ;else if (memberName === "ref") {
3612
- if (newValue) {
3613
- newValue(elm);
3614
- }
3615
- } else if (!isProp && memberName[0] === "o" && memberName[1] === "n") {
3616
- if (memberName[2] === "-") {
3617
- memberName = memberName.slice(3);
3618
- } else if (isMemberInElement(win, ln)) {
3619
- memberName = ln.slice(2);
3620
- } else {
3621
- memberName = ln[2] + memberName.slice(3);
3622
- }
3623
- if (oldValue || newValue) {
3624
- const capture = memberName.endsWith(CAPTURE_EVENT_SUFFIX);
3625
- memberName = memberName.replace(CAPTURE_EVENT_REGEX, "");
3626
- if (oldValue) {
3627
- plt.rel(elm, memberName, oldValue, capture);
3628
- }
3629
- if (newValue) {
3630
- plt.ael(elm, memberName, newValue, capture);
3631
- }
3632
- }
3633
- } else {
3634
- const isComplex = isComplexType(newValue);
3635
- if ((isProp || isComplex && newValue !== null) && !isSvg) {
3636
- try {
3637
- if (!elm.tagName.includes("-")) {
3638
- const n = newValue == null ? "" : newValue;
3639
- if (memberName === "list") {
3640
- isProp = false;
3641
- } else if (oldValue == null || elm[memberName] != n) {
3642
- if (typeof elm.__lookupSetter__(memberName) === "function") {
3643
- elm[memberName] = n;
3644
- } else {
3645
- elm.setAttribute(memberName, n);
3646
- }
3647
- }
3648
- } else {
3649
- elm[memberName] = newValue;
3650
- }
3651
- } catch (e) {}
3652
- }
3653
- let xlink = false;
3654
- {
3655
- if (ln !== (ln = ln.replace(/^xlink\:?/, ""))) {
3656
- memberName = ln;
3657
- xlink = true;
3658
- }
3659
- }
3660
- if (newValue == null || newValue === false) {
3661
- if (newValue !== false || elm.getAttribute(memberName) === "") {
3662
- if (xlink) {
3663
- elm.removeAttributeNS(XLINK_NS, memberName);
3664
- } else {
3665
- elm.removeAttribute(memberName);
3666
- }
3667
- }
3668
- } else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex) {
3669
- newValue = newValue === true ? "" : newValue;
3670
- if (xlink) {
3671
- elm.setAttributeNS(XLINK_NS, memberName, newValue);
3672
- } else {
3673
- elm.setAttribute(memberName, newValue);
3674
- }
3675
- }
3676
- }
3677
- }
3678
- };
3679
- var parseClassListRegex = /\s/;
3680
- var parseClassList = value => !value ? [] : value.split(parseClassListRegex);
3681
- var CAPTURE_EVENT_SUFFIX = "Capture";
3682
- var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
3683
-
3684
- // src/runtime/vdom/update-element.ts
3685
- var updateElement = (oldVnode, newVnode, isSvgMode2) => {
3686
- const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
3687
- const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
3688
- const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
3689
- {
3690
- for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
3691
- if (!(memberName in newVnodeAttrs)) {
3692
- setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
3693
- }
3694
- }
3695
- }
3696
- for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
3697
- setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
3698
- }
3699
- };
3700
- function sortedAttrNames(attrNames) {
3701
- return attrNames.includes("ref") ?
3702
- // we need to sort these to ensure that `'ref'` is the last attr
3703
- [...attrNames.filter(attr => attr !== "ref"), "ref"] :
3704
- // no need to sort, return the original array
3705
- attrNames;
3706
- }
3707
-
3708
- // src/runtime/vdom/vdom-render.ts
3709
- var scopeId;
3710
- var contentRef;
3711
- var hostTagName;
3712
- var useNativeShadowDom = false;
3713
- var checkSlotFallbackVisibility = false;
3714
- var checkSlotRelocate = false;
3715
- var isSvgMode = false;
3716
- var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
3717
- var _a;
3718
- const newVNode2 = newParentVNode.$children$[childIndex];
3719
- let i2 = 0;
3720
- let elm;
3721
- let childNode;
3722
- let oldVNode;
3723
- if (!useNativeShadowDom) {
3724
- checkSlotRelocate = true;
3725
- if (newVNode2.$tag$ === "slot") {
3726
- if (scopeId) {
3727
- parentElm.classList.add(scopeId + "-s");
3728
- }
3729
- newVNode2.$flags$ |= newVNode2.$children$ ?
3730
- // slot element has fallback content
3731
- // still create an element that "mocks" the slot element
3732
- 2 /* isSlotFallback */ :
3733
- // slot element does not have fallback content
3734
- // create an html comment we'll use to always reference
3735
- // where actual slot content should sit next to
3736
- 1 /* isSlotReference */;
3737
- }
3738
- }
3739
- if (newVNode2.$text$ !== null) {
3740
- elm = newVNode2.$elm$ = doc.createTextNode(newVNode2.$text$);
3741
- } else if (newVNode2.$flags$ & 1 /* isSlotReference */) {
3742
- elm = newVNode2.$elm$ = doc.createTextNode("");
3743
- } else {
3744
- elm = newVNode2.$elm$ = doc.createElement(!useNativeShadowDom && BUILD.slotRelocation && newVNode2.$flags$ & 2 /* isSlotFallback */ ? "slot-fb" : newVNode2.$tag$);
3745
- {
3746
- updateElement(null, newVNode2, isSvgMode);
3747
- }
3748
- const rootNode = elm.getRootNode();
3749
- const isElementWithinShadowRoot = !rootNode.querySelector("body");
3750
- if (!isElementWithinShadowRoot && BUILD.scoped && isDef(scopeId) && elm["s-si"] !== scopeId) {
3751
- elm.classList.add(elm["s-si"] = scopeId);
3752
- }
3753
- if (newVNode2.$children$) {
3754
- for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
3755
- childNode = createElm(oldParentVNode, newVNode2, i2, elm);
3756
- if (childNode) {
3757
- elm.appendChild(childNode);
3758
- }
3759
- }
3760
- }
3761
- }
3762
- elm["s-hn"] = hostTagName;
3763
- {
3764
- if (newVNode2.$flags$ & (2 /* isSlotFallback */ | 1 /* isSlotReference */)) {
3765
- elm["s-sr"] = true;
3766
- elm["s-cr"] = contentRef;
3767
- elm["s-sn"] = newVNode2.$name$ || "";
3768
- elm["s-rf"] = (_a = newVNode2.$attrs$) == null ? void 0 : _a.ref;
3769
- oldVNode = oldParentVNode && oldParentVNode.$children$ && oldParentVNode.$children$[childIndex];
3770
- if (oldVNode && oldVNode.$tag$ === newVNode2.$tag$ && oldParentVNode.$elm$) {
3771
- {
3772
- putBackInOriginalLocation(oldParentVNode.$elm$, false);
3773
- }
3774
- }
3775
- }
3776
- }
3777
- return elm;
3778
- };
3779
- var putBackInOriginalLocation = (parentElm, recursive) => {
3780
- plt.$flags$ |= 1 /* isTmpDisconnected */;
3781
- const oldSlotChildNodes = Array.from(parentElm.childNodes);
3782
- if (parentElm["s-sr"] && BUILD.experimentalSlotFixes) {
3783
- let node = parentElm;
3784
- while (node = node.nextSibling) {
3785
- if (node && node["s-sn"] === parentElm["s-sn"] && node["s-sh"] === hostTagName) {
3786
- oldSlotChildNodes.push(node);
3787
- }
3788
- }
3789
- }
3790
- for (let i2 = oldSlotChildNodes.length - 1; i2 >= 0; i2--) {
3791
- const childNode = oldSlotChildNodes[i2];
3792
- if (childNode["s-hn"] !== hostTagName && childNode["s-ol"]) {
3793
- insertBefore(parentReferenceNode(childNode), childNode, referenceNode(childNode));
3794
- childNode["s-ol"].remove();
3795
- childNode["s-ol"] = void 0;
3796
- childNode["s-sh"] = void 0;
3797
- checkSlotRelocate = true;
3798
- }
3799
- if (recursive) {
3800
- putBackInOriginalLocation(childNode, recursive);
3801
- }
3802
- }
3803
- plt.$flags$ &= ~1 /* isTmpDisconnected */;
3804
- };
3805
- var addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
3806
- let containerElm = parentElm["s-cr"] && parentElm["s-cr"].parentNode || parentElm;
3807
- let childNode;
3808
- if (containerElm.shadowRoot && containerElm.tagName === hostTagName) {
3809
- containerElm = containerElm.shadowRoot;
3810
- }
3811
- for (; startIdx <= endIdx; ++startIdx) {
3812
- if (vnodes[startIdx]) {
3813
- childNode = createElm(null, parentVNode, startIdx, parentElm);
3814
- if (childNode) {
3815
- vnodes[startIdx].$elm$ = childNode;
3816
- insertBefore(containerElm, childNode, referenceNode(before));
3817
- }
3818
- }
3819
- }
3820
- };
3821
- var removeVnodes = (vnodes, startIdx, endIdx) => {
3822
- for (let index = startIdx; index <= endIdx; ++index) {
3823
- const vnode = vnodes[index];
3824
- if (vnode) {
3825
- const elm = vnode.$elm$;
3826
- nullifyVNodeRefs(vnode);
3827
- if (elm) {
3828
- {
3829
- checkSlotFallbackVisibility = true;
3830
- if (elm["s-ol"]) {
3831
- elm["s-ol"].remove();
3832
- } else {
3833
- putBackInOriginalLocation(elm, true);
3834
- }
3835
- }
3836
- elm.remove();
3837
- }
3838
- }
3839
- }
3840
- };
3841
- var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = false) => {
3842
- let oldStartIdx = 0;
3843
- let newStartIdx = 0;
3844
- let idxInOld = 0;
3845
- let i2 = 0;
3846
- let oldEndIdx = oldCh.length - 1;
3847
- let oldStartVnode = oldCh[0];
3848
- let oldEndVnode = oldCh[oldEndIdx];
3849
- let newEndIdx = newCh.length - 1;
3850
- let newStartVnode = newCh[0];
3851
- let newEndVnode = newCh[newEndIdx];
3852
- let node;
3853
- let elmToMove;
3854
- while (oldStartIdx <= oldEndIdx && newStartIdx <= newEndIdx) {
3855
- if (oldStartVnode == null) {
3856
- oldStartVnode = oldCh[++oldStartIdx];
3857
- } else if (oldEndVnode == null) {
3858
- oldEndVnode = oldCh[--oldEndIdx];
3859
- } else if (newStartVnode == null) {
3860
- newStartVnode = newCh[++newStartIdx];
3861
- } else if (newEndVnode == null) {
3862
- newEndVnode = newCh[--newEndIdx];
3863
- } else if (isSameVnode(oldStartVnode, newStartVnode, isInitialRender)) {
3864
- patch(oldStartVnode, newStartVnode, isInitialRender);
3865
- oldStartVnode = oldCh[++oldStartIdx];
3866
- newStartVnode = newCh[++newStartIdx];
3867
- } else if (isSameVnode(oldEndVnode, newEndVnode, isInitialRender)) {
3868
- patch(oldEndVnode, newEndVnode, isInitialRender);
3869
- oldEndVnode = oldCh[--oldEndIdx];
3870
- newEndVnode = newCh[--newEndIdx];
3871
- } else if (isSameVnode(oldStartVnode, newEndVnode, isInitialRender)) {
3872
- if (oldStartVnode.$tag$ === "slot" || newEndVnode.$tag$ === "slot") {
3873
- putBackInOriginalLocation(oldStartVnode.$elm$.parentNode, false);
3874
- }
3875
- patch(oldStartVnode, newEndVnode, isInitialRender);
3876
- insertBefore(parentElm, oldStartVnode.$elm$, oldEndVnode.$elm$.nextSibling);
3877
- oldStartVnode = oldCh[++oldStartIdx];
3878
- newEndVnode = newCh[--newEndIdx];
3879
- } else if (isSameVnode(oldEndVnode, newStartVnode, isInitialRender)) {
3880
- if (oldStartVnode.$tag$ === "slot" || newEndVnode.$tag$ === "slot") {
3881
- putBackInOriginalLocation(oldEndVnode.$elm$.parentNode, false);
3882
- }
3883
- patch(oldEndVnode, newStartVnode, isInitialRender);
3884
- insertBefore(parentElm, oldEndVnode.$elm$, oldStartVnode.$elm$);
3885
- oldEndVnode = oldCh[--oldEndIdx];
3886
- newStartVnode = newCh[++newStartIdx];
3887
- } else {
3888
- idxInOld = -1;
3889
- {
3890
- for (i2 = oldStartIdx; i2 <= oldEndIdx; ++i2) {
3891
- if (oldCh[i2] && oldCh[i2].$key$ !== null && oldCh[i2].$key$ === newStartVnode.$key$) {
3892
- idxInOld = i2;
3893
- break;
3894
- }
3895
- }
3896
- }
3897
- if (idxInOld >= 0) {
3898
- elmToMove = oldCh[idxInOld];
3899
- if (elmToMove.$tag$ !== newStartVnode.$tag$) {
3900
- node = createElm(oldCh && oldCh[newStartIdx], newVNode2, idxInOld, parentElm);
3901
- } else {
3902
- patch(elmToMove, newStartVnode, isInitialRender);
3903
- oldCh[idxInOld] = void 0;
3904
- node = elmToMove.$elm$;
3905
- }
3906
- newStartVnode = newCh[++newStartIdx];
3907
- } else {
3908
- node = createElm(oldCh && oldCh[newStartIdx], newVNode2, newStartIdx, parentElm);
3909
- newStartVnode = newCh[++newStartIdx];
3910
- }
3911
- if (node) {
3912
- {
3913
- insertBefore(parentReferenceNode(oldStartVnode.$elm$), node, referenceNode(oldStartVnode.$elm$));
3914
- }
3915
- }
3916
- }
3917
- }
3918
- if (oldStartIdx > oldEndIdx) {
3919
- addVnodes(parentElm, newCh[newEndIdx + 1] == null ? null : newCh[newEndIdx + 1].$elm$, newVNode2, newCh, newStartIdx, newEndIdx);
3920
- } else if (newStartIdx > newEndIdx) {
3921
- removeVnodes(oldCh, oldStartIdx, oldEndIdx);
3922
- }
3923
- };
3924
- var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
3925
- if (leftVNode.$tag$ === rightVNode.$tag$) {
3926
- if (leftVNode.$tag$ === "slot") {
3927
- if (
3928
- // The component gets hydrated and no VDOM has been initialized.
3929
- // Here the comparison can't happen as $name$ property is not set for `leftNode`.
3930
- "$nodeId$" in leftVNode && isInitialRender &&
3931
- // `leftNode` is not from type HTMLComment which would cause many
3932
- // hydration comments to be removed
3933
- leftVNode.$elm$.nodeType !== 8) {
3934
- return false;
3935
- }
3936
- return leftVNode.$name$ === rightVNode.$name$;
3937
- }
3938
- if (!isInitialRender) {
3939
- return leftVNode.$key$ === rightVNode.$key$;
3940
- }
3941
- return true;
3942
- }
3943
- return false;
3944
- };
3945
- var referenceNode = node => {
3946
- return node && node["s-ol"] || node;
3947
- };
3948
- var parentReferenceNode = node => (node["s-ol"] ? node["s-ol"] : node).parentNode;
3949
- var patch = (oldVNode, newVNode2, isInitialRender = false) => {
3950
- const elm = newVNode2.$elm$ = oldVNode.$elm$;
3951
- const oldChildren = oldVNode.$children$;
3952
- const newChildren = newVNode2.$children$;
3953
- const tag = newVNode2.$tag$;
3954
- const text = newVNode2.$text$;
3955
- let defaultHolder;
3956
- if (text === null) {
3957
- {
3958
- if (tag === "slot" && !useNativeShadowDom) ;else {
3959
- updateElement(oldVNode, newVNode2, isSvgMode);
3960
- }
3961
- }
3962
- if (oldChildren !== null && newChildren !== null) {
3963
- updateChildren(elm, oldChildren, newVNode2, newChildren, isInitialRender);
3964
- } else if (newChildren !== null) {
3965
- if (oldVNode.$text$ !== null) {
3966
- elm.textContent = "";
3967
- }
3968
- addVnodes(elm, null, newVNode2, newChildren, 0, newChildren.length - 1);
3969
- } else if (
3970
- // don't do this on initial render as it can cause non-hydrated content to be removed
3971
- !isInitialRender && BUILD.updatable && oldChildren !== null) {
3972
- removeVnodes(oldChildren, 0, oldChildren.length - 1);
3973
- }
3974
- } else if (defaultHolder = elm["s-cr"]) {
3975
- defaultHolder.parentNode.textContent = text;
3976
- } else if (oldVNode.$text$ !== text) {
3977
- elm.data = text;
3978
- }
3979
- };
3980
- var updateFallbackSlotVisibility = elm => {
3981
- const childNodes = elm.childNodes;
3982
- for (const childNode of childNodes) {
3983
- if (childNode.nodeType === 1 /* ElementNode */) {
3984
- if (childNode["s-sr"]) {
3985
- const slotName = childNode["s-sn"];
3986
- childNode.hidden = false;
3987
- for (const siblingNode of childNodes) {
3988
- if (siblingNode !== childNode) {
3989
- if (siblingNode["s-hn"] !== childNode["s-hn"] || slotName !== "") {
3990
- if (siblingNode.nodeType === 1 /* ElementNode */ && (slotName === siblingNode.getAttribute("slot") || slotName === siblingNode["s-sn"]) || siblingNode.nodeType === 3 /* TextNode */ && slotName === siblingNode["s-sn"]) {
3991
- childNode.hidden = true;
3992
- break;
3993
- }
3994
- } else {
3995
- if (siblingNode.nodeType === 1 /* ElementNode */ || siblingNode.nodeType === 3 /* TextNode */ && siblingNode.textContent.trim() !== "") {
3996
- childNode.hidden = true;
3997
- break;
3998
- }
3999
- }
4000
- }
4001
- }
4002
- }
4003
- updateFallbackSlotVisibility(childNode);
4004
- }
4005
- }
4006
- };
4007
- var relocateNodes = [];
4008
- var markSlotContentForRelocation = elm => {
4009
- let node;
4010
- let hostContentNodes;
4011
- let j;
4012
- for (const childNode of elm.childNodes) {
4013
- if (childNode["s-sr"] && (node = childNode["s-cr"]) && node.parentNode) {
4014
- hostContentNodes = node.parentNode.childNodes;
4015
- const slotName = childNode["s-sn"];
4016
- for (j = hostContentNodes.length - 1; j >= 0; j--) {
4017
- node = hostContentNodes[j];
4018
- if (!node["s-cn"] && !node["s-nr"] && node["s-hn"] !== childNode["s-hn"] && !BUILD.experimentalSlotFixes) {
4019
- if (isNodeLocatedInSlot(node, slotName)) {
4020
- let relocateNodeData = relocateNodes.find(r => r.$nodeToRelocate$ === node);
4021
- checkSlotFallbackVisibility = true;
4022
- node["s-sn"] = node["s-sn"] || slotName;
4023
- if (relocateNodeData) {
4024
- relocateNodeData.$nodeToRelocate$["s-sh"] = childNode["s-hn"];
4025
- relocateNodeData.$slotRefNode$ = childNode;
4026
- } else {
4027
- node["s-sh"] = childNode["s-hn"];
4028
- relocateNodes.push({
4029
- $slotRefNode$: childNode,
4030
- $nodeToRelocate$: node
4031
- });
4032
- }
4033
- if (node["s-sr"]) {
4034
- relocateNodes.map(relocateNode => {
4035
- if (isNodeLocatedInSlot(relocateNode.$nodeToRelocate$, node["s-sn"])) {
4036
- relocateNodeData = relocateNodes.find(r => r.$nodeToRelocate$ === node);
4037
- if (relocateNodeData && !relocateNode.$slotRefNode$) {
4038
- relocateNode.$slotRefNode$ = relocateNodeData.$slotRefNode$;
4039
- }
4040
- }
4041
- });
4042
- }
4043
- } else if (!relocateNodes.some(r => r.$nodeToRelocate$ === node)) {
4044
- relocateNodes.push({
4045
- $nodeToRelocate$: node
4046
- });
4047
- }
4048
- }
4049
- }
4050
- }
4051
- if (childNode.nodeType === 1 /* ElementNode */) {
4052
- markSlotContentForRelocation(childNode);
4053
- }
4054
- }
4055
- };
4056
- var isNodeLocatedInSlot = (nodeToRelocate, slotName) => {
4057
- if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
4058
- if (nodeToRelocate.getAttribute("slot") === null && slotName === "") {
4059
- return true;
4060
- }
4061
- if (nodeToRelocate.getAttribute("slot") === slotName) {
4062
- return true;
4063
- }
4064
- return false;
4065
- }
4066
- if (nodeToRelocate["s-sn"] === slotName) {
4067
- return true;
4068
- }
4069
- return slotName === "";
4070
- };
4071
- var nullifyVNodeRefs = vNode => {
4072
- {
4073
- vNode.$attrs$ && vNode.$attrs$.ref && vNode.$attrs$.ref(null);
4074
- vNode.$children$ && vNode.$children$.map(nullifyVNodeRefs);
4075
- }
4076
- };
4077
- var insertBefore = (parent, newNode, reference) => {
4078
- const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
4079
- return inserted;
4080
- };
4081
- var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
4082
- var _a, _b, _c, _d;
4083
- const hostElm = hostRef.$hostElement$;
4084
- const cmpMeta = hostRef.$cmpMeta$;
4085
- const oldVNode = hostRef.$vnode$ || newVNode(null, null);
4086
- const rootVnode = isHost(renderFnResults) ? renderFnResults : h(null, null, renderFnResults);
4087
- hostTagName = hostElm.tagName;
4088
- if (cmpMeta.$attrsToReflect$) {
4089
- rootVnode.$attrs$ = rootVnode.$attrs$ || {};
4090
- cmpMeta.$attrsToReflect$.map(([propName, attribute]) => rootVnode.$attrs$[attribute] = hostElm[propName]);
4091
- }
4092
- if (isInitialLoad && rootVnode.$attrs$) {
4093
- for (const key of Object.keys(rootVnode.$attrs$)) {
4094
- if (hostElm.hasAttribute(key) && !["key", "ref", "style", "class"].includes(key)) {
4095
- rootVnode.$attrs$[key] = hostElm[key];
4096
- }
4097
- }
4098
- }
4099
- rootVnode.$tag$ = null;
4100
- rootVnode.$flags$ |= 4 /* isHost */;
4101
- hostRef.$vnode$ = rootVnode;
4102
- rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm;
4103
- {
4104
- scopeId = hostElm["s-sc"];
4105
- }
4106
- useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
4107
- {
4108
- contentRef = hostElm["s-cr"];
4109
- checkSlotFallbackVisibility = false;
4110
- }
4111
- patch(oldVNode, rootVnode, isInitialLoad);
4112
- {
4113
- plt.$flags$ |= 1 /* isTmpDisconnected */;
4114
- if (checkSlotRelocate) {
4115
- markSlotContentForRelocation(rootVnode.$elm$);
4116
- for (const relocateData of relocateNodes) {
4117
- const nodeToRelocate = relocateData.$nodeToRelocate$;
4118
- if (!nodeToRelocate["s-ol"]) {
4119
- const orgLocationNode = doc.createTextNode("");
4120
- orgLocationNode["s-nr"] = nodeToRelocate;
4121
- insertBefore(nodeToRelocate.parentNode, nodeToRelocate["s-ol"] = orgLocationNode, nodeToRelocate);
4122
- }
4123
- }
4124
- for (const relocateData of relocateNodes) {
4125
- const nodeToRelocate = relocateData.$nodeToRelocate$;
4126
- const slotRefNode = relocateData.$slotRefNode$;
4127
- if (slotRefNode) {
4128
- const parentNodeRef = slotRefNode.parentNode;
4129
- let insertBeforeNode = slotRefNode.nextSibling;
4130
- {
4131
- let orgLocationNode = (_a = nodeToRelocate["s-ol"]) == null ? void 0 : _a.previousSibling;
4132
- while (orgLocationNode) {
4133
- let refNode = (_b = orgLocationNode["s-nr"]) != null ? _b : null;
4134
- if (refNode && refNode["s-sn"] === nodeToRelocate["s-sn"] && parentNodeRef === refNode.parentNode) {
4135
- refNode = refNode.nextSibling;
4136
- while (refNode === nodeToRelocate || (refNode == null ? void 0 : refNode["s-sr"])) {
4137
- refNode = refNode == null ? void 0 : refNode.nextSibling;
4138
- }
4139
- if (!refNode || !refNode["s-nr"]) {
4140
- insertBeforeNode = refNode;
4141
- break;
4142
- }
4143
- }
4144
- orgLocationNode = orgLocationNode.previousSibling;
4145
- }
4146
- }
4147
- if (!insertBeforeNode && parentNodeRef !== nodeToRelocate.parentNode || nodeToRelocate.nextSibling !== insertBeforeNode) {
4148
- if (nodeToRelocate !== insertBeforeNode) {
4149
- if (!nodeToRelocate["s-hn"] && nodeToRelocate["s-ol"]) {
4150
- nodeToRelocate["s-hn"] = nodeToRelocate["s-ol"].parentNode.nodeName;
4151
- }
4152
- insertBefore(parentNodeRef, nodeToRelocate, insertBeforeNode);
4153
- if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
4154
- nodeToRelocate.hidden = (_c = nodeToRelocate["s-ih"]) != null ? _c : false;
4155
- }
4156
- }
4157
- }
4158
- nodeToRelocate && typeof slotRefNode["s-rf"] === "function" && slotRefNode["s-rf"](nodeToRelocate);
4159
- } else {
4160
- if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
4161
- if (isInitialLoad) {
4162
- nodeToRelocate["s-ih"] = (_d = nodeToRelocate.hidden) != null ? _d : false;
4163
- }
4164
- nodeToRelocate.hidden = true;
4165
- }
4166
- }
4167
- }
4168
- }
4169
- if (checkSlotFallbackVisibility) {
4170
- updateFallbackSlotVisibility(rootVnode.$elm$);
4171
- }
4172
- plt.$flags$ &= ~1 /* isTmpDisconnected */;
4173
- relocateNodes.length = 0;
4174
- }
4175
- contentRef = void 0;
4176
- };
4177
-
4178
- // src/runtime/update-component.ts
4179
- var attachToAncestor = (hostRef, ancestorComponent) => {
4180
- if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
4181
- ancestorComponent["s-p"].push(new Promise(r => hostRef.$onRenderResolve$ = r));
4182
- }
4183
- };
4184
- var scheduleUpdate = (hostRef, isInitialLoad) => {
4185
- {
4186
- hostRef.$flags$ |= 16 /* isQueuedForUpdate */;
4187
- }
4188
- if (hostRef.$flags$ & 4 /* isWaitingForChildren */) {
4189
- hostRef.$flags$ |= 512 /* needsRerender */;
4190
- return;
4191
- }
4192
- attachToAncestor(hostRef, hostRef.$ancestorComponent$);
4193
- const dispatch = () => dispatchHooks(hostRef, isInitialLoad);
4194
- return writeTask(dispatch);
4195
- };
4196
- var dispatchHooks = (hostRef, isInitialLoad) => {
4197
- const elm = hostRef.$hostElement$;
4198
- const endSchedule = createTime("scheduleUpdate", hostRef.$cmpMeta$.$tagName$);
4199
- const instance = hostRef.$lazyInstance$;
4200
- if (!instance) {
4201
- throw new Error(`Can't render component <${elm.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);
4202
- }
4203
- let maybePromise;
4204
- if (isInitialLoad) {
4205
- {
4206
- hostRef.$flags$ |= 256 /* isListenReady */;
4207
- if (hostRef.$queuedListeners$) {
4208
- hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event));
4209
- hostRef.$queuedListeners$ = void 0;
4210
- }
4211
- }
4212
- {
4213
- maybePromise = safeCall(instance, "componentWillLoad");
4214
- }
4215
- }
4216
- endSchedule();
4217
- return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
4218
- };
4219
- var enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then(fn).catch(err2 => {
4220
- console.error(err2);
4221
- fn();
4222
- }) : fn();
4223
- var isPromisey = maybePromise => maybePromise instanceof Promise || maybePromise && maybePromise.then && typeof maybePromise.then === "function";
4224
- var updateComponent = async (hostRef, instance, isInitialLoad) => {
4225
- var _a;
4226
- const elm = hostRef.$hostElement$;
4227
- const endUpdate = createTime("update", hostRef.$cmpMeta$.$tagName$);
4228
- const rc = elm["s-rc"];
4229
- if (isInitialLoad) {
4230
- attachStyles(hostRef);
4231
- }
4232
- const endRender = createTime("render", hostRef.$cmpMeta$.$tagName$);
4233
- {
4234
- callRender(hostRef, instance, elm, isInitialLoad);
4235
- }
4236
- if (rc) {
4237
- rc.map(cb => cb());
4238
- elm["s-rc"] = void 0;
4239
- }
4240
- endRender();
4241
- endUpdate();
4242
- {
4243
- const childrenPromises = (_a = elm["s-p"]) != null ? _a : [];
4244
- const postUpdate = () => postUpdateComponent(hostRef);
4245
- if (childrenPromises.length === 0) {
4246
- postUpdate();
4247
- } else {
4248
- Promise.all(childrenPromises).then(postUpdate);
4249
- hostRef.$flags$ |= 4 /* isWaitingForChildren */;
4250
- childrenPromises.length = 0;
4251
- }
4252
- }
4253
- };
4254
- var callRender = (hostRef, instance, elm, isInitialLoad) => {
4255
- try {
4256
- instance = instance.render();
4257
- {
4258
- hostRef.$flags$ &= ~16 /* isQueuedForUpdate */;
4259
- }
4260
- {
4261
- hostRef.$flags$ |= 2 /* hasRendered */;
4262
- }
4263
- {
4264
- {
4265
- {
4266
- renderVdom(hostRef, instance, isInitialLoad);
4267
- }
4268
- }
4269
- }
4270
- } catch (e) {
4271
- consoleError(e, hostRef.$hostElement$);
4272
- }
4273
- return null;
4274
- };
4275
- var postUpdateComponent = hostRef => {
4276
- const tagName = hostRef.$cmpMeta$.$tagName$;
4277
- const elm = hostRef.$hostElement$;
4278
- const endPostUpdate = createTime("postUpdate", tagName);
4279
- const instance = hostRef.$lazyInstance$;
4280
- const ancestorComponent = hostRef.$ancestorComponent$;
4281
- if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
4282
- hostRef.$flags$ |= 64 /* hasLoadedComponent */;
4283
- {
4284
- addHydratedFlag(elm);
4285
- }
4286
- {
4287
- safeCall(instance, "componentDidLoad");
4288
- }
4289
- endPostUpdate();
4290
- {
4291
- hostRef.$onReadyResolve$(elm);
4292
- if (!ancestorComponent) {
4293
- appDidLoad();
4294
- }
4295
- }
4296
- } else {
4297
- {
4298
- safeCall(instance, "componentDidUpdate");
4299
- }
4300
- endPostUpdate();
4301
- }
4302
- {
4303
- hostRef.$onInstanceResolve$(elm);
4304
- }
4305
- {
4306
- if (hostRef.$onRenderResolve$) {
4307
- hostRef.$onRenderResolve$();
4308
- hostRef.$onRenderResolve$ = void 0;
4309
- }
4310
- if (hostRef.$flags$ & 512 /* needsRerender */) {
4311
- nextTick(() => scheduleUpdate(hostRef, false));
4312
- }
4313
- hostRef.$flags$ &= ~(4 /* isWaitingForChildren */ | 512 /* needsRerender */);
4314
- }
4315
- };
4316
- var appDidLoad = who => {
4317
- {
4318
- addHydratedFlag(doc.documentElement);
4319
- }
4320
- nextTick(() => emitEvent(win, "appload", {
4321
- detail: {
4322
- namespace: NAMESPACE
4323
- }
4324
- }));
4325
- };
4326
- var safeCall = (instance, method, arg) => {
4327
- if (instance && instance[method]) {
4328
- try {
4329
- return instance[method](arg);
4330
- } catch (e) {
4331
- consoleError(e);
4332
- }
4333
- }
4334
- return void 0;
4335
- };
4336
- var addHydratedFlag = elm => {
4337
- var _a;
4338
- return elm.classList.add((_a = BUILD.hydratedSelectorName) != null ? _a : "hydrated");
4339
- };
4340
-
4341
- // src/runtime/set-value.ts
4342
- var getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
4343
- var setValue = (ref, propName, newVal, cmpMeta) => {
4344
- const hostRef = getHostRef(ref);
4345
- if (!hostRef) {
4346
- throw new Error(`Couldn't find host element for "${cmpMeta.$tagName$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);
4347
- }
4348
- const elm = hostRef.$hostElement$;
4349
- const oldVal = hostRef.$instanceValues$.get(propName);
4350
- const flags = hostRef.$flags$;
4351
- const instance = hostRef.$lazyInstance$;
4352
- newVal = parsePropertyValue(newVal, cmpMeta.$members$[propName][0]);
4353
- const areBothNaN = Number.isNaN(oldVal) && Number.isNaN(newVal);
4354
- const didValueChange = newVal !== oldVal && !areBothNaN;
4355
- if ((!(flags & 8 /* isConstructingInstance */) || oldVal === void 0) && didValueChange) {
4356
- hostRef.$instanceValues$.set(propName, newVal);
4357
- if (instance) {
4358
- if (cmpMeta.$watchers$ && flags & 128 /* isWatchReady */) {
4359
- const watchMethods = cmpMeta.$watchers$[propName];
4360
- if (watchMethods) {
4361
- watchMethods.map(watchMethodName => {
4362
- try {
4363
- instance[watchMethodName](newVal, oldVal, propName);
4364
- } catch (e) {
4365
- consoleError(e, elm);
4366
- }
4367
- });
4368
- }
4369
- }
4370
- if ((flags & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
4371
- scheduleUpdate(hostRef, false);
4372
- }
4373
- }
4374
- }
4375
- };
4376
-
4377
- // src/runtime/proxy-component.ts
4378
- var proxyComponent = (Cstr, cmpMeta, flags) => {
4379
- var _a, _b;
4380
- const prototype = Cstr.prototype;
4381
- if (cmpMeta.$members$ || cmpMeta.$watchers$ || Cstr.watchers) {
4382
- if (Cstr.watchers && !cmpMeta.$watchers$) {
4383
- cmpMeta.$watchers$ = Cstr.watchers;
4384
- }
4385
- const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
4386
- members.map(([memberName, [memberFlags]]) => {
4387
- if (memberFlags & 31 /* Prop */ || flags & 2 /* proxyState */ && memberFlags & 32 /* State */) {
4388
- Object.defineProperty(prototype, memberName, {
4389
- get() {
4390
- return getValue(this, memberName);
4391
- },
4392
- set(newValue) {
4393
- setValue(this, memberName, newValue, cmpMeta);
4394
- },
4395
- configurable: true,
4396
- enumerable: true
4397
- });
4398
- } else if (flags & 1 /* isElementConstructor */ && memberFlags & 64 /* Method */) {
4399
- Object.defineProperty(prototype, memberName, {
4400
- value(...args) {
4401
- var _a2;
4402
- const ref = getHostRef(this);
4403
- return (_a2 = ref == null ? void 0 : ref.$onInstancePromise$) == null ? void 0 : _a2.then(() => {
4404
- var _a3;
4405
- return (_a3 = ref.$lazyInstance$) == null ? void 0 : _a3[memberName](...args);
4406
- });
4407
- }
4408
- });
4409
- }
4410
- });
4411
- if (flags & 1 /* isElementConstructor */) {
4412
- const attrNameToPropName = /* @__PURE__ */new Map();
4413
- prototype.attributeChangedCallback = function (attrName, oldValue, newValue) {
4414
- plt.jmp(() => {
4415
- var _a2;
4416
- const propName = attrNameToPropName.get(attrName);
4417
- if (this.hasOwnProperty(propName)) {
4418
- newValue = this[propName];
4419
- delete this[propName];
4420
- } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" &&
4421
- // cast type to number to avoid TS compiler issues
4422
- this[propName] == newValue) {
4423
- return;
4424
- } else if (propName == null) {
4425
- const hostRef = getHostRef(this);
4426
- const flags2 = hostRef == null ? void 0 : hostRef.$flags$;
4427
- if (flags2 && !(flags2 & 8 /* isConstructingInstance */) && flags2 & 128 /* isWatchReady */ && newValue !== oldValue) {
4428
- const instance = hostRef.$lazyInstance$;
4429
- const entry = (_a2 = cmpMeta.$watchers$) == null ? void 0 : _a2[attrName];
4430
- entry == null ? void 0 : entry.forEach(callbackName => {
4431
- if (instance[callbackName] != null) {
4432
- instance[callbackName].call(instance, newValue, oldValue, attrName);
4433
- }
4434
- });
4435
- }
4436
- return;
4437
- }
4438
- this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
4439
- });
4440
- };
4441
- Cstr.observedAttributes = Array.from(/* @__PURE__ */new Set([...Object.keys((_b = cmpMeta.$watchers$) != null ? _b : {}), ...members.filter(([_, m]) => m[0] & 15 /* HasAttribute */).map(([propName, m]) => {
4442
- var _a2;
4443
- const attrName = m[1] || propName;
4444
- attrNameToPropName.set(attrName, propName);
4445
- if (m[0] & 512 /* ReflectAttr */) {
4446
- (_a2 = cmpMeta.$attrsToReflect$) == null ? void 0 : _a2.push([propName, attrName]);
4447
- }
4448
- return attrName;
4449
- })]));
4450
- }
4451
- }
4452
- return Cstr;
4453
- };
4454
-
4455
- // src/runtime/initialize-component.ts
4456
- var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
4457
- let Cstr;
4458
- if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
4459
- hostRef.$flags$ |= 32 /* hasInitializedComponent */;
4460
- const bundleId = cmpMeta.$lazyBundleId$;
4461
- if (bundleId) {
4462
- const CstrImport = loadModule(cmpMeta);
4463
- if (CstrImport && "then" in CstrImport) {
4464
- const endLoad = uniqueTime();
4465
- Cstr = await CstrImport;
4466
- endLoad();
4467
- } else {
4468
- Cstr = CstrImport;
4469
- }
4470
- if (!Cstr) {
4471
- throw new Error(`Constructor for "${cmpMeta.$tagName$}#${hostRef.$modeName$}" was not found`);
4472
- }
4473
- if (!Cstr.isProxied) {
4474
- {
4475
- cmpMeta.$watchers$ = Cstr.watchers;
4476
- }
4477
- proxyComponent(Cstr, cmpMeta, 2 /* proxyState */);
4478
- Cstr.isProxied = true;
4479
- }
4480
- const endNewInstance = createTime("createInstance", cmpMeta.$tagName$);
4481
- {
4482
- hostRef.$flags$ |= 8 /* isConstructingInstance */;
4483
- }
4484
- try {
4485
- new Cstr(hostRef);
4486
- } catch (e) {
4487
- consoleError(e);
4488
- }
4489
- {
4490
- hostRef.$flags$ &= ~8 /* isConstructingInstance */;
4491
- }
4492
- {
4493
- hostRef.$flags$ |= 128 /* isWatchReady */;
4494
- }
4495
- endNewInstance();
4496
- fireConnectedCallback(hostRef.$lazyInstance$);
4497
- } else {
4498
- Cstr = elm.constructor;
4499
- const cmpTag = elm.localName;
4500
- customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
4501
- }
4502
- if (Cstr && Cstr.style) {
4503
- let style;
4504
- if (typeof Cstr.style === "string") {
4505
- style = Cstr.style;
4506
- }
4507
- const scopeId2 = getScopeId(cmpMeta);
4508
- if (!styles.has(scopeId2)) {
4509
- const endRegisterStyles = createTime("registerStyles", cmpMeta.$tagName$);
4510
- registerStyle(scopeId2, style, !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */));
4511
- endRegisterStyles();
4512
- }
4513
- }
4514
- }
4515
- const ancestorComponent = hostRef.$ancestorComponent$;
4516
- const schedule = () => scheduleUpdate(hostRef, true);
4517
- if (ancestorComponent && ancestorComponent["s-rc"]) {
4518
- ancestorComponent["s-rc"].push(schedule);
4519
- } else {
4520
- schedule();
4521
- }
4522
- };
4523
- var fireConnectedCallback = instance => {
4524
- {
4525
- safeCall(instance, "connectedCallback");
4526
- }
4527
- };
4528
-
4529
- // src/runtime/connected-callback.ts
4530
- var connectedCallback = elm => {
4531
- if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
4532
- const hostRef = getHostRef(elm);
4533
- const cmpMeta = hostRef.$cmpMeta$;
4534
- const endConnected = createTime("connectedCallback", cmpMeta.$tagName$);
4535
- if (!(hostRef.$flags$ & 1 /* hasConnected */)) {
4536
- hostRef.$flags$ |= 1 /* hasConnected */;
4537
- let hostId;
4538
- {
4539
- hostId = elm.getAttribute(HYDRATE_ID);
4540
- if (hostId) {
4541
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
4542
- const scopeId2 = addStyle(elm.shadowRoot, cmpMeta);
4543
- elm.classList.remove(scopeId2 + "-h", scopeId2 + "-s");
4544
- }
4545
- initializeClientHydrate(elm, cmpMeta.$tagName$, hostId, hostRef);
4546
- }
4547
- }
4548
- if (!hostId) {
4549
- if (
4550
- // TODO(STENCIL-854): Remove code related to legacy shadowDomShim field
4551
- cmpMeta.$flags$ & (4 /* hasSlotRelocation */ | 8 /* needsShadowDomShim */)) {
4552
- setContentReference(elm);
4553
- }
4554
- }
4555
- {
4556
- let ancestorComponent = elm;
4557
- while (ancestorComponent = ancestorComponent.parentNode || ancestorComponent.host) {
4558
- if (ancestorComponent.nodeType === 1 /* ElementNode */ && ancestorComponent.hasAttribute("s-id") && ancestorComponent["s-p"] || ancestorComponent["s-p"]) {
4559
- attachToAncestor(hostRef, hostRef.$ancestorComponent$ = ancestorComponent);
4560
- break;
4561
- }
4562
- }
4563
- }
4564
- if (cmpMeta.$members$) {
4565
- Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
4566
- if (memberFlags & 31 /* Prop */ && elm.hasOwnProperty(memberName)) {
4567
- const value = elm[memberName];
4568
- delete elm[memberName];
4569
- elm[memberName] = value;
4570
- }
4571
- });
4572
- }
4573
- {
4574
- initializeComponent(elm, hostRef, cmpMeta);
4575
- }
4576
- } else {
4577
- addHostEventListeners(elm, hostRef, cmpMeta.$listeners$);
4578
- if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
4579
- fireConnectedCallback(hostRef.$lazyInstance$);
4580
- } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
4581
- hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$));
4582
- }
4583
- }
4584
- endConnected();
4585
- }
4586
- };
4587
- var setContentReference = elm => {
4588
- const contentRefElm = elm["s-cr"] = doc.createComment("");
4589
- contentRefElm["s-cn"] = true;
4590
- insertBefore(elm, contentRefElm, elm.firstChild);
4591
- };
4592
- var disconnectInstance = instance => {
4593
- {
4594
- safeCall(instance, "disconnectedCallback");
4595
- }
4596
- };
4597
- var disconnectedCallback = async elm => {
4598
- if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
4599
- const hostRef = getHostRef(elm);
4600
- {
4601
- if (hostRef.$rmListeners$) {
4602
- hostRef.$rmListeners$.map(rmListener => rmListener());
4603
- hostRef.$rmListeners$ = void 0;
4604
- }
4605
- }
4606
- if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
4607
- disconnectInstance(hostRef.$lazyInstance$);
4608
- } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
4609
- hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$));
4610
- }
4611
- }
4612
- };
4613
-
4614
- // src/runtime/bootstrap-lazy.ts
4615
- var bootstrapLazy = (lazyBundles, options = {}) => {
4616
- var _a;
4617
- const endBootstrap = createTime();
4618
- const cmpTags = [];
4619
- const exclude = options.exclude || [];
4620
- const customElements2 = win.customElements;
4621
- const head = doc.head;
4622
- const metaCharset = /* @__PURE__ */head.querySelector("meta[charset]");
4623
- const dataStyles = /* @__PURE__ */doc.createElement("style");
4624
- const deferredConnectedCallbacks = [];
4625
- let appLoadFallback;
4626
- let isBootstrapping = true;
4627
- Object.assign(plt, options);
4628
- plt.$resourcesUrl$ = new URL(options.resourcesUrl || "./", doc.baseURI).href;
4629
- {
4630
- plt.$flags$ |= 2 /* appLoaded */;
4631
- }
4632
- let hasSlotRelocation = false;
4633
- lazyBundles.map(lazyBundle => {
4634
- lazyBundle[1].map(compactMeta => {
4635
- var _a2;
4636
- const cmpMeta = {
4637
- $flags$: compactMeta[0],
4638
- $tagName$: compactMeta[1],
4639
- $members$: compactMeta[2],
4640
- $listeners$: compactMeta[3]
4641
- };
4642
- if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
4643
- hasSlotRelocation = true;
4644
- }
4645
- {
4646
- cmpMeta.$members$ = compactMeta[2];
4647
- }
4648
- {
4649
- cmpMeta.$listeners$ = compactMeta[3];
4650
- }
4651
- {
4652
- cmpMeta.$attrsToReflect$ = [];
4653
- }
4654
- {
4655
- cmpMeta.$watchers$ = (_a2 = compactMeta[4]) != null ? _a2 : {};
4656
- }
4657
- const tagName = cmpMeta.$tagName$;
4658
- const HostElement = class extends HTMLElement {
4659
- // StencilLazyHost
4660
- constructor(self) {
4661
- super(self);
4662
- this.hasRegisteredEventListeners = false;
4663
- self = this;
4664
- registerHost(self, cmpMeta);
4665
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
4666
- {
4667
- if (!self.shadowRoot) {
4668
- {
4669
- self.attachShadow({
4670
- mode: "open"
4671
- });
4672
- }
4673
- } else {
4674
- if (self.shadowRoot.mode !== "open") {
4675
- throw new Error(`Unable to re-use existing shadow root for ${cmpMeta.$tagName$}! Mode is set to ${self.shadowRoot.mode} but Stencil only supports open shadow roots.`);
4676
- }
4677
- }
4678
- }
4679
- }
4680
- }
4681
- connectedCallback() {
4682
- const hostRef = getHostRef(this);
4683
- if (!this.hasRegisteredEventListeners) {
4684
- this.hasRegisteredEventListeners = true;
4685
- addHostEventListeners(this, hostRef, cmpMeta.$listeners$);
4686
- }
4687
- if (appLoadFallback) {
4688
- clearTimeout(appLoadFallback);
4689
- appLoadFallback = null;
4690
- }
4691
- if (isBootstrapping) {
4692
- deferredConnectedCallbacks.push(this);
4693
- } else {
4694
- plt.jmp(() => connectedCallback(this));
4695
- }
4696
- }
4697
- disconnectedCallback() {
4698
- plt.jmp(() => disconnectedCallback(this));
4699
- }
4700
- componentOnReady() {
4701
- return getHostRef(this).$onReadyPromise$;
4702
- }
4703
- };
4704
- cmpMeta.$lazyBundleId$ = lazyBundle[0];
4705
- if (!exclude.includes(tagName) && !customElements2.get(tagName)) {
4706
- cmpTags.push(tagName);
4707
- customElements2.define(tagName, proxyComponent(HostElement, cmpMeta, 1 /* isElementConstructor */));
4708
- }
4709
- });
4710
- });
4711
- if (cmpTags.length > 0) {
4712
- if (hasSlotRelocation) {
4713
- dataStyles.textContent += SLOT_FB_CSS;
4714
- }
4715
- {
4716
- dataStyles.textContent += cmpTags.sort() + HYDRATED_CSS;
4717
- }
4718
- if (dataStyles.innerHTML.length) {
4719
- dataStyles.setAttribute("data-styles", "");
4720
- const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
4721
- if (nonce != null) {
4722
- dataStyles.setAttribute("nonce", nonce);
4723
- }
4724
- head.insertBefore(dataStyles, metaCharset ? metaCharset.nextSibling : head.firstChild);
4725
- }
4726
- }
4727
- isBootstrapping = false;
4728
- if (deferredConnectedCallbacks.length) {
4729
- deferredConnectedCallbacks.map(host => host.connectedCallback());
4730
- } else {
4731
- {
4732
- plt.jmp(() => appLoadFallback = setTimeout(appDidLoad, 30));
4733
- }
4734
- }
4735
- endBootstrap();
4736
- };
4737
- var addHostEventListeners = (elm, hostRef, listeners, attachParentListeners) => {
4738
- if (listeners) {
4739
- listeners.map(([flags, name, method]) => {
4740
- const target = getHostListenerTarget(elm, flags);
4741
- const handler = hostListenerProxy(hostRef, method);
4742
- const opts = hostListenerOpts(flags);
4743
- plt.ael(target, name, handler, opts);
4744
- (hostRef.$rmListeners$ = hostRef.$rmListeners$ || []).push(() => plt.rel(target, name, handler, opts));
4745
- });
4746
- }
4747
- };
4748
- var hostListenerProxy = (hostRef, methodName) => ev => {
4749
- var _a;
4750
- try {
4751
- {
4752
- if (hostRef.$flags$ & 256 /* isListenReady */) {
4753
- (_a = hostRef.$lazyInstance$) == null ? void 0 : _a[methodName](ev);
4754
- } else {
4755
- (hostRef.$queuedListeners$ = hostRef.$queuedListeners$ || []).push([methodName, ev]);
4756
- }
4757
- }
4758
- } catch (e) {
4759
- consoleError(e);
4760
- }
4761
- };
4762
- var getHostListenerTarget = (elm, flags) => {
4763
- if (flags & 8 /* TargetWindow */) return win;
4764
- if (flags & 16 /* TargetBody */) return doc.body;
4765
- return elm;
4766
- };
4767
- var hostListenerOpts = flags => supportsListenerOptions ? {
4768
- passive: (flags & 1 /* Passive */) !== 0,
4769
- capture: (flags & 2 /* Capture */) !== 0
4770
- } : (flags & 2 /* Capture */) !== 0;
4771
-
4772
- const globalScripts = () => {};
4773
-
4774
- const defineCustomElements = async (win, options) => {
4775
- if (typeof window === 'undefined') return undefined;
4776
- await globalScripts();
4777
- return bootstrapLazy(JSON.parse("[[\"eds-avatar_26\",[[1,\"eds-form\",{\"name\":[1],\"setFormUrl\":[4,\"set-form-url\"],\"formBtn\":[4,\"form-btn\"],\"formBtnLabel\":[1,\"form-btn-label\"],\"errorMessage\":[1,\"error-message\"],\"fields\":[1],\"initData\":[16],\"values\":[32],\"isSubmitting\":[32],\"hasError\":[32],\"errors\":[32],\"parsedFields\":[32]},null,{\"fields\":[\"parseFields\"]}],[1,\"eds-fullscreen-menu\",{\"links\":[1],\"menuLinks\":[1,\"menu-links\"],\"homeUrl\":[1,\"home-url\"],\"inverseHeader\":[4,\"inverse-header\"],\"isMenuOpen\":[32]},[[16,\"toggleMenu\",\"handleToggleMenu\"]]],[1,\"eds-user\",{\"user\":[1025]}],[1,\"eds-header\",{\"homeUrl\":[513,\"home-url\"],\"links\":[1],\"inverseHeader\":[4,\"inverse-header\"],\"menuEnabled\":[4,\"menu-enabled\"],\"isMenuOpen\":[32],\"isUserMenuOpen\":[32],\"isAuthenticated\":[32]},[[16,\"authStatusChanged\",\"onAuthStatusChanged\"]]],[1,\"eds-steps-v2\",{\"steps\":[1],\"type\":[1],\"imageSrc\":[1,\"image-src\"],\"bg\":[4],\"message\":[1],\"activeStep\":[32]},null,{\"activeStep\":[\"activeStepChanged\"]}],[1,\"eds-breadcrumb\",{\"items\":[1],\"intent\":[1],\"parsedItems\":[32],\"isSmallScreen\":[32],\"maxVisibleItems\":[32]},null,{\"items\":[\"parseItems\"]}],[0,\"token-spacing\"],[1,\"eds-footer\",{\"social\":[4],\"enableScrollTop\":[4,\"enable-scroll-top\"],\"fundedBy\":[1,\"funded-by\"],\"rightsReserved\":[1,\"rights-reserved\"],\"enableCookiesSettings\":[4,\"enable-cookies-settings\"],\"showMatomoNotice\":[32]}],[1,\"eds-dropdown\",{\"icon\":[1],\"label\":[1],\"rounded\":[4],\"ariaLabel\":[1,\"aria-label\"],\"asNav\":[4,\"as-nav\"],\"dropdownPos\":[1,\"dropdown-pos\"],\"dropdownOffset\":[4,\"dropdown-offset\"],\"intent\":[1],\"isOpen\":[32],\"focusIndex\":[32]},[[8,\"click\",\"handleWindowClick\"],[8,\"keydown\",\"handleKeyDown\"]]],[1,\"eds-steps\",{\"steps\":[1],\"type\":[1],\"activeStep\":[32]},null,{\"activeStep\":[\"activeStepChanged\"]}],[1,\"eds-social-networks\",{\"heading\":[1,\"title\"]}],[1,\"eds-block-break\",{\"extraClass\":[1,\"extra-class\"]}],[1,\"eds-input-field\",{\"name\":[1],\"inputId\":[1,\"input-id\"],\"placeholder\":[1],\"disabled\":[4],\"onChange\":[16],\"onInput\":[16],\"type\":[1],\"required\":[4],\"label\":[1],\"hint\":[1],\"icon\":[1],\"link\":[16],\"message\":[1],\"error\":[4],\"checked\":[4],\"errorMessage\":[1,\"error-message\"],\"value\":[8],\"maxLength\":[2,\"max-length\"],\"options\":[1]}],[1,\"eds-avatar\",{\"firstName\":[1,\"first-name\"],\"lastName\":[1,\"last-name\"],\"picture\":[1],\"initials\":[1],\"color\":[1]}],[0,\"eds-input\",{\"name\":[1],\"inputId\":[1,\"input-id\"],\"placeholder\":[1],\"disabled\":[4],\"hasMessage\":[4,\"has-message\"],\"error\":[4],\"checked\":[4],\"type\":[1],\"required\":[4],\"value\":[8],\"icon\":[1],\"maxLength\":[2,\"max-length\"],\"options\":[16],\"extraClass\":[1,\"extra-class\"],\"innerVal\":[32],\"maxLengthReached\":[32]},null,{\"value\":[\"onValueChanged\"]}],[0,\"eds-input-footer\",{\"name\":[1],\"errorMessage\":[1,\"error-message\"],\"message\":[1],\"error\":[4],\"link\":[16]}],[0,\"eds-input-search\",{\"name\":[1],\"inputId\":[1,\"input-id\"],\"placeholder\":[1],\"value\":[1],\"disabled\":[4],\"required\":[4],\"decorate\":[1],\"label\":[1],\"getInputElement\":[64]}],[0,\"eds-input-select\",{\"inputId\":[1,\"input-id\"],\"name\":[1],\"placeholder\":[1],\"disabled\":[4],\"hasMessage\":[4,\"has-message\"],\"error\":[4],\"required\":[4],\"options\":[16],\"labelKey\":[1,\"label-key\"],\"valueKey\":[1,\"value-key\"],\"value\":[8],\"dynamicOptions\":[32],\"loading\":[32],\"dynamicValueKey\":[32],\"dynamicLabelKey\":[32],\"hasFetched\":[32]},null,{\"options\":[\"loadOptions\"]}],[0,\"eds-input-label\",{\"label\":[1],\"name\":[1],\"required\":[4],\"disabled\":[4]}],[0,\"eds-input-range\",{\"name\":[1],\"inputId\":[1,\"input-id\"],\"disabled\":[4],\"required\":[4],\"min\":[2],\"max\":[2],\"step\":[2],\"value\":[2],\"sliderVal\":[32],\"getInputElement\":[64]},null,{\"value\":[\"onValueChange\"]}],[1,\"eds-tag\",{\"label\":[1],\"intent\":[1],\"size\":[1]}],[1,\"eds-logo\",{\"href\":[1],\"orientation\":[1],\"type\":[1],\"label\":[1]}],[1,\"eds-img\",{\"src\":[1],\"alt\":[1],\"width\":[2],\"height\":[2],\"srcset\":[1],\"sizes\":[1],\"formats\":[16],\"lazyload\":[4],\"withBg\":[4,\"with-bg\"],\"loaded\":[32],\"showBg\":[32]}],[1,\"eds-link\",{\"label\":[1],\"intent\":[1],\"icon\":[1],\"iconPos\":[1,\"icon-pos\"],\"iconSmall\":[4,\"icon-small\"],\"size\":[1],\"external\":[4],\"current\":[4],\"download\":[4],\"url\":[1],\"ariaLabel\":[1,\"aria-label\"],\"disabled\":[4],\"hideLabelOnSmallScreen\":[4,\"hide-label-on-small-screen\"],\"extraClass\":[1,\"extra-class\"]},[[0,\"parentContext\",\"handleParentContext\"]]],[1,\"eds-button\",{\"label\":[1],\"ariaLabel\":[1,\"aria-label\"],\"elementType\":[1,\"element-type\"],\"intent\":[1],\"loading\":[4],\"disabled\":[4],\"pill\":[4],\"icon\":[1],\"size\":[1],\"iconPos\":[1,\"icon-pos\"],\"iconSmall\":[4,\"icon-small\"],\"extraClass\":[1,\"extra-class\"],\"triggerClick\":[16]},[[0,\"parentContext\",\"handleParentContext\"]]],[0,\"eds-icon-wrapper\",{\"icon\":[1],\"class\":[1],\"IconComponent\":[32]},null,{\"icon\":[\"iconChanged\"]}]]],[\"eds-trl\",[[0,\"eds-trl\",{\"applications\":[1]}]]],[\"logo-space\",[[1,\"logo-space\"]]],[\"svg-repository\",[[1,\"svg-repository\"]]],[\"docs-palettes\",[[0,\"docs-palettes\",{\"tabIndex\":[2,\"tab-index\"]}]]],[\"components-section\",[[0,\"components-section\",{\"tabIndex\":[2,\"tab-index\"]}]]],[\"eds-app-root\",[[1,\"eds-app-root\",{\"isAuthenticated\":[32]}]]],[\"eds-card-section\",[[1,\"eds-card-section\",{\"cards\":[1],\"occupyCols\":[2,\"occupy-cols\"]}]]],[\"eds-timeline\",[[1,\"eds-timeline\",{\"events\":[1],\"selectedEvent\":[32],\"parsedEvents\":[32]},null,{\"events\":[\"parseEvents\"]}]]],[\"docs-tokens\",[[0,\"docs-tokens\",{\"tabIndex\":[2,\"tab-index\"]}]]],[\"eds-card-tool\",[[1,\"eds-card-tool\",{\"cardTitle\":[1,\"card-title\"],\"url\":[1],\"description\":[1],\"image\":[8],\"avatar\":[1],\"shortAbbreviation\":[1,\"short-abbreviation\"],\"headingLevel\":[1,\"heading-level\"],\"tags\":[8],\"tiny\":[4],\"bg\":[4],\"withHover\":[4,\"with-hover\"],\"external\":[4],\"hierarchy\":[4]}]]],[\"eds-cookies-preference\",[[0,\"eds-cookies-preference\",{\"buttonText\":[1,\"button-text\"],\"intent\":[1],\"showMatomoNotice\":[32],\"noticeKey\":[32]}]]],[\"eds-card-project\",[[0,\"eds-card-project\",{\"image\":[8],\"editorialTitle\":[1,\"editorial-title\"],\"headingLevel\":[1,\"heading-level\"],\"categoryTitle\":[1,\"category-title\"],\"color\":[1],\"bgOnHover\":[4,\"bg-on-hover\"],\"vertical\":[4],\"titleProject\":[1,\"title-project\"],\"url\":[1],\"parsedImage\":[32]}]]],[\"eds-feedback\",[[1,\"eds-feedback\",{\"type\":[1],\"count\":[2],\"label\":[1],\"description\":[1],\"textMapping\":[1,\"text-mapping\"],\"selectedRating\":[32]},[[16,\"rating\",\"ratingUpdated\"]]]]],[\"eds-toast-manager\",[[1,\"eds-toast-manager\",{\"toasts\":[32]}]]],[\"incorrect-use-of-colors\",[[0,\"incorrect-use-of-colors\"]]],[\"logo-variations-tabs\",[[0,\"logo-variations-tabs\",{\"tabIndex\":[2,\"tab-index\"]}]]],[\"correct-use-of-colors\",[[0,\"correct-use-of-colors\"]]],[\"eds-frame\",[[1,\"eds-frame\",{\"frameLabel\":[1,\"frame-label\"],\"frameSrc\":[1,\"frame-src\"],\"urlLabel\":[1,\"url-label\"],\"errorMessage\":[1,\"error-message\"],\"url\":[1],\"intent\":[1],\"size\":[1],\"iframeError\":[32]}]]],[\"eds-modal\",[[1,\"eds-modal\",{\"heading\":[1,\"title\"],\"truncate\":[4],\"truncateLines\":[1,\"truncate-lines\"],\"position\":[1],\"isOpen\":[32],\"open\":[64],\"close\":[64],\"toggle\":[64]},[[0,\"eds-modal-open\",\"handleGlobalOpen\"],[0,\"eds-modal-close\",\"handleGlobalClose\"],[8,\"keydown\",\"handleKeyDown\"]]]]],[\"token-ratios\",[[0,\"token-ratios\"]]],[\"token-typography\",[[0,\"token-typography\"]]],[\"eds-card-tags\",[[1,\"eds-card-tags\",{\"accent\":[4],\"tags\":[16]}]]],[\"eds-card-wrapper\",[[4,\"eds-card-wrapper\",{\"tiny\":[4],\"withBg\":[4,\"with-bg\"],\"withHover\":[4,\"with-hover\"]}]]],[\"eds-icon-arrow-diagonal\",[[0,\"eds-icon-arrow-diagonal\",{\"class\":[1]}]]],[\"eds-icon-arrow-right\",[[0,\"eds-icon-arrow-right\",{\"class\":[1]}]]],[\"eds-icon-bluesky\",[[0,\"eds-icon-bluesky\",{\"class\":[1]}]]],[\"eds-icon-bookmark\",[[0,\"eds-icon-bookmark\",{\"class\":[1]}]]],[\"eds-icon-chevron-down\",[[0,\"eds-icon-chevron-down\",{\"class\":[1]}]]],[\"eds-icon-chevron-left\",[[0,\"eds-icon-chevron-left\",{\"class\":[1]}]]],[\"eds-icon-chevron-right\",[[0,\"eds-icon-chevron-right\",{\"class\":[1]}]]],[\"eds-icon-chevron-up\",[[0,\"eds-icon-chevron-up\",{\"class\":[1]}]]],[\"eds-icon-close\",[[0,\"eds-icon-close\",{\"class\":[1]}]]],[\"eds-icon-copy\",[[0,\"eds-icon-copy\",{\"class\":[1]}]]],[\"eds-icon-eu\",[[0,\"eds-icon-eu\",{\"class\":[1]}]]],[\"eds-icon-external\",[[0,\"eds-icon-external\",{\"class\":[1]}]]],[\"eds-icon-facebook\",[[0,\"eds-icon-facebook\",{\"class\":[1]}]]],[\"eds-icon-gitlab\",[[0,\"eds-icon-gitlab\",{\"class\":[1]}]]],[\"eds-icon-linkedin\",[[0,\"eds-icon-linkedin\",{\"class\":[1]}]]],[\"eds-icon-loader\",[[0,\"eds-icon-loader\",{\"class\":[1]}]]],[\"eds-icon-mastodon\",[[0,\"eds-icon-mastodon\",{\"class\":[1]}]]],[\"eds-icon-menu\",[[0,\"eds-icon-menu\",{\"class\":[1]}]]],[\"eds-icon-minus\",[[0,\"eds-icon-minus\",{\"class\":[1]}]]],[\"eds-icon-more\",[[0,\"eds-icon-more\",{\"class\":[1]}]]],[\"eds-icon-paper\",[[0,\"eds-icon-paper\",{\"class\":[1]}]]],[\"eds-icon-plus\",[[0,\"eds-icon-plus\",{\"class\":[1]}]]],[\"eds-icon-portal\",[[0,\"eds-icon-portal\",{\"class\":[1]}]]],[\"eds-icon-private\",[[0,\"eds-icon-private\",{\"class\":[1]}]]],[\"eds-icon-public\",[[0,\"eds-icon-public\",{\"class\":[1]}]]],[\"eds-icon-search\",[[0,\"eds-icon-search\",{\"class\":[1]}]]],[\"eds-icon-star\",[[0,\"eds-icon-star\",{\"class\":[1]}]]],[\"eds-icon-success\",[[0,\"eds-icon-success\",{\"class\":[1]}]]],[\"eds-icon-thumbs-down\",[[0,\"eds-icon-thumbs-down\",{\"class\":[1]}]]],[\"eds-icon-thumbs-up\",[[0,\"eds-icon-thumbs-up\",{\"class\":[1]}]]],[\"eds-icon-tutorial\",[[0,\"eds-icon-tutorial\",{\"class\":[1]}]]],[\"eds-icon-twitter\",[[0,\"eds-icon-twitter\",{\"class\":[1]}]]],[\"eds-icon-unknown\",[[0,\"eds-icon-unknown\",{\"class\":[1]}]]],[\"eds-icon-updown\",[[0,\"eds-icon-updown\",{\"class\":[1]}]]],[\"eds-icon-user\",[[0,\"eds-icon-user\",{\"class\":[1]}]]],[\"eds-icon-youtube\",[[0,\"eds-icon-youtube\",{\"class\":[1]}]]],[\"eds-switch\",[[1,\"eds-switch\",{\"checked\":[1540],\"disabled\":[4],\"labelOn\":[1,\"label-on\"],\"labelOff\":[1,\"label-off\"]}]]],[\"eds-tabs\",[[1,\"eds-tabs\",{\"identifier\":[1,\"id\"],\"navAriaLabel\":[1,\"nav-aria-label\"],\"tabs\":[1],\"parsedTabs\":[32],\"activeIndex\":[32]},null,{\"tabs\":[\"parseTabs\"]}]]],[\"eds-tooltip\",[[1,\"eds-tooltip\",{\"content\":[1],\"position\":[1],\"isVisible\":[32],\"isPositioned\":[32],\"tooltipStyle\":[32]},[[1,\"mouseover\",\"showTooltip\"],[1,\"mouseout\",\"hideTooltip\"],[8,\"keydown\",\"handleKeyPress\"]]]]],[\"logo-wrong-usage\",[[1,\"logo-wrong-usage\"]]],[\"eds-accordion\",[[1,\"eds-accordion\",{\"heading\":[1,\"title\"],\"description\":[1],\"switchBg\":[4,\"switch-bg\"],\"expanded\":[4],\"clampText\":[4,\"clamp-text\"],\"isExpanded\":[32],\"panelHeight\":[32],\"shortContent\":[32],\"headerHeight\":[32]}]]],[\"eds-matomo-notice\",[[1,\"eds-matomo-notice\",{\"heading\":[1,\"title\"],\"description\":[1],\"optOutMessage\":[1,\"opt-out-message\"],\"forceShow\":[4,\"force-show\"],\"showNotice\":[32]},[[16,\"cookies\",\"toggleCookiesConsent\"]]]]],[\"eds-rating\",[[1,\"eds-rating\",{\"ratingType\":[1,\"rating-type\"],\"ratingCount\":[2,\"rating-count\"],\"selectedRating\":[32]}]]],[\"eds-toast\",[[1,\"eds-toast\",{\"message\":[1],\"intent\":[1],\"duration\":[2],\"visible\":[32]}]]],[\"eds-progress-bar\",[[1,\"eds-progress-bar\",{\"value\":[1026],\"updateValue\":[64]}]]],[\"eds-card-desc_2\",[[1,\"eds-card-desc\",{\"description\":[1],\"descClass\":[1,\"desc-class\"],\"truncate\":[4],\"truncateLines\":[1,\"truncate-lines\"]}],[1,\"eds-card-title\",{\"url\":[1],\"titleClass\":[1,\"title-class\"],\"headingLevel\":[1,\"heading-level\"],\"externalLink\":[4,\"external-link\"],\"cardTitle\":[1,\"card-title\"],\"hierarchy\":[4]}]]],[\"eds-card-generic\",[[1,\"eds-card-generic\",{\"cardTitle\":[1,\"card-title\"],\"url\":[1],\"description\":[1],\"image\":[8],\"avatar\":[1],\"shortAbbreviation\":[1,\"short-abbreviation\"],\"headingLevel\":[1,\"heading-level\"],\"tags\":[1],\"tiny\":[4],\"bg\":[4],\"withHover\":[4,\"with-hover\"],\"hierarchy\":[4],\"parsedImage\":[32]},[[0,\"parentContext\",\"handleParentContext\"]]]]],[\"eds-login_2\",[[1,\"eds-login\",{\"keycloakUrl\":[1,\"keycloak-url\"],\"keycloakRealm\":[1,\"keycloak-realm\"],\"keycloakClientId\":[1,\"keycloak-client-id\"],\"authenticated\":[32],\"user\":[32],\"serverAvailable\":[32]}],[1,\"eds-splash-screen\",{\"inverse\":[4],\"initPromise\":[16],\"isVisible\":[32]},[[8,\"hideSplash\",\"handleHideSplash\"]],{\"initPromise\":[\"watchInitPromise\"]}]]],[\"logo-variations-horizontal_2\",[[1,\"logo-variations-horizontal\"],[1,\"logo-variations-vertical\",{\"orientation\":[1],\"type\":[1]}]]],[\"eds-alert\",[[1,\"eds-alert\",{\"message\":[1],\"pressableLabel\":[1,\"pressable-label\"],\"pressableUrl\":[1,\"pressable-url\"],\"direction\":[1],\"intent\":[1],\"brd\":[1],\"withBtn\":[32]}]]],[\"eds-spinner\",[[1,\"eds-spinner\",{\"size\":[1],\"thickness\":[1],\"borderColor\":[1,\"border-color\"],\"bottomColor\":[1,\"bottom-color\"],\"background\":[1],\"fullscreen\":[4]}]]],[\"token-list_3\",[[0,\"token-list\",{\"show\":[1]}],[0,\"token-radii\"],[0,\"token-shadows\"]]],[\"eds-section-core_2\",[[4,\"eds-section-core\",{\"tag\":[1],\"sectionTitle\":[1,\"section-title\"],\"headingLevel\":[1,\"heading-level\"]}],[0,\"eds-section-heading\",{\"sectionTitle\":[1,\"section-title\"],\"withContainer\":[4,\"with-container\"],\"headingLevel\":[1,\"heading-level\"],\"tag\":[1],\"spacingLarge\":[4,\"spacing-large\"]}]]],[\"eds-code-block\",[[1,\"eds-code-block\",{\"code\":[1],\"language\":[1],\"copied\":[32]}]]],[\"color-primary-palette_6\",[[0,\"gradient-secondary-palette\"],[0,\"color-primary-palette\"],[0,\"color-secondary-palette\",{\"show\":[1]}],[0,\"color-support-palette\"],[0,\"gradient-primary-palette\"],[0,\"gradient-support-palette\"]]],[\"eds-pagination_2\",[[1,\"eds-table\",{\"data\":[1,\"table-data\"],\"endpoint\":[1],\"config\":[1],\"rowsPerPage\":[2,\"rows-per-page\"],\"paginationEnabled\":[4,\"pagination-enabled\"],\"searchEnabled\":[4,\"search-enabled\"],\"hostWidth\":[1,\"host-width\"],\"columnSize\":[1,\"column-size\"],\"tbData\":[32],\"columns\":[32],\"currentPage\":[32],\"parsedConfig\":[32],\"totalRows\":[32],\"searchQuery\":[32],\"containerWidth\":[32]},null,{\"data\":[\"handleDataChange\",\"parseData\"],\"config\":[\"handleConfigChange\"]}],[1,\"eds-pagination\",{\"currentPage\":[2,\"current-page\"],\"lastPage\":[2,\"last-page\"],\"perPage\":[2,\"per-page\"],\"total\":[2],\"url\":[1],\"mode\":[1],\"prevLabel\":[1,\"prev-label\"],\"nextLabel\":[1,\"next-label\"],\"prevUrl\":[1,\"prev-url\"],\"nextUrl\":[1,\"next-url\"],\"links\":[32]},null,{\"currentPage\":[\"onPageOrLastPageChange\"],\"lastPage\":[\"onPageOrLastPageChange\"]}]]]]"), options);
4778
- };
4779
-
4780
- (function () {
4781
- if ("undefined" !== typeof window && void 0 !== window.Reflect && void 0 !== window.customElements) {
4782
- var a = HTMLElement;
4783
- window.HTMLElement = function () {
4784
- return Reflect.construct(a, [], this.constructor);
4785
- };
4786
- HTMLElement.prototype = a.prototype;
4787
- HTMLElement.prototype.constructor = HTMLElement;
4788
- Object.setPrototypeOf(HTMLElement, a);
4789
- }
4790
- })();
4791
-
4792
- /* eslint-disable */
4793
- /* tslint:disable */
4794
- /* auto-generated react proxies */
4795
- defineCustomElements();
4796
- const EdsAccordion = /*@__PURE__*/createReactComponent('eds-accordion');
4797
- const EdsAlert = /*@__PURE__*/createReactComponent('eds-alert');
4798
- const EdsAvatar = /*@__PURE__*/createReactComponent('eds-avatar');
4799
- const EdsBlockBreak = /*@__PURE__*/createReactComponent('eds-block-break');
4800
- const EdsBreadcrumb = /*@__PURE__*/createReactComponent('eds-breadcrumb');
4801
- const EdsButton = /*@__PURE__*/createReactComponent('eds-button');
4802
- const EdsCardGeneric = /*@__PURE__*/createReactComponent('eds-card-generic');
4803
- const EdsCardSection = /*@__PURE__*/createReactComponent('eds-card-section');
4804
- const EdsCodeBlock = /*@__PURE__*/createReactComponent('eds-code-block');
4805
- const EdsDropdown = /*@__PURE__*/createReactComponent('eds-dropdown');
4806
- const EdsFeedback = /*@__PURE__*/createReactComponent('eds-feedback');
4807
- const EdsFooter = /*@__PURE__*/createReactComponent('eds-footer');
4808
- const EdsForm = /*@__PURE__*/createReactComponent('eds-form');
4809
- const EdsFullscreenMenu = /*@__PURE__*/createReactComponent('eds-fullscreen-menu');
4810
- const EdsHeader = /*@__PURE__*/createReactComponent('eds-header');
4811
- const EdsIconWrapper = /*@__PURE__*/createReactComponent('eds-icon-wrapper');
4812
- const EdsImg = /*@__PURE__*/createReactComponent('eds-img');
4813
- const EdsInputField = /*@__PURE__*/createReactComponent('eds-input-field');
4814
- const EdsLink = /*@__PURE__*/createReactComponent('eds-link');
4815
- const EdsLogo = /*@__PURE__*/createReactComponent('eds-logo');
4816
- const EdsMatomoNotice = /*@__PURE__*/createReactComponent('eds-matomo-notice');
4817
- const EdsModal = /*@__PURE__*/createReactComponent('eds-modal');
4818
- const EdsPagination = /*@__PURE__*/createReactComponent('eds-pagination');
4819
- const EdsProgressBar = /*@__PURE__*/createReactComponent('eds-progress-bar');
4820
- const EdsRating = /*@__PURE__*/createReactComponent('eds-rating');
4821
- const EdsSectionCore = /*@__PURE__*/createReactComponent('eds-section-core');
4822
- const EdsSocialNetworks = /*@__PURE__*/createReactComponent('eds-social-networks');
4823
- const EdsSpinner = /*@__PURE__*/createReactComponent('eds-spinner');
4824
- const EdsSplashScreen = /*@__PURE__*/createReactComponent('eds-splash-screen');
4825
- const EdsSteps = /*@__PURE__*/createReactComponent('eds-steps');
4826
- const EdsStepsV2 = /*@__PURE__*/createReactComponent('eds-steps-v2');
4827
- const EdsSwitch = /*@__PURE__*/createReactComponent('eds-switch');
4828
- const EdsTable = /*@__PURE__*/createReactComponent('eds-table');
4829
- const EdsTabs = /*@__PURE__*/createReactComponent('eds-tabs');
4830
- const EdsTag = /*@__PURE__*/createReactComponent('eds-tag');
4831
- const EdsTimeline = /*@__PURE__*/createReactComponent('eds-timeline');
4832
- const EdsToast = /*@__PURE__*/createReactComponent('eds-toast');
4833
- const EdsTooltip = /*@__PURE__*/createReactComponent('eds-tooltip');
4834
- const EdsUser = /*@__PURE__*/createReactComponent('eds-user');
4835
-
4836
- export { EdsProgressBar as A, EdsRating as B, EdsSectionCore as C, EdsSocialNetworks as D, EdsAccordion as E, EdsSpinner as F, EdsSplashScreen as G, Host as H, EdsSteps as I, EdsStepsV2 as J, EdsSwitch as K, EdsTable as L, EdsTabs as M, EdsTag as N, EdsTimeline as O, EdsToast as P, EdsTooltip as Q, EdsUser as R, EdsAlert as a, EdsAvatar as b, createEvent as c, EdsBlockBreak as d, EdsBreadcrumb as e, EdsButton as f, getElement as g, h, EdsCardGeneric as i, EdsCardSection as j, EdsCodeBlock as k, EdsDropdown as l, EdsFeedback as m, EdsFooter as n, EdsForm as o, EdsFullscreenMenu as p, EdsHeader as q, registerInstance as r, EdsIconWrapper as s, EdsImg as t, EdsInputField as u, EdsLink as v, EdsLogo as w, EdsMatomoNotice as x, EdsModal as y, EdsPagination as z };