jq79 0.3.22 → 0.3.23

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.
package/dist/jq79.js CHANGED
@@ -1,10 +1,10 @@
1
- var dt=Object.defineProperty;var ft=(t,e,n)=>e in t?dt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var b=(t,e,n)=>ft(t,typeof e!="symbol"?e+"":e,n);function L(t,e){return typeof t=="string"?document.querySelector(t):t.querySelector(e)}function M(t,e){return Array.from(typeof t=="string"?document.querySelectorAll(t):t.querySelectorAll(e))}var D=(t,e={})=>{let n=document.createElement(t);for(let[r,s]of Object.entries(e))if(r==="className")n.className=Array.isArray(s)?s.join(" "):s;else if(r==="textContent")n.textContent=s;else if(r==="children")for(let i of s)n.appendChild(i);else n.setAttribute(r,s);return n},ut=new Set(["a","b","i","em","strong","p","br","ul","ol","li","blockquote","code","pre","span","div","h1","h2","h3","h4","h5","h6","img"]),z={a:new Set(["href","title"]),img:new Set(["src","alt"]),"*":new Set(["class"])},pt=new Set(["http:","https:","mailto:"]);function ht(t){try{let e=new URL(t,"https://example.com");return pt.has(e.protocol)}catch{return!1}}function G(t,e){for(let n of Array.from(t.childNodes))if(n.nodeType===Node.ELEMENT_NODE){let r=mt(n);r&&e.appendChild(r)}else n.nodeType===Node.TEXT_NODE&&e.appendChild(n.cloneNode())}function mt(t){let e=t.tagName.toLowerCase();if(!ut.has(e))return null;let n=document.createElement(e);for(let r of Array.from(t.attributes)){let s=r.name.toLowerCase(),i=z[e]?.has(s),o=z["*"]?.has(s);!i&&!o||(s==="href"||s==="src")&&!ht(r.value)||n.setAttribute(s,r.value)}return e==="a"&&n.setAttribute("rel","noopener noreferrer"),G(t,n),n}function K(t){let e=new DOMParser().parseFromString(t,"text/html"),n=document.createElement("div");return G(e.body,n),n.innerHTML}var gt=(t,e)=>e.split(".").reduce((n,r)=>n?.[r],t),j=t=>{if(Array.isArray(t))return!0;let e=Object.getPrototypeOf(t);return e===Object.prototype||e===null},V=(t,e,n)=>{Object.entries(t).forEach(([r,s])=>{let i=e?`${e}.${r}`:r;s&&typeof s=="object"&&j(s)?V(s,i,n):n(i,s)})},yt=(t,e)=>t===e||t.startsWith(`${e}.`)||e.startsWith(`${t}.`),C=[],Z=t=>{C.push(new Set);try{return t()}finally{C.pop()}},_=t=>{let e=new Map,n=new Set,r=new Set,s=new WeakSet,i=(a,d,p=!1)=>{e.get(a)?.forEach(m=>m(d,a)),n.forEach(m=>m(a,d)),r.forEach(m=>{(p||Array.from(m.deps).some(g=>yt(g,a)))&&m.run()})},o=(a,d)=>{if(s.has(a))return a;Object.entries(a).forEach(([m,g])=>{g&&typeof g=="object"&&j(g)&&(a[m]=o(g,d?`${d}.${m}`:m))});let p=new Proxy(a,{get(m,g,u){return typeof g=="string"&&C[C.length-1]?.add(d?`${d}.${g}`:g),Reflect.get(m,g,u)},set(m,g,u,y){if(y!==p&&!Object.prototype.hasOwnProperty.call(m,g))return Reflect.set(m,g,u,y);let S=d?`${d}.${g}`:g;u&&typeof u=="object"&&j(u)&&(u=o(u,S));let x=!Object.prototype.hasOwnProperty.call(m,g);return m[g]=u,i(S,u,x),!0}});return s.add(p),p},c=o(t,""),f=(a,d,{immediate:p=!1}={})=>(e.has(a)||e.set(a,new Set),e.get(a).add(d),p&&d(gt(c,a),a),()=>e.get(a)?.delete(d)),h=(a,{immediate:d=!1}={})=>(n.add(a),d&&V(c,"",(p,m)=>a(p,m)),()=>n.delete(a)),l=a=>{let d={deps:new Set,run:()=>{let p=new Set;C.push(p);try{a()}finally{C.pop(),d.deps=p}}};return r.add(d),d.run(),()=>{r.delete(d)}};return Object.defineProperty(c,"$on",{value:f,enumerable:!1}),Object.defineProperty(c,"$onAny",{value:h,enumerable:!1}),Object.defineProperty(c,"$effect",{value:l,enumerable:!1}),c},T=t=>{let e=[];return{effect:n=>{e.push(t.$effect(n))},onDispose:n=>{e.push(n)},dispose:()=>{e.splice(0).forEach(n=>n())}}};var X=/(?:let|var|const)\s+([A-Za-z_$][\w$]*)/y,J=/\$:\s*/y,O=/import(?=\s*\()/y,Y=/\$:\s*([A-Za-z_$][\w$]*)\s*=(?!=)/y,P=(t,e)=>{let n=t[e],r=e+1;for(;r<t.length;){if(t[r]==="\\"){r+=2;continue}if(t[r]===n)return r+1;r++}return t.length},k=(t,e)=>{let n=t.indexOf(`
2
- `,e);return n===-1?t.length:n},F=(t,e)=>{let n=t.indexOf("*/",e+2);return n===-1?t.length:n+2},Et=(t,e)=>{let n=0,r=e;for(;r<t.length;){let s=t[r];if(s==="'"||s==='"'||s==="`"){r=P(t,r);continue}if(s==="/"&&t[r+1]==="/"){r=k(t,r);continue}if(s==="/"&&t[r+1]==="*"){r=F(t,r);continue}if("([{".includes(s))n++;else if(")]}".includes(s))n--;else if(n<=0&&(s===`
3
- `||s===";"))return r;r++}return t.length},et=t=>{let e=[],n="",r=0,s=0,i=!0;for(;r<t.length;){let o=t[r],c=t[r+1];if(o==="'"||o==='"'||o==="`"){let f=P(t,r);n+=t.slice(r,f),r=f,i=!1;continue}if(o==="/"&&(c==="/"||c==="*")){let f=c==="/"?k(t,r):F(t,r);n+=t.slice(r,f),r=f;continue}if(o==="i"&&(r===0||!/[\w$.]/.test(t[r-1]))&&(O.lastIndex=r,O.test(t))){n+="$__import",r+=6,i=!1;continue}if(s===0&&i){X.lastIndex=r;let f=X.exec(t);if(f){e.push(f[1]),n+=f[1],r+=f[0].length,i=!1;continue}J.lastIndex=r;let h=J.exec(t);if(h){Y.lastIndex=r;let l=Y.exec(t);l&&e.push(l[1]);let a=r+h[0].length,d=Et(t,a);n+=`$__effect(() => { ${t.slice(a,d)} });`,r=d;continue}}"([{".includes(o)?s++:")]}".includes(o)&&(s=Math.max(0,s-1)),o===`
4
- `||o===";"||o==="}"?i=!0:/\s/.test(o)||(i=!1),n+=o,r++}return{vars:e,code:n}},Q=/export\s+default(?![\w$])/y,tt=/import\s*(?:([\w$\s,{}*]+?)\s*from\s*)?(["'])([^"'\n]+)\2/y,St=t=>{let e=[],n=0,r=0;for(let s=0;s<=t.length;s++){let i=t[s];if(i==="{")n++;else if(i==="}")n--;else if(s===t.length||i===","&&n===0){let o=t.slice(r,s).trim();o&&e.push(o),r=s+1}}return e},bt=(t,e,n)=>{let r=`await $__import(${JSON.stringify(e)})`;if(t===void 0)return r;let s=St(t),i=[],o=r;if(s.length>1){let c=`$__mod${n}`;i.push(`${c} = ${r}`),o=c}for(let c of s)c.startsWith("{")?i.push(`${c.replace(/\s+as\s+/g,": ")} = ${o}`):c.startsWith("*")?i.push(`${c.replace(/^\*\s*as\s+/,"")} = ${o}`):i.push(`${c} = $__default(${o})`);return`const ${i.join(", ")}`},nt=t=>{let e="",n=0,r=0,s=!0,i=!1,o=0;for(;n<t.length;){let c=t[n],f=t[n+1],h=n===0||!/[\w$.]/.test(t[n-1]);if(c==="'"||c==='"'||c==="`"){let l=P(t,n);e+=t.slice(n,l),n=l,s=!1;continue}if(c==="/"&&(f==="/"||f==="*")){let l=f==="/"?k(t,n):F(t,n);e+=t.slice(n,l),n=l;continue}if(c==="i"&&h){if(O.lastIndex=n,O.test(t)){e+="$__import",n+=6,s=!1;continue}if(r===0&&s){tt.lastIndex=n;let l=tt.exec(t);if(l){e+=bt(l[1],l[3],o++),n+=l[0].length,s=!1;continue}}}if(c==="e"&&h&&r===0&&s){Q.lastIndex=n;let l=Q.exec(t);if(l){i=!0,e+="$__exports.default =",n+=l[0].length,s=!1;continue}}"([{".includes(c)?r++:")]}".includes(c)&&(r=Math.max(0,r-1)),c===`
5
- `||c===";"||c==="}"?s=!0:/\s/.test(c)||(s=!1),e+=c,n++}return i?e:null};var it=t=>Object.fromEntries(Array.from(t.attributes).map(e=>[e.name,e.value])),ct=t=>({tag:t.tagName.toLowerCase(),attrs:it(t),children:Array.from(t.childNodes).flatMap(e=>{if(e.nodeType===Node.TEXT_NODE){let n=e.textContent?.trim()??"";return n?[n]:[]}return e.nodeType===Node.ELEMENT_NODE?[ct(e)]:[]})}),$=(t,e,n)=>{try{return new Function("$scope",...Object.keys(n??{}),`with ($scope) { return (${t}); }`)(e,...Object.values(n??{}))}catch{return}},$t=(t,e)=>t.replace(/{{\s*(.+?)\s*}}/g,(n,r)=>$(r,e)??""),at=new Set([":attrs",":if",":elseif",":else",":each",":key",":with",":text",":html"]),wt=/^\s*(\w+)\s+in\s+(.+)$/,xt=(t,e,n,r)=>{let[s,...i]=e.slice(1).split("."),o=new Set(i);t.addEventListener(s,c=>{if(o.has("self")&&c.target!==t)return;o.has("prevent")&&c.preventDefault(),o.has("stop")&&c.stopPropagation();let f=$(n,r,{$event:c});typeof f=="function"&&f.call(t,c)},{once:o.has("once"),capture:o.has("capture")})},rt=t=>t.replace(/-(\w)/g,(e,n)=>n.toUpperCase()),st=(t,e)=>{let n=e.replace(/-/g,"").toLowerCase();for(let r=t;r&&r!==Object.prototype;r=Object.getPrototypeOf(r))for(let s of Object.keys(r))if(/^[A-Z]/.test(s)&&s.replace(/-/g,"").toLowerCase()===n)return s;return null},ot=(t,e,n,r)=>{let s=document.createComment(t),i=document.createDocumentFragment();i.appendChild(s);let o={};Object.entries(e.attrs).forEach(([l,a])=>{if(!(at.has(l)||l.startsWith("@")))if(l.startsWith(":")){let d=rt(l.slice(1));o[d]=a||d}else o[rt(l)]=JSON.stringify(a)});let c=null,f=null,h=null;return r.effect(()=>{let l=$(t,n),a=l instanceof v?l:null;if(a===f||(h?.dispose(),h=null,c?.destroy(),c=null,f=a,!a))return;let d=new v({template:a.template,scripts:a.scripts,styles:a.styles,modules:a.modules}),p=Z(()=>Object.fromEntries(Object.entries(o).map(([u,y])=>[u,$(y,n)]))),m=document.createDocumentFragment();d.render(p).mount(m),s.parentNode.insertBefore(m,s.nextSibling);let g=T(n);Object.entries(o).forEach(([u,y])=>{g.effect(()=>{d.data[u]=$(y,n)})}),h=g,c=d}),r.onDispose(()=>{h?.dispose(),c?.destroy()}),i},Rt=(t,e)=>{let n=()=>{let r=$(t,e);return r!==null&&typeof r=="object"?r:null};return new Proxy(e,{has(r,s){let i=n();return i!==null&&Reflect.has(i,s)||Reflect.has(r,s)},get(r,s){let i=n();return i!==null&&Reflect.has(i,s)?i[s]:Reflect.get(r,s)},set(r,s,i){let o=n();return o!==null&&Reflect.has(o,s)?(o[s]=i,!0):Reflect.set(r,s,i)}})},I=(t,e,n)=>{let r=t.attrs[":with"],s=r!==void 0?Rt(r,e):e,i=st(s,t.tag);if(i)return ot(i,t,s,n);let o=document.createElement(t.tag);if(o instanceof HTMLUnknownElement||t.tag.includes("-")){let l=!1;n.effect(()=>{if(l)return;let a=st(s,t.tag);a&&(l=!0,o.replaceWith(ot(a,t,s,n)))})}Object.entries(t.attrs).forEach(([l,a])=>{l.startsWith("@")?xt(o,l,a,s):at.has(l)||o.setAttribute(l,a)});let c=t.attrs[":attrs"];if(c!==void 0){let l=[];n.effect(()=>{l.forEach(d=>o.removeAttribute(d));let a=$(c,s);l=a&&typeof a=="object"?Object.keys(a):[],l.forEach(d=>{let p=a[d];p!=null&&p!==!1&&o.setAttribute(d,String(p))})})}let f=t.attrs[":text"],h=t.attrs[":html"];return f!==void 0?n.effect(()=>{o.textContent=String($(f,s)??"")}):h!==void 0?n.effect(()=>{o.innerHTML=K(String($(h,s)??""))}):o.appendChild(W(t.children,s,n)),o},Ct=(t,e,n)=>{let r=document.createComment("if"),s=document.createDocumentFragment();s.appendChild(r);let i=null,o=null,c=null;return n.effect(()=>{let f=t.find(h=>h.expr===void 0||$(h.expr,e))??null;f!==o&&(c?.dispose(),i&&i.parentNode?.removeChild(i),i=null,o=f,f&&(c=T(e),i=I(f.node,e,c),r.parentNode.insertBefore(i,r.nextSibling)))}),s},B=(t,e,n)=>{Object.defineProperty(t,e,{value:n,writable:!0,enumerable:!0,configurable:!0})},Tt=(t,e,n)=>{let r=t.attrs[":each"].match(wt);if(!r)return document.createComment(`invalid :each expression "${t.attrs[":each"]}"`);let[,s,i]=r,o=t.attrs[":key"],{[":each"]:c,[":key"]:f,...h}=t.attrs,l={...t,attrs:h},a=document.createComment("each"),d=document.createDocumentFragment();d.appendChild(a);let p=[];return n.effect(()=>{let m=$(i,e),g=Array.isArray(m)?m:[],u=new Map(p.map(E=>[E.key,E])),y=g.map((E,N)=>{let w=Object.create(e);B(w,s,E),B(w,"$index",N);let H=o!==void 0?$(o,w):N,R=u.get(H);if(R&&Object.is(R.item,E))return B(R.scope,"$index",N),R;R?.fx.dispose(),R?.node.parentNode?.removeChild(R.node);let q=T(e);return{key:H,item:E,scope:w,fx:q,node:I(l,w,q)}}),S=new Set(y.map(E=>E.key));p.forEach(E=>{S.has(E.key)||(E.fx.dispose(),E.node.parentNode?.removeChild(E.node))});let x=a;y.forEach(E=>{x.nextSibling!==E.node&&a.parentNode.insertBefore(E.node,x.nextSibling),x=E.node}),p=y}),d},W=(t,e,n)=>{let r=document.createDocumentFragment(),s=0;for(;s<t.length;){let i=t[s];if(typeof i=="string"){let o=document.createTextNode("");n.effect(()=>{o.textContent=$t(i,e)}),r.appendChild(o),s++;continue}if(":each"in i.attrs){r.appendChild(Tt(i,e,n)),s++;continue}if(":if"in i.attrs){let o=[{expr:i.attrs[":if"],node:i}];for(s++;s<t.length&&typeof t[s]!="string"&&":elseif"in t[s].attrs;){let c=t[s];o.push({expr:c.attrs[":elseif"],node:c}),s++}s<t.length&&typeof t[s]!="string"&&":else"in t[s].attrs&&(o.push({node:t[s]}),s++),r.appendChild(Ct(o,e,n));continue}r.appendChild(I(i,e,n)),s++}return r},qt=(t,e)=>W(t.template,e,T(e)),vt=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]),Nt=/<([A-Za-z][\w-]*)((?:"[^"]*"|'[^']*'|[^>"'])*?)\/>/g,Lt=/(<script[\s\S]*?<\/script\s*>|<style[\s\S]*?<\/style\s*>)/gi,_t=t=>t.split(Lt).map((e,n)=>n%2===1?e:e.replace(Nt,(r,s,i)=>vt.has(s.toLowerCase())?r:`<${s}${i}></${s}>`)).join(""),Ot=t=>{let n=new DOMParser().parseFromString(`<template>${_t(t)}</template>`,"text/html").querySelector("template"),r=[],s=[],i=[];return Array.from(n.content.children).forEach(o=>{let c={attrs:it(o),content:o.textContent??""};o.tagName==="SCRIPT"?r.push(c):o.tagName==="STYLE"?s.push(c):i.push(ct(o))}),{template:i,scripts:r,styles:s}},U=t=>/\.html?([?#]|$)/.test(t)?v.fetch(t):import(t),A=new Map,At=t=>{let e=A.get(t);if(!e){let n=document.createElement("style");n.textContent=t,document.head.appendChild(n),e={el:n,count:0},A.set(t,e)}e.count++},Mt=t=>{let e=A.get(t);e&&--e.count<=0&&(e.el.remove(),A.delete(t))},lt={$:L,$$:M,$create:D,$reactive:_},Dt=(t,e,n,r={},s=U)=>{let i={...lt,...r},o=new Proxy(e,{has:(f,h)=>h!=="$__effect"&&h!=="$__import"&&(Reflect.has(f,h)||!(h in globalThis)&&!(h in i))});new Function("$scope","$__effect","$__import",...Object.keys(i),`return (async () => { with ($scope) { ${t} } })()`)(o,n,s,...Object.values(i)).catch(f=>console.error("jq79: error in :setup script",f))},jt=t=>t&&t.default!==void 0?t.default:t,Pt=(t,e,n,r={},s=U)=>{let i={...lt,...r},o={},c=new Function("$__exports","$__default","$__import",...Object.keys(i),`return (async () => { "use strict";
1
+ var St=Object.defineProperty;var bt=(t,e,n)=>e in t?St(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var w=(t,e,n)=>bt(t,typeof e!="symbol"?e+"":e,n);function A(t,e){return typeof t=="string"?document.querySelector(t):t.querySelector(e)}function P(t,e){return Array.from(typeof t=="string"?document.querySelectorAll(t):t.querySelectorAll(e))}var F=(t,e={})=>{let n=document.createElement(t);for(let[s,r]of Object.entries(e))if(s==="className")n.className=Array.isArray(r)?r.join(" "):r;else if(s==="textContent")n.textContent=r;else if(s==="children")for(let o of r)n.appendChild(o);else n.setAttribute(s,r);return n},$t=new Set(["a","b","i","em","strong","p","br","ul","ol","li","blockquote","code","pre","span","div","h1","h2","h3","h4","h5","h6","img"]),V={a:new Set(["href","title"]),img:new Set(["src","alt"]),"*":new Set(["class"])},wt=new Set(["http:","https:","mailto:"]);function Rt(t){try{let e=new URL(t,"https://example.com");return wt.has(e.protocol)}catch{return!1}}function Z(t,e){for(let n of Array.from(t.childNodes))if(n.nodeType===Node.ELEMENT_NODE){let s=xt(n);s&&e.appendChild(s)}else n.nodeType===Node.TEXT_NODE&&e.appendChild(n.cloneNode())}function xt(t){let e=t.tagName.toLowerCase();if(!$t.has(e))return null;let n=document.createElement(e);for(let s of Array.from(t.attributes)){let r=s.name.toLowerCase(),o=V[e]?.has(r),i=V["*"]?.has(r);!o&&!i||(r==="href"||r==="src")&&!Rt(s.value)||n.setAttribute(r,s.value)}return e==="a"&&n.setAttribute("rel","noopener noreferrer"),Z(t,n),n}function X(t){let e=new DOMParser().parseFromString(t,"text/html"),n=document.createElement("div");return Z(e.body,n),n.innerHTML}var Tt=(t,e)=>e.split(".").reduce((n,s)=>n?.[s],t),J=t=>{if(Array.isArray(t))return!0;let e=Object.getPrototypeOf(t);return e===Object.prototype||e===null},Y=(t,e,n)=>{Object.entries(t).forEach(([s,r])=>{let o=e?`${e}.${s}`:s;r&&typeof r=="object"&&J(r)?Y(r,o,n):n(o,r)})},Ct=(t,e)=>t===e||t.startsWith(`${e}.`)||e.startsWith(`${t}.`),W=Symbol("jq79.raw"),B=t=>{let e=t;for(;e!==null&&typeof e=="object"&&e[W];)e=e[W];return e},Q=Symbol("jq79.store"),I=t=>t!==null&&typeof t=="object"&&t[Q]===!0,L=[],tt=t=>{L.push(new Set);try{return t()}finally{L.pop()}},O=t=>{let e=new Map,n=new Set,s=new Set,r=new WeakMap,o=Object.create(null),i=(u,d,b=!1)=>{e.get(u)?.forEach(S=>S(d,u)),n.forEach(S=>S(u,d)),s.forEach(S=>{(b||Array.from(S.deps).some(f=>Ct(f,u)))&&S.run()})},c=u=>u!==null&&typeof u=="object"&&J(u),l=(u,d)=>{let b=r.get(u);if(b)return b;let S=new Proxy(u,{get(f,m,E){if(m===W)return f;if(m===Q)return d==="";if(typeof m!="string")return Reflect.get(f,m,E);if(d===""&&m in o)return o[m];let g=d?`${d}.${m}`:m;L[L.length-1]?.add(g);let R=Reflect.get(f,m,E);if(I(R))return R;let $=B(R);return c($)?l($,g):$},set(f,m,E,g){if(g!==S&&!Object.prototype.hasOwnProperty.call(f,m))return Reflect.set(f,m,E,g);let R=d?`${d}.${m}`:m,$=I(E)?E:B(E),C=!Object.prototype.hasOwnProperty.call(f,m);f[m]=$;let T=I($)||!c($)?$:l($,R);return i(R,T,C),!0}});return r.set(u,S),S},h=l(B(t),""),a=(u,d,{immediate:b=!1}={})=>(e.has(u)||e.set(u,new Set),e.get(u).add(d),b&&d(Tt(h,u),u),()=>e.get(u)?.delete(d)),p=(u,{immediate:d=!1}={})=>(n.add(u),d&&Y(h,"",(b,S)=>u(b,S)),()=>n.delete(u)),y=u=>{let d={deps:new Set,run:()=>{let b=new Set;L.push(b);try{u()}finally{L.pop(),d.deps=b}}};return s.add(d),d.run(),()=>{s.delete(d)}};return o.$on=a,o.$onAny=p,o.$effect=y,h},v=t=>{let e=[];return{effect:n=>{e.push(t.$effect(n))},onDispose:n=>{e.push(n)},dispose:()=>{e.splice(0).forEach(n=>n())}}};var et=/(?:let|var|const)\s+([A-Za-z_$][\w$]*)/y,nt=/\$:\s*/y,j=/import(?=\s*\()/y,st=/\$:\s*([A-Za-z_$][\w$]*)\s*=(?!=)/y,q=(t,e)=>{let n=t[e],s=e+1;for(;s<t.length;){if(t[s]==="\\"){s+=2;continue}if(t[s]===n)return s+1;s++}return t.length},M=(t,e)=>{let n=t.indexOf(`
2
+ `,e);return n===-1?t.length:n},D=(t,e)=>{let n=t.indexOf("*/",e+2);return n===-1?t.length:n+2},Nt=(t,e)=>{let n=e;for(;n<t.length;){if(/\s/.test(t[n])){n++;continue}if(t[n]==="/"&&t[n+1]==="/"){n=M(t,n);continue}if(t[n]==="/"&&t[n+1]==="*"){n=D(t,n);continue}break}return n},Lt=/^(\?\.|\?\?|&&|\|\||\*\*|[.,+\-*/%&|^<>=?:([])/,vt=(t,e)=>{let n=0,s=e;for(;s<t.length;){let r=t[s];if(r==="'"||r==='"'||r==="`"){s=q(t,s);continue}if(r==="/"&&t[s+1]==="/"){s=M(t,s);continue}if(r==="/"&&t[s+1]==="*"){s=D(t,s);continue}if("([{".includes(r))n++;else if(")]}".includes(r))n--;else{if(n<=0&&r===";")return s;if(n<=0&&r===`
3
+ `){let o=Nt(t,s+1);if(o>=t.length||!Lt.test(t.slice(o,o+2)))return s;s=o;continue}}s++}return t.length},it=t=>{let e=[],n="",s=0,r=0,o=!0;for(;s<t.length;){let i=t[s],c=t[s+1];if(i==="'"||i==='"'||i==="`"){let l=q(t,s);n+=t.slice(s,l),s=l,o=!1;continue}if(i==="/"&&(c==="/"||c==="*")){let l=c==="/"?M(t,s):D(t,s);n+=t.slice(s,l),s=l;continue}if(i==="i"&&(s===0||!/[\w$.]/.test(t[s-1]))&&(j.lastIndex=s,j.test(t))){n+="$__import",s+=6,o=!1;continue}if(r===0&&o){et.lastIndex=s;let l=et.exec(t);if(l){e.push(l[1]),n+=l[1],s+=l[0].length,o=!1;continue}nt.lastIndex=s;let h=nt.exec(t);if(h){st.lastIndex=s;let a=st.exec(t);a&&e.push(a[1]);let p=s+h[0].length,y=vt(t,p);n+=`$__effect(() => { ${t.slice(p,y)} });`,s=y;continue}}"([{".includes(i)?r++:")]}".includes(i)&&(r=Math.max(0,r-1)),i===`
4
+ `||i===";"||i==="}"?o=!0:/\s/.test(i)||(o=!1),n+=i,s++}return{vars:e,code:n}},rt=/export\s+default(?![\w$])/y,ot=/import\s*(?:([\w$\s,{}*]+?)\s*from\s*)?(["'])([^"'\n]+)\2/y,_t=t=>{let e=[],n=0,s=0;for(let r=0;r<=t.length;r++){let o=t[r];if(o==="{")n++;else if(o==="}")n--;else if(r===t.length||o===","&&n===0){let i=t.slice(s,r).trim();i&&e.push(i),s=r+1}}return e},At=(t,e,n)=>{let s=`await $__import(${JSON.stringify(e)})`;if(t===void 0)return s;let r=_t(t),o=[],i=s;if(r.length>1){let c=`$__mod${n}`;o.push(`${c} = ${s}`),i=c}for(let c of r)c.startsWith("{")?o.push(`${c.replace(/\s+as\s+/g,": ")} = ${i}`):c.startsWith("*")?o.push(`${c.replace(/^\*\s*as\s+/,"")} = ${i}`):o.push(`${c} = $__default(${i})`);return`const ${o.join(", ")}`},ct=t=>{let e="",n=0,s=0,r=!0,o=!1,i=0;for(;n<t.length;){let c=t[n],l=t[n+1],h=n===0||!/[\w$.]/.test(t[n-1]);if(c==="'"||c==='"'||c==="`"){let a=q(t,n);e+=t.slice(n,a),n=a,r=!1;continue}if(c==="/"&&(l==="/"||l==="*")){let a=l==="/"?M(t,n):D(t,n);e+=t.slice(n,a),n=a;continue}if(c==="i"&&h){if(j.lastIndex=n,j.test(t)){e+="$__import",n+=6,r=!1;continue}if(s===0&&r){ot.lastIndex=n;let a=ot.exec(t);if(a){e+=At(a[1],a[3],i++),n+=a[0].length,r=!1;continue}}}if(c==="e"&&h&&s===0&&r){rt.lastIndex=n;let a=rt.exec(t);if(a){o=!0,e+="$__exports.default =",n+=a[0].length,r=!1;continue}}"([{".includes(c)?s++:")]}".includes(c)&&(s=Math.max(0,s-1)),c===`
5
+ `||c===";"||c==="}"?r=!0:/\s/.test(c)||(r=!1),e+=c,n++}return o?e:null};var dt=t=>Object.fromEntries(Array.from(t.attributes).map(e=>[e.name,e.value])),pt=t=>({tag:t.tagName.toLowerCase(),attrs:dt(t),children:Array.from(t.childNodes).flatMap(e=>{if(e.nodeType===Node.TEXT_NODE){let n=e.textContent?.trim()??"";return n?[n]:[]}return e.nodeType===Node.ELEMENT_NODE?[pt(e)]:[]})}),x=(t,e,n)=>{try{return new Function("$scope",...Object.keys(n??{}),`with ($scope) { return (${t}); }`)(e,...Object.values(n??{}))}catch{return}},Ot=(t,e)=>t.replace(/{{\s*([\s\S]+?)\s*}}/g,(n,s)=>x(s,e)??""),ht=new Set([":attrs",":if",":elseif",":else",":each",":key",":with",":text",":html"]),jt=/^\s*(\w+)\s+in\s+([\s\S]+)$/,Mt=(t,e,n,s)=>{let[r,...o]=e.slice(1).split("."),i=new Set(o);t.addEventListener(r,c=>{if(i.has("self")&&c.target!==t)return;i.has("prevent")&&c.preventDefault(),i.has("stop")&&c.stopPropagation();let l=x(n,s,{$event:c});typeof l=="function"&&l.call(t,c)},{once:i.has("once"),capture:i.has("capture")})},at=t=>t.replace(/-(\w)/g,(e,n)=>n.toUpperCase()),lt=(t,e)=>{let n=e.replace(/-/g,"").toLowerCase();for(let s=t;s&&s!==Object.prototype;s=Object.getPrototypeOf(s))for(let r of Object.keys(s))if(/^[A-Z]/.test(r)&&r.replace(/-/g,"").toLowerCase()===n)return r;return null},ft=(t,e,n,s)=>{let r=document.createComment(t),o=document.createDocumentFragment();o.appendChild(r);let i={};Object.entries(e.attrs).forEach(([a,p])=>{if(!(a===G||ht.has(a)||a.startsWith("@")))if(a.startsWith(":")){let y=at(a.slice(1));i[y]=p||y}else i[at(a)]=JSON.stringify(p)});let c=null,l=null,h=null;return s.effect(()=>{let a=x(t,n),p=a instanceof _?a:null;if(p===l||(h?.dispose(),h=null,c?.destroy(),c=null,l=p,!p))return;let y=new _({template:p.template,scripts:p.scripts,styles:p.styles,modules:p.modules,filename:p.filename}),u=tt(()=>Object.fromEntries(Object.entries(i).map(([S,f])=>[S,x(f,n)]))),d=document.createDocumentFragment();y.render(u).mount(d),r.parentNode.insertBefore(d,r.nextSibling);let b=v(n);Object.entries(i).forEach(([S,f])=>{b.effect(()=>{y.data[S]=x(f,n)})}),h=b,c=y}),s.onDispose(()=>{h?.dispose(),c?.destroy()}),o},Dt=(t,e)=>{let n=()=>{let s=x(t,e);return s!==null&&typeof s=="object"?s:null};return new Proxy(e,{has(s,r){let o=n();return o!==null&&Reflect.has(o,r)||Reflect.has(s,r)},get(s,r){let o=n();return o!==null&&Reflect.has(o,r)?o[r]:Reflect.get(s,r)},set(s,r,o){let i=n();return i!==null&&Reflect.has(i,r)?(i[r]=o,!0):Reflect.set(s,r,o)}})},H=(t,e,n)=>{let s=t.attrs[":with"],r=s!==void 0?Dt(s,e):e,o=lt(r,t.tag);if(o)return ft(o,t,r,n);let i=document.createElement(t.tag);if(i instanceof HTMLUnknownElement||t.tag.includes("-")){let a=!1;n.effect(()=>{if(a)return;let p=lt(r,t.tag);p&&(a=!0,i.replaceWith(ft(p,t,r,n)))})}Object.entries(t.attrs).forEach(([a,p])=>{a.startsWith("@")?Mt(i,a,p,r):ht.has(a)||i.setAttribute(a,p)});let c=t.attrs[":attrs"];if(c!==void 0){let a=[];n.effect(()=>{a.forEach(y=>i.removeAttribute(y));let p=x(c,r);a=p&&typeof p=="object"?Object.keys(p):[],a.forEach(y=>{let u=p[y];u!=null&&u!==!1&&i.setAttribute(y,String(u))})})}let l=t.attrs[":text"],h=t.attrs[":html"];return l!==void 0?n.effect(()=>{i.textContent=String(x(l,r)??"")}):h!==void 0?n.effect(()=>{i.innerHTML=X(String(x(h,r)??""))}):i.appendChild(z(t.children,r,n)),i},kt=(t,e,n)=>{let s=document.createComment("if"),r=document.createDocumentFragment();r.appendChild(s);let o=null,i=null,c=null;return n.effect(()=>{let l=t.find(h=>h.expr===void 0||x(h.expr,e))??null;l!==i&&(c?.dispose(),o&&o.parentNode?.removeChild(o),o=null,i=l,l&&(c=v(e),o=H(l.node,e,c),s.parentNode.insertBefore(o,s.nextSibling)))}),r},U=(t,e,n)=>{Object.defineProperty(t,e,{value:n,writable:!0,enumerable:!0,configurable:!0})},Pt=(t,e,n)=>{let s=t.attrs[":each"].match(jt);if(!s)return document.createComment(`invalid :each expression "${t.attrs[":each"]}"`);let[,r,o]=s,i=t.attrs[":key"],{[":each"]:c,[":key"]:l,...h}=t.attrs,a={...t,attrs:h},p=document.createComment("each"),y=document.createDocumentFragment();y.appendChild(p);let u=[];return n.effect(()=>{let d=x(o,e),b=Array.isArray(d)?d:[],S=new Map(u.map(g=>[g.key,g])),f=b.map((g,R)=>{let $=Object.create(e);U($,r,g),U($,"$index",R);let C=i!==void 0?x(i,$):R,T=S.get(C);if(T&&Object.is(T.item,g))return U(T.scope,"$index",R),T;T?.fx.dispose(),T?.node.parentNode?.removeChild(T.node);let N=v(e);return{key:C,item:g,scope:$,fx:N,node:H(a,$,N)}}),m=new Set(f.map(g=>g.key));u.forEach(g=>{m.has(g.key)||(g.fx.dispose(),g.node.parentNode?.removeChild(g.node))});let E=p;f.forEach(g=>{E.nextSibling!==g.node&&p.parentNode.insertBefore(g.node,E.nextSibling),E=g.node}),u=f}),y},z=(t,e,n)=>{let s=document.createDocumentFragment(),r=0;for(;r<t.length;){let o=t[r];if(typeof o=="string"){let i=document.createTextNode("");n.effect(()=>{i.textContent=Ot(o,e)}),s.appendChild(i),r++;continue}if(":each"in o.attrs){s.appendChild(Pt(o,e,n)),r++;continue}if(":if"in o.attrs){let i=[{expr:o.attrs[":if"],node:o}];for(r++;r<t.length&&typeof t[r]!="string"&&":elseif"in t[r].attrs;){let c=t[r];i.push({expr:c.attrs[":elseif"],node:c}),r++}r<t.length&&typeof t[r]!="string"&&":else"in t[r].attrs&&(i.push({node:t[r]}),r++),s.appendChild(kt(i,e,n));continue}s.appendChild(H(o,e,n)),r++}return s},re=(t,e)=>z(t.template,e,v(e)),Ft=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]),Bt=/<([A-Za-z][\w-]*)((?:"[^"]*"|'[^']*'|[^>"'])*?)\/>/g,It=/(<script[\s\S]*?<\/script\s*>|<style[\s\S]*?<\/style\s*>)/gi,Wt=t=>t.split(It).map((e,n)=>n%2===1?e:e.replace(Bt,(s,r,o)=>Ft.has(r.toLowerCase())?s:`<${r}${o}></${r}>`)).join(""),G="data-jq79",qt=t=>{let e=2166136261;for(let n=0;n<t.length;n++)e=Math.imul(e^t.charCodeAt(n),16777619);return(e>>>0).toString(36)},mt=(t,e)=>{t.forEach(n=>{typeof n!="string"&&(n.attrs[G]=e,mt(n.children,e))})},Ut=(t,e)=>t.split(",").map(n=>{let s=n.trim(),r=s.indexOf("::"),o=r===-1?s:s.slice(0,r),i=r===-1?"":s.slice(r);return`${o}[${G}="${e}"]${i}`}).join(", "),gt=(t,e)=>{Array.from(t).forEach(n=>{n instanceof CSSStyleRule?n.selectorText=Ut(n.selectorText,e):n instanceof CSSGroupingRule&&gt(n.cssRules,e)})},Ht=(t,e)=>{/:deep\(|::v-deep|>>>/.test(t)&&console.warn("jq79: :deep()/::v-deep/>>> are not supported in <style scoped>; the rule will be dropped by the browser");let n=new CSSStyleSheet;return n.replaceSync(t),gt(n.cssRules,e),Array.from(n.cssRules).map(s=>s.cssText).join(`
6
+ `)},zt=t=>{let n=new DOMParser().parseFromString(`<template>${Wt(t)}</template>`,"text/html").querySelector("template"),s=[],r=[],o=[];Array.from(n.content.children).forEach(c=>{let l={attrs:dt(c),content:c.textContent??""};c.tagName==="SCRIPT"?s.push(l):c.tagName==="STYLE"?r.push(l):o.push(pt(c))}),r.forEach(c=>{"lang"in c.attrs&&console.warn(`jq79: <style lang="${c.attrs.lang}"> needs the jq79/vite plugin to compile it. This component didn't go through the bundler, so its styles were left uncompiled and the browser will ignore them.`)});let i=c=>"scoped"in c.attrs&&!("lang"in c.attrs);if(r.some(i)){let c=qt(t);mt(o,c),r.forEach(l=>{i(l)&&(l.scoped=Ht(l.content,c))})}return{template:o,scripts:s,styles:r}},K=t=>/\.html?([?#]|$)/.test(t)?_.fetch(t):import(t),yt=(t,e)=>t?`
7
+ //# sourceURL=${t}?jq79-script=${e}`:"",ut=t=>t.scoped??t.content,k=new Map,Gt=t=>{let e=k.get(t);if(!e){let n=document.createElement("style");n.textContent=t,document.head.appendChild(n),e={el:n,count:0},k.set(t,e)}e.count++},Kt=t=>{let e=k.get(t);e&&--e.count<=0&&(e.el.remove(),k.delete(t))},Et={$:A,$$:P,$create:F,$reactive:O},Vt=(t,e,n,s={},r=K,o={})=>{let i={...Et,...s},c=new Proxy(e,{has:(h,a)=>a!=="$__effect"&&a!=="$__import"&&(Reflect.has(h,a)||!(a in globalThis)&&!(a in i))});new Function("$scope","$__effect","$__import",...Object.keys(i),`return (async () => { with ($scope) { ${t} } })()${yt(o.filename,o.index??0)}`)(c,n,r,...Object.values(i)).catch(h=>console.error("jq79: error in :setup script",h))},Zt=t=>t&&t.default!==void 0?t.default:t,Xt=(t,e,n,s={},r=K,o={})=>{let i={...Et,...s},c={},l=new Function("$__exports","$__default","$__import",...Object.keys(i),`return (async () => { "use strict";
6
8
  ${t}
7
- ;$__exports.done = true })()`)(o,jt,s,...Object.values(i)),f=a=>console.error("jq79: error in factory script",a),h=!1,l=()=>{if(h)return;h=!0;let a=o.default;if(typeof a!="function")return;let d=p=>{p&&typeof p=="object"&&Object.assign(e,p)};try{let p=a({$data:e,$effect:n,...r});p instanceof Promise?p.then(d).catch(f):d(p)}catch(p){f(p)}};c.then(l,f),o.done&&l()},v=class t{constructor(e,n={}){b(this,"template");b(this,"scripts");b(this,"styles");b(this,"modules");b(this,"data",null);b(this,"fx",null);b(this,"content",null);b(this,"startMarker",null);b(this,"endMarker",null);b(this,"styleEls",[]);b(this,"ownsSharedStyles",!1);b(this,"useShadow",!1);b(this,"mountRoot",null);b(this,"resolveMounted",null);b(this,"emitListeners",new Map);let r=typeof e=="string"?Ot(e):e;this.template=r.template,this.scripts=r.scripts,this.styles=r.styles,this.modules=n.modules??(typeof e=="string"?void 0:e.modules)}static async fetch(e){let n=await fetch(e);if(!n.ok)throw new Error(`failed to fetch component from ${e}: ${n.status}`);return new t(await n.text())}on(e,n){return this.emitListeners.has(e)||this.emitListeners.set(e,new Set),this.emitListeners.get(e).add(n),this}off(e,n){return this.emitListeners.get(e)?.delete(n),this}render(e={}){return this.renderWith(e,!1)}renderShadow(e={}){return this.renderWith(e,!0)}renderWith(e,n){this.destroy();let r=_({...e}),s=T(r);this.data=r,this.fx=s,this.useShadow=n,this.startMarker=document.createComment("jq79"),this.endMarker=document.createComment("/jq79");let i=this.startMarker,o=(u,y)=>{let S=new CustomEvent(u,{detail:y,bubbles:!0,composed:!0}),x=i.dispatchEvent(S);return i===this.startMarker&&this.emitListeners.get(u)?.forEach(E=>E(S,y)),x},c,f=new Promise(u=>{c=u});this.resolveMounted=c;let h=()=>f,l=this.endMarker,a=u=>{let y=[];for(let S=i.nextSibling;S&&S!==l;S=S.nextSibling)S instanceof Element&&(S.matches(u)&&y.push(S),y.push(...Array.from(S.querySelectorAll(u))));return y},d=u=>a(u)[0]??null,p=this.modules,m=u=>p&&u in p?Promise.resolve(p[u]):U(u);this.scripts.forEach(u=>{let y={$emit:o,$mounted:h,$self:d,$$self:a},S=nt(u.content);if(S!==null){let w=":mounted"in u.attrs?`await $mounted();
8
- ${S}`:S;Pt(w,r,s.effect,y,m);return}let{vars:x,code:E}=et(u.content);x.forEach(w=>{w in r||(r[w]=void 0)});let N=":mounted"in u.attrs?`await $mounted();
9
- ${E}`:E;Dt(N,r,s.effect,y,m)});let g=document.createDocumentFragment();return g.append(this.startMarker,W(this.template,r,s),this.endMarker),this.content=g,n?this.styleEls=this.styles.map(u=>{let y=document.createElement("style");return y.textContent=u.content,y}):(this.styles.forEach(u=>At(u.content)),this.ownsSharedStyles=!0),this}mount(e,n){let r=typeof e=="string"?L(e):e;if(!r)throw new Error(`mount target not found: ${e}`);return(!this.content||n!==void 0)&&this.renderWith(n??{},this.useShadow),this.attach(r)}mountShadow(e,n){let r=typeof e=="string"?L(e):e;if(!r)throw new Error(`mount target not found: ${e}`);return(!this.content||n!==void 0||!this.useShadow)&&this.renderWith(n??{},!0),this.attach(r)}attach(e){this.mountRoot&&this.detach();let n=this.useShadow&&e instanceof Element?e.shadowRoot??e.attachShadow({mode:"open"}):e;return this.useShadow&&this.styleEls.forEach(r=>n.appendChild(r)),n.appendChild(this.content),this.mountRoot=n,this.resolveMounted?.(),this}detach(){if(!this.mountRoot||!this.content||!this.startMarker||!this.endMarker)return this;let e=this.startMarker;for(;e;){let n=e.nextSibling;if(this.content.appendChild(e),e===this.endMarker)break;e=n}return this.mountRoot=null,this}destroy(){return this.detach(),this.fx?.dispose(),this.fx=null,this.styleEls.forEach(e=>e.parentNode?.removeChild(e)),this.styleEls=[],this.ownsSharedStyles&&(this.styles.forEach(e=>Mt(e.content)),this.ownsSharedStyles=!1),this.content=null,this.startMarker=null,this.endMarker=null,this.data=null,this.resolveMounted=null,this}},zt=t=>new v(t);export{L as $,M as $$,D as $create,_ as $reactive,v as Component79,zt as parseComponent,qt as renderComponent};
9
+ ;$__exports.done = true })()${yt(o.filename,o.index??0)}`)(c,Zt,r,...Object.values(i)),h=y=>console.error("jq79: error in factory script",y),a=!1,p=()=>{if(a)return;a=!0;let y=c.default;if(typeof y!="function")return;let u=d=>{d&&typeof d=="object"&&Object.assign(e,d)};try{let d=y({$data:e,$effect:n,...s});d instanceof Promise?d.then(u).catch(h):u(d)}catch(d){h(d)}};l.then(p,h),c.done&&p()},_=class t{constructor(e,n={}){w(this,"template");w(this,"scripts");w(this,"styles");w(this,"modules");w(this,"filename");w(this,"data",null);w(this,"fx",null);w(this,"content",null);w(this,"startMarker",null);w(this,"endMarker",null);w(this,"styleEls",[]);w(this,"ownsSharedStyles",!1);w(this,"useShadow",!1);w(this,"mountRoot",null);w(this,"resolveMounted",null);w(this,"emitListeners",new Map);let s=typeof e=="string"?zt(e):e;this.template=s.template,this.scripts=s.scripts,this.styles=s.styles,this.modules=n.modules??(typeof e=="string"?void 0:e.modules),this.filename=n.filename??(typeof e=="string"?void 0:e.filename)}static async fetch(e){let n=await fetch(e);if(!n.ok)throw new Error(`failed to fetch component from ${e}: ${n.status}`);return new t(await n.text(),{filename:e})}on(e,n){return this.emitListeners.has(e)||this.emitListeners.set(e,new Set),this.emitListeners.get(e).add(n),this}off(e,n){return this.emitListeners.get(e)?.delete(n),this}render(e={}){return this.renderWith(e,!1)}renderShadow(e={}){return this.renderWith(e,!0)}renderWith(e,n){this.destroy();let s=O({...e}),r=v(s);this.data=s,this.fx=r,this.useShadow=n,this.startMarker=document.createComment("jq79"),this.endMarker=document.createComment("/jq79");let o=this.startMarker,i=(f,m)=>{let E=new CustomEvent(f,{detail:m,bubbles:!0,composed:!0}),g=o.dispatchEvent(E);return o===this.startMarker&&this.emitListeners.get(f)?.forEach(R=>R(E,m)),g},c,l=new Promise(f=>{c=f});this.resolveMounted=c;let h=()=>l,a=this.endMarker,p=f=>{let m=[];for(let E=o.nextSibling;E&&E!==a;E=E.nextSibling)E instanceof Element&&(E.matches(f)&&m.push(E),m.push(...Array.from(E.querySelectorAll(f))));return m},y=f=>p(f)[0]??null,u=this.modules,d=f=>u&&f in u?Promise.resolve(u[f]):K(f),b=f=>`await $mounted();${f}`;this.scripts.forEach((f,m)=>{let E={$emit:i,$mounted:h,$self:y,$$self:p},g={filename:this.filename,index:m},R=ct(f.content);if(R!==null){let N=":mounted"in f.attrs?b(R):R;Xt(N,s,r.effect,E,d,g);return}let{vars:$,code:C}=it(f.content);$.forEach(N=>{N in s||(s[N]=void 0)});let T=":mounted"in f.attrs?b(C):C;Vt(T,s,r.effect,E,d,g)});let S=document.createDocumentFragment();return S.append(this.startMarker,z(this.template,s,r),this.endMarker),this.content=S,n?this.styleEls=this.styles.map(f=>{let m=document.createElement("style");return m.textContent=f.content,m}):(this.styles.forEach(f=>Gt(ut(f))),this.ownsSharedStyles=!0),this}mount(e,n){let s=typeof e=="string"?A(e):e;if(!s)throw new Error(`mount target not found: ${e}`);return(!this.content||n!==void 0)&&this.renderWith(n??{},this.useShadow),this.attach(s)}mountShadow(e,n){let s=typeof e=="string"?A(e):e;if(!s)throw new Error(`mount target not found: ${e}`);return(!this.content||n!==void 0||!this.useShadow)&&this.renderWith(n??{},!0),this.attach(s)}attach(e){this.mountRoot&&this.detach();let n=this.useShadow&&e instanceof Element?e.shadowRoot??e.attachShadow({mode:"open"}):e;return this.useShadow&&this.styleEls.forEach(s=>n.appendChild(s)),n.appendChild(this.content),this.mountRoot=n,this.resolveMounted?.(),this}detach(){if(!this.mountRoot||!this.content||!this.startMarker||!this.endMarker)return this;let e=this.startMarker;for(;e;){let n=e.nextSibling;if(this.content.appendChild(e),e===this.endMarker)break;e=n}return this.mountRoot=null,this}destroy(){return this.detach(),this.fx?.dispose(),this.fx=null,this.styleEls.forEach(e=>e.parentNode?.removeChild(e)),this.styleEls=[],this.ownsSharedStyles&&(this.styles.forEach(e=>Kt(ut(e))),this.ownsSharedStyles=!1),this.content=null,this.startMarker=null,this.endMarker=null,this.data=null,this.resolveMounted=null,this}},oe=t=>new _(t);export{A as $,P as $$,F as $create,O as $reactive,_ as Component79,oe as parseComponent,re as renderComponent};
10
10
  //# sourceMappingURL=jq79.js.map