@jsenv/cli 0.2.55 → 0.3.1

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 (50) hide show
  1. package/package.json +3 -3
  2. package/template-node-package/.vscode/launch.json +47 -0
  3. package/template-node-package/package.json +4 -4
  4. package/template-web/.jsenv/craft/main.js +1 -1
  5. package/template-web/.jsenv/shape/index.html +9 -2
  6. package/template-web/.jsenv/shape/main.js +1 -1
  7. package/template-web/.jsenv/shape/main.nomodule7js_module_fallback=.js +1 -1
  8. package/template-web/.vscode/launch.json +47 -0
  9. package/template-web/dist/index.html +9 -2
  10. package/template-web/dist/js/main.nomodule.js +1 -1
  11. package/template-web/package.json +7 -7
  12. package/template-web/src/main.js +1 -1
  13. package/template-web-components/.jsenv/craft/app/app_custom_element.js +1 -1
  14. package/template-web-components/.jsenv/shape/index.html +9 -2
  15. package/template-web-components/.jsenv/shape/main.js +1 -1
  16. package/template-web-components/.jsenv/shape/main.nomodule7js_module_fallback=.js +1 -1
  17. package/template-web-components/.vscode/launch.json +47 -0
  18. package/template-web-components/dist/index.html +9 -2
  19. package/template-web-components/dist/js/main.nomodule.js +1 -1
  20. package/template-web-components/package.json +7 -7
  21. package/template-web-components/src/app/app_custom_element.js +1 -1
  22. package/template-web-preact/.jsenv/craft/@fs/Users/dmail/Documents/dev/core/node_modules/preact/dist/preact.module.js +151 -154
  23. package/template-web-preact/.jsenv/craft/@fs/Users/dmail/Documents/dev/core/node_modules/preact/hooks/dist/hooks.module.js +27 -23
  24. package/template-web-preact/.jsenv/craft/app/app.jsx +1 -1
  25. package/template-web-preact/.jsenv/craft/index.html +2 -2
  26. package/template-web-preact/.jsenv/shape/index.html +11 -3
  27. package/template-web-preact/.jsenv/shape/main.jsx +1 -1
  28. package/template-web-preact/.jsenv/shape/main.nomodule7js_module_fallback=.jsx +1 -1
  29. package/template-web-preact/.jsenv/shape/vendors.js +1 -1
  30. package/template-web-preact/.jsenv/shape/vendors.nomodule7js_module_fallback=.js +1 -1
  31. package/template-web-preact/.vscode/launch.json +47 -0
  32. package/template-web-preact/dist/index.html +10 -2
  33. package/template-web-preact/dist/js/main.nomodule.js +1 -1
  34. package/template-web-preact/dist/js/vendors.nomodule.js +1 -1
  35. package/template-web-preact/package.json +9 -9
  36. package/template-web-preact/src/app/app.jsx +1 -1
  37. package/template-web-react/.jsenv/craft/app/app.jsx +1 -1
  38. package/template-web-react/.jsenv/craft/cjs_to_esm/@fs/Users/dmail/Documents/dev/core/node_modules/react/index.production.js__compile_info__.json +2 -2
  39. package/template-web-react/.jsenv/craft/cjs_to_esm/@fs/Users/dmail/Documents/dev/core/node_modules/react/jsx-runtime.production.js__compile_info__.json +2 -2
  40. package/template-web-react/.jsenv/craft/cjs_to_esm/@fs/Users/dmail/Documents/dev/core/node_modules/react-dom/client.production.js__compile_info__.json +2 -2
  41. package/template-web-react/.jsenv/craft/cjs_to_esm/__compile_context__.json +1 -1
  42. package/template-web-react/.jsenv/craft/index.html +2 -2
  43. package/template-web-react/.jsenv/shape/index.html +11 -3
  44. package/template-web-react/.jsenv/shape/main.jsx +1 -1
  45. package/template-web-react/.jsenv/shape/main.nomodule7js_module_fallback=.jsx +1 -1
  46. package/template-web-react/.vscode/launch.json +47 -0
  47. package/template-web-react/dist/index.html +10 -2
  48. package/template-web-react/dist/js/main.nomodule.js +1 -1
  49. package/template-web-react/package.json +8 -8
  50. package/template-web-react/src/app/app.jsx +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jsenv/cli",
3
- "version": "0.2.55",
3
+ "version": "0.3.1",
4
4
  "description": "Command Line Interface for jsenv",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -27,8 +27,8 @@
27
27
  "./template-*/**"
28
28
  ],
29
29
  "dependencies": {
30
- "@jsenv/humanize": "1.2.8",
31
- "@jsenv/urls": "2.6.0",
30
+ "@jsenv/humanize": "1.3.0",
31
+ "@jsenv/urls": "2.6.1",
32
32
  "prompts": "2.4.2"
33
33
  }
34
34
  }
@@ -0,0 +1,47 @@
1
+ {
2
+ "version": "0.2.0",
3
+ "configurations": [
4
+ {
5
+ "name": "node",
6
+ "type": "node",
7
+ "request": "launch",
8
+ "program": "${file}",
9
+ "runtimeArgs": ["--inspect"],
10
+ "console": "integratedTerminal",
11
+ "autoAttachChildProcesses": true,
12
+ "sourceMaps": true,
13
+ "smartStep": true,
14
+ "skipFiles": [
15
+ // force-array-multiline
16
+ // "node_modules/**",
17
+ "node_modules/playwright/**",
18
+ "node_modules/playwright-chromium/**",
19
+ "node_modules/playwright-webkit/**",
20
+ "node_modules/playwright-firefox/**",
21
+ "node_modules/playwright-core/**",
22
+ "<node_internals>/**"
23
+ ]
24
+ },
25
+ {
26
+ "name": "node watch",
27
+ "type": "node",
28
+ "request": "launch",
29
+ "program": "${file}",
30
+ "runtimeArgs": ["--inspect", "--watch"],
31
+ "console": "integratedTerminal",
32
+ "autoAttachChildProcesses": true,
33
+ "sourceMaps": true,
34
+ "smartStep": true,
35
+ "skipFiles": [
36
+ // force-array-multiline
37
+ // "node_modules/**",
38
+ "node_modules/playwright/**",
39
+ "node_modules/playwright-chromium/**",
40
+ "node_modules/playwright-webkit/**",
41
+ "node_modules/playwright-firefox/**",
42
+ "node_modules/playwright-core/**",
43
+ "<node_internals>/**"
44
+ ]
45
+ }
46
+ ]
47
+ }
@@ -12,10 +12,10 @@
12
12
  "test:coverage": "npm run test -- --coverage"
13
13
  },
14
14
  "devDependencies": {
15
- "@jsenv/assert": "4.4.2",
16
- "@jsenv/core": "39.14.2",
17
- "@jsenv/eslint-config-relax": "1.3.13",
18
- "@jsenv/test": "3.5.44",
15
+ "@jsenv/assert": "4.4.3",
16
+ "@jsenv/core": "40.0.0",
17
+ "@jsenv/eslint-config-relax": "1.4.0",
18
+ "@jsenv/test": "3.6.0",
19
19
  "eslint": "9.19.0",
20
20
  "prettier": "3.4.2"
21
21
  }
@@ -3,7 +3,7 @@ import mainStyleSheet from "file:///Users/dmail/Documents/dev/core/packages/rela
3
3
  import { initCounter } from "file:///Users/dmail/Documents/dev/core/packages/related/cli/template-web/src/app/counter.js";
4
4
  document.adoptedStyleSheets = [...document.adoptedStyleSheets, mainStyleSheet];
5
5
  const jsenvLogoUrl = new URL("file:///Users/dmail/Documents/dev/core/packages/related/cli/template-web/src/jsenv_logo.svg", import.meta.url);
6
- document.querySelector("#root").innerHTML = "<h1>Hello world!</h1>\n<img class=\"logo\" src=".concat(jsenvLogoUrl, " alt=\"logo\" />\n<p>\n <button id=\"counter_button\">Click me!</button>\n <p>\n Number of clicks: <span id=\"counter_output\"></span>\n </p>\n</p>\n<p>\n Edit <a href=\"javascript:window.fetch('/__open_in_editor__/jsenv_logo.svg')\">jsenv_logo.svg</a> and save to test HMR updates.\n</p>\n<a href=\"https://github.com/jsenv/core\" target=\"_blank\">Documentation</a>");
6
+ document.querySelector("#root").innerHTML = "<h1>Hello world!</h1>\n<img class=\"logo\" src=".concat(jsenvLogoUrl, " alt=\"logo\" />\n<p>\n <button id=\"counter_button\">Click me!</button>\n <p>\n Number of clicks: <span id=\"counter_output\"></span>\n </p>\n</p>\n<p>\n Edit <a href=\"javascript:window.fetch('/.internal/open_file/jsenv_logo.svg')\">jsenv_logo.svg</a> and save to test HMR updates.\n</p>\n<a href=\"https://github.com/jsenv/core\" target=\"_blank\">Documentation</a>");
7
7
  initCounter();
8
8
  if (undefined) {
9
9
  undefined.accept();
@@ -5,7 +5,14 @@
5
5
  <link rel="icon" type="image/svg+xml" href="/other/jsenv_logo.svg?v=0ad5d0f8" original-href-position="5:43;5:66">
6
6
  <meta name="viewport" content="width=device-width,initial-scale=1">
7
7
  <script jsenv-injected-by="jsenv:core" content-indented="">
8
- ;(function(){var m = {"/other/jsenv_logo.svg":"/other/jsenv_logo.svg?v=0ad5d0f8"}; window.__v__ = function (s) { return m[s] || s }; })();
8
+ ;(function() {
9
+ var __versionMappings__ = {
10
+ "/other/jsenv_logo.svg": "/other/jsenv_logo.svg?v=0ad5d0f8"
11
+ };
12
+ window.__v__ = function (specifier) {
13
+ return __versionMappings__[specifier] || specifier
14
+ };
15
+ })();
9
16
  </script>
10
17
  <script inlined-from-src="file:///Users/dmail/Documents/dev/core/packages/related/cli/template-web/src/index.html@s.js" jsenv-injected-by="jsenv:core" content-indented="">
11
18
  !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)}}()}));
@@ -15,6 +22,6 @@
15
22
  </head>
16
23
  <body>
17
24
  <div id="root"></div>
18
- <script src="/js/main.nomodule.js?v=1e28f861" original-src-position="25:27;25:42"></script>
25
+ <script src="/js/main.nomodule.js?v=8166b3b0" original-src-position="25:27;25:42"></script>
19
26
  </body>
20
27
  </html>
