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