diff --git a/packages/modules/web_themes/koala/source/index.html b/packages/modules/web_themes/koala/source/index.html index 361ce4e9f9..ebf2c0f92a 100644 --- a/packages/modules/web_themes/koala/source/index.html +++ b/packages/modules/web_themes/koala/source/index.html @@ -6,8 +6,6 @@ - - { viteConf.esbuild = { ...viteConf.esbuild, drop: ['debugger'], - pure: ['console.log', 'console.info', 'console.debug', 'console.table'], + pure: [ + 'console.log', + 'console.info', + 'console.debug', + 'console.table', + ], }; } }, diff --git a/packages/modules/web_themes/koala/source/src-pwa/manifest.json b/packages/modules/web_themes/koala/source/src-pwa/manifest.json index 89326669ef..2e79383fa9 100644 --- a/packages/modules/web_themes/koala/source/src-pwa/manifest.json +++ b/packages/modules/web_themes/koala/source/src-pwa/manifest.json @@ -1,8 +1,25 @@ { - "orientation": "portrait", + "orientation": "any", + "version": "0.0.1", + "manifest_version": 1, "background_color": "#ffffff", "theme_color": "#027be3", "icons": [ + { + "src": "icons/icon-48x48.png", + "sizes": "48x48", + "type": "image/png" + }, + { + "src": "icons/icon-72x72.png", + "sizes": "72x72", + "type": "image/png" + }, + { + "src": "icons/icon-96x96.png", + "sizes": "96x96", + "type": "image/png" + }, { "src": "icons/icon-128x128.png", "sizes": "128x128", @@ -19,13 +36,13 @@ "type": "image/png" }, { - "src": "icons/icon-384x384.png", - "sizes": "384x384", + "src": "icons/icon-512x512.png", + "sizes": "512x512", "type": "image/png" }, { - "src": "icons/icon-512x512.png", - "sizes": "512x512", + "src": "icons/icon-1024x1024.png", + "sizes": "1024x1024", "type": "image/png" } ] diff --git a/packages/modules/web_themes/koala/web/assets/ErrorNotFound-BC17Cfwp.js b/packages/modules/web_themes/koala/web/assets/ErrorNotFound-CQ4EA0eQ.js similarity index 88% rename from packages/modules/web_themes/koala/web/assets/ErrorNotFound-BC17Cfwp.js rename to packages/modules/web_themes/koala/web/assets/ErrorNotFound-CQ4EA0eQ.js index ea1e8c06e9..23f1015d19 100644 --- a/packages/modules/web_themes/koala/web/assets/ErrorNotFound-BC17Cfwp.js +++ b/packages/modules/web_themes/koala/web/assets/ErrorNotFound-CQ4EA0eQ.js @@ -1 +1 @@ -import{C as o,a3 as s,F as l,a4 as t,H as n,Q as r}from"./index-C8WjSvcX.js";const a={class:"fullscreen bg-blue text-white text-center q-pa-md flex flex-center"},p=o({name:"ErrorNotFound",__name:"ErrorNotFound",setup(c){return(d,e)=>(l(),s("div",a,[t("div",null,[e[0]||(e[0]=t("div",{style:{"font-size":"30vh"}},"404",-1)),e[1]||(e[1]=t("div",{class:"text-h2",style:{opacity:"0.4"}},"Oops. Nothing here...",-1)),n(r,{class:"q-mt-xl",color:"white","text-color":"blue",unelevated:"",to:"/",label:"Go Home","no-caps":""})])]))}});export{p as default}; +import{C as o,a3 as s,F as l,a4 as t,H as n,Q as r}from"./index-DCrt5iVV.js";const a={class:"fullscreen bg-blue text-white text-center q-pa-md flex flex-center"},p=o({name:"ErrorNotFound",__name:"ErrorNotFound",setup(c){return(d,e)=>(l(),s("div",a,[t("div",null,[e[0]||(e[0]=t("div",{style:{"font-size":"30vh"}},"404",-1)),e[1]||(e[1]=t("div",{class:"text-h2",style:{opacity:"0.4"}},"Oops. Nothing here...",-1)),n(r,{class:"q-mt-xl",color:"white","text-color":"blue",unelevated:"",to:"/",label:"Go Home","no-caps":""})])]))}});export{p as default}; diff --git a/packages/modules/web_themes/koala/web/assets/IndexPage-BRDFxiis.js b/packages/modules/web_themes/koala/web/assets/IndexPage-dP2WXfRd.js similarity index 99% rename from packages/modules/web_themes/koala/web/assets/IndexPage-BRDFxiis.js rename to packages/modules/web_themes/koala/web/assets/IndexPage-dP2WXfRd.js index 9c914b807b..03d09fd8f9 100644 --- a/packages/modules/web_themes/koala/web/assets/IndexPage-BRDFxiis.js +++ b/packages/modules/web_themes/koala/web/assets/IndexPage-dP2WXfRd.js @@ -1,4 +1,4 @@ -var eg=Object.defineProperty;var tg=(t,e,n)=>e in t?eg(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var Ae=(t,e,n)=>tg(t,typeof e!="symbol"?e+"":e,n);import{i as Lo,e as Pn,K as Pd,g as Ue,r as B,a as g,o as Rt,m as hn,j as sn,R as Td,h as S,J as we,t as mi,L as aa,M as jr,N as At,c as Be,w as he,q as ra,s as la,d as et,x as ng,O as Id,P as La,S as zn,T as Ra,n as Dd,U as io,V as Ro,W as ig,X as As,Y as sg,Z as og,v as ua,l as ag,y as rg,_ as lg,$ as Fl,a0 as Ur,a1 as qs,Q as ke,C as ye,a2 as Od,a3 as K,F as P,a4 as q,a5 as Oe,a6 as Xe,a7 as Re,a8 as ue,I as Ve,a9 as oe,aa as Vd,ab as ug,B as cg,ac as Tn,u as bt,ad as Ed,ae as dg,af as Ad,z as fg,ag as qd,ah as hg,ai as In,E as X,G as A,H as C,aj as Te,ak as mg,al as ln,am as zi,an as Vi,ao as Ld,ap as gg,p as Rd,aq as si,ar as Bn,as as vg,f as pg,k as zl,at as Yr,au as Zr,av as bg,aw as ls,ax as yg,ay as Bl,az as Io,aA as xg,aB as wg,aC as _g,aD as Sg,aE as Nl,aF as Wl,aG as kg,aH as Cg,aI as Mg,aJ as Xr,aK as $d,aL as Pg}from"./index-C8WjSvcX.js";import{y as Ps,j as Ls,Q as Tg,z as Hl,A as Ig,B as jl,u as mn,c as gn,_ as ht,o as gi,h as Fd,s as zd,C as Dg,D as Ul,E as Kr,i as Bd,F as Og,G as Nd,H as Vg,I as Eg,k as Wd,J as Hd,K as Yl,L as Ag,M as Zl,g as jd,N as qg,O as Lg,P as ca,w as xn,p as Bi,q as Ni,r as Xn,v as Wi,l as Rg,m as $g,R as Fg,S as Xl,t as Lt,U as zg,V as Bg,T as Ng,d as Ii,x as Vn}from"./_plugin-vue_export-helper-BlfdpgEM.js";import{u as Fe}from"./mqtt-store-Gw-bQn7d.js";let $a,so=0;const Tt=new Array(256);for(let t=0;t<256;t++)Tt[t]=(t+256).toString(16).substring(1);const Wg=(()=>{const t=typeof crypto<"u"?crypto:typeof window<"u"?window.crypto||window.msCrypto:void 0;if(t!==void 0){if(t.randomBytes!==void 0)return t.randomBytes;if(t.getRandomValues!==void 0)return e=>{const n=new Uint8Array(e);return t.getRandomValues(n),n}}return e=>{const n=[];for(let i=e;i>0;i--)n.push(Math.floor(Math.random()*256));return n}})(),Kl=4096;function mr(){($a===void 0||so+16>Kl)&&(so=0,$a=Wg(Kl));const t=Array.prototype.slice.call($a,so,so+=16);return t[6]=t[6]&15|64,t[8]=t[8]&63|128,Tt[t[0]]+Tt[t[1]]+Tt[t[2]]+Tt[t[3]]+"-"+Tt[t[4]]+Tt[t[5]]+"-"+Tt[t[6]]+Tt[t[7]]+"-"+Tt[t[8]]+Tt[t[9]]+"-"+Tt[t[10]]+Tt[t[11]]+Tt[t[12]]+Tt[t[13]]+Tt[t[14]]+Tt[t[15]]}let Hg=0;const jg=["click","keydown"],Ug={icon:String,label:[Number,String],alert:[Boolean,String],alertIcon:String,name:{type:[Number,String],default:()=>`t_${Hg++}`},noCaps:Boolean,tabindex:[String,Number],disable:Boolean,contentClass:String,ripple:{type:[Boolean,Object],default:!0}};function Yg(t,e,n,i){const s=Lo(Pd,Pn);if(s===Pn)return console.error("QTab/QRouteTab component needs to be child of QTabs"),Pn;const{proxy:o}=Ue(),a=B(null),r=B(null),l=B(null),u=g(()=>t.disable===!0||t.ripple===!1?!1:Object.assign({keyCodes:[13,32],early:!0},t.ripple===!0?{}:t.ripple)),c=g(()=>s.currentModel.value===t.name),d=g(()=>"q-tab relative-position self-stretch flex flex-center text-center"+(c.value===!0?" q-tab--active"+(s.tabProps.value.activeClass?" "+s.tabProps.value.activeClass:"")+(s.tabProps.value.activeColor?` text-${s.tabProps.value.activeColor}`:"")+(s.tabProps.value.activeBgColor?` bg-${s.tabProps.value.activeBgColor}`:""):" q-tab--inactive")+(t.icon&&t.label&&s.tabProps.value.inlineLabel===!1?" q-tab--full":"")+(t.noCaps===!0||s.tabProps.value.noCaps===!0?" q-tab--no-caps":"")+(t.disable===!0?" disabled":" q-focusable q-hoverable cursor-pointer")),f=g(()=>"q-tab__content self-stretch flex-center relative-position q-anchor--skip non-selectable "+(s.tabProps.value.inlineLabel===!0?"row no-wrap q-tab__content--inline":"column")+(t.contentClass!==void 0?` ${t.contentClass}`:"")),h=g(()=>t.disable===!0||s.hasFocus.value===!0||c.value===!1&&s.hasActiveTab.value===!0?-1:t.tabindex||0);function m(y,w){if(w!==!0&&y?.qAvoidFocus!==!0&&a.value?.focus(),t.disable!==!0){s.updateModel({name:t.name}),n("click",y);return}}function p(y){aa(y,[13,32])?m(y,!0):jr(y)!==!0&&y.keyCode>=35&&y.keyCode<=40&&y.altKey!==!0&&y.metaKey!==!0&&s.onKbdNavigate(y.keyCode,o.$el)===!0&&At(y),n("keydown",y)}function v(){const y=s.tabProps.value.narrowIndicator,w=[],x=S("div",{ref:l,class:["q-tab__indicator",s.tabProps.value.indicatorClass]});t.icon!==void 0&&w.push(S(we,{class:"q-tab__icon",name:t.icon})),t.label!==void 0&&w.push(S("div",{class:"q-tab__label"},t.label)),t.alert!==!1&&w.push(t.alertIcon!==void 0?S(we,{class:"q-tab__alert-icon",color:t.alert!==!0?t.alert:void 0,name:t.alertIcon}):S("div",{class:"q-tab__alert"+(t.alert!==!0?` text-${t.alert}`:"")})),y===!0&&w.push(x);const M=[S("div",{class:"q-focus-helper",tabindex:-1,ref:a}),S("div",{class:f.value},mi(e.default,w))];return y===!1&&M.push(x),M}const b={name:g(()=>t.name),rootRef:r,tabIndicatorRef:l,routeData:i};Rt(()=>{s.unregisterTab(b)}),hn(()=>{s.registerTab(b)});function _(y,w){const x={ref:r,class:d.value,tabindex:h.value,role:"tab","aria-selected":c.value===!0?"true":"false","aria-disabled":t.disable===!0?"true":void 0,onClick:m,onKeydown:p,...w};return sn(S(y,x,v()),[[Td,u.value]])}return{renderTab:_,$tabs:s}}const Fa=Be({name:"QTab",props:Ug,emits:jg,setup(t,{slots:e,emit:n}){const{renderTab:i}=Yg(t,e,n);return()=>i("div")}});let Rs=!1;{const t=document.createElement("div");t.setAttribute("dir","rtl"),Object.assign(t.style,{width:"1px",height:"1px",overflow:"auto"});const e=document.createElement("div");Object.assign(e.style,{width:"1000px",height:"1px"}),document.body.appendChild(t),t.appendChild(e),t.scrollLeft=-1e3,Rs=t.scrollLeft>=0,t.remove()}function Zg(t,e,n){const i=n===!0?["left","right"]:["top","bottom"];return`absolute-${e===!0?i[0]:i[1]}${t?` text-${t}`:""}`}const Xg=["left","center","right","justify"],Kg=Be({name:"QTabs",props:{modelValue:[Number,String],align:{type:String,default:"center",validator:t=>Xg.includes(t)},breakpoint:{type:[String,Number],default:600},vertical:Boolean,shrink:Boolean,stretch:Boolean,activeClass:String,activeColor:String,activeBgColor:String,indicatorColor:String,leftIcon:String,rightIcon:String,outsideArrows:Boolean,mobileArrows:Boolean,switchIndicator:Boolean,narrowIndicator:Boolean,inlineLabel:Boolean,noCaps:Boolean,dense:Boolean,contentClass:String,"onUpdate:modelValue":[Function,Array]},setup(t,{slots:e,emit:n}){const{proxy:i}=Ue(),{$q:s}=i,{registerTick:o}=Ps(),{registerTick:a}=Ps(),{registerTick:r}=Ps(),{registerTimeout:l,removeTimeout:u}=Ls(),{registerTimeout:c,removeTimeout:d}=Ls(),f=B(null),h=B(null),m=B(t.modelValue),p=B(!1),v=B(!0),b=B(!1),_=B(!1),y=[],w=B(0),x=B(!1);let M=null,E=null,L;const O=g(()=>({activeClass:t.activeClass,activeColor:t.activeColor,activeBgColor:t.activeBgColor,indicatorClass:Zg(t.indicatorColor,t.switchIndicator,t.vertical),narrowIndicator:t.narrowIndicator,inlineLabel:t.inlineLabel,noCaps:t.noCaps})),D=g(()=>{const N=w.value,W=m.value;for(let te=0;te`q-tabs__content--align-${p.value===!0?"left":_.value===!0?"justify":t.align}`),T=g(()=>`q-tabs row no-wrap items-center q-tabs--${p.value===!0?"":"not-"}scrollable q-tabs--${t.vertical===!0?"vertical":"horizontal"} q-tabs__arrows--${t.outsideArrows===!0?"outside":"inside"} q-tabs--mobile-with${t.mobileArrows===!0?"":"out"}-arrows`+(t.dense===!0?" q-tabs--dense":"")+(t.shrink===!0?" col-shrink":"")+(t.stretch===!0?" self-stretch":"")),j=g(()=>"q-tabs__content scroll--mobile row no-wrap items-center self-stretch hide-scrollbar relative-position "+R.value+(t.contentClass!==void 0?` ${t.contentClass}`:"")),F=g(()=>t.vertical===!0?{container:"height",content:"offsetHeight",scroll:"scrollHeight"}:{container:"width",content:"offsetWidth",scroll:"scrollWidth"}),Y=g(()=>t.vertical!==!0&&s.lang.rtl===!0),U=g(()=>Rs===!1&&Y.value===!0);he(Y,I),he(()=>t.modelValue,N=>{J({name:N,setCurrent:!0,skipEmit:!0})}),he(()=>t.outsideArrows,Z);function J({name:N,setCurrent:W,skipEmit:te}){m.value!==N&&(te!==!0&&t["onUpdate:modelValue"]!==void 0&&n("update:modelValue",N),(W===!0||t["onUpdate:modelValue"]===void 0)&&(de(m.value,N),m.value=N))}function Z(){o(()=>{f.value&&ae({width:f.value.offsetWidth,height:f.value.offsetHeight})})}function ae(N){if(F.value===void 0||h.value===null)return;const W=N[F.value.container],te=Math.min(h.value[F.value.scroll],Array.prototype.reduce.call(h.value.children,(Ee,Pe)=>Ee+(Pe[F.value.content]||0),0)),ie=W>0&&te>W;p.value=ie,ie===!0&&a(I),_.value=WEe.name.value===N):null,ie=W!=null&&W!==""?y.find(Ee=>Ee.name.value===W):null;if(dt===!0)dt=!1;else if(te&&ie){const Ee=te.tabIndicatorRef.value,Pe=ie.tabIndicatorRef.value;M!==null&&(clearTimeout(M),M=null),Ee.style.transition="none",Ee.style.transform="none",Pe.style.transition="none",Pe.style.transform="none";const De=Ee.getBoundingClientRect(),ot=Pe.getBoundingClientRect();Pe.style.transform=t.vertical===!0?`translate3d(0,${De.top-ot.top}px,0) scale3d(1,${ot.height?De.height/ot.height:1},1)`:`translate3d(${De.left-ot.left}px,0,0) scale3d(${ot.width?De.width/ot.width:1},1,1)`,r(()=>{M=setTimeout(()=>{M=null,Pe.style.transition="transform .25s cubic-bezier(.4, 0, .2, 1)",Pe.style.transform="none"},70)})}ie&&p.value===!0&&V(ie.rootRef.value)}function V(N){const{left:W,width:te,top:ie,height:Ee}=h.value.getBoundingClientRect(),Pe=N.getBoundingClientRect();let De=t.vertical===!0?Pe.top-ie:Pe.left-W;if(De<0){h.value[t.vertical===!0?"scrollTop":"scrollLeft"]+=Math.floor(De),I();return}De+=t.vertical===!0?Pe.height-Ee:Pe.width-te,De>0&&(h.value[t.vertical===!0?"scrollTop":"scrollLeft"]+=Math.ceil(De),I())}function I(){const N=h.value;if(N===null)return;const W=N.getBoundingClientRect(),te=t.vertical===!0?N.scrollTop:Math.abs(N.scrollLeft);Y.value===!0?(v.value=Math.ceil(te+W.width)0):(v.value=te>0,b.value=t.vertical===!0?Math.ceil(te+W.height){Q(N)===!0&&z()},5)}function ce(){G(U.value===!0?Number.MAX_SAFE_INTEGER:0)}function me(){G(U.value===!0?0:Number.MAX_SAFE_INTEGER)}function z(){E!==null&&(clearInterval(E),E=null)}function ee(N,W){const te=Array.prototype.filter.call(h.value.children,ot=>ot===W||ot.matches&&ot.matches(".q-tab.q-focusable")===!0),ie=te.length;if(ie===0)return;if(N===36)return V(te[0]),te[0].focus(),!0;if(N===35)return V(te[ie-1]),te[ie-1].focus(),!0;const Ee=N===(t.vertical===!0?38:37),Pe=N===(t.vertical===!0?40:39),De=Ee===!0?-1:Pe===!0?1:void 0;if(De!==void 0){const ot=Y.value===!0?-1:1,nt=te.indexOf(W)+De*ot;return nt>=0&&ntU.value===!0?{get:N=>Math.abs(N.scrollLeft),set:(N,W)=>{N.scrollLeft=-W}}:t.vertical===!0?{get:N=>N.scrollTop,set:(N,W)=>{N.scrollTop=W}}:{get:N=>N.scrollLeft,set:(N,W)=>{N.scrollLeft=W}});function Q(N){const W=h.value,{get:te,set:ie}=Me.value;let Ee=!1,Pe=te(W);const De=N=N)&&(Ee=!0,Pe=N),ie(W,Pe),I(),Ee}function Le(N,W){for(const te in N)if(N[te]!==W[te])return!1;return!0}function tt(){let N=null,W={matchedLen:0,queryDiff:9999,hrefLen:0};const te=y.filter(De=>De.routeData?.hasRouterLink.value===!0),{hash:ie,query:Ee}=i.$route,Pe=Object.keys(Ee).length;for(const De of te){const ot=De.routeData.exact.value===!0;if(De.routeData[ot===!0?"linkIsExactActive":"linkIsActive"].value!==!0)continue;const{hash:nt,query:wt,matched:$t,href:H}=De.routeData.resolvedLink.value,ge=Object.keys(wt).length;if(ot===!0){if(nt!==ie||ge!==Pe||Le(Ee,wt)===!1)continue;N=De.name.value;break}if(nt!==""&&nt!==ie||ge!==0&&Le(wt,Ee)===!1)continue;const Se={matchedLen:$t.length,queryDiff:Pe-ge,hrefLen:H.length-nt.length};if(Se.matchedLen>W.matchedLen){N=De.name.value,W=Se;continue}else if(Se.matchedLen!==W.matchedLen)continue;if(Se.queryDiffW.hrefLen&&(N=De.name.value,W=Se)}if(N===null&&y.some(De=>De.routeData===void 0&&De.name.value===m.value)===!0){dt=!1;return}J({name:N,setCurrent:!0})}function Ot(N){if(u(),x.value!==!0&&f.value!==null&&N.target&&typeof N.target.closest=="function"){const W=N.target.closest(".q-tab");W&&f.value.contains(W)===!0&&(x.value=!0,p.value===!0&&V(W))}}function ct(){l(()=>{x.value=!1},30)}function yt(){Mt.avoidRouteWatcher===!1?c(tt):d()}function mt(){if(L===void 0){const N=he(()=>i.$route.fullPath,yt);L=()=>{N(),L=void 0}}}function xt(N){y.push(N),w.value++,Z(),N.routeData===void 0||i.$route===void 0?c(()=>{if(p.value===!0){const W=m.value,te=W!=null&&W!==""?y.find(ie=>ie.name.value===W):null;te&&V(te.rootRef.value)}}):(mt(),N.routeData.hasRouterLink.value===!0&&yt())}function gt(N){y.splice(y.indexOf(N),1),w.value--,Z(),L!==void 0&&N.routeData!==void 0&&(y.every(W=>W.routeData===void 0)===!0&&L(),yt())}const Mt={currentModel:m,tabProps:O,hasFocus:x,hasActiveTab:D,registerTab:xt,unregisterTab:gt,verifyRouteModel:yt,updateModel:J,onKbdNavigate:ee,avoidRouteWatcher:!1};ng(Pd,Mt);function Wt(){M!==null&&clearTimeout(M),z(),L?.()}let Vt,dt;return Rt(Wt),ra(()=>{Vt=L!==void 0,Wt()}),la(()=>{Vt===!0&&(mt(),dt=!0,yt()),Z()}),()=>S("div",{ref:f,class:T.value,role:"tablist",onFocusin:Ot,onFocusout:ct},[S(Tg,{onResize:ae}),S("div",{ref:h,class:j.value,onScroll:I},et(e.default)),S(we,{class:"q-tabs__arrow q-tabs__arrow--left absolute q-tab__icon"+(v.value===!0?"":" q-tabs__arrow--faded"),name:t.leftIcon||s.iconSet.tabs[t.vertical===!0?"up":"left"],onMousedownPassive:ce,onTouchstartPassive:ce,onMouseupPassive:z,onMouseleavePassive:z,onTouchendPassive:z}),S(we,{class:"q-tabs__arrow q-tabs__arrow--right absolute q-tab__icon"+(b.value===!0?"":" q-tabs__arrow--faded"),name:t.rightIcon||s.iconSet.tabs[t.vertical===!0?"down":"right"],onMousedownPassive:me,onTouchstartPassive:me,onMouseupPassive:z,onMouseleavePassive:z,onTouchendPassive:z})])}});function Qg(t){const e=[.06,6,50];return typeof t=="string"&&t.length&&t.split(":").forEach((n,i)=>{const s=parseFloat(n);s&&(e[i]=s)}),e}const Gg=Id({name:"touch-swipe",beforeMount(t,{value:e,arg:n,modifiers:i}){if(i.mouse!==!0&&zn.has.touch!==!0)return;const s=i.mouseCapture===!0?"Capture":"",o={handler:e,sensitivity:Qg(n),direction:Hl(i),noop:Dd,mouseStart(a){jl(a,o)&&ig(a)&&(io(o,"temp",[[document,"mousemove","move",`notPassive${s}`],[document,"mouseup","end","notPassiveCapture"]]),o.start(a,!0))},touchStart(a){if(jl(a,o)){const r=a.target;io(o,"temp",[[r,"touchmove","move","notPassiveCapture"],[r,"touchcancel","end","notPassiveCapture"],[r,"touchend","end","notPassiveCapture"]]),o.start(a)}},start(a,r){zn.is.firefox===!0&&Ra(t,!0);const l=Ro(a);o.event={x:l.left,y:l.top,time:Date.now(),mouse:r===!0,dir:!1}},move(a){if(o.event===void 0)return;if(o.event.dir!==!1){At(a);return}const r=Date.now()-o.event.time;if(r===0)return;const l=Ro(a),u=l.left-o.event.x,c=Math.abs(u),d=l.top-o.event.y,f=Math.abs(d);if(o.event.mouse!==!0){if(co.sensitivity[0]&&(o.event.dir=d<0?"up":"down"),o.direction.horizontal===!0&&c>f&&f<100&&h>o.sensitivity[0]&&(o.event.dir=u<0?"left":"right"),o.direction.up===!0&&co.sensitivity[0]&&(o.event.dir="up"),o.direction.down===!0&&c0&&c<100&&m>o.sensitivity[0]&&(o.event.dir="down"),o.direction.left===!0&&c>f&&u<0&&f<100&&h>o.sensitivity[0]&&(o.event.dir="left"),o.direction.right===!0&&c>f&&u>0&&f<100&&h>o.sensitivity[0]&&(o.event.dir="right"),o.event.dir!==!1?(At(a),o.event.mouse===!0&&(document.body.classList.add("no-pointer-events--children"),document.body.classList.add("non-selectable"),Ig(),o.styleCleanup=p=>{o.styleCleanup=void 0,document.body.classList.remove("non-selectable");const v=()=>{document.body.classList.remove("no-pointer-events--children")};p===!0?setTimeout(v,50):v()}),o.handler({evt:a,touch:o.event.mouse!==!0,mouse:o.event.mouse,direction:o.event.dir,duration:r,distance:{x:c,y:f}})):o.end(a)},end(a){o.event!==void 0&&(La(o,"temp"),zn.is.firefox===!0&&Ra(t,!1),o.styleCleanup?.(!0),a!==void 0&&o.event.dir!==!1&&At(a),o.event=void 0)}};if(t.__qtouchswipe=o,i.mouse===!0){const a=i.mouseCapture===!0||i.mousecapture===!0?"Capture":"";io(o,"main",[[t,"mousedown","mouseStart",`passive${a}`]])}zn.has.touch===!0&&io(o,"main",[[t,"touchstart","touchStart",`passive${i.capture===!0?"Capture":""}`],[t,"touchmove","noop","notPassiveCapture"]])},updated(t,e){const n=t.__qtouchswipe;n!==void 0&&(e.oldValue!==e.value&&(typeof e.value!="function"&&n.end(),n.handler=e.value),n.direction=Hl(e.modifiers))},beforeUnmount(t){const e=t.__qtouchswipe;e!==void 0&&(La(e,"main"),La(e,"temp"),zn.is.firefox===!0&&Ra(t,!1),e.styleCleanup?.(),delete t.__qtouchswipe)}});function Jg(){let t=Object.create(null);return{getCache:(e,n)=>t[e]===void 0?t[e]=typeof n=="function"?n():n:t[e],setCache(e,n){t[e]=n},hasCache(e){return Object.hasOwnProperty.call(t,e)},clearCache(e){e!==void 0?delete t[e]:t=Object.create(null)}}}const Ud={name:{required:!0},disable:Boolean},Ql={setup(t,{slots:e}){return()=>S("div",{class:"q-panel scroll",role:"tabpanel"},et(e.default))}},Yd={modelValue:{required:!0},animated:Boolean,infinite:Boolean,swipeable:Boolean,vertical:Boolean,transitionPrev:String,transitionNext:String,transitionDuration:{type:[String,Number],default:300},keepAlive:Boolean,keepAliveInclude:[String,Array,RegExp],keepAliveExclude:[String,Array,RegExp],keepAliveMax:Number},Zd=["update:modelValue","beforeTransition","transition"];function Xd(){const{props:t,emit:e,proxy:n}=Ue(),{getCache:i}=Jg(),{registerTimeout:s}=Ls();let o,a;const r=B(null),l={value:null};function u(F){const Y=t.vertical===!0?"up":"left";L((n.$q.lang.rtl===!0?-1:1)*(F.direction===Y?1:-1))}const c=g(()=>[[Gg,u,void 0,{horizontal:t.vertical!==!0,vertical:t.vertical,mouse:!0}]]),d=g(()=>t.transitionPrev||`slide-${t.vertical===!0?"down":"right"}`),f=g(()=>t.transitionNext||`slide-${t.vertical===!0?"up":"left"}`),h=g(()=>`--q-transition-duration: ${t.transitionDuration}ms`),m=g(()=>typeof t.modelValue=="string"||typeof t.modelValue=="number"?t.modelValue:String(t.modelValue)),p=g(()=>({include:t.keepAliveInclude,exclude:t.keepAliveExclude,max:t.keepAliveMax})),v=g(()=>t.keepAliveInclude!==void 0||t.keepAliveExclude!==void 0);he(()=>t.modelValue,(F,Y)=>{const U=w(F)===!0?x(F):-1;a!==!0&&E(U===-1?0:U{e("transition",F,Y)},t.transitionDuration))});function b(){L(1)}function _(){L(-1)}function y(F){e("update:modelValue",F)}function w(F){return F!=null&&F!==""}function x(F){return o.findIndex(Y=>Y.props.name===F&&Y.props.disable!==""&&Y.props.disable!==!0)}function M(){return o.filter(F=>F.props.disable!==""&&F.props.disable!==!0)}function E(F){const Y=F!==0&&t.animated===!0&&l.value!==-1?"q-transition--"+(F===-1?d.value:f.value):null;r.value!==Y&&(r.value=Y)}function L(F,Y=l.value){let U=Y+F;for(;U!==-1&&U{a=!1});return}U+=F}t.infinite===!0&&o.length!==0&&Y!==-1&&Y!==o.length&&L(F,F===-1?o.length:-1)}function O(){const F=x(t.modelValue);return l.value!==F&&(l.value=F),!0}function D(){const F=w(t.modelValue)===!0&&O()&&o[l.value];return t.keepAlive===!0?[S(og,p.value,[S(v.value===!0?i(m.value,()=>({...Ql,name:m.value})):Ql,{key:m.value,style:h.value},()=>F)])]:[S("div",{class:"q-panel scroll",style:h.value,key:m.value,role:"tabpanel"},[F])]}function R(){if(o.length!==0)return t.animated===!0?[S(As,{name:r.value},D)]:D()}function T(F){return o=sg(et(F.default,[])).filter(Y=>Y.props!==null&&Y.props.slot===void 0&&w(Y.props.name)===!0),o.length}function j(){return o}return Object.assign(n,{next:b,previous:_,goTo:y}),{panelIndex:l,panelDirectives:c,updatePanelsList:T,updatePanelIndex:O,getPanelContent:R,getEnabledPanels:M,getPanels:j,isValidPanelName:w,keepAliveProps:p,needsUniqueKeepAliveWrapper:v,goToPanelByOffset:L,goToPanel:y,nextPanel:b,previousPanel:_}}const za=Be({name:"QTabPanel",props:Ud,setup(t,{slots:e}){return()=>S("div",{class:"q-tab-panel",role:"tabpanel"},et(e.default))}}),ev=Be({name:"QTabPanels",props:{...Yd,...mn},emits:Zd,setup(t,{slots:e}){const n=Ue(),i=gn(t,n.proxy.$q),{updatePanelsList:s,getPanelContent:o,panelDirectives:a}=Xd(),r=g(()=>"q-tab-panels q-panel-parent"+(i.value===!0?" q-tab-panels--dark q-dark":""));return()=>(s(e),ua("div",{class:r.value},o(),"pan",t.swipeable,()=>a.value))}}),tv=Be({name:"QPage",props:{padding:Boolean,styleFn:Function},setup(t,{slots:e}){const{proxy:{$q:n}}=Ue(),i=Lo(ag,Pn);if(i===Pn)return console.error("QPage needs to be a deep child of QLayout"),Pn;if(Lo(rg,Pn)===Pn)return console.error("QPage needs to be child of QPageContainer"),Pn;const o=g(()=>{const r=(i.header.space===!0?i.header.size:0)+(i.footer.space===!0?i.footer.size:0);if(typeof t.styleFn=="function"){const l=i.isContainer.value===!0?i.containerHeight.value:n.screen.height;return t.styleFn(r,l)}return{minHeight:i.isContainer.value===!0?i.containerHeight.value-r+"px":n.screen.height===0?r!==0?`calc(100vh - ${r}px)`:"100vh":n.screen.height-r+"px"}}),a=g(()=>`q-page${t.padding===!0?" q-layout-padding":""}`);return()=>S("main",{class:a.value,style:o.value},et(e.default))}}),Kd=Be({name:"QCarouselSlide",props:{...Ud,imgSrc:String},setup(t,{slots:e}){const n=g(()=>t.imgSrc?{backgroundImage:`url("${t.imgSrc}")`}:{});return()=>S("div",{class:"q-carousel__slide",style:n.value},et(e.default))}}),nv=Be({name:"QCarouselControl",props:{position:{type:String,default:"bottom-right",validator:t=>["top-right","top-left","bottom-right","bottom-left","top","right","bottom","left"].includes(t)},offset:{type:Array,default:()=>[18,18],validator:t=>t.length===2}},setup(t,{slots:e}){const n=g(()=>`q-carousel__control absolute absolute-${t.position}`),i=g(()=>({margin:`${t.offset[1]}px ${t.offset[0]}px`}));return()=>S("div",{class:n.value,style:i.value},et(e.default))}});let us=0;const Qd={fullscreen:Boolean,noRouteFullscreenExit:Boolean},Gd=["update:fullscreen","fullscreen"];function Jd(){const t=Ue(),{props:e,emit:n,proxy:i}=t;let s,o,a;const r=B(!1);lg(t)===!0&&he(()=>i.$route.fullPath,()=>{e.noRouteFullscreenExit!==!0&&c()}),he(()=>e.fullscreen,d=>{r.value!==d&&l()}),he(r,d=>{n("update:fullscreen",d),n("fullscreen",d)});function l(){r.value===!0?c():u()}function u(){r.value!==!0&&(r.value=!0,a=i.$el.parentNode,a.replaceChild(o,i.$el),document.body.appendChild(i.$el),us++,us===1&&document.body.classList.add("q-body--fullscreen-mixin"),s={handler:c},Fl.add(s))}function c(){r.value===!0&&(s!==void 0&&(Fl.remove(s),s=void 0),a.replaceChild(i.$el,o),r.value=!1,us=Math.max(0,us-1),us===0&&(document.body.classList.remove("q-body--fullscreen-mixin"),i.$el.scrollIntoView!==void 0&&setTimeout(()=>{i.$el.scrollIntoView()})))}return Ur(()=>{o=document.createElement("span")}),hn(()=>{e.fullscreen===!0&&u()}),Rt(c),Object.assign(i,{toggleFullscreen:l,setFullscreen:u,exitFullscreen:c}),{inFullscreen:r,toggleFullscreen:l}}const iv=["top","right","bottom","left"],sv=["regular","flat","outline","push","unelevated"],ef=Be({name:"QCarousel",props:{...mn,...Yd,...Qd,transitionPrev:{type:String,default:"fade"},transitionNext:{type:String,default:"fade"},height:String,padding:Boolean,controlColor:String,controlTextColor:String,controlType:{type:String,validator:t=>sv.includes(t),default:"flat"},autoplay:[Number,Boolean],arrows:Boolean,prevIcon:String,nextIcon:String,navigation:Boolean,navigationPosition:{type:String,validator:t=>iv.includes(t)},navigationIcon:String,navigationActiveIcon:String,thumbnails:Boolean},emits:[...Gd,...Zd],setup(t,{slots:e}){const{proxy:{$q:n}}=Ue(),i=gn(t,n);let s=null,o;const{updatePanelsList:a,getPanelContent:r,panelDirectives:l,goToPanel:u,previousPanel:c,nextPanel:d,getEnabledPanels:f,panelIndex:h}=Xd(),{inFullscreen:m}=Jd(),p=g(()=>m.value!==!0&&t.height!==void 0?{height:t.height}:{}),v=g(()=>t.vertical===!0?"vertical":"horizontal"),b=g(()=>t.navigationPosition||(t.vertical===!0?"right":"bottom")),_=g(()=>`q-carousel q-panel-parent q-carousel--with${t.padding===!0?"":"out"}-padding`+(m.value===!0?" fullscreen":"")+(i.value===!0?" q-carousel--dark q-dark":"")+(t.arrows===!0?` q-carousel--arrows-${v.value}`:"")+(t.navigation===!0?` q-carousel--navigation-${b.value}`:"")),y=g(()=>{const D=[t.prevIcon||n.iconSet.carousel[t.vertical===!0?"up":"left"],t.nextIcon||n.iconSet.carousel[t.vertical===!0?"down":"right"]];return t.vertical===!1&&n.lang.rtl===!0?D.reverse():D}),w=g(()=>t.navigationIcon||n.iconSet.carousel.navigationIcon),x=g(()=>t.navigationActiveIcon||w.value),M=g(()=>({color:t.controlColor,textColor:t.controlTextColor,round:!0,[t.controlType]:!0,dense:!0}));he(()=>t.modelValue,()=>{t.autoplay&&E()}),he(()=>t.autoplay,D=>{D?E():s!==null&&(clearTimeout(s),s=null)});function E(){const D=qs(t.autoplay)===!0?Math.abs(t.autoplay):5e3;s!==null&&clearTimeout(s),s=setTimeout(()=>{s=null,D>=0?d():c()},D)}hn(()=>{t.autoplay&&E()}),Rt(()=>{s!==null&&clearTimeout(s)});function L(D,R){return S("div",{class:`q-carousel__control q-carousel__navigation no-wrap absolute flex q-carousel__navigation--${D} q-carousel__navigation--${b.value}`+(t.controlColor!==void 0?` text-${t.controlColor}`:"")},[S("div",{class:"q-carousel__navigation-inner flex flex-center no-wrap"},f().map(R))])}function O(){const D=[];if(t.navigation===!0){const R=e["navigation-icon"]!==void 0?e["navigation-icon"]:j=>S(ke,{key:"nav"+j.name,class:`q-carousel__navigation-icon q-carousel__navigation-icon--${j.active===!0?"":"in"}active`,...j.btnProps,onClick:j.onClick}),T=o-1;D.push(L("buttons",(j,F)=>{const Y=j.props.name,U=h.value===F;return R({index:F,maxIndex:T,name:Y,active:U,btnProps:{icon:U===!0?x.value:w.value,size:"sm",...M.value},onClick:()=>{u(Y)}})}))}else if(t.thumbnails===!0){const R=t.controlColor!==void 0?` text-${t.controlColor}`:"";D.push(L("thumbnails",T=>{const j=T.props;return S("img",{key:"tmb#"+j.name,class:`q-carousel__thumbnail q-carousel__thumbnail--${j.name===t.modelValue?"":"in"}active`+R,src:j.imgSrc||j["img-src"],onClick:()=>{u(j.name)}})}))}return t.arrows===!0&&h.value>=0&&((t.infinite===!0||h.value>0)&&D.push(S("div",{key:"prev",class:`q-carousel__control q-carousel__arrow q-carousel__prev-arrow q-carousel__prev-arrow--${v.value} absolute flex flex-center`},[S(ke,{icon:y.value[0],...M.value,onClick:c})])),(t.infinite===!0||h.value(o=a(e),S("div",{class:_.value,style:p.value},[ua("div",{class:"q-carousel__slides-container"},r(),"sl-cont",t.swipeable,()=>l.value)].concat(O())))}}),ov={class:"svg-container"},av=["viewBox"],rv={id:"layer1",style:{display:"inline"}},lv=["d"],uv={id:"layer2",style:{display:"inline"}},cv=["cx","cy","r"],dv=["transform","onClick"],fv=["id"],hv=["x","y","width","height"],mv=["id"],gv=["x","y","width","height","rx","ry"],vv=["x","y","width","height","rx","ry"],pv=["clip-path"],bv=["id","x","y"],yv=["id","values"],xv=["id","x","y"],wv=["transform"],_v=["r"],Sv=["r"],kv=["r","clip-path"],Cv=["href","x","y","height","width"],Mv=ye({__name:"EnergyFlowChart",setup(t){Od(W=>({18478186:s.value,"78e1d2fe":r.value}));const e=Fe(),n=B({xMin:0,xMax:150,yMin:0,yMax:105,circleRadius:10,strokeWidth:.5,textSize:5,numRows:4,numColumns:3}),i=g(()=>`${n.value.xMin} ${n.value.yMin} ${n.value.xMax} ${n.value.yMax}`),s=g(()=>n.value.strokeWidth),o=g(()=>n.value.circleRadius),a=g(()=>n.value.circleRadius),r=g(()=>`${n.value.textSize}px`),l=W=>{let te={...W};return te.textValue&&(te.textValue=te.textValue.replace(/^-/,"")),te.value&&(te.value=Math.abs(te.value)),te.scaledValue&&(te.scaledValue=Math.abs(te.scaledValue)),te},u=g(()=>e.getGridPower("object")),c=g(()=>Number(u.value.value)>0),d=g(()=>Number(u.value.value)<0),f=g(()=>e.batteryTotalPower("object")),h=g(()=>Number(e.batteryTotalPower("value"))<0),m=g(()=>Number(e.batteryTotalPower("value"))>0),p=g(()=>Number(e.batterySocTotal)/100),v=g(()=>e.getHomePower("object")),b=g(()=>Number(v.value.value)>0),_=g(()=>Number(v.value.value)<0),y=g(()=>e.getPvPower("object")),w=g(()=>Number(y.value.value)<0),x=g(()=>Number(y.value.value)>0),M=g(()=>e.chargePointIds),E=g(()=>e.chargePointName(M.value[0])||"---"),L=g(()=>e.chargePointName(M.value[1])||"---"),O=g(()=>e.chargePointName(M.value[2])||"---"),D=g(()=>M.value.length>0?e.chargePointPower(M.value[0],"object")||{textValue:"Loading..."}:{textValue:"N/A"}),R=g(()=>M.value.length>0?e.chargePointPower(M.value[1],"object")||{textValue:"Loading..."}:{textValue:"N/A"}),T=g(()=>M.value.length>0?e.chargePointPower(M.value[2],"object")||{textValue:"Loading..."}:{textValue:"N/A"}),j=g(()=>Number(D.value.value)>0),F=g(()=>Number(D.value.value)<0),Y=g(()=>Number(R.value.value)>0),U=g(()=>Number(R.value.value)<0),J=g(()=>Number(T.value.value)>0),Z=g(()=>Number(T.value.value)<0),ae=W=>{switch(W){case"instant_charging":return{label:"Sofort",class:"danger"};case"pv_charging":return{label:"PV",class:"success"};case"scheduled_charging":return{label:"Zielladen",class:"primary"};case"time_charging":return{label:"Zeitladen",class:"warning"};case"eco_charging":return{label:"Eco",class:"secondary"};case"stop":return{label:"Stop",class:"dark"};default:return{label:"Stop",class:"dark"}}},de=g(()=>e.chargePointPlugState(M.value[0])),V=g(()=>{const W=e.chargePointConnectedVehicleChargeMode(M.value[0]);return ae(W.value||"")}),I=g(()=>e.chargePointConnectedVehicleInfo(M.value[0]).value?.name||"---"),G=g(()=>e.chargePointConnectedVehicleSoc(M.value[0])),ce=g(()=>e.chargePointPlugState(M.value[1])),me=g(()=>{const W=e.chargePointConnectedVehicleChargeMode(M.value[1]);return ae(W.value||"")}),z=g(()=>e.chargePointConnectedVehicleInfo(M.value[1]).value?.name||"---"),ee=g(()=>e.chargePointConnectedVehicleSoc(M.value[1])),Me=g(()=>e.chargePointPlugState(M.value[2])),Q=g(()=>{const W=e.chargePointConnectedVehicleChargeMode(M.value[2]);return ae(W.value||"")}),Le=g(()=>e.chargePointConnectedVehicleInfo(M.value[2]).value?.name||"---"),tt=g(()=>e.chargePointConnectedVehicleSoc(M.value[2])),Ot=g(()=>e.chargePointSumPower("object")),ct=g(()=>Number(Ot.value.value)<0),yt=g(()=>Number(Ot.value.value)>0),mt=g(()=>{const W=[];return W.push({id:"grid",class:{base:"grid",valueLabel:d.value?"fill-success":c.value?"fill-danger":"",animated:c.value,animatedReverse:d.value},position:{row:0,column:0},label:["EVU",l(u.value).textValue],icon:"icons/owbGrid.svg"}),W.push({id:"home",class:{base:"home",valueLabel:"",animated:_.value,animatedReverse:b.value},position:{row:0,column:2},label:["Haus",l(v.value).textValue],icon:"icons/owbHouse.svg"}),e.getPvConfigured&&W.push({id:"pv",class:{base:"pv",valueLabel:"fill-success",animated:w.value,animatedReverse:x.value},position:{row:1,column:0},label:["PV",l(y.value).textValue],icon:"icons/owbPV.svg"}),e.batteryConfigured&&W.push({id:"battery",class:{base:"battery",valueLabel:"",animated:h.value,animatedReverse:m.value},position:{row:1,column:2},label:["Speicher",l(f.value).textValue],soc:p.value,icon:"icons/owbBattery.svg"}),M.value.length>0&&(M.value.length<=3?(W.push({id:"charge-point-1",class:{base:"charge-point",valueLabel:"",animated:F.value,animatedReverse:j.value},position:{row:2,column:M.value.length>1?0:1},label:[E.value,l(D.value).textValue],icon:"icons/owbChargePoint.svg"}),de.value&&W.push({id:"vehicle-1",class:{base:"vehicle",valueLabel:"fill-"+V.value.class,animated:F.value,animatedReverse:j.value},position:{row:3,column:M.value.length>1?0:1},label:[I.value||"---",V.value.label||"---"],soc:(G.value.value?.soc||0)/100,icon:"icons/owbVehicle.svg"}),M.value.length>1&&W.push({id:"charge-point-2",class:{base:"charge-point",valueLabel:"",animated:U.value,animatedReverse:Y.value},position:{row:2,column:M.value.length>2?1:2},label:[L.value,l(R.value).textValue],icon:"icons/owbChargePoint.svg"}),ce.value&&W.push({id:"vehicle-2",class:{base:"vehicle",valueLabel:"fill-"+me.value.class,animated:U.value,animatedReverse:Y.value},position:{row:3,column:M.value.length>2?1:2},label:[z.value||"---",me.value.label||"---"],soc:(ee.value.value?.soc||0)/100,icon:"icons/owbVehicle.svg"}),M.value.length>2&&W.push({id:"charge-point-3",class:{base:"charge-point",valueLabel:"",animated:Z.value,animatedReverse:J.value},position:{row:2,column:2},label:[O.value,l(T.value).textValue],icon:"icons/owbChargePoint.svg"}),Me.value&&W.push({id:"vehicle-3",class:{base:"vehicle",valueLabel:"fill-"+Q.value.class,animated:Z.value,animatedReverse:J.value},position:{row:3,column:2},label:[Le.value||"---",Q.value.label||"---"],soc:(tt.value.value?.soc||0)/100,icon:"icons/owbVehicle.svg"})):W.push({id:"charge-point-sum",class:{base:"charge-point",valueLabel:"",animated:ct.value,animatedReverse:yt.value},position:{row:2,column:1},label:["Ladepunkte",l(Ot.value).textValue],icon:"icons/owbChargePoint.svg"})),W}),xt=g(()=>M.value?.length>0?M.value.length>3?3:4:3);he(xt,W=>{n.value.numRows=W},{immediate:!0});const gt=W=>{const te=n.value.yMin+n.value.strokeWidth+n.value.circleRadius,Ee=n.value.yMax-n.value.strokeWidth-n.value.circleRadius-te;return W*(Ee/(n.value.numRows-1))+te},Mt=W=>{const te=n.value.xMin+n.value.strokeWidth+N.value/2,Ee=n.value.xMax-n.value.strokeWidth-N.value/2-te;return W*(Ee/(n.value.numColumns-1))+te},Wt=W=>{const te=Mt(W);return W<(n.value.numColumns-1)/2?te+N.value/2-n.value.circleRadius:W>(n.value.numColumns-1)/2?te-N.value/2+n.value.circleRadius:te},Vt=W=>{const te=document.getElementById(W);if(te==null||!(te instanceof SVGGraphicsElement))return{x:0,y:0,width:0,height:0};const ie=te.getBBox();return{x:ie.x,y:ie.y,width:ie.width,height:ie.height}},dt=W=>{const te=document.querySelector(`#${W}`);te&&te.beginElement()},N=g(()=>(n.value.xMax-n.value.xMin-n.value.strokeWidth-n.value.numColumns)/n.value.numColumns);return(W,te)=>(P(),K("div",ov,[(P(),K("svg",{viewBox:i.value,version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:svg":"http://www.w3.org/2000/svg"},[q("g",rv,[(P(!0),K(Oe,null,Xe(mt.value,ie=>(P(),K("path",{key:ie.id,class:Re([ie.class.base,{animated:ie.class.animated},{animatedReverse:ie.class.animatedReverse}]),d:ie.class.base!=="vehicle"?`M ${Wt(ie.position.column)}, ${gt(ie.position.row)} ${Mt(1)}, ${gt(1)}`:`M ${Wt(ie.position.column)}, ${gt(ie.position.row)} ${Wt(ie.position.column)}, ${gt(ie.position.row-1)}`},null,10,lv))),128))]),q("g",uv,[q("circle",{id:"center",cx:Mt(1),cy:gt(1),r:n.value.circleRadius/3},null,8,cv),(P(!0),K(Oe,null,Xe(mt.value,ie=>(P(),K("g",{key:ie.id,class:Re(ie.class.base),transform:`translate(${Mt(ie.position.column)}, ${gt(ie.position.row)})`,onClick:Ee=>dt(`animate-label-${ie.id}`)},[q("defs",null,[ie.soc?(P(),K("clipPath",{key:0,id:`clip-soc-${ie.id}`},[q("rect",{x:-n.value.circleRadius-n.value.strokeWidth,y:(n.value.circleRadius+n.value.strokeWidth)*(1-2*ie.soc),width:(n.value.circleRadius+n.value.strokeWidth)*2,height:(n.value.circleRadius+n.value.strokeWidth)*2*ie.soc},null,8,hv)],8,fv)):ue("",!0),q("clipPath",{id:`clip-label-${ie.id}`},[q("rect",{x:-N.value/2,y:-n.value.circleRadius,width:N.value,height:n.value.circleRadius*2,rx:n.value.circleRadius,ry:n.value.circleRadius},null,8,gv)],8,mv)]),q("rect",{x:-N.value/2,y:-n.value.circleRadius,width:N.value,height:n.value.circleRadius*2,rx:n.value.circleRadius,ry:n.value.circleRadius},null,8,vv),q("text",{"clip-path":`url(#clip-label-${ie.id})`},[q("tspan",{id:`label-${ie.id}`,"text-anchor":"start",x:-N.value/2+2*n.value.circleRadius+n.value.strokeWidth,y:-n.value.textSize/2},[Vt(`label-${ie.id}`).width>N.value-2*n.value.circleRadius-2*n.value.strokeWidth?(P(),K("animate",{key:0,id:`animate-label-${ie.id}`,xmlns:"http://www.w3.org/2000/svg",attributeName:"x",dur:"5s",values:"0; "+(-Vt(`label-${ie.id}`).width+N.value-2.5*n.value.circleRadius-2*n.value.strokeWidth)+"; 0;",repeatCount:"0",additive:"sum"},null,8,yv)):ue("",!0),Ve(" "+oe(ie.label[0]),1)],8,bv),q("tspan",{id:`value-${ie.id}`,class:Re(ie.class.valueLabel),"text-anchor":"end",x:2*n.value.circleRadius+n.value.strokeWidth,y:n.value.textSize},oe(ie.label[1]),11,xv)],8,pv),q("g",{transform:`translate(${n.value.circleRadius-N.value/2}, 0)`},[q("circle",{cx:"0",cy:"0",r:n.value.circleRadius,class:"background-circle"},null,8,_v),q("circle",{cx:"0",cy:"0",r:n.value.circleRadius,class:Re({soc:ie.soc})},null,10,Sv),ie.soc?(P(),K("circle",{key:0,cx:"0",cy:"0",r:n.value.circleRadius,"clip-path":`url(#clip-soc-${ie.id})`},null,8,kv)):ue("",!0),q("image",{href:ie.icon,x:-o.value/2,y:-a.value/2,height:a.value,width:o.value},null,8,Cv)],8,wv)],10,dv))),128))])],8,av))]))}}),Pv=ht(Mv,[["__scopeId","data-v-130920c7"]]);/*! +var eg=Object.defineProperty;var tg=(t,e,n)=>e in t?eg(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var Ae=(t,e,n)=>tg(t,typeof e!="symbol"?e+"":e,n);import{i as Lo,e as Pn,K as Pd,g as Ue,r as B,a as g,o as Rt,m as hn,j as sn,R as Td,h as S,J as we,t as mi,L as aa,M as jr,N as At,c as Be,w as he,q as ra,s as la,d as et,x as ng,O as Id,P as La,S as zn,T as Ra,n as Dd,U as io,V as Ro,W as ig,X as As,Y as sg,Z as og,v as ua,l as ag,y as rg,_ as lg,$ as Fl,a0 as Ur,a1 as qs,Q as ke,C as ye,a2 as Od,a3 as K,F as P,a4 as q,a5 as Oe,a6 as Xe,a7 as Re,a8 as ue,I as Ve,a9 as oe,aa as Vd,ab as ug,B as cg,ac as Tn,u as bt,ad as Ed,ae as dg,af as Ad,z as fg,ag as qd,ah as hg,ai as In,E as X,G as A,H as C,aj as Te,ak as mg,al as ln,am as zi,an as Vi,ao as Ld,ap as gg,p as Rd,aq as si,ar as Bn,as as vg,f as pg,k as zl,at as Yr,au as Zr,av as bg,aw as ls,ax as yg,ay as Bl,az as Io,aA as xg,aB as wg,aC as _g,aD as Sg,aE as Nl,aF as Wl,aG as kg,aH as Cg,aI as Mg,aJ as Xr,aK as $d,aL as Pg}from"./index-DCrt5iVV.js";import{y as Ps,j as Ls,Q as Tg,z as Hl,A as Ig,B as jl,u as mn,c as gn,_ as ht,o as gi,h as Fd,s as zd,C as Dg,D as Ul,E as Kr,i as Bd,F as Og,G as Nd,H as Vg,I as Eg,k as Wd,J as Hd,K as Yl,L as Ag,M as Zl,g as jd,N as qg,O as Lg,P as ca,w as xn,p as Bi,q as Ni,r as Xn,v as Wi,l as Rg,m as $g,R as Fg,S as Xl,t as Lt,U as zg,V as Bg,T as Ng,d as Ii,x as Vn}from"./_plugin-vue_export-helper-CKNjr6LQ.js";import{u as Fe}from"./mqtt-store-R9RxHZY9.js";let $a,so=0;const Tt=new Array(256);for(let t=0;t<256;t++)Tt[t]=(t+256).toString(16).substring(1);const Wg=(()=>{const t=typeof crypto<"u"?crypto:typeof window<"u"?window.crypto||window.msCrypto:void 0;if(t!==void 0){if(t.randomBytes!==void 0)return t.randomBytes;if(t.getRandomValues!==void 0)return e=>{const n=new Uint8Array(e);return t.getRandomValues(n),n}}return e=>{const n=[];for(let i=e;i>0;i--)n.push(Math.floor(Math.random()*256));return n}})(),Kl=4096;function mr(){($a===void 0||so+16>Kl)&&(so=0,$a=Wg(Kl));const t=Array.prototype.slice.call($a,so,so+=16);return t[6]=t[6]&15|64,t[8]=t[8]&63|128,Tt[t[0]]+Tt[t[1]]+Tt[t[2]]+Tt[t[3]]+"-"+Tt[t[4]]+Tt[t[5]]+"-"+Tt[t[6]]+Tt[t[7]]+"-"+Tt[t[8]]+Tt[t[9]]+"-"+Tt[t[10]]+Tt[t[11]]+Tt[t[12]]+Tt[t[13]]+Tt[t[14]]+Tt[t[15]]}let Hg=0;const jg=["click","keydown"],Ug={icon:String,label:[Number,String],alert:[Boolean,String],alertIcon:String,name:{type:[Number,String],default:()=>`t_${Hg++}`},noCaps:Boolean,tabindex:[String,Number],disable:Boolean,contentClass:String,ripple:{type:[Boolean,Object],default:!0}};function Yg(t,e,n,i){const s=Lo(Pd,Pn);if(s===Pn)return console.error("QTab/QRouteTab component needs to be child of QTabs"),Pn;const{proxy:o}=Ue(),a=B(null),r=B(null),l=B(null),u=g(()=>t.disable===!0||t.ripple===!1?!1:Object.assign({keyCodes:[13,32],early:!0},t.ripple===!0?{}:t.ripple)),c=g(()=>s.currentModel.value===t.name),d=g(()=>"q-tab relative-position self-stretch flex flex-center text-center"+(c.value===!0?" q-tab--active"+(s.tabProps.value.activeClass?" "+s.tabProps.value.activeClass:"")+(s.tabProps.value.activeColor?` text-${s.tabProps.value.activeColor}`:"")+(s.tabProps.value.activeBgColor?` bg-${s.tabProps.value.activeBgColor}`:""):" q-tab--inactive")+(t.icon&&t.label&&s.tabProps.value.inlineLabel===!1?" q-tab--full":"")+(t.noCaps===!0||s.tabProps.value.noCaps===!0?" q-tab--no-caps":"")+(t.disable===!0?" disabled":" q-focusable q-hoverable cursor-pointer")),f=g(()=>"q-tab__content self-stretch flex-center relative-position q-anchor--skip non-selectable "+(s.tabProps.value.inlineLabel===!0?"row no-wrap q-tab__content--inline":"column")+(t.contentClass!==void 0?` ${t.contentClass}`:"")),h=g(()=>t.disable===!0||s.hasFocus.value===!0||c.value===!1&&s.hasActiveTab.value===!0?-1:t.tabindex||0);function m(y,w){if(w!==!0&&y?.qAvoidFocus!==!0&&a.value?.focus(),t.disable!==!0){s.updateModel({name:t.name}),n("click",y);return}}function p(y){aa(y,[13,32])?m(y,!0):jr(y)!==!0&&y.keyCode>=35&&y.keyCode<=40&&y.altKey!==!0&&y.metaKey!==!0&&s.onKbdNavigate(y.keyCode,o.$el)===!0&&At(y),n("keydown",y)}function v(){const y=s.tabProps.value.narrowIndicator,w=[],x=S("div",{ref:l,class:["q-tab__indicator",s.tabProps.value.indicatorClass]});t.icon!==void 0&&w.push(S(we,{class:"q-tab__icon",name:t.icon})),t.label!==void 0&&w.push(S("div",{class:"q-tab__label"},t.label)),t.alert!==!1&&w.push(t.alertIcon!==void 0?S(we,{class:"q-tab__alert-icon",color:t.alert!==!0?t.alert:void 0,name:t.alertIcon}):S("div",{class:"q-tab__alert"+(t.alert!==!0?` text-${t.alert}`:"")})),y===!0&&w.push(x);const M=[S("div",{class:"q-focus-helper",tabindex:-1,ref:a}),S("div",{class:f.value},mi(e.default,w))];return y===!1&&M.push(x),M}const b={name:g(()=>t.name),rootRef:r,tabIndicatorRef:l,routeData:i};Rt(()=>{s.unregisterTab(b)}),hn(()=>{s.registerTab(b)});function _(y,w){const x={ref:r,class:d.value,tabindex:h.value,role:"tab","aria-selected":c.value===!0?"true":"false","aria-disabled":t.disable===!0?"true":void 0,onClick:m,onKeydown:p,...w};return sn(S(y,x,v()),[[Td,u.value]])}return{renderTab:_,$tabs:s}}const Fa=Be({name:"QTab",props:Ug,emits:jg,setup(t,{slots:e,emit:n}){const{renderTab:i}=Yg(t,e,n);return()=>i("div")}});let Rs=!1;{const t=document.createElement("div");t.setAttribute("dir","rtl"),Object.assign(t.style,{width:"1px",height:"1px",overflow:"auto"});const e=document.createElement("div");Object.assign(e.style,{width:"1000px",height:"1px"}),document.body.appendChild(t),t.appendChild(e),t.scrollLeft=-1e3,Rs=t.scrollLeft>=0,t.remove()}function Zg(t,e,n){const i=n===!0?["left","right"]:["top","bottom"];return`absolute-${e===!0?i[0]:i[1]}${t?` text-${t}`:""}`}const Xg=["left","center","right","justify"],Kg=Be({name:"QTabs",props:{modelValue:[Number,String],align:{type:String,default:"center",validator:t=>Xg.includes(t)},breakpoint:{type:[String,Number],default:600},vertical:Boolean,shrink:Boolean,stretch:Boolean,activeClass:String,activeColor:String,activeBgColor:String,indicatorColor:String,leftIcon:String,rightIcon:String,outsideArrows:Boolean,mobileArrows:Boolean,switchIndicator:Boolean,narrowIndicator:Boolean,inlineLabel:Boolean,noCaps:Boolean,dense:Boolean,contentClass:String,"onUpdate:modelValue":[Function,Array]},setup(t,{slots:e,emit:n}){const{proxy:i}=Ue(),{$q:s}=i,{registerTick:o}=Ps(),{registerTick:a}=Ps(),{registerTick:r}=Ps(),{registerTimeout:l,removeTimeout:u}=Ls(),{registerTimeout:c,removeTimeout:d}=Ls(),f=B(null),h=B(null),m=B(t.modelValue),p=B(!1),v=B(!0),b=B(!1),_=B(!1),y=[],w=B(0),x=B(!1);let M=null,E=null,L;const O=g(()=>({activeClass:t.activeClass,activeColor:t.activeColor,activeBgColor:t.activeBgColor,indicatorClass:Zg(t.indicatorColor,t.switchIndicator,t.vertical),narrowIndicator:t.narrowIndicator,inlineLabel:t.inlineLabel,noCaps:t.noCaps})),D=g(()=>{const N=w.value,W=m.value;for(let te=0;te`q-tabs__content--align-${p.value===!0?"left":_.value===!0?"justify":t.align}`),T=g(()=>`q-tabs row no-wrap items-center q-tabs--${p.value===!0?"":"not-"}scrollable q-tabs--${t.vertical===!0?"vertical":"horizontal"} q-tabs__arrows--${t.outsideArrows===!0?"outside":"inside"} q-tabs--mobile-with${t.mobileArrows===!0?"":"out"}-arrows`+(t.dense===!0?" q-tabs--dense":"")+(t.shrink===!0?" col-shrink":"")+(t.stretch===!0?" self-stretch":"")),j=g(()=>"q-tabs__content scroll--mobile row no-wrap items-center self-stretch hide-scrollbar relative-position "+R.value+(t.contentClass!==void 0?` ${t.contentClass}`:"")),F=g(()=>t.vertical===!0?{container:"height",content:"offsetHeight",scroll:"scrollHeight"}:{container:"width",content:"offsetWidth",scroll:"scrollWidth"}),Y=g(()=>t.vertical!==!0&&s.lang.rtl===!0),U=g(()=>Rs===!1&&Y.value===!0);he(Y,I),he(()=>t.modelValue,N=>{J({name:N,setCurrent:!0,skipEmit:!0})}),he(()=>t.outsideArrows,Z);function J({name:N,setCurrent:W,skipEmit:te}){m.value!==N&&(te!==!0&&t["onUpdate:modelValue"]!==void 0&&n("update:modelValue",N),(W===!0||t["onUpdate:modelValue"]===void 0)&&(de(m.value,N),m.value=N))}function Z(){o(()=>{f.value&&ae({width:f.value.offsetWidth,height:f.value.offsetHeight})})}function ae(N){if(F.value===void 0||h.value===null)return;const W=N[F.value.container],te=Math.min(h.value[F.value.scroll],Array.prototype.reduce.call(h.value.children,(Ee,Pe)=>Ee+(Pe[F.value.content]||0),0)),ie=W>0&&te>W;p.value=ie,ie===!0&&a(I),_.value=WEe.name.value===N):null,ie=W!=null&&W!==""?y.find(Ee=>Ee.name.value===W):null;if(dt===!0)dt=!1;else if(te&&ie){const Ee=te.tabIndicatorRef.value,Pe=ie.tabIndicatorRef.value;M!==null&&(clearTimeout(M),M=null),Ee.style.transition="none",Ee.style.transform="none",Pe.style.transition="none",Pe.style.transform="none";const De=Ee.getBoundingClientRect(),ot=Pe.getBoundingClientRect();Pe.style.transform=t.vertical===!0?`translate3d(0,${De.top-ot.top}px,0) scale3d(1,${ot.height?De.height/ot.height:1},1)`:`translate3d(${De.left-ot.left}px,0,0) scale3d(${ot.width?De.width/ot.width:1},1,1)`,r(()=>{M=setTimeout(()=>{M=null,Pe.style.transition="transform .25s cubic-bezier(.4, 0, .2, 1)",Pe.style.transform="none"},70)})}ie&&p.value===!0&&V(ie.rootRef.value)}function V(N){const{left:W,width:te,top:ie,height:Ee}=h.value.getBoundingClientRect(),Pe=N.getBoundingClientRect();let De=t.vertical===!0?Pe.top-ie:Pe.left-W;if(De<0){h.value[t.vertical===!0?"scrollTop":"scrollLeft"]+=Math.floor(De),I();return}De+=t.vertical===!0?Pe.height-Ee:Pe.width-te,De>0&&(h.value[t.vertical===!0?"scrollTop":"scrollLeft"]+=Math.ceil(De),I())}function I(){const N=h.value;if(N===null)return;const W=N.getBoundingClientRect(),te=t.vertical===!0?N.scrollTop:Math.abs(N.scrollLeft);Y.value===!0?(v.value=Math.ceil(te+W.width)0):(v.value=te>0,b.value=t.vertical===!0?Math.ceil(te+W.height){Q(N)===!0&&z()},5)}function ce(){G(U.value===!0?Number.MAX_SAFE_INTEGER:0)}function me(){G(U.value===!0?0:Number.MAX_SAFE_INTEGER)}function z(){E!==null&&(clearInterval(E),E=null)}function ee(N,W){const te=Array.prototype.filter.call(h.value.children,ot=>ot===W||ot.matches&&ot.matches(".q-tab.q-focusable")===!0),ie=te.length;if(ie===0)return;if(N===36)return V(te[0]),te[0].focus(),!0;if(N===35)return V(te[ie-1]),te[ie-1].focus(),!0;const Ee=N===(t.vertical===!0?38:37),Pe=N===(t.vertical===!0?40:39),De=Ee===!0?-1:Pe===!0?1:void 0;if(De!==void 0){const ot=Y.value===!0?-1:1,nt=te.indexOf(W)+De*ot;return nt>=0&&ntU.value===!0?{get:N=>Math.abs(N.scrollLeft),set:(N,W)=>{N.scrollLeft=-W}}:t.vertical===!0?{get:N=>N.scrollTop,set:(N,W)=>{N.scrollTop=W}}:{get:N=>N.scrollLeft,set:(N,W)=>{N.scrollLeft=W}});function Q(N){const W=h.value,{get:te,set:ie}=Me.value;let Ee=!1,Pe=te(W);const De=N=N)&&(Ee=!0,Pe=N),ie(W,Pe),I(),Ee}function Le(N,W){for(const te in N)if(N[te]!==W[te])return!1;return!0}function tt(){let N=null,W={matchedLen:0,queryDiff:9999,hrefLen:0};const te=y.filter(De=>De.routeData?.hasRouterLink.value===!0),{hash:ie,query:Ee}=i.$route,Pe=Object.keys(Ee).length;for(const De of te){const ot=De.routeData.exact.value===!0;if(De.routeData[ot===!0?"linkIsExactActive":"linkIsActive"].value!==!0)continue;const{hash:nt,query:wt,matched:$t,href:H}=De.routeData.resolvedLink.value,ge=Object.keys(wt).length;if(ot===!0){if(nt!==ie||ge!==Pe||Le(Ee,wt)===!1)continue;N=De.name.value;break}if(nt!==""&&nt!==ie||ge!==0&&Le(wt,Ee)===!1)continue;const Se={matchedLen:$t.length,queryDiff:Pe-ge,hrefLen:H.length-nt.length};if(Se.matchedLen>W.matchedLen){N=De.name.value,W=Se;continue}else if(Se.matchedLen!==W.matchedLen)continue;if(Se.queryDiffW.hrefLen&&(N=De.name.value,W=Se)}if(N===null&&y.some(De=>De.routeData===void 0&&De.name.value===m.value)===!0){dt=!1;return}J({name:N,setCurrent:!0})}function Ot(N){if(u(),x.value!==!0&&f.value!==null&&N.target&&typeof N.target.closest=="function"){const W=N.target.closest(".q-tab");W&&f.value.contains(W)===!0&&(x.value=!0,p.value===!0&&V(W))}}function ct(){l(()=>{x.value=!1},30)}function yt(){Mt.avoidRouteWatcher===!1?c(tt):d()}function mt(){if(L===void 0){const N=he(()=>i.$route.fullPath,yt);L=()=>{N(),L=void 0}}}function xt(N){y.push(N),w.value++,Z(),N.routeData===void 0||i.$route===void 0?c(()=>{if(p.value===!0){const W=m.value,te=W!=null&&W!==""?y.find(ie=>ie.name.value===W):null;te&&V(te.rootRef.value)}}):(mt(),N.routeData.hasRouterLink.value===!0&&yt())}function gt(N){y.splice(y.indexOf(N),1),w.value--,Z(),L!==void 0&&N.routeData!==void 0&&(y.every(W=>W.routeData===void 0)===!0&&L(),yt())}const Mt={currentModel:m,tabProps:O,hasFocus:x,hasActiveTab:D,registerTab:xt,unregisterTab:gt,verifyRouteModel:yt,updateModel:J,onKbdNavigate:ee,avoidRouteWatcher:!1};ng(Pd,Mt);function Wt(){M!==null&&clearTimeout(M),z(),L?.()}let Vt,dt;return Rt(Wt),ra(()=>{Vt=L!==void 0,Wt()}),la(()=>{Vt===!0&&(mt(),dt=!0,yt()),Z()}),()=>S("div",{ref:f,class:T.value,role:"tablist",onFocusin:Ot,onFocusout:ct},[S(Tg,{onResize:ae}),S("div",{ref:h,class:j.value,onScroll:I},et(e.default)),S(we,{class:"q-tabs__arrow q-tabs__arrow--left absolute q-tab__icon"+(v.value===!0?"":" q-tabs__arrow--faded"),name:t.leftIcon||s.iconSet.tabs[t.vertical===!0?"up":"left"],onMousedownPassive:ce,onTouchstartPassive:ce,onMouseupPassive:z,onMouseleavePassive:z,onTouchendPassive:z}),S(we,{class:"q-tabs__arrow q-tabs__arrow--right absolute q-tab__icon"+(b.value===!0?"":" q-tabs__arrow--faded"),name:t.rightIcon||s.iconSet.tabs[t.vertical===!0?"down":"right"],onMousedownPassive:me,onTouchstartPassive:me,onMouseupPassive:z,onMouseleavePassive:z,onTouchendPassive:z})])}});function Qg(t){const e=[.06,6,50];return typeof t=="string"&&t.length&&t.split(":").forEach((n,i)=>{const s=parseFloat(n);s&&(e[i]=s)}),e}const Gg=Id({name:"touch-swipe",beforeMount(t,{value:e,arg:n,modifiers:i}){if(i.mouse!==!0&&zn.has.touch!==!0)return;const s=i.mouseCapture===!0?"Capture":"",o={handler:e,sensitivity:Qg(n),direction:Hl(i),noop:Dd,mouseStart(a){jl(a,o)&&ig(a)&&(io(o,"temp",[[document,"mousemove","move",`notPassive${s}`],[document,"mouseup","end","notPassiveCapture"]]),o.start(a,!0))},touchStart(a){if(jl(a,o)){const r=a.target;io(o,"temp",[[r,"touchmove","move","notPassiveCapture"],[r,"touchcancel","end","notPassiveCapture"],[r,"touchend","end","notPassiveCapture"]]),o.start(a)}},start(a,r){zn.is.firefox===!0&&Ra(t,!0);const l=Ro(a);o.event={x:l.left,y:l.top,time:Date.now(),mouse:r===!0,dir:!1}},move(a){if(o.event===void 0)return;if(o.event.dir!==!1){At(a);return}const r=Date.now()-o.event.time;if(r===0)return;const l=Ro(a),u=l.left-o.event.x,c=Math.abs(u),d=l.top-o.event.y,f=Math.abs(d);if(o.event.mouse!==!0){if(co.sensitivity[0]&&(o.event.dir=d<0?"up":"down"),o.direction.horizontal===!0&&c>f&&f<100&&h>o.sensitivity[0]&&(o.event.dir=u<0?"left":"right"),o.direction.up===!0&&co.sensitivity[0]&&(o.event.dir="up"),o.direction.down===!0&&c0&&c<100&&m>o.sensitivity[0]&&(o.event.dir="down"),o.direction.left===!0&&c>f&&u<0&&f<100&&h>o.sensitivity[0]&&(o.event.dir="left"),o.direction.right===!0&&c>f&&u>0&&f<100&&h>o.sensitivity[0]&&(o.event.dir="right"),o.event.dir!==!1?(At(a),o.event.mouse===!0&&(document.body.classList.add("no-pointer-events--children"),document.body.classList.add("non-selectable"),Ig(),o.styleCleanup=p=>{o.styleCleanup=void 0,document.body.classList.remove("non-selectable");const v=()=>{document.body.classList.remove("no-pointer-events--children")};p===!0?setTimeout(v,50):v()}),o.handler({evt:a,touch:o.event.mouse!==!0,mouse:o.event.mouse,direction:o.event.dir,duration:r,distance:{x:c,y:f}})):o.end(a)},end(a){o.event!==void 0&&(La(o,"temp"),zn.is.firefox===!0&&Ra(t,!1),o.styleCleanup?.(!0),a!==void 0&&o.event.dir!==!1&&At(a),o.event=void 0)}};if(t.__qtouchswipe=o,i.mouse===!0){const a=i.mouseCapture===!0||i.mousecapture===!0?"Capture":"";io(o,"main",[[t,"mousedown","mouseStart",`passive${a}`]])}zn.has.touch===!0&&io(o,"main",[[t,"touchstart","touchStart",`passive${i.capture===!0?"Capture":""}`],[t,"touchmove","noop","notPassiveCapture"]])},updated(t,e){const n=t.__qtouchswipe;n!==void 0&&(e.oldValue!==e.value&&(typeof e.value!="function"&&n.end(),n.handler=e.value),n.direction=Hl(e.modifiers))},beforeUnmount(t){const e=t.__qtouchswipe;e!==void 0&&(La(e,"main"),La(e,"temp"),zn.is.firefox===!0&&Ra(t,!1),e.styleCleanup?.(),delete t.__qtouchswipe)}});function Jg(){let t=Object.create(null);return{getCache:(e,n)=>t[e]===void 0?t[e]=typeof n=="function"?n():n:t[e],setCache(e,n){t[e]=n},hasCache(e){return Object.hasOwnProperty.call(t,e)},clearCache(e){e!==void 0?delete t[e]:t=Object.create(null)}}}const Ud={name:{required:!0},disable:Boolean},Ql={setup(t,{slots:e}){return()=>S("div",{class:"q-panel scroll",role:"tabpanel"},et(e.default))}},Yd={modelValue:{required:!0},animated:Boolean,infinite:Boolean,swipeable:Boolean,vertical:Boolean,transitionPrev:String,transitionNext:String,transitionDuration:{type:[String,Number],default:300},keepAlive:Boolean,keepAliveInclude:[String,Array,RegExp],keepAliveExclude:[String,Array,RegExp],keepAliveMax:Number},Zd=["update:modelValue","beforeTransition","transition"];function Xd(){const{props:t,emit:e,proxy:n}=Ue(),{getCache:i}=Jg(),{registerTimeout:s}=Ls();let o,a;const r=B(null),l={value:null};function u(F){const Y=t.vertical===!0?"up":"left";L((n.$q.lang.rtl===!0?-1:1)*(F.direction===Y?1:-1))}const c=g(()=>[[Gg,u,void 0,{horizontal:t.vertical!==!0,vertical:t.vertical,mouse:!0}]]),d=g(()=>t.transitionPrev||`slide-${t.vertical===!0?"down":"right"}`),f=g(()=>t.transitionNext||`slide-${t.vertical===!0?"up":"left"}`),h=g(()=>`--q-transition-duration: ${t.transitionDuration}ms`),m=g(()=>typeof t.modelValue=="string"||typeof t.modelValue=="number"?t.modelValue:String(t.modelValue)),p=g(()=>({include:t.keepAliveInclude,exclude:t.keepAliveExclude,max:t.keepAliveMax})),v=g(()=>t.keepAliveInclude!==void 0||t.keepAliveExclude!==void 0);he(()=>t.modelValue,(F,Y)=>{const U=w(F)===!0?x(F):-1;a!==!0&&E(U===-1?0:U{e("transition",F,Y)},t.transitionDuration))});function b(){L(1)}function _(){L(-1)}function y(F){e("update:modelValue",F)}function w(F){return F!=null&&F!==""}function x(F){return o.findIndex(Y=>Y.props.name===F&&Y.props.disable!==""&&Y.props.disable!==!0)}function M(){return o.filter(F=>F.props.disable!==""&&F.props.disable!==!0)}function E(F){const Y=F!==0&&t.animated===!0&&l.value!==-1?"q-transition--"+(F===-1?d.value:f.value):null;r.value!==Y&&(r.value=Y)}function L(F,Y=l.value){let U=Y+F;for(;U!==-1&&U{a=!1});return}U+=F}t.infinite===!0&&o.length!==0&&Y!==-1&&Y!==o.length&&L(F,F===-1?o.length:-1)}function O(){const F=x(t.modelValue);return l.value!==F&&(l.value=F),!0}function D(){const F=w(t.modelValue)===!0&&O()&&o[l.value];return t.keepAlive===!0?[S(og,p.value,[S(v.value===!0?i(m.value,()=>({...Ql,name:m.value})):Ql,{key:m.value,style:h.value},()=>F)])]:[S("div",{class:"q-panel scroll",style:h.value,key:m.value,role:"tabpanel"},[F])]}function R(){if(o.length!==0)return t.animated===!0?[S(As,{name:r.value},D)]:D()}function T(F){return o=sg(et(F.default,[])).filter(Y=>Y.props!==null&&Y.props.slot===void 0&&w(Y.props.name)===!0),o.length}function j(){return o}return Object.assign(n,{next:b,previous:_,goTo:y}),{panelIndex:l,panelDirectives:c,updatePanelsList:T,updatePanelIndex:O,getPanelContent:R,getEnabledPanels:M,getPanels:j,isValidPanelName:w,keepAliveProps:p,needsUniqueKeepAliveWrapper:v,goToPanelByOffset:L,goToPanel:y,nextPanel:b,previousPanel:_}}const za=Be({name:"QTabPanel",props:Ud,setup(t,{slots:e}){return()=>S("div",{class:"q-tab-panel",role:"tabpanel"},et(e.default))}}),ev=Be({name:"QTabPanels",props:{...Yd,...mn},emits:Zd,setup(t,{slots:e}){const n=Ue(),i=gn(t,n.proxy.$q),{updatePanelsList:s,getPanelContent:o,panelDirectives:a}=Xd(),r=g(()=>"q-tab-panels q-panel-parent"+(i.value===!0?" q-tab-panels--dark q-dark":""));return()=>(s(e),ua("div",{class:r.value},o(),"pan",t.swipeable,()=>a.value))}}),tv=Be({name:"QPage",props:{padding:Boolean,styleFn:Function},setup(t,{slots:e}){const{proxy:{$q:n}}=Ue(),i=Lo(ag,Pn);if(i===Pn)return console.error("QPage needs to be a deep child of QLayout"),Pn;if(Lo(rg,Pn)===Pn)return console.error("QPage needs to be child of QPageContainer"),Pn;const o=g(()=>{const r=(i.header.space===!0?i.header.size:0)+(i.footer.space===!0?i.footer.size:0);if(typeof t.styleFn=="function"){const l=i.isContainer.value===!0?i.containerHeight.value:n.screen.height;return t.styleFn(r,l)}return{minHeight:i.isContainer.value===!0?i.containerHeight.value-r+"px":n.screen.height===0?r!==0?`calc(100vh - ${r}px)`:"100vh":n.screen.height-r+"px"}}),a=g(()=>`q-page${t.padding===!0?" q-layout-padding":""}`);return()=>S("main",{class:a.value,style:o.value},et(e.default))}}),Kd=Be({name:"QCarouselSlide",props:{...Ud,imgSrc:String},setup(t,{slots:e}){const n=g(()=>t.imgSrc?{backgroundImage:`url("${t.imgSrc}")`}:{});return()=>S("div",{class:"q-carousel__slide",style:n.value},et(e.default))}}),nv=Be({name:"QCarouselControl",props:{position:{type:String,default:"bottom-right",validator:t=>["top-right","top-left","bottom-right","bottom-left","top","right","bottom","left"].includes(t)},offset:{type:Array,default:()=>[18,18],validator:t=>t.length===2}},setup(t,{slots:e}){const n=g(()=>`q-carousel__control absolute absolute-${t.position}`),i=g(()=>({margin:`${t.offset[1]}px ${t.offset[0]}px`}));return()=>S("div",{class:n.value,style:i.value},et(e.default))}});let us=0;const Qd={fullscreen:Boolean,noRouteFullscreenExit:Boolean},Gd=["update:fullscreen","fullscreen"];function Jd(){const t=Ue(),{props:e,emit:n,proxy:i}=t;let s,o,a;const r=B(!1);lg(t)===!0&&he(()=>i.$route.fullPath,()=>{e.noRouteFullscreenExit!==!0&&c()}),he(()=>e.fullscreen,d=>{r.value!==d&&l()}),he(r,d=>{n("update:fullscreen",d),n("fullscreen",d)});function l(){r.value===!0?c():u()}function u(){r.value!==!0&&(r.value=!0,a=i.$el.parentNode,a.replaceChild(o,i.$el),document.body.appendChild(i.$el),us++,us===1&&document.body.classList.add("q-body--fullscreen-mixin"),s={handler:c},Fl.add(s))}function c(){r.value===!0&&(s!==void 0&&(Fl.remove(s),s=void 0),a.replaceChild(i.$el,o),r.value=!1,us=Math.max(0,us-1),us===0&&(document.body.classList.remove("q-body--fullscreen-mixin"),i.$el.scrollIntoView!==void 0&&setTimeout(()=>{i.$el.scrollIntoView()})))}return Ur(()=>{o=document.createElement("span")}),hn(()=>{e.fullscreen===!0&&u()}),Rt(c),Object.assign(i,{toggleFullscreen:l,setFullscreen:u,exitFullscreen:c}),{inFullscreen:r,toggleFullscreen:l}}const iv=["top","right","bottom","left"],sv=["regular","flat","outline","push","unelevated"],ef=Be({name:"QCarousel",props:{...mn,...Yd,...Qd,transitionPrev:{type:String,default:"fade"},transitionNext:{type:String,default:"fade"},height:String,padding:Boolean,controlColor:String,controlTextColor:String,controlType:{type:String,validator:t=>sv.includes(t),default:"flat"},autoplay:[Number,Boolean],arrows:Boolean,prevIcon:String,nextIcon:String,navigation:Boolean,navigationPosition:{type:String,validator:t=>iv.includes(t)},navigationIcon:String,navigationActiveIcon:String,thumbnails:Boolean},emits:[...Gd,...Zd],setup(t,{slots:e}){const{proxy:{$q:n}}=Ue(),i=gn(t,n);let s=null,o;const{updatePanelsList:a,getPanelContent:r,panelDirectives:l,goToPanel:u,previousPanel:c,nextPanel:d,getEnabledPanels:f,panelIndex:h}=Xd(),{inFullscreen:m}=Jd(),p=g(()=>m.value!==!0&&t.height!==void 0?{height:t.height}:{}),v=g(()=>t.vertical===!0?"vertical":"horizontal"),b=g(()=>t.navigationPosition||(t.vertical===!0?"right":"bottom")),_=g(()=>`q-carousel q-panel-parent q-carousel--with${t.padding===!0?"":"out"}-padding`+(m.value===!0?" fullscreen":"")+(i.value===!0?" q-carousel--dark q-dark":"")+(t.arrows===!0?` q-carousel--arrows-${v.value}`:"")+(t.navigation===!0?` q-carousel--navigation-${b.value}`:"")),y=g(()=>{const D=[t.prevIcon||n.iconSet.carousel[t.vertical===!0?"up":"left"],t.nextIcon||n.iconSet.carousel[t.vertical===!0?"down":"right"]];return t.vertical===!1&&n.lang.rtl===!0?D.reverse():D}),w=g(()=>t.navigationIcon||n.iconSet.carousel.navigationIcon),x=g(()=>t.navigationActiveIcon||w.value),M=g(()=>({color:t.controlColor,textColor:t.controlTextColor,round:!0,[t.controlType]:!0,dense:!0}));he(()=>t.modelValue,()=>{t.autoplay&&E()}),he(()=>t.autoplay,D=>{D?E():s!==null&&(clearTimeout(s),s=null)});function E(){const D=qs(t.autoplay)===!0?Math.abs(t.autoplay):5e3;s!==null&&clearTimeout(s),s=setTimeout(()=>{s=null,D>=0?d():c()},D)}hn(()=>{t.autoplay&&E()}),Rt(()=>{s!==null&&clearTimeout(s)});function L(D,R){return S("div",{class:`q-carousel__control q-carousel__navigation no-wrap absolute flex q-carousel__navigation--${D} q-carousel__navigation--${b.value}`+(t.controlColor!==void 0?` text-${t.controlColor}`:"")},[S("div",{class:"q-carousel__navigation-inner flex flex-center no-wrap"},f().map(R))])}function O(){const D=[];if(t.navigation===!0){const R=e["navigation-icon"]!==void 0?e["navigation-icon"]:j=>S(ke,{key:"nav"+j.name,class:`q-carousel__navigation-icon q-carousel__navigation-icon--${j.active===!0?"":"in"}active`,...j.btnProps,onClick:j.onClick}),T=o-1;D.push(L("buttons",(j,F)=>{const Y=j.props.name,U=h.value===F;return R({index:F,maxIndex:T,name:Y,active:U,btnProps:{icon:U===!0?x.value:w.value,size:"sm",...M.value},onClick:()=>{u(Y)}})}))}else if(t.thumbnails===!0){const R=t.controlColor!==void 0?` text-${t.controlColor}`:"";D.push(L("thumbnails",T=>{const j=T.props;return S("img",{key:"tmb#"+j.name,class:`q-carousel__thumbnail q-carousel__thumbnail--${j.name===t.modelValue?"":"in"}active`+R,src:j.imgSrc||j["img-src"],onClick:()=>{u(j.name)}})}))}return t.arrows===!0&&h.value>=0&&((t.infinite===!0||h.value>0)&&D.push(S("div",{key:"prev",class:`q-carousel__control q-carousel__arrow q-carousel__prev-arrow q-carousel__prev-arrow--${v.value} absolute flex flex-center`},[S(ke,{icon:y.value[0],...M.value,onClick:c})])),(t.infinite===!0||h.value(o=a(e),S("div",{class:_.value,style:p.value},[ua("div",{class:"q-carousel__slides-container"},r(),"sl-cont",t.swipeable,()=>l.value)].concat(O())))}}),ov={class:"svg-container"},av=["viewBox"],rv={id:"layer1",style:{display:"inline"}},lv=["d"],uv={id:"layer2",style:{display:"inline"}},cv=["cx","cy","r"],dv=["transform","onClick"],fv=["id"],hv=["x","y","width","height"],mv=["id"],gv=["x","y","width","height","rx","ry"],vv=["x","y","width","height","rx","ry"],pv=["clip-path"],bv=["id","x","y"],yv=["id","values"],xv=["id","x","y"],wv=["transform"],_v=["r"],Sv=["r"],kv=["r","clip-path"],Cv=["href","x","y","height","width"],Mv=ye({__name:"EnergyFlowChart",setup(t){Od(W=>({18478186:s.value,"78e1d2fe":r.value}));const e=Fe(),n=B({xMin:0,xMax:150,yMin:0,yMax:105,circleRadius:10,strokeWidth:.5,textSize:5,numRows:4,numColumns:3}),i=g(()=>`${n.value.xMin} ${n.value.yMin} ${n.value.xMax} ${n.value.yMax}`),s=g(()=>n.value.strokeWidth),o=g(()=>n.value.circleRadius),a=g(()=>n.value.circleRadius),r=g(()=>`${n.value.textSize}px`),l=W=>{let te={...W};return te.textValue&&(te.textValue=te.textValue.replace(/^-/,"")),te.value&&(te.value=Math.abs(te.value)),te.scaledValue&&(te.scaledValue=Math.abs(te.scaledValue)),te},u=g(()=>e.getGridPower("object")),c=g(()=>Number(u.value.value)>0),d=g(()=>Number(u.value.value)<0),f=g(()=>e.batteryTotalPower("object")),h=g(()=>Number(e.batteryTotalPower("value"))<0),m=g(()=>Number(e.batteryTotalPower("value"))>0),p=g(()=>Number(e.batterySocTotal)/100),v=g(()=>e.getHomePower("object")),b=g(()=>Number(v.value.value)>0),_=g(()=>Number(v.value.value)<0),y=g(()=>e.getPvPower("object")),w=g(()=>Number(y.value.value)<0),x=g(()=>Number(y.value.value)>0),M=g(()=>e.chargePointIds),E=g(()=>e.chargePointName(M.value[0])||"---"),L=g(()=>e.chargePointName(M.value[1])||"---"),O=g(()=>e.chargePointName(M.value[2])||"---"),D=g(()=>M.value.length>0?e.chargePointPower(M.value[0],"object")||{textValue:"Loading..."}:{textValue:"N/A"}),R=g(()=>M.value.length>0?e.chargePointPower(M.value[1],"object")||{textValue:"Loading..."}:{textValue:"N/A"}),T=g(()=>M.value.length>0?e.chargePointPower(M.value[2],"object")||{textValue:"Loading..."}:{textValue:"N/A"}),j=g(()=>Number(D.value.value)>0),F=g(()=>Number(D.value.value)<0),Y=g(()=>Number(R.value.value)>0),U=g(()=>Number(R.value.value)<0),J=g(()=>Number(T.value.value)>0),Z=g(()=>Number(T.value.value)<0),ae=W=>{switch(W){case"instant_charging":return{label:"Sofort",class:"danger"};case"pv_charging":return{label:"PV",class:"success"};case"scheduled_charging":return{label:"Zielladen",class:"primary"};case"time_charging":return{label:"Zeitladen",class:"warning"};case"eco_charging":return{label:"Eco",class:"secondary"};case"stop":return{label:"Stop",class:"dark"};default:return{label:"Stop",class:"dark"}}},de=g(()=>e.chargePointPlugState(M.value[0])),V=g(()=>{const W=e.chargePointConnectedVehicleChargeMode(M.value[0]);return ae(W.value||"")}),I=g(()=>e.chargePointConnectedVehicleInfo(M.value[0]).value?.name||"---"),G=g(()=>e.chargePointConnectedVehicleSoc(M.value[0])),ce=g(()=>e.chargePointPlugState(M.value[1])),me=g(()=>{const W=e.chargePointConnectedVehicleChargeMode(M.value[1]);return ae(W.value||"")}),z=g(()=>e.chargePointConnectedVehicleInfo(M.value[1]).value?.name||"---"),ee=g(()=>e.chargePointConnectedVehicleSoc(M.value[1])),Me=g(()=>e.chargePointPlugState(M.value[2])),Q=g(()=>{const W=e.chargePointConnectedVehicleChargeMode(M.value[2]);return ae(W.value||"")}),Le=g(()=>e.chargePointConnectedVehicleInfo(M.value[2]).value?.name||"---"),tt=g(()=>e.chargePointConnectedVehicleSoc(M.value[2])),Ot=g(()=>e.chargePointSumPower("object")),ct=g(()=>Number(Ot.value.value)<0),yt=g(()=>Number(Ot.value.value)>0),mt=g(()=>{const W=[];return W.push({id:"grid",class:{base:"grid",valueLabel:d.value?"fill-success":c.value?"fill-danger":"",animated:c.value,animatedReverse:d.value},position:{row:0,column:0},label:["EVU",l(u.value).textValue],icon:"icons/owbGrid.svg"}),W.push({id:"home",class:{base:"home",valueLabel:"",animated:_.value,animatedReverse:b.value},position:{row:0,column:2},label:["Haus",l(v.value).textValue],icon:"icons/owbHouse.svg"}),e.getPvConfigured&&W.push({id:"pv",class:{base:"pv",valueLabel:"fill-success",animated:w.value,animatedReverse:x.value},position:{row:1,column:0},label:["PV",l(y.value).textValue],icon:"icons/owbPV.svg"}),e.batteryConfigured&&W.push({id:"battery",class:{base:"battery",valueLabel:"",animated:h.value,animatedReverse:m.value},position:{row:1,column:2},label:["Speicher",l(f.value).textValue],soc:p.value,icon:"icons/owbBattery.svg"}),M.value.length>0&&(M.value.length<=3?(W.push({id:"charge-point-1",class:{base:"charge-point",valueLabel:"",animated:F.value,animatedReverse:j.value},position:{row:2,column:M.value.length>1?0:1},label:[E.value,l(D.value).textValue],icon:"icons/owbChargePoint.svg"}),de.value&&W.push({id:"vehicle-1",class:{base:"vehicle",valueLabel:"fill-"+V.value.class,animated:F.value,animatedReverse:j.value},position:{row:3,column:M.value.length>1?0:1},label:[I.value||"---",V.value.label||"---"],soc:(G.value.value?.soc||0)/100,icon:"icons/owbVehicle.svg"}),M.value.length>1&&W.push({id:"charge-point-2",class:{base:"charge-point",valueLabel:"",animated:U.value,animatedReverse:Y.value},position:{row:2,column:M.value.length>2?1:2},label:[L.value,l(R.value).textValue],icon:"icons/owbChargePoint.svg"}),ce.value&&W.push({id:"vehicle-2",class:{base:"vehicle",valueLabel:"fill-"+me.value.class,animated:U.value,animatedReverse:Y.value},position:{row:3,column:M.value.length>2?1:2},label:[z.value||"---",me.value.label||"---"],soc:(ee.value.value?.soc||0)/100,icon:"icons/owbVehicle.svg"}),M.value.length>2&&W.push({id:"charge-point-3",class:{base:"charge-point",valueLabel:"",animated:Z.value,animatedReverse:J.value},position:{row:2,column:2},label:[O.value,l(T.value).textValue],icon:"icons/owbChargePoint.svg"}),Me.value&&W.push({id:"vehicle-3",class:{base:"vehicle",valueLabel:"fill-"+Q.value.class,animated:Z.value,animatedReverse:J.value},position:{row:3,column:2},label:[Le.value||"---",Q.value.label||"---"],soc:(tt.value.value?.soc||0)/100,icon:"icons/owbVehicle.svg"})):W.push({id:"charge-point-sum",class:{base:"charge-point",valueLabel:"",animated:ct.value,animatedReverse:yt.value},position:{row:2,column:1},label:["Ladepunkte",l(Ot.value).textValue],icon:"icons/owbChargePoint.svg"})),W}),xt=g(()=>M.value?.length>0?M.value.length>3?3:4:3);he(xt,W=>{n.value.numRows=W},{immediate:!0});const gt=W=>{const te=n.value.yMin+n.value.strokeWidth+n.value.circleRadius,Ee=n.value.yMax-n.value.strokeWidth-n.value.circleRadius-te;return W*(Ee/(n.value.numRows-1))+te},Mt=W=>{const te=n.value.xMin+n.value.strokeWidth+N.value/2,Ee=n.value.xMax-n.value.strokeWidth-N.value/2-te;return W*(Ee/(n.value.numColumns-1))+te},Wt=W=>{const te=Mt(W);return W<(n.value.numColumns-1)/2?te+N.value/2-n.value.circleRadius:W>(n.value.numColumns-1)/2?te-N.value/2+n.value.circleRadius:te},Vt=W=>{const te=document.getElementById(W);if(te==null||!(te instanceof SVGGraphicsElement))return{x:0,y:0,width:0,height:0};const ie=te.getBBox();return{x:ie.x,y:ie.y,width:ie.width,height:ie.height}},dt=W=>{const te=document.querySelector(`#${W}`);te&&te.beginElement()},N=g(()=>(n.value.xMax-n.value.xMin-n.value.strokeWidth-n.value.numColumns)/n.value.numColumns);return(W,te)=>(P(),K("div",ov,[(P(),K("svg",{viewBox:i.value,version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:svg":"http://www.w3.org/2000/svg"},[q("g",rv,[(P(!0),K(Oe,null,Xe(mt.value,ie=>(P(),K("path",{key:ie.id,class:Re([ie.class.base,{animated:ie.class.animated},{animatedReverse:ie.class.animatedReverse}]),d:ie.class.base!=="vehicle"?`M ${Wt(ie.position.column)}, ${gt(ie.position.row)} ${Mt(1)}, ${gt(1)}`:`M ${Wt(ie.position.column)}, ${gt(ie.position.row)} ${Wt(ie.position.column)}, ${gt(ie.position.row-1)}`},null,10,lv))),128))]),q("g",uv,[q("circle",{id:"center",cx:Mt(1),cy:gt(1),r:n.value.circleRadius/3},null,8,cv),(P(!0),K(Oe,null,Xe(mt.value,ie=>(P(),K("g",{key:ie.id,class:Re(ie.class.base),transform:`translate(${Mt(ie.position.column)}, ${gt(ie.position.row)})`,onClick:Ee=>dt(`animate-label-${ie.id}`)},[q("defs",null,[ie.soc?(P(),K("clipPath",{key:0,id:`clip-soc-${ie.id}`},[q("rect",{x:-n.value.circleRadius-n.value.strokeWidth,y:(n.value.circleRadius+n.value.strokeWidth)*(1-2*ie.soc),width:(n.value.circleRadius+n.value.strokeWidth)*2,height:(n.value.circleRadius+n.value.strokeWidth)*2*ie.soc},null,8,hv)],8,fv)):ue("",!0),q("clipPath",{id:`clip-label-${ie.id}`},[q("rect",{x:-N.value/2,y:-n.value.circleRadius,width:N.value,height:n.value.circleRadius*2,rx:n.value.circleRadius,ry:n.value.circleRadius},null,8,gv)],8,mv)]),q("rect",{x:-N.value/2,y:-n.value.circleRadius,width:N.value,height:n.value.circleRadius*2,rx:n.value.circleRadius,ry:n.value.circleRadius},null,8,vv),q("text",{"clip-path":`url(#clip-label-${ie.id})`},[q("tspan",{id:`label-${ie.id}`,"text-anchor":"start",x:-N.value/2+2*n.value.circleRadius+n.value.strokeWidth,y:-n.value.textSize/2},[Vt(`label-${ie.id}`).width>N.value-2*n.value.circleRadius-2*n.value.strokeWidth?(P(),K("animate",{key:0,id:`animate-label-${ie.id}`,xmlns:"http://www.w3.org/2000/svg",attributeName:"x",dur:"5s",values:"0; "+(-Vt(`label-${ie.id}`).width+N.value-2.5*n.value.circleRadius-2*n.value.strokeWidth)+"; 0;",repeatCount:"0",additive:"sum"},null,8,yv)):ue("",!0),Ve(" "+oe(ie.label[0]),1)],8,bv),q("tspan",{id:`value-${ie.id}`,class:Re(ie.class.valueLabel),"text-anchor":"end",x:2*n.value.circleRadius+n.value.strokeWidth,y:n.value.textSize},oe(ie.label[1]),11,xv)],8,pv),q("g",{transform:`translate(${n.value.circleRadius-N.value/2}, 0)`},[q("circle",{cx:"0",cy:"0",r:n.value.circleRadius,class:"background-circle"},null,8,_v),q("circle",{cx:"0",cy:"0",r:n.value.circleRadius,class:Re({soc:ie.soc})},null,10,Sv),ie.soc?(P(),K("circle",{key:0,cx:"0",cy:"0",r:n.value.circleRadius,"clip-path":`url(#clip-soc-${ie.id})`},null,8,kv)):ue("",!0),q("image",{href:ie.icon,x:-o.value/2,y:-a.value/2,height:a.value,width:o.value},null,8,Cv)],8,wv)],10,dv))),128))])],8,av))]))}}),Pv=ht(Mv,[["__scopeId","data-v-130920c7"]]);/*! * @kurkle/color v0.3.4 * https://github.com/kurkle/color#readme * (c) 2024 Jukka Kurkela diff --git a/packages/modules/web_themes/koala/web/assets/MainLayout-VAvdP3Hi.js b/packages/modules/web_themes/koala/web/assets/MainLayout-DiTWyfa9.js similarity index 99% rename from packages/modules/web_themes/koala/web/assets/MainLayout-VAvdP3Hi.js rename to packages/modules/web_themes/koala/web/assets/MainLayout-DiTWyfa9.js index 7acb5fa4a4..7cd074d11b 100644 --- a/packages/modules/web_themes/koala/web/assets/MainLayout-VAvdP3Hi.js +++ b/packages/modules/web_themes/koala/web/assets/MainLayout-DiTWyfa9.js @@ -1 +1 @@ -import{c as N,a as r,h as _,d as de,g as ee,i as Ce,e as E,l as fe,r as w,w as k,o as he,f as tt,j as Z,k as lt,m as $e,n as at,p as ot,q as nt,s as rt,t as Ae,u as xe,v as Me,x as De,y as it,z as ut,A as se,B as st,C as ct,D as vt,E as le,F as ae,G as h,H as f,Q as ce,I as D,J as oe,R as ve}from"./index-C8WjSvcX.js";import{Q as ie,s as dt,g as ft,a as ht,b as mt,u as Ve,c as We,d as j,e as Se,T as re,f as Pe,h as bt,i as gt,j as yt,k as zt,l as St,m as wt,n as we,o as _t,p as qt,q as ne,r as V,t as _e,v as qe,w as Tt,x as Te,_ as kt}from"./_plugin-vue_export-helper-BlfdpgEM.js";const Ct=N({name:"QToolbarTitle",props:{shrink:Boolean},setup(e,{slots:C}){const d=r(()=>"q-toolbar__title ellipsis"+(e.shrink===!0?" col-shrink":""));return()=>_("div",{class:d.value},de(C.default))}}),$t=N({name:"QToolbar",props:{inset:Boolean},setup(e,{slots:C}){const d=r(()=>"q-toolbar row no-wrap items-center"+(e.inset===!0?" q-toolbar--inset":""));return()=>_("div",{class:d.value,role:"toolbar"},de(C.default))}}),Bt=N({name:"QHeader",props:{modelValue:{type:Boolean,default:!0},reveal:Boolean,revealOffset:{type:Number,default:250},bordered:Boolean,elevated:Boolean,heightHint:{type:[String,Number],default:50}},emits:["reveal","focusin"],setup(e,{slots:C,emit:d}){const{proxy:{$q:u}}=ee(),i=Ce(fe,E);if(i===E)return console.error("QHeader needs to be child of QLayout"),E;const c=w(parseInt(e.heightHint,10)),t=w(!0),a=r(()=>e.reveal===!0||i.view.value.indexOf("H")!==-1||u.platform.is.ios&&i.isContainer.value===!0),q=r(()=>{if(e.modelValue!==!0)return 0;if(a.value===!0)return t.value===!0?c.value:0;const v=c.value-i.scroll.value.position;return v>0?v:0}),$=r(()=>e.modelValue!==!0||a.value===!0&&t.value!==!0),o=r(()=>e.modelValue===!0&&$.value===!0&&e.reveal===!0),L=r(()=>"q-header q-layout__section--marginal "+(a.value===!0?"fixed":"absolute")+"-top"+(e.bordered===!0?" q-header--bordered":"")+($.value===!0?" q-header--hidden":"")+(e.modelValue!==!0?" q-layout--prevent-focus":"")),T=r(()=>{const v=i.rows.value.top,P={};return v[0]==="l"&&i.left.space===!0&&(P[u.lang.rtl===!0?"right":"left"]=`${i.left.size}px`),v[2]==="r"&&i.right.space===!0&&(P[u.lang.rtl===!0?"left":"right"]=`${i.right.size}px`),P});function S(v,P){i.update("header",v,P)}function z(v,P){v.value!==P&&(v.value=P)}function Q({height:v}){z(c,v),S("size",v)}function O(v){o.value===!0&&z(t,!0),d("focusin",v)}k(()=>e.modelValue,v=>{S("space",v),z(t,!0),i.animate()}),k(q,v=>{S("offset",v)}),k(()=>e.reveal,v=>{v===!1&&z(t,e.modelValue)}),k(t,v=>{i.animate(),d("reveal",v)}),k(i.scroll,v=>{e.reveal===!0&&z(t,v.direction==="up"||v.position<=e.revealOffset||v.position-v.inflectionPoint<100)});const b={};return i.instances.header=b,e.modelValue===!0&&S("size",c.value),S("space",e.modelValue),S("offset",q.value),he(()=>{i.instances.header===b&&(i.instances.header=void 0,S("size",0),S("offset",0),S("space",!1))}),()=>{const v=tt(C.default,[]);return e.elevated===!0&&v.push(_("div",{class:"q-layout__shadow absolute-full overflow-hidden no-pointer-events"})),v.push(_(ie,{debounce:0,onResize:Q})),_("header",{class:L.value,style:T.value,onFocusin:O},v)}}}),Ot=N({props:["store","barStyle","verticalBarStyle","horizontalBarStyle"],setup(e){return()=>[_("div",{class:e.store.scroll.vertical.barClass.value,style:[e.barStyle,e.verticalBarStyle],"aria-hidden":"true",onMousedown:e.store.onVerticalMousedown}),_("div",{class:e.store.scroll.horizontal.barClass.value,style:[e.barStyle,e.horizontalBarStyle],"aria-hidden":"true",onMousedown:e.store.onHorizontalMousedown}),Z(_("div",{ref:e.store.scroll.vertical.ref,class:e.store.scroll.vertical.thumbClass.value,style:e.store.scroll.vertical.style.value,"aria-hidden":"true"}),e.store.thumbVertDir),Z(_("div",{ref:e.store.scroll.horizontal.ref,class:e.store.scroll.horizontal.thumbClass.value,style:e.store.scroll.horizontal.style.value,"aria-hidden":"true"}),e.store.thumbHorizDir)]}}),{passive:Le}=lt,xt=["both","horizontal","vertical"],Re=N({name:"QScrollObserver",props:{axis:{type:String,validator:e=>xt.includes(e),default:"vertical"},debounce:[String,Number],scrollTarget:dt},emits:["scroll"],setup(e,{emit:C}){const d={position:{top:0,left:0},direction:"down",directionChanged:!1,delta:{top:0,left:0},inflectionPoint:{top:0,left:0}};let u=null,i,c;k(()=>e.scrollTarget,()=>{q(),a()});function t(){u?.();const L=Math.max(0,ht(i)),T=mt(i),S={top:L-d.position.top,left:T-d.position.left};if(e.axis==="vertical"&&S.top===0||e.axis==="horizontal"&&S.left===0)return;const z=Math.abs(S.top)>=Math.abs(S.left)?S.top<0?"up":"down":S.left<0?"left":"right";d.position={top:L,left:T},d.directionChanged=d.direction!==z,d.delta=S,d.directionChanged===!0&&(d.direction=z,d.inflectionPoint=d.position),C("scroll",{...d})}function a(){i=ft(c,e.scrollTarget),i.addEventListener("scroll",$,Le),$(!0)}function q(){i!==void 0&&(i.removeEventListener("scroll",$,Le),i=void 0)}function $(L){if(L===!0||e.debounce===0||e.debounce==="0")t();else if(u===null){const[T,S]=e.debounce?[setTimeout(t,e.debounce),clearTimeout]:[requestAnimationFrame(t),cancelAnimationFrame];u=()=>{S(T),u=null}}}const{proxy:o}=ee();return k(()=>o.$q.lang.rtl,t),$e(()=>{c=o.$el.parentNode,a()}),he(()=>{u?.(),q()}),Object.assign(o,{trigger:$,getPosition:()=>d}),at}}),pe=["vertical","horizontal"],ke={vertical:{offset:"offsetY",scroll:"scrollTop",dir:"down",dist:"y"},horizontal:{offset:"offsetX",scroll:"scrollLeft",dir:"right",dist:"x"}},He={prevent:!0,mouse:!0,mouseAllDir:!0},Qe=e=>e>=250?50:Math.ceil(e/5),Mt=N({name:"QScrollArea",props:{...Ve,thumbStyle:Object,verticalThumbStyle:Object,horizontalThumbStyle:Object,barStyle:[Array,String,Object],verticalBarStyle:[Array,String,Object],horizontalBarStyle:[Array,String,Object],verticalOffset:{type:Array,default:[0,0]},horizontalOffset:{type:Array,default:[0,0]},contentStyle:[Array,String,Object],contentActiveStyle:[Array,String,Object],delay:{type:[String,Number],default:1e3},visible:{type:Boolean,default:null},tabindex:[String,Number],onScroll:Function},setup(e,{slots:C,emit:d}){const u=w(!1),i=w(!1),c=w(!1),t={vertical:w(0),horizontal:w(0)},a={vertical:{ref:w(null),position:w(0),size:w(0)},horizontal:{ref:w(null),position:w(0),size:w(0)}},{proxy:q}=ee(),$=We(e,q.$q);let o=null,L;const T=w(null),S=r(()=>"q-scrollarea"+($.value===!0?" q-scrollarea--dark":""));Object.assign(t,{verticalInner:r(()=>t.vertical.value-e.verticalOffset[0]-e.verticalOffset[1]),horizontalInner:r(()=>t.horizontal.value-e.horizontalOffset[0]-e.horizontalOffset[1])}),a.vertical.percentage=r(()=>{const n=a.vertical.size.value-t.vertical.value;if(n<=0)return 0;const s=j(a.vertical.position.value/n,0,1);return Math.round(s*1e4)/1e4}),a.vertical.thumbHidden=r(()=>(e.visible===null?c.value:e.visible)!==!0&&u.value===!1&&i.value===!1||a.vertical.size.value<=t.vertical.value+1),a.vertical.thumbStart=r(()=>e.verticalOffset[0]+a.vertical.percentage.value*(t.verticalInner.value-a.vertical.thumbSize.value)),a.vertical.thumbSize=r(()=>Math.round(j(t.verticalInner.value*t.verticalInner.value/a.vertical.size.value,Qe(t.verticalInner.value),t.verticalInner.value))),a.vertical.style=r(()=>({...e.thumbStyle,...e.verticalThumbStyle,top:`${a.vertical.thumbStart.value}px`,height:`${a.vertical.thumbSize.value}px`,right:`${e.horizontalOffset[1]}px`})),a.vertical.thumbClass=r(()=>"q-scrollarea__thumb q-scrollarea__thumb--v absolute-right"+(a.vertical.thumbHidden.value===!0?" q-scrollarea__thumb--invisible":"")),a.vertical.barClass=r(()=>"q-scrollarea__bar q-scrollarea__bar--v absolute-right"+(a.vertical.thumbHidden.value===!0?" q-scrollarea__bar--invisible":"")),a.horizontal.percentage=r(()=>{const n=a.horizontal.size.value-t.horizontal.value;if(n<=0)return 0;const s=j(Math.abs(a.horizontal.position.value)/n,0,1);return Math.round(s*1e4)/1e4}),a.horizontal.thumbHidden=r(()=>(e.visible===null?c.value:e.visible)!==!0&&u.value===!1&&i.value===!1||a.horizontal.size.value<=t.horizontal.value+1),a.horizontal.thumbStart=r(()=>e.horizontalOffset[0]+a.horizontal.percentage.value*(t.horizontalInner.value-a.horizontal.thumbSize.value)),a.horizontal.thumbSize=r(()=>Math.round(j(t.horizontalInner.value*t.horizontalInner.value/a.horizontal.size.value,Qe(t.horizontalInner.value),t.horizontalInner.value))),a.horizontal.style=r(()=>({...e.thumbStyle,...e.horizontalThumbStyle,[q.$q.lang.rtl===!0?"right":"left"]:`${a.horizontal.thumbStart.value}px`,width:`${a.horizontal.thumbSize.value}px`,bottom:`${e.verticalOffset[1]}px`})),a.horizontal.thumbClass=r(()=>"q-scrollarea__thumb q-scrollarea__thumb--h absolute-bottom"+(a.horizontal.thumbHidden.value===!0?" q-scrollarea__thumb--invisible":"")),a.horizontal.barClass=r(()=>"q-scrollarea__bar q-scrollarea__bar--h absolute-bottom"+(a.horizontal.thumbHidden.value===!0?" q-scrollarea__bar--invisible":""));const z=r(()=>a.vertical.thumbHidden.value===!0&&a.horizontal.thumbHidden.value===!0?e.contentStyle:e.contentActiveStyle);function Q(){const n={};return pe.forEach(s=>{const y=a[s];Object.assign(n,{[s+"Position"]:y.position.value,[s+"Percentage"]:y.percentage.value,[s+"Size"]:y.size.value,[s+"ContainerSize"]:t[s].value,[s+"ContainerInnerSize"]:t[s+"Inner"].value})}),n}const O=ot(()=>{const n=Q();n.ref=q,d("scroll",n)},0);function b(n,s,y){if(pe.includes(n)===!1){console.error("[QScrollArea]: wrong first param of setScrollPosition (vertical/horizontal)");return}(n==="vertical"?Pe:Se)(T.value,s,y)}function v({height:n,width:s}){let y=!1;t.vertical.value!==n&&(t.vertical.value=n,y=!0),t.horizontal.value!==s&&(t.horizontal.value=s,y=!0),y===!0&&M()}function P({position:n}){let s=!1;a.vertical.position.value!==n.top&&(a.vertical.position.value=n.top,s=!0),a.horizontal.position.value!==n.left&&(a.horizontal.position.value=n.left,s=!0),s===!0&&M()}function g({height:n,width:s}){a.horizontal.size.value!==s&&(a.horizontal.size.value=s,M()),a.vertical.size.value!==n&&(a.vertical.size.value=n,M())}function B(n,s){const y=a[s];if(n.isFirst===!0){if(y.thumbHidden.value===!0)return;L=y.position.value,i.value=!0}else if(i.value!==!0)return;n.isFinal===!0&&(i.value=!1);const W=ke[s],F=(y.size.value-t[s].value)/(t[s+"Inner"].value-y.thumbSize.value),R=n.distance[W.dist],te=L+(n.direction===W.dir?1:-1)*R*F;U(te,s)}function x(n,s){const y=a[s];if(y.thumbHidden.value!==!0){const W=s==="vertical"?e.verticalOffset[0]:e.horizontalOffset[0],F=n[ke[s].offset]-W,R=y.thumbStart.value-W;if(FR+y.thumbSize.value){const te=F-y.thumbSize.value/2,me=j(te/(t[s+"Inner"].value-y.thumbSize.value),0,1);U(me*Math.max(0,y.size.value-t[s].value),s)}y.ref.value!==null&&y.ref.value.dispatchEvent(new MouseEvent(n.type,n))}}function M(){u.value=!0,o!==null&&clearTimeout(o),o=setTimeout(()=>{o=null,u.value=!1},e.delay),e.onScroll!==void 0&&O()}function U(n,s){T.value[ke[s].scroll]=n}let p=null;function A(){p!==null&&clearTimeout(p),p=setTimeout(()=>{p=null,c.value=!0},q.$q.platform.is.ios?50:0)}function G(){p!==null&&(clearTimeout(p),p=null),c.value=!1}let Y=null;k(()=>q.$q.lang.rtl,n=>{T.value!==null&&Se(T.value,Math.abs(a.horizontal.position.value)*(n===!0?-1:1))}),nt(()=>{Y={top:a.vertical.position.value,left:a.horizontal.position.value}}),rt(()=>{if(Y===null)return;const n=T.value;n!==null&&(Se(n,Y.left),Pe(n,Y.top))}),he(O.cancel),Object.assign(q,{getScrollTarget:()=>T.value,getScroll:Q,getScrollPosition:()=>({top:a.vertical.position.value,left:a.horizontal.position.value}),getScrollPercentage:()=>({top:a.vertical.percentage.value,left:a.horizontal.percentage.value}),setScrollPosition:b,setScrollPercentage(n,s,y){b(n,s*(a[n].size.value-t[n].value)*(n==="horizontal"&&q.$q.lang.rtl===!0?-1:1),y)}});const K={scroll:a,thumbVertDir:[[re,n=>{B(n,"vertical")},void 0,{vertical:!0,...He}]],thumbHorizDir:[[re,n=>{B(n,"horizontal")},void 0,{horizontal:!0,...He}]],onVerticalMousedown(n){x(n,"vertical")},onHorizontalMousedown(n){x(n,"horizontal")}};return()=>_("div",{class:S.value,onMouseenter:A,onMouseleave:G},[_("div",{ref:T,class:"q-scrollarea__container scroll relative-position fit hide-scrollbar",tabindex:e.tabindex!==void 0?e.tabindex:void 0},[_("div",{class:"q-scrollarea__content absolute",style:z.value},Ae(C.default,[_(ie,{debounce:0,onResize:g})])),_(Re,{axis:"both",onScroll:P})]),_(ie,{debounce:0,onResize:v}),_(Ot,{store:K,barStyle:e.barStyle,verticalBarStyle:e.verticalBarStyle,horizontalBarStyle:e.horizontalBarStyle})])}}),Ie=150,Pt=N({name:"QDrawer",inheritAttrs:!1,props:{...gt,...Ve,side:{type:String,default:"left",validator:e=>["left","right"].includes(e)},width:{type:Number,default:300},mini:Boolean,miniToOverlay:Boolean,miniWidth:{type:Number,default:57},noMiniAnimation:Boolean,breakpoint:{type:Number,default:1023},showIfAbove:Boolean,behavior:{type:String,validator:e=>["default","desktop","mobile"].includes(e),default:"default"},bordered:Boolean,elevated:Boolean,overlay:Boolean,persistent:Boolean,noSwipeOpen:Boolean,noSwipeClose:Boolean,noSwipeBackdrop:Boolean},emits:[...bt,"onLayout","miniState"],setup(e,{slots:C,emit:d,attrs:u}){const i=ee(),{proxy:{$q:c}}=i,t=We(e,c),{preventBodyScroll:a}=wt(),{registerTimeout:q,removeTimeout:$}=yt(),o=Ce(fe,E);if(o===E)return console.error("QDrawer needs to be child of QLayout"),E;let L,T=null,S;const z=w(e.behavior==="mobile"||e.behavior!=="desktop"&&o.totalWidth.value<=e.breakpoint),Q=r(()=>e.mini===!0&&z.value!==!0),O=r(()=>Q.value===!0?e.miniWidth:e.width),b=w(e.showIfAbove===!0&&z.value===!1?!0:e.modelValue===!0),v=r(()=>e.persistent!==!0&&(z.value===!0||te.value===!0));function P(l,m){if(M(),l!==!1&&o.animate(),I(0),z.value===!0){const H=o.instances[y.value];H?.belowBreakpoint===!0&&H.hide(!1),X(1),o.isContainer.value!==!0&&a(!0)}else X(0),l!==!1&&ge(!1);q(()=>{l!==!1&&ge(!0),m!==!0&&d("show",l)},Ie)}function g(l,m){U(),l!==!1&&o.animate(),X(0),I(G.value*O.value),ye(),m!==!0?q(()=>{d("hide",l)},Ie):$()}const{show:B,hide:x}=zt({showing:b,hideOnRouteChange:v,handleShow:P,handleHide:g}),{addToHistory:M,removeFromHistory:U}=St(b,x,v),p={belowBreakpoint:z,hide:x},A=r(()=>e.side==="right"),G=r(()=>(c.lang.rtl===!0?-1:1)*(A.value===!0?1:-1)),Y=w(0),K=w(!1),n=w(!1),s=w(O.value*G.value),y=r(()=>A.value===!0?"left":"right"),W=r(()=>b.value===!0&&z.value===!1&&e.overlay===!1?e.miniToOverlay===!0?e.miniWidth:O.value:0),F=r(()=>e.overlay===!0||e.miniToOverlay===!0||o.view.value.indexOf(A.value?"R":"L")!==-1||c.platform.is.ios===!0&&o.isContainer.value===!0),R=r(()=>e.overlay===!1&&b.value===!0&&z.value===!1),te=r(()=>e.overlay===!0&&b.value===!0&&z.value===!1),me=r(()=>"fullscreen q-drawer__backdrop"+(b.value===!1&&K.value===!1?" hidden":"")),Fe=r(()=>({backgroundColor:`rgba(0,0,0,${Y.value*.4})`})),Be=r(()=>A.value===!0?o.rows.value.top[2]==="r":o.rows.value.top[0]==="l"),je=r(()=>A.value===!0?o.rows.value.bottom[2]==="r":o.rows.value.bottom[0]==="l"),Ee=r(()=>{const l={};return o.header.space===!0&&Be.value===!1&&(F.value===!0?l.top=`${o.header.offset}px`:o.header.space===!0&&(l.top=`${o.header.size}px`)),o.footer.space===!0&&je.value===!1&&(F.value===!0?l.bottom=`${o.footer.offset}px`:o.footer.space===!0&&(l.bottom=`${o.footer.size}px`)),l}),Ne=r(()=>{const l={width:`${O.value}px`,transform:`translateX(${s.value}px)`};return z.value===!0?l:Object.assign(l,Ee.value)}),Ue=r(()=>"q-drawer__content fit "+(o.isContainer.value!==!0?"scroll":"overflow-auto")),Ge=r(()=>`q-drawer q-drawer--${e.side}`+(n.value===!0?" q-drawer--mini-animate":"")+(e.bordered===!0?" q-drawer--bordered":"")+(t.value===!0?" q-drawer--dark q-dark":"")+(K.value===!0?" no-transition":b.value===!0?"":" q-layout--prevent-focus")+(z.value===!0?" fixed q-drawer--on-top q-drawer--mobile q-drawer--top-padding":` q-drawer--${Q.value===!0?"mini":"standard"}`+(F.value===!0||R.value!==!0?" fixed":"")+(e.overlay===!0||e.miniToOverlay===!0?" q-drawer--on-top":"")+(Be.value===!0?" q-drawer--top-padding":""))),Ke=r(()=>{const l=c.lang.rtl===!0?e.side:y.value;return[[re,Ze,void 0,{[l]:!0,mouse:!0}]]}),Xe=r(()=>{const l=c.lang.rtl===!0?y.value:e.side;return[[re,Oe,void 0,{[l]:!0,mouse:!0}]]}),Je=r(()=>{const l=c.lang.rtl===!0?y.value:e.side;return[[re,Oe,void 0,{[l]:!0,mouse:!0,mouseAllDir:!0}]]});function be(){et(z,e.behavior==="mobile"||e.behavior!=="desktop"&&o.totalWidth.value<=e.breakpoint)}k(z,l=>{l===!0?(L=b.value,b.value===!0&&x(!1)):e.overlay===!1&&e.behavior!=="mobile"&&L!==!1&&(b.value===!0?(I(0),X(0),ye()):B(!1))}),k(()=>e.side,(l,m)=>{o.instances[m]===p&&(o.instances[m]=void 0,o[m].space=!1,o[m].offset=0),o.instances[l]=p,o[l].size=O.value,o[l].space=R.value,o[l].offset=W.value}),k(o.totalWidth,()=>{(o.isContainer.value===!0||document.qScrollPrevented!==!0)&&be()}),k(()=>e.behavior+e.breakpoint,be),k(o.isContainer,l=>{b.value===!0&&a(l!==!0),l===!0&&be()}),k(o.scrollbarWidth,()=>{I(b.value===!0?0:void 0)}),k(W,l=>{J("offset",l)}),k(R,l=>{d("onLayout",l),J("space",l)}),k(A,()=>{I()}),k(O,l=>{I(),ze(e.miniToOverlay,l)}),k(()=>e.miniToOverlay,l=>{ze(l,O.value)}),k(()=>c.lang.rtl,()=>{I()}),k(()=>e.mini,()=>{e.noMiniAnimation||e.modelValue===!0&&(Ye(),o.animate())}),k(Q,l=>{d("miniState",l)});function I(l){l===void 0?xe(()=>{l=b.value===!0?0:O.value,I(G.value*l)}):(o.isContainer.value===!0&&A.value===!0&&(z.value===!0||Math.abs(l)===O.value)&&(l+=G.value*o.scrollbarWidth.value),s.value=l)}function X(l){Y.value=l}function ge(l){const m=l===!0?"remove":o.isContainer.value!==!0?"add":"";m!==""&&document.body.classList[m]("q-body--drawer-toggle")}function Ye(){T!==null&&clearTimeout(T),i.proxy&&i.proxy.$el&&i.proxy.$el.classList.add("q-drawer--mini-animate"),n.value=!0,T=setTimeout(()=>{T=null,n.value=!1,i?.proxy?.$el?.classList.remove("q-drawer--mini-animate")},150)}function Ze(l){if(b.value!==!1)return;const m=O.value,H=j(l.distance.x,0,m);if(l.isFinal===!0){H>=Math.min(75,m)===!0?B():(o.animate(),X(0),I(G.value*m)),K.value=!1;return}I((c.lang.rtl===!0?A.value!==!0:A.value)?Math.max(m-H,0):Math.min(0,H-m)),X(j(H/m,0,1)),l.isFirst===!0&&(K.value=!0)}function Oe(l){if(b.value!==!0)return;const m=O.value,H=l.direction===e.side,ue=(c.lang.rtl===!0?H!==!0:H)?j(l.distance.x,0,m):0;if(l.isFinal===!0){Math.abs(ue){d("onLayout",R.value),d("miniState",Q.value),L=e.showIfAbove===!0;const l=()=>{(b.value===!0?P:g)(!1,!0)};if(o.totalWidth.value!==0){xe(l);return}S=k(o.totalWidth,()=>{S(),S=void 0,b.value===!1&&e.showIfAbove===!0&&z.value===!1?B(!1):l()})}),he(()=>{S?.(),T!==null&&(clearTimeout(T),T=null),b.value===!0&&ye(),o.instances[e.side]===p&&(o.instances[e.side]=void 0,J("size",0),J("offset",0),J("space",!1))}),()=>{const l=[];z.value===!0&&(e.noSwipeOpen===!1&&l.push(Z(_("div",{key:"open",class:`q-drawer__opener fixed-${e.side}`,"aria-hidden":"true"}),Ke.value)),l.push(Me("div",{ref:"backdrop",class:me.value,style:Fe.value,"aria-hidden":"true",onClick:x},void 0,"backdrop",e.noSwipeBackdrop!==!0&&b.value===!0,()=>Je.value)));const m=Q.value===!0&&C.mini!==void 0,H=[_("div",{...u,key:""+m,class:[Ue.value,u.class]},m===!0?C.mini():de(C.default))];return e.elevated===!0&&b.value===!0&&H.push(_("div",{class:"q-layout__shadow absolute-full overflow-hidden no-pointer-events"})),l.push(Me("aside",{ref:"content",class:Ge.value,style:Ne.value},H,"contentclose",e.noSwipeClose!==!0&&z.value===!0,()=>Xe.value)),_("div",{class:"q-drawer-container"},l)}}}),Lt=N({name:"QPageContainer",setup(e,{slots:C}){const{proxy:{$q:d}}=ee(),u=Ce(fe,E);if(u===E)return console.error("QPageContainer needs to be child of QLayout"),E;De(it,!0);const i=r(()=>{const c={};return u.header.space===!0&&(c.paddingTop=`${u.header.size}px`),u.right.space===!0&&(c[`padding${d.lang.rtl===!0?"Left":"Right"}`]=`${u.right.size}px`),u.footer.space===!0&&(c.paddingBottom=`${u.footer.size}px`),u.left.space===!0&&(c[`padding${d.lang.rtl===!0?"Right":"Left"}`]=`${u.left.size}px`),c});return()=>_("div",{class:"q-page-container",style:i.value},de(C.default))}}),pt=N({name:"QLayout",props:{container:Boolean,view:{type:String,default:"hhh lpr fff",validator:e=>/^(h|l)h(h|r) lpr (f|l)f(f|r)$/.test(e.toLowerCase())},onScroll:Function,onScrollHeight:Function,onResize:Function},setup(e,{slots:C,emit:d}){const{proxy:{$q:u}}=ee(),i=w(null),c=w(u.screen.height),t=w(e.container===!0?0:u.screen.width),a=w({position:0,direction:"down",inflectionPoint:0}),q=w(0),$=w(ut.value===!0?0:we()),o=r(()=>"q-layout q-layout--"+(e.container===!0?"containerized":"standard")),L=r(()=>e.container===!1?{minHeight:u.screen.height+"px"}:null),T=r(()=>$.value!==0?{[u.lang.rtl===!0?"left":"right"]:`${$.value}px`}:null),S=r(()=>$.value!==0?{[u.lang.rtl===!0?"right":"left"]:0,[u.lang.rtl===!0?"left":"right"]:`-${$.value}px`,width:`calc(100% + ${$.value}px)`}:null);function z(g){if(e.container===!0||document.qScrollPrevented!==!0){const B={position:g.position.top,direction:g.direction,directionChanged:g.directionChanged,inflectionPoint:g.inflectionPoint.top,delta:g.delta.top};a.value=B,e.onScroll!==void 0&&d("scroll",B)}}function Q(g){const{height:B,width:x}=g;let M=!1;c.value!==B&&(M=!0,c.value=B,e.onScrollHeight!==void 0&&d("scrollHeight",B),b()),t.value!==x&&(M=!0,t.value=x),M===!0&&e.onResize!==void 0&&d("resize",g)}function O({height:g}){q.value!==g&&(q.value=g,b())}function b(){if(e.container===!0){const g=c.value>q.value?we():0;$.value!==g&&($.value=g)}}let v=null;const P={instances:{},view:r(()=>e.view),isContainer:r(()=>e.container),rootRef:i,height:c,containerHeight:q,scrollbarWidth:$,totalWidth:r(()=>t.value+$.value),rows:r(()=>{const g=e.view.toLowerCase().split(" ");return{top:g[0].split(""),middle:g[1].split(""),bottom:g[2].split("")}}),header:se({size:0,offset:0,space:!1}),right:se({size:300,offset:0,space:!1}),footer:se({size:0,offset:0,space:!1}),left:se({size:300,offset:0,space:!1}),scroll:a,animate(){v!==null?clearTimeout(v):document.body.classList.add("q-body--layout-animate"),v=setTimeout(()=>{v=null,document.body.classList.remove("q-body--layout-animate")},155)},update(g,B,x){P[g][B]=x}};if(De(fe,P),we()>0){let g=function(){M=null,U.classList.remove("hide-scrollbar")},B=function(){if(M===null){if(U.scrollHeight>u.screen.height)return;U.classList.add("hide-scrollbar")}else clearTimeout(M);M=setTimeout(g,300)},x=function(p){M!==null&&p==="remove"&&(clearTimeout(M),g()),window[`${p}EventListener`]("resize",B)},M=null;const U=document.body;k(()=>e.container!==!0?"add":"remove",x),e.container!==!0&&x("add"),st(()=>{x("remove")})}return()=>{const g=Ae(C.default,[_(Re,{onScroll:z}),_(ie,{onResize:Q})]),B=_("div",{class:o.value,style:L.value,ref:e.container===!0?void 0:i,tabindex:-1},g);return e.container===!0?_("div",{class:"q-layout-container overflow-hidden",ref:i},[_(ie,{onResize:O}),_("div",{class:"absolute-full",style:T.value},[_("div",{class:"scroll",style:S.value},[B])])]):B}}}),Ht=ct({name:"MainLayout",__name:"MainLayout",setup(e){const C=_t(),d=w(!1),u=w("auto"),i=c=>{u.value=c,c==="auto"?(localStorage.removeItem("theme"),C.dark.set("auto")):(C.dark.set(c==="dark"),localStorage.setItem("theme",c))};return $e(()=>{const c=localStorage.getItem("theme");c?(u.value=c,C.dark.set(c==="dark")):(u.value="auto",C.dark.set("auto"))}),(c,t)=>{const a=vt("router-view");return ae(),le(pt,{view:"hHh lpr lFf"},{default:h(()=>[f(Bt,{elevated:""},{default:h(()=>[f($t,null,{default:h(()=>[f(ce,{dense:"",flat:"",round:"",icon:"menu",onClick:t[0]||(t[0]=q=>d.value=!d.value)}),f(Ct,null,{default:h(()=>t[5]||(t[5]=[D("openWB",-1)])),_:1,__:[5]})]),_:1})]),_:1}),f(Pt,{modelValue:d.value,"onUpdate:modelValue":t[4]||(t[4]=q=>d.value=q),side:"left",overlay:"",elevated:"",breakpoint:500},{default:h(()=>[f(Mt,{class:"fit","horizontal-thumb-style":{opacity:"0"}},{default:h(()=>[f(qt,{padding:""},{default:h(()=>[Z((ae(),le(ne,{clickable:"",href:"/openWB/web/settings/#/Status"},{default:h(()=>[f(V,{avatar:""},{default:h(()=>[f(oe,{name:"dashboard"})]),_:1}),f(V,null,{default:h(()=>t[6]||(t[6]=[D(" Status ",-1)])),_:1,__:[6]})]),_:1})),[[ve]]),f(_e),f(qe,{header:""},{default:h(()=>t[7]||(t[7]=[D("Auswertungen",-1)])),_:1,__:[7]}),Z((ae(),le(ne,{clickable:"",href:"/openWB/web/settings/#/Logging/ChargeLog"},{default:h(()=>[f(V,{avatar:""},{default:h(()=>[f(oe,{name:"table_chart"})]),_:1}),f(V,null,{default:h(()=>t[8]||(t[8]=[D(" Ladeprotokoll ",-1)])),_:1,__:[8]})]),_:1})),[[ve]]),Z((ae(),le(ne,{clickable:"",href:"/openWB/web/settings/#/Logging/Chart"},{default:h(()=>[f(V,{avatar:""},{default:h(()=>[f(oe,{name:"area_chart"})]),_:1}),f(V,null,{default:h(()=>t[9]||(t[9]=[D(" Diagramme ",-1)])),_:1,__:[9]})]),_:1})),[[ve]]),f(_e),Z((ae(),le(ne,{clickable:"",href:"/openWB/web/settings/"},{default:h(()=>[f(V,{avatar:""},{default:h(()=>[f(oe,{name:"settings"})]),_:1}),f(V,null,{default:h(()=>t[10]||(t[10]=[D(" Einstellungen ",-1)])),_:1,__:[10]})]),_:1})),[[ve]]),f(_e),f(qe,{header:""},{default:h(()=>t[11]||(t[11]=[D("Anzeigeeinstellungen",-1)])),_:1,__:[11]}),f(ne,null,{default:h(()=>[f(V,{avatar:""},{default:h(()=>[f(oe,{name:"light_mode"})]),_:1}),f(V,null,{default:h(()=>[f(qe,null,{default:h(()=>t[12]||(t[12]=[D("Darstellungsmodus",-1)])),_:1,__:[12]})]),_:1}),f(V,{side:""},{default:h(()=>[f(Tt,{flat:""},{default:h(()=>[f(ce,{flat:"",round:"",color:u.value==="light"?"primary":"",icon:"light_mode",onClick:t[1]||(t[1]=q=>i("light")),size:"sm",disable:u.value==="light","aria-label":"Light Mode"},{default:h(()=>[f(Te,null,{default:h(()=>t[13]||(t[13]=[D("Hell",-1)])),_:1,__:[13]})]),_:1},8,["color","disable"]),f(ce,{flat:"",round:"",color:u.value==="dark"?"primary":"",icon:"dark_mode",onClick:t[2]||(t[2]=q=>i("dark")),size:"sm",disable:u.value==="dark","aria-label":"Dark Mode"},{default:h(()=>[f(Te,null,{default:h(()=>t[14]||(t[14]=[D("Dunkel",-1)])),_:1,__:[14]})]),_:1},8,["color","disable"]),f(ce,{flat:"",round:"",color:u.value==="auto"?"primary":"",icon:"devices",onClick:t[3]||(t[3]=q=>i("auto")),size:"sm",disable:u.value==="auto","aria-label":"System Mode"},{default:h(()=>[f(Te,null,{default:h(()=>t[15]||(t[15]=[D("Systemeinstellung",-1)])),_:1,__:[15]})]),_:1},8,["color","disable"])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"]),f(Lt,{class:"column flex centered-container"},{default:h(()=>[f(a)]),_:1})]),_:1})}}}),Dt=kt(Ht,[["__scopeId","data-v-562c3b02"]]);export{Dt as default}; +import{c as N,a as r,h as _,d as de,g as ee,i as Ce,e as E,l as fe,r as w,w as k,o as he,f as tt,j as Z,k as lt,m as $e,n as at,p as ot,q as nt,s as rt,t as Ae,u as xe,v as Me,x as De,y as it,z as ut,A as se,B as st,C as ct,D as vt,E as le,F as ae,G as h,H as f,Q as ce,I as D,J as oe,R as ve}from"./index-DCrt5iVV.js";import{Q as ie,s as dt,g as ft,a as ht,b as mt,u as Ve,c as We,d as j,e as Se,T as re,f as Pe,h as bt,i as gt,j as yt,k as zt,l as St,m as wt,n as we,o as _t,p as qt,q as ne,r as V,t as _e,v as qe,w as Tt,x as Te,_ as kt}from"./_plugin-vue_export-helper-CKNjr6LQ.js";const Ct=N({name:"QToolbarTitle",props:{shrink:Boolean},setup(e,{slots:C}){const d=r(()=>"q-toolbar__title ellipsis"+(e.shrink===!0?" col-shrink":""));return()=>_("div",{class:d.value},de(C.default))}}),$t=N({name:"QToolbar",props:{inset:Boolean},setup(e,{slots:C}){const d=r(()=>"q-toolbar row no-wrap items-center"+(e.inset===!0?" q-toolbar--inset":""));return()=>_("div",{class:d.value,role:"toolbar"},de(C.default))}}),Bt=N({name:"QHeader",props:{modelValue:{type:Boolean,default:!0},reveal:Boolean,revealOffset:{type:Number,default:250},bordered:Boolean,elevated:Boolean,heightHint:{type:[String,Number],default:50}},emits:["reveal","focusin"],setup(e,{slots:C,emit:d}){const{proxy:{$q:u}}=ee(),i=Ce(fe,E);if(i===E)return console.error("QHeader needs to be child of QLayout"),E;const c=w(parseInt(e.heightHint,10)),t=w(!0),a=r(()=>e.reveal===!0||i.view.value.indexOf("H")!==-1||u.platform.is.ios&&i.isContainer.value===!0),q=r(()=>{if(e.modelValue!==!0)return 0;if(a.value===!0)return t.value===!0?c.value:0;const v=c.value-i.scroll.value.position;return v>0?v:0}),$=r(()=>e.modelValue!==!0||a.value===!0&&t.value!==!0),o=r(()=>e.modelValue===!0&&$.value===!0&&e.reveal===!0),L=r(()=>"q-header q-layout__section--marginal "+(a.value===!0?"fixed":"absolute")+"-top"+(e.bordered===!0?" q-header--bordered":"")+($.value===!0?" q-header--hidden":"")+(e.modelValue!==!0?" q-layout--prevent-focus":"")),T=r(()=>{const v=i.rows.value.top,P={};return v[0]==="l"&&i.left.space===!0&&(P[u.lang.rtl===!0?"right":"left"]=`${i.left.size}px`),v[2]==="r"&&i.right.space===!0&&(P[u.lang.rtl===!0?"left":"right"]=`${i.right.size}px`),P});function S(v,P){i.update("header",v,P)}function z(v,P){v.value!==P&&(v.value=P)}function Q({height:v}){z(c,v),S("size",v)}function O(v){o.value===!0&&z(t,!0),d("focusin",v)}k(()=>e.modelValue,v=>{S("space",v),z(t,!0),i.animate()}),k(q,v=>{S("offset",v)}),k(()=>e.reveal,v=>{v===!1&&z(t,e.modelValue)}),k(t,v=>{i.animate(),d("reveal",v)}),k(i.scroll,v=>{e.reveal===!0&&z(t,v.direction==="up"||v.position<=e.revealOffset||v.position-v.inflectionPoint<100)});const b={};return i.instances.header=b,e.modelValue===!0&&S("size",c.value),S("space",e.modelValue),S("offset",q.value),he(()=>{i.instances.header===b&&(i.instances.header=void 0,S("size",0),S("offset",0),S("space",!1))}),()=>{const v=tt(C.default,[]);return e.elevated===!0&&v.push(_("div",{class:"q-layout__shadow absolute-full overflow-hidden no-pointer-events"})),v.push(_(ie,{debounce:0,onResize:Q})),_("header",{class:L.value,style:T.value,onFocusin:O},v)}}}),Ot=N({props:["store","barStyle","verticalBarStyle","horizontalBarStyle"],setup(e){return()=>[_("div",{class:e.store.scroll.vertical.barClass.value,style:[e.barStyle,e.verticalBarStyle],"aria-hidden":"true",onMousedown:e.store.onVerticalMousedown}),_("div",{class:e.store.scroll.horizontal.barClass.value,style:[e.barStyle,e.horizontalBarStyle],"aria-hidden":"true",onMousedown:e.store.onHorizontalMousedown}),Z(_("div",{ref:e.store.scroll.vertical.ref,class:e.store.scroll.vertical.thumbClass.value,style:e.store.scroll.vertical.style.value,"aria-hidden":"true"}),e.store.thumbVertDir),Z(_("div",{ref:e.store.scroll.horizontal.ref,class:e.store.scroll.horizontal.thumbClass.value,style:e.store.scroll.horizontal.style.value,"aria-hidden":"true"}),e.store.thumbHorizDir)]}}),{passive:Le}=lt,xt=["both","horizontal","vertical"],Re=N({name:"QScrollObserver",props:{axis:{type:String,validator:e=>xt.includes(e),default:"vertical"},debounce:[String,Number],scrollTarget:dt},emits:["scroll"],setup(e,{emit:C}){const d={position:{top:0,left:0},direction:"down",directionChanged:!1,delta:{top:0,left:0},inflectionPoint:{top:0,left:0}};let u=null,i,c;k(()=>e.scrollTarget,()=>{q(),a()});function t(){u?.();const L=Math.max(0,ht(i)),T=mt(i),S={top:L-d.position.top,left:T-d.position.left};if(e.axis==="vertical"&&S.top===0||e.axis==="horizontal"&&S.left===0)return;const z=Math.abs(S.top)>=Math.abs(S.left)?S.top<0?"up":"down":S.left<0?"left":"right";d.position={top:L,left:T},d.directionChanged=d.direction!==z,d.delta=S,d.directionChanged===!0&&(d.direction=z,d.inflectionPoint=d.position),C("scroll",{...d})}function a(){i=ft(c,e.scrollTarget),i.addEventListener("scroll",$,Le),$(!0)}function q(){i!==void 0&&(i.removeEventListener("scroll",$,Le),i=void 0)}function $(L){if(L===!0||e.debounce===0||e.debounce==="0")t();else if(u===null){const[T,S]=e.debounce?[setTimeout(t,e.debounce),clearTimeout]:[requestAnimationFrame(t),cancelAnimationFrame];u=()=>{S(T),u=null}}}const{proxy:o}=ee();return k(()=>o.$q.lang.rtl,t),$e(()=>{c=o.$el.parentNode,a()}),he(()=>{u?.(),q()}),Object.assign(o,{trigger:$,getPosition:()=>d}),at}}),pe=["vertical","horizontal"],ke={vertical:{offset:"offsetY",scroll:"scrollTop",dir:"down",dist:"y"},horizontal:{offset:"offsetX",scroll:"scrollLeft",dir:"right",dist:"x"}},He={prevent:!0,mouse:!0,mouseAllDir:!0},Qe=e=>e>=250?50:Math.ceil(e/5),Mt=N({name:"QScrollArea",props:{...Ve,thumbStyle:Object,verticalThumbStyle:Object,horizontalThumbStyle:Object,barStyle:[Array,String,Object],verticalBarStyle:[Array,String,Object],horizontalBarStyle:[Array,String,Object],verticalOffset:{type:Array,default:[0,0]},horizontalOffset:{type:Array,default:[0,0]},contentStyle:[Array,String,Object],contentActiveStyle:[Array,String,Object],delay:{type:[String,Number],default:1e3},visible:{type:Boolean,default:null},tabindex:[String,Number],onScroll:Function},setup(e,{slots:C,emit:d}){const u=w(!1),i=w(!1),c=w(!1),t={vertical:w(0),horizontal:w(0)},a={vertical:{ref:w(null),position:w(0),size:w(0)},horizontal:{ref:w(null),position:w(0),size:w(0)}},{proxy:q}=ee(),$=We(e,q.$q);let o=null,L;const T=w(null),S=r(()=>"q-scrollarea"+($.value===!0?" q-scrollarea--dark":""));Object.assign(t,{verticalInner:r(()=>t.vertical.value-e.verticalOffset[0]-e.verticalOffset[1]),horizontalInner:r(()=>t.horizontal.value-e.horizontalOffset[0]-e.horizontalOffset[1])}),a.vertical.percentage=r(()=>{const n=a.vertical.size.value-t.vertical.value;if(n<=0)return 0;const s=j(a.vertical.position.value/n,0,1);return Math.round(s*1e4)/1e4}),a.vertical.thumbHidden=r(()=>(e.visible===null?c.value:e.visible)!==!0&&u.value===!1&&i.value===!1||a.vertical.size.value<=t.vertical.value+1),a.vertical.thumbStart=r(()=>e.verticalOffset[0]+a.vertical.percentage.value*(t.verticalInner.value-a.vertical.thumbSize.value)),a.vertical.thumbSize=r(()=>Math.round(j(t.verticalInner.value*t.verticalInner.value/a.vertical.size.value,Qe(t.verticalInner.value),t.verticalInner.value))),a.vertical.style=r(()=>({...e.thumbStyle,...e.verticalThumbStyle,top:`${a.vertical.thumbStart.value}px`,height:`${a.vertical.thumbSize.value}px`,right:`${e.horizontalOffset[1]}px`})),a.vertical.thumbClass=r(()=>"q-scrollarea__thumb q-scrollarea__thumb--v absolute-right"+(a.vertical.thumbHidden.value===!0?" q-scrollarea__thumb--invisible":"")),a.vertical.barClass=r(()=>"q-scrollarea__bar q-scrollarea__bar--v absolute-right"+(a.vertical.thumbHidden.value===!0?" q-scrollarea__bar--invisible":"")),a.horizontal.percentage=r(()=>{const n=a.horizontal.size.value-t.horizontal.value;if(n<=0)return 0;const s=j(Math.abs(a.horizontal.position.value)/n,0,1);return Math.round(s*1e4)/1e4}),a.horizontal.thumbHidden=r(()=>(e.visible===null?c.value:e.visible)!==!0&&u.value===!1&&i.value===!1||a.horizontal.size.value<=t.horizontal.value+1),a.horizontal.thumbStart=r(()=>e.horizontalOffset[0]+a.horizontal.percentage.value*(t.horizontalInner.value-a.horizontal.thumbSize.value)),a.horizontal.thumbSize=r(()=>Math.round(j(t.horizontalInner.value*t.horizontalInner.value/a.horizontal.size.value,Qe(t.horizontalInner.value),t.horizontalInner.value))),a.horizontal.style=r(()=>({...e.thumbStyle,...e.horizontalThumbStyle,[q.$q.lang.rtl===!0?"right":"left"]:`${a.horizontal.thumbStart.value}px`,width:`${a.horizontal.thumbSize.value}px`,bottom:`${e.verticalOffset[1]}px`})),a.horizontal.thumbClass=r(()=>"q-scrollarea__thumb q-scrollarea__thumb--h absolute-bottom"+(a.horizontal.thumbHidden.value===!0?" q-scrollarea__thumb--invisible":"")),a.horizontal.barClass=r(()=>"q-scrollarea__bar q-scrollarea__bar--h absolute-bottom"+(a.horizontal.thumbHidden.value===!0?" q-scrollarea__bar--invisible":""));const z=r(()=>a.vertical.thumbHidden.value===!0&&a.horizontal.thumbHidden.value===!0?e.contentStyle:e.contentActiveStyle);function Q(){const n={};return pe.forEach(s=>{const y=a[s];Object.assign(n,{[s+"Position"]:y.position.value,[s+"Percentage"]:y.percentage.value,[s+"Size"]:y.size.value,[s+"ContainerSize"]:t[s].value,[s+"ContainerInnerSize"]:t[s+"Inner"].value})}),n}const O=ot(()=>{const n=Q();n.ref=q,d("scroll",n)},0);function b(n,s,y){if(pe.includes(n)===!1){console.error("[QScrollArea]: wrong first param of setScrollPosition (vertical/horizontal)");return}(n==="vertical"?Pe:Se)(T.value,s,y)}function v({height:n,width:s}){let y=!1;t.vertical.value!==n&&(t.vertical.value=n,y=!0),t.horizontal.value!==s&&(t.horizontal.value=s,y=!0),y===!0&&M()}function P({position:n}){let s=!1;a.vertical.position.value!==n.top&&(a.vertical.position.value=n.top,s=!0),a.horizontal.position.value!==n.left&&(a.horizontal.position.value=n.left,s=!0),s===!0&&M()}function g({height:n,width:s}){a.horizontal.size.value!==s&&(a.horizontal.size.value=s,M()),a.vertical.size.value!==n&&(a.vertical.size.value=n,M())}function B(n,s){const y=a[s];if(n.isFirst===!0){if(y.thumbHidden.value===!0)return;L=y.position.value,i.value=!0}else if(i.value!==!0)return;n.isFinal===!0&&(i.value=!1);const W=ke[s],F=(y.size.value-t[s].value)/(t[s+"Inner"].value-y.thumbSize.value),R=n.distance[W.dist],te=L+(n.direction===W.dir?1:-1)*R*F;U(te,s)}function x(n,s){const y=a[s];if(y.thumbHidden.value!==!0){const W=s==="vertical"?e.verticalOffset[0]:e.horizontalOffset[0],F=n[ke[s].offset]-W,R=y.thumbStart.value-W;if(FR+y.thumbSize.value){const te=F-y.thumbSize.value/2,me=j(te/(t[s+"Inner"].value-y.thumbSize.value),0,1);U(me*Math.max(0,y.size.value-t[s].value),s)}y.ref.value!==null&&y.ref.value.dispatchEvent(new MouseEvent(n.type,n))}}function M(){u.value=!0,o!==null&&clearTimeout(o),o=setTimeout(()=>{o=null,u.value=!1},e.delay),e.onScroll!==void 0&&O()}function U(n,s){T.value[ke[s].scroll]=n}let p=null;function A(){p!==null&&clearTimeout(p),p=setTimeout(()=>{p=null,c.value=!0},q.$q.platform.is.ios?50:0)}function G(){p!==null&&(clearTimeout(p),p=null),c.value=!1}let Y=null;k(()=>q.$q.lang.rtl,n=>{T.value!==null&&Se(T.value,Math.abs(a.horizontal.position.value)*(n===!0?-1:1))}),nt(()=>{Y={top:a.vertical.position.value,left:a.horizontal.position.value}}),rt(()=>{if(Y===null)return;const n=T.value;n!==null&&(Se(n,Y.left),Pe(n,Y.top))}),he(O.cancel),Object.assign(q,{getScrollTarget:()=>T.value,getScroll:Q,getScrollPosition:()=>({top:a.vertical.position.value,left:a.horizontal.position.value}),getScrollPercentage:()=>({top:a.vertical.percentage.value,left:a.horizontal.percentage.value}),setScrollPosition:b,setScrollPercentage(n,s,y){b(n,s*(a[n].size.value-t[n].value)*(n==="horizontal"&&q.$q.lang.rtl===!0?-1:1),y)}});const K={scroll:a,thumbVertDir:[[re,n=>{B(n,"vertical")},void 0,{vertical:!0,...He}]],thumbHorizDir:[[re,n=>{B(n,"horizontal")},void 0,{horizontal:!0,...He}]],onVerticalMousedown(n){x(n,"vertical")},onHorizontalMousedown(n){x(n,"horizontal")}};return()=>_("div",{class:S.value,onMouseenter:A,onMouseleave:G},[_("div",{ref:T,class:"q-scrollarea__container scroll relative-position fit hide-scrollbar",tabindex:e.tabindex!==void 0?e.tabindex:void 0},[_("div",{class:"q-scrollarea__content absolute",style:z.value},Ae(C.default,[_(ie,{debounce:0,onResize:g})])),_(Re,{axis:"both",onScroll:P})]),_(ie,{debounce:0,onResize:v}),_(Ot,{store:K,barStyle:e.barStyle,verticalBarStyle:e.verticalBarStyle,horizontalBarStyle:e.horizontalBarStyle})])}}),Ie=150,Pt=N({name:"QDrawer",inheritAttrs:!1,props:{...gt,...Ve,side:{type:String,default:"left",validator:e=>["left","right"].includes(e)},width:{type:Number,default:300},mini:Boolean,miniToOverlay:Boolean,miniWidth:{type:Number,default:57},noMiniAnimation:Boolean,breakpoint:{type:Number,default:1023},showIfAbove:Boolean,behavior:{type:String,validator:e=>["default","desktop","mobile"].includes(e),default:"default"},bordered:Boolean,elevated:Boolean,overlay:Boolean,persistent:Boolean,noSwipeOpen:Boolean,noSwipeClose:Boolean,noSwipeBackdrop:Boolean},emits:[...bt,"onLayout","miniState"],setup(e,{slots:C,emit:d,attrs:u}){const i=ee(),{proxy:{$q:c}}=i,t=We(e,c),{preventBodyScroll:a}=wt(),{registerTimeout:q,removeTimeout:$}=yt(),o=Ce(fe,E);if(o===E)return console.error("QDrawer needs to be child of QLayout"),E;let L,T=null,S;const z=w(e.behavior==="mobile"||e.behavior!=="desktop"&&o.totalWidth.value<=e.breakpoint),Q=r(()=>e.mini===!0&&z.value!==!0),O=r(()=>Q.value===!0?e.miniWidth:e.width),b=w(e.showIfAbove===!0&&z.value===!1?!0:e.modelValue===!0),v=r(()=>e.persistent!==!0&&(z.value===!0||te.value===!0));function P(l,m){if(M(),l!==!1&&o.animate(),I(0),z.value===!0){const H=o.instances[y.value];H?.belowBreakpoint===!0&&H.hide(!1),X(1),o.isContainer.value!==!0&&a(!0)}else X(0),l!==!1&&ge(!1);q(()=>{l!==!1&&ge(!0),m!==!0&&d("show",l)},Ie)}function g(l,m){U(),l!==!1&&o.animate(),X(0),I(G.value*O.value),ye(),m!==!0?q(()=>{d("hide",l)},Ie):$()}const{show:B,hide:x}=zt({showing:b,hideOnRouteChange:v,handleShow:P,handleHide:g}),{addToHistory:M,removeFromHistory:U}=St(b,x,v),p={belowBreakpoint:z,hide:x},A=r(()=>e.side==="right"),G=r(()=>(c.lang.rtl===!0?-1:1)*(A.value===!0?1:-1)),Y=w(0),K=w(!1),n=w(!1),s=w(O.value*G.value),y=r(()=>A.value===!0?"left":"right"),W=r(()=>b.value===!0&&z.value===!1&&e.overlay===!1?e.miniToOverlay===!0?e.miniWidth:O.value:0),F=r(()=>e.overlay===!0||e.miniToOverlay===!0||o.view.value.indexOf(A.value?"R":"L")!==-1||c.platform.is.ios===!0&&o.isContainer.value===!0),R=r(()=>e.overlay===!1&&b.value===!0&&z.value===!1),te=r(()=>e.overlay===!0&&b.value===!0&&z.value===!1),me=r(()=>"fullscreen q-drawer__backdrop"+(b.value===!1&&K.value===!1?" hidden":"")),Fe=r(()=>({backgroundColor:`rgba(0,0,0,${Y.value*.4})`})),Be=r(()=>A.value===!0?o.rows.value.top[2]==="r":o.rows.value.top[0]==="l"),je=r(()=>A.value===!0?o.rows.value.bottom[2]==="r":o.rows.value.bottom[0]==="l"),Ee=r(()=>{const l={};return o.header.space===!0&&Be.value===!1&&(F.value===!0?l.top=`${o.header.offset}px`:o.header.space===!0&&(l.top=`${o.header.size}px`)),o.footer.space===!0&&je.value===!1&&(F.value===!0?l.bottom=`${o.footer.offset}px`:o.footer.space===!0&&(l.bottom=`${o.footer.size}px`)),l}),Ne=r(()=>{const l={width:`${O.value}px`,transform:`translateX(${s.value}px)`};return z.value===!0?l:Object.assign(l,Ee.value)}),Ue=r(()=>"q-drawer__content fit "+(o.isContainer.value!==!0?"scroll":"overflow-auto")),Ge=r(()=>`q-drawer q-drawer--${e.side}`+(n.value===!0?" q-drawer--mini-animate":"")+(e.bordered===!0?" q-drawer--bordered":"")+(t.value===!0?" q-drawer--dark q-dark":"")+(K.value===!0?" no-transition":b.value===!0?"":" q-layout--prevent-focus")+(z.value===!0?" fixed q-drawer--on-top q-drawer--mobile q-drawer--top-padding":` q-drawer--${Q.value===!0?"mini":"standard"}`+(F.value===!0||R.value!==!0?" fixed":"")+(e.overlay===!0||e.miniToOverlay===!0?" q-drawer--on-top":"")+(Be.value===!0?" q-drawer--top-padding":""))),Ke=r(()=>{const l=c.lang.rtl===!0?e.side:y.value;return[[re,Ze,void 0,{[l]:!0,mouse:!0}]]}),Xe=r(()=>{const l=c.lang.rtl===!0?y.value:e.side;return[[re,Oe,void 0,{[l]:!0,mouse:!0}]]}),Je=r(()=>{const l=c.lang.rtl===!0?y.value:e.side;return[[re,Oe,void 0,{[l]:!0,mouse:!0,mouseAllDir:!0}]]});function be(){et(z,e.behavior==="mobile"||e.behavior!=="desktop"&&o.totalWidth.value<=e.breakpoint)}k(z,l=>{l===!0?(L=b.value,b.value===!0&&x(!1)):e.overlay===!1&&e.behavior!=="mobile"&&L!==!1&&(b.value===!0?(I(0),X(0),ye()):B(!1))}),k(()=>e.side,(l,m)=>{o.instances[m]===p&&(o.instances[m]=void 0,o[m].space=!1,o[m].offset=0),o.instances[l]=p,o[l].size=O.value,o[l].space=R.value,o[l].offset=W.value}),k(o.totalWidth,()=>{(o.isContainer.value===!0||document.qScrollPrevented!==!0)&&be()}),k(()=>e.behavior+e.breakpoint,be),k(o.isContainer,l=>{b.value===!0&&a(l!==!0),l===!0&&be()}),k(o.scrollbarWidth,()=>{I(b.value===!0?0:void 0)}),k(W,l=>{J("offset",l)}),k(R,l=>{d("onLayout",l),J("space",l)}),k(A,()=>{I()}),k(O,l=>{I(),ze(e.miniToOverlay,l)}),k(()=>e.miniToOverlay,l=>{ze(l,O.value)}),k(()=>c.lang.rtl,()=>{I()}),k(()=>e.mini,()=>{e.noMiniAnimation||e.modelValue===!0&&(Ye(),o.animate())}),k(Q,l=>{d("miniState",l)});function I(l){l===void 0?xe(()=>{l=b.value===!0?0:O.value,I(G.value*l)}):(o.isContainer.value===!0&&A.value===!0&&(z.value===!0||Math.abs(l)===O.value)&&(l+=G.value*o.scrollbarWidth.value),s.value=l)}function X(l){Y.value=l}function ge(l){const m=l===!0?"remove":o.isContainer.value!==!0?"add":"";m!==""&&document.body.classList[m]("q-body--drawer-toggle")}function Ye(){T!==null&&clearTimeout(T),i.proxy&&i.proxy.$el&&i.proxy.$el.classList.add("q-drawer--mini-animate"),n.value=!0,T=setTimeout(()=>{T=null,n.value=!1,i?.proxy?.$el?.classList.remove("q-drawer--mini-animate")},150)}function Ze(l){if(b.value!==!1)return;const m=O.value,H=j(l.distance.x,0,m);if(l.isFinal===!0){H>=Math.min(75,m)===!0?B():(o.animate(),X(0),I(G.value*m)),K.value=!1;return}I((c.lang.rtl===!0?A.value!==!0:A.value)?Math.max(m-H,0):Math.min(0,H-m)),X(j(H/m,0,1)),l.isFirst===!0&&(K.value=!0)}function Oe(l){if(b.value!==!0)return;const m=O.value,H=l.direction===e.side,ue=(c.lang.rtl===!0?H!==!0:H)?j(l.distance.x,0,m):0;if(l.isFinal===!0){Math.abs(ue){d("onLayout",R.value),d("miniState",Q.value),L=e.showIfAbove===!0;const l=()=>{(b.value===!0?P:g)(!1,!0)};if(o.totalWidth.value!==0){xe(l);return}S=k(o.totalWidth,()=>{S(),S=void 0,b.value===!1&&e.showIfAbove===!0&&z.value===!1?B(!1):l()})}),he(()=>{S?.(),T!==null&&(clearTimeout(T),T=null),b.value===!0&&ye(),o.instances[e.side]===p&&(o.instances[e.side]=void 0,J("size",0),J("offset",0),J("space",!1))}),()=>{const l=[];z.value===!0&&(e.noSwipeOpen===!1&&l.push(Z(_("div",{key:"open",class:`q-drawer__opener fixed-${e.side}`,"aria-hidden":"true"}),Ke.value)),l.push(Me("div",{ref:"backdrop",class:me.value,style:Fe.value,"aria-hidden":"true",onClick:x},void 0,"backdrop",e.noSwipeBackdrop!==!0&&b.value===!0,()=>Je.value)));const m=Q.value===!0&&C.mini!==void 0,H=[_("div",{...u,key:""+m,class:[Ue.value,u.class]},m===!0?C.mini():de(C.default))];return e.elevated===!0&&b.value===!0&&H.push(_("div",{class:"q-layout__shadow absolute-full overflow-hidden no-pointer-events"})),l.push(Me("aside",{ref:"content",class:Ge.value,style:Ne.value},H,"contentclose",e.noSwipeClose!==!0&&z.value===!0,()=>Xe.value)),_("div",{class:"q-drawer-container"},l)}}}),Lt=N({name:"QPageContainer",setup(e,{slots:C}){const{proxy:{$q:d}}=ee(),u=Ce(fe,E);if(u===E)return console.error("QPageContainer needs to be child of QLayout"),E;De(it,!0);const i=r(()=>{const c={};return u.header.space===!0&&(c.paddingTop=`${u.header.size}px`),u.right.space===!0&&(c[`padding${d.lang.rtl===!0?"Left":"Right"}`]=`${u.right.size}px`),u.footer.space===!0&&(c.paddingBottom=`${u.footer.size}px`),u.left.space===!0&&(c[`padding${d.lang.rtl===!0?"Right":"Left"}`]=`${u.left.size}px`),c});return()=>_("div",{class:"q-page-container",style:i.value},de(C.default))}}),pt=N({name:"QLayout",props:{container:Boolean,view:{type:String,default:"hhh lpr fff",validator:e=>/^(h|l)h(h|r) lpr (f|l)f(f|r)$/.test(e.toLowerCase())},onScroll:Function,onScrollHeight:Function,onResize:Function},setup(e,{slots:C,emit:d}){const{proxy:{$q:u}}=ee(),i=w(null),c=w(u.screen.height),t=w(e.container===!0?0:u.screen.width),a=w({position:0,direction:"down",inflectionPoint:0}),q=w(0),$=w(ut.value===!0?0:we()),o=r(()=>"q-layout q-layout--"+(e.container===!0?"containerized":"standard")),L=r(()=>e.container===!1?{minHeight:u.screen.height+"px"}:null),T=r(()=>$.value!==0?{[u.lang.rtl===!0?"left":"right"]:`${$.value}px`}:null),S=r(()=>$.value!==0?{[u.lang.rtl===!0?"right":"left"]:0,[u.lang.rtl===!0?"left":"right"]:`-${$.value}px`,width:`calc(100% + ${$.value}px)`}:null);function z(g){if(e.container===!0||document.qScrollPrevented!==!0){const B={position:g.position.top,direction:g.direction,directionChanged:g.directionChanged,inflectionPoint:g.inflectionPoint.top,delta:g.delta.top};a.value=B,e.onScroll!==void 0&&d("scroll",B)}}function Q(g){const{height:B,width:x}=g;let M=!1;c.value!==B&&(M=!0,c.value=B,e.onScrollHeight!==void 0&&d("scrollHeight",B),b()),t.value!==x&&(M=!0,t.value=x),M===!0&&e.onResize!==void 0&&d("resize",g)}function O({height:g}){q.value!==g&&(q.value=g,b())}function b(){if(e.container===!0){const g=c.value>q.value?we():0;$.value!==g&&($.value=g)}}let v=null;const P={instances:{},view:r(()=>e.view),isContainer:r(()=>e.container),rootRef:i,height:c,containerHeight:q,scrollbarWidth:$,totalWidth:r(()=>t.value+$.value),rows:r(()=>{const g=e.view.toLowerCase().split(" ");return{top:g[0].split(""),middle:g[1].split(""),bottom:g[2].split("")}}),header:se({size:0,offset:0,space:!1}),right:se({size:300,offset:0,space:!1}),footer:se({size:0,offset:0,space:!1}),left:se({size:300,offset:0,space:!1}),scroll:a,animate(){v!==null?clearTimeout(v):document.body.classList.add("q-body--layout-animate"),v=setTimeout(()=>{v=null,document.body.classList.remove("q-body--layout-animate")},155)},update(g,B,x){P[g][B]=x}};if(De(fe,P),we()>0){let g=function(){M=null,U.classList.remove("hide-scrollbar")},B=function(){if(M===null){if(U.scrollHeight>u.screen.height)return;U.classList.add("hide-scrollbar")}else clearTimeout(M);M=setTimeout(g,300)},x=function(p){M!==null&&p==="remove"&&(clearTimeout(M),g()),window[`${p}EventListener`]("resize",B)},M=null;const U=document.body;k(()=>e.container!==!0?"add":"remove",x),e.container!==!0&&x("add"),st(()=>{x("remove")})}return()=>{const g=Ae(C.default,[_(Re,{onScroll:z}),_(ie,{onResize:Q})]),B=_("div",{class:o.value,style:L.value,ref:e.container===!0?void 0:i,tabindex:-1},g);return e.container===!0?_("div",{class:"q-layout-container overflow-hidden",ref:i},[_(ie,{onResize:O}),_("div",{class:"absolute-full",style:T.value},[_("div",{class:"scroll",style:S.value},[B])])]):B}}}),Ht=ct({name:"MainLayout",__name:"MainLayout",setup(e){const C=_t(),d=w(!1),u=w("auto"),i=c=>{u.value=c,c==="auto"?(localStorage.removeItem("theme"),C.dark.set("auto")):(C.dark.set(c==="dark"),localStorage.setItem("theme",c))};return $e(()=>{const c=localStorage.getItem("theme");c?(u.value=c,C.dark.set(c==="dark")):(u.value="auto",C.dark.set("auto"))}),(c,t)=>{const a=vt("router-view");return ae(),le(pt,{view:"hHh lpr lFf"},{default:h(()=>[f(Bt,{elevated:""},{default:h(()=>[f($t,null,{default:h(()=>[f(ce,{dense:"",flat:"",round:"",icon:"menu",onClick:t[0]||(t[0]=q=>d.value=!d.value)}),f(Ct,null,{default:h(()=>t[5]||(t[5]=[D("openWB",-1)])),_:1,__:[5]})]),_:1})]),_:1}),f(Pt,{modelValue:d.value,"onUpdate:modelValue":t[4]||(t[4]=q=>d.value=q),side:"left",overlay:"",elevated:"",breakpoint:500},{default:h(()=>[f(Mt,{class:"fit","horizontal-thumb-style":{opacity:"0"}},{default:h(()=>[f(qt,{padding:""},{default:h(()=>[Z((ae(),le(ne,{clickable:"",href:"/openWB/web/settings/#/Status"},{default:h(()=>[f(V,{avatar:""},{default:h(()=>[f(oe,{name:"dashboard"})]),_:1}),f(V,null,{default:h(()=>t[6]||(t[6]=[D(" Status ",-1)])),_:1,__:[6]})]),_:1})),[[ve]]),f(_e),f(qe,{header:""},{default:h(()=>t[7]||(t[7]=[D("Auswertungen",-1)])),_:1,__:[7]}),Z((ae(),le(ne,{clickable:"",href:"/openWB/web/settings/#/Logging/ChargeLog"},{default:h(()=>[f(V,{avatar:""},{default:h(()=>[f(oe,{name:"table_chart"})]),_:1}),f(V,null,{default:h(()=>t[8]||(t[8]=[D(" Ladeprotokoll ",-1)])),_:1,__:[8]})]),_:1})),[[ve]]),Z((ae(),le(ne,{clickable:"",href:"/openWB/web/settings/#/Logging/Chart"},{default:h(()=>[f(V,{avatar:""},{default:h(()=>[f(oe,{name:"area_chart"})]),_:1}),f(V,null,{default:h(()=>t[9]||(t[9]=[D(" Diagramme ",-1)])),_:1,__:[9]})]),_:1})),[[ve]]),f(_e),Z((ae(),le(ne,{clickable:"",href:"/openWB/web/settings/"},{default:h(()=>[f(V,{avatar:""},{default:h(()=>[f(oe,{name:"settings"})]),_:1}),f(V,null,{default:h(()=>t[10]||(t[10]=[D(" Einstellungen ",-1)])),_:1,__:[10]})]),_:1})),[[ve]]),f(_e),f(qe,{header:""},{default:h(()=>t[11]||(t[11]=[D("Anzeigeeinstellungen",-1)])),_:1,__:[11]}),f(ne,null,{default:h(()=>[f(V,{avatar:""},{default:h(()=>[f(oe,{name:"light_mode"})]),_:1}),f(V,null,{default:h(()=>[f(qe,null,{default:h(()=>t[12]||(t[12]=[D("Darstellungsmodus",-1)])),_:1,__:[12]})]),_:1}),f(V,{side:""},{default:h(()=>[f(Tt,{flat:""},{default:h(()=>[f(ce,{flat:"",round:"",color:u.value==="light"?"primary":"",icon:"light_mode",onClick:t[1]||(t[1]=q=>i("light")),size:"sm",disable:u.value==="light","aria-label":"Light Mode"},{default:h(()=>[f(Te,null,{default:h(()=>t[13]||(t[13]=[D("Hell",-1)])),_:1,__:[13]})]),_:1},8,["color","disable"]),f(ce,{flat:"",round:"",color:u.value==="dark"?"primary":"",icon:"dark_mode",onClick:t[2]||(t[2]=q=>i("dark")),size:"sm",disable:u.value==="dark","aria-label":"Dark Mode"},{default:h(()=>[f(Te,null,{default:h(()=>t[14]||(t[14]=[D("Dunkel",-1)])),_:1,__:[14]})]),_:1},8,["color","disable"]),f(ce,{flat:"",round:"",color:u.value==="auto"?"primary":"",icon:"devices",onClick:t[3]||(t[3]=q=>i("auto")),size:"sm",disable:u.value==="auto","aria-label":"System Mode"},{default:h(()=>[f(Te,null,{default:h(()=>t[15]||(t[15]=[D("Systemeinstellung",-1)])),_:1,__:[15]})]),_:1},8,["color","disable"])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"]),f(Lt,{class:"column flex centered-container"},{default:h(()=>[f(a)]),_:1})]),_:1})}}}),Dt=kt(Ht,[["__scopeId","data-v-562c3b02"]]);export{Dt as default}; diff --git a/packages/modules/web_themes/koala/web/assets/_plugin-vue_export-helper-BlfdpgEM.js b/packages/modules/web_themes/koala/web/assets/_plugin-vue_export-helper-CKNjr6LQ.js similarity index 99% rename from packages/modules/web_themes/koala/web/assets/_plugin-vue_export-helper-BlfdpgEM.js rename to packages/modules/web_themes/koala/web/assets/_plugin-vue_export-helper-CKNjr6LQ.js index 3de90cd398..1d19f5b07d 100644 --- a/packages/modules/web_themes/koala/web/assets/_plugin-vue_export-helper-BlfdpgEM.js +++ b/packages/modules/web_themes/koala/web/assets/_plugin-vue_export-helper-CKNjr6LQ.js @@ -1 +1 @@ -import{r as k,z as ut,m as Y,c as M,g as $,o as H,n as Re,u as R,h as T,k as q,a as b,d as U,aM as ct,aN as dt,L as je,N as oe,f as ft,aK as vt,ar as Z,U as z,w as _,P as F,_ as mt,aO as J,B as ht,aq as pt,aP as gt,aQ as bt,aR as wt,q as Ne,aS as Xe,aT as yt,aU as Ce,S as E,X as qt,O as Et,T as le,V as me,ai as re,W as Tt,$ as Le,aV as xt,i as St,aW as Ct}from"./index-C8WjSvcX.js";function Lt(){const e=k(!ut.value);return e.value===!1&&Y(()=>{e.value=!0}),{isHydrated:e}}const Ye=typeof ResizeObserver<"u",Pe=Ye===!0?{}:{style:"display:block;position:absolute;top:0;left:0;right:0;bottom:0;height:100%;width:100%;overflow:hidden;pointer-events:none;z-index:-1;",url:"about:blank"},an=M({name:"QResizeObserver",props:{debounce:{type:[String,Number],default:100}},emits:["resize"],setup(e,{emit:t}){let o=null,i,n={width:-1,height:-1};function l(s){s===!0||e.debounce===0||e.debounce==="0"?r():o===null&&(o=setTimeout(r,e.debounce))}function r(){if(o!==null&&(clearTimeout(o),o=null),i){const{offsetWidth:s,offsetHeight:u}=i;(s!==n.width||u!==n.height)&&(n={width:s,height:u},t("resize",n))}}const{proxy:a}=$();if(a.trigger=l,Ye===!0){let s;const u=d=>{i=a.$el.parentNode,i?(s=new ResizeObserver(l),s.observe(i),r()):d!==!0&&R(()=>{u(!0)})};return Y(()=>{u()}),H(()=>{o!==null&&clearTimeout(o),s!==void 0&&(s.disconnect!==void 0?s.disconnect():i&&s.unobserve(i))}),Re}else{let s=function(){o!==null&&(clearTimeout(o),o=null),m!==void 0&&(m.removeEventListener!==void 0&&m.removeEventListener("resize",l,q.passive),m=void 0)},u=function(){s(),i?.contentDocument&&(m=i.contentDocument.defaultView,m.addEventListener("resize",l,q.passive),r())};const{isHydrated:d}=Lt();let m;return Y(()=>{R(()=>{i=a.$el,i&&u()})}),H(s),()=>{if(d.value===!0)return T("object",{class:"q--avoid-card-border",style:Pe.style,tabindex:-1,type:"text/html",data:Pe.url,"aria-hidden":"true",onLoad:u})}}}}),sn=M({name:"QItemSection",props:{avatar:Boolean,thumbnail:Boolean,side:Boolean,top:Boolean,noWrap:Boolean},setup(e,{slots:t}){const o=b(()=>`q-item__section column q-item__section--${e.avatar===!0||e.side===!0||e.thumbnail===!0?"side":"main"}`+(e.top===!0?" q-item__section--top justify-start":" justify-center")+(e.avatar===!0?" q-item__section--avatar":"")+(e.thumbnail===!0?" q-item__section--thumbnail":"")+(e.noWrap===!0?" q-item__section--nowrap":""));return()=>T("div",{class:o.value},U(t.default))}}),be={dark:{type:Boolean,default:null}};function we(e,t){return b(()=>e.dark===null?t.dark.isActive:e.dark)}const un=M({name:"QItem",props:{...be,...ct,tag:{type:String,default:"div"},active:{type:Boolean,default:null},clickable:Boolean,dense:Boolean,insetLevel:Number,tabindex:[String,Number],focused:Boolean,manualFocus:Boolean},emits:["click","keyup"],setup(e,{slots:t,emit:o}){const{proxy:{$q:i}}=$(),n=we(e,i),{hasLink:l,linkAttrs:r,linkClass:a,linkTag:s,navigateOnClick:u}=dt(),d=k(null),m=k(null),g=b(()=>e.clickable===!0||l.value===!0||e.tag==="label"),c=b(()=>e.disable!==!0&&g.value===!0),f=b(()=>"q-item q-item-type row no-wrap"+(e.dense===!0?" q-item--dense":"")+(n.value===!0?" q-item--dark":"")+(l.value===!0&&e.active===null?a.value:e.active===!0?` q-item--active${e.activeClass!==void 0?` ${e.activeClass}`:""}`:"")+(e.disable===!0?" disabled":"")+(c.value===!0?" q-item--clickable q-link cursor-pointer "+(e.manualFocus===!0?"q-manual-focusable":"q-focusable q-hoverable")+(e.focused===!0?" q-manual-focusable--focused":""):"")),w=b(()=>e.insetLevel===void 0?null:{["padding"+(i.lang.rtl===!0?"Right":"Left")]:16+e.insetLevel*56+"px"});function S(v){c.value===!0&&(m.value!==null&&v.qAvoidFocus!==!0&&(v.qKeyEvent!==!0&&document.activeElement===d.value?m.value.focus():document.activeElement===m.value&&d.value.focus()),u(v))}function B(v){if(c.value===!0&&je(v,[13,32])===!0){oe(v),v.qKeyEvent=!0;const C=new MouseEvent("click",v);C.qKeyEvent=!0,d.value.dispatchEvent(C)}o("keyup",v)}function h(){const v=ft(t.default,[]);return c.value===!0&&v.unshift(T("div",{class:"q-focus-helper",tabindex:-1,ref:m})),v}return()=>{const v={ref:d,class:f.value,style:w.value,role:"listitem",onClick:S,onKeyup:B};return c.value===!0?(v.tabindex=e.tabindex||"0",Object.assign(v,r.value)):g.value===!0&&(v["aria-disabled"]="true"),T(s.value,v,h())}}}),Pt={true:"inset",item:"item-inset","item-thumbnail":"item-thumbnail-inset"},ae={xs:2,sm:4,md:8,lg:16,xl:24},cn=M({name:"QSeparator",props:{...be,spaced:[Boolean,String],inset:[Boolean,String],vertical:Boolean,color:String,size:String},setup(e){const t=$(),o=we(e,t.proxy.$q),i=b(()=>e.vertical===!0?"vertical":"horizontal"),n=b(()=>` q-separator--${i.value}`),l=b(()=>e.inset!==!1?`${n.value}-${Pt[e.inset]}`:""),r=b(()=>`q-separator${n.value}${l.value}`+(e.color!==void 0?` bg-${e.color}`:"")+(o.value===!0?" q-separator--dark":"")),a=b(()=>{const s={};if(e.size!==void 0&&(s[e.vertical===!0?"width":"height"]=e.size),e.spaced!==!1){const u=e.spaced===!0?`${ae.md}px`:e.spaced in ae?`${ae[e.spaced]}px`:e.spaced,d=e.vertical===!0?["Left","Right"]:["Top","Bottom"];s[`margin${d[0]}`]=s[`margin${d[1]}`]=u}return s});return()=>T("hr",{class:r.value,style:a.value,"aria-orientation":i.value})}}),dn=M({name:"QItemLabel",props:{overline:Boolean,caption:Boolean,header:Boolean,lines:[Number,String]},setup(e,{slots:t}){const o=b(()=>parseInt(e.lines,10)),i=b(()=>"q-item__label"+(e.overline===!0?" q-item__label--overline text-overline":"")+(e.caption===!0?" q-item__label--caption text-caption":"")+(e.header===!0?" q-item__label--header":"")+(o.value===1?" ellipsis":"")),n=b(()=>e.lines!==void 0&&o.value>1?{overflow:"hidden",display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":o.value}:null);return()=>T("div",{style:n.value,class:i.value},U(t.default))}});function ee(){if(window.getSelection!==void 0){const e=window.getSelection();e.empty!==void 0?e.empty():e.removeAllRanges!==void 0&&(e.removeAllRanges(),vt.is.mobile!==!0&&e.addRange(document.createRange()))}else document.selection!==void 0&&document.selection.empty()}const Ie={target:{type:[Boolean,String,Element],default:!0},noParentEvent:Boolean},fn={...Ie,contextMenu:Boolean};function kt({showing:e,avoidEmit:t,configureAnchorEl:o}){const{props:i,proxy:n,emit:l}=$(),r=k(null);let a=null;function s(c){return r.value===null?!1:c===void 0||c.touches===void 0||c.touches.length<=1}const u={};o===void 0&&(Object.assign(u,{hide(c){n.hide(c)},toggle(c){n.toggle(c),c.qAnchorHandled=!0},toggleKey(c){je(c,13)===!0&&u.toggle(c)},contextClick(c){n.hide(c),Z(c),R(()=>{n.show(c),c.qAnchorHandled=!0})},prevent:Z,mobileTouch(c){if(u.mobileCleanup(c),s(c)!==!0)return;n.hide(c),r.value.classList.add("non-selectable");const f=c.target;z(u,"anchor",[[f,"touchmove","mobileCleanup","passive"],[f,"touchend","mobileCleanup","passive"],[f,"touchcancel","mobileCleanup","passive"],[r.value,"contextmenu","prevent","notPassive"]]),a=setTimeout(()=>{a=null,n.show(c),c.qAnchorHandled=!0},300)},mobileCleanup(c){r.value.classList.remove("non-selectable"),a!==null&&(clearTimeout(a),a=null),e.value===!0&&c!==void 0&&ee()}}),o=function(c=i.contextMenu){if(i.noParentEvent===!0||r.value===null)return;let f;c===!0?n.$q.platform.is.mobile===!0?f=[[r.value,"touchstart","mobileTouch","passive"]]:f=[[r.value,"mousedown","hide","passive"],[r.value,"contextmenu","contextClick","notPassive"]]:f=[[r.value,"click","toggle","passive"],[r.value,"keyup","toggleKey","passive"]],z(u,"anchor",f)});function d(){F(u,"anchor")}function m(c){for(r.value=c;r.value.classList.contains("q-anchor--skip");)r.value=r.value.parentNode;o()}function g(){if(i.target===!1||i.target===""||n.$el.parentNode===null)r.value=null;else if(i.target===!0)m(n.$el.parentNode);else{let c=i.target;if(typeof i.target=="string")try{c=document.querySelector(i.target)}catch{c=void 0}c!=null?(r.value=c.$el||c,o()):(r.value=null,console.error(`Anchor: target "${i.target}" not found`))}}return _(()=>i.contextMenu,c=>{r.value!==null&&(d(),o(c))}),_(()=>i.target,()=>{r.value!==null&&d(),g()}),_(()=>i.noParentEvent,c=>{r.value!==null&&(c===!0?d():o())}),Y(()=>{g(),t!==!0&&i.modelValue===!0&&r.value===null&&l("update:modelValue",!1)}),H(()=>{a!==null&&clearTimeout(a),d()}),{anchorEl:r,canShow:s,anchorEvents:u}}function Ht(e,t){const o=k(null);let i;function n(a,s){const u=`${s!==void 0?"add":"remove"}EventListener`,d=s!==void 0?s:i;a!==window&&a[u]("scroll",d,q.passive),window[u]("scroll",d,q.passive),i=s}function l(){o.value!==null&&(n(o.value),o.value=null)}const r=_(()=>e.noParentEvent,()=>{o.value!==null&&(l(),t())});return H(r),{localScrollTarget:o,unconfigureScrollTarget:l,changeScrollEvent:n}}const Mt={modelValue:{type:Boolean,default:null},"onUpdate:modelValue":[Function,Array]},$t=["beforeShow","show","beforeHide","hide"];function Bt({showing:e,canShow:t,hideOnRouteChange:o,handleShow:i,handleHide:n,processOnMount:l}){const r=$(),{props:a,emit:s,proxy:u}=r;let d;function m(h){e.value===!0?f(h):g(h)}function g(h){if(a.disable===!0||h?.qAnchorHandled===!0||t!==void 0&&t(h)!==!0)return;const v=a["onUpdate:modelValue"]!==void 0;v===!0&&(s("update:modelValue",!0),d=h,R(()=>{d===h&&(d=void 0)})),(a.modelValue===null||v===!1)&&c(h)}function c(h){e.value!==!0&&(e.value=!0,s("beforeShow",h),i!==void 0?i(h):s("show",h))}function f(h){if(a.disable===!0)return;const v=a["onUpdate:modelValue"]!==void 0;v===!0&&(s("update:modelValue",!1),d=h,R(()=>{d===h&&(d=void 0)})),(a.modelValue===null||v===!1)&&w(h)}function w(h){e.value!==!1&&(e.value=!1,s("beforeHide",h),n!==void 0?n(h):s("hide",h))}function S(h){a.disable===!0&&h===!0?a["onUpdate:modelValue"]!==void 0&&s("update:modelValue",!1):h===!0!==e.value&&(h===!0?c:w)(d)}_(()=>a.modelValue,S),o!==void 0&&mt(r)===!0&&_(()=>u.$route.fullPath,()=>{o.value===!0&&e.value===!0&&f()}),l===!0&&Y(()=>{S(a.modelValue)});const B={show:g,hide:f,toggle:m};return Object.assign(u,B),B}let O=[],I=[];function Ue(e){I=I.filter(t=>t!==e)}function zt(e){Ue(e),I.push(e)}function ke(e){Ue(e),I.length===0&&O.length!==0&&(O[O.length-1](),O=[])}function vn(e){I.length===0?e():O.push(e)}function mn(e){O=O.filter(t=>t!==e)}const Q=[];function hn(e){return Q.find(t=>t.contentEl!==null&&t.contentEl.contains(e))}function _t(e,t){do{if(e.$options.name==="QMenu"){if(e.hide(t),e.$props.separateClosePopup===!0)return J(e)}else if(e.__qPortal===!0){const o=J(e);return o?.$options.name==="QPopupProxy"?(e.hide(t),o):e}e=J(e)}while(e!=null)}function pn(e,t,o){for(;o!==0&&e!==void 0&&e!==null;){if(e.__qPortal===!0){if(o--,e.$options.name==="QMenu"){e=_t(e,t);continue}e.hide(t)}e=J(e)}}const Wt=M({name:"QPortal",setup(e,{slots:t}){return()=>t.default()}});function At(e){for(e=e.parent;e!=null;){if(e.type.name==="QGlobalDialog")return!0;if(e.type.name==="QDialog"||e.type.name==="QMenu")return!1;e=e.parent}return!1}function Ot(e,t,o,i){const n=k(!1),l=k(!1);let r=null;const a={},s=i==="dialog"&&At(e);function u(m){if(m===!0){ke(a),l.value=!0;return}l.value=!1,n.value===!1&&(s===!1&&r===null&&(r=bt(!1,i)),n.value=!0,Q.push(e.proxy),zt(a))}function d(m){if(l.value=!1,m!==!0)return;ke(a),n.value=!1;const g=Q.indexOf(e.proxy);g!==-1&&Q.splice(g,1),r!==null&&(wt(r),r=null)}return ht(()=>{d(!0)}),e.proxy.__qPortal=!0,pt(e.proxy,"contentEl",()=>t.value),{showPortal:u,hidePortal:d,portalIsActive:n,portalIsAccessible:l,renderPortal:()=>s===!0?o():n.value===!0?[T(gt,{to:r},T(Wt,o))]:void 0}}const se={transitionShow:{type:String,default:"fade"},transitionHide:{type:String,default:"fade"},transitionDuration:{type:[String,Number],default:300}};function Vt(e,t=()=>{},o=()=>{}){return{transitionProps:b(()=>{const i=`q-transition--${e.transitionShow||t()}`,n=`q-transition--${e.transitionHide||o()}`;return{appear:!0,enterFromClass:`${i}-enter-from`,enterActiveClass:`${i}-enter-active`,enterToClass:`${i}-enter-to`,leaveFromClass:`${n}-leave-from`,leaveActiveClass:`${n}-leave-active`,leaveToClass:`${n}-leave-to`}}),transitionStyle:b(()=>`--q-transition-duration: ${e.transitionDuration}ms`)}}function Dt(){let e;const t=$();function o(){e=void 0}return Ne(o),H(o),{removeTick:o,registerTick(i){e=i,R(()=>{e===i&&(Xe(t)===!1&&e(),e=void 0)})}}}function Ft(){let e=null;const t=$();function o(){e!==null&&(clearTimeout(e),e=null)}return Ne(o),H(o),{removeTimeout:o,registerTimeout(i,n){o(),Xe(t)===!1&&(e=setTimeout(()=>{e=null,i()},n))}}}const Qt=[Element,String],Rt=[null,document,document.body,document.scrollingElement,document.documentElement];function jt(e,t){let o=yt(t);if(o===void 0){if(e==null)return window;o=e.closest(".scroll,.scroll-y,.overflow-auto")}return Rt.includes(o)?window:o}function Ke(e){return e===window?window.pageYOffset||window.scrollY||document.body.scrollTop||0:e.scrollTop}function Ge(e){return e===window?window.pageXOffset||window.scrollX||document.body.scrollLeft||0:e.scrollLeft}function Je(e,t,o=0){const i=arguments[3]===void 0?performance.now():arguments[3],n=Ke(e);if(o<=0){n!==t&&he(e,t);return}requestAnimationFrame(l=>{const r=l-i,a=n+(t-n)/Math.max(r,o)*r;he(e,a),a!==t&&Je(e,t,o-r,l)})}function Ze(e,t,o=0){const i=arguments[3]===void 0?performance.now():arguments[3],n=Ge(e);if(o<=0){n!==t&&pe(e,t);return}requestAnimationFrame(l=>{const r=l-i,a=n+(t-n)/Math.max(r,o)*r;pe(e,a),a!==t&&Ze(e,t,o-r,l)})}function he(e,t){if(e===window){window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,t);return}e.scrollTop=t}function pe(e,t){if(e===window){window.scrollTo(t,window.pageYOffset||window.scrollY||document.body.scrollTop||0);return}e.scrollLeft=t}function gn(e,t,o){if(o){Je(e,t,o);return}he(e,t)}function bn(e,t,o){if(o){Ze(e,t,o);return}pe(e,t)}let K;function Nt(){if(K!==void 0)return K;const e=document.createElement("p"),t=document.createElement("div");Ce(e,{width:"100%",height:"200px"}),Ce(t,{position:"absolute",top:"0px",left:"0px",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"}),t.appendChild(e),document.body.appendChild(t);const o=e.offsetWidth;t.style.overflow="scroll";let i=e.offsetWidth;return o===i&&(i=t.clientWidth),t.remove(),K=o-i,K}function Xt(e,t=!0){return!e||e.nodeType!==Node.ELEMENT_NODE?!1:t?e.scrollHeight>e.clientHeight&&(e.classList.contains("scroll")||e.classList.contains("overflow-auto")||["auto","scroll"].includes(window.getComputedStyle(e)["overflow-y"])):e.scrollWidth>e.clientWidth&&(e.classList.contains("scroll")||e.classList.contains("overflow-auto")||["auto","scroll"].includes(window.getComputedStyle(e)["overflow-x"]))}const{notPassiveCapture:te}=q,V=[];function ne(e){const t=e.target;if(t===void 0||t.nodeType===8||t.classList.contains("no-pointer-events")===!0)return;let o=Q.length-1;for(;o>=0;){const i=Q[o].$;if(i.type.name==="QTooltip"){o--;continue}if(i.type.name!=="QDialog")break;if(i.props.seamless!==!0)return;o--}for(let i=V.length-1;i>=0;i--){const n=V[i];if((n.anchorEl.value===null||n.anchorEl.value.contains(t)===!1)&&(t===document.body||n.innerRef.value!==null&&n.innerRef.value.contains(t)===!1))e.qClickOutside=!0,n.onClickOutside(e);else return}}function Yt(e){V.push(e),V.length===1&&(document.addEventListener("mousedown",ne,te),document.addEventListener("touchstart",ne,te))}function He(e){const t=V.findIndex(o=>o===e);t!==-1&&(V.splice(t,1),V.length===0&&(document.removeEventListener("mousedown",ne,te),document.removeEventListener("touchstart",ne,te)))}let Me,$e;function Be(e){const t=e.split(" ");return t.length!==2?!1:["top","center","bottom"].includes(t[0])!==!0?(console.error("Anchor/Self position must start with one of top/center/bottom"),!1):["left","middle","right","start","end"].includes(t[1])!==!0?(console.error("Anchor/Self position must end with one of left/middle/right/start/end"),!1):!0}function It(e){return e?!(e.length!==2||typeof e[0]!="number"||typeof e[1]!="number"):!0}const ge={"start#ltr":"left","start#rtl":"right","end#ltr":"right","end#rtl":"left"};["left","middle","right"].forEach(e=>{ge[`${e}#ltr`]=e,ge[`${e}#rtl`]=e});function ze(e,t){const o=e.split(" ");return{vertical:o[0],horizontal:ge[`${o[1]}#${t===!0?"rtl":"ltr"}`]}}function Ut(e,t){let{top:o,left:i,right:n,bottom:l,width:r,height:a}=e.getBoundingClientRect();return t!==void 0&&(o-=t[1],i-=t[0],l+=t[1],n+=t[0],r+=t[0],a+=t[1]),{top:o,bottom:l,height:a,left:i,right:n,width:r,middle:i+(n-i)/2,center:o+(l-o)/2}}function Kt(e,t,o){let{top:i,left:n}=e.getBoundingClientRect();return i+=t.top,n+=t.left,o!==void 0&&(i+=o[1],n+=o[0]),{top:i,bottom:i+1,height:1,left:n,right:n+1,width:1,middle:n,center:i}}function Gt(e,t){return{top:0,center:t/2,bottom:t,left:0,middle:e/2,right:e}}function _e(e,t,o,i){return{top:e[o.vertical]-t[i.vertical],left:e[o.horizontal]-t[i.horizontal]}}function et(e,t=0){if(e.targetEl===null||e.anchorEl===null||t>5)return;if(e.targetEl.offsetHeight===0||e.targetEl.offsetWidth===0){setTimeout(()=>{et(e,t+1)},10);return}const{targetEl:o,offset:i,anchorEl:n,anchorOrigin:l,selfOrigin:r,absoluteOffset:a,fit:s,cover:u,maxHeight:d,maxWidth:m}=e;if(E.is.ios===!0&&window.visualViewport!==void 0){const D=document.body.style,{offsetLeft:x,offsetTop:L}=window.visualViewport;x!==Me&&(D.setProperty("--q-pe-left",x+"px"),Me=x),L!==$e&&(D.setProperty("--q-pe-top",L+"px"),$e=L)}const{scrollLeft:g,scrollTop:c}=o,f=a===void 0?Ut(n,u===!0?[0,0]:i):Kt(n,a,i);Object.assign(o.style,{top:0,left:0,minWidth:null,minHeight:null,maxWidth:m,maxHeight:d,visibility:"visible"});const{offsetWidth:w,offsetHeight:S}=o,{elWidth:B,elHeight:h}=s===!0||u===!0?{elWidth:Math.max(f.width,w),elHeight:u===!0?Math.max(f.height,S):S}:{elWidth:w,elHeight:S};let v={maxWidth:m,maxHeight:d};(s===!0||u===!0)&&(v.minWidth=f.width+"px",u===!0&&(v.minHeight=f.height+"px")),Object.assign(o.style,v);const C=Gt(B,h);let p=_e(f,C,l,r);if(a===void 0||i===void 0)ue(p,f,C,l,r);else{const{top:D,left:x}=p;ue(p,f,C,l,r);let L=!1;if(p.top!==D){L=!0;const P=2*i[1];f.center=f.top-=P,f.bottom-=P+2}if(p.left!==x){L=!0;const P=2*i[0];f.middle=f.left-=P,f.right-=P+2}L===!0&&(p=_e(f,C,l,r),ue(p,f,C,l,r))}v={top:p.top+"px",left:p.left+"px"},p.maxHeight!==void 0&&(v.maxHeight=p.maxHeight+"px",f.height>p.maxHeight&&(v.minHeight=v.maxHeight)),p.maxWidth!==void 0&&(v.maxWidth=p.maxWidth+"px",f.width>p.maxWidth&&(v.minWidth=v.maxWidth)),Object.assign(o.style,v),o.scrollTop!==c&&(o.scrollTop=c),o.scrollLeft!==g&&(o.scrollLeft=g)}function ue(e,t,o,i,n){const l=o.bottom,r=o.right,a=Nt(),s=window.innerHeight-a,u=document.body.clientWidth;if(e.top<0||e.top+l>s)if(n.vertical==="center")e.top=t[i.vertical]>s/2?Math.max(0,s-l):0,e.maxHeight=Math.min(l,s);else if(t[i.vertical]>s/2){const d=Math.min(s,i.vertical==="center"?t.center:i.vertical===n.vertical?t.bottom:t.top);e.maxHeight=Math.min(l,d),e.top=Math.max(0,d-l)}else e.top=Math.max(0,i.vertical==="center"?t.center:i.vertical===n.vertical?t.top:t.bottom),e.maxHeight=Math.min(l,s-e.top);if(e.left<0||e.left+r>u)if(e.maxWidth=Math.min(r,u),n.horizontal==="middle")e.left=t[i.horizontal]>u/2?Math.max(0,u-r):0;else if(t[i.horizontal]>u/2){const d=Math.min(u,i.horizontal==="middle"?t.middle:i.horizontal===n.horizontal?t.right:t.left);e.maxWidth=Math.min(r,d),e.left=Math.max(0,d-e.maxWidth)}else e.left=Math.max(0,i.horizontal==="middle"?t.middle:i.horizontal===n.horizontal?t.left:t.right),e.maxWidth=Math.min(r,u-e.left)}const wn=M({name:"QTooltip",inheritAttrs:!1,props:{...Ie,...Mt,...se,maxHeight:{type:String,default:null},maxWidth:{type:String,default:null},transitionShow:{...se.transitionShow,default:"jump-down"},transitionHide:{...se.transitionHide,default:"jump-up"},anchor:{type:String,default:"bottom middle",validator:Be},self:{type:String,default:"top middle",validator:Be},offset:{type:Array,default:()=>[14,14],validator:It},scrollTarget:Qt,delay:{type:Number,default:0},hideDelay:{type:Number,default:0},persistent:Boolean},emits:[...$t],setup(e,{slots:t,emit:o,attrs:i}){let n,l;const r=$(),{proxy:{$q:a}}=r,s=k(null),u=k(!1),d=b(()=>ze(e.anchor,a.lang.rtl)),m=b(()=>ze(e.self,a.lang.rtl)),g=b(()=>e.persistent!==!0),{registerTick:c,removeTick:f}=Dt(),{registerTimeout:w}=Ft(),{transitionProps:S,transitionStyle:B}=Vt(e),{localScrollTarget:h,changeScrollEvent:v,unconfigureScrollTarget:C}=Ht(e,xe),{anchorEl:p,canShow:D,anchorEvents:x}=kt({showing:u,configureAnchorEl:rt}),{show:L,hide:P}=Bt({showing:u,canShow:D,handleShow:nt,handleHide:ot,hideOnRouteChange:g,processOnMount:!0});Object.assign(x,{delayShow:it,delayHide:lt});const{showPortal:qe,hidePortal:Ee,renderPortal:tt}=Ot(r,s,st,"tooltip");if(a.platform.is.mobile===!0){const y={anchorEl:p,innerRef:s,onClickOutside(W){return P(W),W.target.classList.contains("q-dialog__backdrop")&&oe(W),!0}},ie=b(()=>e.modelValue===null&&e.persistent!==!0&&u.value===!0);_(ie,W=>{(W===!0?Yt:He)(y)}),H(()=>{He(y)})}function nt(y){qe(),c(()=>{l=new MutationObserver(()=>j()),l.observe(s.value,{attributes:!1,childList:!0,characterData:!0,subtree:!0}),j(),xe()}),n===void 0&&(n=_(()=>a.screen.width+"|"+a.screen.height+"|"+e.self+"|"+e.anchor+"|"+a.lang.rtl,j)),w(()=>{qe(!0),o("show",y)},e.transitionDuration)}function ot(y){f(),Ee(),Te(),w(()=>{Ee(!0),o("hide",y)},e.transitionDuration)}function Te(){l!==void 0&&(l.disconnect(),l=void 0),n!==void 0&&(n(),n=void 0),C(),F(x,"tooltipTemp")}function j(){et({targetEl:s.value,offset:e.offset,anchorEl:p.value,anchorOrigin:d.value,selfOrigin:m.value,maxHeight:e.maxHeight,maxWidth:e.maxWidth})}function it(y){if(a.platform.is.mobile===!0){ee(),document.body.classList.add("non-selectable");const ie=p.value,W=["touchmove","touchcancel","touchend","click"].map(Se=>[ie,Se,"delayHide","passiveCapture"]);z(x,"tooltipTemp",W)}w(()=>{L(y)},e.delay)}function lt(y){a.platform.is.mobile===!0&&(F(x,"tooltipTemp"),ee(),setTimeout(()=>{document.body.classList.remove("non-selectable")},10)),w(()=>{P(y)},e.hideDelay)}function rt(){if(e.noParentEvent===!0||p.value===null)return;const y=a.platform.is.mobile===!0?[[p.value,"touchstart","delayShow","passive"]]:[[p.value,"mouseenter","delayShow","passive"],[p.value,"mouseleave","delayHide","passive"]];z(x,"anchor",y)}function xe(){if(p.value!==null||e.scrollTarget!==void 0){h.value=jt(p.value,e.scrollTarget);const y=e.noParentEvent===!0?j:P;v(h.value,y)}}function at(){return u.value===!0?T("div",{...i,ref:s,class:["q-tooltip q-tooltip--style q-position-engine no-pointer-events",i.class],style:[i.style,B.value],role:"tooltip"},U(t.default)):null}function st(){return T(qt,S.value,at)}return H(Te),Object.assign(r.proxy,{updatePosition:j}),tt}}),yn=M({name:"QBtnGroup",props:{unelevated:Boolean,outline:Boolean,flat:Boolean,rounded:Boolean,square:Boolean,push:Boolean,stretch:Boolean,glossy:Boolean,spread:Boolean},setup(e,{slots:t}){const o=b(()=>{const i=["unelevated","outline","flat","rounded","square","push","stretch","glossy"].filter(n=>e[n]===!0).map(n=>`q-btn-group--${n}`).join(" ");return`q-btn-group row no-wrap${i.length!==0?" "+i:""}`+(e.spread===!0?" q-btn-group--spread":" inline")});return()=>T("div",{class:o.value},U(t.default))}}),Jt=["ul","ol"],qn=M({name:"QList",props:{...be,bordered:Boolean,dense:Boolean,separator:Boolean,padding:Boolean,tag:{type:String,default:"div"}},setup(e,{slots:t}){const o=$(),i=we(e,o.proxy.$q),n=b(()=>Jt.includes(e.tag)?null:"list"),l=b(()=>"q-list"+(e.bordered===!0?" q-list--bordered":"")+(e.dense===!0?" q-list--dense":"")+(e.separator===!0?" q-list--separator":"")+(i.value===!0?" q-list--dark":"")+(e.padding===!0?" q-list--padding":""));return()=>T(e.tag,{class:l.value,role:n.value},U(t.default))}}),ye={left:!0,right:!0,up:!0,down:!0,horizontal:!0,vertical:!0},Zt=Object.keys(ye);ye.all=!0;function We(e){const t={};for(const o of Zt)e[o]===!0&&(t[o]=!0);return Object.keys(t).length===0?ye:(t.horizontal===!0?t.left=t.right=!0:t.left===!0&&t.right===!0&&(t.horizontal=!0),t.vertical===!0?t.up=t.down=!0:t.up===!0&&t.down===!0&&(t.vertical=!0),t.horizontal===!0&&t.vertical===!0&&(t.all=!0),t)}const en=["INPUT","TEXTAREA"];function Ae(e,t){return t.event===void 0&&e.target!==void 0&&e.target.draggable!==!0&&typeof t.handler=="function"&&en.includes(e.target.nodeName.toUpperCase())===!1&&(e.qClonedBy===void 0||e.qClonedBy.indexOf(t.uid)===-1)}function ce(e,t,o){const i=me(e);let n,l=i.left-t.event.x,r=i.top-t.event.y,a=Math.abs(l),s=Math.abs(r);const u=t.direction;u.horizontal===!0&&u.vertical!==!0?n=l<0?"left":"right":u.horizontal!==!0&&u.vertical===!0?n=r<0?"up":"down":u.up===!0&&r<0?(n="up",a>s&&(u.left===!0&&l<0?n="left":u.right===!0&&l>0&&(n="right"))):u.down===!0&&r>0?(n="down",a>s&&(u.left===!0&&l<0?n="left":u.right===!0&&l>0&&(n="right"))):u.left===!0&&l<0?(n="left",a0&&(n="down"))):u.right===!0&&l>0&&(n="right",a0&&(n="down")));let d=!1;if(n===void 0&&o===!1){if(t.event.isFirst===!0||t.event.lastDir===void 0)return{};n=t.event.lastDir,d=!0,n==="left"||n==="right"?(i.left-=l,a=0,l=0):(i.top-=r,s=0,r=0)}return{synthetic:d,payload:{evt:e,touch:t.event.mouse!==!0,mouse:t.event.mouse===!0,position:i,direction:n,isFirst:t.event.isFirst,isFinal:o===!0,duration:Date.now()-t.event.time,distance:{x:a,y:s},offset:{x:l,y:r},delta:{x:i.left-t.event.lastX,y:i.top-t.event.lastY}}}}let tn=0;const En=Et({name:"touch-pan",beforeMount(e,{value:t,modifiers:o}){if(o.mouse!==!0&&E.has.touch!==!0)return;function i(l,r){o.mouse===!0&&r===!0?oe(l):(o.stop===!0&&re(l),o.prevent===!0&&Z(l))}const n={uid:"qvtp_"+tn++,handler:t,modifiers:o,direction:We(o),noop:Re,mouseStart(l){Ae(l,n)&&Tt(l)&&(z(n,"temp",[[document,"mousemove","move","notPassiveCapture"],[document,"mouseup","end","passiveCapture"]]),n.start(l,!0))},touchStart(l){if(Ae(l,n)){const r=l.target;z(n,"temp",[[r,"touchmove","move","notPassiveCapture"],[r,"touchcancel","end","passiveCapture"],[r,"touchend","end","passiveCapture"]]),n.start(l)}},start(l,r){if(E.is.firefox===!0&&le(e,!0),n.lastEvt=l,r===!0||o.stop===!0){if(n.direction.all!==!0&&(r!==!0||n.modifiers.mouseAllDir!==!0&&n.modifiers.mousealldir!==!0)){const u=l.type.indexOf("mouse")!==-1?new MouseEvent(l.type,l):new TouchEvent(l.type,l);l.defaultPrevented===!0&&Z(u),l.cancelBubble===!0&&re(u),Object.assign(u,{qKeyEvent:l.qKeyEvent,qClickOutside:l.qClickOutside,qAnchorHandled:l.qAnchorHandled,qClonedBy:l.qClonedBy===void 0?[n.uid]:l.qClonedBy.concat(n.uid)}),n.initialEvent={target:l.target,event:u}}re(l)}const{left:a,top:s}=me(l);n.event={x:a,y:s,time:Date.now(),mouse:r===!0,detected:!1,isFirst:!0,isFinal:!1,lastX:a,lastY:s}},move(l){if(n.event===void 0)return;const r=me(l),a=r.left-n.event.x,s=r.top-n.event.y;if(a===0&&s===0)return;n.lastEvt=l;const u=n.event.mouse===!0,d=()=>{i(l,u);let c;o.preserveCursor!==!0&&o.preservecursor!==!0&&(c=document.documentElement.style.cursor||"",document.documentElement.style.cursor="grabbing"),u===!0&&document.body.classList.add("no-pointer-events--children"),document.body.classList.add("non-selectable"),ee(),n.styleCleanup=f=>{if(n.styleCleanup=void 0,c!==void 0&&(document.documentElement.style.cursor=c),document.body.classList.remove("non-selectable"),u===!0){const w=()=>{document.body.classList.remove("no-pointer-events--children")};f!==void 0?setTimeout(()=>{w(),f()},50):w()}else f!==void 0&&f()}};if(n.event.detected===!0){n.event.isFirst!==!0&&i(l,n.event.mouse);const{payload:c,synthetic:f}=ce(l,n,!1);c!==void 0&&(n.handler(c)===!1?n.end(l):(n.styleCleanup===void 0&&n.event.isFirst===!0&&d(),n.event.lastX=c.position.left,n.event.lastY=c.position.top,n.event.lastDir=f===!0?void 0:c.direction,n.event.isFirst=!1));return}if(n.direction.all===!0||u===!0&&(n.modifiers.mouseAllDir===!0||n.modifiers.mousealldir===!0)){d(),n.event.detected=!0,n.move(l);return}const m=Math.abs(a),g=Math.abs(s);m!==g&&(n.direction.horizontal===!0&&m>g||n.direction.vertical===!0&&m0||n.direction.left===!0&&m>g&&a<0||n.direction.right===!0&&m>g&&a>0?(n.event.detected=!0,n.move(l)):n.end(l,!0))},end(l,r){if(n.event!==void 0){if(F(n,"temp"),E.is.firefox===!0&&le(e,!1),r===!0)n.styleCleanup?.(),n.event.detected!==!0&&n.initialEvent!==void 0&&n.initialEvent.target.dispatchEvent(n.initialEvent.event);else if(n.event.detected===!0){n.event.isFirst===!0&&n.handler(ce(l===void 0?n.lastEvt:l,n).payload);const{payload:a}=ce(l===void 0?n.lastEvt:l,n,!0),s=()=>{n.handler(a)};n.styleCleanup!==void 0?n.styleCleanup(s):s()}n.event=void 0,n.initialEvent=void 0,n.lastEvt=void 0}}};if(e.__qtouchpan=n,o.mouse===!0){const l=o.mouseCapture===!0||o.mousecapture===!0?"Capture":"";z(n,"main",[[e,"mousedown","mouseStart",`passive${l}`]])}E.has.touch===!0&&z(n,"main",[[e,"touchstart","touchStart",`passive${o.capture===!0?"Capture":""}`],[e,"touchmove","noop","notPassiveCapture"]])},updated(e,t){const o=e.__qtouchpan;o!==void 0&&(t.oldValue!==t.value&&(typeof value!="function"&&o.end(),o.handler=t.value),o.direction=We(t.modifiers))},beforeUnmount(e){const t=e.__qtouchpan;t!==void 0&&(t.event!==void 0&&t.end(),F(t,"main"),F(t,"temp"),E.is.firefox===!0&&le(e,!1),t.styleCleanup?.(),delete e.__qtouchpan)}});function Tn(e,t,o){return o<=t?t:Math.min(o,Math.max(t,e))}function xn(e,t,o){if(o<=t)return t;const i=o-t+1;let n=t+(e-t)%i;return n{e.value===!0&&n()}),{removeFromHistory:n,addToHistory(){i={condition:()=>o.value===!0,handler:t},Le.add(i)}}}let N=0,de,fe,X,ve=!1,Oe,Ve,De,A=null;function nn(e){on(e)&&oe(e)}function on(e){if(e.target===document.body||e.target.classList.contains("q-layout__backdrop"))return!0;const t=xt(e),o=e.shiftKey&&!e.deltaX,i=!o&&Math.abs(e.deltaX)<=Math.abs(e.deltaY),n=o||i?e.deltaY:e.deltaX;for(let l=0;l0&&r.scrollTop+r.clientHeight===r.scrollHeight:n<0&&r.scrollLeft===0?!0:n>0&&r.scrollLeft+r.clientWidth===r.scrollWidth}return!0}function Fe(e){e.target===document&&(document.scrollingElement.scrollTop=document.scrollingElement.scrollTop)}function G(e){ve!==!0&&(ve=!0,requestAnimationFrame(()=>{ve=!1;const{height:t}=e.target,{clientHeight:o,scrollTop:i}=document.scrollingElement;(X===void 0||t!==window.innerHeight)&&(X=o-t,document.scrollingElement.scrollTop=i),i>X&&(document.scrollingElement.scrollTop-=Math.ceil((i-X)/8))}))}function Qe(e){const t=document.body,o=window.visualViewport!==void 0;if(e==="add"){const{overflowY:i,overflowX:n}=window.getComputedStyle(t);de=Ge(window),fe=Ke(window),Oe=t.style.left,Ve=t.style.top,De=window.location.href,t.style.left=`-${de}px`,t.style.top=`-${fe}px`,n!=="hidden"&&(n==="scroll"||t.scrollWidth>window.innerWidth)&&t.classList.add("q-body--force-scrollbar-x"),i!=="hidden"&&(i==="scroll"||t.scrollHeight>window.innerHeight)&&t.classList.add("q-body--force-scrollbar-y"),t.classList.add("q-body--prevent-scroll"),document.qScrollPrevented=!0,E.is.ios===!0&&(o===!0?(window.scrollTo(0,0),window.visualViewport.addEventListener("resize",G,q.passiveCapture),window.visualViewport.addEventListener("scroll",G,q.passiveCapture),window.scrollTo(0,0)):window.addEventListener("scroll",Fe,q.passiveCapture))}E.is.desktop===!0&&E.is.mac===!0&&window[`${e}EventListener`]("wheel",nn,q.notPassive),e==="remove"&&(E.is.ios===!0&&(o===!0?(window.visualViewport.removeEventListener("resize",G,q.passiveCapture),window.visualViewport.removeEventListener("scroll",G,q.passiveCapture)):window.removeEventListener("scroll",Fe,q.passiveCapture)),t.classList.remove("q-body--prevent-scroll"),t.classList.remove("q-body--force-scrollbar-x"),t.classList.remove("q-body--force-scrollbar-y"),document.qScrollPrevented=!1,t.style.left=Oe,t.style.top=Ve,window.location.href===De&&window.scrollTo(de,fe),X=void 0)}function ln(e){let t="add";if(e===!0){if(N++,A!==null){clearTimeout(A),A=null;return}if(N>1)return}else{if(N===0||(N--,N>0))return;if(t="remove",E.is.ios===!0&&E.is.nativeMobile===!0){A!==null&&clearTimeout(A),A=setTimeout(()=>{Qe(t),A=null},100);return}}Qe(t)}function Cn(){let e;return{preventBodyScroll(t){t!==e&&(e!==void 0||t===!0)&&(e=t,ln(t))}}}function Ln(){return St(Ct)}const Pn=(e,t)=>{const o=e.__vccOpts||e;for(const[i,n]of t)o[i]=n;return o};export{ee as A,Ae as B,It as C,Be as D,se as E,fn as F,Vt as G,Ht as H,kt as I,Ot as J,ze as K,Yt as L,He as M,_t as N,et as O,vn as P,an as Q,mn as R,xn as S,En as T,hn as U,pn as V,Pn as _,Ke as a,Ge as b,we as c,Tn as d,bn as e,gn as f,jt as g,$t as h,Mt as i,Ft as j,Bt as k,Sn as l,Cn as m,Nt as n,Ln as o,qn as p,un as q,sn as r,Qt as s,cn as t,be as u,dn as v,yn as w,wn as x,Dt as y,We as z}; +import{r as k,z as ut,m as Y,c as M,g as $,o as H,n as Re,u as R,h as T,k as q,a as b,d as U,aM as ct,aN as dt,L as je,N as oe,f as ft,aK as vt,ar as Z,U as z,w as _,P as F,_ as mt,aO as J,B as ht,aq as pt,aP as gt,aQ as bt,aR as wt,q as Ne,aS as Xe,aT as yt,aU as Ce,S as E,X as qt,O as Et,T as le,V as me,ai as re,W as Tt,$ as Le,aV as xt,i as St,aW as Ct}from"./index-DCrt5iVV.js";function Lt(){const e=k(!ut.value);return e.value===!1&&Y(()=>{e.value=!0}),{isHydrated:e}}const Ye=typeof ResizeObserver<"u",Pe=Ye===!0?{}:{style:"display:block;position:absolute;top:0;left:0;right:0;bottom:0;height:100%;width:100%;overflow:hidden;pointer-events:none;z-index:-1;",url:"about:blank"},an=M({name:"QResizeObserver",props:{debounce:{type:[String,Number],default:100}},emits:["resize"],setup(e,{emit:t}){let o=null,i,n={width:-1,height:-1};function l(s){s===!0||e.debounce===0||e.debounce==="0"?r():o===null&&(o=setTimeout(r,e.debounce))}function r(){if(o!==null&&(clearTimeout(o),o=null),i){const{offsetWidth:s,offsetHeight:u}=i;(s!==n.width||u!==n.height)&&(n={width:s,height:u},t("resize",n))}}const{proxy:a}=$();if(a.trigger=l,Ye===!0){let s;const u=d=>{i=a.$el.parentNode,i?(s=new ResizeObserver(l),s.observe(i),r()):d!==!0&&R(()=>{u(!0)})};return Y(()=>{u()}),H(()=>{o!==null&&clearTimeout(o),s!==void 0&&(s.disconnect!==void 0?s.disconnect():i&&s.unobserve(i))}),Re}else{let s=function(){o!==null&&(clearTimeout(o),o=null),m!==void 0&&(m.removeEventListener!==void 0&&m.removeEventListener("resize",l,q.passive),m=void 0)},u=function(){s(),i?.contentDocument&&(m=i.contentDocument.defaultView,m.addEventListener("resize",l,q.passive),r())};const{isHydrated:d}=Lt();let m;return Y(()=>{R(()=>{i=a.$el,i&&u()})}),H(s),()=>{if(d.value===!0)return T("object",{class:"q--avoid-card-border",style:Pe.style,tabindex:-1,type:"text/html",data:Pe.url,"aria-hidden":"true",onLoad:u})}}}}),sn=M({name:"QItemSection",props:{avatar:Boolean,thumbnail:Boolean,side:Boolean,top:Boolean,noWrap:Boolean},setup(e,{slots:t}){const o=b(()=>`q-item__section column q-item__section--${e.avatar===!0||e.side===!0||e.thumbnail===!0?"side":"main"}`+(e.top===!0?" q-item__section--top justify-start":" justify-center")+(e.avatar===!0?" q-item__section--avatar":"")+(e.thumbnail===!0?" q-item__section--thumbnail":"")+(e.noWrap===!0?" q-item__section--nowrap":""));return()=>T("div",{class:o.value},U(t.default))}}),be={dark:{type:Boolean,default:null}};function we(e,t){return b(()=>e.dark===null?t.dark.isActive:e.dark)}const un=M({name:"QItem",props:{...be,...ct,tag:{type:String,default:"div"},active:{type:Boolean,default:null},clickable:Boolean,dense:Boolean,insetLevel:Number,tabindex:[String,Number],focused:Boolean,manualFocus:Boolean},emits:["click","keyup"],setup(e,{slots:t,emit:o}){const{proxy:{$q:i}}=$(),n=we(e,i),{hasLink:l,linkAttrs:r,linkClass:a,linkTag:s,navigateOnClick:u}=dt(),d=k(null),m=k(null),g=b(()=>e.clickable===!0||l.value===!0||e.tag==="label"),c=b(()=>e.disable!==!0&&g.value===!0),f=b(()=>"q-item q-item-type row no-wrap"+(e.dense===!0?" q-item--dense":"")+(n.value===!0?" q-item--dark":"")+(l.value===!0&&e.active===null?a.value:e.active===!0?` q-item--active${e.activeClass!==void 0?` ${e.activeClass}`:""}`:"")+(e.disable===!0?" disabled":"")+(c.value===!0?" q-item--clickable q-link cursor-pointer "+(e.manualFocus===!0?"q-manual-focusable":"q-focusable q-hoverable")+(e.focused===!0?" q-manual-focusable--focused":""):"")),w=b(()=>e.insetLevel===void 0?null:{["padding"+(i.lang.rtl===!0?"Right":"Left")]:16+e.insetLevel*56+"px"});function S(v){c.value===!0&&(m.value!==null&&v.qAvoidFocus!==!0&&(v.qKeyEvent!==!0&&document.activeElement===d.value?m.value.focus():document.activeElement===m.value&&d.value.focus()),u(v))}function B(v){if(c.value===!0&&je(v,[13,32])===!0){oe(v),v.qKeyEvent=!0;const C=new MouseEvent("click",v);C.qKeyEvent=!0,d.value.dispatchEvent(C)}o("keyup",v)}function h(){const v=ft(t.default,[]);return c.value===!0&&v.unshift(T("div",{class:"q-focus-helper",tabindex:-1,ref:m})),v}return()=>{const v={ref:d,class:f.value,style:w.value,role:"listitem",onClick:S,onKeyup:B};return c.value===!0?(v.tabindex=e.tabindex||"0",Object.assign(v,r.value)):g.value===!0&&(v["aria-disabled"]="true"),T(s.value,v,h())}}}),Pt={true:"inset",item:"item-inset","item-thumbnail":"item-thumbnail-inset"},ae={xs:2,sm:4,md:8,lg:16,xl:24},cn=M({name:"QSeparator",props:{...be,spaced:[Boolean,String],inset:[Boolean,String],vertical:Boolean,color:String,size:String},setup(e){const t=$(),o=we(e,t.proxy.$q),i=b(()=>e.vertical===!0?"vertical":"horizontal"),n=b(()=>` q-separator--${i.value}`),l=b(()=>e.inset!==!1?`${n.value}-${Pt[e.inset]}`:""),r=b(()=>`q-separator${n.value}${l.value}`+(e.color!==void 0?` bg-${e.color}`:"")+(o.value===!0?" q-separator--dark":"")),a=b(()=>{const s={};if(e.size!==void 0&&(s[e.vertical===!0?"width":"height"]=e.size),e.spaced!==!1){const u=e.spaced===!0?`${ae.md}px`:e.spaced in ae?`${ae[e.spaced]}px`:e.spaced,d=e.vertical===!0?["Left","Right"]:["Top","Bottom"];s[`margin${d[0]}`]=s[`margin${d[1]}`]=u}return s});return()=>T("hr",{class:r.value,style:a.value,"aria-orientation":i.value})}}),dn=M({name:"QItemLabel",props:{overline:Boolean,caption:Boolean,header:Boolean,lines:[Number,String]},setup(e,{slots:t}){const o=b(()=>parseInt(e.lines,10)),i=b(()=>"q-item__label"+(e.overline===!0?" q-item__label--overline text-overline":"")+(e.caption===!0?" q-item__label--caption text-caption":"")+(e.header===!0?" q-item__label--header":"")+(o.value===1?" ellipsis":"")),n=b(()=>e.lines!==void 0&&o.value>1?{overflow:"hidden",display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":o.value}:null);return()=>T("div",{style:n.value,class:i.value},U(t.default))}});function ee(){if(window.getSelection!==void 0){const e=window.getSelection();e.empty!==void 0?e.empty():e.removeAllRanges!==void 0&&(e.removeAllRanges(),vt.is.mobile!==!0&&e.addRange(document.createRange()))}else document.selection!==void 0&&document.selection.empty()}const Ie={target:{type:[Boolean,String,Element],default:!0},noParentEvent:Boolean},fn={...Ie,contextMenu:Boolean};function kt({showing:e,avoidEmit:t,configureAnchorEl:o}){const{props:i,proxy:n,emit:l}=$(),r=k(null);let a=null;function s(c){return r.value===null?!1:c===void 0||c.touches===void 0||c.touches.length<=1}const u={};o===void 0&&(Object.assign(u,{hide(c){n.hide(c)},toggle(c){n.toggle(c),c.qAnchorHandled=!0},toggleKey(c){je(c,13)===!0&&u.toggle(c)},contextClick(c){n.hide(c),Z(c),R(()=>{n.show(c),c.qAnchorHandled=!0})},prevent:Z,mobileTouch(c){if(u.mobileCleanup(c),s(c)!==!0)return;n.hide(c),r.value.classList.add("non-selectable");const f=c.target;z(u,"anchor",[[f,"touchmove","mobileCleanup","passive"],[f,"touchend","mobileCleanup","passive"],[f,"touchcancel","mobileCleanup","passive"],[r.value,"contextmenu","prevent","notPassive"]]),a=setTimeout(()=>{a=null,n.show(c),c.qAnchorHandled=!0},300)},mobileCleanup(c){r.value.classList.remove("non-selectable"),a!==null&&(clearTimeout(a),a=null),e.value===!0&&c!==void 0&&ee()}}),o=function(c=i.contextMenu){if(i.noParentEvent===!0||r.value===null)return;let f;c===!0?n.$q.platform.is.mobile===!0?f=[[r.value,"touchstart","mobileTouch","passive"]]:f=[[r.value,"mousedown","hide","passive"],[r.value,"contextmenu","contextClick","notPassive"]]:f=[[r.value,"click","toggle","passive"],[r.value,"keyup","toggleKey","passive"]],z(u,"anchor",f)});function d(){F(u,"anchor")}function m(c){for(r.value=c;r.value.classList.contains("q-anchor--skip");)r.value=r.value.parentNode;o()}function g(){if(i.target===!1||i.target===""||n.$el.parentNode===null)r.value=null;else if(i.target===!0)m(n.$el.parentNode);else{let c=i.target;if(typeof i.target=="string")try{c=document.querySelector(i.target)}catch{c=void 0}c!=null?(r.value=c.$el||c,o()):(r.value=null,console.error(`Anchor: target "${i.target}" not found`))}}return _(()=>i.contextMenu,c=>{r.value!==null&&(d(),o(c))}),_(()=>i.target,()=>{r.value!==null&&d(),g()}),_(()=>i.noParentEvent,c=>{r.value!==null&&(c===!0?d():o())}),Y(()=>{g(),t!==!0&&i.modelValue===!0&&r.value===null&&l("update:modelValue",!1)}),H(()=>{a!==null&&clearTimeout(a),d()}),{anchorEl:r,canShow:s,anchorEvents:u}}function Ht(e,t){const o=k(null);let i;function n(a,s){const u=`${s!==void 0?"add":"remove"}EventListener`,d=s!==void 0?s:i;a!==window&&a[u]("scroll",d,q.passive),window[u]("scroll",d,q.passive),i=s}function l(){o.value!==null&&(n(o.value),o.value=null)}const r=_(()=>e.noParentEvent,()=>{o.value!==null&&(l(),t())});return H(r),{localScrollTarget:o,unconfigureScrollTarget:l,changeScrollEvent:n}}const Mt={modelValue:{type:Boolean,default:null},"onUpdate:modelValue":[Function,Array]},$t=["beforeShow","show","beforeHide","hide"];function Bt({showing:e,canShow:t,hideOnRouteChange:o,handleShow:i,handleHide:n,processOnMount:l}){const r=$(),{props:a,emit:s,proxy:u}=r;let d;function m(h){e.value===!0?f(h):g(h)}function g(h){if(a.disable===!0||h?.qAnchorHandled===!0||t!==void 0&&t(h)!==!0)return;const v=a["onUpdate:modelValue"]!==void 0;v===!0&&(s("update:modelValue",!0),d=h,R(()=>{d===h&&(d=void 0)})),(a.modelValue===null||v===!1)&&c(h)}function c(h){e.value!==!0&&(e.value=!0,s("beforeShow",h),i!==void 0?i(h):s("show",h))}function f(h){if(a.disable===!0)return;const v=a["onUpdate:modelValue"]!==void 0;v===!0&&(s("update:modelValue",!1),d=h,R(()=>{d===h&&(d=void 0)})),(a.modelValue===null||v===!1)&&w(h)}function w(h){e.value!==!1&&(e.value=!1,s("beforeHide",h),n!==void 0?n(h):s("hide",h))}function S(h){a.disable===!0&&h===!0?a["onUpdate:modelValue"]!==void 0&&s("update:modelValue",!1):h===!0!==e.value&&(h===!0?c:w)(d)}_(()=>a.modelValue,S),o!==void 0&&mt(r)===!0&&_(()=>u.$route.fullPath,()=>{o.value===!0&&e.value===!0&&f()}),l===!0&&Y(()=>{S(a.modelValue)});const B={show:g,hide:f,toggle:m};return Object.assign(u,B),B}let O=[],I=[];function Ue(e){I=I.filter(t=>t!==e)}function zt(e){Ue(e),I.push(e)}function ke(e){Ue(e),I.length===0&&O.length!==0&&(O[O.length-1](),O=[])}function vn(e){I.length===0?e():O.push(e)}function mn(e){O=O.filter(t=>t!==e)}const Q=[];function hn(e){return Q.find(t=>t.contentEl!==null&&t.contentEl.contains(e))}function _t(e,t){do{if(e.$options.name==="QMenu"){if(e.hide(t),e.$props.separateClosePopup===!0)return J(e)}else if(e.__qPortal===!0){const o=J(e);return o?.$options.name==="QPopupProxy"?(e.hide(t),o):e}e=J(e)}while(e!=null)}function pn(e,t,o){for(;o!==0&&e!==void 0&&e!==null;){if(e.__qPortal===!0){if(o--,e.$options.name==="QMenu"){e=_t(e,t);continue}e.hide(t)}e=J(e)}}const Wt=M({name:"QPortal",setup(e,{slots:t}){return()=>t.default()}});function At(e){for(e=e.parent;e!=null;){if(e.type.name==="QGlobalDialog")return!0;if(e.type.name==="QDialog"||e.type.name==="QMenu")return!1;e=e.parent}return!1}function Ot(e,t,o,i){const n=k(!1),l=k(!1);let r=null;const a={},s=i==="dialog"&&At(e);function u(m){if(m===!0){ke(a),l.value=!0;return}l.value=!1,n.value===!1&&(s===!1&&r===null&&(r=bt(!1,i)),n.value=!0,Q.push(e.proxy),zt(a))}function d(m){if(l.value=!1,m!==!0)return;ke(a),n.value=!1;const g=Q.indexOf(e.proxy);g!==-1&&Q.splice(g,1),r!==null&&(wt(r),r=null)}return ht(()=>{d(!0)}),e.proxy.__qPortal=!0,pt(e.proxy,"contentEl",()=>t.value),{showPortal:u,hidePortal:d,portalIsActive:n,portalIsAccessible:l,renderPortal:()=>s===!0?o():n.value===!0?[T(gt,{to:r},T(Wt,o))]:void 0}}const se={transitionShow:{type:String,default:"fade"},transitionHide:{type:String,default:"fade"},transitionDuration:{type:[String,Number],default:300}};function Vt(e,t=()=>{},o=()=>{}){return{transitionProps:b(()=>{const i=`q-transition--${e.transitionShow||t()}`,n=`q-transition--${e.transitionHide||o()}`;return{appear:!0,enterFromClass:`${i}-enter-from`,enterActiveClass:`${i}-enter-active`,enterToClass:`${i}-enter-to`,leaveFromClass:`${n}-leave-from`,leaveActiveClass:`${n}-leave-active`,leaveToClass:`${n}-leave-to`}}),transitionStyle:b(()=>`--q-transition-duration: ${e.transitionDuration}ms`)}}function Dt(){let e;const t=$();function o(){e=void 0}return Ne(o),H(o),{removeTick:o,registerTick(i){e=i,R(()=>{e===i&&(Xe(t)===!1&&e(),e=void 0)})}}}function Ft(){let e=null;const t=$();function o(){e!==null&&(clearTimeout(e),e=null)}return Ne(o),H(o),{removeTimeout:o,registerTimeout(i,n){o(),Xe(t)===!1&&(e=setTimeout(()=>{e=null,i()},n))}}}const Qt=[Element,String],Rt=[null,document,document.body,document.scrollingElement,document.documentElement];function jt(e,t){let o=yt(t);if(o===void 0){if(e==null)return window;o=e.closest(".scroll,.scroll-y,.overflow-auto")}return Rt.includes(o)?window:o}function Ke(e){return e===window?window.pageYOffset||window.scrollY||document.body.scrollTop||0:e.scrollTop}function Ge(e){return e===window?window.pageXOffset||window.scrollX||document.body.scrollLeft||0:e.scrollLeft}function Je(e,t,o=0){const i=arguments[3]===void 0?performance.now():arguments[3],n=Ke(e);if(o<=0){n!==t&&he(e,t);return}requestAnimationFrame(l=>{const r=l-i,a=n+(t-n)/Math.max(r,o)*r;he(e,a),a!==t&&Je(e,t,o-r,l)})}function Ze(e,t,o=0){const i=arguments[3]===void 0?performance.now():arguments[3],n=Ge(e);if(o<=0){n!==t&&pe(e,t);return}requestAnimationFrame(l=>{const r=l-i,a=n+(t-n)/Math.max(r,o)*r;pe(e,a),a!==t&&Ze(e,t,o-r,l)})}function he(e,t){if(e===window){window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,t);return}e.scrollTop=t}function pe(e,t){if(e===window){window.scrollTo(t,window.pageYOffset||window.scrollY||document.body.scrollTop||0);return}e.scrollLeft=t}function gn(e,t,o){if(o){Je(e,t,o);return}he(e,t)}function bn(e,t,o){if(o){Ze(e,t,o);return}pe(e,t)}let K;function Nt(){if(K!==void 0)return K;const e=document.createElement("p"),t=document.createElement("div");Ce(e,{width:"100%",height:"200px"}),Ce(t,{position:"absolute",top:"0px",left:"0px",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"}),t.appendChild(e),document.body.appendChild(t);const o=e.offsetWidth;t.style.overflow="scroll";let i=e.offsetWidth;return o===i&&(i=t.clientWidth),t.remove(),K=o-i,K}function Xt(e,t=!0){return!e||e.nodeType!==Node.ELEMENT_NODE?!1:t?e.scrollHeight>e.clientHeight&&(e.classList.contains("scroll")||e.classList.contains("overflow-auto")||["auto","scroll"].includes(window.getComputedStyle(e)["overflow-y"])):e.scrollWidth>e.clientWidth&&(e.classList.contains("scroll")||e.classList.contains("overflow-auto")||["auto","scroll"].includes(window.getComputedStyle(e)["overflow-x"]))}const{notPassiveCapture:te}=q,V=[];function ne(e){const t=e.target;if(t===void 0||t.nodeType===8||t.classList.contains("no-pointer-events")===!0)return;let o=Q.length-1;for(;o>=0;){const i=Q[o].$;if(i.type.name==="QTooltip"){o--;continue}if(i.type.name!=="QDialog")break;if(i.props.seamless!==!0)return;o--}for(let i=V.length-1;i>=0;i--){const n=V[i];if((n.anchorEl.value===null||n.anchorEl.value.contains(t)===!1)&&(t===document.body||n.innerRef.value!==null&&n.innerRef.value.contains(t)===!1))e.qClickOutside=!0,n.onClickOutside(e);else return}}function Yt(e){V.push(e),V.length===1&&(document.addEventListener("mousedown",ne,te),document.addEventListener("touchstart",ne,te))}function He(e){const t=V.findIndex(o=>o===e);t!==-1&&(V.splice(t,1),V.length===0&&(document.removeEventListener("mousedown",ne,te),document.removeEventListener("touchstart",ne,te)))}let Me,$e;function Be(e){const t=e.split(" ");return t.length!==2?!1:["top","center","bottom"].includes(t[0])!==!0?(console.error("Anchor/Self position must start with one of top/center/bottom"),!1):["left","middle","right","start","end"].includes(t[1])!==!0?(console.error("Anchor/Self position must end with one of left/middle/right/start/end"),!1):!0}function It(e){return e?!(e.length!==2||typeof e[0]!="number"||typeof e[1]!="number"):!0}const ge={"start#ltr":"left","start#rtl":"right","end#ltr":"right","end#rtl":"left"};["left","middle","right"].forEach(e=>{ge[`${e}#ltr`]=e,ge[`${e}#rtl`]=e});function ze(e,t){const o=e.split(" ");return{vertical:o[0],horizontal:ge[`${o[1]}#${t===!0?"rtl":"ltr"}`]}}function Ut(e,t){let{top:o,left:i,right:n,bottom:l,width:r,height:a}=e.getBoundingClientRect();return t!==void 0&&(o-=t[1],i-=t[0],l+=t[1],n+=t[0],r+=t[0],a+=t[1]),{top:o,bottom:l,height:a,left:i,right:n,width:r,middle:i+(n-i)/2,center:o+(l-o)/2}}function Kt(e,t,o){let{top:i,left:n}=e.getBoundingClientRect();return i+=t.top,n+=t.left,o!==void 0&&(i+=o[1],n+=o[0]),{top:i,bottom:i+1,height:1,left:n,right:n+1,width:1,middle:n,center:i}}function Gt(e,t){return{top:0,center:t/2,bottom:t,left:0,middle:e/2,right:e}}function _e(e,t,o,i){return{top:e[o.vertical]-t[i.vertical],left:e[o.horizontal]-t[i.horizontal]}}function et(e,t=0){if(e.targetEl===null||e.anchorEl===null||t>5)return;if(e.targetEl.offsetHeight===0||e.targetEl.offsetWidth===0){setTimeout(()=>{et(e,t+1)},10);return}const{targetEl:o,offset:i,anchorEl:n,anchorOrigin:l,selfOrigin:r,absoluteOffset:a,fit:s,cover:u,maxHeight:d,maxWidth:m}=e;if(E.is.ios===!0&&window.visualViewport!==void 0){const D=document.body.style,{offsetLeft:x,offsetTop:L}=window.visualViewport;x!==Me&&(D.setProperty("--q-pe-left",x+"px"),Me=x),L!==$e&&(D.setProperty("--q-pe-top",L+"px"),$e=L)}const{scrollLeft:g,scrollTop:c}=o,f=a===void 0?Ut(n,u===!0?[0,0]:i):Kt(n,a,i);Object.assign(o.style,{top:0,left:0,minWidth:null,minHeight:null,maxWidth:m,maxHeight:d,visibility:"visible"});const{offsetWidth:w,offsetHeight:S}=o,{elWidth:B,elHeight:h}=s===!0||u===!0?{elWidth:Math.max(f.width,w),elHeight:u===!0?Math.max(f.height,S):S}:{elWidth:w,elHeight:S};let v={maxWidth:m,maxHeight:d};(s===!0||u===!0)&&(v.minWidth=f.width+"px",u===!0&&(v.minHeight=f.height+"px")),Object.assign(o.style,v);const C=Gt(B,h);let p=_e(f,C,l,r);if(a===void 0||i===void 0)ue(p,f,C,l,r);else{const{top:D,left:x}=p;ue(p,f,C,l,r);let L=!1;if(p.top!==D){L=!0;const P=2*i[1];f.center=f.top-=P,f.bottom-=P+2}if(p.left!==x){L=!0;const P=2*i[0];f.middle=f.left-=P,f.right-=P+2}L===!0&&(p=_e(f,C,l,r),ue(p,f,C,l,r))}v={top:p.top+"px",left:p.left+"px"},p.maxHeight!==void 0&&(v.maxHeight=p.maxHeight+"px",f.height>p.maxHeight&&(v.minHeight=v.maxHeight)),p.maxWidth!==void 0&&(v.maxWidth=p.maxWidth+"px",f.width>p.maxWidth&&(v.minWidth=v.maxWidth)),Object.assign(o.style,v),o.scrollTop!==c&&(o.scrollTop=c),o.scrollLeft!==g&&(o.scrollLeft=g)}function ue(e,t,o,i,n){const l=o.bottom,r=o.right,a=Nt(),s=window.innerHeight-a,u=document.body.clientWidth;if(e.top<0||e.top+l>s)if(n.vertical==="center")e.top=t[i.vertical]>s/2?Math.max(0,s-l):0,e.maxHeight=Math.min(l,s);else if(t[i.vertical]>s/2){const d=Math.min(s,i.vertical==="center"?t.center:i.vertical===n.vertical?t.bottom:t.top);e.maxHeight=Math.min(l,d),e.top=Math.max(0,d-l)}else e.top=Math.max(0,i.vertical==="center"?t.center:i.vertical===n.vertical?t.top:t.bottom),e.maxHeight=Math.min(l,s-e.top);if(e.left<0||e.left+r>u)if(e.maxWidth=Math.min(r,u),n.horizontal==="middle")e.left=t[i.horizontal]>u/2?Math.max(0,u-r):0;else if(t[i.horizontal]>u/2){const d=Math.min(u,i.horizontal==="middle"?t.middle:i.horizontal===n.horizontal?t.right:t.left);e.maxWidth=Math.min(r,d),e.left=Math.max(0,d-e.maxWidth)}else e.left=Math.max(0,i.horizontal==="middle"?t.middle:i.horizontal===n.horizontal?t.left:t.right),e.maxWidth=Math.min(r,u-e.left)}const wn=M({name:"QTooltip",inheritAttrs:!1,props:{...Ie,...Mt,...se,maxHeight:{type:String,default:null},maxWidth:{type:String,default:null},transitionShow:{...se.transitionShow,default:"jump-down"},transitionHide:{...se.transitionHide,default:"jump-up"},anchor:{type:String,default:"bottom middle",validator:Be},self:{type:String,default:"top middle",validator:Be},offset:{type:Array,default:()=>[14,14],validator:It},scrollTarget:Qt,delay:{type:Number,default:0},hideDelay:{type:Number,default:0},persistent:Boolean},emits:[...$t],setup(e,{slots:t,emit:o,attrs:i}){let n,l;const r=$(),{proxy:{$q:a}}=r,s=k(null),u=k(!1),d=b(()=>ze(e.anchor,a.lang.rtl)),m=b(()=>ze(e.self,a.lang.rtl)),g=b(()=>e.persistent!==!0),{registerTick:c,removeTick:f}=Dt(),{registerTimeout:w}=Ft(),{transitionProps:S,transitionStyle:B}=Vt(e),{localScrollTarget:h,changeScrollEvent:v,unconfigureScrollTarget:C}=Ht(e,xe),{anchorEl:p,canShow:D,anchorEvents:x}=kt({showing:u,configureAnchorEl:rt}),{show:L,hide:P}=Bt({showing:u,canShow:D,handleShow:nt,handleHide:ot,hideOnRouteChange:g,processOnMount:!0});Object.assign(x,{delayShow:it,delayHide:lt});const{showPortal:qe,hidePortal:Ee,renderPortal:tt}=Ot(r,s,st,"tooltip");if(a.platform.is.mobile===!0){const y={anchorEl:p,innerRef:s,onClickOutside(W){return P(W),W.target.classList.contains("q-dialog__backdrop")&&oe(W),!0}},ie=b(()=>e.modelValue===null&&e.persistent!==!0&&u.value===!0);_(ie,W=>{(W===!0?Yt:He)(y)}),H(()=>{He(y)})}function nt(y){qe(),c(()=>{l=new MutationObserver(()=>j()),l.observe(s.value,{attributes:!1,childList:!0,characterData:!0,subtree:!0}),j(),xe()}),n===void 0&&(n=_(()=>a.screen.width+"|"+a.screen.height+"|"+e.self+"|"+e.anchor+"|"+a.lang.rtl,j)),w(()=>{qe(!0),o("show",y)},e.transitionDuration)}function ot(y){f(),Ee(),Te(),w(()=>{Ee(!0),o("hide",y)},e.transitionDuration)}function Te(){l!==void 0&&(l.disconnect(),l=void 0),n!==void 0&&(n(),n=void 0),C(),F(x,"tooltipTemp")}function j(){et({targetEl:s.value,offset:e.offset,anchorEl:p.value,anchorOrigin:d.value,selfOrigin:m.value,maxHeight:e.maxHeight,maxWidth:e.maxWidth})}function it(y){if(a.platform.is.mobile===!0){ee(),document.body.classList.add("non-selectable");const ie=p.value,W=["touchmove","touchcancel","touchend","click"].map(Se=>[ie,Se,"delayHide","passiveCapture"]);z(x,"tooltipTemp",W)}w(()=>{L(y)},e.delay)}function lt(y){a.platform.is.mobile===!0&&(F(x,"tooltipTemp"),ee(),setTimeout(()=>{document.body.classList.remove("non-selectable")},10)),w(()=>{P(y)},e.hideDelay)}function rt(){if(e.noParentEvent===!0||p.value===null)return;const y=a.platform.is.mobile===!0?[[p.value,"touchstart","delayShow","passive"]]:[[p.value,"mouseenter","delayShow","passive"],[p.value,"mouseleave","delayHide","passive"]];z(x,"anchor",y)}function xe(){if(p.value!==null||e.scrollTarget!==void 0){h.value=jt(p.value,e.scrollTarget);const y=e.noParentEvent===!0?j:P;v(h.value,y)}}function at(){return u.value===!0?T("div",{...i,ref:s,class:["q-tooltip q-tooltip--style q-position-engine no-pointer-events",i.class],style:[i.style,B.value],role:"tooltip"},U(t.default)):null}function st(){return T(qt,S.value,at)}return H(Te),Object.assign(r.proxy,{updatePosition:j}),tt}}),yn=M({name:"QBtnGroup",props:{unelevated:Boolean,outline:Boolean,flat:Boolean,rounded:Boolean,square:Boolean,push:Boolean,stretch:Boolean,glossy:Boolean,spread:Boolean},setup(e,{slots:t}){const o=b(()=>{const i=["unelevated","outline","flat","rounded","square","push","stretch","glossy"].filter(n=>e[n]===!0).map(n=>`q-btn-group--${n}`).join(" ");return`q-btn-group row no-wrap${i.length!==0?" "+i:""}`+(e.spread===!0?" q-btn-group--spread":" inline")});return()=>T("div",{class:o.value},U(t.default))}}),Jt=["ul","ol"],qn=M({name:"QList",props:{...be,bordered:Boolean,dense:Boolean,separator:Boolean,padding:Boolean,tag:{type:String,default:"div"}},setup(e,{slots:t}){const o=$(),i=we(e,o.proxy.$q),n=b(()=>Jt.includes(e.tag)?null:"list"),l=b(()=>"q-list"+(e.bordered===!0?" q-list--bordered":"")+(e.dense===!0?" q-list--dense":"")+(e.separator===!0?" q-list--separator":"")+(i.value===!0?" q-list--dark":"")+(e.padding===!0?" q-list--padding":""));return()=>T(e.tag,{class:l.value,role:n.value},U(t.default))}}),ye={left:!0,right:!0,up:!0,down:!0,horizontal:!0,vertical:!0},Zt=Object.keys(ye);ye.all=!0;function We(e){const t={};for(const o of Zt)e[o]===!0&&(t[o]=!0);return Object.keys(t).length===0?ye:(t.horizontal===!0?t.left=t.right=!0:t.left===!0&&t.right===!0&&(t.horizontal=!0),t.vertical===!0?t.up=t.down=!0:t.up===!0&&t.down===!0&&(t.vertical=!0),t.horizontal===!0&&t.vertical===!0&&(t.all=!0),t)}const en=["INPUT","TEXTAREA"];function Ae(e,t){return t.event===void 0&&e.target!==void 0&&e.target.draggable!==!0&&typeof t.handler=="function"&&en.includes(e.target.nodeName.toUpperCase())===!1&&(e.qClonedBy===void 0||e.qClonedBy.indexOf(t.uid)===-1)}function ce(e,t,o){const i=me(e);let n,l=i.left-t.event.x,r=i.top-t.event.y,a=Math.abs(l),s=Math.abs(r);const u=t.direction;u.horizontal===!0&&u.vertical!==!0?n=l<0?"left":"right":u.horizontal!==!0&&u.vertical===!0?n=r<0?"up":"down":u.up===!0&&r<0?(n="up",a>s&&(u.left===!0&&l<0?n="left":u.right===!0&&l>0&&(n="right"))):u.down===!0&&r>0?(n="down",a>s&&(u.left===!0&&l<0?n="left":u.right===!0&&l>0&&(n="right"))):u.left===!0&&l<0?(n="left",a0&&(n="down"))):u.right===!0&&l>0&&(n="right",a0&&(n="down")));let d=!1;if(n===void 0&&o===!1){if(t.event.isFirst===!0||t.event.lastDir===void 0)return{};n=t.event.lastDir,d=!0,n==="left"||n==="right"?(i.left-=l,a=0,l=0):(i.top-=r,s=0,r=0)}return{synthetic:d,payload:{evt:e,touch:t.event.mouse!==!0,mouse:t.event.mouse===!0,position:i,direction:n,isFirst:t.event.isFirst,isFinal:o===!0,duration:Date.now()-t.event.time,distance:{x:a,y:s},offset:{x:l,y:r},delta:{x:i.left-t.event.lastX,y:i.top-t.event.lastY}}}}let tn=0;const En=Et({name:"touch-pan",beforeMount(e,{value:t,modifiers:o}){if(o.mouse!==!0&&E.has.touch!==!0)return;function i(l,r){o.mouse===!0&&r===!0?oe(l):(o.stop===!0&&re(l),o.prevent===!0&&Z(l))}const n={uid:"qvtp_"+tn++,handler:t,modifiers:o,direction:We(o),noop:Re,mouseStart(l){Ae(l,n)&&Tt(l)&&(z(n,"temp",[[document,"mousemove","move","notPassiveCapture"],[document,"mouseup","end","passiveCapture"]]),n.start(l,!0))},touchStart(l){if(Ae(l,n)){const r=l.target;z(n,"temp",[[r,"touchmove","move","notPassiveCapture"],[r,"touchcancel","end","passiveCapture"],[r,"touchend","end","passiveCapture"]]),n.start(l)}},start(l,r){if(E.is.firefox===!0&&le(e,!0),n.lastEvt=l,r===!0||o.stop===!0){if(n.direction.all!==!0&&(r!==!0||n.modifiers.mouseAllDir!==!0&&n.modifiers.mousealldir!==!0)){const u=l.type.indexOf("mouse")!==-1?new MouseEvent(l.type,l):new TouchEvent(l.type,l);l.defaultPrevented===!0&&Z(u),l.cancelBubble===!0&&re(u),Object.assign(u,{qKeyEvent:l.qKeyEvent,qClickOutside:l.qClickOutside,qAnchorHandled:l.qAnchorHandled,qClonedBy:l.qClonedBy===void 0?[n.uid]:l.qClonedBy.concat(n.uid)}),n.initialEvent={target:l.target,event:u}}re(l)}const{left:a,top:s}=me(l);n.event={x:a,y:s,time:Date.now(),mouse:r===!0,detected:!1,isFirst:!0,isFinal:!1,lastX:a,lastY:s}},move(l){if(n.event===void 0)return;const r=me(l),a=r.left-n.event.x,s=r.top-n.event.y;if(a===0&&s===0)return;n.lastEvt=l;const u=n.event.mouse===!0,d=()=>{i(l,u);let c;o.preserveCursor!==!0&&o.preservecursor!==!0&&(c=document.documentElement.style.cursor||"",document.documentElement.style.cursor="grabbing"),u===!0&&document.body.classList.add("no-pointer-events--children"),document.body.classList.add("non-selectable"),ee(),n.styleCleanup=f=>{if(n.styleCleanup=void 0,c!==void 0&&(document.documentElement.style.cursor=c),document.body.classList.remove("non-selectable"),u===!0){const w=()=>{document.body.classList.remove("no-pointer-events--children")};f!==void 0?setTimeout(()=>{w(),f()},50):w()}else f!==void 0&&f()}};if(n.event.detected===!0){n.event.isFirst!==!0&&i(l,n.event.mouse);const{payload:c,synthetic:f}=ce(l,n,!1);c!==void 0&&(n.handler(c)===!1?n.end(l):(n.styleCleanup===void 0&&n.event.isFirst===!0&&d(),n.event.lastX=c.position.left,n.event.lastY=c.position.top,n.event.lastDir=f===!0?void 0:c.direction,n.event.isFirst=!1));return}if(n.direction.all===!0||u===!0&&(n.modifiers.mouseAllDir===!0||n.modifiers.mousealldir===!0)){d(),n.event.detected=!0,n.move(l);return}const m=Math.abs(a),g=Math.abs(s);m!==g&&(n.direction.horizontal===!0&&m>g||n.direction.vertical===!0&&m0||n.direction.left===!0&&m>g&&a<0||n.direction.right===!0&&m>g&&a>0?(n.event.detected=!0,n.move(l)):n.end(l,!0))},end(l,r){if(n.event!==void 0){if(F(n,"temp"),E.is.firefox===!0&&le(e,!1),r===!0)n.styleCleanup?.(),n.event.detected!==!0&&n.initialEvent!==void 0&&n.initialEvent.target.dispatchEvent(n.initialEvent.event);else if(n.event.detected===!0){n.event.isFirst===!0&&n.handler(ce(l===void 0?n.lastEvt:l,n).payload);const{payload:a}=ce(l===void 0?n.lastEvt:l,n,!0),s=()=>{n.handler(a)};n.styleCleanup!==void 0?n.styleCleanup(s):s()}n.event=void 0,n.initialEvent=void 0,n.lastEvt=void 0}}};if(e.__qtouchpan=n,o.mouse===!0){const l=o.mouseCapture===!0||o.mousecapture===!0?"Capture":"";z(n,"main",[[e,"mousedown","mouseStart",`passive${l}`]])}E.has.touch===!0&&z(n,"main",[[e,"touchstart","touchStart",`passive${o.capture===!0?"Capture":""}`],[e,"touchmove","noop","notPassiveCapture"]])},updated(e,t){const o=e.__qtouchpan;o!==void 0&&(t.oldValue!==t.value&&(typeof value!="function"&&o.end(),o.handler=t.value),o.direction=We(t.modifiers))},beforeUnmount(e){const t=e.__qtouchpan;t!==void 0&&(t.event!==void 0&&t.end(),F(t,"main"),F(t,"temp"),E.is.firefox===!0&&le(e,!1),t.styleCleanup?.(),delete e.__qtouchpan)}});function Tn(e,t,o){return o<=t?t:Math.min(o,Math.max(t,e))}function xn(e,t,o){if(o<=t)return t;const i=o-t+1;let n=t+(e-t)%i;return n{e.value===!0&&n()}),{removeFromHistory:n,addToHistory(){i={condition:()=>o.value===!0,handler:t},Le.add(i)}}}let N=0,de,fe,X,ve=!1,Oe,Ve,De,A=null;function nn(e){on(e)&&oe(e)}function on(e){if(e.target===document.body||e.target.classList.contains("q-layout__backdrop"))return!0;const t=xt(e),o=e.shiftKey&&!e.deltaX,i=!o&&Math.abs(e.deltaX)<=Math.abs(e.deltaY),n=o||i?e.deltaY:e.deltaX;for(let l=0;l0&&r.scrollTop+r.clientHeight===r.scrollHeight:n<0&&r.scrollLeft===0?!0:n>0&&r.scrollLeft+r.clientWidth===r.scrollWidth}return!0}function Fe(e){e.target===document&&(document.scrollingElement.scrollTop=document.scrollingElement.scrollTop)}function G(e){ve!==!0&&(ve=!0,requestAnimationFrame(()=>{ve=!1;const{height:t}=e.target,{clientHeight:o,scrollTop:i}=document.scrollingElement;(X===void 0||t!==window.innerHeight)&&(X=o-t,document.scrollingElement.scrollTop=i),i>X&&(document.scrollingElement.scrollTop-=Math.ceil((i-X)/8))}))}function Qe(e){const t=document.body,o=window.visualViewport!==void 0;if(e==="add"){const{overflowY:i,overflowX:n}=window.getComputedStyle(t);de=Ge(window),fe=Ke(window),Oe=t.style.left,Ve=t.style.top,De=window.location.href,t.style.left=`-${de}px`,t.style.top=`-${fe}px`,n!=="hidden"&&(n==="scroll"||t.scrollWidth>window.innerWidth)&&t.classList.add("q-body--force-scrollbar-x"),i!=="hidden"&&(i==="scroll"||t.scrollHeight>window.innerHeight)&&t.classList.add("q-body--force-scrollbar-y"),t.classList.add("q-body--prevent-scroll"),document.qScrollPrevented=!0,E.is.ios===!0&&(o===!0?(window.scrollTo(0,0),window.visualViewport.addEventListener("resize",G,q.passiveCapture),window.visualViewport.addEventListener("scroll",G,q.passiveCapture),window.scrollTo(0,0)):window.addEventListener("scroll",Fe,q.passiveCapture))}E.is.desktop===!0&&E.is.mac===!0&&window[`${e}EventListener`]("wheel",nn,q.notPassive),e==="remove"&&(E.is.ios===!0&&(o===!0?(window.visualViewport.removeEventListener("resize",G,q.passiveCapture),window.visualViewport.removeEventListener("scroll",G,q.passiveCapture)):window.removeEventListener("scroll",Fe,q.passiveCapture)),t.classList.remove("q-body--prevent-scroll"),t.classList.remove("q-body--force-scrollbar-x"),t.classList.remove("q-body--force-scrollbar-y"),document.qScrollPrevented=!1,t.style.left=Oe,t.style.top=Ve,window.location.href===De&&window.scrollTo(de,fe),X=void 0)}function ln(e){let t="add";if(e===!0){if(N++,A!==null){clearTimeout(A),A=null;return}if(N>1)return}else{if(N===0||(N--,N>0))return;if(t="remove",E.is.ios===!0&&E.is.nativeMobile===!0){A!==null&&clearTimeout(A),A=setTimeout(()=>{Qe(t),A=null},100);return}}Qe(t)}function Cn(){let e;return{preventBodyScroll(t){t!==e&&(e!==void 0||t===!0)&&(e=t,ln(t))}}}function Ln(){return St(Ct)}const Pn=(e,t)=>{const o=e.__vccOpts||e;for(const[i,n]of t)o[i]=n;return o};export{ee as A,Ae as B,It as C,Be as D,se as E,fn as F,Vt as G,Ht as H,kt as I,Ot as J,ze as K,Yt as L,He as M,_t as N,et as O,vn as P,an as Q,mn as R,xn as S,En as T,hn as U,pn as V,Pn as _,Ke as a,Ge as b,we as c,Tn as d,bn as e,gn as f,jt as g,$t as h,Mt as i,Ft as j,Bt as k,Sn as l,Cn as m,Nt as n,Ln as o,qn as p,un as q,sn as r,Qt as s,cn as t,be as u,dn as v,yn as w,wn as x,Dt as y,We as z}; diff --git a/packages/modules/web_themes/koala/web/assets/index-C8WjSvcX.js b/packages/modules/web_themes/koala/web/assets/index-C8WjSvcX.js deleted file mode 100644 index e0c689fe69..0000000000 --- a/packages/modules/web_themes/koala/web/assets/index-C8WjSvcX.js +++ /dev/null @@ -1,26 +0,0 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/MainLayout-VAvdP3Hi.js","assets/_plugin-vue_export-helper-BlfdpgEM.js","assets/MainLayout-DZ5KVho1.css","assets/IndexPage-BRDFxiis.js","assets/mqtt-store-Gw-bQn7d.js","assets/IndexPage-xATA1vTl.css","assets/store-init-DuB0sdr_.js"])))=>i.map(i=>d[i]); -const Oa=(function(){const t=typeof document<"u"&&document.createElement("link").relList;return t&&t.supports&&t.supports("modulepreload")?"modulepreload":"preload"})(),Ma=function(e){return"/openWB/web/themes/koala/"+e},si={},Wn=function(t,n,r){let s=Promise.resolve();if(n&&n.length>0){let o=function(u){return Promise.all(u.map(c=>Promise.resolve(c).then(f=>({status:"fulfilled",value:f}),f=>({status:"rejected",reason:f}))))};document.getElementsByTagName("link");const l=document.querySelector("meta[property=csp-nonce]"),a=l?.nonce||l?.getAttribute("nonce");s=o(n.map(u=>{if(u=Ma(u),u in si)return;si[u]=!0;const c=u.endsWith(".css"),f=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${u}"]${f}`))return;const d=document.createElement("link");if(d.rel=c?"stylesheet":Oa,c||(d.as="script"),d.crossOrigin="",d.href=u,a&&d.setAttribute("nonce",a),document.head.appendChild(d),c)return new Promise((g,v)=>{d.addEventListener("load",g),d.addEventListener("error",()=>v(new Error(`Unable to preload CSS for ${u}`)))})}))}function i(o){const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=o,window.dispatchEvent(l),!l.defaultPrevented)throw o}return s.then(o=>{for(const l of o||[])l.status==="rejected"&&i(l.reason);return t().catch(i)})};/** -* @vue/shared v3.5.18 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**//*! #__NO_SIDE_EFFECTS__ */function As(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const ae={},Yt=[],qe=()=>{},La=()=>!1,yr=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Os=e=>e.startsWith("onUpdate:"),me=Object.assign,Ms=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},$a=Object.prototype.hasOwnProperty,oe=(e,t)=>$a.call(e,t),W=Array.isArray,Zt=e=>In(e)==="[object Map]",xo=e=>In(e)==="[object Set]",Na=e=>In(e)==="[object RegExp]",Y=e=>typeof e=="function",de=e=>typeof e=="string",ct=e=>typeof e=="symbol",he=e=>e!==null&&typeof e=="object",So=e=>(he(e)||Y(e))&&Y(e.then)&&Y(e.catch),Eo=Object.prototype.toString,In=e=>Eo.call(e),Ia=e=>In(e).slice(8,-1),Co=e=>In(e)==="[object Object]",Ls=e=>de(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,gn=As(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),_r=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},ja=/-(\w)/g,Fe=_r(e=>e.replace(ja,(t,n)=>n?n.toUpperCase():"")),Fa=/\B([A-Z])/g,Ft=_r(e=>e.replace(Fa,"-$1").toLowerCase()),br=_r(e=>e.charAt(0).toUpperCase()+e.slice(1)),Fr=_r(e=>e?`on${br(e)}`:""),xt=(e,t)=>!Object.is(e,t),mn=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},Da=e=>{const t=parseFloat(e);return isNaN(t)?e:t},qa=e=>{const t=de(e)?Number(e):NaN;return isNaN(t)?e:t};let ii;const wr=()=>ii||(ii=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function xr(e){if(W(e)){const t={};for(let n=0;n{if(n){const r=n.split(Ha);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function Sr(e){let t="";if(de(e))t=e;else if(W(e))for(let n=0;n!!(e&&e.__v_isRef===!0),Wa=e=>de(e)?e:e==null?"":W(e)||he(e)&&(e.toString===Eo||!Y(e.toString))?Po(e)?Wa(e.value):JSON.stringify(e,To,2):String(e),To=(e,t)=>Po(t)?To(e,t.value):Zt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,s],i)=>(n[Dr(r,i)+" =>"]=s,n),{})}:xo(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Dr(n))}:ct(t)?Dr(t):he(t)&&!W(t)&&!Co(t)?String(t):t,Dr=(e,t="")=>{var n;return ct(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};function Ga(e){return e==null?"initial":typeof e=="string"?e===""?" ":e:String(e)}/** -* @vue/reactivity v3.5.18 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/let we;class ko{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=we,!t&&we&&(this.index=(we.scopes||(we.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t0&&--this._on===0&&(we=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let n,r;for(n=0,r=this.effects.length;n0)return;if(yn){let t=yn;for(yn=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;vn;){let t=vn;for(vn=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(r){e||(e=r)}t=n}}if(e)throw e}function No(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Io(e){let t,n=e.depsTail,r=n;for(;r;){const s=r.prevDep;r.version===-1?(r===n&&(n=s),Is(r),Ja(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=s}e.deps=t,e.depsTail=n}function ls(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(jo(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function jo(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Rn)||(e.globalVersion=Rn,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!ls(e))))return;e.flags|=2;const t=e.dep,n=fe,r=Be;fe=e,Be=!0;try{No(e);const s=e.fn(e._value);(t.version===0||xt(s,e._value))&&(e.flags|=128,e._value=s,t.version++)}catch(s){throw t.version++,s}finally{fe=n,Be=r,Io(e),e.flags&=-3}}function Is(e,t=!1){const{dep:n,prevSub:r,nextSub:s}=e;if(r&&(r.nextSub=s,e.prevSub=void 0),s&&(s.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let i=n.computed.deps;i;i=i.nextDep)Is(i,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Ja(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Be=!0;const Fo=[];function ot(){Fo.push(Be),Be=!1}function lt(){const e=Fo.pop();Be=e===void 0?!0:e}function oi(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=fe;fe=void 0;try{t()}finally{fe=n}}}let Rn=0;class Ya{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class js{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!fe||!Be||fe===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==fe)n=this.activeLink=new Ya(fe,this),fe.deps?(n.prevDep=fe.depsTail,fe.depsTail.nextDep=n,fe.depsTail=n):fe.deps=fe.depsTail=n,Do(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const r=n.nextDep;r.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=r),n.prevDep=fe.depsTail,n.nextDep=void 0,fe.depsTail.nextDep=n,fe.depsTail=n,fe.deps===n&&(fe.deps=r)}return n}trigger(t){this.version++,Rn++,this.notify(t)}notify(t){$s();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Ns()}}}function Do(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let r=t.deps;r;r=r.nextDep)Do(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const tr=new WeakMap,At=Symbol(""),as=Symbol(""),Pn=Symbol("");function xe(e,t,n){if(Be&&fe){let r=tr.get(e);r||tr.set(e,r=new Map);let s=r.get(n);s||(r.set(n,s=new js),s.map=r,s.key=n),s.track()}}function st(e,t,n,r,s,i){const o=tr.get(e);if(!o){Rn++;return}const l=a=>{a&&a.trigger()};if($s(),t==="clear")o.forEach(l);else{const a=W(e),u=a&&Ls(n);if(a&&n==="length"){const c=Number(r);o.forEach((f,d)=>{(d==="length"||d===Pn||!ct(d)&&d>=c)&&l(f)})}else switch((n!==void 0||o.has(void 0))&&l(o.get(n)),u&&l(o.get(Pn)),t){case"add":a?u&&l(o.get("length")):(l(o.get(At)),Zt(e)&&l(o.get(as)));break;case"delete":a||(l(o.get(At)),Zt(e)&&l(o.get(as)));break;case"set":Zt(e)&&l(o.get(At));break}}Ns()}function Za(e,t){const n=tr.get(e);return n&&n.get(t)}function Vt(e){const t=ne(e);return t===e?t:(xe(t,"iterate",Pn),je(e)?t:t.map(ve))}function Er(e){return xe(e=ne(e),"iterate",Pn),e}const Xa={__proto__:null,[Symbol.iterator](){return Br(this,Symbol.iterator,ve)},concat(...e){return Vt(this).concat(...e.map(t=>W(t)?Vt(t):t))},entries(){return Br(this,"entries",e=>(e[1]=ve(e[1]),e))},every(e,t){return tt(this,"every",e,t,void 0,arguments)},filter(e,t){return tt(this,"filter",e,t,n=>n.map(ve),arguments)},find(e,t){return tt(this,"find",e,t,ve,arguments)},findIndex(e,t){return tt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return tt(this,"findLast",e,t,ve,arguments)},findLastIndex(e,t){return tt(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return tt(this,"forEach",e,t,void 0,arguments)},includes(...e){return Hr(this,"includes",e)},indexOf(...e){return Hr(this,"indexOf",e)},join(e){return Vt(this).join(e)},lastIndexOf(...e){return Hr(this,"lastIndexOf",e)},map(e,t){return tt(this,"map",e,t,void 0,arguments)},pop(){return on(this,"pop")},push(...e){return on(this,"push",e)},reduce(e,...t){return li(this,"reduce",e,t)},reduceRight(e,...t){return li(this,"reduceRight",e,t)},shift(){return on(this,"shift")},some(e,t){return tt(this,"some",e,t,void 0,arguments)},splice(...e){return on(this,"splice",e)},toReversed(){return Vt(this).toReversed()},toSorted(e){return Vt(this).toSorted(e)},toSpliced(...e){return Vt(this).toSpliced(...e)},unshift(...e){return on(this,"unshift",e)},values(){return Br(this,"values",ve)}};function Br(e,t,n){const r=Er(e),s=r[t]();return r!==e&&!je(e)&&(s._next=s.next,s.next=()=>{const i=s._next();return i.value&&(i.value=n(i.value)),i}),s}const ec=Array.prototype;function tt(e,t,n,r,s,i){const o=Er(e),l=o!==e&&!je(e),a=o[t];if(a!==ec[t]){const f=a.apply(e,i);return l?ve(f):f}let u=n;o!==e&&(l?u=function(f,d){return n.call(this,ve(f),d,e)}:n.length>2&&(u=function(f,d){return n.call(this,f,d,e)}));const c=a.call(o,u,r);return l&&s?s(c):c}function li(e,t,n,r){const s=Er(e);let i=n;return s!==e&&(je(e)?n.length>3&&(i=function(o,l,a){return n.call(this,o,l,a,e)}):i=function(o,l,a){return n.call(this,o,ve(l),a,e)}),s[t](i,...r)}function Hr(e,t,n){const r=ne(e);xe(r,"iterate",Pn);const s=r[t](...n);return(s===-1||s===!1)&&qs(n[0])?(n[0]=ne(n[0]),r[t](...n)):s}function on(e,t,n=[]){ot(),$s();const r=ne(e)[t].apply(e,n);return Ns(),lt(),r}const tc=As("__proto__,__v_isRef,__isVue"),qo=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(ct));function nc(e){ct(e)||(e=String(e));const t=ne(this);return xe(t,"has",e),t.hasOwnProperty(e)}class Bo{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){if(n==="__v_skip")return t.__v_skip;const s=this._isReadonly,i=this._isShallow;if(n==="__v_isReactive")return!s;if(n==="__v_isReadonly")return s;if(n==="__v_isShallow")return i;if(n==="__v_raw")return r===(s?i?dc:Ko:i?zo:Vo).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const o=W(t);if(!s){let a;if(o&&(a=Xa[n]))return a;if(n==="hasOwnProperty")return nc}const l=Reflect.get(t,n,pe(t)?t:r);return(ct(n)?qo.has(n):tc(n))||(s||xe(t,"get",n),i)?l:pe(l)?o&&Ls(n)?l:l.value:he(l)?s?Wo(l):Dt(l):l}}class Ho extends Bo{constructor(t=!1){super(!1,t)}set(t,n,r,s){let i=t[n];if(!this._isShallow){const a=Et(i);if(!je(r)&&!Et(r)&&(i=ne(i),r=ne(r)),!W(t)&&pe(i)&&!pe(r))return a?!1:(i.value=r,!0)}const o=W(t)&&Ls(n)?Number(n)e,Bn=e=>Reflect.getPrototypeOf(e);function lc(e,t,n){return function(...r){const s=this.__v_raw,i=ne(s),o=Zt(i),l=e==="entries"||e===Symbol.iterator&&o,a=e==="keys"&&o,u=s[e](...r),c=n?cs:t?nr:ve;return!t&&xe(i,"iterate",a?as:At),{next(){const{value:f,done:d}=u.next();return d?{value:f,done:d}:{value:l?[c(f[0]),c(f[1])]:c(f),done:d}},[Symbol.iterator](){return this}}}}function Hn(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function ac(e,t){const n={get(s){const i=this.__v_raw,o=ne(i),l=ne(s);e||(xt(s,l)&&xe(o,"get",s),xe(o,"get",l));const{has:a}=Bn(o),u=t?cs:e?nr:ve;if(a.call(o,s))return u(i.get(s));if(a.call(o,l))return u(i.get(l));i!==o&&i.get(s)},get size(){const s=this.__v_raw;return!e&&xe(ne(s),"iterate",At),Reflect.get(s,"size",s)},has(s){const i=this.__v_raw,o=ne(i),l=ne(s);return e||(xt(s,l)&&xe(o,"has",s),xe(o,"has",l)),s===l?i.has(s):i.has(s)||i.has(l)},forEach(s,i){const o=this,l=o.__v_raw,a=ne(l),u=t?cs:e?nr:ve;return!e&&xe(a,"iterate",At),l.forEach((c,f)=>s.call(i,u(c),u(f),o))}};return me(n,e?{add:Hn("add"),set:Hn("set"),delete:Hn("delete"),clear:Hn("clear")}:{add(s){!t&&!je(s)&&!Et(s)&&(s=ne(s));const i=ne(this);return Bn(i).has.call(i,s)||(i.add(s),st(i,"add",s,s)),this},set(s,i){!t&&!je(i)&&!Et(i)&&(i=ne(i));const o=ne(this),{has:l,get:a}=Bn(o);let u=l.call(o,s);u||(s=ne(s),u=l.call(o,s));const c=a.call(o,s);return o.set(s,i),u?xt(i,c)&&st(o,"set",s,i):st(o,"add",s,i),this},delete(s){const i=ne(this),{has:o,get:l}=Bn(i);let a=o.call(i,s);a||(s=ne(s),a=o.call(i,s)),l&&l.call(i,s);const u=i.delete(s);return a&&st(i,"delete",s,void 0),u},clear(){const s=ne(this),i=s.size!==0,o=s.clear();return i&&st(s,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(s=>{n[s]=lc(s,e,t)}),n}function Fs(e,t){const n=ac(e,t);return(r,s,i)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?r:Reflect.get(oe(n,s)&&s in r?n:r,s,i)}const cc={get:Fs(!1,!1)},uc={get:Fs(!1,!0)},fc={get:Fs(!0,!1)};const Vo=new WeakMap,zo=new WeakMap,Ko=new WeakMap,dc=new WeakMap;function hc(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function pc(e){return e.__v_skip||!Object.isExtensible(e)?0:hc(Ia(e))}function Dt(e){return Et(e)?e:Ds(e,!1,sc,cc,Vo)}function Uo(e){return Ds(e,!1,oc,uc,zo)}function Wo(e){return Ds(e,!0,ic,fc,Ko)}function Ds(e,t,n,r,s){if(!he(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=pc(e);if(i===0)return e;const o=s.get(e);if(o)return o;const l=new Proxy(e,i===2?r:n);return s.set(e,l),l}function St(e){return Et(e)?St(e.__v_raw):!!(e&&e.__v_isReactive)}function Et(e){return!!(e&&e.__v_isReadonly)}function je(e){return!!(e&&e.__v_isShallow)}function qs(e){return e?!!e.__v_raw:!1}function ne(e){const t=e&&e.__v_raw;return t?ne(t):e}function qt(e){return!oe(e,"__v_skip")&&Object.isExtensible(e)&&os(e,"__v_skip",!0),e}const ve=e=>he(e)?Dt(e):e,nr=e=>he(e)?Wo(e):e;function pe(e){return e?e.__v_isRef===!0:!1}function Nt(e){return Qo(e,!1)}function Go(e){return Qo(e,!0)}function Qo(e,t){return pe(e)?e:new gc(e,t)}class gc{constructor(t,n){this.dep=new js,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:ne(t),this._value=n?t:ve(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||je(t)||Et(t);t=r?t:ne(t),xt(t,n)&&(this._rawValue=t,this._value=r?t:ve(t),this.dep.trigger())}}function Ot(e){return pe(e)?e.value:e}const mc={get:(e,t,n)=>t==="__v_raw"?e:Ot(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const s=e[t];return pe(s)&&!pe(n)?(s.value=n,!0):Reflect.set(e,t,n,r)}};function Jo(e){return St(e)?e:new Proxy(e,mc)}function vc(e){const t=W(e)?new Array(e.length):{};for(const n in e)t[n]=_c(e,n);return t}class yc{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0}get value(){const t=this._object[this._key];return this._value=t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return Za(ne(this._object),this._key)}}function _c(e,t,n){const r=e[t];return pe(r)?r:new yc(e,t,n)}class bc{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new js(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Rn-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&fe!==this)return $o(this,!0),!0}get value(){const t=this.dep.track();return jo(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function wc(e,t,n=!1){let r,s;return Y(e)?r=e:(r=e.get,s=e.set),new bc(r,s,n)}const Vn={},rr=new WeakMap;let kt;function xc(e,t=!1,n=kt){if(n){let r=rr.get(n);r||rr.set(n,r=[]),r.push(e)}}function Sc(e,t,n=ae){const{immediate:r,deep:s,once:i,scheduler:o,augmentJob:l,call:a}=n,u=y=>s?y:je(y)||s===!1||s===0?it(y,1):it(y);let c,f,d,g,v=!1,S=!1;if(pe(e)?(f=()=>e.value,v=je(e)):St(e)?(f=()=>u(e),v=!0):W(e)?(S=!0,v=e.some(y=>St(y)||je(y)),f=()=>e.map(y=>{if(pe(y))return y.value;if(St(y))return u(y);if(Y(y))return a?a(y,2):y()})):Y(e)?t?f=a?()=>a(e,2):e:f=()=>{if(d){ot();try{d()}finally{lt()}}const y=kt;kt=c;try{return a?a(e,3,[g]):e(g)}finally{kt=y}}:f=qe,t&&s){const y=f,T=s===!0?1/0:s;f=()=>it(y(),T)}const k=Oo(),O=()=>{c.stop(),k&&k.active&&Ms(k.effects,c)};if(i&&t){const y=t;t=(...T)=>{y(...T),O()}}let x=S?new Array(e.length).fill(Vn):Vn;const C=y=>{if(!(!(c.flags&1)||!c.dirty&&!y))if(t){const T=c.run();if(s||v||(S?T.some((H,q)=>xt(H,x[q])):xt(T,x))){d&&d();const H=kt;kt=c;try{const q=[T,x===Vn?void 0:S&&x[0]===Vn?[]:x,g];x=T,a?a(t,3,q):t(...q)}finally{kt=H}}}else c.run()};return l&&l(C),c=new Mo(f),c.scheduler=o?()=>o(C,!1):C,g=y=>xc(y,!1,c),d=c.onStop=()=>{const y=rr.get(c);if(y){if(a)a(y,4);else for(const T of y)T();rr.delete(c)}},t?r?C(!0):x=c.run():o?o(C.bind(null,!0),!0):c.run(),O.pause=c.pause.bind(c),O.resume=c.resume.bind(c),O.stop=O,O}function it(e,t=1/0,n){if(t<=0||!he(e)||e.__v_skip||(n=n||new Set,n.has(e)))return e;if(n.add(e),t--,pe(e))it(e.value,t,n);else if(W(e))for(let r=0;r{it(r,t,n)});else if(Co(e)){for(const r in e)it(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&it(e[r],t,n)}return e}/** -* @vue/runtime-core v3.5.18 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/function jn(e,t,n,r){try{return r?e(...r):e()}catch(s){Cr(s,t,n)}}function He(e,t,n,r){if(Y(e)){const s=jn(e,t,n,r);return s&&So(s)&&s.catch(i=>{Cr(i,t,n)}),s}if(W(e)){const s=[];for(let i=0;i>>1,s=Ce[r],i=Tn(s);i=Tn(n)?Ce.push(e):Ce.splice(Cc(t),0,e),e.flags|=1,Zo()}}function Zo(){sr||(sr=Yo.then(tl))}function Xo(e){W(e)?Xt.push(...e):mt&&e.id===-1?mt.splice(Qt+1,0,e):e.flags&1||(Xt.push(e),e.flags|=1),Zo()}function ai(e,t,n=Je+1){for(;nTn(n)-Tn(r));if(Xt.length=0,mt){mt.push(...t);return}for(mt=t,Qt=0;Qte.id==null?e.flags&2?-1:1/0:e.id;function tl(e){try{for(Je=0;Je{r._d&&wi(-1);const i=ir(t);let o;try{o=e(...s)}finally{ir(i),r._d&&wi(1)}return o};return r._n=!0,r._c=!0,r._d=!0,r}function rl(e,t){if(_e===null)return e;const n=Lr(_e),r=e.dirs||(e.dirs=[]);for(let s=0;se.__isTeleport,_n=e=>e&&(e.disabled||e.disabled===""),ci=e=>e&&(e.defer||e.defer===""),ui=e=>typeof SVGElement<"u"&&e instanceof SVGElement,fi=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,us=(e,t)=>{const n=e&&e.to;return de(n)?t?t(n):null:n},ol={name:"Teleport",__isTeleport:!0,process(e,t,n,r,s,i,o,l,a,u){const{mc:c,pc:f,pbc:d,o:{insert:g,querySelector:v,createText:S,createComment:k}}=u,O=_n(t.props);let{shapeFlag:x,children:C,dynamicChildren:y}=t;if(e==null){const T=t.el=S(""),H=t.anchor=S("");g(T,n,r),g(H,n,r);const q=(R,B)=>{x&16&&(s&&s.isCE&&(s.ce._teleportTarget=R),c(C,R,B,s,i,o,l,a))},F=()=>{const R=t.target=us(t.props,v),B=ll(R,t,S,g);R&&(o!=="svg"&&ui(R)?o="svg":o!=="mathml"&&fi(R)&&(o="mathml"),O||(q(R,B),Gn(t,!1)))};O&&(q(n,H),Gn(t,!0)),ci(t.props)?(t.el.__isMounted=!1,ge(()=>{F(),delete t.el.__isMounted},i)):F()}else{if(ci(t.props)&&e.el.__isMounted===!1){ge(()=>{ol.process(e,t,n,r,s,i,o,l,a,u)},i);return}t.el=e.el,t.targetStart=e.targetStart;const T=t.anchor=e.anchor,H=t.target=e.target,q=t.targetAnchor=e.targetAnchor,F=_n(e.props),R=F?n:H,B=F?T:q;if(o==="svg"||ui(H)?o="svg":(o==="mathml"||fi(H))&&(o="mathml"),y?(d(e.dynamicChildren,y,R,s,i,o,l),Gs(e,t,!0)):a||f(e,t,R,B,s,i,o,l,!1),O)F?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):zn(t,n,T,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const U=t.target=us(t.props,v);U&&zn(t,U,null,u,0)}else F&&zn(t,H,q,u,1);Gn(t,O)}},remove(e,t,n,{um:r,o:{remove:s}},i){const{shapeFlag:o,children:l,anchor:a,targetStart:u,targetAnchor:c,target:f,props:d}=e;if(f&&(s(u),s(c)),i&&s(a),o&16){const g=i||!_n(d);for(let v=0;v{e.isMounted=!0}),Ar(()=>{e.isUnmounting=!0}),e}const $e=[Function,Array],cl={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:$e,onEnter:$e,onAfterEnter:$e,onEnterCancelled:$e,onBeforeLeave:$e,onLeave:$e,onAfterLeave:$e,onLeaveCancelled:$e,onBeforeAppear:$e,onAppear:$e,onAfterAppear:$e,onAppearCancelled:$e},ul=e=>{const t=e.subTree;return t.component?ul(t.component):t},Tc={name:"BaseTransition",props:cl,setup(e,{slots:t}){const n=ze(),r=al();return()=>{const s=t.default&&Vs(t.default(),!0);if(!s||!s.length)return;const i=fl(s),o=ne(e),{mode:l}=o;if(r.isLeaving)return Vr(i);const a=di(i);if(!a)return Vr(i);let u=kn(a,o,r,n,f=>u=f);a.type!==ye&&Ct(a,u);let c=n.subTree&&di(n.subTree);if(c&&c.type!==ye&&!wt(a,c)&&ul(n).type!==ye){let f=kn(c,o,r,n);if(Ct(c,f),l==="out-in"&&a.type!==ye)return r.isLeaving=!0,f.afterLeave=()=>{r.isLeaving=!1,n.job.flags&8||n.update(),delete f.afterLeave,c=void 0},Vr(i);l==="in-out"&&a.type!==ye?f.delayLeave=(d,g,v)=>{const S=dl(r,c);S[String(c.key)]=c,d[vt]=()=>{g(),d[vt]=void 0,delete u.delayedLeave,c=void 0},u.delayedLeave=()=>{v(),delete u.delayedLeave,c=void 0}}:c=void 0}else c&&(c=void 0);return i}}};function fl(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==ye){t=n;break}}return t}const kc=Tc;function dl(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function kn(e,t,n,r,s){const{appear:i,mode:o,persisted:l=!1,onBeforeEnter:a,onEnter:u,onAfterEnter:c,onEnterCancelled:f,onBeforeLeave:d,onLeave:g,onAfterLeave:v,onLeaveCancelled:S,onBeforeAppear:k,onAppear:O,onAfterAppear:x,onAppearCancelled:C}=t,y=String(e.key),T=dl(n,e),H=(R,B)=>{R&&He(R,r,9,B)},q=(R,B)=>{const U=B[1];H(R,B),W(R)?R.every(L=>L.length<=1)&&U():R.length<=1&&U()},F={mode:o,persisted:l,beforeEnter(R){let B=a;if(!n.isMounted)if(i)B=k||a;else return;R[vt]&&R[vt](!0);const U=T[y];U&&wt(e,U)&&U.el[vt]&&U.el[vt](),H(B,[R])},enter(R){let B=u,U=c,L=f;if(!n.isMounted)if(i)B=O||u,U=x||c,L=C||f;else return;let X=!1;const j=R[Kn]=ee=>{X||(X=!0,ee?H(L,[R]):H(U,[R]),F.delayedLeave&&F.delayedLeave(),R[Kn]=void 0)};B?q(B,[R,j]):j()},leave(R,B){const U=String(e.key);if(R[Kn]&&R[Kn](!0),n.isUnmounting)return B();H(d,[R]);let L=!1;const X=R[vt]=j=>{L||(L=!0,B(),j?H(S,[R]):H(v,[R]),R[vt]=void 0,T[U]===e&&delete T[U])};T[U]=e,g?q(g,[R,X]):X()},clone(R){const B=kn(R,t,n,r,s);return s&&s(B),B}};return F}function Vr(e){if(Pr(e))return e=at(e),e.children=null,e}function di(e){if(!Pr(e))return il(e.type)&&e.children?fl(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&Y(n.default))return n.default()}}function Ct(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Ct(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Vs(e,t=!1,n){let r=[],s=0;for(let i=0;i1)for(let i=0;in.value,set:i=>n.value=i})}return n}function bn(e,t,n,r,s=!1){if(W(e)){e.forEach((v,S)=>bn(v,t&&(W(t)?t[S]:t),n,r,s));return}if(Mt(r)&&!s){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&bn(e,t,n,r.component.subTree);return}const i=r.shapeFlag&4?Lr(r.component):r.el,o=s?null:i,{i:l,r:a}=e,u=t&&t.r,c=l.refs===ae?l.refs={}:l.refs,f=l.setupState,d=ne(f),g=f===ae?()=>!1:v=>oe(d,v);if(u!=null&&u!==a&&(de(u)?(c[u]=null,g(u)&&(f[u]=null)):pe(u)&&(u.value=null)),Y(a))jn(a,l,12,[o,c]);else{const v=de(a),S=pe(a);if(v||S){const k=()=>{if(e.f){const O=v?g(a)?f[a]:c[a]:a.value;s?W(O)&&Ms(O,i):W(O)?O.includes(i)||O.push(i):v?(c[a]=[i],g(a)&&(f[a]=c[a])):(a.value=[i],e.k&&(c[e.k]=a.value))}else v?(c[a]=o,g(a)&&(f[a]=o)):S&&(a.value=o,e.k&&(c[e.k]=o))};o?(k.id=-1,ge(k,n)):k()}}}wr().requestIdleCallback;wr().cancelIdleCallback;const Mt=e=>!!e.type.__asyncLoader,Pr=e=>e.type.__isKeepAlive,Ac={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=ze(),r=n.ctx;if(!r.renderer)return()=>{const x=t.default&&t.default();return x&&x.length===1?x[0]:x};const s=new Map,i=new Set;let o=null;const l=n.suspense,{renderer:{p:a,m:u,um:c,o:{createElement:f}}}=r,d=f("div");r.activate=(x,C,y,T,H)=>{const q=x.component;u(x,C,y,0,l),a(q.vnode,x,C,y,q,l,T,x.slotScopeIds,H),ge(()=>{q.isDeactivated=!1,q.a&&mn(q.a);const F=x.props&&x.props.onVnodeMounted;F&&Ie(F,q.parent,x)},l)},r.deactivate=x=>{const C=x.component;lr(C.m),lr(C.a),u(x,d,null,1,l),ge(()=>{C.da&&mn(C.da);const y=x.props&&x.props.onVnodeUnmounted;y&&Ie(y,C.parent,x),C.isDeactivated=!0},l)};function g(x){zr(x),c(x,n,l,!0)}function v(x){s.forEach((C,y)=>{const T=ms(C.type);T&&!x(T)&&S(y)})}function S(x){const C=s.get(x);C&&(!o||!wt(C,o))?g(C):o&&zr(o),s.delete(x),i.delete(x)}$t(()=>[e.include,e.exclude],([x,C])=>{x&&v(y=>fn(x,y)),C&&v(y=>!fn(C,y))},{flush:"post",deep:!0});let k=null;const O=()=>{k!=null&&(ar(n.subTree.type)?ge(()=>{s.set(k,Un(n.subTree))},n.subTree.suspense):s.set(k,Un(n.subTree)))};return kr(O),zs(O),Ar(()=>{s.forEach(x=>{const{subTree:C,suspense:y}=n,T=Un(C);if(x.type===T.type&&x.key===T.key){zr(T);const H=T.component.da;H&&ge(H,y);return}g(x)})}),()=>{if(k=null,!t.default)return o=null;const x=t.default(),C=x[0];if(x.length>1)return o=null,x;if(!en(C)||!(C.shapeFlag&4)&&!(C.shapeFlag&128))return o=null,C;let y=Un(C);if(y.type===ye)return o=null,y;const T=y.type,H=ms(Mt(y)?y.type.__asyncResolved||{}:T),{include:q,exclude:F,max:R}=e;if(q&&(!H||!fn(q,H))||F&&H&&fn(F,H))return y.shapeFlag&=-257,o=y,C;const B=y.key==null?T:y.key,U=s.get(B);return y.el&&(y=at(y),C.shapeFlag&128&&(C.ssContent=y)),k=B,U?(y.el=U.el,y.component=U.component,y.transition&&Ct(y,y.transition),y.shapeFlag|=512,i.delete(B),i.add(B)):(i.add(B),R&&i.size>parseInt(R,10)&&S(i.values().next().value)),y.shapeFlag|=256,o=y,ar(C.type)?C:y}}},Kh=Ac;function fn(e,t){return W(e)?e.some(n=>fn(n,t)):de(e)?e.split(",").includes(t):Na(e)?(e.lastIndex=0,e.test(t)):!1}function Oc(e,t){pl(e,"a",t)}function Mc(e,t){pl(e,"da",t)}function pl(e,t,n=Se){const r=e.__wdc||(e.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(Tr(t,r,n),n){let s=n.parent;for(;s&&s.parent;)Pr(s.parent.vnode)&&Lc(r,t,n,s),s=s.parent}}function Lc(e,t,n,r){const s=Tr(t,e,r,!0);Ks(()=>{Ms(r[t],s)},n)}function zr(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function Un(e){return e.shapeFlag&128?e.ssContent:e}function Tr(e,t,n=Se,r=!1){if(n){const s=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...o)=>{ot();const l=Fn(n),a=He(t,n,e,o);return l(),lt(),a});return r?s.unshift(i):s.push(i),i}}const ut=e=>(t,n=Se)=>{(!On||e==="sp")&&Tr(e,(...r)=>t(...r),n)},$c=ut("bm"),kr=ut("m"),gl=ut("bu"),zs=ut("u"),Ar=ut("bum"),Ks=ut("um"),Nc=ut("sp"),Ic=ut("rtg"),jc=ut("rtc");function Fc(e,t=Se){Tr("ec",e,t)}const ml="components";function Dc(e,t){return yl(ml,e,!0,t)||e}const vl=Symbol.for("v-ndc");function Uh(e){return de(e)?yl(ml,e,!1)||e:e||vl}function yl(e,t,n=!0,r=!1){const s=_e||Se;if(s){const i=s.type;{const l=ms(i,!1);if(l&&(l===t||l===Fe(t)||l===br(Fe(t))))return i}const o=hi(s[e]||i[e],t)||hi(s.appContext[e],t);return!o&&r?i:o}}function hi(e,t){return e&&(e[t]||e[Fe(t)]||e[br(Fe(t))])}function Wh(e,t,n,r){let s;const i=n,o=W(e);if(o||de(e)){const l=o&&St(e);let a=!1,u=!1;l&&(a=!je(e),u=Et(e),e=Er(e)),s=new Array(e.length);for(let c=0,f=e.length;ct(l,a,void 0,i));else{const l=Object.keys(e);s=new Array(l.length);for(let a=0,u=l.length;a{const i=r.fn(...s);return i&&(i.key=r.key),i}:r.fn)}return e}function Qh(e,t,n={},r,s){if(_e.ce||_e.parent&&Mt(_e.parent)&&_e.parent.ce)return t!=="default"&&(n.name=t),cr(),ur(Re,null,[Pe("slot",n,r)],64);let i=e[t];i&&i._c&&(i._d=!1),cr();const o=i&&_l(i(n)),l=n.key||o&&o.key,a=ur(Re,{key:(l&&!ct(l)?l:`_${t}`)+(!o&&r?"_fb":"")},o||[],o&&e._===1?64:-2);return i&&i._c&&(i._d=!0),a}function _l(e){return e.some(t=>en(t)?!(t.type===ye||t.type===Re&&!_l(t.children)):!0)?e:null}const fs=e=>e?Fl(e)?Lr(e):fs(e.parent):null,wn=me(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>fs(e.parent),$root:e=>fs(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>wl(e),$forceUpdate:e=>e.f||(e.f=()=>{Hs(e.update)}),$nextTick:e=>e.n||(e.n=Bs.bind(e.proxy)),$watch:e=>au.bind(e)}),Kr=(e,t)=>e!==ae&&!e.__isScriptSetup&&oe(e,t),qc={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:s,props:i,accessCache:o,type:l,appContext:a}=e;let u;if(t[0]!=="$"){const g=o[t];if(g!==void 0)switch(g){case 1:return r[t];case 2:return s[t];case 4:return n[t];case 3:return i[t]}else{if(Kr(r,t))return o[t]=1,r[t];if(s!==ae&&oe(s,t))return o[t]=2,s[t];if((u=e.propsOptions[0])&&oe(u,t))return o[t]=3,i[t];if(n!==ae&&oe(n,t))return o[t]=4,n[t];ds&&(o[t]=0)}}const c=wn[t];let f,d;if(c)return t==="$attrs"&&xe(e.attrs,"get",""),c(e);if((f=l.__cssModules)&&(f=f[t]))return f;if(n!==ae&&oe(n,t))return o[t]=4,n[t];if(d=a.config.globalProperties,oe(d,t))return d[t]},set({_:e},t,n){const{data:r,setupState:s,ctx:i}=e;return Kr(s,t)?(s[t]=n,!0):r!==ae&&oe(r,t)?(r[t]=n,!0):oe(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:s,propsOptions:i}},o){let l;return!!n[o]||e!==ae&&oe(e,o)||Kr(t,o)||(l=i[0])&&oe(l,o)||oe(r,o)||oe(wn,o)||oe(s.config.globalProperties,o)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:oe(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Jh(){return Bc().slots}function Bc(e){const t=ze();return t.setupContext||(t.setupContext=ql(t))}function pi(e){return W(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let ds=!0;function Hc(e){const t=wl(e),n=e.proxy,r=e.ctx;ds=!1,t.beforeCreate&&gi(t.beforeCreate,e,"bc");const{data:s,computed:i,methods:o,watch:l,provide:a,inject:u,created:c,beforeMount:f,mounted:d,beforeUpdate:g,updated:v,activated:S,deactivated:k,beforeDestroy:O,beforeUnmount:x,destroyed:C,unmounted:y,render:T,renderTracked:H,renderTriggered:q,errorCaptured:F,serverPrefetch:R,expose:B,inheritAttrs:U,components:L,directives:X,filters:j}=t;if(u&&Vc(u,r,null),o)for(const Z in o){const se=o[Z];Y(se)&&(r[Z]=se.bind(n))}if(s){const Z=s.call(n,n);he(Z)&&(e.data=Dt(Z))}if(ds=!0,i)for(const Z in i){const se=i[Z],et=Y(se)?se.bind(n,n):Y(se.get)?se.get.bind(n,n):qe,ft=!Y(se)&&Y(se.set)?se.set.bind(n):qe,Ke=Q({get:et,set:ft});Object.defineProperty(r,Z,{enumerable:!0,configurable:!0,get:()=>Ke.value,set:Te=>Ke.value=Te})}if(l)for(const Z in l)bl(l[Z],r,n,Z);if(a){const Z=Y(a)?a.call(n):a;Reflect.ownKeys(Z).forEach(se=>{Qn(se,Z[se])})}c&&gi(c,e,"c");function re(Z,se){W(se)?se.forEach(et=>Z(et.bind(n))):se&&Z(se.bind(n))}if(re($c,f),re(kr,d),re(gl,g),re(zs,v),re(Oc,S),re(Mc,k),re(Fc,F),re(jc,H),re(Ic,q),re(Ar,x),re(Ks,y),re(Nc,R),W(B))if(B.length){const Z=e.exposed||(e.exposed={});B.forEach(se=>{Object.defineProperty(Z,se,{get:()=>n[se],set:et=>n[se]=et,enumerable:!0})})}else e.exposed||(e.exposed={});T&&e.render===qe&&(e.render=T),U!=null&&(e.inheritAttrs=U),L&&(e.components=L),X&&(e.directives=X),R&&hl(e)}function Vc(e,t,n=qe){W(e)&&(e=hs(e));for(const r in e){const s=e[r];let i;he(s)?"default"in s?i=Ze(s.from||r,s.default,!0):i=Ze(s.from||r):i=Ze(s),pe(i)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>i.value,set:o=>i.value=o}):t[r]=i}}function gi(e,t,n){He(W(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function bl(e,t,n,r){let s=r.includes(".")?Ll(n,r):()=>n[r];if(de(e)){const i=t[e];Y(i)&&$t(s,i)}else if(Y(e))$t(s,e.bind(n));else if(he(e))if(W(e))e.forEach(i=>bl(i,t,n,r));else{const i=Y(e.handler)?e.handler.bind(n):t[e.handler];Y(i)&&$t(s,i,e)}}function wl(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:s,optionsCache:i,config:{optionMergeStrategies:o}}=e.appContext,l=i.get(t);let a;return l?a=l:!s.length&&!n&&!r?a=t:(a={},s.length&&s.forEach(u=>or(a,u,o,!0)),or(a,t,o)),he(t)&&i.set(t,a),a}function or(e,t,n,r=!1){const{mixins:s,extends:i}=t;i&&or(e,i,n,!0),s&&s.forEach(o=>or(e,o,n,!0));for(const o in t)if(!(r&&o==="expose")){const l=zc[o]||n&&n[o];e[o]=l?l(e[o],t[o]):t[o]}return e}const zc={data:mi,props:vi,emits:vi,methods:dn,computed:dn,beforeCreate:Ee,created:Ee,beforeMount:Ee,mounted:Ee,beforeUpdate:Ee,updated:Ee,beforeDestroy:Ee,beforeUnmount:Ee,destroyed:Ee,unmounted:Ee,activated:Ee,deactivated:Ee,errorCaptured:Ee,serverPrefetch:Ee,components:dn,directives:dn,watch:Uc,provide:mi,inject:Kc};function mi(e,t){return t?e?function(){return me(Y(e)?e.call(this,this):e,Y(t)?t.call(this,this):t)}:t:e}function Kc(e,t){return dn(hs(e),hs(t))}function hs(e){if(W(e)){const t={};for(let n=0;n1)return n&&Y(t)?t.call(r&&r.proxy):t}}function Qc(){return!!(ze()||Lt)}const Sl={},El=()=>Object.create(Sl),Cl=e=>Object.getPrototypeOf(e)===Sl;function Jc(e,t,n,r=!1){const s={},i=El();e.propsDefaults=Object.create(null),Rl(e,t,s,i);for(const o in e.propsOptions[0])o in s||(s[o]=void 0);n?e.props=r?s:Uo(s):e.type.props?e.props=s:e.props=i,e.attrs=i}function Yc(e,t,n,r){const{props:s,attrs:i,vnode:{patchFlag:o}}=e,l=ne(s),[a]=e.propsOptions;let u=!1;if((r||o>0)&&!(o&16)){if(o&8){const c=e.vnode.dynamicProps;for(let f=0;f{a=!0;const[d,g]=Pl(f,t,!0);me(o,d),g&&l.push(...g)};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!i&&!a)return he(e)&&r.set(e,Yt),Yt;if(W(i))for(let c=0;ce==="_"||e==="__"||e==="_ctx"||e==="$stable",Ws=e=>W(e)?e.map(Ye):[Ye(e)],Xc=(e,t,n)=>{if(t._n)return t;const r=Rc((...s)=>Ws(t(...s)),n);return r._c=!1,r},Tl=(e,t,n)=>{const r=e._ctx;for(const s in e){if(Us(s))continue;const i=e[s];if(Y(i))t[s]=Xc(s,i,r);else if(i!=null){const o=Ws(i);t[s]=()=>o}}},kl=(e,t)=>{const n=Ws(t);e.slots.default=()=>n},Al=(e,t,n)=>{for(const r in t)(n||!Us(r))&&(e[r]=t[r])},eu=(e,t,n)=>{const r=e.slots=El();if(e.vnode.shapeFlag&32){const s=t.__;s&&os(r,"__",s,!0);const i=t._;i?(Al(r,t,n),n&&os(r,"_",i,!0)):Tl(t,r)}else t&&kl(e,t)},tu=(e,t,n)=>{const{vnode:r,slots:s}=e;let i=!0,o=ae;if(r.shapeFlag&32){const l=t._;l?n&&l===1?i=!1:Al(s,t,n):(i=!t.$stable,Tl(t,s)),o=t}else t&&(kl(e,t),o={default:1});if(i)for(const l in s)!Us(l)&&o[l]==null&&delete s[l]},ge=gu;function nu(e){return ru(e)}function ru(e,t){const n=wr();n.__VUE__=!0;const{insert:r,remove:s,patchProp:i,createElement:o,createText:l,createComment:a,setText:u,setElementText:c,parentNode:f,nextSibling:d,setScopeId:g=qe,insertStaticContent:v}=e,S=(h,p,m,_=null,E=null,w=null,$=void 0,M=null,A=!!p.dynamicChildren)=>{if(h===p)return;h&&!wt(h,p)&&(_=b(h),Te(h,E,w,!0),h=null),p.patchFlag===-2&&(A=!1,p.dynamicChildren=null);const{type:P,ref:K,shapeFlag:I}=p;switch(P){case Mr:k(h,p,m,_);break;case ye:O(h,p,m,_);break;case Jn:h==null&&x(p,m,_,$);break;case Re:L(h,p,m,_,E,w,$,M,A);break;default:I&1?T(h,p,m,_,E,w,$,M,A):I&6?X(h,p,m,_,E,w,$,M,A):(I&64||I&128)&&P.process(h,p,m,_,E,w,$,M,A,V)}K!=null&&E?bn(K,h&&h.ref,w,p||h,!p):K==null&&h&&h.ref!=null&&bn(h.ref,null,w,h,!0)},k=(h,p,m,_)=>{if(h==null)r(p.el=l(p.children),m,_);else{const E=p.el=h.el;p.children!==h.children&&u(E,p.children)}},O=(h,p,m,_)=>{h==null?r(p.el=a(p.children||""),m,_):p.el=h.el},x=(h,p,m,_)=>{[h.el,h.anchor]=v(h.children,p,m,_,h.el,h.anchor)},C=({el:h,anchor:p},m,_)=>{let E;for(;h&&h!==p;)E=d(h),r(h,m,_),h=E;r(p,m,_)},y=({el:h,anchor:p})=>{let m;for(;h&&h!==p;)m=d(h),s(h),h=m;s(p)},T=(h,p,m,_,E,w,$,M,A)=>{p.type==="svg"?$="svg":p.type==="math"&&($="mathml"),h==null?H(p,m,_,E,w,$,M,A):R(h,p,E,w,$,M,A)},H=(h,p,m,_,E,w,$,M)=>{let A,P;const{props:K,shapeFlag:I,transition:z,dirs:J}=h;if(A=h.el=o(h.type,w,K&&K.is,K),I&8?c(A,h.children):I&16&&F(h.children,A,null,_,E,Ur(h,w),$,M),J&&Rt(h,null,_,"created"),q(A,h,h.scopeId,$,_),K){for(const ue in K)ue!=="value"&&!gn(ue)&&i(A,ue,null,K[ue],w,_);"value"in K&&i(A,"value",null,K.value,w),(P=K.onVnodeBeforeMount)&&Ie(P,_,h)}J&&Rt(h,null,_,"beforeMount");const te=su(E,z);te&&z.beforeEnter(A),r(A,p,m),((P=K&&K.onVnodeMounted)||te||J)&&ge(()=>{P&&Ie(P,_,h),te&&z.enter(A),J&&Rt(h,null,_,"mounted")},E)},q=(h,p,m,_,E)=>{if(m&&g(h,m),_)for(let w=0;w<_.length;w++)g(h,_[w]);if(E){let w=E.subTree;if(p===w||ar(w.type)&&(w.ssContent===p||w.ssFallback===p)){const $=E.vnode;q(h,$,$.scopeId,$.slotScopeIds,E.parent)}}},F=(h,p,m,_,E,w,$,M,A=0)=>{for(let P=A;P{const M=p.el=h.el;let{patchFlag:A,dynamicChildren:P,dirs:K}=p;A|=h.patchFlag&16;const I=h.props||ae,z=p.props||ae;let J;if(m&&Pt(m,!1),(J=z.onVnodeBeforeUpdate)&&Ie(J,m,p,h),K&&Rt(p,h,m,"beforeUpdate"),m&&Pt(m,!0),(I.innerHTML&&z.innerHTML==null||I.textContent&&z.textContent==null)&&c(M,""),P?B(h.dynamicChildren,P,M,m,_,Ur(p,E),w):$||se(h,p,M,null,m,_,Ur(p,E),w,!1),A>0){if(A&16)U(M,I,z,m,E);else if(A&2&&I.class!==z.class&&i(M,"class",null,z.class,E),A&4&&i(M,"style",I.style,z.style,E),A&8){const te=p.dynamicProps;for(let ue=0;ue{J&&Ie(J,m,p,h),K&&Rt(p,h,m,"updated")},_)},B=(h,p,m,_,E,w,$)=>{for(let M=0;M{if(p!==m){if(p!==ae)for(const w in p)!gn(w)&&!(w in m)&&i(h,w,p[w],null,E,_);for(const w in m){if(gn(w))continue;const $=m[w],M=p[w];$!==M&&w!=="value"&&i(h,w,M,$,E,_)}"value"in m&&i(h,"value",p.value,m.value,E)}},L=(h,p,m,_,E,w,$,M,A)=>{const P=p.el=h?h.el:l(""),K=p.anchor=h?h.anchor:l("");let{patchFlag:I,dynamicChildren:z,slotScopeIds:J}=p;J&&(M=M?M.concat(J):J),h==null?(r(P,m,_),r(K,m,_),F(p.children||[],m,K,E,w,$,M,A)):I>0&&I&64&&z&&h.dynamicChildren?(B(h.dynamicChildren,z,m,E,w,$,M),(p.key!=null||E&&p===E.subTree)&&Gs(h,p,!0)):se(h,p,m,K,E,w,$,M,A)},X=(h,p,m,_,E,w,$,M,A)=>{p.slotScopeIds=M,h==null?p.shapeFlag&512?E.ctx.activate(p,m,_,$,A):j(p,m,_,E,w,$,A):ee(h,p,A)},j=(h,p,m,_,E,w,$)=>{const M=h.component=Su(h,_,E);if(Pr(h)&&(M.ctx.renderer=V),Eu(M,!1,$),M.asyncDep){if(E&&E.registerDep(M,re,$),!h.el){const A=M.subTree=Pe(ye);O(null,A,p,m),h.placeholder=A.el}}else re(M,h,p,m,E,w,$)},ee=(h,p,m)=>{const _=p.component=h.component;if(hu(h,p,m))if(_.asyncDep&&!_.asyncResolved){Z(_,p,m);return}else _.next=p,_.update();else p.el=h.el,_.vnode=p},re=(h,p,m,_,E,w,$)=>{const M=()=>{if(h.isMounted){let{next:I,bu:z,u:J,parent:te,vnode:ue}=h;{const We=Ol(h);if(We){I&&(I.el=ue.el,Z(h,I,$)),We.asyncDep.then(()=>{h.isUnmounted||M()});return}}let le=I,ke;Pt(h,!1),I?(I.el=ue.el,Z(h,I,$)):I=ue,z&&mn(z),(ke=I.props&&I.props.onVnodeBeforeUpdate)&&Ie(ke,te,I,ue),Pt(h,!0);const Ae=_i(h),Ue=h.subTree;h.subTree=Ae,S(Ue,Ae,f(Ue.el),b(Ue),h,E,w),I.el=Ae.el,le===null&&pu(h,Ae.el),J&&ge(J,E),(ke=I.props&&I.props.onVnodeUpdated)&&ge(()=>Ie(ke,te,I,ue),E)}else{let I;const{el:z,props:J}=p,{bm:te,m:ue,parent:le,root:ke,type:Ae}=h,Ue=Mt(p);Pt(h,!1),te&&mn(te),!Ue&&(I=J&&J.onVnodeBeforeMount)&&Ie(I,le,p),Pt(h,!0);{ke.ce&&ke.ce._def.shadowRoot!==!1&&ke.ce._injectChildStyle(Ae);const We=h.subTree=_i(h);S(null,We,m,_,h,E,w),p.el=We.el}if(ue&&ge(ue,E),!Ue&&(I=J&&J.onVnodeMounted)){const We=p;ge(()=>Ie(I,le,We),E)}(p.shapeFlag&256||le&&Mt(le.vnode)&&le.vnode.shapeFlag&256)&&h.a&&ge(h.a,E),h.isMounted=!0,p=m=_=null}};h.scope.on();const A=h.effect=new Mo(M);h.scope.off();const P=h.update=A.run.bind(A),K=h.job=A.runIfDirty.bind(A);K.i=h,K.id=h.uid,A.scheduler=()=>Hs(K),Pt(h,!0),P()},Z=(h,p,m)=>{p.component=h;const _=h.vnode.props;h.vnode=p,h.next=null,Yc(h,p.props,_,m),tu(h,p.children,m),ot(),ai(h),lt()},se=(h,p,m,_,E,w,$,M,A=!1)=>{const P=h&&h.children,K=h?h.shapeFlag:0,I=p.children,{patchFlag:z,shapeFlag:J}=p;if(z>0){if(z&128){ft(P,I,m,_,E,w,$,M,A);return}else if(z&256){et(P,I,m,_,E,w,$,M,A);return}}J&8?(K&16&&Le(P,E,w),I!==P&&c(m,I)):K&16?J&16?ft(P,I,m,_,E,w,$,M,A):Le(P,E,w,!0):(K&8&&c(m,""),J&16&&F(I,m,_,E,w,$,M,A))},et=(h,p,m,_,E,w,$,M,A)=>{h=h||Yt,p=p||Yt;const P=h.length,K=p.length,I=Math.min(P,K);let z;for(z=0;zK?Le(h,E,w,!0,!1,I):F(p,m,_,E,w,$,M,A,I)},ft=(h,p,m,_,E,w,$,M,A)=>{let P=0;const K=p.length;let I=h.length-1,z=K-1;for(;P<=I&&P<=z;){const J=h[P],te=p[P]=A?yt(p[P]):Ye(p[P]);if(wt(J,te))S(J,te,m,null,E,w,$,M,A);else break;P++}for(;P<=I&&P<=z;){const J=h[I],te=p[z]=A?yt(p[z]):Ye(p[z]);if(wt(J,te))S(J,te,m,null,E,w,$,M,A);else break;I--,z--}if(P>I){if(P<=z){const J=z+1,te=Jz)for(;P<=I;)Te(h[P],E,w,!0),P++;else{const J=P,te=P,ue=new Map;for(P=te;P<=z;P++){const Oe=p[P]=A?yt(p[P]):Ye(p[P]);Oe.key!=null&&ue.set(Oe.key,P)}let le,ke=0;const Ae=z-te+1;let Ue=!1,We=0;const sn=new Array(Ae);for(P=0;P=Ae){Te(Oe,E,w,!0);continue}let Ge;if(Oe.key!=null)Ge=ue.get(Oe.key);else for(le=te;le<=z;le++)if(sn[le-te]===0&&wt(Oe,p[le])){Ge=le;break}Ge===void 0?Te(Oe,E,w,!0):(sn[Ge-te]=P+1,Ge>=We?We=Ge:Ue=!0,S(Oe,p[Ge],m,null,E,w,$,M,A),ke++)}const ti=Ue?iu(sn):Yt;for(le=ti.length-1,P=Ae-1;P>=0;P--){const Oe=te+P,Ge=p[Oe],ni=p[Oe+1],ri=Oe+1{const{el:w,type:$,transition:M,children:A,shapeFlag:P}=h;if(P&6){Ke(h.component.subTree,p,m,_);return}if(P&128){h.suspense.move(p,m,_);return}if(P&64){$.move(h,p,m,V);return}if($===Re){r(w,p,m);for(let I=0;IM.enter(w),E);else{const{leave:I,delayLeave:z,afterLeave:J}=M,te=()=>{h.ctx.isUnmounted?s(w):r(w,p,m)},ue=()=>{I(w,()=>{te(),J&&J()})};z?z(w,te,ue):ue()}else r(w,p,m)},Te=(h,p,m,_=!1,E=!1)=>{const{type:w,props:$,ref:M,children:A,dynamicChildren:P,shapeFlag:K,patchFlag:I,dirs:z,cacheIndex:J}=h;if(I===-2&&(E=!1),M!=null&&(ot(),bn(M,null,m,h,!0),lt()),J!=null&&(p.renderCache[J]=void 0),K&256){p.ctx.deactivate(h);return}const te=K&1&&z,ue=!Mt(h);let le;if(ue&&(le=$&&$.onVnodeBeforeUnmount)&&Ie(le,p,h),K&6)qn(h.component,m,_);else{if(K&128){h.suspense.unmount(m,_);return}te&&Rt(h,null,p,"beforeUnmount"),K&64?h.type.remove(h,p,m,V,_):P&&!P.hasOnce&&(w!==Re||I>0&&I&64)?Le(P,p,m,!1,!0):(w===Re&&I&384||!E&&K&16)&&Le(A,p,m),_&&Bt(h)}(ue&&(le=$&&$.onVnodeUnmounted)||te)&&ge(()=>{le&&Ie(le,p,h),te&&Rt(h,null,p,"unmounted")},m)},Bt=h=>{const{type:p,el:m,anchor:_,transition:E}=h;if(p===Re){Ht(m,_);return}if(p===Jn){y(h);return}const w=()=>{s(m),E&&!E.persisted&&E.afterLeave&&E.afterLeave()};if(h.shapeFlag&1&&E&&!E.persisted){const{leave:$,delayLeave:M}=E,A=()=>$(m,w);M?M(h.el,w,A):A()}else w()},Ht=(h,p)=>{let m;for(;h!==p;)m=d(h),s(h),h=m;s(p)},qn=(h,p,m)=>{const{bum:_,scope:E,job:w,subTree:$,um:M,m:A,a:P,parent:K,slots:{__:I}}=h;lr(A),lr(P),_&&mn(_),K&&W(I)&&I.forEach(z=>{K.renderCache[z]=void 0}),E.stop(),w&&(w.flags|=8,Te($,h,p,m)),M&&ge(M,p),ge(()=>{h.isUnmounted=!0},p),p&&p.pendingBranch&&!p.isUnmounted&&h.asyncDep&&!h.asyncResolved&&h.suspenseId===p.pendingId&&(p.deps--,p.deps===0&&p.resolve())},Le=(h,p,m,_=!1,E=!1,w=0)=>{for(let $=w;${if(h.shapeFlag&6)return b(h.component.subTree);if(h.shapeFlag&128)return h.suspense.next();const p=d(h.anchor||h.el),m=p&&p[sl];return m?d(m):p};let D=!1;const N=(h,p,m)=>{h==null?p._vnode&&Te(p._vnode,null,null,!0):S(p._vnode||null,h,p,null,null,null,m),p._vnode=h,D||(D=!0,ai(),el(),D=!1)},V={p:S,um:Te,m:Ke,r:Bt,mt:j,mc:F,pc:se,pbc:B,n:b,o:e};return{render:N,hydrate:void 0,createApp:Gc(N)}}function Ur({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Pt({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function su(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Gs(e,t,n=!1){const r=e.children,s=t.children;if(W(r)&&W(s))for(let i=0;i>1,e[n[l]]0&&(t[r]=n[i-1]),n[i]=r)}}for(i=n.length,o=n[i-1];i-- >0;)n[i]=o,o=t[o];return n}function Ol(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Ol(t)}function lr(e){if(e)for(let t=0;tZe(ou);function $t(e,t,n){return Ml(e,t,n)}function Ml(e,t,n=ae){const{immediate:r,deep:s,flush:i,once:o}=n,l=me({},n),a=t&&r||!t&&i!=="post";let u;if(On){if(i==="sync"){const g=lu();u=g.__watcherHandles||(g.__watcherHandles=[])}else if(!a){const g=()=>{};return g.stop=qe,g.resume=qe,g.pause=qe,g}}const c=Se;l.call=(g,v,S)=>He(g,c,v,S);let f=!1;i==="post"?l.scheduler=g=>{ge(g,c&&c.suspense)}:i!=="sync"&&(f=!0,l.scheduler=(g,v)=>{v?g():Hs(g)}),l.augmentJob=g=>{t&&(g.flags|=4),f&&(g.flags|=2,c&&(g.id=c.uid,g.i=c))};const d=Sc(e,t,l);return On&&(u?u.push(d):a&&d()),d}function au(e,t,n){const r=this.proxy,s=de(e)?e.includes(".")?Ll(r,e):()=>r[e]:e.bind(r,r);let i;Y(t)?i=t:(i=t.handler,n=t);const o=Fn(this),l=Ml(s,i.bind(r),n);return o(),l}function Ll(e,t){const n=t.split(".");return()=>{let r=e;for(let s=0;st==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Fe(t)}Modifiers`]||e[`${Ft(t)}Modifiers`];function uu(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||ae;let s=n;const i=t.startsWith("update:"),o=i&&cu(r,t.slice(7));o&&(o.trim&&(s=n.map(c=>de(c)?c.trim():c)),o.number&&(s=n.map(Da)));let l,a=r[l=Fr(t)]||r[l=Fr(Fe(t))];!a&&i&&(a=r[l=Fr(Ft(t))]),a&&He(a,e,6,s);const u=r[l+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,He(u,e,6,s)}}function $l(e,t,n=!1){const r=t.emitsCache,s=r.get(e);if(s!==void 0)return s;const i=e.emits;let o={},l=!1;if(!Y(e)){const a=u=>{const c=$l(u,t,!0);c&&(l=!0,me(o,c))};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return!i&&!l?(he(e)&&r.set(e,null),null):(W(i)?i.forEach(a=>o[a]=null):me(o,i),he(e)&&r.set(e,o),o)}function Or(e,t){return!e||!yr(t)?!1:(t=t.slice(2).replace(/Once$/,""),oe(e,t[0].toLowerCase()+t.slice(1))||oe(e,Ft(t))||oe(e,t))}function _i(e){const{type:t,vnode:n,proxy:r,withProxy:s,propsOptions:[i],slots:o,attrs:l,emit:a,render:u,renderCache:c,props:f,data:d,setupState:g,ctx:v,inheritAttrs:S}=e,k=ir(e);let O,x;try{if(n.shapeFlag&4){const y=s||r,T=y;O=Ye(u.call(T,y,c,f,g,d,v)),x=l}else{const y=t;O=Ye(y.length>1?y(f,{attrs:l,slots:o,emit:a}):y(f,null)),x=t.props?l:fu(l)}}catch(y){xn.length=0,Cr(y,e,1),O=Pe(ye)}let C=O;if(x&&S!==!1){const y=Object.keys(x),{shapeFlag:T}=C;y.length&&T&7&&(i&&y.some(Os)&&(x=du(x,i)),C=at(C,x,!1,!0))}return n.dirs&&(C=at(C,null,!1,!0),C.dirs=C.dirs?C.dirs.concat(n.dirs):n.dirs),n.transition&&Ct(C,n.transition),O=C,ir(k),O}const fu=e=>{let t;for(const n in e)(n==="class"||n==="style"||yr(n))&&((t||(t={}))[n]=e[n]);return t},du=(e,t)=>{const n={};for(const r in e)(!Os(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function hu(e,t,n){const{props:r,children:s,component:i}=e,{props:o,children:l,patchFlag:a}=t,u=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&a>=0){if(a&1024)return!0;if(a&16)return r?bi(r,o,u):!!o;if(a&8){const c=t.dynamicProps;for(let f=0;fe.__isSuspense;function gu(e,t){t&&t.pendingBranch?W(e)?t.effects.push(...e):t.effects.push(e):Xo(e)}const Re=Symbol.for("v-fgt"),Mr=Symbol.for("v-txt"),ye=Symbol.for("v-cmt"),Jn=Symbol.for("v-stc"),xn=[];let Me=null;function cr(e=!1){xn.push(Me=e?null:[])}function mu(){xn.pop(),Me=xn[xn.length-1]||null}let An=1;function wi(e,t=!1){An+=e,e<0&&Me&&t&&(Me.hasOnce=!0)}function Nl(e){return e.dynamicChildren=An>0?Me||Yt:null,mu(),An>0&&Me&&Me.push(e),e}function Yh(e,t,n,r,s,i){return Nl(jl(e,t,n,r,s,i,!0))}function ur(e,t,n,r,s){return Nl(Pe(e,t,n,r,s,!0))}function en(e){return e?e.__v_isVNode===!0:!1}function wt(e,t){return e.type===t.type&&e.key===t.key}const Il=({key:e})=>e??null,Yn=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?de(e)||pe(e)||Y(e)?{i:_e,r:e,k:t,f:!!n}:e:null);function jl(e,t=null,n=null,r=0,s=null,i=e===Re?0:1,o=!1,l=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Il(t),ref:t&&Yn(t),scopeId:nl,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:r,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:_e};return l?(Qs(a,n),i&128&&e.normalize(a)):n&&(a.shapeFlag|=de(n)?8:16),An>0&&!o&&Me&&(a.patchFlag>0||i&6)&&a.patchFlag!==32&&Me.push(a),a}const Pe=vu;function vu(e,t=null,n=null,r=0,s=null,i=!1){if((!e||e===vl)&&(e=ye),en(e)){const l=at(e,t,!0);return n&&Qs(l,n),An>0&&!i&&Me&&(l.shapeFlag&6?Me[Me.indexOf(e)]=l:Me.push(l)),l.patchFlag=-2,l}if(Pu(e)&&(e=e.__vccOpts),t){t=yu(t);let{class:l,style:a}=t;l&&!de(l)&&(t.class=Sr(l)),he(a)&&(qs(a)&&!W(a)&&(a=me({},a)),t.style=xr(a))}const o=de(e)?1:ar(e)?128:il(e)?64:he(e)?4:Y(e)?2:0;return jl(e,t,n,r,s,o,i,!0)}function yu(e){return e?qs(e)||Cl(e)?me({},e):e:null}function at(e,t,n=!1,r=!1){const{props:s,ref:i,patchFlag:o,children:l,transition:a}=e,u=t?bu(s||{},t):s,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&Il(u),ref:t&&t.ref?n&&i?W(i)?i.concat(Yn(t)):[i,Yn(t)]:Yn(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Re?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:a,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&at(e.ssContent),ssFallback:e.ssFallback&&at(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return a&&r&&Ct(c,a.clone(c)),c}function _u(e=" ",t=0){return Pe(Mr,null,e,t)}function Zh(e="",t=!1){return t?(cr(),ur(ye,null,e)):Pe(ye,null,e)}function Ye(e){return e==null||typeof e=="boolean"?Pe(ye):W(e)?Pe(Re,null,e.slice()):en(e)?yt(e):Pe(Mr,null,String(e))}function yt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:at(e)}function Qs(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(W(t))n=16;else if(typeof t=="object")if(r&65){const s=t.default;s&&(s._c&&(s._d=!1),Qs(e,s()),s._c&&(s._d=!0));return}else{n=32;const s=t._;!s&&!Cl(t)?t._ctx=_e:s===3&&_e&&(_e.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Y(t)?(t={default:t,_ctx:_e},n=32):(t=String(t),r&64?(n=16,t=[_u(t)]):n=8);e.children=t,e.shapeFlag|=n}function bu(...e){const t={};for(let n=0;nSe||_e;let fr,gs;{const e=wr(),t=(n,r)=>{let s;return(s=e[n])||(s=e[n]=[]),s.push(r),i=>{s.length>1?s.forEach(o=>o(i)):s[0](i)}};fr=t("__VUE_INSTANCE_SETTERS__",n=>Se=n),gs=t("__VUE_SSR_SETTERS__",n=>On=n)}const Fn=e=>{const t=Se;return fr(e),e.scope.on(),()=>{e.scope.off(),fr(t)}},xi=()=>{Se&&Se.scope.off(),fr(null)};function Fl(e){return e.vnode.shapeFlag&4}let On=!1;function Eu(e,t=!1,n=!1){t&&gs(t);const{props:r,children:s}=e.vnode,i=Fl(e);Jc(e,r,i,t),eu(e,s,n||t);const o=i?Cu(e,t):void 0;return t&&gs(!1),o}function Cu(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,qc);const{setup:r}=n;if(r){ot();const s=e.setupContext=r.length>1?ql(e):null,i=Fn(e),o=jn(r,e,0,[e.props,s]),l=So(o);if(lt(),i(),(l||e.sp)&&!Mt(e)&&hl(e),l){if(o.then(xi,xi),t)return o.then(a=>{Si(e,a)}).catch(a=>{Cr(a,e,0)});e.asyncDep=o}else Si(e,o)}else Dl(e)}function Si(e,t,n){Y(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:he(t)&&(e.setupState=Jo(t)),Dl(e)}function Dl(e,t,n){const r=e.type;e.render||(e.render=r.render||qe);{const s=Fn(e);ot();try{Hc(e)}finally{lt(),s()}}}const Ru={get(e,t){return xe(e,"get",""),e[t]}};function ql(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,Ru),slots:e.slots,emit:e.emit,expose:t}}function Lr(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Jo(qt(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in wn)return wn[n](e)},has(t,n){return n in t||n in wn}})):e.proxy}function ms(e,t=!0){return Y(e)?e.displayName||e.name:e.name||t&&e.__name}function Pu(e){return Y(e)&&"__vccOpts"in e}const Q=(e,t)=>wc(e,t,On);function G(e,t,n){const r=arguments.length;return r===2?he(t)&&!W(t)?en(t)?Pe(e,null,[t]):Pe(e,t):Pe(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&en(n)&&(n=[n]),Pe(e,t,n))}const Tu="3.5.18";/** -* @vue/runtime-dom v3.5.18 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/let vs;const Ei=typeof window<"u"&&window.trustedTypes;if(Ei)try{vs=Ei.createPolicy("vue",{createHTML:e=>e})}catch{}const Bl=vs?e=>vs.createHTML(e):e=>e,ku="http://www.w3.org/2000/svg",Au="http://www.w3.org/1998/Math/MathML",rt=typeof document<"u"?document:null,Ci=rt&&rt.createElement("template"),Ou={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const s=t==="svg"?rt.createElementNS(ku,e):t==="mathml"?rt.createElementNS(Au,e):n?rt.createElement(e,{is:n}):rt.createElement(e);return e==="select"&&r&&r.multiple!=null&&s.setAttribute("multiple",r.multiple),s},createText:e=>rt.createTextNode(e),createComment:e=>rt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>rt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,s,i){const o=n?n.previousSibling:t.lastChild;if(s&&(s===i||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),n),!(s===i||!(s=s.nextSibling)););else{Ci.innerHTML=Bl(r==="svg"?`${e}`:r==="mathml"?`${e}`:e);const l=Ci.content;if(r==="svg"||r==="mathml"){const a=l.firstChild;for(;a.firstChild;)l.appendChild(a.firstChild);l.removeChild(a)}t.insertBefore(l,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},dt="transition",ln="animation",tn=Symbol("_vtc"),Hl={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Vl=me({},cl,Hl),Mu=e=>(e.displayName="Transition",e.props=Vl,e),Lu=Mu((e,{slots:t})=>G(kc,zl(e),t)),Tt=(e,t=[])=>{W(e)?e.forEach(n=>n(...t)):e&&e(...t)},Ri=e=>e?W(e)?e.some(t=>t.length>1):e.length>1:!1;function zl(e){const t={};for(const L in e)L in Hl||(t[L]=e[L]);if(e.css===!1)return t;const{name:n="v",type:r,duration:s,enterFromClass:i=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:a=i,appearActiveClass:u=o,appearToClass:c=l,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:d=`${n}-leave-active`,leaveToClass:g=`${n}-leave-to`}=e,v=$u(s),S=v&&v[0],k=v&&v[1],{onBeforeEnter:O,onEnter:x,onEnterCancelled:C,onLeave:y,onLeaveCancelled:T,onBeforeAppear:H=O,onAppear:q=x,onAppearCancelled:F=C}=t,R=(L,X,j,ee)=>{L._enterCancelled=ee,pt(L,X?c:l),pt(L,X?u:o),j&&j()},B=(L,X)=>{L._isLeaving=!1,pt(L,f),pt(L,g),pt(L,d),X&&X()},U=L=>(X,j)=>{const ee=L?q:x,re=()=>R(X,L,j);Tt(ee,[X,re]),Pi(()=>{pt(X,L?a:i),Qe(X,L?c:l),Ri(ee)||Ti(X,r,S,re)})};return me(t,{onBeforeEnter(L){Tt(O,[L]),Qe(L,i),Qe(L,o)},onBeforeAppear(L){Tt(H,[L]),Qe(L,a),Qe(L,u)},onEnter:U(!1),onAppear:U(!0),onLeave(L,X){L._isLeaving=!0;const j=()=>B(L,X);Qe(L,f),L._enterCancelled?(Qe(L,d),ys()):(ys(),Qe(L,d)),Pi(()=>{L._isLeaving&&(pt(L,f),Qe(L,g),Ri(y)||Ti(L,r,k,j))}),Tt(y,[L,j])},onEnterCancelled(L){R(L,!1,void 0,!0),Tt(C,[L])},onAppearCancelled(L){R(L,!0,void 0,!0),Tt(F,[L])},onLeaveCancelled(L){B(L),Tt(T,[L])}})}function $u(e){if(e==null)return null;if(he(e))return[Wr(e.enter),Wr(e.leave)];{const t=Wr(e);return[t,t]}}function Wr(e){return qa(e)}function Qe(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[tn]||(e[tn]=new Set)).add(t)}function pt(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const n=e[tn];n&&(n.delete(t),n.size||(e[tn]=void 0))}function Pi(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Nu=0;function Ti(e,t,n,r){const s=e._endId=++Nu,i=()=>{s===e._endId&&r()};if(n!=null)return setTimeout(i,n);const{type:o,timeout:l,propCount:a}=Kl(e,t);if(!o)return r();const u=o+"end";let c=0;const f=()=>{e.removeEventListener(u,d),i()},d=g=>{g.target===e&&++c>=a&&f()};setTimeout(()=>{c(n[v]||"").split(", "),s=r(`${dt}Delay`),i=r(`${dt}Duration`),o=ki(s,i),l=r(`${ln}Delay`),a=r(`${ln}Duration`),u=ki(l,a);let c=null,f=0,d=0;t===dt?o>0&&(c=dt,f=o,d=i.length):t===ln?u>0&&(c=ln,f=u,d=a.length):(f=Math.max(o,u),c=f>0?o>u?dt:ln:null,d=c?c===dt?i.length:a.length:0);const g=c===dt&&/\b(transform|all)(,|$)/.test(r(`${dt}Property`).toString());return{type:c,timeout:f,propCount:d,hasTransform:g}}function ki(e,t){for(;e.lengthAi(n)+Ai(e[r])))}function Ai(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function ys(){return document.body.offsetHeight}function Iu(e,t,n){const r=e[tn];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const dr=Symbol("_vod"),Ul=Symbol("_vsh"),Xh={beforeMount(e,{value:t},{transition:n}){e[dr]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):an(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),an(e,!0),r.enter(e)):r.leave(e,()=>{an(e,!1)}):an(e,t))},beforeUnmount(e,{value:t}){an(e,t)}};function an(e,t){e.style.display=t?e[dr]:"none",e[Ul]=!t}const Wl=Symbol("");function ep(e){const t=ze();if(!t)return;const n=t.ut=(s=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(i=>hr(i,s))},r=()=>{const s=e(t.proxy);t.ce?hr(t.ce,s):_s(t.subTree,s),n(s)};gl(()=>{Xo(r)}),kr(()=>{$t(r,qe,{flush:"post"});const s=new MutationObserver(r);s.observe(t.subTree.el.parentNode,{childList:!0}),Ks(()=>s.disconnect())})}function _s(e,t){if(e.shapeFlag&128){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{_s(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)hr(e.el,t);else if(e.type===Re)e.children.forEach(n=>_s(n,t));else if(e.type===Jn){let{el:n,anchor:r}=e;for(;n&&(hr(n,t),n!==r);)n=n.nextSibling}}function hr(e,t){if(e.nodeType===1){const n=e.style;let r="";for(const s in t){const i=Ga(t[s]);n.setProperty(`--${s}`,i),r+=`--${s}: ${i};`}n[Wl]=r}}const ju=/(^|;)\s*display\s*:/;function Fu(e,t,n){const r=e.style,s=de(n);let i=!1;if(n&&!s){if(t)if(de(t))for(const o of t.split(";")){const l=o.slice(0,o.indexOf(":")).trim();n[l]==null&&Zn(r,l,"")}else for(const o in t)n[o]==null&&Zn(r,o,"");for(const o in n)o==="display"&&(i=!0),Zn(r,o,n[o])}else if(s){if(t!==n){const o=r[Wl];o&&(n+=";"+o),r.cssText=n,i=ju.test(n)}}else t&&e.removeAttribute("style");dr in e&&(e[dr]=i?r.display:"",e[Ul]&&(r.display="none"))}const Oi=/\s*!important$/;function Zn(e,t,n){if(W(n))n.forEach(r=>Zn(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=Du(e,t);Oi.test(n)?e.setProperty(Ft(r),n.replace(Oi,""),"important"):e[r]=n}}const Mi=["Webkit","Moz","ms"],Gr={};function Du(e,t){const n=Gr[t];if(n)return n;let r=Fe(t);if(r!=="filter"&&r in e)return Gr[t]=r;r=br(r);for(let s=0;sQr||(zu.then(()=>Qr=0),Qr=Date.now());function Uu(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;He(Wu(r,n.value),t,5,[r])};return n.value=e,n.attached=Ku(),n}function Wu(e,t){if(W(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>s=>!s._stopped&&r&&r(s))}else return t}const Fi=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Gu=(e,t,n,r,s,i)=>{const o=s==="svg";t==="class"?Iu(e,r,o):t==="style"?Fu(e,n,r):yr(t)?Os(t)||Hu(e,t,n,r,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Qu(e,t,r,o))?(Ni(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&$i(e,t,r,o,i,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!de(r))?Ni(e,Fe(t),r,i,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),$i(e,t,r,o))};function Qu(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&Fi(t)&&Y(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const s=e.tagName;if(s==="IMG"||s==="VIDEO"||s==="CANVAS"||s==="SOURCE")return!1}return Fi(t)&&de(n)?!1:t in e}const Gl=new WeakMap,Ql=new WeakMap,pr=Symbol("_moveCb"),Di=Symbol("_enterCb"),Ju=e=>(delete e.props.mode,e),Yu=Ju({name:"TransitionGroup",props:me({},Vl,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=ze(),r=al();let s,i;return zs(()=>{if(!s.length)return;const o=e.moveClass||`${e.name||"v"}-move`;if(!nf(s[0].el,n.vnode.el,o)){s=[];return}s.forEach(Xu),s.forEach(ef);const l=s.filter(tf);ys(),l.forEach(a=>{const u=a.el,c=u.style;Qe(u,o),c.transform=c.webkitTransform=c.transitionDuration="";const f=u[pr]=d=>{d&&d.target!==u||(!d||/transform$/.test(d.propertyName))&&(u.removeEventListener("transitionend",f),u[pr]=null,pt(u,o))};u.addEventListener("transitionend",f)}),s=[]}),()=>{const o=ne(e),l=zl(o);let a=o.tag||Re;if(s=[],i)for(let u=0;u{l.split(/\s+/).forEach(a=>a&&r.classList.remove(a))}),n.split(/\s+/).forEach(l=>l&&r.classList.add(l)),r.style.display="none";const i=t.nodeType===1?t:t.parentNode;i.appendChild(r);const{hasTransform:o}=Kl(r);return i.removeChild(r),o}const rf=["ctrl","shift","alt","meta"],sf={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>rf.some(n=>e[`${n}Key`]&&!t.includes(n))},tp=(e,t)=>{const n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=(s,...i)=>{for(let o=0;o{const t=lf().createApp(...e),{mount:n}=t;return t.mount=r=>{const s=cf(r);if(!s)return;const i=t._component;!Y(i)&&!i.render&&!i.template&&(i.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const o=n(s,!1,af(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),o},t};function af(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function cf(e){return de(e)?document.querySelector(e):e}function $r(e,t,n,r){return Object.defineProperty(e,t,{get:n,set:r,enumerable:!0}),e}function np(e,t){for(const n in t)$r(e,n,t[n]);return e}const It=Nt(!1);let bs;function uf(e,t){const n=/(edg|edge|edga|edgios)\/([\w.]+)/.exec(e)||/(opr)[\/]([\w.]+)/.exec(e)||/(vivaldi)[\/]([\w.]+)/.exec(e)||/(chrome|crios)[\/]([\w.]+)/.exec(e)||/(version)(applewebkit)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(e)||/(webkit)[\/]([\w.]+).*(version)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(e)||/(firefox|fxios)[\/]([\w.]+)/.exec(e)||/(webkit)[\/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[\/]([\w.]+)/.exec(e)||[];return{browser:n[5]||n[3]||n[1]||"",version:n[4]||n[2]||"0",platform:t[0]||""}}function ff(e){return/(ipad)/.exec(e)||/(ipod)/.exec(e)||/(windows phone)/.exec(e)||/(iphone)/.exec(e)||/(kindle)/.exec(e)||/(silk)/.exec(e)||/(android)/.exec(e)||/(win)/.exec(e)||/(mac)/.exec(e)||/(linux)/.exec(e)||/(cros)/.exec(e)||/(playbook)/.exec(e)||/(bb)/.exec(e)||/(blackberry)/.exec(e)||[]}const Yl="ontouchstart"in window||window.navigator.maxTouchPoints>0;function df(e){const t=e.toLowerCase(),n=ff(t),r=uf(t,n),s={mobile:!1,desktop:!1,cordova:!1,capacitor:!1,nativeMobile:!1,electron:!1,bex:!1,linux:!1,mac:!1,win:!1,cros:!1,chrome:!1,firefox:!1,opera:!1,safari:!1,vivaldi:!1,edge:!1,edgeChromium:!1,ie:!1,webkit:!1,android:!1,ios:!1,ipad:!1,iphone:!1,ipod:!1,kindle:!1,winphone:!1,blackberry:!1,playbook:!1,silk:!1};r.browser&&(s[r.browser]=!0,s.version=r.version,s.versionNumber=parseInt(r.version,10)),r.platform&&(s[r.platform]=!0);const i=s.android||s.ios||s.bb||s.blackberry||s.ipad||s.iphone||s.ipod||s.kindle||s.playbook||s.silk||s["windows phone"];if(i===!0||t.indexOf("mobile")!==-1?s.mobile=!0:s.desktop=!0,s["windows phone"]&&(s.winphone=!0,delete s["windows phone"]),s.edga||s.edgios||s.edg?(s.edge=!0,r.browser="edge"):s.crios?(s.chrome=!0,r.browser="chrome"):s.fxios&&(s.firefox=!0,r.browser="firefox"),(s.ipod||s.ipad||s.iphone)&&(s.ios=!0),s.vivaldi&&(r.browser="vivaldi",s.vivaldi=!0),(s.chrome||s.opr||s.safari||s.vivaldi||s.mobile===!0&&s.ios!==!0&&i!==!0)&&(s.webkit=!0),s.opr&&(r.browser="opera",s.opera=!0),s.safari&&(s.blackberry||s.bb?(r.browser="blackberry",s.blackberry=!0):s.playbook?(r.browser="playbook",s.playbook=!0):s.android?(r.browser="android",s.android=!0):s.kindle?(r.browser="kindle",s.kindle=!0):s.silk&&(r.browser="silk",s.silk=!0)),s.name=r.browser,s.platform=r.platform,t.indexOf("electron")!==-1)s.electron=!0;else if(document.location.href.indexOf("-extension://")!==-1)s.bex=!0;else{if(window.Capacitor!==void 0?(s.capacitor=!0,s.nativeMobile=!0,s.nativeMobileWrapper="capacitor"):(window._cordovaNative!==void 0||window.cordova!==void 0)&&(s.cordova=!0,s.nativeMobile=!0,s.nativeMobileWrapper="cordova"),It.value===!0&&(bs={is:{...s}}),Yl===!0&&s.mac===!0&&(s.desktop===!0&&s.safari===!0||s.nativeMobile===!0&&s.android!==!0&&s.ios!==!0&&s.ipad!==!0)){delete s.mac,delete s.desktop;const o=Math.min(window.innerHeight,window.innerWidth)>414?"ipad":"iphone";Object.assign(s,{mobile:!0,ios:!0,platform:o,[o]:!0})}s.mobile!==!0&&window.navigator.userAgentData&&window.navigator.userAgentData.mobile&&(delete s.desktop,s.mobile=!0)}return s}const Bi=navigator.userAgent||navigator.vendor||window.opera,hf={has:{touch:!1,webStorage:!1},within:{iframe:!1}},Xe={userAgent:Bi,is:df(Bi),has:{touch:Yl},within:{iframe:window.self!==window.top}},ws={install(e){const{$q:t}=e;It.value===!0?(e.onSSRHydrated.push(()=>{Object.assign(t.platform,Xe),It.value=!1}),t.platform=Dt(this)):t.platform=this}};{let e;$r(Xe.has,"webStorage",()=>{if(e!==void 0)return e;try{if(window.localStorage)return e=!0,!0}catch{}return e=!1,!1}),Object.assign(ws,Xe),It.value===!0&&(Object.assign(ws,bs,hf),bs=null)}function Dn(e){return qt(Rr(e))}function pf(e){return qt(e)}const Nr=(e,t)=>{const n=Dt(e);for(const r in e)$r(t,r,()=>n[r],s=>{n[r]=s});return t},jt={hasPassive:!1,passiveCapture:!0,notPassiveCapture:!0};try{const e=Object.defineProperty({},"passive",{get(){Object.assign(jt,{hasPassive:!0,passive:{passive:!0},notPassive:{passive:!1},passiveCapture:{passive:!0,capture:!0},notPassiveCapture:{passive:!1,capture:!0}})}});window.addEventListener("qtest",null,e),window.removeEventListener("qtest",null,e)}catch{}function Mn(){}function rp(e){return e.button===0}function gf(e){return e.touches&&e.touches[0]?e=e.touches[0]:e.changedTouches&&e.changedTouches[0]?e=e.changedTouches[0]:e.targetTouches&&e.targetTouches[0]&&(e=e.targetTouches[0]),{top:e.clientY,left:e.clientX}}function sp(e){if(e.path)return e.path;if(e.composedPath)return e.composedPath();const t=[];let n=e.target;for(;n;){if(t.push(n),n.tagName==="HTML")return t.push(document),t.push(window),t;n=n.parentElement}}function Zl(e){e.stopPropagation()}function xs(e){e.cancelable!==!1&&e.preventDefault()}function zt(e){e.cancelable!==!1&&e.preventDefault(),e.stopPropagation()}function ip(e,t){if(e===void 0||t===!0&&e.__dragPrevented===!0)return;const n=t===!0?r=>{r.__dragPrevented=!0,r.addEventListener("dragstart",xs,jt.notPassiveCapture)}:r=>{delete r.__dragPrevented,r.removeEventListener("dragstart",xs,jt.notPassiveCapture)};e.querySelectorAll("a, img").forEach(n)}function mf(e,t,n){const r=`__q_${t}_evt`;e[r]=e[r]!==void 0?e[r].concat(n):n,n.forEach(s=>{s[0].addEventListener(s[1],e[s[2]],jt[s[3]])})}function vf(e,t){const n=`__q_${t}_evt`;e[n]!==void 0&&(e[n].forEach(r=>{r[0].removeEventListener(r[1],e[r[2]],jt[r[3]])}),e[n]=void 0)}function yf(e,t=250,n){let r=null;function s(){const i=arguments,o=()=>{r=null,e.apply(this,i)};r!==null&&clearTimeout(r),r=setTimeout(o,t)}return s.cancel=()=>{r!==null&&clearTimeout(r)},s}const Jr=["sm","md","lg","xl"],{passive:Hi}=jt,_f=Nr({width:0,height:0,name:"xs",sizes:{sm:600,md:1024,lg:1440,xl:1920},lt:{sm:!0,md:!0,lg:!0,xl:!0},gt:{xs:!1,sm:!1,md:!1,lg:!1},xs:!0,sm:!1,md:!1,lg:!1,xl:!1},{setSizes:Mn,setDebounce:Mn,install({$q:e,onSSRHydrated:t}){if(e.screen=this,this.__installed===!0){e.config.screen!==void 0&&(e.config.screen.bodyClasses===!1?document.body.classList.remove(`screen--${this.name}`):this.__update(!0));return}const{visualViewport:n}=window,r=n||window,s=document.scrollingElement||document.documentElement,i=n===void 0||Xe.is.mobile===!0?()=>[Math.max(window.innerWidth,s.clientWidth),Math.max(window.innerHeight,s.clientHeight)]:()=>[n.width*n.scale+window.innerWidth-s.clientWidth,n.height*n.scale+window.innerHeight-s.clientHeight],o=e.config.screen?.bodyClasses===!0;this.__update=f=>{const[d,g]=i();if(g!==this.height&&(this.height=g),d!==this.width)this.width=d;else if(f!==!0)return;let v=this.sizes;this.gt.xs=d>=v.sm,this.gt.sm=d>=v.md,this.gt.md=d>=v.lg,this.gt.lg=d>=v.xl,this.lt.sm=d{Jr.forEach(d=>{f[d]!==void 0&&(a[d]=f[d])})},this.setDebounce=f=>{u=f};const c=()=>{const f=getComputedStyle(document.body);f.getPropertyValue("--q-size-sm")&&Jr.forEach(d=>{this.sizes[d]=parseInt(f.getPropertyValue(`--q-size-${d}`),10)}),this.setSizes=d=>{Jr.forEach(g=>{d[g]&&(this.sizes[g]=d[g])}),this.__update(!0)},this.setDebounce=d=>{l!==void 0&&r.removeEventListener("resize",l,Hi),l=d>0?yf(this.__update,d):this.__update,r.addEventListener("resize",l,Hi)},this.setDebounce(u),Object.keys(a).length!==0?(this.setSizes(a),a=void 0):this.__update(),o===!0&&this.name==="xs"&&document.body.classList.add("screen--xs")};It.value===!0?t.push(c):c()}}),be=Nr({isActive:!1,mode:!1},{__media:void 0,set(e){be.mode=e,e==="auto"?(be.__media===void 0&&(be.__media=window.matchMedia("(prefers-color-scheme: dark)"),be.__updateMedia=()=>{be.set("auto")},be.__media.addListener(be.__updateMedia)),e=be.__media.matches):be.__media!==void 0&&(be.__media.removeListener(be.__updateMedia),be.__media=void 0),be.isActive=e===!0,document.body.classList.remove(`body--${e===!0?"light":"dark"}`),document.body.classList.add(`body--${e===!0?"dark":"light"}`)},toggle(){be.set(be.isActive===!1)},install({$q:e,ssrContext:t}){const n=e.config.dark;e.dark=this,this.__installed!==!0&&this.set(n!==void 0?n:!1)}});function bf(e,t,n=document.body){if(typeof e!="string")throw new TypeError("Expected a string as propName");if(typeof t!="string")throw new TypeError("Expected a string as value");if(!(n instanceof Element))throw new TypeError("Expected a DOM element");n.style.setProperty(`--q-${e}`,t)}let Xl=!1;function wf(e){Xl=e.isComposing===!0}function xf(e){return Xl===!0||e!==Object(e)||e.isComposing===!0||e.qKeyEvent===!0}function Ss(e,t){return xf(e)===!0?!1:[].concat(t).includes(e.keyCode)}function ea(e){if(e.ios===!0)return"ios";if(e.android===!0)return"android"}function Sf({is:e,has:t,within:n},r){const s=[e.desktop===!0?"desktop":"mobile",`${t.touch===!1?"no-":""}touch`];if(e.mobile===!0){const i=ea(e);i!==void 0&&s.push("platform-"+i)}if(e.nativeMobile===!0){const i=e.nativeMobileWrapper;s.push(i),s.push("native-mobile"),e.ios===!0&&(r[i]===void 0||r[i].iosStatusBarPadding!==!1)&&s.push("q-ios-padding")}else e.electron===!0?s.push("electron"):e.bex===!0&&s.push("bex");return n.iframe===!0&&s.push("within-iframe"),s}function Ef(){const{is:e}=Xe,t=document.body.className,n=new Set(t.replace(/ {2}/g," ").split(" "));if(e.nativeMobile!==!0&&e.electron!==!0&&e.bex!==!0){if(e.desktop===!0)n.delete("mobile"),n.delete("platform-ios"),n.delete("platform-android"),n.add("desktop");else if(e.mobile===!0){n.delete("desktop"),n.add("mobile"),n.delete("platform-ios"),n.delete("platform-android");const s=ea(e);s!==void 0&&n.add(`platform-${s}`)}}Xe.has.touch===!0&&(n.delete("no-touch"),n.add("touch")),Xe.within.iframe===!0&&n.add("within-iframe");const r=Array.from(n).join(" ");t!==r&&(document.body.className=r)}function Cf(e){for(const t in e)bf(t,e[t])}const Rf={install(e){if(this.__installed!==!0){if(It.value===!0)Ef();else{const{$q:t}=e;t.config.brand!==void 0&&Cf(t.config.brand);const n=Sf(Xe,t.config);document.body.classList.add.apply(document.body.classList,n)}Xe.is.ios===!0&&document.body.addEventListener("touchstart",Mn),window.addEventListener("keydown",wf,!0)}}},ta=()=>!0;function Pf(e){return typeof e=="string"&&e!==""&&e!=="/"&&e!=="#/"}function Tf(e){return e.startsWith("#")===!0&&(e=e.substring(1)),e.startsWith("/")===!1&&(e="/"+e),e.endsWith("/")===!0&&(e=e.substring(0,e.length-1)),"#"+e}function kf(e){if(e.backButtonExit===!1)return()=>!1;if(e.backButtonExit==="*")return ta;const t=["#/"];return Array.isArray(e.backButtonExit)===!0&&t.push(...e.backButtonExit.filter(Pf).map(Tf)),()=>t.includes(window.location.hash)}const Af={__history:[],add:Mn,remove:Mn,install({$q:e}){if(this.__installed===!0)return;const{cordova:t,capacitor:n}=Xe.is;if(t!==!0&&n!==!0)return;const r=e.config[t===!0?"cordova":"capacitor"];if(r?.backButton===!1||n===!0&&(window.Capacitor===void 0||window.Capacitor.Plugins.App===void 0))return;this.add=o=>{o.condition===void 0&&(o.condition=ta),this.__history.push(o)},this.remove=o=>{const l=this.__history.indexOf(o);l>=0&&this.__history.splice(l,1)};const s=kf(Object.assign({backButtonExit:!0},r)),i=()=>{if(this.__history.length){const o=this.__history[this.__history.length-1];o.condition()===!0&&(this.__history.pop(),o.handler())}else s()===!0?navigator.app.exitApp():window.history.back()};t===!0?document.addEventListener("deviceready",()=>{document.addEventListener("backbutton",i,!1)}):window.Capacitor.Plugins.App.addListener("backButton",i)}},Vi={isoName:"en-US",nativeName:"English (US)",label:{clear:"Clear",ok:"OK",cancel:"Cancel",close:"Close",set:"Set",select:"Select",reset:"Reset",remove:"Remove",update:"Update",create:"Create",search:"Search",filter:"Filter",refresh:"Refresh",expand:e=>e?`Expand "${e}"`:"Expand",collapse:e=>e?`Collapse "${e}"`:"Collapse"},date:{days:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),daysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),firstDayOfWeek:0,format24h:!1,pluralDay:"days",prevMonth:"Previous month",nextMonth:"Next month",prevYear:"Previous year",nextYear:"Next year",today:"Today",prevRangeYears:e=>`Previous ${e} years`,nextRangeYears:e=>`Next ${e} years`},table:{noData:"No data available",noResults:"No matching records found",loading:"Loading...",selectedRecords:e=>e===1?"1 record selected.":(e===0?"No":e)+" records selected.",recordsPerPage:"Records per page:",allRows:"All",pagination:(e,t,n)=>e+"-"+t+" of "+n,columns:"Columns"},pagination:{first:"First page",prev:"Previous page",next:"Next page",last:"Last page"},editor:{url:"URL",bold:"Bold",italic:"Italic",strikethrough:"Strikethrough",underline:"Underline",unorderedList:"Unordered List",orderedList:"Ordered List",subscript:"Subscript",superscript:"Superscript",hyperlink:"Hyperlink",toggleFullscreen:"Toggle Fullscreen",quote:"Quote",left:"Left align",center:"Center align",right:"Right align",justify:"Justify align",print:"Print",outdent:"Decrease indentation",indent:"Increase indentation",removeFormat:"Remove formatting",formatting:"Formatting",fontSize:"Font Size",align:"Align",hr:"Insert Horizontal Rule",undo:"Undo",redo:"Redo",heading1:"Heading 1",heading2:"Heading 2",heading3:"Heading 3",heading4:"Heading 4",heading5:"Heading 5",heading6:"Heading 6",paragraph:"Paragraph",code:"Code",size1:"Very small",size2:"A bit small",size3:"Normal",size4:"Medium-large",size5:"Big",size6:"Very big",size7:"Maximum",defaultFont:"Default Font",viewSource:"View Source"},tree:{noNodes:"No nodes available",noResults:"No matching nodes found"}};function zi(){const e=Array.isArray(navigator.languages)===!0&&navigator.languages.length!==0?navigator.languages[0]:navigator.language;if(typeof e=="string")return e.split(/[-_]/).map((t,n)=>n===0?t.toLowerCase():n>1||t.length<4?t.toUpperCase():t[0].toUpperCase()+t.slice(1).toLowerCase()).join("-")}const _t=Nr({__qLang:{}},{getLocale:zi,set(e=Vi,t){const n={...e,rtl:e.rtl===!0,getLocale:zi};{if(n.set=_t.set,_t.__langConfig===void 0||_t.__langConfig.noHtmlAttrs!==!0){const r=document.documentElement;r.setAttribute("dir",n.rtl===!0?"rtl":"ltr"),r.setAttribute("lang",n.isoName)}Object.assign(_t.__qLang,n)}},install({$q:e,lang:t,ssrContext:n}){e.lang=_t.__qLang,_t.__langConfig=e.config.lang,this.__installed===!0?t!==void 0&&this.set(t):(this.props=new Proxy(this.__qLang,{get(){return Reflect.get(...arguments)},ownKeys(r){return Reflect.ownKeys(r).filter(s=>s!=="set"&&s!=="getLocale")}}),this.set(t||Vi))}}),Of={name:"material-icons",type:{positive:"check_circle",negative:"warning",info:"info",warning:"priority_high"},arrow:{up:"arrow_upward",right:"arrow_forward",down:"arrow_downward",left:"arrow_back",dropdown:"arrow_drop_down"},chevron:{left:"chevron_left",right:"chevron_right"},colorPicker:{spectrum:"gradient",tune:"tune",palette:"style"},pullToRefresh:{icon:"refresh"},carousel:{left:"chevron_left",right:"chevron_right",up:"keyboard_arrow_up",down:"keyboard_arrow_down",navigationIcon:"lens"},chip:{remove:"cancel",selected:"check"},datetime:{arrowLeft:"chevron_left",arrowRight:"chevron_right",now:"access_time",today:"today"},editor:{bold:"format_bold",italic:"format_italic",strikethrough:"strikethrough_s",underline:"format_underlined",unorderedList:"format_list_bulleted",orderedList:"format_list_numbered",subscript:"vertical_align_bottom",superscript:"vertical_align_top",hyperlink:"link",toggleFullscreen:"fullscreen",quote:"format_quote",left:"format_align_left",center:"format_align_center",right:"format_align_right",justify:"format_align_justify",print:"print",outdent:"format_indent_decrease",indent:"format_indent_increase",removeFormat:"format_clear",formatting:"text_format",fontSize:"format_size",align:"format_align_left",hr:"remove",undo:"undo",redo:"redo",heading:"format_size",code:"code",size:"format_size",font:"font_download",viewSource:"code"},expansionItem:{icon:"keyboard_arrow_down",denseIcon:"arrow_drop_down"},fab:{icon:"add",activeIcon:"close"},field:{clear:"cancel",error:"error"},pagination:{first:"first_page",prev:"keyboard_arrow_left",next:"keyboard_arrow_right",last:"last_page"},rating:{icon:"grade"},stepper:{done:"check",active:"edit",error:"warning"},tabs:{left:"chevron_left",right:"chevron_right",up:"keyboard_arrow_up",down:"keyboard_arrow_down"},table:{arrowUp:"arrow_upward",warning:"warning",firstPage:"first_page",prevPage:"chevron_left",nextPage:"chevron_right",lastPage:"last_page"},tree:{icon:"play_arrow"},uploader:{done:"done",clear:"clear",add:"add_box",upload:"cloud_upload",removeQueue:"clear_all",removeUploaded:"done_all"}},gr=Nr({iconMapFn:null,__qIconSet:{}},{set(e,t){const n={...e};n.set=gr.set,Object.assign(gr.__qIconSet,n)},install({$q:e,iconSet:t,ssrContext:n}){e.config.iconMapFn!==void 0&&(this.iconMapFn=e.config.iconMapFn),e.iconSet=this.__qIconSet,$r(e,"iconMapFn",()=>this.iconMapFn,r=>{this.iconMapFn=r}),this.__installed===!0?t!==void 0&&this.set(t):(this.props=new Proxy(this.__qIconSet,{get(){return Reflect.get(...arguments)},ownKeys(r){return Reflect.ownKeys(r).filter(s=>s!=="set")}}),this.set(t||Of))}}),Mf="_q_",op="_q_l_",lp="_q_pc_",ap="_q_fo_",cp="_q_tabs_";function up(){}const mr={};let na=!1;function Lf(){na=!0}function Yr(e,t){if(e===t)return!0;if(e!==null&&t!==null&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;let n,r;if(e.constructor===Array){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(Yr(e[r],t[r])!==!0)return!1;return!0}if(e.constructor===Map){if(e.size!==t.size)return!1;let i=e.entries();for(r=i.next();r.done!==!0;){if(t.has(r.value[0])!==!0)return!1;r=i.next()}for(i=e.entries(),r=i.next();r.done!==!0;){if(Yr(r.value[1],t.get(r.value[0]))!==!0)return!1;r=i.next()}return!0}if(e.constructor===Set){if(e.size!==t.size)return!1;const i=e.entries();for(r=i.next();r.done!==!0;){if(t.has(r.value[0])!==!0)return!1;r=i.next()}return!0}if(e.buffer!=null&&e.buffer.constructor===ArrayBuffer){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();const s=Object.keys(e).filter(i=>e[i]!==void 0);if(n=s.length,n!==Object.keys(t).filter(i=>t[i]!==void 0).length)return!1;for(r=n;r--!==0;){const i=s[r];if(Yr(e[i],t[i])!==!0)return!1}return!0}return e!==e&&t!==t}function Ln(e){return e!==null&&typeof e=="object"&&Array.isArray(e)!==!0}function fp(e){return Object.prototype.toString.call(e)==="[object Date]"}function dp(e){return typeof e=="number"&&isFinite(e)}const Ki=[ws,Rf,be,_f,Af,_t,gr];function $f(e,t){const n=Jl(e);n.config.globalProperties=t.config.globalProperties;const{reload:r,...s}=t._context;return Object.assign(n._context,s),n}function Ui(e,t){t.forEach(n=>{n.install(e),n.__installed=!0})}function Nf(e,t,n){e.config.globalProperties.$q=n.$q,e.provide(Mf,n.$q),Ui(n,Ki),t.components!==void 0&&Object.values(t.components).forEach(r=>{Ln(r)===!0&&r.name!==void 0&&e.component(r.name,r)}),t.directives!==void 0&&Object.values(t.directives).forEach(r=>{Ln(r)===!0&&r.name!==void 0&&e.directive(r.name,r)}),t.plugins!==void 0&&Ui(n,Object.values(t.plugins).filter(r=>typeof r.install=="function"&&Ki.includes(r)===!1)),It.value===!0&&(n.$q.onSSRHydrated=()=>{n.onSSRHydrated.forEach(r=>{r()}),n.$q.onSSRHydrated=()=>{}})}const If=function(e,t={}){const n={version:"2.18.2"};na===!1?(t.config!==void 0&&Object.assign(mr,t.config),n.config={...mr},Lf()):n.config=t.config||{},Nf(e,t,{parentApp:e,$q:n,lang:t.lang,iconSet:t.iconSet,onSSRHydrated:[]})},jf={name:"Quasar",version:"2.18.2",install:If,lang:_t,iconSet:gr},Ff=Rr({name:"OpenwbKoalaWebTheme",__name:"App",setup(e){return(t,n)=>{const r=Dc("router-view");return cr(),ur(r)}}});function hp(e){return e}/*! - * pinia v3.0.3 - * (c) 2025 Eduardo San Martin Morote - * @license MIT - */let ra;const Ir=e=>ra=e,sa=Symbol();function Es(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Sn;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Sn||(Sn={}));function Df(){const e=Ao(!0),t=e.run(()=>Nt({}));let n=[],r=[];const s=qt({install(i){Ir(s),s._a=i,i.provide(sa,s),i.config.globalProperties.$pinia=s,r.forEach(o=>n.push(o)),r=[]},use(i){return this._a?n.push(i):r.push(i),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return s}const ia=()=>{};function Wi(e,t,n,r=ia){e.push(t);const s=()=>{const i=e.indexOf(t);i>-1&&(e.splice(i,1),r())};return!n&&Oo()&&Qa(s),s}function Kt(e,...t){e.slice().forEach(n=>{n(...t)})}const qf=e=>e(),Gi=Symbol(),Zr=Symbol();function Cs(e,t){e instanceof Map&&t instanceof Map?t.forEach((n,r)=>e.set(r,n)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const r=t[n],s=e[n];Es(s)&&Es(r)&&e.hasOwnProperty(n)&&!pe(r)&&!St(r)?e[n]=Cs(s,r):e[n]=r}return e}const Bf=Symbol();function Hf(e){return!Es(e)||!Object.prototype.hasOwnProperty.call(e,Bf)}const{assign:gt}=Object;function Vf(e){return!!(pe(e)&&e.effect)}function zf(e,t,n,r){const{state:s,actions:i,getters:o}=t,l=n.state.value[e];let a;function u(){l||(n.state.value[e]=s?s():{});const c=vc(n.state.value[e]);return gt(c,i,Object.keys(o||{}).reduce((f,d)=>(f[d]=qt(Q(()=>{Ir(n);const g=n._s.get(e);return o[d].call(g,g)})),f),{}))}return a=oa(e,u,t,n,r,!0),a}function oa(e,t,n={},r,s,i){let o;const l=gt({actions:{}},n),a={deep:!0};let u,c,f=[],d=[],g;const v=r.state.value[e];!i&&!v&&(r.state.value[e]={}),Nt({});let S;function k(F){let R;u=c=!1,typeof F=="function"?(F(r.state.value[e]),R={type:Sn.patchFunction,storeId:e,events:g}):(Cs(r.state.value[e],F),R={type:Sn.patchObject,payload:F,storeId:e,events:g});const B=S=Symbol();Bs().then(()=>{S===B&&(u=!0)}),c=!0,Kt(f,R,r.state.value[e])}const O=i?function(){const{state:R}=n,B=R?R():{};this.$patch(U=>{gt(U,B)})}:ia;function x(){o.stop(),f=[],d=[],r._s.delete(e)}const C=(F,R="")=>{if(Gi in F)return F[Zr]=R,F;const B=function(){Ir(r);const U=Array.from(arguments),L=[],X=[];function j(Z){L.push(Z)}function ee(Z){X.push(Z)}Kt(d,{args:U,name:B[Zr],store:T,after:j,onError:ee});let re;try{re=F.apply(this&&this.$id===e?this:T,U)}catch(Z){throw Kt(X,Z),Z}return re instanceof Promise?re.then(Z=>(Kt(L,Z),Z)).catch(Z=>(Kt(X,Z),Promise.reject(Z))):(Kt(L,re),re)};return B[Gi]=!0,B[Zr]=R,B},y={_p:r,$id:e,$onAction:Wi.bind(null,d),$patch:k,$reset:O,$subscribe(F,R={}){const B=Wi(f,F,R.detached,()=>U()),U=o.run(()=>$t(()=>r.state.value[e],L=>{(R.flush==="sync"?c:u)&&F({storeId:e,type:Sn.direct,events:g},L)},gt({},a,R)));return B},$dispose:x},T=Dt(y);r._s.set(e,T);const q=(r._a&&r._a.runWithContext||qf)(()=>r._e.run(()=>(o=Ao()).run(()=>t({action:C}))));for(const F in q){const R=q[F];if(pe(R)&&!Vf(R)||St(R))i||(v&&Hf(R)&&(pe(R)?R.value=v[F]:Cs(R,v[F])),r.state.value[e][F]=R);else if(typeof R=="function"){const B=C(R,F);q[F]=B,l.actions[F]=R}}return gt(T,q),gt(ne(T),q),Object.defineProperty(T,"$state",{get:()=>r.state.value[e],set:F=>{k(R=>{gt(R,F)})}}),r._p.forEach(F=>{gt(T,o.run(()=>F({store:T,app:r._a,pinia:r,options:l})))}),v&&i&&n.hydrate&&n.hydrate(T.$state,v),u=!0,c=!0,T}/*! #__NO_SIDE_EFFECTS__ */function pp(e,t,n){let r;const s=typeof t=="function";r=s?n:t;function i(o,l){const a=Qc();return o=o||(a?Ze(sa,null):null),o&&Ir(o),o=ra,o._s.has(e)||(s?oa(e,t,r,o):zf(e,r,o)),o._s.get(e)}return i.$id=e,i}const Xr=()=>Df();/*! - * vue-router v4.5.1 - * (c) 2025 Eduardo San Martin Morote - * @license MIT - */const Jt=typeof document<"u";function la(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Kf(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&la(e.default)}const ie=Object.assign;function es(e,t){const n={};for(const r in t){const s=t[r];n[r]=Ve(s)?s.map(e):e(s)}return n}const En=()=>{},Ve=Array.isArray,aa=/#/g,Uf=/&/g,Wf=/\//g,Gf=/=/g,Qf=/\?/g,ca=/\+/g,Jf=/%5B/g,Yf=/%5D/g,ua=/%5E/g,Zf=/%60/g,fa=/%7B/g,Xf=/%7C/g,da=/%7D/g,ed=/%20/g;function Js(e){return encodeURI(""+e).replace(Xf,"|").replace(Jf,"[").replace(Yf,"]")}function td(e){return Js(e).replace(fa,"{").replace(da,"}").replace(ua,"^")}function Rs(e){return Js(e).replace(ca,"%2B").replace(ed,"+").replace(aa,"%23").replace(Uf,"%26").replace(Zf,"`").replace(fa,"{").replace(da,"}").replace(ua,"^")}function nd(e){return Rs(e).replace(Gf,"%3D")}function rd(e){return Js(e).replace(aa,"%23").replace(Qf,"%3F")}function sd(e){return e==null?"":rd(e).replace(Wf,"%2F")}function $n(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const id=/\/$/,od=e=>e.replace(id,"");function ts(e,t,n="/"){let r,s={},i="",o="";const l=t.indexOf("#");let a=t.indexOf("?");return l=0&&(a=-1),a>-1&&(r=t.slice(0,a),i=t.slice(a+1,l>-1?l:t.length),s=e(i)),l>-1&&(r=r||t.slice(0,l),o=t.slice(l,t.length)),r=ud(r??t,n),{fullPath:r+(i&&"?")+i+o,path:r,query:s,hash:$n(o)}}function ld(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Qi(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function ad(e,t,n){const r=t.matched.length-1,s=n.matched.length-1;return r>-1&&r===s&&nn(t.matched[r],n.matched[s])&&ha(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function nn(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function ha(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!cd(e[n],t[n]))return!1;return!0}function cd(e,t){return Ve(e)?Ji(e,t):Ve(t)?Ji(t,e):e===t}function Ji(e,t){return Ve(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function ud(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),s=r[r.length-1];(s===".."||s===".")&&r.push("");let i=n.length-1,o,l;for(o=0;o1&&i--;else break;return n.slice(0,i).join("/")+"/"+r.slice(o).join("/")}const ht={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var Nn;(function(e){e.pop="pop",e.push="push"})(Nn||(Nn={}));var Cn;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Cn||(Cn={}));function fd(e){if(!e)if(Jt){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),od(e)}const dd=/^[^#]+#/;function hd(e,t){return e.replace(dd,"#")+t}function pd(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const jr=()=>({left:window.scrollX,top:window.scrollY});function gd(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),s=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!s)return;t=pd(s,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function Yi(e,t){return(history.state?history.state.position-t:-1)+e}const Ps=new Map;function md(e,t){Ps.set(e,t)}function vd(e){const t=Ps.get(e);return Ps.delete(e),t}let yd=()=>location.protocol+"//"+location.host;function pa(e,t){const{pathname:n,search:r,hash:s}=t,i=e.indexOf("#");if(i>-1){let l=s.includes(e.slice(i))?e.slice(i).length:1,a=s.slice(l);return a[0]!=="/"&&(a="/"+a),Qi(a,"")}return Qi(n,e)+r+s}function _d(e,t,n,r){let s=[],i=[],o=null;const l=({state:d})=>{const g=pa(e,location),v=n.value,S=t.value;let k=0;if(d){if(n.value=g,t.value=d,o&&o===v){o=null;return}k=S?d.position-S.position:0}else r(g);s.forEach(O=>{O(n.value,v,{delta:k,type:Nn.pop,direction:k?k>0?Cn.forward:Cn.back:Cn.unknown})})};function a(){o=n.value}function u(d){s.push(d);const g=()=>{const v=s.indexOf(d);v>-1&&s.splice(v,1)};return i.push(g),g}function c(){const{history:d}=window;d.state&&d.replaceState(ie({},d.state,{scroll:jr()}),"")}function f(){for(const d of i)d();i=[],window.removeEventListener("popstate",l),window.removeEventListener("beforeunload",c)}return window.addEventListener("popstate",l),window.addEventListener("beforeunload",c,{passive:!0}),{pauseListeners:a,listen:u,destroy:f}}function Zi(e,t,n,r=!1,s=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:s?jr():null}}function bd(e){const{history:t,location:n}=window,r={value:pa(e,n)},s={value:t.state};s.value||i(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(a,u,c){const f=e.indexOf("#"),d=f>-1?(n.host&&document.querySelector("base")?e:e.slice(f))+a:yd()+e+a;try{t[c?"replaceState":"pushState"](u,"",d),s.value=u}catch(g){console.error(g),n[c?"replace":"assign"](d)}}function o(a,u){const c=ie({},t.state,Zi(s.value.back,a,s.value.forward,!0),u,{position:s.value.position});i(a,c,!0),r.value=a}function l(a,u){const c=ie({},s.value,t.state,{forward:a,scroll:jr()});i(c.current,c,!0);const f=ie({},Zi(r.value,a,null),{position:c.position+1},u);i(a,f,!1),r.value=a}return{location:r,state:s,push:l,replace:o}}function wd(e){e=fd(e);const t=bd(e),n=_d(e,t.state,t.location,t.replace);function r(i,o=!0){o||n.pauseListeners(),history.go(i)}const s=ie({location:"",base:e,go:r,createHref:hd.bind(null,e)},t,n);return Object.defineProperty(s,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(s,"state",{enumerable:!0,get:()=>t.state.value}),s}function xd(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),wd(e)}function Sd(e){return typeof e=="string"||e&&typeof e=="object"}function ga(e){return typeof e=="string"||typeof e=="symbol"}const ma=Symbol("");var Xi;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Xi||(Xi={}));function rn(e,t){return ie(new Error,{type:e,[ma]:!0},t)}function nt(e,t){return e instanceof Error&&ma in e&&(t==null||!!(e.type&t))}const eo="[^/]+?",Ed={sensitive:!1,strict:!1,start:!0,end:!0},Cd=/[.+*?^${}()[\]/\\]/g;function Rd(e,t){const n=ie({},Ed,t),r=[];let s=n.start?"^":"";const i=[];for(const u of e){const c=u.length?[]:[90];n.strict&&!u.length&&(s+="/");for(let f=0;ft.length?t.length===1&&t[0]===80?1:-1:0}function va(e,t){let n=0;const r=e.score,s=t.score;for(;n0&&t[t.length-1]<0}const Td={type:0,value:""},kd=/[a-zA-Z0-9_]/;function Ad(e){if(!e)return[[]];if(e==="/")return[[Td]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(g){throw new Error(`ERR (${n})/"${u}": ${g}`)}let n=0,r=n;const s=[];let i;function o(){i&&s.push(i),i=[]}let l=0,a,u="",c="";function f(){u&&(n===0?i.push({type:0,value:u}):n===1||n===2||n===3?(i.length>1&&(a==="*"||a==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),i.push({type:1,value:u,regexp:c,repeatable:a==="*"||a==="+",optional:a==="*"||a==="?"})):t("Invalid state to consume buffer"),u="")}function d(){u+=a}for(;l{o(C)}:En}function o(f){if(ga(f)){const d=r.get(f);d&&(r.delete(f),n.splice(n.indexOf(d),1),d.children.forEach(o),d.alias.forEach(o))}else{const d=n.indexOf(f);d>-1&&(n.splice(d,1),f.record.name&&r.delete(f.record.name),f.children.forEach(o),f.alias.forEach(o))}}function l(){return n}function a(f){const d=Nd(f,n);n.splice(d,0,f),f.record.name&&!so(f)&&r.set(f.record.name,f)}function u(f,d){let g,v={},S,k;if("name"in f&&f.name){if(g=r.get(f.name),!g)throw rn(1,{location:f});k=g.record.name,v=ie(no(d.params,g.keys.filter(C=>!C.optional).concat(g.parent?g.parent.keys.filter(C=>C.optional):[]).map(C=>C.name)),f.params&&no(f.params,g.keys.map(C=>C.name))),S=g.stringify(v)}else if(f.path!=null)S=f.path,g=n.find(C=>C.re.test(S)),g&&(v=g.parse(S),k=g.record.name);else{if(g=d.name?r.get(d.name):n.find(C=>C.re.test(d.path)),!g)throw rn(1,{location:f,currentLocation:d});k=g.record.name,v=ie({},d.params,f.params),S=g.stringify(v)}const O=[];let x=g;for(;x;)O.unshift(x.record),x=x.parent;return{name:k,path:S,params:v,matched:O,meta:$d(O)}}e.forEach(f=>i(f));function c(){n.length=0,r.clear()}return{addRoute:i,resolve:u,removeRoute:o,clearRoutes:c,getRoutes:l,getRecordMatcher:s}}function no(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function ro(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:Ld(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function Ld(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="object"?n[r]:n;return t}function so(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function $d(e){return e.reduce((t,n)=>ie(t,n.meta),{})}function io(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function Nd(e,t){let n=0,r=t.length;for(;n!==r;){const i=n+r>>1;va(e,t[i])<0?r=i:n=i+1}const s=Id(e);return s&&(r=t.lastIndexOf(s,r-1)),r}function Id(e){let t=e;for(;t=t.parent;)if(ya(t)&&va(e,t)===0)return t}function ya({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function jd(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let s=0;si&&Rs(i)):[r&&Rs(r)]).forEach(i=>{i!==void 0&&(t+=(t.length?"&":"")+n,i!=null&&(t+="="+i))})}return t}function Fd(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=Ve(r)?r.map(s=>s==null?null:""+s):r==null?r:""+r)}return t}const Dd=Symbol(""),lo=Symbol(""),Ys=Symbol(""),_a=Symbol(""),Ts=Symbol("");function cn(){let e=[];function t(r){return e.push(r),()=>{const s=e.indexOf(r);s>-1&&e.splice(s,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function bt(e,t,n,r,s,i=o=>o()){const o=r&&(r.enterCallbacks[s]=r.enterCallbacks[s]||[]);return()=>new Promise((l,a)=>{const u=d=>{d===!1?a(rn(4,{from:n,to:t})):d instanceof Error?a(d):Sd(d)?a(rn(2,{from:t,to:d})):(o&&r.enterCallbacks[s]===o&&typeof d=="function"&&o.push(d),l())},c=i(()=>e.call(r&&r.instances[s],t,n,u));let f=Promise.resolve(c);e.length<3&&(f=f.then(u)),f.catch(d=>a(d))})}function ns(e,t,n,r,s=i=>i()){const i=[];for(const o of e)for(const l in o.components){let a=o.components[l];if(!(t!=="beforeRouteEnter"&&!o.instances[l]))if(la(a)){const c=(a.__vccOpts||a)[t];c&&i.push(bt(c,n,r,o,l,s))}else{let u=a();i.push(()=>u.then(c=>{if(!c)throw new Error(`Couldn't resolve component "${l}" at "${o.path}"`);const f=Kf(c)?c.default:c;o.mods[l]=c,o.components[l]=f;const g=(f.__vccOpts||f)[t];return g&&bt(g,n,r,o,l,s)()}))}}return i}function ao(e){const t=Ze(Ys),n=Ze(_a),r=Q(()=>{const a=Ot(e.to);return t.resolve(a)}),s=Q(()=>{const{matched:a}=r.value,{length:u}=a,c=a[u-1],f=n.matched;if(!c||!f.length)return-1;const d=f.findIndex(nn.bind(null,c));if(d>-1)return d;const g=co(a[u-2]);return u>1&&co(c)===g&&f[f.length-1].path!==g?f.findIndex(nn.bind(null,a[u-2])):d}),i=Q(()=>s.value>-1&&zd(n.params,r.value.params)),o=Q(()=>s.value>-1&&s.value===n.matched.length-1&&ha(n.params,r.value.params));function l(a={}){if(Vd(a)){const u=t[Ot(e.replace)?"replace":"push"](Ot(e.to)).catch(En);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>u),u}return Promise.resolve()}return{route:r,href:Q(()=>r.value.href),isActive:i,isExactActive:o,navigate:l}}function qd(e){return e.length===1?e[0]:e}const Bd=Rr({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:ao,setup(e,{slots:t}){const n=Dt(ao(e)),{options:r}=Ze(Ys),s=Q(()=>({[uo(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[uo(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const i=t.default&&qd(t.default(n));return e.custom?i:G("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:s.value},i)}}}),Hd=Bd;function Vd(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function zd(e,t){for(const n in t){const r=t[n],s=e[n];if(typeof r=="string"){if(r!==s)return!1}else if(!Ve(s)||s.length!==r.length||r.some((i,o)=>i!==s[o]))return!1}return!0}function co(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const uo=(e,t,n)=>e??t??n,Kd=Rr({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=Ze(Ts),s=Q(()=>e.route||r.value),i=Ze(lo,0),o=Q(()=>{let u=Ot(i);const{matched:c}=s.value;let f;for(;(f=c[u])&&!f.components;)u++;return u}),l=Q(()=>s.value.matched[o.value]);Qn(lo,Q(()=>o.value+1)),Qn(Dd,l),Qn(Ts,s);const a=Nt();return $t(()=>[a.value,l.value,e.name],([u,c,f],[d,g,v])=>{c&&(c.instances[f]=u,g&&g!==c&&u&&u===d&&(c.leaveGuards.size||(c.leaveGuards=g.leaveGuards),c.updateGuards.size||(c.updateGuards=g.updateGuards))),u&&c&&(!g||!nn(c,g)||!d)&&(c.enterCallbacks[f]||[]).forEach(S=>S(u))},{flush:"post"}),()=>{const u=s.value,c=e.name,f=l.value,d=f&&f.components[c];if(!d)return fo(n.default,{Component:d,route:u});const g=f.props[c],v=g?g===!0?u.params:typeof g=="function"?g(u):g:null,k=G(d,ie({},v,t,{onVnodeUnmounted:O=>{O.component.isUnmounted&&(f.instances[c]=null)},ref:a}));return fo(n.default,{Component:k,route:u})||k}}});function fo(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const Ud=Kd;function Wd(e){const t=Md(e.routes,e),n=e.parseQuery||jd,r=e.stringifyQuery||oo,s=e.history,i=cn(),o=cn(),l=cn(),a=Go(ht);let u=ht;Jt&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=es.bind(null,b=>""+b),f=es.bind(null,sd),d=es.bind(null,$n);function g(b,D){let N,V;return ga(b)?(N=t.getRecordMatcher(b),V=D):V=b,t.addRoute(V,N)}function v(b){const D=t.getRecordMatcher(b);D&&t.removeRoute(D)}function S(){return t.getRoutes().map(b=>b.record)}function k(b){return!!t.getRecordMatcher(b)}function O(b,D){if(D=ie({},D||a.value),typeof b=="string"){const m=ts(n,b,D.path),_=t.resolve({path:m.path},D),E=s.createHref(m.fullPath);return ie(m,_,{params:d(_.params),hash:$n(m.hash),redirectedFrom:void 0,href:E})}let N;if(b.path!=null)N=ie({},b,{path:ts(n,b.path,D.path).path});else{const m=ie({},b.params);for(const _ in m)m[_]==null&&delete m[_];N=ie({},b,{params:f(m)}),D.params=f(D.params)}const V=t.resolve(N,D),ce=b.hash||"";V.params=c(d(V.params));const h=ld(r,ie({},b,{hash:td(ce),path:V.path})),p=s.createHref(h);return ie({fullPath:h,hash:ce,query:r===oo?Fd(b.query):b.query||{}},V,{redirectedFrom:void 0,href:p})}function x(b){return typeof b=="string"?ts(n,b,a.value.path):ie({},b)}function C(b,D){if(u!==b)return rn(8,{from:D,to:b})}function y(b){return q(b)}function T(b){return y(ie(x(b),{replace:!0}))}function H(b){const D=b.matched[b.matched.length-1];if(D&&D.redirect){const{redirect:N}=D;let V=typeof N=="function"?N(b):N;return typeof V=="string"&&(V=V.includes("?")||V.includes("#")?V=x(V):{path:V},V.params={}),ie({query:b.query,hash:b.hash,params:V.path!=null?{}:b.params},V)}}function q(b,D){const N=u=O(b),V=a.value,ce=b.state,h=b.force,p=b.replace===!0,m=H(N);if(m)return q(ie(x(m),{state:typeof m=="object"?ie({},ce,m.state):ce,force:h,replace:p}),D||N);const _=N;_.redirectedFrom=D;let E;return!h&&ad(r,V,N)&&(E=rn(16,{to:_,from:V}),Ke(V,V,!0,!1)),(E?Promise.resolve(E):B(_,V)).catch(w=>nt(w)?nt(w,2)?w:ft(w):se(w,_,V)).then(w=>{if(w){if(nt(w,2))return q(ie({replace:p},x(w.to),{state:typeof w.to=="object"?ie({},ce,w.to.state):ce,force:h}),D||_)}else w=L(_,V,!0,p,ce);return U(_,V,w),w})}function F(b,D){const N=C(b,D);return N?Promise.reject(N):Promise.resolve()}function R(b){const D=Ht.values().next().value;return D&&typeof D.runWithContext=="function"?D.runWithContext(b):b()}function B(b,D){let N;const[V,ce,h]=Gd(b,D);N=ns(V.reverse(),"beforeRouteLeave",b,D);for(const m of V)m.leaveGuards.forEach(_=>{N.push(bt(_,b,D))});const p=F.bind(null,b,D);return N.push(p),Le(N).then(()=>{N=[];for(const m of i.list())N.push(bt(m,b,D));return N.push(p),Le(N)}).then(()=>{N=ns(ce,"beforeRouteUpdate",b,D);for(const m of ce)m.updateGuards.forEach(_=>{N.push(bt(_,b,D))});return N.push(p),Le(N)}).then(()=>{N=[];for(const m of h)if(m.beforeEnter)if(Ve(m.beforeEnter))for(const _ of m.beforeEnter)N.push(bt(_,b,D));else N.push(bt(m.beforeEnter,b,D));return N.push(p),Le(N)}).then(()=>(b.matched.forEach(m=>m.enterCallbacks={}),N=ns(h,"beforeRouteEnter",b,D,R),N.push(p),Le(N))).then(()=>{N=[];for(const m of o.list())N.push(bt(m,b,D));return N.push(p),Le(N)}).catch(m=>nt(m,8)?m:Promise.reject(m))}function U(b,D,N){l.list().forEach(V=>R(()=>V(b,D,N)))}function L(b,D,N,V,ce){const h=C(b,D);if(h)return h;const p=D===ht,m=Jt?history.state:{};N&&(V||p?s.replace(b.fullPath,ie({scroll:p&&m&&m.scroll},ce)):s.push(b.fullPath,ce)),a.value=b,Ke(b,D,N,p),ft()}let X;function j(){X||(X=s.listen((b,D,N)=>{if(!qn.listening)return;const V=O(b),ce=H(V);if(ce){q(ie(ce,{replace:!0,force:!0}),V).catch(En);return}u=V;const h=a.value;Jt&&md(Yi(h.fullPath,N.delta),jr()),B(V,h).catch(p=>nt(p,12)?p:nt(p,2)?(q(ie(x(p.to),{force:!0}),V).then(m=>{nt(m,20)&&!N.delta&&N.type===Nn.pop&&s.go(-1,!1)}).catch(En),Promise.reject()):(N.delta&&s.go(-N.delta,!1),se(p,V,h))).then(p=>{p=p||L(V,h,!1),p&&(N.delta&&!nt(p,8)?s.go(-N.delta,!1):N.type===Nn.pop&&nt(p,20)&&s.go(-1,!1)),U(V,h,p)}).catch(En)}))}let ee=cn(),re=cn(),Z;function se(b,D,N){ft(b);const V=re.list();return V.length?V.forEach(ce=>ce(b,D,N)):console.error(b),Promise.reject(b)}function et(){return Z&&a.value!==ht?Promise.resolve():new Promise((b,D)=>{ee.add([b,D])})}function ft(b){return Z||(Z=!b,j(),ee.list().forEach(([D,N])=>b?N(b):D()),ee.reset()),b}function Ke(b,D,N,V){const{scrollBehavior:ce}=e;if(!Jt||!ce)return Promise.resolve();const h=!N&&vd(Yi(b.fullPath,0))||(V||!N)&&history.state&&history.state.scroll||null;return Bs().then(()=>ce(b,D,h)).then(p=>p&&gd(p)).catch(p=>se(p,b,D))}const Te=b=>s.go(b);let Bt;const Ht=new Set,qn={currentRoute:a,listening:!0,addRoute:g,removeRoute:v,clearRoutes:t.clearRoutes,hasRoute:k,getRoutes:S,resolve:O,options:e,push:y,replace:T,go:Te,back:()=>Te(-1),forward:()=>Te(1),beforeEach:i.add,beforeResolve:o.add,afterEach:l.add,onError:re.add,isReady:et,install(b){const D=this;b.component("RouterLink",Hd),b.component("RouterView",Ud),b.config.globalProperties.$router=D,Object.defineProperty(b.config.globalProperties,"$route",{enumerable:!0,get:()=>Ot(a)}),Jt&&!Bt&&a.value===ht&&(Bt=!0,y(s.location).catch(ce=>{}));const N={};for(const ce in ht)Object.defineProperty(N,ce,{get:()=>a.value[ce],enumerable:!0});b.provide(Ys,D),b.provide(_a,Uo(N)),b.provide(Ts,a);const V=b.unmount;Ht.add(b),b.unmount=function(){Ht.delete(b),Ht.size<1&&(u=ht,X&&X(),X=null,a.value=ht,Bt=!1,Z=!1),V()}}};function Le(b){return b.reduce((D,N)=>D.then(()=>R(N)),Promise.resolve())}return qn}function Gd(e,t){const n=[],r=[],s=[],i=Math.max(t.matched.length,e.matched.length);for(let o=0;onn(u,l))?r.push(l):n.push(l));const a=e.matched[o];a&&(t.matched.find(u=>nn(u,a))||s.push(a))}return[n,r,s]}const Qd=[{path:"/",component:()=>Wn(()=>import("./MainLayout-VAvdP3Hi.js"),__vite__mapDeps([0,1,2])),children:[{path:"",component:()=>Wn(()=>import("./IndexPage-BRDFxiis.js"),__vite__mapDeps([3,1,4,5]))}]},{path:"/:catchAll(.*)*",component:()=>Wn(()=>import("./ErrorNotFound-BC17Cfwp.js"),[])}],rs=function(){return Wd({scrollBehavior:()=>({left:0,top:0}),routes:Qd,history:xd("/openWB/web/themes/koala/")})};async function Jd(e,t){const n=e(Ff);n.use(jf,t);const r=typeof Xr=="function"?await Xr({}):Xr;n.use(r);const s=qt(typeof rs=="function"?await rs({store:r}):rs);return r.use(({store:i})=>{i.router=s}),{app:n,store:r,router:s}}const Yd={isoName:"de-DE",nativeName:"Deutsch (DE)",label:{clear:"Leeren",ok:"Ok",cancel:"Abbrechen",close:"Schließen",set:"Setzen",select:"Auswählen",reset:"Zurücksetzen",remove:"Löschen",update:"Aktualisieren",create:"Erstellen",search:"Suche",filter:"Filter",refresh:"Aktualisieren",expand:e=>e?`Erweitern Sie "${e}"`:"Erweitern",collapse:e=>e?`"${e}" minimieren`:"Zusammenbruch"},date:{days:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),daysShort:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan_Feb_März_Apr_Mai_Jun_Jul_Aug_Sep_Okt_Nov_Dez".split("_"),firstDayOfWeek:1,format24h:!0,pluralDay:"Tage",prevMonth:"Vorheriger Monat",nextMonth:"Nächster Monat",prevYear:"Vorheriges Jahr",nextYear:"Nächstes Jahr",today:"Heute",prevRangeYears:e=>`Vorherige ${e} Jahre`,nextRangeYears:e=>`Nächste ${e} Jahre`},table:{noData:"Keine Daten vorhanden.",noResults:"Keine Einträge gefunden",loading:"Lade...",selectedRecords:e=>e>1?e+" ausgewählte Zeilen":(e===0?"Keine":"1")+" ausgewählt.",recordsPerPage:"Zeilen pro Seite",allRows:"Alle",pagination:(e,t,n)=>e+"-"+t+" von "+n,columns:"Spalten"},pagination:{first:"Erste Seite",prev:"Vorherige Seite",next:"Nächste Seite",last:"Letzte Seite"},editor:{url:"URL",bold:"Fett",italic:"Kursiv",strikethrough:"Durchgestrichen",underline:"Unterstrichen",unorderedList:"Ungeordnete Liste",orderedList:"Geordnete Liste",subscript:"tiefgestellt",superscript:"hochgestellt",hyperlink:"Link",toggleFullscreen:"Vollbild umschalten",quote:"Zitat",left:"linksbündig",center:"zentriert",right:"rechtsbündig",justify:"Ausrichten",print:"Drucken",outdent:"ausrücken",indent:"einrücken",removeFormat:"Entferne Formatierung",formatting:"Formatiere",fontSize:"Schriftgröße",align:"Ausrichten",hr:"Horizontale Linie einfügen",undo:"Rückgänging",redo:"Wiederherstellen",heading1:"Überschrift 1",heading2:"Überschrift 2",heading3:"Überschrift 3",heading4:"Überschrift 4",heading5:"Überschrift 5",heading6:"Überschrift 6",paragraph:"Absatz",code:"Code",size1:"Sehr klein",size2:"klein",size3:"Normal",size4:"Groß",size5:"Größer",size6:"Sehr groß",size7:"Maximum",defaultFont:"Standard Schrift",viewSource:"Quelltext anzeigen"},tree:{noNodes:"Keine Knoten verfügbar",noResults:"Keine passenden Knoten gefunden"}},ks={xs:18,sm:24,md:32,lg:38,xl:46},Zs={size:String};function Xs(e,t=ks){return Q(()=>e.size!==void 0?{fontSize:e.size in t?`${t[e.size]}px`:e.size}:null)}function Zd(e,t){return e!==void 0&&e()||t}function gp(e,t){if(e!==void 0){const n=e();if(n!=null)return n.slice()}return t}function hn(e,t){return e!==void 0?t.concat(e()):t}function Xd(e,t){return e===void 0?t:t!==void 0?t.concat(e()):e()}function mp(e,t,n,r,s,i){t.key=r+s;const o=G(e,t,n);return s===!0?rl(o,i()):o}const ho="0 0 24 24",ss=e=>e,is=e=>`ionicons ${e}`,ba={"mdi-":e=>`mdi ${e}`,"icon-":ss,"bt-":e=>`bt ${e}`,"eva-":e=>`eva ${e}`,"ion-md":is,"ion-ios":is,"ion-logo":is,"iconfont ":ss,"ti-":e=>`themify-icon ${e}`,"bi-":e=>`bootstrap-icons ${e}`,"i-":ss},wa={o_:"-outlined",r_:"-round",s_:"-sharp"},xa={sym_o_:"-outlined",sym_r_:"-rounded",sym_s_:"-sharp"},eh=new RegExp("^("+Object.keys(ba).join("|")+")"),th=new RegExp("^("+Object.keys(wa).join("|")+")"),po=new RegExp("^("+Object.keys(xa).join("|")+")"),nh=/^[Mm]\s?[-+]?\.?\d/,rh=/^img:/,sh=/^svguse:/,ih=/^ion-/,oh=/^(fa-(classic|sharp|solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /,vr=Dn({name:"QIcon",props:{...Zs,tag:{type:String,default:"i"},name:String,color:String,left:Boolean,right:Boolean},setup(e,{slots:t}){const{proxy:{$q:n}}=ze(),r=Xs(e),s=Q(()=>"q-icon"+(e.left===!0?" on-left":"")+(e.right===!0?" on-right":"")+(e.color!==void 0?` text-${e.color}`:"")),i=Q(()=>{let o,l=e.name;if(l==="none"||!l)return{none:!0};if(n.iconMapFn!==null){const c=n.iconMapFn(l);if(c!==void 0)if(c.icon!==void 0){if(l=c.icon,l==="none"||!l)return{none:!0}}else return{cls:c.cls,content:c.content!==void 0?c.content:" "}}if(nh.test(l)===!0){const[c,f=ho]=l.split("|");return{svg:!0,viewBox:f,nodes:c.split("&&").map(d=>{const[g,v,S]=d.split("@@");return G("path",{style:v,d:g,transform:S})})}}if(rh.test(l)===!0)return{img:!0,src:l.substring(4)};if(sh.test(l)===!0){const[c,f=ho]=l.split("|");return{svguse:!0,src:c.substring(7),viewBox:f}}let a=" ";const u=l.match(eh);if(u!==null)o=ba[u[1]](l);else if(oh.test(l)===!0)o=l;else if(ih.test(l)===!0)o=`ionicons ion-${n.platform.is.ios===!0?"ios":"md"}${l.substring(3)}`;else if(po.test(l)===!0){o="notranslate material-symbols";const c=l.match(po);c!==null&&(l=l.substring(6),o+=xa[c[1]]),a=l}else{o="notranslate material-icons";const c=l.match(th);c!==null&&(l=l.substring(2),o+=wa[c[1]]),a=l}return{cls:o,content:a}});return()=>{const o={class:s.value,style:r.value,"aria-hidden":"true"};return i.value.none===!0?G(e.tag,o,Zd(t.default)):i.value.img===!0?G(e.tag,o,hn(t.default,[G("img",{src:i.value.src})])):i.value.svg===!0?G(e.tag,o,hn(t.default,[G("svg",{viewBox:i.value.viewBox||"0 0 24 24"},i.value.nodes)])):i.value.svguse===!0?G(e.tag,o,hn(t.default,[G("svg",{viewBox:i.value.viewBox},[G("use",{"xlink:href":i.value.src})])])):(i.value.cls!==void 0&&(o.class+=" "+i.value.cls),G(e.tag,o,hn(t.default,[i.value.content])))}}}),lh=Dn({name:"QAvatar",props:{...Zs,fontSize:String,color:String,textColor:String,icon:String,square:Boolean,rounded:Boolean},setup(e,{slots:t}){const n=Xs(e),r=Q(()=>"q-avatar"+(e.color?` bg-${e.color}`:"")+(e.textColor?` text-${e.textColor} q-chip--colored`:"")+(e.square===!0?" q-avatar--square":e.rounded===!0?" rounded-borders":"")),s=Q(()=>e.fontSize?{fontSize:e.fontSize}:null);return()=>{const i=e.icon!==void 0?[G(vr,{name:e.icon})]:void 0;return G("div",{class:r.value,style:n.value},[G("div",{class:"q-avatar__content row flex-center overflow-hidden",style:s.value},Xd(t.default,i))])}}}),ah={size:{type:[String,Number],default:"1em"},color:String};function ch(e){return{cSize:Q(()=>e.size in ks?`${ks[e.size]}px`:e.size),classes:Q(()=>"q-spinner"+(e.color?` text-${e.color}`:""))}}const Sa=Dn({name:"QSpinner",props:{...ah,thickness:{type:Number,default:5}},setup(e){const{cSize:t,classes:n}=ch(e);return()=>G("svg",{class:n.value+" q-spinner-mat",width:t.value,height:t.value,viewBox:"25 25 50 50"},[G("circle",{class:"path",cx:"50",cy:"50",r:"20",fill:"none",stroke:"currentColor","stroke-width":e.thickness,"stroke-miterlimit":"10"})])}});function uh(e,t){const n=e.style;for(const r in t)n[r]=t[r]}function vp(e){if(e==null)return;if(typeof e=="string")try{return document.querySelector(e)||void 0}catch{return}const t=Ot(e);if(t)return t.$el||t}function yp(e,t){if(e==null||e.contains(t)===!0)return!0;for(let n=e.nextElementSibling;n!==null;n=n.nextElementSibling)if(n.contains(t))return!0;return!1}function fh(e,t=250){let n=!1,r;return function(){return n===!1&&(n=!0,setTimeout(()=>{n=!1},t),r=e.apply(this,arguments)),r}}function go(e,t,n,r){n.modifiers.stop===!0&&Zl(e);const s=n.modifiers.color;let i=n.modifiers.center;i=i===!0||r===!0;const o=document.createElement("span"),l=document.createElement("span"),a=gf(e),{left:u,top:c,width:f,height:d}=t.getBoundingClientRect(),g=Math.sqrt(f*f+d*d),v=g/2,S=`${(f-g)/2}px`,k=i?S:`${a.left-u-v}px`,O=`${(d-g)/2}px`,x=i?O:`${a.top-c-v}px`;l.className="q-ripple__inner",uh(l,{height:`${g}px`,width:`${g}px`,transform:`translate3d(${k},${x},0) scale3d(.2,.2,1)`,opacity:0}),o.className=`q-ripple${s?" text-"+s:""}`,o.setAttribute("dir","ltr"),o.appendChild(l),t.appendChild(o);const C=()=>{o.remove(),clearTimeout(y)};n.abort.push(C);let y=setTimeout(()=>{l.classList.add("q-ripple__inner--enter"),l.style.transform=`translate3d(${S},${O},0) scale3d(1,1,1)`,l.style.opacity=.2,y=setTimeout(()=>{l.classList.remove("q-ripple__inner--enter"),l.classList.add("q-ripple__inner--leave"),l.style.opacity=0,y=setTimeout(()=>{o.remove(),n.abort.splice(n.abort.indexOf(C),1)},275)},250)},50)}function mo(e,{modifiers:t,value:n,arg:r}){const s=Object.assign({},e.cfg.ripple,t,n);e.modifiers={early:s.early===!0,stop:s.stop===!0,center:s.center===!0,color:s.color||r,keyCodes:[].concat(s.keyCodes||13)}}const dh=pf({name:"ripple",beforeMount(e,t){const n=t.instance.$.appContext.config.globalProperties.$q.config||{};if(n.ripple===!1)return;const r={cfg:n,enabled:t.value!==!1,modifiers:{},abort:[],start(s){r.enabled===!0&&s.qSkipRipple!==!0&&s.type===(r.modifiers.early===!0?"pointerdown":"click")&&go(s,e,r,s.qKeyEvent===!0)},keystart:fh(s=>{r.enabled===!0&&s.qSkipRipple!==!0&&Ss(s,r.modifiers.keyCodes)===!0&&s.type===`key${r.modifiers.early===!0?"down":"up"}`&&go(s,e,r,!0)},300)};mo(r,t),e.__qripple=r,mf(r,"main",[[e,"pointerdown","start","passive"],[e,"click","start","passive"],[e,"keydown","keystart","passive"],[e,"keyup","keystart","passive"]])},updated(e,t){if(t.oldValue!==t.value){const n=e.__qripple;n!==void 0&&(n.enabled=t.value!==!1,n.enabled===!0&&Object(t.value)===t.value&&mo(n,t))}},beforeUnmount(e){const t=e.__qripple;t!==void 0&&(t.abort.forEach(n=>{n()}),vf(t,"main"),delete e._qripple)}}),Ea={left:"start",center:"center",right:"end",between:"between",around:"around",evenly:"evenly",stretch:"stretch"},hh=Object.keys(Ea),ph={align:{type:String,validator:e=>hh.includes(e)}};function gh(e){return Q(()=>{const t=e.align===void 0?e.vertical===!0?"stretch":"left":e.align;return`${e.vertical===!0?"items":"justify"}-${Ea[t]}`})}function _p(e){if(Object(e.$parent)===e.$parent)return e.$parent;let{parent:t}=e.$;for(;Object(t)===t;){if(Object(t.proxy)===t.proxy)return t.proxy;t=t.parent}}function Ca(e,t){typeof t.type=="symbol"?Array.isArray(t.children)===!0&&t.children.forEach(n=>{Ca(e,n)}):e.add(t)}function bp(e){const t=new Set;return e.forEach(n=>{Ca(t,n)}),Array.from(t)}function mh(e){return e.appContext.config.globalProperties.$router!==void 0}function wp(e){return e.isUnmounted===!0||e.isDeactivated===!0}function vo(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}function yo(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function vh(e,t){for(const n in t){const r=t[n],s=e[n];if(typeof r=="string"){if(r!==s)return!1}else if(Array.isArray(s)===!1||s.length!==r.length||r.some((i,o)=>i!==s[o]))return!1}return!0}function _o(e,t){return Array.isArray(t)===!0?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function yh(e,t){return Array.isArray(e)===!0?_o(e,t):Array.isArray(t)===!0?_o(t,e):e===t}function _h(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(yh(e[n],t[n])===!1)return!1;return!0}const Ra={to:[String,Object],replace:Boolean,href:String,target:String,disable:Boolean},xp={...Ra,exact:Boolean,activeClass:{type:String,default:"q-router-link--active"},exactActiveClass:{type:String,default:"q-router-link--exact-active"}};function bh({fallbackTag:e,useDisableForRouterLinkProps:t=!0}={}){const n=ze(),{props:r,proxy:s,emit:i}=n,o=mh(n),l=Q(()=>r.disable!==!0&&r.href!==void 0),a=Q(t===!0?()=>o===!0&&r.disable!==!0&&l.value!==!0&&r.to!==void 0&&r.to!==null&&r.to!=="":()=>o===!0&&l.value!==!0&&r.to!==void 0&&r.to!==null&&r.to!==""),u=Q(()=>a.value===!0?x(r.to):null),c=Q(()=>u.value!==null),f=Q(()=>l.value===!0||c.value===!0),d=Q(()=>r.type==="a"||f.value===!0?"a":r.tag||e||"div"),g=Q(()=>l.value===!0?{href:r.href,target:r.target}:c.value===!0?{href:u.value.href,target:r.target}:{}),v=Q(()=>{if(c.value===!1)return-1;const{matched:T}=u.value,{length:H}=T,q=T[H-1];if(q===void 0)return-1;const F=s.$route.matched;if(F.length===0)return-1;const R=F.findIndex(yo.bind(null,q));if(R!==-1)return R;const B=vo(T[H-2]);return H>1&&vo(q)===B&&F[F.length-1].path!==B?F.findIndex(yo.bind(null,T[H-2])):R}),S=Q(()=>c.value===!0&&v.value!==-1&&vh(s.$route.params,u.value.params)),k=Q(()=>S.value===!0&&v.value===s.$route.matched.length-1&&_h(s.$route.params,u.value.params)),O=Q(()=>c.value===!0?k.value===!0?` ${r.exactActiveClass} ${r.activeClass}`:r.exact===!0?"":S.value===!0?` ${r.activeClass}`:"":"");function x(T){try{return s.$router.resolve(T)}catch{}return null}function C(T,{returnRouterError:H,to:q=r.to,replace:F=r.replace}={}){if(r.disable===!0)return T.preventDefault(),Promise.resolve(!1);if(T.metaKey||T.altKey||T.ctrlKey||T.shiftKey||T.button!==void 0&&T.button!==0||r.target==="_blank")return Promise.resolve(!1);T.preventDefault();const R=s.$router[F===!0?"replace":"push"](q);return H===!0?R:R.then(()=>{}).catch(()=>{})}function y(T){if(c.value===!0){const H=q=>C(T,q);i("click",T,H),T.defaultPrevented!==!0&&H()}else i("click",T)}return{hasRouterLink:c,hasHrefLink:l,hasLink:f,linkTag:d,resolvedLink:u,linkIsActive:S,linkIsExactActive:k,linkClass:O,linkAttrs:g,getLink:x,navigateToRouterLink:C,navigateOnClick:y}}const bo={none:0,xs:4,sm:8,md:16,lg:24,xl:32},wh={xs:8,sm:10,md:14,lg:20,xl:24},xh=["button","submit","reset"],Sh=/[^\s]\/[^\s]/,Eh=["flat","outline","push","unelevated"];function Pa(e,t){return e.flat===!0?"flat":e.outline===!0?"outline":e.push===!0?"push":e.unelevated===!0?"unelevated":t}function Sp(e){const t=Pa(e);return t!==void 0?{[t]:!0}:{}}const Ch={...Zs,...Ra,type:{type:String,default:"button"},label:[Number,String],icon:String,iconRight:String,...Eh.reduce((e,t)=>(e[t]=Boolean)&&e,{}),square:Boolean,rounded:Boolean,glossy:Boolean,size:String,fab:Boolean,fabMini:Boolean,padding:String,color:String,textColor:String,noCaps:Boolean,noWrap:Boolean,dense:Boolean,tabindex:[Number,String],ripple:{type:[Boolean,Object],default:!0},align:{...ph.align,default:"center"},stack:Boolean,stretch:Boolean,loading:{type:Boolean,default:null},disable:Boolean},Rh={...Ch,round:Boolean};function Ph(e){const t=Xs(e,wh),n=gh(e),{hasRouterLink:r,hasLink:s,linkTag:i,linkAttrs:o,navigateOnClick:l}=bh({fallbackTag:"button"}),a=Q(()=>{const k=e.fab===!1&&e.fabMini===!1?t.value:{};return e.padding!==void 0?Object.assign({},k,{padding:e.padding.split(/\s+/).map(O=>O in bo?bo[O]+"px":O).join(" "),minWidth:"0",minHeight:"0"}):k}),u=Q(()=>e.rounded===!0||e.fab===!0||e.fabMini===!0),c=Q(()=>e.disable!==!0&&e.loading!==!0),f=Q(()=>c.value===!0?e.tabindex||0:-1),d=Q(()=>Pa(e,"standard")),g=Q(()=>{const k={tabindex:f.value};return s.value===!0?Object.assign(k,o.value):xh.includes(e.type)===!0&&(k.type=e.type),i.value==="a"?(e.disable===!0?k["aria-disabled"]="true":k.href===void 0&&(k.role="button"),r.value!==!0&&Sh.test(e.type)===!0&&(k.type=e.type)):e.disable===!0&&(k.disabled="",k["aria-disabled"]="true"),e.loading===!0&&e.percentage!==void 0&&Object.assign(k,{role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":e.percentage}),k}),v=Q(()=>{let k;e.color!==void 0?e.flat===!0||e.outline===!0?k=`text-${e.textColor||e.color}`:k=`bg-${e.color} text-${e.textColor||"white"}`:e.textColor&&(k=`text-${e.textColor}`);const O=e.round===!0?"round":`rectangle${u.value===!0?" q-btn--rounded":e.square===!0?" q-btn--square":""}`;return`q-btn--${d.value} q-btn--${O}`+(k!==void 0?" "+k:"")+(c.value===!0?" q-btn--actionable q-focusable q-hoverable":e.disable===!0?" disabled":"")+(e.fab===!0?" q-btn--fab":e.fabMini===!0?" q-btn--fab-mini":"")+(e.noCaps===!0?" q-btn--no-uppercase":"")+(e.dense===!0?" q-btn--dense":"")+(e.stretch===!0?" no-border-radius self-stretch":"")+(e.glossy===!0?" glossy":"")+(e.square?" q-btn--square":"")}),S=Q(()=>n.value+(e.stack===!0?" column":" row")+(e.noWrap===!0?" no-wrap text-no-wrap":"")+(e.loading===!0?" q-btn__content--hidden":""));return{classes:v,style:a,innerClasses:S,attributes:g,hasLink:s,linkTag:i,navigateOnClick:l,isActionable:c}}const{passiveCapture:Ne}=jt;let Ut=null,Wt=null,Gt=null;const Th=Dn({name:"QBtn",props:{...Rh,percentage:Number,darkPercentage:Boolean,onTouchstart:[Function,Array]},emits:["click","keydown","mousedown","keyup"],setup(e,{slots:t,emit:n}){const{proxy:r}=ze(),{classes:s,style:i,innerClasses:o,attributes:l,hasLink:a,linkTag:u,navigateOnClick:c,isActionable:f}=Ph(e),d=Nt(null),g=Nt(null);let v=null,S,k=null;const O=Q(()=>e.label!==void 0&&e.label!==null&&e.label!==""),x=Q(()=>e.disable===!0||e.ripple===!1?!1:{keyCodes:a.value===!0?[13,32]:[13],...e.ripple===!0?{}:e.ripple}),C=Q(()=>({center:e.round})),y=Q(()=>{const j=Math.max(0,Math.min(100,e.percentage));return j>0?{transition:"transform 0.6s",transform:`translateX(${j-100}%)`}:{}}),T=Q(()=>{if(e.loading===!0)return{onMousedown:X,onTouchstart:X,onClick:X,onKeydown:X,onKeyup:X};if(f.value===!0){const j={onClick:q,onKeydown:F,onMousedown:B};if(r.$q.platform.has.touch===!0){const ee=e.onTouchstart!==void 0?"":"Passive";j[`onTouchstart${ee}`]=R}return j}return{onClick:zt}}),H=Q(()=>({ref:d,class:"q-btn q-btn-item non-selectable no-outline "+s.value,style:i.value,...l.value,...T.value}));function q(j){if(d.value!==null){if(j!==void 0){if(j.defaultPrevented===!0)return;const ee=document.activeElement;if(e.type==="submit"&&ee!==document.body&&d.value.contains(ee)===!1&&ee.contains(d.value)===!1){j.qAvoidFocus!==!0&&d.value.focus();const re=()=>{document.removeEventListener("keydown",zt,!0),document.removeEventListener("keyup",re,Ne),d.value?.removeEventListener("blur",re,Ne)};document.addEventListener("keydown",zt,!0),document.addEventListener("keyup",re,Ne),d.value.addEventListener("blur",re,Ne)}}c(j)}}function F(j){d.value!==null&&(n("keydown",j),Ss(j,[13,32])===!0&&Wt!==d.value&&(Wt!==null&&L(),j.defaultPrevented!==!0&&(j.qAvoidFocus!==!0&&d.value.focus(),Wt=d.value,d.value.classList.add("q-btn--active"),document.addEventListener("keyup",U,!0),d.value.addEventListener("blur",U,Ne)),zt(j)))}function R(j){d.value!==null&&(n("touchstart",j),j.defaultPrevented!==!0&&(Ut!==d.value&&(Ut!==null&&L(),Ut=d.value,v=j.target,v.addEventListener("touchcancel",U,Ne),v.addEventListener("touchend",U,Ne)),S=!0,k!==null&&clearTimeout(k),k=setTimeout(()=>{k=null,S=!1},200)))}function B(j){d.value!==null&&(j.qSkipRipple=S===!0,n("mousedown",j),j.defaultPrevented!==!0&&Gt!==d.value&&(Gt!==null&&L(),Gt=d.value,d.value.classList.add("q-btn--active"),document.addEventListener("mouseup",U,Ne)))}function U(j){if(d.value!==null&&!(j?.type==="blur"&&document.activeElement===d.value)){if(j?.type==="keyup"){if(Wt===d.value&&Ss(j,[13,32])===!0){const ee=new MouseEvent("click",j);ee.qKeyEvent=!0,j.defaultPrevented===!0&&xs(ee),j.cancelBubble===!0&&Zl(ee),d.value.dispatchEvent(ee),zt(j),j.qKeyEvent=!0}n("keyup",j)}L()}}function L(j){const ee=g.value;j!==!0&&(Ut===d.value||Gt===d.value)&&ee!==null&&ee!==document.activeElement&&(ee.setAttribute("tabindex",-1),ee.focus()),Ut===d.value&&(v!==null&&(v.removeEventListener("touchcancel",U,Ne),v.removeEventListener("touchend",U,Ne)),Ut=v=null),Gt===d.value&&(document.removeEventListener("mouseup",U,Ne),Gt=null),Wt===d.value&&(document.removeEventListener("keyup",U,!0),d.value?.removeEventListener("blur",U,Ne),Wt=null),d.value?.classList.remove("q-btn--active")}function X(j){zt(j),j.qSkipRipple=!0}return Ar(()=>{L(!0)}),Object.assign(r,{click:j=>{f.value===!0&&q(j)}}),()=>{let j=[];e.icon!==void 0&&j.push(G(vr,{name:e.icon,left:e.stack!==!0&&O.value===!0,role:"img"})),O.value===!0&&j.push(G("span",{class:"block"},[e.label])),j=hn(t.default,j),e.iconRight!==void 0&&e.round===!1&&j.push(G(vr,{name:e.iconRight,right:e.stack!==!0&&O.value===!0,role:"img"}));const ee=[G("span",{class:"q-focus-helper",ref:g})];return e.loading===!0&&e.percentage!==void 0&&ee.push(G("span",{class:"q-btn__progress absolute-full overflow-hidden"+(e.darkPercentage===!0?" q-btn__progress--dark":"")},[G("span",{class:"q-btn__progress-indicator fit block",style:y.value})])),ee.push(G("span",{class:"q-btn__content text-center col items-center q-anchor--skip "+o.value},j)),e.loading!==null&&ee.push(G(Lu,{name:"q-transition--fade"},()=>e.loading===!0?[G("span",{key:"loading",class:"absolute-full flex flex-center"},t.loading!==void 0?t.loading():[G(Sa)])]:null)),rl(G(u.value,H.value,ee),[[dh,x.value,void 0,C.value]])}}});let kh=1,Ah=document.body;function Oh(e,t){const n=document.createElement("div");if(n.id=t!==void 0?`q-portal--${t}--${kh++}`:e,mr.globalNodes!==void 0){const r=mr.globalNodes.class;r!==void 0&&(n.className=r)}return Ah.appendChild(n),n}function Ep(e){e.remove()}let Mh=0;const Xn={},er={},De={},Ta={},Lh=/^\s*$/,ka=[],$h=[void 0,null,!0,!1,""],ei=["top-left","top-right","bottom-left","bottom-right","top","bottom","left","right","center"],Nh=["top-left","top-right","bottom-left","bottom-right"],pn={positive:{icon:e=>e.iconSet.type.positive,color:"positive"},negative:{icon:e=>e.iconSet.type.negative,color:"negative"},warning:{icon:e=>e.iconSet.type.warning,color:"warning",textColor:"dark"},info:{icon:e=>e.iconSet.type.info,color:"info"},ongoing:{group:!1,timeout:0,spinner:!0,color:"grey-8"}};function Aa(e,t,n){if(!e)return un("parameter required");let r;const s={textColor:"white"};if(e.ignoreDefaults!==!0&&Object.assign(s,Xn),Ln(e)===!1&&(s.type&&Object.assign(s,pn[s.type]),e={message:e}),Object.assign(s,pn[e.type||s.type],e),typeof s.icon=="function"&&(s.icon=s.icon(t)),s.spinner?(s.spinner===!0&&(s.spinner=Sa),s.spinner=qt(s.spinner)):s.spinner=!1,s.meta={hasMedia:!!(s.spinner!==!1||s.icon||s.avatar),hasText:wo(s.message)||wo(s.caption)},s.position){if(ei.includes(s.position)===!1)return un("wrong position",e)}else s.position="bottom";if($h.includes(s.timeout)===!0)s.timeout=5e3;else{const a=Number(s.timeout);if(isNaN(a)||a<0)return un("wrong timeout",e);s.timeout=Number.isFinite(a)?a:0}s.timeout===0?s.progress=!1:s.progress===!0&&(s.meta.progressClass="q-notification__progress"+(s.progressClass?` ${s.progressClass}`:""),s.meta.progressStyle={animationDuration:`${s.timeout+1e3}ms`});const i=(Array.isArray(e.actions)===!0?e.actions:[]).concat(e.ignoreDefaults!==!0&&Array.isArray(Xn.actions)===!0?Xn.actions:[]).concat(Array.isArray(pn[e.type]?.actions)===!0?pn[e.type].actions:[]),{closeBtn:o}=s;if(o&&i.push({label:typeof o=="string"?o:t.lang.label.close}),s.actions=i.map(({handler:a,noDismiss:u,...c})=>({flat:!0,...c,onClick:typeof a=="function"?()=>{a(),u!==!0&&l()}:()=>{l()}})),s.multiLine===void 0&&(s.multiLine=s.actions.length>1),Object.assign(s.meta,{class:`q-notification row items-stretch q-notification--${s.multiLine===!0?"multi-line":"standard"}`+(s.color!==void 0?` bg-${s.color}`:"")+(s.textColor!==void 0?` text-${s.textColor}`:"")+(s.classes!==void 0?` ${s.classes}`:""),wrapperClass:"q-notification__wrapper col relative-position border-radius-inherit "+(s.multiLine===!0?"column no-wrap justify-center":"row items-center"),contentClass:"q-notification__content row items-center"+(s.multiLine===!0?"":" col"),leftClass:s.meta.hasText===!0?"additional":"single",attrs:{role:"alert",...s.attrs}}),s.group===!1?(s.group=void 0,s.meta.group=void 0):((s.group===void 0||s.group===!0)&&(s.group=[s.message,s.caption,s.multiline].concat(s.actions.map(a=>`${a.label}*${a.icon}`)).join("|")),s.meta.group=s.group+"|"+s.position),s.actions.length===0?s.actions=void 0:s.meta.actionsClass="q-notification__actions row items-center "+(s.multiLine===!0?"justify-end":"col-auto")+(s.meta.hasMedia===!0?" q-notification__actions--with-media":""),n!==void 0){n.notif.meta.timer&&(clearTimeout(n.notif.meta.timer),n.notif.meta.timer=void 0),s.meta.uid=n.notif.meta.uid;const a=De[s.position].value.indexOf(n.notif);De[s.position].value[a]=s}else{const a=er[s.meta.group];if(a===void 0){if(s.meta.uid=Mh++,s.meta.badge=1,["left","right","center"].indexOf(s.position)!==-1)De[s.position].value.splice(Math.floor(De[s.position].value.length/2),0,s);else{const u=s.position.indexOf("top")!==-1?"unshift":"push";De[s.position].value[u](s)}s.group!==void 0&&(er[s.meta.group]=s)}else{if(a.meta.timer&&(clearTimeout(a.meta.timer),a.meta.timer=void 0),s.badgePosition!==void 0){if(Nh.includes(s.badgePosition)===!1)return un("wrong badgePosition",e)}else s.badgePosition=`top-${s.position.indexOf("left")!==-1?"right":"left"}`;s.meta.uid=a.meta.uid,s.meta.badge=a.meta.badge+1,s.meta.badgeClass=`q-notification__badge q-notification__badge--${s.badgePosition}`+(s.badgeColor!==void 0?` bg-${s.badgeColor}`:"")+(s.badgeTextColor!==void 0?` text-${s.badgeTextColor}`:"")+(s.badgeClass?` ${s.badgeClass}`:"");const u=De[s.position].value.indexOf(a);De[s.position].value[u]=er[s.meta.group]=s}}const l=()=>{Ih(s),r=void 0};if(s.timeout>0&&(s.meta.timer=setTimeout(()=>{s.meta.timer=void 0,l()},s.timeout+1e3)),s.group!==void 0)return a=>{a!==void 0?un("trying to update a grouped one which is forbidden",e):l()};if(r={dismiss:l,config:e,notif:s},n!==void 0){Object.assign(n,r);return}return a=>{if(r!==void 0)if(a===void 0)r.dismiss();else{const u=Object.assign({},r.config,a,{group:!1,position:s.position});Aa(u,t,r)}}}function Ih(e){e.meta.timer&&(clearTimeout(e.meta.timer),e.meta.timer=void 0);const t=De[e.position].value.indexOf(e);if(t!==-1){e.group!==void 0&&delete er[e.meta.group];const n=ka[""+e.meta.uid];if(n){const{width:r,height:s}=getComputedStyle(n);n.style.left=`${n.offsetLeft}px`,n.style.width=r,n.style.height=s}De[e.position].value.splice(t,1),typeof e.onDismiss=="function"&&e.onDismiss()}}function wo(e){return e!=null&&Lh.test(e)!==!0}function un(e,t){return console.error(`Notify: ${e}`,t),!1}function jh(){return Dn({name:"QNotifications",devtools:{hide:!0},setup(){return()=>G("div",{class:"q-notifications"},ei.map(e=>G(Zu,{key:e,class:Ta[e],tag:"div",name:`q-notification--${e}`},()=>De[e].value.map(t=>{const n=t.meta,r=[];if(n.hasMedia===!0&&(t.spinner!==!1?r.push(G(t.spinner,{class:"q-notification__spinner q-notification__spinner--"+n.leftClass,color:t.spinnerColor,size:t.spinnerSize})):t.icon?r.push(G(vr,{class:"q-notification__icon q-notification__icon--"+n.leftClass,name:t.icon,color:t.iconColor,size:t.iconSize,role:"img"})):t.avatar&&r.push(G(lh,{class:"q-notification__avatar q-notification__avatar--"+n.leftClass},()=>G("img",{src:t.avatar,"aria-hidden":"true"})))),n.hasText===!0){let i;const o={class:"q-notification__message col"};if(t.html===!0)o.innerHTML=t.caption?`
${t.message}
${t.caption}
`:t.message;else{const l=[t.message];i=t.caption?[G("div",l),G("div",{class:"q-notification__caption"},[t.caption])]:l}r.push(G("div",o,i))}const s=[G("div",{class:n.contentClass},r)];return t.progress===!0&&s.push(G("div",{key:`${n.uid}|p|${n.badge}`,class:n.progressClass,style:n.progressStyle})),t.actions!==void 0&&s.push(G("div",{class:n.actionsClass},t.actions.map(i=>G(Th,i)))),n.badge>1&&s.push(G("div",{key:`${n.uid}|${n.badge}`,class:t.meta.badgeClass,style:t.badgeStyle},[n.badge])),G("div",{ref:i=>{ka[""+n.uid]=i},key:n.uid,class:n.class,...n.attrs},[G("div",{class:n.wrapperClass},s)])}))))}})}const Fh={setDefaults(e){Ln(e)===!0&&Object.assign(Xn,e)},registerType(e,t){Ln(t)===!0&&(pn[e]=t)},install({$q:e,parentApp:t}){if(e.notify=this.create=n=>Aa(n,e),e.notify.setDefaults=this.setDefaults,e.notify.registerType=this.registerType,e.config.notify!==void 0&&this.setDefaults(e.config.notify),this.__installed!==!0){ei.forEach(r=>{De[r]=Nt([]);const s=["left","center","right"].includes(r)===!0?"center":r.indexOf("top")!==-1?"top":"bottom",i=r.indexOf("left")!==-1?"start":r.indexOf("right")!==-1?"end":"center",o=["left","right"].includes(r)?`items-${r==="left"?"start":"end"} justify-center`:r==="center"?"flex-center":`items-${i}`;Ta[r]=`q-notifications__list q-notifications__list--${s} fixed column no-wrap ${o}`});const n=Oh("q-notify");$f(jh(),t).mount(n)}}},Dh={config:{dark:"auto"},lang:Yd,plugins:{Notify:Fh}},qh="/openWB/web/themes/koala/";async function Bh({app:e,router:t,store:n},r){let s=!1;const i=a=>{try{return t.resolve(a).href}catch{}return Object(a)===a?null:a},o=a=>{if(s=!0,typeof a=="string"&&/^https?:\/\//.test(a)){window.location.href=a;return}const u=i(a);u!==null&&(window.location.href=u,window.location.reload())},l=window.location.href.replace(window.location.origin,"");for(let a=0;s===!1&&a{const[t,n]=Promise.allSettled!==void 0?["allSettled",r=>r.map(s=>{if(s.status==="rejected"){console.error("[Quasar] boot error:",s.reason);return}return s.value.default})]:["all",r=>r.map(s=>s.default)];return Promise[t]([Wn(()=>import("./store-init-DuB0sdr_.js"),__vite__mapDeps([6,4]))]).then(r=>{const s=n(r).filter(i=>typeof i=="function");Bh(e,s)})});export{Af as $,Dt as A,Ks as B,Rr as C,Dc as D,ur as E,cr as F,Rc as G,Pe as H,_u as I,vr as J,cp as K,Ss as L,xf as M,zt as N,pf as O,vf as P,Th as Q,dh as R,Xe as S,ip as T,mf as U,gf as V,rp as W,Lu as X,bp as Y,Kh as Z,mh as _,Q as a,$c as a0,dp as a1,ep as a2,Yh as a3,jl as a4,Re as a5,Wh as a6,Sr as a7,Zh as a8,Wa as a9,np as aA,Jh as aB,Gh as aC,Xh as aD,Hh as aE,yu as aF,bu as aG,ph as aH,gh as aI,pe as aJ,ws as aK,zh as aL,xp as aM,bh as aN,_p as aO,Vh as aP,Oh as aQ,Ep as aR,wp as aS,vp as aT,uh as aU,sp as aV,Mf as aW,Go as aa,Tu as ab,ne as ac,qs as ad,pp as ae,yp as af,Ch as ag,Sp as ah,Zl as ai,Ot as aj,Uh as ak,tp as al,_f as am,Qh as an,gl as ao,ap,$r as aq,xs as ar,Sa as as,Zs as at,Xs as au,Xd as av,Yr as aw,zs as ax,fp as ay,Ln as az,hp as b,Dn as c,Zd as d,up as e,gp as f,ze as g,G as h,Ze as i,rl as j,jt as k,op as l,kr as m,Mn as n,Ar as o,yf as p,Mc as q,Nt as r,Oc as s,hn as t,Bs as u,mp as v,$t as w,Qn as x,lp as y,It as z}; diff --git a/packages/modules/web_themes/koala/web/assets/index-DCrt5iVV.js b/packages/modules/web_themes/koala/web/assets/index-DCrt5iVV.js new file mode 100644 index 0000000000..0891893b60 --- /dev/null +++ b/packages/modules/web_themes/koala/web/assets/index-DCrt5iVV.js @@ -0,0 +1,26 @@ +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/MainLayout-DiTWyfa9.js","assets/_plugin-vue_export-helper-CKNjr6LQ.js","assets/MainLayout-DZ5KVho1.css","assets/IndexPage-dP2WXfRd.js","assets/mqtt-store-R9RxHZY9.js","assets/IndexPage-xATA1vTl.css","assets/store-init-DhHJKTOy.js"])))=>i.map(i=>d[i]); +const Na=(function(){const t=typeof document<"u"&&document.createElement("link").relList;return t&&t.supports&&t.supports("modulepreload")?"modulepreload":"preload"})(),Ia=function(e){return"/openWB/web/themes/koala/"+e},oi={},Gn=function(t,n,r){let s=Promise.resolve();if(n&&n.length>0){let o=function(u){return Promise.all(u.map(c=>Promise.resolve(c).then(f=>({status:"fulfilled",value:f}),f=>({status:"rejected",reason:f}))))};document.getElementsByTagName("link");const l=document.querySelector("meta[property=csp-nonce]"),a=l?.nonce||l?.getAttribute("nonce");s=o(n.map(u=>{if(u=Ia(u),u in oi)return;oi[u]=!0;const c=u.endsWith(".css"),f=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${u}"]${f}`))return;const d=document.createElement("link");if(d.rel=c?"stylesheet":Na,c||(d.as="script"),d.crossOrigin="",d.href=u,a&&d.setAttribute("nonce",a),document.head.appendChild(d),c)return new Promise((g,v)=>{d.addEventListener("load",g),d.addEventListener("error",()=>v(new Error(`Unable to preload CSS for ${u}`)))})}))}function i(o){const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=o,window.dispatchEvent(l),!l.defaultPrevented)throw o}return s.then(o=>{for(const l of o||[])l.status==="rejected"&&i(l.reason);return t().catch(i)})};/** +* @vue/shared v3.5.18 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**//*! #__NO_SIDE_EFFECTS__ */function Ls(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const ae={},Yt=[],qe=()=>{},ja=()=>!1,br=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Ms=e=>e.startsWith("onUpdate:"),me=Object.assign,$s=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Fa=Object.prototype.hasOwnProperty,oe=(e,t)=>Fa.call(e,t),U=Array.isArray,Zt=e=>jn(e)==="[object Map]",Co=e=>jn(e)==="[object Set]",Da=e=>jn(e)==="[object RegExp]",Y=e=>typeof e=="function",de=e=>typeof e=="string",ct=e=>typeof e=="symbol",he=e=>e!==null&&typeof e=="object",Ro=e=>(he(e)||Y(e))&&Y(e.then)&&Y(e.catch),Po=Object.prototype.toString,jn=e=>Po.call(e),qa=e=>jn(e).slice(8,-1),ko=e=>jn(e)==="[object Object]",Ns=e=>de(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,gn=Ls(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),_r=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Ba=/-(\w)/g,Fe=_r(e=>e.replace(Ba,(t,n)=>n?n.toUpperCase():"")),Ha=/\B([A-Z])/g,Ft=_r(e=>e.replace(Ha,"-$1").toLowerCase()),wr=_r(e=>e.charAt(0).toUpperCase()+e.slice(1)),Dr=_r(e=>e?`on${wr(e)}`:""),xt=(e,t)=>!Object.is(e,t),mn=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},Va=e=>{const t=parseFloat(e);return isNaN(t)?e:t},za=e=>{const t=de(e)?Number(e):NaN;return isNaN(t)?e:t};let li;const xr=()=>li||(li=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Sr(e){if(U(e)){const t={};for(let n=0;n{if(n){const r=n.split(Wa);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function Er(e){let t="";if(de(e))t=e;else if(U(e))for(let n=0;n!!(e&&e.__v_isRef===!0),Ya=e=>de(e)?e:e==null?"":U(e)||he(e)&&(e.toString===Po||!Y(e.toString))?Ao(e)?Ya(e.value):JSON.stringify(e,Oo,2):String(e),Oo=(e,t)=>Ao(t)?Oo(e,t.value):Zt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,s],i)=>(n[qr(r,i)+" =>"]=s,n),{})}:Co(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>qr(n))}:ct(t)?qr(t):he(t)&&!U(t)&&!ko(t)?String(t):t,qr=(e,t="")=>{var n;return ct(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};function Za(e){return e==null?"initial":typeof e=="string"?e===""?" ":e:String(e)}/** +* @vue/reactivity v3.5.18 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let we;class Lo{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=we,!t&&we&&(this.index=(we.scopes||(we.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t0&&--this._on===0&&(we=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let n,r;for(n=0,r=this.effects.length;n0)return;if(yn){let t=yn;for(yn=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;vn;){let t=vn;for(vn=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(r){e||(e=r)}t=n}}if(e)throw e}function Fo(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Do(e){let t,n=e.depsTail,r=n;for(;r;){const s=r.prevDep;r.version===-1?(r===n&&(n=s),Fs(r),ec(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=s}e.deps=t,e.depsTail=n}function as(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(qo(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function qo(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Rn)||(e.globalVersion=Rn,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!as(e))))return;e.flags|=2;const t=e.dep,n=fe,r=Be;fe=e,Be=!0;try{Fo(e);const s=e.fn(e._value);(t.version===0||xt(s,e._value))&&(e.flags|=128,e._value=s,t.version++)}catch(s){throw t.version++,s}finally{fe=n,Be=r,Do(e),e.flags&=-3}}function Fs(e,t=!1){const{dep:n,prevSub:r,nextSub:s}=e;if(r&&(r.nextSub=s,e.prevSub=void 0),s&&(s.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let i=n.computed.deps;i;i=i.nextDep)Fs(i,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function ec(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Be=!0;const Bo=[];function ot(){Bo.push(Be),Be=!1}function lt(){const e=Bo.pop();Be=e===void 0?!0:e}function ai(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=fe;fe=void 0;try{t()}finally{fe=n}}}let Rn=0;class tc{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Ds{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!fe||!Be||fe===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==fe)n=this.activeLink=new tc(fe,this),fe.deps?(n.prevDep=fe.depsTail,fe.depsTail.nextDep=n,fe.depsTail=n):fe.deps=fe.depsTail=n,Ho(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const r=n.nextDep;r.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=r),n.prevDep=fe.depsTail,n.nextDep=void 0,fe.depsTail.nextDep=n,fe.depsTail=n,fe.deps===n&&(fe.deps=r)}return n}trigger(t){this.version++,Rn++,this.notify(t)}notify(t){Is();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{js()}}}function Ho(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let r=t.deps;r;r=r.nextDep)Ho(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const nr=new WeakMap,At=Symbol(""),cs=Symbol(""),Pn=Symbol("");function xe(e,t,n){if(Be&&fe){let r=nr.get(e);r||nr.set(e,r=new Map);let s=r.get(n);s||(r.set(n,s=new Ds),s.map=r,s.key=n),s.track()}}function st(e,t,n,r,s,i){const o=nr.get(e);if(!o){Rn++;return}const l=a=>{a&&a.trigger()};if(Is(),t==="clear")o.forEach(l);else{const a=U(e),u=a&&Ns(n);if(a&&n==="length"){const c=Number(r);o.forEach((f,d)=>{(d==="length"||d===Pn||!ct(d)&&d>=c)&&l(f)})}else switch((n!==void 0||o.has(void 0))&&l(o.get(n)),u&&l(o.get(Pn)),t){case"add":a?u&&l(o.get("length")):(l(o.get(At)),Zt(e)&&l(o.get(cs)));break;case"delete":a||(l(o.get(At)),Zt(e)&&l(o.get(cs)));break;case"set":Zt(e)&&l(o.get(At));break}}js()}function nc(e,t){const n=nr.get(e);return n&&n.get(t)}function Vt(e){const t=ne(e);return t===e?t:(xe(t,"iterate",Pn),je(e)?t:t.map(ve))}function Cr(e){return xe(e=ne(e),"iterate",Pn),e}const rc={__proto__:null,[Symbol.iterator](){return Hr(this,Symbol.iterator,ve)},concat(...e){return Vt(this).concat(...e.map(t=>U(t)?Vt(t):t))},entries(){return Hr(this,"entries",e=>(e[1]=ve(e[1]),e))},every(e,t){return tt(this,"every",e,t,void 0,arguments)},filter(e,t){return tt(this,"filter",e,t,n=>n.map(ve),arguments)},find(e,t){return tt(this,"find",e,t,ve,arguments)},findIndex(e,t){return tt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return tt(this,"findLast",e,t,ve,arguments)},findLastIndex(e,t){return tt(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return tt(this,"forEach",e,t,void 0,arguments)},includes(...e){return Vr(this,"includes",e)},indexOf(...e){return Vr(this,"indexOf",e)},join(e){return Vt(this).join(e)},lastIndexOf(...e){return Vr(this,"lastIndexOf",e)},map(e,t){return tt(this,"map",e,t,void 0,arguments)},pop(){return on(this,"pop")},push(...e){return on(this,"push",e)},reduce(e,...t){return ci(this,"reduce",e,t)},reduceRight(e,...t){return ci(this,"reduceRight",e,t)},shift(){return on(this,"shift")},some(e,t){return tt(this,"some",e,t,void 0,arguments)},splice(...e){return on(this,"splice",e)},toReversed(){return Vt(this).toReversed()},toSorted(e){return Vt(this).toSorted(e)},toSpliced(...e){return Vt(this).toSpliced(...e)},unshift(...e){return on(this,"unshift",e)},values(){return Hr(this,"values",ve)}};function Hr(e,t,n){const r=Cr(e),s=r[t]();return r!==e&&!je(e)&&(s._next=s.next,s.next=()=>{const i=s._next();return i.value&&(i.value=n(i.value)),i}),s}const sc=Array.prototype;function tt(e,t,n,r,s,i){const o=Cr(e),l=o!==e&&!je(e),a=o[t];if(a!==sc[t]){const f=a.apply(e,i);return l?ve(f):f}let u=n;o!==e&&(l?u=function(f,d){return n.call(this,ve(f),d,e)}:n.length>2&&(u=function(f,d){return n.call(this,f,d,e)}));const c=a.call(o,u,r);return l&&s?s(c):c}function ci(e,t,n,r){const s=Cr(e);let i=n;return s!==e&&(je(e)?n.length>3&&(i=function(o,l,a){return n.call(this,o,l,a,e)}):i=function(o,l,a){return n.call(this,o,ve(l),a,e)}),s[t](i,...r)}function Vr(e,t,n){const r=ne(e);xe(r,"iterate",Pn);const s=r[t](...n);return(s===-1||s===!1)&&Hs(n[0])?(n[0]=ne(n[0]),r[t](...n)):s}function on(e,t,n=[]){ot(),Is();const r=ne(e)[t].apply(e,n);return js(),lt(),r}const ic=Ls("__proto__,__v_isRef,__isVue"),Vo=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(ct));function oc(e){ct(e)||(e=String(e));const t=ne(this);return xe(t,"has",e),t.hasOwnProperty(e)}class zo{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){if(n==="__v_skip")return t.__v_skip;const s=this._isReadonly,i=this._isShallow;if(n==="__v_isReactive")return!s;if(n==="__v_isReadonly")return s;if(n==="__v_isShallow")return i;if(n==="__v_raw")return r===(s?i?mc:Go:i?Uo:Wo).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const o=U(t);if(!s){let a;if(o&&(a=rc[n]))return a;if(n==="hasOwnProperty")return oc}const l=Reflect.get(t,n,pe(t)?t:r);return(ct(n)?Vo.has(n):ic(n))||(s||xe(t,"get",n),i)?l:pe(l)?o&&Ns(n)?l:l.value:he(l)?s?Jo(l):Dt(l):l}}class Ko extends zo{constructor(t=!1){super(!1,t)}set(t,n,r,s){let i=t[n];if(!this._isShallow){const a=Et(i);if(!je(r)&&!Et(r)&&(i=ne(i),r=ne(r)),!U(t)&&pe(i)&&!pe(r))return a?!1:(i.value=r,!0)}const o=U(t)&&Ns(n)?Number(n)e,Hn=e=>Reflect.getPrototypeOf(e);function fc(e,t,n){return function(...r){const s=this.__v_raw,i=ne(s),o=Zt(i),l=e==="entries"||e===Symbol.iterator&&o,a=e==="keys"&&o,u=s[e](...r),c=n?us:t?rr:ve;return!t&&xe(i,"iterate",a?cs:At),{next(){const{value:f,done:d}=u.next();return d?{value:f,done:d}:{value:l?[c(f[0]),c(f[1])]:c(f),done:d}},[Symbol.iterator](){return this}}}}function Vn(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function dc(e,t){const n={get(s){const i=this.__v_raw,o=ne(i),l=ne(s);e||(xt(s,l)&&xe(o,"get",s),xe(o,"get",l));const{has:a}=Hn(o),u=t?us:e?rr:ve;if(a.call(o,s))return u(i.get(s));if(a.call(o,l))return u(i.get(l));i!==o&&i.get(s)},get size(){const s=this.__v_raw;return!e&&xe(ne(s),"iterate",At),Reflect.get(s,"size",s)},has(s){const i=this.__v_raw,o=ne(i),l=ne(s);return e||(xt(s,l)&&xe(o,"has",s),xe(o,"has",l)),s===l?i.has(s):i.has(s)||i.has(l)},forEach(s,i){const o=this,l=o.__v_raw,a=ne(l),u=t?us:e?rr:ve;return!e&&xe(a,"iterate",At),l.forEach((c,f)=>s.call(i,u(c),u(f),o))}};return me(n,e?{add:Vn("add"),set:Vn("set"),delete:Vn("delete"),clear:Vn("clear")}:{add(s){!t&&!je(s)&&!Et(s)&&(s=ne(s));const i=ne(this);return Hn(i).has.call(i,s)||(i.add(s),st(i,"add",s,s)),this},set(s,i){!t&&!je(i)&&!Et(i)&&(i=ne(i));const o=ne(this),{has:l,get:a}=Hn(o);let u=l.call(o,s);u||(s=ne(s),u=l.call(o,s));const c=a.call(o,s);return o.set(s,i),u?xt(i,c)&&st(o,"set",s,i):st(o,"add",s,i),this},delete(s){const i=ne(this),{has:o,get:l}=Hn(i);let a=o.call(i,s);a||(s=ne(s),a=o.call(i,s)),l&&l.call(i,s);const u=i.delete(s);return a&&st(i,"delete",s,void 0),u},clear(){const s=ne(this),i=s.size!==0,o=s.clear();return i&&st(s,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(s=>{n[s]=fc(s,e,t)}),n}function qs(e,t){const n=dc(e,t);return(r,s,i)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?r:Reflect.get(oe(n,s)&&s in r?n:r,s,i)}const hc={get:qs(!1,!1)},pc={get:qs(!1,!0)},gc={get:qs(!0,!1)};const Wo=new WeakMap,Uo=new WeakMap,Go=new WeakMap,mc=new WeakMap;function vc(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function yc(e){return e.__v_skip||!Object.isExtensible(e)?0:vc(qa(e))}function Dt(e){return Et(e)?e:Bs(e,!1,ac,hc,Wo)}function Qo(e){return Bs(e,!1,uc,pc,Uo)}function Jo(e){return Bs(e,!0,cc,gc,Go)}function Bs(e,t,n,r,s){if(!he(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=yc(e);if(i===0)return e;const o=s.get(e);if(o)return o;const l=new Proxy(e,i===2?r:n);return s.set(e,l),l}function St(e){return Et(e)?St(e.__v_raw):!!(e&&e.__v_isReactive)}function Et(e){return!!(e&&e.__v_isReadonly)}function je(e){return!!(e&&e.__v_isShallow)}function Hs(e){return e?!!e.__v_raw:!1}function ne(e){const t=e&&e.__v_raw;return t?ne(t):e}function qt(e){return!oe(e,"__v_skip")&&Object.isExtensible(e)&&ls(e,"__v_skip",!0),e}const ve=e=>he(e)?Dt(e):e,rr=e=>he(e)?Jo(e):e;function pe(e){return e?e.__v_isRef===!0:!1}function Nt(e){return Zo(e,!1)}function Yo(e){return Zo(e,!0)}function Zo(e,t){return pe(e)?e:new bc(e,t)}class bc{constructor(t,n){this.dep=new Ds,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:ne(t),this._value=n?t:ve(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||je(t)||Et(t);t=r?t:ne(t),xt(t,n)&&(this._rawValue=t,this._value=r?t:ve(t),this.dep.trigger())}}function Ot(e){return pe(e)?e.value:e}const _c={get:(e,t,n)=>t==="__v_raw"?e:Ot(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const s=e[t];return pe(s)&&!pe(n)?(s.value=n,!0):Reflect.set(e,t,n,r)}};function Xo(e){return St(e)?e:new Proxy(e,_c)}function wc(e){const t=U(e)?new Array(e.length):{};for(const n in e)t[n]=Sc(e,n);return t}class xc{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0}get value(){const t=this._object[this._key];return this._value=t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return nc(ne(this._object),this._key)}}function Sc(e,t,n){const r=e[t];return pe(r)?r:new xc(e,t,n)}class Ec{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Ds(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Rn-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&fe!==this)return jo(this,!0),!0}get value(){const t=this.dep.track();return qo(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Cc(e,t,n=!1){let r,s;return Y(e)?r=e:(r=e.get,s=e.set),new Ec(r,s,n)}const zn={},sr=new WeakMap;let Tt;function Rc(e,t=!1,n=Tt){if(n){let r=sr.get(n);r||sr.set(n,r=[]),r.push(e)}}function Pc(e,t,n=ae){const{immediate:r,deep:s,once:i,scheduler:o,augmentJob:l,call:a}=n,u=y=>s?y:je(y)||s===!1||s===0?it(y,1):it(y);let c,f,d,g,v=!1,S=!1;if(pe(e)?(f=()=>e.value,v=je(e)):St(e)?(f=()=>u(e),v=!0):U(e)?(S=!0,v=e.some(y=>St(y)||je(y)),f=()=>e.map(y=>{if(pe(y))return y.value;if(St(y))return u(y);if(Y(y))return a?a(y,2):y()})):Y(e)?t?f=a?()=>a(e,2):e:f=()=>{if(d){ot();try{d()}finally{lt()}}const y=Tt;Tt=c;try{return a?a(e,3,[g]):e(g)}finally{Tt=y}}:f=qe,t&&s){const y=f,k=s===!0?1/0:s;f=()=>it(y(),k)}const T=$o(),O=()=>{c.stop(),T&&T.active&&$s(T.effects,c)};if(i&&t){const y=t;t=(...k)=>{y(...k),O()}}let x=S?new Array(e.length).fill(zn):zn;const C=y=>{if(!(!(c.flags&1)||!c.dirty&&!y))if(t){const k=c.run();if(s||v||(S?k.some((H,q)=>xt(H,x[q])):xt(k,x))){d&&d();const H=Tt;Tt=c;try{const q=[k,x===zn?void 0:S&&x[0]===zn?[]:x,g];x=k,a?a(t,3,q):t(...q)}finally{Tt=H}}}else c.run()};return l&&l(C),c=new No(f),c.scheduler=o?()=>o(C,!1):C,g=y=>Rc(y,!1,c),d=c.onStop=()=>{const y=sr.get(c);if(y){if(a)a(y,4);else for(const k of y)k();sr.delete(c)}},t?r?C(!0):x=c.run():o?o(C.bind(null,!0),!0):c.run(),O.pause=c.pause.bind(c),O.resume=c.resume.bind(c),O.stop=O,O}function it(e,t=1/0,n){if(t<=0||!he(e)||e.__v_skip||(n=n||new Set,n.has(e)))return e;if(n.add(e),t--,pe(e))it(e.value,t,n);else if(U(e))for(let r=0;r{it(r,t,n)});else if(ko(e)){for(const r in e)it(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&it(e[r],t,n)}return e}/** +* @vue/runtime-core v3.5.18 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/function Fn(e,t,n,r){try{return r?e(...r):e()}catch(s){Rr(s,t,n)}}function He(e,t,n,r){if(Y(e)){const s=Fn(e,t,n,r);return s&&Ro(s)&&s.catch(i=>{Rr(i,t,n)}),s}if(U(e)){const s=[];for(let i=0;i>>1,s=Ce[r],i=kn(s);i=kn(n)?Ce.push(e):Ce.splice(Tc(t),0,e),e.flags|=1,tl()}}function tl(){ir||(ir=el.then(sl))}function nl(e){U(e)?Xt.push(...e):mt&&e.id===-1?mt.splice(Qt+1,0,e):e.flags&1||(Xt.push(e),e.flags|=1),tl()}function ui(e,t,n=Je+1){for(;nkn(n)-kn(r));if(Xt.length=0,mt){mt.push(...t);return}for(mt=t,Qt=0;Qte.id==null?e.flags&2?-1:1/0:e.id;function sl(e){try{for(Je=0;Je{r._d&&Si(-1);const i=or(t);let o;try{o=e(...s)}finally{or(i),r._d&&Si(1)}return o};return r._n=!0,r._c=!0,r._d=!0,r}function ol(e,t){if(be===null)return e;const n=$r(be),r=e.dirs||(e.dirs=[]);for(let s=0;se.__isTeleport,bn=e=>e&&(e.disabled||e.disabled===""),fi=e=>e&&(e.defer||e.defer===""),di=e=>typeof SVGElement<"u"&&e instanceof SVGElement,hi=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,fs=(e,t)=>{const n=e&&e.to;return de(n)?t?t(n):null:n},cl={name:"Teleport",__isTeleport:!0,process(e,t,n,r,s,i,o,l,a,u){const{mc:c,pc:f,pbc:d,o:{insert:g,querySelector:v,createText:S,createComment:T}}=u,O=bn(t.props);let{shapeFlag:x,children:C,dynamicChildren:y}=t;if(e==null){const k=t.el=S(""),H=t.anchor=S("");g(k,n,r),g(H,n,r);const q=(R,B)=>{x&16&&(s&&s.isCE&&(s.ce._teleportTarget=R),c(C,R,B,s,i,o,l,a))},F=()=>{const R=t.target=fs(t.props,v),B=ul(R,t,S,g);R&&(o!=="svg"&&di(R)?o="svg":o!=="mathml"&&hi(R)&&(o="mathml"),O||(q(R,B),Qn(t,!1)))};O&&(q(n,H),Qn(t,!0)),fi(t.props)?(t.el.__isMounted=!1,ge(()=>{F(),delete t.el.__isMounted},i)):F()}else{if(fi(t.props)&&e.el.__isMounted===!1){ge(()=>{cl.process(e,t,n,r,s,i,o,l,a,u)},i);return}t.el=e.el,t.targetStart=e.targetStart;const k=t.anchor=e.anchor,H=t.target=e.target,q=t.targetAnchor=e.targetAnchor,F=bn(e.props),R=F?n:H,B=F?k:q;if(o==="svg"||di(H)?o="svg":(o==="mathml"||hi(H))&&(o="mathml"),y?(d(e.dynamicChildren,y,R,s,i,o,l),Js(e,t,!0)):a||f(e,t,R,B,s,i,o,l,!1),O)F?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Kn(t,n,k,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const W=t.target=fs(t.props,v);W&&Kn(t,W,null,u,0)}else F&&Kn(t,H,q,u,1);Qn(t,O)}},remove(e,t,n,{um:r,o:{remove:s}},i){const{shapeFlag:o,children:l,anchor:a,targetStart:u,targetAnchor:c,target:f,props:d}=e;if(f&&(s(u),s(c)),i&&s(a),o&16){const g=i||!bn(d);for(let v=0;v{e.isMounted=!0}),Or(()=>{e.isUnmounting=!0}),e}const $e=[Function,Array],dl={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:$e,onEnter:$e,onAfterEnter:$e,onEnterCancelled:$e,onBeforeLeave:$e,onLeave:$e,onAfterLeave:$e,onLeaveCancelled:$e,onBeforeAppear:$e,onAppear:$e,onAfterAppear:$e,onAppearCancelled:$e},hl=e=>{const t=e.subTree;return t.component?hl(t.component):t},Lc={name:"BaseTransition",props:dl,setup(e,{slots:t}){const n=ze(),r=fl();return()=>{const s=t.default&&Ks(t.default(),!0);if(!s||!s.length)return;const i=pl(s),o=ne(e),{mode:l}=o;if(r.isLeaving)return zr(i);const a=pi(i);if(!a)return zr(i);let u=Tn(a,o,r,n,f=>u=f);a.type!==ye&&Ct(a,u);let c=n.subTree&&pi(n.subTree);if(c&&c.type!==ye&&!wt(a,c)&&hl(n).type!==ye){let f=Tn(c,o,r,n);if(Ct(c,f),l==="out-in"&&a.type!==ye)return r.isLeaving=!0,f.afterLeave=()=>{r.isLeaving=!1,n.job.flags&8||n.update(),delete f.afterLeave,c=void 0},zr(i);l==="in-out"&&a.type!==ye?f.delayLeave=(d,g,v)=>{const S=gl(r,c);S[String(c.key)]=c,d[vt]=()=>{g(),d[vt]=void 0,delete u.delayedLeave,c=void 0},u.delayedLeave=()=>{v(),delete u.delayedLeave,c=void 0}}:c=void 0}else c&&(c=void 0);return i}}};function pl(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==ye){t=n;break}}return t}const Mc=Lc;function gl(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function Tn(e,t,n,r,s){const{appear:i,mode:o,persisted:l=!1,onBeforeEnter:a,onEnter:u,onAfterEnter:c,onEnterCancelled:f,onBeforeLeave:d,onLeave:g,onAfterLeave:v,onLeaveCancelled:S,onBeforeAppear:T,onAppear:O,onAfterAppear:x,onAppearCancelled:C}=t,y=String(e.key),k=gl(n,e),H=(R,B)=>{R&&He(R,r,9,B)},q=(R,B)=>{const W=B[1];H(R,B),U(R)?R.every(M=>M.length<=1)&&W():R.length<=1&&W()},F={mode:o,persisted:l,beforeEnter(R){let B=a;if(!n.isMounted)if(i)B=T||a;else return;R[vt]&&R[vt](!0);const W=k[y];W&&wt(e,W)&&W.el[vt]&&W.el[vt](),H(B,[R])},enter(R){let B=u,W=c,M=f;if(!n.isMounted)if(i)B=O||u,W=x||c,M=C||f;else return;let X=!1;const j=R[Wn]=ee=>{X||(X=!0,ee?H(M,[R]):H(W,[R]),F.delayedLeave&&F.delayedLeave(),R[Wn]=void 0)};B?q(B,[R,j]):j()},leave(R,B){const W=String(e.key);if(R[Wn]&&R[Wn](!0),n.isUnmounting)return B();H(d,[R]);let M=!1;const X=R[vt]=j=>{M||(M=!0,B(),j?H(S,[R]):H(v,[R]),R[vt]=void 0,k[W]===e&&delete k[W])};k[W]=e,g?q(g,[R,X]):X()},clone(R){const B=Tn(R,t,n,r,s);return s&&s(B),B}};return F}function zr(e){if(kr(e))return e=at(e),e.children=null,e}function pi(e){if(!kr(e))return al(e.type)&&e.children?pl(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&Y(n.default))return n.default()}}function Ct(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Ct(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Ks(e,t=!1,n){let r=[],s=0;for(let i=0;i1)for(let i=0;in.value,set:i=>n.value=i})}return n}function _n(e,t,n,r,s=!1){if(U(e)){e.forEach((v,S)=>_n(v,t&&(U(t)?t[S]:t),n,r,s));return}if(Lt(r)&&!s){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&_n(e,t,n,r.component.subTree);return}const i=r.shapeFlag&4?$r(r.component):r.el,o=s?null:i,{i:l,r:a}=e,u=t&&t.r,c=l.refs===ae?l.refs={}:l.refs,f=l.setupState,d=ne(f),g=f===ae?()=>!1:v=>oe(d,v);if(u!=null&&u!==a&&(de(u)?(c[u]=null,g(u)&&(f[u]=null)):pe(u)&&(u.value=null)),Y(a))Fn(a,l,12,[o,c]);else{const v=de(a),S=pe(a);if(v||S){const T=()=>{if(e.f){const O=v?g(a)?f[a]:c[a]:a.value;s?U(O)&&$s(O,i):U(O)?O.includes(i)||O.push(i):v?(c[a]=[i],g(a)&&(f[a]=c[a])):(a.value=[i],e.k&&(c[e.k]=a.value))}else v?(c[a]=o,g(a)&&(f[a]=o)):S&&(a.value=o,e.k&&(c[e.k]=o))};o?(T.id=-1,ge(T,n)):T()}}}xr().requestIdleCallback;xr().cancelIdleCallback;const Lt=e=>!!e.type.__asyncLoader,kr=e=>e.type.__isKeepAlive,$c={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=ze(),r=n.ctx;if(!r.renderer)return()=>{const x=t.default&&t.default();return x&&x.length===1?x[0]:x};const s=new Map,i=new Set;let o=null;const l=n.suspense,{renderer:{p:a,m:u,um:c,o:{createElement:f}}}=r,d=f("div");r.activate=(x,C,y,k,H)=>{const q=x.component;u(x,C,y,0,l),a(q.vnode,x,C,y,q,l,k,x.slotScopeIds,H),ge(()=>{q.isDeactivated=!1,q.a&&mn(q.a);const F=x.props&&x.props.onVnodeMounted;F&&Ie(F,q.parent,x)},l)},r.deactivate=x=>{const C=x.component;ar(C.m),ar(C.a),u(x,d,null,1,l),ge(()=>{C.da&&mn(C.da);const y=x.props&&x.props.onVnodeUnmounted;y&&Ie(y,C.parent,x),C.isDeactivated=!0},l)};function g(x){Kr(x),c(x,n,l,!0)}function v(x){s.forEach((C,y)=>{const k=vs(C.type);k&&!x(k)&&S(y)})}function S(x){const C=s.get(x);C&&(!o||!wt(C,o))?g(C):o&&Kr(o),s.delete(x),i.delete(x)}$t(()=>[e.include,e.exclude],([x,C])=>{x&&v(y=>fn(x,y)),C&&v(y=>!fn(C,y))},{flush:"post",deep:!0});let T=null;const O=()=>{T!=null&&(cr(n.subTree.type)?ge(()=>{s.set(T,Un(n.subTree))},n.subTree.suspense):s.set(T,Un(n.subTree)))};return Ar(O),Ws(O),Or(()=>{s.forEach(x=>{const{subTree:C,suspense:y}=n,k=Un(C);if(x.type===k.type&&x.key===k.key){Kr(k);const H=k.component.da;H&&ge(H,y);return}g(x)})}),()=>{if(T=null,!t.default)return o=null;const x=t.default(),C=x[0];if(x.length>1)return o=null,x;if(!en(C)||!(C.shapeFlag&4)&&!(C.shapeFlag&128))return o=null,C;let y=Un(C);if(y.type===ye)return o=null,y;const k=y.type,H=vs(Lt(y)?y.type.__asyncResolved||{}:k),{include:q,exclude:F,max:R}=e;if(q&&(!H||!fn(q,H))||F&&H&&fn(F,H))return y.shapeFlag&=-257,o=y,C;const B=y.key==null?k:y.key,W=s.get(B);return y.el&&(y=at(y),C.shapeFlag&128&&(C.ssContent=y)),T=B,W?(y.el=W.el,y.component=W.component,y.transition&&Ct(y,y.transition),y.shapeFlag|=512,i.delete(B),i.add(B)):(i.add(B),R&&i.size>parseInt(R,10)&&S(i.values().next().value)),y.shapeFlag|=256,o=y,cr(C.type)?C:y}}},Zh=$c;function fn(e,t){return U(e)?e.some(n=>fn(n,t)):de(e)?e.split(",").includes(t):Da(e)?(e.lastIndex=0,e.test(t)):!1}function Nc(e,t){vl(e,"a",t)}function Ic(e,t){vl(e,"da",t)}function vl(e,t,n=Se){const r=e.__wdc||(e.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(Tr(t,r,n),n){let s=n.parent;for(;s&&s.parent;)kr(s.parent.vnode)&&jc(r,t,n,s),s=s.parent}}function jc(e,t,n,r){const s=Tr(t,e,r,!0);Us(()=>{$s(r[t],s)},n)}function Kr(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function Un(e){return e.shapeFlag&128?e.ssContent:e}function Tr(e,t,n=Se,r=!1){if(n){const s=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...o)=>{ot();const l=Dn(n),a=He(t,n,e,o);return l(),lt(),a});return r?s.unshift(i):s.push(i),i}}const ut=e=>(t,n=Se)=>{(!On||e==="sp")&&Tr(e,(...r)=>t(...r),n)},Fc=ut("bm"),Ar=ut("m"),yl=ut("bu"),Ws=ut("u"),Or=ut("bum"),Us=ut("um"),Dc=ut("sp"),qc=ut("rtg"),Bc=ut("rtc");function Hc(e,t=Se){Tr("ec",e,t)}const bl="components";function Vc(e,t){return wl(bl,e,!0,t)||e}const _l=Symbol.for("v-ndc");function Xh(e){return de(e)?wl(bl,e,!1)||e:e||_l}function wl(e,t,n=!0,r=!1){const s=be||Se;if(s){const i=s.type;{const l=vs(i,!1);if(l&&(l===t||l===Fe(t)||l===wr(Fe(t))))return i}const o=gi(s[e]||i[e],t)||gi(s.appContext[e],t);return!o&&r?i:o}}function gi(e,t){return e&&(e[t]||e[Fe(t)]||e[wr(Fe(t))])}function ep(e,t,n,r){let s;const i=n,o=U(e);if(o||de(e)){const l=o&&St(e);let a=!1,u=!1;l&&(a=!je(e),u=Et(e),e=Cr(e)),s=new Array(e.length);for(let c=0,f=e.length;ct(l,a,void 0,i));else{const l=Object.keys(e);s=new Array(l.length);for(let a=0,u=l.length;a{const i=r.fn(...s);return i&&(i.key=r.key),i}:r.fn)}return e}function np(e,t,n={},r,s){if(be.ce||be.parent&&Lt(be.parent)&&be.parent.ce)return t!=="default"&&(n.name=t),ur(),fr(Re,null,[Pe("slot",n,r)],64);let i=e[t];i&&i._c&&(i._d=!1),ur();const o=i&&xl(i(n)),l=n.key||o&&o.key,a=fr(Re,{key:(l&&!ct(l)?l:`_${t}`)+(!o&&r?"_fb":"")},o||[],o&&e._===1?64:-2);return i&&i._c&&(i._d=!0),a}function xl(e){return e.some(t=>en(t)?!(t.type===ye||t.type===Re&&!xl(t.children)):!0)?e:null}const ds=e=>e?Bl(e)?$r(e):ds(e.parent):null,wn=me(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>ds(e.parent),$root:e=>ds(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>El(e),$forceUpdate:e=>e.f||(e.f=()=>{zs(e.update)}),$nextTick:e=>e.n||(e.n=Vs.bind(e.proxy)),$watch:e=>du.bind(e)}),Wr=(e,t)=>e!==ae&&!e.__isScriptSetup&&oe(e,t),zc={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:s,props:i,accessCache:o,type:l,appContext:a}=e;let u;if(t[0]!=="$"){const g=o[t];if(g!==void 0)switch(g){case 1:return r[t];case 2:return s[t];case 4:return n[t];case 3:return i[t]}else{if(Wr(r,t))return o[t]=1,r[t];if(s!==ae&&oe(s,t))return o[t]=2,s[t];if((u=e.propsOptions[0])&&oe(u,t))return o[t]=3,i[t];if(n!==ae&&oe(n,t))return o[t]=4,n[t];hs&&(o[t]=0)}}const c=wn[t];let f,d;if(c)return t==="$attrs"&&xe(e.attrs,"get",""),c(e);if((f=l.__cssModules)&&(f=f[t]))return f;if(n!==ae&&oe(n,t))return o[t]=4,n[t];if(d=a.config.globalProperties,oe(d,t))return d[t]},set({_:e},t,n){const{data:r,setupState:s,ctx:i}=e;return Wr(s,t)?(s[t]=n,!0):r!==ae&&oe(r,t)?(r[t]=n,!0):oe(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:s,propsOptions:i}},o){let l;return!!n[o]||e!==ae&&oe(e,o)||Wr(t,o)||(l=i[0])&&oe(l,o)||oe(r,o)||oe(wn,o)||oe(s.config.globalProperties,o)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:oe(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function rp(){return Kc().slots}function Kc(e){const t=ze();return t.setupContext||(t.setupContext=Vl(t))}function mi(e){return U(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let hs=!0;function Wc(e){const t=El(e),n=e.proxy,r=e.ctx;hs=!1,t.beforeCreate&&vi(t.beforeCreate,e,"bc");const{data:s,computed:i,methods:o,watch:l,provide:a,inject:u,created:c,beforeMount:f,mounted:d,beforeUpdate:g,updated:v,activated:S,deactivated:T,beforeDestroy:O,beforeUnmount:x,destroyed:C,unmounted:y,render:k,renderTracked:H,renderTriggered:q,errorCaptured:F,serverPrefetch:R,expose:B,inheritAttrs:W,components:M,directives:X,filters:j}=t;if(u&&Uc(u,r,null),o)for(const Z in o){const se=o[Z];Y(se)&&(r[Z]=se.bind(n))}if(s){const Z=s.call(n,n);he(Z)&&(e.data=Dt(Z))}if(hs=!0,i)for(const Z in i){const se=i[Z],et=Y(se)?se.bind(n,n):Y(se.get)?se.get.bind(n,n):qe,ft=!Y(se)&&Y(se.set)?se.set.bind(n):qe,Ke=Q({get:et,set:ft});Object.defineProperty(r,Z,{enumerable:!0,configurable:!0,get:()=>Ke.value,set:ke=>Ke.value=ke})}if(l)for(const Z in l)Sl(l[Z],r,n,Z);if(a){const Z=Y(a)?a.call(n):a;Reflect.ownKeys(Z).forEach(se=>{Jn(se,Z[se])})}c&&vi(c,e,"c");function re(Z,se){U(se)?se.forEach(et=>Z(et.bind(n))):se&&Z(se.bind(n))}if(re(Fc,f),re(Ar,d),re(yl,g),re(Ws,v),re(Nc,S),re(Ic,T),re(Hc,F),re(Bc,H),re(qc,q),re(Or,x),re(Us,y),re(Dc,R),U(B))if(B.length){const Z=e.exposed||(e.exposed={});B.forEach(se=>{Object.defineProperty(Z,se,{get:()=>n[se],set:et=>n[se]=et,enumerable:!0})})}else e.exposed||(e.exposed={});k&&e.render===qe&&(e.render=k),W!=null&&(e.inheritAttrs=W),M&&(e.components=M),X&&(e.directives=X),R&&ml(e)}function Uc(e,t,n=qe){U(e)&&(e=ps(e));for(const r in e){const s=e[r];let i;he(s)?"default"in s?i=Ze(s.from||r,s.default,!0):i=Ze(s.from||r):i=Ze(s),pe(i)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>i.value,set:o=>i.value=o}):t[r]=i}}function vi(e,t,n){He(U(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function Sl(e,t,n,r){let s=r.includes(".")?Il(n,r):()=>n[r];if(de(e)){const i=t[e];Y(i)&&$t(s,i)}else if(Y(e))$t(s,e.bind(n));else if(he(e))if(U(e))e.forEach(i=>Sl(i,t,n,r));else{const i=Y(e.handler)?e.handler.bind(n):t[e.handler];Y(i)&&$t(s,i,e)}}function El(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:s,optionsCache:i,config:{optionMergeStrategies:o}}=e.appContext,l=i.get(t);let a;return l?a=l:!s.length&&!n&&!r?a=t:(a={},s.length&&s.forEach(u=>lr(a,u,o,!0)),lr(a,t,o)),he(t)&&i.set(t,a),a}function lr(e,t,n,r=!1){const{mixins:s,extends:i}=t;i&&lr(e,i,n,!0),s&&s.forEach(o=>lr(e,o,n,!0));for(const o in t)if(!(r&&o==="expose")){const l=Gc[o]||n&&n[o];e[o]=l?l(e[o],t[o]):t[o]}return e}const Gc={data:yi,props:bi,emits:bi,methods:dn,computed:dn,beforeCreate:Ee,created:Ee,beforeMount:Ee,mounted:Ee,beforeUpdate:Ee,updated:Ee,beforeDestroy:Ee,beforeUnmount:Ee,destroyed:Ee,unmounted:Ee,activated:Ee,deactivated:Ee,errorCaptured:Ee,serverPrefetch:Ee,components:dn,directives:dn,watch:Jc,provide:yi,inject:Qc};function yi(e,t){return t?e?function(){return me(Y(e)?e.call(this,this):e,Y(t)?t.call(this,this):t)}:t:e}function Qc(e,t){return dn(ps(e),ps(t))}function ps(e){if(U(e)){const t={};for(let n=0;n1)return n&&Y(t)?t.call(r&&r.proxy):t}}function Xc(){return!!(ze()||Mt)}const Rl={},Pl=()=>Object.create(Rl),kl=e=>Object.getPrototypeOf(e)===Rl;function eu(e,t,n,r=!1){const s={},i=Pl();e.propsDefaults=Object.create(null),Tl(e,t,s,i);for(const o in e.propsOptions[0])o in s||(s[o]=void 0);n?e.props=r?s:Qo(s):e.type.props?e.props=s:e.props=i,e.attrs=i}function tu(e,t,n,r){const{props:s,attrs:i,vnode:{patchFlag:o}}=e,l=ne(s),[a]=e.propsOptions;let u=!1;if((r||o>0)&&!(o&16)){if(o&8){const c=e.vnode.dynamicProps;for(let f=0;f{a=!0;const[d,g]=Al(f,t,!0);me(o,d),g&&l.push(...g)};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!i&&!a)return he(e)&&r.set(e,Yt),Yt;if(U(i))for(let c=0;ce==="_"||e==="__"||e==="_ctx"||e==="$stable",Qs=e=>U(e)?e.map(Ye):[Ye(e)],ru=(e,t,n)=>{if(t._n)return t;const r=Ac((...s)=>Qs(t(...s)),n);return r._c=!1,r},Ol=(e,t,n)=>{const r=e._ctx;for(const s in e){if(Gs(s))continue;const i=e[s];if(Y(i))t[s]=ru(s,i,r);else if(i!=null){const o=Qs(i);t[s]=()=>o}}},Ll=(e,t)=>{const n=Qs(t);e.slots.default=()=>n},Ml=(e,t,n)=>{for(const r in t)(n||!Gs(r))&&(e[r]=t[r])},su=(e,t,n)=>{const r=e.slots=Pl();if(e.vnode.shapeFlag&32){const s=t.__;s&&ls(r,"__",s,!0);const i=t._;i?(Ml(r,t,n),n&&ls(r,"_",i,!0)):Ol(t,r)}else t&&Ll(e,t)},iu=(e,t,n)=>{const{vnode:r,slots:s}=e;let i=!0,o=ae;if(r.shapeFlag&32){const l=t._;l?n&&l===1?i=!1:Ml(s,t,n):(i=!t.$stable,Ol(t,s)),o=t}else t&&(Ll(e,t),o={default:1});if(i)for(const l in s)!Gs(l)&&o[l]==null&&delete s[l]},ge=bu;function ou(e){return lu(e)}function lu(e,t){const n=xr();n.__VUE__=!0;const{insert:r,remove:s,patchProp:i,createElement:o,createText:l,createComment:a,setText:u,setElementText:c,parentNode:f,nextSibling:d,setScopeId:g=qe,insertStaticContent:v}=e,S=(h,p,m,b=null,E=null,w=null,$=void 0,L=null,A=!!p.dynamicChildren)=>{if(h===p)return;h&&!wt(h,p)&&(b=_(h),ke(h,E,w,!0),h=null),p.patchFlag===-2&&(A=!1,p.dynamicChildren=null);const{type:P,ref:K,shapeFlag:I}=p;switch(P){case Mr:T(h,p,m,b);break;case ye:O(h,p,m,b);break;case Yn:h==null&&x(p,m,b,$);break;case Re:M(h,p,m,b,E,w,$,L,A);break;default:I&1?k(h,p,m,b,E,w,$,L,A):I&6?X(h,p,m,b,E,w,$,L,A):(I&64||I&128)&&P.process(h,p,m,b,E,w,$,L,A,V)}K!=null&&E?_n(K,h&&h.ref,w,p||h,!p):K==null&&h&&h.ref!=null&&_n(h.ref,null,w,h,!0)},T=(h,p,m,b)=>{if(h==null)r(p.el=l(p.children),m,b);else{const E=p.el=h.el;p.children!==h.children&&u(E,p.children)}},O=(h,p,m,b)=>{h==null?r(p.el=a(p.children||""),m,b):p.el=h.el},x=(h,p,m,b)=>{[h.el,h.anchor]=v(h.children,p,m,b,h.el,h.anchor)},C=({el:h,anchor:p},m,b)=>{let E;for(;h&&h!==p;)E=d(h),r(h,m,b),h=E;r(p,m,b)},y=({el:h,anchor:p})=>{let m;for(;h&&h!==p;)m=d(h),s(h),h=m;s(p)},k=(h,p,m,b,E,w,$,L,A)=>{p.type==="svg"?$="svg":p.type==="math"&&($="mathml"),h==null?H(p,m,b,E,w,$,L,A):R(h,p,E,w,$,L,A)},H=(h,p,m,b,E,w,$,L)=>{let A,P;const{props:K,shapeFlag:I,transition:z,dirs:J}=h;if(A=h.el=o(h.type,w,K&&K.is,K),I&8?c(A,h.children):I&16&&F(h.children,A,null,b,E,Ur(h,w),$,L),J&&Rt(h,null,b,"created"),q(A,h,h.scopeId,$,b),K){for(const ue in K)ue!=="value"&&!gn(ue)&&i(A,ue,null,K[ue],w,b);"value"in K&&i(A,"value",null,K.value,w),(P=K.onVnodeBeforeMount)&&Ie(P,b,h)}J&&Rt(h,null,b,"beforeMount");const te=au(E,z);te&&z.beforeEnter(A),r(A,p,m),((P=K&&K.onVnodeMounted)||te||J)&&ge(()=>{P&&Ie(P,b,h),te&&z.enter(A),J&&Rt(h,null,b,"mounted")},E)},q=(h,p,m,b,E)=>{if(m&&g(h,m),b)for(let w=0;w{for(let P=A;P{const L=p.el=h.el;let{patchFlag:A,dynamicChildren:P,dirs:K}=p;A|=h.patchFlag&16;const I=h.props||ae,z=p.props||ae;let J;if(m&&Pt(m,!1),(J=z.onVnodeBeforeUpdate)&&Ie(J,m,p,h),K&&Rt(p,h,m,"beforeUpdate"),m&&Pt(m,!0),(I.innerHTML&&z.innerHTML==null||I.textContent&&z.textContent==null)&&c(L,""),P?B(h.dynamicChildren,P,L,m,b,Ur(p,E),w):$||se(h,p,L,null,m,b,Ur(p,E),w,!1),A>0){if(A&16)W(L,I,z,m,E);else if(A&2&&I.class!==z.class&&i(L,"class",null,z.class,E),A&4&&i(L,"style",I.style,z.style,E),A&8){const te=p.dynamicProps;for(let ue=0;ue{J&&Ie(J,m,p,h),K&&Rt(p,h,m,"updated")},b)},B=(h,p,m,b,E,w,$)=>{for(let L=0;L{if(p!==m){if(p!==ae)for(const w in p)!gn(w)&&!(w in m)&&i(h,w,p[w],null,E,b);for(const w in m){if(gn(w))continue;const $=m[w],L=p[w];$!==L&&w!=="value"&&i(h,w,L,$,E,b)}"value"in m&&i(h,"value",p.value,m.value,E)}},M=(h,p,m,b,E,w,$,L,A)=>{const P=p.el=h?h.el:l(""),K=p.anchor=h?h.anchor:l("");let{patchFlag:I,dynamicChildren:z,slotScopeIds:J}=p;J&&(L=L?L.concat(J):J),h==null?(r(P,m,b),r(K,m,b),F(p.children||[],m,K,E,w,$,L,A)):I>0&&I&64&&z&&h.dynamicChildren?(B(h.dynamicChildren,z,m,E,w,$,L),(p.key!=null||E&&p===E.subTree)&&Js(h,p,!0)):se(h,p,m,K,E,w,$,L,A)},X=(h,p,m,b,E,w,$,L,A)=>{p.slotScopeIds=L,h==null?p.shapeFlag&512?E.ctx.activate(p,m,b,$,A):j(p,m,b,E,w,$,A):ee(h,p,A)},j=(h,p,m,b,E,w,$)=>{const L=h.component=Pu(h,b,E);if(kr(h)&&(L.ctx.renderer=V),ku(L,!1,$),L.asyncDep){if(E&&E.registerDep(L,re,$),!h.el){const A=L.subTree=Pe(ye);O(null,A,p,m),h.placeholder=A.el}}else re(L,h,p,m,E,w,$)},ee=(h,p,m)=>{const b=p.component=h.component;if(vu(h,p,m))if(b.asyncDep&&!b.asyncResolved){Z(b,p,m);return}else b.next=p,b.update();else p.el=h.el,b.vnode=p},re=(h,p,m,b,E,w,$)=>{const L=()=>{if(h.isMounted){let{next:I,bu:z,u:J,parent:te,vnode:ue}=h;{const Ue=$l(h);if(Ue){I&&(I.el=ue.el,Z(h,I,$)),Ue.asyncDep.then(()=>{h.isUnmounted||L()});return}}let le=I,Te;Pt(h,!1),I?(I.el=ue.el,Z(h,I,$)):I=ue,z&&mn(z),(Te=I.props&&I.props.onVnodeBeforeUpdate)&&Ie(Te,te,I,ue),Pt(h,!0);const Ae=wi(h),We=h.subTree;h.subTree=Ae,S(We,Ae,f(We.el),_(We),h,E,w),I.el=Ae.el,le===null&&yu(h,Ae.el),J&&ge(J,E),(Te=I.props&&I.props.onVnodeUpdated)&&ge(()=>Ie(Te,te,I,ue),E)}else{let I;const{el:z,props:J}=p,{bm:te,m:ue,parent:le,root:Te,type:Ae}=h,We=Lt(p);Pt(h,!1),te&&mn(te),!We&&(I=J&&J.onVnodeBeforeMount)&&Ie(I,le,p),Pt(h,!0);{Te.ce&&Te.ce._def.shadowRoot!==!1&&Te.ce._injectChildStyle(Ae);const Ue=h.subTree=wi(h);S(null,Ue,m,b,h,E,w),p.el=Ue.el}if(ue&&ge(ue,E),!We&&(I=J&&J.onVnodeMounted)){const Ue=p;ge(()=>Ie(I,le,Ue),E)}(p.shapeFlag&256||le&&Lt(le.vnode)&&le.vnode.shapeFlag&256)&&h.a&&ge(h.a,E),h.isMounted=!0,p=m=b=null}};h.scope.on();const A=h.effect=new No(L);h.scope.off();const P=h.update=A.run.bind(A),K=h.job=A.runIfDirty.bind(A);K.i=h,K.id=h.uid,A.scheduler=()=>zs(K),Pt(h,!0),P()},Z=(h,p,m)=>{p.component=h;const b=h.vnode.props;h.vnode=p,h.next=null,tu(h,p.props,b,m),iu(h,p.children,m),ot(),ui(h),lt()},se=(h,p,m,b,E,w,$,L,A=!1)=>{const P=h&&h.children,K=h?h.shapeFlag:0,I=p.children,{patchFlag:z,shapeFlag:J}=p;if(z>0){if(z&128){ft(P,I,m,b,E,w,$,L,A);return}else if(z&256){et(P,I,m,b,E,w,$,L,A);return}}J&8?(K&16&&Me(P,E,w),I!==P&&c(m,I)):K&16?J&16?ft(P,I,m,b,E,w,$,L,A):Me(P,E,w,!0):(K&8&&c(m,""),J&16&&F(I,m,b,E,w,$,L,A))},et=(h,p,m,b,E,w,$,L,A)=>{h=h||Yt,p=p||Yt;const P=h.length,K=p.length,I=Math.min(P,K);let z;for(z=0;zK?Me(h,E,w,!0,!1,I):F(p,m,b,E,w,$,L,A,I)},ft=(h,p,m,b,E,w,$,L,A)=>{let P=0;const K=p.length;let I=h.length-1,z=K-1;for(;P<=I&&P<=z;){const J=h[P],te=p[P]=A?yt(p[P]):Ye(p[P]);if(wt(J,te))S(J,te,m,null,E,w,$,L,A);else break;P++}for(;P<=I&&P<=z;){const J=h[I],te=p[z]=A?yt(p[z]):Ye(p[z]);if(wt(J,te))S(J,te,m,null,E,w,$,L,A);else break;I--,z--}if(P>I){if(P<=z){const J=z+1,te=Jz)for(;P<=I;)ke(h[P],E,w,!0),P++;else{const J=P,te=P,ue=new Map;for(P=te;P<=z;P++){const Oe=p[P]=A?yt(p[P]):Ye(p[P]);Oe.key!=null&&ue.set(Oe.key,P)}let le,Te=0;const Ae=z-te+1;let We=!1,Ue=0;const sn=new Array(Ae);for(P=0;P=Ae){ke(Oe,E,w,!0);continue}let Ge;if(Oe.key!=null)Ge=ue.get(Oe.key);else for(le=te;le<=z;le++)if(sn[le-te]===0&&wt(Oe,p[le])){Ge=le;break}Ge===void 0?ke(Oe,E,w,!0):(sn[Ge-te]=P+1,Ge>=Ue?Ue=Ge:We=!0,S(Oe,p[Ge],m,null,E,w,$,L,A),Te++)}const ri=We?cu(sn):Yt;for(le=ri.length-1,P=Ae-1;P>=0;P--){const Oe=te+P,Ge=p[Oe],si=p[Oe+1],ii=Oe+1{const{el:w,type:$,transition:L,children:A,shapeFlag:P}=h;if(P&6){Ke(h.component.subTree,p,m,b);return}if(P&128){h.suspense.move(p,m,b);return}if(P&64){$.move(h,p,m,V);return}if($===Re){r(w,p,m);for(let I=0;IL.enter(w),E);else{const{leave:I,delayLeave:z,afterLeave:J}=L,te=()=>{h.ctx.isUnmounted?s(w):r(w,p,m)},ue=()=>{I(w,()=>{te(),J&&J()})};z?z(w,te,ue):ue()}else r(w,p,m)},ke=(h,p,m,b=!1,E=!1)=>{const{type:w,props:$,ref:L,children:A,dynamicChildren:P,shapeFlag:K,patchFlag:I,dirs:z,cacheIndex:J}=h;if(I===-2&&(E=!1),L!=null&&(ot(),_n(L,null,m,h,!0),lt()),J!=null&&(p.renderCache[J]=void 0),K&256){p.ctx.deactivate(h);return}const te=K&1&&z,ue=!Lt(h);let le;if(ue&&(le=$&&$.onVnodeBeforeUnmount)&&Ie(le,p,h),K&6)Bn(h.component,m,b);else{if(K&128){h.suspense.unmount(m,b);return}te&&Rt(h,null,p,"beforeUnmount"),K&64?h.type.remove(h,p,m,V,b):P&&!P.hasOnce&&(w!==Re||I>0&&I&64)?Me(P,p,m,!1,!0):(w===Re&&I&384||!E&&K&16)&&Me(A,p,m),b&&Bt(h)}(ue&&(le=$&&$.onVnodeUnmounted)||te)&&ge(()=>{le&&Ie(le,p,h),te&&Rt(h,null,p,"unmounted")},m)},Bt=h=>{const{type:p,el:m,anchor:b,transition:E}=h;if(p===Re){Ht(m,b);return}if(p===Yn){y(h);return}const w=()=>{s(m),E&&!E.persisted&&E.afterLeave&&E.afterLeave()};if(h.shapeFlag&1&&E&&!E.persisted){const{leave:$,delayLeave:L}=E,A=()=>$(m,w);L?L(h.el,w,A):A()}else w()},Ht=(h,p)=>{let m;for(;h!==p;)m=d(h),s(h),h=m;s(p)},Bn=(h,p,m)=>{const{bum:b,scope:E,job:w,subTree:$,um:L,m:A,a:P,parent:K,slots:{__:I}}=h;ar(A),ar(P),b&&mn(b),K&&U(I)&&I.forEach(z=>{K.renderCache[z]=void 0}),E.stop(),w&&(w.flags|=8,ke($,h,p,m)),L&&ge(L,p),ge(()=>{h.isUnmounted=!0},p),p&&p.pendingBranch&&!p.isUnmounted&&h.asyncDep&&!h.asyncResolved&&h.suspenseId===p.pendingId&&(p.deps--,p.deps===0&&p.resolve())},Me=(h,p,m,b=!1,E=!1,w=0)=>{for(let $=w;${if(h.shapeFlag&6)return _(h.component.subTree);if(h.shapeFlag&128)return h.suspense.next();const p=d(h.anchor||h.el),m=p&&p[ll];return m?d(m):p};let D=!1;const N=(h,p,m)=>{h==null?p._vnode&&ke(p._vnode,null,null,!0):S(p._vnode||null,h,p,null,null,null,m),p._vnode=h,D||(D=!0,ui(),rl(),D=!1)},V={p:S,um:ke,m:Ke,r:Bt,mt:j,mc:F,pc:se,pbc:B,n:_,o:e};return{render:N,hydrate:void 0,createApp:Zc(N)}}function Ur({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Pt({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function au(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Js(e,t,n=!1){const r=e.children,s=t.children;if(U(r)&&U(s))for(let i=0;i>1,e[n[l]]0&&(t[r]=n[i-1]),n[i]=r)}}for(i=n.length,o=n[i-1];i-- >0;)n[i]=o,o=t[o];return n}function $l(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:$l(t)}function ar(e){if(e)for(let t=0;tZe(uu);function $t(e,t,n){return Nl(e,t,n)}function Nl(e,t,n=ae){const{immediate:r,deep:s,flush:i,once:o}=n,l=me({},n),a=t&&r||!t&&i!=="post";let u;if(On){if(i==="sync"){const g=fu();u=g.__watcherHandles||(g.__watcherHandles=[])}else if(!a){const g=()=>{};return g.stop=qe,g.resume=qe,g.pause=qe,g}}const c=Se;l.call=(g,v,S)=>He(g,c,v,S);let f=!1;i==="post"?l.scheduler=g=>{ge(g,c&&c.suspense)}:i!=="sync"&&(f=!0,l.scheduler=(g,v)=>{v?g():zs(g)}),l.augmentJob=g=>{t&&(g.flags|=4),f&&(g.flags|=2,c&&(g.id=c.uid,g.i=c))};const d=Pc(e,t,l);return On&&(u?u.push(d):a&&d()),d}function du(e,t,n){const r=this.proxy,s=de(e)?e.includes(".")?Il(r,e):()=>r[e]:e.bind(r,r);let i;Y(t)?i=t:(i=t.handler,n=t);const o=Dn(this),l=Nl(s,i.bind(r),n);return o(),l}function Il(e,t){const n=t.split(".");return()=>{let r=e;for(let s=0;st==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Fe(t)}Modifiers`]||e[`${Ft(t)}Modifiers`];function pu(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||ae;let s=n;const i=t.startsWith("update:"),o=i&&hu(r,t.slice(7));o&&(o.trim&&(s=n.map(c=>de(c)?c.trim():c)),o.number&&(s=n.map(Va)));let l,a=r[l=Dr(t)]||r[l=Dr(Fe(t))];!a&&i&&(a=r[l=Dr(Ft(t))]),a&&He(a,e,6,s);const u=r[l+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,He(u,e,6,s)}}function jl(e,t,n=!1){const r=t.emitsCache,s=r.get(e);if(s!==void 0)return s;const i=e.emits;let o={},l=!1;if(!Y(e)){const a=u=>{const c=jl(u,t,!0);c&&(l=!0,me(o,c))};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return!i&&!l?(he(e)&&r.set(e,null),null):(U(i)?i.forEach(a=>o[a]=null):me(o,i),he(e)&&r.set(e,o),o)}function Lr(e,t){return!e||!br(t)?!1:(t=t.slice(2).replace(/Once$/,""),oe(e,t[0].toLowerCase()+t.slice(1))||oe(e,Ft(t))||oe(e,t))}function wi(e){const{type:t,vnode:n,proxy:r,withProxy:s,propsOptions:[i],slots:o,attrs:l,emit:a,render:u,renderCache:c,props:f,data:d,setupState:g,ctx:v,inheritAttrs:S}=e,T=or(e);let O,x;try{if(n.shapeFlag&4){const y=s||r,k=y;O=Ye(u.call(k,y,c,f,g,d,v)),x=l}else{const y=t;O=Ye(y.length>1?y(f,{attrs:l,slots:o,emit:a}):y(f,null)),x=t.props?l:gu(l)}}catch(y){xn.length=0,Rr(y,e,1),O=Pe(ye)}let C=O;if(x&&S!==!1){const y=Object.keys(x),{shapeFlag:k}=C;y.length&&k&7&&(i&&y.some(Ms)&&(x=mu(x,i)),C=at(C,x,!1,!0))}return n.dirs&&(C=at(C,null,!1,!0),C.dirs=C.dirs?C.dirs.concat(n.dirs):n.dirs),n.transition&&Ct(C,n.transition),O=C,or(T),O}const gu=e=>{let t;for(const n in e)(n==="class"||n==="style"||br(n))&&((t||(t={}))[n]=e[n]);return t},mu=(e,t)=>{const n={};for(const r in e)(!Ms(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function vu(e,t,n){const{props:r,children:s,component:i}=e,{props:o,children:l,patchFlag:a}=t,u=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&a>=0){if(a&1024)return!0;if(a&16)return r?xi(r,o,u):!!o;if(a&8){const c=t.dynamicProps;for(let f=0;fe.__isSuspense;function bu(e,t){t&&t.pendingBranch?U(e)?t.effects.push(...e):t.effects.push(e):nl(e)}const Re=Symbol.for("v-fgt"),Mr=Symbol.for("v-txt"),ye=Symbol.for("v-cmt"),Yn=Symbol.for("v-stc"),xn=[];let Le=null;function ur(e=!1){xn.push(Le=e?null:[])}function _u(){xn.pop(),Le=xn[xn.length-1]||null}let An=1;function Si(e,t=!1){An+=e,e<0&&Le&&t&&(Le.hasOnce=!0)}function Fl(e){return e.dynamicChildren=An>0?Le||Yt:null,_u(),An>0&&Le&&Le.push(e),e}function sp(e,t,n,r,s,i){return Fl(ql(e,t,n,r,s,i,!0))}function fr(e,t,n,r,s){return Fl(Pe(e,t,n,r,s,!0))}function en(e){return e?e.__v_isVNode===!0:!1}function wt(e,t){return e.type===t.type&&e.key===t.key}const Dl=({key:e})=>e??null,Zn=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?de(e)||pe(e)||Y(e)?{i:be,r:e,k:t,f:!!n}:e:null);function ql(e,t=null,n=null,r=0,s=null,i=e===Re?0:1,o=!1,l=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Dl(t),ref:t&&Zn(t),scopeId:il,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:r,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:be};return l?(Ys(a,n),i&128&&e.normalize(a)):n&&(a.shapeFlag|=de(n)?8:16),An>0&&!o&&Le&&(a.patchFlag>0||i&6)&&a.patchFlag!==32&&Le.push(a),a}const Pe=wu;function wu(e,t=null,n=null,r=0,s=null,i=!1){if((!e||e===_l)&&(e=ye),en(e)){const l=at(e,t,!0);return n&&Ys(l,n),An>0&&!i&&Le&&(l.shapeFlag&6?Le[Le.indexOf(e)]=l:Le.push(l)),l.patchFlag=-2,l}if(Ou(e)&&(e=e.__vccOpts),t){t=xu(t);let{class:l,style:a}=t;l&&!de(l)&&(t.class=Er(l)),he(a)&&(Hs(a)&&!U(a)&&(a=me({},a)),t.style=Sr(a))}const o=de(e)?1:cr(e)?128:al(e)?64:he(e)?4:Y(e)?2:0;return ql(e,t,n,r,s,o,i,!0)}function xu(e){return e?Hs(e)||kl(e)?me({},e):e:null}function at(e,t,n=!1,r=!1){const{props:s,ref:i,patchFlag:o,children:l,transition:a}=e,u=t?Eu(s||{},t):s,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&Dl(u),ref:t&&t.ref?n&&i?U(i)?i.concat(Zn(t)):[i,Zn(t)]:Zn(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Re?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:a,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&at(e.ssContent),ssFallback:e.ssFallback&&at(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return a&&r&&Ct(c,a.clone(c)),c}function Su(e=" ",t=0){return Pe(Mr,null,e,t)}function ip(e="",t=!1){return t?(ur(),fr(ye,null,e)):Pe(ye,null,e)}function Ye(e){return e==null||typeof e=="boolean"?Pe(ye):U(e)?Pe(Re,null,e.slice()):en(e)?yt(e):Pe(Mr,null,String(e))}function yt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:at(e)}function Ys(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(U(t))n=16;else if(typeof t=="object")if(r&65){const s=t.default;s&&(s._c&&(s._d=!1),Ys(e,s()),s._c&&(s._d=!0));return}else{n=32;const s=t._;!s&&!kl(t)?t._ctx=be:s===3&&be&&(be.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Y(t)?(t={default:t,_ctx:be},n=32):(t=String(t),r&64?(n=16,t=[Su(t)]):n=8);e.children=t,e.shapeFlag|=n}function Eu(...e){const t={};for(let n=0;nSe||be;let dr,ms;{const e=xr(),t=(n,r)=>{let s;return(s=e[n])||(s=e[n]=[]),s.push(r),i=>{s.length>1?s.forEach(o=>o(i)):s[0](i)}};dr=t("__VUE_INSTANCE_SETTERS__",n=>Se=n),ms=t("__VUE_SSR_SETTERS__",n=>On=n)}const Dn=e=>{const t=Se;return dr(e),e.scope.on(),()=>{e.scope.off(),dr(t)}},Ei=()=>{Se&&Se.scope.off(),dr(null)};function Bl(e){return e.vnode.shapeFlag&4}let On=!1;function ku(e,t=!1,n=!1){t&&ms(t);const{props:r,children:s}=e.vnode,i=Bl(e);eu(e,r,i,t),su(e,s,n||t);const o=i?Tu(e,t):void 0;return t&&ms(!1),o}function Tu(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,zc);const{setup:r}=n;if(r){ot();const s=e.setupContext=r.length>1?Vl(e):null,i=Dn(e),o=Fn(r,e,0,[e.props,s]),l=Ro(o);if(lt(),i(),(l||e.sp)&&!Lt(e)&&ml(e),l){if(o.then(Ei,Ei),t)return o.then(a=>{Ci(e,a)}).catch(a=>{Rr(a,e,0)});e.asyncDep=o}else Ci(e,o)}else Hl(e)}function Ci(e,t,n){Y(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:he(t)&&(e.setupState=Xo(t)),Hl(e)}function Hl(e,t,n){const r=e.type;e.render||(e.render=r.render||qe);{const s=Dn(e);ot();try{Wc(e)}finally{lt(),s()}}}const Au={get(e,t){return xe(e,"get",""),e[t]}};function Vl(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,Au),slots:e.slots,emit:e.emit,expose:t}}function $r(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Xo(qt(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in wn)return wn[n](e)},has(t,n){return n in t||n in wn}})):e.proxy}function vs(e,t=!0){return Y(e)?e.displayName||e.name:e.name||t&&e.__name}function Ou(e){return Y(e)&&"__vccOpts"in e}const Q=(e,t)=>Cc(e,t,On);function G(e,t,n){const r=arguments.length;return r===2?he(t)&&!U(t)?en(t)?Pe(e,null,[t]):Pe(e,t):Pe(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&en(n)&&(n=[n]),Pe(e,t,n))}const Lu="3.5.18";/** +* @vue/runtime-dom v3.5.18 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let ys;const Ri=typeof window<"u"&&window.trustedTypes;if(Ri)try{ys=Ri.createPolicy("vue",{createHTML:e=>e})}catch{}const zl=ys?e=>ys.createHTML(e):e=>e,Mu="http://www.w3.org/2000/svg",$u="http://www.w3.org/1998/Math/MathML",rt=typeof document<"u"?document:null,Pi=rt&&rt.createElement("template"),Nu={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const s=t==="svg"?rt.createElementNS(Mu,e):t==="mathml"?rt.createElementNS($u,e):n?rt.createElement(e,{is:n}):rt.createElement(e);return e==="select"&&r&&r.multiple!=null&&s.setAttribute("multiple",r.multiple),s},createText:e=>rt.createTextNode(e),createComment:e=>rt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>rt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,s,i){const o=n?n.previousSibling:t.lastChild;if(s&&(s===i||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),n),!(s===i||!(s=s.nextSibling)););else{Pi.innerHTML=zl(r==="svg"?`${e}`:r==="mathml"?`${e}`:e);const l=Pi.content;if(r==="svg"||r==="mathml"){const a=l.firstChild;for(;a.firstChild;)l.appendChild(a.firstChild);l.removeChild(a)}t.insertBefore(l,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},dt="transition",ln="animation",tn=Symbol("_vtc"),Kl={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Wl=me({},dl,Kl),Iu=e=>(e.displayName="Transition",e.props=Wl,e),ju=Iu((e,{slots:t})=>G(Mc,Ul(e),t)),kt=(e,t=[])=>{U(e)?e.forEach(n=>n(...t)):e&&e(...t)},ki=e=>e?U(e)?e.some(t=>t.length>1):e.length>1:!1;function Ul(e){const t={};for(const M in e)M in Kl||(t[M]=e[M]);if(e.css===!1)return t;const{name:n="v",type:r,duration:s,enterFromClass:i=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:a=i,appearActiveClass:u=o,appearToClass:c=l,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:d=`${n}-leave-active`,leaveToClass:g=`${n}-leave-to`}=e,v=Fu(s),S=v&&v[0],T=v&&v[1],{onBeforeEnter:O,onEnter:x,onEnterCancelled:C,onLeave:y,onLeaveCancelled:k,onBeforeAppear:H=O,onAppear:q=x,onAppearCancelled:F=C}=t,R=(M,X,j,ee)=>{M._enterCancelled=ee,pt(M,X?c:l),pt(M,X?u:o),j&&j()},B=(M,X)=>{M._isLeaving=!1,pt(M,f),pt(M,g),pt(M,d),X&&X()},W=M=>(X,j)=>{const ee=M?q:x,re=()=>R(X,M,j);kt(ee,[X,re]),Ti(()=>{pt(X,M?a:i),Qe(X,M?c:l),ki(ee)||Ai(X,r,S,re)})};return me(t,{onBeforeEnter(M){kt(O,[M]),Qe(M,i),Qe(M,o)},onBeforeAppear(M){kt(H,[M]),Qe(M,a),Qe(M,u)},onEnter:W(!1),onAppear:W(!0),onLeave(M,X){M._isLeaving=!0;const j=()=>B(M,X);Qe(M,f),M._enterCancelled?(Qe(M,d),bs()):(bs(),Qe(M,d)),Ti(()=>{M._isLeaving&&(pt(M,f),Qe(M,g),ki(y)||Ai(M,r,T,j))}),kt(y,[M,j])},onEnterCancelled(M){R(M,!1,void 0,!0),kt(C,[M])},onAppearCancelled(M){R(M,!0,void 0,!0),kt(F,[M])},onLeaveCancelled(M){B(M),kt(k,[M])}})}function Fu(e){if(e==null)return null;if(he(e))return[Gr(e.enter),Gr(e.leave)];{const t=Gr(e);return[t,t]}}function Gr(e){return za(e)}function Qe(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[tn]||(e[tn]=new Set)).add(t)}function pt(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const n=e[tn];n&&(n.delete(t),n.size||(e[tn]=void 0))}function Ti(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Du=0;function Ai(e,t,n,r){const s=e._endId=++Du,i=()=>{s===e._endId&&r()};if(n!=null)return setTimeout(i,n);const{type:o,timeout:l,propCount:a}=Gl(e,t);if(!o)return r();const u=o+"end";let c=0;const f=()=>{e.removeEventListener(u,d),i()},d=g=>{g.target===e&&++c>=a&&f()};setTimeout(()=>{c(n[v]||"").split(", "),s=r(`${dt}Delay`),i=r(`${dt}Duration`),o=Oi(s,i),l=r(`${ln}Delay`),a=r(`${ln}Duration`),u=Oi(l,a);let c=null,f=0,d=0;t===dt?o>0&&(c=dt,f=o,d=i.length):t===ln?u>0&&(c=ln,f=u,d=a.length):(f=Math.max(o,u),c=f>0?o>u?dt:ln:null,d=c?c===dt?i.length:a.length:0);const g=c===dt&&/\b(transform|all)(,|$)/.test(r(`${dt}Property`).toString());return{type:c,timeout:f,propCount:d,hasTransform:g}}function Oi(e,t){for(;e.lengthLi(n)+Li(e[r])))}function Li(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function bs(){return document.body.offsetHeight}function qu(e,t,n){const r=e[tn];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const hr=Symbol("_vod"),Ql=Symbol("_vsh"),op={beforeMount(e,{value:t},{transition:n}){e[hr]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):an(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),an(e,!0),r.enter(e)):r.leave(e,()=>{an(e,!1)}):an(e,t))},beforeUnmount(e,{value:t}){an(e,t)}};function an(e,t){e.style.display=t?e[hr]:"none",e[Ql]=!t}const Jl=Symbol("");function lp(e){const t=ze();if(!t)return;const n=t.ut=(s=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(i=>pr(i,s))},r=()=>{const s=e(t.proxy);t.ce?pr(t.ce,s):_s(t.subTree,s),n(s)};yl(()=>{nl(r)}),Ar(()=>{$t(r,qe,{flush:"post"});const s=new MutationObserver(r);s.observe(t.subTree.el.parentNode,{childList:!0}),Us(()=>s.disconnect())})}function _s(e,t){if(e.shapeFlag&128){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{_s(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)pr(e.el,t);else if(e.type===Re)e.children.forEach(n=>_s(n,t));else if(e.type===Yn){let{el:n,anchor:r}=e;for(;n&&(pr(n,t),n!==r);)n=n.nextSibling}}function pr(e,t){if(e.nodeType===1){const n=e.style;let r="";for(const s in t){const i=Za(t[s]);n.setProperty(`--${s}`,i),r+=`--${s}: ${i};`}n[Jl]=r}}const Bu=/(^|;)\s*display\s*:/;function Hu(e,t,n){const r=e.style,s=de(n);let i=!1;if(n&&!s){if(t)if(de(t))for(const o of t.split(";")){const l=o.slice(0,o.indexOf(":")).trim();n[l]==null&&Xn(r,l,"")}else for(const o in t)n[o]==null&&Xn(r,o,"");for(const o in n)o==="display"&&(i=!0),Xn(r,o,n[o])}else if(s){if(t!==n){const o=r[Jl];o&&(n+=";"+o),r.cssText=n,i=Bu.test(n)}}else t&&e.removeAttribute("style");hr in e&&(e[hr]=i?r.display:"",e[Ql]&&(r.display="none"))}const Mi=/\s*!important$/;function Xn(e,t,n){if(U(n))n.forEach(r=>Xn(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=Vu(e,t);Mi.test(n)?e.setProperty(Ft(r),n.replace(Mi,""),"important"):e[r]=n}}const $i=["Webkit","Moz","ms"],Qr={};function Vu(e,t){const n=Qr[t];if(n)return n;let r=Fe(t);if(r!=="filter"&&r in e)return Qr[t]=r;r=wr(r);for(let s=0;s<$i.length;s++){const i=$i[s]+r;if(i in e)return Qr[t]=i}return t}const Ni="http://www.w3.org/1999/xlink";function Ii(e,t,n,r,s,i=Ja(t)){r&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(Ni,t.slice(6,t.length)):e.setAttributeNS(Ni,t,n):n==null||i&&!To(n)?e.removeAttribute(t):e.setAttribute(t,i?"":ct(n)?String(n):n)}function ji(e,t,n,r,s){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?zl(n):n);return}const i=e.tagName;if(t==="value"&&i!=="PROGRESS"&&!i.includes("-")){const l=i==="OPTION"?e.getAttribute("value")||"":e.value,a=n==null?e.type==="checkbox"?"on":"":String(n);(l!==a||!("_value"in e))&&(e.value=a),n==null&&e.removeAttribute(t),e._value=n;return}let o=!1;if(n===""||n==null){const l=typeof e[t];l==="boolean"?n=To(n):n==null&&l==="string"?(n="",o=!0):l==="number"&&(n=0,o=!0)}try{e[t]=n}catch{}o&&e.removeAttribute(s||t)}function zu(e,t,n,r){e.addEventListener(t,n,r)}function Ku(e,t,n,r){e.removeEventListener(t,n,r)}const Fi=Symbol("_vei");function Wu(e,t,n,r,s=null){const i=e[Fi]||(e[Fi]={}),o=i[t];if(r&&o)o.value=r;else{const[l,a]=Uu(t);if(r){const u=i[t]=Ju(r,s);zu(e,l,u,a)}else o&&(Ku(e,l,o,a),i[t]=void 0)}}const Di=/(?:Once|Passive|Capture)$/;function Uu(e){let t;if(Di.test(e)){t={};let r;for(;r=e.match(Di);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Ft(e.slice(2)),t]}let Jr=0;const Gu=Promise.resolve(),Qu=()=>Jr||(Gu.then(()=>Jr=0),Jr=Date.now());function Ju(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;He(Yu(r,n.value),t,5,[r])};return n.value=e,n.attached=Qu(),n}function Yu(e,t){if(U(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>s=>!s._stopped&&r&&r(s))}else return t}const qi=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Zu=(e,t,n,r,s,i)=>{const o=s==="svg";t==="class"?qu(e,r,o):t==="style"?Hu(e,n,r):br(t)?Ms(t)||Wu(e,t,n,r,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Xu(e,t,r,o))?(ji(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Ii(e,t,r,o,i,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!de(r))?ji(e,Fe(t),r,i,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),Ii(e,t,r,o))};function Xu(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&qi(t)&&Y(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const s=e.tagName;if(s==="IMG"||s==="VIDEO"||s==="CANVAS"||s==="SOURCE")return!1}return qi(t)&&de(n)?!1:t in e}const Yl=new WeakMap,Zl=new WeakMap,gr=Symbol("_moveCb"),Bi=Symbol("_enterCb"),ef=e=>(delete e.props.mode,e),tf=ef({name:"TransitionGroup",props:me({},Wl,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=ze(),r=fl();let s,i;return Ws(()=>{if(!s.length)return;const o=e.moveClass||`${e.name||"v"}-move`;if(!lf(s[0].el,n.vnode.el,o)){s=[];return}s.forEach(rf),s.forEach(sf);const l=s.filter(of);bs(),l.forEach(a=>{const u=a.el,c=u.style;Qe(u,o),c.transform=c.webkitTransform=c.transitionDuration="";const f=u[gr]=d=>{d&&d.target!==u||(!d||/transform$/.test(d.propertyName))&&(u.removeEventListener("transitionend",f),u[gr]=null,pt(u,o))};u.addEventListener("transitionend",f)}),s=[]}),()=>{const o=ne(e),l=Ul(o);let a=o.tag||Re;if(s=[],i)for(let u=0;u{l.split(/\s+/).forEach(a=>a&&r.classList.remove(a))}),n.split(/\s+/).forEach(l=>l&&r.classList.add(l)),r.style.display="none";const i=t.nodeType===1?t:t.parentNode;i.appendChild(r);const{hasTransform:o}=Gl(r);return i.removeChild(r),o}const af=["ctrl","shift","alt","meta"],cf={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>af.some(n=>e[`${n}Key`]&&!t.includes(n))},ap=(e,t)=>{const n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=(s,...i)=>{for(let o=0;o{const t=ff().createApp(...e),{mount:n}=t;return t.mount=r=>{const s=hf(r);if(!s)return;const i=t._component;!Y(i)&&!i.render&&!i.template&&(i.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const o=n(s,!1,df(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),o},t};function df(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function hf(e){return de(e)?document.querySelector(e):e}function Nr(e,t,n,r){return Object.defineProperty(e,t,{get:n,set:r,enumerable:!0}),e}function cp(e,t){for(const n in t)Nr(e,n,t[n]);return e}const It=Nt(!1);let ws;function pf(e,t){const n=/(edg|edge|edga|edgios)\/([\w.]+)/.exec(e)||/(opr)[\/]([\w.]+)/.exec(e)||/(vivaldi)[\/]([\w.]+)/.exec(e)||/(chrome|crios)[\/]([\w.]+)/.exec(e)||/(version)(applewebkit)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(e)||/(webkit)[\/]([\w.]+).*(version)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(e)||/(firefox|fxios)[\/]([\w.]+)/.exec(e)||/(webkit)[\/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[\/]([\w.]+)/.exec(e)||[];return{browser:n[5]||n[3]||n[1]||"",version:n[4]||n[2]||"0",platform:t[0]||""}}function gf(e){return/(ipad)/.exec(e)||/(ipod)/.exec(e)||/(windows phone)/.exec(e)||/(iphone)/.exec(e)||/(kindle)/.exec(e)||/(silk)/.exec(e)||/(android)/.exec(e)||/(win)/.exec(e)||/(mac)/.exec(e)||/(linux)/.exec(e)||/(cros)/.exec(e)||/(playbook)/.exec(e)||/(bb)/.exec(e)||/(blackberry)/.exec(e)||[]}const ea="ontouchstart"in window||window.navigator.maxTouchPoints>0;function mf(e){const t=e.toLowerCase(),n=gf(t),r=pf(t,n),s={mobile:!1,desktop:!1,cordova:!1,capacitor:!1,nativeMobile:!1,electron:!1,bex:!1,linux:!1,mac:!1,win:!1,cros:!1,chrome:!1,firefox:!1,opera:!1,safari:!1,vivaldi:!1,edge:!1,edgeChromium:!1,ie:!1,webkit:!1,android:!1,ios:!1,ipad:!1,iphone:!1,ipod:!1,kindle:!1,winphone:!1,blackberry:!1,playbook:!1,silk:!1};r.browser&&(s[r.browser]=!0,s.version=r.version,s.versionNumber=parseInt(r.version,10)),r.platform&&(s[r.platform]=!0);const i=s.android||s.ios||s.bb||s.blackberry||s.ipad||s.iphone||s.ipod||s.kindle||s.playbook||s.silk||s["windows phone"];if(i===!0||t.indexOf("mobile")!==-1?s.mobile=!0:s.desktop=!0,s["windows phone"]&&(s.winphone=!0,delete s["windows phone"]),s.edga||s.edgios||s.edg?(s.edge=!0,r.browser="edge"):s.crios?(s.chrome=!0,r.browser="chrome"):s.fxios&&(s.firefox=!0,r.browser="firefox"),(s.ipod||s.ipad||s.iphone)&&(s.ios=!0),s.vivaldi&&(r.browser="vivaldi",s.vivaldi=!0),(s.chrome||s.opr||s.safari||s.vivaldi||s.mobile===!0&&s.ios!==!0&&i!==!0)&&(s.webkit=!0),s.opr&&(r.browser="opera",s.opera=!0),s.safari&&(s.blackberry||s.bb?(r.browser="blackberry",s.blackberry=!0):s.playbook?(r.browser="playbook",s.playbook=!0):s.android?(r.browser="android",s.android=!0):s.kindle?(r.browser="kindle",s.kindle=!0):s.silk&&(r.browser="silk",s.silk=!0)),s.name=r.browser,s.platform=r.platform,t.indexOf("electron")!==-1)s.electron=!0;else if(document.location.href.indexOf("-extension://")!==-1)s.bex=!0;else{if(window.Capacitor!==void 0?(s.capacitor=!0,s.nativeMobile=!0,s.nativeMobileWrapper="capacitor"):(window._cordovaNative!==void 0||window.cordova!==void 0)&&(s.cordova=!0,s.nativeMobile=!0,s.nativeMobileWrapper="cordova"),It.value===!0&&(ws={is:{...s}}),ea===!0&&s.mac===!0&&(s.desktop===!0&&s.safari===!0||s.nativeMobile===!0&&s.android!==!0&&s.ios!==!0&&s.ipad!==!0)){delete s.mac,delete s.desktop;const o=Math.min(window.innerHeight,window.innerWidth)>414?"ipad":"iphone";Object.assign(s,{mobile:!0,ios:!0,platform:o,[o]:!0})}s.mobile!==!0&&window.navigator.userAgentData&&window.navigator.userAgentData.mobile&&(delete s.desktop,s.mobile=!0)}return s}const Vi=navigator.userAgent||navigator.vendor||window.opera,vf={has:{touch:!1,webStorage:!1},within:{iframe:!1}},Xe={userAgent:Vi,is:mf(Vi),has:{touch:ea},within:{iframe:window.self!==window.top}},xs={install(e){const{$q:t}=e;It.value===!0?(e.onSSRHydrated.push(()=>{Object.assign(t.platform,Xe),It.value=!1}),t.platform=Dt(this)):t.platform=this}};{let e;Nr(Xe.has,"webStorage",()=>{if(e!==void 0)return e;try{if(window.localStorage)return e=!0,!0}catch{}return e=!1,!1}),Object.assign(xs,Xe),It.value===!0&&(Object.assign(xs,ws,vf),ws=null)}function qn(e){return qt(Pr(e))}function yf(e){return qt(e)}const Ir=(e,t)=>{const n=Dt(e);for(const r in e)Nr(t,r,()=>n[r],s=>{n[r]=s});return t},jt={hasPassive:!1,passiveCapture:!0,notPassiveCapture:!0};try{const e=Object.defineProperty({},"passive",{get(){Object.assign(jt,{hasPassive:!0,passive:{passive:!0},notPassive:{passive:!1},passiveCapture:{passive:!0,capture:!0},notPassiveCapture:{passive:!1,capture:!0}})}});window.addEventListener("qtest",null,e),window.removeEventListener("qtest",null,e)}catch{}function Ln(){}function up(e){return e.button===0}function bf(e){return e.touches&&e.touches[0]?e=e.touches[0]:e.changedTouches&&e.changedTouches[0]?e=e.changedTouches[0]:e.targetTouches&&e.targetTouches[0]&&(e=e.targetTouches[0]),{top:e.clientY,left:e.clientX}}function fp(e){if(e.path)return e.path;if(e.composedPath)return e.composedPath();const t=[];let n=e.target;for(;n;){if(t.push(n),n.tagName==="HTML")return t.push(document),t.push(window),t;n=n.parentElement}}function ta(e){e.stopPropagation()}function Ss(e){e.cancelable!==!1&&e.preventDefault()}function zt(e){e.cancelable!==!1&&e.preventDefault(),e.stopPropagation()}function dp(e,t){if(e===void 0||t===!0&&e.__dragPrevented===!0)return;const n=t===!0?r=>{r.__dragPrevented=!0,r.addEventListener("dragstart",Ss,jt.notPassiveCapture)}:r=>{delete r.__dragPrevented,r.removeEventListener("dragstart",Ss,jt.notPassiveCapture)};e.querySelectorAll("a, img").forEach(n)}function _f(e,t,n){const r=`__q_${t}_evt`;e[r]=e[r]!==void 0?e[r].concat(n):n,n.forEach(s=>{s[0].addEventListener(s[1],e[s[2]],jt[s[3]])})}function wf(e,t){const n=`__q_${t}_evt`;e[n]!==void 0&&(e[n].forEach(r=>{r[0].removeEventListener(r[1],e[r[2]],jt[r[3]])}),e[n]=void 0)}function xf(e,t=250,n){let r=null;function s(){const i=arguments,o=()=>{r=null,e.apply(this,i)};r!==null&&clearTimeout(r),r=setTimeout(o,t)}return s.cancel=()=>{r!==null&&clearTimeout(r)},s}const Yr=["sm","md","lg","xl"],{passive:zi}=jt,Sf=Ir({width:0,height:0,name:"xs",sizes:{sm:600,md:1024,lg:1440,xl:1920},lt:{sm:!0,md:!0,lg:!0,xl:!0},gt:{xs:!1,sm:!1,md:!1,lg:!1},xs:!0,sm:!1,md:!1,lg:!1,xl:!1},{setSizes:Ln,setDebounce:Ln,install({$q:e,onSSRHydrated:t}){if(e.screen=this,this.__installed===!0){e.config.screen!==void 0&&(e.config.screen.bodyClasses===!1?document.body.classList.remove(`screen--${this.name}`):this.__update(!0));return}const{visualViewport:n}=window,r=n||window,s=document.scrollingElement||document.documentElement,i=n===void 0||Xe.is.mobile===!0?()=>[Math.max(window.innerWidth,s.clientWidth),Math.max(window.innerHeight,s.clientHeight)]:()=>[n.width*n.scale+window.innerWidth-s.clientWidth,n.height*n.scale+window.innerHeight-s.clientHeight],o=e.config.screen?.bodyClasses===!0;this.__update=f=>{const[d,g]=i();if(g!==this.height&&(this.height=g),d!==this.width)this.width=d;else if(f!==!0)return;let v=this.sizes;this.gt.xs=d>=v.sm,this.gt.sm=d>=v.md,this.gt.md=d>=v.lg,this.gt.lg=d>=v.xl,this.lt.sm=d{Yr.forEach(d=>{f[d]!==void 0&&(a[d]=f[d])})},this.setDebounce=f=>{u=f};const c=()=>{const f=getComputedStyle(document.body);f.getPropertyValue("--q-size-sm")&&Yr.forEach(d=>{this.sizes[d]=parseInt(f.getPropertyValue(`--q-size-${d}`),10)}),this.setSizes=d=>{Yr.forEach(g=>{d[g]&&(this.sizes[g]=d[g])}),this.__update(!0)},this.setDebounce=d=>{l!==void 0&&r.removeEventListener("resize",l,zi),l=d>0?xf(this.__update,d):this.__update,r.addEventListener("resize",l,zi)},this.setDebounce(u),Object.keys(a).length!==0?(this.setSizes(a),a=void 0):this.__update(),o===!0&&this.name==="xs"&&document.body.classList.add("screen--xs")};It.value===!0?t.push(c):c()}}),_e=Ir({isActive:!1,mode:!1},{__media:void 0,set(e){_e.mode=e,e==="auto"?(_e.__media===void 0&&(_e.__media=window.matchMedia("(prefers-color-scheme: dark)"),_e.__updateMedia=()=>{_e.set("auto")},_e.__media.addListener(_e.__updateMedia)),e=_e.__media.matches):_e.__media!==void 0&&(_e.__media.removeListener(_e.__updateMedia),_e.__media=void 0),_e.isActive=e===!0,document.body.classList.remove(`body--${e===!0?"light":"dark"}`),document.body.classList.add(`body--${e===!0?"dark":"light"}`)},toggle(){_e.set(_e.isActive===!1)},install({$q:e,ssrContext:t}){const n=e.config.dark;e.dark=this,this.__installed!==!0&&this.set(n!==void 0?n:!1)}});function Ef(e,t,n=document.body){if(typeof e!="string")throw new TypeError("Expected a string as propName");if(typeof t!="string")throw new TypeError("Expected a string as value");if(!(n instanceof Element))throw new TypeError("Expected a DOM element");n.style.setProperty(`--q-${e}`,t)}let na=!1;function Cf(e){na=e.isComposing===!0}function Rf(e){return na===!0||e!==Object(e)||e.isComposing===!0||e.qKeyEvent===!0}function Es(e,t){return Rf(e)===!0?!1:[].concat(t).includes(e.keyCode)}function ra(e){if(e.ios===!0)return"ios";if(e.android===!0)return"android"}function Pf({is:e,has:t,within:n},r){const s=[e.desktop===!0?"desktop":"mobile",`${t.touch===!1?"no-":""}touch`];if(e.mobile===!0){const i=ra(e);i!==void 0&&s.push("platform-"+i)}if(e.nativeMobile===!0){const i=e.nativeMobileWrapper;s.push(i),s.push("native-mobile"),e.ios===!0&&(r[i]===void 0||r[i].iosStatusBarPadding!==!1)&&s.push("q-ios-padding")}else e.electron===!0?s.push("electron"):e.bex===!0&&s.push("bex");return n.iframe===!0&&s.push("within-iframe"),s}function kf(){const{is:e}=Xe,t=document.body.className,n=new Set(t.replace(/ {2}/g," ").split(" "));if(e.nativeMobile!==!0&&e.electron!==!0&&e.bex!==!0){if(e.desktop===!0)n.delete("mobile"),n.delete("platform-ios"),n.delete("platform-android"),n.add("desktop");else if(e.mobile===!0){n.delete("desktop"),n.add("mobile"),n.delete("platform-ios"),n.delete("platform-android");const s=ra(e);s!==void 0&&n.add(`platform-${s}`)}}Xe.has.touch===!0&&(n.delete("no-touch"),n.add("touch")),Xe.within.iframe===!0&&n.add("within-iframe");const r=Array.from(n).join(" ");t!==r&&(document.body.className=r)}function Tf(e){for(const t in e)Ef(t,e[t])}const Af={install(e){if(this.__installed!==!0){if(It.value===!0)kf();else{const{$q:t}=e;t.config.brand!==void 0&&Tf(t.config.brand);const n=Pf(Xe,t.config);document.body.classList.add.apply(document.body.classList,n)}Xe.is.ios===!0&&document.body.addEventListener("touchstart",Ln),window.addEventListener("keydown",Cf,!0)}}},sa=()=>!0;function Of(e){return typeof e=="string"&&e!==""&&e!=="/"&&e!=="#/"}function Lf(e){return e.startsWith("#")===!0&&(e=e.substring(1)),e.startsWith("/")===!1&&(e="/"+e),e.endsWith("/")===!0&&(e=e.substring(0,e.length-1)),"#"+e}function Mf(e){if(e.backButtonExit===!1)return()=>!1;if(e.backButtonExit==="*")return sa;const t=["#/"];return Array.isArray(e.backButtonExit)===!0&&t.push(...e.backButtonExit.filter(Of).map(Lf)),()=>t.includes(window.location.hash)}const $f={__history:[],add:Ln,remove:Ln,install({$q:e}){if(this.__installed===!0)return;const{cordova:t,capacitor:n}=Xe.is;if(t!==!0&&n!==!0)return;const r=e.config[t===!0?"cordova":"capacitor"];if(r?.backButton===!1||n===!0&&(window.Capacitor===void 0||window.Capacitor.Plugins.App===void 0))return;this.add=o=>{o.condition===void 0&&(o.condition=sa),this.__history.push(o)},this.remove=o=>{const l=this.__history.indexOf(o);l>=0&&this.__history.splice(l,1)};const s=Mf(Object.assign({backButtonExit:!0},r)),i=()=>{if(this.__history.length){const o=this.__history[this.__history.length-1];o.condition()===!0&&(this.__history.pop(),o.handler())}else s()===!0?navigator.app.exitApp():window.history.back()};t===!0?document.addEventListener("deviceready",()=>{document.addEventListener("backbutton",i,!1)}):window.Capacitor.Plugins.App.addListener("backButton",i)}},Ki={isoName:"en-US",nativeName:"English (US)",label:{clear:"Clear",ok:"OK",cancel:"Cancel",close:"Close",set:"Set",select:"Select",reset:"Reset",remove:"Remove",update:"Update",create:"Create",search:"Search",filter:"Filter",refresh:"Refresh",expand:e=>e?`Expand "${e}"`:"Expand",collapse:e=>e?`Collapse "${e}"`:"Collapse"},date:{days:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),daysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),firstDayOfWeek:0,format24h:!1,pluralDay:"days",prevMonth:"Previous month",nextMonth:"Next month",prevYear:"Previous year",nextYear:"Next year",today:"Today",prevRangeYears:e=>`Previous ${e} years`,nextRangeYears:e=>`Next ${e} years`},table:{noData:"No data available",noResults:"No matching records found",loading:"Loading...",selectedRecords:e=>e===1?"1 record selected.":(e===0?"No":e)+" records selected.",recordsPerPage:"Records per page:",allRows:"All",pagination:(e,t,n)=>e+"-"+t+" of "+n,columns:"Columns"},pagination:{first:"First page",prev:"Previous page",next:"Next page",last:"Last page"},editor:{url:"URL",bold:"Bold",italic:"Italic",strikethrough:"Strikethrough",underline:"Underline",unorderedList:"Unordered List",orderedList:"Ordered List",subscript:"Subscript",superscript:"Superscript",hyperlink:"Hyperlink",toggleFullscreen:"Toggle Fullscreen",quote:"Quote",left:"Left align",center:"Center align",right:"Right align",justify:"Justify align",print:"Print",outdent:"Decrease indentation",indent:"Increase indentation",removeFormat:"Remove formatting",formatting:"Formatting",fontSize:"Font Size",align:"Align",hr:"Insert Horizontal Rule",undo:"Undo",redo:"Redo",heading1:"Heading 1",heading2:"Heading 2",heading3:"Heading 3",heading4:"Heading 4",heading5:"Heading 5",heading6:"Heading 6",paragraph:"Paragraph",code:"Code",size1:"Very small",size2:"A bit small",size3:"Normal",size4:"Medium-large",size5:"Big",size6:"Very big",size7:"Maximum",defaultFont:"Default Font",viewSource:"View Source"},tree:{noNodes:"No nodes available",noResults:"No matching nodes found"}};function Wi(){const e=Array.isArray(navigator.languages)===!0&&navigator.languages.length!==0?navigator.languages[0]:navigator.language;if(typeof e=="string")return e.split(/[-_]/).map((t,n)=>n===0?t.toLowerCase():n>1||t.length<4?t.toUpperCase():t[0].toUpperCase()+t.slice(1).toLowerCase()).join("-")}const bt=Ir({__qLang:{}},{getLocale:Wi,set(e=Ki,t){const n={...e,rtl:e.rtl===!0,getLocale:Wi};{if(n.set=bt.set,bt.__langConfig===void 0||bt.__langConfig.noHtmlAttrs!==!0){const r=document.documentElement;r.setAttribute("dir",n.rtl===!0?"rtl":"ltr"),r.setAttribute("lang",n.isoName)}Object.assign(bt.__qLang,n)}},install({$q:e,lang:t,ssrContext:n}){e.lang=bt.__qLang,bt.__langConfig=e.config.lang,this.__installed===!0?t!==void 0&&this.set(t):(this.props=new Proxy(this.__qLang,{get(){return Reflect.get(...arguments)},ownKeys(r){return Reflect.ownKeys(r).filter(s=>s!=="set"&&s!=="getLocale")}}),this.set(t||Ki))}}),Nf={name:"material-icons",type:{positive:"check_circle",negative:"warning",info:"info",warning:"priority_high"},arrow:{up:"arrow_upward",right:"arrow_forward",down:"arrow_downward",left:"arrow_back",dropdown:"arrow_drop_down"},chevron:{left:"chevron_left",right:"chevron_right"},colorPicker:{spectrum:"gradient",tune:"tune",palette:"style"},pullToRefresh:{icon:"refresh"},carousel:{left:"chevron_left",right:"chevron_right",up:"keyboard_arrow_up",down:"keyboard_arrow_down",navigationIcon:"lens"},chip:{remove:"cancel",selected:"check"},datetime:{arrowLeft:"chevron_left",arrowRight:"chevron_right",now:"access_time",today:"today"},editor:{bold:"format_bold",italic:"format_italic",strikethrough:"strikethrough_s",underline:"format_underlined",unorderedList:"format_list_bulleted",orderedList:"format_list_numbered",subscript:"vertical_align_bottom",superscript:"vertical_align_top",hyperlink:"link",toggleFullscreen:"fullscreen",quote:"format_quote",left:"format_align_left",center:"format_align_center",right:"format_align_right",justify:"format_align_justify",print:"print",outdent:"format_indent_decrease",indent:"format_indent_increase",removeFormat:"format_clear",formatting:"text_format",fontSize:"format_size",align:"format_align_left",hr:"remove",undo:"undo",redo:"redo",heading:"format_size",code:"code",size:"format_size",font:"font_download",viewSource:"code"},expansionItem:{icon:"keyboard_arrow_down",denseIcon:"arrow_drop_down"},fab:{icon:"add",activeIcon:"close"},field:{clear:"cancel",error:"error"},pagination:{first:"first_page",prev:"keyboard_arrow_left",next:"keyboard_arrow_right",last:"last_page"},rating:{icon:"grade"},stepper:{done:"check",active:"edit",error:"warning"},tabs:{left:"chevron_left",right:"chevron_right",up:"keyboard_arrow_up",down:"keyboard_arrow_down"},table:{arrowUp:"arrow_upward",warning:"warning",firstPage:"first_page",prevPage:"chevron_left",nextPage:"chevron_right",lastPage:"last_page"},tree:{icon:"play_arrow"},uploader:{done:"done",clear:"clear",add:"add_box",upload:"cloud_upload",removeQueue:"clear_all",removeUploaded:"done_all"}},mr=Ir({iconMapFn:null,__qIconSet:{}},{set(e,t){const n={...e};n.set=mr.set,Object.assign(mr.__qIconSet,n)},install({$q:e,iconSet:t,ssrContext:n}){e.config.iconMapFn!==void 0&&(this.iconMapFn=e.config.iconMapFn),e.iconSet=this.__qIconSet,Nr(e,"iconMapFn",()=>this.iconMapFn,r=>{this.iconMapFn=r}),this.__installed===!0?t!==void 0&&this.set(t):(this.props=new Proxy(this.__qIconSet,{get(){return Reflect.get(...arguments)},ownKeys(r){return Reflect.ownKeys(r).filter(s=>s!=="set")}}),this.set(t||Nf))}}),If="_q_",hp="_q_l_",pp="_q_pc_",gp="_q_fo_",mp="_q_tabs_";function vp(){}const vr={};let ia=!1;function jf(){ia=!0}function Zr(e,t){if(e===t)return!0;if(e!==null&&t!==null&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;let n,r;if(e.constructor===Array){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(Zr(e[r],t[r])!==!0)return!1;return!0}if(e.constructor===Map){if(e.size!==t.size)return!1;let i=e.entries();for(r=i.next();r.done!==!0;){if(t.has(r.value[0])!==!0)return!1;r=i.next()}for(i=e.entries(),r=i.next();r.done!==!0;){if(Zr(r.value[1],t.get(r.value[0]))!==!0)return!1;r=i.next()}return!0}if(e.constructor===Set){if(e.size!==t.size)return!1;const i=e.entries();for(r=i.next();r.done!==!0;){if(t.has(r.value[0])!==!0)return!1;r=i.next()}return!0}if(e.buffer!=null&&e.buffer.constructor===ArrayBuffer){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();const s=Object.keys(e).filter(i=>e[i]!==void 0);if(n=s.length,n!==Object.keys(t).filter(i=>t[i]!==void 0).length)return!1;for(r=n;r--!==0;){const i=s[r];if(Zr(e[i],t[i])!==!0)return!1}return!0}return e!==e&&t!==t}function Mn(e){return e!==null&&typeof e=="object"&&Array.isArray(e)!==!0}function yp(e){return Object.prototype.toString.call(e)==="[object Date]"}function bp(e){return typeof e=="number"&&isFinite(e)}const Ui=[xs,Af,_e,Sf,$f,bt,mr];function Ff(e,t){const n=Xl(e);n.config.globalProperties=t.config.globalProperties;const{reload:r,...s}=t._context;return Object.assign(n._context,s),n}function Gi(e,t){t.forEach(n=>{n.install(e),n.__installed=!0})}function Df(e,t,n){e.config.globalProperties.$q=n.$q,e.provide(If,n.$q),Gi(n,Ui),t.components!==void 0&&Object.values(t.components).forEach(r=>{Mn(r)===!0&&r.name!==void 0&&e.component(r.name,r)}),t.directives!==void 0&&Object.values(t.directives).forEach(r=>{Mn(r)===!0&&r.name!==void 0&&e.directive(r.name,r)}),t.plugins!==void 0&&Gi(n,Object.values(t.plugins).filter(r=>typeof r.install=="function"&&Ui.includes(r)===!1)),It.value===!0&&(n.$q.onSSRHydrated=()=>{n.onSSRHydrated.forEach(r=>{r()}),n.$q.onSSRHydrated=()=>{}})}const qf=function(e,t={}){const n={version:"2.18.2"};ia===!1?(t.config!==void 0&&Object.assign(vr,t.config),n.config={...vr},jf()):n.config=t.config||{},Df(e,t,{parentApp:e,$q:n,lang:t.lang,iconSet:t.iconSet,onSSRHydrated:[]})},Bf={name:"Quasar",version:"2.18.2",install:qf,lang:bt,iconSet:mr},Hf=Pr({name:"OpenwbKoalaWebTheme",__name:"App",setup(e){return(t,n)=>{const r=Vc("router-view");return ur(),fr(r)}}});function _p(e){return e}/*! + * pinia v3.0.3 + * (c) 2025 Eduardo San Martin Morote + * @license MIT + */let oa;const jr=e=>oa=e,la=Symbol();function Cs(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Sn;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Sn||(Sn={}));function Vf(){const e=Mo(!0),t=e.run(()=>Nt({}));let n=[],r=[];const s=qt({install(i){jr(s),s._a=i,i.provide(la,s),i.config.globalProperties.$pinia=s,r.forEach(o=>n.push(o)),r=[]},use(i){return this._a?n.push(i):r.push(i),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return s}const aa=()=>{};function Qi(e,t,n,r=aa){e.push(t);const s=()=>{const i=e.indexOf(t);i>-1&&(e.splice(i,1),r())};return!n&&$o()&&Xa(s),s}function Kt(e,...t){e.slice().forEach(n=>{n(...t)})}const zf=e=>e(),Ji=Symbol(),Xr=Symbol();function Rs(e,t){e instanceof Map&&t instanceof Map?t.forEach((n,r)=>e.set(r,n)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const r=t[n],s=e[n];Cs(s)&&Cs(r)&&e.hasOwnProperty(n)&&!pe(r)&&!St(r)?e[n]=Rs(s,r):e[n]=r}return e}const Kf=Symbol();function Wf(e){return!Cs(e)||!Object.prototype.hasOwnProperty.call(e,Kf)}const{assign:gt}=Object;function Uf(e){return!!(pe(e)&&e.effect)}function Gf(e,t,n,r){const{state:s,actions:i,getters:o}=t,l=n.state.value[e];let a;function u(){l||(n.state.value[e]=s?s():{});const c=wc(n.state.value[e]);return gt(c,i,Object.keys(o||{}).reduce((f,d)=>(f[d]=qt(Q(()=>{jr(n);const g=n._s.get(e);return o[d].call(g,g)})),f),{}))}return a=ca(e,u,t,n,r,!0),a}function ca(e,t,n={},r,s,i){let o;const l=gt({actions:{}},n),a={deep:!0};let u,c,f=[],d=[],g;const v=r.state.value[e];!i&&!v&&(r.state.value[e]={}),Nt({});let S;function T(F){let R;u=c=!1,typeof F=="function"?(F(r.state.value[e]),R={type:Sn.patchFunction,storeId:e,events:g}):(Rs(r.state.value[e],F),R={type:Sn.patchObject,payload:F,storeId:e,events:g});const B=S=Symbol();Vs().then(()=>{S===B&&(u=!0)}),c=!0,Kt(f,R,r.state.value[e])}const O=i?function(){const{state:R}=n,B=R?R():{};this.$patch(W=>{gt(W,B)})}:aa;function x(){o.stop(),f=[],d=[],r._s.delete(e)}const C=(F,R="")=>{if(Ji in F)return F[Xr]=R,F;const B=function(){jr(r);const W=Array.from(arguments),M=[],X=[];function j(Z){M.push(Z)}function ee(Z){X.push(Z)}Kt(d,{args:W,name:B[Xr],store:k,after:j,onError:ee});let re;try{re=F.apply(this&&this.$id===e?this:k,W)}catch(Z){throw Kt(X,Z),Z}return re instanceof Promise?re.then(Z=>(Kt(M,Z),Z)).catch(Z=>(Kt(X,Z),Promise.reject(Z))):(Kt(M,re),re)};return B[Ji]=!0,B[Xr]=R,B},y={_p:r,$id:e,$onAction:Qi.bind(null,d),$patch:T,$reset:O,$subscribe(F,R={}){const B=Qi(f,F,R.detached,()=>W()),W=o.run(()=>$t(()=>r.state.value[e],M=>{(R.flush==="sync"?c:u)&&F({storeId:e,type:Sn.direct,events:g},M)},gt({},a,R)));return B},$dispose:x},k=Dt(y);r._s.set(e,k);const q=(r._a&&r._a.runWithContext||zf)(()=>r._e.run(()=>(o=Mo()).run(()=>t({action:C}))));for(const F in q){const R=q[F];if(pe(R)&&!Uf(R)||St(R))i||(v&&Wf(R)&&(pe(R)?R.value=v[F]:Rs(R,v[F])),r.state.value[e][F]=R);else if(typeof R=="function"){const B=C(R,F);q[F]=B,l.actions[F]=R}}return gt(k,q),gt(ne(k),q),Object.defineProperty(k,"$state",{get:()=>r.state.value[e],set:F=>{T(R=>{gt(R,F)})}}),r._p.forEach(F=>{gt(k,o.run(()=>F({store:k,app:r._a,pinia:r,options:l})))}),v&&i&&n.hydrate&&n.hydrate(k.$state,v),u=!0,c=!0,k}/*! #__NO_SIDE_EFFECTS__ */function wp(e,t,n){let r;const s=typeof t=="function";r=s?n:t;function i(o,l){const a=Xc();return o=o||(a?Ze(la,null):null),o&&jr(o),o=oa,o._s.has(e)||(s?ca(e,t,r,o):Gf(e,r,o)),o._s.get(e)}return i.$id=e,i}const es=()=>Vf();/*! + * vue-router v4.5.1 + * (c) 2025 Eduardo San Martin Morote + * @license MIT + */const Jt=typeof document<"u";function ua(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Qf(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&ua(e.default)}const ie=Object.assign;function ts(e,t){const n={};for(const r in t){const s=t[r];n[r]=Ve(s)?s.map(e):e(s)}return n}const En=()=>{},Ve=Array.isArray,fa=/#/g,Jf=/&/g,Yf=/\//g,Zf=/=/g,Xf=/\?/g,da=/\+/g,ed=/%5B/g,td=/%5D/g,ha=/%5E/g,nd=/%60/g,pa=/%7B/g,rd=/%7C/g,ga=/%7D/g,sd=/%20/g;function Zs(e){return encodeURI(""+e).replace(rd,"|").replace(ed,"[").replace(td,"]")}function id(e){return Zs(e).replace(pa,"{").replace(ga,"}").replace(ha,"^")}function Ps(e){return Zs(e).replace(da,"%2B").replace(sd,"+").replace(fa,"%23").replace(Jf,"%26").replace(nd,"`").replace(pa,"{").replace(ga,"}").replace(ha,"^")}function od(e){return Ps(e).replace(Zf,"%3D")}function ld(e){return Zs(e).replace(fa,"%23").replace(Xf,"%3F")}function ad(e){return e==null?"":ld(e).replace(Yf,"%2F")}function $n(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const cd=/\/$/,ud=e=>e.replace(cd,"");function ns(e,t,n="/"){let r,s={},i="",o="";const l=t.indexOf("#");let a=t.indexOf("?");return l=0&&(a=-1),a>-1&&(r=t.slice(0,a),i=t.slice(a+1,l>-1?l:t.length),s=e(i)),l>-1&&(r=r||t.slice(0,l),o=t.slice(l,t.length)),r=pd(r??t,n),{fullPath:r+(i&&"?")+i+o,path:r,query:s,hash:$n(o)}}function fd(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Yi(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function dd(e,t,n){const r=t.matched.length-1,s=n.matched.length-1;return r>-1&&r===s&&nn(t.matched[r],n.matched[s])&&ma(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function nn(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function ma(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!hd(e[n],t[n]))return!1;return!0}function hd(e,t){return Ve(e)?Zi(e,t):Ve(t)?Zi(t,e):e===t}function Zi(e,t){return Ve(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function pd(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),s=r[r.length-1];(s===".."||s===".")&&r.push("");let i=n.length-1,o,l;for(o=0;o1&&i--;else break;return n.slice(0,i).join("/")+"/"+r.slice(o).join("/")}const ht={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var Nn;(function(e){e.pop="pop",e.push="push"})(Nn||(Nn={}));var Cn;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Cn||(Cn={}));function gd(e){if(!e)if(Jt){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),ud(e)}const md=/^[^#]+#/;function vd(e,t){return e.replace(md,"#")+t}function yd(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const Fr=()=>({left:window.scrollX,top:window.scrollY});function bd(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),s=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!s)return;t=yd(s,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function Xi(e,t){return(history.state?history.state.position-t:-1)+e}const ks=new Map;function _d(e,t){ks.set(e,t)}function wd(e){const t=ks.get(e);return ks.delete(e),t}let xd=()=>location.protocol+"//"+location.host;function va(e,t){const{pathname:n,search:r,hash:s}=t,i=e.indexOf("#");if(i>-1){let l=s.includes(e.slice(i))?e.slice(i).length:1,a=s.slice(l);return a[0]!=="/"&&(a="/"+a),Yi(a,"")}return Yi(n,e)+r+s}function Sd(e,t,n,r){let s=[],i=[],o=null;const l=({state:d})=>{const g=va(e,location),v=n.value,S=t.value;let T=0;if(d){if(n.value=g,t.value=d,o&&o===v){o=null;return}T=S?d.position-S.position:0}else r(g);s.forEach(O=>{O(n.value,v,{delta:T,type:Nn.pop,direction:T?T>0?Cn.forward:Cn.back:Cn.unknown})})};function a(){o=n.value}function u(d){s.push(d);const g=()=>{const v=s.indexOf(d);v>-1&&s.splice(v,1)};return i.push(g),g}function c(){const{history:d}=window;d.state&&d.replaceState(ie({},d.state,{scroll:Fr()}),"")}function f(){for(const d of i)d();i=[],window.removeEventListener("popstate",l),window.removeEventListener("beforeunload",c)}return window.addEventListener("popstate",l),window.addEventListener("beforeunload",c,{passive:!0}),{pauseListeners:a,listen:u,destroy:f}}function eo(e,t,n,r=!1,s=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:s?Fr():null}}function Ed(e){const{history:t,location:n}=window,r={value:va(e,n)},s={value:t.state};s.value||i(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(a,u,c){const f=e.indexOf("#"),d=f>-1?(n.host&&document.querySelector("base")?e:e.slice(f))+a:xd()+e+a;try{t[c?"replaceState":"pushState"](u,"",d),s.value=u}catch(g){console.error(g),n[c?"replace":"assign"](d)}}function o(a,u){const c=ie({},t.state,eo(s.value.back,a,s.value.forward,!0),u,{position:s.value.position});i(a,c,!0),r.value=a}function l(a,u){const c=ie({},s.value,t.state,{forward:a,scroll:Fr()});i(c.current,c,!0);const f=ie({},eo(r.value,a,null),{position:c.position+1},u);i(a,f,!1),r.value=a}return{location:r,state:s,push:l,replace:o}}function Cd(e){e=gd(e);const t=Ed(e),n=Sd(e,t.state,t.location,t.replace);function r(i,o=!0){o||n.pauseListeners(),history.go(i)}const s=ie({location:"",base:e,go:r,createHref:vd.bind(null,e)},t,n);return Object.defineProperty(s,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(s,"state",{enumerable:!0,get:()=>t.state.value}),s}function Rd(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),Cd(e)}function Pd(e){return typeof e=="string"||e&&typeof e=="object"}function ya(e){return typeof e=="string"||typeof e=="symbol"}const ba=Symbol("");var to;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(to||(to={}));function rn(e,t){return ie(new Error,{type:e,[ba]:!0},t)}function nt(e,t){return e instanceof Error&&ba in e&&(t==null||!!(e.type&t))}const no="[^/]+?",kd={sensitive:!1,strict:!1,start:!0,end:!0},Td=/[.+*?^${}()[\]/\\]/g;function Ad(e,t){const n=ie({},kd,t),r=[];let s=n.start?"^":"";const i=[];for(const u of e){const c=u.length?[]:[90];n.strict&&!u.length&&(s+="/");for(let f=0;ft.length?t.length===1&&t[0]===80?1:-1:0}function _a(e,t){let n=0;const r=e.score,s=t.score;for(;n0&&t[t.length-1]<0}const Ld={type:0,value:""},Md=/[a-zA-Z0-9_]/;function $d(e){if(!e)return[[]];if(e==="/")return[[Ld]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(g){throw new Error(`ERR (${n})/"${u}": ${g}`)}let n=0,r=n;const s=[];let i;function o(){i&&s.push(i),i=[]}let l=0,a,u="",c="";function f(){u&&(n===0?i.push({type:0,value:u}):n===1||n===2||n===3?(i.length>1&&(a==="*"||a==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),i.push({type:1,value:u,regexp:c,repeatable:a==="*"||a==="+",optional:a==="*"||a==="?"})):t("Invalid state to consume buffer"),u="")}function d(){u+=a}for(;l{o(C)}:En}function o(f){if(ya(f)){const d=r.get(f);d&&(r.delete(f),n.splice(n.indexOf(d),1),d.children.forEach(o),d.alias.forEach(o))}else{const d=n.indexOf(f);d>-1&&(n.splice(d,1),f.record.name&&r.delete(f.record.name),f.children.forEach(o),f.alias.forEach(o))}}function l(){return n}function a(f){const d=Dd(f,n);n.splice(d,0,f),f.record.name&&!oo(f)&&r.set(f.record.name,f)}function u(f,d){let g,v={},S,T;if("name"in f&&f.name){if(g=r.get(f.name),!g)throw rn(1,{location:f});T=g.record.name,v=ie(so(d.params,g.keys.filter(C=>!C.optional).concat(g.parent?g.parent.keys.filter(C=>C.optional):[]).map(C=>C.name)),f.params&&so(f.params,g.keys.map(C=>C.name))),S=g.stringify(v)}else if(f.path!=null)S=f.path,g=n.find(C=>C.re.test(S)),g&&(v=g.parse(S),T=g.record.name);else{if(g=d.name?r.get(d.name):n.find(C=>C.re.test(d.path)),!g)throw rn(1,{location:f,currentLocation:d});T=g.record.name,v=ie({},d.params,f.params),S=g.stringify(v)}const O=[];let x=g;for(;x;)O.unshift(x.record),x=x.parent;return{name:T,path:S,params:v,matched:O,meta:Fd(O)}}e.forEach(f=>i(f));function c(){n.length=0,r.clear()}return{addRoute:i,resolve:u,removeRoute:o,clearRoutes:c,getRoutes:l,getRecordMatcher:s}}function so(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function io(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:jd(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function jd(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="object"?n[r]:n;return t}function oo(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Fd(e){return e.reduce((t,n)=>ie(t,n.meta),{})}function lo(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function Dd(e,t){let n=0,r=t.length;for(;n!==r;){const i=n+r>>1;_a(e,t[i])<0?r=i:n=i+1}const s=qd(e);return s&&(r=t.lastIndexOf(s,r-1)),r}function qd(e){let t=e;for(;t=t.parent;)if(wa(t)&&_a(e,t)===0)return t}function wa({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Bd(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let s=0;si&&Ps(i)):[r&&Ps(r)]).forEach(i=>{i!==void 0&&(t+=(t.length?"&":"")+n,i!=null&&(t+="="+i))})}return t}function Hd(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=Ve(r)?r.map(s=>s==null?null:""+s):r==null?r:""+r)}return t}const Vd=Symbol(""),co=Symbol(""),Xs=Symbol(""),xa=Symbol(""),Ts=Symbol("");function cn(){let e=[];function t(r){return e.push(r),()=>{const s=e.indexOf(r);s>-1&&e.splice(s,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function _t(e,t,n,r,s,i=o=>o()){const o=r&&(r.enterCallbacks[s]=r.enterCallbacks[s]||[]);return()=>new Promise((l,a)=>{const u=d=>{d===!1?a(rn(4,{from:n,to:t})):d instanceof Error?a(d):Pd(d)?a(rn(2,{from:t,to:d})):(o&&r.enterCallbacks[s]===o&&typeof d=="function"&&o.push(d),l())},c=i(()=>e.call(r&&r.instances[s],t,n,u));let f=Promise.resolve(c);e.length<3&&(f=f.then(u)),f.catch(d=>a(d))})}function rs(e,t,n,r,s=i=>i()){const i=[];for(const o of e)for(const l in o.components){let a=o.components[l];if(!(t!=="beforeRouteEnter"&&!o.instances[l]))if(ua(a)){const c=(a.__vccOpts||a)[t];c&&i.push(_t(c,n,r,o,l,s))}else{let u=a();i.push(()=>u.then(c=>{if(!c)throw new Error(`Couldn't resolve component "${l}" at "${o.path}"`);const f=Qf(c)?c.default:c;o.mods[l]=c,o.components[l]=f;const g=(f.__vccOpts||f)[t];return g&&_t(g,n,r,o,l,s)()}))}}return i}function uo(e){const t=Ze(Xs),n=Ze(xa),r=Q(()=>{const a=Ot(e.to);return t.resolve(a)}),s=Q(()=>{const{matched:a}=r.value,{length:u}=a,c=a[u-1],f=n.matched;if(!c||!f.length)return-1;const d=f.findIndex(nn.bind(null,c));if(d>-1)return d;const g=fo(a[u-2]);return u>1&&fo(c)===g&&f[f.length-1].path!==g?f.findIndex(nn.bind(null,a[u-2])):d}),i=Q(()=>s.value>-1&&Gd(n.params,r.value.params)),o=Q(()=>s.value>-1&&s.value===n.matched.length-1&&ma(n.params,r.value.params));function l(a={}){if(Ud(a)){const u=t[Ot(e.replace)?"replace":"push"](Ot(e.to)).catch(En);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>u),u}return Promise.resolve()}return{route:r,href:Q(()=>r.value.href),isActive:i,isExactActive:o,navigate:l}}function zd(e){return e.length===1?e[0]:e}const Kd=Pr({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:uo,setup(e,{slots:t}){const n=Dt(uo(e)),{options:r}=Ze(Xs),s=Q(()=>({[ho(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[ho(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const i=t.default&&zd(t.default(n));return e.custom?i:G("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:s.value},i)}}}),Wd=Kd;function Ud(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function Gd(e,t){for(const n in t){const r=t[n],s=e[n];if(typeof r=="string"){if(r!==s)return!1}else if(!Ve(s)||s.length!==r.length||r.some((i,o)=>i!==s[o]))return!1}return!0}function fo(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const ho=(e,t,n)=>e??t??n,Qd=Pr({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=Ze(Ts),s=Q(()=>e.route||r.value),i=Ze(co,0),o=Q(()=>{let u=Ot(i);const{matched:c}=s.value;let f;for(;(f=c[u])&&!f.components;)u++;return u}),l=Q(()=>s.value.matched[o.value]);Jn(co,Q(()=>o.value+1)),Jn(Vd,l),Jn(Ts,s);const a=Nt();return $t(()=>[a.value,l.value,e.name],([u,c,f],[d,g,v])=>{c&&(c.instances[f]=u,g&&g!==c&&u&&u===d&&(c.leaveGuards.size||(c.leaveGuards=g.leaveGuards),c.updateGuards.size||(c.updateGuards=g.updateGuards))),u&&c&&(!g||!nn(c,g)||!d)&&(c.enterCallbacks[f]||[]).forEach(S=>S(u))},{flush:"post"}),()=>{const u=s.value,c=e.name,f=l.value,d=f&&f.components[c];if(!d)return po(n.default,{Component:d,route:u});const g=f.props[c],v=g?g===!0?u.params:typeof g=="function"?g(u):g:null,T=G(d,ie({},v,t,{onVnodeUnmounted:O=>{O.component.isUnmounted&&(f.instances[c]=null)},ref:a}));return po(n.default,{Component:T,route:u})||T}}});function po(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const Jd=Qd;function Yd(e){const t=Id(e.routes,e),n=e.parseQuery||Bd,r=e.stringifyQuery||ao,s=e.history,i=cn(),o=cn(),l=cn(),a=Yo(ht);let u=ht;Jt&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=ts.bind(null,_=>""+_),f=ts.bind(null,ad),d=ts.bind(null,$n);function g(_,D){let N,V;return ya(_)?(N=t.getRecordMatcher(_),V=D):V=_,t.addRoute(V,N)}function v(_){const D=t.getRecordMatcher(_);D&&t.removeRoute(D)}function S(){return t.getRoutes().map(_=>_.record)}function T(_){return!!t.getRecordMatcher(_)}function O(_,D){if(D=ie({},D||a.value),typeof _=="string"){const m=ns(n,_,D.path),b=t.resolve({path:m.path},D),E=s.createHref(m.fullPath);return ie(m,b,{params:d(b.params),hash:$n(m.hash),redirectedFrom:void 0,href:E})}let N;if(_.path!=null)N=ie({},_,{path:ns(n,_.path,D.path).path});else{const m=ie({},_.params);for(const b in m)m[b]==null&&delete m[b];N=ie({},_,{params:f(m)}),D.params=f(D.params)}const V=t.resolve(N,D),ce=_.hash||"";V.params=c(d(V.params));const h=fd(r,ie({},_,{hash:id(ce),path:V.path})),p=s.createHref(h);return ie({fullPath:h,hash:ce,query:r===ao?Hd(_.query):_.query||{}},V,{redirectedFrom:void 0,href:p})}function x(_){return typeof _=="string"?ns(n,_,a.value.path):ie({},_)}function C(_,D){if(u!==_)return rn(8,{from:D,to:_})}function y(_){return q(_)}function k(_){return y(ie(x(_),{replace:!0}))}function H(_){const D=_.matched[_.matched.length-1];if(D&&D.redirect){const{redirect:N}=D;let V=typeof N=="function"?N(_):N;return typeof V=="string"&&(V=V.includes("?")||V.includes("#")?V=x(V):{path:V},V.params={}),ie({query:_.query,hash:_.hash,params:V.path!=null?{}:_.params},V)}}function q(_,D){const N=u=O(_),V=a.value,ce=_.state,h=_.force,p=_.replace===!0,m=H(N);if(m)return q(ie(x(m),{state:typeof m=="object"?ie({},ce,m.state):ce,force:h,replace:p}),D||N);const b=N;b.redirectedFrom=D;let E;return!h&&dd(r,V,N)&&(E=rn(16,{to:b,from:V}),Ke(V,V,!0,!1)),(E?Promise.resolve(E):B(b,V)).catch(w=>nt(w)?nt(w,2)?w:ft(w):se(w,b,V)).then(w=>{if(w){if(nt(w,2))return q(ie({replace:p},x(w.to),{state:typeof w.to=="object"?ie({},ce,w.to.state):ce,force:h}),D||b)}else w=M(b,V,!0,p,ce);return W(b,V,w),w})}function F(_,D){const N=C(_,D);return N?Promise.reject(N):Promise.resolve()}function R(_){const D=Ht.values().next().value;return D&&typeof D.runWithContext=="function"?D.runWithContext(_):_()}function B(_,D){let N;const[V,ce,h]=Zd(_,D);N=rs(V.reverse(),"beforeRouteLeave",_,D);for(const m of V)m.leaveGuards.forEach(b=>{N.push(_t(b,_,D))});const p=F.bind(null,_,D);return N.push(p),Me(N).then(()=>{N=[];for(const m of i.list())N.push(_t(m,_,D));return N.push(p),Me(N)}).then(()=>{N=rs(ce,"beforeRouteUpdate",_,D);for(const m of ce)m.updateGuards.forEach(b=>{N.push(_t(b,_,D))});return N.push(p),Me(N)}).then(()=>{N=[];for(const m of h)if(m.beforeEnter)if(Ve(m.beforeEnter))for(const b of m.beforeEnter)N.push(_t(b,_,D));else N.push(_t(m.beforeEnter,_,D));return N.push(p),Me(N)}).then(()=>(_.matched.forEach(m=>m.enterCallbacks={}),N=rs(h,"beforeRouteEnter",_,D,R),N.push(p),Me(N))).then(()=>{N=[];for(const m of o.list())N.push(_t(m,_,D));return N.push(p),Me(N)}).catch(m=>nt(m,8)?m:Promise.reject(m))}function W(_,D,N){l.list().forEach(V=>R(()=>V(_,D,N)))}function M(_,D,N,V,ce){const h=C(_,D);if(h)return h;const p=D===ht,m=Jt?history.state:{};N&&(V||p?s.replace(_.fullPath,ie({scroll:p&&m&&m.scroll},ce)):s.push(_.fullPath,ce)),a.value=_,Ke(_,D,N,p),ft()}let X;function j(){X||(X=s.listen((_,D,N)=>{if(!Bn.listening)return;const V=O(_),ce=H(V);if(ce){q(ie(ce,{replace:!0,force:!0}),V).catch(En);return}u=V;const h=a.value;Jt&&_d(Xi(h.fullPath,N.delta),Fr()),B(V,h).catch(p=>nt(p,12)?p:nt(p,2)?(q(ie(x(p.to),{force:!0}),V).then(m=>{nt(m,20)&&!N.delta&&N.type===Nn.pop&&s.go(-1,!1)}).catch(En),Promise.reject()):(N.delta&&s.go(-N.delta,!1),se(p,V,h))).then(p=>{p=p||M(V,h,!1),p&&(N.delta&&!nt(p,8)?s.go(-N.delta,!1):N.type===Nn.pop&&nt(p,20)&&s.go(-1,!1)),W(V,h,p)}).catch(En)}))}let ee=cn(),re=cn(),Z;function se(_,D,N){ft(_);const V=re.list();return V.length?V.forEach(ce=>ce(_,D,N)):console.error(_),Promise.reject(_)}function et(){return Z&&a.value!==ht?Promise.resolve():new Promise((_,D)=>{ee.add([_,D])})}function ft(_){return Z||(Z=!_,j(),ee.list().forEach(([D,N])=>_?N(_):D()),ee.reset()),_}function Ke(_,D,N,V){const{scrollBehavior:ce}=e;if(!Jt||!ce)return Promise.resolve();const h=!N&&wd(Xi(_.fullPath,0))||(V||!N)&&history.state&&history.state.scroll||null;return Vs().then(()=>ce(_,D,h)).then(p=>p&&bd(p)).catch(p=>se(p,_,D))}const ke=_=>s.go(_);let Bt;const Ht=new Set,Bn={currentRoute:a,listening:!0,addRoute:g,removeRoute:v,clearRoutes:t.clearRoutes,hasRoute:T,getRoutes:S,resolve:O,options:e,push:y,replace:k,go:ke,back:()=>ke(-1),forward:()=>ke(1),beforeEach:i.add,beforeResolve:o.add,afterEach:l.add,onError:re.add,isReady:et,install(_){const D=this;_.component("RouterLink",Wd),_.component("RouterView",Jd),_.config.globalProperties.$router=D,Object.defineProperty(_.config.globalProperties,"$route",{enumerable:!0,get:()=>Ot(a)}),Jt&&!Bt&&a.value===ht&&(Bt=!0,y(s.location).catch(ce=>{}));const N={};for(const ce in ht)Object.defineProperty(N,ce,{get:()=>a.value[ce],enumerable:!0});_.provide(Xs,D),_.provide(xa,Qo(N)),_.provide(Ts,a);const V=_.unmount;Ht.add(_),_.unmount=function(){Ht.delete(_),Ht.size<1&&(u=ht,X&&X(),X=null,a.value=ht,Bt=!1,Z=!1),V()}}};function Me(_){return _.reduce((D,N)=>D.then(()=>R(N)),Promise.resolve())}return Bn}function Zd(e,t){const n=[],r=[],s=[],i=Math.max(t.matched.length,e.matched.length);for(let o=0;onn(u,l))?r.push(l):n.push(l));const a=e.matched[o];a&&(t.matched.find(u=>nn(u,a))||s.push(a))}return[n,r,s]}const Xd=[{path:"/",component:()=>Gn(()=>import("./MainLayout-DiTWyfa9.js"),__vite__mapDeps([0,1,2])),children:[{path:"",component:()=>Gn(()=>import("./IndexPage-dP2WXfRd.js"),__vite__mapDeps([3,1,4,5]))}]},{path:"/:catchAll(.*)*",component:()=>Gn(()=>import("./ErrorNotFound-CQ4EA0eQ.js"),[])}],ss=function(){return Yd({scrollBehavior:()=>({left:0,top:0}),routes:Xd,history:Rd("/openWB/web/themes/koala/")})};async function eh(e,t){const n=e(Hf);n.use(Bf,t);const r=typeof es=="function"?await es({}):es;n.use(r);const s=qt(typeof ss=="function"?await ss({store:r}):ss);return r.use(({store:i})=>{i.router=s}),{app:n,store:r,router:s}}const th={isoName:"de-DE",nativeName:"Deutsch (DE)",label:{clear:"Leeren",ok:"Ok",cancel:"Abbrechen",close:"Schließen",set:"Setzen",select:"Auswählen",reset:"Zurücksetzen",remove:"Löschen",update:"Aktualisieren",create:"Erstellen",search:"Suche",filter:"Filter",refresh:"Aktualisieren",expand:e=>e?`Erweitern Sie "${e}"`:"Erweitern",collapse:e=>e?`"${e}" minimieren`:"Zusammenbruch"},date:{days:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),daysShort:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan_Feb_März_Apr_Mai_Jun_Jul_Aug_Sep_Okt_Nov_Dez".split("_"),firstDayOfWeek:1,format24h:!0,pluralDay:"Tage",prevMonth:"Vorheriger Monat",nextMonth:"Nächster Monat",prevYear:"Vorheriges Jahr",nextYear:"Nächstes Jahr",today:"Heute",prevRangeYears:e=>`Vorherige ${e} Jahre`,nextRangeYears:e=>`Nächste ${e} Jahre`},table:{noData:"Keine Daten vorhanden.",noResults:"Keine Einträge gefunden",loading:"Lade...",selectedRecords:e=>e>1?e+" ausgewählte Zeilen":(e===0?"Keine":"1")+" ausgewählt.",recordsPerPage:"Zeilen pro Seite",allRows:"Alle",pagination:(e,t,n)=>e+"-"+t+" von "+n,columns:"Spalten"},pagination:{first:"Erste Seite",prev:"Vorherige Seite",next:"Nächste Seite",last:"Letzte Seite"},editor:{url:"URL",bold:"Fett",italic:"Kursiv",strikethrough:"Durchgestrichen",underline:"Unterstrichen",unorderedList:"Ungeordnete Liste",orderedList:"Geordnete Liste",subscript:"tiefgestellt",superscript:"hochgestellt",hyperlink:"Link",toggleFullscreen:"Vollbild umschalten",quote:"Zitat",left:"linksbündig",center:"zentriert",right:"rechtsbündig",justify:"Ausrichten",print:"Drucken",outdent:"ausrücken",indent:"einrücken",removeFormat:"Entferne Formatierung",formatting:"Formatiere",fontSize:"Schriftgröße",align:"Ausrichten",hr:"Horizontale Linie einfügen",undo:"Rückgänging",redo:"Wiederherstellen",heading1:"Überschrift 1",heading2:"Überschrift 2",heading3:"Überschrift 3",heading4:"Überschrift 4",heading5:"Überschrift 5",heading6:"Überschrift 6",paragraph:"Absatz",code:"Code",size1:"Sehr klein",size2:"klein",size3:"Normal",size4:"Groß",size5:"Größer",size6:"Sehr groß",size7:"Maximum",defaultFont:"Standard Schrift",viewSource:"Quelltext anzeigen"},tree:{noNodes:"Keine Knoten verfügbar",noResults:"Keine passenden Knoten gefunden"}},As={xs:18,sm:24,md:32,lg:38,xl:46},ei={size:String};function ti(e,t=As){return Q(()=>e.size!==void 0?{fontSize:e.size in t?`${t[e.size]}px`:e.size}:null)}function nh(e,t){return e!==void 0&&e()||t}function xp(e,t){if(e!==void 0){const n=e();if(n!=null)return n.slice()}return t}function hn(e,t){return e!==void 0?t.concat(e()):t}function rh(e,t){return e===void 0?t:t!==void 0?t.concat(e()):e()}function Sp(e,t,n,r,s,i){t.key=r+s;const o=G(e,t,n);return s===!0?ol(o,i()):o}const go="0 0 24 24",is=e=>e,os=e=>`ionicons ${e}`,Sa={"mdi-":e=>`mdi ${e}`,"icon-":is,"bt-":e=>`bt ${e}`,"eva-":e=>`eva ${e}`,"ion-md":os,"ion-ios":os,"ion-logo":os,"iconfont ":is,"ti-":e=>`themify-icon ${e}`,"bi-":e=>`bootstrap-icons ${e}`,"i-":is},Ea={o_:"-outlined",r_:"-round",s_:"-sharp"},Ca={sym_o_:"-outlined",sym_r_:"-rounded",sym_s_:"-sharp"},sh=new RegExp("^("+Object.keys(Sa).join("|")+")"),ih=new RegExp("^("+Object.keys(Ea).join("|")+")"),mo=new RegExp("^("+Object.keys(Ca).join("|")+")"),oh=/^[Mm]\s?[-+]?\.?\d/,lh=/^img:/,ah=/^svguse:/,ch=/^ion-/,uh=/^(fa-(classic|sharp|solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /,yr=qn({name:"QIcon",props:{...ei,tag:{type:String,default:"i"},name:String,color:String,left:Boolean,right:Boolean},setup(e,{slots:t}){const{proxy:{$q:n}}=ze(),r=ti(e),s=Q(()=>"q-icon"+(e.left===!0?" on-left":"")+(e.right===!0?" on-right":"")+(e.color!==void 0?` text-${e.color}`:"")),i=Q(()=>{let o,l=e.name;if(l==="none"||!l)return{none:!0};if(n.iconMapFn!==null){const c=n.iconMapFn(l);if(c!==void 0)if(c.icon!==void 0){if(l=c.icon,l==="none"||!l)return{none:!0}}else return{cls:c.cls,content:c.content!==void 0?c.content:" "}}if(oh.test(l)===!0){const[c,f=go]=l.split("|");return{svg:!0,viewBox:f,nodes:c.split("&&").map(d=>{const[g,v,S]=d.split("@@");return G("path",{style:v,d:g,transform:S})})}}if(lh.test(l)===!0)return{img:!0,src:l.substring(4)};if(ah.test(l)===!0){const[c,f=go]=l.split("|");return{svguse:!0,src:c.substring(7),viewBox:f}}let a=" ";const u=l.match(sh);if(u!==null)o=Sa[u[1]](l);else if(uh.test(l)===!0)o=l;else if(ch.test(l)===!0)o=`ionicons ion-${n.platform.is.ios===!0?"ios":"md"}${l.substring(3)}`;else if(mo.test(l)===!0){o="notranslate material-symbols";const c=l.match(mo);c!==null&&(l=l.substring(6),o+=Ca[c[1]]),a=l}else{o="notranslate material-icons";const c=l.match(ih);c!==null&&(l=l.substring(2),o+=Ea[c[1]]),a=l}return{cls:o,content:a}});return()=>{const o={class:s.value,style:r.value,"aria-hidden":"true"};return i.value.none===!0?G(e.tag,o,nh(t.default)):i.value.img===!0?G(e.tag,o,hn(t.default,[G("img",{src:i.value.src})])):i.value.svg===!0?G(e.tag,o,hn(t.default,[G("svg",{viewBox:i.value.viewBox||"0 0 24 24"},i.value.nodes)])):i.value.svguse===!0?G(e.tag,o,hn(t.default,[G("svg",{viewBox:i.value.viewBox},[G("use",{"xlink:href":i.value.src})])])):(i.value.cls!==void 0&&(o.class+=" "+i.value.cls),G(e.tag,o,hn(t.default,[i.value.content])))}}}),fh=qn({name:"QAvatar",props:{...ei,fontSize:String,color:String,textColor:String,icon:String,square:Boolean,rounded:Boolean},setup(e,{slots:t}){const n=ti(e),r=Q(()=>"q-avatar"+(e.color?` bg-${e.color}`:"")+(e.textColor?` text-${e.textColor} q-chip--colored`:"")+(e.square===!0?" q-avatar--square":e.rounded===!0?" rounded-borders":"")),s=Q(()=>e.fontSize?{fontSize:e.fontSize}:null);return()=>{const i=e.icon!==void 0?[G(yr,{name:e.icon})]:void 0;return G("div",{class:r.value,style:n.value},[G("div",{class:"q-avatar__content row flex-center overflow-hidden",style:s.value},rh(t.default,i))])}}}),dh={size:{type:[String,Number],default:"1em"},color:String};function hh(e){return{cSize:Q(()=>e.size in As?`${As[e.size]}px`:e.size),classes:Q(()=>"q-spinner"+(e.color?` text-${e.color}`:""))}}const Ra=qn({name:"QSpinner",props:{...dh,thickness:{type:Number,default:5}},setup(e){const{cSize:t,classes:n}=hh(e);return()=>G("svg",{class:n.value+" q-spinner-mat",width:t.value,height:t.value,viewBox:"25 25 50 50"},[G("circle",{class:"path",cx:"50",cy:"50",r:"20",fill:"none",stroke:"currentColor","stroke-width":e.thickness,"stroke-miterlimit":"10"})])}});function ph(e,t){const n=e.style;for(const r in t)n[r]=t[r]}function Ep(e){if(e==null)return;if(typeof e=="string")try{return document.querySelector(e)||void 0}catch{return}const t=Ot(e);if(t)return t.$el||t}function Cp(e,t){if(e==null||e.contains(t)===!0)return!0;for(let n=e.nextElementSibling;n!==null;n=n.nextElementSibling)if(n.contains(t))return!0;return!1}function gh(e,t=250){let n=!1,r;return function(){return n===!1&&(n=!0,setTimeout(()=>{n=!1},t),r=e.apply(this,arguments)),r}}function vo(e,t,n,r){n.modifiers.stop===!0&&ta(e);const s=n.modifiers.color;let i=n.modifiers.center;i=i===!0||r===!0;const o=document.createElement("span"),l=document.createElement("span"),a=bf(e),{left:u,top:c,width:f,height:d}=t.getBoundingClientRect(),g=Math.sqrt(f*f+d*d),v=g/2,S=`${(f-g)/2}px`,T=i?S:`${a.left-u-v}px`,O=`${(d-g)/2}px`,x=i?O:`${a.top-c-v}px`;l.className="q-ripple__inner",ph(l,{height:`${g}px`,width:`${g}px`,transform:`translate3d(${T},${x},0) scale3d(.2,.2,1)`,opacity:0}),o.className=`q-ripple${s?" text-"+s:""}`,o.setAttribute("dir","ltr"),o.appendChild(l),t.appendChild(o);const C=()=>{o.remove(),clearTimeout(y)};n.abort.push(C);let y=setTimeout(()=>{l.classList.add("q-ripple__inner--enter"),l.style.transform=`translate3d(${S},${O},0) scale3d(1,1,1)`,l.style.opacity=.2,y=setTimeout(()=>{l.classList.remove("q-ripple__inner--enter"),l.classList.add("q-ripple__inner--leave"),l.style.opacity=0,y=setTimeout(()=>{o.remove(),n.abort.splice(n.abort.indexOf(C),1)},275)},250)},50)}function yo(e,{modifiers:t,value:n,arg:r}){const s=Object.assign({},e.cfg.ripple,t,n);e.modifiers={early:s.early===!0,stop:s.stop===!0,center:s.center===!0,color:s.color||r,keyCodes:[].concat(s.keyCodes||13)}}const mh=yf({name:"ripple",beforeMount(e,t){const n=t.instance.$.appContext.config.globalProperties.$q.config||{};if(n.ripple===!1)return;const r={cfg:n,enabled:t.value!==!1,modifiers:{},abort:[],start(s){r.enabled===!0&&s.qSkipRipple!==!0&&s.type===(r.modifiers.early===!0?"pointerdown":"click")&&vo(s,e,r,s.qKeyEvent===!0)},keystart:gh(s=>{r.enabled===!0&&s.qSkipRipple!==!0&&Es(s,r.modifiers.keyCodes)===!0&&s.type===`key${r.modifiers.early===!0?"down":"up"}`&&vo(s,e,r,!0)},300)};yo(r,t),e.__qripple=r,_f(r,"main",[[e,"pointerdown","start","passive"],[e,"click","start","passive"],[e,"keydown","keystart","passive"],[e,"keyup","keystart","passive"]])},updated(e,t){if(t.oldValue!==t.value){const n=e.__qripple;n!==void 0&&(n.enabled=t.value!==!1,n.enabled===!0&&Object(t.value)===t.value&&yo(n,t))}},beforeUnmount(e){const t=e.__qripple;t!==void 0&&(t.abort.forEach(n=>{n()}),wf(t,"main"),delete e._qripple)}}),Pa={left:"start",center:"center",right:"end",between:"between",around:"around",evenly:"evenly",stretch:"stretch"},vh=Object.keys(Pa),yh={align:{type:String,validator:e=>vh.includes(e)}};function bh(e){return Q(()=>{const t=e.align===void 0?e.vertical===!0?"stretch":"left":e.align;return`${e.vertical===!0?"items":"justify"}-${Pa[t]}`})}function Rp(e){if(Object(e.$parent)===e.$parent)return e.$parent;let{parent:t}=e.$;for(;Object(t)===t;){if(Object(t.proxy)===t.proxy)return t.proxy;t=t.parent}}function ka(e,t){typeof t.type=="symbol"?Array.isArray(t.children)===!0&&t.children.forEach(n=>{ka(e,n)}):e.add(t)}function Pp(e){const t=new Set;return e.forEach(n=>{ka(t,n)}),Array.from(t)}function _h(e){return e.appContext.config.globalProperties.$router!==void 0}function kp(e){return e.isUnmounted===!0||e.isDeactivated===!0}function bo(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}function _o(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function wh(e,t){for(const n in t){const r=t[n],s=e[n];if(typeof r=="string"){if(r!==s)return!1}else if(Array.isArray(s)===!1||s.length!==r.length||r.some((i,o)=>i!==s[o]))return!1}return!0}function wo(e,t){return Array.isArray(t)===!0?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function xh(e,t){return Array.isArray(e)===!0?wo(e,t):Array.isArray(t)===!0?wo(t,e):e===t}function Sh(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(xh(e[n],t[n])===!1)return!1;return!0}const Ta={to:[String,Object],replace:Boolean,href:String,target:String,disable:Boolean},Tp={...Ta,exact:Boolean,activeClass:{type:String,default:"q-router-link--active"},exactActiveClass:{type:String,default:"q-router-link--exact-active"}};function Eh({fallbackTag:e,useDisableForRouterLinkProps:t=!0}={}){const n=ze(),{props:r,proxy:s,emit:i}=n,o=_h(n),l=Q(()=>r.disable!==!0&&r.href!==void 0),a=Q(t===!0?()=>o===!0&&r.disable!==!0&&l.value!==!0&&r.to!==void 0&&r.to!==null&&r.to!=="":()=>o===!0&&l.value!==!0&&r.to!==void 0&&r.to!==null&&r.to!==""),u=Q(()=>a.value===!0?x(r.to):null),c=Q(()=>u.value!==null),f=Q(()=>l.value===!0||c.value===!0),d=Q(()=>r.type==="a"||f.value===!0?"a":r.tag||e||"div"),g=Q(()=>l.value===!0?{href:r.href,target:r.target}:c.value===!0?{href:u.value.href,target:r.target}:{}),v=Q(()=>{if(c.value===!1)return-1;const{matched:k}=u.value,{length:H}=k,q=k[H-1];if(q===void 0)return-1;const F=s.$route.matched;if(F.length===0)return-1;const R=F.findIndex(_o.bind(null,q));if(R!==-1)return R;const B=bo(k[H-2]);return H>1&&bo(q)===B&&F[F.length-1].path!==B?F.findIndex(_o.bind(null,k[H-2])):R}),S=Q(()=>c.value===!0&&v.value!==-1&&wh(s.$route.params,u.value.params)),T=Q(()=>S.value===!0&&v.value===s.$route.matched.length-1&&Sh(s.$route.params,u.value.params)),O=Q(()=>c.value===!0?T.value===!0?` ${r.exactActiveClass} ${r.activeClass}`:r.exact===!0?"":S.value===!0?` ${r.activeClass}`:"":"");function x(k){try{return s.$router.resolve(k)}catch{}return null}function C(k,{returnRouterError:H,to:q=r.to,replace:F=r.replace}={}){if(r.disable===!0)return k.preventDefault(),Promise.resolve(!1);if(k.metaKey||k.altKey||k.ctrlKey||k.shiftKey||k.button!==void 0&&k.button!==0||r.target==="_blank")return Promise.resolve(!1);k.preventDefault();const R=s.$router[F===!0?"replace":"push"](q);return H===!0?R:R.then(()=>{}).catch(()=>{})}function y(k){if(c.value===!0){const H=q=>C(k,q);i("click",k,H),k.defaultPrevented!==!0&&H()}else i("click",k)}return{hasRouterLink:c,hasHrefLink:l,hasLink:f,linkTag:d,resolvedLink:u,linkIsActive:S,linkIsExactActive:T,linkClass:O,linkAttrs:g,getLink:x,navigateToRouterLink:C,navigateOnClick:y}}const xo={none:0,xs:4,sm:8,md:16,lg:24,xl:32},Ch={xs:8,sm:10,md:14,lg:20,xl:24},Rh=["button","submit","reset"],Ph=/[^\s]\/[^\s]/,kh=["flat","outline","push","unelevated"];function Aa(e,t){return e.flat===!0?"flat":e.outline===!0?"outline":e.push===!0?"push":e.unelevated===!0?"unelevated":t}function Ap(e){const t=Aa(e);return t!==void 0?{[t]:!0}:{}}const Th={...ei,...Ta,type:{type:String,default:"button"},label:[Number,String],icon:String,iconRight:String,...kh.reduce((e,t)=>(e[t]=Boolean)&&e,{}),square:Boolean,rounded:Boolean,glossy:Boolean,size:String,fab:Boolean,fabMini:Boolean,padding:String,color:String,textColor:String,noCaps:Boolean,noWrap:Boolean,dense:Boolean,tabindex:[Number,String],ripple:{type:[Boolean,Object],default:!0},align:{...yh.align,default:"center"},stack:Boolean,stretch:Boolean,loading:{type:Boolean,default:null},disable:Boolean},Ah={...Th,round:Boolean};function Oh(e){const t=ti(e,Ch),n=bh(e),{hasRouterLink:r,hasLink:s,linkTag:i,linkAttrs:o,navigateOnClick:l}=Eh({fallbackTag:"button"}),a=Q(()=>{const T=e.fab===!1&&e.fabMini===!1?t.value:{};return e.padding!==void 0?Object.assign({},T,{padding:e.padding.split(/\s+/).map(O=>O in xo?xo[O]+"px":O).join(" "),minWidth:"0",minHeight:"0"}):T}),u=Q(()=>e.rounded===!0||e.fab===!0||e.fabMini===!0),c=Q(()=>e.disable!==!0&&e.loading!==!0),f=Q(()=>c.value===!0?e.tabindex||0:-1),d=Q(()=>Aa(e,"standard")),g=Q(()=>{const T={tabindex:f.value};return s.value===!0?Object.assign(T,o.value):Rh.includes(e.type)===!0&&(T.type=e.type),i.value==="a"?(e.disable===!0?T["aria-disabled"]="true":T.href===void 0&&(T.role="button"),r.value!==!0&&Ph.test(e.type)===!0&&(T.type=e.type)):e.disable===!0&&(T.disabled="",T["aria-disabled"]="true"),e.loading===!0&&e.percentage!==void 0&&Object.assign(T,{role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":e.percentage}),T}),v=Q(()=>{let T;e.color!==void 0?e.flat===!0||e.outline===!0?T=`text-${e.textColor||e.color}`:T=`bg-${e.color} text-${e.textColor||"white"}`:e.textColor&&(T=`text-${e.textColor}`);const O=e.round===!0?"round":`rectangle${u.value===!0?" q-btn--rounded":e.square===!0?" q-btn--square":""}`;return`q-btn--${d.value} q-btn--${O}`+(T!==void 0?" "+T:"")+(c.value===!0?" q-btn--actionable q-focusable q-hoverable":e.disable===!0?" disabled":"")+(e.fab===!0?" q-btn--fab":e.fabMini===!0?" q-btn--fab-mini":"")+(e.noCaps===!0?" q-btn--no-uppercase":"")+(e.dense===!0?" q-btn--dense":"")+(e.stretch===!0?" no-border-radius self-stretch":"")+(e.glossy===!0?" glossy":"")+(e.square?" q-btn--square":"")}),S=Q(()=>n.value+(e.stack===!0?" column":" row")+(e.noWrap===!0?" no-wrap text-no-wrap":"")+(e.loading===!0?" q-btn__content--hidden":""));return{classes:v,style:a,innerClasses:S,attributes:g,hasLink:s,linkTag:i,navigateOnClick:l,isActionable:c}}const{passiveCapture:Ne}=jt;let Wt=null,Ut=null,Gt=null;const Lh=qn({name:"QBtn",props:{...Ah,percentage:Number,darkPercentage:Boolean,onTouchstart:[Function,Array]},emits:["click","keydown","mousedown","keyup"],setup(e,{slots:t,emit:n}){const{proxy:r}=ze(),{classes:s,style:i,innerClasses:o,attributes:l,hasLink:a,linkTag:u,navigateOnClick:c,isActionable:f}=Oh(e),d=Nt(null),g=Nt(null);let v=null,S,T=null;const O=Q(()=>e.label!==void 0&&e.label!==null&&e.label!==""),x=Q(()=>e.disable===!0||e.ripple===!1?!1:{keyCodes:a.value===!0?[13,32]:[13],...e.ripple===!0?{}:e.ripple}),C=Q(()=>({center:e.round})),y=Q(()=>{const j=Math.max(0,Math.min(100,e.percentage));return j>0?{transition:"transform 0.6s",transform:`translateX(${j-100}%)`}:{}}),k=Q(()=>{if(e.loading===!0)return{onMousedown:X,onTouchstart:X,onClick:X,onKeydown:X,onKeyup:X};if(f.value===!0){const j={onClick:q,onKeydown:F,onMousedown:B};if(r.$q.platform.has.touch===!0){const ee=e.onTouchstart!==void 0?"":"Passive";j[`onTouchstart${ee}`]=R}return j}return{onClick:zt}}),H=Q(()=>({ref:d,class:"q-btn q-btn-item non-selectable no-outline "+s.value,style:i.value,...l.value,...k.value}));function q(j){if(d.value!==null){if(j!==void 0){if(j.defaultPrevented===!0)return;const ee=document.activeElement;if(e.type==="submit"&&ee!==document.body&&d.value.contains(ee)===!1&&ee.contains(d.value)===!1){j.qAvoidFocus!==!0&&d.value.focus();const re=()=>{document.removeEventListener("keydown",zt,!0),document.removeEventListener("keyup",re,Ne),d.value?.removeEventListener("blur",re,Ne)};document.addEventListener("keydown",zt,!0),document.addEventListener("keyup",re,Ne),d.value.addEventListener("blur",re,Ne)}}c(j)}}function F(j){d.value!==null&&(n("keydown",j),Es(j,[13,32])===!0&&Ut!==d.value&&(Ut!==null&&M(),j.defaultPrevented!==!0&&(j.qAvoidFocus!==!0&&d.value.focus(),Ut=d.value,d.value.classList.add("q-btn--active"),document.addEventListener("keyup",W,!0),d.value.addEventListener("blur",W,Ne)),zt(j)))}function R(j){d.value!==null&&(n("touchstart",j),j.defaultPrevented!==!0&&(Wt!==d.value&&(Wt!==null&&M(),Wt=d.value,v=j.target,v.addEventListener("touchcancel",W,Ne),v.addEventListener("touchend",W,Ne)),S=!0,T!==null&&clearTimeout(T),T=setTimeout(()=>{T=null,S=!1},200)))}function B(j){d.value!==null&&(j.qSkipRipple=S===!0,n("mousedown",j),j.defaultPrevented!==!0&&Gt!==d.value&&(Gt!==null&&M(),Gt=d.value,d.value.classList.add("q-btn--active"),document.addEventListener("mouseup",W,Ne)))}function W(j){if(d.value!==null&&!(j?.type==="blur"&&document.activeElement===d.value)){if(j?.type==="keyup"){if(Ut===d.value&&Es(j,[13,32])===!0){const ee=new MouseEvent("click",j);ee.qKeyEvent=!0,j.defaultPrevented===!0&&Ss(ee),j.cancelBubble===!0&&ta(ee),d.value.dispatchEvent(ee),zt(j),j.qKeyEvent=!0}n("keyup",j)}M()}}function M(j){const ee=g.value;j!==!0&&(Wt===d.value||Gt===d.value)&&ee!==null&&ee!==document.activeElement&&(ee.setAttribute("tabindex",-1),ee.focus()),Wt===d.value&&(v!==null&&(v.removeEventListener("touchcancel",W,Ne),v.removeEventListener("touchend",W,Ne)),Wt=v=null),Gt===d.value&&(document.removeEventListener("mouseup",W,Ne),Gt=null),Ut===d.value&&(document.removeEventListener("keyup",W,!0),d.value?.removeEventListener("blur",W,Ne),Ut=null),d.value?.classList.remove("q-btn--active")}function X(j){zt(j),j.qSkipRipple=!0}return Or(()=>{M(!0)}),Object.assign(r,{click:j=>{f.value===!0&&q(j)}}),()=>{let j=[];e.icon!==void 0&&j.push(G(yr,{name:e.icon,left:e.stack!==!0&&O.value===!0,role:"img"})),O.value===!0&&j.push(G("span",{class:"block"},[e.label])),j=hn(t.default,j),e.iconRight!==void 0&&e.round===!1&&j.push(G(yr,{name:e.iconRight,right:e.stack!==!0&&O.value===!0,role:"img"}));const ee=[G("span",{class:"q-focus-helper",ref:g})];return e.loading===!0&&e.percentage!==void 0&&ee.push(G("span",{class:"q-btn__progress absolute-full overflow-hidden"+(e.darkPercentage===!0?" q-btn__progress--dark":"")},[G("span",{class:"q-btn__progress-indicator fit block",style:y.value})])),ee.push(G("span",{class:"q-btn__content text-center col items-center q-anchor--skip "+o.value},j)),e.loading!==null&&ee.push(G(ju,{name:"q-transition--fade"},()=>e.loading===!0?[G("span",{key:"loading",class:"absolute-full flex flex-center"},t.loading!==void 0?t.loading():[G(Ra)])]:null)),ol(G(u.value,H.value,ee),[[mh,x.value,void 0,C.value]])}}});let Mh=1,$h=document.body;function Nh(e,t){const n=document.createElement("div");if(n.id=t!==void 0?`q-portal--${t}--${Mh++}`:e,vr.globalNodes!==void 0){const r=vr.globalNodes.class;r!==void 0&&(n.className=r)}return $h.appendChild(n),n}function Op(e){e.remove()}let Ih=0;const er={},tr={},De={},Oa={},jh=/^\s*$/,La=[],Fh=[void 0,null,!0,!1,""],ni=["top-left","top-right","bottom-left","bottom-right","top","bottom","left","right","center"],Dh=["top-left","top-right","bottom-left","bottom-right"],pn={positive:{icon:e=>e.iconSet.type.positive,color:"positive"},negative:{icon:e=>e.iconSet.type.negative,color:"negative"},warning:{icon:e=>e.iconSet.type.warning,color:"warning",textColor:"dark"},info:{icon:e=>e.iconSet.type.info,color:"info"},ongoing:{group:!1,timeout:0,spinner:!0,color:"grey-8"}};function Ma(e,t,n){if(!e)return un("parameter required");let r;const s={textColor:"white"};if(e.ignoreDefaults!==!0&&Object.assign(s,er),Mn(e)===!1&&(s.type&&Object.assign(s,pn[s.type]),e={message:e}),Object.assign(s,pn[e.type||s.type],e),typeof s.icon=="function"&&(s.icon=s.icon(t)),s.spinner?(s.spinner===!0&&(s.spinner=Ra),s.spinner=qt(s.spinner)):s.spinner=!1,s.meta={hasMedia:!!(s.spinner!==!1||s.icon||s.avatar),hasText:So(s.message)||So(s.caption)},s.position){if(ni.includes(s.position)===!1)return un("wrong position",e)}else s.position="bottom";if(Fh.includes(s.timeout)===!0)s.timeout=5e3;else{const a=Number(s.timeout);if(isNaN(a)||a<0)return un("wrong timeout",e);s.timeout=Number.isFinite(a)?a:0}s.timeout===0?s.progress=!1:s.progress===!0&&(s.meta.progressClass="q-notification__progress"+(s.progressClass?` ${s.progressClass}`:""),s.meta.progressStyle={animationDuration:`${s.timeout+1e3}ms`});const i=(Array.isArray(e.actions)===!0?e.actions:[]).concat(e.ignoreDefaults!==!0&&Array.isArray(er.actions)===!0?er.actions:[]).concat(Array.isArray(pn[e.type]?.actions)===!0?pn[e.type].actions:[]),{closeBtn:o}=s;if(o&&i.push({label:typeof o=="string"?o:t.lang.label.close}),s.actions=i.map(({handler:a,noDismiss:u,...c})=>({flat:!0,...c,onClick:typeof a=="function"?()=>{a(),u!==!0&&l()}:()=>{l()}})),s.multiLine===void 0&&(s.multiLine=s.actions.length>1),Object.assign(s.meta,{class:`q-notification row items-stretch q-notification--${s.multiLine===!0?"multi-line":"standard"}`+(s.color!==void 0?` bg-${s.color}`:"")+(s.textColor!==void 0?` text-${s.textColor}`:"")+(s.classes!==void 0?` ${s.classes}`:""),wrapperClass:"q-notification__wrapper col relative-position border-radius-inherit "+(s.multiLine===!0?"column no-wrap justify-center":"row items-center"),contentClass:"q-notification__content row items-center"+(s.multiLine===!0?"":" col"),leftClass:s.meta.hasText===!0?"additional":"single",attrs:{role:"alert",...s.attrs}}),s.group===!1?(s.group=void 0,s.meta.group=void 0):((s.group===void 0||s.group===!0)&&(s.group=[s.message,s.caption,s.multiline].concat(s.actions.map(a=>`${a.label}*${a.icon}`)).join("|")),s.meta.group=s.group+"|"+s.position),s.actions.length===0?s.actions=void 0:s.meta.actionsClass="q-notification__actions row items-center "+(s.multiLine===!0?"justify-end":"col-auto")+(s.meta.hasMedia===!0?" q-notification__actions--with-media":""),n!==void 0){n.notif.meta.timer&&(clearTimeout(n.notif.meta.timer),n.notif.meta.timer=void 0),s.meta.uid=n.notif.meta.uid;const a=De[s.position].value.indexOf(n.notif);De[s.position].value[a]=s}else{const a=tr[s.meta.group];if(a===void 0){if(s.meta.uid=Ih++,s.meta.badge=1,["left","right","center"].indexOf(s.position)!==-1)De[s.position].value.splice(Math.floor(De[s.position].value.length/2),0,s);else{const u=s.position.indexOf("top")!==-1?"unshift":"push";De[s.position].value[u](s)}s.group!==void 0&&(tr[s.meta.group]=s)}else{if(a.meta.timer&&(clearTimeout(a.meta.timer),a.meta.timer=void 0),s.badgePosition!==void 0){if(Dh.includes(s.badgePosition)===!1)return un("wrong badgePosition",e)}else s.badgePosition=`top-${s.position.indexOf("left")!==-1?"right":"left"}`;s.meta.uid=a.meta.uid,s.meta.badge=a.meta.badge+1,s.meta.badgeClass=`q-notification__badge q-notification__badge--${s.badgePosition}`+(s.badgeColor!==void 0?` bg-${s.badgeColor}`:"")+(s.badgeTextColor!==void 0?` text-${s.badgeTextColor}`:"")+(s.badgeClass?` ${s.badgeClass}`:"");const u=De[s.position].value.indexOf(a);De[s.position].value[u]=tr[s.meta.group]=s}}const l=()=>{qh(s),r=void 0};if(s.timeout>0&&(s.meta.timer=setTimeout(()=>{s.meta.timer=void 0,l()},s.timeout+1e3)),s.group!==void 0)return a=>{a!==void 0?un("trying to update a grouped one which is forbidden",e):l()};if(r={dismiss:l,config:e,notif:s},n!==void 0){Object.assign(n,r);return}return a=>{if(r!==void 0)if(a===void 0)r.dismiss();else{const u=Object.assign({},r.config,a,{group:!1,position:s.position});Ma(u,t,r)}}}function qh(e){e.meta.timer&&(clearTimeout(e.meta.timer),e.meta.timer=void 0);const t=De[e.position].value.indexOf(e);if(t!==-1){e.group!==void 0&&delete tr[e.meta.group];const n=La[""+e.meta.uid];if(n){const{width:r,height:s}=getComputedStyle(n);n.style.left=`${n.offsetLeft}px`,n.style.width=r,n.style.height=s}De[e.position].value.splice(t,1),typeof e.onDismiss=="function"&&e.onDismiss()}}function So(e){return e!=null&&jh.test(e)!==!0}function un(e,t){return console.error(`Notify: ${e}`,t),!1}function Bh(){return qn({name:"QNotifications",devtools:{hide:!0},setup(){return()=>G("div",{class:"q-notifications"},ni.map(e=>G(nf,{key:e,class:Oa[e],tag:"div",name:`q-notification--${e}`},()=>De[e].value.map(t=>{const n=t.meta,r=[];if(n.hasMedia===!0&&(t.spinner!==!1?r.push(G(t.spinner,{class:"q-notification__spinner q-notification__spinner--"+n.leftClass,color:t.spinnerColor,size:t.spinnerSize})):t.icon?r.push(G(yr,{class:"q-notification__icon q-notification__icon--"+n.leftClass,name:t.icon,color:t.iconColor,size:t.iconSize,role:"img"})):t.avatar&&r.push(G(fh,{class:"q-notification__avatar q-notification__avatar--"+n.leftClass},()=>G("img",{src:t.avatar,"aria-hidden":"true"})))),n.hasText===!0){let i;const o={class:"q-notification__message col"};if(t.html===!0)o.innerHTML=t.caption?`
${t.message}
${t.caption}
`:t.message;else{const l=[t.message];i=t.caption?[G("div",l),G("div",{class:"q-notification__caption"},[t.caption])]:l}r.push(G("div",o,i))}const s=[G("div",{class:n.contentClass},r)];return t.progress===!0&&s.push(G("div",{key:`${n.uid}|p|${n.badge}`,class:n.progressClass,style:n.progressStyle})),t.actions!==void 0&&s.push(G("div",{class:n.actionsClass},t.actions.map(i=>G(Lh,i)))),n.badge>1&&s.push(G("div",{key:`${n.uid}|${n.badge}`,class:t.meta.badgeClass,style:t.badgeStyle},[n.badge])),G("div",{ref:i=>{La[""+n.uid]=i},key:n.uid,class:n.class,...n.attrs},[G("div",{class:n.wrapperClass},s)])}))))}})}const Hh={setDefaults(e){Mn(e)===!0&&Object.assign(er,e)},registerType(e,t){Mn(t)===!0&&(pn[e]=t)},install({$q:e,parentApp:t}){if(e.notify=this.create=n=>Ma(n,e),e.notify.setDefaults=this.setDefaults,e.notify.registerType=this.registerType,e.config.notify!==void 0&&this.setDefaults(e.config.notify),this.__installed!==!0){ni.forEach(r=>{De[r]=Nt([]);const s=["left","center","right"].includes(r)===!0?"center":r.indexOf("top")!==-1?"top":"bottom",i=r.indexOf("left")!==-1?"start":r.indexOf("right")!==-1?"end":"center",o=["left","right"].includes(r)?`items-${r==="left"?"start":"end"} justify-center`:r==="center"?"flex-center":`items-${i}`;Oa[r]=`q-notifications__list q-notifications__list--${s} fixed column no-wrap ${o}`});const n=Nh("q-notify");Ff(Bh(),t).mount(n)}}},Vh={config:{dark:"auto"},lang:th,plugins:{Notify:Hh}};var zh=function(){return!!(window.location.hostname==="localhost"||window.location.hostname==="[::1]"||window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/))},Os;typeof window<"u"&&(typeof Promise<"u"?Os=new Promise(function(e){return window.addEventListener("load",e)}):Os={then:function(e){return window.addEventListener("load",e)}});function Kh(e,t){t===void 0&&(t={});var n=t.registrationOptions;n===void 0&&(n={}),delete t.registrationOptions;var r=function(s){for(var i=[],o=arguments.length-1;o-- >0;)i[o]=arguments[o+1];t&&t[s]&&t[s].apply(t,i)};"serviceWorker"in navigator&&Os.then(function(){zh()?(Wh(e,r,n),navigator.serviceWorker.ready.then(function(s){r("ready",s)}).catch(function(s){return In(r,s)})):($a(e,r,n),navigator.serviceWorker.ready.then(function(s){r("ready",s)}).catch(function(s){return In(r,s)}))})}function In(e,t){navigator.onLine||e("offline"),e("error",t)}function $a(e,t,n){navigator.serviceWorker.register(e,n).then(function(r){if(t("registered",r),r.waiting){t("updated",r);return}r.onupdatefound=function(){t("updatefound",r);var s=r.installing;s.onstatechange=function(){s.state==="installed"&&(navigator.serviceWorker.controller?t("updated",r):t("cached",r))}}}).catch(function(r){return In(t,r)})}function Wh(e,t,n){fetch(e).then(function(r){r.status===404?(t("error",new Error("Service worker not found at "+e)),Eo()):r.headers.get("content-type").indexOf("javascript")===-1?(t("error",new Error("Expected "+e+" to have javascript content-type, but received "+r.headers.get("content-type"))),Eo()):$a(e,t,n)}).catch(function(r){return In(t,r)})}function Eo(){"serviceWorker"in navigator&&navigator.serviceWorker.ready.then(function(e){e.unregister()}).catch(function(e){return In(emit,e)})}Kh("/openWB/web/themes/koala/sw.js",{ready(){},registered(){},cached(){},updatefound(){},updated(){},offline(){},error(){}});const Uh="/openWB/web/themes/koala/";async function Gh({app:e,router:t,store:n},r){let s=!1;const i=a=>{try{return t.resolve(a).href}catch{}return Object(a)===a?null:a},o=a=>{if(s=!0,typeof a=="string"&&/^https?:\/\//.test(a)){window.location.href=a;return}const u=i(a);u!==null&&(window.location.href=u,window.location.reload())},l=window.location.href.replace(window.location.origin,"");for(let a=0;s===!1&&a{const[t,n]=Promise.allSettled!==void 0?["allSettled",r=>r.map(s=>{if(s.status==="rejected"){console.error("[Quasar] boot error:",s.reason);return}return s.value.default})]:["all",r=>r.map(s=>s.default)];return Promise[t]([Gn(()=>import("./store-init-DhHJKTOy.js"),__vite__mapDeps([6,4]))]).then(r=>{const s=n(r).filter(i=>typeof i=="function");Gh(e,s)})});export{$f as $,Dt as A,Us as B,Pr as C,Vc as D,fr as E,ur as F,Ac as G,Pe as H,Su as I,yr as J,mp as K,Es as L,Rf as M,zt as N,yf as O,wf as P,Lh as Q,mh as R,Xe as S,dp as T,_f as U,bf as V,up as W,ju as X,Pp as Y,Zh as Z,_h as _,Q as a,Fc as a0,bp as a1,lp as a2,sp as a3,ql as a4,Re as a5,ep as a6,Er as a7,ip as a8,Ya as a9,cp as aA,rp as aB,tp as aC,op as aD,Qh as aE,xu as aF,Eu as aG,yh as aH,bh as aI,pe as aJ,xs as aK,Yh as aL,Tp as aM,Eh as aN,Rp as aO,Jh as aP,Nh as aQ,Op as aR,kp as aS,Ep as aT,ph as aU,fp as aV,If as aW,Yo as aa,Lu as ab,ne as ac,Hs as ad,wp as ae,Cp as af,Th as ag,Ap as ah,ta as ai,Ot as aj,Xh as ak,ap as al,Sf as am,np as an,yl as ao,gp as ap,Nr as aq,Ss as ar,Ra as as,ei as at,ti as au,rh as av,Zr as aw,Ws as ax,yp as ay,Mn as az,_p as b,qn as c,nh as d,vp as e,xp as f,ze as g,G as h,Ze as i,ol as j,jt as k,hp as l,Ar as m,Ln as n,Or as o,xf as p,Ic as q,Nt as r,Nc as s,hn as t,Vs as u,Sp as v,$t as w,Jn as x,pp as y,It as z}; diff --git a/packages/modules/web_themes/koala/web/assets/mqtt-store-Gw-bQn7d.js b/packages/modules/web_themes/koala/web/assets/mqtt-store-R9RxHZY9.js similarity index 99% rename from packages/modules/web_themes/koala/web/assets/mqtt-store-Gw-bQn7d.js rename to packages/modules/web_themes/koala/web/assets/mqtt-store-R9RxHZY9.js index 80eeb01691..11403bdbe4 100644 --- a/packages/modules/web_themes/koala/web/assets/mqtt-store-Gw-bQn7d.js +++ b/packages/modules/web_themes/koala/web/assets/mqtt-store-R9RxHZY9.js @@ -1,4 +1,4 @@ -var jl=Object.defineProperty;var xo=f=>{throw TypeError(f)};var Ml=(f,h,s)=>h in f?jl(f,h,{enumerable:!0,configurable:!0,writable:!0,value:s}):f[h]=s;var it=(f,h,s)=>Ml(f,typeof h!="symbol"?h+"":h,s),rn=(f,h,s)=>h.has(f)||xo("Cannot "+s);var D=(f,h,s)=>(rn(f,h,"read from private field"),s?s.call(f):h.get(f)),qe=(f,h,s)=>h.has(f)?xo("Cannot add the same private member more than once"):h instanceof WeakSet?h.add(f):h.set(f,s),De=(f,h,s,a)=>(rn(f,h,"write to private field"),a?a.call(f,s):h.set(f,s),s),Ne=(f,h,s)=>(rn(f,h,"access private method"),s);var br=(f,h,s,a)=>({set _(c){De(f,h,c,s)},get _(){return D(f,h,a)}});import{ae as Bl,r as Io,a as Ie}from"./index-C8WjSvcX.js";var ao=Object.defineProperty,Nl=Object.getOwnPropertyDescriptor,Ul=Object.getOwnPropertyNames,Ll=Object.prototype.hasOwnProperty,yt=(f,h)=>()=>(f&&(h=f(f=0)),h),Se=(f,h)=>()=>(h||f((h={exports:{}}).exports,h),h.exports),or=(f,h)=>{for(var s in h)ao(f,s,{get:h[s],enumerable:!0})},Dl=(f,h,s,a)=>{if(h&&typeof h=="object"||typeof h=="function")for(let c of Ul(h))!Ll.call(f,c)&&c!==s&&ao(f,c,{get:()=>h[c],enumerable:!(a=Nl(h,c))||a.enumerable});return f},Ke=f=>Dl(ao({},"__esModule",{value:!0}),f),ge=yt(()=>{}),Ge={};or(Ge,{_debugEnd:()=>Fn,_debugProcess:()=>Dn,_events:()=>ti,_eventsCount:()=>ri,_exiting:()=>xn,_fatalExceptions:()=>Nn,_getActiveHandles:()=>$s,_getActiveRequests:()=>Ws,_kill:()=>Pn,_linkedBinding:()=>Ds,_maxListeners:()=>ei,_preload_modules:()=>Xn,_rawDebug:()=>Sn,_startProfilerIdleNotifier:()=>Wn,_stopProfilerIdleNotifier:()=>$n,_tickCallback:()=>Ln,abort:()=>Kn,addListener:()=>ni,allowedNodeEnvironmentFlags:()=>Mn,arch:()=>ln,argv:()=>hn,argv0:()=>Jn,assert:()=>qs,binding:()=>yn,browser:()=>_n,chdir:()=>vn,config:()=>In,cpuUsage:()=>ur,cwd:()=>bn,debugPort:()=>Yn,default:()=>uo,dlopen:()=>Fs,domain:()=>An,emit:()=>li,emitWarning:()=>gn,env:()=>cn,execArgv:()=>fn,execPath:()=>Qn,exit:()=>Rn,features:()=>Bn,hasUncaughtExceptionCaptureCallback:()=>Vs,hrtime:()=>_r,kill:()=>Cn,listeners:()=>Ks,memoryUsage:()=>Tn,moduleLoadList:()=>En,nextTick:()=>Us,off:()=>oi,on:()=>xt,once:()=>ii,openStdin:()=>jn,pid:()=>Hn,platform:()=>un,ppid:()=>Gn,prependListener:()=>ui,prependOnceListener:()=>ci,reallyExit:()=>On,release:()=>wn,removeAllListeners:()=>ai,removeListener:()=>si,resourceUsage:()=>kn,setSourceMapsEnabled:()=>Zn,setUncaughtExceptionCaptureCallback:()=>Un,stderr:()=>Vn,stdin:()=>zn,stdout:()=>qn,title:()=>an,umask:()=>mn,uptime:()=>zs,version:()=>pn,versions:()=>dn});function lo(f){throw new Error("Node.js process "+f+" is not supported by JSPM core outside of Node.js")}function Fl(){!Jt||!Qt||(Jt=!1,Qt.length?_t=Qt.concat(_t):pr=-1,_t.length&&Ns())}function Ns(){if(!Jt){var f=setTimeout(Fl,0);Jt=!0;for(var h=_t.length;h;){for(Qt=_t,_t=[];++pr1)for(var s=1;s{ge(),me(),ye(),_t=[],Jt=!1,pr=-1,Ls.prototype.run=function(){this.fun.apply(null,this.array)},an="browser",ln="x64",un="browser",cn={PATH:"/usr/bin",LANG:typeof navigator<"u"?navigator.language+".UTF-8":void 0,PWD:"/",HOME:"/home",TMP:"/tmp"},hn=["/usr/bin/node"],fn=[],pn="v16.8.0",dn={},gn=function(f,h){console.warn((h?h+": ":"")+f)},yn=function(f){lo("binding")},mn=function(f){return 0},bn=function(){return"/"},vn=function(f){},wn={name:"node",sourceUrl:"",headersUrl:"",libUrl:""},_n=!0,Sn=ct,En=[],An={},xn=!1,In={},On=ct,Pn=ct,ur=function(){return{}},kn=ur,Tn=ur,Cn=ct,Rn=ct,jn=ct,Mn={},Bn={inspector:!1,debug:!1,uv:!1,ipv6:!1,tls_alpn:!1,tls_sni:!1,tls_ocsp:!1,tls:!1,cached_builtins:!0},Nn=ct,Un=ct,Ln=ct,Dn=ct,Fn=ct,Wn=ct,$n=ct,qn=void 0,Vn=void 0,zn=void 0,Kn=ct,Hn=2,Gn=1,Qn="/bin/usr/node",Yn=9229,Jn="node",Xn=[],Zn=ct,Ot={now:typeof performance<"u"?performance.now.bind(performance):void 0,timing:typeof performance<"u"?performance.timing:void 0},Ot.now===void 0&&(nn=Date.now(),Ot.timing&&Ot.timing.navigationStart&&(nn=Ot.timing.navigationStart),Ot.now=()=>Date.now()-nn),Sr=1e9,_r.bigint=function(f){var h=_r(f);return typeof BigInt>"u"?h[0]*Sr+h[1]:BigInt(h[0]*Sr)+BigInt(h[1])},ei=10,ti={},ri=0,ni=xt,ii=xt,oi=xt,si=xt,ai=xt,li=ct,ui=xt,ci=xt,uo={version:pn,versions:dn,arch:ln,platform:un,browser:_n,release:wn,_rawDebug:Sn,moduleLoadList:En,binding:yn,_linkedBinding:Ds,_events:ti,_eventsCount:ri,_maxListeners:ei,on:xt,addListener:ni,once:ii,off:oi,removeListener:si,removeAllListeners:ai,emit:li,prependListener:ui,prependOnceListener:ci,listeners:Ks,domain:An,_exiting:xn,config:In,dlopen:Fs,uptime:zs,_getActiveRequests:Ws,_getActiveHandles:$s,reallyExit:On,_kill:Pn,cpuUsage:ur,resourceUsage:kn,memoryUsage:Tn,kill:Cn,exit:Rn,openStdin:jn,allowedNodeEnvironmentFlags:Mn,assert:qs,features:Bn,_fatalExceptions:Nn,setUncaughtExceptionCaptureCallback:Un,hasUncaughtExceptionCaptureCallback:Vs,emitWarning:gn,nextTick:Us,_tickCallback:Ln,_debugProcess:Dn,_debugEnd:Fn,_startProfilerIdleNotifier:Wn,_stopProfilerIdleNotifier:$n,stdout:qn,stdin:zn,stderr:Vn,abort:Kn,umask:mn,chdir:vn,cwd:bn,env:cn,title:an,argv:hn,execArgv:fn,pid:Hn,ppid:Gn,execPath:Qn,debugPort:Yn,hrtime:_r,argv0:Jn,_preload_modules:Xn,setSourceMapsEnabled:Zn}}),ye=yt(()=>{Wl()});function $l(){if(hi)return rr;hi=!0,rr.byteLength=t,rr.toByteArray=i,rr.fromByteArray=p;for(var f=[],h=[],s=typeof Uint8Array<"u"?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",c=0,n=a.length;c0)throw new Error("Invalid string. Length must be a multiple of 4");var E=g.indexOf("=");E===-1&&(E=b);var S=E===b?0:4-E%4;return[E,S]}function t(g){var b=r(g),E=b[0],S=b[1];return(E+S)*3/4-S}function e(g,b,E){return(b+E)*3/4-E}function i(g){var b,E=r(g),S=E[0],x=E[1],y=new s(e(g,S,x)),v=0,A=x>0?S-4:S,_;for(_=0;_>16&255,y[v++]=b>>8&255,y[v++]=b&255;return x===2&&(b=h[g.charCodeAt(_)]<<2|h[g.charCodeAt(_+1)]>>4,y[v++]=b&255),x===1&&(b=h[g.charCodeAt(_)]<<10|h[g.charCodeAt(_+1)]<<4|h[g.charCodeAt(_+2)]>>2,y[v++]=b>>8&255,y[v++]=b&255),y}function l(g){return f[g>>18&63]+f[g>>12&63]+f[g>>6&63]+f[g&63]}function d(g,b,E){for(var S,x=[],y=b;yA?A:v+y));return S===1?(b=g[E-1],x.push(f[b>>2]+f[b<<4&63]+"==")):S===2&&(b=(g[E-2]<<8)+g[E-1],x.push(f[b>>10]+f[b>>4&63]+f[b<<2&63]+"=")),x.join("")}return rr}function ql(){return fi?cr:(fi=!0,cr.read=function(f,h,s,a,c){var n,r,t=c*8-a-1,e=(1<>1,l=-7,d=s?c-1:0,p=s?-1:1,g=f[h+d];for(d+=p,n=g&(1<<-l)-1,g>>=-l,l+=t;l>0;n=n*256+f[h+d],d+=p,l-=8);for(r=n&(1<<-l)-1,n>>=-l,l+=a;l>0;r=r*256+f[h+d],d+=p,l-=8);if(n===0)n=1-i;else{if(n===e)return r?NaN:(g?-1:1)*(1/0);r=r+Math.pow(2,a),n=n-i}return(g?-1:1)*r*Math.pow(2,n-a)},cr.write=function(f,h,s,a,c,n){var r,t,e,i=n*8-c-1,l=(1<>1,p=c===23?Math.pow(2,-24)-Math.pow(2,-77):0,g=a?0:n-1,b=a?1:-1,E=h<0||h===0&&1/h<0?1:0;for(h=Math.abs(h),isNaN(h)||h===1/0?(t=isNaN(h)?1:0,r=l):(r=Math.floor(Math.log(h)/Math.LN2),h*(e=Math.pow(2,-r))<1&&(r--,e*=2),r+d>=1?h+=p/e:h+=p*Math.pow(2,1-d),h*e>=2&&(r++,e/=2),r+d>=l?(t=0,r=l):r+d>=1?(t=(h*e-1)*Math.pow(2,c),r=r+d):(t=h*Math.pow(2,d-1)*Math.pow(2,c),r=0));c>=8;f[s+g]=t&255,g+=b,t/=256,c-=8);for(r=r<0;f[s+g]=r&255,g+=b,r/=256,i-=8);f[s+g-b]|=E*128},cr)}function Vl(){if(pi)return Ut;pi=!0;let f=$l(),h=ql(),s=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Ut.Buffer=r,Ut.SlowBuffer=x,Ut.INSPECT_MAX_BYTES=50;let a=2147483647;Ut.kMaxLength=a,r.TYPED_ARRAY_SUPPORT=c(),!r.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function c(){try{let o=new Uint8Array(1),u={foo:function(){return 42}};return Object.setPrototypeOf(u,Uint8Array.prototype),Object.setPrototypeOf(o,u),o.foo()===42}catch{return!1}}Object.defineProperty(r.prototype,"parent",{enumerable:!0,get:function(){if(r.isBuffer(this))return this.buffer}}),Object.defineProperty(r.prototype,"offset",{enumerable:!0,get:function(){if(r.isBuffer(this))return this.byteOffset}});function n(o){if(o>a)throw new RangeError('The value "'+o+'" is invalid for option "size"');let u=new Uint8Array(o);return Object.setPrototypeOf(u,r.prototype),u}function r(o,u,m){if(typeof o=="number"){if(typeof u=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return l(o)}return t(o,u,m)}r.poolSize=8192;function t(o,u,m){if(typeof o=="string")return d(o,u);if(ArrayBuffer.isView(o))return g(o);if(o==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof o);if(Q(o,ArrayBuffer)||o&&Q(o.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Q(o,SharedArrayBuffer)||o&&Q(o.buffer,SharedArrayBuffer)))return b(o,u,m);if(typeof o=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let T=o.valueOf&&o.valueOf();if(T!=null&&T!==o)return r.from(T,u,m);let N=E(o);if(N)return N;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof o[Symbol.toPrimitive]=="function")return r.from(o[Symbol.toPrimitive]("string"),u,m);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof o)}r.from=function(o,u,m){return t(o,u,m)},Object.setPrototypeOf(r.prototype,Uint8Array.prototype),Object.setPrototypeOf(r,Uint8Array);function e(o){if(typeof o!="number")throw new TypeError('"size" argument must be of type number');if(o<0)throw new RangeError('The value "'+o+'" is invalid for option "size"')}function i(o,u,m){return e(o),o<=0?n(o):u!==void 0?typeof m=="string"?n(o).fill(u,m):n(o).fill(u):n(o)}r.alloc=function(o,u,m){return i(o,u,m)};function l(o){return e(o),n(o<0?0:S(o)|0)}r.allocUnsafe=function(o){return l(o)},r.allocUnsafeSlow=function(o){return l(o)};function d(o,u){if((typeof u!="string"||u==="")&&(u="utf8"),!r.isEncoding(u))throw new TypeError("Unknown encoding: "+u);let m=y(o,u)|0,T=n(m),N=T.write(o,u);return N!==m&&(T=T.slice(0,N)),T}function p(o){let u=o.length<0?0:S(o.length)|0,m=n(u);for(let T=0;T=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return o|0}function x(o){return+o!=o&&(o=0),r.alloc(+o)}r.isBuffer=function(o){return o!=null&&o._isBuffer===!0&&o!==r.prototype},r.compare=function(o,u){if(Q(o,Uint8Array)&&(o=r.from(o,o.offset,o.byteLength)),Q(u,Uint8Array)&&(u=r.from(u,u.offset,u.byteLength)),!r.isBuffer(o)||!r.isBuffer(u))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(o===u)return 0;let m=o.length,T=u.length;for(let N=0,K=Math.min(m,T);NT.length?(r.isBuffer(K)||(K=r.from(K)),K.copy(T,N)):Uint8Array.prototype.set.call(T,K,N);else if(r.isBuffer(K))K.copy(T,N);else throw new TypeError('"list" argument must be an Array of Buffers');N+=K.length}return T};function y(o,u){if(r.isBuffer(o))return o.length;if(ArrayBuffer.isView(o)||Q(o,ArrayBuffer))return o.byteLength;if(typeof o!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof o);let m=o.length,T=arguments.length>2&&arguments[2]===!0;if(!T&&m===0)return 0;let N=!1;for(;;)switch(u){case"ascii":case"latin1":case"binary":return m;case"utf8":case"utf-8":return H(o).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return m*2;case"hex":return m>>>1;case"base64":return ve(o).length;default:if(N)return T?-1:H(o).length;u=(""+u).toLowerCase(),N=!0}}r.byteLength=y;function v(o,u,m){let T=!1;if((u===void 0||u<0)&&(u=0),u>this.length||((m===void 0||m>this.length)&&(m=this.length),m<=0)||(m>>>=0,u>>>=0,m<=u))return"";for(o||(o="utf8");;)switch(o){case"hex":return te(this,u,m);case"utf8":case"utf-8":return z(this,u,m);case"ascii":return he(this,u,m);case"latin1":case"binary":return ne(this,u,m);case"base64":return P(this,u,m);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ce(this,u,m);default:if(T)throw new TypeError("Unknown encoding: "+o);o=(o+"").toLowerCase(),T=!0}}r.prototype._isBuffer=!0;function A(o,u,m){let T=o[u];o[u]=o[m],o[m]=T}r.prototype.swap16=function(){let o=this.length;if(o%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let u=0;uu&&(o+=" ... "),""},s&&(r.prototype[s]=r.prototype.inspect),r.prototype.compare=function(o,u,m,T,N){if(Q(o,Uint8Array)&&(o=r.from(o,o.offset,o.byteLength)),!r.isBuffer(o))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof o);if(u===void 0&&(u=0),m===void 0&&(m=o?o.length:0),T===void 0&&(T=0),N===void 0&&(N=this.length),u<0||m>o.length||T<0||N>this.length)throw new RangeError("out of range index");if(T>=N&&u>=m)return 0;if(T>=N)return-1;if(u>=m)return 1;if(u>>>=0,m>>>=0,T>>>=0,N>>>=0,this===o)return 0;let K=N-T,de=m-u,$=Math.min(K,de),ie=this.slice(T,N),Re=o.slice(u,m);for(let ke=0;ke<$;++ke)if(ie[ke]!==Re[ke]){K=ie[ke],de=Re[ke];break}return K2147483647?m=2147483647:m<-2147483648&&(m=-2147483648),m=+m,_e(m)&&(m=N?0:o.length-1),m<0&&(m=o.length+m),m>=o.length){if(N)return-1;m=o.length-1}else if(m<0)if(N)m=0;else return-1;if(typeof u=="string"&&(u=r.from(u,T)),r.isBuffer(u))return u.length===0?-1:C(o,u,m,T,N);if(typeof u=="number")return u=u&255,typeof Uint8Array.prototype.indexOf=="function"?N?Uint8Array.prototype.indexOf.call(o,u,m):Uint8Array.prototype.lastIndexOf.call(o,u,m):C(o,[u],m,T,N);throw new TypeError("val must be string, number or Buffer")}function C(o,u,m,T,N){let K=1,de=o.length,$=u.length;if(T!==void 0&&(T=String(T).toLowerCase(),T==="ucs2"||T==="ucs-2"||T==="utf16le"||T==="utf-16le")){if(o.length<2||u.length<2)return-1;K=2,de/=2,$/=2,m/=2}function ie(ke,Le){return K===1?ke[Le]:ke.readUInt16BE(Le*K)}let Re;if(N){let ke=-1;for(Re=m;Rede&&(m=de-$),Re=m;Re>=0;Re--){let ke=!0;for(let Le=0;Le<$;Le++)if(ie(o,Re+Le)!==ie(u,Le)){ke=!1;break}if(ke)return Re}return-1}r.prototype.includes=function(o,u,m){return this.indexOf(o,u,m)!==-1},r.prototype.indexOf=function(o,u,m){return _(this,o,u,m,!0)},r.prototype.lastIndexOf=function(o,u,m){return _(this,o,u,m,!1)};function w(o,u,m,T){m=Number(m)||0;let N=o.length-m;T?(T=Number(T),T>N&&(T=N)):T=N;let K=u.length;T>K/2&&(T=K/2);let de;for(de=0;de>>0,isFinite(m)?(m=m>>>0,T===void 0&&(T="utf8")):(T=m,m=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let N=this.length-u;if((m===void 0||m>N)&&(m=N),o.length>0&&(m<0||u<0)||u>this.length)throw new RangeError("Attempt to write outside buffer bounds");T||(T="utf8");let K=!1;for(;;)switch(T){case"hex":return w(this,o,u,m);case"utf8":case"utf-8":return I(this,o,u,m);case"ascii":case"latin1":case"binary":return k(this,o,u,m);case"base64":return j(this,o,u,m);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return U(this,o,u,m);default:if(K)throw new TypeError("Unknown encoding: "+T);T=(""+T).toLowerCase(),K=!0}},r.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function P(o,u,m){return u===0&&m===o.length?f.fromByteArray(o):f.fromByteArray(o.slice(u,m))}function z(o,u,m){m=Math.min(o.length,m);let T=[],N=u;for(;N239?4:K>223?3:K>191?2:1;if(N+$<=m){let ie,Re,ke,Le;switch($){case 1:K<128&&(de=K);break;case 2:ie=o[N+1],(ie&192)===128&&(Le=(K&31)<<6|ie&63,Le>127&&(de=Le));break;case 3:ie=o[N+1],Re=o[N+2],(ie&192)===128&&(Re&192)===128&&(Le=(K&15)<<12|(ie&63)<<6|Re&63,Le>2047&&(Le<55296||Le>57343)&&(de=Le));break;case 4:ie=o[N+1],Re=o[N+2],ke=o[N+3],(ie&192)===128&&(Re&192)===128&&(ke&192)===128&&(Le=(K&15)<<18|(ie&63)<<12|(Re&63)<<6|ke&63,Le>65535&&Le<1114112&&(de=Le))}}de===null?(de=65533,$=1):de>65535&&(de-=65536,T.push(de>>>10&1023|55296),de=56320|de&1023),T.push(de),N+=$}return q(T)}let G=4096;function q(o){let u=o.length;if(u<=G)return String.fromCharCode.apply(String,o);let m="",T=0;for(;TT)&&(m=T);let N="";for(let K=u;Km&&(o=m),u<0?(u+=m,u<0&&(u=0)):u>m&&(u=m),um)throw new RangeError("Trying to access beyond buffer length")}r.prototype.readUintLE=r.prototype.readUIntLE=function(o,u,m){o=o>>>0,u=u>>>0,m||V(o,u,this.length);let T=this[o],N=1,K=0;for(;++K>>0,u=u>>>0,m||V(o,u,this.length);let T=this[o+--u],N=1;for(;u>0&&(N*=256);)T+=this[o+--u]*N;return T},r.prototype.readUint8=r.prototype.readUInt8=function(o,u){return o=o>>>0,u||V(o,1,this.length),this[o]},r.prototype.readUint16LE=r.prototype.readUInt16LE=function(o,u){return o=o>>>0,u||V(o,2,this.length),this[o]|this[o+1]<<8},r.prototype.readUint16BE=r.prototype.readUInt16BE=function(o,u){return o=o>>>0,u||V(o,2,this.length),this[o]<<8|this[o+1]},r.prototype.readUint32LE=r.prototype.readUInt32LE=function(o,u){return o=o>>>0,u||V(o,4,this.length),(this[o]|this[o+1]<<8|this[o+2]<<16)+this[o+3]*16777216},r.prototype.readUint32BE=r.prototype.readUInt32BE=function(o,u){return o=o>>>0,u||V(o,4,this.length),this[o]*16777216+(this[o+1]<<16|this[o+2]<<8|this[o+3])},r.prototype.readBigUInt64LE=fe(function(o){o=o>>>0,re(o,"offset");let u=this[o],m=this[o+7];(u===void 0||m===void 0)&&we(o,this.length-8);let T=u+this[++o]*2**8+this[++o]*2**16+this[++o]*2**24,N=this[++o]+this[++o]*2**8+this[++o]*2**16+m*2**24;return BigInt(T)+(BigInt(N)<>>0,re(o,"offset");let u=this[o],m=this[o+7];(u===void 0||m===void 0)&&we(o,this.length-8);let T=u*2**24+this[++o]*2**16+this[++o]*2**8+this[++o],N=this[++o]*2**24+this[++o]*2**16+this[++o]*2**8+m;return(BigInt(T)<>>0,u=u>>>0,m||V(o,u,this.length);let T=this[o],N=1,K=0;for(;++K=N&&(T-=Math.pow(2,8*u)),T},r.prototype.readIntBE=function(o,u,m){o=o>>>0,u=u>>>0,m||V(o,u,this.length);let T=u,N=1,K=this[o+--T];for(;T>0&&(N*=256);)K+=this[o+--T]*N;return N*=128,K>=N&&(K-=Math.pow(2,8*u)),K},r.prototype.readInt8=function(o,u){return o=o>>>0,u||V(o,1,this.length),this[o]&128?(255-this[o]+1)*-1:this[o]},r.prototype.readInt16LE=function(o,u){o=o>>>0,u||V(o,2,this.length);let m=this[o]|this[o+1]<<8;return m&32768?m|4294901760:m},r.prototype.readInt16BE=function(o,u){o=o>>>0,u||V(o,2,this.length);let m=this[o+1]|this[o]<<8;return m&32768?m|4294901760:m},r.prototype.readInt32LE=function(o,u){return o=o>>>0,u||V(o,4,this.length),this[o]|this[o+1]<<8|this[o+2]<<16|this[o+3]<<24},r.prototype.readInt32BE=function(o,u){return o=o>>>0,u||V(o,4,this.length),this[o]<<24|this[o+1]<<16|this[o+2]<<8|this[o+3]},r.prototype.readBigInt64LE=fe(function(o){o=o>>>0,re(o,"offset");let u=this[o],m=this[o+7];(u===void 0||m===void 0)&&we(o,this.length-8);let T=this[o+4]+this[o+5]*2**8+this[o+6]*2**16+(m<<24);return(BigInt(T)<>>0,re(o,"offset");let u=this[o],m=this[o+7];(u===void 0||m===void 0)&&we(o,this.length-8);let T=(u<<24)+this[++o]*2**16+this[++o]*2**8+this[++o];return(BigInt(T)<>>0,u||V(o,4,this.length),h.read(this,o,!0,23,4)},r.prototype.readFloatBE=function(o,u){return o=o>>>0,u||V(o,4,this.length),h.read(this,o,!1,23,4)},r.prototype.readDoubleLE=function(o,u){return o=o>>>0,u||V(o,8,this.length),h.read(this,o,!0,52,8)},r.prototype.readDoubleBE=function(o,u){return o=o>>>0,u||V(o,8,this.length),h.read(this,o,!1,52,8)};function le(o,u,m,T,N,K){if(!r.isBuffer(o))throw new TypeError('"buffer" argument must be a Buffer instance');if(u>N||uo.length)throw new RangeError("Index out of range")}r.prototype.writeUintLE=r.prototype.writeUIntLE=function(o,u,m,T){if(o=+o,u=u>>>0,m=m>>>0,!T){let de=Math.pow(2,8*m)-1;le(this,o,u,m,de,0)}let N=1,K=0;for(this[u]=o&255;++K>>0,m=m>>>0,!T){let de=Math.pow(2,8*m)-1;le(this,o,u,m,de,0)}let N=m-1,K=1;for(this[u+N]=o&255;--N>=0&&(K*=256);)this[u+N]=o/K&255;return u+m},r.prototype.writeUint8=r.prototype.writeUInt8=function(o,u,m){return o=+o,u=u>>>0,m||le(this,o,u,1,255,0),this[u]=o&255,u+1},r.prototype.writeUint16LE=r.prototype.writeUInt16LE=function(o,u,m){return o=+o,u=u>>>0,m||le(this,o,u,2,65535,0),this[u]=o&255,this[u+1]=o>>>8,u+2},r.prototype.writeUint16BE=r.prototype.writeUInt16BE=function(o,u,m){return o=+o,u=u>>>0,m||le(this,o,u,2,65535,0),this[u]=o>>>8,this[u+1]=o&255,u+2},r.prototype.writeUint32LE=r.prototype.writeUInt32LE=function(o,u,m){return o=+o,u=u>>>0,m||le(this,o,u,4,4294967295,0),this[u+3]=o>>>24,this[u+2]=o>>>16,this[u+1]=o>>>8,this[u]=o&255,u+4},r.prototype.writeUint32BE=r.prototype.writeUInt32BE=function(o,u,m){return o=+o,u=u>>>0,m||le(this,o,u,4,4294967295,0),this[u]=o>>>24,this[u+1]=o>>>16,this[u+2]=o>>>8,this[u+3]=o&255,u+4};function M(o,u,m,T,N){J(u,T,N,o,m,7);let K=Number(u&BigInt(4294967295));o[m++]=K,K=K>>8,o[m++]=K,K=K>>8,o[m++]=K,K=K>>8,o[m++]=K;let de=Number(u>>BigInt(32)&BigInt(4294967295));return o[m++]=de,de=de>>8,o[m++]=de,de=de>>8,o[m++]=de,de=de>>8,o[m++]=de,m}function ee(o,u,m,T,N){J(u,T,N,o,m,7);let K=Number(u&BigInt(4294967295));o[m+7]=K,K=K>>8,o[m+6]=K,K=K>>8,o[m+5]=K,K=K>>8,o[m+4]=K;let de=Number(u>>BigInt(32)&BigInt(4294967295));return o[m+3]=de,de=de>>8,o[m+2]=de,de=de>>8,o[m+1]=de,de=de>>8,o[m]=de,m+8}r.prototype.writeBigUInt64LE=fe(function(o,u=0){return M(this,o,u,BigInt(0),BigInt("0xffffffffffffffff"))}),r.prototype.writeBigUInt64BE=fe(function(o,u=0){return ee(this,o,u,BigInt(0),BigInt("0xffffffffffffffff"))}),r.prototype.writeIntLE=function(o,u,m,T){if(o=+o,u=u>>>0,!T){let $=Math.pow(2,8*m-1);le(this,o,u,m,$-1,-$)}let N=0,K=1,de=0;for(this[u]=o&255;++N>0)-de&255;return u+m},r.prototype.writeIntBE=function(o,u,m,T){if(o=+o,u=u>>>0,!T){let $=Math.pow(2,8*m-1);le(this,o,u,m,$-1,-$)}let N=m-1,K=1,de=0;for(this[u+N]=o&255;--N>=0&&(K*=256);)o<0&&de===0&&this[u+N+1]!==0&&(de=1),this[u+N]=(o/K>>0)-de&255;return u+m},r.prototype.writeInt8=function(o,u,m){return o=+o,u=u>>>0,m||le(this,o,u,1,127,-128),o<0&&(o=255+o+1),this[u]=o&255,u+1},r.prototype.writeInt16LE=function(o,u,m){return o=+o,u=u>>>0,m||le(this,o,u,2,32767,-32768),this[u]=o&255,this[u+1]=o>>>8,u+2},r.prototype.writeInt16BE=function(o,u,m){return o=+o,u=u>>>0,m||le(this,o,u,2,32767,-32768),this[u]=o>>>8,this[u+1]=o&255,u+2},r.prototype.writeInt32LE=function(o,u,m){return o=+o,u=u>>>0,m||le(this,o,u,4,2147483647,-2147483648),this[u]=o&255,this[u+1]=o>>>8,this[u+2]=o>>>16,this[u+3]=o>>>24,u+4},r.prototype.writeInt32BE=function(o,u,m){return o=+o,u=u>>>0,m||le(this,o,u,4,2147483647,-2147483648),o<0&&(o=4294967295+o+1),this[u]=o>>>24,this[u+1]=o>>>16,this[u+2]=o>>>8,this[u+3]=o&255,u+4},r.prototype.writeBigInt64LE=fe(function(o,u=0){return M(this,o,u,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),r.prototype.writeBigInt64BE=fe(function(o,u=0){return ee(this,o,u,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Z(o,u,m,T,N,K){if(m+T>o.length)throw new RangeError("Index out of range");if(m<0)throw new RangeError("Index out of range")}function ue(o,u,m,T,N){return u=+u,m=m>>>0,N||Z(o,u,m,4),h.write(o,u,m,T,23,4),m+4}r.prototype.writeFloatLE=function(o,u,m){return ue(this,o,u,!0,m)},r.prototype.writeFloatBE=function(o,u,m){return ue(this,o,u,!1,m)};function Ae(o,u,m,T,N){return u=+u,m=m>>>0,N||Z(o,u,m,8),h.write(o,u,m,T,52,8),m+8}r.prototype.writeDoubleLE=function(o,u,m){return Ae(this,o,u,!0,m)},r.prototype.writeDoubleBE=function(o,u,m){return Ae(this,o,u,!1,m)},r.prototype.copy=function(o,u,m,T){if(!r.isBuffer(o))throw new TypeError("argument should be a Buffer");if(m||(m=0),!T&&T!==0&&(T=this.length),u>=o.length&&(u=o.length),u||(u=0),T>0&&T=this.length)throw new RangeError("Index out of range");if(T<0)throw new RangeError("sourceEnd out of bounds");T>this.length&&(T=this.length),o.length-u>>0,m=m===void 0?this.length:m>>>0,o||(o=0);let N;if(typeof o=="number")for(N=u;N2**32?N=oe(String(m)):typeof m=="bigint"&&(N=String(m),(m>BigInt(2)**BigInt(32)||m<-(BigInt(2)**BigInt(32)))&&(N=oe(N)),N+="n"),T+=` It must be ${u}. Received ${N}`,T},RangeError);function oe(o){let u="",m=o.length,T=o[0]==="-"?1:0;for(;m>=T+4;m-=3)u=`_${o.slice(m-3,m)}${u}`;return`${o.slice(0,m)}${u}`}function X(o,u,m){re(u,"offset"),(o[u]===void 0||o[u+m]===void 0)&&we(u,o.length-(m+1))}function J(o,u,m,T,N,K){if(o>m||o= 0${de} and < 2${de} ** ${(K+1)*8}${de}`:$=`>= -(2${de} ** ${(K+1)*8-1}${de}) and < 2 ** ${(K+1)*8-1}${de}`,new Y.ERR_OUT_OF_RANGE("value",$,o)}X(T,N,K)}function re(o,u){if(typeof o!="number")throw new Y.ERR_INVALID_ARG_TYPE(u,"number",o)}function we(o,u,m){throw Math.floor(o)!==o?(re(o,m),new Y.ERR_OUT_OF_RANGE("offset","an integer",o)):u<0?new Y.ERR_BUFFER_OUT_OF_BOUNDS:new Y.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${u}`,o)}let pe=/[^+/0-9A-Za-z-_]/g;function L(o){if(o=o.split("=")[0],o=o.trim().replace(pe,""),o.length<2)return"";for(;o.length%4!==0;)o=o+"=";return o}function H(o,u){u=u||1/0;let m,T=o.length,N=null,K=[];for(let de=0;de55295&&m<57344){if(!N){if(m>56319){(u-=3)>-1&&K.push(239,191,189);continue}else if(de+1===T){(u-=3)>-1&&K.push(239,191,189);continue}N=m;continue}if(m<56320){(u-=3)>-1&&K.push(239,191,189),N=m;continue}m=(N-55296<<10|m-56320)+65536}else N&&(u-=3)>-1&&K.push(239,191,189);if(N=null,m<128){if((u-=1)<0)break;K.push(m)}else if(m<2048){if((u-=2)<0)break;K.push(m>>6|192,m&63|128)}else if(m<65536){if((u-=3)<0)break;K.push(m>>12|224,m>>6&63|128,m&63|128)}else if(m<1114112){if((u-=4)<0)break;K.push(m>>18|240,m>>12&63|128,m>>6&63|128,m&63|128)}else throw new Error("Invalid code point")}return K}function se(o){let u=[];for(let m=0;m>8,N=m%256,K.push(N),K.push(T);return K}function ve(o){return f.toByteArray(L(o))}function Ee(o,u,m,T){let N;for(N=0;N=u.length||N>=o.length);++N)u[N+m]=o[N];return N}function Q(o,u){return o instanceof u||o!=null&&o.constructor!=null&&o.constructor.name!=null&&o.constructor.name===u.name}function _e(o){return o!==o}let Oe=(function(){let o="0123456789abcdef",u=new Array(256);for(let m=0;m<16;++m){let T=m*16;for(let N=0;N<16;++N)u[T+N]=o[m]+o[N]}return u})();function fe(o){return typeof BigInt>"u"?Be:o}function Be(){throw new Error("BigInt not supported")}return Ut}var rr,hi,cr,fi,Ut,pi,zl=yt(()=>{ge(),me(),ye(),rr={},hi=!1,cr={},fi=!1,Ut={},pi=!1}),ot={};or(ot,{Buffer:()=>Gr,INSPECT_MAX_BYTES:()=>Hs,default:()=>It,kMaxLength:()=>Gs});var It,Gr,Hs,Gs,st=yt(()=>{ge(),me(),ye(),zl(),It=Vl(),It.Buffer,It.SlowBuffer,It.INSPECT_MAX_BYTES,It.kMaxLength,Gr=It.Buffer,Hs=It.INSPECT_MAX_BYTES,Gs=It.kMaxLength}),me=yt(()=>{st()}),Ze=Se((f,h)=>{ge(),me(),ye();var s=class extends Error{constructor(a){if(!Array.isArray(a))throw new TypeError(`Expected input to be an Array, got ${typeof a}`);let c="";for(let n=0;n{throw TypeError(f)};var Ml=(f,h,s)=>h in f?jl(f,h,{enumerable:!0,configurable:!0,writable:!0,value:s}):f[h]=s;var it=(f,h,s)=>Ml(f,typeof h!="symbol"?h+"":h,s),rn=(f,h,s)=>h.has(f)||xo("Cannot "+s);var D=(f,h,s)=>(rn(f,h,"read from private field"),s?s.call(f):h.get(f)),qe=(f,h,s)=>h.has(f)?xo("Cannot add the same private member more than once"):h instanceof WeakSet?h.add(f):h.set(f,s),De=(f,h,s,a)=>(rn(f,h,"write to private field"),a?a.call(f,s):h.set(f,s),s),Ne=(f,h,s)=>(rn(f,h,"access private method"),s);var br=(f,h,s,a)=>({set _(c){De(f,h,c,s)},get _(){return D(f,h,a)}});import{ae as Bl,r as Io,a as Ie}from"./index-DCrt5iVV.js";var ao=Object.defineProperty,Nl=Object.getOwnPropertyDescriptor,Ul=Object.getOwnPropertyNames,Ll=Object.prototype.hasOwnProperty,yt=(f,h)=>()=>(f&&(h=f(f=0)),h),Se=(f,h)=>()=>(h||f((h={exports:{}}).exports,h),h.exports),or=(f,h)=>{for(var s in h)ao(f,s,{get:h[s],enumerable:!0})},Dl=(f,h,s,a)=>{if(h&&typeof h=="object"||typeof h=="function")for(let c of Ul(h))!Ll.call(f,c)&&c!==s&&ao(f,c,{get:()=>h[c],enumerable:!(a=Nl(h,c))||a.enumerable});return f},Ke=f=>Dl(ao({},"__esModule",{value:!0}),f),ge=yt(()=>{}),Ge={};or(Ge,{_debugEnd:()=>Fn,_debugProcess:()=>Dn,_events:()=>ti,_eventsCount:()=>ri,_exiting:()=>xn,_fatalExceptions:()=>Nn,_getActiveHandles:()=>$s,_getActiveRequests:()=>Ws,_kill:()=>Pn,_linkedBinding:()=>Ds,_maxListeners:()=>ei,_preload_modules:()=>Xn,_rawDebug:()=>Sn,_startProfilerIdleNotifier:()=>Wn,_stopProfilerIdleNotifier:()=>$n,_tickCallback:()=>Ln,abort:()=>Kn,addListener:()=>ni,allowedNodeEnvironmentFlags:()=>Mn,arch:()=>ln,argv:()=>hn,argv0:()=>Jn,assert:()=>qs,binding:()=>yn,browser:()=>_n,chdir:()=>vn,config:()=>In,cpuUsage:()=>ur,cwd:()=>bn,debugPort:()=>Yn,default:()=>uo,dlopen:()=>Fs,domain:()=>An,emit:()=>li,emitWarning:()=>gn,env:()=>cn,execArgv:()=>fn,execPath:()=>Qn,exit:()=>Rn,features:()=>Bn,hasUncaughtExceptionCaptureCallback:()=>Vs,hrtime:()=>_r,kill:()=>Cn,listeners:()=>Ks,memoryUsage:()=>Tn,moduleLoadList:()=>En,nextTick:()=>Us,off:()=>oi,on:()=>xt,once:()=>ii,openStdin:()=>jn,pid:()=>Hn,platform:()=>un,ppid:()=>Gn,prependListener:()=>ui,prependOnceListener:()=>ci,reallyExit:()=>On,release:()=>wn,removeAllListeners:()=>ai,removeListener:()=>si,resourceUsage:()=>kn,setSourceMapsEnabled:()=>Zn,setUncaughtExceptionCaptureCallback:()=>Un,stderr:()=>Vn,stdin:()=>zn,stdout:()=>qn,title:()=>an,umask:()=>mn,uptime:()=>zs,version:()=>pn,versions:()=>dn});function lo(f){throw new Error("Node.js process "+f+" is not supported by JSPM core outside of Node.js")}function Fl(){!Jt||!Qt||(Jt=!1,Qt.length?_t=Qt.concat(_t):pr=-1,_t.length&&Ns())}function Ns(){if(!Jt){var f=setTimeout(Fl,0);Jt=!0;for(var h=_t.length;h;){for(Qt=_t,_t=[];++pr1)for(var s=1;s{ge(),me(),ye(),_t=[],Jt=!1,pr=-1,Ls.prototype.run=function(){this.fun.apply(null,this.array)},an="browser",ln="x64",un="browser",cn={PATH:"/usr/bin",LANG:typeof navigator<"u"?navigator.language+".UTF-8":void 0,PWD:"/",HOME:"/home",TMP:"/tmp"},hn=["/usr/bin/node"],fn=[],pn="v16.8.0",dn={},gn=function(f,h){console.warn((h?h+": ":"")+f)},yn=function(f){lo("binding")},mn=function(f){return 0},bn=function(){return"/"},vn=function(f){},wn={name:"node",sourceUrl:"",headersUrl:"",libUrl:""},_n=!0,Sn=ct,En=[],An={},xn=!1,In={},On=ct,Pn=ct,ur=function(){return{}},kn=ur,Tn=ur,Cn=ct,Rn=ct,jn=ct,Mn={},Bn={inspector:!1,debug:!1,uv:!1,ipv6:!1,tls_alpn:!1,tls_sni:!1,tls_ocsp:!1,tls:!1,cached_builtins:!0},Nn=ct,Un=ct,Ln=ct,Dn=ct,Fn=ct,Wn=ct,$n=ct,qn=void 0,Vn=void 0,zn=void 0,Kn=ct,Hn=2,Gn=1,Qn="/bin/usr/node",Yn=9229,Jn="node",Xn=[],Zn=ct,Ot={now:typeof performance<"u"?performance.now.bind(performance):void 0,timing:typeof performance<"u"?performance.timing:void 0},Ot.now===void 0&&(nn=Date.now(),Ot.timing&&Ot.timing.navigationStart&&(nn=Ot.timing.navigationStart),Ot.now=()=>Date.now()-nn),Sr=1e9,_r.bigint=function(f){var h=_r(f);return typeof BigInt>"u"?h[0]*Sr+h[1]:BigInt(h[0]*Sr)+BigInt(h[1])},ei=10,ti={},ri=0,ni=xt,ii=xt,oi=xt,si=xt,ai=xt,li=ct,ui=xt,ci=xt,uo={version:pn,versions:dn,arch:ln,platform:un,browser:_n,release:wn,_rawDebug:Sn,moduleLoadList:En,binding:yn,_linkedBinding:Ds,_events:ti,_eventsCount:ri,_maxListeners:ei,on:xt,addListener:ni,once:ii,off:oi,removeListener:si,removeAllListeners:ai,emit:li,prependListener:ui,prependOnceListener:ci,listeners:Ks,domain:An,_exiting:xn,config:In,dlopen:Fs,uptime:zs,_getActiveRequests:Ws,_getActiveHandles:$s,reallyExit:On,_kill:Pn,cpuUsage:ur,resourceUsage:kn,memoryUsage:Tn,kill:Cn,exit:Rn,openStdin:jn,allowedNodeEnvironmentFlags:Mn,assert:qs,features:Bn,_fatalExceptions:Nn,setUncaughtExceptionCaptureCallback:Un,hasUncaughtExceptionCaptureCallback:Vs,emitWarning:gn,nextTick:Us,_tickCallback:Ln,_debugProcess:Dn,_debugEnd:Fn,_startProfilerIdleNotifier:Wn,_stopProfilerIdleNotifier:$n,stdout:qn,stdin:zn,stderr:Vn,abort:Kn,umask:mn,chdir:vn,cwd:bn,env:cn,title:an,argv:hn,execArgv:fn,pid:Hn,ppid:Gn,execPath:Qn,debugPort:Yn,hrtime:_r,argv0:Jn,_preload_modules:Xn,setSourceMapsEnabled:Zn}}),ye=yt(()=>{Wl()});function $l(){if(hi)return rr;hi=!0,rr.byteLength=t,rr.toByteArray=i,rr.fromByteArray=p;for(var f=[],h=[],s=typeof Uint8Array<"u"?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",c=0,n=a.length;c0)throw new Error("Invalid string. Length must be a multiple of 4");var E=g.indexOf("=");E===-1&&(E=b);var S=E===b?0:4-E%4;return[E,S]}function t(g){var b=r(g),E=b[0],S=b[1];return(E+S)*3/4-S}function e(g,b,E){return(b+E)*3/4-E}function i(g){var b,E=r(g),S=E[0],x=E[1],y=new s(e(g,S,x)),v=0,A=x>0?S-4:S,_;for(_=0;_>16&255,y[v++]=b>>8&255,y[v++]=b&255;return x===2&&(b=h[g.charCodeAt(_)]<<2|h[g.charCodeAt(_+1)]>>4,y[v++]=b&255),x===1&&(b=h[g.charCodeAt(_)]<<10|h[g.charCodeAt(_+1)]<<4|h[g.charCodeAt(_+2)]>>2,y[v++]=b>>8&255,y[v++]=b&255),y}function l(g){return f[g>>18&63]+f[g>>12&63]+f[g>>6&63]+f[g&63]}function d(g,b,E){for(var S,x=[],y=b;yA?A:v+y));return S===1?(b=g[E-1],x.push(f[b>>2]+f[b<<4&63]+"==")):S===2&&(b=(g[E-2]<<8)+g[E-1],x.push(f[b>>10]+f[b>>4&63]+f[b<<2&63]+"=")),x.join("")}return rr}function ql(){return fi?cr:(fi=!0,cr.read=function(f,h,s,a,c){var n,r,t=c*8-a-1,e=(1<>1,l=-7,d=s?c-1:0,p=s?-1:1,g=f[h+d];for(d+=p,n=g&(1<<-l)-1,g>>=-l,l+=t;l>0;n=n*256+f[h+d],d+=p,l-=8);for(r=n&(1<<-l)-1,n>>=-l,l+=a;l>0;r=r*256+f[h+d],d+=p,l-=8);if(n===0)n=1-i;else{if(n===e)return r?NaN:(g?-1:1)*(1/0);r=r+Math.pow(2,a),n=n-i}return(g?-1:1)*r*Math.pow(2,n-a)},cr.write=function(f,h,s,a,c,n){var r,t,e,i=n*8-c-1,l=(1<>1,p=c===23?Math.pow(2,-24)-Math.pow(2,-77):0,g=a?0:n-1,b=a?1:-1,E=h<0||h===0&&1/h<0?1:0;for(h=Math.abs(h),isNaN(h)||h===1/0?(t=isNaN(h)?1:0,r=l):(r=Math.floor(Math.log(h)/Math.LN2),h*(e=Math.pow(2,-r))<1&&(r--,e*=2),r+d>=1?h+=p/e:h+=p*Math.pow(2,1-d),h*e>=2&&(r++,e/=2),r+d>=l?(t=0,r=l):r+d>=1?(t=(h*e-1)*Math.pow(2,c),r=r+d):(t=h*Math.pow(2,d-1)*Math.pow(2,c),r=0));c>=8;f[s+g]=t&255,g+=b,t/=256,c-=8);for(r=r<0;f[s+g]=r&255,g+=b,r/=256,i-=8);f[s+g-b]|=E*128},cr)}function Vl(){if(pi)return Ut;pi=!0;let f=$l(),h=ql(),s=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Ut.Buffer=r,Ut.SlowBuffer=x,Ut.INSPECT_MAX_BYTES=50;let a=2147483647;Ut.kMaxLength=a,r.TYPED_ARRAY_SUPPORT=c(),!r.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function c(){try{let o=new Uint8Array(1),u={foo:function(){return 42}};return Object.setPrototypeOf(u,Uint8Array.prototype),Object.setPrototypeOf(o,u),o.foo()===42}catch{return!1}}Object.defineProperty(r.prototype,"parent",{enumerable:!0,get:function(){if(r.isBuffer(this))return this.buffer}}),Object.defineProperty(r.prototype,"offset",{enumerable:!0,get:function(){if(r.isBuffer(this))return this.byteOffset}});function n(o){if(o>a)throw new RangeError('The value "'+o+'" is invalid for option "size"');let u=new Uint8Array(o);return Object.setPrototypeOf(u,r.prototype),u}function r(o,u,m){if(typeof o=="number"){if(typeof u=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return l(o)}return t(o,u,m)}r.poolSize=8192;function t(o,u,m){if(typeof o=="string")return d(o,u);if(ArrayBuffer.isView(o))return g(o);if(o==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof o);if(Q(o,ArrayBuffer)||o&&Q(o.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Q(o,SharedArrayBuffer)||o&&Q(o.buffer,SharedArrayBuffer)))return b(o,u,m);if(typeof o=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let T=o.valueOf&&o.valueOf();if(T!=null&&T!==o)return r.from(T,u,m);let N=E(o);if(N)return N;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof o[Symbol.toPrimitive]=="function")return r.from(o[Symbol.toPrimitive]("string"),u,m);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof o)}r.from=function(o,u,m){return t(o,u,m)},Object.setPrototypeOf(r.prototype,Uint8Array.prototype),Object.setPrototypeOf(r,Uint8Array);function e(o){if(typeof o!="number")throw new TypeError('"size" argument must be of type number');if(o<0)throw new RangeError('The value "'+o+'" is invalid for option "size"')}function i(o,u,m){return e(o),o<=0?n(o):u!==void 0?typeof m=="string"?n(o).fill(u,m):n(o).fill(u):n(o)}r.alloc=function(o,u,m){return i(o,u,m)};function l(o){return e(o),n(o<0?0:S(o)|0)}r.allocUnsafe=function(o){return l(o)},r.allocUnsafeSlow=function(o){return l(o)};function d(o,u){if((typeof u!="string"||u==="")&&(u="utf8"),!r.isEncoding(u))throw new TypeError("Unknown encoding: "+u);let m=y(o,u)|0,T=n(m),N=T.write(o,u);return N!==m&&(T=T.slice(0,N)),T}function p(o){let u=o.length<0?0:S(o.length)|0,m=n(u);for(let T=0;T=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return o|0}function x(o){return+o!=o&&(o=0),r.alloc(+o)}r.isBuffer=function(o){return o!=null&&o._isBuffer===!0&&o!==r.prototype},r.compare=function(o,u){if(Q(o,Uint8Array)&&(o=r.from(o,o.offset,o.byteLength)),Q(u,Uint8Array)&&(u=r.from(u,u.offset,u.byteLength)),!r.isBuffer(o)||!r.isBuffer(u))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(o===u)return 0;let m=o.length,T=u.length;for(let N=0,K=Math.min(m,T);NT.length?(r.isBuffer(K)||(K=r.from(K)),K.copy(T,N)):Uint8Array.prototype.set.call(T,K,N);else if(r.isBuffer(K))K.copy(T,N);else throw new TypeError('"list" argument must be an Array of Buffers');N+=K.length}return T};function y(o,u){if(r.isBuffer(o))return o.length;if(ArrayBuffer.isView(o)||Q(o,ArrayBuffer))return o.byteLength;if(typeof o!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof o);let m=o.length,T=arguments.length>2&&arguments[2]===!0;if(!T&&m===0)return 0;let N=!1;for(;;)switch(u){case"ascii":case"latin1":case"binary":return m;case"utf8":case"utf-8":return H(o).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return m*2;case"hex":return m>>>1;case"base64":return ve(o).length;default:if(N)return T?-1:H(o).length;u=(""+u).toLowerCase(),N=!0}}r.byteLength=y;function v(o,u,m){let T=!1;if((u===void 0||u<0)&&(u=0),u>this.length||((m===void 0||m>this.length)&&(m=this.length),m<=0)||(m>>>=0,u>>>=0,m<=u))return"";for(o||(o="utf8");;)switch(o){case"hex":return te(this,u,m);case"utf8":case"utf-8":return z(this,u,m);case"ascii":return he(this,u,m);case"latin1":case"binary":return ne(this,u,m);case"base64":return P(this,u,m);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ce(this,u,m);default:if(T)throw new TypeError("Unknown encoding: "+o);o=(o+"").toLowerCase(),T=!0}}r.prototype._isBuffer=!0;function A(o,u,m){let T=o[u];o[u]=o[m],o[m]=T}r.prototype.swap16=function(){let o=this.length;if(o%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let u=0;uu&&(o+=" ... "),""},s&&(r.prototype[s]=r.prototype.inspect),r.prototype.compare=function(o,u,m,T,N){if(Q(o,Uint8Array)&&(o=r.from(o,o.offset,o.byteLength)),!r.isBuffer(o))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof o);if(u===void 0&&(u=0),m===void 0&&(m=o?o.length:0),T===void 0&&(T=0),N===void 0&&(N=this.length),u<0||m>o.length||T<0||N>this.length)throw new RangeError("out of range index");if(T>=N&&u>=m)return 0;if(T>=N)return-1;if(u>=m)return 1;if(u>>>=0,m>>>=0,T>>>=0,N>>>=0,this===o)return 0;let K=N-T,de=m-u,$=Math.min(K,de),ie=this.slice(T,N),Re=o.slice(u,m);for(let ke=0;ke<$;++ke)if(ie[ke]!==Re[ke]){K=ie[ke],de=Re[ke];break}return K2147483647?m=2147483647:m<-2147483648&&(m=-2147483648),m=+m,_e(m)&&(m=N?0:o.length-1),m<0&&(m=o.length+m),m>=o.length){if(N)return-1;m=o.length-1}else if(m<0)if(N)m=0;else return-1;if(typeof u=="string"&&(u=r.from(u,T)),r.isBuffer(u))return u.length===0?-1:C(o,u,m,T,N);if(typeof u=="number")return u=u&255,typeof Uint8Array.prototype.indexOf=="function"?N?Uint8Array.prototype.indexOf.call(o,u,m):Uint8Array.prototype.lastIndexOf.call(o,u,m):C(o,[u],m,T,N);throw new TypeError("val must be string, number or Buffer")}function C(o,u,m,T,N){let K=1,de=o.length,$=u.length;if(T!==void 0&&(T=String(T).toLowerCase(),T==="ucs2"||T==="ucs-2"||T==="utf16le"||T==="utf-16le")){if(o.length<2||u.length<2)return-1;K=2,de/=2,$/=2,m/=2}function ie(ke,Le){return K===1?ke[Le]:ke.readUInt16BE(Le*K)}let Re;if(N){let ke=-1;for(Re=m;Rede&&(m=de-$),Re=m;Re>=0;Re--){let ke=!0;for(let Le=0;Le<$;Le++)if(ie(o,Re+Le)!==ie(u,Le)){ke=!1;break}if(ke)return Re}return-1}r.prototype.includes=function(o,u,m){return this.indexOf(o,u,m)!==-1},r.prototype.indexOf=function(o,u,m){return _(this,o,u,m,!0)},r.prototype.lastIndexOf=function(o,u,m){return _(this,o,u,m,!1)};function w(o,u,m,T){m=Number(m)||0;let N=o.length-m;T?(T=Number(T),T>N&&(T=N)):T=N;let K=u.length;T>K/2&&(T=K/2);let de;for(de=0;de>>0,isFinite(m)?(m=m>>>0,T===void 0&&(T="utf8")):(T=m,m=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let N=this.length-u;if((m===void 0||m>N)&&(m=N),o.length>0&&(m<0||u<0)||u>this.length)throw new RangeError("Attempt to write outside buffer bounds");T||(T="utf8");let K=!1;for(;;)switch(T){case"hex":return w(this,o,u,m);case"utf8":case"utf-8":return I(this,o,u,m);case"ascii":case"latin1":case"binary":return k(this,o,u,m);case"base64":return j(this,o,u,m);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return U(this,o,u,m);default:if(K)throw new TypeError("Unknown encoding: "+T);T=(""+T).toLowerCase(),K=!0}},r.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function P(o,u,m){return u===0&&m===o.length?f.fromByteArray(o):f.fromByteArray(o.slice(u,m))}function z(o,u,m){m=Math.min(o.length,m);let T=[],N=u;for(;N239?4:K>223?3:K>191?2:1;if(N+$<=m){let ie,Re,ke,Le;switch($){case 1:K<128&&(de=K);break;case 2:ie=o[N+1],(ie&192)===128&&(Le=(K&31)<<6|ie&63,Le>127&&(de=Le));break;case 3:ie=o[N+1],Re=o[N+2],(ie&192)===128&&(Re&192)===128&&(Le=(K&15)<<12|(ie&63)<<6|Re&63,Le>2047&&(Le<55296||Le>57343)&&(de=Le));break;case 4:ie=o[N+1],Re=o[N+2],ke=o[N+3],(ie&192)===128&&(Re&192)===128&&(ke&192)===128&&(Le=(K&15)<<18|(ie&63)<<12|(Re&63)<<6|ke&63,Le>65535&&Le<1114112&&(de=Le))}}de===null?(de=65533,$=1):de>65535&&(de-=65536,T.push(de>>>10&1023|55296),de=56320|de&1023),T.push(de),N+=$}return q(T)}let G=4096;function q(o){let u=o.length;if(u<=G)return String.fromCharCode.apply(String,o);let m="",T=0;for(;TT)&&(m=T);let N="";for(let K=u;Km&&(o=m),u<0?(u+=m,u<0&&(u=0)):u>m&&(u=m),um)throw new RangeError("Trying to access beyond buffer length")}r.prototype.readUintLE=r.prototype.readUIntLE=function(o,u,m){o=o>>>0,u=u>>>0,m||V(o,u,this.length);let T=this[o],N=1,K=0;for(;++K>>0,u=u>>>0,m||V(o,u,this.length);let T=this[o+--u],N=1;for(;u>0&&(N*=256);)T+=this[o+--u]*N;return T},r.prototype.readUint8=r.prototype.readUInt8=function(o,u){return o=o>>>0,u||V(o,1,this.length),this[o]},r.prototype.readUint16LE=r.prototype.readUInt16LE=function(o,u){return o=o>>>0,u||V(o,2,this.length),this[o]|this[o+1]<<8},r.prototype.readUint16BE=r.prototype.readUInt16BE=function(o,u){return o=o>>>0,u||V(o,2,this.length),this[o]<<8|this[o+1]},r.prototype.readUint32LE=r.prototype.readUInt32LE=function(o,u){return o=o>>>0,u||V(o,4,this.length),(this[o]|this[o+1]<<8|this[o+2]<<16)+this[o+3]*16777216},r.prototype.readUint32BE=r.prototype.readUInt32BE=function(o,u){return o=o>>>0,u||V(o,4,this.length),this[o]*16777216+(this[o+1]<<16|this[o+2]<<8|this[o+3])},r.prototype.readBigUInt64LE=fe(function(o){o=o>>>0,re(o,"offset");let u=this[o],m=this[o+7];(u===void 0||m===void 0)&&we(o,this.length-8);let T=u+this[++o]*2**8+this[++o]*2**16+this[++o]*2**24,N=this[++o]+this[++o]*2**8+this[++o]*2**16+m*2**24;return BigInt(T)+(BigInt(N)<>>0,re(o,"offset");let u=this[o],m=this[o+7];(u===void 0||m===void 0)&&we(o,this.length-8);let T=u*2**24+this[++o]*2**16+this[++o]*2**8+this[++o],N=this[++o]*2**24+this[++o]*2**16+this[++o]*2**8+m;return(BigInt(T)<>>0,u=u>>>0,m||V(o,u,this.length);let T=this[o],N=1,K=0;for(;++K=N&&(T-=Math.pow(2,8*u)),T},r.prototype.readIntBE=function(o,u,m){o=o>>>0,u=u>>>0,m||V(o,u,this.length);let T=u,N=1,K=this[o+--T];for(;T>0&&(N*=256);)K+=this[o+--T]*N;return N*=128,K>=N&&(K-=Math.pow(2,8*u)),K},r.prototype.readInt8=function(o,u){return o=o>>>0,u||V(o,1,this.length),this[o]&128?(255-this[o]+1)*-1:this[o]},r.prototype.readInt16LE=function(o,u){o=o>>>0,u||V(o,2,this.length);let m=this[o]|this[o+1]<<8;return m&32768?m|4294901760:m},r.prototype.readInt16BE=function(o,u){o=o>>>0,u||V(o,2,this.length);let m=this[o+1]|this[o]<<8;return m&32768?m|4294901760:m},r.prototype.readInt32LE=function(o,u){return o=o>>>0,u||V(o,4,this.length),this[o]|this[o+1]<<8|this[o+2]<<16|this[o+3]<<24},r.prototype.readInt32BE=function(o,u){return o=o>>>0,u||V(o,4,this.length),this[o]<<24|this[o+1]<<16|this[o+2]<<8|this[o+3]},r.prototype.readBigInt64LE=fe(function(o){o=o>>>0,re(o,"offset");let u=this[o],m=this[o+7];(u===void 0||m===void 0)&&we(o,this.length-8);let T=this[o+4]+this[o+5]*2**8+this[o+6]*2**16+(m<<24);return(BigInt(T)<>>0,re(o,"offset");let u=this[o],m=this[o+7];(u===void 0||m===void 0)&&we(o,this.length-8);let T=(u<<24)+this[++o]*2**16+this[++o]*2**8+this[++o];return(BigInt(T)<>>0,u||V(o,4,this.length),h.read(this,o,!0,23,4)},r.prototype.readFloatBE=function(o,u){return o=o>>>0,u||V(o,4,this.length),h.read(this,o,!1,23,4)},r.prototype.readDoubleLE=function(o,u){return o=o>>>0,u||V(o,8,this.length),h.read(this,o,!0,52,8)},r.prototype.readDoubleBE=function(o,u){return o=o>>>0,u||V(o,8,this.length),h.read(this,o,!1,52,8)};function le(o,u,m,T,N,K){if(!r.isBuffer(o))throw new TypeError('"buffer" argument must be a Buffer instance');if(u>N||uo.length)throw new RangeError("Index out of range")}r.prototype.writeUintLE=r.prototype.writeUIntLE=function(o,u,m,T){if(o=+o,u=u>>>0,m=m>>>0,!T){let de=Math.pow(2,8*m)-1;le(this,o,u,m,de,0)}let N=1,K=0;for(this[u]=o&255;++K>>0,m=m>>>0,!T){let de=Math.pow(2,8*m)-1;le(this,o,u,m,de,0)}let N=m-1,K=1;for(this[u+N]=o&255;--N>=0&&(K*=256);)this[u+N]=o/K&255;return u+m},r.prototype.writeUint8=r.prototype.writeUInt8=function(o,u,m){return o=+o,u=u>>>0,m||le(this,o,u,1,255,0),this[u]=o&255,u+1},r.prototype.writeUint16LE=r.prototype.writeUInt16LE=function(o,u,m){return o=+o,u=u>>>0,m||le(this,o,u,2,65535,0),this[u]=o&255,this[u+1]=o>>>8,u+2},r.prototype.writeUint16BE=r.prototype.writeUInt16BE=function(o,u,m){return o=+o,u=u>>>0,m||le(this,o,u,2,65535,0),this[u]=o>>>8,this[u+1]=o&255,u+2},r.prototype.writeUint32LE=r.prototype.writeUInt32LE=function(o,u,m){return o=+o,u=u>>>0,m||le(this,o,u,4,4294967295,0),this[u+3]=o>>>24,this[u+2]=o>>>16,this[u+1]=o>>>8,this[u]=o&255,u+4},r.prototype.writeUint32BE=r.prototype.writeUInt32BE=function(o,u,m){return o=+o,u=u>>>0,m||le(this,o,u,4,4294967295,0),this[u]=o>>>24,this[u+1]=o>>>16,this[u+2]=o>>>8,this[u+3]=o&255,u+4};function M(o,u,m,T,N){J(u,T,N,o,m,7);let K=Number(u&BigInt(4294967295));o[m++]=K,K=K>>8,o[m++]=K,K=K>>8,o[m++]=K,K=K>>8,o[m++]=K;let de=Number(u>>BigInt(32)&BigInt(4294967295));return o[m++]=de,de=de>>8,o[m++]=de,de=de>>8,o[m++]=de,de=de>>8,o[m++]=de,m}function ee(o,u,m,T,N){J(u,T,N,o,m,7);let K=Number(u&BigInt(4294967295));o[m+7]=K,K=K>>8,o[m+6]=K,K=K>>8,o[m+5]=K,K=K>>8,o[m+4]=K;let de=Number(u>>BigInt(32)&BigInt(4294967295));return o[m+3]=de,de=de>>8,o[m+2]=de,de=de>>8,o[m+1]=de,de=de>>8,o[m]=de,m+8}r.prototype.writeBigUInt64LE=fe(function(o,u=0){return M(this,o,u,BigInt(0),BigInt("0xffffffffffffffff"))}),r.prototype.writeBigUInt64BE=fe(function(o,u=0){return ee(this,o,u,BigInt(0),BigInt("0xffffffffffffffff"))}),r.prototype.writeIntLE=function(o,u,m,T){if(o=+o,u=u>>>0,!T){let $=Math.pow(2,8*m-1);le(this,o,u,m,$-1,-$)}let N=0,K=1,de=0;for(this[u]=o&255;++N>0)-de&255;return u+m},r.prototype.writeIntBE=function(o,u,m,T){if(o=+o,u=u>>>0,!T){let $=Math.pow(2,8*m-1);le(this,o,u,m,$-1,-$)}let N=m-1,K=1,de=0;for(this[u+N]=o&255;--N>=0&&(K*=256);)o<0&&de===0&&this[u+N+1]!==0&&(de=1),this[u+N]=(o/K>>0)-de&255;return u+m},r.prototype.writeInt8=function(o,u,m){return o=+o,u=u>>>0,m||le(this,o,u,1,127,-128),o<0&&(o=255+o+1),this[u]=o&255,u+1},r.prototype.writeInt16LE=function(o,u,m){return o=+o,u=u>>>0,m||le(this,o,u,2,32767,-32768),this[u]=o&255,this[u+1]=o>>>8,u+2},r.prototype.writeInt16BE=function(o,u,m){return o=+o,u=u>>>0,m||le(this,o,u,2,32767,-32768),this[u]=o>>>8,this[u+1]=o&255,u+2},r.prototype.writeInt32LE=function(o,u,m){return o=+o,u=u>>>0,m||le(this,o,u,4,2147483647,-2147483648),this[u]=o&255,this[u+1]=o>>>8,this[u+2]=o>>>16,this[u+3]=o>>>24,u+4},r.prototype.writeInt32BE=function(o,u,m){return o=+o,u=u>>>0,m||le(this,o,u,4,2147483647,-2147483648),o<0&&(o=4294967295+o+1),this[u]=o>>>24,this[u+1]=o>>>16,this[u+2]=o>>>8,this[u+3]=o&255,u+4},r.prototype.writeBigInt64LE=fe(function(o,u=0){return M(this,o,u,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),r.prototype.writeBigInt64BE=fe(function(o,u=0){return ee(this,o,u,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Z(o,u,m,T,N,K){if(m+T>o.length)throw new RangeError("Index out of range");if(m<0)throw new RangeError("Index out of range")}function ue(o,u,m,T,N){return u=+u,m=m>>>0,N||Z(o,u,m,4),h.write(o,u,m,T,23,4),m+4}r.prototype.writeFloatLE=function(o,u,m){return ue(this,o,u,!0,m)},r.prototype.writeFloatBE=function(o,u,m){return ue(this,o,u,!1,m)};function Ae(o,u,m,T,N){return u=+u,m=m>>>0,N||Z(o,u,m,8),h.write(o,u,m,T,52,8),m+8}r.prototype.writeDoubleLE=function(o,u,m){return Ae(this,o,u,!0,m)},r.prototype.writeDoubleBE=function(o,u,m){return Ae(this,o,u,!1,m)},r.prototype.copy=function(o,u,m,T){if(!r.isBuffer(o))throw new TypeError("argument should be a Buffer");if(m||(m=0),!T&&T!==0&&(T=this.length),u>=o.length&&(u=o.length),u||(u=0),T>0&&T=this.length)throw new RangeError("Index out of range");if(T<0)throw new RangeError("sourceEnd out of bounds");T>this.length&&(T=this.length),o.length-u>>0,m=m===void 0?this.length:m>>>0,o||(o=0);let N;if(typeof o=="number")for(N=u;N2**32?N=oe(String(m)):typeof m=="bigint"&&(N=String(m),(m>BigInt(2)**BigInt(32)||m<-(BigInt(2)**BigInt(32)))&&(N=oe(N)),N+="n"),T+=` It must be ${u}. Received ${N}`,T},RangeError);function oe(o){let u="",m=o.length,T=o[0]==="-"?1:0;for(;m>=T+4;m-=3)u=`_${o.slice(m-3,m)}${u}`;return`${o.slice(0,m)}${u}`}function X(o,u,m){re(u,"offset"),(o[u]===void 0||o[u+m]===void 0)&&we(u,o.length-(m+1))}function J(o,u,m,T,N,K){if(o>m||o= 0${de} and < 2${de} ** ${(K+1)*8}${de}`:$=`>= -(2${de} ** ${(K+1)*8-1}${de}) and < 2 ** ${(K+1)*8-1}${de}`,new Y.ERR_OUT_OF_RANGE("value",$,o)}X(T,N,K)}function re(o,u){if(typeof o!="number")throw new Y.ERR_INVALID_ARG_TYPE(u,"number",o)}function we(o,u,m){throw Math.floor(o)!==o?(re(o,m),new Y.ERR_OUT_OF_RANGE("offset","an integer",o)):u<0?new Y.ERR_BUFFER_OUT_OF_BOUNDS:new Y.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${u}`,o)}let pe=/[^+/0-9A-Za-z-_]/g;function L(o){if(o=o.split("=")[0],o=o.trim().replace(pe,""),o.length<2)return"";for(;o.length%4!==0;)o=o+"=";return o}function H(o,u){u=u||1/0;let m,T=o.length,N=null,K=[];for(let de=0;de55295&&m<57344){if(!N){if(m>56319){(u-=3)>-1&&K.push(239,191,189);continue}else if(de+1===T){(u-=3)>-1&&K.push(239,191,189);continue}N=m;continue}if(m<56320){(u-=3)>-1&&K.push(239,191,189),N=m;continue}m=(N-55296<<10|m-56320)+65536}else N&&(u-=3)>-1&&K.push(239,191,189);if(N=null,m<128){if((u-=1)<0)break;K.push(m)}else if(m<2048){if((u-=2)<0)break;K.push(m>>6|192,m&63|128)}else if(m<65536){if((u-=3)<0)break;K.push(m>>12|224,m>>6&63|128,m&63|128)}else if(m<1114112){if((u-=4)<0)break;K.push(m>>18|240,m>>12&63|128,m>>6&63|128,m&63|128)}else throw new Error("Invalid code point")}return K}function se(o){let u=[];for(let m=0;m>8,N=m%256,K.push(N),K.push(T);return K}function ve(o){return f.toByteArray(L(o))}function Ee(o,u,m,T){let N;for(N=0;N=u.length||N>=o.length);++N)u[N+m]=o[N];return N}function Q(o,u){return o instanceof u||o!=null&&o.constructor!=null&&o.constructor.name!=null&&o.constructor.name===u.name}function _e(o){return o!==o}let Oe=(function(){let o="0123456789abcdef",u=new Array(256);for(let m=0;m<16;++m){let T=m*16;for(let N=0;N<16;++N)u[T+N]=o[m]+o[N]}return u})();function fe(o){return typeof BigInt>"u"?Be:o}function Be(){throw new Error("BigInt not supported")}return Ut}var rr,hi,cr,fi,Ut,pi,zl=yt(()=>{ge(),me(),ye(),rr={},hi=!1,cr={},fi=!1,Ut={},pi=!1}),ot={};or(ot,{Buffer:()=>Gr,INSPECT_MAX_BYTES:()=>Hs,default:()=>It,kMaxLength:()=>Gs});var It,Gr,Hs,Gs,st=yt(()=>{ge(),me(),ye(),zl(),It=Vl(),It.Buffer,It.SlowBuffer,It.INSPECT_MAX_BYTES,It.kMaxLength,Gr=It.Buffer,Hs=It.INSPECT_MAX_BYTES,Gs=It.kMaxLength}),me=yt(()=>{st()}),Ze=Se((f,h)=>{ge(),me(),ye();var s=class extends Error{constructor(a){if(!Array.isArray(a))throw new TypeError(`Expected input to be an Array, got ${typeof a}`);let c="";for(let n=0;n{ge(),me(),ye(),h.exports={format(s,...a){return s.replace(/%([sdifj])/g,function(...[c,n]){let r=a.shift();return n==="f"?r.toFixed(6):n==="j"?JSON.stringify(r):n==="s"&&typeof r=="object"?`${r.constructor!==Object?r.constructor.name:""} {}`.trim():r.toString()})},inspect(s){switch(typeof s){case"string":if(s.includes("'"))if(s.includes('"')){if(!s.includes("`")&&!s.includes("${"))return`\`${s}\``}else return`"${s}"`;return`'${s}'`;case"number":return isNaN(s)?"NaN":Object.is(s,-0)?String(s):s;case"bigint":return`${String(s)}n`;case"boolean":case"undefined":return String(s);case"object":return"{}"}}}}),pt=Se((f,h)=>{ge(),me(),ye();var{format:s,inspect:a}=Qs(),{AggregateError:c}=Ze(),n=globalThis.AggregateError||c,r=Symbol("kIsNodeError"),t=["string","function","number","object","Function","Object","boolean","bigint","symbol"],e=/^([A-Z][a-z0-9]*)+$/,i="__node_internal_",l={};function d(y,v){if(!y)throw new l.ERR_INTERNAL_ASSERTION(v)}function p(y){let v="",A=y.length,_=y[0]==="-"?1:0;for(;A>=_+4;A-=3)v=`_${y.slice(A-3,A)}${v}`;return`${y.slice(0,A)}${v}`}function g(y,v,A){if(typeof v=="function")return d(v.length<=A.length,`Code: ${y}; The provided arguments length (${A.length}) does not match the required ones (${v.length}).`),v(...A);let _=(v.match(/%[dfijoOs]/g)||[]).length;return d(_===A.length,`Code: ${y}; The provided arguments length (${A.length}) does not match the required ones (${_}).`),A.length===0?v:s(v,...A)}function b(y,v,A){A||(A=Error);class _ extends A{constructor(...w){super(g(y,v,w))}toString(){return`${this.name} [${y}]: ${this.message}`}}Object.defineProperties(_.prototype,{name:{value:A.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${y}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),_.prototype.code=y,_.prototype[r]=!0,l[y]=_}function E(y){let v=i+y.name;return Object.defineProperty(y,"name",{value:v}),y}function S(y,v){if(y&&v&&y!==v){if(Array.isArray(v.errors))return v.errors.push(y),v;let A=new n([v,y],v.message);return A.code=v.code,A}return y||v}var x=class extends Error{constructor(y="The operation was aborted",v=void 0){if(v!==void 0&&typeof v!="object")throw new l.ERR_INVALID_ARG_TYPE("options","Object",v);super(y,v),this.code="ABORT_ERR",this.name="AbortError"}};b("ERR_ASSERTION","%s",Error),b("ERR_INVALID_ARG_TYPE",(y,v,A)=>{d(typeof y=="string","'name' must be a string"),Array.isArray(v)||(v=[v]);let _="The ";y.endsWith(" argument")?_+=`${y} `:_+=`"${y}" ${y.includes(".")?"property":"argument"} `,_+="must be ";let C=[],w=[],I=[];for(let j of v)d(typeof j=="string","All expected entries have to be of type string"),t.includes(j)?C.push(j.toLowerCase()):e.test(j)?w.push(j):(d(j!=="object",'The value "object" should be written as "Object"'),I.push(j));if(w.length>0){let j=C.indexOf("object");j!==-1&&(C.splice(C,j,1),w.push("Object"))}if(C.length>0){switch(C.length){case 1:_+=`of type ${C[0]}`;break;case 2:_+=`one of type ${C[0]} or ${C[1]}`;break;default:{let j=C.pop();_+=`one of type ${C.join(", ")}, or ${j}`}}(w.length>0||I.length>0)&&(_+=" or ")}if(w.length>0){switch(w.length){case 1:_+=`an instance of ${w[0]}`;break;case 2:_+=`an instance of ${w[0]} or ${w[1]}`;break;default:{let j=w.pop();_+=`an instance of ${w.join(", ")}, or ${j}`}}I.length>0&&(_+=" or ")}switch(I.length){case 0:break;case 1:I[0].toLowerCase()!==I[0]&&(_+="an "),_+=`${I[0]}`;break;case 2:_+=`one of ${I[0]} or ${I[1]}`;break;default:{let j=I.pop();_+=`one of ${I.join(", ")}, or ${j}`}}if(A==null)_+=`. Received ${A}`;else if(typeof A=="function"&&A.name)_+=`. Received function ${A.name}`;else if(typeof A=="object"){var k;if((k=A.constructor)!==null&&k!==void 0&&k.name)_+=`. Received an instance of ${A.constructor.name}`;else{let j=a(A,{depth:-1});_+=`. Received ${j}`}}else{let j=a(A,{colors:!1});j.length>25&&(j=`${j.slice(0,25)}...`),_+=`. Received type ${typeof A} (${j})`}return _},TypeError),b("ERR_INVALID_ARG_VALUE",(y,v,A="is invalid")=>{let _=a(v);return _.length>128&&(_=_.slice(0,128)+"..."),`The ${y.includes(".")?"property":"argument"} '${y}' ${A}. Received ${_}`},TypeError),b("ERR_INVALID_RETURN_VALUE",(y,v,A)=>{var _;let C=A!=null&&(_=A.constructor)!==null&&_!==void 0&&_.name?`instance of ${A.constructor.name}`:`type ${typeof A}`;return`Expected ${y} to be returned from the "${v}" function but got ${C}.`},TypeError),b("ERR_MISSING_ARGS",(...y)=>{d(y.length>0,"At least one arg needs to be specified");let v,A=y.length;switch(y=(Array.isArray(y)?y:[y]).map(_=>`"${_}"`).join(" or "),A){case 1:v+=`The ${y[0]} argument`;break;case 2:v+=`The ${y[0]} and ${y[1]} arguments`;break;default:{let _=y.pop();v+=`The ${y.join(", ")}, and ${_} arguments`}break}return`${v} must be specified`},TypeError),b("ERR_OUT_OF_RANGE",(y,v,A)=>{d(v,'Missing "range" argument');let _;if(Number.isInteger(A)&&Math.abs(A)>2**32)_=p(String(A));else if(typeof A=="bigint"){_=String(A);let C=BigInt(2)**BigInt(32);(A>C||A<-C)&&(_=p(_)),_+="n"}else _=a(A);return`The value of "${y}" is out of range. It must be ${v}. Received ${_}`},RangeError),b("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error),b("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error),b("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error),b("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error),b("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error),b("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),b("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error),b("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error),b("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error),b("ERR_STREAM_WRITE_AFTER_END","write after end",Error),b("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError),h.exports={AbortError:x,aggregateTwoErrors:E(S),hideStackFrames:E,codes:l}}),gr=Se((f,h)=>{ge(),me(),ye();var{AbortController:s,AbortSignal:a}=typeof self<"u"?self:typeof window<"u"?window:void 0;h.exports=s,h.exports.AbortSignal=a,h.exports.default=s}),qt={};or(qt,{EventEmitter:()=>Ys,default:()=>nr,defaultMaxListeners:()=>Js,init:()=>Xs,listenerCount:()=>Zs,on:()=>ea,once:()=>ta});function Kl(){if(di)return hr;di=!0;var f=typeof Reflect=="object"?Reflect:null,h=f&&typeof f.apply=="function"?f.apply:function(A,_,C){return Function.prototype.apply.call(A,_,C)},s;f&&typeof f.ownKeys=="function"?s=f.ownKeys:Object.getOwnPropertySymbols?s=function(A){return Object.getOwnPropertyNames(A).concat(Object.getOwnPropertySymbols(A))}:s=function(A){return Object.getOwnPropertyNames(A)};function a(A){console&&console.warn&&console.warn(A)}var c=Number.isNaN||function(A){return A!==A};function n(){n.init.call(this)}hr=n,hr.once=x,n.EventEmitter=n,n.prototype._events=void 0,n.prototype._eventsCount=0,n.prototype._maxListeners=void 0;var r=10;function t(A){if(typeof A!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof A)}Object.defineProperty(n,"defaultMaxListeners",{enumerable:!0,get:function(){return r},set:function(A){if(typeof A!="number"||A<0||c(A))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+A+".");r=A}}),n.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},n.prototype.setMaxListeners=function(A){if(typeof A!="number"||A<0||c(A))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+A+".");return this._maxListeners=A,this};function e(A){return A._maxListeners===void 0?n.defaultMaxListeners:A._maxListeners}n.prototype.getMaxListeners=function(){return e(this)},n.prototype.emit=function(A){for(var _=[],C=1;C0&&(k=_[0]),k instanceof Error)throw k;var j=new Error("Unhandled error."+(k?" ("+k.message+")":""));throw j.context=k,j}var U=I[A];if(U===void 0)return!1;if(typeof U=="function")h(U,this,_);else for(var P=U.length,z=b(U,P),C=0;C0&&j.length>I&&!j.warned){j.warned=!0;var U=new Error("Possible EventEmitter memory leak detected. "+j.length+" "+String(_)+" listeners added. Use emitter.setMaxListeners() to increase limit");U.name="MaxListenersExceededWarning",U.emitter=A,U.type=_,U.count=j.length,a(U)}return A}n.prototype.addListener=function(A,_){return i(this,A,_,!1)},n.prototype.on=n.prototype.addListener,n.prototype.prependListener=function(A,_){return i(this,A,_,!0)};function l(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function d(A,_,C){var w={fired:!1,wrapFn:void 0,target:A,type:_,listener:C},I=l.bind(w);return I.listener=C,w.wrapFn=I,I}n.prototype.once=function(A,_){return t(_),this.on(A,d(this,A,_)),this},n.prototype.prependOnceListener=function(A,_){return t(_),this.prependListener(A,d(this,A,_)),this},n.prototype.removeListener=function(A,_){var C,w,I,k,j;if(t(_),w=this._events,w===void 0)return this;if(C=w[A],C===void 0)return this;if(C===_||C.listener===_)--this._eventsCount===0?this._events=Object.create(null):(delete w[A],w.removeListener&&this.emit("removeListener",A,C.listener||_));else if(typeof C!="function"){for(I=-1,k=C.length-1;k>=0;k--)if(C[k]===_||C[k].listener===_){j=C[k].listener,I=k;break}if(I<0)return this;I===0?C.shift():E(C,I),C.length===1&&(w[A]=C[0]),w.removeListener!==void 0&&this.emit("removeListener",A,j||_)}return this},n.prototype.off=n.prototype.removeListener,n.prototype.removeAllListeners=function(A){var _,C,w;if(C=this._events,C===void 0)return this;if(C.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):C[A]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete C[A]),this;if(arguments.length===0){var I=Object.keys(C),k;for(w=0;w=0;w--)this.removeListener(A,_[w]);return this};function p(A,_,C){var w=A._events;if(w===void 0)return[];var I=w[_];return I===void 0?[]:typeof I=="function"?C?[I.listener||I]:[I]:C?S(I):b(I,I.length)}n.prototype.listeners=function(A){return p(this,A,!0)},n.prototype.rawListeners=function(A){return p(this,A,!1)},n.listenerCount=function(A,_){return typeof A.listenerCount=="function"?A.listenerCount(_):g.call(A,_)},n.prototype.listenerCount=g;function g(A){var _=this._events;if(_!==void 0){var C=_[A];if(typeof C=="function")return 1;if(C!==void 0)return C.length}return 0}n.prototype.eventNames=function(){return this._eventsCount>0?s(this._events):[]};function b(A,_){for(var C=new Array(_),w=0;w<_;++w)C[w]=A[w];return C}function E(A,_){for(;_+1{ge(),me(),ye(),hr={},di=!1,nr=Kl(),nr.once,nr.once=function(f,h){return new Promise((s,a)=>{function c(...r){n!==void 0&&f.removeListener("error",n),s(r)}let n;h!=="error"&&(n=r=>{f.removeListener(name,c),a(r)},f.once("error",n)),f.once(h,c)})},nr.on=function(f,h){let s=[],a=[],c=null,n=!1,r={async next(){let i=s.shift();if(i)return createIterResult(i,!1);if(c){let l=Promise.reject(c);return c=null,l}return n?createIterResult(void 0,!0):new Promise((l,d)=>a.push({resolve:l,reject:d}))},async return(){f.removeListener(h,t),f.removeListener("error",e),n=!0;for(let i of a)i.resolve(createIterResult(void 0,!0));return createIterResult(void 0,!0)},throw(i){c=i,f.removeListener(h,t),f.removeListener("error",e)},[Symbol.asyncIterator](){return this}};return f.on(h,t),f.on("error",e),r;function t(...i){let l=a.shift();l?l.resolve(createIterResult(i,!1)):s.push(i)}function e(i){n=!0;let l=a.shift();l?l.reject(i):c=i,r.return()}},{EventEmitter:Ys,defaultMaxListeners:Js,init:Xs,listenerCount:Zs,on:ea,once:ta}=nr}),gt=Se((f,h)=>{ge(),me(),ye();var s=(st(),Ke(ot)),{format:a,inspect:c}=Qs(),{codes:{ERR_INVALID_ARG_TYPE:n}}=pt(),{kResistStopPropagation:r,AggregateError:t,SymbolDispose:e}=Ze(),i=globalThis.AbortSignal||gr().AbortSignal,l=globalThis.AbortController||gr().AbortController,d=Object.getPrototypeOf(async function(){}).constructor,p=globalThis.Blob||s.Blob,g=typeof p<"u"?function(S){return S instanceof p}:function(S){return!1},b=(S,x)=>{if(S!==void 0&&(S===null||typeof S!="object"||!("aborted"in S)))throw new n(x,"AbortSignal",S)},E=(S,x)=>{if(typeof S!="function")throw new n(x,"Function",S)};h.exports={AggregateError:t,kEmptyObject:Object.freeze({}),once(S){let x=!1;return function(...y){x||(x=!0,S.apply(this,y))}},createDeferredPromise:function(){let S,x;return{promise:new Promise((y,v)=>{S=y,x=v}),resolve:S,reject:x}},promisify(S){return new Promise((x,y)=>{S((v,...A)=>v?y(v):x(...A))})},debuglog(){return function(){}},format:a,inspect:c,types:{isAsyncFunction(S){return S instanceof d},isArrayBufferView(S){return ArrayBuffer.isView(S)}},isBlob:g,deprecate(S,x){return S},addAbortListener:(Zt(),Ke(qt)).addAbortListener||function(S,x){if(S===void 0)throw new n("signal","AbortSignal",S);b(S,"signal"),E(x,"listener");let y;return S.aborted?queueMicrotask(()=>x()):(S.addEventListener("abort",x,{__proto__:null,once:!0,[r]:!0}),y=()=>{S.removeEventListener("abort",x)}),{__proto__:null,[e](){var v;(v=y)===null||v===void 0||v()}}},AbortSignalAny:i.any||function(S){if(S.length===1)return S[0];let x=new l,y=()=>x.abort();return S.forEach(v=>{b(v,"signals"),v.addEventListener("abort",y,{once:!0})}),x.signal.addEventListener("abort",()=>{S.forEach(v=>v.removeEventListener("abort",y))},{once:!0}),x.signal}},h.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")}),yr=Se((f,h)=>{ge(),me(),ye();var{ArrayIsArray:s,ArrayPrototypeIncludes:a,ArrayPrototypeJoin:c,ArrayPrototypeMap:n,NumberIsInteger:r,NumberIsNaN:t,NumberMAX_SAFE_INTEGER:e,NumberMIN_SAFE_INTEGER:i,NumberParseInt:l,ObjectPrototypeHasOwnProperty:d,RegExpPrototypeExec:p,String:g,StringPrototypeToUpperCase:b,StringPrototypeTrim:E}=Ze(),{hideStackFrames:S,codes:{ERR_SOCKET_BAD_PORT:x,ERR_INVALID_ARG_TYPE:y,ERR_INVALID_ARG_VALUE:v,ERR_OUT_OF_RANGE:A,ERR_UNKNOWN_SIGNAL:_}}=pt(),{normalizeEncoding:C}=gt(),{isAsyncFunction:w,isArrayBufferView:I}=gt().types,k={};function j(Q){return Q===(Q|0)}function U(Q){return Q===Q>>>0}var P=/^[0-7]+$/,z="must be a 32-bit unsigned integer or an octal string";function G(Q,_e,Oe){if(typeof Q>"u"&&(Q=Oe),typeof Q=="string"){if(p(P,Q)===null)throw new v(_e,Q,z);Q=l(Q,8)}return ne(Q,_e),Q}var q=S((Q,_e,Oe=i,fe=e)=>{if(typeof Q!="number")throw new y(_e,"number",Q);if(!r(Q))throw new A(_e,"an integer",Q);if(Qfe)throw new A(_e,`>= ${Oe} && <= ${fe}`,Q)}),he=S((Q,_e,Oe=-2147483648,fe=2147483647)=>{if(typeof Q!="number")throw new y(_e,"number",Q);if(!r(Q))throw new A(_e,"an integer",Q);if(Qfe)throw new A(_e,`>= ${Oe} && <= ${fe}`,Q)}),ne=S((Q,_e,Oe=!1)=>{if(typeof Q!="number")throw new y(_e,"number",Q);if(!r(Q))throw new A(_e,"an integer",Q);let fe=Oe?1:0,Be=4294967295;if(QBe)throw new A(_e,`>= ${fe} && <= ${Be}`,Q)});function te(Q,_e){if(typeof Q!="string")throw new y(_e,"string",Q)}function ce(Q,_e,Oe=void 0,fe){if(typeof Q!="number")throw new y(_e,"number",Q);if(Oe!=null&&Qfe||(Oe!=null||fe!=null)&&t(Q))throw new A(_e,`${Oe!=null?`>= ${Oe}`:""}${Oe!=null&&fe!=null?" && ":""}${fe!=null?`<= ${fe}`:""}`,Q)}var V=S((Q,_e,Oe)=>{if(!a(Oe,Q)){let fe="must be one of: "+c(n(Oe,Be=>typeof Be=="string"?`'${Be}'`:g(Be)),", ");throw new v(_e,Q,fe)}});function le(Q,_e){if(typeof Q!="boolean")throw new y(_e,"boolean",Q)}function M(Q,_e,Oe){return Q==null||!d(Q,_e)?Oe:Q[_e]}var ee=S((Q,_e,Oe=null)=>{let fe=M(Oe,"allowArray",!1),Be=M(Oe,"allowFunction",!1);if(!M(Oe,"nullable",!1)&&Q===null||!fe&&s(Q)||typeof Q!="object"&&(!Be||typeof Q!="function"))throw new y(_e,"Object",Q)}),Z=S((Q,_e)=>{if(Q!=null&&typeof Q!="object"&&typeof Q!="function")throw new y(_e,"a dictionary",Q)}),ue=S((Q,_e,Oe=0)=>{if(!s(Q))throw new y(_e,"Array",Q);if(Q.length{if(!I(Q))throw new y(_e,["Buffer","TypedArray","DataView"],Q)});function J(Q,_e){let Oe=C(_e),fe=Q.length;if(Oe==="hex"&&fe%2!==0)throw new v("encoding",_e,`is invalid for data of length ${fe}`)}function re(Q,_e="Port",Oe=!0){if(typeof Q!="number"&&typeof Q!="string"||typeof Q=="string"&&E(Q).length===0||+Q!==+Q>>>0||Q>65535||Q===0&&!Oe)throw new x(_e,Q,Oe);return Q|0}var we=S((Q,_e)=>{if(Q!==void 0&&(Q===null||typeof Q!="object"||!("aborted"in Q)))throw new y(_e,"AbortSignal",Q)}),pe=S((Q,_e)=>{if(typeof Q!="function")throw new y(_e,"Function",Q)}),L=S((Q,_e)=>{if(typeof Q!="function"||w(Q))throw new y(_e,"Function",Q)}),H=S((Q,_e)=>{if(Q!==void 0)throw new y(_e,"undefined",Q)});function se(Q,_e,Oe){if(!a(Oe,Q))throw new y(_e,`('${c(Oe,"|")}')`,Q)}var be=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function ve(Q,_e){if(typeof Q>"u"||!p(be,Q))throw new v(_e,Q,'must be an array or string of format "; rel=preload; as=style"')}function Ee(Q){if(typeof Q=="string")return ve(Q,"hints"),Q;if(s(Q)){let _e=Q.length,Oe="";if(_e===0)return Oe;for(let fe=0;fe<_e;fe++){let Be=Q[fe];ve(Be,"hints"),Oe+=Be,fe!==_e-1&&(Oe+=", ")}return Oe}throw new v("hints",Q,'must be an array or string of format "; rel=preload; as=style"')}h.exports={isInt32:j,isUint32:U,parseFileMode:G,validateArray:ue,validateStringArray:Ae,validateBooleanArray:Y,validateAbortSignalArray:W,validateBoolean:le,validateBuffer:X,validateDictionary:Z,validateEncoding:J,validateFunction:pe,validateInt32:he,validateInteger:q,validateNumber:ce,validateObject:ee,validateOneOf:V,validatePlainFunction:L,validatePort:re,validateSignalName:oe,validateString:te,validateUint32:ne,validateUndefined:H,validateUnion:se,validateAbortSignal:we,validateLinkHeaderValue:Ee}}),er=Se((f,h)=>{ge(),me(),ye();var s=h.exports={},a,c;function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?a=setTimeout:a=n}catch{a=n}try{typeof clearTimeout=="function"?c=clearTimeout:c=r}catch{c=r}})();function t(x){if(a===setTimeout)return setTimeout(x,0);if((a===n||!a)&&setTimeout)return a=setTimeout,setTimeout(x,0);try{return a(x,0)}catch{try{return a.call(null,x,0)}catch{return a.call(this,x,0)}}}function e(x){if(c===clearTimeout)return clearTimeout(x);if((c===r||!c)&&clearTimeout)return c=clearTimeout,clearTimeout(x);try{return c(x)}catch{try{return c.call(null,x)}catch{return c.call(this,x)}}}var i=[],l=!1,d,p=-1;function g(){!l||!d||(l=!1,d.length?i=d.concat(i):p=-1,i.length&&b())}function b(){if(!l){var x=t(g);l=!0;for(var y=i.length;y;){for(d=i,i=[];++p1)for(var v=1;v{ge(),me(),ye();var{SymbolAsyncIterator:s,SymbolIterator:a,SymbolFor:c}=Ze(),n=c("nodejs.stream.destroyed"),r=c("nodejs.stream.errored"),t=c("nodejs.stream.readable"),e=c("nodejs.stream.writable"),i=c("nodejs.stream.disturbed"),l=c("nodejs.webstream.isClosedPromise"),d=c("nodejs.webstream.controllerErrorFunction");function p(M,ee=!1){var Z;return!!(M&&typeof M.pipe=="function"&&typeof M.on=="function"&&(!ee||typeof M.pause=="function"&&typeof M.resume=="function")&&(!M._writableState||((Z=M._readableState)===null||Z===void 0?void 0:Z.readable)!==!1)&&(!M._writableState||M._readableState))}function g(M){var ee;return!!(M&&typeof M.write=="function"&&typeof M.on=="function"&&(!M._readableState||((ee=M._writableState)===null||ee===void 0?void 0:ee.writable)!==!1))}function b(M){return!!(M&&typeof M.pipe=="function"&&M._readableState&&typeof M.on=="function"&&typeof M.write=="function")}function E(M){return M&&(M._readableState||M._writableState||typeof M.write=="function"&&typeof M.on=="function"||typeof M.pipe=="function"&&typeof M.on=="function")}function S(M){return!!(M&&!E(M)&&typeof M.pipeThrough=="function"&&typeof M.getReader=="function"&&typeof M.cancel=="function")}function x(M){return!!(M&&!E(M)&&typeof M.getWriter=="function"&&typeof M.abort=="function")}function y(M){return!!(M&&!E(M)&&typeof M.readable=="object"&&typeof M.writable=="object")}function v(M){return S(M)||x(M)||y(M)}function A(M,ee){return M==null?!1:ee===!0?typeof M[s]=="function":ee===!1?typeof M[a]=="function":typeof M[s]=="function"||typeof M[a]=="function"}function _(M){if(!E(M))return null;let ee=M._writableState,Z=M._readableState,ue=ee||Z;return!!(M.destroyed||M[n]||ue!=null&&ue.destroyed)}function C(M){if(!g(M))return null;if(M.writableEnded===!0)return!0;let ee=M._writableState;return ee!=null&&ee.errored?!1:typeof ee?.ended!="boolean"?null:ee.ended}function w(M,ee){if(!g(M))return null;if(M.writableFinished===!0)return!0;let Z=M._writableState;return Z!=null&&Z.errored?!1:typeof Z?.finished!="boolean"?null:!!(Z.finished||ee===!1&&Z.ended===!0&&Z.length===0)}function I(M){if(!p(M))return null;if(M.readableEnded===!0)return!0;let ee=M._readableState;return!ee||ee.errored?!1:typeof ee?.ended!="boolean"?null:ee.ended}function k(M,ee){if(!p(M))return null;let Z=M._readableState;return Z!=null&&Z.errored?!1:typeof Z?.endEmitted!="boolean"?null:!!(Z.endEmitted||ee===!1&&Z.ended===!0&&Z.length===0)}function j(M){return M&&M[t]!=null?M[t]:typeof M?.readable!="boolean"?null:_(M)?!1:p(M)&&M.readable&&!k(M)}function U(M){return M&&M[e]!=null?M[e]:typeof M?.writable!="boolean"?null:_(M)?!1:g(M)&&M.writable&&!C(M)}function P(M,ee){return E(M)?_(M)?!0:!(ee?.readable!==!1&&j(M)||ee?.writable!==!1&&U(M)):null}function z(M){var ee,Z;return E(M)?M.writableErrored?M.writableErrored:(ee=(Z=M._writableState)===null||Z===void 0?void 0:Z.errored)!==null&&ee!==void 0?ee:null:null}function G(M){var ee,Z;return E(M)?M.readableErrored?M.readableErrored:(ee=(Z=M._readableState)===null||Z===void 0?void 0:Z.errored)!==null&&ee!==void 0?ee:null:null}function q(M){if(!E(M))return null;if(typeof M.closed=="boolean")return M.closed;let ee=M._writableState,Z=M._readableState;return typeof ee?.closed=="boolean"||typeof Z?.closed=="boolean"?ee?.closed||Z?.closed:typeof M._closed=="boolean"&&he(M)?M._closed:null}function he(M){return typeof M._closed=="boolean"&&typeof M._defaultKeepAlive=="boolean"&&typeof M._removedConnection=="boolean"&&typeof M._removedContLen=="boolean"}function ne(M){return typeof M._sent100=="boolean"&&he(M)}function te(M){var ee;return typeof M._consuming=="boolean"&&typeof M._dumped=="boolean"&&((ee=M.req)===null||ee===void 0?void 0:ee.upgradeOrConnect)===void 0}function ce(M){if(!E(M))return null;let ee=M._writableState,Z=M._readableState,ue=ee||Z;return!ue&&ne(M)||!!(ue&&ue.autoDestroy&&ue.emitClose&&ue.closed===!1)}function V(M){var ee;return!!(M&&((ee=M[i])!==null&&ee!==void 0?ee:M.readableDidRead||M.readableAborted))}function le(M){var ee,Z,ue,Ae,Y,W,oe,X,J,re;return!!(M&&((ee=(Z=(ue=(Ae=(Y=(W=M[r])!==null&&W!==void 0?W:M.readableErrored)!==null&&Y!==void 0?Y:M.writableErrored)!==null&&Ae!==void 0?Ae:(oe=M._readableState)===null||oe===void 0?void 0:oe.errorEmitted)!==null&&ue!==void 0?ue:(X=M._writableState)===null||X===void 0?void 0:X.errorEmitted)!==null&&Z!==void 0?Z:(J=M._readableState)===null||J===void 0?void 0:J.errored)!==null&&ee!==void 0?ee:!((re=M._writableState)===null||re===void 0)&&re.errored))}h.exports={isDestroyed:_,kIsDestroyed:n,isDisturbed:V,kIsDisturbed:i,isErrored:le,kIsErrored:r,isReadable:j,kIsReadable:t,kIsClosedPromise:l,kControllerErrorFunction:d,kIsWritable:e,isClosed:q,isDuplexNodeStream:b,isFinished:P,isIterable:A,isReadableNodeStream:p,isReadableStream:S,isReadableEnded:I,isReadableFinished:k,isReadableErrored:G,isNodeStream:E,isWebStream:v,isWritable:U,isWritableNodeStream:g,isWritableStream:x,isWritableEnded:C,isWritableFinished:w,isWritableErrored:z,isServerRequest:te,isServerResponse:ne,willEmitClose:ce,isTransformStream:y}}),Vt=Se((f,h)=>{ge(),me(),ye();var s=er(),{AbortError:a,codes:c}=pt(),{ERR_INVALID_ARG_TYPE:n,ERR_STREAM_PREMATURE_CLOSE:r}=c,{kEmptyObject:t,once:e}=gt(),{validateAbortSignal:i,validateFunction:l,validateObject:d,validateBoolean:p}=yr(),{Promise:g,PromisePrototypeThen:b,SymbolDispose:E}=Ze(),{isClosed:S,isReadable:x,isReadableNodeStream:y,isReadableStream:v,isReadableFinished:A,isReadableErrored:_,isWritable:C,isWritableNodeStream:w,isWritableStream:I,isWritableFinished:k,isWritableErrored:j,isNodeStream:U,willEmitClose:P,kIsClosedPromise:z}=Ct(),G;function q(V){return V.setHeader&&typeof V.abort=="function"}var he=()=>{};function ne(V,le,M){var ee,Z;if(arguments.length===2?(M=le,le=t):le==null?le=t:d(le,"options"),l(M,"callback"),i(le.signal,"options.signal"),M=e(M),v(V)||I(V))return te(V,le,M);if(!U(V))throw new n("stream",["ReadableStream","WritableStream","Stream"],V);let ue=(ee=le.readable)!==null&&ee!==void 0?ee:y(V),Ae=(Z=le.writable)!==null&&Z!==void 0?Z:w(V),Y=V._writableState,W=V._readableState,oe=()=>{V.writable||re()},X=P(V)&&y(V)===ue&&w(V)===Ae,J=k(V,!1),re=()=>{J=!0,V.destroyed&&(X=!1),!(X&&(!V.readable||ue))&&(!ue||we)&&M.call(V)},we=A(V,!1),pe=()=>{we=!0,V.destroyed&&(X=!1),!(X&&(!V.writable||Ae))&&(!Ae||J)&&M.call(V)},L=Q=>{M.call(V,Q)},H=S(V),se=()=>{H=!0;let Q=j(V)||_(V);if(Q&&typeof Q!="boolean")return M.call(V,Q);if(ue&&!we&&y(V,!0)&&!A(V,!1))return M.call(V,new r);if(Ae&&!J&&!k(V,!1))return M.call(V,new r);M.call(V)},be=()=>{H=!0;let Q=j(V)||_(V);if(Q&&typeof Q!="boolean")return M.call(V,Q);M.call(V)},ve=()=>{V.req.on("finish",re)};q(V)?(V.on("complete",re),X||V.on("abort",se),V.req?ve():V.on("request",ve)):Ae&&!Y&&(V.on("end",oe),V.on("close",oe)),!X&&typeof V.aborted=="boolean"&&V.on("aborted",se),V.on("end",pe),V.on("finish",re),le.error!==!1&&V.on("error",L),V.on("close",se),H?s.nextTick(se):Y!=null&&Y.errorEmitted||W!=null&&W.errorEmitted?X||s.nextTick(be):(!ue&&(!X||x(V))&&(J||C(V)===!1)||!Ae&&(!X||C(V))&&(we||x(V)===!1)||W&&V.req&&V.aborted)&&s.nextTick(be);let Ee=()=>{M=he,V.removeListener("aborted",se),V.removeListener("complete",re),V.removeListener("abort",se),V.removeListener("request",ve),V.req&&V.req.removeListener("finish",re),V.removeListener("end",oe),V.removeListener("close",oe),V.removeListener("finish",re),V.removeListener("end",pe),V.removeListener("error",L),V.removeListener("close",se)};if(le.signal&&!H){let Q=()=>{let _e=M;Ee(),_e.call(V,new a(void 0,{cause:le.signal.reason}))};if(le.signal.aborted)s.nextTick(Q);else{G=G||gt().addAbortListener;let _e=G(le.signal,Q),Oe=M;M=e((...fe)=>{_e[E](),Oe.apply(V,fe)})}}return Ee}function te(V,le,M){let ee=!1,Z=he;if(le.signal)if(Z=()=>{ee=!0,M.call(V,new a(void 0,{cause:le.signal.reason}))},le.signal.aborted)s.nextTick(Z);else{G=G||gt().addAbortListener;let Ae=G(le.signal,Z),Y=M;M=e((...W)=>{Ae[E](),Y.apply(V,W)})}let ue=(...Ae)=>{ee||s.nextTick(()=>M.apply(V,Ae))};return b(V[z].promise,ue,ue),he}function ce(V,le){var M;let ee=!1;return le===null&&(le=t),(M=le)!==null&&M!==void 0&&M.cleanup&&(p(le.cleanup,"cleanup"),ee=le.cleanup),new g((Z,ue)=>{let Ae=ne(V,le,Y=>{ee&&Ae(),Y?ue(Y):Z()})})}h.exports=ne,h.exports.finished=ce}),sr=Se((f,h)=>{ge(),me(),ye();var s=er(),{aggregateTwoErrors:a,codes:{ERR_MULTIPLE_CALLBACK:c},AbortError:n}=pt(),{Symbol:r}=Ze(),{kIsDestroyed:t,isDestroyed:e,isFinished:i,isServerRequest:l}=Ct(),d=r("kDestroy"),p=r("kConstruct");function g(P,z,G){P&&(P.stack,z&&!z.errored&&(z.errored=P),G&&!G.errored&&(G.errored=P))}function b(P,z){let G=this._readableState,q=this._writableState,he=q||G;return q!=null&&q.destroyed||G!=null&&G.destroyed?(typeof z=="function"&&z(),this):(g(P,q,G),q&&(q.destroyed=!0),G&&(G.destroyed=!0),he.constructed?E(this,P,z):this.once(d,function(ne){E(this,a(ne,P),z)}),this)}function E(P,z,G){let q=!1;function he(ne){if(q)return;q=!0;let te=P._readableState,ce=P._writableState;g(ne,ce,te),ce&&(ce.closed=!0),te&&(te.closed=!0),typeof G=="function"&&G(ne),ne?s.nextTick(S,P,ne):s.nextTick(x,P)}try{P._destroy(z||null,he)}catch(ne){he(ne)}}function S(P,z){y(P,z),x(P)}function x(P){let z=P._readableState,G=P._writableState;G&&(G.closeEmitted=!0),z&&(z.closeEmitted=!0),(G!=null&&G.emitClose||z!=null&&z.emitClose)&&P.emit("close")}function y(P,z){let G=P._readableState,q=P._writableState;q!=null&&q.errorEmitted||G!=null&&G.errorEmitted||(q&&(q.errorEmitted=!0),G&&(G.errorEmitted=!0),P.emit("error",z))}function v(){let P=this._readableState,z=this._writableState;P&&(P.constructed=!0,P.closed=!1,P.closeEmitted=!1,P.destroyed=!1,P.errored=null,P.errorEmitted=!1,P.reading=!1,P.ended=P.readable===!1,P.endEmitted=P.readable===!1),z&&(z.constructed=!0,z.destroyed=!1,z.closed=!1,z.closeEmitted=!1,z.errored=null,z.errorEmitted=!1,z.finalCalled=!1,z.prefinished=!1,z.ended=z.writable===!1,z.ending=z.writable===!1,z.finished=z.writable===!1)}function A(P,z,G){let q=P._readableState,he=P._writableState;if(he!=null&&he.destroyed||q!=null&&q.destroyed)return this;q!=null&&q.autoDestroy||he!=null&&he.autoDestroy?P.destroy(z):z&&(z.stack,he&&!he.errored&&(he.errored=z),q&&!q.errored&&(q.errored=z),G?s.nextTick(y,P,z):y(P,z))}function _(P,z){if(typeof P._construct!="function")return;let G=P._readableState,q=P._writableState;G&&(G.constructed=!1),q&&(q.constructed=!1),P.once(p,z),!(P.listenerCount(p)>1)&&s.nextTick(C,P)}function C(P){let z=!1;function G(q){if(z){A(P,q??new c);return}z=!0;let he=P._readableState,ne=P._writableState,te=ne||he;he&&(he.constructed=!0),ne&&(ne.constructed=!0),te.destroyed?P.emit(d,q):q?A(P,q,!0):s.nextTick(w,P)}try{P._construct(q=>{s.nextTick(G,q)})}catch(q){s.nextTick(G,q)}}function w(P){P.emit(p)}function I(P){return P?.setHeader&&typeof P.abort=="function"}function k(P){P.emit("close")}function j(P,z){P.emit("error",z),s.nextTick(k,P)}function U(P,z){!P||e(P)||(!z&&!i(P)&&(z=new n),l(P)?(P.socket=null,P.destroy(z)):I(P)?P.abort():I(P.req)?P.req.abort():typeof P.destroy=="function"?P.destroy(z):typeof P.close=="function"?P.close():z?s.nextTick(j,P,z):s.nextTick(k,P),P.destroyed||(P[t]=!0))}h.exports={construct:_,destroyer:U,destroy:b,undestroy:v,errorOrDestroy:A}}),co=Se((f,h)=>{ge(),me(),ye();var{ArrayIsArray:s,ObjectSetPrototypeOf:a}=Ze(),{EventEmitter:c}=(Zt(),Ke(qt));function n(t){c.call(this,t)}a(n.prototype,c.prototype),a(n,c),n.prototype.pipe=function(t,e){let i=this;function l(x){t.writable&&t.write(x)===!1&&i.pause&&i.pause()}i.on("data",l);function d(){i.readable&&i.resume&&i.resume()}t.on("drain",d),!t._isStdio&&(!e||e.end!==!1)&&(i.on("end",g),i.on("close",b));let p=!1;function g(){p||(p=!0,t.end())}function b(){p||(p=!0,typeof t.destroy=="function"&&t.destroy())}function E(x){S(),c.listenerCount(this,"error")===0&&this.emit("error",x)}r(i,"error",E),r(t,"error",E);function S(){i.removeListener("data",l),t.removeListener("drain",d),i.removeListener("end",g),i.removeListener("close",b),i.removeListener("error",E),t.removeListener("error",E),i.removeListener("end",S),i.removeListener("close",S),t.removeListener("close",S)}return i.on("end",S),i.on("close",S),t.on("close",S),t.emit("pipe",i),t};function r(t,e,i){if(typeof t.prependListener=="function")return t.prependListener(e,i);!t._events||!t._events[e]?t.on(e,i):s(t._events[e])?t._events[e].unshift(i):t._events[e]=[i,t._events[e]]}h.exports={Stream:n,prependListener:r}}),Yr=Se((f,h)=>{ge(),me(),ye();var{SymbolDispose:s}=Ze(),{AbortError:a,codes:c}=pt(),{isNodeStream:n,isWebStream:r,kControllerErrorFunction:t}=Ct(),e=Vt(),{ERR_INVALID_ARG_TYPE:i}=c,l,d=(p,g)=>{if(typeof p!="object"||!("aborted"in p))throw new i(g,"AbortSignal",p)};h.exports.addAbortSignal=function(p,g){if(d(p,"signal"),!n(g)&&!r(g))throw new i("stream",["ReadableStream","WritableStream","Stream"],g);return h.exports.addAbortSignalNoValidate(p,g)},h.exports.addAbortSignalNoValidate=function(p,g){if(typeof p!="object"||!("aborted"in p))return g;let b=n(g)?()=>{g.destroy(new a(void 0,{cause:p.reason}))}:()=>{g[t](new a(void 0,{cause:p.reason}))};if(p.aborted)b();else{l=l||gt().addAbortListener;let E=l(p,b);e(g,E[s])}return g}}),Hl=Se((f,h)=>{ge(),me(),ye();var{StringPrototypeSlice:s,SymbolIterator:a,TypedArrayPrototypeSet:c,Uint8Array:n}=Ze(),{Buffer:r}=(st(),Ke(ot)),{inspect:t}=gt();h.exports=class{constructor(){this.head=null,this.tail=null,this.length=0}push(e){let i={data:e,next:null};this.length>0?this.tail.next=i:this.head=i,this.tail=i,++this.length}unshift(e){let i={data:e,next:this.head};this.length===0&&(this.tail=i),this.head=i,++this.length}shift(){if(this.length===0)return;let e=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,e}clear(){this.head=this.tail=null,this.length=0}join(e){if(this.length===0)return"";let i=this.head,l=""+i.data;for(;(i=i.next)!==null;)l+=e+i.data;return l}concat(e){if(this.length===0)return r.alloc(0);let i=r.allocUnsafe(e>>>0),l=this.head,d=0;for(;l;)c(i,l.data,d),d+=l.data.length,l=l.next;return i}consume(e,i){let l=this.head.data;if(ep.length)i+=p,e-=p.length;else{e===p.length?(i+=p,++d,l.next?this.head=l.next:this.head=this.tail=null):(i+=s(p,0,e),this.head=l,l.data=s(p,e));break}++d}while((l=l.next)!==null);return this.length-=d,i}_getBuffer(e){let i=r.allocUnsafe(e),l=e,d=this.head,p=0;do{let g=d.data;if(e>g.length)c(i,g,l-e),e-=g.length;else{e===g.length?(c(i,g,l-e),++p,d.next?this.head=d.next:this.head=this.tail=null):(c(i,new n(g.buffer,g.byteOffset,e),l-e),this.head=d,d.data=g.slice(e));break}++p}while((d=d.next)!==null);return this.length-=p,i}[Symbol.for("nodejs.util.inspect.custom")](e,i){return t(this,{...i,depth:0,customInspect:!1})}}}),Jr=Se((f,h)=>{ge(),me(),ye();var{MathFloor:s,NumberIsInteger:a}=Ze(),{validateInteger:c}=yr(),{ERR_INVALID_ARG_VALUE:n}=pt().codes,r=16*1024,t=16;function e(p,g,b){return p.highWaterMark!=null?p.highWaterMark:g?p[b]:null}function i(p){return p?t:r}function l(p,g){c(g,"value",0),p?t=g:r=g}function d(p,g,b,E){let S=e(g,E,b);if(S!=null){if(!a(S)||S<0){let x=E?`options.${b}`:"options.highWaterMark";throw new n(x,S)}return s(S)}return i(p.objectMode)}h.exports={getHighWaterMark:d,getDefaultHighWaterMark:i,setDefaultHighWaterMark:l}}),Gl=Se((f,h)=>{ge(),me(),ye();var s=(st(),Ke(ot)),a=s.Buffer;function c(r,t){for(var e in r)t[e]=r[e]}a.from&&a.alloc&&a.allocUnsafe&&a.allocUnsafeSlow?h.exports=s:(c(s,f),f.Buffer=n);function n(r,t,e){return a(r,t,e)}n.prototype=Object.create(a.prototype),c(a,n),n.from=function(r,t,e){if(typeof r=="number")throw new TypeError("Argument must not be a number");return a(r,t,e)},n.alloc=function(r,t,e){if(typeof r!="number")throw new TypeError("Argument must be a number");var i=a(r);return t!==void 0?typeof e=="string"?i.fill(t,e):i.fill(t):i.fill(0),i},n.allocUnsafe=function(r){if(typeof r!="number")throw new TypeError("Argument must be a number");return a(r)},n.allocUnsafeSlow=function(r){if(typeof r!="number")throw new TypeError("Argument must be a number");return s.SlowBuffer(r)}}),Ql=Se(f=>{ge(),me(),ye();var h=Gl().Buffer,s=h.isEncoding||function(y){switch(y=""+y,y&&y.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function a(y){if(!y)return"utf8";for(var v;;)switch(y){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return y;default:if(v)return;y=(""+y).toLowerCase(),v=!0}}function c(y){var v=a(y);if(typeof v!="string"&&(h.isEncoding===s||!s(y)))throw new Error("Unknown encoding: "+y);return v||y}f.StringDecoder=n;function n(y){this.encoding=c(y);var v;switch(this.encoding){case"utf16le":this.text=p,this.end=g,v=4;break;case"utf8":this.fillLast=i,v=4;break;case"base64":this.text=b,this.end=E,v=3;break;default:this.write=S,this.end=x;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=h.allocUnsafe(v)}n.prototype.write=function(y){if(y.length===0)return"";var v,A;if(this.lastNeed){if(v=this.fillLast(y),v===void 0)return"";A=this.lastNeed,this.lastNeed=0}else A=0;return A>5===6?2:y>>4===14?3:y>>3===30?4:y>>6===2?-1:-2}function t(y,v,A){var _=v.length-1;if(_=0?(C>0&&(y.lastNeed=C-1),C):--_=0?(C>0&&(y.lastNeed=C-2),C):--_=0?(C>0&&(C===2?C=0:y.lastNeed=C-3),C):0))}function e(y,v,A){if((v[0]&192)!==128)return y.lastNeed=0,"ďż˝";if(y.lastNeed>1&&v.length>1){if((v[1]&192)!==128)return y.lastNeed=1,"ďż˝";if(y.lastNeed>2&&v.length>2&&(v[2]&192)!==128)return y.lastNeed=2,"ďż˝"}}function i(y){var v=this.lastTotal-this.lastNeed,A=e(this,y);if(A!==void 0)return A;if(this.lastNeed<=y.length)return y.copy(this.lastChar,v,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);y.copy(this.lastChar,v,0,y.length),this.lastNeed-=y.length}function l(y,v){var A=t(this,y,v);if(!this.lastNeed)return y.toString("utf8",v);this.lastTotal=A;var _=y.length-(A-this.lastNeed);return y.copy(this.lastChar,0,_),y.toString("utf8",v,_)}function d(y){var v=y&&y.length?this.write(y):"";return this.lastNeed?v+"ďż˝":v}function p(y,v){if((y.length-v)%2===0){var A=y.toString("utf16le",v);if(A){var _=A.charCodeAt(A.length-1);if(_>=55296&&_<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=y[y.length-2],this.lastChar[1]=y[y.length-1],A.slice(0,-1)}return A}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=y[y.length-1],y.toString("utf16le",v,y.length-1)}function g(y){var v=y&&y.length?this.write(y):"";if(this.lastNeed){var A=this.lastTotal-this.lastNeed;return v+this.lastChar.toString("utf16le",0,A)}return v}function b(y,v){var A=(y.length-v)%3;return A===0?y.toString("base64",v):(this.lastNeed=3-A,this.lastTotal=3,A===1?this.lastChar[0]=y[y.length-1]:(this.lastChar[0]=y[y.length-2],this.lastChar[1]=y[y.length-1]),y.toString("base64",v,y.length-A))}function E(y){var v=y&&y.length?this.write(y):"";return this.lastNeed?v+this.lastChar.toString("base64",0,3-this.lastNeed):v}function S(y){return y.toString(this.encoding)}function x(y){return y&&y.length?this.write(y):""}}),ra=Se((f,h)=>{ge(),me(),ye();var s=er(),{PromisePrototypeThen:a,SymbolAsyncIterator:c,SymbolIterator:n}=Ze(),{Buffer:r}=(st(),Ke(ot)),{ERR_INVALID_ARG_TYPE:t,ERR_STREAM_NULL_VALUES:e}=pt().codes;function i(l,d,p){let g;if(typeof d=="string"||d instanceof r)return new l({objectMode:!0,...p,read(){this.push(d),this.push(null)}});let b;if(d&&d[c])b=!0,g=d[c]();else if(d&&d[n])b=!1,g=d[n]();else throw new t("iterable",["Iterable"],d);let E=new l({objectMode:!0,highWaterMark:1,...p}),S=!1;E._read=function(){S||(S=!0,y())},E._destroy=function(v,A){a(x(v),()=>s.nextTick(A,v),_=>s.nextTick(A,_||v))};async function x(v){let A=v!=null,_=typeof g.throw=="function";if(A&&_){let{value:C,done:w}=await g.throw(v);if(await C,w)return}if(typeof g.return=="function"){let{value:C}=await g.return();await C}}async function y(){for(;;){try{let{value:v,done:A}=b?await g.next():g.next();if(A)E.push(null);else{let _=v&&typeof v.then=="function"?await v:v;if(_===null)throw S=!1,new e;if(E.push(_))continue;S=!1}}catch(v){E.destroy(v)}break}}return E}h.exports=i}),Xr=Se((f,h)=>{ge(),me(),ye();var s=er(),{ArrayPrototypeIndexOf:a,NumberIsInteger:c,NumberIsNaN:n,NumberParseInt:r,ObjectDefineProperties:t,ObjectKeys:e,ObjectSetPrototypeOf:i,Promise:l,SafeSet:d,SymbolAsyncDispose:p,SymbolAsyncIterator:g,Symbol:b}=Ze();h.exports=fe,fe.ReadableState=Oe;var{EventEmitter:E}=(Zt(),Ke(qt)),{Stream:S,prependListener:x}=co(),{Buffer:y}=(st(),Ke(ot)),{addAbortSignal:v}=Yr(),A=Vt(),_=gt().debuglog("stream",R=>{_=R}),C=Hl(),w=sr(),{getHighWaterMark:I,getDefaultHighWaterMark:k}=Jr(),{aggregateTwoErrors:j,codes:{ERR_INVALID_ARG_TYPE:U,ERR_METHOD_NOT_IMPLEMENTED:P,ERR_OUT_OF_RANGE:z,ERR_STREAM_PUSH_AFTER_EOF:G,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:q},AbortError:he}=pt(),{validateObject:ne}=yr(),te=b("kPaused"),{StringDecoder:ce}=Ql(),V=ra();i(fe.prototype,S.prototype),i(fe,S);var le=()=>{},{errorOrDestroy:M}=w,ee=1,Z=2,ue=4,Ae=8,Y=16,W=32,oe=64,X=128,J=256,re=512,we=1024,pe=2048,L=4096,H=8192,se=16384,be=32768,ve=65536,Ee=1<<17,Q=1<<18;function _e(R){return{enumerable:!1,get(){return(this.state&R)!==0},set(F){F?this.state|=R:this.state&=~R}}}t(Oe.prototype,{objectMode:_e(ee),ended:_e(Z),endEmitted:_e(ue),reading:_e(Ae),constructed:_e(Y),sync:_e(W),needReadable:_e(oe),emittedReadable:_e(X),readableListening:_e(J),resumeScheduled:_e(re),errorEmitted:_e(we),emitClose:_e(pe),autoDestroy:_e(L),destroyed:_e(H),closed:_e(se),closeEmitted:_e(be),multiAwaitDrain:_e(ve),readingMore:_e(Ee),dataEmitted:_e(Q)});function Oe(R,F,Pe){typeof Pe!="boolean"&&(Pe=F instanceof kt()),this.state=pe|L|Y|W,R&&R.objectMode&&(this.state|=ee),Pe&&R&&R.readableObjectMode&&(this.state|=ee),this.highWaterMark=R?I(this,R,"readableHighWaterMark",Pe):k(!1),this.buffer=new C,this.length=0,this.pipes=[],this.flowing=null,this[te]=null,R&&R.emitClose===!1&&(this.state&=~pe),R&&R.autoDestroy===!1&&(this.state&=~L),this.errored=null,this.defaultEncoding=R&&R.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.decoder=null,this.encoding=null,R&&R.encoding&&(this.decoder=new ce(R.encoding),this.encoding=R.encoding)}function fe(R){if(!(this instanceof fe))return new fe(R);let F=this instanceof kt();this._readableState=new Oe(R,this,F),R&&(typeof R.read=="function"&&(this._read=R.read),typeof R.destroy=="function"&&(this._destroy=R.destroy),typeof R.construct=="function"&&(this._construct=R.construct),R.signal&&!F&&v(R.signal,this)),S.call(this,R),w.construct(this,()=>{this._readableState.needReadable&&$(this,this._readableState)})}fe.prototype.destroy=w.destroy,fe.prototype._undestroy=w.undestroy,fe.prototype._destroy=function(R,F){F(R)},fe.prototype[E.captureRejectionSymbol]=function(R){this.destroy(R)},fe.prototype[p]=function(){let R;return this.destroyed||(R=this.readableEnded?null:new he,this.destroy(R)),new l((F,Pe)=>A(this,Te=>Te&&Te!==R?Pe(Te):F(null)))},fe.prototype.push=function(R,F){return Be(this,R,F,!1)},fe.prototype.unshift=function(R,F){return Be(this,R,F,!0)};function Be(R,F,Pe,Te){_("readableAddChunk",F);let Me=R._readableState,rt;if((Me.state&ee)===0&&(typeof F=="string"?(Pe=Pe||Me.defaultEncoding,Me.encoding!==Pe&&(Te&&Me.encoding?F=y.from(F,Pe).toString(Me.encoding):(F=y.from(F,Pe),Pe=""))):F instanceof y?Pe="":S._isUint8Array(F)?(F=S._uint8ArrayToBuffer(F),Pe=""):F!=null&&(rt=new U("chunk",["string","Buffer","Uint8Array"],F))),rt)M(R,rt);else if(F===null)Me.state&=~Ae,N(R,Me);else if((Me.state&ee)!==0||F&&F.length>0)if(Te)if((Me.state&ue)!==0)M(R,new q);else{if(Me.destroyed||Me.errored)return!1;o(R,Me,F,!0)}else if(Me.ended)M(R,new G);else{if(Me.destroyed||Me.errored)return!1;Me.state&=~Ae,Me.decoder&&!Pe?(F=Me.decoder.write(F),Me.objectMode||F.length!==0?o(R,Me,F,!1):$(R,Me)):o(R,Me,F,!1)}else Te||(Me.state&=~Ae,$(R,Me));return!Me.ended&&(Me.length0?((F.state&ve)!==0?F.awaitDrainWriters.clear():F.awaitDrainWriters=null,F.dataEmitted=!0,R.emit("data",Pe)):(F.length+=F.objectMode?1:Pe.length,Te?F.buffer.unshift(Pe):F.buffer.push(Pe),(F.state&oe)!==0&&K(R)),$(R,F)}fe.prototype.isPaused=function(){let R=this._readableState;return R[te]===!0||R.flowing===!1},fe.prototype.setEncoding=function(R){let F=new ce(R);this._readableState.decoder=F,this._readableState.encoding=this._readableState.decoder.encoding;let Pe=this._readableState.buffer,Te="";for(let Me of Pe)Te+=F.write(Me);return Pe.clear(),Te!==""&&Pe.push(Te),this._readableState.length=Te.length,this};var u=1073741824;function m(R){if(R>u)throw new z("size","<= 1GiB",R);return R--,R|=R>>>1,R|=R>>>2,R|=R>>>4,R|=R>>>8,R|=R>>>16,R++,R}function T(R,F){return R<=0||F.length===0&&F.ended?0:(F.state&ee)!==0?1:n(R)?F.flowing&&F.length?F.buffer.first().length:F.length:R<=F.length?R:F.ended?F.length:0}fe.prototype.read=function(R){_("read",R),R===void 0?R=NaN:c(R)||(R=r(R,10));let F=this._readableState,Pe=R;if(R>F.highWaterMark&&(F.highWaterMark=m(R)),R!==0&&(F.state&=~X),R===0&&F.needReadable&&((F.highWaterMark!==0?F.length>=F.highWaterMark:F.length>0)||F.ended))return _("read: emitReadable",F.length,F.ended),F.length===0&&F.ended?He(this):K(this),null;if(R=T(R,F),R===0&&F.ended)return F.length===0&&He(this),null;let Te=(F.state&oe)!==0;if(_("need readable",Te),(F.length===0||F.length-R0?Me=tt(R,F):Me=null,Me===null?(F.needReadable=F.length<=F.highWaterMark,R=0):(F.length-=R,F.multiAwaitDrain?F.awaitDrainWriters.clear():F.awaitDrainWriters=null),F.length===0&&(F.ended||(F.needReadable=!0),Pe!==R&&F.ended&&He(this)),Me!==null&&!F.errorEmitted&&!F.closeEmitted&&(F.dataEmitted=!0,this.emit("data",Me)),Me};function N(R,F){if(_("onEofChunk"),!F.ended){if(F.decoder){let Pe=F.decoder.end();Pe&&Pe.length&&(F.buffer.push(Pe),F.length+=F.objectMode?1:Pe.length)}F.ended=!0,F.sync?K(R):(F.needReadable=!1,F.emittedReadable=!0,de(R))}}function K(R){let F=R._readableState;_("emitReadable",F.needReadable,F.emittedReadable),F.needReadable=!1,F.emittedReadable||(_("emitReadable",F.flowing),F.emittedReadable=!0,s.nextTick(de,R))}function de(R){let F=R._readableState;_("emitReadable_",F.destroyed,F.length,F.ended),!F.destroyed&&!F.errored&&(F.length||F.ended)&&(R.emit("readable"),F.emittedReadable=!1),F.needReadable=!F.flowing&&!F.ended&&F.length<=F.highWaterMark,Fe(R)}function $(R,F){!F.readingMore&&F.constructed&&(F.readingMore=!0,s.nextTick(ie,R,F))}function ie(R,F){for(;!F.reading&&!F.ended&&(F.length1&&Te.pipes.includes(R)&&(_("false write response, pause",Te.awaitDrainWriters.size),Te.awaitDrainWriters.add(R)),Pe.pause()),mt||(mt=Re(Pe,R),R.on("drain",mt))}Pe.on("data",Ht);function Ht(Qe){_("ondata");let wt=R.write(Qe);_("dest.write",wt),wt===!1&&Kt()}function Et(Qe){if(_("onerror",Qe),At(),R.removeListener("error",Et),R.listenerCount("error")===0){let wt=R._writableState||R._readableState;wt&&!wt.errorEmitted?M(R,Qe):R.emit("error",Qe)}}x(R,"error",Et);function ze(){R.removeListener("finish",bt),At()}R.once("close",ze);function bt(){_("onfinish"),R.removeListener("close",ze),At()}R.once("finish",bt);function At(){_("unpipe"),Pe.unpipe(R)}return R.emit("pipe",Pe),R.writableNeedDrain===!0?Kt():Te.flowing||(_("pipe resume"),Pe.resume()),R};function Re(R,F){return function(){let Pe=R._readableState;Pe.awaitDrainWriters===F?(_("pipeOnDrain",1),Pe.awaitDrainWriters=null):Pe.multiAwaitDrain&&(_("pipeOnDrain",Pe.awaitDrainWriters.size),Pe.awaitDrainWriters.delete(F)),(!Pe.awaitDrainWriters||Pe.awaitDrainWriters.size===0)&&R.listenerCount("data")&&R.resume()}}fe.prototype.unpipe=function(R){let F=this._readableState,Pe={hasUnpiped:!1};if(F.pipes.length===0)return this;if(!R){let Me=F.pipes;F.pipes=[],this.pause();for(let rt=0;rt0,Te.flowing!==!1&&this.resume()):R==="readable"&&!Te.endEmitted&&!Te.readableListening&&(Te.readableListening=Te.needReadable=!0,Te.flowing=!1,Te.emittedReadable=!1,_("on readable",Te.length,Te.reading),Te.length?K(this):Te.reading||s.nextTick(Le,this)),Pe},fe.prototype.addListener=fe.prototype.on,fe.prototype.removeListener=function(R,F){let Pe=S.prototype.removeListener.call(this,R,F);return R==="readable"&&s.nextTick(ke,this),Pe},fe.prototype.off=fe.prototype.removeListener,fe.prototype.removeAllListeners=function(R){let F=S.prototype.removeAllListeners.apply(this,arguments);return(R==="readable"||R===void 0)&&s.nextTick(ke,this),F};function ke(R){let F=R._readableState;F.readableListening=R.listenerCount("readable")>0,F.resumeScheduled&&F[te]===!1?F.flowing=!0:R.listenerCount("data")>0?R.resume():F.readableListening||(F.flowing=null)}function Le(R){_("readable nexttick read 0"),R.read(0)}fe.prototype.resume=function(){let R=this._readableState;return R.flowing||(_("resume"),R.flowing=!R.readableListening,Ue(this,R)),R[te]=!1,this};function Ue(R,F){F.resumeScheduled||(F.resumeScheduled=!0,s.nextTick(Xe,R,F))}function Xe(R,F){_("resume",F.reading),F.reading||R.read(0),F.resumeScheduled=!1,R.emit("resume"),Fe(R),F.flowing&&!F.reading&&R.read(0)}fe.prototype.pause=function(){return _("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(_("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState[te]=!0,this};function Fe(R){let F=R._readableState;for(_("flow",F.flowing);F.flowing&&R.read()!==null;);}fe.prototype.wrap=function(R){let F=!1;R.on("data",Te=>{!this.push(Te)&&R.pause&&(F=!0,R.pause())}),R.on("end",()=>{this.push(null)}),R.on("error",Te=>{M(this,Te)}),R.on("close",()=>{this.destroy()}),R.on("destroy",()=>{this.destroy()}),this._read=()=>{F&&R.resume&&(F=!1,R.resume())};let Pe=e(R);for(let Te=1;Te{Me=at?j(Me,at):null,Pe(),Pe=le});try{for(;;){let at=R.destroyed?null:R.read();if(at!==null)yield at;else{if(Me)throw Me;if(Me===null)return;await new l(Te)}}}catch(at){throw Me=j(Me,at),Me}finally{(Me||F?.destroyOnReturn!==!1)&&(Me===void 0||R._readableState.autoDestroy)?w.destroyer(R,null):(R.off("readable",Te),rt())}}t(fe.prototype,{readable:{__proto__:null,get(){let R=this._readableState;return!!R&&R.readable!==!1&&!R.destroyed&&!R.errorEmitted&&!R.endEmitted},set(R){this._readableState&&(this._readableState.readable=!!R)}},readableDidRead:{__proto__:null,enumerable:!1,get:function(){return this._readableState.dataEmitted}},readableAborted:{__proto__:null,enumerable:!1,get:function(){return!!(this._readableState.readable!==!1&&(this._readableState.destroyed||this._readableState.errored)&&!this._readableState.endEmitted)}},readableHighWaterMark:{__proto__:null,enumerable:!1,get:function(){return this._readableState.highWaterMark}},readableBuffer:{__proto__:null,enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}},readableFlowing:{__proto__:null,enumerable:!1,get:function(){return this._readableState.flowing},set:function(R){this._readableState&&(this._readableState.flowing=R)}},readableLength:{__proto__:null,enumerable:!1,get(){return this._readableState.length}},readableObjectMode:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.objectMode:!1}},readableEncoding:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.encoding:null}},errored:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.errored:null}},closed:{__proto__:null,get(){return this._readableState?this._readableState.closed:!1}},destroyed:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.destroyed:!1},set(R){this._readableState&&(this._readableState.destroyed=R)}},readableEnded:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.endEmitted:!1}}}),t(Oe.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[te]!==!1},set(R){this[te]=!!R}}}),fe._fromList=tt;function tt(R,F){if(F.length===0)return null;let Pe;return F.objectMode?Pe=F.buffer.shift():!R||R>=F.length?(F.decoder?Pe=F.buffer.join(""):F.buffer.length===1?Pe=F.buffer.first():Pe=F.buffer.concat(F.length),F.buffer.clear()):Pe=F.buffer.consume(R,F.decoder),Pe}function He(R){let F=R._readableState;_("endReadable",F.endEmitted),F.endEmitted||(F.ended=!0,s.nextTick($e,F,R))}function $e(R,F){if(_("endReadableNT",R.endEmitted,R.length),!R.errored&&!R.closeEmitted&&!R.endEmitted&&R.length===0){if(R.endEmitted=!0,F.emit("end"),F.writable&&F.allowHalfOpen===!1)s.nextTick(nt,F);else if(R.autoDestroy){let Pe=F._writableState;(!Pe||Pe.autoDestroy&&(Pe.finished||Pe.writable===!1))&&F.destroy()}}}function nt(R){R.writable&&!R.writableEnded&&!R.destroyed&&R.end()}fe.from=function(R,F){return V(fe,R,F)};var dt;function lt(){return dt===void 0&&(dt={}),dt}fe.fromWeb=function(R,F){return lt().newStreamReadableFromReadableStream(R,F)},fe.toWeb=function(R,F){return lt().newReadableStreamFromStreamReadable(R,F)},fe.wrap=function(R,F){var Pe,Te;return new fe({objectMode:(Pe=(Te=R.readableObjectMode)!==null&&Te!==void 0?Te:R.objectMode)!==null&&Pe!==void 0?Pe:!0,...F,destroy(Me,rt){w.destroyer(R,Me),rt(Me)}}).wrap(R)}}),ho=Se((f,h)=>{ge(),me(),ye();var s=er(),{ArrayPrototypeSlice:a,Error:c,FunctionPrototypeSymbolHasInstance:n,ObjectDefineProperty:r,ObjectDefineProperties:t,ObjectSetPrototypeOf:e,StringPrototypeToLowerCase:i,Symbol:l,SymbolHasInstance:d}=Ze();h.exports=ne,ne.WritableState=q;var{EventEmitter:p}=(Zt(),Ke(qt)),g=co().Stream,{Buffer:b}=(st(),Ke(ot)),E=sr(),{addAbortSignal:S}=Yr(),{getHighWaterMark:x,getDefaultHighWaterMark:y}=Jr(),{ERR_INVALID_ARG_TYPE:v,ERR_METHOD_NOT_IMPLEMENTED:A,ERR_MULTIPLE_CALLBACK:_,ERR_STREAM_CANNOT_PIPE:C,ERR_STREAM_DESTROYED:w,ERR_STREAM_ALREADY_FINISHED:I,ERR_STREAM_NULL_VALUES:k,ERR_STREAM_WRITE_AFTER_END:j,ERR_UNKNOWN_ENCODING:U}=pt().codes,{errorOrDestroy:P}=E;e(ne.prototype,g.prototype),e(ne,g);function z(){}var G=l("kOnFinished");function q(L,H,se){typeof se!="boolean"&&(se=H instanceof kt()),this.objectMode=!!(L&&L.objectMode),se&&(this.objectMode=this.objectMode||!!(L&&L.writableObjectMode)),this.highWaterMark=L?x(this,L,"writableHighWaterMark",se):y(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;let be=!!(L&&L.decodeStrings===!1);this.decodeStrings=!be,this.defaultEncoding=L&&L.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=M.bind(void 0,H),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,he(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!L||L.emitClose!==!1,this.autoDestroy=!L||L.autoDestroy!==!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[G]=[]}function he(L){L.buffered=[],L.bufferedIndex=0,L.allBuffers=!0,L.allNoop=!0}q.prototype.getBuffer=function(){return a(this.buffered,this.bufferedIndex)},r(q.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function ne(L){let H=this instanceof kt();if(!H&&!n(ne,this))return new ne(L);this._writableState=new q(L,this,H),L&&(typeof L.write=="function"&&(this._write=L.write),typeof L.writev=="function"&&(this._writev=L.writev),typeof L.destroy=="function"&&(this._destroy=L.destroy),typeof L.final=="function"&&(this._final=L.final),typeof L.construct=="function"&&(this._construct=L.construct),L.signal&&S(L.signal,this)),g.call(this,L),E.construct(this,()=>{let se=this._writableState;se.writing||Ae(this,se),X(this,se)})}r(ne,d,{__proto__:null,value:function(L){return n(this,L)?!0:this!==ne?!1:L&&L._writableState instanceof q}}),ne.prototype.pipe=function(){P(this,new C)};function te(L,H,se,be){let ve=L._writableState;if(typeof se=="function")be=se,se=ve.defaultEncoding;else{if(!se)se=ve.defaultEncoding;else if(se!=="buffer"&&!b.isEncoding(se))throw new U(se);typeof be!="function"&&(be=z)}if(H===null)throw new k;if(!ve.objectMode)if(typeof H=="string")ve.decodeStrings!==!1&&(H=b.from(H,se),se="buffer");else if(H instanceof b)se="buffer";else if(g._isUint8Array(H))H=g._uint8ArrayToBuffer(H),se="buffer";else throw new v("chunk",["string","Buffer","Uint8Array"],H);let Ee;return ve.ending?Ee=new j:ve.destroyed&&(Ee=new w("write")),Ee?(s.nextTick(be,Ee),P(L,Ee,!0),Ee):(ve.pendingcb++,ce(L,ve,H,se,be))}ne.prototype.write=function(L,H,se){return te(this,L,H,se)===!0},ne.prototype.cork=function(){this._writableState.corked++},ne.prototype.uncork=function(){let L=this._writableState;L.corked&&(L.corked--,L.writing||Ae(this,L))},ne.prototype.setDefaultEncoding=function(L){if(typeof L=="string"&&(L=i(L)),!b.isEncoding(L))throw new U(L);return this._writableState.defaultEncoding=L,this};function ce(L,H,se,be,ve){let Ee=H.objectMode?1:se.length;H.length+=Ee;let Q=H.lengthse.bufferedIndex&&Ae(L,se),be?se.afterWriteTickInfo!==null&&se.afterWriteTickInfo.cb===ve?se.afterWriteTickInfo.count++:(se.afterWriteTickInfo={count:1,cb:ve,stream:L,state:se},s.nextTick(ee,se.afterWriteTickInfo)):Z(L,se,1,ve))}function ee({stream:L,state:H,count:se,cb:be}){return H.afterWriteTickInfo=null,Z(L,H,se,be)}function Z(L,H,se,be){for(!H.ending&&!L.destroyed&&H.length===0&&H.needDrain&&(H.needDrain=!1,L.emit("drain"));se-- >0;)H.pendingcb--,be();H.destroyed&&ue(H),X(L,H)}function ue(L){if(L.writing)return;for(let ve=L.bufferedIndex;ve1&&L._writev){H.pendingcb-=Ee-1;let _e=H.allNoop?z:fe=>{for(let Be=Q;Be256?(se.splice(0,Q),H.bufferedIndex=0):H.bufferedIndex=Q}H.bufferProcessing=!1}ne.prototype._write=function(L,H,se){if(this._writev)this._writev([{chunk:L,encoding:H}],se);else throw new A("_write()")},ne.prototype._writev=null,ne.prototype.end=function(L,H,se){let be=this._writableState;typeof L=="function"?(se=L,L=null,H=null):typeof H=="function"&&(se=H,H=null);let ve;if(L!=null){let Ee=te(this,L,H);Ee instanceof c&&(ve=Ee)}return be.corked&&(be.corked=1,this.uncork()),ve||(!be.errored&&!be.ending?(be.ending=!0,X(this,be,!0),be.ended=!0):be.finished?ve=new I("end"):be.destroyed&&(ve=new w("end"))),typeof se=="function"&&(ve||be.finished?s.nextTick(se,ve):be[G].push(se)),this};function Y(L){return L.ending&&!L.destroyed&&L.constructed&&L.length===0&&!L.errored&&L.buffered.length===0&&!L.finished&&!L.writing&&!L.errorEmitted&&!L.closeEmitted}function W(L,H){let se=!1;function be(ve){if(se){P(L,ve??_());return}if(se=!0,H.pendingcb--,ve){let Ee=H[G].splice(0);for(let Q=0;Q{Y(ve)?J(be,ve):ve.pendingcb--},L,H)):Y(H)&&(H.pendingcb++,J(L,H))))}function J(L,H){H.pendingcb--,H.finished=!0;let se=H[G].splice(0);for(let be=0;be{ge(),me(),ye();var s=er(),a=(st(),Ke(ot)),{isReadable:c,isWritable:n,isIterable:r,isNodeStream:t,isReadableNodeStream:e,isWritableNodeStream:i,isDuplexNodeStream:l,isReadableStream:d,isWritableStream:p}=Ct(),g=Vt(),{AbortError:b,codes:{ERR_INVALID_ARG_TYPE:E,ERR_INVALID_RETURN_VALUE:S}}=pt(),{destroyer:x}=sr(),y=kt(),v=Xr(),A=ho(),{createDeferredPromise:_}=gt(),C=ra(),w=globalThis.Blob||a.Blob,I=typeof w<"u"?function(G){return G instanceof w}:function(G){return!1},k=globalThis.AbortController||gr().AbortController,{FunctionPrototypeCall:j}=Ze(),U=class extends y{constructor(G){super(G),G?.readable===!1&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),G?.writable===!1&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)}};h.exports=function G(q,he){if(l(q))return q;if(e(q))return z({readable:q});if(i(q))return z({writable:q});if(t(q))return z({writable:!1,readable:!1});if(d(q))return z({readable:v.fromWeb(q)});if(p(q))return z({writable:A.fromWeb(q)});if(typeof q=="function"){let{value:te,write:ce,final:V,destroy:le}=P(q);if(r(te))return C(U,te,{objectMode:!0,write:ce,final:V,destroy:le});let M=te?.then;if(typeof M=="function"){let ee,Z=j(M,te,ue=>{if(ue!=null)throw new S("nully","body",ue)},ue=>{x(ee,ue)});return ee=new U({objectMode:!0,readable:!1,write:ce,final(ue){V(async()=>{try{await Z,s.nextTick(ue,null)}catch(Ae){s.nextTick(ue,Ae)}})},destroy:le})}throw new S("Iterable, AsyncIterable or AsyncFunction",he,te)}if(I(q))return G(q.arrayBuffer());if(r(q))return C(U,q,{objectMode:!0,writable:!1});if(d(q?.readable)&&p(q?.writable))return U.fromWeb(q);if(typeof q?.writable=="object"||typeof q?.readable=="object"){let te=q!=null&&q.readable?e(q?.readable)?q?.readable:G(q.readable):void 0,ce=q!=null&&q.writable?i(q?.writable)?q?.writable:G(q.writable):void 0;return z({readable:te,writable:ce})}let ne=q?.then;if(typeof ne=="function"){let te;return j(ne,q,ce=>{ce!=null&&te.push(ce),te.push(null)},ce=>{x(te,ce)}),te=new U({objectMode:!0,writable:!1,read(){}})}throw new E(he,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],q)};function P(G){let{promise:q,resolve:he}=_(),ne=new k,te=ne.signal;return{value:G((async function*(){for(;;){let ce=q;q=null;let{chunk:V,done:le,cb:M}=await ce;if(s.nextTick(M),le)return;if(te.aborted)throw new b(void 0,{cause:te.reason});({promise:q,resolve:he}=_()),yield V}})(),{signal:te}),write(ce,V,le){let M=he;he=null,M({chunk:ce,done:!1,cb:le})},final(ce){let V=he;he=null,V({done:!0,cb:ce})},destroy(ce,V){ne.abort(),V(ce)}}}function z(G){let q=G.readable&&typeof G.readable.read!="function"?v.wrap(G.readable):G.readable,he=G.writable,ne=!!c(q),te=!!n(he),ce,V,le,M,ee;function Z(ue){let Ae=M;M=null,Ae?Ae(ue):ue&&ee.destroy(ue)}return ee=new U({readableObjectMode:!!(q!=null&&q.readableObjectMode),writableObjectMode:!!(he!=null&&he.writableObjectMode),readable:ne,writable:te}),te&&(g(he,ue=>{te=!1,ue&&x(q,ue),Z(ue)}),ee._write=function(ue,Ae,Y){he.write(ue,Ae)?Y():ce=Y},ee._final=function(ue){he.end(),V=ue},he.on("drain",function(){if(ce){let ue=ce;ce=null,ue()}}),he.on("finish",function(){if(V){let ue=V;V=null,ue()}})),ne&&(g(q,ue=>{ne=!1,ue&&x(q,ue),Z(ue)}),q.on("readable",function(){if(le){let ue=le;le=null,ue()}}),q.on("end",function(){ee.push(null)}),ee._read=function(){for(;;){let ue=q.read();if(ue===null){le=ee._read;return}if(!ee.push(ue))return}}),ee._destroy=function(ue,Ae){!ue&&M!==null&&(ue=new b),le=null,ce=null,V=null,M===null?Ae(ue):(M=Ae,x(he,ue),x(q,ue))},ee}}),kt=Se((f,h)=>{ge(),me(),ye();var{ObjectDefineProperties:s,ObjectGetOwnPropertyDescriptor:a,ObjectKeys:c,ObjectSetPrototypeOf:n}=Ze();h.exports=e;var r=Xr(),t=ho();n(e.prototype,r.prototype),n(e,r);{let p=c(t.prototype);for(let g=0;g{ge(),me(),ye();var{ObjectSetPrototypeOf:s,Symbol:a}=Ze();h.exports=e;var{ERR_METHOD_NOT_IMPLEMENTED:c}=pt().codes,n=kt(),{getHighWaterMark:r}=Jr();s(e.prototype,n.prototype),s(e,n);var t=a("kCallback");function e(d){if(!(this instanceof e))return new e(d);let p=d?r(this,d,"readableHighWaterMark",!0):null;p===0&&(d={...d,highWaterMark:null,readableHighWaterMark:p,writableHighWaterMark:d.writableHighWaterMark||0}),n.call(this,d),this._readableState.sync=!1,this[t]=null,d&&(typeof d.transform=="function"&&(this._transform=d.transform),typeof d.flush=="function"&&(this._flush=d.flush)),this.on("prefinish",l)}function i(d){typeof this._flush=="function"&&!this.destroyed?this._flush((p,g)=>{if(p){d?d(p):this.destroy(p);return}g!=null&&this.push(g),this.push(null),d&&d()}):(this.push(null),d&&d())}function l(){this._final!==i&&i.call(this)}e.prototype._final=i,e.prototype._transform=function(d,p,g){throw new c("_transform()")},e.prototype._write=function(d,p,g){let b=this._readableState,E=this._writableState,S=b.length;this._transform(d,p,(x,y)=>{if(x){g(x);return}y!=null&&this.push(y),E.ended||S===b.length||b.length{ge(),me(),ye();var{ObjectSetPrototypeOf:s}=Ze();h.exports=c;var a=na();s(c.prototype,a.prototype),s(c,a);function c(n){if(!(this instanceof c))return new c(n);a.call(this,n)}c.prototype._transform=function(n,r,t){t(null,n)}}),fo=Se((f,h)=>{ge(),me(),ye();var s=er(),{ArrayIsArray:a,Promise:c,SymbolAsyncIterator:n,SymbolDispose:r}=Ze(),t=Vt(),{once:e}=gt(),i=sr(),l=kt(),{aggregateTwoErrors:d,codes:{ERR_INVALID_ARG_TYPE:p,ERR_INVALID_RETURN_VALUE:g,ERR_MISSING_ARGS:b,ERR_STREAM_DESTROYED:E,ERR_STREAM_PREMATURE_CLOSE:S},AbortError:x}=pt(),{validateFunction:y,validateAbortSignal:v}=yr(),{isIterable:A,isReadable:_,isReadableNodeStream:C,isNodeStream:w,isTransformStream:I,isWebStream:k,isReadableStream:j,isReadableFinished:U}=Ct(),P=globalThis.AbortController||gr().AbortController,z,G,q;function he(ue,Ae,Y){let W=!1;ue.on("close",()=>{W=!0});let oe=t(ue,{readable:Ae,writable:Y},X=>{W=!X});return{destroy:X=>{W||(W=!0,i.destroyer(ue,X||new E("pipe")))},cleanup:oe}}function ne(ue){return y(ue[ue.length-1],"streams[stream.length - 1]"),ue.pop()}function te(ue){if(A(ue))return ue;if(C(ue))return ce(ue);throw new p("val",["Readable","Iterable","AsyncIterable"],ue)}async function*ce(ue){G||(G=Xr()),yield*G.prototype[n].call(ue)}async function V(ue,Ae,Y,{end:W}){let oe,X=null,J=pe=>{if(pe&&(oe=pe),X){let L=X;X=null,L()}},re=()=>new c((pe,L)=>{oe?L(oe):X=()=>{oe?L(oe):pe()}});Ae.on("drain",J);let we=t(Ae,{readable:!1},J);try{Ae.writableNeedDrain&&await re();for await(let pe of ue)Ae.write(pe)||await re();W&&(Ae.end(),await re()),Y()}catch(pe){Y(oe!==pe?d(oe,pe):pe)}finally{we(),Ae.off("drain",J)}}async function le(ue,Ae,Y,{end:W}){I(Ae)&&(Ae=Ae.writable);let oe=Ae.getWriter();try{for await(let X of ue)await oe.ready,oe.write(X).catch(()=>{});await oe.ready,W&&await oe.close(),Y()}catch(X){try{await oe.abort(X),Y(X)}catch(J){Y(J)}}}function M(...ue){return ee(ue,e(ne(ue)))}function ee(ue,Ae,Y){if(ue.length===1&&a(ue[0])&&(ue=ue[0]),ue.length<2)throw new b("streams");let W=new P,oe=W.signal,X=Y?.signal,J=[];v(X,"options.signal");function re(){ve(new x)}q=q||gt().addAbortListener;let we;X&&(we=q(X,re));let pe,L,H=[],se=0;function be(Oe){ve(Oe,--se===0)}function ve(Oe,fe){var Be;if(Oe&&(!pe||pe.code==="ERR_STREAM_PREMATURE_CLOSE")&&(pe=Oe),!(!pe&&!fe)){for(;H.length;)H.shift()(pe);(Be=we)===null||Be===void 0||Be[r](),W.abort(),fe&&(pe||J.forEach(o=>o()),s.nextTick(Ae,pe,L))}}let Ee;for(let Oe=0;Oe0,u=Be||Y?.end!==!1,m=Oe===ue.length-1;if(w(fe)){let T=function(N){N&&N.name!=="AbortError"&&N.code!=="ERR_STREAM_PREMATURE_CLOSE"&&be(N)};if(u){let{destroy:N,cleanup:K}=he(fe,Be,o);H.push(N),_(fe)&&m&&J.push(K)}fe.on("error",T),_(fe)&&m&&J.push(()=>{fe.removeListener("error",T)})}if(Oe===0)if(typeof fe=="function"){if(Ee=fe({signal:oe}),!A(Ee))throw new g("Iterable, AsyncIterable or Stream","source",Ee)}else A(fe)||C(fe)||I(fe)?Ee=fe:Ee=l.from(fe);else if(typeof fe=="function"){if(I(Ee)){var Q;Ee=te((Q=Ee)===null||Q===void 0?void 0:Q.readable)}else Ee=te(Ee);if(Ee=fe(Ee,{signal:oe}),Be){if(!A(Ee,!0))throw new g("AsyncIterable",`transform[${Oe-1}]`,Ee)}else{var _e;z||(z=ia());let T=new z({objectMode:!0}),N=(_e=Ee)===null||_e===void 0?void 0:_e.then;if(typeof N=="function")se++,N.call(Ee,$=>{L=$,$!=null&&T.write($),u&&T.end(),s.nextTick(be)},$=>{T.destroy($),s.nextTick(be,$)});else if(A(Ee,!0))se++,V(Ee,T,be,{end:u});else if(j(Ee)||I(Ee)){let $=Ee.readable||Ee;se++,V($,T,be,{end:u})}else throw new g("AsyncIterable or Promise","destination",Ee);Ee=T;let{destroy:K,cleanup:de}=he(Ee,!1,!0);H.push(K),m&&J.push(de)}}else if(w(fe)){if(C(Ee)){se+=2;let T=Z(Ee,fe,be,{end:u});_(fe)&&m&&J.push(T)}else if(I(Ee)||j(Ee)){let T=Ee.readable||Ee;se++,V(T,fe,be,{end:u})}else if(A(Ee))se++,V(Ee,fe,be,{end:u});else throw new p("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],Ee);Ee=fe}else if(k(fe)){if(C(Ee))se++,le(te(Ee),fe,be,{end:u});else if(j(Ee)||A(Ee))se++,le(Ee,fe,be,{end:u});else if(I(Ee))se++,le(Ee.readable,fe,be,{end:u});else throw new p("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],Ee);Ee=fe}else Ee=l.from(fe)}return(oe!=null&&oe.aborted||X!=null&&X.aborted)&&s.nextTick(re),Ee}function Z(ue,Ae,Y,{end:W}){let oe=!1;if(Ae.on("close",()=>{oe||Y(new S)}),ue.pipe(Ae,{end:!1}),W){let X=function(){oe=!0,Ae.end()};U(ue)?s.nextTick(X):ue.once("end",X)}else Y();return t(ue,{readable:!0,writable:!1},X=>{let J=ue._readableState;X&&X.code==="ERR_STREAM_PREMATURE_CLOSE"&&J&&J.ended&&!J.errored&&!J.errorEmitted?ue.once("end",Y).once("error",Y):Y(X)}),t(Ae,{readable:!1,writable:!0},Y)}h.exports={pipelineImpl:ee,pipeline:M}}),oa=Se((f,h)=>{ge(),me(),ye();var{pipeline:s}=fo(),a=kt(),{destroyer:c}=sr(),{isNodeStream:n,isReadable:r,isWritable:t,isWebStream:e,isTransformStream:i,isWritableStream:l,isReadableStream:d}=Ct(),{AbortError:p,codes:{ERR_INVALID_ARG_VALUE:g,ERR_MISSING_ARGS:b}}=pt(),E=Vt();h.exports=function(...S){if(S.length===0)throw new b("streams");if(S.length===1)return a.from(S[0]);let x=[...S];if(typeof S[0]=="function"&&(S[0]=a.from(S[0])),typeof S[S.length-1]=="function"){let P=S.length-1;S[P]=a.from(S[P])}for(let P=0;P0&&!(t(S[P])||l(S[P])||i(S[P])))throw new g(`streams[${P}]`,x[P],"must be writable")}let y,v,A,_,C;function w(P){let z=_;_=null,z?z(P):P?C.destroy(P):!U&&!j&&C.destroy()}let I=S[0],k=s(S,w),j=!!(t(I)||l(I)||i(I)),U=!!(r(k)||d(k)||i(k));if(C=new a({writableObjectMode:!!(I!=null&&I.writableObjectMode),readableObjectMode:!!(k!=null&&k.readableObjectMode),writable:j,readable:U}),j){if(n(I))C._write=function(z,G,q){I.write(z,G)?q():y=q},C._final=function(z){I.end(),v=z},I.on("drain",function(){if(y){let z=y;y=null,z()}});else if(e(I)){let z=(i(I)?I.writable:I).getWriter();C._write=async function(G,q,he){try{await z.ready,z.write(G).catch(()=>{}),he()}catch(ne){he(ne)}},C._final=async function(G){try{await z.ready,z.close().catch(()=>{}),v=G}catch(q){G(q)}}}let P=i(k)?k.readable:k;E(P,()=>{if(v){let z=v;v=null,z()}})}if(U){if(n(k))k.on("readable",function(){if(A){let P=A;A=null,P()}}),k.on("end",function(){C.push(null)}),C._read=function(){for(;;){let P=k.read();if(P===null){A=C._read;return}if(!C.push(P))return}};else if(e(k)){let P=(i(k)?k.readable:k).getReader();C._read=async function(){for(;;)try{let{value:z,done:G}=await P.read();if(!C.push(z))return;if(G){C.push(null);return}}catch{return}}}}return C._destroy=function(P,z){!P&&_!==null&&(P=new p),A=null,y=null,v=null,_===null?z(P):(_=z,n(k)&&c(k,P))},C}}),Jl=Se((f,h)=>{ge(),me(),ye();var s=globalThis.AbortController||gr().AbortController,{codes:{ERR_INVALID_ARG_VALUE:a,ERR_INVALID_ARG_TYPE:c,ERR_MISSING_ARGS:n,ERR_OUT_OF_RANGE:r},AbortError:t}=pt(),{validateAbortSignal:e,validateInteger:i,validateObject:l}=yr(),d=Ze().Symbol("kWeak"),p=Ze().Symbol("kResistStopPropagation"),{finished:g}=Vt(),b=oa(),{addAbortSignalNoValidate:E}=Yr(),{isWritable:S,isNodeStream:x}=Ct(),{deprecate:y}=gt(),{ArrayPrototypePush:v,Boolean:A,MathFloor:_,Number:C,NumberIsNaN:w,Promise:I,PromiseReject:k,PromiseResolve:j,PromisePrototypeThen:U,Symbol:P}=Ze(),z=P("kEmpty"),G=P("kEof");function q(X,J){if(J!=null&&l(J,"options"),J?.signal!=null&&e(J.signal,"options.signal"),x(X)&&!S(X))throw new a("stream",X,"must be writable");let re=b(this,X);return J!=null&&J.signal&&E(J.signal,re),re}function he(X,J){if(typeof X!="function")throw new c("fn",["Function","AsyncFunction"],X);J!=null&&l(J,"options"),J?.signal!=null&&e(J.signal,"options.signal");let re=1;J?.concurrency!=null&&(re=_(J.concurrency));let we=re-1;return J?.highWaterMark!=null&&(we=_(J.highWaterMark)),i(re,"options.concurrency",1),i(we,"options.highWaterMark",0),we+=re,(async function*(){let pe=gt().AbortSignalAny([J?.signal].filter(A)),L=this,H=[],se={signal:pe},be,ve,Ee=!1,Q=0;function _e(){Ee=!0,Oe()}function Oe(){Q-=1,fe()}function fe(){ve&&!Ee&&Q=we||Q>=re)&&await new I(u=>{ve=u})}H.push(G)}catch(o){let u=k(o);U(u,Oe,_e),H.push(u)}finally{Ee=!0,be&&(be(),be=null)}}Be();try{for(;;){for(;H.length>0;){let o=await H[0];if(o===G)return;if(pe.aborted)throw new t;o!==z&&(yield o),H.shift(),fe()}await new I(o=>{be=o})}}finally{Ee=!0,ve&&(ve(),ve=null)}}).call(this)}function ne(X=void 0){return X!=null&&l(X,"options"),X?.signal!=null&&e(X.signal,"options.signal"),(async function*(){let J=0;for await(let we of this){var re;if(X!=null&&(re=X.signal)!==null&&re!==void 0&&re.aborted)throw new t({cause:X.signal.reason});yield[J++,we]}}).call(this)}async function te(X,J=void 0){for await(let re of M.call(this,X,J))return!0;return!1}async function ce(X,J=void 0){if(typeof X!="function")throw new c("fn",["Function","AsyncFunction"],X);return!await te.call(this,async(...re)=>!await X(...re),J)}async function V(X,J){for await(let re of M.call(this,X,J))return re}async function le(X,J){if(typeof X!="function")throw new c("fn",["Function","AsyncFunction"],X);async function re(we,pe){return await X(we,pe),z}for await(let we of he.call(this,re,J));}function M(X,J){if(typeof X!="function")throw new c("fn",["Function","AsyncFunction"],X);async function re(we,pe){return await X(we,pe)?we:z}return he.call(this,re,J)}var ee=class extends n{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}};async function Z(X,J,re){var we;if(typeof X!="function")throw new c("reducer",["Function","AsyncFunction"],X);re!=null&&l(re,"options"),re?.signal!=null&&e(re.signal,"options.signal");let pe=arguments.length>1;if(re!=null&&(we=re.signal)!==null&&we!==void 0&&we.aborted){let ve=new t(void 0,{cause:re.signal.reason});throw this.once("error",()=>{}),await g(this.destroy(ve)),ve}let L=new s,H=L.signal;if(re!=null&&re.signal){let ve={once:!0,[d]:this,[p]:!0};re.signal.addEventListener("abort",()=>L.abort(),ve)}let se=!1;try{for await(let ve of this){var be;if(se=!0,re!=null&&(be=re.signal)!==null&&be!==void 0&&be.aborted)throw new t;pe?J=await X(J,ve,{signal:H}):(J=ve,pe=!0)}if(!se&&!pe)throw new ee}finally{L.abort()}return J}async function ue(X){X!=null&&l(X,"options"),X?.signal!=null&&e(X.signal,"options.signal");let J=[];for await(let we of this){var re;if(X!=null&&(re=X.signal)!==null&&re!==void 0&&re.aborted)throw new t(void 0,{cause:X.signal.reason});v(J,we)}return J}function Ae(X,J){let re=he.call(this,X,J);return(async function*(){for await(let we of re)yield*we}).call(this)}function Y(X){if(X=C(X),w(X))return 0;if(X<0)throw new r("number",">= 0",X);return X}function W(X,J=void 0){return J!=null&&l(J,"options"),J?.signal!=null&&e(J.signal,"options.signal"),X=Y(X),(async function*(){var re;if(J!=null&&(re=J.signal)!==null&&re!==void 0&&re.aborted)throw new t;for await(let pe of this){var we;if(J!=null&&(we=J.signal)!==null&&we!==void 0&&we.aborted)throw new t;X--<=0&&(yield pe)}}).call(this)}function oe(X,J=void 0){return J!=null&&l(J,"options"),J?.signal!=null&&e(J.signal,"options.signal"),X=Y(X),(async function*(){var re;if(J!=null&&(re=J.signal)!==null&&re!==void 0&&re.aborted)throw new t;for await(let pe of this){var we;if(J!=null&&(we=J.signal)!==null&&we!==void 0&&we.aborted)throw new t;if(X-- >0&&(yield pe),X<=0)return}}).call(this)}h.exports.streamReturningOperators={asIndexedPairs:y(ne,"readable.asIndexedPairs will be removed in a future version."),drop:W,filter:M,flatMap:Ae,map:he,take:oe,compose:q},h.exports.promiseReturningOperators={every:ce,forEach:le,reduce:Z,toArray:ue,some:te,find:V}}),sa=Se((f,h)=>{ge(),me(),ye();var{ArrayPrototypePop:s,Promise:a}=Ze(),{isIterable:c,isNodeStream:n,isWebStream:r}=Ct(),{pipelineImpl:t}=fo(),{finished:e}=Vt();aa();function i(...l){return new a((d,p)=>{let g,b,E=l[l.length-1];if(E&&typeof E=="object"&&!n(E)&&!c(E)&&!r(E)){let S=s(l);g=S.signal,b=S.end}t(l,(S,x)=>{S?p(S):d(x)},{signal:g,end:b})})}h.exports={finished:e,pipeline:i}}),aa=Se((f,h)=>{ge(),me(),ye();var{Buffer:s}=(st(),Ke(ot)),{ObjectDefineProperty:a,ObjectKeys:c,ReflectApply:n}=Ze(),{promisify:{custom:r}}=gt(),{streamReturningOperators:t,promiseReturningOperators:e}=Jl(),{codes:{ERR_ILLEGAL_CONSTRUCTOR:i}}=pt(),l=oa(),{setDefaultHighWaterMark:d,getDefaultHighWaterMark:p}=Jr(),{pipeline:g}=fo(),{destroyer:b}=sr(),E=Vt(),S=sa(),x=Ct(),y=h.exports=co().Stream;y.isDestroyed=x.isDestroyed,y.isDisturbed=x.isDisturbed,y.isErrored=x.isErrored,y.isReadable=x.isReadable,y.isWritable=x.isWritable,y.Readable=Xr();for(let A of c(t)){let _=function(...w){if(new.target)throw i();return y.Readable.from(n(C,this,w))},C=t[A];a(_,"name",{__proto__:null,value:C.name}),a(_,"length",{__proto__:null,value:C.length}),a(y.Readable.prototype,A,{__proto__:null,value:_,enumerable:!1,configurable:!0,writable:!0})}for(let A of c(e)){let _=function(...w){if(new.target)throw i();return n(C,this,w)},C=e[A];a(_,"name",{__proto__:null,value:C.name}),a(_,"length",{__proto__:null,value:C.length}),a(y.Readable.prototype,A,{__proto__:null,value:_,enumerable:!1,configurable:!0,writable:!0})}y.Writable=ho(),y.Duplex=kt(),y.Transform=na(),y.PassThrough=ia(),y.pipeline=g;var{addAbortSignal:v}=Yr();y.addAbortSignal=v,y.finished=E,y.destroy=b,y.compose=l,y.setDefaultHighWaterMark=d,y.getDefaultHighWaterMark=p,a(y,"promises",{__proto__:null,configurable:!0,enumerable:!0,get(){return S}}),a(g,r,{__proto__:null,enumerable:!0,get(){return S.pipeline}}),a(E,r,{__proto__:null,enumerable:!0,get(){return S.finished}}),y.Stream=y,y._isUint8Array=function(A){return A instanceof Uint8Array},y._uint8ArrayToBuffer=function(A){return s.from(A.buffer,A.byteOffset,A.byteLength)}}),tr=Se((f,h)=>{ge(),me(),ye();var s=aa(),a=sa(),c=s.Readable.destroy;h.exports=s.Readable,h.exports._uint8ArrayToBuffer=s._uint8ArrayToBuffer,h.exports._isUint8Array=s._isUint8Array,h.exports.isDisturbed=s.isDisturbed,h.exports.isErrored=s.isErrored,h.exports.isReadable=s.isReadable,h.exports.Readable=s.Readable,h.exports.Writable=s.Writable,h.exports.Duplex=s.Duplex,h.exports.Transform=s.Transform,h.exports.PassThrough=s.PassThrough,h.exports.addAbortSignal=s.addAbortSignal,h.exports.finished=s.finished,h.exports.destroy=s.destroy,h.exports.destroy=c,h.exports.pipeline=s.pipeline,h.exports.compose=s.compose,Object.defineProperty(s,"promises",{configurable:!0,enumerable:!0,get(){return a}}),h.exports.Stream=s.Stream,h.exports.default=h.exports}),Xl=Se((f,h)=>{ge(),me(),ye(),typeof Object.create=="function"?h.exports=function(s,a){a&&(s.super_=a,s.prototype=Object.create(a.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}))}:h.exports=function(s,a){if(a){s.super_=a;var c=function(){};c.prototype=a.prototype,s.prototype=new c,s.prototype.constructor=s}}}),Zl=Se((f,h)=>{ge(),me(),ye();var{Buffer:s}=(st(),Ke(ot)),a=Symbol.for("BufferList");function c(n){if(!(this instanceof c))return new c(n);c._init.call(this,n)}c._init=function(n){Object.defineProperty(this,a,{value:!0}),this._bufs=[],this.length=0,n&&this.append(n)},c.prototype._new=function(n){return new c(n)},c.prototype._offset=function(n){if(n===0)return[0,0];let r=0;for(let t=0;tthis.length||n<0)return;let r=this._offset(n);return this._bufs[r[0]][r[1]]},c.prototype.slice=function(n,r){return typeof n=="number"&&n<0&&(n+=this.length),typeof r=="number"&&r<0&&(r+=this.length),this.copy(null,0,n,r)},c.prototype.copy=function(n,r,t,e){if((typeof t!="number"||t<0)&&(t=0),(typeof e!="number"||e>this.length)&&(e=this.length),t>=this.length||e<=0)return n||s.alloc(0);let i=!!n,l=this._offset(t),d=e-t,p=d,g=i&&r||0,b=l[1];if(t===0&&e===this.length){if(!i)return this._bufs.length===1?this._bufs[0]:s.concat(this._bufs,this.length);for(let E=0;ES)this._bufs[E].copy(n,g,b),g+=S;else{this._bufs[E].copy(n,g,b,b+p),g+=S;break}p-=S,b&&(b=0)}return n.length>g?n.slice(0,g):n},c.prototype.shallowSlice=function(n,r){if(n=n||0,r=typeof r!="number"?this.length:r,n<0&&(n+=this.length),r<0&&(r+=this.length),n===r)return this._new();let t=this._offset(n),e=this._offset(r),i=this._bufs.slice(t[0],e[0]+1);return e[1]===0?i.pop():i[i.length-1]=i[i.length-1].slice(0,e[1]),t[1]!==0&&(i[0]=i[0].slice(t[1])),this._new(i)},c.prototype.toString=function(n,r,t){return this.slice(r,t).toString(n)},c.prototype.consume=function(n){if(n=Math.trunc(n),Number.isNaN(n)||n<=0)return this;for(;this._bufs.length;)if(n>=this._bufs[0].length)n-=this._bufs[0].length,this.length-=this._bufs[0].length,this._bufs.shift();else{this._bufs[0]=this._bufs[0].slice(n),this.length-=n;break}return this},c.prototype.duplicate=function(){let n=this._new();for(let r=0;r=0&&l=0&&lthis.length?this.length:r;let e=this._offset(r),i=e[0],l=e[1];for(;i=n.length){let p=d.indexOf(n,l);if(p!==-1)return this._reverseOffset([i,p]);l=d.length-n.length+1}else{let p=this._reverseOffset([i,l]);if(this._match(p,n))return p;l++}l=0}return-1},c.prototype._match=function(n,r){if(this.length-n{ge(),me(),ye();var s=tr().Duplex,a=Xl(),c=Zl();function n(r){if(!(this instanceof n))return new n(r);if(typeof r=="function"){this._callback=r;let t=(function(e){this._callback&&(this._callback(e),this._callback=null)}).bind(this);this.on("pipe",function(e){e.on("error",t)}),this.on("unpipe",function(e){e.removeListener("error",t)}),r=null}c._init.call(this,r),s.call(this)}a(n,s),Object.assign(n.prototype,c.prototype),n.prototype._new=function(r){return new n(r)},n.prototype._write=function(r,t,e){this._appendBuffer(r),typeof e=="function"&&e()},n.prototype._read=function(r){if(!this.length)return this.push(null);r=Math.min(r,this.length),this.push(this.slice(0,r)),this.consume(r)},n.prototype.end=function(r){s.prototype.end.call(this,r),this._callback&&(this._callback(null,this.slice()),this._callback=null)},n.prototype._destroy=function(r,t){this._bufs.length=0,this.length=0,t(r)},n.prototype._isBufferList=function(r){return r instanceof n||r instanceof c||n.isBufferList(r)},n.isBufferList=c.isBufferList,h.exports=n,h.exports.BufferListStream=n,h.exports.BufferList=c}),tu=Se((f,h)=>{ge(),me(),ye();var s=class{constructor(){this.cmd=null,this.retain=!1,this.qos=0,this.dup=!1,this.length=-1,this.topic=null,this.payload=null}};h.exports=s}),la=Se((f,h)=>{ge(),me(),ye();var s=h.exports,{Buffer:a}=(st(),Ke(ot));s.types={0:"reserved",1:"connect",2:"connack",3:"publish",4:"puback",5:"pubrec",6:"pubrel",7:"pubcomp",8:"subscribe",9:"suback",10:"unsubscribe",11:"unsuback",12:"pingreq",13:"pingresp",14:"disconnect",15:"auth"},s.requiredHeaderFlags={1:0,2:0,4:0,5:0,6:2,7:0,8:2,9:0,10:2,11:0,12:0,13:0,14:0,15:0},s.requiredHeaderFlagsErrors={};for(let n in s.requiredHeaderFlags){let r=s.requiredHeaderFlags[n];s.requiredHeaderFlagsErrors[n]="Invalid header flag bits, must be 0x"+r.toString(16)+" for "+s.types[n]+" packet"}s.codes={};for(let n in s.types){let r=s.types[n];s.codes[r]=n}s.CMD_SHIFT=4,s.CMD_MASK=240,s.DUP_MASK=8,s.QOS_MASK=3,s.QOS_SHIFT=1,s.RETAIN_MASK=1,s.VARBYTEINT_MASK=127,s.VARBYTEINT_FIN_MASK=128,s.VARBYTEINT_MAX=268435455,s.SESSIONPRESENT_MASK=1,s.SESSIONPRESENT_HEADER=a.from([s.SESSIONPRESENT_MASK]),s.CONNACK_HEADER=a.from([s.codes.connack<[0,1].map(t=>[0,1].map(e=>{let i=a.alloc(1);return i.writeUInt8(s.codes[n]<a.from([n])),s.EMPTY={pingreq:a.from([s.codes.pingreq<<4,0]),pingresp:a.from([s.codes.pingresp<<4,0]),disconnect:a.from([s.codes.disconnect<<4,0])},s.MQTT5_PUBACK_PUBREC_CODES={0:"Success",16:"No matching subscribers",128:"Unspecified error",131:"Implementation specific error",135:"Not authorized",144:"Topic Name invalid",145:"Packet identifier in use",151:"Quota exceeded",153:"Payload format invalid"},s.MQTT5_PUBREL_PUBCOMP_CODES={0:"Success",146:"Packet Identifier not found"},s.MQTT5_SUBACK_CODES={0:"Granted QoS 0",1:"Granted QoS 1",2:"Granted QoS 2",128:"Unspecified error",131:"Implementation specific error",135:"Not authorized",143:"Topic Filter invalid",145:"Packet Identifier in use",151:"Quota exceeded",158:"Shared Subscriptions not supported",161:"Subscription Identifiers not supported",162:"Wildcard Subscriptions not supported"},s.MQTT5_UNSUBACK_CODES={0:"Success",17:"No subscription existed",128:"Unspecified error",131:"Implementation specific error",135:"Not authorized",143:"Topic Filter invalid",145:"Packet Identifier in use"},s.MQTT5_DISCONNECT_CODES={0:"Normal disconnection",4:"Disconnect with Will Message",128:"Unspecified error",129:"Malformed Packet",130:"Protocol Error",131:"Implementation specific error",135:"Not authorized",137:"Server busy",139:"Server shutting down",141:"Keep Alive timeout",142:"Session taken over",143:"Topic Filter invalid",144:"Topic Name invalid",147:"Receive Maximum exceeded",148:"Topic Alias invalid",149:"Packet too large",150:"Message rate too high",151:"Quota exceeded",152:"Administrative action",153:"Payload format invalid",154:"Retain not supported",155:"QoS not supported",156:"Use another server",157:"Server moved",158:"Shared Subscriptions not supported",159:"Connection rate exceeded",160:"Maximum connect time",161:"Subscription Identifiers not supported",162:"Wildcard Subscriptions not supported"},s.MQTT5_AUTH_CODES={0:"Success",24:"Continue authentication",25:"Re-authenticate"}}),ru=Se((f,h)=>{ge(),me(),ye();var s=1e3,a=s*60,c=a*60,n=c*24,r=n*7,t=n*365.25;h.exports=function(p,g){g=g||{};var b=typeof p;if(b==="string"&&p.length>0)return e(p);if(b==="number"&&isFinite(p))return g.long?l(p):i(p);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(p))};function e(p){if(p=String(p),!(p.length>100)){var g=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(p);if(g){var b=parseFloat(g[1]),E=(g[2]||"ms").toLowerCase();switch(E){case"years":case"year":case"yrs":case"yr":case"y":return b*t;case"weeks":case"week":case"w":return b*r;case"days":case"day":case"d":return b*n;case"hours":case"hour":case"hrs":case"hr":case"h":return b*c;case"minutes":case"minute":case"mins":case"min":case"m":return b*a;case"seconds":case"second":case"secs":case"sec":case"s":return b*s;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return b;default:return}}}}function i(p){var g=Math.abs(p);return g>=n?Math.round(p/n)+"d":g>=c?Math.round(p/c)+"h":g>=a?Math.round(p/a)+"m":g>=s?Math.round(p/s)+"s":p+"ms"}function l(p){var g=Math.abs(p);return g>=n?d(p,g,n,"day"):g>=c?d(p,g,c,"hour"):g>=a?d(p,g,a,"minute"):g>=s?d(p,g,s,"second"):p+" ms"}function d(p,g,b,E){var S=g>=b*1.5;return Math.round(p/b)+" "+E+(S?"s":"")}}),nu=Se((f,h)=>{ge(),me(),ye();function s(a){n.debug=n,n.default=n,n.coerce=d,n.disable=i,n.enable=t,n.enabled=l,n.humanize=ru(),n.destroy=p,Object.keys(a).forEach(g=>{n[g]=a[g]}),n.names=[],n.skips=[],n.formatters={};function c(g){let b=0;for(let E=0;E{if(I==="%%")return"%";w++;let j=n.formatters[k];if(typeof j=="function"){let U=v[w];I=j.call(A,U),v.splice(w,1),w--}return I}),n.formatArgs.call(A,v),(A.log||n.log).apply(A,v)}return y.namespace=g,y.useColors=n.useColors(),y.color=n.selectColor(g),y.extend=r,y.destroy=n.destroy,Object.defineProperty(y,"enabled",{enumerable:!0,configurable:!1,get:()=>E!==null?E:(S!==n.namespaces&&(S=n.namespaces,x=n.enabled(g)),x),set:v=>{E=v}}),typeof n.init=="function"&&n.init(y),y}function r(g,b){let E=n(this.namespace+(typeof b>"u"?":":b)+g);return E.log=this.log,E}function t(g){n.save(g),n.namespaces=g,n.names=[],n.skips=[];let b=(typeof g=="string"?g:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let E of b)E[0]==="-"?n.skips.push(E.slice(1)):n.names.push(E)}function e(g,b){let E=0,S=0,x=-1,y=0;for(;E"-"+b)].join(",");return n.enable(""),g}function l(g){for(let b of n.skips)if(e(g,b))return!1;for(let b of n.names)if(e(g,b))return!0;return!1}function d(g){return g instanceof Error?g.stack||g.message:g}function p(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return n.enable(n.load()),n}h.exports=s}),Tt=Se((f,h)=>{ge(),me(),ye(),f.formatArgs=a,f.save=c,f.load=n,f.useColors=s,f.storage=r(),f.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),f.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function s(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function a(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+h.exports.humanize(this.diff),!this.useColors)return;let i="color: "+this.color;e.splice(1,0,i,"color: inherit");let l=0,d=0;e[0].replace(/%[a-zA-Z%]/g,p=>{p!=="%%"&&(l++,p==="%c"&&(d=l))}),e.splice(d,0,i)}f.log=console.debug||console.log||(()=>{});function c(e){try{e?f.storage.setItem("debug",e):f.storage.removeItem("debug")}catch{}}function n(){let e;try{e=f.storage.getItem("debug")||f.storage.getItem("DEBUG")}catch{}return!e&&typeof Ge<"u"&&"env"in Ge&&(e=Ge.env.DEBUG),e}function r(){try{return localStorage}catch{}}h.exports=nu()(f);var{formatters:t}=h.exports;t.j=function(e){try{return JSON.stringify(e)}catch(i){return"[UnexpectedJSONParseError]: "+i.message}}}),iu=Se((f,h)=>{ge(),me(),ye();var s=eu(),{EventEmitter:a}=(Zt(),Ke(qt)),c=tu(),n=la(),r=Tt()("mqtt-packet:parser"),t=class gi extends a{constructor(){super(),this.parser=this.constructor.parser}static parser(i){return this instanceof gi?(this.settings=i||{},this._states=["_parseHeader","_parseLength","_parsePayload","_newPacket"],this._resetState(),this):new gi().parser(i)}_resetState(){r("_resetState: resetting packet, error, _list, and _stateCounter"),this.packet=new c,this.error=null,this._list=s(),this._stateCounter=0}parse(i){for(this.error&&this._resetState(),this._list.append(i),r("parse: current state: %s",this._states[this._stateCounter]);(this.packet.length!==-1||this._list.length>0)&&this[this._states[this._stateCounter]]()&&!this.error;)this._stateCounter++,r("parse: state complete. _stateCounter is now: %d",this._stateCounter),r("parse: packet.length: %d, buffer list length: %d",this.packet.length,this._list.length),this._stateCounter>=this._states.length&&(this._stateCounter=0);return r("parse: exited while loop. packet: %d, buffer list length: %d",this.packet.length,this._list.length),this._list.length}_parseHeader(){let i=this._list.readUInt8(0),l=i>>n.CMD_SHIFT;this.packet.cmd=n.types[l];let d=i&15,p=n.requiredHeaderFlags[l];return p!=null&&d!==p?this._emitError(new Error(n.requiredHeaderFlagsErrors[l])):(this.packet.retain=(i&n.RETAIN_MASK)!==0,this.packet.qos=i>>n.QOS_SHIFT&n.QOS_MASK,this.packet.qos>2?this._emitError(new Error("Packet must not have both QoS bits set to 1")):(this.packet.dup=(i&n.DUP_MASK)!==0,r("_parseHeader: packet: %o",this.packet),this._list.consume(1),!0))}_parseLength(){let i=this._parseVarByteNum(!0);return i&&(this.packet.length=i.value,this._list.consume(i.bytes)),r("_parseLength %d",i.value),!!i}_parsePayload(){r("_parsePayload: payload %O",this._list);let i=!1;if(this.packet.length===0||this._list.length>=this.packet.length){switch(this._pos=0,this.packet.cmd){case"connect":this._parseConnect();break;case"connack":this._parseConnack();break;case"publish":this._parsePublish();break;case"puback":case"pubrec":case"pubrel":case"pubcomp":this._parseConfirmation();break;case"subscribe":this._parseSubscribe();break;case"suback":this._parseSuback();break;case"unsubscribe":this._parseUnsubscribe();break;case"unsuback":this._parseUnsuback();break;case"pingreq":case"pingresp":break;case"disconnect":this._parseDisconnect();break;case"auth":this._parseAuth();break;default:this._emitError(new Error("Not supported"))}i=!0}return r("_parsePayload complete result: %s",i),i}_parseConnect(){r("_parseConnect");let i,l,d,p,g={},b=this.packet,E=this._parseString();if(E===null)return this._emitError(new Error("Cannot parse protocolId"));if(E!=="MQTT"&&E!=="MQIsdp")return this._emitError(new Error("Invalid protocolId"));if(b.protocolId=E,this._pos>=this._list.length)return this._emitError(new Error("Packet too short"));if(b.protocolVersion=this._list.readUInt8(this._pos),b.protocolVersion>=128&&(b.bridgeMode=!0,b.protocolVersion=b.protocolVersion-128),b.protocolVersion!==3&&b.protocolVersion!==4&&b.protocolVersion!==5)return this._emitError(new Error("Invalid protocol version"));if(this._pos++,this._pos>=this._list.length)return this._emitError(new Error("Packet too short"));if(this._list.readUInt8(this._pos)&1)return this._emitError(new Error("Connect flag bit 0 must be 0, but got 1"));g.username=this._list.readUInt8(this._pos)&n.USERNAME_MASK,g.password=this._list.readUInt8(this._pos)&n.PASSWORD_MASK,g.will=this._list.readUInt8(this._pos)&n.WILL_FLAG_MASK;let S=!!(this._list.readUInt8(this._pos)&n.WILL_RETAIN_MASK),x=(this._list.readUInt8(this._pos)&n.WILL_QOS_MASK)>>n.WILL_QOS_SHIFT;if(g.will)b.will={},b.will.retain=S,b.will.qos=x;else{if(S)return this._emitError(new Error("Will Retain Flag must be set to zero when Will Flag is set to 0"));if(x)return this._emitError(new Error("Will QoS must be set to zero when Will Flag is set to 0"))}if(b.clean=(this._list.readUInt8(this._pos)&n.CLEAN_SESSION_MASK)!==0,this._pos++,b.keepalive=this._parseNum(),b.keepalive===-1)return this._emitError(new Error("Packet too short"));if(b.protocolVersion===5){let v=this._parseProperties();Object.getOwnPropertyNames(v).length&&(b.properties=v)}let y=this._parseString();if(y===null)return this._emitError(new Error("Packet too short"));if(b.clientId=y,r("_parseConnect: packet.clientId: %s",b.clientId),g.will){if(b.protocolVersion===5){let v=this._parseProperties();Object.getOwnPropertyNames(v).length&&(b.will.properties=v)}if(i=this._parseString(),i===null)return this._emitError(new Error("Cannot parse will topic"));if(b.will.topic=i,r("_parseConnect: packet.will.topic: %s",b.will.topic),l=this._parseBuffer(),l===null)return this._emitError(new Error("Cannot parse will payload"));b.will.payload=l,r("_parseConnect: packet.will.paylaod: %s",b.will.payload)}if(g.username){if(p=this._parseString(),p===null)return this._emitError(new Error("Cannot parse username"));b.username=p,r("_parseConnect: packet.username: %s",b.username)}if(g.password){if(d=this._parseBuffer(),d===null)return this._emitError(new Error("Cannot parse password"));b.password=d}return this.settings=b,r("_parseConnect: complete"),b}_parseConnack(){r("_parseConnack");let i=this.packet;if(this._list.length<1)return null;let l=this._list.readUInt8(this._pos++);if(l>1)return this._emitError(new Error("Invalid connack flags, bits 7-1 must be set to 0"));if(i.sessionPresent=!!(l&n.SESSIONPRESENT_MASK),this.settings.protocolVersion===5)this._list.length>=2?i.reasonCode=this._list.readUInt8(this._pos++):i.reasonCode=0;else{if(this._list.length<2)return null;i.returnCode=this._list.readUInt8(this._pos++)}if(i.returnCode===-1||i.reasonCode===-1)return this._emitError(new Error("Cannot parse return code"));if(this.settings.protocolVersion===5){let d=this._parseProperties();Object.getOwnPropertyNames(d).length&&(i.properties=d)}r("_parseConnack: complete")}_parsePublish(){r("_parsePublish");let i=this.packet;if(i.topic=this._parseString(),i.topic===null)return this._emitError(new Error("Cannot parse topic"));if(!(i.qos>0&&!this._parseMessageId())){if(this.settings.protocolVersion===5){let l=this._parseProperties();Object.getOwnPropertyNames(l).length&&(i.properties=l)}i.payload=this._list.slice(this._pos,i.length),r("_parsePublish: payload from buffer list: %o",i.payload)}}_parseSubscribe(){r("_parseSubscribe");let i=this.packet,l,d,p,g,b,E,S;if(i.subscriptions=[],!!this._parseMessageId()){if(this.settings.protocolVersion===5){let x=this._parseProperties();Object.getOwnPropertyNames(x).length&&(i.properties=x)}if(i.length<=0)return this._emitError(new Error("Malformed subscribe, no payload specified"));for(;this._pos=i.length)return this._emitError(new Error("Malformed Subscribe Payload"));if(d=this._parseByte(),this.settings.protocolVersion===5){if(d&192)return this._emitError(new Error("Invalid subscribe topic flag bits, bits 7-6 must be 0"))}else if(d&252)return this._emitError(new Error("Invalid subscribe topic flag bits, bits 7-2 must be 0"));if(p=d&n.SUBSCRIBE_OPTIONS_QOS_MASK,p>2)return this._emitError(new Error("Invalid subscribe QoS, must be <= 2"));if(E=(d>>n.SUBSCRIBE_OPTIONS_NL_SHIFT&n.SUBSCRIBE_OPTIONS_NL_MASK)!==0,b=(d>>n.SUBSCRIBE_OPTIONS_RAP_SHIFT&n.SUBSCRIBE_OPTIONS_RAP_MASK)!==0,g=d>>n.SUBSCRIBE_OPTIONS_RH_SHIFT&n.SUBSCRIBE_OPTIONS_RH_MASK,g>2)return this._emitError(new Error("Invalid retain handling, must be <= 2"));S={topic:l,qos:p},this.settings.protocolVersion===5?(S.nl=E,S.rap=b,S.rh=g):this.settings.bridgeMode&&(S.rh=0,S.rap=!0,S.nl=!0),r("_parseSubscribe: push subscription `%s` to subscription",S),i.subscriptions.push(S)}}}_parseSuback(){r("_parseSuback");let i=this.packet;if(this.packet.granted=[],!!this._parseMessageId()){if(this.settings.protocolVersion===5){let l=this._parseProperties();Object.getOwnPropertyNames(l).length&&(i.properties=l)}if(i.length<=0)return this._emitError(new Error("Malformed suback, no payload specified"));for(;this._pos2&&l!==128)return this._emitError(new Error("Invalid suback QoS, must be 0, 1, 2 or 128"));this.packet.granted.push(l)}}}_parseUnsubscribe(){r("_parseUnsubscribe");let i=this.packet;if(i.unsubscriptions=[],!!this._parseMessageId()){if(this.settings.protocolVersion===5){let l=this._parseProperties();Object.getOwnPropertyNames(l).length&&(i.properties=l)}if(i.length<=0)return this._emitError(new Error("Malformed unsubscribe, no payload specified"));for(;this._pos2){switch(i.reasonCode=this._parseByte(),this.packet.cmd){case"puback":case"pubrec":if(!n.MQTT5_PUBACK_PUBREC_CODES[i.reasonCode])return this._emitError(new Error("Invalid "+this.packet.cmd+" reason code"));break;case"pubrel":case"pubcomp":if(!n.MQTT5_PUBREL_PUBCOMP_CODES[i.reasonCode])return this._emitError(new Error("Invalid "+this.packet.cmd+" reason code"));break}r("_parseConfirmation: packet.reasonCode `%d`",i.reasonCode)}else i.reasonCode=0;if(i.length>3){let l=this._parseProperties();Object.getOwnPropertyNames(l).length&&(i.properties=l)}}return!0}_parseDisconnect(){let i=this.packet;if(r("_parseDisconnect"),this.settings.protocolVersion===5){this._list.length>0?(i.reasonCode=this._parseByte(),n.MQTT5_DISCONNECT_CODES[i.reasonCode]||this._emitError(new Error("Invalid disconnect reason code"))):i.reasonCode=0;let l=this._parseProperties();Object.getOwnPropertyNames(l).length&&(i.properties=l)}return r("_parseDisconnect result: true"),!0}_parseAuth(){r("_parseAuth");let i=this.packet;if(this.settings.protocolVersion!==5)return this._emitError(new Error("Not supported auth packet for this version MQTT"));if(i.reasonCode=this._parseByte(),!n.MQTT5_AUTH_CODES[i.reasonCode])return this._emitError(new Error("Invalid auth reason code"));let l=this._parseProperties();return Object.getOwnPropertyNames(l).length&&(i.properties=l),r("_parseAuth: result: true"),!0}_parseMessageId(){let i=this.packet;return i.messageId=this._parseNum(),i.messageId===null?(this._emitError(new Error("Cannot parse messageId")),!1):(r("_parseMessageId: packet.messageId %d",i.messageId),!0)}_parseString(i){let l=this._parseNum(),d=l+this._pos;if(l===-1||d>this._list.length||d>this.packet.length)return null;let p=this._list.toString("utf8",this._pos,d);return this._pos+=l,r("_parseString: result: %s",p),p}_parseStringPair(){return r("_parseStringPair"),{name:this._parseString(),value:this._parseString()}}_parseBuffer(){let i=this._parseNum(),l=i+this._pos;if(i===-1||l>this._list.length||l>this.packet.length)return null;let d=this._list.slice(this._pos,l);return this._pos+=i,r("_parseBuffer: result: %o",d),d}_parseNum(){if(this._list.length-this._pos<2)return-1;let i=this._list.readUInt16BE(this._pos);return this._pos+=2,r("_parseNum: result: %s",i),i}_parse4ByteNum(){if(this._list.length-this._pos<4)return-1;let i=this._list.readUInt32BE(this._pos);return this._pos+=4,r("_parse4ByteNum: result: %s",i),i}_parseVarByteNum(i){r("_parseVarByteNum");let l=4,d=0,p=1,g=0,b=!1,E,S=this._pos?this._pos:0;for(;d=d&&this._emitError(new Error("Invalid variable byte integer")),S&&(this._pos+=d),b?i?b={bytes:d,value:g}:b=g:b=!1,r("_parseVarByteNum: result: %o",b),b}_parseByte(){let i;return this._pos{ge(),me(),ye();var{Buffer:s}=(st(),Ke(ot)),a=65536,c={},n=s.isBuffer(s.from([1,2]).subarray(0,1));function r(l){let d=s.allocUnsafe(2);return d.writeUInt8(l>>8,0),d.writeUInt8(l&255,1),d}function t(){for(let l=0;l0&&(d=d|128),g.writeUInt8(d,p++);while(l>0&&p<4);return l>0&&(p=0),n?g.subarray(0,p):g.slice(0,p)}function i(l){let d=s.allocUnsafe(4);return d.writeUInt32BE(l,0),d}h.exports={cache:c,generateCache:t,generateNumber:r,genBufVariableByteInt:e,generate4ByteBuffer:i}}),su=Se((f,h)=>{ge(),me(),ye(),typeof Ge>"u"||!Ge.version||Ge.version.indexOf("v0.")===0||Ge.version.indexOf("v1.")===0&&Ge.version.indexOf("v1.8.")!==0?h.exports={nextTick:s}:h.exports=Ge;function s(a,c,n,r){if(typeof a!="function")throw new TypeError('"callback" argument must be a function');var t=arguments.length,e,i;switch(t){case 0:case 1:return Ge.nextTick(a);case 2:return Ge.nextTick(function(){a.call(null,c)});case 3:return Ge.nextTick(function(){a.call(null,c,n)});case 4:return Ge.nextTick(function(){a.call(null,c,n,r)});default:for(e=new Array(t-1),i=0;i{ge(),me(),ye();var s=la(),{Buffer:a}=(st(),Ke(ot)),c=a.allocUnsafe(0),n=a.from([0]),r=ou(),t=su().nextTick,e=Tt()("mqtt-packet:writeToStream"),i=r.cache,l=r.generateNumber,d=r.generateCache,p=r.genBufVariableByteInt,g=r.generate4ByteBuffer,b=ne,E=!0;function S(Y,W,oe){switch(e("generate called"),W.cork&&(W.cork(),t(x,W)),E&&(E=!1,d()),e("generate: packet.cmd: %s",Y.cmd),Y.cmd){case"connect":return y(Y,W);case"connack":return v(Y,W,oe);case"publish":return A(Y,W,oe);case"puback":case"pubrec":case"pubrel":case"pubcomp":return _(Y,W,oe);case"subscribe":return C(Y,W,oe);case"suback":return w(Y,W,oe);case"unsubscribe":return I(Y,W,oe);case"unsuback":return k(Y,W,oe);case"pingreq":case"pingresp":return j(Y,W);case"disconnect":return U(Y,W,oe);case"auth":return P(Y,W,oe);default:return W.destroy(new Error("Unknown command")),!1}}Object.defineProperty(S,"cacheNumbers",{get(){return b===ne},set(Y){Y?((!i||Object.keys(i).length===0)&&(E=!0),b=ne):(E=!1,b=te)}});function x(Y){Y.uncork()}function y(Y,W,oe){let X=Y||{},J=X.protocolId||"MQTT",re=X.protocolVersion||4,we=X.will,pe=X.clean,L=X.keepalive||0,H=X.clientId||"",se=X.username,be=X.password,ve=X.properties;pe===void 0&&(pe=!0);let Ee=0;if(typeof J!="string"&&!a.isBuffer(J))return W.destroy(new Error("Invalid protocolId")),!1;if(Ee+=J.length+2,re!==3&&re!==4&&re!==5)return W.destroy(new Error("Invalid protocol version")),!1;if(Ee+=1,(typeof H=="string"||a.isBuffer(H))&&(H||re>=4)&&(H||pe))Ee+=a.byteLength(H)+2;else{if(re<4)return W.destroy(new Error("clientId must be supplied before 3.1.1")),!1;if(pe*1===0)return W.destroy(new Error("clientId must be given if cleanSession set to 0")),!1}if(typeof L!="number"||L<0||L>65535||L%1!==0)return W.destroy(new Error("Invalid keepalive")),!1;Ee+=2,Ee+=1;let Q,_e;if(re===5){if(Q=le(W,ve),!Q)return!1;Ee+=Q.length}if(we){if(typeof we!="object")return W.destroy(new Error("Invalid will")),!1;if(!we.topic||typeof we.topic!="string")return W.destroy(new Error("Invalid will topic")),!1;if(Ee+=a.byteLength(we.topic)+2,Ee+=2,we.payload)if(we.payload.length>=0)typeof we.payload=="string"?Ee+=a.byteLength(we.payload):Ee+=we.payload.length;else return W.destroy(new Error("Invalid will payload")),!1;if(_e={},re===5){if(_e=le(W,we.properties),!_e)return!1;Ee+=_e.length}}let Oe=!1;if(se!=null)if(Ae(se))Oe=!0,Ee+=a.byteLength(se)+2;else return W.destroy(new Error("Invalid username")),!1;if(be!=null){if(!Oe)return W.destroy(new Error("Username is required to use password")),!1;if(Ae(be))Ee+=ue(be)+2;else return W.destroy(new Error("Invalid password")),!1}W.write(s.CONNECT_HEADER),G(W,Ee),V(W,J),X.bridgeMode&&(re+=128),W.write(re===131?s.VERSION131:re===132?s.VERSION132:re===4?s.VERSION4:re===5?s.VERSION5:s.VERSION3);let fe=0;return fe|=se!=null?s.USERNAME_MASK:0,fe|=be!=null?s.PASSWORD_MASK:0,fe|=we&&we.retain?s.WILL_RETAIN_MASK:0,fe|=we&&we.qos?we.qos<0&&b(W,H),ve?.write(),e("publish: payload: %o",L),W.write(L)}function _(Y,W,oe){let X=oe?oe.protocolVersion:4,J=Y||{},re=J.cmd||"puback",we=J.messageId,pe=J.dup&&re==="pubrel"?s.DUP_MASK:0,L=0,H=J.reasonCode,se=J.properties,be=X===5?3:2;if(re==="pubrel"&&(L=1),typeof we!="number")return W.destroy(new Error("Invalid messageId")),!1;let ve=null;if(X===5&&typeof se=="object"){if(ve=M(W,se,oe,be),!ve)return!1;be+=ve.length}return W.write(s.ACKS[re][L][pe][0]),be===3&&(be+=H!==0?1:-1),G(W,be),b(W,we),X===5&&be!==2&&W.write(a.from([H])),ve!==null?ve.write():be===4&&W.write(a.from([0])),!0}function C(Y,W,oe){e("subscribe: packet: ");let X=oe?oe.protocolVersion:4,J=Y||{},re=J.dup?s.DUP_MASK:0,we=J.messageId,pe=J.subscriptions,L=J.properties,H=0;if(typeof we!="number")return W.destroy(new Error("Invalid messageId")),!1;H+=2;let se=null;if(X===5){if(se=le(W,L),!se)return!1;H+=se.length}if(typeof pe=="object"&&pe.length)for(let ve=0;ve2)return W.destroy(new Error("Invalid subscriptions - invalid Retain Handling")),!1}H+=a.byteLength(Ee)+2+1}else return W.destroy(new Error("Invalid subscriptions")),!1;e("subscribe: writing to stream: %o",s.SUBSCRIBE_HEADER),W.write(s.SUBSCRIBE_HEADER[1][re?1:0][0]),G(W,H),b(W,we),se!==null&&se.write();let be=!0;for(let ve of pe){let Ee=ve.topic,Q=ve.qos,_e=+ve.nl,Oe=+ve.rap,fe=ve.rh,Be;q(W,Ee),Be=s.SUBSCRIBE_OPTIONS_QOS[Q],X===5&&(Be|=_e?s.SUBSCRIBE_OPTIONS_NL:0,Be|=Oe?s.SUBSCRIBE_OPTIONS_RAP:0,Be|=fe?s.SUBSCRIBE_OPTIONS_RH[fe]:0),be=W.write(a.from([Be]))}return be}function w(Y,W,oe){let X=oe?oe.protocolVersion:4,J=Y||{},re=J.messageId,we=J.granted,pe=J.properties,L=0;if(typeof re!="number")return W.destroy(new Error("Invalid messageId")),!1;if(L+=2,typeof we=="object"&&we.length)for(let se=0;ses.VARBYTEINT_MAX)return Y.destroy(new Error(`Invalid variable byte integer: ${W}`)),!1;let oe=z[W];return oe||(oe=p(W),W<16384&&(z[W]=oe)),e("writeVarByteInt: writing to stream: %o",oe),Y.write(oe)}function q(Y,W){let oe=a.byteLength(W);return b(Y,oe),e("writeString: %s",W),Y.write(W,"utf8")}function he(Y,W,oe){q(Y,W),q(Y,oe)}function ne(Y,W){return e("writeNumberCached: number: %d",W),e("writeNumberCached: %o",i[W]),Y.write(i[W])}function te(Y,W){let oe=l(W);return e("writeNumberGenerated: %o",oe),Y.write(oe)}function ce(Y,W){let oe=g(W);return e("write4ByteNumber: %o",oe),Y.write(oe)}function V(Y,W){typeof W=="string"?q(Y,W):W?(b(Y,W.length),Y.write(W)):b(Y,0)}function le(Y,W){if(typeof W!="object"||W.length!=null)return{length:1,write(){Z(Y,{},0)}};let oe=0;function X(J,re){let we=s.propertiesTypes[J],pe=0;switch(we){case"byte":{if(typeof re!="boolean")return Y.destroy(new Error(`Invalid ${J}: ${re}`)),!1;pe+=2;break}case"int8":{if(typeof re!="number"||re<0||re>255)return Y.destroy(new Error(`Invalid ${J}: ${re}`)),!1;pe+=2;break}case"binary":{if(re&&re===null)return Y.destroy(new Error(`Invalid ${J}: ${re}`)),!1;pe+=1+a.byteLength(re)+2;break}case"int16":{if(typeof re!="number"||re<0||re>65535)return Y.destroy(new Error(`Invalid ${J}: ${re}`)),!1;pe+=3;break}case"int32":{if(typeof re!="number"||re<0||re>4294967295)return Y.destroy(new Error(`Invalid ${J}: ${re}`)),!1;pe+=5;break}case"var":{if(typeof re!="number"||re<0||re>268435455)return Y.destroy(new Error(`Invalid ${J}: ${re}`)),!1;pe+=1+a.byteLength(p(re));break}case"string":{if(typeof re!="string")return Y.destroy(new Error(`Invalid ${J}: ${re}`)),!1;pe+=3+a.byteLength(re.toString());break}case"pair":{if(typeof re!="object")return Y.destroy(new Error(`Invalid ${J}: ${re}`)),!1;pe+=Object.getOwnPropertyNames(re).reduce((L,H)=>{let se=re[H];return Array.isArray(se)?L+=se.reduce((be,ve)=>(be+=3+a.byteLength(H.toString())+2+a.byteLength(ve.toString()),be),0):L+=3+a.byteLength(H.toString())+2+a.byteLength(re[H].toString()),L},0);break}default:return Y.destroy(new Error(`Invalid property ${J}: ${re}`)),!1}return pe}if(W)for(let J in W){let re=0,we=0,pe=W[J];if(pe!==void 0){if(Array.isArray(pe))for(let L=0;Lre;){let pe=J.shift();if(pe&&W[pe])delete W[pe],we=le(Y,W);else return!1}return we}function ee(Y,W,oe){switch(s.propertiesTypes[W]){case"byte":{Y.write(a.from([s.properties[W]])),Y.write(a.from([+oe]));break}case"int8":{Y.write(a.from([s.properties[W]])),Y.write(a.from([oe]));break}case"binary":{Y.write(a.from([s.properties[W]])),V(Y,oe);break}case"int16":{Y.write(a.from([s.properties[W]])),b(Y,oe);break}case"int32":{Y.write(a.from([s.properties[W]])),ce(Y,oe);break}case"var":{Y.write(a.from([s.properties[W]])),G(Y,oe);break}case"string":{Y.write(a.from([s.properties[W]])),q(Y,oe);break}case"pair":{Object.getOwnPropertyNames(oe).forEach(X=>{let J=oe[X];Array.isArray(J)?J.forEach(re=>{Y.write(a.from([s.properties[W]])),he(Y,X.toString(),re.toString())}):(Y.write(a.from([s.properties[W]])),he(Y,X.toString(),J.toString()))});break}default:return Y.destroy(new Error(`Invalid property ${W} value: ${oe}`)),!1}}function Z(Y,W,oe){G(Y,oe);for(let X in W)if(Object.prototype.hasOwnProperty.call(W,X)&&W[X]!=null){let J=W[X];if(Array.isArray(J))for(let re=0;re{ge(),me(),ye();var s=ua(),{EventEmitter:a}=(Zt(),Ke(qt)),{Buffer:c}=(st(),Ke(ot));function n(t,e){let i=new r;return s(t,i,e),i.concat()}var r=class extends a{constructor(){super(),this._array=new Array(20),this._i=0}write(t){return this._array[this._i++]=t,!0}concat(){let t=0,e=new Array(this._array.length),i=this._array,l=0,d;for(d=0;d{ge(),me(),ye(),f.parser=iu().parser,f.generate=au(),f.writeToStream=ua()}),uu=Se((f,h)=>{ge(),me(),ye(),h.exports=a;function s(n){return n instanceof Gr?Gr.from(n):new n.constructor(n.buffer.slice(),n.byteOffset,n.length)}function a(n){if(n=n||{},n.circles)return c(n);let r=new Map;if(r.set(Date,d=>new Date(d)),r.set(Map,(d,p)=>new Map(e(Array.from(d),p))),r.set(Set,(d,p)=>new Set(e(Array.from(d),p))),n.constructorHandlers)for(let d of n.constructorHandlers)r.set(d[0],d[1]);let t=null;return n.proto?l:i;function e(d,p){let g=Object.keys(d),b=new Array(g.length);for(let E=0;Enew Date(g)),e.set(Map,(g,b)=>new Map(l(Array.from(g),b))),e.set(Set,(g,b)=>new Set(l(Array.from(g),b))),n.constructorHandlers)for(let g of n.constructorHandlers)e.set(g[0],g[1]);let i=null;return n.proto?p:d;function l(g,b){let E=Object.keys(g),S=new Array(E.length);for(let x=0;x{ge(),me(),ye(),h.exports=uu()()}),hu=Se(f=>{ge(),me(),ye(),Object.defineProperty(f,"__esModule",{value:!0}),f.validateTopic=h,f.validateTopics=s;function h(a){let c=a.split("/");for(let n=0;n{ge(),me(),ye(),Object.defineProperty(f,"__esModule",{value:!0});var h=tr(),s={objectMode:!0},a={clean:!0},c=class{options;_inflights;constructor(n){this.options=n||{},this.options={...a,...n},this._inflights=new Map}put(n,r){return this._inflights.set(n.messageId,n),r&&r(),this}createStream(){let n=new h.Readable(s),r=[],t=!1,e=0;return this._inflights.forEach((i,l)=>{r.push(i)}),n._read=()=>{!t&&e{if(!t)return t=!0,setTimeout(()=>{n.emit("close")},0),n},n}del(n,r){let t=this._inflights.get(n.messageId);return t?(this._inflights.delete(n.messageId),r(null,t)):r&&r(new Error("missing packet")),this}get(n,r){let t=this._inflights.get(n.messageId);return t?r(null,t):r&&r(new Error("missing packet")),this}close(n){this.options.clean&&(this._inflights=null),n&&n()}};f.default=c}),fu=Se(f=>{ge(),me(),ye(),Object.defineProperty(f,"__esModule",{value:!0});var h=[0,16,128,131,135,144,145,151,153],s=(a,c,n)=>{a.log("handlePublish: packet %o",c),n=typeof n<"u"?n:a.noop;let r=c.topic.toString(),t=c.payload,{qos:e}=c,{messageId:i}=c,{options:l}=a;if(a.options.protocolVersion===5){let d;if(c.properties&&(d=c.properties.topicAlias),typeof d<"u")if(r.length===0)if(d>0&&d<=65535){let p=a.topicAliasRecv.getTopicByAlias(d);if(p)r=p,a.log("handlePublish :: topic complemented by alias. topic: %s - alias: %d",r,d);else{a.log("handlePublish :: unregistered topic alias. alias: %d",d),a.emit("error",new Error("Received unregistered Topic Alias"));return}}else{a.log("handlePublish :: topic alias out of range. alias: %d",d),a.emit("error",new Error("Received Topic Alias is out of range"));return}else if(a.topicAliasRecv.put(r,d))a.log("handlePublish :: registered topic: %s - alias: %d",r,d);else{a.log("handlePublish :: topic alias out of range. alias: %d",d),a.emit("error",new Error("Received Topic Alias is out of range"));return}}switch(a.log("handlePublish: qos %d",e),e){case 2:{l.customHandleAcks(r,t,c,(d,p)=>{if(typeof d=="number"&&(p=d,d=null),d)return a.emit("error",d);if(h.indexOf(p)===-1)return a.emit("error",new Error("Wrong reason code for pubrec"));p?a._sendPacket({cmd:"pubrec",messageId:i,reasonCode:p},n):a.incomingStore.put(c,()=>{a._sendPacket({cmd:"pubrec",messageId:i},n)})});break}case 1:{l.customHandleAcks(r,t,c,(d,p)=>{if(typeof d=="number"&&(p=d,d=null),d)return a.emit("error",d);if(h.indexOf(p)===-1)return a.emit("error",new Error("Wrong reason code for puback"));p||a.emit("message",r,t,c),a.handleMessage(c,g=>{if(g)return n&&n(g);a._sendPacket({cmd:"puback",messageId:i,reasonCode:p},n)})});break}case 0:a.emit("message",r,t,c),a.handleMessage(c,n);break;default:a.log("handlePublish: unknown QoS. Doing nothing.");break}};f.default=s}),pu=Se((f,h)=>{h.exports={version:"5.14.0"}}),ar=Se(f=>{ge(),me(),ye(),Object.defineProperty(f,"__esModule",{value:!0}),f.MQTTJS_VERSION=f.nextTick=f.ErrorWithSubackPacket=f.ErrorWithReasonCode=void 0,f.applyMixin=a;var h=class ha extends Error{code;constructor(n,r){super(n),this.code=r,Object.setPrototypeOf(this,ha.prototype),Object.getPrototypeOf(this).name="ErrorWithReasonCode"}};f.ErrorWithReasonCode=h;var s=class fa extends Error{packet;constructor(n,r){super(n),this.packet=r,Object.setPrototypeOf(this,fa.prototype),Object.getPrototypeOf(this).name="ErrorWithSubackPacket"}};f.ErrorWithSubackPacket=s;function a(c,n,r=!1){let t=[n];for(;;){let e=t[0],i=Object.getPrototypeOf(e);if(i?.prototype)t.unshift(i);else break}for(let e of t)for(let i of Object.getOwnPropertyNames(e.prototype))(r||i!=="constructor")&&Object.defineProperty(c.prototype,i,Object.getOwnPropertyDescriptor(e.prototype,i)??Object.create(null))}f.nextTick=typeof Ge?.nextTick=="function"?Ge.nextTick:c=>{setTimeout(c,0)},f.MQTTJS_VERSION=pu().version}),Zr=Se(f=>{ge(),me(),ye(),Object.defineProperty(f,"__esModule",{value:!0}),f.ReasonCodes=void 0;var h=ar();f.ReasonCodes={0:"",1:"Unacceptable protocol version",2:"Identifier rejected",3:"Server unavailable",4:"Bad username or password",5:"Not authorized",16:"No matching subscribers",17:"No subscription existed",128:"Unspecified error",129:"Malformed Packet",130:"Protocol Error",131:"Implementation specific error",132:"Unsupported Protocol Version",133:"Client Identifier not valid",134:"Bad User Name or Password",135:"Not authorized",136:"Server unavailable",137:"Server busy",138:"Banned",139:"Server shutting down",140:"Bad authentication method",141:"Keep Alive timeout",142:"Session taken over",143:"Topic Filter invalid",144:"Topic Name invalid",145:"Packet identifier in use",146:"Packet Identifier not found",147:"Receive Maximum exceeded",148:"Topic Alias invalid",149:"Packet too large",150:"Message rate too high",151:"Quota exceeded",152:"Administrative action",153:"Payload format invalid",154:"Retain not supported",155:"QoS not supported",156:"Use another server",157:"Server moved",158:"Shared Subscriptions not supported",159:"Connection rate exceeded",160:"Maximum connect time",161:"Subscription Identifiers not supported",162:"Wildcard Subscriptions not supported"};var s=(a,c)=>{let{messageId:n}=c,r=c.cmd,t=null,e=a.outgoing[n]?a.outgoing[n].cb:null,i=null;if(!e){a.log("_handleAck :: Server sent an ack in error. Ignoring.");return}switch(a.log("_handleAck :: packet type",r),r){case"pubcomp":case"puback":{let l=c.reasonCode;l&&l>0&&l!==16?(i=new h.ErrorWithReasonCode(`Publish error: ${f.ReasonCodes[l]}`,l),a._removeOutgoingAndStoreMessage(n,()=>{e(i,c)})):a._removeOutgoingAndStoreMessage(n,e);break}case"pubrec":{t={cmd:"pubrel",qos:2,messageId:n};let l=c.reasonCode;l&&l>0&&l!==16?(i=new h.ErrorWithReasonCode(`Publish error: ${f.ReasonCodes[l]}`,l),a._removeOutgoingAndStoreMessage(n,()=>{e(i,c)})):a._sendPacket(t);break}case"suback":{delete a.outgoing[n],a.messageIdProvider.deallocate(n);let l=c.granted;for(let d=0;d{delete a._resubscribeTopics[b]})}}delete a.messageIdToTopic[n],a._invokeStoreProcessingQueue(),e(i,c);break}case"unsuback":{delete a.outgoing[n],a.messageIdProvider.deallocate(n),a._invokeStoreProcessingQueue(),e(null,c);break}default:a.emit("error",new Error("unrecognized packet type"))}a.disconnecting&&Object.keys(a.outgoing).length===0&&a.emit("outgoingEmpty")};f.default=s}),du=Se(f=>{ge(),me(),ye(),Object.defineProperty(f,"__esModule",{value:!0});var h=ar(),s=Zr(),a=(c,n)=>{let{options:r}=c,t=r.protocolVersion,e=t===5?n.reasonCode:n.returnCode;if(t!==5){let i=new h.ErrorWithReasonCode(`Protocol error: Auth packets are only supported in MQTT 5. Your version:${t}`,e);c.emit("error",i);return}c.handleAuth(n,(i,l)=>{if(i){c.emit("error",i);return}if(e===24)c.reconnecting=!1,c._sendPacket(l);else{let d=new h.ErrorWithReasonCode(`Connection refused: ${s.ReasonCodes[e]}`,e);c.emit("error",d)}})};f.default=a}),gu=Se(f=>{var g,b,E,S,x,y,v,A,_,C,w,I,k,j,U,P,z,G,q,he,ne,te,ce,V,le,M,ee,Z,yi,Ae,Y,W,oe,pa,J,re,we,Lt,Dt,mi,Er,Ar,Ye,bi,fr,Ft,vi,fe;ge(),me(),ye(),Object.defineProperty(f,"__esModule",{value:!0}),f.LRUCache=void 0;var h=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,s=new Set,a=typeof Ge=="object"&&Ge?Ge:{},c=(Be,o,u,m)=>{typeof a.emitWarning=="function"?a.emitWarning(Be,o,u,m):console.error(`[${u}] ${o}: ${Be}`)},n=globalThis.AbortController,r=globalThis.AbortSignal;if(typeof n>"u"){r=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(u,m){this._onabort.push(m)}},n=class{constructor(){o()}signal=new r;abort(u){if(!this.signal.aborted){this.signal.reason=u,this.signal.aborted=!0;for(let m of this.signal._onabort)m(u);this.signal.onabort?.(u)}}};let Be=a.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",o=()=>{Be&&(Be=!1,c("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",o))}}var t=Be=>!s.has(Be),e=Be=>Be&&Be===Math.floor(Be)&&Be>0&&isFinite(Be),i=Be=>e(Be)?Be<=Math.pow(2,8)?Uint8Array:Be<=Math.pow(2,16)?Uint16Array:Be<=Math.pow(2,32)?Uint32Array:Be<=Number.MAX_SAFE_INTEGER?l:null:null,l=class extends Array{constructor(Be){super(Be),this.fill(0)}},d=(g=class{heap;length;static create(o){let u=i(o);if(!u)return[];De(g,b,!0);let m=new g(o,u);return De(g,b,!1),m}constructor(o,u){if(!D(g,b))throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new u(o),this.length=0}push(o){this.heap[this.length++]=o}pop(){return this.heap[--this.length]}},b=new WeakMap,qe(g,b,!1),g),p=(fe=class{constructor(o){qe(this,Z);qe(this,x);qe(this,y);qe(this,v);qe(this,A);qe(this,_);qe(this,C);it(this,"ttl");it(this,"ttlResolution");it(this,"ttlAutopurge");it(this,"updateAgeOnGet");it(this,"updateAgeOnHas");it(this,"allowStale");it(this,"noDisposeOnSet");it(this,"noUpdateTTL");it(this,"maxEntrySize");it(this,"sizeCalculation");it(this,"noDeleteOnFetchRejection");it(this,"noDeleteOnStaleGet");it(this,"allowStaleOnFetchAbort");it(this,"allowStaleOnFetchRejection");it(this,"ignoreFetchAbort");qe(this,w);qe(this,I);qe(this,k);qe(this,j);qe(this,U);qe(this,P);qe(this,z);qe(this,G);qe(this,q);qe(this,he);qe(this,ne);qe(this,te);qe(this,ce);qe(this,V);qe(this,le);qe(this,M);qe(this,ee);qe(this,Ae,()=>{});qe(this,Y,()=>{});qe(this,W,()=>{});qe(this,oe,()=>!1);qe(this,J,o=>{});qe(this,re,(o,u,m)=>{});qe(this,we,(o,u,m,T)=>{if(m||T)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0});it(this,E,"LRUCache");let{max:u=0,ttl:m,ttlResolution:T=1,ttlAutopurge:N,updateAgeOnGet:K,updateAgeOnHas:de,allowStale:$,dispose:ie,disposeAfter:Re,noDisposeOnSet:ke,noUpdateTTL:Le,maxSize:Ue=0,maxEntrySize:Xe=0,sizeCalculation:Fe,fetchMethod:We,memoMethod:je,noDeleteOnFetchRejection:tt,noDeleteOnStaleGet:He,allowStaleOnFetchRejection:$e,allowStaleOnFetchAbort:nt,ignoreFetchAbort:dt}=o;if(u!==0&&!e(u))throw new TypeError("max option must be a nonnegative integer");let lt=u?i(u):Array;if(!lt)throw new Error("invalid max value: "+u);if(De(this,x,u),De(this,y,Ue),this.maxEntrySize=Xe||D(this,y),this.sizeCalculation=Fe,this.sizeCalculation){if(!D(this,y)&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(je!==void 0&&typeof je!="function")throw new TypeError("memoMethod must be a function if defined");if(De(this,C,je),We!==void 0&&typeof We!="function")throw new TypeError("fetchMethod must be a function if specified");if(De(this,_,We),De(this,M,!!We),De(this,k,new Map),De(this,j,new Array(u).fill(void 0)),De(this,U,new Array(u).fill(void 0)),De(this,P,new lt(u)),De(this,z,new lt(u)),De(this,G,0),De(this,q,0),De(this,he,d.create(u)),De(this,w,0),De(this,I,0),typeof ie=="function"&&De(this,v,ie),typeof Re=="function"?(De(this,A,Re),De(this,ne,[])):(De(this,A,void 0),De(this,ne,void 0)),De(this,le,!!D(this,v)),De(this,ee,!!D(this,A)),this.noDisposeOnSet=!!ke,this.noUpdateTTL=!!Le,this.noDeleteOnFetchRejection=!!tt,this.allowStaleOnFetchRejection=!!$e,this.allowStaleOnFetchAbort=!!nt,this.ignoreFetchAbort=!!dt,this.maxEntrySize!==0){if(D(this,y)!==0&&!e(D(this,y)))throw new TypeError("maxSize must be a positive integer if specified");if(!e(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");Ne(this,Z,pa).call(this)}if(this.allowStale=!!$,this.noDeleteOnStaleGet=!!He,this.updateAgeOnGet=!!K,this.updateAgeOnHas=!!de,this.ttlResolution=e(T)||T===0?T:1,this.ttlAutopurge=!!N,this.ttl=m||0,this.ttl){if(!e(this.ttl))throw new TypeError("ttl must be a positive integer if specified");Ne(this,Z,yi).call(this)}if(D(this,x)===0&&this.ttl===0&&D(this,y)===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!D(this,x)&&!D(this,y)){let R="LRU_CACHE_UNBOUNDED";t(R)&&(s.add(R),c("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",R,fe))}}static unsafeExposeInternals(o){return{starts:D(o,ce),ttls:D(o,V),sizes:D(o,te),keyMap:D(o,k),keyList:D(o,j),valList:D(o,U),next:D(o,P),prev:D(o,z),get head(){return D(o,G)},get tail(){return D(o,q)},free:D(o,he),isBackgroundFetch:u=>{var m;return Ne(m=o,Z,Ye).call(m,u)},backgroundFetch:(u,m,T,N)=>{var K;return Ne(K=o,Z,Ar).call(K,u,m,T,N)},moveToTail:u=>{var m;return Ne(m=o,Z,fr).call(m,u)},indexes:u=>{var m;return Ne(m=o,Z,Lt).call(m,u)},rindexes:u=>{var m;return Ne(m=o,Z,Dt).call(m,u)},isStale:u=>{var m;return D(m=o,oe).call(m,u)}}}get max(){return D(this,x)}get maxSize(){return D(this,y)}get calculatedSize(){return D(this,I)}get size(){return D(this,w)}get fetchMethod(){return D(this,_)}get memoMethod(){return D(this,C)}get dispose(){return D(this,v)}get disposeAfter(){return D(this,A)}getRemainingTTL(o){return D(this,k).has(o)?1/0:0}*entries(){for(let o of Ne(this,Z,Lt).call(this))D(this,U)[o]!==void 0&&D(this,j)[o]!==void 0&&!Ne(this,Z,Ye).call(this,D(this,U)[o])&&(yield[D(this,j)[o],D(this,U)[o]])}*rentries(){for(let o of Ne(this,Z,Dt).call(this))D(this,U)[o]!==void 0&&D(this,j)[o]!==void 0&&!Ne(this,Z,Ye).call(this,D(this,U)[o])&&(yield[D(this,j)[o],D(this,U)[o]])}*keys(){for(let o of Ne(this,Z,Lt).call(this)){let u=D(this,j)[o];u!==void 0&&!Ne(this,Z,Ye).call(this,D(this,U)[o])&&(yield u)}}*rkeys(){for(let o of Ne(this,Z,Dt).call(this)){let u=D(this,j)[o];u!==void 0&&!Ne(this,Z,Ye).call(this,D(this,U)[o])&&(yield u)}}*values(){for(let o of Ne(this,Z,Lt).call(this))D(this,U)[o]!==void 0&&!Ne(this,Z,Ye).call(this,D(this,U)[o])&&(yield D(this,U)[o])}*rvalues(){for(let o of Ne(this,Z,Dt).call(this))D(this,U)[o]!==void 0&&!Ne(this,Z,Ye).call(this,D(this,U)[o])&&(yield D(this,U)[o])}[(S=Symbol.iterator,E=Symbol.toStringTag,S)](){return this.entries()}find(o,u={}){for(let m of Ne(this,Z,Lt).call(this)){let T=D(this,U)[m],N=Ne(this,Z,Ye).call(this,T)?T.__staleWhileFetching:T;if(N!==void 0&&o(N,D(this,j)[m],this))return this.get(D(this,j)[m],u)}}forEach(o,u=this){for(let m of Ne(this,Z,Lt).call(this)){let T=D(this,U)[m],N=Ne(this,Z,Ye).call(this,T)?T.__staleWhileFetching:T;N!==void 0&&o.call(u,N,D(this,j)[m],this)}}rforEach(o,u=this){for(let m of Ne(this,Z,Dt).call(this)){let T=D(this,U)[m],N=Ne(this,Z,Ye).call(this,T)?T.__staleWhileFetching:T;N!==void 0&&o.call(u,N,D(this,j)[m],this)}}purgeStale(){let o=!1;for(let u of Ne(this,Z,Dt).call(this,{allowStale:!0}))D(this,oe).call(this,u)&&(Ne(this,Z,Ft).call(this,D(this,j)[u],"expire"),o=!0);return o}info(o){let u=D(this,k).get(o);if(u===void 0)return;let m=D(this,U)[u],T=Ne(this,Z,Ye).call(this,m)?m.__staleWhileFetching:m;if(T===void 0)return;let N={value:T};if(D(this,V)&&D(this,ce)){let K=D(this,V)[u],de=D(this,ce)[u];if(K&&de){let $=K-(h.now()-de);N.ttl=$,N.start=Date.now()}}return D(this,te)&&(N.size=D(this,te)[u]),N}dump(){let o=[];for(let u of Ne(this,Z,Lt).call(this,{allowStale:!0})){let m=D(this,j)[u],T=D(this,U)[u],N=Ne(this,Z,Ye).call(this,T)?T.__staleWhileFetching:T;if(N===void 0||m===void 0)continue;let K={value:N};if(D(this,V)&&D(this,ce)){K.ttl=D(this,V)[u];let de=h.now()-D(this,ce)[u];K.start=Math.floor(Date.now()-de)}D(this,te)&&(K.size=D(this,te)[u]),o.unshift([m,K])}return o}load(o){this.clear();for(let[u,m]of o){if(m.start){let T=Date.now()-m.start;m.start=h.now()-T}this.set(u,m.value,m)}}set(o,u,m={}){var Le,Ue,Xe;if(u===void 0)return this.delete(o),this;let{ttl:T=this.ttl,start:N,noDisposeOnSet:K=this.noDisposeOnSet,sizeCalculation:de=this.sizeCalculation,status:$}=m,{noUpdateTTL:ie=this.noUpdateTTL}=m,Re=D(this,we).call(this,o,u,m.size||0,de);if(this.maxEntrySize&&Re>this.maxEntrySize)return $&&($.set="miss",$.maxEntrySizeExceeded=!0),Ne(this,Z,Ft).call(this,o,"set"),this;let ke=D(this,w)===0?void 0:D(this,k).get(o);if(ke===void 0)ke=D(this,w)===0?D(this,q):D(this,he).length!==0?D(this,he).pop():D(this,w)===D(this,x)?Ne(this,Z,Er).call(this,!1):D(this,w),D(this,j)[ke]=o,D(this,U)[ke]=u,D(this,k).set(o,ke),D(this,P)[D(this,q)]=ke,D(this,z)[ke]=D(this,q),De(this,q,ke),br(this,w)._++,D(this,re).call(this,ke,Re,$),$&&($.set="add"),ie=!1;else{Ne(this,Z,fr).call(this,ke);let Fe=D(this,U)[ke];if(u!==Fe){if(D(this,M)&&Ne(this,Z,Ye).call(this,Fe)){Fe.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:We}=Fe;We!==void 0&&!K&&(D(this,le)&&((Le=D(this,v))==null||Le.call(this,We,o,"set")),D(this,ee)&&D(this,ne)?.push([We,o,"set"]))}else K||(D(this,le)&&((Ue=D(this,v))==null||Ue.call(this,Fe,o,"set")),D(this,ee)&&D(this,ne)?.push([Fe,o,"set"]));if(D(this,J).call(this,ke),D(this,re).call(this,ke,Re,$),D(this,U)[ke]=u,$){$.set="replace";let We=Fe&&Ne(this,Z,Ye).call(this,Fe)?Fe.__staleWhileFetching:Fe;We!==void 0&&($.oldValue=We)}}else $&&($.set="update")}if(T!==0&&!D(this,V)&&Ne(this,Z,yi).call(this),D(this,V)&&(ie||D(this,W).call(this,ke,T,N),$&&D(this,Y).call(this,$,ke)),!K&&D(this,ee)&&D(this,ne)){let Fe=D(this,ne),We;for(;We=Fe?.shift();)(Xe=D(this,A))==null||Xe.call(this,...We)}return this}pop(){var o;try{for(;D(this,w);){let u=D(this,U)[D(this,G)];if(Ne(this,Z,Er).call(this,!0),Ne(this,Z,Ye).call(this,u)){if(u.__staleWhileFetching)return u.__staleWhileFetching}else if(u!==void 0)return u}}finally{if(D(this,ee)&&D(this,ne)){let u=D(this,ne),m;for(;m=u?.shift();)(o=D(this,A))==null||o.call(this,...m)}}}has(o,u={}){let{updateAgeOnHas:m=this.updateAgeOnHas,status:T}=u,N=D(this,k).get(o);if(N!==void 0){let K=D(this,U)[N];if(Ne(this,Z,Ye).call(this,K)&&K.__staleWhileFetching===void 0)return!1;if(D(this,oe).call(this,N))T&&(T.has="stale",D(this,Y).call(this,T,N));else return m&&D(this,Ae).call(this,N),T&&(T.has="hit",D(this,Y).call(this,T,N)),!0}else T&&(T.has="miss");return!1}peek(o,u={}){let{allowStale:m=this.allowStale}=u,T=D(this,k).get(o);if(T===void 0||!m&&D(this,oe).call(this,T))return;let N=D(this,U)[T];return Ne(this,Z,Ye).call(this,N)?N.__staleWhileFetching:N}async fetch(o,u={}){let{allowStale:m=this.allowStale,updateAgeOnGet:T=this.updateAgeOnGet,noDeleteOnStaleGet:N=this.noDeleteOnStaleGet,ttl:K=this.ttl,noDisposeOnSet:de=this.noDisposeOnSet,size:$=0,sizeCalculation:ie=this.sizeCalculation,noUpdateTTL:Re=this.noUpdateTTL,noDeleteOnFetchRejection:ke=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:Le=this.allowStaleOnFetchRejection,ignoreFetchAbort:Ue=this.ignoreFetchAbort,allowStaleOnFetchAbort:Xe=this.allowStaleOnFetchAbort,context:Fe,forceRefresh:We=!1,status:je,signal:tt}=u;if(!D(this,M))return je&&(je.fetch="get"),this.get(o,{allowStale:m,updateAgeOnGet:T,noDeleteOnStaleGet:N,status:je});let He={allowStale:m,updateAgeOnGet:T,noDeleteOnStaleGet:N,ttl:K,noDisposeOnSet:de,size:$,sizeCalculation:ie,noUpdateTTL:Re,noDeleteOnFetchRejection:ke,allowStaleOnFetchRejection:Le,allowStaleOnFetchAbort:Xe,ignoreFetchAbort:Ue,status:je,signal:tt},$e=D(this,k).get(o);if($e===void 0){je&&(je.fetch="miss");let nt=Ne(this,Z,Ar).call(this,o,$e,He,Fe);return nt.__returned=nt}else{let nt=D(this,U)[$e];if(Ne(this,Z,Ye).call(this,nt)){let F=m&&nt.__staleWhileFetching!==void 0;return je&&(je.fetch="inflight",F&&(je.returnedStale=!0)),F?nt.__staleWhileFetching:nt.__returned=nt}let dt=D(this,oe).call(this,$e);if(!We&&!dt)return je&&(je.fetch="hit"),Ne(this,Z,fr).call(this,$e),T&&D(this,Ae).call(this,$e),je&&D(this,Y).call(this,je,$e),nt;let lt=Ne(this,Z,Ar).call(this,o,$e,He,Fe),R=lt.__staleWhileFetching!==void 0&&m;return je&&(je.fetch=dt?"stale":"refresh",R&&dt&&(je.returnedStale=!0)),R?lt.__staleWhileFetching:lt.__returned=lt}}async forceFetch(o,u={}){let m=await this.fetch(o,u);if(m===void 0)throw new Error("fetch() returned undefined");return m}memo(o,u={}){let m=D(this,C);if(!m)throw new Error("no memoMethod provided to constructor");let{context:T,forceRefresh:N,...K}=u,de=this.get(o,K);if(!N&&de!==void 0)return de;let $=m(o,de,{options:K,context:T});return this.set(o,$,K),$}get(o,u={}){let{allowStale:m=this.allowStale,updateAgeOnGet:T=this.updateAgeOnGet,noDeleteOnStaleGet:N=this.noDeleteOnStaleGet,status:K}=u,de=D(this,k).get(o);if(de!==void 0){let $=D(this,U)[de],ie=Ne(this,Z,Ye).call(this,$);return K&&D(this,Y).call(this,K,de),D(this,oe).call(this,de)?(K&&(K.get="stale"),ie?(K&&m&&$.__staleWhileFetching!==void 0&&(K.returnedStale=!0),m?$.__staleWhileFetching:void 0):(N||Ne(this,Z,Ft).call(this,o,"expire"),K&&m&&(K.returnedStale=!0),m?$:void 0)):(K&&(K.get="hit"),ie?$.__staleWhileFetching:(Ne(this,Z,fr).call(this,de),T&&D(this,Ae).call(this,de),$))}else K&&(K.get="miss")}delete(o){return Ne(this,Z,Ft).call(this,o,"delete")}clear(){return Ne(this,Z,vi).call(this,"delete")}},x=new WeakMap,y=new WeakMap,v=new WeakMap,A=new WeakMap,_=new WeakMap,C=new WeakMap,w=new WeakMap,I=new WeakMap,k=new WeakMap,j=new WeakMap,U=new WeakMap,P=new WeakMap,z=new WeakMap,G=new WeakMap,q=new WeakMap,he=new WeakMap,ne=new WeakMap,te=new WeakMap,ce=new WeakMap,V=new WeakMap,le=new WeakMap,M=new WeakMap,ee=new WeakMap,Z=new WeakSet,yi=function(){let o=new l(D(this,x)),u=new l(D(this,x));De(this,V,o),De(this,ce,u),De(this,W,(N,K,de=h.now())=>{if(u[N]=K!==0?de:0,o[N]=K,K!==0&&this.ttlAutopurge){let $=setTimeout(()=>{D(this,oe).call(this,N)&&Ne(this,Z,Ft).call(this,D(this,j)[N],"expire")},K+1);$.unref&&$.unref()}}),De(this,Ae,N=>{u[N]=o[N]!==0?h.now():0}),De(this,Y,(N,K)=>{if(o[K]){let de=o[K],$=u[K];if(!de||!$)return;N.ttl=de,N.start=$,N.now=m||T();let ie=N.now-$;N.remainingTTL=de-ie}});let m=0,T=()=>{let N=h.now();if(this.ttlResolution>0){m=N;let K=setTimeout(()=>m=0,this.ttlResolution);K.unref&&K.unref()}return N};this.getRemainingTTL=N=>{let K=D(this,k).get(N);if(K===void 0)return 0;let de=o[K],$=u[K];if(!de||!$)return 1/0;let ie=(m||T())-$;return de-ie},De(this,oe,N=>{let K=u[N],de=o[N];return!!de&&!!K&&(m||T())-K>de})},Ae=new WeakMap,Y=new WeakMap,W=new WeakMap,oe=new WeakMap,pa=function(){let o=new l(D(this,x));De(this,I,0),De(this,te,o),De(this,J,u=>{De(this,I,D(this,I)-o[u]),o[u]=0}),De(this,we,(u,m,T,N)=>{if(Ne(this,Z,Ye).call(this,m))return 0;if(!e(T))if(N){if(typeof N!="function")throw new TypeError("sizeCalculation must be a function");if(T=N(m,u),!e(T))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return T}),De(this,re,(u,m,T)=>{if(o[u]=m,D(this,y)){let N=D(this,y)-o[u];for(;D(this,I)>N;)Ne(this,Z,Er).call(this,!0)}De(this,I,D(this,I)+o[u]),T&&(T.entrySize=m,T.totalCalculatedSize=D(this,I))})},J=new WeakMap,re=new WeakMap,we=new WeakMap,Lt=function*({allowStale:o=this.allowStale}={}){if(D(this,w))for(let u=D(this,q);!(!Ne(this,Z,mi).call(this,u)||((o||!D(this,oe).call(this,u))&&(yield u),u===D(this,G)));)u=D(this,z)[u]},Dt=function*({allowStale:o=this.allowStale}={}){if(D(this,w))for(let u=D(this,G);!(!Ne(this,Z,mi).call(this,u)||((o||!D(this,oe).call(this,u))&&(yield u),u===D(this,q)));)u=D(this,P)[u]},mi=function(o){return o!==void 0&&D(this,k).get(D(this,j)[o])===o},Er=function(o){var N;let u=D(this,G),m=D(this,j)[u],T=D(this,U)[u];return D(this,M)&&Ne(this,Z,Ye).call(this,T)?T.__abortController.abort(new Error("evicted")):(D(this,le)||D(this,ee))&&(D(this,le)&&((N=D(this,v))==null||N.call(this,T,m,"evict")),D(this,ee)&&D(this,ne)?.push([T,m,"evict"])),D(this,J).call(this,u),o&&(D(this,j)[u]=void 0,D(this,U)[u]=void 0,D(this,he).push(u)),D(this,w)===1?(De(this,G,De(this,q,0)),D(this,he).length=0):De(this,G,D(this,P)[u]),D(this,k).delete(m),br(this,w)._--,u},Ar=function(o,u,m,T){let N=u===void 0?void 0:D(this,U)[u];if(Ne(this,Z,Ye).call(this,N))return N;let K=new n,{signal:de}=m;de?.addEventListener("abort",()=>K.abort(de.reason),{signal:K.signal});let $={signal:K.signal,options:m,context:T},ie=(Fe,We=!1)=>{let{aborted:je}=K.signal,tt=m.ignoreFetchAbort&&Fe!==void 0;if(m.status&&(je&&!We?(m.status.fetchAborted=!0,m.status.fetchError=K.signal.reason,tt&&(m.status.fetchAbortIgnored=!0)):m.status.fetchResolved=!0),je&&!tt&&!We)return ke(K.signal.reason);let He=Ue;return D(this,U)[u]===Ue&&(Fe===void 0?He.__staleWhileFetching?D(this,U)[u]=He.__staleWhileFetching:Ne(this,Z,Ft).call(this,o,"fetch"):(m.status&&(m.status.fetchUpdated=!0),this.set(o,Fe,$.options))),Fe},Re=Fe=>(m.status&&(m.status.fetchRejected=!0,m.status.fetchError=Fe),ke(Fe)),ke=Fe=>{let{aborted:We}=K.signal,je=We&&m.allowStaleOnFetchAbort,tt=je||m.allowStaleOnFetchRejection,He=tt||m.noDeleteOnFetchRejection,$e=Ue;if(D(this,U)[u]===Ue&&(!He||$e.__staleWhileFetching===void 0?Ne(this,Z,Ft).call(this,o,"fetch"):je||(D(this,U)[u]=$e.__staleWhileFetching)),tt)return m.status&&$e.__staleWhileFetching!==void 0&&(m.status.returnedStale=!0),$e.__staleWhileFetching;if($e.__returned===$e)throw Fe},Le=(Fe,We)=>{var tt;let je=(tt=D(this,_))==null?void 0:tt.call(this,o,N,$);je&&je instanceof Promise&&je.then(He=>Fe(He===void 0?void 0:He),We),K.signal.addEventListener("abort",()=>{(!m.ignoreFetchAbort||m.allowStaleOnFetchAbort)&&(Fe(void 0),m.allowStaleOnFetchAbort&&(Fe=He=>ie(He,!0)))})};m.status&&(m.status.fetchDispatched=!0);let Ue=new Promise(Le).then(ie,Re),Xe=Object.assign(Ue,{__abortController:K,__staleWhileFetching:N,__returned:void 0});return u===void 0?(this.set(o,Xe,{...$.options,status:void 0}),u=D(this,k).get(o)):D(this,U)[u]=Xe,Xe},Ye=function(o){if(!D(this,M))return!1;let u=o;return!!u&&u instanceof Promise&&u.hasOwnProperty("__staleWhileFetching")&&u.__abortController instanceof n},bi=function(o,u){D(this,z)[u]=o,D(this,P)[o]=u},fr=function(o){o!==D(this,q)&&(o===D(this,G)?De(this,G,D(this,P)[o]):Ne(this,Z,bi).call(this,D(this,z)[o],D(this,P)[o]),Ne(this,Z,bi).call(this,D(this,q),o),De(this,q,o))},Ft=function(o,u){var T,N;let m=!1;if(D(this,w)!==0){let K=D(this,k).get(o);if(K!==void 0)if(m=!0,D(this,w)===1)Ne(this,Z,vi).call(this,u);else{D(this,J).call(this,K);let de=D(this,U)[K];if(Ne(this,Z,Ye).call(this,de)?de.__abortController.abort(new Error("deleted")):(D(this,le)||D(this,ee))&&(D(this,le)&&((T=D(this,v))==null||T.call(this,de,o,u)),D(this,ee)&&D(this,ne)?.push([de,o,u])),D(this,k).delete(o),D(this,j)[K]=void 0,D(this,U)[K]=void 0,K===D(this,q))De(this,q,D(this,z)[K]);else if(K===D(this,G))De(this,G,D(this,P)[K]);else{let $=D(this,z)[K];D(this,P)[$]=D(this,P)[K];let ie=D(this,P)[K];D(this,z)[ie]=D(this,z)[K]}br(this,w)._--,D(this,he).push(K)}}if(D(this,ee)&&D(this,ne)?.length){let K=D(this,ne),de;for(;de=K?.shift();)(N=D(this,A))==null||N.call(this,...de)}return m},vi=function(o){var u,m;for(let T of Ne(this,Z,Dt).call(this,{allowStale:!0})){let N=D(this,U)[T];if(Ne(this,Z,Ye).call(this,N))N.__abortController.abort(new Error("deleted"));else{let K=D(this,j)[T];D(this,le)&&((u=D(this,v))==null||u.call(this,N,K,o)),D(this,ee)&&D(this,ne)?.push([N,K,o])}}if(D(this,k).clear(),D(this,U).fill(void 0),D(this,j).fill(void 0),D(this,V)&&D(this,ce)&&(D(this,V).fill(0),D(this,ce).fill(0)),D(this,te)&&D(this,te).fill(0),De(this,G,0),De(this,q,0),D(this,he).length=0,De(this,I,0),De(this,w,0),D(this,ee)&&D(this,ne)){let T=D(this,ne),N;for(;N=T?.shift();)(m=D(this,A))==null||m.call(this,...N)}},fe);f.LRUCache=p}),Rt=Se(f=>{ge(),me(),ye(),Object.defineProperty(f,"t",{value:!0}),f.ContainerIterator=f.Container=f.Base=void 0;var h=class{constructor(c=0){this.iteratorType=c}equals(c){return this.o===c.o}};f.ContainerIterator=h;var s=class{constructor(){this.i=0}get length(){return this.i}size(){return this.i}empty(){return this.i===0}};f.Base=s;var a=class extends s{};f.Container=a}),yu=Se(f=>{ge(),me(),ye(),Object.defineProperty(f,"t",{value:!0}),f.default=void 0;var h=Rt(),s=class extends h.Base{constructor(c=[]){super(),this.S=[];let n=this;c.forEach(function(r){n.push(r)})}clear(){this.i=0,this.S=[]}push(c){return this.S.push(c),this.i+=1,this.i}pop(){if(this.i!==0)return this.i-=1,this.S.pop()}top(){return this.S[this.i-1]}},a=s;f.default=a}),mu=Se(f=>{ge(),me(),ye(),Object.defineProperty(f,"t",{value:!0}),f.default=void 0;var h=Rt(),s=class extends h.Base{constructor(c=[]){super(),this.j=0,this.q=[];let n=this;c.forEach(function(r){n.push(r)})}clear(){this.q=[],this.i=this.j=0}push(c){let n=this.q.length;if(this.j/n>.5&&this.j+this.i>=n&&n>4096){let r=this.i;for(let t=0;t{ge(),me(),ye(),Object.defineProperty(f,"t",{value:!0}),f.default=void 0;var h=Rt(),s=class extends h.Base{constructor(c=[],n=function(t,e){return t>e?-1:t>1;for(let e=this.i-1>>1;e>=0;--e)this.k(e,t)}m(c){let n=this.C[c];for(;c>0;){let r=c-1>>1,t=this.C[r];if(this.v(t,n)<=0)break;this.C[c]=t,c=r}this.C[c]=n}k(c,n){let r=this.C[c];for(;c0&&(t=e,i=this.C[e]),this.v(i,r)>=0)break;this.C[c]=i,c=t}this.C[c]=r}clear(){this.i=0,this.C.length=0}push(c){this.C.push(c),this.m(this.i),this.i+=1}pop(){if(this.i===0)return;let c=this.C[0],n=this.C.pop();return this.i-=1,this.i&&(this.C[0]=n,this.k(0,this.i>>1)),c}top(){return this.C[0]}find(c){return this.C.indexOf(c)>=0}remove(c){let n=this.C.indexOf(c);return n<0?!1:(n===0?this.pop():n===this.i-1?(this.C.pop(),this.i-=1):(this.C.splice(n,1,this.C.pop()),this.i-=1,this.m(n),this.k(n,this.i>>1)),!0)}updateItem(c){let n=this.C.indexOf(c);return n<0?!1:(this.m(n),this.k(n,this.i>>1),!0)}toArray(){return[...this.C]}},a=s;f.default=a}),po=Se(f=>{ge(),me(),ye(),Object.defineProperty(f,"t",{value:!0}),f.default=void 0;var h=Rt(),s=class extends h.Container{},a=s;f.default=a}),jt=Se(f=>{ge(),me(),ye(),Object.defineProperty(f,"t",{value:!0}),f.throwIteratorAccessError=h;function h(){throw new RangeError("Iterator access denied!")}}),da=Se(f=>{ge(),me(),ye(),Object.defineProperty(f,"t",{value:!0}),f.RandomIterator=void 0;var h=Rt(),s=jt(),a=class extends h.ContainerIterator{constructor(c,n){super(n),this.o=c,this.iteratorType===0?(this.pre=function(){return this.o===0&&(0,s.throwIteratorAccessError)(),this.o-=1,this},this.next=function(){return this.o===this.container.size()&&(0,s.throwIteratorAccessError)(),this.o+=1,this}):(this.pre=function(){return this.o===this.container.size()-1&&(0,s.throwIteratorAccessError)(),this.o+=1,this},this.next=function(){return this.o===-1&&(0,s.throwIteratorAccessError)(),this.o-=1,this})}get pointer(){return this.container.getElementByPos(this.o)}set pointer(c){this.container.setElementByPos(this.o,c)}};f.RandomIterator=a}),vu=Se(f=>{ge(),me(),ye(),Object.defineProperty(f,"t",{value:!0}),f.default=void 0;var h=a(po()),s=da();function a(t){return t&&t.t?t:{default:t}}var c=class ga extends s.RandomIterator{constructor(e,i,l){super(e,l),this.container=i}copy(){return new ga(this.o,this.container,this.iteratorType)}},n=class extends h.default{constructor(t=[],e=!0){if(super(),Array.isArray(t))this.J=e?[...t]:t,this.i=t.length;else{this.J=[];let i=this;t.forEach(function(l){i.pushBack(l)})}}clear(){this.i=0,this.J.length=0}begin(){return new c(0,this)}end(){return new c(this.i,this)}rBegin(){return new c(this.i-1,this,1)}rEnd(){return new c(-1,this,1)}front(){return this.J[0]}back(){return this.J[this.i-1]}getElementByPos(t){if(t<0||t>this.i-1)throw new RangeError;return this.J[t]}eraseElementByPos(t){if(t<0||t>this.i-1)throw new RangeError;return this.J.splice(t,1),this.i-=1,this.i}eraseElementByValue(t){let e=0;for(let i=0;ithis.i-1)throw new RangeError;this.J[t]=e}insert(t,e,i=1){if(t<0||t>this.i)throw new RangeError;return this.J.splice(t,0,...new Array(i).fill(e)),this.i+=i,this.i}find(t){for(let e=0;e{ge(),me(),ye(),Object.defineProperty(f,"t",{value:!0}),f.default=void 0;var h=c(po()),s=Rt(),a=jt();function c(e){return e&&e.t?e:{default:e}}var n=class ya extends s.ContainerIterator{constructor(i,l,d,p){super(p),this.o=i,this.h=l,this.container=d,this.iteratorType===0?(this.pre=function(){return this.o.L===this.h&&(0,a.throwIteratorAccessError)(),this.o=this.o.L,this},this.next=function(){return this.o===this.h&&(0,a.throwIteratorAccessError)(),this.o=this.o.B,this}):(this.pre=function(){return this.o.B===this.h&&(0,a.throwIteratorAccessError)(),this.o=this.o.B,this},this.next=function(){return this.o===this.h&&(0,a.throwIteratorAccessError)(),this.o=this.o.L,this})}get pointer(){return this.o===this.h&&(0,a.throwIteratorAccessError)(),this.o.l}set pointer(i){this.o===this.h&&(0,a.throwIteratorAccessError)(),this.o.l=i}copy(){return new ya(this.o,this.h,this.container,this.iteratorType)}},r=class extends h.default{constructor(e=[]){super(),this.h={},this.p=this._=this.h.L=this.h.B=this.h;let i=this;e.forEach(function(l){i.pushBack(l)})}V(e){let{L:i,B:l}=e;i.B=l,l.L=i,e===this.p&&(this.p=l),e===this._&&(this._=i),this.i-=1}G(e,i){let l=i.B,d={l:e,L:i,B:l};i.B=d,l.L=d,i===this.h&&(this.p=d),l===this.h&&(this._=d),this.i+=1}clear(){this.i=0,this.p=this._=this.h.L=this.h.B=this.h}begin(){return new n(this.p,this.h,this)}end(){return new n(this.h,this.h,this)}rBegin(){return new n(this._,this.h,this,1)}rEnd(){return new n(this.h,this.h,this,1)}front(){return this.p.l}back(){return this._.l}getElementByPos(e){if(e<0||e>this.i-1)throw new RangeError;let i=this.p;for(;e--;)i=i.B;return i.l}eraseElementByPos(e){if(e<0||e>this.i-1)throw new RangeError;let i=this.p;for(;e--;)i=i.B;return this.V(i),this.i}eraseElementByValue(e){let i=this.p;for(;i!==this.h;)i.l===e&&this.V(i),i=i.B;return this.i}eraseElementByIterator(e){let i=e.o;return i===this.h&&(0,a.throwIteratorAccessError)(),e=e.next(),this.V(i),e}pushBack(e){return this.G(e,this._),this.i}popBack(){if(this.i===0)return;let e=this._.l;return this.V(this._),e}pushFront(e){return this.G(e,this.h),this.i}popFront(){if(this.i===0)return;let e=this.p.l;return this.V(this.p),e}setElementByPos(e,i){if(e<0||e>this.i-1)throw new RangeError;let l=this.p;for(;e--;)l=l.B;l.l=i}insert(e,i,l=1){if(e<0||e>this.i)throw new RangeError;if(l<=0)return this.i;if(e===0)for(;l--;)this.pushFront(i);else if(e===this.i)for(;l--;)this.pushBack(i);else{let d=this.p;for(let g=1;g{ge(),me(),ye(),Object.defineProperty(f,"t",{value:!0}),f.default=void 0;var h=a(po()),s=da();function a(t){return t&&t.t?t:{default:t}}var c=class ma extends s.RandomIterator{constructor(e,i,l){super(e,l),this.container=i}copy(){return new ma(this.o,this.container,this.iteratorType)}},n=class extends h.default{constructor(t=[],e=4096){super(),this.j=0,this.D=0,this.R=0,this.N=0,this.P=0,this.A=[];let i=(()=>{if(typeof t.length=="number")return t.length;if(typeof t.size=="number")return t.size;if(typeof t.size=="function")return t.size();throw new TypeError("Cannot get the length or size of the container")})();this.F=e,this.P=Math.max(Math.ceil(i/this.F),1);for(let p=0;p>1)-(l>>1),this.D=this.N=this.F-i%this.F>>1;let d=this;t.forEach(function(p){d.pushBack(p)})}T(){let t=[],e=Math.max(this.P>>1,1);for(let i=0;i>1}begin(){return new c(0,this)}end(){return new c(this.i,this)}rBegin(){return new c(this.i-1,this,1)}rEnd(){return new c(-1,this,1)}front(){if(this.i!==0)return this.A[this.j][this.D]}back(){if(this.i!==0)return this.A[this.R][this.N]}pushBack(t){return this.i&&(this.N0?this.N-=1:this.R>0?(this.R-=1,this.N=this.F-1):(this.R=this.P-1,this.N=this.F-1)),this.i-=1,t}pushFront(t){return this.i&&(this.D>0?this.D-=1:this.j>0?(this.j-=1,this.D=this.F-1):(this.j=this.P-1,this.D=this.F-1),this.j===this.R&&this.D===this.N&&this.T()),this.i+=1,this.A[this.j][this.D]=t,this.i}popFront(){if(this.i===0)return;let t=this.A[this.j][this.D];return this.i!==1&&(this.Dthis.i-1)throw new RangeError;let{curNodeBucketIndex:e,curNodePointerIndex:i}=this.O(t);return this.A[e][i]}setElementByPos(t,e){if(t<0||t>this.i-1)throw new RangeError;let{curNodeBucketIndex:i,curNodePointerIndex:l}=this.O(t);this.A[i][l]=e}insert(t,e,i=1){if(t<0||t>this.i)throw new RangeError;if(t===0)for(;i--;)this.pushFront(e);else if(t===this.i)for(;i--;)this.pushBack(e);else{let l=[];for(let d=t;dthis.i-1)throw new RangeError;if(t===0)this.popFront();else if(t===this.i-1)this.popBack();else{let e=[];for(let l=t+1;lt;)this.popBack();return this.i}sort(t){let e=[];for(let i=0;i{ge(),me(),ye(),Object.defineProperty(f,"t",{value:!0}),f.TreeNodeEnableIndex=f.TreeNode=void 0;var h=class{constructor(a,c){this.ee=1,this.u=void 0,this.l=void 0,this.U=void 0,this.W=void 0,this.tt=void 0,this.u=a,this.l=c}L(){let a=this;if(a.ee===1&&a.tt.tt===a)a=a.W;else if(a.U)for(a=a.U;a.W;)a=a.W;else{let c=a.tt;for(;c.U===a;)a=c,c=a.tt;a=c}return a}B(){let a=this;if(a.W){for(a=a.W;a.U;)a=a.U;return a}else{let c=a.tt;for(;c.W===a;)a=c,c=a.tt;return a.W!==c?c:a}}te(){let a=this.tt,c=this.W,n=c.U;return a.tt===this?a.tt=c:a.U===this?a.U=c:a.W=c,c.tt=a,c.U=this,this.tt=c,this.W=n,n&&(n.tt=this),c}se(){let a=this.tt,c=this.U,n=c.W;return a.tt===this?a.tt=c:a.U===this?a.U=c:a.W=c,c.tt=a,c.W=this,this.tt=c,this.U=n,n&&(n.tt=this),c}};f.TreeNode=h;var s=class extends h{constructor(){super(...arguments),this.rt=1}te(){let a=super.te();return this.ie(),a.ie(),a}se(){let a=super.se();return this.ie(),a.ie(),a}ie(){this.rt=1,this.U&&(this.rt+=this.U.rt),this.W&&(this.rt+=this.W.rt)}};f.TreeNodeEnableIndex=s}),ba=Se(f=>{ge(),me(),ye(),Object.defineProperty(f,"t",{value:!0}),f.default=void 0;var h=Su(),s=Rt(),a=jt(),c=class extends s.Container{constructor(r=function(e,i){return ei?1:0},t=!1){super(),this.Y=void 0,this.v=r,t?(this.re=h.TreeNodeEnableIndex,this.M=function(e,i,l){let d=this.ne(e,i,l);if(d){let p=d.tt;for(;p!==this.h;)p.rt+=1,p=p.tt;let g=this.he(d);if(g){let{parentNode:b,grandParent:E,curNode:S}=g;b.ie(),E.ie(),S.ie()}}return this.i},this.V=function(e){let i=this.fe(e);for(;i!==this.h;)i.rt-=1,i=i.tt}):(this.re=h.TreeNode,this.M=function(e,i,l){let d=this.ne(e,i,l);return d&&this.he(d),this.i},this.V=this.fe),this.h=new this.re}X(r,t){let e=this.h;for(;r;){let i=this.v(r.u,t);if(i<0)r=r.W;else if(i>0)e=r,r=r.U;else return r}return e}Z(r,t){let e=this.h;for(;r;)this.v(r.u,t)<=0?r=r.W:(e=r,r=r.U);return e}$(r,t){let e=this.h;for(;r;){let i=this.v(r.u,t);if(i<0)e=r,r=r.W;else if(i>0)r=r.U;else return r}return e}rr(r,t){let e=this.h;for(;r;)this.v(r.u,t)<0?(e=r,r=r.W):r=r.U;return e}ue(r){for(;;){let t=r.tt;if(t===this.h)return;if(r.ee===1){r.ee=0;return}if(r===t.U){let e=t.W;if(e.ee===1)e.ee=0,t.ee=1,t===this.Y?this.Y=t.te():t.te();else if(e.W&&e.W.ee===1){e.ee=t.ee,t.ee=0,e.W.ee=0,t===this.Y?this.Y=t.te():t.te();return}else e.U&&e.U.ee===1?(e.ee=1,e.U.ee=0,e.se()):(e.ee=1,r=t)}else{let e=t.U;if(e.ee===1)e.ee=0,t.ee=1,t===this.Y?this.Y=t.se():t.se();else if(e.U&&e.U.ee===1){e.ee=t.ee,t.ee=0,e.U.ee=0,t===this.Y?this.Y=t.se():t.se();return}else e.W&&e.W.ee===1?(e.ee=1,e.W.ee=0,e.te()):(e.ee=1,r=t)}}}fe(r){if(this.i===1)return this.clear(),this.h;let t=r;for(;t.U||t.W;){if(t.W)for(t=t.W;t.U;)t=t.U;else t=t.U;[r.u,t.u]=[t.u,r.u],[r.l,t.l]=[t.l,r.l],r=t}this.h.U===t?this.h.U=t.tt:this.h.W===t&&(this.h.W=t.tt),this.ue(t);let e=t.tt;return t===e.U?e.U=void 0:e.W=void 0,this.i-=1,this.Y.ee=0,e}oe(r,t){return r===void 0?!1:this.oe(r.U,t)||t(r)?!0:this.oe(r.W,t)}he(r){for(;;){let t=r.tt;if(t.ee===0)return;let e=t.tt;if(t===e.U){let i=e.W;if(i&&i.ee===1){if(i.ee=t.ee=0,e===this.Y)return;e.ee=1,r=e;continue}else if(r===t.W){if(r.ee=0,r.U&&(r.U.tt=t),r.W&&(r.W.tt=e),t.W=r.U,e.U=r.W,r.U=t,r.W=e,e===this.Y)this.Y=r,this.h.tt=r;else{let l=e.tt;l.U===e?l.U=r:l.W=r}return r.tt=e.tt,t.tt=r,e.tt=r,e.ee=1,{parentNode:t,grandParent:e,curNode:r}}else t.ee=0,e===this.Y?this.Y=e.se():e.se(),e.ee=1}else{let i=e.U;if(i&&i.ee===1){if(i.ee=t.ee=0,e===this.Y)return;e.ee=1,r=e;continue}else if(r===t.U){if(r.ee=0,r.U&&(r.U.tt=e),r.W&&(r.W.tt=t),e.W=r.U,t.U=r.W,r.U=e,r.W=t,e===this.Y)this.Y=r,this.h.tt=r;else{let l=e.tt;l.U===e?l.U=r:l.W=r}return r.tt=e.tt,t.tt=r,e.tt=r,e.ee=1,{parentNode:t,grandParent:e,curNode:r}}else t.ee=0,e===this.Y?this.Y=e.te():e.te(),e.ee=1}return}}ne(r,t,e){if(this.Y===void 0){this.i+=1,this.Y=new this.re(r,t),this.Y.ee=0,this.Y.tt=this.h,this.h.tt=this.Y,this.h.U=this.Y,this.h.W=this.Y;return}let i,l=this.h.U,d=this.v(l.u,r);if(d===0){l.l=t;return}else if(d>0)l.U=new this.re(r,t),l.U.tt=l,i=l.U,this.h.U=i;else{let p=this.h.W,g=this.v(p.u,r);if(g===0){p.l=t;return}else if(g<0)p.W=new this.re(r,t),p.W.tt=p,i=p.W,this.h.W=i;else{if(e!==void 0){let b=e.o;if(b!==this.h){let E=this.v(b.u,r);if(E===0){b.l=t;return}else if(E>0){let S=b.L(),x=this.v(S.u,r);if(x===0){S.l=t;return}else x<0&&(i=new this.re(r,t),S.W===void 0?(S.W=i,i.tt=S):(b.U=i,i.tt=b))}}}if(i===void 0)for(i=this.Y;;){let b=this.v(i.u,r);if(b>0){if(i.U===void 0){i.U=new this.re(r,t),i.U.tt=i,i=i.U;break}i=i.U}else if(b<0){if(i.W===void 0){i.W=new this.re(r,t),i.W.tt=i,i=i.W;break}i=i.W}else{i.l=t;return}}}}return this.i+=1,i}I(r,t){for(;r;){let e=this.v(r.u,t);if(e<0)r=r.W;else if(e>0)r=r.U;else return r}return r||this.h}clear(){this.i=0,this.Y=void 0,this.h.tt=void 0,this.h.U=this.h.W=void 0}updateKeyByIterator(r,t){let e=r.o;if(e===this.h&&(0,a.throwIteratorAccessError)(),this.i===1)return e.u=t,!0;if(e===this.h.U)return this.v(e.B().u,t)>0?(e.u=t,!0):!1;if(e===this.h.W)return this.v(e.L().u,t)<0?(e.u=t,!0):!1;let i=e.L().u;if(this.v(i,t)>=0)return!1;let l=e.B().u;return this.v(l,t)<=0?!1:(e.u=t,!0)}eraseElementByPos(r){if(r<0||r>this.i-1)throw new RangeError;let t=0,e=this;return this.oe(this.Y,function(i){return r===t?(e.V(i),!0):(t+=1,!1)}),this.i}eraseElementByKey(r){if(this.i===0)return!1;let t=this.I(this.Y,r);return t===this.h?!1:(this.V(t),!0)}eraseElementByIterator(r){let t=r.o;t===this.h&&(0,a.throwIteratorAccessError)();let e=t.W===void 0;return r.iteratorType===0?e&&r.next():(!e||t.U===void 0)&&r.next(),this.V(t),r}forEach(r){let t=0;for(let e of this)r(e,t++,this)}getElementByPos(r){if(r<0||r>this.i-1)throw new RangeError;let t,e=0;for(let i of this){if(e===r){t=i;break}e+=1}return t}getHeight(){if(this.i===0)return 0;let r=function(t){return t?Math.max(r(t.U),r(t.W))+1:0};return r(this.Y)}},n=c;f.default=n}),va=Se(f=>{ge(),me(),ye(),Object.defineProperty(f,"t",{value:!0}),f.default=void 0;var h=Rt(),s=jt(),a=class extends h.ContainerIterator{constructor(n,r,t){super(t),this.o=n,this.h=r,this.iteratorType===0?(this.pre=function(){return this.o===this.h.U&&(0,s.throwIteratorAccessError)(),this.o=this.o.L(),this},this.next=function(){return this.o===this.h&&(0,s.throwIteratorAccessError)(),this.o=this.o.B(),this}):(this.pre=function(){return this.o===this.h.W&&(0,s.throwIteratorAccessError)(),this.o=this.o.B(),this},this.next=function(){return this.o===this.h&&(0,s.throwIteratorAccessError)(),this.o=this.o.L(),this})}get index(){let n=this.o,r=this.h.tt;if(n===this.h)return r?r.rt-1:0;let t=0;for(n.U&&(t+=n.U.rt);n!==r;){let e=n.tt;n===e.W&&(t+=1,e.U&&(t+=e.U.rt)),n=e}return t}},c=a;f.default=c}),Eu=Se(f=>{ge(),me(),ye(),Object.defineProperty(f,"t",{value:!0}),f.default=void 0;var h=c(ba()),s=c(va()),a=jt();function c(e){return e&&e.t?e:{default:e}}var n=class wa extends s.default{constructor(i,l,d,p){super(i,l,p),this.container=d}get pointer(){return this.o===this.h&&(0,a.throwIteratorAccessError)(),this.o.u}copy(){return new wa(this.o,this.h,this.container,this.iteratorType)}},r=class extends h.default{constructor(e=[],i,l){super(i,l);let d=this;e.forEach(function(p){d.insert(p)})}*K(e){e!==void 0&&(yield*this.K(e.U),yield e.u,yield*this.K(e.W))}begin(){return new n(this.h.U||this.h,this.h,this)}end(){return new n(this.h,this.h,this)}rBegin(){return new n(this.h.W||this.h,this.h,this,1)}rEnd(){return new n(this.h,this.h,this,1)}front(){return this.h.U?this.h.U.u:void 0}back(){return this.h.W?this.h.W.u:void 0}insert(e,i){return this.M(e,void 0,i)}find(e){let i=this.I(this.Y,e);return new n(i,this.h,this)}lowerBound(e){let i=this.X(this.Y,e);return new n(i,this.h,this)}upperBound(e){let i=this.Z(this.Y,e);return new n(i,this.h,this)}reverseLowerBound(e){let i=this.$(this.Y,e);return new n(i,this.h,this)}reverseUpperBound(e){let i=this.rr(this.Y,e);return new n(i,this.h,this)}union(e){let i=this;return e.forEach(function(l){i.insert(l)}),this.i}[Symbol.iterator](){return this.K(this.Y)}},t=r;f.default=t}),Au=Se(f=>{ge(),me(),ye(),Object.defineProperty(f,"t",{value:!0}),f.default=void 0;var h=c(ba()),s=c(va()),a=jt();function c(e){return e&&e.t?e:{default:e}}var n=class _a extends s.default{constructor(i,l,d,p){super(i,l,p),this.container=d}get pointer(){this.o===this.h&&(0,a.throwIteratorAccessError)();let i=this;return new Proxy([],{get(l,d){if(d==="0")return i.o.u;if(d==="1")return i.o.l},set(l,d,p){if(d!=="1")throw new TypeError("props must be 1");return i.o.l=p,!0}})}copy(){return new _a(this.o,this.h,this.container,this.iteratorType)}},r=class extends h.default{constructor(e=[],i,l){super(i,l);let d=this;e.forEach(function(p){d.setElement(p[0],p[1])})}*K(e){e!==void 0&&(yield*this.K(e.U),yield[e.u,e.l],yield*this.K(e.W))}begin(){return new n(this.h.U||this.h,this.h,this)}end(){return new n(this.h,this.h,this)}rBegin(){return new n(this.h.W||this.h,this.h,this,1)}rEnd(){return new n(this.h,this.h,this,1)}front(){if(this.i===0)return;let e=this.h.U;return[e.u,e.l]}back(){if(this.i===0)return;let e=this.h.W;return[e.u,e.l]}lowerBound(e){let i=this.X(this.Y,e);return new n(i,this.h,this)}upperBound(e){let i=this.Z(this.Y,e);return new n(i,this.h,this)}reverseLowerBound(e){let i=this.$(this.Y,e);return new n(i,this.h,this)}reverseUpperBound(e){let i=this.rr(this.Y,e);return new n(i,this.h,this)}setElement(e,i,l){return this.M(e,i,l)}find(e){let i=this.I(this.Y,e);return new n(i,this.h,this)}getElementByKey(e){return this.I(this.Y,e).l}union(e){let i=this;return e.forEach(function(l){i.setElement(l[0],l[1])}),this.i}[Symbol.iterator](){return this.K(this.Y)}},t=r;f.default=t}),Sa=Se(f=>{ge(),me(),ye(),Object.defineProperty(f,"t",{value:!0}),f.default=h;function h(s){let a=typeof s;return a==="object"&&s!==null||a==="function"}}),Ea=Se(f=>{ge(),me(),ye(),Object.defineProperty(f,"t",{value:!0}),f.HashContainerIterator=f.HashContainer=void 0;var h=Rt(),s=c(Sa()),a=jt();function c(t){return t&&t.t?t:{default:t}}var n=class extends h.ContainerIterator{constructor(t,e,i){super(i),this.o=t,this.h=e,this.iteratorType===0?(this.pre=function(){return this.o.L===this.h&&(0,a.throwIteratorAccessError)(),this.o=this.o.L,this},this.next=function(){return this.o===this.h&&(0,a.throwIteratorAccessError)(),this.o=this.o.B,this}):(this.pre=function(){return this.o.B===this.h&&(0,a.throwIteratorAccessError)(),this.o=this.o.B,this},this.next=function(){return this.o===this.h&&(0,a.throwIteratorAccessError)(),this.o=this.o.L,this})}};f.HashContainerIterator=n;var r=class extends h.Container{constructor(){super(),this.H=[],this.g={},this.HASH_TAG=Symbol("@@HASH_TAG"),Object.setPrototypeOf(this.g,null),this.h={},this.h.L=this.h.B=this.p=this._=this.h}V(t){let{L:e,B:i}=t;e.B=i,i.L=e,t===this.p&&(this.p=i),t===this._&&(this._=e),this.i-=1}M(t,e,i){i===void 0&&(i=(0,s.default)(t));let l;if(i){let d=t[this.HASH_TAG];if(d!==void 0)return this.H[d].l=e,this.i;Object.defineProperty(t,this.HASH_TAG,{value:this.H.length,configurable:!0}),l={u:t,l:e,L:this._,B:this.h},this.H.push(l)}else{let d=this.g[t];if(d)return d.l=e,this.i;l={u:t,l:e,L:this._,B:this.h},this.g[t]=l}return this.i===0?(this.p=l,this.h.B=l):this._.B=l,this._=l,this.h.L=l,++this.i}I(t,e){if(e===void 0&&(e=(0,s.default)(t)),e){let i=t[this.HASH_TAG];return i===void 0?this.h:this.H[i]}else return this.g[t]||this.h}clear(){let t=this.HASH_TAG;this.H.forEach(function(e){delete e.u[t]}),this.H=[],this.g={},Object.setPrototypeOf(this.g,null),this.i=0,this.p=this._=this.h.L=this.h.B=this.h}eraseElementByKey(t,e){let i;if(e===void 0&&(e=(0,s.default)(t)),e){let l=t[this.HASH_TAG];if(l===void 0)return!1;delete t[this.HASH_TAG],i=this.H[l],delete this.H[l]}else{if(i=this.g[t],i===void 0)return!1;delete this.g[t]}return this.V(i),!0}eraseElementByIterator(t){let e=t.o;return e===this.h&&(0,a.throwIteratorAccessError)(),this.V(e),t.next()}eraseElementByPos(t){if(t<0||t>this.i-1)throw new RangeError;let e=this.p;for(;t--;)e=e.B;return this.V(e),this.i}};f.HashContainer=r}),xu=Se(f=>{ge(),me(),ye(),Object.defineProperty(f,"t",{value:!0}),f.default=void 0;var h=Ea(),s=jt(),a=class Aa extends h.HashContainerIterator{constructor(t,e,i,l){super(t,e,l),this.container=i}get pointer(){return this.o===this.h&&(0,s.throwIteratorAccessError)(),this.o.u}copy(){return new Aa(this.o,this.h,this.container,this.iteratorType)}},c=class extends h.HashContainer{constructor(r=[]){super();let t=this;r.forEach(function(e){t.insert(e)})}begin(){return new a(this.p,this.h,this)}end(){return new a(this.h,this.h,this)}rBegin(){return new a(this._,this.h,this,1)}rEnd(){return new a(this.h,this.h,this,1)}front(){return this.p.u}back(){return this._.u}insert(r,t){return this.M(r,void 0,t)}getElementByPos(r){if(r<0||r>this.i-1)throw new RangeError;let t=this.p;for(;r--;)t=t.B;return t.u}find(r,t){let e=this.I(r,t);return new a(e,this.h,this)}forEach(r){let t=0,e=this.p;for(;e!==this.h;)r(e.u,t++,this),e=e.B}[Symbol.iterator](){return(function*(){let r=this.p;for(;r!==this.h;)yield r.u,r=r.B}).bind(this)()}},n=c;f.default=n}),Iu=Se(f=>{ge(),me(),ye(),Object.defineProperty(f,"t",{value:!0}),f.default=void 0;var h=Ea(),s=c(Sa()),a=jt();function c(e){return e&&e.t?e:{default:e}}var n=class xa extends h.HashContainerIterator{constructor(i,l,d,p){super(i,l,p),this.container=d}get pointer(){this.o===this.h&&(0,a.throwIteratorAccessError)();let i=this;return new Proxy([],{get(l,d){if(d==="0")return i.o.u;if(d==="1")return i.o.l},set(l,d,p){if(d!=="1")throw new TypeError("props must be 1");return i.o.l=p,!0}})}copy(){return new xa(this.o,this.h,this.container,this.iteratorType)}},r=class extends h.HashContainer{constructor(e=[]){super();let i=this;e.forEach(function(l){i.setElement(l[0],l[1])})}begin(){return new n(this.p,this.h,this)}end(){return new n(this.h,this.h,this)}rBegin(){return new n(this._,this.h,this,1)}rEnd(){return new n(this.h,this.h,this,1)}front(){if(this.i!==0)return[this.p.u,this.p.l]}back(){if(this.i!==0)return[this._.u,this._.l]}setElement(e,i,l){return this.M(e,i,l)}getElementByKey(e,i){if(i===void 0&&(i=(0,s.default)(e)),i){let d=e[this.HASH_TAG];return d!==void 0?this.H[d].l:void 0}let l=this.g[e];return l?l.l:void 0}getElementByPos(e){if(e<0||e>this.i-1)throw new RangeError;let i=this.p;for(;e--;)i=i.B;return[i.u,i.l]}find(e,i){let l=this.I(e,i);return new n(l,this.h,this)}forEach(e){let i=0,l=this.p;for(;l!==this.h;)e([l.u,l.l],i++,this),l=l.B}[Symbol.iterator](){return(function*(){let e=this.p;for(;e!==this.h;)yield[e.u,e.l],e=e.B}).bind(this)()}},t=r;f.default=t}),Ou=Se(f=>{ge(),me(),ye(),Object.defineProperty(f,"t",{value:!0}),Object.defineProperty(f,"Deque",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(f,"HashMap",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(f,"HashSet",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(f,"LinkList",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(f,"OrderedMap",{enumerable:!0,get:function(){return e.default}}),Object.defineProperty(f,"OrderedSet",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(f,"PriorityQueue",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(f,"Queue",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(f,"Stack",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(f,"Vector",{enumerable:!0,get:function(){return c.default}});var h=d(yu()),s=d(mu()),a=d(bu()),c=d(vu()),n=d(wu()),r=d(_u()),t=d(Eu()),e=d(Au()),i=d(xu()),l=d(Iu());function d(p){return p&&p.t?p:{default:p}}}),Pu=Se((f,h)=>{ge(),me(),ye();var s=Ou().OrderedSet,a=Tt()("number-allocator:trace"),c=Tt()("number-allocator:error");function n(t,e){this.low=t,this.high=e}n.prototype.equals=function(t){return this.low===t.low&&this.high===t.high},n.prototype.compare=function(t){return this.lowi.compare(l)),a("Create"),this.clear()}r.prototype.firstVacant=function(){return this.ss.size()===0?null:this.ss.front().low},r.prototype.alloc=function(){if(this.ss.size()===0)return a("alloc():empty"),null;let t=this.ss.begin(),e=t.pointer.low,i=t.pointer.high,l=e;return l+1<=i?this.ss.updateKeyByIterator(t,new n(e+1,i)):this.ss.eraseElementByPos(0),a("alloc():"+l),l},r.prototype.use=function(t){let e=new n(t,t),i=this.ss.lowerBound(e);if(!i.equals(this.ss.end())){let l=i.pointer.low,d=i.pointer.high;return i.pointer.equals(e)?(this.ss.eraseElementByIterator(i),a("use():"+t),!0):l>t?!1:l===t?(this.ss.updateKeyByIterator(i,new n(l+1,d)),a("use():"+t),!0):d===t?(this.ss.updateKeyByIterator(i,new n(l,d-1)),a("use():"+t),!0):(this.ss.updateKeyByIterator(i,new n(t+1,d)),this.ss.insert(new n(l,t-1)),a("use():"+t),!0)}return a("use():failed"),!1},r.prototype.free=function(t){if(tthis.max){c("free():"+t+" is out of range");return}let e=new n(t,t),i=this.ss.upperBound(e);if(i.equals(this.ss.end())){if(i.equals(this.ss.begin())){this.ss.insert(e);return}i.pre();let l=i.pointer.high;i.pointer.high+1===t?this.ss.updateKeyByIterator(i,new n(l,t)):this.ss.insert(e)}else if(i.equals(this.ss.begin()))if(t+1===i.pointer.low){let l=i.pointer.high;this.ss.updateKeyByIterator(i,new n(t,l))}else this.ss.insert(e);else{let l=i.pointer.low,d=i.pointer.high;i.pre();let p=i.pointer.low;i.pointer.high+1===t?t+1===l?(this.ss.eraseElementByIterator(i),this.ss.updateKeyByIterator(i,new n(p,d))):this.ss.updateKeyByIterator(i,new n(p,t)):t+1===l?(this.ss.eraseElementByIterator(i.next()),this.ss.insert(new n(t,d))):this.ss.insert(e)}a("free():"+t)},r.prototype.clear=function(){a("clear()"),this.ss.clear(),this.ss.insert(new n(this.min,this.max))},r.prototype.intervalCount=function(){return this.ss.size()},r.prototype.dump=function(){""+this.ss.size();for(let t of this.ss);},h.exports=r}),Ia=Se((f,h)=>{ge(),me(),ye();var s=Pu();h.exports.NumberAllocator=s}),ku=Se(f=>{ge(),me(),ye(),Object.defineProperty(f,"__esModule",{value:!0});var h=gu(),s=Ia(),a=class{aliasToTopic;topicToAlias;max;numberAllocator;length;constructor(c){c>0&&(this.aliasToTopic=new h.LRUCache({max:c}),this.topicToAlias={},this.numberAllocator=new s.NumberAllocator(1,c),this.max=c,this.length=0)}put(c,n){if(n===0||n>this.max)return!1;let r=this.aliasToTopic.get(n);return r&&delete this.topicToAlias[r],this.aliasToTopic.set(n,c),this.topicToAlias[c]=n,this.numberAllocator.use(n),this.length=this.aliasToTopic.size,!0}getTopicByAlias(c){return this.aliasToTopic.get(c)}getAliasByTopic(c){let n=this.topicToAlias[c];return typeof n<"u"&&this.aliasToTopic.get(n),n}clear(){this.aliasToTopic.clear(),this.topicToAlias={},this.numberAllocator.clear(),this.length=0}getLruAlias(){return this.numberAllocator.firstVacant()||[...this.aliasToTopic.keys()][this.aliasToTopic.size-1]}};f.default=a}),Tu=Se(f=>{ge(),me(),ye();var h=f&&f.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(f,"__esModule",{value:!0});var s=Zr(),a=h(ku()),c=ar(),n=(r,t)=>{r.log("_handleConnack");let{options:e}=r,i=e.protocolVersion===5?t.reasonCode:t.returnCode;if(clearTimeout(r.connackTimer),delete r.topicAliasSend,t.properties){if(t.properties.topicAliasMaximum){if(t.properties.topicAliasMaximum>65535){r.emit("error",new Error("topicAliasMaximum from broker is out of range"));return}t.properties.topicAliasMaximum>0&&(r.topicAliasSend=new a.default(t.properties.topicAliasMaximum))}t.properties.serverKeepAlive&&e.keepalive&&(e.keepalive=t.properties.serverKeepAlive),t.properties.maximumPacketSize&&(e.properties||(e.properties={}),e.properties.maximumPacketSize=t.properties.maximumPacketSize)}if(i===0)r.reconnecting=!1,r._onConnect(t);else if(i>0){let l=new c.ErrorWithReasonCode(`Connection refused: ${s.ReasonCodes[i]}`,i);r.emit("error",l),r.options.reconnectOnConnackError&&r._cleanUp(!0)}};f.default=n}),Cu=Se(f=>{ge(),me(),ye(),Object.defineProperty(f,"__esModule",{value:!0});var h=(s,a,c)=>{s.log("handling pubrel packet");let n=typeof c<"u"?c:s.noop,{messageId:r}=a,t={cmd:"pubcomp",messageId:r};s.incomingStore.get(a,(e,i)=>{e?s._sendPacket(t,n):(s.emit("message",i.topic,i.payload,i),s.handleMessage(i,l=>{if(l)return n(l);s.incomingStore.del(i,s.noop),s._sendPacket(t,n)}))})};f.default=h}),Ru=Se(f=>{ge(),me(),ye();var h=f&&f.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(f,"__esModule",{value:!0});var s=h(fu()),a=h(du()),c=h(Tu()),n=h(Zr()),r=h(Cu()),t=(e,i,l)=>{let{options:d}=e;if(d.protocolVersion===5&&d.properties&&d.properties.maximumPacketSize&&d.properties.maximumPacketSize{ge(),me(),ye(),Object.defineProperty(f,"__esModule",{value:!0});var h=class{nextId;constructor(){this.nextId=Math.max(1,Math.floor(Math.random()*65535))}allocate(){let s=this.nextId++;return this.nextId===65536&&(this.nextId=1),s}getLastAllocated(){return this.nextId===1?65535:this.nextId-1}register(s){return!0}deallocate(s){}clear(){}};f.default=h}),ju=Se(f=>{ge(),me(),ye(),Object.defineProperty(f,"__esModule",{value:!0});var h=class{aliasToTopic;max;length;constructor(s){this.aliasToTopic={},this.max=s}put(s,a){return a===0||a>this.max?!1:(this.aliasToTopic[a]=s,this.length=Object.keys(this.aliasToTopic).length,!0)}getTopicByAlias(s){return this.aliasToTopic[s]}clear(){this.aliasToTopic={}}};f.default=h}),Mu=Se(f=>{ge(),me(),ye();var h=f&&f.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(f,"__esModule",{value:!0}),f.TypedEventEmitter=void 0;var s=h((Zt(),Ke(qt))),a=ar(),c=class{};f.TypedEventEmitter=c,(0,a.applyMixin)(c,s.default)}),en=Se((f,h)=>{ge(),me(),ye();function s(a){"@babel/helpers - typeof";return h.exports=s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},h.exports.__esModule=!0,h.exports.default=h.exports,s(a)}h.exports=s,h.exports.__esModule=!0,h.exports.default=h.exports}),Bu=Se((f,h)=>{ge(),me(),ye();var s=en().default;function a(c,n){if(s(c)!="object"||!c)return c;var r=c[Symbol.toPrimitive];if(r!==void 0){var t=r.call(c,n||"default");if(s(t)!="object")return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(c)}h.exports=a,h.exports.__esModule=!0,h.exports.default=h.exports}),Nu=Se((f,h)=>{ge(),me(),ye();var s=en().default,a=Bu();function c(n){var r=a(n,"string");return s(r)=="symbol"?r:r+""}h.exports=c,h.exports.__esModule=!0,h.exports.default=h.exports}),Uu=Se((f,h)=>{ge(),me(),ye();var s=Nu();function a(c,n,r){return(n=s(n))in c?Object.defineProperty(c,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):c[n]=r,c}h.exports=a,h.exports.__esModule=!0,h.exports.default=h.exports}),Lu=Se((f,h)=>{ge(),me(),ye();function s(a){if(Array.isArray(a))return a}h.exports=s,h.exports.__esModule=!0,h.exports.default=h.exports}),Du=Se((f,h)=>{ge(),me(),ye();function s(a,c){var n=a==null?null:typeof Symbol<"u"&&a[Symbol.iterator]||a["@@iterator"];if(n!=null){var r,t,e,i,l=[],d=!0,p=!1;try{if(e=(n=n.call(a)).next,c===0){if(Object(n)!==n)return;d=!1}else for(;!(d=(r=e.call(n)).done)&&(l.push(r.value),l.length!==c);d=!0);}catch(g){p=!0,t=g}finally{try{if(!d&&n.return!=null&&(i=n.return(),Object(i)!==i))return}finally{if(p)throw t}}return l}}h.exports=s,h.exports.__esModule=!0,h.exports.default=h.exports}),Fu=Se((f,h)=>{ge(),me(),ye();function s(a,c){(c==null||c>a.length)&&(c=a.length);for(var n=0,r=Array(c);n{ge(),me(),ye();var s=Fu();function a(c,n){if(c){if(typeof c=="string")return s(c,n);var r={}.toString.call(c).slice(8,-1);return r==="Object"&&c.constructor&&(r=c.constructor.name),r==="Map"||r==="Set"?Array.from(c):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?s(c,n):void 0}}h.exports=a,h.exports.__esModule=!0,h.exports.default=h.exports}),$u=Se((f,h)=>{ge(),me(),ye();function s(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}h.exports=s,h.exports.__esModule=!0,h.exports.default=h.exports}),qu=Se((f,h)=>{ge(),me(),ye();var s=Lu(),a=Du(),c=Wu(),n=$u();function r(t,e){return s(t)||a(t,e)||c(t,e)||n()}h.exports=r,h.exports.__esModule=!0,h.exports.default=h.exports}),Pa=Se((f,h)=>{ge(),me(),ye(),(function(s,a){typeof f=="object"&&typeof h<"u"?a(f):typeof define=="function"&&define.amd?define(["exports"],a):(s=typeof globalThis<"u"?globalThis:s||self,a(s.fastUniqueNumbers={}))})(f,function(s){var a=function(g){return function(b){var E=g(b);return b.add(E),E}},c=function(g){return function(b,E){return g.set(b,E),E}},n=Number.MAX_SAFE_INTEGER===void 0?9007199254740991:Number.MAX_SAFE_INTEGER,r=536870912,t=r*2,e=function(g,b){return function(E){var S=b.get(E),x=S===void 0?E.size:Sn)throw new Error("Congratulations, you created a collection of unique numbers which uses all available integers!");for(;E.has(x);)x=Math.floor(Math.random()*n);return g(E,x)}},i=new WeakMap,l=c(i),d=e(l,i),p=a(d);s.addUniqueNumber=p,s.generateUniqueNumber=d})}),Vu=Se((f,h)=>{ge(),me(),ye();function s(c,n,r,t,e,i,l){try{var d=c[i](l),p=d.value}catch(g){return void r(g)}d.done?n(p):Promise.resolve(p).then(t,e)}function a(c){return function(){var n=this,r=arguments;return new Promise(function(t,e){var i=c.apply(n,r);function l(p){s(i,t,e,l,d,"next",p)}function d(p){s(i,t,e,l,d,"throw",p)}l(void 0)})}}h.exports=a,h.exports.__esModule=!0,h.exports.default=h.exports}),ka=Se((f,h)=>{ge(),me(),ye();function s(a,c){this.v=a,this.k=c}h.exports=s,h.exports.__esModule=!0,h.exports.default=h.exports}),Ta=Se((f,h)=>{ge(),me(),ye();function s(a,c,n,r){var t=Object.defineProperty;try{t({},"",{})}catch{t=0}h.exports=s=function(e,i,l,d){function p(g,b){s(e,g,function(E){return this._invoke(g,b,E)})}i?t?t(e,i,{value:l,enumerable:!d,configurable:!d,writable:!d}):e[i]=l:(p("next",0),p("throw",1),p("return",2))},h.exports.__esModule=!0,h.exports.default=h.exports,s(a,c,n,r)}h.exports=s,h.exports.__esModule=!0,h.exports.default=h.exports}),Ca=Se((f,h)=>{ge(),me(),ye();var s=Ta();function a(){var c,n,r=typeof Symbol=="function"?Symbol:{},t=r.iterator||"@@iterator",e=r.toStringTag||"@@toStringTag";function i(x,y,v,A){var _=y&&y.prototype instanceof d?y:d,C=Object.create(_.prototype);return s(C,"_invoke",(function(w,I,k){var j,U,P,z=0,G=k||[],q=!1,he={p:0,n:0,v:c,a:ne,f:ne.bind(c,4),d:function(te,ce){return j=te,U=0,P=c,he.n=ce,l}};function ne(te,ce){for(U=te,P=ce,n=0;!q&&z&&!V&&n3?(V=ee===ce)&&(P=le[(U=le[4])?5:(U=3,3)],le[4]=le[5]=c):le[0]<=M&&((V=te<2&&Mce||ce>ee)&&(le[4]=te,le[5]=ce,he.n=ee,U=0))}if(V||te>1)return l;throw q=!0,ce}return function(te,ce,V){if(z>1)throw TypeError("Generator is already running");for(q&&ce===1&&ne(ce,V),U=ce,P=V;(n=U<2?c:P)||!q;){j||(U?U<3?(U>1&&(he.n=-1),ne(U,P)):he.n=P:he.v=P);try{if(z=2,j){if(U||(te="next"),n=j[te]){if(!(n=n.call(j,P)))throw TypeError("iterator result is not an object");if(!n.done)return n;P=n.value,U<2&&(U=0)}else U===1&&(n=j.return)&&n.call(j),U<2&&(P=TypeError("The iterator does not provide a '"+te+"' method"),U=1);j=c}else if((n=(q=he.n<0)?P:w.call(I,he))!==l)break}catch(le){j=c,U=1,P=le}finally{z=1}}return{value:n,done:q}}})(x,v,A),!0),C}var l={};function d(){}function p(){}function g(){}n=Object.getPrototypeOf;var b=[][t]?n(n([][t]())):(s(n={},t,function(){return this}),n),E=g.prototype=d.prototype=Object.create(b);function S(x){return Object.setPrototypeOf?Object.setPrototypeOf(x,g):(x.__proto__=g,s(x,e,"GeneratorFunction")),x.prototype=Object.create(E),x}return p.prototype=g,s(E,"constructor",g),s(g,"constructor",p),p.displayName="GeneratorFunction",s(g,e,"GeneratorFunction"),s(E),s(E,e,"Generator"),s(E,t,function(){return this}),s(E,"toString",function(){return"[object Generator]"}),(h.exports=a=function(){return{w:i,m:S}},h.exports.__esModule=!0,h.exports.default=h.exports)()}h.exports=a,h.exports.__esModule=!0,h.exports.default=h.exports}),Ra=Se((f,h)=>{ge(),me(),ye();var s=ka(),a=Ta();function c(n,r){function t(i,l,d,p){try{var g=n[i](l),b=g.value;return b instanceof s?r.resolve(b.v).then(function(E){t("next",E,d,p)},function(E){t("throw",E,d,p)}):r.resolve(b).then(function(E){g.value=E,d(g)},function(E){return t("throw",E,d,p)})}catch(E){p(E)}}var e;this.next||(a(c.prototype),a(c.prototype,typeof Symbol=="function"&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),a(this,"_invoke",function(i,l,d){function p(){return new r(function(g,b){t(i,d,g,b)})}return e=e?e.then(p,p):p()},!0)}h.exports=c,h.exports.__esModule=!0,h.exports.default=h.exports}),ja=Se((f,h)=>{ge(),me(),ye();var s=Ca(),a=Ra();function c(n,r,t,e,i){return new a(s().w(n,r,t,e),i||Promise)}h.exports=c,h.exports.__esModule=!0,h.exports.default=h.exports}),zu=Se((f,h)=>{ge(),me(),ye();var s=ja();function a(c,n,r,t,e){var i=s(c,n,r,t,e);return i.next().then(function(l){return l.done?l.value:i.next()})}h.exports=a,h.exports.__esModule=!0,h.exports.default=h.exports}),Ku=Se((f,h)=>{ge(),me(),ye();function s(a){var c=Object(a),n=[];for(var r in c)n.unshift(r);return function t(){for(;n.length;)if((r=n.pop())in c)return t.value=r,t.done=!1,t;return t.done=!0,t}}h.exports=s,h.exports.__esModule=!0,h.exports.default=h.exports}),Hu=Se((f,h)=>{ge(),me(),ye();var s=en().default;function a(c){if(c!=null){var n=c[typeof Symbol=="function"&&Symbol.iterator||"@@iterator"],r=0;if(n)return n.call(c);if(typeof c.next=="function")return c;if(!isNaN(c.length))return{next:function(){return c&&r>=c.length&&(c=void 0),{value:c&&c[r++],done:!c}}}}throw new TypeError(s(c)+" is not iterable")}h.exports=a,h.exports.__esModule=!0,h.exports.default=h.exports}),Gu=Se((f,h)=>{ge(),me(),ye();var s=ka(),a=Ca(),c=zu(),n=ja(),r=Ra(),t=Ku(),e=Hu();function i(){var l=a(),d=l.m(i),p=(Object.getPrototypeOf?Object.getPrototypeOf(d):d.__proto__).constructor;function g(S){var x=typeof S=="function"&&S.constructor;return!!x&&(x===p||(x.displayName||x.name)==="GeneratorFunction")}var b={throw:1,return:2,break:3,continue:3};function E(S){var x,y;return function(v){x||(x={stop:function(){return y(v.a,2)},catch:function(){return v.v},abrupt:function(A,_){return y(v.a,b[A],_)},delegateYield:function(A,_,C){return x.resultName=_,y(v.d,e(A),C)},finish:function(A){return y(v.f,A)}},y=function(A,_,C){v.p=x.prev,v.n=x.next;try{return A(_,C)}finally{x.next=v.n}}),x.resultName&&(x[x.resultName]=v.v,x.resultName=void 0),x.sent=v.v,x.next=v.n;try{return S.call(this,x)}finally{v.p=x.prev,v.n=x.next}}}return(h.exports=i=function(){return{wrap:function(S,x,y,v){return l.w(E(S),x,y,v&&v.reverse())},isGeneratorFunction:g,mark:l.m,awrap:function(S,x){return new s(S,x)},AsyncIterator:r,async:function(S,x,y,v,A){return(g(x)?n:c)(E(S),x,y,v,A)},keys:t,values:e}},h.exports.__esModule=!0,h.exports.default=h.exports)()}h.exports=i,h.exports.__esModule=!0,h.exports.default=h.exports}),Qu=Se((f,h)=>{ge(),me(),ye();var s=Gu()();h.exports=s;try{regeneratorRuntime=s}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=s:Function("r","regeneratorRuntime = r")(s)}}),Yu=Se((f,h)=>{ge(),me(),ye(),(function(s,a){typeof f=="object"&&typeof h<"u"?a(f,Uu(),qu(),Pa(),Vu(),Qu()):typeof define=="function"&&define.amd?define(["exports","@babel/runtime/helpers/defineProperty","@babel/runtime/helpers/slicedToArray","fast-unique-numbers","@babel/runtime/helpers/asyncToGenerator","@babel/runtime/regenerator"],a):(s=typeof globalThis<"u"?globalThis:s||self,a(s.brokerFactory={},s._defineProperty,s._slicedToArray,s.fastUniqueNumbers,s._asyncToGenerator,s._regeneratorRuntime))})(f,function(s,a,c,n,r,t){var e=function(y){return typeof y.start=="function"},i=new WeakMap;function l(y,v){var A=Object.keys(y);if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(y);v&&(_=_.filter(function(C){return Object.getOwnPropertyDescriptor(y,C).enumerable})),A.push.apply(A,_)}return A}function d(y){for(var v=1;v1&&arguments[1]!==void 0?arguments[1]:null,he=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return new Promise(function(ne,te){var ce=n.generateUniqueNumber(_);_.set(ce,{reject:te,resolve:ne}),q===null?A.postMessage({id:ce,method:G},he):A.postMessage({id:ce,method:G,params:q},he)})},w=function(G,q){var he=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];A.postMessage({id:null,method:G,params:q},he)},I={},k=0,j=Object.entries(v);k{ge(),me(),ye(),(function(s,a){typeof f=="object"&&typeof h<"u"?a(f,en(),Yu(),Pa()):typeof define=="function"&&define.amd?define(["exports","@babel/runtime/helpers/typeof","broker-factory","fast-unique-numbers"],a):(s=typeof globalThis<"u"?globalThis:s||self,a(s.workerTimersBroker={},s._typeof,s.brokerFactory,s.fastUniqueNumbers))})(f,function(s,a,c,n){var r=new Map([[0,null]]),t=new Map([[0,null]]),e=c.createBroker({clearInterval:function(l){var d=l.call;return function(p){a(r.get(p))==="symbol"&&(r.set(p,null),d("clear",{timerId:p,timerType:"interval"}).then(function(){r.delete(p)}))}},clearTimeout:function(l){var d=l.call;return function(p){a(t.get(p))==="symbol"&&(t.set(p,null),d("clear",{timerId:p,timerType:"timeout"}).then(function(){t.delete(p)}))}},setInterval:function(l){var d=l.call;return function(p){for(var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,b=arguments.length,E=new Array(b>2?b-2:0),S=2;S1&&arguments[1]!==void 0?arguments[1]:0,b=arguments.length,E=new Array(b>2?b-2:0),S=2;S{ge(),me(),ye(),(function(s,a){typeof f=="object"&&typeof h<"u"?a(f,Ju()):typeof define=="function"&&define.amd?define(["exports","worker-timers-broker"],a):(s=typeof globalThis<"u"?globalThis:s||self,a(s.workerTimers={},s.workerTimersBroker))})(f,function(s,a){var c=function(d,p){var g=null;return function(){if(g!==null)return g;var b=new Blob([p],{type:"application/javascript; charset=utf-8"}),E=URL.createObjectURL(b);return g=d(E),setTimeout(function(){return URL.revokeObjectURL(E)}),g}},n=`(()=>{var e={45:(e,t,r)=>{var n=r(738).default;e.exports=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},79:e=>{e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r{var n=r(79);e.exports=function(e,t){if(e){if("string"==typeof e)return n(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports},156:e=>{e.exports=function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,u,a,i=[],s=!0,c=!1;try{if(u=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=u.call(r)).done)&&(i.push(n.value),i.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return i}},e.exports.__esModule=!0,e.exports.default=e.exports},172:e=>{e.exports=function(e,t){this.v=e,this.k=t},e.exports.__esModule=!0,e.exports.default=e.exports},293:e=>{function t(e,t,r,n,o,u,a){try{var i=e[u](a),s=i.value}catch(e){return void r(e)}i.done?t(s):Promise.resolve(s).then(n,o)}e.exports=function(e){return function(){var r=this,n=arguments;return new Promise((function(o,u){var a=e.apply(r,n);function i(e){t(a,o,u,i,s,"next",e)}function s(e){t(a,o,u,i,s,"throw",e)}i(void 0)}))}},e.exports.__esModule=!0,e.exports.default=e.exports},373:e=>{e.exports=function(e){var t=Object(e),r=[];for(var n in t)r.unshift(n);return function e(){for(;r.length;)if((n=r.pop())in t)return e.value=n,e.done=!1,e;return e.done=!0,e}},e.exports.__esModule=!0,e.exports.default=e.exports},389:function(e,t){!function(e){"use strict";var t=function(e){return function(t){var r=e(t);return t.add(r),r}},r=function(e){return function(t,r){return e.set(t,r),r}},n=void 0===Number.MAX_SAFE_INTEGER?9007199254740991:Number.MAX_SAFE_INTEGER,o=536870912,u=2*o,a=function(e,t){return function(r){var a=t.get(r),i=void 0===a?r.size:an)throw new Error("Congratulations, you created a collection of unique numbers which uses all available integers!");for(;r.has(i);)i=Math.floor(Math.random()*n);return e(r,i)}},i=new WeakMap,s=r(i),c=a(s,i),f=t(c);e.addUniqueNumber=f,e.generateUniqueNumber=c}(t)},472:function(e,t,r){!function(e,t,r,n){"use strict";var o=function(e,t){return function(r){var o=t.get(r);if(void 0===o)return Promise.resolve(!1);var u=n(o,2),a=u[0],i=u[1];return e(a),t.delete(r),i(!1),Promise.resolve(!0)}},u=function(e,t){var r=function(n,o,u,a){var i=n-e.now();i>0?o.set(a,[t(r,i,n,o,u,a),u]):(o.delete(a),u(!0))};return r},a=function(e,t,r,n){return function(o,u,a){var i=o+u-t.timeOrigin,s=i-t.now();return new Promise((function(t){e.set(a,[r(n,s,i,e,t,a),t])}))}},i=new Map,s=o(globalThis.clearTimeout,i),c=new Map,f=o(globalThis.clearTimeout,c),l=u(performance,globalThis.setTimeout),p=a(i,performance,globalThis.setTimeout,l),d=a(c,performance,globalThis.setTimeout,l);r.createWorker(self,{clear:function(){var r=e(t.mark((function e(r){var n,o,u;return t.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=r.timerId,o=r.timerType,e.next=1,"interval"===o?s(n):f(n);case 1:return u=e.sent,e.abrupt("return",{result:u});case 2:case"end":return e.stop()}}),e)})));function n(e){return r.apply(this,arguments)}return n}(),set:function(){var r=e(t.mark((function e(r){var n,o,u,a,i;return t.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=r.delay,o=r.now,u=r.timerId,a=r.timerType,e.next=1,("interval"===a?p:d)(n,o,u);case 1:return i=e.sent,e.abrupt("return",{result:i});case 2:case"end":return e.stop()}}),e)})));function n(e){return r.apply(this,arguments)}return n}()})}(r(293),r(756),r(623),r(715))},546:e=>{function t(r,n,o,u){var a=Object.defineProperty;try{a({},"",{})}catch(r){a=0}e.exports=t=function(e,r,n,o){if(r)a?a(e,r,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[r]=n;else{var u=function(r,n){t(e,r,(function(e){return this._invoke(r,n,e)}))};u("next",0),u("throw",1),u("return",2)}},e.exports.__esModule=!0,e.exports.default=e.exports,t(r,n,o,u)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},579:(e,t,r)=>{var n=r(738).default;e.exports=function(e){if(null!=e){var t=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],r=0;if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}}}throw new TypeError(n(e)+" is not iterable")},e.exports.__esModule=!0,e.exports.default=e.exports},623:function(e,t,r){!function(e,t,r,n,o){"use strict";var u={INTERNAL_ERROR:-32603,INVALID_PARAMS:-32602,METHOD_NOT_FOUND:-32601},a=function(e,t){return Object.assign(new Error(e),{status:t})},i=function(e){return a('The requested method called "'.concat(e,'" is not supported.'),u.METHOD_NOT_FOUND)},s=function(e){return a('The handler of the method called "'.concat(e,'" returned no required result.'),u.INTERNAL_ERROR)},c=function(e){return a('The handler of the method called "'.concat(e,'" returned an unexpected result.'),u.INTERNAL_ERROR)},f=function(e){return a('The specified parameter called "portId" with the given value "'.concat(e,'" does not identify a port connected to this worker.'),u.INVALID_PARAMS)},l=function(e,n){return function(){var o=t(r.mark((function t(o){var u,a,f,l,p,d,v,x,y,b,h,m,_,g,w;return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(u=o.data,a=u.id,f=u.method,l=u.params,p=n[f],t.prev=1,void 0!==p){t.next=2;break}throw i(f);case 2:if(void 0!==(d=void 0===l?p():p(l))){t.next=3;break}throw s(f);case 3:if(!(d instanceof Promise)){t.next=5;break}return t.next=4,d;case 4:g=t.sent,t.next=6;break;case 5:g=d;case 6:if(v=g,null!==a){t.next=8;break}if(void 0===v.result){t.next=7;break}throw c(f);case 7:t.next=10;break;case 8:if(void 0!==v.result){t.next=9;break}throw c(f);case 9:x=v.result,y=v.transferables,b=void 0===y?[]:y,e.postMessage({id:a,result:x},b);case 10:t.next=12;break;case 11:t.prev=11,w=t.catch(1),h=w.message,m=w.status,_=void 0===m?-32603:m,e.postMessage({error:{code:_,message:h},id:a});case 12:case"end":return t.stop()}}),t,null,[[1,11]])})));return function(e){return o.apply(this,arguments)}}()},p=function(){return new Promise((function(e){var t=new ArrayBuffer(0),r=new MessageChannel,n=r.port1,o=r.port2;n.onmessage=function(t){var r=t.data;return e(null!==r)},o.postMessage(t,[t])}))};function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function v(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:function(){return!0}),n=l(e,r);return e.addEventListener("message",n),function(){return e.removeEventListener("message",n)}};e.createWorker=b,e.isSupported=p}(t,r(293),r(756),r(693),r(389))},633:(e,t,r)=>{var n=r(172),o=r(993),u=r(869),a=r(887),i=r(791),s=r(373),c=r(579);function f(){"use strict";var t=o(),r=t.m(f),l=(Object.getPrototypeOf?Object.getPrototypeOf(r):r.__proto__).constructor;function p(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===l||"GeneratorFunction"===(t.displayName||t.name))}var d={throw:1,return:2,break:3,continue:3};function v(e){var t,r;return function(n){t||(t={stop:function(){return r(n.a,2)},catch:function(){return n.v},abrupt:function(e,t){return r(n.a,d[e],t)},delegateYield:function(e,o,u){return t.resultName=o,r(n.d,c(e),u)},finish:function(e){return r(n.f,e)}},r=function(e,r,o){n.p=t.prev,n.n=t.next;try{return e(r,o)}finally{t.next=n.n}}),t.resultName&&(t[t.resultName]=n.v,t.resultName=void 0),t.sent=n.v,t.next=n.n;try{return e.call(this,t)}finally{n.p=t.prev,n.n=t.next}}}return(e.exports=f=function(){return{wrap:function(e,r,n,o){return t.w(v(e),r,n,o&&o.reverse())},isGeneratorFunction:p,mark:t.m,awrap:function(e,t){return new n(e,t)},AsyncIterator:i,async:function(e,t,r,n,o){return(p(t)?a:u)(v(e),t,r,n,o)},keys:s,values:c}},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=f,e.exports.__esModule=!0,e.exports.default=e.exports},693:(e,t,r)=>{var n=r(736);e.exports=function(e,t,r){return(t=n(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e},e.exports.__esModule=!0,e.exports.default=e.exports},715:(e,t,r)=>{var n=r(987),o=r(156),u=r(122),a=r(752);e.exports=function(e,t){return n(e)||o(e,t)||u(e,t)||a()},e.exports.__esModule=!0,e.exports.default=e.exports},736:(e,t,r)=>{var n=r(738).default,o=r(45);e.exports=function(e){var t=o(e,"string");return"symbol"==n(t)?t:t+""},e.exports.__esModule=!0,e.exports.default=e.exports},738:e=>{function t(r){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},752:e=>{e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},756:(e,t,r)=>{var n=r(633)();e.exports=n;try{regeneratorRuntime=n}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}},791:(e,t,r)=>{var n=r(172),o=r(546);e.exports=function e(t,r){function u(e,o,a,i){try{var s=t[e](o),c=s.value;return c instanceof n?r.resolve(c.v).then((function(e){u("next",e,a,i)}),(function(e){u("throw",e,a,i)})):r.resolve(c).then((function(e){s.value=e,a(s)}),(function(e){return u("throw",e,a,i)}))}catch(e){i(e)}}var a;this.next||(o(e.prototype),o(e.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",(function(){return this}))),o(this,"_invoke",(function(e,t,n){function o(){return new r((function(t,r){u(e,n,t,r)}))}return a=a?a.then(o,o):o()}),!0)},e.exports.__esModule=!0,e.exports.default=e.exports},869:(e,t,r)=>{var n=r(887);e.exports=function(e,t,r,o,u){var a=n(e,t,r,o,u);return a.next().then((function(e){return e.done?e.value:a.next()}))},e.exports.__esModule=!0,e.exports.default=e.exports},887:(e,t,r)=>{var n=r(993),o=r(791);e.exports=function(e,t,r,u,a){return new o(n().w(e,t,r,u),a||Promise)},e.exports.__esModule=!0,e.exports.default=e.exports},987:e=>{e.exports=function(e){if(Array.isArray(e))return e},e.exports.__esModule=!0,e.exports.default=e.exports},993:(e,t,r)=>{var n=r(546);function o(){var t,r,u="function"==typeof Symbol?Symbol:{},a=u.iterator||"@@iterator",i=u.toStringTag||"@@toStringTag";function s(e,o,u,a){var i=o&&o.prototype instanceof f?o:f,s=Object.create(i.prototype);return n(s,"_invoke",function(e,n,o){var u,a,i,s=0,f=o||[],l=!1,p={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,r){return u=e,a=0,i=t,p.n=r,c}};function d(e,n){for(a=e,i=n,r=0;!l&&s&&!o&&r3?(o=v===n)&&(i=u[(a=u[4])?5:(a=3,3)],u[4]=u[5]=t):u[0]<=d&&((o=e<2&&dn||n>v)&&(u[4]=e,u[5]=n,p.n=v,a=0))}if(o||e>1)return c;throw l=!0,n}return function(o,f,v){if(s>1)throw TypeError("Generator is already running");for(l&&1===f&&d(f,v),a=f,i=v;(r=a<2?t:i)||!l;){u||(a?a<3?(a>1&&(p.n=-1),d(a,i)):p.n=i:p.v=i);try{if(s=2,u){if(a||(o="next"),r=u[o]){if(!(r=r.call(u,i)))throw TypeError("iterator result is not an object");if(!r.done)return r;i=r.value,a<2&&(a=0)}else 1===a&&(r=u.return)&&r.call(u),a<2&&(i=TypeError("The iterator does not provide a '"+o+"' method"),a=1);u=t}else if((r=(l=p.n<0)?i:e.call(n,p))!==c)break}catch(e){u=t,a=1,i=e}finally{s=1}}return{value:r,done:l}}}(e,u,a),!0),s}var c={};function f(){}function l(){}function p(){}r=Object.getPrototypeOf;var d=[][a]?r(r([][a]())):(n(r={},a,(function(){return this})),r),v=p.prototype=f.prototype=Object.create(d);function x(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,n(e,i,"GeneratorFunction")),e.prototype=Object.create(v),e}return l.prototype=p,n(v,"constructor",p),n(p,"constructor",l),l.displayName="GeneratorFunction",n(p,i,"GeneratorFunction"),n(v),n(v,i,"Generator"),n(v,a,(function(){return this})),n(v,"toString",(function(){return"[object Generator]"})),(e.exports=o=function(){return{w:s,m:x}},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var u=t[n]={exports:{}};return e[n].call(u.exports,u,u.exports,r),u.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";r(472)})()})();`,r=c(a.load,n),t=function(d){return r().clearInterval(d)},e=function(d){return r().clearTimeout(d)},i=function(){var d;return(d=r()).setInterval.apply(d,arguments)},l=function(){var d;return(d=r()).setTimeout.apply(d,arguments)};s.clearInterval=t,s.clearTimeout=e,s.setInterval=i,s.setTimeout=l})}),tn=Se(f=>{ge(),me(),ye(),Object.defineProperty(f,"__esModule",{value:!0}),f.isReactNativeBrowser=f.isWebWorker=void 0;var h=()=>typeof window<"u"?typeof navigator<"u"&&navigator.userAgent?.toLowerCase().indexOf(" electron/")>-1&&Ge?.versions?!Object.prototype.hasOwnProperty.call(Ge.versions,"electron"):typeof window.document<"u":!1,s=()=>!!(typeof self=="object"&&self?.constructor?.name?.includes("WorkerGlobalScope")),a=()=>typeof navigator<"u"&&navigator.product==="ReactNative",c=h()||s()||a();f.isWebWorker=s(),f.isReactNativeBrowser=a(),f.default=c}),Zu=Se(f=>{ge(),me(),ye();var h=f&&f.__createBinding||(Object.create?function(i,l,d,p){p===void 0&&(p=d);var g=Object.getOwnPropertyDescriptor(l,d);(!g||("get"in g?!l.__esModule:g.writable||g.configurable))&&(g={enumerable:!0,get:function(){return l[d]}}),Object.defineProperty(i,p,g)}:function(i,l,d,p){p===void 0&&(p=d),i[p]=l[d]}),s=f&&f.__setModuleDefault||(Object.create?function(i,l){Object.defineProperty(i,"default",{enumerable:!0,value:l})}:function(i,l){i.default=l}),a=f&&f.__importStar||(function(){var i=function(l){return i=Object.getOwnPropertyNames||function(d){var p=[];for(var g in d)Object.prototype.hasOwnProperty.call(d,g)&&(p[p.length]=g);return p},i(l)};return function(l){if(l&&l.__esModule)return l;var d={};if(l!=null)for(var p=i(l),g=0;gsetInterval(i,l),clear:i=>clearInterval(i)},e=i=>{switch(i){case"native":return t;case"worker":return r;case"auto":default:return n.default&&!n.isWebWorker&&!n.isReactNativeBrowser?r:t}};f.default=e}),Ma=Se(f=>{ge(),me(),ye();var h=f&&f.__importDefault||function(c){return c&&c.__esModule?c:{default:c}};Object.defineProperty(f,"__esModule",{value:!0});var s=h(Zu()),a=class{_keepalive;timerId;timer;destroyed=!1;counter;client;_keepaliveTimeoutTimestamp;_intervalEvery;get keepaliveTimeoutTimestamp(){return this._keepaliveTimeoutTimestamp}get intervalEvery(){return this._intervalEvery}get keepalive(){return this._keepalive}constructor(c,n){this.client=c,this.timer=typeof n=="object"&&"set"in n&&"clear"in n?n:(0,s.default)(n),this.setKeepalive(c.options.keepalive)}clear(){this.timerId&&(this.timer.clear(this.timerId),this.timerId=null)}setKeepalive(c){if(c*=1e3,isNaN(c)||c<=0||c>2147483647)throw new Error(`Keepalive value must be an integer between 0 and 2147483647. Provided value is ${c}`);this._keepalive=c,this.reschedule(),this.client.log(`KeepaliveManager: set keepalive to ${c}ms`)}destroy(){this.clear(),this.destroyed=!0}reschedule(){if(this.destroyed)return;this.clear(),this.counter=0;let c=Math.ceil(this._keepalive*1.5);this._keepaliveTimeoutTimestamp=Date.now()+c,this._intervalEvery=Math.ceil(this._keepalive/2),this.timerId=this.timer.set(()=>{this.destroyed||(this.counter+=1,this.counter===2?this.client.sendPing():this.counter>2&&this.client.onKeepaliveTimeout())},this._intervalEvery)}};f.default=a}),wi=Se(f=>{var _;ge(),me(),ye();var h=f&&f.__createBinding||(Object.create?function(C,w,I,k){k===void 0&&(k=I);var j=Object.getOwnPropertyDescriptor(w,I);(!j||("get"in j?!w.__esModule:j.writable||j.configurable))&&(j={enumerable:!0,get:function(){return w[I]}}),Object.defineProperty(C,k,j)}:function(C,w,I,k){k===void 0&&(k=I),C[k]=w[I]}),s=f&&f.__setModuleDefault||(Object.create?function(C,w){Object.defineProperty(C,"default",{enumerable:!0,value:w})}:function(C,w){C.default=w}),a=f&&f.__importStar||(function(){var C=function(w){return C=Object.getOwnPropertyNames||function(I){var k=[];for(var j in I)Object.prototype.hasOwnProperty.call(I,j)&&(k[k.length]=j);return k},C(w)};return function(w){if(w&&w.__esModule)return w;var I={};if(w!=null)for(var k=C(w),j=0;j{let w=C.shift();(0,b.nextTick)(()=>{w(...C)})}),v={keepalive:60,reschedulePings:!0,protocolId:"MQTT",protocolVersion:4,reconnectPeriod:1e3,connectTimeout:30*1e3,clean:!0,resubscribe:!0,subscribeBatchSize:null,writeCache:!0,timerVariant:"auto"},A=(_=class extends E.TypedEventEmitter{connected;disconnecting;disconnected;reconnecting;incomingStore;outgoingStore;options;queueQoSZero;_reconnectCount;log;messageIdProvider;outgoing;messageIdToTopic;noop;keepaliveManager;stream;queue;streamBuilder;_resubscribeTopics;connackTimer;reconnectTimer;_storeProcessing;_packetIdsDuringStoreProcessing;_storeProcessingQueue;_firstConnection;topicAliasRecv;topicAliasSend;_deferredReconnect;connackPacket;static defaultId(){return`mqttjs_${Math.random().toString(16).substr(2,8)}`}constructor(w,I){super(),this.options=I||{};for(let k in v)typeof this.options[k]>"u"?this.options[k]=v[k]:this.options[k]=I[k];this.log=this.options.log||(0,e.default)("mqttjs:client"),this.noop=this._noop.bind(this),this.log("MqttClient :: version:",_.VERSION),x.isWebWorker?this.log("MqttClient :: environment","webworker"):this.log("MqttClient :: environment",x.default?"browser":"node"),this.log("MqttClient :: options.protocol",I.protocol),this.log("MqttClient :: options.protocolVersion",I.protocolVersion),this.log("MqttClient :: options.username",I.username),this.log("MqttClient :: options.keepalive",I.keepalive),this.log("MqttClient :: options.reconnectPeriod",I.reconnectPeriod),this.log("MqttClient :: options.rejectUnauthorized",I.rejectUnauthorized),this.log("MqttClient :: options.properties.topicAliasMaximum",I.properties?I.properties.topicAliasMaximum:void 0),this.options.clientId=typeof I.clientId=="string"?I.clientId:_.defaultId(),this.log("MqttClient :: clientId",this.options.clientId),this.options.customHandleAcks=I.protocolVersion===5&&I.customHandleAcks?I.customHandleAcks:(...k)=>{k[3](null,0)},this.options.writeCache||(n.default.writeToStream.cacheNumbers=!1),this.streamBuilder=w,this.messageIdProvider=typeof this.options.messageIdProvider>"u"?new p.default:this.options.messageIdProvider,this.outgoingStore=I.outgoingStore||new l.default,this.incomingStore=I.incomingStore||new l.default,this.queueQoSZero=I.queueQoSZero===void 0?!0:I.queueQoSZero,this._resubscribeTopics={},this.messageIdToTopic={},this.keepaliveManager=null,this.connected=!1,this.disconnecting=!1,this.reconnecting=!1,this.queue=[],this.connackTimer=null,this.reconnectTimer=null,this._storeProcessing=!1,this._packetIdsDuringStoreProcessing={},this._storeProcessingQueue=[],this.outgoing={},this._firstConnection=!0,I.properties&&I.properties.topicAliasMaximum>0&&(I.properties.topicAliasMaximum>65535?this.log("MqttClient :: options.properties.topicAliasMaximum is out of range"):this.topicAliasRecv=new g.default(I.properties.topicAliasMaximum)),this.on("connect",()=>{let{queue:k}=this,j=()=>{let U=k.shift();this.log("deliver :: entry %o",U);let P=null;if(!U){this._resubscribe();return}P=U.packet,this.log("deliver :: call _sendPacket for %o",P);let z=!0;P.messageId&&P.messageId!==0&&(this.messageIdProvider.register(P.messageId)||(z=!1)),z?this._sendPacket(P,G=>{U.cb&&U.cb(G),j()}):(this.log("messageId: %d has already used. The message is skipped and removed.",P.messageId),j())};this.log("connect :: sending queued packets"),j()}),this.on("close",()=>{this.log("close :: connected set to `false`"),this.connected=!1,this.log("close :: clearing connackTimer"),clearTimeout(this.connackTimer),this._destroyKeepaliveManager(),this.topicAliasRecv&&this.topicAliasRecv.clear(),this.log("close :: calling _setupReconnect"),this._setupReconnect()}),this.options.manualConnect||(this.log("MqttClient :: setting up stream"),this.connect())}handleAuth(w,I){I()}handleMessage(w,I){I()}_nextId(){return this.messageIdProvider.allocate()}getLastMessageId(){return this.messageIdProvider.getLastAllocated()}connect(){let w=new r.Writable,I=n.default.parser(this.options),k=null,j=[];this.log("connect :: calling method to clear reconnect"),this._clearReconnect(),this.disconnected&&!this.reconnecting&&(this.incomingStore=this.options.incomingStore||new l.default,this.outgoingStore=this.options.outgoingStore||new l.default,this.disconnecting=!1,this.disconnected=!1),this.log("connect :: using streamBuilder provided to client to create stream"),this.stream=this.streamBuilder(this),I.on("packet",q=>{this.log("parser :: on packet push to packets array."),j.push(q)});let U=()=>{this.log("work :: getting next packet in queue");let q=j.shift();if(q)this.log("work :: packet pulled from queue"),(0,d.default)(this,q,P);else{this.log("work :: no packets in queue");let he=k;k=null,this.log("work :: done flag is %s",!!he),he&&he()}},P=()=>{if(j.length)(0,b.nextTick)(U);else{let q=k;k=null,q()}};w._write=(q,he,ne)=>{k=ne,this.log("writable stream :: parsing buffer"),I.parse(q),U()};let z=q=>{this.log("streamErrorHandler :: error",q.message),q.code?(this.log("streamErrorHandler :: emitting error"),this.emit("error",q)):this.noop(q)};this.log("connect :: pipe stream to writable stream"),this.stream.pipe(w),this.stream.on("error",z),this.stream.on("close",()=>{this.log("(%s)stream :: on close",this.options.clientId),this._flushVolatile(),this.log("stream: emit close to MqttClient"),this.emit("close")}),this.log("connect: sending packet `connect`");let G={cmd:"connect",protocolId:this.options.protocolId,protocolVersion:this.options.protocolVersion,clean:this.options.clean,clientId:this.options.clientId,keepalive:this.options.keepalive,username:this.options.username,password:this.options.password,properties:this.options.properties};if(this.options.will&&(G.will={...this.options.will,payload:this.options.will?.payload}),this.topicAliasRecv&&(G.properties||(G.properties={}),this.topicAliasRecv&&(G.properties.topicAliasMaximum=this.topicAliasRecv.max)),this._writePacket(G),I.on("error",this.emit.bind(this,"error")),this.options.properties){if(!this.options.properties.authenticationMethod&&this.options.properties.authenticationData)return this.end(()=>this.emit("error",new Error("Packet has no Authentication Method"))),this;if(this.options.properties.authenticationMethod&&this.options.authPacket&&typeof this.options.authPacket=="object"){let q={cmd:"auth",reasonCode:0,...this.options.authPacket};this._writePacket(q)}}return this.stream.setMaxListeners(1e3),clearTimeout(this.connackTimer),this.connackTimer=setTimeout(()=>{this.log("!!connectTimeout hit!! Calling _cleanUp with force `true`"),this.emit("error",new Error("connack timeout")),this._cleanUp(!0)},this.options.connectTimeout),this}publish(w,I,k,j){this.log("publish :: message `%s` to topic `%s`",I,w);let{options:U}=this;typeof k=="function"&&(j=k,k=null),k=k||{},k={qos:0,retain:!1,dup:!1,...k};let{qos:P,retain:z,dup:G,properties:q,cbStorePut:he}=k;if(this._checkDisconnecting(j))return this;let ne=()=>{let te=0;if((P===1||P===2)&&(te=this._nextId(),te===null))return this.log("No messageId left"),!1;let ce={cmd:"publish",topic:w,payload:I,qos:P,retain:z,messageId:te,dup:G};switch(U.protocolVersion===5&&(ce.properties=q),this.log("publish :: qos",P),P){case 1:case 2:this.outgoing[ce.messageId]={volatile:!1,cb:j||this.noop},this.log("MqttClient:publish: packet cmd: %s",ce.cmd),this._sendPacket(ce,void 0,he);break;default:this.log("MqttClient:publish: packet cmd: %s",ce.cmd),this._sendPacket(ce,j,he);break}return!0};return(this._storeProcessing||this._storeProcessingQueue.length>0||!ne())&&this._storeProcessingQueue.push({invoke:ne,cbStorePut:k.cbStorePut,callback:j}),this}publishAsync(w,I,k){return new Promise((j,U)=>{this.publish(w,I,k,(P,z)=>{P?U(P):j(z)})})}subscribe(w,I,k){let j=this.options.protocolVersion;typeof I=="function"&&(k=I),k=k||this.noop;let U=!1,P=[];typeof w=="string"?(w=[w],P=w):Array.isArray(w)?P=w:typeof w=="object"&&(U=w.resubscribe,delete w.resubscribe,P=Object.keys(w));let z=i.validateTopics(P);if(z!==null)return y(k,new Error(`Invalid topic ${z}`)),this;if(this._checkDisconnecting(k))return this.log("subscribe: discconecting true"),this;let G={qos:0};j===5&&(G.nl=!1,G.rap=!1,G.rh=0),I={...G,...I};let{properties:q}=I,he=[],ne=(V,le)=>{if(le=le||I,!Object.prototype.hasOwnProperty.call(this._resubscribeTopics,V)||this._resubscribeTopics[V].qos{this.log("subscribe: array topic %s",V),ne(V)}):Object.keys(w).forEach(V=>{this.log("subscribe: object topic %s, %o",V,w[V]),ne(V,w[V])}),!he.length)return k(null,[]),this;let te=(V,le)=>{let M={cmd:"subscribe",subscriptions:V,messageId:le};if(q&&(M.properties=q),this.options.resubscribe){this.log("subscribe :: resubscribe true");let Z=[];V.forEach(ue=>{if(this.options.reconnectPeriod>0){let Ae={qos:ue.qos};j===5&&(Ae.nl=ue.nl||!1,Ae.rap=ue.rap||!1,Ae.rh=ue.rh||0,Ae.properties=ue.properties),this._resubscribeTopics[ue.topic]=Ae,Z.push(ue.topic)}}),this.messageIdToTopic[M.messageId]=Z}let ee=new Promise((Z,ue)=>{this.outgoing[M.messageId]={volatile:!0,cb(Ae,Y){if(!Ae){let{granted:W}=Y;for(let oe=0;oe{let V=this.options.subscribeBatchSize??he.length,le=[];for(let M=0;M{k(null,he,M.at(-1))}).catch(M=>{k(M,he,M.packet)}),!0};return(this._storeProcessing||this._storeProcessingQueue.length>0||!ce())&&this._storeProcessingQueue.push({invoke:ce,callback:k}),this}subscribeAsync(w,I){return new Promise((k,j)=>{this.subscribe(w,I,(U,P)=>{U?j(U):k(P)})})}unsubscribe(w,I,k){typeof w=="string"&&(w=[w]),typeof I=="function"&&(k=I),k=k||this.noop;let j=i.validateTopics(w);if(j!==null)return y(k,new Error(`Invalid topic ${j}`)),this;if(this._checkDisconnecting(k))return this;let U=()=>{let P=this._nextId();if(P===null)return this.log("No messageId left"),!1;let z={cmd:"unsubscribe",messageId:P,unsubscriptions:[]};return typeof w=="string"?z.unsubscriptions=[w]:Array.isArray(w)&&(z.unsubscriptions=w),this.options.resubscribe&&z.unsubscriptions.forEach(G=>{delete this._resubscribeTopics[G]}),typeof I=="object"&&I.properties&&(z.properties=I.properties),this.outgoing[z.messageId]={volatile:!0,cb:k},this.log("unsubscribe: call _sendPacket"),this._sendPacket(z),!0};return(this._storeProcessing||this._storeProcessingQueue.length>0||!U())&&this._storeProcessingQueue.push({invoke:U,callback:k}),this}unsubscribeAsync(w,I){return new Promise((k,j)=>{this.unsubscribe(w,I,(U,P)=>{U?j(U):k(P)})})}end(w,I,k){this.log("end :: (%s)",this.options.clientId),(w==null||typeof w!="boolean")&&(k=k||I,I=w,w=!1),typeof I!="object"&&(k=k||I,I=null),this.log("end :: cb? %s",!!k),(!k||typeof k!="function")&&(k=this.noop);let j=()=>{this.log("end :: closeStores: closing incoming and outgoing stores"),this.disconnected=!0,this.incomingStore.close(P=>{this.outgoingStore.close(z=>{if(this.log("end :: closeStores: emitting end"),this.emit("end"),k){let G=P||z;this.log("end :: closeStores: invoking callback with args"),k(G)}})}),this._deferredReconnect?this._deferredReconnect():(this.options.reconnectPeriod===0||this.options.manualConnect)&&(this.disconnecting=!1)},U=()=>{this.log("end :: (%s) :: finish :: calling _cleanUp with force %s",this.options.clientId,w),this._cleanUp(w,()=>{this.log("end :: finish :: calling process.nextTick on closeStores"),(0,b.nextTick)(j)},I)};return this.disconnecting?(k(),this):(this._clearReconnect(),this.disconnecting=!0,!w&&Object.keys(this.outgoing).length>0?(this.log("end :: (%s) :: calling finish in 10ms once outgoing is empty",this.options.clientId),this.once("outgoingEmpty",setTimeout.bind(null,U,10))):(this.log("end :: (%s) :: immediately calling finish",this.options.clientId),U()),this)}endAsync(w,I){return new Promise((k,j)=>{this.end(w,I,U=>{U?j(U):k()})})}removeOutgoingMessage(w){if(this.outgoing[w]){let{cb:I}=this.outgoing[w];this._removeOutgoingAndStoreMessage(w,()=>{I(new Error("Message removed"))})}return this}reconnect(w){this.log("client reconnect");let I=()=>{w?(this.options.incomingStore=w.incomingStore,this.options.outgoingStore=w.outgoingStore):(this.options.incomingStore=null,this.options.outgoingStore=null),this.incomingStore=this.options.incomingStore||new l.default,this.outgoingStore=this.options.outgoingStore||new l.default,this.disconnecting=!1,this.disconnected=!1,this._deferredReconnect=null,this._reconnect()};return this.disconnecting&&!this.disconnected?this._deferredReconnect=I:I(),this}_flushVolatile(){this.outgoing&&(this.log("_flushVolatile :: deleting volatile messages from the queue and setting their callbacks as error function"),Object.keys(this.outgoing).forEach(w=>{this.outgoing[w].volatile&&typeof this.outgoing[w].cb=="function"&&(this.outgoing[w].cb(new Error("Connection closed")),delete this.outgoing[w])}))}_flush(){this.outgoing&&(this.log("_flush: queue exists? %b",!!this.outgoing),Object.keys(this.outgoing).forEach(w=>{typeof this.outgoing[w].cb=="function"&&(this.outgoing[w].cb(new Error("Connection closed")),delete this.outgoing[w])}))}_removeTopicAliasAndRecoverTopicName(w){let I;w.properties&&(I=w.properties.topicAlias);let k=w.topic.toString();if(this.log("_removeTopicAliasAndRecoverTopicName :: alias %d, topic %o",I,k),k.length===0){if(typeof I>"u")return new Error("Unregistered Topic Alias");if(k=this.topicAliasSend.getTopicByAlias(I),typeof k>"u")return new Error("Unregistered Topic Alias");w.topic=k}I&&delete w.properties.topicAlias}_checkDisconnecting(w){return this.disconnecting&&(w&&w!==this.noop?w(new Error("client disconnecting")):this.emit("error",new Error("client disconnecting"))),this.disconnecting}_reconnect(){this.log("_reconnect: emitting reconnect to client"),this.emit("reconnect"),this.connected?(this.end(()=>{this.connect()}),this.log("client already connected. disconnecting first.")):(this.log("_reconnect: calling connect"),this.connect())}_setupReconnect(){!this.disconnecting&&!this.reconnectTimer&&this.options.reconnectPeriod>0?(this.reconnecting||(this.log("_setupReconnect :: emit `offline` state"),this.emit("offline"),this.log("_setupReconnect :: set `reconnecting` to `true`"),this.reconnecting=!0),this.log("_setupReconnect :: setting reconnectTimer for %d ms",this.options.reconnectPeriod),this.reconnectTimer=setInterval(()=>{this.log("reconnectTimer :: reconnect triggered!"),this._reconnect()},this.options.reconnectPeriod)):this.log("_setupReconnect :: doing nothing...")}_clearReconnect(){this.log("_clearReconnect : clearing reconnect timer"),this.reconnectTimer&&(clearInterval(this.reconnectTimer),this.reconnectTimer=null)}_cleanUp(w,I,k={}){if(I&&(this.log("_cleanUp :: done callback provided for on stream close"),this.stream.on("close",I)),this.log("_cleanUp :: forced? %s",w),w)this.options.reconnectPeriod===0&&this.options.clean&&this._flush(),this.log("_cleanUp :: (%s) :: destroying stream",this.options.clientId),this.stream.destroy();else{let j={cmd:"disconnect",...k};this.log("_cleanUp :: (%s) :: call _sendPacket with disconnect packet",this.options.clientId),this._sendPacket(j,()=>{this.log("_cleanUp :: (%s) :: destroying stream",this.options.clientId),y(()=>{this.stream.end(()=>{this.log("_cleanUp :: (%s) :: stream destroyed",this.options.clientId)})})})}!this.disconnecting&&!this.reconnecting&&(this.log("_cleanUp :: client not disconnecting/reconnecting. Clearing and resetting reconnect."),this._clearReconnect(),this._setupReconnect()),this._destroyKeepaliveManager(),I&&!this.connected&&(this.log("_cleanUp :: (%s) :: removing stream `done` callback `close` listener",this.options.clientId),this.stream.removeListener("close",I),I())}_storeAndSend(w,I,k){this.log("storeAndSend :: store packet with cmd %s to outgoingStore",w.cmd);let j=w,U;if(j.cmd==="publish"&&(j=(0,t.default)(w),U=this._removeTopicAliasAndRecoverTopicName(j),U))return I&&I(U);this.outgoingStore.put(j,P=>{if(P)return I&&I(P);k(),this._writePacket(w,I)})}_applyTopicAlias(w){if(this.options.protocolVersion===5&&w.cmd==="publish"){let I;w.properties&&(I=w.properties.topicAlias);let k=w.topic.toString();if(this.topicAliasSend)if(I){if(k.length!==0&&(this.log("applyTopicAlias :: register topic: %s - alias: %d",k,I),!this.topicAliasSend.put(k,I)))return this.log("applyTopicAlias :: error out of range. topic: %s - alias: %d",k,I),new Error("Sending Topic Alias out of range")}else k.length!==0&&(this.options.autoAssignTopicAlias?(I=this.topicAliasSend.getAliasByTopic(k),I?(w.topic="",w.properties={...w.properties,topicAlias:I},this.log("applyTopicAlias :: auto assign(use) topic: %s - alias: %d",k,I)):(I=this.topicAliasSend.getLruAlias(),this.topicAliasSend.put(k,I),w.properties={...w.properties,topicAlias:I},this.log("applyTopicAlias :: auto assign topic: %s - alias: %d",k,I))):this.options.autoUseTopicAlias&&(I=this.topicAliasSend.getAliasByTopic(k),I&&(w.topic="",w.properties={...w.properties,topicAlias:I},this.log("applyTopicAlias :: auto use topic: %s - alias: %d",k,I))));else if(I)return this.log("applyTopicAlias :: error out of range. topic: %s - alias: %d",k,I),new Error("Sending Topic Alias out of range")}}_noop(w){this.log("noop ::",w)}_writePacket(w,I){this.log("_writePacket :: packet: %O",w),this.log("_writePacket :: emitting `packetsend`"),this.emit("packetsend",w),this.log("_writePacket :: writing to stream");let k=n.default.writeToStream(w,this.stream,this.options);this.log("_writePacket :: writeToStream result %s",k),!k&&I&&I!==this.noop?(this.log("_writePacket :: handle events on `drain` once through callback."),this.stream.once("drain",I)):I&&(this.log("_writePacket :: invoking cb"),I())}_sendPacket(w,I,k,j){this.log("_sendPacket :: (%s) :: start",this.options.clientId),k=k||this.noop,I=I||this.noop;let U=this._applyTopicAlias(w);if(U){I(U);return}if(!this.connected){if(w.cmd==="auth"){this._writePacket(w,I);return}this.log("_sendPacket :: client not connected. Storing packet offline."),this._storePacket(w,I,k);return}if(j){this._writePacket(w,I);return}switch(w.cmd){case"publish":break;case"pubrel":this._storeAndSend(w,I,k);return;default:this._writePacket(w,I);return}switch(w.qos){case 2:case 1:this._storeAndSend(w,I,k);break;case 0:default:this._writePacket(w,I);break}this.log("_sendPacket :: (%s) :: end",this.options.clientId)}_storePacket(w,I,k){this.log("_storePacket :: packet: %o",w),this.log("_storePacket :: cb? %s",!!I),k=k||this.noop;let j=w;if(j.cmd==="publish"){j=(0,t.default)(w);let P=this._removeTopicAliasAndRecoverTopicName(j);if(P)return I&&I(P)}let U=j.qos||0;U===0&&this.queueQoSZero||j.cmd!=="publish"?this.queue.push({packet:j,cb:I}):U>0?(I=this.outgoing[j.messageId]?this.outgoing[j.messageId].cb:null,this.outgoingStore.put(j,P=>{if(P)return I&&I(P);k()})):I&&I(new Error("No connection to broker"))}_setupKeepaliveManager(){this.log("_setupKeepaliveManager :: keepalive %d (seconds)",this.options.keepalive),!this.keepaliveManager&&this.options.keepalive&&(this.keepaliveManager=new S.default(this,this.options.timerVariant))}_destroyKeepaliveManager(){this.keepaliveManager&&(this.log("_destroyKeepaliveManager :: destroying keepalive manager"),this.keepaliveManager.destroy(),this.keepaliveManager=null)}reschedulePing(w=!1){this.keepaliveManager&&this.options.keepalive&&(w||this.options.reschedulePings)&&this._reschedulePing()}_reschedulePing(){this.log("_reschedulePing :: rescheduling ping"),this.keepaliveManager.reschedule()}sendPing(){this.log("_sendPing :: sending pingreq"),this._sendPacket({cmd:"pingreq"})}onKeepaliveTimeout(){this.emit("error",new Error("Keepalive timeout")),this.log("onKeepaliveTimeout :: calling _cleanUp with force true"),this._cleanUp(!0)}_resubscribe(){this.log("_resubscribe");let w=Object.keys(this._resubscribeTopics);if(!this._firstConnection&&(this.options.clean||this.options.protocolVersion>=4&&!this.connackPacket.sessionPresent)&&w.length>0)if(this.options.resubscribe)if(this.options.protocolVersion===5){this.log("_resubscribe: protocolVersion 5");for(let I=0;I{let k=this.outgoingStore.createStream(),j=()=>{k.destroy(),k=null,this._flushStoreProcessingQueue(),U()},U=()=>{this._storeProcessing=!1,this._packetIdsDuringStoreProcessing={}};this.once("close",j),k.on("error",z=>{U(),this._flushStoreProcessingQueue(),this.removeListener("close",j),this.emit("error",z)});let P=()=>{if(!k)return;let z=k.read(1),G;if(!z){k.once("readable",P);return}if(this._storeProcessing=!0,this._packetIdsDuringStoreProcessing[z.messageId]){P();return}!this.disconnecting&&!this.reconnectTimer?(G=this.outgoing[z.messageId]?this.outgoing[z.messageId].cb:null,this.outgoing[z.messageId]={volatile:!1,cb(q,he){G&&G(q,he),P()}},this._packetIdsDuringStoreProcessing[z.messageId]=!0,this.messageIdProvider.register(z.messageId)?this._sendPacket(z,void 0,void 0,!0):this.log("messageId: %d has already used.",z.messageId)):k.destroy&&k.destroy()};k.on("end",()=>{let z=!0;for(let G in this._packetIdsDuringStoreProcessing)if(!this._packetIdsDuringStoreProcessing[G]){z=!1;break}this.removeListener("close",j),z?(U(),this._invokeAllStoreProcessingQueue(),this.emit("connect",w)):I()}),P()};I()}_invokeStoreProcessingQueue(){if(!this._storeProcessing&&this._storeProcessingQueue.length>0){let w=this._storeProcessingQueue[0];if(w&&w.invoke())return this._storeProcessingQueue.shift(),!0}return!1}_invokeAllStoreProcessingQueue(){for(;this._invokeStoreProcessingQueue(););}_flushStoreProcessingQueue(){for(let w of this._storeProcessingQueue)w.cbStorePut&&w.cbStorePut(new Error("Connection closed")),w.callback&&w.callback(new Error("Connection closed"));this._storeProcessingQueue.splice(0)}_removeOutgoingAndStoreMessage(w,I){delete this.outgoing[w],this.outgoingStore.del({messageId:w},(k,j)=>{I(k,j),this.messageIdProvider.deallocate(w),this._invokeStoreProcessingQueue()})}},it(_,"VERSION",b.MQTTJS_VERSION),_);f.default=A}),ec=Se(f=>{ge(),me(),ye(),Object.defineProperty(f,"__esModule",{value:!0});var h=Ia(),s=class{numberAllocator;lastId;constructor(){this.numberAllocator=new h.NumberAllocator(1,65535)}allocate(){return this.lastId=this.numberAllocator.alloc(),this.lastId}getLastAllocated(){return this.lastId}register(a){return this.numberAllocator.use(a)}deallocate(a){this.numberAllocator.free(a)}clear(){this.numberAllocator.clear()}};f.default=s});function tc(){if(_i)return xr;_i=!0;let f=2147483647,h=36,s=1,a=26,c=38,n=700,r=72,t=128,e="-",i=/^xn--/,l=/[^\0-\x7F]/,d=/[\x2E\u3002\uFF0E\uFF61]/g,p={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},g=h-s,b=Math.floor,E=String.fromCharCode;function S(j){throw new RangeError(p[j])}function x(j,U){let P=[],z=j.length;for(;z--;)P[z]=U(j[z]);return P}function y(j,U){let P=j.split("@"),z="";P.length>1&&(z=P[0]+"@",j=P[1]),j=j.replace(d,".");let G=j.split("."),q=x(G,U).join(".");return z+q}function v(j){let U=[],P=0,z=j.length;for(;P=55296&&G<=56319&&PString.fromCodePoint(...j),_=function(j){return j>=48&&j<58?26+(j-48):j>=65&&j<91?j-65:j>=97&&j<123?j-97:h},C=function(j,U){return j+22+75*(j<26)-((U!=0)<<5)},w=function(j,U,P){let z=0;for(j=P?b(j/n):j>>1,j+=b(j/U);j>g*a>>1;z+=h)j=b(j/g);return b(z+(g+1)*j/(j+c))},I=function(j){let U=[],P=j.length,z=0,G=t,q=r,he=j.lastIndexOf(e);he<0&&(he=0);for(let ne=0;ne=128&&S("not-basic"),U.push(j.charCodeAt(ne));for(let ne=he>0?he+1:0;ne=P&&S("invalid-input");let M=_(j.charCodeAt(ne++));M>=h&&S("invalid-input"),M>b((f-z)/V)&&S("overflow"),z+=M*V;let ee=le<=q?s:le>=q+a?a:le-q;if(Mb(f/Z)&&S("overflow"),V*=Z}let ce=U.length+1;q=w(z-te,ce,te==0),b(z/ce)>f-G&&S("overflow"),G+=b(z/ce),z%=ce,U.splice(z++,0,G)}return String.fromCodePoint(...U)},k=function(j){let U=[];j=v(j);let P=j.length,z=t,G=0,q=r;for(let te of j)te<128&&U.push(E(te));let he=U.length,ne=he;for(he&&U.push(e);ne=z&&Vb((f-G)/ce)&&S("overflow"),G+=(te-z)*ce,z=te;for(let V of j)if(Vf&&S("overflow"),V===z){let le=G;for(let M=h;;M+=h){let ee=M<=q?s:M>=q+a?a:M-q;if(le{ge(),me(),ye(),xr={},_i=!1,Wt=tc(),Wt.decode,Wt.encode,Wt.toASCII,Wt.toUnicode,Wt.ucs2,Wt.version});function nc(){return Ei||(Ei=!0,Si=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var f={},h=Symbol("test"),s=Object(h);if(typeof h=="string"||Object.prototype.toString.call(h)!=="[object Symbol]"||Object.prototype.toString.call(s)!=="[object Symbol]")return!1;var a=42;f[h]=a;for(h in f)return!1;if(typeof Object.keys=="function"&&Object.keys(f).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(f).length!==0)return!1;var c=Object.getOwnPropertySymbols(f);if(c.length!==1||c[0]!==h||!Object.prototype.propertyIsEnumerable.call(f,h))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var n=Object.getOwnPropertyDescriptor(f,h);if(n.value!==a||n.enumerable!==!0)return!1}return!0}),Si}function ic(){return xi||(xi=!0,Ai=Error),Ai}function oc(){return Oi||(Oi=!0,Ii=EvalError),Ii}function sc(){return ki||(ki=!0,Pi=RangeError),Pi}function ac(){return Ci||(Ci=!0,Ti=ReferenceError),Ti}function Ba(){return ji||(ji=!0,Ri=SyntaxError),Ri}function mr(){return Bi||(Bi=!0,Mi=TypeError),Mi}function lc(){return Ui||(Ui=!0,Ni=URIError),Ni}function uc(){if(Li)return Ir;Li=!0;var f=typeof Symbol<"u"&&Symbol,h=nc();return Ir=function(){return typeof f!="function"||typeof Symbol!="function"||typeof f("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:h()},Ir}function cc(){if(Di)return Or;Di=!0;var f={__proto__:null,foo:{}},h=Object;return Or=function(){return{__proto__:f}.foo===f.foo&&!(f instanceof h)},Or}function hc(){if(Fi)return Pr;Fi=!0;var f="Function.prototype.bind called on incompatible ",h=Object.prototype.toString,s=Math.max,a="[object Function]",c=function(t,e){for(var i=[],l=0;l"u"||!E?f:E(Uint8Array),y={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?f:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?f:ArrayBuffer,"%ArrayIteratorPrototype%":g&&E?E([][Symbol.iterator]()):f,"%AsyncFromSyncIteratorPrototype%":f,"%AsyncFunction%":S,"%AsyncGenerator%":S,"%AsyncGeneratorFunction%":S,"%AsyncIteratorPrototype%":S,"%Atomics%":typeof Atomics>"u"?f:Atomics,"%BigInt%":typeof BigInt>"u"?f:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?f:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?f:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?f:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":h,"%eval%":eval,"%EvalError%":s,"%Float32Array%":typeof Float32Array>"u"?f:Float32Array,"%Float64Array%":typeof Float64Array>"u"?f:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?f:FinalizationRegistry,"%Function%":e,"%GeneratorFunction%":S,"%Int8Array%":typeof Int8Array>"u"?f:Int8Array,"%Int16Array%":typeof Int16Array>"u"?f:Int16Array,"%Int32Array%":typeof Int32Array>"u"?f:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":g&&E?E(E([][Symbol.iterator]())):f,"%JSON%":typeof JSON=="object"?JSON:f,"%Map%":typeof Map>"u"?f:Map,"%MapIteratorPrototype%":typeof Map>"u"||!g||!E?f:E(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?f:Promise,"%Proxy%":typeof Proxy>"u"?f:Proxy,"%RangeError%":a,"%ReferenceError%":c,"%Reflect%":typeof Reflect>"u"?f:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?f:Set,"%SetIteratorPrototype%":typeof Set>"u"||!g||!E?f:E(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?f:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":g&&E?E(""[Symbol.iterator]()):f,"%Symbol%":g?Symbol:f,"%SyntaxError%":n,"%ThrowTypeError%":p,"%TypedArray%":x,"%TypeError%":r,"%Uint8Array%":typeof Uint8Array>"u"?f:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?f:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?f:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?f:Uint32Array,"%URIError%":t,"%WeakMap%":typeof WeakMap>"u"?f:WeakMap,"%WeakRef%":typeof WeakRef>"u"?f:WeakRef,"%WeakSet%":typeof WeakSet>"u"?f:WeakSet};if(E)try{null.error}catch(ne){var v=E(E(ne));y["%Error.prototype%"]=v}var A=function ne(te){var ce;if(te==="%AsyncFunction%")ce=i("async function () {}");else if(te==="%GeneratorFunction%")ce=i("function* () {}");else if(te==="%AsyncGeneratorFunction%")ce=i("async function* () {}");else if(te==="%AsyncGenerator%"){var V=ne("%AsyncGeneratorFunction%");V&&(ce=V.prototype)}else if(te==="%AsyncIteratorPrototype%"){var le=ne("%AsyncGenerator%");le&&E&&(ce=E(le.prototype))}return y[te]=ce,ce},_={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},C=go(),w=fc(),I=C.call(Function.call,Array.prototype.concat),k=C.call(Function.apply,Array.prototype.splice),j=C.call(Function.call,String.prototype.replace),U=C.call(Function.call,String.prototype.slice),P=C.call(Function.call,RegExp.prototype.exec),z=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,G=/\\(\\)?/g,q=function(ne){var te=U(ne,0,1),ce=U(ne,-1);if(te==="%"&&ce!=="%")throw new n("invalid intrinsic syntax, expected closing `%`");if(ce==="%"&&te!=="%")throw new n("invalid intrinsic syntax, expected opening `%`");var V=[];return j(ne,z,function(le,M,ee,Z){V[V.length]=ee?j(Z,G,"$1"):M||le}),V},he=function(ne,te){var ce=ne,V;if(w(_,ce)&&(V=_[ce],ce="%"+V[0]+"%"),w(y,ce)){var le=y[ce];if(le===S&&(le=A(ce)),typeof le>"u"&&!te)throw new r("intrinsic "+ne+" exists, but is not available. Please file an issue!");return{alias:V,name:ce,value:le}}throw new n("intrinsic "+ne+" does not exist!")};return Cr=function(ne,te){if(typeof ne!="string"||ne.length===0)throw new r("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof te!="boolean")throw new r('"allowMissing" argument must be a boolean');if(P(/^%?[^%]*%?$/,ne)===null)throw new n("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var ce=q(ne),V=ce.length>0?ce[0]:"",le=he("%"+V+"%",te),M=le.name,ee=le.value,Z=!1,ue=le.alias;ue&&(V=ue[0],k(ce,I([0,1],ue)));for(var Ae=1,Y=!0;Ae=ce.length){var J=l(ee,W);Y=!!J,Y&&"get"in J&&!("originalValue"in J.get)?ee=J.get:ee=ee[W]}else Y=w(ee,W),ee=ee[W];Y&&!Z&&(y[M]=ee)}}return ee},Cr}function yo(){if(Vi)return Rr;Vi=!0;var f=lr(),h=f("%Object.defineProperty%",!0)||!1;if(h)try{h({},"a",{value:1})}catch{h=!1}return Rr=h,Rr}function Na(){if(zi)return jr;zi=!0;var f=lr(),h=f("%Object.getOwnPropertyDescriptor%",!0);if(h)try{h([],"length")}catch{h=null}return jr=h,jr}function pc(){if(Ki)return Mr;Ki=!0;var f=yo(),h=Ba(),s=mr(),a=Na();return Mr=function(c,n,r){if(!c||typeof c!="object"&&typeof c!="function")throw new s("`obj` must be an object or a function`");if(typeof n!="string"&&typeof n!="symbol")throw new s("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new s("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new s("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new s("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new s("`loose`, if provided, must be a boolean");var t=arguments.length>3?arguments[3]:null,e=arguments.length>4?arguments[4]:null,i=arguments.length>5?arguments[5]:null,l=arguments.length>6?arguments[6]:!1,d=!!a&&a(c,n);if(f)f(c,n,{configurable:i===null&&d?d.configurable:!i,enumerable:t===null&&d?d.enumerable:!t,value:r,writable:e===null&&d?d.writable:!e});else if(l||!t&&!e&&!i)c[n]=r;else throw new h("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},Mr}function dc(){if(Hi)return Br;Hi=!0;var f=yo(),h=function(){return!!f};return h.hasArrayLengthDefineBug=function(){if(!f)return null;try{return f([],"length",{value:1}).length!==1}catch{return!0}},Br=h,Br}function gc(){if(Gi)return Nr;Gi=!0;var f=lr(),h=pc(),s=dc()(),a=Na(),c=mr(),n=f("%Math.floor%");return Nr=function(r,t){if(typeof r!="function")throw new c("`fn` is not a function");if(typeof t!="number"||t<0||t>4294967295||n(t)!==t)throw new c("`length` must be a positive 32-bit integer");var e=arguments.length>2&&!!arguments[2],i=!0,l=!0;if("length"in r&&a){var d=a(r,"length");d&&!d.configurable&&(i=!1),d&&!d.writable&&(l=!1)}return(i||l||!e)&&(s?h(r,"length",t,!0,!0):h(r,"length",t)),r},Nr}function yc(){if(Qi)return ir;Qi=!0;var f=go(),h=lr(),s=gc(),a=mr(),c=h("%Function.prototype.apply%"),n=h("%Function.prototype.call%"),r=h("%Reflect.apply%",!0)||f.call(n,c),t=yo(),e=h("%Math.max%");ir=function(l){if(typeof l!="function")throw new a("a function is required");var d=r(f,n,arguments);return s(d,1+e(0,l.length-(arguments.length-1)),!0)};var i=function(){return r(f,c,arguments)};return t?t(ir,"apply",{value:i}):ir.apply=i,ir}function mc(){if(Yi)return Ur;Yi=!0;var f=lr(),h=yc(),s=h(f("String.prototype.indexOf"));return Ur=function(a,c){var n=f(a,!!c);return typeof n=="function"&&s(a,".prototype.")>-1?h(n):n},Ur}var Si,Ei,Ai,xi,Ii,Oi,Pi,ki,Ti,Ci,Ri,ji,Mi,Bi,Ni,Ui,Ir,Li,Or,Di,Pr,Fi,kr,Wi,Tr,$i,Cr,qi,Rr,Vi,jr,zi,Mr,Ki,Br,Hi,Nr,Gi,ir,Qi,Ur,Yi,bc=yt(()=>{ge(),me(),ye(),Si={},Ei=!1,Ai={},xi=!1,Ii={},Oi=!1,Pi={},ki=!1,Ti={},Ci=!1,Ri={},ji=!1,Mi={},Bi=!1,Ni={},Ui=!1,Ir={},Li=!1,Or={},Di=!1,Pr={},Fi=!1,kr={},Wi=!1,Tr={},$i=!1,Cr={},qi=!1,Rr={},Vi=!1,jr={},zi=!1,Mr={},Ki=!1,Br={},Hi=!1,Nr={},Gi=!1,ir={},Qi=!1,Ur={},Yi=!1});function mo(f){throw new Error("Node.js process "+f+" is not supported by JSPM core outside of Node.js")}function vc(){!Xt||!Yt||(Xt=!1,Yt.length?St=Yt.concat(St):dr=-1,St.length&&Ua())}function Ua(){if(!Xt){var f=setTimeout(vc,0);Xt=!0;for(var h=St.length;h;){for(Yt=St,St=[];++dr1)for(var s=1;s{ge(),me(),ye(),St=[],Xt=!1,dr=-1,La.prototype.run=function(){this.fun.apply(null,this.array)},Oo="browser",Po="x64",ko="browser",To={PATH:"/usr/bin",LANG:navigator.language+".UTF-8",PWD:"/",HOME:"/home",TMP:"/tmp"},Co=["/usr/bin/node"],Ro=[],jo="v16.8.0",Mo={},Bo=function(f,h){console.warn((h?h+": ":"")+f)},No=function(f){mo("binding")},Uo=function(f){return 0},Lo=function(){return"/"},Do=function(f){},Fo={name:"node",sourceUrl:"",headersUrl:"",libUrl:""},Wo=ht,$o=[],qo={},Vo=!1,zo={},Ko=ht,Ho=ht,vr=function(){return{}},Go=vr,Qo=vr,Yo=ht,Jo=ht,Xo=ht,Zo={},es={inspector:!1,debug:!1,uv:!1,ipv6:!1,tls_alpn:!1,tls_sni:!1,tls_ocsp:!1,tls:!1,cached_builtins:!0},ts=ht,rs=ht,ns=ht,is=ht,os=ht,ss=ht,as=ht,ls=void 0,us=void 0,cs=void 0,hs=ht,fs=2,ps=1,ds="/bin/usr/node",gs=9229,ys="node",ms=[],bs=ht,Pt={now:typeof performance<"u"?performance.now.bind(performance):void 0,timing:typeof performance<"u"?performance.timing:void 0},Pt.now===void 0&&(sn=Date.now(),Pt.timing&&Pt.timing.navigationStart&&(sn=Pt.timing.navigationStart),Pt.now=()=>Date.now()-sn),Lr=1e9,on.bigint=function(f){var h=on(f);return typeof BigInt>"u"?h[0]*Lr+h[1]:BigInt(h[0]*Lr)+BigInt(h[1])},vs=10,ws={},_s=0,Ss=Nt,Es=Nt,As=Nt,xs=Nt,Is=Nt,Os=ht,Ps=Nt,ks=Nt,bo={version:jo,versions:Mo,arch:Po,platform:ko,release:Fo,_rawDebug:Wo,moduleLoadList:$o,binding:No,_linkedBinding:_c,_events:ws,_eventsCount:_s,_maxListeners:vs,on:Nt,addListener:Ss,once:Es,off:As,removeListener:xs,removeAllListeners:Is,emit:Os,prependListener:Ps,prependOnceListener:ks,listeners:Pc,domain:qo,_exiting:Vo,config:zo,dlopen:Sc,uptime:Oc,_getActiveRequests:Ec,_getActiveHandles:Ac,reallyExit:Ko,_kill:Ho,cpuUsage:vr,resourceUsage:Go,memoryUsage:Qo,kill:Yo,exit:Jo,openStdin:Xo,allowedNodeEnvironmentFlags:Zo,assert:xc,features:es,_fatalExceptions:ts,setUncaughtExceptionCaptureCallback:rs,hasUncaughtExceptionCaptureCallback:Ic,emitWarning:Bo,nextTick:wc,_tickCallback:ns,_debugProcess:is,_debugEnd:os,_startProfilerIdleNotifier:ss,_stopProfilerIdleNotifier:as,stdout:ls,stdin:cs,stderr:us,abort:hs,umask:Uo,chdir:Do,cwd:Lo,env:To,title:Oo,argv:Co,execArgv:Ro,pid:fs,ppid:ps,execPath:ds,debugPort:gs,hrtime:on,argv0:ys,_preload_modules:ms,setSourceMapsEnabled:bs}});function kc(){if(Ji)return Dr;Ji=!0;var f=bo;function h(n){if(typeof n!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(n))}function s(n,r){for(var t="",e=0,i=-1,l=0,d,p=0;p<=n.length;++p){if(p2){var g=t.lastIndexOf("/");if(g!==t.length-1){g===-1?(t="",e=0):(t=t.slice(0,g),e=t.length-1-t.lastIndexOf("/")),i=p,l=0;continue}}else if(t.length===2||t.length===1){t="",e=0,i=p,l=0;continue}}r&&(t.length>0?t+="/..":t="..",e=2)}else t.length>0?t+="/"+n.slice(i+1,p):t=n.slice(i+1,p),e=p-i-1;i=p,l=0}else d===46&&l!==-1?++l:l=-1}return t}function a(n,r){var t=r.dir||r.root,e=r.base||(r.name||"")+(r.ext||"");return t?t===r.root?t+e:t+n+e:e}var c={resolve:function(){for(var n="",r=!1,t,e=arguments.length-1;e>=-1&&!r;e--){var i;e>=0?i=arguments[e]:(t===void 0&&(t=f.cwd()),i=t),h(i),i.length!==0&&(n=i+"/"+n,r=i.charCodeAt(0)===47)}return n=s(n,!r),r?n.length>0?"/"+n:"/":n.length>0?n:"."},normalize:function(n){if(h(n),n.length===0)return".";var r=n.charCodeAt(0)===47,t=n.charCodeAt(n.length-1)===47;return n=s(n,!r),n.length===0&&!r&&(n="."),n.length>0&&t&&(n+="/"),r?"/"+n:n},isAbsolute:function(n){return h(n),n.length>0&&n.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var n,r=0;r0&&(n===void 0?n=t:n+="/"+t)}return n===void 0?".":c.normalize(n)},relative:function(n,r){if(h(n),h(r),n===r||(n=c.resolve(n),r=c.resolve(r),n===r))return"";for(var t=1;tg){if(r.charCodeAt(l+E)===47)return r.slice(l+E+1);if(E===0)return r.slice(l+E)}else i>g&&(n.charCodeAt(t+E)===47?b=E:E===0&&(b=0));break}var S=n.charCodeAt(t+E),x=r.charCodeAt(l+E);if(S!==x)break;S===47&&(b=E)}var y="";for(E=t+b+1;E<=e;++E)(E===e||n.charCodeAt(E)===47)&&(y.length===0?y+="..":y+="/..");return y.length>0?y+r.slice(l+b):(l+=b,r.charCodeAt(l)===47&&++l,r.slice(l))},_makeLong:function(n){return n},dirname:function(n){if(h(n),n.length===0)return".";for(var r=n.charCodeAt(0),t=r===47,e=-1,i=!0,l=n.length-1;l>=1;--l)if(r=n.charCodeAt(l),r===47){if(!i){e=l;break}}else i=!1;return e===-1?t?"/":".":t&&e===1?"//":n.slice(0,e)},basename:function(n,r){if(r!==void 0&&typeof r!="string")throw new TypeError('"ext" argument must be a string');h(n);var t=0,e=-1,i=!0,l;if(r!==void 0&&r.length>0&&r.length<=n.length){if(r.length===n.length&&r===n)return"";var d=r.length-1,p=-1;for(l=n.length-1;l>=0;--l){var g=n.charCodeAt(l);if(g===47){if(!i){t=l+1;break}}else p===-1&&(i=!1,p=l+1),d>=0&&(g===r.charCodeAt(d)?--d===-1&&(e=l):(d=-1,e=p))}return t===e?e=p:e===-1&&(e=n.length),n.slice(t,e)}else{for(l=n.length-1;l>=0;--l)if(n.charCodeAt(l)===47){if(!i){t=l+1;break}}else e===-1&&(i=!1,e=l+1);return e===-1?"":n.slice(t,e)}},extname:function(n){h(n);for(var r=-1,t=0,e=-1,i=!0,l=0,d=n.length-1;d>=0;--d){var p=n.charCodeAt(d);if(p===47){if(!i){t=d+1;break}continue}e===-1&&(i=!1,e=d+1),p===46?r===-1?r=d:l!==1&&(l=1):r!==-1&&(l=-1)}return r===-1||e===-1||l===0||l===1&&r===e-1&&r===t+1?"":n.slice(r,e)},format:function(n){if(n===null||typeof n!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof n);return a("/",n)},parse:function(n){h(n);var r={root:"",dir:"",base:"",ext:"",name:""};if(n.length===0)return r;var t=n.charCodeAt(0),e=t===47,i;e?(r.root="/",i=1):i=0;for(var l=-1,d=0,p=-1,g=!0,b=n.length-1,E=0;b>=i;--b){if(t=n.charCodeAt(b),t===47){if(!g){d=b+1;break}continue}p===-1&&(g=!1,p=b+1),t===46?l===-1?l=b:E!==1&&(E=1):l!==-1&&(E=-1)}return l===-1||p===-1||E===0||E===1&&l===p-1&&l===d+1?p!==-1&&(d===0&&e?r.base=r.name=n.slice(1,p):r.base=r.name=n.slice(d,p)):(d===0&&e?(r.name=n.slice(1,l),r.base=n.slice(1,p)):(r.name=n.slice(d,l),r.base=n.slice(d,p)),r.ext=n.slice(l,p)),d>0?r.dir=n.slice(0,d-1):e&&(r.dir="/"),r},sep:"/",delimiter:":",win32:null,posix:null};return c.posix=c,Dr=c,Dr}var Dr,Ji,Xi,Tc=yt(()=>{ge(),me(),ye(),Da(),Dr={},Ji=!1,Xi=kc()}),Fa={};or(Fa,{URL:()=>Ya,Url:()=>za,default:()=>ft,fileURLToPath:()=>$a,format:()=>Ka,parse:()=>Qa,pathToFileURL:()=>qa,resolve:()=>Ha,resolveObject:()=>Ga});function Cc(){if(Zi)return Fr;Zi=!0;var f=typeof Map=="function"&&Map.prototype,h=Object.getOwnPropertyDescriptor&&f?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,s=f&&h&&typeof h.get=="function"?h.get:null,a=f&&Map.prototype.forEach,c=typeof Set=="function"&&Set.prototype,n=Object.getOwnPropertyDescriptor&&c?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,r=c&&n&&typeof n.get=="function"?n.get:null,t=c&&Set.prototype.forEach,e=typeof WeakMap=="function"&&WeakMap.prototype,i=e?WeakMap.prototype.has:null,l=typeof WeakSet=="function"&&WeakSet.prototype,d=l?WeakSet.prototype.has:null,p=typeof WeakRef=="function"&&WeakRef.prototype,g=p?WeakRef.prototype.deref:null,b=Boolean.prototype.valueOf,E=Object.prototype.toString,S=Function.prototype.toString,x=String.prototype.match,y=String.prototype.slice,v=String.prototype.replace,A=String.prototype.toUpperCase,_=String.prototype.toLowerCase,C=RegExp.prototype.test,w=Array.prototype.concat,I=Array.prototype.join,k=Array.prototype.slice,j=Math.floor,U=typeof BigInt=="function"?BigInt.prototype.valueOf:null,P=Object.getOwnPropertySymbols,z=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,G=typeof Symbol=="function"&&typeof Symbol.iterator=="object",q=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===G||!0)?Symbol.toStringTag:null,he=Object.prototype.propertyIsEnumerable,ne=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function($){return $.__proto__}:null);function te($,ie){if($===1/0||$===-1/0||$!==$||$&&$>-1e3&&$<1e3||C.call(/e/,ie))return ie;var Re=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof $=="number"){var ke=$<0?-j(-$):j($);if(ke!==$){var Le=String(ke),Ue=y.call(ie,Le.length+1);return v.call(Le,Re,"$&_")+"."+v.call(v.call(Ue,/([0-9]{3})/g,"$&_"),/_$/,"")}}return v.call(ie,Re,"$&_")}var ce=Va,V=ce.custom,le=J(V)?V:null;Fr=function $(ie,Re,ke,Le){var Ue=Re||{};if(pe(Ue,"quoteStyle")&&Ue.quoteStyle!=="single"&&Ue.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(pe(Ue,"maxStringLength")&&(typeof Ue.maxStringLength=="number"?Ue.maxStringLength<0&&Ue.maxStringLength!==1/0:Ue.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var Xe=pe(Ue,"customInspect")?Ue.customInspect:!0;if(typeof Xe!="boolean"&&Xe!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(pe(Ue,"indent")&&Ue.indent!==null&&Ue.indent!==" "&&!(parseInt(Ue.indent,10)===Ue.indent&&Ue.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(pe(Ue,"numericSeparator")&&typeof Ue.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var Fe=Ue.numericSeparator;if(typeof ie>"u")return"undefined";if(ie===null)return"null";if(typeof ie=="boolean")return ie?"true":"false";if(typeof ie=="string")return fe(ie,Ue);if(typeof ie=="number"){if(ie===0)return 1/0/ie>0?"0":"-0";var We=String(ie);return Fe?te(ie,We):We}if(typeof ie=="bigint"){var je=String(ie)+"n";return Fe?te(ie,je):je}var tt=typeof Ue.depth>"u"?5:Ue.depth;if(typeof ke>"u"&&(ke=0),ke>=tt&&tt>0&&typeof ie=="object")return Z(ie)?"[Array]":"[Object]";var He=N(Ue,ke);if(typeof Le>"u")Le=[];else if(se(Le,ie)>=0)return"[Circular]";function $e(ze,bt,At){if(bt&&(Le=k.call(Le),Le.push(bt)),At){var Qe={depth:Ue.depth};return pe(Ue,"quoteStyle")&&(Qe.quoteStyle=Ue.quoteStyle),$(ze,Qe,ke+1,Le)}return $(ze,Ue,ke+1,Le)}if(typeof ie=="function"&&!Ae(ie)){var nt=H(ie),dt=de(ie,$e);return"[Function"+(nt?": "+nt:" (anonymous)")+"]"+(dt.length>0?" { "+I.call(dt,", ")+" }":"")}if(J(ie)){var lt=G?v.call(String(ie),/^(Symbol\(.*\))_[^)]*$/,"$1"):z.call(ie);return typeof ie=="object"&&!G?o(lt):lt}if(Oe(ie)){for(var R="<"+_.call(String(ie.nodeName)),F=ie.attributes||[],Pe=0;Pe",R}if(Z(ie)){if(ie.length===0)return"[]";var Te=de(ie,$e);return He&&!T(Te)?"["+K(Te,He)+"]":"[ "+I.call(Te,", ")+" ]"}if(Y(ie)){var Me=de(ie,$e);return!("cause"in Error.prototype)&&"cause"in ie&&!he.call(ie,"cause")?"{ ["+String(ie)+"] "+I.call(w.call("[cause]: "+$e(ie.cause),Me),", ")+" }":Me.length===0?"["+String(ie)+"]":"{ ["+String(ie)+"] "+I.call(Me,", ")+" }"}if(typeof ie=="object"&&Xe){if(le&&typeof ie[le]=="function"&&ce)return ce(ie,{depth:tt-ke});if(Xe!=="symbol"&&typeof ie.inspect=="function")return ie.inspect()}if(be(ie)){var rt=[];return a&&a.call(ie,function(ze,bt){rt.push($e(bt,ie,!0)+" => "+$e(ze,ie))}),m("Map",s.call(ie),rt,He)}if(Q(ie)){var at=[];return t&&t.call(ie,function(ze){at.push($e(ze,ie))}),m("Set",r.call(ie),at,He)}if(ve(ie))return u("WeakMap");if(_e(ie))return u("WeakSet");if(Ee(ie))return u("WeakRef");if(oe(ie))return o($e(Number(ie)));if(re(ie))return o($e(U.call(ie)));if(X(ie))return o(b.call(ie));if(W(ie))return o($e(String(ie)));if(typeof window<"u"&&ie===window)return"{ [object Window] }";if(typeof globalThis<"u"&&ie===globalThis||typeof Wr<"u"&&ie===Wr)return"{ [object globalThis] }";if(!ue(ie)&&!Ae(ie)){var mt=de(ie,$e),Mt=ne?ne(ie)===Object.prototype:ie instanceof Object||ie.constructor===Object,zt=ie instanceof Object?"":"null prototype",Kt=!Mt&&q&&Object(ie)===ie&&q in ie?y.call(L(ie),8,-1):zt?"Object":"",Ht=Mt||typeof ie.constructor!="function"?"":ie.constructor.name?ie.constructor.name+" ":"",Et=Ht+(Kt||zt?"["+I.call(w.call([],Kt||[],zt||[]),": ")+"] ":"");return mt.length===0?Et+"{}":He?Et+"{"+K(mt,He)+"}":Et+"{ "+I.call(mt,", ")+" }"}return String(ie)};function M($,ie,Re){var ke=(Re.quoteStyle||ie)==="double"?'"':"'";return ke+$+ke}function ee($){return v.call(String($),/"/g,""")}function Z($){return L($)==="[object Array]"&&(!q||!(typeof $=="object"&&q in $))}function ue($){return L($)==="[object Date]"&&(!q||!(typeof $=="object"&&q in $))}function Ae($){return L($)==="[object RegExp]"&&(!q||!(typeof $=="object"&&q in $))}function Y($){return L($)==="[object Error]"&&(!q||!(typeof $=="object"&&q in $))}function W($){return L($)==="[object String]"&&(!q||!(typeof $=="object"&&q in $))}function oe($){return L($)==="[object Number]"&&(!q||!(typeof $=="object"&&q in $))}function X($){return L($)==="[object Boolean]"&&(!q||!(typeof $=="object"&&q in $))}function J($){if(G)return $&&typeof $=="object"&&$ instanceof Symbol;if(typeof $=="symbol")return!0;if(!$||typeof $!="object"||!z)return!1;try{return z.call($),!0}catch{}return!1}function re($){if(!$||typeof $!="object"||!U)return!1;try{return U.call($),!0}catch{}return!1}var we=Object.prototype.hasOwnProperty||function($){return $ in(this||Wr)};function pe($,ie){return we.call($,ie)}function L($){return E.call($)}function H($){if($.name)return $.name;var ie=x.call(S.call($),/^function\s*([\w$]+)/);return ie?ie[1]:null}function se($,ie){if($.indexOf)return $.indexOf(ie);for(var Re=0,ke=$.length;Reie.maxStringLength){var Re=$.length-ie.maxStringLength,ke="... "+Re+" more character"+(Re>1?"s":"");return fe(y.call($,0,ie.maxStringLength),ie)+ke}var Le=v.call(v.call($,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Be);return M(Le,"single",ie)}function Be($){var ie=$.charCodeAt(0),Re={8:"b",9:"t",10:"n",12:"f",13:"r"}[ie];return Re?"\\"+Re:"\\x"+(ie<16?"0":"")+A.call(ie.toString(16))}function o($){return"Object("+$+")"}function u($){return $+" { ? }"}function m($,ie,Re,ke){var Le=ke?K(Re,ke):I.call(Re,", ");return $+" ("+ie+") {"+Le+"}"}function T($){for(var ie=0;ie<$.length;ie++)if(se($[ie],` `)>=0)return!1;return!0}function N($,ie){var Re;if($.indent===" ")Re=" ";else if(typeof $.indent=="number"&&$.indent>0)Re=I.call(Array($.indent+1)," ");else return null;return{base:Re,prev:I.call(Array(ie+1),Re)}}function K($,ie){if($.length===0)return"";var Re=` diff --git a/packages/modules/web_themes/koala/web/assets/store-init-DhHJKTOy.js b/packages/modules/web_themes/koala/web/assets/store-init-DhHJKTOy.js new file mode 100644 index 0000000000..e6e607ee09 --- /dev/null +++ b/packages/modules/web_themes/koala/web/assets/store-init-DhHJKTOy.js @@ -0,0 +1 @@ +import{b as t}from"./index-DCrt5iVV.js";import{u as o}from"./mqtt-store-R9RxHZY9.js";const s=t(()=>{o().initialize()});export{s as default}; diff --git a/packages/modules/web_themes/koala/web/assets/store-init-DuB0sdr_.js b/packages/modules/web_themes/koala/web/assets/store-init-DuB0sdr_.js deleted file mode 100644 index 2a4c9cef2b..0000000000 --- a/packages/modules/web_themes/koala/web/assets/store-init-DuB0sdr_.js +++ /dev/null @@ -1 +0,0 @@ -import{b as t}from"./index-C8WjSvcX.js";import{u as o}from"./mqtt-store-Gw-bQn7d.js";const s=t(()=>{o().initialize()});export{s as default}; diff --git a/packages/modules/web_themes/koala/web/icons/icon-1024x1024.png b/packages/modules/web_themes/koala/web/icons/icon-1024x1024.png new file mode 100644 index 0000000000..8708c3b13f Binary files /dev/null and b/packages/modules/web_themes/koala/web/icons/icon-1024x1024.png differ diff --git a/packages/modules/web_themes/koala/web/icons/icon-128x128.png b/packages/modules/web_themes/koala/web/icons/icon-128x128.png new file mode 100644 index 0000000000..994e6f7cb8 Binary files /dev/null and b/packages/modules/web_themes/koala/web/icons/icon-128x128.png differ diff --git a/packages/modules/web_themes/koala/web/icons/icon-192x192.png b/packages/modules/web_themes/koala/web/icons/icon-192x192.png new file mode 100644 index 0000000000..122c57cdac Binary files /dev/null and b/packages/modules/web_themes/koala/web/icons/icon-192x192.png differ diff --git a/packages/modules/web_themes/koala/web/icons/icon-256x256.png b/packages/modules/web_themes/koala/web/icons/icon-256x256.png new file mode 100644 index 0000000000..efb1d23ee8 Binary files /dev/null and b/packages/modules/web_themes/koala/web/icons/icon-256x256.png differ diff --git a/packages/modules/web_themes/koala/web/icons/icon-48x48.png b/packages/modules/web_themes/koala/web/icons/icon-48x48.png new file mode 100644 index 0000000000..6e9161f3f9 Binary files /dev/null and b/packages/modules/web_themes/koala/web/icons/icon-48x48.png differ diff --git a/packages/modules/web_themes/koala/web/icons/icon-512x512.png b/packages/modules/web_themes/koala/web/icons/icon-512x512.png new file mode 100644 index 0000000000..5a487c2dee Binary files /dev/null and b/packages/modules/web_themes/koala/web/icons/icon-512x512.png differ diff --git a/packages/modules/web_themes/koala/web/icons/icon-72x72.png b/packages/modules/web_themes/koala/web/icons/icon-72x72.png new file mode 100644 index 0000000000..f7f5279ac7 Binary files /dev/null and b/packages/modules/web_themes/koala/web/icons/icon-72x72.png differ diff --git a/packages/modules/web_themes/koala/web/icons/icon-96x96.png b/packages/modules/web_themes/koala/web/icons/icon-96x96.png new file mode 100644 index 0000000000..43c617ac61 Binary files /dev/null and b/packages/modules/web_themes/koala/web/icons/icon-96x96.png differ diff --git a/packages/modules/web_themes/koala/web/index.html b/packages/modules/web_themes/koala/web/index.html index a562e7d23e..03b4caf175 100644 --- a/packages/modules/web_themes/koala/web/index.html +++ b/packages/modules/web_themes/koala/web/index.html @@ -1,3 +1,3 @@ -openWB +openWB -
\ No newline at end of file +
\ No newline at end of file diff --git a/packages/modules/web_themes/koala/web/manifest.json b/packages/modules/web_themes/koala/web/manifest.json new file mode 100644 index 0000000000..12d2ddab03 --- /dev/null +++ b/packages/modules/web_themes/koala/web/manifest.json @@ -0,0 +1 @@ +{"id":"openwb-koala-web-theme","name":"openWB","short_name":"openwb-koala-web-theme","description":"Koala web theme for openWB software2","display":"standalone","start_url":"/openWB/web/themes/koala/","orientation":"any","version":"0.0.1","manifest_version":1,"background_color":"#ffffff","theme_color":"#027be3","icons":[{"src":"icons/icon-48x48.png","sizes":"48x48","type":"image/png"},{"src":"icons/icon-72x72.png","sizes":"72x72","type":"image/png"},{"src":"icons/icon-96x96.png","sizes":"96x96","type":"image/png"},{"src":"icons/icon-128x128.png","sizes":"128x128","type":"image/png"},{"src":"icons/icon-192x192.png","sizes":"192x192","type":"image/png"},{"src":"icons/icon-256x256.png","sizes":"256x256","type":"image/png"},{"src":"icons/icon-512x512.png","sizes":"512x512","type":"image/png"},{"src":"icons/icon-1024x1024.png","sizes":"1024x1024","type":"image/png"}]} \ No newline at end of file diff --git a/packages/modules/web_themes/koala/web/sw.js b/packages/modules/web_themes/koala/web/sw.js new file mode 100644 index 0000000000..416c95448b --- /dev/null +++ b/packages/modules/web_themes/koala/web/sw.js @@ -0,0 +1 @@ +if(!self.define){let e,s={};const i=(i,n)=>(i=new URL(i+".js",n).href,s[i]||new Promise(s=>{if("document"in self){const e=document.createElement("script");e.src=i,e.onload=s,document.head.appendChild(e)}else e=i,importScripts(i),s()}).then(()=>{let e=s[i];if(!e)throw new Error(`Module ${i} didn’t register its module`);return e}));self.define=(n,c)=>{const o=e||("document"in self?document.currentScript.src:"")||location.href;if(s[o])return;let a={};const r=e=>i(e,o),f={module:{uri:o},exports:a,require:r};s[o]=Promise.all(n.map(e=>f[e]||r(e))).then(e=>(c(...e),a))}}define(["./workbox-e8110d74"],function(e){"use strict";e.setCacheNameDetails({prefix:"openwb-koala-web-theme"}),self.skipWaiting(),e.clientsClaim(),e.precacheAndRoute([{url:"assets/_plugin-vue_export-helper-CKNjr6LQ.js",revision:"c3894776f7fcd929543311ca6eb0b2d7"},{url:"assets/ErrorNotFound-CQ4EA0eQ.js",revision:"df9dee36429bc8193821a6a98d09b27b"},{url:"assets/flUhRq6tzZclQEJ-Vdg-IuiaDsNa-Dr0goTwe.woff",revision:"3e1afe59fa075c9e04c436606b77f640"},{url:"assets/flUhRq6tzZclQEJ-Vdg-IuiaDsNcIhQ8tQ-D-x-0Q06.woff2",revision:"a4160421d2605545f69a4cd6cd642902"},{url:"assets/index-CQyGg22l.css",revision:"bc877c1c6592e0ba74c68556fd9ddba4"},{url:"assets/index-DCrt5iVV.js",revision:"610afa95044a237485974de727e6818b"},{url:"assets/IndexPage-dP2WXfRd.js",revision:"c32985d92cf20f1a6b63be8ccf18f00f"},{url:"assets/IndexPage-xATA1vTl.css",revision:"eae8cc5b020852028857b55fbd6f6d49"},{url:"assets/KFOMCnqEu92Fr1ME7kSn66aGLdTylUAMQXC89YmC2DPNWuaabVmUiAw-CNa4tw4G.woff",revision:"2d29775851b8463053deb35b21b5d5c8"},{url:"assets/KFOMCnqEu92Fr1ME7kSn66aGLdTylUAMQXC89YmC2DPNWub2bVmUiAw-CHKg1YId.woff",revision:"be27354f07345fafe8dfc84117bbafd4"},{url:"assets/KFOMCnqEu92Fr1ME7kSn66aGLdTylUAMQXC89YmC2DPNWubEbFmUiAw-yBxCyPWP.woff",revision:"c8cea161abfb039c97a11c26dff2f546"},{url:"assets/KFOMCnqEu92Fr1ME7kSn66aGLdTylUAMQXC89YmC2DPNWubEbVmUiAw-3fZ6d7DD.woff",revision:"585ad11be98f8f044923a71898ddfde6"},{url:"assets/KFOMCnqEu92Fr1ME7kSn66aGLdTylUAMQXC89YmC2DPNWuYjalmUiAw-BepdiOnY.woff",revision:"2cadc82e8484ccac69caddc849f603be"},{url:"assets/KFOMCnqEu92Fr1ME7kSn66aGLdTylUAMQXC89YmC2DPNWuZtalmUiAw-4ZhHFPot.woff",revision:"51c41b1c2668c088c7cce3fa116396e1"},{url:"assets/MainLayout-DiTWyfa9.js",revision:"2a9f4705dc9099642e5416b49e8a4f53"},{url:"assets/MainLayout-DZ5KVho1.css",revision:"704025cf47332d32f6495b6dff143158"},{url:"assets/mqtt-store-R9RxHZY9.js",revision:"0d75e5ab88eef3649455e5636ca98c21"},{url:"assets/store-init-DhHJKTOy.js",revision:"6e9c87bb1f54e548769f49e6df1b6fad"},{url:"favicon.ico",revision:"21ec9d90ddf9217f71db985765970460"},{url:"icons/favicon-128x128.png",revision:"11a65eacbba8a7148cb1d00f77d5307a"},{url:"icons/favicon-16x16.png",revision:"7834f799f3bc7a6adb0704cb8a25a2c6"},{url:"icons/favicon-32x32.png",revision:"0d30a992b5f03bd43f1b393917dc1714"},{url:"icons/favicon-96x96.png",revision:"830d36dc970ffa9592e61af7ef771d5d"},{url:"icons/icon_Data.md",revision:"894ff587e880d3d4a38fbac654fe3e87"},{url:"icons/icon-1024x1024.png",revision:"e261ff64a764a7c5802309561cf190d4"},{url:"icons/icon-128x128.png",revision:"86dad79e449e75c39c6d373b85b9f486"},{url:"icons/icon-192x192.png",revision:"bc936b6464631f18b89afd54ed62d04d"},{url:"icons/icon-256x256.png",revision:"9043ec80cc89c1c6610b209325f94360"},{url:"icons/icon-48x48.png",revision:"ba12339bebba853069fdcad3ae2a6e40"},{url:"icons/icon-512x512.png",revision:"ed6ff495b6d0d2240682714e78d1a9f2"},{url:"icons/icon-72x72.png",revision:"a4fe9ae16f8df3b31b1392a9e1e17aa3"},{url:"icons/icon-96x96.png",revision:"2f9771755fc8559353a62023c3b31976"},{url:"icons/openWB_logo_dark.png",revision:"fb8fe2728744be30d7beb07a78c6d886"},{url:"icons/owbBattery.svg",revision:"2dab2270a8d6635973fdf76a97593251"},{url:"icons/owbChargePoint.svg",revision:"90c176e44597f381ecd42a98eaf2a2c5"},{url:"icons/owbGrid.svg",revision:"526801681d42a6a4e7657b79d90cab17"},{url:"icons/owbHouse.svg",revision:"59e1d89587242168650bb57a8ac4ce6c"},{url:"icons/owbPV.svg",revision:"f4c69e6878b18cbc53fd03df0e211197"},{url:"icons/owbVehicle.svg",revision:"1107cfeed5240caa0838ee8493f02e34"},{url:"index.html",revision:"0b0c09162a3d017ba794b4c9a1f29566"},{url:"manifest.json",revision:"211b8df2e200583a691ebbe2a2243148"}],{}),e.cleanupOutdatedCaches(),e.registerRoute(new e.NavigationRoute(e.createHandlerBoundToURL("index.html"),{denylist:[/sw\.js$/,/workbox-(.)*\\.js$/]}))}); diff --git a/packages/modules/web_themes/koala/web/workbox-e8110d74.js b/packages/modules/web_themes/koala/web/workbox-e8110d74.js new file mode 100644 index 0000000000..40374b8dac --- /dev/null +++ b/packages/modules/web_themes/koala/web/workbox-e8110d74.js @@ -0,0 +1 @@ +define(["exports"],function(t){"use strict";try{self["workbox:core:7.2.0"]&&_()}catch(t){}const e=(t,...e)=>{let s=t;return e.length>0&&(s+=` :: ${JSON.stringify(e)}`),s};class s extends Error{constructor(t,s){super(e(t,s)),this.name=t,this.details=s}}const n={googleAnalytics:"googleAnalytics",precache:"precache-v2",prefix:"workbox",runtime:"runtime",suffix:"undefined"!=typeof registration?registration.scope:""},i=t=>[n.prefix,t,n.suffix].filter(t=>t&&t.length>0).join("-"),r=t=>{(t=>{for(const e of Object.keys(n))t(e)})(e=>{"string"==typeof t[e]&&(n[e]=t[e])})},o=t=>t||i(n.precache),c=t=>t||i(n.runtime);try{self["workbox:routing:7.2.0"]&&_()}catch(t){}const a=t=>t&&"object"==typeof t?t:{handle:t};class h{constructor(t,e,s="GET"){this.handler=a(e),this.match=t,this.method=s}setCatchHandler(t){this.catchHandler=a(t)}}class u extends h{constructor(t,e,s){super(({url:e})=>{const s=t.exec(e.href);if(s&&(e.origin===location.origin||0===s.index))return s.slice(1)},e,s)}}class l{constructor(){this.t=new Map,this.i=new Map}get routes(){return this.t}addFetchListener(){self.addEventListener("fetch",t=>{const{request:e}=t,s=this.handleRequest({request:e,event:t});s&&t.respondWith(s)})}addCacheListener(){self.addEventListener("message",t=>{if(t.data&&"CACHE_URLS"===t.data.type){const{payload:e}=t.data,s=Promise.all(e.urlsToCache.map(e=>{"string"==typeof e&&(e=[e]);const s=new Request(...e);return this.handleRequest({request:s,event:t})}));t.waitUntil(s),t.ports&&t.ports[0]&&s.then(()=>t.ports[0].postMessage(!0))}})}handleRequest({request:t,event:e}){const s=new URL(t.url,location.href);if(!s.protocol.startsWith("http"))return;const n=s.origin===location.origin,{params:i,route:r}=this.findMatchingRoute({event:e,request:t,sameOrigin:n,url:s});let o=r&&r.handler;const c=t.method;if(!o&&this.i.has(c)&&(o=this.i.get(c)),!o)return;let a;try{a=o.handle({url:s,request:t,event:e,params:i})}catch(t){a=Promise.reject(t)}const h=r&&r.catchHandler;return a instanceof Promise&&(this.o||h)&&(a=a.catch(async n=>{if(h)try{return await h.handle({url:s,request:t,event:e,params:i})}catch(t){t instanceof Error&&(n=t)}if(this.o)return this.o.handle({url:s,request:t,event:e});throw n})),a}findMatchingRoute({url:t,sameOrigin:e,request:s,event:n}){const i=this.t.get(s.method)||[];for(const r of i){let i;const o=r.match({url:t,sameOrigin:e,request:s,event:n});if(o)return i=o,(Array.isArray(i)&&0===i.length||o.constructor===Object&&0===Object.keys(o).length||"boolean"==typeof o)&&(i=void 0),{route:r,params:i}}return{}}setDefaultHandler(t,e="GET"){this.i.set(e,a(t))}setCatchHandler(t){this.o=a(t)}registerRoute(t){this.t.has(t.method)||this.t.set(t.method,[]),this.t.get(t.method).push(t)}unregisterRoute(t){if(!this.t.has(t.method))throw new s("unregister-route-but-not-found-with-method",{method:t.method});const e=this.t.get(t.method).indexOf(t);if(!(e>-1))throw new s("unregister-route-route-not-registered");this.t.get(t.method).splice(e,1)}}let f;const w=()=>(f||(f=new l,f.addFetchListener(),f.addCacheListener()),f);function d(t,e,n){let i;if("string"==typeof t){const s=new URL(t,location.href);i=new h(({url:t})=>t.href===s.href,e,n)}else if(t instanceof RegExp)i=new u(t,e,n);else if("function"==typeof t)i=new h(t,e,n);else{if(!(t instanceof h))throw new s("unsupported-route-type",{moduleName:"workbox-routing",funcName:"registerRoute",paramName:"capture"});i=t}return w().registerRoute(i),i}function p(t,e){const s=e();return t.waitUntil(s),s}try{self["workbox:precaching:7.2.0"]&&_()}catch(t){}function y(t){if(!t)throw new s("add-to-cache-list-unexpected-type",{entry:t});if("string"==typeof t){const e=new URL(t,location.href);return{cacheKey:e.href,url:e.href}}const{revision:e,url:n}=t;if(!n)throw new s("add-to-cache-list-unexpected-type",{entry:t});if(!e){const t=new URL(n,location.href);return{cacheKey:t.href,url:t.href}}const i=new URL(n,location.href),r=new URL(n,location.href);return i.searchParams.set("__WB_REVISION__",e),{cacheKey:i.href,url:r.href}}class g{constructor(){this.updatedURLs=[],this.notUpdatedURLs=[],this.handlerWillStart=async({request:t,state:e})=>{e&&(e.originalRequest=t)},this.cachedResponseWillBeUsed=async({event:t,state:e,cachedResponse:s})=>{if("install"===t.type&&e&&e.originalRequest&&e.originalRequest instanceof Request){const t=e.originalRequest.url;s?this.notUpdatedURLs.push(t):this.updatedURLs.push(t)}return s}}}class R{constructor({precacheController:t}){this.cacheKeyWillBeUsed=async({request:t,params:e})=>{const s=(null==e?void 0:e.cacheKey)||this.h.getCacheKeyForURL(t.url);return s?new Request(s,{headers:t.headers}):t},this.h=t}}let m;async function v(t,e){let n=null;if(t.url){n=new URL(t.url).origin}if(n!==self.location.origin)throw new s("cross-origin-copy-response",{origin:n});const i=t.clone(),r={headers:new Headers(i.headers),status:i.status,statusText:i.statusText},o=e?e(r):r,c=function(){if(void 0===m){const t=new Response("");if("body"in t)try{new Response(t.body),m=!0}catch(t){m=!1}m=!1}return m}()?i.body:await i.blob();return new Response(c,o)}function q(t,e){const s=new URL(t);for(const t of e)s.searchParams.delete(t);return s.href}class U{constructor(){this.promise=new Promise((t,e)=>{this.resolve=t,this.reject=e})}}const b=new Set;try{self["workbox:strategies:7.2.0"]&&_()}catch(t){}function L(t){return"string"==typeof t?new Request(t):t}class C{constructor(t,e){this.u={},Object.assign(this,e),this.event=e.event,this.l=t,this.p=new U,this.R=[],this.m=[...t.plugins],this.v=new Map;for(const t of this.m)this.v.set(t,{});this.event.waitUntil(this.p.promise)}async fetch(t){const{event:e}=this;let n=L(t);if("navigate"===n.mode&&e instanceof FetchEvent&&e.preloadResponse){const t=await e.preloadResponse;if(t)return t}const i=this.hasCallback("fetchDidFail")?n.clone():null;try{for(const t of this.iterateCallbacks("requestWillFetch"))n=await t({request:n.clone(),event:e})}catch(t){if(t instanceof Error)throw new s("plugin-error-request-will-fetch",{thrownErrorMessage:t.message})}const r=n.clone();try{let t;t=await fetch(n,"navigate"===n.mode?void 0:this.l.fetchOptions);for(const s of this.iterateCallbacks("fetchDidSucceed"))t=await s({event:e,request:r,response:t});return t}catch(t){throw i&&await this.runCallbacks("fetchDidFail",{error:t,event:e,originalRequest:i.clone(),request:r.clone()}),t}}async fetchAndCachePut(t){const e=await this.fetch(t),s=e.clone();return this.waitUntil(this.cachePut(t,s)),e}async cacheMatch(t){const e=L(t);let s;const{cacheName:n,matchOptions:i}=this.l,r=await this.getCacheKey(e,"read"),o=Object.assign(Object.assign({},i),{cacheName:n});s=await caches.match(r,o);for(const t of this.iterateCallbacks("cachedResponseWillBeUsed"))s=await t({cacheName:n,matchOptions:i,cachedResponse:s,request:r,event:this.event})||void 0;return s}async cachePut(t,e){const n=L(t);var i;await(i=0,new Promise(t=>setTimeout(t,i)));const r=await this.getCacheKey(n,"write");if(!e)throw new s("cache-put-with-no-response",{url:(o=r.url,new URL(String(o),location.href).href.replace(new RegExp(`^${location.origin}`),""))});var o;const c=await this.q(e);if(!c)return!1;const{cacheName:a,matchOptions:h}=this.l,u=await self.caches.open(a),l=this.hasCallback("cacheDidUpdate"),f=l?await async function(t,e,s,n){const i=q(e.url,s);if(e.url===i)return t.match(e,n);const r=Object.assign(Object.assign({},n),{ignoreSearch:!0}),o=await t.keys(e,r);for(const e of o)if(i===q(e.url,s))return t.match(e,n)}(u,r.clone(),["__WB_REVISION__"],h):null;try{await u.put(r,l?c.clone():c)}catch(t){if(t instanceof Error)throw"QuotaExceededError"===t.name&&await async function(){for(const t of b)await t()}(),t}for(const t of this.iterateCallbacks("cacheDidUpdate"))await t({cacheName:a,oldResponse:f,newResponse:c.clone(),request:r,event:this.event});return!0}async getCacheKey(t,e){const s=`${t.url} | ${e}`;if(!this.u[s]){let n=t;for(const t of this.iterateCallbacks("cacheKeyWillBeUsed"))n=L(await t({mode:e,request:n,event:this.event,params:this.params}));this.u[s]=n}return this.u[s]}hasCallback(t){for(const e of this.l.plugins)if(t in e)return!0;return!1}async runCallbacks(t,e){for(const s of this.iterateCallbacks(t))await s(e)}*iterateCallbacks(t){for(const e of this.l.plugins)if("function"==typeof e[t]){const s=this.v.get(e),n=n=>{const i=Object.assign(Object.assign({},n),{state:s});return e[t](i)};yield n}}waitUntil(t){return this.R.push(t),t}async doneWaiting(){let t;for(;t=this.R.shift();)await t}destroy(){this.p.resolve(null)}async q(t){let e=t,s=!1;for(const t of this.iterateCallbacks("cacheWillUpdate"))if(e=await t({request:this.request,response:e,event:this.event})||void 0,s=!0,!e)break;return s||e&&200!==e.status&&(e=void 0),e}}class E{constructor(t={}){this.cacheName=c(t.cacheName),this.plugins=t.plugins||[],this.fetchOptions=t.fetchOptions,this.matchOptions=t.matchOptions}handle(t){const[e]=this.handleAll(t);return e}handleAll(t){t instanceof FetchEvent&&(t={event:t,request:t.request});const e=t.event,s="string"==typeof t.request?new Request(t.request):t.request,n="params"in t?t.params:void 0,i=new C(this,{event:e,request:s,params:n}),r=this.U(i,s,e);return[r,this.L(r,i,s,e)]}async U(t,e,n){let i;await t.runCallbacks("handlerWillStart",{event:n,request:e});try{if(i=await this._(e,t),!i||"error"===i.type)throw new s("no-response",{url:e.url})}catch(s){if(s instanceof Error)for(const r of t.iterateCallbacks("handlerDidError"))if(i=await r({error:s,event:n,request:e}),i)break;if(!i)throw s}for(const s of t.iterateCallbacks("handlerWillRespond"))i=await s({event:n,request:e,response:i});return i}async L(t,e,s,n){let i,r;try{i=await t}catch(r){}try{await e.runCallbacks("handlerDidRespond",{event:n,request:s,response:i}),await e.doneWaiting()}catch(t){t instanceof Error&&(r=t)}if(await e.runCallbacks("handlerDidComplete",{event:n,request:s,response:i,error:r}),e.destroy(),r)throw r}}class O extends E{constructor(t={}){t.cacheName=o(t.cacheName),super(t),this.C=!1!==t.fallbackToNetwork,this.plugins.push(O.copyRedirectedCacheableResponsesPlugin)}async _(t,e){const s=await e.cacheMatch(t);return s||(e.event&&"install"===e.event.type?await this.O(t,e):await this.N(t,e))}async N(t,e){let n;const i=e.params||{};if(!this.C)throw new s("missing-precache-entry",{cacheName:this.cacheName,url:t.url});{const s=i.integrity,r=t.integrity,o=!r||r===s;n=await e.fetch(new Request(t,{integrity:"no-cors"!==t.mode?r||s:void 0})),s&&o&&"no-cors"!==t.mode&&(this.j(),await e.cachePut(t,n.clone()))}return n}async O(t,e){this.j();const n=await e.fetch(t);if(!await e.cachePut(t,n.clone()))throw new s("bad-precaching-response",{url:t.url,status:n.status});return n}j(){let t=null,e=0;for(const[s,n]of this.plugins.entries())n!==O.copyRedirectedCacheableResponsesPlugin&&(n===O.defaultPrecacheCacheabilityPlugin&&(t=s),n.cacheWillUpdate&&e++);0===e?this.plugins.push(O.defaultPrecacheCacheabilityPlugin):e>1&&null!==t&&this.plugins.splice(t,1)}}O.defaultPrecacheCacheabilityPlugin={cacheWillUpdate:async({response:t})=>!t||t.status>=400?null:t},O.copyRedirectedCacheableResponsesPlugin={cacheWillUpdate:async({response:t})=>t.redirected?await v(t):t};class x{constructor({cacheName:t,plugins:e=[],fallbackToNetwork:s=!0}={}){this.k=new Map,this.K=new Map,this.P=new Map,this.l=new O({cacheName:o(t),plugins:[...e,new R({precacheController:this})],fallbackToNetwork:s}),this.install=this.install.bind(this),this.activate=this.activate.bind(this)}get strategy(){return this.l}precache(t){this.addToCacheList(t),this.T||(self.addEventListener("install",this.install),self.addEventListener("activate",this.activate),this.T=!0)}addToCacheList(t){const e=[];for(const n of t){"string"==typeof n?e.push(n):n&&void 0===n.revision&&e.push(n.url);const{cacheKey:t,url:i}=y(n),r="string"!=typeof n&&n.revision?"reload":"default";if(this.k.has(i)&&this.k.get(i)!==t)throw new s("add-to-cache-list-conflicting-entries",{firstEntry:this.k.get(i),secondEntry:t});if("string"!=typeof n&&n.integrity){if(this.P.has(t)&&this.P.get(t)!==n.integrity)throw new s("add-to-cache-list-conflicting-integrities",{url:i});this.P.set(t,n.integrity)}if(this.k.set(i,t),this.K.set(i,r),e.length>0){const t=`Workbox is precaching URLs without revision info: ${e.join(", ")}\nThis is generally NOT safe. Learn more at https://bit.ly/wb-precache`;console.warn(t)}}}install(t){return p(t,async()=>{const e=new g;this.strategy.plugins.push(e);for(const[e,s]of this.k){const n=this.P.get(s),i=this.K.get(e),r=new Request(e,{integrity:n,cache:i,credentials:"same-origin"});await Promise.all(this.strategy.handleAll({params:{cacheKey:s},request:r,event:t}))}const{updatedURLs:s,notUpdatedURLs:n}=e;return{updatedURLs:s,notUpdatedURLs:n}})}activate(t){return p(t,async()=>{const t=await self.caches.open(this.strategy.cacheName),e=await t.keys(),s=new Set(this.k.values()),n=[];for(const i of e)s.has(i.url)||(await t.delete(i),n.push(i.url));return{deletedURLs:n}})}getURLsToCacheKeys(){return this.k}getCachedURLs(){return[...this.k.keys()]}getCacheKeyForURL(t){const e=new URL(t,location.href);return this.k.get(e.href)}getIntegrityForCacheKey(t){return this.P.get(t)}async matchPrecache(t){const e=t instanceof Request?t.url:t,s=this.getCacheKeyForURL(e);if(s){return(await self.caches.open(this.strategy.cacheName)).match(s)}}createHandlerBoundToURL(t){const e=this.getCacheKeyForURL(t);if(!e)throw new s("non-precached-url",{url:t});return s=>(s.request=new Request(t),s.params=Object.assign({cacheKey:e},s.params),this.strategy.handle(s))}}let N;const j=()=>(N||(N=new x),N);class k extends h{constructor(t,e){super(({request:s})=>{const n=t.getURLsToCacheKeys();for(const i of function*(t,{ignoreURLParametersMatching:e=[/^utm_/,/^fbclid$/],directoryIndex:s="index.html",cleanURLs:n=!0,urlManipulation:i}={}){const r=new URL(t,location.href);r.hash="",yield r.href;const o=function(t,e=[]){for(const s of[...t.searchParams.keys()])e.some(t=>t.test(s))&&t.searchParams.delete(s);return t}(r,e);if(yield o.href,s&&o.pathname.endsWith("/")){const t=new URL(o.href);t.pathname+=s,yield t.href}if(n){const t=new URL(o.href);t.pathname+=".html",yield t.href}if(i){const t=i({url:r});for(const e of t)yield e.href}}(s.url,e)){const e=n.get(i);if(e){return{cacheKey:e,integrity:t.getIntegrityForCacheKey(e)}}}},t.strategy)}}t.NavigationRoute=class extends h{constructor(t,{allowlist:e=[/./],denylist:s=[]}={}){super(t=>this.W(t),t),this.M=e,this.S=s}W({url:t,request:e}){if(e&&"navigate"!==e.mode)return!1;const s=t.pathname+t.search;for(const t of this.S)if(t.test(s))return!1;return!!this.M.some(t=>t.test(s))}},t.cleanupOutdatedCaches=function(){self.addEventListener("activate",t=>{const e=o();t.waitUntil((async(t,e="-precache-")=>{const s=(await self.caches.keys()).filter(s=>s.includes(e)&&s.includes(self.registration.scope)&&s!==t);return await Promise.all(s.map(t=>self.caches.delete(t))),s})(e).then(t=>{}))})},t.clientsClaim=function(){self.addEventListener("activate",()=>self.clients.claim())},t.createHandlerBoundToURL=function(t){return j().createHandlerBoundToURL(t)},t.precacheAndRoute=function(t,e){!function(t){j().precache(t)}(t),function(t){const e=j();d(new k(e,t))}(e)},t.registerRoute=d,t.setCacheNameDetails=function(t){r(t)}});