@@ -1 +1 @@
1
- !function(){if("undefined"!=typeof document&&!("adoptedStyleSheets"in document)){var e="ShadyCSS"in window&&!ShadyCSS.nativeShadow,t=document.implementation.createHTMLDocument(""),n=new WeakMap,o="object"==typeof DOMException?Error:DOMException,r=Object.defineProperty,c=Array.prototype.forEach,i=/@import.+?;?$/gm,a=CSSStyleSheet.prototype;a.replace=function(){return Promise.reject(new o("Can't call replace on non-constructed CSSStyleSheets."))},a.replaceSync=function(){throw new o("Failed to execute 'replaceSync' on 'CSSStyleSheet': Can't call replaceSync on non-constructed CSSStyleSheets.")};var s=new WeakMap,u=new WeakMap,l=new WeakMap,d=new WeakMap,f=k.prototype;f.replace=function(e){try{return this.replaceSync(e),Promise.resolve(this)}catch(e){return Promise.reject(e)}},f.replaceSync=function(e){if(R(this),"string"==typeof e){var t=this;s.get(t).textContent=function(e){var t=e.replace(i,"");return t!==e&&console.warn("@import rules are not allowed here. See https://github.com/WICG/construct-stylesheets/issues/119#issuecomment-588352418"),t.trim()}(e),d.set(t,[]),u.get(t).forEach((function(e){e.isConnected()&&M(t,_(t,e))}))}},r(f,"cssRules",{configurable:!0,enumerable:!0,get:function(){return R(this),s.get(this).sheet.cssRules}}),r(f,"media",{configurable:!0,enumerable:!0,get:function(){return R(this),s.get(this).sheet.media}}),["addRule","deleteRule","insertRule","removeRule"].forEach((function(e){f[e]=function(){var t=this;R(t);var n=arguments;d.get(t).push({method:e,args:n}),u.get(t).forEach((function(o){if(o.isConnected()){var r=_(t,o).sheet;r[e].apply(r,n)}}));var o=s.get(t).sheet;return o[e].apply(o,n)}})),r(k,Symbol.hasInstance,{configurable:!0,value:E});var h={childList:!0,subtree:!0},p=new WeakMap,y=new WeakMap,S=new WeakMap,m=new WeakMap;if(j.prototype={isConnected:function(){var e=y.get(this);return e instanceof Document?"loading"!==e.readyState:function(e){return"isConnected"in e?e.isConnected:document.contains(e)}(e.host)},connect:function(){var e=L(this);m.get(this).observe(e,h),S.get(this).length>0&&W(this),F(e,(function(e){T(e).connect()}))},disconnect:function(){m.get(this).disconnect()},update:function(e){var t=this,n=y.get(t)===document?"Document":"ShadowRoot";if(!Array.isArray(e))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+n+": Iterator getter is not callable.");if(!e.every(E))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+n+": Failed to convert value to 'CSSStyleSheet'");if(e.some(b))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+n+": Can't adopt non-constructed stylesheets");t.sheets=e;var o,r,c=S.get(t),i=(o=e).filter((function(e,t){return o.indexOf(e)===t}));(r=i,c.filter((function(e){return-1===r.indexOf(e)}))).forEach((function(e){var n;(n=_(e,t)).parentNode.removeChild(n),function(e,t){l.get(e).delete(t),u.set(e,u.get(e).filter((function(e){return e!==t})))}(e,t)})),S.set(t,i),t.isConnected()&&i.length>0&&W(t)}},window.CSSStyleSheet=k,x(Document),"ShadowRoot"in window){x(ShadowRoot);var g=Element.prototype,v=g.attachShadow;g.attachShadow=function(e){var t=v.call(this,e);return"closed"===e.mode&&n.set(this,t),t}}var w=T(document);w.isConnected()?w.connect():document.addEventListener("DOMContentLoaded",w.connect.bind(w))}function C(e){return e.shadowRoot||n.get(e)}function E(e){return"object"==typeof e&&(f.isPrototypeOf(e)||a.isPrototypeOf(e))}function b(e){return"object"==typeof e&&a.isPrototypeOf(e)}function _(e,t){return l.get(e).get(t)}function M(e,t){requestAnimationFrame((function(){t.textContent=s.get(e).textContent,d.get(e).forEach((function(e){return t.sheet[e.method].apply(t.sheet,e.args)}))}))}function R(e){if(!s.has(e))throw new TypeError("Illegal invocation")}function k(){var e=this,n=document.createElement("style");t.body.appendChild(n),s.set(e,n),u.set(e,[]),l.set(e,new WeakMap),d.set(e,[])}function T(e){var t=p.get(e);return t||(t=new j(e),p.set(e,t)),t}function x(e){r(e.prototype,"adoptedStyleSheets",{configurable:!0,enumerable:!0,get:function(){return T(this).sheets},set:function(e){T(this).update(e)}})}function F(e,t){for(var n=document.createNodeIterator(e,NodeFilter.SHOW_ELEMENT,(function(e){return C(e)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}),null,!1),o=void 0;o=n.nextNode();)t(C(o))}function L(e){var t=y.get(e);return t instanceof Document?t.body:t}function W(e){var t=document.createDocumentFragment(),n=S.get(e),o=m.get(e),r=L(e);o.disconnect(),n.forEach((function(n){t.appendChild(_(n,e)||function(e,t){var n=document.createElement("style");return l.get(e).set(t,n),u.get(e).push(t),n}(n,e))})),r.insertBefore(t,null),o.observe(r,h),n.forEach((function(t){M(t,_(t,e))}))}function j(t){var n=this;n.sheets=[],y.set(n,t),S.set(n,[]),m.set(n,new MutationObserver((function(t,o){document?t.forEach((function(t){e||c.call(t.addedNodes,(function(e){e instanceof Element&&F(e,(function(e){T(e).connect()}))})),c.call(t.removedNodes,(function(t){t instanceof Element&&(function(e,t){return t instanceof HTMLStyleElement&&S.get(e).some((function(t){return _(t,e)}))}(n,t)&&W(n),e||F(t,(function(e){T(e).disconnect()})))}))})):o.disconnect()})))}}();("object"==typeof self?self:process).__InlineContent__=function(e,{type:t="text/plain"}){this.text=e,this.type=t};const e=new __InlineContent__(".logo{pointer-events:none;height:40vmin}",{type:"text/css"}),t=new CSSStyleSheet;t.replaceSync(e.text);let n=0;document.adoptedStyleSheets=[...document.adoptedStyleSheets,t];const o=new URL("!~{006}~",import.meta.url);document.querySelector("#root").innerHTML='<h1>Hello world!</h1>\n<img class="logo" src='.concat(o,' alt="logo" />\n<p>\n <button id="counter_button">Click me!</button>\n <p>\n Number of clicks: <span id="counter_output"></span>\n </p>\n</p>\n<p>\n Edit <a href="javascript:window.fetch(\'/__open_in_editor__/jsenv_logo.svg\')">jsenv_logo.svg</a> and save to test HMR updates.\n</p>\n<a href="https://github.com/jsenv/core" target="_blank">Documentation</a>'),(()=>{const e=document.querySelector("#counter_button"),t=document.querySelector("#counter_output");t.innerHTML=n,e.onclick=()=>{n++,t.innerHTML=n}})();
1
+ !function(){if("undefined"!=typeof document&&!("adoptedStyleSheets"in document)){var e="ShadyCSS"in window&&!ShadyCSS.nativeShadow,t=document.implementation.createHTMLDocument(""),n=new WeakMap,o="object"==typeof DOMException?Error:DOMException,r=Object.defineProperty,c=Array.prototype.forEach,i=/@import.+?;?$/gm,a=CSSStyleSheet.prototype;a.replace=function(){return Promise.reject(new o("Can't call replace on non-constructed CSSStyleSheets."))},a.replaceSync=function(){throw new o("Failed to execute 'replaceSync' on 'CSSStyleSheet': Can't call replaceSync on non-constructed CSSStyleSheets.")};var s=new WeakMap,u=new WeakMap,l=new WeakMap,d=new WeakMap,f=k.prototype;f.replace=function(e){try{return this.replaceSync(e),Promise.resolve(this)}catch(e){return Promise.reject(e)}},f.replaceSync=function(e){if(R(this),"string"==typeof e){var t=this;s.get(t).textContent=function(e){var t=e.replace(i,"");return t!==e&&console.warn("@import rules are not allowed here. See https://github.com/WICG/construct-stylesheets/issues/119#issuecomment-588352418"),t.trim()}(e),d.set(t,[]),u.get(t).forEach((function(e){e.isConnected()&&_(t,M(t,e))}))}},r(f,"cssRules",{configurable:!0,enumerable:!0,get:function(){return R(this),s.get(this).sheet.cssRules}}),r(f,"media",{configurable:!0,enumerable:!0,get:function(){return R(this),s.get(this).sheet.media}}),["addRule","deleteRule","insertRule","removeRule"].forEach((function(e){f[e]=function(){var t=this;R(t);var n=arguments;d.get(t).push({method:e,args:n}),u.get(t).forEach((function(o){if(o.isConnected()){var r=M(t,o).sheet;r[e].apply(r,n)}}));var o=s.get(t).sheet;return o[e].apply(o,n)}})),r(k,Symbol.hasInstance,{configurable:!0,value:E});var h={childList:!0,subtree:!0},p=new WeakMap,y=new WeakMap,S=new WeakMap,m=new WeakMap;if(j.prototype={isConnected:function(){var e=y.get(this);return e instanceof Document?"loading"!==e.readyState:function(e){return"isConnected"in e?e.isConnected:document.contains(e)}(e.host)},connect:function(){var e=L(this);m.get(this).observe(e,h),S.get(this).length>0&&W(this),F(e,(function(e){T(e).connect()}))},disconnect:function(){m.get(this).disconnect()},update:function(e){var t=this,n=y.get(t)===document?"Document":"ShadowRoot";if(!Array.isArray(e))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+n+": Iterator getter is not callable.");if(!e.every(E))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+n+": Failed to convert value to 'CSSStyleSheet'");if(e.some(b))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+n+": Can't adopt non-constructed stylesheets");t.sheets=e;var o,r,c=S.get(t),i=(o=e).filter((function(e,t){return o.indexOf(e)===t}));(r=i,c.filter((function(e){return-1===r.indexOf(e)}))).forEach((function(e){var n;(n=M(e,t)).parentNode.removeChild(n),function(e,t){l.get(e).delete(t),u.set(e,u.get(e).filter((function(e){return e!==t})))}(e,t)})),S.set(t,i),t.isConnected()&&i.length>0&&W(t)}},window.CSSStyleSheet=k,x(Document),"ShadowRoot"in window){x(ShadowRoot);var g=Element.prototype,v=g.attachShadow;g.attachShadow=function(e){var t=v.call(this,e);return"closed"===e.mode&&n.set(this,t),t}}var w=T(document);w.isConnected()?w.connect():document.addEventListener("DOMContentLoaded",w.connect.bind(w))}function C(e){return e.shadowRoot||n.get(e)}function E(e){return"object"==typeof e&&(f.isPrototypeOf(e)||a.isPrototypeOf(e))}function b(e){return"object"==typeof e&&a.isPrototypeOf(e)}function M(e,t){return l.get(e).get(t)}function _(e,t){requestAnimationFrame((function(){t.textContent=s.get(e).textContent,d.get(e).forEach((function(e){return t.sheet[e.method].apply(t.sheet,e.args)}))}))}function R(e){if(!s.has(e))throw new TypeError("Illegal invocation")}function k(){var e=this,n=document.createElement("style");t.body.appendChild(n),s.set(e,n),u.set(e,[]),l.set(e,new WeakMap),d.set(e,[])}function T(e){var t=p.get(e);return t||(t=new j(e),p.set(e,t)),t}function x(e){r(e.prototype,"adoptedStyleSheets",{configurable:!0,enumerable:!0,get:function(){return T(this).sheets},set:function(e){T(this).update(e)}})}function F(e,t){for(var n=document.createNodeIterator(e,NodeFilter.SHOW_ELEMENT,(function(e){return C(e)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}),null,!1),o=void 0;o=n.nextNode();)t(C(o))}function L(e){var t=y.get(e);return t instanceof Document?t.body:t}function W(e){var t=document.createDocumentFragment(),n=S.get(e),o=m.get(e),r=L(e);o.disconnect(),n.forEach((function(n){t.appendChild(M(n,e)||function(e,t){var n=document.createElement("style");return l.get(e).set(t,n),u.get(e).push(t),n}(n,e))})),r.insertBefore(t,null),o.observe(r,h),n.forEach((function(t){_(t,M(t,e))}))}function j(t){var n=this;n.sheets=[],y.set(n,t),S.set(n,[]),m.set(n,new MutationObserver((function(t,o){document?t.forEach((function(t){e||c.call(t.addedNodes,(function(e){e instanceof Element&&F(e,(function(e){T(e).connect()}))})),c.call(t.removedNodes,(function(t){t instanceof Element&&(function(e,t){return t instanceof HTMLStyleElement&&S.get(e).some((function(t){return M(t,e)}))}(n,t)&&W(n),e||F(t,(function(e){T(e).disconnect()})))}))})):o.disconnect()})))}}();("object"==typeof self?self:process).__InlineContent__=function(e,{type:t="text/plain"}){this.text=e,this.type=t};const e=new __InlineContent__(".logo{pointer-events:none;height:40vmin}",{type:"text/css"}),t=new CSSStyleSheet;t.replaceSync(e.text);let n=0;document.adoptedStyleSheets=[...document.adoptedStyleSheets,t];const o=new URL("!~{006}~",import.meta.url);document.querySelector("#root").innerHTML='<h1>Hello world!</h1>\n<img class="logo" src='.concat(o,' alt="logo" />\n<p>\n <button id="counter_button">Click me!</button>\n <p>\n Number of clicks: <span id="counter_output"></span>\n </p>\n</p>\n<p>\n Edit <a href="javascript:window.fetch(\'/.internal/open_file/jsenv_logo.svg\')">jsenv_logo.svg</a> and save to test HMR updates.\n</p>\n<a href="https://github.com/jsenv/core" target="_blank">Documentation</a>'),(()=>{const e=document.querySelector("#counter_button"),t=document.querySelector("#counter_output");t.innerHTML=n,e.onclick=()=>{n++,t.innerHTML=n}})();
@@ -1 +1 @@
1
- System.register([],(function(e,t){"use strict";var n,o,r,c;return{setters:[],execute:function(){!function(){if("undefined"!=typeof document&&!("adoptedStyleSheets"in document)){var e="ShadyCSS"in window&&!ShadyCSS.nativeShadow,t=document.implementation.createHTMLDocument(""),n=new WeakMap,o="object"==typeof DOMException?Error:DOMException,r=Object.defineProperty,c=Array.prototype.forEach,i=/@import.+?;?$/gm,a=CSSStyleSheet.prototype;a.replace=function(){return Promise.reject(new o("Can't call replace on non-constructed CSSStyleSheets."))},a.replaceSync=function(){throw new o("Failed to execute 'replaceSync' on 'CSSStyleSheet': Can't call replaceSync on non-constructed CSSStyleSheets.")};var s=new WeakMap,u=new WeakMap,l=new WeakMap,d=new WeakMap,f=k.prototype;f.replace=function(e){try{return this.replaceSync(e),Promise.resolve(this)}catch(e){return Promise.reject(e)}},f.replaceSync=function(e){if(R(this),"string"==typeof e){var t=this;s.get(t).textContent=function(e){var t=e.replace(i,"");return t!==e&&console.warn("@import rules are not allowed here. See https://github.com/WICG/construct-stylesheets/issues/119#issuecomment-588352418"),t.trim()}(e),d.set(t,[]),u.get(t).forEach((function(e){e.isConnected()&&M(t,_(t,e))}))}},r(f,"cssRules",{configurable:!0,enumerable:!0,get:function(){return R(this),s.get(this).sheet.cssRules}}),r(f,"media",{configurable:!0,enumerable:!0,get:function(){return R(this),s.get(this).sheet.media}}),["addRule","deleteRule","insertRule","removeRule"].forEach((function(e){f[e]=function(){var t=this;R(t);var n=arguments;d.get(t).push({method:e,args:n}),u.get(t).forEach((function(o){if(o.isConnected()){var r=_(t,o).sheet;r[e].apply(r,n)}}));var o=s.get(t).sheet;return o[e].apply(o,n)}})),r(k,Symbol.hasInstance,{configurable:!0,value:E});var h={childList:!0,subtree:!0},p=new WeakMap,y=new WeakMap,S=new WeakMap,m=new WeakMap;if(j.prototype={isConnected:function(){var e=y.get(this);return e instanceof Document?"loading"!==e.readyState:function(e){return"isConnected"in e?e.isConnected:document.contains(e)}(e.host)},connect:function(){var e=L(this);m.get(this).observe(e,h),S.get(this).length>0&&W(this),F(e,(function(e){x(e).connect()}))},disconnect:function(){m.get(this).disconnect()},update:function(e){var t=this,n=y.get(t)===document?"Document":"ShadowRoot";if(!Array.isArray(e))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+n+": Iterator getter is not callable.");if(!e.every(E))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+n+": Failed to convert value to 'CSSStyleSheet'");if(e.some(b))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+n+": Can't adopt non-constructed stylesheets");t.sheets=e;var o,r,c=S.get(t),i=(o=e).filter((function(e,t){return o.indexOf(e)===t}));(r=i,c.filter((function(e){return-1===r.indexOf(e)}))).forEach((function(e){var n;(n=_(e,t)).parentNode.removeChild(n),function(e,t){l.get(e).delete(t),u.set(e,u.get(e).filter((function(e){return e!==t})))}(e,t)})),S.set(t,i),t.isConnected()&&i.length>0&&W(t)}},window.CSSStyleSheet=k,T(Document),"ShadowRoot"in window){T(ShadowRoot);var g=Element.prototype,v=g.attachShadow;g.attachShadow=function(e){var t=v.call(this,e);return"closed"===e.mode&&n.set(this,t),t}}var w=x(document);w.isConnected()?w.connect():document.addEventListener("DOMContentLoaded",w.connect.bind(w))}function C(e){return e.shadowRoot||n.get(e)}function E(e){return"object"==typeof e&&(f.isPrototypeOf(e)||a.isPrototypeOf(e))}function b(e){return"object"==typeof e&&a.isPrototypeOf(e)}function _(e,t){return l.get(e).get(t)}function M(e,t){requestAnimationFrame((function(){t.textContent=s.get(e).textContent,d.get(e).forEach((function(e){return t.sheet[e.method].apply(t.sheet,e.args)}))}))}function R(e){if(!s.has(e))throw new TypeError("Illegal invocation")}function k(){var e=this,n=document.createElement("style");t.body.appendChild(n),s.set(e,n),u.set(e,[]),l.set(e,new WeakMap),d.set(e,[])}function x(e){var t=p.get(e);return t||(t=new j(e),p.set(e,t)),t}function T(e){r(e.prototype,"adoptedStyleSheets",{configurable:!0,enumerable:!0,get:function(){return x(this).sheets},set:function(e){x(this).update(e)}})}function F(e,t){for(var n=document.createNodeIterator(e,NodeFilter.SHOW_ELEMENT,(function(e){return C(e)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}),null,!1),o=void 0;o=n.nextNode();)t(C(o))}function L(e){var t=y.get(e);return t instanceof Document?t.body:t}function W(e){var t=document.createDocumentFragment(),n=S.get(e),o=m.get(e),r=L(e);o.disconnect(),n.forEach((function(n){t.appendChild(_(n,e)||function(e,t){var n=document.createElement("style");return l.get(e).set(t,n),u.get(e).push(t),n}(n,e))})),r.insertBefore(t,null),o.observe(r,h),n.forEach((function(t){M(t,_(t,e))}))}function j(t){var n=this;n.sheets=[],y.set(n,t),S.set(n,[]),m.set(n,new MutationObserver((function(t,o){document?t.forEach((function(t){e||c.call(t.addedNodes,(function(e){e instanceof Element&&F(e,(function(e){x(e).connect()}))})),c.call(t.removedNodes,(function(t){t instanceof Element&&(function(e,t){return t instanceof HTMLStyleElement&&S.get(e).some((function(t){return _(t,e)}))}(n,t)&&W(n),e||F(t,(function(e){x(e).disconnect()})))}))})):o.disconnect()})))}}(),("object"==typeof self?self:process).__InlineContent__=function(e,{type:t="text/plain"}){this.text=e,this.type=t},n=new __InlineContent__(".logo{pointer-events:none;height:40vmin}",{type:"text/css"}),(o=new CSSStyleSheet).replaceSync(n.text),r=0,document.adoptedStyleSheets=[...document.adoptedStyleSheets,o],c=new URL(__v__("/other/jsenv_logo.svg"),t.meta.url),document.querySelector("#root").innerHTML='<h1>Hello world!</h1>\n<img class="logo" src='.concat(c,' alt="logo" />\n<p>\n <button id="counter_button">Click me!</button>\n <p>\n Number of clicks: <span id="counter_output"></span>\n </p>\n</p>\n<p>\n Edit <a href="javascript:window.fetch(\'/__open_in_editor__/jsenv_logo.svg\')">jsenv_logo.svg</a> and save to test HMR updates.\n</p>\n<a href="https://github.com/jsenv/core" target="_blank">Documentation</a>'),(()=>{const e=document.querySelector("#counter_button"),t=document.querySelector("#counter_output");t.innerHTML=r,e.onclick=()=>{r++,t.innerHTML=r}})()}}}));
1
+ System.register([],(function(e,t){"use strict";var n,o,r,c;return{setters:[],execute:function(){!function(){if("undefined"!=typeof document&&!("adoptedStyleSheets"in document)){var e="ShadyCSS"in window&&!ShadyCSS.nativeShadow,t=document.implementation.createHTMLDocument(""),n=new WeakMap,o="object"==typeof DOMException?Error:DOMException,r=Object.defineProperty,c=Array.prototype.forEach,i=/@import.+?;?$/gm,a=CSSStyleSheet.prototype;a.replace=function(){return Promise.reject(new o("Can't call replace on non-constructed CSSStyleSheets."))},a.replaceSync=function(){throw new o("Failed to execute 'replaceSync' on 'CSSStyleSheet': Can't call replaceSync on non-constructed CSSStyleSheets.")};var s=new WeakMap,u=new WeakMap,l=new WeakMap,d=new WeakMap,f=k.prototype;f.replace=function(e){try{return this.replaceSync(e),Promise.resolve(this)}catch(e){return Promise.reject(e)}},f.replaceSync=function(e){if(R(this),"string"==typeof e){var t=this;s.get(t).textContent=function(e){var t=e.replace(i,"");return t!==e&&console.warn("@import rules are not allowed here. See https://github.com/WICG/construct-stylesheets/issues/119#issuecomment-588352418"),t.trim()}(e),d.set(t,[]),u.get(t).forEach((function(e){e.isConnected()&&_(t,M(t,e))}))}},r(f,"cssRules",{configurable:!0,enumerable:!0,get:function(){return R(this),s.get(this).sheet.cssRules}}),r(f,"media",{configurable:!0,enumerable:!0,get:function(){return R(this),s.get(this).sheet.media}}),["addRule","deleteRule","insertRule","removeRule"].forEach((function(e){f[e]=function(){var t=this;R(t);var n=arguments;d.get(t).push({method:e,args:n}),u.get(t).forEach((function(o){if(o.isConnected()){var r=M(t,o).sheet;r[e].apply(r,n)}}));var o=s.get(t).sheet;return o[e].apply(o,n)}})),r(k,Symbol.hasInstance,{configurable:!0,value:E});var h={childList:!0,subtree:!0},p=new WeakMap,y=new WeakMap,S=new WeakMap,m=new WeakMap;if(j.prototype={isConnected:function(){var e=y.get(this);return e instanceof Document?"loading"!==e.readyState:function(e){return"isConnected"in e?e.isConnected:document.contains(e)}(e.host)},connect:function(){var e=L(this);m.get(this).observe(e,h),S.get(this).length>0&&W(this),F(e,(function(e){x(e).connect()}))},disconnect:function(){m.get(this).disconnect()},update:function(e){var t=this,n=y.get(t)===document?"Document":"ShadowRoot";if(!Array.isArray(e))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+n+": Iterator getter is not callable.");if(!e.every(E))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+n+": Failed to convert value to 'CSSStyleSheet'");if(e.some(b))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+n+": Can't adopt non-constructed stylesheets");t.sheets=e;var o,r,c=S.get(t),i=(o=e).filter((function(e,t){return o.indexOf(e)===t}));(r=i,c.filter((function(e){return-1===r.indexOf(e)}))).forEach((function(e){var n;(n=M(e,t)).parentNode.removeChild(n),function(e,t){l.get(e).delete(t),u.set(e,u.get(e).filter((function(e){return e!==t})))}(e,t)})),S.set(t,i),t.isConnected()&&i.length>0&&W(t)}},window.CSSStyleSheet=k,T(Document),"ShadowRoot"in window){T(ShadowRoot);var g=Element.prototype,v=g.attachShadow;g.attachShadow=function(e){var t=v.call(this,e);return"closed"===e.mode&&n.set(this,t),t}}var w=x(document);w.isConnected()?w.connect():document.addEventListener("DOMContentLoaded",w.connect.bind(w))}function C(e){return e.shadowRoot||n.get(e)}function E(e){return"object"==typeof e&&(f.isPrototypeOf(e)||a.isPrototypeOf(e))}function b(e){return"object"==typeof e&&a.isPrototypeOf(e)}function M(e,t){return l.get(e).get(t)}function _(e,t){requestAnimationFrame((function(){t.textContent=s.get(e).textContent,d.get(e).forEach((function(e){return t.sheet[e.method].apply(t.sheet,e.args)}))}))}function R(e){if(!s.has(e))throw new TypeError("Illegal invocation")}function k(){var e=this,n=document.createElement("style");t.body.appendChild(n),s.set(e,n),u.set(e,[]),l.set(e,new WeakMap),d.set(e,[])}function x(e){var t=p.get(e);return t||(t=new j(e),p.set(e,t)),t}function T(e){r(e.prototype,"adoptedStyleSheets",{configurable:!0,enumerable:!0,get:function(){return x(this).sheets},set:function(e){x(this).update(e)}})}function F(e,t){for(var n=document.createNodeIterator(e,NodeFilter.SHOW_ELEMENT,(function(e){return C(e)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}),null,!1),o=void 0;o=n.nextNode();)t(C(o))}function L(e){var t=y.get(e);return t instanceof Document?t.body:t}function W(e){var t=document.createDocumentFragment(),n=S.get(e),o=m.get(e),r=L(e);o.disconnect(),n.forEach((function(n){t.appendChild(M(n,e)||function(e,t){var n=document.createElement("style");return l.get(e).set(t,n),u.get(e).push(t),n}(n,e))})),r.insertBefore(t,null),o.observe(r,h),n.forEach((function(t){_(t,M(t,e))}))}function j(t){var n=this;n.sheets=[],y.set(n,t),S.set(n,[]),m.set(n,new MutationObserver((function(t,o){document?t.forEach((function(t){e||c.call(t.addedNodes,(function(e){e instanceof Element&&F(e,(function(e){x(e).connect()}))})),c.call(t.removedNodes,(function(t){t instanceof Element&&(function(e,t){return t instanceof HTMLStyleElement&&S.get(e).some((function(t){return M(t,e)}))}(n,t)&&W(n),e||F(t,(function(e){x(e).disconnect()})))}))})):o.disconnect()})))}}(),("object"==typeof self?self:process).__InlineContent__=function(e,{type:t="text/plain"}){this.text=e,this.type=t},n=new __InlineContent__(".logo{pointer-events:none;height:40vmin}",{type:"text/css"}),(o=new CSSStyleSheet).replaceSync(n.text),r=0,document.adoptedStyleSheets=[...document.adoptedStyleSheets,o],c=new URL(__v__("/other/jsenv_logo.svg"),t.meta.url),document.querySelector("#root").innerHTML='<h1>Hello world!</h1>\n<img class="logo" src='.concat(c,' alt="logo" />\n<p>\n <button id="counter_button">Click me!</button>\n <p>\n Number of clicks: <span id="counter_output"></span>\n </p>\n</p>\n<p>\n Edit <a href="javascript:window.fetch(\'/.internal/open_file/jsenv_logo.svg\')">jsenv_logo.svg</a> and save to test HMR updates.\n</p>\n<a href="https://github.com/jsenv/core" target="_blank">Documentation</a>'),(()=>{const e=document.querySelector("#counter_button"),t=document.querySelector("#counter_output");t.innerHTML=r,e.onclick=()=>{r++,t.innerHTML=r}})()}}}));
@@ -0,0 +1,47 @@
1
+ {
2
+ "version": "0.2.0",
3
+ "configurations": [
4
+ {
5
+ "name": "node",
6
+ "type": "node",
7
+ "request": "launch",
8
+ "program": "${file}",
9
+ "runtimeArgs": ["--inspect"],
10
+ "console": "integratedTerminal",
11
+ "autoAttachChildProcesses": true,
12
+ "sourceMaps": true,
13
+ "smartStep": true,
14
+ "skipFiles": [
15
+ // force-array-multiline
16
+ // "node_modules/**",
17
+ "node_modules/playwright/**",
18
+ "node_modules/playwright-chromium/**",
19
+ "node_modules/playwright-webkit/**",
20
+ "node_modules/playwright-firefox/**",
21
+ "node_modules/playwright-core/**",
22
+ "<node_internals>/**"
23
+ ]
24
+ },
25
+ {
26
+ "name": "node watch",
27
+ "type": "node",
28
+ "request": "launch",
29
+ "program": "${file}",
30
+ "runtimeArgs": ["--inspect", "--watch"],
31
+ "console": "integratedTerminal",
32
+ "autoAttachChildProcesses": true,
33
+ "sourceMaps": true,
34
+ "smartStep": true,
35
+ "skipFiles": [
36
+ // force-array-multiline
37
+ // "node_modules/**",
38
+ "node_modules/playwright/**",
39
+ "node_modules/playwright-chromium/**",
40
+ "node_modules/playwright-webkit/**",
41
+ "node_modules/playwright-firefox/**",
42
+ "node_modules/playwright-core/**",
43
+ "<node_internals>/**"
44
+ ]
45
+ }
46
+ ]
47
+ }
@@ -5,7 +5,14 @@
5
5
  <link rel="icon" type="image/svg+xml" href="/other/jsenv_logo.svg?v=0ad5d0f8">
