@jsenv/cli 0.1.10 → 0.1.12

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 (45) hide show
  1. package/package.json +1 -1
  2. package/{README.md → readme.md} +4 -2
  3. package/template-node-package/.jsenv/jsenv_tests_output.txt +1 -1
  4. package/template-node-package/package.json +2 -2
  5. package/template-web/.jsenv/chrome@127.00/@fs/Users/damien.maillard/dev/perso/jsenv-core/dist/js/ribbon.js +28 -3
  6. package/template-web/.jsenv/craft/@fs/Users/damien.maillard/dev/perso/jsenv-core/packages/internal/js-module-fallback/dist/js/s.js +6 -6
  7. package/template-web/.jsenv/jsenv_tests_output.txt +1 -1
  8. package/template-web/.jsenv/shape/@fs/Users/damien.maillard/dev/perso/jsenv-core/packages/internal/js-module-fallback/dist/js/s.js +1 -1
  9. package/template-web/.jsenv/shape/index.html +1 -1
  10. package/template-web/dist/index.html +1 -1
  11. package/template-web/package.json +4 -4
  12. package/template-web-components/.jsenv/chrome@127.00/@fs/Users/damien.maillard/dev/perso/jsenv-core/dist/js/ribbon.js +28 -3
  13. package/template-web-components/.jsenv/craft/@fs/Users/damien.maillard/dev/perso/jsenv-core/packages/internal/js-module-fallback/dist/js/s.js +6 -6
  14. package/template-web-components/.jsenv/jsenv_tests_output.txt +2 -2
  15. package/template-web-components/.jsenv/shape/@fs/Users/damien.maillard/dev/perso/jsenv-core/packages/internal/js-module-fallback/dist/js/s.js +1 -1
  16. package/template-web-components/.jsenv/shape/index.html +1 -1
  17. package/template-web-components/dist/index.html +1 -1
  18. package/template-web-components/package.json +4 -4
  19. package/template-web-preact/.jsenv/chrome@127.00/@fs/Users/damien.maillard/dev/perso/jsenv-core/dist/js/ribbon.js +28 -3
  20. package/template-web-preact/.jsenv/chrome@127.00/app/app.jsx +1 -1
  21. package/template-web-preact/.jsenv/chrome@127.00/app/counter.jsx +1 -1
  22. package/template-web-preact/.jsenv/craft/@fs/Users/damien.maillard/dev/perso/jsenv-core/packages/internal/js-module-fallback/dist/js/s.js +6 -6
  23. package/template-web-preact/.jsenv/jsenv_tests_output.txt +3 -3
  24. package/template-web-preact/.jsenv/shape/@fs/Users/damien.maillard/dev/perso/jsenv-core/packages/internal/js-module-fallback/dist/js/s.js +1 -1
  25. package/template-web-preact/.jsenv/shape/index.html +1 -1
  26. package/template-web-preact/dist/index.html +1 -1
  27. package/template-web-preact/package.json +7 -7
  28. package/template-web-react/.jsenv/chrome@127.00/@fs/Users/damien.maillard/dev/perso/jsenv-core/dist/js/ribbon.js +28 -3
  29. package/template-web-react/.jsenv/chrome@127.00/app/app.jsx +1 -1
  30. package/template-web-react/.jsenv/chrome@127.00/app/counter.jsx +1 -1
  31. package/template-web-react/.jsenv/chrome@127.00/cjs_to_esm/@fs/Users/damien.maillard/dev/perso/jsenv-core/node_modules/react/index.development.js__compile_info__.json +2 -2
  32. package/template-web-react/.jsenv/chrome@127.00/cjs_to_esm/@fs/Users/damien.maillard/dev/perso/jsenv-core/node_modules/react/jsx-dev-runtime.development.js__compile_info__.json +2 -2
  33. package/template-web-react/.jsenv/chrome@127.00/cjs_to_esm/@fs/Users/damien.maillard/dev/perso/jsenv-core/node_modules/react-dom/client.development.js__compile_info__.json +2 -2
  34. package/template-web-react/.jsenv/chrome@127.00/cjs_to_esm/@fs/Users/damien.maillard/dev/perso/jsenv-core/node_modules/react-refresh/runtime.development.js__compile_info__.json +2 -2
  35. package/template-web-react/.jsenv/chrome@127.00/cjs_to_esm/__compile_context__.json +1 -1
  36. package/template-web-react/.jsenv/craft/@fs/Users/damien.maillard/dev/perso/jsenv-core/packages/internal/js-module-fallback/dist/js/s.js +6 -6
  37. package/template-web-react/.jsenv/craft/cjs_to_esm/@fs/Users/damien.maillard/dev/perso/jsenv-core/node_modules/react/index.production.js__compile_info__.json +2 -2
  38. package/template-web-react/.jsenv/craft/cjs_to_esm/@fs/Users/damien.maillard/dev/perso/jsenv-core/node_modules/react/jsx-runtime.production.js__compile_info__.json +2 -2
  39. package/template-web-react/.jsenv/craft/cjs_to_esm/@fs/Users/damien.maillard/dev/perso/jsenv-core/node_modules/react-dom/client.production.js__compile_info__.json +2 -2
  40. package/template-web-react/.jsenv/craft/cjs_to_esm/__compile_context__.json +1 -1
  41. package/template-web-react/.jsenv/jsenv_tests_output.txt +3 -3
  42. package/template-web-react/.jsenv/shape/@fs/Users/damien.maillard/dev/perso/jsenv-core/packages/internal/js-module-fallback/dist/js/s.js +1 -1
  43. package/template-web-react/.jsenv/shape/index.html +1 -1
  44. package/template-web-react/dist/index.html +1 -1
  45. package/template-web-react/package.json +6 -6
@@ -15,16 +15,16 @@
15
15
  "playwright:install": "npx playwright install-deps && npx playwright install"
16
16
  },
