@vitessce/neuroglancer 3.9.2 → 3.9.3

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.
@@ -1,5 +1,5 @@
1
1
  import * as React$1 from "react";
2
- import React__default, { useContext, forwardRef, useRef, useMemo, createContext, createElement, PureComponent, Suspense, useCallback, useState, useEffect } from "react";
2
+ import React__default, { useContext, forwardRef, useRef, useMemo, createContext, createElement, PureComponent, useEffect, Suspense, useCallback, useState } from "react";
3
3
  import { useLoaders, useCoordinationScopes, useCoordination, useObsSetsData, useObsEmbeddingData, TitleInfo } from "@vitessce/vit-s";
4
4
  import * as ReactDOM from "react-dom";
5
5
  const ViewType$1 = {
@@ -25,6 +25,7 @@ const ViewType$1 = {
25
25
  OBS_SET_COMPOSITION_BAR_PLOT: "obsSetCompositionBarPlot",
26
26
  FEATURE_SET_ENRICHMENT_BAR_PLOT: "featureSetEnrichmentBarPlot",
27
27
  BIOMARKER_SELECT: "biomarkerSelect",
28
+ BIOMARKER_SELECT_ALT: "biomarkerSelectAlt",
28
29
  COMPARATIVE_HEADING: "comparativeHeading",
29
30
  LINK_CONTROLLER: "linkController",
30
31
  NEUROGLANCER: "neuroglancer",
@@ -1222,6 +1223,17 @@ const COMPONENT_COORDINATION_TYPES = {
1222
1223
  CoordinationType$1.OBS_SET_FILTER
1223
1224
  // TODO: create coordination types for internal state of the biomarker selection view?
1224
1225
  ],
1226
+ [ViewType$1.BIOMARKER_SELECT_ALT]: [
1227
+ CoordinationType$1.DATASET,
1228
+ CoordinationType$1.OBS_TYPE,
1229
+ CoordinationType$1.SAMPLE_TYPE,
1230
+ CoordinationType$1.FEATURE_SELECTION,
1231
+ CoordinationType$1.SAMPLE_SET_SELECTION,
1232
+ CoordinationType$1.SAMPLE_SET_FILTER,
1233
+ CoordinationType$1.OBS_SET_SELECTION,
1234
+ CoordinationType$1.OBS_SET_FILTER
1235
+ // TODO: create coordination types for internal state of the biomarker selection view?
1236
+ ],
1225
1237
  [ViewType$1.COMPARATIVE_HEADING]: [
1226
1238
  CoordinationType$1.DATASET,
1227
1239
  CoordinationType$1.OBS_TYPE,
@@ -1548,8 +1560,8 @@ function arrayLikeKeys(value, inherited) {
1548
1560
  return result;
1549
1561
  }
1550
1562
  function overArg(func, transform) {
1551
- return function(arg) {
1552
- return func(transform(arg));
1563
+ return function(arg2) {
1564
+ return func(transform(arg2));
1553
1565
  };
1554
1566
  }
1555
1567
  var nativeKeys = overArg(Object.keys, Object);
@@ -1705,9 +1717,9 @@ function mapCacheHas(key) {
1705
1717
  return getMapData(this, key).has(key);
1706
1718
  }
1707
1719
  function mapCacheSet(key, value) {
1708
- var data = getMapData(this, key), size = data.size;
1720
+ var data = getMapData(this, key), size2 = data.size;
1709
1721
  data.set(key, value);
1710
- this.size += data.size == size ? 0 : 1;
1722
+ this.size += data.size == size2 ? 0 : 1;
1711
1723
  return this;
1712
1724
  }
1713
1725
  function MapCache(entries) {
@@ -2210,7 +2222,7 @@ function baseIsEqual(value, other, bitmask, customizer, stack) {
2210
2222
  }
2211
2223
  return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);
2212
2224
  }
2213
- function isEqual(value, other) {
2225
+ function isEqual$1(value, other) {
2214
2226
  return baseIsEqual(value, other);
2215
2227
  }
2216
2228
  function isNil(value) {
@@ -2255,45 +2267,45 @@ function requireRbush_min() {
2255
2267
  !function(t, i) {
2256
2268
  module2.exports = i();
2257
2269
  }(rbush_min, function() {
2258
- function t(t2, r2, e2, a2, h2) {
2259
- !function t3(n2, r3, e3, a3, h3) {
2270
+ function t(t2, r3, e2, a2, h2) {
2271
+ !function t3(n2, r4, e3, a3, h3) {
2260
2272
  for (; a3 > e3; ) {
2261
2273
  if (a3 - e3 > 600) {
2262
- var o2 = a3 - e3 + 1, s2 = r3 - e3 + 1, l2 = Math.log(o2), f2 = 0.5 * Math.exp(2 * l2 / 3), u2 = 0.5 * Math.sqrt(l2 * f2 * (o2 - f2) / o2) * (s2 - o2 / 2 < 0 ? -1 : 1), m2 = Math.max(e3, Math.floor(r3 - s2 * f2 / o2 + u2)), c2 = Math.min(a3, Math.floor(r3 + (o2 - s2) * f2 / o2 + u2));
2263
- t3(n2, r3, m2, c2, h3);
2274
+ var o2 = a3 - e3 + 1, s2 = r4 - e3 + 1, l2 = Math.log(o2), f2 = 0.5 * Math.exp(2 * l2 / 3), u2 = 0.5 * Math.sqrt(l2 * f2 * (o2 - f2) / o2) * (s2 - o2 / 2 < 0 ? -1 : 1), m2 = Math.max(e3, Math.floor(r4 - s2 * f2 / o2 + u2)), c2 = Math.min(a3, Math.floor(r4 + (o2 - s2) * f2 / o2 + u2));
2275
+ t3(n2, r4, m2, c2, h3);
2264
2276
  }
2265
- var p2 = n2[r3], d2 = e3, x = a3;
2266
- for (i(n2, e3, r3), h3(n2[a3], p2) > 0 && i(n2, e3, a3); d2 < x; ) {
2277
+ var p2 = n2[r4], d2 = e3, x = a3;
2278
+ for (i(n2, e3, r4), h3(n2[a3], p2) > 0 && i(n2, e3, a3); d2 < x; ) {
2267
2279
  for (i(n2, d2, x), d2++, x--; h3(n2[d2], p2) < 0; ) d2++;
2268
2280
  for (; h3(n2[x], p2) > 0; ) x--;
2269
2281
  }
2270
- 0 === h3(n2[e3], p2) ? i(n2, e3, x) : i(n2, ++x, a3), x <= r3 && (e3 = x + 1), r3 <= x && (a3 = x - 1);
2282
+ 0 === h3(n2[e3], p2) ? i(n2, e3, x) : i(n2, ++x, a3), x <= r4 && (e3 = x + 1), r4 <= x && (a3 = x - 1);
2271
2283
  }
2272
- }(t2, r2, e2 || 0, a2 || t2.length - 1, h2 || n);
2284
+ }(t2, r3, e2 || 0, a2 || t2.length - 1, h2 || n);
2273
2285
  }
2274
2286
  function i(t2, i2, n2) {
2275
- var r2 = t2[i2];
2276
- t2[i2] = t2[n2], t2[n2] = r2;
2287
+ var r3 = t2[i2];
2288
+ t2[i2] = t2[n2], t2[n2] = r3;
2277
2289
  }
2278
2290
  function n(t2, i2) {
2279
2291
  return t2 < i2 ? -1 : t2 > i2 ? 1 : 0;
2280
2292
  }
2281
- var r = function(t2) {
2293
+ var r2 = function(t2) {
2282
2294
  void 0 === t2 && (t2 = 9), this._maxEntries = Math.max(4, t2), this._minEntries = Math.max(2, Math.ceil(0.4 * this._maxEntries)), this.clear();
2283
2295
  };
2284
2296
  function e(t2, i2, n2) {
2285
2297
  if (!n2) return i2.indexOf(t2);
2286
- for (var r2 = 0; r2 < i2.length; r2++) if (n2(t2, i2[r2])) return r2;
2298
+ for (var r3 = 0; r3 < i2.length; r3++) if (n2(t2, i2[r3])) return r3;
2287
2299
  return -1;
2288
2300
  }
2289
2301
  function a(t2, i2) {
2290
2302
  h(t2, 0, t2.children.length, i2, t2);
2291
2303
  }
2292
- function h(t2, i2, n2, r2, e2) {
2304
+ function h(t2, i2, n2, r3, e2) {
2293
2305
  e2 || (e2 = p(null)), e2.minX = 1 / 0, e2.minY = 1 / 0, e2.maxX = -1 / 0, e2.maxY = -1 / 0;
2294
2306
  for (var a2 = i2; a2 < n2; a2++) {
2295
2307
  var h2 = t2.children[a2];
2296
- o(e2, t2.leaf ? r2(h2) : h2);
2308
+ o(e2, t2.leaf ? r3(h2) : h2);
2297
2309
  }
2298
2310
  return e2;
2299
2311
  }
@@ -2321,31 +2333,31 @@ function requireRbush_min() {
2321
2333
  function p(t2) {
2322
2334
  return { children: t2, height: 1, leaf: true, minX: 1 / 0, minY: 1 / 0, maxX: -1 / 0, maxY: -1 / 0 };
2323
2335
  }
2324
- function d(i2, n2, r2, e2, a2) {
2325
- for (var h2 = [n2, r2]; h2.length; ) if (!((r2 = h2.pop()) - (n2 = h2.pop()) <= e2)) {
2326
- var o2 = n2 + Math.ceil((r2 - n2) / e2 / 2) * e2;
2327
- t(i2, o2, n2, r2, a2), h2.push(n2, o2, o2, r2);
2336
+ function d(i2, n2, r3, e2, a2) {
2337
+ for (var h2 = [n2, r3]; h2.length; ) if (!((r3 = h2.pop()) - (n2 = h2.pop()) <= e2)) {
2338
+ var o2 = n2 + Math.ceil((r3 - n2) / e2 / 2) * e2;
2339
+ t(i2, o2, n2, r3, a2), h2.push(n2, o2, o2, r3);
2328
2340
  }
2329
2341
  }
2330
- return r.prototype.all = function() {
2342
+ return r2.prototype.all = function() {
2331
2343
  return this._all(this.data, []);
2332
- }, r.prototype.search = function(t2) {
2344
+ }, r2.prototype.search = function(t2) {
2333
2345
  var i2 = this.data, n2 = [];
2334
2346
  if (!c(t2, i2)) return n2;
2335
- for (var r2 = this.toBBox, e2 = []; i2; ) {
2347
+ for (var r3 = this.toBBox, e2 = []; i2; ) {
2336
2348
  for (var a2 = 0; a2 < i2.children.length; a2++) {
2337
- var h2 = i2.children[a2], o2 = i2.leaf ? r2(h2) : h2;
2349
+ var h2 = i2.children[a2], o2 = i2.leaf ? r3(h2) : h2;
2338
2350
  c(t2, o2) && (i2.leaf ? n2.push(h2) : m(t2, o2) ? this._all(h2, n2) : e2.push(h2));
2339
2351
  }
2340
2352
  i2 = e2.pop();
2341
2353
  }
2342
2354
  return n2;
2343
- }, r.prototype.collides = function(t2) {
2355
+ }, r2.prototype.collides = function(t2) {
2344
2356
  var i2 = this.data;
2345
2357
  if (!c(t2, i2)) return false;
2346
2358
  for (var n2 = []; i2; ) {
2347
- for (var r2 = 0; r2 < i2.children.length; r2++) {
2348
- var e2 = i2.children[r2], a2 = i2.leaf ? this.toBBox(e2) : e2;
2359
+ for (var r3 = 0; r3 < i2.children.length; r3++) {
2360
+ var e2 = i2.children[r3], a2 = i2.leaf ? this.toBBox(e2) : e2;
2349
2361
  if (c(t2, a2)) {
2350
2362
  if (i2.leaf || m(t2, a2)) return true;
2351
2363
  n2.push(e2);
@@ -2354,7 +2366,7 @@ function requireRbush_min() {
2354
2366
  i2 = n2.pop();
2355
2367
  }
2356
2368
  return false;
2357
- }, r.prototype.load = function(t2) {
2369
+ }, r2.prototype.load = function(t2) {
2358
2370
  if (!t2 || !t2.length) return this;
2359
2371
  if (t2.length < this._minEntries) {
2360
2372
  for (var i2 = 0; i2 < t2.length; i2++) this.insert(t2[i2]);
@@ -2364,44 +2376,44 @@ function requireRbush_min() {
2364
2376
  if (this.data.children.length) if (this.data.height === n2.height) this._splitRoot(this.data, n2);
2365
2377
  else {
2366
2378
  if (this.data.height < n2.height) {
2367
- var r2 = this.data;
2368
- this.data = n2, n2 = r2;
2379
+ var r3 = this.data;
2380
+ this.data = n2, n2 = r3;
2369
2381
  }
2370
2382
  this._insert(n2, this.data.height - n2.height - 1, true);
2371
2383
  }
2372
2384
  else this.data = n2;
2373
2385
  return this;
2374
- }, r.prototype.insert = function(t2) {
2386
+ }, r2.prototype.insert = function(t2) {
2375
2387
  return t2 && this._insert(t2, this.data.height - 1), this;
2376
- }, r.prototype.clear = function() {
2388
+ }, r2.prototype.clear = function() {
2377
2389
  return this.data = p([]), this;
2378
- }, r.prototype.remove = function(t2, i2) {
2390
+ }, r2.prototype.remove = function(t2, i2) {
2379
2391
  if (!t2) return this;
2380
- for (var n2, r2, a2, h2 = this.data, o2 = this.toBBox(t2), s2 = [], l2 = []; h2 || s2.length; ) {
2381
- if (h2 || (h2 = s2.pop(), r2 = s2[s2.length - 1], n2 = l2.pop(), a2 = true), h2.leaf) {
2392
+ for (var n2, r3, a2, h2 = this.data, o2 = this.toBBox(t2), s2 = [], l2 = []; h2 || s2.length; ) {
2393
+ if (h2 || (h2 = s2.pop(), r3 = s2[s2.length - 1], n2 = l2.pop(), a2 = true), h2.leaf) {
2382
2394
  var f2 = e(t2, h2.children, i2);
2383
2395
  if (-1 !== f2) return h2.children.splice(f2, 1), s2.push(h2), this._condense(s2), this;
2384
2396
  }
2385
- a2 || h2.leaf || !m(h2, o2) ? r2 ? (n2++, h2 = r2.children[n2], a2 = false) : h2 = null : (s2.push(h2), l2.push(n2), n2 = 0, r2 = h2, h2 = h2.children[0]);
2397
+ a2 || h2.leaf || !m(h2, o2) ? r3 ? (n2++, h2 = r3.children[n2], a2 = false) : h2 = null : (s2.push(h2), l2.push(n2), n2 = 0, r3 = h2, h2 = h2.children[0]);
2386
2398
  }
2387
2399
  return this;
2388
- }, r.prototype.toBBox = function(t2) {
2400
+ }, r2.prototype.toBBox = function(t2) {
2389
2401
  return t2;
2390
- }, r.prototype.compareMinX = function(t2, i2) {
2402
+ }, r2.prototype.compareMinX = function(t2, i2) {
2391
2403
  return t2.minX - i2.minX;
2392
- }, r.prototype.compareMinY = function(t2, i2) {
2404
+ }, r2.prototype.compareMinY = function(t2, i2) {
2393
2405
  return t2.minY - i2.minY;
2394
- }, r.prototype.toJSON = function() {
2406
+ }, r2.prototype.toJSON = function() {
2395
2407
  return this.data;
2396
- }, r.prototype.fromJSON = function(t2) {
2408
+ }, r2.prototype.fromJSON = function(t2) {
2397
2409
  return this.data = t2, this;
2398
- }, r.prototype._all = function(t2, i2) {
2410
+ }, r2.prototype._all = function(t2, i2) {
2399
2411
  for (var n2 = []; t2; ) t2.leaf ? i2.push.apply(i2, t2.children) : n2.push.apply(n2, t2.children), t2 = n2.pop();
2400
2412
  return i2;
2401
- }, r.prototype._build = function(t2, i2, n2, r2) {
2413
+ }, r2.prototype._build = function(t2, i2, n2, r3) {
2402
2414
  var e2, h2 = n2 - i2 + 1, o2 = this._maxEntries;
2403
2415
  if (h2 <= o2) return a(e2 = p(t2.slice(i2, n2 + 1)), this.toBBox), e2;
2404
- r2 || (r2 = Math.ceil(Math.log(h2) / Math.log(o2)), o2 = Math.ceil(h2 / Math.pow(o2, r2 - 1))), (e2 = p([])).leaf = false, e2.height = r2;
2416
+ r3 || (r3 = Math.ceil(Math.log(h2) / Math.log(o2)), o2 = Math.ceil(h2 / Math.pow(o2, r3 - 1))), (e2 = p([])).leaf = false, e2.height = r3;
2405
2417
  var s2 = Math.ceil(h2 / o2), l2 = s2 * Math.ceil(Math.sqrt(o2));
2406
2418
  d(t2, i2, n2, l2, this.compareMinX);
2407
2419
  for (var f2 = i2; f2 <= n2; f2 += l2) {
@@ -2409,12 +2421,12 @@ function requireRbush_min() {
2409
2421
  d(t2, f2, u2, s2, this.compareMinY);
2410
2422
  for (var m2 = f2; m2 <= u2; m2 += s2) {
2411
2423
  var c2 = Math.min(m2 + s2 - 1, u2);
2412
- e2.children.push(this._build(t2, m2, c2, r2 - 1));
2424
+ e2.children.push(this._build(t2, m2, c2, r3 - 1));
2413
2425
  }
2414
2426
  }
2415
2427
  return a(e2, this.toBBox), e2;
2416
- }, r.prototype._chooseSubtree = function(t2, i2, n2, r2) {
2417
- for (; r2.push(i2), !i2.leaf && r2.length - 1 !== n2; ) {
2428
+ }, r2.prototype._chooseSubtree = function(t2, i2, n2, r3) {
2429
+ for (; r3.push(i2), !i2.leaf && r3.length - 1 !== n2; ) {
2418
2430
  for (var e2 = 1 / 0, a2 = 1 / 0, h2 = void 0, o2 = 0; o2 < i2.children.length; o2++) {
2419
2431
  var s2 = i2.children[o2], l2 = f(s2), u2 = (m2 = t2, c2 = s2, (Math.max(c2.maxX, m2.maxX) - Math.min(c2.minX, m2.minX)) * (Math.max(c2.maxY, m2.maxY) - Math.min(c2.minY, m2.minY)) - l2);
2420
2432
  u2 < a2 ? (a2 = u2, e2 = l2 < e2 ? l2 : e2, h2 = s2) : u2 === a2 && l2 < e2 && (e2 = l2, h2 = s2);
@@ -2423,28 +2435,28 @@ function requireRbush_min() {
2423
2435
  }
2424
2436
  var m2, c2;
2425
2437
  return i2;
2426
- }, r.prototype._insert = function(t2, i2, n2) {
2427
- var r2 = n2 ? t2 : this.toBBox(t2), e2 = [], a2 = this._chooseSubtree(r2, this.data, i2, e2);
2428
- for (a2.children.push(t2), o(a2, r2); i2 >= 0 && e2[i2].children.length > this._maxEntries; ) this._split(e2, i2), i2--;
2429
- this._adjustParentBBoxes(r2, e2, i2);
2430
- }, r.prototype._split = function(t2, i2) {
2431
- var n2 = t2[i2], r2 = n2.children.length, e2 = this._minEntries;
2432
- this._chooseSplitAxis(n2, e2, r2);
2433
- var h2 = this._chooseSplitIndex(n2, e2, r2), o2 = p(n2.children.splice(h2, n2.children.length - h2));
2438
+ }, r2.prototype._insert = function(t2, i2, n2) {
2439
+ var r3 = n2 ? t2 : this.toBBox(t2), e2 = [], a2 = this._chooseSubtree(r3, this.data, i2, e2);
2440
+ for (a2.children.push(t2), o(a2, r3); i2 >= 0 && e2[i2].children.length > this._maxEntries; ) this._split(e2, i2), i2--;
2441
+ this._adjustParentBBoxes(r3, e2, i2);
2442
+ }, r2.prototype._split = function(t2, i2) {
2443
+ var n2 = t2[i2], r3 = n2.children.length, e2 = this._minEntries;
2444
+ this._chooseSplitAxis(n2, e2, r3);
2445
+ var h2 = this._chooseSplitIndex(n2, e2, r3), o2 = p(n2.children.splice(h2, n2.children.length - h2));
2434
2446
  o2.height = n2.height, o2.leaf = n2.leaf, a(n2, this.toBBox), a(o2, this.toBBox), i2 ? t2[i2 - 1].children.push(o2) : this._splitRoot(n2, o2);
2435
- }, r.prototype._splitRoot = function(t2, i2) {
2447
+ }, r2.prototype._splitRoot = function(t2, i2) {
2436
2448
  this.data = p([t2, i2]), this.data.height = t2.height + 1, this.data.leaf = false, a(this.data, this.toBBox);
2437
- }, r.prototype._chooseSplitIndex = function(t2, i2, n2) {
2438
- for (var r2, e2, a2, o2, s2, l2, u2, m2 = 1 / 0, c2 = 1 / 0, p2 = i2; p2 <= n2 - i2; p2++) {
2449
+ }, r2.prototype._chooseSplitIndex = function(t2, i2, n2) {
2450
+ for (var r3, e2, a2, o2, s2, l2, u2, m2 = 1 / 0, c2 = 1 / 0, p2 = i2; p2 <= n2 - i2; p2++) {
2439
2451
  var d2 = h(t2, 0, p2, this.toBBox), x = h(t2, p2, n2, this.toBBox), v = (e2 = d2, a2 = x, o2 = void 0, s2 = void 0, l2 = void 0, u2 = void 0, o2 = Math.max(e2.minX, a2.minX), s2 = Math.max(e2.minY, a2.minY), l2 = Math.min(e2.maxX, a2.maxX), u2 = Math.min(e2.maxY, a2.maxY), Math.max(0, l2 - o2) * Math.max(0, u2 - s2)), M = f(d2) + f(x);
2440
- v < m2 ? (m2 = v, r2 = p2, c2 = M < c2 ? M : c2) : v === m2 && M < c2 && (c2 = M, r2 = p2);
2441
- }
2442
- return r2 || n2 - i2;
2443
- }, r.prototype._chooseSplitAxis = function(t2, i2, n2) {
2444
- var r2 = t2.leaf ? this.compareMinX : s, e2 = t2.leaf ? this.compareMinY : l;
2445
- this._allDistMargin(t2, i2, n2, r2) < this._allDistMargin(t2, i2, n2, e2) && t2.children.sort(r2);
2446
- }, r.prototype._allDistMargin = function(t2, i2, n2, r2) {
2447
- t2.children.sort(r2);
2452
+ v < m2 ? (m2 = v, r3 = p2, c2 = M < c2 ? M : c2) : v === m2 && M < c2 && (c2 = M, r3 = p2);
2453
+ }
2454
+ return r3 || n2 - i2;
2455
+ }, r2.prototype._chooseSplitAxis = function(t2, i2, n2) {
2456
+ var r3 = t2.leaf ? this.compareMinX : s, e2 = t2.leaf ? this.compareMinY : l;
2457
+ this._allDistMargin(t2, i2, n2, r3) < this._allDistMargin(t2, i2, n2, e2) && t2.children.sort(r3);
2458
+ }, r2.prototype._allDistMargin = function(t2, i2, n2, r3) {
2459
+ t2.children.sort(r3);
2448
2460
  for (var e2 = this.toBBox, a2 = h(t2, 0, i2, e2), s2 = h(t2, n2 - i2, n2, e2), l2 = u(a2) + u(s2), f2 = i2; f2 < n2 - i2; f2++) {
2449
2461
  var m2 = t2.children[f2];
2450
2462
  o(a2, t2.leaf ? e2(m2) : m2), l2 += u(a2);
@@ -2454,11 +2466,11 @@ function requireRbush_min() {
2454
2466
  o(s2, t2.leaf ? e2(p2) : p2), l2 += u(s2);
2455
2467
  }
2456
2468
  return l2;
2457
- }, r.prototype._adjustParentBBoxes = function(t2, i2, n2) {
2458
- for (var r2 = n2; r2 >= 0; r2--) o(i2[r2], t2);
2459
- }, r.prototype._condense = function(t2) {
2469
+ }, r2.prototype._adjustParentBBoxes = function(t2, i2, n2) {
2470
+ for (var r3 = n2; r3 >= 0; r3--) o(i2[r3], t2);
2471
+ }, r2.prototype._condense = function(t2) {
2460
2472
  for (var i2 = t2.length - 1, n2 = void 0; i2 >= 0; i2--) 0 === t2[i2].children.length ? i2 > 0 ? (n2 = t2[i2 - 1].children).splice(n2.indexOf(t2[i2]), 1) : this.clear() : a(t2[i2], this.toBBox);
2461
- }, r;
2473
+ }, r2;
2462
2474
  });
2463
2475
  })(rbush_min$1);
2464
2476
  return rbush_min$1.exports;
@@ -2601,13 +2613,13 @@ function requireOrient2d_min() {
2601
2613
  e(exports2);
2602
2614
  }(orient2d_min, function(t) {
2603
2615
  const e = 134217729, n = 33306690738754706e-32;
2604
- function r(t2, e2, n2, r2, o2) {
2605
- let f2, i2, u2, c2, s2 = e2[0], a2 = r2[0], d2 = 0, l2 = 0;
2606
- a2 > s2 == a2 > -s2 ? (f2 = s2, s2 = e2[++d2]) : (f2 = a2, a2 = r2[++l2]);
2616
+ function r2(t2, e2, n2, r3, o2) {
2617
+ let f2, i2, u2, c2, s2 = e2[0], a2 = r3[0], d2 = 0, l2 = 0;
2618
+ a2 > s2 == a2 > -s2 ? (f2 = s2, s2 = e2[++d2]) : (f2 = a2, a2 = r3[++l2]);
2607
2619
  let p = 0;
2608
- if (d2 < t2 && l2 < n2) for (a2 > s2 == a2 > -s2 ? (u2 = f2 - ((i2 = s2 + f2) - s2), s2 = e2[++d2]) : (u2 = f2 - ((i2 = a2 + f2) - a2), a2 = r2[++l2]), f2 = i2, 0 !== u2 && (o2[p++] = u2); d2 < t2 && l2 < n2; ) a2 > s2 == a2 > -s2 ? (u2 = f2 - ((i2 = f2 + s2) - (c2 = i2 - f2)) + (s2 - c2), s2 = e2[++d2]) : (u2 = f2 - ((i2 = f2 + a2) - (c2 = i2 - f2)) + (a2 - c2), a2 = r2[++l2]), f2 = i2, 0 !== u2 && (o2[p++] = u2);
2620
+ if (d2 < t2 && l2 < n2) for (a2 > s2 == a2 > -s2 ? (u2 = f2 - ((i2 = s2 + f2) - s2), s2 = e2[++d2]) : (u2 = f2 - ((i2 = a2 + f2) - a2), a2 = r3[++l2]), f2 = i2, 0 !== u2 && (o2[p++] = u2); d2 < t2 && l2 < n2; ) a2 > s2 == a2 > -s2 ? (u2 = f2 - ((i2 = f2 + s2) - (c2 = i2 - f2)) + (s2 - c2), s2 = e2[++d2]) : (u2 = f2 - ((i2 = f2 + a2) - (c2 = i2 - f2)) + (a2 - c2), a2 = r3[++l2]), f2 = i2, 0 !== u2 && (o2[p++] = u2);
2609
2621
  for (; d2 < t2; ) u2 = f2 - ((i2 = f2 + s2) - (c2 = i2 - f2)) + (s2 - c2), s2 = e2[++d2], f2 = i2, 0 !== u2 && (o2[p++] = u2);
2610
- for (; l2 < n2; ) u2 = f2 - ((i2 = f2 + a2) - (c2 = i2 - f2)) + (a2 - c2), a2 = r2[++l2], f2 = i2, 0 !== u2 && (o2[p++] = u2);
2622
+ for (; l2 < n2; ) u2 = f2 - ((i2 = f2 + a2) - (c2 = i2 - f2)) + (a2 - c2), a2 = r3[++l2], f2 = i2, 0 !== u2 && (o2[p++] = u2);
2611
2623
  return 0 === f2 && 0 !== p || (o2[p++] = f2), p;
2612
2624
  }
2613
2625
  function o(t2) {
@@ -2624,22 +2636,22 @@ function requireOrient2d_min() {
2624
2636
  _ = (z2 = (A = E - (w = (v = e * E) - (v - E))) * (O = I - (F = (v = e * I) - (v - I))) - ((q = E * I) - w * F - A * F - w * O)) - (P = z2 - (C = (A = H - (w = (v = e * H) - (v - H))) * (O = G - (F = (v = e * G) - (v - G))) - ((B = H * G) - w * F - A * F - w * O))), c[0] = z2 - (P + _) + (_ - C), _ = (k = q - ((g = q + P) - (_ = g - q)) + (P - _)) - (P = k - B), c[1] = k - (P + _) + (_ - B), _ = (D = g + P) - g, c[2] = g - (D - _) + (P - _), c[3] = D;
2625
2637
  let J = function(t4, e2) {
2626
2638
  let n2 = e2[0];
2627
- for (let r2 = 1; r2 < t4; r2++) n2 += e2[r2];
2639
+ for (let r3 = 1; r3 < t4; r3++) n2 += e2[r3];
2628
2640
  return n2;
2629
2641
  }(4, c), K = i * h2;
2630
2642
  if (J >= K || -J >= K) return J;
2631
2643
  if (M2 = t3 - (E + (_ = t3 - E)) + (_ - b2), j2 = f2 - (G + (_ = f2 - G)) + (_ - b2), x2 = o3 - (H + (_ = o3 - H)) + (_ - y2), m2 = p2 - (I + (_ = p2 - I)) + (_ - y2), 0 === M2 && 0 === x2 && 0 === j2 && 0 === m2) return J;
2632
2644
  if (K = u * h2 + n * Math.abs(J), (J += E * m2 + I * M2 - (H * j2 + G * x2)) >= K || -J >= K) return J;
2633
2645
  _ = (z2 = (A = M2 - (w = (v = e * M2) - (v - M2))) * (O = I - (F = (v = e * I) - (v - I))) - ((q = M2 * I) - w * F - A * F - w * O)) - (P = z2 - (C = (A = x2 - (w = (v = e * x2) - (v - x2))) * (O = G - (F = (v = e * G) - (v - G))) - ((B = x2 * G) - w * F - A * F - w * O))), l[0] = z2 - (P + _) + (_ - C), _ = (k = q - ((g = q + P) - (_ = g - q)) + (P - _)) - (P = k - B), l[1] = k - (P + _) + (_ - B), _ = (D = g + P) - g, l[2] = g - (D - _) + (P - _), l[3] = D;
2634
- const L = r(4, c, 4, l, s);
2646
+ const L = r2(4, c, 4, l, s);
2635
2647
  _ = (z2 = (A = E - (w = (v = e * E) - (v - E))) * (O = m2 - (F = (v = e * m2) - (v - m2))) - ((q = E * m2) - w * F - A * F - w * O)) - (P = z2 - (C = (A = H - (w = (v = e * H) - (v - H))) * (O = j2 - (F = (v = e * j2) - (v - j2))) - ((B = H * j2) - w * F - A * F - w * O))), l[0] = z2 - (P + _) + (_ - C), _ = (k = q - ((g = q + P) - (_ = g - q)) + (P - _)) - (P = k - B), l[1] = k - (P + _) + (_ - B), _ = (D = g + P) - g, l[2] = g - (D - _) + (P - _), l[3] = D;
2636
- const N = r(L, s, 4, l, a);
2648
+ const N = r2(L, s, 4, l, a);
2637
2649
  _ = (z2 = (A = M2 - (w = (v = e * M2) - (v - M2))) * (O = m2 - (F = (v = e * m2) - (v - m2))) - ((q = M2 * m2) - w * F - A * F - w * O)) - (P = z2 - (C = (A = x2 - (w = (v = e * x2) - (v - x2))) * (O = j2 - (F = (v = e * j2) - (v - j2))) - ((B = x2 * j2) - w * F - A * F - w * O))), l[0] = z2 - (P + _) + (_ - C), _ = (k = q - ((g = q + P) - (_ = g - q)) + (P - _)) - (P = k - B), l[1] = k - (P + _) + (_ - B), _ = (D = g + P) - g, l[2] = g - (D - _) + (P - _), l[3] = D;
2638
- const Q = r(N, a, 4, l, d);
2650
+ const Q = r2(N, a, 4, l, d);
2639
2651
  return d[Q - 1];
2640
2652
  }(t2, o2, p, b, y, h, m);
2641
- }, t.orient2dfast = function(t2, e2, n2, r2, o2, f2) {
2642
- return (e2 - f2) * (n2 - o2) - (t2 - o2) * (r2 - f2);
2653
+ }, t.orient2dfast = function(t2, e2, n2, r3, o2, f2) {
2654
+ return (e2 - f2) * (n2 - o2) - (t2 - o2) * (r3 - f2);
2643
2655
  }, Object.defineProperty(t, "__esModule", { value: true });
2644
2656
  });
2645
2657
  })(orient2d_min$1, orient2d_min$1.exports);
@@ -3296,9 +3308,9 @@ function getNextScope(prevScopes) {
3296
3308
  const chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
3297
3309
  const nextCharIndices = [0];
3298
3310
  function next2() {
3299
- const r = [];
3311
+ const r2 = [];
3300
3312
  nextCharIndices.forEach((charIndex) => {
3301
- r.unshift(chars[charIndex]);
3313
+ r2.unshift(chars[charIndex]);
3302
3314
  });
3303
3315
  let increment = true;
3304
3316
  for (let i = 0; i < nextCharIndices.length; i++) {
@@ -3313,7 +3325,7 @@ function getNextScope(prevScopes) {
3313
3325
  if (increment) {
3314
3326
  nextCharIndices.push(0);
3315
3327
  }
3316
- return r.join("");
3328
+ return r2.join("");
3317
3329
  }
3318
3330
  let nextScope;
3319
3331
  do {
@@ -6455,8 +6467,8 @@ class ZodSet extends ZodType {
6455
6467
  maxSize: { value: maxSize, message: errorUtil.toString(message) }
6456
6468
  });
6457
6469
  }
6458
- size(size, message) {
6459
- return this.min(size, message).max(size, message);
6470
+ size(size2, message) {
6471
+ return this.min(size2, message).max(size2, message);
6460
6472
  }
6461
6473
  nonempty(message) {
6462
6474
  return this.min(1, message);
@@ -6766,9 +6778,9 @@ class ZodEffects extends ZodType {
6766
6778
  const { status, ctx } = this._processInputParams(input);
6767
6779
  const effect = this._def.effect || null;
6768
6780
  const checkCtx = {
6769
- addIssue: (arg) => {
6770
- addIssueToContext(ctx, arg);
6771
- if (arg.fatal) {
6781
+ addIssue: (arg2) => {
6782
+ addIssueToContext(ctx, arg2);
6783
+ if (arg2.fatal) {
6772
6784
  status.abort();
6773
6785
  } else {
6774
6786
  status.dirty();
@@ -7198,14 +7210,14 @@ const ostring = () => stringType().optional();
7198
7210
  const onumber = () => numberType().optional();
7199
7211
  const oboolean = () => booleanType().optional();
7200
7212
  const coerce = {
7201
- string: (arg) => ZodString.create({ ...arg, coerce: true }),
7202
- number: (arg) => ZodNumber.create({ ...arg, coerce: true }),
7203
- boolean: (arg) => ZodBoolean.create({
7204
- ...arg,
7213
+ string: (arg2) => ZodString.create({ ...arg2, coerce: true }),
7214
+ number: (arg2) => ZodNumber.create({ ...arg2, coerce: true }),
7215
+ boolean: (arg2) => ZodBoolean.create({
7216
+ ...arg2,
7205
7217
  coerce: true
7206
7218
  }),
7207
- bigint: (arg) => ZodBigInt.create({ ...arg, coerce: true }),
7208
- date: (arg) => ZodDate.create({ ...arg, coerce: true })
7219
+ bigint: (arg2) => ZodBigInt.create({ ...arg2, coerce: true }),
7220
+ date: (arg2) => ZodDate.create({ ...arg2, coerce: true })
7209
7221
  };
7210
7222
  const NEVER = INVALID;
7211
7223
  var z = /* @__PURE__ */ Object.freeze({
@@ -9013,7 +9025,7 @@ function requireRange() {
9013
9025
  this.loose = !!options.loose;
9014
9026
  this.includePrerelease = !!options.includePrerelease;
9015
9027
  this.raw = range2.trim().replace(SPACE_CHARACTERS, " ");
9016
- this.set = this.raw.split("||").map((r) => this.parseRange(r.trim())).filter((c) => c.length);
9028
+ this.set = this.raw.split("||").map((r2) => this.parseRange(r2.trim())).filter((c) => c.length);
9017
9029
  if (!this.set.length) {
9018
9030
  throw new TypeError(`Invalid SemVer Range: ${this.raw}`);
9019
9031
  }
@@ -9177,8 +9189,8 @@ function requireRange() {
9177
9189
  return comp.trim().split(/\s+/).map((c) => replaceTilde(c, options)).join(" ");
9178
9190
  };
9179
9191
  const replaceTilde = (comp, options) => {
9180
- const r = options.loose ? re2[t.TILDELOOSE] : re2[t.TILDE];
9181
- return comp.replace(r, (_, M, m, p, pr) => {
9192
+ const r2 = options.loose ? re2[t.TILDELOOSE] : re2[t.TILDE];
9193
+ return comp.replace(r2, (_, M, m, p, pr) => {
9182
9194
  debug("tilde", comp, _, M, m, p, pr);
9183
9195
  let ret;
9184
9196
  if (isX(M)) {
@@ -9202,9 +9214,9 @@ function requireRange() {
9202
9214
  };
9203
9215
  const replaceCaret = (comp, options) => {
9204
9216
  debug("caret", comp, options);
9205
- const r = options.loose ? re2[t.CARETLOOSE] : re2[t.CARET];
9217
+ const r2 = options.loose ? re2[t.CARETLOOSE] : re2[t.CARET];
9206
9218
  const z2 = options.includePrerelease ? "-0" : "";
9207
- return comp.replace(r, (_, M, m, p, pr) => {
9219
+ return comp.replace(r2, (_, M, m, p, pr) => {
9208
9220
  debug("caret", comp, _, M, m, p, pr);
9209
9221
  let ret;
9210
9222
  if (isX(M)) {
@@ -9250,8 +9262,8 @@ function requireRange() {
9250
9262
  };
9251
9263
  const replaceXRange = (comp, options) => {
9252
9264
  comp = comp.trim();
9253
- const r = options.loose ? re2[t.XRANGELOOSE] : re2[t.XRANGE];
9254
- return comp.replace(r, (ret, gtlt, M, m, p, pr) => {
9265
+ const r2 = options.loose ? re2[t.XRANGELOOSE] : re2[t.XRANGE];
9266
+ return comp.replace(r2, (ret, gtlt, M, m, p, pr) => {
9255
9267
  debug("xRange", comp, ret, gtlt, M, m, p, pr);
9256
9268
  const xM = isX(M);
9257
9269
  const xm = xM || isX(m);
@@ -9395,8 +9407,8 @@ function requireComparator() {
9395
9407
  debug("comp", this);
9396
9408
  }
9397
9409
  parse(comp) {
9398
- const r = this.options.loose ? re2[t.COMPARATORLOOSE] : re2[t.COMPARATOR];
9399
- const m = comp.match(r);
9410
+ const r2 = this.options.loose ? re2[t.COMPARATORLOOSE] : re2[t.COMPARATOR];
9411
+ const m = comp.match(r2);
9400
9412
  if (!m) {
9401
9413
  throw new TypeError(`Invalid comparator: ${comp}`);
9402
9414
  }
@@ -10926,18 +10938,18 @@ function requireTinycolor() {
10926
10938
  a
10927
10939
  };
10928
10940
  }
10929
- function rgbToRgb(r, g, b) {
10941
+ function rgbToRgb(r2, g, b) {
10930
10942
  return {
10931
- r: bound01(r, 255) * 255,
10943
+ r: bound01(r2, 255) * 255,
10932
10944
  g: bound01(g, 255) * 255,
10933
10945
  b: bound01(b, 255) * 255
10934
10946
  };
10935
10947
  }
10936
- function rgbToHsl(r, g, b) {
10937
- r = bound01(r, 255);
10948
+ function rgbToHsl(r2, g, b) {
10949
+ r2 = bound01(r2, 255);
10938
10950
  g = bound01(g, 255);
10939
10951
  b = bound01(b, 255);
10940
- var max = mathMax(r, g, b), min = mathMin(r, g, b);
10952
+ var max = mathMax(r2, g, b), min = mathMin(r2, g, b);
10941
10953
  var h, s, l = (max + min) / 2;
10942
10954
  if (max == min) {
10943
10955
  h = s = 0;
@@ -10945,14 +10957,14 @@ function requireTinycolor() {
10945
10957
  var d = max - min;
10946
10958
  s = l > 0.5 ? d / (2 - max - min) : d / (max + min);
10947
10959
  switch (max) {
10948
- case r:
10960
+ case r2:
10949
10961
  h = (g - b) / d + (g < b ? 6 : 0);
10950
10962
  break;
10951
10963
  case g:
10952
- h = (b - r) / d + 2;
10964
+ h = (b - r2) / d + 2;
10953
10965
  break;
10954
10966
  case b:
10955
- h = (r - g) / d + 4;
10967
+ h = (r2 - g) / d + 4;
10956
10968
  break;
10957
10969
  }
10958
10970
  h /= 6;
@@ -10960,7 +10972,7 @@ function requireTinycolor() {
10960
10972
  return { h, s, l };
10961
10973
  }
10962
10974
  function hslToRgb2(h, s, l) {
10963
- var r, g, b;
10975
+ var r2, g, b;
10964
10976
  h = bound01(h, 360);
10965
10977
  s = bound01(s, 100);
10966
10978
  l = bound01(l, 100);
@@ -10973,21 +10985,21 @@ function requireTinycolor() {
10973
10985
  return p2;
10974
10986
  }
10975
10987
  if (s === 0) {
10976
- r = g = b = l;
10988
+ r2 = g = b = l;
10977
10989
  } else {
10978
10990
  var q = l < 0.5 ? l * (1 + s) : l + s - l * s;
10979
10991
  var p = 2 * l - q;
10980
- r = hue2rgb(p, q, h + 1 / 3);
10992
+ r2 = hue2rgb(p, q, h + 1 / 3);
10981
10993
  g = hue2rgb(p, q, h);
10982
10994
  b = hue2rgb(p, q, h - 1 / 3);
10983
10995
  }
10984
- return { r: r * 255, g: g * 255, b: b * 255 };
10996
+ return { r: r2 * 255, g: g * 255, b: b * 255 };
10985
10997
  }
10986
- function rgbToHsv(r, g, b) {
10987
- r = bound01(r, 255);
10998
+ function rgbToHsv(r2, g, b) {
10999
+ r2 = bound01(r2, 255);
10988
11000
  g = bound01(g, 255);
10989
11001
  b = bound01(b, 255);
10990
- var max = mathMax(r, g, b), min = mathMin(r, g, b);
11002
+ var max = mathMax(r2, g, b), min = mathMin(r2, g, b);
10991
11003
  var h, s, v = max;
10992
11004
  var d = max - min;
10993
11005
  s = max === 0 ? 0 : d / max;
@@ -10995,14 +11007,14 @@ function requireTinycolor() {
10995
11007
  h = 0;
10996
11008
  } else {
10997
11009
  switch (max) {
10998
- case r:
11010
+ case r2:
10999
11011
  h = (g - b) / d + (g < b ? 6 : 0);
11000
11012
  break;
11001
11013
  case g:
11002
- h = (b - r) / d + 2;
11014
+ h = (b - r2) / d + 2;
11003
11015
  break;
11004
11016
  case b:
11005
- h = (r - g) / d + 4;
11017
+ h = (r2 - g) / d + 4;
11006
11018
  break;
11007
11019
  }
11008
11020
  h /= 6;
@@ -11013,12 +11025,12 @@ function requireTinycolor() {
11013
11025
  h = bound01(h, 360) * 6;
11014
11026
  s = bound01(s, 100);
11015
11027
  v = bound01(v, 100);
11016
- var i = Math2.floor(h), f = h - i, p = v * (1 - s), q = v * (1 - f * s), t = v * (1 - (1 - f) * s), mod = i % 6, r = [v, q, p, p, t, v][mod], g = [t, v, v, q, p, p][mod], b = [p, p, t, v, v, q][mod];
11017
- return { r: r * 255, g: g * 255, b: b * 255 };
11028
+ var i = Math2.floor(h), f = h - i, p = v * (1 - s), q = v * (1 - f * s), t = v * (1 - (1 - f) * s), mod = i % 6, r2 = [v, q, p, p, t, v][mod], g = [t, v, v, q, p, p][mod], b = [p, p, t, v, v, q][mod];
11029
+ return { r: r2 * 255, g: g * 255, b: b * 255 };
11018
11030
  }
11019
- function rgbToHex2(r, g, b, allow3Char) {
11031
+ function rgbToHex2(r2, g, b, allow3Char) {
11020
11032
  var hex = [
11021
- pad2(mathRound(r).toString(16)),
11033
+ pad2(mathRound(r2).toString(16)),
11022
11034
  pad2(mathRound(g).toString(16)),
11023
11035
  pad2(mathRound(b).toString(16))
11024
11036
  ];
@@ -11027,9 +11039,9 @@ function requireTinycolor() {
11027
11039
  }
11028
11040
  return hex.join("");
11029
11041
  }
11030
- function rgbaToHex(r, g, b, a, allow4Char) {
11042
+ function rgbaToHex(r2, g, b, a, allow4Char) {
11031
11043
  var hex = [
11032
- pad2(mathRound(r).toString(16)),
11044
+ pad2(mathRound(r2).toString(16)),
11033
11045
  pad2(mathRound(g).toString(16)),
11034
11046
  pad2(mathRound(b).toString(16)),
11035
11047
  pad2(convertDecimalToHex(a))
@@ -11039,10 +11051,10 @@ function requireTinycolor() {
11039
11051
  }
11040
11052
  return hex.join("");
11041
11053
  }
11042
- function rgbaToArgbHex(r, g, b, a) {
11054
+ function rgbaToArgbHex(r2, g, b, a) {
11043
11055
  var hex = [
11044
11056
  pad2(convertDecimalToHex(a)),
11045
- pad2(mathRound(r).toString(16)),
11057
+ pad2(mathRound(r2).toString(16)),
11046
11058
  pad2(mathRound(g).toString(16)),
11047
11059
  pad2(mathRound(b).toString(16))
11048
11060
  ];
@@ -11204,11 +11216,11 @@ function requireTinycolor() {
11204
11216
  var bestColor = null;
11205
11217
  var bestScore = 0;
11206
11218
  var readability;
11207
- var includeFallbackColors, level, size;
11219
+ var includeFallbackColors, level, size2;
11208
11220
  args = args || {};
11209
11221
  includeFallbackColors = args.includeFallbackColors;
11210
11222
  level = args.level;
11211
- size = args.size;
11223
+ size2 = args.size;
11212
11224
  for (var i = 0; i < colorList.length; i++) {
11213
11225
  readability = tinycolor2.readability(baseColor, colorList[i]);
11214
11226
  if (readability > bestScore) {
@@ -11216,7 +11228,7 @@ function requireTinycolor() {
11216
11228
  bestColor = tinycolor2(colorList[i]);
11217
11229
  }
11218
11230
  }
11219
- if (tinycolor2.isReadable(baseColor, bestColor, { "level": level, "size": size }) || !includeFallbackColors) {
11231
+ if (tinycolor2.isReadable(baseColor, bestColor, { "level": level, "size": size2 }) || !includeFallbackColors) {
11220
11232
  return bestColor;
11221
11233
  } else {
11222
11234
  args.includeFallbackColors = false;
@@ -11520,17 +11532,17 @@ function requireTinycolor() {
11520
11532
  return false;
11521
11533
  }
11522
11534
  function validateWCAG2Parms(parms) {
11523
- var level, size;
11535
+ var level, size2;
11524
11536
  parms = parms || { "level": "AA", "size": "small" };
11525
11537
  level = (parms.level || "AA").toUpperCase();
11526
- size = (parms.size || "small").toLowerCase();
11538
+ size2 = (parms.size || "small").toLowerCase();
11527
11539
  if (level !== "AA" && level !== "AAA") {
11528
11540
  level = "AA";
11529
11541
  }
11530
- if (size !== "small" && size !== "large") {
11531
- size = "small";
11542
+ if (size2 !== "small" && size2 !== "large") {
11543
+ size2 = "small";
11532
11544
  }
11533
- return { "level": level, "size": size };
11545
+ return { "level": level, "size": size2 };
11534
11546
  }
11535
11547
  if (module2.exports) {
11536
11548
  module2.exports = tinycolor2;
@@ -11645,7 +11657,7 @@ function treeToCellColorsBySetNames(currTree, selectedNamePaths, cellSetColor, t
11645
11657
  const node2 = treeFindNodeByNamePath(currTree, setNamePath);
11646
11658
  if (node2) {
11647
11659
  const nodeSet = nodeToSet(node2);
11648
- const nodeColor = ((_a = cellSetColor == null ? void 0 : cellSetColor.find((d) => isEqual(d.path, setNamePath))) == null ? void 0 : _a.color) || getDefaultColor(theme);
11660
+ const nodeColor = ((_a = cellSetColor == null ? void 0 : cellSetColor.find((d) => isEqual$1(d.path, setNamePath))) == null ? void 0 : _a.color) || getDefaultColor(theme);
11649
11661
  cellColorsArray = [
11650
11662
  ...cellColorsArray,
11651
11663
  ...nodeSet.map(([cellId, prob]) => [
@@ -12220,19 +12232,19 @@ function requireJson2csv_umd() {
12220
12232
  }
12221
12233
  return that;
12222
12234
  }
12223
- function Buffer2(arg, encodingOrOffset, length2) {
12235
+ function Buffer2(arg2, encodingOrOffset, length2) {
12224
12236
  if (!Buffer2.TYPED_ARRAY_SUPPORT && !(this instanceof Buffer2)) {
12225
- return new Buffer2(arg, encodingOrOffset, length2);
12237
+ return new Buffer2(arg2, encodingOrOffset, length2);
12226
12238
  }
12227
- if (typeof arg === "number") {
12239
+ if (typeof arg2 === "number") {
12228
12240
  if (typeof encodingOrOffset === "string") {
12229
12241
  throw new Error(
12230
12242
  "If encoding is specified then the first argument must be a string"
12231
12243
  );
12232
12244
  }
12233
- return allocUnsafe(this, arg);
12245
+ return allocUnsafe(this, arg2);
12234
12246
  }
12235
- return from2(this, arg, encodingOrOffset, length2);
12247
+ return from2(this, arg2, encodingOrOffset, length2);
12236
12248
  }
12237
12249
  Buffer2.poolSize = 8192;
12238
12250
  Buffer2._augment = function(arr) {
@@ -12258,41 +12270,41 @@ function requireJson2csv_umd() {
12258
12270
  Buffer2.prototype.__proto__ = Uint8Array.prototype;
12259
12271
  Buffer2.__proto__ = Uint8Array;
12260
12272
  }
12261
- function assertSize(size) {
12262
- if (typeof size !== "number") {
12273
+ function assertSize(size2) {
12274
+ if (typeof size2 !== "number") {
12263
12275
  throw new TypeError('"size" argument must be a number');
12264
- } else if (size < 0) {
12276
+ } else if (size2 < 0) {
12265
12277
  throw new RangeError('"size" argument must not be negative');
12266
12278
  }
12267
12279
  }
12268
- function alloc2(that, size, fill, encoding) {
12269
- assertSize(size);
12270
- if (size <= 0) {
12271
- return createBuffer(that, size);
12280
+ function alloc2(that, size2, fill, encoding) {
12281
+ assertSize(size2);
12282
+ if (size2 <= 0) {
12283
+ return createBuffer(that, size2);
12272
12284
  }
12273
12285
  if (fill !== void 0) {
12274
- return typeof encoding === "string" ? createBuffer(that, size).fill(fill, encoding) : createBuffer(that, size).fill(fill);
12286
+ return typeof encoding === "string" ? createBuffer(that, size2).fill(fill, encoding) : createBuffer(that, size2).fill(fill);
12275
12287
  }
12276
- return createBuffer(that, size);
12288
+ return createBuffer(that, size2);
12277
12289
  }
12278
- Buffer2.alloc = function(size, fill, encoding) {
12279
- return alloc2(null, size, fill, encoding);
12290
+ Buffer2.alloc = function(size2, fill, encoding) {
12291
+ return alloc2(null, size2, fill, encoding);
12280
12292
  };
12281
- function allocUnsafe(that, size) {
12282
- assertSize(size);
12283
- that = createBuffer(that, size < 0 ? 0 : checked(size) | 0);
12293
+ function allocUnsafe(that, size2) {
12294
+ assertSize(size2);
12295
+ that = createBuffer(that, size2 < 0 ? 0 : checked(size2) | 0);
12284
12296
  if (!Buffer2.TYPED_ARRAY_SUPPORT) {
12285
- for (var i = 0; i < size; ++i) {
12297
+ for (var i = 0; i < size2; ++i) {
12286
12298
  that[i] = 0;
12287
12299
  }
12288
12300
  }
12289
12301
  return that;
12290
12302
  }
12291
- Buffer2.allocUnsafe = function(size) {
12292
- return allocUnsafe(null, size);
12303
+ Buffer2.allocUnsafe = function(size2) {
12304
+ return allocUnsafe(null, size2);
12293
12305
  };
12294
- Buffer2.allocUnsafeSlow = function(size) {
12295
- return allocUnsafe(null, size);
12306
+ Buffer2.allocUnsafeSlow = function(size2) {
12307
+ return allocUnsafe(null, size2);
12296
12308
  };
12297
12309
  function fromString(that, string, encoding) {
12298
12310
  if (typeof encoding !== "string" || encoding === "") {
@@ -14005,26 +14017,26 @@ function requireJson2csv_umd() {
14005
14017
  function isArray$1(ar) {
14006
14018
  return Array.isArray(ar);
14007
14019
  }
14008
- function isBoolean(arg) {
14009
- return typeof arg === "boolean";
14020
+ function isBoolean(arg2) {
14021
+ return typeof arg2 === "boolean";
14010
14022
  }
14011
- function isNull(arg) {
14012
- return arg === null;
14023
+ function isNull(arg2) {
14024
+ return arg2 === null;
14013
14025
  }
14014
- function isNumber(arg) {
14015
- return typeof arg === "number";
14026
+ function isNumber(arg2) {
14027
+ return typeof arg2 === "number";
14016
14028
  }
14017
- function isString(arg) {
14018
- return typeof arg === "string";
14029
+ function isString(arg2) {
14030
+ return typeof arg2 === "string";
14019
14031
  }
14020
- function isUndefined(arg) {
14021
- return arg === void 0;
14032
+ function isUndefined(arg2) {
14033
+ return arg2 === void 0;
14022
14034
  }
14023
14035
  function isRegExp(re2) {
14024
14036
  return isObject2(re2) && objectToString2(re2) === "[object RegExp]";
14025
14037
  }
14026
- function isObject2(arg) {
14027
- return typeof arg === "object" && arg !== null;
14038
+ function isObject2(arg2) {
14039
+ return typeof arg2 === "object" && arg2 !== null;
14028
14040
  }
14029
14041
  function isDate(d) {
14030
14042
  return isObject2(d) && objectToString2(d) === "[object Date]";
@@ -14032,8 +14044,8 @@ function requireJson2csv_umd() {
14032
14044
  function isError(e) {
14033
14045
  return isObject2(e) && (objectToString2(e) === "[object Error]" || e instanceof Error);
14034
14046
  }
14035
- function isFunction2(arg) {
14036
- return typeof arg === "function";
14047
+ function isFunction2(arg2) {
14048
+ return typeof arg2 === "function";
14037
14049
  }
14038
14050
  function objectToString2(o) {
14039
14051
  return Object.prototype.toString.call(o);
@@ -14182,11 +14194,11 @@ function requireJson2csv_umd() {
14182
14194
  var end = charStr.length - 1;
14183
14195
  var charCode = charStr.charCodeAt(end);
14184
14196
  if (charCode >= 55296 && charCode <= 56319) {
14185
- var size = this.surrogateSize;
14186
- this.charLength += size;
14187
- this.charReceived += size;
14188
- this.charBuffer.copy(this.charBuffer, size, 0, size);
14189
- buffer.copy(this.charBuffer, 0, 0, size);
14197
+ var size2 = this.surrogateSize;
14198
+ this.charLength += size2;
14199
+ this.charReceived += size2;
14200
+ this.charBuffer.copy(this.charBuffer, size2, 0, size2);
14201
+ buffer.copy(this.charBuffer, 0, 0, size2);
14190
14202
  return charStr.substring(0, end);
14191
14203
  }
14192
14204
  return charStr;
@@ -15400,7 +15412,7 @@ function requireJson2csv_umd() {
15400
15412
  configurable: true
15401
15413
  }
15402
15414
  });
15403
- if (superClass) _setPrototypeOf(subClass, superClass);
15415
+ if (superClass) _setPrototypeOf2(subClass, superClass);
15404
15416
  }
15405
15417
  function _getPrototypeOf(o) {
15406
15418
  _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf2(o2) {
@@ -15408,14 +15420,14 @@ function requireJson2csv_umd() {
15408
15420
  };
15409
15421
  return _getPrototypeOf(o);
15410
15422
  }
15411
- function _setPrototypeOf(o, p) {
15412
- _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf2(o2, p2) {
15423
+ function _setPrototypeOf2(o, p) {
15424
+ _setPrototypeOf2 = Object.setPrototypeOf || function _setPrototypeOf3(o2, p2) {
15413
15425
  o2.__proto__ = p2;
15414
15426
  return o2;
15415
15427
  };
15416
- return _setPrototypeOf(o, p);
15428
+ return _setPrototypeOf2(o, p);
15417
15429
  }
15418
- function _assertThisInitialized(self2) {
15430
+ function _assertThisInitialized2(self2) {
15419
15431
  if (self2 === void 0) {
15420
15432
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
15421
15433
  }
@@ -15425,7 +15437,7 @@ function requireJson2csv_umd() {
15425
15437
  if (call && (typeof call === "object" || typeof call === "function")) {
15426
15438
  return call;
15427
15439
  }
15428
- return _assertThisInitialized(self2);
15440
+ return _assertThisInitialized2(self2);
15429
15441
  }
15430
15442
  function _toArray(arr) {
15431
15443
  return _arrayWithHoles(arr) || _iterableToArray(arr) || _nonIterableRest();
@@ -16133,27 +16145,27 @@ function requireJson2csv_umd() {
16133
16145
  this.stringBuffer[this.stringBufferOffset++] = char2;
16134
16146
  };
16135
16147
  proto.appendStringBuf = function(buf, start, end) {
16136
- var size = buf.length;
16148
+ var size2 = buf.length;
16137
16149
  if (typeof start === "number") {
16138
16150
  if (typeof end === "number") {
16139
16151
  if (end < 0) {
16140
- size = buf.length - start + end;
16152
+ size2 = buf.length - start + end;
16141
16153
  } else {
16142
- size = end - start;
16154
+ size2 = end - start;
16143
16155
  }
16144
16156
  } else {
16145
- size = buf.length - start;
16157
+ size2 = buf.length - start;
16146
16158
  }
16147
16159
  }
16148
- if (size < 0) {
16149
- size = 0;
16160
+ if (size2 < 0) {
16161
+ size2 = 0;
16150
16162
  }
16151
- if (this.stringBufferOffset + size > STRING_BUFFER_SIZE) {
16163
+ if (this.stringBufferOffset + size2 > STRING_BUFFER_SIZE) {
16152
16164
  this.string += this.stringBuffer.toString("utf8", 0, this.stringBufferOffset);
16153
16165
  this.stringBufferOffset = 0;
16154
16166
  }
16155
16167
  buf.copy(this.stringBuffer, this.stringBufferOffset, start, end);
16156
- this.stringBufferOffset += size;
16168
+ this.stringBufferOffset += size2;
16157
16169
  };
16158
16170
  proto.write = function(buffer) {
16159
16171
  if (typeof buffer === "string") buffer = new Buffer2(buffer);
@@ -16889,18 +16901,18 @@ const schemeRdBu = [[103, 0, 31], [178, 24, 43], [214, 96, 77], [244, 165, 130],
16889
16901
  function rgbSpline(spline) {
16890
16902
  return (colors) => {
16891
16903
  const n = colors.length;
16892
- const r = new Array(n);
16904
+ const r2 = new Array(n);
16893
16905
  const g = new Array(n);
16894
16906
  const b = new Array(n);
16895
16907
  let i;
16896
16908
  let color2;
16897
16909
  for (i = 0; i < n; ++i) {
16898
16910
  color2 = [colors[i][0], colors[i][1], colors[i][2]];
16899
- r[i] = color2[0] || 0;
16911
+ r2[i] = color2[0] || 0;
16900
16912
  g[i] = color2[1] || 0;
16901
16913
  b[i] = color2[2] || 0;
16902
16914
  }
16903
- const rFunc = spline(r);
16915
+ const rFunc = spline(r2);
16904
16916
  const gFunc = spline(g);
16905
16917
  const bFunc = spline(b);
16906
16918
  return (t) => [rFunc(t), gFunc(t), bFunc(t)];
@@ -17352,9 +17364,9 @@ function parse(value, root2, parent, rule, rules, rulesets, pseudo, points, decl
17352
17364
  function ruleset(value, root2, parent, index, offset2, rules, points, type, props, children, length2) {
17353
17365
  var post = offset2 - 1;
17354
17366
  var rule = offset2 === 0 ? rules : [""];
17355
- var size = sizeof(rule);
17367
+ var size2 = sizeof(rule);
17356
17368
  for (var i = 0, j = 0, k = 0; i < index; ++i)
17357
- for (var x = 0, y = substr(value, post + 1, post = abs(j = points[i])), z2 = value; x < size; ++x)
17369
+ for (var x = 0, y = substr(value, post + 1, post = abs(j = points[i])), z2 = value; x < size2; ++x)
17358
17370
  if (z2 = trim(j > 0 ? rule[x] + " " + y : replace(y, /&\f/g, rule[x])))
17359
17371
  props[k++] = z2;
17360
17372
  return node(value, root2, parent, offset2 === 0 ? RULESET : type, props, children, length2);
@@ -17407,9 +17419,9 @@ function rulesheet(callback) {
17407
17419
  }
17408
17420
  function memoize$1(fn) {
17409
17421
  var cache = /* @__PURE__ */ Object.create(null);
17410
- return function(arg) {
17411
- if (cache[arg] === void 0) cache[arg] = fn(arg);
17412
- return cache[arg];
17422
+ return function(arg2) {
17423
+ if (cache[arg2] === void 0) cache[arg2] = fn(arg2);
17424
+ return cache[arg2];
17413
17425
  };
17414
17426
  }
17415
17427
  var identifierWithPointTracking = function identifierWithPointTracking2(begin, points, index) {
@@ -17747,6 +17759,15 @@ var createCache = function createCache2(options) {
17747
17759
  cache.sheet.hydrate(nodesToHydrate);
17748
17760
  return cache;
17749
17761
  };
17762
+ function _extends$2() {
17763
+ return _extends$2 = Object.assign ? Object.assign.bind() : function(n) {
17764
+ for (var e = 1; e < arguments.length; e++) {
17765
+ var t = arguments[e];
17766
+ for (var r2 in t) ({}).hasOwnProperty.call(t, r2) && (n[r2] = t[r2]);
17767
+ }
17768
+ return n;
17769
+ }, _extends$2.apply(null, arguments);
17770
+ }
17750
17771
  var reactIs$1 = { exports: {} };
17751
17772
  var reactIs_development$1 = {};
17752
17773
  var hasRequiredReactIs_development$1;
@@ -18020,7 +18041,7 @@ function getRegisteredStyles(registered, registeredStyles, classNames) {
18020
18041
  });
18021
18042
  return rawClassName;
18022
18043
  }
18023
- var registerStyles = function registerStyles2(cache, serialized, isStringTag) {
18044
+ var registerStyles = function registerStyles2(cache, serialized, isStringTag2) {
18024
18045
  var className = cache.key + "-" + serialized.name;
18025
18046
  if (
18026
18047
  // we only need to add the styles to the registered cache if the
@@ -18028,7 +18049,7 @@ var registerStyles = function registerStyles2(cache, serialized, isStringTag) {
18028
18049
  // the tree but if it's a string tag, we know it won't
18029
18050
  // so we don't have to add it to registered cache.
18030
18051
  // this improves memory usage since we can avoid storing the whole style string
18031
- (isStringTag === false || // we need to always store it if we're in compat mode and
18052
+ (isStringTag2 === false || // we need to always store it if we're in compat mode and
18032
18053
  // in node since emotion-server relies on whether a style is in
18033
18054
  // the registered cache to know whether a style is global or not
18034
18055
  // also, note that this check will be dead code eliminated in the browser
@@ -18037,8 +18058,8 @@ var registerStyles = function registerStyles2(cache, serialized, isStringTag) {
18037
18058
  cache.registered[className] = serialized.styles;
18038
18059
  }
18039
18060
  };
18040
- var insertStyles = function insertStyles2(cache, serialized, isStringTag) {
18041
- registerStyles(cache, serialized, isStringTag);
18061
+ var insertStyles = function insertStyles2(cache, serialized, isStringTag2) {
18062
+ registerStyles(cache, serialized, isStringTag2);
18042
18063
  var className = cache.key + "-" + serialized.name;
18043
18064
  if (cache.inserted[serialized.name] === void 0) {
18044
18065
  var current = serialized;
@@ -18333,11 +18354,11 @@ var createEmotionProps = function createEmotionProps2(type, props) {
18333
18354
  newProps[typePropName] = type;
18334
18355
  return newProps;
18335
18356
  };
18336
- var Insertion = function Insertion2(_ref) {
18337
- var cache = _ref.cache, serialized = _ref.serialized, isStringTag = _ref.isStringTag;
18338
- registerStyles(cache, serialized, isStringTag);
18357
+ var Insertion$1 = function Insertion(_ref) {
18358
+ var cache = _ref.cache, serialized = _ref.serialized, isStringTag2 = _ref.isStringTag;
18359
+ registerStyles(cache, serialized, isStringTag2);
18339
18360
  useInsertionEffectAlwaysWithSyncFallback(function() {
18340
- return insertStyles(cache, serialized, isStringTag);
18361
+ return insertStyles(cache, serialized, isStringTag2);
18341
18362
  });
18342
18363
  return null;
18343
18364
  };
@@ -18366,7 +18387,7 @@ var Emotion = /* @__PURE__ */ withEmotionCache(function(props, cache, ref) {
18366
18387
  if (ref) {
18367
18388
  newProps.ref = ref;
18368
18389
  }
18369
- return /* @__PURE__ */ React$1.createElement(React$1.Fragment, null, /* @__PURE__ */ React$1.createElement(Insertion, {
18390
+ return /* @__PURE__ */ React$1.createElement(React$1.Fragment, null, /* @__PURE__ */ React$1.createElement(Insertion$1, {
18370
18391
  cache,
18371
18392
  serialized,
18372
18393
  isStringTag: typeof WrappedComponent === "string"
@@ -18471,24 +18492,24 @@ const classnames = (args) => {
18471
18492
  let i = 0;
18472
18493
  let cls = "";
18473
18494
  for (; i < len; i++) {
18474
- const arg = args[i];
18475
- if (arg == null)
18495
+ const arg2 = args[i];
18496
+ if (arg2 == null)
18476
18497
  continue;
18477
18498
  let toAdd;
18478
- switch (typeof arg) {
18499
+ switch (typeof arg2) {
18479
18500
  case "boolean":
18480
18501
  break;
18481
18502
  case "object": {
18482
- if (Array.isArray(arg)) {
18483
- toAdd = classnames(arg);
18503
+ if (Array.isArray(arg2)) {
18504
+ toAdd = classnames(arg2);
18484
18505
  } else {
18485
- assert(!typeGuard(arg, false));
18486
- if (arg.styles !== void 0 && arg.name !== void 0) {
18506
+ assert(!typeGuard(arg2, false));
18507
+ if (arg2.styles !== void 0 && arg2.name !== void 0) {
18487
18508
  console.error("You have passed styles created with `css` from `@emotion/react` package to the `cx`.\n`cx` is meant to compose class names (strings) so you should convert those styles to a class name by passing them to the `css` received from <ClassNames/> component.");
18488
18509
  }
18489
18510
  toAdd = "";
18490
- for (const k in arg) {
18491
- if (arg[k] && k) {
18511
+ for (const k in arg2) {
18512
+ if (arg2[k] && k) {
18492
18513
  toAdd && (toAdd += " ");
18493
18514
  toAdd += k;
18494
18515
  }
@@ -18497,7 +18518,7 @@ const classnames = (args) => {
18497
18518
  break;
18498
18519
  }
18499
18520
  default: {
18500
- toAdd = arg;
18521
+ toAdd = arg2;
18501
18522
  }
18502
18523
  }
18503
18524
  if (toAdd) {
@@ -18518,8 +18539,8 @@ function useGuaranteedMemo(fn, deps) {
18518
18539
  }
18519
18540
  return ref.current.v;
18520
18541
  }
18521
- function matchCSSObject(arg) {
18522
- return arg instanceof Object && !("styles" in arg) && !("length" in arg) && !("__emotion_styles" in arg);
18542
+ function matchCSSObject(arg2) {
18543
+ return arg2 instanceof Object && !("styles" in arg2) && !("length" in arg2) && !("__emotion_styles" in arg2);
18523
18544
  }
18524
18545
  const { createCssAndCx } = /* @__PURE__ */ (() => {
18525
18546
  function merge2(registered, css2, className) {
@@ -18537,11 +18558,11 @@ const { createCssAndCx } = /* @__PURE__ */ (() => {
18537
18558
  insertStyles(cache, serialized, false);
18538
18559
  const className = `${cache.key}-${serialized.name}`;
18539
18560
  scope: {
18540
- const arg = args[0];
18541
- if (!matchCSSObject(arg)) {
18561
+ const arg2 = args[0];
18562
+ if (!matchCSSObject(arg2)) {
18542
18563
  break scope;
18543
18564
  }
18544
- increaseSpecificityToTakePrecedenceOverMediaQueries.saveClassNameCSSObjectMapping(cache, className, arg);
18565
+ increaseSpecificityToTakePrecedenceOverMediaQueries.saveClassNameCSSObjectMapping(cache, className, arg2);
18545
18566
  }
18546
18567
  return className;
18547
18568
  };
@@ -19158,6 +19179,274 @@ const { tss: tss$1 } = createTss({
19158
19179
  });
19159
19180
  tss$1.create({});
19160
19181
  const THEME_ID = "$$material";
19182
+ var reactPropsRegex = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/;
19183
+ var isPropValid = /* @__PURE__ */ memoize$1(
19184
+ function(prop) {
19185
+ return reactPropsRegex.test(prop) || prop.charCodeAt(0) === 111 && prop.charCodeAt(1) === 110 && prop.charCodeAt(2) < 91;
19186
+ }
19187
+ /* Z+1 */
19188
+ );
19189
+ var testOmitPropsOnStringTag = isPropValid;
19190
+ var testOmitPropsOnComponent = function testOmitPropsOnComponent2(key) {
19191
+ return key !== "theme";
19192
+ };
19193
+ var getDefaultShouldForwardProp = function getDefaultShouldForwardProp2(tag) {
19194
+ return typeof tag === "string" && // 96 is one less than the char code
19195
+ // for "a" so this is checking that
19196
+ // it's a lowercase character
19197
+ tag.charCodeAt(0) > 96 ? testOmitPropsOnStringTag : testOmitPropsOnComponent;
19198
+ };
19199
+ var composeShouldForwardProps = function composeShouldForwardProps2(tag, options, isReal) {
19200
+ var shouldForwardProp2;
19201
+ if (options) {
19202
+ var optionsShouldForwardProp = options.shouldForwardProp;
19203
+ shouldForwardProp2 = tag.__emotion_forwardProp && optionsShouldForwardProp ? function(propName) {
19204
+ return tag.__emotion_forwardProp(propName) && optionsShouldForwardProp(propName);
19205
+ } : optionsShouldForwardProp;
19206
+ }
19207
+ if (typeof shouldForwardProp2 !== "function" && isReal) {
19208
+ shouldForwardProp2 = tag.__emotion_forwardProp;
19209
+ }
19210
+ return shouldForwardProp2;
19211
+ };
19212
+ var Insertion2 = function Insertion3(_ref) {
19213
+ var cache = _ref.cache, serialized = _ref.serialized, isStringTag2 = _ref.isStringTag;
19214
+ registerStyles(cache, serialized, isStringTag2);
19215
+ useInsertionEffectAlwaysWithSyncFallback(function() {
19216
+ return insertStyles(cache, serialized, isStringTag2);
19217
+ });
19218
+ return null;
19219
+ };
19220
+ var createStyled$1 = function createStyled(tag, options) {
19221
+ var isReal = tag.__emotion_real === tag;
19222
+ var baseTag = isReal && tag.__emotion_base || tag;
19223
+ var identifierName;
19224
+ var targetClassName;
19225
+ if (options !== void 0) {
19226
+ identifierName = options.label;
19227
+ targetClassName = options.target;
19228
+ }
19229
+ var shouldForwardProp2 = composeShouldForwardProps(tag, options, isReal);
19230
+ var defaultShouldForwardProp = shouldForwardProp2 || getDefaultShouldForwardProp(baseTag);
19231
+ var shouldUseAs = !defaultShouldForwardProp("as");
19232
+ return function() {
19233
+ var args = arguments;
19234
+ var styles = isReal && tag.__emotion_styles !== void 0 ? tag.__emotion_styles.slice(0) : [];
19235
+ if (identifierName !== void 0) {
19236
+ styles.push("label:" + identifierName + ";");
19237
+ }
19238
+ if (args[0] == null || args[0].raw === void 0) {
19239
+ styles.push.apply(styles, args);
19240
+ } else {
19241
+ var templateStringsArr = args[0];
19242
+ styles.push(templateStringsArr[0]);
19243
+ var len = args.length;
19244
+ var i = 1;
19245
+ for (; i < len; i++) {
19246
+ styles.push(args[i], templateStringsArr[i]);
19247
+ }
19248
+ }
19249
+ var Styled = withEmotionCache(function(props, cache, ref) {
19250
+ var FinalTag = shouldUseAs && props.as || baseTag;
19251
+ var className = "";
19252
+ var classInterpolations = [];
19253
+ var mergedProps = props;
19254
+ if (props.theme == null) {
19255
+ mergedProps = {};
19256
+ for (var key in props) {
19257
+ mergedProps[key] = props[key];
19258
+ }
19259
+ mergedProps.theme = React$1.useContext(ThemeContext);
19260
+ }
19261
+ if (typeof props.className === "string") {
19262
+ className = getRegisteredStyles(cache.registered, classInterpolations, props.className);
19263
+ } else if (props.className != null) {
19264
+ className = props.className + " ";
19265
+ }
19266
+ var serialized = serializeStyles(styles.concat(classInterpolations), cache.registered, mergedProps);
19267
+ className += cache.key + "-" + serialized.name;
19268
+ if (targetClassName !== void 0) {
19269
+ className += " " + targetClassName;
19270
+ }
19271
+ var finalShouldForwardProp = shouldUseAs && shouldForwardProp2 === void 0 ? getDefaultShouldForwardProp(FinalTag) : defaultShouldForwardProp;
19272
+ var newProps = {};
19273
+ for (var _key in props) {
19274
+ if (shouldUseAs && _key === "as") continue;
19275
+ if (finalShouldForwardProp(_key)) {
19276
+ newProps[_key] = props[_key];
19277
+ }
19278
+ }
19279
+ newProps.className = className;
19280
+ if (ref) {
19281
+ newProps.ref = ref;
19282
+ }
19283
+ return /* @__PURE__ */ React$1.createElement(React$1.Fragment, null, /* @__PURE__ */ React$1.createElement(Insertion2, {
19284
+ cache,
19285
+ serialized,
19286
+ isStringTag: typeof FinalTag === "string"
19287
+ }), /* @__PURE__ */ React$1.createElement(FinalTag, newProps));
19288
+ });
19289
+ Styled.displayName = identifierName !== void 0 ? identifierName : "Styled(" + (typeof baseTag === "string" ? baseTag : baseTag.displayName || baseTag.name || "Component") + ")";
19290
+ Styled.defaultProps = tag.defaultProps;
19291
+ Styled.__emotion_real = Styled;
19292
+ Styled.__emotion_base = baseTag;
19293
+ Styled.__emotion_styles = styles;
19294
+ Styled.__emotion_forwardProp = shouldForwardProp2;
19295
+ Object.defineProperty(Styled, "toString", {
19296
+ value: function value() {
19297
+ return "." + targetClassName;
19298
+ }
19299
+ });
19300
+ Styled.withComponent = function(nextTag, nextOptions) {
19301
+ var newStyled2 = createStyled(nextTag, _extends$2({}, options, nextOptions, {
19302
+ shouldForwardProp: composeShouldForwardProps(Styled, nextOptions, true)
19303
+ }));
19304
+ return newStyled2.apply(void 0, styles);
19305
+ };
19306
+ return Styled;
19307
+ };
19308
+ };
19309
+ var tags = [
19310
+ "a",
19311
+ "abbr",
19312
+ "address",
19313
+ "area",
19314
+ "article",
19315
+ "aside",
19316
+ "audio",
19317
+ "b",
19318
+ "base",
19319
+ "bdi",
19320
+ "bdo",
19321
+ "big",
19322
+ "blockquote",
19323
+ "body",
19324
+ "br",
19325
+ "button",
19326
+ "canvas",
19327
+ "caption",
19328
+ "cite",
19329
+ "code",
19330
+ "col",
19331
+ "colgroup",
19332
+ "data",
19333
+ "datalist",
19334
+ "dd",
19335
+ "del",
19336
+ "details",
19337
+ "dfn",
19338
+ "dialog",
19339
+ "div",
19340
+ "dl",
19341
+ "dt",
19342
+ "em",
19343
+ "embed",
19344
+ "fieldset",
19345
+ "figcaption",
19346
+ "figure",
19347
+ "footer",
19348
+ "form",
19349
+ "h1",
19350
+ "h2",
19351
+ "h3",
19352
+ "h4",
19353
+ "h5",
19354
+ "h6",
19355
+ "head",
19356
+ "header",
19357
+ "hgroup",
19358
+ "hr",
19359
+ "html",
19360
+ "i",
19361
+ "iframe",
19362
+ "img",
19363
+ "input",
19364
+ "ins",
19365
+ "kbd",
19366
+ "keygen",
19367
+ "label",
19368
+ "legend",
19369
+ "li",
19370
+ "link",
19371
+ "main",
19372
+ "map",
19373
+ "mark",
19374
+ "marquee",
19375
+ "menu",
19376
+ "menuitem",
19377
+ "meta",
19378
+ "meter",
19379
+ "nav",
19380
+ "noscript",
19381
+ "object",
19382
+ "ol",
19383
+ "optgroup",
19384
+ "option",
19385
+ "output",
19386
+ "p",
19387
+ "param",
19388
+ "picture",
19389
+ "pre",
19390
+ "progress",
19391
+ "q",
19392
+ "rp",
19393
+ "rt",
19394
+ "ruby",
19395
+ "s",
19396
+ "samp",
19397
+ "script",
19398
+ "section",
19399
+ "select",
19400
+ "small",
19401
+ "source",
19402
+ "span",
19403
+ "strong",
19404
+ "style",
19405
+ "sub",
19406
+ "summary",
19407
+ "sup",
19408
+ "table",
19409
+ "tbody",
19410
+ "td",
19411
+ "textarea",
19412
+ "tfoot",
19413
+ "th",
19414
+ "thead",
19415
+ "time",
19416
+ "title",
19417
+ "tr",
19418
+ "track",
19419
+ "u",
19420
+ "ul",
19421
+ "var",
19422
+ "video",
19423
+ "wbr",
19424
+ // SVG
19425
+ "circle",
19426
+ "clipPath",
19427
+ "defs",
19428
+ "ellipse",
19429
+ "foreignObject",
19430
+ "g",
19431
+ "image",
19432
+ "line",
19433
+ "linearGradient",
19434
+ "mask",
19435
+ "path",
19436
+ "pattern",
19437
+ "polygon",
19438
+ "polyline",
19439
+ "radialGradient",
19440
+ "rect",
19441
+ "stop",
19442
+ "svg",
19443
+ "text",
19444
+ "tspan"
19445
+ ];
19446
+ var newStyled = createStyled$1.bind(null);
19447
+ tags.forEach(function(tagName) {
19448
+ newStyled[tagName] = newStyled(tagName);
19449
+ });
19161
19450
  var propTypes = { exports: {} };
19162
19451
  /*
19163
19452
  object-assign
@@ -19866,7 +20155,7 @@ function requireReactJsxRuntime_development() {
19866
20155
  }
19867
20156
  return false;
19868
20157
  }
19869
- function getWrappedName(outerType, innerType, wrapperName) {
20158
+ function getWrappedName2(outerType, innerType, wrapperName) {
19870
20159
  var displayName = outerType.displayName;
19871
20160
  if (displayName) {
19872
20161
  return displayName;
@@ -19915,7 +20204,7 @@ function requireReactJsxRuntime_development() {
19915
20204
  var provider = type;
19916
20205
  return getContextName(provider._context) + ".Provider";
19917
20206
  case REACT_FORWARD_REF_TYPE:
19918
- return getWrappedName(type, type.render, "ForwardRef");
20207
+ return getWrappedName2(type, type.render, "ForwardRef");
19919
20208
  case REACT_MEMO_TYPE:
19920
20209
  var outerName = type.displayName || null;
19921
20210
  if (outerName !== null) {
@@ -20667,6 +20956,30 @@ function requireJsxRuntime() {
20667
20956
  return jsxRuntime.exports;
20668
20957
  }
20669
20958
  var jsxRuntimeExports = requireJsxRuntime();
20959
+ function styled$1(tag, options) {
20960
+ const stylesFactory = newStyled(tag, options);
20961
+ {
20962
+ return (...styles) => {
20963
+ const component = typeof tag === "string" ? `"${tag}"` : "component";
20964
+ if (styles.length === 0) {
20965
+ console.error([`MUI: Seems like you called \`styled(${component})()\` without a \`style\` argument.`, 'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join("\n"));
20966
+ } else if (styles.some((style2) => style2 === void 0)) {
20967
+ console.error(`MUI: the styled(${component})(...args) API requires all its args to be defined.`);
20968
+ }
20969
+ return stylesFactory(...styles);
20970
+ };
20971
+ }
20972
+ }
20973
+ function internal_mutateStyles(tag, processor) {
20974
+ if (Array.isArray(tag.__emotion_styles)) {
20975
+ tag.__emotion_styles = processor(tag.__emotion_styles);
20976
+ }
20977
+ }
20978
+ const wrapper = [];
20979
+ function internal_serializeStyles(styles) {
20980
+ wrapper[0] = styles;
20981
+ return serializeStyles(wrapper);
20982
+ }
20670
20983
  var reactIs = { exports: {} };
20671
20984
  var reactIs_development = {};
20672
20985
  var hasRequiredReactIs_development;
@@ -21121,11 +21434,11 @@ function style$1(options) {
21121
21434
  }
21122
21435
  function memoize(fn) {
21123
21436
  const cache = {};
21124
- return (arg) => {
21125
- if (cache[arg] === void 0) {
21126
- cache[arg] = fn(arg);
21437
+ return (arg2) => {
21438
+ if (cache[arg2] === void 0) {
21439
+ cache[arg2] = fn(arg2);
21127
21440
  }
21128
- return cache[arg];
21441
+ return cache[arg2];
21129
21442
  };
21130
21443
  }
21131
21444
  const properties = {
@@ -21795,8 +22108,8 @@ function objectsHaveSameKeys(...objects) {
21795
22108
  const union = new Set(allKeys);
21796
22109
  return objects.every((object) => union.size === Object.keys(object).length);
21797
22110
  }
21798
- function callIfFn(maybeFn, arg) {
21799
- return typeof maybeFn === "function" ? maybeFn(arg) : maybeFn;
22111
+ function callIfFn(maybeFn, arg2) {
22112
+ return typeof maybeFn === "function" ? maybeFn(arg2) : maybeFn;
21800
22113
  }
21801
22114
  function unstable_createStyleFunctionSx() {
21802
22115
  function getThemeValue(prop, val, theme, config) {
@@ -21961,17 +22274,67 @@ function createTheme$1(options = {}, ...args) {
21961
22274
  };
21962
22275
  return muiTheme;
21963
22276
  }
21964
- function isObjectEmpty(obj) {
22277
+ function isObjectEmpty$1(obj) {
21965
22278
  return Object.keys(obj).length === 0;
21966
22279
  }
21967
22280
  function useTheme$2(defaultTheme2 = null) {
21968
22281
  const contextTheme = React$1.useContext(ThemeContext);
21969
- return !contextTheme || isObjectEmpty(contextTheme) ? defaultTheme2 : contextTheme;
22282
+ return !contextTheme || isObjectEmpty$1(contextTheme) ? defaultTheme2 : contextTheme;
21970
22283
  }
21971
- const systemDefaultTheme = createTheme$1();
21972
- function useTheme$1(defaultTheme2 = systemDefaultTheme) {
22284
+ const systemDefaultTheme$1 = createTheme$1();
22285
+ function useTheme$1(defaultTheme2 = systemDefaultTheme$1) {
21973
22286
  return useTheme$2(defaultTheme2);
21974
22287
  }
22288
+ const splitProps = (props) => {
22289
+ var _a;
22290
+ const result = {
22291
+ systemProps: {},
22292
+ otherProps: {}
22293
+ };
22294
+ const config = ((_a = props == null ? void 0 : props.theme) == null ? void 0 : _a.unstable_sxConfig) ?? defaultSxConfig;
22295
+ Object.keys(props).forEach((prop) => {
22296
+ if (config[prop]) {
22297
+ result.systemProps[prop] = props[prop];
22298
+ } else {
22299
+ result.otherProps[prop] = props[prop];
22300
+ }
22301
+ });
22302
+ return result;
22303
+ };
22304
+ function extendSxProp$1(props) {
22305
+ const {
22306
+ sx: inSx,
22307
+ ...other
22308
+ } = props;
22309
+ const {
22310
+ systemProps,
22311
+ otherProps
22312
+ } = splitProps(other);
22313
+ let finalSx;
22314
+ if (Array.isArray(inSx)) {
22315
+ finalSx = [systemProps, ...inSx];
22316
+ } else if (typeof inSx === "function") {
22317
+ finalSx = (...args) => {
22318
+ const result = inSx(...args);
22319
+ if (!isPlainObject(result)) {
22320
+ return systemProps;
22321
+ }
22322
+ return {
22323
+ ...systemProps,
22324
+ ...result
22325
+ };
22326
+ };
22327
+ } else {
22328
+ finalSx = {
22329
+ ...systemProps,
22330
+ ...inSx
22331
+ };
22332
+ }
22333
+ return {
22334
+ ...otherProps,
22335
+ sx: finalSx
22336
+ };
22337
+ }
21975
22338
  const defaultGenerator = (componentName) => componentName;
21976
22339
  const createClassNameGenerator = () => {
21977
22340
  let generate = defaultGenerator;
@@ -21988,6 +22351,19 @@ const createClassNameGenerator = () => {
21988
22351
  };
21989
22352
  };
21990
22353
  const ClassNameGenerator = createClassNameGenerator();
22354
+ function r(e) {
22355
+ var t, f, n = "";
22356
+ if ("string" == typeof e || "number" == typeof e) n += e;
22357
+ else if ("object" == typeof e) if (Array.isArray(e)) {
22358
+ var o = e.length;
22359
+ for (t = 0; t < o; t++) e[t] && (f = r(e[t])) && (n && (n += " "), n += f);
22360
+ } else for (f in e) e[f] && (n && (n += " "), n += f);
22361
+ return n;
22362
+ }
22363
+ function clsx() {
22364
+ for (var e, t, f = 0, n = "", o = arguments.length; f < o; f++) (e = arguments[f]) && (t = r(e)) && (n && (n += " "), n += t);
22365
+ return n;
22366
+ }
21991
22367
  const globalStateClasses = {
21992
22368
  active: "active",
21993
22369
  checked: "checked",
@@ -22006,6 +22382,324 @@ function generateUtilityClass(componentName, slot, globalStatePrefix = "Mui") {
22006
22382
  const globalStateClass = globalStateClasses[slot];
22007
22383
  return globalStateClass ? `${globalStatePrefix}-${globalStateClass}` : `${ClassNameGenerator.generate(componentName)}-${slot}`;
22008
22384
  }
22385
+ function generateUtilityClasses(componentName, slots, globalStatePrefix = "Mui") {
22386
+ const result = {};
22387
+ slots.forEach((slot) => {
22388
+ result[slot] = generateUtilityClass(componentName, slot, globalStatePrefix);
22389
+ });
22390
+ return result;
22391
+ }
22392
+ function getFunctionComponentName(Component, fallback = "") {
22393
+ return Component.displayName || Component.name || fallback;
22394
+ }
22395
+ function getWrappedName(outerType, innerType, wrapperName) {
22396
+ const functionName = getFunctionComponentName(innerType);
22397
+ return outerType.displayName || (functionName !== "" ? `${wrapperName}(${functionName})` : wrapperName);
22398
+ }
22399
+ function getDisplayName(Component) {
22400
+ if (Component == null) {
22401
+ return void 0;
22402
+ }
22403
+ if (typeof Component === "string") {
22404
+ return Component;
22405
+ }
22406
+ if (typeof Component === "function") {
22407
+ return getFunctionComponentName(Component, "Component");
22408
+ }
22409
+ if (typeof Component === "object") {
22410
+ switch (Component.$$typeof) {
22411
+ case reactIsExports.ForwardRef:
22412
+ return getWrappedName(Component, Component.render, "ForwardRef");
22413
+ case reactIsExports.Memo:
22414
+ return getWrappedName(Component, Component.type, "memo");
22415
+ default:
22416
+ return void 0;
22417
+ }
22418
+ }
22419
+ return void 0;
22420
+ }
22421
+ function preprocessStyles(input) {
22422
+ const {
22423
+ variants,
22424
+ ...style2
22425
+ } = input;
22426
+ const result = {
22427
+ variants,
22428
+ style: internal_serializeStyles(style2),
22429
+ isProcessed: true
22430
+ };
22431
+ if (result.style === style2) {
22432
+ return result;
22433
+ }
22434
+ if (variants) {
22435
+ variants.forEach((variant) => {
22436
+ if (typeof variant.style !== "function") {
22437
+ variant.style = internal_serializeStyles(variant.style);
22438
+ }
22439
+ });
22440
+ }
22441
+ return result;
22442
+ }
22443
+ const systemDefaultTheme = createTheme$1();
22444
+ function shouldForwardProp(prop) {
22445
+ return prop !== "ownerState" && prop !== "theme" && prop !== "sx" && prop !== "as";
22446
+ }
22447
+ function defaultOverridesResolver(slot) {
22448
+ if (!slot) {
22449
+ return null;
22450
+ }
22451
+ return (_props, styles) => styles[slot];
22452
+ }
22453
+ function attachTheme(props, themeId, defaultTheme2) {
22454
+ props.theme = isObjectEmpty(props.theme) ? defaultTheme2 : props.theme[themeId] || props.theme;
22455
+ }
22456
+ function processStyle(props, style2) {
22457
+ const resolvedStyle = typeof style2 === "function" ? style2(props) : style2;
22458
+ if (Array.isArray(resolvedStyle)) {
22459
+ return resolvedStyle.flatMap((subStyle) => processStyle(props, subStyle));
22460
+ }
22461
+ if (Array.isArray(resolvedStyle == null ? void 0 : resolvedStyle.variants)) {
22462
+ let rootStyle;
22463
+ if (resolvedStyle.isProcessed) {
22464
+ rootStyle = resolvedStyle.style;
22465
+ } else {
22466
+ const {
22467
+ variants,
22468
+ ...otherStyles
22469
+ } = resolvedStyle;
22470
+ rootStyle = otherStyles;
22471
+ }
22472
+ return processStyleVariants(props, resolvedStyle.variants, [rootStyle]);
22473
+ }
22474
+ if (resolvedStyle == null ? void 0 : resolvedStyle.isProcessed) {
22475
+ return resolvedStyle.style;
22476
+ }
22477
+ return resolvedStyle;
22478
+ }
22479
+ function processStyleVariants(props, variants, results = []) {
22480
+ var _a;
22481
+ let mergedState;
22482
+ variantLoop: for (let i = 0; i < variants.length; i += 1) {
22483
+ const variant = variants[i];
22484
+ if (typeof variant.props === "function") {
22485
+ mergedState ?? (mergedState = {
22486
+ ...props,
22487
+ ...props.ownerState,
22488
+ ownerState: props.ownerState
22489
+ });
22490
+ if (!variant.props(mergedState)) {
22491
+ continue;
22492
+ }
22493
+ } else {
22494
+ for (const key in variant.props) {
22495
+ if (props[key] !== variant.props[key] && ((_a = props.ownerState) == null ? void 0 : _a[key]) !== variant.props[key]) {
22496
+ continue variantLoop;
22497
+ }
22498
+ }
22499
+ }
22500
+ if (typeof variant.style === "function") {
22501
+ mergedState ?? (mergedState = {
22502
+ ...props,
22503
+ ...props.ownerState,
22504
+ ownerState: props.ownerState
22505
+ });
22506
+ results.push(variant.style(mergedState));
22507
+ } else {
22508
+ results.push(variant.style);
22509
+ }
22510
+ }
22511
+ return results;
22512
+ }
22513
+ function createStyled2(input = {}) {
22514
+ const {
22515
+ themeId,
22516
+ defaultTheme: defaultTheme2 = systemDefaultTheme,
22517
+ rootShouldForwardProp: rootShouldForwardProp2 = shouldForwardProp,
22518
+ slotShouldForwardProp: slotShouldForwardProp2 = shouldForwardProp
22519
+ } = input;
22520
+ function styleAttachTheme(props) {
22521
+ attachTheme(props, themeId, defaultTheme2);
22522
+ }
22523
+ const styled2 = (tag, inputOptions = {}) => {
22524
+ internal_mutateStyles(tag, (styles) => styles.filter((style2) => style2 !== styleFunctionSx));
22525
+ const {
22526
+ name: componentName,
22527
+ slot: componentSlot,
22528
+ skipVariantsResolver: inputSkipVariantsResolver,
22529
+ skipSx: inputSkipSx,
22530
+ // TODO v6: remove `lowercaseFirstLetter()` in the next major release
22531
+ // For more details: https://github.com/mui/material-ui/pull/37908
22532
+ overridesResolver = defaultOverridesResolver(lowercaseFirstLetter(componentSlot)),
22533
+ ...options
22534
+ } = inputOptions;
22535
+ const skipVariantsResolver = inputSkipVariantsResolver !== void 0 ? inputSkipVariantsResolver : (
22536
+ // TODO v6: remove `Root` in the next major release
22537
+ // For more details: https://github.com/mui/material-ui/pull/37908
22538
+ componentSlot && componentSlot !== "Root" && componentSlot !== "root" || false
22539
+ );
22540
+ const skipSx = inputSkipSx || false;
22541
+ let shouldForwardPropOption = shouldForwardProp;
22542
+ if (componentSlot === "Root" || componentSlot === "root") {
22543
+ shouldForwardPropOption = rootShouldForwardProp2;
22544
+ } else if (componentSlot) {
22545
+ shouldForwardPropOption = slotShouldForwardProp2;
22546
+ } else if (isStringTag(tag)) {
22547
+ shouldForwardPropOption = void 0;
22548
+ }
22549
+ const defaultStyledResolver = styled$1(tag, {
22550
+ shouldForwardProp: shouldForwardPropOption,
22551
+ label: generateStyledLabel(componentName, componentSlot),
22552
+ ...options
22553
+ });
22554
+ const transformStyle = (style2) => {
22555
+ if (typeof style2 === "function" && style2.__emotion_real !== style2) {
22556
+ return function styleFunctionProcessor(props) {
22557
+ return processStyle(props, style2);
22558
+ };
22559
+ }
22560
+ if (isPlainObject(style2)) {
22561
+ const serialized = preprocessStyles(style2);
22562
+ if (!serialized.variants) {
22563
+ return serialized.style;
22564
+ }
22565
+ return function styleObjectProcessor(props) {
22566
+ return processStyle(props, serialized);
22567
+ };
22568
+ }
22569
+ return style2;
22570
+ };
22571
+ const muiStyledResolver = (...expressionsInput) => {
22572
+ const expressionsHead = [];
22573
+ const expressionsBody = expressionsInput.map(transformStyle);
22574
+ const expressionsTail = [];
22575
+ expressionsHead.push(styleAttachTheme);
22576
+ if (componentName && overridesResolver) {
22577
+ expressionsTail.push(function styleThemeOverrides(props) {
22578
+ var _a, _b;
22579
+ const theme = props.theme;
22580
+ const styleOverrides = (_b = (_a = theme.components) == null ? void 0 : _a[componentName]) == null ? void 0 : _b.styleOverrides;
22581
+ if (!styleOverrides) {
22582
+ return null;
22583
+ }
22584
+ const resolvedStyleOverrides = {};
22585
+ for (const slotKey in styleOverrides) {
22586
+ resolvedStyleOverrides[slotKey] = processStyle(props, styleOverrides[slotKey]);
22587
+ }
22588
+ return overridesResolver(props, resolvedStyleOverrides);
22589
+ });
22590
+ }
22591
+ if (componentName && !skipVariantsResolver) {
22592
+ expressionsTail.push(function styleThemeVariants(props) {
22593
+ var _a, _b;
22594
+ const theme = props.theme;
22595
+ const themeVariants = (_b = (_a = theme == null ? void 0 : theme.components) == null ? void 0 : _a[componentName]) == null ? void 0 : _b.variants;
22596
+ if (!themeVariants) {
22597
+ return null;
22598
+ }
22599
+ return processStyleVariants(props, themeVariants);
22600
+ });
22601
+ }
22602
+ if (!skipSx) {
22603
+ expressionsTail.push(styleFunctionSx);
22604
+ }
22605
+ if (Array.isArray(expressionsBody[0])) {
22606
+ const inputStrings = expressionsBody.shift();
22607
+ const placeholdersHead = new Array(expressionsHead.length).fill("");
22608
+ const placeholdersTail = new Array(expressionsTail.length).fill("");
22609
+ let outputStrings;
22610
+ {
22611
+ outputStrings = [...placeholdersHead, ...inputStrings, ...placeholdersTail];
22612
+ outputStrings.raw = [...placeholdersHead, ...inputStrings.raw, ...placeholdersTail];
22613
+ }
22614
+ expressionsHead.unshift(outputStrings);
22615
+ }
22616
+ const expressions = [...expressionsHead, ...expressionsBody, ...expressionsTail];
22617
+ const Component = defaultStyledResolver(...expressions);
22618
+ if (tag.muiName) {
22619
+ Component.muiName = tag.muiName;
22620
+ }
22621
+ {
22622
+ Component.displayName = generateDisplayName(componentName, componentSlot, tag);
22623
+ }
22624
+ return Component;
22625
+ };
22626
+ if (defaultStyledResolver.withConfig) {
22627
+ muiStyledResolver.withConfig = defaultStyledResolver.withConfig;
22628
+ }
22629
+ return muiStyledResolver;
22630
+ };
22631
+ return styled2;
22632
+ }
22633
+ function generateDisplayName(componentName, componentSlot, tag) {
22634
+ if (componentName) {
22635
+ return `${componentName}${capitalize(componentSlot || "")}`;
22636
+ }
22637
+ return `Styled(${getDisplayName(tag)})`;
22638
+ }
22639
+ function generateStyledLabel(componentName, componentSlot) {
22640
+ let label;
22641
+ {
22642
+ if (componentName) {
22643
+ label = `${componentName}-${lowercaseFirstLetter(componentSlot || "Root")}`;
22644
+ }
22645
+ }
22646
+ return label;
22647
+ }
22648
+ function isObjectEmpty(object) {
22649
+ for (const _ in object) {
22650
+ return false;
22651
+ }
22652
+ return true;
22653
+ }
22654
+ function isStringTag(tag) {
22655
+ return typeof tag === "string" && // 96 is one less than the char code
22656
+ // for "a" so this is checking that
22657
+ // it's a lowercase character
22658
+ tag.charCodeAt(0) > 96;
22659
+ }
22660
+ function lowercaseFirstLetter(string) {
22661
+ if (!string) {
22662
+ return string;
22663
+ }
22664
+ return string.charAt(0).toLowerCase() + string.slice(1);
22665
+ }
22666
+ function resolveProps(defaultProps, props) {
22667
+ const output = {
22668
+ ...props
22669
+ };
22670
+ for (const key in defaultProps) {
22671
+ if (Object.prototype.hasOwnProperty.call(defaultProps, key)) {
22672
+ const propName = key;
22673
+ if (propName === "components" || propName === "slots") {
22674
+ output[propName] = {
22675
+ ...defaultProps[propName],
22676
+ ...output[propName]
22677
+ };
22678
+ } else if (propName === "componentsProps" || propName === "slotProps") {
22679
+ const defaultSlotProps = defaultProps[propName];
22680
+ const slotProps = props[propName];
22681
+ if (!slotProps) {
22682
+ output[propName] = defaultSlotProps || {};
22683
+ } else if (!defaultSlotProps) {
22684
+ output[propName] = slotProps;
22685
+ } else {
22686
+ output[propName] = {
22687
+ ...slotProps
22688
+ };
22689
+ for (const slotKey in defaultSlotProps) {
22690
+ if (Object.prototype.hasOwnProperty.call(defaultSlotProps, slotKey)) {
22691
+ const slotPropName = slotKey;
22692
+ output[propName][slotPropName] = resolveProps(defaultSlotProps[slotPropName], slotProps[slotPropName]);
22693
+ }
22694
+ }
22695
+ }
22696
+ } else if (output[propName] === void 0) {
22697
+ output[propName] = defaultProps[propName];
22698
+ }
22699
+ }
22700
+ }
22701
+ return output;
22702
+ }
22009
22703
  const useEnhancedEffect$1 = typeof window !== "undefined" ? React$1.useLayoutEffect : React$1.useEffect;
22010
22704
  function clamp$1(val, min = Number.MIN_SAFE_INTEGER, max = Number.MAX_SAFE_INTEGER) {
22011
22705
  return Math.max(min, Math.min(val, max));
@@ -22226,6 +22920,69 @@ function exactProp(propTypes2) {
22226
22920
  }
22227
22921
  };
22228
22922
  }
22923
+ const PropsContext = /* @__PURE__ */ React$1.createContext(void 0);
22924
+ ({
22925
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
22926
+ // │ These PropTypes are generated from the TypeScript type definitions. │
22927
+ // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
22928
+ // └─────────────────────────────────────────────────────────────────────┘
22929
+ /**
22930
+ * @ignore
22931
+ */
22932
+ children: PropTypes.node,
22933
+ /**
22934
+ * @ignore
22935
+ */
22936
+ value: PropTypes.object
22937
+ });
22938
+ function getThemeProps(params) {
22939
+ const {
22940
+ theme,
22941
+ name,
22942
+ props
22943
+ } = params;
22944
+ if (!theme || !theme.components || !theme.components[name]) {
22945
+ return props;
22946
+ }
22947
+ const config = theme.components[name];
22948
+ if (config.defaultProps) {
22949
+ return resolveProps(config.defaultProps, props);
22950
+ }
22951
+ if (!config.styleOverrides && !config.variants) {
22952
+ return resolveProps(config, props);
22953
+ }
22954
+ return props;
22955
+ }
22956
+ function useDefaultProps$1({
22957
+ props,
22958
+ name
22959
+ }) {
22960
+ const ctx = React$1.useContext(PropsContext);
22961
+ return getThemeProps({
22962
+ props,
22963
+ name,
22964
+ theme: {
22965
+ components: ctx
22966
+ }
22967
+ });
22968
+ }
22969
+ const arg = {
22970
+ theme: void 0
22971
+ };
22972
+ function unstable_memoTheme(styleFn) {
22973
+ let lastValue;
22974
+ let lastTheme;
22975
+ return function styleMemoized(props) {
22976
+ let value = lastValue;
22977
+ if (value === void 0 || props.theme !== lastTheme) {
22978
+ arg.theme = props.theme;
22979
+ value = preprocessStyles(styleFn(arg));
22980
+ lastValue = value;
22981
+ lastTheme = props.theme;
22982
+ }
22983
+ return value;
22984
+ };
22985
+ }
22229
22986
  function createGetCssVar$1(prefix2 = "") {
22230
22987
  function appendVar(...vars) {
22231
22988
  if (!vars.length) {
@@ -22494,6 +23251,26 @@ function createGetColorSchemeSelector(selector) {
22494
23251
  return "&";
22495
23252
  };
22496
23253
  }
23254
+ function composeClasses(slots, getUtilityClass, classes = void 0) {
23255
+ const output = {};
23256
+ for (const slotName in slots) {
23257
+ const slot = slots[slotName];
23258
+ let buffer = "";
23259
+ let start = true;
23260
+ for (let i = 0; i < slot.length; i += 1) {
23261
+ const value = slot[i];
23262
+ if (value) {
23263
+ buffer += (start === true ? "" : " ") + getUtilityClass(value);
23264
+ start = false;
23265
+ if (classes && classes[value]) {
23266
+ buffer += " " + classes[value];
23267
+ }
23268
+ }
23269
+ }
23270
+ output[slotName] = buffer;
23271
+ }
23272
+ return output;
23273
+ }
22497
23274
  const common = {
22498
23275
  black: "#000",
22499
23276
  white: "#fff"
@@ -22920,17 +23697,17 @@ function createTypography(palette, typography) {
22920
23697
  }
22921
23698
  }
22922
23699
  const coef = fontSize / 14;
22923
- const pxToRem = pxToRem2 || ((size) => `${size / htmlFontSize * coef}rem`);
22924
- const buildVariant = (fontWeight, size, lineHeight, letterSpacing, casing) => ({
23700
+ const pxToRem = pxToRem2 || ((size2) => `${size2 / htmlFontSize * coef}rem`);
23701
+ const buildVariant = (fontWeight, size2, lineHeight, letterSpacing, casing) => ({
22925
23702
  fontFamily,
22926
23703
  fontWeight,
22927
- fontSize: pxToRem(size),
23704
+ fontSize: pxToRem(size2),
22928
23705
  // Unitless following https://meyerweb.com/eric/thoughts/2006/02/08/unitless-line-heights/
22929
23706
  lineHeight,
22930
23707
  // The letter spacing was designed for the Roboto font-family. Using the same letter-spacing
22931
23708
  // across font-families can cause issues with the kerning.
22932
23709
  ...fontFamily === defaultFontFamily ? {
22933
- letterSpacing: `${round(letterSpacing / size)}em`
23710
+ letterSpacing: `${round(letterSpacing / size2)}em`
22934
23711
  } : {},
22935
23712
  ...casing,
22936
23713
  ...allVariants
@@ -23721,6 +24498,15 @@ function useTheme() {
23721
24498
  }
23722
24499
  return theme[THEME_ID] || theme;
23723
24500
  }
24501
+ function slotShouldForwardProp(prop) {
24502
+ return prop !== "ownerState" && prop !== "theme" && prop !== "sx" && prop !== "as";
24503
+ }
24504
+ const rootShouldForwardProp = (prop) => slotShouldForwardProp(prop) && prop !== "classes";
24505
+ const styled = createStyled2({
24506
+ themeId: THEME_ID,
24507
+ defaultTheme,
24508
+ rootShouldForwardProp
24509
+ });
23724
24510
  const { makeStyles } = createMakeAndWithStyles({
23725
24511
  useTheme
23726
24512
  });
@@ -23732,6 +24518,27 @@ const { tss } = createTss({
23732
24518
  "usePlugin": useMuiThemeStyleOverridesPlugin
23733
24519
  });
23734
24520
  const useStyles$1 = tss.create({});
24521
+ function internal_createExtendSxProp() {
24522
+ return extendSxProp$1;
24523
+ }
24524
+ const memoTheme = unstable_memoTheme;
24525
+ ({
24526
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
24527
+ // │ These PropTypes are generated from the TypeScript type definitions. │
24528
+ // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
24529
+ // └─────────────────────────────────────────────────────────────────────┘
24530
+ /**
24531
+ * @ignore
24532
+ */
24533
+ children: PropTypes.node,
24534
+ /**
24535
+ * @ignore
24536
+ */
24537
+ value: PropTypes.object.isRequired
24538
+ });
24539
+ function useDefaultProps(params) {
24540
+ return useDefaultProps$1(params);
24541
+ }
23735
24542
  function setRef$1(ref, value) {
23736
24543
  if (typeof ref === "function") {
23737
24544
  ref(value);
@@ -23777,6 +24584,23 @@ function useForkRef$1(...refs) {
23777
24584
  };
23778
24585
  }, refs);
23779
24586
  }
24587
+ function hasCorrectMainProperty(obj) {
24588
+ return typeof obj.main === "string";
24589
+ }
24590
+ function checkSimplePaletteColorValues(obj, additionalPropertiesToCheck = []) {
24591
+ if (!hasCorrectMainProperty(obj)) {
24592
+ return false;
24593
+ }
24594
+ for (const value of additionalPropertiesToCheck) {
24595
+ if (!obj.hasOwnProperty(value) || typeof obj[value] !== "string") {
24596
+ return false;
24597
+ }
24598
+ }
24599
+ return true;
24600
+ }
24601
+ function createSimplePaletteValueFilter(additionalPropertiesToCheck = []) {
24602
+ return ([, value]) => value && checkSimplePaletteColorValues(value, additionalPropertiesToCheck);
24603
+ }
23780
24604
  function HTMLElementType(props, propName, componentName, location, propFullName) {
23781
24605
  const propValue = props[propName];
23782
24606
  const safePropName = propFullName || propName;
@@ -23860,6 +24684,266 @@ Portal.propTypes = {
23860
24684
  {
23861
24685
  Portal["propTypes"] = exactProp(Portal.propTypes);
23862
24686
  }
24687
+ function getTypographyUtilityClass(slot) {
24688
+ return generateUtilityClass("MuiTypography", slot);
24689
+ }
24690
+ generateUtilityClasses("MuiTypography", ["root", "h1", "h2", "h3", "h4", "h5", "h6", "subtitle1", "subtitle2", "body1", "body2", "inherit", "button", "caption", "overline", "alignLeft", "alignRight", "alignCenter", "alignJustify", "noWrap", "gutterBottom", "paragraph"]);
24691
+ const v6Colors = {
24692
+ primary: true,
24693
+ secondary: true,
24694
+ error: true,
24695
+ info: true,
24696
+ success: true,
24697
+ warning: true,
24698
+ textPrimary: true,
24699
+ textSecondary: true,
24700
+ textDisabled: true
24701
+ };
24702
+ const extendSxProp = internal_createExtendSxProp();
24703
+ const useUtilityClasses = (ownerState) => {
24704
+ const {
24705
+ align,
24706
+ gutterBottom,
24707
+ noWrap,
24708
+ paragraph,
24709
+ variant,
24710
+ classes
24711
+ } = ownerState;
24712
+ const slots = {
24713
+ root: ["root", variant, ownerState.align !== "inherit" && `align${capitalize(align)}`, gutterBottom && "gutterBottom", noWrap && "noWrap", paragraph && "paragraph"]
24714
+ };
24715
+ return composeClasses(slots, getTypographyUtilityClass, classes);
24716
+ };
24717
+ const TypographyRoot = styled("span", {
24718
+ name: "MuiTypography",
24719
+ slot: "Root",
24720
+ overridesResolver: (props, styles) => {
24721
+ const {
24722
+ ownerState
24723
+ } = props;
24724
+ return [styles.root, ownerState.variant && styles[ownerState.variant], ownerState.align !== "inherit" && styles[`align${capitalize(ownerState.align)}`], ownerState.noWrap && styles.noWrap, ownerState.gutterBottom && styles.gutterBottom, ownerState.paragraph && styles.paragraph];
24725
+ }
24726
+ })(memoTheme(({
24727
+ theme
24728
+ }) => {
24729
+ var _a;
24730
+ return {
24731
+ margin: 0,
24732
+ variants: [{
24733
+ props: {
24734
+ variant: "inherit"
24735
+ },
24736
+ style: {
24737
+ // Some elements, like <button> on Chrome have default font that doesn't inherit, reset this.
24738
+ font: "inherit",
24739
+ lineHeight: "inherit",
24740
+ letterSpacing: "inherit"
24741
+ }
24742
+ }, ...Object.entries(theme.typography).filter(([variant, value]) => variant !== "inherit" && value && typeof value === "object").map(([variant, value]) => ({
24743
+ props: {
24744
+ variant
24745
+ },
24746
+ style: value
24747
+ })), ...Object.entries(theme.palette).filter(createSimplePaletteValueFilter()).map(([color2]) => ({
24748
+ props: {
24749
+ color: color2
24750
+ },
24751
+ style: {
24752
+ color: (theme.vars || theme).palette[color2].main
24753
+ }
24754
+ })), ...Object.entries(((_a = theme.palette) == null ? void 0 : _a.text) || {}).filter(([, value]) => typeof value === "string").map(([color2]) => ({
24755
+ props: {
24756
+ color: `text${capitalize(color2)}`
24757
+ },
24758
+ style: {
24759
+ color: (theme.vars || theme).palette.text[color2]
24760
+ }
24761
+ })), {
24762
+ props: ({
24763
+ ownerState
24764
+ }) => ownerState.align !== "inherit",
24765
+ style: {
24766
+ textAlign: "var(--Typography-textAlign)"
24767
+ }
24768
+ }, {
24769
+ props: ({
24770
+ ownerState
24771
+ }) => ownerState.noWrap,
24772
+ style: {
24773
+ overflow: "hidden",
24774
+ textOverflow: "ellipsis",
24775
+ whiteSpace: "nowrap"
24776
+ }
24777
+ }, {
24778
+ props: ({
24779
+ ownerState
24780
+ }) => ownerState.gutterBottom,
24781
+ style: {
24782
+ marginBottom: "0.35em"
24783
+ }
24784
+ }, {
24785
+ props: ({
24786
+ ownerState
24787
+ }) => ownerState.paragraph,
24788
+ style: {
24789
+ marginBottom: 16
24790
+ }
24791
+ }]
24792
+ };
24793
+ }));
24794
+ const defaultVariantMapping = {
24795
+ h1: "h1",
24796
+ h2: "h2",
24797
+ h3: "h3",
24798
+ h4: "h4",
24799
+ h5: "h5",
24800
+ h6: "h6",
24801
+ subtitle1: "h6",
24802
+ subtitle2: "h6",
24803
+ body1: "p",
24804
+ body2: "p",
24805
+ inherit: "p"
24806
+ };
24807
+ const Typography = /* @__PURE__ */ React$1.forwardRef(function Typography2(inProps, ref) {
24808
+ const {
24809
+ color: color2,
24810
+ ...themeProps
24811
+ } = useDefaultProps({
24812
+ props: inProps,
24813
+ name: "MuiTypography"
24814
+ });
24815
+ const isSxColor = !v6Colors[color2];
24816
+ const props = extendSxProp({
24817
+ ...themeProps,
24818
+ ...isSxColor && {
24819
+ color: color2
24820
+ }
24821
+ });
24822
+ const {
24823
+ align = "inherit",
24824
+ className,
24825
+ component,
24826
+ gutterBottom = false,
24827
+ noWrap = false,
24828
+ paragraph = false,
24829
+ variant = "body1",
24830
+ variantMapping = defaultVariantMapping,
24831
+ ...other
24832
+ } = props;
24833
+ const ownerState = {
24834
+ ...props,
24835
+ align,
24836
+ color: color2,
24837
+ className,
24838
+ component,
24839
+ gutterBottom,
24840
+ noWrap,
24841
+ paragraph,
24842
+ variant,
24843
+ variantMapping
24844
+ };
24845
+ const Component = component || (paragraph ? "p" : variantMapping[variant] || defaultVariantMapping[variant]) || "span";
24846
+ const classes = useUtilityClasses(ownerState);
24847
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(TypographyRoot, {
24848
+ as: Component,
24849
+ ref,
24850
+ className: clsx(classes.root, className),
24851
+ ...other,
24852
+ ownerState,
24853
+ style: {
24854
+ ...align !== "inherit" && {
24855
+ "--Typography-textAlign": align
24856
+ },
24857
+ ...other.style
24858
+ }
24859
+ });
24860
+ });
24861
+ Typography.propTypes = {
24862
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
24863
+ // │ These PropTypes are generated from the TypeScript type definitions. │
24864
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
24865
+ // └─────────────────────────────────────────────────────────────────────┘
24866
+ /**
24867
+ * Set the text-align on the component.
24868
+ * @default 'inherit'
24869
+ */
24870
+ align: PropTypes.oneOf(["center", "inherit", "justify", "left", "right"]),
24871
+ /**
24872
+ * The content of the component.
24873
+ */
24874
+ children: PropTypes.node,
24875
+ /**
24876
+ * Override or extend the styles applied to the component.
24877
+ */
24878
+ classes: PropTypes.object,
24879
+ /**
24880
+ * @ignore
24881
+ */
24882
+ className: PropTypes.string,
24883
+ /**
24884
+ * The color of the component.
24885
+ * It supports both default and custom theme colors, which can be added as shown in the
24886
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
24887
+ */
24888
+ color: PropTypes.oneOfType([PropTypes.oneOf(["primary", "secondary", "success", "error", "info", "warning", "textPrimary", "textSecondary", "textDisabled"]), PropTypes.string]),
24889
+ /**
24890
+ * The component used for the root node.
24891
+ * Either a string to use a HTML element or a component.
24892
+ */
24893
+ component: PropTypes.elementType,
24894
+ /**
24895
+ * If `true`, the text will have a bottom margin.
24896
+ * @default false
24897
+ */
24898
+ gutterBottom: PropTypes.bool,
24899
+ /**
24900
+ * If `true`, the text will not wrap, but instead will truncate with a text overflow ellipsis.
24901
+ *
24902
+ * Note that text overflow can only happen with block or inline-block level elements
24903
+ * (the element needs to have a width in order to overflow).
24904
+ * @default false
24905
+ */
24906
+ noWrap: PropTypes.bool,
24907
+ /**
24908
+ * If `true`, the element will be a paragraph element.
24909
+ * @default false
24910
+ * @deprecated Use the `component` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
24911
+ */
24912
+ paragraph: PropTypes.bool,
24913
+ /**
24914
+ * @ignore
24915
+ */
24916
+ style: PropTypes.object,
24917
+ /**
24918
+ * The system prop that allows defining system overrides as well as additional CSS styles.
24919
+ */
24920
+ sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
24921
+ /**
24922
+ * Applies the theme typography styles.
24923
+ * @default 'body1'
24924
+ */
24925
+ variant: PropTypes.oneOfType([PropTypes.oneOf(["body1", "body2", "button", "caption", "h1", "h2", "h3", "h4", "h5", "h6", "inherit", "overline", "subtitle1", "subtitle2"]), PropTypes.string]),
24926
+ /**
24927
+ * The component maps the variant prop to a range of different HTML element types.
24928
+ * For instance, subtitle1 to `<h6>`.
24929
+ * If you wish to change that mapping, you can provide your own.
24930
+ * Alternatively, you can use the `component` prop.
24931
+ * @default {
24932
+ * h1: 'h1',
24933
+ * h2: 'h2',
24934
+ * h3: 'h3',
24935
+ * h4: 'h4',
24936
+ * h5: 'h5',
24937
+ * h6: 'h6',
24938
+ * subtitle1: 'h6',
24939
+ * subtitle2: 'h6',
24940
+ * body1: 'p',
24941
+ * body2: 'p',
24942
+ * inherit: 'p',
24943
+ * }
24944
+ */
24945
+ variantMapping: PropTypes.object
24946
+ };
23863
24947
  /**!
23864
24948
  * @fileOverview Kickass library to create and place poppers near their reference elements.
23865
24949
  * @version 1.16.1
@@ -24098,7 +25182,7 @@ var defineProperty = function(obj, key, value) {
24098
25182
  }
24099
25183
  return obj;
24100
25184
  };
24101
- var _extends = Object.assign || function(target) {
25185
+ var _extends$1 = Object.assign || function(target) {
24102
25186
  for (var i = 1; i < arguments.length; i++) {
24103
25187
  var source = arguments[i];
24104
25188
  for (var key in source) {
@@ -24110,7 +25194,7 @@ var _extends = Object.assign || function(target) {
24110
25194
  return target;
24111
25195
  };
24112
25196
  function getClientRect(offsets) {
24113
- return _extends({}, offsets, {
25197
+ return _extends$1({}, offsets, {
24114
25198
  right: offsets.left + offsets.width,
24115
25199
  bottom: offsets.top + offsets.height
24116
25200
  });
@@ -24294,7 +25378,7 @@ function computeAutoPlacement(placement, refRect, popper, reference, boundariesE
24294
25378
  }
24295
25379
  };
24296
25380
  var sortedAreas = Object.keys(rects).map(function(key) {
24297
- return _extends({
25381
+ return _extends$1({
24298
25382
  key
24299
25383
  }, rects[key], {
24300
25384
  area: getArea(rects[key])
@@ -24602,9 +25686,9 @@ function computeStyle(data, options) {
24602
25686
  var attributes = {
24603
25687
  "x-placement": data.placement
24604
25688
  };
24605
- data.attributes = _extends({}, attributes, data.attributes);
24606
- data.styles = _extends({}, styles, data.styles);
24607
- data.arrowStyles = _extends({}, data.offsets.arrow, data.arrowStyles);
25689
+ data.attributes = _extends$1({}, attributes, data.attributes);
25690
+ data.styles = _extends$1({}, styles, data.styles);
25691
+ data.arrowStyles = _extends$1({}, data.offsets.arrow, data.arrowStyles);
24608
25692
  return data;
24609
25693
  }
24610
25694
  function isModifierRequired(modifiers2, requestingName, requestedName) {
@@ -24739,7 +25823,7 @@ function flip(data, options) {
24739
25823
  variation = getOppositeVariation(variation);
24740
25824
  }
24741
25825
  data.placement = placement + (variation ? "-" + variation : "");
24742
- data.offsets.popper = _extends({}, data.offsets.popper, getPopperOffsets(data.instance.popper, data.offsets.reference, data.placement));
25826
+ data.offsets.popper = _extends$1({}, data.offsets.popper, getPopperOffsets(data.instance.popper, data.offsets.reference, data.placement));
24743
25827
  data = runModifiers(data.instance.modifiers, data, "flip");
24744
25828
  }
24745
25829
  });
@@ -24782,13 +25866,13 @@ function toValue(str, measurement, popperOffsets, referenceOffsets) {
24782
25866
  var rect = getClientRect(element);
24783
25867
  return rect[measurement] / 100 * value;
24784
25868
  } else if (unit === "vh" || unit === "vw") {
24785
- var size = void 0;
25869
+ var size2 = void 0;
24786
25870
  if (unit === "vh") {
24787
- size = Math.max(document.documentElement.clientHeight, window.innerHeight || 0);
25871
+ size2 = Math.max(document.documentElement.clientHeight, window.innerHeight || 0);
24788
25872
  } else {
24789
- size = Math.max(document.documentElement.clientWidth, window.innerWidth || 0);
25873
+ size2 = Math.max(document.documentElement.clientWidth, window.innerWidth || 0);
24790
25874
  }
24791
- return size / 100 * value;
25875
+ return size2 / 100 * value;
24792
25876
  } else {
24793
25877
  return value;
24794
25878
  }
@@ -24898,7 +25982,7 @@ function preventOverflow(data, options) {
24898
25982
  };
24899
25983
  order.forEach(function(placement) {
24900
25984
  var side = ["left", "top"].indexOf(placement) !== -1 ? "primary" : "secondary";
24901
- popper = _extends({}, popper, check[side](placement));
25985
+ popper = _extends$1({}, popper, check[side](placement));
24902
25986
  });
24903
25987
  data.offsets.popper = popper;
24904
25988
  return data;
@@ -24916,7 +26000,7 @@ function shift(data) {
24916
26000
  start: defineProperty({}, side, reference[side]),
24917
26001
  end: defineProperty({}, side, reference[side] + reference[measurement] - popper[measurement])
24918
26002
  };
24919
- data.offsets.popper = _extends({}, popper, shiftOffsets[shiftvariation]);
26003
+ data.offsets.popper = _extends$1({}, popper, shiftOffsets[shiftvariation]);
24920
26004
  }
24921
26005
  return data;
24922
26006
  }
@@ -25319,7 +26403,7 @@ var Popper = function() {
25319
26403
  return requestAnimationFrame(_this.update);
25320
26404
  };
25321
26405
  this.update = debounce(this.update.bind(this));
25322
- this.options = _extends({}, Popper2.Defaults, options);
26406
+ this.options = _extends$1({}, Popper2.Defaults, options);
25323
26407
  this.state = {
25324
26408
  isDestroyed: false,
25325
26409
  isCreated: false,
@@ -25328,11 +26412,11 @@ var Popper = function() {
25328
26412
  this.reference = reference && reference.jquery ? reference[0] : reference;
25329
26413
  this.popper = popper && popper.jquery ? popper[0] : popper;
25330
26414
  this.options.modifiers = {};
25331
- Object.keys(_extends({}, Popper2.Defaults.modifiers, options.modifiers)).forEach(function(name) {
25332
- _this.options.modifiers[name] = _extends({}, Popper2.Defaults.modifiers[name] || {}, options.modifiers ? options.modifiers[name] : {});
26415
+ Object.keys(_extends$1({}, Popper2.Defaults.modifiers, options.modifiers)).forEach(function(name) {
26416
+ _this.options.modifiers[name] = _extends$1({}, Popper2.Defaults.modifiers[name] || {}, options.modifiers ? options.modifiers[name] : {});
25333
26417
  });
25334
26418
  this.modifiers = Object.keys(this.options.modifiers).map(function(name) {
25335
- return _extends({
26419
+ return _extends$1({
25336
26420
  name
25337
26421
  }, _this.options.modifiers[name]);
25338
26422
  }).sort(function(a, b) {
@@ -25576,6 +26660,700 @@ function ScopedGlobalStyles(props) {
25576
26660
  }, [parentClassName, styles]);
25577
26661
  return component;
25578
26662
  }
26663
+ function _extends() {
26664
+ _extends = Object.assign ? Object.assign.bind() : function(target) {
26665
+ for (var i = 1; i < arguments.length; i++) {
26666
+ var source = arguments[i];
26667
+ for (var key in source) {
26668
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
26669
+ target[key] = source[key];
26670
+ }
26671
+ }
26672
+ }
26673
+ return target;
26674
+ };
26675
+ return _extends.apply(this, arguments);
26676
+ }
26677
+ function _assertThisInitialized(self2) {
26678
+ if (self2 === void 0) {
26679
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
26680
+ }
26681
+ return self2;
26682
+ }
26683
+ function _setPrototypeOf(o, p) {
26684
+ _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf2(o2, p2) {
26685
+ o2.__proto__ = p2;
26686
+ return o2;
26687
+ };
26688
+ return _setPrototypeOf(o, p);
26689
+ }
26690
+ function _inheritsLoose(subClass, superClass) {
26691
+ subClass.prototype = Object.create(superClass.prototype);
26692
+ subClass.prototype.constructor = subClass;
26693
+ _setPrototypeOf(subClass, superClass);
26694
+ }
26695
+ var safeIsNaN = Number.isNaN || function ponyfill(value) {
26696
+ return typeof value === "number" && value !== value;
26697
+ };
26698
+ function isEqual(first, second) {
26699
+ if (first === second) {
26700
+ return true;
26701
+ }
26702
+ if (safeIsNaN(first) && safeIsNaN(second)) {
26703
+ return true;
26704
+ }
26705
+ return false;
26706
+ }
26707
+ function areInputsEqual(newInputs, lastInputs) {
26708
+ if (newInputs.length !== lastInputs.length) {
26709
+ return false;
26710
+ }
26711
+ for (var i = 0; i < newInputs.length; i++) {
26712
+ if (!isEqual(newInputs[i], lastInputs[i])) {
26713
+ return false;
26714
+ }
26715
+ }
26716
+ return true;
26717
+ }
26718
+ function memoizeOne(resultFn, isEqual2) {
26719
+ if (isEqual2 === void 0) {
26720
+ isEqual2 = areInputsEqual;
26721
+ }
26722
+ var lastThis;
26723
+ var lastArgs = [];
26724
+ var lastResult;
26725
+ var calledOnce = false;
26726
+ function memoized() {
26727
+ var newArgs = [];
26728
+ for (var _i = 0; _i < arguments.length; _i++) {
26729
+ newArgs[_i] = arguments[_i];
26730
+ }
26731
+ if (calledOnce && lastThis === this && isEqual2(newArgs, lastArgs)) {
26732
+ return lastResult;
26733
+ }
26734
+ lastResult = resultFn.apply(this, newArgs);
26735
+ calledOnce = true;
26736
+ lastThis = this;
26737
+ lastArgs = newArgs;
26738
+ return lastResult;
26739
+ }
26740
+ return memoized;
26741
+ }
26742
+ var hasNativePerformanceNow = typeof performance === "object" && typeof performance.now === "function";
26743
+ var now = hasNativePerformanceNow ? function() {
26744
+ return performance.now();
26745
+ } : function() {
26746
+ return Date.now();
26747
+ };
26748
+ function cancelTimeout(timeoutID) {
26749
+ cancelAnimationFrame(timeoutID.id);
26750
+ }
26751
+ function requestTimeout(callback, delay) {
26752
+ var start = now();
26753
+ function tick() {
26754
+ if (now() - start >= delay) {
26755
+ callback.call(null);
26756
+ } else {
26757
+ timeoutID.id = requestAnimationFrame(tick);
26758
+ }
26759
+ }
26760
+ var timeoutID = {
26761
+ id: requestAnimationFrame(tick)
26762
+ };
26763
+ return timeoutID;
26764
+ }
26765
+ var size = -1;
26766
+ function getScrollbarSize(recalculate) {
26767
+ if (recalculate === void 0) {
26768
+ recalculate = false;
26769
+ }
26770
+ if (size === -1 || recalculate) {
26771
+ var div = document.createElement("div");
26772
+ var style2 = div.style;
26773
+ style2.width = "50px";
26774
+ style2.height = "50px";
26775
+ style2.overflow = "scroll";
26776
+ document.body.appendChild(div);
26777
+ size = div.offsetWidth - div.clientWidth;
26778
+ document.body.removeChild(div);
26779
+ }
26780
+ return size;
26781
+ }
26782
+ var cachedRTLResult = null;
26783
+ function getRTLOffsetType(recalculate) {
26784
+ if (recalculate === void 0) {
26785
+ recalculate = false;
26786
+ }
26787
+ if (cachedRTLResult === null || recalculate) {
26788
+ var outerDiv = document.createElement("div");
26789
+ var outerStyle = outerDiv.style;
26790
+ outerStyle.width = "50px";
26791
+ outerStyle.height = "50px";
26792
+ outerStyle.overflow = "scroll";
26793
+ outerStyle.direction = "rtl";
26794
+ var innerDiv = document.createElement("div");
26795
+ var innerStyle = innerDiv.style;
26796
+ innerStyle.width = "100px";
26797
+ innerStyle.height = "100px";
26798
+ outerDiv.appendChild(innerDiv);
26799
+ document.body.appendChild(outerDiv);
26800
+ if (outerDiv.scrollLeft > 0) {
26801
+ cachedRTLResult = "positive-descending";
26802
+ } else {
26803
+ outerDiv.scrollLeft = 1;
26804
+ if (outerDiv.scrollLeft === 0) {
26805
+ cachedRTLResult = "negative";
26806
+ } else {
26807
+ cachedRTLResult = "positive-ascending";
26808
+ }
26809
+ }
26810
+ document.body.removeChild(outerDiv);
26811
+ return cachedRTLResult;
26812
+ }
26813
+ return cachedRTLResult;
26814
+ }
26815
+ var IS_SCROLLING_DEBOUNCE_INTERVAL$1 = 150;
26816
+ var defaultItemKey$1 = function defaultItemKey3(index, data) {
26817
+ return index;
26818
+ };
26819
+ var devWarningsDirection = null;
26820
+ var devWarningsTagName$1 = null;
26821
+ {
26822
+ if (typeof window !== "undefined" && typeof window.WeakSet !== "undefined") {
26823
+ devWarningsDirection = /* @__PURE__ */ new WeakSet();
26824
+ devWarningsTagName$1 = /* @__PURE__ */ new WeakSet();
26825
+ }
26826
+ }
26827
+ function createListComponent(_ref) {
26828
+ var _class;
26829
+ var getItemOffset3 = _ref.getItemOffset, getEstimatedTotalSize4 = _ref.getEstimatedTotalSize, getItemSize3 = _ref.getItemSize, getOffsetForIndexAndAlignment5 = _ref.getOffsetForIndexAndAlignment, getStartIndexForOffset3 = _ref.getStartIndexForOffset, getStopIndexForStartIndex3 = _ref.getStopIndexForStartIndex, initInstanceProps5 = _ref.initInstanceProps, shouldResetStyleCacheOnItemSizeChange = _ref.shouldResetStyleCacheOnItemSizeChange, validateProps5 = _ref.validateProps;
26830
+ return _class = /* @__PURE__ */ function(_PureComponent) {
26831
+ _inheritsLoose(List, _PureComponent);
26832
+ function List(props) {
26833
+ var _this;
26834
+ _this = _PureComponent.call(this, props) || this;
26835
+ _this._instanceProps = initInstanceProps5(_this.props, _assertThisInitialized(_this));
26836
+ _this._outerRef = void 0;
26837
+ _this._resetIsScrollingTimeoutId = null;
26838
+ _this.state = {
26839
+ instance: _assertThisInitialized(_this),
26840
+ isScrolling: false,
26841
+ scrollDirection: "forward",
26842
+ scrollOffset: typeof _this.props.initialScrollOffset === "number" ? _this.props.initialScrollOffset : 0,
26843
+ scrollUpdateWasRequested: false
26844
+ };
26845
+ _this._callOnItemsRendered = void 0;
26846
+ _this._callOnItemsRendered = memoizeOne(function(overscanStartIndex, overscanStopIndex, visibleStartIndex, visibleStopIndex) {
26847
+ return _this.props.onItemsRendered({
26848
+ overscanStartIndex,
26849
+ overscanStopIndex,
26850
+ visibleStartIndex,
26851
+ visibleStopIndex
26852
+ });
26853
+ });
26854
+ _this._callOnScroll = void 0;
26855
+ _this._callOnScroll = memoizeOne(function(scrollDirection, scrollOffset, scrollUpdateWasRequested) {
26856
+ return _this.props.onScroll({
26857
+ scrollDirection,
26858
+ scrollOffset,
26859
+ scrollUpdateWasRequested
26860
+ });
26861
+ });
26862
+ _this._getItemStyle = void 0;
26863
+ _this._getItemStyle = function(index) {
26864
+ var _this$props = _this.props, direction = _this$props.direction, itemSize = _this$props.itemSize, layout = _this$props.layout;
26865
+ var itemStyleCache = _this._getItemStyleCache(shouldResetStyleCacheOnItemSizeChange && itemSize, shouldResetStyleCacheOnItemSizeChange && layout, shouldResetStyleCacheOnItemSizeChange && direction);
26866
+ var style2;
26867
+ if (itemStyleCache.hasOwnProperty(index)) {
26868
+ style2 = itemStyleCache[index];
26869
+ } else {
26870
+ var _offset = getItemOffset3(_this.props, index, _this._instanceProps);
26871
+ var size2 = getItemSize3(_this.props, index, _this._instanceProps);
26872
+ var isHorizontal = direction === "horizontal" || layout === "horizontal";
26873
+ var isRtl = direction === "rtl";
26874
+ var offsetHorizontal = isHorizontal ? _offset : 0;
26875
+ itemStyleCache[index] = style2 = {
26876
+ position: "absolute",
26877
+ left: isRtl ? void 0 : offsetHorizontal,
26878
+ right: isRtl ? offsetHorizontal : void 0,
26879
+ top: !isHorizontal ? _offset : 0,
26880
+ height: !isHorizontal ? size2 : "100%",
26881
+ width: isHorizontal ? size2 : "100%"
26882
+ };
26883
+ }
26884
+ return style2;
26885
+ };
26886
+ _this._getItemStyleCache = void 0;
26887
+ _this._getItemStyleCache = memoizeOne(function(_, __, ___) {
26888
+ return {};
26889
+ });
26890
+ _this._onScrollHorizontal = function(event) {
26891
+ var _event$currentTarget = event.currentTarget, clientWidth = _event$currentTarget.clientWidth, scrollLeft = _event$currentTarget.scrollLeft, scrollWidth = _event$currentTarget.scrollWidth;
26892
+ _this.setState(function(prevState) {
26893
+ if (prevState.scrollOffset === scrollLeft) {
26894
+ return null;
26895
+ }
26896
+ var direction = _this.props.direction;
26897
+ var scrollOffset = scrollLeft;
26898
+ if (direction === "rtl") {
26899
+ switch (getRTLOffsetType()) {
26900
+ case "negative":
26901
+ scrollOffset = -scrollLeft;
26902
+ break;
26903
+ case "positive-descending":
26904
+ scrollOffset = scrollWidth - clientWidth - scrollLeft;
26905
+ break;
26906
+ }
26907
+ }
26908
+ scrollOffset = Math.max(0, Math.min(scrollOffset, scrollWidth - clientWidth));
26909
+ return {
26910
+ isScrolling: true,
26911
+ scrollDirection: prevState.scrollOffset < scrollOffset ? "forward" : "backward",
26912
+ scrollOffset,
26913
+ scrollUpdateWasRequested: false
26914
+ };
26915
+ }, _this._resetIsScrollingDebounced);
26916
+ };
26917
+ _this._onScrollVertical = function(event) {
26918
+ var _event$currentTarget2 = event.currentTarget, clientHeight = _event$currentTarget2.clientHeight, scrollHeight = _event$currentTarget2.scrollHeight, scrollTop = _event$currentTarget2.scrollTop;
26919
+ _this.setState(function(prevState) {
26920
+ if (prevState.scrollOffset === scrollTop) {
26921
+ return null;
26922
+ }
26923
+ var scrollOffset = Math.max(0, Math.min(scrollTop, scrollHeight - clientHeight));
26924
+ return {
26925
+ isScrolling: true,
26926
+ scrollDirection: prevState.scrollOffset < scrollOffset ? "forward" : "backward",
26927
+ scrollOffset,
26928
+ scrollUpdateWasRequested: false
26929
+ };
26930
+ }, _this._resetIsScrollingDebounced);
26931
+ };
26932
+ _this._outerRefSetter = function(ref) {
26933
+ var outerRef = _this.props.outerRef;
26934
+ _this._outerRef = ref;
26935
+ if (typeof outerRef === "function") {
26936
+ outerRef(ref);
26937
+ } else if (outerRef != null && typeof outerRef === "object" && outerRef.hasOwnProperty("current")) {
26938
+ outerRef.current = ref;
26939
+ }
26940
+ };
26941
+ _this._resetIsScrollingDebounced = function() {
26942
+ if (_this._resetIsScrollingTimeoutId !== null) {
26943
+ cancelTimeout(_this._resetIsScrollingTimeoutId);
26944
+ }
26945
+ _this._resetIsScrollingTimeoutId = requestTimeout(_this._resetIsScrolling, IS_SCROLLING_DEBOUNCE_INTERVAL$1);
26946
+ };
26947
+ _this._resetIsScrolling = function() {
26948
+ _this._resetIsScrollingTimeoutId = null;
26949
+ _this.setState({
26950
+ isScrolling: false
26951
+ }, function() {
26952
+ _this._getItemStyleCache(-1, null);
26953
+ });
26954
+ };
26955
+ return _this;
26956
+ }
26957
+ List.getDerivedStateFromProps = function getDerivedStateFromProps(nextProps, prevState) {
26958
+ validateSharedProps$1(nextProps, prevState);
26959
+ validateProps5(nextProps);
26960
+ return null;
26961
+ };
26962
+ var _proto = List.prototype;
26963
+ _proto.scrollTo = function scrollTo(scrollOffset) {
26964
+ scrollOffset = Math.max(0, scrollOffset);
26965
+ this.setState(function(prevState) {
26966
+ if (prevState.scrollOffset === scrollOffset) {
26967
+ return null;
26968
+ }
26969
+ return {
26970
+ scrollDirection: prevState.scrollOffset < scrollOffset ? "forward" : "backward",
26971
+ scrollOffset,
26972
+ scrollUpdateWasRequested: true
26973
+ };
26974
+ }, this._resetIsScrollingDebounced);
26975
+ };
26976
+ _proto.scrollToItem = function scrollToItem(index, align) {
26977
+ if (align === void 0) {
26978
+ align = "auto";
26979
+ }
26980
+ var _this$props2 = this.props, itemCount = _this$props2.itemCount, layout = _this$props2.layout;
26981
+ var scrollOffset = this.state.scrollOffset;
26982
+ index = Math.max(0, Math.min(index, itemCount - 1));
26983
+ var scrollbarSize = 0;
26984
+ if (this._outerRef) {
26985
+ var outerRef = this._outerRef;
26986
+ if (layout === "vertical") {
26987
+ scrollbarSize = outerRef.scrollWidth > outerRef.clientWidth ? getScrollbarSize() : 0;
26988
+ } else {
26989
+ scrollbarSize = outerRef.scrollHeight > outerRef.clientHeight ? getScrollbarSize() : 0;
26990
+ }
26991
+ }
26992
+ this.scrollTo(getOffsetForIndexAndAlignment5(this.props, index, align, scrollOffset, this._instanceProps, scrollbarSize));
26993
+ };
26994
+ _proto.componentDidMount = function componentDidMount() {
26995
+ var _this$props3 = this.props, direction = _this$props3.direction, initialScrollOffset = _this$props3.initialScrollOffset, layout = _this$props3.layout;
26996
+ if (typeof initialScrollOffset === "number" && this._outerRef != null) {
26997
+ var outerRef = this._outerRef;
26998
+ if (direction === "horizontal" || layout === "horizontal") {
26999
+ outerRef.scrollLeft = initialScrollOffset;
27000
+ } else {
27001
+ outerRef.scrollTop = initialScrollOffset;
27002
+ }
27003
+ }
27004
+ this._callPropsCallbacks();
27005
+ };
27006
+ _proto.componentDidUpdate = function componentDidUpdate() {
27007
+ var _this$props4 = this.props, direction = _this$props4.direction, layout = _this$props4.layout;
27008
+ var _this$state = this.state, scrollOffset = _this$state.scrollOffset, scrollUpdateWasRequested = _this$state.scrollUpdateWasRequested;
27009
+ if (scrollUpdateWasRequested && this._outerRef != null) {
27010
+ var outerRef = this._outerRef;
27011
+ if (direction === "horizontal" || layout === "horizontal") {
27012
+ if (direction === "rtl") {
27013
+ switch (getRTLOffsetType()) {
27014
+ case "negative":
27015
+ outerRef.scrollLeft = -scrollOffset;
27016
+ break;
27017
+ case "positive-ascending":
27018
+ outerRef.scrollLeft = scrollOffset;
27019
+ break;
27020
+ default:
27021
+ var clientWidth = outerRef.clientWidth, scrollWidth = outerRef.scrollWidth;
27022
+ outerRef.scrollLeft = scrollWidth - clientWidth - scrollOffset;
27023
+ break;
27024
+ }
27025
+ } else {
27026
+ outerRef.scrollLeft = scrollOffset;
27027
+ }
27028
+ } else {
27029
+ outerRef.scrollTop = scrollOffset;
27030
+ }
27031
+ }
27032
+ this._callPropsCallbacks();
27033
+ };
27034
+ _proto.componentWillUnmount = function componentWillUnmount() {
27035
+ if (this._resetIsScrollingTimeoutId !== null) {
27036
+ cancelTimeout(this._resetIsScrollingTimeoutId);
27037
+ }
27038
+ };
27039
+ _proto.render = function render() {
27040
+ var _this$props5 = this.props, children = _this$props5.children, className = _this$props5.className, direction = _this$props5.direction, height2 = _this$props5.height, innerRef = _this$props5.innerRef, innerElementType = _this$props5.innerElementType, innerTagName = _this$props5.innerTagName, itemCount = _this$props5.itemCount, itemData = _this$props5.itemData, _this$props5$itemKey = _this$props5.itemKey, itemKey = _this$props5$itemKey === void 0 ? defaultItemKey$1 : _this$props5$itemKey, layout = _this$props5.layout, outerElementType = _this$props5.outerElementType, outerTagName = _this$props5.outerTagName, style2 = _this$props5.style, useIsScrolling = _this$props5.useIsScrolling, width2 = _this$props5.width;
27041
+ var isScrolling = this.state.isScrolling;
27042
+ var isHorizontal = direction === "horizontal" || layout === "horizontal";
27043
+ var onScroll = isHorizontal ? this._onScrollHorizontal : this._onScrollVertical;
27044
+ var _this$_getRangeToRend = this._getRangeToRender(), startIndex = _this$_getRangeToRend[0], stopIndex = _this$_getRangeToRend[1];
27045
+ var items = [];
27046
+ if (itemCount > 0) {
27047
+ for (var _index = startIndex; _index <= stopIndex; _index++) {
27048
+ items.push(createElement(children, {
27049
+ data: itemData,
27050
+ key: itemKey(_index, itemData),
27051
+ index: _index,
27052
+ isScrolling: useIsScrolling ? isScrolling : void 0,
27053
+ style: this._getItemStyle(_index)
27054
+ }));
27055
+ }
27056
+ }
27057
+ var estimatedTotalSize = getEstimatedTotalSize4(this.props, this._instanceProps);
27058
+ return createElement(outerElementType || outerTagName || "div", {
27059
+ className,
27060
+ onScroll,
27061
+ ref: this._outerRefSetter,
27062
+ style: _extends({
27063
+ position: "relative",
27064
+ height: height2,
27065
+ width: width2,
27066
+ overflow: "auto",
27067
+ WebkitOverflowScrolling: "touch",
27068
+ willChange: "transform",
27069
+ direction
27070
+ }, style2)
27071
+ }, createElement(innerElementType || innerTagName || "div", {
27072
+ children: items,
27073
+ ref: innerRef,
27074
+ style: {
27075
+ height: isHorizontal ? "100%" : estimatedTotalSize,
27076
+ pointerEvents: isScrolling ? "none" : void 0,
27077
+ width: isHorizontal ? estimatedTotalSize : "100%"
27078
+ }
27079
+ }));
27080
+ };
27081
+ _proto._callPropsCallbacks = function _callPropsCallbacks() {
27082
+ if (typeof this.props.onItemsRendered === "function") {
27083
+ var itemCount = this.props.itemCount;
27084
+ if (itemCount > 0) {
27085
+ var _this$_getRangeToRend2 = this._getRangeToRender(), _overscanStartIndex = _this$_getRangeToRend2[0], _overscanStopIndex = _this$_getRangeToRend2[1], _visibleStartIndex = _this$_getRangeToRend2[2], _visibleStopIndex = _this$_getRangeToRend2[3];
27086
+ this._callOnItemsRendered(_overscanStartIndex, _overscanStopIndex, _visibleStartIndex, _visibleStopIndex);
27087
+ }
27088
+ }
27089
+ if (typeof this.props.onScroll === "function") {
27090
+ var _this$state2 = this.state, _scrollDirection = _this$state2.scrollDirection, _scrollOffset = _this$state2.scrollOffset, _scrollUpdateWasRequested = _this$state2.scrollUpdateWasRequested;
27091
+ this._callOnScroll(_scrollDirection, _scrollOffset, _scrollUpdateWasRequested);
27092
+ }
27093
+ };
27094
+ _proto._getRangeToRender = function _getRangeToRender() {
27095
+ var _this$props6 = this.props, itemCount = _this$props6.itemCount, overscanCount = _this$props6.overscanCount;
27096
+ var _this$state3 = this.state, isScrolling = _this$state3.isScrolling, scrollDirection = _this$state3.scrollDirection, scrollOffset = _this$state3.scrollOffset;
27097
+ if (itemCount === 0) {
27098
+ return [0, 0, 0, 0];
27099
+ }
27100
+ var startIndex = getStartIndexForOffset3(this.props, scrollOffset, this._instanceProps);
27101
+ var stopIndex = getStopIndexForStartIndex3(this.props, startIndex, scrollOffset, this._instanceProps);
27102
+ var overscanBackward = !isScrolling || scrollDirection === "backward" ? Math.max(1, overscanCount) : 1;
27103
+ var overscanForward = !isScrolling || scrollDirection === "forward" ? Math.max(1, overscanCount) : 1;
27104
+ return [Math.max(0, startIndex - overscanBackward), Math.max(0, Math.min(itemCount - 1, stopIndex + overscanForward)), startIndex, stopIndex];
27105
+ };
27106
+ return List;
27107
+ }(PureComponent), _class.defaultProps = {
27108
+ direction: "ltr",
27109
+ itemData: void 0,
27110
+ layout: "vertical",
27111
+ overscanCount: 2,
27112
+ useIsScrolling: false
27113
+ }, _class;
27114
+ }
27115
+ var validateSharedProps$1 = function validateSharedProps3(_ref2, _ref3) {
27116
+ var children = _ref2.children, direction = _ref2.direction, height2 = _ref2.height, layout = _ref2.layout, innerTagName = _ref2.innerTagName, outerTagName = _ref2.outerTagName, width2 = _ref2.width;
27117
+ var instance = _ref3.instance;
27118
+ {
27119
+ if (innerTagName != null || outerTagName != null) {
27120
+ if (devWarningsTagName$1 && !devWarningsTagName$1.has(instance)) {
27121
+ devWarningsTagName$1.add(instance);
27122
+ console.warn("The innerTagName and outerTagName props have been deprecated. Please use the innerElementType and outerElementType props instead.");
27123
+ }
27124
+ }
27125
+ var isHorizontal = direction === "horizontal" || layout === "horizontal";
27126
+ switch (direction) {
27127
+ case "horizontal":
27128
+ case "vertical":
27129
+ if (devWarningsDirection && !devWarningsDirection.has(instance)) {
27130
+ devWarningsDirection.add(instance);
27131
+ console.warn('The direction prop should be either "ltr" (default) or "rtl". Please use the layout prop to specify "vertical" (default) or "horizontal" orientation.');
27132
+ }
27133
+ break;
27134
+ case "ltr":
27135
+ case "rtl":
27136
+ break;
27137
+ default:
27138
+ throw Error('An invalid "direction" prop has been specified. Value should be either "ltr" or "rtl". ' + ('"' + direction + '" was specified.'));
27139
+ }
27140
+ switch (layout) {
27141
+ case "horizontal":
27142
+ case "vertical":
27143
+ break;
27144
+ default:
27145
+ throw Error('An invalid "layout" prop has been specified. Value should be either "horizontal" or "vertical". ' + ('"' + layout + '" was specified.'));
27146
+ }
27147
+ if (children == null) {
27148
+ throw Error('An invalid "children" prop has been specified. Value should be a React component. ' + ('"' + (children === null ? "null" : typeof children) + '" was specified.'));
27149
+ }
27150
+ if (isHorizontal && typeof width2 !== "number") {
27151
+ throw Error('An invalid "width" prop has been specified. Horizontal lists must specify a number for width. ' + ('"' + (width2 === null ? "null" : typeof width2) + '" was specified.'));
27152
+ } else if (!isHorizontal && typeof height2 !== "number") {
27153
+ throw Error('An invalid "height" prop has been specified. Vertical lists must specify a number for height. ' + ('"' + (height2 === null ? "null" : typeof height2) + '" was specified.'));
27154
+ }
27155
+ }
27156
+ };
27157
+ var DEFAULT_ESTIMATED_ITEM_SIZE$1 = 50;
27158
+ var getItemMetadata$1 = function getItemMetadata3(props, index, instanceProps) {
27159
+ var _ref = props, itemSize = _ref.itemSize;
27160
+ var itemMetadataMap = instanceProps.itemMetadataMap, lastMeasuredIndex = instanceProps.lastMeasuredIndex;
27161
+ if (index > lastMeasuredIndex) {
27162
+ var offset2 = 0;
27163
+ if (lastMeasuredIndex >= 0) {
27164
+ var itemMetadata = itemMetadataMap[lastMeasuredIndex];
27165
+ offset2 = itemMetadata.offset + itemMetadata.size;
27166
+ }
27167
+ for (var i = lastMeasuredIndex + 1; i <= index; i++) {
27168
+ var size2 = itemSize(i);
27169
+ itemMetadataMap[i] = {
27170
+ offset: offset2,
27171
+ size: size2
27172
+ };
27173
+ offset2 += size2;
27174
+ }
27175
+ instanceProps.lastMeasuredIndex = index;
27176
+ }
27177
+ return itemMetadataMap[index];
27178
+ };
27179
+ var findNearestItem$1 = function findNearestItem3(props, instanceProps, offset2) {
27180
+ var itemMetadataMap = instanceProps.itemMetadataMap, lastMeasuredIndex = instanceProps.lastMeasuredIndex;
27181
+ var lastMeasuredItemOffset = lastMeasuredIndex > 0 ? itemMetadataMap[lastMeasuredIndex].offset : 0;
27182
+ if (lastMeasuredItemOffset >= offset2) {
27183
+ return findNearestItemBinarySearch$1(props, instanceProps, lastMeasuredIndex, 0, offset2);
27184
+ } else {
27185
+ return findNearestItemExponentialSearch$1(props, instanceProps, Math.max(0, lastMeasuredIndex), offset2);
27186
+ }
27187
+ };
27188
+ var findNearestItemBinarySearch$1 = function findNearestItemBinarySearch3(props, instanceProps, high, low, offset2) {
27189
+ while (low <= high) {
27190
+ var middle = low + Math.floor((high - low) / 2);
27191
+ var currentOffset = getItemMetadata$1(props, middle, instanceProps).offset;
27192
+ if (currentOffset === offset2) {
27193
+ return middle;
27194
+ } else if (currentOffset < offset2) {
27195
+ low = middle + 1;
27196
+ } else if (currentOffset > offset2) {
27197
+ high = middle - 1;
27198
+ }
27199
+ }
27200
+ if (low > 0) {
27201
+ return low - 1;
27202
+ } else {
27203
+ return 0;
27204
+ }
27205
+ };
27206
+ var findNearestItemExponentialSearch$1 = function findNearestItemExponentialSearch3(props, instanceProps, index, offset2) {
27207
+ var itemCount = props.itemCount;
27208
+ var interval = 1;
27209
+ while (index < itemCount && getItemMetadata$1(props, index, instanceProps).offset < offset2) {
27210
+ index += interval;
27211
+ interval *= 2;
27212
+ }
27213
+ return findNearestItemBinarySearch$1(props, instanceProps, Math.min(index, itemCount - 1), Math.floor(index / 2), offset2);
27214
+ };
27215
+ var getEstimatedTotalSize = function getEstimatedTotalSize2(_ref2, _ref3) {
27216
+ var itemCount = _ref2.itemCount;
27217
+ var itemMetadataMap = _ref3.itemMetadataMap, estimatedItemSize = _ref3.estimatedItemSize, lastMeasuredIndex = _ref3.lastMeasuredIndex;
27218
+ var totalSizeOfMeasuredItems = 0;
27219
+ if (lastMeasuredIndex >= itemCount) {
27220
+ lastMeasuredIndex = itemCount - 1;
27221
+ }
27222
+ if (lastMeasuredIndex >= 0) {
27223
+ var itemMetadata = itemMetadataMap[lastMeasuredIndex];
27224
+ totalSizeOfMeasuredItems = itemMetadata.offset + itemMetadata.size;
27225
+ }
27226
+ var numUnmeasuredItems = itemCount - lastMeasuredIndex - 1;
27227
+ var totalSizeOfUnmeasuredItems = numUnmeasuredItems * estimatedItemSize;
27228
+ return totalSizeOfMeasuredItems + totalSizeOfUnmeasuredItems;
27229
+ };
27230
+ var VariableSizeList$1 = /* @__PURE__ */ createListComponent({
27231
+ getItemOffset: function getItemOffset(props, index, instanceProps) {
27232
+ return getItemMetadata$1(props, index, instanceProps).offset;
27233
+ },
27234
+ getItemSize: function getItemSize(props, index, instanceProps) {
27235
+ return instanceProps.itemMetadataMap[index].size;
27236
+ },
27237
+ getEstimatedTotalSize,
27238
+ getOffsetForIndexAndAlignment: function getOffsetForIndexAndAlignment3(props, index, align, scrollOffset, instanceProps, scrollbarSize) {
27239
+ var direction = props.direction, height2 = props.height, layout = props.layout, width2 = props.width;
27240
+ var isHorizontal = direction === "horizontal" || layout === "horizontal";
27241
+ var size2 = isHorizontal ? width2 : height2;
27242
+ var itemMetadata = getItemMetadata$1(props, index, instanceProps);
27243
+ var estimatedTotalSize = getEstimatedTotalSize(props, instanceProps);
27244
+ var maxOffset = Math.max(0, Math.min(estimatedTotalSize - size2, itemMetadata.offset));
27245
+ var minOffset = Math.max(0, itemMetadata.offset - size2 + itemMetadata.size + scrollbarSize);
27246
+ if (align === "smart") {
27247
+ if (scrollOffset >= minOffset - size2 && scrollOffset <= maxOffset + size2) {
27248
+ align = "auto";
27249
+ } else {
27250
+ align = "center";
27251
+ }
27252
+ }
27253
+ switch (align) {
27254
+ case "start":
27255
+ return maxOffset;
27256
+ case "end":
27257
+ return minOffset;
27258
+ case "center":
27259
+ return Math.round(minOffset + (maxOffset - minOffset) / 2);
27260
+ case "auto":
27261
+ default:
27262
+ if (scrollOffset >= minOffset && scrollOffset <= maxOffset) {
27263
+ return scrollOffset;
27264
+ } else if (scrollOffset < minOffset) {
27265
+ return minOffset;
27266
+ } else {
27267
+ return maxOffset;
27268
+ }
27269
+ }
27270
+ },
27271
+ getStartIndexForOffset: function getStartIndexForOffset(props, offset2, instanceProps) {
27272
+ return findNearestItem$1(props, instanceProps, offset2);
27273
+ },
27274
+ getStopIndexForStartIndex: function getStopIndexForStartIndex(props, startIndex, scrollOffset, instanceProps) {
27275
+ var direction = props.direction, height2 = props.height, itemCount = props.itemCount, layout = props.layout, width2 = props.width;
27276
+ var isHorizontal = direction === "horizontal" || layout === "horizontal";
27277
+ var size2 = isHorizontal ? width2 : height2;
27278
+ var itemMetadata = getItemMetadata$1(props, startIndex, instanceProps);
27279
+ var maxOffset = scrollOffset + size2;
27280
+ var offset2 = itemMetadata.offset + itemMetadata.size;
27281
+ var stopIndex = startIndex;
27282
+ while (stopIndex < itemCount - 1 && offset2 < maxOffset) {
27283
+ stopIndex++;
27284
+ offset2 += getItemMetadata$1(props, stopIndex, instanceProps).size;
27285
+ }
27286
+ return stopIndex;
27287
+ },
27288
+ initInstanceProps: function initInstanceProps2(props, instance) {
27289
+ var _ref4 = props, estimatedItemSize = _ref4.estimatedItemSize;
27290
+ var instanceProps = {
27291
+ itemMetadataMap: {},
27292
+ estimatedItemSize: estimatedItemSize || DEFAULT_ESTIMATED_ITEM_SIZE$1,
27293
+ lastMeasuredIndex: -1
27294
+ };
27295
+ instance.resetAfterIndex = function(index, shouldForceUpdate) {
27296
+ if (shouldForceUpdate === void 0) {
27297
+ shouldForceUpdate = true;
27298
+ }
27299
+ instanceProps.lastMeasuredIndex = Math.min(instanceProps.lastMeasuredIndex, index - 1);
27300
+ instance._getItemStyleCache(-1);
27301
+ if (shouldForceUpdate) {
27302
+ instance.forceUpdate();
27303
+ }
27304
+ };
27305
+ return instanceProps;
27306
+ },
27307
+ shouldResetStyleCacheOnItemSizeChange: false,
27308
+ validateProps: function validateProps2(_ref5) {
27309
+ var itemSize = _ref5.itemSize;
27310
+ {
27311
+ if (typeof itemSize !== "function") {
27312
+ throw Error('An invalid "itemSize" prop has been specified. Value should be a function. ' + ('"' + (itemSize === null ? "null" : typeof itemSize) + '" was specified.'));
27313
+ }
27314
+ }
27315
+ }
27316
+ });
27317
+ const VariableSizeList = VariableSizeList$1;
27318
+ const LIST_ROW_HEIGHT = 48;
27319
+ makeStyles()(() => ({
27320
+ searchInput: {
27321
+ lineHeight: "initial",
27322
+ height: "auto !important"
27323
+ }
27324
+ }));
27325
+ const OuterElementContext = React__default.createContext({});
27326
+ const OuterElementType = React__default.forwardRef((props, ref) => {
27327
+ const outerProps = React__default.useContext(OuterElementContext);
27328
+ return jsxRuntimeExports.jsx("div", { ref, ...props, ...outerProps });
27329
+ });
27330
+ function ListRow(props) {
27331
+ const { data, index, style: style2 } = props;
27332
+ const dataSet = data[index];
27333
+ const inlineStyle = {
27334
+ ...style2,
27335
+ top: style2.top + 8
27336
+ };
27337
+ const [props0, option, getItemLabel] = dataSet;
27338
+ const { key, ...optionProps } = props0;
27339
+ return jsxRuntimeExports.jsx(Typography, { component: "li", ...optionProps, noWrap: true, style: inlineStyle, children: getItemLabel(option) }, key);
27340
+ }
27341
+ function useResetCache(itemCount) {
27342
+ const ref = useRef(null);
27343
+ useEffect(() => {
27344
+ if (ref.current != null) {
27345
+ ref.current.resetAfterIndex(0, true);
27346
+ }
27347
+ }, [itemCount]);
27348
+ return ref;
27349
+ }
27350
+ React__default.forwardRef((props, ref) => {
27351
+ const { children, ...other } = props;
27352
+ const items = children;
27353
+ const itemCount = items.length;
27354
+ const gridRef = useResetCache(itemCount);
27355
+ return jsxRuntimeExports.jsx("div", { ref, children: jsxRuntimeExports.jsx(OuterElementContext.Provider, { value: other, children: jsxRuntimeExports.jsx(VariableSizeList, { height: Math.min(8, itemCount) * LIST_ROW_HEIGHT, itemSize: () => LIST_ROW_HEIGHT, width: "100%", innerElementType: "ul", outerElementType: OuterElementType, overscanCount: 5, ref: gridRef, itemCount, itemData: items, children: ListRow }) }) });
27356
+ });
25579
27357
  const useStyles = makeStyles()(() => ({
25580
27358
  neuroglancerWrapper: {
25581
27359
  position: "relative",
@@ -28198,7 +29976,7 @@ function NeuroglancerGlobalStyles(props) {
28198
29976
  }
28199
29977
  ));
28200
29978
  }
28201
- const LazyReactNeuroglancer = React__default.lazy(() => import("./ReactNeuroglancer-DTI8FUjG.js"));
29979
+ const LazyReactNeuroglancer = React__default.lazy(() => import("./ReactNeuroglancer-iER_A9Wd.js"));
28202
29980
  function createWorker() {
28203
29981
  return new WorkerFactory();
28204
29982
  }
@@ -28616,25 +30394,25 @@ class Quaternion {
28616
30394
  return this;
28617
30395
  }
28618
30396
  setFromUnitVectors(vFrom, vTo) {
28619
- let r = vFrom.dot(vTo) + 1;
28620
- if (r < Number.EPSILON) {
28621
- r = 0;
30397
+ let r2 = vFrom.dot(vTo) + 1;
30398
+ if (r2 < Number.EPSILON) {
30399
+ r2 = 0;
28622
30400
  if (Math.abs(vFrom.x) > Math.abs(vFrom.z)) {
28623
30401
  this._x = -vFrom.y;
28624
30402
  this._y = vFrom.x;
28625
30403
  this._z = 0;
28626
- this._w = r;
30404
+ this._w = r2;
28627
30405
  } else {
28628
30406
  this._x = 0;
28629
30407
  this._y = -vFrom.z;
28630
30408
  this._z = vFrom.y;
28631
- this._w = r;
30409
+ this._w = r2;
28632
30410
  }
28633
30411
  } else {
28634
30412
  this._x = vFrom.y * vTo.z - vFrom.z * vTo.y;
28635
30413
  this._y = vFrom.z * vTo.x - vFrom.x * vTo.z;
28636
30414
  this._z = vFrom.x * vTo.y - vFrom.y * vTo.x;
28637
- this._w = r;
30415
+ this._w = r2;
28638
30416
  }
28639
30417
  return this.normalize();
28640
30418
  }
@@ -30195,7 +31973,7 @@ const multiplyQuat = (a, b) => {
30195
31973
  ];
30196
31974
  };
30197
31975
  const conjQuat = (q) => [-q[0], -q[1], -q[2], q[3]];
30198
- const rad2deg = (r) => r * 180 / Math.PI;
31976
+ const rad2deg = (r2) => r2 * 180 / Math.PI;
30199
31977
  const deg2rad = (d) => d * Math.PI / 180;
30200
31978
  function valueGreaterThanEpsilon(a, b, epsilon) {
30201
31979
  if (Array.isArray(a) && Array.isArray(b) && a.length === b.length) {