@trackunit/css-component-tokens 0.0.9 → 0.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.cjs +195 -1995
- package/package.json +2 -2
- package/src/component-tokens/ComponentTokenVariablesByThemeName.d.ts +40 -2
- package/src/component-tokens/ComponentTokens.d.ts +48 -2
- package/src/component-tokens/components/BaseInput.tokens.d.ts +27 -0
- package/src/component-tokens/components/Button.tokens.d.ts +2 -2
- package/src/component-tokens/components/FormGroup.tokens.d.ts +21 -0
- package/src/component-tokens/pluginUtilityFunctions.d.ts +3 -3
package/index.cjs
CHANGED
|
@@ -11,2004 +11,203 @@ var plugin__default = /*#__PURE__*/_interopDefaultLegacy(plugin);
|
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* Returns the designTokens passed, but ensures it satisfies DesignTokens type while keeping it literal
|
|
14
|
-
*/
|
|
15
|
-
const AsComponentTokenDefinition = designTokens => designTokens;
|
|
14
|
+
*/
|
|
15
|
+
const AsComponentTokenDefinition = (designTokens) => designTokens;
|
|
16
16
|
|
|
17
17
|
/*
|
|
18
18
|
* This file holds the custom design tokens for this component.
|
|
19
19
|
* These will be added to the tailwind configuration.
|
|
20
|
-
*/
|
|
21
|
-
const
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
},
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
},
|
|
33
|
-
padding: {
|
|
34
|
-
paddingLeft: "var(--spacing-2-5)",
|
|
35
|
-
paddingRight: "var(--spacing-2-5)"
|
|
36
|
-
}
|
|
37
|
-
},
|
|
38
|
-
"theme-marketing": {
|
|
39
|
-
"secondary-color": {
|
|
40
|
-
backgroundColor: "rgb(var(--color-secondary-600))",
|
|
41
|
-
color: "rgb(var(--color-secondary-50))"
|
|
42
|
-
},
|
|
43
|
-
border: {
|
|
44
|
-
borderRadius: "50px"
|
|
45
|
-
},
|
|
46
|
-
height: {
|
|
47
|
-
height: "55px"
|
|
48
|
-
},
|
|
49
|
-
padding: {
|
|
50
|
-
paddingLeft: "var(--spacing-6)",
|
|
51
|
-
paddingRight: "var(--spacing-6)"
|
|
52
|
-
}
|
|
53
|
-
}
|
|
20
|
+
*/
|
|
21
|
+
const BaseInputTokenDefinition = AsComponentTokenDefinition({
|
|
22
|
+
DEFAULT: {
|
|
23
|
+
border: { borderRadius: "var(--border-radius-DEFAULT)", borderWidth: "1px" },
|
|
24
|
+
shadow: { boxShadow: "var(--box-shadow-sm)" },
|
|
25
|
+
background: { backgroundColor: "white" },
|
|
26
|
+
},
|
|
27
|
+
"theme-marketing": {
|
|
28
|
+
border: { borderRadius: "70px", borderWidth: "0px" },
|
|
29
|
+
shadow: { boxShadow: "none" },
|
|
30
|
+
background: { backgroundColor: "rgb(var(--color-stone-50))" },
|
|
31
|
+
},
|
|
54
32
|
});
|
|
55
33
|
|
|
56
34
|
/*
|
|
57
35
|
* This file holds the custom design tokens for this component.
|
|
58
36
|
* These will be added to the tailwind configuration.
|
|
59
|
-
*/
|
|
60
|
-
const
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
gap: "var(--spacing-3)",
|
|
74
|
-
padding: "var(--spacing-3)"
|
|
75
|
-
},
|
|
76
|
-
"spacing-sm": {
|
|
77
|
-
gap: "var(--spacing-4)",
|
|
78
|
-
padding: "var(--spacing-4)"
|
|
79
|
-
},
|
|
80
|
-
"spacing-md": {
|
|
81
|
-
gap: "var(--spacing-4)",
|
|
82
|
-
padding: "var(--spacing-6)"
|
|
83
|
-
}
|
|
84
|
-
},
|
|
85
|
-
"theme-marketing": {
|
|
86
|
-
border: {
|
|
87
|
-
borderColor: "rgba(0, 0, 0, 0)",
|
|
88
|
-
borderRadius: "2rem"
|
|
89
|
-
},
|
|
90
|
-
"popover-border": {
|
|
91
|
-
borderRadius: "1rem"
|
|
92
|
-
},
|
|
93
|
-
shadow: {
|
|
94
|
-
boxShadow: "0px 20px 48px rgba(73, 55, 54, 0.1)"
|
|
95
|
-
},
|
|
96
|
-
spacing: {
|
|
97
|
-
gap: "var(--spacing-1)",
|
|
98
|
-
padding: "var(--spacing-1)"
|
|
99
|
-
},
|
|
100
|
-
"spacing-sm": {
|
|
101
|
-
gap: "var(--spacing-1)",
|
|
102
|
-
padding: "var(--spacing-1)"
|
|
103
|
-
},
|
|
104
|
-
"spacing-md": {
|
|
105
|
-
gap: "var(--spacing-1)",
|
|
106
|
-
padding: "var(--spacing-1)"
|
|
107
|
-
}
|
|
108
|
-
}
|
|
37
|
+
*/
|
|
38
|
+
const ButtonTokenDefinition = AsComponentTokenDefinition({
|
|
39
|
+
DEFAULT: {
|
|
40
|
+
"secondary-color": { backgroundColor: "rgb(var(--color-secondary-200))", color: "rgb(var(--color-secondary-600))" },
|
|
41
|
+
border: { borderRadius: "var(--border-radius-lg)" },
|
|
42
|
+
height: { height: "auto" },
|
|
43
|
+
padding: { paddingLeft: "var(--spacing-2-5)", paddingRight: "var(--spacing-2-5)" },
|
|
44
|
+
},
|
|
45
|
+
"theme-marketing": {
|
|
46
|
+
"secondary-color": { backgroundColor: "rgb(var(--color-secondary-600))", color: "rgb(var(--color-secondary-50))" },
|
|
47
|
+
border: { borderRadius: "50px" },
|
|
48
|
+
height: { height: "55px" },
|
|
49
|
+
padding: { paddingLeft: "var(--spacing-12)", paddingRight: "var(--spacing-12)" },
|
|
50
|
+
},
|
|
109
51
|
});
|
|
110
52
|
|
|
111
53
|
/*
|
|
112
54
|
* This file holds the custom design tokens for this component.
|
|
113
55
|
* These will be added to the tailwind configuration.
|
|
114
|
-
*/
|
|
115
|
-
const
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
56
|
+
*/
|
|
57
|
+
const CardTokenDefinition = AsComponentTokenDefinition({
|
|
58
|
+
DEFAULT: {
|
|
59
|
+
border: { borderColor: "rgb(var(--color-slate-200))", borderRadius: "var(--border-radius-DEFAULT)" },
|
|
60
|
+
"popover-border": { borderRadius: "var(--border-radius-DEFAULT)" },
|
|
61
|
+
shadow: { boxShadow: "var(--box-shadow-DEFAULT)" },
|
|
62
|
+
spacing: { gap: "var(--spacing-3)", padding: "var(--spacing-3)" },
|
|
63
|
+
"spacing-sm": { gap: "var(--spacing-4)", padding: "var(--spacing-4)" },
|
|
64
|
+
"spacing-md": { gap: "var(--spacing-4)", padding: "var(--spacing-6)" },
|
|
65
|
+
},
|
|
66
|
+
"theme-marketing": {
|
|
67
|
+
border: { borderColor: "rgba(0, 0, 0, 0)", borderRadius: "2rem" },
|
|
68
|
+
"popover-border": { borderRadius: "1rem" },
|
|
69
|
+
shadow: { boxShadow: "0px 20px 48px rgba(73, 55, 54, 0.1)" },
|
|
70
|
+
spacing: { gap: "var(--spacing-1)", padding: "var(--spacing-1)" },
|
|
71
|
+
"spacing-sm": { gap: "var(--spacing-1)", padding: "var(--spacing-1)" },
|
|
72
|
+
"spacing-md": { gap: "var(--spacing-1)", padding: "var(--spacing-1)" },
|
|
73
|
+
},
|
|
126
74
|
});
|
|
127
75
|
|
|
128
76
|
/*
|
|
129
77
|
* This file holds the custom design tokens for this component.
|
|
130
78
|
* These will be added to the tailwind configuration.
|
|
131
|
-
*/
|
|
132
|
-
const
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
}
|
|
142
|
-
}
|
|
79
|
+
*/
|
|
80
|
+
const FormGroupTokenDefinition = AsComponentTokenDefinition({
|
|
81
|
+
DEFAULT: {
|
|
82
|
+
gap: { display: "auto", gap: "auto" },
|
|
83
|
+
font: { fontWeight: "normal" },
|
|
84
|
+
},
|
|
85
|
+
"theme-marketing": {
|
|
86
|
+
gap: { display: "grid", gap: "var(--spacing-4)" },
|
|
87
|
+
font: { fontWeight: "700" },
|
|
88
|
+
},
|
|
143
89
|
});
|
|
144
90
|
|
|
145
91
|
/*
|
|
146
92
|
* This file holds the custom design tokens for this component.
|
|
147
93
|
* These will be added to the tailwind configuration.
|
|
148
|
-
*/
|
|
149
|
-
const
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
},
|
|
157
|
-
borderless: {
|
|
158
|
-
borderStyle: "hidden"
|
|
159
|
-
},
|
|
160
|
-
"focus-hover": {
|
|
161
|
-
borderWidth: "1px",
|
|
162
|
-
borderBottomWidth: "1px",
|
|
163
|
-
borderColor: "rgb(var(--color-gray-400))",
|
|
164
|
-
borderBottomColor: "rgb(var(--color-gray-400))",
|
|
165
|
-
backgroundColor: "rgb(var(--color-slate-50))"
|
|
166
|
-
},
|
|
167
|
-
border: {
|
|
168
|
-
borderStyle: "solid",
|
|
169
|
-
borderWidth: "1px",
|
|
170
|
-
borderBottomWidth: "1px",
|
|
171
|
-
borderColor: "rgb(var(--color-gray-200))",
|
|
172
|
-
borderBottomColor: "rgb(var(--color-gray-200))",
|
|
173
|
-
borderRadius: "0.5rem"
|
|
174
|
-
},
|
|
175
|
-
"focus-within": {
|
|
176
|
-
borderColor: "rgb(var(--color-slate-400))",
|
|
177
|
-
boxShadow: "var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000)"
|
|
178
|
-
},
|
|
179
|
-
widen: {
|
|
180
|
-
borderBottomColor: "rgb(var(--color-white-DEFAULT))"
|
|
181
|
-
},
|
|
182
|
-
"widen-focus": {
|
|
183
|
-
borderBottomColor: "rgb(var(--color-black-DEFAULT))"
|
|
184
|
-
},
|
|
185
|
-
prefix: {
|
|
186
|
-
color: "rgb(var(--color-slate-400))",
|
|
187
|
-
cursor: "default"
|
|
188
|
-
}
|
|
189
|
-
},
|
|
190
|
-
"theme-marketing": {
|
|
191
|
-
width: {
|
|
192
|
-
width: "0px"
|
|
193
|
-
},
|
|
194
|
-
background: {
|
|
195
|
-
backgroundColor: "transparent"
|
|
196
|
-
},
|
|
197
|
-
borderless: {
|
|
198
|
-
borderStyle: "hidden"
|
|
199
|
-
},
|
|
200
|
-
"focus-hover": {
|
|
201
|
-
borderWidth: "0px",
|
|
202
|
-
borderBottomWidth: "2px",
|
|
203
|
-
borderColor: "rgb(var(--color-black-DEFAULT))",
|
|
204
|
-
borderBottomColor: "rgb(var(--color-black-DEFAULT))",
|
|
205
|
-
backgroundColor: "transparent"
|
|
206
|
-
},
|
|
207
|
-
border: {
|
|
208
|
-
borderStyle: "solid",
|
|
209
|
-
borderWidth: "0px",
|
|
210
|
-
borderBottomWidth: "2px",
|
|
211
|
-
borderColor: "rgb(var(--color-white-DEFAULT))",
|
|
212
|
-
borderBottomColor: "rgb(var(--color-black-DEFAULT))",
|
|
213
|
-
borderRadius: "0px"
|
|
214
|
-
},
|
|
215
|
-
"focus-within": {
|
|
216
|
-
borderColor: "none",
|
|
217
|
-
boxShadow: "none"
|
|
218
|
-
},
|
|
219
|
-
widen: {
|
|
220
|
-
borderBottomColor: "rgb(var(--color-white-DEFAULT))"
|
|
221
|
-
},
|
|
222
|
-
"widen-focus": {
|
|
223
|
-
borderBottomColor: "rgb(var(--color-black-DEFAULT))"
|
|
224
|
-
},
|
|
225
|
-
prefix: {
|
|
226
|
-
color: "rgb(var(--color-slate-600))",
|
|
227
|
-
cursor: "pointer"
|
|
228
|
-
}
|
|
229
|
-
}
|
|
94
|
+
*/
|
|
95
|
+
const PopoverTokenDefinition = AsComponentTokenDefinition({
|
|
96
|
+
DEFAULT: {
|
|
97
|
+
border: { borderRadius: "var(--border-radius-DEFAULT)" },
|
|
98
|
+
},
|
|
99
|
+
"theme-marketing": {
|
|
100
|
+
border: { borderRadius: "1rem" },
|
|
101
|
+
},
|
|
230
102
|
});
|
|
231
103
|
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
try {
|
|
244
|
-
return !!exec();
|
|
245
|
-
} catch (error) {
|
|
246
|
-
return true;
|
|
247
|
-
}
|
|
248
|
-
};
|
|
249
|
-
|
|
250
|
-
var fails$9 = fails$a;
|
|
251
|
-
|
|
252
|
-
var functionBindNative = !fails$9(function () {
|
|
253
|
-
// eslint-disable-next-line es/no-function-prototype-bind -- safe
|
|
254
|
-
var test = (function () { /* empty */ }).bind();
|
|
255
|
-
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
256
|
-
return typeof test != 'function' || test.hasOwnProperty('prototype');
|
|
257
|
-
});
|
|
258
|
-
|
|
259
|
-
var NATIVE_BIND$2 = functionBindNative;
|
|
260
|
-
|
|
261
|
-
var FunctionPrototype$1 = Function.prototype;
|
|
262
|
-
var call$8 = FunctionPrototype$1.call;
|
|
263
|
-
var uncurryThisWithBind = NATIVE_BIND$2 && FunctionPrototype$1.bind.bind(call$8, call$8);
|
|
264
|
-
|
|
265
|
-
var functionUncurryThis = NATIVE_BIND$2 ? uncurryThisWithBind : function (fn) {
|
|
266
|
-
return function () {
|
|
267
|
-
return call$8.apply(fn, arguments);
|
|
268
|
-
};
|
|
269
|
-
};
|
|
270
|
-
|
|
271
|
-
var uncurryThis$a = functionUncurryThis;
|
|
272
|
-
|
|
273
|
-
var toString$1 = uncurryThis$a({}.toString);
|
|
274
|
-
var stringSlice = uncurryThis$a(''.slice);
|
|
275
|
-
|
|
276
|
-
var classofRaw$2 = function (it) {
|
|
277
|
-
return stringSlice(toString$1(it), 8, -1);
|
|
278
|
-
};
|
|
279
|
-
|
|
280
|
-
var uncurryThis$9 = functionUncurryThis;
|
|
281
|
-
var fails$8 = fails$a;
|
|
282
|
-
var classof$2 = classofRaw$2;
|
|
283
|
-
|
|
284
|
-
var $Object$4 = Object;
|
|
285
|
-
var split = uncurryThis$9(''.split);
|
|
286
|
-
|
|
287
|
-
// fallback for non-array-like ES3 and non-enumerable old V8 strings
|
|
288
|
-
var indexedObject = fails$8(function () {
|
|
289
|
-
// throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
|
|
290
|
-
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
291
|
-
return !$Object$4('z').propertyIsEnumerable(0);
|
|
292
|
-
}) ? function (it) {
|
|
293
|
-
return classof$2(it) == 'String' ? split(it, '') : $Object$4(it);
|
|
294
|
-
} : $Object$4;
|
|
295
|
-
|
|
296
|
-
// we can't use just `it == null` since of `document.all` special case
|
|
297
|
-
// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
|
|
298
|
-
var isNullOrUndefined$3 = function (it) {
|
|
299
|
-
return it === null || it === undefined;
|
|
300
|
-
};
|
|
301
|
-
|
|
302
|
-
var isNullOrUndefined$2 = isNullOrUndefined$3;
|
|
303
|
-
|
|
304
|
-
var $TypeError$8 = TypeError;
|
|
305
|
-
|
|
306
|
-
// `RequireObjectCoercible` abstract operation
|
|
307
|
-
// https://tc39.es/ecma262/#sec-requireobjectcoercible
|
|
308
|
-
var requireObjectCoercible$2 = function (it) {
|
|
309
|
-
if (isNullOrUndefined$2(it)) throw $TypeError$8("Can't call method on " + it);
|
|
310
|
-
return it;
|
|
311
|
-
};
|
|
312
|
-
|
|
313
|
-
// toObject with fallback for non-array-like ES3 strings
|
|
314
|
-
var IndexedObject = indexedObject;
|
|
315
|
-
var requireObjectCoercible$1 = requireObjectCoercible$2;
|
|
316
|
-
|
|
317
|
-
var toIndexedObject$5 = function (it) {
|
|
318
|
-
return IndexedObject(requireObjectCoercible$1(it));
|
|
319
|
-
};
|
|
320
|
-
|
|
321
|
-
var check = function (it) {
|
|
322
|
-
return it && it.Math == Math && it;
|
|
323
|
-
};
|
|
324
|
-
|
|
325
|
-
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
|
|
326
|
-
var global$b =
|
|
327
|
-
// eslint-disable-next-line es/no-global-this -- safe
|
|
328
|
-
check(typeof globalThis == 'object' && globalThis) ||
|
|
329
|
-
check(typeof window == 'object' && window) ||
|
|
330
|
-
// eslint-disable-next-line no-restricted-globals -- safe
|
|
331
|
-
check(typeof self == 'object' && self) ||
|
|
332
|
-
check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
|
|
333
|
-
// eslint-disable-next-line no-new-func -- fallback
|
|
334
|
-
(function () { return this; })() || Function('return this')();
|
|
335
|
-
|
|
336
|
-
var shared$3 = {exports: {}};
|
|
337
|
-
|
|
338
|
-
var global$a = global$b;
|
|
339
|
-
|
|
340
|
-
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
341
|
-
var defineProperty$4 = Object.defineProperty;
|
|
342
|
-
|
|
343
|
-
var defineGlobalProperty$3 = function (key, value) {
|
|
344
|
-
try {
|
|
345
|
-
defineProperty$4(global$a, key, { value: value, configurable: true, writable: true });
|
|
346
|
-
} catch (error) {
|
|
347
|
-
global$a[key] = value;
|
|
348
|
-
} return value;
|
|
349
|
-
};
|
|
350
|
-
|
|
351
|
-
var global$9 = global$b;
|
|
352
|
-
var defineGlobalProperty$2 = defineGlobalProperty$3;
|
|
353
|
-
|
|
354
|
-
var SHARED = '__core-js_shared__';
|
|
355
|
-
var store$3 = global$9[SHARED] || defineGlobalProperty$2(SHARED, {});
|
|
356
|
-
|
|
357
|
-
var sharedStore = store$3;
|
|
358
|
-
|
|
359
|
-
var store$2 = sharedStore;
|
|
360
|
-
|
|
361
|
-
(shared$3.exports = function (key, value) {
|
|
362
|
-
return store$2[key] || (store$2[key] = value !== undefined ? value : {});
|
|
363
|
-
})('versions', []).push({
|
|
364
|
-
version: '3.26.1',
|
|
365
|
-
mode: 'global',
|
|
366
|
-
copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
|
|
367
|
-
license: 'https://github.com/zloirock/core-js/blob/v3.26.1/LICENSE',
|
|
368
|
-
source: 'https://github.com/zloirock/core-js'
|
|
369
|
-
});
|
|
370
|
-
|
|
371
|
-
var requireObjectCoercible = requireObjectCoercible$2;
|
|
372
|
-
|
|
373
|
-
var $Object$3 = Object;
|
|
374
|
-
|
|
375
|
-
// `ToObject` abstract operation
|
|
376
|
-
// https://tc39.es/ecma262/#sec-toobject
|
|
377
|
-
var toObject$2 = function (argument) {
|
|
378
|
-
return $Object$3(requireObjectCoercible(argument));
|
|
379
|
-
};
|
|
380
|
-
|
|
381
|
-
var uncurryThis$8 = functionUncurryThis;
|
|
382
|
-
var toObject$1 = toObject$2;
|
|
383
|
-
|
|
384
|
-
var hasOwnProperty = uncurryThis$8({}.hasOwnProperty);
|
|
385
|
-
|
|
386
|
-
// `HasOwnProperty` abstract operation
|
|
387
|
-
// https://tc39.es/ecma262/#sec-hasownproperty
|
|
388
|
-
// eslint-disable-next-line es/no-object-hasown -- safe
|
|
389
|
-
var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
|
|
390
|
-
return hasOwnProperty(toObject$1(it), key);
|
|
391
|
-
};
|
|
392
|
-
|
|
393
|
-
var uncurryThis$7 = functionUncurryThis;
|
|
394
|
-
|
|
395
|
-
var id = 0;
|
|
396
|
-
var postfix = Math.random();
|
|
397
|
-
var toString = uncurryThis$7(1.0.toString);
|
|
398
|
-
|
|
399
|
-
var uid$2 = function (key) {
|
|
400
|
-
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);
|
|
401
|
-
};
|
|
402
|
-
|
|
403
|
-
var documentAll$2 = typeof document == 'object' && document.all;
|
|
404
|
-
|
|
405
|
-
// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
|
|
406
|
-
var IS_HTMLDDA = typeof documentAll$2 == 'undefined' && documentAll$2 !== undefined;
|
|
407
|
-
|
|
408
|
-
var documentAll_1 = {
|
|
409
|
-
all: documentAll$2,
|
|
410
|
-
IS_HTMLDDA: IS_HTMLDDA
|
|
411
|
-
};
|
|
412
|
-
|
|
413
|
-
var $documentAll$1 = documentAll_1;
|
|
414
|
-
|
|
415
|
-
var documentAll$1 = $documentAll$1.all;
|
|
416
|
-
|
|
417
|
-
// `IsCallable` abstract operation
|
|
418
|
-
// https://tc39.es/ecma262/#sec-iscallable
|
|
419
|
-
var isCallable$f = $documentAll$1.IS_HTMLDDA ? function (argument) {
|
|
420
|
-
return typeof argument == 'function' || argument === documentAll$1;
|
|
421
|
-
} : function (argument) {
|
|
422
|
-
return typeof argument == 'function';
|
|
423
|
-
};
|
|
424
|
-
|
|
425
|
-
var global$8 = global$b;
|
|
426
|
-
var isCallable$e = isCallable$f;
|
|
427
|
-
|
|
428
|
-
var aFunction = function (argument) {
|
|
429
|
-
return isCallable$e(argument) ? argument : undefined;
|
|
430
|
-
};
|
|
431
|
-
|
|
432
|
-
var getBuiltIn$4 = function (namespace, method) {
|
|
433
|
-
return arguments.length < 2 ? aFunction(global$8[namespace]) : global$8[namespace] && global$8[namespace][method];
|
|
434
|
-
};
|
|
435
|
-
|
|
436
|
-
var getBuiltIn$3 = getBuiltIn$4;
|
|
437
|
-
|
|
438
|
-
var engineUserAgent = getBuiltIn$3('navigator', 'userAgent') || '';
|
|
439
|
-
|
|
440
|
-
var global$7 = global$b;
|
|
441
|
-
var userAgent = engineUserAgent;
|
|
442
|
-
|
|
443
|
-
var process = global$7.process;
|
|
444
|
-
var Deno = global$7.Deno;
|
|
445
|
-
var versions = process && process.versions || Deno && Deno.version;
|
|
446
|
-
var v8 = versions && versions.v8;
|
|
447
|
-
var match, version;
|
|
448
|
-
|
|
449
|
-
if (v8) {
|
|
450
|
-
match = v8.split('.');
|
|
451
|
-
// in old Chrome, versions of V8 isn't V8 = Chrome / 10
|
|
452
|
-
// but their correct versions are not interesting for us
|
|
453
|
-
version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
|
|
454
|
-
}
|
|
455
|
-
|
|
456
|
-
// BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
|
|
457
|
-
// so check `userAgent` even if `.v8` exists, but 0
|
|
458
|
-
if (!version && userAgent) {
|
|
459
|
-
match = userAgent.match(/Edge\/(\d+)/);
|
|
460
|
-
if (!match || match[1] >= 74) {
|
|
461
|
-
match = userAgent.match(/Chrome\/(\d+)/);
|
|
462
|
-
if (match) version = +match[1];
|
|
463
|
-
}
|
|
464
|
-
}
|
|
465
|
-
|
|
466
|
-
var engineV8Version = version;
|
|
467
|
-
|
|
468
|
-
/* eslint-disable es/no-symbol -- required for testing */
|
|
469
|
-
|
|
470
|
-
var V8_VERSION = engineV8Version;
|
|
471
|
-
var fails$7 = fails$a;
|
|
472
|
-
|
|
473
|
-
// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
|
|
474
|
-
var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$7(function () {
|
|
475
|
-
var symbol = Symbol();
|
|
476
|
-
// Chrome 38 Symbol has incorrect toString conversion
|
|
477
|
-
// `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
|
|
478
|
-
return !String(symbol) || !(Object(symbol) instanceof Symbol) ||
|
|
479
|
-
// Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
|
|
480
|
-
!Symbol.sham && V8_VERSION && V8_VERSION < 41;
|
|
481
|
-
});
|
|
482
|
-
|
|
483
|
-
/* eslint-disable es/no-symbol -- required for testing */
|
|
484
|
-
|
|
485
|
-
var NATIVE_SYMBOL$1 = symbolConstructorDetection;
|
|
486
|
-
|
|
487
|
-
var useSymbolAsUid = NATIVE_SYMBOL$1
|
|
488
|
-
&& !Symbol.sham
|
|
489
|
-
&& typeof Symbol.iterator == 'symbol';
|
|
490
|
-
|
|
491
|
-
var global$6 = global$b;
|
|
492
|
-
var shared$2 = shared$3.exports;
|
|
493
|
-
var hasOwn$8 = hasOwnProperty_1;
|
|
494
|
-
var uid$1 = uid$2;
|
|
495
|
-
var NATIVE_SYMBOL = symbolConstructorDetection;
|
|
496
|
-
var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
|
|
497
|
-
|
|
498
|
-
var WellKnownSymbolsStore = shared$2('wks');
|
|
499
|
-
var Symbol$1 = global$6.Symbol;
|
|
500
|
-
var symbolFor = Symbol$1 && Symbol$1['for'];
|
|
501
|
-
var createWellKnownSymbol = USE_SYMBOL_AS_UID$1 ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
|
|
502
|
-
|
|
503
|
-
var wellKnownSymbol$a = function (name) {
|
|
504
|
-
if (!hasOwn$8(WellKnownSymbolsStore, name) || !(NATIVE_SYMBOL || typeof WellKnownSymbolsStore[name] == 'string')) {
|
|
505
|
-
var description = 'Symbol.' + name;
|
|
506
|
-
if (NATIVE_SYMBOL && hasOwn$8(Symbol$1, name)) {
|
|
507
|
-
WellKnownSymbolsStore[name] = Symbol$1[name];
|
|
508
|
-
} else if (USE_SYMBOL_AS_UID$1 && symbolFor) {
|
|
509
|
-
WellKnownSymbolsStore[name] = symbolFor(description);
|
|
510
|
-
} else {
|
|
511
|
-
WellKnownSymbolsStore[name] = createWellKnownSymbol(description);
|
|
512
|
-
}
|
|
513
|
-
} return WellKnownSymbolsStore[name];
|
|
514
|
-
};
|
|
515
|
-
|
|
516
|
-
var isCallable$d = isCallable$f;
|
|
517
|
-
var $documentAll = documentAll_1;
|
|
518
|
-
|
|
519
|
-
var documentAll = $documentAll.all;
|
|
520
|
-
|
|
521
|
-
var isObject$6 = $documentAll.IS_HTMLDDA ? function (it) {
|
|
522
|
-
return typeof it == 'object' ? it !== null : isCallable$d(it) || it === documentAll;
|
|
523
|
-
} : function (it) {
|
|
524
|
-
return typeof it == 'object' ? it !== null : isCallable$d(it);
|
|
525
|
-
};
|
|
526
|
-
|
|
527
|
-
var isObject$5 = isObject$6;
|
|
528
|
-
|
|
529
|
-
var $String$2 = String;
|
|
530
|
-
var $TypeError$7 = TypeError;
|
|
531
|
-
|
|
532
|
-
// `Assert: Type(argument) is Object`
|
|
533
|
-
var anObject$8 = function (argument) {
|
|
534
|
-
if (isObject$5(argument)) return argument;
|
|
535
|
-
throw $TypeError$7($String$2(argument) + ' is not an object');
|
|
536
|
-
};
|
|
537
|
-
|
|
538
|
-
var objectDefineProperties = {};
|
|
539
|
-
|
|
540
|
-
var fails$6 = fails$a;
|
|
541
|
-
|
|
542
|
-
// Detect IE8's incomplete defineProperty implementation
|
|
543
|
-
var descriptors = !fails$6(function () {
|
|
544
|
-
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
545
|
-
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
|
|
546
|
-
});
|
|
547
|
-
|
|
548
|
-
var DESCRIPTORS$8 = descriptors;
|
|
549
|
-
var fails$5 = fails$a;
|
|
550
|
-
|
|
551
|
-
// V8 ~ Chrome 36-
|
|
552
|
-
// https://bugs.chromium.org/p/v8/issues/detail?id=3334
|
|
553
|
-
var v8PrototypeDefineBug = DESCRIPTORS$8 && fails$5(function () {
|
|
554
|
-
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
555
|
-
return Object.defineProperty(function () { /* empty */ }, 'prototype', {
|
|
556
|
-
value: 42,
|
|
557
|
-
writable: false
|
|
558
|
-
}).prototype != 42;
|
|
559
|
-
});
|
|
560
|
-
|
|
561
|
-
var objectDefineProperty = {};
|
|
562
|
-
|
|
563
|
-
var global$5 = global$b;
|
|
564
|
-
var isObject$4 = isObject$6;
|
|
565
|
-
|
|
566
|
-
var document$1 = global$5.document;
|
|
567
|
-
// typeof document.createElement is 'object' in old IE
|
|
568
|
-
var EXISTS$1 = isObject$4(document$1) && isObject$4(document$1.createElement);
|
|
569
|
-
|
|
570
|
-
var documentCreateElement$2 = function (it) {
|
|
571
|
-
return EXISTS$1 ? document$1.createElement(it) : {};
|
|
572
|
-
};
|
|
573
|
-
|
|
574
|
-
var DESCRIPTORS$7 = descriptors;
|
|
575
|
-
var fails$4 = fails$a;
|
|
576
|
-
var createElement = documentCreateElement$2;
|
|
577
|
-
|
|
578
|
-
// Thanks to IE8 for its funny defineProperty
|
|
579
|
-
var ie8DomDefine = !DESCRIPTORS$7 && !fails$4(function () {
|
|
580
|
-
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
581
|
-
return Object.defineProperty(createElement('div'), 'a', {
|
|
582
|
-
get: function () { return 7; }
|
|
583
|
-
}).a != 7;
|
|
584
|
-
});
|
|
585
|
-
|
|
586
|
-
var NATIVE_BIND$1 = functionBindNative;
|
|
587
|
-
|
|
588
|
-
var call$7 = Function.prototype.call;
|
|
589
|
-
|
|
590
|
-
var functionCall = NATIVE_BIND$1 ? call$7.bind(call$7) : function () {
|
|
591
|
-
return call$7.apply(call$7, arguments);
|
|
592
|
-
};
|
|
593
|
-
|
|
594
|
-
var uncurryThis$6 = functionUncurryThis;
|
|
595
|
-
|
|
596
|
-
var objectIsPrototypeOf = uncurryThis$6({}.isPrototypeOf);
|
|
597
|
-
|
|
598
|
-
var getBuiltIn$2 = getBuiltIn$4;
|
|
599
|
-
var isCallable$c = isCallable$f;
|
|
600
|
-
var isPrototypeOf$1 = objectIsPrototypeOf;
|
|
601
|
-
var USE_SYMBOL_AS_UID = useSymbolAsUid;
|
|
602
|
-
|
|
603
|
-
var $Object$2 = Object;
|
|
604
|
-
|
|
605
|
-
var isSymbol$2 = USE_SYMBOL_AS_UID ? function (it) {
|
|
606
|
-
return typeof it == 'symbol';
|
|
607
|
-
} : function (it) {
|
|
608
|
-
var $Symbol = getBuiltIn$2('Symbol');
|
|
609
|
-
return isCallable$c($Symbol) && isPrototypeOf$1($Symbol.prototype, $Object$2(it));
|
|
610
|
-
};
|
|
611
|
-
|
|
612
|
-
var $String$1 = String;
|
|
613
|
-
|
|
614
|
-
var tryToString$3 = function (argument) {
|
|
615
|
-
try {
|
|
616
|
-
return $String$1(argument);
|
|
617
|
-
} catch (error) {
|
|
618
|
-
return 'Object';
|
|
619
|
-
}
|
|
620
|
-
};
|
|
621
|
-
|
|
622
|
-
var isCallable$b = isCallable$f;
|
|
623
|
-
var tryToString$2 = tryToString$3;
|
|
624
|
-
|
|
625
|
-
var $TypeError$6 = TypeError;
|
|
626
|
-
|
|
627
|
-
// `Assert: IsCallable(argument) is true`
|
|
628
|
-
var aCallable$3 = function (argument) {
|
|
629
|
-
if (isCallable$b(argument)) return argument;
|
|
630
|
-
throw $TypeError$6(tryToString$2(argument) + ' is not a function');
|
|
631
|
-
};
|
|
632
|
-
|
|
633
|
-
var aCallable$2 = aCallable$3;
|
|
634
|
-
var isNullOrUndefined$1 = isNullOrUndefined$3;
|
|
635
|
-
|
|
636
|
-
// `GetMethod` abstract operation
|
|
637
|
-
// https://tc39.es/ecma262/#sec-getmethod
|
|
638
|
-
var getMethod$3 = function (V, P) {
|
|
639
|
-
var func = V[P];
|
|
640
|
-
return isNullOrUndefined$1(func) ? undefined : aCallable$2(func);
|
|
641
|
-
};
|
|
642
|
-
|
|
643
|
-
var call$6 = functionCall;
|
|
644
|
-
var isCallable$a = isCallable$f;
|
|
645
|
-
var isObject$3 = isObject$6;
|
|
646
|
-
|
|
647
|
-
var $TypeError$5 = TypeError;
|
|
648
|
-
|
|
649
|
-
// `OrdinaryToPrimitive` abstract operation
|
|
650
|
-
// https://tc39.es/ecma262/#sec-ordinarytoprimitive
|
|
651
|
-
var ordinaryToPrimitive$1 = function (input, pref) {
|
|
652
|
-
var fn, val;
|
|
653
|
-
if (pref === 'string' && isCallable$a(fn = input.toString) && !isObject$3(val = call$6(fn, input))) return val;
|
|
654
|
-
if (isCallable$a(fn = input.valueOf) && !isObject$3(val = call$6(fn, input))) return val;
|
|
655
|
-
if (pref !== 'string' && isCallable$a(fn = input.toString) && !isObject$3(val = call$6(fn, input))) return val;
|
|
656
|
-
throw $TypeError$5("Can't convert object to primitive value");
|
|
657
|
-
};
|
|
658
|
-
|
|
659
|
-
var call$5 = functionCall;
|
|
660
|
-
var isObject$2 = isObject$6;
|
|
661
|
-
var isSymbol$1 = isSymbol$2;
|
|
662
|
-
var getMethod$2 = getMethod$3;
|
|
663
|
-
var ordinaryToPrimitive = ordinaryToPrimitive$1;
|
|
664
|
-
var wellKnownSymbol$9 = wellKnownSymbol$a;
|
|
665
|
-
|
|
666
|
-
var $TypeError$4 = TypeError;
|
|
667
|
-
var TO_PRIMITIVE = wellKnownSymbol$9('toPrimitive');
|
|
668
|
-
|
|
669
|
-
// `ToPrimitive` abstract operation
|
|
670
|
-
// https://tc39.es/ecma262/#sec-toprimitive
|
|
671
|
-
var toPrimitive$1 = function (input, pref) {
|
|
672
|
-
if (!isObject$2(input) || isSymbol$1(input)) return input;
|
|
673
|
-
var exoticToPrim = getMethod$2(input, TO_PRIMITIVE);
|
|
674
|
-
var result;
|
|
675
|
-
if (exoticToPrim) {
|
|
676
|
-
if (pref === undefined) pref = 'default';
|
|
677
|
-
result = call$5(exoticToPrim, input, pref);
|
|
678
|
-
if (!isObject$2(result) || isSymbol$1(result)) return result;
|
|
679
|
-
throw $TypeError$4("Can't convert object to primitive value");
|
|
680
|
-
}
|
|
681
|
-
if (pref === undefined) pref = 'number';
|
|
682
|
-
return ordinaryToPrimitive(input, pref);
|
|
683
|
-
};
|
|
684
|
-
|
|
685
|
-
var toPrimitive = toPrimitive$1;
|
|
686
|
-
var isSymbol = isSymbol$2;
|
|
687
|
-
|
|
688
|
-
// `ToPropertyKey` abstract operation
|
|
689
|
-
// https://tc39.es/ecma262/#sec-topropertykey
|
|
690
|
-
var toPropertyKey$3 = function (argument) {
|
|
691
|
-
var key = toPrimitive(argument, 'string');
|
|
692
|
-
return isSymbol(key) ? key : key + '';
|
|
693
|
-
};
|
|
694
|
-
|
|
695
|
-
var DESCRIPTORS$6 = descriptors;
|
|
696
|
-
var IE8_DOM_DEFINE$1 = ie8DomDefine;
|
|
697
|
-
var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
|
|
698
|
-
var anObject$7 = anObject$8;
|
|
699
|
-
var toPropertyKey$2 = toPropertyKey$3;
|
|
700
|
-
|
|
701
|
-
var $TypeError$3 = TypeError;
|
|
702
|
-
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
703
|
-
var $defineProperty = Object.defineProperty;
|
|
704
|
-
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
705
|
-
var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
|
|
706
|
-
var ENUMERABLE = 'enumerable';
|
|
707
|
-
var CONFIGURABLE$1 = 'configurable';
|
|
708
|
-
var WRITABLE = 'writable';
|
|
709
|
-
|
|
710
|
-
// `Object.defineProperty` method
|
|
711
|
-
// https://tc39.es/ecma262/#sec-object.defineproperty
|
|
712
|
-
objectDefineProperty.f = DESCRIPTORS$6 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
|
|
713
|
-
anObject$7(O);
|
|
714
|
-
P = toPropertyKey$2(P);
|
|
715
|
-
anObject$7(Attributes);
|
|
716
|
-
if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
|
|
717
|
-
var current = $getOwnPropertyDescriptor$1(O, P);
|
|
718
|
-
if (current && current[WRITABLE]) {
|
|
719
|
-
O[P] = Attributes.value;
|
|
720
|
-
Attributes = {
|
|
721
|
-
configurable: CONFIGURABLE$1 in Attributes ? Attributes[CONFIGURABLE$1] : current[CONFIGURABLE$1],
|
|
722
|
-
enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
|
|
723
|
-
writable: false
|
|
724
|
-
};
|
|
725
|
-
}
|
|
726
|
-
} return $defineProperty(O, P, Attributes);
|
|
727
|
-
} : $defineProperty : function defineProperty(O, P, Attributes) {
|
|
728
|
-
anObject$7(O);
|
|
729
|
-
P = toPropertyKey$2(P);
|
|
730
|
-
anObject$7(Attributes);
|
|
731
|
-
if (IE8_DOM_DEFINE$1) try {
|
|
732
|
-
return $defineProperty(O, P, Attributes);
|
|
733
|
-
} catch (error) { /* empty */ }
|
|
734
|
-
if ('get' in Attributes || 'set' in Attributes) throw $TypeError$3('Accessors not supported');
|
|
735
|
-
if ('value' in Attributes) O[P] = Attributes.value;
|
|
736
|
-
return O;
|
|
737
|
-
};
|
|
738
|
-
|
|
739
|
-
var ceil = Math.ceil;
|
|
740
|
-
var floor = Math.floor;
|
|
741
|
-
|
|
742
|
-
// `Math.trunc` method
|
|
743
|
-
// https://tc39.es/ecma262/#sec-math.trunc
|
|
744
|
-
// eslint-disable-next-line es/no-math-trunc -- safe
|
|
745
|
-
var mathTrunc = Math.trunc || function trunc(x) {
|
|
746
|
-
var n = +x;
|
|
747
|
-
return (n > 0 ? floor : ceil)(n);
|
|
748
|
-
};
|
|
749
|
-
|
|
750
|
-
var trunc = mathTrunc;
|
|
751
|
-
|
|
752
|
-
// `ToIntegerOrInfinity` abstract operation
|
|
753
|
-
// https://tc39.es/ecma262/#sec-tointegerorinfinity
|
|
754
|
-
var toIntegerOrInfinity$2 = function (argument) {
|
|
755
|
-
var number = +argument;
|
|
756
|
-
// eslint-disable-next-line no-self-compare -- NaN check
|
|
757
|
-
return number !== number || number === 0 ? 0 : trunc(number);
|
|
758
|
-
};
|
|
759
|
-
|
|
760
|
-
var toIntegerOrInfinity$1 = toIntegerOrInfinity$2;
|
|
761
|
-
|
|
762
|
-
var max = Math.max;
|
|
763
|
-
var min$1 = Math.min;
|
|
764
|
-
|
|
765
|
-
// Helper for a popular repeating case of the spec:
|
|
766
|
-
// Let integer be ? ToInteger(index).
|
|
767
|
-
// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
|
|
768
|
-
var toAbsoluteIndex$1 = function (index, length) {
|
|
769
|
-
var integer = toIntegerOrInfinity$1(index);
|
|
770
|
-
return integer < 0 ? max(integer + length, 0) : min$1(integer, length);
|
|
771
|
-
};
|
|
772
|
-
|
|
773
|
-
var toIntegerOrInfinity = toIntegerOrInfinity$2;
|
|
774
|
-
|
|
775
|
-
var min = Math.min;
|
|
776
|
-
|
|
777
|
-
// `ToLength` abstract operation
|
|
778
|
-
// https://tc39.es/ecma262/#sec-tolength
|
|
779
|
-
var toLength$1 = function (argument) {
|
|
780
|
-
return argument > 0 ? min(toIntegerOrInfinity(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
|
|
781
|
-
};
|
|
782
|
-
|
|
783
|
-
var toLength = toLength$1;
|
|
784
|
-
|
|
785
|
-
// `LengthOfArrayLike` abstract operation
|
|
786
|
-
// https://tc39.es/ecma262/#sec-lengthofarraylike
|
|
787
|
-
var lengthOfArrayLike$2 = function (obj) {
|
|
788
|
-
return toLength(obj.length);
|
|
789
|
-
};
|
|
790
|
-
|
|
791
|
-
var toIndexedObject$4 = toIndexedObject$5;
|
|
792
|
-
var toAbsoluteIndex = toAbsoluteIndex$1;
|
|
793
|
-
var lengthOfArrayLike$1 = lengthOfArrayLike$2;
|
|
794
|
-
|
|
795
|
-
// `Array.prototype.{ indexOf, includes }` methods implementation
|
|
796
|
-
var createMethod = function (IS_INCLUDES) {
|
|
797
|
-
return function ($this, el, fromIndex) {
|
|
798
|
-
var O = toIndexedObject$4($this);
|
|
799
|
-
var length = lengthOfArrayLike$1(O);
|
|
800
|
-
var index = toAbsoluteIndex(fromIndex, length);
|
|
801
|
-
var value;
|
|
802
|
-
// Array#includes uses SameValueZero equality algorithm
|
|
803
|
-
// eslint-disable-next-line no-self-compare -- NaN check
|
|
804
|
-
if (IS_INCLUDES && el != el) while (length > index) {
|
|
805
|
-
value = O[index++];
|
|
806
|
-
// eslint-disable-next-line no-self-compare -- NaN check
|
|
807
|
-
if (value != value) return true;
|
|
808
|
-
// Array#indexOf ignores holes, Array#includes - not
|
|
809
|
-
} else for (;length > index; index++) {
|
|
810
|
-
if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
|
|
811
|
-
} return !IS_INCLUDES && -1;
|
|
812
|
-
};
|
|
813
|
-
};
|
|
814
|
-
|
|
815
|
-
var arrayIncludes = {
|
|
816
|
-
// `Array.prototype.includes` method
|
|
817
|
-
// https://tc39.es/ecma262/#sec-array.prototype.includes
|
|
818
|
-
includes: createMethod(true),
|
|
819
|
-
// `Array.prototype.indexOf` method
|
|
820
|
-
// https://tc39.es/ecma262/#sec-array.prototype.indexof
|
|
821
|
-
indexOf: createMethod(false)
|
|
822
|
-
};
|
|
823
|
-
|
|
824
|
-
var hiddenKeys$4 = {};
|
|
825
|
-
|
|
826
|
-
var uncurryThis$5 = functionUncurryThis;
|
|
827
|
-
var hasOwn$7 = hasOwnProperty_1;
|
|
828
|
-
var toIndexedObject$3 = toIndexedObject$5;
|
|
829
|
-
var indexOf = arrayIncludes.indexOf;
|
|
830
|
-
var hiddenKeys$3 = hiddenKeys$4;
|
|
831
|
-
|
|
832
|
-
var push = uncurryThis$5([].push);
|
|
833
|
-
|
|
834
|
-
var objectKeysInternal = function (object, names) {
|
|
835
|
-
var O = toIndexedObject$3(object);
|
|
836
|
-
var i = 0;
|
|
837
|
-
var result = [];
|
|
838
|
-
var key;
|
|
839
|
-
for (key in O) !hasOwn$7(hiddenKeys$3, key) && hasOwn$7(O, key) && push(result, key);
|
|
840
|
-
// Don't enum bug & hidden keys
|
|
841
|
-
while (names.length > i) if (hasOwn$7(O, key = names[i++])) {
|
|
842
|
-
~indexOf(result, key) || push(result, key);
|
|
843
|
-
}
|
|
844
|
-
return result;
|
|
845
|
-
};
|
|
846
|
-
|
|
847
|
-
// IE8- don't enum bug keys
|
|
848
|
-
var enumBugKeys$3 = [
|
|
849
|
-
'constructor',
|
|
850
|
-
'hasOwnProperty',
|
|
851
|
-
'isPrototypeOf',
|
|
852
|
-
'propertyIsEnumerable',
|
|
853
|
-
'toLocaleString',
|
|
854
|
-
'toString',
|
|
855
|
-
'valueOf'
|
|
856
|
-
];
|
|
857
|
-
|
|
858
|
-
var internalObjectKeys$1 = objectKeysInternal;
|
|
859
|
-
var enumBugKeys$2 = enumBugKeys$3;
|
|
860
|
-
|
|
861
|
-
// `Object.keys` method
|
|
862
|
-
// https://tc39.es/ecma262/#sec-object.keys
|
|
863
|
-
// eslint-disable-next-line es/no-object-keys -- safe
|
|
864
|
-
var objectKeys$1 = Object.keys || function keys(O) {
|
|
865
|
-
return internalObjectKeys$1(O, enumBugKeys$2);
|
|
866
|
-
};
|
|
867
|
-
|
|
868
|
-
var DESCRIPTORS$5 = descriptors;
|
|
869
|
-
var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
|
|
870
|
-
var definePropertyModule$4 = objectDefineProperty;
|
|
871
|
-
var anObject$6 = anObject$8;
|
|
872
|
-
var toIndexedObject$2 = toIndexedObject$5;
|
|
873
|
-
var objectKeys = objectKeys$1;
|
|
874
|
-
|
|
875
|
-
// `Object.defineProperties` method
|
|
876
|
-
// https://tc39.es/ecma262/#sec-object.defineproperties
|
|
877
|
-
// eslint-disable-next-line es/no-object-defineproperties -- safe
|
|
878
|
-
objectDefineProperties.f = DESCRIPTORS$5 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
|
|
879
|
-
anObject$6(O);
|
|
880
|
-
var props = toIndexedObject$2(Properties);
|
|
881
|
-
var keys = objectKeys(Properties);
|
|
882
|
-
var length = keys.length;
|
|
883
|
-
var index = 0;
|
|
884
|
-
var key;
|
|
885
|
-
while (length > index) definePropertyModule$4.f(O, key = keys[index++], props[key]);
|
|
886
|
-
return O;
|
|
887
|
-
};
|
|
888
|
-
|
|
889
|
-
var getBuiltIn$1 = getBuiltIn$4;
|
|
890
|
-
|
|
891
|
-
var html$1 = getBuiltIn$1('document', 'documentElement');
|
|
892
|
-
|
|
893
|
-
var shared$1 = shared$3.exports;
|
|
894
|
-
var uid = uid$2;
|
|
895
|
-
|
|
896
|
-
var keys = shared$1('keys');
|
|
897
|
-
|
|
898
|
-
var sharedKey$3 = function (key) {
|
|
899
|
-
return keys[key] || (keys[key] = uid(key));
|
|
900
|
-
};
|
|
901
|
-
|
|
902
|
-
/* global ActiveXObject -- old IE, WSH */
|
|
903
|
-
|
|
904
|
-
var anObject$5 = anObject$8;
|
|
905
|
-
var definePropertiesModule = objectDefineProperties;
|
|
906
|
-
var enumBugKeys$1 = enumBugKeys$3;
|
|
907
|
-
var hiddenKeys$2 = hiddenKeys$4;
|
|
908
|
-
var html = html$1;
|
|
909
|
-
var documentCreateElement$1 = documentCreateElement$2;
|
|
910
|
-
var sharedKey$2 = sharedKey$3;
|
|
911
|
-
|
|
912
|
-
var GT = '>';
|
|
913
|
-
var LT = '<';
|
|
914
|
-
var PROTOTYPE = 'prototype';
|
|
915
|
-
var SCRIPT = 'script';
|
|
916
|
-
var IE_PROTO$1 = sharedKey$2('IE_PROTO');
|
|
917
|
-
|
|
918
|
-
var EmptyConstructor = function () { /* empty */ };
|
|
919
|
-
|
|
920
|
-
var scriptTag = function (content) {
|
|
921
|
-
return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
|
|
922
|
-
};
|
|
923
|
-
|
|
924
|
-
// Create object with fake `null` prototype: use ActiveX Object with cleared prototype
|
|
925
|
-
var NullProtoObjectViaActiveX = function (activeXDocument) {
|
|
926
|
-
activeXDocument.write(scriptTag(''));
|
|
927
|
-
activeXDocument.close();
|
|
928
|
-
var temp = activeXDocument.parentWindow.Object;
|
|
929
|
-
activeXDocument = null; // avoid memory leak
|
|
930
|
-
return temp;
|
|
931
|
-
};
|
|
932
|
-
|
|
933
|
-
// Create object with fake `null` prototype: use iframe Object with cleared prototype
|
|
934
|
-
var NullProtoObjectViaIFrame = function () {
|
|
935
|
-
// Thrash, waste and sodomy: IE GC bug
|
|
936
|
-
var iframe = documentCreateElement$1('iframe');
|
|
937
|
-
var JS = 'java' + SCRIPT + ':';
|
|
938
|
-
var iframeDocument;
|
|
939
|
-
iframe.style.display = 'none';
|
|
940
|
-
html.appendChild(iframe);
|
|
941
|
-
// https://github.com/zloirock/core-js/issues/475
|
|
942
|
-
iframe.src = String(JS);
|
|
943
|
-
iframeDocument = iframe.contentWindow.document;
|
|
944
|
-
iframeDocument.open();
|
|
945
|
-
iframeDocument.write(scriptTag('document.F=Object'));
|
|
946
|
-
iframeDocument.close();
|
|
947
|
-
return iframeDocument.F;
|
|
948
|
-
};
|
|
949
|
-
|
|
950
|
-
// Check for document.domain and active x support
|
|
951
|
-
// No need to use active x approach when document.domain is not set
|
|
952
|
-
// see https://github.com/es-shims/es5-shim/issues/150
|
|
953
|
-
// variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
|
|
954
|
-
// avoid IE GC bug
|
|
955
|
-
var activeXDocument;
|
|
956
|
-
var NullProtoObject = function () {
|
|
957
|
-
try {
|
|
958
|
-
activeXDocument = new ActiveXObject('htmlfile');
|
|
959
|
-
} catch (error) { /* ignore */ }
|
|
960
|
-
NullProtoObject = typeof document != 'undefined'
|
|
961
|
-
? document.domain && activeXDocument
|
|
962
|
-
? NullProtoObjectViaActiveX(activeXDocument) // old IE
|
|
963
|
-
: NullProtoObjectViaIFrame()
|
|
964
|
-
: NullProtoObjectViaActiveX(activeXDocument); // WSH
|
|
965
|
-
var length = enumBugKeys$1.length;
|
|
966
|
-
while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys$1[length]];
|
|
967
|
-
return NullProtoObject();
|
|
968
|
-
};
|
|
969
|
-
|
|
970
|
-
hiddenKeys$2[IE_PROTO$1] = true;
|
|
971
|
-
|
|
972
|
-
// `Object.create` method
|
|
973
|
-
// https://tc39.es/ecma262/#sec-object.create
|
|
974
|
-
// eslint-disable-next-line es/no-object-create -- safe
|
|
975
|
-
var objectCreate = Object.create || function create(O, Properties) {
|
|
976
|
-
var result;
|
|
977
|
-
if (O !== null) {
|
|
978
|
-
EmptyConstructor[PROTOTYPE] = anObject$5(O);
|
|
979
|
-
result = new EmptyConstructor();
|
|
980
|
-
EmptyConstructor[PROTOTYPE] = null;
|
|
981
|
-
// add "__proto__" for Object.getPrototypeOf polyfill
|
|
982
|
-
result[IE_PROTO$1] = O;
|
|
983
|
-
} else result = NullProtoObject();
|
|
984
|
-
return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
|
|
985
|
-
};
|
|
986
|
-
|
|
987
|
-
var wellKnownSymbol$8 = wellKnownSymbol$a;
|
|
988
|
-
var create$1 = objectCreate;
|
|
989
|
-
var defineProperty$3 = objectDefineProperty.f;
|
|
990
|
-
|
|
991
|
-
var UNSCOPABLES = wellKnownSymbol$8('unscopables');
|
|
992
|
-
var ArrayPrototype$1 = Array.prototype;
|
|
993
|
-
|
|
994
|
-
// Array.prototype[@@unscopables]
|
|
995
|
-
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
|
996
|
-
if (ArrayPrototype$1[UNSCOPABLES] == undefined) {
|
|
997
|
-
defineProperty$3(ArrayPrototype$1, UNSCOPABLES, {
|
|
998
|
-
configurable: true,
|
|
999
|
-
value: create$1(null)
|
|
1000
|
-
});
|
|
1001
|
-
}
|
|
1002
|
-
|
|
1003
|
-
// add a key to Array.prototype[@@unscopables]
|
|
1004
|
-
var addToUnscopables$1 = function (key) {
|
|
1005
|
-
ArrayPrototype$1[UNSCOPABLES][key] = true;
|
|
1006
|
-
};
|
|
1007
|
-
|
|
1008
|
-
var iterators = {};
|
|
1009
|
-
|
|
1010
|
-
var global$4 = global$b;
|
|
1011
|
-
var isCallable$9 = isCallable$f;
|
|
1012
|
-
|
|
1013
|
-
var WeakMap$1 = global$4.WeakMap;
|
|
1014
|
-
|
|
1015
|
-
var weakMapBasicDetection = isCallable$9(WeakMap$1) && /native code/.test(String(WeakMap$1));
|
|
1016
|
-
|
|
1017
|
-
var createPropertyDescriptor$4 = function (bitmap, value) {
|
|
1018
|
-
return {
|
|
1019
|
-
enumerable: !(bitmap & 1),
|
|
1020
|
-
configurable: !(bitmap & 2),
|
|
1021
|
-
writable: !(bitmap & 4),
|
|
1022
|
-
value: value
|
|
1023
|
-
};
|
|
1024
|
-
};
|
|
1025
|
-
|
|
1026
|
-
var DESCRIPTORS$4 = descriptors;
|
|
1027
|
-
var definePropertyModule$3 = objectDefineProperty;
|
|
1028
|
-
var createPropertyDescriptor$3 = createPropertyDescriptor$4;
|
|
1029
|
-
|
|
1030
|
-
var createNonEnumerableProperty$4 = DESCRIPTORS$4 ? function (object, key, value) {
|
|
1031
|
-
return definePropertyModule$3.f(object, key, createPropertyDescriptor$3(1, value));
|
|
1032
|
-
} : function (object, key, value) {
|
|
1033
|
-
object[key] = value;
|
|
1034
|
-
return object;
|
|
1035
|
-
};
|
|
1036
|
-
|
|
1037
|
-
var NATIVE_WEAK_MAP = weakMapBasicDetection;
|
|
1038
|
-
var global$3 = global$b;
|
|
1039
|
-
var isObject$1 = isObject$6;
|
|
1040
|
-
var createNonEnumerableProperty$3 = createNonEnumerableProperty$4;
|
|
1041
|
-
var hasOwn$6 = hasOwnProperty_1;
|
|
1042
|
-
var shared = sharedStore;
|
|
1043
|
-
var sharedKey$1 = sharedKey$3;
|
|
1044
|
-
var hiddenKeys$1 = hiddenKeys$4;
|
|
1045
|
-
|
|
1046
|
-
var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
|
|
1047
|
-
var TypeError$1 = global$3.TypeError;
|
|
1048
|
-
var WeakMap = global$3.WeakMap;
|
|
1049
|
-
var set, get, has;
|
|
1050
|
-
|
|
1051
|
-
var enforce = function (it) {
|
|
1052
|
-
return has(it) ? get(it) : set(it, {});
|
|
1053
|
-
};
|
|
1054
|
-
|
|
1055
|
-
var getterFor = function (TYPE) {
|
|
1056
|
-
return function (it) {
|
|
1057
|
-
var state;
|
|
1058
|
-
if (!isObject$1(it) || (state = get(it)).type !== TYPE) {
|
|
1059
|
-
throw TypeError$1('Incompatible receiver, ' + TYPE + ' required');
|
|
1060
|
-
} return state;
|
|
1061
|
-
};
|
|
1062
|
-
};
|
|
1063
|
-
|
|
1064
|
-
if (NATIVE_WEAK_MAP || shared.state) {
|
|
1065
|
-
var store$1 = shared.state || (shared.state = new WeakMap());
|
|
1066
|
-
/* eslint-disable no-self-assign -- prototype methods protection */
|
|
1067
|
-
store$1.get = store$1.get;
|
|
1068
|
-
store$1.has = store$1.has;
|
|
1069
|
-
store$1.set = store$1.set;
|
|
1070
|
-
/* eslint-enable no-self-assign -- prototype methods protection */
|
|
1071
|
-
set = function (it, metadata) {
|
|
1072
|
-
if (store$1.has(it)) throw TypeError$1(OBJECT_ALREADY_INITIALIZED);
|
|
1073
|
-
metadata.facade = it;
|
|
1074
|
-
store$1.set(it, metadata);
|
|
1075
|
-
return metadata;
|
|
1076
|
-
};
|
|
1077
|
-
get = function (it) {
|
|
1078
|
-
return store$1.get(it) || {};
|
|
1079
|
-
};
|
|
1080
|
-
has = function (it) {
|
|
1081
|
-
return store$1.has(it);
|
|
1082
|
-
};
|
|
1083
|
-
} else {
|
|
1084
|
-
var STATE = sharedKey$1('state');
|
|
1085
|
-
hiddenKeys$1[STATE] = true;
|
|
1086
|
-
set = function (it, metadata) {
|
|
1087
|
-
if (hasOwn$6(it, STATE)) throw TypeError$1(OBJECT_ALREADY_INITIALIZED);
|
|
1088
|
-
metadata.facade = it;
|
|
1089
|
-
createNonEnumerableProperty$3(it, STATE, metadata);
|
|
1090
|
-
return metadata;
|
|
1091
|
-
};
|
|
1092
|
-
get = function (it) {
|
|
1093
|
-
return hasOwn$6(it, STATE) ? it[STATE] : {};
|
|
1094
|
-
};
|
|
1095
|
-
has = function (it) {
|
|
1096
|
-
return hasOwn$6(it, STATE);
|
|
1097
|
-
};
|
|
1098
|
-
}
|
|
1099
|
-
|
|
1100
|
-
var internalState = {
|
|
1101
|
-
set: set,
|
|
1102
|
-
get: get,
|
|
1103
|
-
has: has,
|
|
1104
|
-
enforce: enforce,
|
|
1105
|
-
getterFor: getterFor
|
|
1106
|
-
};
|
|
1107
|
-
|
|
1108
|
-
var objectGetOwnPropertyDescriptor = {};
|
|
1109
|
-
|
|
1110
|
-
var objectPropertyIsEnumerable = {};
|
|
1111
|
-
|
|
1112
|
-
var $propertyIsEnumerable = {}.propertyIsEnumerable;
|
|
1113
|
-
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
1114
|
-
var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
|
|
1115
|
-
|
|
1116
|
-
// Nashorn ~ JDK8 bug
|
|
1117
|
-
var NASHORN_BUG = getOwnPropertyDescriptor$1 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
|
|
1118
|
-
|
|
1119
|
-
// `Object.prototype.propertyIsEnumerable` method implementation
|
|
1120
|
-
// https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
|
|
1121
|
-
objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
|
|
1122
|
-
var descriptor = getOwnPropertyDescriptor$1(this, V);
|
|
1123
|
-
return !!descriptor && descriptor.enumerable;
|
|
1124
|
-
} : $propertyIsEnumerable;
|
|
1125
|
-
|
|
1126
|
-
var DESCRIPTORS$3 = descriptors;
|
|
1127
|
-
var call$4 = functionCall;
|
|
1128
|
-
var propertyIsEnumerableModule = objectPropertyIsEnumerable;
|
|
1129
|
-
var createPropertyDescriptor$2 = createPropertyDescriptor$4;
|
|
1130
|
-
var toIndexedObject$1 = toIndexedObject$5;
|
|
1131
|
-
var toPropertyKey$1 = toPropertyKey$3;
|
|
1132
|
-
var hasOwn$5 = hasOwnProperty_1;
|
|
1133
|
-
var IE8_DOM_DEFINE = ie8DomDefine;
|
|
1134
|
-
|
|
1135
|
-
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
1136
|
-
var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
1137
|
-
|
|
1138
|
-
// `Object.getOwnPropertyDescriptor` method
|
|
1139
|
-
// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
|
|
1140
|
-
objectGetOwnPropertyDescriptor.f = DESCRIPTORS$3 ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
|
|
1141
|
-
O = toIndexedObject$1(O);
|
|
1142
|
-
P = toPropertyKey$1(P);
|
|
1143
|
-
if (IE8_DOM_DEFINE) try {
|
|
1144
|
-
return $getOwnPropertyDescriptor(O, P);
|
|
1145
|
-
} catch (error) { /* empty */ }
|
|
1146
|
-
if (hasOwn$5(O, P)) return createPropertyDescriptor$2(!call$4(propertyIsEnumerableModule.f, O, P), O[P]);
|
|
1147
|
-
};
|
|
1148
|
-
|
|
1149
|
-
var makeBuiltIn$2 = {exports: {}};
|
|
1150
|
-
|
|
1151
|
-
var DESCRIPTORS$2 = descriptors;
|
|
1152
|
-
var hasOwn$4 = hasOwnProperty_1;
|
|
1153
|
-
|
|
1154
|
-
var FunctionPrototype = Function.prototype;
|
|
1155
|
-
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
1156
|
-
var getDescriptor = DESCRIPTORS$2 && Object.getOwnPropertyDescriptor;
|
|
1157
|
-
|
|
1158
|
-
var EXISTS = hasOwn$4(FunctionPrototype, 'name');
|
|
1159
|
-
// additional protection from minified / mangled / dropped function names
|
|
1160
|
-
var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
|
|
1161
|
-
var CONFIGURABLE = EXISTS && (!DESCRIPTORS$2 || (DESCRIPTORS$2 && getDescriptor(FunctionPrototype, 'name').configurable));
|
|
1162
|
-
|
|
1163
|
-
var functionName = {
|
|
1164
|
-
EXISTS: EXISTS,
|
|
1165
|
-
PROPER: PROPER,
|
|
1166
|
-
CONFIGURABLE: CONFIGURABLE
|
|
1167
|
-
};
|
|
1168
|
-
|
|
1169
|
-
var uncurryThis$4 = functionUncurryThis;
|
|
1170
|
-
var isCallable$8 = isCallable$f;
|
|
1171
|
-
var store = sharedStore;
|
|
1172
|
-
|
|
1173
|
-
var functionToString = uncurryThis$4(Function.toString);
|
|
1174
|
-
|
|
1175
|
-
// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
|
|
1176
|
-
if (!isCallable$8(store.inspectSource)) {
|
|
1177
|
-
store.inspectSource = function (it) {
|
|
1178
|
-
return functionToString(it);
|
|
1179
|
-
};
|
|
1180
|
-
}
|
|
1181
|
-
|
|
1182
|
-
var inspectSource$1 = store.inspectSource;
|
|
1183
|
-
|
|
1184
|
-
var fails$3 = fails$a;
|
|
1185
|
-
var isCallable$7 = isCallable$f;
|
|
1186
|
-
var hasOwn$3 = hasOwnProperty_1;
|
|
1187
|
-
var DESCRIPTORS$1 = descriptors;
|
|
1188
|
-
var CONFIGURABLE_FUNCTION_NAME$1 = functionName.CONFIGURABLE;
|
|
1189
|
-
var inspectSource = inspectSource$1;
|
|
1190
|
-
var InternalStateModule$1 = internalState;
|
|
1191
|
-
|
|
1192
|
-
var enforceInternalState = InternalStateModule$1.enforce;
|
|
1193
|
-
var getInternalState$1 = InternalStateModule$1.get;
|
|
1194
|
-
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
1195
|
-
var defineProperty$2 = Object.defineProperty;
|
|
1196
|
-
|
|
1197
|
-
var CONFIGURABLE_LENGTH = DESCRIPTORS$1 && !fails$3(function () {
|
|
1198
|
-
return defineProperty$2(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
|
|
1199
|
-
});
|
|
1200
|
-
|
|
1201
|
-
var TEMPLATE = String(String).split('String');
|
|
1202
|
-
|
|
1203
|
-
var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) {
|
|
1204
|
-
if (String(name).slice(0, 7) === 'Symbol(') {
|
|
1205
|
-
name = '[' + String(name).replace(/^Symbol\(([^)]*)\)/, '$1') + ']';
|
|
1206
|
-
}
|
|
1207
|
-
if (options && options.getter) name = 'get ' + name;
|
|
1208
|
-
if (options && options.setter) name = 'set ' + name;
|
|
1209
|
-
if (!hasOwn$3(value, 'name') || (CONFIGURABLE_FUNCTION_NAME$1 && value.name !== name)) {
|
|
1210
|
-
if (DESCRIPTORS$1) defineProperty$2(value, 'name', { value: name, configurable: true });
|
|
1211
|
-
else value.name = name;
|
|
1212
|
-
}
|
|
1213
|
-
if (CONFIGURABLE_LENGTH && options && hasOwn$3(options, 'arity') && value.length !== options.arity) {
|
|
1214
|
-
defineProperty$2(value, 'length', { value: options.arity });
|
|
1215
|
-
}
|
|
1216
|
-
try {
|
|
1217
|
-
if (options && hasOwn$3(options, 'constructor') && options.constructor) {
|
|
1218
|
-
if (DESCRIPTORS$1) defineProperty$2(value, 'prototype', { writable: false });
|
|
1219
|
-
// in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
|
|
1220
|
-
} else if (value.prototype) value.prototype = undefined;
|
|
1221
|
-
} catch (error) { /* empty */ }
|
|
1222
|
-
var state = enforceInternalState(value);
|
|
1223
|
-
if (!hasOwn$3(state, 'source')) {
|
|
1224
|
-
state.source = TEMPLATE.join(typeof name == 'string' ? name : '');
|
|
1225
|
-
} return value;
|
|
1226
|
-
};
|
|
1227
|
-
|
|
1228
|
-
// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
|
|
1229
|
-
// eslint-disable-next-line no-extend-native -- required
|
|
1230
|
-
Function.prototype.toString = makeBuiltIn$1(function toString() {
|
|
1231
|
-
return isCallable$7(this) && getInternalState$1(this).source || inspectSource(this);
|
|
1232
|
-
}, 'toString');
|
|
1233
|
-
|
|
1234
|
-
var isCallable$6 = isCallable$f;
|
|
1235
|
-
var definePropertyModule$2 = objectDefineProperty;
|
|
1236
|
-
var makeBuiltIn = makeBuiltIn$2.exports;
|
|
1237
|
-
var defineGlobalProperty$1 = defineGlobalProperty$3;
|
|
1238
|
-
|
|
1239
|
-
var defineBuiltIn$3 = function (O, key, value, options) {
|
|
1240
|
-
if (!options) options = {};
|
|
1241
|
-
var simple = options.enumerable;
|
|
1242
|
-
var name = options.name !== undefined ? options.name : key;
|
|
1243
|
-
if (isCallable$6(value)) makeBuiltIn(value, name, options);
|
|
1244
|
-
if (options.global) {
|
|
1245
|
-
if (simple) O[key] = value;
|
|
1246
|
-
else defineGlobalProperty$1(key, value);
|
|
1247
|
-
} else {
|
|
1248
|
-
try {
|
|
1249
|
-
if (!options.unsafe) delete O[key];
|
|
1250
|
-
else if (O[key]) simple = true;
|
|
1251
|
-
} catch (error) { /* empty */ }
|
|
1252
|
-
if (simple) O[key] = value;
|
|
1253
|
-
else definePropertyModule$2.f(O, key, {
|
|
1254
|
-
value: value,
|
|
1255
|
-
enumerable: false,
|
|
1256
|
-
configurable: !options.nonConfigurable,
|
|
1257
|
-
writable: !options.nonWritable
|
|
1258
|
-
});
|
|
1259
|
-
} return O;
|
|
1260
|
-
};
|
|
1261
|
-
|
|
1262
|
-
var objectGetOwnPropertyNames = {};
|
|
1263
|
-
|
|
1264
|
-
var internalObjectKeys = objectKeysInternal;
|
|
1265
|
-
var enumBugKeys = enumBugKeys$3;
|
|
1266
|
-
|
|
1267
|
-
var hiddenKeys = enumBugKeys.concat('length', 'prototype');
|
|
1268
|
-
|
|
1269
|
-
// `Object.getOwnPropertyNames` method
|
|
1270
|
-
// https://tc39.es/ecma262/#sec-object.getownpropertynames
|
|
1271
|
-
// eslint-disable-next-line es/no-object-getownpropertynames -- safe
|
|
1272
|
-
objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
|
|
1273
|
-
return internalObjectKeys(O, hiddenKeys);
|
|
1274
|
-
};
|
|
1275
|
-
|
|
1276
|
-
var objectGetOwnPropertySymbols = {};
|
|
1277
|
-
|
|
1278
|
-
// eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
|
|
1279
|
-
objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
|
|
1280
|
-
|
|
1281
|
-
var getBuiltIn = getBuiltIn$4;
|
|
1282
|
-
var uncurryThis$3 = functionUncurryThis;
|
|
1283
|
-
var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
|
|
1284
|
-
var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
|
|
1285
|
-
var anObject$4 = anObject$8;
|
|
1286
|
-
|
|
1287
|
-
var concat = uncurryThis$3([].concat);
|
|
1288
|
-
|
|
1289
|
-
// all object keys, includes non-enumerable and symbols
|
|
1290
|
-
var ownKeys$1 = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
|
|
1291
|
-
var keys = getOwnPropertyNamesModule.f(anObject$4(it));
|
|
1292
|
-
var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
|
|
1293
|
-
return getOwnPropertySymbols ? concat(keys, getOwnPropertySymbols(it)) : keys;
|
|
1294
|
-
};
|
|
1295
|
-
|
|
1296
|
-
var hasOwn$2 = hasOwnProperty_1;
|
|
1297
|
-
var ownKeys = ownKeys$1;
|
|
1298
|
-
var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
|
|
1299
|
-
var definePropertyModule$1 = objectDefineProperty;
|
|
1300
|
-
|
|
1301
|
-
var copyConstructorProperties$1 = function (target, source, exceptions) {
|
|
1302
|
-
var keys = ownKeys(source);
|
|
1303
|
-
var defineProperty = definePropertyModule$1.f;
|
|
1304
|
-
var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
|
|
1305
|
-
for (var i = 0; i < keys.length; i++) {
|
|
1306
|
-
var key = keys[i];
|
|
1307
|
-
if (!hasOwn$2(target, key) && !(exceptions && hasOwn$2(exceptions, key))) {
|
|
1308
|
-
defineProperty(target, key, getOwnPropertyDescriptor(source, key));
|
|
1309
|
-
}
|
|
1310
|
-
}
|
|
1311
|
-
};
|
|
1312
|
-
|
|
1313
|
-
var fails$2 = fails$a;
|
|
1314
|
-
var isCallable$5 = isCallable$f;
|
|
1315
|
-
|
|
1316
|
-
var replacement = /#|\.prototype\./;
|
|
1317
|
-
|
|
1318
|
-
var isForced$1 = function (feature, detection) {
|
|
1319
|
-
var value = data[normalize(feature)];
|
|
1320
|
-
return value == POLYFILL ? true
|
|
1321
|
-
: value == NATIVE ? false
|
|
1322
|
-
: isCallable$5(detection) ? fails$2(detection)
|
|
1323
|
-
: !!detection;
|
|
1324
|
-
};
|
|
1325
|
-
|
|
1326
|
-
var normalize = isForced$1.normalize = function (string) {
|
|
1327
|
-
return String(string).replace(replacement, '.').toLowerCase();
|
|
1328
|
-
};
|
|
1329
|
-
|
|
1330
|
-
var data = isForced$1.data = {};
|
|
1331
|
-
var NATIVE = isForced$1.NATIVE = 'N';
|
|
1332
|
-
var POLYFILL = isForced$1.POLYFILL = 'P';
|
|
1333
|
-
|
|
1334
|
-
var isForced_1 = isForced$1;
|
|
1335
|
-
|
|
1336
|
-
var global$2 = global$b;
|
|
1337
|
-
var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
|
|
1338
|
-
var createNonEnumerableProperty$2 = createNonEnumerableProperty$4;
|
|
1339
|
-
var defineBuiltIn$2 = defineBuiltIn$3;
|
|
1340
|
-
var defineGlobalProperty = defineGlobalProperty$3;
|
|
1341
|
-
var copyConstructorProperties = copyConstructorProperties$1;
|
|
1342
|
-
var isForced = isForced_1;
|
|
1343
|
-
|
|
1344
|
-
/*
|
|
1345
|
-
options.target - name of the target object
|
|
1346
|
-
options.global - target is the global object
|
|
1347
|
-
options.stat - export as static methods of target
|
|
1348
|
-
options.proto - export as prototype methods of target
|
|
1349
|
-
options.real - real prototype method for the `pure` version
|
|
1350
|
-
options.forced - export even if the native feature is available
|
|
1351
|
-
options.bind - bind methods to the target, required for the `pure` version
|
|
1352
|
-
options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
|
|
1353
|
-
options.unsafe - use the simple assignment of property instead of delete + defineProperty
|
|
1354
|
-
options.sham - add a flag to not completely full polyfills
|
|
1355
|
-
options.enumerable - export as enumerable property
|
|
1356
|
-
options.dontCallGetSet - prevent calling a getter on target
|
|
1357
|
-
options.name - the .name of the function if it does not match the key
|
|
1358
|
-
*/
|
|
1359
|
-
var _export = function (options, source) {
|
|
1360
|
-
var TARGET = options.target;
|
|
1361
|
-
var GLOBAL = options.global;
|
|
1362
|
-
var STATIC = options.stat;
|
|
1363
|
-
var FORCED, target, key, targetProperty, sourceProperty, descriptor;
|
|
1364
|
-
if (GLOBAL) {
|
|
1365
|
-
target = global$2;
|
|
1366
|
-
} else if (STATIC) {
|
|
1367
|
-
target = global$2[TARGET] || defineGlobalProperty(TARGET, {});
|
|
1368
|
-
} else {
|
|
1369
|
-
target = (global$2[TARGET] || {}).prototype;
|
|
1370
|
-
}
|
|
1371
|
-
if (target) for (key in source) {
|
|
1372
|
-
sourceProperty = source[key];
|
|
1373
|
-
if (options.dontCallGetSet) {
|
|
1374
|
-
descriptor = getOwnPropertyDescriptor(target, key);
|
|
1375
|
-
targetProperty = descriptor && descriptor.value;
|
|
1376
|
-
} else targetProperty = target[key];
|
|
1377
|
-
FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
|
|
1378
|
-
// contained in target
|
|
1379
|
-
if (!FORCED && targetProperty !== undefined) {
|
|
1380
|
-
if (typeof sourceProperty == typeof targetProperty) continue;
|
|
1381
|
-
copyConstructorProperties(sourceProperty, targetProperty);
|
|
1382
|
-
}
|
|
1383
|
-
// add a flag to not completely full polyfills
|
|
1384
|
-
if (options.sham || (targetProperty && targetProperty.sham)) {
|
|
1385
|
-
createNonEnumerableProperty$2(sourceProperty, 'sham', true);
|
|
1386
|
-
}
|
|
1387
|
-
defineBuiltIn$2(target, key, sourceProperty, options);
|
|
1388
|
-
}
|
|
1389
|
-
};
|
|
1390
|
-
|
|
1391
|
-
var fails$1 = fails$a;
|
|
1392
|
-
|
|
1393
|
-
var correctPrototypeGetter = !fails$1(function () {
|
|
1394
|
-
function F() { /* empty */ }
|
|
1395
|
-
F.prototype.constructor = null;
|
|
1396
|
-
// eslint-disable-next-line es/no-object-getprototypeof -- required for testing
|
|
1397
|
-
return Object.getPrototypeOf(new F()) !== F.prototype;
|
|
1398
|
-
});
|
|
1399
|
-
|
|
1400
|
-
var hasOwn$1 = hasOwnProperty_1;
|
|
1401
|
-
var isCallable$4 = isCallable$f;
|
|
1402
|
-
var toObject = toObject$2;
|
|
1403
|
-
var sharedKey = sharedKey$3;
|
|
1404
|
-
var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;
|
|
1405
|
-
|
|
1406
|
-
var IE_PROTO = sharedKey('IE_PROTO');
|
|
1407
|
-
var $Object$1 = Object;
|
|
1408
|
-
var ObjectPrototype = $Object$1.prototype;
|
|
1409
|
-
|
|
1410
|
-
// `Object.getPrototypeOf` method
|
|
1411
|
-
// https://tc39.es/ecma262/#sec-object.getprototypeof
|
|
1412
|
-
// eslint-disable-next-line es/no-object-getprototypeof -- safe
|
|
1413
|
-
var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object$1.getPrototypeOf : function (O) {
|
|
1414
|
-
var object = toObject(O);
|
|
1415
|
-
if (hasOwn$1(object, IE_PROTO)) return object[IE_PROTO];
|
|
1416
|
-
var constructor = object.constructor;
|
|
1417
|
-
if (isCallable$4(constructor) && object instanceof constructor) {
|
|
1418
|
-
return constructor.prototype;
|
|
1419
|
-
} return object instanceof $Object$1 ? ObjectPrototype : null;
|
|
1420
|
-
};
|
|
1421
|
-
|
|
1422
|
-
var fails = fails$a;
|
|
1423
|
-
var isCallable$3 = isCallable$f;
|
|
1424
|
-
var isObject = isObject$6;
|
|
1425
|
-
var getPrototypeOf$1 = objectGetPrototypeOf;
|
|
1426
|
-
var defineBuiltIn$1 = defineBuiltIn$3;
|
|
1427
|
-
var wellKnownSymbol$7 = wellKnownSymbol$a;
|
|
1428
|
-
|
|
1429
|
-
var ITERATOR$4 = wellKnownSymbol$7('iterator');
|
|
1430
|
-
var BUGGY_SAFARI_ITERATORS$1 = false;
|
|
1431
|
-
|
|
1432
|
-
// `%IteratorPrototype%` object
|
|
1433
|
-
// https://tc39.es/ecma262/#sec-%iteratorprototype%-object
|
|
1434
|
-
var IteratorPrototype$2, PrototypeOfArrayIteratorPrototype, arrayIterator;
|
|
1435
|
-
|
|
1436
|
-
/* eslint-disable es/no-array-prototype-keys -- safe */
|
|
1437
|
-
if ([].keys) {
|
|
1438
|
-
arrayIterator = [].keys();
|
|
1439
|
-
// Safari 8 has buggy iterators w/o `next`
|
|
1440
|
-
if (!('next' in arrayIterator)) BUGGY_SAFARI_ITERATORS$1 = true;
|
|
1441
|
-
else {
|
|
1442
|
-
PrototypeOfArrayIteratorPrototype = getPrototypeOf$1(getPrototypeOf$1(arrayIterator));
|
|
1443
|
-
if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype$2 = PrototypeOfArrayIteratorPrototype;
|
|
1444
|
-
}
|
|
1445
|
-
}
|
|
1446
|
-
|
|
1447
|
-
var NEW_ITERATOR_PROTOTYPE = !isObject(IteratorPrototype$2) || fails(function () {
|
|
1448
|
-
var test = {};
|
|
1449
|
-
// FF44- legacy iterators case
|
|
1450
|
-
return IteratorPrototype$2[ITERATOR$4].call(test) !== test;
|
|
104
|
+
/*
|
|
105
|
+
* This file holds the custom design tokens for this component.
|
|
106
|
+
* These will be added to the tailwind configuration.
|
|
107
|
+
*/
|
|
108
|
+
const PopoverListItemTokenDefinition = AsComponentTokenDefinition({
|
|
109
|
+
DEFAULT: {
|
|
110
|
+
border: { borderRadius: "var(--border-radius-DEFAULT)" },
|
|
111
|
+
},
|
|
112
|
+
"theme-marketing": {
|
|
113
|
+
border: { borderRadius: "1rem" },
|
|
114
|
+
},
|
|
1451
115
|
});
|
|
1452
116
|
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
}
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
var
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
var
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
setter(test, []);
|
|
1525
|
-
CORRECT_SETTER = test instanceof Array;
|
|
1526
|
-
} catch (error) { /* empty */ }
|
|
1527
|
-
return function setPrototypeOf(O, proto) {
|
|
1528
|
-
anObject$3(O);
|
|
1529
|
-
aPossiblePrototype(proto);
|
|
1530
|
-
if (CORRECT_SETTER) setter(O, proto);
|
|
1531
|
-
else O.__proto__ = proto;
|
|
1532
|
-
return O;
|
|
1533
|
-
};
|
|
1534
|
-
}() : undefined);
|
|
1535
|
-
|
|
1536
|
-
var $$1 = _export;
|
|
1537
|
-
var call$3 = functionCall;
|
|
1538
|
-
var FunctionName = functionName;
|
|
1539
|
-
var isCallable$1 = isCallable$f;
|
|
1540
|
-
var createIteratorConstructor = iteratorCreateConstructor;
|
|
1541
|
-
var getPrototypeOf = objectGetPrototypeOf;
|
|
1542
|
-
var setPrototypeOf = objectSetPrototypeOf;
|
|
1543
|
-
var setToStringTag = setToStringTag$2;
|
|
1544
|
-
var createNonEnumerableProperty$1 = createNonEnumerableProperty$4;
|
|
1545
|
-
var defineBuiltIn = defineBuiltIn$3;
|
|
1546
|
-
var wellKnownSymbol$5 = wellKnownSymbol$a;
|
|
1547
|
-
var Iterators$3 = iterators;
|
|
1548
|
-
var IteratorsCore = iteratorsCore;
|
|
1549
|
-
|
|
1550
|
-
var PROPER_FUNCTION_NAME = FunctionName.PROPER;
|
|
1551
|
-
var CONFIGURABLE_FUNCTION_NAME = FunctionName.CONFIGURABLE;
|
|
1552
|
-
var IteratorPrototype = IteratorsCore.IteratorPrototype;
|
|
1553
|
-
var BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS;
|
|
1554
|
-
var ITERATOR$3 = wellKnownSymbol$5('iterator');
|
|
1555
|
-
var KEYS = 'keys';
|
|
1556
|
-
var VALUES = 'values';
|
|
1557
|
-
var ENTRIES = 'entries';
|
|
1558
|
-
|
|
1559
|
-
var returnThis = function () { return this; };
|
|
1560
|
-
|
|
1561
|
-
var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) {
|
|
1562
|
-
createIteratorConstructor(IteratorConstructor, NAME, next);
|
|
1563
|
-
|
|
1564
|
-
var getIterationMethod = function (KIND) {
|
|
1565
|
-
if (KIND === DEFAULT && defaultIterator) return defaultIterator;
|
|
1566
|
-
if (!BUGGY_SAFARI_ITERATORS && KIND in IterablePrototype) return IterablePrototype[KIND];
|
|
1567
|
-
switch (KIND) {
|
|
1568
|
-
case KEYS: return function keys() { return new IteratorConstructor(this, KIND); };
|
|
1569
|
-
case VALUES: return function values() { return new IteratorConstructor(this, KIND); };
|
|
1570
|
-
case ENTRIES: return function entries() { return new IteratorConstructor(this, KIND); };
|
|
1571
|
-
} return function () { return new IteratorConstructor(this); };
|
|
1572
|
-
};
|
|
1573
|
-
|
|
1574
|
-
var TO_STRING_TAG = NAME + ' Iterator';
|
|
1575
|
-
var INCORRECT_VALUES_NAME = false;
|
|
1576
|
-
var IterablePrototype = Iterable.prototype;
|
|
1577
|
-
var nativeIterator = IterablePrototype[ITERATOR$3]
|
|
1578
|
-
|| IterablePrototype['@@iterator']
|
|
1579
|
-
|| DEFAULT && IterablePrototype[DEFAULT];
|
|
1580
|
-
var defaultIterator = !BUGGY_SAFARI_ITERATORS && nativeIterator || getIterationMethod(DEFAULT);
|
|
1581
|
-
var anyNativeIterator = NAME == 'Array' ? IterablePrototype.entries || nativeIterator : nativeIterator;
|
|
1582
|
-
var CurrentIteratorPrototype, methods, KEY;
|
|
1583
|
-
|
|
1584
|
-
// fix native
|
|
1585
|
-
if (anyNativeIterator) {
|
|
1586
|
-
CurrentIteratorPrototype = getPrototypeOf(anyNativeIterator.call(new Iterable()));
|
|
1587
|
-
if (CurrentIteratorPrototype !== Object.prototype && CurrentIteratorPrototype.next) {
|
|
1588
|
-
if (getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) {
|
|
1589
|
-
if (setPrototypeOf) {
|
|
1590
|
-
setPrototypeOf(CurrentIteratorPrototype, IteratorPrototype);
|
|
1591
|
-
} else if (!isCallable$1(CurrentIteratorPrototype[ITERATOR$3])) {
|
|
1592
|
-
defineBuiltIn(CurrentIteratorPrototype, ITERATOR$3, returnThis);
|
|
1593
|
-
}
|
|
1594
|
-
}
|
|
1595
|
-
// Set @@toStringTag to native iterators
|
|
1596
|
-
setToStringTag(CurrentIteratorPrototype, TO_STRING_TAG, true);
|
|
1597
|
-
}
|
|
1598
|
-
}
|
|
1599
|
-
|
|
1600
|
-
// fix Array.prototype.{ values, @@iterator }.name in V8 / FF
|
|
1601
|
-
if (PROPER_FUNCTION_NAME && DEFAULT == VALUES && nativeIterator && nativeIterator.name !== VALUES) {
|
|
1602
|
-
if (CONFIGURABLE_FUNCTION_NAME) {
|
|
1603
|
-
createNonEnumerableProperty$1(IterablePrototype, 'name', VALUES);
|
|
1604
|
-
} else {
|
|
1605
|
-
INCORRECT_VALUES_NAME = true;
|
|
1606
|
-
defaultIterator = function values() { return call$3(nativeIterator, this); };
|
|
1607
|
-
}
|
|
1608
|
-
}
|
|
1609
|
-
|
|
1610
|
-
// export additional methods
|
|
1611
|
-
if (DEFAULT) {
|
|
1612
|
-
methods = {
|
|
1613
|
-
values: getIterationMethod(VALUES),
|
|
1614
|
-
keys: IS_SET ? defaultIterator : getIterationMethod(KEYS),
|
|
1615
|
-
entries: getIterationMethod(ENTRIES)
|
|
1616
|
-
};
|
|
1617
|
-
if (FORCED) for (KEY in methods) {
|
|
1618
|
-
if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
|
|
1619
|
-
defineBuiltIn(IterablePrototype, KEY, methods[KEY]);
|
|
1620
|
-
}
|
|
1621
|
-
} else $$1({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
|
|
1622
|
-
}
|
|
1623
|
-
|
|
1624
|
-
// define iterator
|
|
1625
|
-
if (IterablePrototype[ITERATOR$3] !== defaultIterator) {
|
|
1626
|
-
defineBuiltIn(IterablePrototype, ITERATOR$3, defaultIterator, { name: DEFAULT });
|
|
1627
|
-
}
|
|
1628
|
-
Iterators$3[NAME] = defaultIterator;
|
|
1629
|
-
|
|
1630
|
-
return methods;
|
|
1631
|
-
};
|
|
1632
|
-
|
|
1633
|
-
// `CreateIterResultObject` abstract operation
|
|
1634
|
-
// https://tc39.es/ecma262/#sec-createiterresultobject
|
|
1635
|
-
var createIterResultObject$1 = function (value, done) {
|
|
1636
|
-
return { value: value, done: done };
|
|
1637
|
-
};
|
|
1638
|
-
|
|
1639
|
-
var toIndexedObject = toIndexedObject$5;
|
|
1640
|
-
var addToUnscopables = addToUnscopables$1;
|
|
1641
|
-
var Iterators$2 = iterators;
|
|
1642
|
-
var InternalStateModule = internalState;
|
|
1643
|
-
var defineProperty = objectDefineProperty.f;
|
|
1644
|
-
var defineIterator = iteratorDefine;
|
|
1645
|
-
var createIterResultObject = createIterResultObject$1;
|
|
1646
|
-
var DESCRIPTORS = descriptors;
|
|
1647
|
-
|
|
1648
|
-
var ARRAY_ITERATOR = 'Array Iterator';
|
|
1649
|
-
var setInternalState = InternalStateModule.set;
|
|
1650
|
-
var getInternalState = InternalStateModule.getterFor(ARRAY_ITERATOR);
|
|
1651
|
-
|
|
1652
|
-
// `Array.prototype.entries` method
|
|
1653
|
-
// https://tc39.es/ecma262/#sec-array.prototype.entries
|
|
1654
|
-
// `Array.prototype.keys` method
|
|
1655
|
-
// https://tc39.es/ecma262/#sec-array.prototype.keys
|
|
1656
|
-
// `Array.prototype.values` method
|
|
1657
|
-
// https://tc39.es/ecma262/#sec-array.prototype.values
|
|
1658
|
-
// `Array.prototype[@@iterator]` method
|
|
1659
|
-
// https://tc39.es/ecma262/#sec-array.prototype-@@iterator
|
|
1660
|
-
// `CreateArrayIterator` internal method
|
|
1661
|
-
// https://tc39.es/ecma262/#sec-createarrayiterator
|
|
1662
|
-
var es_array_iterator = defineIterator(Array, 'Array', function (iterated, kind) {
|
|
1663
|
-
setInternalState(this, {
|
|
1664
|
-
type: ARRAY_ITERATOR,
|
|
1665
|
-
target: toIndexedObject(iterated), // target
|
|
1666
|
-
index: 0, // next index
|
|
1667
|
-
kind: kind // kind
|
|
1668
|
-
});
|
|
1669
|
-
// `%ArrayIteratorPrototype%.next` method
|
|
1670
|
-
// https://tc39.es/ecma262/#sec-%arrayiteratorprototype%.next
|
|
1671
|
-
}, function () {
|
|
1672
|
-
var state = getInternalState(this);
|
|
1673
|
-
var target = state.target;
|
|
1674
|
-
var kind = state.kind;
|
|
1675
|
-
var index = state.index++;
|
|
1676
|
-
if (!target || index >= target.length) {
|
|
1677
|
-
state.target = undefined;
|
|
1678
|
-
return createIterResultObject(undefined, true);
|
|
1679
|
-
}
|
|
1680
|
-
if (kind == 'keys') return createIterResultObject(index, false);
|
|
1681
|
-
if (kind == 'values') return createIterResultObject(target[index], false);
|
|
1682
|
-
return createIterResultObject([index, target[index]], false);
|
|
1683
|
-
}, 'values');
|
|
1684
|
-
|
|
1685
|
-
// argumentsList[@@iterator] is %ArrayProto_values%
|
|
1686
|
-
// https://tc39.es/ecma262/#sec-createunmappedargumentsobject
|
|
1687
|
-
// https://tc39.es/ecma262/#sec-createmappedargumentsobject
|
|
1688
|
-
var values = Iterators$2.Arguments = Iterators$2.Array;
|
|
1689
|
-
|
|
1690
|
-
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
|
1691
|
-
addToUnscopables('keys');
|
|
1692
|
-
addToUnscopables('values');
|
|
1693
|
-
addToUnscopables('entries');
|
|
1694
|
-
|
|
1695
|
-
// V8 ~ Chrome 45- bug
|
|
1696
|
-
if (DESCRIPTORS && values.name !== 'values') try {
|
|
1697
|
-
defineProperty(values, 'name', { value: 'values' });
|
|
1698
|
-
} catch (error) { /* empty */ }
|
|
1699
|
-
|
|
1700
|
-
var classofRaw$1 = classofRaw$2;
|
|
1701
|
-
var uncurryThis$1 = functionUncurryThis;
|
|
1702
|
-
|
|
1703
|
-
var functionUncurryThisClause = function (fn) {
|
|
1704
|
-
// Nashorn bug:
|
|
1705
|
-
// https://github.com/zloirock/core-js/issues/1128
|
|
1706
|
-
// https://github.com/zloirock/core-js/issues/1130
|
|
1707
|
-
if (classofRaw$1(fn) === 'Function') return uncurryThis$1(fn);
|
|
1708
|
-
};
|
|
1709
|
-
|
|
1710
|
-
var uncurryThis = functionUncurryThisClause;
|
|
1711
|
-
var aCallable$1 = aCallable$3;
|
|
1712
|
-
var NATIVE_BIND = functionBindNative;
|
|
1713
|
-
|
|
1714
|
-
var bind$1 = uncurryThis(uncurryThis.bind);
|
|
1715
|
-
|
|
1716
|
-
// optional / simple context binding
|
|
1717
|
-
var functionBindContext = function (fn, that) {
|
|
1718
|
-
aCallable$1(fn);
|
|
1719
|
-
return that === undefined ? fn : NATIVE_BIND ? bind$1(fn, that) : function (/* ...args */) {
|
|
1720
|
-
return fn.apply(that, arguments);
|
|
1721
|
-
};
|
|
1722
|
-
};
|
|
1723
|
-
|
|
1724
|
-
var wellKnownSymbol$4 = wellKnownSymbol$a;
|
|
1725
|
-
var Iterators$1 = iterators;
|
|
1726
|
-
|
|
1727
|
-
var ITERATOR$2 = wellKnownSymbol$4('iterator');
|
|
1728
|
-
var ArrayPrototype = Array.prototype;
|
|
1729
|
-
|
|
1730
|
-
// check on default Array iterator
|
|
1731
|
-
var isArrayIteratorMethod$1 = function (it) {
|
|
1732
|
-
return it !== undefined && (Iterators$1.Array === it || ArrayPrototype[ITERATOR$2] === it);
|
|
1733
|
-
};
|
|
1734
|
-
|
|
1735
|
-
var wellKnownSymbol$3 = wellKnownSymbol$a;
|
|
1736
|
-
|
|
1737
|
-
var TO_STRING_TAG$2 = wellKnownSymbol$3('toStringTag');
|
|
1738
|
-
var test = {};
|
|
1739
|
-
|
|
1740
|
-
test[TO_STRING_TAG$2] = 'z';
|
|
1741
|
-
|
|
1742
|
-
var toStringTagSupport = String(test) === '[object z]';
|
|
1743
|
-
|
|
1744
|
-
var TO_STRING_TAG_SUPPORT = toStringTagSupport;
|
|
1745
|
-
var isCallable = isCallable$f;
|
|
1746
|
-
var classofRaw = classofRaw$2;
|
|
1747
|
-
var wellKnownSymbol$2 = wellKnownSymbol$a;
|
|
1748
|
-
|
|
1749
|
-
var TO_STRING_TAG$1 = wellKnownSymbol$2('toStringTag');
|
|
1750
|
-
var $Object = Object;
|
|
1751
|
-
|
|
1752
|
-
// ES3 wrong here
|
|
1753
|
-
var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';
|
|
1754
|
-
|
|
1755
|
-
// fallback for IE11 Script Access Denied error
|
|
1756
|
-
var tryGet = function (it, key) {
|
|
1757
|
-
try {
|
|
1758
|
-
return it[key];
|
|
1759
|
-
} catch (error) { /* empty */ }
|
|
1760
|
-
};
|
|
1761
|
-
|
|
1762
|
-
// getting tag from ES6+ `Object.prototype.toString`
|
|
1763
|
-
var classof$1 = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
|
|
1764
|
-
var O, tag, result;
|
|
1765
|
-
return it === undefined ? 'Undefined' : it === null ? 'Null'
|
|
1766
|
-
// @@toStringTag case
|
|
1767
|
-
: typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG$1)) == 'string' ? tag
|
|
1768
|
-
// builtinTag case
|
|
1769
|
-
: CORRECT_ARGUMENTS ? classofRaw(O)
|
|
1770
|
-
// ES3 arguments fallback
|
|
1771
|
-
: (result = classofRaw(O)) == 'Object' && isCallable(O.callee) ? 'Arguments' : result;
|
|
1772
|
-
};
|
|
1773
|
-
|
|
1774
|
-
var classof = classof$1;
|
|
1775
|
-
var getMethod$1 = getMethod$3;
|
|
1776
|
-
var isNullOrUndefined = isNullOrUndefined$3;
|
|
1777
|
-
var Iterators = iterators;
|
|
1778
|
-
var wellKnownSymbol$1 = wellKnownSymbol$a;
|
|
1779
|
-
|
|
1780
|
-
var ITERATOR$1 = wellKnownSymbol$1('iterator');
|
|
1781
|
-
|
|
1782
|
-
var getIteratorMethod$2 = function (it) {
|
|
1783
|
-
if (!isNullOrUndefined(it)) return getMethod$1(it, ITERATOR$1)
|
|
1784
|
-
|| getMethod$1(it, '@@iterator')
|
|
1785
|
-
|| Iterators[classof(it)];
|
|
1786
|
-
};
|
|
1787
|
-
|
|
1788
|
-
var call$2 = functionCall;
|
|
1789
|
-
var aCallable = aCallable$3;
|
|
1790
|
-
var anObject$2 = anObject$8;
|
|
1791
|
-
var tryToString$1 = tryToString$3;
|
|
1792
|
-
var getIteratorMethod$1 = getIteratorMethod$2;
|
|
1793
|
-
|
|
1794
|
-
var $TypeError$1 = TypeError;
|
|
1795
|
-
|
|
1796
|
-
var getIterator$1 = function (argument, usingIterator) {
|
|
1797
|
-
var iteratorMethod = arguments.length < 2 ? getIteratorMethod$1(argument) : usingIterator;
|
|
1798
|
-
if (aCallable(iteratorMethod)) return anObject$2(call$2(iteratorMethod, argument));
|
|
1799
|
-
throw $TypeError$1(tryToString$1(argument) + ' is not iterable');
|
|
1800
|
-
};
|
|
1801
|
-
|
|
1802
|
-
var call$1 = functionCall;
|
|
1803
|
-
var anObject$1 = anObject$8;
|
|
1804
|
-
var getMethod = getMethod$3;
|
|
1805
|
-
|
|
1806
|
-
var iteratorClose$1 = function (iterator, kind, value) {
|
|
1807
|
-
var innerResult, innerError;
|
|
1808
|
-
anObject$1(iterator);
|
|
1809
|
-
try {
|
|
1810
|
-
innerResult = getMethod(iterator, 'return');
|
|
1811
|
-
if (!innerResult) {
|
|
1812
|
-
if (kind === 'throw') throw value;
|
|
1813
|
-
return value;
|
|
1814
|
-
}
|
|
1815
|
-
innerResult = call$1(innerResult, iterator);
|
|
1816
|
-
} catch (error) {
|
|
1817
|
-
innerError = true;
|
|
1818
|
-
innerResult = error;
|
|
1819
|
-
}
|
|
1820
|
-
if (kind === 'throw') throw value;
|
|
1821
|
-
if (innerError) throw innerResult;
|
|
1822
|
-
anObject$1(innerResult);
|
|
1823
|
-
return value;
|
|
1824
|
-
};
|
|
1825
|
-
|
|
1826
|
-
var bind = functionBindContext;
|
|
1827
|
-
var call = functionCall;
|
|
1828
|
-
var anObject = anObject$8;
|
|
1829
|
-
var tryToString = tryToString$3;
|
|
1830
|
-
var isArrayIteratorMethod = isArrayIteratorMethod$1;
|
|
1831
|
-
var lengthOfArrayLike = lengthOfArrayLike$2;
|
|
1832
|
-
var isPrototypeOf = objectIsPrototypeOf;
|
|
1833
|
-
var getIterator = getIterator$1;
|
|
1834
|
-
var getIteratorMethod = getIteratorMethod$2;
|
|
1835
|
-
var iteratorClose = iteratorClose$1;
|
|
1836
|
-
|
|
1837
|
-
var $TypeError = TypeError;
|
|
1838
|
-
|
|
1839
|
-
var Result = function (stopped, result) {
|
|
1840
|
-
this.stopped = stopped;
|
|
1841
|
-
this.result = result;
|
|
1842
|
-
};
|
|
1843
|
-
|
|
1844
|
-
var ResultPrototype = Result.prototype;
|
|
1845
|
-
|
|
1846
|
-
var iterate$1 = function (iterable, unboundFunction, options) {
|
|
1847
|
-
var that = options && options.that;
|
|
1848
|
-
var AS_ENTRIES = !!(options && options.AS_ENTRIES);
|
|
1849
|
-
var IS_RECORD = !!(options && options.IS_RECORD);
|
|
1850
|
-
var IS_ITERATOR = !!(options && options.IS_ITERATOR);
|
|
1851
|
-
var INTERRUPTED = !!(options && options.INTERRUPTED);
|
|
1852
|
-
var fn = bind(unboundFunction, that);
|
|
1853
|
-
var iterator, iterFn, index, length, result, next, step;
|
|
1854
|
-
|
|
1855
|
-
var stop = function (condition) {
|
|
1856
|
-
if (iterator) iteratorClose(iterator, 'normal', condition);
|
|
1857
|
-
return new Result(true, condition);
|
|
1858
|
-
};
|
|
1859
|
-
|
|
1860
|
-
var callFn = function (value) {
|
|
1861
|
-
if (AS_ENTRIES) {
|
|
1862
|
-
anObject(value);
|
|
1863
|
-
return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]);
|
|
1864
|
-
} return INTERRUPTED ? fn(value, stop) : fn(value);
|
|
1865
|
-
};
|
|
1866
|
-
|
|
1867
|
-
if (IS_RECORD) {
|
|
1868
|
-
iterator = iterable.iterator;
|
|
1869
|
-
} else if (IS_ITERATOR) {
|
|
1870
|
-
iterator = iterable;
|
|
1871
|
-
} else {
|
|
1872
|
-
iterFn = getIteratorMethod(iterable);
|
|
1873
|
-
if (!iterFn) throw $TypeError(tryToString(iterable) + ' is not iterable');
|
|
1874
|
-
// optimisation for array iterators
|
|
1875
|
-
if (isArrayIteratorMethod(iterFn)) {
|
|
1876
|
-
for (index = 0, length = lengthOfArrayLike(iterable); length > index; index++) {
|
|
1877
|
-
result = callFn(iterable[index]);
|
|
1878
|
-
if (result && isPrototypeOf(ResultPrototype, result)) return result;
|
|
1879
|
-
} return new Result(false);
|
|
1880
|
-
}
|
|
1881
|
-
iterator = getIterator(iterable, iterFn);
|
|
1882
|
-
}
|
|
1883
|
-
|
|
1884
|
-
next = IS_RECORD ? iterable.next : iterator.next;
|
|
1885
|
-
while (!(step = call(next, iterator)).done) {
|
|
1886
|
-
try {
|
|
1887
|
-
result = callFn(step.value);
|
|
1888
|
-
} catch (error) {
|
|
1889
|
-
iteratorClose(iterator, 'throw', error);
|
|
1890
|
-
}
|
|
1891
|
-
if (typeof result == 'object' && result && isPrototypeOf(ResultPrototype, result)) return result;
|
|
1892
|
-
} return new Result(false);
|
|
1893
|
-
};
|
|
1894
|
-
|
|
1895
|
-
var toPropertyKey = toPropertyKey$3;
|
|
1896
|
-
var definePropertyModule = objectDefineProperty;
|
|
1897
|
-
var createPropertyDescriptor = createPropertyDescriptor$4;
|
|
1898
|
-
|
|
1899
|
-
var createProperty$1 = function (object, key, value) {
|
|
1900
|
-
var propertyKey = toPropertyKey(key);
|
|
1901
|
-
if (propertyKey in object) definePropertyModule.f(object, propertyKey, createPropertyDescriptor(0, value));
|
|
1902
|
-
else object[propertyKey] = value;
|
|
1903
|
-
};
|
|
1904
|
-
|
|
1905
|
-
var $ = _export;
|
|
1906
|
-
var iterate = iterate$1;
|
|
1907
|
-
var createProperty = createProperty$1;
|
|
1908
|
-
|
|
1909
|
-
// `Object.fromEntries` method
|
|
1910
|
-
// https://github.com/tc39/proposal-object-from-entries
|
|
1911
|
-
$({ target: 'Object', stat: true }, {
|
|
1912
|
-
fromEntries: function fromEntries(iterable) {
|
|
1913
|
-
var obj = {};
|
|
1914
|
-
iterate(iterable, function (k, v) {
|
|
1915
|
-
createProperty(obj, k, v);
|
|
1916
|
-
}, { AS_ENTRIES: true });
|
|
1917
|
-
return obj;
|
|
1918
|
-
}
|
|
117
|
+
/*
|
|
118
|
+
* This file holds the custom design tokens for this component.
|
|
119
|
+
* These will be added to the tailwind configuration.
|
|
120
|
+
*/
|
|
121
|
+
const SearchTokenDefinition = AsComponentTokenDefinition({
|
|
122
|
+
DEFAULT: {
|
|
123
|
+
width: { width: "9rem" },
|
|
124
|
+
background: { backgroundColor: "" },
|
|
125
|
+
borderless: { borderStyle: "hidden" },
|
|
126
|
+
"focus-hover": {
|
|
127
|
+
borderWidth: "1px",
|
|
128
|
+
borderBottomWidth: "1px",
|
|
129
|
+
borderColor: "rgb(var(--color-gray-400))",
|
|
130
|
+
borderBottomColor: "rgb(var(--color-gray-400))",
|
|
131
|
+
backgroundColor: "rgb(var(--color-slate-50))",
|
|
132
|
+
},
|
|
133
|
+
border: {
|
|
134
|
+
borderStyle: "solid",
|
|
135
|
+
borderWidth: "1px",
|
|
136
|
+
borderBottomWidth: "1px",
|
|
137
|
+
borderColor: "rgb(var(--color-gray-200))",
|
|
138
|
+
borderBottomColor: "rgb(var(--color-gray-200))",
|
|
139
|
+
borderRadius: "0.5rem",
|
|
140
|
+
},
|
|
141
|
+
"focus-within": {
|
|
142
|
+
borderColor: "rgb(var(--color-slate-400))",
|
|
143
|
+
boxShadow: "var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000)",
|
|
144
|
+
},
|
|
145
|
+
widen: { borderBottomColor: "rgb(var(--color-white-DEFAULT))" },
|
|
146
|
+
"widen-focus": { borderBottomColor: "rgb(var(--color-black-DEFAULT))" },
|
|
147
|
+
prefix: {
|
|
148
|
+
color: "rgb(var(--color-slate-400))",
|
|
149
|
+
cursor: "default",
|
|
150
|
+
},
|
|
151
|
+
},
|
|
152
|
+
"theme-marketing": {
|
|
153
|
+
width: { width: "0px" },
|
|
154
|
+
background: { backgroundColor: "transparent" },
|
|
155
|
+
borderless: {
|
|
156
|
+
borderStyle: "hidden",
|
|
157
|
+
},
|
|
158
|
+
"focus-hover": {
|
|
159
|
+
borderWidth: "0px",
|
|
160
|
+
borderBottomWidth: "2px",
|
|
161
|
+
borderColor: "rgb(var(--color-black-DEFAULT))",
|
|
162
|
+
borderBottomColor: "rgb(var(--color-black-DEFAULT))",
|
|
163
|
+
backgroundColor: "transparent",
|
|
164
|
+
},
|
|
165
|
+
border: {
|
|
166
|
+
borderStyle: "solid",
|
|
167
|
+
borderWidth: "0px",
|
|
168
|
+
borderBottomWidth: "2px",
|
|
169
|
+
borderColor: "rgb(var(--color-white-DEFAULT))",
|
|
170
|
+
borderBottomColor: "rgb(var(--color-black-DEFAULT))",
|
|
171
|
+
borderRadius: "0px",
|
|
172
|
+
},
|
|
173
|
+
"focus-within": {
|
|
174
|
+
borderColor: "none",
|
|
175
|
+
boxShadow: "none",
|
|
176
|
+
},
|
|
177
|
+
widen: {
|
|
178
|
+
borderBottomColor: "rgb(var(--color-white-DEFAULT))",
|
|
179
|
+
},
|
|
180
|
+
"widen-focus": {
|
|
181
|
+
borderBottomColor: "rgb(var(--color-black-DEFAULT))",
|
|
182
|
+
},
|
|
183
|
+
prefix: {
|
|
184
|
+
color: "rgb(var(--color-slate-600))",
|
|
185
|
+
cursor: "pointer",
|
|
186
|
+
},
|
|
187
|
+
},
|
|
1919
188
|
});
|
|
1920
189
|
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
DOMStringList: 0,
|
|
1930
|
-
DOMTokenList: 1,
|
|
1931
|
-
DataTransferItemList: 0,
|
|
1932
|
-
FileList: 0,
|
|
1933
|
-
HTMLAllCollection: 0,
|
|
1934
|
-
HTMLCollection: 0,
|
|
1935
|
-
HTMLFormElement: 0,
|
|
1936
|
-
HTMLSelectElement: 0,
|
|
1937
|
-
MediaList: 0,
|
|
1938
|
-
MimeTypeArray: 0,
|
|
1939
|
-
NamedNodeMap: 0,
|
|
1940
|
-
NodeList: 1,
|
|
1941
|
-
PaintRequestList: 0,
|
|
1942
|
-
Plugin: 0,
|
|
1943
|
-
PluginArray: 0,
|
|
1944
|
-
SVGLengthList: 0,
|
|
1945
|
-
SVGNumberList: 0,
|
|
1946
|
-
SVGPathSegList: 0,
|
|
1947
|
-
SVGPointList: 0,
|
|
1948
|
-
SVGStringList: 0,
|
|
1949
|
-
SVGTransformList: 0,
|
|
1950
|
-
SourceBufferList: 0,
|
|
1951
|
-
StyleSheetList: 0,
|
|
1952
|
-
TextTrackCueList: 0,
|
|
1953
|
-
TextTrackList: 0,
|
|
1954
|
-
TouchList: 0
|
|
1955
|
-
};
|
|
1956
|
-
|
|
1957
|
-
// in old WebKit versions, `element.classList` is not an instance of global `DOMTokenList`
|
|
1958
|
-
var documentCreateElement = documentCreateElement$2;
|
|
1959
|
-
|
|
1960
|
-
var classList = documentCreateElement('span').classList;
|
|
1961
|
-
var DOMTokenListPrototype$1 = classList && classList.constructor && classList.constructor.prototype;
|
|
1962
|
-
|
|
1963
|
-
var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undefined : DOMTokenListPrototype$1;
|
|
1964
|
-
|
|
1965
|
-
var global$1 = global$b;
|
|
1966
|
-
var DOMIterables = domIterables;
|
|
1967
|
-
var DOMTokenListPrototype = domTokenListPrototype;
|
|
1968
|
-
var ArrayIteratorMethods = es_array_iterator;
|
|
1969
|
-
var createNonEnumerableProperty = createNonEnumerableProperty$4;
|
|
1970
|
-
var wellKnownSymbol = wellKnownSymbol$a;
|
|
1971
|
-
|
|
1972
|
-
var ITERATOR = wellKnownSymbol('iterator');
|
|
1973
|
-
var TO_STRING_TAG = wellKnownSymbol('toStringTag');
|
|
1974
|
-
var ArrayValues = ArrayIteratorMethods.values;
|
|
1975
|
-
|
|
1976
|
-
var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
|
|
1977
|
-
if (CollectionPrototype) {
|
|
1978
|
-
// some Chrome versions have non-configurable methods on DOMTokenList
|
|
1979
|
-
if (CollectionPrototype[ITERATOR] !== ArrayValues) try {
|
|
1980
|
-
createNonEnumerableProperty(CollectionPrototype, ITERATOR, ArrayValues);
|
|
1981
|
-
} catch (error) {
|
|
1982
|
-
CollectionPrototype[ITERATOR] = ArrayValues;
|
|
1983
|
-
}
|
|
1984
|
-
if (!CollectionPrototype[TO_STRING_TAG]) {
|
|
1985
|
-
createNonEnumerableProperty(CollectionPrototype, TO_STRING_TAG, COLLECTION_NAME);
|
|
1986
|
-
}
|
|
1987
|
-
if (DOMIterables[COLLECTION_NAME]) for (var METHOD_NAME in ArrayIteratorMethods) {
|
|
1988
|
-
// some Chrome versions have non-configurable methods on DOMTokenList
|
|
1989
|
-
if (CollectionPrototype[METHOD_NAME] !== ArrayIteratorMethods[METHOD_NAME]) try {
|
|
1990
|
-
createNonEnumerableProperty(CollectionPrototype, METHOD_NAME, ArrayIteratorMethods[METHOD_NAME]);
|
|
1991
|
-
} catch (error) {
|
|
1992
|
-
CollectionPrototype[METHOD_NAME] = ArrayIteratorMethods[METHOD_NAME];
|
|
1993
|
-
}
|
|
1994
|
-
}
|
|
1995
|
-
}
|
|
190
|
+
const componentTokenDefinitions = {
|
|
191
|
+
card: CardTokenDefinition,
|
|
192
|
+
button: ButtonTokenDefinition,
|
|
193
|
+
search: SearchTokenDefinition,
|
|
194
|
+
popover: PopoverTokenDefinition,
|
|
195
|
+
popoverListItem: PopoverListItemTokenDefinition,
|
|
196
|
+
baseInput: BaseInputTokenDefinition,
|
|
197
|
+
formGroup: FormGroupTokenDefinition,
|
|
1996
198
|
};
|
|
1997
199
|
|
|
1998
|
-
for
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
|
|
2005
|
-
const getComponentTokenVariablesByThemeName = (theme, componentTokenDefinitions) => {
|
|
2006
|
-
const themeTokenObject = Object.fromEntries(Object.entries(componentTokenDefinitions).map(([componentName, componentThemes]) => [componentName, componentThemes[theme]]));
|
|
2007
|
-
return themeTokenObject;
|
|
200
|
+
/** Returns object structure for Tailwind variable config for specified theme for ALL ComponentTokenDefinitions. */
|
|
201
|
+
const getComponentTokenVariablesByThemeName = (theme, componentTokenDefinitions) => {
|
|
202
|
+
const themeTokenObject = Object.fromEntries(Object.entries(componentTokenDefinitions).map(([componentName, componentThemes]) => [
|
|
203
|
+
componentName,
|
|
204
|
+
componentThemes[theme],
|
|
205
|
+
]));
|
|
206
|
+
return themeTokenObject;
|
|
2008
207
|
};
|
|
2009
208
|
|
|
2010
|
-
/** The prefix for css variables and tailwind component classes */
|
|
2011
|
-
const PREFIX = "component";
|
|
209
|
+
/** The prefix for css variables and tailwind component classes */
|
|
210
|
+
const PREFIX = "component";
|
|
2012
211
|
/**
|
|
2013
212
|
* Get the css variable value for the component tokens specific property.
|
|
2014
213
|
*
|
|
@@ -2016,8 +215,8 @@ const PREFIX = "component";
|
|
|
2016
215
|
* @param token The component-level token name
|
|
2017
216
|
* @param cssProperty The css property on the component-level Token
|
|
2018
217
|
* @returns {string} `var(--${PREFIX}-${component}-${token}-${cssProperty})`
|
|
2019
|
-
*/
|
|
2020
|
-
const componentTokenAsCssVariableString = (component, token, cssProperty) => `var(--${PREFIX}-${component}-${token}-${cssProperty})`;
|
|
218
|
+
*/
|
|
219
|
+
const componentTokenAsCssVariableString = (component, token, cssProperty) => `var(--${PREFIX}-${component}-${token}-${cssProperty})`;
|
|
2021
220
|
/**
|
|
2022
221
|
* Get the full CSSProperties for a component token.
|
|
2023
222
|
* Replaces the css values from the ComponentTokenDefinition with the corresponding css variable.
|
|
@@ -2026,37 +225,38 @@ const componentTokenAsCssVariableString = (component, token, cssProperty) => `va
|
|
|
2026
225
|
* @param {ComponentTokenNames} token The name of the token
|
|
2027
226
|
* @param {CSSProperties} tokenObject The CSSProperties for the component token
|
|
2028
227
|
* @returns {*} {CSSProperties} CSSProperties converted to use the css variable for the correstonding token
|
|
2029
|
-
*/
|
|
2030
|
-
const componentTokenToCSSProperties = (component, token, tokenObject) => {
|
|
2031
|
-
|
|
2032
|
-
|
|
228
|
+
*/
|
|
229
|
+
const componentTokenToCSSProperties = (component, token, tokenObject) => {
|
|
230
|
+
return Object.fromEntries(Object.keys(tokenObject).map(key => [
|
|
231
|
+
key,
|
|
232
|
+
componentTokenAsCssVariableString(component, token, key),
|
|
233
|
+
]));
|
|
234
|
+
};
|
|
2033
235
|
/**
|
|
2034
236
|
* Generate the full object og componentToken rules for the Tailwind plugin.
|
|
2035
|
-
*/
|
|
2036
|
-
const getAllComponentTokenRules = componentDefinitions => {
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
};
|
|
2046
|
-
|
|
2047
|
-
const cssVariablesDefinition = cssTailwindCustomPropertiesPlugin.variablesToCSSRules({
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
});
|
|
2055
|
-
const ComponentTokensPlugin = plugin__default["default"](function ({
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
addComponents(cssVariablesDefinition);
|
|
2059
|
-
addComponents(getAllComponentTokenRules(componentTokenDefinitions));
|
|
237
|
+
*/
|
|
238
|
+
const getAllComponentTokenRules = (componentDefinitions) => {
|
|
239
|
+
const components = {};
|
|
240
|
+
Object.entries(componentDefinitions).forEach(([componentName, themes]) => Object.entries(themes.DEFAULT).forEach(([tokenName, value]) => {
|
|
241
|
+
const typedComponentName = componentName; // TS does not do literals from Object keys so we do it manually
|
|
242
|
+
const typedTokenName = tokenName; // TS does not do literals from Object keys so we do it manually
|
|
243
|
+
const selector = `.${PREFIX}-${typedComponentName}-${typedTokenName}`;
|
|
244
|
+
components[selector] = componentTokenToCSSProperties(typedComponentName, typedTokenName, value);
|
|
245
|
+
}));
|
|
246
|
+
return components;
|
|
247
|
+
};
|
|
248
|
+
|
|
249
|
+
const cssVariablesDefinition = cssTailwindCustomPropertiesPlugin.variablesToCSSRules({
|
|
250
|
+
DEFAULT: {
|
|
251
|
+
component: getComponentTokenVariablesByThemeName("DEFAULT", componentTokenDefinitions),
|
|
252
|
+
},
|
|
253
|
+
"theme-marketing": {
|
|
254
|
+
component: getComponentTokenVariablesByThemeName("theme-marketing", componentTokenDefinitions),
|
|
255
|
+
},
|
|
256
|
+
});
|
|
257
|
+
const ComponentTokensPlugin = plugin__default["default"](function ({ addComponents }) {
|
|
258
|
+
addComponents(cssVariablesDefinition);
|
|
259
|
+
addComponents(getAllComponentTokenRules(componentTokenDefinitions));
|
|
2060
260
|
});
|
|
2061
261
|
|
|
2062
262
|
exports.ComponentTokensPlugin = ComponentTokensPlugin;
|