@vitessce/description 3.9.5 → 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,6 +1,7 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import React__default, { useContext, forwardRef, useRef, useMemo, createContext, createElement, PureComponent, useEffect } from "react";
|
|
3
3
|
import { useLoaders, useCoordinationScopes, useCoordination, useDescription, useImageData, useReady, TitleInfo } from "@vitessce/vit-s";
|
|
4
|
+
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
4
5
|
import * as ReactDOM from "react-dom";
|
|
5
6
|
const ViewType = {
|
|
6
7
|
DESCRIPTION: "description",
|
|
@@ -186,6 +187,8 @@ const ViewHelpMapping = {
|
|
|
186
187
|
};
|
|
187
188
|
const COMPONENT_COORDINATION_TYPES = {
|
|
188
189
|
[ViewType.NEUROGLANCER]: [
|
|
190
|
+
CoordinationType.META_COORDINATION_SCOPES,
|
|
191
|
+
CoordinationType.META_COORDINATION_SCOPES_BY,
|
|
189
192
|
CoordinationType.DATASET,
|
|
190
193
|
CoordinationType.SPATIAL_TARGET_X,
|
|
191
194
|
CoordinationType.SPATIAL_TARGET_Y,
|
|
@@ -207,7 +210,26 @@ const COMPONENT_COORDINATION_TYPES = {
|
|
|
207
210
|
CoordinationType.OBS_COLOR_ENCODING,
|
|
208
211
|
CoordinationType.EMBEDDING_TYPE,
|
|
209
212
|
CoordinationType.ADDITIONAL_OBS_SETS,
|
|
210
|
-
CoordinationType.TOOLTIPS_VISIBLE
|
|
213
|
+
CoordinationType.TOOLTIPS_VISIBLE,
|
|
214
|
+
CoordinationType.FILE_UID,
|
|
215
|
+
CoordinationType.IMAGE_LAYER,
|
|
216
|
+
CoordinationType.SEGMENTATION_LAYER,
|
|
217
|
+
CoordinationType.IMAGE_CHANNEL,
|
|
218
|
+
CoordinationType.SEGMENTATION_CHANNEL,
|
|
219
|
+
CoordinationType.POINT_LAYER,
|
|
220
|
+
CoordinationType.FEATURE_COLOR,
|
|
221
|
+
CoordinationType.FEATURE_FILTER_MODE,
|
|
222
|
+
CoordinationType.FEATURE_HIGHLIGHT,
|
|
223
|
+
CoordinationType.FEATURE_SELECTION,
|
|
224
|
+
CoordinationType.FEATURE_VALUE_COLORMAP,
|
|
225
|
+
CoordinationType.FEATURE_VALUE_COLORMAP_RANGE,
|
|
226
|
+
CoordinationType.SPATIAL_LAYER_COLOR,
|
|
227
|
+
CoordinationType.SPATIAL_LAYER_OPACITY,
|
|
228
|
+
CoordinationType.SPATIAL_LAYER_VISIBLE,
|
|
229
|
+
CoordinationType.SPATIAL_CHANNEL_COLOR,
|
|
230
|
+
CoordinationType.SPATIAL_CHANNEL_OPACITY,
|
|
231
|
+
CoordinationType.SPATIAL_CHANNEL_VISIBLE,
|
|
232
|
+
CoordinationType.LEGEND_VISIBLE
|
|
211
233
|
],
|
|
212
234
|
[ViewType.SCATTERPLOT]: [
|
|
213
235
|
CoordinationType.DATASET,
|
|
@@ -1633,14 +1655,14 @@ var createCache = function createCache2(options) {
|
|
|
1633
1655
|
cache.sheet.hydrate(nodesToHydrate);
|
|
1634
1656
|
return cache;
|
|
1635
1657
|
};
|
|
1636
|
-
function _extends$
|
|
1637
|
-
return _extends$
|
|
1658
|
+
function _extends$1() {
|
|
1659
|
+
return _extends$1 = Object.assign ? Object.assign.bind() : function(n) {
|
|
1638
1660
|
for (var e = 1; e < arguments.length; e++) {
|
|
1639
1661
|
var t = arguments[e];
|
|
1640
1662
|
for (var r2 in t) ({}).hasOwnProperty.call(t, r2) && (n[r2] = t[r2]);
|
|
1641
1663
|
}
|
|
1642
1664
|
return n;
|
|
1643
|
-
}, _extends$
|
|
1665
|
+
}, _extends$1.apply(null, arguments);
|
|
1644
1666
|
}
|
|
1645
1667
|
function getDefaultExportFromCjs(x) {
|
|
1646
1668
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
@@ -1723,7 +1745,7 @@ function requireReactIs_development$1() {
|
|
|
1723
1745
|
var ContextProvider = REACT_PROVIDER_TYPE;
|
|
1724
1746
|
var Element = REACT_ELEMENT_TYPE;
|
|
1725
1747
|
var ForwardRef = REACT_FORWARD_REF_TYPE;
|
|
1726
|
-
var
|
|
1748
|
+
var Fragment2 = REACT_FRAGMENT_TYPE;
|
|
1727
1749
|
var Lazy = REACT_LAZY_TYPE;
|
|
1728
1750
|
var Memo = REACT_MEMO_TYPE;
|
|
1729
1751
|
var Portal3 = REACT_PORTAL_TYPE;
|
|
@@ -1782,7 +1804,7 @@ function requireReactIs_development$1() {
|
|
|
1782
1804
|
reactIs_development$1.ContextProvider = ContextProvider;
|
|
1783
1805
|
reactIs_development$1.Element = Element;
|
|
1784
1806
|
reactIs_development$1.ForwardRef = ForwardRef;
|
|
1785
|
-
reactIs_development$1.Fragment =
|
|
1807
|
+
reactIs_development$1.Fragment = Fragment2;
|
|
1786
1808
|
reactIs_development$1.Lazy = Lazy;
|
|
1787
1809
|
reactIs_development$1.Memo = Memo;
|
|
1788
1810
|
reactIs_development$1.Portal = Portal3;
|
|
@@ -2958,7 +2980,7 @@ var createStyled$1 = function createStyled(tag, options) {
|
|
|
2958
2980
|
}
|
|
2959
2981
|
});
|
|
2960
2982
|
Styled.withComponent = function(nextTag, nextOptions) {
|
|
2961
|
-
var newStyled2 = createStyled(nextTag, _extends$
|
|
2983
|
+
var newStyled2 = createStyled(nextTag, _extends$1({}, options, nextOptions, {
|
|
2962
2984
|
shouldForwardProp: composeShouldForwardProps(Styled, nextOptions, true)
|
|
2963
2985
|
}));
|
|
2964
2986
|
return newStyled2.apply(void 0, styles);
|
|
@@ -3719,903 +3741,6 @@ function requirePropTypes() {
|
|
|
3719
3741
|
}
|
|
3720
3742
|
var propTypesExports = /* @__PURE__ */ requirePropTypes();
|
|
3721
3743
|
const PropTypes = /* @__PURE__ */ getDefaultExportFromCjs(propTypesExports);
|
|
3722
|
-
var jsxRuntime = { exports: {} };
|
|
3723
|
-
var reactJsxRuntime_development = {};
|
|
3724
|
-
var hasRequiredReactJsxRuntime_development;
|
|
3725
|
-
function requireReactJsxRuntime_development() {
|
|
3726
|
-
if (hasRequiredReactJsxRuntime_development) return reactJsxRuntime_development;
|
|
3727
|
-
hasRequiredReactJsxRuntime_development = 1;
|
|
3728
|
-
/**
|
|
3729
|
-
* @license React
|
|
3730
|
-
* react-jsx-runtime.development.js
|
|
3731
|
-
*
|
|
3732
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
3733
|
-
*
|
|
3734
|
-
* This source code is licensed under the MIT license found in the
|
|
3735
|
-
* LICENSE file in the root directory of this source tree.
|
|
3736
|
-
*/
|
|
3737
|
-
{
|
|
3738
|
-
(function() {
|
|
3739
|
-
var React2 = React__default;
|
|
3740
|
-
var REACT_ELEMENT_TYPE = Symbol.for("react.element");
|
|
3741
|
-
var REACT_PORTAL_TYPE = Symbol.for("react.portal");
|
|
3742
|
-
var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
|
|
3743
|
-
var REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode");
|
|
3744
|
-
var REACT_PROFILER_TYPE = Symbol.for("react.profiler");
|
|
3745
|
-
var REACT_PROVIDER_TYPE = Symbol.for("react.provider");
|
|
3746
|
-
var REACT_CONTEXT_TYPE = Symbol.for("react.context");
|
|
3747
|
-
var REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref");
|
|
3748
|
-
var REACT_SUSPENSE_TYPE = Symbol.for("react.suspense");
|
|
3749
|
-
var REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list");
|
|
3750
|
-
var REACT_MEMO_TYPE = Symbol.for("react.memo");
|
|
3751
|
-
var REACT_LAZY_TYPE = Symbol.for("react.lazy");
|
|
3752
|
-
var REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen");
|
|
3753
|
-
var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
|
|
3754
|
-
var FAUX_ITERATOR_SYMBOL = "@@iterator";
|
|
3755
|
-
function getIteratorFn(maybeIterable) {
|
|
3756
|
-
if (maybeIterable === null || typeof maybeIterable !== "object") {
|
|
3757
|
-
return null;
|
|
3758
|
-
}
|
|
3759
|
-
var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
|
|
3760
|
-
if (typeof maybeIterator === "function") {
|
|
3761
|
-
return maybeIterator;
|
|
3762
|
-
}
|
|
3763
|
-
return null;
|
|
3764
|
-
}
|
|
3765
|
-
var ReactSharedInternals = React2.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
3766
|
-
function error(format) {
|
|
3767
|
-
{
|
|
3768
|
-
{
|
|
3769
|
-
for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
|
3770
|
-
args[_key2 - 1] = arguments[_key2];
|
|
3771
|
-
}
|
|
3772
|
-
printWarning("error", format, args);
|
|
3773
|
-
}
|
|
3774
|
-
}
|
|
3775
|
-
}
|
|
3776
|
-
function printWarning(level, format, args) {
|
|
3777
|
-
{
|
|
3778
|
-
var ReactDebugCurrentFrame2 = ReactSharedInternals.ReactDebugCurrentFrame;
|
|
3779
|
-
var stack = ReactDebugCurrentFrame2.getStackAddendum();
|
|
3780
|
-
if (stack !== "") {
|
|
3781
|
-
format += "%s";
|
|
3782
|
-
args = args.concat([stack]);
|
|
3783
|
-
}
|
|
3784
|
-
var argsWithFormat = args.map(function(item) {
|
|
3785
|
-
return String(item);
|
|
3786
|
-
});
|
|
3787
|
-
argsWithFormat.unshift("Warning: " + format);
|
|
3788
|
-
Function.prototype.apply.call(console[level], console, argsWithFormat);
|
|
3789
|
-
}
|
|
3790
|
-
}
|
|
3791
|
-
var enableScopeAPI = false;
|
|
3792
|
-
var enableCacheElement = false;
|
|
3793
|
-
var enableTransitionTracing = false;
|
|
3794
|
-
var enableLegacyHidden = false;
|
|
3795
|
-
var enableDebugTracing = false;
|
|
3796
|
-
var REACT_MODULE_REFERENCE;
|
|
3797
|
-
{
|
|
3798
|
-
REACT_MODULE_REFERENCE = Symbol.for("react.module.reference");
|
|
3799
|
-
}
|
|
3800
|
-
function isValidElementType(type) {
|
|
3801
|
-
if (typeof type === "string" || typeof type === "function") {
|
|
3802
|
-
return true;
|
|
3803
|
-
}
|
|
3804
|
-
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) {
|
|
3805
|
-
return true;
|
|
3806
|
-
}
|
|
3807
|
-
if (typeof type === "object" && type !== null) {
|
|
3808
|
-
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
|
|
3809
|
-
// types supported by any Flight configuration anywhere since
|
|
3810
|
-
// we don't know which Flight build this will end up being used
|
|
3811
|
-
// with.
|
|
3812
|
-
type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== void 0) {
|
|
3813
|
-
return true;
|
|
3814
|
-
}
|
|
3815
|
-
}
|
|
3816
|
-
return false;
|
|
3817
|
-
}
|
|
3818
|
-
function getWrappedName2(outerType, innerType, wrapperName) {
|
|
3819
|
-
var displayName = outerType.displayName;
|
|
3820
|
-
if (displayName) {
|
|
3821
|
-
return displayName;
|
|
3822
|
-
}
|
|
3823
|
-
var functionName = innerType.displayName || innerType.name || "";
|
|
3824
|
-
return functionName !== "" ? wrapperName + "(" + functionName + ")" : wrapperName;
|
|
3825
|
-
}
|
|
3826
|
-
function getContextName(type) {
|
|
3827
|
-
return type.displayName || "Context";
|
|
3828
|
-
}
|
|
3829
|
-
function getComponentNameFromType(type) {
|
|
3830
|
-
if (type == null) {
|
|
3831
|
-
return null;
|
|
3832
|
-
}
|
|
3833
|
-
{
|
|
3834
|
-
if (typeof type.tag === "number") {
|
|
3835
|
-
error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.");
|
|
3836
|
-
}
|
|
3837
|
-
}
|
|
3838
|
-
if (typeof type === "function") {
|
|
3839
|
-
return type.displayName || type.name || null;
|
|
3840
|
-
}
|
|
3841
|
-
if (typeof type === "string") {
|
|
3842
|
-
return type;
|
|
3843
|
-
}
|
|
3844
|
-
switch (type) {
|
|
3845
|
-
case REACT_FRAGMENT_TYPE:
|
|
3846
|
-
return "Fragment";
|
|
3847
|
-
case REACT_PORTAL_TYPE:
|
|
3848
|
-
return "Portal";
|
|
3849
|
-
case REACT_PROFILER_TYPE:
|
|
3850
|
-
return "Profiler";
|
|
3851
|
-
case REACT_STRICT_MODE_TYPE:
|
|
3852
|
-
return "StrictMode";
|
|
3853
|
-
case REACT_SUSPENSE_TYPE:
|
|
3854
|
-
return "Suspense";
|
|
3855
|
-
case REACT_SUSPENSE_LIST_TYPE:
|
|
3856
|
-
return "SuspenseList";
|
|
3857
|
-
}
|
|
3858
|
-
if (typeof type === "object") {
|
|
3859
|
-
switch (type.$$typeof) {
|
|
3860
|
-
case REACT_CONTEXT_TYPE:
|
|
3861
|
-
var context = type;
|
|
3862
|
-
return getContextName(context) + ".Consumer";
|
|
3863
|
-
case REACT_PROVIDER_TYPE:
|
|
3864
|
-
var provider = type;
|
|
3865
|
-
return getContextName(provider._context) + ".Provider";
|
|
3866
|
-
case REACT_FORWARD_REF_TYPE:
|
|
3867
|
-
return getWrappedName2(type, type.render, "ForwardRef");
|
|
3868
|
-
case REACT_MEMO_TYPE:
|
|
3869
|
-
var outerName = type.displayName || null;
|
|
3870
|
-
if (outerName !== null) {
|
|
3871
|
-
return outerName;
|
|
3872
|
-
}
|
|
3873
|
-
return getComponentNameFromType(type.type) || "Memo";
|
|
3874
|
-
case REACT_LAZY_TYPE: {
|
|
3875
|
-
var lazyComponent = type;
|
|
3876
|
-
var payload = lazyComponent._payload;
|
|
3877
|
-
var init = lazyComponent._init;
|
|
3878
|
-
try {
|
|
3879
|
-
return getComponentNameFromType(init(payload));
|
|
3880
|
-
} catch (x) {
|
|
3881
|
-
return null;
|
|
3882
|
-
}
|
|
3883
|
-
}
|
|
3884
|
-
}
|
|
3885
|
-
}
|
|
3886
|
-
return null;
|
|
3887
|
-
}
|
|
3888
|
-
var assign2 = Object.assign;
|
|
3889
|
-
var disabledDepth = 0;
|
|
3890
|
-
var prevLog;
|
|
3891
|
-
var prevInfo;
|
|
3892
|
-
var prevWarn;
|
|
3893
|
-
var prevError;
|
|
3894
|
-
var prevGroup;
|
|
3895
|
-
var prevGroupCollapsed;
|
|
3896
|
-
var prevGroupEnd;
|
|
3897
|
-
function disabledLog() {
|
|
3898
|
-
}
|
|
3899
|
-
disabledLog.__reactDisabledLog = true;
|
|
3900
|
-
function disableLogs() {
|
|
3901
|
-
{
|
|
3902
|
-
if (disabledDepth === 0) {
|
|
3903
|
-
prevLog = console.log;
|
|
3904
|
-
prevInfo = console.info;
|
|
3905
|
-
prevWarn = console.warn;
|
|
3906
|
-
prevError = console.error;
|
|
3907
|
-
prevGroup = console.group;
|
|
3908
|
-
prevGroupCollapsed = console.groupCollapsed;
|
|
3909
|
-
prevGroupEnd = console.groupEnd;
|
|
3910
|
-
var props = {
|
|
3911
|
-
configurable: true,
|
|
3912
|
-
enumerable: true,
|
|
3913
|
-
value: disabledLog,
|
|
3914
|
-
writable: true
|
|
3915
|
-
};
|
|
3916
|
-
Object.defineProperties(console, {
|
|
3917
|
-
info: props,
|
|
3918
|
-
log: props,
|
|
3919
|
-
warn: props,
|
|
3920
|
-
error: props,
|
|
3921
|
-
group: props,
|
|
3922
|
-
groupCollapsed: props,
|
|
3923
|
-
groupEnd: props
|
|
3924
|
-
});
|
|
3925
|
-
}
|
|
3926
|
-
disabledDepth++;
|
|
3927
|
-
}
|
|
3928
|
-
}
|
|
3929
|
-
function reenableLogs() {
|
|
3930
|
-
{
|
|
3931
|
-
disabledDepth--;
|
|
3932
|
-
if (disabledDepth === 0) {
|
|
3933
|
-
var props = {
|
|
3934
|
-
configurable: true,
|
|
3935
|
-
enumerable: true,
|
|
3936
|
-
writable: true
|
|
3937
|
-
};
|
|
3938
|
-
Object.defineProperties(console, {
|
|
3939
|
-
log: assign2({}, props, {
|
|
3940
|
-
value: prevLog
|
|
3941
|
-
}),
|
|
3942
|
-
info: assign2({}, props, {
|
|
3943
|
-
value: prevInfo
|
|
3944
|
-
}),
|
|
3945
|
-
warn: assign2({}, props, {
|
|
3946
|
-
value: prevWarn
|
|
3947
|
-
}),
|
|
3948
|
-
error: assign2({}, props, {
|
|
3949
|
-
value: prevError
|
|
3950
|
-
}),
|
|
3951
|
-
group: assign2({}, props, {
|
|
3952
|
-
value: prevGroup
|
|
3953
|
-
}),
|
|
3954
|
-
groupCollapsed: assign2({}, props, {
|
|
3955
|
-
value: prevGroupCollapsed
|
|
3956
|
-
}),
|
|
3957
|
-
groupEnd: assign2({}, props, {
|
|
3958
|
-
value: prevGroupEnd
|
|
3959
|
-
})
|
|
3960
|
-
});
|
|
3961
|
-
}
|
|
3962
|
-
if (disabledDepth < 0) {
|
|
3963
|
-
error("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
3964
|
-
}
|
|
3965
|
-
}
|
|
3966
|
-
}
|
|
3967
|
-
var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;
|
|
3968
|
-
var prefix2;
|
|
3969
|
-
function describeBuiltInComponentFrame(name2, source, ownerFn) {
|
|
3970
|
-
{
|
|
3971
|
-
if (prefix2 === void 0) {
|
|
3972
|
-
try {
|
|
3973
|
-
throw Error();
|
|
3974
|
-
} catch (x) {
|
|
3975
|
-
var match2 = x.stack.trim().match(/\n( *(at )?)/);
|
|
3976
|
-
prefix2 = match2 && match2[1] || "";
|
|
3977
|
-
}
|
|
3978
|
-
}
|
|
3979
|
-
return "\n" + prefix2 + name2;
|
|
3980
|
-
}
|
|
3981
|
-
}
|
|
3982
|
-
var reentry = false;
|
|
3983
|
-
var componentFrameCache;
|
|
3984
|
-
{
|
|
3985
|
-
var PossiblyWeakMap = typeof WeakMap === "function" ? WeakMap : Map;
|
|
3986
|
-
componentFrameCache = new PossiblyWeakMap();
|
|
3987
|
-
}
|
|
3988
|
-
function describeNativeComponentFrame(fn, construct) {
|
|
3989
|
-
if (!fn || reentry) {
|
|
3990
|
-
return "";
|
|
3991
|
-
}
|
|
3992
|
-
{
|
|
3993
|
-
var frame = componentFrameCache.get(fn);
|
|
3994
|
-
if (frame !== void 0) {
|
|
3995
|
-
return frame;
|
|
3996
|
-
}
|
|
3997
|
-
}
|
|
3998
|
-
var control;
|
|
3999
|
-
reentry = true;
|
|
4000
|
-
var previousPrepareStackTrace = Error.prepareStackTrace;
|
|
4001
|
-
Error.prepareStackTrace = void 0;
|
|
4002
|
-
var previousDispatcher;
|
|
4003
|
-
{
|
|
4004
|
-
previousDispatcher = ReactCurrentDispatcher.current;
|
|
4005
|
-
ReactCurrentDispatcher.current = null;
|
|
4006
|
-
disableLogs();
|
|
4007
|
-
}
|
|
4008
|
-
try {
|
|
4009
|
-
if (construct) {
|
|
4010
|
-
var Fake = function() {
|
|
4011
|
-
throw Error();
|
|
4012
|
-
};
|
|
4013
|
-
Object.defineProperty(Fake.prototype, "props", {
|
|
4014
|
-
set: function() {
|
|
4015
|
-
throw Error();
|
|
4016
|
-
}
|
|
4017
|
-
});
|
|
4018
|
-
if (typeof Reflect === "object" && Reflect.construct) {
|
|
4019
|
-
try {
|
|
4020
|
-
Reflect.construct(Fake, []);
|
|
4021
|
-
} catch (x) {
|
|
4022
|
-
control = x;
|
|
4023
|
-
}
|
|
4024
|
-
Reflect.construct(fn, [], Fake);
|
|
4025
|
-
} else {
|
|
4026
|
-
try {
|
|
4027
|
-
Fake.call();
|
|
4028
|
-
} catch (x) {
|
|
4029
|
-
control = x;
|
|
4030
|
-
}
|
|
4031
|
-
fn.call(Fake.prototype);
|
|
4032
|
-
}
|
|
4033
|
-
} else {
|
|
4034
|
-
try {
|
|
4035
|
-
throw Error();
|
|
4036
|
-
} catch (x) {
|
|
4037
|
-
control = x;
|
|
4038
|
-
}
|
|
4039
|
-
fn();
|
|
4040
|
-
}
|
|
4041
|
-
} catch (sample) {
|
|
4042
|
-
if (sample && control && typeof sample.stack === "string") {
|
|
4043
|
-
var sampleLines = sample.stack.split("\n");
|
|
4044
|
-
var controlLines = control.stack.split("\n");
|
|
4045
|
-
var s = sampleLines.length - 1;
|
|
4046
|
-
var c = controlLines.length - 1;
|
|
4047
|
-
while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {
|
|
4048
|
-
c--;
|
|
4049
|
-
}
|
|
4050
|
-
for (; s >= 1 && c >= 0; s--, c--) {
|
|
4051
|
-
if (sampleLines[s] !== controlLines[c]) {
|
|
4052
|
-
if (s !== 1 || c !== 1) {
|
|
4053
|
-
do {
|
|
4054
|
-
s--;
|
|
4055
|
-
c--;
|
|
4056
|
-
if (c < 0 || sampleLines[s] !== controlLines[c]) {
|
|
4057
|
-
var _frame = "\n" + sampleLines[s].replace(" at new ", " at ");
|
|
4058
|
-
if (fn.displayName && _frame.includes("<anonymous>")) {
|
|
4059
|
-
_frame = _frame.replace("<anonymous>", fn.displayName);
|
|
4060
|
-
}
|
|
4061
|
-
{
|
|
4062
|
-
if (typeof fn === "function") {
|
|
4063
|
-
componentFrameCache.set(fn, _frame);
|
|
4064
|
-
}
|
|
4065
|
-
}
|
|
4066
|
-
return _frame;
|
|
4067
|
-
}
|
|
4068
|
-
} while (s >= 1 && c >= 0);
|
|
4069
|
-
}
|
|
4070
|
-
break;
|
|
4071
|
-
}
|
|
4072
|
-
}
|
|
4073
|
-
}
|
|
4074
|
-
} finally {
|
|
4075
|
-
reentry = false;
|
|
4076
|
-
{
|
|
4077
|
-
ReactCurrentDispatcher.current = previousDispatcher;
|
|
4078
|
-
reenableLogs();
|
|
4079
|
-
}
|
|
4080
|
-
Error.prepareStackTrace = previousPrepareStackTrace;
|
|
4081
|
-
}
|
|
4082
|
-
var name2 = fn ? fn.displayName || fn.name : "";
|
|
4083
|
-
var syntheticFrame = name2 ? describeBuiltInComponentFrame(name2) : "";
|
|
4084
|
-
{
|
|
4085
|
-
if (typeof fn === "function") {
|
|
4086
|
-
componentFrameCache.set(fn, syntheticFrame);
|
|
4087
|
-
}
|
|
4088
|
-
}
|
|
4089
|
-
return syntheticFrame;
|
|
4090
|
-
}
|
|
4091
|
-
function describeFunctionComponentFrame(fn, source, ownerFn) {
|
|
4092
|
-
{
|
|
4093
|
-
return describeNativeComponentFrame(fn, false);
|
|
4094
|
-
}
|
|
4095
|
-
}
|
|
4096
|
-
function shouldConstruct(Component) {
|
|
4097
|
-
var prototype = Component.prototype;
|
|
4098
|
-
return !!(prototype && prototype.isReactComponent);
|
|
4099
|
-
}
|
|
4100
|
-
function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {
|
|
4101
|
-
if (type == null) {
|
|
4102
|
-
return "";
|
|
4103
|
-
}
|
|
4104
|
-
if (typeof type === "function") {
|
|
4105
|
-
{
|
|
4106
|
-
return describeNativeComponentFrame(type, shouldConstruct(type));
|
|
4107
|
-
}
|
|
4108
|
-
}
|
|
4109
|
-
if (typeof type === "string") {
|
|
4110
|
-
return describeBuiltInComponentFrame(type);
|
|
4111
|
-
}
|
|
4112
|
-
switch (type) {
|
|
4113
|
-
case REACT_SUSPENSE_TYPE:
|
|
4114
|
-
return describeBuiltInComponentFrame("Suspense");
|
|
4115
|
-
case REACT_SUSPENSE_LIST_TYPE:
|
|
4116
|
-
return describeBuiltInComponentFrame("SuspenseList");
|
|
4117
|
-
}
|
|
4118
|
-
if (typeof type === "object") {
|
|
4119
|
-
switch (type.$$typeof) {
|
|
4120
|
-
case REACT_FORWARD_REF_TYPE:
|
|
4121
|
-
return describeFunctionComponentFrame(type.render);
|
|
4122
|
-
case REACT_MEMO_TYPE:
|
|
4123
|
-
return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);
|
|
4124
|
-
case REACT_LAZY_TYPE: {
|
|
4125
|
-
var lazyComponent = type;
|
|
4126
|
-
var payload = lazyComponent._payload;
|
|
4127
|
-
var init = lazyComponent._init;
|
|
4128
|
-
try {
|
|
4129
|
-
return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);
|
|
4130
|
-
} catch (x) {
|
|
4131
|
-
}
|
|
4132
|
-
}
|
|
4133
|
-
}
|
|
4134
|
-
}
|
|
4135
|
-
return "";
|
|
4136
|
-
}
|
|
4137
|
-
var hasOwnProperty2 = Object.prototype.hasOwnProperty;
|
|
4138
|
-
var loggedTypeFailures = {};
|
|
4139
|
-
var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
|
|
4140
|
-
function setCurrentlyValidatingElement(element2) {
|
|
4141
|
-
{
|
|
4142
|
-
if (element2) {
|
|
4143
|
-
var owner = element2._owner;
|
|
4144
|
-
var stack = describeUnknownElementTypeFrameInDEV(element2.type, element2._source, owner ? owner.type : null);
|
|
4145
|
-
ReactDebugCurrentFrame.setExtraStackFrame(stack);
|
|
4146
|
-
} else {
|
|
4147
|
-
ReactDebugCurrentFrame.setExtraStackFrame(null);
|
|
4148
|
-
}
|
|
4149
|
-
}
|
|
4150
|
-
}
|
|
4151
|
-
function checkPropTypes(typeSpecs, values2, location, componentName, element2) {
|
|
4152
|
-
{
|
|
4153
|
-
var has2 = Function.call.bind(hasOwnProperty2);
|
|
4154
|
-
for (var typeSpecName in typeSpecs) {
|
|
4155
|
-
if (has2(typeSpecs, typeSpecName)) {
|
|
4156
|
-
var error$1 = void 0;
|
|
4157
|
-
try {
|
|
4158
|
-
if (typeof typeSpecs[typeSpecName] !== "function") {
|
|
4159
|
-
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`.");
|
|
4160
|
-
err.name = "Invariant Violation";
|
|
4161
|
-
throw err;
|
|
4162
|
-
}
|
|
4163
|
-
error$1 = typeSpecs[typeSpecName](values2, typeSpecName, componentName, location, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
4164
|
-
} catch (ex) {
|
|
4165
|
-
error$1 = ex;
|
|
4166
|
-
}
|
|
4167
|
-
if (error$1 && !(error$1 instanceof Error)) {
|
|
4168
|
-
setCurrentlyValidatingElement(element2);
|
|
4169
|
-
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);
|
|
4170
|
-
setCurrentlyValidatingElement(null);
|
|
4171
|
-
}
|
|
4172
|
-
if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {
|
|
4173
|
-
loggedTypeFailures[error$1.message] = true;
|
|
4174
|
-
setCurrentlyValidatingElement(element2);
|
|
4175
|
-
error("Failed %s type: %s", location, error$1.message);
|
|
4176
|
-
setCurrentlyValidatingElement(null);
|
|
4177
|
-
}
|
|
4178
|
-
}
|
|
4179
|
-
}
|
|
4180
|
-
}
|
|
4181
|
-
}
|
|
4182
|
-
var isArrayImpl = Array.isArray;
|
|
4183
|
-
function isArray(a) {
|
|
4184
|
-
return isArrayImpl(a);
|
|
4185
|
-
}
|
|
4186
|
-
function typeName(value) {
|
|
4187
|
-
{
|
|
4188
|
-
var hasToStringTag = typeof Symbol === "function" && Symbol.toStringTag;
|
|
4189
|
-
var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
|
|
4190
|
-
return type;
|
|
4191
|
-
}
|
|
4192
|
-
}
|
|
4193
|
-
function willCoercionThrow(value) {
|
|
4194
|
-
{
|
|
4195
|
-
try {
|
|
4196
|
-
testStringCoercion(value);
|
|
4197
|
-
return false;
|
|
4198
|
-
} catch (e) {
|
|
4199
|
-
return true;
|
|
4200
|
-
}
|
|
4201
|
-
}
|
|
4202
|
-
}
|
|
4203
|
-
function testStringCoercion(value) {
|
|
4204
|
-
return "" + value;
|
|
4205
|
-
}
|
|
4206
|
-
function checkKeyStringCoercion(value) {
|
|
4207
|
-
{
|
|
4208
|
-
if (willCoercionThrow(value)) {
|
|
4209
|
-
error("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", typeName(value));
|
|
4210
|
-
return testStringCoercion(value);
|
|
4211
|
-
}
|
|
4212
|
-
}
|
|
4213
|
-
}
|
|
4214
|
-
var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;
|
|
4215
|
-
var RESERVED_PROPS = {
|
|
4216
|
-
key: true,
|
|
4217
|
-
ref: true,
|
|
4218
|
-
__self: true,
|
|
4219
|
-
__source: true
|
|
4220
|
-
};
|
|
4221
|
-
var specialPropKeyWarningShown;
|
|
4222
|
-
var specialPropRefWarningShown;
|
|
4223
|
-
function hasValidRef(config) {
|
|
4224
|
-
{
|
|
4225
|
-
if (hasOwnProperty2.call(config, "ref")) {
|
|
4226
|
-
var getter = Object.getOwnPropertyDescriptor(config, "ref").get;
|
|
4227
|
-
if (getter && getter.isReactWarning) {
|
|
4228
|
-
return false;
|
|
4229
|
-
}
|
|
4230
|
-
}
|
|
4231
|
-
}
|
|
4232
|
-
return config.ref !== void 0;
|
|
4233
|
-
}
|
|
4234
|
-
function hasValidKey(config) {
|
|
4235
|
-
{
|
|
4236
|
-
if (hasOwnProperty2.call(config, "key")) {
|
|
4237
|
-
var getter = Object.getOwnPropertyDescriptor(config, "key").get;
|
|
4238
|
-
if (getter && getter.isReactWarning) {
|
|
4239
|
-
return false;
|
|
4240
|
-
}
|
|
4241
|
-
}
|
|
4242
|
-
}
|
|
4243
|
-
return config.key !== void 0;
|
|
4244
|
-
}
|
|
4245
|
-
function warnIfStringRefCannotBeAutoConverted(config, self2) {
|
|
4246
|
-
{
|
|
4247
|
-
if (typeof config.ref === "string" && ReactCurrentOwner.current && self2) ;
|
|
4248
|
-
}
|
|
4249
|
-
}
|
|
4250
|
-
function defineKeyPropWarningGetter(props, displayName) {
|
|
4251
|
-
{
|
|
4252
|
-
var warnAboutAccessingKey = function() {
|
|
4253
|
-
if (!specialPropKeyWarningShown) {
|
|
4254
|
-
specialPropKeyWarningShown = true;
|
|
4255
|
-
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);
|
|
4256
|
-
}
|
|
4257
|
-
};
|
|
4258
|
-
warnAboutAccessingKey.isReactWarning = true;
|
|
4259
|
-
Object.defineProperty(props, "key", {
|
|
4260
|
-
get: warnAboutAccessingKey,
|
|
4261
|
-
configurable: true
|
|
4262
|
-
});
|
|
4263
|
-
}
|
|
4264
|
-
}
|
|
4265
|
-
function defineRefPropWarningGetter(props, displayName) {
|
|
4266
|
-
{
|
|
4267
|
-
var warnAboutAccessingRef = function() {
|
|
4268
|
-
if (!specialPropRefWarningShown) {
|
|
4269
|
-
specialPropRefWarningShown = true;
|
|
4270
|
-
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);
|
|
4271
|
-
}
|
|
4272
|
-
};
|
|
4273
|
-
warnAboutAccessingRef.isReactWarning = true;
|
|
4274
|
-
Object.defineProperty(props, "ref", {
|
|
4275
|
-
get: warnAboutAccessingRef,
|
|
4276
|
-
configurable: true
|
|
4277
|
-
});
|
|
4278
|
-
}
|
|
4279
|
-
}
|
|
4280
|
-
var ReactElement = function(type, key, ref, self2, source, owner, props) {
|
|
4281
|
-
var element2 = {
|
|
4282
|
-
// This tag allows us to uniquely identify this as a React Element
|
|
4283
|
-
$$typeof: REACT_ELEMENT_TYPE,
|
|
4284
|
-
// Built-in properties that belong on the element
|
|
4285
|
-
type,
|
|
4286
|
-
key,
|
|
4287
|
-
ref,
|
|
4288
|
-
props,
|
|
4289
|
-
// Record the component responsible for creating this element.
|
|
4290
|
-
_owner: owner
|
|
4291
|
-
};
|
|
4292
|
-
{
|
|
4293
|
-
element2._store = {};
|
|
4294
|
-
Object.defineProperty(element2._store, "validated", {
|
|
4295
|
-
configurable: false,
|
|
4296
|
-
enumerable: false,
|
|
4297
|
-
writable: true,
|
|
4298
|
-
value: false
|
|
4299
|
-
});
|
|
4300
|
-
Object.defineProperty(element2, "_self", {
|
|
4301
|
-
configurable: false,
|
|
4302
|
-
enumerable: false,
|
|
4303
|
-
writable: false,
|
|
4304
|
-
value: self2
|
|
4305
|
-
});
|
|
4306
|
-
Object.defineProperty(element2, "_source", {
|
|
4307
|
-
configurable: false,
|
|
4308
|
-
enumerable: false,
|
|
4309
|
-
writable: false,
|
|
4310
|
-
value: source
|
|
4311
|
-
});
|
|
4312
|
-
if (Object.freeze) {
|
|
4313
|
-
Object.freeze(element2.props);
|
|
4314
|
-
Object.freeze(element2);
|
|
4315
|
-
}
|
|
4316
|
-
}
|
|
4317
|
-
return element2;
|
|
4318
|
-
};
|
|
4319
|
-
function jsxDEV(type, config, maybeKey, source, self2) {
|
|
4320
|
-
{
|
|
4321
|
-
var propName;
|
|
4322
|
-
var props = {};
|
|
4323
|
-
var key = null;
|
|
4324
|
-
var ref = null;
|
|
4325
|
-
if (maybeKey !== void 0) {
|
|
4326
|
-
{
|
|
4327
|
-
checkKeyStringCoercion(maybeKey);
|
|
4328
|
-
}
|
|
4329
|
-
key = "" + maybeKey;
|
|
4330
|
-
}
|
|
4331
|
-
if (hasValidKey(config)) {
|
|
4332
|
-
{
|
|
4333
|
-
checkKeyStringCoercion(config.key);
|
|
4334
|
-
}
|
|
4335
|
-
key = "" + config.key;
|
|
4336
|
-
}
|
|
4337
|
-
if (hasValidRef(config)) {
|
|
4338
|
-
ref = config.ref;
|
|
4339
|
-
warnIfStringRefCannotBeAutoConverted(config, self2);
|
|
4340
|
-
}
|
|
4341
|
-
for (propName in config) {
|
|
4342
|
-
if (hasOwnProperty2.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
|
|
4343
|
-
props[propName] = config[propName];
|
|
4344
|
-
}
|
|
4345
|
-
}
|
|
4346
|
-
if (type && type.defaultProps) {
|
|
4347
|
-
var defaultProps = type.defaultProps;
|
|
4348
|
-
for (propName in defaultProps) {
|
|
4349
|
-
if (props[propName] === void 0) {
|
|
4350
|
-
props[propName] = defaultProps[propName];
|
|
4351
|
-
}
|
|
4352
|
-
}
|
|
4353
|
-
}
|
|
4354
|
-
if (key || ref) {
|
|
4355
|
-
var displayName = typeof type === "function" ? type.displayName || type.name || "Unknown" : type;
|
|
4356
|
-
if (key) {
|
|
4357
|
-
defineKeyPropWarningGetter(props, displayName);
|
|
4358
|
-
}
|
|
4359
|
-
if (ref) {
|
|
4360
|
-
defineRefPropWarningGetter(props, displayName);
|
|
4361
|
-
}
|
|
4362
|
-
}
|
|
4363
|
-
return ReactElement(type, key, ref, self2, source, ReactCurrentOwner.current, props);
|
|
4364
|
-
}
|
|
4365
|
-
}
|
|
4366
|
-
var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner;
|
|
4367
|
-
var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;
|
|
4368
|
-
function setCurrentlyValidatingElement$1(element2) {
|
|
4369
|
-
{
|
|
4370
|
-
if (element2) {
|
|
4371
|
-
var owner = element2._owner;
|
|
4372
|
-
var stack = describeUnknownElementTypeFrameInDEV(element2.type, element2._source, owner ? owner.type : null);
|
|
4373
|
-
ReactDebugCurrentFrame$1.setExtraStackFrame(stack);
|
|
4374
|
-
} else {
|
|
4375
|
-
ReactDebugCurrentFrame$1.setExtraStackFrame(null);
|
|
4376
|
-
}
|
|
4377
|
-
}
|
|
4378
|
-
}
|
|
4379
|
-
var propTypesMisspellWarningShown;
|
|
4380
|
-
{
|
|
4381
|
-
propTypesMisspellWarningShown = false;
|
|
4382
|
-
}
|
|
4383
|
-
function isValidElement(object) {
|
|
4384
|
-
{
|
|
4385
|
-
return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
4386
|
-
}
|
|
4387
|
-
}
|
|
4388
|
-
function getDeclarationErrorAddendum() {
|
|
4389
|
-
{
|
|
4390
|
-
if (ReactCurrentOwner$1.current) {
|
|
4391
|
-
var name2 = getComponentNameFromType(ReactCurrentOwner$1.current.type);
|
|
4392
|
-
if (name2) {
|
|
4393
|
-
return "\n\nCheck the render method of `" + name2 + "`.";
|
|
4394
|
-
}
|
|
4395
|
-
}
|
|
4396
|
-
return "";
|
|
4397
|
-
}
|
|
4398
|
-
}
|
|
4399
|
-
function getSourceInfoErrorAddendum(source) {
|
|
4400
|
-
{
|
|
4401
|
-
return "";
|
|
4402
|
-
}
|
|
4403
|
-
}
|
|
4404
|
-
var ownerHasKeyUseWarning = {};
|
|
4405
|
-
function getCurrentComponentErrorInfo(parentType) {
|
|
4406
|
-
{
|
|
4407
|
-
var info = getDeclarationErrorAddendum();
|
|
4408
|
-
if (!info) {
|
|
4409
|
-
var parentName = typeof parentType === "string" ? parentType : parentType.displayName || parentType.name;
|
|
4410
|
-
if (parentName) {
|
|
4411
|
-
info = "\n\nCheck the top-level render call using <" + parentName + ">.";
|
|
4412
|
-
}
|
|
4413
|
-
}
|
|
4414
|
-
return info;
|
|
4415
|
-
}
|
|
4416
|
-
}
|
|
4417
|
-
function validateExplicitKey(element2, parentType) {
|
|
4418
|
-
{
|
|
4419
|
-
if (!element2._store || element2._store.validated || element2.key != null) {
|
|
4420
|
-
return;
|
|
4421
|
-
}
|
|
4422
|
-
element2._store.validated = true;
|
|
4423
|
-
var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
|
|
4424
|
-
if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
|
|
4425
|
-
return;
|
|
4426
|
-
}
|
|
4427
|
-
ownerHasKeyUseWarning[currentComponentErrorInfo] = true;
|
|
4428
|
-
var childOwner = "";
|
|
4429
|
-
if (element2 && element2._owner && element2._owner !== ReactCurrentOwner$1.current) {
|
|
4430
|
-
childOwner = " It was passed a child from " + getComponentNameFromType(element2._owner.type) + ".";
|
|
4431
|
-
}
|
|
4432
|
-
setCurrentlyValidatingElement$1(element2);
|
|
4433
|
-
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);
|
|
4434
|
-
setCurrentlyValidatingElement$1(null);
|
|
4435
|
-
}
|
|
4436
|
-
}
|
|
4437
|
-
function validateChildKeys(node2, parentType) {
|
|
4438
|
-
{
|
|
4439
|
-
if (typeof node2 !== "object") {
|
|
4440
|
-
return;
|
|
4441
|
-
}
|
|
4442
|
-
if (isArray(node2)) {
|
|
4443
|
-
for (var i = 0; i < node2.length; i++) {
|
|
4444
|
-
var child = node2[i];
|
|
4445
|
-
if (isValidElement(child)) {
|
|
4446
|
-
validateExplicitKey(child, parentType);
|
|
4447
|
-
}
|
|
4448
|
-
}
|
|
4449
|
-
} else if (isValidElement(node2)) {
|
|
4450
|
-
if (node2._store) {
|
|
4451
|
-
node2._store.validated = true;
|
|
4452
|
-
}
|
|
4453
|
-
} else if (node2) {
|
|
4454
|
-
var iteratorFn = getIteratorFn(node2);
|
|
4455
|
-
if (typeof iteratorFn === "function") {
|
|
4456
|
-
if (iteratorFn !== node2.entries) {
|
|
4457
|
-
var iterator = iteratorFn.call(node2);
|
|
4458
|
-
var step;
|
|
4459
|
-
while (!(step = iterator.next()).done) {
|
|
4460
|
-
if (isValidElement(step.value)) {
|
|
4461
|
-
validateExplicitKey(step.value, parentType);
|
|
4462
|
-
}
|
|
4463
|
-
}
|
|
4464
|
-
}
|
|
4465
|
-
}
|
|
4466
|
-
}
|
|
4467
|
-
}
|
|
4468
|
-
}
|
|
4469
|
-
function validatePropTypes(element2) {
|
|
4470
|
-
{
|
|
4471
|
-
var type = element2.type;
|
|
4472
|
-
if (type === null || type === void 0 || typeof type === "string") {
|
|
4473
|
-
return;
|
|
4474
|
-
}
|
|
4475
|
-
var propTypes2;
|
|
4476
|
-
if (typeof type === "function") {
|
|
4477
|
-
propTypes2 = type.propTypes;
|
|
4478
|
-
} else if (typeof type === "object" && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.
|
|
4479
|
-
// Inner props are checked in the reconciler.
|
|
4480
|
-
type.$$typeof === REACT_MEMO_TYPE)) {
|
|
4481
|
-
propTypes2 = type.propTypes;
|
|
4482
|
-
} else {
|
|
4483
|
-
return;
|
|
4484
|
-
}
|
|
4485
|
-
if (propTypes2) {
|
|
4486
|
-
var name2 = getComponentNameFromType(type);
|
|
4487
|
-
checkPropTypes(propTypes2, element2.props, "prop", name2, element2);
|
|
4488
|
-
} else if (type.PropTypes !== void 0 && !propTypesMisspellWarningShown) {
|
|
4489
|
-
propTypesMisspellWarningShown = true;
|
|
4490
|
-
var _name = getComponentNameFromType(type);
|
|
4491
|
-
error("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", _name || "Unknown");
|
|
4492
|
-
}
|
|
4493
|
-
if (typeof type.getDefaultProps === "function" && !type.getDefaultProps.isReactClassApproved) {
|
|
4494
|
-
error("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
4495
|
-
}
|
|
4496
|
-
}
|
|
4497
|
-
}
|
|
4498
|
-
function validateFragmentProps(fragment) {
|
|
4499
|
-
{
|
|
4500
|
-
var keys2 = Object.keys(fragment.props);
|
|
4501
|
-
for (var i = 0; i < keys2.length; i++) {
|
|
4502
|
-
var key = keys2[i];
|
|
4503
|
-
if (key !== "children" && key !== "key") {
|
|
4504
|
-
setCurrentlyValidatingElement$1(fragment);
|
|
4505
|
-
error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", key);
|
|
4506
|
-
setCurrentlyValidatingElement$1(null);
|
|
4507
|
-
break;
|
|
4508
|
-
}
|
|
4509
|
-
}
|
|
4510
|
-
if (fragment.ref !== null) {
|
|
4511
|
-
setCurrentlyValidatingElement$1(fragment);
|
|
4512
|
-
error("Invalid attribute `ref` supplied to `React.Fragment`.");
|
|
4513
|
-
setCurrentlyValidatingElement$1(null);
|
|
4514
|
-
}
|
|
4515
|
-
}
|
|
4516
|
-
}
|
|
4517
|
-
var didWarnAboutKeySpread = {};
|
|
4518
|
-
function jsxWithValidation(type, props, key, isStaticChildren, source, self2) {
|
|
4519
|
-
{
|
|
4520
|
-
var validType = isValidElementType(type);
|
|
4521
|
-
if (!validType) {
|
|
4522
|
-
var info = "";
|
|
4523
|
-
if (type === void 0 || typeof type === "object" && type !== null && Object.keys(type).length === 0) {
|
|
4524
|
-
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.";
|
|
4525
|
-
}
|
|
4526
|
-
var sourceInfo = getSourceInfoErrorAddendum();
|
|
4527
|
-
if (sourceInfo) {
|
|
4528
|
-
info += sourceInfo;
|
|
4529
|
-
} else {
|
|
4530
|
-
info += getDeclarationErrorAddendum();
|
|
4531
|
-
}
|
|
4532
|
-
var typeString;
|
|
4533
|
-
if (type === null) {
|
|
4534
|
-
typeString = "null";
|
|
4535
|
-
} else if (isArray(type)) {
|
|
4536
|
-
typeString = "array";
|
|
4537
|
-
} else if (type !== void 0 && type.$$typeof === REACT_ELEMENT_TYPE) {
|
|
4538
|
-
typeString = "<" + (getComponentNameFromType(type.type) || "Unknown") + " />";
|
|
4539
|
-
info = " Did you accidentally export a JSX literal instead of a component?";
|
|
4540
|
-
} else {
|
|
4541
|
-
typeString = typeof type;
|
|
4542
|
-
}
|
|
4543
|
-
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);
|
|
4544
|
-
}
|
|
4545
|
-
var element2 = jsxDEV(type, props, key, source, self2);
|
|
4546
|
-
if (element2 == null) {
|
|
4547
|
-
return element2;
|
|
4548
|
-
}
|
|
4549
|
-
if (validType) {
|
|
4550
|
-
var children = props.children;
|
|
4551
|
-
if (children !== void 0) {
|
|
4552
|
-
if (isStaticChildren) {
|
|
4553
|
-
if (isArray(children)) {
|
|
4554
|
-
for (var i = 0; i < children.length; i++) {
|
|
4555
|
-
validateChildKeys(children[i], type);
|
|
4556
|
-
}
|
|
4557
|
-
if (Object.freeze) {
|
|
4558
|
-
Object.freeze(children);
|
|
4559
|
-
}
|
|
4560
|
-
} else {
|
|
4561
|
-
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.");
|
|
4562
|
-
}
|
|
4563
|
-
} else {
|
|
4564
|
-
validateChildKeys(children, type);
|
|
4565
|
-
}
|
|
4566
|
-
}
|
|
4567
|
-
}
|
|
4568
|
-
{
|
|
4569
|
-
if (hasOwnProperty2.call(props, "key")) {
|
|
4570
|
-
var componentName = getComponentNameFromType(type);
|
|
4571
|
-
var keys2 = Object.keys(props).filter(function(k) {
|
|
4572
|
-
return k !== "key";
|
|
4573
|
-
});
|
|
4574
|
-
var beforeExample = keys2.length > 0 ? "{key: someKey, " + keys2.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
4575
|
-
if (!didWarnAboutKeySpread[componentName + beforeExample]) {
|
|
4576
|
-
var afterExample = keys2.length > 0 ? "{" + keys2.join(": ..., ") + ": ...}" : "{}";
|
|
4577
|
-
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);
|
|
4578
|
-
didWarnAboutKeySpread[componentName + beforeExample] = true;
|
|
4579
|
-
}
|
|
4580
|
-
}
|
|
4581
|
-
}
|
|
4582
|
-
if (type === REACT_FRAGMENT_TYPE) {
|
|
4583
|
-
validateFragmentProps(element2);
|
|
4584
|
-
} else {
|
|
4585
|
-
validatePropTypes(element2);
|
|
4586
|
-
}
|
|
4587
|
-
return element2;
|
|
4588
|
-
}
|
|
4589
|
-
}
|
|
4590
|
-
function jsxWithValidationStatic(type, props, key) {
|
|
4591
|
-
{
|
|
4592
|
-
return jsxWithValidation(type, props, key, true);
|
|
4593
|
-
}
|
|
4594
|
-
}
|
|
4595
|
-
function jsxWithValidationDynamic(type, props, key) {
|
|
4596
|
-
{
|
|
4597
|
-
return jsxWithValidation(type, props, key, false);
|
|
4598
|
-
}
|
|
4599
|
-
}
|
|
4600
|
-
var jsx = jsxWithValidationDynamic;
|
|
4601
|
-
var jsxs = jsxWithValidationStatic;
|
|
4602
|
-
reactJsxRuntime_development.Fragment = REACT_FRAGMENT_TYPE;
|
|
4603
|
-
reactJsxRuntime_development.jsx = jsx;
|
|
4604
|
-
reactJsxRuntime_development.jsxs = jsxs;
|
|
4605
|
-
})();
|
|
4606
|
-
}
|
|
4607
|
-
return reactJsxRuntime_development;
|
|
4608
|
-
}
|
|
4609
|
-
var hasRequiredJsxRuntime;
|
|
4610
|
-
function requireJsxRuntime() {
|
|
4611
|
-
if (hasRequiredJsxRuntime) return jsxRuntime.exports;
|
|
4612
|
-
hasRequiredJsxRuntime = 1;
|
|
4613
|
-
{
|
|
4614
|
-
jsxRuntime.exports = requireReactJsxRuntime_development();
|
|
4615
|
-
}
|
|
4616
|
-
return jsxRuntime.exports;
|
|
4617
|
-
}
|
|
4618
|
-
var jsxRuntimeExports = requireJsxRuntime();
|
|
4619
3744
|
function styled$1(tag, options) {
|
|
4620
3745
|
const stylesFactory = newStyled(tag, options);
|
|
4621
3746
|
{
|
|
@@ -4873,9 +3998,8 @@ function sortContainerQueries(theme, css) {
|
|
|
4873
3998
|
return css;
|
|
4874
3999
|
}
|
|
4875
4000
|
const sorted = Object.keys(css).filter((key) => key.startsWith("@container")).sort((a, b) => {
|
|
4876
|
-
var _a, _b;
|
|
4877
4001
|
const regex = /min-width:\s*([0-9.]+)/;
|
|
4878
|
-
return +(
|
|
4002
|
+
return +(a.match(regex)?.[1] || 0) - +(b.match(regex)?.[1] || 0);
|
|
4879
4003
|
});
|
|
4880
4004
|
if (!sorted.length) {
|
|
4881
4005
|
return css;
|
|
@@ -5003,8 +4127,7 @@ function handleBreakpoints(props, propValue, styleFromPropValue) {
|
|
|
5003
4127
|
return output;
|
|
5004
4128
|
}
|
|
5005
4129
|
function createEmptyBreakpointObject(breakpointsInput = {}) {
|
|
5006
|
-
|
|
5007
|
-
const breakpointsInOrder = (_a = breakpointsInput.keys) == null ? void 0 : _a.reduce((acc, key) => {
|
|
4130
|
+
const breakpointsInOrder = breakpointsInput.keys?.reduce((acc, key) => {
|
|
5008
4131
|
const breakpointStyleKey = breakpointsInput.up(key);
|
|
5009
4132
|
acc[breakpointStyleKey] = {};
|
|
5010
4133
|
return acc;
|
|
@@ -5424,14 +4547,13 @@ const width = style$1({
|
|
|
5424
4547
|
const maxWidth = (props) => {
|
|
5425
4548
|
if (props.maxWidth !== void 0 && props.maxWidth !== null) {
|
|
5426
4549
|
const styleFromPropValue = (propValue) => {
|
|
5427
|
-
|
|
5428
|
-
const breakpoint = ((_c = (_b = (_a = props.theme) == null ? void 0 : _a.breakpoints) == null ? void 0 : _b.values) == null ? void 0 : _c[propValue]) || values[propValue];
|
|
4550
|
+
const breakpoint = props.theme?.breakpoints?.values?.[propValue] || values[propValue];
|
|
5429
4551
|
if (!breakpoint) {
|
|
5430
4552
|
return {
|
|
5431
4553
|
maxWidth: sizingTransform(propValue)
|
|
5432
4554
|
};
|
|
5433
4555
|
}
|
|
5434
|
-
if (
|
|
4556
|
+
if (props.theme?.breakpoints?.unit !== "px") {
|
|
5435
4557
|
return {
|
|
5436
4558
|
maxWidth: `${breakpoint}${props.theme.breakpoints.unit}`
|
|
5437
4559
|
};
|
|
@@ -5872,10 +4994,9 @@ function unstable_createStyleFunctionSx() {
|
|
|
5872
4994
|
const styleFunctionSx = unstable_createStyleFunctionSx();
|
|
5873
4995
|
styleFunctionSx.filterProps = ["sx"];
|
|
5874
4996
|
function applyStyles(key, styles) {
|
|
5875
|
-
var _a;
|
|
5876
4997
|
const theme = this;
|
|
5877
4998
|
if (theme.vars) {
|
|
5878
|
-
if (!
|
|
4999
|
+
if (!theme.colorSchemes?.[key] || typeof theme.getColorSchemeSelector !== "function") {
|
|
5879
5000
|
return {};
|
|
5880
5001
|
}
|
|
5881
5002
|
let selector = theme.getColorSchemeSelector(key);
|
|
@@ -5924,7 +5045,7 @@ function createTheme$1(options = {}, ...args) {
|
|
|
5924
5045
|
muiTheme = args.reduce((acc, argument) => deepmerge(acc, argument), muiTheme);
|
|
5925
5046
|
muiTheme.unstable_sxConfig = {
|
|
5926
5047
|
...defaultSxConfig,
|
|
5927
|
-
...other
|
|
5048
|
+
...other?.unstable_sxConfig
|
|
5928
5049
|
};
|
|
5929
5050
|
muiTheme.unstable_sx = function sx(props) {
|
|
5930
5051
|
return styleFunctionSx({
|
|
@@ -5946,12 +5067,11 @@ function useTheme$1(defaultTheme2 = systemDefaultTheme$1) {
|
|
|
5946
5067
|
return useTheme$2(defaultTheme2);
|
|
5947
5068
|
}
|
|
5948
5069
|
const splitProps = (props) => {
|
|
5949
|
-
var _a;
|
|
5950
5070
|
const result = {
|
|
5951
5071
|
systemProps: {},
|
|
5952
5072
|
otherProps: {}
|
|
5953
5073
|
};
|
|
5954
|
-
const config =
|
|
5074
|
+
const config = props?.theme?.unstable_sxConfig ?? defaultSxConfig;
|
|
5955
5075
|
Object.keys(props).forEach((prop) => {
|
|
5956
5076
|
if (config[prop]) {
|
|
5957
5077
|
result.systemProps[prop] = props[prop];
|
|
@@ -6118,7 +5238,7 @@ function processStyle(props, style2) {
|
|
|
6118
5238
|
if (Array.isArray(resolvedStyle)) {
|
|
6119
5239
|
return resolvedStyle.flatMap((subStyle) => processStyle(props, subStyle));
|
|
6120
5240
|
}
|
|
6121
|
-
if (Array.isArray(resolvedStyle
|
|
5241
|
+
if (Array.isArray(resolvedStyle?.variants)) {
|
|
6122
5242
|
let rootStyle;
|
|
6123
5243
|
if (resolvedStyle.isProcessed) {
|
|
6124
5244
|
rootStyle = resolvedStyle.style;
|
|
@@ -6131,38 +5251,37 @@ function processStyle(props, style2) {
|
|
|
6131
5251
|
}
|
|
6132
5252
|
return processStyleVariants(props, resolvedStyle.variants, [rootStyle]);
|
|
6133
5253
|
}
|
|
6134
|
-
if (resolvedStyle
|
|
5254
|
+
if (resolvedStyle?.isProcessed) {
|
|
6135
5255
|
return resolvedStyle.style;
|
|
6136
5256
|
}
|
|
6137
5257
|
return resolvedStyle;
|
|
6138
5258
|
}
|
|
6139
5259
|
function processStyleVariants(props, variants, results = []) {
|
|
6140
|
-
var _a;
|
|
6141
5260
|
let mergedState;
|
|
6142
5261
|
variantLoop: for (let i = 0; i < variants.length; i += 1) {
|
|
6143
5262
|
const variant = variants[i];
|
|
6144
5263
|
if (typeof variant.props === "function") {
|
|
6145
|
-
mergedState
|
|
5264
|
+
mergedState ??= {
|
|
6146
5265
|
...props,
|
|
6147
5266
|
...props.ownerState,
|
|
6148
5267
|
ownerState: props.ownerState
|
|
6149
|
-
}
|
|
5268
|
+
};
|
|
6150
5269
|
if (!variant.props(mergedState)) {
|
|
6151
5270
|
continue;
|
|
6152
5271
|
}
|
|
6153
5272
|
} else {
|
|
6154
5273
|
for (const key in variant.props) {
|
|
6155
|
-
if (props[key] !== variant.props[key] &&
|
|
5274
|
+
if (props[key] !== variant.props[key] && props.ownerState?.[key] !== variant.props[key]) {
|
|
6156
5275
|
continue variantLoop;
|
|
6157
5276
|
}
|
|
6158
5277
|
}
|
|
6159
5278
|
}
|
|
6160
5279
|
if (typeof variant.style === "function") {
|
|
6161
|
-
mergedState
|
|
5280
|
+
mergedState ??= {
|
|
6162
5281
|
...props,
|
|
6163
5282
|
...props.ownerState,
|
|
6164
5283
|
ownerState: props.ownerState
|
|
6165
|
-
}
|
|
5284
|
+
};
|
|
6166
5285
|
results.push(variant.style(mergedState));
|
|
6167
5286
|
} else {
|
|
6168
5287
|
results.push(variant.style);
|
|
@@ -6235,9 +5354,8 @@ function createStyled2(input = {}) {
|
|
|
6235
5354
|
expressionsHead.push(styleAttachTheme);
|
|
6236
5355
|
if (componentName && overridesResolver) {
|
|
6237
5356
|
expressionsTail.push(function styleThemeOverrides(props) {
|
|
6238
|
-
var _a, _b;
|
|
6239
5357
|
const theme = props.theme;
|
|
6240
|
-
const styleOverrides =
|
|
5358
|
+
const styleOverrides = theme.components?.[componentName]?.styleOverrides;
|
|
6241
5359
|
if (!styleOverrides) {
|
|
6242
5360
|
return null;
|
|
6243
5361
|
}
|
|
@@ -6250,9 +5368,8 @@ function createStyled2(input = {}) {
|
|
|
6250
5368
|
}
|
|
6251
5369
|
if (componentName && !skipVariantsResolver) {
|
|
6252
5370
|
expressionsTail.push(function styleThemeVariants(props) {
|
|
6253
|
-
var _a, _b;
|
|
6254
5371
|
const theme = props.theme;
|
|
6255
|
-
const themeVariants =
|
|
5372
|
+
const themeVariants = theme?.components?.[componentName]?.variants;
|
|
6256
5373
|
if (!themeVariants) {
|
|
6257
5374
|
return null;
|
|
6258
5375
|
}
|
|
@@ -6785,7 +5902,6 @@ function prepareCssVars(theme, parserConfig = {}) {
|
|
|
6785
5902
|
};
|
|
6786
5903
|
}
|
|
6787
5904
|
function defaultGetSelector2(colorScheme, cssObject) {
|
|
6788
|
-
var _a, _b;
|
|
6789
5905
|
let rule = selector;
|
|
6790
5906
|
if (selector === "class") {
|
|
6791
5907
|
rule = ".%s";
|
|
@@ -6793,7 +5909,7 @@ function prepareCssVars(theme, parserConfig = {}) {
|
|
|
6793
5909
|
if (selector === "data") {
|
|
6794
5910
|
rule = "[data-%s]";
|
|
6795
5911
|
}
|
|
6796
|
-
if (
|
|
5912
|
+
if (selector?.startsWith("data-") && !selector.includes("%s")) {
|
|
6797
5913
|
rule = `[${selector}="%s"]`;
|
|
6798
5914
|
}
|
|
6799
5915
|
if (colorScheme) {
|
|
@@ -6801,7 +5917,7 @@ function prepareCssVars(theme, parserConfig = {}) {
|
|
|
6801
5917
|
if (theme.defaultColorScheme === colorScheme) {
|
|
6802
5918
|
return ":root";
|
|
6803
5919
|
}
|
|
6804
|
-
const mode =
|
|
5920
|
+
const mode = colorSchemes[colorScheme]?.palette?.mode || colorScheme;
|
|
6805
5921
|
return {
|
|
6806
5922
|
[`@media (prefers-color-scheme: ${mode})`]: {
|
|
6807
5923
|
":root": cssObject
|
|
@@ -6829,7 +5945,6 @@ function prepareCssVars(theme, parserConfig = {}) {
|
|
|
6829
5945
|
return vars;
|
|
6830
5946
|
};
|
|
6831
5947
|
const generateStyleSheets = () => {
|
|
6832
|
-
var _a, _b;
|
|
6833
5948
|
const stylesheets = [];
|
|
6834
5949
|
const colorScheme = theme.defaultColorScheme || "light";
|
|
6835
5950
|
function insertStyleSheet(key, css) {
|
|
@@ -6852,7 +5967,7 @@ function prepareCssVars(theme, parserConfig = {}) {
|
|
|
6852
5967
|
const {
|
|
6853
5968
|
css
|
|
6854
5969
|
} = defaultSchemeVal;
|
|
6855
|
-
const cssColorSheme =
|
|
5970
|
+
const cssColorSheme = colorSchemes[colorScheme]?.palette?.mode;
|
|
6856
5971
|
const finalCss = !disableCssColorScheme && cssColorSheme ? {
|
|
6857
5972
|
colorScheme: cssColorSheme,
|
|
6858
5973
|
...css
|
|
@@ -6866,8 +5981,7 @@ function prepareCssVars(theme, parserConfig = {}) {
|
|
|
6866
5981
|
Object.entries(other).forEach(([key, {
|
|
6867
5982
|
css
|
|
6868
5983
|
}]) => {
|
|
6869
|
-
|
|
6870
|
-
const cssColorSheme = (_b2 = (_a2 = colorSchemes[key]) == null ? void 0 : _a2.palette) == null ? void 0 : _b2.mode;
|
|
5984
|
+
const cssColorSheme = colorSchemes[key]?.palette?.mode;
|
|
6871
5985
|
const finalCss = !disableCssColorScheme && cssColorSheme ? {
|
|
6872
5986
|
colorScheme: cssColorSheme,
|
|
6873
5987
|
...css
|
|
@@ -7599,7 +6713,7 @@ function createThemeNoVars(options = {}, ...args) {
|
|
|
7599
6713
|
}
|
|
7600
6714
|
muiTheme.unstable_sxConfig = {
|
|
7601
6715
|
...defaultSxConfig,
|
|
7602
|
-
...other
|
|
6716
|
+
...other?.unstable_sxConfig
|
|
7603
6717
|
};
|
|
7604
6718
|
muiTheme.unstable_sx = function sx(props) {
|
|
7605
6719
|
return styleFunctionSx({
|
|
@@ -7659,9 +6773,8 @@ function createColorScheme(options) {
|
|
|
7659
6773
|
};
|
|
7660
6774
|
}
|
|
7661
6775
|
function shouldSkipGeneratingVar(keys2) {
|
|
7662
|
-
var _a;
|
|
7663
6776
|
return !!keys2[0].match(/(cssVarPrefix|colorSchemeSelector|rootSelector|typography|mixins|breakpoints|direction|transitions)/) || !!keys2[0].match(/sxConfig$/) || // ends with sxConfig
|
|
7664
|
-
keys2[0] === "palette" && !!
|
|
6777
|
+
keys2[0] === "palette" && !!keys2[1]?.match(/(mode|contrastThreshold|tonalOffset)/);
|
|
7665
6778
|
}
|
|
7666
6779
|
const excludeVariablesFromRoot = (cssVarPrefix) => [...[...Array(25)].map((_, index2) => `--${cssVarPrefix ? `${cssVarPrefix}-` : ""}overlays-${index2}`), `--${cssVarPrefix ? `${cssVarPrefix}-` : ""}palette-AppBar-darkBg`, `--${cssVarPrefix ? `${cssVarPrefix}-` : ""}palette-AppBar-darkColor`];
|
|
7667
6780
|
const defaultGetSelector = (theme) => (colorScheme, css) => {
|
|
@@ -7674,7 +6787,7 @@ const defaultGetSelector = (theme) => (colorScheme, css) => {
|
|
|
7674
6787
|
if (selector === "data") {
|
|
7675
6788
|
rule = "[data-%s]";
|
|
7676
6789
|
}
|
|
7677
|
-
if (
|
|
6790
|
+
if (selector?.startsWith("data-") && !selector.includes("%s")) {
|
|
7678
6791
|
rule = `[${selector}="%s"]`;
|
|
7679
6792
|
}
|
|
7680
6793
|
if (theme.defaultColorScheme === colorScheme) {
|
|
@@ -7774,7 +6887,7 @@ function attachColorScheme$1(colorSchemes, scheme, restTheme, colorScheme) {
|
|
|
7774
6887
|
...scheme,
|
|
7775
6888
|
palette: {
|
|
7776
6889
|
mode,
|
|
7777
|
-
...scheme
|
|
6890
|
+
...scheme?.palette
|
|
7778
6891
|
}
|
|
7779
6892
|
});
|
|
7780
6893
|
return void 0;
|
|
@@ -7786,7 +6899,7 @@ function attachColorScheme$1(colorSchemes, scheme, restTheme, colorScheme) {
|
|
|
7786
6899
|
...restTheme,
|
|
7787
6900
|
palette: {
|
|
7788
6901
|
mode,
|
|
7789
|
-
...scheme
|
|
6902
|
+
...scheme?.palette
|
|
7790
6903
|
}
|
|
7791
6904
|
});
|
|
7792
6905
|
colorSchemes[colorScheme] = {
|
|
@@ -7794,9 +6907,9 @@ function attachColorScheme$1(colorSchemes, scheme, restTheme, colorScheme) {
|
|
|
7794
6907
|
palette,
|
|
7795
6908
|
opacity: {
|
|
7796
6909
|
...getOpacity(mode),
|
|
7797
|
-
...scheme
|
|
6910
|
+
...scheme?.opacity
|
|
7798
6911
|
},
|
|
7799
|
-
overlays:
|
|
6912
|
+
overlays: scheme?.overlays || getOverlays(mode)
|
|
7800
6913
|
};
|
|
7801
6914
|
return muiTheme;
|
|
7802
6915
|
}
|
|
@@ -8055,7 +7168,7 @@ function createThemeWithVars(options = {}, ...args) {
|
|
|
8055
7168
|
theme.shouldSkipGeneratingVar = shouldSkipGeneratingVar$1;
|
|
8056
7169
|
theme.unstable_sxConfig = {
|
|
8057
7170
|
...defaultSxConfig,
|
|
8058
|
-
...input
|
|
7171
|
+
...input?.unstable_sxConfig
|
|
8059
7172
|
};
|
|
8060
7173
|
theme.unstable_sx = function sx(props) {
|
|
8061
7174
|
return styleFunctionSx({
|
|
@@ -8088,11 +7201,11 @@ function createTheme(options = {}, ...args) {
|
|
|
8088
7201
|
colorSchemes: initialColorSchemes = !palette ? {
|
|
8089
7202
|
light: true
|
|
8090
7203
|
} : void 0,
|
|
8091
|
-
defaultColorScheme: initialDefaultColorScheme = palette
|
|
7204
|
+
defaultColorScheme: initialDefaultColorScheme = palette?.mode,
|
|
8092
7205
|
...rest
|
|
8093
7206
|
} = options;
|
|
8094
7207
|
const defaultColorSchemeInput = initialDefaultColorScheme || "light";
|
|
8095
|
-
const defaultScheme = initialColorSchemes
|
|
7208
|
+
const defaultScheme = initialColorSchemes?.[defaultColorSchemeInput];
|
|
8096
7209
|
const colorSchemesInput = {
|
|
8097
7210
|
...initialColorSchemes,
|
|
8098
7211
|
...palette ? {
|
|
@@ -8226,7 +7339,7 @@ function useForkRef$1(...refs) {
|
|
|
8226
7339
|
};
|
|
8227
7340
|
});
|
|
8228
7341
|
return () => {
|
|
8229
|
-
cleanups.forEach((refCleanup) => refCleanup
|
|
7342
|
+
cleanups.forEach((refCleanup) => refCleanup?.());
|
|
8230
7343
|
};
|
|
8231
7344
|
}, refs);
|
|
8232
7345
|
return React.useMemo(() => {
|
|
@@ -8244,15 +7357,6 @@ function useForkRef$1(...refs) {
|
|
|
8244
7357
|
};
|
|
8245
7358
|
}, refs);
|
|
8246
7359
|
}
|
|
8247
|
-
function _extends$1() {
|
|
8248
|
-
return _extends$1 = Object.assign ? Object.assign.bind() : function(n) {
|
|
8249
|
-
for (var e = 1; e < arguments.length; e++) {
|
|
8250
|
-
var t = arguments[e];
|
|
8251
|
-
for (var r2 in t) ({}).hasOwnProperty.call(t, r2) && (n[r2] = t[r2]);
|
|
8252
|
-
}
|
|
8253
|
-
return n;
|
|
8254
|
-
}, _extends$1.apply(null, arguments);
|
|
8255
|
-
}
|
|
8256
7360
|
function _setPrototypeOf(t, e) {
|
|
8257
7361
|
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t2, e2) {
|
|
8258
7362
|
return t2.__proto__ = e2, t2;
|
|
@@ -8294,11 +7398,10 @@ function HTMLElementType(props, propName, componentName, location, propFullName)
|
|
|
8294
7398
|
return null;
|
|
8295
7399
|
}
|
|
8296
7400
|
function getReactElementRef(element2) {
|
|
8297
|
-
var _a;
|
|
8298
7401
|
if (parseInt(React.version, 10) >= 19) {
|
|
8299
|
-
return
|
|
7402
|
+
return element2?.props?.ref || null;
|
|
8300
7403
|
}
|
|
8301
|
-
return
|
|
7404
|
+
return element2?.ref || null;
|
|
8302
7405
|
}
|
|
8303
7406
|
function getContainer(container) {
|
|
8304
7407
|
return typeof container === "function" ? container() : container;
|
|
@@ -8406,72 +7509,69 @@ const TypographyRoot = styled("span", {
|
|
|
8406
7509
|
}
|
|
8407
7510
|
})(memoTheme(({
|
|
8408
7511
|
theme
|
|
8409
|
-
}) => {
|
|
8410
|
-
|
|
8411
|
-
|
|
8412
|
-
|
|
8413
|
-
|
|
8414
|
-
|
|
8415
|
-
|
|
8416
|
-
|
|
8417
|
-
|
|
8418
|
-
|
|
8419
|
-
|
|
8420
|
-
|
|
8421
|
-
|
|
8422
|
-
|
|
8423
|
-
|
|
8424
|
-
|
|
8425
|
-
|
|
8426
|
-
|
|
8427
|
-
|
|
8428
|
-
|
|
8429
|
-
|
|
8430
|
-
|
|
8431
|
-
|
|
8432
|
-
|
|
8433
|
-
|
|
8434
|
-
|
|
8435
|
-
|
|
8436
|
-
|
|
8437
|
-
|
|
8438
|
-
|
|
8439
|
-
|
|
8440
|
-
|
|
8441
|
-
|
|
8442
|
-
|
|
8443
|
-
|
|
8444
|
-
|
|
8445
|
-
|
|
8446
|
-
|
|
8447
|
-
|
|
8448
|
-
|
|
8449
|
-
|
|
8450
|
-
|
|
8451
|
-
|
|
8452
|
-
|
|
8453
|
-
|
|
8454
|
-
|
|
8455
|
-
|
|
8456
|
-
|
|
8457
|
-
|
|
8458
|
-
|
|
8459
|
-
|
|
8460
|
-
|
|
8461
|
-
|
|
8462
|
-
|
|
8463
|
-
|
|
8464
|
-
|
|
8465
|
-
|
|
8466
|
-
|
|
8467
|
-
|
|
8468
|
-
|
|
8469
|
-
|
|
8470
|
-
|
|
8471
|
-
|
|
8472
|
-
}]
|
|
8473
|
-
};
|
|
8474
|
-
}));
|
|
7512
|
+
}) => ({
|
|
7513
|
+
margin: 0,
|
|
7514
|
+
variants: [{
|
|
7515
|
+
props: {
|
|
7516
|
+
variant: "inherit"
|
|
7517
|
+
},
|
|
7518
|
+
style: {
|
|
7519
|
+
// Some elements, like <button> on Chrome have default font that doesn't inherit, reset this.
|
|
7520
|
+
font: "inherit",
|
|
7521
|
+
lineHeight: "inherit",
|
|
7522
|
+
letterSpacing: "inherit"
|
|
7523
|
+
}
|
|
7524
|
+
}, ...Object.entries(theme.typography).filter(([variant, value]) => variant !== "inherit" && value && typeof value === "object").map(([variant, value]) => ({
|
|
7525
|
+
props: {
|
|
7526
|
+
variant
|
|
7527
|
+
},
|
|
7528
|
+
style: value
|
|
7529
|
+
})), ...Object.entries(theme.palette).filter(createSimplePaletteValueFilter()).map(([color2]) => ({
|
|
7530
|
+
props: {
|
|
7531
|
+
color: color2
|
|
7532
|
+
},
|
|
7533
|
+
style: {
|
|
7534
|
+
color: (theme.vars || theme).palette[color2].main
|
|
7535
|
+
}
|
|
7536
|
+
})), ...Object.entries(theme.palette?.text || {}).filter(([, value]) => typeof value === "string").map(([color2]) => ({
|
|
7537
|
+
props: {
|
|
7538
|
+
color: `text${capitalize(color2)}`
|
|
7539
|
+
},
|
|
7540
|
+
style: {
|
|
7541
|
+
color: (theme.vars || theme).palette.text[color2]
|
|
7542
|
+
}
|
|
7543
|
+
})), {
|
|
7544
|
+
props: ({
|
|
7545
|
+
ownerState
|
|
7546
|
+
}) => ownerState.align !== "inherit",
|
|
7547
|
+
style: {
|
|
7548
|
+
textAlign: "var(--Typography-textAlign)"
|
|
7549
|
+
}
|
|
7550
|
+
}, {
|
|
7551
|
+
props: ({
|
|
7552
|
+
ownerState
|
|
7553
|
+
}) => ownerState.noWrap,
|
|
7554
|
+
style: {
|
|
7555
|
+
overflow: "hidden",
|
|
7556
|
+
textOverflow: "ellipsis",
|
|
7557
|
+
whiteSpace: "nowrap"
|
|
7558
|
+
}
|
|
7559
|
+
}, {
|
|
7560
|
+
props: ({
|
|
7561
|
+
ownerState
|
|
7562
|
+
}) => ownerState.gutterBottom,
|
|
7563
|
+
style: {
|
|
7564
|
+
marginBottom: "0.35em"
|
|
7565
|
+
}
|
|
7566
|
+
}, {
|
|
7567
|
+
props: ({
|
|
7568
|
+
ownerState
|
|
7569
|
+
}) => ownerState.paragraph,
|
|
7570
|
+
style: {
|
|
7571
|
+
marginBottom: 16
|
|
7572
|
+
}
|
|
7573
|
+
}]
|
|
7574
|
+
})));
|
|
8475
7575
|
const defaultVariantMapping = {
|
|
8476
7576
|
h1: "h1",
|
|
8477
7577
|
h2: "h2",
|
|
@@ -8525,7 +7625,7 @@ const Typography = /* @__PURE__ */ React.forwardRef(function Typography2(inProps
|
|
|
8525
7625
|
};
|
|
8526
7626
|
const Component = component || (paragraph2 ? "p" : variantMapping[variant] || defaultVariantMapping[variant]) || "span";
|
|
8527
7627
|
const classes = useUtilityClasses(ownerState);
|
|
8528
|
-
return /* @__PURE__ */
|
|
7628
|
+
return /* @__PURE__ */ jsx(TypographyRoot, {
|
|
8529
7629
|
as: Component,
|
|
8530
7630
|
ref,
|
|
8531
7631
|
className: clsx(classes.root, className),
|
|
@@ -10317,7 +9417,7 @@ React.forwardRef((props, ref) => {
|
|
|
10317
9417
|
onExited: handleExited
|
|
10318
9418
|
};
|
|
10319
9419
|
}
|
|
10320
|
-
return
|
|
9420
|
+
return jsx(Portal, { disablePortal, container, children: jsx("div", { ref: handleRef, role: "tooltip", ...other, style: {
|
|
10321
9421
|
// Prevents scroll issue, waiting for Popper.js to add this style once initiated.
|
|
10322
9422
|
position: "fixed",
|
|
10323
9423
|
// Fix Popper.js display issue
|
|
@@ -10960,7 +10060,7 @@ makeStyles()(() => ({
|
|
|
10960
10060
|
const OuterElementContext = React__default.createContext({});
|
|
10961
10061
|
const OuterElementType = React__default.forwardRef((props, ref) => {
|
|
10962
10062
|
const outerProps = React__default.useContext(OuterElementContext);
|
|
10963
|
-
return
|
|
10063
|
+
return jsx("div", { ref, ...props, ...outerProps });
|
|
10964
10064
|
});
|
|
10965
10065
|
function ListRow(props) {
|
|
10966
10066
|
const { data, index: index2, style: style2 } = props;
|
|
@@ -10971,7 +10071,7 @@ function ListRow(props) {
|
|
|
10971
10071
|
};
|
|
10972
10072
|
const [props0, option, getItemLabel] = dataSet;
|
|
10973
10073
|
const { key, ...optionProps } = props0;
|
|
10974
|
-
return
|
|
10074
|
+
return jsx(Typography, { component: "li", ...optionProps, noWrap: true, style: inlineStyle, children: getItemLabel(option) }, key);
|
|
10975
10075
|
}
|
|
10976
10076
|
function useResetCache(itemCount) {
|
|
10977
10077
|
const ref = useRef(null);
|
|
@@ -10987,7 +10087,7 @@ React__default.forwardRef((props, ref) => {
|
|
|
10987
10087
|
const items = children;
|
|
10988
10088
|
const itemCount = items.length;
|
|
10989
10089
|
const gridRef = useResetCache(itemCount);
|
|
10990
|
-
return
|
|
10090
|
+
return jsx("div", { ref, children: jsx(OuterElementContext.Provider, { value: other, children: 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 }) }) });
|
|
10991
10091
|
});
|
|
10992
10092
|
function ok$1() {
|
|
10993
10093
|
}
|
|
@@ -12356,6 +11456,7 @@ function requireCjs() {
|
|
|
12356
11456
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
12357
11457
|
};
|
|
12358
11458
|
Object.defineProperty(cjs, "__esModule", { value: true });
|
|
11459
|
+
cjs.default = StyleToObject2;
|
|
12359
11460
|
var inline_style_parser_1 = __importDefault(requireInlineStyleParser());
|
|
12360
11461
|
function StyleToObject2(style2, iterator) {
|
|
12361
11462
|
var styleObject = null;
|
|
@@ -12378,7 +11479,6 @@ function requireCjs() {
|
|
|
12378
11479
|
});
|
|
12379
11480
|
return styleObject;
|
|
12380
11481
|
}
|
|
12381
|
-
cjs.default = StyleToObject2;
|
|
12382
11482
|
return cjs;
|
|
12383
11483
|
}
|
|
12384
11484
|
var cjsExports = requireCjs();
|
|
@@ -12720,11 +11820,11 @@ function addChildren(props, children) {
|
|
|
12720
11820
|
}
|
|
12721
11821
|
}
|
|
12722
11822
|
}
|
|
12723
|
-
function productionCreate(_,
|
|
11823
|
+
function productionCreate(_, jsx2, jsxs2) {
|
|
12724
11824
|
return create2;
|
|
12725
11825
|
function create2(_2, type, props, key) {
|
|
12726
11826
|
const isStaticChildren = Array.isArray(props.children);
|
|
12727
|
-
const fn = isStaticChildren ?
|
|
11827
|
+
const fn = isStaticChildren ? jsxs2 : jsx2;
|
|
12728
11828
|
return key ? fn(type, props, key) : fn(type, props);
|
|
12729
11829
|
}
|
|
12730
11830
|
}
|
|
@@ -18646,7 +17746,7 @@ function visit(tree, testOrVisitor, visitorOrReverse, maybeReverse) {
|
|
|
18646
17746
|
let reverse;
|
|
18647
17747
|
let test;
|
|
18648
17748
|
let visitor;
|
|
18649
|
-
if (typeof testOrVisitor === "function" &&
|
|
17749
|
+
if (typeof testOrVisitor === "function" && typeof visitorOrReverse !== "function") {
|
|
18650
17750
|
test = void 0;
|
|
18651
17751
|
visitor = testOrVisitor;
|
|
18652
17752
|
reverse = visitorOrReverse;
|
|
@@ -20463,11 +19563,11 @@ function Markdown(options) {
|
|
|
20463
19563
|
}
|
|
20464
19564
|
visit(hastTree, transform);
|
|
20465
19565
|
return toJsxRuntime(hastTree, {
|
|
20466
|
-
Fragment
|
|
19566
|
+
Fragment,
|
|
20467
19567
|
components,
|
|
20468
19568
|
ignoreInvalidStyle: true,
|
|
20469
|
-
jsx
|
|
20470
|
-
jsxs
|
|
19569
|
+
jsx,
|
|
19570
|
+
jsxs,
|
|
20471
19571
|
passKeys: true,
|
|
20472
19572
|
passNode: true
|
|
20473
19573
|
});
|