lilact 0.31.11 → 0.31.12
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/lilact.development.js +48 -154
- package/dist/lilact.development.js.map +3 -3
- package/dist/lilact.development.min.js +27 -27
- package/dist/lilact.development.min.js.map +3 -3
- package/dist/lilact.production.min.js +27 -27
- package/docs/static/lilact.development.js +48 -154
- package/docs/static/lilact.development.js.map +3 -3
- package/docs/static/lilact.development.min.js +27 -27
- package/docs/static/lilact.development.min.js.map +3 -3
- package/docs/static/lilact.production.min.js +27 -27
- package/examples/lilact.development.js +48 -154
- package/examples/lilact.development.js.map +3 -3
- package/examples/lilact.development.min.js +27 -27
- package/examples/lilact.development.min.js.map +3 -3
- package/examples/lilact.production.min.js +27 -27
- package/package.json +1 -1
- package/src/events.jsx +75 -253
|
@@ -54,8 +54,8 @@ ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
|
54
54
|
THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
55
55
|
*/
|
|
56
56
|
|
|
57
|
-
var sr=Object.defineProperty;var Ao=(e,t,n)=>t in e?sr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Q=(e,t)=>{for(var n in t)sr(e,n,{get:t[n],enumerable:!0})};var ee=(e,t,n)=>Ao(e,typeof t!="symbol"?t+"":t,n);var cn={};Q(cn,{__DO_NOT_USE__ActionTypes:()=>pt,applyMiddleware:()=>jo,bindActionCreators:()=>Po,combineReducers:()=>Lo,compose:()=>ur,createStore:()=>sn,isAction:()=>Mo,isPlainObject:()=>on,legacy_createStore:()=>Ro});function q(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var $o=typeof Symbol=="function"&&Symbol.observable||"@@observable",cr=$o,rn=()=>Math.random().toString(36).substring(7).split("").join("."),Io={INIT:`@@redux/INIT${rn()}`,REPLACE:`@@redux/REPLACE${rn()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${rn()}`},pt=Io;function on(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function sn(e,t,n){if(typeof e!="function")throw new Error(q(2));if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(q(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(q(1));return n(sn)(e,t)}let r=e,o=t,s=new Map,c=s,a=0,l=!1;function u(){c===s&&(c=new Map,s.forEach((_,h)=>{c.set(h,_)}))}function f(){if(l)throw new Error(q(3));return o}function p(_){if(typeof _!="function")throw new Error(q(4));if(l)throw new Error(q(5));let h=!0;u();let T=a++;return c.set(T,_),function(){if(h){if(l)throw new Error(q(6));h=!1,u(),c.delete(T),s=null}}}function d(_){if(!on(_))throw new Error(q(7));if(typeof _.type>"u")throw new Error(q(8));if(typeof _.type!="string")throw new Error(q(17));if(l)throw new Error(q(9));try{l=!0,o=r(o,_)}finally{l=!1}return(s=c).forEach(T=>{T()}),_}function m(_){if(typeof _!="function")throw new Error(q(10));r=_,d({type:pt.REPLACE})}function w(){let _=p;return{subscribe(h){if(typeof h!="object"||h===null)throw new Error(q(11));function T(){let S=h;S.next&&S.next(f())}return T(),{unsubscribe:_(T)}},[cr](){return this}}}return d({type:pt.INIT}),{dispatch:d,subscribe:p,getState:f,replaceReducer:m,[cr]:w}}function Ro(e,t,n){return sn(e,t,n)}function No(e){Object.keys(e).forEach(t=>{let n=e[t];if(typeof n(void 0,{type:pt.INIT})>"u")throw new Error(q(12));if(typeof n(void 0,{type:pt.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(q(13))})}function Lo(e){let t=Object.keys(e),n={};for(let c=0;c<t.length;c++){let a=t[c];typeof e[a]=="function"&&(n[a]=e[a])}let r=Object.keys(n),o,s;try{No(n)}catch(c){s=c}return function(a={},l){if(s)throw s;let u=!1,f={};for(let p=0;p<r.length;p++){let d=r[p],m=n[d],w=a[d],g=m(w,l);if(typeof g>"u"){let _=l&&l.type;throw new Error(q(14))}f[d]=g,u=u||g!==w}return u=u||r.length!==Object.keys(a).length,u?f:a}}function ar(e,t){return function(...n){return t(e.apply(this,n))}}function Po(e,t){if(typeof e=="function")return ar(e,t);if(typeof e!="object"||e===null)throw new Error(q(16));let n={};for(let r in e){let o=e[r];typeof o=="function"&&(n[r]=ar(o,t))}return n}function ur(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function jo(...e){return t=>(n,r)=>{let o=t(n,r),s=()=>{throw new Error(q(15))},c={getState:o.getState,dispatch:(l,...u)=>s(l,...u)},a=e.map(l=>l(c));return s=ur(...a)(o.dispatch),{...o,dispatch:s}}}function Mo(e){return on(e)&&"type"in e&&typeof e.type=="string"}var hn={};Q(hn,{cache:()=>li,css:()=>dn,cx:()=>ii,flush:()=>ri,getRegisteredStyles:()=>ci,hydrate:()=>oi,injectGlobal:()=>bt,keyframes:()=>ai,merge:()=>si,sheet:()=>ui});var Do=!1;function Uo(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function qo(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var lr=(function(){function e(n){var r=this;this._insertTag=function(o){var s;r.tags.length===0?r.insertionPoint?s=r.insertionPoint.nextSibling:r.prepend?s=r.container.firstChild:s=r.before:s=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(o,s),r.tags.push(o)},this.isSpeedy=n.speedy===void 0?!Do:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(qo(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var s=Uo(o);try{s.insertRule(r,s.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var o;return(o=r.parentNode)==null?void 0:o.removeChild(r)}),this.tags=[],this.ctr=0},e})();var V="-ms-",dt="-moz-",I="-webkit-",Rt="comm",Ye="rule",He="decl";var fr="@import";var Nt="@keyframes";var pr="@layer";var dr=Math.abs,Ue=String.fromCharCode,hr=Object.assign;function mr(e,t){return P(e,0)^45?(((t<<2^P(e,0))<<2^P(e,1))<<2^P(e,2))<<2^P(e,3):0}function Lt(e){return e.trim()}function an(e,t){return(e=t.exec(e))?e[0]:e}function $(e,t,n){return e.replace(t,n)}function ht(e,t){return e.indexOf(t)}function P(e,t){return e.charCodeAt(t)|0}function Ne(e,t,n){return e.slice(t,n)}function Y(e){return e.length}function Ge(e){return e.length}function Je(e,t){return t.push(e),e}function un(e,t){return e.map(t).join("")}var Pt=1,Ze=1,yr=0,H=0,M=0,Qe="";function mt(e,t,n,r,o,s,c){return{value:e,root:t,parent:n,type:r,props:o,children:s,line:Pt,column:Ze,length:c,return:""}}function et(e,t){return hr(mt("",null,null,"",null,null,0),e,{length:-e.length},t)}function gr(){return M}function br(){return M=H>0?P(Qe,--H):0,Ze--,M===10&&(Ze=1,Pt--),M}function G(){return M=H<yr?P(Qe,H++):0,Ze++,M===10&&(Ze=1,Pt++),M}function ae(){return P(Qe,H)}function yt(){return H}function tt(e,t){return Ne(Qe,e,t)}function ze(e){switch(e){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 jt(e){return Pt=Ze=1,yr=Y(Qe=e),H=0,[]}function Mt(e){return Qe="",e}function nt(e){return Lt(tt(H-1,ln(e===91?e+2:e===40?e+1:e)))}function wr(e){for(;(M=ae())&&M<33;)G();return ze(e)>2||ze(M)>3?"":" "}function xr(e,t){for(;--t&&G()&&!(M<48||M>102||M>57&&M<65||M>70&&M<97););return tt(e,yt()+(t<6&&ae()==32&&G()==32))}function ln(e){for(;G();)switch(M){case e:return H;case 34:case 39:e!==34&&e!==39&&ln(M);break;case 40:e===41&&ln(e);break;case 92:G();break}return H}function Er(e,t){for(;G()&&e+M!==57;)if(e+M===84&&ae()===47)break;return"/*"+tt(t,H-1)+"*"+Ue(e===47?e:G())}function _r(e){for(;!ze(ae());)G();return tt(e,H)}function vr(e){return Mt(Dt("",null,null,null,[""],e=jt(e),0,[0],e))}function Dt(e,t,n,r,o,s,c,a,l){for(var u=0,f=0,p=c,d=0,m=0,w=0,g=1,_=1,h=1,T=0,v="",S=o,x=s,C=r,k=v;_;)switch(w=T,T=G()){case 40:if(w!=108&&P(k,p-1)==58){ht(k+=$(nt(T),"&","&\f"),"&\f")!=-1&&(h=-1);break}case 34:case 39:case 91:k+=nt(T);break;case 9:case 10:case 13:case 32:k+=wr(w);break;case 92:k+=xr(yt()-1,7);continue;case 47:switch(ae()){case 42:case 47:Je(Vo(Er(G(),yt()),t,n),l);break;default:k+="/"}break;case 123*g:a[u++]=Y(k)*h;case 125*g:case 59:case 0:switch(T){case 0:case 125:_=0;case 59+f:h==-1&&(k=$(k,/\f/g,"")),m>0&&Y(k)-p&&Je(m>32?Sr(k+";",r,n,p-1):Sr($(k," ","")+";",r,n,p-2),l);break;case 59:k+=";";default:if(Je(C=Tr(k,t,n,u,f,o,a,v,S=[],x=[],p),s),T===123)if(f===0)Dt(k,t,C,C,S,s,p,a,x);else switch(d===99&&P(k,3)===110?100:d){case 100:case 108:case 109:case 115:Dt(e,C,C,r&&Je(Tr(e,C,C,0,0,o,a,v,o,S=[],p),x),o,x,p,a,r?S:x);break;default:Dt(k,C,C,C,[""],x,0,a,x)}}u=f=m=0,g=h=1,v=k="",p=c;break;case 58:p=1+Y(k),m=w;default:if(g<1){if(T==123)--g;else if(T==125&&g++==0&&br()==125)continue}switch(k+=Ue(T),T*g){case 38:h=f>0?1:(k+="\f",-1);break;case 44:a[u++]=(Y(k)-1)*h,h=1;break;case 64:ae()===45&&(k+=nt(G())),d=ae(),f=p=Y(v=k+=_r(yt())),T++;break;case 45:w===45&&Y(k)==2&&(g=0)}}return s}function Tr(e,t,n,r,o,s,c,a,l,u,f){for(var p=o-1,d=o===0?s:[""],m=Ge(d),w=0,g=0,_=0;w<r;++w)for(var h=0,T=Ne(e,p+1,p=dr(g=c[w])),v=e;h<m;++h)(v=Lt(g>0?d[h]+" "+T:$(T,/&\f/g,d[h])))&&(l[_++]=v);return mt(e,t,n,o===0?Ye:a,l,u,f)}function Vo(e,t,n){return mt(e,t,n,Rt,Ue(gr()),Ne(e,2,-2),0)}function Sr(e,t,n,r){return mt(e,t,n,He,Ne(e,0,r),Ne(e,r+1,-1),r)}function qe(e,t){for(var n="",r=Ge(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function kr(e,t,n,r){switch(e.type){case pr:if(e.children.length)break;case fr:case He:return e.return=e.return||e.value;case Rt:return"";case Nt:return e.return=e.value+"{"+qe(e.children,r)+"}";case Ye:e.value=e.props.join(",")}return Y(n=qe(e.children,r))?e.return=e.value+"{"+n+"}":""}function Cr(e){var t=Ge(e);return function(n,r,o,s){for(var c="",a=0;a<t;a++)c+=e[a](n,r,o,s)||"";return c}}function Or(e){return function(t){t.root||(t=t.return)&&e(t)}}function Ar(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Fo=function(t,n,r){for(var o=0,s=0;o=s,s=ae(),o===38&&s===12&&(n[r]=1),!ze(s);)G();return tt(t,H)},Ko=function(t,n){var r=-1,o=44;do switch(ze(o)){case 0:o===38&&ae()===12&&(n[r]=1),t[r]+=Fo(H-1,n,r);break;case 2:t[r]+=nt(o);break;case 4:if(o===44){t[++r]=ae()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=Ue(o)}while(o=G());return t},Wo=function(t,n){return Mt(Ko(jt(t),n))},$r=new WeakMap,Bo=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,o=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!$r.get(r))&&!o){$r.set(t,!0);for(var s=[],c=Wo(n,s),a=r.props,l=0,u=0;l<c.length;l++)for(var f=0;f<a.length;f++,u++)t.props[u]=s[l]?c[l].replace(/&\f/g,a[f]):a[f]+" "+c[l]}}},Xo=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function Ir(e,t){switch(mr(e,t)){case 5103:return I+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return I+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return I+e+dt+e+V+e+e;case 6828:case 4268:return I+e+V+e+e;case 6165:return I+e+V+"flex-"+e+e;case 5187:return I+e+$(e,/(\w+).+(:[^]+)/,I+"box-$1$2"+V+"flex-$1$2")+e;case 5443:return I+e+V+"flex-item-"+$(e,/flex-|-self/,"")+e;case 4675:return I+e+V+"flex-line-pack"+$(e,/align-content|flex-|-self/,"")+e;case 5548:return I+e+V+$(e,"shrink","negative")+e;case 5292:return I+e+V+$(e,"basis","preferred-size")+e;case 6060:return I+"box-"+$(e,"-grow","")+I+e+V+$(e,"grow","positive")+e;case 4554:return I+$(e,/([^-])(transform)/g,"$1"+I+"$2")+e;case 6187:return $($($(e,/(zoom-|grab)/,I+"$1"),/(image-set)/,I+"$1"),e,"")+e;case 5495:case 3959:return $(e,/(image-set\([^]*)/,I+"$1$`$1");case 4968:return $($(e,/(.+:)(flex-)?(.*)/,I+"box-pack:$3"+V+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+I+e+e;case 4095:case 3583:case 4068:case 2532:return $(e,/(.+)-inline(.+)/,I+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Y(e)-1-t>6)switch(P(e,t+1)){case 109:if(P(e,t+4)!==45)break;case 102:return $(e,/(.+:)(.+)-([^]+)/,"$1"+I+"$2-$3$1"+dt+(P(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~ht(e,"stretch")?Ir($(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(P(e,t+1)!==115)break;case 6444:switch(P(e,Y(e)-3-(~ht(e,"!important")&&10))){case 107:return $(e,":",":"+I)+e;case 101:return $(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+I+(P(e,14)===45?"inline-":"")+"box$3$1"+I+"$2$3$1"+V+"$2box$3")+e}break;case 5936:switch(P(e,t+11)){case 114:return I+e+V+$(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return I+e+V+$(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return I+e+V+$(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return I+e+V+e+e}return e}var Yo=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case He:t.return=Ir(t.value,t.length);break;case Nt:return qe([et(t,{value:$(t.value,"@","@"+I)})],o);case Ye:if(t.length)return un(t.props,function(s){switch(an(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return qe([et(t,{props:[$(s,/:(read-\w+)/,":"+dt+"$1")]})],o);case"::placeholder":return qe([et(t,{props:[$(s,/:(plac\w+)/,":"+I+"input-$1")]}),et(t,{props:[$(s,/:(plac\w+)/,":"+dt+"$1")]}),et(t,{props:[$(s,/:(plac\w+)/,V+"input-$1")]})],o)}return""})}},Ho=[Yo],Rr=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(g){var _=g.getAttribute("data-emotion");_.indexOf(" ")!==-1&&(document.head.appendChild(g),g.setAttribute("data-s",""))})}var o=t.stylisPlugins||Ho,s={},c,a=[];c=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(g){for(var _=g.getAttribute("data-emotion").split(" "),h=1;h<_.length;h++)s[_[h]]=!0;a.push(g)});var l,u=[Bo,Xo];{var f,p=[kr,Or(function(g){f.insert(g)})],d=Cr(u.concat(o,p)),m=function(_){return qe(vr(_),d)};l=function(_,h,T,v){f=T,m(_?_+"{"+h.styles+"}":h.styles),v&&(w.inserted[h.name]=!0)}}var w={key:n,sheet:new lr({key:n,container:c,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:s,registered:{},insert:l};return w.sheet.hydrate(a),w};function Nr(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Lr={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var Go=!1,Jo=/[A-Z]|^ms/g,Zo=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Dr=function(t){return t.charCodeAt(1)===45},Pr=function(t){return t!=null&&typeof t!="boolean"},fn=Ar(function(e){return Dr(e)?e:e.replace(Jo,"-$&").toLowerCase()}),jr=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(Zo,function(r,o,s){return Ee={name:o,styles:s,next:Ee},o})}return Lr[t]!==1&&!Dr(t)&&typeof n=="number"&&n!==0?n+"px":n},zo="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function gt(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var o=n;if(o.anim===1)return Ee={name:o.name,styles:o.styles,next:Ee},o.name;var s=n;if(s.styles!==void 0){var c=s.next;if(c!==void 0)for(;c!==void 0;)Ee={name:c.name,styles:c.styles,next:Ee},c=c.next;var a=s.styles+";";return a}return Qo(e,t,n)}case"function":{if(e!==void 0){var l=Ee,u=n(e);return Ee=l,gt(e,t,u)}break}}var f=n;if(t==null)return f;var p=t[f];return p!==void 0?p:f}function Qo(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=gt(e,t,n[o])+";";else for(var s in n){var c=n[s];if(typeof c!="object"){var a=c;t!=null&&t[a]!==void 0?r+=s+"{"+t[a]+"}":Pr(a)&&(r+=fn(s)+":"+jr(s,a)+";")}else{if(s==="NO_COMPONENT_SELECTOR"&&Go)throw new Error(zo);if(Array.isArray(c)&&typeof c[0]=="string"&&(t==null||t[c[0]]===void 0))for(var l=0;l<c.length;l++)Pr(c[l])&&(r+=fn(s)+":"+jr(s,c[l])+";");else{var u=gt(e,t,c);switch(s){case"animation":case"animationName":{r+=fn(s)+":"+u+";";break}default:r+=s+"{"+u+"}"}}}}return r}var Mr=/label:\s*([^\s;{]+)\s*(;|$)/g,Ee;function Ut(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,o="";Ee=void 0;var s=e[0];if(s==null||s.raw===void 0)r=!1,o+=gt(n,t,s);else{var c=s;o+=c[0]}for(var a=1;a<e.length;a++)if(o+=gt(n,t,e[a]),r){var l=s;o+=l[a]}Mr.lastIndex=0;for(var u="",f;(f=Mr.exec(o))!==null;)u+="-"+f[1];var p=Nr(o)+u;return{name:p,styles:o,next:Ee}}var ei=!0;function pn(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(r+=o+" ")}),r}var ti=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||ei===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},Ur=function(t,n,r){ti(t,n,r);var o=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var s=n;do t.insert(n===s?"."+o:"",s,t.sheet,!0),s=s.next;while(s!==void 0)}};function qr(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function Vr(e,t,n){var r=[],o=pn(e,r,n);return r.length<2?n:o+t(r)}var Fr=function(t){var n=Rr(t);n.sheet.speedy=function(a){this.isSpeedy=a},n.compat=!0;var r=function(){for(var l=arguments.length,u=new Array(l),f=0;f<l;f++)u[f]=arguments[f];var p=Ut(u,n.registered,void 0);return Ur(n,p,!1),n.key+"-"+p.name},o=function(){for(var l=arguments.length,u=new Array(l),f=0;f<l;f++)u[f]=arguments[f];var p=Ut(u,n.registered),d="animation-"+p.name;return qr(n,{name:p.name,styles:"@keyframes "+d+"{"+p.styles+"}"}),d},s=function(){for(var l=arguments.length,u=new Array(l),f=0;f<l;f++)u[f]=arguments[f];var p=Ut(u,n.registered);qr(n,p)},c=function(){for(var l=arguments.length,u=new Array(l),f=0;f<l;f++)u[f]=arguments[f];return Vr(n.registered,r,ni(u))};return{css:r,cx:c,injectGlobal:s,keyframes:o,hydrate:function(l){l.forEach(function(u){n.inserted[u]=!0})},flush:function(){n.registered={},n.inserted={},n.sheet.flush()},sheet:n.sheet,cache:n,getRegisteredStyles:pn.bind(null,n.registered),merge:Vr.bind(null,n.registered,r)}},ni=function e(t){for(var n="",r=0;r<t.length;r++){var o=t[r];if(o!=null){var s=void 0;switch(typeof o){case"boolean":break;case"object":{if(Array.isArray(o))s=e(o);else{s="";for(var c in o)o[c]&&c&&(s&&(s+=" "),s+=c)}break}default:s=o}s&&(n&&(n+=" "),n+=s)}}return n};var _e=Fr({key:"css"}),ri=_e.flush,oi=_e.hydrate,ii=_e.cx,si=_e.merge,ci=_e.getRegisteredStyles,bt=_e.injectGlobal,ai=_e.keyframes,dn=_e.css,ui=_e.sheet,li=_e.cache;var wn={};Q(wn,{Children:()=>Ve,Fragment:()=>Kr,Portal:()=>Wr,deepEqual:()=>gn,eval_num:()=>gi,findDOMNode:()=>pi,forwardRef:()=>bn,getComponentUnderPointer:()=>di,id_num:()=>yi,isAsync:()=>hi,isClass:()=>Le,isEmpty:()=>K,isError:()=>mi,isThenable:()=>Vt,isValidComponent:()=>it,isValidElement:()=>fi,shallowEqual:()=>se,toBool:()=>Ft});var yn={};Q(yn,{ARGS:()=>Tt,CALLBACK:()=>_t,CHILD_CLASS_ADDENDUM:()=>pe,CLEARED:()=>Oe,CLONED_STYLE:()=>wt,COMPONENT:()=>rt,CORE:()=>y,DUE:()=>de,IDX:()=>F,INTERVAL:()=>Et,IS_ZOMBIE:()=>mn,LAZY:()=>ot,LOCATION:()=>qt,MEMOIZED:()=>Te,REPEAT:()=>xt,TEXT:()=>J});var[qt,y,rt,J,mn,F,pe,Te,ot,wt,de,xt,Oe,Et,_t,Tt]=[Symbol.for("LILACT:LOCATION"),Symbol.for("LILACT:CORE"),Symbol.for("LILACT:COMPONENT"),Symbol.for("LILACT:TEXT"),Symbol.for("LILACT:IS_ZOMBIE"),Symbol.for("LILACT:IDX"),Symbol.for("LILACT:CHILD_CLASS_ADDENDUM"),Symbol.for("LILACT:MEMOIZED"),Symbol.for("LILACT:LAZY"),Symbol.for("LILACT:CLONED_STYLE"),Symbol.for("LILACT:TIMERS:DUE"),Symbol.for("LILACT:TIMERS:REPEAT"),Symbol.for("LILACT:TIMERS:CLEARED"),Symbol.for("LILACT:TIMERS:INTERVAL"),Symbol.for("LILACT:TIMERS:CALLBACK"),Symbol.for("LILACT:TIMERS:ARGS")];var Se=e=>{let t=Object.prototype.toString.call(e).toLowerCase();return/\[object (.*)]/g.exec(t)[1]},it=e=>!!(e&&(e[y]!==void 0||e[TEXT]!==void 0)),fi=it,pi=e=>{if(!e[y]?.element?.parentNode)throw new Error("findDOMNode only works on mounted components.");return e[y].element};function Kr({children:e}){return e}Kr.displayName="Fragment";function Wr({children:e,view:t}){return this[y].portal=t,e}Wr.displayName="Portal";var Ve={_isNil(e){return e==null},_flattenInto(e,t){if(!this._isNil(t)){if(Array.isArray(t)){for(let n of t)this._flattenInto(e,n);return}e.push(t)}},toArray(e){let t=[];if(!e)return t;for(let n of e)this._flattenInto(t,n);return t},count(e){return this.toArray(e).length},only(e){let t=this.toArray(e);if(t.length!==1)throw new Error(t.length===0?"Expected exactly one child, but received none.":"Expected exactly one child, but received more than one.");return t[0]},map(e,t){let n=this.toArray(e),r=[];for(let o=0;o<n.length;o++)r.push(t(n[o],o));return r},forEach(e,t){let n=this.toArray(e);for(let r=0;r<n.length;r++)t(n[r],r)},find(e,t){let n=this.toArray(e);for(let r=0;r<n.length;r++)if(t(n[r],r))return n[r]},pickOne(e,t){let n=this.toArray(e),r,o=0;for(let s=0;s<n.length&&!(t(n[s],s)&&(o++,r=n[s],o>1));s++);if(o!==1)throw new Error(o===0?"pickOne expected exactly one matching child, but matched none.":"pickOne expected exactly one matching child, but matched multiple.");return r},first(e){return this.toArray(e)[0]},last(e){let t=this.toArray(e);return t.length?t[t.length-1]:void 0}},bn=e=>{let t=function(n,r){return e({...n,ref:void 0},r)};return t.displayName="Forwarded "+e.displayName,t};function di(){let e,t=new Promise((o,s)=>{e=o}),n=document.createElement("div");n.style.cssText="position:fixed;inset:0;z-index:2147483647;cursor:crosshair;background:transparent;";function r(o){o.stopImmediatePropagation(),window.removeEventListener("click",r,!0),n.style.display="none";let s=document.elementFromPoint(o.clientX,o.clientY);for(n.remove();!s[rt]&&s.parentNode;)s=s.parentNode;return e(s[rt]),!1}return setTimeout(()=>{document.body.appendChild(n),window.addEventListener("click",r,!0)},50),t}function K(e){for(let t in e)return!1;return!0}var se=(e,t,n)=>{if(Object.is(e,t))return!0;if(Se(e)!==Se(t))return!1;if(Se(e)==="array")return e.length!==t.length?!1:e.every((r,o)=>o===n||Object.is(r,t[o]));if(Se(e)==="object"){let r=Object.keys(e).filter(s=>s!==n),o=Object.keys(t).filter(s=>s!==n);return r.length!==o.length?!1:r.every(s=>Object.prototype.hasOwnProperty.call(t,s)&&Object.is(e[s],t[s]))}return Se(e)==="date"?e.getTime()===t.getTime():Object.is(e,t)};function gn(e,t){return Se(e)!==Se(t)?!1:Se(e)==="array"?e.length!==t.length?!1:e.every((n,r)=>gn(n,t[r])):Se(e)==="object"?Object.keys(e).length!==Object.keys(t).length?!1:Object.keys(e).every(n=>gn(e[n],t[n])):Se(e)==="date"?e.getTime()===t.getTime():e===t}function Le(e){return!(e&&e.constructor===Function)||e.prototype===void 0?!1:Function.prototype!==Object.getPrototypeOf(e)?!0:Object.getOwnPropertyNames(e.prototype).length>1}function hi(e){return typeof e=="function"&&e.constructor&&e.constructor.name==="AsyncFunction"}function Vt(e){return e&&(typeof e=="object"||typeof e=="function")&&typeof e.then=="function"}function mi(e){return e instanceof Error||Object.prototype.toString.call(e)==="[object Error]"}function Ft(e){if(typeof e=="boolean")return e;if(typeof e=="number")return e!==0;if(typeof e=="string"){if(e=e.trim().toLowerCase(),e==="true")return!0;if(e==="false")return!1}return!!e}var yi=Math.floor(Math.random()*1e4),gi=0;function Z(e){return e==null}function W(e){return e||"<<anonymous>>"}function bi(e){return e&&(e.displayName||e.name)||"Unknown"}function Br(e){return e==null||e===!1||e===!0||typeof e=="string"||typeof e=="number"||it(e)?!0:Array.isArray(e)?e.every(Br):!1}function wi(e){return typeof e=="function"||typeof e=="string"}function he(e){let t=function(r,o,s,c,a,l){let u=r[o];if(Z(u)||e(u))return null;let f=e.expectedType||"the correct type",p=u===null?"null":typeof u;return new Error(`Invalid ${c} \`${a}\` of type \`${p}\` supplied to \`${W(s)}\`, expected \`${f}\`.`)};return t.isRequired=function(r,o,s,c,a){let l=r[o];return Z(l)?new Error(`The ${c} \`${a}\` is marked as required in \`${W(s)}\`, but its value is \`${l}\`.`):t(r,o,s,c,a)},t}function xi(){let e={};e.any=(function(){let r=function(s,c,a,l,u){return null};return r.isRequired=function(){return null},r})(),e.array=he(r=>Array.isArray(r)),e.array.expectedType="array",e.bool=he(r=>typeof r=="boolean"),e.bool.expectedType="boolean",e.func=he(r=>typeof r=="function"),e.func.expectedType="function",e.number=he(r=>typeof r=="number"&&!Number.isNaN(r)),e.number.expectedType="number",e.object=he(r=>typeof r=="object"&&r!==null&&!Array.isArray(r)),e.object.expectedType="object",e.string=he(r=>typeof r=="string"),e.string.expectedType="string",e.symbol=he(r=>typeof r=="symbol"),e.symbol.expectedType="symbol",e.component=he(r=>it(r)),e.component.expectedType="component",e.element=he(r=>it(r)),e.element.expectedType="element",e.node=he(r=>Br(r)),e.node.expectedType="node",e.elementType=he(r=>wi(r)),e.elementType.expectedType="elementType",e.oneOf=function(o){let s=Array.isArray(o)?o:[],c=function(l,u,f,p,d){let m=l[u];if(Z(m))return null;for(let g=0;g<s.length;g++)if(m===s[g])return null;let w=m===null?"null":typeof m;return new Error(`Invalid ${p} \`${d}\` of value \`${String(m)}\` supplied to \`${W(f)}\`, expected one of [${s.map(String).join(", ")}] (received type \`${w}\`).`)};return c.isRequired=function(l,u,f,p,d){return Z(l[u])?new Error(`The ${p} \`${d}\` is marked as required in \`${W(f)}\`, but its value is \`${l[u]}\`.`):c(l,u,f,p,d)},c},e.oneOfType=function(o){let s=o||[],c=function(l,u,f,p,d){let m=l[u];if(Z(m))return null;for(let w=0;w<s.length;w++)if(s[w](l,u,f,p,d)===null)return null;return new Error(`Invalid ${p} \`${d}\` supplied to \`${W(f)}\` (none of the allowed types matched).`)};return c.isRequired=function(l,u,f,p,d){return Z(l[u])?new Error(`The ${p} \`${d}\` is marked as required in \`${W(f)}\`, but its value is \`${l[u]}\`.`):c(l,u,f,p,d)},c},e.arrayOf=function(o){let s=o,c=function(l,u,f,p,d){let m=l[u];if(Z(m))return null;if(!Array.isArray(m))return new Error(`Invalid ${p} \`${d}\` of type \`${typeof m}\` supplied to \`${W(f)}\`, expected an array.`);for(let w=0;w<m.length;w++){let g=`${d}[${w}]`,_=s({[u]:m[w]},u,f,p,g);if(_!==null)return _}return null};return c.isRequired=function(l,u,f,p,d){return Z(l[u])?new Error(`The ${p} \`${d}\` is marked as required in \`${W(f)}\`, but its value is \`${l[u]}\`.`):c(l,u,f,p,d)},c},e.objectOf=function(o){let s=o,c=function(l,u,f,p,d){let m=l[u];if(Z(m))return null;if(typeof m!="object"||m===null||Array.isArray(m))return new Error(`Invalid ${p} \`${d}\` of type \`${typeof m}\` supplied to \`${W(f)}\`, expected an object.`);let w=Object.keys(m);for(let g=0;g<w.length;g++){let _=w[g],h=`${d}.${_}`,T=s({[u]:m[_]},u,f,p,h);if(T!==null)return T}return null};return c.isRequired=function(l,u,f,p,d){return Z(l[u])?new Error(`The ${p} \`${d}\` is marked as required in \`${W(f)}\`, but its value is \`${l[u]}\`.`):c(l,u,f,p,d)},c};function t(r,{exact:o}){let s=r?Object.keys(r):[],c=function(l,u,f,p,d){let m=l[u];if(Z(m))return null;if(typeof m!="object"||m===null||Array.isArray(m))return new Error(`Invalid ${p} \`${d}\` of type \`${typeof m}\` supplied to \`${W(f)}\`, expected an object.`);if(o){let g=Object.keys(m);for(let _=0;_<g.length;_++){let h=g[_];if(!Object.prototype.hasOwnProperty.call(r,h)){let T=`${d}.${h}`;return new Error(`Invalid ${p} \`${T}\` supplied to \`${W(f)}\`: extra key \`${h}\` is not allowed by exact().`)}}}for(let g=0;g<s.length;g++){let _=s[g],h=r[_],T=m[_],v=`${d}.${_}`;if(Z(T)){let x=h({[u]:T},u,f,p,v);if(x!==null)return x;continue}let S=h({[u]:T},u,f,p,v);if(S!==null)return S}return null};return c.isRequired=function(l,u,f,p,d){return Z(l[u])?new Error(`The ${p} \`${d}\` is marked as required in \`${W(f)}\`, but its value is \`${l[u]}\`.`):c(l,u,f,p,d)},c}e.shape=function(o){return t(o,{exact:!1})},e.exact=function(o){return t(o,{exact:!0})},e.instanceOf=function(o){let s=function(a,l,u,f,p){let d=a[l];return Z(d)||d instanceof o?null:new Error(`Invalid ${f} \`${p}\` supplied to \`${W(u)}\`: expected instance of \`${bi(o)}\`.`)};return s.isRequired=function(a,l,u,f,p){return Z(a[l])?new Error(`The ${f} \`${p}\` is marked as required in \`${W(u)}\`, but its value is \`${a[l]}\`.`):s(a,l,u,f,p)},s};let n=new Set;return e.checkPropTypes=function(o,s,c,a){},e}var Xr=xi();var Sn={};Q(Sn,{Component:()=>Pe,HTMLComponent:()=>vt,RootComponent:()=>kt,boolean_html_attributes_set:()=>zr,capture_events_set:()=>Wt,cloneComponent:()=>Gr,cloneElement:()=>Ni,createComponent:()=>Tn,createElement:()=>ji,createPortal:()=>Ri,createRoot:()=>Hr,current_component:()=>Mi,effect_timeout:()=>Bi,events_set:()=>Kt,insertion_effects:()=>Fi,layout_effects:()=>Vi,length_css_attributes_set:()=>Zr,memo:()=>Pi,passive_effects:()=>Ki,processEffects:()=>Yr,render:()=>Li,replaceAllComponentInstances:()=>ki,replaceComponentEntity:()=>_n,roots:()=>qi,special_attributes:()=>Jr,update_cbs:()=>Ui,update_interval_margin:()=>Xi,update_set:()=>Di,update_timeout:()=>Wi});var Ei="http://www.w3.org/2000/svg";function Fe(e){return e?.[Te]?e.component:e}var xn=new Map,ue=new WeakMap;function _i(e){if(e=Fe(e),typeof e!="function")return e;let t=ue.get(e);if(!t){let n=st(e);t=ue.get(n)||{},ue.set(e,t),ue.set(n,t)}return t}function st(e){e=Fe(e);let t=new Set;for(;typeof e=="function"&&xn.has(e)&&!t.has(e);)t.add(e),e=xn.get(e);return e}var Ae=new Map;function Ti(e){let t=Fe(e.entity);if(typeof t!="function")return;let n=Ae.get(t);n||(n=new Set,Ae.set(t,n)),n.add(e),e.registered_entity=t}function Si(e){let t=e.registered_entity;if(!t)return;let n=Ae.get(t);n&&(n.delete(e),n.size===0&&Ae.delete(t)),delete e.registered_entity}function vi(e,t,n){let r=Ae.get(t);r&&(r.delete(e),r.size===0&&Ae.delete(t));let o=Ae.get(n);o||(o=new Set,Ae.set(n,o)),o.add(e),e.registered_entity=n}function _n(e,t){if(!e||typeof t!="function")return!1;let n=Fe(e.entity),r=st(t),o=ue.get(n)||ue.get(r)||{};if(ue.set(n,o),ue.set(r,o),n===r)return!0;let s=e.component;return!s||typeof n!="function"||typeof r!="function"||Le(n)!==Le(r)?!1:(Le(r)?Object.setPrototypeOf(s,r.prototype):s.render=r.bind(s),e.entity=r,vi(e,n,r),!0)}function ki(e,t){if(e=Fe(e),t=Fe(t),typeof e!="function"||typeof t!="function"||(t=st(t),e===t))return 0;let n=ue.get(e)||ue.get(t)||{};ue.set(e,n),ue.set(t,n),xn.set(e,t);let r=Ae.get(e);if(!r)return 0;let o=0;for(let s of[...r])_n(s,t)&&(s.apply(s.props,s.state),o++);return o}var En=class{constructor(t){ee(this,"owner");ee(this,"current_map",new Map);ee(this,"new_map",new Map);ee(this,"pick_index",0);this.owner=t}pick(t,n,r){let o,s=this.current_map.get(t);if(s&&s.length>s[F]){o=s[s[F]],s[F]++;let c=Fe(o.entity),a=st(r);typeof c!=typeof a||typeof c=="function"&&Le(c)!==Le(a)?o=n():a&&_n(o,a)}else o=n();return s=this.new_map.get(t),s?s.push(o):(s=[o],this.new_map.set(t,s),s[F]=0),o&&(o.parent??(o.parent=this.owner)),o}commit(){this.current_map.forEach(t=>{t.slice(t[F]).forEach(n=>{n.cleanup?n.cleanup():n.element&&!n.portal&&n.element.parentElement?.removeChild?.(n.element)})}),this.current_map=this.new_map,this.new_map=new Map}},St=class{constructor(t,n){ee(this,"component");ee(this,"props");this.component=t,this.props=n||{}}apply(t=this.props,n=this.next_state||this.state){try{let r=!0;if(this.outlet&&this?.[Te]&&se(this.props,t,"children")&&se(this.props?.children,t?.children)&&(r=!1),r){typeof n=="function"&&(n=n(this.state));let o=this.entity?.defaultProps||this.component?.constructor?.defaultProps;if(o&&(t={...o,...t||{}}),t?.style&&typeof t.style=="object"&&!t.style[wt]&&(t.style={...t.style,[wt]:!0}),(this?.parent?.component?.context||this?.parent?.component?.getChildContext)&&(this.context={...this.parent.component.context,...this.parent.component.getChildContext?.()}),this.component.shouldComponentUpdate&&!this.component.shouldComponentUpdate(n,t,this.context))return;typeof this.entity=="string"&&(this.element instanceof Element||(this.is_svg||this.container.is_svg?(this.is_svg=!0,this.element=document.createElementNS(Ei,this.entity)):this.element=document.createElement(this.entity),t?.defaultValue&&(this.element.value=String(t.defaultValue).slice(0,t?.maxLength)),t?.defaultChecked&&(this.element.checked=t.defaultChecked)),this.element[rt]=this.component),t.ref&&(typeof t.ref=="function"?t.ref(this.element||this.component):t.ref.current=this.element||this.component),t!==void 0&&this.component.componentWillReceiveProps&&this.component.componentWillReceiveProps(t),this.component.componentWillUpdate&&this.component.componentWillUpdate(t,n);let s=this.state,c=this.props;if(this.element&&!(this?.component instanceof kt)&&this.updateElementProps(t),this.props=t,typeof this.next_state=="object")this.state?Object.assign(this.state,n):this.state={...n};else if(this.next_state!==void 0)throw new Error("Component.setState only accepts objects or functions is new state.");this.next_state&&delete this.next_state,this.hooks!==void 0?(this.hook_index=0,E.current_component=[this,E.current_component],this.outlet=this.component.render(t,{current:this.element||this.component}),E.current_component=E.current_component[1]):this.outlet=this.component.render({current:this.element||this.component}),this?.portal&&(this.element=this.portal),this.outlet?.constructor?.name!=="Array"?this.outlet=[this.outlet]:this.outlet=[...this.outlet];for(let a=0;a<this.outlet.length;a++){let l=this.outlet[a];if(l==null||typeof l=="boolean")this.outlet.splice(a,1),a--;else if(typeof l=="function"){let u=this.childFunctionHandler(l);this.outlet.splice(a,1,u),a--}else if(l.constructor.name==="Array")this.outlet.splice(a,1,...l),a--;else{let u=Ai(this,l);this.outlet[a]=u,u[J]===void 0?(u.container=this.element?this:this.container,u.apply(l.props)):u.element?u[J]!==l[J]&&(u.element.textContent=l[J],u[J]=l[J]):(u.element=document.createTextNode(l[J]),u[J]=l[J])}}this.cache&&this.cache.commit(),this.element&&this.arrangeOutlet(),this.component.componentDidUpdate&&this.component.componentDidUpdate(c,s,this.last_snapshot),this.last_snapshot&&delete this.last_snapshot}}catch(r){Ci(this,r)}}async cleanup(){Si(this);try{let t=[];if(this.props?.ref&&(typeof this.props.ref=="function"?this.props.ref(null):this.props.ref.current=null),this.component.componentWillUnmount&&this.component.componentWillUnmount(),this?.element?.parentElement&&!this.portal&&this.element.parentElement.removeChild(this.element),this.outlet!==void 0)for(let n of this.outlet)n.cleanup&&t.push(n.cleanup());if(this.props?.children!==void 0)for(let n of this.props.children)n.cleanup&&t.push(n.cleanup());if(this.hooks!==void 0)for(let n of this.hooks)n.cleanup&&t.push(n.cleanup());await Promise.all(t)}catch(t){throw t}}updateElementProps(t,n=!1){this.entity==="input"?(t?.type||(t.type="text"),t.type!==this.element.type&&(this.element.type=t.type),t?.value!==void 0&&t?.value!==this.element.value&&(t.value===void 0&&(t.value=""),this.element.value=String(t.value).slice(0,t?.maxLength))):this.entity==="textarea"?t?.value!==this.element.value&&(this.element.value=String(t.value).slice(0,t?.maxLength)):this.entity==="select"?typeof t.value=="string"&&t.value!==this.element.value&&(this.element.value=t.value):this.entity==="option"&&(this.container?.props?.value?.constructor?.name==="Array"?t.selected=this.container.props.value.indexOf(t.value)!==-1:typeof this.container?.props?.value=="string"&&(t.selected=this.container.props.value===t.value));for(let r in this.props){let o=r.toLowerCase();(!t.hasOwnProperty(r)||!r.startsWith("data-")&&!r.startsWith("aria-")&&(t[r]===void 0||t[r]===null||t[r]===""||t[r]===!1))&&(Kt.has(o)?this.event_detachers[o]():this.element.removeAttribute(r))}for(let r in t){let o=r.toLowerCase();if(!Jr.has(o)&&(t===this.props||!E.defaultIsEqual(t[r],this.props[r])||n))if(Kt.has(o))this.event_detachers??(this.event_detachers={}),this.event_detachers[o]?.(),this.event_detachers[o]=E.addWrappedEventListener(this.element,o.substring(2),t[r]);else if(Wt.hasOwnProperty(o)){let s=Wt[o];this.event_detachers??(this.event_detachers={}),this.event_detachers[o]?.(),this.event_detachers[o]=E.addWrappedEventListener(this.element,s.substring(2),t[r],{capture:!0})}else if(r==="style")if(typeof t.style=="string")this.element.style=t.style;else{if(this.props?.style)if(typeof this.props.style=="string")this.element.style="";else for(let s in this.props.style)s!==wt&&!t?.style?.hasOwnProperty?.(s)&&(this.element.style[s]="");for(let s in t.style)Zr.has(s)&&isFinite(t.style[s])&&(t.style[s]+="px");Object.assign(this.element.style,t.style)}else if(zr.has(r)){let s=Ft(t[r]);s!==this.element[r]&&(this.element[r]=s)}else r==="autoFocus"?this.element.autofocus=Ft(t[r]):r==="htmlFor"||r==="for"?this.element.setAttribute("for",t[r]):(o!=="value"||["input","textarea","select"].indexOf(this.entity)===-1)&&this.element.setAttribute(o,t[r])}t?.action?this.element.onsubmit=t.action:this.element.onsubmit=void 0,this.updateElementClass(t)}updateElementClass(t=this.props){let n=t?.className??t?.class??"";this?.parent?.[pe]&&(n+=" "+this.parent[pe]),n=n.trim();for(let r of Array.from(this.element.classList))n.indexOf(r)===-1&&this.element.classList.remove(r);if(n.length>0){n=n.split(/\s+/g);for(let r of n)r.length>0&&this.element.classList.add(r)}}scanZombies(t,n){let r=t.element.childNodes;for(;r[t.insert_index]&&r[t.insert_index][mn]&&r[t.insert_index]!==n;)t.insert_index++}appendElement(t){t.portal||(this.scanZombies(t.container,t.element),t?.element.parentNode===null?(t.container.element.insertBefore(t.element,t.container.element.childNodes[t.container.insert_index]||null),t?.component?.componentDidMount&&t.component.componentDidMount()):t.container.element.childNodes[t.container.insert_index]!==t.element&&t.container.element.insertBefore(t.element,t.container.element.childNodes[t.container.insert_index]||null),t.container.insert_index++)}arrangeOutlet(){this.insert_index=0;for(let t of this.outlet)t&&(t.element?(t.container=this.element?this:this.container,t.container.appendElement(t)):(t.arrangeOutlet&&t.outlet&&t.arrangeOutlet(),t?.mounted||(t.mounted=!0,t?.component?.componentDidMount&&t.component.componentDidMount())))}childFunctionHandler(t){return t(this.state)}},Ci=(e,t)=>{let n=t?.error instanceof Error?t.error:t?.reason!==void 0?t.reason:t,r=E.isThenable(t)?t:E.traceError(n,t?.fileName||null),o=[e];for(;e&&!e.component?.componentDidCatch;)e=e.parent,e&&o.push(e);e?.component?.componentDidCatch&&e.entity?.getDerivedStateFromError&&e.component.setState(e.entity.getDerivedStateFromError.call(e,r));let s=Array.prototype.map.call(o,c=>`in ${typeof c.component.displayName=="function"?c.component.displayName():c.component.displayName}`).join(`
|
|
58
|
-
`);if(r.componentStack=o,r.componentStackLog=s,e?.component?.componentDidCatch)e.component.componentDidCatch(r,{componentStack:o,componentStackLog:s});else throw t};function Oi(e,t){let n=e;if(e[J]===void 0){let r=e.entity,o=!1,s=e.props[qt];if(s&&delete e.props[qt],typeof r=="object")if(r[Te])o=r[Te],r=r.component;else throw new Error("Invalid component.");if(r=st(r),typeof r=="string")n=new vt(r,e.props);else if(Le(r)){r?.defaultProps&&(e.props={...r.defaultProps,...e.props}),n=new r(e.props);let c=Object.getOwnPropertyDescriptor(n,"state");c&&typeof c.get!="function"&&typeof c.set!="function"&&(n[y].state=n.state,Object.defineProperty(n,"state",{get(){return this[y].state},set(a){if(this[y].state===void 0)this[y].state=a;else throw new Error("Assigning component state this way is not allowed.")}}))}else if(typeof r=="function")r?.defaultProps&&(e.props={...r.defaultProps,...e.props}),n=new Pe(e.props),n.render=r.bind(n),n[y].hooks=[],n[y].hook_index=0;else throw new Error("Error in constructing component.");s&&(n[y].location=s),n[y].entity=r,Ti(n[y]),e.container&&(n[y].container=e.container),o&&(n[y][Te]=!0)}return t instanceof St&&(n[y].parent=t),n}function Ai(e,t){try{e.cache??(e.cache=new En(e));let n=t[J]!==void 0,r=t instanceof St,o=n||r?void 0:st(t.entity),s=!n&&t.props&&t.props.key!==void 0&&t.props.key!==null,c;return n?c=":text:":s?c=t.props.key:typeof o=="function"?c=_i(o):c=o,e.cache.pick(c,()=>n||r?t:Oi(t,e)[y],o)}catch(n){if(t?.component?.componentDidCatch)t.component.componentDidCatch(n);else throw n}}function $i(){clearTimeout(E.effect_timeout);let e=E.update_set,t=E.update_cbs;E.update_set=new Set,E.update_cbs=new Set;for(let n of e)n.apply();for(let n of t)n();Yr()}function Yr(){let e=E.insertion_effects,t=E.layout_effects,n=E.passive_effects;E.insertion_effects=new Set,E.layout_effects=new Set,E.passive_effects=new Set;for(let r of e)r();for(let r of t)r();requestAnimationFrame(()=>{for(let r of n)r()})}var Ii=(e,t)=>{let n;return t.key!==void 0?n=t.key:t.id!==void 0?n=":i:"+t.id:t.path!==void 0?n=":p:"+t.path:t[J]!==void 0?n=":text:":(typeof e=="string"?n=":t:"+e:e?.name?n=e.name:n="::",t.name!==void 0?n=n+":"+t.name:t.path!==void 0&&(n=n+":"+t.path)),n},Pe=class{get state(){return this[y].state}set state(t){if(this[y].state===void 0)this[y].state=t;else throw new Error("Assigning component state this way is not allowed.")}get context(){return this[y].context}set context(t){throw new Error("Assigning component context this way is not allowed.")}get type(){return this[y].entity}set type(t){throw new Error("Component type is immutable.")}get props(){return this[y].props}set props(t){throw new Error("Assigning component props this way is not allowed.")}get ref(){return this[y].ref}set ref(t){throw new Error("Component ref is immutable.")}get key(){return this[y].props.key}set key(t){throw new Error("Component key is immutable.")}get displayName(){let t=this[y].entity;return t?.displayName?t.displayName:typeof t=="string"?t:typeof t=="function"&&t.name||"Component"}constructor(t){this[y]=new St(this,t)}forceUpdate(t){NATIVE_TIMERS.clearTimeout(E.update_timeout),E.update_set.add(this[y].container||this[y]),t&&E.update_cbs.add(t.bind(this)),E.update_timeout=NATIVE_TIMERS.setTimeout($i,E.update_interval_margin)}setState(t,n){this.getSnapshotBeforeUpdate!==void 0&&(this[y].last_snapshot=this.getSnapshotBeforeUpdate(this[y].props,this.state)),this[y].next_state=t,this.forceUpdate(n?n.bind(this):void 0)}},vt=class extends Pe{constructor(t,n){super(n),this[y].entity=t,t==="svg"&&(this[y].is_svg=!0)}render(){return this[y].props.children}},kt=class extends vt{constructor(n,r){super(":root:",r);ee(this,"displayName","Root");typeof this.element=="string"&&(n=document.querySelector(n)),this[y].element=n;for(let o of r.children)o[y]?o[y].container=this[y]:o.container=this[y]}};function Tn(e,t={},...n){if(typeof e!="string"&&typeof e!="function"&&(typeof e!="object"||!e[Te]))throw new Error("Invalid entity for createComponent.");for(let r=0;r<n.length;r++){let o=n[r];if(o==null||typeof o=="boolean"){n.splice(r,1),r--;continue}["number","bigint"].indexOf(typeof o)!==-1&&(o=o.toString()),typeof o=="string"?n[r]={[J]:o}:n[r]=o}return t.key=Ii(e,t),t.children=n,{entity:e,props:t,[y]:null}}function Hr(e){let t;return{render(n){if(t)throw new Error("root already rendered!");return t=new kt(e,{children:[n]}),E.roots.add(t[y]),t.forceUpdate(),t},unmount(){t&&(t.cleanup(),e.innerHTML="")},getCore(){return t[y]}}}function Ri(e,t){return Tn(E.Portal,{view:t},e)}function Gr(e,t,...n){let r={entity:e.entity,props:{...e.props,...t},[y]:null};return n?.length&&(r.props.children=n),r}var Ni=Gr;function Li(e,t){if(e[y]&&(e[y].container||e[y].parent))throw new Error("Component is already in use");return Hr(t).render(e)}function Pi(e){return typeof e=="object"?e[Te]=!0:e={component:e,[Te]:!0,[y]:null},e}var ji=Tn,Mi=[],Di=new Set,Ui=new Set,qi=new Set,Vi=new Set,Fi=new Set,Ki=new Set,Wi,Bi,Xi=0,Jr=new Set(["classname","ref","action","lilact_jsx_loc","children","key","defaultvalue","defaultchecked"]),Kt=new Set(["onafterprint","onbeforeprint","onbeforeunload","onerror","onhashchange","onload","onmessage","onoffline","ononline","onpagehide","onpageshow","onpopstate","onresize","onstorage","onunload","onblur","onchange","oncontextmenu","onfocus","oninput","oninvalid","onreset","onsearch","onselect","onsubmit","oncancel","onkeydown","onkeypress","onkeyup","onclick","ondblclick","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","onmousewheel","onwheel","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","onscroll","oncopy","oncut","onpaste","onabort","oncanplay","oncanplaythrough","oncuechange","ondurationchange","onemptied","onended","onerror","onloadeddata","onloadedmetadata","onloadstart","onpause","onplay","onplaying","onprogress","onratechange","onseeked","onseeking","onstalled","onsuspend","ontimeupdate","onvolumechange","onwaiting","ontoggle","onpointerdown","onpointerup","onpointermove","onpointercancel","onpointerover","onpointerout","onpointerenter","onpointerleave"]),Wt={};for(let e of Kt)Wt[e+"capture"]=e;var Zr=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","top","right","bottom","left","margin","marginTop","marginRight","marginBottom","marginLeft","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","borderWidth","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","outlineWidth","fontSize","lineHeight","letterSpacing","wordSpacing","textIndent","borderRadius","borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius","columnGap","rowGap","gap"]),zr=new Set(["disabled","readOnly","required","checked","multiple","selected","hidden","open","loop","muted","controls","playsInline","allowFullScreen"]);var kn={};Q(kn,{createContext:()=>ct,startTransition:()=>es,useActionState:()=>Ji,useCallback:()=>me,useContext:()=>at,useDebugValue:()=>Qi,useDeferredValue:()=>zi,useEffect:()=>ne,useHook:()=>ce,useId:()=>Yi,useImperativeHandle:()=>vn,useInsertionEffect:()=>Gi,useLayoutEffect:()=>je,useLocalStorage:()=>Hi,useMemo:()=>Ct,useReducer:()=>Zi,useRef:()=>L,useState:()=>te,useTransition:()=>Qr});function ce(){let e=E.current_component[0];return e.hooks[e.hook_index]===void 0&&e.hooks.push({}),e.hooks[e.hook_index++]}function te(e){let t=ce();return K(t)&&(typeof e=="function"?t.value=e():t.value=e,t.set_func=function(n,r,o){typeof o=="function"?r.value=o(r.value):r.value=o,n.component.forceUpdate()}.bind(void 0,E.current_component[0],t)),[t.value,t.set_func]}function me(e,t){if(t!==void 0&&!Array.isArray(t)&&t!==null&&typeof t!="object")throw new Error("Callback dependencies must be an array, object or omitted.");let n=ce();return!K(n)&&t!==void 0&&n?.deps!==void 0&&se(t,n.deps)||(n?.cleanup&&n.cleanup(),n.deps=t,n.callback=e),n.callback}function ct(e){return{default:e,Provider:function({value:n,children:r}){return r}}}function at(e){let t=E.current_component[0]?.parent;for(;t&&t.entity!==e.Provider;)t=t.parent;return t?t.props?.value??e.default:e.default}function Yi(e="N"){let t=ce();return K(t)&&(t.id=e+E.id_num++),t.id}function Qr(){let e=ce();return K(e)&&(e.count=0,e.func=(async function(t,n,r){n.count===0&&t.component.forceUpdate(),n.count++;try{return await r()}finally{n.count--,n.count===0&&t.component.forceUpdate()}}).bind(void 0,E.current_component[0],e)),[e.count!=0,e.func]}function Hi(e,t){let n=ce(),r;try{r=JSON.parse(localStorage[e])}catch{}return r===void 0&&(typeof t=="function"&&(t=t()),r=t,localStorage[e]=JSON.stringify(r)),K(n)&&(n.value=r,n.set_func=function(o,s,c){typeof c=="function"&&(c=c(s.value)),c!==s.value&&(localStorage[e]=JSON.stringify(c),s.value=c,o.component.forceUpdate())}.bind(void 0,E.current_component[0],n)),[n.value,n.set_func]}function L(e=null){let t=ce();return K(t)&&(t.current=e),t}async function je(e,t){if(t!==void 0&&!Array.isArray(t)&&t!==null&&typeof t!="object")throw new Error("Layout effect dependencies must be an array, object or omitted.");let n=ce();!K(n)&&t!==void 0&&n?.deps!==void 0&&se(t,n.deps)||(n?.cleanup&&(await n.cleanup(),n.cleanup=void 0),n.deps=t,E.layout_effects.add(async()=>{n.cleanup=await e()}),NATIVE_TIMERS.clearTimeout(E.effect_timeout),E.effect_timeout=NATIVE_TIMERS.setTimeout(E.processEffects,0))}async function ne(e,t){if(t!==void 0&&!Array.isArray(t)&&t!==null&&typeof t!="object")throw new Error("Effect dependencies must be an array, object or omitted.");let n=ce();!K(n)&&t!==void 0&&n?.deps!==void 0&&se(t,n.deps)||(n?.cleanup&&(await n.cleanup(),n.cleanup=void 0),n.deps=t,E.passive_effects.add(async()=>{n.cleanup=await e()}),NATIVE_TIMERS.clearTimeout(E.effect_timeout),E.effect_timeout=NATIVE_TIMERS.setTimeout(E.processEffects,0))}async function Gi(e,t){if(t!==void 0&&!Array.isArray(t)&&t!==null&&typeof t!="object")throw new Error("Insertion effect dependencies must be an array, object, or omitted.");let n=ce();!K(n)&&t!==void 0&&n?.deps!==void 0&&se(t,n.deps)||(n?.cleanup&&(await n.cleanup(),n.cleanup=void 0),n.deps=t,E.insertion_effects.add(async()=>{n.cleanup=await e()}),NATIVE_TIMERS.clearTimeout(E.effect_timeout),E.effect_timeout=NATIVE_TIMERS.setTimeout(E.processEffects,0))}function Ct(e,t){if(t!==void 0&&!Array.isArray(t)&&t!==null&&typeof t!="object")throw new Error("Memo dependencies must be an array or omitted.");let n=ce();return!K(n)&&t!==void 0&&n?.deps!==void 0&&se(t,n.deps)||(n.deps=t,n.value=e()),n.value}function Ji(e,t){let n=ce(),[r,o]=Qr();return K(n)&&(n.state=t,n.form_action=s=>(s.preventDefault(),o(async()=>{let c=new FormData(s.target,s.submitter);n.state=await e(n.state,c)}),!1)),[n.state,n.form_action,r]}function Zi(e,t,n){let r=ce();return K(r)&&(r.state=n?n(t):t,r.dispatch=function(o,s,c){let a=s.reducer(s.state,c);E.defaultIsEqual(a,s.state)||(s.state=a,o.component.forceUpdate())}.bind(void 0,E.current_component[0],r)),r.reducer=e,[r.state,r.dispatch]}function zi(e,t){let{useEffect:n,useRef:r,useState:o}=E,[s,c]=o(typeof t<"u"?t:e),a=r(e),l=r(null);return n(()=>{if(a.current===e)return;a.current=e,l.current!=null&&(l.current.cancelled=!0,l.current=null);let u={cancelled:!1};return l.current=u,Promise.resolve().then(()=>{u.cancelled||(c(e),l.current=null)}),()=>{l.current&&(l.current.cancelled=!0,l.current=null)}},[e]),s}function vn(e,t,n){n!==void 0&&e?.deps!==void 0&&se(n,e.deps)||(e.deps=n,typeof e?.current!="object"&&(e.current={}),Object.assign(e.current,t()))}function Qi(e,t=n=>n){}function es(e){e()}var Cn={};Q(Cn,{lazy:()=>ss,require:()=>oo,required_scripts:()=>We,run:()=>ut,runScripts:()=>as});function ts(e,t){let n=t.startsWith("/"),r=(n?"":e).split("/").filter(Boolean);!n&&!e.endsWith("/")&&r.pop();for(let o of t.split("/"))!o||o==="."||(o===".."?r.pop():r.push(o));return`${n?"/":""}${r.join("/")}`}function to(e,t="Unknown error"){if(e instanceof Error)return e;if(e?.error instanceof Error)return e.error;let n=new Error(e?.message==null?t:String(e.message));if(e&&typeof e=="object"){e.name&&(n.name=e.name),e.stack&&(n.stack=e.stack);for(let r of Object.keys(e))r in n||(n[r]=e[r])}return n}function ns(e,t){let n=to(e);return n.lilact_source||(n.lilact_source={path:t}),n}function Ke(e,t){let n=ns(e,t);return n.isTraced?n:typeof E.traceError=="function"?E.traceError(n,t):(E.error=n,n)}var We={};function no(e,{code:t=""}={}){let n={path:e,code:String(t),mappings:[],meta:{},exports:{},loaded:!1,request:void 0,error:void 0};return We[e]=n,n}function ro(e,t={}){if(E.importObjectPaths?.[e])return E.importObjectPaths[e];t.requirer?.path&&(e=ts(t.requirer.path,e));let n=!!E[ot]||!!t.isLazy,r=os(e,{});if(r.loaded&&!t.forceReload)return r.exports;if(e.startsWith("#")){let c=document.getElementById(e.slice(1));if(!c)throw Ke(new Error(`Required element not found (${e})`),e);return ut(c.textContent||"",e,{forceReload:t.forceReload})}if(n)return E[ot]=!1,r.request&&!t.forceReload?r.request:is(e,r,t);let o=E.resolver?.(e);if(o!=null){if(e.endsWith(".css")){bt(String(o)),r.code=String(o),r.loaded=!0;return}return ut(String(o),e,{forceReload:t.forceReload})}let s=new XMLHttpRequest;try{s.open("GET",e,!1),s.send(null)}catch(c){throw Ke(c,e)}if(s.status>=200&&s.status<300){if(e.endsWith(".css")){r.code=s.responseText,bt(r.code),r.loaded=!0;return}return ut(s.responseText,e,{forceReload:!0})}throw Ke(new Error(`Unable to load ${e}: HTTP ${s.status||0}`),e)}function oo(e){let t={};return arguments.length===2&&arguments[1]&&typeof arguments[1]=="object"&&(t=arguments[1]),ro(e,t)}function ya(e,t={}){e.importsObject??(e.importsObject={});for(let n of Object.keys(e.importsObject))delete e.importsObject[n];for(let n in e.meta.imports){let r=e.meta.imports[n],o=ro(n,{requirer:e,forceReload:t.forceReload});for(let s in r.named_imports){if(s==="")continue;let c=r.named_imports[s];if(!Object.prototype.hasOwnProperty.call(o,c))throw new Error(`Imported module does not export any "${s}".`);e.importsObject[s]=o[c]}for(let s of r.import_defaults){if(!Object.prototype.hasOwnProperty.call(o,"default"))throw new Error("Imported module does not export a default.");e.importsObject[s]=o.default}for(let s of r.import_stars)e.importsObject[s]={...o}}return e.importsObject}function eo(e){return e&&typeof e=="object"?e:{default:e}}function rs(e,t){if(!e)return;let n=eo(e),r=eo(t);for(let o of Object.keys(n)){let s=n[o],c=r[o];typeof s=="function"&&typeof c=="function"&&E.replaceAllComponentInstances(s,c)}}function ut(jsx,path=`InlineJSX-${++E.eval_num}`,options={}){let module=We[path],previousExports=module?.loaded?module.exports:void 0;module?(module.path=path,module.code=String(jsx),module.mappings=[],module.exports={},module.loaded=!1,module.error=void 0,module.meta={}):module=no(path,{code:jsx});let processed;try{processed=E.transpileJSX(String(jsx),{path,mappings:module.mappings,meta:module.meta,factory:"createComponent",appendSourcemap:!0,injectTraceLabels:!0,produceCJS:!0,addLocationProp:!0,blocksInfo:E.blocksInfo})}catch(e){let t=to(e);throw t.fileName??(t.fileName=path),t.lilact_source??(t.lilact_source={path}),t.sourcePhase="transpile",module.error=t,E.error=t,t}typeof E.scanBlockLabels=="function"&&E.scanBlockLabels(processed,path);try{globalThis.Lilact=E,globalThis.createComponent=E.createComponent,globalThis.Fragment=E.Fragment;let result=eval(processed);module.loaded=!0;let nextExports=K(module.exports)?result:module.exports;return rs(previousExports,nextExports),nextExports}catch(e){let t=Ke(e,path);throw t.sourcePhase??(t.sourcePhase="runtime"),module.error=t,t}}function os(e,t={}){return We[e]||no(e,t)}function is(e,t,n={}){let r;try{let s=E.resolver?.(e);s==null?t.code&&!t.loaded?r=Promise.resolve(t.code):r=fetch(e).then(c=>{if(!c.ok)throw Ke(new Error(`Unable to load ${e}: HTTP ${c.status}`),e);return c.text()}):r=Promise.resolve(s)}catch(s){r=Promise.reject(Ke(s,e))}let o;return o=Promise.resolve(r).then(s=>{if(t.code=String(s),e.endsWith(".css")){bt(t.code),t.loaded=!0;return}return ut(t.code,e,n)}).then(s=>s?.default??s).catch(s=>{throw t.error=Ke(s,e),t.error}).finally(()=>{t.request===o&&(t.request=void 0)}),t.request=o,o}function ss(e){let t="pending",n;E[ot]=!0;try{n=e()}catch(o){t="error",n=o}finally{E[ot]=!1}E.isThenable(n)?n.then(o=>{t="success",n=o},o=>{t="error",n=o}):t!=="error"&&(t="success");function r(o){if(t==="pending"||t==="error")throw n;let s=n?.default??n;return createComponent(s,{...o})}return r}function cs(){return Array.from(document.querySelectorAll('script[type="text/jsx"]')).map(e=>({src:e.getAttribute("src"),content:e.textContent||""}))}async function as(){for(let e of cs())e.src?await oo(e.src):e.content&&ut(e.content)}var $n={};Q($n,{CSSTransition:()=>so,SwitchTransition:()=>us,Transition:()=>io,TransitionGroup:()=>ls});var On="unmounted",Bt="exited",Ot="entering",At="entered",An="exiting";function io({in:e,timeout:t=E.defaultTransitionTimeout,mountOnEnter:n=!1,unmountOnExit:r=!1,appear:o=!1,onEnter:s,onEntering:c,onEntered:a,onExit:l,onExiting:u,onExited:f,children:p,_classNames:d}){var m,w,g;return(m=this[y]).is_mounted??(m.is_mounted=!n||e||o),(w=this[y]).is_appeared??(w.is_appeared=e),(g=this[y]).timer??(g.timer=null),this[y].childFunctionHandler=_=>_(this[y].mount_state),this[y].mount_state||(this[y].is_mounted||(this[y].mount_state=On),e?this[y].mount_state=o&&!this[y].is_appeared?Ot:At:this[y].mount_state=Bt),ne(()=>()=>clearTimeout(this[y].timer),[]),ne(()=>{!this[y].is_appeared&&o&&this[y].mount_state===Ot&&e&&(s?.(),requestAnimationFrame(()=>{c?.(!this[y].is_appeared),clearTimeout(this[y].timer),this[y].timer=setTimeout(()=>{this[y].mount_state=At,this.forceUpdate(),this[y].is_appeared=!0,a?.(!this[y].is_appeared)},t)}))},[]),ne(()=>{if(e){if(this[y].is_mounted=!0,this[y].mount_state===Ot||this[y].mount_state===At)return;s?.(!this[y].is_appeared),this[y].mount_state=Ot,this.forceUpdate(()=>{c?.(!this[y].is_appeared),clearTimeout(this[y].timer),this[y].timer=setTimeout(()=>{this[y].mount_state=At,this.forceUpdate(),this[y].is_appeared=!0,a?.()},t)})}else{if(this[y].mount_state===On||this[y].mount_state===An||this[y].mount_state===Bt)return;l?.(),this[y].mount_state=An,this.forceUpdate(()=>{u?.(),clearTimeout(this[y].timer),this[y].timer=setTimeout(()=>{this[y].mount_state=Bt,this.forceUpdate(),f?.(),r&&(this[y].is_mounted=!1,this[y].mount_state=On,this.forceUpdate())},t)})}},[e,t]),this[y].is_mounted?(d&&(this[y].mount_state===Ot?this[y].is_appeared?this[y][pe]=d.appearActive:this[y][pe]=d.enterActive:this[y].mount_state===At?this[y].is_appeared?this[y][pe]=d.appearDone:this[y][pe]=d.enterDone:this[y].mount_state===An?this[y][pe]=d.exitActive:this[y].mount_state===Bt&&(this[y][pe]=d.exitDone)),p):null}function so({in:e,timeout:t=E.defaultTransitionTimeout,classNames:n="fade",mountOnEnter:r=!1,unmountOnExit:o=!1,appear:s=!1,children:c,onEnter:a,onEntering:l,onEntered:u,onExit:f,onExiting:p,onExited:d}){return typeof n=="string"&&(n={appear:`${n}-enter ${n}-appear`,appearActive:`${n}-enter-active ${n}-appear-active`,appearDone:`${n}-enter-done ${n}-appear-done`,enter:`${n}-enter`,enterActive:`${n}-enter-active`,enterDone:`${n}-enter-done`,exit:`${n}-exit`,exitActive:`${n}-exit-active`,exitDone:`${n}-exit-done`}),createComponent(io,{in:e,timeout:t,mountOnEnter:r,unmountOnExit:o,appear:s,onEnter:a,onEntering:l,onEntered:u,onExit:f,onExiting:p,onExited:d,_classNames:n},c)}function us({children:e,activeKey:t,mode:n="out-in",timeout:r=E.defaultTransitionTimeout,classNames:o="switch",mountOnEnter:s=!1,unmountOnExit:c=!1,appear:a=!1,onExited:l,onEnter:u,onExiting:f,onEntered:p,...d}){let m=Ct(()=>Ve.toArray(e),[e]),[w,g]=te(null),[_,h]=te(!1),[T,v]=te(!0),S=L(t),x=L(t),C=L(w);je(()=>{x.current=t},[t]),je(()=>{C.current=w},[w]),je(()=>{let A=S.current;A!==t&&(S.current=t,g(A),n==="out-in"?(v(!1),h(!0)):(v(!0),h(!1)))},[t,n]);let k=A=>(be,j)=>{typeof l=="function"&&l(be,j),A===C.current&&(g(null),n==="out-in"&&(h(!1),v(!0)),n==="in-out"&&h(!1))},O=A=>(be,j)=>{typeof p=="function"&&p(be,j),n==="in-out"&&A===x.current&&C.current!=null&&h(!0)};return createComponent("div",{style:{position:"relative"}},m.map((A,be)=>{let j=A?.props?.key||be,$t=j===t?T:j===w?!_:!1;return createComponent(so,{...d,key:j,in:$t,timeout:r,classNames:o,mountOnEnter:s,unmountOnExit:c,appear:a,onEnter:u,onExiting:f,onEntered:O(j),onExited:k(j)},createComponent("div",{style:{position:"absolute",inset:0}},A))}))}function ls({children:e}){return e}var In={};Q(In,{addWrappedEventListener:()=>ds,createSyntheticEvent:()=>co,releaseSyntheticEvent:()=>ao,wrapListener:()=>uo});typeof Element<"u"&&!Element.prototype.matches&&(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector||function(e){for(var t=(this.document||this.ownerDocument).querySelectorAll(e),n=t.length;--n>=0&&t.item(n)!==this;);return n>-1});typeof Event<"u"&&!Event.prototype.composedPath&&(Event.prototype.composedPath=function(){for(var e=[],t=this.target;t;)e.push(t),t=t.parentElement;return e.push(window),e});var Xt=[],fs=10,ps=["mouse","pen","touch"];function co(e,t){let n=Xt.length?Xt.pop():{};n.nativeEvent=e,n.type=e.type,n.target=e.target||e.srcElement||null,n.currentTarget=t||e.currentTarget||null,n.timeStamp=e.timeStamp||Date.now(),n.defaultPrevented=!!e.defaultPrevented,n.isPropagationStopped=!1,n.isPersistent=!1,n.bubbles=!!e.bubbles,n.cancelable=!!e.cancelable,n.composed=!!e.composed,n.detail=e.detail,n.relatedTarget=e.relatedTarget||(e.fromElement?e.fromElement:null)||(e.toElement?e.toElement:null)||null,n.altKey=!!e.altKey,n.ctrlKey=!!e.ctrlKey,n.metaKey=!!e.metaKey,n.shiftKey=!!e.shiftKey,n.isDefaultPrevented=()=>n.defaultPrevented,n.preventDefault=()=>{e.preventDefault&&e.preventDefault(),n.defaultPrevented=!0},n.stopPropagation=()=>{e.stopPropagation&&e.stopPropagation(),n.isPropagationStopped=!0},n.persist=()=>{n.isPersistent=!0},n.key=e.key||null,n.code=e.code||null,n.which=e.which??e.keyCode??null,n.button=e.button??null,n.buttons=e.buttons??null,n.pointerId=e.pointerId??null,n.pointerType=e.pointerType??null,n.isPrimary=e.isPrimary??null,n.clientX=e.clientX??0,n.clientY=e.clientY??0,n.screenX=e.screenX??0,n.screenY=e.screenY??0,n.pageX=e.pageX??null,n.pageY=e.pageY??null,n.movementX=e.movementX??0,n.movementY=e.movementY??0,n.pressure=e.pressure??null,n.tiltX=e.tiltX??null,n.tiltY=e.tiltY??null,n.width=e.width??null,n.height=e.height??null,n.pointerEventsSupported=ps.includes(n.pointerType);try{let r=n.target;n.value=r&&"value"in r?r.value:void 0,n.checked=r&&"checked"in r?r.checked:void 0,n.selectionStart=r&&"selectionStart"in r?r.selectionStart:void 0,n.selectionEnd=r&&"selectionEnd"in r?r.selectionEnd:void 0}catch{n.value=void 0,n.checked=void 0,n.selectionStart=void 0,n.selectionEnd=void 0}return n.touches=e.touches||null,n.targetTouches=e.targetTouches||null,n.changedTouches=e.changedTouches||null,n.path=typeof e.composedPath=="function"?e.composedPath():[n.target],n.repeat=e.repeat??!1,n.location=e.location??0,n}function ao(e){e&&!e.isPersistent&&(e.nativeEvent=null,e.type=null,e.target=null,e.currentTarget=null,e.timeStamp=0,e.defaultPrevented=!1,e.isPropagationStopped=!1,e.isPersistent=!1,e.isDefaultPrevented=null,e.preventDefault=null,e.stopPropagation=null,e.persist=null,e.bubbles=!1,e.cancelable=!1,e.composed=!1,e.detail=void 0,e.relatedTarget=null,e.altKey=!1,e.ctrlKey=!1,e.metaKey=!1,e.shiftKey=!1,e.key=null,e.code=null,e.which=null,e.button=null,e.buttons=null,e.pointerId=null,e.pointerType=null,e.isPrimary=null,e.clientX=0,e.clientY=0,e.screenX=0,e.screenY=0,e.pageX=null,e.pageY=null,e.movementX=0,e.movementY=0,e.pressure=null,e.tiltX=null,e.tiltY=null,e.width=null,e.height=null,e.value=void 0,e.checked=void 0,e.selectionStart=void 0,e.selectionEnd=void 0,e.touches=null,e.targetTouches=null,e.changedTouches=null,e.path=null,e.repeat=!1,e.location=0,Xt.length<fs&&Xt.push(e))}function uo(e,t={}){let{stopPropagationOnTrueReturn:n=!1}=t;return function(o){let s=this||o.currentTarget||null,c=co(o,s);try{let a=e(c);n&&a===!0&&c.stopPropagation()}finally{ao(c)}}}function ds(e,t,n,r={}){let o=uo(n,r);return e.addEventListener(t,o,r),()=>e.removeEventListener(t,o,r)}var Nn={};Q(Nn,{Provider:()=>hs,combineReducers:()=>gs,connect:()=>ys,useDispatch:()=>ms,useSelector:()=>lo,useStore:()=>Yt});var Rn;function hs({store:e,children:t}){return Rn??(Rn=ct(null)),createComponent(Rn.Provider,{value:e},t)}function Yt(){let e=at(Rn);if(!e)throw new Error("Could not find Redux store in context. <Provider> is missing.");return e}function ms(){return Yt().dispatch}function lo(e,t=(n,r)=>n===r){let n=Yt(),r=L(),o=L(e);o.current=e;let[s,c]=te(()=>e(n.getState()));return r.current=s,ne(()=>{function a(){let u=o.current(n.getState());t(r.current,u)||(r.current=u,c(u))}let l=n.subscribe(a);return a(),l},[n,t]),s}function ys(e,t){let n=!!e;return function(o){function s(c){let a=Yt(),l={dispatch:a.dispatch};if(typeof t=="function")l=t(a.dispatch,c);else if(typeof t=="object"&&t!==null){l={};let p=a.dispatch;for(let d in t){let m=t[d];l[d]=(...w)=>p(m(...w))}}let u={};e&&(u=lo(d=>e(d,c),se)||{});let f={...c,...u,...l};return createComponent(o,{...f})}return s}}function gs(e){let t=Object.keys(e);for(let n of t)if(typeof e[n]!="function")throw new Error(`combineReducers: reducer for key "${n}" is not a function`);return function(r={},o){let s=!1,c={};for(let a of t){let l=e[a],u=r[a],f=l(u,o);c[a]=f,s=s||f!==u}return s?c:r}}var Mn={};Q(Mn,{animationFramePromise:()=>$s,clearInterval:()=>ks,clearTimeout:()=>vs,grabTimers:()=>Cs,pauseTimers:()=>Es,releaseTimers:()=>Os,resetTimers:()=>xs,resumeTimers:()=>_s,setInterval:()=>Ss,setTimeout:()=>Ts,timeoutPromise:()=>As});var Me,Ln=0,ye=[],Be=0;globalThis.NATIVE_TIMERS??(globalThis.NATIVE_TIMERS={});NATIVE_TIMERS.setTimeout??(NATIVE_TIMERS.setTimeout=globalThis.setTimeout.bind(globalThis));NATIVE_TIMERS.setInterval??(NATIVE_TIMERS.setInterval=globalThis.setInterval.bind(globalThis));NATIVE_TIMERS.clearTimeout??(NATIVE_TIMERS.clearTimeout=globalThis.clearTimeout.bind(globalThis));NATIVE_TIMERS.clearInterval??(NATIVE_TIMERS.clearInterval=globalThis.clearInterval.bind(globalThis));var ve=new Map;function bs(e){let t=0,n=ye.length-1;for(;t<=n;){let o=Math.floor((t+n)/2),s=ye[o][de];if(s===e)return[o,ye[o]];s<e?t=o+1:n=o-1}let r=[];return r[de]=e,ye.splice(t,0,r),[t,r]}function Pn(){if(Me!==void 0||ye.length===0)return;NATIVE_TIMERS.clearTimeout(Be);let e=Math.max(0,ye[0][de]-Date.now());Be=NATIVE_TIMERS.setTimeout(ws,e)}function jn(e,t=!1){let[n,r]=bs(e[de]);return t||(Ln+=1,e[F]=Ln,ve.set(e[F],e)),r.push(e),n===0&&Me===void 0&&Pn(),e[F]}function ws(){Be=-1;let e=Date.now(),t=[];for(;ye.length>0&&ye[0][de]-e<=0;)t.push(ye.shift());let n=[];for(let o of t)for(let s of o)n.push(s);let r;for(let o of n){if(o[Oe]||ve.get(o[F])!==o){ve.delete(o[F]);continue}try{o[_t](...o[Tt])}catch(s){r??(r=s)}if(o[Oe]){ve.delete(o[F]);continue}ve.get(o[F])===o&&(o[xt]?(o[de]=Date.now()+o[Et],jn(o,!0)):ve.delete(o[F]))}Pn(),r!==void 0&&NATIVE_TIMERS.setTimeout(()=>{throw r},0)}function xs(){NATIVE_TIMERS.clearTimeout(Be);for(let e of ve.values())e[Oe]=!0;Me=void 0,Ln=-1,ye=[],Be=-1,ve=new Map}function Es(){Me===void 0&&(NATIVE_TIMERS.clearTimeout(Be),Be=-1,Me=Date.now())}function _s(){if(Me===void 0)return;let e=Date.now()-Me;for(let t of ye)t[de]+=e;Me=void 0,Pn()}function Ts(e,t=0,...n){let r=Math.max(0,Number(t)||0);return jn({[_t]:e,[Et]:r,[de]:Date.now()+r,[xt]:!1,[Oe]:!1,[Tt]:n})}function Ss(e,t=0,...n){let r=Math.max(0,Number(t)||0);return jn({[_t]:e,[Et]:r,[de]:Date.now()+r,[xt]:!0,[Oe]:!1,[Tt]:n})}function vs(e){let t=ve.get(e);t!==void 0?t[Oe]=!0:NATIVE_TIMERS.clearTimeout(e)}function ks(e){let t=ve.get(e);t!==void 0?t[Oe]=!0:NATIVE_TIMERS.clearInterval(e)}function Cs(){globalThis.setTimeout=Lilact.setTimeout,globalThis.setInterval=Lilact.setInterval,globalThis.clearTimeout=Lilact.clearTimeout,globalThis.clearInterval=Lilact.clearInterval}function Os(){globalThis.setTimeout=NATIVE_TIMERS.setTimeout,globalThis.setInterval=NATIVE_TIMERS.setInterval,globalThis.clearTimeout=NATIVE_TIMERS.clearTimeout,globalThis.clearInterval=NATIVE_TIMERS.clearInterval}function As(e=0,t=Lilact){let n,r,o,s=new Promise((c,a)=>{r=c,o=a,n=t.setTimeout(()=>{c()},e)});return s.proceed=()=>{t.clearTimeout(n),r()},s.cancel=()=>{t.clearTimeout(n),o()},s}function $s(){return new Promise(e=>{requestAnimationFrame(()=>{e()})})}var Dn={};Q(Dn,{asError:()=>po,blocksInfo:()=>qs,error:()=>Vs,globalErrorHandler:()=>Ds,scanBlockLabels:()=>Us,traceError:()=>ho});function Is(){let e=navigator.userAgent;return/Safari/.test(e)&&!/Chrome|Chromium|CriOS|FxiOS|EdgiOS|OPiOS/.test(e)}function Gt(e){let t=Number(e);return Number.isFinite(t)?t:null}function po(e){if(e instanceof Error)return e;if(e?.error instanceof Error)return e.error;let t=new Error(e?.message==null?String(e):String(e.message));if(e&&typeof e=="object"){e.name&&(t.name=e.name),e.stack&&(t.stack=e.stack);for(let n of Object.keys(e))n in t||(t[n]=e[n])}return t}function fo(e){return e?.name==="JSXParserError"}function Rs(e){if(typeof e!="string")return null;for(let t of e.split(/\r?\n/)){let n=t.match(/(eval:\/.*):(\d+):(\d+)/);if(n)return{path:n[1].replace(/^eval:\/+/,""),line:Number(n[2])-1,column:Number(n[3])-1}}return null}function Ns(e){let t=Gt(e?.lineNumber??e?.lineno??e?.line),n=Gt(e?.columnNumber??e?.colno??e?.column),r=Is()?0:1;return{line:t==null?null:Math.max(0,t-r),column:n==null?null:Math.max(0,n-1)}}function Ls(e){let t=e?.lilact_trace;return Array.isArray(t)?t[0]:t}function Ps(e){let t=Ls(e);return t==null?null:E.blocksInfo?.labels?.[t]}function js(e,t,n){if(!Array.isArray(e)||!e.length||!Number.isFinite(t)||!Number.isFinite(n))return{line:t,column:n};let r=e.filter(u=>Array.isArray(u)&&u.length>=4&&u.slice(0,4).every(f=>Number.isFinite(Number(f)))).sort((u,f)=>Number(u[0])-Number(f[0])||Number(u[1])-Number(f[1]));if(!r.length)return{line:t,column:n};let o=r[0];for(let u of r){let f=Number(u[0]),p=Number(u[1]);if(f<t||f===t&&p<=n)o=u;else break}let s=Number(o[0]),c=Number(o[1]),a=Number(o[2]),l=Number(o[3]);return{line:a+(t===s?0:t-s),column:t===s?Math.max(0,l+n-c):l}}function ho(e,t){if(e?.isTraced)return e;let n=po(e),r=n.lilact_source,o=fo(n)?null:Rs(n.stack),s=fo(n)?{line:Gt(n.lineNumber),column:Gt(n.columnNumber)}:Ns(n),c=r?.path||o?.path||n.fileName||t||null,a=!r?.path||!o?.path||r.path===o.path,l=a?o?.line??s.line??null:s.line??null,u=a?o?.column??s.column??null:s.column??null,f={fileName:c,lineNumber:l,columnNumber:u,message:n.message==null?String(n):String(n.message),name:n.name||"Error",stack:n.stack||null,lilact_source:r||null,_error:n,isTraced:!0},p=c&&We[c];if(p){let m=js(p.mappings,f.lineNumber,f.columnNumber);f.lineNumber=m.line,f.columnNumber=m.column}let d=Ps(n);return d&&(f.lineNumber==null||f.columnNumber==null||!f.fileName)&&(f.fileName||(f.fileName=d.path||t||null),f.lineNumber??(f.lineNumber=d.line),f.columnNumber??(f.columnNumber=d.column),f.label=d.desc),E.error=f,f}function Ht(e){return String(e??"").replaceAll("&","&").replaceAll("<","<").replaceAll(">",">").replaceAll('"',""").replaceAll("'","'")}function Ms(e,t){if(!e||!Number.isFinite(t))return null;let n=String(e.code??"").split(/\r?\n/);return{before:n[t-1]??"",current:n[t]??"",after:n[t+1]??""}}function Ds(e){let t=e?.error instanceof Error?e.error:e?.reason!==void 0?e.reason:e,n=ho(t,e?.fileName||null),r=Ms(We[n.fileName],n.lineNumber),o=dn(`
|
|
57
|
+
var ir=Object.defineProperty;var Oo=(e,t,n)=>t in e?ir(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Q=(e,t)=>{for(var n in t)ir(e,n,{get:t[n],enumerable:!0})};var ee=(e,t,n)=>Oo(e,typeof t!="symbol"?t+"":t,n);var sn={};Q(sn,{__DO_NOT_USE__ActionTypes:()=>pt,applyMiddleware:()=>jo,bindActionCreators:()=>Lo,combineReducers:()=>No,compose:()=>ar,createStore:()=>on,isAction:()=>Po,isPlainObject:()=>rn,legacy_createStore:()=>Io});function V(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var Ao=typeof Symbol=="function"&&Symbol.observable||"@@observable",sr=Ao,nn=()=>Math.random().toString(36).substring(7).split("").join("."),$o={INIT:`@@redux/INIT${nn()}`,REPLACE:`@@redux/REPLACE${nn()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${nn()}`},pt=$o;function rn(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function on(e,t,n){if(typeof e!="function")throw new Error(V(2));if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(V(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(V(1));return n(on)(e,t)}let r=e,o=t,s=new Map,c=s,a=0,l=!1;function u(){c===s&&(c=new Map,s.forEach((_,h)=>{c.set(h,_)}))}function f(){if(l)throw new Error(V(3));return o}function p(_){if(typeof _!="function")throw new Error(V(4));if(l)throw new Error(V(5));let h=!0;u();let v=a++;return c.set(v,_),function(){if(h){if(l)throw new Error(V(6));h=!1,u(),c.delete(v),s=null}}}function d(_){if(!rn(_))throw new Error(V(7));if(typeof _.type>"u")throw new Error(V(8));if(typeof _.type!="string")throw new Error(V(17));if(l)throw new Error(V(9));try{l=!0,o=r(o,_)}finally{l=!1}return(s=c).forEach(v=>{v()}),_}function m(_){if(typeof _!="function")throw new Error(V(10));r=_,d({type:pt.REPLACE})}function w(){let _=p;return{subscribe(h){if(typeof h!="object"||h===null)throw new Error(V(11));function v(){let T=h;T.next&&T.next(f())}return v(),{unsubscribe:_(v)}},[sr](){return this}}}return d({type:pt.INIT}),{dispatch:d,subscribe:p,getState:f,replaceReducer:m,[sr]:w}}function Io(e,t,n){return on(e,t,n)}function Ro(e){Object.keys(e).forEach(t=>{let n=e[t];if(typeof n(void 0,{type:pt.INIT})>"u")throw new Error(V(12));if(typeof n(void 0,{type:pt.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(V(13))})}function No(e){let t=Object.keys(e),n={};for(let c=0;c<t.length;c++){let a=t[c];typeof e[a]=="function"&&(n[a]=e[a])}let r=Object.keys(n),o,s;try{Ro(n)}catch(c){s=c}return function(a={},l){if(s)throw s;let u=!1,f={};for(let p=0;p<r.length;p++){let d=r[p],m=n[d],w=a[d],g=m(w,l);if(typeof g>"u"){let _=l&&l.type;throw new Error(V(14))}f[d]=g,u=u||g!==w}return u=u||r.length!==Object.keys(a).length,u?f:a}}function cr(e,t){return function(...n){return t(e.apply(this,n))}}function Lo(e,t){if(typeof e=="function")return cr(e,t);if(typeof e!="object"||e===null)throw new Error(V(16));let n={};for(let r in e){let o=e[r];typeof o=="function"&&(n[r]=cr(o,t))}return n}function ar(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function jo(...e){return t=>(n,r)=>{let o=t(n,r),s=()=>{throw new Error(V(15))},c={getState:o.getState,dispatch:(l,...u)=>s(l,...u)},a=e.map(l=>l(c));return s=ar(...a)(o.dispatch),{...o,dispatch:s}}}function Po(e){return rn(e)&&"type"in e&&typeof e.type=="string"}var dn={};Q(dn,{cache:()=>ui,css:()=>pn,cx:()=>oi,flush:()=>ni,getRegisteredStyles:()=>si,hydrate:()=>ri,injectGlobal:()=>bt,keyframes:()=>ci,merge:()=>ii,sheet:()=>ai});var Mo=!1;function Do(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function Uo(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var ur=(function(){function e(n){var r=this;this._insertTag=function(o){var s;r.tags.length===0?r.insertionPoint?s=r.insertionPoint.nextSibling:r.prepend?s=r.container.firstChild:s=r.before:s=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(o,s),r.tags.push(o)},this.isSpeedy=n.speedy===void 0?!Mo:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Uo(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var s=Do(o);try{s.insertRule(r,s.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var o;return(o=r.parentNode)==null?void 0:o.removeChild(r)}),this.tags=[],this.ctr=0},e})();var q="-ms-",dt="-moz-",I="-webkit-",Rt="comm",Ge="rule",Xe="decl";var lr="@import";var Nt="@keyframes";var fr="@layer";var pr=Math.abs,Ue=String.fromCharCode,dr=Object.assign;function hr(e,t){return j(e,0)^45?(((t<<2^j(e,0))<<2^j(e,1))<<2^j(e,2))<<2^j(e,3):0}function Lt(e){return e.trim()}function cn(e,t){return(e=t.exec(e))?e[0]:e}function $(e,t,n){return e.replace(t,n)}function ht(e,t){return e.indexOf(t)}function j(e,t){return e.charCodeAt(t)|0}function Ne(e,t,n){return e.slice(t,n)}function G(e){return e.length}function Ye(e){return e.length}function Je(e,t){return t.push(e),e}function an(e,t){return e.map(t).join("")}var jt=1,Ze=1,mr=0,X=0,M=0,Qe="";function mt(e,t,n,r,o,s,c){return{value:e,root:t,parent:n,type:r,props:o,children:s,line:jt,column:Ze,length:c,return:""}}function et(e,t){return dr(mt("",null,null,"",null,null,0),e,{length:-e.length},t)}function yr(){return M}function gr(){return M=X>0?j(Qe,--X):0,Ze--,M===10&&(Ze=1,jt--),M}function Y(){return M=X<mr?j(Qe,X++):0,Ze++,M===10&&(Ze=1,jt++),M}function ae(){return j(Qe,X)}function yt(){return X}function tt(e,t){return Ne(Qe,e,t)}function ze(e){switch(e){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 Pt(e){return jt=Ze=1,mr=G(Qe=e),X=0,[]}function Mt(e){return Qe="",e}function nt(e){return Lt(tt(X-1,un(e===91?e+2:e===40?e+1:e)))}function br(e){for(;(M=ae())&&M<33;)Y();return ze(e)>2||ze(M)>3?"":" "}function wr(e,t){for(;--t&&Y()&&!(M<48||M>102||M>57&&M<65||M>70&&M<97););return tt(e,yt()+(t<6&&ae()==32&&Y()==32))}function un(e){for(;Y();)switch(M){case e:return X;case 34:case 39:e!==34&&e!==39&&un(M);break;case 40:e===41&&un(e);break;case 92:Y();break}return X}function xr(e,t){for(;Y()&&e+M!==57;)if(e+M===84&&ae()===47)break;return"/*"+tt(t,X-1)+"*"+Ue(e===47?e:Y())}function Er(e){for(;!ze(ae());)Y();return tt(e,X)}function Tr(e){return Mt(Dt("",null,null,null,[""],e=Pt(e),0,[0],e))}function Dt(e,t,n,r,o,s,c,a,l){for(var u=0,f=0,p=c,d=0,m=0,w=0,g=1,_=1,h=1,v=0,S="",T=o,x=s,C=r,k=S;_;)switch(w=v,v=Y()){case 40:if(w!=108&&j(k,p-1)==58){ht(k+=$(nt(v),"&","&\f"),"&\f")!=-1&&(h=-1);break}case 34:case 39:case 91:k+=nt(v);break;case 9:case 10:case 13:case 32:k+=br(w);break;case 92:k+=wr(yt()-1,7);continue;case 47:switch(ae()){case 42:case 47:Je(Vo(xr(Y(),yt()),t,n),l);break;default:k+="/"}break;case 123*g:a[u++]=G(k)*h;case 125*g:case 59:case 0:switch(v){case 0:case 125:_=0;case 59+f:h==-1&&(k=$(k,/\f/g,"")),m>0&&G(k)-p&&Je(m>32?vr(k+";",r,n,p-1):vr($(k," ","")+";",r,n,p-2),l);break;case 59:k+=";";default:if(Je(C=_r(k,t,n,u,f,o,a,S,T=[],x=[],p),s),v===123)if(f===0)Dt(k,t,C,C,T,s,p,a,x);else switch(d===99&&j(k,3)===110?100:d){case 100:case 108:case 109:case 115:Dt(e,C,C,r&&Je(_r(e,C,C,0,0,o,a,S,o,T=[],p),x),o,x,p,a,r?T:x);break;default:Dt(k,C,C,C,[""],x,0,a,x)}}u=f=m=0,g=h=1,S=k="",p=c;break;case 58:p=1+G(k),m=w;default:if(g<1){if(v==123)--g;else if(v==125&&g++==0&&gr()==125)continue}switch(k+=Ue(v),v*g){case 38:h=f>0?1:(k+="\f",-1);break;case 44:a[u++]=(G(k)-1)*h,h=1;break;case 64:ae()===45&&(k+=nt(Y())),d=ae(),f=p=G(S=k+=Er(yt())),v++;break;case 45:w===45&&G(k)==2&&(g=0)}}return s}function _r(e,t,n,r,o,s,c,a,l,u,f){for(var p=o-1,d=o===0?s:[""],m=Ye(d),w=0,g=0,_=0;w<r;++w)for(var h=0,v=Ne(e,p+1,p=pr(g=c[w])),S=e;h<m;++h)(S=Lt(g>0?d[h]+" "+v:$(v,/&\f/g,d[h])))&&(l[_++]=S);return mt(e,t,n,o===0?Ge:a,l,u,f)}function Vo(e,t,n){return mt(e,t,n,Rt,Ue(yr()),Ne(e,2,-2),0)}function vr(e,t,n,r){return mt(e,t,n,Xe,Ne(e,0,r),Ne(e,r+1,-1),r)}function Ve(e,t){for(var n="",r=Ye(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function Sr(e,t,n,r){switch(e.type){case fr:if(e.children.length)break;case lr:case Xe:return e.return=e.return||e.value;case Rt:return"";case Nt:return e.return=e.value+"{"+Ve(e.children,r)+"}";case Ge:e.value=e.props.join(",")}return G(n=Ve(e.children,r))?e.return=e.value+"{"+n+"}":""}function kr(e){var t=Ye(e);return function(n,r,o,s){for(var c="",a=0;a<t;a++)c+=e[a](n,r,o,s)||"";return c}}function Cr(e){return function(t){t.root||(t=t.return)&&e(t)}}function Or(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var qo=function(t,n,r){for(var o=0,s=0;o=s,s=ae(),o===38&&s===12&&(n[r]=1),!ze(s);)Y();return tt(t,X)},Fo=function(t,n){var r=-1,o=44;do switch(ze(o)){case 0:o===38&&ae()===12&&(n[r]=1),t[r]+=qo(X-1,n,r);break;case 2:t[r]+=nt(o);break;case 4:if(o===44){t[++r]=ae()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=Ue(o)}while(o=Y());return t},Wo=function(t,n){return Mt(Fo(Pt(t),n))},Ar=new WeakMap,Bo=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,o=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!Ar.get(r))&&!o){Ar.set(t,!0);for(var s=[],c=Wo(n,s),a=r.props,l=0,u=0;l<c.length;l++)for(var f=0;f<a.length;f++,u++)t.props[u]=s[l]?c[l].replace(/&\f/g,a[f]):a[f]+" "+c[l]}}},Ko=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function $r(e,t){switch(hr(e,t)){case 5103:return I+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return I+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return I+e+dt+e+q+e+e;case 6828:case 4268:return I+e+q+e+e;case 6165:return I+e+q+"flex-"+e+e;case 5187:return I+e+$(e,/(\w+).+(:[^]+)/,I+"box-$1$2"+q+"flex-$1$2")+e;case 5443:return I+e+q+"flex-item-"+$(e,/flex-|-self/,"")+e;case 4675:return I+e+q+"flex-line-pack"+$(e,/align-content|flex-|-self/,"")+e;case 5548:return I+e+q+$(e,"shrink","negative")+e;case 5292:return I+e+q+$(e,"basis","preferred-size")+e;case 6060:return I+"box-"+$(e,"-grow","")+I+e+q+$(e,"grow","positive")+e;case 4554:return I+$(e,/([^-])(transform)/g,"$1"+I+"$2")+e;case 6187:return $($($(e,/(zoom-|grab)/,I+"$1"),/(image-set)/,I+"$1"),e,"")+e;case 5495:case 3959:return $(e,/(image-set\([^]*)/,I+"$1$`$1");case 4968:return $($(e,/(.+:)(flex-)?(.*)/,I+"box-pack:$3"+q+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+I+e+e;case 4095:case 3583:case 4068:case 2532:return $(e,/(.+)-inline(.+)/,I+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(G(e)-1-t>6)switch(j(e,t+1)){case 109:if(j(e,t+4)!==45)break;case 102:return $(e,/(.+:)(.+)-([^]+)/,"$1"+I+"$2-$3$1"+dt+(j(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~ht(e,"stretch")?$r($(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(j(e,t+1)!==115)break;case 6444:switch(j(e,G(e)-3-(~ht(e,"!important")&&10))){case 107:return $(e,":",":"+I)+e;case 101:return $(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+I+(j(e,14)===45?"inline-":"")+"box$3$1"+I+"$2$3$1"+q+"$2box$3")+e}break;case 5936:switch(j(e,t+11)){case 114:return I+e+q+$(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return I+e+q+$(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return I+e+q+$(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return I+e+q+e+e}return e}var Ho=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case Xe:t.return=$r(t.value,t.length);break;case Nt:return Ve([et(t,{value:$(t.value,"@","@"+I)})],o);case Ge:if(t.length)return an(t.props,function(s){switch(cn(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ve([et(t,{props:[$(s,/:(read-\w+)/,":"+dt+"$1")]})],o);case"::placeholder":return Ve([et(t,{props:[$(s,/:(plac\w+)/,":"+I+"input-$1")]}),et(t,{props:[$(s,/:(plac\w+)/,":"+dt+"$1")]}),et(t,{props:[$(s,/:(plac\w+)/,q+"input-$1")]})],o)}return""})}},Go=[Ho],Ir=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(g){var _=g.getAttribute("data-emotion");_.indexOf(" ")!==-1&&(document.head.appendChild(g),g.setAttribute("data-s",""))})}var o=t.stylisPlugins||Go,s={},c,a=[];c=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(g){for(var _=g.getAttribute("data-emotion").split(" "),h=1;h<_.length;h++)s[_[h]]=!0;a.push(g)});var l,u=[Bo,Ko];{var f,p=[Sr,Cr(function(g){f.insert(g)})],d=kr(u.concat(o,p)),m=function(_){return Ve(Tr(_),d)};l=function(_,h,v,S){f=v,m(_?_+"{"+h.styles+"}":h.styles),S&&(w.inserted[h.name]=!0)}}var w={key:n,sheet:new ur({key:n,container:c,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:s,registered:{},insert:l};return w.sheet.hydrate(a),w};function Rr(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Nr={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var Xo=!1,Yo=/[A-Z]|^ms/g,Jo=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Mr=function(t){return t.charCodeAt(1)===45},Lr=function(t){return t!=null&&typeof t!="boolean"},ln=Or(function(e){return Mr(e)?e:e.replace(Yo,"-$&").toLowerCase()}),jr=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(Jo,function(r,o,s){return Ee={name:o,styles:s,next:Ee},o})}return Nr[t]!==1&&!Mr(t)&&typeof n=="number"&&n!==0?n+"px":n},Zo="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function gt(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var o=n;if(o.anim===1)return Ee={name:o.name,styles:o.styles,next:Ee},o.name;var s=n;if(s.styles!==void 0){var c=s.next;if(c!==void 0)for(;c!==void 0;)Ee={name:c.name,styles:c.styles,next:Ee},c=c.next;var a=s.styles+";";return a}return zo(e,t,n)}case"function":{if(e!==void 0){var l=Ee,u=n(e);return Ee=l,gt(e,t,u)}break}}var f=n;if(t==null)return f;var p=t[f];return p!==void 0?p:f}function zo(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=gt(e,t,n[o])+";";else for(var s in n){var c=n[s];if(typeof c!="object"){var a=c;t!=null&&t[a]!==void 0?r+=s+"{"+t[a]+"}":Lr(a)&&(r+=ln(s)+":"+jr(s,a)+";")}else{if(s==="NO_COMPONENT_SELECTOR"&&Xo)throw new Error(Zo);if(Array.isArray(c)&&typeof c[0]=="string"&&(t==null||t[c[0]]===void 0))for(var l=0;l<c.length;l++)Lr(c[l])&&(r+=ln(s)+":"+jr(s,c[l])+";");else{var u=gt(e,t,c);switch(s){case"animation":case"animationName":{r+=ln(s)+":"+u+";";break}default:r+=s+"{"+u+"}"}}}}return r}var Pr=/label:\s*([^\s;{]+)\s*(;|$)/g,Ee;function Ut(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,o="";Ee=void 0;var s=e[0];if(s==null||s.raw===void 0)r=!1,o+=gt(n,t,s);else{var c=s;o+=c[0]}for(var a=1;a<e.length;a++)if(o+=gt(n,t,e[a]),r){var l=s;o+=l[a]}Pr.lastIndex=0;for(var u="",f;(f=Pr.exec(o))!==null;)u+="-"+f[1];var p=Rr(o)+u;return{name:p,styles:o,next:Ee}}var Qo=!0;function fn(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(r+=o+" ")}),r}var ei=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||Qo===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},Dr=function(t,n,r){ei(t,n,r);var o=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var s=n;do t.insert(n===s?"."+o:"",s,t.sheet,!0),s=s.next;while(s!==void 0)}};function Ur(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function Vr(e,t,n){var r=[],o=fn(e,r,n);return r.length<2?n:o+t(r)}var qr=function(t){var n=Ir(t);n.sheet.speedy=function(a){this.isSpeedy=a},n.compat=!0;var r=function(){for(var l=arguments.length,u=new Array(l),f=0;f<l;f++)u[f]=arguments[f];var p=Ut(u,n.registered,void 0);return Dr(n,p,!1),n.key+"-"+p.name},o=function(){for(var l=arguments.length,u=new Array(l),f=0;f<l;f++)u[f]=arguments[f];var p=Ut(u,n.registered),d="animation-"+p.name;return Ur(n,{name:p.name,styles:"@keyframes "+d+"{"+p.styles+"}"}),d},s=function(){for(var l=arguments.length,u=new Array(l),f=0;f<l;f++)u[f]=arguments[f];var p=Ut(u,n.registered);Ur(n,p)},c=function(){for(var l=arguments.length,u=new Array(l),f=0;f<l;f++)u[f]=arguments[f];return Vr(n.registered,r,ti(u))};return{css:r,cx:c,injectGlobal:s,keyframes:o,hydrate:function(l){l.forEach(function(u){n.inserted[u]=!0})},flush:function(){n.registered={},n.inserted={},n.sheet.flush()},sheet:n.sheet,cache:n,getRegisteredStyles:fn.bind(null,n.registered),merge:Vr.bind(null,n.registered,r)}},ti=function e(t){for(var n="",r=0;r<t.length;r++){var o=t[r];if(o!=null){var s=void 0;switch(typeof o){case"boolean":break;case"object":{if(Array.isArray(o))s=e(o);else{s="";for(var c in o)o[c]&&c&&(s&&(s+=" "),s+=c)}break}default:s=o}s&&(n&&(n+=" "),n+=s)}}return n};var _e=qr({key:"css"}),ni=_e.flush,ri=_e.hydrate,oi=_e.cx,ii=_e.merge,si=_e.getRegisteredStyles,bt=_e.injectGlobal,ci=_e.keyframes,pn=_e.css,ai=_e.sheet,ui=_e.cache;var bn={};Q(bn,{Children:()=>qe,Fragment:()=>Fr,Portal:()=>Wr,deepEqual:()=>yn,eval_num:()=>yi,findDOMNode:()=>fi,forwardRef:()=>gn,getComponentUnderPointer:()=>pi,id_num:()=>mi,isAsync:()=>di,isClass:()=>Le,isEmpty:()=>W,isError:()=>hi,isThenable:()=>qt,isValidComponent:()=>it,isValidElement:()=>li,shallowEqual:()=>se,toBool:()=>Ft});var mn={};Q(mn,{ARGS:()=>vt,CALLBACK:()=>_t,CHILD_CLASS_ADDENDUM:()=>pe,CLEARED:()=>Oe,CLONED_STYLE:()=>wt,COMPONENT:()=>rt,CORE:()=>y,DUE:()=>de,IDX:()=>F,INTERVAL:()=>Et,IS_ZOMBIE:()=>hn,LAZY:()=>ot,LOCATION:()=>Vt,MEMOIZED:()=>ve,REPEAT:()=>xt,TEXT:()=>J});var[Vt,y,rt,J,hn,F,pe,ve,ot,wt,de,xt,Oe,Et,_t,vt]=[Symbol.for("LILACT:LOCATION"),Symbol.for("LILACT:CORE"),Symbol.for("LILACT:COMPONENT"),Symbol.for("LILACT:TEXT"),Symbol.for("LILACT:IS_ZOMBIE"),Symbol.for("LILACT:IDX"),Symbol.for("LILACT:CHILD_CLASS_ADDENDUM"),Symbol.for("LILACT:MEMOIZED"),Symbol.for("LILACT:LAZY"),Symbol.for("LILACT:CLONED_STYLE"),Symbol.for("LILACT:TIMERS:DUE"),Symbol.for("LILACT:TIMERS:REPEAT"),Symbol.for("LILACT:TIMERS:CLEARED"),Symbol.for("LILACT:TIMERS:INTERVAL"),Symbol.for("LILACT:TIMERS:CALLBACK"),Symbol.for("LILACT:TIMERS:ARGS")];var Te=e=>{let t=Object.prototype.toString.call(e).toLowerCase();return/\[object (.*)]/g.exec(t)[1]},it=e=>!!(e&&(e[y]!==void 0||e[TEXT]!==void 0)),li=it,fi=e=>{if(!e[y]?.element?.parentNode)throw new Error("findDOMNode only works on mounted components.");return e[y].element};function Fr({children:e}){return e}Fr.displayName="Fragment";function Wr({children:e,view:t}){return this[y].portal=t,e}Wr.displayName="Portal";var qe={_isNil(e){return e==null},_flattenInto(e,t){if(!this._isNil(t)){if(Array.isArray(t)){for(let n of t)this._flattenInto(e,n);return}e.push(t)}},toArray(e){let t=[];if(!e)return t;for(let n of e)this._flattenInto(t,n);return t},count(e){return this.toArray(e).length},only(e){let t=this.toArray(e);if(t.length!==1)throw new Error(t.length===0?"Expected exactly one child, but received none.":"Expected exactly one child, but received more than one.");return t[0]},map(e,t){let n=this.toArray(e),r=[];for(let o=0;o<n.length;o++)r.push(t(n[o],o));return r},forEach(e,t){let n=this.toArray(e);for(let r=0;r<n.length;r++)t(n[r],r)},find(e,t){let n=this.toArray(e);for(let r=0;r<n.length;r++)if(t(n[r],r))return n[r]},pickOne(e,t){let n=this.toArray(e),r,o=0;for(let s=0;s<n.length&&!(t(n[s],s)&&(o++,r=n[s],o>1));s++);if(o!==1)throw new Error(o===0?"pickOne expected exactly one matching child, but matched none.":"pickOne expected exactly one matching child, but matched multiple.");return r},first(e){return this.toArray(e)[0]},last(e){let t=this.toArray(e);return t.length?t[t.length-1]:void 0}},gn=e=>{let t=function(n,r){return e({...n,ref:void 0},r)};return t.displayName="Forwarded "+e.displayName,t};function pi(){let e,t=new Promise((o,s)=>{e=o}),n=document.createElement("div");n.style.cssText="position:fixed;inset:0;z-index:2147483647;cursor:crosshair;background:transparent;";function r(o){o.stopImmediatePropagation(),window.removeEventListener("click",r,!0),n.style.display="none";let s=document.elementFromPoint(o.clientX,o.clientY);for(n.remove();!s[rt]&&s.parentNode;)s=s.parentNode;return e(s[rt]),!1}return setTimeout(()=>{document.body.appendChild(n),window.addEventListener("click",r,!0)},50),t}function W(e){for(let t in e)return!1;return!0}var se=(e,t,n)=>{if(Object.is(e,t))return!0;if(Te(e)!==Te(t))return!1;if(Te(e)==="array")return e.length!==t.length?!1:e.every((r,o)=>o===n||Object.is(r,t[o]));if(Te(e)==="object"){let r=Object.keys(e).filter(s=>s!==n),o=Object.keys(t).filter(s=>s!==n);return r.length!==o.length?!1:r.every(s=>Object.prototype.hasOwnProperty.call(t,s)&&Object.is(e[s],t[s]))}return Te(e)==="date"?e.getTime()===t.getTime():Object.is(e,t)};function yn(e,t){return Te(e)!==Te(t)?!1:Te(e)==="array"?e.length!==t.length?!1:e.every((n,r)=>yn(n,t[r])):Te(e)==="object"?Object.keys(e).length!==Object.keys(t).length?!1:Object.keys(e).every(n=>yn(e[n],t[n])):Te(e)==="date"?e.getTime()===t.getTime():e===t}function Le(e){return!(e&&e.constructor===Function)||e.prototype===void 0?!1:Function.prototype!==Object.getPrototypeOf(e)?!0:Object.getOwnPropertyNames(e.prototype).length>1}function di(e){return typeof e=="function"&&e.constructor&&e.constructor.name==="AsyncFunction"}function qt(e){return e&&(typeof e=="object"||typeof e=="function")&&typeof e.then=="function"}function hi(e){return e instanceof Error||Object.prototype.toString.call(e)==="[object Error]"}function Ft(e){if(typeof e=="boolean")return e;if(typeof e=="number")return e!==0;if(typeof e=="string"){if(e=e.trim().toLowerCase(),e==="true")return!0;if(e==="false")return!1}return!!e}var mi=Math.floor(Math.random()*1e4),yi=0;function Z(e){return e==null}function B(e){return e||"<<anonymous>>"}function gi(e){return e&&(e.displayName||e.name)||"Unknown"}function Br(e){return e==null||e===!1||e===!0||typeof e=="string"||typeof e=="number"||it(e)?!0:Array.isArray(e)?e.every(Br):!1}function bi(e){return typeof e=="function"||typeof e=="string"}function he(e){let t=function(r,o,s,c,a,l){let u=r[o];if(Z(u)||e(u))return null;let f=e.expectedType||"the correct type",p=u===null?"null":typeof u;return new Error(`Invalid ${c} \`${a}\` of type \`${p}\` supplied to \`${B(s)}\`, expected \`${f}\`.`)};return t.isRequired=function(r,o,s,c,a){let l=r[o];return Z(l)?new Error(`The ${c} \`${a}\` is marked as required in \`${B(s)}\`, but its value is \`${l}\`.`):t(r,o,s,c,a)},t}function wi(){let e={};e.any=(function(){let r=function(s,c,a,l,u){return null};return r.isRequired=function(){return null},r})(),e.array=he(r=>Array.isArray(r)),e.array.expectedType="array",e.bool=he(r=>typeof r=="boolean"),e.bool.expectedType="boolean",e.func=he(r=>typeof r=="function"),e.func.expectedType="function",e.number=he(r=>typeof r=="number"&&!Number.isNaN(r)),e.number.expectedType="number",e.object=he(r=>typeof r=="object"&&r!==null&&!Array.isArray(r)),e.object.expectedType="object",e.string=he(r=>typeof r=="string"),e.string.expectedType="string",e.symbol=he(r=>typeof r=="symbol"),e.symbol.expectedType="symbol",e.component=he(r=>it(r)),e.component.expectedType="component",e.element=he(r=>it(r)),e.element.expectedType="element",e.node=he(r=>Br(r)),e.node.expectedType="node",e.elementType=he(r=>bi(r)),e.elementType.expectedType="elementType",e.oneOf=function(o){let s=Array.isArray(o)?o:[],c=function(l,u,f,p,d){let m=l[u];if(Z(m))return null;for(let g=0;g<s.length;g++)if(m===s[g])return null;let w=m===null?"null":typeof m;return new Error(`Invalid ${p} \`${d}\` of value \`${String(m)}\` supplied to \`${B(f)}\`, expected one of [${s.map(String).join(", ")}] (received type \`${w}\`).`)};return c.isRequired=function(l,u,f,p,d){return Z(l[u])?new Error(`The ${p} \`${d}\` is marked as required in \`${B(f)}\`, but its value is \`${l[u]}\`.`):c(l,u,f,p,d)},c},e.oneOfType=function(o){let s=o||[],c=function(l,u,f,p,d){let m=l[u];if(Z(m))return null;for(let w=0;w<s.length;w++)if(s[w](l,u,f,p,d)===null)return null;return new Error(`Invalid ${p} \`${d}\` supplied to \`${B(f)}\` (none of the allowed types matched).`)};return c.isRequired=function(l,u,f,p,d){return Z(l[u])?new Error(`The ${p} \`${d}\` is marked as required in \`${B(f)}\`, but its value is \`${l[u]}\`.`):c(l,u,f,p,d)},c},e.arrayOf=function(o){let s=o,c=function(l,u,f,p,d){let m=l[u];if(Z(m))return null;if(!Array.isArray(m))return new Error(`Invalid ${p} \`${d}\` of type \`${typeof m}\` supplied to \`${B(f)}\`, expected an array.`);for(let w=0;w<m.length;w++){let g=`${d}[${w}]`,_=s({[u]:m[w]},u,f,p,g);if(_!==null)return _}return null};return c.isRequired=function(l,u,f,p,d){return Z(l[u])?new Error(`The ${p} \`${d}\` is marked as required in \`${B(f)}\`, but its value is \`${l[u]}\`.`):c(l,u,f,p,d)},c},e.objectOf=function(o){let s=o,c=function(l,u,f,p,d){let m=l[u];if(Z(m))return null;if(typeof m!="object"||m===null||Array.isArray(m))return new Error(`Invalid ${p} \`${d}\` of type \`${typeof m}\` supplied to \`${B(f)}\`, expected an object.`);let w=Object.keys(m);for(let g=0;g<w.length;g++){let _=w[g],h=`${d}.${_}`,v=s({[u]:m[_]},u,f,p,h);if(v!==null)return v}return null};return c.isRequired=function(l,u,f,p,d){return Z(l[u])?new Error(`The ${p} \`${d}\` is marked as required in \`${B(f)}\`, but its value is \`${l[u]}\`.`):c(l,u,f,p,d)},c};function t(r,{exact:o}){let s=r?Object.keys(r):[],c=function(l,u,f,p,d){let m=l[u];if(Z(m))return null;if(typeof m!="object"||m===null||Array.isArray(m))return new Error(`Invalid ${p} \`${d}\` of type \`${typeof m}\` supplied to \`${B(f)}\`, expected an object.`);if(o){let g=Object.keys(m);for(let _=0;_<g.length;_++){let h=g[_];if(!Object.prototype.hasOwnProperty.call(r,h)){let v=`${d}.${h}`;return new Error(`Invalid ${p} \`${v}\` supplied to \`${B(f)}\`: extra key \`${h}\` is not allowed by exact().`)}}}for(let g=0;g<s.length;g++){let _=s[g],h=r[_],v=m[_],S=`${d}.${_}`;if(Z(v)){let x=h({[u]:v},u,f,p,S);if(x!==null)return x;continue}let T=h({[u]:v},u,f,p,S);if(T!==null)return T}return null};return c.isRequired=function(l,u,f,p,d){return Z(l[u])?new Error(`The ${p} \`${d}\` is marked as required in \`${B(f)}\`, but its value is \`${l[u]}\`.`):c(l,u,f,p,d)},c}e.shape=function(o){return t(o,{exact:!1})},e.exact=function(o){return t(o,{exact:!0})},e.instanceOf=function(o){let s=function(a,l,u,f,p){let d=a[l];return Z(d)||d instanceof o?null:new Error(`Invalid ${f} \`${p}\` supplied to \`${B(u)}\`: expected instance of \`${gi(o)}\`.`)};return s.isRequired=function(a,l,u,f,p){return Z(a[l])?new Error(`The ${f} \`${p}\` is marked as required in \`${B(u)}\`, but its value is \`${a[l]}\`.`):s(a,l,u,f,p)},s};let n=new Set;return e.checkPropTypes=function(o,s,c,a){},e}var Kr=wi();var vn={};Q(vn,{Component:()=>je,HTMLComponent:()=>St,RootComponent:()=>kt,boolean_html_attributes_set:()=>Zr,capture_events_set:()=>Bt,cloneComponent:()=>Xr,cloneElement:()=>Ri,createComponent:()=>_n,createElement:()=>ji,createPortal:()=>Ii,createRoot:()=>Gr,current_component:()=>Pi,effect_timeout:()=>Bi,events_set:()=>Wt,insertion_effects:()=>qi,layout_effects:()=>Vi,length_css_attributes_set:()=>Jr,memo:()=>Li,passive_effects:()=>Fi,processEffects:()=>Hr,render:()=>Ni,replaceAllComponentInstances:()=>Si,replaceComponentEntity:()=>En,roots:()=>Ui,special_attributes:()=>Yr,update_cbs:()=>Di,update_interval_margin:()=>Ki,update_set:()=>Mi,update_timeout:()=>Wi});var xi="http://www.w3.org/2000/svg";function Fe(e){return e?.[ve]?e.component:e}var wn=new Map,ue=new WeakMap;function Ei(e){if(e=Fe(e),typeof e!="function")return e;let t=ue.get(e);if(!t){let n=st(e);t=ue.get(n)||{},ue.set(e,t),ue.set(n,t)}return t}function st(e){e=Fe(e);let t=new Set;for(;typeof e=="function"&&wn.has(e)&&!t.has(e);)t.add(e),e=wn.get(e);return e}var Ae=new Map;function _i(e){let t=Fe(e.entity);if(typeof t!="function")return;let n=Ae.get(t);n||(n=new Set,Ae.set(t,n)),n.add(e),e.registered_entity=t}function vi(e){let t=e.registered_entity;if(!t)return;let n=Ae.get(t);n&&(n.delete(e),n.size===0&&Ae.delete(t)),delete e.registered_entity}function Ti(e,t,n){let r=Ae.get(t);r&&(r.delete(e),r.size===0&&Ae.delete(t));let o=Ae.get(n);o||(o=new Set,Ae.set(n,o)),o.add(e),e.registered_entity=n}function En(e,t){if(!e||typeof t!="function")return!1;let n=Fe(e.entity),r=st(t),o=ue.get(n)||ue.get(r)||{};if(ue.set(n,o),ue.set(r,o),n===r)return!0;let s=e.component;return!s||typeof n!="function"||typeof r!="function"||Le(n)!==Le(r)?!1:(Le(r)?Object.setPrototypeOf(s,r.prototype):s.render=r.bind(s),e.entity=r,Ti(e,n,r),!0)}function Si(e,t){if(e=Fe(e),t=Fe(t),typeof e!="function"||typeof t!="function"||(t=st(t),e===t))return 0;let n=ue.get(e)||ue.get(t)||{};ue.set(e,n),ue.set(t,n),wn.set(e,t);let r=Ae.get(e);if(!r)return 0;let o=0;for(let s of[...r])En(s,t)&&(s.apply(s.props,s.state),o++);return o}var xn=class{constructor(t){ee(this,"owner");ee(this,"current_map",new Map);ee(this,"new_map",new Map);ee(this,"pick_index",0);this.owner=t}pick(t,n,r){let o,s=this.current_map.get(t);if(s&&s.length>s[F]){o=s[s[F]],s[F]++;let c=Fe(o.entity),a=st(r);typeof c!=typeof a||typeof c=="function"&&Le(c)!==Le(a)?o=n():a&&En(o,a)}else o=n();return s=this.new_map.get(t),s?s.push(o):(s=[o],this.new_map.set(t,s),s[F]=0),o&&(o.parent??(o.parent=this.owner)),o}commit(){this.current_map.forEach(t=>{t.slice(t[F]).forEach(n=>{n.cleanup?n.cleanup():n.element&&!n.portal&&n.element.parentElement?.removeChild?.(n.element)})}),this.current_map=this.new_map,this.new_map=new Map}},Tt=class{constructor(t,n){ee(this,"component");ee(this,"props");this.component=t,this.props=n||{}}apply(t=this.props,n=this.next_state||this.state){try{let r=!0;if(this.outlet&&this?.[ve]&&se(this.props,t,"children")&&se(this.props?.children,t?.children)&&(r=!1),r){typeof n=="function"&&(n=n(this.state));let o=this.entity?.defaultProps||this.component?.constructor?.defaultProps;if(o&&(t={...o,...t||{}}),t?.style&&typeof t.style=="object"&&!t.style[wt]&&(t.style={...t.style,[wt]:!0}),(this?.parent?.component?.context||this?.parent?.component?.getChildContext)&&(this.context={...this.parent.component.context,...this.parent.component.getChildContext?.()}),this.component.shouldComponentUpdate&&!this.component.shouldComponentUpdate(n,t,this.context))return;typeof this.entity=="string"&&(this.element instanceof Element||(this.is_svg||this.container.is_svg?(this.is_svg=!0,this.element=document.createElementNS(xi,this.entity)):this.element=document.createElement(this.entity),t?.defaultValue&&(this.element.value=String(t.defaultValue).slice(0,t?.maxLength)),t?.defaultChecked&&(this.element.checked=t.defaultChecked)),this.element[rt]=this.component),t.ref&&(typeof t.ref=="function"?t.ref(this.element||this.component):t.ref.current=this.element||this.component),t!==void 0&&this.component.componentWillReceiveProps&&this.component.componentWillReceiveProps(t),this.component.componentWillUpdate&&this.component.componentWillUpdate(t,n);let s=this.state,c=this.props;if(this.element&&!(this?.component instanceof kt)&&this.updateElementProps(t),this.props=t,typeof this.next_state=="object")this.state?Object.assign(this.state,n):this.state={...n};else if(this.next_state!==void 0)throw new Error("Component.setState only accepts objects or functions is new state.");this.next_state&&delete this.next_state,this.hooks!==void 0?(this.hook_index=0,E.current_component=[this,E.current_component],this.outlet=this.component.render(t,{current:this.element||this.component}),E.current_component=E.current_component[1]):this.outlet=this.component.render({current:this.element||this.component}),this?.portal&&(this.element=this.portal),this.outlet?.constructor?.name!=="Array"?this.outlet=[this.outlet]:this.outlet=[...this.outlet];for(let a=0;a<this.outlet.length;a++){let l=this.outlet[a];if(l==null||typeof l=="boolean")this.outlet.splice(a,1),a--;else if(typeof l=="function"){let u=this.childFunctionHandler(l);this.outlet.splice(a,1,u),a--}else if(l.constructor.name==="Array")this.outlet.splice(a,1,...l),a--;else{let u=Oi(this,l);this.outlet[a]=u,u[J]===void 0?(u.container=this.element?this:this.container,u.apply(l.props)):u.element?u[J]!==l[J]&&(u.element.textContent=l[J],u[J]=l[J]):(u.element=document.createTextNode(l[J]),u[J]=l[J])}}this.cache&&this.cache.commit(),this.element&&this.arrangeOutlet(),this.component.componentDidUpdate&&this.component.componentDidUpdate(c,s,this.last_snapshot),this.last_snapshot&&delete this.last_snapshot}}catch(r){ki(this,r)}}async cleanup(){vi(this);try{let t=[];if(this.props?.ref&&(typeof this.props.ref=="function"?this.props.ref(null):this.props.ref.current=null),this.component.componentWillUnmount&&this.component.componentWillUnmount(),this?.element?.parentElement&&!this.portal&&this.element.parentElement.removeChild(this.element),this.outlet!==void 0)for(let n of this.outlet)n.cleanup&&t.push(n.cleanup());if(this.props?.children!==void 0)for(let n of this.props.children)n.cleanup&&t.push(n.cleanup());if(this.hooks!==void 0)for(let n of this.hooks)n.cleanup&&t.push(n.cleanup());await Promise.all(t)}catch(t){throw t}}updateElementProps(t,n=!1){this.entity==="input"?(t?.type||(t.type="text"),t.type!==this.element.type&&(this.element.type=t.type),t?.value!==void 0&&t?.value!==this.element.value&&(t.value===void 0&&(t.value=""),this.element.value=String(t.value).slice(0,t?.maxLength))):this.entity==="textarea"?t?.value!==this.element.value&&(this.element.value=String(t.value).slice(0,t?.maxLength)):this.entity==="select"?typeof t.value=="string"&&t.value!==this.element.value&&(this.element.value=t.value):this.entity==="option"&&(this.container?.props?.value?.constructor?.name==="Array"?t.selected=this.container.props.value.indexOf(t.value)!==-1:typeof this.container?.props?.value=="string"&&(t.selected=this.container.props.value===t.value));for(let r in this.props){let o=r.toLowerCase();(!t.hasOwnProperty(r)||!r.startsWith("data-")&&!r.startsWith("aria-")&&(t[r]===void 0||t[r]===null||t[r]===""||t[r]===!1))&&(Wt.has(o)?this.event_detachers[o]():this.element.removeAttribute(r))}for(let r in t){let o=r.toLowerCase();if(!Yr.has(o)&&(t===this.props||!E.defaultIsEqual(t[r],this.props[r])||n))if(Wt.has(o))this.event_detachers??(this.event_detachers={}),this.event_detachers[o]?.(),this.event_detachers[o]=E.addWrappedEventListener(this.element,o.substring(2),t[r]);else if(Bt.hasOwnProperty(o)){let s=Bt[o];this.event_detachers??(this.event_detachers={}),this.event_detachers[o]?.(),this.event_detachers[o]=E.addWrappedEventListener(this.element,s.substring(2),t[r],{capture:!0})}else if(r==="style")if(typeof t.style=="string")this.element.style=t.style;else{if(this.props?.style)if(typeof this.props.style=="string")this.element.style="";else for(let s in this.props.style)s!==wt&&!t?.style?.hasOwnProperty?.(s)&&(this.element.style[s]="");for(let s in t.style)Jr.has(s)&&isFinite(t.style[s])&&(t.style[s]+="px");Object.assign(this.element.style,t.style)}else if(Zr.has(r)){let s=Ft(t[r]);s!==this.element[r]&&(this.element[r]=s)}else r==="autoFocus"?this.element.autofocus=Ft(t[r]):r==="htmlFor"||r==="for"?this.element.setAttribute("for",t[r]):(o!=="value"||["input","textarea","select"].indexOf(this.entity)===-1)&&this.element.setAttribute(o,t[r])}t?.action?this.element.onsubmit=t.action:this.element.onsubmit=void 0,this.updateElementClass(t)}updateElementClass(t=this.props){let n=t?.className??t?.class??"";this?.parent?.[pe]&&(n+=" "+this.parent[pe]),n=n.trim();for(let r of Array.from(this.element.classList))n.indexOf(r)===-1&&this.element.classList.remove(r);if(n.length>0){n=n.split(/\s+/g);for(let r of n)r.length>0&&this.element.classList.add(r)}}scanZombies(t,n){let r=t.element.childNodes;for(;r[t.insert_index]&&r[t.insert_index][hn]&&r[t.insert_index]!==n;)t.insert_index++}appendElement(t){t.portal||(this.scanZombies(t.container,t.element),t?.element.parentNode===null?(t.container.element.insertBefore(t.element,t.container.element.childNodes[t.container.insert_index]||null),t?.component?.componentDidMount&&t.component.componentDidMount()):t.container.element.childNodes[t.container.insert_index]!==t.element&&t.container.element.insertBefore(t.element,t.container.element.childNodes[t.container.insert_index]||null),t.container.insert_index++)}arrangeOutlet(){this.insert_index=0;for(let t of this.outlet)t&&(t.element?(t.container=this.element?this:this.container,t.container.appendElement(t)):(t.arrangeOutlet&&t.outlet&&t.arrangeOutlet(),t?.mounted||(t.mounted=!0,t?.component?.componentDidMount&&t.component.componentDidMount())))}childFunctionHandler(t){return t(this.state)}},ki=(e,t)=>{let n=t?.error instanceof Error?t.error:t?.reason!==void 0?t.reason:t,r=E.isThenable(t)?t:E.traceError(n,t?.fileName||null),o=[e];for(;e&&!e.component?.componentDidCatch;)e=e.parent,e&&o.push(e);e?.component?.componentDidCatch&&e.entity?.getDerivedStateFromError&&e.component.setState(e.entity.getDerivedStateFromError.call(e,r));let s=Array.prototype.map.call(o,c=>`in ${typeof c.component.displayName=="function"?c.component.displayName():c.component.displayName}`).join(`
|
|
58
|
+
`);if(r.componentStack=o,r.componentStackLog=s,e?.component?.componentDidCatch)e.component.componentDidCatch(r,{componentStack:o,componentStackLog:s});else throw t};function Ci(e,t){let n=e;if(e[J]===void 0){let r=e.entity,o=!1,s=e.props[Vt];if(s&&delete e.props[Vt],typeof r=="object")if(r[ve])o=r[ve],r=r.component;else throw new Error("Invalid component.");if(r=st(r),typeof r=="string")n=new St(r,e.props);else if(Le(r)){r?.defaultProps&&(e.props={...r.defaultProps,...e.props}),n=new r(e.props);let c=Object.getOwnPropertyDescriptor(n,"state");c&&typeof c.get!="function"&&typeof c.set!="function"&&(n[y].state=n.state,Object.defineProperty(n,"state",{get(){return this[y].state},set(a){if(this[y].state===void 0)this[y].state=a;else throw new Error("Assigning component state this way is not allowed.")}}))}else if(typeof r=="function")r?.defaultProps&&(e.props={...r.defaultProps,...e.props}),n=new je(e.props),n.render=r.bind(n),n[y].hooks=[],n[y].hook_index=0;else throw new Error("Error in constructing component.");s&&(n[y].location=s),n[y].entity=r,_i(n[y]),e.container&&(n[y].container=e.container),o&&(n[y][ve]=!0)}return t instanceof Tt&&(n[y].parent=t),n}function Oi(e,t){try{e.cache??(e.cache=new xn(e));let n=t[J]!==void 0,r=t instanceof Tt,o=n||r?void 0:st(t.entity),s=!n&&t.props&&t.props.key!==void 0&&t.props.key!==null,c;return n?c=":text:":s?c=t.props.key:typeof o=="function"?c=Ei(o):c=o,e.cache.pick(c,()=>n||r?t:Ci(t,e)[y],o)}catch(n){if(t?.component?.componentDidCatch)t.component.componentDidCatch(n);else throw n}}function Ai(){clearTimeout(E.effect_timeout);let e=E.update_set,t=E.update_cbs;E.update_set=new Set,E.update_cbs=new Set;for(let n of e)n.apply();for(let n of t)n();Hr()}function Hr(){let e=E.insertion_effects,t=E.layout_effects,n=E.passive_effects;E.insertion_effects=new Set,E.layout_effects=new Set,E.passive_effects=new Set;for(let r of e)r();for(let r of t)r();requestAnimationFrame(()=>{for(let r of n)r()})}var $i=(e,t)=>{let n;return t.key!==void 0?n=t.key:t.id!==void 0?n=":i:"+t.id:t.path!==void 0?n=":p:"+t.path:t[J]!==void 0?n=":text:":(typeof e=="string"?n=":t:"+e:e?.name?n=e.name:n="::",t.name!==void 0?n=n+":"+t.name:t.path!==void 0&&(n=n+":"+t.path)),n},je=class{get state(){return this[y].state}set state(t){if(this[y].state===void 0)this[y].state=t;else throw new Error("Assigning component state this way is not allowed.")}get context(){return this[y].context}set context(t){throw new Error("Assigning component context this way is not allowed.")}get type(){return this[y].entity}set type(t){throw new Error("Component type is immutable.")}get props(){return this[y].props}set props(t){throw new Error("Assigning component props this way is not allowed.")}get ref(){return this[y].ref}set ref(t){throw new Error("Component ref is immutable.")}get key(){return this[y].props.key}set key(t){throw new Error("Component key is immutable.")}get displayName(){let t=this[y].entity;return t?.displayName?t.displayName:typeof t=="string"?t:typeof t=="function"&&t.name||"Component"}constructor(t){this[y]=new Tt(this,t)}forceUpdate(t){NATIVE_TIMERS.clearTimeout(E.update_timeout),E.update_set.add(this[y].container||this[y]),t&&E.update_cbs.add(t.bind(this)),E.update_timeout=NATIVE_TIMERS.setTimeout(Ai,E.update_interval_margin)}setState(t,n){this.getSnapshotBeforeUpdate!==void 0&&(this[y].last_snapshot=this.getSnapshotBeforeUpdate(this[y].props,this.state)),this[y].next_state=t,this.forceUpdate(n?n.bind(this):void 0)}},St=class extends je{constructor(t,n){super(n),this[y].entity=t,t==="svg"&&(this[y].is_svg=!0)}render(){return this[y].props.children}},kt=class extends St{constructor(n,r){super(":root:",r);ee(this,"displayName","Root");typeof this.element=="string"&&(n=document.querySelector(n)),this[y].element=n;for(let o of r.children)o[y]?o[y].container=this[y]:o.container=this[y]}};function _n(e,t={},...n){if(typeof e!="string"&&typeof e!="function"&&(typeof e!="object"||!e[ve]))throw new Error("Invalid entity for createComponent.");for(let r=0;r<n.length;r++){let o=n[r];if(o==null||typeof o=="boolean"){n.splice(r,1),r--;continue}["number","bigint"].indexOf(typeof o)!==-1&&(o=o.toString()),typeof o=="string"?n[r]={[J]:o}:n[r]=o}return t.key=$i(e,t),t.children=n,{entity:e,props:t,[y]:null}}function Gr(e){let t;return{render(n){if(t)throw new Error("root already rendered!");return t=new kt(e,{children:[n]}),E.roots.add(t[y]),t.forceUpdate(),t},unmount(){t&&(t.cleanup(),e.innerHTML="")},getCore(){return t[y]}}}function Ii(e,t){return _n(E.Portal,{view:t},e)}function Xr(e,t,...n){let r={entity:e.entity,props:{...e.props,...t},[y]:null};return n?.length&&(r.props.children=n),r}var Ri=Xr;function Ni(e,t){if(e[y]&&(e[y].container||e[y].parent))throw new Error("Component is already in use");return Gr(t).render(e)}function Li(e){return typeof e=="object"?e[ve]=!0:e={component:e,[ve]:!0,[y]:null},e}var ji=_n,Pi=[],Mi=new Set,Di=new Set,Ui=new Set,Vi=new Set,qi=new Set,Fi=new Set,Wi,Bi,Ki=0,Yr=new Set(["classname","ref","action","lilact_jsx_loc","children","key","defaultvalue","defaultchecked"]),Wt=new Set(["onafterprint","onbeforeprint","onbeforeunload","onerror","onhashchange","onload","onmessage","onoffline","ononline","onpagehide","onpageshow","onpopstate","onresize","onstorage","onunload","onblur","onchange","oncontextmenu","onfocus","oninput","oninvalid","onreset","onsearch","onselect","onsubmit","oncancel","onkeydown","onkeypress","onkeyup","onclick","ondblclick","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","onmousewheel","onwheel","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","onscroll","oncopy","oncut","onpaste","onabort","oncanplay","oncanplaythrough","oncuechange","ondurationchange","onemptied","onended","onerror","onloadeddata","onloadedmetadata","onloadstart","onpause","onplay","onplaying","onprogress","onratechange","onseeked","onseeking","onstalled","onsuspend","ontimeupdate","onvolumechange","onwaiting","ontoggle","onpointerdown","onpointerup","onpointermove","onpointercancel","onpointerover","onpointerout","onpointerenter","onpointerleave"]),Bt={};for(let e of Wt)Bt[e+"capture"]=e;var Jr=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","top","right","bottom","left","margin","marginTop","marginRight","marginBottom","marginLeft","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","borderWidth","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","outlineWidth","fontSize","lineHeight","letterSpacing","wordSpacing","textIndent","borderRadius","borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius","columnGap","rowGap","gap"]),Zr=new Set(["disabled","readOnly","required","checked","multiple","selected","hidden","open","loop","muted","controls","playsInline","allowFullScreen"]);var Sn={};Q(Sn,{createContext:()=>ct,startTransition:()=>Qi,useActionState:()=>Yi,useCallback:()=>me,useContext:()=>at,useDebugValue:()=>zi,useDeferredValue:()=>Zi,useEffect:()=>ne,useHook:()=>ce,useId:()=>Hi,useImperativeHandle:()=>Tn,useInsertionEffect:()=>Xi,useLayoutEffect:()=>Pe,useLocalStorage:()=>Gi,useMemo:()=>Ct,useReducer:()=>Ji,useRef:()=>L,useState:()=>te,useTransition:()=>zr});function ce(){let e=E.current_component[0];return e.hooks[e.hook_index]===void 0&&e.hooks.push({}),e.hooks[e.hook_index++]}function te(e){let t=ce();return W(t)&&(typeof e=="function"?t.value=e():t.value=e,t.set_func=function(n,r,o){typeof o=="function"?r.value=o(r.value):r.value=o,n.component.forceUpdate()}.bind(void 0,E.current_component[0],t)),[t.value,t.set_func]}function me(e,t){if(t!==void 0&&!Array.isArray(t)&&t!==null&&typeof t!="object")throw new Error("Callback dependencies must be an array, object or omitted.");let n=ce();return!W(n)&&t!==void 0&&n?.deps!==void 0&&se(t,n.deps)||(n?.cleanup&&n.cleanup(),n.deps=t,n.callback=e),n.callback}function ct(e){return{default:e,Provider:function({value:n,children:r}){return r}}}function at(e){let t=E.current_component[0]?.parent;for(;t&&t.entity!==e.Provider;)t=t.parent;return t?t.props?.value??e.default:e.default}function Hi(e="N"){let t=ce();return W(t)&&(t.id=e+E.id_num++),t.id}function zr(){let e=ce();return W(e)&&(e.count=0,e.func=(async function(t,n,r){n.count===0&&t.component.forceUpdate(),n.count++;try{return await r()}finally{n.count--,n.count===0&&t.component.forceUpdate()}}).bind(void 0,E.current_component[0],e)),[e.count!=0,e.func]}function Gi(e,t){let n=ce(),r;try{r=JSON.parse(localStorage[e])}catch{}return r===void 0&&(typeof t=="function"&&(t=t()),r=t,localStorage[e]=JSON.stringify(r)),W(n)&&(n.value=r,n.set_func=function(o,s,c){typeof c=="function"&&(c=c(s.value)),c!==s.value&&(localStorage[e]=JSON.stringify(c),s.value=c,o.component.forceUpdate())}.bind(void 0,E.current_component[0],n)),[n.value,n.set_func]}function L(e=null){let t=ce();return W(t)&&(t.current=e),t}async function Pe(e,t){if(t!==void 0&&!Array.isArray(t)&&t!==null&&typeof t!="object")throw new Error("Layout effect dependencies must be an array, object or omitted.");let n=ce();!W(n)&&t!==void 0&&n?.deps!==void 0&&se(t,n.deps)||(n?.cleanup&&(await n.cleanup(),n.cleanup=void 0),n.deps=t,E.layout_effects.add(async()=>{n.cleanup=await e()}),NATIVE_TIMERS.clearTimeout(E.effect_timeout),E.effect_timeout=NATIVE_TIMERS.setTimeout(E.processEffects,0))}async function ne(e,t){if(t!==void 0&&!Array.isArray(t)&&t!==null&&typeof t!="object")throw new Error("Effect dependencies must be an array, object or omitted.");let n=ce();!W(n)&&t!==void 0&&n?.deps!==void 0&&se(t,n.deps)||(n?.cleanup&&(await n.cleanup(),n.cleanup=void 0),n.deps=t,E.passive_effects.add(async()=>{n.cleanup=await e()}),NATIVE_TIMERS.clearTimeout(E.effect_timeout),E.effect_timeout=NATIVE_TIMERS.setTimeout(E.processEffects,0))}async function Xi(e,t){if(t!==void 0&&!Array.isArray(t)&&t!==null&&typeof t!="object")throw new Error("Insertion effect dependencies must be an array, object, or omitted.");let n=ce();!W(n)&&t!==void 0&&n?.deps!==void 0&&se(t,n.deps)||(n?.cleanup&&(await n.cleanup(),n.cleanup=void 0),n.deps=t,E.insertion_effects.add(async()=>{n.cleanup=await e()}),NATIVE_TIMERS.clearTimeout(E.effect_timeout),E.effect_timeout=NATIVE_TIMERS.setTimeout(E.processEffects,0))}function Ct(e,t){if(t!==void 0&&!Array.isArray(t)&&t!==null&&typeof t!="object")throw new Error("Memo dependencies must be an array or omitted.");let n=ce();return!W(n)&&t!==void 0&&n?.deps!==void 0&&se(t,n.deps)||(n.deps=t,n.value=e()),n.value}function Yi(e,t){let n=ce(),[r,o]=zr();return W(n)&&(n.state=t,n.form_action=s=>(s.preventDefault(),o(async()=>{let c=new FormData(s.target,s.submitter);n.state=await e(n.state,c)}),!1)),[n.state,n.form_action,r]}function Ji(e,t,n){let r=ce();return W(r)&&(r.state=n?n(t):t,r.dispatch=function(o,s,c){let a=s.reducer(s.state,c);E.defaultIsEqual(a,s.state)||(s.state=a,o.component.forceUpdate())}.bind(void 0,E.current_component[0],r)),r.reducer=e,[r.state,r.dispatch]}function Zi(e,t){let{useEffect:n,useRef:r,useState:o}=E,[s,c]=o(typeof t<"u"?t:e),a=r(e),l=r(null);return n(()=>{if(a.current===e)return;a.current=e,l.current!=null&&(l.current.cancelled=!0,l.current=null);let u={cancelled:!1};return l.current=u,Promise.resolve().then(()=>{u.cancelled||(c(e),l.current=null)}),()=>{l.current&&(l.current.cancelled=!0,l.current=null)}},[e]),s}function Tn(e,t,n){n!==void 0&&e?.deps!==void 0&&se(n,e.deps)||(e.deps=n,typeof e?.current!="object"&&(e.current={}),Object.assign(e.current,t()))}function zi(e,t=n=>n){}function Qi(e){e()}var kn={};Q(kn,{lazy:()=>is,require:()=>ro,required_scripts:()=>Be,run:()=>ut,runScripts:()=>cs});function es(e,t){let n=t.startsWith("/"),r=(n?"":e).split("/").filter(Boolean);!n&&!e.endsWith("/")&&r.pop();for(let o of t.split("/"))!o||o==="."||(o===".."?r.pop():r.push(o));return`${n?"/":""}${r.join("/")}`}function eo(e,t="Unknown error"){if(e instanceof Error)return e;if(e?.error instanceof Error)return e.error;let n=new Error(e?.message==null?t:String(e.message));if(e&&typeof e=="object"){e.name&&(n.name=e.name),e.stack&&(n.stack=e.stack);for(let r of Object.keys(e))r in n||(n[r]=e[r])}return n}function ts(e,t){let n=eo(e);return n.lilact_source||(n.lilact_source={path:t}),n}function We(e,t){let n=ts(e,t);return n.isTraced?n:typeof E.traceError=="function"?E.traceError(n,t):(E.error=n,n)}var Be={};function to(e,{code:t=""}={}){let n={path:e,code:String(t),mappings:[],meta:{},exports:{},loaded:!1,request:void 0,error:void 0};return Be[e]=n,n}function no(e,t={}){if(E.importObjectPaths?.[e])return E.importObjectPaths[e];t.requirer?.path&&(e=es(t.requirer.path,e));let n=!!E[ot]||!!t.isLazy,r=rs(e,{});if(r.loaded&&!t.forceReload)return r.exports;if(e.startsWith("#")){let c=document.getElementById(e.slice(1));if(!c)throw We(new Error(`Required element not found (${e})`),e);return ut(c.textContent||"",e,{forceReload:t.forceReload})}if(n)return E[ot]=!1,r.request&&!t.forceReload?r.request:os(e,r,t);let o=E.resolver?.(e);if(o!=null){if(e.endsWith(".css")){bt(String(o)),r.code=String(o),r.loaded=!0;return}return ut(String(o),e,{forceReload:t.forceReload})}let s=new XMLHttpRequest;try{s.open("GET",e,!1),s.send(null)}catch(c){throw We(c,e)}if(s.status>=200&&s.status<300){if(e.endsWith(".css")){r.code=s.responseText,bt(r.code),r.loaded=!0;return}return ut(s.responseText,e,{forceReload:!0})}throw We(new Error(`Unable to load ${e}: HTTP ${s.status||0}`),e)}function ro(e){let t={};return arguments.length===2&&arguments[1]&&typeof arguments[1]=="object"&&(t=arguments[1]),no(e,t)}function da(e,t={}){e.importsObject??(e.importsObject={});for(let n of Object.keys(e.importsObject))delete e.importsObject[n];for(let n in e.meta.imports){let r=e.meta.imports[n],o=no(n,{requirer:e,forceReload:t.forceReload});for(let s in r.named_imports){if(s==="")continue;let c=r.named_imports[s];if(!Object.prototype.hasOwnProperty.call(o,c))throw new Error(`Imported module does not export any "${s}".`);e.importsObject[s]=o[c]}for(let s of r.import_defaults){if(!Object.prototype.hasOwnProperty.call(o,"default"))throw new Error("Imported module does not export a default.");e.importsObject[s]=o.default}for(let s of r.import_stars)e.importsObject[s]={...o}}return e.importsObject}function Qr(e){return e&&typeof e=="object"?e:{default:e}}function ns(e,t){if(!e)return;let n=Qr(e),r=Qr(t);for(let o of Object.keys(n)){let s=n[o],c=r[o];typeof s=="function"&&typeof c=="function"&&E.replaceAllComponentInstances(s,c)}}function ut(jsx,path=`InlineJSX-${++E.eval_num}`,options={}){let module=Be[path],previousExports=module?.loaded?module.exports:void 0;module?(module.path=path,module.code=String(jsx),module.mappings=[],module.exports={},module.loaded=!1,module.error=void 0,module.meta={}):module=to(path,{code:jsx});let processed;try{processed=E.transpileJSX(String(jsx),{path,mappings:module.mappings,meta:module.meta,factory:"createComponent",appendSourcemap:!0,injectTraceLabels:!0,produceCJS:!0,addLocationProp:!0,blocksInfo:E.blocksInfo})}catch(e){let t=eo(e);throw t.fileName??(t.fileName=path),t.lilact_source??(t.lilact_source={path}),t.sourcePhase="transpile",module.error=t,E.error=t,t}typeof E.scanBlockLabels=="function"&&E.scanBlockLabels(processed,path);try{globalThis.Lilact=E,globalThis.createComponent=E.createComponent,globalThis.Fragment=E.Fragment;let result=eval(processed);module.loaded=!0;let nextExports=W(module.exports)?result:module.exports;return ns(previousExports,nextExports),nextExports}catch(e){let t=We(e,path);throw t.sourcePhase??(t.sourcePhase="runtime"),module.error=t,t}}function rs(e,t={}){return Be[e]||to(e,t)}function os(e,t,n={}){let r;try{let s=E.resolver?.(e);s==null?t.code&&!t.loaded?r=Promise.resolve(t.code):r=fetch(e).then(c=>{if(!c.ok)throw We(new Error(`Unable to load ${e}: HTTP ${c.status}`),e);return c.text()}):r=Promise.resolve(s)}catch(s){r=Promise.reject(We(s,e))}let o;return o=Promise.resolve(r).then(s=>{if(t.code=String(s),e.endsWith(".css")){bt(t.code),t.loaded=!0;return}return ut(t.code,e,n)}).then(s=>s?.default??s).catch(s=>{throw t.error=We(s,e),t.error}).finally(()=>{t.request===o&&(t.request=void 0)}),t.request=o,o}function is(e){let t="pending",n;E[ot]=!0;try{n=e()}catch(o){t="error",n=o}finally{E[ot]=!1}E.isThenable(n)?n.then(o=>{t="success",n=o},o=>{t="error",n=o}):t!=="error"&&(t="success");function r(o){if(t==="pending"||t==="error")throw n;let s=n?.default??n;return createComponent(s,{...o})}return r}function ss(){return Array.from(document.querySelectorAll('script[type="text/jsx"]')).map(e=>({src:e.getAttribute("src"),content:e.textContent||""}))}async function cs(){for(let e of ss())e.src?await ro(e.src):e.content&&ut(e.content)}var An={};Q(An,{CSSTransition:()=>io,SwitchTransition:()=>as,Transition:()=>oo,TransitionGroup:()=>us});var Cn="unmounted",Kt="exited",Ot="entering",At="entered",On="exiting";function oo({in:e,timeout:t=E.defaultTransitionTimeout,mountOnEnter:n=!1,unmountOnExit:r=!1,appear:o=!1,onEnter:s,onEntering:c,onEntered:a,onExit:l,onExiting:u,onExited:f,children:p,_classNames:d}){var m,w,g;return(m=this[y]).is_mounted??(m.is_mounted=!n||e||o),(w=this[y]).is_appeared??(w.is_appeared=e),(g=this[y]).timer??(g.timer=null),this[y].childFunctionHandler=_=>_(this[y].mount_state),this[y].mount_state||(this[y].is_mounted||(this[y].mount_state=Cn),e?this[y].mount_state=o&&!this[y].is_appeared?Ot:At:this[y].mount_state=Kt),ne(()=>()=>clearTimeout(this[y].timer),[]),ne(()=>{!this[y].is_appeared&&o&&this[y].mount_state===Ot&&e&&(s?.(),requestAnimationFrame(()=>{c?.(!this[y].is_appeared),clearTimeout(this[y].timer),this[y].timer=setTimeout(()=>{this[y].mount_state=At,this.forceUpdate(),this[y].is_appeared=!0,a?.(!this[y].is_appeared)},t)}))},[]),ne(()=>{if(e){if(this[y].is_mounted=!0,this[y].mount_state===Ot||this[y].mount_state===At)return;s?.(!this[y].is_appeared),this[y].mount_state=Ot,this.forceUpdate(()=>{c?.(!this[y].is_appeared),clearTimeout(this[y].timer),this[y].timer=setTimeout(()=>{this[y].mount_state=At,this.forceUpdate(),this[y].is_appeared=!0,a?.()},t)})}else{if(this[y].mount_state===Cn||this[y].mount_state===On||this[y].mount_state===Kt)return;l?.(),this[y].mount_state=On,this.forceUpdate(()=>{u?.(),clearTimeout(this[y].timer),this[y].timer=setTimeout(()=>{this[y].mount_state=Kt,this.forceUpdate(),f?.(),r&&(this[y].is_mounted=!1,this[y].mount_state=Cn,this.forceUpdate())},t)})}},[e,t]),this[y].is_mounted?(d&&(this[y].mount_state===Ot?this[y].is_appeared?this[y][pe]=d.appearActive:this[y][pe]=d.enterActive:this[y].mount_state===At?this[y].is_appeared?this[y][pe]=d.appearDone:this[y][pe]=d.enterDone:this[y].mount_state===On?this[y][pe]=d.exitActive:this[y].mount_state===Kt&&(this[y][pe]=d.exitDone)),p):null}function io({in:e,timeout:t=E.defaultTransitionTimeout,classNames:n="fade",mountOnEnter:r=!1,unmountOnExit:o=!1,appear:s=!1,children:c,onEnter:a,onEntering:l,onEntered:u,onExit:f,onExiting:p,onExited:d}){return typeof n=="string"&&(n={appear:`${n}-enter ${n}-appear`,appearActive:`${n}-enter-active ${n}-appear-active`,appearDone:`${n}-enter-done ${n}-appear-done`,enter:`${n}-enter`,enterActive:`${n}-enter-active`,enterDone:`${n}-enter-done`,exit:`${n}-exit`,exitActive:`${n}-exit-active`,exitDone:`${n}-exit-done`}),createComponent(oo,{in:e,timeout:t,mountOnEnter:r,unmountOnExit:o,appear:s,onEnter:a,onEntering:l,onEntered:u,onExit:f,onExiting:p,onExited:d,_classNames:n},c)}function as({children:e,activeKey:t,mode:n="out-in",timeout:r=E.defaultTransitionTimeout,classNames:o="switch",mountOnEnter:s=!1,unmountOnExit:c=!1,appear:a=!1,onExited:l,onEnter:u,onExiting:f,onEntered:p,...d}){let m=Ct(()=>qe.toArray(e),[e]),[w,g]=te(null),[_,h]=te(!1),[v,S]=te(!0),T=L(t),x=L(t),C=L(w);Pe(()=>{x.current=t},[t]),Pe(()=>{C.current=w},[w]),Pe(()=>{let A=T.current;A!==t&&(T.current=t,g(A),n==="out-in"?(S(!1),h(!0)):(S(!0),h(!1)))},[t,n]);let k=A=>(be,P)=>{typeof l=="function"&&l(be,P),A===C.current&&(g(null),n==="out-in"&&(h(!1),S(!0)),n==="in-out"&&h(!1))},O=A=>(be,P)=>{typeof p=="function"&&p(be,P),n==="in-out"&&A===x.current&&C.current!=null&&h(!0)};return createComponent("div",{style:{position:"relative"}},m.map((A,be)=>{let P=A?.props?.key||be,$t=P===t?v:P===w?!_:!1;return createComponent(io,{...d,key:P,in:$t,timeout:r,classNames:o,mountOnEnter:s,unmountOnExit:c,appear:a,onEnter:u,onExiting:f,onEntered:O(P),onExited:k(P)},createComponent("div",{style:{position:"absolute",inset:0}},A))}))}function us({children:e}){return e}var $n={};Q($n,{addWrappedEventListener:()=>ls,createSyntheticEvent:()=>so,releaseSyntheticEvent:()=>co,wrapListener:()=>ao});function so(e,t){let n=!1,r={nativeEvent:e,type:e.type,target:e.target||e.srcElement||null,currentTarget:t||e.currentTarget||null,timeStamp:e.timeStamp??Date.now(),defaultPrevented:!!e.defaultPrevented,isDefaultPrevented(){return r.defaultPrevented},isPropagationStopped(){return n},preventDefault(){e.preventDefault?.(),r.defaultPrevented=!0},stopPropagation(){e.stopPropagation?.(),n=!0},persist(){},isPersistent(){return!0}};return new Proxy(r,{get(o,s,c){if(Reflect.has(o,s))return Reflect.get(o,s,c);let a=Reflect.get(e,s,e);return typeof a=="function"?a.bind(e):a},has(o,s){return Reflect.has(o,s)||s in e}})}function co(e){e&&(e.currentTarget=null)}function ao(e,t={}){let{stopPropagationOnTrueReturn:n=!1}=t;return function(o){let s=so(o,this||o.currentTarget||null);try{let c=e(s);n&&c===!0&&s.stopPropagation()}finally{co(s)}}}function ls(e,t,n,r={}){let o=ao(n,r);return e.addEventListener(t,o,r),()=>e.removeEventListener(t,o,r)}var Rn={};Q(Rn,{Provider:()=>fs,combineReducers:()=>hs,connect:()=>ds,useDispatch:()=>ps,useSelector:()=>uo,useStore:()=>Ht});var In;function fs({store:e,children:t}){return In??(In=ct(null)),createComponent(In.Provider,{value:e},t)}function Ht(){let e=at(In);if(!e)throw new Error("Could not find Redux store in context. <Provider> is missing.");return e}function ps(){return Ht().dispatch}function uo(e,t=(n,r)=>n===r){let n=Ht(),r=L(),o=L(e);o.current=e;let[s,c]=te(()=>e(n.getState()));return r.current=s,ne(()=>{function a(){let u=o.current(n.getState());t(r.current,u)||(r.current=u,c(u))}let l=n.subscribe(a);return a(),l},[n,t]),s}function ds(e,t){let n=!!e;return function(o){function s(c){let a=Ht(),l={dispatch:a.dispatch};if(typeof t=="function")l=t(a.dispatch,c);else if(typeof t=="object"&&t!==null){l={};let p=a.dispatch;for(let d in t){let m=t[d];l[d]=(...w)=>p(m(...w))}}let u={};e&&(u=uo(d=>e(d,c),se)||{});let f={...c,...u,...l};return createComponent(o,{...f})}return s}}function hs(e){let t=Object.keys(e);for(let n of t)if(typeof e[n]!="function")throw new Error(`combineReducers: reducer for key "${n}" is not a function`);return function(r={},o){let s=!1,c={};for(let a of t){let l=e[a],u=r[a],f=l(u,o);c[a]=f,s=s||f!==u}return s?c:r}}var Pn={};Q(Pn,{animationFramePromise:()=>Cs,clearInterval:()=>vs,clearTimeout:()=>_s,grabTimers:()=>Ts,pauseTimers:()=>bs,releaseTimers:()=>Ss,resetTimers:()=>gs,resumeTimers:()=>ws,setInterval:()=>Es,setTimeout:()=>xs,timeoutPromise:()=>ks});var Me,Nn=0,ye=[],Ke=0;globalThis.NATIVE_TIMERS??(globalThis.NATIVE_TIMERS={});NATIVE_TIMERS.setTimeout??(NATIVE_TIMERS.setTimeout=globalThis.setTimeout.bind(globalThis));NATIVE_TIMERS.setInterval??(NATIVE_TIMERS.setInterval=globalThis.setInterval.bind(globalThis));NATIVE_TIMERS.clearTimeout??(NATIVE_TIMERS.clearTimeout=globalThis.clearTimeout.bind(globalThis));NATIVE_TIMERS.clearInterval??(NATIVE_TIMERS.clearInterval=globalThis.clearInterval.bind(globalThis));var Se=new Map;function ms(e){let t=0,n=ye.length-1;for(;t<=n;){let o=Math.floor((t+n)/2),s=ye[o][de];if(s===e)return[o,ye[o]];s<e?t=o+1:n=o-1}let r=[];return r[de]=e,ye.splice(t,0,r),[t,r]}function Ln(){if(Me!==void 0||ye.length===0)return;NATIVE_TIMERS.clearTimeout(Ke);let e=Math.max(0,ye[0][de]-Date.now());Ke=NATIVE_TIMERS.setTimeout(ys,e)}function jn(e,t=!1){let[n,r]=ms(e[de]);return t||(Nn+=1,e[F]=Nn,Se.set(e[F],e)),r.push(e),n===0&&Me===void 0&&Ln(),e[F]}function ys(){Ke=-1;let e=Date.now(),t=[];for(;ye.length>0&&ye[0][de]-e<=0;)t.push(ye.shift());let n=[];for(let o of t)for(let s of o)n.push(s);let r;for(let o of n){if(o[Oe]||Se.get(o[F])!==o){Se.delete(o[F]);continue}try{o[_t](...o[vt])}catch(s){r??(r=s)}if(o[Oe]){Se.delete(o[F]);continue}Se.get(o[F])===o&&(o[xt]?(o[de]=Date.now()+o[Et],jn(o,!0)):Se.delete(o[F]))}Ln(),r!==void 0&&NATIVE_TIMERS.setTimeout(()=>{throw r},0)}function gs(){NATIVE_TIMERS.clearTimeout(Ke);for(let e of Se.values())e[Oe]=!0;Me=void 0,Nn=-1,ye=[],Ke=-1,Se=new Map}function bs(){Me===void 0&&(NATIVE_TIMERS.clearTimeout(Ke),Ke=-1,Me=Date.now())}function ws(){if(Me===void 0)return;let e=Date.now()-Me;for(let t of ye)t[de]+=e;Me=void 0,Ln()}function xs(e,t=0,...n){let r=Math.max(0,Number(t)||0);return jn({[_t]:e,[Et]:r,[de]:Date.now()+r,[xt]:!1,[Oe]:!1,[vt]:n})}function Es(e,t=0,...n){let r=Math.max(0,Number(t)||0);return jn({[_t]:e,[Et]:r,[de]:Date.now()+r,[xt]:!0,[Oe]:!1,[vt]:n})}function _s(e){let t=Se.get(e);t!==void 0?t[Oe]=!0:NATIVE_TIMERS.clearTimeout(e)}function vs(e){let t=Se.get(e);t!==void 0?t[Oe]=!0:NATIVE_TIMERS.clearInterval(e)}function Ts(){globalThis.setTimeout=Lilact.setTimeout,globalThis.setInterval=Lilact.setInterval,globalThis.clearTimeout=Lilact.clearTimeout,globalThis.clearInterval=Lilact.clearInterval}function Ss(){globalThis.setTimeout=NATIVE_TIMERS.setTimeout,globalThis.setInterval=NATIVE_TIMERS.setInterval,globalThis.clearTimeout=NATIVE_TIMERS.clearTimeout,globalThis.clearInterval=NATIVE_TIMERS.clearInterval}function ks(e=0,t=Lilact){let n,r,o,s=new Promise((c,a)=>{r=c,o=a,n=t.setTimeout(()=>{c()},e)});return s.proceed=()=>{t.clearTimeout(n),r()},s.cancel=()=>{t.clearTimeout(n),o()},s}function Cs(){return new Promise(e=>{requestAnimationFrame(()=>{e()})})}var Mn={};Q(Mn,{asError:()=>fo,blocksInfo:()=>Ms,error:()=>Ds,globalErrorHandler:()=>js,scanBlockLabels:()=>Ps,traceError:()=>po});function Os(){let e=navigator.userAgent;return/Safari/.test(e)&&!/Chrome|Chromium|CriOS|FxiOS|EdgiOS|OPiOS/.test(e)}function Xt(e){let t=Number(e);return Number.isFinite(t)?t:null}function fo(e){if(e instanceof Error)return e;if(e?.error instanceof Error)return e.error;let t=new Error(e?.message==null?String(e):String(e.message));if(e&&typeof e=="object"){e.name&&(t.name=e.name),e.stack&&(t.stack=e.stack);for(let n of Object.keys(e))n in t||(t[n]=e[n])}return t}function lo(e){return e?.name==="JSXParserError"}function As(e){if(typeof e!="string")return null;for(let t of e.split(/\r?\n/)){let n=t.match(/(eval:\/.*):(\d+):(\d+)/);if(n)return{path:n[1].replace(/^eval:\/+/,""),line:Number(n[2])-1,column:Number(n[3])-1}}return null}function $s(e){let t=Xt(e?.lineNumber??e?.lineno??e?.line),n=Xt(e?.columnNumber??e?.colno??e?.column),r=Os()?0:1;return{line:t==null?null:Math.max(0,t-r),column:n==null?null:Math.max(0,n-1)}}function Is(e){let t=e?.lilact_trace;return Array.isArray(t)?t[0]:t}function Rs(e){let t=Is(e);return t==null?null:E.blocksInfo?.labels?.[t]}function Ns(e,t,n){if(!Array.isArray(e)||!e.length||!Number.isFinite(t)||!Number.isFinite(n))return{line:t,column:n};let r=e.filter(u=>Array.isArray(u)&&u.length>=4&&u.slice(0,4).every(f=>Number.isFinite(Number(f)))).sort((u,f)=>Number(u[0])-Number(f[0])||Number(u[1])-Number(f[1]));if(!r.length)return{line:t,column:n};let o=r[0];for(let u of r){let f=Number(u[0]),p=Number(u[1]);if(f<t||f===t&&p<=n)o=u;else break}let s=Number(o[0]),c=Number(o[1]),a=Number(o[2]),l=Number(o[3]);return{line:a+(t===s?0:t-s),column:t===s?Math.max(0,l+n-c):l}}function po(e,t){if(e?.isTraced)return e;let n=fo(e),r=n.lilact_source,o=lo(n)?null:As(n.stack),s=lo(n)?{line:Xt(n.lineNumber),column:Xt(n.columnNumber)}:$s(n),c=r?.path||o?.path||n.fileName||t||null,a=!r?.path||!o?.path||r.path===o.path,l=a?o?.line??s.line??null:s.line??null,u=a?o?.column??s.column??null:s.column??null,f={fileName:c,lineNumber:l,columnNumber:u,message:n.message==null?String(n):String(n.message),name:n.name||"Error",stack:n.stack||null,lilact_source:r||null,_error:n,isTraced:!0},p=c&&Be[c];if(p){let m=Ns(p.mappings,f.lineNumber,f.columnNumber);f.lineNumber=m.line,f.columnNumber=m.column}let d=Rs(n);return d&&(f.lineNumber==null||f.columnNumber==null||!f.fileName)&&(f.fileName||(f.fileName=d.path||t||null),f.lineNumber??(f.lineNumber=d.line),f.columnNumber??(f.columnNumber=d.column),f.label=d.desc),E.error=f,f}function Gt(e){return String(e??"").replaceAll("&","&").replaceAll("<","<").replaceAll(">",">").replaceAll('"',""").replaceAll("'","'")}function Ls(e,t){if(!e||!Number.isFinite(t))return null;let n=String(e.code??"").split(/\r?\n/);return{before:n[t-1]??"",current:n[t]??"",after:n[t+1]??""}}function js(e){let t=e?.error instanceof Error?e.error:e?.reason!==void 0?e.reason:e,n=po(t,e?.fileName||null),r=Ls(Be[n.fileName],n.lineNumber),o=pn(`
|
|
59
59
|
background: #fff;
|
|
60
60
|
text-shadow: 0 0 3px #fff;
|
|
61
61
|
-backdrop-filter: blur(20px);
|
|
@@ -77,11 +77,11 @@ var sr=Object.defineProperty;var Ao=(e,t,n)=>t in e?sr(e,t,{enumerable:!0,config
|
|
|
77
77
|
display: block;
|
|
78
78
|
border-radius: 3px;
|
|
79
79
|
}
|
|
80
|
-
`),s=document.createElement("dialog");s.className=o;let c=n.fileName?`At ${
|
|
80
|
+
`),s=document.createElement("dialog");s.className=o;let c=n.fileName?`At ${Gt(n.fileName)}`:"",a=Number.isFinite(n.lineNumber)?`: Line ${n.lineNumber+1}`:"",l=n._error?.componentStackLog||n._error?.componentStack||"";if(s.innerHTML=`
|
|
81
81
|
<h3><red>Error!</red></h3>
|
|
82
82
|
<b>${c}${a}</b><br><br>
|
|
83
|
-
<b>${
|
|
84
|
-
<span>${
|
|
83
|
+
<b>${Gt(n.name)}</b>:
|
|
84
|
+
<span>${Gt(n.message)}</span>
|
|
85
85
|
<br><br>
|
|
86
86
|
|
|
87
87
|
${r?"<code><pre></pre><red><pre></pre></red><pre></pre></code>":""}
|
|
@@ -90,39 +90,39 @@ var sr=Object.defineProperty;var Ao=(e,t,n)=>t in e?sr(e,t,{enumerable:!0,config
|
|
|
90
90
|
<br>
|
|
91
91
|
Component Stack:
|
|
92
92
|
<br>
|
|
93
|
-
<code><pre>${
|
|
93
|
+
<code><pre>${Gt(l)}</pre></code>
|
|
94
94
|
`:""}
|
|
95
|
-
`,r){let u=s.querySelectorAll("pre");u[0].innerText=r.before,u[1].innerText=r.current,u[2].innerText=r.after}return document.body.appendChild(s),typeof s.showModal=="function"?s.showModal():s.setAttribute("open",""),n}function
|
|
95
|
+
`,r){let u=s.querySelectorAll("pre");u[0].innerText=r.before,u[1].innerText=r.current,u[2].innerText=r.after}return document.body.appendChild(s),typeof s.showModal=="function"?s.showModal():s.setAttribute("open",""),n}function Ps(e,t){for(let n of String(e).matchAll(/LILACTBLOCK(\d+):(\d+),(\d+):([^*]+)\*\//gm))E.blocksInfo.labels[n[1]]={path:t,line:Number(n[2]),column:Number(n[3]),desc:n[4]}}var Ms={counter:0,labels:{}},Ds=null;var Wn={};Q(Wn,{HashRouter:()=>Vs,Link:()=>qs,NavLink:()=>Fs,Route:()=>Ks,Routes:()=>ho,useLocation:()=>qn,useNavigate:()=>Fn});var Un=ct(null),Dn=ct({params:{}}),Vn=e=>typeof e=="string"?e:(e.pathname||"")+(e.search||"")+(e.hash||""),Us=e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");function Vs({children:e,basename:t=""}){let n=()=>{let a=(window.location.hash||"#/").slice(1),l=new RegExp("^"+Us(t)),u=a.replace(l,"")||"/",[f,p]=u.split("#"),[d,m=""]=f.split("?");return{pathname:d||"/",search:m?"?"+m:"",hash:p?"#"+p:"",state:history.state?.__state}},[r,o]=te(n);ne(()=>{let c=()=>o(n());return window.addEventListener("hashchange",c),window.addEventListener("popstate",c),c(),()=>{window.removeEventListener("hashchange",c),window.removeEventListener("popstate",c)}},[t]);let s=me((c,{replace:a=!1,state:l}={})=>{if(typeof c=="number")return new Promise(p=>{let d=!1,m=_=>{d||(d=!0,window.removeEventListener("popstate",w),window.removeEventListener("hashchange",g),_?.(),p())},w=()=>m(()=>o(n())),g=()=>m(()=>o(n()));window.addEventListener("popstate",w,{once:!0}),window.addEventListener("hashchange",g,{once:!0}),setTimeout(()=>m(()=>o(n())),0),history.go(c)});let u=Vn(c),f="#"+(t+u);a?history.replaceState({__state:l},"",f):history.pushState({__state:l},"",f),o(n())},[t]);return createComponent(Un.Provider,{value:{location:r,navigate:s,basename:t}},e)}function qn(){let e=at(Un);if(!e)throw new Error("useLocation must be used inside a Router");return e.location}function Fn(){let e=at(Un);if(!e)throw new Error("useNavigate must be used inside a Router");return e.navigate}function qs({to:e,replace:t=!1,state:n,onClick:r,target:o,download:s,className:c,style:a,children:l,...u}){let f=Fn(),p="#"+Vn(e);function d(m){r&&r(m),!(m.defaultPrevented||m.button!==0||o&&o!=="_self"||m.metaKey||m.altKey||m.ctrlKey||m.shiftKey)&&(m.preventDefault(),f(e,{replace:t,state:n}))}return createComponent("a",{...u,href:p,onClick:d,target:o,download:s,className:c,style:a},l)}function Yt(e){return e&&e.replace(/\/+$/,"")||"/"}function Fs({to:e,end:t=!1,activeClassName:n="active",className:r,activeStyle:o,style:s,target:c,download:a,replace:l=!1,state:u,children:f,onClick:p,...d}){let m=Fn(),w=qn(),g=typeof e=="string"?e.split("?")[0].split("#")[0]:e.pathname||"/",_=w.pathname||"/",h=t?Yt(_)===Yt(g):Yt(_).startsWith(Yt(g)),S=[typeof r=="function"?r({isActive:h}):r,h?n:null].filter(Boolean).join(" ")||void 0,T=typeof s=="function"?s({isActive:h}):s,x=h?{...T||{},...o||{}}:T,C="#"+Vn(e);function k(O){p&&p(O),!(O.defaultPrevented||O.button!==0||O.metaKey||O.altKey||O.ctrlKey||O.shiftKey)&&(O.preventDefault(),m(e,{replace:l,state:u}))}return createComponent("a",{...d,href:C,onClick:k,target:c,download:a,className:S,style:x,"aria-current":h?"page":void 0},typeof f=="function"?f({isActive:h}):f)}function Ws(e){let t=[],n="^"+e.replace(/\/+$/,"").replace(/([.+?^=!:${}()|[\]/\\])/g,"\\$1").replace(/\\\:([A-Za-z0-9_]+)/g,(o,s)=>(t.push(s),"([^/]+)")).replace(/\\\*$/g,"(.+?)?");return n+="/?$",{regex:new RegExp(n),paramNames:t}}function Bs(e,t){if(e==null)return{matched:!0,params:{}};let{regex:n,paramNames:r}=Ws(e),o=n.exec(t);if(!o)return{matched:!1};let s={};return r.forEach((c,a)=>s[c]=decodeURIComponent(o[a+1]||"")),o.length>r.length+1&&(s["*"]=o[r.length+1]?decodeURIComponent(o[r.length+1]):void 0),{matched:!0,params:s}}function Ks({path:e,element:t=null,children:n}){return null}function ho({children:e}){let n=qn().pathname||"/",r=qe.toArray(e);for(let o=0;o<r.length;o++){let s=r[o],c=s.props.path===void 0?null:s.props.path,a=s.props.element??null,l=s.props.children,{matched:u,params:f}=Bs(c,n);if(u)return a?createComponent(Dn.Provider,{value:{params:f}},a):l?createComponent(Dn.Provider,{value:{params:f}},createComponent(ho,{},l)):createComponent(Dn.Provider,{value:{params:f}},createComponent("div",{}))}return null}var Kn={};Q(Kn,{DragHandle:()=>mo,ErrorBoundary:()=>Bn,Spinner:()=>Hs,SplitPane:()=>Gs,Suspense:()=>Zt});function Hs({size:e=48,className:t,style:n,color:r="currentColor",strokeWidth:o=3,"aria-label":s="Loading"}){let c=Math.max(1,e)+"px";return createComponent("div",{className:t,style:{width:"100%",height:"100%",display:"grid",placeItems:"center",...n},"aria-label":s,role:"status"},createComponent("div",{style:{width:c,height:c,borderRadius:"50%",border:`${o}px solid rgba(0,0,0,0.15)`,borderTopColor:r,animation:"ddSpinnerSpin 0.9s linear infinite",boxSizing:"border-box"}}),createComponent("style",{},`
|
|
96
96
|
@keyframes ddSpinnerSpin { to { transform: rotate(360deg); } }
|
|
97
|
-
`))}var Bn=class extends
|
|
97
|
+
`))}var Bn=class extends je{constructor(){super(...arguments);ee(this,"displayName","ErrorBoundary");ee(this,"state",{hasError:!1,error:null});ee(this,"reset",()=>this.setState({hasError:!1,error:null}))}static getDerivedStateFromError(n){return{hasError:!0,error:n}}componentDidCatch(n,r){let{onError:o}=this.props;try{o&&o(n,r)}catch(s){console.error("onError threw",s)}}render(){let{Fallback:n,children:r}=this.props;return this.state.hasError?createComponent(n,{error:this.state.error,reset:this.reset}):r}},Zt=class extends je{constructor(n){super(n);ee(this,"displayName","Suspense");this.state={showingFallback:!1},this._pending=new Set,this._delayTimer=null,this._minShowTimer=null,this._fallbackShownAt=0}static getDerivedStateFromError(n){if(qt(n))return null;throw n}componentDidCatch(n,r){qt(n)&&this._attachPromise(n)}componentWillUnmount(){this._clearTimers(),this._pending.clear()}_clearTimers(){this._delayTimer&&(clearTimeout(this._delayTimer),this._delayTimer=null),this._minShowTimer&&(clearTimeout(this._minShowTimer),this._minShowTimer=null)}_attachPromise(n){if(this._pending.has(n))return;if(this._pending.add(n),this._pending.size===1){let o=Math.max(0,this.props.minDelay);this._delayTimer&&(clearTimeout(this._delayTimer),this._delayTimer=null),this._delayTimer=setTimeout(()=>{this._delayTimer=null,this._fallbackShownAt=Date.now(),this.setState({showingFallback:!0})},o)}let r=()=>{if(this._pending.has(n)&&this._pending.delete(n),this._pending.size===0){if(this._delayTimer){clearTimeout(this._delayTimer),this._delayTimer=null,this.setState({showingFallback:!1});return}let o=Date.now()-(this._fallbackShownAt||0),s=Math.max(0,this.props.minShowTime-o);s===0?this.setState({showingFallback:!1}):(this._minShowTimer&&(clearTimeout(this._minShowTimer),this._minShowTimer=null),this._minShowTimer=setTimeout(()=>{this._minShowTimer=null,this.setState({showingFallback:!1})},s))}};n.then(r,r)}render(){return this.state.showingFallback?createComponent(Fragment,{},this.props.fallback):createComponent(Fragment,{},this.props.children)}};ee(Zt,"defaultProps",{minDelay:200,minShowTime:300});function mo({onDelta:e,onStart:t,onEnd:n,style:r,className:o,children:s,data:c}){let a=L(null),l=L(0),u=L(0),f=L(0),p=L(0),d=L(!1),[m,w]=te(!1),g=me(()=>{a.current=null,d.current=!1,l.current=0,u.current=0,f.current=0,p.current=0,w(!1)},[]),_=me((C,k)=>{let O=C-l.current,A=k-u.current;return{dx:O,dy:A}},[]),h=me((C="up")=>{d.current&&(n?.(C),g())},[n,g]),v=me(C=>{if(!(C.button!=null&&C.button!==0)){d.current=!0,a.current=C.pointerId,l.current=C.clientX,u.current=C.clientY,f.current=C.clientX,p.current=C.clientY,w(!0),t?.(c);try{C.currentTarget.setPointerCapture(C.pointerId)}catch{}}},[t]),S=me(C=>{if(!d.current||a.current!==C.pointerId)return;let{dx:k,dy:O}=_(C.clientX,C.clientY);e?.(k,O,c),f.current=C.clientX,p.current=C.clientY},[_,e]),T=me(C=>{a.current===C.pointerId&&h("up",c)},[h]),x=me(C=>{a.current===C.pointerId&&h("cancel",c)},[h]);return createComponent("div",{role:"button",tabIndex:0,style:{...r,touchAction:"none"},className:`${o} ${m?"dragging":""}`,onPointerDown:v,onPointerMove:S,onPointerUp:T,onPointerCancel:x},s)}var Gs=gn(function({mode:t="horizontal",position:n,defaultPosition:r=.5,min:o=.1,max:s=.9,splitterSize:c=8,onSizeChange:a,resizePolicy:l="proportional",style:u,className:f,firstPaneStyle:p,secondPaneStyle:d,splitterStyle:m,splitterChild:w,children:g},_){let h=L(null),v=L({w:0,h:0}),[S,T]=te(t==="vertical"?"vertical":"horizontal"),x=L(S),[C,k]=te(r),O=L(C),A=L(void 0),be=L(l);ne(()=>{be.current=l},[l]),x.current=S,ne(()=>{O.current=C},[C]),Pe(()=>{T(t==="vertical"?"vertical":"horizontal")},[t]);let P=(R,N,xe,le)=>Xs(R,o,s,N==="vertical"?le:xe,c),K=Ct(()=>{let R=n??C,{w:N,h:xe}=v.current;return(t==="vertical"?xe>0:N>0)?P(R,x.current,N,xe):R},[n,C,o,s,c,t]);ne(()=>{A.current=K},[K]);let $e=R=>{let N=x.current,{w:xe,h:le}=v.current;if(N==="vertical"?le<=0:xe<=0){n==null&&k(R),a?.(R);return}let z=P(R,N,xe,le);n==null&&k(z),A.current=z,a?.(z)};Tn(_,()=>({setPosition:$e,setMode:R=>T(R==="vertical"?"vertical":"horizontal"),getPosition:()=>A.current??K,getMode:()=>x.current}));let $t=L(!1);Pe(()=>{let R=h.current;if(!R)return;let N=new ResizeObserver(xe=>{let le=R.getBoundingClientRect(),z=v.current,oe={w:le.width,h:le.height};v.current=oe;let ft=x.current,Co=ft==="vertical"?z.h>0:z.w>0,rr=ft==="vertical"?oe.h>0:oe.w>0;if(!$t.current&&rr){$t.current=!0;let ie=n??O.current,H=P(ie,ft,oe.w,oe.h);n==null&&k(H),A.current=H,a?.(H);return}if(!Co||!rr)return;let Ie=A.current??K,or=be.current,Re=c;if(or==="fixFirst")if(ft==="vertical"){let ie=z.h-Re,H=oe.h-Re;if(ie>0&&H>0){let fe=Ie*ie/H;Math.abs(fe-Ie)>Jt&&$e(fe)}}else{let ie=z.w-Re,H=oe.w-Re;if(ie>0&&H>0){let fe=Ie*ie/H;Math.abs(fe-Ie)>Jt&&$e(fe)}}else if(or==="fixSecond")if(ft==="vertical"){let ie=z.h-Re,H=oe.h-Re;if(ie>0&&H>0){let fe=1-(1-Ie)*ie/H;Math.abs(fe-Ie)>Jt&&$e(fe)}}else{let ie=z.w-Re,H=oe.w-Re;if(ie>0&&H>0){let fe=1-(1-Ie)*ie/H;Math.abs(fe-Ie)>Jt&&$e(fe)}}});return N.observe(R),()=>N.disconnect()},[o,s,c,a,n]);let It=L(K),[zn,Qn]=te(!1);ne(()=>{zn||(It.current=K)},[K,zn]);let _o=()=>{Qn(!0),It.current=A.current??K},vo=(R,N)=>{let xe=x.current,{w:le,h:z}=v.current;if(xe==="horizontal"){let oe=le>0?le:1;$e(It.current+R/oe)}else{let oe=z>0?z:1;$e(It.current+N/oe)}},To=()=>Qn(!1),er=qe.toArray(g),So=er[0],ko=er[1],ke=K,{w:tr,h:nr}=v.current,we={position:"absolute",top:0,left:0,overflow:"auto",...p||{}},Ce={position:"absolute",bottom:0,right:0,overflow:"auto",...d||{}},De={background:"rgba(0,0,0,0.08)",boxShadow:"inset 0 0 2px rgba(0,0,0,0.25)",zIndex:1e6,position:"absolute",cursor:S==="horizontal"?"col-resize":"row-resize",touchAction:"none",pointerEvents:"auto",...m||{}};if(S==="horizontal")if(we.bottom=0,Ce.top=0,l==="fixFirst"){let R=tr-c,N=R>0?ke*R:0;we.width=N,Ce.left=N+c,Object.assign(De,{top:0,bottom:0,left:N,width:c})}else if(l==="fixSecond"){let R=tr-c,N=R>0?(1-ke)*R:0;Ce.width=N,we.right=N+c,Object.assign(De,{top:0,bottom:0,right:N,width:c})}else we.width=`calc(${ke} * (100% - ${c}px))`,Ce.left=`calc(${ke} * (100% - ${c}px) + ${c}px)`,Object.assign(De,{top:0,bottom:0,left:`calc(${ke} * (100% - ${c}px))`,width:c});else if(we.right=0,Ce.left=0,l==="fixFirst"){let R=nr-c,N=R>0?ke*R:0;we.height=N,Ce.top=N+c,Object.assign(De,{left:0,right:0,top:N,height:c})}else if(l==="fixSecond"){let R=nr-c,N=R>0?(1-ke)*R:0;Ce.height=N,we.bottom=N+c,Object.assign(De,{left:0,right:0,bottom:N,height:c})}else we.height=`calc(${ke} * (100% - ${c}px))`,Ce.top=`calc(${ke} * (100% - ${c}px) + ${c}px)`,Object.assign(De,{left:0,right:0,top:we.height,height:c});return createComponent("div",{ref:h,className:f,style:{position:"relative",width:"100%",height:"100%",overflow:"hidden",...u||{}}},createComponent("div",{style:we},So),createComponent("div",{style:Ce},ko),createComponent(mo,{key:S,onStart:_o,onDelta:vo,onEnd:To,style:De,className:"splitter"},w))}),Jt=1e-6,Xs=function(e,t,n,r,o){let s=t,c=n;return typeof s=="function"&&(r>0?s=s(r,o):s=0),typeof c=="function"&&(r>0?c=c(r,o):c=1),s=Math.max(0,Math.min(s,1)),c=Math.max(0,Math.min(c,1)),Math.max(s,Math.min(c,e))};var Ys={},go={};"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".split("").forEach(function(e,t){Ys[e]=t,go[t]=e});function bo(...e){if(typeof e=="number")return yo(e);let t="";for(let n=0;n<e.length;n+=1)t+=yo(e[n]);return t}function yo(e){let t="";e<0?e=-e<<1|1:e<<=1;do{let n=e&31;e>>>=5,e>0&&(n|=32),t+=go[n]}while(e>0);return t}var Qt=new Set(["break","case","catch","class","const","continue","debugger","default","do","else","export","extends","finally","for","function","if","import","in","instanceof","super","switch","this","throw","try","var","while","with","yield","return","true","false","null","undefined","enum","implements","interface","let","package","private","protected","public","static","yield","as","from","of","async","get","set","static","super","delete","void","typeof","new","await"]),Zs=new Set(["(",")","{","}","[","]","...",".","=>",",",";",":","?","++","--","+","-","*","/","%","**",">>","<<",">>>","<<<","&","|","^","~","==","!=","===","!==",">","<",">=","<=","&&","||","??","?.","=","+=","-=","*=","/=","%=","**=","<<=",">>=",">>>=","&=","|=","^=","??=","&&=","||=","!"]);function zs(e){return/^(?:[+-]?(?:(?:\d(?:\d|_)*)(?:\.(?:\d(?:\d|_)*))?|\.(?:\d(?:\d|_)*))(?:[eE][+-]?(?:\d(?:\d|_)*))?|[+-]?Infinity|[+-]?NaN|[+-]?(?:(?:0[xX](?:[0-9a-fA-F](?:[0-9a-fA-F]|_)*))|(?:0[oO](?:[0-7](?:[0-7]|_)*))|(?:0[bB](?:[01](?:[01]|_)*))|(?:\d(?:\d|_)*))n)$/u.test(e)?!Qt.has(e):!1}function Qs(e){return/(?:\\u\{[0-9a-fA-F]+\}|\\u[0-9a-fA-F]{4})/g.test(e)?!Qt.has(e):!1}function ec(e){return/^(?:[$_\p{ID_Start}][$_\u200C\u200D\p{ID_Continue}]*)$/u.test(e)?!Qt.has(e):!1}function Hn(e,t){if(typeof t=="string"){if(e&&e.hasOwnProperty(t))return e[t];if(t.trim()==="")return t.indexOf(`
|
|
98
98
|
`)!==-1?`
|
|
99
|
-
`:" ";if(
|
|
100
|
-
`||r[o]==="C";)u===1&&(e.out[o]=null),o+=u},c=e.begin,a=[];for(o=0;o<e.out.length;o++)o==0?a.push(e.begin):typeof e.out[o-1]=="string"?a.push(a[o-1]+e.out[o-1].length):a.push(e.out[o-1].end);a.push(e.end),n.imports??(n.imports={});let l=new Set;for(let u of r.matchAll(
|
|
101
|
-
`||h[
|
|
102
|
-
`||h[
|
|
103
|
-
`||h[
|
|
99
|
+
`:" ";if(Qt.has(t))return"K";if(Zs.has(t))return"O";if(ec(t))return"I";if(Qs(t))return"U";if(zs(t))return"N"}else if(typeof t=="object"){if(t.type==="comment")return"C";if(t.type==="regexp")return"R";if(t.type==="js")return"J";if(t.type==="parenthesis")return"P";if(t.type==="string")return"S";if(t.type==="xml")return"X"}return"?"}function Gn(e,t=t.bind(null,null)){return e.map(t).join("")}var tc=/(?:i[C \n]*(?:(?:I|J|(?:\*[C \n]*a[C \n]*I))[C \n]*,[C \n]*)*(?:(?:(?:I(?:[C \n]*a[C \n]*I)?)|J|(?:\*[C \n]*a[C \n]*I))[C \n]*f[C \n]*)?S)|(?:e[C \n]*(?:(?:[*J][C \n]*f[C \n]*S)|(?:d[C \n]*[IFJ])|J|(?:[VF][c \n]*I)|I))|(?:r[c \n]*P)/mg,zt=/O[C \n]*(?:[Id](?:[C \n]*a[C \n]*I)?[C \n]*,[C \n]*)*(?:I(?:[C \n]*a[C \n]*I)?)[C \n]*O/mg;function Xn(e,t,n){let r=Gn(e.out,Hn.bind(null,{import:"i",export:"e",as:"a",from:"f",",":",",".":".","*":"*",";":";",var:"V",let:"V",const:"V",function:"F",class:"F","=":"=",default:"d",require:"r"})),o,s=(u=1)=>{for(;r[o]===" "||r[o]===`
|
|
100
|
+
`||r[o]==="C";)u===1&&(e.out[o]=null),o+=u},c=e.begin,a=[];for(o=0;o<e.out.length;o++)o==0?a.push(e.begin):typeof e.out[o-1]=="string"?a.push(a[o-1]+e.out[o-1].length):a.push(e.out[o-1].end);a.push(e.end),n.imports??(n.imports={});let l=new Set;for(let u of r.matchAll(tc))if(u[0].startsWith("r")){let f=u[0],p=e.out[u.index+f.length-1].out;p.length===1&&p.push(", {requirer:module}")}else if(u[0].startsWith("i")){let f=u[0];if(o=u.index-1,s(-1),r[o]===".")continue;let p=t.substring(e.out[u.index+f.length-1].begin,e.out[u.index+f.length-1].end),d={},m=[],w=[];for(o=u.index+1;o<u.index+f.length-1;o++)switch(e.out.splice(u.index,1,{type:"import",begin:a[u.index],end:a[u.index+f.length],cjs:""}),s(),r[o]){case",":break;case"I":{w.push(e.out[o]);continue}case"J":{let h=Gn(e.out[o].out,Hn.bind(null,{as:"a",",":","}));if(zt.lastIndex=-1,!zt.test(h))throw"incorrect import properties definition.";let v=e.out[o].out;for(let S=1;S<h.length-1;S++){for(;h[S]===" "||h[S]===`
|
|
101
|
+
`||h[S]==="C"||h[S]===",";)S++;let T=v[S];for(S++;h[S]===" "||h[S]===`
|
|
102
|
+
`||h[S]==="C";)S++;if(h[S]==="a"){for(S++;h[S]===" "||h[S]===`
|
|
103
|
+
`||h[S]==="C";)S++;d[v[S]]=T,S++}else d[T]=T}continue}case"*":{o++,s(),o++,s(),m.push(e.out[o]);continue}case"S":for(o=u.index+1;o<u.index+f.length;o++)e.out[o]=null;let _="";for(let h of m)_+=`const ${h} = require(${p},{requirer:module});
|
|
104
104
|
`,l.add(h);for(let h of w)_+=`const ${h} = require(${p},{requirer:module, checkExport: ['default']}).default;
|
|
105
|
-
`,l.add(h);if(Object.keys(d).length){let h="{",
|
|
106
|
-
`||m[h]==="C"||m[h]===",";)h++;let
|
|
105
|
+
`,l.add(h);if(Object.keys(d).length){let h="{",v="[";for(let S in d)l.add(S),h.length>1&&(h+=",",v+=","),S===d[S]?(h+=S,v+=`'${S}'`):(h+=S+":"+d[S],v+=`'${d[S]}'`);h+="}",v+="]",_+=`const ${h} = require(${p}, {checkExport: ${v},requirer:module})`}else _.length===0&&(_+=`require(${p},{requirer:module})`,d[""]=p);e.out[u.index].cjs=_;continue}let g=p.slice(1,p.length-1);n.imports[g]?n.imports[g]={import_stars:[...n.imports[g].import_stars,...m],import_defaults:[...n.imports[g].import_defaults,...w],named_imports:{...n.imports[g].named_imports,...d}}:n.imports[g]={import_stars:m,import_defaults:w,named_imports:d}}else{let f=u[0];if(e.out.splice(u.index,1,{type:"export",begin:a[u.index],end:a[u.index+1]}),o=u.index-1,s(-1),r[o]===".")continue;switch(o=u.index+1,s(),r[o]){case"d":e.out[o]=null,e.out[u.index].cjs="module.exports.default =";continue;case"V":{let d=e.out[o];e.out[o]=null,o++,s();let m=e.out[o];e.out[o]=null,o++,s(),e.out[u.index].cjs=`${d} ${m} = module.exports.${m} `;continue}case"F":{let d=e.out[o];e.out[o]=null,o++,s();let m=e.out[o];e.out[u.index].cjs=`module.exports.${m} = ${d} `;continue}case"*":e.out[o]=null,o++,s(),e.out[o]=null,o++,s();let p=t.substring(e.out[o].begin,e.out[o].end);e.out[o]=null,e.out[u.index].cjs=`Object.assign(module.exports, require(${p},{requirer:module}))`;continue;case"I":e.out[u.index].cjs=`module.exports.${e.out[o]} = `;continue;case"J":{let d={},m=Gn(e.out[o].out,Hn.bind(null,{as:"a",",":",",default:"I"}));if(zt.lastIndex=-1,!zt.test(m))throw"incorrect export properties definition.";let w=e.out[o].out;for(let h=1;h<m.length-1;h++){for(;m[h]===" "||m[h]===`
|
|
106
|
+
`||m[h]==="C"||m[h]===",";)h++;let v=w[h];for(h++;m[h]===" "||m[h]===`
|
|
107
107
|
`||m[h]==="C";)h++;if(m[h]==="a"){for(h++;m[h]===" "||m[h]===`
|
|
108
|
-
`||m[h]==="C";)h++;d[w[h]]=
|
|
108
|
+
`||m[h]==="C";)h++;d[w[h]]=v,h++}else d[v]=v}let g="{",_="{";for(let h in d)g.length>1&&(g+=",",_+=","),h===d[h]?(g+=h,_+=h):(g+=h+":"+d[h],_+=d[h]);if(g+="}",_+="}",e.out[o]=null,o++,s(),e.out[o]==="from"){e.out[o]=null,o++,s();let h=t.substring(e.out[o].begin,e.out[o].end);e.out[o]=null,e.out[u.index].cjs=`{ const ${g} = require(${h},{requirer:module}); Object.assign(module.exports, ${_}); }`}else e.out[u.index].cjs=`Object.assign(module.exports, ${g})`;continue}}}n.imported_names?n.imported_names=new Set([...n.imported_names,...l]):n.imported_names=l}var Da=Symbol.for("LILACT:LOCATION"),D={setBlockLabels:!0,enableLabelStack:!1,preprocessorDelimiter:"\u0294"},ge,Ua=0,wo=/(\{|\}|\[|\]|\(|\)|\.\.\.|=>|\?\?=|\?\?|\?\.|===|!==|>>>|<<=|>>=|>>>=|\*\*=|\*\*|&&=|\|\|=|<=|>=|==|!=|<<|>>|\+\+|--|\+=|-=|\*=|\/=|%=|&=|\^=|\|=|=|\+|-|\*|\/|%|&|\^|\||!|~|\?|:|<|>|=|\.|,|;|\n+|[\s^\n]+)/g;function U(e,t,n,...r){let o=e(t,n,...r);return o?[o.end,o]:[n]}function nc(code,index,container){let i=index,dels=`;=,([{}!^~&|:?*%-+/<>${D.preprocessorDelimiter}`;for(;--i>=0;)if(" \r".indexOf(code[i])===-1){if(code[i]===`
|
|
109
109
|
`){dels+=")]";continue}if(dels.indexOf(code[i])!==-1)break;return}let b={type:"regex",begin:index++};for(;index<code.length;){let ch=code[index];switch(ch){case`
|
|
110
|
-
`:return;case"/":try{return eval("const x="+code.slice(b.begin,index+1)),b.end=index+1,container&&container.children.push(b),b}catch(e){}default:index++}}}function
|
|
111
|
-
`:if(!o)return r.end=t+1,n&&n.children.push(r),r;break}t++}ge("Unterminated comment",r.begin)}function
|
|
110
|
+
`:return;case"/":try{return eval("const x="+code.slice(b.begin,index+1)),b.end=index+1,container&&container.children.push(b),b}catch(e){}default:index++}}}function en(e,t,n){let r={type:"comment",begin:t++};if(e[t]!=="*"&&e[t]!=="/")return nc(e,t-1,n);let o=e[t]==="*";for(t++;t<e.length;){switch(e[t]){case"*":if(o&&e[t+1]==="/")return r.end=t+2,n&&n.children.push(r),r;break;case`
|
|
111
|
+
`:if(!o)return r.end=t+1,n&&n.children.push(r),r;break}t++}ge("Unterminated comment",r.begin)}function rc(e,t,n){let r=t+1;for(;e[r]&&e[r]!==`
|
|
112
112
|
`&&e[r]!==D.preprocessorDelimiter||e[r-1]==="\\";)r++;if(e[r]===D.preprocessorDelimiter){let s={type:"directive",begin:t,cbegin:t,end:r+1,expression:e.slice(t+1,r).replace(/\\(.)/gs,"$1"),value:""};return n&&n.children.push(s),s}else{let s=t;for(;s-->=0&&(e[s]===" "||e[s]===" "););if(s===-1||e[s]===`
|
|
113
|
-
`){let a={type:"directive",begin:t,cbegin:t,end:r+1,pragma:e.slice(t+1,r+1).replace(/\\(.)/gs,"$1"),value:""};return n&&n.children.push(a),a}}ge("Error in preprocessor statement",t)}function
|
|
114
|
-
`);return eval(cmd),segments}function
|
|
115
|
-
`:n!=="`"&&ge("Unterminated string",o.begin);break;case"$":n==="`"&&e[t+1]==="{"&&([t]=U(
|
|
113
|
+
`){let a={type:"directive",begin:t,cbegin:t,end:r+1,pragma:e.slice(t+1,r+1).replace(/\\(.)/gs,"$1"),value:""};return n&&n.children.push(a),a}}ge("Error in preprocessor statement",t)}function oc(node,context){let all_nodes=[];var segments=[],scope_stack=[],last_block=null;let clone_block=(e,t)=>{var n;return last_block=typeof all_nodes[e]=="object"?structuredClone({...all_nodes[e],children:void 0,attributes:{}}):all_nodes[e],last_block.type==="directive"&&(last_block.value=t),(n=scope_stack[0]).out??(n.out=[]),scope_stack[0].out.push(last_block),last_block},clone_attr=(e,t)=>(last_block=typeof all_nodes[e]=="object"?structuredClone({...all_nodes[e],children:void 0,attributes:{}}):all_nodes[e],scope_stack[0].attributes[t]=last_block,last_block),push_scope=()=>{scope_stack=[last_block,scope_stack]},pop_scope=()=>{scope_stack=scope_stack[1]},vine_traverse=e=>{if(typeof e!="object")return segments;if(segments.push("push_scope();"),e.attributes)for(let t in e.attributes){let n=e.attributes[t];all_nodes.push(n),segments.push(`clone_attr(${all_nodes.length-1}, "${t}");`),vine_traverse(n)}if(e.children)for(let t of e.children)all_nodes.push(t),t.type==="directive"&&t.expression===void 0?segments.push(t.pragma):(t.expression?segments.push(`clone_block(${all_nodes.length-1}, ${t.expression});`):segments.push(`clone_block(${all_nodes.length-1});`),vine_traverse(t));return segments.push("pop_scope();"),segments};node.out=[],last_block=node,push_scope(),vine_traverse(node);let cmd=segments.join(`
|
|
114
|
+
`);return eval(cmd),segments}function Yn(e,t,n,r){let o={type:"string",begin:t++,cbegin:t};for(;t<e.length;){switch(e[t]){case n:return o.cend=t,o.end=t+1,r&&r.children.push(o),o;case`
|
|
115
|
+
`:n!=="`"&&ge("Unterminated string",o.begin);break;case"$":n==="`"&&e[t+1]==="{"&&([t]=U(He,e,t+1,!0),t--);break;case"\\":t++;break}t++}ge("Unterminated string",o.begin)}function ic(e,t,n,r){let o=t,s=t;for(;o<e.length;){switch(e[o]){case"<":if(e[o+1]==="/"){o+=2;let a=o;for(;a<e.length&&e[a]!==">";)a++;if(a===e.length)return null;let l=e.substring(o,a).trim();return n.tag!==l&&ge("Ill-formed xml (not closed properly)",t),n.end=a+1,n.cbegin=t+1,n.cend=o-2,a}else[o]=U(Jn,e,o,n),o>s?(s=o,o--):s++;break;case"{":let c=o;[o]=U(He,e,o,!0,n),o--;break}o++}return s}function Jn(e,t,n,r=!1){if(r){let u=["=",",","(","&","|","?",":","{","["],f=t;for(;--f>0;)if(` \r
|
|
116
116
|
`.indexOf(e[f])===-1){if(u.indexOf(e[f])!==-1||f>1&&e[f-1]==="="&&e[f]===">")break;if(f>=5&&e.slice(f-5,f+1)==="return"){if(f>5&&` \r
|
|
117
117
|
{};)`.indexOf(e[f-6])===-1)return;break}if(f>=4&&(e.slice(f-4,f+1)==="yield"||e.slice(f-4,f+1)==="throw")){if(f>4&&` \r
|
|
118
118
|
{};)`.indexOf(e[f-5])===-1)return;break}return}}let o=[" "," ",`
|
|
119
119
|
`,"/","&","^","%","|","!","~","+","*","?","<",">",";",",","=","{","}","(",")","[","]","'",'"',"`","\\","",void 0],s=()=>{for(;e[t]===" "||e[t]===" "||e[t]===`
|
|
120
|
-
`;)t++},c={type:"xml",begin:t++,children:[],attributes:{},self_closing:!1,js_attributes:[]};s();let a=t;for(;a<e.length&&o.indexOf(e[a])===-1;)a++;if(a===e.length)return;c.tag=e.substring(t,a),t=a;let l;for(;t<e.length;){for(a=t;a<e.length&&o.indexOf(e[a])===-1;)a++;if(a===e.length)return;let u=e.substring(t,a);switch(u.length&&(l=u,c.attributes[u]=!0),t=a,e[t]){case"=":if(l){for(t++,s();e[t]==="/";){let w=U(
|
|
121
|
-
`:s();break;default:return}}}function
|
|
122
|
-
`&&t.push(parseInt(n));return t.push(e.length),t}function lt(e,t){for(e.last||(e.last=1);t>e[e.last];)if(e.last++,e.last===e.length){e.last=e.length-1;break}for(;t<e[e.last-1]&&e.last>1;)e.last--;return[e.last-1,t-e[e.last-1]]}function
|
|
120
|
+
`;)t++},c={type:"xml",begin:t++,children:[],attributes:{},self_closing:!1,js_attributes:[]};s();let a=t;for(;a<e.length&&o.indexOf(e[a])===-1;)a++;if(a===e.length)return;c.tag=e.substring(t,a),t=a;let l;for(;t<e.length;){for(a=t;a<e.length&&o.indexOf(e[a])===-1;)a++;if(a===e.length)return;let u=e.substring(t,a);switch(u.length&&(l=u,c.attributes[u]=!0),t=a,e[t]){case"=":if(l){for(t++,s();e[t]==="/";){let w=U(en,e,t);w[0]>t?t=w[0]:t++,s()}let m;switch(e[t]){case"'":case'"':[t,m]=U(Yn,e,t,e[t]),c.attributes[l]=m,l=void 0;break;case"{":[t,m]=U(He,e,t,!0),c.attributes[l]=m,l=void 0;break;default:for(a=t;a<e.length&&o.indexOf(e[a])===-1;)a++;if(a===e.length)return;let w=e.substring(t,a);t=a,c.attributes[l]=w,l=void 0}}else return;break;case"{":let f;[t,f]=U(He,e,t,!0),f.is_xml_js=!0,c.js_attributes.push(f);break;case"/":if(e[t+1]===">")return c.end=t+2,c.cbegin=c.begin,c.cend=c.end,c.self_closing=!0,n&&n.children.push(c),c;let p=U(en,e,t);p[0]>t?t=p[0]:t++;break;case">":let d=ic(e,t,c);if(d===null)return;if(d>t?t=d:t++,c.end)return n&&n.children.push(c),c;t++;break;case" ":case" ":case`
|
|
121
|
+
`:s();break;default:return}}}function Eo(e,t,n){let r={type:"parenthesis",begin:t,cbegin:++t,children:[],self_closing:!1};for(;t<e.length;){let o=e[t];switch(o){case"<":{let[c]=U(Jn,e,t,r,!0);c>t?t=c:t++;break}case'"':case"'":case"`":[t]=U(Yn,e,t,o,r);break;case"{":[t]=U(He,e,t,!0,r);break;case"(":[t]=U(Eo,e,t,r);break;case"}":ge("Unmatched curly bracket",r.begin);break;case")":return r.end=t+1,r.cend=t,n&&n.children.push(r),r;case"/":let[s]=U(en,e,t,r);s>t?t=s:t++;break;case"\\":t++;default:t++;break}}ge("Unterminated parenthesis block",r.begin)}function He(e,t=0,n=!1,r){let o={type:"js",begin:t,cbegin:t+=n?1:0,children:[]};for(;t<e.length;){let s=e[t];switch(s){case"<":{let[c]=U(Jn,e,t,o,!0);c>t?t=c:t++;break}case'"':case"'":case"`":[t]=U(Yn,e,t,s,o);break;case"{":{let c=t;[t]=U(He,e,t,!0,o);break}case"(":[t]=U(Eo,e,t,o);break;case")":ge("Unmatched parenthesis",o.begin);break;case"}":if(n)return o.end=t+1,o.cend=t,r&&r.children.push(o),o;ge("Unmatched curly bracket",o.begin);break;case"/":{let[c]=U(en,e,t,o);c>t?t=c:t++;break}case D.preprocessorDelimiter:{let[c]=U(rc,e,t,o);c>t?t=c:t++;break}case"\\":t++;default:t++}}return n&&ge("Unterminated JS block",o.begin),o.end=t,o.cend=t,r&&r.children.push(o),o}function sc(e,t,n){e.already_labeled=!0;function r(a,l=1){for(;(a+=l)<e.children.length&&a>=0;){let u=e.children[a];if(typeof u=="string"){let f=u.trim();if(f.length)return[a,f]}if(typeof u=="object"&&u.type!=="comment")return[a,u]}return[null,null]}let o,s,c;for(let a=0;a<e.children.length;a++)if(typeof e.children[a]=="object"&&e.children[a].type==="parenthesis"){if([o,c]=r(a,-1),c===null||typeof c!="string"||["switch","catch","try","class"].find(u=>c.trim().endsWith(u))!==void 0)continue;let l=c;if([o,c]=r(o,-1),c===null||typeof c=="string"&&["extern","class"].indexOf(c)!==-1||([o,s]=r(a),s===null))continue;if(D.injectTraceLabels&&typeof s=="object"&&s.type==="js"){let u=lt(t,a);s.children.splice(1,0,`/*LILACTBLOCK${++n.counter}:${u}:${l}*/try{`),D.enableLabelStack?s.children.splice(s.children.length-1,0,`} catch(e){ if(typeof(e)!=='object') e=new Error(e);e.lilact_trace=[${n.counter},e.lilact_trace];throw e}`):s.children.splice(s.children.length-1,0,`} catch(e){ if(typeof(e)!=='object') e=new Error(e);e.lilact_trace=${n.counter};throw e}`),a+=2}}else if(e.children[a]==="=>"&&([o,c]=r(a,-1),typeof c=="object"&&c.type==="parenthesis")){let l=lt(t,c.begin);[o,s]=r(a),typeof s=="object"&&s.type==="js"&&(D.injectTraceLabels&&(s.children.splice(1,0,`/*LILACTBLOCK${++n.counter}:${l}:<ARROW>*/try {`),D.enableLabelStack?s.children.splice(s.children.length-1,0,`} catch(e){if(typeof(e)!=='object') e=new Error(e);e.lilact_trace=[${n.counter},e.lilact_trace];throw e}`):s.children.splice(s.children.length-1,0,`} catch(e){if(typeof(e)!=='object') e=new Error(e);e.lilact_trace=${n.counter};throw e}`)),a+=2)}}function xo(e){let t=[0];for(let n in e)e[n]===`
|
|
122
|
+
`&&t.push(parseInt(n));return t.push(e.length),t}function lt(e,t){for(e.last||(e.last=1);t>e[e.last];)if(e.last++,e.last===e.length){e.last=e.length-1;break}for(;t<e[e.last-1]&&e.last>1;)e.last--;return[e.last-1,t-e[e.last-1]]}function cc(e,t,n,r,o=[]){let s=[],c={version:3,file:t,sourceRoot:"",sources:[t],names:[],mappings:""},a=w=>{if(w?.out?.length>0)for(let g of w.out)a(g);w?.begin!==void 0&&w?.out_index!==void 0&&s.push([...lt(r,w.out_index),...lt(n,w.begin),w])};a(e),s=s.sort((w,g)=>w[0]==g[0]?w[1]-g[1]:w[0]-g[0]),o.push(...s);let l="",u=0,f=0,p=0,d=0;for(let w=0;w<s.length;w++){let g=s[w];for(;u<g[0];)f=0,l+=";",u++;l+=",",l+=bo(g[1]-f,0,g[2]-p,g[3]-d),f=g[1],p=g[2],d=g[3]}c.mappings=l.substring(1).replace(/;,/g,";");let m=`
|
|
123
123
|
|
|
124
124
|
//# sourceMappingURL=data:application/json;charset=utf-8;base64,`+btoa(JSON.stringify(c));return m+=`
|
|
125
|
-
//# sourceURL=eval:/${t}`,m}function
|
|
125
|
+
//# sourceURL=eval:/${t}`,m}function Zn(e,{factory:t="createComponent",fragment:n="Fragment",path:r="anonymous",appendSourcemap:o=!0,injectTraceLabels:s=!1,discardComments:c=!1,produceCJS:a=!1,logErrors:l=!1,addLocationProp:u=!1,mappings:f=[],meta:p,blocksInfo:d={labels:{},counter:0}}={}){D.preprocessorDelimiter??(D.preprocessorDelimiter="\u0294"),D.injectTraceLabels??(D.injectTraceLabels=s);let m=xo(e);ge=((T,x,C)=>{let k=lt(T,C),O=new Error(x);throw l&&console.error(`JSXParserError: ${x} [file ${r} at line ${k[0]}]`),[O.lineNumber,O.columnNumber]=k,O.name="JSXParserError",O.fileName=r,O.lilact_trace="parse",O}).bind(null,m);let w=He(e);w.data=e;let g=T=>{if(T.attributes!==void 0)for(let x in T.attributes)typeof T.attributes[x]=="object"&&g(T.attributes[x]);if(T.children!==void 0&&!T.self_closing){let x=T.type==="js"?T.begin:T.cbegin||T.begin;for(let k=0;k<T.children.length;k++){let O=T.children[k];if(O.begin>x){let A=e.substring(x,O.begin);T.type==="xml"&&(A=A.trim()),A.length&&(T.type==="xml"?T.children.splice(k,0,'"'+A.replaceAll(`
|
|
126
126
|
`,`\\
|
|
127
|
-
`).replaceAll('"','\\"')+'"'):
|
|
128
|
-
`})[O])+'"'):
|
|
127
|
+
`).replaceAll('"','\\"')+'"'):T.children.splice(k,0,...A.split(wo)),k++)}x=O.end,g(O)}let C=T.type==="js"?T.end:T.cend||T.end;if(x<C&&!T.self_closing){let k=e.substring(x,C);T.type==="xml"&&(k=k.trim()),k.length&&(T.type==="xml"?T.children.push('"'+k.replace(/[\\\"\n]/g,O=>({"\\":"\\\\",'"':'\\"',"\n":`\\
|
|
128
|
+
`})[O])+'"'):T.children.push(...k.split(wo)))}T.children=T.children.filter(k=>k!==""),D.setBlockLabels&&!T.already_labeled&&sc(T,m,d)}};g(w),oc(w);let _=[],h=(T,x,C=!1,k=!1)=>{if(_.push(x),typeof x!="object")return x;if(!x)return"";if(x.out_index=T,x.type==="string")return e.substring(x.begin,x.end);if(x.type==="import"||x.type==="export")return x.cjs;if(x.type==="regex")return e.substring(x.begin,x.end);if(x.type==="comment")return c||C?"":e.substring(x.begin,x.end);if(x.type==="directive")return x.value;if(x.type==="parenthesis"){let O="(";if(x.out){a&&Xn(x,e,p);for(let A of x.out)O+=h(T+O.length-1,A)}return O+")"}if(x.type==="js"){let O="";if(x.out){a&&Xn(x,e,p);for(let A of x.out)k&&A.type==="comment"||(O+=h(T+O.length-(C?1:0),A))}return C?O.substring(1,O.length-1):x?.is_xml_js?e.substring(x.begin+1,x.end-1):O}if(x.type==="xml"){x.tag.length===0?x.tag=n:x.tag[0]!==x.tag[0].toUpperCase()&&(x.tag=`"${x.tag}"`);let O="",A=!0;for(let P of x.js_attributes){let K=h(T+O.length,P,!1);O+=`${A?"":", "}${K}`,A=!1}if(x.attributes)for(let P in x.attributes)O+=`${A?"":", "}"${P}": ${h(T+O.length,x.attributes[P],!0)}`,A=!1;if(O+=" }",x.out)for(let P of x.out){let K=h(T+O.length,P,!0,!0);K.length>0&&(O+=`, ${K}`,A=!1)}let be=lt(m,x.begin);return u?O=` ${t}( ${x.tag}, { [Lilact.LOCATION]:["${r}", ${be}], ${O} )`:O=` ${t}( ${x.tag}, { ${O} )`,O}},v="";s&&(v=`/*LILACTBLOCK${++d.counter}:0,0:<EXEC>*/try{`),v+=h(v.length,w),s&&(D.enableLabelStack?v+=`}catch(e){ if(typeof(e)!=='object') e=new Error(e);e.lilact_trace=[${d.counter},e.lilact_trace];throw e}`:v+=`}catch(e){ if(typeof(e)!=='object') e=new Error(e);e.lilact_trace=${d.counter};throw e}`);let S=cc(w,r,m,xo(v),f);return o&&(v+=S),v}var re={VERSION:"RC.7",defaultTransitionTimeout:300,defaultIsEqual:Object.is,...bn,...kn,...vn,...Sn,...An,...Rn,...Pn,...$n,...Mn,...mn,...Wn,...Kn,transpileJSX:Zn,transpilerConfig:D,PropTypes:Kr,redux:sn,emotion:dn};re.default=re;var E=re;re.importObjectPaths={lilact:re,"@emotion/css":re.emotion,redux:re.redux};globalThis.Lilact=re;globalThis.createComponent=re.createComponent;globalThis.Fragment=re.Fragment;globalThis.require=re.require;document.addEventListener("DOMContentLoaded",()=>{re.grabTimers(),re.runScripts().catch(e=>{re.globalErrorHandler?.(e)})});export{vt as ARGS,_t as CALLBACK,pe as CHILD_CLASS_ADDENDUM,Oe as CLEARED,wt as CLONED_STYLE,rt as COMPONENT,y as CORE,io as CSSTransition,qe as Children,je as Component,de as DUE,mo as DragHandle,Bn as ErrorBoundary,Fr as Fragment,St as HTMLComponent,Vs as HashRouter,F as IDX,Et as INTERVAL,hn as IS_ZOMBIE,ot as LAZY,Vt as LOCATION,re as Lilact,qs as Link,ve as MEMOIZED,Fs as NavLink,Wr as Portal,Kr as PropTypes,fs as Provider,xt as REPEAT,kt as RootComponent,Ks as Route,ho as Routes,Hs as Spinner,Gs as SplitPane,Zt as Suspense,as as SwitchTransition,J as TEXT,oo as Transition,us as TransitionGroup,ls as addWrappedEventListener,Cs as animationFramePromise,fo as asError,Ms as blocksInfo,Zr as boolean_html_attributes_set,Bt as capture_events_set,vs as clearInterval,_s as clearTimeout,Xr as cloneComponent,Ri as cloneElement,hs as combineReducers,ds as connect,_n as createComponent,ct as createContext,ji as createElement,Ii as createPortal,Gr as createRoot,so as createSyntheticEvent,Pi as current_component,yn as deepEqual,E as default,Bi as effect_timeout,dn as emotion,Ds as error,yi as eval_num,Wt as events_set,fi as findDOMNode,gn as forwardRef,pi as getComponentUnderPointer,js as globalErrorHandler,Ts as grabTimers,mi as id_num,qi as insertion_effects,di as isAsync,Le as isClass,W as isEmpty,hi as isError,qt as isThenable,it as isValidComponent,li as isValidElement,Vi as layout_effects,is as lazy,Jr as length_css_attributes_set,Li as memo,Fi as passive_effects,bs as pauseTimers,Hr as processEffects,sn as redux,co as releaseSyntheticEvent,Ss as releaseTimers,Ni as render,Si as replaceAllComponentInstances,En as replaceComponentEntity,ro as require,Be as required_scripts,gs as resetTimers,ws as resumeTimers,Ui as roots,ut as run,cs as runScripts,Ps as scanBlockLabels,Es as setInterval,xs as setTimeout,se as shallowEqual,Yr as special_attributes,Qi as startTransition,ks as timeoutPromise,Ft as toBool,po as traceError,Zn as transpileJSX,D as transpilerConfig,Di as update_cbs,Ki as update_interval_margin,Mi as update_set,Wi as update_timeout,Yi as useActionState,me as useCallback,at as useContext,zi as useDebugValue,Zi as useDeferredValue,ps as useDispatch,ne as useEffect,ce as useHook,Hi as useId,Tn as useImperativeHandle,Xi as useInsertionEffect,Pe as useLayoutEffect,Gi as useLocalStorage,qn as useLocation,Ct as useMemo,Fn as useNavigate,Ji as useReducer,L as useRef,uo as useSelector,te as useState,Ht as useStore,zr as useTransition,ao as wrapListener};
|