6
6
  <meta name="viewport" content="width=device-width,initial-scale=1">
7
7
  <script>
8
- ;(function(){var m = {"/other/jsenv_logo.svg":"/other/jsenv_logo.svg?v=0ad5d0f8"}; window.__v__ = function (s) { return m[s] || s }; })();
8
+ ;(function() {
9
+ var __versionMappings__ = {
10
+ "/other/jsenv_logo.svg": "/other/jsenv_logo.svg?v=0ad5d0f8"
11
+ };
12
+ window.__v__ = function (specifier) {
13
+ return __versionMappings__[specifier] || specifier
14
+ };
15
+ })();
9
16
  </script>
10
17
  <script>
11
18
  !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)}}()}));
@@ -15,6 +22,6 @@
15
22
  </head>
16
23
  <body>
17
24
  <div id="root"></div>
18
- <script src="/js/main.nomodule.js?v=1e28f861"></script>
25
+ <script src="/js/main.nomodule.js?v=8166b3b0"></script>
19
26
  </body>
20
27
  </html>
@@ -1 +1 @@
1
- System.register([],(function(e,t){"use strict";var n,o,r,c;return{setters:[],execute:function(){!function(){if("undefined"!=typeof document&&!("adoptedStyleSheets"in document)){var e="ShadyCSS"in window&&!ShadyCSS.nativeShadow,t=document.implementation.createHTMLDocument(""),n=new WeakMap,o="object"==typeof DOMException?Error:DOMException,r=Object.defineProperty,c=Array.prototype.forEach,i=/@import.+?;?$/gm,a=CSSStyleSheet.prototype;a.replace=function(){return Promise.reject(new o("Can't call replace on non-constructed CSSStyleSheets."))},a.replaceSync=function(){throw new o("Failed to execute 'replaceSync' on 'CSSStyleSheet': Can't call replaceSync on non-constructed CSSStyleSheets.")};var s=new WeakMap,u=new WeakMap,l=new WeakMap,d=new WeakMap,f=k.prototype;f.replace=function(e){try{return this.replaceSync(e),Promise.resolve(this)}catch(e){return Promise.reject(e)}},f.replaceSync=function(e){if(R(this),"string"==typeof e){var t=this;s.get(t).textContent=function(e){var t=e.replace(i,"");return t!==e&&console.warn("@import rules are not allowed here. See https://github.com/WICG/construct-stylesheets/issues/119#issuecomment-588352418"),t.trim()}(e),d.set(t,[]),u.get(t).forEach((function(e){e.isConnected()&&M(t,_(t,e))}))}},r(f,"cssRules",{configurable:!0,enumerable:!0,get:function(){return R(this),s.get(this).sheet.cssRules}}),r(f,"media",{configurable:!0,enumerable:!0,get:function(){return R(this),s.get(this).sheet.media}}),["addRule","deleteRule","insertRule","removeRule"].forEach((function(e){f[e]=function(){var t=this;R(t);var n=arguments;d.get(t).push({method:e,args:n}),u.get(t).forEach((function(o){if(o.isConnected()){var r=_(t,o).sheet;r[e].apply(r,n)}}));var o=s.get(t).sheet;return o[e].apply(o,n)}})),r(k,Symbol.hasInstance,{configurable:!0,value:E});var h={childList:!0,subtree:!0},p=new WeakMap,y=new WeakMap,S=new WeakMap,m=new WeakMap;if(j.prototype={isConnected:function(){var e=y.get(this);return e instanceof Document?"loading"!==e.readyState:function(e){return"isConnected"in e?e.isConnected:document.contains(e)}(e.host)},connect:function(){var e=L(this);m.get(this).observe(e,h),S.get(this).length>0&&W(this),F(e,(function(e){x(e).connect()}))},disconnect:function(){m.get(this).disconnect()},update:function(e){var t=this,n=y.get(t)===document?"Document":"ShadowRoot";if(!Array.isArray(e))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+n+": Iterator getter is not callable.");if(!e.every(E))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+n+": Failed to convert value to 'CSSStyleSheet'");if(e.some(b))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+n+": Can't adopt non-constructed stylesheets");t.sheets=e;var o,r,c=S.get(t),i=(o=e).filter((function(e,t){return o.indexOf(e)===t}));(r=i,c.filter((function(e){return-1===r.indexOf(e)}))).forEach((function(e){var n;(n=_(e,t)).parentNode.removeChild(n),function(e,t){l.get(e).delete(t),u.set(e,u.get(e).filter((function(e){return e!==t})))}(e,t)})),S.set(t,i),t.isConnected()&&i.length>0&&W(t)}},window.CSSStyleSheet=k,T(Document),"ShadowRoot"in window){T(ShadowRoot);var g=Element.prototype,v=g.attachShadow;g.attachShadow=function(e){var t=v.call(this,e);return"closed"===e.mode&&n.set(this,t),t}}var w=x(document);w.isConnected()?w.connect():document.addEventListener("DOMContentLoaded",w.connect.bind(w))}function C(e){return e.shadowRoot||n.get(e)}function E(e){return"object"==typeof e&&(f.isPrototypeOf(e)||a.isPrototypeOf(e))}function b(e){return"object"==typeof e&&a.isPrototypeOf(e)}function _(e,t){return l.get(e).get(t)}function M(e,t){requestAnimationFrame((function(){t.textContent=s.get(e).textContent,d.get(e).forEach((function(e){return t.sheet[e.method].apply(t.sheet,e.args)}))}))}function R(e){if(!s.has(e))throw new TypeError("Illegal invocation")}function k(){var e=this,n=document.createElement("style");t.body.appendChild(n),s.set(e,n),u.set(e,[]),l.set(e,new WeakMap),d.set(e,[])}function x(e){var t=p.get(e);return t||(t=new j(e),p.set(e,t)),t}function T(e){r(e.prototype,"adoptedStyleSheets",{configurable:!0,enumerable:!0,get:function(){return x(this).sheets},set:function(e){x(this).update(e)}})}function F(e,t){for(var n=document.createNodeIterator(e,NodeFilter.SHOW_ELEMENT,(function(e){return C(e)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}),null,!1),o=void 0;o=n.nextNode();)t(C(o))}function L(e){var t=y.get(e);return t instanceof Document?t.body:t}function W(e){var t=document.createDocumentFragment(),n=S.get(e),o=m.get(e),r=L(e);o.disconnect(),n.forEach((function(n){t.appendChild(_(n,e)||function(e,t){var n=document.createElement("style");return l.get(e).set(t,n),u.get(e).push(t),n}(n,e))})),r.insertBefore(t,null),o.observe(r,h),n.forEach((function(t){M(t,_(t,e))}))}function j(t){var n=this;n.sheets=[],y.set(n,t),S.set(n,[]),m.set(n,new MutationObserver((function(t,o){document?t.forEach((function(t){e||c.call(t.addedNodes,(function(e){e instanceof Element&&F(e,(function(e){x(e).connect()}))})),c.call(t.removedNodes,(function(t){t instanceof Element&&(function(e,t){return t instanceof HTMLStyleElement&&S.get(e).some((function(t){return _(t,e)}))}(n,t)&&W(n),e||F(t,(function(e){x(e).disconnect()})))}))})):o.disconnect()})))}}(),("object"==typeof self?self:process).__InlineContent__=function(e,{type:t="text/plain"}){this.text=e,this.type=t},n=new __InlineContent__(".logo{pointer-events:none;height:40vmin}",{type:"text/css"}),(o=new CSSStyleSheet).replaceSync(n.text),r=0,document.adoptedStyleSheets=[...document.adoptedStyleSheets,o],c=new URL(__v__("/other/jsenv_logo.svg"),t.meta.url),document.querySelector("#root").innerHTML='<h1>Hello world!</h1>\n<img class="logo" src='.concat(c,' alt="logo" />\n<p>\n <button id="counter_button">Click me!</button>\n <p>\n Number of clicks: <span id="counter_output"></span>\n </p>\n</p>\n<p>\n Edit <a href="javascript:window.fetch(\'/__open_in_editor__/jsenv_logo.svg\')">jsenv_logo.svg</a> and save to test HMR updates.\n</p>\n<a href="https://github.com/jsenv/core" target="_blank">Documentation</a>'),(()=>{const e=document.querySelector("#counter_button"),t=document.querySelector("#counter_output");t.innerHTML=r,e.onclick=()=>{r++,t.innerHTML=r}})()}}}));
1
+ System.register([],(function(e,t){"use strict";var n,o,r,c;return{setters:[],execute:function(){!function(){if("undefined"!=typeof document&&!("adoptedStyleSheets"in document)){var e="ShadyCSS"in window&&!ShadyCSS.nativeShadow,t=document.implementation.createHTMLDocument(""),n=new WeakMap,o="object"==typeof DOMException?Error:DOMException,r=Object.defineProperty,c=Array.prototype.forEach,i=/@import.+?;?$/gm,a=CSSStyleSheet.prototype;a.replace=function(){return Promise.reject(new o("Can't call replace on non-constructed CSSStyleSheets."))},a.replaceSync=function(){throw new o("Failed to execute 'replaceSync' on 'CSSStyleSheet': Can't call replaceSync on non-constructed CSSStyleSheets.")};var s=new WeakMap,u=new WeakMap,l=new WeakMap,d=new WeakMap,f=k.prototype;f.replace=function(e){try{return this.replaceSync(e),Promise.resolve(this)}catch(e){return Promise.reject(e)}},f.replaceSync=function(e){if(R(this),"string"==typeof e){var t=this;s.get(t).textContent=function(e){var t=e.replace(i,"");return t!==e&&console.warn("@import rules are not allowed here. See https://github.com/WICG/construct-stylesheets/issues/119#issuecomment-588352418"),t.trim()}(e),d.set(t,[]),u.get(t).forEach((function(e){e.isConnected()&&_(t,M(t,e))}))}},r(f,"cssRules",{configurable:!0,enumerable:!0,get:function(){return R(this),s.get(this).sheet.cssRules}}),r(f,"media",{configurable:!0,enumerable:!0,get:function(){return R(this),s.get(this).sheet.media}}),["addRule","deleteRule","insertRule","removeRule"].forEach((function(e){f[e]=function(){var t=this;R(t);var n=arguments;d.get(t).push({method:e,args:n}),u.get(t).forEach((function(o){if(o.isConnected()){var r=M(t,o).sheet;r[e].apply(r,n)}}));var o=s.get(t).sheet;return o[e].apply(o,n)}})),r(k,Symbol.hasInstance,{configurable:!0,value:E});var h={childList:!0,subtree:!0},p=new WeakMap,y=new WeakMap,S=new WeakMap,m=new WeakMap;if(j.prototype={isConnected:function(){var e=y.get(this);return e instanceof Document?"loading"!==e.readyState:function(e){return"isConnected"in e?e.isConnected:document.contains(e)}(e.host)},connect:function(){var e=L(this);m.get(this).observe(e,h),S.get(this).length>0&&W(this),F(e,(function(e){x(e).connect()}))},disconnect:function(){m.get(this).disconnect()},update:function(e){var t=this,n=y.get(t)===document?"Document":"ShadowRoot";if(!Array.isArray(e))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+n+": Iterator getter is not callable.");if(!e.every(E))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+n+": Failed to convert value to 'CSSStyleSheet'");if(e.some(b))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+n+": Can't adopt non-constructed stylesheets");t.sheets=e;var o,r,c=S.get(t),i=(o=e).filter((function(e,t){return o.indexOf(e)===t}));(r=i,c.filter((function(e){return-1===r.indexOf(e)}))).forEach((function(e){var n;(n=M(e,t)).parentNode.removeChild(n),function(e,t){l.get(e).delete(t),u.set(e,u.get(e).filter((function(e){return e!==t})))}(e,t)})),S.set(t,i),t.isConnected()&&i.length>0&&W(t)}},window.CSSStyleSheet=k,T(Document),"ShadowRoot"in window){T(ShadowRoot);var g=Element.prototype,v=g.attachShadow;g.attachShadow=function(e){var t=v.call(this,e);return"closed"===e.mode&&n.set(this,t),t}}var w=x(document);w.isConnected()?w.connect():document.addEventListener("DOMContentLoaded",w.connect.bind(w))}function C(e){return e.shadowRoot||n.get(e)}function E(e){return"object"==typeof e&&(f.isPrototypeOf(e)||a.isPrototypeOf(e))}function b(e){return"object"==typeof e&&a.isPrototypeOf(e)}function M(e,t){return l.get(e).get(t)}function _(e,t){requestAnimationFrame((function(){t.textContent=s.get(e).textContent,d.get(e).forEach((function(e){return t.sheet[e.method].apply(t.sheet,e.args)}))}))}function R(e){if(!s.has(e))throw new TypeError("Illegal invocation")}function k(){var e=this,n=document.createElement("style");t.body.appendChild(n),s.set(e,n),u.set(e,[]),l.set(e,new WeakMap),d.set(e,[])}function x(e){var t=p.get(e);return t||(t=new j(e),p.set(e,t)),t}function T(e){r(e.prototype,"adoptedStyleSheets",{configurable:!0,enumerable:!0,get:function(){return x(this).sheets},set:function(e){x(this).update(e)}})}function F(e,t){for(var n=document.createNodeIterator(e,NodeFilter.SHOW_ELEMENT,(function(e){return C(e)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}),null,!1),o=void 0;o=n.nextNode();)t(C(o))}function L(e){var t=y.get(e);return t instanceof Document?t.body:t}function W(e){var t=document.createDocumentFragment(),n=S.get(e),o=m.get(e),r=L(e);o.disconnect(),n.forEach((function(n){t.appendChild(M(n,e)||function(e,t){var n=document.createElement("style");return l.get(e).set(t,n),u.get(e).push(t),n}(n,e))})),r.insertBefore(t,null),o.observe(r,h),n.forEach((function(t){_(t,M(t,e))}))}function j(t){var n=this;n.sheets=[],y.set(n,t),S.set(n,[]),m.set(n,new MutationObserver((function(t,o){document?t.forEach((function(t){e||c.call(t.addedNodes,(function(e){e instanceof Element&&F(e,(function(e){x(e).connect()}))})),c.call(t.removedNodes,(function(t){t instanceof Element&&(function(e,t){return t instanceof HTMLStyleElement&&S.get(e).some((function(t){return M(t,e)}))}(n,t)&&W(n),e||F(t,(function(e){x(e).disconnect()})))}))})):o.disconnect()})))}}(),("object"==typeof self?self:process).__InlineContent__=function(e,{type:t="text/plain"}){this.text=e,this.type=t},n=new __InlineContent__(".logo{pointer-events:none;height:40vmin}",{type:"text/css"}),(o=new CSSStyleSheet).replaceSync(n.text),r=0,document.adoptedStyleSheets=[...document.adoptedStyleSheets,o],c=new URL(__v__("/other/jsenv_logo.svg"),t.meta.url),document.querySelector("#root").innerHTML='<h1>Hello world!</h1>\n<img class="logo" src='.concat(c,' alt="logo" />\n<p>\n <button id="counter_button">Click me!</button>\n <p>\n Number of clicks: <span id="counter_output"></span>\n </p>\n</p>\n<p>\n Edit <a href="javascript:window.fetch(\'/.internal/open_file/jsenv_logo.svg\')">jsenv_logo.svg</a> and save to test HMR updates.\n</p>\n<a href="https://github.com/jsenv/core" target="_blank">Documentation</a>'),(()=>{const e=document.querySelector("#counter_button"),t=document.querySelector("#counter_output");t.innerHTML=r,e.onclick=()=>{r++,t.innerHTML=r}})()}}}));
@@ -5,7 +5,7 @@
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "start": "npm run dev -- --open",
8
- "dev": "node ./scripts/dev.mjs",
8
+ "dev": "node --watch ./scripts/dev.mjs",
9
9
  "test": "node ./scripts/test.mjs",
