@vitessce/feature-list 3.9.6 → 4.0.0-test.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,9 +1,7 @@
1
- var __defProp = Object.defineProperty;
2
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3
- var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
4
1
  import * as React from "react";
5
2
  import React__default, { useContext, forwardRef, useRef, useMemo, createContext, createElement, isValidElement, cloneElement, Children, PureComponent, useEffect, useState, useCallback } from "react";
6
3
  import { usePlotOptionsStyles, OptionsContainer, OptionSelect, useLoaders, useCoordinationScopes, useGridItemSize, useCoordination, useFeatureLabelsData, useExpandedFeatureLabelsMap, useObsFeatureMatrixIndices, useReady, useUrls, TitleInfo } from "@vitessce/vit-s";
4
+ import { jsxs, jsx as jsx$1 } from "react/jsx-runtime";
7
5
  import * as ReactDOM from "react-dom";
8
6
  function getDefaultExportFromCjs(x) {
9
7
  return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
@@ -2285,14 +2283,14 @@ var createCache = function createCache2(options) {
2285
2283
  cache.sheet.hydrate(nodesToHydrate);
2286
2284
  return cache;
2287
2285
  };
2288
- function _extends$2() {
2289
- return _extends$2 = Object.assign ? Object.assign.bind() : function(n) {
2286
+ function _extends$1() {
2287
+ return _extends$1 = Object.assign ? Object.assign.bind() : function(n) {
2290
2288
  for (var e = 1; e < arguments.length; e++) {
2291
2289
  var t = arguments[e];
2292
2290
  for (var r2 in t) ({}).hasOwnProperty.call(t, r2) && (n[r2] = t[r2]);
2293
2291
  }
2294
2292
  return n;
2295
- }, _extends$2.apply(null, arguments);
2293
+ }, _extends$1.apply(null, arguments);
2296
2294
  }
2297
2295
  var reactIs$1 = { exports: {} };
2298
2296
  var reactIs_development$1 = {};
@@ -3785,7 +3783,7 @@ var createStyled$1 = function createStyled(tag, options) {
3785
3783
  }
3786
3784
  });
