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