@lytjs/core 4.1.0 → 5.0.0

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.
@@ -1,2 +1,6 @@
1
- var S=Object.defineProperty;var W=Object.getOwnPropertyDescriptor;var q=Object.getOwnPropertyNames;var z=Object.prototype.hasOwnProperty;var K=(e,t)=>{for(var n in t)S(e,n,{get:t[n],enumerable:!0})},k=(e,t,n,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let c of q(t))!z.call(e,c)&&c!==n&&S(e,c,{get:()=>t[c],enumerable:!(a=W(t,c))||a.enumerable});return e},E=(e,t,n)=>(k(e,t,"default"),n&&k(n,t,"default"));var A={};K(A,{Fragment:()=>I,ShapeFlags:()=>x,createApp:()=>U,h:()=>v});import{isStringOrNumber as X,isArray as w,isVNode as V}from"@lytjs/common";var x=(f=>(f[f.ELEMENT=1]="ELEMENT",f[f.FUNCTIONAL_COMPONENT=2]="FUNCTIONAL_COMPONENT",f[f.STATEFUL_COMPONENT=4]="STATEFUL_COMPONENT",f[f.TEXT_CHILDREN=8]="TEXT_CHILDREN",f[f.ARRAY_CHILDREN=16]="ARRAY_CHILDREN",f[f.SLOTS_CHILDREN=32]="SLOTS_CHILDREN",f))(x||{}),I=Symbol("Fragment");function Y(e,t){if(t!=null)if(X(t))e.children=String(t),e.shapeFlag|=8;else if(w(t)){let n=[];for(let a=0;a<t.length;a++){let c=t[a];if(!(c==null||typeof c=="boolean"))if(w(c))for(let m=0;m<c.length;m++){let f=c[m];f!=null&&typeof f!="boolean"&&n.push(V(f)?f:T(String(f)))}else V(c)?n.push(c):n.push(T(String(c)))}e.children=n,e.shapeFlag|=16}else typeof t=="object"&&(e.children=t,e.shapeFlag|=32)}function T(e,t=null,n=null){var y,h;let a=0;typeof e=="string"?a=1:e===I?a=0:typeof e=="function"?a=2:typeof e=="object"&&e!==null&&(e.setup||e.__vccOpts||e.render)&&(a=4);let c=(y=t==null?void 0:t.key)!=null?y:null,m=(h=t==null?void 0:t.ref)!=null?h:null,f=t;if(t){let{key:b,ref:o,...i}=t;f=i}let g={type:e,props:f,children:null,key:c,ref:m,shapeFlag:a,el:null,component:null};return n!=null&&Y(g,n),g}function v(e,t,n){return T(e,t||null,n||null)}import{isPromise as j}from"@lytjs/common";function M(e){return Object.create(e||null)}function F(e){return e!==null&&typeof e=="object"&&typeof e.install=="function"}function D(e){return typeof e=="function"}function H(e,t,...n){if(F(t)){let a=t.onBeforeInstall?t.onBeforeInstall(e,...n):void 0;if(j(a))return a.then(()=>{let c=t.install(e,...n);if(j(c))return c.then(()=>{if(t.onInstalled)return t.onInstalled(e,...n)});if(t.onInstalled)return t.onInstalled(e,...n)});{let c=t.install(e,...n);if(j(c))return c.then(()=>{if(t.onInstalled)return t.onInstalled(e,...n)});if(t.onInstalled)return t.onInstalled(e,...n)}}else if(D(t))return t(e,...n)}function B(e,t){if(F(t)){if(typeof t.uninstall=="function")return t.uninstall(e)}else D(t)}import{effect as Z,stop as J}from"@lytjs/reactivity";import{compile as G}from"@lytjs/compiler";import{defineComponent as Q,createComponentInstance as ee,setupComponent as te,mountComponent as ne,updateComponent as oe,unmountComponent as re}from"@lytjs/component";import{createRenderer as ie}from"@lytjs/renderer";var se=100,_=new Map;function ae(e){let t=_.get(e);if(t)return _.delete(e),_.set(e,t),t;let{code:n}=G(e);if(t=new Function("h","_ctx",`return ${n}`),_.size>=se){let a=_.keys().next().value;a!==void 0&&_.delete(a)}return _.set(e,t),t}function le(e){let t={...e};if(e.state&&typeof e.state!="function"){let n=e.state;t.state=()=>({...n})}if(typeof e.render=="function"){let n=e.render;t.render=(a,c)=>n(a)}if(e.computed){let n={};for(let a of Object.keys(e.computed)){let c=e.computed[a];typeof c=="function"?n[a]={get:c}:n[a]=c}t.computed=n}if(typeof e.init=="function"){let n=e.init;t.init=function(a,c){return n.call(this,a)}}return t}function ce(){return{createElement(e){return document.createElement(e)},createText(e){return document.createTextNode(e)},createComment(e){return document.createComment(e)},setAttribute(e,t,n){e.setAttribute(t,String(n))},removeAttribute(e,t){e.removeAttribute(t)},setStyle(e,t){if(typeof t=="string")e.style.cssText=t;else if(t&&typeof t=="object")for(let n in t)e.style[n]=t[n]},setClass(e,t){if(typeof t=="string")e.className=t;else if(t&&typeof t=="object"){let n=[];for(let[a,c]of Object.entries(t))c&&n.push(a);e.className=n.join(" ")}else e.className=""},insert(e,t,n){n!=null?e.insertBefore(t,n):e.appendChild(t)},remove(e){e.parentNode&&e.parentNode.removeChild(e)},replace(e,t,n){e.replaceChild(n,t)},addEventListener(e,t,n,a){e.addEventListener(t,n,a)},removeEventListener(e,t,n){e.removeEventListener(t,n)},nextTick(e){Promise.resolve().then(e)},parentNode(e){return e.parentNode},nextSibling(e){return e.nextSibling},querySelector(e){return document.querySelector(e)}}}function U(e,t){let n=new Set,a={},c={},m=M(),f={},g={},y=null,h=null,b=null,o=null,i=!1,r=le(typeof e=="function"?{render:e}:e),u=Q(r),s={config:f,globalProperties:g,get _instance(){return y},mount(d){if(i)return s;let p;if(typeof d=="string"){if(p=document.querySelector(d),!p)throw new Error(`[Lyt] \u627E\u4E0D\u5230\u6302\u8F7D\u76EE\u6807: "${d}"`)}else p=d;o=p;let C=ce();h=ie(C),y=ee(u),te(y,t||{},null);let P=y.type;if(!P.render&&P.template){let N=ae(P.template);P.render=(R,$)=>N(R,$.renderProxy)}return ne(y,v),y.subTree&&h.mount(y.subTree,p),b=Z(()=>{if(!(!y||!y.isMounted||!h)&&(oe(y,v),y.subTree&&o)){let N=o.firstChild,R=y.subTree;o.innerHTML="",h.mount(R,o)}},{lazy:!0}),i=!0,s},unmount(){i&&(b&&(J(b),b=null),y&&re(y),o&&(o.innerHTML=""),y=null,h=null,o=null,i=!1)},use(d,...p){if(n.has(d))return s;n.add(d);let C=H({use:s.use.bind(s),unuse:s.unuse.bind(s),isInstalled:s.isInstalled.bind(s),provide:s.provide.bind(s),inject:s.inject.bind(s),config:f,globalProperties:g},d,...p);return C instanceof Promise?C.then(()=>s):s},unuse(d){if(!n.has(d))return s;n.delete(d);let p=B({use:s.use.bind(s),unuse:s.unuse.bind(s),isInstalled:s.isInstalled.bind(s),provide:s.provide.bind(s),inject:s.inject.bind(s),config:f,globalProperties:g},d);return p instanceof Promise?p.then(()=>s):s},isInstalled(d){return n.has(d)},provide(d,p){return m[d]=p,s},inject(d,p){let C=m[d];return C!==void 0?C:p},component(d,p){return p?(a[d]=p,s):a[d]},directive(d,p){return p?(c[d]=p,s):c[d]}};return s}E(A,Fe);import*as Fe from"@lytjs/common";function L(){return typeof globalThis.window!="undefined"&&typeof globalThis.document!="undefined"&&typeof globalThis.HTMLElement!="undefined"&&typeof globalThis.customElements!="undefined"}function ue(e){return e.replace(/-([a-z])/g,(t,n)=>n.toUpperCase())}function de(e){if(e===""||e==="true")return!0;if(e==="false")return!1;if(e==="null")return null;if(e==="undefined")return;let t=Number(e);if(!isNaN(t)&&e.trim()!=="")return t;if(e.startsWith("{")&&e.endsWith("}")||e.startsWith("[")&&e.endsWith("]"))try{return JSON.parse(e)}catch(n){}return e}function fe(e,t){return t&&t[e]?t[e]:ue(e)}function pe(e){let t=[],n=e;if(n.emits&&(Array.isArray(n.emits)?t.push(...n.emits):typeof n.emits=="object"&&t.push(...Object.keys(n.emits))),n.methods){for(let a of Object.keys(n.methods))if(a.startsWith("on")&&a.length>2){let c=a.charAt(2).toLowerCase()+a.slice(3);t.push(c)}}return t}function ye(e,t={}){let{shadowMode:n="open",styles:a="",propMappings:c,eventMappings:m={},attributeConverters:f={}}=t,g=t.observedAttributes||[],y=pe(e);return class extends HTMLElement{constructor(){super();this._shadowRoot=null;this._instance=null;this._props={};this._container=null;this._connected=!1;this._eventCleanups=[];this._effectCleanup=null;this._updateScheduled=!1}static get observedAttributes(){return g}connectedCallback(){if(!this._connected){if(this._connected=!0,this._shadowRoot=this.attachShadow({mode:n}),a){let o=document.createElement("style");o.textContent=a,this._shadowRoot.appendChild(o)}this._container=document.createElement("div"),this._shadowRoot.appendChild(this._container),this._syncAttributesToProps(),this._mountComponent(),this._forwardSlots()}}disconnectedCallback(){if(this._connected){this._connected=!1;for(let o of this._eventCleanups)o();this._eventCleanups=[],this._effectCleanup&&(this._effectCleanup(),this._effectCleanup=null),this._instance=null,this._container&&(this._container.innerHTML="")}}attributeChangedCallback(o,i,l){i!==l&&this._connected&&(this._syncAttributesToProps(),this._updateComponent())}_syncAttributesToProps(){let o={};for(let i of g)if(this.hasAttribute(i)){let l=this.getAttribute(i),r=fe(i,c);f[i]?o[r]=f[i](l):o[r]=de(l)}if(e.props){for(let[i,l]of Object.entries(e.props))if(o[i]===void 0){let r=l;r&&typeof r=="object"&&"default"in r?o[i]=typeof r.default=="function"?r.default():r.default:r==null}}this._props=o}_mountComponent(){let o=e.render?e.render:e.template?this._compileTemplate(e.template):null;if(!o)return;let i=this._createComponentContext(),l=o.call(i,v,i);l&&this._container&&this._renderVNode(l,this._container),this._setupReactiveUpdates(i,o)}_compileTemplate(o){try{let i=Function("return require")(),{compile:l}=i("../../compiler/src/index.ts"),{code:r}=l(o);return new Function("h","_ctx",`return ${r}`)}catch(i){return null}}_createComponentContext(){let o=e.state?typeof e.state=="function"?e.state():{...e.state}:{},i=e.computed||{},l=e.methods||{},r={...this._props,...o};for(let[u,s]of Object.entries(i))typeof s=="function"?Object.defineProperty(r,u,{get:s.bind(r),enumerable:!0}):s&&typeof s=="object"&&"get"in s&&Object.defineProperty(r,u,{get:s.get.bind(r),enumerable:!0});for(let[u,s]of Object.entries(l))typeof s=="function"&&(r[u]=s.bind(r));return r.emit=(u,...s)=>{let d=m[u]||u,p=new CustomEvent(d,{detail:s.length===1?s[0]:s,bubbles:!0,composed:!0});this.dispatchEvent(p)},r.$el=this._container,r.$attrs={...this._props},r.$slots=this._getSlotContent(),r}_setupReactiveUpdates(o,i){try{let l=Function("return require")(),{effect:r,stop:u}=l("../../reactivity/src/index.ts"),s=r(()=>{if(!this._connected||!this._container)return;let p=i.call(o,v,o);p&&(this._container.innerHTML="",this._renderVNode(p,this._container))},{lazy:!0}),d=e.state?typeof e.state=="function"?Object.keys(e.state()):Object.keys(e.state):[];for(let p of d){let C=o[p];Object.defineProperty(o,p,{get(){return C},set(P){C=P;try{s()}catch(N){}},enumerable:!0})}this._effectCleanup=()=>{try{u(s)}catch(p){}}}catch(l){let r=e.state?typeof e.state=="function"?Object.keys(e.state()):Object.keys(e.state):[];for(let u of r){let d=o[u],p=this;Object.defineProperty(o,u,{get(){return d},set(C){d=C,p._scheduleUpdate(o,i)},enumerable:!0})}}}_scheduleUpdate(o,i){this._updateScheduled||(this._updateScheduled=!0,Promise.resolve().then(()=>{if(this._updateScheduled=!1,!this._connected||!this._container)return;let l=i.call(o,v,o);l&&(this._container.innerHTML="",this._renderVNode(l,this._container))}))}_updateComponent(){if(!this._container)return;let o=e.render?e.render:e.template?this._compileTemplate(e.template):null;if(!o)return;let i=this._createComponentContext(),l=o.call(i,v,i);this._container.innerHTML="",l&&this._renderVNode(l,this._container)}_renderVNode(o,i){let l=this._vNodeToElement(o);l&&i.appendChild(l)}_vNodeToElement(o){if(!o)return null;if(typeof o.type=="symbol"){let i=document.createDocumentFragment();if(Array.isArray(o.children))for(let l of o.children){let r=this._vNodeToElement(l);r&&i.appendChild(r)}return i}if(typeof o.children=="string")return document.createTextNode(o.children);if(typeof o.type=="string"){let i=document.createElement(o.type);if(o.props)for(let[l,r]of Object.entries(o.props))if(l==="style"&&typeof r=="object")for(let[u,s]of Object.entries(r))i.style[u]=s;else if(l==="class"){if(typeof r=="string")i.className=r;else if(typeof r=="object"){let u=[];for(let[s,d]of Object.entries(r))d&&u.push(s);i.className=u.join(" ")}}else if(l.startsWith("on")&&typeof r=="function"){let u=l.slice(2).toLowerCase();i.addEventListener(u,r),this._eventCleanups.push(()=>{i.removeEventListener(u,r)})}else l==="ref"&&typeof r=="function"?r(i):i.setAttribute(l,String(r));if(Array.isArray(o.children))for(let l of o.children){let r=this._vNodeToElement(l);r&&i.appendChild(r)}else typeof o.children=="string"&&(i.textContent=o.children);return i}return typeof o.type=="object"||typeof o.type=="function"?o.component?this._vNodeToElement(o.component.subTree||o):document.createComment("component"):null}_forwardSlots(){if(!this._shadowRoot||!this._container)return;let o=this.querySelectorAll("[slot]");for(let l of o){let r=l.getAttribute("slot")||"default",u=document.createElement("slot");r!=="default"&&u.setAttribute("name",r),this._container.appendChild(u)}let i=document.createElement("slot");this._container.appendChild(i)}_getSlotContent(){var r;let o={},i=this.querySelectorAll("[slot]");for(let u of i){let s=u.getAttribute("slot")||"default";o[s]||(o[s]=[]),o[s].push(u.cloneNode(!0))}let l=[];for(let u of Array.from(this.childNodes))(r=u.hasAttribute)!=null&&r.call(u,"slot")||l.push(u.cloneNode(!0));return l.length>0&&(o.default=l),o}get _lytInstance(){return this._instance}get _lytProps(){return{...this._props}}}}function O(e,t,n){if(!e.includes("-"))throw new Error(`[Lyt Web Component] \u6807\u7B7E\u540D "${e}" \u5FC5\u987B\u5305\u542B\u8FDE\u5B57\u7B26 (-)\u3002\u8FD9\u662F Custom Element \u89C4\u8303\u7684\u8981\u6C42\u3002`);if(!L())return;let a=ye(t,n);customElements.define(e,a)}function me(e){for(let{tagName:t,component:n,options:a}of e)O(t,n,a)}function ge(e){if(L())try{let t=customElements;t.__unregister&&t.__unregister(e)}catch(t){}}async function he(e,t,n){let a=t.match(/<template>([\s\S]*?)<\/template>/),c=t.match(/<script[^>]*>([\s\S]*?)<\/script>/),m=/<style[^>]*>([\s\S]*?)<\/style>/g,f=[],g;for(;(g=m.exec(t))!==null;)f.push(g);let y=(n==null?void 0:n.styles)||"";for(let i of f)y+=i[1]+`
2
- `;let h=a?a[1].trim():void 0,b={};if(c){let i=c[1].trim();if(i.match(/export\s+default\s*(\{[\s\S]*\}|\([\s\S]*\)[\s\S]*?\))/))try{let r={},u={exports:r};new Function("module","exports",`"use strict"; ${i.replace(/export\s+default\s*/,"module.exports =")}`)(u,r),b=u.exports||r}catch(r){}}let o={...n,styles:y};h&&!b.template&&!b.render&&(b.template=h),O(e,b,o)}export{O as defineCustomElement,he as defineCustomElementFromSFC,L as isBrowser,me as registerComponents,ge as unregisterElement};
1
+ var tt=Object.defineProperty;var hn=Object.getOwnPropertyDescriptor;var gn=Object.getOwnPropertyNames;var yn=Object.prototype.hasOwnProperty;var v=(e,t)=>()=>(e&&(t=e(e=0)),t);var ye=(e,t)=>{for(var n in t)tt(e,n,{get:t[n],enumerable:!0})},et=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of gn(t))!yn.call(e,o)&&o!==n&&tt(e,o,{get:()=>t[o],enumerable:!(r=hn(t,o))||r.enumerable});return e},G=(e,t,n)=>(et(e,t,"default"),n&&et(n,t,"default"));function O(e,t,n,r){return{start:e,end:t,line:n,column:r}}function ne(e){return{type:"Root",children:[],helpers:new Set,loc:e}}function re(e,t,n=!1){return{type:"Element",tag:e,props:[],children:[],isComponent:/^[A-Z]/.test(e),directives:[],staticFlag:-1,isSelfClosing:n,loc:t}}function oe(e,t){return{type:"Text",content:e,isExpression:/\{\{.*?\}\}/s.test(e),staticFlag:-1,loc:t}}function ie(e,t,n){return{type:"Attribute",name:e,value:t,isDynamic:/^:|^v-bind:/.test(e),isEvent:/^@|^v-on:/.test(e),loc:n}}function R(e,t,n="",r=[],o={start:0,end:0,line:1,column:1}){return{type:"Directive",name:e,value:t,arg:n,modifiers:r,loc:o}}var Ce=v(()=>{"use strict"});function Re(e){let t=new Se(e);for(;!t.isEOF();)switch(t.state){case 0:Dn(t);break;case 1:Ln(t);break;case 2:Mn(t);break;case 3:Bn(t);break;case 4:Vn(t);break;case 5:$n(t);break}return ft(t),t.root}function Dn(e){for(e.textBuffer===""&&(e.textStart=e.pos);!e.isEOF();){let t=e.peek();if(t==="<"){ft(e),e.advance(),e.state=1;return}if(t==="{"&&e.peekAt(1)==="{"){for(e.textBuffer+=e.advance(),e.textBuffer+=e.advance();!e.isEOF();){let n=e.peek();if(e.textBuffer+=e.advance(),n==="}"&&e.peek()==="}"){e.textBuffer+=e.advance();break}}continue}e.textBuffer+=e.advance()}}function Ln(e){if(e.skipWhitespace(),e.startsWith("!--")){e.state=5,e.commentBuffer="",e.advance(),e.advance(),e.advance();return}e.peek()==="/"?(e.isClosingTag=!0,e.advance()):e.isClosingTag=!1,e.tagNameBuffer="",e.tagNameStart=e.pos,e.state=2}function Mn(e){for(;!e.isEOF();){let r=e.peek();if(/\s/.test(r)||r===">"||r==="/")break;e.tagNameBuffer+=e.advance()}if(e.isClosingTag){e.state=4;return}let t=O(e.tagNameStart,e.pos,e.line,e.column-e.tagNameBuffer.length),n=re(e.tagNameBuffer.toLowerCase(),t);e.currentElement=n,e.state=3}function Bn(e){if(e.skipWhitespace(),e.isEOF())return;let t=e.peek();if(t===">"){e.advance(),ut(e);return}if(t==="/"&&e.peekAt(1)===">"){e.advance(),e.advance(),ut(e,!0);return}e.attrNameBuffer="",e.attrValueBuffer="",e.inAttrValue=!1,e.attrValueQuote="";let n=e.pos;for(;!e.isEOF();){let i=e.peek();if(/\s/.test(i)||i==="="||i===">"||i==="/")break;e.attrNameBuffer+=e.advance()}if(e.skipWhitespace(),e.peek()==="="){e.advance(),e.skipWhitespace();let i=e.peek();if(i==='"'||i==="'")for(e.attrValueQuote=i,e.advance(),e.inAttrValue=!0;!e.isEOF();){if(e.peek()===e.attrValueQuote){e.advance(),e.inAttrValue=!1;break}e.attrValueBuffer+=e.advance()}else for(;!e.isEOF();){let s=e.peek();if(/\s/.test(s)||s===">"||s==="/")break;e.attrValueBuffer+=e.advance()}}let r=O(n,e.pos,e.line,e.column),o=Wn(e.attrNameBuffer,e.attrValueBuffer||null,r);e.currentElement&&(o.type==="Directive"?e.currentElement.directives.push(o):e.currentElement.props.push(o))}function Vn(e){e.skipWhitespace(),e.peek()===">"&&e.advance();let t=e.tagNameBuffer.toLowerCase(),n=!1;for(let r=e.parentStack.length-1;r>=0;r--)if(e.parentStack[r].tag===t){e.parentStack.splice(r),e.currentElement=e.parentStack.length>0?e.parentStack[e.parentStack.length-1]:null,n=!0;break}e.state=0}function $n(e){for(;!e.isEOF();){if(e.startsWith("-->")){e.advance(),e.advance(),e.advance(),e.state=0;return}e.commentBuffer+=e.advance()}}function ft(e){let t=e.textBuffer.trim();if(t.length===0){e.textBuffer="";return}let n=oe(t,O(e.textStart,e.pos,e.line,e.column));e.currentElement?e.currentElement.children.push(n):e.root.children.push(n),e.textBuffer=""}function ut(e,t=!1){if(!e.currentElement)return;e.currentElement.isSelfClosing=t;let n=Fn.has(e.currentElement.tag),r=e.parentStack.length>0?e.parentStack[e.parentStack.length-1]:null;r?r.children.push(e.currentElement):e.root.children.push(e.currentElement),!t&&!n?e.parentStack.push(e.currentElement):e.currentElement=r,e.state=0}function Wn(e,t,n){if(e.startsWith("v-")){let r=e.slice(2);if(r.startsWith("on")){let s=r.slice(2),f=s.indexOf("."),p=s,m=[];return f!==-1&&(p=s.slice(0,f),m.push(...s.slice(f+1).split("."))),R("on",t||"",p,m,n)}if(r.startsWith("bind")){let s=r.slice(4).replace(/^:/,"");return R("bind",t||"",s,[],n)}if(r.startsWith("slot")){let s=r.slice(4).replace(/^:/,"");return R("slot",t||"",s,[],n)}if(r==="model")return R("bind",t||"","model",[],n);if(r==="ref")return R("ref",t||"","",[],n);let o=r.indexOf(":"),i=o!==-1?r.slice(0,o):r;if(jn.has(i)){let s=o!==-1?r.slice(o+1):"";return R(i,t||"",s,[],n)}}if(e.startsWith(":")){let r=e.slice(1);return R("bind",t||"",r,[],n)}if(e.startsWith("@")){let r=e.slice(1),o=r.indexOf("."),i=r,s=[];return o!==-1&&(i=r.slice(0,o),s.push(...r.slice(o+1).split("."))),R("on",t||"",i,s,n)}if(e.startsWith("#")){let r=e.slice(1);return R("slot",t||"",r,[],n)}return ie(e,t,n)}var Fn,jn,Se,pt=v(()=>{"use strict";Ce();Fn=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]),jn=new Set(["if","each","bind","on","slot","ref"]),Se=class{constructor(t){this.template=t,this.pos=0,this.line=1,this.column=1,this.state=0,this.root=ne(O(0,t.length,1,1)),this.currentElement=null,this.parentStack=[],this.textBuffer="",this.textStart=0,this.tagNameBuffer="",this.tagNameStart=0,this.attrNameBuffer="",this.attrValueBuffer="",this.attrValueQuote="",this.inAttrValue=!1,this.commentBuffer="",this.isClosingTag=!1}currentPos(){return O(this.pos,this.pos,this.line,this.column)}advance(){let t=this.template[this.pos++];return t===`
2
+ `?(this.line++,this.column=1):this.column++,t}peek(){return this.template[this.pos]||""}peekAt(t){return this.template[this.pos+t]||""}isEOF(){return this.pos>=this.template.length}startsWith(t){return this.template.substring(this.pos,this.pos+t.length)===t}skipWhitespace(){for(;!this.isEOF()&&/\s/.test(this.peek());)this.advance()}}});function Ne(e,t={}){let n=new U(e,t),r=[Hn,Kn,Gn,Un,Yn,zn],o=[...t.nodeTransforms||[],...r];se(e,n,o),_e(e,n)}function se(e,t,n){t.parent=e;for(let r of n){let o=r(e,t);if(o&&t.onExitCallbacks.push(i=>o()),t.replaceNode){let i=t.replaceNode;t.replaceNode=null,se(i,t,n);return}if(t.removeNode){t.removeNode=null;return}}switch(e.type){case"Root":for(let r=0;r<e.children.length;r++)t.childIndex=r,se(e.children[r],t,n);break;case"Element":for(let r=0;r<e.children.length;r++)t.childIndex=r,se(e.children[r],t,n);break}}function _e(e,t){let n=t.onExitCallbacks.splice(0);for(let r of n)r(e);switch(e.type){case"Root":for(let r of e.children)_e(r,t);break;case"Element":for(let r of e.children)_e(r,t);break}}function Hn(e,t){if(e.type!=="Element")return;let n=e.directives.find(r=>r.name==="if");n&&(Object.assign(e,{ifCondition:n.value,ifBranches:[]}),t.root.helpers.add("createConditionalVNode"),e.directives=e.directives.filter(r=>r!==n))}function Kn(e,t){if(e.type!=="Element")return;let n=e.directives.find(o=>o.name==="each");if(!n)return;let r=Xn(n.value);r&&(Object.assign(e,{eachInfo:r}),t.root.helpers.add("renderList")),e.directives=e.directives.filter(o=>o!==n)}function Gn(e,t){if(e.type!=="Element")return;let n=e.directives.filter(o=>o.name==="bind");if(n.length===0)return;let r=[];for(let o of n){let i=o.arg==="model";r.push({arg:o.arg,value:o.value,isModel:i}),i&&t.root.helpers.add("createModelBinding")}Object.assign(e,{bindings:r}),e.directives=e.directives.filter(o=>o.name!=="bind")}function Un(e,t){if(e.type!=="Element")return;let n=e.directives.filter(o=>o.name==="on");if(n.length===0)return;let r=[];for(let o of n)r.push({name:o.arg,value:o.value,modifiers:o.modifiers}),t.root.helpers.add("createEventHandler");Object.assign(e,{events:r}),e.directives=e.directives.filter(o=>o.name!=="on")}function Yn(e,t){if(e.type!=="Element")return;let n=e.directives.find(r=>r.name==="slot");n&&(Object.assign(e,{slotInfo:{name:n.arg||"default",value:n.value}}),t.root.helpers.add("renderSlot"),e.directives=e.directives.filter(r=>r!==n))}function zn(e,t){if(e.type!=="Element")return;let n=e.directives.find(r=>r.name==="ref");n&&(Object.assign(e,{refInfo:{name:n.value}}),t.root.helpers.add("createRef"),e.directives=e.directives.filter(r=>r!==n))}function Xn(e){let t=e.match(/^\s*(?:\((\w+)\s*,\s*(\w+)\)|(\w+))\s+(?:in|of)\s+(\S+)\s*$/);return t?{item:t[1]||t[3],index:t[2]||"",collection:t[4]}:null}var U,we=v(()=>{"use strict";U=class{constructor(t,n={}){this.root=t,this.parent=null,this.childIndex=0,this.options={markStatic:!0,...n},this.onExitCallbacks=[],this.replaceNode=null,this.removeNode=null}}});function xe(e){let t={hoistedNodes:[],hoistedNames:[]},n=0;for(let r of e.children)dt(r,t,()=>(n++,`_hoisted_${n}`));return t}function dt(e,t,n){switch(e.type){case"Text":return qn(e,t,n);case"Element":return Jn(e,t,n);default:return!1}}function qn(e,t,n){return e.isExpression?(e.staticFlag=0,!1):(e.staticFlag=1,!0)}function Jn(e,t,n){if(e.directives.length>0)return e.staticFlag=0,!1;let r=e;if(r.ifCondition||r.eachInfo||r.bindings&&r.bindings.length>0||r.events&&r.events.length>0||r.slotInfo||r.refInfo)return e.staticFlag=0,!1;for(let i of e.props)if(i.isDynamic||i.isEvent)return e.staticFlag=0,!1;let o=!0;for(let i of e.children)dt(i,t,n)||(o=!1);if(o){if(e.staticFlag=1,e.children.length>0){let i=n();t.hoistedNodes.push(e),t.hoistedNames.push(i),e.hoistedName=i}return!0}return e.staticFlag=0,!1}function ke(e){if(e.type==="Text")return!e.isExpression;if(e.type==="Element"){if(e.staticFlag!==-1)return e.staticFlag===1;let t=e;if(e.directives.length>0||t.ifCondition||t.eachInfo||t.bindings&&t.bindings.length>0||t.events&&t.events.length>0||t.slotInfo||t.refInfo)return!1;for(let n of e.props)if(n.isDynamic||n.isEvent)return!1;for(let n of e.children)if(!ke(n))return!1;return!0}return!1}var mt=v(()=>{"use strict"});var Ae,ht=v(()=>{"use strict";Ae=(l=>(l[l.TEXT=1]="TEXT",l[l.CLASS=2]="CLASS",l[l.STYLE=4]="STYLE",l[l.PROPS=8]="PROPS",l[l.FULL_PROPS=16]="FULL_PROPS",l[l.EVENT=32]="EVENT",l[l.SLOTS=64]="SLOTS",l[l.STABLE_FRAGMENT=128]="STABLE_FRAGMENT",l[l.KEYED_FRAGMENT=256]="KEYED_FRAGMENT",l[l.UNKEYED_FRAGMENT=512]="UNKEYED_FRAGMENT",l[l.NEED_PATCH=1024]="NEED_PATCH",l[l.DYNAMIC_SLOTS=2048]="DYNAMIC_SLOTS",l[l.HOISTED=-1]="HOISTED",l[l.BAIL=-2]="BAIL",l))(Ae||{})});function Fe(e,t={}){let n=new ae;if(Qn(e,n),n.hoistedDecls.length>0){for(let r of n.hoistedDecls)n.pushLine(r);n.newline()}return Zn(e.children,n),{code:n.code,hoisted:n.hoistedDecls,helpers:Array.from(n.helpers.keys())}}function Qn(e,t){t.helpers.set("h","Lyt");for(let n of e.helpers)switch(n){case"createConditionalVNode":break;case"renderList":t.helpers.set("renderList","Lyt");break;case"createModelBinding":break;case"createEventHandler":break;case"renderSlot":t.helpers.set("renderSlot","Lyt");break;case"createRef":break;default:t.helpers.set(n,"Lyt")}}function Zn(e,t){if(e.length===0){t.push("null");return}if(e.length===1){Oe(e[0],t);return}t.push("["),t.indentIn();for(let n=0;n<e.length;n++)n>0&&t.pushLine(","),Oe(e[n],t);t.indentOut(),t.pushLine(""),t.push("]")}function Oe(e,t){switch(e.type){case"Element":er(e,t);break;case"Text":or(e,t);break}}function er(e,t){let n=e;if(n.ifCondition){let r=n.ifCondition;t.push(`(${x(r)} ? (`),Pe(e,t),t.push(") : null)");return}if(n.eachInfo){let r=n.eachInfo;t.push(`renderList(${x(r.collection)}, (${r.item}`),r.index&&t.push(`, ${r.index}`),t.push(") => "),Pe(e,t),t.push(")");return}Pe(e,t)}function Pe(e,t){let n=e,r=tr(e,t),o=rr(e.children,t),i=e.isComponent?e.tag:`'${e.tag}'`;t.push(`h(${i}`),t.push(r?`, ${r}`:", null"),o&&o!=="null"&&t.push(`, ${o}`),t.push(")")}function tr(e,t){let n=e,r=[],o=nr(e);if(o&&r.push(o),n.bindings){let i=n.bindings;for(let s of i)s.isModel?r.push(`model: { value: ${x(s.value)}, callback: $event => ${x(s.value)} = $event }`):r.push(`'${s.arg}': ${x(s.value)}`)}if(n.events){let i=n.events;for(let s of i){let f=`on${cr(s.name)}`,p=x(s.value);if(s.modifiers.length>0){let m=s.modifiers.map(g=>{switch(g){case"stop":return"$event.stopPropagation()";case"prevent":return"$event.preventDefault()";case"capture":return null;case"once":return null;default:return null}}).filter(Boolean);m.length>0&&(p=`($event) => { ${m.join("; ")}; ${x(s.value)}($event) }`)}r.push(`'${f}': ${p}`)}}if(n.refInfo){let i=n.refInfo;r.push(`ref: '${i.name}'`)}if(n.slotInfo){let i=n.slotInfo;r.push(`'slot': '${i.name}'`)}return r.length===0?"":`{ ${r.join(", ")} }`}function nr(e){let t=[];for(let n of e.props)n.isDynamic||n.isEvent||(n.value===null?t.push(`'${n.name}': true`):t.push(`'${n.name}': '${Ie(n.value)}'`));return t.join(", ")}function rr(e,t){if(e.length===0)return"";let n=[],r=new ae;for(let o of e)Oe(o,r),n.push(r.code),r.code="";return n.length===0?"":n.length===1?n[0]:`[${n.join(", ")}]`}function or(e,t){if(!e.isExpression){t.push(`'${Ie(e.content)}'`);return}let n=lr(e.content);if(n.length===1&&n[0].type==="expression"){t.push(x(n[0].value));return}let r=n.map(o=>o.type==="text"?`'${Ie(o.value)}'`:x(o.value));t.push(r.join(" + "))}function lr(e){let t=[],n=/\{\{([\s\S]*?)\}\}/g,r=0,o;for(;(o=n.exec(e))!==null;)o.index>r&&t.push({type:"text",value:e.slice(r,o.index)}),t.push({type:"expression",value:o[1].trim()}),r=n.lastIndex;return r<e.length&&t.push({type:"text",value:e.slice(r)}),t}function x(e){if(e=e.trim(),e.startsWith("_ctx."))return e;if(/^\w+(\.\w+)*$/.test(e))return`_ctx.${e}`;if(e.match(/^(\w+(?:\.\w+)*)\s*\(/))return`_ctx.${e}`;if(e.includes("=>"))return e;let n=[],r=e.replace(/(['"`])(?:(?!\1|\\).|\\.)*\1/g,o=>(n.push(o),`__PH${n.length-1}__`));r=r.replace(/(?<!_ctx\.)(?<!\w)(\w+(?:\.\w+)*)/g,o=>ir.has(o)||sr.has(o)||ar.has(o)||/^\d/.test(o)||/^__PH\d+__$/.test(o)?o:`_ctx.${o}`);for(let o=0;o<n.length;o++)r=r.replace(`__PH${o}__`,n[o]);return r}function Ie(e){return e.replace(/\\/g,"\\\\").replace(/'/g,"\\'").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t")}function cr(e){return e.split("-").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join("")}var ae,ir,sr,ar,gt=v(()=>{"use strict";ae=class{constructor(){this.code="",this.indentLevel=0,this.indent=" ",this.needsNewline=!0,this.helpers=new Map,this.hoistedDecls=[]}push(t){this.needsNewline&&(this.code+=this.indent.repeat(this.indentLevel),this.needsNewline=!1),this.code+=t}pushLine(t){this.push(t),this.newline()}newline(){this.code+=`
3
+ `,this.needsNewline=!0}indentIn(){this.indentLevel++}indentOut(){this.indentLevel--}};ir=new Set(["true","false","null","undefined","this","super","new","delete","typeof","instanceof","in","of","void","throw","return","yield","await","async","if","else","for","while","do","switch","case","break","continue","try","catch","finally","class","extends","import","export","from","default","var","let","const","function","debugger"]),sr=new Set(["console","window","document","Math","JSON","Date","Array","Object","String","Number","Boolean","RegExp","Error","TypeError","RangeError","SyntaxError","Map","Set","WeakMap","WeakSet","Promise","Symbol","Proxy","Reflect","parseInt","parseFloat","isNaN","isFinite","NaN","Infinity"]),ar=new Set(["$event","$refs","$el","$emit","$slots","$parent","$root"])});function dr(e){let t={};if(!e||!e.trim())return t;vt.lastIndex=0;let n;for(;(n=vt.exec(e))!==null;){let r=n[1],o=n[2]!==void 0?n[2]:n[3]!==void 0?n[3]:n[4]!==void 0?n[4]:"";t[r]=o}return t}function mr(e,t,n,r){let o=1,i=r;for(;i<e.length&&o>0;){let s=e.slice(i).search(t),f=e.indexOf(n,i);if(f===-1)return-1;if(s!==-1&&s+i<f)o++,i=s+i+1;else{if(o--,o===0)return f+n.length;i=f+n.length}}return-1}function je(e,t,n){t.lastIndex=0;let r=t.exec(e);if(!r)return null;let o=r.index,i=r[1]||"",s=dr(i),f=r.index+r[0].length,p=mr(e,t,n,f);return p===-1?null:{content:e.slice(f,p-n.length).trim(),start:o,end:p,attrs:s}}function Y(e,t="anonymous.lyt"){let n=e.replace(ur,""),r=je(n,fr,"</template>"),o=r?{type:"template",content:r.content,start:r.start,end:r.end,attrs:r.attrs}:null,i=je(n,pr,"<\/script>"),s=i?{type:"script",content:i.content,start:i.start,end:i.end,attrs:i.attrs}:null,f=[],p=n;for(yt.lastIndex=0;;){let m=je(p,yt,"</style>");if(!m)break;f.push({type:"style",content:m.content,start:m.start,end:m.end,attrs:m.attrs,scoped:"scoped"in m.attrs}),p=p.slice(m.end)}return{filename:t,template:o,script:s,styles:f}}function De(e){bt.lastIndex=0;let t=bt.exec(e);return t?t[1].trim():null}var ur,fr,pr,yt,bt,vt,le=v(()=>{"use strict";ur=/<!--[\s\S]*?-->/g,fr=/<template(\s[^>]*)?\s*>/,pr=/<script(\s[^>]*)?\s*>/,yt=/<style(\s[^>]*)?\s*>/,bt=/export\s+default\s*\{([\s\S]*?)\}\s*$/,vt=/(\w[\w-]*)(?:\s*=\s*(?:"([^"]*)"|'([^']*)'|(\S+)))?/g});function gr(e,t){let n=5381,r=e+"\0"+t;for(let o=0;o<r.length;o++)n=(n<<5)+n+r.charCodeAt(o)&4294967295;return hr+(n>>>0).toString(16).slice(0,6)}function z(e,t){let n="",r=0,o=e.length;for(;r<o;){if(e[r]==="@"){let m=e.slice(r).match(/^@([\w-]+)/);if(m){let g=m[1];if(["keyframes","-webkit-keyframes","-moz-keyframes","font-face"].includes(g)){let c=e.indexOf("{",r+m[0].length);if(c!==-1){let d=Le(e,c+1);if(d!==-1){n+=e.slice(r,d),r=d;continue}}}if(["media","supports","document"].includes(g)){let c=e.indexOf("{",r+m[0].length);if(c!==-1){let d=Le(e,c+1);if(d!==-1){let l=e.slice(r,c+1),h=e.slice(c+1,d-1),u=z(h,t);n+=l+u+"}",r=d;continue}}}let a=e.indexOf(";",r);if(a!==-1){n+=e.slice(r,a+1),r=a+1;continue}}}let i=e.indexOf("{",r);if(i===-1){n+=e.slice(r);break}let s=e.slice(r,i).trim();if(!s){n+=e.slice(r,i+1),r=i+1;continue}let f=Le(e,i+1);if(f===-1){n+=e.slice(r);break}let p=yr(s,t);n+=p+e.slice(i,f),r=f}return n}function Le(e,t){let n=1,r=t;for(;r<e.length&&n>0;)e[r]==="{"?n++:e[r]==="}"&&n--,r++;return n===0?r:-1}function yr(e,t){return br(e).map(r=>vr(r.trim(),t)).join(", ")}function br(e){let t=[],n=0,r="";for(let o=0;o<e.length;o++){let i=e[o];i==="("?(n++,r+=i):i===")"?(n--,r+=i):i===","&&n===0?(t.push(r),r=""):r+=i}return r.trim()&&t.push(r),t}function vr(e,t){let n=/(::(?:before|after|first-line|first-letter|selection|placeholder|backdrop|marker|spelling-error|grammar-error)[\s\S]*)$/,r=e.match(n),o=e,i="";r&&(o=e.slice(0,e.length-r[0].length),i=r[0]);let s=/(:(?:hover|focus|active|visited|link|first-child|last-child|nth-child\([^)]*\)|nth-of-type\([^)]*\)|not\([^)]*\)|root|empty|checked|disabled|enabled|valid|invalid|required|optional|read-only|read-write)[\s\S]*)$/,f=o.match(s),p=o,m="";return f&&(p=o.slice(0,o.length-f[0].length),m=f[0]),p=p.replace(/\s+$/,""),`${p}[${t}]${m}${i}`}function Me(e){let{template:t,script:n,styles:r,filename:o}=e,i=[(t==null?void 0:t.content)||"",(n==null?void 0:n.content)||"",...r.map(a=>a.content)].join("\0"),s=gr(o,i),f="null";t&&(f=`function(_ctx) { return ${Be(t.content).code} }`);let p="{}";if(n){let a=De(n.content);a&&(p=`{ ${a} }`)}let m=[];for(let a of r){let c=a.content;a.scoped&&(c=z(c,s)),m.push(c)}return{code:Tr(f,p,s,m),styles:m,scopedId:s}}function Tr(e,t,n,r){let o=[];if(o.push("// Generated by Lyt.js SFC Compiler"),o.push(""),o.push(`const _sfcId = '${n}'`),o.push(""),r.length>0){o.push("const _styles = [");for(let i of r)o.push(` ${JSON.stringify(i)},`);o.push("]"),o.push(""),o.push("function _injectStyles() {"),o.push(" if (typeof document === 'undefined') {"),o.push(" throw new Error('[Lyt Compiler] SFC \u7F16\u8BD1\u9700\u8981 DOM \u73AF\u5883')"),o.push(" }"),o.push(" for (const css of _styles) {"),o.push(' const style = document.createElement("style")'),o.push(' style.setAttribute("data-sfc-id", _sfcId)'),o.push(" style.textContent = css"),o.push(" document.head.appendChild(style)"),o.push(" }"),o.push("}"),o.push(""),o.push("_injectStyles()"),o.push("")}return o.push("export default {"),o.push(" __sfcId: _sfcId,"),o.push(` render: ${e},`),o.push(` ...${t},`),o.push("}"),o.join(`
4
+ `)}var hr,Tt=v(()=>{"use strict";Ve();le();hr="data-v-"});var Et=v(()=>{"use strict";le();Tt()});function Er(e){let t=e.match(/props:\s*(\{[^}]+\}|\[[^\]]+\])/);return t?t[1]:null}function Cr(e){let t=e.match(/emits:\s*(\{[^}]+\}|\[[^\]]+\])/);return t?t[1]:null}function $e(e,t={}){let{filename:n="Component"}=t,r=n.replace(/\.lyt$/,""),o=[];if(o.push("/**"),o.push(` * ${r} \u7EC4\u4EF6\u7C7B\u578B\u58F0\u660E`),o.push(" * \u7531 @lytjs/compiler \u81EA\u52A8\u751F\u6210"),o.push(" */"),o.push(""),o.push("export interface ComponentProps {"),e.script){let i=Er(e.script.content);i&&o.push(` // Props \u5B9A\u4E49: ${i}`)}if(o.push(" [key: string]: any;"),o.push("}"),o.push(""),o.push("export interface ComponentEmits {"),e.script){let i=Cr(e.script.content);i&&o.push(` // Emits \u5B9A\u4E49: ${i}`)}return o.push(" [key: string]: (...args: any[]) => any;"),o.push("}"),o.push(""),o.push("/**"),o.push(" * \u7EC4\u4EF6\u7C7B\u578B\u5B9A\u4E49"),o.push(" */"),o.push("declare const component: import('@lytjs/component').ComponentDefine;"),o.push(""),o.push("export default component;"),o.join(`
5
+ `)}function We(e,t="Component.lyt"){let n=Y(e,t);return $e(n,{filename:t,generateDts:!0})}function Ct(){return{name:"lytjs-types",transform(e,t){if(t.endsWith(".lyt")){let n=We(e,t);return{code:e,map:null,dts:n}}return null}}}var St=v(()=>{"use strict";le()});var Rt={};ye(Rt,{CompilerPatchFlags:()=>Ae,TransformContext:()=>U,compile:()=>Be,compileSFC:()=>Me,createAttributeNode:()=>ie,createDirectiveNode:()=>R,createElementNode:()=>re,createPosition:()=>O,createRootNode:()=>ne,createTextNode:()=>oe,createTypePlugin:()=>Ct,generate:()=>Fe,generateDtsForLytFile:()=>We,generateTypeDeclarations:()=>$e,isStatic:()=>ke,optimize:()=>xe,parseHTML:()=>Re,parseSFC:()=>Y,scopeCSS:()=>z,transform:()=>Ne});function Be(e,t={}){let n=Re(e);Ne(n,t.transform);let r=xe(n),o=Fe(n,t.codegen);return{code:o.code,ast:n,hoistResult:r,helpers:o.helpers}}var Ve=v(()=>{"use strict";Ce();pt();we();we();mt();ht();gt();Et();St()});function ue(){Nt.push(ce),ce=!1}function fe(){let e=Nt.pop();ce=e===void 0?!0:e}function _t(e){let{deps:t}=e;for(let n of t)n.delete(e);t.clear()}function T(e,t){if(!ce||!E)return;let n=He.get(e);n||(n=new Map,He.set(e,n));let r=n.get(t);r||(r=new Set,n.set(t,r)),r.has(E)||(r.add(E),E.deps.add(r))}function C(e,t,n,r){let o=He.get(e);if(!o)return;let i=new Set,s=f=>{if(f)for(let p of f)(p!==E||p.allowRecurse)&&i.add(p)};if(s(o.get(t)),(n==="add"||n==="delete")&&s(o.get(L)),n==="set"&&Array.isArray(e)){let f=o.get("length");f&&typeof t=="number"&&t<e.length&&s(f)}for(let f of i)f.scheduler?f.scheduler(f):f.run()}function wt(e,t={}){let n=new N(e,t);t.lazy||n.run();let r=n.run.bind(n);return r.effect=n,r.stop=()=>n.stop(),r}function xt(e){var t;(t=e==null?void 0:e.effect)==null||t.stop()}var E,X,Sr,He,N,ce,Nt,L,V=v(()=>{"use strict";E=null,X=[],Sr=0,He=new WeakMap,N=class{constructor(t,n={}){this.active=!0;this.deps=new Set;this.fn=t,this.scheduler=n.scheduler,this.beforeRun=n.beforeRun,this.afterRun=n.afterRun,this.lazy=n.lazy,this.id=Sr++}run(){var t,n;if(!this.active)return this.fn();if(X.includes(this))return this.fn();try{return(t=this.beforeRun)==null||t.call(this),X.push(this),E=this,_t(this),this.fn()}finally{(n=this.afterRun)==null||n.call(this),X.pop(),E=X[X.length-1]||null}}stop(){this.active&&(_t(this),this.onStop&&this.onStop(),this.active=!1)}},ce=!0,Nt=[];L=Symbol("iterate")});function q(e){return e!==null&&typeof e=="object"}function It(e,t){return!Object.is(e,t)}function pe(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Ft(e){return typeof e=="string"&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e}function J(e,t={}){if(!q(e)||e[M])return e;if(e[k])return me(e);let n=kt.get(e);if(n)return n;let r=new Proxy(e,Rr);return kt.set(e,r),r}function me(e){if(!q(e))return e;let t=At.get(e);if(t)return t;e[k]=!0;let n=new Proxy(e,_r);return At.set(e,n),n}function jt(e){if(!q(e))return e;let t=Pt.get(e);if(t)return t;let n=new Proxy(e,Nr);return Pt.set(e,n),n}function I(e){let t=e&&e[A];return t?I(t):e}function $(e){return Ke(e)?$(e[A]):!!(e&&e[M])}function Ke(e){return!!(e&&e[k])}function Dt(e){return e[k]=!0,e}function Lt(e){return e[Ot]=!0,e}var k,A,M,Ot,kt,At,Pt,de,Rr,_r,Nr,he=v(()=>{"use strict";V();k=Symbol("readonly"),A=Symbol("raw"),M=Symbol("reactive"),Ot=Symbol("skip"),kt=new WeakMap,At=new WeakMap,Pt=new WeakMap;de={};["includes","indexOf","lastIndexOf"].forEach(e=>{de[e]=function(...t){let n=I(this);for(let r=0;r<n.length;r++)T(n,String(r));return T(n,"length"),n[e](...t)}});["push","pop","shift","unshift","splice","sort","reverse"].forEach(e=>{de[e]=function(...t){ue();let n=Array.prototype[e].apply(this,t);return fe(),C(I(this),"length","set",I(this).length),n}});Rr={get(e,t,n){if(t===A)return e;if(t===M)return!0;if(Array.isArray(e)&&de.hasOwnProperty(t))return de[t];T(e,t);let r=Reflect.get(e,t,n);return t===k?e[k]===!0:!q(r)||e[Ot]?r:J(r)},set(e,t,n,r){let o=e[t],i=Array.isArray(e)&&Ft(t)?Number(t)<e.length:pe(e,t),s=Reflect.set(e,t,n,r);return(e===(r==null?void 0:r[A])||e===I(r))&&(i?It(n,o)&&C(e,t,"set",n):C(e,t,"add",n)),s},deleteProperty(e,t){let n=pe(e,t),r=Reflect.deleteProperty(e,t);return r&&n&&C(e,t,"delete"),r},has(e,t){return T(e,t),Reflect.has(e,t)},ownKeys(e){return T(e,L),Reflect.ownKeys(e)}},_r={get(e,t,n){if(t===A)return e;if(t===M||t===k)return!0;T(e,t);let r=Reflect.get(e,t,n);return q(r)?me(r):r},set(e,t,n,r){return!1},deleteProperty(e,t){return!1},has(e,t){return T(e,t),Reflect.has(e,t)},ownKeys(e){return T(e,L),Reflect.ownKeys(e)}},Nr={get(e,t,n){return t===A?e:t===M?!0:(T(e,t),Reflect.get(e,t,n))},set(e,t,n,r){let o=e[t],i=Array.isArray(e)&&Ft(t)?Number(t)<e.length:pe(e,t),s=Reflect.set(e,t,n,r);return(e===(r==null?void 0:r[A])||e===I(r))&&(i?It(n,o)&&C(e,t,"set",n):C(e,t,"add",n)),s},deleteProperty(e,t){let n=pe(e,t),r=Reflect.deleteProperty(e,t);return r&&n&&C(e,t,"delete"),r},has(e,t){return T(e,t),Reflect.has(e,t)},ownKeys(e){return T(e,L),Reflect.ownKeys(e)}}});import{isObject as wr}from"@lytjs/common";function xr(e){return Ue.get(e)||e}function Mt(e){if(P(e))return e;let t={_value:Bt(e),_rawValue:e,__v_isRef:!0,[W]:!0},n=new Proxy(t,kr);return Ue.set(n,t),n}function Bt(e){return wr(e)?J(e):e}function Vt(e){if(P(e))return e;let t={_value:e,_rawValue:e,__v_isRef:!0,__v_isShallow:!0,[W]:!0,[Ge]:!0},n=new Proxy(t,Ar);return Ue.set(n,t),n}function P(e){return!!(e&&e.__v_isRef===!0)}function $t(e){return P(e)?e.value:e}function Ye(e,t){let n=e[t];return P(n)?n:new Proxy({_obj:e,_key:t,__v_isRef:!0},{get(r,o,i){return o==="value"?r._obj[r._key]:o==="__v_isRef"?!0:Reflect.get(r,o,i)},set(r,o,i,s){return o==="value"?(r._obj[r._key]=i,!0):Reflect.set(r,o,i,s)}})}function Wt(e){let t={};for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=Ye(e,n));return t}function Ht(e){let t=xr(e);C(t,"value","set",t._rawValue)}var W,Ge,Ue,kr,Ar,ze=v(()=>{"use strict";V();he();W=Symbol("ref"),Ge=Symbol("shallowRef"),Ue=new WeakMap;kr={get(e,t,n){return t==="value"?(T(e,"value"),e._value):t===W||t==="__v_isRef"?!0:t==="_rawValue"?e._rawValue:Reflect.get(e,t,n)},set(e,t,n,r){if(t==="value"){let o=e._rawValue;return Object.is(o,n)||(e._rawValue=n,e._value=Bt(n),C(e,"value","set",n)),!0}return Reflect.set(e,t,n,r)}};Ar={get(e,t,n){return t==="value"?(T(e,"value"),e._value):t===W||t==="__v_isRef"||t==="__v_isShallow"?!0:t==="_rawValue"?e._rawValue:Reflect.get(e,t,n)},set(e,t,n,r){if(t==="value"){let o=e._rawValue;return Object.is(o,n)||(e._rawValue=n,e._value=n,C(e,"value","set",n)),!0}return Reflect.set(e,t,n,r)}}});function Kt(e){let t,n;return typeof e=="function"?(t=e,n=void 0):(t=e.get,n=e.set),new Xe(t,n)}var Xe,Gt=v(()=>{"use strict";V();Xe=class{constructor(t,n){this._dirty=!0;this.__v_isRef=!0;this.deps=new Set;this._setter=n,this._effect=new N(t,{scheduler:()=>{this._dirty||(this._dirty=!0,this.triggerDep())},lazy:!0}),this._value=void 0}get value(){return T(this,"value"),E&&!this.deps.has(E)&&(this.deps.add(E),E.deps.add(this.deps)),this._dirty&&(this._value=this._effect.run(),this._dirty=!1),this._value}set value(t){this._setter&&this._setter(t)}triggerDep(){for(let t of this.deps)t.scheduler?t.scheduler(t):t.run()}}});import{queueJob as Yt,nextTick as zt,isObject as Xt}from"@lytjs/common";function Q(e,t=1/0,n){if(!Xt(e)||t<=0||(n||(n=new Set),n.has(e)))return e;if(n.add(e),P(e))Q(e.value,t-1,n);else if(Array.isArray(e))for(let r=0;r<e.length;r++)Q(e[r],t-1,n);else for(let r of Object.keys(e))Q(e[r],t-1,n);return e}function Ut(e){return P(e)?()=>e.value:$(e)?()=>Q(e):typeof e=="function"?e:()=>Q(e)}function qt(e,t,n={}){let r,o=!1;if(Array.isArray(e)){o=!0;let g=e.map(a=>Ut(a));r=()=>g.map(a=>a())}else r=Ut(e);$(e)&&n.deep!==!1&&(n.deep=!0);let i=o?[]:void 0,s,f=g=>{s=g},p=()=>{s&&(s(),s=void 0);let g=m.run();(o?g.some((a,c)=>!Object.is(a,i[c])):!Object.is(g,i)||n.deep&&Xt(g))&&(t(g,o?[...i]:i,f),i=o?[...g]:g)},m=new N(r,{lazy:!0,scheduler:()=>{n.flush==="sync"?p():Yt(p)}});return n.immediate?p():i=m.run(),()=>{m.stop()}}function Jt(e,t={}){let n,r=()=>{n&&(n(),n=void 0),e(i=>{n=i})},o=new N(r,{scheduler:()=>{t.flush==="sync"?r():Yt(r)}});return o.run(),()=>{o.stop(),n&&(n(),n=void 0)}}var Qt=v(()=>{"use strict";V();ze();he()});import{LytError as Pr}from"@lytjs/common";function ge(e){let t=e,n=new Set,r=function(){return w&&!Z&&n.add(w),t};return r.set=function(o){Object.is(t,o)||(t=o,on(n))},r.update=function(o){r.set(o(t))},r._subscribe=function(o){n.add(o)},r._unsubscribe=function(o){n.delete(o)},r.dispose=function(){n.clear()},r}function Zt(e){let t,n=!0,r=!1,o=new Set,i=new Set,s=function(){if(w&&!Z&&i.add(w),n){if(r)throw new Pr("LYT_REACTIVITY_CIRCULAR_DEPENDENCY","computed \u5728\u5176\u81EA\u8EAB\u7684\u8BA1\u7B97\u56FE\u4E2D");r=!0;for(let g of o)g._unsubscribe(s);o.clear();let m=w;w=s;try{t=e()}finally{w=m,r=!1}n=!1}return t},f={_dirty:!1,notify(){n=!0,on(i)}};return s.notify=f.notify.bind(f),s._dirty=!1,s._subscribe=function(p){i.add(p)},s._unsubscribe=function(p){i.delete(p)},s}function en(e){let t=null,n=!1,r=new Set,o=()=>{if(n)return;t&&(t(),t=null);for(let f of r)f._unsubscribe(i);r.clear();let s=w;w=i;try{e(f=>{t=f})}finally{w=s}},i={_dirty:!1,notify(){ee>0?H.add(i):o()}};return o(),()=>{n=!0,t&&(t(),t=null);for(let s of r)s._unsubscribe(i);r.clear(),H.delete(i)}}function tn(e){ee++;try{e()}finally{ee--,ee===0&&nn()}}function nn(){if(!qe){qe=!0;try{let e=new Set(H);H.clear();for(let t of e)t.notify();H.size>0&&nn()}finally{qe=!1}}}function rn(e){let t=Z;Z=!0;try{return e()}finally{Z=t}}function on(e){if(ee>0)for(let t of e)H.add(t);else for(let t of e)t.notify()}var w,Z,ee,H,qe,Je=v(()=>{"use strict";w=null,Z=!1,ee=0,H=new Set,qe=!1});function sn(){return K.length>0?K[K.length-1]:null}function an(e){return e()}function ln(e){let t=ge(e),n=o=>t.set(o),r=sn();return[t,n]}function cn(){let e={_cleanupFns:[]};return K.push(e),()=>{for(let n of e._cleanupFns)n();e._cleanupFns.length=0;let t=K.indexOf(e);t!==-1&&K.splice(t,1)}}function un(e){let t=sn();t&&t._cleanupFns.push(e)}var K,fn=v(()=>{"use strict";Je();K=[]});var pn={};ye(pn,{ITERATE_KEY:()=>L,ReactiveEffect:()=>N,activeEffect:()=>E,batch:()=>tn,clearQueue:()=>jr,computed:()=>Kt,computedSignal:()=>Zt,effect:()=>wt,enterSignalComponentContext:()=>cn,hasPendingJob:()=>Fr,isReactive:()=>$,isReadonly:()=>Ke,isRef:()=>P,markReadOnly:()=>Dt,markSkip:()=>Lt,nextTick:()=>zt,onSignalCleanup:()=>un,pauseTracking:()=>ue,queueJob:()=>Or,queuePostFlushCb:()=>Ir,rawSymbol:()=>A,reactive:()=>J,reactiveFlag:()=>M,readonly:()=>me,readonlyFlag:()=>k,ref:()=>Mt,refSymbol:()=>W,resetTracking:()=>fe,shallowReactive:()=>jt,shallowRef:()=>Vt,shallowRefSymbol:()=>Ge,signal:()=>ge,signalEffect:()=>en,stop:()=>xt,toRaw:()=>I,toRef:()=>Ye,toRefs:()=>Wt,track:()=>T,trigger:()=>C,triggerRef:()=>Ht,unref:()=>$t,untrack:()=>rn,useSignal:()=>an,useSignalState:()=>ln,watch:()=>qt,watchEffect:()=>Jt});import{queueJob as Or,queuePostFlushCb as Ir,hasPendingJob as Fr,clearQueue as jr}from"@lytjs/common";var dn=v(()=>{"use strict";V();he();ze();Gt();Qt();Je();fn()});var D={};ye(D,{Fragment:()=>ve,ShapeFlags:()=>Te,createApp:()=>ct,h:()=>_});import{isStringOrNumber as bn,isArray as nt,isVNode as rt}from"@lytjs/common";import{Fragment as ve}from"@lytjs/vdom";var Te=(s=>(s[s.ELEMENT=1]="ELEMENT",s[s.FUNCTIONAL_COMPONENT=2]="FUNCTIONAL_COMPONENT",s[s.STATEFUL_COMPONENT=4]="STATEFUL_COMPONENT",s[s.TEXT_CHILDREN=8]="TEXT_CHILDREN",s[s.ARRAY_CHILDREN=16]="ARRAY_CHILDREN",s[s.SLOTS_CHILDREN=32]="SLOTS_CHILDREN",s))(Te||{});function vn(e,t){if(t!=null)if(bn(t))e.children=String(t),e.shapeFlag|=8;else if(nt(t)){let n=[];for(let r=0;r<t.length;r++){let o=t[r];if(!(o==null||typeof o=="boolean"))if(nt(o))for(let i=0;i<o.length;i++){let s=o[i];s!=null&&typeof s!="boolean"&&n.push(rt(s)?s:be(String(s)))}else rt(o)?n.push(o):n.push(be(String(o)))}e.children=n,e.shapeFlag|=16}else typeof t=="object"&&(e.children=t,e.shapeFlag|=32)}function be(e,t=null,n=null){var p,m;let r=0;typeof e=="string"?r=1:e===ve?r=0:typeof e=="function"?r=2:typeof e=="object"&&e!==null&&(e.setup||e.__vccOpts||e.render)&&(r=4);let o=(p=t==null?void 0:t.key)!=null?p:null,i=(m=t==null?void 0:t.ref)!=null?m:null,s=t;if(t){let{key:g,ref:a,...c}=t;s=c}let f={type:e,props:s,children:null,key:o,ref:i,shapeFlag:r,el:null,component:null};return n!=null&&vn(f,n),f}function _(e,t,n){return be(e,t||null,n||null)}import{isPromise as Ee}from"@lytjs/common";function ot(e){return Object.create(e||null)}function it(e){return e!==null&&typeof e=="object"&&typeof e.install=="function"}function st(e){return typeof e=="function"}function at(e,t,...n){if(it(t)){let r=t.onBeforeInstall?t.onBeforeInstall(e,...n):void 0;if(Ee(r))return r.then(()=>{let o=t.install(e,...n);if(Ee(o))return o.then(()=>{if(t.onInstalled)return t.onInstalled(e,...n)});if(t.onInstalled)return t.onInstalled(e,...n)});{let o=t.install(e,...n);if(Ee(o))return o.then(()=>{if(t.onInstalled)return t.onInstalled(e,...n)});if(t.onInstalled)return t.onInstalled(e,...n)}}else if(st(t))return t(e,...n)}function lt(e,t){if(it(t)){if(typeof t.uninstall=="function")return t.uninstall(e)}else st(t)}import{effect as Tn,stop as En}from"@lytjs/reactivity";import{compile as Cn}from"@lytjs/compiler";import{defineComponent as Sn,createComponentInstance as Rn,setupComponent as _n,mountComponent as Nn,updateComponent as wn,unmountComponent as xn}from"@lytjs/component";import{createRenderer as kn}from"@lytjs/renderer";var An=100,j=new Map;function Pn(e){let t=j.get(e);if(t)return j.delete(e),j.set(e,t),t;let{code:n}=Cn(e);if(t=new Function("h","_ctx",`return ${n}`),j.size>=An){let r=j.keys().next().value;r!==void 0&&j.delete(r)}return j.set(e,t),t}function On(e){let t={...e};if(e.state&&typeof e.state!="function"){let n=e.state;t.state=()=>({...n})}if(typeof e.render=="function"){let n=e.render;t.render=(r,o)=>n(r)}if(e.computed){let n={};for(let r of Object.keys(e.computed)){let o=e.computed[r];typeof o=="function"?n[r]={get:o}:n[r]=o}t.computed=n}if(typeof e.init=="function"){let n=e.init;t.init=function(r,o){return n.call(this,r)}}return t}function In(){return{createElement(e){return document.createElement(e)},createText(e){return document.createTextNode(e)},createComment(e){return document.createComment(e)},setAttribute(e,t,n){e.setAttribute(t,String(n))},removeAttribute(e,t){e.removeAttribute(t)},setStyle(e,t){if(typeof t=="string")e.style.cssText=t;else if(t&&typeof t=="object")for(let n in t)e.style[n]=t[n]},setClass(e,t){if(typeof t=="string")e.className=t;else if(t&&typeof t=="object"){let n=[];for(let[r,o]of Object.entries(t))o&&n.push(r);e.className=n.join(" ")}else e.className=""},insert(e,t,n){n!=null?e.insertBefore(t,n):e.appendChild(t)},remove(e){e.parentNode&&e.parentNode.removeChild(e)},replace(e,t,n){e.replaceChild(n,t)},addEventListener(e,t,n,r){e.addEventListener(t,n,r)},removeEventListener(e,t,n){e.removeEventListener(t,n)},nextTick(e){Promise.resolve().then(e)},parentNode(e){return e.parentNode},nextSibling(e){return e.nextSibling},querySelector(e){return document.querySelector(e)}}}function ct(e,t){let n=new Set,r={},o={},i=ot(),s={},f={},p=null,m=null,g=null,a=null,c=!1,l=On(typeof e=="function"?{render:e}:e),h=Sn(l),u={config:s,globalProperties:f,get _instance(){return p},mount(y){if(c)return u;let b;if(typeof y=="string"){let F=document.querySelector(y);if(!F)throw new Error(`[Lyt] \u6302\u8F7D\u76EE\u6807 "${y}" \u672A\u627E\u5230`);b=F}else b=y;a=b;let S=In();m=kn(S),p=Rn(h),_n(p,t||{},null);let B=p.type;if(!B.render&&B.template){let F=Pn(B.template);B.render=(te,mn)=>F(te,mn.renderProxy)}return Nn(p,_),p.subTree&&m.mount(p.subTree,b),g=Tn(()=>{if(!(!p||!p.isMounted||!m)&&(wn(p,_),p.subTree&&a)){let F=a.firstChild,te=p.subTree;for(;a.firstChild;)a.removeChild(a.firstChild);m.mount(te,a)}},{lazy:!0}),c=!0,u},unmount(){if(c){if(g&&(En(g),g=null),p&&xn(p),a)for(;a.firstChild;)a.removeChild(a.firstChild);p=null,m=null,a=null,c=!1}},use(y,...b){if(n.has(y))return u;n.add(y);let S=at({use:u.use.bind(u),unuse:u.unuse.bind(u),isInstalled:u.isInstalled.bind(u),provide:u.provide.bind(u),inject:u.inject.bind(u),config:s,globalProperties:f},y,...b);return S instanceof Promise?S.then(()=>u):u},unuse(y){if(!n.has(y))return u;n.delete(y);let b=lt({use:u.use.bind(u),unuse:u.unuse.bind(u),isInstalled:u.isInstalled.bind(u),provide:u.provide.bind(u),inject:u.inject.bind(u),config:s,globalProperties:f},y);return b instanceof Promise?b.then(()=>u):u},isInstalled(y){return n.has(y)},provide(y,b){return i[y]=b,u},inject(y,b){let S=i[y];return S!==void 0?S:b},component(y,b){return b?(r[y]=b,u):r[y]},directive(y,b){return b?(o[y]=b,u):o[y]}};return u}G(D,fo);import*as fo from"@lytjs/common";function Qe(){return typeof globalThis.window!="undefined"&&typeof globalThis.document!="undefined"&&typeof globalThis.HTMLElement!="undefined"&&typeof globalThis.customElements!="undefined"}function Dr(e){return e.replace(/-([a-z])/g,(t,n)=>n.toUpperCase())}function Lr(e){if(e===""||e==="true")return!0;if(e==="false")return!1;if(e==="null")return null;if(e==="undefined")return;let t=Number(e);if(!isNaN(t)&&e.trim()!=="")return t;if(e.startsWith("{")&&e.endsWith("}")||e.startsWith("[")&&e.endsWith("]"))try{return JSON.parse(e)}catch(n){}return e}function Mr(e,t){return t&&t[e]?t[e]:Dr(e)}function Br(e){let t=[],n=e;if(n.emits&&(Array.isArray(n.emits)?t.push(...n.emits):typeof n.emits=="object"&&t.push(...Object.keys(n.emits))),n.methods){for(let r of Object.keys(n.methods))if(r.startsWith("on")&&r.length>2){let o=r.charAt(2).toLowerCase()+r.slice(3);t.push(o)}}return t}function Vr(e,t={}){let{shadowMode:n="open",styles:r="",propMappings:o,eventMappings:i={},attributeConverters:s={}}=t,f=t.observedAttributes||[],p=Br(e);return class extends HTMLElement{constructor(){super();this._shadowRoot=null;this._instance=null;this._props={};this._container=null;this._connected=!1;this._eventCleanups=[];this._effectCleanup=null;this._originalDescriptors=new Map;this._compiledTemplate=null;this._updateScheduled=!1}static get observedAttributes(){return f}connectedCallback(){if(!this._connected){if(this._connected=!0,this._shadowRoot=this.attachShadow({mode:n}),r){let a=document.createElement("style");a.textContent=r,this._shadowRoot.appendChild(a)}this._container=document.createElement("div"),this._shadowRoot.appendChild(this._container),this._syncAttributesToProps(),this._mountComponent(),this._forwardSlots()}}disconnectedCallback(){if(this._connected){this._connected=!1;for(let a of this._eventCleanups)a();this._eventCleanups=[],this._effectCleanup&&(this._effectCleanup(),this._effectCleanup=null),this._originalDescriptors.clear(),this._compiledTemplate=null,this._instance=null,this._container&&(this._container.innerHTML="")}}attributeChangedCallback(a,c,d){c!==d&&this._connected&&(this._syncAttributesToProps(),this._updateComponent())}_syncAttributesToProps(){let a={};for(let c of f)if(this.hasAttribute(c)){let d=this.getAttribute(c),l=Mr(c,o);s[c]?a[l]=s[c](d):a[l]=Lr(d)}if(e.props){for(let[c,d]of Object.entries(e.props))if(a[c]===void 0){let l=d;l&&typeof l=="object"&&"default"in l?a[c]=typeof l.default=="function"?l.default():l.default:l==null}}this._props=a}async _mountComponent(){let a=e.render?e.render:e.template?await this._compileTemplate(e.template):null;if(!a)return;let c=this._createComponentContext(),d=a.call(c,_,c);d&&this._container&&this._renderVNode(d,this._container),this._setupReactiveUpdates(c,a)}async _compileTemplate(a){try{let c=await Promise.resolve().then(()=>(Ve(),Rt)),{compile:d}=c,{code:l}=d(a);return new Function("h","_ctx",`return ${l}`)}catch(c){return null}}_createComponentContext(){let a=e.state?typeof e.state=="function"?e.state():{...e.state}:{},c=e.computed||{},d=e.methods||{},l={...this._props,...a};for(let[h,u]of Object.entries(c))typeof u=="function"?Object.defineProperty(l,h,{get:u.bind(l),enumerable:!0}):u&&typeof u=="object"&&"get"in u&&Object.defineProperty(l,h,{get:u.get.bind(l),enumerable:!0});for(let[h,u]of Object.entries(d))typeof u=="function"&&(l[h]=u.bind(l));return l.emit=(h,...u)=>{let y=i[h]||h,b=new CustomEvent(y,{detail:u.length===1?u[0]:u,bubbles:!0,composed:!0});this.dispatchEvent(b)},l.$el=this._container,l.$attrs={...this._props},l.$slots=this._getSlotContent(),l}_setupReactiveUpdates(a,c){try{Promise.resolve().then(()=>(dn(),pn)).then(d=>{let{effect:l,stop:h}=d,u=l(()=>{if(!this._connected||!this._container)return;let b=c.call(a,_,a);b&&(this._container.innerHTML="",this._renderVNode(b,this._container))},{lazy:!0}),y=e.state?typeof e.state=="function"?Object.keys(e.state()):Object.keys(e.state):[];for(let b of y){let S=a[b],B=Object.getOwnPropertyDescriptor(a,b);this._originalDescriptors.set(b,B),Object.defineProperty(a,b,{get(){return S},set(F){S=F;try{u()}catch(te){}},enumerable:!0})}this._effectCleanup=()=>{try{h(u)}catch(b){}}}).catch(()=>{this._setupReactiveUpdatesFallback(a,c)})}catch(d){this._setupReactiveUpdatesFallback(a,c)}}_setupReactiveUpdatesFallback(a,c){let d=e.state?typeof e.state=="function"?Object.keys(e.state()):Object.keys(e.state):[];for(let l of d){let u=a[l],y=Object.getOwnPropertyDescriptor(a,l);this._originalDescriptors.set(l,y);let b=this;Object.defineProperty(a,l,{get(){return u},set(S){u=S,b._scheduleUpdate(a,c)},enumerable:!0})}}_scheduleUpdate(a,c){this._updateScheduled||(this._updateScheduled=!0,Promise.resolve().then(()=>{if(this._updateScheduled=!1,!this._connected||!this._container)return;let d=c.call(a,_,a);d&&(this._container.innerHTML="",this._renderVNode(d,this._container))}))}async _updateComponent(){if(!this._container)return;let a=e.render||null;if(!a&&e.template&&(this._compiledTemplate&&this._compiledTemplate.template===e.template?a=this._compiledTemplate.render:(a=await this._compileTemplate(e.template),a&&(this._compiledTemplate={template:e.template,render:a}))),!a)return;let c=this._createComponentContext(),d=a.call(c,_,c);this._container.innerHTML="",d&&this._renderVNode(d,this._container)}_renderVNode(a,c){let d=this._vNodeToElement(a);d&&c.appendChild(d)}_vNodeToElement(a){if(!a)return null;if(typeof a.type=="symbol"){let c=document.createDocumentFragment();if(Array.isArray(a.children))for(let d of a.children){let l=this._vNodeToElement(d);l&&c.appendChild(l)}return c}if(typeof a.children=="string")return document.createTextNode(a.children);if(typeof a.type=="string"){let c=document.createElement(a.type);if(a.props)for(let[d,l]of Object.entries(a.props))if(d==="style"&&typeof l=="object")for(let[h,u]of Object.entries(l))c.style[h]=u;else if(d==="class"){if(typeof l=="string")c.className=l;else if(typeof l=="object"){let h=[];for(let[u,y]of Object.entries(l))y&&h.push(u);c.className=h.join(" ")}}else if(d.startsWith("on")&&typeof l=="function"){let h=d.slice(2).toLowerCase();c.addEventListener(h,l),this._eventCleanups.push(()=>{c.removeEventListener(h,l)})}else d==="ref"&&typeof l=="function"?l(c):c.setAttribute(d,String(l));if(Array.isArray(a.children))for(let d of a.children){let l=this._vNodeToElement(d);l&&c.appendChild(l)}else typeof a.children=="string"&&(c.textContent=a.children);return c}return typeof a.type=="object"||typeof a.type=="function"?a.component?this._vNodeToElement(a.component.subTree||a):document.createComment("component"):null}_forwardSlots(){if(!this._shadowRoot||!this._container)return;let a=this.querySelectorAll("[slot]");for(let d of a){let l=d.getAttribute("slot")||"default",h=document.createElement("slot");l!=="default"&&h.setAttribute("name",l),this._container.appendChild(h)}let c=document.createElement("slot");this._container.appendChild(c)}_getSlotContent(){var l;let a={},c=this.querySelectorAll("[slot]");for(let h of c){let u=h.getAttribute("slot")||"default";a[u]||(a[u]=[]),a[u].push(h.cloneNode(!0))}let d=[];for(let h of Array.from(this.childNodes))(l=h.hasAttribute)!=null&&l.call(h,"slot")||d.push(h.cloneNode(!0));return d.length>0&&(a.default=d),a}get _lytInstance(){return this._instance}get _lytProps(){return{...this._props}}}}function Ze(e,t,n){if(!e.includes("-"))throw new Error(`[Lyt Web Component] \u6807\u7B7E\u540D "${e}" \u5FC5\u987B\u5305\u542B\u8FDE\u5B57\u7B26 (-)\u3002\u8FD9\u662F Custom Element \u89C4\u8303\u7684\u8981\u6C42\u3002`);if(!Qe())return;let r=Vr(t,n);customElements.define(e,r)}function $r(e){for(let{tagName:t,component:n,options:r}of e)Ze(t,n,r)}function Wr(e){if(Qe())try{let t=customElements;t.__unregister&&t.__unregister(e)}catch(t){}}async function Hr(e,t,n){let r=t.match(/<template>([\s\S]*?)<\/template>/),o=t.match(/<script[^>]*>([\s\S]*?)<\/script>/),i=/<style[^>]*>([\s\S]*?)<\/style>/g,s=[],f;for(;(f=i.exec(t))!==null;)s.push(f);let p=(n==null?void 0:n.styles)||"";for(let c of s)p+=c[1]+`
6
+ `;let m=r?r[1].trim():void 0,g={};if(o){let c=o[1].trim();if(c.match(/export\s+default\s*(\{[\s\S]*\}|\([\s\S]*\)[\s\S]*?\))/))try{let l={},h={exports:l};new Function("module","exports",`"use strict"; ${c.replace(/export\s+default\s*/,"module.exports =")}`)(h,l),g=h.exports||l}catch(l){}}let a={...n,styles:p};m&&!g.template&&!g.render&&(g.template=m),Ze(e,g,a)}export{Ze as defineCustomElement,Hr as defineCustomElementFromSFC,Qe as isBrowser,$r as registerComponents,Wr as unregisterElement};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lytjs/core",
3
- "version": "4.1.0",
3
+ "version": "5.0.0",
4
4
  "description": "Lyt.js 核心入口 - 整合响应式、编译器、虚拟 DOM、渲染器和组件系统",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.mjs",
@@ -61,12 +61,12 @@
61
61
  "createApp"
62
62
  ],
63
63
  "dependencies": {
64
- "@lytjs/common": "^4.1.0",
65
- "@lytjs/reactivity": "^4.1.0",
66
- "@lytjs/compiler": "^4.1.0",
67
- "@lytjs/vdom": "^4.1.0",
68
- "@lytjs/renderer": "^4.1.0",
69
- "@lytjs/component": "^4.1.0"
64
+ "@lytjs/common": "^5.0.0",
65
+ "@lytjs/reactivity": "^5.0.0",
66
+ "@lytjs/compiler": "^5.0.0",
67
+ "@lytjs/vdom": "^5.0.0",
68
+ "@lytjs/renderer": "^5.0.0",
69
+ "@lytjs/component": "^5.0.0"
70
70
  },
71
71
  "engines": {
72
72
  "node": ">=18.0.0"
@@ -1 +0,0 @@
1
- {"fileNames":["../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es5.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2015.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2016.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2017.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2018.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2019.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2020.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2021.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2022.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.dom.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.dom.iterable.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.dom.asynciterable.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.webworker.importscripts.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.scripthost.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2015.core.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2016.intl.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2017.date.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2017.object.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2017.string.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2019.array.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2019.object.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2019.string.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2020.date.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2020.string.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2020.number.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2021.promise.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2021.string.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2021.intl.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2022.array.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2022.error.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2022.intl.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2022.object.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2022.string.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2022.regexp.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.decorators.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2022.full.d.ts","../../common/dist/types/is.d.ts","../../common/dist/types/object.d.ts","../../common/dist/types/string.d.ts","../../common/dist/types/path.d.ts","../../common/dist/types/emitter.d.ts","../../common/dist/types/subscription.d.ts","../../common/dist/types/cache.d.ts","../../common/dist/types/timing.d.ts","../../common/dist/types/scheduler.d.ts","../../common/dist/types/error-codes.d.ts","../../common/dist/types/lyt-error.d.ts","../../common/dist/types/warn.d.ts","../../common/dist/types/algorithm.d.ts","../../common/dist/types/index.d.ts","../src/h.ts","../src/plugin.ts","../../reactivity/dist/types/effect.d.ts","../../reactivity/dist/types/reactive.d.ts","../../reactivity/dist/types/ref.d.ts","../../reactivity/dist/types/computed.d.ts","../../reactivity/dist/types/watch.d.ts","../../reactivity/dist/types/signal.d.ts","../../reactivity/dist/types/signal-component.d.ts","../../reactivity/dist/types/index.d.ts","../../compiler/dist/types/ast/nodes.d.ts","../../compiler/dist/types/parser/html-parser.d.ts","../../compiler/dist/types/transform/transform.d.ts","../../compiler/dist/types/transform/optimize.d.ts","../../compiler/dist/types/patch-flags.d.ts","../../compiler/dist/types/codegen/codegen.d.ts","../../compiler/dist/types/sfc/parse-sfc.d.ts","../../compiler/dist/types/sfc/compile-sfc.d.ts","../../compiler/dist/types/sfc/index.d.ts","../../compiler/dist/types/index.d.ts","../../component/dist/types/signal-state.d.ts","../../component/dist/types/props.d.ts","../../component/dist/types/emit.d.ts","../../component/dist/types/lifecycle.d.ts","../../component/dist/types/slots.d.ts","../../component/dist/types/composition-api.d.ts","../../component/dist/types/define-component.d.ts","../../component/dist/types/index.d.ts","../../renderer/dist/types/vnode.d.ts","../../renderer/dist/types/renderer-interfaces.d.ts","../../renderer/dist/types/create-renderer.d.ts","../../renderer/dist/types/dom/dom-renderer.d.ts","../../renderer/dist/types/dom/dom-ops.d.ts","../../renderer/dist/types/dom/patch-props.d.ts","../../renderer/dist/types/dom/patch-events.d.ts","../../renderer/dist/types/index.d.ts","../src/create-app.ts","../src/lyt-error.ts","../src/warn.ts","../src/dev-error.ts","../src/error-codes.ts","../src/error-handling.ts","../src/error-entry.ts","../src/index.ts","../src/plugin-entry.ts","../src/shared-entry.ts","../src/web-component.ts","../src/web-component-entry.ts"],"fileIdsList":[[64,65,66,67,68,69,70,71,72,73,74,75,76],[73],[88],[88,89,90,91,92,93,96],[94],[94,95],[87,98,99,100,101,102,103],[98,99,100,101,102,103,104],[85],[78,79,87,97,105,113],[115,116],[77],[115,118,119],[77,78,114],[79],[124],[121],[82],[80,81,82,83,84,85,86],[107],[106,107,108,109,110,111,112],[106]],"fileInfos":[{"version":"bcd24271a113971ba9eb71ff8cb01bc6b0f872a85c23fdbe5d93065b375933cd","affectsGlobalScope":true,"impliedFormat":1},{"version":"3f88bedbeb09c6f5a6645cb24c7c55f1aa22d19ae96c8e6959cbd8b85a707bc6","impliedFormat":1},{"version":"7fe93b39b810eadd916be8db880dd7f0f7012a5cc6ffb62de8f62a2117fa6f1f","impliedFormat":1},{"version":"bb0074cc08b84a2374af33d8bf044b80851ccc9e719a5e202eacf40db2c31600","impliedFormat":1},{"version":"1a7daebe4f45fb03d9ec53d60008fbf9ac45a697fdc89e4ce218bc94b94f94d6","impliedFormat":1},{"version":"f94b133a3cb14a288803be545ac2683e0d0ff6661bcd37e31aaaec54fc382aed","impliedFormat":1},{"version":"f59d0650799f8782fd74cf73c19223730c6d1b9198671b1c5b3a38e1188b5953","impliedFormat":1},{"version":"8a15b4607d9a499e2dbeed9ec0d3c0d7372c850b2d5f1fb259e8f6d41d468a84","impliedFormat":1},{"version":"26e0fe14baee4e127f4365d1ae0b276f400562e45e19e35fd2d4c296684715e6","impliedFormat":1},{"version":"d6b1eba8496bdd0eed6fc8a685768fe01b2da4a0388b5fe7df558290bffcf32f","affectsGlobalScope":true,"impliedFormat":1},{"version":"7f57fc4404ff020bc45b9c620aff2b40f700b95fe31164024c453a5e3c163c54","impliedFormat":1},{"version":"7f57fc4404ff020bc45b9c620aff2b40f700b95fe31164024c453a5e3c163c54","impliedFormat":1},{"version":"2a2de5b9459b3fc44decd9ce6100b72f1b002ef523126c1d3d8b2a4a63d74d78","affectsGlobalScope":true,"impliedFormat":1},{"version":"f13f4b465c99041e912db5c44129a94588e1aafee35a50eab51044833f50b4ee","affectsGlobalScope":true,"impliedFormat":1},{"version":"eadcffda2aa84802c73938e589b9e58248d74c59cb7fcbca6474e3435ac15504","affectsGlobalScope":true,"impliedFormat":1},{"version":"105ba8ff7ba746404fe1a2e189d1d3d2e0eb29a08c18dded791af02f29fb4711","affectsGlobalScope":true,"impliedFormat":1},{"version":"00343ca5b2e3d48fa5df1db6e32ea2a59afab09590274a6cccb1dbae82e60c7c","affectsGlobalScope":true,"impliedFormat":1},{"version":"ebd9f816d4002697cb2864bea1f0b70a103124e18a8cd9645eeccc09bdf80ab4","affectsGlobalScope":true,"impliedFormat":1},{"version":"2c1afac30a01772cd2a9a298a7ce7706b5892e447bb46bdbeef720f7b5da77ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"7b0225f483e4fa685625ebe43dd584bb7973bbd84e66a6ba7bbe175ee1048b4f","affectsGlobalScope":true,"impliedFormat":1},{"version":"c0a4b8ac6ce74679c1da2b3795296f5896e31c38e888469a8e0f99dc3305de60","affectsGlobalScope":true,"impliedFormat":1},{"version":"3084a7b5f569088e0146533a00830e206565de65cae2239509168b11434cd84f","affectsGlobalScope":true,"impliedFormat":1},{"version":"c5079c53f0f141a0698faa903e76cb41cd664e3efb01cc17a5c46ec2eb0bef42","affectsGlobalScope":true,"impliedFormat":1},{"version":"32cafbc484dea6b0ab62cf8473182bbcb23020d70845b406f80b7526f38ae862","affectsGlobalScope":true,"impliedFormat":1},{"version":"fca4cdcb6d6c5ef18a869003d02c9f0fd95df8cfaf6eb431cd3376bc034cad36","affectsGlobalScope":true,"impliedFormat":1},{"version":"b93ec88115de9a9dc1b602291b85baf825c85666bf25985cc5f698073892b467","affectsGlobalScope":true,"impliedFormat":1},{"version":"f5c06dcc3fe849fcb297c247865a161f995cc29de7aa823afdd75aaaddc1419b","affectsGlobalScope":true,"impliedFormat":1},{"version":"b77e16112127a4b169ef0b8c3a4d730edf459c5f25fe52d5e436a6919206c4d7","affectsGlobalScope":true,"impliedFormat":1},{"version":"fbffd9337146eff822c7c00acbb78b01ea7ea23987f6c961eba689349e744f8c","affectsGlobalScope":true,"impliedFormat":1},{"version":"a995c0e49b721312f74fdfb89e4ba29bd9824c770bbb4021d74d2bf560e4c6bd","affectsGlobalScope":true,"impliedFormat":1},{"version":"c7b3542146734342e440a84b213384bfa188835537ddbda50d30766f0593aff9","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce6180fa19b1cccd07ee7f7dbb9a367ac19c0ed160573e4686425060b6df7f57","affectsGlobalScope":true,"impliedFormat":1},{"version":"3f02e2476bccb9dbe21280d6090f0df17d2f66b74711489415a8aa4df73c9675","affectsGlobalScope":true,"impliedFormat":1},{"version":"45e3ab34c1c013c8ab2dc1ba4c80c780744b13b5676800ae2e3be27ae862c40c","affectsGlobalScope":true,"impliedFormat":1},{"version":"805c86f6cca8d7702a62a844856dbaa2a3fd2abef0536e65d48732441dde5b5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"e42e397f1a5a77994f0185fd1466520691456c772d06bf843e5084ceb879a0ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"f4c2b41f90c95b1c532ecc874bd3c111865793b23aebcc1c3cbbabcd5d76ffb0","affectsGlobalScope":true,"impliedFormat":1},{"version":"ab26191cfad5b66afa11b8bf935ef1cd88fabfcb28d30b2dfa6fad877d050332","affectsGlobalScope":true,"impliedFormat":1},{"version":"2088bc26531e38fb05eedac2951480db5309f6be3fa4a08d2221abb0f5b4200d","affectsGlobalScope":true,"impliedFormat":1},{"version":"cb9d366c425fea79716a8fb3af0d78e6b22ebbab3bd64d25063b42dc9f531c1e","affectsGlobalScope":true,"impliedFormat":1},{"version":"500934a8089c26d57ebdb688fc9757389bb6207a3c8f0674d68efa900d2abb34","affectsGlobalScope":true,"impliedFormat":1},{"version":"689da16f46e647cef0d64b0def88910e818a5877ca5379ede156ca3afb780ac3","affectsGlobalScope":true,"impliedFormat":1},{"version":"bc21cc8b6fee4f4c2440d08035b7ea3c06b3511314c8bab6bef7a92de58a2593","affectsGlobalScope":true,"impliedFormat":1},{"version":"7ca53d13d2957003abb47922a71866ba7cb2068f8d154877c596d63c359fed25","affectsGlobalScope":true,"impliedFormat":1},{"version":"54725f8c4df3d900cb4dac84b64689ce29548da0b4e9b7c2de61d41c79293611","affectsGlobalScope":true,"impliedFormat":1},{"version":"e5594bc3076ac29e6c1ebda77939bc4c8833de72f654b6e376862c0473199323","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f3eb332c2d73e729f3364fcc0c2b375e72a121e8157d25a82d67a138c83a95c","affectsGlobalScope":true,"impliedFormat":1},{"version":"6f4427f9642ce8d500970e4e69d1397f64072ab73b97e476b4002a646ac743b1","affectsGlobalScope":true,"impliedFormat":1},{"version":"48915f327cd1dea4d7bd358d9dc7732f58f9e1626a29cc0c05c8c692419d9bb7","affectsGlobalScope":true,"impliedFormat":1},{"version":"b7bf9377723203b5a6a4b920164df22d56a43f593269ba6ae1fdc97774b68855","affectsGlobalScope":true,"impliedFormat":1},{"version":"db9709688f82c9e5f65a119c64d835f906efe5f559d08b11642d56eb85b79357","affectsGlobalScope":true,"impliedFormat":1},{"version":"4b25b8c874acd1a4cf8444c3617e037d444d19080ac9f634b405583fd10ce1f7","affectsGlobalScope":true,"impliedFormat":1},{"version":"37be57d7c90cf1f8112ee2636a068d8fd181289f82b744160ec56a7dc158a9f5","affectsGlobalScope":true,"impliedFormat":1},{"version":"a917a49ac94cd26b754ab84e113369a75d1a47a710661d7cd25e961cc797065f","affectsGlobalScope":true,"impliedFormat":1},{"version":"6d3261badeb7843d157ef3e6f5d1427d0eeb0af0cf9df84a62cfd29fd47ac86e","affectsGlobalScope":true,"impliedFormat":1},{"version":"195daca651dde22f2167ac0d0a05e215308119a3100f5e6268e8317d05a92526","affectsGlobalScope":true,"impliedFormat":1},{"version":"8b11e4285cd2bb164a4dc09248bdec69e9842517db4ca47c1ba913011e44ff2f","affectsGlobalScope":true,"impliedFormat":1},{"version":"0508571a52475e245b02bc50fa1394065a0a3d05277fbf5120c3784b85651799","affectsGlobalScope":true,"impliedFormat":1},{"version":"8f9af488f510c3015af3cc8c267a9e9d96c4dd38a1fdff0e11dc5a544711415b","affectsGlobalScope":true,"impliedFormat":1},{"version":"fc611fea8d30ea72c6bbfb599c9b4d393ce22e2f5bfef2172534781e7d138104","affectsGlobalScope":true,"impliedFormat":1},{"version":"1ce14b81c5cc821994aa8ec1d42b220dd41b27fcc06373bce3958af7421b77d4","affectsGlobalScope":true,"impliedFormat":1},{"version":"b3a048b3e9302ef9a34ef4ebb9aecfb28b66abb3bce577206a79fee559c230da","affectsGlobalScope":true,"impliedFormat":1},{"version":"01a30f9e8582b369075c0808df71121e6855cb06fd8d3d39511d9ebb66405205","impliedFormat":1},"0242b74c149e317117aa6c97acce4ad116212ebfd963ae50bcfe8bb4fa6410d2","8220087127ce86b259fdbc78efac6cf14064a970393dd72047205a559a67a4cd","a0c71b9e3689601665669b5ad5a43d6adb2310947a3ca8e63a8bea9bf0602c95","525e3e3f106504c4e62d3564c5fea77ab17d72725981f45042ce51e9f6ae0220","66558f40fbf300cbba390965583590c6e9a874c6f95f42549fe6bf10f2ec35dd","4addbf2b9b6fcad145efc10233ce211a220cbc6a35b069d0a0467dd10ec5d855","5ef34083e9d734dfc751b5a45e046219bc29d4d9b97c51b2fad58f4305b52d7f","290759e0e7e335e470cb0b8fb085232ba92bbf53e3a6d7dfdc65423a4baf644c","0db5120e2a3e67bc5892e63f1bcf4a3d933755d5ac15fb7e1c989deb34fafd61","df3112eeed1593533b757b55fba51326c3984752f79699bc3a9c919c6556e901","1e74c319ebca519283c6be7486b2f44f2bc180f4394b8191801294081169e459","5679cb7e73eb8c28182e6455e3146ec797942cdaa0b52ece0559f1997a1dc420","9555e351c5d92cadc1e3bee2ed9735874050d48f1ab0d2f9339ab6d83865566e","df0f6ffe3276b650678e05f472d35c46ef581bc2d402dcf2c3e452a8b773b7c9",{"version":"ed184145481ac609cc92f49346ec2b396dbeca767fdf4b9801a39335a5db4408","signature":"8da3bbc534c6c3b5a758c92d46029b449f5b450b693a2fadf7f3b5b8e1193dd6"},{"version":"42514c64b82ac01abe410b23d44e644a24a635330d1f3662a124fc1d50bd9d49","signature":"f2ab99ad646b9d11aa9370652f4849fa5a65b3be7b509272600eb1b729c1c92f"},"a931971a0aed3a04be8ef1ef78e4bdd05af6d408bec44f846d3a0794dda5d708","f39120ae19c79ceffa561da071bbf53b5cf418f3ad9c186e895fa55c3c42ae31","5fe944eec62fa00578c1b68dd15a46847218f15c35eca212f86caed1469108e9","1bb4fc70e4d98ca7ef67079adde1ee3bfa3b3829ae948cf2ce5b7a332430ee65","132b0d4b346da8f6d6004dc9eb4bfc09c0d292e9325aff621b2332a12973199f","ecd41394ecea0650d670ed4cdba72fac8f219fdfa1cdcbfdcdeb79413d712d15","fe965a8da8781e4e6cef466ccccd5430dc040ae5f17615301f4203434701237c","5142c441d5148e0b3d8aaa232af01166540bc049913ded34fe2065e0ebe2cf16","8b5bd5ff52710d8bcc95ad06438f124e5035f6f999e0962a625a627c6cbaa021","b672301f6213a14ee5e0ad56a3503f678c35337c6f5dbcfdd785576b289f35b5","acc796ca42aa019c1426ac1400f0ed8cf0c467a8ea153044b2338901fd660ff6","98c3feb377f4ebaf4849b0cf27890325d05f9c5563fb05010a76125c30992eca","f44da91ac3c3129ba19ee963272ed427eb761efc0c6c67ad7e45be5c5016b313","6249f7b74c8b8b2422f29c66d6aea8681f87b77f99a990bc184bd09df5235a3c","f24f1e4dde89fcad8a16d83ee41396c4c0721dbd8589031c3b8b5605052aca10","d0da22a2d67875ae317f6fbd87c7767bf38554e3884b3c3230c6f3da71dc81e0","49254b5de8510bfe5a923535338c04f12c31b315ca448180a929d54b0d0961a8","7ef365e0bf6677c95eb0f59654e08ee4c71ab9c7a57d3d11c593e16a99122198","2234975d1fcdcb753e30d293166f907c926ef9d11af56b6e1050c45bd9975908","d8719f09ad5f2c84672042d065d7a6093f1112a777846773045796d065abaef1","93c1e1ffeda376466dd6ddb1f61bd1f82ee4083349eff033a9f4cd443f2abe04","bccc98e1e0a3a3b3a992843d3b7e1a86902f0d3e40eeb7d2d36fcadf1dd96a6c","20266ce07b679d16d991e0ea49a3b8699b5ed6c6d7962d1bfed43273543bc380","0c593fcd916773a7926a4d2e8b6f8b15fd2adeeb61ecd5639569e402ba72fb43","56bfb70b6d817e80fdea255c24f956e5791e8a1e988513c5e2221c23acfbedae","282c0998963e10c93a89a53a618c76c9f34b33c3ddfe22b4b860d10f2fe07ab7","de20bc27fab21c2c5ca1341569040f132680b4ace695aebe17cf19d55d6a75dd","371b35236cadf3a5614284d37d577ac3868e422715c926c1a5d8e9b4964d3084","21a68a9b94108bb8ea13af27a7ca1010f6b4493ca4b4349c91b7a3eada0ab5b0","fdf11aa8433694f2f5e90835c7384a5056293f75d7e24353612cc1cdccd222c1","51356357dc2b282ba36e0942147a9de1d6379ece336fcc59635e1f5ebe5d7722","076fa2932000bdeb0bdc8e19478a8651c61934b7ebcecba4662cdbe2531694b7","fa8ca9d1a9c2e191d194871cf9c85ab107db82c3f921fc1613da3681a49b3b4c","84f7c054d973b7531378d0791e5e5949d39d09554d8582e1ca75847703f591fc",{"version":"b7020cbf5dff79498a0231fd5286d946160f8b228d273260ee6c4a6226e242c5","signature":"c11319ef2c0b6f387812b87ea439341b4d35f444e502ce1221943e75886a0257"},{"version":"c04f23e059dfca157b651ba3fa8dc132852a85b5c33959067f16ddf82ab14bf9","signature":"9d45c613b7e8e22346616f7aa112249d8c2691f7ee2cf8864194c20d2d9796ad"},{"version":"73456792e3c1447d08958feb5f0e2e40e82ea73f74986bf47f4c53315eecc1ef","signature":"5679cb7e73eb8c28182e6455e3146ec797942cdaa0b52ece0559f1997a1dc420"},{"version":"8af946b6cf28773c62367f7a0b3a4d2d6afac876cc8264366d6e2d2c16ee0d73","signature":"6a570db802fd6c47d92c7a101d1ddee1207f5d431de7a6035b212a976de0c10b"},{"version":"9310d79a11169e04006114c360eea91970c391d1e895ed834b4ea2a4e8edaf78","signature":"db5caaeea7406cfdda7f9abe6a83167ff460dd08ccbdb09aa602039a22749983"},{"version":"2e8c3b24d5b9caee5ea07f163ab82d9f03bb259e021c7a0030f7c9c98ed9752f","signature":"64bdd684816d475a8435b847a9099add637fcdaf293e48a658f64e02e0e7670a"},{"version":"907da4e1b0f94517f1702dc0018fafad335ddba250192718e4de9b65acb17d47","signature":"c35869ee4300019465d34280557c3eb7bd250f6219f2400e3f6400874f27b4b0"},{"version":"e21826b241d4971fa9e85f502299036af3a0f4fa8ddcb5c6e11f15a2997e4429","signature":"869cfc27f8683a60f8e816da5b0bd78916d9f010eb57c35bb013db19b0a603e8"},{"version":"5dc3f873b79be89bf09b8a4efe95266040a69b7ee80d7dbd2a19b0e4ccd6b049","signature":"011b236e9dc204546f321090e3f3a9d72aad57c0646d3f6d78a575a074a9d5aa"},{"version":"afcdcb2388e089cccd3ac59089e47e8e348e95136bc652a58371260b93a27fb8","signature":"923d93ab3b0045896da10aa39dbe304ad854398def41d24d1c77c947370ad20c"},{"version":"5f74c5d31a5f2a729a537ce1cce1c7a86ecb0b17a0661a1469bd2fcb496f217c","signature":"8f965198a23f1073cfdf04ee9f6145c4eff2dc3b2c5be331c736ff6c94917d2d"},{"version":"2f167891f59e027f453b71d47e5379832cd452eb81529d5bb06d00df27bb2b3a","signature":"f55d4ddc8b51a7e4af21e2d311261240b9bf1ab702c9255678f09af781141f9d"}],"root":[78,79,[114,125]],"options":{"allowImportingTsExtensions":true,"composite":true,"declaration":true,"declarationMap":true,"emitDeclarationOnly":true,"esModuleInterop":true,"exactOptionalPropertyTypes":true,"module":99,"noEmitOnError":false,"noFallthroughCasesInSwitch":true,"noImplicitOverride":true,"noImplicitReturns":true,"noUncheckedIndexedAccess":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./types","rootDir":"../src","skipLibCheck":true,"sourceMap":true,"strict":true,"target":9,"useDefineForClassFields":true,"verbatimModuleSyntax":true},"referencedMap":[[77,1],[74,2],[93,3],[97,4],[89,3],[95,5],[96,6],[91,3],[90,3],[104,7],[105,8],[98,9],[114,10],[117,11],[118,12],[120,13],[78,12],[121,14],[115,12],[122,15],[79,12],[123,12],[125,16],[124,17],[83,18],[87,19],[86,9],[84,18],[108,20],[109,20],[113,21],[107,22]],"semanticDiagnosticsPerFile":[[79,[{"start":468,"length":10,"messageText":"'isFunction' is declared but its value is never read.","category":1,"code":6133,"reportsUnnecessary":true},{"start":480,"length":13,"messageText":"'isPlainObject' is declared but its value is never read.","category":1,"code":6133,"reportsUnnecessary":true}]],[114,[{"start":701,"length":5,"messageText":"'Props' is declared but its value is never read.","category":1,"code":6133,"reportsUnnecessary":true},{"start":713,"length":8,"messageText":"'Children' is declared but its value is never read.","category":1,"code":6133,"reportsUnnecessary":true},{"start":723,"length":8,"messageText":"'Fragment' is declared but its value is never read.","category":1,"code":6133,"reportsUnnecessary":true},{"start":877,"length":8,"messageText":"'reactive' is declared but its value is never read.","category":1,"code":6133,"reportsUnnecessary":true},{"start":887,"length":8,"messageText":"'nextTick' is declared but its value is never read.","category":1,"code":6133,"reportsUnnecessary":true},{"start":1206,"length":15,"messageText":"'ComponentDefine' is declared but its value is never read.","category":1,"code":6133,"reportsUnnecessary":true},{"start":2442,"length":8,"code":2345,"category":1,"messageText":{"messageText":"Argument of type 'string | undefined' is not assignable to parameter of type 'string'.","category":1,"code":2345,"next":[{"messageText":"Type 'undefined' is not assignable to type 'string'.","category":1,"code":2322}]}},{"start":5614,"length":10,"messageText":"'isFunction' is declared but its value is never read.","category":1,"code":6133,"reportsUnnecessary":true},{"start":5728,"length":13,"messageText":"'isPlainObject' is declared but its value is never read.","category":1,"code":6133,"reportsUnnecessary":true},{"start":6556,"length":8,"messageText":"'instance' is declared but its value is never read.","category":1,"code":6133,"reportsUnnecessary":true},{"start":7342,"length":5,"messageText":"'state' is declared but its value is never read.","category":1,"code":6133,"reportsUnnecessary":true},{"start":14895,"length":5,"messageText":"'oldEl' is declared but its value is never read.","category":1,"code":6133,"reportsUnnecessary":true}]],[119,[{"start":5326,"length":2,"messageText":"'vm' is declared but its value is never read.","category":1,"code":6133,"reportsUnnecessary":true},{"start":5506,"length":9,"messageText":"'lastError' is possibly 'undefined'.","category":1,"code":18048},{"start":5523,"length":9,"messageText":"'lastError' is possibly 'undefined'.","category":1,"code":18048},{"start":5537,"length":9,"messageText":"'lastError' is possibly 'undefined'.","category":1,"code":18048},{"start":5951,"length":6,"code":2322,"category":1,"messageText":{"messageText":"Type '{ error?: Error; vm?: any; info?: string; timestamp?: number; }' is not assignable to type '{ error: Error; vm: any; info: string; timestamp: number; }'.","category":1,"code":2322,"next":[{"messageText":"Property 'error' is optional in type '{ error?: Error; vm?: any; info?: string; timestamp?: number; }' but required in type '{ error: Error; vm: any; info: string; timestamp: number; }'.","category":1,"code":2327}]}}]],[124,[{"start":1995,"length":12,"messageText":"'camelToKebab' is declared but its value is never read.","category":1,"code":6133,"reportsUnnecessary":true},{"start":4450,"length":9,"messageText":"'lytEvents' is declared but its value is never read.","category":1,"code":6133,"reportsUnnecessary":true},{"start":6499,"length":4,"messageText":"'name' is declared but its value is never read.","category":1,"code":6133,"reportsUnnecessary":true},{"start":22915,"length":16,"messageText":"Object is possibly 'undefined'.","category":1,"code":2532},{"start":23055,"length":14,"messageText":"Object is possibly 'undefined'.","category":1,"code":2532}]]],"latestChangedDtsFile":"./types/web-component-entry.d.ts","version":"6.0.2"}