@appshell/react-shell 1.0.0-alpha.8 → 1.0.0-alpha.80

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.
Files changed (38) hide show
  1. package/README.md +33 -26
  2. package/dist/144.js +1 -1
  3. package/dist/466.js +2 -0
  4. package/dist/466.js.LICENSE.txt +9 -0
  5. package/dist/58.js +1 -0
  6. package/dist/630.js +1 -0
  7. package/dist/677.js +1 -0
  8. package/dist/85.js +2 -0
  9. package/dist/85.js.LICENSE.txt +9 -0
  10. package/dist/941.js +1 -0
  11. package/dist/dev/favicon.ico +0 -0
  12. package/dist/dev/logo192.png +0 -0
  13. package/dist/dev/logo512.png +0 -0
  14. package/dist/dev/main.js +8160 -0
  15. package/dist/dev/main.js.map +1 -0
  16. package/dist/dev/manifest.json +25 -0
  17. package/dist/dev/mf-manifest.json +130 -0
  18. package/dist/dev/mf-stats.json +150 -0
  19. package/dist/dev/react_src_index_ts.js +554 -0
  20. package/dist/dev/react_src_index_ts.js.map +1 -0
  21. package/dist/dev/runtime_src_index_ts.js +231 -0
  22. package/dist/dev/runtime_src_index_ts.js.map +1 -0
  23. package/dist/dev/src_bootstrap_tsx.js +768 -0
  24. package/dist/dev/src_bootstrap_tsx.js.map +1 -0
  25. package/dist/dev/vendors-node_modules_react-dom_index_js.js +30577 -0
  26. package/dist/dev/vendors-node_modules_react-dom_index_js.js.map +1 -0
  27. package/dist/dev/vendors-node_modules_react_index_js.js +2771 -0
  28. package/dist/dev/vendors-node_modules_react_index_js.js.map +1 -0
  29. package/dist/dev/vendors-node_modules_react_jsx-runtime_js.js +1345 -0
  30. package/dist/dev/vendors-node_modules_react_jsx-runtime_js.js.map +1 -0
  31. package/dist/main.js +1 -1
  32. package/dist/mf-manifest.json +132 -0
  33. package/dist/mf-stats.json +152 -0
  34. package/package.json +16 -8
  35. package/dist/190.js +0 -1
  36. package/dist/320.js +0 -1
  37. package/dist/48.js +0 -1
  38. package/dist/939.js +0 -1