17
17
  "devDependencies": {
18
- "@babel/eslint-parser": "7.24.8",
18
+ "@babel/eslint-parser": "7.25.1",
19
19
  "@babel/plugin-syntax-import-assertions": "7.24.7",
20
20
  "@jsenv/custom-elements-redefine": "0.0.1",
21
21
  "@jsenv/assert": "4.1.15",
22
- "@jsenv/core": "39.2.18",
23
- "@jsenv/plugin-bundling": "2.7.6",
22
+ "@jsenv/core": "39.3.0",
23
+ "@jsenv/plugin-bundling": "2.7.7",
24
24
  "@jsenv/plugin-minification": "1.5.5",
25
25
  "@jsenv/eslint-config": "16.5.3",
26
26
  "@jsenv/eslint-import-resolver": "8.1.3",
27
- "@jsenv/test": "3.3.28",
27
+ "@jsenv/test": "3.3.29",
28
28
  "eslint": "8.56.0",
29
29
  "eslint-plugin-html": "8.1.1",
30
30
  "eslint-plugin-import": "2.29.1",
@@ -35,8 +35,7 @@ const injectRibbon = ({ text }) => {
35
35
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
36
36
  text-align: center;
37
37
  user-select: none;
38
- }
39
- `;
38
+ }`;
40
39
  const html = /* html */ `<div id="jsenv_ribbon_container">
41
40
  <style>${css}</style>
42
41
  <div id="jsenv_ribbon">
@@ -64,7 +63,33 @@ const injectRibbon = ({ text }) => {
64
63
  const jsenvRibbonElement = new JsenvRibbonHtmlElement({
65
64
  hidden: toolbarStateInLocalStorage.ribbonDisplayed === false,
66
65
  });
67
- document.body.appendChild(jsenvRibbonElement);
66
+ appendIntoRespectingLineBreaksAndIndentation(
67
+ jsenvRibbonElement,
68
+ document.body,
69
+ );
70
+ };
71
+
72
+ const appendIntoRespectingLineBreaksAndIndentation = (
73
+ node,
74
+ parentNode,
75
+ { indent = 2 } = {},
76
+ ) => {
77
+ const indentMinusOne = " ".repeat(indent - 1);
78
+ const desiredIndent = " ".repeat(indent);
79
+ const previousSibling =
80
+ parentNode.childNodes[parentNode.childNodes.length - 1];
81
+ if (previousSibling && previousSibling.nodeName === "#text") {
82
+ if (previousSibling.nodeValue === `\n${indentMinusOne}`) {
83
+ previousSibling.nodeValue = `\n${desiredIndent}`;
84
+ }
85
+ if (previousSibling.nodeValue !== `\n${desiredIndent}`) {
86
+ previousSibling.nodeValue = `\n${desiredIndent}`;
87
+ }
88
+ } else {
89
+ parentNode.appendChild(document.createTextNode(`\n${desiredIndent}`));
90
+ }
91
+ parentNode.appendChild(node);
92
+ parentNode.appendChild(document.createTextNode(`\n${indentMinusOne}`));
68
93
  };
69
94
 
70
95
  export { injectRibbon };
@@ -1,6 +1,6 @@
1
1
  import { createImportMetaHot } from "/@fs/Users/damien.maillard/dev/perso/jsenv-core/dist/js/import_meta_hot.js";
2
2
  import.meta.hot = createImportMetaHot(import.meta.url);
3
- import { installPreactRefresh } from "/@fs/Users/damien.maillard/dev/perso/jsenv-core/packages/related/plugin-preact/src/client/preact_refresh.js?v=1.6.13";
3
+ import { installPreactRefresh } from "/@fs/Users/damien.maillard/dev/perso/jsenv-core/packages/related/plugin-preact/src/client/preact_refresh.js?v=1.6.14";
4
4
  const __preact_refresh__ = installPreactRefresh("file:///Users/damien.maillard/dev/perso/jsenv-core/packages/related/cli/template-web-preact/src/app/app.jsx");
5
5
  var _jsxFileName = "/Users/damien.maillard/dev/perso/jsenv-core/packages/related/cli/template-web-preact/src/app/app.jsx",
6
6
  _s = $RefreshSig$();
@@ -1,6 +1,6 @@
1
1
  import { createImportMetaHot } from "/@fs/Users/damien.maillard/dev/perso/jsenv-core/dist/js/import_meta_hot.js";
2
2
  import.meta.hot = createImportMetaHot(import.meta.url);
3
- import { installPreactRefresh } from "/@fs/Users/damien.maillard/dev/perso/jsenv-core/packages/related/plugin-preact/src/client/preact_refresh.js?v=1.6.13";
3
+ import { installPreactRefresh } from "/@fs/Users/damien.maillard/dev/perso/jsenv-core/packages/related/plugin-preact/src/client/preact_refresh.js?v=1.6.14";
4
4
  const __preact_refresh__ = installPreactRefresh("file:///Users/damien.maillard/dev/perso/jsenv-core/packages/related/cli/template-web-preact/src/app/counter.jsx");
5
5
  var _jsxFileName = "/Users/damien.maillard/dev/perso/jsenv-core/packages/related/cli/template-web-preact/src/app/counter.jsx",
6
6
  _s = $RefreshSig$();
@@ -304,7 +304,7 @@
304
304
  }
305
305
  var _import2 = function _import(specifier, parentUrl) {
306
306
  var url = resolveUrl(specifier, parentUrl);
307
- var load = getOrCreateLoad(url, parentUrl);
307
+ var load = _getOrCreateLoad(url, parentUrl);
308
308
  if (load.completionPromise) {
309
309
  if (load.completionPromise === load.namespace) {
310
310
  return Promise.resolve(load.namespace);
@@ -313,7 +313,7 @@
313
313
  }
314
314
  return startExecution(load, parentUrl);
315
315
  };
316
- var getOrCreateLoad = function getOrCreateLoad(url, firstParentUrl) {
316
+ var _getOrCreateLoad = function getOrCreateLoad(url, firstParentUrl) {
317
317
  var existingLoad = loadRegistry[url];
318
318
  if (existingLoad) {
319
319
  return existingLoad;
@@ -411,7 +411,7 @@
411
411
  return _await(Promise.all(load.deps.map(_async(function (dep, index) {
412
412
  var setter = load.setters[index];
413
413
  var dependencyUrl = resolveUrl(dep, url);
414
- var dependencyLoad = getOrCreateLoad(dependencyUrl, url);
414
+ var dependencyLoad = _getOrCreateLoad(dependencyUrl, url);
415
415
  return _invoke(function () {
416
416
  if (dependencyLoad.instantiatePromise) {
417
417
  return _awaitIgnored(dependencyLoad.instantiatePromise);
@@ -435,7 +435,7 @@
435
435
  var startExecution = _async(function (load, importerUrl) {
436
436
  load.completionPromise = function () {
437
437
  return _await(instantiateAll(load, load, {}), function () {
438
- return _await(postOrderExec(load, importerUrl ? [importerUrl] : []), function () {
438
+ return _await(_postOrderExec(load, importerUrl ? [importerUrl] : []), function () {
439
439
  return load.namespace;
440
440
  });
441
441
  });
@@ -466,7 +466,7 @@
466
466
  throw error;
467
467
  });
468
468
  });
469
- var postOrderExec = function postOrderExec(load, importStack) {
469
+ var _postOrderExec = function postOrderExec(load, importStack) {
470
470
  if (importStack.indexOf(load.url) > -1) {
471
471
  return undefined;
472
472
  }
@@ -488,7 +488,7 @@
488
488
  try {
489
489
  var depImportStack = importStack.slice();
490
490
  depImportStack.push(load.url);
491
- var depLoadPromise = postOrderExec(dependencyLoad, depImportStack);
491
+ var depLoadPromise = _postOrderExec(dependencyLoad, depImportStack);
492
492
  if (depLoadPromise) {
493
493
  depLoadPromises.push(depLoadPromise);
494
494
  }
@@ -1,9 +1,9 @@
1
1
  ------------ 2 executions ready -------------
2
2
  directory: /Users/damien.maillard/dev/perso/jsenv-core/packages/related/cli/template-web-preact
3
3
  ---------------------------------------------
4
- ✔ 1/2 src/tests/animals.test.html [chromium/0.2s] (1 completed)
5
- ✔ 2/2 src/tests/app.test.mjs [node/1.2s] (all completed)
4
+ ✔ 1/2 src/tests/animals.test.html [chromium/0.3s] (1 completed)
5
+ ✔ 2/2 src/tests/app.test.mjs [node/1.1s] (all completed)
6
6
  ------------- 2 executions done -------------
7
7
  status: all completed
8
- duration: 1.9s (setup: 0.4s, execution: 1.7s, teardown: 0.1s)
8
+ duration: 1.8s (setup: 0.4s, execution: 1.6s, teardown: 0.1s)
9
9
  ---------------------------------------------
@@ -1 +1 @@
1
- !function(e,n){if("function"==typeof define&&define.amd)define([],n);else if("undefined"!=typeof exports)n();else{n(),e.s={}}}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:this,(function(){"use strict";function e(e,n,t){return e&&e.then||(e=Promise.resolve(e)),n?e.then(n):e}function n(e){return function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];try{return Promise.resolve(e.apply(this,n))}catch(e){return Promise.reject(e)}}}function t(){}function r(e,n){return e&&e.then?e.then(t):Promise.resolve()}function o(e,n){var t=e();return t&&t.then?t.then(n):n(t)}function i(e,n){try{var t=e()}catch(e){return n(e)}return t&&t.then?t.then(void 0,n):t}function u(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,o,i,u,c=[],f=!0,l=!1;try{if(i=(t=t.call(e)).next,0===n);else for(;!(f=(r=i.call(t)).done)&&(c.push(r.value),c.length!==n);f=!0);}catch(e){l=!0,o=e}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(l)throw o}}return c}}(e,n)||function(e,n){if(e){if("string"==typeof e)return c(e,n);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?c(e,n):void 0}}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}!function(){var t=Object.create(null),c=Object.create(null),l=0,s={},a="object"===("undefined"==typeof document?"undefined":f(document)),d=self,m=!a&&"function"==typeof d.WorkerGlobalScope&&d instanceof d.WorkerGlobalScope,p=m&&"function"==typeof self.skipWaiting;d.System=s;var h=d.location.href.split("#")[0].split("?")[0],v=h.lastIndexOf("/");-1!==v&&(h=h.slice(0,v+1));var y=function(e,n){return new URL(e,n).href};if(a){var P=document.querySelector("base[href]");P&&(h=P.href),s.register=function(e,n){if(!document.currentScript)throw new Error("unexpected call to System.register (document.currentScript is undefined)");if(document.currentScript.__s__)return c[document.currentScript.src]=[e,n],null;var t=document.currentScript.src||"".concat(window.location.href,"__inline_script__").concat(++l);return c[t]=[e,n],_(t)},s.instantiate=function(e){var n=g(e);return new Promise((function(t,r){var o,i,u=function(e){o=e.filename,i=e.error};window.addEventListener("error",u),n.addEventListener("error",(function(){window.removeEventListener("error",u),r("An error occured while loading url with <script> for ".concat(e))})),n.addEventListener("load",(function(){window.removeEventListener("error",u),document.head.removeChild(n),o===e?r(i):t()})),document.head.appendChild(n)}))};var g=function(e){var n=document.createElement("script");return n.async=!0,e.indexOf("".concat(self.location.origin,"/"))&&(n.crossOrigin="anonymous"),n.__s__=!0,n.src=e,n}}if(m){var b=[];if(p){var w=["message","install","activate","fetch"],S={},x=new Promise((function(e){b.push(e)}));w.forEach((function(e){var n=[];self.addEventListener(e,(function(e){var t=S[e.type];t?t(e):(n.push(e),e.waitUntil(x))})),b.push((function(){if(n.length){var e=S[n[0].type];e&&n.forEach((function(n){e(n)})),n.length=0}}))}));var E=self.addEventListener;self.addEventListener=function(e,n,t){return w.indexOf(e)>-1?(S[e]=n,null):E.call(self,e,n,t)}}else{["message"].forEach((function(e){var n=[],t=function(e){n.push(e)};self.addEventListener(e,t),b.push((function(){self.removeEventListener(e,t),n.forEach((function(e){self.dispatchEvent(e)})),n.length=0}))}))}s.register=n((function(n,t){s.register=function(){throw new Error("unexpected call to System.register (called outside url instantiation)")};var r=self.location.href;return c[r]=[n,t],e(_(r),(function(e){return b.forEach((function(e){e()})),b.length=0,e}))})),s.instantiate=n((function(n){return e(self.fetch(n,{credentials:"same-origin"}),(function(t){if(!t.ok)throw Error("Failed to fetch module at ".concat(n));return e(t.text(),(function(e){e.indexOf("//# sourceURL=")<0&&(e+="\n//# sourceURL=".concat(n));var t=s.register;s.register=function(e,t){c[n]=[e,t]},(0,self.eval)(e),s.register=t}))}))}))}var _=function(e,n){var t=y(e,n),r=L(t,n);return r.completionPromise?r.completionPromise===r.namespace?Promise.resolve(r.namespace):r.completionPromise:O(r,n)},L=function f(l,a){var d=t[l];if(d)return d;var m=T(),p={url:l,deps:[],dependencyLoads:[],instantiatePromise:null,linkPromise:null,executePromise:null,completionPromise:null,importerSetters:[],setters:[],execute:null,error:null,hoistedExports:!1,namespace:m};return t[l]=p,p.instantiatePromise=n((function(){return i((function(){var e=c[l];return o((function(){if(!e){var n=s.instantiate(l,a);return o((function(){if(n)return r(n)}),(function(){e=c[l]}))}}),(function(){if(!e)throw new Error("System.register() not called after executing ".concat(l));var n=u(e,2),t=n[0],r=(0,n[1])((function(e,n){p.hoistedExports=!0;var t=!1;if("string"==typeof e){var r=e,o=n;r in m&&m[r]===o||(m[r]=o,t=!0)}else Object.keys(e).forEach((function(n){var r=e[n];n in m&&m[n]===r||(m[n]=r,t=!0)})),e&&e.__esModule&&(m.__esModule=e.__esModule);return t&&p.importerSetters.forEach((function(e){e&&e(m)})),n}),{import:function(e){return _(e,l)},meta:M(l)}),o=r.setters,i=r.execute,c=void 0===i?function(){}:i;p.deps=t,p.setters=o,p.execute=c}))}),(function(e){p.error=e,p.execute=null}))}))(),p.linkPromise=n((function(){return e(p.instantiatePromise,(function(){return e(Promise.all(p.deps.map(n((function(e,n){var t=p.setters[n],i=y(e,l),u=f(i,l);return o((function(){if(u.instantiatePromise)return r(u.instantiatePromise)}),(function(){return t&&(u.importerSetters.push(t),!u.hoistedExports&&u.instantiatePromise||t(u.namespace)),u}))})))),(function(e){p.dependencyLoads=e}))}))}))(),p},O=n((function(n,t){return n.completionPromise=e(j(n,n,{}),(function(){return e(k(n,t?[t]:[]),(function(){return n.namespace}))})),n.completionPromise})),j=n((function(e,n,t){if(!t[e.url])return t[e.url]=!0,i((function(){return o((function(){if(e.linkPromise)return r(e.linkPromise)}),(function(){return r(Promise.all(e.dependencyLoads.map((function(e){return j(e,n,t)}))))}))}),(function(n){if(e.error)throw n;throw e.execute=null,n}))})),k=function e(t,i){if(!(i.indexOf(t.url)>-1)){if(!t.execute){if(t.error)throw t.error;return t.executePromise?t.executePromise:void 0}var u=t.execute;t.execute=null;var c=[];return t.dependencyLoads.forEach((function(n){try{var r=i.slice();r.push(t.url);var o=e(n,r);o&&c.push(o)}catch(e){throw t.error=e,e}})),n((function(){return o((function(){if(c.length)return r(Promise.all(c))}),(function(){try{var e=u.call(A);if(e)return void(t.executePromise=e.then((function(){t.executePromise=null,t.completionPromise=t.namespace}),(function(e){throw t.executePromise=null,t.error=e,e})));t.instantiatePromise=null,t.linkPromise=null,t.completionPromise=t.namespace}catch(e){throw t.error=e,e}finally{t.execute=null}}))}))()}},A=Object.freeze(Object.create(null)),M=function(e){return{url:e,resolve:function(n){return y(n,e)}}},T="undefined"!=typeof Symbol&&Symbol.toStringTag?function(){var e=Object.create(null);return Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),e}:function(){return Object.create(null)}}()}));
1
+ !function(e,n){if("function"==typeof define&&define.amd)define([],n);else if("undefined"!=typeof exports)n();else{n(),e.s={}}}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:this,(function(){"use strict";function e(e,n,t){return e&&e.then||(e=Promise.resolve(e)),n?e.then(n):e}function n(e){return function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];try{return Promise.resolve(e.apply(this,n))}catch(e){return Promise.reject(e)}}}function t(){}function r(e,n){return e&&e.then?e.then(t):Promise.resolve()}function o(e,n){var t=e();return t&&t.then?t.then(n):n(t)}function i(e,n){try{var t=e()}catch(e){return n(e)}return t&&t.then?t.then(void 0,n):t}function u(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,o,i,u,c=[],f=!0,l=!1;try{if(i=(t=t.call(e)).next,0===n);else for(;!(f=(r=i.call(t)).done)&&(c.push(r.value),c.length!==n);f=!0);}catch(e){l=!0,o=e}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(l)throw o}}return c}}(e,n)||function(e,n){if(e){if("string"==typeof e)return c(e,n);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?c(e,n):void 0}}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}!function(){var t=Object.create(null),c=Object.create(null),l=0,s={},a="object"===("undefined"==typeof document?"undefined":f(document)),d=self,m=!a&&"function"==typeof d.WorkerGlobalScope&&d instanceof d.WorkerGlobalScope,p=m&&"function"==typeof self.skipWaiting;d.System=s;var h=d.location.href.split("#")[0].split("?")[0],v=h.lastIndexOf("/");-1!==v&&(h=h.slice(0,v+1));var y=function(e,n){return new URL(e,n).href};if(a){var P=document.querySelector("base[href]");P&&(h=P.href),s.register=function(e,n){if(!document.currentScript)throw new Error("unexpected call to System.register (document.currentScript is undefined)");if(document.currentScript.__s__)return c[document.currentScript.src]=[e,n],null;var t=document.currentScript.src||"".concat(window.location.href,"__inline_script__").concat(++l);return c[t]=[e,n],_(t)},s.instantiate=function(e){var n=g(e);return new Promise((function(t,r){var o,i,u=function(e){o=e.filename,i=e.error};window.addEventListener("error",u),n.addEventListener("error",(function(){window.removeEventListener("error",u),r("An error occured while loading url with <script> for ".concat(e))})),n.addEventListener("load",(function(){window.removeEventListener("error",u),document.head.removeChild(n),o===e?r(i):t()})),document.head.appendChild(n)}))};var g=function(e){var n=document.createElement("script");return n.async=!0,e.indexOf("".concat(self.location.origin,"/"))&&(n.crossOrigin="anonymous"),n.__s__=!0,n.src=e,n}}if(m){var b=[];if(p){var w=["message","install","activate","fetch"],S={},x=new Promise((function(e){b.push(e)}));w.forEach((function(e){var n=[];self.addEventListener(e,(function(e){var t=S[e.type];t?t(e):(n.push(e),e.waitUntil(x))})),b.push((function(){if(n.length){var e=S[n[0].type];e&&n.forEach((function(n){e(n)})),n.length=0}}))}));var E=self.addEventListener;self.addEventListener=function(e,n,t){return w.indexOf(e)>-1?(S[e]=n,null):E.call(self,e,n,t)}}else{["message"].forEach((function(e){var n=[],t=function(e){n.push(e)};self.addEventListener(e,t),b.push((function(){self.removeEventListener(e,t),n.forEach((function(e){self.dispatchEvent(e)})),n.length=0}))}))}s.register=n((function(n,t){s.register=function(){throw new Error("unexpected call to System.register (called outside url instantiation)")};var r=self.location.href;return c[r]=[n,t],e(_(r),(function(e){return b.forEach((function(e){e()})),b.length=0,e}))})),s.instantiate=n((function(n){return e(self.fetch(n,{credentials:"same-origin"}),(function(t){if(!t.ok)throw Error("Failed to fetch module at ".concat(n));return e(t.text(),(function(e){e.indexOf("//# sourceURL=")<0&&(e+="\n//# sourceURL=".concat(n));var t=s.register;s.register=function(e,t){c[n]=[e,t]},(0,self.eval)(e),s.register=t}))}))}))}var _=function(e,n){var t=y(e,n),r=L(t,n);return r.completionPromise?r.completionPromise===r.namespace?Promise.resolve(r.namespace):r.completionPromise:O(r,n)},L=function(f,l){var a=t[f];if(a)return a;var d=T(),m={url:f,deps:[],dependencyLoads:[],instantiatePromise:null,linkPromise:null,executePromise:null,completionPromise:null,importerSetters:[],setters:[],execute:null,error:null,hoistedExports:!1,namespace:d};return t[f]=m,m.instantiatePromise=n((function(){return i((function(){var e=c[f];return o((function(){if(!e){var n=s.instantiate(f,l);return o((function(){if(n)return r(n)}),(function(){e=c[f]}))}}),(function(){if(!e)throw new Error("System.register() not called after executing ".concat(f));var n=u(e,2),t=n[0],r=(0,n[1])((function(e,n){m.hoistedExports=!0;var t=!1;if("string"==typeof e){var r=e,o=n;r in d&&d[r]===o||(d[r]=o,t=!0)}else Object.keys(e).forEach((function(n){var r=e[n];n in d&&d[n]===r||(d[n]=r,t=!0)})),e&&e.__esModule&&(d.__esModule=e.__esModule);return t&&m.importerSetters.forEach((function(e){e&&e(d)})),n}),{import:function(e){return _(e,f)},meta:M(f)}),o=r.setters,i=r.execute,c=void 0===i?function(){}:i;m.deps=t,m.setters=o,m.execute=c}))}),(function(e){m.error=e,m.execute=null}))}))(),m.linkPromise=n((function(){return e(m.instantiatePromise,(function(){return e(Promise.all(m.deps.map(n((function(e,n){var t=m.setters[n],i=y(e,f),u=L(i,f);return o((function(){if(u.instantiatePromise)return r(u.instantiatePromise)}),(function(){return t&&(u.importerSetters.push(t),!u.hoistedExports&&u.instantiatePromise||t(u.namespace)),u}))})))),(function(e){m.dependencyLoads=e}))}))}))(),m},O=n((function(n,t){return n.completionPromise=e(j(n,n,{}),(function(){return e(k(n,t?[t]:[]),(function(){return n.namespace}))})),n.completionPromise})),j=n((function(e,n,t){if(!t[e.url])return t[e.url]=!0,i((function(){return o((function(){if(e.linkPromise)return r(e.linkPromise)}),(function(){return r(Promise.all(e.dependencyLoads.map((function(e){return j(e,n,t)}))))}))}),(function(n){if(e.error)throw n;throw e.execute=null,n}))})),k=function(e,t){if(!(t.indexOf(e.url)>-1)){if(!e.execute){if(e.error)throw e.error;return e.executePromise?e.executePromise:void 0}var i=e.execute;e.execute=null;var u=[];return e.dependencyLoads.forEach((function(n){try{var r=t.slice();r.push(e.url);var o=k(n,r);o&&u.push(o)}catch(n){throw e.error=n,n}})),n((function(){return o((function(){if(u.length)return r(Promise.all(u))}),(function(){try{var n=i.call(A);if(n)return void(e.executePromise=n.then((function(){e.executePromise=null,e.completionPromise=e.namespace}),(function(n){throw e.executePromise=null,e.error=n,n})));e.instantiatePromise=null,e.linkPromise=null,e.completionPromise=e.namespace}catch(n){throw e.error=n,n}finally{e.execute=null}}))}))()}},A=Object.freeze(Object.create(null)),M=function(e){return{url:e,resolve:function(n){return y(n,e)}}},T="undefined"!=typeof Symbol&&Symbol.toStringTag?function(){var e=Object.create(null);return Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),e}:function(){return Object.create(null)}}()}));
@@ -8,7 +8,7 @@
8
8
  ;(function(){var m = {"/js/vendors.nomodule.js":"/js/vendors.nomodule.js?v=e9f160e5","/other/preact_logo.svg":"/other/preact_logo.svg?v=7aea73c3"}; window.__v__ = function (s) { return m[s] || s }; })();
9
9
  </script>
10
10
  <script inlined-from-src="file:///Users/damien.maillard/dev/perso/jsenv-core/packages/related/cli/template-web-preact/src/index.html@s.js" jsenv-injected-by="jsenv:core" content-indented="">
11
- !function(e,n){if("function"==typeof define&&define.amd)define([],n);else if("undefined"!=typeof exports)n();else{n(),e.s={}}}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:this,(function(){"use strict";function e(e,n,t){return e&&e.then||(e=Promise.resolve(e)),n?e.then(n):e}function n(e){return function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];try{return Promise.resolve(e.apply(this,n))}catch(e){return Promise.reject(e)}}}function t(){}function r(e,n){return e&&e.then?e.then(t):Promise.resolve()}function o(e,n){var t=e();return t&&t.then?t.then(n):n(t)}function i(e,n){try{var t=e()}catch(e){return n(e)}return t&&t.then?t.then(void 0,n):t}function u(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,o,i,u,c=[],f=!0,l=!1;try{if(i=(t=t.call(e)).next,0===n);else for(;!(f=(r=i.call(t)).done)&&(c.push(r.value),c.length!==n);f=!0);}catch(e){l=!0,o=e}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(l)throw o}}return c}}(e,n)||function(e,n){if(e){if("string"==typeof e)return c(e,n);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?c(e,n):void 0}}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}!function(){var t=Object.create(null),c=Object.create(null),l=0,s={},a="object"===("undefined"==typeof document?"undefined":f(document)),d=self,m=!a&&"function"==typeof d.WorkerGlobalScope&&d instanceof d.WorkerGlobalScope,p=m&&"function"==typeof self.skipWaiting;d.System=s;var h=d.location.href.split("#")[0].split("?")[0],v=h.lastIndexOf("/");-1!==v&&(h=h.slice(0,v+1));var y=function(e,n){return new URL(e,n).href};if(a){var P=document.querySelector("base[href]");P&&(h=P.href),s.register=function(e,n){if(!document.currentScript)throw new Error("unexpected call to System.register (document.currentScript is undefined)");if(document.currentScript.__s__)return c[document.currentScript.src]=[e,n],null;var t=document.currentScript.src||"".concat(window.location.href,"__inline_script__").concat(++l);return c[t]=[e,n],_(t)},s.instantiate=function(e){var n=g(e);return new Promise((function(t,r){var o,i,u=function(e){o=e.filename,i=e.error};window.addEventListener("error",u),n.addEventListener("error",(function(){window.removeEventListener("error",u),r("An error occured while loading url with <script> for ".concat(e))})),n.addEventListener("load",(function(){window.removeEventListener("error",u),document.head.removeChild(n),o===e?r(i):t()})),document.head.appendChild(n)}))};var g=function(e){var n=document.createElement("script");return n.async=!0,e.indexOf("".concat(self.location.origin,"/"))&&(n.crossOrigin="anonymous"),n.__s__=!0,n.src=e,n}}if(m){var b=[];if(p){var w=["message","install","activate","fetch"],S={},x=new Promise((function(e){b.push(e)}));w.forEach((function(e){var n=[];self.addEventListener(e,(function(e){var t=S[e.type];t?t(e):(n.push(e),e.waitUntil(x))})),b.push((function(){if(n.length){var e=S[n[0].type];e&&n.forEach((function(n){e(n)})),n.length=0}}))}));var E=self.addEventListener;self.addEventListener=function(e,n,t){return w.indexOf(e)>-1?(S[e]=n,null):E.call(self,e,n,t)}}else{["message"].forEach((function(e){var n=[],t=function(e){n.push(e)};self.addEventListener(e,t),b.push((function(){self.removeEventListener(e,t),n.forEach((function(e){self.dispatchEvent(e)})),n.length=0}))}))}s.register=n((function(n,t){s.register=function(){throw new Error("unexpected call to System.register (called outside url instantiation)")};var r=self.location.href;return c[r]=[n,t],e(_(r),(function(e){return b.forEach((function(e){e()})),b.length=0,e}))})),s.instantiate=n((function(n){return e(self.fetch(n,{credentials:"same-origin"}),(function(t){if(!t.ok)throw Error("Failed to fetch module at ".concat(n));return e(t.text(),(function(e){e.indexOf("//# sourceURL=")<0&&(e+="\n//# sourceURL=".concat(n));var t=s.register;s.register=function(e,t){c[n]=[e,t]},(0,self.eval)(e),s.register=t}))}))}))}var _=function(e,n){var t=y(e,n),r=L(t,n);return r.completionPromise?r.completionPromise===r.namespace?Promise.resolve(r.namespace):r.completionPromise:O(r,n)},L=function f(l,a){var d=t[l];if(d)return d;var m=T(),p={url:l,deps:[],dependencyLoads:[],instantiatePromise:null,linkPromise:null,executePromise:null,completionPromise:null,importerSetters:[],setters:[],execute:null,error:null,hoistedExports:!1,namespace:m};return t[l]=p,p.instantiatePromise=n((function(){return i((function(){var e=c[l];return o((function(){if(!e){var n=s.instantiate(l,a);return o((function(){if(n)return r(n)}),(function(){e=c[l]}))}}),(function(){if(!e)throw new Error("System.register() not called after executing ".concat(l));var n=u(e,2),t=n[0],r=(0,n[1])((function(e,n){p.hoistedExports=!0;var t=!1;if("string"==typeof e){var r=e,o=n;r in m&&m[r]===o||(m[r]=o,t=!0)}else Object.keys(e).forEach((function(n){var r=e[n];n in m&&m[n]===r||(m[n]=r,t=!0)})),e&&e.__esModule&&(m.__esModule=e.__esModule);return t&&p.importerSetters.forEach((function(e){e&&e(m)})),n}),{import:function(e){return _(e,l)},meta:M(l)}),o=r.setters,i=r.execute,c=void 0===i?function(){}:i;p.deps=t,p.setters=o,p.execute=c}))}),(function(e){p.error=e,p.execute=null}))}))(),p.linkPromise=n((function(){return e(p.instantiatePromise,(function(){return e(Promise.all(p.deps.map(n((function(e,n){var t=p.setters[n],i=y(e,l),u=f(i,l);return o((function(){if(u.instantiatePromise)return r(u.instantiatePromise)}),(function(){return t&&(u.importerSetters.push(t),!u.hoistedExports&&u.instantiatePromise||t(u.namespace)),u}))})))),(function(e){p.dependencyLoads=e}))}))}))(),p},O=n((function(n,t){return n.completionPromise=e(j(n,n,{}),(function(){return e(k(n,t?[t]:[]),(function(){return n.namespace}))})),n.completionPromise})),j=n((function(e,n,t){if(!t[e.url])return t[e.url]=!0,i((function(){return o((function(){if(e.linkPromise)return r(e.linkPromise)}),(function(){return r(Promise.all(e.dependencyLoads.map((function(e){return j(e,n,t)}))))}))}),(function(n){if(e.error)throw n;throw e.execute=null,n}))})),k=function e(t,i){if(!(i.indexOf(t.url)>-1)){if(!t.execute){if(t.error)throw t.error;return t.executePromise?t.executePromise:void 0}var u=t.execute;t.execute=null;var c=[];return t.dependencyLoads.forEach((function(n){try{var r=i.slice();r.push(t.url);var o=e(n,r);o&&c.push(o)}catch(e){throw t.error=e,e}})),n((function(){return o((function(){if(c.length)return r(Promise.all(c))}),(function(){try{var e=u.call(A);if(e)return void(t.executePromise=e.then((function(){t.executePromise=null,t.completionPromise=t.namespace}),(function(e){throw t.executePromise=null,t.error=e,e})));t.instantiatePromise=null,t.linkPromise=null,t.completionPromise=t.namespace}catch(e){throw t.error=e,e}finally{t.execute=null}}))}))()}},A=Object.freeze(Object.create(null)),M=function(e){return{url:e,resolve:function(n){return y(n,e)}}},T="undefined"!=typeof Symbol&&Symbol.toStringTag?function(){var e=Object.create(null);return Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),e}:function(){return Object.create(null)}}()}));
11
+ !function(e,n){if("function"==typeof define&&define.amd)define([],n);else if("undefined"!=typeof exports)n();else{n(),e.s={}}}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:this,(function(){"use strict";function e(e,n,t){return e&&e.then||(e=Promise.resolve(e)),n?e.then(n):e}function n(e){return function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];try{return Promise.resolve(e.apply(this,n))}catch(e){return Promise.reject(e)}}}function t(){}function r(e,n){return e&&e.then?e.then(t):Promise.resolve()}function o(e,n){var t=e();return t&&t.then?t.then(n):n(t)}function i(e,n){try{var t=e()}catch(e){return n(e)}return t&&t.then?t.then(void 0,n):t}function u(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,o,i,u,c=[],f=!0,l=!1;try{if(i=(t=t.call(e)).next,0===n);else for(;!(f=(r=i.call(t)).done)&&(c.push(r.value),c.length!==n);f=!0);}catch(e){l=!0,o=e}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(l)throw o}}return c}}(e,n)||function(e,n){if(e){if("string"==typeof e)return c(e,n);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?c(e,n):void 0}}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}!function(){var t=Object.create(null),c=Object.create(null),l=0,s={},a="object"===("undefined"==typeof document?"undefined":f(document)),d=self,m=!a&&"function"==typeof d.WorkerGlobalScope&&d instanceof d.WorkerGlobalScope,p=m&&"function"==typeof self.skipWaiting;d.System=s;var h=d.location.href.split("#")[0].split("?")[0],v=h.lastIndexOf("/");-1!==v&&(h=h.slice(0,v+1));var y=function(e,n){return new URL(e,n).href};if(a){var P=document.querySelector("base[href]");P&&(h=P.href),s.register=function(e,n){if(!document.currentScript)throw new Error("unexpected call to System.register (document.currentScript is undefined)");if(document.currentScript.__s__)return c[document.currentScript.src]=[e,n],null;var t=document.currentScript.src||"".concat(window.location.href,"__inline_script__").concat(++l);return c[t]=[e,n],_(t)},s.instantiate=function(e){var n=g(e);return new Promise((function(t,r){var o,i,u=function(e){o=e.filename,i=e.error};window.addEventListener("error",u),n.addEventListener("error",(function(){window.removeEventListener("error",u),r("An error occured while loading url with <script> for ".concat(e))})),n.addEventListener("load",(function(){window.removeEventListener("error",u),document.head.removeChild(n),o===e?r(i):t()})),document.head.appendChild(n)}))};var g=function(e){var n=document.createElement("script");return n.async=!0,e.indexOf("".concat(self.location.origin,"/"))&&(n.crossOrigin="anonymous"),n.__s__=!0,n.src=e,n}}if(m){var b=[];if(p){var w=["message","install","activate","fetch"],S={},x=new Promise((function(e){b.push(e)}));w.forEach((function(e){var n=[];self.addEventListener(e,(function(e){var t=S[e.type];t?t(e):(n.push(e),e.waitUntil(x))})),b.push((function(){if(n.length){var e=S[n[0].type];e&&n.forEach((function(n){e(n)})),n.length=0}}))}));var E=self.addEventListener;self.addEventListener=function(e,n,t){return w.indexOf(e)>-1?(S[e]=n,null):E.call(self,e,n,t)}}else{["message"].forEach((function(e){var n=[],t=function(e){n.push(e)};self.addEventListener(e,t),b.push((function(){self.removeEventListener(e,t),n.forEach((function(e){self.dispatchEvent(e)})),n.length=0}))}))}s.register=n((function(n,t){s.register=function(){throw new Error("unexpected call to System.register (called outside url instantiation)")};var r=self.location.href;return c[r]=[n,t],e(_(r),(function(e){return b.forEach((function(e){e()})),b.length=0,e}))})),s.instantiate=n((function(n){return e(self.fetch(n,{credentials:"same-origin"}),(function(t){if(!t.ok)throw Error("Failed to fetch module at ".concat(n));return e(t.text(),(function(e){e.indexOf("//# sourceURL=")<0&&(e+="\n//# sourceURL=".concat(n));var t=s.register;s.register=function(e,t){c[n]=[e,t]},(0,self.eval)(e),s.register=t}))}))}))}var _=function(e,n){var t=y(e,n),r=L(t,n);return r.completionPromise?r.completionPromise===r.namespace?Promise.resolve(r.namespace):r.completionPromise:O(r,n)},L=function(f,l){var a=t[f];if(a)return a;var d=T(),m={url:f,deps:[],dependencyLoads:[],instantiatePromise:null,linkPromise:null,executePromise:null,completionPromise:null,importerSetters:[],setters:[],execute:null,error:null,hoistedExports:!1,namespace:d};return t[f]=m,m.instantiatePromise=n((function(){return i((function(){var e=c[f];return o((function(){if(!e){var n=s.instantiate(f,l);return o((function(){if(n)return r(n)}),(function(){e=c[f]}))}}),(function(){if(!e)throw new Error("System.register() not called after executing ".concat(f));var n=u(e,2),t=n[0],r=(0,n[1])((function(e,n){m.hoistedExports=!0;var t=!1;if("string"==typeof e){var r=e,o=n;r in d&&d[r]===o||(d[r]=o,t=!0)}else Object.keys(e).forEach((function(n){var r=e[n];n in d&&d[n]===r||(d[n]=r,t=!0)})),e&&e.__esModule&&(d.__esModule=e.__esModule);return t&&m.importerSetters.forEach((function(e){e&&e(d)})),n}),{import:function(e){return _(e,f)},meta:M(f)}),o=r.setters,i=r.execute,c=void 0===i?function(){}:i;m.deps=t,m.setters=o,m.execute=c}))}),(function(e){m.error=e,m.execute=null}))}))(),m.linkPromise=n((function(){return e(m.instantiatePromise,(function(){return e(Promise.all(m.deps.map(n((function(e,n){var t=m.setters[n],i=y(e,f),u=L(i,f);return o((function(){if(u.instantiatePromise)return r(u.instantiatePromise)}),(function(){return t&&(u.importerSetters.push(t),!u.hoistedExports&&u.instantiatePromise||t(u.namespace)),u}))})))),(function(e){m.dependencyLoads=e}))}))}))(),m},O=n((function(n,t){return n.completionPromise=e(j(n,n,{}),(function(){return e(k(n,t?[t]:[]),(function(){return n.namespace}))})),n.completionPromise})),j=n((function(e,n,t){if(!t[e.url])return t[e.url]=!0,i((function(){return o((function(){if(e.linkPromise)return r(e.linkPromise)}),(function(){return r(Promise.all(e.dependencyLoads.map((function(e){return j(e,n,t)}))))}))}),(function(n){if(e.error)throw n;throw e.execute=null,n}))})),k=function(e,t){if(!(t.indexOf(e.url)>-1)){if(!e.execute){if(e.error)throw e.error;return e.executePromise?e.executePromise:void 0}var i=e.execute;e.execute=null;var u=[];return e.dependencyLoads.forEach((function(n){try{var r=t.slice();r.push(e.url);var o=k(n,r);o&&u.push(o)}catch(n){throw e.error=n,n}})),n((function(){return o((function(){if(u.length)return r(Promise.all(u))}),(function(){try{var n=i.call(A);if(n)return void(e.executePromise=n.then((function(){e.executePromise=null,e.completionPromise=e.namespace}),(function(n){throw e.executePromise=null,e.error=n,n})));e.instantiatePromise=null,e.linkPromise=null,e.completionPromise=e.namespace}catch(n){throw e.error=n,n}finally{e.execute=null}}))}))()}},A=Object.freeze(Object.create(null)),M=function(e){return{url:e,resolve:function(n){return y(n,e)}}},T="undefined"!=typeof Symbol&&Symbol.toStringTag?function(){var e=Object.create(null);return Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),e}:function(){return Object.create(null)}}()}));
12
12
  </script>
13
13
  <style original-position="7:5;21:13" jsenv-cooked-by="jsenv:html_inline_content_analysis">body{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;margin:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif}code{font-family:source-code-pro,Menlo,Monaco,Consolas,Courier New,monospace}</style>
14
14
  <title>Jsenv App</title>
@@ -8,7 +8,7 @@
8
8
  ;(function(){var m = {"/js/vendors.nomodule.js":"/js/vendors.nomodule.js?v=e9f160e5","/other/preact_logo.svg":"/other/preact_logo.svg?v=7aea73c3"}; window.__v__ = function (s) { return m[s] || s }; })();
9
9
  </script>
10
10
  <script>
11
- !function(e,n){if("function"==typeof define&&define.amd)define([],n);else if("undefined"!=typeof exports)n();else{n(),e.s={}}}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:this,(function(){"use strict";function e(e,n,t){return e&&e.then||(e=Promise.resolve(e)),n?e.then(n):e}function n(e){return function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];try{return Promise.resolve(e.apply(this,n))}catch(e){return Promise.reject(e)}}}function t(){}function r(e,n){return e&&e.then?e.then(t):Promise.resolve()}function o(e,n){var t=e();return t&&t.then?t.then(n):n(t)}function i(e,n){try{var t=e()}catch(e){return n(e)}return t&&t.then?t.then(void 0,n):t}function u(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,o,i,u,c=[],f=!0,l=!1;try{if(i=(t=t.call(e)).next,0===n);else for(;!(f=(r=i.call(t)).done)&&(c.push(r.value),c.length!==n);f=!0);}catch(e){l=!0,o=e}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(l)throw o}}return c}}(e,n)||function(e,n){if(e){if("string"==typeof e)return c(e,n);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?c(e,n):void 0}}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}!function(){var t=Object.create(null),c=Object.create(null),l=0,s={},a="object"===("undefined"==typeof document?"undefined":f(document)),d=self,m=!a&&"function"==typeof d.WorkerGlobalScope&&d instanceof d.WorkerGlobalScope,p=m&&"function"==typeof self.skipWaiting;d.System=s;var h=d.location.href.split("#")[0].split("?")[0],v=h.lastIndexOf("/");-1!==v&&(h=h.slice(0,v+1));var y=function(e,n){return new URL(e,n).href};if(a){var P=document.querySelector("base[href]");P&&(h=P.href),s.register=function(e,n){if(!document.currentScript)throw new Error("unexpected call to System.register (document.currentScript is undefined)");if(document.currentScript.__s__)return c[document.currentScript.src]=[e,n],null;var t=document.currentScript.src||"".concat(window.location.href,"__inline_script__").concat(++l);return c[t]=[e,n],_(t)},s.instantiate=function(e){var n=g(e);return new Promise((function(t,r){var o,i,u=function(e){o=e.filename,i=e.error};window.addEventListener("error",u),n.addEventListener("error",(function(){window.removeEventListener("error",u),r("An error occured while loading url with <script> for ".concat(e))})),n.addEventListener("load",(function(){window.removeEventListener("error",u),document.head.removeChild(n),o===e?r(i):t()})),document.head.appendChild(n)}))};var g=function(e){var n=document.createElement("script");return n.async=!0,e.indexOf("".concat(self.location.origin,"/"))&&(n.crossOrigin="anonymous"),n.__s__=!0,n.src=e,n}}if(m){var b=[];if(p){var w=["message","install","activate","fetch"],S={},x=new Promise((function(e){b.push(e)}));w.forEach((function(e){var n=[];self.addEventListener(e,(function(e){var t=S[e.type];t?t(e):(n.push(e),e.waitUntil(x))})),b.push((function(){if(n.length){var e=S[n[0].type];e&&n.forEach((function(n){e(n)})),n.length=0}}))}));var E=self.addEventListener;self.addEventListener=function(e,n,t){return w.indexOf(e)>-1?(S[e]=n,null):E.call(self,e,n,t)}}else{["message"].forEach((function(e){var n=[],t=function(e){n.push(e)};self.addEventListener(e,t),b.push((function(){self.removeEventListener(e,t),n.forEach((function(e){self.dispatchEvent(e)})),n.length=0}))}))}s.register=n((function(n,t){s.register=function(){throw new Error("unexpected call to System.register (called outside url instantiation)")};var r=self.location.href;return c[r]=[n,t],e(_(r),(function(e){return b.forEach((function(e){e()})),b.length=0,e}))})),s.instantiate=n((function(n){return e(self.fetch(n,{credentials:"same-origin"}),(function(t){if(!t.ok)throw Error("Failed to fetch module at ".concat(n));return e(t.text(),(function(e){e.indexOf("//# sourceURL=")<0&&(e+="\n//# sourceURL=".concat(n));var t=s.register;s.register=function(e,t){c[n]=[e,t]},(0,self.eval)(e),s.register=t}))}))}))}var _=function(e,n){var t=y(e,n),r=L(t,n);return r.completionPromise?r.completionPromise===r.namespace?Promise.resolve(r.namespace):r.completionPromise:O(r,n)},L=function f(l,a){var d=t[l];if(d)return d;var m=T(),p={url:l,deps:[],dependencyLoads:[],instantiatePromise:null,linkPromise:null,executePromise:null,completionPromise:null,importerSetters:[],setters:[],execute:null,error:null,hoistedExports:!1,namespace:m};return t[l]=p,p.instantiatePromise=n((function(){return i((function(){var e=c[l];return o((function(){if(!e){var n=s.instantiate(l,a);return o((function(){if(n)return r(n)}),(function(){e=c[l]}))}}),(function(){if(!e)throw new Error("System.register() not called after executing ".concat(l));var n=u(e,2),t=n[0],r=(0,n[1])((function(e,n){p.hoistedExports=!0;var t=!1;if("string"==typeof e){var r=e,o=n;r in m&&m[r]===o||(m[r]=o,t=!0)}else Object.keys(e).forEach((function(n){var r=e[n];n in m&&m[n]===r||(m[n]=r,t=!0)})),e&&e.__esModule&&(m.__esModule=e.__esModule);return t&&p.importerSetters.forEach((function(e){e&&e(m)})),n}),{import:function(e){return _(e,l)},meta:M(l)}),o=r.setters,i=r.execute,c=void 0===i?function(){}:i;p.deps=t,p.setters=o,p.execute=c}))}),(function(e){p.error=e,p.execute=null}))}))(),p.linkPromise=n((function(){return e(p.instantiatePromise,(function(){return e(Promise.all(p.deps.map(n((function(e,n){var t=p.setters[n],i=y(e,l),u=f(i,l);return o((function(){if(u.instantiatePromise)return r(u.instantiatePromise)}),(function(){return t&&(u.importerSetters.push(t),!u.hoistedExports&&u.instantiatePromise||t(u.namespace)),u}))})))),(function(e){p.dependencyLoads=e}))}))}))(),p},O=n((function(n,t){return n.completionPromise=e(j(n,n,{}),(function(){return e(k(n,t?[t]:[]),(function(){return n.namespace}))})),n.completionPromise})),j=n((function(e,n,t){if(!t[e.url])return t[e.url]=!0,i((function(){return o((function(){if(e.linkPromise)return r(e.linkPromise)}),(function(){return r(Promise.all(e.dependencyLoads.map((function(e){return j(e,n,t)}))))}))}),(function(n){if(e.error)throw n;throw e.execute=null,n}))})),k=function e(t,i){if(!(i.indexOf(t.url)>-1)){if(!t.execute){if(t.error)throw t.error;return t.executePromise?t.executePromise:void 0}var u=t.execute;t.execute=null;var c=[];return t.dependencyLoads.forEach((function(n){try{var r=i.slice();r.push(t.url);var o=e(n,r);o&&c.push(o)}catch(e){throw t.error=e,e}})),n((function(){return o((function(){if(c.length)return r(Promise.all(c))}),(function(){try{var e=u.call(A);if(e)return void(t.executePromise=e.then((function(){t.executePromise=null,t.completionPromise=t.namespace}),(function(e){throw t.executePromise=null,t.error=e,e})));t.instantiatePromise=null,t.linkPromise=null,t.completionPromise=t.namespace}catch(e){throw t.error=e,e}finally{t.execute=null}}))}))()}},A=Object.freeze(Object.create(null)),M=function(e){return{url:e,resolve:function(n){return y(n,e)}}},T="undefined"!=typeof Symbol&&Symbol.toStringTag?function(){var e=Object.create(null);return Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),e}:function(){return Object.create(null)}}()}));
11
+ !function(e,n){if("function"==typeof define&&define.amd)define([],n);else if("undefined"!=typeof exports)n();else{n(),e.s={}}}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:this,(function(){"use strict";function e(e,n,t){return e&&e.then||(e=Promise.resolve(e)),n?e.then(n):e}function n(e){return function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];try{return Promise.resolve(e.apply(this,n))}catch(e){return Promise.reject(e)}}}function t(){}function r(e,n){return e&&e.then?e.then(t):Promise.resolve()}function o(e,n){var t=e();return t&&t.then?t.then(n):n(t)}function i(e,n){try{var t=e()}catch(e){return n(e)}return t&&t.then?t.then(void 0,n):t}function u(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,o,i,u,c=[],f=!0,l=!1;try{if(i=(t=t.call(e)).next,0===n);else for(;!(f=(r=i.call(t)).done)&&(c.push(r.value),c.length!==n);f=!0);}catch(e){l=!0,o=e}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(l)throw o}}return c}}(e,n)||function(e,n){if(e){if("string"==typeof e)return c(e,n);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?c(e,n):void 0}}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}!function(){var t=Object.create(null),c=Object.create(null),l=0,s={},a="object"===("undefined"==typeof document?"undefined":f(document)),d=self,m=!a&&"function"==typeof d.WorkerGlobalScope&&d instanceof d.WorkerGlobalScope,p=m&&"function"==typeof self.skipWaiting;d.System=s;var h=d.location.href.split("#")[0].split("?")[0],v=h.lastIndexOf("/");-1!==v&&(h=h.slice(0,v+1));var y=function(e,n){return new URL(e,n).href};if(a){var P=document.querySelector("base[href]");P&&(h=P.href),s.register=function(e,n){if(!document.currentScript)throw new Error("unexpected call to System.register (document.currentScript is undefined)");if(document.currentScript.__s__)return c[document.currentScript.src]=[e,n],null;var t=document.currentScript.src||"".concat(window.location.href,"__inline_script__").concat(++l);return c[t]=[e,n],_(t)},s.instantiate=function(e){var n=g(e);return new Promise((function(t,r){var o,i,u=function(e){o=e.filename,i=e.error};window.addEventListener("error",u),n.addEventListener("error",(function(){window.removeEventListener("error",u),r("An error occured while loading url with <script> for ".concat(e))})),n.addEventListener("load",(function(){window.removeEventListener("error",u),document.head.removeChild(n),o===e?r(i):t()})),document.head.appendChild(n)}))};var g=function(e){var n=document.createElement("script");return n.async=!0,e.indexOf("".concat(self.location.origin,"/"))&&(n.crossOrigin="anonymous"),n.__s__=!0,n.src=e,n}}if(m){var b=[];if(p){var w=["message","install","activate","fetch"],S={},x=new Promise((function(e){b.push(e)}));w.forEach((function(e){var n=[];self.addEventListener(e,(function(e){var t=S[e.type];t?t(e):(n.push(e),e.waitUntil(x))})),b.push((function(){if(n.length){var e=S[n[0].type];e&&n.forEach((function(n){e(n)})),n.length=0}}))}));var E=self.addEventListener;self.addEventListener=function(e,n,t){return w.indexOf(e)>-1?(S[e]=n,null):E.call(self,e,n,t)}}else{["message"].forEach((function(e){var n=[],t=function(e){n.push(e)};self.addEventListener(e,t),b.push((function(){self.removeEventListener(e,t),n.forEach((function(e){self.dispatchEvent(e)})),n.length=0}))}))}s.register=n((function(n,t){s.register=function(){throw new Error("unexpected call to System.register (called outside url instantiation)")};var r=self.location.href;return c[r]=[n,t],e(_(r),(function(e){return b.forEach((function(e){e()})),b.length=0,e}))})),s.instantiate=n((function(n){return e(self.fetch(n,{credentials:"same-origin"}),(function(t){if(!t.ok)throw Error("Failed to fetch module at ".concat(n));return e(t.text(),(function(e){e.indexOf("//# sourceURL=")<0&&(e+="\n//# sourceURL=".concat(n));var t=s.register;s.register=function(e,t){c[n]=[e,t]},(0,self.eval)(e),s.register=t}))}))}))}var _=function(e,n){var t=y(e,n),r=L(t,n);return r.completionPromise?r.completionPromise===r.namespace?Promise.resolve(r.namespace):r.completionPromise:O(r,n)},L=function(f,l){var a=t[f];if(a)return a;var d=T(),m={url:f,deps:[],dependencyLoads:[],instantiatePromise:null,linkPromise:null,executePromise:null,completionPromise:null,importerSetters:[],setters:[],execute:null,error:null,hoistedExports:!1,namespace:d};return t[f]=m,m.instantiatePromise=n((function(){return i((function(){var e=c[f];return o((function(){if(!e){var n=s.instantiate(f,l);return o((function(){if(n)return r(n)}),(function(){e=c[f]}))}}),(function(){if(!e)throw new Error("System.register() not called after executing ".concat(f));var n=u(e,2),t=n[0],r=(0,n[1])((function(e,n){m.hoistedExports=!0;var t=!1;if("string"==typeof e){var r=e,o=n;r in d&&d[r]===o||(d[r]=o,t=!0)}else Object.keys(e).forEach((function(n){var r=e[n];n in d&&d[n]===r||(d[n]=r,t=!0)})),e&&e.__esModule&&(d.__esModule=e.__esModule);return t&&m.importerSetters.forEach((function(e){e&&e(d)})),n}),{import:function(e){return _(e,f)},meta:M(f)}),o=r.setters,i=r.execute,c=void 0===i?function(){}:i;m.deps=t,m.setters=o,m.execute=c}))}),(function(e){m.error=e,m.execute=null}))}))(),m.linkPromise=n((function(){return e(m.instantiatePromise,(function(){return e(Promise.all(m.deps.map(n((function(e,n){var t=m.setters[n],i=y(e,f),u=L(i,f);return o((function(){if(u.instantiatePromise)return r(u.instantiatePromise)}),(function(){return t&&(u.importerSetters.push(t),!u.hoistedExports&&u.instantiatePromise||t(u.namespace)),u}))})))),(function(e){m.dependencyLoads=e}))}))}))(),m},O=n((function(n,t){return n.completionPromise=e(j(n,n,{}),(function(){return e(k(n,t?[t]:[]),(function(){return n.namespace}))})),n.completionPromise})),j=n((function(e,n,t){if(!t[e.url])return t[e.url]=!0,i((function(){return o((function(){if(e.linkPromise)return r(e.linkPromise)}),(function(){return r(Promise.all(e.dependencyLoads.map((function(e){return j(e,n,t)}))))}))}),(function(n){if(e.error)throw n;throw e.execute=null,n}))})),k=function(e,t){if(!(t.indexOf(e.url)>-1)){if(!e.execute){if(e.error)throw e.error;return e.executePromise?e.executePromise:void 0}var i=e.execute;e.execute=null;var u=[];return e.dependencyLoads.forEach((function(n){try{var r=t.slice();r.push(e.url);var o=k(n,r);o&&u.push(o)}catch(n){throw e.error=n,n}})),n((function(){return o((function(){if(u.length)return r(Promise.all(u))}),(function(){try{var n=i.call(A);if(n)return void(e.executePromise=n.then((function(){e.executePromise=null,e.completionPromise=e.namespace}),(function(n){throw e.executePromise=null,e.error=n,n})));e.instantiatePromise=null,e.linkPromise=null,e.completionPromise=e.namespace}catch(n){throw e.error=n,n}finally{e.execute=null}}))}))()}},A=Object.freeze(Object.create(null)),M=function(e){return{url:e,resolve:function(n){return y(n,e)}}},T="undefined"!=typeof Symbol&&Symbol.toStringTag?function(){var e=Object.create(null);return Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),e}:function(){return Object.create(null)}}()}));
12
12
  </script>
13
13
  <style>body{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;margin:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif}code{font-family:source-code-pro,Menlo,Monaco,Consolas,Courier New,monospace}</style>
14
14
  <title>Jsenv App</title>
@@ -18,18 +18,18 @@
18
18
  "preact": "10.23.1"
19
19
  },
20
20
  "devDependencies": {
21
- "@babel/eslint-parser": "7.24.8",
21
+ "@babel/eslint-parser": "7.25.1",
22
22
  "@babel/plugin-syntax-import-assertions": "7.24.7",
23
- "@babel/plugin-transform-react-jsx": "7.24.7",
23
+ "@babel/plugin-transform-react-jsx": "7.25.2",
24
24
  "@jsenv/assert": "4.1.15",
25
- "@jsenv/core": "39.2.18",
26
- "@jsenv/plugin-preact": "1.6.14",
27
- "@jsenv/plugin-bundling": "2.7.6",
25
+ "@jsenv/core": "39.3.0",
26
+ "@jsenv/plugin-preact": "1.6.15",
27
+ "@jsenv/plugin-bundling": "2.7.7",
28
28
  "@jsenv/plugin-minification": "1.5.5",
29
29
  "@jsenv/eslint-config": "16.5.3",
30
30
  "@jsenv/eslint-import-resolver": "8.1.3",
31
- "@jsenv/test": "3.3.28",
32
- "eslint": "9.7.0",
31
+ "@jsenv/test": "3.3.29",
32
+ "eslint": "8.56.0",
33
33
  "eslint-plugin-html": "8.1.1",
34
34
  "eslint-plugin-import": "2.29.1",
35
35
  "eslint-plugin-react": "7.35.0",
@@ -35,8 +35,7 @@ const injectRibbon = ({ text }) => {
35
35
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
36
36
  text-align: center;
37
37
  user-select: none;
38
- }
39
- `;
38
+ }`;
40
39
  const html = /* html */ `<div id="jsenv_ribbon_container">
