var Qr=Object.create;var me=Object.defineProperty;var Yr=Object.getOwnPropertyDescriptor;var eo=Object.getOwnPropertyNames;var to=Object.getPrototypeOf,ro=Object.prototype.hasOwnProperty;var oo=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var so=(e,t,r,c)=>{if(t&&typeof t=="object"||typeof t=="function")for(let l of eo(t))!ro.call(e,l)&&l!==r&&me(e,l,{get:()=>t[l],enumerable:!(c=Yr(t,l))||c.enumerable});return e};var no=(e,t,r)=>(r=e!=null?Qr(to(e)):{},so(t||!e||!e.__esModule?me(r,"default",{value:e,enumerable:!0}):r,e));var ut=oo((ba,J)=>{var Uo=function(){var e=String.fromCharCode,t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",c={};function l(s,a){if(!c[s]){c[s]={};for(var g=0;g>>8,g[u*2+1]=S%256}return g},decompressFromUint8Array:function(s){if(s==null)return m.decompress(s);for(var a=new Array(s.length/2),g=0,u=a.length;g>1}else{for(d=1,u=0;u>1}L--,L==0&&(L=Math.pow(2,f),f++),delete w[b]}else for(d=S[b],u=0;u>1;L--,L==0&&(L=Math.pow(2,f),f++),S[j]=v++,b=String(E)}if(b!==""){if(Object.prototype.hasOwnProperty.call(w,b)){if(b.charCodeAt(0)<256){for(u=0;u>1}else{for(d=1,u=0;u>1}L--,L==0&&(L=Math.pow(2,f),f++),delete w[b]}else for(d=S[b],u=0;u>1;L--,L==0&&(L=Math.pow(2,f),f++)}for(d=2,u=0;u>1;for(;;)if(n=n<<1,i==a-1){T.push(g(n));break}else i++;return T.join("")},decompress:function(s){return s==null?"":s==""?null:m._decompress(s.length,32768,function(a){return s.charCodeAt(a)})},_decompress:function(s,a,g){var u=[],d,S=4,w=4,E=3,j="",b=[],L,v,f,T,n,i,M,h={val:g(0),position:a,index:1};for(L=0;L<3;L+=1)u[L]=L;for(f=0,n=Math.pow(2,2),i=1;i!=n;)T=h.val&h.position,h.position>>=1,h.position==0&&(h.position=a,h.val=g(h.index++)),f|=(T>0?1:0)*i,i<<=1;switch(d=f){case 0:for(f=0,n=Math.pow(2,8),i=1;i!=n;)T=h.val&h.position,h.position>>=1,h.position==0&&(h.position=a,h.val=g(h.index++)),f|=(T>0?1:0)*i,i<<=1;M=e(f);break;case 1:for(f=0,n=Math.pow(2,16),i=1;i!=n;)T=h.val&h.position,h.position>>=1,h.position==0&&(h.position=a,h.val=g(h.index++)),f|=(T>0?1:0)*i,i<<=1;M=e(f);break;case 2:return""}for(u[3]=M,v=M,b.push(M);;){if(h.index>s)return"";for(f=0,n=Math.pow(2,E),i=1;i!=n;)T=h.val&h.position,h.position>>=1,h.position==0&&(h.position=a,h.val=g(h.index++)),f|=(T>0?1:0)*i,i<<=1;switch(M=f){case 0:for(f=0,n=Math.pow(2,8),i=1;i!=n;)T=h.val&h.position,h.position>>=1,h.position==0&&(h.position=a,h.val=g(h.index++)),f|=(T>0?1:0)*i,i<<=1;u[w++]=e(f),M=w-1,S--;break;case 1:for(f=0,n=Math.pow(2,16),i=1;i!=n;)T=h.val&h.position,h.position>>=1,h.position==0&&(h.position=a,h.val=g(h.index++)),f|=(T>0?1:0)*i,i<<=1;u[w++]=e(f),M=w-1,S--;break;case 2:return b.join("")}if(S==0&&(S=Math.pow(2,E),E++),u[M])j=u[M];else if(M===w)j=v+v.charAt(0);else return null;b.push(j),u[w++]=v+j.charAt(0),S--,v=j,S==0&&(S=Math.pow(2,E),E++)}}};return m}();typeof J<"u"&&J!=null&&(J.exports=Uo)});var z=(e,t=!0)=>e.replace(/\\/g,t?"\\\\":"\\").replace(/`/g,"\\`").replace(/<\/script>/g,"<\\/script>");var K=()=>{let e=!1,t=navigator.userAgent.toLowerCase();return function(r){(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(r)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(r.substr(0,4)))&&(e=!0)}(t||navigator.vendor||window.opera),e};var ue=e=>{if("clipboard"in navigator)return navigator.clipboard.writeText(e);if(document.queryCommandSupported&&document.queryCommandSupported("copy")){let t=document.createElement("textarea");t.textContent=e,t.style.position="fixed",document.body.appendChild(t),t.select();try{return document.execCommand("copy")}catch(r){return console.warn("Copy to clipboard failed.",r),!1}finally{document.body.removeChild(t)}}return!1};var V=(e,t)=>new Promise((r,c)=>{if(t&&globalThis[t])return r(globalThis[t]);if(typeof globalThis.importScripts=="function")return globalThis.importScripts(e),t&&globalThis[t]?r(globalThis[t]):r(globalThis);let l=document.createElement("script");l.src=e,l.async=!0;let m=()=>{l.removeEventListener("load",s),l.removeEventListener("error",a)},s=()=>{if(m(),!t)return r("loaded: "+e);let g=setInterval(()=>{if(window[t])return clearInterval(g),r(window[t])},5)},a=()=>{m(),c("failed to load: "+e)};l.addEventListener("load",s),l.addEventListener("error",a),document.head.appendChild(l)});var y=(e,t)=>({...t.customSettings[e]});var de={APP_VERSION:"46",SDK_VERSION:"0.11.1",COMMIT_SHA:"43f0982",REPO_URL:"https://github.com/live-codes/livecodes",DOCS_BASE_URL:"/docs/"};var ge='';var fe='';var ye=e=>Object.entries(de).reduce((t,[r,c])=>t.replace(new RegExp(`{{${r}}}`,"g"),c),e);var xe=ye(ge),he=ye(fe);var Le=["esm.sh","skypack","esm.run","jsdelivr.esm","fastly.jsdelivr.esm","gcore.jsdelivr.esm","testingcf.jsdelivr.esm","jsdelivr.b-cdn.esm","jspm"],be=["jsdelivr","fastly.jsdelivr","unpkg","gcore.jsdelivr","testingcf.jsdelivr","jsdelivr.b-cdn","npmcdn"],ve=["jsdelivr.gh","fastly.jsdelivr.gh","statically","gcore.jsdelivr.gh","testingcf.jsdelivr.gh","jsdelivr.b-cdn.gh"],k={getModuleUrl:(e,{isModule:t=!0,defaultCDN:r="esm.sh",external:c}={})=>{e=e.replace(/#nobundle/g,"");let l=s=>!c||!s.includes("https://esm.sh")?s:s.includes("?")?`${s}&external=${c}`:`${s}?external=${c}`,m=Se(e,t,r);return m?l(m):t?l("https://esm.sh/"+e):"https://cdn.jsdelivr.net/npm/"+e},getUrl:(e,t)=>e.startsWith("http")||e.startsWith("data:")?e:Se(e,!1,t||we())||e,cdnLists:{npm:be,module:Le,gh:ve},checkCDNs:async(e,t)=>{let r=[t,...k.cdnLists.npm].filter(Boolean);for(let c of r)try{if((await fetch(k.getUrl(e,c),{method:"HEAD"})).ok)return c}catch{}return k.cdnLists.npm[0]}},we=()=>{if(globalThis.appCDN)return globalThis.appCDN;try{return new URL(location.href).searchParams.get("appCDN")||k.cdnLists.npm[0]}catch{return k.cdnLists.npm[0]}},Se=(e,t,r)=>{let c=t&&e.startsWith("unpkg:")?"?module":"";e.startsWith("gh:")?e=e.replace("gh",ve[0]):e.includes(":")||(e=(r||(t?Le[0]:be[0]))+":"+e);for(let l of co){let[m,s]=l;if(m.test(e))return e.replace(m,s)+c}return null},co=[[/^(esm\.sh:)(.+)/i,"https://esm.sh/$2"],[/^(npm:)(.+)/i,"https://esm.sh/$2"],[/^(node:)(.+)/i,"https://esm.sh/$2"],[/^(jsr:)(.+)/i,"https://esm.sh/jsr/$2"],[/^(skypack:)(.+)/i,"https://cdn.skypack.dev/$2"],[/^(jsdelivr:)(.+)/i,"https://cdn.jsdelivr.net/npm/$2"],[/^(fastly\.jsdelivr:)(.+)/i,"https://fastly.jsdelivr.net/npm/$2"],[/^(gcore\.jsdelivr:)(.+)/i,"https://gcore.jsdelivr.net/npm/$2"],[/^(testingcf\.jsdelivr:)(.+)/i,"https://testingcf.jsdelivr.net/npm/$2"],[/^(jsdelivr\.b-cdn:)(.+)/i,"https://jsdelivr.b-cdn.net/npm/$2"],[/^(jsdelivr\.gh:)(.+)/i,"https://cdn.jsdelivr.net/gh/$2"],[/^(fastly\.jsdelivr\.gh:)(.+)/i,"https://fastly.jsdelivr.net/gh/$2"],[/^(gcore\.jsdelivr\.gh:)(.+)/i,"https://gcore.jsdelivr.net/gh/$2"],[/^(testingcf\.jsdelivr\.gh:)(.+)/i,"https://testingcf.jsdelivr.net/gh/$2"],[/^(jsdelivr\.b-cdn\.gh:)(.+)/i,"https://jsdelivr.b-cdn.net/gh/$2"],[/^(statically:)(.+)/i,"https://cdn.statically.io/gh/$2"],[/^(esm\.run:)(.+)/i,"https://esm.run/$2"],[/^(jsdelivr\.esm:)(.+)/i,"https://cdn.jsdelivr.net/npm/$2/+esm"],[/^(fastly\.jsdelivr\.esm:)(.+)/i,"https://fastly.jsdelivr.net/npm/$2/+esm"],[/^(gcore\.jsdelivr\.esm:)(.+)/i,"https://gcore.jsdelivr.net/npm/$2/+esm"],[/^(testingcf\.jsdelivr\.esm:)(.+)/i,"https://testingcf.jsdelivr.net/npm/$2/+esm"],[/^(jsdelivr\.b-cdn\.esm:)(.+)/i,"https://jsdelivr.b-cdn.net/npm/$2/+esm"],[/^(jspm:)(.+)/i,"https://jspm.dev/$2"],[/^(esbuild:)(.+)/i,"https://esbuild.vercel.app/$2"],[/^(bundle\.run:)(.+)/i,"https://bundle.run/$2"],[/^(unpkg:)(.+)/i,"https://unpkg.com/$2"],[/^(npmcdn:)(.+)/i,"https://npmcdn.com/$2"],[/^(bundlejs:)(.+)/i,"https://deno.bundlejs.com/?file&q=$2"],[/^(bundle:)(.+)/i,"https://deno.bundlejs.com/?file&q=$2"],[/^(deno:)(.+)/i,"https://deno.bundlejs.com/?file&q=https://deno.land/x/$2/mod.ts"],[/^(https:\/\/deno\.land\/.+)/i,"https://deno.bundlejs.com/?file&q=$1"],[/^(github:|https:\/\/github\.com\/)(.[^\/]+?)\/(.[^\/]+?)\/(?!releases\/)(?:(?:blob|raw)\/)?(.+?\/.+)/i,"https://deno.bundlejs.com/?file&q=https://cdn.jsdelivr.net/gh/$2/$3@$4"],[/^(gist\.github:)(.+?\/[0-9a-f]+\/raw\/(?:[0-9a-f]+\/)?.+)$/i,"https://gist.githack.com/$2"],[/^(gitlab:|https:\/\/gitlab\.com\/)([^\/]+.*\/[^\/]+)\/(?:raw|blob)\/(.+?)(?:\?.*)?$/i,"https://deno.bundlejs.com/?file&q=https://gl.githack.com/$2/raw/$3"],[/^(bitbucket:|https:\/\/bitbucket\.org\/)([^\/]+\/[^\/]+)\/(?:raw|src)\/(.+?)(?:\?.*)?$/i,"https://deno.bundlejs.com/?file&q=https://bb.githack.com/$2/raw/$3"],[/^(bitbucket:)snippets\/([^\/]+\/[^\/]+)\/revisions\/([^\/\#\?]+)(?:\?[^#]*)?(?:\#file-(.+?))$/i,"https://bb.githack.com/!api/2.0/snippets/$2/$3/files/$4"],[/^(bitbucket:)snippets\/([^\/]+\/[^\/\#\?]+)(?:\?[^#]*)?(?:\#file-(.+?))$/i,"https://bb.githack.com/!api/2.0/snippets/$2/HEAD/files/$3"],[/^(bitbucket:)\!api\/2.0\/snippets\/([^\/]+\/[^\/]+\/[^\/]+)\/files\/(.+?)(?:\?.*)?$/i,"https://bb.githack.com/!api/2.0/snippets/$2/files/$3"],[/^(api\.bitbucket:)2.0\/snippets\/([^\/]+\/[^\/]+\/[^\/]+)\/files\/(.+?)(?:\?.*)?$/i,"https://bb.githack.com/!api/2.0/snippets/$2/files/$3"],[/^(rawgit:)(.+?\/[0-9a-f]+\/raw\/(?:[0-9a-f]+\/)?.+)$/i,"https://gist.githack.com/$2"],[/^(rawgit:|https:\/\/raw\.githubusercontent\.com)(\/[^\/]+\/[^\/]+|[0-9A-Za-z-]+\/[0-9a-f]+\/raw)\/(.+)/i,"https://deno.bundlejs.com/?file&q=https://raw.githack.com/$2/$3"]];var{getUrl:x,getModuleUrl:ps}=k,p=x("@live-codes/browser-compilers@0.22.3/dist/");var Te=x("art-template@4.13.2/lib/template-web.js"),je=x("@asciidoctor/core@2.2.8/dist/browser/asciidoctor.js"),Ee=x("@assemblyscript/loader@0.27.29/umd/index.js");var Me=x("@hatemhosny/astro-internal@0.0.4/");var Ce=x("@babel/standalone@7.26.4/babel.js"),Ue=x("biwascheme@0.8.0/release/biwascheme.js");var G=x("brython@3.12.4/");var $=x("cherry-cljs@0.2.19/");var Z=x("@live-codes/clio-browser-compiler@0.0.3/public/build/");var ke=x("coffeescript@2.7.0/lib/coffeescript-browser-compiler-legacy/coffeescript.js");var He=x("dot@1.1.3/doT.js"),qe=x("ejs@3.1.10/ejs.js");var Pe=x("eta@3.4.0/dist/eta.umd.js");var Ae=x("flexsearch@0.7.21/dist/flexsearch.bundle.js");var A=x("@live-codes/go2js@0.5.0/build/");var X=x("handlebars@4.7.8/dist/");var Q=x("imba@2.0.0-alpha.229/dist/");var Ie=x("gh:jscl-project/jscl-project.github.io@058adc599f0d012718ef3ad28e704a92c4dd741e/jscl.js");var Be=x("liquidjs@10.14.0/dist/liquid.browser.min.js");var H=x("fengari-web@0.1.4/dist/fengari-web.js");var Re=x("malinajs@0.7.19/"),_e=x("marked@13.0.2/marked.min.js");var De=x("mjml-browser@4.15.3/lib/index.js");var We=x("mustache@4.2.0/mustache.js");var Y=x("nunjucks@3.2.4/browser/"),D=x("https://cdn.opalrb.com/opal/1.8.2/"),Oe=x("parinfer@3.13.1/parinfer.js");var q=x("prettier@3.3.2/"),Fe=x("@prettier/plugin-php@0.22.2/standalone.js");var $e=x("requirejs@2.3.6/require.js");var ee=x("riot@9.2.2/");var Ne=x("@ruby/wasm-wasi@2.6.2/dist/browser.umd.js");var N=x("sql-formatter@12.2.1/dist/sql-formatter.min.js"),Je=x("sql.js@1.10.3/dist/"),I=x("squint-cljs@0.4.81/"),ze=x("@stencil/core@3.2.2/compiler/stencil.js"),Ke=x("stylis@4.3.2/dist/umd/stylis.js"),C=x("svelte@5.12.0/");var U=x("tau-prolog@0.3.4/modules/");var Ve=x("twig@1.17.1/twig.min.js"),Ge=x("typescript@5.6.2/lib/typescript.js");var Ze=x("uniter@2.18.0/dist/uniter.js");var te=x("vue@2"),Xe=x("vue@3/dist/vue.runtime.esm-browser.prod.js"),Qe=x("livecodes@0.11.1/vue.js"),Ye=x("vue3-sfc-loader@0.9.5/dist/"),et=x("wabt@1.0.35/index.js"),tt=x("wasmoon@1.16.0/dist/index.js");var xs=q+"standalone.js",o={babel:q+"plugins/babel.js",estree:q+"plugins/estree.js",glimmer:q+"plugins/glimmer.js",html:q+"plugins/html.js",markdown:q+"plugins/markdown.js",postcss:q+"plugins/postcss.js",php:Fe,pug:p+"prettier/parser-pug.js",java:p+"prettier/parser-java.js"};var rt={name:"art-template",title:"art",longTitle:"art-template",parser:{name:"html",pluginUrls:[o.html]},compiler:{url:Te,factory:(e,t)=>(self.importScripts(t+"lang-art-template-compiler.f7f28bfde1988e977306171ed26474d0.js"),self.createArtTemplateCompiler())},extensions:["art","art-template"],editor:"markup",editorLanguage:"html"};var lo={name:"lightningcss",title:"Lightning CSS",isPostcssPlugin:!1,compiler:{url:p+"lightningcss/lightningcss.js",factory:(e,t)=>(self.importScripts(t+"processor-lightningcss-compiler.bfb68fd433e1548d10fee6992259f228.js"),self.createLightningcssCompiler())},editor:"style"};var po={name:"autoprefixer",title:"Autoprefixer",isPostcssPlugin:!0,compiler:{url:p+"autoprefixer/autoprefixer.js",factory:e=>self.autoprefixer.autoprefixer({...y("autoprefixer",e)})},editor:"style"},mo={name:"cssnano",title:"cssnano",isPostcssPlugin:!0,compiler:{url:p+"cssnano/cssnano.js",factory:()=>{let e=self.cssnano.cssnanoPresetDefault().plugins,t=[];for(let r of e){let[c,l]=r;(typeof l>"u"||typeof l=="object"&&!l.exclude||typeof l=="boolean"&&l===!0)&&t.push(c(l))}return t}},editor:"style"};var uo={name:"postcssPresetEnv",title:"Preset Env",isPostcssPlugin:!0,compiler:{url:p+"postcss-preset-env/postcss-preset-env.js",factory:e=>self.postcssPresetEnv.postcssPresetEnv({autoprefixer:!1,...y("postcssPresetEnv",e)})},editor:"style"},go={name:"purgecss",title:"PurgeCSS",isPostcssPlugin:!0,needsHTML:!0,compiler:{url:p+"purgecss/purgecss.js",factory:(e,t,r)=>self.purgecss.purgecss({...y("purgecss",e),content:[{raw:`