10
10
  "test:coverage": "npm run test -- --coverage",
11
11
  "build": "node ./scripts/build.mjs",
@@ -15,12 +15,12 @@
15
15
  },
16
16
  "devDependencies": {
17
17
  "@babel/plugin-syntax-import-attributes": "7.26.0",
18
- "@jsenv/assert": "4.4.2",
19
- "@jsenv/core": "39.14.2",
20
- "@jsenv/eslint-config-relax": "1.3.13",
21
- "@jsenv/plugin-bundling": "2.7.25",
22
- "@jsenv/plugin-minification": "1.5.13",
23
- "@jsenv/test": "3.5.44",
18
+ "@jsenv/assert": "4.4.3",
19
+ "@jsenv/core": "40.0.0",
20
+ "@jsenv/eslint-config-relax": "1.4.0",
21
+ "@jsenv/plugin-bundling": "2.8.0",
22
+ "@jsenv/plugin-minification": "1.6.0",
23
+ "@jsenv/test": "3.6.0",
24
24
  "eslint": "9.18.0",
25
25
  "open": "10.1.0",
26
26
  "@playwright/browser-chromium": "1.49.1",
@@ -14,7 +14,7 @@ document.querySelector("#root").innerHTML = `<h1>Hello world!</h1>
14
14
  </p>
15
15
  </p>
16
16
  <p>
17
- Edit <a href="javascript:window.fetch('/__open_in_editor__/jsenv_logo.svg')">jsenv_logo.svg</a> and save to test HMR updates.
17
+ Edit <a href="javascript:window.fetch('/.internal/open_file/jsenv_logo.svg')">jsenv_logo.svg</a> and save to test HMR updates.
18
18
  </p>
19
19
  <a href="https://github.com/jsenv/core" target="_blank">Documentation</a>`;
20
20
 
@@ -8,7 +8,7 @@ class AppCustomElement extends HTMLElement {
8
8
  mode: "open"
9
9
  });