41
40
  <style>${css}</style>
42
41
  <div id="jsenv_ribbon">
@@ -64,7 +63,33 @@ const injectRibbon = ({ text }) => {
64
63
  const jsenvRibbonElement = new JsenvRibbonHtmlElement({
65
64
  hidden: toolbarStateInLocalStorage.ribbonDisplayed === false,
66
65
  });
67
- document.body.appendChild(jsenvRibbonElement);
66
+ appendIntoRespectingLineBreaksAndIndentation(
67
+ jsenvRibbonElement,
68
+ document.body,
69
+ );
70
+ };
71
+
72
+ const appendIntoRespectingLineBreaksAndIndentation = (
73
+ node,
74
+ parentNode,
75
+ { indent = 2 } = {},
76
+ ) => {
77
+ const indentMinusOne = " ".repeat(indent - 1);
78
+ const desiredIndent = " ".repeat(indent);
79
+ const previousSibling =
80
+ parentNode.childNodes[parentNode.childNodes.length - 1];
81
+ if (previousSibling && previousSibling.nodeName === "#text") {
82
+ if (previousSibling.nodeValue === `\n${indentMinusOne}`) {
83
+ previousSibling.nodeValue = `\n${desiredIndent}`;
84
+ }
85
+ if (previousSibling.nodeValue !== `\n${desiredIndent}`) {
86
+ previousSibling.nodeValue = `\n${desiredIndent}`;
87
+ }
88
+ } else {
89
+ parentNode.appendChild(document.createTextNode(`\n${desiredIndent}`));
90
+ }
91
+ parentNode.appendChild(node);
92
+ parentNode.appendChild(document.createTextNode(`\n${indentMinusOne}`));
68
93
  };