3787
3785
  Styled.withComponent = function(nextTag, nextOptions) {
3788
- var newStyled2 = createStyled(nextTag, _extends$2({}, options, nextOptions, {
3786
+ var newStyled2 = createStyled(nextTag, _extends$1({}, options, nextOptions, {
3789
3787
  shouldForwardProp: composeShouldForwardProps(Styled, nextOptions, true)
3790
3788
  }));
3791
3789
  return newStyled2.apply(void 0, styles);
@@ -4546,903 +4544,6 @@ function requirePropTypes() {
4546
4544
  }
4547
4545
  var propTypesExports = /* @__PURE__ */ requirePropTypes();
4548
4546
  const PropTypes = /* @__PURE__ */ getDefaultExportFromCjs(propTypesExports);
4549
- var jsxRuntime = { exports: {} };
4550
- var reactJsxRuntime_development = {};
4551
- var hasRequiredReactJsxRuntime_development;
4552
- function requireReactJsxRuntime_development() {
4553
- if (hasRequiredReactJsxRuntime_development) return reactJsxRuntime_development;
4554
- hasRequiredReactJsxRuntime_development = 1;
4555
- /**
4556
- * @license React
4557
- * react-jsx-runtime.development.js
4558
- *
4559
- * Copyright (c) Facebook, Inc. and its affiliates.
4560
- *
4561
- * This source code is licensed under the MIT license found in the
4562
- * LICENSE file in the root directory of this source tree.
4563
- */
4564
- {
4565
- (function() {
4566
- var React2 = React__default;
4567
- var REACT_ELEMENT_TYPE = Symbol.for("react.element");
4568
- var REACT_PORTAL_TYPE = Symbol.for("react.portal");
4569
- var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
4570
- var REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode");
4571
- var REACT_PROFILER_TYPE = Symbol.for("react.profiler");
4572
- var REACT_PROVIDER_TYPE = Symbol.for("react.provider");
4573
- var REACT_CONTEXT_TYPE = Symbol.for("react.context");
4574
- var REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref");
4575
- var REACT_SUSPENSE_TYPE = Symbol.for("react.suspense");
4576
- var REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list");
4577
- var REACT_MEMO_TYPE = Symbol.for("react.memo");
4578
- var REACT_LAZY_TYPE = Symbol.for("react.lazy");
4579
- var REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen");
4580
- var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
4581
- var FAUX_ITERATOR_SYMBOL = "@@iterator";
4582
- function getIteratorFn(maybeIterable) {
4583
- if (maybeIterable === null || typeof maybeIterable !== "object") {
4584
- return null;
4585
- }
4586
- var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
4587
- if (typeof maybeIterator === "function") {
4588
- return maybeIterator;
4589
- }
4590
- return null;
4591
- }
4592
- var ReactSharedInternals = React2.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
4593
- function error(format) {
4594
- {
4595
- {
4596
- for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
4597
- args[_key2 - 1] = arguments[_key2];
4598
- }
4599
- printWarning("error", format, args);
4600
- }
4601
- }
4602
- }
4603
- function printWarning(level, format, args) {
4604
- {
4605
- var ReactDebugCurrentFrame2 = ReactSharedInternals.ReactDebugCurrentFrame;
4606
- var stack = ReactDebugCurrentFrame2.getStackAddendum();
4607
- if (stack !== "") {
4608
- format += "%s";
4609
- args = args.concat([stack]);
4610
- }
4611
- var argsWithFormat = args.map(function(item) {
4612
- return String(item);
4613
- });
4614
- argsWithFormat.unshift("Warning: " + format);
4615
- Function.prototype.apply.call(console[level], console, argsWithFormat);
4616
- }
4617
- }
4618
- var enableScopeAPI = false;
4619
- var enableCacheElement = false;
4620
- var enableTransitionTracing = false;
4621
- var enableLegacyHidden = false;
4622
- var enableDebugTracing = false;
4623
- var REACT_MODULE_REFERENCE;
4624
- {
4625
- REACT_MODULE_REFERENCE = Symbol.for("react.module.reference");
4626
- }
4627
- function isValidElementType(type) {
4628
- if (typeof type === "string" || typeof type === "function") {
4629
- return true;
4630
- }
4631
- if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing) {
4632
- return true;
4633
- }
4634
- if (typeof type === "object" && type !== null) {
4635
- if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || // This needs to include all possible module reference object
4636
- // types supported by any Flight configuration anywhere since
4637
- // we don't know which Flight build this will end up being used
4638
- // with.
4639
- type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== void 0) {
4640
- return true;
4641
- }
4642
- }
4643
- return false;
4644
- }
4645
- function getWrappedName2(outerType, innerType, wrapperName) {
4646
- var displayName = outerType.displayName;
4647
- if (displayName) {
4648
- return displayName;
4649
- }
4650
- var functionName = innerType.displayName || innerType.name || "";
4651
- return functionName !== "" ? wrapperName + "(" + functionName + ")" : wrapperName;
4652
- }
4653
- function getContextName(type) {
4654
- return type.displayName || "Context";
4655
- }
4656
- function getComponentNameFromType(type) {
4657
- if (type == null) {
4658
- return null;
4659
- }
4660
- {
4661
- if (typeof type.tag === "number") {
4662
- error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.");
4663
- }
4664
- }
4665
- if (typeof type === "function") {
4666
- return type.displayName || type.name || null;
4667
- }
4668
- if (typeof type === "string") {
4669
- return type;
4670
- }
4671
- switch (type) {
4672
- case REACT_FRAGMENT_TYPE:
4673
- return "Fragment";
4674
- case REACT_PORTAL_TYPE:
4675
- return "Portal";
4676
- case REACT_PROFILER_TYPE:
4677
- return "Profiler";
4678
- case REACT_STRICT_MODE_TYPE:
4679
- return "StrictMode";
4680
- case REACT_SUSPENSE_TYPE:
4681
- return "Suspense";
4682
- case REACT_SUSPENSE_LIST_TYPE:
4683
- return "SuspenseList";
4684
- }
4685
- if (typeof type === "object") {
4686
- switch (type.$$typeof) {
4687
- case REACT_CONTEXT_TYPE:
4688
- var context = type;
4689
- return getContextName(context) + ".Consumer";
4690
- case REACT_PROVIDER_TYPE:
4691
- var provider = type;
4692
- return getContextName(provider._context) + ".Provider";
4693
- case REACT_FORWARD_REF_TYPE:
4694
- return getWrappedName2(type, type.render, "ForwardRef");
4695
- case REACT_MEMO_TYPE:
4696
- var outerName = type.displayName || null;
4697
- if (outerName !== null) {
4698
- return outerName;
4699
- }
4700
- return getComponentNameFromType(type.type) || "Memo";
4701
- case REACT_LAZY_TYPE: {
4702
- var lazyComponent = type;
4703
- var payload = lazyComponent._payload;
4704
- var init = lazyComponent._init;
4705
- try {
4706
- return getComponentNameFromType(init(payload));
4707
- } catch (x) {
4708
- return null;
4709
- }
4710
- }
4711
- }
4712
- }
4713
- return null;
4714
- }
4715
- var assign2 = Object.assign;
4716
- var disabledDepth = 0;
4717
- var prevLog;
4718
- var prevInfo;
4719
- var prevWarn;
4720
- var prevError;
4721
- var prevGroup;
4722
- var prevGroupCollapsed;
4723
- var prevGroupEnd;
4724
- function disabledLog() {
4725
- }
4726
- disabledLog.__reactDisabledLog = true;
4727
- function disableLogs() {
4728
- {
4729
- if (disabledDepth === 0) {
4730
- prevLog = console.log;
4731
- prevInfo = console.info;
4732
- prevWarn = console.warn;
4733
- prevError = console.error;
4734
- prevGroup = console.group;
4735
- prevGroupCollapsed = console.groupCollapsed;
4736
- prevGroupEnd = console.groupEnd;
4737
- var props = {
4738
- configurable: true,
4739
- enumerable: true,
4740
- value: disabledLog,
4741
- writable: true
4742
- };
4743
- Object.defineProperties(console, {
4744
- info: props,
4745
- log: props,
4746
- warn: props,
4747
- error: props,
4748
- group: props,
4749
- groupCollapsed: props,
4750
- groupEnd: props
4751
- });
4752
- }
4753
- disabledDepth++;
4754
- }
4755
- }
4756
- function reenableLogs() {
4757
- {
4758
- disabledDepth--;
4759
- if (disabledDepth === 0) {
4760
- var props = {
4761
- configurable: true,
4762
- enumerable: true,
4763
- writable: true
4764
- };
4765
- Object.defineProperties(console, {
4766
- log: assign2({}, props, {
4767
- value: prevLog
4768
- }),
4769
- info: assign2({}, props, {
4770
- value: prevInfo
4771
- }),
4772
- warn: assign2({}, props, {
4773
- value: prevWarn
4774
- }),
4775
- error: assign2({}, props, {
4776
- value: prevError
4777
- }),
4778
- group: assign2({}, props, {
4779
- value: prevGroup
4780
- }),
4781
- groupCollapsed: assign2({}, props, {
4782
- value: prevGroupCollapsed
4783
- }),
4784
- groupEnd: assign2({}, props, {
4785
- value: prevGroupEnd
4786
- })
4787
- });
4788
- }
4789
- if (disabledDepth < 0) {
4790
- error("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
4791
- }
4792
- }
4793
- }
4794
- var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;
4795
- var prefix2;
4796
- function describeBuiltInComponentFrame(name, source, ownerFn) {
4797
- {
4798
- if (prefix2 === void 0) {
4799
- try {
4800
- throw Error();
4801
- } catch (x) {
4802
- var match2 = x.stack.trim().match(/\n( *(at )?)/);
4803
- prefix2 = match2 && match2[1] || "";
4804
- }
4805
- }
4806
- return "\n" + prefix2 + name;
4807
- }
4808
- }
4809
- var reentry = false;
4810
- var componentFrameCache;
4811
- {
4812
- var PossiblyWeakMap = typeof WeakMap === "function" ? WeakMap : Map;
4813
- componentFrameCache = new PossiblyWeakMap();
4814
- }
4815
- function describeNativeComponentFrame(fn, construct) {
4816
- if (!fn || reentry) {
4817
- return "";
4818
- }
4819
- {
4820
- var frame = componentFrameCache.get(fn);
4821
- if (frame !== void 0) {
4822
- return frame;
4823
- }
4824
- }
4825
- var control;
4826
- reentry = true;
4827
- var previousPrepareStackTrace = Error.prepareStackTrace;
4828
- Error.prepareStackTrace = void 0;
4829
- var previousDispatcher;
4830
- {
4831
- previousDispatcher = ReactCurrentDispatcher.current;
4832
- ReactCurrentDispatcher.current = null;
4833
- disableLogs();
4834
- }
4835
- try {
4836
- if (construct) {
4837
- var Fake = function() {
4838
- throw Error();
4839
- };
4840
- Object.defineProperty(Fake.prototype, "props", {
4841
- set: function() {
4842
- throw Error();
4843
- }
4844
- });
4845
- if (typeof Reflect === "object" && Reflect.construct) {
4846
- try {
4847
- Reflect.construct(Fake, []);
4848
- } catch (x) {
4849
- control = x;
4850
- }
4851
- Reflect.construct(fn, [], Fake);
4852
- } else {
4853
- try {
4854
- Fake.call();
4855
- } catch (x) {
4856
- control = x;
4857
- }
4858
- fn.call(Fake.prototype);
4859
- }
4860
- } else {
4861
- try {
4862
- throw Error();
4863
- } catch (x) {
4864
- control = x;
4865
- }
4866
- fn();
4867
- }
4868
- } catch (sample) {
4869
- if (sample && control && typeof sample.stack === "string") {
4870
- var sampleLines = sample.stack.split("\n");
4871
- var controlLines = control.stack.split("\n");
4872
- var s = sampleLines.length - 1;
4873
- var c = controlLines.length - 1;
4874
- while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {
4875
- c--;
4876
- }
4877
- for (; s >= 1 && c >= 0; s--, c--) {
4878
- if (sampleLines[s] !== controlLines[c]) {
4879
- if (s !== 1 || c !== 1) {
4880
- do {
4881
- s--;
4882
- c--;
4883
- if (c < 0 || sampleLines[s] !== controlLines[c]) {
4884
- var _frame = "\n" + sampleLines[s].replace(" at new ", " at ");
4885
- if (fn.displayName && _frame.includes("<anonymous>")) {
4886
- _frame = _frame.replace("<anonymous>", fn.displayName);
4887
- }
4888
- {
4889
- if (typeof fn === "function") {
4890
- componentFrameCache.set(fn, _frame);
4891
- }
4892
- }
4893
- return _frame;
4894
- }
4895
- } while (s >= 1 && c >= 0);
4896
- }
4897
- break;
4898
- }
4899
- }
4900
- }
4901
- } finally {
4902
- reentry = false;
4903
- {
4904
- ReactCurrentDispatcher.current = previousDispatcher;
4905
- reenableLogs();
4906
- }
4907
- Error.prepareStackTrace = previousPrepareStackTrace;
4908
- }
4909
- var name = fn ? fn.displayName || fn.name : "";
4910
- var syntheticFrame = name ? describeBuiltInComponentFrame(name) : "";
4911
- {
4912
- if (typeof fn === "function") {
4913
- componentFrameCache.set(fn, syntheticFrame);
4914
- }
4915
- }
4916
- return syntheticFrame;
4917
- }
4918
- function describeFunctionComponentFrame(fn, source, ownerFn) {
4919
- {
4920
- return describeNativeComponentFrame(fn, false);
4921
- }
4922
- }
4923
- function shouldConstruct(Component) {
4924
- var prototype = Component.prototype;
4925
- return !!(prototype && prototype.isReactComponent);
4926
- }
4927
- function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {
4928
- if (type == null) {
4929
- return "";
4930
- }
4931
- if (typeof type === "function") {
4932
- {
4933
- return describeNativeComponentFrame(type, shouldConstruct(type));
4934
- }
4935
- }
4936
- if (typeof type === "string") {
4937
- return describeBuiltInComponentFrame(type);
4938
- }
4939
- switch (type) {
4940
- case REACT_SUSPENSE_TYPE:
4941
- return describeBuiltInComponentFrame("Suspense");
4942
- case REACT_SUSPENSE_LIST_TYPE:
4943
- return describeBuiltInComponentFrame("SuspenseList");
4944
- }
4945
- if (typeof type === "object") {
4946
- switch (type.$$typeof) {
4947
- case REACT_FORWARD_REF_TYPE:
4948
- return describeFunctionComponentFrame(type.render);
4949
- case REACT_MEMO_TYPE:
4950
- return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);
4951
- case REACT_LAZY_TYPE: {
4952
- var lazyComponent = type;
4953
- var payload = lazyComponent._payload;
4954
- var init = lazyComponent._init;
4955
- try {
4956
- return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);
4957
- } catch (x) {
4958
- }
4959
- }
4960
- }
4961
- }
4962
- return "";
4963
- }
4964
- var hasOwnProperty2 = Object.prototype.hasOwnProperty;
4965
- var loggedTypeFailures = {};
4966
- var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
4967
- function setCurrentlyValidatingElement(element) {
4968
- {
4969
- if (element) {
4970
- var owner = element._owner;
4971
- var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
4972
- ReactDebugCurrentFrame.setExtraStackFrame(stack);
4973
- } else {
4974
- ReactDebugCurrentFrame.setExtraStackFrame(null);
4975
- }
4976
- }
4977
- }
4978
- function checkPropTypes(typeSpecs, values2, location, componentName, element) {
4979
- {
4980
- var has2 = Function.call.bind(hasOwnProperty2);
4981
- for (var typeSpecName in typeSpecs) {
4982
- if (has2(typeSpecs, typeSpecName)) {
4983
- var error$1 = void 0;
4984
- try {
4985
- if (typeof typeSpecs[typeSpecName] !== "function") {
4986
- var err = Error((componentName || "React class") + ": " + location + " type `" + typeSpecName + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof typeSpecs[typeSpecName] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
4987
- err.name = "Invariant Violation";
4988
- throw err;
4989
- }
4990
- error$1 = typeSpecs[typeSpecName](values2, typeSpecName, componentName, location, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
4991
- } catch (ex) {
4992
- error$1 = ex;
4993
- }
4994
- if (error$1 && !(error$1 instanceof Error)) {
4995
- setCurrentlyValidatingElement(element);
4996
- error("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", componentName || "React class", location, typeSpecName, typeof error$1);
4997
- setCurrentlyValidatingElement(null);
4998
- }
4999
- if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {
5000
- loggedTypeFailures[error$1.message] = true;
5001
- setCurrentlyValidatingElement(element);
5002
- error("Failed %s type: %s", location, error$1.message);
5003
- setCurrentlyValidatingElement(null);
5004
- }
5005
- }
5006
- }
5007
- }
5008
- }
5009
- var isArrayImpl = Array.isArray;
5010
- function isArray2(a) {
5011
- return isArrayImpl(a);
5012
- }
5013
- function typeName(value) {
5014
- {
5015
- var hasToStringTag = typeof Symbol === "function" && Symbol.toStringTag;
5016
- var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
5017
- return type;
5018
- }
5019
- }
5020
- function willCoercionThrow(value) {
5021
- {
5022
- try {
5023
- testStringCoercion(value);
5024
- return false;
5025
- } catch (e) {
5026
- return true;
5027
- }
5028
- }
5029
- }
5030
- function testStringCoercion(value) {
5031
- return "" + value;
5032
- }
5033
- function checkKeyStringCoercion(value) {
5034
- {
5035
- if (willCoercionThrow(value)) {
5036
- error("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", typeName(value));
5037
- return testStringCoercion(value);
5038
- }
5039
- }
5040
- }
5041
- var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;
5042
- var RESERVED_PROPS = {
5043
- key: true,
5044
- ref: true,
5045
- __self: true,
5046
- __source: true
5047
- };
5048
- var specialPropKeyWarningShown;
5049
- var specialPropRefWarningShown;
5050
- function hasValidRef(config) {
5051
- {
5052
- if (hasOwnProperty2.call(config, "ref")) {
5053
- var getter = Object.getOwnPropertyDescriptor(config, "ref").get;
5054
- if (getter && getter.isReactWarning) {
5055
- return false;
5056
- }
5057
- }
5058
- }
5059
- return config.ref !== void 0;
5060
- }
5061
- function hasValidKey(config) {
5062
- {
5063
- if (hasOwnProperty2.call(config, "key")) {
5064
- var getter = Object.getOwnPropertyDescriptor(config, "key").get;
5065
- if (getter && getter.isReactWarning) {
5066
- return false;
5067
- }
5068
- }
5069
- }
5070
- return config.key !== void 0;
5071
- }
5072
- function warnIfStringRefCannotBeAutoConverted(config, self2) {
5073
- {
5074
- if (typeof config.ref === "string" && ReactCurrentOwner.current && self2) ;
5075
- }
5076
- }
5077
- function defineKeyPropWarningGetter(props, displayName) {
5078
- {
5079
- var warnAboutAccessingKey = function() {
5080
- if (!specialPropKeyWarningShown) {
5081
- specialPropKeyWarningShown = true;
5082
- error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", displayName);
5083
- }
5084
- };
5085
- warnAboutAccessingKey.isReactWarning = true;
5086
- Object.defineProperty(props, "key", {
5087
- get: warnAboutAccessingKey,
5088
- configurable: true
5089
- });
5090
- }
5091
- }
5092
- function defineRefPropWarningGetter(props, displayName) {
5093
- {
5094
- var warnAboutAccessingRef = function() {
5095
- if (!specialPropRefWarningShown) {
5096
- specialPropRefWarningShown = true;
5097
- error("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", displayName);
5098
- }
5099
- };
5100
- warnAboutAccessingRef.isReactWarning = true;
5101
- Object.defineProperty(props, "ref", {
5102
- get: warnAboutAccessingRef,
5103
- configurable: true
5104
- });
5105
- }
5106
- }
5107
- var ReactElement = function(type, key, ref, self2, source, owner, props) {
5108
- var element = {
5109
- // This tag allows us to uniquely identify this as a React Element
5110
- $$typeof: REACT_ELEMENT_TYPE,
5111
- // Built-in properties that belong on the element
5112
- type,
5113
- key,
5114
- ref,
5115
- props,
5116
- // Record the component responsible for creating this element.
5117
- _owner: owner
5118
- };
5119
- {
5120
- element._store = {};
5121
- Object.defineProperty(element._store, "validated", {
5122
- configurable: false,
5123
- enumerable: false,
5124
- writable: true,
5125
- value: false
5126
- });
5127
- Object.defineProperty(element, "_self", {
5128
- configurable: false,
5129
- enumerable: false,
5130
- writable: false,
5131
- value: self2
5132
- });
5133
- Object.defineProperty(element, "_source", {
5134
- configurable: false,
5135
- enumerable: false,
5136
- writable: false,
5137
- value: source
5138
- });
5139
- if (Object.freeze) {
5140
- Object.freeze(element.props);
5141
- Object.freeze(element);
5142
- }
5143
- }
5144
- return element;
5145
- };
5146
- function jsxDEV(type, config, maybeKey, source, self2) {
5147
- {
5148
- var propName;
5149
- var props = {};
5150
- var key = null;
5151
- var ref = null;
5152
- if (maybeKey !== void 0) {
5153
- {
5154
- checkKeyStringCoercion(maybeKey);
5155
- }
5156
- key = "" + maybeKey;
5157
- }
5158
- if (hasValidKey(config)) {
5159
- {
5160
- checkKeyStringCoercion(config.key);
5161
- }
5162
- key = "" + config.key;
5163
- }
5164
- if (hasValidRef(config)) {
5165
- ref = config.ref;
5166
- warnIfStringRefCannotBeAutoConverted(config, self2);
5167
- }
5168
- for (propName in config) {
5169
- if (hasOwnProperty2.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
5170
- props[propName] = config[propName];
5171
- }
5172
- }
5173
- if (type && type.defaultProps) {
5174
- var defaultProps2 = type.defaultProps;
5175
- for (propName in defaultProps2) {
5176
- if (props[propName] === void 0) {
5177
- props[propName] = defaultProps2[propName];
5178
- }
5179
- }
5180
- }
5181
- if (key || ref) {
5182
- var displayName = typeof type === "function" ? type.displayName || type.name || "Unknown" : type;
5183
- if (key) {
5184
- defineKeyPropWarningGetter(props, displayName);
5185
- }
5186
- if (ref) {
5187
- defineRefPropWarningGetter(props, displayName);
5188
- }
5189
- }
5190
- return ReactElement(type, key, ref, self2, source, ReactCurrentOwner.current, props);
5191
- }
5192
- }
5193
- var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner;
5194
- var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;
5195
- function setCurrentlyValidatingElement$1(element) {
5196
- {
5197
- if (element) {
5198
- var owner = element._owner;
5199
- var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
5200
- ReactDebugCurrentFrame$1.setExtraStackFrame(stack);
5201
- } else {
5202
- ReactDebugCurrentFrame$1.setExtraStackFrame(null);
5203
- }
5204
- }
5205
- }
5206
- var propTypesMisspellWarningShown;
5207
- {
5208
- propTypesMisspellWarningShown = false;
5209
- }
5210
- function isValidElement2(object) {
5211
- {
5212
- return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
5213
- }
5214
- }
5215
- function getDeclarationErrorAddendum() {
5216
- {
5217
- if (ReactCurrentOwner$1.current) {
5218
- var name = getComponentNameFromType(ReactCurrentOwner$1.current.type);
5219
- if (name) {
5220
- return "\n\nCheck the render method of `" + name + "`.";
5221
- }
5222
- }
5223
- return "";
5224
- }
5225
- }
5226
- function getSourceInfoErrorAddendum(source) {
5227
- {
5228
- return "";
5229
- }
5230
- }
5231
- var ownerHasKeyUseWarning = {};
5232
- function getCurrentComponentErrorInfo(parentType) {
5233
- {
5234
- var info = getDeclarationErrorAddendum();
5235
- if (!info) {
5236
- var parentName = typeof parentType === "string" ? parentType : parentType.displayName || parentType.name;
5237
- if (parentName) {
5238
- info = "\n\nCheck the top-level render call using <" + parentName + ">.";
5239
- }
5240
- }
5241
- return info;
5242
- }
5243
- }
5244
- function validateExplicitKey(element, parentType) {
5245
- {
5246
- if (!element._store || element._store.validated || element.key != null) {
5247
- return;
5248
- }
5249
- element._store.validated = true;
5250
- var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
5251
- if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
5252
- return;
5253
- }
5254
- ownerHasKeyUseWarning[currentComponentErrorInfo] = true;
5255
- var childOwner = "";
5256
- if (element && element._owner && element._owner !== ReactCurrentOwner$1.current) {
5257
- childOwner = " It was passed a child from " + getComponentNameFromType(element._owner.type) + ".";
5258
- }
5259
- setCurrentlyValidatingElement$1(element);
5260
- error('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', currentComponentErrorInfo, childOwner);
5261
- setCurrentlyValidatingElement$1(null);
5262
- }
5263
- }
5264
- function validateChildKeys(node2, parentType) {
5265
- {
5266
- if (typeof node2 !== "object") {
5267
- return;
5268
- }
5269
- if (isArray2(node2)) {
5270
- for (var i = 0; i < node2.length; i++) {
5271
- var child = node2[i];
5272
- if (isValidElement2(child)) {
5273
- validateExplicitKey(child, parentType);
5274
- }
5275
- }
5276
- } else if (isValidElement2(node2)) {
5277
- if (node2._store) {
5278
- node2._store.validated = true;
5279
- }
5280
- } else if (node2) {
5281
- var iteratorFn = getIteratorFn(node2);
5282
- if (typeof iteratorFn === "function") {
5283
- if (iteratorFn !== node2.entries) {
5284
- var iterator = iteratorFn.call(node2);
5285
- var step;
5286
- while (!(step = iterator.next()).done) {
5287
- if (isValidElement2(step.value)) {
5288
- validateExplicitKey(step.value, parentType);
5289
- }
5290
- }
5291
- }
5292
- }
5293
- }
5294
- }
5295
- }
5296
- function validatePropTypes(element) {
5297
- {
5298
- var type = element.type;
5299
- if (type === null || type === void 0 || typeof type === "string") {
5300
- return;
5301
- }
5302
- var propTypes2;
5303
- if (typeof type === "function") {
5304
- propTypes2 = type.propTypes;
5305
- } else if (typeof type === "object" && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.
5306
- // Inner props are checked in the reconciler.
5307
- type.$$typeof === REACT_MEMO_TYPE)) {
5308
- propTypes2 = type.propTypes;
5309
- } else {
5310
- return;
5311
- }
5312
- if (propTypes2) {
5313
- var name = getComponentNameFromType(type);
5314
- checkPropTypes(propTypes2, element.props, "prop", name, element);
5315
- } else if (type.PropTypes !== void 0 && !propTypesMisspellWarningShown) {
5316
- propTypesMisspellWarningShown = true;
5317
- var _name = getComponentNameFromType(type);
5318
- error("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", _name || "Unknown");
5319
- }
5320
- if (typeof type.getDefaultProps === "function" && !type.getDefaultProps.isReactClassApproved) {
5321
- error("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
5322
- }
5323
- }
5324
- }
5325
- function validateFragmentProps(fragment) {
5326
- {
5327
- var keys2 = Object.keys(fragment.props);
5328
- for (var i = 0; i < keys2.length; i++) {
5329
- var key = keys2[i];
5330
- if (key !== "children" && key !== "key") {
5331
- setCurrentlyValidatingElement$1(fragment);
5332
- error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", key);
5333
- setCurrentlyValidatingElement$1(null);
5334
- break;
5335
- }
5336
- }
5337
- if (fragment.ref !== null) {
5338
- setCurrentlyValidatingElement$1(fragment);
5339
- error("Invalid attribute `ref` supplied to `React.Fragment`.");
5340
- setCurrentlyValidatingElement$1(null);
5341
- }
5342
- }
5343
- }
5344
- var didWarnAboutKeySpread = {};
5345
- function jsxWithValidation(type, props, key, isStaticChildren, source, self2) {
5346
- {
5347
- var validType = isValidElementType(type);
5348
- if (!validType) {
5349
- var info = "";
5350
- if (type === void 0 || typeof type === "object" && type !== null && Object.keys(type).length === 0) {
5351
- info += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.";
5352
- }
5353
- var sourceInfo = getSourceInfoErrorAddendum();
5354
- if (sourceInfo) {
5355
- info += sourceInfo;
5356
- } else {
5357
- info += getDeclarationErrorAddendum();
5358
- }
5359
- var typeString;
5360
- if (type === null) {
5361
- typeString = "null";
5362
- } else if (isArray2(type)) {
5363
- typeString = "array";
5364
- } else if (type !== void 0 && type.$$typeof === REACT_ELEMENT_TYPE) {
5365
- typeString = "<" + (getComponentNameFromType(type.type) || "Unknown") + " />";
5366
- info = " Did you accidentally export a JSX literal instead of a component?";
5367
- } else {
5368
- typeString = typeof type;
5369
- }
5370
- error("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", typeString, info);
5371
- }
5372
- var element = jsxDEV(type, props, key, source, self2);
5373
- if (element == null) {
5374
- return element;
5375
- }
5376
- if (validType) {
5377
- var children2 = props.children;
5378
- if (children2 !== void 0) {
5379
- if (isStaticChildren) {
5380
- if (isArray2(children2)) {
5381
- for (var i = 0; i < children2.length; i++) {
5382
- validateChildKeys(children2[i], type);
5383
- }
5384
- if (Object.freeze) {
5385
- Object.freeze(children2);
5386
- }
5387
- } else {
5388
- error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
5389
- }
5390
- } else {
5391
- validateChildKeys(children2, type);
5392
- }
5393
- }
5394
- }
5395
- {
5396
- if (hasOwnProperty2.call(props, "key")) {
5397
- var componentName = getComponentNameFromType(type);
5398
- var keys2 = Object.keys(props).filter(function(k) {
5399
- return k !== "key";
5400
- });
5401
- var beforeExample = keys2.length > 0 ? "{key: someKey, " + keys2.join(": ..., ") + ": ...}" : "{key: someKey}";
5402
- if (!didWarnAboutKeySpread[componentName + beforeExample]) {
5403
- var afterExample = keys2.length > 0 ? "{" + keys2.join(": ..., ") + ": ...}" : "{}";
5404
- error('A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />', beforeExample, componentName, afterExample, componentName);
5405
- didWarnAboutKeySpread[componentName + beforeExample] = true;
5406
- }
5407
- }
5408
- }
5409
- if (type === REACT_FRAGMENT_TYPE) {
5410
- validateFragmentProps(element);
5411
- } else {
5412
- validatePropTypes(element);
5413
- }
5414
- return element;
5415
- }
5416
- }
5417
- function jsxWithValidationStatic(type, props, key) {
5418
- {
5419
- return jsxWithValidation(type, props, key, true);
5420
- }
5421
- }
5422
- function jsxWithValidationDynamic(type, props, key) {
5423
- {
5424
- return jsxWithValidation(type, props, key, false);
5425
- }
5426
- }
5427
- var jsx3 = jsxWithValidationDynamic;
5428
- var jsxs = jsxWithValidationStatic;
5429
- reactJsxRuntime_development.Fragment = REACT_FRAGMENT_TYPE;
5430
- reactJsxRuntime_development.jsx = jsx3;
5431
- reactJsxRuntime_development.jsxs = jsxs;
5432
- })();
5433
- }
5434
- return reactJsxRuntime_development;
5435
- }
5436
- var hasRequiredJsxRuntime;
5437
- function requireJsxRuntime() {
5438
- if (hasRequiredJsxRuntime) return jsxRuntime.exports;
5439
- hasRequiredJsxRuntime = 1;
5440
- {
5441
- jsxRuntime.exports = requireReactJsxRuntime_development();
5442
- }
5443
- return jsxRuntime.exports;
5444
- }
5445
- var jsxRuntimeExports = requireJsxRuntime();
5446
4547
  function styled$1(tag, options) {
5447
4548
  const stylesFactory = newStyled(tag, options);
5448
4549
  {
@@ -5700,9 +4801,8 @@ function sortContainerQueries(theme, css2) {
5700
4801
  return css2;
5701
4802
  }
5702
4803
  const sorted = Object.keys(css2).filter((key) => key.startsWith("@container")).sort((a, b) => {
5703
- var _a, _b;
5704
4804
  const regex = /min-width:\s*([0-9.]+)/;
5705
- return +(((_a = a.match(regex)) == null ? void 0 : _a[1]) || 0) - +(((_b = b.match(regex)) == null ? void 0 : _b[1]) || 0);
4805
+ return +(a.match(regex)?.[1] || 0) - +(b.match(regex)?.[1] || 0);
5706
4806
  });
5707
4807
  if (!sorted.length) {
5708
4808
  return css2;
@@ -5830,8 +4930,7 @@ function handleBreakpoints(props, propValue, styleFromPropValue) {
5830
4930
  return output;
5831
4931
  }
5832
4932
  function createEmptyBreakpointObject(breakpointsInput = {}) {
5833
- var _a;
5834
- const breakpointsInOrder = (_a = breakpointsInput.keys) == null ? void 0 : _a.reduce((acc, key) => {
4933
+ const breakpointsInOrder = breakpointsInput.keys?.reduce((acc, key) => {
5835
4934
  const breakpointStyleKey = breakpointsInput.up(key);
5836
4935
  acc[breakpointStyleKey] = {};
5837
4936
  return acc;
@@ -6251,14 +5350,13 @@ const width = style$1({
6251
5350
  const maxWidth = (props) => {
6252
5351
  if (props.maxWidth !== void 0 && props.maxWidth !== null) {
6253
5352
  const styleFromPropValue = (propValue) => {
6254
- var _a, _b, _c, _d, _e;
6255
- const breakpoint = ((_c = (_b = (_a = props.theme) == null ? void 0 : _a.breakpoints) == null ? void 0 : _b.values) == null ? void 0 : _c[propValue]) || values$1[propValue];
5353
+ const breakpoint = props.theme?.breakpoints?.values?.[propValue] || values$1[propValue];
6256
5354
  if (!breakpoint) {
6257
5355
  return {
6258
5356
  maxWidth: sizingTransform(propValue)
6259
5357
  };
6260
5358
  }
6261
- if (((_e = (_d = props.theme) == null ? void 0 : _d.breakpoints) == null ? void 0 : _e.unit) !== "px") {
5359
+ if (props.theme?.breakpoints?.unit !== "px") {
6262
5360
  return {
6263
5361
  maxWidth: `${breakpoint}${props.theme.breakpoints.unit}`
6264
5362
  };
@@ -6699,10 +5797,9 @@ function unstable_createStyleFunctionSx() {
6699
5797
  const styleFunctionSx = unstable_createStyleFunctionSx();
6700
5798
  styleFunctionSx.filterProps = ["sx"];
6701
5799
  function applyStyles(key, styles) {
6702
- var _a;
6703
5800
  const theme = this;
6704
5801
  if (theme.vars) {
6705
- if (!((_a = theme.colorSchemes) == null ? void 0 : _a[key]) || typeof theme.getColorSchemeSelector !== "function") {
5802
+ if (!theme.colorSchemes?.[key] || typeof theme.getColorSchemeSelector !== "function") {
6706
5803
  return {};
6707
5804
  }
6708
5805
  let selector = theme.getColorSchemeSelector(key);
@@ -6751,7 +5848,7 @@ function createTheme$1(options = {}, ...args) {
6751
5848
  muiTheme = args.reduce((acc, argument) => deepmerge(acc, argument), muiTheme);
6752
5849
  muiTheme.unstable_sxConfig = {
6753
5850
  ...defaultSxConfig,
6754
- ...other == null ? void 0 : other.unstable_sxConfig
5851
+ ...other?.unstable_sxConfig
6755
5852
  };
6756
5853
  muiTheme.unstable_sx = function sx(props) {
6757
5854
  return styleFunctionSx({
@@ -6773,12 +5870,11 @@ function useTheme$1(defaultTheme2 = systemDefaultTheme$1) {
6773
5870
  return useTheme$2(defaultTheme2);
6774
5871
  }
6775
5872
  const splitProps = (props) => {
6776
- var _a;
6777
5873
  const result = {
6778
5874
  systemProps: {},
6779
5875
  otherProps: {}
6780
5876
  };
6781
- const config = ((_a = props == null ? void 0 : props.theme) == null ? void 0 : _a.unstable_sxConfig) ?? defaultSxConfig;
5877
+ const config = props?.theme?.unstable_sxConfig ?? defaultSxConfig;
6782
5878
  Object.keys(props).forEach((prop) => {
6783
5879
  if (config[prop]) {
6784
5880
  result.systemProps[prop] = props[prop];
@@ -6945,7 +6041,7 @@ function processStyle(props, style2) {
6945
6041
  if (Array.isArray(resolvedStyle)) {
6946
6042
  return resolvedStyle.flatMap((subStyle) => processStyle(props, subStyle));
6947
6043
  }
6948
- if (Array.isArray(resolvedStyle == null ? void 0 : resolvedStyle.variants)) {
6044
+ if (Array.isArray(resolvedStyle?.variants)) {
6949
6045
  let rootStyle;
6950
6046
  if (resolvedStyle.isProcessed) {
6951
6047
  rootStyle = resolvedStyle.style;
@@ -6958,38 +6054,37 @@ function processStyle(props, style2) {
6958
6054
  }
6959
6055
  return processStyleVariants(props, resolvedStyle.variants, [rootStyle]);
6960
6056
  }
6961
- if (resolvedStyle == null ? void 0 : resolvedStyle.isProcessed) {
6057
+ if (resolvedStyle?.isProcessed) {
6962
6058
  return resolvedStyle.style;
6963
6059
  }
6964
6060
  return resolvedStyle;
6965
6061
  }
6966
6062
  function processStyleVariants(props, variants, results = []) {
6967
- var _a;
6968
6063
  let mergedState;
6969
6064
  variantLoop: for (let i = 0; i < variants.length; i += 1) {
6970
6065
  const variant = variants[i];
6971
6066
  if (typeof variant.props === "function") {
6972
- mergedState ?? (mergedState = {
6067
+ mergedState ??= {
6973
6068
  ...props,
6974
6069
  ...props.ownerState,
6975
6070
  ownerState: props.ownerState
6976
- });
6071
+ };
6977
6072
  if (!variant.props(mergedState)) {
6978
6073
  continue;
6979
6074
  }
6980
6075
  } else {
6981
6076
  for (const key in variant.props) {
6982
- if (props[key] !== variant.props[key] && ((_a = props.ownerState) == null ? void 0 : _a[key]) !== variant.props[key]) {
6077
+ if (props[key] !== variant.props[key] && props.ownerState?.[key] !== variant.props[key]) {
6983
6078
  continue variantLoop;
6984
6079
  }
6985
6080
  }
6986
6081
  }
6987
6082
  if (typeof variant.style === "function") {
6988
- mergedState ?? (mergedState = {
6083
+ mergedState ??= {
6989
6084
  ...props,
6990
6085
  ...props.ownerState,
6991
6086
  ownerState: props.ownerState
6992
- });
6087
+ };
6993
6088
  results.push(variant.style(mergedState));
6994
6089
  } else {
6995
6090
  results.push(variant.style);
@@ -7062,9 +6157,8 @@ function createStyled2(input = {}) {
7062
6157
  expressionsHead.push(styleAttachTheme);
7063
6158
  if (componentName && overridesResolver) {
7064
6159
  expressionsTail.push(function styleThemeOverrides(props) {
7065
- var _a, _b;
7066
6160
  const theme = props.theme;
7067
- const styleOverrides = (_b = (_a = theme.components) == null ? void 0 : _a[componentName]) == null ? void 0 : _b.styleOverrides;
6161
+ const styleOverrides = theme.components?.[componentName]?.styleOverrides;
7068
6162
  if (!styleOverrides) {
7069
6163
  return null;
7070
6164
  }
@@ -7077,9 +6171,8 @@ function createStyled2(input = {}) {
7077
6171
  }
7078
6172
  if (componentName && !skipVariantsResolver) {
7079
6173
  expressionsTail.push(function styleThemeVariants(props) {
7080
- var _a, _b;
7081
6174
  const theme = props.theme;
7082
- const themeVariants = (_b = (_a = theme == null ? void 0 : theme.components) == null ? void 0 : _a[componentName]) == null ? void 0 : _b.variants;
6175
+ const themeVariants = theme?.components?.[componentName]?.variants;
7083
6176
  if (!themeVariants) {
7084
6177
  return null;
7085
6178
  }
@@ -7612,7 +6705,6 @@ function prepareCssVars(theme, parserConfig = {}) {
7612
6705
  };
7613
6706
  }
7614
6707
  function defaultGetSelector2(colorScheme, cssObject) {
7615
- var _a, _b;
7616
6708
  let rule = selector;
7617
6709
  if (selector === "class") {
7618
6710
  rule = ".%s";
@@ -7620,7 +6712,7 @@ function prepareCssVars(theme, parserConfig = {}) {
7620
6712
  if (selector === "data") {
7621
6713
  rule = "[data-%s]";
7622
6714
  }
7623
- if ((selector == null ? void 0 : selector.startsWith("data-")) && !selector.includes("%s")) {
6715
+ if (selector?.startsWith("data-") && !selector.includes("%s")) {
7624
6716
  rule = `[${selector}="%s"]`;
7625
6717
  }
7626
6718
  if (colorScheme) {
@@ -7628,7 +6720,7 @@ function prepareCssVars(theme, parserConfig = {}) {
7628
6720
  if (theme.defaultColorScheme === colorScheme) {
7629
6721
  return ":root";
7630
6722
  }
7631
- const mode = ((_b = (_a = colorSchemes[colorScheme]) == null ? void 0 : _a.palette) == null ? void 0 : _b.mode) || colorScheme;
6723
+ const mode = colorSchemes[colorScheme]?.palette?.mode || colorScheme;
7632
6724
  return {
7633
6725
  [`@media (prefers-color-scheme: ${mode})`]: {
7634
6726
  ":root": cssObject
@@ -7656,7 +6748,6 @@ function prepareCssVars(theme, parserConfig = {}) {
7656
6748
  return vars;
7657
6749
  };
7658
6750
  const generateStyleSheets = () => {
7659
- var _a, _b;
7660
6751
  const stylesheets = [];
7661
6752
  const colorScheme = theme.defaultColorScheme || "light";
7662
6753
  function insertStyleSheet(key, css2) {
@@ -7679,7 +6770,7 @@ function prepareCssVars(theme, parserConfig = {}) {
7679
6770
  const {
7680
6771
  css: css2
7681
6772
  } = defaultSchemeVal;
7682
- const cssColorSheme = (_b = (_a = colorSchemes[colorScheme]) == null ? void 0 : _a.palette) == null ? void 0 : _b.mode;
6773
+ const cssColorSheme = colorSchemes[colorScheme]?.palette?.mode;
7683
6774
  const finalCss = !disableCssColorScheme && cssColorSheme ? {
7684
6775
  colorScheme: cssColorSheme,
7685
6776
  ...css2
@@ -7693,8 +6784,7 @@ function prepareCssVars(theme, parserConfig = {}) {
7693
6784
  Object.entries(other).forEach(([key, {
7694
6785
  css: css2
7695
6786
  }]) => {
7696
- var _a2, _b2;
7697
- const cssColorSheme = (_b2 = (_a2 = colorSchemes[key]) == null ? void 0 : _a2.palette) == null ? void 0 : _b2.mode;
6787
+ const cssColorSheme = colorSchemes[key]?.palette?.mode;
7698
6788
  const finalCss = !disableCssColorScheme && cssColorSheme ? {
7699
6789
  colorScheme: cssColorSheme,
7700
6790
  ...css2
@@ -8426,7 +7516,7 @@ function createThemeNoVars(options = {}, ...args) {
8426
7516
  }
8427
7517
  muiTheme.unstable_sxConfig = {
8428
7518
  ...defaultSxConfig,
8429
- ...other == null ? void 0 : other.unstable_sxConfig
7519
+ ...other?.unstable_sxConfig
8430
7520
  };
8431
7521
  muiTheme.unstable_sx = function sx(props) {
8432
7522
  return styleFunctionSx({
@@ -8486,9 +7576,8 @@ function createColorScheme(options) {
8486
7576
  };
8487
7577
  }
8488
7578
  function shouldSkipGeneratingVar(keys2) {
8489
- var _a;
8490
7579
  return !!keys2[0].match(/(cssVarPrefix|colorSchemeSelector|rootSelector|typography|mixins|breakpoints|direction|transitions)/) || !!keys2[0].match(/sxConfig$/) || // ends with sxConfig
8491
- keys2[0] === "palette" && !!((_a = keys2[1]) == null ? void 0 : _a.match(/(mode|contrastThreshold|tonalOffset)/));
7580
+ keys2[0] === "palette" && !!keys2[1]?.match(/(mode|contrastThreshold|tonalOffset)/);
8492
7581
  }
8493
7582
  const excludeVariablesFromRoot = (cssVarPrefix) => [...[...Array(25)].map((_, index) => `--${cssVarPrefix ? `${cssVarPrefix}-` : ""}overlays-${index}`), `--${cssVarPrefix ? `${cssVarPrefix}-` : ""}palette-AppBar-darkBg`, `--${cssVarPrefix ? `${cssVarPrefix}-` : ""}palette-AppBar-darkColor`];
8494
7583
  const defaultGetSelector = (theme) => (colorScheme, css2) => {
@@ -8501,7 +7590,7 @@ const defaultGetSelector = (theme) => (colorScheme, css2) => {
8501
7590
  if (selector === "data") {
8502
7591
  rule = "[data-%s]";
8503
7592
  }
8504
- if ((selector == null ? void 0 : selector.startsWith("data-")) && !selector.includes("%s")) {
7593
+ if (selector?.startsWith("data-") && !selector.includes("%s")) {
8505
7594
  rule = `[${selector}="%s"]`;
8506
7595
  }
8507
7596
  if (theme.defaultColorScheme === colorScheme) {
@@ -8601,7 +7690,7 @@ function attachColorScheme$1(colorSchemes, scheme, restTheme, colorScheme) {
8601
7690
  ...scheme,
8602
7691
  palette: {
8603
7692
  mode,
8604
- ...scheme == null ? void 0 : scheme.palette
7693
+ ...scheme?.palette
8605
7694
  }
8606
7695
  });
8607
7696
  return void 0;
@@ -8613,7 +7702,7 @@ function attachColorScheme$1(colorSchemes, scheme, restTheme, colorScheme) {
8613
7702
  ...restTheme,
8614
7703
  palette: {
8615
7704
  mode,
8616
- ...scheme == null ? void 0 : scheme.palette
7705
+ ...scheme?.palette
8617
7706
  }
8618
7707
  });
8619
7708
  colorSchemes[colorScheme] = {
@@ -8621,9 +7710,9 @@ function attachColorScheme$1(colorSchemes, scheme, restTheme, colorScheme) {
8621
7710
  palette,
8622
7711
  opacity: {
8623
7712
  ...getOpacity(mode),
8624
- ...scheme == null ? void 0 : scheme.opacity
7713
+ ...scheme?.opacity
8625
7714
  },
8626
- overlays: (scheme == null ? void 0 : scheme.overlays) || getOverlays(mode)
7715
+ overlays: scheme?.overlays || getOverlays(mode)
8627
7716
  };
8628
7717
  return muiTheme;
8629
7718
  }
@@ -8882,7 +7971,7 @@ function createThemeWithVars(options = {}, ...args) {
8882
7971
  theme.shouldSkipGeneratingVar = shouldSkipGeneratingVar$1;
8883
7972
  theme.unstable_sxConfig = {
8884
7973
  ...defaultSxConfig,
8885
- ...input == null ? void 0 : input.unstable_sxConfig
7974
+ ...input?.unstable_sxConfig
8886
7975
  };
8887
7976
  theme.unstable_sx = function sx(props) {
8888
7977
  return styleFunctionSx({
@@ -8915,11 +8004,11 @@ function createTheme(options = {}, ...args) {
8915
8004
  colorSchemes: initialColorSchemes = !palette ? {
8916
8005
  light: true
8917
8006
  } : void 0,
8918
- defaultColorScheme: initialDefaultColorScheme = palette == null ? void 0 : palette.mode,
8007
+ defaultColorScheme: initialDefaultColorScheme = palette?.mode,
8919
8008
  ...rest
8920
8009
  } = options;
8921
8010
  const defaultColorSchemeInput = initialDefaultColorScheme || "light";
8922
- const defaultScheme = initialColorSchemes == null ? void 0 : initialColorSchemes[defaultColorSchemeInput];
8011
+ const defaultScheme = initialColorSchemes?.[defaultColorSchemeInput];
8923
8012
  const colorSchemesInput = {
8924
8013
  ...initialColorSchemes,
8925
8014
  ...palette ? {
@@ -9052,97 +8141,91 @@ const SvgIconRoot = styled("svg", {
9052
8141
  }
9053
8142
  })(memoTheme(({
9054
8143
  theme
9055
- }) => {
9056
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n;
9057
- return {
9058
- userSelect: "none",
9059
- width: "1em",
9060
- height: "1em",
9061
- display: "inline-block",
9062
- flexShrink: 0,
9063
- transition: (_d = (_a = theme.transitions) == null ? void 0 : _a.create) == null ? void 0 : _d.call(_a, "fill", {
9064
- duration: (_c = (_b = (theme.vars ?? theme).transitions) == null ? void 0 : _b.duration) == null ? void 0 : _c.shorter
9065
- }),
9066
- variants: [
9067
- {
9068
- props: (props) => !props.hasSvgAsChild,
9069
- style: {
9070
- // the <svg> will define the property that has `currentColor`
9071
- // for example heroicons uses fill="none" and stroke="currentColor"
9072
- fill: "currentColor"
9073
- }
8144
+ }) => ({
8145
+ userSelect: "none",
8146
+ width: "1em",
8147
+ height: "1em",
8148
+ display: "inline-block",
8149
+ flexShrink: 0,
8150
+ transition: theme.transitions?.create?.("fill", {
8151
+ duration: (theme.vars ?? theme).transitions?.duration?.shorter
8152
+ }),
8153
+ variants: [
8154
+ {
8155
+ props: (props) => !props.hasSvgAsChild,
8156
+ style: {
8157
+ // the <svg> will define the property that has `currentColor`
8158
+ // for example heroicons uses fill="none" and stroke="currentColor"
8159
+ fill: "currentColor"
8160
+ }
8161
+ },
8162
+ {
8163
+ props: {
8164
+ fontSize: "inherit"
9074
8165
  },
9075
- {
9076
- props: {
9077
- fontSize: "inherit"
9078
- },
9079
- style: {
9080
- fontSize: "inherit"
9081
- }
8166
+ style: {
8167
+ fontSize: "inherit"
8168
+ }
8169
+ },
8170
+ {
8171
+ props: {
8172
+ fontSize: "small"
9082
8173
  },
9083
- {
9084
- props: {
9085
- fontSize: "small"
9086
- },
9087
- style: {
9088
- fontSize: ((_f = (_e = theme.typography) == null ? void 0 : _e.pxToRem) == null ? void 0 : _f.call(_e, 20)) || "1.25rem"
9089
- }
8174
+ style: {
8175
+ fontSize: theme.typography?.pxToRem?.(20) || "1.25rem"
8176
+ }
8177
+ },
8178
+ {
8179
+ props: {
8180
+ fontSize: "medium"
8181
+ },
8182
+ style: {
8183
+ fontSize: theme.typography?.pxToRem?.(24) || "1.5rem"
8184
+ }
8185
+ },
8186
+ {
8187
+ props: {
8188
+ fontSize: "large"
9090
8189
  },
9091
- {
9092
- props: {
9093
- fontSize: "medium"
9094
- },
9095
- style: {
9096
- fontSize: ((_h = (_g = theme.typography) == null ? void 0 : _g.pxToRem) == null ? void 0 : _h.call(_g, 24)) || "1.5rem"
9097
- }
8190
+ style: {
8191
+ fontSize: theme.typography?.pxToRem?.(35) || "2.1875rem"
8192
+ }
8193
+ },
8194
+ // TODO v5 deprecate color prop, v6 remove for sx
8195
+ ...Object.entries((theme.vars ?? theme).palette).filter(([, value]) => value && value.main).map(([color2]) => ({
8196
+ props: {
8197
+ color: color2
9098
8198
  },
9099
- {
9100
- props: {
9101
- fontSize: "large"
9102
- },
9103
- style: {
9104
- fontSize: ((_j = (_i = theme.typography) == null ? void 0 : _i.pxToRem) == null ? void 0 : _j.call(_i, 35)) || "2.1875rem"
9105
- }
8199
+ style: {
8200
+ color: (theme.vars ?? theme).palette?.[color2]?.main
8201
+ }
8202
+ })),
8203
+ {
8204
+ props: {
8205
+ color: "action"
9106
8206
  },
9107
- // TODO v5 deprecate color prop, v6 remove for sx
9108
- ...Object.entries((theme.vars ?? theme).palette).filter(([, value]) => value && value.main).map(([color2]) => {
9109
- var _a2, _b2;
9110
- return {
9111
- props: {
9112
- color: color2
9113
- },
9114
- style: {
9115
- color: (_b2 = (_a2 = (theme.vars ?? theme).palette) == null ? void 0 : _a2[color2]) == null ? void 0 : _b2.main
9116
- }
9117
- };
9118
- }),
9119
- {
9120
- props: {
9121
- color: "action"
9122
- },
9123
- style: {
9124
- color: (_l = (_k = (theme.vars ?? theme).palette) == null ? void 0 : _k.action) == null ? void 0 : _l.active
9125
- }
8207
+ style: {
8208
+ color: (theme.vars ?? theme).palette?.action?.active
8209
+ }
8210
+ },
8211
+ {
8212
+ props: {
8213
+ color: "disabled"
9126
8214
  },
9127
- {
9128
- props: {
9129
- color: "disabled"
9130
- },
9131
- style: {
9132
- color: (_n = (_m = (theme.vars ?? theme).palette) == null ? void 0 : _m.action) == null ? void 0 : _n.disabled
9133
- }
8215
+ style: {
8216
+ color: (theme.vars ?? theme).palette?.action?.disabled
8217
+ }
8218
+ },
8219
+ {
8220
+ props: {
8221
+ color: "inherit"
9134
8222
  },
9135
- {
9136
- props: {
9137
- color: "inherit"
9138
- },
9139
- style: {
9140
- color: void 0
9141
- }
8223
+ style: {
8224
+ color: void 0
9142
8225
  }
9143
- ]
9144
- };
9145
- }));
8226
+ }
8227
+ ]
8228
+ })));
9146
8229
  const SvgIcon = /* @__PURE__ */ React.forwardRef(function SvgIcon2(inProps, ref) {
9147
8230
  const props = useDefaultProps({
9148
8231
  props: inProps,
@@ -9176,7 +8259,7 @@ const SvgIcon = /* @__PURE__ */ React.forwardRef(function SvgIcon2(inProps, ref)
9176
8259
  more.viewBox = viewBox;
9177
8260
  }
9178
8261
  const classes = useUtilityClasses$6(ownerState);
9179
- return /* @__PURE__ */ jsxRuntimeExports.jsxs(SvgIconRoot, {
8262
+ return /* @__PURE__ */ jsxs(SvgIconRoot, {
9180
8263
  as: component,
9181
8264
  className: clsx$1(classes.root, className),
9182
8265
  focusable: "false",
@@ -9188,7 +8271,7 @@ const SvgIcon = /* @__PURE__ */ React.forwardRef(function SvgIcon2(inProps, ref)
9188
8271
  ...other,
9189
8272
  ...hasSvgAsChild && children2.props,
9190
8273
  ownerState,
9191
- children: [hasSvgAsChild ? children2.props.children : children2, titleAccess ? /* @__PURE__ */ jsxRuntimeExports.jsx("title", {
8274
+ children: [hasSvgAsChild ? children2.props.children : children2, titleAccess ? /* @__PURE__ */ jsx$1("title", {
9192
8275
  children: titleAccess
9193
8276
  }) : null]
9194
8277
  });
@@ -9268,7 +8351,7 @@ SvgIcon.propTypes = {
9268
8351
  SvgIcon.muiName = "SvgIcon";
9269
8352
  function createSvgIcon(path, displayName) {
9270
8353
  function Component(props, ref) {
9271
- return /* @__PURE__ */ jsxRuntimeExports.jsx(SvgIcon, {
8354
+ return /* @__PURE__ */ jsx$1(SvgIcon, {
9272
8355
  "data-testid": `${displayName}Icon`,
9273
8356
  ref,
9274
8357
  ...props,
@@ -9352,7 +8435,7 @@ function useForkRef$1(...refs) {
9352
8435
  };
9353
8436
  });
9354
8437
  return () => {
9355
- cleanups.forEach((refCleanup) => refCleanup == null ? void 0 : refCleanup());
8438
+ cleanups.forEach((refCleanup) => refCleanup?.());
9356
8439
  };
9357
8440
  }, refs);
9358
8441
  return React.useMemo(() => {
@@ -9397,7 +8480,7 @@ function mergeSlotProps$1(externalSlotProps, defaultSlotProps) {
9397
8480
  ...ownerState,
9398
8481
  ...defaultSlotPropsValue
9399
8482
  }) : externalSlotProps;
9400
- const className2 = clsx$1(ownerState == null ? void 0 : ownerState.className, defaultSlotPropsValue == null ? void 0 : defaultSlotPropsValue.className, externalSlotPropsValue == null ? void 0 : externalSlotPropsValue.className);
8483
+ const className2 = clsx$1(ownerState?.className, defaultSlotPropsValue?.className, externalSlotPropsValue?.className);
9401
8484
  const handlers2 = extractHandlers(externalSlotPropsValue, defaultSlotPropsValue);
9402
8485
  return {
9403
8486
  ...defaultSlotPropsValue,
@@ -9406,13 +8489,13 @@ function mergeSlotProps$1(externalSlotProps, defaultSlotProps) {
9406
8489
  ...!!className2 && {
9407
8490
  className: className2
9408
8491
  },
9409
- ...(defaultSlotPropsValue == null ? void 0 : defaultSlotPropsValue.style) && (externalSlotPropsValue == null ? void 0 : externalSlotPropsValue.style) && {
8492
+ ...defaultSlotPropsValue?.style && externalSlotPropsValue?.style && {
9410
8493
  style: {
9411
8494
  ...defaultSlotPropsValue.style,
9412
8495
  ...externalSlotPropsValue.style
9413
8496
  }
9414
8497
  },
9415
- ...(defaultSlotPropsValue == null ? void 0 : defaultSlotPropsValue.sx) && (externalSlotPropsValue == null ? void 0 : externalSlotPropsValue.sx) && {
8498
+ ...defaultSlotPropsValue?.sx && externalSlotPropsValue?.sx && {
9416
8499
  sx: [...Array.isArray(defaultSlotPropsValue.sx) ? defaultSlotPropsValue.sx : [defaultSlotPropsValue.sx], ...Array.isArray(externalSlotPropsValue.sx) ? externalSlotPropsValue.sx : [externalSlotPropsValue.sx]]
9417
8500
  }
9418
8501
  };
@@ -9420,7 +8503,7 @@ function mergeSlotProps$1(externalSlotProps, defaultSlotProps) {
9420
8503
  }
9421
8504
  const typedDefaultSlotProps = defaultSlotProps;
9422
8505
  const handlers = extractHandlers(externalSlotProps, typedDefaultSlotProps);
9423
- const className = clsx$1(typedDefaultSlotProps == null ? void 0 : typedDefaultSlotProps.className, externalSlotProps == null ? void 0 : externalSlotProps.className);
8506
+ const className = clsx$1(typedDefaultSlotProps?.className, externalSlotProps?.className);
9424
8507
  return {
9425
8508
  ...defaultSlotProps,
9426
8509
  ...externalSlotProps,
@@ -9428,13 +8511,13 @@ function mergeSlotProps$1(externalSlotProps, defaultSlotProps) {
9428
8511
  ...!!className && {
9429
8512
  className
9430
8513
  },
9431
- ...(typedDefaultSlotProps == null ? void 0 : typedDefaultSlotProps.style) && (externalSlotProps == null ? void 0 : externalSlotProps.style) && {
8514
+ ...typedDefaultSlotProps?.style && externalSlotProps?.style && {
9432
8515
  style: {
9433
8516
  ...typedDefaultSlotProps.style,
9434
8517
  ...externalSlotProps.style
9435
8518
  }
9436
8519
  },
9437
- ...(typedDefaultSlotProps == null ? void 0 : typedDefaultSlotProps.sx) && (externalSlotProps == null ? void 0 : externalSlotProps.sx) && {
8520
+ ...typedDefaultSlotProps?.sx && externalSlotProps?.sx && {
9438
8521
  sx: [...Array.isArray(typedDefaultSlotProps.sx) ? typedDefaultSlotProps.sx : [typedDefaultSlotProps.sx], ...Array.isArray(externalSlotProps.sx) ? externalSlotProps.sx : [externalSlotProps.sx]]
9439
8522
  }
9440
8523
  };
@@ -9444,16 +8527,7 @@ function chainPropTypes(propType1, propType2) {
9444
8527
  return propType1(...args) || propType2(...args);
9445
8528
  };
9446
8529
  }
9447
- function _extends$1() {
9448
- return _extends$1 = Object.assign ? Object.assign.bind() : function(n) {
9449
- for (var e = 1; e < arguments.length; e++) {
9450
- var t = arguments[e];
9451
- for (var r2 in t) ({}).hasOwnProperty.call(t, r2) && (n[r2] = t[r2]);
9452
- }
9453
- return n;
9454
- }, _extends$1.apply(null, arguments);
9455
- }
9456
- function _objectWithoutPropertiesLoose$1(r2, e) {
8530
+ function _objectWithoutPropertiesLoose(r2, e) {
9457
8531
  if (null == r2) return {};
9458
8532
  var t = {};
9459
8533
  for (var n in r2) if ({}.hasOwnProperty.call(r2, n)) {
@@ -9462,16 +8536,16 @@ function _objectWithoutPropertiesLoose$1(r2, e) {
9462
8536
  }
9463
8537
  return t;
9464
8538
  }
9465
- function _setPrototypeOf$1(t, e) {
9466
- return _setPrototypeOf$1 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t2, e2) {
8539
+ function _setPrototypeOf(t, e) {
8540
+ return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t2, e2) {
9467
8541
  return t2.__proto__ = e2, t2;
9468
- }, _setPrototypeOf$1(t, e);
8542
+ }, _setPrototypeOf(t, e);
9469
8543
  }
9470
8544
  function _inheritsLoose(t, o) {
9471
- t.prototype = Object.create(o.prototype), t.prototype.constructor = t, _setPrototypeOf$1(t, o);
8545
+ t.prototype = Object.create(o.prototype), t.prototype.constructor = t, _setPrototypeOf(t, o);
9472
8546
  }
9473
8547
  const TransitionGroupContext = React__default.createContext(null);
9474
- function _assertThisInitialized$1(e) {
8548
+ function _assertThisInitialized(e) {
9475
8549
  if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
9476
8550
  return e;
9477
8551
  }
@@ -9583,7 +8657,7 @@ var TransitionGroup = /* @__PURE__ */ function(_React$Component) {
9583
8657
  function TransitionGroup2(props, context) {
9584
8658
  var _this;
9585
8659
  _this = _React$Component.call(this, props, context) || this;
9586
- var handleExited = _this.handleExited.bind(_assertThisInitialized$1(_this));
8660
+ var handleExited = _this.handleExited.bind(_assertThisInitialized(_this));
9587
8661
  _this.state = {
9588
8662
  contextValue: {
9589
8663
  isMounting: true
@@ -9629,7 +8703,7 @@ var TransitionGroup = /* @__PURE__ */ function(_React$Component) {
9629
8703
  }
9630
8704
  };
9631
8705
  _proto.render = function render() {
9632
- var _this$props = this.props, Component = _this$props.component, childFactory2 = _this$props.childFactory, props = _objectWithoutPropertiesLoose$1(_this$props, ["component", "childFactory"]);
8706
+ var _this$props = this.props, Component = _this$props.component, childFactory2 = _this$props.childFactory, props = _objectWithoutPropertiesLoose(_this$props, ["component", "childFactory"]);
9633
8707
  var contextValue = this.state.contextValue;
9634
8708
  var children2 = values(this.state.children).map(childFactory2);
9635
8709
  delete props.appear;
@@ -9713,21 +8787,10 @@ function useOnMount(fn) {
9713
8787
  React.useEffect(fn, EMPTY$1);
9714
8788
  }
9715
8789
  class Timeout {
9716
- constructor() {
9717
- __publicField(this, "currentId", null);
9718
- __publicField(this, "clear", () => {
9719
- if (this.currentId !== null) {
9720
- clearTimeout(this.currentId);
9721
- this.currentId = null;
9722
- }
9723
- });
9724
- __publicField(this, "disposeEffect", () => {
9725
- return this.clear;
9726
- });
9727
- }
9728
8790
  static create() {
9729
8791
  return new Timeout();
9730
8792
  }
8793
+ currentId = null;
9731
8794
  /**
9732
8795
  * Executes `fn` after `delay`, clearing any previously scheduled call.
9733
8796
  */
@@ -9738,6 +8801,15 @@ class Timeout {
9738
8801
  fn();
9739
8802
  }, delay);
9740
8803
  }
8804
+ clear = () => {
8805
+ if (this.currentId !== null) {
8806
+ clearTimeout(this.currentId);
8807
+ this.currentId = null;
8808
+ }
8809
+ };
8810
+ disposeEffect = () => {
8811
+ return this.clear;
8812
+ };
9741
8813
  }
9742
8814
  function useTimeout() {
9743
8815
  const timeout = useLazyRef(Timeout.create).current;
@@ -9820,11 +8892,11 @@ function mergeSlotProps(parameters) {
9820
8892
  className
9821
8893
  } = parameters;
9822
8894
  if (!getSlotProps) {
9823
- const joinedClasses2 = clsx$1(additionalProps == null ? void 0 : additionalProps.className, className, externalForwardedProps == null ? void 0 : externalForwardedProps.className, externalSlotProps == null ? void 0 : externalSlotProps.className);
8895
+ const joinedClasses2 = clsx$1(additionalProps?.className, className, externalForwardedProps?.className, externalSlotProps?.className);
9824
8896
  const mergedStyle2 = {
9825
- ...additionalProps == null ? void 0 : additionalProps.style,
9826
- ...externalForwardedProps == null ? void 0 : externalForwardedProps.style,
9827
- ...externalSlotProps == null ? void 0 : externalSlotProps.style
8897
+ ...additionalProps?.style,
8898
+ ...externalForwardedProps?.style,
8899
+ ...externalSlotProps?.style
9828
8900
  };
9829
8901
  const props2 = {
9830
8902
  ...additionalProps,
@@ -9849,12 +8921,12 @@ function mergeSlotProps(parameters) {
9849
8921
  const componentsPropsWithoutEventHandlers = omitEventHandlers(externalSlotProps);
9850
8922
  const otherPropsWithoutEventHandlers = omitEventHandlers(externalForwardedProps);
9851
8923
  const internalSlotProps = getSlotProps(eventHandlers);
9852
- const joinedClasses = clsx$1(internalSlotProps == null ? void 0 : internalSlotProps.className, additionalProps == null ? void 0 : additionalProps.className, className, externalForwardedProps == null ? void 0 : externalForwardedProps.className, externalSlotProps == null ? void 0 : externalSlotProps.className);
8924
+ const joinedClasses = clsx$1(internalSlotProps?.className, additionalProps?.className, className, externalForwardedProps?.className, externalSlotProps?.className);
9853
8925
  const mergedStyle = {
9854
- ...internalSlotProps == null ? void 0 : internalSlotProps.style,
9855
- ...additionalProps == null ? void 0 : additionalProps.style,
9856
- ...externalForwardedProps == null ? void 0 : externalForwardedProps.style,
9857
- ...externalSlotProps == null ? void 0 : externalSlotProps.style
8926
+ ...internalSlotProps?.style,
8927
+ ...additionalProps?.style,
8928
+ ...externalForwardedProps?.style,
8929
+ ...externalSlotProps?.style
9858
8930
  };
9859
8931
  const props = {
9860
8932
  ...internalSlotProps,
@@ -9907,7 +8979,7 @@ function useSlot(name, parameters) {
9907
8979
  externalForwardedProps: name === "root" ? other : void 0,
9908
8980
  externalSlotProps: resolvedComponentsProps
9909
8981
  });
9910
- const ref = useForkRef$1(internalRef, resolvedComponentsProps == null ? void 0 : resolvedComponentsProps.ref, parameters.ref);
8982
+ const ref = useForkRef$1(internalRef, resolvedComponentsProps?.ref, parameters.ref);
9911
8983
  const LeafComponent = name === "root" ? slotComponent || rootComponent : slotComponent;
9912
8984
  const props = appendOwnerState(elementType, {
9913
8985
  ...name === "root" && !rootComponent && !slots[name] && internalForwardedProps,
@@ -9935,23 +9007,6 @@ function isFocusVisible(element) {
9935
9007
  return false;
9936
9008
  }
9937
9009
  class LazyRipple {
9938
- constructor() {
9939
- __publicField(this, "mountEffect", () => {
9940
- if (this.shouldMount && !this.didMount) {
9941
- if (this.ref.current !== null) {
9942
- this.didMount = true;
9943
- this.mounted.resolve();
9944
- }
9945
- }
9946
- });
9947
- this.ref = {
9948
- current: null
9949
- };
9950
- this.mounted = null;
9951
- this.didMount = false;
9952
- this.shouldMount = false;
9953
- this.setShouldMount = null;
9954
- }
9955
9010
  /** React ref to the ripple instance */
9956
9011
  /** If the ripple component should be mounted */
9957
9012
  /** Promise that resolves when the ripple component is mounted */
@@ -9968,6 +9023,15 @@ class LazyRipple {
9968
9023
  React.useEffect(ripple.mountEffect, [shouldMount]);
9969
9024
  return ripple;
9970
9025
  }
9026
+ constructor() {
9027
+ this.ref = {
9028
+ current: null
9029
+ };
9030
+ this.mounted = null;
9031
+ this.didMount = false;
9032
+ this.shouldMount = false;
9033
+ this.setShouldMount = null;
9034
+ }
9971
9035
  mount() {
9972
9036
  if (!this.mounted) {
9973
9037
  this.mounted = createControlledPromise();
@@ -9976,24 +9040,23 @@ class LazyRipple {
9976
9040
  }
9977
9041
  return this.mounted;
9978
9042
  }
9043
+ mountEffect = () => {
9044
+ if (this.shouldMount && !this.didMount) {
9045
+ if (this.ref.current !== null) {
9046
+ this.didMount = true;
9047
+ this.mounted.resolve();
9048
+ }
9049
+ }
9050
+ };
9979
9051
  /* Ripple API */
9980
9052
  start(...args) {
9981
- this.mount().then(() => {
9982
- var _a;
9983
- return (_a = this.ref.current) == null ? void 0 : _a.start(...args);
9984
- });
9053
+ this.mount().then(() => this.ref.current?.start(...args));
9985
9054
  }
9986
9055
  stop(...args) {
9987
- this.mount().then(() => {
9988
- var _a;
9989
- return (_a = this.ref.current) == null ? void 0 : _a.stop(...args);
9990
- });
9056
+ this.mount().then(() => this.ref.current?.stop(...args));
9991
9057
  }
9992
9058
  pulsate(...args) {
9993
- this.mount().then(() => {
9994
- var _a;
9995
- return (_a = this.ref.current) == null ? void 0 : _a.pulsate(...args);
9996
- });
9059
+ this.mount().then(() => this.ref.current?.pulsate(...args));
9997
9060
  }
9998
9061
  }
9999
9062
  function useLazyRipple() {
@@ -10043,10 +9106,10 @@ function Ripple(props) {
10043
9106
  }
10044
9107
  return void 0;
10045
9108
  }, [onExited, inProp, timeout]);
10046
- return /* @__PURE__ */ jsxRuntimeExports.jsx("span", {
9109
+ return /* @__PURE__ */ jsx$1("span", {
10047
9110
  className: rippleClassName,
10048
9111
  style: rippleStyles,
10049
- children: /* @__PURE__ */ jsxRuntimeExports.jsx("span", {
9112
+ children: /* @__PURE__ */ jsx$1("span", {
10050
9113
  className: childClassName
10051
9114
  })
10052
9115
  });
@@ -10223,7 +9286,7 @@ const TouchRipple = /* @__PURE__ */ React.forwardRef(function TouchRipple2(inPro
10223
9286
  rippleSize,
10224
9287
  cb
10225
9288
  } = params;
10226
- setRipples((oldRipples) => [...oldRipples, /* @__PURE__ */ jsxRuntimeExports.jsx(TouchRippleRipple, {
9289
+ setRipples((oldRipples) => [...oldRipples, /* @__PURE__ */ jsx$1(TouchRippleRipple, {
10227
9290
  classes: {
10228
9291
  ripple: clsx$1(classes.ripple, touchRippleClasses.ripple),
10229
9292
  rippleVisible: clsx$1(classes.rippleVisible, touchRippleClasses.rippleVisible),
@@ -10249,11 +9312,11 @@ const TouchRipple = /* @__PURE__ */ React.forwardRef(function TouchRipple2(inPro
10249
9312
  fakeElement = false
10250
9313
  // For test purposes
10251
9314
  } = options;
10252
- if ((event == null ? void 0 : event.type) === "mousedown" && ignoringMouseDown.current) {
9315
+ if (event?.type === "mousedown" && ignoringMouseDown.current) {
10253
9316
  ignoringMouseDown.current = false;
10254
9317
  return;
10255
9318
  }
10256
- if ((event == null ? void 0 : event.type) === "touchstart") {
9319
+ if (event?.type === "touchstart") {
10257
9320
  ignoringMouseDown.current = true;
10258
9321
  }
10259
9322
  const element = fakeElement ? null : container.current;
@@ -10287,7 +9350,7 @@ const TouchRipple = /* @__PURE__ */ React.forwardRef(function TouchRipple2(inPro
10287
9350
  const sizeY = Math.max(Math.abs((element ? element.clientHeight : 0) - rippleY), rippleY) * 2 + 2;
10288
9351
  rippleSize = Math.sqrt(sizeX ** 2 + sizeY ** 2);
10289
9352
  }
10290
- if (event == null ? void 0 : event.touches) {
9353
+ if (event?.touches) {
10291
9354
  if (startTimerCommit.current === null) {
10292
9355
  startTimerCommit.current = () => {
10293
9356
  startCommit({
@@ -10322,7 +9385,7 @@ const TouchRipple = /* @__PURE__ */ React.forwardRef(function TouchRipple2(inPro
10322
9385
  }, [start]);
10323
9386
  const stop = React.useCallback((event, cb) => {
10324
9387
  startTimer.clear();
10325
- if ((event == null ? void 0 : event.type) === "touchend" && startTimerCommit.current) {
9388
+ if (event?.type === "touchend" && startTimerCommit.current) {
10326
9389
  startTimerCommit.current();
10327
9390
  startTimerCommit.current = null;
10328
9391
  startTimer.start(0, () => {
@@ -10344,11 +9407,11 @@ const TouchRipple = /* @__PURE__ */ React.forwardRef(function TouchRipple2(inPro
10344
9407
  start,
10345
9408
  stop
10346
9409
  }), [pulsate, start, stop]);
10347
- return /* @__PURE__ */ jsxRuntimeExports.jsx(TouchRippleRoot, {
9410
+ return /* @__PURE__ */ jsx$1(TouchRippleRoot, {
10348
9411
  className: clsx$1(touchRippleClasses.root, classes.root, className),
10349
9412
  ref: container,
10350
9413
  ...other,
10351
- children: /* @__PURE__ */ jsxRuntimeExports.jsx(TransitionGroup, {
9414
+ children: /* @__PURE__ */ jsx$1(TransitionGroup, {
10352
9415
  component: null,
10353
9416
  exit: true,
10354
9417
  children: ripples
@@ -10591,7 +9654,7 @@ const ButtonBase = /* @__PURE__ */ React.forwardRef(function ButtonBase2(inProps
10591
9654
  focusVisible
10592
9655
  };
10593
9656
  const classes = useUtilityClasses$5(ownerState);
10594
- return /* @__PURE__ */ jsxRuntimeExports.jsxs(ButtonBaseRoot, {
9657
+ return /* @__PURE__ */ jsxs(ButtonBaseRoot, {
10595
9658
  as: ComponentProp,
10596
9659
  className: clsx$1(classes.root, className),
10597
9660
  ownerState,
@@ -10613,7 +9676,7 @@ const ButtonBase = /* @__PURE__ */ React.forwardRef(function ButtonBase2(inProps
10613
9676
  type,
10614
9677
  ...buttonProps,
10615
9678
  ...other,
10616
- children: [children2, enableTouchRipple ? /* @__PURE__ */ jsxRuntimeExports.jsx(TouchRipple, {
9679
+ children: [children2, enableTouchRipple ? /* @__PURE__ */ jsx$1(TouchRipple, {
10617
9680
  ref: handleRippleRef,
10618
9681
  center: centerRipple,
10619
9682
  ...TouchRippleProps
@@ -10818,11 +9881,10 @@ function HTMLElementType(props, propName, componentName, location, propFullName)
10818
9881
  return null;
10819
9882
  }
10820
9883
  function getReactElementRef(element) {
10821
- var _a;
10822
9884
  if (parseInt(React.version, 10) >= 19) {
10823
- return ((_a = element == null ? void 0 : element.props) == null ? void 0 : _a.ref) || null;
9885
+ return element?.props?.ref || null;
10824
9886
  }
10825
- return (element == null ? void 0 : element.ref) || null;
9887
+ return element?.ref || null;
10826
9888
  }
10827
9889
  function getContainer(container) {
10828
9890
  return typeof container === "function" ? container() : container;
@@ -11058,13 +10120,11 @@ const SwitchBase = /* @__PURE__ */ React.forwardRef(function SwitchBase2(props,
11058
10120
  getSlotProps: (handlers) => ({
11059
10121
  ...handlers,
11060
10122
  onFocus: (event) => {
11061
- var _a;
11062
- (_a = handlers.onFocus) == null ? void 0 : _a.call(handlers, event);
10123
+ handlers.onFocus?.(event);
11063
10124
  handleFocus(event);
11064
10125
  },
11065
10126
  onBlur: (event) => {
11066
- var _a;
11067
- (_a = handlers.onBlur) == null ? void 0 : _a.call(handlers, event);
10127
+ handlers.onBlur?.(event);
11068
10128
  handleBlur(event);
11069
10129
  }
11070
10130
  }),
@@ -11085,8 +10145,7 @@ const SwitchBase = /* @__PURE__ */ React.forwardRef(function SwitchBase2(props,
11085
10145
  getSlotProps: (handlers) => ({
11086
10146
  ...handlers,
11087
10147
  onChange: (event) => {
11088
- var _a;
11089
- (_a = handlers.onChange) == null ? void 0 : _a.call(handlers, event);
10148
+ handlers.onChange?.(event);
11090
10149
  handleInputChange(event);
11091
10150
  }
11092
10151
  }),
@@ -11107,9 +10166,9 @@ const SwitchBase = /* @__PURE__ */ React.forwardRef(function SwitchBase2(props,
11107
10166
  }
11108
10167
  }
11109
10168
  });
11110
- return /* @__PURE__ */ jsxRuntimeExports.jsxs(RootSlot, {
10169
+ return /* @__PURE__ */ jsxs(RootSlot, {
11111
10170
  ...rootSlotProps,
11112
- children: [/* @__PURE__ */ jsxRuntimeExports.jsx(InputSlot, {
10171
+ children: [/* @__PURE__ */ jsx$1(InputSlot, {
11113
10172
  ...inputSlotProps
11114
10173
  }), checked ? checkedIcon : icon]
11115
10174
  });
@@ -11233,13 +10292,13 @@ SwitchBase.propTypes = {
11233
10292
  */
11234
10293
  value: PropTypes.any
11235
10294
  };
11236
- const CheckBoxOutlineBlankIcon = createSvgIcon(/* @__PURE__ */ jsxRuntimeExports.jsx("path", {
10295
+ const CheckBoxOutlineBlankIcon = createSvgIcon(/* @__PURE__ */ jsx$1("path", {
11237
10296
  d: "M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"
11238
10297
  }), "CheckBoxOutlineBlank");
11239
- const CheckBoxIcon = createSvgIcon(/* @__PURE__ */ jsxRuntimeExports.jsx("path", {
10298
+ const CheckBoxIcon = createSvgIcon(/* @__PURE__ */ jsx$1("path", {
11240
10299
  d: "M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"
11241
10300
  }), "CheckBox");
11242
- const IndeterminateCheckBoxIcon = createSvgIcon(/* @__PURE__ */ jsxRuntimeExports.jsx("path", {
10301
+ const IndeterminateCheckBoxIcon = createSvgIcon(/* @__PURE__ */ jsx$1("path", {
11243
10302
  d: "M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"
11244
10303
  }), "IndeterminateCheckBox");
11245
10304
  function getCheckboxUtilityClass(slot) {
@@ -11324,9 +10383,9 @@ const CheckboxRoot = styled(SwitchBase, {
11324
10383
  }
11325
10384
  }]
11326
10385
  })));
11327
- const defaultCheckedIcon = /* @__PURE__ */ jsxRuntimeExports.jsx(CheckBoxIcon, {});
11328
- const defaultIcon = /* @__PURE__ */ jsxRuntimeExports.jsx(CheckBoxOutlineBlankIcon, {});
11329
- const defaultIndeterminateIcon = /* @__PURE__ */ jsxRuntimeExports.jsx(IndeterminateCheckBoxIcon, {});
10386
+ const defaultCheckedIcon = /* @__PURE__ */ jsx$1(CheckBoxIcon, {});
10387
+ const defaultIcon = /* @__PURE__ */ jsx$1(CheckBoxOutlineBlankIcon, {});
10388
+ const defaultIndeterminateIcon = /* @__PURE__ */ jsx$1(IndeterminateCheckBoxIcon, {});
11330
10389
  const Checkbox = /* @__PURE__ */ React.forwardRef(function Checkbox2(inProps, ref) {
11331
10390
  const props = useDefaultProps({
11332
10391
  props: inProps,
@@ -11385,7 +10444,7 @@ const Checkbox = /* @__PURE__ */ React.forwardRef(function Checkbox2(inProps, re
11385
10444
  }
11386
10445
  }
11387
10446
  });
11388
- return /* @__PURE__ */ jsxRuntimeExports.jsx(RootSlot, {
10447
+ return /* @__PURE__ */ jsx$1(RootSlot, {
11389
10448
  ...rootSlotProps,
11390
10449
  classes
11391
10450
  });
@@ -11545,72 +10604,69 @@ const TypographyRoot = styled("span", {
11545
10604
  }
11546
10605
  })(memoTheme(({
11547
10606
  theme
11548
- }) => {
11549
- var _a;
11550
- return {
11551
- margin: 0,
11552
- variants: [{
11553
- props: {
11554
- variant: "inherit"
11555
- },
11556
- style: {
11557
- // Some elements, like <button> on Chrome have default font that doesn't inherit, reset this.
11558
- font: "inherit",
11559
- lineHeight: "inherit",
11560
- letterSpacing: "inherit"
11561
- }
11562
- }, ...Object.entries(theme.typography).filter(([variant, value]) => variant !== "inherit" && value && typeof value === "object").map(([variant, value]) => ({
11563
- props: {
11564
- variant
11565
- },
11566
- style: value
11567
- })), ...Object.entries(theme.palette).filter(createSimplePaletteValueFilter()).map(([color2]) => ({
11568
- props: {
11569
- color: color2
11570
- },
11571
- style: {
11572
- color: (theme.vars || theme).palette[color2].main
11573
- }
11574
- })), ...Object.entries(((_a = theme.palette) == null ? void 0 : _a.text) || {}).filter(([, value]) => typeof value === "string").map(([color2]) => ({
11575
- props: {
11576
- color: `text${capitalize(color2)}`
11577
- },
11578
- style: {
11579
- color: (theme.vars || theme).palette.text[color2]
11580
- }
11581
- })), {
11582
- props: ({
11583
- ownerState
11584
- }) => ownerState.align !== "inherit",
11585
- style: {
11586
- textAlign: "var(--Typography-textAlign)"
11587
- }
11588
- }, {
11589
- props: ({
11590
- ownerState
11591
- }) => ownerState.noWrap,
11592
- style: {
11593
- overflow: "hidden",
11594
- textOverflow: "ellipsis",
11595
- whiteSpace: "nowrap"
11596
- }
11597
- }, {
11598
- props: ({
11599
- ownerState
11600
- }) => ownerState.gutterBottom,
11601
- style: {
11602
- marginBottom: "0.35em"
11603
- }
11604
- }, {
11605
- props: ({
11606
- ownerState
11607
- }) => ownerState.paragraph,
11608
- style: {
11609
- marginBottom: 16
11610
- }
11611
- }]
11612
- };
11613
- }));
10607
+ }) => ({
10608
+ margin: 0,
10609
+ variants: [{
10610
+ props: {
10611
+ variant: "inherit"
10612
+ },
10613
+ style: {
10614
+ // Some elements, like <button> on Chrome have default font that doesn't inherit, reset this.
10615
+ font: "inherit",
10616
+ lineHeight: "inherit",
10617
+ letterSpacing: "inherit"
10618
+ }
10619
+ }, ...Object.entries(theme.typography).filter(([variant, value]) => variant !== "inherit" && value && typeof value === "object").map(([variant, value]) => ({
10620
+ props: {
10621
+ variant
10622
+ },
10623
+ style: value
10624
+ })), ...Object.entries(theme.palette).filter(createSimplePaletteValueFilter()).map(([color2]) => ({
10625
+ props: {
10626
+ color: color2
10627
+ },
10628
+ style: {
10629
+ color: (theme.vars || theme).palette[color2].main
10630
+ }
10631
+ })), ...Object.entries(theme.palette?.text || {}).filter(([, value]) => typeof value === "string").map(([color2]) => ({
10632
+ props: {
10633
+ color: `text${capitalize(color2)}`
10634
+ },
10635
+ style: {
10636
+ color: (theme.vars || theme).palette.text[color2]
10637
+ }
10638
+ })), {
10639
+ props: ({
10640
+ ownerState
10641
+ }) => ownerState.align !== "inherit",
10642
+ style: {
10643
+ textAlign: "var(--Typography-textAlign)"
10644
+ }
10645
+ }, {
10646
+ props: ({
10647
+ ownerState
10648
+ }) => ownerState.noWrap,
10649
+ style: {
10650
+ overflow: "hidden",
10651
+ textOverflow: "ellipsis",
10652
+ whiteSpace: "nowrap"
10653
+ }
10654
+ }, {
10655
+ props: ({
10656
+ ownerState
10657
+ }) => ownerState.gutterBottom,
10658
+ style: {
10659
+ marginBottom: "0.35em"
10660
+ }
10661
+ }, {
10662
+ props: ({
10663
+ ownerState
10664
+ }) => ownerState.paragraph,
10665
+ style: {
10666
+ marginBottom: 16
10667
+ }
10668
+ }]
10669
+ })));
11614
10670
  const defaultVariantMapping = {
11615
10671
  h1: "h1",
11616
10672
  h2: "h2",
@@ -11664,7 +10720,7 @@ const Typography = /* @__PURE__ */ React.forwardRef(function Typography2(inProps
11664
10720
  };
11665
10721
  const Component = component || (paragraph ? "p" : variantMapping[variant] || defaultVariantMapping[variant]) || "span";
11666
10722
  const classes = useUtilityClasses$2(ownerState);
11667
- return /* @__PURE__ */ jsxRuntimeExports.jsx(TypographyRoot, {
10723
+ return /* @__PURE__ */ jsx$1(TypographyRoot, {
11668
10724
  as: Component,
11669
10725
  ref,
11670
10726
  className: clsx$1(classes.root, className),
@@ -11955,7 +11011,7 @@ const TableCell = /* @__PURE__ */ React.forwardRef(function TableCell2(inProps,
11955
11011
  if (sortDirection) {
11956
11012
  ariaSort = sortDirection === "asc" ? "ascending" : "descending";
11957
11013
  }
11958
- return /* @__PURE__ */ jsxRuntimeExports.jsx(TableCellRoot, {
11014
+ return /* @__PURE__ */ jsx$1(TableCellRoot, {
11959
11015
  as: component,
11960
11016
  ref,
11961
11017
  className: clsx$1(classes.root, className),
@@ -12090,7 +11146,7 @@ const TableRow = /* @__PURE__ */ React.forwardRef(function TableRow2(inProps, re
12090
11146
  footer: tablelvl2 && tablelvl2.variant === "footer"
12091
11147
  };
12092
11148
  const classes = useUtilityClasses(ownerState);
12093
- return /* @__PURE__ */ jsxRuntimeExports.jsx(TableRowRoot, {
11149
+ return /* @__PURE__ */ jsx$1(TableRowRoot, {
12094
11150
  as: component,
12095
11151
  ref,
12096
11152
  className: clsx$1(classes.root, className),
@@ -12136,6 +11192,28 @@ TableRow.propTypes = {
12136
11192
  */
12137
11193
  sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])
12138
11194
  };
11195
+ function _typeof(o) {
11196
+ "@babel/helpers - typeof";
11197
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
11198
+ return typeof o2;
11199
+ } : function(o2) {
11200
+ return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
11201
+ }, _typeof(o);
11202
+ }
11203
+ function toPrimitive(t, r2) {
11204
+ if ("object" != _typeof(t) || !t) return t;
11205
+ var e = t[Symbol.toPrimitive];
11206
+ if (void 0 !== e) {
11207
+ var i = e.call(t, r2);
11208
+ if ("object" != _typeof(i)) return i;
11209
+ throw new TypeError("@@toPrimitive must return a primitive value.");
11210
+ }
11211
+ return ("string" === r2 ? String : Number)(t);
11212
+ }
11213
+ function toPropertyKey(t) {
11214
+ var i = toPrimitive(t, "string");
11215
+ return "symbol" == _typeof(i) ? i : i + "";
11216
+ }
12139
11217
  /**!
12140
11218
  * @fileOverview Kickass library to create and place poppers near their reference elements.
12141
11219
  * @version 1.16.1
@@ -13828,7 +12906,7 @@ React.forwardRef((props, ref) => {
13828
12906
  onExited: handleExited
13829
12907
  };
13830
12908
  }
13831
- return jsxRuntimeExports.jsx(Portal, { disablePortal, container, children: jsxRuntimeExports.jsx("div", { ref: handleRef, role: "tooltip", ...other, style: {
12909
+ return jsx$1(Portal, { disablePortal, container, children: jsx$1("div", { ref: handleRef, role: "tooltip", ...other, style: {
13832
12910
  // Prevents scroll issue, waiting for Popper.js to add this style once initiated.
13833
12911
  position: "fixed",
13834
12912
  // Fix Popper.js display issue
@@ -13978,11 +13056,11 @@ function createListComponent(_ref) {
13978
13056
  function List2(props) {
13979
13057
  var _this;
13980
13058
  _this = _PureComponent.call(this, props) || this;
13981
- _this._instanceProps = initInstanceProps5(_this.props, _assertThisInitialized$1(_this));
13059
+ _this._instanceProps = initInstanceProps5(_this.props, _assertThisInitialized(_this));
13982
13060
  _this._outerRef = void 0;
13983
13061
  _this._resetIsScrollingTimeoutId = null;
13984
13062
  _this.state = {
13985
- instance: _assertThisInitialized$1(_this),
13063
+ instance: _assertThisInitialized(_this),
13986
13064
  isScrolling: false,
13987
13065
  scrollDirection: "forward",
13988
13066
  scrollOffset: typeof _this.props.initialScrollOffset === "number" ? _this.props.initialScrollOffset : 0,
@@ -14471,7 +13549,7 @@ makeStyles()(() => ({
14471
13549
  const OuterElementContext = React__default.createContext({});
14472
13550
  const OuterElementType = React__default.forwardRef((props, ref) => {
14473
13551
  const outerProps = React__default.useContext(OuterElementContext);
14474
- return jsxRuntimeExports.jsx("div", { ref, ...props, ...outerProps });
13552
+ return jsx$1("div", { ref, ...props, ...outerProps });
14475
13553
  });
14476
13554
  function ListRow(props) {
14477
13555
  const { data, index, style: style2 } = props;
@@ -14482,7 +13560,7 @@ function ListRow(props) {
14482
13560
  };
14483
13561
  const [props0, option, getItemLabel] = dataSet;
14484
13562
  const { key, ...optionProps } = props0;
14485
- return jsxRuntimeExports.jsx(Typography, { component: "li", ...optionProps, noWrap: true, style: inlineStyle, children: getItemLabel(option) }, key);
13563
+ return jsx$1(Typography, { component: "li", ...optionProps, noWrap: true, style: inlineStyle, children: getItemLabel(option) }, key);
14486
13564
  }
14487
13565
  function useResetCache(itemCount) {
14488
13566
  const ref = useRef(null);
@@ -14498,33 +13576,11 @@ React__default.forwardRef((props, ref) => {
14498
13576
  const items = children2;
14499
13577
  const itemCount = items.length;
14500
13578
  const gridRef = useResetCache(itemCount);
14501
- 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 }) }) });
13579
+ return jsx$1("div", { ref, children: jsx$1(OuterElementContext.Provider, { value: other, children: jsx$1(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 }) }) });
14502
13580
  });
14503
13581
  function _classCallCheck(a, n) {
14504
13582
  if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
14505
13583
  }
14506
- function _typeof(o) {
14507
- "@babel/helpers - typeof";
14508
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
14509
- return typeof o2;
14510
- } : function(o2) {
14511
- return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
14512
- }, _typeof(o);
14513
- }
14514
- function toPrimitive(t, r2) {
14515
- if ("object" != _typeof(t) || !t) return t;
14516
- var e = t[Symbol.toPrimitive];
14517
- if (void 0 !== e) {
14518
- var i = e.call(t, r2);
14519
- if ("object" != _typeof(i)) return i;
14520
- throw new TypeError("@@toPrimitive must return a primitive value.");
14521
- }
14522
- return ("string" === r2 ? String : Number)(t);
14523
- }
14524
- function toPropertyKey(t) {
14525
- var i = toPrimitive(t, "string");
14526
- return "symbol" == _typeof(i) ? i : i + "";
14527
- }
14528
13584
  function _defineProperties(e, r2) {
14529
13585
  for (var t = 0; t < r2.length; t++) {
14530
13586
  var o = r2[t];
@@ -14536,10 +13592,6 @@ function _createClass(e, r2, t) {
14536
13592
  writable: false
14537
13593
  }), e;
14538
13594
  }
14539
- function _assertThisInitialized(e) {
14540
- if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
14541
- return e;
14542
- }
14543
13595
  function _possibleConstructorReturn(t, e) {
14544
13596
  if (e && ("object" == _typeof(e) || "function" == typeof e)) return e;
14545
13597
  if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
@@ -14550,11 +13602,6 @@ function _getPrototypeOf(t) {
14550
13602
  return t2.__proto__ || Object.getPrototypeOf(t2);
14551
13603
  }, _getPrototypeOf(t);
14552
13604
  }
14553
- function _setPrototypeOf(t, e) {
14554
- return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t2, e2) {
14555
- return t2.__proto__ = e2, t2;
14556
- }, _setPrototypeOf(t, e);
14557
- }
14558
13605
  function _inherits(t, e) {
14559
13606
  if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function");
14560
13607
  t.prototype = Object.create(e && e.prototype, {
@@ -15937,8 +14984,8 @@ var Collection = /* @__PURE__ */ function(_React$PureComponent) {
15937
14984
  }, {
15938
14985
  key: "render",
15939
14986
  value: function render() {
15940
- var props = _extends$2({}, (_objectDestructuringEmpty(this.props), this.props));
15941
- return /* @__PURE__ */ React.createElement(CollectionView, _extends$2({
14987
+ var props = _extends$1({}, (_objectDestructuringEmpty(this.props), this.props));
14988
+ return /* @__PURE__ */ React.createElement(CollectionView, _extends$1({
15942
14989
  cellLayoutManager: this,
15943
14990
  isScrollingChange: this._isScrollingChange,
15944
14991
  ref: this._setCollectionViewRef
@@ -16202,15 +15249,6 @@ function calculateSizeAndPositionDataAndUpdateScrollOffset(_ref) {
16202
15249
  }
16203
15250
  }
16204
15251
  }
16205
- function _objectWithoutPropertiesLoose(r2, e) {
16206
- if (null == r2) return {};
16207
- var t = {};
16208
- for (var n in r2) if ({}.hasOwnProperty.call(r2, n)) {
16209
- if (-1 !== e.indexOf(n)) continue;
16210
- t[n] = r2[n];
16211
- }
16212
- return t;
16213
- }
16214
15252
  function _objectWithoutProperties(e, t) {
16215
15253
  if (null == e) return {};
16216
15254
  var o, r2, i = _objectWithoutPropertiesLoose(e, t);
@@ -17231,7 +16269,7 @@ var Grid = /* @__PURE__ */ function(_React$PureComponent) {
17231
16269
  gridStyle.overflowY = totalRowsHeight + horizontalScrollBarSize <= height2 ? "hidden" : "auto";
17232
16270
  var childrenToDisplay = this._childrenToDisplay;
17233
16271
  var showNoContentRenderer = childrenToDisplay.length === 0 && height2 > 0 && width2 > 0;
17234
- return /* @__PURE__ */ React.createElement("div", _extends$2({
16272
+ return /* @__PURE__ */ React.createElement("div", _extends$1({
17235
16273
  ref: this._setScrollingContainerRef
17236
16274
  }, containerProps, {
17237
16275
  "aria-label": this.props["aria-label"],
@@ -18149,7 +17187,7 @@ var List = /* @__PURE__ */ function(_React$PureComponent) {
18149
17187
  value: function render() {
18150
17188
  var _this$props = this.props, className = _this$props.className, noRowsRenderer3 = _this$props.noRowsRenderer, scrollToIndex = _this$props.scrollToIndex, width2 = _this$props.width;
18151
17189
  var classNames = clsx("ReactVirtualized__List", className);
18152
- return /* @__PURE__ */ React.createElement(Grid, _extends$2({}, this.props, {
17190
+ return /* @__PURE__ */ React.createElement(Grid, _extends$1({}, this.props, {
18153
17191
  autoContainerWidth: true,
18154
17192
  cellRenderer: this._cellRenderer,
18155
17193
  className: classNames,
@@ -19644,7 +18682,7 @@ var MultiGrid = /* @__PURE__ */ function(_React$PureComponent) {
19644
18682
  return null;
19645
18683
  }
19646
18684
  var additionalRowCount = showVerticalScrollbar ? 1 : 0, height2 = this._getBottomGridHeight(props), width2 = this._getLeftGridWidth(props), scrollbarSize2 = this.state.showVerticalScrollbar ? this.state.scrollbarSize : 0, gridWidth = hideBottomLeftGridScrollbar ? width2 + scrollbarSize2 : width2;
19647
- var bottomLeftGrid = /* @__PURE__ */ React.createElement(Grid, _extends$2({}, props, {
18685
+ var bottomLeftGrid = /* @__PURE__ */ React.createElement(Grid, _extends$1({}, props, {
19648
18686
  cellRenderer: this._cellRendererBottomLeftGrid,
19649
18687
  className: this.props.classNameBottomLeftGrid,
19650
18688
  columnCount: fixedColumnCount,
@@ -19674,7 +18712,7 @@ var MultiGrid = /* @__PURE__ */ function(_React$PureComponent) {
19674
18712
  key: "_renderBottomRightGrid",
19675
18713
  value: function _renderBottomRightGrid(props) {
19676
18714
  var columnCount = props.columnCount, fixedColumnCount = props.fixedColumnCount, fixedRowCount = props.fixedRowCount, rowCount = props.rowCount, scrollToColumn = props.scrollToColumn, scrollToRow = props.scrollToRow;
19677
- return /* @__PURE__ */ React.createElement(Grid, _extends$2({}, props, {
18715
+ return /* @__PURE__ */ React.createElement(Grid, _extends$1({}, props, {
19678
18716
  cellRenderer: this._cellRendererBottomRightGrid,
19679
18717
  className: this.props.classNameBottomRightGrid,
19680
18718
  columnCount: Math.max(0, columnCount - fixedColumnCount),
@@ -19699,7 +18737,7 @@ var MultiGrid = /* @__PURE__ */ function(_React$PureComponent) {
19699
18737
  if (!fixedColumnCount || !fixedRowCount) {
19700
18738
  return null;
19701
18739
  }
19702
- return /* @__PURE__ */ React.createElement(Grid, _extends$2({}, props, {
18740
+ return /* @__PURE__ */ React.createElement(Grid, _extends$1({}, props, {
19703
18741
  className: this.props.classNameTopLeftGrid,
19704
18742
  columnCount: fixedColumnCount,
19705
18743
  height: this._getTopGridHeight(props),
@@ -19726,7 +18764,7 @@ var MultiGrid = /* @__PURE__ */ function(_React$PureComponent) {
19726
18764
  left: 0
19727
18765
  });
19728
18766
  }
19729
- var topRightGrid = /* @__PURE__ */ React.createElement(Grid, _extends$2({}, props, {
18767
+ var topRightGrid = /* @__PURE__ */ React.createElement(Grid, _extends$1({}, props, {
19730
18768
  cellRenderer: this._cellRendererTopRightGrid,
19731
18769
  className: this.props.classNameTopRightGrid,
19732
18770
  columnCount: Math.max(0, columnCount - fixedColumnCount) + additionalColumnCount,
@@ -20001,7 +19039,7 @@ function defaultRowRenderer(_ref) {
20001
19039
  };
20002
19040
  }
20003
19041
  }
20004
- return /* @__PURE__ */ React.createElement("div", _extends$2({}, a11yProps, {
19042
+ return /* @__PURE__ */ React.createElement("div", _extends$1({}, a11yProps, {
20005
19043
  className,
20006
19044
  key,
20007
19045
  role: "row",
@@ -20284,7 +19322,7 @@ var Table = /* @__PURE__ */ function(_React$PureComponent) {
20284
19322
  paddingRight: scrollbarWidth,
20285
19323
  width: width2
20286
19324
  }, rowStyleObject)
20287
- }), /* @__PURE__ */ React.createElement(Grid, _extends$2({}, this.props, {
19325
+ }), /* @__PURE__ */ React.createElement(Grid, _extends$1({}, this.props, {
20288
19326
  elementRef: this._setGridElementRef,
20289
19327
  "aria-readonly": null,
20290
19328
  autoContainerWidth: true,
@@ -21351,8 +20389,8 @@ function stubFalse() {
21351
20389
  var freeExports$1 = typeof exports == "object" && exports && !exports.nodeType && exports;
21352
20390
  var freeModule$1 = freeExports$1 && typeof module == "object" && module && !module.nodeType && module;
21353
20391
  var moduleExports$1 = freeModule$1 && freeModule$1.exports === freeExports$1;
21354
- var Buffer2 = moduleExports$1 ? root.Buffer : void 0;
21355
- var nativeIsBuffer = Buffer2 ? Buffer2.isBuffer : void 0;
20392
+ var Buffer = moduleExports$1 ? root.Buffer : void 0;
20393
+ var nativeIsBuffer = Buffer ? Buffer.isBuffer : void 0;
21356
20394
  var isBuffer = nativeIsBuffer || stubFalse;
21357
20395
  var argsTag$1 = "[object Arguments]", arrayTag$1 = "[object Array]", boolTag$1 = "[object Boolean]", dateTag$1 = "[object Date]", errorTag$1 = "[object Error]", funcTag = "[object Function]", mapTag$2 = "[object Map]", numberTag$1 = "[object Number]", objectTag$2 = "[object Object]", regexpTag$1 = "[object RegExp]", setTag$2 = "[object Set]", stringTag$1 = "[object String]", weakMapTag$1 = "[object WeakMap]";
21358
20396
  var arrayBufferTag$1 = "[object ArrayBuffer]", dataViewTag$2 = "[object DataView]", float32Tag = "[object Float32Array]", float64Tag = "[object Float64Array]", int8Tag = "[object Int8Array]", int16Tag = "[object Int16Array]", int32Tag = "[object Int32Array]", uint8Tag = "[object Uint8Array]", uint8ClampedTag = "[object Uint8ClampedArray]", uint16Tag = "[object Uint16Array]", uint32Tag = "[object Uint32Array]";
@@ -22262,10 +21300,7 @@ function FeatureList(props) {
22262
21300
  const { classes } = useStyles$1();
22263
21301
  const [searchTerm, setSearchTerm] = useState("");
22264
21302
  const selectableTableSortKey = featureListSortKey === "featureIndex" ? "key" : "name";
22265
- const searchResults = useMemo(() => geneList.filter((gene) => {
22266
- var _a, _b;
22267
- return gene.toLowerCase().includes(searchTerm.toLowerCase()) || ((_a = featureLabelsMap == null ? void 0 : featureLabelsMap.get(gene)) == null ? void 0 : _a.toLowerCase().includes(searchTerm.toLowerCase())) || ((_b = featureLabelsMap == null ? void 0 : featureLabelsMap.get(cleanFeatureId(gene))) == null ? void 0 : _b.toLowerCase().includes(searchTerm.toLowerCase()));
22268
- }), [geneList, searchTerm, featureLabelsMap]);
21303
+ const searchResults = useMemo(() => geneList.filter((gene) => gene.toLowerCase().includes(searchTerm.toLowerCase()) || featureLabelsMap?.get(gene)?.toLowerCase().includes(searchTerm.toLowerCase()) || featureLabelsMap?.get(cleanFeatureId(gene))?.toLowerCase().includes(searchTerm.toLowerCase())), [geneList, searchTerm, featureLabelsMap]);
22269
21304
  function onChange(selection) {
22270
21305
  if (setGeneSelection && selection) {
22271
21306
  const selectedHiddenKeys = (geneSelection || []).filter(
@@ -22287,7 +21322,7 @@ function FeatureList(props) {
22287
21322
  const preSortedData = searchResults.filter((gene) => geneFilter ? geneFilter.includes(gene) : true).map(
22288
21323
  (gene) => ({
22289
21324
  key: gene,
22290
- name: (featureLabelsMap == null ? void 0 : featureLabelsMap.get(gene)) || (featureLabelsMap == null ? void 0 : featureLabelsMap.get(cleanFeatureId(gene))) || gene,
21325
+ name: featureLabelsMap?.get(gene) || featureLabelsMap?.get(cleanFeatureId(gene)) || gene,
22291
21326
  value: geneSelection ? geneSelection.includes(gene) : false
22292
21327
  })
22293
21328
  );
@@ -22347,6 +21382,8 @@ function FeatureList(props) {
22347
21382
  }
22348
21383
  )) : null;
22349
21384
  }
21385
+ const $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c = typeof document !== "undefined" ? React__default.useLayoutEffect : () => {
21386
+ };
22350
21387
  const $b5e257d569688ac6$var$defaultContext = {
22351
21388
  prefix: String(Math.round(Math.random() * 1e10)),
22352
21389
  current: 0
@@ -22359,7 +21396,7 @@ function $b5e257d569688ac6$var$useCounter(isDisabled = false) {
22359
21396
  let ctx = useContext($b5e257d569688ac6$var$SSRContext);
22360
21397
  let ref = useRef(null);
22361
21398
  if (ref.current === null && !isDisabled) {
22362
- var _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED_ReactCurrentOwner;
21399
+ var _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED_ReactCurrentOwner, _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
22363
21400
  let currentOwner = (_React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = React__default.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED) === null || _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED === void 0 ? void 0 : (_React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED_ReactCurrentOwner = _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner) === null || _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED_ReactCurrentOwner === void 0 ? void 0 : _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED_ReactCurrentOwner.current;
22364
21401
  if (currentOwner) {
22365
21402
  let prevComponentValue = $b5e257d569688ac6$var$componentIds.get(currentOwner);
@@ -22379,7 +21416,7 @@ function $b5e257d569688ac6$var$useCounter(isDisabled = false) {
22379
21416
  }
22380
21417
  function $b5e257d569688ac6$var$useLegacySSRSafeId(defaultId) {
22381
21418
  let ctx = useContext($b5e257d569688ac6$var$SSRContext);
22382
- if (ctx === $b5e257d569688ac6$var$defaultContext && !$b5e257d569688ac6$var$canUseDOM) console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");
21419
+ if (ctx === $b5e257d569688ac6$var$defaultContext && !$b5e257d569688ac6$var$canUseDOM && true) console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");
22383
21420
  let counter2 = $b5e257d569688ac6$var$useCounter(!!defaultId);
22384
21421
  let prefix2 = `react-aria${ctx.prefix}`;
22385
21422
  return defaultId || `${prefix2}-${counter2}`;
@@ -22405,67 +21442,43 @@ function $b5e257d569688ac6$export$535bd6ca7f90a273() {
22405
21442
  if (typeof React__default["useSyncExternalStore"] === "function") return React__default["useSyncExternalStore"]($b5e257d569688ac6$var$subscribe, $b5e257d569688ac6$var$getSnapshot, $b5e257d569688ac6$var$getServerSnapshot);
22406
21443
  return useContext($b5e257d569688ac6$var$IsSSRContext);
22407
21444
  }
22408
- const $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c = typeof document !== "undefined" ? React__default.useLayoutEffect : () => {
22409
- };
22410
- let $bdb11010cef70236$var$idsUpdaterMap = /* @__PURE__ */ new Map();
21445
+ let $bdb11010cef70236$var$canUseDOM = Boolean(typeof window !== "undefined" && window.document && window.document.createElement);
21446
+ let $bdb11010cef70236$export$d41a04c74483c6ef = /* @__PURE__ */ new Map();
21447
+ let $bdb11010cef70236$var$registry;
21448
+ if (typeof FinalizationRegistry !== "undefined") $bdb11010cef70236$var$registry = new FinalizationRegistry((heldValue) => {
21449
+ $bdb11010cef70236$export$d41a04c74483c6ef.delete(heldValue);
21450
+ });
22411
21451
  function $bdb11010cef70236$export$f680877a34711e37(defaultId) {
22412
21452
  let [value, setValue] = useState(defaultId);
22413
21453
  let nextId = useRef(null);
22414
21454
  let res = $b5e257d569688ac6$export$619500959fc48b26(value);
22415
- let updateValue = useCallback((val) => {
22416
- nextId.current = val;
22417
- }, []);
22418
- $bdb11010cef70236$var$idsUpdaterMap.set(res, updateValue);
21455
+ let cleanupRef = useRef(null);
21456
+ if ($bdb11010cef70236$var$registry) $bdb11010cef70236$var$registry.register(cleanupRef, res);
21457
+ if ($bdb11010cef70236$var$canUseDOM) {
21458
+ const cacheIdRef = $bdb11010cef70236$export$d41a04c74483c6ef.get(res);
21459
+ if (cacheIdRef && !cacheIdRef.includes(nextId)) cacheIdRef.push(nextId);
21460
+ else $bdb11010cef70236$export$d41a04c74483c6ef.set(res, [
21461
+ nextId
21462
+ ]);
21463
+ }
22419
21464
  $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
22420
21465
  let r2 = res;
22421
21466
  return () => {
22422
- $bdb11010cef70236$var$idsUpdaterMap.delete(r2);
21467
+ if ($bdb11010cef70236$var$registry) $bdb11010cef70236$var$registry.unregister(cleanupRef);
21468
+ $bdb11010cef70236$export$d41a04c74483c6ef.delete(r2);
22423
21469
  };
22424
21470
  }, [
22425
21471
  res
22426
21472
  ]);
22427
21473
  useEffect(() => {
22428
21474
  let newId = nextId.current;
22429
- if (newId) {
22430
- nextId.current = null;
22431
- setValue(newId);
22432
- }
21475
+ if (newId) setValue(newId);
21476
+ return () => {
21477
+ if (newId) nextId.current = null;
21478
+ };
22433
21479
  });
22434
21480
  return res;
22435
21481
  }
22436
- let $bbed8b41f857bcc0$var$transitionsByElement = /* @__PURE__ */ new Map();
22437
- let $bbed8b41f857bcc0$var$transitionCallbacks = /* @__PURE__ */ new Set();
22438
- function $bbed8b41f857bcc0$var$setupGlobalEvents() {
22439
- if (typeof window === "undefined") return;
22440
- let onTransitionStart = (e) => {
22441
- let transitions = $bbed8b41f857bcc0$var$transitionsByElement.get(e.target);
22442
- if (!transitions) {
22443
- transitions = /* @__PURE__ */ new Set();
22444
- $bbed8b41f857bcc0$var$transitionsByElement.set(e.target, transitions);
22445
- e.target.addEventListener("transitioncancel", onTransitionEnd);
22446
- }
22447
- transitions.add(e.propertyName);
22448
- };
22449
- let onTransitionEnd = (e) => {
22450
- let properties2 = $bbed8b41f857bcc0$var$transitionsByElement.get(e.target);
22451
- if (!properties2) return;
22452
- properties2.delete(e.propertyName);
22453
- if (properties2.size === 0) {
22454
- e.target.removeEventListener("transitioncancel", onTransitionEnd);
22455
- $bbed8b41f857bcc0$var$transitionsByElement.delete(e.target);
22456
- }
22457
- if ($bbed8b41f857bcc0$var$transitionsByElement.size === 0) {
22458
- for (let cb of $bbed8b41f857bcc0$var$transitionCallbacks) cb();
22459
- $bbed8b41f857bcc0$var$transitionCallbacks.clear();
22460
- }
22461
- };
22462
- document.body.addEventListener("transitionrun", onTransitionStart);
22463
- document.body.addEventListener("transitionend", onTransitionEnd);
22464
- }
22465
- if (typeof document !== "undefined") {
22466
- if (document.readyState !== "loading") $bbed8b41f857bcc0$var$setupGlobalEvents();
22467
- else document.addEventListener("DOMContentLoaded", $bbed8b41f857bcc0$var$setupGlobalEvents);
22468
- }
22469
21482
  function FeatureListOptions(props) {
22470
21483
  const {
22471
21484
  children: children2,