@jsenv/cli 0.3.204 → 0.3.208

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 (90) hide show
  1. package/package.json +3 -3
  2. package/template-node-package/package.json +3 -3
  3. package/template-web/package.json +5 -5
  4. package/template-web-components/package.json +5 -5
  5. package/template-web-preact/package.json +6 -6
  6. package/template-web-react/package.json +6 -6
  7. package/template-web/.jsenv/entry_index/craft/@fs/Users/dmail/Documents/dev/jsenv/core/dist/client/inline_content/inline_content.js +0 -15
  8. package/template-web/.jsenv/entry_index/craft/@fs/Users/dmail/Documents/dev/jsenv/core/packages/internal/plugin-transpilation/src/babel/new_stylesheet/client/new_stylesheet.js +0 -381
  9. package/template-web/.jsenv/entry_index/craft/app/counter.js +0 -11
  10. package/template-web/.jsenv/entry_index/craft/index.html +0 -27
  11. package/template-web/.jsenv/entry_index/craft/jsenv_logo.svg +0 -140
  12. package/template-web/.jsenv/entry_index/craft/main.css +0 -4
  13. package/template-web/.jsenv/entry_index/craft/main.css7as_css_module=.js +0 -10
  14. package/template-web/.jsenv/entry_index/craft/main.js +0 -25
  15. package/template-web/.jsenv/entry_index/shape/index.html +0 -24
  16. package/template-web/.jsenv/entry_index/shape/jsenv_logo.svg +0 -91
  17. package/template-web/.jsenv/entry_index/shape/main.js +0 -1
  18. package/template-web/dist/index.html +0 -24
  19. package/template-web/dist/js/main.js +0 -1
  20. package/template-web/dist/other/jsenv_logo.svg +0 -91
  21. package/template-web-components/.jsenv/entry_index/craft/@fs/Users/dmail/Documents/dev/jsenv/core/dist/client/inline_content/inline_content.js +0 -15
  22. package/template-web-components/.jsenv/entry_index/craft/@fs/Users/dmail/Documents/dev/jsenv/core/packages/frontend/custom-elements-redefine/src/custom-elements-redefine_main.js +0 -217
  23. package/template-web-components/.jsenv/entry_index/craft/@fs/Users/dmail/Documents/dev/jsenv/core/packages/internal/plugin-transpilation/src/babel/new_stylesheet/client/new_stylesheet.js +0 -381
  24. package/template-web-components/.jsenv/entry_index/craft/app/app_custom_element.css +0 -4
  25. package/template-web-components/.jsenv/entry_index/craft/app/app_custom_element.css7as_css_module=.js +0 -10
  26. package/template-web-components/.jsenv/entry_index/craft/app/app_custom_element.js +0 -31
  27. package/template-web-components/.jsenv/entry_index/craft/app/counter.js +0 -11
  28. package/template-web-components/.jsenv/entry_index/craft/app/custom_elements_redefine.js +0 -5
  29. package/template-web-components/.jsenv/entry_index/craft/index.html +0 -27
  30. package/template-web-components/.jsenv/entry_index/craft/jsenv_logo.svg +0 -140
  31. package/template-web-components/.jsenv/entry_index/craft/main.js +0 -11
  32. package/template-web-components/.jsenv/entry_index/shape/index.html +0 -24
  33. package/template-web-components/.jsenv/entry_index/shape/jsenv_logo.svg +0 -91
  34. package/template-web-components/.jsenv/entry_index/shape/main.js +0 -1
  35. package/template-web-components/dist/index.html +0 -24
  36. package/template-web-components/dist/js/main.js +0 -1
  37. package/template-web-components/dist/other/jsenv_logo.svg +0 -91
  38. package/template-web-preact/.jsenv/entry_index/craft/@fs/Users/dmail/Documents/dev/jsenv/core/dist/client/inline_content/inline_content.js +0 -15
  39. package/template-web-preact/.jsenv/entry_index/craft/@fs/Users/dmail/Documents/dev/jsenv/core/packages/internal/plugin-transpilation/src/babel/new_stylesheet/client/new_stylesheet.js +0 -381
  40. package/template-web-preact/.jsenv/entry_index/craft/@fs/Users/dmail/Documents/dev/jsenv/core/packages/related/cli/node_modules/preact/dist/preact.mjs +0 -2
  41. package/template-web-preact/.jsenv/entry_index/craft/@fs/Users/dmail/Documents/dev/jsenv/core/packages/related/cli/node_modules/preact/hooks/dist/hooks.mjs +0 -2
  42. package/template-web-preact/.jsenv/entry_index/craft/@fs/Users/dmail/Documents/dev/jsenv/core/packages/related/cli/node_modules/preact/jsx-runtime/dist/jsxRuntime.mjs +0 -2
  43. package/template-web-preact/.jsenv/entry_index/craft/app/app.css +0 -43
  44. package/template-web-preact/.jsenv/entry_index/craft/app/app.css7as_css_module=.js +0 -10
  45. package/template-web-preact/.jsenv/entry_index/craft/app/app.jsx +0 -46
  46. package/template-web-preact/.jsenv/entry_index/craft/app/counter.jsx +0 -17
  47. package/template-web-preact/.jsenv/entry_index/craft/index.html +0 -25
  48. package/template-web-preact/.jsenv/entry_index/craft/main.jsx +0 -4
  49. package/template-web-preact/.jsenv/entry_index/craft/preact_logo.svg +0 -6
  50. package/template-web-preact/.jsenv/entry_index/shape/@fs/Users/dmail/Documents/dev/jsenv/core/packages/related/cli/template-web-preact/dist/jsenv_template_web_preact_node_modules.js +0 -1
  51. package/template-web-preact/.jsenv/entry_index/shape/index.html +0 -31
  52. package/template-web-preact/.jsenv/entry_index/shape/main.jsx +0 -1
  53. package/template-web-preact/.jsenv/entry_index/shape/preact_logo.svg +0 -6
  54. package/template-web-preact/dist/index.html +0 -31
  55. package/template-web-preact/dist/js/main.js +0 -1
  56. package/template-web-preact/dist/jsenv_template_web_preact_node_modules.js +0 -1
  57. package/template-web-preact/dist/other/preact_logo.svg +0 -6
  58. package/template-web-react/.jsenv/entry_index/craft/@fs/Users/dmail/Documents/dev/jsenv/core/dist/client/inline_content/inline_content.js +0 -15
  59. package/template-web-react/.jsenv/entry_index/craft/@fs/Users/dmail/Documents/dev/jsenv/core/packages/internal/plugin-transpilation/src/babel/new_stylesheet/client/new_stylesheet.js +0 -381
  60. package/template-web-react/.jsenv/entry_index/craft/@fs/Users/dmail/Documents/dev/jsenv/core/packages/related/cli/node_modules/react/index.js +0 -7
  61. package/template-web-react/.jsenv/entry_index/craft/@fs/Users/dmail/Documents/dev/jsenv/core/packages/related/cli/node_modules/react/jsx-runtime.js +0 -7
  62. package/template-web-react/.jsenv/entry_index/craft/@fs/Users/dmail/Documents/dev/jsenv/core/packages/related/cli/node_modules/react/react/jsx-runtime7cjs_as_js_module=.jsx +0 -69
  63. package/template-web-react/.jsenv/entry_index/craft/@fs/Users/dmail/Documents/dev/jsenv/core/packages/related/cli/node_modules/react/react7cjs_as_js_module=.jsx +0 -626
  64. package/template-web-react/.jsenv/entry_index/craft/@fs/Users/dmail/Documents/dev/jsenv/core/packages/related/cli/node_modules/react-dom/client.js +0 -38
  65. package/template-web-react/.jsenv/entry_index/craft/@fs/Users/dmail/Documents/dev/jsenv/core/packages/related/cli/node_modules/react-dom/react-dom/client7cjs_as_js_module=.jsx +0 -16726
  66. package/template-web-react/.jsenv/entry_index/craft/app/app.css +0 -43
  67. package/template-web-react/.jsenv/entry_index/craft/app/app.css7as_css_module=.js +0 -10
  68. package/template-web-react/.jsenv/entry_index/craft/app/app.jsx +0 -46
  69. package/template-web-react/.jsenv/entry_index/craft/app/counter.jsx +0 -16
  70. package/template-web-react/.jsenv/entry_index/craft/cjs_to_esm/@fs/Users/dmail/Documents/dev/jsenv/core/packages/related/cli/node_modules/react/index.production.js +0 -626
  71. package/template-web-react/.jsenv/entry_index/craft/cjs_to_esm/@fs/Users/dmail/Documents/dev/jsenv/core/packages/related/cli/node_modules/react/index.production.js__compile_info__.json +0 -18
  72. package/template-web-react/.jsenv/entry_index/craft/cjs_to_esm/@fs/Users/dmail/Documents/dev/jsenv/core/packages/related/cli/node_modules/react/index.production.map +0 -1
  73. package/template-web-react/.jsenv/entry_index/craft/cjs_to_esm/@fs/Users/dmail/Documents/dev/jsenv/core/packages/related/cli/node_modules/react/jsx-runtime.production.js +0 -69
  74. package/template-web-react/.jsenv/entry_index/craft/cjs_to_esm/@fs/Users/dmail/Documents/dev/jsenv/core/packages/related/cli/node_modules/react/jsx-runtime.production.js__compile_info__.json +0 -18
  75. package/template-web-react/.jsenv/entry_index/craft/cjs_to_esm/@fs/Users/dmail/Documents/dev/jsenv/core/packages/related/cli/node_modules/react/jsx-runtime.production.map +0 -1
  76. package/template-web-react/.jsenv/entry_index/craft/cjs_to_esm/@fs/Users/dmail/Documents/dev/jsenv/core/packages/related/cli/node_modules/react-dom/client.production.js +0 -16726
  77. package/template-web-react/.jsenv/entry_index/craft/cjs_to_esm/@fs/Users/dmail/Documents/dev/jsenv/core/packages/related/cli/node_modules/react-dom/client.production.js__compile_info__.json +0 -34
  78. package/template-web-react/.jsenv/entry_index/craft/cjs_to_esm/@fs/Users/dmail/Documents/dev/jsenv/core/packages/related/cli/node_modules/react-dom/client.production.map +0 -1
  79. package/template-web-react/.jsenv/entry_index/craft/cjs_to_esm/__compile_context__.json +0 -3
  80. package/template-web-react/.jsenv/entry_index/craft/index.html +0 -25
  81. package/template-web-react/.jsenv/entry_index/craft/main.jsx +0 -10
  82. package/template-web-react/.jsenv/entry_index/craft/react_logo.svg +0 -7
  83. package/template-web-react/.jsenv/entry_index/shape/@fs/Users/dmail/Documents/dev/jsenv/core/packages/related/cli/template-web-react/dist/jsenv_template_web_react_node_modules.js +0 -1
  84. package/template-web-react/.jsenv/entry_index/shape/index.html +0 -31
  85. package/template-web-react/.jsenv/entry_index/shape/main.jsx +0 -1
  86. package/template-web-react/.jsenv/entry_index/shape/react_logo.svg +0 -7
  87. package/template-web-react/dist/index.html +0 -31
  88. package/template-web-react/dist/js/main.js +0 -1
  89. package/template-web-react/dist/jsenv_template_web_react_node_modules.js +0 -1
  90. package/template-web-react/dist/other/react_logo.svg +0 -7