69
94
 
70
95
  export { injectRibbon };
@@ -1,6 +1,6 @@
1
1
  import { createImportMetaHot } from "/@fs/Users/damien.maillard/dev/perso/jsenv-core/dist/js/import_meta_hot.js";
2
2
  import.meta.hot = createImportMetaHot(import.meta.url);
3
- import { installReactRefresh } from "/@fs/Users/damien.maillard/dev/perso/jsenv-core/packages/related/plugin-react/src/client/react_refresh.js?v=1.5.18"
3
+ import { installReactRefresh } from "/@fs/Users/damien.maillard/dev/perso/jsenv-core/packages/related/plugin-react/src/client/react_refresh.js?v=1.5.19"
4
4
  const __react_refresh__ = installReactRefresh("file:///Users/damien.maillard/dev/perso/jsenv-core/packages/related/cli/template-web-react/src/app/app.jsx");
5
5
  var _jsxFileName = "/Users/damien.maillard/dev/perso/jsenv-core/packages/related/cli/template-web-react/src/app/app.jsx",
6
6
  _s = $RefreshSig$();
@@ -1,6 +1,6 @@
1
1
  import { createImportMetaHot } from "/@fs/Users/damien.maillard/dev/perso/jsenv-core/dist/js/import_meta_hot.js";
