hdsp-jupyter-extension 2.0.0__py3-none-any.whl
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.
- agent_server/__init__.py +8 -0
- agent_server/core/__init__.py +92 -0
- agent_server/core/api_key_manager.py +427 -0
- agent_server/core/code_validator.py +1238 -0
- agent_server/core/context_condenser.py +308 -0
- agent_server/core/embedding_service.py +254 -0
- agent_server/core/error_classifier.py +577 -0
- agent_server/core/llm_client.py +95 -0
- agent_server/core/llm_service.py +649 -0
- agent_server/core/notebook_generator.py +274 -0
- agent_server/core/prompt_builder.py +35 -0
- agent_server/core/rag_manager.py +742 -0
- agent_server/core/reflection_engine.py +489 -0
- agent_server/core/retriever.py +248 -0
- agent_server/core/state_verifier.py +452 -0
- agent_server/core/summary_generator.py +484 -0
- agent_server/core/task_manager.py +198 -0
- agent_server/knowledge/__init__.py +9 -0
- agent_server/knowledge/watchdog_service.py +352 -0
- agent_server/main.py +160 -0
- agent_server/prompts/__init__.py +60 -0
- agent_server/prompts/file_action_prompts.py +113 -0
- agent_server/routers/__init__.py +9 -0
- agent_server/routers/agent.py +591 -0
- agent_server/routers/chat.py +188 -0
- agent_server/routers/config.py +100 -0
- agent_server/routers/file_resolver.py +293 -0
- agent_server/routers/health.py +42 -0
- agent_server/routers/rag.py +163 -0
- agent_server/schemas/__init__.py +60 -0
- hdsp_agent_core/__init__.py +158 -0
- hdsp_agent_core/factory.py +252 -0
- hdsp_agent_core/interfaces.py +203 -0
- hdsp_agent_core/knowledge/__init__.py +31 -0
- hdsp_agent_core/knowledge/chunking.py +356 -0
- hdsp_agent_core/knowledge/libraries/dask.md +188 -0
- hdsp_agent_core/knowledge/libraries/matplotlib.md +164 -0
- hdsp_agent_core/knowledge/libraries/polars.md +68 -0
- hdsp_agent_core/knowledge/loader.py +337 -0
- hdsp_agent_core/llm/__init__.py +13 -0
- hdsp_agent_core/llm/service.py +556 -0
- hdsp_agent_core/managers/__init__.py +22 -0
- hdsp_agent_core/managers/config_manager.py +133 -0
- hdsp_agent_core/managers/session_manager.py +251 -0
- hdsp_agent_core/models/__init__.py +115 -0
- hdsp_agent_core/models/agent.py +316 -0
- hdsp_agent_core/models/chat.py +41 -0
- hdsp_agent_core/models/common.py +95 -0
- hdsp_agent_core/models/rag.py +368 -0
- hdsp_agent_core/prompts/__init__.py +63 -0
- hdsp_agent_core/prompts/auto_agent_prompts.py +1260 -0
- hdsp_agent_core/prompts/cell_action_prompts.py +98 -0
- hdsp_agent_core/services/__init__.py +18 -0
- hdsp_agent_core/services/agent_service.py +438 -0
- hdsp_agent_core/services/chat_service.py +205 -0
- hdsp_agent_core/services/rag_service.py +262 -0
- hdsp_agent_core/tests/__init__.py +1 -0
- hdsp_agent_core/tests/conftest.py +102 -0
- hdsp_agent_core/tests/test_factory.py +251 -0
- hdsp_agent_core/tests/test_services.py +326 -0
- hdsp_jupyter_extension-2.0.0.data/data/etc/jupyter/jupyter_server_config.d/hdsp_jupyter_extension.json +7 -0
- hdsp_jupyter_extension-2.0.0.data/data/share/jupyter/labextensions/hdsp-agent/build_log.json +738 -0
- hdsp_jupyter_extension-2.0.0.data/data/share/jupyter/labextensions/hdsp-agent/install.json +5 -0
- hdsp_jupyter_extension-2.0.0.data/data/share/jupyter/labextensions/hdsp-agent/package.json +134 -0
- hdsp_jupyter_extension-2.0.0.data/data/share/jupyter/labextensions/hdsp-agent/static/frontend_styles_index_js.2607ff74c74acfa83158.js +4369 -0
- hdsp_jupyter_extension-2.0.0.data/data/share/jupyter/labextensions/hdsp-agent/static/frontend_styles_index_js.2607ff74c74acfa83158.js.map +1 -0
- hdsp_jupyter_extension-2.0.0.data/data/share/jupyter/labextensions/hdsp-agent/static/lib_index_js.622c1a5918b3aafb2315.js +12496 -0
- hdsp_jupyter_extension-2.0.0.data/data/share/jupyter/labextensions/hdsp-agent/static/lib_index_js.622c1a5918b3aafb2315.js.map +1 -0
- hdsp_jupyter_extension-2.0.0.data/data/share/jupyter/labextensions/hdsp-agent/static/node_modules_emotion_use-insertion-effect-with-fallbacks_dist_emotion-use-insertion-effect-wi-3ba6b80.c095373419d05e6f141a.js +94 -0
- hdsp_jupyter_extension-2.0.0.data/data/share/jupyter/labextensions/hdsp-agent/static/node_modules_emotion_use-insertion-effect-with-fallbacks_dist_emotion-use-insertion-effect-wi-3ba6b80.c095373419d05e6f141a.js.map +1 -0
- hdsp_jupyter_extension-2.0.0.data/data/share/jupyter/labextensions/hdsp-agent/static/node_modules_emotion_use-insertion-effect-with-fallbacks_dist_emotion-use-insertion-effect-wi-3ba6b81.61e75fb98ecff46cf836.js +94 -0
- hdsp_jupyter_extension-2.0.0.data/data/share/jupyter/labextensions/hdsp-agent/static/node_modules_emotion_use-insertion-effect-with-fallbacks_dist_emotion-use-insertion-effect-wi-3ba6b81.61e75fb98ecff46cf836.js.map +1 -0
- hdsp_jupyter_extension-2.0.0.data/data/share/jupyter/labextensions/hdsp-agent/static/remoteEntry.dae97cde171e13b8c834.js +623 -0
- hdsp_jupyter_extension-2.0.0.data/data/share/jupyter/labextensions/hdsp-agent/static/remoteEntry.dae97cde171e13b8c834.js.map +1 -0
- hdsp_jupyter_extension-2.0.0.data/data/share/jupyter/labextensions/hdsp-agent/static/style.js +4 -0
- hdsp_jupyter_extension-2.0.0.data/data/share/jupyter/labextensions/hdsp-agent/static/vendors-node_modules_babel_runtime_helpers_esm_extends_js-node_modules_emotion_serialize_dist-051195.e2553aab0c3963b83dd7.js +507 -0
- hdsp_jupyter_extension-2.0.0.data/data/share/jupyter/labextensions/hdsp-agent/static/vendors-node_modules_babel_runtime_helpers_esm_extends_js-node_modules_emotion_serialize_dist-051195.e2553aab0c3963b83dd7.js.map +1 -0
- hdsp_jupyter_extension-2.0.0.data/data/share/jupyter/labextensions/hdsp-agent/static/vendors-node_modules_emotion_cache_dist_emotion-cache_browser_development_esm_js-node_modules-782ee5.d9ed8645ef1d311657d8.js +2071 -0
- hdsp_jupyter_extension-2.0.0.data/data/share/jupyter/labextensions/hdsp-agent/static/vendors-node_modules_emotion_cache_dist_emotion-cache_browser_development_esm_js-node_modules-782ee5.d9ed8645ef1d311657d8.js.map +1 -0
- hdsp_jupyter_extension-2.0.0.data/data/share/jupyter/labextensions/hdsp-agent/static/vendors-node_modules_emotion_react_dist_emotion-react_browser_development_esm_js.36b49c71871f98d4f549.js +1059 -0
- hdsp_jupyter_extension-2.0.0.data/data/share/jupyter/labextensions/hdsp-agent/static/vendors-node_modules_emotion_react_dist_emotion-react_browser_development_esm_js.36b49c71871f98d4f549.js.map +1 -0
- hdsp_jupyter_extension-2.0.0.data/data/share/jupyter/labextensions/hdsp-agent/static/vendors-node_modules_emotion_styled_dist_emotion-styled_browser_development_esm_js.661fb5836f4978a7c6e1.js +376 -0
- hdsp_jupyter_extension-2.0.0.data/data/share/jupyter/labextensions/hdsp-agent/static/vendors-node_modules_emotion_styled_dist_emotion-styled_browser_development_esm_js.661fb5836f4978a7c6e1.js.map +1 -0
- hdsp_jupyter_extension-2.0.0.data/data/share/jupyter/labextensions/hdsp-agent/static/vendors-node_modules_mui_material_index_js.985697e0162d8d088ca2.js +60336 -0
- hdsp_jupyter_extension-2.0.0.data/data/share/jupyter/labextensions/hdsp-agent/static/vendors-node_modules_mui_material_index_js.985697e0162d8d088ca2.js.map +1 -0
- hdsp_jupyter_extension-2.0.0.data/data/share/jupyter/labextensions/hdsp-agent/static/vendors-node_modules_mui_material_utils_createSvgIcon_js.2e13df4ea61496e95d45.js +7132 -0
- hdsp_jupyter_extension-2.0.0.data/data/share/jupyter/labextensions/hdsp-agent/static/vendors-node_modules_mui_material_utils_createSvgIcon_js.2e13df4ea61496e95d45.js.map +1 -0
- hdsp_jupyter_extension-2.0.0.dist-info/METADATA +152 -0
- hdsp_jupyter_extension-2.0.0.dist-info/RECORD +121 -0
- hdsp_jupyter_extension-2.0.0.dist-info/WHEEL +4 -0
- hdsp_jupyter_extension-2.0.0.dist-info/licenses/LICENSE +21 -0
- jupyter_ext/__init__.py +233 -0
- jupyter_ext/_version.py +4 -0
- jupyter_ext/config.py +111 -0
- jupyter_ext/etc/jupyter/jupyter_server_config.d/hdsp_jupyter_extension.json +7 -0
- jupyter_ext/handlers.py +632 -0
- jupyter_ext/labextension/build_log.json +738 -0
- jupyter_ext/labextension/package.json +134 -0
- jupyter_ext/labextension/static/frontend_styles_index_js.2607ff74c74acfa83158.js +4369 -0
- jupyter_ext/labextension/static/frontend_styles_index_js.2607ff74c74acfa83158.js.map +1 -0
- jupyter_ext/labextension/static/lib_index_js.622c1a5918b3aafb2315.js +12496 -0
- jupyter_ext/labextension/static/lib_index_js.622c1a5918b3aafb2315.js.map +1 -0
- jupyter_ext/labextension/static/node_modules_emotion_use-insertion-effect-with-fallbacks_dist_emotion-use-insertion-effect-wi-3ba6b80.c095373419d05e6f141a.js +94 -0
- jupyter_ext/labextension/static/node_modules_emotion_use-insertion-effect-with-fallbacks_dist_emotion-use-insertion-effect-wi-3ba6b80.c095373419d05e6f141a.js.map +1 -0
- jupyter_ext/labextension/static/node_modules_emotion_use-insertion-effect-with-fallbacks_dist_emotion-use-insertion-effect-wi-3ba6b81.61e75fb98ecff46cf836.js +94 -0
- jupyter_ext/labextension/static/node_modules_emotion_use-insertion-effect-with-fallbacks_dist_emotion-use-insertion-effect-wi-3ba6b81.61e75fb98ecff46cf836.js.map +1 -0
- jupyter_ext/labextension/static/remoteEntry.dae97cde171e13b8c834.js +623 -0
- jupyter_ext/labextension/static/remoteEntry.dae97cde171e13b8c834.js.map +1 -0
- jupyter_ext/labextension/static/style.js +4 -0
- jupyter_ext/labextension/static/vendors-node_modules_babel_runtime_helpers_esm_extends_js-node_modules_emotion_serialize_dist-051195.e2553aab0c3963b83dd7.js +507 -0
- jupyter_ext/labextension/static/vendors-node_modules_babel_runtime_helpers_esm_extends_js-node_modules_emotion_serialize_dist-051195.e2553aab0c3963b83dd7.js.map +1 -0
- jupyter_ext/labextension/static/vendors-node_modules_emotion_cache_dist_emotion-cache_browser_development_esm_js-node_modules-782ee5.d9ed8645ef1d311657d8.js +2071 -0
- jupyter_ext/labextension/static/vendors-node_modules_emotion_cache_dist_emotion-cache_browser_development_esm_js-node_modules-782ee5.d9ed8645ef1d311657d8.js.map +1 -0
- jupyter_ext/labextension/static/vendors-node_modules_emotion_react_dist_emotion-react_browser_development_esm_js.36b49c71871f98d4f549.js +1059 -0
- jupyter_ext/labextension/static/vendors-node_modules_emotion_react_dist_emotion-react_browser_development_esm_js.36b49c71871f98d4f549.js.map +1 -0
- jupyter_ext/labextension/static/vendors-node_modules_emotion_styled_dist_emotion-styled_browser_development_esm_js.661fb5836f4978a7c6e1.js +376 -0
- jupyter_ext/labextension/static/vendors-node_modules_emotion_styled_dist_emotion-styled_browser_development_esm_js.661fb5836f4978a7c6e1.js.map +1 -0
- jupyter_ext/labextension/static/vendors-node_modules_mui_material_index_js.985697e0162d8d088ca2.js +60336 -0
- jupyter_ext/labextension/static/vendors-node_modules_mui_material_index_js.985697e0162d8d088ca2.js.map +1 -0
- jupyter_ext/labextension/static/vendors-node_modules_mui_material_utils_createSvgIcon_js.2e13df4ea61496e95d45.js +7132 -0
- jupyter_ext/labextension/static/vendors-node_modules_mui_material_utils_createSvgIcon_js.2e13df4ea61496e95d45.js.map +1 -0
|
@@ -0,0 +1,1059 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
(self["webpackChunkhdsp_agent"] = self["webpackChunkhdsp_agent"] || []).push([["vendors-node_modules_emotion_react_dist_emotion-react_browser_development_esm_js"],{
|
|
3
|
+
|
|
4
|
+
/***/ "./node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.development.esm.js"
|
|
5
|
+
/*!*****************************************************************************************************************!*\
|
|
6
|
+
!*** ./node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.development.esm.js ***!
|
|
7
|
+
\*****************************************************************************************************************/
|
|
8
|
+
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
9
|
+
|
|
10
|
+
__webpack_require__.r(__webpack_exports__);
|
|
11
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
12
|
+
/* harmony export */ "default": () => (/* binding */ hoistNonReactStatics)
|
|
13
|
+
/* harmony export */ });
|
|
14
|
+
/* harmony import */ var hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! hoist-non-react-statics */ "./node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js");
|
|
15
|
+
/* harmony import */ var hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_0__);
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
// this file isolates this package that is not tree-shakeable
|
|
19
|
+
// and if this module doesn't actually contain any logic of its own
|
|
20
|
+
// then Rollup just use 'hoist-non-react-statics' directly in other chunks
|
|
21
|
+
|
|
22
|
+
var hoistNonReactStatics = (function (targetComponent, sourceComponent) {
|
|
23
|
+
return hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_0___default()(targetComponent, sourceComponent);
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
/***/ },
|
|
30
|
+
|
|
31
|
+
/***/ "./node_modules/@emotion/react/dist/emotion-element-489459f2.browser.development.esm.js"
|
|
32
|
+
/*!**********************************************************************************************!*\
|
|
33
|
+
!*** ./node_modules/@emotion/react/dist/emotion-element-489459f2.browser.development.esm.js ***!
|
|
34
|
+
\**********************************************************************************************/
|
|
35
|
+
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
36
|
+
|
|
37
|
+
__webpack_require__.r(__webpack_exports__);
|
|
38
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
39
|
+
/* harmony export */ C: () => (/* binding */ CacheProvider),
|
|
40
|
+
/* harmony export */ E: () => (/* binding */ Emotion$1),
|
|
41
|
+
/* harmony export */ T: () => (/* binding */ ThemeContext),
|
|
42
|
+
/* harmony export */ _: () => (/* binding */ __unsafe_useEmotionCache),
|
|
43
|
+
/* harmony export */ a: () => (/* binding */ ThemeProvider),
|
|
44
|
+
/* harmony export */ b: () => (/* binding */ withTheme),
|
|
45
|
+
/* harmony export */ c: () => (/* binding */ createEmotionProps),
|
|
46
|
+
/* harmony export */ h: () => (/* binding */ hasOwn),
|
|
47
|
+
/* harmony export */ u: () => (/* binding */ useTheme),
|
|
48
|
+
/* harmony export */ w: () => (/* binding */ withEmotionCache)
|
|
49
|
+
/* harmony export */ });
|
|
50
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "webpack/sharing/consume/default/react");
|
|
51
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
52
|
+
/* harmony import */ var _emotion_cache__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @emotion/cache */ "./node_modules/@emotion/cache/dist/emotion-cache.browser.development.esm.js");
|
|
53
|
+
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/@babel/runtime/helpers/esm/extends.js");
|
|
54
|
+
/* harmony import */ var _emotion_weak_memoize__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @emotion/weak-memoize */ "./node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.esm.js");
|
|
55
|
+
/* harmony import */ var _isolated_hnrs_dist_emotion_react_isolated_hnrs_browser_development_esm_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.development.esm.js */ "./node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.development.esm.js");
|
|
56
|
+
/* harmony import */ var _emotion_utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @emotion/utils */ "./node_modules/@emotion/utils/dist/emotion-utils.browser.esm.js");
|
|
57
|
+
/* harmony import */ var _emotion_serialize__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @emotion/serialize */ "./node_modules/@emotion/serialize/dist/emotion-serialize.development.esm.js");
|
|
58
|
+
/* harmony import */ var _emotion_use_insertion_effect_with_fallbacks__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @emotion/use-insertion-effect-with-fallbacks */ "./node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.browser.esm.js");
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
var EmotionCacheContext = /* #__PURE__ */react__WEBPACK_IMPORTED_MODULE_0__.createContext( // we're doing this to avoid preconstruct's dead code elimination in this one case
|
|
70
|
+
// because this module is primarily intended for the browser and node
|
|
71
|
+
// but it's also required in react native and similar environments sometimes
|
|
72
|
+
// and we could have a special build just for that
|
|
73
|
+
// but this is much easier and the native packages
|
|
74
|
+
// might use a different theme context in the future anyway
|
|
75
|
+
typeof HTMLElement !== 'undefined' ? /* #__PURE__ */(0,_emotion_cache__WEBPACK_IMPORTED_MODULE_1__["default"])({
|
|
76
|
+
key: 'css'
|
|
77
|
+
}) : null);
|
|
78
|
+
|
|
79
|
+
{
|
|
80
|
+
EmotionCacheContext.displayName = 'EmotionCacheContext';
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
var CacheProvider = EmotionCacheContext.Provider;
|
|
84
|
+
var __unsafe_useEmotionCache = function useEmotionCache() {
|
|
85
|
+
return (0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(EmotionCacheContext);
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
var withEmotionCache = function withEmotionCache(func) {
|
|
89
|
+
return /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(function (props, ref) {
|
|
90
|
+
// the cache will never be null in the browser
|
|
91
|
+
var cache = (0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(EmotionCacheContext);
|
|
92
|
+
return func(props, cache, ref);
|
|
93
|
+
});
|
|
94
|
+
};
|
|
95
|
+
|
|
96
|
+
var ThemeContext = /* #__PURE__ */react__WEBPACK_IMPORTED_MODULE_0__.createContext({});
|
|
97
|
+
|
|
98
|
+
{
|
|
99
|
+
ThemeContext.displayName = 'EmotionThemeContext';
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
var useTheme = function useTheme() {
|
|
103
|
+
return react__WEBPACK_IMPORTED_MODULE_0__.useContext(ThemeContext);
|
|
104
|
+
};
|
|
105
|
+
|
|
106
|
+
var getTheme = function getTheme(outerTheme, theme) {
|
|
107
|
+
if (typeof theme === 'function') {
|
|
108
|
+
var mergedTheme = theme(outerTheme);
|
|
109
|
+
|
|
110
|
+
if ((mergedTheme == null || typeof mergedTheme !== 'object' || Array.isArray(mergedTheme))) {
|
|
111
|
+
throw new Error('[ThemeProvider] Please return an object from your theme function, i.e. theme={() => ({})}!');
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
return mergedTheme;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
if ((theme == null || typeof theme !== 'object' || Array.isArray(theme))) {
|
|
118
|
+
throw new Error('[ThemeProvider] Please make your theme prop a plain object');
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
return (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_2__["default"])({}, outerTheme, theme);
|
|
122
|
+
};
|
|
123
|
+
|
|
124
|
+
var createCacheWithTheme = /* #__PURE__ */(0,_emotion_weak_memoize__WEBPACK_IMPORTED_MODULE_3__["default"])(function (outerTheme) {
|
|
125
|
+
return (0,_emotion_weak_memoize__WEBPACK_IMPORTED_MODULE_3__["default"])(function (theme) {
|
|
126
|
+
return getTheme(outerTheme, theme);
|
|
127
|
+
});
|
|
128
|
+
});
|
|
129
|
+
var ThemeProvider = function ThemeProvider(props) {
|
|
130
|
+
var theme = react__WEBPACK_IMPORTED_MODULE_0__.useContext(ThemeContext);
|
|
131
|
+
|
|
132
|
+
if (props.theme !== theme) {
|
|
133
|
+
theme = createCacheWithTheme(theme)(props.theme);
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(ThemeContext.Provider, {
|
|
137
|
+
value: theme
|
|
138
|
+
}, props.children);
|
|
139
|
+
};
|
|
140
|
+
function withTheme(Component) {
|
|
141
|
+
var componentName = Component.displayName || Component.name || 'Component';
|
|
142
|
+
var WithTheme = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.forwardRef(function render(props, ref) {
|
|
143
|
+
var theme = react__WEBPACK_IMPORTED_MODULE_0__.useContext(ThemeContext);
|
|
144
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(Component, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_2__["default"])({
|
|
145
|
+
theme: theme,
|
|
146
|
+
ref: ref
|
|
147
|
+
}, props));
|
|
148
|
+
});
|
|
149
|
+
WithTheme.displayName = "WithTheme(" + componentName + ")";
|
|
150
|
+
return (0,_isolated_hnrs_dist_emotion_react_isolated_hnrs_browser_development_esm_js__WEBPACK_IMPORTED_MODULE_4__["default"])(WithTheme, Component);
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
var hasOwn = {}.hasOwnProperty;
|
|
154
|
+
|
|
155
|
+
var getLastPart = function getLastPart(functionName) {
|
|
156
|
+
// The match may be something like 'Object.createEmotionProps' or
|
|
157
|
+
// 'Loader.prototype.render'
|
|
158
|
+
var parts = functionName.split('.');
|
|
159
|
+
return parts[parts.length - 1];
|
|
160
|
+
};
|
|
161
|
+
|
|
162
|
+
var getFunctionNameFromStackTraceLine = function getFunctionNameFromStackTraceLine(line) {
|
|
163
|
+
// V8
|
|
164
|
+
var match = /^\s+at\s+([A-Za-z0-9$.]+)\s/.exec(line);
|
|
165
|
+
if (match) return getLastPart(match[1]); // Safari / Firefox
|
|
166
|
+
|
|
167
|
+
match = /^([A-Za-z0-9$.]+)@/.exec(line);
|
|
168
|
+
if (match) return getLastPart(match[1]);
|
|
169
|
+
return undefined;
|
|
170
|
+
};
|
|
171
|
+
|
|
172
|
+
var internalReactFunctionNames = /* #__PURE__ */new Set(['renderWithHooks', 'processChild', 'finishClassComponent', 'renderToString']); // These identifiers come from error stacks, so they have to be valid JS
|
|
173
|
+
// identifiers, thus we only need to replace what is a valid character for JS,
|
|
174
|
+
// but not for CSS.
|
|
175
|
+
|
|
176
|
+
var sanitizeIdentifier = function sanitizeIdentifier(identifier) {
|
|
177
|
+
return identifier.replace(/\$/g, '-');
|
|
178
|
+
};
|
|
179
|
+
|
|
180
|
+
var getLabelFromStackTrace = function getLabelFromStackTrace(stackTrace) {
|
|
181
|
+
if (!stackTrace) return undefined;
|
|
182
|
+
var lines = stackTrace.split('\n');
|
|
183
|
+
|
|
184
|
+
for (var i = 0; i < lines.length; i++) {
|
|
185
|
+
var functionName = getFunctionNameFromStackTraceLine(lines[i]); // The first line of V8 stack traces is just "Error"
|
|
186
|
+
|
|
187
|
+
if (!functionName) continue; // If we reach one of these, we have gone too far and should quit
|
|
188
|
+
|
|
189
|
+
if (internalReactFunctionNames.has(functionName)) break; // The component name is the first function in the stack that starts with an
|
|
190
|
+
// uppercase letter
|
|
191
|
+
|
|
192
|
+
if (/^[A-Z]/.test(functionName)) return sanitizeIdentifier(functionName);
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
return undefined;
|
|
196
|
+
};
|
|
197
|
+
|
|
198
|
+
var typePropName = '__EMOTION_TYPE_PLEASE_DO_NOT_USE__';
|
|
199
|
+
var labelPropName = '__EMOTION_LABEL_PLEASE_DO_NOT_USE__';
|
|
200
|
+
var createEmotionProps = function createEmotionProps(type, props) {
|
|
201
|
+
if (typeof props.css === 'string' && // check if there is a css declaration
|
|
202
|
+
props.css.indexOf(':') !== -1) {
|
|
203
|
+
throw new Error("Strings are not allowed as css prop values, please wrap it in a css template literal from '@emotion/react' like this: css`" + props.css + "`");
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
var newProps = {};
|
|
207
|
+
|
|
208
|
+
for (var _key in props) {
|
|
209
|
+
if (hasOwn.call(props, _key)) {
|
|
210
|
+
newProps[_key] = props[_key];
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
newProps[typePropName] = type; // Runtime labeling is an opt-in feature because:
|
|
215
|
+
// - It causes hydration warnings when using Safari and SSR
|
|
216
|
+
// - It can degrade performance if there are a huge number of elements
|
|
217
|
+
//
|
|
218
|
+
// Even if the flag is set, we still don't compute the label if it has already
|
|
219
|
+
// been determined by the Babel plugin.
|
|
220
|
+
|
|
221
|
+
if (typeof globalThis !== 'undefined' && !!globalThis.EMOTION_RUNTIME_AUTO_LABEL && !!props.css && (typeof props.css !== 'object' || !('name' in props.css) || typeof props.css.name !== 'string' || props.css.name.indexOf('-') === -1)) {
|
|
222
|
+
var label = getLabelFromStackTrace(new Error().stack);
|
|
223
|
+
if (label) newProps[labelPropName] = label;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
return newProps;
|
|
227
|
+
};
|
|
228
|
+
|
|
229
|
+
var Insertion = function Insertion(_ref) {
|
|
230
|
+
var cache = _ref.cache,
|
|
231
|
+
serialized = _ref.serialized,
|
|
232
|
+
isStringTag = _ref.isStringTag;
|
|
233
|
+
(0,_emotion_utils__WEBPACK_IMPORTED_MODULE_5__.registerStyles)(cache, serialized, isStringTag);
|
|
234
|
+
(0,_emotion_use_insertion_effect_with_fallbacks__WEBPACK_IMPORTED_MODULE_7__.useInsertionEffectAlwaysWithSyncFallback)(function () {
|
|
235
|
+
return (0,_emotion_utils__WEBPACK_IMPORTED_MODULE_5__.insertStyles)(cache, serialized, isStringTag);
|
|
236
|
+
});
|
|
237
|
+
|
|
238
|
+
return null;
|
|
239
|
+
};
|
|
240
|
+
|
|
241
|
+
var Emotion = /* #__PURE__ */withEmotionCache(function (props, cache, ref) {
|
|
242
|
+
var cssProp = props.css; // so that using `css` from `emotion` and passing the result to the css prop works
|
|
243
|
+
// not passing the registered cache to serializeStyles because it would
|
|
244
|
+
// make certain babel optimisations not possible
|
|
245
|
+
|
|
246
|
+
if (typeof cssProp === 'string' && cache.registered[cssProp] !== undefined) {
|
|
247
|
+
cssProp = cache.registered[cssProp];
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
var WrappedComponent = props[typePropName];
|
|
251
|
+
var registeredStyles = [cssProp];
|
|
252
|
+
var className = '';
|
|
253
|
+
|
|
254
|
+
if (typeof props.className === 'string') {
|
|
255
|
+
className = (0,_emotion_utils__WEBPACK_IMPORTED_MODULE_5__.getRegisteredStyles)(cache.registered, registeredStyles, props.className);
|
|
256
|
+
} else if (props.className != null) {
|
|
257
|
+
className = props.className + " ";
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
var serialized = (0,_emotion_serialize__WEBPACK_IMPORTED_MODULE_6__.serializeStyles)(registeredStyles, undefined, react__WEBPACK_IMPORTED_MODULE_0__.useContext(ThemeContext));
|
|
261
|
+
|
|
262
|
+
if (serialized.name.indexOf('-') === -1) {
|
|
263
|
+
var labelFromStack = props[labelPropName];
|
|
264
|
+
|
|
265
|
+
if (labelFromStack) {
|
|
266
|
+
serialized = (0,_emotion_serialize__WEBPACK_IMPORTED_MODULE_6__.serializeStyles)([serialized, 'label:' + labelFromStack + ';']);
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
className += cache.key + "-" + serialized.name;
|
|
271
|
+
var newProps = {};
|
|
272
|
+
|
|
273
|
+
for (var _key2 in props) {
|
|
274
|
+
if (hasOwn.call(props, _key2) && _key2 !== 'css' && _key2 !== typePropName && (_key2 !== labelPropName)) {
|
|
275
|
+
newProps[_key2] = props[_key2];
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
newProps.className = className;
|
|
280
|
+
|
|
281
|
+
if (ref) {
|
|
282
|
+
newProps.ref = ref;
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(Insertion, {
|
|
286
|
+
cache: cache,
|
|
287
|
+
serialized: serialized,
|
|
288
|
+
isStringTag: typeof WrappedComponent === 'string'
|
|
289
|
+
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(WrappedComponent, newProps));
|
|
290
|
+
});
|
|
291
|
+
|
|
292
|
+
{
|
|
293
|
+
Emotion.displayName = 'EmotionCssPropInternal';
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
var Emotion$1 = Emotion;
|
|
297
|
+
|
|
298
|
+
|
|
299
|
+
|
|
300
|
+
|
|
301
|
+
/***/ },
|
|
302
|
+
|
|
303
|
+
/***/ "./node_modules/@emotion/react/dist/emotion-react.browser.development.esm.js"
|
|
304
|
+
/*!***********************************************************************************!*\
|
|
305
|
+
!*** ./node_modules/@emotion/react/dist/emotion-react.browser.development.esm.js ***!
|
|
306
|
+
\***********************************************************************************/
|
|
307
|
+
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
308
|
+
|
|
309
|
+
__webpack_require__.r(__webpack_exports__);
|
|
310
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
311
|
+
/* harmony export */ CacheProvider: () => (/* reexport safe */ _emotion_element_489459f2_browser_development_esm_js__WEBPACK_IMPORTED_MODULE_0__.C),
|
|
312
|
+
/* harmony export */ ClassNames: () => (/* binding */ ClassNames),
|
|
313
|
+
/* harmony export */ Global: () => (/* binding */ Global),
|
|
314
|
+
/* harmony export */ ThemeContext: () => (/* reexport safe */ _emotion_element_489459f2_browser_development_esm_js__WEBPACK_IMPORTED_MODULE_0__.T),
|
|
315
|
+
/* harmony export */ ThemeProvider: () => (/* reexport safe */ _emotion_element_489459f2_browser_development_esm_js__WEBPACK_IMPORTED_MODULE_0__.a),
|
|
316
|
+
/* harmony export */ __unsafe_useEmotionCache: () => (/* reexport safe */ _emotion_element_489459f2_browser_development_esm_js__WEBPACK_IMPORTED_MODULE_0__._),
|
|
317
|
+
/* harmony export */ createElement: () => (/* binding */ jsx),
|
|
318
|
+
/* harmony export */ css: () => (/* binding */ css),
|
|
319
|
+
/* harmony export */ jsx: () => (/* binding */ jsx),
|
|
320
|
+
/* harmony export */ keyframes: () => (/* binding */ keyframes),
|
|
321
|
+
/* harmony export */ useTheme: () => (/* reexport safe */ _emotion_element_489459f2_browser_development_esm_js__WEBPACK_IMPORTED_MODULE_0__.u),
|
|
322
|
+
/* harmony export */ withEmotionCache: () => (/* reexport safe */ _emotion_element_489459f2_browser_development_esm_js__WEBPACK_IMPORTED_MODULE_0__.w),
|
|
323
|
+
/* harmony export */ withTheme: () => (/* reexport safe */ _emotion_element_489459f2_browser_development_esm_js__WEBPACK_IMPORTED_MODULE_0__.b)
|
|
324
|
+
/* harmony export */ });
|
|
325
|
+
/* harmony import */ var _emotion_element_489459f2_browser_development_esm_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./emotion-element-489459f2.browser.development.esm.js */ "./node_modules/@emotion/react/dist/emotion-element-489459f2.browser.development.esm.js");
|
|
326
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "webpack/sharing/consume/default/react");
|
|
327
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
328
|
+
/* harmony import */ var _emotion_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @emotion/utils */ "./node_modules/@emotion/utils/dist/emotion-utils.browser.esm.js");
|
|
329
|
+
/* harmony import */ var _emotion_use_insertion_effect_with_fallbacks__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @emotion/use-insertion-effect-with-fallbacks */ "./node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.browser.esm.js");
|
|
330
|
+
/* harmony import */ var _emotion_serialize__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @emotion/serialize */ "./node_modules/@emotion/serialize/dist/emotion-serialize.development.esm.js");
|
|
331
|
+
/* harmony import */ var _emotion_cache__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @emotion/cache */ "./node_modules/@emotion/cache/dist/emotion-cache.browser.development.esm.js");
|
|
332
|
+
/* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @babel/runtime/helpers/extends */ "./node_modules/@babel/runtime/helpers/esm/extends.js");
|
|
333
|
+
/* harmony import */ var _emotion_weak_memoize__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @emotion/weak-memoize */ "./node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.esm.js");
|
|
334
|
+
/* harmony import */ var hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! hoist-non-react-statics */ "./node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js");
|
|
335
|
+
/* harmony import */ var hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_8__);
|
|
336
|
+
|
|
337
|
+
|
|
338
|
+
|
|
339
|
+
|
|
340
|
+
|
|
341
|
+
|
|
342
|
+
|
|
343
|
+
|
|
344
|
+
|
|
345
|
+
|
|
346
|
+
|
|
347
|
+
|
|
348
|
+
var isDevelopment = true;
|
|
349
|
+
|
|
350
|
+
var pkg = {
|
|
351
|
+
name: "@emotion/react",
|
|
352
|
+
version: "11.14.0",
|
|
353
|
+
main: "dist/emotion-react.cjs.js",
|
|
354
|
+
module: "dist/emotion-react.esm.js",
|
|
355
|
+
types: "dist/emotion-react.cjs.d.ts",
|
|
356
|
+
exports: {
|
|
357
|
+
".": {
|
|
358
|
+
types: {
|
|
359
|
+
"import": "./dist/emotion-react.cjs.mjs",
|
|
360
|
+
"default": "./dist/emotion-react.cjs.js"
|
|
361
|
+
},
|
|
362
|
+
development: {
|
|
363
|
+
"edge-light": {
|
|
364
|
+
module: "./dist/emotion-react.development.edge-light.esm.js",
|
|
365
|
+
"import": "./dist/emotion-react.development.edge-light.cjs.mjs",
|
|
366
|
+
"default": "./dist/emotion-react.development.edge-light.cjs.js"
|
|
367
|
+
},
|
|
368
|
+
worker: {
|
|
369
|
+
module: "./dist/emotion-react.development.edge-light.esm.js",
|
|
370
|
+
"import": "./dist/emotion-react.development.edge-light.cjs.mjs",
|
|
371
|
+
"default": "./dist/emotion-react.development.edge-light.cjs.js"
|
|
372
|
+
},
|
|
373
|
+
workerd: {
|
|
374
|
+
module: "./dist/emotion-react.development.edge-light.esm.js",
|
|
375
|
+
"import": "./dist/emotion-react.development.edge-light.cjs.mjs",
|
|
376
|
+
"default": "./dist/emotion-react.development.edge-light.cjs.js"
|
|
377
|
+
},
|
|
378
|
+
browser: {
|
|
379
|
+
module: "./dist/emotion-react.browser.development.esm.js",
|
|
380
|
+
"import": "./dist/emotion-react.browser.development.cjs.mjs",
|
|
381
|
+
"default": "./dist/emotion-react.browser.development.cjs.js"
|
|
382
|
+
},
|
|
383
|
+
module: "./dist/emotion-react.development.esm.js",
|
|
384
|
+
"import": "./dist/emotion-react.development.cjs.mjs",
|
|
385
|
+
"default": "./dist/emotion-react.development.cjs.js"
|
|
386
|
+
},
|
|
387
|
+
"edge-light": {
|
|
388
|
+
module: "./dist/emotion-react.edge-light.esm.js",
|
|
389
|
+
"import": "./dist/emotion-react.edge-light.cjs.mjs",
|
|
390
|
+
"default": "./dist/emotion-react.edge-light.cjs.js"
|
|
391
|
+
},
|
|
392
|
+
worker: {
|
|
393
|
+
module: "./dist/emotion-react.edge-light.esm.js",
|
|
394
|
+
"import": "./dist/emotion-react.edge-light.cjs.mjs",
|
|
395
|
+
"default": "./dist/emotion-react.edge-light.cjs.js"
|
|
396
|
+
},
|
|
397
|
+
workerd: {
|
|
398
|
+
module: "./dist/emotion-react.edge-light.esm.js",
|
|
399
|
+
"import": "./dist/emotion-react.edge-light.cjs.mjs",
|
|
400
|
+
"default": "./dist/emotion-react.edge-light.cjs.js"
|
|
401
|
+
},
|
|
402
|
+
browser: {
|
|
403
|
+
module: "./dist/emotion-react.browser.esm.js",
|
|
404
|
+
"import": "./dist/emotion-react.browser.cjs.mjs",
|
|
405
|
+
"default": "./dist/emotion-react.browser.cjs.js"
|
|
406
|
+
},
|
|
407
|
+
module: "./dist/emotion-react.esm.js",
|
|
408
|
+
"import": "./dist/emotion-react.cjs.mjs",
|
|
409
|
+
"default": "./dist/emotion-react.cjs.js"
|
|
410
|
+
},
|
|
411
|
+
"./jsx-runtime": {
|
|
412
|
+
types: {
|
|
413
|
+
"import": "./jsx-runtime/dist/emotion-react-jsx-runtime.cjs.mjs",
|
|
414
|
+
"default": "./jsx-runtime/dist/emotion-react-jsx-runtime.cjs.js"
|
|
415
|
+
},
|
|
416
|
+
development: {
|
|
417
|
+
"edge-light": {
|
|
418
|
+
module: "./jsx-runtime/dist/emotion-react-jsx-runtime.development.edge-light.esm.js",
|
|
419
|
+
"import": "./jsx-runtime/dist/emotion-react-jsx-runtime.development.edge-light.cjs.mjs",
|
|
420
|
+
"default": "./jsx-runtime/dist/emotion-react-jsx-runtime.development.edge-light.cjs.js"
|
|
421
|
+
},
|
|
422
|
+
worker: {
|
|
423
|
+
module: "./jsx-runtime/dist/emotion-react-jsx-runtime.development.edge-light.esm.js",
|
|
424
|
+
"import": "./jsx-runtime/dist/emotion-react-jsx-runtime.development.edge-light.cjs.mjs",
|
|
425
|
+
"default": "./jsx-runtime/dist/emotion-react-jsx-runtime.development.edge-light.cjs.js"
|
|
426
|
+
},
|
|
427
|
+
workerd: {
|
|
428
|
+
module: "./jsx-runtime/dist/emotion-react-jsx-runtime.development.edge-light.esm.js",
|
|
429
|
+
"import": "./jsx-runtime/dist/emotion-react-jsx-runtime.development.edge-light.cjs.mjs",
|
|
430
|
+
"default": "./jsx-runtime/dist/emotion-react-jsx-runtime.development.edge-light.cjs.js"
|
|
431
|
+
},
|
|
432
|
+
browser: {
|
|
433
|
+
module: "./jsx-runtime/dist/emotion-react-jsx-runtime.browser.development.esm.js",
|
|
434
|
+
"import": "./jsx-runtime/dist/emotion-react-jsx-runtime.browser.development.cjs.mjs",
|
|
435
|
+
"default": "./jsx-runtime/dist/emotion-react-jsx-runtime.browser.development.cjs.js"
|
|
436
|
+
},
|
|
437
|
+
module: "./jsx-runtime/dist/emotion-react-jsx-runtime.development.esm.js",
|
|
438
|
+
"import": "./jsx-runtime/dist/emotion-react-jsx-runtime.development.cjs.mjs",
|
|
439
|
+
"default": "./jsx-runtime/dist/emotion-react-jsx-runtime.development.cjs.js"
|
|
440
|
+
},
|
|
441
|
+
"edge-light": {
|
|
442
|
+
module: "./jsx-runtime/dist/emotion-react-jsx-runtime.edge-light.esm.js",
|
|
443
|
+
"import": "./jsx-runtime/dist/emotion-react-jsx-runtime.edge-light.cjs.mjs",
|
|
444
|
+
"default": "./jsx-runtime/dist/emotion-react-jsx-runtime.edge-light.cjs.js"
|
|
445
|
+
},
|
|
446
|
+
worker: {
|
|
447
|
+
module: "./jsx-runtime/dist/emotion-react-jsx-runtime.edge-light.esm.js",
|
|
448
|
+
"import": "./jsx-runtime/dist/emotion-react-jsx-runtime.edge-light.cjs.mjs",
|
|
449
|
+
"default": "./jsx-runtime/dist/emotion-react-jsx-runtime.edge-light.cjs.js"
|
|
450
|
+
},
|
|
451
|
+
workerd: {
|
|
452
|
+
module: "./jsx-runtime/dist/emotion-react-jsx-runtime.edge-light.esm.js",
|
|
453
|
+
"import": "./jsx-runtime/dist/emotion-react-jsx-runtime.edge-light.cjs.mjs",
|
|
454
|
+
"default": "./jsx-runtime/dist/emotion-react-jsx-runtime.edge-light.cjs.js"
|
|
455
|
+
},
|
|
456
|
+
browser: {
|
|
457
|
+
module: "./jsx-runtime/dist/emotion-react-jsx-runtime.browser.esm.js",
|
|
458
|
+
"import": "./jsx-runtime/dist/emotion-react-jsx-runtime.browser.cjs.mjs",
|
|
459
|
+
"default": "./jsx-runtime/dist/emotion-react-jsx-runtime.browser.cjs.js"
|
|
460
|
+
},
|
|
461
|
+
module: "./jsx-runtime/dist/emotion-react-jsx-runtime.esm.js",
|
|
462
|
+
"import": "./jsx-runtime/dist/emotion-react-jsx-runtime.cjs.mjs",
|
|
463
|
+
"default": "./jsx-runtime/dist/emotion-react-jsx-runtime.cjs.js"
|
|
464
|
+
},
|
|
465
|
+
"./_isolated-hnrs": {
|
|
466
|
+
types: {
|
|
467
|
+
"import": "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.mjs",
|
|
468
|
+
"default": "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.js"
|
|
469
|
+
},
|
|
470
|
+
development: {
|
|
471
|
+
"edge-light": {
|
|
472
|
+
module: "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.development.edge-light.esm.js",
|
|
473
|
+
"import": "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.development.edge-light.cjs.mjs",
|
|
474
|
+
"default": "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.development.edge-light.cjs.js"
|
|
475
|
+
},
|
|
476
|
+
worker: {
|
|
477
|
+
module: "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.development.edge-light.esm.js",
|
|
478
|
+
"import": "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.development.edge-light.cjs.mjs",
|
|
479
|
+
"default": "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.development.edge-light.cjs.js"
|
|
480
|
+
},
|
|
481
|
+
workerd: {
|
|
482
|
+
module: "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.development.edge-light.esm.js",
|
|
483
|
+
"import": "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.development.edge-light.cjs.mjs",
|
|
484
|
+
"default": "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.development.edge-light.cjs.js"
|
|
485
|
+
},
|
|
486
|
+
browser: {
|
|
487
|
+
module: "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.development.esm.js",
|
|
488
|
+
"import": "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.development.cjs.mjs",
|
|
489
|
+
"default": "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.development.cjs.js"
|
|
490
|
+
},
|
|
491
|
+
module: "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.development.esm.js",
|
|
492
|
+
"import": "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.development.cjs.mjs",
|
|
493
|
+
"default": "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.development.cjs.js"
|
|
494
|
+
},
|
|
495
|
+
"edge-light": {
|
|
496
|
+
module: "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.edge-light.esm.js",
|
|
497
|
+
"import": "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.edge-light.cjs.mjs",
|
|
498
|
+
"default": "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.edge-light.cjs.js"
|
|
499
|
+
},
|
|
500
|
+
worker: {
|
|
501
|
+
module: "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.edge-light.esm.js",
|
|
502
|
+
"import": "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.edge-light.cjs.mjs",
|
|
503
|
+
"default": "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.edge-light.cjs.js"
|
|
504
|
+
},
|
|
505
|
+
workerd: {
|
|
506
|
+
module: "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.edge-light.esm.js",
|
|
507
|
+
"import": "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.edge-light.cjs.mjs",
|
|
508
|
+
"default": "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.edge-light.cjs.js"
|
|
509
|
+
},
|
|
510
|
+
browser: {
|
|
511
|
+
module: "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.esm.js",
|
|
512
|
+
"import": "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.cjs.mjs",
|
|
513
|
+
"default": "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.cjs.js"
|
|
514
|
+
},
|
|
515
|
+
module: "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.esm.js",
|
|
516
|
+
"import": "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.mjs",
|
|
517
|
+
"default": "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.js"
|
|
518
|
+
},
|
|
519
|
+
"./jsx-dev-runtime": {
|
|
520
|
+
types: {
|
|
521
|
+
"import": "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.mjs",
|
|
522
|
+
"default": "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.js"
|
|
523
|
+
},
|
|
524
|
+
development: {
|
|
525
|
+
"edge-light": {
|
|
526
|
+
module: "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.development.edge-light.esm.js",
|
|
527
|
+
"import": "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.development.edge-light.cjs.mjs",
|
|
528
|
+
"default": "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.development.edge-light.cjs.js"
|
|
529
|
+
},
|
|
530
|
+
worker: {
|
|
531
|
+
module: "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.development.edge-light.esm.js",
|
|
532
|
+
"import": "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.development.edge-light.cjs.mjs",
|
|
533
|
+
"default": "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.development.edge-light.cjs.js"
|
|
534
|
+
},
|
|
535
|
+
workerd: {
|
|
536
|
+
module: "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.development.edge-light.esm.js",
|
|
537
|
+
"import": "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.development.edge-light.cjs.mjs",
|
|
538
|
+
"default": "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.development.edge-light.cjs.js"
|
|
539
|
+
},
|
|
540
|
+
browser: {
|
|
541
|
+
module: "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.browser.development.esm.js",
|
|
542
|
+
"import": "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.browser.development.cjs.mjs",
|
|
543
|
+
"default": "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.browser.development.cjs.js"
|
|
544
|
+
},
|
|
545
|
+
module: "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.development.esm.js",
|
|
546
|
+
"import": "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.development.cjs.mjs",
|
|
547
|
+
"default": "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.development.cjs.js"
|
|
548
|
+
},
|
|
549
|
+
"edge-light": {
|
|
550
|
+
module: "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.edge-light.esm.js",
|
|
551
|
+
"import": "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.edge-light.cjs.mjs",
|
|
552
|
+
"default": "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.edge-light.cjs.js"
|
|
553
|
+
},
|
|
554
|
+
worker: {
|
|
555
|
+
module: "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.edge-light.esm.js",
|
|
556
|
+
"import": "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.edge-light.cjs.mjs",
|
|
557
|
+
"default": "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.edge-light.cjs.js"
|
|
558
|
+
},
|
|
559
|
+
workerd: {
|
|
560
|
+
module: "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.edge-light.esm.js",
|
|
561
|
+
"import": "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.edge-light.cjs.mjs",
|
|
562
|
+
"default": "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.edge-light.cjs.js"
|
|
563
|
+
},
|
|
564
|
+
browser: {
|
|
565
|
+
module: "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.browser.esm.js",
|
|
566
|
+
"import": "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.browser.cjs.mjs",
|
|
567
|
+
"default": "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.browser.cjs.js"
|
|
568
|
+
},
|
|
569
|
+
module: "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.esm.js",
|
|
570
|
+
"import": "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.mjs",
|
|
571
|
+
"default": "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.js"
|
|
572
|
+
},
|
|
573
|
+
"./package.json": "./package.json",
|
|
574
|
+
"./types/css-prop": "./types/css-prop.d.ts",
|
|
575
|
+
"./macro": {
|
|
576
|
+
types: {
|
|
577
|
+
"import": "./macro.d.mts",
|
|
578
|
+
"default": "./macro.d.ts"
|
|
579
|
+
},
|
|
580
|
+
"default": "./macro.js"
|
|
581
|
+
}
|
|
582
|
+
},
|
|
583
|
+
imports: {
|
|
584
|
+
"#is-development": {
|
|
585
|
+
development: "./src/conditions/true.ts",
|
|
586
|
+
"default": "./src/conditions/false.ts"
|
|
587
|
+
},
|
|
588
|
+
"#is-browser": {
|
|
589
|
+
"edge-light": "./src/conditions/false.ts",
|
|
590
|
+
workerd: "./src/conditions/false.ts",
|
|
591
|
+
worker: "./src/conditions/false.ts",
|
|
592
|
+
browser: "./src/conditions/true.ts",
|
|
593
|
+
"default": "./src/conditions/is-browser.ts"
|
|
594
|
+
}
|
|
595
|
+
},
|
|
596
|
+
files: [
|
|
597
|
+
"src",
|
|
598
|
+
"dist",
|
|
599
|
+
"jsx-runtime",
|
|
600
|
+
"jsx-dev-runtime",
|
|
601
|
+
"_isolated-hnrs",
|
|
602
|
+
"types/css-prop.d.ts",
|
|
603
|
+
"macro.*"
|
|
604
|
+
],
|
|
605
|
+
sideEffects: false,
|
|
606
|
+
author: "Emotion Contributors",
|
|
607
|
+
license: "MIT",
|
|
608
|
+
scripts: {
|
|
609
|
+
"test:typescript": "dtslint types"
|
|
610
|
+
},
|
|
611
|
+
dependencies: {
|
|
612
|
+
"@babel/runtime": "^7.18.3",
|
|
613
|
+
"@emotion/babel-plugin": "^11.13.5",
|
|
614
|
+
"@emotion/cache": "^11.14.0",
|
|
615
|
+
"@emotion/serialize": "^1.3.3",
|
|
616
|
+
"@emotion/use-insertion-effect-with-fallbacks": "^1.2.0",
|
|
617
|
+
"@emotion/utils": "^1.4.2",
|
|
618
|
+
"@emotion/weak-memoize": "^0.4.0",
|
|
619
|
+
"hoist-non-react-statics": "^3.3.1"
|
|
620
|
+
},
|
|
621
|
+
peerDependencies: {
|
|
622
|
+
react: ">=16.8.0"
|
|
623
|
+
},
|
|
624
|
+
peerDependenciesMeta: {
|
|
625
|
+
"@types/react": {
|
|
626
|
+
optional: true
|
|
627
|
+
}
|
|
628
|
+
},
|
|
629
|
+
devDependencies: {
|
|
630
|
+
"@definitelytyped/dtslint": "0.0.112",
|
|
631
|
+
"@emotion/css": "11.13.5",
|
|
632
|
+
"@emotion/css-prettifier": "1.2.0",
|
|
633
|
+
"@emotion/server": "11.11.0",
|
|
634
|
+
"@emotion/styled": "11.14.0",
|
|
635
|
+
"@types/hoist-non-react-statics": "^3.3.5",
|
|
636
|
+
"html-tag-names": "^1.1.2",
|
|
637
|
+
react: "16.14.0",
|
|
638
|
+
"svg-tag-names": "^1.1.1",
|
|
639
|
+
typescript: "^5.4.5"
|
|
640
|
+
},
|
|
641
|
+
repository: "https://github.com/emotion-js/emotion/tree/main/packages/react",
|
|
642
|
+
publishConfig: {
|
|
643
|
+
access: "public"
|
|
644
|
+
},
|
|
645
|
+
"umd:main": "dist/emotion-react.umd.min.js",
|
|
646
|
+
preconstruct: {
|
|
647
|
+
entrypoints: [
|
|
648
|
+
"./index.ts",
|
|
649
|
+
"./jsx-runtime.ts",
|
|
650
|
+
"./jsx-dev-runtime.ts",
|
|
651
|
+
"./_isolated-hnrs.ts"
|
|
652
|
+
],
|
|
653
|
+
umdName: "emotionReact",
|
|
654
|
+
exports: {
|
|
655
|
+
extra: {
|
|
656
|
+
"./types/css-prop": "./types/css-prop.d.ts",
|
|
657
|
+
"./macro": {
|
|
658
|
+
types: {
|
|
659
|
+
"import": "./macro.d.mts",
|
|
660
|
+
"default": "./macro.d.ts"
|
|
661
|
+
},
|
|
662
|
+
"default": "./macro.js"
|
|
663
|
+
}
|
|
664
|
+
}
|
|
665
|
+
}
|
|
666
|
+
}
|
|
667
|
+
};
|
|
668
|
+
|
|
669
|
+
var jsx = function jsx(type, props) {
|
|
670
|
+
// eslint-disable-next-line prefer-rest-params
|
|
671
|
+
var args = arguments;
|
|
672
|
+
|
|
673
|
+
if (props == null || !_emotion_element_489459f2_browser_development_esm_js__WEBPACK_IMPORTED_MODULE_0__.h.call(props, 'css')) {
|
|
674
|
+
return react__WEBPACK_IMPORTED_MODULE_1__.createElement.apply(undefined, args);
|
|
675
|
+
}
|
|
676
|
+
|
|
677
|
+
var argsLength = args.length;
|
|
678
|
+
var createElementArgArray = new Array(argsLength);
|
|
679
|
+
createElementArgArray[0] = _emotion_element_489459f2_browser_development_esm_js__WEBPACK_IMPORTED_MODULE_0__.E;
|
|
680
|
+
createElementArgArray[1] = (0,_emotion_element_489459f2_browser_development_esm_js__WEBPACK_IMPORTED_MODULE_0__.c)(type, props);
|
|
681
|
+
|
|
682
|
+
for (var i = 2; i < argsLength; i++) {
|
|
683
|
+
createElementArgArray[i] = args[i];
|
|
684
|
+
}
|
|
685
|
+
|
|
686
|
+
return react__WEBPACK_IMPORTED_MODULE_1__.createElement.apply(null, createElementArgArray);
|
|
687
|
+
};
|
|
688
|
+
|
|
689
|
+
(function (_jsx) {
|
|
690
|
+
var JSX;
|
|
691
|
+
|
|
692
|
+
(function (_JSX) {})(JSX || (JSX = _jsx.JSX || (_jsx.JSX = {})));
|
|
693
|
+
})(jsx || (jsx = {}));
|
|
694
|
+
|
|
695
|
+
var warnedAboutCssPropForGlobal = false; // maintain place over rerenders.
|
|
696
|
+
// initial render from browser, insertBefore context.sheet.tags[0] or if a style hasn't been inserted there yet, appendChild
|
|
697
|
+
// initial client-side render from SSR, use place of hydrating tag
|
|
698
|
+
|
|
699
|
+
var Global = /* #__PURE__ */(0,_emotion_element_489459f2_browser_development_esm_js__WEBPACK_IMPORTED_MODULE_0__.w)(function (props, cache) {
|
|
700
|
+
if (!warnedAboutCssPropForGlobal && ( // check for className as well since the user is
|
|
701
|
+
// probably using the custom createElement which
|
|
702
|
+
// means it will be turned into a className prop
|
|
703
|
+
// I don't really want to add it to the type since it shouldn't be used
|
|
704
|
+
'className' in props && props.className || 'css' in props && props.css)) {
|
|
705
|
+
console.error("It looks like you're using the css prop on Global, did you mean to use the styles prop instead?");
|
|
706
|
+
warnedAboutCssPropForGlobal = true;
|
|
707
|
+
}
|
|
708
|
+
|
|
709
|
+
var styles = props.styles;
|
|
710
|
+
var serialized = (0,_emotion_serialize__WEBPACK_IMPORTED_MODULE_4__.serializeStyles)([styles], undefined, react__WEBPACK_IMPORTED_MODULE_1__.useContext(_emotion_element_489459f2_browser_development_esm_js__WEBPACK_IMPORTED_MODULE_0__.T));
|
|
711
|
+
// but it is based on a constant that will never change at runtime
|
|
712
|
+
// it's effectively like having two implementations and switching them out
|
|
713
|
+
// so it's not actually breaking anything
|
|
714
|
+
|
|
715
|
+
|
|
716
|
+
var sheetRef = react__WEBPACK_IMPORTED_MODULE_1__.useRef();
|
|
717
|
+
(0,_emotion_use_insertion_effect_with_fallbacks__WEBPACK_IMPORTED_MODULE_3__.useInsertionEffectWithLayoutFallback)(function () {
|
|
718
|
+
var key = cache.key + "-global"; // use case of https://github.com/emotion-js/emotion/issues/2675
|
|
719
|
+
|
|
720
|
+
var sheet = new cache.sheet.constructor({
|
|
721
|
+
key: key,
|
|
722
|
+
nonce: cache.sheet.nonce,
|
|
723
|
+
container: cache.sheet.container,
|
|
724
|
+
speedy: cache.sheet.isSpeedy
|
|
725
|
+
});
|
|
726
|
+
var rehydrating = false;
|
|
727
|
+
var node = document.querySelector("style[data-emotion=\"" + key + " " + serialized.name + "\"]");
|
|
728
|
+
|
|
729
|
+
if (cache.sheet.tags.length) {
|
|
730
|
+
sheet.before = cache.sheet.tags[0];
|
|
731
|
+
}
|
|
732
|
+
|
|
733
|
+
if (node !== null) {
|
|
734
|
+
rehydrating = true; // clear the hash so this node won't be recognizable as rehydratable by other <Global/>s
|
|
735
|
+
|
|
736
|
+
node.setAttribute('data-emotion', key);
|
|
737
|
+
sheet.hydrate([node]);
|
|
738
|
+
}
|
|
739
|
+
|
|
740
|
+
sheetRef.current = [sheet, rehydrating];
|
|
741
|
+
return function () {
|
|
742
|
+
sheet.flush();
|
|
743
|
+
};
|
|
744
|
+
}, [cache]);
|
|
745
|
+
(0,_emotion_use_insertion_effect_with_fallbacks__WEBPACK_IMPORTED_MODULE_3__.useInsertionEffectWithLayoutFallback)(function () {
|
|
746
|
+
var sheetRefCurrent = sheetRef.current;
|
|
747
|
+
var sheet = sheetRefCurrent[0],
|
|
748
|
+
rehydrating = sheetRefCurrent[1];
|
|
749
|
+
|
|
750
|
+
if (rehydrating) {
|
|
751
|
+
sheetRefCurrent[1] = false;
|
|
752
|
+
return;
|
|
753
|
+
}
|
|
754
|
+
|
|
755
|
+
if (serialized.next !== undefined) {
|
|
756
|
+
// insert keyframes
|
|
757
|
+
(0,_emotion_utils__WEBPACK_IMPORTED_MODULE_2__.insertStyles)(cache, serialized.next, true);
|
|
758
|
+
}
|
|
759
|
+
|
|
760
|
+
if (sheet.tags.length) {
|
|
761
|
+
// if this doesn't exist then it will be null so the style element will be appended
|
|
762
|
+
var element = sheet.tags[sheet.tags.length - 1].nextElementSibling;
|
|
763
|
+
sheet.before = element;
|
|
764
|
+
sheet.flush();
|
|
765
|
+
}
|
|
766
|
+
|
|
767
|
+
cache.insert("", serialized, sheet, false);
|
|
768
|
+
}, [cache, serialized.name]);
|
|
769
|
+
return null;
|
|
770
|
+
});
|
|
771
|
+
|
|
772
|
+
{
|
|
773
|
+
Global.displayName = 'EmotionGlobal';
|
|
774
|
+
}
|
|
775
|
+
|
|
776
|
+
function css() {
|
|
777
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
778
|
+
args[_key] = arguments[_key];
|
|
779
|
+
}
|
|
780
|
+
|
|
781
|
+
return (0,_emotion_serialize__WEBPACK_IMPORTED_MODULE_4__.serializeStyles)(args);
|
|
782
|
+
}
|
|
783
|
+
|
|
784
|
+
function keyframes() {
|
|
785
|
+
var insertable = css.apply(void 0, arguments);
|
|
786
|
+
var name = "animation-" + insertable.name;
|
|
787
|
+
return {
|
|
788
|
+
name: name,
|
|
789
|
+
styles: "@keyframes " + name + "{" + insertable.styles + "}",
|
|
790
|
+
anim: 1,
|
|
791
|
+
toString: function toString() {
|
|
792
|
+
return "_EMO_" + this.name + "_" + this.styles + "_EMO_";
|
|
793
|
+
}
|
|
794
|
+
};
|
|
795
|
+
}
|
|
796
|
+
|
|
797
|
+
var classnames = function classnames(args) {
|
|
798
|
+
var len = args.length;
|
|
799
|
+
var i = 0;
|
|
800
|
+
var cls = '';
|
|
801
|
+
|
|
802
|
+
for (; i < len; i++) {
|
|
803
|
+
var arg = args[i];
|
|
804
|
+
if (arg == null) continue;
|
|
805
|
+
var toAdd = void 0;
|
|
806
|
+
|
|
807
|
+
switch (typeof arg) {
|
|
808
|
+
case 'boolean':
|
|
809
|
+
break;
|
|
810
|
+
|
|
811
|
+
case 'object':
|
|
812
|
+
{
|
|
813
|
+
if (Array.isArray(arg)) {
|
|
814
|
+
toAdd = classnames(arg);
|
|
815
|
+
} else {
|
|
816
|
+
if (arg.styles !== undefined && arg.name !== undefined) {
|
|
817
|
+
console.error('You have passed styles created with `css` from `@emotion/react` package to the `cx`.\n' + '`cx` is meant to compose class names (strings) so you should convert those styles to a class name by passing them to the `css` received from <ClassNames/> component.');
|
|
818
|
+
}
|
|
819
|
+
|
|
820
|
+
toAdd = '';
|
|
821
|
+
|
|
822
|
+
for (var k in arg) {
|
|
823
|
+
if (arg[k] && k) {
|
|
824
|
+
toAdd && (toAdd += ' ');
|
|
825
|
+
toAdd += k;
|
|
826
|
+
}
|
|
827
|
+
}
|
|
828
|
+
}
|
|
829
|
+
|
|
830
|
+
break;
|
|
831
|
+
}
|
|
832
|
+
|
|
833
|
+
default:
|
|
834
|
+
{
|
|
835
|
+
toAdd = arg;
|
|
836
|
+
}
|
|
837
|
+
}
|
|
838
|
+
|
|
839
|
+
if (toAdd) {
|
|
840
|
+
cls && (cls += ' ');
|
|
841
|
+
cls += toAdd;
|
|
842
|
+
}
|
|
843
|
+
}
|
|
844
|
+
|
|
845
|
+
return cls;
|
|
846
|
+
};
|
|
847
|
+
|
|
848
|
+
function merge(registered, css, className) {
|
|
849
|
+
var registeredStyles = [];
|
|
850
|
+
var rawClassName = (0,_emotion_utils__WEBPACK_IMPORTED_MODULE_2__.getRegisteredStyles)(registered, registeredStyles, className);
|
|
851
|
+
|
|
852
|
+
if (registeredStyles.length < 2) {
|
|
853
|
+
return className;
|
|
854
|
+
}
|
|
855
|
+
|
|
856
|
+
return rawClassName + css(registeredStyles);
|
|
857
|
+
}
|
|
858
|
+
|
|
859
|
+
var Insertion = function Insertion(_ref) {
|
|
860
|
+
var cache = _ref.cache,
|
|
861
|
+
serializedArr = _ref.serializedArr;
|
|
862
|
+
(0,_emotion_use_insertion_effect_with_fallbacks__WEBPACK_IMPORTED_MODULE_3__.useInsertionEffectAlwaysWithSyncFallback)(function () {
|
|
863
|
+
|
|
864
|
+
for (var i = 0; i < serializedArr.length; i++) {
|
|
865
|
+
(0,_emotion_utils__WEBPACK_IMPORTED_MODULE_2__.insertStyles)(cache, serializedArr[i], false);
|
|
866
|
+
}
|
|
867
|
+
});
|
|
868
|
+
|
|
869
|
+
return null;
|
|
870
|
+
};
|
|
871
|
+
|
|
872
|
+
var ClassNames = /* #__PURE__ */(0,_emotion_element_489459f2_browser_development_esm_js__WEBPACK_IMPORTED_MODULE_0__.w)(function (props, cache) {
|
|
873
|
+
var hasRendered = false;
|
|
874
|
+
var serializedArr = [];
|
|
875
|
+
|
|
876
|
+
var css = function css() {
|
|
877
|
+
if (hasRendered && isDevelopment) {
|
|
878
|
+
throw new Error('css can only be used during render');
|
|
879
|
+
}
|
|
880
|
+
|
|
881
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
882
|
+
args[_key] = arguments[_key];
|
|
883
|
+
}
|
|
884
|
+
|
|
885
|
+
var serialized = (0,_emotion_serialize__WEBPACK_IMPORTED_MODULE_4__.serializeStyles)(args, cache.registered);
|
|
886
|
+
serializedArr.push(serialized); // registration has to happen here as the result of this might get consumed by `cx`
|
|
887
|
+
|
|
888
|
+
(0,_emotion_utils__WEBPACK_IMPORTED_MODULE_2__.registerStyles)(cache, serialized, false);
|
|
889
|
+
return cache.key + "-" + serialized.name;
|
|
890
|
+
};
|
|
891
|
+
|
|
892
|
+
var cx = function cx() {
|
|
893
|
+
if (hasRendered && isDevelopment) {
|
|
894
|
+
throw new Error('cx can only be used during render');
|
|
895
|
+
}
|
|
896
|
+
|
|
897
|
+
for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
|
898
|
+
args[_key2] = arguments[_key2];
|
|
899
|
+
}
|
|
900
|
+
|
|
901
|
+
return merge(cache.registered, css, classnames(args));
|
|
902
|
+
};
|
|
903
|
+
|
|
904
|
+
var content = {
|
|
905
|
+
css: css,
|
|
906
|
+
cx: cx,
|
|
907
|
+
theme: react__WEBPACK_IMPORTED_MODULE_1__.useContext(_emotion_element_489459f2_browser_development_esm_js__WEBPACK_IMPORTED_MODULE_0__.T)
|
|
908
|
+
};
|
|
909
|
+
var ele = props.children(content);
|
|
910
|
+
hasRendered = true;
|
|
911
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(react__WEBPACK_IMPORTED_MODULE_1__.Fragment, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(Insertion, {
|
|
912
|
+
cache: cache,
|
|
913
|
+
serializedArr: serializedArr
|
|
914
|
+
}), ele);
|
|
915
|
+
});
|
|
916
|
+
|
|
917
|
+
{
|
|
918
|
+
ClassNames.displayName = 'EmotionClassNames';
|
|
919
|
+
}
|
|
920
|
+
|
|
921
|
+
{
|
|
922
|
+
var isBrowser = typeof document !== 'undefined'; // #1727, #2905 for some reason Jest and Vitest evaluate modules twice if some consuming module gets mocked
|
|
923
|
+
|
|
924
|
+
var isTestEnv = typeof jest !== 'undefined' || typeof vi !== 'undefined';
|
|
925
|
+
|
|
926
|
+
if (isBrowser && !isTestEnv) {
|
|
927
|
+
// globalThis has wide browser support - https://caniuse.com/?search=globalThis, Node.js 12 and later
|
|
928
|
+
var globalContext = typeof globalThis !== 'undefined' ? globalThis // eslint-disable-line no-undef
|
|
929
|
+
: isBrowser ? window : __webpack_require__.g;
|
|
930
|
+
var globalKey = "__EMOTION_REACT_" + pkg.version.split('.')[0] + "__";
|
|
931
|
+
|
|
932
|
+
if (globalContext[globalKey]) {
|
|
933
|
+
console.warn('You are loading @emotion/react when it is already loaded. Running ' + 'multiple instances may cause problems. This can happen if multiple ' + 'versions are used, or if multiple builds of the same version are ' + 'used.');
|
|
934
|
+
}
|
|
935
|
+
|
|
936
|
+
globalContext[globalKey] = true;
|
|
937
|
+
}
|
|
938
|
+
}
|
|
939
|
+
|
|
940
|
+
|
|
941
|
+
|
|
942
|
+
|
|
943
|
+
/***/ },
|
|
944
|
+
|
|
945
|
+
/***/ "./node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js"
|
|
946
|
+
/*!**********************************************************************************!*\
|
|
947
|
+
!*** ./node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js ***!
|
|
948
|
+
\**********************************************************************************/
|
|
949
|
+
(module, __unused_webpack_exports, __webpack_require__) {
|
|
950
|
+
|
|
951
|
+
|
|
952
|
+
|
|
953
|
+
var reactIs = __webpack_require__(/*! react-is */ "./node_modules/react-is/index.js");
|
|
954
|
+
|
|
955
|
+
/**
|
|
956
|
+
* Copyright 2015, Yahoo! Inc.
|
|
957
|
+
* Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.
|
|
958
|
+
*/
|
|
959
|
+
var REACT_STATICS = {
|
|
960
|
+
childContextTypes: true,
|
|
961
|
+
contextType: true,
|
|
962
|
+
contextTypes: true,
|
|
963
|
+
defaultProps: true,
|
|
964
|
+
displayName: true,
|
|
965
|
+
getDefaultProps: true,
|
|
966
|
+
getDerivedStateFromError: true,
|
|
967
|
+
getDerivedStateFromProps: true,
|
|
968
|
+
mixins: true,
|
|
969
|
+
propTypes: true,
|
|
970
|
+
type: true
|
|
971
|
+
};
|
|
972
|
+
var KNOWN_STATICS = {
|
|
973
|
+
name: true,
|
|
974
|
+
length: true,
|
|
975
|
+
prototype: true,
|
|
976
|
+
caller: true,
|
|
977
|
+
callee: true,
|
|
978
|
+
arguments: true,
|
|
979
|
+
arity: true
|
|
980
|
+
};
|
|
981
|
+
var FORWARD_REF_STATICS = {
|
|
982
|
+
'$$typeof': true,
|
|
983
|
+
render: true,
|
|
984
|
+
defaultProps: true,
|
|
985
|
+
displayName: true,
|
|
986
|
+
propTypes: true
|
|
987
|
+
};
|
|
988
|
+
var MEMO_STATICS = {
|
|
989
|
+
'$$typeof': true,
|
|
990
|
+
compare: true,
|
|
991
|
+
defaultProps: true,
|
|
992
|
+
displayName: true,
|
|
993
|
+
propTypes: true,
|
|
994
|
+
type: true
|
|
995
|
+
};
|
|
996
|
+
var TYPE_STATICS = {};
|
|
997
|
+
TYPE_STATICS[reactIs.ForwardRef] = FORWARD_REF_STATICS;
|
|
998
|
+
TYPE_STATICS[reactIs.Memo] = MEMO_STATICS;
|
|
999
|
+
|
|
1000
|
+
function getStatics(component) {
|
|
1001
|
+
// React v16.11 and below
|
|
1002
|
+
if (reactIs.isMemo(component)) {
|
|
1003
|
+
return MEMO_STATICS;
|
|
1004
|
+
} // React v16.12 and above
|
|
1005
|
+
|
|
1006
|
+
|
|
1007
|
+
return TYPE_STATICS[component['$$typeof']] || REACT_STATICS;
|
|
1008
|
+
}
|
|
1009
|
+
|
|
1010
|
+
var defineProperty = Object.defineProperty;
|
|
1011
|
+
var getOwnPropertyNames = Object.getOwnPropertyNames;
|
|
1012
|
+
var getOwnPropertySymbols = Object.getOwnPropertySymbols;
|
|
1013
|
+
var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
1014
|
+
var getPrototypeOf = Object.getPrototypeOf;
|
|
1015
|
+
var objectPrototype = Object.prototype;
|
|
1016
|
+
function hoistNonReactStatics(targetComponent, sourceComponent, blacklist) {
|
|
1017
|
+
if (typeof sourceComponent !== 'string') {
|
|
1018
|
+
// don't hoist over string (html) components
|
|
1019
|
+
if (objectPrototype) {
|
|
1020
|
+
var inheritedComponent = getPrototypeOf(sourceComponent);
|
|
1021
|
+
|
|
1022
|
+
if (inheritedComponent && inheritedComponent !== objectPrototype) {
|
|
1023
|
+
hoistNonReactStatics(targetComponent, inheritedComponent, blacklist);
|
|
1024
|
+
}
|
|
1025
|
+
}
|
|
1026
|
+
|
|
1027
|
+
var keys = getOwnPropertyNames(sourceComponent);
|
|
1028
|
+
|
|
1029
|
+
if (getOwnPropertySymbols) {
|
|
1030
|
+
keys = keys.concat(getOwnPropertySymbols(sourceComponent));
|
|
1031
|
+
}
|
|
1032
|
+
|
|
1033
|
+
var targetStatics = getStatics(targetComponent);
|
|
1034
|
+
var sourceStatics = getStatics(sourceComponent);
|
|
1035
|
+
|
|
1036
|
+
for (var i = 0; i < keys.length; ++i) {
|
|
1037
|
+
var key = keys[i];
|
|
1038
|
+
|
|
1039
|
+
if (!KNOWN_STATICS[key] && !(blacklist && blacklist[key]) && !(sourceStatics && sourceStatics[key]) && !(targetStatics && targetStatics[key])) {
|
|
1040
|
+
var descriptor = getOwnPropertyDescriptor(sourceComponent, key);
|
|
1041
|
+
|
|
1042
|
+
try {
|
|
1043
|
+
// Avoid failures from read-only properties
|
|
1044
|
+
defineProperty(targetComponent, key, descriptor);
|
|
1045
|
+
} catch (e) {}
|
|
1046
|
+
}
|
|
1047
|
+
}
|
|
1048
|
+
}
|
|
1049
|
+
|
|
1050
|
+
return targetComponent;
|
|
1051
|
+
}
|
|
1052
|
+
|
|
1053
|
+
module.exports = hoistNonReactStatics;
|
|
1054
|
+
|
|
1055
|
+
|
|
1056
|
+
/***/ }
|
|
1057
|
+
|
|
1058
|
+
}]);
|
|
1059
|
+
//# sourceMappingURL=vendors-node_modules_emotion_react_dist_emotion-react_browser_development_esm_js.36b49c71871f98d4f549.js.map
|