@lipsjs/lips 0.0.11 → 0.0.13
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/lips.min.js +2 -2
- package/dist/lips.min.js.map +19 -19
- package/dist/test.component.min.js +67 -2
- package/dist/test.component.min.js.map +22 -20
- package/dist/test.stress.min.js +8 -8
- package/dist/test.stress.min.js.map +19 -19
- package/dist/types/component.d.ts +35 -8
- package/dist/types/iuc/index.d.ts +25 -0
- package/dist/types/iuc/tick.d.ts +38 -0
- package/dist/types/lips.d.ts +2 -2
- package/dist/types/syntax/if.d.ts +5 -6
- package/dist/types/syntax/switch.d.ts +5 -6
- package/dist/types/types.d.ts +55 -28
- package/dist/types/uqs.d.ts +4 -4
- package/dist/types/utils.d.ts +11 -0
- package/package.json +1 -1
package/dist/test.stress.min.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var X8=Object.create;var{defineProperty:P1,getPrototypeOf:H8,getOwnPropertyNames:z8}=Object;var q8=Object.prototype.hasOwnProperty;var E1=(J,Z,W)=>{W=J!=null?X8(H8(J)):{};const z=Z||!J||!J.__esModule?P1(W,"default",{value:J,enumerable:!0}):W;for(let q of z8(J))if(!q8.call(z,q))P1(z,q,{get:()=>J[q],enumerable:!0});return z};var Y8=(J,Z)=>()=>(Z||J((Z={exports:{}}).exports,Z),Z.exports);var f0=(J,Z)=>{for(var W in Z)P1(J,W,{get:Z[W],enumerable:!0,configurable:!0,set:(z)=>Z[W]=()=>z})};var a0=Y8((Z5,Q5)=>{(function(){var J=document,Z=window,W=J.documentElement,z=J.createElement.bind(J),q=z("div"),Y=z("table"),G=z("tbody"),X=z("tr"),O=Array.isArray,K=Array.prototype,j=K.concat,E=K.filter,k=K.indexOf,x=K.map,m=K.push,o=K.slice,a=K.some,n=K.splice,s=/^#(?:[\w-]|\\.|[^\x00-\xa0])*$/,i=/^\.(?:[\w-]|\\.|[^\x00-\xa0])*$/,y=/<.+>/,v=/^\w+$/;function b(Q,H){var B=l(H);return!Q||!B&&!S(H)&&!R(H)?[]:!B&&i.test(Q)?H.getElementsByClassName(Q.slice(1).replace(/\\/g,"")):!B&&v.test(Q)?H.getElementsByTagName(Q):H.querySelectorAll(Q)}var U=function(){function Q(H,B){if(!H)return;if(C(H))return H;var D=H;if(P(H)){var L=B||J;if(D=s.test(H)&&S(L)?L.getElementById(H.slice(1).replace(/\\/g,"")):y.test(H)?u1(H):C(L)?L.find(H):P(L)?M(L).find(H):b(H,L),!D)return}else if(V(H))return this.ready(H);if(D.nodeType||D===Z)D=[D];this.length=D.length;for(var $=0,h=this.length;$<h;$++)this[$]=D[$]}return Q.prototype.init=function(H,B){return new Q(H,B)},Q}(),w=U.prototype,M=w.init;if(M.fn=M.prototype=w,w.length=0,w.splice=n,typeof Symbol==="function")w[Symbol.iterator]=K[Symbol.iterator];function C(Q){return Q instanceof U}function F(Q){return!!Q&&Q===Q.window}function S(Q){return!!Q&&Q.nodeType===9}function l(Q){return!!Q&&Q.nodeType===11}function R(Q){return!!Q&&Q.nodeType===1}function g(Q){return!!Q&&Q.nodeType===3}function f(Q){return typeof Q==="boolean"}function V(Q){return typeof Q==="function"}function P(Q){return typeof Q==="string"}function A(Q){return Q===void 0}function N(Q){return Q===null}function I(Q){return!isNaN(parseFloat(Q))&&isFinite(Q)}function T(Q){if(typeof Q!=="object"||Q===null)return!1;var H=Object.getPrototypeOf(Q);return H===null||H===Object.prototype}M.isWindow=F,M.isFunction=V,M.isArray=O,M.isNumeric=I,M.isPlainObject=T;function _(Q,H,B){if(B){var D=Q.length;while(D--)if(H.call(Q[D],D,Q[D])===!1)return Q}else if(T(Q)){var L=Object.keys(Q);for(var D=0,$=L.length;D<$;D++){var h=L[D];if(H.call(Q[h],h,Q[h])===!1)return Q}}else for(var D=0,$=Q.length;D<$;D++)if(H.call(Q[D],D,Q[D])===!1)return Q;return Q}M.each=_,w.each=function(Q){return _(this,Q)},w.empty=function(){return this.each(function(Q,H){while(H.firstChild)H.removeChild(H.firstChild)})};function c(){var Q=[];for(var H=0;H<arguments.length;H++)Q[H]=arguments[H];var B=f(Q[0])?Q.shift():!1,D=Q.shift(),L=Q.length;if(!D)return{};if(!L)return c(B,M,D);for(var $=0;$<L;$++){var h=Q[$];for(var d in h)if(B&&(O(h[d])||T(h[d]))){if(!D[d]||D[d].constructor!==h[d].constructor)D[d]=new h[d].constructor;c(B,D[d],h[d])}else D[d]=h[d]}return D}M.extend=c,w.extend=function(Q){return c(w,Q)};var p=/\S+/g;function u(Q){return P(Q)?Q.match(p)||[]:[]}w.toggleClass=function(Q,H){var B=u(Q),D=!A(H);return this.each(function(L,$){if(!R($))return;_(B,function(h,d){if(D)H?$.classList.add(d):$.classList.remove(d);else $.classList.toggle(d)})})},w.addClass=function(Q){return this.toggleClass(Q,!0)},w.removeAttr=function(Q){var H=u(Q);return this.each(function(B,D){if(!R(D))return;_(H,function(L,$){D.removeAttribute($)})})};function Z0(Q,H){if(!Q)return;if(P(Q)){if(arguments.length<2){if(!this[0]||!R(this[0]))return;var B=this[0].getAttribute(Q);return N(B)?void 0:B}if(A(H))return this;if(N(H))return this.removeAttr(Q);return this.each(function(L,$){if(!R($))return;$.setAttribute(Q,H)})}for(var D in Q)this.attr(D,Q[D]);return this}w.attr=Z0,w.removeClass=function(Q){if(arguments.length)return this.toggleClass(Q,!1);return this.attr("class","")},w.hasClass=function(Q){return!!Q&&a.call(this,function(H){return R(H)&&H.classList.contains(Q)})},w.get=function(Q){if(A(Q))return o.call(this);return Q=Number(Q),this[Q<0?Q+this.length:Q]},w.eq=function(Q){return M(this.get(Q))},w.first=function(){return this.eq(0)},w.last=function(){return this.eq(-1)};function D0(Q){if(A(Q))return this.get().map(function(H){return R(H)||g(H)?H.textContent:""}).join("");return this.each(function(H,B){if(!R(B))return;B.textContent=Q})}w.text=D0;function Q0(Q,H,B){if(!R(Q))return;var D=Z.getComputedStyle(Q,null);return B?D.getPropertyValue(H)||void 0:D[H]||Q.style[H]}function O0(Q,H){return parseInt(Q0(Q,H),10)||0}function f1(Q,H){return O0(Q,"border".concat(H?"Left":"Top","Width"))+O0(Q,"padding".concat(H?"Left":"Top"))+O0(Q,"padding".concat(H?"Right":"Bottom"))+O0(Q,"border".concat(H?"Right":"Bottom","Width"))}var M1={};function A5(Q){if(M1[Q])return M1[Q];var H=z(Q);J.body.insertBefore(H,null);var B=Q0(H,"display");return J.body.removeChild(H),M1[Q]=B!=="none"?B:"block"}function y1(Q){return Q0(Q,"display")==="none"}function v1(Q,H){var B=Q&&(Q.matches||Q.webkitMatchesSelector||Q.msMatchesSelector);return!!B&&!!H&&B.call(Q,H)}function d0(Q){return P(Q)?function(H,B){return v1(B,Q)}:V(Q)?Q:C(Q)?function(H,B){return Q.is(B)}:!Q?function(){return!1}:function(H,B){return B===Q}}w.filter=function(Q){var H=d0(Q);return M(E.call(this,function(B,D){return H.call(B,D,B)}))};function C0(Q,H){return!H?Q:Q.filter(H)}w.detach=function(Q){return C0(this,Q).each(function(H,B){if(B.parentNode)B.parentNode.removeChild(B)}),this};var b5=/^\s*<(\w+)[^>]*>/,_5=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,m1={"*":q,tr:G,td:X,th:X,thead:Y,tbody:Y,tfoot:Y};function u1(Q){if(!P(Q))return[];if(_5.test(Q))return[z(RegExp.$1)];var H=b5.test(Q)&&RegExp.$1,B=m1[H]||m1["*"];return B.innerHTML=Q,M(B.childNodes).detach().get()}M.parseHTML=u1,w.has=function(Q){var H=P(Q)?function(B,D){return b(Q,D).length}:function(B,D){return D.contains(Q)};return this.filter(H)},w.not=function(Q){var H=d0(Q);return this.filter(function(B,D){return(!P(Q)||R(D))&&!H.call(D,B,D)})};function j0(Q,H,B,D){var L=[],$=V(H),h=D&&d0(D);for(var d=0,w0=Q.length;d<w0;d++)if($){var W0=H(Q[d]);if(W0.length)m.apply(L,W0)}else{var q0=Q[d][H];while(q0!=null){if(D&&h(-1,q0))break;L.push(q0),q0=B?q0[H]:null}}return L}function d1(Q){if(Q.multiple&&Q.options)return j0(E.call(Q.options,function(H){return H.selected&&!H.disabled&&!H.parentNode.disabled}),"value");return Q.value||""}function x5(Q){if(!arguments.length)return this[0]&&d1(this[0]);return this.each(function(H,B){var D=B.multiple&&B.options;if(D||e1.test(B.type)){var L=O(Q)?x.call(Q,String):N(Q)?[]:[String(Q)];if(D)_(B.options,function($,h){h.selected=L.indexOf(h.value)>=0},!0);else B.checked=L.indexOf(B.value)>=0}else B.value=A(Q)||N(Q)?"":Q})}w.val=x5,w.is=function(Q){var H=d0(Q);return a.call(this,function(B,D){return H.call(B,D,B)})},M.guid=1;function U0(Q){return Q.length>1?E.call(Q,function(H,B,D){return k.call(D,H)===B}):Q}M.unique=U0,w.add=function(Q,H){return M(U0(this.get().concat(M(Q,H).get())))},w.children=function(Q){return C0(M(U0(j0(this,function(H){return H.children}))),Q)},w.parent=function(Q){return C0(M(U0(j0(this,"parentNode"))),Q)},w.index=function(Q){var H=Q?M(Q)[0]:this[0],B=Q?this:M(H).parent().children();return k.call(B,H)},w.closest=function(Q){var H=this.filter(Q);if(H.length)return H;var B=this.parent();if(!B.length)return H;return B.closest(Q)},w.siblings=function(Q){return C0(M(U0(j0(this,function(H){return M(H).parent().children().not(H)}))),Q)},w.find=function(Q){return M(U0(j0(this,function(H){return b(Q,H)})))};var g5=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,k5=/^$|^module$|\/(java|ecma)script/i,h5=["type","src","nonce","noModule"];function f5(Q,H){var B=M(Q);B.filter("script").add(B.find("script")).each(function(D,L){if(k5.test(L.type)&&W.contains(L)){var $=z("script");$.text=L.textContent.replace(g5,""),_(h5,function(h,d){if(L[d])$[d]=L[d]}),H.head.insertBefore($,null),H.head.removeChild($)}})}function y5(Q,H,B,D,L){if(D)Q.insertBefore(H,B?Q.firstChild:null);else if(Q.nodeName==="HTML")Q.parentNode.replaceChild(H,Q);else Q.parentNode.insertBefore(H,B?Q:Q.nextSibling);if(L)f5(H,Q.ownerDocument)}function N0(Q,H,B,D,L,$,h,d){return _(Q,function(w0,W0){_(M(W0),function(q0,E0){_(M(H),function(K0,c0){var V1=B?E0:c0,C1=B?c0:E0,Y0=B?q0:K0;y5(V1,!Y0?C1:C1.cloneNode(!0),D,L,!Y0)},d)},h)},$),H}w.after=function(){return N0(arguments,this,!1,!1,!1,!0,!0)},w.append=function(){return N0(arguments,this,!1,!1,!0)};function v5(Q){if(!arguments.length)return this[0]&&this[0].innerHTML;if(A(Q))return this;var H=/<script[\s>]/.test(Q);return this.each(function(B,D){if(!R(D))return;if(H)M(D).empty().append(Q);else D.innerHTML=Q})}w.html=v5,w.appendTo=function(Q){return N0(arguments,this,!0,!1,!0)},w.wrapInner=function(Q){return this.each(function(H,B){var D=M(B),L=D.contents();L.length?L.wrapAll(Q):D.append(Q)})},w.before=function(){return N0(arguments,this,!1,!0)},w.wrapAll=function(Q){var H=M(Q),B=H[0];while(B.children.length)B=B.firstElementChild;return this.first().before(H),this.appendTo(B)},w.wrap=function(Q){return this.each(function(H,B){var D=M(Q)[0];M(B).wrapAll(!H?D:D.cloneNode(!0))})},w.insertAfter=function(Q){return N0(arguments,this,!0,!1,!1,!1,!1,!0)},w.insertBefore=function(Q){return N0(arguments,this,!0,!0)},w.prepend=function(){return N0(arguments,this,!1,!0,!0,!0,!0)},w.prependTo=function(Q){return N0(arguments,this,!0,!0,!0,!1,!1,!0)},w.contents=function(){return M(U0(j0(this,function(Q){return Q.tagName==="IFRAME"?[Q.contentDocument]:Q.tagName==="TEMPLATE"?Q.content.childNodes:Q.childNodes})))},w.next=function(Q,H,B){return C0(M(U0(j0(this,"nextElementSibling",H,B))),Q)},w.nextAll=function(Q){return this.next(Q,!0)},w.nextUntil=function(Q,H){return this.next(H,!0,Q)},w.parents=function(Q,H){return C0(M(U0(j0(this,"parentElement",!0,H))),Q)},w.parentsUntil=function(Q,H){return this.parents(H,Q)},w.prev=function(Q,H,B){return C0(M(U0(j0(this,"previousElementSibling",H,B))),Q)},w.prevAll=function(Q){return this.prev(Q,!0)},w.prevUntil=function(Q,H){return this.prev(H,!0,Q)},w.map=function(Q){return M(j.apply([],x.call(this,function(H,B){return Q.call(H,B,H)})))},w.clone=function(){return this.map(function(Q,H){return H.cloneNode(!0)})},w.offsetParent=function(){return this.map(function(Q,H){var B=H.offsetParent;while(B&&Q0(B,"position")==="static")B=B.offsetParent;return B||W})},w.slice=function(Q,H){return M(o.call(this,Q,H))};var m5=/-([a-z])/g;function O1(Q){return Q.replace(m5,function(H,B){return B.toUpperCase()})}w.ready=function(Q){var H=function(){return setTimeout(Q,0,M)};if(J.readyState!=="loading")H();else J.addEventListener("DOMContentLoaded",H);return this},w.unwrap=function(){return this.parent().each(function(Q,H){if(H.tagName==="BODY")return;var B=M(H);B.replaceWith(B.children())}),this},w.offset=function(){var Q=this[0];if(!Q)return;var H=Q.getBoundingClientRect();return{top:H.top+Z.pageYOffset,left:H.left+Z.pageXOffset}},w.position=function(){var Q=this[0];if(!Q)return;var H=Q0(Q,"position")==="fixed",B=H?Q.getBoundingClientRect():this.offset();if(!H){var D=Q.ownerDocument,L=Q.offsetParent||D.documentElement;while((L===D.body||L===D.documentElement)&&Q0(L,"position")==="static")L=L.parentNode;if(L!==Q&&R(L)){var $=M(L).offset();B.top-=$.top+O0(L,"borderTopWidth"),B.left-=$.left+O0(L,"borderLeftWidth")}}return{top:B.top-O0(Q,"marginTop"),left:B.left-O0(Q,"marginLeft")}};var i1={class:"className",contenteditable:"contentEditable",for:"htmlFor",readonly:"readOnly",maxlength:"maxLength",tabindex:"tabIndex",colspan:"colSpan",rowspan:"rowSpan",usemap:"useMap"};w.prop=function(Q,H){if(!Q)return;if(P(Q)){if(Q=i1[Q]||Q,arguments.length<2)return this[0]&&this[0][Q];return this.each(function(D,L){L[Q]=H})}for(var B in Q)this.prop(B,Q[B]);return this},w.removeProp=function(Q){return this.each(function(H,B){delete B[i1[Q]||Q]})};var u5=/^--/;function U1(Q){return u5.test(Q)}var D1={},d5=q.style,i5=["webkit","moz","ms"];function c5(Q,H){if(H===void 0)H=U1(Q);if(H)return Q;if(!D1[Q]){var B=O1(Q),D="".concat(B[0].toUpperCase()).concat(B.slice(1)),L="".concat(B," ").concat(i5.join("".concat(D," "))).concat(D).split(" ");_(L,function($,h){if(h in d5)return D1[Q]=h,!1})}return D1[Q]}var p5={animationIterationCount:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0};function c1(Q,H,B){if(B===void 0)B=U1(Q);return!B&&!p5[Q]&&I(H)?"".concat(H,"px"):H}function o5(Q,H){if(P(Q)){var B=U1(Q);if(Q=c5(Q,B),arguments.length<2)return this[0]&&Q0(this[0],Q,B);if(!Q)return this;return H=c1(Q,H,B),this.each(function(L,$){if(!R($))return;if(B)$.style.setProperty(Q,H);else $.style[Q]=H})}for(var D in Q)this.css(D,Q[D]);return this}w.css=o5;function p1(Q,H){try{return Q(H)}catch(B){return H}}var s5=/^\s+|\s+$/;function o1(Q,H){var B=Q.dataset[H]||Q.dataset[O1(H)];if(s5.test(B))return B;return p1(JSON.parse,B)}function l5(Q,H,B){B=p1(JSON.stringify,B),Q.dataset[O1(H)]=B}function n5(Q,H){if(!Q){if(!this[0])return;var B={};for(var D in this[0].dataset)B[D]=o1(this[0],D);return B}if(P(Q)){if(arguments.length<2)return this[0]&&o1(this[0],Q);if(A(H))return this;return this.each(function(L,$){l5($,Q,H)})}for(var D in Q)this.data(D,Q[D]);return this}w.data=n5;function s1(Q,H){var B=Q.documentElement;return Math.max(Q.body["scroll".concat(H)],B["scroll".concat(H)],Q.body["offset".concat(H)],B["offset".concat(H)],B["client".concat(H)])}_([!0,!1],function(Q,H){_(["Width","Height"],function(B,D){var L="".concat(H?"outer":"inner").concat(D);w[L]=function($){if(!this[0])return;if(F(this[0]))return H?this[0]["inner".concat(D)]:this[0].document.documentElement["client".concat(D)];if(S(this[0]))return s1(this[0],D);return this[0]["".concat(H?"offset":"client").concat(D)]+($&&H?O0(this[0],"margin".concat(B?"Top":"Left"))+O0(this[0],"margin".concat(B?"Bottom":"Right")):0)}})}),_(["Width","Height"],function(Q,H){var B=H.toLowerCase();w[B]=function(D){if(!this[0])return A(D)?void 0:this;if(!arguments.length){if(F(this[0]))return this[0].document.documentElement["client".concat(H)];if(S(this[0]))return s1(this[0],H);return this[0].getBoundingClientRect()[B]-f1(this[0],!Q)}var L=parseInt(D,10);return this.each(function($,h){if(!R(h))return;var d=Q0(h,"boxSizing");h.style[B]=c1(B,L+(d==="border-box"?f1(h,!Q):0))})}});var l1="___cd";w.toggle=function(Q){return this.each(function(H,B){if(!R(B))return;var D=y1(B),L=A(Q)?D:Q;if(L){if(B.style.display=B[l1]||"",y1(B))B.style.display=A5(B.tagName)}else if(!D)B[l1]=Q0(B,"display"),B.style.display="none"})},w.hide=function(){return this.toggle(!1)},w.show=function(){return this.toggle(!0)};var n1="___ce",j1=".",I1={focus:"focusin",blur:"focusout"},r1={mouseenter:"mouseover",mouseleave:"mouseout"},r5=/^(mouse|pointer|contextmenu|drag|drop|click|dblclick)/i;function F1(Q){return r1[Q]||I1[Q]||Q}function L1(Q){var H=Q.split(j1);return[H[0],H.slice(1).sort()]}w.trigger=function(Q,H){if(P(Q)){var B=L1(Q),D=B[0],L=B[1],$=F1(D);if(!$)return this;var h=r5.test($)?"MouseEvents":"HTMLEvents";Q=J.createEvent(h),Q.initEvent($,!0,!0),Q.namespace=L.join(j1),Q.___ot=D}Q.___td=H;var d=Q.___ot in I1;return this.each(function(w0,W0){if(d&&V(W0[Q.___ot]))W0["___i".concat(Q.type)]=!0,W0[Q.___ot](),W0["___i".concat(Q.type)]=!1;W0.dispatchEvent(Q)})};function t1(Q){return Q[n1]=Q[n1]||{}}function t5(Q,H,B,D,L){var $=t1(Q);$[H]=$[H]||[],$[H].push([B,D,L]),Q.addEventListener(H,L)}function a1(Q,H){return!H||!a.call(H,function(B){return Q.indexOf(B)<0})}function i0(Q,H,B,D,L){var $=t1(Q);if(!H)for(H in $)i0(Q,H,B,D,L);else if($[H])$[H]=$[H].filter(function(h){var d=h[0],w0=h[1],W0=h[2];if(L&&W0.guid!==L.guid||!a1(d,B)||D&&D!==w0)return!0;Q.removeEventListener(H,W0)})}w.off=function(Q,H,B){var D=this;if(A(Q))this.each(function($,h){if(!R(h)&&!S(h)&&!F(h))return;i0(h)});else if(!P(Q))for(var L in Q)this.off(L,Q[L]);else{if(V(H))B=H,H="";_(u(Q),function($,h){var d=L1(h),w0=d[0],W0=d[1],q0=F1(w0);D.each(function(E0,K0){if(!R(K0)&&!S(K0)&&!F(K0))return;i0(K0,q0,W0,H,B)})})}return this},w.remove=function(Q){return C0(this,Q).detach().off(),this},w.replaceWith=function(Q){return this.before(Q).remove()},w.replaceAll=function(Q){return M(Q).replaceWith(this),this};function a5(Q,H,B,D,L){var $=this;if(!P(Q)){for(var h in Q)this.on(h,H,B,Q[h],L);return this}if(!P(H))if(A(H)||N(H))H="";else if(A(B))B=H,H="";else D=B,B=H,H="";if(!V(D))D=B,B=void 0;if(!D)return this;return _(u(Q),function(d,w0){var W0=L1(w0),q0=W0[0],E0=W0[1],K0=F1(q0),c0=q0 in r1,V1=q0 in I1;if(!K0)return;$.each(function(C1,Y0){if(!R(Y0)&&!S(Y0)&&!F(Y0))return;var N1=function(X0){if(X0.target["___i".concat(X0.type)])return X0.stopImmediatePropagation();if(X0.namespace&&!a1(E0,X0.namespace.split(j1)))return;if(!H&&(V1&&(X0.target!==Y0||X0.___ot===K0)||c0&&X0.relatedTarget&&Y0.contains(X0.relatedTarget)))return;var S1=Y0;if(H){var T0=X0.target;while(!v1(T0,H)){if(T0===Y0)return;if(T0=T0.parentNode,!T0)return}S1=T0}Object.defineProperty(X0,"currentTarget",{configurable:!0,get:function(){return S1}}),Object.defineProperty(X0,"delegateTarget",{configurable:!0,get:function(){return Y0}}),Object.defineProperty(X0,"data",{configurable:!0,get:function(){return B}});var W8=D.call(S1,X0,X0.___td);if(L)i0(Y0,K0,E0,H,N1);if(W8===!1)X0.preventDefault(),X0.stopPropagation()};N1.guid=D.guid=D.guid||M.guid++,t5(Y0,K0,E0,H,N1)})}),this}w.on=a5;function e5(Q,H,B,D){return this.on(Q,H,B,D,!0)}w.one=e5;var J8=/\r?\n/g;function Z8(Q,H){return"&".concat(encodeURIComponent(Q),"=").concat(encodeURIComponent(H.replace(J8,"\r\n")))}var Q8=/file|reset|submit|button|image/i,e1=/radio|checkbox/i;if(w.serialize=function(){var Q="";return this.each(function(H,B){_(B.elements||[B],function(D,L){if(L.disabled||!L.name||L.tagName==="FIELDSET"||Q8.test(L.type)||e1.test(L.type)&&!L.checked)return;var $=d1(L);if(!A($)){var h=O($)?$:[$];_(h,function(d,w0){Q+=Z8(L.name,w0)})}})}),Q.slice(1)},typeof Z5!=="undefined")Q5.exports=M;else Z.cash=Z.$=M})()});var p0=function(J,Z){if(!Z)return J;return J.replace(/{(\w+)}/g,(W,z)=>{return Z[z]!==void 0?Z[z].toString():`{${z}}`})},J5=(J,Z,W,z,q)=>{switch(J){case"plural":{if(typeof W==="string"){console.warn("Plural format value cannot be a string");return}if(z.count===void 0){console.warn("Plural format requires <count> parameter or use * by default.");let X=W["*"];if(typeof X==="object")X=X[q||"*"];return p0(X,z)}if(typeof z.count==="string")z.count=Number(z.count);let Y="*";if(z.count.toString()in W)Y=z.count.toString();let G=W[Y]||W["*"];if(typeof G==="object")G=G[q||"*"];return p0(G,z)}case"condition":{if(typeof W==="string"){console.warn("Condition format value cannot be a string");return}let Y;for(let G in W)try{if(new Function("params",`with( params ){ return ${G}; }`)(z||{})){Y=W[G];break}}catch(X){console.warn(`Invalid <${Z}(${G})> condition expression`)}if(Y===void 0)return;if(typeof Y==="object")Y=Y[q||"*"];return p0(Y,z)}case"variable":default:{const Y=typeof W==="object"?W[q||"*"]:W;if(typeof Y==="object"){console.warn(`Invalid <${Z}> variable variant definition`);return}return p0(Y,z)}}};class o0{currentLang=window.navigator.language;DICTIONARIES={};set lang(J){if(this.currentLang===J)return;this.currentLang=J}get lang(){return this.currentLang}setDictionary(J,Z){this.DICTIONARIES[J]=Z}translate(J,Z){if(Z&&this.currentLang===Z)return{text:J,lang:this.currentLang};Z=Z||this.currentLang;const[W,z]=Z.split("-");if(this.DICTIONARIES[W]&&J in this.DICTIONARIES[W]){if(typeof this.DICTIONARIES[W][J]==="object"){const q=this.DICTIONARIES[W][J];J=q[z||"*"]||q["*"]}else if(typeof this.DICTIONARIES[W][J]==="string")J=this.DICTIONARIES[W][J]}return{text:J,lang:Z}}format(J,Z,W){W=W||this.currentLang;const[z,q]=W.split("-");if(!this.DICTIONARIES[z]){console.warn(`Undefined <${W}> format dictionary`);return}if(!this.DICTIONARIES[z][J]){console.warn(`Undefined <${W}[${J}]> format reference`);return}const Y=this.DICTIONARIES[z][J];if(typeof Y==="string"){console.warn(`Invalid <${W}[${J}]> format reference. Expected object`);return}if(typeof Y!=="object"||Y===null||Array.isArray(Y)){console.warn(`Invalid <${W}[${J}]> format value`);return}return J5(Y.type,J,Y.value,Z,q)}}class s0{pendingComponents=new Set;isPending=!1;callbacks=new Map;register(J,Z){this.callbacks.set(J,Z)}unregister(J){this.callbacks.delete(J)}queue(J){if(!this.callbacks.has(J))return;if(this.pendingComponents.add(J),!this.isPending)this.isPending=!0,this.schedule()}schedule(){Promise.resolve().then(()=>this.process())}process(){const J=Array.from(this.pendingComponents);this.pendingComponents.clear(),this.isPending=!1,J.forEach((Z)=>{try{const W=this.callbacks.get(Z);if(W)W()}catch(W){console.error(`Error updating component ${Z}:`,W)}})}clear(){this.pendingComponents.clear(),this.isPending=!1}dispose(){this.pendingComponents.clear(),this.callbacks.clear(),this.isPending=!1}}class l0{subscriptions=new Map;tick=new s0;register(J,Z){this.subscriptions.set(J,Z),this.tick.register(J,Z)}unregister(J){this.subscriptions.delete(J),this.tick.unregister(J)}queueUpdate(J){this.tick.queue(J)}dispose(){this.subscriptions.clear(),this.tick.dispose()}prepareForPotentialUnload(){this.tick.clear(),this.subscriptions.forEach((J,Z)=>{this.subscriptions.set(Z,()=>{})})}proxyState(J,Z){const W=this,z=new WeakMap,q=(G)=>{if(G instanceof Map)G.forEach((O,K)=>G.set(K,Y(O)));else if(Array.isArray(G))G.forEach((O,K)=>G[K]=Y(O));else if(typeof G==="object")Object.entries(G).forEach(([O,K])=>G[O]=Y(K));let X=new Proxy(G,{get(O,K){if(K==="toJSON")return function(){const E=(k)=>{if(!k||typeof k!=="object")return k;if(z.has(k)){const x=z.get(k);if(x instanceof Map){const o={};return x.forEach((a,n)=>o[typeof n==="object"?JSON.stringify(n):String(n)]=E(a)),o}if(Array.isArray(x))return x.map((o)=>E(o));const m={};return Object.entries(x).forEach(([o,a])=>m[o]=E(a)),m}if(typeof k.toJSON==="function"&&!z.has(k))return k.toJSON();return k};return E(X)};if(K==="reset")return function(){X=null};const j=O[K];if(G instanceof Map&&typeof j==="function")return function(...E){const k=K.toString();if(k==="set"&&E.length>=2)E[1]=Y(E[1]);const x=j.apply(O,E);return["set","delete","clear"].includes(k)&&W.queueUpdate(J),x};if(Array.isArray(G)&&typeof j==="function")return function(...E){const k=K.toString();if(["push","unshift"].includes(k))E=E.map((m)=>Y(m));else if(k==="splice"&&E.length>2)E=[E[0],E[1],...E.slice(2).map((m)=>Y(m))];const x=j.apply(O,E);return["push","pop","shift","unshift","splice","sort","reverse","fill"].includes(k)&&W.queueUpdate(J),x};return j},set(O,K,j){if(O[K]===j)return!0;if(j instanceof Map&&O[K]instanceof Map){const E=O[K];return E.clear(),j.forEach((k,x)=>E.set(x,Y(k))),W.queueUpdate(J),!0}return O[K]=Y(j),W.queueUpdate(J),!0}});return z.set(X,G),X},Y=(G)=>{if(!G)return G;return G instanceof Map||Array.isArray(G)||typeof G==="object"?q(G):G};return q(Z)}}class n0{domObserver;observedComponents=new Map;TIMEOUT=1e4;constructor(){this.domObserver=new MutationObserver(()=>{this.observedComponents.forEach((J,Z)=>{try{const W=Z.node;if(!W){this.unwatch(Z);return}if(J.type==="attach"&&document.contains(W[0]))this.unwatch(Z),Z.emit("component:attached"),typeof Z.onAttach=="function"&&Z.onAttach.bind(Z)();else if(J.type==="detach"&&!document.contains(W[0]))this.unwatch(Z),Z.emit("component:detached"),typeof Z.onDetach=="function"&&Z.onDetach.bind(Z)()}catch(W){console.log("DWS error --",W)}}),!this.observedComponents.size&&this.domObserver.disconnect()})}watch(J,Z="attach"){const W=J.node;if(!W)return;if(Z==="attach"&&document.contains(W[0])){J.emit("component:attached"),typeof J.onAttach=="function"&&J.onAttach.bind(J)();return}if(Z==="detach"&&!document.contains(W[0])){J.emit("component:detached"),typeof J.onDetach=="function"&&J.onDetach.bind(J)();return}this.unwatch(J);const z=setTimeout(()=>{this.unwatch(J),J.emit(`component:${Z}ment-timeout`)},this.TIMEOUT);this.observedComponents.set(J,{timeout:z,type:Z}),this.observedComponents.size===1&&this.domObserver.observe(document.body,{childList:!0,subtree:!0}),Z==="attach"&&J.once("component:attached",()=>this.watch(J,"detach"))}unwatch(J){const Z=this.observedComponents.get(J);if(Z)clearTimeout(Z.timeout),this.observedComponents.delete(J);!this.observedComponents.size&&this.domObserver.disconnect()}dispose(){this.domObserver.disconnect(),this.observedComponents.forEach((J)=>clearTimeout(J.timeout)),this.observedComponents.clear()}}class r0{pending=new Map;isPending=!1;component;metrics={batchCount:0,updatesProcessed:0,lastBatchSize:0,avgBatchSize:"0.00"};constructor(J){this.component=J}queue(J){if(this.pending.set(J.dependent.path,J),this.component.metrics.inc("dependencyUpdateCount"),!this.isPending)this.isPending=!0,this.scheduleProcessing()}scheduleProcessing(){Promise.resolve().then(()=>this.processQueue())}processQueue(){const J=Array.from(this.pending.values());if(this.metrics.batchCount++,this.metrics.lastBatchSize=J.length,this.metrics.updatesProcessed+=J.length,this.metrics.avgBatchSize=(this.metrics.updatesProcessed/this.metrics.batchCount).toFixed(2),this.pending.clear(),this.component.metrics.trackBatch(J.length),this.applyUpdates(J),this.isPending=!1,this.pending.size>0)this.isPending=!0,this.scheduleProcessing()}applyUpdates(J){J.forEach(({dep:Z,dependent:W})=>{try{const z=W.update(W.memo,"batch-updator");if(z)typeof z.memo==="object"&&this.component.FGUD.get(Z)?.set(W.path,{...W,memo:z.memo}),typeof z.cleanup==="function"&&z.cleanup()}catch(z){console.error("Failed to update dependency --",z)}})}getMetrics(){return{batchCount:this.metrics.batchCount,lastBatchSize:this.metrics.lastBatchSize,avgBatchSize:this.metrics.avgBatchSize,totalUpdates:this.metrics.updatesProcessed}}}class t0{options={emit:!0};__events={};__once_events={};constructor(J){if(J)this.options=J}on(J,Z){if(!Array.isArray(this.__events[J]))this.__events[J]=[];return this.__events[J].push(Z),this}once(J,Z){if(!Array.isArray(this.__once_events[J]))this.__once_events[J]=[];return this.__once_events[J].push(Z),this}off(J){return delete this.__events[J],delete this.__once_events[J],this}emit(J,...Z){if(!this.options.emit)return;const W=(q)=>{if(typeof q.toJSON==="function")return q.toJSON();if(Array.isArray(q))return q.map(W);if(typeof q==="object")for(let Y in q)q[Y]=W(q[Y]);return q},z=Z.map(W);this.__events[J]?.forEach((q)=>q(...z)),this.__once_events[J]?.forEach((q)=>q(...z)),delete this.__once_events[J]}}var $1=E1(a0(),1);function H0(J,Z){if(J===Z)return!1;if(typeof J!=="object"||typeof Z!=="object")return!1;if(J===null||Z===null)return!0;if(J instanceof Set){if(!(Z instanceof Set))return!0;if(J.size!==Z.size)return!0;if(W5(J)&&W5(Z)){for(let G of J)if(!Z.has(G))return!0;return!1}const Y=new WeakMap;for(let G of J){let X=!1;if(typeof G!=="object"){if(Z.has(G))X=!0}else for(let O of Z){if(typeof O!=="object")continue;if(!Y.has(G))Y.set(G,new WeakMap);const K=Y.get(G);if(K.has(O)){if(X=K.get(O),X)break;continue}const j=!H0(G,O);if(K.set(O,j),j){X=!0;break}}if(!X)return!0}return!1}if(J instanceof Map){if(!(Z instanceof Map))return!0;if(J.size!==Z.size)return!0;if(X5(J)&&X5(Z)){for(let[G,X]of J)if(Z.get(G)!==X)return!0;return!1}const Y=new WeakMap;for(let[G,X]of J){if(typeof G!=="object"){if(!Z.has(G))return!0;const j=Z.get(G);if(typeof X!=="object"){if(X!==j)return!0;continue}if(typeof j!=="object"||H0(X,j))return!0;continue}let O=!1,K=!1;for(let[j,E]of Z){if(typeof j!=="object")continue;if(!Y.has(G))Y.set(G,new WeakMap);const k=Y.get(G);if(k.has(j)){const[x,m]=k.get(j);if(x){O=!0,K=m;break}continue}if(!H0(G,j)){if(O=!0,K=typeof X==="object"&&typeof E==="object"?!H0(X,E):X===E,k.set(j,[!0,K]),K)break}else k.set(j,[!1,!1])}if(!O||!K)return!0}return!1}if(Array.isArray(J)){if(!Array.isArray(Z))return!0;if(J.length!==Z.length)return!0;for(let Y=0;Y<J.length;Y++){const G=J[Y],X=Z[Y];if(G!==X&&(typeof G!=="object"||H0(G,X)))return!0}return!1}const W=Object.keys(J),z=Object.keys(Z);if(W.length!==z.length)return!0;W.sort(),z.sort();const q=W.length;for(let Y=0;Y<q;Y++)if(W[Y]!==z[Y])return!0;for(let Y=0;Y<q;Y++){const G=W[Y],X=J[G],O=Z[G];if(X===O)continue;if(X instanceof Date){if(!(O instanceof Date)||String(X)!==String(O))return!0;continue}if(X instanceof RegExp){if(!(O instanceof RegExp)||X.source!==O.source||X.flags!==O.flags)return!0;continue}if(X instanceof Map){if(!(O instanceof Map)||H0(X,O))return!0;continue}if(X instanceof Set){if(!(O instanceof Set)||H0(X,O))return!0;continue}if(X instanceof Function){if(!(O instanceof Function))return!0;continue}if(typeof X==="object"){if(typeof O!=="object")return!0;if(X===J){if(O!==Z)return!0}else if(H0(X,O))return!0}else return!0}return!1}function S0(J,Z){if(J===Z)return!0;if(J==null||Z==null)return J===Z;const W=typeof J;if(W!==typeof Z)return!1;if(W!=="object"){if(W==="number"&&isNaN(J)&&isNaN(Z))return!0;return!1}if(J instanceof Date)return Z instanceof Date&&J.getTime()===Z.getTime();if(J instanceof RegExp)return Z instanceof RegExp&&J.source===Z.source&&J.flags===Z.flags;if(J instanceof Error)return Z instanceof Error&&J.name===Z.name&&J.message===Z.message&&(J.stack===Z.stack||!J.stack&&!Z.stack);if(typeof ArrayBuffer!=="undefined"&&ArrayBuffer.isView(J)){if(!ArrayBuffer.isView(Z))return!1;if(J.byteLength!==Z.byteLength)return!1;const X=new Uint8Array(J.buffer,J.byteOffset,J.byteLength),O=new Uint8Array(Z.buffer,Z.byteOffset,Z.byteLength);for(let K=0;K<X.length;K++)if(X[K]!==O[K])return!1;return!0}if(J instanceof Promise||J instanceof WeakMap||J instanceof WeakSet)return J===Z;if(typeof J==="function"){if(typeof Z!=="function")return!1;return J.toString()===Z.toString()&&J.name===Z.name}if(J.constructor!==Z.constructor)return!1;if(J instanceof Map||J instanceof Set||Array.isArray(J)||Object.getPrototypeOf(J)===Object.prototype)return!H0(J,Z);const q=Object.getPrototypeOf(J);if(q!==Object.getPrototypeOf(Z))return!1;const Y=Object.getOwnPropertyNames(J),G=Object.getOwnPropertyNames(Z);if(Y.length!==G.length)return!1;for(let X of Y){if(!Object.prototype.hasOwnProperty.call(Z,X))return!1;if(!S0(J[X],Z[X]))return!1}if(q!==null&&q!==Object.prototype){const X=Object.getOwnPropertyNames(q),O=Object.getOwnPropertyNames(Object.getPrototypeOf(Z));if(X.length!==O.length)return!1;for(let K of X){if(K==="constructor")continue;if(!S0(q[K],Object.getPrototypeOf(Z)[K]))return!1}}return!0}function W5(J){for(let Z of J)if(typeof Z==="object"&&Z!==null)return!1;return!0}function X5(J){for(let[Z,W]of J)if(typeof Z==="object"&&Z!==null||typeof W==="object"&&W!==null)return!1;return!0}function e(J,Z=new WeakMap){if(J===null||typeof J!=="object"||J instanceof Promise)return J;if(Z.has(J))return Z.get(J);if(J instanceof Date)return new Date(J.getTime());if(J instanceof RegExp)return new RegExp(J.source,J.flags);if(J instanceof Map){const q=new Map;return Z.set(J,q),J.forEach((Y,G)=>q.set(e(G,Z),e(Y,Z))),q}if(J instanceof Set){const q=new Set;return Z.set(J,q),J.forEach((Y)=>q.add(e(Y,Z))),q}if(Array.isArray(J)){const q=[];Z.set(J,q);for(let Y=0;Y<J.length;Y++)q[Y]=e(J[Y],Z);return q}if(ArrayBuffer.isView(J))return new J.constructor(J);const W=Object.create(Object.getPrototypeOf(J));Z.set(J,W);const z=Object.getOwnPropertySymbols(J);for(let q of z)W[q]=e(J[q],Z);for(let q in J)if(Object.prototype.hasOwnProperty.call(J,q))W[q]=e(J[q],Z);return W}function z5(J,Z){if(!J||typeof J!=="object")throw new TypeError("Original argument must be an object");if(!Z||typeof Z!=="object")throw new TypeError("ToSet argument must be an object");if(!Object.keys(Z).length)return{...J};function W(q,Y,G){const X=Y.split(/\.|\[|\]/).filter(Boolean);let O=q;for(let K=0;K<X.length;K++){const j=X[K],E=!isNaN(Number(j)),k=K===X.length-1,x=!isNaN(Number(X[K+1]));if(k){O[j]=G;continue}if(!(j in O))O[j]=x?[]:{};else if(x&&!Array.isArray(O[j]))O[j]=[];else if(!x&&Array.isArray(O[j]))O[j]={};O=O[j]}}const z=e(J);try{for(let[q,Y]of Object.entries(Z)){if(typeof q!=="string")throw new TypeError(`Invalid path: ${q}`);if(!/^[a-zA-Z0-9_\-\[\].]+$/.test(q))throw new Error(`Invalid path format: ${q}`);W(z,q,Y)}}catch(q){throw new Error(`Failed to assign value: ${q.message}`)}return z}var P0="i18n",I0="syn:",M0="fn:",$0="on-",t=/^\.\.\./,e0=/^\[(.*?)\]$/,R1=/{\s*([^{}]+)\s*}/g,H5=["@html","@text","@format"];$1.default.fn.extend({attrs:function(){const J={},Z=this[0];return Z&&Z.nodeType!==Node.TEXT_NODE&&$1.default.each(Z.attributes,function(){J[this.name]=this.value}),J}});class J1{debug;initialStats={renderCount:0,elementCount:0,renderTime:0,avgRenderTime:0,maxRenderTime:0,componentCount:0,componentUpdateCount:0,partialCount:0,partialUpdateCount:0,memoryUsage:void 0,domOperations:0,domInsertsCount:0,domUpdatesCount:0,domRemovalsCount:0,i18nTrackCount:0,i18nUpdateCount:0,dependencyTrackCount:0,dependencyUpdateCount:0,batchSize:0,batchCount:0,errorCount:0};stats=this.reset();renderStartTime=0;renderTimes=[];measurementCount=0;maxMeasurements=100;loggingInterval=10;autoSaveInterval;constructor(J=!1){if(this.debug=J,this.debug)this.autoSaveInterval=window.setInterval(()=>this.storeMetrics(),5000)}storeMetrics(){try{const J=JSON.parse(localStorage.getItem("lipsPerformanceMetrics")||"[]");J.push({timestamp:Date.now(),metrics:{...this.stats}}),J.length>100&&J.shift(),localStorage.setItem("lipsPerformanceMetrics",JSON.stringify(J))}catch(J){}}startRender(){if(!this.debug)return;this.renderStartTime=performance.now()}endRender(){if(!this.debug||this.renderStartTime===0)return;const J=performance.now()-this.renderStartTime;this.stats.renderTime=J,this.stats.maxRenderTime=Math.max(this.stats.maxRenderTime,J),this.renderTimes.push(J),this.renderTimes.length>this.maxMeasurements&&this.renderTimes.shift(),this.stats.avgRenderTime=this.renderTimes.reduce((Z,W)=>Z+W,0)/this.renderTimes.length,this.renderStartTime=0,this.measurementCount++}inc(J){if(!this.debug)return;if(typeof this.stats[J]==="number")this.stats[J]++}dec(J){if(!this.debug)return;if(typeof this.stats[J]==="number"&&this.stats[J]>0)this.stats[J]--}record(J,Z){if(!this.debug)return;if(typeof this.stats[J]!=="undefined")this.stats[J]=Z}add(J,Z){if(!this.debug)return;if(typeof this.stats[J]==="number")this.stats[J]+=Z}reset(){return this.renderTimes=[],this.measurementCount=0,this.stats=e(this.initialStats)}log(){if(!this.debug)return;if(this.loggingInterval>1&&this.measurementCount%this.loggingInterval!==0)return;const J={"Render Count":this.stats.renderCount,"Element Count":this.stats.elementCount,"Avg Render Time (ms)":this.stats.avgRenderTime.toFixed(2),"Max Render Time (ms)":this.stats.maxRenderTime.toFixed(2)},Z={"Component Count":this.stats.componentCount,"Component Updates":this.stats.componentUpdateCount},W={"Partial Count":this.stats.partialCount,"Partial Updates":this.stats.partialUpdateCount},z={"DOM Operations":this.stats.domOperations,"DOM Inserts":this.stats.domInsertsCount,"DOM Updates":this.stats.domUpdatesCount,"DOM Removals":this.stats.domRemovalsCount},q={"i18n Tracked":this.stats.i18nTrackCount,"i18n Updates":this.stats.i18nUpdateCount},Y={"Dependencies Tracked":this.stats.dependencyTrackCount,"Dependency Updates":this.stats.dependencyUpdateCount},G={"Batch Count":this.stats.batchCount,"Avg Batch Size":this.stats.batchCount>0?(this.stats.batchSize/this.stats.batchCount).toFixed(2):"0"};console.group("Lips Framework Performance Metrics"),console.table(J),console.table(Z),console.table(W),console.table(z),console.table(q),console.table(Y),console.table(G),this.stats.memoryUsage&&console.log(`Memory Usage: ${this.stats.memoryUsage.toFixed(2)} MB`),this.stats.errorCount>0&&console.warn(`Errors encountered: ${this.stats.errorCount}`),console.groupEnd(),window.localStorage&&this.measurementCount%10===0&&this.storeMetrics()}trackMemory(){if(!this.debug||!window.performance?.memory)return;this.stats.memoryUsage=window.performance.memory.usedJSHeapSize/1048576}trackBatch(J){if(!this.debug)return;this.stats.batchCount++,this.stats.batchSize+=J}trackError(J){if(!this.debug)return;this.stats.errorCount++,console.error("Lips Framework Error:",J)}setLoggingInterval(J){if(!this.debug)return;this.loggingInterval=J}getSnapshot(){return e(this.stats)}dispose(){if(!this.debug)return;this.autoSaveInterval&&clearInterval(this.autoSaveInterval)}}var r=E1(a0(),1);var E5=E1(a0(),1);var Z1="comm",Q1="rule",W1="decl";var q5="@import";var Y5="@namespace",B5="@keyframes";var G5="@layer";function X1(J){return J.trim()}function A0(J,Z,W){return J.replace(Z,W)}function w5(J,Z,W){return J.indexOf(Z,W)}function F0(J,Z){return J.charCodeAt(Z)|0}function L0(J,Z,W){return J.slice(Z,W)}function z0(J){return J.length}function H1(J){return J.length}function b0(J,Z){return Z.push(J),J}var T1=Math.abs,y0=String.fromCharCode;function q1(J,Z,W,z,q,Y,G,X){return{value:J,root:Z,parent:W,type:z,props:q,children:Y,line:z1,column:_0,length:G,return:"",siblings:X}}function M5(){return J0}function O5(){if(J0=B0>0?F0(g0,--B0):0,_0--,J0===10)_0=1,z1--;return J0}function G0(){if(J0=B0<K5?F0(g0,B0++):0,_0++,J0===10)_0=1,z1++;return J0}function V0(){return F0(g0,B0)}function v0(){return B0}function Y1(J,Z){return L0(g0,J,Z)}function x0(J){switch(J){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function U5(J){return z1=_0=1,K5=z0(g0=J),B0=0,[]}function D5(J){return g0="",J}function B1(J){return X1(Y1(B0-1,A1(J===91?J+2:J===40?J+1:J)))}function j5(J){while(J0=V0())if(J0<33)G0();else break;return x0(J)>2||x0(J0)>3?"":" "}function I5(J,Z){while(--Z&&G0())if(J0<48||J0>102||J0>57&&J0<65||J0>70&&J0<97)break;return Y1(J,v0()+(Z<6&&V0()==32&&G0()==32))}function A1(J){while(G0())switch(J0){case J:return B0;case 34:case 39:if(J!==34&&J!==39)A1(J0);break;case 40:if(J===41)A1(J);break;case 92:G0();break}return B0}function F5(J,Z){while(G0())if(J+J0===57)break;else if(J+J0===84&&V0()===47)break;return"/*"+Y1(Z,B0-1)+"*"+y0(J===47?J:G0())}function L5(J){while(!x0(V0()))G0();return Y1(J,B0)}var z1=1,_0=1,K5=0,B0=0,J0=0,g0="";function N5(J){return D5(G1("",null,null,null,[""],J=U5(J),0,[0],J))}function G1(J,Z,W,z,q,Y,G,X,O){var K=0,j=0,E=G,k=0,x=0,m=0,o=1,a=1,n=1,s=0,i="",y=q,v=Y,b=z,U=i;while(a)switch(m=s,s=G0()){case 40:if(m!=108&&F0(U,E-1)==58){if(w5(U+=A0(B1(s),"&","&\f"),"&\f",T1(K?X[K-1]:0))!=-1)n=-1;break}case 34:case 39:case 91:U+=B1(s);break;case 9:case 10:case 13:case 32:U+=j5(m);break;case 92:U+=I5(v0()-1,7);continue;case 47:switch(V0()){case 42:case 47:if(b0(G8(F5(G0(),v0()),Z,W,O),O),(x0(m||1)==5||x0(V0()||1)==5)&&z0(U)&&L0(U,-1,void 0)!==" ")U+=" ";break;default:U+="/"}break;case 123*o:X[K++]=z0(U)*n;case 125*o:case 59:case 0:switch(s){case 0:case 125:a=0;case 59+j:if(n==-1)U=A0(U,/\f/g,"");if(x>0&&(z0(U)-E||o===0&&m===47))b0(x>32?C5(U+";",z,W,E-1,O):C5(A0(U," ","")+";",z,W,E-2,O),O);break;case 59:U+=";";default:if(b0(b=V5(U,Z,W,K,j,q,X,i,y=[],v=[],E,Y),Y),s===123)if(j===0)G1(U,Z,b,b,y,Y,E,X,v);else{switch(k){case 99:if(F0(U,3)===110)break;case 108:if(F0(U,2)===97)break;default:j=0;case 100:case 109:case 115:}if(j)G1(J,b,b,z&&b0(V5(J,b,b,0,0,q,X,i,q,y=[],E,v),v),q,v,E,X,z?y:v);else G1(U,b,b,b,[""],v,0,X,v)}}K=j=x=0,o=n=1,i=U="",E=G;break;case 58:E=1+z0(U),x=m;default:if(o<1){if(s==123)--o;else if(s==125&&o++==0&&O5()==125)continue}switch(U+=y0(s),s*o){case 38:n=j>0?1:(U+="\f",-1);break;case 44:X[K++]=(z0(U)-1)*n,n=1;break;case 64:if(V0()===45)U+=B1(G0());k=V0(),j=E=z0(i=U+=L5(v0())),s++;break;case 45:if(m===45&&z0(U)==2)o=0}}return Y}function V5(J,Z,W,z,q,Y,G,X,O,K,j,E){var k=q-1,x=q===0?Y:[""],m=H1(x);for(var o=0,a=0,n=0;o<z;++o)for(var s=0,i=L0(J,k+1,k=T1(a=G[o])),y=J;s<m;++s)if(y=X1(a>0?x[s]+" "+i:A0(i,/&\f/g,x[s])))O[n++]=y;return q1(J,Z,W,q===0?Q1:X,O,K,j,E)}function G8(J,Z,W,z){return q1(J,Z,W,Z1,y0(M5()),L0(J,2,-2),0,z)}function C5(J,Z,W,z,q){return q1(J,Z,W,W1,L0(J,0,z),L0(J,z+1,-1),z,q)}function w1(J,Z){var W="";for(var z=0;z<J.length;z++)W+=Z(J[z],z,J,Z)||"";return W}function S5(J,Z,W,z){switch(J.type){case G5:if(J.children.length)break;case q5:case Y5:case W1:return J.return=J.return||J.value;case Z1:return"";case B5:return J.return=J.value+"{"+w1(J.children,z)+"}";case Q1:if(!z0(J.value=J.props.join(",")))return""}return z0(W=w1(J.children,z))?J.return=J.value+"{"+W+"}":""}function P5(J){var Z=H1(J);return function(W,z,q,Y){var G="";for(var X=0;X<Z;X++)G+=J[X](W,z,q,Y)||"";return G}}class k0{nsp;settings;$head;constructor(J,Z){if(typeof J!=="string")throw new Error("Undefined or invalid styles attachement element(s) namespace");this.nsp=J,this.$head=E5.default("head"),this.settings=Z||{},this.settings&&this.load(this.settings)}compile(J){try{return w1(N5(J),P5([S5]))}catch(Z){throw new Error(`Style compilation failed: ${Z.message}`)}}waitForStyles(J){return new Promise((Z)=>{const W=new MutationObserver(()=>{const z=document.querySelector(J);if(z&&getComputedStyle(z).cssText)W.disconnect(),Z()});W.observe(document.documentElement,{attributes:!0,childList:!0,subtree:!0})})}async inject(J){if(!J)throw new Error("Invalid injection arguments");const Z=`rel="${this.settings.meta?"@":""}${this.nsp}"`;J=this.settings.meta?J:`[rel="${this.nsp}"] { ${J} }`;try{const W=this.compile(J);if(!W)throw new Error(`<component:${this.nsp}> sheet compilation failed`);const z=document.createElement("style");z.setAttribute("rel",`${this.settings.meta?"@":""}${this.nsp}`),z.textContent=W;let q=0;const Y=this.$head.find(`style[${Z}]`);if(Y.length)q=parseInt(Y.attr("dindex"))+1,Y.remove();return z.setAttribute("dindex",String(q)),this.settings.meta?document.head.prepend(z):document.head.appendChild(z),z}catch(W){throw new Error(`Style injection failed: ${W.message}`)}}async load(J){if(this.settings=J,typeof this.settings!=="object")throw new Error("Undefined styles settings");if(this.settings.sheet){const Z=await this.inject(this.settings.sheet);await this.waitForStyles(`style[rel="${this.settings.meta?"@":""}${this.nsp}"]`)}}get(){}async clear(){const J=this.$head.find(`style[rel="${this.settings.meta?"@":""}${this.nsp}"]`);if(!J.length)return;const Z=parseInt(J.attr("dindex"));Z===0?J.remove():J.attr("dindex",String(Z-1))}async custom(){return{}}async style(){return{}}}var w8=function(J){const Z=/on-([a-zA-Z-]+)\s*\(/g;let W=J,z;while((z=Z.exec(J))!==null){const q=z[1],Y=z.index+z[0].length;let G=1,X=Y;while(X<J.length&&G>0){if(J[X]==="(")G++;if(J[X]===")")G--;X++}if(G===0){const O=J.slice(Y,X-1).trim(),K=J.slice(0,z.index),j=`${$0}${q}="${O}"`,E=J.slice(X);W=K+j+E,J=W,Z.lastIndex=K.length+j.length}}return W},K8=function(J){const Z=[];let z=J.replace(/<([a-zA-Z][a-zA-Z0-9_-]*)((?:[^>'"]*|'[^']*'|"[^"]*")*?)(?:\/?>)/g,(q,Y,G)=>{return Z.push(G),`<${Y}##TAG_ATTRS_${Z.length-1}##>`});for(let q=0;q<Z.length;q++){const Y=`##TAG_ATTRS_${q}##`,G=Z[q],X=M8(G);z=z.replace(Y,X)}return z},M8=function(J){let Z="",W=0,z=!1,q="",Y=0,G=0,X=0;while(W<J.length){const O=J[W];if((O==='"'||O==="'")&&(W===0||J[W-1]!=="\\")){if(!z)z=!0,q=O;else if(O===q)z=!1}if(!z){if(O==="(")G++;else if(O===")")G--;else if(O==="{")X++;else if(O==="}")X--}if(!z&&G===0&&X===0&&(O===" "||W===J.length-1)){let K=W;if(W===J.length-1)K=W+1;const j=J.substring(Y,K).trim();if(j){const E=O8(j);Z+=" "+E}Y=W+1}W++}return Z},O8=function(J){const Z=J.indexOf("=");if(Z===-1){if(J===P0||J.startsWith("...")||J.startsWith("["))return J;return`:${J}="${!J.startsWith("!")}"`}let W=J.substring(0,Z).trim(),z=J.substring(Z+1).trim();if(W.startsWith("@"))return W=!H5.includes(W)?W.slice(1):W,`:${W}=${z}`;if(W.startsWith(M0)||W.startsWith($0))return J;if(z.startsWith('"')&&z.endsWith('"')||z.startsWith("'")&&z.endsWith("'")){const q=z.substring(1,z.length-1);if(U8(q))return`:${W}="${q}"`;return J}else return`:${W}="${z}"`};function U8(J){if(/\bstate\.|\binput\.|\bself\.|\bcontext\./.test(J))return!0;if(/[\+\*\/\%\(\)\{\}\[\]]|\?\s*:/.test(J))return!0;if(/\b[a-zA-Z_][a-zA-Z0-9_]*\.[a-zA-Z_]/.test(J))return!0;if(J.includes("{")&&J.includes("}"))return!0;return!1}function b1(J){let Z=(J||"").trim().replace(/>\s*</g,"><").replace(/\s{2,}/g," ").replace(/[\r\n\t]/g,"").replace(/<([a-zA-Z0-9_-]+)([^>]*?)\s*\/>/g,"<$1$2></$1>").replace(/<\{([^}]+)\}\s*(.*?)(\/)>/g,(W,z,q)=>{return q.endsWith("<")?`<lips dtag="${z}" ${q}/lips>`:`<lips dtag="${z}" ${q}></lips>`}).replace(/(<>)([\s\S]*?)(<\/>)/g,'<lips fragment="true">$2</lips>').replace(/<if\(\s*(.*?)\s*\)>/g,'<if @by="$1">').replace(/<else-if\(\s*(.*?)\s*\)>/g,'<else-if @by="$1">').replace(/<switch\(\s*(.*?)\s*\)>/g,'<switch @by="$1">').replace(/<async await\(\s*(.*?)\s*\)>/g,`<async ${M0}await="\$1">`).replace(/<log\(\s*(.*?)\s*\)>/g,'<log @args="$1">').replace(/\[(.*?)\]/g,(W)=>W.replace(/\s+/g,""));return Z=w8(Z),Z=K8(Z),Z}var D8=function(J,Z){if(J.isDisposed)return;Z.add(J),J.dependencies.add(Z)},R5=function(J){for(let Z of J.dependencies)Z.delete(J);J.dependencies.clear()};function R0(J,Z={maxSize:100}){const W=new Set,z=[{value:J,timestamp:Date.now()}];let q=0;const Y=()=>{const K=K1[K1.length-1];return K&&D8(K,W),z[q].value},G=()=>{const K=[...W];if($5)for(let j of K)$5.add(j);else for(let j of K)j.execute()};return[Y,(K,j)=>{if(Object.is(z[q].value,K))return;if(q<z.length-1)z.splice(q+1);if(z.push({value:K,timestamp:Date.now(),metadata:j}),z.length>Z.maxSize)z.shift(),q=Math.max(0,q-1);else q++;G()},{undo(){if(q>0)q--,G()},redo(){if(q<z.length-1)q++,G()},jumpTo(K){if(K>=0&&K<z.length&&K!==q)q=K,G()},getHistory(){return[...z]},getCurrentIndex(){return q},canUndo(){return q>0},canRedo(){return q<z.length-1},clear(){const K=z[0];z.length=0,z.push(K),q=0,G()}}]}function m0(J){let Z=!1;const W=()=>{if(Z)throw new Error("Circular dependency detected");if(z.isDisposed)return;Z=!0,R5(z),K1.push(z);try{J()}finally{Z=!1,K1.pop()}},z={execute:W,dependencies:new Set,isDisposed:!1};return W(),{dispose:()=>{z.isDisposed=!0,R5(z)}}}var K1=[],$5=null;class u0 extends t0{declaration;$=null;input;state;static;context;__name__;__path__;__lang__;__template__;__previous;__macros=new Map;__i18nDeps=new Map;FGUD=new Map;PCC=new Map;VER=[];prepath="0";debug=!1;isRendered=!1;__setInput;__setState;__getState;UQS;ICE;lips;metrics;stylesheet;__path="";__pathCounter=0;__renderDepth=0;constructor(J,Z,{input:W,state:z,context:q,_static:Y,handler:G,stylesheet:X,macros:O,declaration:K},j){super();if(this.lips=j.lips,j?.debug)this.debug=j.debug||this.lips.debug;if(j?.prepath)this.prepath=j.prepath;if(this.__name__=J,this.__lang__=this.lips.i18n.lang,this.__path__=`${this.prepath}/${this.__name__}`,this.__template__=b1(Z),this.declaration=K||{name:J},this.input=W||{},this.static=Y||{},this.context={},this.state=this.lips.IUC.proxyState(this.__path__,z||{}),O&&this.setMacros(O),G&&this.setHandler(G),X&&this.setStylesheet(X),this.metrics=new J1(this.debug),this.metrics.inc("componentCount"),this.UQS=new r0(this),typeof this.onCreate=="function"&&this.onCreate.bind(this)(),this.emit("component:create"),this.input&&Object.keys(this.input).length&&typeof this.onInput=="function")this.onInput.bind(this)(this.input),this.emit("component:input");this.__previous={input:e(this.input),state:e(this.state),context:e(this.context)};const[E,k]=R0(this.input),[x,m]=R0(this.state),[o,a]=R0(this.context);this.__setInput=k,this.__setState=m,this.__getState=x,this.lips.IUC.register(this.__path__,()=>{H0(this.__previous?.state,this.state)&&this.__setState({...this.__getState(),...this.state})}),Array.isArray(q)&&q.length&&this.lips.useContext(q,(n)=>{if(!H0(this.context,n))return;a(n),this.context=n,typeof this.onContext=="function"&&this.onContext.bind(this)(),this.emit("component:context")}),this.lips.useTranslator("*",(n)=>{if(n===this.__lang__)return;this.__updateI18nDepNodes__(),this.__lang__=n}),this.ICE=m0(()=>{const n=E(),s=x(),i=this.context=o();if(!this.isRendered){this.metrics.reset();const{$log:y}=this.render("",void 0,void 0,this.FGUD);this.$=y,!K?.syntax&&this.$?.each((v,b)=>{typeof b.setAttribute=="function"&&b.setAttribute("rel",this.__name__)}),this.isRendered=!0,typeof this.onMount=="function"&&this.onMount.bind(this)(),this.emit("component:mount"),this.lips.watcher.watch(this)}else this.__updateDepNodes__({state:s,input:n,context:i},this.__previous),typeof this.onUpdate=="function"&&this.onUpdate.bind(this)(),this.emit("component:update"),this.__previous={input:e(n),state:e(s),context:e(i)},this.input=n;this.metrics.log(),typeof this.onRender=="function"&&this.onRender.bind(this)(),this.emit("component:render")})}setContext(J,Z){this.lips.setContext(J,Z)}setInput(J){if(!H0(this.input,J))return;this.__setInput(J),typeof this.onInput=="function"&&this.onInput.bind(this)(J)}subInput(J){if(typeof J!=="object")throw new Error("Invalid sub input data argument");return this.setInput(z5(this.input,J)),this}setMacros(J){const Z=b1(J),W=r.default(Z);if(!W.length)return;const z=this;W.each(function(){const q=r.default(this),{argv:Y,attrs:G}=z.__getAttributes__(q);if(!Object.keys(G))throw new Error("Invalid macro component definition");if(!G.literals.name)throw new Error("Undefined macro `name` attribute.");if(z.__macros.get(G.literals.name))console.warn(`Duplicate macro <${G.literals.name}> will be override`);if(!q.contents()?.length)throw new Error("Invalid macro component definition. Template content expected.");z.__macros.set(G.literals.name,{argv:Y,$node:q})})}setHandler(J){Object.entries(J).map(([Z,W])=>this[Z]=W?.bind(this))}setStylesheet(J){const Z={sheet:J,meta:this.__name__==="__ROOT__"};this.stylesheet=new k0(this.__name__,Z)}get node(){if(!this.$)throw new Error("node() is expected to be call after component get rendered");return this.$}render(J,Z,W={},z,q){const Y=z||new Map,G=[];if(Z&&!Z.length)return console.warn("Undefined node element to render"),{$log:Z,dependencies:Y};this.metrics.startRender();const X=this;let O=r.default();function K(U){const w=j(U);return X.__pathCounter++,X.__path?`${X.__path}/${w}`:`${J?J+"/":"#"}${w}`}function j(U){return(U==="component"?"c":"")+X.__pathCounter}function E(U){return U!==null&&typeof U==="object"&&typeof U.mesh==="function"&&typeof U.update==="function"}function k(U){return U!==null&&typeof U==="object"&&typeof U.default&&typeof U.default==="string"}function x(U){if(!U.attr(":dtag")||U.prop("tagName")!=="LIPS")throw new Error("Invalid dynamic tag name");const w=U.attr(":dtag"),M=X.__evaluate__(w,W);if(E(M)||M===null)return n(U,w,M);else if(k(M))return s(U,{template:M});else return s(U,{name:M})}function m(U){const w=U.attr(":args"),M=K("log");if(!w)return;if(X.__evaluate__(`console.log(${w})`,W),X.__isReactive__(w,W))X.__extractExpressionDeps__(w,W).forEach((F)=>X.__trackDep__(Y,F,{nodetype:"log",target:"argument",$fragment:null,path:M,update:(S)=>X.__evaluate__(`console.log(${w})`,S),memo:W,batch:!0}))}function o(U){const w=K("var"),{attrs:M}=X.__getAttributes__(U);if(!M)return;Object.entries(M.literals).forEach(([C,F])=>{if(W[C]&&W[C].type==="const")throw new Error(`Cannot override <const ${C}=[value]/> variable`);W[C]={value:F,type:"let"}}),Object.entries(M.expressions).forEach(([C,F])=>{if(t.test(C)){const S=(R,g)=>{const f=X.__evaluate__(C.replace(t,""),g||W);if(typeof f!=="object")throw new Error(`Invalid spread operator ${C}`);for(let V in f){if(W[V]&&W[V].type==="const")throw new Error(`Cannot override <const ${V}=[value]/> variable`);if(W[V]={value:f[V],type:"let"},g)g[V]=W[V],X.__updateVarDepNodes__(V,w,g)}if(R)return{memo:g}};X.__extractExpressionDeps__(C,W).forEach((R)=>X.__trackDep__(Y,R,{nodetype:"let",target:"spread-attr",$fragment:null,path:`${w}.${C}`,update:(g)=>S(!0,g),memo:W,batch:!0})),S()}else if(F){if(X.__isReactive__(F,W)){const S=X.__extractExpressionDeps__(F,W),l=(R,g)=>{if(W[C]&&W[C].type==="const")throw new Error(`Cannot override <const ${C}=[value]/> variable`);return R[C]=W[C]={value:X.__evaluate__(F,R),type:"let"},X.__updateVarDepNodes__(C,w,R),{memo:R}};S.forEach((R)=>X.__trackDep__(Y,R,{nodetype:"let",target:"attr",$fragment:null,path:`${w}.${C}`,update:l,memo:W,batch:!0}))}if(W[C]&&W[C].type==="const")throw new Error(`Cannot override <const ${C}=[value]/> variable`);W[C]={value:X.__evaluate__(F,W),type:"let"}}}),X.metrics.inc("elementCount")}function a(U){const{attrs:w}=X.__getAttributes__(U);if(!w)return;Object.entries(w.literals).forEach(([M,C])=>{if(W[M]&&W[M].type==="const")throw new Error(`<const ${M}=[value]/> variable already defined`);if(!C)return;W[M]={value:C,type:"const"}}),Object.entries(w.expressions).forEach(([M,C])=>{if(t.test(M)){const F=X.__evaluate__(M.replace(t,""),W);if(typeof F!=="object")throw new Error(`Invalid spread operator ${M}`);for(let S in F){if(W[S]&&W[S].type==="const")throw new Error(`<const ${S}=[value]/> by spread operator ${M}. [${S}] variable already defined`);W[S]={value:F[S],type:"const"}}}else{if(W[M]&&W[M].type==="const")throw new Error(`<const ${M}=[value]/> variable already defined`);if(!C)return;W[M]={value:X.__evaluate__(C,W),type:"const"}}}),X.metrics.inc("elementCount")}function n(U,w,M){const{attrs:C}=X.__getAttributes__(U),F=K("element"),S=X.__getBoundaries__(F);let l=r.default(S.start),R={},g=M;if(g){C.literals&&Object.entries(C.literals).forEach(([V,P])=>R[V]={type:"arg",value:P}),C.expressions&&Object.entries(C.expressions).forEach(([V,P])=>{if(!g)return;if(t.test(V)){const A=X.__evaluate__(V.replace(t,""),W);if(typeof A!=="object")throw new Error(`Invalid spread operator ${V}`);for(let N in A){if(N!=="#"&&!g.argv.includes(N))continue;R[N]={type:"arg",value:A[N]}}}else{if(V!=="#"&&!g.argv.includes(V))return;R[V]={type:"arg",value:P?X.__evaluate__(P,W):!0}}});const f=g.mesh(R);if(f&&f.length)l=l.add(f);C.expressions&&Object.entries(C.expressions).forEach(([V,P])=>{if(!g)return;if(t.test(V)&&X.__isReactive__(V,W)){const A=X.__extractExpressionDeps__(V,W),N=(I,T)=>{if(!g)return;const _={},c=X.__evaluate__(V.replace(t,""),I);if(typeof c!=="object")throw new Error(`Invalid spread operator ${V}`);const p=[];for(let u in c){if(u!=="#"&&!g.argv.includes(u))continue;R[u]=_[u]={type:"arg",value:c[u]},(!I[u]||!S0(c[u],I[u].value))&&p.push(u)}p.length&&g.update(p,_,S)};A.forEach((I)=>X.__trackDep__(Y,I,{nodetype:"dynamic",target:"spread-attr",$fragment:null,boundaries:S,path:`${F}.${V}`,update:N,memo:W,batch:!0}))}else if((V==="#"||g.argv.includes(V))&&X.__isReactive__(P,W)){const A=X.__extractExpressionDeps__(P,W),N=(I,T)=>{if(!g)return;const _=R[V]={type:"arg",value:P?X.__evaluate__(P,I):!0};g.update([V],{[V]:_},S)};A.forEach((I)=>X.__trackDep__(Y,I,{nodetype:"dynamic",target:"attr",$fragment:null,boundaries:S,path:`${F}.${V}`,update:N,memo:W,batch:!0}))}})}if(X.__isReactive__(w,W)){const f=(P,A)=>{const N=X.__evaluate__(w,P);let I;if(k(N))I=s(U,{template:N});else if(E(N))R="#"in R?{...P,...R["#"].value}:{...P,...R},g=N,I=g?g.mesh(R):null;if(!document.contains(S.start)||!document.contains(S.end))return;const T=[];let _=S.start.nextSibling;while(_&&_!==S.end)T.push(_),_=_.nextSibling;r.default(T).remove(),I&&r.default(S.start).after(I)};X.__extractExpressionDeps__(w,W).forEach((P)=>X.__trackDep__(Y,P,{nodetype:"dynamic",target:"dtag",$fragment:null,boundaries:S,path:F,update:f,batch:!0,memo:{...W,...R}}))}return l=l.add(S.end),l}function s(U,w){let M,C;if(w?.template)M=w.template,C=j("component");else{if(C=w?.name||U.prop("tagName")?.toLowerCase(),!C)throw new Error("Invalid component");if(C===X.__name__)throw new Error("Render component within itself is forbidden");M=X.lips.import(C)}if(!M||!C)throw new Error(`<${C}> template not found`);const F=K("component"),S=X.__getBoundaries__(F),{argv:l,attrs:R,events:g}=X.__getAttributes__(U),f={};let V={},P=r.default(S.start),A=X.PCC.get(F);R.literals&&Object.entries(R.literals).forEach(([I,T])=>{if(I=="key")return;V[I]=T}),R.functions&&Object.entries(R.functions).forEach(([I,T])=>{V[I]=X.__evaluateFunction__(T,[],W),M.declaration?.syntax?f[I0+M0+I]=T:f[M0+I]=T}),R.expressions&&Object.entries(R.expressions).forEach(([I,T])=>{if(I=="key")return;if(t.test(I)){const _=X.__evaluate__(I.replace(t,""),W);if(typeof _!=="object")throw new Error(`Invalid spread operator ${I}`);for(let c in _)V[c]=_[c]}else V[I]=T?X.__evaluate__(T,W):!0;M.declaration?.syntax?f[I0+I]=T:f[I]=T});const N=U.contents();if(N.length){if(V={...V,...X.__meshwire__({$node:U,fragmentPath:F,fragmentBoundaries:S,meshPath:null,argv:l,scope:W,xmlns:q,useAttributes:!0,declaration:M.declaration},f)},M.declaration){if(M.declaration.tags)Object.entries(M.declaration?.tags).forEach(([I,{type:T,many:_}])=>{switch(T){case"nexted":{let c=U.next(I);if(!c.length)return;if(_){V[I]=[];let p=0,u=!1;while(!u){if(V[I].push(X.__meshwire__({$node:c,meshPath:`${I}[${p}]`,fragmentPath:F,fragmentBoundaries:S,argv:l,scope:W,xmlns:q,useAttributes:!0,declaration:M.declaration},f)),!c.next(I).length){u=!0;break}c=c.next(I),p++}}else V[I]=X.__meshwire__({$node:c,meshPath:I,fragmentPath:F,fragmentBoundaries:S,argv:l,scope:W,xmlns:q,useAttributes:!0,declaration:M.declaration},f)}break;case"child":{const c=U.children(I);if(_)V[I]=[],c.each(function(p){const u=r.default(this),{argv:Z0}=X.__getAttributes__(u);V[I].push(X.__meshwire__({$node:u,meshPath:`${I}[${p}]`,fragmentPath:F,fragmentBoundaries:S,argv:Z0,scope:W,xmlns:q,useAttributes:!0,declaration:M.declaration},f))});else if(U.children(I).first().length){const p=U.children(I).first(),{argv:u}=X.__getAttributes__(p);V[I]=X.__meshwire__({$node:p,meshPath:I,fragmentPath:F,fragmentBoundaries:S,argv:u,scope:W,xmlns:q,useAttributes:!0,declaration:M.declaration},f)}}break}});else if(M.declaration.contents)V.__contents__=N}}if(A)A.setInput(e(V)),P=P.add(A.node);else{const{declaration:I,state:T,_static:_,handler:c,context:p,default:u,stylesheet:Z0}=M;A=new u0(C,u||"",{state:e(T),input:e(V),context:p,_static:e(_),handler:c,stylesheet:Z0,declaration:I},{debug:X.debug,lips:X.lips,prepath:F}),P=P.add(A.node),X.PCC.set(F,A)}return P=P.add(S.end),Object.entries(g).forEach(([I,T])=>!!A&&X.__attachEvent__(A,I,T,W)),f&&Object.entries(f).forEach(([I,T])=>{let _=!1,c=!1;if(I.startsWith(I0))_=!0,I=I.replace(I0,"");if(I.startsWith(M0))c=!0,I=I.replace(M0,"");if(t.test(I)){const p=(u)=>{const Z0={},D0=X.__evaluate__(I.replace(t,""),u);if(typeof D0!=="object")throw new Error(`Invalid spread operator ${I}`);for(let Q0 in D0)Z0[Q0]=D0[Q0];A?.subInput(Z0)};if(X.__isReactive__(I,W))X.__extractExpressionDeps__(I,W).forEach((Z0)=>X.__trackDep__(Y,Z0,{nodetype:"component",target:"spread-attr",$fragment:null,boundaries:S,path:`${F}.${I}`,update:p,syntax:_,memo:W,batch:!0}))}else{const p=(u)=>{const Z0=c?X.__evaluateFunction__(T,[],u):T?X.__evaluate__(T,u):!0;A?.subInput({[I]:Z0})};if(X.__isReactive__(T,W))X.__extractExpressionDeps__(T,W).forEach((Z0)=>X.__trackDep__(Y,Z0,{nodetype:"component",target:"attr",$fragment:null,boundaries:S,path:`${F}.${I}`,update:p,syntax:_,memo:W,batch:!0}))}}),X.metrics.inc("componentCount"),P}function i(U){const w=U.prop("tagName")?.toLowerCase();if(!w)throw new Error("Invalid macro rendering call");const M=X.__macros.get(w);if(!M)throw new Error("Macro component not found");const C=K("macro"),F=X.__getBoundaries__(C),{attrs:S}=X.__getAttributes__(U),l={};let R={},g={},f=r.default(F.start);if(S.literals&&Object.entries(S.literals).forEach(([N,I])=>R[N]={value:I,type:"arg"}),S.expressions&&Object.entries(S.expressions).forEach(([N,I])=>{if(t.test(N)){const T=X.__evaluate__(N.replace(t,""),W);if(typeof T!=="object")throw new Error(`Invalid spread operator ${N}`);for(let _ in T)if(g[_]=T[_],M.argv.includes(_))R[_]={value:T[_],type:"arg"};l[N]=I}else{const T=I?X.__evaluate__(I,W):!0;if(g[N]=T,M.argv.includes(N))R[N]={value:T,type:"arg"},l[N]=I}M.argv.forEach((T)=>{if(R[T]!==void 0)return;R[T]={value:!1,type:"arg"}})}),M.argv.includes("__"))R.__={value:g,type:"arg"};const V={$node:M.$node,meshPath:null,fragmentPath:C,fragmentBoundaries:F,argv:M.argv,scope:W,xmlns:q,useAttributes:!0},P=X.__meshwire__(V,l),A=P.renderer.mesh(R);return f=f.add(A),l&&Object.entries(l).forEach(([N,I])=>{let T=!1;if(new RegExp(`^${I0}`).test(N))T=!0,N=N.replace(I0,"");if(t.test(N)){if(!X.__isReactive__(N,W))return;const _=X.__extractExpressionDeps__(N,W),c=(p)=>{const u={},Z0=X.__evaluate__(N.replace(t,""),p);if(typeof Z0!=="object")throw new Error(`Invalid spread operator ${N}`);const D0=[];for(let Q0 in Z0)u[Q0]={value:Z0[Q0],type:"arg"},(!p[Q0]||!S0(Z0[Q0],p[Q0].value))&&D0.push(Q0);return D0.length&&P.renderer.update(D0,u),{memo:{...p,...u}}};_.forEach((p)=>X.__trackDep__(Y,p,{nodetype:"macro",target:"spread-attr",$fragment:null,boundaries:F,path:`${C}.${N}`,update:c,syntax:T,memo:{...W,...R},batch:!0}))}else if(X.__isReactive__(I,W)){const _=X.__extractExpressionDeps__(I,W),c=(p)=>{const u=p[N]={value:I?X.__evaluate__(I,p):!0,type:"arg"};return P.renderer.update([N],{[N]:u}),{memo:p}};_.forEach((p)=>X.__trackDep__(Y,p,{nodetype:"macro",target:"attr",$fragment:null,boundaries:F,path:`${C}.${N}`,update:c,syntax:T,memo:{...W,...R},batch:!0}))}}),f=f.add(F.end),X.metrics.inc("elementCount"),f}function y(U){if(!U.length||!U.prop("tagName"))return U;const w=U.is("svg")||q,M=w?r.default(document.createElementNS("http://www.w3.org/2000/svg",U.prop("tagName").toLowerCase())):r.default(`<${U.prop("tagName").toLowerCase()}/>`),C=U.contents(),F=K("element");C.length&&M.append(X.__withPath__(F,()=>X.render(F+".n",C,W,Y,w).$log));const{attrs:S,events:l}=X.__getAttributes__(U);S.literals&&Object.entries(S.literals).forEach(([g,f])=>{if(g===P0)return;const V=U.is(`[${P0}]`)&&["title","placeholder"].includes(g);M.attr(g,V?X.lips.i18n.translate(f).text:f);const P=(A)=>{M.attr(g,V?X.lips.i18n.translate(f).text:f),V&&X.__trackTranslationDep__({nodetype:"element",target:"attr",path:F,$fragment:M,update:P,memo:A})};V&&X.__trackTranslationDep__({nodetype:"element",target:"attr",path:F,$fragment:M,update:P,memo:W})});const R=(g,f=!1)=>{g&&Object.entries(g).forEach(([V,P])=>{switch(V){case"@html":{const A=(N)=>{M.html(X.__evaluate__(P,N))};if(A(W),f&&X.__isReactive__(P,W))X.__extractExpressionDeps__(P,W).forEach((I)=>X.__trackDep__(Y,I,{nodetype:"element",target:"meta-attr",$fragment:M,path:`${F}.${V}`,update:A,memo:W,batch:!0}))}break;case"@text":{const A=U.is(`[${P0}]`),N=(I)=>{M.text(X.__evaluate__(P,I,A)),A&&X.__trackTranslationDep__({nodetype:"element",target:"meta-attr",path:F,$fragment:M,update:N,memo:I})};if(N(W),f&&X.__isReactive__(P,W))X.__extractExpressionDeps__(P,W).forEach((T)=>X.__trackDep__(Y,T,{nodetype:"element",target:"meta-attr",$fragment:M,path:`${F}.${V}`,update:N,memo:W,batch:!0}));A&&X.__trackTranslationDep__({nodetype:"element",target:"meta-attr",path:F,$fragment:M,update:N,memo:W})}break;case"@format":{const[A,N]=P.split(",").map((T)=>T.trim());if(!A)throw new Error("Invalid @format reference");if(!N)throw new Error("Invalid @format parameters");const I=(T)=>{const _=X.__evaluate__(`!${N.trim()}`,T);if(typeof _!=="object")throw new Error("Invalid @format parameters");const c=X.lips.i18n.format(A,_);c!==void 0&&M.text(c),X.__trackTranslationDep__({nodetype:"element",target:"meta-attr",path:F,$fragment:M,update:I,memo:T})};I(W),X.__extractExpressionDeps__(N,W).forEach((T)=>X.__trackDep__(Y,T,{nodetype:"element",target:"meta-attr",$fragment:M,path:`${F}.${V}`,update:I,memo:W,batch:!0}))}break;case"style":{const A=(N)=>{const I=X.__evaluate__(P,N);if(typeof I==="object"){let T="";Object.entries(I).forEach(([_,c])=>T+=`${_}:${c};`),T.length&&M.attr("style",T)}else M.attr("style",I)};if(A(W),f&&X.__isReactive__(P,W))X.__extractExpressionDeps__(P,W).forEach((I)=>X.__trackDep__(Y,I,{nodetype:"element",target:"attr",$fragment:M,path:`${F}.${V}`,update:A,memo:W,batch:!0}))}break;default:{const A=U.is(`[${P0}]`)&&["title","placeholder"].includes(V),N=(I)=>{const T=P?X.__evaluate__(P,I,A):P!==void 0?P:!0;if(T===void 0||T===!1)M.removeAttr(V);else M.attr(V,T),A&&X.__trackTranslationDep__({nodetype:"element",target:"attr",path:F,$fragment:M,update:N,memo:I})};if(N(W),f&&X.__isReactive__(P,W))X.__extractExpressionDeps__(P,W).forEach((T)=>X.__trackDep__(Y,T,{nodetype:"element",target:"attr",$fragment:M,path:`${F}.${V}`,update:N,memo:W,batch:!0}));A&&X.__trackTranslationDep__({nodetype:"element",target:"attr",path:F,$fragment:M,update:N,memo:W})}}})};return S.expressions&&Object.keys(S.expressions).forEach((g)=>{if(!t.test(g))return;const f=(V)=>{const P={},A=X.__evaluate__(g.replace(t,""),V);if(typeof A!=="object")throw new Error(`Invalid spread operator ${g}`);for(let N in A)P[N]=A[N];R(P)};if(delete S.expressions[g],f(W),g&&X.__isReactive__(g,W))X.__extractExpressionDeps__(g,W).forEach((P)=>X.__trackDep__(Y,P,{nodetype:"element",target:"spread-attr",$fragment:M,path:`${F}.${g}`,update:f,memo:W,batch:!0}))}),R(S.expressions,!0),l&&Object.entries(l).forEach(([g,f])=>{G.push({_event:g,$fragment:M,instruction:f,scope:W})}),X.metrics.inc("elementCount"),X.metrics.inc("domInsertsCount"),M}function v(U){const w=U.text(),M=K("element"),C=U.parent().is(`[${P0}]`),F=r.default(document.createTextNode(X.__interpolate__(w,W,C))),S=(l)=>{const R=X.__interpolate__(w,l,C);if(!F[0])return;F[0].textContent=R,C&&X.__trackTranslationDep__({nodetype:"text",target:"value",path:M,$fragment:F,update:S,memo:l||W})};if(w&&X.__isReactive__(w,W)){const l=X.__extractTextDeps__(w,W);l.forEach((R)=>X.__trackDep__(Y,R,{nodetype:"text",target:"value",path:M,$fragment:F,update:S,memo:W,batch:l.length>1}))}return C&&X.__trackTranslationDep__({nodetype:"text",target:"value",path:M,$fragment:F,update:S,memo:W}),X.metrics.inc("elementCount"),X.metrics.inc("domInsertsCount"),F}function b(U){if(U.get(0)?.nodeType===Node.COMMENT_NODE)return U;if(U.get(0)?.nodeType===Node.TEXT_NODE)return v(U);if(U.is("let"))return o(U);else if(U.is("const"))return a(U);else if(U.is("lips")&&U.attr(":dtag"))return x(U);else if(U.is("log"))return m(U);else if(X.__macros.has(U.prop("tagName")?.toLowerCase()))return i(U);else if(U.is("if, for, switch, async")||X.lips.has(U.prop("tagName")?.toLowerCase()))return s(U);else if(U.is("else-if, else"))return;return y(U)}try{this.__renderDepth++,Z=Z||r.default(this.__template__),Z.each(function(){const U=b(r.default(this));if(U)O=O.add(U)}),G.forEach(({$fragment:U,_event:w,instruction:M,scope:C})=>{this.__attachEvent__(U,w,M,C)}),X.metrics.inc("renderCount")}catch(U){console.error("Rendering Failed --",U),X.metrics.trackError(U)}finally{if(this.__renderDepth--,this.metrics.endRender(),this.metrics.trackMemory(),this.__renderDepth===0)this.__path="",this.__pathCounter=0}return{$log:O,dependencies:Y,events:G}}destroy(){this.ICE.dispose(),this.stylesheet?.clear(),this.metrics.dispose(),this.lips.IUC.unregister(this.__path__),this.lips.watcher.unwatch(this),this.VER.forEach(({element:J,_event:Z})=>this.__detachEvent__(J,Z)),this.VER=[];for(let J in this.PCC){const Z=this.PCC.get(J);Z?.destroy(),Z?.delete(J)}if(this.$?.remove(),this.PCC?.clear(),this.FGUD?.clear(),this.__macros.clear(),this.__i18nDeps.clear(),this.__previous=null,this.state=null,this.input=null,this.context=null,this.$)this.$.each((J,Z)=>{r.default(Z).off()}),this.$=null;typeof this.onDestroy==="function"&&this.onDestroy.bind(this)(),this.emit("component:destroy")}__meshwire__(J,Z){const W=this,{$node:z,meshPath:q,fragmentPath:Y,fragmentBoundaries:G,argv:X,scope:O,xmlns:K,declaration:j,useAttributes:E}=J;let k,x=[];const m=[],o=(i,y,v)=>{const b=`${Y}.${q||"r"}${v!==void 0?`[${v}]`:""}`,{$log:U,dependencies:w,events:M}=W.__withPath__(b,()=>W.render(b,i,{...O,...y},void 0,K));if(m.push(b),w?.forEach((C,F)=>{if(!W.FGUD?.has(F))W.FGUD.set(F,new Map);C.forEach((S,l)=>{S.partial?.length?S.partial.push(b):S.partial=[b],W.FGUD.get(F)?.set(l,S)})}),W.metrics.inc("partialCount"),v!==void 0){const C=W.__getBoundaries__(b);x[v]={argvalues:y,boundaries:C};let F=r.default(C.start);return F=F.add(U),F=F.add(C.end),F}return U},a=(i,y,v)=>{W.metrics.startRender();const b=v!==void 0?m.filter((U)=>U.endsWith(`r[${v}]`)):m;if(i.forEach((U)=>{const w=W.FGUD.get(U);if(!w)return;w.forEach((M)=>{const C=b.find((F)=>{return M.partial?.find((S)=>F==S||W.__hasSamePathParent__(S,F))});if(!M.partial||!C)return;if(G?.start&&!document.contains(G.start)){console.warn(`${q} -- partial boundaries missing in the DOM`),w.delete(M.path);return}if(M.memo?.[U]&&y?.[U]&&S0(M.memo[U],y[U]))return;if(M.memo={...O,...M.memo,...y},M.batch)W.UQS.queue({dep:U,dependent:M});else{const F=M.update(M.memo,"mesh-partial-updator");if(F)typeof F.memo==="object"&&w.set(M.path,{...M,memo:F.memo}),typeof F.cleanup==="function"&&F.cleanup()}W.metrics.inc("dependencyUpdateCount")}),!w.size&&W.FGUD.delete(U)}),v!==void 0&&x[v])x[v].argvalues=y;W.metrics.inc("partialUpdateCount"),W.metrics.endRender()},n=(i)=>{if(!x[i])return;const y=x[i].boundaries;if(x.splice(i,1),!document.contains(y.start)||!document.contains(y.end)){console.warn(`Partial mesh item<${i}> boundaries missing`);return}const v=[];let b=y.start.nextSibling;while(b&&b!==y.end)v.push(b),b=b.nextSibling;r.default(v).remove(),y.start.remove(),y.end.remove()},s={renderer:{path:q,argv:X,mesh(i,y=!1){if(k=z.contents(),!k?.length)return null;if(j?.iterator){const v=i?.["#"].value;if(!Array.isArray(i?.["#"].value))throw new Error("Invalid iterator argvalues");if(!v.length)return null;let b=r.default();return v.forEach((U,w)=>{if(!k?.length)return null;b=b.add(o(k,U,w))}),b}else return o(k,i)},update(i,y,v){if(!m.length)return;if(v=v||G,j?.iterator){const b=y?.["#"].value;if(!Array.isArray(b))return;if(Array.isArray(x)){if(x.length===b.length){for(let w=0;w<b.length;w++)!S0(x[w].argvalues,b[w])&&a(Object.keys(b[w]),b[w],w);return}const U=Math.min(x.length,b.length);for(let w=0;w<U;w++)a(Object.keys(b[w]),b[w],w);if(b.length>x.length){if(!k?.length)return;for(let w=x.length;w<b.length;w++){const M=o(k,b[w],w);r.default(v.end).before(M)}}else if(b.length<x.length)for(let w=x.length-1;w>=b.length;w--)n(w)}}else a(i,y)}}};if(E&&q){const{attrs:i}=W.__getAttributes__(z);i.literals&&Object.entries(i.literals).forEach(([y,v])=>s[y]=v),i.expressions&&Object.entries(i.expressions).forEach(([y,v])=>{if(t.test(y)){const b=W.__evaluate__(y.replace(t,""),O);if(typeof b!=="object")throw new Error(`Invalid spread operator ${y}`);for(let U in b)s[U]=b[U];Z[`${j?.syntax?I0:""}${q}.${y}`]=v}else s[y]=v?W.__evaluate__(v,O):!0,Z[`${j?.syntax?I0:""}${q}.${y}`]=v})}return s}__getBoundaries__(J){return this.metrics.inc("domOperations"),this.metrics.inc("domInsertsCount"),{start:document.createComment(`s:${this.prepath}.${J}`),end:document.createComment(`e:${this.prepath}.${J}`)}}__getAttributes__(J){const Z=J.attrs(),W={},z={literals:{},functions:{},expressions:{}};let q=[];return Z&&Object.entries(Z).forEach(([Y,G])=>{if(Y==":dtag")return;if(Y.startsWith(":")||Y.startsWith(M0)||Y.startsWith($0)||t.test(Y)||e0.test(Y))if(e0.test(Y)){const[X,O]=Y.match(e0)||[];q=O.split(",")}else if(Y.startsWith($0))W[Y.replace($0,"")]=G;else if(Y.startsWith(M0))z.functions[Y.replace(M0,"")]=G;else{if(Y.startsWith(":"))Y=Y.slice(1,Y.length);z.expressions[Y]=G||""}else z.literals[Y]=G}),{argv:q,events:W,attrs:z}}__withPath__(J,Z){const W=this.__path;this.__path=J;const z=Z();return this.__path=W,z}__getPathParent__(J){const Z=J.split("/");if(Z.length>1)Z.pop();return Z.join("/")}__hasSamePathParent__(J,Z){return J.startsWith(Z)}__evaluate__(J,Z,W){try{J=J.trim();const z=(q)=>{const Y=this.state.toJSON();if(Z){const G={};for(let K in Z)G[K]=Z[K].value;const X=`with( scope ){ return ${q}; }`;return new Function("self","input","state","static","context","scope",X)(this,this.input,Y,this.static,this.context,G||{})}else{const G=`return ${q}`;return new Function("self","input","state","static","context",G)(this,this.input,Y,this.static,this.context)}};if(/{\s*([^{}]+)\s*}/.test(J)){if(J.startsWith("!{")&&J.endsWith("}"))return z(J.slice(1));return J.replace(R1,(q,Y)=>z(Y))}return z(J)}catch(z){return J}}__evaluateFunction__(J,Z,W){if(/(\s*\w+|\s*\([^)]*\)|\s*)\s*=>\s*(\s*\{[^}]*\}|\s*[^\n;"]+)/g.test(J))return this.__evaluate__(J,W)(...Z);else{let[z,...q]=J.split(/\s*,\s*/),Y;if(z=this.__evaluate__(z,W),typeof z==="function")Y=z;else{if(typeof this[z]!=="function")throw new Error(`Undefined <${z}> handler method`);Y=this[z].bind(this)}if(typeof Y!=="function")throw new Error(`Expected <${z}> to be a function or handler method`);let G=q.map((X)=>this.__evaluate__(X,W));if(Z.length)G=[...G,...Z];return Y(...G)}}__interpolate__(J,Z,W){if(J=J.replace(R1,(z,q)=>this.__evaluate__(q,Z)),W)J=this.lips.i18n.translate(J).text;return J}__attachEvent__(J,Z,W,z){J.on(Z,(...q)=>this.__evaluateFunction__(W,q,z)),this.VER.push({element:J,_event:Z}),this.metrics.inc("domUpdatesCount"),this.metrics.inc("domRemovalsCount")}__detachEvent__(J,Z){J.off(Z),this.metrics.inc("domOperations"),this.metrics.inc("domRemovalsCount")}__extractTextDeps__(J,Z){const W=new Set;return(J.match(/{\s*([^{}]+)\s*}/g)||[]).forEach((q)=>{const Y=q.replace(/[{}]/g,"").trim();this.__extractExpressionDeps__(Y,Z).forEach((X)=>W.add(X))}),Array.from(W)}__extractExpressionDeps__(J,Z){const W=/\b(state|input|context)(?:\.[a-zA-Z_]\w*)+(?=\[|\.|$|\s|;|,|\))/g,z=/\b(self)(?:\.[a-zA-Z_]\w*)+(?=\()/g;let q=[...Array.from(J.matchAll(W)),...Array.from(J.matchAll(z))];if(Z&&Object.keys(Z).length){const Y=new RegExp(`\\b(${Object.keys(Z).join("|")})`,"g");q=[...q,...Array.from(J.matchAll(Y))]}return[...new Set(q.map((Y)=>Y[0]))]}__isReactive__(J,Z){if(/(state|input|context|self)\.[\w.]+/.test(J))return!0;if(Z&&Object.keys(Z).length&&new RegExp(Object.keys(Z).join("|")).test(J))return!0;return!1}__trackDep__(J,Z,W){if(W.memo&&W.memo[Z]&&W.memo[Z].type==="let")W.haslet=!0;!J.has(Z)&&J.set(Z,new Map),J.get(Z)?.set(W.path,W),this.metrics.inc("dependencyTrackCount")}__trackTranslationDep__(J){this.__i18nDeps.set(J.path,J),this.metrics.inc("i18nTrackCount")}__valueDep__(J,Z){return Z.reduce((W,z)=>W?.[z],J)}__shouldUpdate__(J,Z,W,z){if(J==="self")return!0;const q=this.__valueDep__(z[J],Z),Y=this.__valueDep__(W[J],Z);return!S0(q,Y)}__updateDepNodes__(J,Z){if(!this.FGUD?.size)return;this.metrics.inc("componentUpdateCount"),this.metrics.startRender(),this.FGUD.forEach((W,z)=>{const[q,...Y]=z.split(".");if(!this.__shouldUpdate__(q,Y,J,Z))return;W.forEach((G)=>{const{path:X,batch:O,$fragment:K,boundaries:j,update:E,memo:k,syntax:x}=G;try{if(!x&&(j?.start&&!document.contains(j.start))||K!==null&&!K.closest("body").length){W.delete(X);return}if(O)this.UQS.queue({dep:z,dependent:G});else{const m=E(k,"main-updator");if(m)typeof m.memo==="object"&&W.set(X,{...G,memo:m.memo}),typeof m.cleanup==="function"&&m.cleanup()}this.metrics.inc("dependencyUpdateCount")}catch(m){console.error("failed to update dependency nodes --",m);return}}),!W.size&&this.FGUD?.delete(z)}),this.metrics.endRender()}__updateVarDepNodes__(J,Z,W){if(!this.FGUD?.size)return;this.metrics.inc("partialUpdateCount"),this.metrics.startRender(),this.FGUD.get(J)?.forEach((q,Y)=>{if(!q.haslet||!this.__hasSamePathParent__(Y,this.__getPathParent__(Z)))return;if(q.memo={...q.memo,...W},q.batch)this.UQS.queue({dep:J,dependent:q});else{const G=q.update(q.memo,"var-partial-updator");typeof G?.cleanup==="function"&&G.cleanup()}}),this.metrics.endRender()}__updateI18nDepNodes__(){if(!this.__i18nDeps?.size)return;this.metrics.inc("i18nUpdateCount"),this.metrics.startRender(),this.__i18nDeps?.forEach((J,Z)=>{if(!J.$fragment.closest("body").length){this.__i18nDeps.delete(Z);return}J.update(J.memo,"i18n-partial-updator")}),this.metrics.endRender()}appendTo(J){return(typeof J=="string"?r.default(J):J).append(this.node),this.metrics.inc("domOperations"),this}prependTo(J){return typeof J=="string"?r.default(J):J.prepend(this.node),this.metrics.inc("domOperations"),this}replaceWith(J){return(typeof J=="string"?r.default(J):J).replaceWith(this.node),this.metrics.inc("domOperations"),this}}var _1={};f0(_1,{state:()=>{{return I8}},handler:()=>{{return F8}},default:()=>{{return L8}},declaration:()=>{{return j8}}});var j8={name:"if",syntax:!0,tags:{"else-if":{type:"nexted",many:!0,optional:!0},else:{type:"nexted",optional:!0}}},I8={renderer:null},F8={onInput(){if(!this.input.renderer)return;if(this.input.by)this.state.renderer=this.input.renderer;else{let J=!1;if(Array.isArray(this.input["else-if"])&&this.input["else-if"].length)this.input["else-if"].forEach((Z)=>{if(J||!Z.by)return;this.state.renderer=Z.renderer,J=!0});if(!J)this.state.renderer=this.input.else?this.input.else.renderer:null}}},L8="<{state.renderer}/>";var x1={};f0(x1,{state:()=>{{return C8}},handler:()=>{{return S8}},default:()=>{{return P8}},declaration:()=>{{return V8}},_static:()=>{{return N8}}});var V8={name:"for",syntax:!0,iterator:!0},C8={argvlist:null},N8={lastIn:null,processingBatch:!1},S8={onInput(){if(this.static.processingBatch)return;if(!this.input.renderer)throw new Error("Undefined mesh renderer");let{in:J,from:Z,to:W}=this.input;if(J===void 0&&Z===void 0)throw new Error("Invalid <for> arguments");this.static.processingBatch=!0;try{if(Z!==void 0){if(Z=parseFloat(String(Z)),W==null)throw new Error("Expected <from> <to> attributes of the for loop to be defined");if(W=parseFloat(String(W)),Z===W)throw new Error("<from> and <to> attribute cannot have the same value");const z=Z<W,q=Math.abs(W-Z)+1;if(this.state.argvlist&&Array.isArray(this.state.argvlist)&&this.state.argvlist.length===q){const[G]=this.input.renderer.argv;if(G){let X=Z,O=!0;for(let K=0;K<this.state.argvlist.length;K++){if(this.state.argvlist[K][G].value!==X){O=!1;break}X=z?X+1:X-1}if(O)return;X=Z;for(let K=0;K<this.state.argvlist.length;K++)this.state.argvlist[K][G].value=X,X=z?X+1:X-1;return}}const Y=[];for(let G=Z;z?G<=W:G>=W;z?G++:G--){const X={},[O]=this.input.renderer.argv;if(O)X[O]={value:G,type:"arg"};Y.push(X)}this.state.argvlist=Y}else if(Array.isArray(J)){if(this.state.argvlist&&this.static.lastIn&&this.input.in===this.static.lastIn)return;if(!J.length){if(!this.static.lastIn)console.warn("For loop with empty initial rendering <in> attribute array value will not update");this.state.argvlist=[];return}if(this.static.lastIn=J,this.state.argvlist&&Array.isArray(this.state.argvlist)&&this.state.argvlist.length===J.length){const[Y,G]=this.input.renderer.argv;for(let X=0;X<J.length;X++){const O=this.state.argvlist[X];if(Y)O[Y].value=J[X]}return}const z=[];let q=0;for(let Y of J){const G={},[X,O]=this.input.renderer.argv;if(X)G[X]={value:Y,type:"arg"};if(O)G[O]={value:q,type:"arg"};z.push(G),q++}this.state.argvlist=z}else if(J instanceof Map){if(this.state.argvlist&&this.static.lastIn&&this.input.in===this.static.lastIn)return;if(!J.size){if(!this.static.lastIn)console.warn("For loop with empty initial rendering <in> attribute map value will not update");this.state.argvlist=[];return}if(this.static.lastIn=J,this.state.argvlist&&Array.isArray(this.state.argvlist)&&this.state.argvlist.length===J.size){const[Y,G,X]=this.input.renderer.argv;let O=0;for(let[K,j]of J){const E=this.state.argvlist[O];if(Y)E[Y].value=K;if(G)E[G].value=j;O++}return}const z=[];let q=0;for(let[Y,G]of J){const X={},[O,K,j]=this.input.renderer.argv;if(O)X[O]={value:Y,type:"arg"};if(K)X[K]={value:G,type:"arg"};if(j)X[j]={value:q,type:"arg"};z.push(X),q++}this.state.argvlist=z}else if(typeof J=="object"){if(this.state.argvlist&&this.static.lastIn&&this.input.in===this.static.lastIn)return;if(!Object.keys(J).length){if(!this.static.lastIn)console.warn("For loop with empty initial rendering <in> attribute object value will not update");this.state.argvlist=[];return}this.static.lastIn=J;const z=Object.keys(J);if(this.state.argvlist&&Array.isArray(this.state.argvlist)&&this.state.argvlist.length===z.length){const[G,X,O]=this.input.renderer.argv;for(let K=0;K<z.length;K++){const j=z[K],E=this.state.argvlist[K];if(G)E[G].value=j;if(X)E[X].value=J[j]}return}const q=[];let Y=0;for(let G in J){const X={},[O,K,j]=this.input.renderer.argv;if(O)X[O]={value:G,type:"arg"};if(K)X[K]={value:J[G],type:"arg"};if(j)X[j]={value:Y,type:"arg"};q.push(X),Y++}this.state.argvlist=q}}finally{this.static.processingBatch=!1}},updateItems(J){if(!this.input.renderer)throw new Error("Undefined mesh renderer");if(!Array.isArray(J)||!this.state.argvlist)return;this.static.processingBatch=!0;try{const[Z]=this.input.renderer?.argv;if(!Z)return;for(let{index:W,value:z}of J)if(W>=0&&W<this.state.argvlist.length)this.state.argvlist[W][Z].value=z}finally{this.static.processingBatch=!1}},updateProperty(J,Z){if(!this.input.renderer)throw new Error("Undefined mesh renderer");if(!this.state.argvlist)return;this.static.processingBatch=!0;try{for(let W=0;W<this.state.argvlist.length;W++){const z=this.state.argvlist[W];if(z[J])z[J].value=typeof Z==="function"?Z(z[J].value,W):Z}}finally{this.static.processingBatch=!1}}},P8="<{input.renderer} #=state.argvlist/>";var g1={};f0(g1,{state:()=>{{return $8}},handler:()=>{{return R8}},default:()=>{{return T8}},declaration:()=>{{return E8}}});var E8={name:"async",syntax:!0,tags:{then:{type:"child"},catch:{type:"child",optional:!0},loading:{type:"child",optional:!0}}},$8={renderer:null,props:{}},R8={onInput(){if(!this.input.await)throw new Error("Undefined async <await> attribute");if(!(this.input.await instanceof Promise))throw new Error("Expected async <await> attribute value to be a function");if(this.input.loading)this.state.renderer=this.input.loading.renderer,this.state.props={};this.input.await.then((J)=>{if(!this.input.then)return;this.state.renderer=this.input.then.renderer;const[Z]=this.input.then.renderer.argv;this.state.props={[Z]:{value:J,type:"arg"}}}).catch((J)=>{if(!this.input.catch)return;this.state.renderer=this.input.catch.renderer;const[Z]=this.input.then.renderer.argv;this.state.props={[Z]:{value:J,type:"arg"}}})}},T8="<{state.renderer} #=state.props/>";var k1={};f0(k1,{state:()=>{{return b8}},handler:()=>{{return _8}},default:()=>{{return x8}},declaration:()=>{{return A8}}});var A8={name:"switch",syntax:!0,tags:{case:{type:"child",many:!0},default:{type:"child"}}},b8={renderer:null},_8={onInput(){let J=[];for(let Z of this.input.case)if(Z.is==this.input.by||Array.isArray(Z.is)&&Z.is.includes(this.input.by))Array.isArray(Z.is)?J=[...new Set([...J,...Z.is])]:J.push(Z.is),this.state.renderer=Z.renderer;if(!J.includes(this.input.by))this.state.renderer=this.input.default?this.input.default.renderer:null}},x8="<{state.renderer}/>";var h1={};f0(h1,{state:()=>{{return g8}},handler:()=>{{return y8}},default:()=>{{return v8}},context:()=>{{return h8}},_static:()=>{{return k8}}});var f8=function(J){const Z={};return J.split("&").map((z)=>{const[q,Y]=z.split("=");Z[q]=Y}),Z},g8={page:null,params:{},query:{}},k8={global:!1,routes:[],defaultPath:null,currentPath:null,currentRoute:null},h8=["navigate"],y8={onInput(){if(!this.input.routes)return;if(this.input.global)this.static.global=this.input.global;if(this.static.routes=this.input.routes.map(({path:J,template:Z,default:W})=>{if(W)this.static.defaultPath=J;const z=J.match(/:[^\/]*(\/|$)/gi)||[],q=J.replaceAll("/","\\/").replaceAll(/:[^\/]*(\/|$)/gi,"([^\\/]+)(?:\\/|$)");return{path:J,template:Z,default:W,pathVars:z,pathRegex:new RegExp(`${q}\$`,"i")}}),this.input.global){const J=window.location.pathname;this.static.defaultPath=this.static.defaultPath&&J=="/"&&J!==this.static.defaultPath?this.static.defaultPath:J?J+window.location.search:this.static.routes[0].path}},onAttach(){if(this.input.global)window.navigate=this.navigate.bind(this),window.addEventListener("popstate",(J)=>J.state&&this.navigate(J.state.path,!0));this.setContext("navigate",this.navigate.bind(this)),this.static.defaultPath&&this.navigate(this.static.defaultPath)},navigate(J,Z){!Z&&this.static.global&&history.pushState({path:J},"",J);const W=J.split("?");J=W[0];const z=W[1]?f8(W[1]):{};let q=null;if(this.static.currentRoute)q={path:this.static.currentRoute.path,params:this.state.params},this.emit("before",{fromState:q,toState:{path:J,query:z}});const Y=this.match(J);if(!Y){this.static.currentRoute=null,this.state.params={},this.state.query={},this.emit("not-found",J);return}const{route:G,params:X}=Y;this.emit("after",{fromState:q,toState:{path:G.path,params:X,query:z}}),this.static.currentPath=J,this.static.currentRoute=G,this.state.params=X,this.state.query=z,this.state.page=G.template},match(J){const Z={};let W=!1;for(let z of this.static.routes){const{pathVars:q,pathRegex:Y}=z,G=J.match(Y);if(G!==null&&G.index===0){for(let X=0;X+1<G.length&&X<q.length;X++)Z[q[X].replaceAll(/[\/:]/g,"")]=G[X+1];W=z;break}}return W?{route:W,params:Z}:!1}},v8="<{state.page} params=state.params query=state.query/>";class h0{debug=!1;stylesheets=[];config={};store={};__root;i18n=new o0;watcher;IUC;__setLang;__getLang;__setContext;__getContext;constructor(J){if(this.config=J,this.config?.debug)this.debug=this.config.debug;this.watcher=new n0,this.IUC=new l0;const[Z,W]=R0(this.i18n.lang),[z,q]=R0(J?.context||{});this.__setLang=W,this.__getLang=Z,this.__setContext=q,this.__getContext=z,this.register("if",_1),this.register("for",x1),this.register("async",g1),this.register("switch",k1),this.register("router",h1)}register(J,Z){return this.store[J]=Z,this}unregister(J){return delete this.store[J],this}has(J){return J in this.store}import(J){if(!this.has(J))throw new Error(`<${J}> component not found`);if(!this.store[J].declaration?.syntax&&!this.store[J].default)throw new Error(`Invalid <${J}> component`);return this.store[J]}render(J,Z,W){const{default:z,...q}=Z,Y={debug:this.debug,prepath:"0",lips:this},G=new u0(J,z||"",{...q,input:W},Y);return window.addEventListener("beforeunload",()=>{return this.dispose(),G.destroy(),null}),window.addEventListener("pagehide",(X)=>{!X.persisted&&this.dispose()}),document.addEventListener("visibilitychange",()=>{if(document.visibilityState!=="hidden")return;this.IUC.prepareForPotentialUnload()}),G}root(J,Z){if(this.__root=this.render("__ROOT__",J),this.__root.appendTo(Z),this.config?.stylesheets)this.stylesheets=this.config.stylesheets.map((W)=>new k0("root",{sheet:W,meta:!0}));return this.__root}setLanguage(J){this.i18n.lang=J,this.__setLang(J)}getLanguage(){return this.__getLang()}setContext(J,Z){const W=this.__getContext();if(typeof J==="string"){const z={...W,[J]:Z};H0(W,z)&&this.__setContext(z)}else if(!Array.isArray(J)){const z={...W,...J};H0(W,z)&&this.__setContext(z)}else throw new Error("Invalid context data")}getContext(){return this.__getContext()}useContext(J,Z){if(!J.length)return;m0(()=>{const W=this.__getContext();if(!W)return;const z=Object.fromEntries(J.map((q)=>[q,W[q]]));z&&typeof Z==="function"&&Object.keys(z).length&&Z(z)})}useTranslator(J,Z){m0(()=>{const W=this.__getLang();if(!W)return;(J==="*"||Array.isArray(J)&&J.includes(W))&&typeof Z==="function"&&Z(W)})}dispose(){this.watcher?.dispose(),this.__root?.destroy(),this.stylesheets.forEach((J)=>J.clear())}}function m8(J="body"){const Z={counter:0,counterHistory:[],updateFrequency:16,isRunning:!1,metrics:{fps:0,avgRenderTime:0,totalUpdates:0,memoryUsageMB:0,domOperations:0}},W={updateInterval:null,frameCountInterval:null,frameCount:0,lastFrameTimestamp:0,updateTimes:[]},z={onCreate(){console.log("Stress test component created")},onMount(){console.log("Stress test component mounted"),this.startPerformanceTracking()},onRender(){const O=performance.now();if(this.static.lastFrameTimestamp){const K=O-this.static.lastFrameTimestamp;if(K<1000){if(this.static.updateTimes.push(K),this.static.updateTimes.length>100)this.static.updateTimes.shift()}}this.static.lastFrameTimestamp=O,this.static.frameCount++},startPerformanceTracking(){this.static.frameCountInterval=setInterval(()=>{if(this.state.metrics.fps=this.static.frameCount,this.static.frameCount=0,this.static.updateTimes.length){const O=this.static.updateTimes.reduce((K,j)=>K+j,0)/this.static.updateTimes.length;this.state.metrics.avgRenderTime=O}if(window.performance&&window.performance.memory)this.state.metrics.memoryUsageMB=window.performance.memory.usedJSHeapSize/1048576},1000)},startStressTest(){if(this.state.isRunning)return;this.state.isRunning=!0,this.state.counterHistory=[],this.static.updateInterval=setInterval(()=>{if(this.state.counter++,this.state.metrics.totalUpdates++,this.state.counterHistory.length>100)this.state.counterHistory.shift();this.state.counterHistory.push(this.state.counter)},this.state.updateFrequency)},stopStressTest(){if(!this.state.isRunning)return;clearInterval(this.static.updateInterval),this.state.isRunning=!1},setUpdateFrequency(O){const K=parseFloat(O.target.value);if(this.state.updateFrequency=K,this.state.isRunning)this.stopStressTest(),this.startStressTest()},resetCounter(){this.state.counter=0,this.state.counterHistory=[],this.state.metrics.totalUpdates=0},runHeavyComputation(){const O=performance.now();let K=0;for(let j=0;j<1e7;j++)K+=Math.sqrt(j);console.log(`Heavy computation completed in ${performance.now()-O}ms, result: ${K}`)},destroy(){clearInterval(this.static.updateInterval),clearInterval(this.static.frameCountInterval)}},X=new h0({debug:!0}).render("StressTestApp",{default:`
|
|
1
|
+
var Y8=Object.create;var{defineProperty:A1,getPrototypeOf:M8,getOwnPropertyNames:K8}=Object;var j8=Object.prototype.hasOwnProperty;var S1=(J,Z,W)=>{W=J!=null?Y8(M8(J)):{};const X=Z||!J||!J.__esModule?A1(W,"default",{value:J,enumerable:!0}):W;for(let q of K8(J))if(!j8.call(X,q))A1(X,q,{get:()=>J[q],enumerable:!0});return X};var O8=(J,Z)=>()=>(Z||J((Z={exports:{}}).exports,Z),Z.exports);var d0=(J,Z)=>{for(var W in Z)A1(J,W,{get:Z[W],enumerable:!0,configurable:!0,set:(X)=>Z[W]=()=>X})};var J1=O8((W5,H5)=>{(function(){var J=document,Z=window,W=J.documentElement,X=J.createElement.bind(J),q=X("div"),H=X("table"),B=X("tbody"),Y=X("tr"),G=Array.isArray,M=Array.prototype,j=M.concat,N=M.filter,b=M.indexOf,i=M.map,e=M.push,r=M.slice,H0=M.some,t=M.splice,J0=/^#(?:[\w-]|\\.|[^\x00-\xa0])*$/,d=/^\.(?:[\w-]|\\.|[^\x00-\xa0])*$/,h=/<.+>/,u=/^\w+$/;function v(Q,z){var U=V(z);return!Q||!U&&!F(z)&&!S(z)?[]:!U&&d.test(Q)?z.getElementsByClassName(Q.slice(1).replace(/\\/g,"")):!U&&u.test(Q)?z.getElementsByTagName(Q):z.querySelectorAll(Q)}var T=function(){function Q(z,U){if(!z)return;if(D(z))return z;var K=z;if(A(z)){var C=U||J;if(K=J0.test(z)&&F(C)?C.getElementById(z.slice(1).replace(/\\/g,"")):h.test(z)?i1(z):D(C)?C.find(z):A(C)?O(C).find(z):v(z,C),!K)return}else if(f(z))return this.ready(z);if(K.nodeType||K===Z)K=[K];this.length=K.length;for(var E=0,y=this.length;E<y;E++)this[E]=K[E]}return Q.prototype.init=function(z,U){return new Q(z,U)},Q}(),w=T.prototype,O=w.init;if(O.fn=O.prototype=w,w.length=0,w.splice=t,typeof Symbol==="function")w[Symbol.iterator]=M[Symbol.iterator];function D(Q){return Q instanceof T}function P(Q){return!!Q&&Q===Q.window}function F(Q){return!!Q&&Q.nodeType===9}function V(Q){return!!Q&&Q.nodeType===11}function S(Q){return!!Q&&Q.nodeType===1}function m(Q){return!!Q&&Q.nodeType===3}function c(Q){return typeof Q==="boolean"}function f(Q){return typeof Q==="function"}function A(Q){return typeof Q==="string"}function $(Q){return Q===void 0}function k(Q){return Q===null}function R(Q){return!isNaN(parseFloat(Q))&&isFinite(Q)}function _(Q){if(typeof Q!=="object"||Q===null)return!1;var z=Object.getPrototypeOf(Q);return z===null||z===Object.prototype}O.isWindow=P,O.isFunction=f,O.isArray=G,O.isNumeric=R,O.isPlainObject=_;function L(Q,z,U){if(U){var K=Q.length;while(K--)if(z.call(Q[K],K,Q[K])===!1)return Q}else if(_(Q)){var C=Object.keys(Q);for(var K=0,E=C.length;K<E;K++){var y=C[K];if(z.call(Q[y],y,Q[y])===!1)return Q}}else for(var K=0,E=Q.length;K<E;K++)if(z.call(Q[K],K,Q[K])===!1)return Q;return Q}O.each=L,w.each=function(Q){return L(this,Q)},w.empty=function(){return this.each(function(Q,z){while(z.firstChild)z.removeChild(z.firstChild)})};function g(){var Q=[];for(var z=0;z<arguments.length;z++)Q[z]=arguments[z];var U=c(Q[0])?Q.shift():!1,K=Q.shift(),C=Q.length;if(!K)return{};if(!C)return g(U,O,K);for(var E=0;E<C;E++){var y=Q[E];for(var l in y)if(U&&(G(y[l])||_(y[l]))){if(!K[l]||K[l].constructor!==y[l].constructor)K[l]=new y[l].constructor;g(U,K[l],y[l])}else K[l]=y[l]}return K}O.extend=g,w.extend=function(Q){return g(w,Q)};var I=/\S+/g;function x(Q){return A(Q)?Q.match(I)||[]:[]}w.toggleClass=function(Q,z){var U=x(Q),K=!$(z);return this.each(function(C,E){if(!S(E))return;L(U,function(y,l){if(K)z?E.classList.add(l):E.classList.remove(l);else E.classList.toggle(l)})})},w.addClass=function(Q){return this.toggleClass(Q,!0)},w.removeAttr=function(Q){var z=x(Q);return this.each(function(U,K){if(!S(K))return;L(z,function(C,E){K.removeAttribute(E)})})};function a(Q,z){if(!Q)return;if(A(Q)){if(arguments.length<2){if(!this[0]||!S(this[0]))return;var U=this[0].getAttribute(Q);return k(U)?void 0:U}if($(z))return this;if(k(z))return this.removeAttr(Q);return this.each(function(C,E){if(!S(E))return;E.setAttribute(Q,z)})}for(var K in Q)this.attr(K,Q[K]);return this}w.attr=a,w.removeClass=function(Q){if(arguments.length)return this.toggleClass(Q,!1);return this.attr("class","")},w.hasClass=function(Q){return!!Q&&H0.call(this,function(z){return S(z)&&z.classList.contains(Q)})},w.get=function(Q){if($(Q))return r.call(this);return Q=Number(Q),this[Q<0?Q+this.length:Q]},w.eq=function(Q){return O(this.get(Q))},w.first=function(){return this.eq(0)},w.last=function(){return this.eq(-1)};function n(Q){if($(Q))return this.get().map(function(z){return S(z)||m(z)?z.textContent:""}).join("");return this.each(function(z,U){if(!S(U))return;U.textContent=Q})}w.text=n;function p(Q,z,U){if(!S(Q))return;var K=Z.getComputedStyle(Q,null);return U?K.getPropertyValue(z)||void 0:K[z]||Q.style[z]}function s(Q,z){return parseInt(p(Q,z),10)||0}function o(Q,z){return s(Q,"border".concat(z?"Left":"Top","Width"))+s(Q,"padding".concat(z?"Left":"Top"))+s(Q,"padding".concat(z?"Right":"Bottom"))+s(Q,"border".concat(z?"Right":"Bottom","Width"))}var Q0={};function L0(Q){if(Q0[Q])return Q0[Q];var z=X(Q);J.body.insertBefore(z,null);var U=p(z,"display");return J.body.removeChild(z),Q0[Q]=U!=="none"?U:"block"}function g0(Q){return p(Q,"display")==="none"}function m1(Q,z){var U=Q&&(Q.matches||Q.webkitMatchesSelector||Q.msMatchesSelector);return!!U&&!!z&&U.call(Q,z)}function s0(Q){return A(Q)?function(z,U){return m1(U,Q)}:f(Q)?Q:D(Q)?function(z,U){return Q.is(U)}:!Q?function(){return!1}:function(z,U){return U===Q}}w.filter=function(Q){var z=s0(Q);return O(N.call(this,function(U,K){return z.call(U,K,U)}))};function R0(Q,z){return!z?Q:Q.filter(z)}w.detach=function(Q){return R0(this,Q).each(function(z,U){if(U.parentNode)U.parentNode.removeChild(U)}),this};var v5=/^\s*<(\w+)[^>]*>/,u5=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,d1={"*":q,tr:B,td:Y,th:Y,thead:H,tbody:H,tfoot:H};function i1(Q){if(!A(Q))return[];if(u5.test(Q))return[X(RegExp.$1)];var z=v5.test(Q)&&RegExp.$1,U=d1[z]||d1["*"];return U.innerHTML=Q,O(U.childNodes).detach().get()}O.parseHTML=i1,w.has=function(Q){var z=A(Q)?function(U,K){return v(Q,K).length}:function(U,K){return K.contains(Q)};return this.filter(z)},w.not=function(Q){var z=s0(Q);return this.filter(function(U,K){return(!A(Q)||S(K))&&!z.call(K,U,K)})};function I0(Q,z,U,K){var C=[],E=f(z),y=K&&s0(K);for(var l=0,j0=Q.length;l<j0;l++)if(E){var q0=z(Q[l]);if(q0.length)e.apply(C,q0)}else{var U0=Q[l][z];while(U0!=null){if(K&&y(-1,U0))break;C.push(U0),U0=U?U0[z]:null}}return C}function c1(Q){if(Q.multiple&&Q.options)return I0(N.call(Q.options,function(z){return z.selected&&!z.disabled&&!z.parentNode.disabled}),"value");return Q.value||""}function m5(Q){if(!arguments.length)return this[0]&&c1(this[0]);return this.each(function(z,U){var K=U.multiple&&U.options;if(K||Z5.test(U.type)){var C=G(Q)?i.call(Q,String):k(Q)?[]:[String(Q)];if(K)L(U.options,function(E,y){y.selected=C.indexOf(y.value)>=0},!0);else U.checked=C.indexOf(U.value)>=0}else U.value=$(Q)||k(Q)?"":Q})}w.val=m5,w.is=function(Q){var z=s0(Q);return H0.call(this,function(U,K){return z.call(U,K,U)})},O.guid=1;function F0(Q){return Q.length>1?N.call(Q,function(z,U,K){return b.call(K,z)===U}):Q}O.unique=F0,w.add=function(Q,z){return O(F0(this.get().concat(O(Q,z).get())))},w.children=function(Q){return R0(O(F0(I0(this,function(z){return z.children}))),Q)},w.parent=function(Q){return R0(O(F0(I0(this,"parentNode"))),Q)},w.index=function(Q){var z=Q?O(Q)[0]:this[0],U=Q?this:O(z).parent().children();return b.call(U,z)},w.closest=function(Q){var z=this.filter(Q);if(z.length)return z;var U=this.parent();if(!U.length)return z;return U.closest(Q)},w.siblings=function(Q){return R0(O(F0(I0(this,function(z){return O(z).parent().children().not(z)}))),Q)},w.find=function(Q){return O(F0(I0(this,function(z){return v(Q,z)})))};var d5=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,i5=/^$|^module$|\/(java|ecma)script/i,c5=["type","src","nonce","noModule"];function p5(Q,z){var U=O(Q);U.filter("script").add(U.find("script")).each(function(K,C){if(i5.test(C.type)&&W.contains(C)){var E=X("script");E.text=C.textContent.replace(d5,""),L(c5,function(y,l){if(C[l])E[l]=C[l]}),z.head.insertBefore(E,null),z.head.removeChild(E)}})}function s5(Q,z,U,K,C){if(K)Q.insertBefore(z,U?Q.firstChild:null);else if(Q.nodeName==="HTML")Q.parentNode.replaceChild(z,Q);else Q.parentNode.insertBefore(z,U?Q:Q.nextSibling);if(C)p5(z,Q.ownerDocument)}function E0(Q,z,U,K,C,E,y,l){return L(Q,function(j0,q0){L(O(q0),function(U0,A0){L(O(z),function(O0,o0){var $1=U?A0:o0,R1=U?o0:A0,w0=U?U0:O0;s5($1,!w0?R1:R1.cloneNode(!0),K,C,!w0)},l)},y)},E),z}w.after=function(){return E0(arguments,this,!1,!1,!1,!0,!0)},w.append=function(){return E0(arguments,this,!1,!1,!0)};function l5(Q){if(!arguments.length)return this[0]&&this[0].innerHTML;if($(Q))return this;var z=/<script[\s>]/.test(Q);return this.each(function(U,K){if(!S(K))return;if(z)O(K).empty().append(Q);else K.innerHTML=Q})}w.html=l5,w.appendTo=function(Q){return E0(arguments,this,!0,!1,!0)},w.wrapInner=function(Q){return this.each(function(z,U){var K=O(U),C=K.contents();C.length?C.wrapAll(Q):K.append(Q)})},w.before=function(){return E0(arguments,this,!1,!0)},w.wrapAll=function(Q){var z=O(Q),U=z[0];while(U.children.length)U=U.firstElementChild;return this.first().before(z),this.appendTo(U)},w.wrap=function(Q){return this.each(function(z,U){var K=O(Q)[0];O(U).wrapAll(!z?K:K.cloneNode(!0))})},w.insertAfter=function(Q){return E0(arguments,this,!0,!1,!1,!1,!1,!0)},w.insertBefore=function(Q){return E0(arguments,this,!0,!0)},w.prepend=function(){return E0(arguments,this,!1,!0,!0,!0,!0)},w.prependTo=function(Q){return E0(arguments,this,!0,!0,!0,!1,!1,!0)},w.contents=function(){return O(F0(I0(this,function(Q){return Q.tagName==="IFRAME"?[Q.contentDocument]:Q.tagName==="TEMPLATE"?Q.content.childNodes:Q.childNodes})))},w.next=function(Q,z,U){return R0(O(F0(I0(this,"nextElementSibling",z,U))),Q)},w.nextAll=function(Q){return this.next(Q,!0)},w.nextUntil=function(Q,z){return this.next(z,!0,Q)},w.parents=function(Q,z){return R0(O(F0(I0(this,"parentElement",!0,z))),Q)},w.parentsUntil=function(Q,z){return this.parents(z,Q)},w.prev=function(Q,z,U){return R0(O(F0(I0(this,"previousElementSibling",z,U))),Q)},w.prevAll=function(Q){return this.prev(Q,!0)},w.prevUntil=function(Q,z){return this.prev(z,!0,Q)},w.map=function(Q){return O(j.apply([],i.call(this,function(z,U){return Q.call(z,U,z)})))},w.clone=function(){return this.map(function(Q,z){return z.cloneNode(!0)})},w.offsetParent=function(){return this.map(function(Q,z){var U=z.offsetParent;while(U&&p(U,"position")==="static")U=U.offsetParent;return U||W})},w.slice=function(Q,z){return O(r.call(this,Q,z))};var o5=/-([a-z])/g;function L1(Q){return Q.replace(o5,function(z,U){return U.toUpperCase()})}w.ready=function(Q){var z=function(){return setTimeout(Q,0,O)};if(J.readyState!=="loading")z();else J.addEventListener("DOMContentLoaded",z);return this},w.unwrap=function(){return this.parent().each(function(Q,z){if(z.tagName==="BODY")return;var U=O(z);U.replaceWith(U.children())}),this},w.offset=function(){var Q=this[0];if(!Q)return;var z=Q.getBoundingClientRect();return{top:z.top+Z.pageYOffset,left:z.left+Z.pageXOffset}},w.position=function(){var Q=this[0];if(!Q)return;var z=p(Q,"position")==="fixed",U=z?Q.getBoundingClientRect():this.offset();if(!z){var K=Q.ownerDocument,C=Q.offsetParent||K.documentElement;while((C===K.body||C===K.documentElement)&&p(C,"position")==="static")C=C.parentNode;if(C!==Q&&S(C)){var E=O(C).offset();U.top-=E.top+s(C,"borderTopWidth"),U.left-=E.left+s(C,"borderLeftWidth")}}return{top:U.top-s(Q,"marginTop"),left:U.left-s(Q,"marginLeft")}};var p1={class:"className",contenteditable:"contentEditable",for:"htmlFor",readonly:"readOnly",maxlength:"maxLength",tabindex:"tabIndex",colspan:"colSpan",rowspan:"rowSpan",usemap:"useMap"};w.prop=function(Q,z){if(!Q)return;if(A(Q)){if(Q=p1[Q]||Q,arguments.length<2)return this[0]&&this[0][Q];return this.each(function(K,C){C[Q]=z})}for(var U in Q)this.prop(U,Q[U]);return this},w.removeProp=function(Q){return this.each(function(z,U){delete U[p1[Q]||Q]})};var r5=/^--/;function F1(Q){return r5.test(Q)}var I1={},n5=q.style,a5=["webkit","moz","ms"];function t5(Q,z){if(z===void 0)z=F1(Q);if(z)return Q;if(!I1[Q]){var U=L1(Q),K="".concat(U[0].toUpperCase()).concat(U.slice(1)),C="".concat(U," ").concat(a5.join("".concat(K," "))).concat(K).split(" ");L(C,function(E,y){if(y in n5)return I1[Q]=y,!1})}return I1[Q]}var e5={animationIterationCount:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0};function s1(Q,z,U){if(U===void 0)U=F1(Q);return!U&&!e5[Q]&&R(z)?"".concat(z,"px"):z}function J8(Q,z){if(A(Q)){var U=F1(Q);if(Q=t5(Q,U),arguments.length<2)return this[0]&&p(this[0],Q,U);if(!Q)return this;return z=s1(Q,z,U),this.each(function(C,E){if(!S(E))return;if(U)E.style.setProperty(Q,z);else E.style[Q]=z})}for(var K in Q)this.css(K,Q[K]);return this}w.css=J8;function l1(Q,z){try{return Q(z)}catch(U){return z}}var Z8=/^\s+|\s+$/;function o1(Q,z){var U=Q.dataset[z]||Q.dataset[L1(z)];if(Z8.test(U))return U;return l1(JSON.parse,U)}function Q8(Q,z,U){U=l1(JSON.stringify,U),Q.dataset[L1(z)]=U}function W8(Q,z){if(!Q){if(!this[0])return;var U={};for(var K in this[0].dataset)U[K]=o1(this[0],K);return U}if(A(Q)){if(arguments.length<2)return this[0]&&o1(this[0],Q);if($(z))return this;return this.each(function(C,E){Q8(E,Q,z)})}for(var K in Q)this.data(K,Q[K]);return this}w.data=W8;function r1(Q,z){var U=Q.documentElement;return Math.max(Q.body["scroll".concat(z)],U["scroll".concat(z)],Q.body["offset".concat(z)],U["offset".concat(z)],U["client".concat(z)])}L([!0,!1],function(Q,z){L(["Width","Height"],function(U,K){var C="".concat(z?"outer":"inner").concat(K);w[C]=function(E){if(!this[0])return;if(P(this[0]))return z?this[0]["inner".concat(K)]:this[0].document.documentElement["client".concat(K)];if(F(this[0]))return r1(this[0],K);return this[0]["".concat(z?"offset":"client").concat(K)]+(E&&z?s(this[0],"margin".concat(U?"Top":"Left"))+s(this[0],"margin".concat(U?"Bottom":"Right")):0)}})}),L(["Width","Height"],function(Q,z){var U=z.toLowerCase();w[U]=function(K){if(!this[0])return $(K)?void 0:this;if(!arguments.length){if(P(this[0]))return this[0].document.documentElement["client".concat(z)];if(F(this[0]))return r1(this[0],z);return this[0].getBoundingClientRect()[U]-o(this[0],!Q)}var C=parseInt(K,10);return this.each(function(E,y){if(!S(y))return;var l=p(y,"boxSizing");y.style[U]=s1(U,C+(l==="border-box"?o(y,!Q):0))})}});var n1="___cd";w.toggle=function(Q){return this.each(function(z,U){if(!S(U))return;var K=g0(U),C=$(Q)?K:Q;if(C){if(U.style.display=U[n1]||"",g0(U))U.style.display=L0(U.tagName)}else if(!K)U[n1]=p(U,"display"),U.style.display="none"})},w.hide=function(){return this.toggle(!1)},w.show=function(){return this.toggle(!0)};var a1="___ce",V1=".",C1={focus:"focusin",blur:"focusout"},t1={mouseenter:"mouseover",mouseleave:"mouseout"},H8=/^(mouse|pointer|contextmenu|drag|drop|click|dblclick)/i;function N1(Q){return t1[Q]||C1[Q]||Q}function P1(Q){var z=Q.split(V1);return[z[0],z.slice(1).sort()]}w.trigger=function(Q,z){if(A(Q)){var U=P1(Q),K=U[0],C=U[1],E=N1(K);if(!E)return this;var y=H8.test(E)?"MouseEvents":"HTMLEvents";Q=J.createEvent(y),Q.initEvent(E,!0,!0),Q.namespace=C.join(V1),Q.___ot=K}Q.___td=z;var l=Q.___ot in C1;return this.each(function(j0,q0){if(l&&f(q0[Q.___ot]))q0["___i".concat(Q.type)]=!0,q0[Q.___ot](),q0["___i".concat(Q.type)]=!1;q0.dispatchEvent(Q)})};function e1(Q){return Q[a1]=Q[a1]||{}}function X8(Q,z,U,K,C){var E=e1(Q);E[z]=E[z]||[],E[z].push([U,K,C]),Q.addEventListener(z,C)}function J5(Q,z){return!z||!H0.call(z,function(U){return Q.indexOf(U)<0})}function l0(Q,z,U,K,C){var E=e1(Q);if(!z)for(z in E)l0(Q,z,U,K,C);else if(E[z])E[z]=E[z].filter(function(y){var l=y[0],j0=y[1],q0=y[2];if(C&&q0.guid!==C.guid||!J5(l,U)||K&&K!==j0)return!0;Q.removeEventListener(z,q0)})}w.off=function(Q,z,U){var K=this;if($(Q))this.each(function(E,y){if(!S(y)&&!F(y)&&!P(y))return;l0(y)});else if(!A(Q))for(var C in Q)this.off(C,Q[C]);else{if(f(z))U=z,z="";L(x(Q),function(E,y){var l=P1(y),j0=l[0],q0=l[1],U0=N1(j0);K.each(function(A0,O0){if(!S(O0)&&!F(O0)&&!P(O0))return;l0(O0,U0,q0,z,U)})})}return this},w.remove=function(Q){return R0(this,Q).detach().off(),this},w.replaceWith=function(Q){return this.before(Q).remove()},w.replaceAll=function(Q){return O(Q).replaceWith(this),this};function q8(Q,z,U,K,C){var E=this;if(!A(Q)){for(var y in Q)this.on(y,z,U,Q[y],C);return this}if(!A(z))if($(z)||k(z))z="";else if($(U))U=z,z="";else K=U,U=z,z="";if(!f(K))K=U,U=void 0;if(!K)return this;return L(x(Q),function(l,j0){var q0=P1(j0),U0=q0[0],A0=q0[1],O0=N1(U0),o0=U0 in t1,$1=U0 in C1;if(!O0)return;E.each(function(R1,w0){if(!S(w0)&&!F(w0)&&!P(w0))return;var E1=function(z0){if(z0.target["___i".concat(z0.type)])return z0.stopImmediatePropagation();if(z0.namespace&&!J5(A0,z0.namespace.split(V1)))return;if(!z&&($1&&(z0.target!==w0||z0.___ot===O0)||o0&&z0.relatedTarget&&w0.contains(z0.relatedTarget)))return;var T1=w0;if(z){var k0=z0.target;while(!m1(k0,z)){if(k0===w0)return;if(k0=k0.parentNode,!k0)return}T1=k0}Object.defineProperty(z0,"currentTarget",{configurable:!0,get:function(){return T1}}),Object.defineProperty(z0,"delegateTarget",{configurable:!0,get:function(){return w0}}),Object.defineProperty(z0,"data",{configurable:!0,get:function(){return U}});var w8=K.call(T1,z0,z0.___td);if(C)l0(w0,O0,A0,z,E1);if(w8===!1)z0.preventDefault(),z0.stopPropagation()};E1.guid=K.guid=K.guid||O.guid++,X8(w0,O0,A0,z,E1)})}),this}w.on=q8;function z8(Q,z,U,K){return this.on(Q,z,U,K,!0)}w.one=z8;var B8=/\r?\n/g;function G8(Q,z){return"&".concat(encodeURIComponent(Q),"=").concat(encodeURIComponent(z.replace(B8,"\r\n")))}var U8=/file|reset|submit|button|image/i,Z5=/radio|checkbox/i;if(w.serialize=function(){var Q="";return this.each(function(z,U){L(U.elements||[U],function(K,C){if(C.disabled||!C.name||C.tagName==="FIELDSET"||U8.test(C.type)||Z5.test(C.type)&&!C.checked)return;var E=c1(C);if(!$(E)){var y=G(E)?E:[E];L(y,function(l,j0){Q+=G8(C.name,j0)})}})}),Q.slice(1)},typeof W5!=="undefined")H5.exports=O;else Z.cash=Z.$=O})()});class r0{pendingComponents=new Set;isPending=!1;callbacks=new Map;register(J,Z){this.callbacks.set(J,Z)}unregister(J){this.callbacks.delete(J)}queue(J){if(!this.callbacks.has(J))return;if(this.pendingComponents.add(J),!this.isPending)this.isPending=!0,this.schedule()}schedule(){Promise.resolve().then(()=>this.process())}process(){const J=Array.from(this.pendingComponents);this.pendingComponents.clear(),this.isPending=!1,J.forEach((Z)=>{try{const W=this.callbacks.get(Z);if(W)W()}catch(W){console.error(`Error updating component ${Z}:`,W)}})}clear(){this.pendingComponents.clear(),this.isPending=!1}dispose(){this.pendingComponents.clear(),this.callbacks.clear(),this.isPending=!1}}class n0{subscriptions=new Map;tick=new r0;register(J,Z){this.subscriptions.set(J,Z),this.tick.register(J,Z)}unregister(J){this.subscriptions.delete(J),this.tick.unregister(J)}queueUpdate(J){this.tick.queue(J)}dispose(){this.subscriptions.clear(),this.tick.dispose()}prepareForPotentialUnload(){this.tick.clear(),this.subscriptions.forEach((J,Z)=>{this.subscriptions.set(Z,()=>{})})}proxyState(J,Z){const W=this,X=new WeakMap,q=(B)=>{if(typeof B.toJSON==="function")return B;if(B instanceof Map)B.forEach((G,M)=>B.set(M,H(G)));else if(Array.isArray(B))B.forEach((G,M)=>B[M]=H(G));else if(typeof B==="object")Object.entries(B).forEach(([G,M])=>B[G]=H(M));let Y=new Proxy(B,{get(G,M){if(M==="toJSON")return function(){const N=(b)=>{if(!b||typeof b!=="object")return b;if(X.has(b)){const i=X.get(b);if(i instanceof Map){const r={};return i.forEach((H0,t)=>r[typeof t==="object"?JSON.stringify(t):String(t)]=N(H0)),r}if(Array.isArray(i))return i.map((r)=>N(r));const e={};return Object.entries(i).forEach(([r,H0])=>e[r]=N(H0)),e}if(typeof b.toJSON==="function"&&!X.has(b))return b.toJSON();return b};return N(Y)};if(M==="reset")return function(){Y=null};const j=G[M];if(B instanceof Map&&typeof j==="function")return function(...N){const b=M.toString();if(b==="set"&&N.length>=2)N[1]=H(N[1]);const i=j.apply(G,N);return["set","delete","clear"].includes(b)&&W.queueUpdate(J),i};if(Array.isArray(B)&&typeof j==="function")return function(...N){const b=M.toString();if(["push","unshift"].includes(b))N=N.map((e)=>H(e));else if(b==="splice"&&N.length>2)N=[N[0],N[1],...N.slice(2).map((e)=>H(e))];const i=j.apply(G,N);return["push","pop","shift","unshift","splice","sort","reverse","fill"].includes(b)&&W.queueUpdate(J),i};return j},set(G,M,j){if(G[M]===j)return!0;if(j instanceof Map&&G[M]instanceof Map){const N=G[M];return N.clear(),j.forEach((b,i)=>N.set(i,H(b))),W.queueUpdate(J),!0}return G[M]=H(j),W.queueUpdate(J),!0}});return X.set(Y,B),Y},H=(B)=>{if(!B)return B;return B instanceof Map||Array.isArray(B)||typeof B==="object"?q(B):B};return q(Z)}}class a0{domObserver;observedComponents=new Map;TIMEOUT=1e4;constructor(){this.domObserver=new MutationObserver(()=>{this.observedComponents.forEach((J,Z)=>{try{const W=Z.node;if(!W){this.unwatch(Z);return}if(J.type==="attach"&&document.contains(W[0]))this.unwatch(Z),Z.emit("component:attached"),typeof Z.onAttach=="function"&&Z.onAttach.bind(Z)();else if(J.type==="detach"&&!document.contains(W[0]))this.unwatch(Z),Z.emit("component:detached"),typeof Z.onDetach=="function"&&Z.onDetach.bind(Z)()}catch(W){console.log("DWS error --",W)}}),!this.observedComponents.size&&this.domObserver.disconnect()})}watch(J,Z="attach"){const W=J.node;if(!W)return;if(Z==="attach"&&document.contains(W[0])){J.emit("component:attached"),typeof J.onAttach=="function"&&J.onAttach.bind(J)();return}if(Z==="detach"&&!document.contains(W[0])){J.emit("component:detached"),typeof J.onDetach=="function"&&J.onDetach.bind(J)();return}this.unwatch(J);const X=setTimeout(()=>{this.unwatch(J),J.emit(`component:${Z}ment-timeout`)},this.TIMEOUT);this.observedComponents.set(J,{timeout:X,type:Z}),this.observedComponents.size===1&&this.domObserver.observe(document.body,{childList:!0,subtree:!0}),Z==="attach"&&J.once("component:attached",()=>this.watch(J,"detach"))}unwatch(J){const Z=this.observedComponents.get(J);if(Z)clearTimeout(Z.timeout),this.observedComponents.delete(J);!this.observedComponents.size&&this.domObserver.disconnect()}dispose(){this.domObserver.disconnect(),this.observedComponents.forEach((J)=>clearTimeout(J.timeout)),this.observedComponents.clear()}}var t0=function(J,Z){if(!Z)return J;return J.replace(/{(\w+)}/g,(W,X)=>{return Z[X]!==void 0?Z[X].toString():`{${X}}`})},Q5=(J,Z,W,X,q)=>{switch(J){case"plural":{if(typeof W==="string"){console.warn("Plural format value cannot be a string");return}if(X.count===void 0){console.warn("Plural format requires <count> parameter or use * by default.");let Y=W["*"];if(typeof Y==="object")Y=Y[q||"*"];return t0(Y,X)}if(typeof X.count==="string")X.count=Number(X.count);let H="*";if(X.count.toString()in W)H=X.count.toString();let B=W[H]||W["*"];if(typeof B==="object")B=B[q||"*"];return t0(B,X)}case"condition":{if(typeof W==="string"){console.warn("Condition format value cannot be a string");return}let H;for(let B in W)try{if(new Function("params",`with( params ){ return ${B}; }`)(X||{})){H=W[B];break}}catch(Y){console.warn(`Invalid <${Z}(${B})> condition expression`)}if(H===void 0)return;if(typeof H==="object")H=H[q||"*"];return t0(H,X)}case"variable":default:{const H=typeof W==="object"?W[q||"*"]:W;if(typeof H==="object"){console.warn(`Invalid <${Z}> variable variant definition`);return}return t0(H,X)}}};class e0{currentLang=window.navigator.language;DICTIONARIES={};set lang(J){if(this.currentLang===J)return;this.currentLang=J}get lang(){return this.currentLang}setDictionary(J,Z){this.DICTIONARIES[J]=Z}translate(J,Z){if(Z&&this.currentLang===Z)return{text:J,lang:this.currentLang};Z=Z||this.currentLang;const[W,X]=Z.split("-");if(this.DICTIONARIES[W]&&J in this.DICTIONARIES[W]){if(typeof this.DICTIONARIES[W][J]==="object"){const q=this.DICTIONARIES[W][J];J=q[X||"*"]||q["*"]}else if(typeof this.DICTIONARIES[W][J]==="string")J=this.DICTIONARIES[W][J]}return{text:J,lang:Z}}format(J,Z,W){W=W||this.currentLang;const[X,q]=W.split("-");if(!this.DICTIONARIES[X]){console.warn(`Undefined <${W}> format dictionary`);return}if(!this.DICTIONARIES[X][J]){console.warn(`Undefined <${W}[${J}]> format reference`);return}const H=this.DICTIONARIES[X][J];if(typeof H==="string"){console.warn(`Invalid <${W}[${J}]> format reference. Expected object`);return}if(typeof H!=="object"||H===null||Array.isArray(H)){console.warn(`Invalid <${W}[${J}]> format value`);return}return Q5(H.type,J,H.value,Z,q)}}var P5=S1(J1(),1);var Z1="comm",Q1="rule",W1="decl";var X5="@import";var q5="@namespace",z5="@keyframes";var B5="@layer";function H1(J){return J.trim()}function _0(J,Z,W){return J.replace(Z,W)}function G5(J,Z,W){return J.indexOf(Z,W)}function V0(J,Z){return J.charCodeAt(Z)|0}function C0(J,Z,W){return J.slice(Z,W)}function G0(J){return J.length}function X1(J){return J.length}function h0(J,Z){return Z.push(J),J}var b1=Math.abs,i0=String.fromCharCode;function z1(J,Z,W,X,q,H,B,Y){return{value:J,root:Z,parent:W,type:X,props:q,children:H,line:q1,column:f0,length:B,return:"",siblings:Y}}function w5(){return X0}function Y5(){if(X0=M0>0?V0(v0,--M0):0,f0--,X0===10)f0=1,q1--;return X0}function K0(){if(X0=M0<U5?V0(v0,M0++):0,f0++,X0===10)f0=1,q1++;return X0}function N0(){return V0(v0,M0)}function c0(){return M0}function B1(J,Z){return C0(v0,J,Z)}function y0(J){switch(J){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function M5(J){return q1=f0=1,U5=G0(v0=J),M0=0,[]}function K5(J){return v0="",J}function G1(J){return H1(B1(M0-1,x1(J===91?J+2:J===40?J+1:J)))}function j5(J){while(X0=N0())if(X0<33)K0();else break;return y0(J)>2||y0(X0)>3?"":" "}function O5(J,Z){while(--Z&&K0())if(X0<48||X0>102||X0>57&&X0<65||X0>70&&X0<97)break;return B1(J,c0()+(Z<6&&N0()==32&&K0()==32))}function x1(J){while(K0())switch(X0){case J:return M0;case 34:case 39:if(J!==34&&J!==39)x1(X0);break;case 40:if(J===41)x1(J);break;case 92:K0();break}return M0}function D5(J,Z){while(K0())if(J+X0===57)break;else if(J+X0===84&&N0()===47)break;return"/*"+B1(Z,M0-1)+"*"+i0(J===47?J:K0())}function L5(J){while(!y0(N0()))K0();return B1(J,M0)}var q1=1,f0=1,U5=0,M0=0,X0=0,v0="";function V5(J){return K5(U1("",null,null,null,[""],J=M5(J),0,[0],J))}function U1(J,Z,W,X,q,H,B,Y,G){var M=0,j=0,N=B,b=0,i=0,e=0,r=1,H0=1,t=1,J0=0,d="",h=q,u=H,v=X,T=d;while(H0)switch(e=J0,J0=K0()){case 40:if(e!=108&&V0(T,N-1)==58){if(G5(T+=_0(G1(J0),"&","&\f"),"&\f",b1(M?Y[M-1]:0))!=-1)t=-1;break}case 34:case 39:case 91:T+=G1(J0);break;case 9:case 10:case 13:case 32:T+=j5(e);break;case 92:T+=O5(c0()-1,7);continue;case 47:switch(N0()){case 42:case 47:if(h0(L8(D5(K0(),c0()),Z,W,G),G),(y0(e||1)==5||y0(N0()||1)==5)&&G0(T)&&C0(T,-1,void 0)!==" ")T+=" ";break;default:T+="/"}break;case 123*r:Y[M++]=G0(T)*t;case 125*r:case 59:case 0:switch(J0){case 0:case 125:H0=0;case 59+j:if(t==-1)T=_0(T,/\f/g,"");if(i>0&&(G0(T)-N||r===0&&e===47))h0(i>32?I5(T+";",X,W,N-1,G):I5(_0(T," ","")+";",X,W,N-2,G),G);break;case 59:T+=";";default:if(h0(v=F5(T,Z,W,M,j,q,Y,d,h=[],u=[],N,H),H),J0===123)if(j===0)U1(T,Z,v,v,h,H,N,Y,u);else{switch(b){case 99:if(V0(T,3)===110)break;case 108:if(V0(T,2)===97)break;default:j=0;case 100:case 109:case 115:}if(j)U1(J,v,v,X&&h0(F5(J,v,v,0,0,q,Y,d,q,h=[],N,u),u),q,u,N,Y,X?h:u);else U1(T,v,v,v,[""],u,0,Y,u)}}M=j=i=0,r=t=1,d=T="",N=B;break;case 58:N=1+G0(T),i=e;default:if(r<1){if(J0==123)--r;else if(J0==125&&r++==0&&Y5()==125)continue}switch(T+=i0(J0),J0*r){case 38:t=j>0?1:(T+="\f",-1);break;case 44:Y[M++]=(G0(T)-1)*t,t=1;break;case 64:if(N0()===45)T+=G1(K0());b=N0(),j=N=G0(d=T+=L5(c0())),J0++;break;case 45:if(e===45&&G0(T)==2)r=0}}return H}function F5(J,Z,W,X,q,H,B,Y,G,M,j,N){var b=q-1,i=q===0?H:[""],e=X1(i);for(var r=0,H0=0,t=0;r<X;++r)for(var J0=0,d=C0(J,b+1,b=b1(H0=B[r])),h=J;J0<e;++J0)if(h=H1(H0>0?i[J0]+" "+d:_0(d,/&\f/g,i[J0])))G[t++]=h;return z1(J,Z,W,q===0?Q1:Y,G,M,j,N)}function L8(J,Z,W,X){return z1(J,Z,W,Z1,i0(w5()),C0(J,2,-2),0,X)}function I5(J,Z,W,X,q){return z1(J,Z,W,W1,C0(J,0,X),C0(J,X+1,-1),X,q)}function w1(J,Z){var W="";for(var X=0;X<J.length;X++)W+=Z(J[X],X,J,Z)||"";return W}function C5(J,Z,W,X){switch(J.type){case B5:if(J.children.length)break;case X5:case q5:case W1:return J.return=J.return||J.value;case Z1:return"";case z5:return J.return=J.value+"{"+w1(J.children,X)+"}";case Q1:if(!G0(J.value=J.props.join(",")))return""}return G0(W=w1(J.children,X))?J.return=J.value+"{"+W+"}":""}function N5(J){var Z=X1(J);return function(W,X,q,H){var B="";for(var Y=0;Y<Z;Y++)B+=J[Y](W,X,q,H)||"";return B}}class u0{nsp;settings;$head;constructor(J,Z){if(typeof J!=="string")throw new Error("Undefined or invalid styles attachement element(s) namespace");this.nsp=J,this.$head=P5.default("head"),this.settings=Z||{},this.settings&&this.load(this.settings)}compile(J){try{return w1(V5(J),N5([C5]))}catch(Z){throw new Error(`Style compilation failed: ${Z.message}`)}}waitForStyles(J){return new Promise((Z)=>{const W=new MutationObserver(()=>{const X=document.querySelector(J);if(X&&getComputedStyle(X).cssText)W.disconnect(),Z()});W.observe(document.documentElement,{attributes:!0,childList:!0,subtree:!0})})}async inject(J){if(!J)throw new Error("Invalid injection arguments");const Z=`rel="${this.settings.meta?"@":""}${this.nsp}"`;J=this.settings.meta?J:`[rel="${this.nsp}"] { ${J} }`;try{const W=this.compile(J);if(!W)throw new Error(`<component:${this.nsp}> sheet compilation failed`);const X=document.createElement("style");X.setAttribute("rel",`${this.settings.meta?"@":""}${this.nsp}`),X.textContent=W;let q=0;const H=this.$head.find(`style[${Z}]`);if(H.length)q=parseInt(H.attr("dindex"))+1,H.remove();return X.setAttribute("dindex",String(q)),this.settings.meta?document.head.prepend(X):document.head.appendChild(X),X}catch(W){throw new Error(`Style injection failed: ${W.message}`)}}async load(J){if(this.settings=J,typeof this.settings!=="object")throw new Error("Undefined styles settings");if(this.settings.sheet){const Z=await this.inject(this.settings.sheet);await this.waitForStyles(`style[rel="${this.settings.meta?"@":""}${this.nsp}"]`)}}get(){}async clear(){const J=this.$head.find(`style[rel="${this.settings.meta?"@":""}${this.nsp}"]`);if(!J.length)return;const Z=parseInt(J.attr("dindex"));Z===0?J.remove():J.attr("dindex",String(Z-1))}async custom(){return{}}async style(){return{}}}class Y1{pending=new Map;isPending=!1;component;metrics={batchCount:0,updatesProcessed:0,lastBatchSize:0,avgBatchSize:"0.00"};constructor(J){this.component=J}queue(J){const Z=J.priority??2;if(!this.pending.has(Z))this.pending.set(Z,new Set);if(this.pending.get(Z)?.add(J),this.component.metrics.inc("dependencyUpdateCount"),!this.isPending)this.isPending=!0,this.scheduleProcessing()}apply({dep:J,deppath:Z},W="batch-updator"){try{const X=this.component.FGUD.get(J)?.get(Z);if(!X){console.warn(`[batch update]: <${Z}> dependency not found`);return}if(X.garbage){this.component.FGUD.get(J)?.delete(Z),!this.component.FGUD.get(J)?.size&&this.component.FGUD.delete(J);return}const q=this.component.FGUDMemory.get(X.nodepath);if(!q)return;const H=X.update(q.memo||{},W);if(H){if(typeof H.memo==="object")q.memo=H.memo;typeof H.cleanup==="function"&&H.cleanup()}}catch(X){console.error("Failed to update dependency --",X)}}scheduleProcessing(){Promise.resolve().then(()=>this.processQueue())}processQueue(){const J=new Map;this.pending.forEach((X,q)=>J.set(q,new Set(X))),this.pending.clear(),this.isPending=!1;const Z=(X)=>{const q=Array.from(X);this.component.metrics.trackBatch(q.length),this.metrics.batchCount++,this.metrics.lastBatchSize=q.length,this.metrics.updatesProcessed+=q.length,this.metrics.avgBatchSize=(this.metrics.updatesProcessed/this.metrics.batchCount).toFixed(2),q.forEach((H)=>this.apply(H))},W=Array.from(J.keys()).sort((X,q)=>X-q);for(let X of W){const q=J.get(X);q&&q.size&&Z(q)}if(this.pending.size>0&&!this.isPending)this.isPending=!0,this.scheduleProcessing()}getMetrics(){return{batchCount:this.metrics.batchCount,lastBatchSize:this.metrics.lastBatchSize,avgBatchSize:this.metrics.avgBatchSize,totalUpdates:this.metrics.updatesProcessed}}}class M1{options={emit:!0};__events={};__once_events={};constructor(J){if(J)this.options=J}on(J,Z){if(!Array.isArray(this.__events[J]))this.__events[J]=[];return this.__events[J].push(Z),this}once(J,Z){if(!Array.isArray(this.__once_events[J]))this.__once_events[J]=[];return this.__once_events[J].push(Z),this}off(J){return delete this.__events[J],delete this.__once_events[J],this}emit(J,...Z){if(!this.options.emit)return;const W=(q)=>{if(typeof q.toJSON==="function")return q.toJSON();if(Array.isArray(q))return q.map(W);if(typeof q==="object")for(let H in q)q[H]=W(q[H]);return q},X=Z.map(W);this.__events[J]?.forEach((q)=>q(...X)),this.__once_events[J]?.forEach((q)=>q(...X)),delete this.__once_events[J]}}var g1=S1(J1(),1);function B0(J,Z){if(J===Z)return!1;if(typeof J!=="object"||typeof Z!=="object")return!1;if(J===null||Z===null)return!0;if(J instanceof Set){if(!(Z instanceof Set))return!0;if(J.size!==Z.size)return!0;if($5(J)&&$5(Z)){for(let B of J)if(!Z.has(B))return!0;return!1}const H=new WeakMap;for(let B of J){let Y=!1;if(typeof B!=="object"){if(Z.has(B))Y=!0}else for(let G of Z){if(typeof G!=="object")continue;if(!H.has(B))H.set(B,new WeakMap);const M=H.get(B);if(M.has(G)){if(Y=M.get(G),Y)break;continue}const j=!B0(B,G);if(M.set(G,j),j){Y=!0;break}}if(!Y)return!0}return!1}if(J instanceof Map){if(!(Z instanceof Map))return!0;if(J.size!==Z.size)return!0;if(R5(J)&&R5(Z)){for(let[B,Y]of J)if(Z.get(B)!==Y)return!0;return!1}const H=new WeakMap;for(let[B,Y]of J){if(typeof B!=="object"){if(!Z.has(B))return!0;const j=Z.get(B);if(typeof Y!=="object"){if(Y!==j)return!0;continue}if(typeof j!=="object"||B0(Y,j))return!0;continue}let G=!1,M=!1;for(let[j,N]of Z){if(typeof j!=="object")continue;if(!H.has(B))H.set(B,new WeakMap);const b=H.get(B);if(b.has(j)){const[i,e]=b.get(j);if(i){G=!0,M=e;break}continue}if(!B0(B,j)){if(G=!0,M=typeof Y==="object"&&typeof N==="object"?!B0(Y,N):Y===N,b.set(j,[!0,M]),M)break}else b.set(j,[!1,!1])}if(!G||!M)return!0}return!1}if(Array.isArray(J)){if(!Array.isArray(Z))return!0;if(J.length!==Z.length)return!0;for(let H=0;H<J.length;H++){const B=J[H],Y=Z[H];if(B!==Y&&(typeof B!=="object"||B0(B,Y)))return!0}return!1}const W=Object.keys(J),X=Object.keys(Z);if(W.length!==X.length)return!0;W.sort(),X.sort();const q=W.length;for(let H=0;H<q;H++)if(W[H]!==X[H])return!0;for(let H=0;H<q;H++){const B=W[H],Y=J[B],G=Z[B];if(Y===G)continue;if(Y instanceof Date){if(!(G instanceof Date)||String(Y)!==String(G))return!0;continue}if(Y instanceof RegExp){if(!(G instanceof RegExp)||Y.source!==G.source||Y.flags!==G.flags)return!0;continue}if(Y instanceof Map){if(!(G instanceof Map)||B0(Y,G))return!0;continue}if(Y instanceof Set){if(!(G instanceof Set)||B0(Y,G))return!0;continue}if(Y instanceof Function){if(!(G instanceof Function))return!0;continue}if(typeof Y==="object"){if(typeof G!=="object")return!0;if(Y===J){if(G!==Z)return!0}else if(B0(Y,G))return!0}else return!0}return!1}function P0(J,Z){if(J===Z)return!0;if(J==null||Z==null)return J===Z;const W=typeof J;if(W!==typeof Z)return!1;if(W!=="object"){if(W==="number"&&isNaN(J)&&isNaN(Z))return!0;return!1}if(J instanceof Date)return Z instanceof Date&&J.getTime()===Z.getTime();if(J instanceof RegExp)return Z instanceof RegExp&&J.source===Z.source&&J.flags===Z.flags;if(J instanceof Error)return Z instanceof Error&&J.name===Z.name&&J.message===Z.message&&(J.stack===Z.stack||!J.stack&&!Z.stack);if(typeof ArrayBuffer!=="undefined"&&ArrayBuffer.isView(J)){if(!ArrayBuffer.isView(Z))return!1;if(J.byteLength!==Z.byteLength)return!1;const Y=new Uint8Array(J.buffer,J.byteOffset,J.byteLength),G=new Uint8Array(Z.buffer,Z.byteOffset,Z.byteLength);for(let M=0;M<Y.length;M++)if(Y[M]!==G[M])return!1;return!0}if(J instanceof Promise||J instanceof WeakMap||J instanceof WeakSet)return J===Z;if(typeof J==="function"){if(typeof Z!=="function")return!1;return J.toString()===Z.toString()&&J.name===Z.name}if(J.constructor!==Z.constructor)return!1;if(J instanceof Map||J instanceof Set||Array.isArray(J)||Object.getPrototypeOf(J)===Object.prototype)return!B0(J,Z);const q=Object.getPrototypeOf(J);if(q!==Object.getPrototypeOf(Z))return!1;const H=Object.getOwnPropertyNames(J),B=Object.getOwnPropertyNames(Z);if(H.length!==B.length)return!1;for(let Y of H){if(!Object.prototype.hasOwnProperty.call(Z,Y))return!1;if(!P0(J[Y],Z[Y]))return!1}if(q!==null&&q!==Object.prototype){const Y=Object.getOwnPropertyNames(q),G=Object.getOwnPropertyNames(Object.getPrototypeOf(Z));if(Y.length!==G.length)return!1;for(let M of Y){if(M==="constructor")continue;if(!P0(q[M],Object.getPrototypeOf(Z)[M]))return!1}}return!0}function $5(J){for(let Z of J)if(typeof Z==="object"&&Z!==null)return!1;return!0}function R5(J){for(let[Z,W]of J)if(typeof Z==="object"&&Z!==null||typeof W==="object"&&W!==null)return!1;return!0}function W0(J,Z=new WeakMap){if(J===null||typeof J!=="object"||J instanceof Promise)return J;if(Z.has(J))return Z.get(J);if(J instanceof Date)return new Date(J.getTime());if(J instanceof RegExp)return new RegExp(J.source,J.flags);if(J instanceof Map){const q=new Map;return Z.set(J,q),J.forEach((H,B)=>q.set(W0(B,Z),W0(H,Z))),q}if(J instanceof Set){const q=new Set;return Z.set(J,q),J.forEach((H)=>q.add(W0(H,Z))),q}if(Array.isArray(J)){const q=[];Z.set(J,q);for(let H=0;H<J.length;H++)q[H]=W0(J[H],Z);return q}if(ArrayBuffer.isView(J))return new J.constructor(J);const W=Object.create(Object.getPrototypeOf(J));Z.set(J,W);const X=Object.getOwnPropertySymbols(J);for(let q of X)W[q]=W0(J[q],Z);for(let q in J)if(Object.prototype.hasOwnProperty.call(J,q))W[q]=W0(J[q],Z);return W}function k5(J,Z){if(!J||typeof J!=="object")throw new TypeError("Original argument must be an object");if(!Z||typeof Z!=="object")throw new TypeError("ToSet argument must be an object");if(!Object.keys(Z).length)return{...J};function W(q,H,B){const Y=H.split(/\.|\[|\]/).filter(Boolean);let G=q;for(let M=0;M<Y.length;M++){const j=Y[M],N=!isNaN(Number(j)),b=M===Y.length-1,i=!isNaN(Number(Y[M+1]));if(b){G[j]=B;continue}if(!(j in G))G[j]=i?[]:{};else if(i&&!Array.isArray(G[j]))G[j]=[];else if(!i&&Array.isArray(G[j]))G[j]={};G=G[j]}}const X=W0(J);try{for(let[q,H]of Object.entries(Z)){if(typeof q!=="string")throw new TypeError(`Invalid path: ${q}`);if(!/^[a-zA-Z0-9_\-\[\].]+$/.test(q))throw new Error(`Invalid path format: ${q}`);W(X,q,H)}}catch(q){throw new Error(`Failed to assign value: ${q.message}`)}return X}function _5(J){return JSON.parse(JSON.stringify(J))}var T0="i18n",$0="syn:",D0="fn:",S0="on-",Y0=/^\.\.\./,K1=/^\[(.*?)\]$/,k1=/{\s*([^{}]+)\s*}/g,E5=["@html","@text","@format"],T5=["display","visibility","position","width","height"],j1=":r",A5=":n",S5="m",b5="c",x5="x",g5=100;g1.default.fn.extend({attrs:function(){const J={},Z=this[0];return Z&&Z.nodeType!==Node.TEXT_NODE&&g1.default.each(Z.attributes,function(){J[this.name]=this.value}),J}});class O1{debug;initialStats={renderCount:0,elementCount:0,renderTime:0,avgRenderTime:0,maxRenderTime:0,componentCount:0,componentUpdateCount:0,partialCount:0,partialUpdateCount:0,memoryUsage:void 0,domOperations:0,domInsertsCount:0,domUpdatesCount:0,domRemovalsCount:0,i18nTrackCount:0,i18nUpdateCount:0,dependencyTrackCount:0,dependencyUpdateCount:0,batchSize:0,batchCount:0,errorCount:0};stats=this.reset();renderStartTime=0;renderTimes=[];measurementCount=0;maxMeasurements=100;loggingInterval=10;autoSaveInterval;constructor(J=!1){if(this.debug=J,this.debug)this.autoSaveInterval=window.setInterval(()=>this.storeMetrics(),5000)}storeMetrics(){try{const J=JSON.parse(localStorage.getItem("lipsPerformanceMetrics")||"[]");J.push({timestamp:Date.now(),metrics:{...this.stats}}),J.length>100&&J.shift(),localStorage.setItem("lipsPerformanceMetrics",JSON.stringify(J))}catch(J){}}startRender(){if(!this.debug)return;this.renderStartTime=performance.now()}endRender(){if(!this.debug||this.renderStartTime===0)return;const J=performance.now()-this.renderStartTime;this.stats.renderTime=J,this.stats.maxRenderTime=Math.max(this.stats.maxRenderTime,J),this.renderTimes.push(J),this.renderTimes.length>this.maxMeasurements&&this.renderTimes.shift(),this.stats.avgRenderTime=this.renderTimes.reduce((Z,W)=>Z+W,0)/this.renderTimes.length,this.renderStartTime=0,this.measurementCount++}inc(J){if(!this.debug)return;if(typeof this.stats[J]==="number")this.stats[J]++}dec(J){if(!this.debug)return;if(typeof this.stats[J]==="number"&&this.stats[J]>0)this.stats[J]--}record(J,Z){if(!this.debug)return;if(typeof this.stats[J]!=="undefined")this.stats[J]=Z}add(J,Z){if(!this.debug)return;if(typeof this.stats[J]==="number")this.stats[J]+=Z}reset(){return this.renderTimes=[],this.measurementCount=0,this.stats=W0(this.initialStats)}log(){if(!this.debug)return;if(this.loggingInterval>1&&this.measurementCount%this.loggingInterval!==0)return;const J={"Render Count":this.stats.renderCount,"Element Count":this.stats.elementCount,"Avg Render Time (ms)":this.stats.avgRenderTime.toFixed(2),"Max Render Time (ms)":this.stats.maxRenderTime.toFixed(2)},Z={"Component Count":this.stats.componentCount,"Component Updates":this.stats.componentUpdateCount},W={"Partial Count":this.stats.partialCount,"Partial Updates":this.stats.partialUpdateCount},X={"DOM Operations":this.stats.domOperations,"DOM Inserts":this.stats.domInsertsCount,"DOM Updates":this.stats.domUpdatesCount,"DOM Removals":this.stats.domRemovalsCount},q={"i18n Tracked":this.stats.i18nTrackCount,"i18n Updates":this.stats.i18nUpdateCount},H={"Dependencies Tracked":this.stats.dependencyTrackCount,"Dependency Updates":this.stats.dependencyUpdateCount},B={"Batch Count":this.stats.batchCount,"Avg Batch Size":this.stats.batchCount>0?(this.stats.batchSize/this.stats.batchCount).toFixed(2):"0"};console.group("Lips Framework Performance Metrics"),console.table(J),console.table(Z),console.table(W),console.table(X),console.table(q),console.table(H),console.table(B),this.stats.memoryUsage&&console.log(`Memory Usage: ${this.stats.memoryUsage.toFixed(2)} MB`),this.stats.errorCount>0&&console.warn(`Errors encountered: ${this.stats.errorCount}`),console.groupEnd(),window.localStorage&&this.measurementCount%10===0&&this.storeMetrics()}trackMemory(){if(!this.debug||!window.performance?.memory)return;this.stats.memoryUsage=window.performance.memory.usedJSHeapSize/1048576}trackBatch(J){if(!this.debug)return;this.stats.batchCount++,this.stats.batchSize+=J}trackError(J){if(!this.debug)return;this.stats.errorCount++,console.error("Lips Framework Error:",J)}setLoggingInterval(J){if(!this.debug)return;this.loggingInterval=J}getSnapshot(){return W0(this.stats)}dispose(){if(!this.debug)return;this.autoSaveInterval&&clearInterval(this.autoSaveInterval)}}var Z0=S1(J1(),1);var F8=function(J){const Z=/on-([a-zA-Z-]+)\s*\(/g;let W=J,X;while((X=Z.exec(J))!==null){const q=X[1],H=X.index+X[0].length;let B=1,Y=H;while(Y<J.length&&B>0){if(J[Y]==="(")B++;if(J[Y]===")")B--;Y++}if(B===0){const G=J.slice(H,Y-1).trim(),M=J.slice(0,X.index),j=`${S0}${q}="${G}"`,N=J.slice(Y);W=M+j+N,J=W,Z.lastIndex=M.length+j.length}}return W},I8=function(J){const Z=[];let X=J.replace(/<([a-zA-Z][a-zA-Z0-9_-]*)((?:[^>'"]*|'[^']*'|"[^"]*")*?)(?:\/?>)/g,(q,H,B)=>{return Z.push(B),`<${H}##TAG_ATTRS_${Z.length-1}##>`});for(let q=0;q<Z.length;q++){const H=`##TAG_ATTRS_${q}##`,B=Z[q],Y=V8(B);X=X.replace(H,Y)}return X},V8=function(J){let Z="",W=0,X=!1,q="",H=0,B=0,Y=0;while(W<J.length){const G=J[W];if((G==='"'||G==="'")&&(W===0||J[W-1]!=="\\")){if(!X)X=!0,q=G;else if(G===q)X=!1}if(!X){if(G==="(")B++;else if(G===")")B--;else if(G==="{")Y++;else if(G==="}")Y--}if(!X&&B===0&&Y===0&&(G===" "||W===J.length-1)){let M=W;if(W===J.length-1)M=W+1;const j=J.substring(H,M).trim();if(j){const N=C8(j);Z+=" "+N}H=W+1}W++}return Z},C8=function(J){const Z=J.indexOf("=");if(Z===-1){if(J===T0||J.startsWith("...")||J.startsWith("["))return J;return`:${J}="${!J.startsWith("!")}"`}let W=J.substring(0,Z).trim(),X=J.substring(Z+1).trim();if(W.startsWith("@"))return W=!E5.includes(W)?W.slice(1):W,`:${W}=${X}`;if(W.startsWith(D0)||W.startsWith(S0))return J;if(X.startsWith('"')&&X.endsWith('"')||X.startsWith("'")&&X.endsWith("'")){const q=X.substring(1,X.length-1);if(N8(q))return`:${W}="${q}"`;return J}else return`:${W}="${X}"`};function N8(J){if(/\bstate\.|\binput\.|\bself\.|\bcontext\./.test(J))return!0;if(/[\+\*\/\%\(\)\{\}\[\]]|\?\s*:/.test(J))return!0;if(/\b[a-zA-Z_][a-zA-Z0-9_]*\.[a-zA-Z_]/.test(J))return!0;if(J.includes("{")&&J.includes("}"))return!0;return!1}function _1(J){let Z=(J||"").trim().replace(/>\s*</g,"><").replace(/\s{2,}/g," ").replace(/[\r\n\t]/g,"").replace(/<([a-zA-Z0-9_-]+)([^>]*?)\s*\/>/g,"<$1$2></$1>").replace(/<\{([^}]+)\}\s*(.*?)(\/)>/g,(W,X,q)=>{return q.endsWith("<")?`<lips dtag="${X}" ${q}/lips>`:`<lips dtag="${X}" ${q}></lips>`}).replace(/(<>)([\s\S]*?)(<\/>)/g,'<lips fragment="true">$2</lips>').replace(/<if\(\s*(.*?)\s*\)>/g,'<if @by="$1">').replace(/<else-if\(\s*(.*?)\s*\)>/g,'<else-if @by="$1">').replace(/<switch\(\s*(.*?)\s*\)>/g,'<switch @by="$1">').replace(/<async await\(\s*(.*?)\s*\)>/g,`<async ${D0}await="\$1">`).replace(/<log\(\s*(.*?)\s*\)>/g,'<log @args="$1">').replace(/\[(.*?)\]/g,(W)=>W.replace(/\s+/g,""));return Z=F8(Z),Z=I8(Z),Z}var P8=function(J,Z){if(J.isDisposed)return;Z.add(J),J.dependencies.add(Z)},f5=function(J){for(let Z of J.dependencies)Z.delete(J);J.dependencies.clear()};function b0(J,Z={maxSize:100}){const W=new Set,X=[{value:J,timestamp:Date.now()}];let q=0;const H=()=>{const M=D1[D1.length-1];return M&&P8(M,W),X[q].value},B=()=>{const M=[...W];if(h5)for(let j of M)h5.add(j);else for(let j of M)j.execute()};return[H,(M,j)=>{if(Object.is(X[q].value,M))return;if(q<X.length-1)X.splice(q+1);if(X.push({value:M,timestamp:Date.now(),metadata:j}),X.length>Z.maxSize)X.shift(),q=Math.max(0,q-1);else q++;B()},{undo(){if(q>0)q--,B()},redo(){if(q<X.length-1)q++,B()},jumpTo(M){if(M>=0&&M<X.length&&M!==q)q=M,B()},getHistory(){return[...X]},getCurrentIndex(){return q},canUndo(){return q>0},canRedo(){return q<X.length-1},clear(){const M=X[0];X.length=0,X.push(M),q=0,B()}}]}function p0(J){let Z=!1;const W=()=>{if(Z)throw new Error("Circular dependency detected");if(X.isDisposed)return;Z=!0,f5(X),D1.push(X);try{J()}finally{Z=!1,D1.pop()}},X={execute:W,dependencies:new Set,isDisposed:!1};return W(),{dispose:()=>{X.isDisposed=!0,f5(X)}}}var D1=[],h5=null;class x0 extends M1{declaration;$=null;input;state;static;context;__name__;__path__;__lang__;__template__;__previous;__macros=new Map;__i18nDeps=new Map;FGUD=new Map;FGUDMemory=new Map;PCC=new Map;VER=[];prepath="0";debug=!1;isRendered=!1;__setInput;__setState;__getState;UQS;ICE;lips;metrics;stylesheet;__inpath__="";__inpathCounter__=0;__renderDepth__=0;__boundaries__;constructor(J,Z,{input:W,state:X,context:q,_static:H,handler:B,stylesheet:Y,macros:G,declaration:M},j){super();if(this.lips=j.lips,j?.debug)this.debug=j.debug||this.lips.debug;if(j?.prepath)this.prepath=j.prepath;if(this.__name__=J,this.__lang__=this.lips.i18n.lang,this.__path__=this.__inpath__=`${this.prepath}:${this.__name__}`,this.__template__=_1(Z),this.__boundaries__=j.boundaries,this.declaration=M||{name:J},this.input=W||{},this.static=H||{},this.context={},this.state=this.lips.IUC.proxyState(this.__path__,X||{}),G&&this.setMacros(G),B&&this.setHandler(B),Y&&this.setStylesheet(Y),this.metrics=new O1(this.debug),this.metrics.inc("componentCount"),this.UQS=new Y1(this),typeof this.onCreate=="function"&&this.onCreate.bind(this)(),this.emit("component:create"),this.input&&Object.keys(this.input).length&&typeof this.onInput=="function")this.onInput.bind(this)(),this.emit("component:input");this.__previous={state:W0(this.state),input:W0(this.input),context:W0(this.context)};const[N,b]=b0(this.input),[i,e]=b0(this.state),[r,H0]=b0(this.context);this.__setInput=b,this.__setState=e,this.__getState=i,this.lips.IUC.register(this.__path__,()=>{B0(this.__previous?.state,this.state)&&this.__setState({...this.__getState(),...this.state})}),Array.isArray(q)&&q.length&&this.lips.useContext(q,(t)=>{if(!B0(this.context,t))return;H0(t),this.context=t,typeof this.onContext=="function"&&this.onContext.bind(this)(),this.emit("component:context")}),this.lips.useTranslator("*",(t)=>{if(t===this.__lang__)return;this.__updateI18nDepNodes__(),this.__lang__=t}),this.ICE=p0(()=>{const t=i(),J0=this.input=N(),d=this.context=r();if(!this.isRendered){if(this.metrics.reset(),!this.__template__.length||M?.syntax&&typeof this.onSelfRender=="function"){const h=this.onSelfRender.bind(this)(this.input);if(!this.__boundaries__?.start||!this.__boundaries__?.end)throw new Error(`Undefined <${this.__name__} syntax component boundaries`);this.$=h||Z0.default()}else{const{$log:h}=this.render("",void 0,void 0,this.FGUD);this.$=h}!M?.syntax&&this.$?.each((h,u)=>{typeof u.setAttribute=="function"&&u.setAttribute("rel",this.__name__)}),this.isRendered=!0,typeof this.onMount=="function"&&this.onMount.bind(this)(),this.emit("component:mount"),this.lips.watcher.watch(this)}else this.__updateDepNodes__(),typeof this.onUpdate=="function"&&this.onUpdate.bind(this)(),this.emit("component:update"),this.__previous={input:W0(J0),state:W0(t),context:W0(d)};typeof this.onRender=="function"&&this.onRender.bind(this)(),this.emit("component:render")})}setContext(J,Z){this.lips.setContext(J,Z)}setInput(J,Z){if(!B0(this.input,J))return;this.__setInput(J),typeof this.onInput=="function"&&this.onInput.bind(this)(this.declaration.syntax?Z:void 0)}subInput(J,Z){if(typeof J!=="object")throw new Error("Invalid sub input data argument");return this.setInput(k5(this.input,J),this.declaration.syntax?Z:void 0),this}setMacros(J){const Z=_1(J),W=Z0.default(Z);if(!W.length)return;const X=this;W.each(function(){const q=Z0.default(this),{argv:H,attrs:B}=X.__getAttributes__(q);if(!Object.keys(B))throw new Error("Invalid macro component definition");if(!B.literals.name)throw new Error("Undefined macro `name` attribute.");if(X.__macros.get(B.literals.name))console.warn(`Duplicate macro <${B.literals.name}> will be override`);if(!q.contents()?.length)throw new Error("Invalid macro component definition. Template content expected.");X.__macros.set(B.literals.name,{argv:H,$node:q})})}setHandler(J){Object.entries(J).map(([Z,W])=>this[Z]=W?.bind(this))}setStylesheet(J){const Z={sheet:J,meta:this.__name__==="__ROOT__"};this.stylesheet=new u0(this.__name__,Z)}get node(){if(!this.isRendered)throw new Error("node() is expected to be call after component get rendered");return this.$}get boundaries(){return this.__boundaries__}render(J,Z,W={},X,q){if(Z&&!Z.length)return console.warn("Undefined node element to render"),{$log:Z,dependencies:X||new Map};const H=this,B=X||new Map,Y=[];this.metrics.startRender();let G=Z0.default();function M(){return W0(W)}function j(w,O=!1){const D=N(w,O);return H.__inpathCounter__++,H.__inpath__?`${H.__inpath__}/${D}`:`${J?J+"/":""}${D}`}function N(w,O=!1){let D="";switch(w){case"component":D=O?x5:b5;break;case"macro":D=S5;break}return D+H.__inpathCounter__}function b(w){return w!==null&&typeof w==="object"&&typeof w.mesh==="function"&&typeof w.update==="function"}function i(w){return w!==null&&typeof w==="object"&&typeof w.default&&typeof w.default==="string"}function e(w){if(!w.attr(":dtag")||w.prop("tagName")!=="LIPS")throw new Error("Invalid dynamic tag name");const O=w.attr(":dtag"),D=H.__evaluate__(O,W);if(b(D)||D===null)return J0(w,O,D);else if(i(D))return d(w,{template:D});else return d(w,{name:D})}function r(w){const O=w.attr(":args"),D=j("log");if(!O)return;const P=M();if(H.__evaluate__(`console.log(${O})`,P),H.__isReactive__(O,P))H.__extractExpressionDeps__(O,P).forEach((V)=>H.__trackDep__(B,V,P,{nodetype:"log",nodepath:D,target:"argument",$fragment:null,update:(S)=>H.__evaluate__(`console.log(${O})`,S),syntax:!0}))}function H0(w){const O=j("var"),{attrs:D}=H.__getAttributes__(w);if(!D)return;Object.entries(D.literals).forEach(([P,F])=>{if(W[P]&&W[P].type==="const")throw new Error(`Cannot override <const ${P}=[value]/> variable`);W[P]={value:F,type:"let"}}),Object.entries(D.expressions).forEach(([P,F])=>{if(W[P]&&W[P].type==="const")throw new Error(`Cannot override <const ${P}=[value]/> variable`);if(W[P]={value:H.__evaluate__(F,W),type:"let"},H.__isReactive__(F,W)){const V=H.__extractExpressionDeps__(F,W),S=(m,c)=>{if(m[P]&&m[P].type==="const")throw new Error(`Cannot override <const ${P}=[value]/> variable`);if(D.map.beforeSpreadAttrs.includes(P))return;const f=H.__evaluate__(F,m);if(P0(m[P].value,f))return;return m[P]={value:f,type:"let"},H.__updateVarDepNodes__(P,O,m),_5({memo:m})};V.forEach((m)=>H.__trackDep__(B,m,M(),{nodetype:"let",nodepath:O,deppath:`${O}.${P}`,target:"attr",$fragment:null,update:S,syntax:!0}))}}),H.metrics.inc("elementCount")}function t(w){const{attrs:O}=H.__getAttributes__(w);if(!O)return;Object.entries(O.literals).forEach(([D,P])=>{if(W[D]&&W[D].type==="const")throw new Error(`<const ${D}=[value]/> variable already defined`);if(!P)return;W[D]={value:P,type:"const"}}),Object.entries(O.expressions).forEach(([D,P])=>{if(W[D]&&W[D].type==="const")throw new Error(`<const ${D}=[value]/> variable already defined`);if(!P)return;W[D]={value:H.__evaluate__(P,W),type:"const"}}),H.metrics.inc("elementCount")}function J0(w,O,D){const{attrs:P}=H.__getAttributes__(w),F=j("element"),V=H.__getBoundaries__(F),S={},m={};let c=M(),f=Z0.default(V.start),A={},$=D;if($){P.literals&&Object.entries(P.literals).forEach(([R,_])=>{S[R]=_,A[R]={type:"arg",value:_}}),P.expressions&&Object.entries(P.expressions).forEach(([R,_])=>{if(!$)return;if(Y0.test(R))H.__evaluateSpreadAttr__(R,{memo:c,get keystore(){return m[R]},set keystore(L){if(!m[R])m[R]=[];m[R]=L},each:(L,g)=>{if(S[L]=g,L!=="#"&&!$?.argv.includes(L))return;A[L]={type:"arg",value:g}}});else{const L=_?H.__evaluate__(_,c):!0;if(S[R]=L,R!=="#"&&!$.argv.includes(R))return;A[R]={type:"arg",value:L}}}),c.__arguments__=S;const k=$.mesh(A);if(k&&k.length)f=f.add(k);P.expressions&&Object.entries(P.expressions).forEach(([R,_])=>{if(!$)return;if(Y0.test(R)&&H.__isReactive__(R,c)){const L=H.__extractExpressionDeps__(R,c),g=(I,x)=>{if(!$)return;const a={};let n=[];if(H.__evaluateSpreadAttr__(R,{memo:I,get keystore(){return m[R]},set keystore(p){if(!m[R])m[R]=[];m[R]=p},each:(p,s)=>{if(P.map.afterSpreadAttrs.includes(p))return;if(p!=="#"&&!$?.argv.includes(p))return;if(P0(s,I[p]?.value))return;A[p]=a[p]={value:s,type:"arg"},S[p]=s,n.push(p)},nullify:(p)=>{p.forEach((s)=>{a[s]={value:void 0,type:"arg"},delete S[s]}),n=p}}),n.length)$.argv.length&&H.__updateArgumentsDepNodes__(F,S),$.update(n,a,I,V)};L.forEach((I)=>H.__trackDep__(B,I,c,{nodetype:"dynamic",nodepath:F,deppath:`${F}.${R}`,target:"spread-attr",$fragment:null,boundaries:V,update:g}))}else if((R==="#"||$.argv.includes(R))&&H.__isReactive__(_,c)){const L=H.__extractExpressionDeps__(_,c),g=(I,x)=>{if(!$)return;if(P.map.beforeSpreadAttrs.includes(R))return;const a=_?H.__evaluate__(_,I):!0,n={type:"arg",value:a};if(A[R]=n,$.argv.length)S[R]=a,H.__updateArgumentsDepNodes__(F,S);$.update([R],{[R]:n},I,V)};L.forEach((I)=>H.__trackDep__(B,I,c,{nodetype:"dynamic",nodepath:F,deppath:`${F}.${R}`,target:"attr",$fragment:null,boundaries:V,update:g}))}})}if(H.__isReactive__(O,c)){const k=(_,L)=>{const g=H.__evaluate__(O,_);let I;if(i(g))I=d(w,{template:g}),H.__fillBoundaries__(I,V);else if(b(g)){if("#"in A)A=A["#"].value;else Object.entries(A).forEach(([x,a])=>{if(typeof a==="function")return;S[x]=a.value});if($?.cleanup(V),$=g,$)$.argv.length&&H.__updateArgumentsDepNodes__(F,S),I=$.mesh(A),I?.length&&$.fill(I,V)}else if($)$.cleanup(V),$=null};H.__extractExpressionDeps__(O,c).forEach((_)=>H.__trackDep__(B,_,{...c,...A},{nodetype:"dynamic",nodepath:F,deppath:`${F}.dtag`,target:"dtag",$fragment:null,boundaries:V,update:k}))}return f=f.add(V.end),f}function d(w,O){let D,P;if(O?.template)D=O.template,P=N("component",D.declaration?.syntax);else{if(P=O?.name||w.prop("tagName")?.toLowerCase(),!P)throw new Error("Invalid component");if(P===H.__name__)throw new Error("Render component within itself is forbidden");D=H.lips.import(P)}if(!D||!P)throw new Error(`<${P}> template not found`);const F=j("component",D.declaration?.syntax),V=H.__getBoundaries__(F),{argv:S,functions:m,attrs:c,events:f}=H.__getAttributes__(w),A={},$={};let k={},R=Z0.default(V.start),_=H.PCC.get(F),L=M();c.literals&&Object.entries(c.literals).forEach(([I,x])=>{if(I=="key")return;k[I]=x}),m&&Object.entries(m).forEach(([I,x])=>{k[I]=H.__evaluateFunction__(x,[],L),D.declaration?.syntax?A[$0+D0+I]=x:A[D0+I]=x}),c.expressions&&Object.entries(c.expressions).forEach(([I,x])=>{if(I=="key")return;if(Y0.test(I))H.__evaluateSpreadAttr__(I,{memo:L,get keystore(){return $[I]},set keystore(a){if(!$[I])$[I]=[];$[I]=a},each:(a,n)=>k[a]=n});else k[I]=x?H.__evaluate__(x,L):!0;D.declaration?.syntax?A[$0+I]=x:A[I]=x});const g=w.contents();if(g.length){if(k={...k,...H.__meshwire__({$node:w,fragmentPath:F,fragmentBoundaries:V,meshPath:null,scope:L,argv:S,xmlns:q,useAttributes:!0,declaration:D.declaration},A)},D.declaration){if(D.declaration.tags){let I;Object.entries(D.declaration?.tags).forEach(([x,{type:a,many:n,alts:p}])=>{switch(a){case"nexted":{let s=w.next(x);if(!s.length&&Array.isArray(p)&&I?.length&&I.is(p.join(",")))s=I.next(x);if(!s.length)return;if(n){k[x]=[];let o=0,Q0=!1;while(!Q0){if(k[x].push(H.__meshwire__({$node:s,meshPath:`${x}[${o}]`,fragmentPath:F,fragmentBoundaries:V,scope:L,argv:S,xmlns:q,useAttributes:!0,declaration:D.declaration},A)),!s.next(x).length){Q0=!0;break}s=I=s.next(x),o++}}else k[x]=H.__meshwire__({$node:s,meshPath:x,fragmentPath:F,fragmentBoundaries:V,scope:L,argv:S,xmlns:q,useAttributes:!0,declaration:D.declaration},A)}break;case"child":{const s=w.children(x);if(n)k[x]=[],s.each(function(o){const Q0=Z0.default(this),{argv:L0}=H.__getAttributes__(Q0);k[x].push(H.__meshwire__({$node:Q0,meshPath:`${x}[${o}]`,fragmentPath:F,fragmentBoundaries:V,scope:L,argv:L0,xmlns:q,useAttributes:!0,declaration:D.declaration},A))});else if(w.children(x).first().length){const o=w.children(x).first(),{argv:Q0}=H.__getAttributes__(o);k[x]=H.__meshwire__({$node:o,meshPath:x,fragmentPath:F,fragmentBoundaries:V,scope:L,argv:Q0,xmlns:q,useAttributes:!0,declaration:D.declaration},A)}}break}})}else if(D.declaration.contents)k.__contents__=g}}if(_)_.setInput(W0(k)),R=R.add(_.node);else{const{declaration:I,state:x,_static:a,handler:n,context:p,default:s,stylesheet:o}=D;_=new x0(P,s||"",{state:W0(x),input:W0(k),context:p,_static:W0(a),handler:n,stylesheet:o,declaration:I},{debug:H.debug,lips:H.lips,prepath:F,boundaries:V}),R=R.add(_.node),!D.declaration?.syntax&&H.PCC.set(F,_)}return R=R.add(V.end),Object.entries(f).forEach(([I,x])=>{H.__attachEvent__({nodepath:F,element:_,_event:I,instruction:x,scope:L,get __dependencies__(){return B}})}),A&&Object.entries(A).forEach(([I,x])=>{let a=!1,n=!1;if(I.startsWith($0))a=!0,I=I.replace($0,"");if(I.startsWith(D0))n=!0,I=I.replace(D0,"");if(Y0.test(I)){if(H.__isReactive__(I,L)){const p=(o)=>{const Q0={};H.__evaluateSpreadAttr__(I,{memo:o,get keystore(){return $[I]},set keystore(L0){if(!$[I])$[I]=[];$[I]=L0},each:(L0,g0)=>{if(c.map.afterSpreadAttrs.includes(L0))return;Q0[L0]=g0},nullify:(L0)=>L0.forEach((g0)=>Q0[g0]=void 0)}),_?.subInput(Q0,o)};H.__extractExpressionDeps__(I,L).forEach((o)=>H.__trackDep__(B,o,L,{nodetype:"component",nodepath:F,deppath:`${F}.${I}`,target:"spread-attr",$fragment:null,boundaries:V,update:p,syntax:a}))}}else if(H.__isReactive__(x,L)){const p=(o)=>{if(c.map.beforeSpreadAttrs.includes(I))return;const Q0=n?H.__evaluateFunction__(x,[],o):x?H.__evaluate__(x,o):!0;_?.subInput({[I]:Q0},o)};H.__extractExpressionDeps__(x,L).forEach((o)=>H.__trackDep__(B,o,L,{nodetype:"component",nodepath:F,deppath:`${F}.${I}`,target:"attr",$fragment:null,boundaries:V,update:p,syntax:a}))}}),H.metrics.inc("componentCount"),R}function h(w){const O=w.prop("tagName")?.toLowerCase();if(!O)throw new Error("Invalid macro rendering call");const D=H.__macros.get(O);if(!D)throw new Error("Macro component not found");const P=j("macro"),F=H.__getBoundaries__(P),{attrs:V}=H.__getAttributes__(w),S={},m=M(),c={},f={};V.literals&&Object.entries(V.literals).forEach(([L,g])=>{c[L]=g,f[L]={value:g,type:"arg"}});const A={};V.expressions&&Object.entries(V.expressions).forEach(([L,g])=>{if(Y0.test(L))H.__evaluateSpreadAttr__(L,{memo:m,get keystore(){return A[L]},set keystore(I){if(!A[L])A[L]=[];A[L]=I},each:(I,x)=>{if(c[I]=x,D.argv.includes(I))f[I]={value:x,type:"arg"}}}),S[L]=g;else{const I=g?H.__evaluate__(g,m):!0;if(c[L]=I,D.argv.includes(L))f[L]={value:I,type:"arg"},S[L]=g}D.argv.forEach((I)=>{if(f[I]!==void 0)return;f[I]={value:!1,type:"arg"}})}),f.__arguments__=c;let $=Z0.default(F.start);const k={$node:D.$node,meshPath:null,fragmentPath:P,fragmentBoundaries:F,argv:D.argv,scope:m,xmlns:q,useAttributes:!0},R=H.__meshwire__(k,S),_=R.renderer.mesh(f,m);return $=$.add(_),S&&Object.entries(S).forEach(([L,g])=>{let I=!1;if(new RegExp(`^${$0}`).test(L))I=!0,L=L.replace($0,"");if(Y0.test(L)){if(!H.__isReactive__(L,m))return;const x=H.__extractExpressionDeps__(L,m),a=(n)=>{const p={};let s=[];if(H.__evaluateSpreadAttr__(L,{memo:n,get keystore(){return A[L]},set keystore(o){if(!A[L])A[L]=[];A[L]=o},each:(o,Q0)=>{if(V.map.afterSpreadAttrs.includes(o))return;if(P0(Q0,n[o]?.value))return;p[o]={value:Q0,type:"arg"},c[o]=Q0,s.push(o)},nullify:(o)=>{o.forEach((Q0)=>{p[Q0]={value:void 0,type:"arg"},delete c[Q0]}),s=o}}),s.length)H.__updateArgumentsDepNodes__(P,c),R.renderer.update(s,p,n)};x.forEach((n)=>H.__trackDep__(B,n,{...m,...f},{nodetype:"macro",nodepath:P,deppath:`${P}.${L}`,target:"spread-attr",$fragment:null,boundaries:F,update:a,syntax:I}))}else if(H.__isReactive__(g,m)){const x=H.__extractExpressionDeps__(g,m),a=(n)=>{if(V.map.beforeSpreadAttrs.includes(L))return;const p=g?H.__evaluate__(g,n):!0;c[L]=p,H.__updateArgumentsDepNodes__(P,c),R.renderer.update([L],{[L]:{value:p,type:"arg"}},n)};x.forEach((n)=>H.__trackDep__(B,n,{...m,...f},{nodetype:"macro",nodepath:P,deppath:`${P}.${L}`,target:"attr",$fragment:null,boundaries:F,update:a,syntax:I}))}}),$=$.add(F.end),H.metrics.inc("elementCount"),$}function u(w){if(!w.length||!w.prop("tagName"))return w;const O=w.is("svg")||q,D=O?Z0.default(document.createElementNS("http://www.w3.org/2000/svg",w.prop("tagName").toLowerCase())):Z0.default(`<${w.prop("tagName").toLowerCase()}/>`),P=w.contents(),F=j("element"),V=M();P.length&&D.append(H.__withPath__(F,()=>H.render(F+A5,P,V,B,O).$log));const{attrs:S,events:m}=H.__getAttributes__(w);S.literals&&Object.entries(S.literals).forEach(([f,A])=>{if(f===T0)return;const $=w.is(`[${T0}]`)&&["title","placeholder"].includes(f);D.attr(f,$?H.lips.i18n.translate(A).text:A);const k=(R)=>{D.attr(f,$?H.lips.i18n.translate(A).text:A),$&&H.__trackTranslationDep__(R,{nodetype:"element",nodepath:F,deppath:`${F}.${f}`,target:"attr",$fragment:D,update:k})};$&&H.__trackTranslationDep__(V,{nodetype:"element",nodepath:F,deppath:`${F}.${f}`,target:"attr",$fragment:D,update:k})});const c=(f,A=!1)=>{f&&Object.entries(f).forEach(([$,k])=>{switch($){case"@html":{const R=(_)=>{D.html(H.__evaluate__(k,_))};if(R(V),A&&H.__isReactive__(k,V))H.__extractExpressionDeps__(k,V).forEach((L)=>H.__trackDep__(B,L,V,{nodetype:"element",nodepath:F,deppath:`${F}.${$}`,target:"meta-attr",$fragment:D,update:R}))}break;case"@text":{const R=w.is(`[${T0}]`),_=(L)=>{D.text(H.__evaluate__(k,L,{translate:R})),R&&H.__trackTranslationDep__(L,{nodetype:"element",nodepath:F,deppath:`${F}.${$}`,target:"meta-attr",$fragment:D,update:_})};if(_(V),A&&H.__isReactive__(k,V))H.__extractExpressionDeps__(k,V).forEach((g)=>H.__trackDep__(B,g,V,{nodetype:"element",nodepath:F,deppath:`${F}.${$}`,target:"meta-attr",$fragment:D,update:_}));R&&H.__trackTranslationDep__(V,{nodetype:"element",nodepath:F,deppath:`${F}.${$}`,target:"meta-attr",$fragment:D,update:_})}break;case"@format":{const[R,_]=k.split(",").map((g)=>g.trim());if(!R)throw new Error("Invalid @format reference");if(!_)throw new Error("Invalid @format parameters");const L=(g)=>{const I=H.__evaluate__(`!${_.trim()}`,g);if(typeof I!=="object")throw new Error("Invalid @format parameters");const x=H.lips.i18n.format(R,I);x!==void 0&&D.text(x),H.__trackTranslationDep__(g,{nodetype:"element",nodepath:F,deppath:`${F}.${$}`,target:"meta-attr",$fragment:D,update:L})};L(V),H.__extractExpressionDeps__(_,V).forEach((g)=>H.__trackDep__(B,g,V,{nodetype:"element",nodepath:F,deppath:`${F}.${$}`,target:"meta-attr",$fragment:D,update:L}))}break;case"style":if(A&&H.__isReactive__(k,V)){const R=(L)=>{const g=H.__evaluate__(k,L);if(typeof g==="object"){let I="";Object.entries(g).forEach(([x,a])=>I+=`${x}:${a};`),I.length&&D.attr("style",I)}else D.attr("style",g)};R(V),H.__extractExpressionDeps__(k,V).forEach((L)=>H.__trackDep__(B,L,V,{nodetype:"element",nodepath:F,deppath:`${F}.${$}`,target:"attr",$fragment:D,update:R}))}else D.attr("style",k);break;default:{const R=w.is(`[${T0}]`)&&["title","placeholder"].includes($),_=(L)=>{const g=k&&H.__isReactive__(k,V)?H.__evaluate__(k,L,{translate:R}):k!==void 0?k:!0;if(g===void 0||g===!1)D.removeAttr($);else D.attr($,g),R&&H.__trackTranslationDep__(L,{nodetype:"element",nodepath:F,deppath:`${F}.${$}`,target:"attr",$fragment:D,update:_})};if(_(V),A&&H.__isReactive__(k,V))H.__extractExpressionDeps__(k,V).forEach((g)=>H.__trackDep__(B,g,V,{nodetype:"element",nodepath:F,deppath:`${F}.${$}`,target:"attr",$fragment:D,update:_}));R&&H.__trackTranslationDep__(V,{nodetype:"element",nodepath:F,deppath:`${F}.${$}`,target:"attr",$fragment:D,update:_})}}})};return S.expressions&&Object.keys(S.expressions).forEach((f)=>{if(!Y0.test(f))return;let A=[];const $=(k,R,_=!1)=>{const L={};H.__evaluateSpreadAttr__(f,{memo:k,get keystore(){return A},set keystore(g){A=g},each:(g,I)=>{if(!_&&S.map.afterSpreadAttrs.includes(g))return;L[g]=I},nullify:(g)=>g.forEach((I)=>D.removeAttr(I))}),Object.keys(L).length&&c(L)};if(delete S.expressions[f],$(V,"",!0),f&&H.__isReactive__(f,V))H.__extractExpressionDeps__(f,V).forEach((R)=>H.__trackDep__(B,R,V,{nodetype:"element",nodepath:F,deppath:`${F}.${f}`,target:"spread-attr",$fragment:D,update:$}))}),c(S.expressions,!0),m&&Object.entries(m).forEach(([f,A])=>{Y.push({nodepath:F,element:D,_event:f,instruction:A,scope:V,get __dependencies__(){return B}})}),H.metrics.inc("elementCount"),H.metrics.inc("domInsertsCount"),D}function v(w){const O=w.text(),D=M(),P=j("element"),F=w.parent().is(`[${T0}]`),V=Z0.default(document.createTextNode(H.__interpolate__(O,D,F))),S=(m)=>{const c=H.__interpolate__(O,m,F);if(!V[0])return;V[0].textContent=c,F&&H.__trackTranslationDep__(m,{nodetype:"text",nodepath:P,target:"value",$fragment:V,update:S})};if(O&&H.__isReactive__(O,D))H.__extractTextDeps__(O,D).forEach((c)=>H.__trackDep__(B,c,D,{nodetype:"text",nodepath:P,deppath:`${P}.${c}`,target:"value",$fragment:V,update:S}));return F&&H.__trackTranslationDep__(D,{nodetype:"text",nodepath:P,target:"value",$fragment:V,update:S}),H.metrics.inc("elementCount"),H.metrics.inc("domInsertsCount"),V}function T(w){if(w.get(0)?.nodeType===Node.COMMENT_NODE)return w;if(w.get(0)?.nodeType===Node.TEXT_NODE)return v(w);if(w.is("let"))return H0(w);else if(w.is("const"))return t(w);else if(w.is("lips")&&w.attr(":dtag"))return e(w);else if(w.is("log"))return r(w);else if(H.__macros.has(w.prop("tagName")?.toLowerCase()))return h(w);else if(w.is("if, for, switch, async")||H.lips.has(w.prop("tagName")?.toLowerCase()))return d(w);else if(w.is("else-if, else"))return;return u(w)}try{this.__renderDepth__++,Z=!Z&&Z0.default(this.__template__).length>1?Z0.default("<template>").html(this.__template__).contents():Z||Z0.default(this.__template__),Z.each(function(){const w=T(Z0.default(this));if(w)G=G.add(w)}),Y.forEach(this.__attachEvent__.bind(this)),H.metrics.inc("renderCount")}catch(w){console.error("Rendering Failed --",w),H.metrics.trackError(w)}finally{if(this.__renderDepth__--,this.metrics.endRender(),this.metrics.trackMemory(),this.__renderDepth__===0)this.__inpath__="",this.__inpathCounter__=0}return{$log:G,dependencies:B,events:Y}}destroy(){this.ICE.dispose(),this.stylesheet?.clear(),this.metrics.dispose(),this.lips.IUC.unregister(this.__path__),this.lips.watcher.unwatch(this),this.VER.forEach(this.__detachEvent__.bind(this)),this.VER=[];for(let J in this.PCC){const Z=this.PCC.get(J);Z?.destroy(),Z?.delete(J)}if(this.$?.remove(),this.PCC?.clear(),this.FGUD?.clear(),this.FGUDMemory?.clear(),this.__macros.clear(),this.__i18nDeps.clear(),this.__previous=null,this.state=null,this.input=null,this.context=null,this.$)this.$.each((J,Z)=>{Z0.default(Z).off()}),this.$=null;typeof this.onDestroy==="function"&&this.onDestroy.bind(this)(),this.emit("component:destroy")}__meshwire__(J,Z){const W=this,{$node:X,meshPath:q,fragmentPath:H,fragmentBoundaries:B,argv:Y,xmlns:G,declaration:M,useAttributes:j}=J;let N,b=[];const i=[],e=H+j1,r=(d,h,u,v)=>{const T=`${e}${v!==void 0?`[${v}]`:""}`,{$log:w,dependencies:O,events:D}=W.__withPath__(T,()=>{return W.render(T,d,{...h,...u},void 0,G)});if(i.push(T),O?.forEach((P,F)=>{if(!W.FGUD?.has(F))W.FGUD.set(F,new Map);P.forEach((V,S)=>{if(V.garbage)return;V.partial?.length?V.partial.push(T):V.partial=[T],W.FGUD.get(F)?.set(S,V)})}),W.metrics.inc("partialCount"),v!==void 0){const P=W.__getBoundaries__(T);b[v]={argvalues:u,boundaries:P};let F=Z0.default(P.start);return F=F.add(w),F=F.add(P.end),F}return w},H0=(d,h,u,v)=>{W.metrics.startRender();const T=v!==void 0?i.filter((w)=>w.endsWith(`${j1}[${v}]`)):i;if(d.forEach((w)=>{const O=W.FGUD.get(w);if(!O)return;O.forEach((D)=>{const P=T.find((S)=>{return D.partial?.find((m)=>S==m||W.__hasSamePathParent__(m,S))});if(!D.partial||!P)return;const F=D.deppath||D.nodepath,V=this.FGUDMemory.get(D.nodepath);if(D.garbage||B?.start&&!document.contains(B.start)){O.delete(F),W.__unbindMemo__(D);return}if(!V){console.warn(`unexpected occurence: <${F}> has no memo`);return}if(V.memo?.[w]&&u?.[w]&&!P0(V.memo[w],u[w]))V.memo={...h,...V.memo,...u};W.UQS.queue({dep:w,deppath:F,priority:D.priority}),W.metrics.inc("dependencyUpdateCount")}),!O.size&&W.FGUD.delete(w)}),v!==void 0&&b[v])b[v].argvalues=u;W.metrics.inc("partialUpdateCount"),W.metrics.endRender()},t=(d)=>{if(!b[d])return;const h=b[d].boundaries;if(b.splice(d,1),!document.contains(h.start)||!document.contains(h.end)){console.warn(`Partial mesh item<${d}> boundaries missing`);return}const u=[];let v=h.start.nextSibling;while(v&&v!==h.end)u.push(v),v=v.nextSibling;Z0.default(u).remove(),h.start.remove(),h.end.remove()},J0={renderer:{path:q,argv:Y,mesh(d,h){if(N=X.contents(),!N?.length)return null;if(h=h||J.scope,M?.iterator){const u=d?.["#"].value;if(!Array.isArray(d?.["#"].value))throw new Error("Invalid iterator argvalues");if(!u.length)return null;let v=Z0.default();return u.forEach((T,w)=>{if(!N?.length)return null;v=v.add(r(N,h,T,w))}),v}else return r(N,h,d)},update(d,h,u,v){if(!i.length)return;if(u=u||J.scope,v=v||B,M?.iterator){const T=h?.["#"].value;if(!Array.isArray(T))return;if(Array.isArray(b)){if(b.length===T.length){for(let O=0;O<T.length;O++)!P0(b[O].argvalues,T[O])&&H0(Object.keys(T[O]),u,T[O],O);return}const w=Math.min(b.length,T.length);for(let O=0;O<w;O++)H0(Object.keys(T[O]),u,T[O],O);if(T.length>b.length){if(!N?.length)return;for(let O=b.length;O<T.length;O++){const D=r(N,u,T[O],O);Z0.default(v.end).before(D)}}else if(T.length<b.length)for(let O=b.length-1;O>=T.length;O--)t(O)}}else H0(d,u,h)},fill(d,h){console.log("fill",h||B),W.__fillBoundaries__(d,h||B)},cleanup(d){console.log("cleanup"),W.FGUD.forEach((h,u)=>{h.forEach((v,T)=>{if(!W.__hasSamePathParent__(T,e))return;W.__unbindMemo__(v),v.garbage=!0}),!h.size&&W.FGUD.delete(u)}),W.__emptyBoundaries__(d||B)}}};if(j&&q){const{attrs:d}=W.__getAttributes__(X);d.literals&&Object.entries(d.literals).forEach(([h,u])=>J0[h]=u),d.expressions&&Object.entries(d.expressions).forEach(([h,u])=>{if(Y0.test(h)){let v=[];W.__evaluateSpreadAttr__(h,{memo:J.scope,get keystore(){return v},set keystore(T){v=T},each:(T,w)=>J0[T]=w}),Z[`${M?.syntax?$0:""}${q}.${h}`]=u}else J0[h]=u?W.__evaluate__(u,J.scope):!0,Z[`${M?.syntax?$0:""}${q}.${h}`]=u})}return J0}__getBoundaries__(J){return this.metrics.inc("domOperations"),this.metrics.inc("domInsertsCount"),{start:document.createComment(`s:${J}`),end:document.createComment(`e:${J}`)}}__emptyBoundaries__(J){const Z=[];let W=J.start.nextSibling;while(W&&W!==J.end)Z.push(W),W=W.nextSibling;Z0.default(Z).remove()}__fillBoundaries__(J,Z){if(!document.contains(Z.start)||!document.contains(Z.end)){console.warn("Dynamic element boundaries not found");return}this.__emptyBoundaries__(Z),J.length&&Z0.default(Z.start).after(J)}__getAttributes__(J){const Z=J.attrs(),W={},X={},q={literals:{},expressions:{},map:{explicitAttrs:[],spreadAttrs:[],beforeSpreadAttrs:[],afterSpreadAttrs:[],metaAttrs:[]}},H=Object.keys(Z).find((G)=>Y0.test(G));let B=[],Y=!1;return Z&&Object.entries(Z).forEach(([G,M])=>{if(G==":dtag")return;if(G.startsWith(":")||G.startsWith(D0)||G.startsWith(S0)||Y0.test(G)||K1.test(G))if(K1.test(G)){const[j,N]=G.match(K1)||[];B=N.split(",")}else if(G.startsWith(S0))W[G.replace(S0,"")]=M;else if(G.startsWith(D0))X[G.replace(D0,"")]=M;else{if(G.startsWith(":"))G=G.slice(1,G.length);if(H)if(Y0.test(G))q.map.spreadAttrs.push(G),Y=!0;else q.map.explicitAttrs.push(G),!Y?q.map.beforeSpreadAttrs.push(G):q.map.afterSpreadAttrs.push(G);q.expressions[G]=M||""}else if(q.literals[G]=M,H)q.map.explicitAttrs.push(G),!Y?q.map.beforeSpreadAttrs.push(G):q.map.afterSpreadAttrs.push(G)}),{argv:B,events:W,functions:X,attrs:q}}__withPath__(J,Z){const W=this.__inpath__;this.__inpath__=J;const X=Z();return this.__inpath__=W,X}__getPathParent__(J){const Z=J.split("/");if(Z.length>1)Z.pop();return Z.join("/")}__hasSamePathParent__(J,Z){return J.startsWith(Z)&&!J.replace(Z,"").startsWith(".")||J.startsWith(`${Z+j1}`)}__evaluate__(J,Z,W){J=typeof J==="string"?J.trim():J;try{const X=(q)=>{const H=this.state.toJSON(),B=(G,...M)=>{try{return G(...M)}catch(j){!W?.mute&&console.error("Eval error --",j);return}};let Y=`return ${q};`;if(Z){let G={},M;for(let N in Z){if(N==="__arguments__")continue;G[N]=Z[N].value}if(typeof Z.__arguments__==="object")M=Z.__arguments__;Y=`with( scope ){ ${Y} }`;const j=new Function("self","input","state","static","context","scope","arguments",Y);return B(j,this,this.input,H,this.static,this.context,G||{},M)}else{const G=new Function("self","input","state","static","context",Y);return B(G,this,this.input,H,this.static,this.context)}};if(/{\s*([^{}]+)\s*}/.test(J)){if(J.startsWith("!{")&&J.endsWith("}"))return X(J.slice(1));return J.replace(k1,(q,H)=>X(H))}return X(J)}catch(X){!W?.mute&&console.error("Expression evaluation error --",X);return}}__evaluateFunction__(J,Z,W){if(/(\s*\w+|\s*\([^)]*\)|\s*)\s*=>\s*(\s*\{[^}]*\}|\s*[^\n;"]+)/g.test(J))return this.__evaluate__(J,W)(...Z);else{let[X,...q]=J.split(/\s*,\s*/),H;const B=this.__evaluate__(X,W,{mute:!0});if(typeof B==="function")H=B;else{if(typeof this[X]!=="function")throw new Error(`Undefined <${X}> handler method`);H=this[X].bind(this)}if(typeof H!=="function")throw new Error(`Expected <${X}> to be a function or handler method`);let Y=q.map((G)=>this.__evaluate__(G,W));if(Z.length)Y=[...Y,...Z];return H(...Y)}}__evaluateSpreadAttr__(J,Z){const W=this.__evaluate__(J.replace(Y0,""),Z.memo);if(!W){if(!Z.keystore.length)throw new Error(`Undefined spread operator ${J}`);typeof Z.nullify==="function"&&Z.nullify(Z.keystore);return}if(typeof W!=="object"||Array.isArray(W))throw new Error(`Invalid spread operator ${J}`);if(Z.keystore=Object.keys(W)||[],typeof Z.each==="function")for(let X in W)Z.each(X,W[X])}__interpolate__(J,Z,W){if(J=J.replace(k1,(X,q)=>this.__evaluate__(q,Z)),W)J=this.lips.i18n.translate(J).text;return J}__attachEvent__(J){const{element:Z,nodepath:W,_event:X,instruction:q,scope:H,__dependencies__:B}=J;let Y=H;if(Z.on(X,(...G)=>this.__evaluateFunction__(q,G,Y)),this.VER.push(J),this.metrics.inc("domUpdatesCount"),this.metrics.inc("domRemovalsCount"),this.__isReactive__(q,H))this.__extractExpressionDeps__(q,H).forEach((M)=>this.__trackDep__(B,M,H||{},{nodetype:"event",nodepath:W,deppath:`${W}.${X}`,target:"event-handler",$fragment:!(Z instanceof x0)?Z:null,boundaries:Z instanceof x0?Z.__boundaries__:void 0,update:(j)=>{Y=j}}))}__detachEvent__({element:J,nodepath:Z,_event:W,instruction:X,scope:q,__dependencies__:H}){if(J.off(W),this.__isReactive__(X,q)){const B=this.__extractExpressionDeps__(X,q),Y=`${Z}.${W}`;B.forEach((G)=>{H.get(G)?.delete(Y),this.FGUD.get(G)?.delete(Y)})}this.metrics.inc("domOperations"),this.metrics.inc("domRemovalsCount")}__extractTextDeps__(J,Z){const W=new Set;return(J.match(/{\s*([^{}]+)\s*}/g)||[]).forEach((q)=>{const H=q.replace(/[{}]/g,"").trim();this.__extractExpressionDeps__(H,Z).forEach((Y)=>W.add(Y))}),Array.from(W)}__extractExpressionDeps__(J,Z){const W=/\b(state|input|context|arguments)(?:\.[a-zA-Z_]\w*)+(?=\[|\.|$|\s|;|,|\))/g,X=/\b(self)(?:\.[a-zA-Z_]\w*)+(?=\()/g,q=/\b(arguments)((?:\.[a-zA-Z_]\w*)+)?(?=\[|\.|$|\s|;|,|\))/g;let H=[...Array.from(J.matchAll(W)),...Array.from(J.matchAll(X)),...Array.from(J.matchAll(q))];if(Z&&Object.keys(Z).length){const B=new RegExp(`\\b(?<!\\.)(${Object.keys(Z).join("|")})`,"g"),Y=new RegExp(`(?:(?<=\\.\\.\\.))(${Object.keys(Z).join("|")})\\b`,"g");H=[...H,...Array.from(J.matchAll(B)),...Array.from(J.matchAll(Y))]}return[...new Set(H.map((B)=>B[0]))]}__isReactive__(J,Z){if(/(self|state|input|context|arguments)(\.[\w.]+)?/.test(J))return!0;if(Z&&Object.keys(Z).length&&new RegExp(Object.keys(Z).join("|")).test(J))return!0;return!1}__bindMemo__(J,Z){const W=Z.deppath||Z.nodepath,X=this.FGUDMemory.get(Z.nodepath);if(X)X.tracks.set(W,Z.priority||2),X.memo=J,this.FGUDMemory.set(Z.nodepath,X);else{const q=new Map;q.set(W,Z.priority),this.FGUDMemory.set(Z.nodepath,{tracks:q,memo:J})}}__unbindMemo__(J){const Z=J.deppath||J.nodepath,W=this.FGUDMemory.get(J.nodepath);if(!W||!W.tracks.get(Z))return;W.tracks.delete(Z),!W.tracks.size&&this.FGUDMemory.delete(J.nodepath)}__trackDep__(J,Z,W,X){if(W&&W[Z]&&W[Z].type==="let")X.haslet=!0;if(X.priority===void 0)if(X.target==="attr"&&Z.split(".").find((H)=>T5.includes(H)))X.priority=0;else if(X.syntax)X.priority=1;else if(["event"].includes(X.nodetype))X.priority=3;else X.priority=2;const q=X.deppath||X.nodepath;X.level=q.split(/\//g).length,X.priority=X.level*g5+X.priority,!J.has(Z)&&J.set(Z,new Map),J.get(Z)?.set(q,X),this.__bindMemo__(W,X),this.metrics.inc("dependencyTrackCount")}__trackTranslationDep__(J,Z){this.__i18nDeps.set(Z.deppath||Z.nodepath,Z),this.__bindMemo__(J,Z),this.metrics.inc("i18nTrackCount")}__valueDep__(J,Z){return Z.reduce((W,X)=>W?.[X],J)}__shouldUpdate__(J,Z){if(J==="self")return!0;const W={state:this.state,input:this.input,context:this.context},X=this.__valueDep__(this.__previous[J],Z),q=this.__valueDep__(W[J],Z);return!P0(X,q)}__updateDepNodes__(){if(!this.FGUD?.size)return;this.metrics.inc("componentUpdateCount"),this.metrics.startRender(),this.FGUD.forEach((J,Z)=>{const[W,...X]=Z.split(".");if(!this.__shouldUpdate__(W,X))return;J.forEach((q)=>{try{const H=q.deppath||q.nodepath;if(q.garbage||q.boundaries?.start&&!document.contains(q.boundaries.start)||q.$fragment!==null&&!q.$fragment.closest("body").length){J.delete(H),this.__unbindMemo__(q);return}this.UQS.queue({dep:Z,deppath:H,priority:q.priority}),this.metrics.inc("dependencyUpdateCount")}catch(H){console.error("failed to update dependency nodes --",H);return}}),!J.size&&this.FGUD?.delete(Z)}),this.metrics.endRender()}__updateVarDepNodes__(J,Z,W){if(!this.FGUD?.size)return;this.metrics.inc("partialUpdateCount"),this.metrics.startRender(),this.FGUD.get(J)?.forEach((X,q)=>{if(!X.haslet||!this.__hasSamePathParent__(q,this.__getPathParent__(Z)))return;const H=X.deppath||X.nodepath,B=this.FGUDMemory.get(X.nodepath);if(!B){console.warn(`unexpected occurence: <${H}> has no memo`);return}B.memo={...B.memo,...W},this.UQS.queue({dep:J,deppath:H,priority:X.priority}),this.metrics.inc("dependencyUpdateCount")}),this.metrics.endRender()}__updateArgumentsDepNodes__(J,Z){if(!this.FGUD?.size)return;this.metrics.inc("partialUpdateCount"),this.metrics.startRender();const W="arguments";this.FGUD.get(W)?.forEach((X,q)=>{if(!this.__hasSamePathParent__(q,J))return;const H=X.deppath||X.nodepath,B=this.FGUDMemory.get(X.nodepath);if(!B){console.warn(`unexpected occurence: <${H}> has no memo`);return}B.memo.__arguments__=Z,this.UQS.queue({dep:W,deppath:H,priority:X.priority}),this.metrics.inc("dependencyUpdateCount")}),this.metrics.endRender()}__updateI18nDepNodes__(){if(!this.__i18nDeps?.size)return;this.metrics.inc("i18nUpdateCount"),this.metrics.startRender(),this.__i18nDeps?.forEach((J,Z)=>{if(!J.$fragment.closest("body").length){this.__i18nDeps.delete(Z);return}const W=this.FGUDMemory.get(J.nodepath);if(!W){console.warn(`unexpected occurence: <${J.deppath||J.nodepath}> has no memo`);return}J.update(W.memo,"i18n-partial-updator"),this.metrics.inc("dependencyUpdateCount")}),this.metrics.endRender()}appendTo(J){return(typeof J=="string"?Z0.default(J):J).append(this.node),this.metrics.inc("domOperations"),this}prependTo(J){return typeof J=="string"?Z0.default(J):J.prepend(this.node),this.metrics.inc("domOperations"),this}replaceWith(J){return(typeof J=="string"?Z0.default(J):J).replaceWith(this.node),this.metrics.inc("domOperations"),this}}var h1={};d0(h1,{handler:()=>{{return E8}},declaration:()=>{{return $8}},_static:()=>{{return R8}}});var $8={name:"if",syntax:!0,tags:{"else-if":{type:"nexted",many:!0,optional:!0},else:{type:"nexted",alts:["else-if"],optional:!0}}},R8={initialized:!1,prevRenderer:null},E8={onInput(J){this.static.initialized&&this.processor(this.input,J)},onSelfRender(){const J=this.processor(this.input,void 0,!0);return this.static.initialized=!0,J},processor(J,Z,W=!1){if(!J.renderer)return;if(J.by){this.static.prevRenderer?.cleanup();const X=J.renderer.mesh({},Z);if(this.static.prevRenderer=J.renderer,!X?.length)return;if(W)return X;J.renderer.fill(X)}else{this.static.prevRenderer?.cleanup();let X=!1,q;if(Array.isArray(J["else-if"])&&J["else-if"].length)for(let H of J["else-if"]){if(!H.by)continue;if(q=H.renderer.mesh({},Z),this.static.prevRenderer=H.renderer,!q?.length)return;if(W)return q;q?.length&&H.renderer.fill(q),X=!0;break}if(!X&&J.else){const H=J.else.renderer.mesh({},Z);if(this.static.prevRenderer=J.else.renderer,!H?.length)return;if(W)return H;J.else.renderer.fill(H)}}}};var f1={};d0(f1,{state:()=>{{return A8}},handler:()=>{{return b8}},default:()=>{{return x8}},declaration:()=>{{return T8}},_static:()=>{{return S8}}});var T8={name:"for",syntax:!0,iterator:!0},A8={argvlist:null},S8={lastIn:null,processingBatch:!1},b8={onInput(){this.processor(this.input)},processor(J){if(this.static.processingBatch)return;if(!J.renderer)throw new Error("Undefined mesh renderer");let{in:Z,from:W,to:X}=J;if(Z===void 0&&W===void 0)throw new Error("Invalid <for> arguments");this.static.processingBatch=!0;try{if(W!==void 0){if(W=parseFloat(String(W)),X==null)throw new Error("Expected <from> <to> attributes of the for loop to be defined");X=parseFloat(String(X));const q=W<X,H=Math.abs(X-W)+1;if(this.state.argvlist&&Array.isArray(this.state.argvlist)&&this.state.argvlist.length===H){const[Y]=J.renderer.argv;if(Y){let G=W,M=!0;for(let j=0;j<this.state.argvlist.length;j++){if(this.state.argvlist[j][Y].value!==G){M=!1;break}G=q?G+1:G-1}if(M)return;G=W;for(let j=0;j<this.state.argvlist.length;j++)this.state.argvlist[j][Y].value=G,G=q?G+1:G-1;return}}const B=[];for(let Y=W;q?Y<=X:Y>=X;q?Y++:Y--){const G={},[M]=J.renderer.argv;if(M)G[M]={value:Y,type:"arg"};B.push(G)}this.state.argvlist=B}else if(Array.isArray(Z)){if(this.state.argvlist&&this.static.lastIn&&J.in===this.static.lastIn)return;if(!Z.length){if(!this.static.lastIn)console.warn("For loop with empty initial rendering <in> attribute array value will not update");this.state.argvlist=[];return}if(this.static.lastIn=Z,this.state.argvlist&&Array.isArray(this.state.argvlist)&&this.state.argvlist.length===Z.length){const[B,Y]=J.renderer.argv;for(let G=0;G<Z.length;G++){const M=this.state.argvlist[G];if(B)M[B].value=Z[G]}return}const q=[];let H=0;for(let B of Z){const Y={},[G,M]=J.renderer.argv;if(G)Y[G]={value:B,type:"arg"};if(M)Y[M]={value:H,type:"arg"};q.push(Y),H++}this.state.argvlist=q}else if(Z instanceof Map){if(this.state.argvlist&&this.static.lastIn&&J.in===this.static.lastIn)return;if(!Z.size){if(!this.static.lastIn)console.warn("For loop with empty initial rendering <in> attribute map value will not update");this.state.argvlist=[];return}if(this.static.lastIn=Z,this.state.argvlist&&Array.isArray(this.state.argvlist)&&this.state.argvlist.length===Z.size){const[B,Y,G]=J.renderer.argv;let M=0;for(let[j,N]of Z){const b=this.state.argvlist[M];if(B)b[B].value=j;if(Y)b[Y].value=N;M++}return}const q=[];let H=0;for(let[B,Y]of Z){const G={},[M,j,N]=J.renderer.argv;if(M)G[M]={value:B,type:"arg"};if(j)G[j]={value:Y,type:"arg"};if(N)G[N]={value:H,type:"arg"};q.push(G),H++}this.state.argvlist=q}else if(typeof Z=="object"){if(this.state.argvlist&&this.static.lastIn&&J.in===this.static.lastIn)return;if(!Object.keys(Z).length){if(!this.static.lastIn)console.warn("For loop with empty initial rendering <in> attribute object value will not update");this.state.argvlist=[];return}this.static.lastIn=Z;const q=Object.keys(Z);if(this.state.argvlist&&Array.isArray(this.state.argvlist)&&this.state.argvlist.length===q.length){const[Y,G,M]=J.renderer.argv;for(let j=0;j<q.length;j++){const N=q[j],b=this.state.argvlist[j];if(Y)b[Y].value=N;if(G)b[G].value=Z[N]}return}const H=[];let B=0;for(let Y in Z){const G={},[M,j,N]=J.renderer.argv;if(M)G[M]={value:Y,type:"arg"};if(j)G[j]={value:Z[Y],type:"arg"};if(N)G[N]={value:B,type:"arg"};H.push(G),B++}this.state.argvlist=H}}finally{this.static.processingBatch=!1}}},x8="<{input.renderer} #=state.argvlist/>";var y1={};d0(y1,{state:()=>{{return k8}},handler:()=>{{return _8}},default:()=>{{return h8}},declaration:()=>{{return g8}}});var g8={name:"async",syntax:!0,tags:{then:{type:"child"},catch:{type:"child",optional:!0},loading:{type:"child",optional:!0}}},k8={renderer:null,props:{}},_8={onInput(){this.processor(this.input)},processor(J){if(!J.await)throw new Error("Undefined async <await> attribute");if(!(J.await instanceof Promise))throw new Error("Expected async <await> attribute value to be a function");if(J.loading)this.state.renderer=J.loading.renderer,this.state.props={};J.await.then((Z)=>{if(!J.then)return;this.state.renderer=J.then.renderer;const[W]=J.then.renderer.argv;this.state.props={[W]:{value:Z,type:"arg"}}}).catch((Z)=>{if(!J.catch)return;this.state.renderer=J.catch.renderer;const[W]=J.then.renderer.argv;this.state.props={[W]:{value:Z,type:"arg"}}})}},h8="<{state.renderer} #=state.props/>";var v1={};d0(v1,{handler:()=>{{return v8}},declaration:()=>{{return f8}},_static:()=>{{return y8}}});var f8={name:"switch",syntax:!0,tags:{case:{type:"child",many:!0},default:{type:"child"}}},y8={initialized:!1,prevRenderer:null},v8={onInput(J){this.static.initialized&&this.processor(this.input,J)},onSelfRender(){const J=this.processor(this.input,void 0,!0);return this.static.initialized=!0,J},processor(J,Z,W=!1){let X=[];this.static.prevRenderer?.cleanup();for(let q of J.case)if(q.is==J.by||Array.isArray(q.is)&&q.is.includes(J.by)){Array.isArray(q.is)?X=[...new Set([...X,...q.is])]:X.push(q.is);const H=q.renderer.mesh({},Z);if(this.static.prevRenderer=q.renderer,!H?.length)return;if(W)return H;q.renderer.fill(H)}if(X.includes(J.by))return;if(J.default){const q=J.default.renderer.mesh({},Z);if(this.static.prevRenderer=J.default.renderer,!q?.length)return;if(W)return q;J.default.renderer.fill(q)}else this.static.prevRenderer=null}};var u1={};d0(u1,{state:()=>{{return u8}},handler:()=>{{return c8}},default:()=>{{return p8}},context:()=>{{return d8}},_static:()=>{{return m8}}});var i8=function(J){const Z={};return J.split("&").map((X)=>{const[q,H]=X.split("=");Z[q]=H}),Z},u8={page:null,params:{},query:{}},m8={global:!1,routes:[],defaultPath:null,currentPath:null,currentRoute:null},d8=["navigate"],c8={onInput(){this.processor(this.input)},processor(J){if(!J.routes)return;if(J.global)this.static.global=J.global;if(this.static.routes=J.routes.map(({path:Z,template:W,default:X})=>{if(X)this.static.defaultPath=Z;const q=Z.match(/:[^\/]*(\/|$)/gi)||[],H=Z.replaceAll("/","\\/").replaceAll(/:[^\/]*(\/|$)/gi,"([^\\/]+)(?:\\/|$)");return{path:Z,template:W,default:X,pathVars:q,pathRegex:new RegExp(`${H}\$`,"i")}}),J.global){const Z=window.location.pathname;this.static.defaultPath=this.static.defaultPath&&Z=="/"&&Z!==this.static.defaultPath?this.static.defaultPath:Z?Z+window.location.search:this.static.routes[0].path}},onAttach(){if(this.input.global)window.navigate=this.navigate.bind(this),window.addEventListener("popstate",(J)=>J.state&&this.navigate(J.state.path,!0));this.setContext("navigate",this.navigate.bind(this)),this.static.defaultPath&&this.navigate(this.static.defaultPath)},navigate(J,Z){!Z&&this.static.global&&history.pushState({path:J},"",J);const W=J.split("?");J=W[0];const X=W[1]?i8(W[1]):{};let q=null;if(this.static.currentRoute)q={path:this.static.currentRoute.path,params:this.state.params},this.emit("before",{fromState:q,toState:{path:J,query:X}});const H=this.match(J);if(!H){this.static.currentRoute=null,this.state.params={},this.state.query={},this.emit("not-found",J);return}const{route:B,params:Y}=H;this.emit("after",{fromState:q,toState:{path:B.path,params:Y,query:X}}),this.static.currentPath=J,this.static.currentRoute=B,this.state.params=Y,this.state.query=X,this.state.page=B.template},match(J){const Z={};let W=!1;for(let X of this.static.routes){const{pathVars:q,pathRegex:H}=X,B=J.match(H);if(B!==null&&B.index===0){for(let Y=0;Y+1<B.length&&Y<q.length;Y++)Z[q[Y].replaceAll(/[\/:]/g,"")]=B[Y+1];W=X;break}}return W?{route:W,params:Z}:!1}},p8="<{state.page} params=state.params query=state.query/>";class m0{debug=!1;stylesheets=[];config={};store={};__root;i18n=new e0;watcher;IUC;__setLang;__getLang;__setContext;__getContext;constructor(J){if(this.config=J,this.config?.debug)this.debug=this.config.debug;this.watcher=new a0,this.IUC=new n0;const[Z,W]=b0(this.i18n.lang),[X,q]=b0(J?.context||{});this.__setLang=W,this.__getLang=Z,this.__setContext=q,this.__getContext=X,this.register("if",h1),this.register("for",f1),this.register("async",y1),this.register("switch",v1),this.register("router",u1)}register(J,Z){return this.store[J]=Z,this}unregister(J){return delete this.store[J],this}has(J){return J in this.store}import(J){if(!this.has(J))throw new Error(`<${J}> component not found`);if(!this.store[J].declaration?.syntax&&!this.store[J].default)throw new Error(`Invalid <${J}> component`);return this.store[J]}render(J,Z,W){const{default:X,...q}=Z,H={debug:this.debug,prepath:"0",lips:this},B=new x0(J,X||"",{...q,input:W},H);return window.addEventListener("beforeunload",()=>{return this.dispose(),B.destroy(),null}),window.addEventListener("pagehide",(Y)=>{!Y.persisted&&this.dispose()}),document.addEventListener("visibilitychange",()=>{if(document.visibilityState!=="hidden")return;this.IUC.prepareForPotentialUnload()}),B}root(J,Z){if(this.__root=this.render("__ROOT__",J),this.__root.appendTo(Z),this.config?.stylesheets)this.stylesheets=this.config.stylesheets.map((W)=>new u0("root",{sheet:W,meta:!0}));return this.__root}setLanguage(J){this.i18n.lang=J,this.__setLang(J)}getLanguage(){return this.__getLang()}setContext(J,Z){const W=this.__getContext();if(typeof J==="string"){const X={...W,[J]:Z};B0(W,X)&&this.__setContext(X)}else if(!Array.isArray(J)){const X={...W,...J};B0(W,X)&&this.__setContext(X)}else throw new Error("Invalid context data")}getContext(){return this.__getContext()}useContext(J,Z){if(!J.length)return;p0(()=>{const W=this.__getContext();if(!W)return;const X=Object.fromEntries(J.map((q)=>[q,W[q]]));X&&typeof Z==="function"&&Object.keys(X).length&&Z(X)})}useTranslator(J,Z){p0(()=>{const W=this.__getLang();if(!W)return;(J==="*"||Array.isArray(J)&&J.includes(W))&&typeof Z==="function"&&Z(W)})}dispose(){this.watcher?.dispose(),this.__root?.destroy(),this.stylesheets.forEach((J)=>J.clear())}}function s8(J="body"){const Z={counter:0,counterHistory:[],updateFrequency:16,isRunning:!1,metrics:{fps:0,avgRenderTime:0,totalUpdates:0,memoryUsageMB:0,domOperations:0}},W={updateInterval:null,frameCountInterval:null,frameCount:0,lastFrameTimestamp:0,updateTimes:[]},X={onCreate(){console.log("Stress test component created")},onMount(){console.log("Stress test component mounted"),this.startPerformanceTracking()},onRender(){const G=performance.now();if(this.static.lastFrameTimestamp){const M=G-this.static.lastFrameTimestamp;if(M<1000){if(this.static.updateTimes.push(M),this.static.updateTimes.length>100)this.static.updateTimes.shift()}}this.static.lastFrameTimestamp=G,this.static.frameCount++},startPerformanceTracking(){this.static.frameCountInterval=setInterval(()=>{if(this.state.metrics.fps=this.static.frameCount,this.static.frameCount=0,this.static.updateTimes.length){const G=this.static.updateTimes.reduce((M,j)=>M+j,0)/this.static.updateTimes.length;this.state.metrics.avgRenderTime=G}if(window.performance&&window.performance.memory)this.state.metrics.memoryUsageMB=window.performance.memory.usedJSHeapSize/1048576},1000)},startStressTest(){if(this.state.isRunning)return;this.state.isRunning=!0,this.state.counterHistory=[],this.static.updateInterval=setInterval(()=>{if(this.state.counter++,this.state.metrics.totalUpdates++,this.state.counterHistory.length>100)this.state.counterHistory.shift();this.state.counterHistory.push(this.state.counter)},this.state.updateFrequency)},stopStressTest(){if(!this.state.isRunning)return;clearInterval(this.static.updateInterval),this.state.isRunning=!1},setUpdateFrequency(G){const M=parseFloat(G.target.value);if(this.state.updateFrequency=M,this.state.isRunning)this.stopStressTest(),this.startStressTest()},resetCounter(){this.state.counter=0,this.state.counterHistory=[],this.state.metrics.totalUpdates=0},runHeavyComputation(){const G=performance.now();let M=0;for(let j=0;j<1e7;j++)M+=Math.sqrt(j);console.log(`Heavy computation completed in ${performance.now()-G}ms, result: ${M}`)},destroy(){clearInterval(this.static.updateInterval),clearInterval(this.static.frameCountInterval)}},Y=new m0({debug:!0}).render("StressTestApp",{default:`
|
|
2
2
|
<div class="stress-test-container">
|
|
3
3
|
<h2>Lips Framework Stress Test</h2>
|
|
4
4
|
|
|
@@ -65,7 +65,7 @@ var X8=Object.create;var{defineProperty:P1,getPrototypeOf:H8,getOwnPropertyNames
|
|
|
65
65
|
</table>
|
|
66
66
|
</div>
|
|
67
67
|
</div>
|
|
68
|
-
`,state:Z,_static:W,handler:
|
|
68
|
+
`,state:Z,_static:W,handler:X,stylesheet:`
|
|
69
69
|
.stress-test-container {
|
|
70
70
|
font-family: 'Arial', sans-serif;
|
|
71
71
|
max-width: 800px;
|
|
@@ -205,7 +205,7 @@ var X8=Object.create;var{defineProperty:P1,getPrototypeOf:H8,getOwnPropertyNames
|
|
|
205
205
|
font-size: 1.1em;
|
|
206
206
|
color: #1976d2;
|
|
207
207
|
}
|
|
208
|
-
`},{});return
|
|
208
|
+
`},{});return Y.appendTo(J),Y}function l8(J="body",Z=5000){console.log(`Running high frequency update test for ${Z}ms...`);const W={counter:0,elapsedTime:0,updatesPerSecond:0,totalUpdates:0,isRunning:!1,testComplete:!1,testResults:{totalUpdates:0,duration:0,updatesPerSecond:0,avgUpdateTime:0}},X={updateIntervalId:null,startTime:0,updateTimes:[]},q={startTest(){if(this.state.isRunning)return;this.state.isRunning=!0,this.state.testComplete=!1,this.state.counter=0,this.state.totalUpdates=0,this.state.elapsedTime=0,this.static.startTime=performance.now(),this.static.updateTimes=[];const M=()=>{if(!this.state.isRunning)return;const j=performance.now();if(this.state.counter++,this.state.totalUpdates++,this.state.elapsedTime=j-this.static.startTime,this.state.elapsedTime>0)this.state.updatesPerSecond=Math.round(this.state.totalUpdates/this.state.elapsedTime*1000);const N=performance.now();if(this.static.updateTimes.push(N-j),this.state.elapsedTime>=Z){this.finishTest();return}requestAnimationFrame(M)};requestAnimationFrame(M)},finishTest(){this.state.isRunning=!1,this.state.testComplete=!0;const M=this.static.updateTimes.reduce((j,N)=>j+N,0)/this.static.updateTimes.length;this.state.testResults={totalUpdates:this.state.totalUpdates,duration:this.state.elapsedTime,updatesPerSecond:this.state.updatesPerSecond,avgUpdateTime:M},console.log("High Frequency Test Results:",this.state.testResults)}},H=`
|
|
209
209
|
<div class="high-freq-test">
|
|
210
210
|
<h2>High Frequency Update Test</h2>
|
|
211
211
|
<p>This test measures how many state updates Lips can handle per second.</p>
|
|
@@ -250,7 +250,7 @@ var X8=Object.create;var{defineProperty:P1,getPrototypeOf:H8,getOwnPropertyNames
|
|
|
250
250
|
</else>
|
|
251
251
|
</div>
|
|
252
252
|
</div>
|
|
253
|
-
`,
|
|
253
|
+
`,B=`
|
|
254
254
|
.high-freq-test {
|
|
255
255
|
max-width: 600px;
|
|
256
256
|
margin: 20px auto;
|
|
@@ -316,7 +316,7 @@ var X8=Object.create;var{defineProperty:P1,getPrototypeOf:H8,getOwnPropertyNames
|
|
|
316
316
|
td:first-child {
|
|
317
317
|
font-weight: bold;
|
|
318
318
|
}
|
|
319
|
-
`,
|
|
319
|
+
`,G=new m0({debug:!0}).render("HighFrequencyTest",{default:H,state:W,handler:q,stylesheet:B},{});return G.appendTo(J),G}function y5(J="body"){const Z={nodeCount:1000,renderTime:0,isRendering:!1,nodes:[]},W={createNodes(Y){this.state.isRendering=!0;const G=performance.now(),M=[];for(let j=0;j<Y;j++)M.push({id:j,value:`Node ${j}: ${Math.random().toString(36).substring(2,15)}`});this.state.nodes=M,this.state.renderTime=performance.now()-G,setTimeout(()=>{this.state.renderTime=performance.now()-G,this.state.isRendering=!1},10)},shuffleNodes(){this.state.isRendering=!0;const Y=performance.now(),G=[...this.state.nodes];for(let M=G.length-1;M>0;M--){const j=Math.floor(Math.random()*(M+1));[G[M],G[j]]=[G[j],G[M]]}this.state.nodes=G,setTimeout(()=>{this.state.renderTime=performance.now()-Y,this.state.isRendering=!1},10)},updateValues(){this.state.isRendering=!0;const Y=performance.now(),G=this.state.nodes.map((M)=>({...M,value:`Node ${M.id}: ${Math.random().toString(36).substring(2,15)}`}));this.state.nodes=G,setTimeout(()=>{this.state.renderTime=performance.now()-Y,this.state.isRendering=!1},10)},setNodeCount(Y){this.state.nodeCount=parseInt(Y.target.value,10)}},B=new m0({debug:!0}).render("DOMStressTest",{default:`
|
|
320
320
|
<div class="dom-stress-test">
|
|
321
321
|
<h2>DOM Stress Test</h2>
|
|
322
322
|
|
|
@@ -445,7 +445,7 @@ var X8=Object.create;var{defineProperty:P1,getPrototypeOf:H8,getOwnPropertyNames
|
|
|
445
445
|
.node:last-child {
|
|
446
446
|
border-bottom: none;
|
|
447
447
|
}
|
|
448
|
-
`},{});return
|
|
448
|
+
`},{});return B.appendTo(J),B}function a6(J="body"){const Z=document.createElement("div");Z.className="stress-tests-suite",Z.innerHTML=`
|
|
449
449
|
<h1>Lips Framework Stress Test Suite</h1>
|
|
450
450
|
|
|
451
451
|
<div class="test-section" id="stress-test"></div>
|
|
@@ -471,6 +471,6 @@ var X8=Object.create;var{defineProperty:P1,getPrototypeOf:H8,getOwnPropertyNames
|
|
|
471
471
|
padding: 10px;
|
|
472
472
|
border-radius: 8px;
|
|
473
473
|
}
|
|
474
|
-
`,document.head.appendChild(W),document.querySelector(J)?.appendChild(Z),
|
|
474
|
+
`,document.head.appendChild(W),document.querySelector(J)?.appendChild(Z),s8("#stress-test"),l8("#high-frequency-test",3000),y5("#dom-stress-test"),{container:Z}}y5();export{l8 as runHighFrequencyTest,y5 as runDOMStressTest,a6 as runAllStressTests,s8 as createLipsStressTest};
|
|
475
475
|
|
|
476
|
-
//# debugId=
|
|
476
|
+
//# debugId=52AFE438659F821864756e2164756e21
|