10
10
  shadow.adoptedStyleSheets = [...shadow.adoptedStyleSheets, AppCustomElementStyleSheet];
11
- shadow.innerHTML = "\n<h1>Hello world!</h1>\n<img class=\"logo\" src=".concat(jsenvLogoUrl, " alt=\"logo\" />\n<p>\n <button id=\"counter_button\">Click me!</button>\n <p>\n Number of clicks: <span id=\"counter_output\"></span>\n </p>\n</p>\n<p>\n Edit <a href=\"javascript:window.fetch('/__open_in_editor__/jsenv_logo.svg')\">jsenv_logo.svg</a> and save to test HMR updates.\n</p>\n<a href=\"https://github.com/jsenv/core\" target=\"_blank\">Documentation</a>");
11
+ shadow.innerHTML = "\n<h1>Hello world!</h1>\n<img class=\"logo\" src=".concat(jsenvLogoUrl, " alt=\"logo\" />\n<p>\n <button id=\"counter_button\">Click me!</button>\n <p>\n Number of clicks: <span id=\"counter_output\"></span>\n </p>\n</p>\n<p>\n Edit <a href=\"javascript:window.fetch('/.internal/open_file/jsenv_logo.svg')\">jsenv_logo.svg</a> and save to test HMR updates.\n</p>\n<a href=\"https://github.com/jsenv/core\" target=\"_blank\">Documentation</a>");
12
12
  initCounter(shadow);
