@vitessce/tooltip 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 +109 -1031
- package/dist-tsc/Tooltip.d.ts +1 -1
- package/dist-tsc/Tooltip.d.ts.map +1 -1
- package/dist-tsc/Tooltip2D.d.ts +1 -1
- package/dist-tsc/Tooltip2D.d.ts.map +1 -1
- package/dist-tsc/TooltipContent.d.ts +1 -1
- package/dist-tsc/TooltipContent.d.ts.map +1 -1
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import React__default, { useContext, forwardRef, useRef, useMemo, createContext, createElement, PureComponent, useEffect, useState } from "react";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
4
|
import * as ReactDOM from "react-dom";
|
|
4
5
|
import { useVitessceContainer } from "@vitessce/vit-s";
|
|
5
6
|
function sheetForTag(tag) {
|
|
@@ -790,14 +791,14 @@ var createCache = function createCache2(options) {
|
|
|
790
791
|
cache.sheet.hydrate(nodesToHydrate);
|
|
791
792
|
return cache;
|
|
792
793
|
};
|
|
793
|
-
function _extends$
|
|
794
|
-
return _extends$
|
|
794
|
+
function _extends$1() {
|
|
795
|
+
return _extends$1 = Object.assign ? Object.assign.bind() : function(n) {
|
|
795
796
|
for (var e = 1; e < arguments.length; e++) {
|
|
796
797
|
var t = arguments[e];
|
|
797
798
|
for (var r2 in t) ({}).hasOwnProperty.call(t, r2) && (n[r2] = t[r2]);
|
|
798
799
|
}
|
|
799
800
|
return n;
|
|
800
|
-
}, _extends$
|
|
801
|
+
}, _extends$1.apply(null, arguments);
|
|
801
802
|
}
|
|
802
803
|
function getDefaultExportFromCjs(x) {
|
|
803
804
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
@@ -2115,7 +2116,7 @@ var createStyled$1 = function createStyled(tag, options) {
|
|
|
2115
2116
|
}
|
|
2116
2117
|
});
|
|
2117
2118
|
Styled.withComponent = function(nextTag, nextOptions) {
|
|
2118
|
-
var newStyled2 = createStyled(nextTag, _extends$
|
|
2119
|
+
var newStyled2 = createStyled(nextTag, _extends$1({}, options, nextOptions, {
|
|
2119
2120
|
shouldForwardProp: composeShouldForwardProps(Styled, nextOptions, true)
|
|
2120
2121
|
}));
|
|
2121
2122
|
return newStyled2.apply(void 0, styles);
|
|
@@ -2876,903 +2877,6 @@ function requirePropTypes() {
|
|
|
2876
2877
|
}
|
|
2877
2878
|
var propTypesExports = /* @__PURE__ */ requirePropTypes();
|
|
2878
2879
|
const PropTypes = /* @__PURE__ */ getDefaultExportFromCjs(propTypesExports);
|
|
2879
|
-
var jsxRuntime = { exports: {} };
|
|
2880
|
-
var reactJsxRuntime_development = {};
|
|
2881
|
-
var hasRequiredReactJsxRuntime_development;
|
|
2882
|
-
function requireReactJsxRuntime_development() {
|
|
2883
|
-
if (hasRequiredReactJsxRuntime_development) return reactJsxRuntime_development;
|
|
2884
|
-
hasRequiredReactJsxRuntime_development = 1;
|
|
2885
|
-
/**
|
|
2886
|
-
* @license React
|
|
2887
|
-
* react-jsx-runtime.development.js
|
|
2888
|
-
*
|
|
2889
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
2890
|
-
*
|
|
2891
|
-
* This source code is licensed under the MIT license found in the
|
|
2892
|
-
* LICENSE file in the root directory of this source tree.
|
|
2893
|
-
*/
|
|
2894
|
-
{
|
|
2895
|
-
(function() {
|
|
2896
|
-
var React2 = React__default;
|
|
2897
|
-
var REACT_ELEMENT_TYPE = Symbol.for("react.element");
|
|
2898
|
-
var REACT_PORTAL_TYPE = Symbol.for("react.portal");
|
|
2899
|
-
var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
|
|
2900
|
-
var REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode");
|
|
2901
|
-
var REACT_PROFILER_TYPE = Symbol.for("react.profiler");
|
|
2902
|
-
var REACT_PROVIDER_TYPE = Symbol.for("react.provider");
|
|
2903
|
-
var REACT_CONTEXT_TYPE = Symbol.for("react.context");
|
|
2904
|
-
var REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref");
|
|
2905
|
-
var REACT_SUSPENSE_TYPE = Symbol.for("react.suspense");
|
|
2906
|
-
var REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list");
|
|
2907
|
-
var REACT_MEMO_TYPE = Symbol.for("react.memo");
|
|
2908
|
-
var REACT_LAZY_TYPE = Symbol.for("react.lazy");
|
|
2909
|
-
var REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen");
|
|
2910
|
-
var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
|
|
2911
|
-
var FAUX_ITERATOR_SYMBOL = "@@iterator";
|
|
2912
|
-
function getIteratorFn(maybeIterable) {
|
|
2913
|
-
if (maybeIterable === null || typeof maybeIterable !== "object") {
|
|
2914
|
-
return null;
|
|
2915
|
-
}
|
|
2916
|
-
var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
|
|
2917
|
-
if (typeof maybeIterator === "function") {
|
|
2918
|
-
return maybeIterator;
|
|
2919
|
-
}
|
|
2920
|
-
return null;
|
|
2921
|
-
}
|
|
2922
|
-
var ReactSharedInternals = React2.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
2923
|
-
function error(format) {
|
|
2924
|
-
{
|
|
2925
|
-
{
|
|
2926
|
-
for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
|
2927
|
-
args[_key2 - 1] = arguments[_key2];
|
|
2928
|
-
}
|
|
2929
|
-
printWarning("error", format, args);
|
|
2930
|
-
}
|
|
2931
|
-
}
|
|
2932
|
-
}
|
|
2933
|
-
function printWarning(level, format, args) {
|
|
2934
|
-
{
|
|
2935
|
-
var ReactDebugCurrentFrame2 = ReactSharedInternals.ReactDebugCurrentFrame;
|
|
2936
|
-
var stack = ReactDebugCurrentFrame2.getStackAddendum();
|
|
2937
|
-
if (stack !== "") {
|
|
2938
|
-
format += "%s";
|
|
2939
|
-
args = args.concat([stack]);
|
|
2940
|
-
}
|
|
2941
|
-
var argsWithFormat = args.map(function(item) {
|
|
2942
|
-
return String(item);
|
|
2943
|
-
});
|
|
2944
|
-
argsWithFormat.unshift("Warning: " + format);
|
|
2945
|
-
Function.prototype.apply.call(console[level], console, argsWithFormat);
|
|
2946
|
-
}
|
|
2947
|
-
}
|
|
2948
|
-
var enableScopeAPI = false;
|
|
2949
|
-
var enableCacheElement = false;
|
|
2950
|
-
var enableTransitionTracing = false;
|
|
2951
|
-
var enableLegacyHidden = false;
|
|
2952
|
-
var enableDebugTracing = false;
|
|
2953
|
-
var REACT_MODULE_REFERENCE;
|
|
2954
|
-
{
|
|
2955
|
-
REACT_MODULE_REFERENCE = Symbol.for("react.module.reference");
|
|
2956
|
-
}
|
|
2957
|
-
function isValidElementType(type) {
|
|
2958
|
-
if (typeof type === "string" || typeof type === "function") {
|
|
2959
|
-
return true;
|
|
2960
|
-
}
|
|
2961
|
-
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) {
|
|
2962
|
-
return true;
|
|
2963
|
-
}
|
|
2964
|
-
if (typeof type === "object" && type !== null) {
|
|
2965
|
-
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
|
|
2966
|
-
// types supported by any Flight configuration anywhere since
|
|
2967
|
-
// we don't know which Flight build this will end up being used
|
|
2968
|
-
// with.
|
|
2969
|
-
type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== void 0) {
|
|
2970
|
-
return true;
|
|
2971
|
-
}
|
|
2972
|
-
}
|
|
2973
|
-
return false;
|
|
2974
|
-
}
|
|
2975
|
-
function getWrappedName2(outerType, innerType, wrapperName) {
|
|
2976
|
-
var displayName = outerType.displayName;
|
|
2977
|
-
if (displayName) {
|
|
2978
|
-
return displayName;
|
|
2979
|
-
}
|
|
2980
|
-
var functionName = innerType.displayName || innerType.name || "";
|
|
2981
|
-
return functionName !== "" ? wrapperName + "(" + functionName + ")" : wrapperName;
|
|
2982
|
-
}
|
|
2983
|
-
function getContextName(type) {
|
|
2984
|
-
return type.displayName || "Context";
|
|
2985
|
-
}
|
|
2986
|
-
function getComponentNameFromType(type) {
|
|
2987
|
-
if (type == null) {
|
|
2988
|
-
return null;
|
|
2989
|
-
}
|
|
2990
|
-
{
|
|
2991
|
-
if (typeof type.tag === "number") {
|
|
2992
|
-
error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.");
|
|
2993
|
-
}
|
|
2994
|
-
}
|
|
2995
|
-
if (typeof type === "function") {
|
|
2996
|
-
return type.displayName || type.name || null;
|
|
2997
|
-
}
|
|
2998
|
-
if (typeof type === "string") {
|
|
2999
|
-
return type;
|
|
3000
|
-
}
|
|
3001
|
-
switch (type) {
|
|
3002
|
-
case REACT_FRAGMENT_TYPE:
|
|
3003
|
-
return "Fragment";
|
|
3004
|
-
case REACT_PORTAL_TYPE:
|
|
3005
|
-
return "Portal";
|
|
3006
|
-
case REACT_PROFILER_TYPE:
|
|
3007
|
-
return "Profiler";
|
|
3008
|
-
case REACT_STRICT_MODE_TYPE:
|
|
3009
|
-
return "StrictMode";
|
|
3010
|
-
case REACT_SUSPENSE_TYPE:
|
|
3011
|
-
return "Suspense";
|
|
3012
|
-
case REACT_SUSPENSE_LIST_TYPE:
|
|
3013
|
-
return "SuspenseList";
|
|
3014
|
-
}
|
|
3015
|
-
if (typeof type === "object") {
|
|
3016
|
-
switch (type.$$typeof) {
|
|
3017
|
-
case REACT_CONTEXT_TYPE:
|
|
3018
|
-
var context = type;
|
|
3019
|
-
return getContextName(context) + ".Consumer";
|
|
3020
|
-
case REACT_PROVIDER_TYPE:
|
|
3021
|
-
var provider = type;
|
|
3022
|
-
return getContextName(provider._context) + ".Provider";
|
|
3023
|
-
case REACT_FORWARD_REF_TYPE:
|
|
3024
|
-
return getWrappedName2(type, type.render, "ForwardRef");
|
|
3025
|
-
case REACT_MEMO_TYPE:
|
|
3026
|
-
var outerName = type.displayName || null;
|
|
3027
|
-
if (outerName !== null) {
|
|
3028
|
-
return outerName;
|
|
3029
|
-
}
|
|
3030
|
-
return getComponentNameFromType(type.type) || "Memo";
|
|
3031
|
-
case REACT_LAZY_TYPE: {
|
|
3032
|
-
var lazyComponent = type;
|
|
3033
|
-
var payload = lazyComponent._payload;
|
|
3034
|
-
var init = lazyComponent._init;
|
|
3035
|
-
try {
|
|
3036
|
-
return getComponentNameFromType(init(payload));
|
|
3037
|
-
} catch (x) {
|
|
3038
|
-
return null;
|
|
3039
|
-
}
|
|
3040
|
-
}
|
|
3041
|
-
}
|
|
3042
|
-
}
|
|
3043
|
-
return null;
|
|
3044
|
-
}
|
|
3045
|
-
var assign2 = Object.assign;
|
|
3046
|
-
var disabledDepth = 0;
|
|
3047
|
-
var prevLog;
|
|
3048
|
-
var prevInfo;
|
|
3049
|
-
var prevWarn;
|
|
3050
|
-
var prevError;
|
|
3051
|
-
var prevGroup;
|
|
3052
|
-
var prevGroupCollapsed;
|
|
3053
|
-
var prevGroupEnd;
|
|
3054
|
-
function disabledLog() {
|
|
3055
|
-
}
|
|
3056
|
-
disabledLog.__reactDisabledLog = true;
|
|
3057
|
-
function disableLogs() {
|
|
3058
|
-
{
|
|
3059
|
-
if (disabledDepth === 0) {
|
|
3060
|
-
prevLog = console.log;
|
|
3061
|
-
prevInfo = console.info;
|
|
3062
|
-
prevWarn = console.warn;
|
|
3063
|
-
prevError = console.error;
|
|
3064
|
-
prevGroup = console.group;
|
|
3065
|
-
prevGroupCollapsed = console.groupCollapsed;
|
|
3066
|
-
prevGroupEnd = console.groupEnd;
|
|
3067
|
-
var props = {
|
|
3068
|
-
configurable: true,
|
|
3069
|
-
enumerable: true,
|
|
3070
|
-
value: disabledLog,
|
|
3071
|
-
writable: true
|
|
3072
|
-
};
|
|
3073
|
-
Object.defineProperties(console, {
|
|
3074
|
-
info: props,
|
|
3075
|
-
log: props,
|
|
3076
|
-
warn: props,
|
|
3077
|
-
error: props,
|
|
3078
|
-
group: props,
|
|
3079
|
-
groupCollapsed: props,
|
|
3080
|
-
groupEnd: props
|
|
3081
|
-
});
|
|
3082
|
-
}
|
|
3083
|
-
disabledDepth++;
|
|
3084
|
-
}
|
|
3085
|
-
}
|
|
3086
|
-
function reenableLogs() {
|
|
3087
|
-
{
|
|
3088
|
-
disabledDepth--;
|
|
3089
|
-
if (disabledDepth === 0) {
|
|
3090
|
-
var props = {
|
|
3091
|
-
configurable: true,
|
|
3092
|
-
enumerable: true,
|
|
3093
|
-
writable: true
|
|
3094
|
-
};
|
|
3095
|
-
Object.defineProperties(console, {
|
|
3096
|
-
log: assign2({}, props, {
|
|
3097
|
-
value: prevLog
|
|
3098
|
-
}),
|
|
3099
|
-
info: assign2({}, props, {
|
|
3100
|
-
value: prevInfo
|
|
3101
|
-
}),
|
|
3102
|
-
warn: assign2({}, props, {
|
|
3103
|
-
value: prevWarn
|
|
3104
|
-
}),
|
|
3105
|
-
error: assign2({}, props, {
|
|
3106
|
-
value: prevError
|
|
3107
|
-
}),
|
|
3108
|
-
group: assign2({}, props, {
|
|
3109
|
-
value: prevGroup
|
|
3110
|
-
}),
|
|
3111
|
-
groupCollapsed: assign2({}, props, {
|
|
3112
|
-
value: prevGroupCollapsed
|
|
3113
|
-
}),
|
|
3114
|
-
groupEnd: assign2({}, props, {
|
|
3115
|
-
value: prevGroupEnd
|
|
3116
|
-
})
|
|
3117
|
-
});
|
|
3118
|
-
}
|
|
3119
|
-
if (disabledDepth < 0) {
|
|
3120
|
-
error("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
3121
|
-
}
|
|
3122
|
-
}
|
|
3123
|
-
}
|
|
3124
|
-
var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;
|
|
3125
|
-
var prefix2;
|
|
3126
|
-
function describeBuiltInComponentFrame(name, source, ownerFn) {
|
|
3127
|
-
{
|
|
3128
|
-
if (prefix2 === void 0) {
|
|
3129
|
-
try {
|
|
3130
|
-
throw Error();
|
|
3131
|
-
} catch (x) {
|
|
3132
|
-
var match2 = x.stack.trim().match(/\n( *(at )?)/);
|
|
3133
|
-
prefix2 = match2 && match2[1] || "";
|
|
3134
|
-
}
|
|
3135
|
-
}
|
|
3136
|
-
return "\n" + prefix2 + name;
|
|
3137
|
-
}
|
|
3138
|
-
}
|
|
3139
|
-
var reentry = false;
|
|
3140
|
-
var componentFrameCache;
|
|
3141
|
-
{
|
|
3142
|
-
var PossiblyWeakMap = typeof WeakMap === "function" ? WeakMap : Map;
|
|
3143
|
-
componentFrameCache = new PossiblyWeakMap();
|
|
3144
|
-
}
|
|
3145
|
-
function describeNativeComponentFrame(fn, construct) {
|
|
3146
|
-
if (!fn || reentry) {
|
|
3147
|
-
return "";
|
|
3148
|
-
}
|
|
3149
|
-
{
|
|
3150
|
-
var frame = componentFrameCache.get(fn);
|
|
3151
|
-
if (frame !== void 0) {
|
|
3152
|
-
return frame;
|
|
3153
|
-
}
|
|
3154
|
-
}
|
|
3155
|
-
var control;
|
|
3156
|
-
reentry = true;
|
|
3157
|
-
var previousPrepareStackTrace = Error.prepareStackTrace;
|
|
3158
|
-
Error.prepareStackTrace = void 0;
|
|
3159
|
-
var previousDispatcher;
|
|
3160
|
-
{
|
|
3161
|
-
previousDispatcher = ReactCurrentDispatcher.current;
|
|
3162
|
-
ReactCurrentDispatcher.current = null;
|
|
3163
|
-
disableLogs();
|
|
3164
|
-
}
|
|
3165
|
-
try {
|
|
3166
|
-
if (construct) {
|
|
3167
|
-
var Fake = function() {
|
|
3168
|
-
throw Error();
|
|
3169
|
-
};
|
|
3170
|
-
Object.defineProperty(Fake.prototype, "props", {
|
|
3171
|
-
set: function() {
|
|
3172
|
-
throw Error();
|
|
3173
|
-
}
|
|
3174
|
-
});
|
|
3175
|
-
if (typeof Reflect === "object" && Reflect.construct) {
|
|
3176
|
-
try {
|
|
3177
|
-
Reflect.construct(Fake, []);
|
|
3178
|
-
} catch (x) {
|
|
3179
|
-
control = x;
|
|
3180
|
-
}
|
|
3181
|
-
Reflect.construct(fn, [], Fake);
|
|
3182
|
-
} else {
|
|
3183
|
-
try {
|
|
3184
|
-
Fake.call();
|
|
3185
|
-
} catch (x) {
|
|
3186
|
-
control = x;
|
|
3187
|
-
}
|
|
3188
|
-
fn.call(Fake.prototype);
|
|
3189
|
-
}
|
|
3190
|
-
} else {
|
|
3191
|
-
try {
|
|
3192
|
-
throw Error();
|
|
3193
|
-
} catch (x) {
|
|
3194
|
-
control = x;
|
|
3195
|
-
}
|
|
3196
|
-
fn();
|
|
3197
|
-
}
|
|
3198
|
-
} catch (sample) {
|
|
3199
|
-
if (sample && control && typeof sample.stack === "string") {
|
|
3200
|
-
var sampleLines = sample.stack.split("\n");
|
|
3201
|
-
var controlLines = control.stack.split("\n");
|
|
3202
|
-
var s = sampleLines.length - 1;
|
|
3203
|
-
var c = controlLines.length - 1;
|
|
3204
|
-
while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {
|
|
3205
|
-
c--;
|
|
3206
|
-
}
|
|
3207
|
-
for (; s >= 1 && c >= 0; s--, c--) {
|
|
3208
|
-
if (sampleLines[s] !== controlLines[c]) {
|
|
3209
|
-
if (s !== 1 || c !== 1) {
|
|
3210
|
-
do {
|
|
3211
|
-
s--;
|
|
3212
|
-
c--;
|
|
3213
|
-
if (c < 0 || sampleLines[s] !== controlLines[c]) {
|
|
3214
|
-
var _frame = "\n" + sampleLines[s].replace(" at new ", " at ");
|
|
3215
|
-
if (fn.displayName && _frame.includes("<anonymous>")) {
|
|
3216
|
-
_frame = _frame.replace("<anonymous>", fn.displayName);
|
|
3217
|
-
}
|
|
3218
|
-
{
|
|
3219
|
-
if (typeof fn === "function") {
|
|
3220
|
-
componentFrameCache.set(fn, _frame);
|
|
3221
|
-
}
|
|
3222
|
-
}
|
|
3223
|
-
return _frame;
|
|
3224
|
-
}
|
|
3225
|
-
} while (s >= 1 && c >= 0);
|
|
3226
|
-
}
|
|
3227
|
-
break;
|
|
3228
|
-
}
|
|
3229
|
-
}
|
|
3230
|
-
}
|
|
3231
|
-
} finally {
|
|
3232
|
-
reentry = false;
|
|
3233
|
-
{
|
|
3234
|
-
ReactCurrentDispatcher.current = previousDispatcher;
|
|
3235
|
-
reenableLogs();
|
|
3236
|
-
}
|
|
3237
|
-
Error.prepareStackTrace = previousPrepareStackTrace;
|
|
3238
|
-
}
|
|
3239
|
-
var name = fn ? fn.displayName || fn.name : "";
|
|
3240
|
-
var syntheticFrame = name ? describeBuiltInComponentFrame(name) : "";
|
|
3241
|
-
{
|
|
3242
|
-
if (typeof fn === "function") {
|
|
3243
|
-
componentFrameCache.set(fn, syntheticFrame);
|
|
3244
|
-
}
|
|
3245
|
-
}
|
|
3246
|
-
return syntheticFrame;
|
|
3247
|
-
}
|
|
3248
|
-
function describeFunctionComponentFrame(fn, source, ownerFn) {
|
|
3249
|
-
{
|
|
3250
|
-
return describeNativeComponentFrame(fn, false);
|
|
3251
|
-
}
|
|
3252
|
-
}
|
|
3253
|
-
function shouldConstruct(Component) {
|
|
3254
|
-
var prototype = Component.prototype;
|
|
3255
|
-
return !!(prototype && prototype.isReactComponent);
|
|
3256
|
-
}
|
|
3257
|
-
function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {
|
|
3258
|
-
if (type == null) {
|
|
3259
|
-
return "";
|
|
3260
|
-
}
|
|
3261
|
-
if (typeof type === "function") {
|
|
3262
|
-
{
|
|
3263
|
-
return describeNativeComponentFrame(type, shouldConstruct(type));
|
|
3264
|
-
}
|
|
3265
|
-
}
|
|
3266
|
-
if (typeof type === "string") {
|
|
3267
|
-
return describeBuiltInComponentFrame(type);
|
|
3268
|
-
}
|
|
3269
|
-
switch (type) {
|
|
3270
|
-
case REACT_SUSPENSE_TYPE:
|
|
3271
|
-
return describeBuiltInComponentFrame("Suspense");
|
|
3272
|
-
case REACT_SUSPENSE_LIST_TYPE:
|
|
3273
|
-
return describeBuiltInComponentFrame("SuspenseList");
|
|
3274
|
-
}
|
|
3275
|
-
if (typeof type === "object") {
|
|
3276
|
-
switch (type.$$typeof) {
|
|
3277
|
-
case REACT_FORWARD_REF_TYPE:
|
|
3278
|
-
return describeFunctionComponentFrame(type.render);
|
|
3279
|
-
case REACT_MEMO_TYPE:
|
|
3280
|
-
return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);
|
|
3281
|
-
case REACT_LAZY_TYPE: {
|
|
3282
|
-
var lazyComponent = type;
|
|
3283
|
-
var payload = lazyComponent._payload;
|
|
3284
|
-
var init = lazyComponent._init;
|
|
3285
|
-
try {
|
|
3286
|
-
return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);
|
|
3287
|
-
} catch (x) {
|
|
3288
|
-
}
|
|
3289
|
-
}
|
|
3290
|
-
}
|
|
3291
|
-
}
|
|
3292
|
-
return "";
|
|
3293
|
-
}
|
|
3294
|
-
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
3295
|
-
var loggedTypeFailures = {};
|
|
3296
|
-
var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
|
|
3297
|
-
function setCurrentlyValidatingElement(element) {
|
|
3298
|
-
{
|
|
3299
|
-
if (element) {
|
|
3300
|
-
var owner = element._owner;
|
|
3301
|
-
var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
|
|
3302
|
-
ReactDebugCurrentFrame.setExtraStackFrame(stack);
|
|
3303
|
-
} else {
|
|
3304
|
-
ReactDebugCurrentFrame.setExtraStackFrame(null);
|
|
3305
|
-
}
|
|
3306
|
-
}
|
|
3307
|
-
}
|
|
3308
|
-
function checkPropTypes(typeSpecs, values2, location, componentName, element) {
|
|
3309
|
-
{
|
|
3310
|
-
var has2 = Function.call.bind(hasOwnProperty);
|
|
3311
|
-
for (var typeSpecName in typeSpecs) {
|
|
3312
|
-
if (has2(typeSpecs, typeSpecName)) {
|
|
3313
|
-
var error$1 = void 0;
|
|
3314
|
-
try {
|
|
3315
|
-
if (typeof typeSpecs[typeSpecName] !== "function") {
|
|
3316
|
-
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`.");
|
|
3317
|
-
err.name = "Invariant Violation";
|
|
3318
|
-
throw err;
|
|
3319
|
-
}
|
|
3320
|
-
error$1 = typeSpecs[typeSpecName](values2, typeSpecName, componentName, location, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
3321
|
-
} catch (ex) {
|
|
3322
|
-
error$1 = ex;
|
|
3323
|
-
}
|
|
3324
|
-
if (error$1 && !(error$1 instanceof Error)) {
|
|
3325
|
-
setCurrentlyValidatingElement(element);
|
|
3326
|
-
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);
|
|
3327
|
-
setCurrentlyValidatingElement(null);
|
|
3328
|
-
}
|
|
3329
|
-
if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {
|
|
3330
|
-
loggedTypeFailures[error$1.message] = true;
|
|
3331
|
-
setCurrentlyValidatingElement(element);
|
|
3332
|
-
error("Failed %s type: %s", location, error$1.message);
|
|
3333
|
-
setCurrentlyValidatingElement(null);
|
|
3334
|
-
}
|
|
3335
|
-
}
|
|
3336
|
-
}
|
|
3337
|
-
}
|
|
3338
|
-
}
|
|
3339
|
-
var isArrayImpl = Array.isArray;
|
|
3340
|
-
function isArray(a) {
|
|
3341
|
-
return isArrayImpl(a);
|
|
3342
|
-
}
|
|
3343
|
-
function typeName(value) {
|
|
3344
|
-
{
|
|
3345
|
-
var hasToStringTag = typeof Symbol === "function" && Symbol.toStringTag;
|
|
3346
|
-
var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
|
|
3347
|
-
return type;
|
|
3348
|
-
}
|
|
3349
|
-
}
|
|
3350
|
-
function willCoercionThrow(value) {
|
|
3351
|
-
{
|
|
3352
|
-
try {
|
|
3353
|
-
testStringCoercion(value);
|
|
3354
|
-
return false;
|
|
3355
|
-
} catch (e) {
|
|
3356
|
-
return true;
|
|
3357
|
-
}
|
|
3358
|
-
}
|
|
3359
|
-
}
|
|
3360
|
-
function testStringCoercion(value) {
|
|
3361
|
-
return "" + value;
|
|
3362
|
-
}
|
|
3363
|
-
function checkKeyStringCoercion(value) {
|
|
3364
|
-
{
|
|
3365
|
-
if (willCoercionThrow(value)) {
|
|
3366
|
-
error("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", typeName(value));
|
|
3367
|
-
return testStringCoercion(value);
|
|
3368
|
-
}
|
|
3369
|
-
}
|
|
3370
|
-
}
|
|
3371
|
-
var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;
|
|
3372
|
-
var RESERVED_PROPS = {
|
|
3373
|
-
key: true,
|
|
3374
|
-
ref: true,
|
|
3375
|
-
__self: true,
|
|
3376
|
-
__source: true
|
|
3377
|
-
};
|
|
3378
|
-
var specialPropKeyWarningShown;
|
|
3379
|
-
var specialPropRefWarningShown;
|
|
3380
|
-
function hasValidRef(config) {
|
|
3381
|
-
{
|
|
3382
|
-
if (hasOwnProperty.call(config, "ref")) {
|
|
3383
|
-
var getter = Object.getOwnPropertyDescriptor(config, "ref").get;
|
|
3384
|
-
if (getter && getter.isReactWarning) {
|
|
3385
|
-
return false;
|
|
3386
|
-
}
|
|
3387
|
-
}
|
|
3388
|
-
}
|
|
3389
|
-
return config.ref !== void 0;
|
|
3390
|
-
}
|
|
3391
|
-
function hasValidKey(config) {
|
|
3392
|
-
{
|
|
3393
|
-
if (hasOwnProperty.call(config, "key")) {
|
|
3394
|
-
var getter = Object.getOwnPropertyDescriptor(config, "key").get;
|
|
3395
|
-
if (getter && getter.isReactWarning) {
|
|
3396
|
-
return false;
|
|
3397
|
-
}
|
|
3398
|
-
}
|
|
3399
|
-
}
|
|
3400
|
-
return config.key !== void 0;
|
|
3401
|
-
}
|
|
3402
|
-
function warnIfStringRefCannotBeAutoConverted(config, self) {
|
|
3403
|
-
{
|
|
3404
|
-
if (typeof config.ref === "string" && ReactCurrentOwner.current && self) ;
|
|
3405
|
-
}
|
|
3406
|
-
}
|
|
3407
|
-
function defineKeyPropWarningGetter(props, displayName) {
|
|
3408
|
-
{
|
|
3409
|
-
var warnAboutAccessingKey = function() {
|
|
3410
|
-
if (!specialPropKeyWarningShown) {
|
|
3411
|
-
specialPropKeyWarningShown = true;
|
|
3412
|
-
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);
|
|
3413
|
-
}
|
|
3414
|
-
};
|
|
3415
|
-
warnAboutAccessingKey.isReactWarning = true;
|
|
3416
|
-
Object.defineProperty(props, "key", {
|
|
3417
|
-
get: warnAboutAccessingKey,
|
|
3418
|
-
configurable: true
|
|
3419
|
-
});
|
|
3420
|
-
}
|
|
3421
|
-
}
|
|
3422
|
-
function defineRefPropWarningGetter(props, displayName) {
|
|
3423
|
-
{
|
|
3424
|
-
var warnAboutAccessingRef = function() {
|
|
3425
|
-
if (!specialPropRefWarningShown) {
|
|
3426
|
-
specialPropRefWarningShown = true;
|
|
3427
|
-
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);
|
|
3428
|
-
}
|
|
3429
|
-
};
|
|
3430
|
-
warnAboutAccessingRef.isReactWarning = true;
|
|
3431
|
-
Object.defineProperty(props, "ref", {
|
|
3432
|
-
get: warnAboutAccessingRef,
|
|
3433
|
-
configurable: true
|
|
3434
|
-
});
|
|
3435
|
-
}
|
|
3436
|
-
}
|
|
3437
|
-
var ReactElement = function(type, key, ref, self, source, owner, props) {
|
|
3438
|
-
var element = {
|
|
3439
|
-
// This tag allows us to uniquely identify this as a React Element
|
|
3440
|
-
$$typeof: REACT_ELEMENT_TYPE,
|
|
3441
|
-
// Built-in properties that belong on the element
|
|
3442
|
-
type,
|
|
3443
|
-
key,
|
|
3444
|
-
ref,
|
|
3445
|
-
props,
|
|
3446
|
-
// Record the component responsible for creating this element.
|
|
3447
|
-
_owner: owner
|
|
3448
|
-
};
|
|
3449
|
-
{
|
|
3450
|
-
element._store = {};
|
|
3451
|
-
Object.defineProperty(element._store, "validated", {
|
|
3452
|
-
configurable: false,
|
|
3453
|
-
enumerable: false,
|
|
3454
|
-
writable: true,
|
|
3455
|
-
value: false
|
|
3456
|
-
});
|
|
3457
|
-
Object.defineProperty(element, "_self", {
|
|
3458
|
-
configurable: false,
|
|
3459
|
-
enumerable: false,
|
|
3460
|
-
writable: false,
|
|
3461
|
-
value: self
|
|
3462
|
-
});
|
|
3463
|
-
Object.defineProperty(element, "_source", {
|
|
3464
|
-
configurable: false,
|
|
3465
|
-
enumerable: false,
|
|
3466
|
-
writable: false,
|
|
3467
|
-
value: source
|
|
3468
|
-
});
|
|
3469
|
-
if (Object.freeze) {
|
|
3470
|
-
Object.freeze(element.props);
|
|
3471
|
-
Object.freeze(element);
|
|
3472
|
-
}
|
|
3473
|
-
}
|
|
3474
|
-
return element;
|
|
3475
|
-
};
|
|
3476
|
-
function jsxDEV(type, config, maybeKey, source, self) {
|
|
3477
|
-
{
|
|
3478
|
-
var propName;
|
|
3479
|
-
var props = {};
|
|
3480
|
-
var key = null;
|
|
3481
|
-
var ref = null;
|
|
3482
|
-
if (maybeKey !== void 0) {
|
|
3483
|
-
{
|
|
3484
|
-
checkKeyStringCoercion(maybeKey);
|
|
3485
|
-
}
|
|
3486
|
-
key = "" + maybeKey;
|
|
3487
|
-
}
|
|
3488
|
-
if (hasValidKey(config)) {
|
|
3489
|
-
{
|
|
3490
|
-
checkKeyStringCoercion(config.key);
|
|
3491
|
-
}
|
|
3492
|
-
key = "" + config.key;
|
|
3493
|
-
}
|
|
3494
|
-
if (hasValidRef(config)) {
|
|
3495
|
-
ref = config.ref;
|
|
3496
|
-
warnIfStringRefCannotBeAutoConverted(config, self);
|
|
3497
|
-
}
|
|
3498
|
-
for (propName in config) {
|
|
3499
|
-
if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
|
|
3500
|
-
props[propName] = config[propName];
|
|
3501
|
-
}
|
|
3502
|
-
}
|
|
3503
|
-
if (type && type.defaultProps) {
|
|
3504
|
-
var defaultProps = type.defaultProps;
|
|
3505
|
-
for (propName in defaultProps) {
|
|
3506
|
-
if (props[propName] === void 0) {
|
|
3507
|
-
props[propName] = defaultProps[propName];
|
|
3508
|
-
}
|
|
3509
|
-
}
|
|
3510
|
-
}
|
|
3511
|
-
if (key || ref) {
|
|
3512
|
-
var displayName = typeof type === "function" ? type.displayName || type.name || "Unknown" : type;
|
|
3513
|
-
if (key) {
|
|
3514
|
-
defineKeyPropWarningGetter(props, displayName);
|
|
3515
|
-
}
|
|
3516
|
-
if (ref) {
|
|
3517
|
-
defineRefPropWarningGetter(props, displayName);
|
|
3518
|
-
}
|
|
3519
|
-
}
|
|
3520
|
-
return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);
|
|
3521
|
-
}
|
|
3522
|
-
}
|
|
3523
|
-
var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner;
|
|
3524
|
-
var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;
|
|
3525
|
-
function setCurrentlyValidatingElement$1(element) {
|
|
3526
|
-
{
|
|
3527
|
-
if (element) {
|
|
3528
|
-
var owner = element._owner;
|
|
3529
|
-
var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
|
|
3530
|
-
ReactDebugCurrentFrame$1.setExtraStackFrame(stack);
|
|
3531
|
-
} else {
|
|
3532
|
-
ReactDebugCurrentFrame$1.setExtraStackFrame(null);
|
|
3533
|
-
}
|
|
3534
|
-
}
|
|
3535
|
-
}
|
|
3536
|
-
var propTypesMisspellWarningShown;
|
|
3537
|
-
{
|
|
3538
|
-
propTypesMisspellWarningShown = false;
|
|
3539
|
-
}
|
|
3540
|
-
function isValidElement(object) {
|
|
3541
|
-
{
|
|
3542
|
-
return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
3543
|
-
}
|
|
3544
|
-
}
|
|
3545
|
-
function getDeclarationErrorAddendum() {
|
|
3546
|
-
{
|
|
3547
|
-
if (ReactCurrentOwner$1.current) {
|
|
3548
|
-
var name = getComponentNameFromType(ReactCurrentOwner$1.current.type);
|
|
3549
|
-
if (name) {
|
|
3550
|
-
return "\n\nCheck the render method of `" + name + "`.";
|
|
3551
|
-
}
|
|
3552
|
-
}
|
|
3553
|
-
return "";
|
|
3554
|
-
}
|
|
3555
|
-
}
|
|
3556
|
-
function getSourceInfoErrorAddendum(source) {
|
|
3557
|
-
{
|
|
3558
|
-
return "";
|
|
3559
|
-
}
|
|
3560
|
-
}
|
|
3561
|
-
var ownerHasKeyUseWarning = {};
|
|
3562
|
-
function getCurrentComponentErrorInfo(parentType) {
|
|
3563
|
-
{
|
|
3564
|
-
var info = getDeclarationErrorAddendum();
|
|
3565
|
-
if (!info) {
|
|
3566
|
-
var parentName = typeof parentType === "string" ? parentType : parentType.displayName || parentType.name;
|
|
3567
|
-
if (parentName) {
|
|
3568
|
-
info = "\n\nCheck the top-level render call using <" + parentName + ">.";
|
|
3569
|
-
}
|
|
3570
|
-
}
|
|
3571
|
-
return info;
|
|
3572
|
-
}
|
|
3573
|
-
}
|
|
3574
|
-
function validateExplicitKey(element, parentType) {
|
|
3575
|
-
{
|
|
3576
|
-
if (!element._store || element._store.validated || element.key != null) {
|
|
3577
|
-
return;
|
|
3578
|
-
}
|
|
3579
|
-
element._store.validated = true;
|
|
3580
|
-
var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
|
|
3581
|
-
if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
|
|
3582
|
-
return;
|
|
3583
|
-
}
|
|
3584
|
-
ownerHasKeyUseWarning[currentComponentErrorInfo] = true;
|
|
3585
|
-
var childOwner = "";
|
|
3586
|
-
if (element && element._owner && element._owner !== ReactCurrentOwner$1.current) {
|
|
3587
|
-
childOwner = " It was passed a child from " + getComponentNameFromType(element._owner.type) + ".";
|
|
3588
|
-
}
|
|
3589
|
-
setCurrentlyValidatingElement$1(element);
|
|
3590
|
-
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);
|
|
3591
|
-
setCurrentlyValidatingElement$1(null);
|
|
3592
|
-
}
|
|
3593
|
-
}
|
|
3594
|
-
function validateChildKeys(node2, parentType) {
|
|
3595
|
-
{
|
|
3596
|
-
if (typeof node2 !== "object") {
|
|
3597
|
-
return;
|
|
3598
|
-
}
|
|
3599
|
-
if (isArray(node2)) {
|
|
3600
|
-
for (var i = 0; i < node2.length; i++) {
|
|
3601
|
-
var child = node2[i];
|
|
3602
|
-
if (isValidElement(child)) {
|
|
3603
|
-
validateExplicitKey(child, parentType);
|
|
3604
|
-
}
|
|
3605
|
-
}
|
|
3606
|
-
} else if (isValidElement(node2)) {
|
|
3607
|
-
if (node2._store) {
|
|
3608
|
-
node2._store.validated = true;
|
|
3609
|
-
}
|
|
3610
|
-
} else if (node2) {
|
|
3611
|
-
var iteratorFn = getIteratorFn(node2);
|
|
3612
|
-
if (typeof iteratorFn === "function") {
|
|
3613
|
-
if (iteratorFn !== node2.entries) {
|
|
3614
|
-
var iterator = iteratorFn.call(node2);
|
|
3615
|
-
var step;
|
|
3616
|
-
while (!(step = iterator.next()).done) {
|
|
3617
|
-
if (isValidElement(step.value)) {
|
|
3618
|
-
validateExplicitKey(step.value, parentType);
|
|
3619
|
-
}
|
|
3620
|
-
}
|
|
3621
|
-
}
|
|
3622
|
-
}
|
|
3623
|
-
}
|
|
3624
|
-
}
|
|
3625
|
-
}
|
|
3626
|
-
function validatePropTypes(element) {
|
|
3627
|
-
{
|
|
3628
|
-
var type = element.type;
|
|
3629
|
-
if (type === null || type === void 0 || typeof type === "string") {
|
|
3630
|
-
return;
|
|
3631
|
-
}
|
|
3632
|
-
var propTypes2;
|
|
3633
|
-
if (typeof type === "function") {
|
|
3634
|
-
propTypes2 = type.propTypes;
|
|
3635
|
-
} else if (typeof type === "object" && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.
|
|
3636
|
-
// Inner props are checked in the reconciler.
|
|
3637
|
-
type.$$typeof === REACT_MEMO_TYPE)) {
|
|
3638
|
-
propTypes2 = type.propTypes;
|
|
3639
|
-
} else {
|
|
3640
|
-
return;
|
|
3641
|
-
}
|
|
3642
|
-
if (propTypes2) {
|
|
3643
|
-
var name = getComponentNameFromType(type);
|
|
3644
|
-
checkPropTypes(propTypes2, element.props, "prop", name, element);
|
|
3645
|
-
} else if (type.PropTypes !== void 0 && !propTypesMisspellWarningShown) {
|
|
3646
|
-
propTypesMisspellWarningShown = true;
|
|
3647
|
-
var _name = getComponentNameFromType(type);
|
|
3648
|
-
error("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", _name || "Unknown");
|
|
3649
|
-
}
|
|
3650
|
-
if (typeof type.getDefaultProps === "function" && !type.getDefaultProps.isReactClassApproved) {
|
|
3651
|
-
error("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
3652
|
-
}
|
|
3653
|
-
}
|
|
3654
|
-
}
|
|
3655
|
-
function validateFragmentProps(fragment) {
|
|
3656
|
-
{
|
|
3657
|
-
var keys = Object.keys(fragment.props);
|
|
3658
|
-
for (var i = 0; i < keys.length; i++) {
|
|
3659
|
-
var key = keys[i];
|
|
3660
|
-
if (key !== "children" && key !== "key") {
|
|
3661
|
-
setCurrentlyValidatingElement$1(fragment);
|
|
3662
|
-
error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", key);
|
|
3663
|
-
setCurrentlyValidatingElement$1(null);
|
|
3664
|
-
break;
|
|
3665
|
-
}
|
|
3666
|
-
}
|
|
3667
|
-
if (fragment.ref !== null) {
|
|
3668
|
-
setCurrentlyValidatingElement$1(fragment);
|
|
3669
|
-
error("Invalid attribute `ref` supplied to `React.Fragment`.");
|
|
3670
|
-
setCurrentlyValidatingElement$1(null);
|
|
3671
|
-
}
|
|
3672
|
-
}
|
|
3673
|
-
}
|
|
3674
|
-
var didWarnAboutKeySpread = {};
|
|
3675
|
-
function jsxWithValidation(type, props, key, isStaticChildren, source, self) {
|
|
3676
|
-
{
|
|
3677
|
-
var validType = isValidElementType(type);
|
|
3678
|
-
if (!validType) {
|
|
3679
|
-
var info = "";
|
|
3680
|
-
if (type === void 0 || typeof type === "object" && type !== null && Object.keys(type).length === 0) {
|
|
3681
|
-
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.";
|
|
3682
|
-
}
|
|
3683
|
-
var sourceInfo = getSourceInfoErrorAddendum();
|
|
3684
|
-
if (sourceInfo) {
|
|
3685
|
-
info += sourceInfo;
|
|
3686
|
-
} else {
|
|
3687
|
-
info += getDeclarationErrorAddendum();
|
|
3688
|
-
}
|
|
3689
|
-
var typeString;
|
|
3690
|
-
if (type === null) {
|
|
3691
|
-
typeString = "null";
|
|
3692
|
-
} else if (isArray(type)) {
|
|
3693
|
-
typeString = "array";
|
|
3694
|
-
} else if (type !== void 0 && type.$$typeof === REACT_ELEMENT_TYPE) {
|
|
3695
|
-
typeString = "<" + (getComponentNameFromType(type.type) || "Unknown") + " />";
|
|
3696
|
-
info = " Did you accidentally export a JSX literal instead of a component?";
|
|
3697
|
-
} else {
|
|
3698
|
-
typeString = typeof type;
|
|
3699
|
-
}
|
|
3700
|
-
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);
|
|
3701
|
-
}
|
|
3702
|
-
var element = jsxDEV(type, props, key, source, self);
|
|
3703
|
-
if (element == null) {
|
|
3704
|
-
return element;
|
|
3705
|
-
}
|
|
3706
|
-
if (validType) {
|
|
3707
|
-
var children = props.children;
|
|
3708
|
-
if (children !== void 0) {
|
|
3709
|
-
if (isStaticChildren) {
|
|
3710
|
-
if (isArray(children)) {
|
|
3711
|
-
for (var i = 0; i < children.length; i++) {
|
|
3712
|
-
validateChildKeys(children[i], type);
|
|
3713
|
-
}
|
|
3714
|
-
if (Object.freeze) {
|
|
3715
|
-
Object.freeze(children);
|
|
3716
|
-
}
|
|
3717
|
-
} else {
|
|
3718
|
-
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.");
|
|
3719
|
-
}
|
|
3720
|
-
} else {
|
|
3721
|
-
validateChildKeys(children, type);
|
|
3722
|
-
}
|
|
3723
|
-
}
|
|
3724
|
-
}
|
|
3725
|
-
{
|
|
3726
|
-
if (hasOwnProperty.call(props, "key")) {
|
|
3727
|
-
var componentName = getComponentNameFromType(type);
|
|
3728
|
-
var keys = Object.keys(props).filter(function(k) {
|
|
3729
|
-
return k !== "key";
|
|
3730
|
-
});
|
|
3731
|
-
var beforeExample = keys.length > 0 ? "{key: someKey, " + keys.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
3732
|
-
if (!didWarnAboutKeySpread[componentName + beforeExample]) {
|
|
3733
|
-
var afterExample = keys.length > 0 ? "{" + keys.join(": ..., ") + ": ...}" : "{}";
|
|
3734
|
-
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);
|
|
3735
|
-
didWarnAboutKeySpread[componentName + beforeExample] = true;
|
|
3736
|
-
}
|
|
3737
|
-
}
|
|
3738
|
-
}
|
|
3739
|
-
if (type === REACT_FRAGMENT_TYPE) {
|
|
3740
|
-
validateFragmentProps(element);
|
|
3741
|
-
} else {
|
|
3742
|
-
validatePropTypes(element);
|
|
3743
|
-
}
|
|
3744
|
-
return element;
|
|
3745
|
-
}
|
|
3746
|
-
}
|
|
3747
|
-
function jsxWithValidationStatic(type, props, key) {
|
|
3748
|
-
{
|
|
3749
|
-
return jsxWithValidation(type, props, key, true);
|
|
3750
|
-
}
|
|
3751
|
-
}
|
|
3752
|
-
function jsxWithValidationDynamic(type, props, key) {
|
|
3753
|
-
{
|
|
3754
|
-
return jsxWithValidation(type, props, key, false);
|
|
3755
|
-
}
|
|
3756
|
-
}
|
|
3757
|
-
var jsx = jsxWithValidationDynamic;
|
|
3758
|
-
var jsxs = jsxWithValidationStatic;
|
|
3759
|
-
reactJsxRuntime_development.Fragment = REACT_FRAGMENT_TYPE;
|
|
3760
|
-
reactJsxRuntime_development.jsx = jsx;
|
|
3761
|
-
reactJsxRuntime_development.jsxs = jsxs;
|
|
3762
|
-
})();
|
|
3763
|
-
}
|
|
3764
|
-
return reactJsxRuntime_development;
|
|
3765
|
-
}
|
|
3766
|
-
var hasRequiredJsxRuntime;
|
|
3767
|
-
function requireJsxRuntime() {
|
|
3768
|
-
if (hasRequiredJsxRuntime) return jsxRuntime.exports;
|
|
3769
|
-
hasRequiredJsxRuntime = 1;
|
|
3770
|
-
{
|
|
3771
|
-
jsxRuntime.exports = requireReactJsxRuntime_development();
|
|
3772
|
-
}
|
|
3773
|
-
return jsxRuntime.exports;
|
|
3774
|
-
}
|
|
3775
|
-
var jsxRuntimeExports = requireJsxRuntime();
|
|
3776
2880
|
function styled$1(tag, options) {
|
|
3777
2881
|
const stylesFactory = newStyled(tag, options);
|
|
3778
2882
|
{
|
|
@@ -4030,9 +3134,8 @@ function sortContainerQueries(theme, css) {
|
|
|
4030
3134
|
return css;
|
|
4031
3135
|
}
|
|
4032
3136
|
const sorted = Object.keys(css).filter((key) => key.startsWith("@container")).sort((a, b) => {
|
|
4033
|
-
var _a, _b;
|
|
4034
3137
|
const regex = /min-width:\s*([0-9.]+)/;
|
|
4035
|
-
return +(
|
|
3138
|
+
return +(a.match(regex)?.[1] || 0) - +(b.match(regex)?.[1] || 0);
|
|
4036
3139
|
});
|
|
4037
3140
|
if (!sorted.length) {
|
|
4038
3141
|
return css;
|
|
@@ -4160,8 +3263,7 @@ function handleBreakpoints(props, propValue, styleFromPropValue) {
|
|
|
4160
3263
|
return output;
|
|
4161
3264
|
}
|
|
4162
3265
|
function createEmptyBreakpointObject(breakpointsInput = {}) {
|
|
4163
|
-
|
|
4164
|
-
const breakpointsInOrder = (_a = breakpointsInput.keys) == null ? void 0 : _a.reduce((acc, key) => {
|
|
3266
|
+
const breakpointsInOrder = breakpointsInput.keys?.reduce((acc, key) => {
|
|
4165
3267
|
const breakpointStyleKey = breakpointsInput.up(key);
|
|
4166
3268
|
acc[breakpointStyleKey] = {};
|
|
4167
3269
|
return acc;
|
|
@@ -4581,14 +3683,13 @@ const width = style$1({
|
|
|
4581
3683
|
const maxWidth = (props) => {
|
|
4582
3684
|
if (props.maxWidth !== void 0 && props.maxWidth !== null) {
|
|
4583
3685
|
const styleFromPropValue = (propValue) => {
|
|
4584
|
-
|
|
4585
|
-
const breakpoint = ((_c = (_b = (_a = props.theme) == null ? void 0 : _a.breakpoints) == null ? void 0 : _b.values) == null ? void 0 : _c[propValue]) || values[propValue];
|
|
3686
|
+
const breakpoint = props.theme?.breakpoints?.values?.[propValue] || values[propValue];
|
|
4586
3687
|
if (!breakpoint) {
|
|
4587
3688
|
return {
|
|
4588
3689
|
maxWidth: sizingTransform(propValue)
|
|
4589
3690
|
};
|
|
4590
3691
|
}
|
|
4591
|
-
if (
|
|
3692
|
+
if (props.theme?.breakpoints?.unit !== "px") {
|
|
4592
3693
|
return {
|
|
4593
3694
|
maxWidth: `${breakpoint}${props.theme.breakpoints.unit}`
|
|
4594
3695
|
};
|
|
@@ -5029,10 +4130,9 @@ function unstable_createStyleFunctionSx() {
|
|
|
5029
4130
|
const styleFunctionSx = unstable_createStyleFunctionSx();
|
|
5030
4131
|
styleFunctionSx.filterProps = ["sx"];
|
|
5031
4132
|
function applyStyles(key, styles) {
|
|
5032
|
-
var _a;
|
|
5033
4133
|
const theme = this;
|
|
5034
4134
|
if (theme.vars) {
|
|
5035
|
-
if (!
|
|
4135
|
+
if (!theme.colorSchemes?.[key] || typeof theme.getColorSchemeSelector !== "function") {
|
|
5036
4136
|
return {};
|
|
5037
4137
|
}
|
|
5038
4138
|
let selector = theme.getColorSchemeSelector(key);
|
|
@@ -5081,7 +4181,7 @@ function createTheme$1(options = {}, ...args) {
|
|
|
5081
4181
|
muiTheme = args.reduce((acc, argument) => deepmerge(acc, argument), muiTheme);
|
|
5082
4182
|
muiTheme.unstable_sxConfig = {
|
|
5083
4183
|
...defaultSxConfig,
|
|
5084
|
-
...other
|
|
4184
|
+
...other?.unstable_sxConfig
|
|
5085
4185
|
};
|
|
5086
4186
|
muiTheme.unstable_sx = function sx(props) {
|
|
5087
4187
|
return styleFunctionSx({
|
|
@@ -5103,12 +4203,11 @@ function useTheme$1(defaultTheme2 = systemDefaultTheme$1) {
|
|
|
5103
4203
|
return useTheme$2(defaultTheme2);
|
|
5104
4204
|
}
|
|
5105
4205
|
const splitProps = (props) => {
|
|
5106
|
-
var _a;
|
|
5107
4206
|
const result = {
|
|
5108
4207
|
systemProps: {},
|
|
5109
4208
|
otherProps: {}
|
|
5110
4209
|
};
|
|
5111
|
-
const config =
|
|
4210
|
+
const config = props?.theme?.unstable_sxConfig ?? defaultSxConfig;
|
|
5112
4211
|
Object.keys(props).forEach((prop) => {
|
|
5113
4212
|
if (config[prop]) {
|
|
5114
4213
|
result.systemProps[prop] = props[prop];
|
|
@@ -5275,7 +4374,7 @@ function processStyle(props, style2) {
|
|
|
5275
4374
|
if (Array.isArray(resolvedStyle)) {
|
|
5276
4375
|
return resolvedStyle.flatMap((subStyle) => processStyle(props, subStyle));
|
|
5277
4376
|
}
|
|
5278
|
-
if (Array.isArray(resolvedStyle
|
|
4377
|
+
if (Array.isArray(resolvedStyle?.variants)) {
|
|
5279
4378
|
let rootStyle;
|
|
5280
4379
|
if (resolvedStyle.isProcessed) {
|
|
5281
4380
|
rootStyle = resolvedStyle.style;
|
|
@@ -5288,38 +4387,37 @@ function processStyle(props, style2) {
|
|
|
5288
4387
|
}
|
|
5289
4388
|
return processStyleVariants(props, resolvedStyle.variants, [rootStyle]);
|
|
5290
4389
|
}
|
|
5291
|
-
if (resolvedStyle
|
|
4390
|
+
if (resolvedStyle?.isProcessed) {
|
|
5292
4391
|
return resolvedStyle.style;
|
|
5293
4392
|
}
|
|
5294
4393
|
return resolvedStyle;
|
|
5295
4394
|
}
|
|
5296
4395
|
function processStyleVariants(props, variants, results = []) {
|
|
5297
|
-
var _a;
|
|
5298
4396
|
let mergedState;
|
|
5299
4397
|
variantLoop: for (let i = 0; i < variants.length; i += 1) {
|
|
5300
4398
|
const variant = variants[i];
|
|
5301
4399
|
if (typeof variant.props === "function") {
|
|
5302
|
-
mergedState
|
|
4400
|
+
mergedState ??= {
|
|
5303
4401
|
...props,
|
|
5304
4402
|
...props.ownerState,
|
|
5305
4403
|
ownerState: props.ownerState
|
|
5306
|
-
}
|
|
4404
|
+
};
|
|
5307
4405
|
if (!variant.props(mergedState)) {
|
|
5308
4406
|
continue;
|
|
5309
4407
|
}
|
|
5310
4408
|
} else {
|
|
5311
4409
|
for (const key in variant.props) {
|
|
5312
|
-
if (props[key] !== variant.props[key] &&
|
|
4410
|
+
if (props[key] !== variant.props[key] && props.ownerState?.[key] !== variant.props[key]) {
|
|
5313
4411
|
continue variantLoop;
|
|
5314
4412
|
}
|
|
5315
4413
|
}
|
|
5316
4414
|
}
|
|
5317
4415
|
if (typeof variant.style === "function") {
|
|
5318
|
-
mergedState
|
|
4416
|
+
mergedState ??= {
|
|
5319
4417
|
...props,
|
|
5320
4418
|
...props.ownerState,
|
|
5321
4419
|
ownerState: props.ownerState
|
|
5322
|
-
}
|
|
4420
|
+
};
|
|
5323
4421
|
results.push(variant.style(mergedState));
|
|
5324
4422
|
} else {
|
|
5325
4423
|
results.push(variant.style);
|
|
@@ -5392,9 +4490,8 @@ function createStyled2(input = {}) {
|
|
|
5392
4490
|
expressionsHead.push(styleAttachTheme);
|
|
5393
4491
|
if (componentName && overridesResolver) {
|
|
5394
4492
|
expressionsTail.push(function styleThemeOverrides(props) {
|
|
5395
|
-
var _a, _b;
|
|
5396
4493
|
const theme = props.theme;
|
|
5397
|
-
const styleOverrides =
|
|
4494
|
+
const styleOverrides = theme.components?.[componentName]?.styleOverrides;
|
|
5398
4495
|
if (!styleOverrides) {
|
|
5399
4496
|
return null;
|
|
5400
4497
|
}
|
|
@@ -5407,9 +4504,8 @@ function createStyled2(input = {}) {
|
|
|
5407
4504
|
}
|
|
5408
4505
|
if (componentName && !skipVariantsResolver) {
|
|
5409
4506
|
expressionsTail.push(function styleThemeVariants(props) {
|
|
5410
|
-
var _a, _b;
|
|
5411
4507
|
const theme = props.theme;
|
|
5412
|
-
const themeVariants =
|
|
4508
|
+
const themeVariants = theme?.components?.[componentName]?.variants;
|
|
5413
4509
|
if (!themeVariants) {
|
|
5414
4510
|
return null;
|
|
5415
4511
|
}
|
|
@@ -5942,7 +5038,6 @@ function prepareCssVars(theme, parserConfig = {}) {
|
|
|
5942
5038
|
};
|
|
5943
5039
|
}
|
|
5944
5040
|
function defaultGetSelector2(colorScheme, cssObject) {
|
|
5945
|
-
var _a, _b;
|
|
5946
5041
|
let rule = selector;
|
|
5947
5042
|
if (selector === "class") {
|
|
5948
5043
|
rule = ".%s";
|
|
@@ -5950,7 +5045,7 @@ function prepareCssVars(theme, parserConfig = {}) {
|
|
|
5950
5045
|
if (selector === "data") {
|
|
5951
5046
|
rule = "[data-%s]";
|
|
5952
5047
|
}
|
|
5953
|
-
if (
|
|
5048
|
+
if (selector?.startsWith("data-") && !selector.includes("%s")) {
|
|
5954
5049
|
rule = `[${selector}="%s"]`;
|
|
5955
5050
|
}
|
|
5956
5051
|
if (colorScheme) {
|
|
@@ -5958,7 +5053,7 @@ function prepareCssVars(theme, parserConfig = {}) {
|
|
|
5958
5053
|
if (theme.defaultColorScheme === colorScheme) {
|
|
5959
5054
|
return ":root";
|
|
5960
5055
|
}
|
|
5961
|
-
const mode =
|
|
5056
|
+
const mode = colorSchemes[colorScheme]?.palette?.mode || colorScheme;
|
|
5962
5057
|
return {
|
|
5963
5058
|
[`@media (prefers-color-scheme: ${mode})`]: {
|
|
5964
5059
|
":root": cssObject
|
|
@@ -5986,7 +5081,6 @@ function prepareCssVars(theme, parserConfig = {}) {
|
|
|
5986
5081
|
return vars;
|
|
5987
5082
|
};
|
|
5988
5083
|
const generateStyleSheets = () => {
|
|
5989
|
-
var _a, _b;
|
|
5990
5084
|
const stylesheets = [];
|
|
5991
5085
|
const colorScheme = theme.defaultColorScheme || "light";
|
|
5992
5086
|
function insertStyleSheet(key, css) {
|
|
@@ -6009,7 +5103,7 @@ function prepareCssVars(theme, parserConfig = {}) {
|
|
|
6009
5103
|
const {
|
|
6010
5104
|
css
|
|
6011
5105
|
} = defaultSchemeVal;
|
|
6012
|
-
const cssColorSheme =
|
|
5106
|
+
const cssColorSheme = colorSchemes[colorScheme]?.palette?.mode;
|
|
6013
5107
|
const finalCss = !disableCssColorScheme && cssColorSheme ? {
|
|
6014
5108
|
colorScheme: cssColorSheme,
|
|
6015
5109
|
...css
|
|
@@ -6023,8 +5117,7 @@ function prepareCssVars(theme, parserConfig = {}) {
|
|
|
6023
5117
|
Object.entries(other).forEach(([key, {
|
|
6024
5118
|
css
|
|
6025
5119
|
}]) => {
|
|
6026
|
-
|
|
6027
|
-
const cssColorSheme = (_b2 = (_a2 = colorSchemes[key]) == null ? void 0 : _a2.palette) == null ? void 0 : _b2.mode;
|
|
5120
|
+
const cssColorSheme = colorSchemes[key]?.palette?.mode;
|
|
6028
5121
|
const finalCss = !disableCssColorScheme && cssColorSheme ? {
|
|
6029
5122
|
colorScheme: cssColorSheme,
|
|
6030
5123
|
...css
|
|
@@ -6756,7 +5849,7 @@ function createThemeNoVars(options = {}, ...args) {
|
|
|
6756
5849
|
}
|
|
6757
5850
|
muiTheme.unstable_sxConfig = {
|
|
6758
5851
|
...defaultSxConfig,
|
|
6759
|
-
...other
|
|
5852
|
+
...other?.unstable_sxConfig
|
|
6760
5853
|
};
|
|
6761
5854
|
muiTheme.unstable_sx = function sx(props) {
|
|
6762
5855
|
return styleFunctionSx({
|
|
@@ -6816,9 +5909,8 @@ function createColorScheme(options) {
|
|
|
6816
5909
|
};
|
|
6817
5910
|
}
|
|
6818
5911
|
function shouldSkipGeneratingVar(keys) {
|
|
6819
|
-
var _a;
|
|
6820
5912
|
return !!keys[0].match(/(cssVarPrefix|colorSchemeSelector|rootSelector|typography|mixins|breakpoints|direction|transitions)/) || !!keys[0].match(/sxConfig$/) || // ends with sxConfig
|
|
6821
|
-
keys[0] === "palette" && !!
|
|
5913
|
+
keys[0] === "palette" && !!keys[1]?.match(/(mode|contrastThreshold|tonalOffset)/);
|
|
6822
5914
|
}
|
|
6823
5915
|
const excludeVariablesFromRoot = (cssVarPrefix) => [...[...Array(25)].map((_, index) => `--${cssVarPrefix ? `${cssVarPrefix}-` : ""}overlays-${index}`), `--${cssVarPrefix ? `${cssVarPrefix}-` : ""}palette-AppBar-darkBg`, `--${cssVarPrefix ? `${cssVarPrefix}-` : ""}palette-AppBar-darkColor`];
|
|
6824
5916
|
const defaultGetSelector = (theme) => (colorScheme, css) => {
|
|
@@ -6831,7 +5923,7 @@ const defaultGetSelector = (theme) => (colorScheme, css) => {
|
|
|
6831
5923
|
if (selector === "data") {
|
|
6832
5924
|
rule = "[data-%s]";
|
|
6833
5925
|
}
|
|
6834
|
-
if (
|
|
5926
|
+
if (selector?.startsWith("data-") && !selector.includes("%s")) {
|
|
6835
5927
|
rule = `[${selector}="%s"]`;
|
|
6836
5928
|
}
|
|
6837
5929
|
if (theme.defaultColorScheme === colorScheme) {
|
|
@@ -6931,7 +6023,7 @@ function attachColorScheme$1(colorSchemes, scheme, restTheme, colorScheme) {
|
|
|
6931
6023
|
...scheme,
|
|
6932
6024
|
palette: {
|
|
6933
6025
|
mode,
|
|
6934
|
-
...scheme
|
|
6026
|
+
...scheme?.palette
|
|
6935
6027
|
}
|
|
6936
6028
|
});
|
|
6937
6029
|
return void 0;
|
|
@@ -6943,7 +6035,7 @@ function attachColorScheme$1(colorSchemes, scheme, restTheme, colorScheme) {
|
|
|
6943
6035
|
...restTheme,
|
|
6944
6036
|
palette: {
|
|
6945
6037
|
mode,
|
|
6946
|
-
...scheme
|
|
6038
|
+
...scheme?.palette
|
|
6947
6039
|
}
|
|
6948
6040
|
});
|
|
6949
6041
|
colorSchemes[colorScheme] = {
|
|
@@ -6951,9 +6043,9 @@ function attachColorScheme$1(colorSchemes, scheme, restTheme, colorScheme) {
|
|
|
6951
6043
|
palette,
|
|
6952
6044
|
opacity: {
|
|
6953
6045
|
...getOpacity(mode),
|
|
6954
|
-
...scheme
|
|
6046
|
+
...scheme?.opacity
|
|
6955
6047
|
},
|
|
6956
|
-
overlays:
|
|
6048
|
+
overlays: scheme?.overlays || getOverlays(mode)
|
|
6957
6049
|
};
|
|
6958
6050
|
return muiTheme;
|
|
6959
6051
|
}
|
|
@@ -7212,7 +6304,7 @@ function createThemeWithVars(options = {}, ...args) {
|
|
|
7212
6304
|
theme.shouldSkipGeneratingVar = shouldSkipGeneratingVar$1;
|
|
7213
6305
|
theme.unstable_sxConfig = {
|
|
7214
6306
|
...defaultSxConfig,
|
|
7215
|
-
...input
|
|
6307
|
+
...input?.unstable_sxConfig
|
|
7216
6308
|
};
|
|
7217
6309
|
theme.unstable_sx = function sx(props) {
|
|
7218
6310
|
return styleFunctionSx({
|
|
@@ -7245,11 +6337,11 @@ function createTheme(options = {}, ...args) {
|
|
|
7245
6337
|
colorSchemes: initialColorSchemes = !palette ? {
|
|
7246
6338
|
light: true
|
|
7247
6339
|
} : void 0,
|
|
7248
|
-
defaultColorScheme: initialDefaultColorScheme = palette
|
|
6340
|
+
defaultColorScheme: initialDefaultColorScheme = palette?.mode,
|
|
7249
6341
|
...rest
|
|
7250
6342
|
} = options;
|
|
7251
6343
|
const defaultColorSchemeInput = initialDefaultColorScheme || "light";
|
|
7252
|
-
const defaultScheme = initialColorSchemes
|
|
6344
|
+
const defaultScheme = initialColorSchemes?.[defaultColorSchemeInput];
|
|
7253
6345
|
const colorSchemesInput = {
|
|
7254
6346
|
...initialColorSchemes,
|
|
7255
6347
|
...palette ? {
|
|
@@ -7383,7 +6475,7 @@ function useForkRef$1(...refs) {
|
|
|
7383
6475
|
};
|
|
7384
6476
|
});
|
|
7385
6477
|
return () => {
|
|
7386
|
-
cleanups.forEach((refCleanup) => refCleanup
|
|
6478
|
+
cleanups.forEach((refCleanup) => refCleanup?.());
|
|
7387
6479
|
};
|
|
7388
6480
|
}, refs);
|
|
7389
6481
|
return React.useMemo(() => {
|
|
@@ -7406,15 +6498,6 @@ function chainPropTypes(propType1, propType2) {
|
|
|
7406
6498
|
return propType1(...args) || propType2(...args);
|
|
7407
6499
|
};
|
|
7408
6500
|
}
|
|
7409
|
-
function _extends$1() {
|
|
7410
|
-
return _extends$1 = Object.assign ? Object.assign.bind() : function(n) {
|
|
7411
|
-
for (var e = 1; e < arguments.length; e++) {
|
|
7412
|
-
var t = arguments[e];
|
|
7413
|
-
for (var r2 in t) ({}).hasOwnProperty.call(t, r2) && (n[r2] = t[r2]);
|
|
7414
|
-
}
|
|
7415
|
-
return n;
|
|
7416
|
-
}, _extends$1.apply(null, arguments);
|
|
7417
|
-
}
|
|
7418
6501
|
function _setPrototypeOf(t, e) {
|
|
7419
6502
|
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t2, e2) {
|
|
7420
6503
|
return t2.__proto__ = e2, t2;
|
|
@@ -7527,7 +6610,6 @@ const PaperRoot = styled("div", {
|
|
|
7527
6610
|
}]
|
|
7528
6611
|
})));
|
|
7529
6612
|
const Paper = /* @__PURE__ */ React.forwardRef(function Paper2(inProps, ref) {
|
|
7530
|
-
var _a;
|
|
7531
6613
|
const props = useDefaultProps({
|
|
7532
6614
|
props: inProps,
|
|
7533
6615
|
name: "MuiPaper"
|
|
@@ -7554,7 +6636,7 @@ const Paper = /* @__PURE__ */ React.forwardRef(function Paper2(inProps, ref) {
|
|
|
7554
6636
|
console.error([`MUI: The elevation provided <Paper elevation={${elevation}}> is not available in the theme.`, `Please make sure that \`theme.shadows[${elevation}]\` is defined.`].join("\n"));
|
|
7555
6637
|
}
|
|
7556
6638
|
}
|
|
7557
|
-
return /* @__PURE__ */
|
|
6639
|
+
return /* @__PURE__ */ jsx(PaperRoot, {
|
|
7558
6640
|
as: component,
|
|
7559
6641
|
ownerState,
|
|
7560
6642
|
className: clsx(classes.root, className),
|
|
@@ -7564,7 +6646,7 @@ const Paper = /* @__PURE__ */ React.forwardRef(function Paper2(inProps, ref) {
|
|
|
7564
6646
|
...variant === "elevation" && {
|
|
7565
6647
|
"--Paper-shadow": (theme.vars || theme).shadows[elevation],
|
|
7566
6648
|
...theme.vars && {
|
|
7567
|
-
"--Paper-overlay":
|
|
6649
|
+
"--Paper-overlay": theme.vars.overlays?.[elevation]
|
|
7568
6650
|
},
|
|
7569
6651
|
...!theme.vars && theme.palette.mode === "dark" && {
|
|
7570
6652
|
"--Paper-overlay": `linear-gradient(${alpha("#fff", getOverlayAlpha(elevation))}, ${alpha("#fff", getOverlayAlpha(elevation))})`
|
|
@@ -7659,11 +6741,10 @@ function HTMLElementType(props, propName, componentName, location, propFullName)
|
|
|
7659
6741
|
return null;
|
|
7660
6742
|
}
|
|
7661
6743
|
function getReactElementRef(element) {
|
|
7662
|
-
var _a;
|
|
7663
6744
|
if (parseInt(React.version, 10) >= 19) {
|
|
7664
|
-
return
|
|
6745
|
+
return element?.props?.ref || null;
|
|
7665
6746
|
}
|
|
7666
|
-
return
|
|
6747
|
+
return element?.ref || null;
|
|
7667
6748
|
}
|
|
7668
6749
|
function getContainer(container) {
|
|
7669
6750
|
return typeof container === "function" ? container() : container;
|
|
@@ -7771,72 +6852,69 @@ const TypographyRoot = styled("span", {
|
|
|
7771
6852
|
}
|
|
7772
6853
|
})(memoTheme(({
|
|
7773
6854
|
theme
|
|
7774
|
-
}) => {
|
|
7775
|
-
|
|
7776
|
-
|
|
7777
|
-
|
|
7778
|
-
|
|
7779
|
-
|
|
7780
|
-
|
|
7781
|
-
|
|
7782
|
-
|
|
7783
|
-
|
|
7784
|
-
|
|
7785
|
-
|
|
7786
|
-
|
|
7787
|
-
|
|
7788
|
-
|
|
7789
|
-
|
|
7790
|
-
|
|
7791
|
-
|
|
7792
|
-
|
|
7793
|
-
|
|
7794
|
-
|
|
7795
|
-
|
|
7796
|
-
|
|
7797
|
-
|
|
7798
|
-
|
|
7799
|
-
|
|
7800
|
-
|
|
7801
|
-
|
|
7802
|
-
|
|
7803
|
-
|
|
7804
|
-
|
|
7805
|
-
|
|
7806
|
-
|
|
7807
|
-
|
|
7808
|
-
|
|
7809
|
-
|
|
7810
|
-
|
|
7811
|
-
|
|
7812
|
-
|
|
7813
|
-
|
|
7814
|
-
|
|
7815
|
-
|
|
7816
|
-
|
|
7817
|
-
|
|
7818
|
-
|
|
7819
|
-
|
|
7820
|
-
|
|
7821
|
-
|
|
7822
|
-
|
|
7823
|
-
|
|
7824
|
-
|
|
7825
|
-
|
|
7826
|
-
|
|
7827
|
-
|
|
7828
|
-
|
|
7829
|
-
|
|
7830
|
-
|
|
7831
|
-
|
|
7832
|
-
|
|
7833
|
-
|
|
7834
|
-
|
|
7835
|
-
|
|
7836
|
-
|
|
7837
|
-
}]
|
|
7838
|
-
};
|
|
7839
|
-
}));
|
|
6855
|
+
}) => ({
|
|
6856
|
+
margin: 0,
|
|
6857
|
+
variants: [{
|
|
6858
|
+
props: {
|
|
6859
|
+
variant: "inherit"
|
|
6860
|
+
},
|
|
6861
|
+
style: {
|
|
6862
|
+
// Some elements, like <button> on Chrome have default font that doesn't inherit, reset this.
|
|
6863
|
+
font: "inherit",
|
|
6864
|
+
lineHeight: "inherit",
|
|
6865
|
+
letterSpacing: "inherit"
|
|
6866
|
+
}
|
|
6867
|
+
}, ...Object.entries(theme.typography).filter(([variant, value]) => variant !== "inherit" && value && typeof value === "object").map(([variant, value]) => ({
|
|
6868
|
+
props: {
|
|
6869
|
+
variant
|
|
6870
|
+
},
|
|
6871
|
+
style: value
|
|
6872
|
+
})), ...Object.entries(theme.palette).filter(createSimplePaletteValueFilter()).map(([color2]) => ({
|
|
6873
|
+
props: {
|
|
6874
|
+
color: color2
|
|
6875
|
+
},
|
|
6876
|
+
style: {
|
|
6877
|
+
color: (theme.vars || theme).palette[color2].main
|
|
6878
|
+
}
|
|
6879
|
+
})), ...Object.entries(theme.palette?.text || {}).filter(([, value]) => typeof value === "string").map(([color2]) => ({
|
|
6880
|
+
props: {
|
|
6881
|
+
color: `text${capitalize(color2)}`
|
|
6882
|
+
},
|
|
6883
|
+
style: {
|
|
6884
|
+
color: (theme.vars || theme).palette.text[color2]
|
|
6885
|
+
}
|
|
6886
|
+
})), {
|
|
6887
|
+
props: ({
|
|
6888
|
+
ownerState
|
|
6889
|
+
}) => ownerState.align !== "inherit",
|
|
6890
|
+
style: {
|
|
6891
|
+
textAlign: "var(--Typography-textAlign)"
|
|
6892
|
+
}
|
|
6893
|
+
}, {
|
|
6894
|
+
props: ({
|
|
6895
|
+
ownerState
|
|
6896
|
+
}) => ownerState.noWrap,
|
|
6897
|
+
style: {
|
|
6898
|
+
overflow: "hidden",
|
|
6899
|
+
textOverflow: "ellipsis",
|
|
6900
|
+
whiteSpace: "nowrap"
|
|
6901
|
+
}
|
|
6902
|
+
}, {
|
|
6903
|
+
props: ({
|
|
6904
|
+
ownerState
|
|
6905
|
+
}) => ownerState.gutterBottom,
|
|
6906
|
+
style: {
|
|
6907
|
+
marginBottom: "0.35em"
|
|
6908
|
+
}
|
|
6909
|
+
}, {
|
|
6910
|
+
props: ({
|
|
6911
|
+
ownerState
|
|
6912
|
+
}) => ownerState.paragraph,
|
|
6913
|
+
style: {
|
|
6914
|
+
marginBottom: 16
|
|
6915
|
+
}
|
|
6916
|
+
}]
|
|
6917
|
+
})));
|
|
7840
6918
|
const defaultVariantMapping = {
|
|
7841
6919
|
h1: "h1",
|
|
7842
6920
|
h2: "h2",
|
|
@@ -7890,7 +6968,7 @@ const Typography = /* @__PURE__ */ React.forwardRef(function Typography2(inProps
|
|
|
7890
6968
|
};
|
|
7891
6969
|
const Component = component || (paragraph ? "p" : variantMapping[variant] || defaultVariantMapping[variant]) || "span";
|
|
7892
6970
|
const classes = useUtilityClasses(ownerState);
|
|
7893
|
-
return /* @__PURE__ */
|
|
6971
|
+
return /* @__PURE__ */ jsx(TypographyRoot, {
|
|
7894
6972
|
as: Component,
|
|
7895
6973
|
ref,
|
|
7896
6974
|
className: clsx(classes.root, className),
|
|
@@ -9682,7 +8760,7 @@ const Popper = React.forwardRef((props, ref) => {
|
|
|
9682
8760
|
onExited: handleExited
|
|
9683
8761
|
};
|
|
9684
8762
|
}
|
|
9685
|
-
return
|
|
8763
|
+
return jsx(Portal, { disablePortal, container, children: jsx("div", { ref: handleRef, role: "tooltip", ...other, style: {
|
|
9686
8764
|
// Prevents scroll issue, waiting for Popper.js to add this style once initiated.
|
|
9687
8765
|
position: "fixed",
|
|
9688
8766
|
// Fix Popper.js display issue
|
|
@@ -10325,7 +9403,7 @@ makeStyles()(() => ({
|
|
|
10325
9403
|
const OuterElementContext = React__default.createContext({});
|
|
10326
9404
|
const OuterElementType = React__default.forwardRef((props, ref) => {
|
|
10327
9405
|
const outerProps = React__default.useContext(OuterElementContext);
|
|
10328
|
-
return
|
|
9406
|
+
return jsx("div", { ref, ...props, ...outerProps });
|
|
10329
9407
|
});
|
|
10330
9408
|
function ListRow(props) {
|
|
10331
9409
|
const { data, index, style: style2 } = props;
|
|
@@ -10336,7 +9414,7 @@ function ListRow(props) {
|
|
|
10336
9414
|
};
|
|
10337
9415
|
const [props0, option, getItemLabel] = dataSet;
|
|
10338
9416
|
const { key, ...optionProps } = props0;
|
|
10339
|
-
return
|
|
9417
|
+
return jsx(Typography, { component: "li", ...optionProps, noWrap: true, style: inlineStyle, children: getItemLabel(option) }, key);
|
|
10340
9418
|
}
|
|
10341
9419
|
function useResetCache(itemCount) {
|
|
10342
9420
|
const ref = useRef(null);
|
|
@@ -10352,7 +9430,7 @@ React__default.forwardRef((props, ref) => {
|
|
|
10352
9430
|
const items = children;
|
|
10353
9431
|
const itemCount = items.length;
|
|
10354
9432
|
const gridRef = useResetCache(itemCount);
|
|
10355
|
-
return
|
|
9433
|
+
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 }) }) });
|
|
10356
9434
|
});
|
|
10357
9435
|
const useStyles$1 = makeStyles()((theme) => ({
|
|
10358
9436
|
tooltipAnchor: {
|
|
@@ -11105,7 +10183,7 @@ function transformInfoValues(info, featureType, featureLabelsMap) {
|
|
|
11105
10183
|
const newInfo = Object.fromEntries(
|
|
11106
10184
|
Object.entries(info).map(([key, value]) => {
|
|
11107
10185
|
if (key.toLowerCase().includes(featureType.toLowerCase())) {
|
|
11108
|
-
const newValue =
|
|
10186
|
+
const newValue = featureLabelsMap?.get(value) || featureLabelsMap?.get(cleanFeatureId(value)) || value;
|
|
11109
10187
|
return [key, newValue];
|
|
11110
10188
|
}
|
|
11111
10189
|
return [key, value];
|