importmap-rails 1.1.5 → 1.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -3
- data/app/assets/javascripts/es-module-shims.js +197 -144
- data/app/assets/javascripts/es-module-shims.js.map +1 -1
- data/app/assets/javascripts/es-module-shims.min.js +2 -2
- data/app/helpers/importmap/importmap_tags_helper.rb +2 -2
- data/lib/importmap/packager.rb +2 -2
- data/lib/importmap/version.rb +1 -1
- metadata +3 -3
@@ -1,3 +1,3 @@
|
|
1
|
-
(function(){const e="undefined"!==typeof window;const t="undefined"!==typeof document;const noop=()=>{};const r=t?document.querySelector("script[type=esms-options]"):void 0;const s=r?JSON.parse(r.innerHTML):{};Object.assign(s,self.esmsInitOptions||{});let a=!t||!!s.shimMode;const n=globalHook(a&&s.onimport);const i=globalHook(a&&s.resolve);let c=s.fetch?globalHook(s.fetch):fetch;const f=s.meta?globalHook(a&&s.meta):noop;const te=s.skip?new RegExp(s.skip):null;const re=s.mapOverrides;let se=s.nonce;if(!se&&t){const e=document.querySelector("script[nonce]");e&&(se=e.nonce||e.getAttribute("nonce"))}const ae=globalHook(s.onerror||noop);const ne=s.onpolyfill?globalHook(s.onpolyfill):()=>{console.log("%c^^ Module TypeError above is polyfilled and can be ignored ^^","font-weight:900;color:#391")};const{revokeBlobURLs:oe,noLoadEventRetriggers:ie,enforceIntegrity:ce}=s;function globalHook(e){return"string"===typeof e?self[e]:e}const le=Array.isArray(s.polyfillEnable)?s.polyfillEnable:[];const fe=le.includes("css-modules");const ue=le.includes("json-modules");const pe=!navigator.userAgentData&&!!navigator.userAgent.match(/Edge\/\d+\.\d+/);const de=t?document.baseURI:`${location.protocol}//${location.host}${location.pathname.includes("/")?location.pathname.slice(0,location.pathname.lastIndexOf("/")+1):location.pathname}`;function createBlob(e,t="text/javascript"){return URL.createObjectURL(new Blob([e],{type:t}))}const eoop=e=>setTimeout((()=>{throw e}));const throwError=t=>{(self.reportError||e&&window.safari&&console.error||eoop)(t),void ae(t)};function fromParent(e){return e?` imported from ${e}`:""}let be=false;function setImportMapSrcOrLazy(){be=true}if(!a)if(document.querySelectorAll("script[type=module-shim],script[type=importmap-shim],link[rel=modulepreload-shim]").length)a=true;else{let e=false;for(const t of document.querySelectorAll("script[type=module],script[type=importmap]"))if(e){if("importmap"===t.type&&e){be=true;break}}else"module"!==t.type||t.ep||(e=true)}const he=/\\/g;function isURL(e){if(-1===e.indexOf(":"))return false;try{new URL(e);return true}catch(e){return false}}function resolveUrl(e,t){return resolveIfNotPlainOrUrl(e,t)||(isURL(e)?e:resolveIfNotPlainOrUrl("./"+e,t))}function resolveIfNotPlainOrUrl(e,t){const r=t.indexOf("?",-1===t.indexOf("#")?t.indexOf("#"):t.length);-1!==r&&(t=t.slice(0,r));-1!==e.indexOf("\\")&&(e=e.replace(he,"/"));if("/"===e[0]&&"/"===e[1])return t.slice(0,t.indexOf(":")+1)+e;if("."===e[0]&&("/"===e[1]||"."===e[1]&&("/"===e[2]||2===e.length&&(e+="/"))||1===e.length&&(e+="/"))||"/"===e[0]){const r=t.slice(0,t.indexOf(":")+1);let s;if("/"===t[r.length+1])if("file:"!==r){s=t.slice(r.length+2);s=s.slice(s.indexOf("/")+1)}else s=t.slice(8);else s=t.slice(r.length+("/"===t[r.length]));if("/"===e[0])return t.slice(0,t.length-s.length-1)+e;const a=s.slice(0,s.lastIndexOf("/")+1)+e;const n=[];let i=-1;for(let e=0;e<a.length;e++)if(-1===i){if("."===a[e]){if("."===a[e+1]&&("/"===a[e+2]||e+2===a.length)){n.pop();e+=2;continue}if("/"===a[e+1]||e+1===a.length){e+=1;continue}}while("/"===a[e])e++;i=e}else if("/"===a[e]){n.push(a.slice(i,e+1));i=-1}-1!==i&&n.push(a.slice(i));return t.slice(0,t.length-s.length)+n.join("")}}function resolveAndComposeImportMap(e,t,r){const s={imports:Object.assign({},r.imports),scopes:Object.assign({},r.scopes)};e.imports&&resolveAndComposePackages(e.imports,s.imports,t,r);if(e.scopes)for(let a in e.scopes){const n=resolveUrl(a,t);resolveAndComposePackages(e.scopes[a],s.scopes[n]||(s.scopes[n]={}),t,r)}return s}function getMatch(e,t){if(t[e])return e;let r=e.length;do{const s=e.slice(0,r+1);if(s in t)return s}while(-1!==(r=e.lastIndexOf("/",r-1)))}function applyPackages(e,t){const r=getMatch(e,t);if(r){const s=t[r];if(null===s)return;return s+e.slice(r.length)}}function resolveImportMap(e,t,r){let s=r&&getMatch(r,e.scopes);while(s){const r=applyPackages(t,e.scopes[s]);if(r)return r;s=getMatch(s.slice(0,s.lastIndexOf("/")),e.scopes)}return applyPackages(t,e.imports)||-1!==t.indexOf(":")&&t}function resolveAndComposePackages(e,t,r,s){for(let n in e){const i=resolveIfNotPlainOrUrl(n,r)||n;if((!a||!re)&&t[i]&&t[i]!==e[i])throw Error(`Rejected map override "${i}" from ${t[i]} to ${e[i]}.`);let c=e[n];if("string"!==typeof c)continue;const f=resolveImportMap(s,resolveIfNotPlainOrUrl(c,r)||c,r);f?t[i]=f:console.warn(`Mapping "${n}" -> "${e[n]}" does not resolve`)}}let me;window.addEventListener("error",(e=>me=e));function dynamicImportScript(e,{errUrl:t=e}={}){me=void 0;const r=createBlob(`import*as m from'${e}';self._esmsi=m`);const s=Object.assign(document.createElement("script"),{type:"module",src:r,ep:true});s.setAttribute("nonce",se);s.setAttribute("noshim","");const a=new Promise(((e,a)=>{s.addEventListener("error",cb);s.addEventListener("load",cb);function cb(n){document.head.removeChild(s);if(self._esmsi){e(self._esmsi,de);self._esmsi=void 0}else{a(!(n instanceof Event)&&n||me&&me.error||new Error(`Error loading or executing the graph of ${t} (check the console for ${r}).`));me=void 0}}}));document.head.appendChild(s);return a}let ke=dynamicImportScript;const we=dynamicImportScript(createBlob("export default u=>import(u)")).then((e=>{e&&(ke=e.default);return!!e}),noop);let ge=false;let ve=false;let ye=!(!t||!HTMLScriptElement.supports)&&HTMLScriptElement.supports("importmap");let Se=ye;let $e=false;const Le=Promise.resolve(ye||we).then((e=>{if(e){$e=true;return Promise.all([ye||ke(createBlob("import.meta")).then((()=>Se=true),noop),fe&&ke(createBlob(`import"${createBlob("","text/css")}"assert{type:"css"}`)).then((()=>ve=true),noop),ue&&ke(createBlob(`import"${createBlob("{}","text/json")}"assert{type:"json"}`)).then((()=>ge=true),noop),ye||t&&(HTMLScriptElement.supports||new Promise((e=>{const t=document.createElement("iframe");t.style.display="none";t.setAttribute("nonce",se);t.srcdoc=`<!doctype html><script nonce="${se}"><\/script>`;document.head.appendChild(t);t.onload=()=>{self._$s=r=>{document.head.removeChild(t);ye=r;delete self._$s;e()};const r=t.contentDocument.head.childNodes.length>0;const s=`<!doctype html><script type=importmap nonce="${se}">{"imports":{"x":"${createBlob("")}"}<\/script><script nonce="${se}">import('x').catch(() => {}).then(v=>parent._$s(!!v))<\/script>`;r?t.srcdoc=s:t.contentDocument.write(s)}})))])}}));let Oe,Ce,Ie,Ae=2<<19;const Me=1===new Uint8Array(new Uint16Array([1]).buffer)[0]?function(e,t){const r=e.length;let s=0;for(;s<r;)t[s]=e.charCodeAt(s++)}:function(e,t){const r=e.length;let s=0;for(;s<r;){const r=e.charCodeAt(s);t[s++]=(255&r)<<8|r>>>8}},Ue="xportmportlassetafromssertvoyiedeleinstantyreturdebuggeawaithrwhileforifcatcfinallels";let Ee,Pe,xe;function parse(e,t="@"){Ee=e,Pe=t;const r=2*Ee.length+(2<<18);if(r>Ae||!Oe){for(;r>Ae;)Ae*=2;Ce=new ArrayBuffer(Ae),Me(Ue,new Uint16Array(Ce,16,85)),Oe=function(e,t,r){"use asm";var s=new e.Int8Array(r),a=new e.Int16Array(r),n=new e.Int32Array(r),i=new e.Uint8Array(r),c=new e.Uint16Array(r),f=992;function b(e){e=e|0;var t=0,r=0,i=0,te=0,re=0,se=0,ae=0;ae=f;f=f+11520|0;re=ae+2048|0;s[763]=1;a[377]=0;a[378]=0;a[379]=0;a[380]=-1;n[57]=n[2];s[764]=0;n[56]=0;s[762]=0;n[58]=ae+10496;n[59]=ae+2304;n[60]=ae;s[765]=0;e=(n[3]|0)+-2|0;n[61]=e;t=e+(n[54]<<1)|0;n[62]=t;e:while(1){r=e+2|0;n[61]=r;if(e>>>0>=t>>>0){te=18;break}t:do{switch(a[r>>1]|0){case 9:case 10:case 11:case 12:case 13:case 32:break;case 101:{if((((a[379]|0)==0?D(r)|0:0)?(m(e+4|0,16,10)|0)==0:0)?(k(),(s[763]|0)==0):0){te=9;break e}else te=17;break}case 105:{if(D(r)|0?(m(e+4|0,26,10)|0)==0:0){l();te=17}else te=17;break}case 59:{te=17;break}case 47:switch(a[e+4>>1]|0){case 47:{j();break t}case 42:{y(1);break t}default:{te=16;break e}}default:{te=16;break e}}}while(0);if((te|0)==17){te=0;n[57]=n[61]}e=n[61]|0;t=n[62]|0}if((te|0)==9){e=n[61]|0;n[57]=e;te=19}else if((te|0)==16){s[763]=0;n[61]=e;te=19}else if((te|0)==18)if(!(s[762]|0)){e=r;te=19}else e=0;do{if((te|0)==19){e:while(1){t=e+2|0;n[61]=t;i=t;if(e>>>0>=(n[62]|0)>>>0){te=75;break}t:do{switch(a[t>>1]|0){case 9:case 10:case 11:case 12:case 13:case 32:break;case 101:{if(((a[379]|0)==0?D(t)|0:0)?(m(e+4|0,16,10)|0)==0:0){k();te=74}else te=74;break}case 105:{if(D(t)|0?(m(e+4|0,26,10)|0)==0:0){l();te=74}else te=74;break}case 99:{if((D(t)|0?(m(e+4|0,36,8)|0)==0:0)?M(a[e+12>>1]|0)|0:0){s[765]=1;te=74}else te=74;break}case 40:{r=n[57]|0;i=n[59]|0;te=a[379]|0;a[379]=te+1<<16>>16;n[i+((te&65535)<<2)>>2]=r;te=74;break}case 41:{t=a[379]|0;if(!(t<<16>>16)){te=36;break e}t=t+-1<<16>>16;a[379]=t;r=a[378]|0;if(r<<16>>16!=0?(se=n[(n[60]|0)+((r&65535)+-1<<2)>>2]|0,(n[se+20>>2]|0)==(n[(n[59]|0)+((t&65535)<<2)>>2]|0)):0){t=se+4|0;if(!(n[t>>2]|0))n[t>>2]=i;n[se+12>>2]=e+4;a[378]=r+-1<<16>>16;te=74}else te=74;break}case 123:{te=n[57]|0;i=n[51]|0;e=te;do{if((a[te>>1]|0)==41&(i|0)!=0?(n[i+4>>2]|0)==(te|0):0){t=n[52]|0;n[51]=t;if(!t){n[47]=0;break}else{n[t+28>>2]=0;break}}}while(0);r=a[379]|0;te=r&65535;s[re+te>>0]=s[765]|0;s[765]=0;i=n[59]|0;a[379]=r+1<<16>>16;n[i+(te<<2)>>2]=e;te=74;break}case 125:{e=a[379]|0;if(!(e<<16>>16)){te=49;break e}r=e+-1<<16>>16;a[379]=r;t=a[380]|0;if(e<<16>>16!=t<<16>>16)if(t<<16>>16!=-1&(r&65535)<(t&65535)){te=53;break e}else{te=74;break t}else{i=n[58]|0;te=(a[377]|0)+-1<<16>>16;a[377]=te;a[380]=a[i+((te&65535)<<1)>>1]|0;h();te=74;break t}}case 39:{d(39);te=74;break}case 34:{d(34);te=74;break}case 47:switch(a[e+4>>1]|0){case 47:{j();break t}case 42:{y(1);break t}default:{t=n[57]|0;r=a[t>>1]|0;r:do{if(!(U(r)|0)){switch(r<<16>>16){case 41:if(q(n[(n[59]|0)+(c[379]<<2)>>2]|0)|0){te=71;break r}else{te=68;break r}case 125:break;default:{te=68;break r}}e=c[379]|0;if(!(p(n[(n[59]|0)+(e<<2)>>2]|0)|0)?(s[re+e>>0]|0)==0:0)te=68;else te=71}else switch(r<<16>>16){case 46:if(((a[t+-2>>1]|0)+-48&65535)<10){te=68;break r}else{te=71;break r}case 43:if((a[t+-2>>1]|0)==43){te=68;break r}else{te=71;break r}case 45:if((a[t+-2>>1]|0)==45){te=68;break r}else{te=71;break r}default:{te=71;break r}}}while(0);r:do{if((te|0)==68){te=0;if(!(o(t)|0)){switch(r<<16>>16){case 0:{te=71;break r}case 47:break;default:{e=1;break r}}if(!(s[764]|0))e=1;else te=71}else te=71}}while(0);if((te|0)==71){g();e=0}s[764]=e;te=74;break t}}case 96:{h();te=74;break}default:te=74}}while(0);if((te|0)==74){te=0;n[57]=n[61]}e=n[61]|0}if((te|0)==36){L();e=0;break}else if((te|0)==49){L();e=0;break}else if((te|0)==53){L();e=0;break}else if((te|0)==75){e=(a[380]|0)==-1&(a[379]|0)==0&(s[762]|0)==0&(a[378]|0)==0;break}}}while(0);f=ae;return e|0}function k(){var e=0,t=0,r=0,i=0,c=0,f=0;c=n[61]|0;f=c+12|0;n[61]=f;t=w(1)|0;e=n[61]|0;if(!((e|0)==(f|0)?!(I(t)|0):0))i=3;e:do{if((i|0)==3){t:do{switch(t<<16>>16){case 100:{B(e,e+14|0);break e}case 97:{n[61]=e+10;w(1)|0;e=n[61]|0;i=6;break}case 102:{i=6;break}case 99:{if((m(e+2|0,36,8)|0)==0?(r=e+10|0,$(a[r>>1]|0)|0):0){n[61]=r;c=w(1)|0;f=n[61]|0;E(c)|0;B(f,n[61]|0);n[61]=(n[61]|0)+-2;break e}e=e+4|0;n[61]=e;i=13;break}case 108:case 118:{i=13;break}case 123:{n[61]=e+2;e=w(1)|0;r=n[61]|0;while(1){if(N(e)|0){d(e);e=(n[61]|0)+2|0;n[61]=e}else{E(e)|0;e=n[61]|0}w(1)|0;e=C(r,e)|0;if(e<<16>>16==44){n[61]=(n[61]|0)+2;e=w(1)|0}t=r;r=n[61]|0;if(e<<16>>16==125){i=32;break}if((r|0)==(t|0)){i=29;break}if(r>>>0>(n[62]|0)>>>0){i=31;break}}if((i|0)==29){L();break e}else if((i|0)==31){L();break e}else if((i|0)==32){n[61]=r+2;i=34;break t}break}case 42:{n[61]=e+2;w(1)|0;i=n[61]|0;C(i,i)|0;i=34;break}default:{}}}while(0);if((i|0)==6){n[61]=e+16;e=w(1)|0;if(e<<16>>16==42){n[61]=(n[61]|0)+2;e=w(1)|0}f=n[61]|0;E(e)|0;B(f,n[61]|0);n[61]=(n[61]|0)+-2;break}else if((i|0)==13){e=e+4|0;n[61]=e;s[763]=0;t:while(1){n[61]=e+2;f=w(1)|0;e=n[61]|0;switch((E(f)|0)<<16>>16){case 91:case 123:{i=15;break t}default:{}}t=n[61]|0;if((t|0)==(e|0))break e;B(e,t);switch((w(1)|0)<<16>>16){case 61:{i=19;break t}case 44:break;default:{i=20;break t}}e=n[61]|0}if((i|0)==15){n[61]=(n[61]|0)+-2;break}else if((i|0)==19){n[61]=(n[61]|0)+-2;break}else if((i|0)==20){n[61]=(n[61]|0)+-2;break}}else if((i|0)==34)t=w(1)|0;e=n[61]|0;if(t<<16>>16==102?(m(e+2|0,52,6)|0)==0:0){n[61]=e+8;u(c,w(1)|0);break}n[61]=e+-2}}while(0);return}function l(){var e=0,t=0,r=0,i=0,c=0;c=n[61]|0;t=c+12|0;n[61]=t;e:do{switch((w(1)|0)<<16>>16){case 40:{e=n[61]|0;t=n[59]|0;r=a[379]|0;a[379]=r+1<<16>>16;n[t+((r&65535)<<2)>>2]=e;if((a[n[57]>>1]|0)!=46){e=n[61]|0;n[61]=e+2;r=w(1)|0;v(c,n[61]|0,0,e);e=n[51]|0;t=n[60]|0;c=a[378]|0;a[378]=c+1<<16>>16;n[t+((c&65535)<<2)>>2]=e;switch(r<<16>>16){case 39:{d(39);break}case 34:{d(34);break}default:{n[61]=(n[61]|0)+-2;break e}}e=(n[61]|0)+2|0;n[61]=e;switch((w(1)|0)<<16>>16){case 44:{n[61]=(n[61]|0)+2;w(1)|0;r=n[51]|0;n[r+4>>2]=e;c=n[61]|0;n[r+16>>2]=c;s[r+24>>0]=1;n[61]=c+-2;break e}case 41:{a[379]=(a[379]|0)+-1<<16>>16;c=n[51]|0;n[c+4>>2]=e;n[c+12>>2]=(n[61]|0)+2;s[c+24>>0]=1;a[378]=(a[378]|0)+-1<<16>>16;break e}default:{n[61]=(n[61]|0)+-2;break e}}}break}case 46:{n[61]=(n[61]|0)+2;if(((w(1)|0)<<16>>16==109?(e=n[61]|0,(m(e+2|0,44,6)|0)==0):0)?(a[n[57]>>1]|0)!=46:0)v(c,c,e+8|0,2);break}case 42:case 39:case 34:{i=16;break}case 123:{e=n[61]|0;if(a[379]|0){n[61]=e+-2;break e}while(1){if(e>>>0>=(n[62]|0)>>>0)break;e=w(1)|0;if(!(N(e)|0)){if(e<<16>>16==125){i=31;break}}else d(e);e=(n[61]|0)+2|0;n[61]=e}if((i|0)==31)n[61]=(n[61]|0)+2;w(1)|0;e=n[61]|0;if(m(e,50,8)|0){L();break e}n[61]=e+8;e=w(1)|0;if(N(e)|0){u(c,e);break e}else{L();break e}}default:if((n[61]|0)!=(t|0))i=16}}while(0);do{if((i|0)==16){if(a[379]|0){n[61]=(n[61]|0)+-2;break}e=n[62]|0;t=n[61]|0;while(1){if(t>>>0>=e>>>0){i=23;break}r=a[t>>1]|0;if(N(r)|0){i=21;break}i=t+2|0;n[61]=i;t=i}if((i|0)==21){u(c,r);break}else if((i|0)==23){L();break}}}while(0);return}function u(e,t){e=e|0;t=t|0;var r=0,s=0;r=(n[61]|0)+2|0;switch(t<<16>>16){case 39:{d(39);s=5;break}case 34:{d(34);s=5;break}default:L()}do{if((s|0)==5){v(e,r,n[61]|0,1);n[61]=(n[61]|0)+2;s=(w(0)|0)<<16>>16==97;t=n[61]|0;if(s?(m(t+2|0,58,10)|0)==0:0){n[61]=t+12;if((w(1)|0)<<16>>16!=123){n[61]=t;break}e=n[61]|0;r=e;e:while(1){n[61]=r+2;r=w(1)|0;switch(r<<16>>16){case 39:{d(39);n[61]=(n[61]|0)+2;r=w(1)|0;break}case 34:{d(34);n[61]=(n[61]|0)+2;r=w(1)|0;break}default:r=E(r)|0}if(r<<16>>16!=58){s=16;break}n[61]=(n[61]|0)+2;switch((w(1)|0)<<16>>16){case 39:{d(39);break}case 34:{d(34);break}default:{s=20;break e}}n[61]=(n[61]|0)+2;switch((w(1)|0)<<16>>16){case 125:{s=25;break e}case 44:break;default:{s=24;break e}}n[61]=(n[61]|0)+2;if((w(1)|0)<<16>>16==125){s=25;break}r=n[61]|0}if((s|0)==16){n[61]=t;break}else if((s|0)==20){n[61]=t;break}else if((s|0)==24){n[61]=t;break}else if((s|0)==25){s=n[51]|0;n[s+16>>2]=e;n[s+12>>2]=(n[61]|0)+2;break}}n[61]=t+-2}}while(0);return}function o(e){e=e|0;e:do{switch(a[e>>1]|0){case 100:switch(a[e+-2>>1]|0){case 105:{e=S(e+-4|0,68,2)|0;break e}case 108:{e=S(e+-4|0,72,3)|0;break e}default:{e=0;break e}}case 101:{switch(a[e+-2>>1]|0){case 115:break;case 116:{e=S(e+-4|0,78,4)|0;break e}default:{e=0;break e}}switch(a[e+-4>>1]|0){case 108:{e=O(e+-6|0,101)|0;break e}case 97:{e=O(e+-6|0,99)|0;break e}default:{e=0;break e}}}case 102:{if((a[e+-2>>1]|0)==111?(a[e+-4>>1]|0)==101:0)switch(a[e+-6>>1]|0){case 99:{e=S(e+-8|0,86,6)|0;break e}case 112:{e=S(e+-8|0,98,2)|0;break e}default:{e=0;break e}}else e=0;break}case 110:{e=e+-2|0;if(O(e,105)|0)e=1;else e=S(e,102,5)|0;break}case 111:{e=O(e+-2|0,100)|0;break}case 114:{e=S(e+-2|0,112,7)|0;break}case 116:{e=S(e+-2|0,126,4)|0;break}case 119:switch(a[e+-2>>1]|0){case 101:{e=O(e+-4|0,110)|0;break e}case 111:{e=S(e+-4|0,134,3)|0;break e}default:{e=0;break e}}default:e=0}}while(0);return e|0}function h(){var e=0,t=0,r=0;t=n[62]|0;r=n[61]|0;e:while(1){e=r+2|0;if(r>>>0>=t>>>0){t=8;break}switch(a[e>>1]|0){case 96:{t=9;break e}case 36:{if((a[r+4>>1]|0)==123){t=6;break e}break}case 92:{e=r+4|0;break}default:{}}r=e}if((t|0)==6){n[61]=r+4;e=a[380]|0;t=n[58]|0;r=a[377]|0;a[377]=r+1<<16>>16;a[t+((r&65535)<<1)>>1]=e;r=(a[379]|0)+1<<16>>16;a[379]=r;a[380]=r}else if((t|0)==8){n[61]=e;L()}else if((t|0)==9)n[61]=e;return}function w(e){e=e|0;var t=0,r=0,s=0;r=n[61]|0;e:do{t=a[r>>1]|0;t:do{if(t<<16>>16!=47)if(e)if(M(t)|0)break;else break e;else if(z(t)|0)break;else break e;else switch(a[r+2>>1]|0){case 47:{j();break t}case 42:{y(e);break t}default:{t=47;break e}}}while(0);s=n[61]|0;r=s+2|0;n[61]=r}while(s>>>0<(n[62]|0)>>>0);return t|0}function d(e){e=e|0;var t=0,r=0,s=0,i=0;i=n[62]|0;t=n[61]|0;while(1){s=t+2|0;if(t>>>0>=i>>>0){t=9;break}r=a[s>>1]|0;if(r<<16>>16==e<<16>>16){t=10;break}if(r<<16>>16==92){r=t+4|0;if((a[r>>1]|0)==13){t=t+6|0;t=(a[t>>1]|0)==10?t:r}else t=r}else if(T(r)|0){t=9;break}else t=s}if((t|0)==9){n[61]=s;L()}else if((t|0)==10)n[61]=s;return}function v(e,t,r,a){e=e|0;t=t|0;r=r|0;a=a|0;var i=0,c=0;i=n[55]|0;n[55]=i+32;c=n[51]|0;n[((c|0)==0?188:c+28|0)>>2]=i;n[52]=c;n[51]=i;n[i+8>>2]=e;if(2==(a|0))e=r;else e=1==(a|0)?r+2|0:0;n[i+12>>2]=e;n[i>>2]=t;n[i+4>>2]=r;n[i+16>>2]=0;n[i+20>>2]=a;s[i+24>>0]=1==(a|0)&1;n[i+28>>2]=0;return}function A(){var e=0,t=0,r=0;r=n[62]|0;t=n[61]|0;e:while(1){e=t+2|0;if(t>>>0>=r>>>0){t=6;break}switch(a[e>>1]|0){case 13:case 10:{t=6;break e}case 93:{t=7;break e}case 92:{e=t+4|0;break}default:{}}t=e}if((t|0)==6){n[61]=e;L();e=0}else if((t|0)==7){n[61]=e;e=93}return e|0}function C(e,t){e=e|0;t=t|0;var r=0,s=0;r=n[61]|0;s=a[r>>1]|0;if(s<<16>>16==97){n[61]=r+4;r=w(1)|0;e=n[61]|0;if(N(r)|0){d(r);t=(n[61]|0)+2|0;n[61]=t}else{E(r)|0;t=n[61]|0}s=w(1)|0;r=n[61]|0}if((r|0)!=(e|0))B(e,t);return s|0}function g(){var e=0,t=0,r=0;e:while(1){e=n[61]|0;t=e+2|0;n[61]=t;if(e>>>0>=(n[62]|0)>>>0){r=7;break}switch(a[t>>1]|0){case 13:case 10:{r=7;break e}case 47:break e;case 91:{A()|0;break}case 92:{n[61]=e+4;break}default:{}}}if((r|0)==7)L();return}function p(e){e=e|0;switch(a[e>>1]|0){case 62:{e=(a[e+-2>>1]|0)==61;break}case 41:case 59:{e=1;break}case 104:{e=S(e+-2|0,160,4)|0;break}case 121:{e=S(e+-2|0,168,6)|0;break}case 101:{e=S(e+-2|0,180,3)|0;break}default:e=0}return e|0}function y(e){e=e|0;var t=0,r=0,s=0,i=0,c=0;i=(n[61]|0)+2|0;n[61]=i;r=n[62]|0;while(1){t=i+2|0;if(i>>>0>=r>>>0)break;s=a[t>>1]|0;if(!e?T(s)|0:0)break;if(s<<16>>16==42?(a[i+4>>1]|0)==47:0){c=8;break}i=t}if((c|0)==8){n[61]=t;t=i+4|0}n[61]=t;return}function m(e,t,r){e=e|0;t=t|0;r=r|0;var a=0,n=0;e:do{if(!r)e=0;else{while(1){a=s[e>>0]|0;n=s[t>>0]|0;if(a<<24>>24!=n<<24>>24)break;r=r+-1|0;if(!r){e=0;break e}else{e=e+1|0;t=t+1|0}}e=(a&255)-(n&255)|0}}while(0);return e|0}function I(e){e=e|0;e:do{switch(e<<16>>16){case 38:case 37:case 33:{e=1;break}default:if((e&-8)<<16>>16==40|(e+-58&65535)<6)e=1;else{switch(e<<16>>16){case 91:case 93:case 94:{e=1;break e}default:{}}e=(e+-123&65535)<4}}}while(0);return e|0}function U(e){e=e|0;e:do{switch(e<<16>>16){case 38:case 37:case 33:break;default:if(!((e+-58&65535)<6|(e+-40&65535)<7&e<<16>>16!=41)){switch(e<<16>>16){case 91:case 94:break e;default:{}}return e<<16>>16!=125&(e+-123&65535)<4|0}}}while(0);return 1}function x(e){e=e|0;var t=0,r=0,s=0,i=0;r=f;f=f+16|0;s=r;n[s>>2]=0;n[54]=e;t=n[3]|0;i=t+(e<<1)|0;e=i+2|0;a[i>>1]=0;n[s>>2]=e;n[55]=e;n[47]=0;n[51]=0;n[49]=0;n[48]=0;n[53]=0;n[50]=0;f=r;return t|0}function S(e,t,r){e=e|0;t=t|0;r=r|0;var s=0,i=0;s=e+(0-r<<1)|0;i=s+2|0;e=n[3]|0;if(i>>>0>=e>>>0?(m(i,t,r<<1)|0)==0:0)if((i|0)==(e|0))e=1;else e=$(a[s>>1]|0)|0;else e=0;return e|0}function O(e,t){e=e|0;t=t|0;var r=0;r=n[3]|0;if(r>>>0<=e>>>0?(a[e>>1]|0)==t<<16>>16:0)if((r|0)==(e|0))r=1;else r=$(a[e+-2>>1]|0)|0;else r=0;return r|0}function $(e){e=e|0;e:do{if((e+-9&65535)<5)e=1;else{switch(e<<16>>16){case 32:case 160:{e=1;break e}default:{}}e=e<<16>>16!=46&(I(e)|0)}}while(0);return e|0}function j(){var e=0,t=0,r=0;e=n[62]|0;r=n[61]|0;e:while(1){t=r+2|0;if(r>>>0>=e>>>0)break;switch(a[t>>1]|0){case 13:case 10:break e;default:r=t}}n[61]=t;return}function B(e,t){e=e|0;t=t|0;var r=0,s=0;r=n[55]|0;n[55]=r+12;s=n[53]|0;n[((s|0)==0?192:s+8|0)>>2]=r;n[53]=r;n[r>>2]=e;n[r+4>>2]=t;n[r+8>>2]=0;return}function E(e){e=e|0;while(1){if(M(e)|0)break;if(I(e)|0)break;e=(n[61]|0)+2|0;n[61]=e;e=a[e>>1]|0;if(!(e<<16>>16)){e=0;break}}return e|0}function P(){var e=0;e=n[(n[49]|0)+20>>2]|0;switch(e|0){case 1:{e=-1;break}case 2:{e=-2;break}default:e=e-(n[3]|0)>>1}return e|0}function q(e){e=e|0;if(!(S(e,140,5)|0)?!(S(e,150,3)|0):0)e=S(e,156,2)|0;else e=1;return e|0}function z(e){e=e|0;switch(e<<16>>16){case 160:case 32:case 12:case 11:case 9:{e=1;break}default:e=0}return e|0}function D(e){e=e|0;if((n[3]|0)==(e|0))e=1;else e=$(a[e+-2>>1]|0)|0;return e|0}function F(){var e=0;e=n[(n[49]|0)+12>>2]|0;if(!e)e=-1;else e=e-(n[3]|0)>>1;return e|0}function G(){var e=0;e=n[(n[49]|0)+16>>2]|0;if(!e)e=-1;else e=e-(n[3]|0)>>1;return e|0}function H(){var e=0;e=n[(n[49]|0)+4>>2]|0;if(!e)e=-1;else e=e-(n[3]|0)>>1;return e|0}function J(){var e=0;e=n[49]|0;e=n[((e|0)==0?188:e+28|0)>>2]|0;n[49]=e;return(e|0)!=0|0}function K(){var e=0;e=n[50]|0;e=n[((e|0)==0?192:e+8|0)>>2]|0;n[50]=e;return(e|0)!=0|0}function L(){s[762]=1;n[56]=(n[61]|0)-(n[3]|0)>>1;n[61]=(n[62]|0)+2;return}function M(e){e=e|0;return(e|128)<<16>>16==160|(e+-9&65535)<5|0}function N(e){e=e|0;return e<<16>>16==39|e<<16>>16==34|0}function Q(){return(n[(n[49]|0)+8>>2]|0)-(n[3]|0)>>1|0}function R(){return(n[(n[50]|0)+4>>2]|0)-(n[3]|0)>>1|0}function T(e){e=e|0;return e<<16>>16==13|e<<16>>16==10|0}function V(){return(n[n[49]>>2]|0)-(n[3]|0)>>1|0}function W(){return(n[n[50]>>2]|0)-(n[3]|0)>>1|0}function X(){return i[(n[49]|0)+24>>0]|0|0}function Y(e){e=e|0;n[3]=e;return}function Z(){return(s[763]|0)!=0|0}function _(){return n[56]|0}function ee(e){e=e|0;f=e+992+15&-16;return 992}return{su:ee,ai:G,e:_,ee:R,es:W,f:Z,id:P,ie:H,ip:X,is:V,p:b,re:K,ri:J,sa:x,se:F,ses:Y,ss:Q}}("undefined"!=typeof self?self:global,{},Ce),Ie=Oe.su(Ae-(2<<17))}const s=Ee.length+1;Oe.ses(Ie),Oe.sa(s-1),Me(Ee,new Uint16Array(Ce,Ie,s)),Oe.p()||(xe=Oe.e(),o());const a=[],n=[];for(;Oe.ri();){const e=Oe.is(),t=Oe.ie(),r=Oe.ai(),s=Oe.id(),n=Oe.ss(),i=Oe.se();let c;Oe.ip()&&(c=b(-1===s?e:e+1,Ee.charCodeAt(-1===s?e-1:e))),a.push({n:c,s:e,e:t,ss:n,se:i,d:s,a:r})}for(;Oe.re();){const e=Oe.es(),t=Ee.charCodeAt(e);n.push(34===t||39===t?b(e+1,t):Ee.slice(Oe.es(),Oe.ee()))}return[a,n,!!Oe.f()]}function b(e,t){xe=e;let r="",s=xe;for(;;){xe>=Ee.length&&o();const e=Ee.charCodeAt(xe);if(e===t)break;92===e?(r+=Ee.slice(s,xe),r+=k(),s=xe):(8232===e||8233===e||u(e)&&o(),++xe)}return r+=Ee.slice(s,xe++),r}function k(){let e=Ee.charCodeAt(++xe);switch(++xe,e){case 110:return"\n";case 114:return"\r";case 120:return String.fromCharCode(l(2));case 117:return function(){let e;123===Ee.charCodeAt(xe)?(++xe,e=l(Ee.indexOf("}",xe)-xe),++xe,e>1114111&&o()):e=l(4);return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10),56320+(1023&e)))}();case 116:return"\t";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:10===Ee.charCodeAt(xe)&&++xe;case 10:return"";case 56:case 57:o();default:if(e>=48&&e<=55){let t=Ee.substr(xe-1,3).match(/^[0-7]+/)[0],r=parseInt(t,8);return r>255&&(t=t.slice(0,-1),r=parseInt(t,8)),xe+=t.length-1,e=Ee.charCodeAt(xe),"0"===t&&56!==e&&57!==e||o(),String.fromCharCode(r)}return u(e)?"":String.fromCharCode(e)}}function l(e){const t=xe;let r=0,s=0;for(let t=0;t<e;++t,++xe){let e,a=Ee.charCodeAt(xe);if(95!==a){if(a>=97)e=a-97+10;else if(a>=65)e=a-65+10;else{if(!(a>=48&&a<=57))break;e=a-48}if(e>=16)break;s=a,r=16*r+e}else 95!==s&&0!==t||o(),s=a}return 95!==s&&xe-t===e||o(),r}function u(e){return 13===e||10===e}function o(){throw Object.assign(Error(`Parse error ${Pe}:${Ee.slice(0,xe).split("\n").length}:${xe-Ee.lastIndexOf("\n",xe-1)}`),{idx:xe})}async function _resolve(e,t){const r=resolveIfNotPlainOrUrl(e,t);return{r:resolveImportMap(Ne,r||e,t)||throwUnresolved(e,t),b:!r&&!isURL(e)}}const je=i?async(e,t)=>{let r=i(e,t,defaultResolve);r&&r.then&&(r=await r);return r?{r:r,b:!resolveIfNotPlainOrUrl(e,t)&&!isURL(e)}:_resolve(e,t)}:_resolve;async function importShim(e,...r){let s=r[r.length-1];"string"!==typeof s&&(s=de);await Te;n&&await n(e,"string"!==typeof r[1]?r[1]:{},s);if(De||a||!_e){t&&processImportMaps();a||(De=false)}await Be;return topLevelLoad((await je(e,s)).r,{credentials:"same-origin"})}self.importShim=importShim;function defaultResolve(e,t){return resolveImportMap(Ne,resolveIfNotPlainOrUrl(e,t)||e,t)||throwUnresolved(e,t)}function throwUnresolved(e,t){throw Error(`Unable to resolve specifier '${e}'${fromParent(t)}`)}const resolveSync=(e,t=de)=>{t=`${t}`;const r=i&&i(e,t,defaultResolve);return r&&!r.then?r:defaultResolve(e,t)};function metaResolve(e,t=this.url){return resolveSync(e,t)}importShim.resolve=resolveSync;importShim.getImportMap=()=>JSON.parse(JSON.stringify(Ne));importShim.addImportMap=e=>{if(!a)throw new Error("Unsupported in polyfill mode.");Ne=resolveAndComposeImportMap(e,de,Ne)};const Re=importShim._r={};async function loadAll(e,t){if(!e.b&&!t[e.u]){t[e.u]=1;await e.L;await Promise.all(e.d.map((e=>loadAll(e,t))));e.n||(e.n=e.d.some((e=>e.n)))}}let Ne={imports:{},scopes:{}};let _e;const Te=Le.then((()=>{_e=true!==s.polyfillEnable&&$e&&Se&&ye&&(!ue||ge)&&(!fe||ve)&&!be&&true;if(t){if(!ye){const e=HTMLScriptElement.supports||(e=>"classic"===e||"module"===e);HTMLScriptElement.supports=t=>"importmap"===t||e(t)}if(a||!_e){new MutationObserver((e=>{for(const t of e)if("childList"===t.type)for(const e of t.addedNodes)if("SCRIPT"===e.tagName){e.type===(a?"module-shim":"module")&&processScript(e);e.type===(a?"importmap-shim":"importmap")&&processImportMap(e)}else"LINK"===e.tagName&&e.rel===(a?"modulepreload-shim":"modulepreload")&&processPreload(e)})).observe(document,{childList:true,subtree:true});processImportMaps();processScriptsAndPreloads();if("complete"===document.readyState)readyStateCompleteCheck();else{async function readyListener(){await Te;processImportMaps();if("complete"===document.readyState){readyStateCompleteCheck();document.removeEventListener("readystatechange",readyListener)}}document.addEventListener("readystatechange",readyListener)}}}}));let Be=Te;let He=true;let De=true;async function topLevelLoad(e,t,r,s,i){a||(De=false);await Be;n&&await n(e,"string"!==typeof t?t:{},"");if(!a&&_e){if(s)return null;await i;return ke(r?createBlob(r):e,{errUrl:e||r})}const c=getOrCreateLoad(e,t,null,r);const f={};await loadAll(c,f);Fe=void 0;resolveDeps(c,f);await i;if(r&&!a&&!c.n&&true){const e=await ke(createBlob(r),{errUrl:r});oe&&revokeObjectURLs(Object.keys(f));return e}if(He&&!a&&c.n&&s){ne();He=false}const te=await ke(a||c.n||!s?c.b:c.u,{errUrl:c.u});c.s&&(await ke(c.s)).u$_(te);oe&&revokeObjectURLs(Object.keys(f));return te}function revokeObjectURLs(e){let t=0;const r=e.length;const s=self.requestIdleCallback?self.requestIdleCallback:self.requestAnimationFrame;s(cleanup);function cleanup(){const a=100*t;if(!(a>r)){for(const t of e.slice(a,a+100)){const e=Re[t];e&&URL.revokeObjectURL(e.b)}t++;s(cleanup)}}}function urlJsString(e){return`'${e.replace(/'/g,"\\'")}'`}let Fe;function resolveDeps(e,t){if(e.b||!t[e.u])return;t[e.u]=0;for(const i of e.d)resolveDeps(i,t);const[r]=e.a;const s=e.S;let a=pe&&Fe?`import '${Fe}';`:"";if(r.length){let c=0,te=0,re=[];function pushStringTo(t){while(re[re.length-1]<t){const t=re.pop();a+=`${s.slice(c,t)}, ${urlJsString(e.r)}`;c=t}a+=s.slice(c,t);c=t}for(const{s:se,ss:ae,se:ne,d:oe}of r)if(-1===oe){let ie=e.d[te++],ce=ie.b,le=!ce;le&&((ce=ie.s)||(ce=ie.s=createBlob(`export function u$_(m){${ie.a[1].map((e=>"default"===e?"d$_=m.default":`${e}=m.${e}`)).join(",")}}${ie.a[1].map((e=>"default"===e?"let d$_;export{d$_ as default}":`export let ${e}`)).join(";")}\n//# sourceURL=${ie.r}?cycle`)));pushStringTo(se-1);a+=`/*${s.slice(se-1,ne)}*/${urlJsString(ce)}`;if(!le&&ie.s){a+=`;import*as m$_${te} from'${ie.b}';import{u$_ as u$_${te}}from'${ie.s}';u$_${te}(m$_${te})`;ie.s=void 0}c=ne}else if(-2===oe){e.m={url:e.r,resolve:metaResolve};f(e.m,e.u);pushStringTo(se);a+=`importShim._r[${urlJsString(e.u)}].m`;c=ne}else{pushStringTo(ae+6);a+="Shim(";re.push(ne-1);c=se}pushStringTo(s.length)}else a+=s;let n=false;a=a.replace(qe,((t,r,s)=>(n=!r,t.replace(s,(()=>new URL(s,e.r))))));n||(a+="\n//# sourceURL="+e.r);e.b=Fe=createBlob(a);e.S=void 0}const qe=/\n\/\/# source(Mapping)?URL=([^\n]+)\s*((;|\/\/[^#][^\n]*)\s*)*$/;const Je=/^(text|application)\/(x-)?javascript(;|$)/;const ze=/^(text|application)\/json(;|$)/;const Ke=/^(text|application)\/css(;|$)/;const Ge=/url\(\s*(?:(["'])((?:\\.|[^\n\\"'])+)\1|((?:\\.|[^\s,"'()\\])+))\s*\)/g;let Qe=[];let Ve=0;function pushFetchPool(){if(++Ve>100)return new Promise((e=>Qe.push(e)))}function popFetchPool(){Ve--;Qe.length&&Qe.shift()()}async function doFetch(e,t,r){if(ce&&!t.integrity)throw Error(`No integrity for ${e}${fromParent(r)}.`);const s=pushFetchPool();s&&await s;try{var a=await c(e,t)}catch(t){t.message=`Unable to fetch ${e}${fromParent(r)} - see network log for details.\n`+t.message;throw t}finally{popFetchPool()}if(!a.ok)throw Error(`${a.status} ${a.statusText} ${a.url}${fromParent(r)}`);return a}async function fetchModule(e,t,r){const s=await doFetch(e,t,r);const a=s.headers.get("content-type");if(Je.test(a))return{r:s.url,s:await s.text(),t:"js"};if(ze.test(a))return{r:s.url,s:`export default ${await s.text()}`,t:"json"};if(Ke.test(a))return{r:s.url,s:`var s=new CSSStyleSheet();s.replaceSync(${JSON.stringify((await s.text()).replace(Ge,((t,r="",s,a)=>`url(${r}${resolveUrl(s||a,e)}${r})`)))});export default s;`,t:"css"};throw Error(`Unsupported Content-Type "${a}" loading ${e}${fromParent(r)}. Modules must be served with a valid MIME type like application/javascript.`)}function getOrCreateLoad(e,t,r,s){let n=Re[e];if(n&&!s)return n;n={u:e,r:s?e:void 0,f:void 0,S:void 0,L:void 0,a:void 0,d:void 0,b:void 0,s:void 0,n:false,t:null,m:null};if(Re[e]){let e=0;while(Re[n.u+ ++e]);n.u+=e}Re[n.u]=n;n.f=(async()=>{if(!s){let i;({r:n.r,s:s,t:i}=await(Ze[e]||fetchModule(e,t,r)));if(i&&!a){if("css"===i&&!fe||"json"===i&&!ue)throw Error(`${i}-modules require <script type="esms-options">{ "polyfillEnable": ["${i}-modules"] }<\/script>`);("css"===i&&!ve||"json"===i&&!ge)&&(n.n=true)}}try{n.a=parse(s,n.u)}catch(e){throwError(e);n.a=[[],[],false]}n.S=s;return n})();n.L=n.f.then((async()=>{let e=t;n.d=(await Promise.all(n.a[0].map((async({n:t,d:r})=>{(r>=0&&!$e||-2===r&&!Se)&&(n.n=true);if(-1!==r||!t)return;const{r:s,b:a}=await je(t,n.r||n.u);!a||ye&&!be||(n.n=true);if(te&&te.test(s))return{b:s};e.integrity&&(e=Object.assign({},e,{integrity:void 0}));return getOrCreateLoad(s,e,n.r).f})))).filter((e=>e))}));return n}function processScriptsAndPreloads(){for(const e of document.querySelectorAll(a?"script[type=module-shim]":"script[type=module]"))processScript(e);for(const e of document.querySelectorAll(a?"link[rel=modulepreload-shim]":"link[rel=modulepreload]"))processPreload(e)}function processImportMaps(){for(const e of document.querySelectorAll(a?'script[type="importmap-shim"]':'script[type="importmap"]'))processImportMap(e)}function getFetchOpts(e){const t={};e.integrity&&(t.integrity=e.integrity);e.referrerpolicy&&(t.referrerPolicy=e.referrerpolicy);"use-credentials"===e.crossorigin?t.credentials="include":"anonymous"===e.crossorigin?t.credentials="omit":t.credentials="same-origin";return t}let We=Promise.resolve();let Xe=1;function domContentLoadedCheck(){0!==--Xe||ie||document.dispatchEvent(new Event("DOMContentLoaded"))}t&&document.addEventListener("DOMContentLoaded",(async()=>{await Te;domContentLoadedCheck();if(a||!_e){processImportMaps();processScriptsAndPreloads()}}));let Ye=1;function readyStateCompleteCheck(){0!==--Ye||ie||document.dispatchEvent(new Event("readystatechange"))}function processImportMap(e){if(!e.ep&&(e.src||e.innerHTML)){e.ep=true;if(e.src){if(!a)return;setImportMapSrcOrLazy()}if(De){Be=Be.then((async()=>{Ne=resolveAndComposeImportMap(e.src?await(await doFetch(e.src,getFetchOpts(e))).json():JSON.parse(e.innerHTML),e.src||de,Ne)})).catch(throwError);a||(De=false)}}}function processScript(e){if(e.ep)return;if(null!==e.getAttribute("noshim"))return;if(!e.src&&!e.innerHTML)return;e.ep=true;const t=null===e.getAttribute("async")&&Ye>0;const r=Xe>0;t&&Ye++;r&&Xe++;const s=topLevelLoad(e.src||de,getFetchOpts(e),!e.src&&e.innerHTML,!a,t&&We).catch(throwError);t&&(We=s.then(readyStateCompleteCheck));r&&s.then(domContentLoadedCheck)}const Ze={};function processPreload(e){if(!e.ep){e.ep=true;Ze[e.href]||(Ze[e.href]=fetchModule(e.href,getFetchOpts(e)))}}})();
|
1
|
+
(function(){const e="undefined"!==typeof window;const t="undefined"!==typeof document;const noop=()=>{};const r=t?document.querySelector("script[type=esms-options]"):void 0;const s=r?JSON.parse(r.innerHTML):{};Object.assign(s,self.esmsInitOptions||{});let n=!t||!!s.shimMode;const a=globalHook(n&&s.onimport);const i=globalHook(n&&s.resolve);let c=s.fetch?globalHook(s.fetch):fetch;const f=s.meta?globalHook(n&&s.meta):noop;const ne=s.mapOverrides;let oe=s.nonce;if(!oe&&t){const e=document.querySelector("script[nonce]");e&&(oe=e.nonce||e.getAttribute("nonce"))}const ce=globalHook(s.onerror||noop);const le=s.onpolyfill?globalHook(s.onpolyfill):()=>{console.log("%c^^ Module TypeError above is polyfilled and can be ignored ^^","font-weight:900;color:#391")};const{revokeBlobURLs:fe,noLoadEventRetriggers:ue,enforceIntegrity:de}=s;function globalHook(e){return"string"===typeof e?self[e]:e}const pe=Array.isArray(s.polyfillEnable)?s.polyfillEnable:[];const he=pe.includes("css-modules");const be=pe.includes("json-modules");const me=!navigator.userAgentData&&!!navigator.userAgent.match(/Edge\/\d+\.\d+/);const ke=t?document.baseURI:`${location.protocol}//${location.host}${location.pathname.includes("/")?location.pathname.slice(0,location.pathname.lastIndexOf("/")+1):location.pathname}`;const createBlob=(e,t="text/javascript")=>URL.createObjectURL(new Blob([e],{type:t}));let{skip:we}=s;if(Array.isArray(we)){const e=we.map((e=>new URL(e,ke).href));we=t=>e.some((e=>"/"===e[e.length-1]&&t.startsWith(e)||t===e))}else if("string"===typeof we){const e=new RegExp(we);we=t=>e.test(t)}const eoop=e=>setTimeout((()=>{throw e}));const throwError=t=>{(self.reportError||e&&window.safari&&console.error||eoop)(t),void ce(t)};function fromParent(e){return e?` imported from ${e}`:""}let ge=false;function setImportMapSrcOrLazy(){ge=true}if(!n)if(document.querySelectorAll("script[type=module-shim],script[type=importmap-shim],link[rel=modulepreload-shim]").length)n=true;else{let e=false;for(const t of document.querySelectorAll("script[type=module],script[type=importmap]"))if(e){if("importmap"===t.type&&e){ge=true;break}}else"module"!==t.type||t.ep||(e=true)}const ve=/\\/g;function isURL(e){if(-1===e.indexOf(":"))return false;try{new URL(e);return true}catch(e){return false}}function resolveUrl(e,t){return resolveIfNotPlainOrUrl(e,t)||(isURL(e)?e:resolveIfNotPlainOrUrl("./"+e,t))}function resolveIfNotPlainOrUrl(e,t){const r=t.indexOf("#"),s=t.indexOf("?");r+s>-2&&(t=t.slice(0,-1===r?s:-1===s||s>r?r:s));-1!==e.indexOf("\\")&&(e=e.replace(ve,"/"));if("/"===e[0]&&"/"===e[1])return t.slice(0,t.indexOf(":")+1)+e;if("."===e[0]&&("/"===e[1]||"."===e[1]&&("/"===e[2]||2===e.length&&(e+="/"))||1===e.length&&(e+="/"))||"/"===e[0]){const r=t.slice(0,t.indexOf(":")+1);let s;if("/"===t[r.length+1])if("file:"!==r){s=t.slice(r.length+2);s=s.slice(s.indexOf("/")+1)}else s=t.slice(8);else s=t.slice(r.length+("/"===t[r.length]));if("/"===e[0])return t.slice(0,t.length-s.length-1)+e;const n=s.slice(0,s.lastIndexOf("/")+1)+e;const a=[];let i=-1;for(let e=0;e<n.length;e++)if(-1===i){if("."===n[e]){if("."===n[e+1]&&("/"===n[e+2]||e+2===n.length)){a.pop();e+=2;continue}if("/"===n[e+1]||e+1===n.length){e+=1;continue}}while("/"===n[e])e++;i=e}else if("/"===n[e]){a.push(n.slice(i,e+1));i=-1}-1!==i&&a.push(n.slice(i));return t.slice(0,t.length-s.length)+a.join("")}}function resolveAndComposeImportMap(e,t,r){const s={imports:Object.assign({},r.imports),scopes:Object.assign({},r.scopes)};e.imports&&resolveAndComposePackages(e.imports,s.imports,t,r);if(e.scopes)for(let n in e.scopes){const a=resolveUrl(n,t);resolveAndComposePackages(e.scopes[n],s.scopes[a]||(s.scopes[a]={}),t,r)}return s}function getMatch(e,t){if(t[e])return e;let r=e.length;do{const s=e.slice(0,r+1);if(s in t)return s}while(-1!==(r=e.lastIndexOf("/",r-1)))}function applyPackages(e,t){const r=getMatch(e,t);if(r){const s=t[r];if(null===s)return;return s+e.slice(r.length)}}function resolveImportMap(e,t,r){let s=r&&getMatch(r,e.scopes);while(s){const r=applyPackages(t,e.scopes[s]);if(r)return r;s=getMatch(s.slice(0,s.lastIndexOf("/")),e.scopes)}return applyPackages(t,e.imports)||-1!==t.indexOf(":")&&t}function resolveAndComposePackages(e,t,r,s){for(let a in e){const i=resolveIfNotPlainOrUrl(a,r)||a;if((!n||!ne)&&t[i]&&t[i]!==e[i])throw Error(`Rejected map override "${i}" from ${t[i]} to ${e[i]}.`);let c=e[a];if("string"!==typeof c)continue;const f=resolveImportMap(s,resolveIfNotPlainOrUrl(c,r)||c,r);f?t[i]=f:console.warn(`Mapping "${a}" -> "${e[a]}" does not resolve`)}}let ye=!t&&(0,eval)("u=>import(u)");let $e;const Oe=t&&new Promise((e=>{const t=Object.assign(document.createElement("script"),{src:createBlob("self._d=u=>import(u)"),ep:true});t.setAttribute("nonce",oe);t.addEventListener("load",(()=>{if(!($e=!!(ye=self._d))){let e;window.addEventListener("error",(t=>e=t));ye=(t,r)=>new Promise(((s,n)=>{const a=Object.assign(document.createElement("script"),{type:"module",src:createBlob(`import*as m from'${t}';self._esmsi=m`)});e=void 0;a.ep=true;oe&&a.setAttribute("nonce",oe);a.addEventListener("error",cb);a.addEventListener("load",cb);function cb(i){document.head.removeChild(a);if(self._esmsi){s(self._esmsi,ke);self._esmsi=void 0}else{n(!(i instanceof Event)&&i||e&&e.error||new Error(`Error loading ${r&&r.errUrl||t} (${a.src}).`));e=void 0}}document.head.appendChild(a)}))}document.head.removeChild(t);delete self._d;e()}));document.head.appendChild(t)}));let Se=false;let Le=false;const Ce=t&&HTMLScriptElement.supports;let Ae=Ce&&"supports"===Ce.name&&Ce("importmap");let xe=$e;const Ue="import.meta";const Ee='import"x"assert{type:"css"}';const Pe='import"x"assert{type:"json"}';let Ie=Promise.resolve(Oe).then((()=>{if($e)return t?new Promise((e=>{const t=document.createElement("iframe");t.style.display="none";t.setAttribute("nonce",oe);function cb({data:r}){const s=Array.isArray(r)&&"esms"===r[0];if(s){Ae=r[1];xe=r[2];Le=r[3];Se=r[4];e();document.head.removeChild(t);window.removeEventListener("message",cb,false)}}window.addEventListener("message",cb,false);const r=`<script nonce=${oe||""}>b=(s,type='text/javascript')=>URL.createObjectURL(new Blob([s],{type}));document.head.appendChild(Object.assign(document.createElement('script'),{type:'importmap',nonce:"${oe}",innerText:\`{"imports":{"x":"\${b('')}"}}\`}));Promise.all([${Ae?"true,true":`'x',b('${Ue}')`}, ${he?`b('${Ee}'.replace('x',b('','text/css')))`:"false"}, ${be?`b('${Pe}'.replace('x',b('{}','text/json')))`:"false"}].map(x =>typeof x==='string'?import(x).then(x =>!!x,()=>false):x)).then(a=>parent.postMessage(['esms'].concat(a),'*'))<\/script>`;let s=false,n=false;function doOnload(){if(!s){n=true;return}const e=t.contentDocument;if(e&&0===e.head.childNodes.length){const t=e.createElement("script");oe&&t.setAttribute("nonce",oe);t.innerHTML=r.slice(15+(oe?oe.length:0),-9);e.head.appendChild(t)}}t.onload=doOnload;document.head.appendChild(t);s=true;"srcdoc"in t?t.srcdoc=r:t.contentDocument.write(r);n&&doOnload()})):Promise.all([Ae||ye(createBlob(Ue)).then((()=>xe=true),noop),he&&ye(createBlob(Ee.replace("x",createBlob("","text/css")))).then((()=>Le=true),noop),be&&ye(createBlob(jsonModulescheck.replace("x",createBlob("{}","text/json")))).then((()=>Se=true),noop)])}));let Me,je,Te,Re=2<<19;const _e=1===new Uint8Array(new Uint16Array([1]).buffer)[0]?function(e,t){const r=e.length;let s=0;for(;s<r;)t[s]=e.charCodeAt(s++)}:function(e,t){const r=e.length;let s=0;for(;s<r;){const r=e.charCodeAt(s);t[s++]=(255&r)<<8|r>>>8}},Ne="xportmportlassetaromsyncunctionssertvoyiedelecontininstantybreareturdebuggeawaithrwhileforifcatcfinallels";let He,qe,Fe;function parse(e,t="@"){He=e,qe=t;const r=2*He.length+(2<<18);if(r>Re||!Me){for(;r>Re;)Re*=2;je=new ArrayBuffer(Re),_e(Ne,new Uint16Array(je,16,105)),Me=function(e,t,r){"use asm";var s=new e.Int8Array(r),n=new e.Int16Array(r),a=new e.Int32Array(r),i=new e.Uint8Array(r),c=new e.Uint16Array(r),f=1024;function b(){var e=0,t=0,r=0,i=0,ne=0,oe=0,ce=0;ce=f;f=f+10240|0;s[795]=1;n[395]=0;n[396]=0;a[67]=a[2];s[796]=0;a[66]=0;s[794]=0;a[68]=ce+2048;a[69]=ce;s[797]=0;e=(a[3]|0)+-2|0;a[70]=e;t=e+(a[64]<<1)|0;a[71]=t;e:while(1){r=e+2|0;a[70]=r;if(e>>>0>=t>>>0){ne=18;break}t:do{switch(n[r>>1]|0){case 9:case 10:case 11:case 12:case 13:case 32:break;case 101:{if((((n[396]|0)==0?H(r)|0:0)?(m(e+4|0,16,10)|0)==0:0)?(l(),(s[795]|0)==0):0){ne=9;break e}else ne=17;break}case 105:{if(H(r)|0?(m(e+4|0,26,10)|0)==0:0){k();ne=17}else ne=17;break}case 59:{ne=17;break}case 47:switch(n[e+4>>1]|0){case 47:{P();break t}case 42:{y(1);break t}default:{ne=16;break e}}default:{ne=16;break e}}}while(0);if((ne|0)==17){ne=0;a[67]=a[70]}e=a[70]|0;t=a[71]|0}if((ne|0)==9){e=a[70]|0;a[67]=e;ne=19}else if((ne|0)==16){s[795]=0;a[70]=e;ne=19}else if((ne|0)==18)if(!(s[794]|0)){e=r;ne=19}else e=0;do{if((ne|0)==19){e:while(1){t=e+2|0;a[70]=t;i=t;if(e>>>0>=(a[71]|0)>>>0){ne=82;break}t:do{switch(n[t>>1]|0){case 9:case 10:case 11:case 12:case 13:case 32:break;case 101:{if(((n[396]|0)==0?H(t)|0:0)?(m(e+4|0,16,10)|0)==0:0){l();ne=81}else ne=81;break}case 105:{if(H(t)|0?(m(e+4|0,26,10)|0)==0:0){k();ne=81}else ne=81;break}case 99:{if((H(t)|0?(m(e+4|0,36,8)|0)==0:0)?V(n[e+12>>1]|0)|0:0){s[797]=1;ne=81}else ne=81;break}case 40:{i=a[68]|0;t=n[396]|0;ne=t&65535;a[i+(ne<<3)>>2]=1;r=a[67]|0;n[396]=t+1<<16>>16;a[i+(ne<<3)+4>>2]=r;ne=81;break}case 41:{t=n[396]|0;if(!(t<<16>>16)){ne=36;break e}t=t+-1<<16>>16;n[396]=t;r=n[395]|0;if(r<<16>>16!=0?(oe=a[(a[69]|0)+((r&65535)+-1<<2)>>2]|0,(a[oe+20>>2]|0)==(a[(a[68]|0)+((t&65535)<<3)+4>>2]|0)):0){t=oe+4|0;if(!(a[t>>2]|0))a[t>>2]=i;a[oe+12>>2]=e+4;n[395]=r+-1<<16>>16;ne=81}else ne=81;break}case 123:{ne=a[67]|0;i=a[61]|0;e=ne;do{if((n[ne>>1]|0)==41&(i|0)!=0?(a[i+4>>2]|0)==(ne|0):0){t=a[62]|0;a[61]=t;if(!t){a[57]=0;break}else{a[t+28>>2]=0;break}}}while(0);i=a[68]|0;r=n[396]|0;ne=r&65535;a[i+(ne<<3)>>2]=(s[797]|0)==0?2:6;n[396]=r+1<<16>>16;a[i+(ne<<3)+4>>2]=e;s[797]=0;ne=81;break}case 125:{e=n[396]|0;if(!(e<<16>>16)){ne=49;break e}i=a[68]|0;ne=e+-1<<16>>16;n[396]=ne;if((a[i+((ne&65535)<<3)>>2]|0)==4){h();ne=81}else ne=81;break}case 39:{d(39);ne=81;break}case 34:{d(34);ne=81;break}case 47:switch(n[e+4>>1]|0){case 47:{P();break t}case 42:{y(1);break t}default:{e=a[67]|0;i=n[e>>1]|0;r:do{if(!(U(i)|0)){switch(i<<16>>16){case 41:if(D(a[(a[68]|0)+(c[396]<<3)+4>>2]|0)|0){ne=69;break r}else{ne=66;break r}case 125:break;default:{ne=66;break r}}t=a[68]|0;r=c[396]|0;if(!(p(a[t+(r<<3)+4>>2]|0)|0)?(a[t+(r<<3)>>2]|0)!=6:0)ne=66;else ne=69}else switch(i<<16>>16){case 46:if(((n[e+-2>>1]|0)+-48&65535)<10){ne=66;break r}else{ne=69;break r}case 43:if((n[e+-2>>1]|0)==43){ne=66;break r}else{ne=69;break r}case 45:if((n[e+-2>>1]|0)==45){ne=66;break r}else{ne=69;break r}default:{ne=69;break r}}}while(0);r:do{if((ne|0)==66){ne=0;if(!(o(e)|0)){switch(i<<16>>16){case 0:{ne=69;break r}case 47:{if(s[796]|0){ne=69;break r}break}default:{}}r=a[3]|0;t=i;do{if(e>>>0<=r>>>0)break;e=e+-2|0;a[67]=e;t=n[e>>1]|0}while(!(E(t)|0));if(F(t)|0){do{if(e>>>0<=r>>>0)break;e=e+-2|0;a[67]=e}while(F(n[e>>1]|0)|0);if(j(e)|0){g();s[796]=0;ne=81;break t}else e=1}else e=1}else ne=69}}while(0);if((ne|0)==69){g();e=0}s[796]=e;ne=81;break t}}case 96:{i=a[68]|0;r=n[396]|0;ne=r&65535;a[i+(ne<<3)+4>>2]=a[67];n[396]=r+1<<16>>16;a[i+(ne<<3)>>2]=3;h();ne=81;break}default:ne=81}}while(0);if((ne|0)==81){ne=0;a[67]=a[70]}e=a[70]|0}if((ne|0)==36){T();e=0;break}else if((ne|0)==49){T();e=0;break}else if((ne|0)==82){e=(s[794]|0)==0?(n[395]|n[396])<<16>>16==0:0;break}}}while(0);f=ce;return e|0}function l(){var e=0,t=0,r=0,i=0,c=0,f=0,ne=0,oe=0,ce=0,le=0,fe=0,ue=0,de=0,pe=0;oe=a[70]|0;ce=a[63]|0;pe=oe+12|0;a[70]=pe;r=w(1)|0;e=a[70]|0;if(!((e|0)==(pe|0)?!(I(r)|0):0))de=3;e:do{if((de|0)==3){t:do{switch(r<<16>>16){case 123:{a[70]=e+2;e=w(1)|0;r=a[70]|0;while(1){if(W(e)|0){d(e);e=(a[70]|0)+2|0;a[70]=e}else{q(e)|0;e=a[70]|0}w(1)|0;e=v(r,e)|0;if(e<<16>>16==44){a[70]=(a[70]|0)+2;e=w(1)|0}t=r;r=a[70]|0;if(e<<16>>16==125){de=15;break}if((r|0)==(t|0)){de=12;break}if(r>>>0>(a[71]|0)>>>0){de=14;break}}if((de|0)==12){T();break e}else if((de|0)==14){T();break e}else if((de|0)==15){a[70]=r+2;break t}break}case 42:{a[70]=e+2;w(1)|0;pe=a[70]|0;v(pe,pe)|0;break}default:{s[795]=0;switch(r<<16>>16){case 100:{oe=e+14|0;a[70]=oe;switch((w(1)|0)<<16>>16){case 97:{t=a[70]|0;if((m(t+2|0,56,8)|0)==0?(c=t+10|0,F(n[c>>1]|0)|0):0){a[70]=c;w(0)|0;de=22}break}case 102:{de=22;break}case 99:{t=a[70]|0;if(((m(t+2|0,36,8)|0)==0?(i=t+10|0,pe=n[i>>1]|0,V(pe)|0|pe<<16>>16==123):0)?(a[70]=i,f=w(1)|0,f<<16>>16!=123):0){ue=f;de=31}break}default:{}}r:do{if((de|0)==22?(ne=a[70]|0,(m(ne+2|0,64,14)|0)==0):0){r=ne+16|0;t=n[r>>1]|0;if(!(V(t)|0))switch(t<<16>>16){case 40:case 42:break;default:break r}a[70]=r;t=w(1)|0;if(t<<16>>16==42){a[70]=(a[70]|0)+2;t=w(1)|0}if(t<<16>>16!=40){ue=t;de=31}}}while(0);if((de|0)==31?(le=a[70]|0,q(ue)|0,fe=a[70]|0,fe>>>0>le>>>0):0){$(e,oe,le,fe);a[70]=(a[70]|0)+-2;break e}$(e,oe,0,0);a[70]=e+12;break e}case 97:{a[70]=e+10;w(0)|0;e=a[70]|0;de=35;break}case 102:{de=35;break}case 99:{if((m(e+2|0,36,8)|0)==0?(t=e+10|0,E(n[t>>1]|0)|0):0){a[70]=t;pe=w(1)|0;de=a[70]|0;q(pe)|0;pe=a[70]|0;$(de,pe,de,pe);a[70]=(a[70]|0)+-2;break e}e=e+4|0;a[70]=e;break}case 108:case 118:break;default:break e}if((de|0)==35){a[70]=e+16;e=w(1)|0;if(e<<16>>16==42){a[70]=(a[70]|0)+2;e=w(1)|0}de=a[70]|0;q(e)|0;pe=a[70]|0;$(de,pe,de,pe);a[70]=(a[70]|0)+-2;break e}e=e+4|0;a[70]=e;s[795]=0;r:while(1){a[70]=e+2;pe=w(1)|0;e=a[70]|0;switch((q(pe)|0)<<16>>16){case 91:case 123:break r;default:{}}t=a[70]|0;if((t|0)==(e|0))break e;$(e,t,e,t);if((w(1)|0)<<16>>16!=44)break;e=a[70]|0}a[70]=(a[70]|0)+-2;break e}}}while(0);pe=(w(1)|0)<<16>>16==102;e=a[70]|0;if(pe?(m(e+2|0,50,6)|0)==0:0){a[70]=e+8;u(oe,w(1)|0);e=(ce|0)==0?232:ce+16|0;while(1){e=a[e>>2]|0;if(!e)break e;a[e+12>>2]=0;a[e+8>>2]=0;e=e+16|0}}a[70]=e+-2}}while(0);return}function k(){var e=0,t=0,r=0,i=0,c=0,f=0;c=a[70]|0;e=c+12|0;a[70]=e;e:do{switch((w(1)|0)<<16>>16){case 40:{t=a[68]|0;f=n[396]|0;r=f&65535;a[t+(r<<3)>>2]=5;e=a[70]|0;n[396]=f+1<<16>>16;a[t+(r<<3)+4>>2]=e;if((n[a[67]>>1]|0)!=46){a[70]=e+2;f=w(1)|0;A(c,a[70]|0,0,e);t=a[61]|0;r=a[69]|0;c=n[395]|0;n[395]=c+1<<16>>16;a[r+((c&65535)<<2)>>2]=t;switch(f<<16>>16){case 39:{d(39);break}case 34:{d(34);break}default:{a[70]=(a[70]|0)+-2;break e}}e=(a[70]|0)+2|0;a[70]=e;switch((w(1)|0)<<16>>16){case 44:{a[70]=(a[70]|0)+2;w(1)|0;c=a[61]|0;a[c+4>>2]=e;f=a[70]|0;a[c+16>>2]=f;s[c+24>>0]=1;a[70]=f+-2;break e}case 41:{n[396]=(n[396]|0)+-1<<16>>16;f=a[61]|0;a[f+4>>2]=e;a[f+12>>2]=(a[70]|0)+2;s[f+24>>0]=1;n[395]=(n[395]|0)+-1<<16>>16;break e}default:{a[70]=(a[70]|0)+-2;break e}}}break}case 46:{a[70]=(a[70]|0)+2;if((w(1)|0)<<16>>16==109?(t=a[70]|0,(m(t+2|0,44,6)|0)==0):0){e=a[67]|0;if(!(G(e)|0)?(n[e>>1]|0)==46:0)break e;A(c,c,t+8|0,2)}break}case 42:case 39:case 34:{i=18;break}case 123:{e=a[70]|0;if(n[396]|0){a[70]=e+-2;break e}while(1){if(e>>>0>=(a[71]|0)>>>0)break;e=w(1)|0;if(!(W(e)|0)){if(e<<16>>16==125){i=33;break}}else d(e);e=(a[70]|0)+2|0;a[70]=e}if((i|0)==33)a[70]=(a[70]|0)+2;f=(w(1)|0)<<16>>16==102;e=a[70]|0;if(f?m(e+2|0,50,6)|0:0){T();break e}a[70]=e+8;e=w(1)|0;if(W(e)|0){u(c,e);break e}else{T();break e}}default:if((a[70]|0)==(e|0))a[70]=c+10;else i=18}}while(0);do{if((i|0)==18){if(n[396]|0){a[70]=(a[70]|0)+-2;break}e=a[71]|0;t=a[70]|0;while(1){if(t>>>0>=e>>>0){i=25;break}r=n[t>>1]|0;if(W(r)|0){i=23;break}f=t+2|0;a[70]=f;t=f}if((i|0)==23){u(c,r);break}else if((i|0)==25){T();break}}}while(0);return}function u(e,t){e=e|0;t=t|0;var r=0,s=0;r=(a[70]|0)+2|0;switch(t<<16>>16){case 39:{d(39);s=5;break}case 34:{d(34);s=5;break}default:T()}do{if((s|0)==5){A(e,r,a[70]|0,1);a[70]=(a[70]|0)+2;t=w(0)|0;e=t<<16>>16==97;if(e){r=a[70]|0;if(m(r+2|0,78,10)|0)s=11}else{r=a[70]|0;if(!(((t<<16>>16==119?(n[r+2>>1]|0)==105:0)?(n[r+4>>1]|0)==116:0)?(n[r+6>>1]|0)==104:0))s=11}if((s|0)==11){a[70]=r+-2;break}a[70]=r+((e?6:4)<<1);if((w(1)|0)<<16>>16!=123){a[70]=r;break}e=a[70]|0;t=e;e:while(1){a[70]=t+2;t=w(1)|0;switch(t<<16>>16){case 39:{d(39);a[70]=(a[70]|0)+2;t=w(1)|0;break}case 34:{d(34);a[70]=(a[70]|0)+2;t=w(1)|0;break}default:t=q(t)|0}if(t<<16>>16!=58){s=20;break}a[70]=(a[70]|0)+2;switch((w(1)|0)<<16>>16){case 39:{d(39);break}case 34:{d(34);break}default:{s=24;break e}}a[70]=(a[70]|0)+2;switch((w(1)|0)<<16>>16){case 125:{s=29;break e}case 44:break;default:{s=28;break e}}a[70]=(a[70]|0)+2;if((w(1)|0)<<16>>16==125){s=29;break}t=a[70]|0}if((s|0)==20){a[70]=r;break}else if((s|0)==24){a[70]=r;break}else if((s|0)==28){a[70]=r;break}else if((s|0)==29){s=a[61]|0;a[s+16>>2]=e;a[s+12>>2]=(a[70]|0)+2;break}}}while(0);return}function o(e){e=e|0;e:do{switch(n[e>>1]|0){case 100:switch(n[e+-2>>1]|0){case 105:{e=O(e+-4|0,88,2)|0;break e}case 108:{e=O(e+-4|0,92,3)|0;break e}default:{e=0;break e}}case 101:switch(n[e+-2>>1]|0){case 115:switch(n[e+-4>>1]|0){case 108:{e=B(e+-6|0,101)|0;break e}case 97:{e=B(e+-6|0,99)|0;break e}default:{e=0;break e}}case 116:{e=O(e+-4|0,98,4)|0;break e}case 117:{e=O(e+-4|0,106,6)|0;break e}default:{e=0;break e}}case 102:{if((n[e+-2>>1]|0)==111?(n[e+-4>>1]|0)==101:0)switch(n[e+-6>>1]|0){case 99:{e=O(e+-8|0,118,6)|0;break e}case 112:{e=O(e+-8|0,130,2)|0;break e}default:{e=0;break e}}else e=0;break}case 107:{e=O(e+-2|0,134,4)|0;break}case 110:{e=e+-2|0;if(B(e,105)|0)e=1;else e=O(e,142,5)|0;break}case 111:{e=B(e+-2|0,100)|0;break}case 114:{e=O(e+-2|0,152,7)|0;break}case 116:{e=O(e+-2|0,166,4)|0;break}case 119:switch(n[e+-2>>1]|0){case 101:{e=B(e+-4|0,110)|0;break e}case 111:{e=O(e+-4|0,174,3)|0;break e}default:{e=0;break e}}default:e=0}}while(0);return e|0}function h(){var e=0,t=0,r=0,s=0;t=a[71]|0;r=a[70]|0;e:while(1){e=r+2|0;if(r>>>0>=t>>>0){t=10;break}switch(n[e>>1]|0){case 96:{t=7;break e}case 36:{if((n[r+4>>1]|0)==123){t=6;break e}break}case 92:{e=r+4|0;break}default:{}}r=e}if((t|0)==6){e=r+4|0;a[70]=e;t=a[68]|0;s=n[396]|0;r=s&65535;a[t+(r<<3)>>2]=4;n[396]=s+1<<16>>16;a[t+(r<<3)+4>>2]=e}else if((t|0)==7){a[70]=e;r=a[68]|0;s=(n[396]|0)+-1<<16>>16;n[396]=s;if((a[r+((s&65535)<<3)>>2]|0)!=3)T()}else if((t|0)==10){a[70]=e;T()}return}function w(e){e=e|0;var t=0,r=0,s=0;r=a[70]|0;e:do{t=n[r>>1]|0;t:do{if(t<<16>>16!=47)if(e)if(V(t)|0)break;else break e;else if(F(t)|0)break;else break e;else switch(n[r+2>>1]|0){case 47:{P();break t}case 42:{y(e);break t}default:{t=47;break e}}}while(0);s=a[70]|0;r=s+2|0;a[70]=r}while(s>>>0<(a[71]|0)>>>0);return t|0}function d(e){e=e|0;var t=0,r=0,s=0,i=0;i=a[71]|0;t=a[70]|0;while(1){s=t+2|0;if(t>>>0>=i>>>0){t=9;break}r=n[s>>1]|0;if(r<<16>>16==e<<16>>16){t=10;break}if(r<<16>>16==92){r=t+4|0;if((n[r>>1]|0)==13){t=t+6|0;t=(n[t>>1]|0)==10?t:r}else t=r}else if(Z(r)|0){t=9;break}else t=s}if((t|0)==9){a[70]=s;T()}else if((t|0)==10)a[70]=s;return}function v(e,t){e=e|0;t=t|0;var r=0,s=0,i=0,c=0;r=a[70]|0;s=n[r>>1]|0;c=(e|0)==(t|0);i=c?0:e;c=c?0:t;if(s<<16>>16==97){a[70]=r+4;r=w(1)|0;e=a[70]|0;if(W(r)|0){d(r);t=(a[70]|0)+2|0;a[70]=t}else{q(r)|0;t=a[70]|0}s=w(1)|0;r=a[70]|0}if((r|0)!=(e|0))$(e,t,i,c);return s|0}function A(e,t,r,n){e=e|0;t=t|0;r=r|0;n=n|0;var i=0,c=0;i=a[65]|0;a[65]=i+32;c=a[61]|0;a[((c|0)==0?228:c+28|0)>>2]=i;a[62]=c;a[61]=i;a[i+8>>2]=e;if(2==(n|0))e=r;else e=1==(n|0)?r+2|0:0;a[i+12>>2]=e;a[i>>2]=t;a[i+4>>2]=r;a[i+16>>2]=0;a[i+20>>2]=n;s[i+24>>0]=1==(n|0)&1;a[i+28>>2]=0;return}function C(){var e=0,t=0,r=0;r=a[71]|0;t=a[70]|0;e:while(1){e=t+2|0;if(t>>>0>=r>>>0){t=6;break}switch(n[e>>1]|0){case 13:case 10:{t=6;break e}case 93:{t=7;break e}case 92:{e=t+4|0;break}default:{}}t=e}if((t|0)==6){a[70]=e;T();e=0}else if((t|0)==7){a[70]=e;e=93}return e|0}function g(){var e=0,t=0,r=0;e:while(1){e=a[70]|0;t=e+2|0;a[70]=t;if(e>>>0>=(a[71]|0)>>>0){r=7;break}switch(n[t>>1]|0){case 13:case 10:{r=7;break e}case 47:break e;case 91:{C()|0;break}case 92:{a[70]=e+4;break}default:{}}}if((r|0)==7)T();return}function p(e){e=e|0;switch(n[e>>1]|0){case 62:{e=(n[e+-2>>1]|0)==61;break}case 41:case 59:{e=1;break}case 104:{e=O(e+-2|0,200,4)|0;break}case 121:{e=O(e+-2|0,208,6)|0;break}case 101:{e=O(e+-2|0,220,3)|0;break}default:e=0}return e|0}function y(e){e=e|0;var t=0,r=0,s=0,i=0,c=0;i=(a[70]|0)+2|0;a[70]=i;r=a[71]|0;while(1){t=i+2|0;if(i>>>0>=r>>>0)break;s=n[t>>1]|0;if(!e?Z(s)|0:0)break;if(s<<16>>16==42?(n[i+4>>1]|0)==47:0){c=8;break}i=t}if((c|0)==8){a[70]=t;t=i+4|0}a[70]=t;return}function m(e,t,r){e=e|0;t=t|0;r=r|0;var n=0,a=0;e:do{if(!r)e=0;else{while(1){n=s[e>>0]|0;a=s[t>>0]|0;if(n<<24>>24!=a<<24>>24)break;r=r+-1|0;if(!r){e=0;break e}else{e=e+1|0;t=t+1|0}}e=(n&255)-(a&255)|0}}while(0);return e|0}function I(e){e=e|0;e:do{switch(e<<16>>16){case 38:case 37:case 33:{e=1;break}default:if((e&-8)<<16>>16==40|(e+-58&65535)<6)e=1;else{switch(e<<16>>16){case 91:case 93:case 94:{e=1;break e}default:{}}e=(e+-123&65535)<4}}}while(0);return e|0}function U(e){e=e|0;e:do{switch(e<<16>>16){case 38:case 37:case 33:break;default:if(!((e+-58&65535)<6|(e+-40&65535)<7&e<<16>>16!=41)){switch(e<<16>>16){case 91:case 94:break e;default:{}}return e<<16>>16!=125&(e+-123&65535)<4|0}}}while(0);return 1}function x(e){e=e|0;var t=0;t=n[e>>1]|0;e:do{if((t+-9&65535)>=5){switch(t<<16>>16){case 160:case 32:{t=1;break e}default:{}}if(I(t)|0)return t<<16>>16!=46|(G(e)|0)|0;else t=0}else t=1}while(0);return t|0}function S(e){e=e|0;var t=0,r=0,s=0,i=0;r=f;f=f+16|0;s=r;a[s>>2]=0;a[64]=e;t=a[3]|0;i=t+(e<<1)|0;e=i+2|0;n[i>>1]=0;a[s>>2]=e;a[65]=e;a[57]=0;a[61]=0;a[59]=0;a[58]=0;a[63]=0;a[60]=0;f=r;return t|0}function O(e,t,r){e=e|0;t=t|0;r=r|0;var s=0,n=0;s=e+(0-r<<1)|0;n=s+2|0;e=a[3]|0;if(n>>>0>=e>>>0?(m(n,t,r<<1)|0)==0:0)if((n|0)==(e|0))e=1;else e=x(s)|0;else e=0;return e|0}function $(e,t,r,s){e=e|0;t=t|0;r=r|0;s=s|0;var n=0,i=0;n=a[65]|0;a[65]=n+20;i=a[63]|0;a[((i|0)==0?232:i+16|0)>>2]=n;a[63]=n;a[n>>2]=e;a[n+4>>2]=t;a[n+8>>2]=r;a[n+12>>2]=s;a[n+16>>2]=0;return}function j(e){e=e|0;switch(n[e>>1]|0){case 107:{e=O(e+-2|0,134,4)|0;break}case 101:{if((n[e+-2>>1]|0)==117)e=O(e+-4|0,106,6)|0;else e=0;break}default:e=0}return e|0}function B(e,t){e=e|0;t=t|0;var r=0;r=a[3]|0;if(r>>>0<=e>>>0?(n[e>>1]|0)==t<<16>>16:0)if((r|0)==(e|0))r=1;else r=E(n[e+-2>>1]|0)|0;else r=0;return r|0}function E(e){e=e|0;e:do{if((e+-9&65535)<5)e=1;else{switch(e<<16>>16){case 32:case 160:{e=1;break e}default:{}}e=e<<16>>16!=46&(I(e)|0)}}while(0);return e|0}function P(){var e=0,t=0,r=0;e=a[71]|0;r=a[70]|0;e:while(1){t=r+2|0;if(r>>>0>=e>>>0)break;switch(n[t>>1]|0){case 13:case 10:break e;default:r=t}}a[70]=t;return}function q(e){e=e|0;while(1){if(V(e)|0)break;if(I(e)|0)break;e=(a[70]|0)+2|0;a[70]=e;e=n[e>>1]|0;if(!(e<<16>>16)){e=0;break}}return e|0}function z(){var e=0;e=a[(a[59]|0)+20>>2]|0;switch(e|0){case 1:{e=-1;break}case 2:{e=-2;break}default:e=e-(a[3]|0)>>1}return e|0}function D(e){e=e|0;if(!(O(e,180,5)|0)?!(O(e,190,3)|0):0)e=O(e,196,2)|0;else e=1;return e|0}function F(e){e=e|0;switch(e<<16>>16){case 160:case 32:case 12:case 11:case 9:{e=1;break}default:e=0}return e|0}function G(e){e=e|0;if((n[e>>1]|0)==46?(n[e+-2>>1]|0)==46:0)e=(n[e+-4>>1]|0)==46;else e=0;return e|0}function H(e){e=e|0;if((a[3]|0)==(e|0))e=1;else e=x(e+-2|0)|0;return e|0}function J(){var e=0;e=a[(a[60]|0)+12>>2]|0;if(!e)e=-1;else e=e-(a[3]|0)>>1;return e|0}function K(){var e=0;e=a[(a[59]|0)+12>>2]|0;if(!e)e=-1;else e=e-(a[3]|0)>>1;return e|0}function L(){var e=0;e=a[(a[60]|0)+8>>2]|0;if(!e)e=-1;else e=e-(a[3]|0)>>1;return e|0}function M(){var e=0;e=a[(a[59]|0)+16>>2]|0;if(!e)e=-1;else e=e-(a[3]|0)>>1;return e|0}function N(){var e=0;e=a[(a[59]|0)+4>>2]|0;if(!e)e=-1;else e=e-(a[3]|0)>>1;return e|0}function Q(){var e=0;e=a[59]|0;e=a[((e|0)==0?228:e+28|0)>>2]|0;a[59]=e;return(e|0)!=0|0}function R(){var e=0;e=a[60]|0;e=a[((e|0)==0?232:e+16|0)>>2]|0;a[60]=e;return(e|0)!=0|0}function T(){s[794]=1;a[66]=(a[70]|0)-(a[3]|0)>>1;a[70]=(a[71]|0)+2;return}function V(e){e=e|0;return(e|128)<<16>>16==160|(e+-9&65535)<5|0}function W(e){e=e|0;return e<<16>>16==39|e<<16>>16==34|0}function X(){return(a[(a[59]|0)+8>>2]|0)-(a[3]|0)>>1|0}function Y(){return(a[(a[60]|0)+4>>2]|0)-(a[3]|0)>>1|0}function Z(e){e=e|0;return e<<16>>16==13|e<<16>>16==10|0}function _(){return(a[a[59]>>2]|0)-(a[3]|0)>>1|0}function ee(){return(a[a[60]>>2]|0)-(a[3]|0)>>1|0}function ae(){return i[(a[59]|0)+24>>0]|0|0}function re(e){e=e|0;a[3]=e;return}function ie(){return(s[795]|0)!=0|0}function se(){return a[66]|0}function te(e){e=e|0;f=e+992+15&-16;return 992}return{su:te,ai:M,e:se,ee:Y,ele:J,els:L,es:ee,f:ie,id:z,ie:N,ip:ae,is:_,p:b,re:R,ri:Q,sa:S,se:K,ses:re,ss:X}}("undefined"!=typeof self?self:global,{},je),Te=Me.su(Re-(2<<17))}const s=He.length+1;Me.ses(Te),Me.sa(s-1),_e(He,new Uint16Array(je,Te,s)),Me.p()||(Fe=Me.e(),o());const n=[],a=[];for(;Me.ri();){const e=Me.is(),t=Me.ie(),r=Me.ai(),s=Me.id(),a=Me.ss(),i=Me.se();let c;Me.ip()&&(c=b(-1===s?e:e+1,He.charCodeAt(-1===s?e-1:e))),n.push({n:c,s:e,e:t,ss:a,se:i,d:s,a:r})}for(;Me.re();){const e=Me.es(),t=Me.ee(),r=Me.els(),s=Me.ele(),n=He.charCodeAt(e),i=r>=0?He.charCodeAt(r):-1;a.push({s:e,e:t,ls:r,le:s,n:34===n||39===n?b(e+1,n):He.slice(e,t),ln:r<0?void 0:34===i||39===i?b(r+1,i):He.slice(r,s)})}return[n,a,!!Me.f()]}function b(e,t){Fe=e;let r="",s=Fe;for(;;){Fe>=He.length&&o();const e=He.charCodeAt(Fe);if(e===t)break;92===e?(r+=He.slice(s,Fe),r+=l(),s=Fe):(8232===e||8233===e||u(e)&&o(),++Fe)}return r+=He.slice(s,Fe++),r}function l(){let e=He.charCodeAt(++Fe);switch(++Fe,e){case 110:return"\n";case 114:return"\r";case 120:return String.fromCharCode(k(2));case 117:return function(){const e=He.charCodeAt(Fe);let t;123===e?(++Fe,t=k(He.indexOf("}",Fe)-Fe),++Fe,t>1114111&&o()):t=k(4);return t<=65535?String.fromCharCode(t):(t-=65536,String.fromCharCode(55296+(t>>10),56320+(1023&t)))}();case 116:return"\t";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:10===He.charCodeAt(Fe)&&++Fe;case 10:return"";case 56:case 57:o();default:if(e>=48&&e<=55){let t=He.substr(Fe-1,3).match(/^[0-7]+/)[0],r=parseInt(t,8);return r>255&&(t=t.slice(0,-1),r=parseInt(t,8)),Fe+=t.length-1,e=He.charCodeAt(Fe),"0"===t&&56!==e&&57!==e||o(),String.fromCharCode(r)}return u(e)?"":String.fromCharCode(e)}}function k(e){const t=Fe;let r=0,s=0;for(let t=0;t<e;++t,++Fe){let e,n=He.charCodeAt(Fe);if(95!==n){if(n>=97)e=n-97+10;else if(n>=65)e=n-65+10;else{if(!(n>=48&&n<=57))break;e=n-48}if(e>=16)break;s=n,r=16*r+e}else 95!==s&&0!==t||o(),s=n}return 95!==s&&Fe-t===e||o(),r}function u(e){return 13===e||10===e}function o(){throw Object.assign(Error(`Parse error ${qe}:${He.slice(0,Fe).split("\n").length}:${Fe-He.lastIndexOf("\n",Fe-1)}`),{idx:Fe})}async function _resolve(e,t){const r=resolveIfNotPlainOrUrl(e,t);return{r:resolveImportMap(De,r||e,t)||throwUnresolved(e,t),b:!r&&!isURL(e)}}const Je=i?async(e,t)=>{let r=i(e,t,defaultResolve);r&&r.then&&(r=await r);return r?{r:r,b:!resolveIfNotPlainOrUrl(e,t)&&!isURL(e)}:_resolve(e,t)}:_resolve;async function importShim(e,...r){let s=r[r.length-1];"string"!==typeof s&&(s=ke);await Ve;a&&await a(e,"string"!==typeof r[1]?r[1]:{},s);if(Ke||n||!We){t&&processScriptsAndPreloads(true);n||(Ke=false)}await ze;return topLevelLoad((await Je(e,s)).r,{credentials:"same-origin"})}self.importShim=importShim;function defaultResolve(e,t){return resolveImportMap(De,resolveIfNotPlainOrUrl(e,t)||e,t)||throwUnresolved(e,t)}function throwUnresolved(e,t){throw Error(`Unable to resolve specifier '${e}'${fromParent(t)}`)}const resolveSync=(e,t=ke)=>{t=`${t}`;const r=i&&i(e,t,defaultResolve);return r&&!r.then?r:defaultResolve(e,t)};function metaResolve(e,t=this.url){return resolveSync(e,t)}importShim.resolve=resolveSync;importShim.getImportMap=()=>JSON.parse(JSON.stringify(De));importShim.addImportMap=e=>{if(!n)throw new Error("Unsupported in polyfill mode.");De=resolveAndComposeImportMap(e,ke,De)};const Be=importShim._r={};async function loadAll(e,t){if(!e.b&&!t[e.u]){t[e.u]=1;await e.L;await Promise.all(e.d.map((e=>loadAll(e,t))));e.n||(e.n=e.d.some((e=>e.n)))}}let De={imports:{},scopes:{}};let We;const Ve=Ie.then((()=>{We=true!==s.polyfillEnable&&$e&&xe&&Ae&&(!be||Se)&&(!he||Le)&&!ge;if(t){if(!Ae){const e=HTMLScriptElement.supports||(e=>"classic"===e||"module"===e);HTMLScriptElement.supports=t=>"importmap"===t||e(t)}if(n||!We){new MutationObserver((e=>{for(const t of e)if("childList"===t.type)for(const e of t.addedNodes)if("SCRIPT"===e.tagName){e.type===(n?"module-shim":"module")&&processScript(e,true);e.type===(n?"importmap-shim":"importmap")&&processImportMap(e,true)}else"LINK"===e.tagName&&e.rel===(n?"modulepreload-shim":"modulepreload")&&processPreload(e)})).observe(document,{childList:true,subtree:true});processScriptsAndPreloads();if("complete"===document.readyState)readyStateCompleteCheck();else{async function readyListener(){await Ve;processScriptsAndPreloads();if("complete"===document.readyState){readyStateCompleteCheck();document.removeEventListener("readystatechange",readyListener)}}document.addEventListener("readystatechange",readyListener)}}}}));let ze=Ve;let Ge=true;let Ke=true;async function topLevelLoad(e,t,r,s,i){n||(Ke=false);await Ve;await ze;a&&await a(e,"string"!==typeof t?t:{},"");if(!n&&We){if(s)return null;await i;return ye(r?createBlob(r):e,{errUrl:e||r})}const c=getOrCreateLoad(e,t,null,r);const f={};await loadAll(c,f);Ze=void 0;resolveDeps(c,f);await i;if(r&&!n&&!c.n){if(s)return;fe&&revokeObjectURLs(Object.keys(f));return await ye(createBlob(r),{errUrl:r})}if(Ge&&!n&&c.n&&s){le();Ge=false}const ne=await ye(n||c.n||!s?c.b:c.u,{errUrl:c.u});c.s&&(await ye(c.s)).u$_(ne);fe&&revokeObjectURLs(Object.keys(f));return ne}function revokeObjectURLs(e){let t=0;const r=e.length;const s=self.requestIdleCallback?self.requestIdleCallback:self.requestAnimationFrame;s(cleanup);function cleanup(){const n=100*t;if(!(n>r)){for(const t of e.slice(n,n+100)){const e=Be[t];e&&URL.revokeObjectURL(e.b)}t++;s(cleanup)}}}function urlJsString(e){return`'${e.replace(/'/g,"\\'")}'`}let Ze;function resolveDeps(e,t){if(e.b||!t[e.u])return;t[e.u]=0;for(const c of e.d)resolveDeps(c,t);const[r,s]=e.a;const n=e.S;let a=me&&Ze?`import '${Ze}';`:"";if(r.length){let ne=0,oe=0,ce=[];function pushStringTo(t){while(ce[ce.length-1]<t){const t=ce.pop();a+=`${n.slice(ne,t)}, ${urlJsString(e.r)}`;ne=t}a+=n.slice(ne,t);ne=t}for(const{s:le,ss:fe,se:ue,d:de}of r)if(-1===de){let pe=e.d[oe++],he=pe.b,be=!he;be&&((he=pe.s)||(he=pe.s=createBlob(`export function u$_(m){${pe.a[1].map((({s:e,e:t},r)=>{const s='"'===pe.S[e]||"'"===pe.S[e];return`e$_${r}=m${s?"[":"."}${pe.S.slice(e,t)}${s?"]":""}`})).join(",")}}${pe.a[1].length?`let ${pe.a[1].map(((e,t)=>`e$_${t}`)).join(",")};`:""}export {${pe.a[1].map((({s:e,e:t},r)=>`e$_${r} as ${pe.S.slice(e,t)}`)).join(",")}}\n//# sourceURL=${pe.r}?cycle`)));pushStringTo(le-1);a+=`/*${n.slice(le-1,ue)}*/${urlJsString(he)}`;if(!be&&pe.s){a+=`;import*as m$_${oe} from'${pe.b}';import{u$_ as u$_${oe}}from'${pe.s}';u$_${oe}(m$_${oe})`;pe.s=void 0}ne=ue}else if(-2===de){e.m={url:e.r,resolve:metaResolve};f(e.m,e.u);pushStringTo(le);a+=`importShim._r[${urlJsString(e.u)}].m`;ne=ue}else{pushStringTo(fe+6);a+="Shim(";ce.push(ue-1);ne=le}e.s&&(a+=`\n;import{u$_}from'${e.s}';try{u$_({${s.filter((e=>e.ln)).map((({s:e,e:t,ln:r})=>`${n.slice(e,t)}:${r}`)).join(",")}})}catch(_){};\n`);pushStringTo(n.length)}else a+=n;let i=false;a=a.replace(Qe,((t,r,s)=>(i=!r,t.replace(s,(()=>new URL(s,e.r))))));i||(a+="\n//# sourceURL="+e.r);e.b=Ze=createBlob(a);e.S=void 0}const Qe=/\n\/\/# source(Mapping)?URL=([^\n]+)\s*((;|\/\/[^#][^\n]*)\s*)*$/;const Xe=/^(text|application)\/(x-)?javascript(;|$)/;const Ye=/^(text|application)\/json(;|$)/;const et=/^(text|application)\/css(;|$)/;const tt=/url\(\s*(?:(["'])((?:\\.|[^\n\\"'])+)\1|((?:\\.|[^\s,"'()\\])+))\s*\)/g;let rt=[];let st=0;function pushFetchPool(){if(++st>100)return new Promise((e=>rt.push(e)))}function popFetchPool(){st--;rt.length&&rt.shift()()}async function doFetch(e,t,r){if(de&&!t.integrity)throw Error(`No integrity for ${e}${fromParent(r)}.`);const s=pushFetchPool();s&&await s;try{var n=await c(e,t)}catch(t){t.message=`Unable to fetch ${e}${fromParent(r)} - see network log for details.\n`+t.message;throw t}finally{popFetchPool()}if(!n.ok)throw Error(`${n.status} ${n.statusText} ${n.url}${fromParent(r)}`);return n}async function fetchModule(e,t,r){const s=await doFetch(e,t,r);const n=s.headers.get("content-type");if(Xe.test(n))return{r:s.url,s:await s.text(),t:"js"};if(Ye.test(n))return{r:s.url,s:`export default ${await s.text()}`,t:"json"};if(et.test(n))return{r:s.url,s:`var s=new CSSStyleSheet();s.replaceSync(${JSON.stringify((await s.text()).replace(tt,((t,r="",s,n)=>`url(${r}${resolveUrl(s||n,e)}${r})`)))});export default s;`,t:"css"};throw Error(`Unsupported Content-Type "${n}" loading ${e}${fromParent(r)}. Modules must be served with a valid MIME type like application/javascript.`)}function getOrCreateLoad(e,t,r,s){let a=Be[e];if(a&&!s)return a;a={u:e,r:s?e:void 0,f:void 0,S:void 0,L:void 0,a:void 0,d:void 0,b:void 0,s:void 0,n:false,t:null,m:null};if(Be[e]){let e=0;while(Be[a.u+ ++e]);a.u+=e}Be[a.u]=a;a.f=(async()=>{if(!s){let i;({r:a.r,s:s,t:i}=await(ot[e]||fetchModule(e,t,r)));if(i&&!n){if("css"===i&&!he||"json"===i&&!be)throw Error(`${i}-modules require <script type="esms-options">{ "polyfillEnable": ["${i}-modules"] }<\/script>`);("css"===i&&!Le||"json"===i&&!Se)&&(a.n=true)}}try{a.a=parse(s,a.u)}catch(e){throwError(e);a.a=[[],[],false]}a.S=s;return a})();a.L=a.f.then((async()=>{let e=t;a.d=(await Promise.all(a.a[0].map((async({n:t,d:r})=>{(r>=0&&!$e||-2===r&&!xe)&&(a.n=true);if(-1!==r||!t)return;const{r:s,b:n}=await Je(t,a.r||a.u);!n||Ae&&!ge||(a.n=true);if(-1===r){if(we&&we(s))return{b:s};e.integrity&&(e=Object.assign({},e,{integrity:void 0}));return getOrCreateLoad(s,e,a.r).f}})))).filter((e=>e))}));return a}function processScriptsAndPreloads(e=false){if(!e)for(const e of document.querySelectorAll(n?"link[rel=modulepreload-shim]":"link[rel=modulepreload]"))processPreload(e);for(const e of document.querySelectorAll(n?"script[type=importmap-shim]":"script[type=importmap]"))processImportMap(e);if(!e)for(const e of document.querySelectorAll(n?"script[type=module-shim]":"script[type=module]"))processScript(e)}function getFetchOpts(e){const t={};e.integrity&&(t.integrity=e.integrity);e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy);"use-credentials"===e.crossOrigin?t.credentials="include":"anonymous"===e.crossOrigin?t.credentials="omit":t.credentials="same-origin";return t}let nt=Promise.resolve();let at=1;function domContentLoadedCheck(){0!==--at||ue||!n&&We||document.dispatchEvent(new Event("DOMContentLoaded"))}t&&document.addEventListener("DOMContentLoaded",(async()=>{await Ve;domContentLoadedCheck()}));let it=1;function readyStateCompleteCheck(){0!==--it||ue||!n&&We||document.dispatchEvent(new Event("readystatechange"))}const hasNext=e=>e.nextSibling||e.parentNode&&hasNext(e.parentNode);const epCheck=(e,t)=>e.ep||!t&&(!e.src&&!e.innerHTML||!hasNext(e))||null!==e.getAttribute("noshim")||!(e.ep=true);function processImportMap(e,t=it>0){if(!epCheck(e,t)){if(e.src){if(!n)return;setImportMapSrcOrLazy()}if(Ke){ze=ze.then((async()=>{De=resolveAndComposeImportMap(e.src?await(await doFetch(e.src,getFetchOpts(e))).json():JSON.parse(e.innerHTML),e.src||ke,De)})).catch((t=>{console.log(t);t instanceof SyntaxError&&(t=new Error(`Unable to parse import map ${t.message} in: ${e.src||e.innerHTML}`));throwError(t)}));n||(Ke=false)}}}function processScript(e,t=it>0){if(epCheck(e,t))return;const r=null===e.getAttribute("async")&&it>0;const s=at>0;r&&it++;s&&at++;const a=topLevelLoad(e.src||ke,getFetchOpts(e),!e.src&&e.innerHTML,!n,r&&nt).then((()=>{n&&e.dispatchEvent(new Event("load"))})).catch(throwError);r&&(nt=a.then(readyStateCompleteCheck));s&&a.then(domContentLoadedCheck)}const ot={};function processPreload(e){if(!e.ep){e.ep=true;ot[e.href]||(ot[e.href]=fetchModule(e.href,getFetchOpts(e)))}}})();
|
2
2
|
|
3
|
-
//# sourceMappingURL=es-module-shims.js.map
|
3
|
+
//# sourceMappingURL=es-module-shims.js.map
|
@@ -20,8 +20,8 @@ module Importmap::ImportmapTagsHelper
|
|
20
20
|
# Configure es-modules-shim with nonce support if the application is using a content security policy.
|
21
21
|
def javascript_importmap_shim_nonce_configuration_tag
|
22
22
|
if request&.content_security_policy
|
23
|
-
tag.script({ nonce: content_security_policy_nonce }.to_json.html_safe,
|
24
|
-
type: "esms-options", nonce: content_security_policy_nonce)
|
23
|
+
tag.script({ nonce: request.content_security_policy_nonce }.to_json.html_safe,
|
24
|
+
type: "esms-options", nonce: request.content_security_policy_nonce)
|
25
25
|
end
|
26
26
|
end
|
27
27
|
|
data/lib/importmap/packager.rb
CHANGED
@@ -48,7 +48,7 @@ class Importmap::Packager
|
|
48
48
|
end
|
49
49
|
|
50
50
|
def packaged?(package)
|
51
|
-
importmap.match(/^pin "#{package}".*$/)
|
51
|
+
importmap.match(/^pin ["']#{package}["'].*$/)
|
52
52
|
end
|
53
53
|
|
54
54
|
def download(package, url)
|
@@ -102,7 +102,7 @@ class Importmap::Packager
|
|
102
102
|
|
103
103
|
def remove_package_from_importmap(package)
|
104
104
|
all_lines = File.readlines(@importmap_path)
|
105
|
-
with_lines_removed = all_lines.
|
105
|
+
with_lines_removed = all_lines.grep_v(/pin ["']#{package}["']/)
|
106
106
|
|
107
107
|
File.open(@importmap_path, "w") do |file|
|
108
108
|
with_lines_removed.each { |line| file.write(line) }
|
data/lib/importmap/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: importmap-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Heinemeier Hansson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-04-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|
@@ -85,7 +85,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
85
85
|
- !ruby/object:Gem::Version
|
86
86
|
version: '0'
|
87
87
|
requirements: []
|
88
|
-
rubygems_version: 3.
|
88
|
+
rubygems_version: 3.4.6
|
89
89
|
signing_key:
|
90
90
|
specification_version: 4
|
91
91
|
summary: Use ESM with importmap to manage modern JavaScript in Rails without transpiling
|