13
13
  }
14
14
  }
@@ -5,7 +5,14 @@
5
5
  <link rel="icon" type="image/svg+xml" href="/other/jsenv_logo.svg?v=0ad5d0f8" original-href-position="5:43;5:66">
6
6
  <meta name="viewport" content="width=device-width,initial-scale=1">
7
7
  <script jsenv-injected-by="jsenv:core" content-indented="">
8
- ;(function(){var m = {"/other/jsenv_logo.svg":"/other/jsenv_logo.svg?v=0ad5d0f8"}; window.__v__ = function (s) { return m[s] || s }; })();
8
+ ;(function() {
9
+ var __versionMappings__ = {
10
+ "/other/jsenv_logo.svg": "/other/jsenv_logo.svg?v=0ad5d0f8"
11
+ };
12
+ window.__v__ = function (specifier) {
13
+ return __versionMappings__[specifier] || specifier
14
+ };
15
+ })();
9
16
  </script>
10
17
  <script inlined-from-src="file:///Users/dmail/Documents/dev/core/packages/related/cli/template-web-components/src/index.html@s.js" jsenv-injected-by="jsenv:core" content-indented="">
11
18
  !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)}}()}));
@@ -15,6 +22,6 @@
15
22
  </head>
16
23
  <body>
17
24
  <div id="root"></div>
18
- <script src="/js/main.nomodule.js?v=33f9f314" original-src-position="25:27;25:42"></script>
25
+ <script src="/js/main.nomodule.js?v=408caea2" original-src-position="25:27;25:42"></script>
19
26
  </body>
20
27
  </html>