2
2
  import.meta.hot = createImportMetaHot(import.meta.url);
3
- import { installReactRefresh } from "/@fs/Users/damien.maillard/dev/perso/jsenv-core/packages/related/plugin-react/src/client/react_refresh.js?v=1.5.18"
3
+ import { installReactRefresh } from "/@fs/Users/damien.maillard/dev/perso/jsenv-core/packages/related/plugin-react/src/client/react_refresh.js?v=1.5.19"
4
4
  const __react_refresh__ = installReactRefresh("file:///Users/damien.maillard/dev/perso/jsenv-core/packages/related/cli/template-web-react/src/app/counter.jsx");
5
5
  var _jsxFileName = "/Users/damien.maillard/dev/perso/jsenv-core/packages/related/cli/template-web-react/src/app/counter.jsx",
6
6
  _s = $RefreshSig$();
@@ -13,6 +13,6 @@
13
13
  "etag": "\"24de3-spPgCr6CjarK+3IKyYvr7IbL5og\""
14
14
  }
15
15
  },
16
- "createdMs": 1722504879446,
17
- "lastModifiedMs": 1722504879446
16
+ "createdMs": 1722698810308,
17
+ "lastModifiedMs": 1722698810308
18
18
  }
@@ -21,6 +21,6 @@
21
21
  "etag": "\"374fe-fsntEzQ5xArVDdjB6uhY0/KcLB4\""