@@ -0,0 +1,768 @@
1
+ "use strict";
2
+ (globalThis["webpackChunkappshell_react_shell"] = globalThis["webpackChunkappshell_react_shell"] || []).push([["src_bootstrap_tsx"],{
3
+
4
+ /***/ "./src/bootstrap.tsx"
5
+ /*!***************************!*\
6
+ !*** ./src/bootstrap.tsx ***!
7
+ \***************************/
8
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
9
+
10
+ __webpack_require__.r(__webpack_exports__);
11
+ /* harmony import */ var _appshell_react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @appshell/react */ "webpack/sharing/consume/default/@appshell/react/@appshell/react");
12
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "webpack/sharing/consume/default/react/react");
13
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
14
+ /* harmony import */ var react_dom_client__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react-dom/client */ "../../node_modules/react-dom/client.js");
15
+ /* harmony import */ var _overlayBadge__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./overlayBadge */ "./src/overlayBadge.ts");
16
+ /* harmony import */ var _reset_css__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./reset.css */ "./src/reset.css");
17
+ /* harmony import */ var _splash__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./splash */ "./src/splash.ts");
18
+ /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! react/jsx-runtime */ "webpack/sharing/consume/default/react/jsx-runtime/react/jsx-runtime");
19
+ /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__);
20
+ /* eslint-disable react/jsx-props-no-spreading */
21
+
22
+
23
+
24
+
25
+
26
+
27
+
28
+ const container = document.getElementById('root');
29
+ const root = (0,react_dom_client__WEBPACK_IMPORTED_MODULE_2__.createRoot)(container);
30
+
31
+ // The registry inlines the composition into the document it serves.
32
+ const composition = window.__appshell_config__;
33
+
34
+ // Outside the React root on purpose, so it outlives a crash in the composed app.
35
+ (0,_overlayBadge__WEBPACK_IMPORTED_MODULE_3__["default"])(composition);
36
+ if (!composition?.root) {
37
+ throw new Error('No root remote to mount. The registry supplies one in the composition.');
38
+ }
39
+ const remote = composition.root;
40
+ const props = composition.rootProps;
41
+
42
+ // No fallback here. What covers the gap before the root package mounts is in the document
43
+ // the registry served — it has to be, because the thing being waited for is the package's
44
+ // own code, and this bundle is fetched before it. All the shell does is take it away.
45
+ (0,_splash__WEBPACK_IMPORTED_MODULE_5__["default"])(container);
46
+ root.render(/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)((react__WEBPACK_IMPORTED_MODULE_1___default().StrictMode), {
47
+ children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(_appshell_react__WEBPACK_IMPORTED_MODULE_0__.RemoteSlot, {
48
+ remote: remote,
49
+ ...props
50
+ })
51
+ }));
52
+
53
+ /***/ },
54
+
55
+ /***/ "./src/overlayBadge.ts"
56
+ /*!*****************************!*\
57
+ !*** ./src/overlayBadge.ts ***!
58
+ \*****************************/
59
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
60
+
61
+ __webpack_require__.r(__webpack_exports__);
62
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
63
+ /* harmony export */ OVERLAY_EFFECTS: () => (/* binding */ OVERLAY_EFFECTS),
64
+ /* harmony export */ OVERLAY_EFFECTS_ARE_EXHAUSTIVE: () => (/* binding */ OVERLAY_EFFECTS_ARE_EXHAUSTIVE),
65
+ /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__),
66
+ /* harmony export */ overlayBadgeMarkup: () => (/* binding */ overlayBadgeMarkup)
67
+ /* harmony export */ });
68
+ /**
69
+ * Marks a page a per-developer overlay has changed — redirected remotes, remotes it
70
+ * introduced that the application does not publish, a development shell, or a
71
+ * substituted theme.
72
+ *
73
+ * Deliberately plain DOM in its own element rather than a component inside the React
74
+ * tree, for two reasons. It has to survive a crash in the composed app — the moment
75
+ * the page misbehaves is exactly when knowing your remotes are not the published ones
76
+ * matters most — and nothing about it is React-specific, so it lifts into a shared
77
+ * package unchanged the day a second shell implementation exists.
78
+ *
79
+ * Styles are inline: the badge renders alongside whatever CSS the remotes ship, and a
80
+ * stylesheet of its own would be one more thing for them to override.
81
+ */
82
+
83
+ /**
84
+ * The overlay as the composition carries it. Derived rather than restated, so the badge is
85
+ * typed by what the registry actually sends.
86
+ */
87
+
88
+ const CONTAINER_ID = 'appshell-overlay-badge';
89
+ const styles = {
90
+ container: ['position:fixed', 'bottom:12px', 'left:12px', 'z-index:2147483647', 'max-width:min(420px, calc(100vw - 24px))', 'padding:8px 12px', 'border-radius:6px', 'border:1px solid #f0b429', 'background:#3d3016', 'color:#f7e3a1', 'font:12px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace', 'box-shadow:0 2px 8px rgba(0,0,0,.35)'].join(';'),
91
+ summary: 'cursor:pointer;font-weight:600;list-style:none',
92
+ list: 'margin:6px 0 0;padding-left:16px'
93
+ };
94
+ const escape = value => value.replace(/&/g, '&amp;').replace(/</g, '&lt;');
95
+
96
+ /** Which overlay this is, as opposed to what it does. Nothing here changes the page. */
97
+
98
+ /** A field that changes what the developer sees, and so has to appear on the badge. */
99
+
100
+ /**
101
+ * The effects, enumerated so the badge can be checked against them.
102
+ *
103
+ * The badge is where this was first missed: it listed remotes and shell flavour, and a
104
+ * theme-only overlay produced a badge naming nothing that had changed. Two other surfaces
105
+ * had the same omission independently.
106
+ *
107
+ * The registry and the CLI each keep their own list against their own type — the three
108
+ * share no code, and each is checked against the shape it actually renders, so none can
109
+ * drift quietly from the surface it guards.
110
+ */
111
+ const OVERLAY_EFFECTS = ['remotes', 'added', 'shellFlavor', 'theme'];
112
+
113
+ /*
114
+ * Adding a field to the composition's overlay now forces a decision here: name it as an
115
+ * effect or as identity. Leaving it unclassified fails to compile, before any test runs.
116
+ */
117
+
118
+ const OVERLAY_EFFECTS_ARE_EXHAUSTIVE = true;
119
+
120
+ /*
121
+ * Takes the overlay rather than three of its fields. Splatting them at the call site is
122
+ * how the theme came to be dropped: the caller had it and simply did not pass it, and
123
+ * nothing said so. Passing the object means a field the overlay gains is a field this
124
+ * function is handed.
125
+ */
126
+ const overlayBadgeMarkup = overlay => {
127
+ const {
128
+ remotes = [],
129
+ added = [],
130
+ shellFlavor = 'prod',
131
+ theme
132
+ } = overlay;
133
+ // `remotes` is everything the overlay touched, additions included, so redirects are
134
+ // what is left after taking them out.
135
+ const introduced = new Set(added);
136
+ const redirected = remotes.filter(key => !introduced.has(key));
137
+ const changes = [shellFlavor === 'dev' && 'development shell', redirected.length && `${redirected.length} remote${redirected.length === 1 ? '' : 's'} redirected`,
138
+ // Counted separately, and worded as existing rather than as being replaced. A
139
+ // redirected remote is a different copy of something everyone has; an added one is
140
+ // not in the application at all, so a feature resting on it works here and nowhere
141
+ // else — which is a different thing to have been told.
142
+ added.length && `${added.length} not published`,
143
+ // Named, not just counted. A theme changes what the whole page looks like, so the
144
+ // useful question is which one — otherwise the badge says something is different
145
+ // while the difference is the very thing you are looking at.
146
+ theme && `theme ${escape(theme)}`].filter(Boolean);
147
+ const items = remotes
148
+ // The keys come from the registry's own composition, but this string is written
149
+ // straight into innerHTML, so it is escaped rather than trusted by provenance.
150
+ .map(key => `<li>${escape(key)}${introduced.has(key) ? ' <em style="font-style:normal;opacity:.8">— not published</em>' : ''}</li>`).join('');
151
+ return [`<details style="${styles.container}" open>`, `<summary style="${styles.summary}">⚠ Development overlay — ${changes.join(', ')}</summary>`, items ? `<ul style="${styles.list}">${items}</ul>` : '', '</details>'].join('');
152
+ };
153
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (composition => {
154
+ const overlay = composition?.overlay;
155
+
156
+ // The registry only emits the block when an overlay changed something, so its mere
157
+ // presence is the signal. A shell-only overlay has no remotes and still has to show.
158
+ if (!overlay || document.getElementById(CONTAINER_ID)) return;
159
+ const container = document.createElement('div');
160
+ container.id = CONTAINER_ID;
161
+ container.innerHTML = overlayBadgeMarkup(overlay);
162
+ document.body.appendChild(container);
163
+ });
164
+ (Object.getOwnPropertyDescriptor(__WEBPACK_DEFAULT_EXPORT__, "name") || {}).writable || Object.defineProperty(__WEBPACK_DEFAULT_EXPORT__, "name", { value: "default", configurable: true });
165
+
166
+ /***/ },
167
+
168
+ /***/ "./src/splash.ts"
169
+ /*!***********************!*\
170
+ !*** ./src/splash.ts ***!
171
+ \***********************/
172
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
173
+
174
+ __webpack_require__.r(__webpack_exports__);
175
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
176
+ /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
177
+ /* harmony export */ });
178
+ /**
179
+ * Removes the placeholder the registry rendered, once the root package has put something
180
+ * on the page.
181
+ *
182
+ * Plain DOM outside the React tree, for the same reason as the overlay badge: the element
183
+ * was never React's to begin with — it is in the document before this bundle is fetched —
184
+ * and nothing about dismissing it is React-specific.
185
+ *
186
+ * It watches for content rather than taking a callback from `RemoteSlot`. A callback would
187
+ * put a prop on the public component that exists only to serve the shell, and would still
188
+ * fire before the browser had painted anything. First rendered child is the honest signal:
189
+ * it is the moment there is something to look at.
190
+ */
191
+ const SPLASH_ID = 'appshell-splash';
192
+
193
+ /** Long enough to be a stuck load rather than a slow one. */
194
+ const GIVE_UP_AFTER_MS = 30_000;
195
+ const remove = splash => splash.parentNode?.removeChild(splash);
196
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (root => {
197
+ const splash = document.getElementById(SPLASH_ID);
198
+
199
+ // Absent when a host renders its own document rather than letting the registry serve one.
200
+ if (!splash) return () => {};
201
+ if (root.firstElementChild) {
202
+ remove(splash);
203
+ return () => {};
204
+ }
205
+ const observer = new MutationObserver(() => {
206
+ if (!root.firstElementChild) return;
207
+ observer.disconnect();
208
+ remove(splash);
209
+ });
210
+ observer.observe(root, {
211
+ childList: true
212
+ });
213
+
214
+ // A root package that never loads would otherwise leave the placeholder covering the
215
+ // error the shell rendered underneath it.
216
+ const timeout = setTimeout(() => {
217
+ observer.disconnect();
218
+ remove(splash);
219
+ }, GIVE_UP_AFTER_MS);
220
+ return () => {
221
+ observer.disconnect();
222
+ clearTimeout(timeout);
223
+ };
224
+ });
225
+ (Object.getOwnPropertyDescriptor(__WEBPACK_DEFAULT_EXPORT__, "name") || {}).writable || Object.defineProperty(__WEBPACK_DEFAULT_EXPORT__, "name", { value: "default", configurable: true });
226
+
227
+ /***/ },
228
+
229
+ /***/ "../../node_modules/css-loader/dist/cjs.js!../../node_modules/postcss-loader/dist/cjs.js!./src/reset.css"
230
+ /*!***************************************************************************************************************!*\
231
+ !*** ../../node_modules/css-loader/dist/cjs.js!../../node_modules/postcss-loader/dist/cjs.js!./src/reset.css ***!
232
+ \***************************************************************************************************************/
233
+ (module, __webpack_exports__, __webpack_require__) {
234
+
235
+ __webpack_require__.r(__webpack_exports__);
236
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
237
+ /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
238
+ /* harmony export */ });
239
+ /* harmony import */ var _node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../node_modules/css-loader/dist/runtime/sourceMaps.js */ "../../node_modules/css-loader/dist/runtime/sourceMaps.js");
240
+ /* harmony import */ var _node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0__);
241
+ /* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../node_modules/css-loader/dist/runtime/api.js */ "../../node_modules/css-loader/dist/runtime/api.js");
242
+ /* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__);
243
+ // Imports
244
+
245
+
246
+ var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()));
247
+ // Module
248
+ ___CSS_LOADER_EXPORT___.push([module.id, "/*\n * The one reset on the page.\n *\n * Packages must not ship their own — several global resets (Tailwind's Preflight, for\n * one) fight each other and the shell. This is structural only: it holds no view on how\n * an application looks, which is the packages' and the theme's business, but it does own\n * the handful of browser defaults that must be settled exactly once.\n */\nhtml,\nbody {\n margin: 0;\n padding: 0;\n}\n\nbody {\n min-height: 100vh;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n*,\n*::before,\n*::after {\n box-sizing: border-box;\n}\n\n#root {\n min-height: 100vh;\n}\n", "",{"version":3,"sources":["webpack://./src/reset.css"],"names":[],"mappings":"AAAA;;;;;;;EAOE;AACF;;EAEE,SAAS;EACT,UAAU;AACZ;;AAEA;EACE,iBAAiB;EACjB,mCAAmC;EACnC,kCAAkC;AACpC;;AAEA;;;EAGE,sBAAsB;AACxB;;AAEA;EACE,iBAAiB;AACnB","sourcesContent":["/*\n * The one reset on the page.\n *\n * Packages must not ship their own — several global resets (Tailwind's Preflight, for\n * one) fight each other and the shell. This is structural only: it holds no view on how\n * an application looks, which is the packages' and the theme's business, but it does own\n * the handful of browser defaults that must be settled exactly once.\n */\nhtml,\nbody {\n margin: 0;\n padding: 0;\n}\n\nbody {\n min-height: 100vh;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n*,\n*::before,\n*::after {\n box-sizing: border-box;\n}\n\n#root {\n min-height: 100vh;\n}\n"],"sourceRoot":""}]);
249
+ // Exports
250
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___);
251
+
252
+
253
+ /***/ },
254
+
255
+ /***/ "../../node_modules/css-loader/dist/runtime/api.js"
256
+ /*!*********************************************************!*\
257
+ !*** ../../node_modules/css-loader/dist/runtime/api.js ***!
258
+ \*********************************************************/
259
+ (module) {
260
+
261
+
262
+
263
+ /*
264
+ MIT License http://www.opensource.org/licenses/mit-license.php
265
+ Author Tobias Koppers @sokra
266
+ */
267
+ module.exports = function (cssWithMappingToString) {
268
+ var list = [];
269
+
270
+ // return the list of modules as css string
271
+ list.toString = function toString() {
272
+ return this.map(function (item) {
273
+ var content = "";
274
+ var needLayer = typeof item[5] !== "undefined";
275
+ if (item[4]) {
276
+ content += "@supports (".concat(item[4], ") {");
277
+ }
278
+ if (item[2]) {
279
+ content += "@media ".concat(item[2], " {");
280
+ }
281
+ if (needLayer) {
282
+ content += "@layer".concat(item[5].length > 0 ? " ".concat(item[5]) : "", " {");
283
+ }
284
+ content += cssWithMappingToString(item);
285
+ if (needLayer) {
286
+ content += "}";
287
+ }
288
+ if (item[2]) {
289
+ content += "}";
290
+ }
291
+ if (item[4]) {
292
+ content += "}";
293
+ }
294
+ return content;
295
+ }).join("");
296
+ };
297
+
298
+ // import a list of modules into the list
299
+ list.i = function i(modules, media, dedupe, supports, layer) {
300
+ if (typeof modules === "string") {
301
+ modules = [[null, modules, undefined]];
302
+ }
303
+ var alreadyImportedModules = {};
304
+ if (dedupe) {
305
+ for (var k = 0; k < this.length; k++) {
306
+ var id = this[k][0];
307
+ if (id != null) {
308
+ alreadyImportedModules[id] = true;
309
+ }
310
+ }
311
+ }
312
+ for (var _k = 0; _k < modules.length; _k++) {
313
+ var item = [].concat(modules[_k]);
314
+ if (dedupe && alreadyImportedModules[item[0]]) {
315
+ continue;
316
+ }
317
+ if (typeof layer !== "undefined") {
318
+ if (typeof item[5] === "undefined") {
319
+ item[5] = layer;
320
+ } else {
321
+ item[1] = "@layer".concat(item[5].length > 0 ? " ".concat(item[5]) : "", " {").concat(item[1], "}");
322
+ item[5] = layer;
323
+ }
324
+ }
325
+ if (media) {
326
+ if (!item[2]) {
327
+ item[2] = media;
328
+ } else {
329
+ item[1] = "@media ".concat(item[2], " {").concat(item[1], "}");
330
+ item[2] = media;
331
+ }
332
+ }
333
+ if (supports) {
334
+ if (!item[4]) {
335
+ item[4] = "".concat(supports);
336
+ } else {
337
+ item[1] = "@supports (".concat(item[4], ") {").concat(item[1], "}");
338
+ item[4] = supports;
339
+ }
340
+ }
341
+ list.push(item);
342
+ }
343
+ };
344
+ return list;
345
+ };
346
+
347
+ /***/ },
348
+
349
+ /***/ "../../node_modules/css-loader/dist/runtime/sourceMaps.js"
350
+ /*!****************************************************************!*\
351
+ !*** ../../node_modules/css-loader/dist/runtime/sourceMaps.js ***!
352
+ \****************************************************************/
353
+ (module) {
354
+
355
+
356
+
357
+ module.exports = function (item) {
358
+ var content = item[1];
359
+ var cssMapping = item[3];
360
+ if (!cssMapping) {
361
+ return content;
362
+ }
363
+ if (typeof btoa === "function") {
364
+ var base64 = btoa(unescape(encodeURIComponent(JSON.stringify(cssMapping))));
365
+ var data = "sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(base64);
366
+ var sourceMapping = "/*# ".concat(data, " */");
367
+ return [content].concat([sourceMapping]).join("\n");
368
+ }
369
+ return [content].join("\n");
370
+ };
371
+
372
+ /***/ },
373
+
374
+ /***/ "../../node_modules/react-dom/client.js"
375
+ /*!**********************************************!*\
376
+ !*** ../../node_modules/react-dom/client.js ***!
377
+ \**********************************************/
378
+ (__unused_webpack_module, exports, __webpack_require__) {
379
+
380
+
381
+
382
+ var m = __webpack_require__(/*! react-dom */ "webpack/sharing/consume/default/react-dom/react-dom");
383
+ if (false) // removed by dead control flow
384
+ {} else {
385
+ var i = m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
386
+ exports.createRoot = function(c, o) {
387
+ i.usingClientEntryPoint = true;
388
+ try {
389
+ return m.createRoot(c, o);
390
+ } finally {
391
+ i.usingClientEntryPoint = false;
392
+ }
393
+ };
394
+ exports.hydrateRoot = function(c, h, o) {
395
+ i.usingClientEntryPoint = true;
396
+ try {
397
+ return m.hydrateRoot(c, h, o);
398
+ } finally {
399
+ i.usingClientEntryPoint = false;
400
+ }
401
+ };
402
+ }
403
+
404
+
405
+ /***/ },
406
+
407
+ /***/ "./src/reset.css"
408
+ /*!***********************!*\
409
+ !*** ./src/reset.css ***!
410
+ \***********************/
411
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
412
+
413
+ __webpack_require__.r(__webpack_exports__);
414
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
415
+ /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
416
+ /* harmony export */ });
417
+ /* harmony import */ var _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! !../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js */ "../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js");
418
+ /* harmony import */ var _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__);
419
+ /* harmony import */ var _node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! !../../../node_modules/style-loader/dist/runtime/styleDomAPI.js */ "../../node_modules/style-loader/dist/runtime/styleDomAPI.js");
420
+ /* harmony import */ var _node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1__);
421
+ /* harmony import */ var _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! !../../../node_modules/style-loader/dist/runtime/insertBySelector.js */ "../../node_modules/style-loader/dist/runtime/insertBySelector.js");
422
+ /* harmony import */ var _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2__);
423
+ /* harmony import */ var _node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! !../../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js */ "../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js");
424
+ /* harmony import */ var _node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3__);
425
+ /* harmony import */ var _node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! !../../../node_modules/style-loader/dist/runtime/insertStyleElement.js */ "../../node_modules/style-loader/dist/runtime/insertStyleElement.js");
426
+ /* harmony import */ var _node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4__);
427
+ /* harmony import */ var _node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! !../../../node_modules/style-loader/dist/runtime/styleTagTransform.js */ "../../node_modules/style-loader/dist/runtime/styleTagTransform.js");
428
+ /* harmony import */ var _node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5__);
429
+ /* harmony import */ var _node_modules_css_loader_dist_cjs_js_node_modules_postcss_loader_dist_cjs_js_reset_css__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! !!../../../node_modules/css-loader/dist/cjs.js!../../../node_modules/postcss-loader/dist/cjs.js!./reset.css */ "../../node_modules/css-loader/dist/cjs.js!../../node_modules/postcss-loader/dist/cjs.js!./src/reset.css");
430
+
431
+
432
+
433
+
434
+
435
+
436
+
437
+
438
+
439
+
440
+
441
+ var options = {};
442
+
443
+ options.styleTagTransform = (_node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5___default());
444
+ options.setAttributes = (_node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3___default());
445
+
446
+ options.insert = _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2___default().bind(null, "head");
447
+
448
+ options.domAPI = (_node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1___default());
449
+ options.insertStyleElement = (_node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4___default());
450
+
451
+ var update = _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default()(_node_modules_css_loader_dist_cjs_js_node_modules_postcss_loader_dist_cjs_js_reset_css__WEBPACK_IMPORTED_MODULE_6__["default"], options);
452
+
453
+
454
+
455
+
456
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_node_modules_css_loader_dist_cjs_js_node_modules_postcss_loader_dist_cjs_js_reset_css__WEBPACK_IMPORTED_MODULE_6__["default"] && _node_modules_css_loader_dist_cjs_js_node_modules_postcss_loader_dist_cjs_js_reset_css__WEBPACK_IMPORTED_MODULE_6__["default"].locals ? _node_modules_css_loader_dist_cjs_js_node_modules_postcss_loader_dist_cjs_js_reset_css__WEBPACK_IMPORTED_MODULE_6__["default"].locals : undefined);
457
+
458
+
459
+ /***/ },
460
+
461
+ /***/ "../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"
462
+ /*!********************************************************************************!*\
463
+ !*** ../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js ***!
464
+ \********************************************************************************/
465
+ (module) {
466
+
467
+
468
+
469
+ var stylesInDOM = [];
470
+
471
+ function getIndexByIdentifier(identifier) {
472
+ var result = -1;
473
+
474
+ for (var i = 0; i < stylesInDOM.length; i++) {
475
+ if (stylesInDOM[i].identifier === identifier) {
476
+ result = i;
477
+ break;
478
+ }
479
+ }
480
+
481
+ return result;
482
+ }
483
+
484
+ function modulesToDom(list, options) {
485
+ var idCountMap = {};
486
+ var identifiers = [];
487
+
488
+ for (var i = 0; i < list.length; i++) {
489
+ var item = list[i];
490
+ var id = options.base ? item[0] + options.base : item[0];
491
+ var count = idCountMap[id] || 0;
492
+ var identifier = "".concat(id, " ").concat(count);
493
+ idCountMap[id] = count + 1;
494
+ var indexByIdentifier = getIndexByIdentifier(identifier);
495
+ var obj = {
496
+ css: item[1],
497
+ media: item[2],
498
+ sourceMap: item[3],
499
+ supports: item[4],
500
+ layer: item[5]
501
+ };
502
+
503
+ if (indexByIdentifier !== -1) {
504
+ stylesInDOM[indexByIdentifier].references++;
505
+ stylesInDOM[indexByIdentifier].updater(obj);
506
+ } else {
507
+ var updater = addElementStyle(obj, options);
508
+ options.byIndex = i;
509
+ stylesInDOM.splice(i, 0, {
510
+ identifier: identifier,
511
+ updater: updater,
512
+ references: 1
513
+ });
514
+ }
515
+
516
+ identifiers.push(identifier);
517
+ }
518
+
519
+ return identifiers;
520
+ }
521
+
522
+ function addElementStyle(obj, options) {
523
+ var api = options.domAPI(options);
524
+ api.update(obj);
525
+
526
+ var updater = function updater(newObj) {
527
+ if (newObj) {
528
+ if (newObj.css === obj.css && newObj.media === obj.media && newObj.sourceMap === obj.sourceMap && newObj.supports === obj.supports && newObj.layer === obj.layer) {
529
+ return;
530
+ }
531
+
532
+ api.update(obj = newObj);
533
+ } else {
534
+ api.remove();
535
+ }
536
+ };
537
+
538
+ return updater;
539
+ }
540
+
541
+ module.exports = function (list, options) {
542
+ options = options || {};
543
+ list = list || [];
544
+ var lastIdentifiers = modulesToDom(list, options);
545
+ return function update(newList) {
546
+ newList = newList || [];
547
+
548
+ for (var i = 0; i < lastIdentifiers.length; i++) {
549
+ var identifier = lastIdentifiers[i];
550
+ var index = getIndexByIdentifier(identifier);
551
+ stylesInDOM[index].references--;
552
+ }
553
+
554
+ var newLastIdentifiers = modulesToDom(newList, options);
555
+
556
+ for (var _i = 0; _i < lastIdentifiers.length; _i++) {
557
+ var _identifier = lastIdentifiers[_i];
558
+
559
+ var _index = getIndexByIdentifier(_identifier);
560
+
561
+ if (stylesInDOM[_index].references === 0) {
562
+ stylesInDOM[_index].updater();
563
+
564
+ stylesInDOM.splice(_index, 1);
565
+ }
566
+ }
567
+
568
+ lastIdentifiers = newLastIdentifiers;
569
+ };
570
+ };
571
+
572
+ /***/ },
573
+
574
+ /***/ "../../node_modules/style-loader/dist/runtime/insertBySelector.js"
575
+ /*!************************************************************************!*\
576
+ !*** ../../node_modules/style-loader/dist/runtime/insertBySelector.js ***!
577
+ \************************************************************************/
578
+ (module) {
579
+
580
+
581
+
582
+ var memo = {};
583
+ /* istanbul ignore next */
584
+
585
+ function getTarget(target) {
586
+ if (typeof memo[target] === "undefined") {
587
+ var styleTarget = document.querySelector(target); // Special case to return head of iframe instead of iframe itself
588
+
589
+ if (window.HTMLIFrameElement && styleTarget instanceof window.HTMLIFrameElement) {
590
+ try {
591
+ // This will throw an exception if access to iframe is blocked
592
+ // due to cross-origin restrictions
593
+ styleTarget = styleTarget.contentDocument.head;
594
+ } catch (e) {
595
+ // istanbul ignore next
596
+ styleTarget = null;
597
+ }
598
+ }
599
+
600
+ memo[target] = styleTarget;
601
+ }
602
+
603
+ return memo[target];
604
+ }
605
+ /* istanbul ignore next */
606
+
607
+
608
+ function insertBySelector(insert, style) {
609
+ var target = getTarget(insert);
610
+
611
+ if (!target) {
612
+ throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");
613
+ }
614
+
615
+ target.appendChild(style);
616
+ }
617
+
618
+ module.exports = insertBySelector;
619
+
620
+ /***/ },
621
+
622
+ /***/ "../../node_modules/style-loader/dist/runtime/insertStyleElement.js"
623
+ /*!**************************************************************************!*\
624
+ !*** ../../node_modules/style-loader/dist/runtime/insertStyleElement.js ***!
625
+ \**************************************************************************/
626
+ (module) {
627
+
628
+
629
+
630
+ /* istanbul ignore next */
631
+ function insertStyleElement(options) {
632
+ var element = document.createElement("style");
633
+ options.setAttributes(element, options.attributes);
634
+ options.insert(element, options.options);
635
+ return element;
636
+ }
637
+
638
+ module.exports = insertStyleElement;
639
+
640
+ /***/ },
641
+
642
+ /***/ "../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js"
643
+ /*!**************************************************************************************!*\
644
+ !*** ../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js ***!
645
+ \**************************************************************************************/
646
+ (module, __unused_webpack_exports, __webpack_require__) {
647
+
648
+
649
+
650
+ /* istanbul ignore next */
651
+ function setAttributesWithoutAttributes(styleElement) {
652
+ var nonce = true ? __webpack_require__.nc : 0;
653
+
654
+ if (nonce) {
655
+ styleElement.setAttribute("nonce", nonce);
656
+ }
657
+ }
658
+
659
+ module.exports = setAttributesWithoutAttributes;
660
+
661
+ /***/ },
662
+
663
+ /***/ "../../node_modules/style-loader/dist/runtime/styleDomAPI.js"
664
+ /*!*******************************************************************!*\
665
+ !*** ../../node_modules/style-loader/dist/runtime/styleDomAPI.js ***!
666
+ \*******************************************************************/
667
+ (module) {
668
+
669
+
670
+
671
+ /* istanbul ignore next */
672
+ function apply(styleElement, options, obj) {
673
+ var css = "";
674
+
675
+ if (obj.supports) {
676
+ css += "@supports (".concat(obj.supports, ") {");
677
+ }
678
+
679
+ if (obj.media) {
680
+ css += "@media ".concat(obj.media, " {");
681
+ }
682
+
683
+ var needLayer = typeof obj.layer !== "undefined";
684
+
685
+ if (needLayer) {
686
+ css += "@layer".concat(obj.layer.length > 0 ? " ".concat(obj.layer) : "", " {");
687
+ }
688
+
689
+ css += obj.css;
690
+
691
+ if (needLayer) {
692
+ css += "}";
693
+ }
694
+
695
+ if (obj.media) {
696
+ css += "}";
697
+ }
698
+
699
+ if (obj.supports) {
700
+ css += "}";
701
+ }
702
+
703
+ var sourceMap = obj.sourceMap;
704
+
705
+ if (sourceMap && typeof btoa !== "undefined") {
706
+ css += "\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))), " */");
707
+ } // For old IE
708
+
709
+ /* istanbul ignore if */
710
+
711
+
712
+ options.styleTagTransform(css, styleElement, options.options);
713
+ }
714
+
715
+ function removeStyleElement(styleElement) {
716
+ // istanbul ignore if
717
+ if (styleElement.parentNode === null) {
718
+ return false;
719
+ }
720
+
721
+ styleElement.parentNode.removeChild(styleElement);
722
+ }
723
+ /* istanbul ignore next */
724
+
725
+
726
+ function domAPI(options) {
727
+ var styleElement = options.insertStyleElement(options);
728
+ return {
729
+ update: function update(obj) {
730
+ apply(styleElement, options, obj);
731
+ },
732
+ remove: function remove() {
733
+ removeStyleElement(styleElement);
734
+ }
735
+ };
736
+ }
737
+
738
+ module.exports = domAPI;
739
+
740
+ /***/ },
741
+
742
+ /***/ "../../node_modules/style-loader/dist/runtime/styleTagTransform.js"
743
+ /*!*************************************************************************!*\
744
+ !*** ../../node_modules/style-loader/dist/runtime/styleTagTransform.js ***!
745
+ \*************************************************************************/
746
+ (module) {
747
+
748
+
749
+
750
+ /* istanbul ignore next */
751
+ function styleTagTransform(css, styleElement) {
752
+ if (styleElement.styleSheet) {
753
+ styleElement.styleSheet.cssText = css;
754
+ } else {
755
+ while (styleElement.firstChild) {
756
+ styleElement.removeChild(styleElement.firstChild);
757
+ }
758
+
759
+ styleElement.appendChild(document.createTextNode(css));
760
+ }
761
+ }
762
+
763
+ module.exports = styleTagTransform;
764
+
765
+ /***/ }
766
+
767
+ }]);
768
+ //# sourceMappingURL=src_bootstrap_tsx.js.map