@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/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 ownKeys(object, enumerableOnly) {
9
- var keys = Object.keys(object);
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 symbols = Object.getOwnPropertySymbols(object);
12
- enumerableOnly && (symbols = symbols.filter(function (sym) {
13
- return Object.getOwnPropertyDescriptor(object, sym).enumerable;
14
- })), keys.push.apply(keys, symbols);
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 keys;
100
+ return t;
17
101
  }
18
- function _objectSpread2(target) {
19
- for (var i = 1; i < arguments.length; i++) {
20
- var source = null != arguments[i] ? arguments[i] : {};
21
- i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
22
- _defineProperty(target, key, source[key]);
23
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {
24
- Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
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 target;
111
+ return e;
28
112
  }
29
113
  function _regeneratorRuntime() {
30
114
  _regeneratorRuntime = function () {
31
- return exports;
115
+ return e;
32
116
  };
33
- var exports = {},
34
- Op = Object.prototype,
35
- hasOwn = Op.hasOwnProperty,
36
- defineProperty = Object.defineProperty || function (obj, key, desc) {
37
- obj[key] = desc.value;
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
- $Symbol = "function" == typeof Symbol ? Symbol : {},
40
- iteratorSymbol = $Symbol.iterator || "@@iterator",
41
- asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
42
- toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
43
- function define(obj, key, value) {
44
- return Object.defineProperty(obj, key, {
45
- value: 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
- }), obj[key];
134
+ }), t[e];
50
135
  }
51
136
  try {
52
137
  define({}, "");
53
- } catch (err) {
54
- define = function (obj, key, value) {
55
- return obj[key] = value;
138
+ } catch (t) {
139
+ define = function (t, e, r) {
140
+ return t[e] = r;
56
141
  };
57
142
  }
58
- function wrap(innerFn, outerFn, self, tryLocsList) {
59
- var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
60
- generator = Object.create(protoGenerator.prototype),
61
- context = new Context(tryLocsList || []);
62
- return defineProperty(generator, "_invoke", {
63
- value: makeInvokeMethod(innerFn, self, context)
64
- }), generator;
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(fn, obj, arg) {
151
+ function tryCatch(t, e, r) {
67
152
  try {
68
153
  return {
69
154
  type: "normal",
70
- arg: fn.call(obj, arg)
155
+ arg: t.call(e, r)
71
156
  };
72
- } catch (err) {
157
+ } catch (t) {
73
158
  return {
74
159
  type: "throw",
75
- arg: err
160
+ arg: t
76
161
  };
77
162
  }
78
163
  }
79
- exports.wrap = wrap;
80
- var ContinueSentinel = {};
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 IteratorPrototype = {};
85
- define(IteratorPrototype, iteratorSymbol, function () {
173
+ var p = {};
174
+ define(p, a, function () {
86
175
  return this;
87
176
  });
88
- var getProto = Object.getPrototypeOf,
89
- NativeIteratorPrototype = getProto && getProto(getProto(values([])));
90
- NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
91
- var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
92
- function defineIteratorMethods(prototype) {
93
- ["next", "throw", "return"].forEach(function (method) {
94
- define(prototype, method, function (arg) {
95
- return this._invoke(method, arg);
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(generator, PromiseImpl) {
100
- function invoke(method, arg, resolve, reject) {
101
- var record = tryCatch(generator[method], generator, arg);
102
- if ("throw" !== record.type) {
103
- var result = record.arg,
104
- value = result.value;
105
- return value && "object" == typeof value && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
106
- invoke("next", value, resolve, reject);
107
- }, function (err) {
108
- invoke("throw", err, resolve, reject);
109
- }) : PromiseImpl.resolve(value).then(function (unwrapped) {
110
- result.value = unwrapped, resolve(result);
111
- }, function (error) {
112
- return invoke("throw", error, resolve, reject);
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
- reject(record.arg);
204
+ a(c.arg);
116
205
  }
117
- var previousPromise;
118
- defineProperty(this, "_invoke", {
119
- value: function (method, arg) {
206
+ var r;
207
+ o(this, "_invoke", {
208
+ value: function (t, n) {
120
209
  function callInvokeWithMethodAndArg() {
121
- return new PromiseImpl(function (resolve, reject) {
122
- invoke(method, arg, resolve, reject);
210
+ return new e(function (e, r) {
211
+ invoke(t, n, e, r);
123
212
  });
124
213
  }
125
- return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
214
+ return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
126
215
  }
127
216
  });
128
217
  }
129
- function makeInvokeMethod(innerFn, self, context) {
130
- var state = "suspendedStart";
131
- return function (method, arg) {
132
- if ("executing" === state) throw new Error("Generator is already running");
133
- if ("completed" === state) {
134
- if ("throw" === method) throw arg;
135
- return doneResult();
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 (context.method = method, context.arg = arg;;) {
138
- var delegate = context.delegate;
139
- if (delegate) {
140
- var delegateResult = maybeInvokeDelegate(delegate, context);
141
- if (delegateResult) {
142
- if (delegateResult === ContinueSentinel) continue;
143
- return delegateResult;
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" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
147
- if ("suspendedStart" === state) throw state = "completed", context.arg;
148
- context.dispatchException(context.arg);
149
- } else "return" === context.method && context.abrupt("return", context.arg);
150
- state = "executing";
151
- var record = tryCatch(innerFn, self, context);
152
- if ("normal" === record.type) {
153
- if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
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: record.arg,
156
- done: context.done
247
+ value: p.arg,
248
+ done: n.done
157
249
  };
158
250
  }
159
- "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
251
+ "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
160
252
  }
161
253
  };
162
254
  }
163
- function maybeInvokeDelegate(delegate, context) {
164
- var methodName = context.method,
165
- method = delegate.iterator[methodName];
166
- 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;
167
- var record = tryCatch(method, delegate.iterator, context.arg);
168
- if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
169
- var info = record.arg;
170
- 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);
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(locs) {
173
- var entry = {
174
- tryLoc: locs[0]
264
+ function pushTryEntry(t) {
265
+ var e = {
266
+ tryLoc: t[0]
175
267
  };
176
- 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
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(entry) {
179
- var record = entry.completion || {};
180
- record.type = "normal", delete record.arg, entry.completion = record;
270
+ function resetTryEntry(t) {
271
+ var e = t.completion || {};
272
+ e.type = "normal", delete e.arg, t.completion = e;
181
273
  }
182
- function Context(tryLocsList) {
274
+ function Context(t) {
183
275
  this.tryEntries = [{
184
276
  tryLoc: "root"
185
- }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
277
+ }], t.forEach(pushTryEntry, this), this.reset(!0);
186
278
  }
187
- function values(iterable) {
188
- if (iterable) {
189
- var iteratorMethod = iterable[iteratorSymbol];
190
- if (iteratorMethod) return iteratorMethod.call(iterable);
191
- if ("function" == typeof iterable.next) return iterable;
192
- if (!isNaN(iterable.length)) {
193
- var i = -1,
194
- next = function next() {
195
- for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
196
- return next.value = undefined, next.done = !0, next;
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 next.next = next;
290
+ return i.next = i;
199
291
  }
200
292
  }
201
- return {
202
- next: doneResult
203
- };
293
+ throw new TypeError(typeof e + " is not iterable");
204
294
  }
205
- function doneResult() {
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
- }), defineProperty(GeneratorFunctionPrototype, "constructor", {
298
+ }), o(GeneratorFunctionPrototype, "constructor", {
215
299
  value: GeneratorFunction,
216
300
  configurable: !0
217
- }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
218
- var ctor = "function" == typeof genFun && genFun.constructor;
219
- return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
220
- }, exports.mark = function (genFun) {
221
- return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
222
- }, exports.awrap = function (arg) {
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: arg
308
+ __await: t
225
309
  };
226
- }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
310
+ }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
227
311
  return this;
228
- }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
229
- void 0 === PromiseImpl && (PromiseImpl = Promise);
230
- var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
231
- return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {
232
- return result.done ? result.value : iter.next();
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(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
318
+ }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
235
319
  return this;
236
- }), define(Gp, "toString", function () {
320
+ }), define(g, "toString", function () {
237
321
  return "[object Generator]";
238
- }), exports.keys = function (val) {
239
- var object = Object(val),
240
- keys = [];
241
- for (var key in object) keys.push(key);
242
- return keys.reverse(), function next() {
243
- for (; keys.length;) {
244
- var key = keys.pop();
245
- if (key in object) return next.value = key, next.done = !1, next;
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
- }, exports.values = values, Context.prototype = {
333
+ }, e.values = values, Context.prototype = {
250
334
  constructor: Context,
251
- reset: function (skipTempReset) {
252
- 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);
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 rootRecord = this.tryEntries[0].completion;
257
- if ("throw" === rootRecord.type) throw rootRecord.arg;
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 (exception) {
261
- if (this.done) throw exception;
262
- var context = this;
263
- function handle(loc, caught) {
264
- return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
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 i = this.tryEntries.length - 1; i >= 0; --i) {
267
- var entry = this.tryEntries[i],
268
- record = entry.completion;
269
- if ("root" === entry.tryLoc) return handle("end");
270
- if (entry.tryLoc <= this.prev) {
271
- var hasCatch = hasOwn.call(entry, "catchLoc"),
272
- hasFinally = hasOwn.call(entry, "finallyLoc");
273
- if (hasCatch && hasFinally) {
274
- if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
275
- if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
276
- } else if (hasCatch) {
277
- if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
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 (!hasFinally) throw new Error("try statement without catch or finally");
280
- if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
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 (type, arg) {
286
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
287
- var entry = this.tryEntries[i];
288
- if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
289
- var finallyEntry = entry;
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
- finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
294
- var record = finallyEntry ? finallyEntry.completion : {};
295
- return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
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 (record, afterLoc) {
298
- if ("throw" === record.type) throw record.arg;
299
- 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;
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 (finallyLoc) {
302
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
303
- var entry = this.tryEntries[i];
304
- if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
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 (tryLoc) {
308
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
309
- var entry = this.tryEntries[i];
310
- if (entry.tryLoc === tryLoc) {
311
- var record = entry.completion;
312
- if ("throw" === record.type) {
313
- var thrown = record.arg;
314
- resetTryEntry(entry);
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 thrown;
400
+ return o;
317
401
  }
318
402
  }
319
- throw new Error("illegal catch attempt");
403
+ throw Error("illegal catch attempt");
320
404
  },
321
- delegateYield: function (iterable, resultName, nextLoc) {
405
+ delegateYield: function (e, r, n) {
322
406
  return this.delegate = {
323
- iterator: values(iterable),
324
- resultName: resultName,
325
- nextLoc: nextLoc
326
- }, "next" === this.method && (this.arg = undefined), ContinueSentinel;
407
+ iterator: values(e),
408
+ resultName: r,
409
+ nextLoc: n
410
+ }, "next" === this.method && (this.arg = t), y;
327
411
  }
328
- }, exports;
412
+ }, e;
329
413
  }
330
- function _classCallCheck(instance, Constructor) {
331
- if (!(instance instanceof Constructor)) {
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 _defineProperties(target, props) {
336
- for (var i = 0; i < props.length; i++) {
337
- var descriptor = props[i];
338
- descriptor.enumerable = descriptor.enumerable || false;
339
- descriptor.configurable = true;
340
- if ("value" in descriptor) descriptor.writable = true;
341
- Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
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 obj;
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 _arrayWithoutHoles(arr) {
370
- if (Array.isArray(arr)) return _arrayLikeToArray(arr);
427
+ function _toPropertyKey(t) {
428
+ var i = _toPrimitive(t, "string");
429
+ return "symbol" == typeof i ? i : i + "";
371
430
  }
372
- function _iterableToArray(iter) {
373
- if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
374
- }
375
- function _unsupportedIterableToArray(o, minLen) {
376
- if (!o) return;
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 (_Symbol$iterator) {
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: _Symbol$iterator,
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
- }(Symbol.iterator);
4910
+ }();
4929
4911
 
4930
4912
  /**
4931
4913
  * Copyright IBM Corp. 2018, 2023