@@ -1,381 +0,0 @@
1
- /* eslint-disable */
2
- // construct-style-sheets-polyfill@3.1.0
3
- // to keep in sync with https://github.com/calebdwilliams/construct-style-sheets
4
- // copy pasted into jsenv codebase to inject this code with more ease
5
- (function () {
6
- "use strict";
7
-
8
- if (typeof document === "undefined" || "adoptedStyleSheets" in document) {
9
- return;
10
- }
11
-
12
- var hasShadyCss = "ShadyCSS" in window && !ShadyCSS.nativeShadow;
13
- var bootstrapper = document.implementation.createHTMLDocument("");
14
- var closedShadowRootRegistry = new WeakMap();
15
- var _DOMException = typeof DOMException === "object" ? Error : DOMException;
16
- var defineProperty = Object.defineProperty;
17
- var forEach = Array.prototype.forEach;
18
-
19
- var importPattern = /@import.+?;?$/gm;
20
- function rejectImports(contents) {
21
- var _contents = contents.replace(importPattern, "");
22
- if (_contents !== contents) {
23
- console.warn(
24
- "@import rules are not allowed here. See https://github.com/WICG/construct-stylesheets/issues/119#issuecomment-588352418",
25
- );
26
- }
27
- return _contents.trim();
28
- }
29
- function isElementConnected(element) {
30
- return "isConnected" in element
31
- ? element.isConnected
32
- : document.contains(element);
33
- }
34
- function unique(arr) {
35
- return arr.filter(function (value, index) {
36
- return arr.indexOf(value) === index;
37
- });
38
- }
39
- function diff(arr1, arr2) {
40
- return arr1.filter(function (value) {
41
- return arr2.indexOf(value) === -1;
42
- });
43
- }
44
- function removeNode(node) {
45
- node.parentNode.removeChild(node);
46
- }
47
- function getShadowRoot(element) {
48
- return element.shadowRoot || closedShadowRootRegistry.get(element);
49
- }
50
-
51
- var cssStyleSheetMethods = [
52
- "addRule",
53
- "deleteRule",
54
- "insertRule",
55
- "removeRule",
56
- ];
57
- var NonConstructedStyleSheet = CSSStyleSheet;
58
- var nonConstructedProto = NonConstructedStyleSheet.prototype;
59
- nonConstructedProto.replace = function () {
60
- return Promise.reject(
61
- new _DOMException(
62
- "Can't call replace on non-constructed CSSStyleSheets.",
63
- ),
64
- );
65
- };
66
- nonConstructedProto.replaceSync = function () {
67
- throw new _DOMException(
68
- "Failed to execute 'replaceSync' on 'CSSStyleSheet': Can't call replaceSync on non-constructed CSSStyleSheets.",
69
- );
70
- };
71
- function isCSSStyleSheetInstance(instance) {
72
- return typeof instance === "object"
73
- ? proto$1.isPrototypeOf(instance) ||
74
- nonConstructedProto.isPrototypeOf(instance)
75
- : false;
76
- }
77
- function isNonConstructedStyleSheetInstance(instance) {
78
- return typeof instance === "object"
79
- ? nonConstructedProto.isPrototypeOf(instance)
80
- : false;
81
- }
82
- var $basicStyleElement = new WeakMap();
83
- var $locations = new WeakMap();
84
- var $adoptersByLocation = new WeakMap();
85
- var $appliedMethods = new WeakMap();
86
- function addAdopterLocation(sheet, location) {
87
- var adopter = document.createElement("style");
88
- $adoptersByLocation.get(sheet).set(location, adopter);
89
- $locations.get(sheet).push(location);
90
- return adopter;
91
- }
92
- function getAdopterByLocation(sheet, location) {
93
- return $adoptersByLocation.get(sheet).get(location);
94
- }
95
- function removeAdopterLocation(sheet, location) {
96
- $adoptersByLocation.get(sheet).delete(location);
97
- $locations.set(
98
- sheet,
99
- $locations.get(sheet).filter(function (_location) {
100
- return _location !== location;
101
- }),
102
- );
103
- }
104
- function restyleAdopter(sheet, adopter) {
105
- requestAnimationFrame(function () {
106
- adopter.textContent = $basicStyleElement.get(sheet).textContent;
107
- $appliedMethods.get(sheet).forEach(function (command) {
108
- return adopter.sheet[command.method].apply(adopter.sheet, command.args);
109
- });
110
- });
111
- }
112
- function checkInvocationCorrectness(self) {
113
- if (!$basicStyleElement.has(self)) {
114
- throw new TypeError("Illegal invocation");
115
- }
116
- }
117
- function ConstructedStyleSheet() {
118
- var self = this;
119
- var style = document.createElement("style");
120
- bootstrapper.body.appendChild(style);
121
- $basicStyleElement.set(self, style);
122
- $locations.set(self, []);
123
- $adoptersByLocation.set(self, new WeakMap());
124
- $appliedMethods.set(self, []);
125
- }
126
- var proto$1 = ConstructedStyleSheet.prototype;
127
- proto$1.replace = function replace(contents) {
128
- try {
129
- this.replaceSync(contents);
130
- return Promise.resolve(this);
131
- } catch (e) {
132
- return Promise.reject(e);
133
- }
134
- };
135
- proto$1.replaceSync = function replaceSync(contents) {
136
- checkInvocationCorrectness(this);
137
- if (typeof contents === "string") {
138
- var self_1 = this;
139
- $basicStyleElement.get(self_1).textContent = rejectImports(contents);
140
- $appliedMethods.set(self_1, []);
141
- $locations.get(self_1).forEach(function (location) {
142
- if (location.isConnected()) {
143
- restyleAdopter(self_1, getAdopterByLocation(self_1, location));
144
- }
145
- });
146
- }
147
- };
148
- defineProperty(proto$1, "cssRules", {
149
- configurable: true,
150
- enumerable: true,
151
- get: function cssRules() {
152
- checkInvocationCorrectness(this);
153
- return $basicStyleElement.get(this).sheet.cssRules;
154
- },
155
- });
156
- defineProperty(proto$1, "media", {
157
- configurable: true,
158
- enumerable: true,
159
- get: function media() {
160
- checkInvocationCorrectness(this);
161
- return $basicStyleElement.get(this).sheet.media;
162
- },
163
- });
164
- cssStyleSheetMethods.forEach(function (method) {
165
- proto$1[method] = function () {
166
- var self = this;
167
- checkInvocationCorrectness(self);
168
- var args = arguments;
169
- $appliedMethods.get(self).push({ method: method, args: args });
170
- $locations.get(self).forEach(function (location) {
171
- if (location.isConnected()) {
172
- var sheet = getAdopterByLocation(self, location).sheet;
173
- sheet[method].apply(sheet, args);
174
- }
175
- });
176
- var basicSheet = $basicStyleElement.get(self).sheet;
177
- return basicSheet[method].apply(basicSheet, args);
178
- };
179
- });
180
- defineProperty(ConstructedStyleSheet, Symbol.hasInstance, {
181
- configurable: true,
182
- value: isCSSStyleSheetInstance,
183
- });
184
-
185
- var defaultObserverOptions = {
186
- childList: true,
187
- subtree: true,
188
- };
189
- var locations = new WeakMap();
190
- function getAssociatedLocation(element) {
191
- var location = locations.get(element);
192
- if (!location) {
193
- location = new Location(element);
194
- locations.set(element, location);
195
- }
196
- return location;
197
- }
198
- function attachAdoptedStyleSheetProperty(constructor) {
199
- defineProperty(constructor.prototype, "adoptedStyleSheets", {
200
- configurable: true,
201
- enumerable: true,
202
- get: function () {
203
- return getAssociatedLocation(this).sheets;
204
- },
205
- set: function (sheets) {
206
- getAssociatedLocation(this).update(sheets);
207
- },
208
- });
209
- }
210
- function traverseWebComponents(node, callback) {
211
- var iter = document.createNodeIterator(
212
- node,
213
- NodeFilter.SHOW_ELEMENT,
214
- function (foundNode) {
215
- return getShadowRoot(foundNode)
216
- ? NodeFilter.FILTER_ACCEPT
217
- : NodeFilter.FILTER_REJECT;
218
- },
219
- null,
220
- false,
221
- );
222
- for (var next = void 0; (next = iter.nextNode()); ) {
223
- callback(getShadowRoot(next));
224
- }
225
- }
226
- var $element = new WeakMap();
227
- var $uniqueSheets = new WeakMap();
228
- var $observer = new WeakMap();
229
- function isExistingAdopter(self, element) {
230
- return (
231
- element instanceof HTMLStyleElement &&
232
- $uniqueSheets.get(self).some(function (sheet) {
233
- return getAdopterByLocation(sheet, self);
234
- })
235
- );
236
- }
237
- function getAdopterContainer(self) {
238
- var element = $element.get(self);
239
- return element instanceof Document ? element.body : element;
240
- }
241
- function adopt(self) {
242
- var styleList = document.createDocumentFragment();
243
- var sheets = $uniqueSheets.get(self);
244
- var observer = $observer.get(self);
245
- var container = getAdopterContainer(self);
246
- observer.disconnect();
247
- sheets.forEach(function (sheet) {
248
- styleList.appendChild(
249
- getAdopterByLocation(sheet, self) || addAdopterLocation(sheet, self),
250
- );
251
- });
252
- container.insertBefore(styleList, null);
253
- observer.observe(container, defaultObserverOptions);
254
- sheets.forEach(function (sheet) {
255
- restyleAdopter(sheet, getAdopterByLocation(sheet, self));
256
- });
257
- }
258
- function Location(element) {
259
- var self = this;
260
- self.sheets = [];
261
- $element.set(self, element);
262
- $uniqueSheets.set(self, []);
263
- $observer.set(
264
- self,
265
- new MutationObserver(function (mutations, observer) {
266
- if (!document) {
267
- observer.disconnect();
268
- return;
269
- }
270
- mutations.forEach(function (mutation) {
271
- if (!hasShadyCss) {
272
- forEach.call(mutation.addedNodes, function (node) {
273
- if (!(node instanceof Element)) {
274
- return;
275
- }
276
- traverseWebComponents(node, function (root) {
277
- getAssociatedLocation(root).connect();
278
- });
279
- });
280
- }
281
- forEach.call(mutation.removedNodes, function (node) {
282
- if (!(node instanceof Element)) {
283
- return;
284
- }
285
- if (isExistingAdopter(self, node)) {
286
- adopt(self);
287
- }
288
- if (!hasShadyCss) {
289
- traverseWebComponents(node, function (root) {
290
- getAssociatedLocation(root).disconnect();
291
- });
292
- }
293
- });
294
- });
295
- }),
296
- );
297
- }
298
- Location.prototype = {
299
- isConnected: function () {
300
- var element = $element.get(this);
301
- return element instanceof Document
302
- ? element.readyState !== "loading"
303
- : isElementConnected(element.host);
304
- },
305
- connect: function () {
306
- var container = getAdopterContainer(this);
307
- $observer.get(this).observe(container, defaultObserverOptions);
308
- if ($uniqueSheets.get(this).length > 0) {
309
- adopt(this);
310
- }
311
- traverseWebComponents(container, function (root) {
312
- getAssociatedLocation(root).connect();
313
- });
314
- },
315
- disconnect: function () {
316
- $observer.get(this).disconnect();
317
- },
318
- update: function (sheets) {
319
- var self = this;
320
- var locationType =
321
- $element.get(self) === document ? "Document" : "ShadowRoot";
322
- if (!Array.isArray(sheets)) {
323
- throw new TypeError(
324
- "Failed to set the 'adoptedStyleSheets' property on " +
325
- locationType +
326
- ": Iterator getter is not callable.",
327
- );
328
- }
329
- if (!sheets.every(isCSSStyleSheetInstance)) {
330
- throw new TypeError(
331
- "Failed to set the 'adoptedStyleSheets' property on " +
332
- locationType +
333
- ": Failed to convert value to 'CSSStyleSheet'",
334
- );
335
- }
336
- if (sheets.some(isNonConstructedStyleSheetInstance)) {
337
- throw new TypeError(
338
- "Failed to set the 'adoptedStyleSheets' property on " +
339
- locationType +
340
- ": Can't adopt non-constructed stylesheets",
341
- );
342
- }
343
- self.sheets = sheets;
344
- var oldUniqueSheets = $uniqueSheets.get(self);
345
- var uniqueSheets = unique(sheets);
346
- var removedSheets = diff(oldUniqueSheets, uniqueSheets);
347
- removedSheets.forEach(function (sheet) {
348
- removeNode(getAdopterByLocation(sheet, self));
349
- removeAdopterLocation(sheet, self);
350
- });
351
- $uniqueSheets.set(self, uniqueSheets);
352
- if (self.isConnected() && uniqueSheets.length > 0) {
353
- adopt(self);
354
- }
355
- },
356
- };
357
-
358
- window.CSSStyleSheet = ConstructedStyleSheet;
359
- attachAdoptedStyleSheetProperty(Document);
360
- if ("ShadowRoot" in window) {
361
- attachAdoptedStyleSheetProperty(ShadowRoot);
362
- var proto = Element.prototype;
363
- var attach_1 = proto.attachShadow;
364
- proto.attachShadow = function attachShadow(init) {
365
- var root = attach_1.call(this, init);
366
- if (init.mode === "closed") {
367
- closedShadowRootRegistry.set(this, root);
368
- }
369
- return root;
370
- };
371
- }
372
- var documentLocation = getAssociatedLocation(document);
373
- if (documentLocation.isConnected()) {
374
- documentLocation.connect();
375
- } else {
376
- document.addEventListener(
377
- "DOMContentLoaded",
378
- documentLocation.connect.bind(documentLocation),
379
- );
380
- }
381
- })();
@@ -1,2 +0,0 @@
1
- var n,l,u,t,i,r,f,e,o,c,s,a,h={},p=[],v=Array.isArray,y=p.slice,w=Object.assign;function d(n){n&&n.parentNode&&n.remove()}function _(n,l,u){var t,i,r,f={};for(r in l)"key"==r?t=l[r]:"ref"==r&&"function"!=typeof n?i=l[r]:f[r]=l[r];return arguments.length>2&&(f.children=arguments.length>3?y.call(arguments,2):u),g(n,f,t,i,null)}function g(u,t,i,r,f){var e={type:u,props:t,key:i,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:null==f?++l:f,__i:-1,__u:0};return null==f&&null!=n.vnode&&n.vnode(e),e}function b(){return{current:null}}function k(n){return n.children}function m(n,l){this.props=n,this.context=l,this.__g=0}function M(n,l){if(null==l)return n.__?M(n.__,n.__i+1):null;for(var u;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e)return u.__e;return"function"==typeof n.type?M(n):null}function S(n){var l,u;if(null!=(n=n.__)&&null!=n.__c){for(n.__e=null,l=0;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e){n.__e=u.__e;break}return S(n)}}function $(l){(8&l.__g||!(l.__g|=8)||!t.push(l)||r++)&&i==n.debounceRendering||((i=n.debounceRendering)||queueMicrotask)(x)}function x(){for(var l,u,i,e,o,c,s,a,h=1;t.length;)t.length>h&&t.sort(f),l=t.shift(),h=t.length,8&l.__g&&(i=void 0,o=(e=(u=l).__v).__e,c=[],s=[],(a=u.__P)&&((i=w({},e)).__v=e.__v+1,n.vnode&&n.vnode(i),q(a,i,e,u.__n,a.namespaceURI,32&e.__u?[o]:null,c,null==o?M(e):o,!!(32&e.__u),s,a.ownerDocument),i.__v=e.__v,i.__.__k[i.__i]=i,P(c,i,s),i.__e!=o&&S(i)));r=0}function C(n,l,u,t,i,r,f,e,o,c,s,a){var v,y,w,d,_,g,b,k=t&&t.__k||p,m=l.length;for(o=j(u,l,k,o,m),v=0;v<m;v++)null!=(w=u.__k[v])&&(y=-1==w.__i?h:k[w.__i]||h,w.__i=v,g=q(n,w,y,i,r,f,e,o,c,s,a),d=w.__e,w.ref&&y.ref!=w.ref&&(y.ref&&B(y.ref,null,w),s.push(w.ref,w.__c||d,w)),null==_&&null!=d&&(_=d),(b=!!(4&w.__u))||y.__k===w.__k?o=A(w,o,n,b):"function"==typeof w.type&&void 0!==g?o=g:d&&(o=d.nextSibling),w.__u&=-7);return u.__e=_,o}function j(n,l,u,t,i){var r,f,e,o,c,s=u.length,a=s,h=0;for(n.__k=new Array(i),r=0;r<i;r++)null!=(f=l[r])&&"boolean"!=typeof f&&"function"!=typeof f?(o=r+h,(f=n.__k[r]="string"==typeof f||"number"==typeof f||"bigint"==typeof f||f.constructor==String?g(null,f,null,null,null):v(f)?g(k,{children:f},null,null,null):null==f.constructor&&f.__b>0?g(f.type,f.props,f.key,f.ref?f.ref:null,f.__v):f).__=n,f.__b=n.__b+1,e=null,-1!=(c=f.__i=I(f,u,o,a))&&(a--,(e=u[c])&&(e.__u|=2)),null==e||null==e.__v?(-1==c&&(i>s?h--:i<s&&h++),"function"!=typeof f.type&&(f.__u|=4)):c!=o&&(c==o-1?h--:c==o+1?h++:(c>o?h--:h++,f.__u|=4))):n.__k[r]=null;if(a)for(r=0;r<s;r++)null!=(e=u[r])&&0==(2&e.__u)&&(e.__e==t&&(t=M(e)),D(e,e));return t}function A(n,l,u,t){var i,r;if("function"==typeof n.type){for(i=n.__k,r=0;i&&r<i.length;r++)i[r]&&(i[r].__=n,l=A(i[r],l,u,t));return l}n.__e!=l&&(t&&(l&&n.type&&!l.parentNode&&(l=M(n)),u.insertBefore(n.__e,l||null)),l=n.__e);do{l=l&&l.nextSibling}while(null!=l&&8==l.nodeType);return l}function H(n,l){return l=l||[],null==n||"boolean"==typeof n||(v(n)?n.some(function(n){H(n,l)}):l.push(n)),l}function I(n,l,u,t){var i,r,f,e=n.key,o=n.type,c=l[u],s=null!=c&&0==(2&c.__u);if(null===c&&null==n.key||s&&e==c.key&&o==c.type)return u;if(t>(s?1:0))for(i=u-1,r=u+1;i>=0||r<l.length;)if(null!=(c=l[f=i>=0?i--:r++])&&0==(2&c.__u)&&e==c.key&&o==c.type)return f;return-1}function L(n,l,u){"-"==l[0]?n.setProperty(l,null==u?"":u):n[l]=null==u?"":u}function O(n,l,u,t,i){var r;n:if("style"==l)if("string"==typeof u)n.style.cssText=u;else{if("string"==typeof t&&(n.style.cssText=t=""),t)for(l in t)u&&l in u||L(n.style,l,"");if(u)for(l in u)t&&u[l]==t[l]||L(n.style,l,u[l])}else if("o"==l[0]&&"n"==l[1])r=l!=(l=l.replace(e,"$1")),(l=l.slice(2))[0].toLowerCase()!=l[0]&&(l=l.toLowerCase()),n.__l||(n.__l={}),n.__l[l+r]=u,u?t?u.l=t.l:(u.l=o,n.addEventListener(l,r?s:c,r)):n.removeEventListener(l,r?s:c,r);else{if("http://www.w3.org/2000/svg"==i)l=l.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=l&&"height"!=l&&"href"!=l&&"list"!=l&&"form"!=l&&"tabIndex"!=l&&"download"!=l&&"rowSpan"!=l&&"colSpan"!=l&&"role"!=l&&"popover"!=l&&l in n)try{n[l]=null==u?"":u;break n}catch(n){}"function"==typeof u||(null==u||!1===u&&"-"!=l[4]?n.removeAttribute(l):n.setAttribute(l,"popover"==l&&1==u?"":u))}}function T(l){return function(u){if(this.__l){var t=this.__l[u.type+l];if(null==u.u)u.u=o++;else if(u.u<t.l)return;return t(n.event?n.event(u):u)}}}function q(l,u,t,i,r,f,e,o,c,s,a){var h,p,y,_,g,b,M,S,$,x,j,A,H,I,L,O,T,q,P,B,D,F=u.type;if(null!=u.constructor)return null;128&t.__u&&(c=!!(32&t.__u),t.__c.__z&&(o=u.__e=t.__e=(f=t.__c.__z)[0],t.__c.__z=null)),(h=n.__b)&&h(u);n:if("function"==typeof F)try{if(S=u.props,$="prototype"in F&&F.prototype.render,x=(h=F.contextType)&&i[h.__c],j=h?x?x.props.value:h.__:i,t.__c?2&(p=u.__c=t.__c).__g&&(p.__g|=1,M=!0):($?u.__c=p=new F(S,j):(u.__c=p=new m(S,j),p.constructor=F,p.render=E),x&&x.sub(p),p.props=S,p.state||(p.state={}),p.context=j,p.__n=i,y=!0,p.__g|=8,p.__h=[],p._sb=[]),$&&null==p.__s&&(p.__s=p.state),$&&null!=F.getDerivedStateFromProps&&(p.__s==p.state&&(p.__s=w({},p.__s)),w(p.__s,F.getDerivedStateFromProps(S,p.__s))),_=p.props,g=p.state,p.__v=u,y)$&&null==F.getDerivedStateFromProps&&null!=p.componentWillMount&&p.componentWillMount(),$&&null!=p.componentDidMount&&p.__h.push(p.componentDidMount);else{if($&&null==F.getDerivedStateFromProps&&S!==_&&null!=p.componentWillReceiveProps&&p.componentWillReceiveProps(S,j),!(4&p.__g)&&null!=p.shouldComponentUpdate&&!1===p.shouldComponentUpdate(S,p.__s,j)||u.__v==t.__v){for(u.__v!=t.__v&&(p.props=S,p.state=p.__s,p.__g&=-9),u.__e=t.__e,u.__k=t.__k,u.__k.some(function(n){n&&(n.__=u)}),A=0;A<p._sb.length;A++)p.__h.push(p._sb[A]);p._sb=[],p.__h.length&&e.push(p);break n}null!=p.componentWillUpdate&&p.componentWillUpdate(S,p.__s,j),$&&null!=p.componentDidUpdate&&p.__h.push(function(){p.componentDidUpdate(_,g,b)})}if(p.context=j,p.props=S,p.__P=l,p.__g&=-5,H=n.__r,I=0,$){for(p.state=p.__s,p.__g&=-9,H&&H(u),h=p.render(p.props,p.state,p.context),L=0;L<p._sb.length;L++)p.__h.push(p._sb[L]);p._sb=[]}else do{p.__g&=-9,H&&H(u),h=p.render(p.props,p.state,p.context),p.state=p.__s}while(8&p.__g&&++I<25);p.state=p.__s,null!=p.getChildContext&&(i=w({},i,p.getChildContext())),$&&!y&&null!=p.getSnapshotBeforeUpdate&&(b=p.getSnapshotBeforeUpdate(_,g)),O=h,null!=h&&h.type===k&&null==h.key&&(O=V(h.props.children)),o=C(l,v(O)?O:[O],u,t,i,r,f,e,o,c,s,a),u.__u&=-161,p.__h.length&&e.push(p),M&&(p.__g&=-4)}catch(l){if(u.__v=null,c||null!=f)if(l.then){for(T=0,q=!1,u.__u|=c?160:128,u.__c.__z=[],P=0;P<f.length;P++)null==(B=f[P])||q||(8==B.nodeType&&"$s"==B.data?(T>0&&u.__c.__z.push(B),T++,f[P]=null):8==B.nodeType&&"/$s"==B.data?(--T>0&&u.__c.__z.push(B),q=0===T,o=f[P],f[P]=null):T>0&&(u.__c.__z.push(B),f[P]=null));if(!q){for(;o&&8==o.nodeType&&o.nextSibling;)o=o.nextSibling;f[f.indexOf(o)]=null,u.__c.__z=[o]}u.__e=o}else{for(D=f.length;D--;)d(f[D]);N(u)}else u.__e=t.__e,u.__k=t.__k,l.then||N(u);n.__e(l,u,t)}else o=u.__e=z(t.__e,u,t,i,r,f,e,c,s,a);return(h=n.diffed)&&h(u),128&u.__u?void 0:o}function N(n){n&&n.__c&&(n.__c.__g|=4),n&&n.__k&&n.__k.forEach(N)}function P(l,u,t){for(var i=0;i<t.length;i++)B(t[i],t[++i],t[++i]);n.__c&&n.__c(u,l),l.some(function(u){try{l=u.__h,u.__h=[],l.some(function(n){n.call(u)})}catch(l){n.__e(l,u.__v)}})}function V(n){return"object"!=typeof n||null==n||n.__b&&n.__b>0?n:v(n)?n.map(V):w({},n)}function z(l,u,t,i,r,f,e,o,c,s){var a,p,w,_,g,b,k,m,S=t.props,$=u.props,x=u.type;if("svg"==x?r="http://www.w3.org/2000/svg":"math"==x?r="http://www.w3.org/1998/Math/MathML":r||(r="http://www.w3.org/1999/xhtml"),null!=f)for(a=0;a<f.length;a++)if((g=f[a])&&"setAttribute"in g==!!x&&(x?g.localName==x:3==g.nodeType)){l=g,f[a]=null;break}if(null==l){if(null==x)return s.createTextNode($);l=s.createElementNS(r,x,$.is&&$),o&&(n.__m&&n.__m(u,f),o=!1),f=null}if(null==x)S===$||o&&l.data==$||(l.data=$);else{if(f=f&&y.call(l.childNodes),S=t.props||h,!o&&null!=f)for(S={},a=0;a<l.attributes.length;a++)S[(g=l.attributes[a]).name]=g.value;for(a in S)if(g=S[a],"children"==a);else if("dangerouslySetInnerHTML"==a)w=g;else if(!(a in $)){if("value"==a&&"defaultValue"in $||"checked"==a&&"defaultChecked"in $)continue;O(l,a,null,g,r)}for(a in m=1&t.__u,$)g=$[a],"children"==a?_=g:"dangerouslySetInnerHTML"==a?p=g:"value"==a?b=g:"checked"==a?k=g:o&&"function"!=typeof g||S[a]===g&&!m||O(l,a,g,S[a],r);if(p)o||w&&(p.__html==w.__html||p.__html==l.innerHTML)||(l.innerHTML=p.__html),u.__k=[];else if(w&&(l.innerHTML=""),C("template"==x?l.content:l,v(_)?_:[_],u,t,i,"foreignObject"==x?"http://www.w3.org/1999/xhtml":r,f,e,f?f[0]:t.__k&&M(t,0),o,c,s),null!=f)for(a=f.length;a--;)d(f[a]);o||(a="value","progress"==x&&null==b?l.removeAttribute("value"):null==b||b===l[a]&&("progress"!==x||b)||O(l,a,b,S[a],r),a="checked",null!=k&&k!=l[a]&&O(l,a,k,S[a],r))}return l}function B(l,u,t){try{if("function"==typeof l){var i="function"==typeof l.__u;i&&l.__u(),i&&null==u||(l.__u=l(u))}else l.current=u}catch(l){n.__e(l,t)}}function D(l,u,t){var i,r;if(n.unmount&&n.unmount(l),(i=l.ref)&&(i.current&&i.current!=l.__e||B(i,null,u)),null!=(i=l.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(l){n.__e(l,u)}i.__P=null}if(i=l.__k)for(r=0;r<i.length;r++)i[r]&&D(i[r],u,t||"function"!=typeof l.type);t||d(l.__e),l.__e&&l.__e.__l&&(l.__e.__l=null),l.__e=l.__c=l.__=null}function E(n,l,u){return this.constructor(n,u)}function F(l,u){var t,i,r,f;u==document&&(u=document.documentElement),n.__&&n.__(l,u),i=(t=!!(l&&32&l.__u))?null:u.__k,l=u.__k=_(k,null,[l]),r=[],f=[],q(u,l,i||h,h,u.namespaceURI,i?null:u.firstChild?y.call(u.childNodes):null,r,i?i.__e:u.firstChild,t,f,u.ownerDocument),P(r,l,f)}function G(n,l){n.__u|=32,F(n,l)}function J(n,l,u){var t,i,r,f=w({},n.props);for(r in l)"key"==r?t=l[r]:"ref"==r&&"function"!=typeof n.type?i=l[r]:f[r]=l[r];return arguments.length>2&&(f.children=arguments.length>3?y.call(arguments,2):u),g(n.type,f,t||n.key,i||n.ref,null)}function K(n){function l(n){var u,t;return this.getChildContext||(u=new Set,(t={})[l.__c]=this,this.getChildContext=function(){return t},this.componentWillUnmount=function(){u=null},this.shouldComponentUpdate=function(n){this.props.value!=n.value&&u.forEach(function(n){n.__g|=4,$(n)})},this.sub=function(n){u.add(n);var l=n.componentWillUnmount;n.componentWillUnmount=function(){u&&u.delete(n),l&&l.call(n)}}),n.children}return l.__c="__cC"+a++,l.__=n,l.Provider=l.__l=(l.Consumer=function(n,l){return n.children(l)}).contextType=l,l}n={__e:function(n,l,u,t){for(var i,f,e;l=l.__;)if((i=l.__c)&&!(1&i.__g)){i.__g|=4;try{if((f=i.constructor)&&null!=f.getDerivedStateFromError&&(i.setState(f.getDerivedStateFromError(n)),e=8&i.__g),null!=i.componentDidCatch&&(i.componentDidCatch(n,t||{}),e=8&i.__g),e)return void(i.__g|=2)}catch(l){n=l}}throw r=0,n}},l=0,u=function(n){return null!=n&&null==n.constructor},m.prototype.setState=function(n,l){var u;u=null!=this.__s&&this.__s!=this.state?this.__s:this.__s=w({},this.state),"function"==typeof n&&(n=n(w({},u),this.props)),n&&w(u,n),null!=n&&this.__v&&(l&&this._sb.push(l),$(this))},m.prototype.forceUpdate=function(n){this.__v&&(this.__g|=4,n&&this.__h.push(n),$(this))},m.prototype.render=k,t=[],r=0,f=function(n,l){return n.__v.__b-l.__v.__b},e=/(PointerCapture)$|Capture$/i,o=0,c=T(!1),s=T(!0),a=0;export{m as Component,k as Fragment,J as cloneElement,K as createContext,_ as createElement,b as createRef,_ as h,G as hydrate,u as isValidElement,n as options,F as render,H as toChildArray};
2
-
@@ -1,2 +0,0 @@
1
- import{options as n}from"file:///Users/dmail/Documents/dev/jsenv/core/packages/related/cli/node_modules/preact/dist/preact.mjs";var t,r,u,i,o=Object.is,f=0,c=[],e=n,a=e.__b,v=e.__r,l=e.diffed,m=e.__c,s=e.unmount,p=e.__;function d(n,t){e.__h&&e.__h(r,n,f||t),f=0;var u=r.__H||(r.__H={__:[],__h:[]});return n>=u.__.length&&u.__.push({}),u.__[n]}function h(n){return f=1,y(D,n)}function y(n,u,i){var f=d(t++,2);if(f.t=n,!f.__c&&(f.__=[i?i(u):D(void 0,u),function(n){var t=f.__N?f.__N[0]:f.__[0],r=f.t(t,n);o(t,r)||(f.__N=[r,f.__[1]],f.__c.setState({}))}],f.__c=r,!r.__f)){var c=function(n,t,r){if(!f.__c.__H)return!0;var u=f.__c.__H.__.filter(function(n){return!!n.__c});if(u.every(function(n){return!n.__N}))return!e||e.call(this,n,t,r);var i=f.__c.props!==n;return u.forEach(function(n){if(n.__N){var t=n.__[0];n.__=n.__N,n.__N=void 0,o(t,n.__[0])||(i=!0)}}),e&&e.call(this,n,t,r)||i};r.__f=!0;var e=r.shouldComponentUpdate,a=r.componentWillUpdate;r.componentWillUpdate=function(n,t,r){if(4&this.__g){var u=e;e=void 0,c(n,t,r),e=u}a&&a.call(this,n,t,r)},r.shouldComponentUpdate=c}return f.__N||f.__}function _(n,u){var i=d(t++,3);!e.__s&&C(i.__H,u)&&(i.__=n,i.u=u,r.__H.__h.push(i))}function A(n,u){var i=d(t++,4);!e.__s&&C(i.__H,u)&&(i.__=n,i.u=u,r.__h.push(i))}function F(n){return f=5,q(function(){return{current:n}},[])}function T(n,t,r){f=6,A(function(){if("function"==typeof n){var r=n(t());return function(){n(null),r&&"function"==typeof r&&r()}}if(n)return n.current=t(),function(){return n.current=null}},null==r?r:r.concat(n))}function q(n,r){var u=d(t++,7);return C(u.__H,r)&&(u.__=n(),u.__H=r,u.__h=n),u.__}function b(n,t){return f=8,q(function(){return n},t)}function j(n){var u=r.context[n.__c],i=d(t++,9);return i.c=n,u?(null==i.__&&(i.__=!0,u.sub(r)),u.props.value):n.__}function x(n,t){e.useDebugValue&&e.useDebugValue(t?t(n):n)}function O(n){var u=d(t++,10),i=h();return u.__=n,r.componentDidCatch||(r.componentDidCatch=function(n,t){u.__&&u.__(n,t),i[1](n)}),[i[0],function(){i[1](void 0)}]}function P(){var n=d(t++,11);if(!n.__){for(var u=r.__v;null!==u&&!u.__m&&null!==u.__;)u=u.__;var i=u.__m||(u.__m=[0,0]);n.__="P"+i[0]+"-"+i[1]++}return n.__}function g(){for(var n;n=c.shift();)if(n.__P&&n.__H)try{n.__H.__h.forEach(z),n.__H.__h.forEach(B),n.__H.__h=[]}catch(t){n.__H.__h=[],e.__e(t,n.__v)}}e.__b=function(n){r=null,a&&a(n)},e.__=function(n,t){n&&t.__k&&t.__k.__m&&(n.__m=t.__k.__m),p&&p(n,t)},e.__r=function(n){v&&v(n),t=0;var i=(r=n.__c).__H;i&&(u===r?(i.__h=[],r.__h=[],i.__.forEach(function(n){n.__N&&(n.__=n.__N),n.u=n.__N=void 0})):(i.__h.forEach(z),i.__h.forEach(B),i.__h=[],t=0)),u=r},e.diffed=function(n){l&&l(n);var t=n.__c;t&&t.__H&&(t.__H.__h.length&&(1!==c.push(t)&&i===e.requestAnimationFrame||((i=e.requestAnimationFrame)||w)(g)),t.__H.__.forEach(function(n){n.u&&(n.__H=n.u),n.u=void 0})),u=r=null},e.__c=function(n,t){t.some(function(n){try{n.__h.forEach(z),n.__h=n.__h.filter(function(n){return!n.__||B(n)})}catch(r){t.some(function(n){n.__h&&(n.__h=[])}),t=[],e.__e(r,n.__v)}}),m&&m(n,t)},e.unmount=function(n){s&&s(n);var t,r=n.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{z(n)}catch(n){t=n}}),r.__H=void 0,t&&e.__e(t,r.__v))};var k="function"==typeof requestAnimationFrame;function w(n){var t,r=function(){clearTimeout(u),k&&cancelAnimationFrame(t),setTimeout(n)},u=setTimeout(r,35);k&&(t=requestAnimationFrame(r))}function z(n){var t=r,u=n.__c;"function"==typeof u&&(n.__c=void 0,u()),r=t}function B(n){var t=r;n.__c=n.__(),r=t}function C(n,t){return!n||n.length!==t.length||t.some(function(t,r){return!o(t,n[r])})}function D(n,t){return"function"==typeof t?t(n):t}export{b as useCallback,j as useContext,x as useDebugValue,_ as useEffect,O as useErrorBoundary,P as useId,T as useImperativeHandle,A as useLayoutEffect,q as useMemo,y as useReducer,F as useRef,h as useState};
2
-
@@ -1,2 +0,0 @@
1
- import{options as r,Fragment as t}from"file:///Users/dmail/Documents/dev/jsenv/core/packages/related/cli/node_modules/preact/dist/preact.mjs";export{Fragment}from"file:///Users/dmail/Documents/dev/jsenv/core/packages/related/cli/node_modules/preact/dist/preact.mjs";var e=/["&<]/;function n(r){if(0===r.length||!1===e.test(r))return r;for(var t=0,n=0,o="",f="";n<r.length;n++){switch(r.charCodeAt(n)){case 34:f="&quot;";break;case 38:f="&amp;";break;case 60:f="&lt;";break;default:continue}n!==t&&(o+=r.slice(t,n)),o+=f,t=n+1}return n!==t&&(o+=r.slice(t,n)),o}var o=0,f=Array.isArray;function u(t,e,n,f,u,i){e||(e={});var a,c,l=e;if("ref"in l&&"function"!=typeof t)for(c in l={},e)"ref"==c?a=e[c]:l[c]=e[c];var p={type:t,props:l,key:n,ref:a,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--o,__i:-1,__u:0,__source:u,__self:i};return r.vnode&&r.vnode(p),p}function i(r){var e=u(t,{tpl:r,exprs:[].slice.call(arguments,1)});return e.key=e.__v,e}var a={},c=/[A-Z]/g;function l(t,e){if(r.attr){var o=r.attr(t,e);if("string"==typeof o)return o}if(e=function(r){return null!==r&&"object"==typeof r&&"function"==typeof r.valueOf?r.valueOf():r}(e),"ref"===t||"key"===t)return"";if("style"===t&&"object"==typeof e){var f="";for(var u in e){var i=e[u];null!=i&&""!==i&&(f=f+("-"==u[0]?u:a[u]||(a[u]=u.replace(c,"-$&").toLowerCase()))+":"+i+";")}return t+'="'+n(f)+'"'}return null==e||!1===e||"function"==typeof e||"object"==typeof e?"":!0===e?t:t+'="'+n(""+e)+'"'}function p(r){if(null==r||"boolean"==typeof r||"function"==typeof r)return null;if("object"==typeof r){if(void 0===r.constructor)return r;if(f(r)){for(var t=0;t<r.length;t++)r[t]=p(r[t]);return r}}return n(""+r)}export{u as jsx,l as jsxAttr,u as jsxDEV,p as jsxEscape,i as jsxTemplate,u as jsxs};
2
-
@@ -1,43 +0,0 @@
1
- .app {
2
- text-align: center;
3
- }
4
-
5
- .app_logo {
6
- pointer-events: none;
7
- height: 40vmin;
8
- }
9
-
10
- @media (prefers-reduced-motion: no-preference) {
11
- .app_logo {
12
- animation: 20s linear infinite app_logo_spin;
13
- }
14
- }
15
-
16
- .app_header {
17
- color: #fff;
18
- background-color: #282c34;
19
- flex-direction: column;
20
- justify-content: center;
21
- align-items: center;
22
- min-height: 100vh;
23
- font-size: calc(10px + 2vmin);
24
- display: flex;
25
- }
26
-
27
- .app_link {
28
- color: #61dafb;
29
- }
30
-
31
- @keyframes app_logo_spin {
32
- from {
33
- transform: rotate(0);
34
- }
35
-
36
- to {
37
- transform: rotate(360deg);
38
- }
39
- }
40
-
41
- button {
42
- font-size: calc(10px + 2vmin);
43
- }
@@ -1,10 +0,0 @@
1
- import "file:///Users/dmail/Documents/dev/jsenv/core/packages/internal/plugin-transpilation/src/babel/new_stylesheet/client/new_stylesheet.js";
2
- import "file:///Users/dmail/Documents/dev/jsenv/core/dist/client/inline_content/inline_content.js";
3
- const inlineContent = new __InlineContent__(".app {\n text-align: center;\n}\n\n.app_logo {\n pointer-events: none;\n height: 40vmin;\n}\n\n@media (prefers-reduced-motion: no-preference) {\n .app_logo {\n animation: 20s linear infinite app_logo_spin;\n }\n}\n\n.app_header {\n color: #fff;\n background-color: #282c34;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n min-height: 100vh;\n font-size: calc(10px + 2vmin);\n display: flex;\n}\n\n.app_link {\n color: #61dafb;\n}\n\n@keyframes app_logo_spin {\n from {\n transform: rotate(0);\n }\n\n to {\n transform: rotate(360deg);\n }\n}\n\nbutton {\n font-size: calc(10px + 2vmin);\n}\n", {
4
- type: "text/css"
5
- });
6
- const stylesheet = new CSSStyleSheet({
7
- baseUrl: "/app/app.css"
8
- });
9
- stylesheet.replaceSync(inlineContent.text);
10
- export default stylesheet;
@@ -1,46 +0,0 @@
1
- import "file:///Users/dmail/Documents/dev/jsenv/core/packages/internal/plugin-transpilation/src/babel/new_stylesheet/client/new_stylesheet.js";
2
- import { useLayoutEffect } from "file:///Users/dmail/Documents/dev/jsenv/core/packages/related/cli/node_modules/preact/hooks/dist/hooks.mjs";
3
- import appStyleSheet from "file:///Users/dmail/Documents/dev/jsenv/core/packages/related/cli/template-web-preact/src/app/app.css?as_css_module";
4
- import { Counter } from "file:///Users/dmail/Documents/dev/jsenv/core/packages/related/cli/template-web-preact/src/app/counter.jsx";
5
- import { jsx as _jsx, jsxs as _jsxs } from "file:///Users/dmail/Documents/dev/jsenv/core/packages/related/cli/node_modules/preact/jsx-runtime/dist/jsxRuntime.mjs";
6
- const preactLogoUrl = import.meta.resolve("file:///Users/dmail/Documents/dev/jsenv/core/packages/related/cli/template-web-preact/src/preact_logo.svg");
7
- export const App = () => {
8
- useLayoutEffect(() => {
9
- document.adoptedStyleSheets = [...document.adoptedStyleSheets, appStyleSheet];
10
- return () => {
11
- document.adoptedStyleSheets = document.adoptedStyleSheets.filter(s => s !== appStyleSheet);
12
- };
13
- }, []);
14
- return _jsx("div", {
15
- className: "app",
16
- children: _jsxs("header", {
17
- className: "app_header",
18
- children: [_jsx("img", {
19
- src: preactLogoUrl,
20
- className: "app_logo",
21
- alt: "logo"
22
- }), _jsx("p", {
23
- children: "Hello jsenv + preact!"
24
- }), _jsx("p", {
25
- children: _jsx(Counter, {})
26
- }), _jsxs("p", {
27
- children: ["Edit", " ", _jsx("a", {
28
- className: "app_link"
29
- // eslint-disable-next-line no-script-url
30
- ,
31
-
32
- href: "javascript:window.fetch('/internal/open_file/app/app.jsx')",
33
- children: "app.jsx"
34
- }), " ", "and save to test HMR updates."]
35
- }), _jsx("p", {
36
- children: _jsx("a", {
37
- className: "app_link",
38
- href: "https://github.com/jsenv/core",
39
- target: "_blank",
40
- rel: "noopener noreferrer",
41
- children: "Jsenv documentation"
42
- })
43
- })]
44
- })
45
- });
46
- };
@@ -1,17 +0,0 @@
1
- import { Fragment } from "file:///Users/dmail/Documents/dev/jsenv/core/packages/related/cli/node_modules/preact/dist/preact.mjs";
2
- import { useState } from "file:///Users/dmail/Documents/dev/jsenv/core/packages/related/cli/node_modules/preact/hooks/dist/hooks.mjs";
3
- import { jsx as _jsx, jsxs as _jsxs } from "file:///Users/dmail/Documents/dev/jsenv/core/packages/related/cli/node_modules/preact/jsx-runtime/dist/jsxRuntime.mjs";
4
- export const Counter = () => {
5
- const [count, setCount] = useState(0);
6
- return _jsxs(Fragment, {
7
- children: [_jsx("button", {
8
- id: "counter_button",
9
- type: "button",
10
- onClick: () => setCount(count => count + 1),
11
- children: "Click me"
12
- }), _jsx("br", {}), "number of click: ", _jsx("span", {
13
- id: "counter_output",
14
- children: count
15
- })]
16
- });
17
- };
@@ -1,25 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en" original-position-stored="">
3
- <head>
4
- <meta charset="UTF-8">
5
- <link rel="icon" type="image/svg+xml" href="file:///Users/dmail/Documents/dev/jsenv/core/packages/related/cli/template-web-preact/src/preact_logo.svg" original-href-position="5:43;5:67">
6
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
7
- <style original-position="7:5;22:13" content-indented="" jsenv-cooked-by="jsenv:html_inline_content_analysis">
8
- body {
9
- -webkit-font-smoothing: antialiased;
10
- -moz-osx-font-smoothing: grayscale;
11
- margin: 0;
12
- font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif;
13
- }
14
-
15
- code {
16
- font-family: source-code-pro, Menlo, Monaco, Consolas, Courier New, monospace;
17
- }
18
- </style>
19
- <title>Jsenv App</title>
20
- </head>
21
- <body>
22
- <div id="root"></div>
23
- <script type="module" src="file:///Users/dmail/Documents/dev/jsenv/core/packages/related/cli/template-web-preact/src/main.jsx" original-src-position="27:27;27:43"></script>
24
- </body>
25
- </html>
@@ -1,4 +0,0 @@
1
- import { render } from "file:///Users/dmail/Documents/dev/jsenv/core/packages/related/cli/node_modules/preact/dist/preact.mjs";
2
- import { App } from "file:///Users/dmail/Documents/dev/jsenv/core/packages/related/cli/template-web-preact/src/app/app.jsx";
3
- import { jsx as _jsx } from "file:///Users/dmail/Documents/dev/jsenv/core/packages/related/cli/node_modules/preact/jsx-runtime/dist/jsxRuntime.mjs";
4
- render(_jsx(App, {}), document.querySelector("#root"));
@@ -1,6 +0,0 @@
1
- <svg viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg">
2
- <path fill="#673ab8" d="M16 2l12.12 7v14L16 30 3.88 23V9z"/>
3
- <ellipse fill="none" stroke="#fff" cx="16" cy="16" rx="10.72" ry="4.1" transform="rotate(-37.5 16.007 15.996)"/>
4
- <ellipse fill="none" stroke="#fff" cx="16" cy="16" rx="4.1" ry="10.72" transform="rotate(-52.5 15.998 15.994)"/>
5
- <circle fill="#fff" cx="16" cy="16" r="1.86"/>
6
- </svg>
@@ -1 +0,0 @@
1
- var _,n,e,t,l,o,r,u,i,c,f={},s=[],a=Array.isArray,p=s.slice,h=Object.assign;function v(_){_&&_.parentNode&&_.remove()}function d(e,t,l,o,r){var u={type:e,props:t,key:l,ref:o,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:null==r?++n:r,__i:-1,__u:0};return null==r&&null!=_.vnode&&_.vnode(u),u}function g(_){return _.children}function m(_,n){this.props=_,this.context=n,this.__g=0}function y(_,n){if(null==n)return _.__?y(_.__,_.__i+1):null;for(var e;n<_.__k.length;n++)if(null!=(e=_.__k[n])&&null!=e.__e)return e.__e;return"function"==typeof _.type?y(_):null}function k(_){var n,e;if(null!=(_=_.__)&&null!=_.__c){for(_.__e=null,n=0;n<_.__k.length;n++)if(null!=(e=_.__k[n])&&null!=e.__e){_.__e=e.__e;break}return k(_)}}function b(n){(8&n.__g||!(n.__g|=8)||!e.push(n)||l++)&&t==_.debounceRendering||((t=_.debounceRendering)||queueMicrotask)(w)}function w(){for(var n,t,r,u,i,c,f,s,a=1;e.length;)e.length>a&&e.sort(o),n=e.shift(),a=e.length,8&n.__g&&(r=void 0,i=(u=(t=n).__v).__e,c=[],f=[],(s=t.__P)&&((r=h({},u)).__v=u.__v+1,_.vnode&&_.vnode(r),U(s,r,u,t.__n,s.namespaceURI,32&u.__u?[i]:null,c,null==i?y(u):i,!!(32&u.__u),f,s.ownerDocument),r.__v=u.__v,r.__.__k[r.__i]=r,D(c,r,f),r.__e!=i&&k(r)));l=0}function H(_,n,e,t,l,o,r,u,i,c,p,h){var v,m,k,b,w,H,N,C=t&&t.__k||s,T=n.length;for(i=function(_,n,e,t,l){var o,r,u,i,c,f=e.length,s=f,p=0;for(_.__k=new Array(l),o=0;o<l;o++)null!=(r=n[o])&&"boolean"!=typeof r&&"function"!=typeof r?(i=o+p,(r=_.__k[o]="string"==typeof r||"number"==typeof r||"bigint"==typeof r||r.constructor==String?d(null,r,null,null,null):a(r)?d(g,{children:r},null,null,null):null==r.constructor&&r.__b>0?d(r.type,r.props,r.key,r.ref?r.ref:null,r.__v):r).__=_,r.__b=_.__b+1,u=null,-1!=(c=r.__i=S(r,e,i,s))&&(s--,(u=e[c])&&(u.__u|=2)),null==u||null==u.__v?(-1==c&&(l>f?p--:l<f&&p++),"function"!=typeof r.type&&(r.__u|=4)):c!=i&&(c==i-1?p--:c==i+1?p++:(c>i?p--:p++,r.__u|=4))):_.__k[o]=null;if(s)for(o=0;o<f;o++)null!=(u=e[o])&&!(2&u.__u)&&(u.__e==t&&(t=y(u)),F(u,u));return t}(e,n,C,i,T),v=0;v<T;v++)null!=(k=e.__k[v])&&(m=-1==k.__i?f:C[k.__i]||f,k.__i=v,H=U(_,k,m,l,o,r,u,i,c,p,h),b=k.__e,k.ref&&m.ref!=k.ref&&(m.ref&&P(m.ref,null,k),p.push(k.ref,k.__c||b,k)),null==w&&null!=b&&(w=b),(N=!!(4&k.__u))||m.__k===k.__k?i=x(k,i,_,N):"function"==typeof k.type&&void 0!==H?i=H:b&&(i=b.nextSibling),k.__u&=-7);return e.__e=w,i}function x(_,n,e,t){var l,o;if("function"==typeof _.type){for(l=_.__k,o=0;l&&o<l.length;o++)l[o]&&(l[o].__=_,n=x(l[o],n,e,t));return n}_.__e!=n&&(t&&(n&&_.type&&!n.parentNode&&(n=y(_)),e.insertBefore(_.__e,n||null)),n=_.__e);do{n=n&&n.nextSibling}while(null!=n&&8==n.nodeType);return n}function S(_,n,e,t){var l,o,r,u=_.key,i=_.type,c=n[e],f=null!=c&&!(2&c.__u);if(null===c&&null==_.key||f&&u==c.key&&i==c.type)return e;if(t>(f?1:0))for(l=e-1,o=e+1;l>=0||o<n.length;)if(null!=(c=n[r=l>=0?l--:o++])&&!(2&c.__u)&&u==c.key&&i==c.type)return r;return-1}function N(_,n,e){"-"==n[0]?_.setProperty(n,null==e?"":e):_[n]=null==e?"":e}function C(_,n,e,t,l){var o;_:if("style"==n)if("string"==typeof e)_.style.cssText=e;else{if("string"==typeof t&&(_.style.cssText=t=""),t)for(n in t)e&&n in e||N(_.style,n,"");if(e)for(n in e)t&&e[n]==t[n]||N(_.style,n,e[n])}else if("o"==n[0]&&"n"==n[1])o=n!=(n=n.replace(r,"$1")),(n=n.slice(2))[0].toLowerCase()!=n[0]&&(n=n.toLowerCase()),_.__l||(_.__l={}),_.__l[n+o]=e,e?t?e.l=t.l:(e.l=u,_.addEventListener(n,o?c:i,o)):_.removeEventListener(n,o?c:i,o);else{if("http://www.w3.org/2000/svg"==l)n=n.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=n&&"height"!=n&&"href"!=n&&"list"!=n&&"form"!=n&&"tabIndex"!=n&&"download"!=n&&"rowSpan"!=n&&"colSpan"!=n&&"role"!=n&&"popover"!=n&&n in _)try{_[n]=null==e?"":e;break _}catch(_){}"function"==typeof e||(null==e||!1===e&&"-"!=n[4]?_.removeAttribute(n):_.setAttribute(n,"popover"==n&&1==e?"":e))}}function T(n){return function(e){if(this.__l){var t=this.__l[e.type+n];if(null==e.u)e.u=u++;else if(e.u<t.l)return;return t(_.event?_.event(e):e)}}}function U(n,e,t,l,o,r,u,i,c,f,s){var p,d,y,k,b,w,x,S,N,C,T,U,D,P,F,W,z,R,$,q,I,j=e.type;if(null!=e.constructor)return null;128&t.__u&&(c=!!(32&t.__u),t.__c.__z&&(i=e.__e=t.__e=(r=t.__c.__z)[0],t.__c.__z=null)),(p=_.__b)&&p(e);_:if("function"==typeof j)try{if(S=e.props,N="prototype"in j&&j.prototype.render,C=(p=j.contextType)&&l[p.__c],T=p?C?C.props.value:p.__:l,t.__c?2&(d=e.__c=t.__c).__g&&(d.__g|=1,x=!0):(N?e.__c=d=new j(S,T):(e.__c=d=new m(S,T),d.constructor=j,d.render=L),C&&C.sub(d),d.props=S,d.state||(d.state={}),d.context=T,d.__n=l,y=!0,d.__g|=8,d.__h=[],d._sb=[]),N&&null==d.__s&&(d.__s=d.state),N&&null!=j.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=h({},d.__s)),h(d.__s,j.getDerivedStateFromProps(S,d.__s))),k=d.props,b=d.state,d.__v=e,y)N&&null==j.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),N&&null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(N&&null==j.getDerivedStateFromProps&&S!==k&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(S,T),!(4&d.__g)&&null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(S,d.__s,T)||e.__v==t.__v){for(e.__v!=t.__v&&(d.props=S,d.state=d.__s,d.__g&=-9),e.__e=t.__e,e.__k=t.__k,e.__k.some(function(_){_&&(_.__=e)}),U=0;U<d._sb.length;U++)d.__h.push(d._sb[U]);d._sb=[],d.__h.length&&u.push(d);break _}null!=d.componentWillUpdate&&d.componentWillUpdate(S,d.__s,T),N&&null!=d.componentDidUpdate&&d.__h.push(function(){d.componentDidUpdate(k,b,w)})}if(d.context=T,d.props=S,d.__P=n,d.__g&=-5,D=_.__r,P=0,N){for(d.state=d.__s,d.__g&=-9,D&&D(e),p=d.render(d.props,d.state,d.context),F=0;F<d._sb.length;F++)d.__h.push(d._sb[F]);d._sb=[]}else do{d.__g&=-9,D&&D(e),p=d.render(d.props,d.state,d.context),d.state=d.__s}while(8&d.__g&&++P<25);d.state=d.__s,null!=d.getChildContext&&(l=h({},l,d.getChildContext())),N&&!y&&null!=d.getSnapshotBeforeUpdate&&(w=d.getSnapshotBeforeUpdate(k,b)),W=p,null!=p&&p.type===g&&null==p.key&&(W=M(p.props.children)),i=H(n,a(W)?W:[W],e,t,l,o,r,u,i,c,f,s),e.__u&=-161,d.__h.length&&u.push(d),x&&(d.__g&=-4)}catch(n){if(e.__v=null,c||null!=r)if(n.then){for(z=0,R=!1,e.__u|=c?160:128,e.__c.__z=[],$=0;$<r.length;$++)null==(q=r[$])||R||(8==q.nodeType&&"$s"==q.data?(z>0&&e.__c.__z.push(q),z++,r[$]=null):8==q.nodeType&&"/$s"==q.data?(--z>0&&e.__c.__z.push(q),R=0===z,i=r[$],r[$]=null):z>0&&(e.__c.__z.push(q),r[$]=null));if(!R){for(;i&&8==i.nodeType&&i.nextSibling;)i=i.nextSibling;r[r.indexOf(i)]=null,e.__c.__z=[i]}e.__e=i}else{for(I=r.length;I--;)v(r[I]);E(e)}else e.__e=t.__e,e.__k=t.__k,n.then||E(e);_.__e(n,e,t)}else i=e.__e=A(t.__e,e,t,l,o,r,u,c,f,s);return(p=_.diffed)&&p(e),128&e.__u?void 0:i}function E(_){_&&_.__c&&(_.__c.__g|=4),_&&_.__k&&_.__k.forEach(E)}function D(n,e,t){for(var l=0;l<t.length;l++)P(t[l],t[++l],t[++l]);_.__c&&_.__c(e,n),n.some(function(e){try{n=e.__h,e.__h=[],n.some(function(_){_.call(e)})}catch(n){_.__e(n,e.__v)}})}function M(_){return"object"!=typeof _||null==_||_.__b&&_.__b>0?_:a(_)?_.map(M):h({},_)}function A(n,e,t,l,o,r,u,i,c,s){var h,d,g,m,k,b,w,x,S=t.props,N=e.props,T=e.type;if("svg"==T?o="http://www.w3.org/2000/svg":"math"==T?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),null!=r)for(h=0;h<r.length;h++)if((k=r[h])&&"setAttribute"in k==!!T&&(T?k.localName==T:3==k.nodeType)){n=k,r[h]=null;break}if(null==n){if(null==T)return s.createTextNode(N);n=s.createElementNS(o,T,N.is&&N),i&&(_.__m&&_.__m(e,r),i=!1),r=null}if(null==T)S===N||i&&n.data==N||(n.data=N);else{if(r=r&&p.call(n.childNodes),S=t.props||f,!i&&null!=r)for(S={},h=0;h<n.attributes.length;h++)S[(k=n.attributes[h]).name]=k.value;for(h in S)if(k=S[h],"children"==h);else if("dangerouslySetInnerHTML"==h)g=k;else if(!(h in N)){if("value"==h&&"defaultValue"in N||"checked"==h&&"defaultChecked"in N)continue;C(n,h,null,k,o)}for(h in x=1&t.__u,N)k=N[h],"children"==h?m=k:"dangerouslySetInnerHTML"==h?d=k:"value"==h?b=k:"checked"==h?w=k:i&&"function"!=typeof k||S[h]===k&&!x||C(n,h,k,S[h],o);if(d)i||g&&(d.__html==g.__html||d.__html==n.innerHTML)||(n.innerHTML=d.__html),e.__k=[];else if(g&&(n.innerHTML=""),H("template"==T?n.content:n,a(m)?m:[m],e,t,l,"foreignObject"==T?"http://www.w3.org/1999/xhtml":o,r,u,r?r[0]:t.__k&&y(t,0),i,c,s),null!=r)for(h=r.length;h--;)v(r[h]);i||(h="value","progress"==T&&null==b?n.removeAttribute("value"):null==b||b===n[h]&&("progress"!==T||b)||C(n,h,b,S[h],o),h="checked",null!=w&&w!=n[h]&&C(n,h,w,S[h],o))}return n}function P(n,e,t){try{if("function"==typeof n){var l="function"==typeof n.__u;l&&n.__u(),l&&null==e||(n.__u=n(e))}else n.current=e}catch(n){_.__e(n,t)}}function F(n,e,t){var l,o;if(_.unmount&&_.unmount(n),(l=n.ref)&&(l.current&&l.current!=n.__e||P(l,null,e)),null!=(l=n.__c)){if(l.componentWillUnmount)try{l.componentWillUnmount()}catch(n){_.__e(n,e)}l.__P=null}if(l=n.__k)for(o=0;o<l.length;o++)l[o]&&F(l[o],e,t||"function"!=typeof n.type);t||v(n.__e),n.__e&&n.__e.__l&&(n.__e.__l=null),n.__e=n.__c=n.__=null}function L(_,n,e){return this.constructor(_,e)}function W(n,e){var t,l,o,r;e==document&&(e=document.documentElement),_.__&&_.__(n,e),l=(t=!!(n&&32&n.__u))?null:e.__k,n=e.__k=function(_,n,e){var t,l,o,r={};for(o in n)"key"==o?t=n[o]:"ref"==o&&"function"!=typeof _?l=n[o]:r[o]=n[o];return arguments.length>2&&(r.children=arguments.length>3?p.call(arguments,2):e),d(_,r,t,l,null)}(g,null,[n]),o=[],r=[],U(e,n,l||f,f,e.namespaceURI,l?null:e.firstChild?p.call(e.childNodes):null,o,l?l.__e:e.firstChild,t,r,e.ownerDocument),D(o,n,r)}_={__e:function(_,n,e,t){for(var o,r,u;n=n.__;)if((o=n.__c)&&!(1&o.__g)){o.__g|=4;try{if((r=o.constructor)&&null!=r.getDerivedStateFromError&&(o.setState(r.getDerivedStateFromError(_)),u=8&o.__g),null!=o.componentDidCatch&&(o.componentDidCatch(_,t||{}),u=8&o.__g),u)return void(o.__g|=2)}catch(n){_=n}}throw l=0,_}},n=0,m.prototype.setState=function(_,n){var e;e=null!=this.__s&&this.__s!=this.state?this.__s:this.__s=h({},this.state),"function"==typeof _&&(_=_(h({},e),this.props)),_&&h(e,_),null!=_&&this.__v&&(n&&this._sb.push(n),b(this))},m.prototype.forceUpdate=function(_){this.__v&&(this.__g|=4,_&&this.__h.push(_),b(this))},m.prototype.render=g,e=[],l=0,o=function(_,n){return _.__v.__b-n.__v.__b},r=/(PointerCapture)$|Capture$/i,u=0,i=T(!1),c=T(!0);var z,R,$,q,I=Object.is,j=0,O=[],B=_,V=B.__b,G=B.__r,J=B.diffed,K=B.__c,Q=B.unmount,X=B.__;function Y(_,n){B.__h&&B.__h(R,_,j||n),j=0;var e=R.__H||(R.__H={__:[],__h:[]});return _>=e.__.length&&e.__.push({}),e.__[_]}function Z(_){return j=1,function(_,n){var e=Y(z++,2);if(e.t=_,!e.__c&&(e.__=[r_(void 0,n),function(_){var n=e.__N?e.__N[0]:e.__[0],t=e.t(n,_);I(n,t)||(e.__N=[t,e.__[1]],e.__c.setState({}))}],e.__c=R,!R.__f)){var t=function(_,n,t){if(!e.__c.__H)return!0;var o=e.__c.__H.__.filter(function(_){return!!_.__c});if(o.every(function(_){return!_.__N}))return!l||l.call(this,_,n,t);var r=e.__c.props!==_;return o.forEach(function(_){if(_.__N){var n=_.__[0];_.__=_.__N,_.__N=void 0,I(n,_.__[0])||(r=!0)}}),l&&l.call(this,_,n,t)||r};R.__f=!0;var l=R.shouldComponentUpdate,o=R.componentWillUpdate;R.componentWillUpdate=function(_,n,e){if(4&this.__g){var r=l;l=void 0,t(_,n,e),l=r}o&&o.call(this,_,n,e)},R.shouldComponentUpdate=t}return e.__N||e.__}(r_,_)}function __(_,n){var e=Y(z++,4);!B.__s&&function(_,n){return!_||_.length!==n.length||n.some(function(n,e){return!I(n,_[e])})}(e.__H,n)&&(e.__=_,e.u=n,R.__h.push(e))}function n_(){for(var _;_=O.shift();)if(_.__P&&_.__H)try{_.__H.__h.forEach(l_),_.__H.__h.forEach(o_),_.__H.__h=[]}catch(n){_.__H.__h=[],B.__e(n,_.__v)}}B.__b=function(_){R=null,V&&V(_)},B.__=function(_,n){_&&n.__k&&n.__k.__m&&(_.__m=n.__k.__m),X&&X(_,n)},B.__r=function(_){G&&G(_),z=0;var n=(R=_.__c).__H;n&&($===R?(n.__h=[],R.__h=[],n.__.forEach(function(_){_.__N&&(_.__=_.__N),_.u=_.__N=void 0})):(n.__h.forEach(l_),n.__h.forEach(o_),n.__h=[],z=0)),$=R},B.diffed=function(_){J&&J(_);var n=_.__c;n&&n.__H&&(n.__H.__h.length&&(1!==O.push(n)&&q===B.requestAnimationFrame||((q=B.requestAnimationFrame)||t_)(n_)),n.__H.__.forEach(function(_){_.u&&(_.__H=_.u),_.u=void 0})),$=R=null},B.__c=function(_,n){n.some(function(_){try{_.__h.forEach(l_),_.__h=_.__h.filter(function(_){return!_.__||o_(_)})}catch(e){n.some(function(_){_.__h&&(_.__h=[])}),n=[],B.__e(e,_.__v)}}),K&&K(_,n)},B.unmount=function(_){Q&&Q(_);var n,e=_.__c;e&&e.__H&&(e.__H.__.forEach(function(_){try{l_(_)}catch(_){n=_}}),e.__H=void 0,n&&B.__e(n,e.__v))};var e_="function"==typeof requestAnimationFrame;function t_(_){var n,e=function(){clearTimeout(t),e_&&cancelAnimationFrame(n),setTimeout(_)},t=setTimeout(e,35);e_&&(n=requestAnimationFrame(e))}function l_(_){var n=R,e=_.__c;"function"==typeof e&&(_.__c=void 0,e()),R=n}function o_(_){var n=R;_.__c=_.__(),R=n}function r_(_,n){return"function"==typeof n?n(_):n}var u_=0;function i_(n,e,t,l,o,r){e||(e={});var u,i,c=e;if("ref"in c&&"function"!=typeof n)for(i in c={},e)"ref"==i?u=e[i]:c[i]=e[i];var f={type:n,props:c,key:t,ref:u,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--u_,__i:-1,__u:0,__source:o,__self:r};return _.vnode&&_.vnode(f),f}export{__ as A,W as F,Z as h,g as k,i_ as u};