@@ -1 +1 @@
1
- !function(){if("undefined"!=typeof document&&!("adoptedStyleSheets"in document)){var e="ShadyCSS"in window&&!ShadyCSS.nativeShadow,t=document.implementation.createHTMLDocument(""),n=new WeakMap,o="object"==typeof DOMException?Error:DOMException,r=Object.defineProperty,c=Array.prototype.forEach,i=/@import.+?;?$/gm,a=CSSStyleSheet.prototype;a.replace=function(){return Promise.reject(new o("Can't call replace on non-constructed CSSStyleSheets."))},a.replaceSync=function(){throw new o("Failed to execute 'replaceSync' on 'CSSStyleSheet': Can't call replaceSync on non-constructed CSSStyleSheets.")};var s=new WeakMap,u=new WeakMap,l=new WeakMap,d=new WeakMap,p=R.prototype;p.replace=function(e){try{return this.replaceSync(e),Promise.resolve(this)}catch(e){return Promise.reject(e)}},p.replaceSync=function(e){if(T(this),"string"==typeof e){var t=this;s.get(t).textContent=function(e){var t=e.replace(i,"");return t!==e&&console.warn("@import rules are not allowed here. See https://github.com/WICG/construct-stylesheets/issues/119#issuecomment-588352418"),t.trim()}(e),d.set(t,[]),u.get(t).forEach((function(e){e.isConnected()&&M(t,_(t,e))}))}},r(p,"cssRules",{configurable:!0,enumerable:!0,get:function(){return T(this),s.get(this).sheet.cssRules}}),r(p,"media",{configurable:!0,enumerable:!0,get:function(){return T(this),s.get(this).sheet.media}}),["addRule","deleteRule","insertRule","removeRule"].forEach((function(e){p[e]=function(){var t=this;T(t);var n=arguments;d.get(t).push({method:e,args:n}),u.get(t).forEach((function(o){if(o.isConnected()){var r=_(t,o).sheet;r[e].apply(r,n)}}));var o=s.get(t).sheet;return o[e].apply(o,n)}})),r(R,Symbol.hasInstance,{configurable:!0,value:C});var h={childList:!0,subtree:!0},f=new WeakMap,y=new WeakMap,m=new WeakMap,S=new WeakMap;if(j.prototype={isConnected:function(){var e=y.get(this);return e instanceof Document?"loading"!==e.readyState:function(e){return"isConnected"in e?e.isConnected:document.contains(e)}(e.host)},connect:function(){var e=F(this);S.get(this).observe(e,h),m.get(this).length>0&&W(this),L(e,(function(e){k(e).connect()}))},disconnect:function(){S.get(this).disconnect()},update:function(e){var t=this,n=y.get(t)===document?"Document":"ShadowRoot";if(!Array.isArray(e))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+n+": Iterator getter is not callable.");if(!e.every(C))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+n+": Failed to convert value to 'CSSStyleSheet'");if(e.some(b))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+n+": Can't adopt non-constructed stylesheets");t.sheets=e;var o,r,c=m.get(t),i=(o=e).filter((function(e,t){return o.indexOf(e)===t}));(r=i,c.filter((function(e){return-1===r.indexOf(e)}))).forEach((function(e){var n;(n=_(e,t)).parentNode.removeChild(n),function(e,t){l.get(e).delete(t),u.set(e,u.get(e).filter((function(e){return e!==t})))}(e,t)})),m.set(t,i),t.isConnected()&&i.length>0&&W(t)}},window.CSSStyleSheet=R,x(Document),"ShadowRoot"in window){x(ShadowRoot);var g=Element.prototype,v=g.attachShadow;g.attachShadow=function(e){var t=v.call(this,e);return"closed"===e.mode&&n.set(this,t),t}}var w=k(document);w.isConnected()?w.connect():document.addEventListener("DOMContentLoaded",w.connect.bind(w))}function E(e){return e.shadowRoot||n.get(e)}function C(e){return"object"==typeof e&&(p.isPrototypeOf(e)||a.isPrototypeOf(e))}function b(e){return"object"==typeof e&&a.isPrototypeOf(e)}function _(e,t){return l.get(e).get(t)}function M(e,t){requestAnimationFrame((function(){t.textContent=s.get(e).textContent,d.get(e).forEach((function(e){return t.sheet[e.method].apply(t.sheet,e.args)}))}))}function T(e){if(!s.has(e))throw new TypeError("Illegal invocation")}function R(){var e=this,n=document.createElement("style");t.body.appendChild(n),s.set(e,n),u.set(e,[]),l.set(e,new WeakMap),d.set(e,[])}function k(e){var t=f.get(e);return t||(t=new j(e),f.set(e,t)),t}function x(e){r(e.prototype,"adoptedStyleSheets",{configurable:!0,enumerable:!0,get:function(){return k(this).sheets},set:function(e){k(this).update(e)}})}function L(e,t){for(var n=document.createNodeIterator(e,NodeFilter.SHOW_ELEMENT,(function(e){return E(e)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}),null,!1),o=void 0;o=n.nextNode();)t(E(o))}function F(e){var t=y.get(e);return t instanceof Document?t.body:t}function W(e){var t=document.createDocumentFragment(),n=m.get(e),o=S.get(e),r=F(e);o.disconnect(),n.forEach((function(n){t.appendChild(_(n,e)||function(e,t){var n=document.createElement("style");return l.get(e).set(t,n),u.get(e).push(t),n}(n,e))})),r.insertBefore(t,null),o.observe(r,h),n.forEach((function(t){M(t,_(t,e))}))}function j(t){var n=this;n.sheets=[],y.set(n,t),m.set(n,[]),S.set(n,new MutationObserver((function(t,o){document?t.forEach((function(t){e||c.call(t.addedNodes,(function(e){e instanceof Element&&L(e,(function(e){k(e).connect()}))})),c.call(t.removedNodes,(function(t){t instanceof Element&&(function(e,t){return t instanceof HTMLStyleElement&&m.get(e).some((function(t){return _(t,e)}))}(n,t)&&W(n),e||L(t,(function(e){k(e).disconnect()})))}))})):o.disconnect()})))}}();("object"==typeof self?self:process).__InlineContent__=function(e,{type:t="text/plain"}){this.text=e,this.type=t};const e=new __InlineContent__(".logo{pointer-events:none;height:40vmin}",{type:"text/css"}),t=new CSSStyleSheet;t.replaceSync(e.text);let n=0;const o=new URL("!~{006}~",import.meta.url);class r extends HTMLElement{constructor(){super();const e=this.attachShadow({mode:"open"});e.adoptedStyleSheets=[...e.adoptedStyleSheets,t],e.innerHTML='\n<h1>Hello world!</h1>\n<img class="logo" src='.concat(o,' alt="logo" />\n<p>\n <button id="counter_button">Click me!</button>\n <p>\n Number of clicks: <span id="counter_output"></span>\n </p>\n</p>\n<p>\n Edit <a href="javascript:window.fetch(\'/__open_in_editor__/jsenv_logo.svg\')">jsenv_logo.svg</a> and save to test HMR updates.\n</p>\n<a href="https://github.com/jsenv/core" target="_blank">Documentation</a>'),(e=>{const t=e.querySelector("#counter_button"),o=e.querySelector("#counter_output");o.innerHTML=n,t.onclick=()=>{n++,o.innerHTML=n}})(e)}}customElements.define("my-app",r),document.querySelector("#root").innerHTML="<my-app></my-app>";
1
+ !function(){if("undefined"!=typeof document&&!("adoptedStyleSheets"in document)){var e="ShadyCSS"in window&&!ShadyCSS.nativeShadow,t=document.implementation.createHTMLDocument(""),n=new WeakMap,o="object"==typeof DOMException?Error:DOMException,r=Object.defineProperty,c=Array.prototype.forEach,i=/@import.+?;?$/gm,a=CSSStyleSheet.prototype;a.replace=function(){return Promise.reject(new o("Can't call replace on non-constructed CSSStyleSheets."))},a.replaceSync=function(){throw new o("Failed to execute 'replaceSync' on 'CSSStyleSheet': Can't call replaceSync on non-constructed CSSStyleSheets.")};var s=new WeakMap,u=new WeakMap,l=new WeakMap,d=new WeakMap,p=R.prototype;p.replace=function(e){try{return this.replaceSync(e),Promise.resolve(this)}catch(e){return Promise.reject(e)}},p.replaceSync=function(e){if(T(this),"string"==typeof e){var t=this;s.get(t).textContent=function(e){var t=e.replace(i,"");return t!==e&&console.warn("@import rules are not allowed here. See https://github.com/WICG/construct-stylesheets/issues/119#issuecomment-588352418"),t.trim()}(e),d.set(t,[]),u.get(t).forEach((function(e){e.isConnected()&&_(t,M(t,e))}))}},r(p,"cssRules",{configurable:!0,enumerable:!0,get:function(){return T(this),s.get(this).sheet.cssRules}}),r(p,"media",{configurable:!0,enumerable:!0,get:function(){return T(this),s.get(this).sheet.media}}),["addRule","deleteRule","insertRule","removeRule"].forEach((function(e){p[e]=function(){var t=this;T(t);var n=arguments;d.get(t).push({method:e,args:n}),u.get(t).forEach((function(o){if(o.isConnected()){var r=M(t,o).sheet;r[e].apply(r,n)}}));var o=s.get(t).sheet;return o[e].apply(o,n)}})),r(R,Symbol.hasInstance,{configurable:!0,value:C});var f={childList:!0,subtree:!0},h=new WeakMap,y=new WeakMap,m=new WeakMap,S=new WeakMap;if(j.prototype={isConnected:function(){var e=y.get(this);return e instanceof Document?"loading"!==e.readyState:function(e){return"isConnected"in e?e.isConnected:document.contains(e)}(e.host)},connect:function(){var e=F(this);S.get(this).observe(e,f),m.get(this).length>0&&W(this),L(e,(function(e){k(e).connect()}))},disconnect:function(){S.get(this).disconnect()},update:function(e){var t=this,n=y.get(t)===document?"Document":"ShadowRoot";if(!Array.isArray(e))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+n+": Iterator getter is not callable.");if(!e.every(C))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+n+": Failed to convert value to 'CSSStyleSheet'");if(e.some(b))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+n+": Can't adopt non-constructed stylesheets");t.sheets=e;var o,r,c=m.get(t),i=(o=e).filter((function(e,t){return o.indexOf(e)===t}));(r=i,c.filter((function(e){return-1===r.indexOf(e)}))).forEach((function(e){var n;(n=M(e,t)).parentNode.removeChild(n),function(e,t){l.get(e).delete(t),u.set(e,u.get(e).filter((function(e){return e!==t})))}(e,t)})),m.set(t,i),t.isConnected()&&i.length>0&&W(t)}},window.CSSStyleSheet=R,x(Document),"ShadowRoot"in window){x(ShadowRoot);var g=Element.prototype,v=g.attachShadow;g.attachShadow=function(e){var t=v.call(this,e);return"closed"===e.mode&&n.set(this,t),t}}var w=k(document);w.isConnected()?w.connect():document.addEventListener("DOMContentLoaded",w.connect.bind(w))}function E(e){return e.shadowRoot||n.get(e)}function C(e){return"object"==typeof e&&(p.isPrototypeOf(e)||a.isPrototypeOf(e))}function b(e){return"object"==typeof e&&a.isPrototypeOf(e)}function M(e,t){return l.get(e).get(t)}function _(e,t){requestAnimationFrame((function(){t.textContent=s.get(e).textContent,d.get(e).forEach((function(e){return t.sheet[e.method].apply(t.sheet,e.args)}))}))}function T(e){if(!s.has(e))throw new TypeError("Illegal invocation")}function R(){var e=this,n=document.createElement("style");t.body.appendChild(n),s.set(e,n),u.set(e,[]),l.set(e,new WeakMap),d.set(e,[])}function k(e){var t=h.get(e);return t||(t=new j(e),h.set(e,t)),t}function x(e){r(e.prototype,"adoptedStyleSheets",{configurable:!0,enumerable:!0,get:function(){return k(this).sheets},set:function(e){k(this).update(e)}})}function L(e,t){for(var n=document.createNodeIterator(e,NodeFilter.SHOW_ELEMENT,(function(e){return E(e)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}),null,!1),o=void 0;o=n.nextNode();)t(E(o))}function F(e){var t=y.get(e);return t instanceof Document?t.body:t}function W(e){var t=document.createDocumentFragment(),n=m.get(e),o=S.get(e),r=F(e);o.disconnect(),n.forEach((function(n){t.appendChild(M(n,e)||function(e,t){var n=document.createElement("style");return l.get(e).set(t,n),u.get(e).push(t),n}(n,e))})),r.insertBefore(t,null),o.observe(r,f),n.forEach((function(t){_(t,M(t,e))}))}function j(t){var n=this;n.sheets=[],y.set(n,t),m.set(n,[]),S.set(n,new MutationObserver((function(t,o){document?t.forEach((function(t){e||c.call(t.addedNodes,(function(e){e instanceof Element&&L(e,(function(e){k(e).connect()}))})),c.call(t.removedNodes,(function(t){t instanceof Element&&(function(e,t){return t instanceof HTMLStyleElement&&m.get(e).some((function(t){return M(t,e)}))}(n,t)&&W(n),e||L(t,(function(e){k(e).disconnect()})))}))})):o.disconnect()})))}}();("object"==typeof self?self:process).__InlineContent__=function(e,{type:t="text/plain"}){this.text=e,this.type=t};const e=new __InlineContent__(".logo{pointer-events:none;height:40vmin}",{type:"text/css"}),t=new CSSStyleSheet;t.replaceSync(e.text);let n=0;const o=new URL("!~{006}~",import.meta.url);class r extends HTMLElement{constructor(){super();const e=this.attachShadow({mode:"open"});e.adoptedStyleSheets=[...e.adoptedStyleSheets,t],e.innerHTML='\n<h1>Hello world!</h1>\n<img class="logo" src='.concat(o,' alt="logo" />\n<p>\n <button id="counter_button">Click me!</button>\n <p>\n Number of clicks: <span id="counter_output"></span>\n </p>\n</p>\n<p>\n Edit <a href="javascript:window.fetch(\'/.internal/open_file/jsenv_logo.svg\')">jsenv_logo.svg</a> and save to test HMR updates.\n</p>\n<a href="https://github.com/jsenv/core" target="_blank">Documentation</a>'),(e=>{const t=e.querySelector("#counter_button"),o=e.querySelector("#counter_output");o.innerHTML=n,t.onclick=()=>{n++,o.innerHTML=n}})(e)}}customElements.define("my-app",r),document.querySelector("#root").innerHTML="<my-app></my-app>";
@@ -1 +1 @@
1
- System.register([],(function(e,t){"use strict";var n,o,r,c,i;return{setters:[],execute:function(){!function(){if("undefined"!=typeof document&&!("adoptedStyleSheets"in document)){var e="ShadyCSS"in window&&!ShadyCSS.nativeShadow,t=document.implementation.createHTMLDocument(""),n=new WeakMap,o="object"==typeof DOMException?Error:DOMException,r=Object.defineProperty,c=Array.prototype.forEach,i=/@import.+?;?$/gm,a=CSSStyleSheet.prototype;a.replace=function(){return Promise.reject(new o("Can't call replace on non-constructed CSSStyleSheets."))},a.replaceSync=function(){throw new o("Failed to execute 'replaceSync' on 'CSSStyleSheet': Can't call replaceSync on non-constructed CSSStyleSheets.")};var s=new WeakMap,u=new WeakMap,l=new WeakMap,d=new WeakMap,p=x.prototype;p.replace=function(e){try{return this.replaceSync(e),Promise.resolve(this)}catch(e){return Promise.reject(e)}},p.replaceSync=function(e){if(T(this),"string"==typeof e){var t=this;s.get(t).textContent=function(e){var t=e.replace(i,"");return t!==e&&console.warn("@import rules are not allowed here. See https://github.com/WICG/construct-stylesheets/issues/119#issuecomment-588352418"),t.trim()}(e),d.set(t,[]),u.get(t).forEach((function(e){e.isConnected()&&M(t,_(t,e))}))}},r(p,"cssRules",{configurable:!0,enumerable:!0,get:function(){return T(this),s.get(this).sheet.cssRules}}),r(p,"media",{configurable:!0,enumerable:!0,get:function(){return T(this),s.get(this).sheet.media}}),["addRule","deleteRule","insertRule","removeRule"].forEach((function(e){p[e]=function(){var t=this;T(t);var n=arguments;d.get(t).push({method:e,args:n}),u.get(t).forEach((function(o){if(o.isConnected()){var r=_(t,o).sheet;r[e].apply(r,n)}}));var o=s.get(t).sheet;return o[e].apply(o,n)}})),r(x,Symbol.hasInstance,{configurable:!0,value:C});var f={childList:!0,subtree:!0},h=new WeakMap,y=new WeakMap,S=new WeakMap,m=new WeakMap;if(j.prototype={isConnected:function(){var e=y.get(this);return e instanceof Document?"loading"!==e.readyState:function(e){return"isConnected"in e?e.isConnected:document.contains(e)}(e.host)},connect:function(){var e=F(this);m.get(this).observe(e,f),S.get(this).length>0&&W(this),L(e,(function(e){R(e).connect()}))},disconnect:function(){m.get(this).disconnect()},update:function(e){var t=this,n=y.get(t)===document?"Document":"ShadowRoot";if(!Array.isArray(e))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+n+": Iterator getter is not callable.");if(!e.every(C))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+n+": Failed to convert value to 'CSSStyleSheet'");if(e.some(b))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+n+": Can't adopt non-constructed stylesheets");t.sheets=e;var o,r,c=S.get(t),i=(o=e).filter((function(e,t){return o.indexOf(e)===t}));(r=i,c.filter((function(e){return-1===r.indexOf(e)}))).forEach((function(e){var n;(n=_(e,t)).parentNode.removeChild(n),function(e,t){l.get(e).delete(t),u.set(e,u.get(e).filter((function(e){return e!==t})))}(e,t)})),S.set(t,i),t.isConnected()&&i.length>0&&W(t)}},window.CSSStyleSheet=x,k(Document),"ShadowRoot"in window){k(ShadowRoot);var g=Element.prototype,v=g.attachShadow;g.attachShadow=function(e){var t=v.call(this,e);return"closed"===e.mode&&n.set(this,t),t}}var w=R(document);w.isConnected()?w.connect():document.addEventListener("DOMContentLoaded",w.connect.bind(w))}function E(e){return e.shadowRoot||n.get(e)}function C(e){return"object"==typeof e&&(p.isPrototypeOf(e)||a.isPrototypeOf(e))}function b(e){return"object"==typeof e&&a.isPrototypeOf(e)}function _(e,t){return l.get(e).get(t)}function M(e,t){requestAnimationFrame((function(){t.textContent=s.get(e).textContent,d.get(e).forEach((function(e){return t.sheet[e.method].apply(t.sheet,e.args)}))}))}function T(e){if(!s.has(e))throw new TypeError("Illegal invocation")}function x(){var e=this,n=document.createElement("style");t.body.appendChild(n),s.set(e,n),u.set(e,[]),l.set(e,new WeakMap),d.set(e,[])}function R(e){var t=h.get(e);return t||(t=new j(e),h.set(e,t)),t}function k(e){r(e.prototype,"adoptedStyleSheets",{configurable:!0,enumerable:!0,get:function(){return R(this).sheets},set:function(e){R(this).update(e)}})}function L(e,t){for(var n=document.createNodeIterator(e,NodeFilter.SHOW_ELEMENT,(function(e){return E(e)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}),null,!1),o=void 0;o=n.nextNode();)t(E(o))}function F(e){var t=y.get(e);return t instanceof Document?t.body:t}function W(e){var t=document.createDocumentFragment(),n=S.get(e),o=m.get(e),r=F(e);o.disconnect(),n.forEach((function(n){t.appendChild(_(n,e)||function(e,t){var n=document.createElement("style");return l.get(e).set(t,n),u.get(e).push(t),n}(n,e))})),r.insertBefore(t,null),o.observe(r,f),n.forEach((function(t){M(t,_(t,e))}))}function j(t){var n=this;n.sheets=[],y.set(n,t),S.set(n,[]),m.set(n,new MutationObserver((function(t,o){document?t.forEach((function(t){e||c.call(t.addedNodes,(function(e){e instanceof Element&&L(e,(function(e){R(e).connect()}))})),c.call(t.removedNodes,(function(t){t instanceof Element&&(function(e,t){return t instanceof HTMLStyleElement&&S.get(e).some((function(t){return _(t,e)}))}(n,t)&&W(n),e||L(t,(function(e){R(e).disconnect()})))}))})):o.disconnect()})))}}(),("object"==typeof self?self:process).__InlineContent__=function(e,{type:t="text/plain"}){this.text=e,this.type=t},o=new __InlineContent__(".logo{pointer-events:none;height:40vmin}",{type:"text/css"}),(r=new CSSStyleSheet).replaceSync(o.text),c=0,i=new URL(__v__("/other/jsenv_logo.svg"),t.meta.url),n=class extends HTMLElement{constructor(){super();const e=this.attachShadow({mode:"open"});e.adoptedStyleSheets=[...e.adoptedStyleSheets,r],e.innerHTML='\n<h1>Hello world!</h1>\n<img class="logo" src='.concat(i,' alt="logo" />\n<p>\n <button id="counter_button">Click me!</button>\n <p>\n Number of clicks: <span id="counter_output"></span>\n </p>\n</p>\n<p>\n Edit <a href="javascript:window.fetch(\'/__open_in_editor__/jsenv_logo.svg\')">jsenv_logo.svg</a> and save to test HMR updates.\n</p>\n<a href="https://github.com/jsenv/core" target="_blank">Documentation</a>'),(e=>{const t=e.querySelector("#counter_button"),n=e.querySelector("#counter_output");n.innerHTML=c,t.onclick=()=>{c++,n.innerHTML=c}})(e)}},customElements.define("my-app",n),document.querySelector("#root").innerHTML="<my-app></my-app>"}}}));
1
+ System.register([],(function(e,t){"use strict";var n,o,r,c,i;return{setters:[],execute:function(){!function(){if("undefined"!=typeof document&&!("adoptedStyleSheets"in document)){var e="ShadyCSS"in window&&!ShadyCSS.nativeShadow,t=document.implementation.createHTMLDocument(""),n=new WeakMap,o="object"==typeof DOMException?Error:DOMException,r=Object.defineProperty,c=Array.prototype.forEach,i=/@import.+?;?$/gm,a=CSSStyleSheet.prototype;a.replace=function(){return Promise.reject(new o("Can't call replace on non-constructed CSSStyleSheets."))},a.replaceSync=function(){throw new o("Failed to execute 'replaceSync' on 'CSSStyleSheet': Can't call replaceSync on non-constructed CSSStyleSheets.")};var s=new WeakMap,u=new WeakMap,l=new WeakMap,d=new WeakMap,p=x.prototype;p.replace=function(e){try{return this.replaceSync(e),Promise.resolve(this)}catch(e){return Promise.reject(e)}},p.replaceSync=function(e){if(T(this),"string"==typeof e){var t=this;s.get(t).textContent=function(e){var t=e.replace(i,"");return t!==e&&console.warn("@import rules are not allowed here. See https://github.com/WICG/construct-stylesheets/issues/119#issuecomment-588352418"),t.trim()}(e),d.set(t,[]),u.get(t).forEach((function(e){e.isConnected()&&_(t,M(t,e))}))}},r(p,"cssRules",{configurable:!0,enumerable:!0,get:function(){return T(this),s.get(this).sheet.cssRules}}),r(p,"media",{configurable:!0,enumerable:!0,get:function(){return T(this),s.get(this).sheet.media}}),["addRule","deleteRule","insertRule","removeRule"].forEach((function(e){p[e]=function(){var t=this;T(t);var n=arguments;d.get(t).push({method:e,args:n}),u.get(t).forEach((function(o){if(o.isConnected()){var r=M(t,o).sheet;r[e].apply(r,n)}}));var o=s.get(t).sheet;return o[e].apply(o,n)}})),r(x,Symbol.hasInstance,{configurable:!0,value:C});var f={childList:!0,subtree:!0},h=new WeakMap,y=new WeakMap,S=new WeakMap,m=new WeakMap;if(j.prototype={isConnected:function(){var e=y.get(this);return e instanceof Document?"loading"!==e.readyState:function(e){return"isConnected"in e?e.isConnected:document.contains(e)}(e.host)},connect:function(){var e=F(this);m.get(this).observe(e,f),S.get(this).length>0&&W(this),L(e,(function(e){R(e).connect()}))},disconnect:function(){m.get(this).disconnect()},update:function(e){var t=this,n=y.get(t)===document?"Document":"ShadowRoot";if(!Array.isArray(e))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+n+": Iterator getter is not callable.");if(!e.every(C))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+n+": Failed to convert value to 'CSSStyleSheet'");if(e.some(b))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+n+": Can't adopt non-constructed stylesheets");t.sheets=e;var o,r,c=S.get(t),i=(o=e).filter((function(e,t){return o.indexOf(e)===t}));(r=i,c.filter((function(e){return-1===r.indexOf(e)}))).forEach((function(e){var n;(n=M(e,t)).parentNode.removeChild(n),function(e,t){l.get(e).delete(t),u.set(e,u.get(e).filter((function(e){return e!==t})))}(e,t)})),S.set(t,i),t.isConnected()&&i.length>0&&W(t)}},window.CSSStyleSheet=x,k(Document),"ShadowRoot"in window){k(ShadowRoot);var g=Element.prototype,v=g.attachShadow;g.attachShadow=function(e){var t=v.call(this,e);return"closed"===e.mode&&n.set(this,t),t}}var w=R(document);w.isConnected()?w.connect():document.addEventListener("DOMContentLoaded",w.connect.bind(w))}function E(e){return e.shadowRoot||n.get(e)}function C(e){return"object"==typeof e&&(p.isPrototypeOf(e)||a.isPrototypeOf(e))}function b(e){return"object"==typeof e&&a.isPrototypeOf(e)}function M(e,t){return l.get(e).get(t)}function _(e,t){requestAnimationFrame((function(){t.textContent=s.get(e).textContent,d.get(e).forEach((function(e){return t.sheet[e.method].apply(t.sheet,e.args)}))}))}function T(e){if(!s.has(e))throw new TypeError("Illegal invocation")}function x(){var e=this,n=document.createElement("style");t.body.appendChild(n),s.set(e,n),u.set(e,[]),l.set(e,new WeakMap),d.set(e,[])}function R(e){var t=h.get(e);return t||(t=new j(e),h.set(e,t)),t}function k(e){r(e.prototype,"adoptedStyleSheets",{configurable:!0,enumerable:!0,get:function(){return R(this).sheets},set:function(e){R(this).update(e)}})}function L(e,t){for(var n=document.createNodeIterator(e,NodeFilter.SHOW_ELEMENT,(function(e){return E(e)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}),null,!1),o=void 0;o=n.nextNode();)t(E(o))}function F(e){var t=y.get(e);return t instanceof Document?t.body:t}function W(e){var t=document.createDocumentFragment(),n=S.get(e),o=m.get(e),r=F(e);o.disconnect(),n.forEach((function(n){t.appendChild(M(n,e)||function(e,t){var n=document.createElement("style");return l.get(e).set(t,n),u.get(e).push(t),n}(n,e))})),r.insertBefore(t,null),o.observe(r,f),n.forEach((function(t){_(t,M(t,e))}))}function j(t){var n=this;n.sheets=[],y.set(n,t),S.set(n,[]),m.set(n,new MutationObserver((function(t,o){document?t.forEach((function(t){e||c.call(t.addedNodes,(function(e){e instanceof Element&&L(e,(function(e){R(e).connect()}))})),c.call(t.removedNodes,(function(t){t instanceof Element&&(function(e,t){return t instanceof HTMLStyleElement&&S.get(e).some((function(t){return M(t,e)}))}(n,t)&&W(n),e||L(t,(function(e){R(e).disconnect()})))}))})):o.disconnect()})))}}(),("object"==typeof self?self:process).__InlineContent__=function(e,{type:t="text/plain"}){this.text=e,this.type=t},o=new __InlineContent__(".logo{pointer-events:none;height:40vmin}",{type:"text/css"}),(r=new CSSStyleSheet).replaceSync(o.text),c=0,i=new URL(__v__("/other/jsenv_logo.svg"),t.meta.url),n=class extends HTMLElement{constructor(){super();const e=this.attachShadow({mode:"open"});e.adoptedStyleSheets=[...e.adoptedStyleSheets,r],e.innerHTML='\n<h1>Hello world!</h1>\n<img class="logo" src='.concat(i,' alt="logo" />\n<p>\n <button id="counter_button">Click me!</button>\n <p>\n Number of clicks: <span id="counter_output"></span>\n </p>\n</p>\n<p>\n Edit <a href="javascript:window.fetch(\'/.internal/open_file/jsenv_logo.svg\')">jsenv_logo.svg</a> and save to test HMR updates.\n</p>\n<a href="https://github.com/jsenv/core" target="_blank">Documentation</a>'),(e=>{const t=e.querySelector("#counter_button"),n=e.querySelector("#counter_output");n.innerHTML=c,t.onclick=()=>{c++,n.innerHTML=c}})(e)}},customElements.define("my-app",n),document.querySelector("#root").innerHTML="<my-app></my-app>"}}}));
@@ -0,0 +1,47 @@
1
+ {
2
+ "version": "0.2.0",
3
+ "configurations": [
4
+ {
5
+ "name": "node",
6
+ "type": "node",
7
+ "request": "launch",
8
+ "program": "${file}",
9
+ "runtimeArgs": ["--inspect"],
10
+ "console": "integratedTerminal",
11
+ "autoAttachChildProcesses": true,
12
+ "sourceMaps": true,
13
+ "smartStep": true,
14
+ "skipFiles": [
15
+ // force-array-multiline
16
+ // "node_modules/**",
17
+ "node_modules/playwright/**",
18
+ "node_modules/playwright-chromium/**",
19
+ "node_modules/playwright-webkit/**",
20
+ "node_modules/playwright-firefox/**",
21
+ "node_modules/playwright-core/**",
22
+ "<node_internals>/**"
23
+ ]
24
+ },
25
+ {
26
+ "name": "node watch",
27
+ "type": "node",
28
+ "request": "launch",
29
+ "program": "${file}",
30
+ "runtimeArgs": ["--inspect", "--watch"],
31
+ "console": "integratedTerminal",
32
+ "autoAttachChildProcesses": true,
33
+ "sourceMaps": true,
34
+ "smartStep": true,
35
+ "skipFiles": [
36
+ // force-array-multiline
37
+ // "node_modules/**",
38
+ "node_modules/playwright/**",
39
+ "node_modules/playwright-chromium/**",
40
+ "node_modules/playwright-webkit/**",
41
+ "node_modules/playwright-firefox/**",
42
+ "node_modules/playwright-core/**",
43
+ "<node_internals>/**"
44
+ ]
45
+ }
46
+ ]
47
+ }
@@ -5,7 +5,14 @@
5
5
  <link rel="icon" type="image/svg+xml" href="/other/jsenv_logo.svg?v=0ad5d0f8">
6
6
  <meta name="viewport" content="width=device-width,initial-scale=1">
7
7
  <script>
8
- ;(function(){var m = {"/other/jsenv_logo.svg":"/other/jsenv_logo.svg?v=0ad5d0f8"}; window.__v__ = function (s) { return m[s] || s }; })();
8
+ ;(function() {
9
+ var __versionMappings__ = {
10
+ "/other/jsenv_logo.svg": "/other/jsenv_logo.svg?v=0ad5d0f8"
11
+ };
12
+ window.__v__ = function (specifier) {
13
+ return __versionMappings__[specifier] || specifier
14
+ };
15
+ })();
9
16
  </script>
10
17
  <script>
11
18
  !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)}}()}));
@@ -15,6 +22,6 @@
15
22
  </head>
16
23
  <body>
17
24
  <div id="root"></div>
18
- <script src="/js/main.nomodule.js?v=33f9f314"></script>
25
+ <script src="/js/main.nomodule.js?v=408caea2"></script>
19
26
  </body>
20
27
  </html>