22
22
  }
23
23
  },
24
- "createdMs": 1722504879742,
25
- "lastModifiedMs": 1722504879742
24
+ "createdMs": 1722698810617,
25
+ "lastModifiedMs": 1722698810617
26
26
  }
@@ -25,6 +25,6 @@
25
25
  "etag": "\"1c0ec9-jp5hhibqAGBDNhD0WPCcb2oc9is\""
26
26
  }
27
27
  },
28
- "createdMs": 1722504880706,
29
- "lastModifiedMs": 1722504880706
28
+ "createdMs": 1722698811560,
29
+ "lastModifiedMs": 1722698811560
30
30
  }
@@ -13,6 +13,6 @@
13
13
  "etag": "\"91a6-/corAz+8KjQ1ynvFFf9VFVk220k\""
14
14
  }
15
15
  },
16
- "createdMs": 1722504879138,
17
- "lastModifiedMs": 1722504879138
16
+ "createdMs": 1722698810012,
17
+ "lastModifiedMs": 1722698810012
18
18
  }
@@ -1,3 +1,3 @@
1
1
  {
2
- "version": "2.8.7"
2
+ "version": "2.8.8"
3
3
  }
@@ -304,7 +304,7 @@
304
304
  }
305
305
  var _import2 = function _import(specifier, parentUrl) {
306
306
  var url = resolveUrl(specifier, parentUrl);
307
- var load = getOrCreateLoad(url, parentUrl);
307
+ var load = _getOrCreateLoad(url, parentUrl);
308
308
  if (load.completionPromise) {
309
309
  if (load.completionPromise === load.namespace) {
310
310
  return Promise.resolve(load.namespace);
@@ -313,7 +313,7 @@
313
313
  }
314
314
  return startExecution(load, parentUrl);
315
315
  };
316
- var getOrCreateLoad = function getOrCreateLoad(url, firstParentUrl) {
316
+ var _getOrCreateLoad = function getOrCreateLoad(url, firstParentUrl) {
317
317
  var existingLoad = loadRegistry[url];
318
318
  if (existingLoad) {
319
319
  return existingLoad;
@@ -411,7 +411,7 @@
411
411
  return _await(Promise.all(load.deps.map(_async(function (dep, index) {
412
412
  var setter = load.setters[index];
413
413
  var dependencyUrl = resolveUrl(dep, url);
414
- var dependencyLoad = getOrCreateLoad(dependencyUrl, url);
414
+ var dependencyLoad = _getOrCreateLoad(dependencyUrl, url);
415
415
  return _invoke(function () {
416
416
  if (dependencyLoad.instantiatePromise) {
417
417
  return _awaitIgnored(dependencyLoad.instantiatePromise);
@@ -435,7 +435,7 @@
435
435
  var startExecution = _async(function (load, importerUrl) {
436
436
  load.completionPromise = function () {
437
437
  return _await(instantiateAll(load, load, {}), function () {
438
- return _await(postOrderExec(load, importerUrl ? [importerUrl] : []), function () {
438
+ return _await(_postOrderExec(load, importerUrl ? [importerUrl] : []), function () {
439
439
  return load.namespace;
440
440
  });
441
441
  });
@@ -466,7 +466,7 @@
466
466
  throw error;
467
467
  });
468
468
  });
469
- var postOrderExec = function postOrderExec(load, importStack) {
469
+ var _postOrderExec = function postOrderExec(load, importStack) {
470
470
  if (importStack.indexOf(load.url) > -1) {
471
471
  return undefined;
472
472
  }
@@ -488,7 +488,7 @@
488
488
  try {
489
489
  var depImportStack = importStack.slice();
490
490
  depImportStack.push(load.url);
491
- var depLoadPromise = postOrderExec(dependencyLoad, depImportStack);
491
+ var depLoadPromise = _postOrderExec(dependencyLoad, depImportStack);
492
492
  if (depLoadPromise) {
493
493
  depLoadPromises.push(depLoadPromise);
494
494
  }
@@ -13,6 +13,6 @@
13
13
  "etag": "\"4e15-0TqZuPYgLCuNbrJESMMFydXZE54\""
14
14
  }
15
15
  },
16
- "createdMs": 1722491684980,
17
- "lastModifiedMs": 1722491684980
16
+ "createdMs": 1722758987669,
17
+ "lastModifiedMs": 1722758987669
18
18
  }
@@ -21,6 +21,6 @@
21
21
  "etag": "\"5859-h+1Fv2ZxlKoAkfe+AiLm/TOeS98\""
22
22
  }
23
23
  },
24
- "createdMs": 1722491685077,
25
- "lastModifiedMs": 1722491685077
24
+ "createdMs": 1722758987768,
25
+ "lastModifiedMs": 1722758987768
26
26
  }
@@ -25,6 +25,6 @@
25
25
  "etag": "\"68b0e-sBIWX8VyJWZkKzd0Qg8Fv11Ogw8\""
26
26
  }
27
27
  },
28
- "createdMs": 1722491685288,
29
- "lastModifiedMs": 1722491685288
28
+ "createdMs": 1722758987981,
29
+ "lastModifiedMs": 1722758987981
30
30
  }
@@ -1,3 +1,3 @@
1
1
  {
2
- "version": "2.8.5"
2
+ "version": "2.8.9"
3
3
  }
@@ -1,9 +1,9 @@
1
1
  ------------ 2 executions ready -------------
2
2
  directory: /Users/damien.maillard/dev/perso/jsenv-core/packages/related/cli/template-web-react
3
3
  ---------------------------------------------
4
- ✔ 1/2 src/tests/animals.test.html [chromium/1.7s] (1 completed)
5
- ✔ 2/2 src/tests/app.test.mjs [node/2.5s] (all completed)
4
+ ✔ 1/2 src/tests/animals.test.html [chromium/0.3s] (1 completed)
5
+ ✔ 2/2 src/tests/app.test.mjs [node/4.1s] (all completed)
6
6
  ------------- 2 executions done -------------
7
7
  status: all completed
8
- duration: 3.2s (setup: 0.4s, execution: 3.1s, teardown: 0.2s)
8
+ duration: 4.8s (setup: 0.4s, execution: 4.6s, teardown: 0.2s)
9
9
  ---------------------------------------------
@@ -1 +1 @@
1
- !function(e,n){if("function"==typeof define&&define.amd)define([],n);else if("undefined"!=typeof exports)n();else{n(),e.s={}}}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:this,(function(){"use strict";function e(e,n,t){return e&&e.then||(e=Promise.resolve(e)),n?e.then(n):e}function n(e){return function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];try{return Promise.resolve(e.apply(this,n))}catch(e){return Promise.reject(e)}}}function t(){}function r(e,n){return e&&e.then?e.then(t):Promise.resolve()}function o(e,n){var t=e();return t&&t.then?t.then(n):n(t)}function i(e,n){try{var t=e()}catch(e){return n(e)}return t&&t.then?t.then(void 0,n):t}function u(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,o,i,u,c=[],f=!0,l=!1;try{if(i=(t=t.call(e)).next,0===n);else for(;!(f=(r=i.call(t)).done)&&(c.push(r.value),c.length!==n);f=!0);}catch(e){l=!0,o=e}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(l)throw o}}return c}}(e,n)||function(e,n){if(e){if("string"==typeof e)return c(e,n);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?c(e,n):void 0}}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}!function(){var t=Object.create(null),c=Object.create(null),l=0,s={},a="object"===("undefined"==typeof document?"undefined":f(document)),d=self,m=!a&&"function"==typeof d.WorkerGlobalScope&&d instanceof d.WorkerGlobalScope,p=m&&"function"==typeof self.skipWaiting;d.System=s;var h=d.location.href.split("#")[0].split("?")[0],v=h.lastIndexOf("/");-1!==v&&(h=h.slice(0,v+1));var y=function(e,n){return new URL(e,n).href};if(a){var P=document.querySelector("base[href]");P&&(h=P.href),s.register=function(e,n){if(!document.currentScript)throw new Error("unexpected call to System.register (document.currentScript is undefined)");if(document.currentScript.__s__)return c[document.currentScript.src]=[e,n],null;var t=document.currentScript.src||"".concat(window.location.href,"__inline_script__").concat(++l);return c[t]=[e,n],_(t)},s.instantiate=function(e){var n=g(e);return new Promise((function(t,r){var o,i,u=function(e){o=e.filename,i=e.error};window.addEventListener("error",u),n.addEventListener("error",(function(){window.removeEventListener("error",u),r("An error occured while loading url with <script> for ".concat(e))})),n.addEventListener("load",(function(){window.removeEventListener("error",u),document.head.removeChild(n),o===e?r(i):t()})),document.head.appendChild(n)}))};var g=function(e){var n=document.createElement("script");return n.async=!0,e.indexOf("".concat(self.location.origin,"/"))&&(n.crossOrigin="anonymous"),n.__s__=!0,n.src=e,n}}if(m){var b=[];if(p){var w=["message","install","activate","fetch"],S={},x=new Promise((function(e){b.push(e)}));w.forEach((function(e){var n=[];self.addEventListener(e,(function(e){var t=S[e.type];t?t(e):(n.push(e),e.waitUntil(x))})),b.push((function(){if(n.length){var e=S[n[0].type];e&&n.forEach((function(n){e(n)})),n.length=0}}))}));var E=self.addEventListener;self.addEventListener=function(e,n,t){return w.indexOf(e)>-1?(S[e]=n,null):E.call(self,e,n,t)}}else{["message"].forEach((function(e){var n=[],t=function(e){n.push(e)};self.addEventListener(e,t),b.push((function(){self.removeEventListener(e,t),n.forEach((function(e){self.dispatchEvent(e)})),n.length=0}))}))}s.register=n((function(n,t){s.register=function(){throw new Error("unexpected call to System.register (called outside url instantiation)")};var r=self.location.href;return c[r]=[n,t],e(_(r),(function(e){return b.forEach((function(e){e()})),b.length=0,e}))})),s.instantiate=n((function(n){return e(self.fetch(n,{credentials:"same-origin"}),(function(t){if(!t.ok)throw Error("Failed to fetch module at ".concat(n));return e(t.text(),(function(e){e.indexOf("//# sourceURL=")<0&&(e+="\n//# sourceURL=".concat(n));var t=s.register;s.register=function(e,t){c[n]=[e,t]},(0,self.eval)(e),s.register=t}))}))}))}var _=function(e,n){var t=y(e,n),r=L(t,n);return r.completionPromise?r.completionPromise===r.namespace?Promise.resolve(r.namespace):r.completionPromise:O(r,n)},L=function f(l,a){var d=t[l];if(d)return d;var m=T(),p={url:l,deps:[],dependencyLoads:[],instantiatePromise:null,linkPromise:null,executePromise:null,completionPromise:null,importerSetters:[],setters:[],execute:null,error:null,hoistedExports:!1,namespace:m};return t[l]=p,p.instantiatePromise=n((function(){return i((function(){var e=c[l];return o((function(){if(!e){var n=s.instantiate(l,a);return o((function(){if(n)return r(n)}),(function(){e=c[l]}))}}),(function(){if(!e)throw new Error("System.register() not called after executing ".concat(l));var n=u(e,2),t=n[0],r=(0,n[1])((function(e,n){p.hoistedExports=!0;var t=!1;if("string"==typeof e){var r=e,o=n;r in m&&m[r]===o||(m[r]=o,t=!0)}else Object.keys(e).forEach((function(n){var r=e[n];n in m&&m[n]===r||(m[n]=r,t=!0)})),e&&e.__esModule&&(m.__esModule=e.__esModule);return t&&p.importerSetters.forEach((function(e){e&&e(m)})),n}),{import:function(e){return _(e,l)},meta:M(l)}),o=r.setters,i=r.execute,c=void 0===i?function(){}:i;p.deps=t,p.setters=o,p.execute=c}))}),(function(e){p.error=e,p.execute=null}))}))(),p.linkPromise=n((function(){return e(p.instantiatePromise,(function(){return e(Promise.all(p.deps.map(n((function(e,n){var t=p.setters[n],i=y(e,l),u=f(i,l);return o((function(){if(u.instantiatePromise)return r(u.instantiatePromise)}),(function(){return t&&(u.importerSetters.push(t),!u.hoistedExports&&u.instantiatePromise||t(u.namespace)),u}))})))),(function(e){p.dependencyLoads=e}))}))}))(),p},O=n((function(n,t){return n.completionPromise=e(j(n,n,{}),(function(){return e(k(n,t?[t]:[]),(function(){return n.namespace}))})),n.completionPromise})),j=n((function(e,n,t){if(!t[e.url])return t[e.url]=!0,i((function(){return o((function(){if(e.linkPromise)return r(e.linkPromise)}),(function(){return r(Promise.all(e.dependencyLoads.map((function(e){return j(e,n,t)}))))}))}),(function(n){if(e.error)throw n;throw e.execute=null,n}))})),k=function e(t,i){if(!(i.indexOf(t.url)>-1)){if(!t.execute){if(t.error)throw t.error;return t.executePromise?t.executePromise:void 0}var u=t.execute;t.execute=null;var c=[];return t.dependencyLoads.forEach((function(n){try{var r=i.slice();r.push(t.url);var o=e(n,r);o&&c.push(o)}catch(e){throw t.error=e,e}})),n((function(){return o((function(){if(c.length)return r(Promise.all(c))}),(function(){try{var e=u.call(A);if(e)return void(t.executePromise=e.then((function(){t.executePromise=null,t.completionPromise=t.namespace}),(function(e){throw t.executePromise=null,t.error=e,e})));t.instantiatePromise=null,t.linkPromise=null,t.completionPromise=t.namespace}catch(e){throw t.error=e,e}finally{t.execute=null}}))}))()}},A=Object.freeze(Object.create(null)),M=function(e){return{url:e,resolve:function(n){return y(n,e)}}},T="undefined"!=typeof Symbol&&Symbol.toStringTag?function(){var e=Object.create(null);return Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),e}:function(){return Object.create(null)}}()}));
1
+ !function(e,n){if("function"==typeof define&&define.amd)define([],n);else if("undefined"!=typeof exports)n();else{n(),e.s={}}}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:this,(function(){"use strict";function e(e,n,t){return e&&e.then||(e=Promise.resolve(e)),n?e.then(n):e}function n(e){return function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];try{return Promise.resolve(e.apply(this,n))}catch(e){return Promise.reject(e)}}}function t(){}function r(e,n){return e&&e.then?e.then(t):Promise.resolve()}function o(e,n){var t=e();return t&&t.then?t.then(n):n(t)}function i(e,n){try{var t=e()}catch(e){return n(e)}return t&&t.then?t.then(void 0,n):t}function u(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,o,i,u,c=[],f=!0,l=!1;try{if(i=(t=t.call(e)).next,0===n);else for(;!(f=(r=i.call(t)).done)&&(c.push(r.value),c.length!==n);f=!0);}catch(e){l=!0,o=e}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(l)throw o}}return c}}(e,n)||function(e,n){if(e){if("string"==typeof e)return c(e,n);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?c(e,n):void 0}}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}!function(){var t=Object.create(null),c=Object.create(null),l=0,s={},a="object"===("undefined"==typeof document?"undefined":f(document)),d=self,m=!a&&"function"==typeof d.WorkerGlobalScope&&d instanceof d.WorkerGlobalScope,p=m&&"function"==typeof self.skipWaiting;d.System=s;var h=d.location.href.split("#")[0].split("?")[0],v=h.lastIndexOf("/");-1!==v&&(h=h.slice(0,v+1));var y=function(e,n){return new URL(e,n).href};if(a){var P=document.querySelector("base[href]");P&&(h=P.href),s.register=function(e,n){if(!document.currentScript)throw new Error("unexpected call to System.register (document.currentScript is undefined)");if(document.currentScript.__s__)return c[document.currentScript.src]=[e,n],null;var t=document.currentScript.src||"".concat(window.location.href,"__inline_script__").concat(++l);return c[t]=[e,n],_(t)},s.instantiate=function(e){var n=g(e);return new Promise((function(t,r){var o,i,u=function(e){o=e.filename,i=e.error};window.addEventListener("error",u),n.addEventListener("error",(function(){window.removeEventListener("error",u),r("An error occured while loading url with <script> for ".concat(e))})),n.addEventListener("load",(function(){window.removeEventListener("error",u),document.head.removeChild(n),o===e?r(i):t()})),document.head.appendChild(n)}))};var g=function(e){var n=document.createElement("script");return n.async=!0,e.indexOf("".concat(self.location.origin,"/"))&&(n.crossOrigin="anonymous"),n.__s__=!0,n.src=e,n}}if(m){var b=[];if(p){var w=["message","install","activate","fetch"],S={},x=new Promise((function(e){b.push(e)}));w.forEach((function(e){var n=[];self.addEventListener(e,(function(e){var t=S[e.type];t?t(e):(n.push(e),e.waitUntil(x))})),b.push((function(){if(n.length){var e=S[n[0].type];e&&n.forEach((function(n){e(n)})),n.length=0}}))}));var E=self.addEventListener;self.addEventListener=function(e,n,t){return w.indexOf(e)>-1?(S[e]=n,null):E.call(self,e,n,t)}}else{["message"].forEach((function(e){var n=[],t=function(e){n.push(e)};self.addEventListener(e,t),b.push((function(){self.removeEventListener(e,t),n.forEach((function(e){self.dispatchEvent(e)})),n.length=0}))}))}s.register=n((function(n,t){s.register=function(){throw new Error("unexpected call to System.register (called outside url instantiation)")};var r=self.location.href;return c[r]=[n,t],e(_(r),(function(e){return b.forEach((function(e){e()})),b.length=0,e}))})),s.instantiate=n((function(n){return e(self.fetch(n,{credentials:"same-origin"}),(function(t){if(!t.ok)throw Error("Failed to fetch module at ".concat(n));return e(t.text(),(function(e){e.indexOf("//# sourceURL=")<0&&(e+="\n//# sourceURL=".concat(n));var t=s.register;s.register=function(e,t){c[n]=[e,t]},(0,self.eval)(e),s.register=t}))}))}))}var _=function(e,n){var t=y(e,n),r=L(t,n);return r.completionPromise?r.completionPromise===r.namespace?Promise.resolve(r.namespace):r.completionPromise:O(r,n)},L=function(f,l){var a=t[f];if(a)return a;var d=T(),m={url:f,deps:[],dependencyLoads:[],instantiatePromise:null,linkPromise:null,executePromise:null,completionPromise:null,importerSetters:[],setters:[],execute:null,error:null,hoistedExports:!1,namespace:d};return t[f]=m,m.instantiatePromise=n((function(){return i((function(){var e=c[f];return o((function(){if(!e){var n=s.instantiate(f,l);return o((function(){if(n)return r(n)}),(function(){e=c[f]}))}}),(function(){if(!e)throw new Error("System.register() not called after executing ".concat(f));var n=u(e,2),t=n[0],r=(0,n[1])((function(e,n){m.hoistedExports=!0;var t=!1;if("string"==typeof e){var r=e,o=n;r in d&&d[r]===o||(d[r]=o,t=!0)}else Object.keys(e).forEach((function(n){var r=e[n];n in d&&d[n]===r||(d[n]=r,t=!0)})),e&&e.__esModule&&(d.__esModule=e.__esModule);return t&&m.importerSetters.forEach((function(e){e&&e(d)})),n}),{import:function(e){return _(e,f)},meta:M(f)}),o=r.setters,i=r.execute,c=void 0===i?function(){}:i;m.deps=t,m.setters=o,m.execute=c}))}),(function(e){m.error=e,m.execute=null}))}))(),m.linkPromise=n((function(){return e(m.instantiatePromise,(function(){return e(Promise.all(m.deps.map(n((function(e,n){var t=m.setters[n],i=y(e,f),u=L(i,f);return o((function(){if(u.instantiatePromise)return r(u.instantiatePromise)}),(function(){return t&&(u.importerSetters.push(t),!u.hoistedExports&&u.instantiatePromise||t(u.namespace)),u}))})))),(function(e){m.dependencyLoads=e}))}))}))(),m},O=n((function(n,t){return n.completionPromise=e(j(n,n,{}),(function(){return e(k(n,t?[t]:[]),(function(){return n.namespace}))})),n.completionPromise})),j=n((function(e,n,t){if(!t[e.url])return t[e.url]=!0,i((function(){return o((function(){if(e.linkPromise)return r(e.linkPromise)}),(function(){return r(Promise.all(e.dependencyLoads.map((function(e){return j(e,n,t)}))))}))}),(function(n){if(e.error)throw n;throw e.execute=null,n}))})),k=function(e,t){if(!(t.indexOf(e.url)>-1)){if(!e.execute){if(e.error)throw e.error;return e.executePromise?e.executePromise:void 0}var i=e.execute;e.execute=null;var u=[];return e.dependencyLoads.forEach((function(n){try{var r=t.slice();r.push(e.url);var o=k(n,r);o&&u.push(o)}catch(n){throw e.error=n,n}})),n((function(){return o((function(){if(u.length)return r(Promise.all(u))}),(function(){try{var n=i.call(A);if(n)return void(e.executePromise=n.then((function(){e.executePromise=null,e.completionPromise=e.namespace}),(function(n){throw e.executePromise=null,e.error=n,n})));e.instantiatePromise=null,e.linkPromise=null,e.completionPromise=e.namespace}catch(n){throw e.error=n,n}finally{e.execute=null}}))}))()}},A=Object.freeze(Object.create(null)),M=function(e){return{url:e,resolve:function(n){return y(n,e)}}},T="undefined"!=typeof Symbol&&Symbol.toStringTag?function(){var e=Object.create(null);return Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),e}:function(){return Object.create(null)}}()}));