@carbon/themes 11.36.0 → 11.37.0
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/es/index.js +323 -341
- package/lib/index.js +323 -341
- package/package.json +6 -6
- package/umd/index.js +323 -341
package/es/index.js
CHANGED
|
@@ -5,453 +5,435 @@ export { bodyLong01, bodyLong02, bodyShort01, bodyShort02, caption01, caption02,
|
|
|
5
5
|
import { spacing01, spacing02, spacing03, spacing04, spacing05, spacing06, spacing07, spacing08, spacing09, spacing10, spacing11, spacing12, spacing13, fluidSpacing01, fluidSpacing02, fluidSpacing03, fluidSpacing04, container01, container02, container03, container04, container05, sizeXSmall, sizeSmall, sizeMedium, sizeLarge, sizeXLarge, size2XLarge, iconSize01, iconSize02, layout01, layout02, layout03, layout04, layout05, layout06, layout07, unstable_tokens as unstable_tokens$1 } from '@carbon/layout';
|
|
6
6
|
export { container01, container02, container03, container04, container05, fluidSpacing01, fluidSpacing02, fluidSpacing03, fluidSpacing04, iconSize01, iconSize02, layout01, layout02, layout03, layout04, layout05, layout06, layout07, size2XLarge, sizeLarge, sizeMedium, sizeSmall, sizeXLarge, sizeXSmall, spacing01, spacing02, spacing03, spacing04, spacing05, spacing06, spacing07, spacing08, spacing09, spacing10, spacing11, spacing12, spacing13 } from '@carbon/layout';
|
|
7
7
|
|
|
8
|
-
function
|
|
9
|
-
|
|
8
|
+
function _arrayLikeToArray(r, a) {
|
|
9
|
+
(null == a || a > r.length) && (a = r.length);
|
|
10
|
+
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
11
|
+
return n;
|
|
12
|
+
}
|
|
13
|
+
function _arrayWithoutHoles(r) {
|
|
14
|
+
if (Array.isArray(r)) return _arrayLikeToArray(r);
|
|
15
|
+
}
|
|
16
|
+
function _classCallCheck(a, n) {
|
|
17
|
+
if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
|
|
18
|
+
}
|
|
19
|
+
function _defineProperties(e, r) {
|
|
20
|
+
for (var t = 0; t < r.length; t++) {
|
|
21
|
+
var o = r[t];
|
|
22
|
+
o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
function _createClass(e, r, t) {
|
|
26
|
+
return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", {
|
|
27
|
+
writable: !1
|
|
28
|
+
}), e;
|
|
29
|
+
}
|
|
30
|
+
function _createForOfIteratorHelper(r, e) {
|
|
31
|
+
var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
32
|
+
if (!t) {
|
|
33
|
+
if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) {
|
|
34
|
+
t && (r = t);
|
|
35
|
+
var n = 0,
|
|
36
|
+
F = function () {};
|
|
37
|
+
return {
|
|
38
|
+
s: F,
|
|
39
|
+
n: function () {
|
|
40
|
+
return n >= r.length ? {
|
|
41
|
+
done: !0
|
|
42
|
+
} : {
|
|
43
|
+
done: !1,
|
|
44
|
+
value: r[n++]
|
|
45
|
+
};
|
|
46
|
+
},
|
|
47
|
+
e: function (r) {
|
|
48
|
+
throw r;
|
|
49
|
+
},
|
|
50
|
+
f: F
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
54
|
+
}
|
|
55
|
+
var o,
|
|
56
|
+
a = !0,
|
|
57
|
+
u = !1;
|
|
58
|
+
return {
|
|
59
|
+
s: function () {
|
|
60
|
+
t = t.call(r);
|
|
61
|
+
},
|
|
62
|
+
n: function () {
|
|
63
|
+
var r = t.next();
|
|
64
|
+
return a = r.done, r;
|
|
65
|
+
},
|
|
66
|
+
e: function (r) {
|
|
67
|
+
u = !0, o = r;
|
|
68
|
+
},
|
|
69
|
+
f: function () {
|
|
70
|
+
try {
|
|
71
|
+
a || null == t.return || t.return();
|
|
72
|
+
} finally {
|
|
73
|
+
if (u) throw o;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
function _defineProperty(e, r, t) {
|
|
79
|
+
return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
80
|
+
value: t,
|
|
81
|
+
enumerable: !0,
|
|
82
|
+
configurable: !0,
|
|
83
|
+
writable: !0
|
|
84
|
+
}) : e[r] = t, e;
|
|
85
|
+
}
|
|
86
|
+
function _iterableToArray(r) {
|
|
87
|
+
if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
|
|
88
|
+
}
|
|
89
|
+
function _nonIterableSpread() {
|
|
90
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
91
|
+
}
|
|
92
|
+
function ownKeys(e, r) {
|
|
93
|
+
var t = Object.keys(e);
|
|
10
94
|
if (Object.getOwnPropertySymbols) {
|
|
11
|
-
var
|
|
12
|
-
|
|
13
|
-
return Object.getOwnPropertyDescriptor(
|
|
14
|
-
})),
|
|
95
|
+
var o = Object.getOwnPropertySymbols(e);
|
|
96
|
+
r && (o = o.filter(function (r) {
|
|
97
|
+
return Object.getOwnPropertyDescriptor(e, r).enumerable;
|
|
98
|
+
})), t.push.apply(t, o);
|
|
15
99
|
}
|
|
16
|
-
return
|
|
100
|
+
return t;
|
|
17
101
|
}
|
|
18
|
-
function _objectSpread2(
|
|
19
|
-
for (var
|
|
20
|
-
var
|
|
21
|
-
|
|
22
|
-
_defineProperty(
|
|
23
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(
|
|
24
|
-
Object.defineProperty(
|
|
102
|
+
function _objectSpread2(e) {
|
|
103
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
104
|
+
var t = null != arguments[r] ? arguments[r] : {};
|
|
105
|
+
r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {
|
|
106
|
+
_defineProperty(e, r, t[r]);
|
|
107
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
|
|
108
|
+
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
|
|
25
109
|
});
|
|
26
110
|
}
|
|
27
|
-
return
|
|
111
|
+
return e;
|
|
28
112
|
}
|
|
29
113
|
function _regeneratorRuntime() {
|
|
30
114
|
_regeneratorRuntime = function () {
|
|
31
|
-
return
|
|
115
|
+
return e;
|
|
32
116
|
};
|
|
33
|
-
var
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
117
|
+
var t,
|
|
118
|
+
e = {},
|
|
119
|
+
r = Object.prototype,
|
|
120
|
+
n = r.hasOwnProperty,
|
|
121
|
+
o = Object.defineProperty || function (t, e, r) {
|
|
122
|
+
t[e] = r.value;
|
|
38
123
|
},
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
function define(
|
|
44
|
-
return Object.defineProperty(
|
|
45
|
-
value:
|
|
124
|
+
i = "function" == typeof Symbol ? Symbol : {},
|
|
125
|
+
a = i.iterator || "@@iterator",
|
|
126
|
+
c = i.asyncIterator || "@@asyncIterator",
|
|
127
|
+
u = i.toStringTag || "@@toStringTag";
|
|
128
|
+
function define(t, e, r) {
|
|
129
|
+
return Object.defineProperty(t, e, {
|
|
130
|
+
value: r,
|
|
46
131
|
enumerable: !0,
|
|
47
132
|
configurable: !0,
|
|
48
133
|
writable: !0
|
|
49
|
-
}),
|
|
134
|
+
}), t[e];
|
|
50
135
|
}
|
|
51
136
|
try {
|
|
52
137
|
define({}, "");
|
|
53
|
-
} catch (
|
|
54
|
-
define = function (
|
|
55
|
-
return
|
|
138
|
+
} catch (t) {
|
|
139
|
+
define = function (t, e, r) {
|
|
140
|
+
return t[e] = r;
|
|
56
141
|
};
|
|
57
142
|
}
|
|
58
|
-
function wrap(
|
|
59
|
-
var
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
return
|
|
63
|
-
value: makeInvokeMethod(
|
|
64
|
-
}),
|
|
143
|
+
function wrap(t, e, r, n) {
|
|
144
|
+
var i = e && e.prototype instanceof Generator ? e : Generator,
|
|
145
|
+
a = Object.create(i.prototype),
|
|
146
|
+
c = new Context(n || []);
|
|
147
|
+
return o(a, "_invoke", {
|
|
148
|
+
value: makeInvokeMethod(t, r, c)
|
|
149
|
+
}), a;
|
|
65
150
|
}
|
|
66
|
-
function tryCatch(
|
|
151
|
+
function tryCatch(t, e, r) {
|
|
67
152
|
try {
|
|
68
153
|
return {
|
|
69
154
|
type: "normal",
|
|
70
|
-
arg:
|
|
155
|
+
arg: t.call(e, r)
|
|
71
156
|
};
|
|
72
|
-
} catch (
|
|
157
|
+
} catch (t) {
|
|
73
158
|
return {
|
|
74
159
|
type: "throw",
|
|
75
|
-
arg:
|
|
160
|
+
arg: t
|
|
76
161
|
};
|
|
77
162
|
}
|
|
78
163
|
}
|
|
79
|
-
|
|
80
|
-
var
|
|
164
|
+
e.wrap = wrap;
|
|
165
|
+
var h = "suspendedStart",
|
|
166
|
+
l = "suspendedYield",
|
|
167
|
+
f = "executing",
|
|
168
|
+
s = "completed",
|
|
169
|
+
y = {};
|
|
81
170
|
function Generator() {}
|
|
82
171
|
function GeneratorFunction() {}
|
|
83
172
|
function GeneratorFunctionPrototype() {}
|
|
84
|
-
var
|
|
85
|
-
define(
|
|
173
|
+
var p = {};
|
|
174
|
+
define(p, a, function () {
|
|
86
175
|
return this;
|
|
87
176
|
});
|
|
88
|
-
var
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
var
|
|
92
|
-
function defineIteratorMethods(
|
|
93
|
-
["next", "throw", "return"].forEach(function (
|
|
94
|
-
define(
|
|
95
|
-
return this._invoke(
|
|
177
|
+
var d = Object.getPrototypeOf,
|
|
178
|
+
v = d && d(d(values([])));
|
|
179
|
+
v && v !== r && n.call(v, a) && (p = v);
|
|
180
|
+
var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
|
|
181
|
+
function defineIteratorMethods(t) {
|
|
182
|
+
["next", "throw", "return"].forEach(function (e) {
|
|
183
|
+
define(t, e, function (t) {
|
|
184
|
+
return this._invoke(e, t);
|
|
96
185
|
});
|
|
97
186
|
});
|
|
98
187
|
}
|
|
99
|
-
function AsyncIterator(
|
|
100
|
-
function invoke(
|
|
101
|
-
var
|
|
102
|
-
if ("throw" !==
|
|
103
|
-
var
|
|
104
|
-
|
|
105
|
-
return
|
|
106
|
-
invoke("next",
|
|
107
|
-
}, function (
|
|
108
|
-
invoke("throw",
|
|
109
|
-
}) :
|
|
110
|
-
|
|
111
|
-
}, function (
|
|
112
|
-
return invoke("throw",
|
|
188
|
+
function AsyncIterator(t, e) {
|
|
189
|
+
function invoke(r, o, i, a) {
|
|
190
|
+
var c = tryCatch(t[r], t, o);
|
|
191
|
+
if ("throw" !== c.type) {
|
|
192
|
+
var u = c.arg,
|
|
193
|
+
h = u.value;
|
|
194
|
+
return h && "object" == typeof h && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
|
|
195
|
+
invoke("next", t, i, a);
|
|
196
|
+
}, function (t) {
|
|
197
|
+
invoke("throw", t, i, a);
|
|
198
|
+
}) : e.resolve(h).then(function (t) {
|
|
199
|
+
u.value = t, i(u);
|
|
200
|
+
}, function (t) {
|
|
201
|
+
return invoke("throw", t, i, a);
|
|
113
202
|
});
|
|
114
203
|
}
|
|
115
|
-
|
|
204
|
+
a(c.arg);
|
|
116
205
|
}
|
|
117
|
-
var
|
|
118
|
-
|
|
119
|
-
value: function (
|
|
206
|
+
var r;
|
|
207
|
+
o(this, "_invoke", {
|
|
208
|
+
value: function (t, n) {
|
|
120
209
|
function callInvokeWithMethodAndArg() {
|
|
121
|
-
return new
|
|
122
|
-
invoke(
|
|
210
|
+
return new e(function (e, r) {
|
|
211
|
+
invoke(t, n, e, r);
|
|
123
212
|
});
|
|
124
213
|
}
|
|
125
|
-
return
|
|
214
|
+
return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
|
126
215
|
}
|
|
127
216
|
});
|
|
128
217
|
}
|
|
129
|
-
function makeInvokeMethod(
|
|
130
|
-
var
|
|
131
|
-
return function (
|
|
132
|
-
if (
|
|
133
|
-
if (
|
|
134
|
-
if ("throw" ===
|
|
135
|
-
return
|
|
218
|
+
function makeInvokeMethod(e, r, n) {
|
|
219
|
+
var o = h;
|
|
220
|
+
return function (i, a) {
|
|
221
|
+
if (o === f) throw Error("Generator is already running");
|
|
222
|
+
if (o === s) {
|
|
223
|
+
if ("throw" === i) throw a;
|
|
224
|
+
return {
|
|
225
|
+
value: t,
|
|
226
|
+
done: !0
|
|
227
|
+
};
|
|
136
228
|
}
|
|
137
|
-
for (
|
|
138
|
-
var
|
|
139
|
-
if (
|
|
140
|
-
var
|
|
141
|
-
if (
|
|
142
|
-
if (
|
|
143
|
-
return
|
|
229
|
+
for (n.method = i, n.arg = a;;) {
|
|
230
|
+
var c = n.delegate;
|
|
231
|
+
if (c) {
|
|
232
|
+
var u = maybeInvokeDelegate(c, n);
|
|
233
|
+
if (u) {
|
|
234
|
+
if (u === y) continue;
|
|
235
|
+
return u;
|
|
144
236
|
}
|
|
145
237
|
}
|
|
146
|
-
if ("next" ===
|
|
147
|
-
if (
|
|
148
|
-
|
|
149
|
-
} else "return" ===
|
|
150
|
-
|
|
151
|
-
var
|
|
152
|
-
if ("normal" ===
|
|
153
|
-
if (
|
|
238
|
+
if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
|
|
239
|
+
if (o === h) throw o = s, n.arg;
|
|
240
|
+
n.dispatchException(n.arg);
|
|
241
|
+
} else "return" === n.method && n.abrupt("return", n.arg);
|
|
242
|
+
o = f;
|
|
243
|
+
var p = tryCatch(e, r, n);
|
|
244
|
+
if ("normal" === p.type) {
|
|
245
|
+
if (o = n.done ? s : l, p.arg === y) continue;
|
|
154
246
|
return {
|
|
155
|
-
value:
|
|
156
|
-
done:
|
|
247
|
+
value: p.arg,
|
|
248
|
+
done: n.done
|
|
157
249
|
};
|
|
158
250
|
}
|
|
159
|
-
"throw" ===
|
|
251
|
+
"throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
|
|
160
252
|
}
|
|
161
253
|
};
|
|
162
254
|
}
|
|
163
|
-
function maybeInvokeDelegate(
|
|
164
|
-
var
|
|
165
|
-
|
|
166
|
-
if (
|
|
167
|
-
var
|
|
168
|
-
if ("throw" ===
|
|
169
|
-
var
|
|
170
|
-
return
|
|
255
|
+
function maybeInvokeDelegate(e, r) {
|
|
256
|
+
var n = r.method,
|
|
257
|
+
o = e.iterator[n];
|
|
258
|
+
if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y;
|
|
259
|
+
var i = tryCatch(o, e.iterator, r.arg);
|
|
260
|
+
if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
|
|
261
|
+
var a = i.arg;
|
|
262
|
+
return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y);
|
|
171
263
|
}
|
|
172
|
-
function pushTryEntry(
|
|
173
|
-
var
|
|
174
|
-
tryLoc:
|
|
264
|
+
function pushTryEntry(t) {
|
|
265
|
+
var e = {
|
|
266
|
+
tryLoc: t[0]
|
|
175
267
|
};
|
|
176
|
-
1 in
|
|
268
|
+
1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
|
|
177
269
|
}
|
|
178
|
-
function resetTryEntry(
|
|
179
|
-
var
|
|
180
|
-
|
|
270
|
+
function resetTryEntry(t) {
|
|
271
|
+
var e = t.completion || {};
|
|
272
|
+
e.type = "normal", delete e.arg, t.completion = e;
|
|
181
273
|
}
|
|
182
|
-
function Context(
|
|
274
|
+
function Context(t) {
|
|
183
275
|
this.tryEntries = [{
|
|
184
276
|
tryLoc: "root"
|
|
185
|
-
}],
|
|
277
|
+
}], t.forEach(pushTryEntry, this), this.reset(!0);
|
|
186
278
|
}
|
|
187
|
-
function values(
|
|
188
|
-
if (
|
|
189
|
-
var
|
|
190
|
-
if (
|
|
191
|
-
if ("function" == typeof
|
|
192
|
-
if (!isNaN(
|
|
193
|
-
var
|
|
194
|
-
|
|
195
|
-
for (; ++
|
|
196
|
-
return next.value =
|
|
279
|
+
function values(e) {
|
|
280
|
+
if (e || "" === e) {
|
|
281
|
+
var r = e[a];
|
|
282
|
+
if (r) return r.call(e);
|
|
283
|
+
if ("function" == typeof e.next) return e;
|
|
284
|
+
if (!isNaN(e.length)) {
|
|
285
|
+
var o = -1,
|
|
286
|
+
i = function next() {
|
|
287
|
+
for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next;
|
|
288
|
+
return next.value = t, next.done = !0, next;
|
|
197
289
|
};
|
|
198
|
-
return
|
|
290
|
+
return i.next = i;
|
|
199
291
|
}
|
|
200
292
|
}
|
|
201
|
-
|
|
202
|
-
next: doneResult
|
|
203
|
-
};
|
|
293
|
+
throw new TypeError(typeof e + " is not iterable");
|
|
204
294
|
}
|
|
205
|
-
|
|
206
|
-
return {
|
|
207
|
-
value: undefined,
|
|
208
|
-
done: !0
|
|
209
|
-
};
|
|
210
|
-
}
|
|
211
|
-
return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", {
|
|
295
|
+
return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
|
|
212
296
|
value: GeneratorFunctionPrototype,
|
|
213
297
|
configurable: !0
|
|
214
|
-
}),
|
|
298
|
+
}), o(GeneratorFunctionPrototype, "constructor", {
|
|
215
299
|
value: GeneratorFunction,
|
|
216
300
|
configurable: !0
|
|
217
|
-
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype,
|
|
218
|
-
var
|
|
219
|
-
return !!
|
|
220
|
-
},
|
|
221
|
-
return Object.setPrototypeOf ? Object.setPrototypeOf(
|
|
222
|
-
},
|
|
301
|
+
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
|
|
302
|
+
var e = "function" == typeof t && t.constructor;
|
|
303
|
+
return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
|
|
304
|
+
}, e.mark = function (t) {
|
|
305
|
+
return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
|
|
306
|
+
}, e.awrap = function (t) {
|
|
223
307
|
return {
|
|
224
|
-
__await:
|
|
308
|
+
__await: t
|
|
225
309
|
};
|
|
226
|
-
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype,
|
|
310
|
+
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
|
|
227
311
|
return this;
|
|
228
|
-
}),
|
|
229
|
-
void 0 ===
|
|
230
|
-
var
|
|
231
|
-
return
|
|
232
|
-
return
|
|
312
|
+
}), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
|
|
313
|
+
void 0 === i && (i = Promise);
|
|
314
|
+
var a = new AsyncIterator(wrap(t, r, n, o), i);
|
|
315
|
+
return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
|
|
316
|
+
return t.done ? t.value : a.next();
|
|
233
317
|
});
|
|
234
|
-
}, defineIteratorMethods(
|
|
318
|
+
}, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
|
|
235
319
|
return this;
|
|
236
|
-
}), define(
|
|
320
|
+
}), define(g, "toString", function () {
|
|
237
321
|
return "[object Generator]";
|
|
238
|
-
}),
|
|
239
|
-
var
|
|
240
|
-
|
|
241
|
-
for (var
|
|
242
|
-
return
|
|
243
|
-
for (;
|
|
244
|
-
var
|
|
245
|
-
if (
|
|
322
|
+
}), e.keys = function (t) {
|
|
323
|
+
var e = Object(t),
|
|
324
|
+
r = [];
|
|
325
|
+
for (var n in e) r.push(n);
|
|
326
|
+
return r.reverse(), function next() {
|
|
327
|
+
for (; r.length;) {
|
|
328
|
+
var t = r.pop();
|
|
329
|
+
if (t in e) return next.value = t, next.done = !1, next;
|
|
246
330
|
}
|
|
247
331
|
return next.done = !0, next;
|
|
248
332
|
};
|
|
249
|
-
},
|
|
333
|
+
}, e.values = values, Context.prototype = {
|
|
250
334
|
constructor: Context,
|
|
251
|
-
reset: function (
|
|
252
|
-
if (this.prev = 0, this.next = 0, this.sent = this._sent =
|
|
335
|
+
reset: function (e) {
|
|
336
|
+
if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t);
|
|
253
337
|
},
|
|
254
338
|
stop: function () {
|
|
255
339
|
this.done = !0;
|
|
256
|
-
var
|
|
257
|
-
if ("throw" ===
|
|
340
|
+
var t = this.tryEntries[0].completion;
|
|
341
|
+
if ("throw" === t.type) throw t.arg;
|
|
258
342
|
return this.rval;
|
|
259
343
|
},
|
|
260
|
-
dispatchException: function (
|
|
261
|
-
if (this.done) throw
|
|
262
|
-
var
|
|
263
|
-
function handle(
|
|
264
|
-
return
|
|
344
|
+
dispatchException: function (e) {
|
|
345
|
+
if (this.done) throw e;
|
|
346
|
+
var r = this;
|
|
347
|
+
function handle(n, o) {
|
|
348
|
+
return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
|
|
265
349
|
}
|
|
266
|
-
for (var
|
|
267
|
-
var
|
|
268
|
-
|
|
269
|
-
if ("root" ===
|
|
270
|
-
if (
|
|
271
|
-
var
|
|
272
|
-
|
|
273
|
-
if (
|
|
274
|
-
if (this.prev <
|
|
275
|
-
if (this.prev <
|
|
276
|
-
} else if (
|
|
277
|
-
if (this.prev <
|
|
350
|
+
for (var o = this.tryEntries.length - 1; o >= 0; --o) {
|
|
351
|
+
var i = this.tryEntries[o],
|
|
352
|
+
a = i.completion;
|
|
353
|
+
if ("root" === i.tryLoc) return handle("end");
|
|
354
|
+
if (i.tryLoc <= this.prev) {
|
|
355
|
+
var c = n.call(i, "catchLoc"),
|
|
356
|
+
u = n.call(i, "finallyLoc");
|
|
357
|
+
if (c && u) {
|
|
358
|
+
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
|
|
359
|
+
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
|
360
|
+
} else if (c) {
|
|
361
|
+
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
|
|
278
362
|
} else {
|
|
279
|
-
if (!
|
|
280
|
-
if (this.prev <
|
|
363
|
+
if (!u) throw Error("try statement without catch or finally");
|
|
364
|
+
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
|
281
365
|
}
|
|
282
366
|
}
|
|
283
367
|
}
|
|
284
368
|
},
|
|
285
|
-
abrupt: function (
|
|
286
|
-
for (var
|
|
287
|
-
var
|
|
288
|
-
if (
|
|
289
|
-
var
|
|
369
|
+
abrupt: function (t, e) {
|
|
370
|
+
for (var r = this.tryEntries.length - 1; r >= 0; --r) {
|
|
371
|
+
var o = this.tryEntries[r];
|
|
372
|
+
if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
|
|
373
|
+
var i = o;
|
|
290
374
|
break;
|
|
291
375
|
}
|
|
292
376
|
}
|
|
293
|
-
|
|
294
|
-
var
|
|
295
|
-
return
|
|
377
|
+
i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
|
|
378
|
+
var a = i ? i.completion : {};
|
|
379
|
+
return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
|
|
296
380
|
},
|
|
297
|
-
complete: function (
|
|
298
|
-
if ("throw" ===
|
|
299
|
-
return "break" ===
|
|
381
|
+
complete: function (t, e) {
|
|
382
|
+
if ("throw" === t.type) throw t.arg;
|
|
383
|
+
return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y;
|
|
300
384
|
},
|
|
301
|
-
finish: function (
|
|
302
|
-
for (var
|
|
303
|
-
var
|
|
304
|
-
if (
|
|
385
|
+
finish: function (t) {
|
|
386
|
+
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
|
387
|
+
var r = this.tryEntries[e];
|
|
388
|
+
if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
|
|
305
389
|
}
|
|
306
390
|
},
|
|
307
|
-
catch: function (
|
|
308
|
-
for (var
|
|
309
|
-
var
|
|
310
|
-
if (
|
|
311
|
-
var
|
|
312
|
-
if ("throw" ===
|
|
313
|
-
var
|
|
314
|
-
resetTryEntry(
|
|
391
|
+
catch: function (t) {
|
|
392
|
+
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
|
393
|
+
var r = this.tryEntries[e];
|
|
394
|
+
if (r.tryLoc === t) {
|
|
395
|
+
var n = r.completion;
|
|
396
|
+
if ("throw" === n.type) {
|
|
397
|
+
var o = n.arg;
|
|
398
|
+
resetTryEntry(r);
|
|
315
399
|
}
|
|
316
|
-
return
|
|
400
|
+
return o;
|
|
317
401
|
}
|
|
318
402
|
}
|
|
319
|
-
throw
|
|
403
|
+
throw Error("illegal catch attempt");
|
|
320
404
|
},
|
|
321
|
-
delegateYield: function (
|
|
405
|
+
delegateYield: function (e, r, n) {
|
|
322
406
|
return this.delegate = {
|
|
323
|
-
iterator: values(
|
|
324
|
-
resultName:
|
|
325
|
-
nextLoc:
|
|
326
|
-
}, "next" === this.method && (this.arg =
|
|
407
|
+
iterator: values(e),
|
|
408
|
+
resultName: r,
|
|
409
|
+
nextLoc: n
|
|
410
|
+
}, "next" === this.method && (this.arg = t), y;
|
|
327
411
|
}
|
|
328
|
-
},
|
|
412
|
+
}, e;
|
|
329
413
|
}
|
|
330
|
-
function
|
|
331
|
-
|
|
332
|
-
throw new TypeError("Cannot call a class as a function");
|
|
333
|
-
}
|
|
414
|
+
function _toConsumableArray(r) {
|
|
415
|
+
return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
|
|
334
416
|
}
|
|
335
|
-
function
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
if ("
|
|
341
|
-
|
|
342
|
-
}
|
|
343
|
-
}
|
|
344
|
-
function _createClass(Constructor, protoProps, staticProps) {
|
|
345
|
-
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
346
|
-
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
347
|
-
Object.defineProperty(Constructor, "prototype", {
|
|
348
|
-
writable: false
|
|
349
|
-
});
|
|
350
|
-
return Constructor;
|
|
351
|
-
}
|
|
352
|
-
function _defineProperty(obj, key, value) {
|
|
353
|
-
key = _toPropertyKey(key);
|
|
354
|
-
if (key in obj) {
|
|
355
|
-
Object.defineProperty(obj, key, {
|
|
356
|
-
value: value,
|
|
357
|
-
enumerable: true,
|
|
358
|
-
configurable: true,
|
|
359
|
-
writable: true
|
|
360
|
-
});
|
|
361
|
-
} else {
|
|
362
|
-
obj[key] = value;
|
|
417
|
+
function _toPrimitive(t, r) {
|
|
418
|
+
if ("object" != typeof t || !t) return t;
|
|
419
|
+
var e = t[Symbol.toPrimitive];
|
|
420
|
+
if (void 0 !== e) {
|
|
421
|
+
var i = e.call(t, r || "default");
|
|
422
|
+
if ("object" != typeof i) return i;
|
|
423
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
363
424
|
}
|
|
364
|
-
return
|
|
365
|
-
}
|
|
366
|
-
function _toConsumableArray(arr) {
|
|
367
|
-
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
|
425
|
+
return ("string" === r ? String : Number)(t);
|
|
368
426
|
}
|
|
369
|
-
function
|
|
370
|
-
|
|
427
|
+
function _toPropertyKey(t) {
|
|
428
|
+
var i = _toPrimitive(t, "string");
|
|
429
|
+
return "symbol" == typeof i ? i : i + "";
|
|
371
430
|
}
|
|
372
|
-
function
|
|
373
|
-
if (
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
378
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
379
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
380
|
-
if (n === "Map" || n === "Set") return Array.from(o);
|
|
381
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
382
|
-
}
|
|
383
|
-
function _arrayLikeToArray(arr, len) {
|
|
384
|
-
if (len == null || len > arr.length) len = arr.length;
|
|
385
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
386
|
-
return arr2;
|
|
387
|
-
}
|
|
388
|
-
function _nonIterableSpread() {
|
|
389
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
390
|
-
}
|
|
391
|
-
function _createForOfIteratorHelper(o, allowArrayLike) {
|
|
392
|
-
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
|
|
393
|
-
if (!it) {
|
|
394
|
-
if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
|
|
395
|
-
if (it) o = it;
|
|
396
|
-
var i = 0;
|
|
397
|
-
var F = function () {};
|
|
398
|
-
return {
|
|
399
|
-
s: F,
|
|
400
|
-
n: function () {
|
|
401
|
-
if (i >= o.length) return {
|
|
402
|
-
done: true
|
|
403
|
-
};
|
|
404
|
-
return {
|
|
405
|
-
done: false,
|
|
406
|
-
value: o[i++]
|
|
407
|
-
};
|
|
408
|
-
},
|
|
409
|
-
e: function (e) {
|
|
410
|
-
throw e;
|
|
411
|
-
},
|
|
412
|
-
f: F
|
|
413
|
-
};
|
|
414
|
-
}
|
|
415
|
-
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
416
|
-
}
|
|
417
|
-
var normalCompletion = true,
|
|
418
|
-
didErr = false,
|
|
419
|
-
err;
|
|
420
|
-
return {
|
|
421
|
-
s: function () {
|
|
422
|
-
it = it.call(o);
|
|
423
|
-
},
|
|
424
|
-
n: function () {
|
|
425
|
-
var step = it.next();
|
|
426
|
-
normalCompletion = step.done;
|
|
427
|
-
return step;
|
|
428
|
-
},
|
|
429
|
-
e: function (e) {
|
|
430
|
-
didErr = true;
|
|
431
|
-
err = e;
|
|
432
|
-
},
|
|
433
|
-
f: function () {
|
|
434
|
-
try {
|
|
435
|
-
if (!normalCompletion && it.return != null) it.return();
|
|
436
|
-
} finally {
|
|
437
|
-
if (didErr) throw err;
|
|
438
|
-
}
|
|
439
|
-
}
|
|
440
|
-
};
|
|
441
|
-
}
|
|
442
|
-
function _toPrimitive(input, hint) {
|
|
443
|
-
if (typeof input !== "object" || input === null) return input;
|
|
444
|
-
var prim = input[Symbol.toPrimitive];
|
|
445
|
-
if (prim !== undefined) {
|
|
446
|
-
var res = prim.call(input, hint || "default");
|
|
447
|
-
if (typeof res !== "object") return res;
|
|
448
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
431
|
+
function _unsupportedIterableToArray(r, a) {
|
|
432
|
+
if (r) {
|
|
433
|
+
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
434
|
+
var t = {}.toString.call(r).slice(8, -1);
|
|
435
|
+
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
|
|
449
436
|
}
|
|
450
|
-
return (hint === "string" ? String : Number)(input);
|
|
451
|
-
}
|
|
452
|
-
function _toPropertyKey(arg) {
|
|
453
|
-
var key = _toPrimitive(arg, "string");
|
|
454
|
-
return typeof key === "symbol" ? key : String(key);
|
|
455
437
|
}
|
|
456
438
|
|
|
457
439
|
/**
|
|
@@ -4705,7 +4687,7 @@ var Token = /*#__PURE__*/function () {
|
|
|
4705
4687
|
* ways to get information about the entire group, including properties and
|
|
4706
4688
|
* states
|
|
4707
4689
|
*/
|
|
4708
|
-
var TokenGroup = /*#__PURE__*/function (
|
|
4690
|
+
var TokenGroup = /*#__PURE__*/function () {
|
|
4709
4691
|
function TokenGroup(name, tokens, properties) {
|
|
4710
4692
|
_classCallCheck(this, TokenGroup);
|
|
4711
4693
|
this.kind = 'TokenGroup';
|
|
@@ -4721,7 +4703,7 @@ var TokenGroup = /*#__PURE__*/function (_Symbol$iterator) {
|
|
|
4721
4703
|
});
|
|
4722
4704
|
}
|
|
4723
4705
|
_createClass(TokenGroup, [{
|
|
4724
|
-
key:
|
|
4706
|
+
key: Symbol.iterator,
|
|
4725
4707
|
value: /*#__PURE__*/_regeneratorRuntime().mark(function value() {
|
|
4726
4708
|
var _iterator, _step, child;
|
|
4727
4709
|
return _regeneratorRuntime().wrap(function value$(_context) {
|
|
@@ -4925,7 +4907,7 @@ var TokenGroup = /*#__PURE__*/function (_Symbol$iterator) {
|
|
|
4925
4907
|
}
|
|
4926
4908
|
}]);
|
|
4927
4909
|
return TokenGroup;
|
|
4928
|
-
}(
|
|
4910
|
+
}();
|
|
4929
4911
|
|
|
4930
4912
|
/**
|
|
4931
4913
|
* Copyright IBM Corp. 2018, 2023
|