diff --git a/.gitattributes b/.gitattributes index 81cbf861..ffc41f0c 100644 --- a/.gitattributes +++ b/.gitattributes @@ -6,10 +6,13 @@ tests export-ignore .* export-ignore box.json.dist export-ignore composer.lock export-ignore +composer-require-* export-ignore docker-compose.yaml export-ignore Makefile export-ignore phpunit.xml* export-ignore +pest.xml* export-ignore phpstan.* export-ignore +phpstan-baseline.neon export-ignore psalm.* export-ignore psalm-baseline.xml export-ignore infection.* export-ignore diff --git a/resources/frontend/200.html b/resources/frontend/200.html index 831ac237..d8dab599 100644 --- a/resources/frontend/200.html +++ b/resources/frontend/200.html @@ -1,27 +1,21 @@ - - - + Buggregator - - - - - - - - - - - - - - - - -
- - \ No newline at end of file + + + + + + + + + + + + + +
+ \ No newline at end of file diff --git a/resources/frontend/404.html b/resources/frontend/404.html index 831ac237..d8dab599 100644 --- a/resources/frontend/404.html +++ b/resources/frontend/404.html @@ -1,27 +1,21 @@ - - - + Buggregator - - - - - - - - - - - - - - - - -
- - \ No newline at end of file + + + + + + + + + + + + + +
+ \ No newline at end of file diff --git a/resources/frontend/_nuxt/_id_.d7506571.js b/resources/frontend/_nuxt/0ZriSCq6.js similarity index 51% rename from resources/frontend/_nuxt/_id_.d7506571.js rename to resources/frontend/_nuxt/0ZriSCq6.js index 11641924..2516638f 100644 --- a/resources/frontend/_nuxt/_id_.d7506571.js +++ b/resources/frontend/_nuxt/0ZriSCq6.js @@ -1,5 +1,5 @@ -import{i as Gt,_ as Bt}from"./layout-sidebar.vue.30b2544d.js";import{d as J,A as L,B as ze,C as Vt,o as P,a as I,b as E,v as le,D as Kt,t as ee,h as j,s as ne,F as gt,_ as K,c as q,E as qt,f as A,w as $,e as N,u as w,r as Qt,g as ae,G as jt,q as ft,H as fe,n as be,I as Zt,p as pt,i as vt,j as Jt,k as ei,l as ti,m as Ge}from"./entry.8cc9a0a4.js";import{u as ii}from"./fetch.18605a33.js";import{P as ni}from"./page-header.301ae07f.js";import{_ as si,S as z}from"./file-attachment.vue.44781509.js";import{u as ri}from"./use-events.46f9c63f.js";import{S as mt,u as oi}from"./use-profiler.2b9b3833.js";import{P as Be,W as ai}from"./vue3-tabs-component.b41d65f1.js";import{u as li}from"./use-formats.c79ce0bd.js";import{I as hi}from"./icon-svg.07e61883.js";var H=(t=>(t.CPU="cpu",t.MEMORY_CHANGE="pmu",t.MEMORY="mu",t.CALLS="calls",t))(H||{});const{formatDuration:ye,formatFileSize:Ee}=li(),ci=t=>t<=1?"#fff":t<=10?"#7BC8F6":t<=25?"#4DA6FF":t<=50?"#1A8FFF":t<=75?"#007FFF":t<=100?"#0059B3":t<=250?"#FFD700":t<=500?"#FFA500":t<=750?"#FF8C00":t<=1e3?"#FF4500":t<=2500?"#FF0000":"#8B0000",di=t=>t<=10?"#FFFFFF":t<=20?"#f19797":t<=30?"#d93939":t<=40?"#ad1e1e":t<=50?"#982525":t<=60?"#862323":t<=70?"#671d1d":t<=80?"#540d0d":t<=90?"#340707":"#2d0606",ui=t=>{const e=t.replace("#",""),i=parseInt(e.substr(0,2),16),n=parseInt(e.substr(2,2),16),s=parseInt(e.substr(4,2),16);return(i*299+n*587+s*114)/1e3>=128?"#000":"#fff"},gi=(t,e)=>{var n;const i={p_mu:s=>`${s}%`,p_pmu:s=>`${s}%`,p_cpu:s=>`${s}%`,p_wt:s=>`${s}%`,mu:Ee,d_mu:Ee,pmu:Ee,d_pmu:Ee,cpu:ye,d_cpu:ye,wt:ye,d_wt:ye};return((n=i[e])==null?void 0:n.call(i,t))||t},fi=(t,e,i=1,n=10)=>Object.values(t).reduce((s,r,o)=>{let a="#fff",l="#000",h="#fff",c=r.cost.ct>1?`${r.cost.ct}x`:"";if(e===H.CALLS){const u="ct";if(!(r.cost[u]>=n))return s;a=ci(r.cost[u])}else{const u=`p_${e}`,b=r.cost[u]>=n;if(!b&&r.cost[u]<=i)return s;a=b?di(r.cost[u]):"#fff",l=b?ui(a):"#000",h=a;const y=r.cost.ct>1?` [ ${r.cost.ct}x ]`:"";c=`${gi(r.cost[u],u)}${y}`}const d=`p_${e}`;if(!(r.cost.p_pmu>10)&&r.cost[d]<=i)return s;s.nodes.push({data:{id:r.callee,name:r.callee,cost:r.cost,color:a,textColor:l}});const g=s.nodes.find(u=>u.data.id===r.caller);return o>0&&g&&s.edges.push({data:{source:r.caller||"",target:r.callee,color:h,label:c,weight:r.cost.ct}}),s},{nodes:[],edges:[]}),pi=()=>({initialize:Gt,buildData:fi}),{buildData:vi,initialize:mi}=pi(),bt=()=>({prepare:vi,initialize:mi}),bi={key:0},yi={class:"render-graph__tooltip-title"},Ei=J({__name:"render-graph",props:{elements:{},height:{}},setup(t){const e=t,i=L(),n=L(),s=L(),r=L(),o=L(),a=L(),l=(c,d)=>{if(!c||!d){i.value=void 0,n.value=void 0;return}i.value=c.data();const v=d.offsetX,g=d.offsetY,{clientHeight:u=0,clientWidth:b=0}=a.value,{offsetHeight:y=0,offsetWidth:p=0}=o.value;let f=g,x=v;if(b+v>p-80){const T=b+v-p+100;x-=T}u+g>y&&(f=g-u),n.value={top:`${f+20}px`,left:`${x}px`}},{initialize:h}=bt();return ze(()=>{s.value=h({container:r.value,elements:e.elements,onNodeHover:l})}),Vt(()=>{s.value()}),(c,d)=>(P(),I(gt,null,[E("div",{ref_key:"parent",ref:o,class:"render-graph",style:le({height:`${c.height}px`})},[E("div",{ref_key:"renderer",ref:r,class:"render-graph__in"},null,512)],4),E("div",{ref_key:"tooltip",ref:a,class:ne(["render-graph__tooltip",{"render-graph__tooltip--active":i.value}]),style:le(n.value)},[i.value?(P(),I("div",bi,[Kt(c.$slots,"default",{data:i.value},()=>[E("h4",yi,ee(i.value),1)],!0)])):j("",!0)],6)],64))}}),xi=K(Ei,[["__scopeId","data-v-5ef20918"]]),Pe=K(si,[["__scopeId","data-v-77d01412"]]),wi={class:"call-stack-row__usage"},Ci={class:"call-stack-row__usage-title"},Ri={class:"call-stack-row__calls"},_i=J({__name:"call-stack-row",props:{edge:{}},emits:["hover","hide"],setup(t,{emit:e}){const i=t,n=e,s=(l,h)=>{n("hover",{callee:h.callee,cost:h.cost,caller:h.caller,position:{x:l.pageX,y:l.pageY}})},r=l=>Math.min(100,Math.max(0,l)),o=q(()=>({width:`${r(i.edge.cost.p_cpu)}%`})),a=q(()=>({width:`${r(i.edge.cost.p_mu)}%`}));return(l,h)=>(P(),I("div",{class:"call-stack-row",onMouseover:h[0]||(h[0]=c=>s(c,l.edge)),onMouseout:h[1]||(h[1]=c=>l.$emit("hide"))},[E("div",wi,[E("div",{class:"call-stack-row__usage-cpu",style:le(o.value)},null,4),E("div",{class:"call-stack-row__usage-memory",style:le(a.value)},null,4),E("div",Ci,ee(l.edge.cost.p_cpu)+"% / "+ee(l.edge.cost.p_mu)+"% ",1)]),E("div",Ri,ee(l.edge.cost.ct),1)],32))}});const ki=K(_i,[["__scopeId","data-v-15b83beb"]]),Mi={class:"call-stack"},Si={class:"call-stack__header"},Ti={class:"call-stack__header-cpu"},Pi={class:"call-stack__header-calls"},Hi={class:"call-stack__calls"},Fi=J({__name:"call-stack",props:{payload:{}},emits:["hover","hide"],setup(t){const e=t,i=qt({CPU:z.ASC,memory:z.DEFAULT,calls:z.DEFAULT}),n=q(()=>Object.entries(e.payload.edges).sort(([,r],[,o])=>i.CPU===z.ASC?o.cost.p_cpu-r.cost.p_cpu:i.CPU===z.DESC?r.cost.p_cpu-o.cost.p_cpu:i.memory===z.ASC?o.cost.p_mu-r.cost.p_mu:i.memory===z.DESC?r.cost.p_mu-o.cost.p_mu:i.calls===z.ASC?o.cost.ct-r.cost.ct:i.calls===z.DESC?r.cost.ct-o.cost.ct:0).reduce((r,[o,a])=>({...r,[o]:a}),{})),s=r=>o=>{Object.keys(i).forEach(a=>{const l=a;l!==r?i[l]=z.DEFAULT:i[l]=o===z.DEFAULT?z.ASC:o})};return(r,o)=>(P(),I("div",Mi,[E("header",Si,[E("div",Ti,[A(w(Pe),{sort:i.CPU,onChangeSort:o[0]||(o[0]=a=>s("CPU")(a))},{default:$(()=>[N(" CPU ")]),_:1},8,["sort"]),N(" / "),A(w(Pe),{sort:i.memory,onChangeSort:o[1]||(o[1]=a=>s("memory")(a))},{default:$(()=>[N(" memory ")]),_:1},8,["sort"])]),E("div",Pi,[A(w(Pe),{sort:i.calls,onChangeSort:o[2]||(o[2]=a=>s("calls")(a))},{default:$(()=>[N(" Calls ")]),_:1},8,["sort"])])]),E("div",Hi,[(P(!0),I(gt,null,Qt(n.value,(a,l)=>(P(),ae(w(ki),{key:l,edge:a,onHover:o[3]||(o[3]=h=>r.$emit("hover",h)),onHide:o[4]||(o[4]=h=>r.$emit("hide"))},null,8,["edge"]))),128))])]))}});const Li=K(Fi,[["__scopeId","data-v-57da93b2"]]),Ai={class:"call-stat-board"},Xi={class:"call-stat-board__title"},Wi=J({__name:"call-stat-board",props:{edge:{}},setup(t){return(e,i)=>(P(),I("div",Ai,[E("h4",Xi,ee(e.edge.callee),1),A(w(mt),{class:"call-stat-board__body",cost:e.edge.cost},null,8,["cost"])]))}});const yt=K(Wi,[["__scopeId","data-v-e34163d2"]]),Yi={class:"call-graph__toolbar"},Di={class:"call-graph__toolbar call-graph__toolbar--right"},zi={key:0,class:"call-graph__toolbar-input-wr"},$i=["value"],Ii={class:"call-graph__toolbar-input-wr"},Oi=["value","min","max","step"],Ni=J({__name:"call-graph",props:{payload:{}},setup(t){const{prepare:e}=bt(),i=t,n=L(!1),s=L(H.CPU),r=L(1),o=L(10),a=L(!1),l=L(),h=q(()=>e(i.payload.edges,s.value,r.value,o.value)),c=q(()=>s.value===H.CALLS?"Min calls":"Percent"),d=q(()=>`${s.value}-${r.value}-${o.value}`),v=q(()=>n.value?window.innerHeight:l.value.offsetHeight);ze(()=>{a.value=!0});const g=y=>{s.value=y},u=y=>{r.value=y},b=y=>{o.value=y};return(y,p)=>(P(),I("div",{ref_key:"container",ref:l,class:ne(["call-graph",{"call-graph--fullscreen":n.value}])},[a.value&&d.value?(P(),ae(w(xi),{key:d.value,class:"call-graph__graph",elements:h.value,height:v.value},{default:$(({data:{name:f,cost:x}})=>[A(w(yt),{edge:{callee:f,caller:"",cost:x}},null,8,["edge"])]),_:1},8,["elements","height"])):j("",!0),E("div",Yi,[E("button",{title:"Full screen",onClick:p[0]||(p[0]=f=>n.value=!n.value)},[A(w(hi),{name:"fullscreen",class:"call-graph__toolbar-icon"})]),E("button",{class:ne(["call-graph__toolbar-action",{"call-graph__toolbar-action--active":s.value===w(H).CPU}]),onClick:p[1]||(p[1]=f=>g(w(H).CPU))}," CPU ",2),E("button",{class:ne(["call-graph__toolbar-action",{"call-graph__toolbar-action--active":s.value===w(H).MEMORY_CHANGE}]),onClick:p[2]||(p[2]=f=>g(w(H).MEMORY_CHANGE))}," Memory change ",2),E("button",{class:ne(["call-graph__toolbar-action",{"call-graph__toolbar-action--active":s.value===w(H).MEMORY}]),onClick:p[3]||(p[3]=f=>g(w(H).MEMORY))}," Memory usage ",2),E("button",{class:ne(["call-graph__toolbar-action",{"call-graph__toolbar-action--active":s.value===w(H).CALLS}]),onClick:p[4]||(p[4]=f=>g(w(H).CALLS))}," Calls ",2)]),E("div",Di,[s.value!==w(H).CALLS?(P(),I("label",zi,[N(" Threshold "),E("input",{class:"call-graph__toolbar-input",type:"number",value:r.value,min:0,max:10,step:.1,onInput:p[5]||(p[5]=f=>u(f.target.value))},null,40,$i)])):j("",!0),E("label",Ii,[N(ee(c.value)+" ",1),E("input",{class:"call-graph__toolbar-input",type:"number",value:o.value,min:s.value===w(H).CALLS?1:0,max:s.value===w(H).CALLS?1e3:100,step:s.value===w(H).CALLS?10:5,onInput:p[6]||(p[6]=f=>b(f.target.value))},null,40,Oi)])])],2))}});const Ui=K(Ni,[["__scopeId","data-v-fd6843c2"]]);/*! +import{u as Ut,_ as Gt}from"./Cuqdu9nB.js";import{_ as Bt,S as z,I as Vt}from"./BefdN0MI.js";import{_ as q,d as J,l as _,m as _e,A as Kt,o as H,a as I,b as E,q as le,B as qt,t as ee,g as j,s as ne,F as ut,c as B,C as Qt,f as X,w as $,e as N,u as x,r as jt,h as ae,D as Zt,E as gt,G as fe,H as be,I as Jt,p as ft,i as pt,j as ei,k as ti,n as ii}from"./BqbMuE7y.js";import{u as ni}from"./DU45Wy3H.js";import{i as si}from"./BBk2F9bR.js";import{u as ri,P as oi}from"./k1uqWTyJ.js";import{S as vt,u as ai}from"./DdKTkMGq.js";import{q as li,W as Ge}from"./BIL_AGmQ.js";import{u as hi}from"./CF6J2D0o.js";const He=q(Bt,[["__scopeId","data-v-77d01412"]]);var F=(t=>(t.CPU="cpu",t.MEMORY_CHANGE="pmu",t.MEMORY="mu",t.CALLS="calls",t))(F||{});const{formatDuration:ye,formatFileSize:Ee}=hi(),ci=t=>t<=1?"#fff":t<=10?"#7BC8F6":t<=25?"#4DA6FF":t<=50?"#1A8FFF":t<=75?"#007FFF":t<=100?"#0059B3":t<=250?"#FFD700":t<=500?"#FFA500":t<=750?"#FF8C00":t<=1e3?"#FF4500":t<=2500?"#FF0000":"#8B0000",di=t=>t<=10?"#FFFFFF":t<=20?"#f19797":t<=30?"#d93939":t<=40?"#ad1e1e":t<=50?"#982525":t<=60?"#862323":t<=70?"#671d1d":t<=80?"#540d0d":t<=90?"#340707":"#2d0606",ui=t=>{const e=t.replace("#",""),i=parseInt(e.substr(0,2),16),n=parseInt(e.substr(2,2),16),s=parseInt(e.substr(4,2),16);return(i*299+n*587+s*114)/1e3>=128?"#000":"#fff"},gi=(t,e)=>{var n;const i={p_mu:s=>`${s}%`,p_pmu:s=>`${s}%`,p_cpu:s=>`${s}%`,p_wt:s=>`${s}%`,mu:Ee,d_mu:Ee,pmu:Ee,d_pmu:Ee,cpu:ye,d_cpu:ye,wt:ye,d_wt:ye};return((n=i[e])==null?void 0:n.call(i,t))||t},fi=(t,e,i=1,n=10)=>Object.values(t).reduce((s,r,o)=>{let a="#fff",l="#000",h="#fff",c=r.cost.ct>1?`${r.cost.ct}x`:"";if(e===F.CALLS){const u="ct";if(!(r.cost[u]>=n))return s;a=ci(r.cost[u])}else{const u=`p_${e}`,b=r.cost[u]>=n;if(!b&&r.cost[u]<=i)return s;a=b?di(r.cost[u]):"#fff",l=b?ui(a):"#000",h=a;const y=r.cost.ct>1?` [ ${r.cost.ct}x ]`:"";c=`${gi(r.cost[u],u)}${y}`}const d=`p_${e}`;if(!(r.cost.p_pmu>10)&&r.cost[d]<=i)return s;s.nodes.push({data:{id:r.callee,name:r.callee,cost:r.cost,color:a,textColor:l}});const g=s.nodes.find(u=>u.data.id===r.caller);return o>0&&g&&s.edges.push({data:{source:r.caller||"",target:r.callee,color:h,label:c,weight:r.cost.ct}}),s},{nodes:[],edges:[]}),pi=()=>({initialize:si,buildData:fi}),{buildData:vi,initialize:mi}=pi(),mt=()=>({prepare:vi,initialize:mi}),bi={key:0},yi={class:"render-graph__tooltip-title"},Ei=J({__name:"render-graph",props:{elements:{},height:{}},setup(t){const e=t,i=_(),n=_(),s=_(),r=_(),o=_(),a=_(),l=(c,d)=>{if(!c||!d){i.value=void 0,n.value=void 0;return}i.value=c.data();const p=d.offsetX,g=d.offsetY,{clientHeight:u=0,clientWidth:b=0}=a.value,{offsetHeight:y=0,offsetWidth:v=0}=o.value;let f=g,w=p;if(b+p>v-80){const P=b+p-v+100;w-=P}u+g>y&&(f=g-u),n.value={top:`${f+20}px`,left:`${w}px`}},{initialize:h}=mt();return _e(()=>{s.value=h({container:r.value,elements:e.elements,onNodeHover:l})}),Kt(()=>{s.value()}),(c,d)=>(H(),I(ut,null,[E("div",{ref_key:"parent",ref:o,class:"render-graph",style:le({height:`${c.height}px`})},[E("div",{ref_key:"renderer",ref:r,class:"render-graph__in"},null,512)],4),E("div",{ref_key:"tooltip",ref:a,class:ne(["render-graph__tooltip",{"render-graph__tooltip--active":i.value}]),style:le(n.value)},[i.value?(H(),I("div",bi,[qt(c.$slots,"default",{data:i.value},()=>[E("h4",yi,ee(i.value),1)],!0)])):j("",!0)],6)],64))}}),xi=q(Ei,[["__scopeId","data-v-5ef20918"]]),wi={class:"call-stack-row__usage"},Ci={class:"call-stack-row__usage-title"},Ri={class:"call-stack-row__calls"},ki=J({__name:"call-stack-row",props:{edge:{}},emits:["hover","hide"],setup(t,{emit:e}){const i=t,n=e,s=(l,h)=>{n("hover",{callee:h.callee,cost:h.cost,caller:h.caller,position:{x:l.pageX,y:l.pageY}})},r=l=>Math.min(100,Math.max(0,l)),o=B(()=>({width:`${r(i.edge.cost.p_cpu)}%`})),a=B(()=>({width:`${r(i.edge.cost.p_mu)}%`}));return(l,h)=>(H(),I("div",{class:"call-stack-row",onMouseover:h[0]||(h[0]=c=>s(c,l.edge)),onMouseout:h[1]||(h[1]=c=>l.$emit("hide"))},[E("div",wi,[E("div",{class:"call-stack-row__usage-cpu",style:le(o.value)},null,4),E("div",{class:"call-stack-row__usage-memory",style:le(a.value)},null,4),E("div",Ci,ee(l.edge.cost.p_cpu)+"% / "+ee(l.edge.cost.p_mu)+"% ",1)]),E("div",Ri,ee(l.edge.cost.ct),1)],32))}}),Mi=q(ki,[["__scopeId","data-v-15b83beb"]]),Si={class:"call-stack"},Ti={class:"call-stack__header"},_i={class:"call-stack__header-cpu"},Pi={class:"call-stack__header-calls"},Hi={class:"call-stack__calls"},Fi=J({__name:"call-stack",props:{payload:{}},emits:["hover","hide"],setup(t){const e=t,i=Qt({CPU:z.ASC,memory:z.DEFAULT,calls:z.DEFAULT}),n=B(()=>Object.entries(e.payload.edges).sort(([,r],[,o])=>i.CPU===z.ASC?o.cost.p_cpu-r.cost.p_cpu:i.CPU===z.DESC?r.cost.p_cpu-o.cost.p_cpu:i.memory===z.ASC?o.cost.p_mu-r.cost.p_mu:i.memory===z.DESC?r.cost.p_mu-o.cost.p_mu:i.calls===z.ASC?o.cost.ct-r.cost.ct:i.calls===z.DESC?r.cost.ct-o.cost.ct:0).reduce((r,[o,a])=>({...r,[o]:a}),{})),s=r=>o=>{Object.keys(i).forEach(a=>{const l=a;l!==r?i[l]=z.DEFAULT:i[l]=o===z.DEFAULT?z.ASC:o})};return(r,o)=>(H(),I("div",Si,[E("header",Ti,[E("div",_i,[X(x(He),{sort:i.CPU,onChangeSort:o[0]||(o[0]=a=>s("CPU")(a))},{default:$(()=>[N(" CPU ")]),_:1},8,["sort"]),N(" / "),X(x(He),{sort:i.memory,onChangeSort:o[1]||(o[1]=a=>s("memory")(a))},{default:$(()=>[N(" memory ")]),_:1},8,["sort"])]),E("div",Pi,[X(x(He),{sort:i.calls,onChangeSort:o[2]||(o[2]=a=>s("calls")(a))},{default:$(()=>[N(" Calls ")]),_:1},8,["sort"])])]),E("div",Hi,[(H(!0),I(ut,null,jt(n.value,(a,l)=>(H(),ae(x(Mi),{key:l,edge:a,onHover:o[3]||(o[3]=h=>r.$emit("hover",h)),onHide:o[4]||(o[4]=h=>r.$emit("hide"))},null,8,["edge"]))),128))])]))}}),Li=q(Fi,[["__scopeId","data-v-57da93b2"]]),Xi={class:"call-stat-board"},Ai={class:"call-stat-board__title"},Wi=J({__name:"call-stat-board",props:{edge:{}},setup(t){return(e,i)=>(H(),I("div",Xi,[E("h4",Ai,ee(e.edge.callee),1),X(x(vt),{class:"call-stat-board__body",cost:e.edge.cost},null,8,["cost"])]))}}),bt=q(Wi,[["__scopeId","data-v-e34163d2"]]),Yi={class:"call-graph__toolbar"},Di={class:"call-graph__toolbar call-graph__toolbar--right"},zi={key:0,class:"call-graph__toolbar-input-wr"},$i=["value"],Ii={class:"call-graph__toolbar-input-wr"},Oi=["value","min","max","step"],Ni=J({__name:"call-graph",props:{payload:{}},setup(t){const{prepare:e}=mt(),i=t,n=_(!1),s=_(F.CPU),r=_(1),o=_(10),a=_(!1),l=_(),h=B(()=>e(i.payload.edges,s.value,r.value,o.value)),c=B(()=>s.value===F.CALLS?"Min calls":"Percent"),d=B(()=>`${s.value}-${r.value}-${o.value}`),p=B(()=>n.value?window.innerHeight:l.value.offsetHeight);_e(()=>{a.value=!0});const g=y=>{s.value=y},u=y=>{r.value=y},b=y=>{o.value=y};return(y,v)=>(H(),I("div",{ref_key:"container",ref:l,class:ne(["call-graph",{"call-graph--fullscreen":n.value}])},[a.value&&d.value?(H(),ae(x(xi),{key:d.value,class:"call-graph__graph",elements:h.value,height:p.value},{default:$(({data:{name:f,cost:w}})=>[X(x(bt),{edge:{callee:f,caller:"",cost:w}},null,8,["edge"])]),_:1},8,["elements","height"])):j("",!0),E("div",Yi,[E("button",{title:"Full screen",onClick:v[0]||(v[0]=f=>n.value=!n.value)},[X(x(Vt),{name:"fullscreen",class:"call-graph__toolbar-icon"})]),E("button",{class:ne(["call-graph__toolbar-action",{"call-graph__toolbar-action--active":s.value===x(F).CPU}]),onClick:v[1]||(v[1]=f=>g(x(F).CPU))}," CPU ",2),E("button",{class:ne(["call-graph__toolbar-action",{"call-graph__toolbar-action--active":s.value===x(F).MEMORY_CHANGE}]),onClick:v[2]||(v[2]=f=>g(x(F).MEMORY_CHANGE))}," Memory change ",2),E("button",{class:ne(["call-graph__toolbar-action",{"call-graph__toolbar-action--active":s.value===x(F).MEMORY}]),onClick:v[3]||(v[3]=f=>g(x(F).MEMORY))}," Memory usage ",2),E("button",{class:ne(["call-graph__toolbar-action",{"call-graph__toolbar-action--active":s.value===x(F).CALLS}]),onClick:v[4]||(v[4]=f=>g(x(F).CALLS))}," Calls ",2)]),E("div",Di,[s.value!==x(F).CALLS?(H(),I("label",zi,[N(" Threshold "),E("input",{class:"call-graph__toolbar-input",type:"number",value:r.value,min:0,max:10,step:.1,onInput:v[5]||(v[5]=f=>u(f.target.value))},null,40,$i)])):j("",!0),E("label",Ii,[N(ee(c.value)+" ",1),E("input",{class:"call-graph__toolbar-input",type:"number",value:o.value,min:s.value===x(F).CALLS?1:0,max:s.value===x(F).CALLS?1e3:100,step:s.value===x(F).CALLS?10:5,onInput:v[6]||(v[6]=f=>b(f.target.value))},null,40,Oi)])])],2))}}),Ui=q(Ni,[["__scopeId","data-v-9007d666"]]);/*! * perfect-scrollbar v1.5.3 * Copyright 2021 Hyunje Jun, MDBootstrap and Contributors * Licensed under MIT - */function U(t){return getComputedStyle(t)}function W(t,e){for(var i in e){var n=e[i];typeof n=="number"&&(n=n+"px"),t.style[i]=n}return t}function xe(t){var e=document.createElement("div");return e.className=t,e}var Ve=typeof Element<"u"&&(Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector);function Q(t,e){if(!Ve)throw new Error("No element matching method supported");return Ve.call(t,e)}function oe(t){t.remove?t.remove():t.parentNode&&t.parentNode.removeChild(t)}function Ke(t,e){return Array.prototype.filter.call(t.children,function(i){return Q(i,e)})}var M={main:"ps",rtl:"ps__rtl",element:{thumb:function(t){return"ps__thumb-"+t},rail:function(t){return"ps__rail-"+t},consuming:"ps__child--consume"},state:{focus:"ps--focus",clicking:"ps--clicking",active:function(t){return"ps--active-"+t},scrolling:function(t){return"ps--scrolling-"+t}}},Et={x:null,y:null};function xt(t,e){var i=t.element.classList,n=M.state.scrolling(e);i.contains(n)?clearTimeout(Et[e]):i.add(n)}function wt(t,e){Et[e]=setTimeout(function(){return t.isAlive&&t.element.classList.remove(M.state.scrolling(e))},t.settings.scrollingThreshold)}function Gi(t,e){xt(t,e),wt(t,e)}var pe=function(e){this.element=e,this.handlers={}},Ct={isEmpty:{configurable:!0}};pe.prototype.bind=function(e,i){typeof this.handlers[e]>"u"&&(this.handlers[e]=[]),this.handlers[e].push(i),this.element.addEventListener(e,i,!1)};pe.prototype.unbind=function(e,i){var n=this;this.handlers[e]=this.handlers[e].filter(function(s){return i&&s!==i?!0:(n.element.removeEventListener(e,s,!1),!1)})};pe.prototype.unbindAll=function(){for(var e in this.handlers)this.unbind(e)};Ct.isEmpty.get=function(){var t=this;return Object.keys(this.handlers).every(function(e){return t.handlers[e].length===0})};Object.defineProperties(pe.prototype,Ct);var he=function(){this.eventElements=[]};he.prototype.eventElement=function(e){var i=this.eventElements.filter(function(n){return n.element===e})[0];return i||(i=new pe(e),this.eventElements.push(i)),i};he.prototype.bind=function(e,i,n){this.eventElement(e).bind(i,n)};he.prototype.unbind=function(e,i,n){var s=this.eventElement(e);s.unbind(i,n),s.isEmpty&&this.eventElements.splice(this.eventElements.indexOf(s),1)};he.prototype.unbindAll=function(){this.eventElements.forEach(function(e){return e.unbindAll()}),this.eventElements=[]};he.prototype.once=function(e,i,n){var s=this.eventElement(e),r=function(o){s.unbind(i,r),n(o)};s.bind(i,r)};function we(t){if(typeof window.CustomEvent=="function")return new CustomEvent(t);var e=document.createEvent("CustomEvent");return e.initCustomEvent(t,!1,!1,void 0),e}function ke(t,e,i,n,s){n===void 0&&(n=!0),s===void 0&&(s=!1);var r;if(e==="top")r=["contentHeight","containerHeight","scrollTop","y","up","down"];else if(e==="left")r=["contentWidth","containerWidth","scrollLeft","x","left","right"];else throw new Error("A proper axis should be provided");Bi(t,i,r,n,s)}function Bi(t,e,i,n,s){var r=i[0],o=i[1],a=i[2],l=i[3],h=i[4],c=i[5];n===void 0&&(n=!0),s===void 0&&(s=!1);var d=t.element;t.reach[l]=null,d[a]<1&&(t.reach[l]="start"),d[a]>t[r]-t[o]-1&&(t.reach[l]="end"),e&&(d.dispatchEvent(we("ps-scroll-"+l)),e<0?d.dispatchEvent(we("ps-scroll-"+h)):e>0&&d.dispatchEvent(we("ps-scroll-"+c)),n&&Gi(t,l)),t.reach[l]&&(e||s)&&d.dispatchEvent(we("ps-"+l+"-reach-"+t.reach[l]))}function _(t){return parseInt(t,10)||0}function Vi(t){return Q(t,"input,[contenteditable]")||Q(t,"select,[contenteditable]")||Q(t,"textarea,[contenteditable]")||Q(t,"button,[contenteditable]")}function Ki(t){var e=U(t);return _(e.width)+_(e.paddingLeft)+_(e.paddingRight)+_(e.borderLeftWidth)+_(e.borderRightWidth)}var se={isWebKit:typeof document<"u"&&"WebkitAppearance"in document.documentElement.style,supportsTouch:typeof window<"u"&&("ontouchstart"in window||"maxTouchPoints"in window.navigator&&window.navigator.maxTouchPoints>0||window.DocumentTouch&&document instanceof window.DocumentTouch),supportsIePointer:typeof navigator<"u"&&navigator.msMaxTouchPoints,isChrome:typeof navigator<"u"&&/Chrome/i.test(navigator&&navigator.userAgent)};function B(t){var e=t.element,i=Math.floor(e.scrollTop),n=e.getBoundingClientRect();t.containerWidth=Math.round(n.width),t.containerHeight=Math.round(n.height),t.contentWidth=e.scrollWidth,t.contentHeight=e.scrollHeight,e.contains(t.scrollbarXRail)||(Ke(e,M.element.rail("x")).forEach(function(s){return oe(s)}),e.appendChild(t.scrollbarXRail)),e.contains(t.scrollbarYRail)||(Ke(e,M.element.rail("y")).forEach(function(s){return oe(s)}),e.appendChild(t.scrollbarYRail)),!t.settings.suppressScrollX&&t.containerWidth+t.settings.scrollXMarginOffset=t.railXWidth-t.scrollbarXWidth&&(t.scrollbarXLeft=t.railXWidth-t.scrollbarXWidth),t.scrollbarYTop>=t.railYHeight-t.scrollbarYHeight&&(t.scrollbarYTop=t.railYHeight-t.scrollbarYHeight),qi(e,t),t.scrollbarXActive?e.classList.add(M.state.active("x")):(e.classList.remove(M.state.active("x")),t.scrollbarXWidth=0,t.scrollbarXLeft=0,e.scrollLeft=t.isRtl===!0?t.contentWidth:0),t.scrollbarYActive?e.classList.add(M.state.active("y")):(e.classList.remove(M.state.active("y")),t.scrollbarYHeight=0,t.scrollbarYTop=0,e.scrollTop=0)}function qe(t,e){return t.settings.minScrollbarLength&&(e=Math.max(e,t.settings.minScrollbarLength)),t.settings.maxScrollbarLength&&(e=Math.min(e,t.settings.maxScrollbarLength)),e}function qi(t,e){var i={width:e.railXWidth},n=Math.floor(t.scrollTop);e.isRtl?i.left=e.negativeScrollAdjustment+t.scrollLeft+e.containerWidth-e.contentWidth:i.left=t.scrollLeft,e.isScrollbarXUsingBottom?i.bottom=e.scrollbarXBottom-n:i.top=e.scrollbarXTop+n,W(e.scrollbarXRail,i);var s={top:n,height:e.railYHeight};e.isScrollbarYUsingRight?e.isRtl?s.right=e.contentWidth-(e.negativeScrollAdjustment+t.scrollLeft)-e.scrollbarYRight-e.scrollbarYOuterWidth-9:s.right=e.scrollbarYRight-t.scrollLeft:e.isRtl?s.left=e.negativeScrollAdjustment+t.scrollLeft+e.containerWidth*2-e.contentWidth-e.scrollbarYLeft-e.scrollbarYOuterWidth:s.left=e.scrollbarYLeft+t.scrollLeft,W(e.scrollbarYRail,s),W(e.scrollbarX,{left:e.scrollbarXLeft,width:e.scrollbarXWidth-e.railBorderXWidth}),W(e.scrollbarY,{top:e.scrollbarYTop,height:e.scrollbarYHeight-e.railBorderYWidth})}function Qi(t){t.element,t.event.bind(t.scrollbarY,"mousedown",function(e){return e.stopPropagation()}),t.event.bind(t.scrollbarYRail,"mousedown",function(e){var i=e.pageY-window.pageYOffset-t.scrollbarYRail.getBoundingClientRect().top,n=i>t.scrollbarYTop?1:-1;t.element.scrollTop+=n*t.containerHeight,B(t),e.stopPropagation()}),t.event.bind(t.scrollbarX,"mousedown",function(e){return e.stopPropagation()}),t.event.bind(t.scrollbarXRail,"mousedown",function(e){var i=e.pageX-window.pageXOffset-t.scrollbarXRail.getBoundingClientRect().left,n=i>t.scrollbarXLeft?1:-1;t.element.scrollLeft+=n*t.containerWidth,B(t),e.stopPropagation()})}function ji(t){Qe(t,["containerWidth","contentWidth","pageX","railXWidth","scrollbarX","scrollbarXWidth","scrollLeft","x","scrollbarXRail"]),Qe(t,["containerHeight","contentHeight","pageY","railYHeight","scrollbarY","scrollbarYHeight","scrollTop","y","scrollbarYRail"])}function Qe(t,e){var i=e[0],n=e[1],s=e[2],r=e[3],o=e[4],a=e[5],l=e[6],h=e[7],c=e[8],d=t.element,v=null,g=null,u=null;function b(f){f.touches&&f.touches[0]&&(f[s]=f.touches[0].pageY),d[l]=v+u*(f[s]-g),xt(t,h),B(t),f.stopPropagation(),f.type.startsWith("touch")&&f.changedTouches.length>1&&f.preventDefault()}function y(){wt(t,h),t[c].classList.remove(M.state.clicking),t.event.unbind(t.ownerDocument,"mousemove",b)}function p(f,x){v=d[l],x&&f.touches&&(f[s]=f.touches[0].pageY),g=f[s],u=(t[n]-t[i])/(t[r]-t[a]),x?t.event.bind(t.ownerDocument,"touchmove",b):(t.event.bind(t.ownerDocument,"mousemove",b),t.event.once(t.ownerDocument,"mouseup",y),f.preventDefault()),t[c].classList.add(M.state.clicking),f.stopPropagation()}t.event.bind(t[o],"mousedown",function(f){p(f)}),t.event.bind(t[o],"touchstart",function(f){p(f,!0)})}function Zi(t){var e=t.element,i=function(){return Q(e,":hover")},n=function(){return Q(t.scrollbarX,":focus")||Q(t.scrollbarY,":focus")};function s(r,o){var a=Math.floor(e.scrollTop);if(r===0){if(!t.scrollbarYActive)return!1;if(a===0&&o>0||a>=t.contentHeight-t.containerHeight&&o<0)return!t.settings.wheelPropagation}var l=e.scrollLeft;if(o===0){if(!t.scrollbarXActive)return!1;if(l===0&&r<0||l>=t.contentWidth-t.containerWidth&&r>0)return!t.settings.wheelPropagation}return!0}t.event.bind(t.ownerDocument,"keydown",function(r){if(!(r.isDefaultPrevented&&r.isDefaultPrevented()||r.defaultPrevented)&&!(!i()&&!n())){var o=document.activeElement?document.activeElement:t.ownerDocument.activeElement;if(o){if(o.tagName==="IFRAME")o=o.contentDocument.activeElement;else for(;o.shadowRoot;)o=o.shadowRoot.activeElement;if(Vi(o))return}var a=0,l=0;switch(r.which){case 37:r.metaKey?a=-t.contentWidth:r.altKey?a=-t.containerWidth:a=-30;break;case 38:r.metaKey?l=t.contentHeight:r.altKey?l=t.containerHeight:l=30;break;case 39:r.metaKey?a=t.contentWidth:r.altKey?a=t.containerWidth:a=30;break;case 40:r.metaKey?l=-t.contentHeight:r.altKey?l=-t.containerHeight:l=-30;break;case 32:r.shiftKey?l=t.containerHeight:l=-t.containerHeight;break;case 33:l=t.containerHeight;break;case 34:l=-t.containerHeight;break;case 36:l=t.contentHeight;break;case 35:l=-t.contentHeight;break;default:return}t.settings.suppressScrollX&&a!==0||t.settings.suppressScrollY&&l!==0||(e.scrollTop-=l,e.scrollLeft+=a,B(t),s(a,l)&&r.preventDefault())}})}function Ji(t){var e=t.element;function i(o,a){var l=Math.floor(e.scrollTop),h=e.scrollTop===0,c=l+e.offsetHeight===e.scrollHeight,d=e.scrollLeft===0,v=e.scrollLeft+e.offsetWidth===e.scrollWidth,g;return Math.abs(a)>Math.abs(o)?g=h||c:g=d||v,g?!t.settings.wheelPropagation:!0}function n(o){var a=o.deltaX,l=-1*o.deltaY;return(typeof a>"u"||typeof l>"u")&&(a=-1*o.wheelDeltaX/6,l=o.wheelDeltaY/6),o.deltaMode&&o.deltaMode===1&&(a*=10,l*=10),a!==a&&l!==l&&(a=0,l=o.wheelDelta),o.shiftKey?[-l,-a]:[a,l]}function s(o,a,l){if(!se.isWebKit&&e.querySelector("select:focus"))return!0;if(!e.contains(o))return!1;for(var h=o;h&&h!==e;){if(h.classList.contains(M.element.consuming))return!0;var c=U(h);if(l&&c.overflowY.match(/(scroll|auto)/)){var d=h.scrollHeight-h.clientHeight;if(d>0&&(h.scrollTop>0&&l<0||h.scrollTop0))return!0}if(a&&c.overflowX.match(/(scroll|auto)/)){var v=h.scrollWidth-h.clientWidth;if(v>0&&(h.scrollLeft>0&&a<0||h.scrollLeft0))return!0}h=h.parentNode}return!1}function r(o){var a=n(o),l=a[0],h=a[1];if(!s(o.target,l,h)){var c=!1;t.settings.useBothWheelAxes?t.scrollbarYActive&&!t.scrollbarXActive?(h?e.scrollTop-=h*t.settings.wheelSpeed:e.scrollTop+=l*t.settings.wheelSpeed,c=!0):t.scrollbarXActive&&!t.scrollbarYActive&&(l?e.scrollLeft+=l*t.settings.wheelSpeed:e.scrollLeft-=h*t.settings.wheelSpeed,c=!0):(e.scrollTop-=h*t.settings.wheelSpeed,e.scrollLeft+=l*t.settings.wheelSpeed),B(t),c=c||i(l,h),c&&!o.ctrlKey&&(o.stopPropagation(),o.preventDefault())}}typeof window.onwheel<"u"?t.event.bind(e,"wheel",r):typeof window.onmousewheel<"u"&&t.event.bind(e,"mousewheel",r)}function en(t){if(!se.supportsTouch&&!se.supportsIePointer)return;var e=t.element;function i(u,b){var y=Math.floor(e.scrollTop),p=e.scrollLeft,f=Math.abs(u),x=Math.abs(b);if(x>f){if(b<0&&y===t.contentHeight-t.containerHeight||b>0&&y===0)return window.scrollY===0&&b>0&&se.isChrome}else if(f>x&&(u<0&&p===t.contentWidth-t.containerWidth||u>0&&p===0))return!0;return!0}function n(u,b){e.scrollTop-=b,e.scrollLeft-=u,B(t)}var s={},r=0,o={},a=null;function l(u){return u.targetTouches?u.targetTouches[0]:u}function h(u){return u.pointerType&&u.pointerType==="pen"&&u.buttons===0?!1:!!(u.targetTouches&&u.targetTouches.length===1||u.pointerType&&u.pointerType!=="mouse"&&u.pointerType!==u.MSPOINTER_TYPE_MOUSE)}function c(u){if(h(u)){var b=l(u);s.pageX=b.pageX,s.pageY=b.pageY,r=new Date().getTime(),a!==null&&clearInterval(a)}}function d(u,b,y){if(!e.contains(u))return!1;for(var p=u;p&&p!==e;){if(p.classList.contains(M.element.consuming))return!0;var f=U(p);if(y&&f.overflowY.match(/(scroll|auto)/)){var x=p.scrollHeight-p.clientHeight;if(x>0&&(p.scrollTop>0&&y<0||p.scrollTop0))return!0}if(b&&f.overflowX.match(/(scroll|auto)/)){var T=p.scrollWidth-p.clientWidth;if(T>0&&(p.scrollLeft>0&&b<0||p.scrollLeft0))return!0}p=p.parentNode}return!1}function v(u){if(h(u)){var b=l(u),y={pageX:b.pageX,pageY:b.pageY},p=y.pageX-s.pageX,f=y.pageY-s.pageY;if(d(u.target,p,f))return;n(p,f),s=y;var x=new Date().getTime(),T=x-r;T>0&&(o.x=p/T,o.y=f/T,r=x),i(p,f)&&u.preventDefault()}}function g(){t.settings.swipeEasing&&(clearInterval(a),a=setInterval(function(){if(t.isInitialized){clearInterval(a);return}if(!o.x&&!o.y){clearInterval(a);return}if(Math.abs(o.x)<.01&&Math.abs(o.y)<.01){clearInterval(a);return}if(!t.element){clearInterval(a);return}n(o.x*30,o.y*30),o.x*=.8,o.y*=.8},10))}se.supportsTouch?(t.event.bind(e,"touchstart",c),t.event.bind(e,"touchmove",v),t.event.bind(e,"touchend",g)):se.supportsIePointer&&(window.PointerEvent?(t.event.bind(e,"pointerdown",c),t.event.bind(e,"pointermove",v),t.event.bind(e,"pointerup",g)):window.MSPointerEvent&&(t.event.bind(e,"MSPointerDown",c),t.event.bind(e,"MSPointerMove",v),t.event.bind(e,"MSPointerUp",g)))}var tn=function(){return{handlers:["click-rail","drag-thumb","keyboard","wheel","touch"],maxScrollbarLength:null,minScrollbarLength:null,scrollingThreshold:1e3,scrollXMarginOffset:0,scrollYMarginOffset:0,suppressScrollX:!1,suppressScrollY:!1,swipeEasing:!0,useBothWheelAxes:!1,wheelPropagation:!0,wheelSpeed:1}},nn={"click-rail":Qi,"drag-thumb":ji,keyboard:Zi,wheel:Ji,touch:en},ve=function(e,i){var n=this;if(i===void 0&&(i={}),typeof e=="string"&&(e=document.querySelector(e)),!e||!e.nodeName)throw new Error("no element is specified to initialize PerfectScrollbar");this.element=e,e.classList.add(M.main),this.settings=tn();for(var s in i)this.settings[s]=i[s];this.containerWidth=null,this.containerHeight=null,this.contentWidth=null,this.contentHeight=null;var r=function(){return e.classList.add(M.state.focus)},o=function(){return e.classList.remove(M.state.focus)};this.isRtl=U(e).direction==="rtl",this.isRtl===!0&&e.classList.add(M.rtl),this.isNegativeScroll=function(){var h=e.scrollLeft,c=null;return e.scrollLeft=-1,c=e.scrollLeft<0,e.scrollLeft=h,c}(),this.negativeScrollAdjustment=this.isNegativeScroll?e.scrollWidth-e.clientWidth:0,this.event=new he,this.ownerDocument=e.ownerDocument||document,this.scrollbarXRail=xe(M.element.rail("x")),e.appendChild(this.scrollbarXRail),this.scrollbarX=xe(M.element.thumb("x")),this.scrollbarXRail.appendChild(this.scrollbarX),this.scrollbarX.setAttribute("tabindex",0),this.event.bind(this.scrollbarX,"focus",r),this.event.bind(this.scrollbarX,"blur",o),this.scrollbarXActive=null,this.scrollbarXWidth=null,this.scrollbarXLeft=null;var a=U(this.scrollbarXRail);this.scrollbarXBottom=parseInt(a.bottom,10),isNaN(this.scrollbarXBottom)?(this.isScrollbarXUsingBottom=!1,this.scrollbarXTop=_(a.top)):this.isScrollbarXUsingBottom=!0,this.railBorderXWidth=_(a.borderLeftWidth)+_(a.borderRightWidth),W(this.scrollbarXRail,{display:"block"}),this.railXMarginWidth=_(a.marginLeft)+_(a.marginRight),W(this.scrollbarXRail,{display:""}),this.railXWidth=null,this.railXRatio=null,this.scrollbarYRail=xe(M.element.rail("y")),e.appendChild(this.scrollbarYRail),this.scrollbarY=xe(M.element.thumb("y")),this.scrollbarYRail.appendChild(this.scrollbarY),this.scrollbarY.setAttribute("tabindex",0),this.event.bind(this.scrollbarY,"focus",r),this.event.bind(this.scrollbarY,"blur",o),this.scrollbarYActive=null,this.scrollbarYHeight=null,this.scrollbarYTop=null;var l=U(this.scrollbarYRail);this.scrollbarYRight=parseInt(l.right,10),isNaN(this.scrollbarYRight)?(this.isScrollbarYUsingRight=!1,this.scrollbarYLeft=_(l.left)):this.isScrollbarYUsingRight=!0,this.scrollbarYOuterWidth=this.isRtl?Ki(this.scrollbarY):null,this.railBorderYWidth=_(l.borderTopWidth)+_(l.borderBottomWidth),W(this.scrollbarYRail,{display:"block"}),this.railYMarginHeight=_(l.marginTop)+_(l.marginBottom),W(this.scrollbarYRail,{display:""}),this.railYHeight=null,this.railYRatio=null,this.reach={x:e.scrollLeft<=0?"start":e.scrollLeft>=this.contentWidth-this.containerWidth?"end":null,y:e.scrollTop<=0?"start":e.scrollTop>=this.contentHeight-this.containerHeight?"end":null},this.isAlive=!0,this.settings.handlers.forEach(function(h){return nn[h](n)}),this.lastScrollTop=Math.floor(e.scrollTop),this.lastScrollLeft=e.scrollLeft,this.event.bind(this.element,"scroll",function(h){return n.onScroll(h)}),B(this)};ve.prototype.update=function(){this.isAlive&&(this.negativeScrollAdjustment=this.isNegativeScroll?this.element.scrollWidth-this.element.clientWidth:0,W(this.scrollbarXRail,{display:"block"}),W(this.scrollbarYRail,{display:"block"}),this.railXMarginWidth=_(U(this.scrollbarXRail).marginLeft)+_(U(this.scrollbarXRail).marginRight),this.railYMarginHeight=_(U(this.scrollbarYRail).marginTop)+_(U(this.scrollbarYRail).marginBottom),W(this.scrollbarXRail,{display:"none"}),W(this.scrollbarYRail,{display:"none"}),B(this),ke(this,"top",0,!1,!0),ke(this,"left",0,!1,!0),W(this.scrollbarXRail,{display:""}),W(this.scrollbarYRail,{display:""}))};ve.prototype.onScroll=function(e){this.isAlive&&(B(this),ke(this,"top",this.element.scrollTop-this.lastScrollTop),ke(this,"left",this.element.scrollLeft-this.lastScrollLeft),this.lastScrollTop=Math.floor(this.element.scrollTop),this.lastScrollLeft=this.element.scrollLeft)};ve.prototype.destroy=function(){this.isAlive&&(this.event.unbindAll(),oe(this.scrollbarX),oe(this.scrollbarY),oe(this.scrollbarXRail),oe(this.scrollbarYRail),this.removePsClasses(),this.element=null,this.scrollbarX=null,this.scrollbarY=null,this.scrollbarXRail=null,this.scrollbarYRail=null,this.isAlive=!1)};ve.prototype.removePsClasses=function(){this.element.className=this.element.className.split(" ").filter(function(e){return!e.match(/^ps([-_].+|)$/)}).join(" ")};const je=["scroll","ps-scroll-y","ps-scroll-x","ps-scroll-up","ps-scroll-down","ps-scroll-left","ps-scroll-right","ps-y-reach-start","ps-y-reach-end","ps-x-reach-start","ps-x-reach-end"];var sn={name:"PerfectScrollbar",props:{options:{type:Object,required:!1,default:()=>{}},tag:{type:String,required:!1,default:"div"},watchOptions:{type:Boolean,required:!1,default:!1}},emits:je,data(){return{ps:null}},watch:{watchOptions(t){!t&&this.watcher?this.watcher():this.createWatcher()}},mounted(){this.create(),this.watchOptions&&this.createWatcher()},updated(){this.$nextTick(()=>{this.update()})},beforeUnmount(){this.destroy()},methods:{create(){this.ps&&this.$isServer||(this.ps=new ve(this.$el,this.options),je.forEach(t=>{this.ps.element.addEventListener(t,e=>this.$emit(t,e))}))},createWatcher(){this.watcher=this.$watch("options",()=>{this.destroy(),this.create()},{deep:!0})},update(){this.ps&&this.ps.update()},destroy(){this.ps&&(this.ps.destroy(),this.ps=null)}},render(){return jt(this.tag,{class:"ps"},this.$slots.default&&this.$slots.default())}},Rt={exports:{}},rn={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},_t={exports:{}},on=function(e){return!e||typeof e=="string"?!1:e instanceof Array||Array.isArray(e)||e.length>=0&&(e.splice instanceof Function||Object.getOwnPropertyDescriptor(e,e.length-1)&&e.constructor.name!=="String")},an=on,ln=Array.prototype.concat,hn=Array.prototype.slice,Ze=_t.exports=function(e){for(var i=[],n=0,s=e.length;n=4&&t[3]!==1&&(e=", "+t[3]),"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+e+")"};D.to.keyword=function(t){return Mt[t.slice(0,3)]};function Z(t,e,i){return Math.min(Math.max(e,t),i)}function Ce(t){var e=Math.round(t).toString(16).toUpperCase();return e.length<2?"0"+e:e}var dn=Rt.exports,St={exports:{}},un={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},te=un,Tt={};for(var Fe in te)te.hasOwnProperty(Fe)&&(Tt[te[Fe]]=Fe);var m=St.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var X in m)if(m.hasOwnProperty(X)){if(!("channels"in m[X]))throw new Error("missing channels property: "+X);if(!("labels"in m[X]))throw new Error("missing channel labels property: "+X);if(m[X].labels.length!==m[X].channels)throw new Error("channel and label counts mismatch: "+X);var gn=m[X].channels,fn=m[X].labels;delete m[X].channels,delete m[X].labels,Object.defineProperty(m[X],"channels",{value:gn}),Object.defineProperty(m[X],"labels",{value:fn})}m.rgb.hsl=function(t){var e=t[0]/255,i=t[1]/255,n=t[2]/255,s=Math.min(e,i,n),r=Math.max(e,i,n),o=r-s,a,l,h;return r===s?a=0:e===r?a=(i-n)/o:i===r?a=2+(n-e)/o:n===r&&(a=4+(e-i)/o),a=Math.min(a*60,360),a<0&&(a+=360),h=(s+r)/2,r===s?l=0:h<=.5?l=o/(r+s):l=o/(2-r-s),[a,l*100,h*100]};m.rgb.hsv=function(t){var e,i,n,s,r,o=t[0]/255,a=t[1]/255,l=t[2]/255,h=Math.max(o,a,l),c=h-Math.min(o,a,l),d=function(v){return(h-v)/6/c+1/2};return c===0?s=r=0:(r=c/h,e=d(o),i=d(a),n=d(l),o===h?s=n-i:a===h?s=1/3+e-n:l===h&&(s=2/3+i-e),s<0?s+=1:s>1&&(s-=1)),[s*360,r*100,h*100]};m.rgb.hwb=function(t){var e=t[0],i=t[1],n=t[2],s=m.rgb.hsl(t)[0],r=1/255*Math.min(e,Math.min(i,n));return n=1-1/255*Math.max(e,Math.max(i,n)),[s,r*100,n*100]};m.rgb.cmyk=function(t){var e=t[0]/255,i=t[1]/255,n=t[2]/255,s,r,o,a;return a=Math.min(1-e,1-i,1-n),s=(1-e-a)/(1-a)||0,r=(1-i-a)/(1-a)||0,o=(1-n-a)/(1-a)||0,[s*100,r*100,o*100,a*100]};function pn(t,e){return Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2)+Math.pow(t[2]-e[2],2)}m.rgb.keyword=function(t){var e=Tt[t];if(e)return e;var i=1/0,n;for(var s in te)if(te.hasOwnProperty(s)){var r=te[s],o=pn(t,r);o.04045?Math.pow((e+.055)/1.055,2.4):e/12.92,i=i>.04045?Math.pow((i+.055)/1.055,2.4):i/12.92,n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92;var s=e*.4124+i*.3576+n*.1805,r=e*.2126+i*.7152+n*.0722,o=e*.0193+i*.1192+n*.9505;return[s*100,r*100,o*100]};m.rgb.lab=function(t){var e=m.rgb.xyz(t),i=e[0],n=e[1],s=e[2],r,o,a;return i/=95.047,n/=100,s/=108.883,i=i>.008856?Math.pow(i,1/3):7.787*i+16/116,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116,s=s>.008856?Math.pow(s,1/3):7.787*s+16/116,r=116*n-16,o=500*(i-n),a=200*(n-s),[r,o,a]};m.hsl.rgb=function(t){var e=t[0]/360,i=t[1]/100,n=t[2]/100,s,r,o,a,l;if(i===0)return l=n*255,[l,l,l];n<.5?r=n*(1+i):r=n+i-n*i,s=2*n-r,a=[0,0,0];for(var h=0;h<3;h++)o=e+1/3*-(h-1),o<0&&o++,o>1&&o--,6*o<1?l=s+(r-s)*6*o:2*o<1?l=r:3*o<2?l=s+(r-s)*(2/3-o)*6:l=s,a[h]=l*255;return a};m.hsl.hsv=function(t){var e=t[0],i=t[1]/100,n=t[2]/100,s=i,r=Math.max(n,.01),o,a;return n*=2,i*=n<=1?n:2-n,s*=r<=1?r:2-r,a=(n+i)/2,o=n===0?2*s/(r+s):2*i/(n+i),[e,o*100,a*100]};m.hsv.rgb=function(t){var e=t[0]/60,i=t[1]/100,n=t[2]/100,s=Math.floor(e)%6,r=e-Math.floor(e),o=255*n*(1-i),a=255*n*(1-i*r),l=255*n*(1-i*(1-r));switch(n*=255,s){case 0:return[n,l,o];case 1:return[a,n,o];case 2:return[o,n,l];case 3:return[o,a,n];case 4:return[l,o,n];case 5:return[n,o,a]}};m.hsv.hsl=function(t){var e=t[0],i=t[1]/100,n=t[2]/100,s=Math.max(n,.01),r,o,a;return a=(2-i)*n,r=(2-i)*s,o=i*s,o/=r<=1?r:2-r,o=o||0,a/=2,[e,o*100,a*100]};m.hwb.rgb=function(t){var e=t[0]/360,i=t[1]/100,n=t[2]/100,s=i+n,r,o,a,l;s>1&&(i/=s,n/=s),r=Math.floor(6*e),o=1-n,a=6*e-r,r&1&&(a=1-a),l=i+a*(o-i);var h,c,d;switch(r){default:case 6:case 0:h=o,c=l,d=i;break;case 1:h=l,c=o,d=i;break;case 2:h=i,c=o,d=l;break;case 3:h=i,c=l,d=o;break;case 4:h=l,c=i,d=o;break;case 5:h=o,c=i,d=l;break}return[h*255,c*255,d*255]};m.cmyk.rgb=function(t){var e=t[0]/100,i=t[1]/100,n=t[2]/100,s=t[3]/100,r,o,a;return r=1-Math.min(1,e*(1-s)+s),o=1-Math.min(1,i*(1-s)+s),a=1-Math.min(1,n*(1-s)+s),[r*255,o*255,a*255]};m.xyz.rgb=function(t){var e=t[0]/100,i=t[1]/100,n=t[2]/100,s,r,o;return s=e*3.2406+i*-1.5372+n*-.4986,r=e*-.9689+i*1.8758+n*.0415,o=e*.0557+i*-.204+n*1.057,s=s>.0031308?1.055*Math.pow(s,1/2.4)-.055:s*12.92,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:r*12.92,o=o>.0031308?1.055*Math.pow(o,1/2.4)-.055:o*12.92,s=Math.min(Math.max(0,s),1),r=Math.min(Math.max(0,r),1),o=Math.min(Math.max(0,o),1),[s*255,r*255,o*255]};m.xyz.lab=function(t){var e=t[0],i=t[1],n=t[2],s,r,o;return e/=95.047,i/=100,n/=108.883,e=e>.008856?Math.pow(e,1/3):7.787*e+16/116,i=i>.008856?Math.pow(i,1/3):7.787*i+16/116,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116,s=116*i-16,r=500*(e-i),o=200*(i-n),[s,r,o]};m.lab.xyz=function(t){var e=t[0],i=t[1],n=t[2],s,r,o;r=(e+16)/116,s=i/500+r,o=r-n/200;var a=Math.pow(r,3),l=Math.pow(s,3),h=Math.pow(o,3);return r=a>.008856?a:(r-16/116)/7.787,s=l>.008856?l:(s-16/116)/7.787,o=h>.008856?h:(o-16/116)/7.787,s*=95.047,r*=100,o*=108.883,[s,r,o]};m.lab.lch=function(t){var e=t[0],i=t[1],n=t[2],s,r,o;return s=Math.atan2(n,i),r=s*360/2/Math.PI,r<0&&(r+=360),o=Math.sqrt(i*i+n*n),[e,o,r]};m.lch.lab=function(t){var e=t[0],i=t[1],n=t[2],s,r,o;return o=n/360*2*Math.PI,s=i*Math.cos(o),r=i*Math.sin(o),[e,s,r]};m.rgb.ansi16=function(t){var e=t[0],i=t[1],n=t[2],s=1 in arguments?arguments[1]:m.rgb.hsv(t)[2];if(s=Math.round(s/50),s===0)return 30;var r=30+(Math.round(n/255)<<2|Math.round(i/255)<<1|Math.round(e/255));return s===2&&(r+=60),r};m.hsv.ansi16=function(t){return m.rgb.ansi16(m.hsv.rgb(t),t[2])};m.rgb.ansi256=function(t){var e=t[0],i=t[1],n=t[2];if(e===i&&i===n)return e<8?16:e>248?231:Math.round((e-8)/247*24)+232;var s=16+36*Math.round(e/255*5)+6*Math.round(i/255*5)+Math.round(n/255*5);return s};m.ansi16.rgb=function(t){var e=t%10;if(e===0||e===7)return t>50&&(e+=3.5),e=e/10.5*255,[e,e,e];var i=(~~(t>50)+1)*.5,n=(e&1)*i*255,s=(e>>1&1)*i*255,r=(e>>2&1)*i*255;return[n,s,r]};m.ansi256.rgb=function(t){if(t>=232){var e=(t-232)*10+8;return[e,e,e]}t-=16;var i,n=Math.floor(t/36)/5*255,s=Math.floor((i=t%36)/6)/5*255,r=i%6/5*255;return[n,s,r]};m.rgb.hex=function(t){var e=((Math.round(t[0])&255)<<16)+((Math.round(t[1])&255)<<8)+(Math.round(t[2])&255),i=e.toString(16).toUpperCase();return"000000".substring(i.length)+i};m.hex.rgb=function(t){var e=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];var i=e[0];e[0].length===3&&(i=i.split("").map(function(a){return a+a}).join(""));var n=parseInt(i,16),s=n>>16&255,r=n>>8&255,o=n&255;return[s,r,o]};m.rgb.hcg=function(t){var e=t[0]/255,i=t[1]/255,n=t[2]/255,s=Math.max(Math.max(e,i),n),r=Math.min(Math.min(e,i),n),o=s-r,a,l;return o<1?a=r/(1-o):a=0,o<=0?l=0:s===e?l=(i-n)/o%6:s===i?l=2+(n-e)/o:l=4+(e-i)/o+4,l/=6,l%=1,[l*360,o*100,a*100]};m.hsl.hcg=function(t){var e=t[1]/100,i=t[2]/100,n=1,s=0;return i<.5?n=2*e*i:n=2*e*(1-i),n<1&&(s=(i-.5*n)/(1-n)),[t[0],n*100,s*100]};m.hsv.hcg=function(t){var e=t[1]/100,i=t[2]/100,n=e*i,s=0;return n<1&&(s=(i-n)/(1-n)),[t[0],n*100,s*100]};m.hcg.rgb=function(t){var e=t[0]/360,i=t[1]/100,n=t[2]/100;if(i===0)return[n*255,n*255,n*255];var s=[0,0,0],r=e%1*6,o=r%1,a=1-o,l=0;switch(Math.floor(r)){case 0:s[0]=1,s[1]=o,s[2]=0;break;case 1:s[0]=a,s[1]=1,s[2]=0;break;case 2:s[0]=0,s[1]=1,s[2]=o;break;case 3:s[0]=0,s[1]=a,s[2]=1;break;case 4:s[0]=o,s[1]=0,s[2]=1;break;default:s[0]=1,s[1]=0,s[2]=a}return l=(1-i)*n,[(i*s[0]+l)*255,(i*s[1]+l)*255,(i*s[2]+l)*255]};m.hcg.hsv=function(t){var e=t[1]/100,i=t[2]/100,n=e+i*(1-e),s=0;return n>0&&(s=e/n),[t[0],s*100,n*100]};m.hcg.hsl=function(t){var e=t[1]/100,i=t[2]/100,n=i*(1-e)+.5*e,s=0;return n>0&&n<.5?s=e/(2*n):n>=.5&&n<1&&(s=e/(2*(1-n))),[t[0],s*100,n*100]};m.hcg.hwb=function(t){var e=t[1]/100,i=t[2]/100,n=e+i*(1-e);return[t[0],(n-e)*100,(1-n)*100]};m.hwb.hcg=function(t){var e=t[1]/100,i=t[2]/100,n=1-i,s=n-e,r=0;return s<1&&(r=(n-s)/(1-s)),[t[0],s*100,r*100]};m.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]};m.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]};m.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]};m.gray.hsl=m.gray.hsv=function(t){return[0,0,t[0]]};m.gray.hwb=function(t){return[0,100,t[0]]};m.gray.cmyk=function(t){return[0,0,0,t[0]]};m.gray.lab=function(t){return[t[0],0,0]};m.gray.hex=function(t){var e=Math.round(t[0]/100*255)&255,i=(e<<16)+(e<<8)+e,n=i.toString(16).toUpperCase();return"000000".substring(n.length)+n};m.rgb.gray=function(t){var e=(t[0]+t[1]+t[2])/3;return[e/255*100]};var Pt=St.exports,Me=Pt;function vn(){for(var t={},e=Object.keys(Me),i=e.length,n=0;n1&&(i=Array.prototype.slice.call(arguments)),t(i))};return"conversion"in t&&(e.conversion=t.conversion),e}function Rn(t){var e=function(i){if(i==null)return i;arguments.length>1&&(i=Array.prototype.slice.call(arguments));var n=t(i);if(typeof n=="object")for(var s=n.length,r=0;r>16&255,t>>8&255,t&255],this.valpha=1;else{this.valpha=1;var o=Object.keys(t);"alpha"in t&&(o.splice(o.indexOf("alpha"),1),this.valpha=typeof t.alpha=="number"?t.alpha:0);var a=o.sort().join("");if(!(a in We))throw new Error("Unable to parse color from object: "+JSON.stringify(t));this.model=We[a];var l=Y[this.model].labels,h=[];for(i=0;ii?(e+.05)/(i+.05):(i+.05)/(e+.05)},level:function(t){var e=this.contrast(t);return e>=7.1?"AAA":e>=4.5?"AA":""},isDark:function(){var t=this.rgb().color,e=(t[0]*299+t[1]*587+t[2]*114)/1e3;return e<128},isLight:function(){return!this.isDark()},negate:function(){for(var t=this.rgb(),e=0;e<3;e++)t.color[e]=255-t.color[e];return t},lighten:function(t){var e=this.hsl();return e.color[2]+=e.color[2]*t,e},darken:function(t){var e=this.hsl();return e.color[2]-=e.color[2]*t,e},saturate:function(t){var e=this.hsl();return e.color[1]+=e.color[1]*t,e},desaturate:function(t){var e=this.hsl();return e.color[1]-=e.color[1]*t,e},whiten:function(t){var e=this.hwb();return e.color[1]+=e.color[1]*t,e},blacken:function(t){var e=this.hwb();return e.color[2]+=e.color[2]*t,e},grayscale:function(){var t=this.rgb().color,e=t[0]*.3+t[1]*.59+t[2]*.11;return F.rgb(e,e,e)},fade:function(t){return this.alpha(this.valpha-this.valpha*t)},opaquer:function(t){return this.alpha(this.valpha+this.valpha*t)},rotate:function(t){var e=this.hsl(),i=e.color[0];return i=(i+t)%360,i=i<0?360+i:i,e.color[0]=i,e},mix:function(t,e){if(!t||!t.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof t);var i=t.rgb(),n=this.rgb(),s=e===void 0?.5:e,r=2*s-1,o=i.alpha()-n.alpha(),a=((r*o===-1?r:(r+o)/(1+r*o))+1)/2,l=1-a;return F.rgb(a*i.red()+l*n.red(),a*i.green()+l*n.green(),a*i.blue()+l*n.blue(),i.alpha()*s+n.alpha()*(1-s))}};Object.keys(Y).forEach(function(t){if(Ht.indexOf(t)===-1){var e=Y[t].channels;F.prototype[t]=function(){if(this.model===t)return new F(this);if(arguments.length)return new F(arguments,t);var i=typeof arguments[e]=="number"?e:this.valpha;return new F(Sn(Y[this.model][t].raw(this.color)).concat(i),t)},F[t]=function(i){return typeof i=="number"&&(i=Ye($e.call(arguments),e)),new F(i,t)}}});function kn(t,e){return Number(t.toFixed(e))}function Mn(t){return function(e){return kn(e,t)}}function k(t,e,i){return t=Array.isArray(t)?t:[t],t.forEach(function(n){(Se[n]||(Se[n]=[]))[e]=i}),t=t[0],function(n){var s;return arguments.length?(i&&(n=i(n)),s=this[t](),s.color[e]=n,s):(s=this[t]().color[e],i&&(s=i(s)),s)}}function S(t){return function(e){return Math.max(0,Math.min(t,e))}}function Sn(t){return Array.isArray(t)?t:[t]}function Ye(t,e){for(var i=0;iObject.keys(t).reduce((i,n)=>(e[n]?i[n]=e[n]:i[n]=t[n],i),{}),Je=t=>typeof t=="number",V=t=>t[t.length-1],Ft=1,Lt=.25,Pn=Ft*2+Lt,At=(t,e,i=null,n=0)=>{t.forEach(s=>{const r=e(s,i,n);s.children&&At(s.children,e,r||s,n+1)})},Xt=t=>{const e=[];let i=0;return At(t,(n,s,r)=>{const o={source:n,end:n.start+n.duration,parent:s,level:r,index:i++};return e.push(o),o}),e.sort((n,s)=>n.level-s.level||n.source.start-s.source.start)},Wt=t=>{let e=!0,i=0,n=0;return t.forEach(({source:{start:s},end:r})=>{e?(i=s,n=r,e=!1):(i=ir?n:r)}),{min:i,max:n}},Hn=t=>{const e=t[0],i=V(t);return i.source.start+i.source.duration-e.source.start},Fn=(t,e,i)=>t.source.starte||t.source.start>e&&t.endt.starte||t.start>e&&t.endt.source.color===e.source.color&&t.source.type===e.source.type;function Yt(t,e=An){return t.reduce((i,n)=>{const s=V(i),r=s&&V(s);return r&&r.level===n.level&&e(r,n)?s.push(n):i.push([n]),i},[]).filter(i=>i.length).map(i=>({nodes:i}))}const Ie=(t,e,i=0,n=0,s=Lt,r=Ft)=>{let o=null,a=null,l=0;return t.reduce((h,{nodes:c})=>{o=null,a=null,l=0;for(const d of c)Fn(d,i,n)&&(o&&!a||o&&a&&(d.source.start-(a.source.start+a.source.duration))*e{const c=h[0],d=Hn(h);return{start:c.source.start,end:c.source.start+d,duration:d,type:c.source.type,color:c.source.color,level:c.level,nodes:h}})},Dt=(t,e,i,n,s,r)=>t.reduce((o,a)=>(Ln(a,i,n)&&(a.duration*e<=Pn?o.push(a):o.push(...Ie([a],e,i,n,s,r))),o),[]),et=Te.hsl(180,30,70);class Xn extends ie{constructor({data:e,colors:i={},name:n="flameChartPlugin"}){super(n),this.height=0,this.flatTree=[],this.positionY=0,this.colors={},this.selectedRegion=null,this.hoveredRegion=null,this.lastRandomColor=et,this.metaClusterizedFlatTree=[],this.actualClusterizedFlatTree=[],this.initialClusterizedFlatTree=[],this.lastUsedColor=null,this.renderChartTimeout=-1,this.data=e,this.userColors=i,this.parseData(),this.reset()}init(e,i){super.init(e,i),this.interactionsEngine.on("change-position",this.handlePositionChange.bind(this)),this.interactionsEngine.on("select",this.handleSelect.bind(this)),this.interactionsEngine.on("hover",this.handleHover.bind(this)),this.interactionsEngine.on("up",this.handleMouseUp.bind(this)),this.initData()}handlePositionChange({deltaX:e,deltaY:i}){const n=this.positionY,s=this.renderEngine.parent.positionX;this.interactionsEngine.setCursor("grabbing"),this.positionY+i>=0?this.setPositionY(this.positionY+i):this.setPositionY(0),this.renderEngine.tryToChangePosition(e),(s!==this.renderEngine.parent.positionX||n!==this.positionY)&&this.renderEngine.parent.render()}handleMouseUp(){this.interactionsEngine.clearCursor()}setPositionY(e){this.positionY=e}reset(){this.colors={},this.lastRandomColor=et,this.positionY=0,this.selectedRegion=null}calcMinMax(){const{flatTree:e}=this,{min:i,max:n}=Wt(e);this.min=i,this.max=n}handleSelect(e){var i,n;const s=this.findNodeInCluster(e);this.selectedRegion!==s&&(this.selectedRegion=s,this.renderEngine.render(),this.emit("select",{node:(n=(i=this.selectedRegion)===null||i===void 0?void 0:i.data)!==null&&n!==void 0?n:null,type:"flame-chart-node"}))}handleHover(e){this.hoveredRegion=this.findNodeInCluster(e)}findNodeInCluster(e){const i=this.interactionsEngine.getMouse();if(e&&e.type==="cluster"){const n=e.data.nodes.find(({level:s,source:{start:r,duration:o}})=>{const{x:a,y:l,w:h}=this.calcRect(r,o,s);return i.x>=a&&i.x<=a+h&&i.y>=l&&i.y<=l+this.renderEngine.blockHeight});if(n)return{data:n,type:"node"}}return null}getColor(e="_default",i){if(i)return i;if(this.colors[e])return this.colors[e];if(this.userColors[e]){const n=new Te(this.userColors[e]);return this.colors[e]=n.rgb().toString(),this.colors[e]}return this.lastRandomColor=this.lastRandomColor.rotate(27),this.colors[e]=this.lastRandomColor.rgb().toString(),this.colors[e]}setData(e){this.data=e,this.parseData(),this.initData(),this.reset(),this.renderEngine.recalcMinMax(),this.renderEngine.resetParentView()}parseData(){this.flatTree=Xt(this.data),this.calcMinMax()}initData(){this.metaClusterizedFlatTree=Yt(this.flatTree),this.initialClusterizedFlatTree=Ie(this.metaClusterizedFlatTree,this.renderEngine.zoom,this.min,this.max),this.reclusterizeClusteredFlatTree()}reclusterizeClusteredFlatTree(){this.actualClusterizedFlatTree=Dt(this.initialClusterizedFlatTree,this.renderEngine.zoom,this.renderEngine.positionX,this.renderEngine.positionX+this.renderEngine.getRealView())}calcRect(e,i,n){const s=i*this.renderEngine.zoom;return{x:this.renderEngine.timeToPosition(e),y:n*(this.renderEngine.blockHeight+1)-this.positionY,w:s<=.1?.1:s>=3?s-1:s-s/3}}renderTooltip(){if(this.hoveredRegion){if(this.renderEngine.options.tooltip===!1)return!0;if(typeof this.renderEngine.options.tooltip=="function")this.renderEngine.options.tooltip(this.hoveredRegion,this.renderEngine,this.interactionsEngine.getGlobalMouse());else{const{data:{source:{start:e,duration:i,name:n,children:s}}}=this.hoveredRegion,r=this.renderEngine.getTimeUnits(),o=i-(s?s.reduce((d,{duration:v})=>d+v,0):0),a=this.renderEngine.getAccuracy()+2,l=`${n}`,h=`duration: ${i.toFixed(a)} ${r} ${s!=null&&s.length?`(self ${o.toFixed(a)} ${r})`:""}`,c=`start: ${e.toFixed(a)}`;this.renderEngine.renderTooltipFromData([{text:l},{text:h},{text:c}],this.interactionsEngine.getGlobalMouse())}return!0}return!1}render(){const{width:e,blockHeight:i,height:n,minTextWidth:s}=this.renderEngine;this.lastUsedColor=null,this.reclusterizeClusteredFlatTree();const r=l=>h=>{const{start:c,duration:d,level:v}=h,{x:g,y:u,w:b}=this.calcRect(c,d,v);g+b>0&&g0&&u{const{type:v,nodes:g,color:u}=l,b=this.interactionsEngine.getMouse();b.y>=c&&b.y<=c+i&&a(l,h,c,d),d>=.25&&this.renderEngine.addRectToRenderQueue(this.getColor(v,u),h,c,d),d>=s&&g.length===1&&this.renderEngine.addTextToRenderQueue(g[0].source.name,h,c,d)},a=(l,h,c,d)=>{this.interactionsEngine.addHitRegion("cluster",l,h,c,d,i)};if(this.actualClusterizedFlatTree.forEach(r(o)),this.selectedRegion&&this.selectedRegion.type==="node"){const{source:{start:l,duration:h},level:c}=this.selectedRegion.data,{x:d,y:v,w:g}=this.calcRect(l,h,c);this.renderEngine.addStrokeToRenderQueue("green",d,v,g,this.renderEngine.blockHeight)}clearTimeout(this.renderChartTimeout),this.renderChartTimeout=window.setTimeout(()=>{this.interactionsEngine.clearHitRegions(),this.actualClusterizedFlatTree.forEach(r(a))},16)}}const tt={font:"10px sans-serif",fontColor:"black"};class Wn extends ie{constructor(e={}){super("timeGridPlugin"),this.styles=tt,this.height=0,this.setSettings(e)}setSettings({styles:e}){this.styles=G(tt,e),this.renderEngine&&this.overrideEngineSettings()}overrideEngineSettings(){this.renderEngine.setSettingsOverrides({styles:this.styles}),this.height=Math.round(this.renderEngine.charHeight+10)}init(e,i){super.init(e,i),this.overrideEngineSettings()}render(){return this.renderEngine.parent.timeGrid.renderTimes(this.renderEngine),this.renderEngine.parent.timeGrid.renderLines(0,this.renderEngine.height,this.renderEngine),!0}}class Yn extends ie{constructor({data:e,name:i="marksPlugin"}){super(i),this.hoveredRegion=null,this.selectedRegion=null,this.marks=this.prepareMarks(e),this.calcMinMax()}calcMinMax(){const{marks:e}=this;e.length&&(this.min=e.reduce((i,{timestamp:n})=>nn>i?n:i,e[0].timestamp))}init(e,i){super.init(e,i),this.interactionsEngine.on("hover",this.handleHover.bind(this)),this.interactionsEngine.on("select",this.handleSelect.bind(this))}handleHover(e){this.hoveredRegion=e}handleSelect(e){var i;this.selectedRegion!==e&&(this.selectedRegion=e,this.emit("select",{node:(i=e==null?void 0:e.data)!==null&&i!==void 0?i:null,type:"mark"}),this.renderEngine.render())}get height(){return this.renderEngine.blockHeight+2}prepareMarks(e){return e.map(({color:i,...n})=>({...n,color:new Te(i).alpha(.7).rgb().toString()})).sort((i,n)=>i.timestamp-n.timestamp)}setMarks(e){this.marks=this.prepareMarks(e),this.calcMinMax(),this.renderEngine.recalcMinMax(),this.renderEngine.resetParentView()}calcMarksBlockPosition(e,i){return e>0&&i>e?i:e}render(){this.marks.reduce((e,i)=>{const{timestamp:n,color:s,shortName:r}=i,{width:o}=this.renderEngine.ctx.measureText(r),a=o+this.renderEngine.blockPaddingLeftRight*2,l=this.renderEngine.timeToPosition(n),h=this.calcMarksBlockPosition(l,e);return this.renderEngine.addRectToRenderQueue(s,h,1,a),this.renderEngine.addTextToRenderQueue(r,h,1,a),this.interactionsEngine.addHitRegion("timestamp",i,h,1,a,this.renderEngine.blockHeight),h+a},0)}postRender(){this.marks.forEach(e=>{const{timestamp:i,color:n}=e,s=this.renderEngine.timeToPosition(i);this.renderEngine.parent.setCtxValue("strokeStyle",n),this.renderEngine.parent.setCtxValue("lineWidth",1),this.renderEngine.parent.callCtx("setLineDash",[8,7]),this.renderEngine.parent.ctx.beginPath(),this.renderEngine.parent.ctx.moveTo(s,this.renderEngine.position),this.renderEngine.parent.ctx.lineTo(s,this.renderEngine.parent.height),this.renderEngine.parent.ctx.stroke()})}renderTooltip(){if(this.hoveredRegion&&this.hoveredRegion.type==="timestamp"){if(this.renderEngine.options.tooltip===!1)return!0;if(typeof this.renderEngine.options.tooltip=="function")this.renderEngine.options.tooltip(this.hoveredRegion,this.renderEngine,this.interactionsEngine.getGlobalMouse());else{const{data:{fullName:e,timestamp:i}}=this.hoveredRegion,n=this.renderEngine.getAccuracy()+2,s=`${e}`,r=`${i.toFixed(n)} ${this.renderEngine.timeUnits}`;this.renderEngine.renderTooltipFromData([{text:s},{text:r}],this.interactionsEngine.getGlobalMouse())}return!0}return!1}}const Dn=85,it={color:"rgba(90,90,90,0.20)"};class zt{constructor(e){this.styles=it,this.timeUnits="ms",this.start=0,this.end=0,this.accuracy=0,this.delta=0,this.setSettings(e)}setDefaultRenderEngine(e){this.renderEngine=e,this.timeUnits=this.renderEngine.getTimeUnits()}setSettings({styles:e}){this.styles=G(it,e),this.renderEngine&&(this.timeUnits=this.renderEngine.getTimeUnits())}recalc(){const e=this.renderEngine.max-this.renderEngine.min,i=this.renderEngine.width/Dn,n=e/i,s=this.renderEngine.getRealView(),r=s/(e||1);this.delta=n/Math.pow(2,Math.floor(Math.log2(1/r))),this.start=Math.floor((this.renderEngine.positionX-this.renderEngine.min)/this.delta),this.end=Math.ceil(s/this.delta)+this.start,this.accuracy=this.calcNumberFix()}calcNumberFix(){var e;const i=(this.delta/2).toString();if(i.includes("e"))return Number((e=i.match(/\d+$/))===null||e===void 0?void 0:e[0]);const n=i.match(/(0\.0*)/);return n?n[0].length-1:0}getTimelineAccuracy(){return this.accuracy}forEachTime(e){for(let i=this.start;i<=this.end;i++){const n=i*this.delta+this.renderEngine.min,s=this.renderEngine.timeToPosition(Number(n.toFixed(this.accuracy)));e(s,n)}}renderLines(e,i,n=this.renderEngine){n.setCtxValue("fillStyle",this.styles.color),this.forEachTime(s=>{n.fillRect(s,e,1,i)})}renderTimes(e=this.renderEngine){e.setCtxValue("fillStyle",e.styles.fontColor),e.setCtxFont(e.styles.font),this.forEachTime((i,n)=>{e.fillText(n.toFixed(this.accuracy)+this.timeUnits,i+e.blockPaddingLeftRight,e.charHeight)})}}function Re(t,e,i,n){return t.length?t.reduce((s,{[e]:r})=>i(s,r),t[0][e]):n}const $t=t=>t.items.map(({name:e,intervals:i,timing:n,meta:s},r)=>{const a=(typeof i=="string"?t.intervals[i]:i).map(({start:g,end:u,color:b,type:y,name:p})=>({start:typeof g=="string"?n[g]:g,end:typeof u=="string"?n[u]:u,color:b,name:p,type:y})).filter(({start:g,end:u})=>typeof g=="number"&&typeof u=="number"),l=a.filter(({type:g})=>g==="block"),h=Re(l,"start",Math.min,0),c=Re(l,"end",Math.max,0),d=Re(a,"start",Math.min,0),v=Re(a,"end",Math.max,0);return{intervals:a,textBlock:{start:h,end:c},name:e,timing:n,min:d,max:v,index:r,meta:s}}).filter(({intervals:e})=>e.length).sort((e,i)=>e.min-i.min||i.max-e.max),zn=(t,e,i,n)=>n-(t-e)*i,$n={fillColor:"rgba(0, 0, 0, 0.1)",lineWidth:1,lineDash:[],lineColor:"rgba(0, 0, 0, 0.5)",type:"smooth"},It=t=>{const e=[],i=t.map(o=>{var a;return{group:o.units&&!o.group?o.units:"default",...o,style:{lineWidth:1,fillColor:"rgba(0, 0, 0, 0.15)",lineColor:"rgba(0, 0, 0, 0.20)",lineDash:[],type:"smooth",...(a=o.style)!==null&&a!==void 0?a:{}}}}),n=i.reduce((o,{points:a,group:l,min:h,max:c},d)=>(o[l]||(o[l]={min:h??a[0][1],max:c??a[0][1]}),e[d]={start:a[0][0],end:V(a)[0]},a.forEach(([v,g])=>{h===void 0&&(o[l].min=Math.min(o[l].min,g)),c===void 0&&(o[l].max=Math.max(o[l].max,g)),e[d].start=Math.min(e[d].start,v),e[d].end=Math.max(e[d].end,v)}),o),{}),s=Math.min(...e.map(({start:o})=>o)),r=Math.max(...e.map(({end:o})=>o));return{summary:n,total:{min:s,max:r},timeseries:i,timeboxes:e}},Ot=(t,e,i)=>{var n,s;return e.dynamicMinMax?t.reduce((r,[,o])=>(r.min=Math.min(r.min,o),r.max=Math.max(r.max,o),r),{min:(n=e.min)!==null&&n!==void 0?n:1/0,max:(s=e.max)!==null&&s!==void 0?s:-1/0}):e.group?i[e.group]:{min:-1/0,max:1/0}},Nt=(t,{timeseries:e})=>{const i=e.reduce((n,{points:s,units:r,name:o,group:a})=>{const l=In(s,t),c=a!==r&&a!=="default"?a:"default";let d="";return l&&(o&&(d+=o+": "),d+=l[1].toFixed(2),r&&(d+=r)),n[c]||(n[c]=[]),n[c].push(d),n},{});return Object.entries(i).reduce((n,[s,r])=>(s!=="default"&&n.push({text:s,color:"black"}),r.forEach(o=>{n.push({text:o})}),n),[])},_e=({engine:t,points:e,style:i,min:n,max:s})=>{const r={...$n,...i??{}};t.setCtxValue("strokeStyle",r.lineColor),t.setCtxValue("fillStyle",r.fillColor),t.setCtxValue("lineWidth",r.lineWidth),t.callCtx("setLineDash",r.lineDash),t.ctx.beginPath();const o=(t.height-t.charHeight-4)/(s-n);if(e.length>1){const a=e.map(([l,h])=>[t.timeToPosition(l),zn(h,n,o,t.height)]);if(t.ctx.moveTo(a[0][0],t.height),t.ctx.lineTo(a[0][0],a[0][1]),r.type==="smooth"||!r.type){for(let c=1;c{if(t[0][0]>=e)return i?t[0]:null;if(V(t)[0]<=e)return i?V(t):null;if(t.length<=1)return t[0];let n=0,s=t.length-1;for(;n<=s;){const r=Math.ceil((s+n)/2);if(e>=t[r-1][0]&&e<=t[r][0]){const o=Math.abs(e-t[r-1][0])this.timeout=void 0,300),this.leftKnobMoving=!1,this.rightKnobMoving=!1,this.interactionsEngine.clearCursor(),this.selectingActive&&!n&&this.applyChanges(),this.selectingActive=!1,n&&!s){const r=this.getRightKnobPosition(),o=this.getLeftKnobPosition();i.x>r?this.setRightKnobPosition(i.x):i.x>o&&i.xr-i.x?this.setRightKnobPosition(i.x):this.setLeftKnobPosition(i.x):this.setLeftKnobPosition(i.x),this.applyChanges()}s&&(this.renderEngine.parent.setZoom(this.renderEngine.getInitialZoom()),this.renderEngine.parent.setPositionX(this.renderEngine.min),this.renderEngine.parent.render())}handleMouseMove(e,i){this.leftKnobMoving&&(this.setLeftKnobPosition(i.x),this.applyChanges()),this.rightKnobMoving&&(this.setRightKnobPosition(i.x),this.applyChanges()),this.selectingActive&&(this.startSelectingPosition>=i.x?(this.setLeftKnobPosition(i.x),this.setRightKnobPosition(this.startSelectingPosition)):(this.setRightKnobPosition(i.x),this.setLeftKnobPosition(this.startSelectingPosition)),this.renderEngine.render())}postInit(){this.offscreenRenderEngine=this.renderEngine.makeChild(),this.offscreenRenderEngine.setSettingsOverrides({styles:this.styles}),this.timeGrid=new zt({styles:this.renderEngine.parent.timeGrid.styles}),this.timeGrid.setDefaultRenderEngine(this.offscreenRenderEngine),this.offscreenRenderEngine.on("resize",()=>{this.offscreenRenderEngine.setZoom(this.renderEngine.getInitialZoom()),this.offscreenRender()}),this.offscreenRenderEngine.on("min-max-change",()=>this.shouldRender=!0),this.setData({flameChartNodes:this.flameChartNodes,waterfall:this.waterfall,timeseries:this.timeseries})}setLeftKnobPosition(e){const i=this.getRightKnobPosition();if(ei+1){const n=this.renderEngine.getRealView(),s=this.renderEngine.positionX+n-(this.offscreenRenderEngine.pixelToTime(e)+this.renderEngine.min),r=this.renderEngine.width/(n-s);this.renderEngine.setZoom(r)}}getLeftKnobPosition(){return(this.renderEngine.positionX-this.renderEngine.min)*this.renderEngine.getInitialZoom()}getRightKnobPosition(){return(this.renderEngine.positionX-this.renderEngine.min+this.renderEngine.getRealView())*this.renderEngine.getInitialZoom()}applyChanges(){this.renderEngine.parent.setPositionX(this.renderEngine.positionX),this.renderEngine.parent.setZoom(this.renderEngine.zoom),this.renderEngine.parent.render()}setSettings({styles:e}={styles:this.styles}){this.styles=G(st,e),this.height=this.styles.height,this.offscreenRenderEngine&&(this.offscreenRenderEngine.setSettingsOverrides({styles:this.styles}),this.timeGrid.setSettings({styles:this.renderEngine.parent.timeGrid.styles})),this.shouldRender=!0}makeFlameChartDots(){if(this.flameChartNodes){const e=[],i=Xt(this.flameChartNodes),{min:n,max:s}=Wt(i);this.min=n,this.max=s,this.clusters=Yt(i,()=>!0),this.actualClusters=Ie(this.clusters,this.renderEngine.zoom,this.min,this.max,nt,1/0),this.actualClusterizedFlatTree=Dt(this.actualClusters,this.renderEngine.zoom,this.min,this.max,nt,1/0).sort((a,l)=>a.start-l.start),this.actualClusterizedFlatTree.forEach(({start:a,end:l})=>{e.push({time:a,type:"start"},{time:l,type:"end"})}),e.sort((a,l)=>a.time-l.time);const{dots:r,maxLevel:o}=this.makeRenderDots(e);this.flameChartDots=r,this.flameChartMaxLevel=o}}makeRenderDots(e){const i=[];let n=0,s=0;return e.forEach(({type:r,time:o})=>{(r==="start"||r==="end")&&i.push([o,n]),r==="start"?n++:n--,s=Math.max(s,n),i.push([o,n])}),{dots:i,maxLevel:s}}makeWaterfallDots(){if(this.waterfall){const e=$t(this.waterfall),n=Object.entries(e.reduce((r,{intervals:o})=>(o.forEach(a=>{r[a.color]||(r[a.color]=[]),r[a.color].push(a)}),r),{})).map(([r,o])=>{const a=[];return o.forEach(({start:l,end:h})=>{a.push({type:"start",time:l}),a.push({type:"end",time:h})}),a.sort((l,h)=>l.time-h.time),{color:r,points:a}});let s=0;this.waterfallDots=n.map(({color:r,points:o})=>{const{dots:a,maxLevel:l}=this.makeRenderDots(o);return s=Math.max(s,l),{color:r,dots:a}}),this.waterfallMaxLevel=s}}prepareTimeseries(){var e;!((e=this.timeseries)===null||e===void 0)&&e.length?this.preparedTimeseries=It(this.timeseries):this.preparedTimeseries=void 0}setData({flameChartNodes:e,waterfall:i,timeseries:n}){this.flameChartNodes=e,this.waterfall=i,this.timeseries=n,this.makeFlameChartDots(),this.makeWaterfallDots(),this.prepareTimeseries(),this.offscreenRender()}setTimeseries(e){this.timeseries=e,this.prepareTimeseries(),this.offscreenRender()}setFlameChartNodes(e){this.flameChartNodes=e,this.makeFlameChartDots(),this.offscreenRender()}setWaterfall(e){this.waterfall=e,this.makeWaterfallDots(),this.offscreenRender()}offscreenRender(){const e=this.offscreenRenderEngine.getInitialZoom();if(this.offscreenRenderEngine.setZoom(e),this.offscreenRenderEngine.setPositionX(this.offscreenRenderEngine.min),this.offscreenRenderEngine.clear(),this.timeGrid.recalc(),this.timeGrid.renderLines(0,this.offscreenRenderEngine.height),this.timeGrid.renderTimes(),_e({engine:this.offscreenRenderEngine,points:this.flameChartDots,min:0,max:this.flameChartMaxLevel,style:{lineColor:this.styles.graphStrokeColor,fillColor:this.styles.graphFillColor,type:this.styles.flameChartGraphType}}),this.waterfallDots.forEach(({color:i,dots:n})=>{const s=new Te(i);_e({engine:this.offscreenRenderEngine,points:n,min:0,max:this.waterfallMaxLevel,style:{lineColor:s.alpha(this.styles.waterfallStrokeOpacity).rgb().toString(),fillColor:s.alpha(this.styles.waterfallFillOpacity).rgb().toString(),type:this.styles.waterfallGraphType}})}),this.preparedTimeseries){const{summary:i,timeseries:n}=this.preparedTimeseries;n.forEach(s=>{const r=Ot(s.points,s,i);_e({engine:this.offscreenRenderEngine,points:s.points,min:r.min,max:r.max,style:s.style})})}this.offscreenRenderEngine.setCtxValue("fillStyle",this.styles.bottomLineColor),this.offscreenRenderEngine.ctx.fillRect(0,this.height-1,this.offscreenRenderEngine.width,1)}renderTimeframe(){const e=this.renderEngine.positionX-this.renderEngine.min,i=e*this.renderEngine.getInitialZoom(),n=(e+this.renderEngine.getRealView())*this.renderEngine.getInitialZoom(),s=i-this.styles.knobSize/2,r=n-this.styles.knobSize/2,o=this.renderEngine.height/3;this.renderEngine.setCtxValue("fillStyle",this.styles.overlayColor),this.renderEngine.fillRect(0,0,i,this.renderEngine.height),this.renderEngine.fillRect(n,0,this.renderEngine.width-n,this.renderEngine.height),this.renderEngine.setCtxValue("fillStyle",this.styles.overlayColor),this.renderEngine.fillRect(i-1,0,1,this.renderEngine.height),this.renderEngine.fillRect(n+1,0,1,this.renderEngine.height),this.renderEngine.setCtxValue("fillStyle",this.styles.knobColor),this.renderEngine.fillRect(s,0,this.styles.knobSize,o),this.renderEngine.fillRect(r,0,this.styles.knobSize,o),this.renderEngine.renderStroke(this.styles.knobStrokeColor,s,0,this.styles.knobSize,o),this.renderEngine.renderStroke(this.styles.knobStrokeColor,r,0,this.styles.knobSize,o),this.interactionsEngine.addHitRegion("timeframeKnob","left",s,0,this.styles.knobSize,o,"ew-resize"),this.interactionsEngine.addHitRegion("timeframeKnob","right",r,0,this.styles.knobSize,o,"ew-resize"),this.interactionsEngine.addHitRegion("timeframeArea",null,0,0,this.renderEngine.width,this.renderEngine.height,"text")}renderTooltip(){if(this.hoveredRegion){const i=this.interactionsEngine.getMouse().x/this.renderEngine.getInitialZoom()+this.renderEngine.min,n=`${i.toFixed(this.renderEngine.getAccuracy()+2)} ${this.renderEngine.timeUnits}`,s=this.preparedTimeseries?Nt(i,this.preparedTimeseries):[];return this.renderEngine.renderTooltipFromData([{text:n},...s],this.interactionsEngine.getGlobalMouse()),!0}return!1}render(){return this.shouldRender&&(this.shouldRender=!1,this.offscreenRender()),this.renderEngine.copy(this.offscreenRenderEngine),this.renderTimeframe(),this.interactionsEngine.addHitRegion("timeframe",null,0,0,this.renderEngine.width,this.height),!0}}const Le={defaultHeight:68};class Nn extends ie{constructor({data:e,name:i="waterfallPlugin",settings:n}){super(i),this.styles=Le,this.height=Le.defaultHeight,this.data=[],this.positionY=0,this.hoveredRegion=null,this.selectedRegion=null,this.initialData=[],this.setData(e),this.setSettings(n)}init(e,i){super.init(e,i),this.interactionsEngine.on("change-position",this.handlePositionChange.bind(this)),this.interactionsEngine.on("hover",this.handleHover.bind(this)),this.interactionsEngine.on("select",this.handleSelect.bind(this)),this.interactionsEngine.on("up",this.handleMouseUp.bind(this))}handlePositionChange({deltaX:e,deltaY:i}){const n=this.positionY,s=this.renderEngine.parent.positionX;this.interactionsEngine.setCursor("grabbing"),this.positionY+i>=0?this.setPositionY(this.positionY+i):this.setPositionY(0),this.renderEngine.tryToChangePosition(e),(s!==this.renderEngine.parent.positionX||n!==this.positionY)&&this.renderEngine.parent.render()}handleMouseUp(){this.interactionsEngine.clearCursor()}handleHover(e){this.hoveredRegion=e}handleSelect(e){this.selectedRegion!==e&&(this.selectedRegion=e,this.emit("select",{node:e!=null&&e.data?this.initialData[e.data]:null,type:"waterfall-node"}),this.renderEngine.render())}setPositionY(e){this.positionY=e}setSettings({styles:e}){this.styles=G(Le,e),this.height=this.styles.defaultHeight,this.positionY=0}setData(e){this.positionY=0,this.initialData=e.items,this.data=$t(e),e.items.length&&(this.min=this.data.reduce((i,{min:n})=>Math.min(i,n),this.data[0].min),this.max=this.data.reduce((i,{max:n})=>Math.max(i,n),this.data[0].max)),this.renderEngine&&(this.renderEngine.recalcMinMax(),this.renderEngine.resetParentView())}calcRect(e,i,n){const s=i*this.renderEngine.zoom;return{x:this.renderEngine.timeToPosition(e),w:n?s<=.1?.1:s>=3?s-1:s-s/3:s}}renderTooltip(){if(this.hoveredRegion){if(this.renderEngine.options.tooltip===!1)return!0;if(typeof this.renderEngine.options.tooltip=="function"){const{data:e}=this.hoveredRegion,i={...this.hoveredRegion};i.data=this.data.find(({index:n})=>e===n),this.renderEngine.options.tooltip(i,this.renderEngine,this.interactionsEngine.getGlobalMouse())}else{const{data:e}=this.hoveredRegion,i=this.data.find(({index:n})=>e===n);if(i){const{name:n,intervals:s,timing:r,meta:o=[]}=i,a=this.renderEngine.getTimeUnits(),l=this.renderEngine.getAccuracy()+2,h={text:`${n}`},c={text:"intervals",color:this.renderEngine.styles.tooltipHeaderFontColor},d=s.map(({name:y,start:p,end:f})=>({text:`${y}: ${(f-p).toFixed(l)} ${a}`})),v={text:"timing",color:this.renderEngine.styles.tooltipHeaderFontColor},g=Object.entries(r).filter(([,y])=>typeof y=="number").map(([y,p])=>({text:`${y}: ${p.toFixed(l)} ${a}`})),u={text:"meta",color:this.renderEngine.styles.tooltipHeaderFontColor},b=o?o.map(({name:y,value:p,color:f})=>({text:`${y}: ${p}`,color:f})):[];this.renderEngine.renderTooltipFromData([h,c,...d,v,...g,...b.length?[u,...b]:[]],this.interactionsEngine.getGlobalMouse())}}return!0}return!1}render(){const e=this.renderEngine.positionX+this.renderEngine.getRealView(),i=this.renderEngine.positionX,n=this.renderEngine.blockHeight+1,s=[];this.data.filter(({min:o,max:a})=>!(ea&&e>o)).map(o=>{for(;s.length&&o.min-V(s).max>0;)s.pop();const a=s.length,l={...o,level:a};return s.push(o),l}).forEach(({name:o,intervals:a,textBlock:l,level:h,index:c})=>{const d=h*n-this.positionY;if(d+n>=0&&d-n<=this.renderEngine.height){const v=this.renderEngine.timeToPosition(l.start),g=this.renderEngine.timeToPosition(l.end);this.renderEngine.addTextToRenderQueue(o,v,d,g-v);const{x:u,w:b}=a.reduce((y,{color:p,start:f,end:x,type:T},C)=>{const{x:R,w:O}=this.calcRect(f,x-f,C===a.length-1);return T==="block"&&this.renderEngine.addRectToRenderQueue(p,R,d,O),{x:y.x===null?R:y.x,w:O+y.w}},{x:null,w:0});this.selectedRegion&&this.selectedRegion.type==="waterfall-node"&&this.selectedRegion.data===c&&this.renderEngine.addStrokeToRenderQueue("green",u??0,d,b,this.renderEngine.blockHeight),this.interactionsEngine.addHitRegion("waterfall-node",c,u??0,d,b,this.renderEngine.blockHeight)}},0)}}const rt={height:16,color:"rgb(202,202,202, 0.25)",strokeColor:"rgb(138,138,138, 0.50)",dotsColor:"rgb(97,97,97)",fontColor:"black",font:"10px sans-serif",triangleWidth:10,triangleHeight:7,triangleColor:"black",leftPadding:10};class ot extends ie{constructor(e,i){super("togglePlugin"),this.styles=rt,this.height=0,this.resizeActive=!1,this.resizeStartHeight=0,this.resizeStartPosition=0,this.setSettings(i),this.title=e}setSettings({styles:e}={}){this.styles=G(rt,e),this.height=this.styles.height+1}init(e,i){super.init(e,i),this.getNextEngine().setFlexible(),this.interactionsEngine.on("click",s=>{if(s&&s.type==="toggle"&&s.data===this.renderEngine.id){const r=this.getNextEngine();r.collapsed?r.expand():r.collapse(),this.renderEngine.parent.recalcChildrenSizes(),this.renderEngine.parent.render()}}),this.interactionsEngine.on("down",s=>{if(s&&s.type==="knob-resize"&&s.data===this.renderEngine.id){const r=this.getPrevEngine();this.interactionsEngine.setCursor("row-resize"),this.resizeActive=!0,this.resizeStartHeight=r.height,this.resizeStartPosition=this.interactionsEngine.getGlobalMouse().y}}),this.interactionsEngine.parent.on("move",()=>{if(this.resizeActive){const s=this.getPrevEngine(),r=this.interactionsEngine.getGlobalMouse();if(s.flexible){const o=this.resizeStartHeight-(this.resizeStartPosition-r.y);o<=0?(s.collapse(),s.resize({height:0})):(s.collapsed&&s.expand(),s.resize({height:o})),this.renderEngine.parent.render()}}}),this.interactionsEngine.parent.on("up",()=>{this.interactionsEngine.clearCursor(),this.resizeActive=!1})}getPrevEngine(){var e;const i=((e=this.renderEngine.id)!==null&&e!==void 0?e:0)-1;return this.renderEngine.parent.children[i]}getNextEngine(){var e;const i=((e=this.renderEngine.id)!==null&&e!==void 0?e:0)+1;return this.renderEngine.parent.children[i]}render(){const e=this.getNextEngine(),i=this.getPrevEngine(),n=this.styles.leftPadding+this.styles.triangleWidth,s=this.renderEngine.width/2,r=this.styles.height/2;this.renderEngine.setCtxFont(this.styles.font),this.renderEngine.setCtxValue("fillStyle",this.styles.color),this.renderEngine.setCtxValue("strokeStyle",this.styles.strokeColor),this.renderEngine.fillRect(0,0,this.renderEngine.width,this.styles.height),this.renderEngine.setCtxValue("fillStyle",this.styles.fontColor),this.renderEngine.addTextToRenderQueue(this.title,n,0,this.renderEngine.width),this.renderEngine.renderTriangle(this.styles.triangleColor,this.styles.leftPadding,this.styles.height/2,this.styles.triangleWidth,this.styles.triangleHeight,e.collapsed?"right":"bottom");const{width:o}=this.renderEngine.ctx.measureText(this.title),a=o+n;this.interactionsEngine.addHitRegion("toggle",this.renderEngine.id,0,0,a,this.styles.height,"pointer"),i.flexible&&(this.renderEngine.renderCircle(this.styles.dotsColor,s,r,1.5),this.renderEngine.renderCircle(this.styles.dotsColor,s-10,r,1.5),this.renderEngine.renderCircle(this.styles.dotsColor,s+10,r,1.5),this.interactionsEngine.addHitRegion("knob-resize",this.renderEngine.id,a,0,this.renderEngine.width-a,this.styles.height,"row-resize"))}}const at=`QWERTYUIOPASDFGHJKLZXCVBNMqwertyuiopasdfghjklzxcvbnm1234567890_-+()[]{}\\/|'";:.,?~`,Un=()=>{const t=navigator.userAgent.toLowerCase();return t.includes("safari")?!t.includes("chrome"):!1};function Gn(t){const e=t,i=window.devicePixelRatio||1,n=e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1;return i/n}const lt={tooltip:void 0,timeUnits:"ms"},ht={blockHeight:16,blockPaddingLeftRight:4,backgroundColor:"white",font:"10px sans-serif",fontColor:"black",tooltipHeaderFontColor:"black",tooltipBodyFontColor:"#688f45",tooltipBackgroundColor:"white",tooltipShadowColor:"black",tooltipShadowBlur:6,tooltipShadowOffsetX:0,tooltipShadowOffsetY:0,headerHeight:14,headerColor:"rgba(112, 112, 112, 0.25)",headerStrokeColor:"rgba(112, 112, 112, 0.5)",headerTitleLeftPadding:16};class Ut extends fe.EventEmitter{constructor(e,i){super(),this.options=lt,this.timeUnits="ms",this.styles=ht,this.blockPaddingLeftRight=0,this.blockHeight=0,this.blockPaddingTopBottom=0,this.charHeight=0,this.placeholderWidth=0,this.avgCharWidth=0,this.minTextWidth=0,this.textRenderQueue=[],this.strokeRenderQueue=[],this.rectRenderQueue={},this.zoom=0,this.positionX=0,this.min=0,this.max=0,this.ctxCachedSettings={},this.ctxCachedCalls={},this.setCtxValue=(n,s)=>{this.ctxCachedSettings[n]!==s&&(this.ctx[n]=s,this.ctxCachedSettings[n]=s)},this.callCtx=(n,s)=>{(!this.ctxCachedCalls[n]||this.ctxCachedCalls[n]!==s)&&(this.ctx[n](s),this.ctxCachedCalls[n]=s)},this.width=e.width,this.height=e.height,this.isSafari=Un(),this.canvas=e,this.ctx=e.getContext("2d",{alpha:!1}),this.pixelRatio=Gn(this.ctx),this.setSettings(i),this.applyCanvasSize(),this.reset()}setSettings({options:e,styles:i}){this.options=G(lt,e),this.styles=G(ht,i),this.timeUnits=this.options.timeUnits,this.blockHeight=this.styles.blockHeight,this.ctx.font=this.styles.font;const{actualBoundingBoxAscent:n,actualBoundingBoxDescent:s,width:r}=this.ctx.measureText(at),{width:o}=this.ctx.measureText("…"),a=n+s;this.blockPaddingLeftRight=this.styles.blockPaddingLeftRight,this.blockPaddingTopBottom=Math.ceil((this.blockHeight-a)/2),this.charHeight=a+1,this.placeholderWidth=o,this.avgCharWidth=r/at.length,this.minTextWidth=this.avgCharWidth+this.placeholderWidth}reset(){this.textRenderQueue=[],this.strokeRenderQueue=[],this.rectRenderQueue={},this.ctxCachedCalls={},this.ctxCachedSettings={}}setCtxShadow(e){var i,n;this.setCtxValue("shadowBlur",e.blur),this.setCtxValue("shadowColor",e.color),this.setCtxValue("shadowOffsetY",(i=e.offsetY)!==null&&i!==void 0?i:0),this.setCtxValue("shadowOffsetX",(n=e.offsetX)!==null&&n!==void 0?n:0)}setCtxFont(e){e&&this.ctx.font!==e&&(this.ctx.font=e)}fillRect(e,i,n,s){this.ctx.fillRect(e,i,n,s)}fillText(e,i,n){this.ctx.fillText(e,i,n)}renderBlock(e,i,n,s){this.setCtxValue("fillStyle",e),this.ctx.fillRect(i,n,s,this.blockHeight)}renderStroke(e,i,n,s,r){this.setCtxValue("strokeStyle",e),this.ctx.setLineDash([]),this.ctx.strokeRect(i,n,s,r)}clear(e=this.width,i=this.height,n=0,s=0){this.setCtxValue("fillStyle",this.styles.backgroundColor),this.ctx.clearRect(n,s,e,i-1),this.ctx.fillRect(n,s,e,i),this.ctxCachedCalls={},this.ctxCachedSettings={},this.emit("clear")}timeToPosition(e){return e*this.zoom-this.positionX*this.zoom}pixelToTime(e){return e/this.zoom}setZoom(e){this.zoom=e}setPositionX(e){const i=this.positionX;return this.positionX=e,e-i}addRectToRenderQueue(e,i,n,s){this.rectRenderQueue[e]||(this.rectRenderQueue[e]=[]),this.rectRenderQueue[e].push({x:i,y:n,w:s})}addTextToRenderQueue(e,i,n,s){if(e){const r=s-(this.blockPaddingLeftRight*2-(i<0?i:0));r>0&&this.textRenderQueue.push({text:e,x:i,y:n,w:s,textMaxWidth:r})}}addStrokeToRenderQueue(e,i,n,s,r){this.strokeRenderQueue.push({color:e,x:i,y:n,w:s,h:r})}resolveRectRenderQueue(){Object.entries(this.rectRenderQueue).forEach(([e,i])=>{this.setCtxValue("fillStyle",e),i.forEach(({x:n,y:s,w:r})=>this.renderBlock(e,n,s,r))}),this.rectRenderQueue={}}resolveTextRenderQueue(){this.setCtxValue("fillStyle",this.styles.fontColor),this.textRenderQueue.forEach(({text:e,x:i,y:n,textMaxWidth:s})=>{const{width:r}=this.ctx.measureText(e);if(r>s){const o=r/e.length,l=(Math.floor((s-this.placeholderWidth)/o)-1)/2;l>0?e=e.slice(0,Math.ceil(l))+"…"+e.slice(e.length-Math.floor(l),e.length):e=""}e&&this.ctx.fillText(e,(i<0?0:i)+this.blockPaddingLeftRight,n+this.blockHeight-this.blockPaddingTopBottom)}),this.textRenderQueue=[]}resolveStrokeRenderQueue(){this.strokeRenderQueue.forEach(({color:e,x:i,y:n,w:s,h:r})=>{this.renderStroke(e,i,n,s,r)}),this.strokeRenderQueue=[]}setMinMax(e,i){const n=e!==this.min||i!==this.max;this.min=e,this.max=i,n&&this.emit("min-max-change",e,i)}getTimeUnits(){return this.timeUnits}tryToChangePosition(e){const i=this.getRealView();this.positionX+e+i<=this.max&&this.positionX+e>=this.min?this.setPositionX(this.positionX+e):this.positionX+e<=this.min?this.setPositionX(this.min):this.positionX+e+i>=this.max&&this.setPositionX(this.max-i)}getInitialZoom(){return this.max-this.min>0?this.width/(this.max-this.min):1}getRealView(){return this.width/this.zoom}resetView(){this.setZoom(this.getInitialZoom()),this.setPositionX(this.min)}resize(e,i){const n=typeof e=="number"&&this.width!==e,s=typeof i=="number"&&this.height!==i;return n||s?(this.width=n?e:this.width,this.height=s?i:this.height,this.applyCanvasSize(),this.emit("resize",{width:this.width,height:this.height}),s):!1}applyCanvasSize(){this.canvas.style.backgroundColor="white",this.canvas.style.overflow="hidden",this.canvas.style.width=this.width+"px",this.canvas.style.height=this.height+"px",this.canvas.width=this.width*this.pixelRatio,this.canvas.height=this.height*this.pixelRatio,this.ctx.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0),this.ctx.font=this.styles.font}copy(e){const i=this.isSafari?1:e.pixelRatio;e.canvas.height&&this.ctx.drawImage(e.canvas,0,0,e.canvas.width*i,e.canvas.height*i,0,e.position||0,e.width*i,e.height*i)}renderTooltipFromData(e,i){const n=i.x+10,s=i.y+10,o=e.map(({text:a})=>a).map(a=>this.ctx.measureText(a)).reduce((a,{width:l})=>Math.max(a,l),0)+this.blockPaddingLeftRight*2;this.setCtxShadow({color:this.styles.tooltipShadowColor,blur:this.styles.tooltipShadowBlur,offsetX:this.styles.tooltipShadowOffsetX,offsetY:this.styles.tooltipShadowOffsetY}),this.setCtxValue("fillStyle",this.styles.tooltipBackgroundColor),this.ctx.fillRect(n,s,o+this.blockPaddingLeftRight*2,(this.charHeight+2)*e.length+this.blockPaddingLeftRight*2),this.setCtxShadow({color:"transparent",blur:0}),e.forEach(({text:a,color:l},h)=>{l?this.setCtxValue("fillStyle",l):h?this.setCtxValue("fillStyle",this.styles.tooltipBodyFontColor):this.setCtxValue("fillStyle",this.styles.tooltipHeaderFontColor),this.ctx.fillText(a,n+this.blockPaddingLeftRight,s+this.blockHeight-this.blockPaddingTopBottom+(this.charHeight+2)*h)})}renderShape(e,i,n,s){this.setCtxValue("fillStyle",e),this.ctx.beginPath(),this.ctx.moveTo(i[0].x+n,i[0].y+s),i.slice(1).forEach(({x:r,y:o})=>this.ctx.lineTo(r+n,o+s)),this.ctx.closePath(),this.ctx.fill()}renderTriangle(e,i,n,s,r,o){const a=r/2,l=s/2;let h;switch(o){case"top":h=[{x:0-l,y:a},{x:0,y:0-a},{x:l,y:a}];break;case"right":h=[{x:0-a,y:0-l},{x:0-a,y:l},{x:a,y:0}];break;case"bottom":h=[{x:0-l,y:0-a},{x:l,y:0-a},{x:0,y:a}];break;case"left":h=[{x:a,y:0-l},{x:a,y:l},{x:0-a,y:0}];break}this.renderShape(e,h,i,n)}renderCircle(e,i,n,s){this.ctx.beginPath(),this.ctx.arc(i,n,s,0,2*Math.PI,!1),this.setCtxValue("fillStyle",e),this.ctx.fill()}}class Oe extends Ut{constructor({width:e,height:i,parent:n,id:s}){const r=document.createElement("canvas");r.width=e,r.height=i,super(r,{options:n.options,styles:n.styles}),this.flexible=!1,this.collapsed=!1,this.position=0,this.width=e,this.height=i,this.parent=n,this.id=s,this.children=[],this.applyCanvasSize()}makeChild(){const e=new Oe({width:this.width,height:this.height,parent:this.parent,id:void 0});return this.children.push(e),e.setMinMax(this.min,this.max),e.resetView(),e}setFlexible(){this.flexible=!0}collapse(){this.collapsed=!0,this.clear()}expand(){this.collapsed=!1}setSettingsOverrides(e){this.setSettings({styles:G(this.styles,e.styles),options:G(this.options,e.options)}),this.children.forEach(i=>i.setSettingsOverrides(e))}resize({width:e,height:i,position:n},s){const r=super.resize(e,i);!s&&r&&this.parent.recalcChildrenSizes(),typeof n=="number"&&(this.position=n),this.children.forEach(o=>o.resize({width:e,height:i,position:n}))}setMinMax(e,i){super.setMinMax(e,i),this.children.forEach(n=>n.setMinMax(e,i))}setSettings(e){super.setSettings(e),this.children&&this.children.forEach(i=>i.setSettings(e))}tryToChangePosition(e){this.parent.tryToChangePosition(e)}recalcMinMax(){this.parent.calcMinMax()}getTimeUnits(){return this.parent.getTimeUnits()}getAccuracy(){return this.parent.timeGrid.accuracy}renderTimeGrid(){this.parent.timeGrid.renderLines(0,this.height,this)}renderTimeGridTimes(){this.parent.timeGrid.renderTimes(this)}standardRender(){this.resolveRectRenderQueue(),this.resolveTextRenderQueue(),this.resolveStrokeRenderQueue(),this.renderTimeGrid()}renderTooltipFromData(e,i){this.parent.renderTooltipFromData(e,i)}resetParentView(){this.parent.resetView(),this.parent.render()}render(){this.parent.partialRender(this.id)}}const Bn=6;class Vn extends Ut{constructor({canvas:e,settings:i,timeGrid:n,plugins:s}){super(e,i),this.freeSpace=0,this.lastPartialAnimationFrame=null,this.lastGlobalAnimationFrame=null,this.plugins=s,this.children=[],this.requestedRenders=[],this.timeGrid=n,this.timeGrid.setDefaultRenderEngine(this)}makeInstance(){const e=new Oe({width:this.width,height:0,id:this.children.length,parent:this});return e.setMinMax(this.min,this.max),e.resetView(),this.children.push(e),e}calcMinMax(){const e=this.plugins.map(({min:n})=>n).filter(Je).reduce((n,s)=>Math.min(n,s)),i=this.plugins.map(({max:n})=>n).filter(Je).reduce((n,s)=>Math.max(n,s));this.setMinMax(e,i)}calcTimeGrid(){this.timeGrid.recalc()}setMinMax(e,i){super.setMinMax(e,i),this.children.forEach(n=>n.setMinMax(e,i))}setSettings(e){super.setSettings(e),this.children&&(this.children.forEach(i=>i.setSettings(e)),this.recalcChildrenSizes())}resize(e,i){const n=this.width;return super.resize(e,i),this.recalcChildrenSizes(),this.getInitialZoom()>this.zoom?this.resetView():this.positionX>this.min&&this.tryToChangePosition(-this.pixelToTime((e-n)/2)),!0}recalcChildrenSizes(){const e=this.getChildrenSizes();this.freeSpace=e.reduce((i,{height:n})=>i-n,this.height),this.children.forEach((i,n)=>{i.resize(e[n],!0)})}getChildrenSizes(){const i=this.children.map((o,a)=>a).map(o=>{const a=this.plugins[o];return this.children[o].flexible&&a.height?"flexibleStatic":a.height?"static":"flexibleGrowing"}),n=i.reduce((o,a,l)=>{var h,c;const d=this.plugins[l],v=this.children[l];return v.collapsed?o:a==="flexibleGrowing"?o-(v.height||0):a==="flexibleStatic"?o-((v==null?void 0:v.height)||(d==null?void 0:d.height)||0):a==="static"?o-((c=(h=this.plugins[l])===null||h===void 0?void 0:h.height)!==null&&c!==void 0?c:0):o},this.height),s=i.filter(o=>o==="flexibleGrowing").length,r=Math.floor(n/s);return i.reduce((o,a,l)=>{var h,c;const d=this.children[l],v=this.plugins[l];let g=0;if(d.collapsed)g=0;else switch(a){case"static":g=(h=v.height)!==null&&h!==void 0?h:0;break;case"flexibleGrowing":g=(d.height||0)+r;break;case"flexibleStatic":g=(c=d.height||this.plugins[l].height)!==null&&c!==void 0?c:0;break}return o.result.push({width:this.width,position:o.position,height:g}),o.position+=g,o},{position:0,result:[]}).result}getAccuracy(){return this.timeGrid.accuracy}setZoom(e){return this.getAccuracy()i.setZoom(e)),!0):!1}setPositionX(e){const i=super.setPositionX(e);return this.children.forEach(n=>n.setPositionX(e)),i}renderPlugin(e){var i;const n=this.plugins[e],s=this.children[e];s==null||s.clear(),s.collapsed||!((i=n==null?void 0:n.render)===null||i===void 0)&&i.call(n)||s.standardRender()}partialRender(e){typeof e=="number"&&this.requestedRenders.push(e),this.lastPartialAnimationFrame||(this.lastPartialAnimationFrame=requestAnimationFrame(()=>{this.requestedRenders.forEach(i=>this.renderPlugin(i)),this.shallowRender(),this.requestedRenders=[],this.lastPartialAnimationFrame=null}))}shallowRender(){this.clear(),this.timeGrid.renderLines(this.height-this.freeSpace,this.freeSpace),this.children.forEach(i=>{i.collapsed||this.copy(i)});let e=!1;this.plugins.forEach(i=>{i.postRender&&i.postRender()}),this.plugins.forEach(i=>{i.renderTooltip&&(e=e||!!i.renderTooltip())}),!e&&typeof this.options.tooltip=="function"&&this.options.tooltip(null,this,null)}render(e){typeof this.lastPartialAnimationFrame=="number"&&cancelAnimationFrame(this.lastPartialAnimationFrame),this.requestedRenders=[],this.lastPartialAnimationFrame=null,this.lastGlobalAnimationFrame||(this.lastGlobalAnimationFrame=requestAnimationFrame(()=>{e==null||e(),this.timeGrid.recalc(),this.children.forEach((i,n)=>this.renderPlugin(n)),this.shallowRender(),this.lastGlobalAnimationFrame=null}))}}const Kn=["down","up","move","click","select"];class ge extends fe.EventEmitter{static getId(){return ge.count++}constructor(e,i){super(),this.id=ge.getId(),this.parent=e,this.renderEngine=i,i.on("clear",()=>this.clearHitRegions()),Kn.forEach(n=>e.on(n,(s,r,o)=>{(!s||s.id===this.id)&&this.resend(n,s,r,o)})),["hover"].forEach(n=>e.on(n,(s,r)=>{(!s||s.id===this.id)&&this.emit(n,s,r)})),e.on("change-position",(n,s,r,o)=>{o===this&&this.emit("change-position",n,s,r)}),this.hitRegions=[]}resend(e,...i){this.renderEngine.position<=this.parent.mouse.y&&this.renderEngine.height+this.renderEngine.position>=this.parent.mouse.y&&this.emit(e,...i)}getMouse(){const{x:e,y:i}=this.parent.mouse;return{x:e,y:i-this.renderEngine.position}}getGlobalMouse(){return this.parent.mouse}clearHitRegions(){this.hitRegions=[]}addHitRegion(e,i,n,s,r,o,a){this.hitRegions.push({type:e,data:i,x:n,y:s,w:r,h:o,cursor:a,id:this.id})}setCursor(e){this.parent.setCursor(e)}clearCursor(){this.parent.clearCursor()}}ge.count=0;class qn extends fe.EventEmitter{constructor(e,i){super(),this.selectedRegion=null,this.hoveredRegion=null,this.moveActive=!1,this.currentCursor=null,this.renderEngine=i,this.canvas=e,this.hitRegions=[],this.instances=[],this.mouse={x:0,y:0},this.handleMouseWheel=this.handleMouseWheel.bind(this),this.handleMouseDown=this.handleMouseDown.bind(this),this.handleMouseUp=this.handleMouseUp.bind(this),this.handleMouseMove=this.handleMouseMove.bind(this),this.initListeners(),this.reset()}makeInstance(e){const i=new ge(this,e);return this.instances.push(i),i}reset(){this.selectedRegion=null,this.hoveredRegion=null,this.hitRegions=[]}destroy(){this.removeListeners()}initListeners(){this.canvas&&(this.canvas.addEventListener("wheel",this.handleMouseWheel),this.canvas.addEventListener("mousedown",this.handleMouseDown),this.canvas.addEventListener("mouseup",this.handleMouseUp),this.canvas.addEventListener("mouseleave",this.handleMouseUp),this.canvas.addEventListener("mousemove",this.handleMouseMove))}removeListeners(){this.canvas&&(this.canvas.removeEventListener("wheel",this.handleMouseWheel),this.canvas.removeEventListener("mousedown",this.handleMouseDown),this.canvas.removeEventListener("mouseup",this.handleMouseUp),this.canvas.removeEventListener("mouseleave",this.handleMouseUp),this.canvas.removeEventListener("mousemove",this.handleMouseMove))}handleMouseWheel(e){const{deltaY:i,deltaX:n}=e;e.preventDefault();const s=this.renderEngine.getRealView(),r=this.renderEngine.getInitialZoom(),o=this.renderEngine.positionX,a=this.renderEngine.zoom,l=n/this.renderEngine.zoom;let h=i/1e3*this.renderEngine.zoom;if(this.renderEngine.tryToChangePosition(l),h=this.renderEngine.zoom-h>=r?h:this.renderEngine.zoom-r,h!==0&&this.renderEngine.setZoom(this.renderEngine.zoom-h)){const d=this.mouse.x/this.renderEngine.width,g=(s-this.renderEngine.width/this.renderEngine.zoom)*d;this.renderEngine.tryToChangePosition(g)}this.checkRegionHover(),(o!==this.renderEngine.positionX||a!==this.renderEngine.zoom)&&this.renderEngine.render()}handleMouseDown(){this.moveActive=!0,this.mouseDownPosition={x:this.mouse.x,y:this.mouse.y},this.mouseDownHoveredInstance=this.hoveredInstance,this.emit("down",this.hoveredRegion,this.mouse)}handleMouseUp(){this.moveActive=!1;const e=this.mouseDownPosition&&this.mouseDownPosition.x===this.mouse.x&&this.mouseDownPosition.y===this.mouse.y;e&&this.handleRegionHit(),this.emit("up",this.hoveredRegion,this.mouse,e),e&&this.emit("click",this.hoveredRegion,this.mouse)}handleMouseMove(e){if(this.moveActive){const i=this.mouse.y-e.offsetY,n=(this.mouse.x-e.offsetX)/this.renderEngine.zoom;(i||n)&&this.emit("change-position",{deltaX:n,deltaY:i},this.mouseDownPosition,this.mouse,this.mouseDownHoveredInstance)}this.mouse.x=e.offsetX,this.mouse.y=e.offsetY,this.checkRegionHover(),this.emit("move",this.hoveredRegion,this.mouse)}handleRegionHit(){const e=this.getHoveredRegion();this.emit("select",e,this.mouse)}checkRegionHover(){const e=this.getHoveredRegion();e&&this.hoveredRegion&&e.id!==this.hoveredRegion.id&&this.emit("hover",null,this.mouse),e?(!this.currentCursor&&e.cursor?this.renderEngine.canvas.style.cursor=e.cursor:this.currentCursor||this.clearCursor(),this.hoveredRegion=e,this.emit("hover",e,this.mouse),this.renderEngine.partialRender()):this.hoveredRegion&&!e&&(this.currentCursor||this.clearCursor(),this.hoveredRegion=null,this.emit("hover",null,this.mouse),this.renderEngine.partialRender())}getHoveredRegion(){const e=this.hitRegions.find(({x:n,y:s,w:r,h:o})=>this.mouse.x>=n&&this.mouse.x<=n+r&&this.mouse.y>=s&&this.mouse.y<=s+o);if(e)return e;const i=this.instances.find(({renderEngine:n})=>n.position<=this.mouse.y&&n.height+n.position>=this.mouse.y);if(this.hoveredInstance=i,i){const n=i.renderEngine.position;return i.hitRegions.find(({x:s,y:r,w:o,h:a})=>this.mouse.x>=s&&this.mouse.x<=s+o&&this.mouse.y>=r+n&&this.mouse.y<=r+a+n)}return null}clearHitRegions(){this.hitRegions=[]}addHitRegion(e,i,n,s,r,o,a){this.hitRegions.push({type:e,data:i,x:n,y:s,w:r,h:o,cursor:a})}setCursor(e){this.renderEngine.canvas.style.cursor=e,this.currentCursor=e}clearCursor(){const e=this.getHoveredRegion();this.currentCursor=null,e!=null&&e.cursor?this.renderEngine.canvas.style.cursor=e.cursor:this.renderEngine.canvas.style.cursor=""}}class Qn extends fe.EventEmitter{constructor({canvas:e,plugins:i,settings:n}){var s;super();const r=(s=n==null?void 0:n.styles)!==null&&s!==void 0?s:{};this.timeGrid=new zt({styles:r==null?void 0:r.timeGrid}),this.renderEngine=new Vn({canvas:e,settings:{styles:r==null?void 0:r.main,options:n==null?void 0:n.options},plugins:i,timeGrid:this.timeGrid}),this.interactionsEngine=new qn(e,this.renderEngine),this.plugins=i;const o=Array(this.plugins.length).fill(null).map(()=>{const a=this.renderEngine.makeInstance(),l=this.interactionsEngine.makeInstance(a);return{renderEngine:a,interactionsEngine:l}});this.plugins.forEach((a,l)=>{a.init(o[l].renderEngine,o[l].interactionsEngine)}),this.renderEngine.calcMinMax(),this.renderEngine.resetView(),this.renderEngine.recalcChildrenSizes(),this.renderEngine.calcTimeGrid(),this.plugins.forEach(a=>{var l;return(l=a.postInit)===null||l===void 0?void 0:l.call(a)}),this.renderEngine.render()}render(){this.renderEngine.render()}resize(e,i){this.renderEngine.render(()=>this.renderEngine.resize(e,i))}execOnPlugins(e,...i){let n=0;for(;n{var r,o;return(r=s.setSettings)===null||r===void 0?void 0:r.call(s,{styles:(o=e.styles)===null||o===void 0?void 0:o[s.name]})}),this.renderEngine.render()}setZoom(e,i){const n=this.renderEngine.width/(i-e);this.renderEngine.setPositionX(e),this.renderEngine.setZoom(n),this.renderEngine.render()}}const jn={height:56},ct=2;class Zn extends ie{constructor({name:e="timeseriesPlugin",data:i,settings:n}){super(e),this.height=56,this.hoveredRegion=null,this.setSettings(n),this.setData(i)}init(e,i){super.init(e,i),this.interactionsEngine.on("change-position",this.handlePositionChange.bind(this)),this.interactionsEngine.on("hover",this.handleHover.bind(this)),this.interactionsEngine.on("up",this.handleMouseUp.bind(this))}handlePositionChange(e){const i=this.renderEngine.parent.positionX;this.interactionsEngine.setCursor("grabbing"),this.renderEngine.tryToChangePosition(e.deltaX),i!==this.renderEngine.parent.positionX&&this.renderEngine.parent.render()}handleMouseUp(){this.interactionsEngine.clearCursor()}setSettings({styles:e}={styles:this.styles}){this.styles=G(jn,e),this.height=this.styles.height}setData(e){const i=It(e);this.data=i,this.min=i.total.min,this.max=i.total.max,this.renderEngine&&(this.renderEngine.recalcMinMax(),this.renderEngine.resetParentView())}handleHover(e){this.hoveredRegion=e}renderTooltip(){if(this.hoveredRegion){const e=this.interactionsEngine.getMouse().x,i=this.renderEngine.pixelToTime(e)+this.renderEngine.positionX,n=`${i.toFixed(this.renderEngine.getAccuracy()+2)} ${this.renderEngine.timeUnits}`,s=Nt(i,this.data);return this.renderEngine.renderTooltipFromData([{text:n},...s],this.interactionsEngine.getGlobalMouse()),!0}return!1}render(){if(this.data.timeseries.length===0)return;const e=this.renderEngine.positionX,i=this.renderEngine.positionX+this.renderEngine.getRealView();this.data.timeseries.forEach((n,s)=>{if(this.data.timeboxes[s].endi)return;const r=e<=this.data.timeboxes[s].start?0:Math.max(n.points.findIndex(([h])=>h>=e)-ct,0),o=i>=this.data.timeboxes[s].end?n.points.length:n.points.findIndex(([h])=>h>=i)+ct,a=n.points.slice(r,o),l=Ot(a,n,this.data.summary);_e({engine:this.renderEngine,points:a,min:l.min,max:l.max,style:n.style})}),this.interactionsEngine.addHitRegion("timeseries",null,0,0,this.renderEngine.width,this.height)}}const Jn={};class es extends Qn{constructor({canvas:e,data:i,marks:n,waterfall:s,timeframeTimeseries:r,timeseries:o,colors:a,settings:l=Jn,plugins:h=[]}){var c;const d=[],{headers:{waterfall:v="waterfall",flameChart:g="flame chart"}={}}=l,u=(c=l==null?void 0:l.styles)!==null&&c!==void 0?c:{},b=new Wn({styles:u==null?void 0:u.timeGridPlugin});d.push(b);let y,p,f,x,T;o&&(T=new Zn({data:o,settings:{styles:u==null?void 0:u.timeseriesPlugin}}),d.push(T)),n&&(y=new Yn({data:n}),y.on("select",C=>this.emit("select",C)),d.push(y)),s&&(p=new Nn({data:s,settings:{styles:u==null?void 0:u.waterfallPlugin}}),p.on("select",C=>this.emit("select",C)),i&&d.push(new ot(v,{styles:u==null?void 0:u.togglePlugin})),d.push(p)),i&&(x=new Xn({data:i,colors:a}),x.on("select",C=>this.emit("select",C)),s&&d.push(new ot(g,{styles:u==null?void 0:u.togglePlugin})),d.push(x)),(i||s||r)&&(f=new On({flameChartNodes:i,waterfall:s,timeseries:r,settings:{styles:u==null?void 0:u.timeframeSelectorPlugin}}),d.unshift(f)),super({canvas:e,settings:l,plugins:[...d,...h]}),x&&f&&(this.setNodes=C=>{x&&x.setData(C),f&&f.setFlameChartNodes(C)},this.setFlameChartPosition=({x:C,y:R})=>{typeof C=="number"&&this.renderEngine.setPositionX(C),typeof R=="number"&&x&&x.setPositionY(R),this.renderEngine.render()}),y&&(this.setMarks=C=>{y&&y.setMarks(C)}),p&&(this.setWaterfall=C=>{p&&p.setData(C),f&&f.setWaterfall(C)}),T&&(this.setTimeseries=C=>{T&&T.setData(C)}),f&&(this.setTimeframeTimeseries=C=>{f==null||f.setTimeseries(C)})}}var ts="Expected a function",dt=0/0,is="[object Symbol]",ns=/^\s+|\s+$/g,ss=/^[-+]0x[0-9a-f]+$/i,rs=/^0b[01]+$/i,os=/^0o[0-7]+$/i,as=parseInt,ls=typeof be=="object"&&be&&be.Object===Object&&be,hs=typeof self=="object"&&self&&self.Object===Object&&self,cs=ls||hs||Function("return this")(),ds=Object.prototype,us=ds.toString,gs=Math.max,fs=Math.min,Ae=function(){return cs.Date.now()};function ps(t,e,i){var n,s,r,o,a,l,h=0,c=!1,d=!1,v=!0;if(typeof t!="function")throw new TypeError(ts);e=ut(e)||0,De(i)&&(c=!!i.leading,d="maxWait"in i,r=d?gs(ut(i.maxWait)||0,e):r,v="trailing"in i?!!i.trailing:v);function g(R){var O=n,ce=s;return n=s=void 0,h=R,o=t.apply(ce,O),o}function u(R){return h=R,a=setTimeout(p,e),c?g(R):o}function b(R){var O=R-l,ce=R-h,Ue=e-O;return d?fs(Ue,r-ce):Ue}function y(R){var O=R-l,ce=R-h;return l===void 0||O>=e||O<0||d&&ce>=r}function p(){var R=Ae();if(y(R))return f(R);a=setTimeout(p,b(R))}function f(R){return a=void 0,v&&n?g(R):(n=s=void 0,o)}function x(){a!==void 0&&clearTimeout(a),h=0,n=l=s=a=void 0}function T(){return a===void 0?o:f(Ae())}function C(){var R=Ae(),O=y(R);if(n=arguments,s=this,l=R,O){if(a===void 0)return u(l);if(d)return a=setTimeout(p,e),g(l)}return a===void 0&&(a=setTimeout(p,e)),o}return C.cancel=x,C.flush=T,C}function De(t){var e=typeof t;return!!t&&(e=="object"||e=="function")}function vs(t){return!!t&&typeof t=="object"}function ms(t){return typeof t=="symbol"||vs(t)&&us.call(t)==is}function ut(t){if(typeof t=="number")return t;if(ms(t))return dt;if(De(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=De(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=t.replace(ns,"");var i=rs.test(t);return i||os.test(t)?as(t.slice(2),i?2:8):ss.test(t)?dt:+t}var bs=ps;const ys=ft(bs),Es=(t,e)=>{let i=[];const n={};return Object.values(t).forEach(s=>{var h;const r=s.caller,o=s.callee,a=(s.cost[String(e)]||0)>0?s.cost[String(e)]/1e3:0,l=0;if(o&&!n[o]&&(n[o]={name:o,start:l,duration:a,cost:s.cost,children:[]}),r&&!n[r]&&(n[r]={name:r,start:l,duration:a,cost:s.cost,children:[]}),!(!r||i.includes(o))){if(n[r]&&n[r].children){const c=n[r].children||[],d=c?c[c.length-1]:null;n[o].start=d?d.start+d.duration:n[o].start}else n[o].start+=n[r].start;(h=n[r].children)==null||h.push(n[o]),i.push(o)}}),i=[],n["main()"]},xs=()=>({build:Es}),ws=J({__name:"flame-graph",props:{edges:{}},emits:["hover","hide"],setup(t,{emit:e}){const i=t,n=e,s=L(),r=L(),{build:o}=xs(),a=()=>{if(!r.value||!s.value)return;const{width:l,height:h}=r.value.getBoundingClientRect();s.value.width=l||1,s.value.height=h||1;const c=new es({canvas:s.value,data:[o(i.edges,H.CPU)],settings:{styles:{main:{blockHeight:20}},options:{tooltip:(d,v,g)=>{d===null?n("hide"):n("hover",{callee:d.data.source.name,caller:"",cost:d.data.source.cost,position:{x:(g==null?void 0:g.x)||0,y:(g==null?void 0:g.y)||0}})}}}});c.render(),window.addEventListener("resize",ys(()=>{if(!r.value)return;const{width:d,height:v}=r.value.getBoundingClientRect();c.resize(d,v)},30))};return ze(()=>{Zt(()=>{a()})}),(l,h)=>(P(),I("div",{ref_key:"graph",ref:r,class:"flame-graph"},[E("canvas",{ref_key:"canvas",ref:s,class:"flame-graph__canvas"},null,512)],512))}});const Cs=K(ws,[["__scopeId","data-v-3fdcffce"]]),Rs=t=>(pt("data-v-01765fde"),t=t(),vt(),t),_s={class:"profiler-page"},ks=Rs(()=>E("div",{class:"profiler-page__head"},null,-1)),Ms={class:"profiler-page__main"},Ss={ref:"calls",class:"profiler-page__callstack"},Ts={ref:"info",class:"profiler-page__stat"},Ps={class:"profiler-page__stat-board"},Hs={class:"profiler-page__stat-tabs"},Fs=J({__name:"profiler-page",props:{event:{}},setup(t){const e={x:0,y:0},i=L(),n=L(""),s=L(e),r=q(()=>{let c=s.value.y,d=s.value.x;if(750+s.value.x>window.innerWidth-80){const v=750+s.value.x-window.innerWidth+100;d-=v}return 150+s.value.y>window.innerHeight&&(c=s.value.y-150),{top:`${c+10}px`,left:`${d}px`,width:"750px"}}),o=l=>{if(l){const{position:h,...c}=l||{};i.value=c,s.value=h}else i.value=null,s.value=e},a=l=>{n.value=l.tab.name};return(l,h)=>(P(),I("div",_s,[ks,E("main",Ms,[E("section",Ss,[A(w(sn),{style:le({height:"calc(100vh - 48px)"})},{default:$(()=>[A(w(Li),{payload:l.event.payload,onHover:o,onHide:o},null,8,["payload"])]),_:1},8,["style"])],512),E("div",Ts,[E("section",Ps,[A(w(mt),{cost:l.event.payload.peaks},null,8,["cost"])]),E("section",Hs,[A(w(ai),{options:{useUrlFragment:!1},onChanged:a},{default:$(()=>[A(w(Be),{name:"Call graph"},{default:$(()=>[n.value==="Call graph"?(P(),ae(w(Ui),{key:0,payload:l.event.payload},null,8,["payload"])):j("",!0)]),_:1}),A(w(Be),{name:"Flamechart"},{default:$(()=>[n.value==="Flamechart"?(P(),ae(w(Cs),{key:n.value,"data-key":n.value,edges:l.event.payload.edges,onHover:o,onHide:o},null,8,["data-key","edges"])):j("",!0)]),_:1})]),_:1})])],512),i.value?(P(),ae(w(yt),{key:0,class:"profiler-page__hover-edge",edge:i.value,style:le(r.value)},null,8,["edge","style"])):j("",!0)])]))}});const Ls=K(Fs,[["__scopeId","data-v-01765fde"]]),{normalizeProfilerEvent:As}=oi(),Xs=J({components:{ProfilerPage:Ls,PageHeader:ni},async setup(){const t=Jt(),e=ei(),i=ti(),n=t.params.id,{events:s}=ri(),{data:r,pending:o}=await ii(s.getUrl(n),{headers:{"X-Auth-Token":i.$authToken.token},onResponse({response:a}){return a.data},onResponseError(){e.push("/404")},onRequestError(){e.push("/404")}},"$QtIRZfGdYG");return{serverEvent:r,pending:o,eventId:n,clearEvent:()=>s.removeById(n)}},head(){return{title:`Profiler > ${this.eventId} | Buggregator`}},computed:{event(){return this.serverEvent?As(this.serverEvent):null}},methods:{onDelete(){this.clearEvent(),this.$router.push("/")}}});const Ne=t=>(pt("data-v-2c68ec7a"),t=t(),vt(),t),Ws={class:"profiler-event"},Ys={key:0,class:"profiler-event__loading"},Ds=Ne(()=>E("div",null,null,-1)),zs=Ne(()=>E("div",null,null,-1)),$s=Ne(()=>E("div",null,null,-1)),Is=[Ds,zs,$s],Os={class:"profiler-event__body"};function Ns(t,e,i,n,s,r){const o=Bt,a=Ge("PageHeader"),l=Ge("ProfilerPage");return P(),I("main",Ws,[A(a,{class:"profiler-event__head","button-title":"Delete event",onDelete:t.onDelete},{default:$(()=>[A(o,{to:"/"},{default:$(()=>[N("Home")]),_:1}),N(" /  "),A(o,{to:"/profiler"},{default:$(()=>[N("Profiler")]),_:1}),N(" /  "),A(o,{disabled:!0},{default:$(()=>[N(ee(t.eventId),1)]),_:1})]),_:1},8,["onDelete"]),t.pending&&!t.event?(P(),I("div",Ys,Is)):j("",!0),E("div",Os,[t.event?(P(),ae(l,{key:0,event:t.event},null,8,["event"])):j("",!0)])])}const er=K(Xs,[["render",Ns],["__scopeId","data-v-2c68ec7a"]]);export{er as default}; + */function U(t){return getComputedStyle(t)}function W(t,e){for(var i in e){var n=e[i];typeof n=="number"&&(n=n+"px"),t.style[i]=n}return t}function xe(t){var e=document.createElement("div");return e.className=t,e}var Be=typeof Element<"u"&&(Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector);function Q(t,e){if(!Be)throw new Error("No element matching method supported");return Be.call(t,e)}function oe(t){t.remove?t.remove():t.parentNode&&t.parentNode.removeChild(t)}function Ve(t,e){return Array.prototype.filter.call(t.children,function(i){return Q(i,e)})}var S={main:"ps",rtl:"ps__rtl",element:{thumb:function(t){return"ps__thumb-"+t},rail:function(t){return"ps__rail-"+t},consuming:"ps__child--consume"},state:{focus:"ps--focus",clicking:"ps--clicking",active:function(t){return"ps--active-"+t},scrolling:function(t){return"ps--scrolling-"+t}}},yt={x:null,y:null};function Et(t,e){var i=t.element.classList,n=S.state.scrolling(e);i.contains(n)?clearTimeout(yt[e]):i.add(n)}function xt(t,e){yt[e]=setTimeout(function(){return t.isAlive&&t.element.classList.remove(S.state.scrolling(e))},t.settings.scrollingThreshold)}function Gi(t,e){Et(t,e),xt(t,e)}var pe=function(e){this.element=e,this.handlers={}},wt={isEmpty:{configurable:!0}};pe.prototype.bind=function(e,i){typeof this.handlers[e]>"u"&&(this.handlers[e]=[]),this.handlers[e].push(i),this.element.addEventListener(e,i,!1)};pe.prototype.unbind=function(e,i){var n=this;this.handlers[e]=this.handlers[e].filter(function(s){return i&&s!==i?!0:(n.element.removeEventListener(e,s,!1),!1)})};pe.prototype.unbindAll=function(){for(var e in this.handlers)this.unbind(e)};wt.isEmpty.get=function(){var t=this;return Object.keys(this.handlers).every(function(e){return t.handlers[e].length===0})};Object.defineProperties(pe.prototype,wt);var he=function(){this.eventElements=[]};he.prototype.eventElement=function(e){var i=this.eventElements.filter(function(n){return n.element===e})[0];return i||(i=new pe(e),this.eventElements.push(i)),i};he.prototype.bind=function(e,i,n){this.eventElement(e).bind(i,n)};he.prototype.unbind=function(e,i,n){var s=this.eventElement(e);s.unbind(i,n),s.isEmpty&&this.eventElements.splice(this.eventElements.indexOf(s),1)};he.prototype.unbindAll=function(){this.eventElements.forEach(function(e){return e.unbindAll()}),this.eventElements=[]};he.prototype.once=function(e,i,n){var s=this.eventElement(e),r=function(o){s.unbind(i,r),n(o)};s.bind(i,r)};function we(t){if(typeof window.CustomEvent=="function")return new CustomEvent(t);var e=document.createEvent("CustomEvent");return e.initCustomEvent(t,!1,!1,void 0),e}function Me(t,e,i,n,s){n===void 0&&(n=!0),s===void 0&&(s=!1);var r;if(e==="top")r=["contentHeight","containerHeight","scrollTop","y","up","down"];else if(e==="left")r=["contentWidth","containerWidth","scrollLeft","x","left","right"];else throw new Error("A proper axis should be provided");Bi(t,i,r,n,s)}function Bi(t,e,i,n,s){var r=i[0],o=i[1],a=i[2],l=i[3],h=i[4],c=i[5];n===void 0&&(n=!0),s===void 0&&(s=!1);var d=t.element;t.reach[l]=null,d[a]<1&&(t.reach[l]="start"),d[a]>t[r]-t[o]-1&&(t.reach[l]="end"),e&&(d.dispatchEvent(we("ps-scroll-"+l)),e<0?d.dispatchEvent(we("ps-scroll-"+h)):e>0&&d.dispatchEvent(we("ps-scroll-"+c)),n&&Gi(t,l)),t.reach[l]&&(e||s)&&d.dispatchEvent(we("ps-"+l+"-reach-"+t.reach[l]))}function k(t){return parseInt(t,10)||0}function Vi(t){return Q(t,"input,[contenteditable]")||Q(t,"select,[contenteditable]")||Q(t,"textarea,[contenteditable]")||Q(t,"button,[contenteditable]")}function Ki(t){var e=U(t);return k(e.width)+k(e.paddingLeft)+k(e.paddingRight)+k(e.borderLeftWidth)+k(e.borderRightWidth)}var se={isWebKit:typeof document<"u"&&"WebkitAppearance"in document.documentElement.style,supportsTouch:typeof window<"u"&&("ontouchstart"in window||"maxTouchPoints"in window.navigator&&window.navigator.maxTouchPoints>0||window.DocumentTouch&&document instanceof window.DocumentTouch),supportsIePointer:typeof navigator<"u"&&navigator.msMaxTouchPoints,isChrome:typeof navigator<"u"&&/Chrome/i.test(navigator&&navigator.userAgent)};function V(t){var e=t.element,i=Math.floor(e.scrollTop),n=e.getBoundingClientRect();t.containerWidth=Math.round(n.width),t.containerHeight=Math.round(n.height),t.contentWidth=e.scrollWidth,t.contentHeight=e.scrollHeight,e.contains(t.scrollbarXRail)||(Ve(e,S.element.rail("x")).forEach(function(s){return oe(s)}),e.appendChild(t.scrollbarXRail)),e.contains(t.scrollbarYRail)||(Ve(e,S.element.rail("y")).forEach(function(s){return oe(s)}),e.appendChild(t.scrollbarYRail)),!t.settings.suppressScrollX&&t.containerWidth+t.settings.scrollXMarginOffset=t.railXWidth-t.scrollbarXWidth&&(t.scrollbarXLeft=t.railXWidth-t.scrollbarXWidth),t.scrollbarYTop>=t.railYHeight-t.scrollbarYHeight&&(t.scrollbarYTop=t.railYHeight-t.scrollbarYHeight),qi(e,t),t.scrollbarXActive?e.classList.add(S.state.active("x")):(e.classList.remove(S.state.active("x")),t.scrollbarXWidth=0,t.scrollbarXLeft=0,e.scrollLeft=t.isRtl===!0?t.contentWidth:0),t.scrollbarYActive?e.classList.add(S.state.active("y")):(e.classList.remove(S.state.active("y")),t.scrollbarYHeight=0,t.scrollbarYTop=0,e.scrollTop=0)}function Ke(t,e){return t.settings.minScrollbarLength&&(e=Math.max(e,t.settings.minScrollbarLength)),t.settings.maxScrollbarLength&&(e=Math.min(e,t.settings.maxScrollbarLength)),e}function qi(t,e){var i={width:e.railXWidth},n=Math.floor(t.scrollTop);e.isRtl?i.left=e.negativeScrollAdjustment+t.scrollLeft+e.containerWidth-e.contentWidth:i.left=t.scrollLeft,e.isScrollbarXUsingBottom?i.bottom=e.scrollbarXBottom-n:i.top=e.scrollbarXTop+n,W(e.scrollbarXRail,i);var s={top:n,height:e.railYHeight};e.isScrollbarYUsingRight?e.isRtl?s.right=e.contentWidth-(e.negativeScrollAdjustment+t.scrollLeft)-e.scrollbarYRight-e.scrollbarYOuterWidth-9:s.right=e.scrollbarYRight-t.scrollLeft:e.isRtl?s.left=e.negativeScrollAdjustment+t.scrollLeft+e.containerWidth*2-e.contentWidth-e.scrollbarYLeft-e.scrollbarYOuterWidth:s.left=e.scrollbarYLeft+t.scrollLeft,W(e.scrollbarYRail,s),W(e.scrollbarX,{left:e.scrollbarXLeft,width:e.scrollbarXWidth-e.railBorderXWidth}),W(e.scrollbarY,{top:e.scrollbarYTop,height:e.scrollbarYHeight-e.railBorderYWidth})}function Qi(t){t.element,t.event.bind(t.scrollbarY,"mousedown",function(e){return e.stopPropagation()}),t.event.bind(t.scrollbarYRail,"mousedown",function(e){var i=e.pageY-window.pageYOffset-t.scrollbarYRail.getBoundingClientRect().top,n=i>t.scrollbarYTop?1:-1;t.element.scrollTop+=n*t.containerHeight,V(t),e.stopPropagation()}),t.event.bind(t.scrollbarX,"mousedown",function(e){return e.stopPropagation()}),t.event.bind(t.scrollbarXRail,"mousedown",function(e){var i=e.pageX-window.pageXOffset-t.scrollbarXRail.getBoundingClientRect().left,n=i>t.scrollbarXLeft?1:-1;t.element.scrollLeft+=n*t.containerWidth,V(t),e.stopPropagation()})}function ji(t){qe(t,["containerWidth","contentWidth","pageX","railXWidth","scrollbarX","scrollbarXWidth","scrollLeft","x","scrollbarXRail"]),qe(t,["containerHeight","contentHeight","pageY","railYHeight","scrollbarY","scrollbarYHeight","scrollTop","y","scrollbarYRail"])}function qe(t,e){var i=e[0],n=e[1],s=e[2],r=e[3],o=e[4],a=e[5],l=e[6],h=e[7],c=e[8],d=t.element,p=null,g=null,u=null;function b(f){f.touches&&f.touches[0]&&(f[s]=f.touches[0].pageY),d[l]=p+u*(f[s]-g),Et(t,h),V(t),f.stopPropagation(),f.type.startsWith("touch")&&f.changedTouches.length>1&&f.preventDefault()}function y(){xt(t,h),t[c].classList.remove(S.state.clicking),t.event.unbind(t.ownerDocument,"mousemove",b)}function v(f,w){p=d[l],w&&f.touches&&(f[s]=f.touches[0].pageY),g=f[s],u=(t[n]-t[i])/(t[r]-t[a]),w?t.event.bind(t.ownerDocument,"touchmove",b):(t.event.bind(t.ownerDocument,"mousemove",b),t.event.once(t.ownerDocument,"mouseup",y),f.preventDefault()),t[c].classList.add(S.state.clicking),f.stopPropagation()}t.event.bind(t[o],"mousedown",function(f){v(f)}),t.event.bind(t[o],"touchstart",function(f){v(f,!0)})}function Zi(t){var e=t.element,i=function(){return Q(e,":hover")},n=function(){return Q(t.scrollbarX,":focus")||Q(t.scrollbarY,":focus")};function s(r,o){var a=Math.floor(e.scrollTop);if(r===0){if(!t.scrollbarYActive)return!1;if(a===0&&o>0||a>=t.contentHeight-t.containerHeight&&o<0)return!t.settings.wheelPropagation}var l=e.scrollLeft;if(o===0){if(!t.scrollbarXActive)return!1;if(l===0&&r<0||l>=t.contentWidth-t.containerWidth&&r>0)return!t.settings.wheelPropagation}return!0}t.event.bind(t.ownerDocument,"keydown",function(r){if(!(r.isDefaultPrevented&&r.isDefaultPrevented()||r.defaultPrevented)&&!(!i()&&!n())){var o=document.activeElement?document.activeElement:t.ownerDocument.activeElement;if(o){if(o.tagName==="IFRAME")o=o.contentDocument.activeElement;else for(;o.shadowRoot;)o=o.shadowRoot.activeElement;if(Vi(o))return}var a=0,l=0;switch(r.which){case 37:r.metaKey?a=-t.contentWidth:r.altKey?a=-t.containerWidth:a=-30;break;case 38:r.metaKey?l=t.contentHeight:r.altKey?l=t.containerHeight:l=30;break;case 39:r.metaKey?a=t.contentWidth:r.altKey?a=t.containerWidth:a=30;break;case 40:r.metaKey?l=-t.contentHeight:r.altKey?l=-t.containerHeight:l=-30;break;case 32:r.shiftKey?l=t.containerHeight:l=-t.containerHeight;break;case 33:l=t.containerHeight;break;case 34:l=-t.containerHeight;break;case 36:l=t.contentHeight;break;case 35:l=-t.contentHeight;break;default:return}t.settings.suppressScrollX&&a!==0||t.settings.suppressScrollY&&l!==0||(e.scrollTop-=l,e.scrollLeft+=a,V(t),s(a,l)&&r.preventDefault())}})}function Ji(t){var e=t.element;function i(o,a){var l=Math.floor(e.scrollTop),h=e.scrollTop===0,c=l+e.offsetHeight===e.scrollHeight,d=e.scrollLeft===0,p=e.scrollLeft+e.offsetWidth===e.scrollWidth,g;return Math.abs(a)>Math.abs(o)?g=h||c:g=d||p,g?!t.settings.wheelPropagation:!0}function n(o){var a=o.deltaX,l=-1*o.deltaY;return(typeof a>"u"||typeof l>"u")&&(a=-1*o.wheelDeltaX/6,l=o.wheelDeltaY/6),o.deltaMode&&o.deltaMode===1&&(a*=10,l*=10),a!==a&&l!==l&&(a=0,l=o.wheelDelta),o.shiftKey?[-l,-a]:[a,l]}function s(o,a,l){if(!se.isWebKit&&e.querySelector("select:focus"))return!0;if(!e.contains(o))return!1;for(var h=o;h&&h!==e;){if(h.classList.contains(S.element.consuming))return!0;var c=U(h);if(l&&c.overflowY.match(/(scroll|auto)/)){var d=h.scrollHeight-h.clientHeight;if(d>0&&(h.scrollTop>0&&l<0||h.scrollTop0))return!0}if(a&&c.overflowX.match(/(scroll|auto)/)){var p=h.scrollWidth-h.clientWidth;if(p>0&&(h.scrollLeft>0&&a<0||h.scrollLeft0))return!0}h=h.parentNode}return!1}function r(o){var a=n(o),l=a[0],h=a[1];if(!s(o.target,l,h)){var c=!1;t.settings.useBothWheelAxes?t.scrollbarYActive&&!t.scrollbarXActive?(h?e.scrollTop-=h*t.settings.wheelSpeed:e.scrollTop+=l*t.settings.wheelSpeed,c=!0):t.scrollbarXActive&&!t.scrollbarYActive&&(l?e.scrollLeft+=l*t.settings.wheelSpeed:e.scrollLeft-=h*t.settings.wheelSpeed,c=!0):(e.scrollTop-=h*t.settings.wheelSpeed,e.scrollLeft+=l*t.settings.wheelSpeed),V(t),c=c||i(l,h),c&&!o.ctrlKey&&(o.stopPropagation(),o.preventDefault())}}typeof window.onwheel<"u"?t.event.bind(e,"wheel",r):typeof window.onmousewheel<"u"&&t.event.bind(e,"mousewheel",r)}function en(t){if(!se.supportsTouch&&!se.supportsIePointer)return;var e=t.element;function i(u,b){var y=Math.floor(e.scrollTop),v=e.scrollLeft,f=Math.abs(u),w=Math.abs(b);if(w>f){if(b<0&&y===t.contentHeight-t.containerHeight||b>0&&y===0)return window.scrollY===0&&b>0&&se.isChrome}else if(f>w&&(u<0&&v===t.contentWidth-t.containerWidth||u>0&&v===0))return!0;return!0}function n(u,b){e.scrollTop-=b,e.scrollLeft-=u,V(t)}var s={},r=0,o={},a=null;function l(u){return u.targetTouches?u.targetTouches[0]:u}function h(u){return u.pointerType&&u.pointerType==="pen"&&u.buttons===0?!1:!!(u.targetTouches&&u.targetTouches.length===1||u.pointerType&&u.pointerType!=="mouse"&&u.pointerType!==u.MSPOINTER_TYPE_MOUSE)}function c(u){if(h(u)){var b=l(u);s.pageX=b.pageX,s.pageY=b.pageY,r=new Date().getTime(),a!==null&&clearInterval(a)}}function d(u,b,y){if(!e.contains(u))return!1;for(var v=u;v&&v!==e;){if(v.classList.contains(S.element.consuming))return!0;var f=U(v);if(y&&f.overflowY.match(/(scroll|auto)/)){var w=v.scrollHeight-v.clientHeight;if(w>0&&(v.scrollTop>0&&y<0||v.scrollTop0))return!0}if(b&&f.overflowX.match(/(scroll|auto)/)){var P=v.scrollWidth-v.clientWidth;if(P>0&&(v.scrollLeft>0&&b<0||v.scrollLeft0))return!0}v=v.parentNode}return!1}function p(u){if(h(u)){var b=l(u),y={pageX:b.pageX,pageY:b.pageY},v=y.pageX-s.pageX,f=y.pageY-s.pageY;if(d(u.target,v,f))return;n(v,f),s=y;var w=new Date().getTime(),P=w-r;P>0&&(o.x=v/P,o.y=f/P,r=w),i(v,f)&&u.preventDefault()}}function g(){t.settings.swipeEasing&&(clearInterval(a),a=setInterval(function(){if(t.isInitialized){clearInterval(a);return}if(!o.x&&!o.y){clearInterval(a);return}if(Math.abs(o.x)<.01&&Math.abs(o.y)<.01){clearInterval(a);return}if(!t.element){clearInterval(a);return}n(o.x*30,o.y*30),o.x*=.8,o.y*=.8},10))}se.supportsTouch?(t.event.bind(e,"touchstart",c),t.event.bind(e,"touchmove",p),t.event.bind(e,"touchend",g)):se.supportsIePointer&&(window.PointerEvent?(t.event.bind(e,"pointerdown",c),t.event.bind(e,"pointermove",p),t.event.bind(e,"pointerup",g)):window.MSPointerEvent&&(t.event.bind(e,"MSPointerDown",c),t.event.bind(e,"MSPointerMove",p),t.event.bind(e,"MSPointerUp",g)))}var tn=function(){return{handlers:["click-rail","drag-thumb","keyboard","wheel","touch"],maxScrollbarLength:null,minScrollbarLength:null,scrollingThreshold:1e3,scrollXMarginOffset:0,scrollYMarginOffset:0,suppressScrollX:!1,suppressScrollY:!1,swipeEasing:!0,useBothWheelAxes:!1,wheelPropagation:!0,wheelSpeed:1}},nn={"click-rail":Qi,"drag-thumb":ji,keyboard:Zi,wheel:Ji,touch:en},ve=function(e,i){var n=this;if(i===void 0&&(i={}),typeof e=="string"&&(e=document.querySelector(e)),!e||!e.nodeName)throw new Error("no element is specified to initialize PerfectScrollbar");this.element=e,e.classList.add(S.main),this.settings=tn();for(var s in i)this.settings[s]=i[s];this.containerWidth=null,this.containerHeight=null,this.contentWidth=null,this.contentHeight=null;var r=function(){return e.classList.add(S.state.focus)},o=function(){return e.classList.remove(S.state.focus)};this.isRtl=U(e).direction==="rtl",this.isRtl===!0&&e.classList.add(S.rtl),this.isNegativeScroll=function(){var h=e.scrollLeft,c=null;return e.scrollLeft=-1,c=e.scrollLeft<0,e.scrollLeft=h,c}(),this.negativeScrollAdjustment=this.isNegativeScroll?e.scrollWidth-e.clientWidth:0,this.event=new he,this.ownerDocument=e.ownerDocument||document,this.scrollbarXRail=xe(S.element.rail("x")),e.appendChild(this.scrollbarXRail),this.scrollbarX=xe(S.element.thumb("x")),this.scrollbarXRail.appendChild(this.scrollbarX),this.scrollbarX.setAttribute("tabindex",0),this.event.bind(this.scrollbarX,"focus",r),this.event.bind(this.scrollbarX,"blur",o),this.scrollbarXActive=null,this.scrollbarXWidth=null,this.scrollbarXLeft=null;var a=U(this.scrollbarXRail);this.scrollbarXBottom=parseInt(a.bottom,10),isNaN(this.scrollbarXBottom)?(this.isScrollbarXUsingBottom=!1,this.scrollbarXTop=k(a.top)):this.isScrollbarXUsingBottom=!0,this.railBorderXWidth=k(a.borderLeftWidth)+k(a.borderRightWidth),W(this.scrollbarXRail,{display:"block"}),this.railXMarginWidth=k(a.marginLeft)+k(a.marginRight),W(this.scrollbarXRail,{display:""}),this.railXWidth=null,this.railXRatio=null,this.scrollbarYRail=xe(S.element.rail("y")),e.appendChild(this.scrollbarYRail),this.scrollbarY=xe(S.element.thumb("y")),this.scrollbarYRail.appendChild(this.scrollbarY),this.scrollbarY.setAttribute("tabindex",0),this.event.bind(this.scrollbarY,"focus",r),this.event.bind(this.scrollbarY,"blur",o),this.scrollbarYActive=null,this.scrollbarYHeight=null,this.scrollbarYTop=null;var l=U(this.scrollbarYRail);this.scrollbarYRight=parseInt(l.right,10),isNaN(this.scrollbarYRight)?(this.isScrollbarYUsingRight=!1,this.scrollbarYLeft=k(l.left)):this.isScrollbarYUsingRight=!0,this.scrollbarYOuterWidth=this.isRtl?Ki(this.scrollbarY):null,this.railBorderYWidth=k(l.borderTopWidth)+k(l.borderBottomWidth),W(this.scrollbarYRail,{display:"block"}),this.railYMarginHeight=k(l.marginTop)+k(l.marginBottom),W(this.scrollbarYRail,{display:""}),this.railYHeight=null,this.railYRatio=null,this.reach={x:e.scrollLeft<=0?"start":e.scrollLeft>=this.contentWidth-this.containerWidth?"end":null,y:e.scrollTop<=0?"start":e.scrollTop>=this.contentHeight-this.containerHeight?"end":null},this.isAlive=!0,this.settings.handlers.forEach(function(h){return nn[h](n)}),this.lastScrollTop=Math.floor(e.scrollTop),this.lastScrollLeft=e.scrollLeft,this.event.bind(this.element,"scroll",function(h){return n.onScroll(h)}),V(this)};ve.prototype.update=function(){this.isAlive&&(this.negativeScrollAdjustment=this.isNegativeScroll?this.element.scrollWidth-this.element.clientWidth:0,W(this.scrollbarXRail,{display:"block"}),W(this.scrollbarYRail,{display:"block"}),this.railXMarginWidth=k(U(this.scrollbarXRail).marginLeft)+k(U(this.scrollbarXRail).marginRight),this.railYMarginHeight=k(U(this.scrollbarYRail).marginTop)+k(U(this.scrollbarYRail).marginBottom),W(this.scrollbarXRail,{display:"none"}),W(this.scrollbarYRail,{display:"none"}),V(this),Me(this,"top",0,!1,!0),Me(this,"left",0,!1,!0),W(this.scrollbarXRail,{display:""}),W(this.scrollbarYRail,{display:""}))};ve.prototype.onScroll=function(e){this.isAlive&&(V(this),Me(this,"top",this.element.scrollTop-this.lastScrollTop),Me(this,"left",this.element.scrollLeft-this.lastScrollLeft),this.lastScrollTop=Math.floor(this.element.scrollTop),this.lastScrollLeft=this.element.scrollLeft)};ve.prototype.destroy=function(){this.isAlive&&(this.event.unbindAll(),oe(this.scrollbarX),oe(this.scrollbarY),oe(this.scrollbarXRail),oe(this.scrollbarYRail),this.removePsClasses(),this.element=null,this.scrollbarX=null,this.scrollbarY=null,this.scrollbarXRail=null,this.scrollbarYRail=null,this.isAlive=!1)};ve.prototype.removePsClasses=function(){this.element.className=this.element.className.split(" ").filter(function(e){return!e.match(/^ps([-_].+|)$/)}).join(" ")};const Qe=["scroll","ps-scroll-y","ps-scroll-x","ps-scroll-up","ps-scroll-down","ps-scroll-left","ps-scroll-right","ps-y-reach-start","ps-y-reach-end","ps-x-reach-start","ps-x-reach-end"];var sn={name:"PerfectScrollbar",props:{options:{type:Object,required:!1,default:()=>{}},tag:{type:String,required:!1,default:"div"},watchOptions:{type:Boolean,required:!1,default:!1}},emits:Qe,data(){return{ps:null}},watch:{watchOptions(t){!t&&this.watcher?this.watcher():this.createWatcher()}},mounted(){this.create(),this.watchOptions&&this.createWatcher()},updated(){this.$nextTick(()=>{this.update()})},beforeUnmount(){this.destroy()},methods:{create(){this.ps&&this.$isServer||(this.ps=new ve(this.$el,this.options),Qe.forEach(t=>{this.ps.element.addEventListener(t,e=>this.$emit(t,e))}))},createWatcher(){this.watcher=this.$watch("options",()=>{this.destroy(),this.create()},{deep:!0})},update(){this.ps&&this.ps.update()},destroy(){this.ps&&(this.ps.destroy(),this.ps=null)}},render(){return Zt(this.tag,{class:"ps"},this.$slots.default&&this.$slots.default())}},Ct={exports:{}},rn={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},Rt={exports:{}},on=function(e){return!e||typeof e=="string"?!1:e instanceof Array||Array.isArray(e)||e.length>=0&&(e.splice instanceof Function||Object.getOwnPropertyDescriptor(e,e.length-1)&&e.constructor.name!=="String")},an=on,ln=Array.prototype.concat,hn=Array.prototype.slice,je=Rt.exports=function(e){for(var i=[],n=0,s=e.length;n=4&&t[3]!==1&&(e=", "+t[3]),"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+e+")"};D.to.keyword=function(t){return Mt[t.slice(0,3)]};function Z(t,e,i){return Math.min(Math.max(e,t),i)}function Ce(t){var e=Math.round(t).toString(16).toUpperCase();return e.length<2?"0"+e:e}var dn=Ct.exports,St={exports:{}},un={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},te=un,Tt={};for(var Le in te)te.hasOwnProperty(Le)&&(Tt[te[Le]]=Le);var m=St.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var A in m)if(m.hasOwnProperty(A)){if(!("channels"in m[A]))throw new Error("missing channels property: "+A);if(!("labels"in m[A]))throw new Error("missing channel labels property: "+A);if(m[A].labels.length!==m[A].channels)throw new Error("channel and label counts mismatch: "+A);var gn=m[A].channels,fn=m[A].labels;delete m[A].channels,delete m[A].labels,Object.defineProperty(m[A],"channels",{value:gn}),Object.defineProperty(m[A],"labels",{value:fn})}m.rgb.hsl=function(t){var e=t[0]/255,i=t[1]/255,n=t[2]/255,s=Math.min(e,i,n),r=Math.max(e,i,n),o=r-s,a,l,h;return r===s?a=0:e===r?a=(i-n)/o:i===r?a=2+(n-e)/o:n===r&&(a=4+(e-i)/o),a=Math.min(a*60,360),a<0&&(a+=360),h=(s+r)/2,r===s?l=0:h<=.5?l=o/(r+s):l=o/(2-r-s),[a,l*100,h*100]};m.rgb.hsv=function(t){var e,i,n,s,r,o=t[0]/255,a=t[1]/255,l=t[2]/255,h=Math.max(o,a,l),c=h-Math.min(o,a,l),d=function(p){return(h-p)/6/c+1/2};return c===0?s=r=0:(r=c/h,e=d(o),i=d(a),n=d(l),o===h?s=n-i:a===h?s=1/3+e-n:l===h&&(s=2/3+i-e),s<0?s+=1:s>1&&(s-=1)),[s*360,r*100,h*100]};m.rgb.hwb=function(t){var e=t[0],i=t[1],n=t[2],s=m.rgb.hsl(t)[0],r=1/255*Math.min(e,Math.min(i,n));return n=1-1/255*Math.max(e,Math.max(i,n)),[s,r*100,n*100]};m.rgb.cmyk=function(t){var e=t[0]/255,i=t[1]/255,n=t[2]/255,s,r,o,a;return a=Math.min(1-e,1-i,1-n),s=(1-e-a)/(1-a)||0,r=(1-i-a)/(1-a)||0,o=(1-n-a)/(1-a)||0,[s*100,r*100,o*100,a*100]};function pn(t,e){return Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2)+Math.pow(t[2]-e[2],2)}m.rgb.keyword=function(t){var e=Tt[t];if(e)return e;var i=1/0,n;for(var s in te)if(te.hasOwnProperty(s)){var r=te[s],o=pn(t,r);o.04045?Math.pow((e+.055)/1.055,2.4):e/12.92,i=i>.04045?Math.pow((i+.055)/1.055,2.4):i/12.92,n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92;var s=e*.4124+i*.3576+n*.1805,r=e*.2126+i*.7152+n*.0722,o=e*.0193+i*.1192+n*.9505;return[s*100,r*100,o*100]};m.rgb.lab=function(t){var e=m.rgb.xyz(t),i=e[0],n=e[1],s=e[2],r,o,a;return i/=95.047,n/=100,s/=108.883,i=i>.008856?Math.pow(i,1/3):7.787*i+16/116,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116,s=s>.008856?Math.pow(s,1/3):7.787*s+16/116,r=116*n-16,o=500*(i-n),a=200*(n-s),[r,o,a]};m.hsl.rgb=function(t){var e=t[0]/360,i=t[1]/100,n=t[2]/100,s,r,o,a,l;if(i===0)return l=n*255,[l,l,l];n<.5?r=n*(1+i):r=n+i-n*i,s=2*n-r,a=[0,0,0];for(var h=0;h<3;h++)o=e+1/3*-(h-1),o<0&&o++,o>1&&o--,6*o<1?l=s+(r-s)*6*o:2*o<1?l=r:3*o<2?l=s+(r-s)*(2/3-o)*6:l=s,a[h]=l*255;return a};m.hsl.hsv=function(t){var e=t[0],i=t[1]/100,n=t[2]/100,s=i,r=Math.max(n,.01),o,a;return n*=2,i*=n<=1?n:2-n,s*=r<=1?r:2-r,a=(n+i)/2,o=n===0?2*s/(r+s):2*i/(n+i),[e,o*100,a*100]};m.hsv.rgb=function(t){var e=t[0]/60,i=t[1]/100,n=t[2]/100,s=Math.floor(e)%6,r=e-Math.floor(e),o=255*n*(1-i),a=255*n*(1-i*r),l=255*n*(1-i*(1-r));switch(n*=255,s){case 0:return[n,l,o];case 1:return[a,n,o];case 2:return[o,n,l];case 3:return[o,a,n];case 4:return[l,o,n];case 5:return[n,o,a]}};m.hsv.hsl=function(t){var e=t[0],i=t[1]/100,n=t[2]/100,s=Math.max(n,.01),r,o,a;return a=(2-i)*n,r=(2-i)*s,o=i*s,o/=r<=1?r:2-r,o=o||0,a/=2,[e,o*100,a*100]};m.hwb.rgb=function(t){var e=t[0]/360,i=t[1]/100,n=t[2]/100,s=i+n,r,o,a,l;s>1&&(i/=s,n/=s),r=Math.floor(6*e),o=1-n,a=6*e-r,r&1&&(a=1-a),l=i+a*(o-i);var h,c,d;switch(r){default:case 6:case 0:h=o,c=l,d=i;break;case 1:h=l,c=o,d=i;break;case 2:h=i,c=o,d=l;break;case 3:h=i,c=l,d=o;break;case 4:h=l,c=i,d=o;break;case 5:h=o,c=i,d=l;break}return[h*255,c*255,d*255]};m.cmyk.rgb=function(t){var e=t[0]/100,i=t[1]/100,n=t[2]/100,s=t[3]/100,r,o,a;return r=1-Math.min(1,e*(1-s)+s),o=1-Math.min(1,i*(1-s)+s),a=1-Math.min(1,n*(1-s)+s),[r*255,o*255,a*255]};m.xyz.rgb=function(t){var e=t[0]/100,i=t[1]/100,n=t[2]/100,s,r,o;return s=e*3.2406+i*-1.5372+n*-.4986,r=e*-.9689+i*1.8758+n*.0415,o=e*.0557+i*-.204+n*1.057,s=s>.0031308?1.055*Math.pow(s,1/2.4)-.055:s*12.92,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:r*12.92,o=o>.0031308?1.055*Math.pow(o,1/2.4)-.055:o*12.92,s=Math.min(Math.max(0,s),1),r=Math.min(Math.max(0,r),1),o=Math.min(Math.max(0,o),1),[s*255,r*255,o*255]};m.xyz.lab=function(t){var e=t[0],i=t[1],n=t[2],s,r,o;return e/=95.047,i/=100,n/=108.883,e=e>.008856?Math.pow(e,1/3):7.787*e+16/116,i=i>.008856?Math.pow(i,1/3):7.787*i+16/116,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116,s=116*i-16,r=500*(e-i),o=200*(i-n),[s,r,o]};m.lab.xyz=function(t){var e=t[0],i=t[1],n=t[2],s,r,o;r=(e+16)/116,s=i/500+r,o=r-n/200;var a=Math.pow(r,3),l=Math.pow(s,3),h=Math.pow(o,3);return r=a>.008856?a:(r-16/116)/7.787,s=l>.008856?l:(s-16/116)/7.787,o=h>.008856?h:(o-16/116)/7.787,s*=95.047,r*=100,o*=108.883,[s,r,o]};m.lab.lch=function(t){var e=t[0],i=t[1],n=t[2],s,r,o;return s=Math.atan2(n,i),r=s*360/2/Math.PI,r<0&&(r+=360),o=Math.sqrt(i*i+n*n),[e,o,r]};m.lch.lab=function(t){var e=t[0],i=t[1],n=t[2],s,r,o;return o=n/360*2*Math.PI,s=i*Math.cos(o),r=i*Math.sin(o),[e,s,r]};m.rgb.ansi16=function(t){var e=t[0],i=t[1],n=t[2],s=1 in arguments?arguments[1]:m.rgb.hsv(t)[2];if(s=Math.round(s/50),s===0)return 30;var r=30+(Math.round(n/255)<<2|Math.round(i/255)<<1|Math.round(e/255));return s===2&&(r+=60),r};m.hsv.ansi16=function(t){return m.rgb.ansi16(m.hsv.rgb(t),t[2])};m.rgb.ansi256=function(t){var e=t[0],i=t[1],n=t[2];if(e===i&&i===n)return e<8?16:e>248?231:Math.round((e-8)/247*24)+232;var s=16+36*Math.round(e/255*5)+6*Math.round(i/255*5)+Math.round(n/255*5);return s};m.ansi16.rgb=function(t){var e=t%10;if(e===0||e===7)return t>50&&(e+=3.5),e=e/10.5*255,[e,e,e];var i=(~~(t>50)+1)*.5,n=(e&1)*i*255,s=(e>>1&1)*i*255,r=(e>>2&1)*i*255;return[n,s,r]};m.ansi256.rgb=function(t){if(t>=232){var e=(t-232)*10+8;return[e,e,e]}t-=16;var i,n=Math.floor(t/36)/5*255,s=Math.floor((i=t%36)/6)/5*255,r=i%6/5*255;return[n,s,r]};m.rgb.hex=function(t){var e=((Math.round(t[0])&255)<<16)+((Math.round(t[1])&255)<<8)+(Math.round(t[2])&255),i=e.toString(16).toUpperCase();return"000000".substring(i.length)+i};m.hex.rgb=function(t){var e=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];var i=e[0];e[0].length===3&&(i=i.split("").map(function(a){return a+a}).join(""));var n=parseInt(i,16),s=n>>16&255,r=n>>8&255,o=n&255;return[s,r,o]};m.rgb.hcg=function(t){var e=t[0]/255,i=t[1]/255,n=t[2]/255,s=Math.max(Math.max(e,i),n),r=Math.min(Math.min(e,i),n),o=s-r,a,l;return o<1?a=r/(1-o):a=0,o<=0?l=0:s===e?l=(i-n)/o%6:s===i?l=2+(n-e)/o:l=4+(e-i)/o+4,l/=6,l%=1,[l*360,o*100,a*100]};m.hsl.hcg=function(t){var e=t[1]/100,i=t[2]/100,n=1,s=0;return i<.5?n=2*e*i:n=2*e*(1-i),n<1&&(s=(i-.5*n)/(1-n)),[t[0],n*100,s*100]};m.hsv.hcg=function(t){var e=t[1]/100,i=t[2]/100,n=e*i,s=0;return n<1&&(s=(i-n)/(1-n)),[t[0],n*100,s*100]};m.hcg.rgb=function(t){var e=t[0]/360,i=t[1]/100,n=t[2]/100;if(i===0)return[n*255,n*255,n*255];var s=[0,0,0],r=e%1*6,o=r%1,a=1-o,l=0;switch(Math.floor(r)){case 0:s[0]=1,s[1]=o,s[2]=0;break;case 1:s[0]=a,s[1]=1,s[2]=0;break;case 2:s[0]=0,s[1]=1,s[2]=o;break;case 3:s[0]=0,s[1]=a,s[2]=1;break;case 4:s[0]=o,s[1]=0,s[2]=1;break;default:s[0]=1,s[1]=0,s[2]=a}return l=(1-i)*n,[(i*s[0]+l)*255,(i*s[1]+l)*255,(i*s[2]+l)*255]};m.hcg.hsv=function(t){var e=t[1]/100,i=t[2]/100,n=e+i*(1-e),s=0;return n>0&&(s=e/n),[t[0],s*100,n*100]};m.hcg.hsl=function(t){var e=t[1]/100,i=t[2]/100,n=i*(1-e)+.5*e,s=0;return n>0&&n<.5?s=e/(2*n):n>=.5&&n<1&&(s=e/(2*(1-n))),[t[0],s*100,n*100]};m.hcg.hwb=function(t){var e=t[1]/100,i=t[2]/100,n=e+i*(1-e);return[t[0],(n-e)*100,(1-n)*100]};m.hwb.hcg=function(t){var e=t[1]/100,i=t[2]/100,n=1-i,s=n-e,r=0;return s<1&&(r=(n-s)/(1-s)),[t[0],s*100,r*100]};m.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]};m.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]};m.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]};m.gray.hsl=m.gray.hsv=function(t){return[0,0,t[0]]};m.gray.hwb=function(t){return[0,100,t[0]]};m.gray.cmyk=function(t){return[0,0,0,t[0]]};m.gray.lab=function(t){return[t[0],0,0]};m.gray.hex=function(t){var e=Math.round(t[0]/100*255)&255,i=(e<<16)+(e<<8)+e,n=i.toString(16).toUpperCase();return"000000".substring(n.length)+n};m.rgb.gray=function(t){var e=(t[0]+t[1]+t[2])/3;return[e/255*100]};var _t=St.exports,Se=_t;function vn(){for(var t={},e=Object.keys(Se),i=e.length,n=0;n1&&(i=Array.prototype.slice.call(arguments)),t(i))};return"conversion"in t&&(e.conversion=t.conversion),e}function Rn(t){var e=function(i){if(i==null)return i;arguments.length>1&&(i=Array.prototype.slice.call(arguments));var n=t(i);if(typeof n=="object")for(var s=n.length,r=0;r>16&255,t>>8&255,t&255],this.valpha=1;else{this.valpha=1;var o=Object.keys(t);"alpha"in t&&(o.splice(o.indexOf("alpha"),1),this.valpha=typeof t.alpha=="number"?t.alpha:0);var a=o.sort().join("");if(!(a in Ye))throw new Error("Unable to parse color from object: "+JSON.stringify(t));this.model=Ye[a];var l=Y[this.model].labels,h=[];for(i=0;ii?(e+.05)/(i+.05):(i+.05)/(e+.05)},level:function(t){var e=this.contrast(t);return e>=7.1?"AAA":e>=4.5?"AA":""},isDark:function(){var t=this.rgb().color,e=(t[0]*299+t[1]*587+t[2]*114)/1e3;return e<128},isLight:function(){return!this.isDark()},negate:function(){for(var t=this.rgb(),e=0;e<3;e++)t.color[e]=255-t.color[e];return t},lighten:function(t){var e=this.hsl();return e.color[2]+=e.color[2]*t,e},darken:function(t){var e=this.hsl();return e.color[2]-=e.color[2]*t,e},saturate:function(t){var e=this.hsl();return e.color[1]+=e.color[1]*t,e},desaturate:function(t){var e=this.hsl();return e.color[1]-=e.color[1]*t,e},whiten:function(t){var e=this.hwb();return e.color[1]+=e.color[1]*t,e},blacken:function(t){var e=this.hwb();return e.color[2]+=e.color[2]*t,e},grayscale:function(){var t=this.rgb().color,e=t[0]*.3+t[1]*.59+t[2]*.11;return L.rgb(e,e,e)},fade:function(t){return this.alpha(this.valpha-this.valpha*t)},opaquer:function(t){return this.alpha(this.valpha+this.valpha*t)},rotate:function(t){var e=this.hsl(),i=e.color[0];return i=(i+t)%360,i=i<0?360+i:i,e.color[0]=i,e},mix:function(t,e){if(!t||!t.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof t);var i=t.rgb(),n=this.rgb(),s=e===void 0?.5:e,r=2*s-1,o=i.alpha()-n.alpha(),a=((r*o===-1?r:(r+o)/(1+r*o))+1)/2,l=1-a;return L.rgb(a*i.red()+l*n.red(),a*i.green()+l*n.green(),a*i.blue()+l*n.blue(),i.alpha()*s+n.alpha()*(1-s))}};Object.keys(Y).forEach(function(t){if(Pt.indexOf(t)===-1){var e=Y[t].channels;L.prototype[t]=function(){if(this.model===t)return new L(this);if(arguments.length)return new L(arguments,t);var i=typeof arguments[e]=="number"?e:this.valpha;return new L(Tn(Y[this.model][t].raw(this.color)).concat(i),t)},L[t]=function(i){return typeof i=="number"&&(i=De($e.call(arguments),e)),new L(i,t)}}});function Mn(t,e){return Number(t.toFixed(e))}function Sn(t){return function(e){return Mn(e,t)}}function M(t,e,i){return t=Array.isArray(t)?t:[t],t.forEach(function(n){(Te[n]||(Te[n]=[]))[e]=i}),t=t[0],function(n){var s;return arguments.length?(i&&(n=i(n)),s=this[t](),s.color[e]=n,s):(s=this[t]().color[e],i&&(s=i(s)),s)}}function T(t){return function(e){return Math.max(0,Math.min(t,e))}}function Tn(t){return Array.isArray(t)?t:[t]}function De(t,e){for(var i=0;iObject.keys(t).reduce((i,n)=>(e[n]?i[n]=e[n]:i[n]=t[n],i),{}),Ze=t=>typeof t=="number",K=t=>t[t.length-1],Ht=1,Ft=.25,Pn=Ht*2+Ft,Lt=(t,e,i=null,n=0)=>{t.forEach(s=>{const r=e(s,i,n);s.children&&Lt(s.children,e,r||s,n+1)})},Xt=t=>{const e=[];let i=0;return Lt(t,(n,s,r)=>{const o={source:n,end:n.start+n.duration,parent:s,level:r,index:i++};return e.push(o),o}),e.sort((n,s)=>n.level-s.level||n.source.start-s.source.start)},At=t=>{let e=!0,i=0,n=0;return t.forEach(({source:{start:s},end:r})=>{e?(i=s,n=r,e=!1):(i=ir?n:r)}),{min:i,max:n}},Hn=t=>{const e=t[0],i=K(t);return i.source.start+i.source.duration-e.source.start},Fn=(t,e,i)=>t.source.starte||t.source.start>e&&t.endt.starte||t.start>e&&t.endt.source.color===e.source.color&&t.source.type===e.source.type;function Wt(t,e=Xn){return t.reduce((i,n)=>{const s=K(i),r=s&&K(s);return r&&r.level===n.level&&e(r,n)?s.push(n):i.push([n]),i},[]).filter(i=>i.length).map(i=>({nodes:i}))}const Ie=(t,e,i=0,n=0,s=Ft,r=Ht)=>{let o=null,a=null,l=0;return t.reduce((h,{nodes:c})=>{o=null,a=null,l=0;for(const d of c)Fn(d,i,n)&&(o&&!a||o&&a&&(d.source.start-(a.source.start+a.source.duration))*e{const c=h[0],d=Hn(h);return{start:c.source.start,end:c.source.start+d,duration:d,type:c.source.type,color:c.source.color,level:c.level,nodes:h}})},Yt=(t,e,i,n,s,r)=>t.reduce((o,a)=>(Ln(a,i,n)&&(a.duration*e<=Pn?o.push(a):o.push(...Ie([a],e,i,n,s,r))),o),[]),Je=Pe.hsl(180,30,70);class An extends ie{constructor({data:e,colors:i={},name:n="flameChartPlugin"}){super(n),this.height=0,this.flatTree=[],this.positionY=0,this.colors={},this.selectedRegion=null,this.hoveredRegion=null,this.lastRandomColor=Je,this.metaClusterizedFlatTree=[],this.actualClusterizedFlatTree=[],this.initialClusterizedFlatTree=[],this.lastUsedColor=null,this.renderChartTimeout=-1,this.data=e,this.userColors=i,this.parseData(),this.reset()}init(e,i){super.init(e,i),this.interactionsEngine.on("change-position",this.handlePositionChange.bind(this)),this.interactionsEngine.on("select",this.handleSelect.bind(this)),this.interactionsEngine.on("hover",this.handleHover.bind(this)),this.interactionsEngine.on("up",this.handleMouseUp.bind(this)),this.initData()}handlePositionChange({deltaX:e,deltaY:i}){const n=this.positionY,s=this.renderEngine.parent.positionX;this.interactionsEngine.setCursor("grabbing"),this.positionY+i>=0?this.setPositionY(this.positionY+i):this.setPositionY(0),this.renderEngine.tryToChangePosition(e),(s!==this.renderEngine.parent.positionX||n!==this.positionY)&&this.renderEngine.parent.render()}handleMouseUp(){this.interactionsEngine.clearCursor()}setPositionY(e){this.positionY=e}reset(){this.colors={},this.lastRandomColor=Je,this.positionY=0,this.selectedRegion=null}calcMinMax(){const{flatTree:e}=this,{min:i,max:n}=At(e);this.min=i,this.max=n}handleSelect(e){var i,n;const s=this.findNodeInCluster(e);this.selectedRegion!==s&&(this.selectedRegion=s,this.renderEngine.render(),this.emit("select",{node:(n=(i=this.selectedRegion)===null||i===void 0?void 0:i.data)!==null&&n!==void 0?n:null,type:"flame-chart-node"}))}handleHover(e){this.hoveredRegion=this.findNodeInCluster(e)}findNodeInCluster(e){const i=this.interactionsEngine.getMouse();if(e&&e.type==="cluster"){const n=e.data.nodes.find(({level:s,source:{start:r,duration:o}})=>{const{x:a,y:l,w:h}=this.calcRect(r,o,s);return i.x>=a&&i.x<=a+h&&i.y>=l&&i.y<=l+this.renderEngine.blockHeight});if(n)return{data:n,type:"node"}}return null}getColor(e="_default",i){if(i)return i;if(this.colors[e])return this.colors[e];if(this.userColors[e]){const n=new Pe(this.userColors[e]);return this.colors[e]=n.rgb().toString(),this.colors[e]}return this.lastRandomColor=this.lastRandomColor.rotate(27),this.colors[e]=this.lastRandomColor.rgb().toString(),this.colors[e]}setData(e){this.data=e,this.parseData(),this.initData(),this.reset(),this.renderEngine.recalcMinMax(),this.renderEngine.resetParentView()}parseData(){this.flatTree=Xt(this.data),this.calcMinMax()}initData(){this.metaClusterizedFlatTree=Wt(this.flatTree),this.initialClusterizedFlatTree=Ie(this.metaClusterizedFlatTree,this.renderEngine.zoom,this.min,this.max),this.reclusterizeClusteredFlatTree()}reclusterizeClusteredFlatTree(){this.actualClusterizedFlatTree=Yt(this.initialClusterizedFlatTree,this.renderEngine.zoom,this.renderEngine.positionX,this.renderEngine.positionX+this.renderEngine.getRealView())}calcRect(e,i,n){const s=i*this.renderEngine.zoom;return{x:this.renderEngine.timeToPosition(e),y:n*(this.renderEngine.blockHeight+1)-this.positionY,w:s<=.1?.1:s>=3?s-1:s-s/3}}renderTooltip(){if(this.hoveredRegion){if(this.renderEngine.options.tooltip===!1)return!0;if(typeof this.renderEngine.options.tooltip=="function")this.renderEngine.options.tooltip(this.hoveredRegion,this.renderEngine,this.interactionsEngine.getGlobalMouse());else{const{data:{source:{start:e,duration:i,name:n,children:s}}}=this.hoveredRegion,r=this.renderEngine.getTimeUnits(),o=i-(s?s.reduce((d,{duration:p})=>d+p,0):0),a=this.renderEngine.getAccuracy()+2,l=`${n}`,h=`duration: ${i.toFixed(a)} ${r} ${s!=null&&s.length?`(self ${o.toFixed(a)} ${r})`:""}`,c=`start: ${e.toFixed(a)}`;this.renderEngine.renderTooltipFromData([{text:l},{text:h},{text:c}],this.interactionsEngine.getGlobalMouse())}return!0}return!1}render(){const{width:e,blockHeight:i,height:n,minTextWidth:s}=this.renderEngine;this.lastUsedColor=null,this.reclusterizeClusteredFlatTree();const r=l=>h=>{const{start:c,duration:d,level:p}=h,{x:g,y:u,w:b}=this.calcRect(c,d,p);g+b>0&&g0&&u{const{type:p,nodes:g,color:u}=l,b=this.interactionsEngine.getMouse();b.y>=c&&b.y<=c+i&&a(l,h,c,d),d>=.25&&this.renderEngine.addRectToRenderQueue(this.getColor(p,u),h,c,d),d>=s&&g.length===1&&this.renderEngine.addTextToRenderQueue(g[0].source.name,h,c,d)},a=(l,h,c,d)=>{this.interactionsEngine.addHitRegion("cluster",l,h,c,d,i)};if(this.actualClusterizedFlatTree.forEach(r(o)),this.selectedRegion&&this.selectedRegion.type==="node"){const{source:{start:l,duration:h},level:c}=this.selectedRegion.data,{x:d,y:p,w:g}=this.calcRect(l,h,c);this.renderEngine.addStrokeToRenderQueue("green",d,p,g,this.renderEngine.blockHeight)}clearTimeout(this.renderChartTimeout),this.renderChartTimeout=window.setTimeout(()=>{this.interactionsEngine.clearHitRegions(),this.actualClusterizedFlatTree.forEach(r(a))},16)}}const et={font:"10px sans-serif",fontColor:"black"};class Wn extends ie{constructor(e={}){super("timeGridPlugin"),this.styles=et,this.height=0,this.setSettings(e)}setSettings({styles:e}){this.styles=G(et,e),this.renderEngine&&this.overrideEngineSettings()}overrideEngineSettings(){this.renderEngine.setSettingsOverrides({styles:this.styles}),this.height=Math.round(this.renderEngine.charHeight+10)}init(e,i){super.init(e,i),this.overrideEngineSettings()}render(){return this.renderEngine.parent.timeGrid.renderTimes(this.renderEngine),this.renderEngine.parent.timeGrid.renderLines(0,this.renderEngine.height,this.renderEngine),!0}}class Yn extends ie{constructor({data:e,name:i="marksPlugin"}){super(i),this.hoveredRegion=null,this.selectedRegion=null,this.marks=this.prepareMarks(e),this.calcMinMax()}calcMinMax(){const{marks:e}=this;e.length&&(this.min=e.reduce((i,{timestamp:n})=>nn>i?n:i,e[0].timestamp))}init(e,i){super.init(e,i),this.interactionsEngine.on("hover",this.handleHover.bind(this)),this.interactionsEngine.on("select",this.handleSelect.bind(this))}handleHover(e){this.hoveredRegion=e}handleSelect(e){var i;this.selectedRegion!==e&&(this.selectedRegion=e,this.emit("select",{node:(i=e==null?void 0:e.data)!==null&&i!==void 0?i:null,type:"mark"}),this.renderEngine.render())}get height(){return this.renderEngine.blockHeight+2}prepareMarks(e){return e.map(({color:i,...n})=>({...n,color:new Pe(i).alpha(.7).rgb().toString()})).sort((i,n)=>i.timestamp-n.timestamp)}setMarks(e){this.marks=this.prepareMarks(e),this.calcMinMax(),this.renderEngine.recalcMinMax(),this.renderEngine.resetParentView()}calcMarksBlockPosition(e,i){return e>0&&i>e?i:e}render(){this.marks.reduce((e,i)=>{const{timestamp:n,color:s,shortName:r}=i,{width:o}=this.renderEngine.ctx.measureText(r),a=o+this.renderEngine.blockPaddingLeftRight*2,l=this.renderEngine.timeToPosition(n),h=this.calcMarksBlockPosition(l,e);return this.renderEngine.addRectToRenderQueue(s,h,1,a),this.renderEngine.addTextToRenderQueue(r,h,1,a),this.interactionsEngine.addHitRegion("timestamp",i,h,1,a,this.renderEngine.blockHeight),h+a},0)}postRender(){this.marks.forEach(e=>{const{timestamp:i,color:n}=e,s=this.renderEngine.timeToPosition(i);this.renderEngine.parent.setCtxValue("strokeStyle",n),this.renderEngine.parent.setCtxValue("lineWidth",1),this.renderEngine.parent.callCtx("setLineDash",[8,7]),this.renderEngine.parent.ctx.beginPath(),this.renderEngine.parent.ctx.moveTo(s,this.renderEngine.position),this.renderEngine.parent.ctx.lineTo(s,this.renderEngine.parent.height),this.renderEngine.parent.ctx.stroke()})}renderTooltip(){if(this.hoveredRegion&&this.hoveredRegion.type==="timestamp"){if(this.renderEngine.options.tooltip===!1)return!0;if(typeof this.renderEngine.options.tooltip=="function")this.renderEngine.options.tooltip(this.hoveredRegion,this.renderEngine,this.interactionsEngine.getGlobalMouse());else{const{data:{fullName:e,timestamp:i}}=this.hoveredRegion,n=this.renderEngine.getAccuracy()+2,s=`${e}`,r=`${i.toFixed(n)} ${this.renderEngine.timeUnits}`;this.renderEngine.renderTooltipFromData([{text:s},{text:r}],this.interactionsEngine.getGlobalMouse())}return!0}return!1}}const Dn=85,tt={color:"rgba(90,90,90,0.20)"};class Dt{constructor(e){this.styles=tt,this.timeUnits="ms",this.start=0,this.end=0,this.accuracy=0,this.delta=0,this.setSettings(e)}setDefaultRenderEngine(e){this.renderEngine=e,this.timeUnits=this.renderEngine.getTimeUnits()}setSettings({styles:e}){this.styles=G(tt,e),this.renderEngine&&(this.timeUnits=this.renderEngine.getTimeUnits())}recalc(){const e=this.renderEngine.max-this.renderEngine.min,i=this.renderEngine.width/Dn,n=e/i,s=this.renderEngine.getRealView(),r=s/(e||1);this.delta=n/Math.pow(2,Math.floor(Math.log2(1/r))),this.start=Math.floor((this.renderEngine.positionX-this.renderEngine.min)/this.delta),this.end=Math.ceil(s/this.delta)+this.start,this.accuracy=this.calcNumberFix()}calcNumberFix(){var e;const i=(this.delta/2).toString();if(i.includes("e"))return Number((e=i.match(/\d+$/))===null||e===void 0?void 0:e[0]);const n=i.match(/(0\.0*)/);return n?n[0].length-1:0}getTimelineAccuracy(){return this.accuracy}forEachTime(e){for(let i=this.start;i<=this.end;i++){const n=i*this.delta+this.renderEngine.min,s=this.renderEngine.timeToPosition(Number(n.toFixed(this.accuracy)));e(s,n)}}renderLines(e,i,n=this.renderEngine){n.setCtxValue("fillStyle",this.styles.color),this.forEachTime(s=>{n.fillRect(s,e,1,i)})}renderTimes(e=this.renderEngine){e.setCtxValue("fillStyle",e.styles.fontColor),e.setCtxFont(e.styles.font),this.forEachTime((i,n)=>{e.fillText(n.toFixed(this.accuracy)+this.timeUnits,i+e.blockPaddingLeftRight,e.charHeight)})}}function Re(t,e,i,n){return t.length?t.reduce((s,{[e]:r})=>i(s,r),t[0][e]):n}const zt=t=>t.items.map(({name:e,intervals:i,timing:n,meta:s},r)=>{const a=(typeof i=="string"?t.intervals[i]:i).map(({start:g,end:u,color:b,type:y,name:v})=>({start:typeof g=="string"?n[g]:g,end:typeof u=="string"?n[u]:u,color:b,name:v,type:y})).filter(({start:g,end:u})=>typeof g=="number"&&typeof u=="number"),l=a.filter(({type:g})=>g==="block"),h=Re(l,"start",Math.min,0),c=Re(l,"end",Math.max,0),d=Re(a,"start",Math.min,0),p=Re(a,"end",Math.max,0);return{intervals:a,textBlock:{start:h,end:c},name:e,timing:n,min:d,max:p,index:r,meta:s}}).filter(({intervals:e})=>e.length).sort((e,i)=>e.min-i.min||i.max-e.max),zn=(t,e,i,n)=>n-(t-e)*i,$n={fillColor:"rgba(0, 0, 0, 0.1)",lineWidth:1,lineDash:[],lineColor:"rgba(0, 0, 0, 0.5)",type:"smooth"},$t=t=>{const e=[],i=t.map(o=>{var a;return{group:o.units&&!o.group?o.units:"default",...o,style:{lineWidth:1,fillColor:"rgba(0, 0, 0, 0.15)",lineColor:"rgba(0, 0, 0, 0.20)",lineDash:[],type:"smooth",...(a=o.style)!==null&&a!==void 0?a:{}}}}),n=i.reduce((o,{points:a,group:l,min:h,max:c},d)=>(o[l]||(o[l]={min:h??a[0][1],max:c??a[0][1]}),e[d]={start:a[0][0],end:K(a)[0]},a.forEach(([p,g])=>{h===void 0&&(o[l].min=Math.min(o[l].min,g)),c===void 0&&(o[l].max=Math.max(o[l].max,g)),e[d].start=Math.min(e[d].start,p),e[d].end=Math.max(e[d].end,p)}),o),{}),s=Math.min(...e.map(({start:o})=>o)),r=Math.max(...e.map(({end:o})=>o));return{summary:n,total:{min:s,max:r},timeseries:i,timeboxes:e}},It=(t,e,i)=>{var n,s;return e.dynamicMinMax?t.reduce((r,[,o])=>(r.min=Math.min(r.min,o),r.max=Math.max(r.max,o),r),{min:(n=e.min)!==null&&n!==void 0?n:1/0,max:(s=e.max)!==null&&s!==void 0?s:-1/0}):e.group?i[e.group]:{min:-1/0,max:1/0}},Ot=(t,{timeseries:e})=>{const i=e.reduce((n,{points:s,units:r,name:o,group:a})=>{const l=In(s,t),c=a!==r&&a!=="default"?a:"default";let d="";return l&&(o&&(d+=o+": "),d+=l[1].toFixed(2),r&&(d+=r)),n[c]||(n[c]=[]),n[c].push(d),n},{});return Object.entries(i).reduce((n,[s,r])=>(s!=="default"&&n.push({text:s,color:"black"}),r.forEach(o=>{n.push({text:o})}),n),[])},ke=({engine:t,points:e,style:i,min:n,max:s})=>{const r={...$n,...i??{}};t.setCtxValue("strokeStyle",r.lineColor),t.setCtxValue("fillStyle",r.fillColor),t.setCtxValue("lineWidth",r.lineWidth),t.callCtx("setLineDash",r.lineDash),t.ctx.beginPath();const o=(t.height-t.charHeight-4)/(s-n);if(e.length>1){const a=e.map(([l,h])=>[t.timeToPosition(l),zn(h,n,o,t.height)]);if(t.ctx.moveTo(a[0][0],t.height),t.ctx.lineTo(a[0][0],a[0][1]),r.type==="smooth"||!r.type){for(let c=1;c{if(t[0][0]>=e)return i?t[0]:null;if(K(t)[0]<=e)return i?K(t):null;if(t.length<=1)return t[0];let n=0,s=t.length-1;for(;n<=s;){const r=Math.ceil((s+n)/2);if(e>=t[r-1][0]&&e<=t[r][0]){const o=Math.abs(e-t[r-1][0])this.timeout=void 0,300),this.leftKnobMoving=!1,this.rightKnobMoving=!1,this.interactionsEngine.clearCursor(),this.selectingActive&&!n&&this.applyChanges(),this.selectingActive=!1,n&&!s){const r=this.getRightKnobPosition(),o=this.getLeftKnobPosition();i.x>r?this.setRightKnobPosition(i.x):i.x>o&&i.xr-i.x?this.setRightKnobPosition(i.x):this.setLeftKnobPosition(i.x):this.setLeftKnobPosition(i.x),this.applyChanges()}s&&(this.renderEngine.parent.setZoom(this.renderEngine.getInitialZoom()),this.renderEngine.parent.setPositionX(this.renderEngine.min),this.renderEngine.parent.render())}handleMouseMove(e,i){this.leftKnobMoving&&(this.setLeftKnobPosition(i.x),this.applyChanges()),this.rightKnobMoving&&(this.setRightKnobPosition(i.x),this.applyChanges()),this.selectingActive&&(this.startSelectingPosition>=i.x?(this.setLeftKnobPosition(i.x),this.setRightKnobPosition(this.startSelectingPosition)):(this.setRightKnobPosition(i.x),this.setLeftKnobPosition(this.startSelectingPosition)),this.renderEngine.render())}postInit(){this.offscreenRenderEngine=this.renderEngine.makeChild(),this.offscreenRenderEngine.setSettingsOverrides({styles:this.styles}),this.timeGrid=new Dt({styles:this.renderEngine.parent.timeGrid.styles}),this.timeGrid.setDefaultRenderEngine(this.offscreenRenderEngine),this.offscreenRenderEngine.on("resize",()=>{this.offscreenRenderEngine.setZoom(this.renderEngine.getInitialZoom()),this.offscreenRender()}),this.offscreenRenderEngine.on("min-max-change",()=>this.shouldRender=!0),this.setData({flameChartNodes:this.flameChartNodes,waterfall:this.waterfall,timeseries:this.timeseries})}setLeftKnobPosition(e){const i=this.getRightKnobPosition();if(ei+1){const n=this.renderEngine.getRealView(),s=this.renderEngine.positionX+n-(this.offscreenRenderEngine.pixelToTime(e)+this.renderEngine.min),r=this.renderEngine.width/(n-s);this.renderEngine.setZoom(r)}}getLeftKnobPosition(){return(this.renderEngine.positionX-this.renderEngine.min)*this.renderEngine.getInitialZoom()}getRightKnobPosition(){return(this.renderEngine.positionX-this.renderEngine.min+this.renderEngine.getRealView())*this.renderEngine.getInitialZoom()}applyChanges(){this.renderEngine.parent.setPositionX(this.renderEngine.positionX),this.renderEngine.parent.setZoom(this.renderEngine.zoom),this.renderEngine.parent.render()}setSettings({styles:e}={styles:this.styles}){this.styles=G(nt,e),this.height=this.styles.height,this.offscreenRenderEngine&&(this.offscreenRenderEngine.setSettingsOverrides({styles:this.styles}),this.timeGrid.setSettings({styles:this.renderEngine.parent.timeGrid.styles})),this.shouldRender=!0}makeFlameChartDots(){if(this.flameChartNodes){const e=[],i=Xt(this.flameChartNodes),{min:n,max:s}=At(i);this.min=n,this.max=s,this.clusters=Wt(i,()=>!0),this.actualClusters=Ie(this.clusters,this.renderEngine.zoom,this.min,this.max,it,1/0),this.actualClusterizedFlatTree=Yt(this.actualClusters,this.renderEngine.zoom,this.min,this.max,it,1/0).sort((a,l)=>a.start-l.start),this.actualClusterizedFlatTree.forEach(({start:a,end:l})=>{e.push({time:a,type:"start"},{time:l,type:"end"})}),e.sort((a,l)=>a.time-l.time);const{dots:r,maxLevel:o}=this.makeRenderDots(e);this.flameChartDots=r,this.flameChartMaxLevel=o}}makeRenderDots(e){const i=[];let n=0,s=0;return e.forEach(({type:r,time:o})=>{(r==="start"||r==="end")&&i.push([o,n]),r==="start"?n++:n--,s=Math.max(s,n),i.push([o,n])}),{dots:i,maxLevel:s}}makeWaterfallDots(){if(this.waterfall){const e=zt(this.waterfall),n=Object.entries(e.reduce((r,{intervals:o})=>(o.forEach(a=>{r[a.color]||(r[a.color]=[]),r[a.color].push(a)}),r),{})).map(([r,o])=>{const a=[];return o.forEach(({start:l,end:h})=>{a.push({type:"start",time:l}),a.push({type:"end",time:h})}),a.sort((l,h)=>l.time-h.time),{color:r,points:a}});let s=0;this.waterfallDots=n.map(({color:r,points:o})=>{const{dots:a,maxLevel:l}=this.makeRenderDots(o);return s=Math.max(s,l),{color:r,dots:a}}),this.waterfallMaxLevel=s}}prepareTimeseries(){var e;!((e=this.timeseries)===null||e===void 0)&&e.length?this.preparedTimeseries=$t(this.timeseries):this.preparedTimeseries=void 0}setData({flameChartNodes:e,waterfall:i,timeseries:n}){this.flameChartNodes=e,this.waterfall=i,this.timeseries=n,this.makeFlameChartDots(),this.makeWaterfallDots(),this.prepareTimeseries(),this.offscreenRender()}setTimeseries(e){this.timeseries=e,this.prepareTimeseries(),this.offscreenRender()}setFlameChartNodes(e){this.flameChartNodes=e,this.makeFlameChartDots(),this.offscreenRender()}setWaterfall(e){this.waterfall=e,this.makeWaterfallDots(),this.offscreenRender()}offscreenRender(){const e=this.offscreenRenderEngine.getInitialZoom();if(this.offscreenRenderEngine.setZoom(e),this.offscreenRenderEngine.setPositionX(this.offscreenRenderEngine.min),this.offscreenRenderEngine.clear(),this.timeGrid.recalc(),this.timeGrid.renderLines(0,this.offscreenRenderEngine.height),this.timeGrid.renderTimes(),ke({engine:this.offscreenRenderEngine,points:this.flameChartDots,min:0,max:this.flameChartMaxLevel,style:{lineColor:this.styles.graphStrokeColor,fillColor:this.styles.graphFillColor,type:this.styles.flameChartGraphType}}),this.waterfallDots.forEach(({color:i,dots:n})=>{const s=new Pe(i);ke({engine:this.offscreenRenderEngine,points:n,min:0,max:this.waterfallMaxLevel,style:{lineColor:s.alpha(this.styles.waterfallStrokeOpacity).rgb().toString(),fillColor:s.alpha(this.styles.waterfallFillOpacity).rgb().toString(),type:this.styles.waterfallGraphType}})}),this.preparedTimeseries){const{summary:i,timeseries:n}=this.preparedTimeseries;n.forEach(s=>{const r=It(s.points,s,i);ke({engine:this.offscreenRenderEngine,points:s.points,min:r.min,max:r.max,style:s.style})})}this.offscreenRenderEngine.setCtxValue("fillStyle",this.styles.bottomLineColor),this.offscreenRenderEngine.ctx.fillRect(0,this.height-1,this.offscreenRenderEngine.width,1)}renderTimeframe(){const e=this.renderEngine.positionX-this.renderEngine.min,i=e*this.renderEngine.getInitialZoom(),n=(e+this.renderEngine.getRealView())*this.renderEngine.getInitialZoom(),s=i-this.styles.knobSize/2,r=n-this.styles.knobSize/2,o=this.renderEngine.height/3;this.renderEngine.setCtxValue("fillStyle",this.styles.overlayColor),this.renderEngine.fillRect(0,0,i,this.renderEngine.height),this.renderEngine.fillRect(n,0,this.renderEngine.width-n,this.renderEngine.height),this.renderEngine.setCtxValue("fillStyle",this.styles.overlayColor),this.renderEngine.fillRect(i-1,0,1,this.renderEngine.height),this.renderEngine.fillRect(n+1,0,1,this.renderEngine.height),this.renderEngine.setCtxValue("fillStyle",this.styles.knobColor),this.renderEngine.fillRect(s,0,this.styles.knobSize,o),this.renderEngine.fillRect(r,0,this.styles.knobSize,o),this.renderEngine.renderStroke(this.styles.knobStrokeColor,s,0,this.styles.knobSize,o),this.renderEngine.renderStroke(this.styles.knobStrokeColor,r,0,this.styles.knobSize,o),this.interactionsEngine.addHitRegion("timeframeKnob","left",s,0,this.styles.knobSize,o,"ew-resize"),this.interactionsEngine.addHitRegion("timeframeKnob","right",r,0,this.styles.knobSize,o,"ew-resize"),this.interactionsEngine.addHitRegion("timeframeArea",null,0,0,this.renderEngine.width,this.renderEngine.height,"text")}renderTooltip(){if(this.hoveredRegion){const i=this.interactionsEngine.getMouse().x/this.renderEngine.getInitialZoom()+this.renderEngine.min,n=`${i.toFixed(this.renderEngine.getAccuracy()+2)} ${this.renderEngine.timeUnits}`,s=this.preparedTimeseries?Ot(i,this.preparedTimeseries):[];return this.renderEngine.renderTooltipFromData([{text:n},...s],this.interactionsEngine.getGlobalMouse()),!0}return!1}render(){return this.shouldRender&&(this.shouldRender=!1,this.offscreenRender()),this.renderEngine.copy(this.offscreenRenderEngine),this.renderTimeframe(),this.interactionsEngine.addHitRegion("timeframe",null,0,0,this.renderEngine.width,this.height),!0}}const Nn={height:56},st=2;class Un extends ie{constructor({name:e="timeseriesPlugin",data:i,settings:n}){super(e),this.height=56,this.hoveredRegion=null,this.setSettings(n),this.setData(i)}init(e,i){super.init(e,i),this.interactionsEngine.on("change-position",this.handlePositionChange.bind(this)),this.interactionsEngine.on("hover",this.handleHover.bind(this)),this.interactionsEngine.on("up",this.handleMouseUp.bind(this))}handlePositionChange(e){const i=this.renderEngine.parent.positionX;this.interactionsEngine.setCursor("grabbing"),this.renderEngine.tryToChangePosition(e.deltaX),i!==this.renderEngine.parent.positionX&&this.renderEngine.parent.render()}handleMouseUp(){this.interactionsEngine.clearCursor()}setSettings({styles:e}={styles:this.styles}){this.styles=G(Nn,e),this.height=this.styles.height}setData(e){const i=$t(e);this.data=i,this.min=i.total.min,this.max=i.total.max,this.renderEngine&&(this.renderEngine.recalcMinMax(),this.renderEngine.resetParentView())}handleHover(e){this.hoveredRegion=e}renderTooltip(){if(this.hoveredRegion){const e=this.interactionsEngine.getMouse().x,i=this.renderEngine.pixelToTime(e)+this.renderEngine.positionX,n=`${i.toFixed(this.renderEngine.getAccuracy()+2)} ${this.renderEngine.timeUnits}`,s=Ot(i,this.data);return this.renderEngine.renderTooltipFromData([{text:n},...s],this.interactionsEngine.getGlobalMouse()),!0}return!1}render(){if(this.data.timeseries.length===0)return;const e=this.renderEngine.positionX,i=this.renderEngine.positionX+this.renderEngine.getRealView();this.data.timeseries.forEach((n,s)=>{if(this.data.timeboxes[s].endi)return;const r=e<=this.data.timeboxes[s].start?0:Math.max(n.points.findIndex(([h])=>h>=e)-st,0),o=i>=this.data.timeboxes[s].end?n.points.length:n.points.findIndex(([h])=>h>=i)+st,a=n.points.slice(r,o),l=It(a,n,this.data.summary);ke({engine:this.renderEngine,points:a,min:l.min,max:l.max,style:n.style})}),this.interactionsEngine.addHitRegion("timeseries",null,0,0,this.renderEngine.width,this.height)}}const Xe={defaultHeight:68};class Gn extends ie{constructor({data:e,name:i="waterfallPlugin",settings:n}){super(i),this.styles=Xe,this.height=Xe.defaultHeight,this.data=[],this.positionY=0,this.hoveredRegion=null,this.selectedRegion=null,this.initialData=[],this.setData(e),this.setSettings(n)}init(e,i){super.init(e,i),this.interactionsEngine.on("change-position",this.handlePositionChange.bind(this)),this.interactionsEngine.on("hover",this.handleHover.bind(this)),this.interactionsEngine.on("select",this.handleSelect.bind(this)),this.interactionsEngine.on("up",this.handleMouseUp.bind(this))}handlePositionChange({deltaX:e,deltaY:i}){const n=this.positionY,s=this.renderEngine.parent.positionX;this.interactionsEngine.setCursor("grabbing"),this.positionY+i>=0?this.setPositionY(this.positionY+i):this.setPositionY(0),this.renderEngine.tryToChangePosition(e),(s!==this.renderEngine.parent.positionX||n!==this.positionY)&&this.renderEngine.parent.render()}handleMouseUp(){this.interactionsEngine.clearCursor()}handleHover(e){this.hoveredRegion=e}handleSelect(e){this.selectedRegion!==e&&(this.selectedRegion=e,this.emit("select",{node:e!=null&&e.data?this.initialData[e.data]:null,type:"waterfall-node"}),this.renderEngine.render())}setPositionY(e){this.positionY=e}setSettings({styles:e}){this.styles=G(Xe,e),this.height=this.styles.defaultHeight,this.positionY=0}setData(e){this.positionY=0,this.initialData=e.items,this.data=zt(e),e.items.length&&(this.min=this.data.reduce((i,{min:n})=>Math.min(i,n),this.data[0].min),this.max=this.data.reduce((i,{max:n})=>Math.max(i,n),this.data[0].max)),this.renderEngine&&(this.renderEngine.recalcMinMax(),this.renderEngine.resetParentView())}calcRect(e,i,n){const s=i*this.renderEngine.zoom;return{x:this.renderEngine.timeToPosition(e),w:n?s<=.1?.1:s>=3?s-1:s-s/3:s}}renderTooltip(){if(this.hoveredRegion){if(this.renderEngine.options.tooltip===!1)return!0;if(typeof this.renderEngine.options.tooltip=="function"){const{data:e}=this.hoveredRegion,i={...this.hoveredRegion};i.data=this.data.find(({index:n})=>e===n),this.renderEngine.options.tooltip(i,this.renderEngine,this.interactionsEngine.getGlobalMouse())}else{const{data:e}=this.hoveredRegion,i=this.data.find(({index:n})=>e===n);if(i){const{name:n,intervals:s,timing:r,meta:o=[]}=i,a=this.renderEngine.getTimeUnits(),l=this.renderEngine.getAccuracy()+2,h={text:`${n}`},c={text:"intervals",color:this.renderEngine.styles.tooltipHeaderFontColor},d=s.map(({name:y,start:v,end:f})=>({text:`${y}: ${(f-v).toFixed(l)} ${a}`})),p={text:"timing",color:this.renderEngine.styles.tooltipHeaderFontColor},g=Object.entries(r).filter(([,y])=>typeof y=="number").map(([y,v])=>({text:`${y}: ${v.toFixed(l)} ${a}`})),u={text:"meta",color:this.renderEngine.styles.tooltipHeaderFontColor},b=o?o.map(({name:y,value:v,color:f})=>({text:`${y}: ${v}`,color:f})):[];this.renderEngine.renderTooltipFromData([h,c,...d,p,...g,...b.length?[u,...b]:[]],this.interactionsEngine.getGlobalMouse())}}return!0}return!1}render(){const e=this.renderEngine.positionX+this.renderEngine.getRealView(),i=this.renderEngine.positionX,n=this.renderEngine.blockHeight+1,s=[];this.data.filter(({min:o,max:a})=>!(ea&&e>o)).map(o=>{for(;s.length&&o.min-K(s).max>0;)s.pop();const a=s.length,l={...o,level:a};return s.push(o),l}).forEach(({name:o,intervals:a,textBlock:l,level:h,index:c})=>{const d=h*n-this.positionY;if(d+n>=0&&d-n<=this.renderEngine.height){const p=this.renderEngine.timeToPosition(l.start),g=this.renderEngine.timeToPosition(l.end);this.renderEngine.addTextToRenderQueue(o,p,d,g-p);const{x:u,w:b}=a.reduce((y,{color:v,start:f,end:w,type:P},C)=>{const{x:R,w:O}=this.calcRect(f,w-f,C===a.length-1);return P==="block"&&this.renderEngine.addRectToRenderQueue(v,R,d,O),{x:y.x===null?R:y.x,w:O+y.w}},{x:null,w:0});this.selectedRegion&&this.selectedRegion.type==="waterfall-node"&&this.selectedRegion.data===c&&this.renderEngine.addStrokeToRenderQueue("green",u??0,d,b,this.renderEngine.blockHeight),this.interactionsEngine.addHitRegion("waterfall-node",c,u??0,d,b,this.renderEngine.blockHeight)}},0)}}const rt={height:16,color:"rgb(202,202,202, 0.25)",strokeColor:"rgb(138,138,138, 0.50)",dotsColor:"rgb(97,97,97)",fontColor:"black",font:"10px sans-serif",triangleWidth:10,triangleHeight:7,triangleColor:"black",leftPadding:10};class ot extends ie{constructor(e,i){super("togglePlugin"),this.styles=rt,this.height=0,this.resizeActive=!1,this.resizeStartHeight=0,this.resizeStartPosition=0,this.setSettings(i),this.title=e}setSettings({styles:e}={}){this.styles=G(rt,e),this.height=this.styles.height+1}init(e,i){super.init(e,i),this.getNextEngine().setFlexible(),this.interactionsEngine.on("click",s=>{if(s&&s.type==="toggle"&&s.data===this.renderEngine.id){const r=this.getNextEngine();r.collapsed?r.expand():r.collapse(),this.renderEngine.parent.recalcChildrenSizes(),this.renderEngine.parent.render()}}),this.interactionsEngine.on("down",s=>{if(s&&s.type==="knob-resize"&&s.data===this.renderEngine.id){const r=this.getPrevEngine();this.interactionsEngine.setCursor("row-resize"),this.resizeActive=!0,this.resizeStartHeight=r.height,this.resizeStartPosition=this.interactionsEngine.getGlobalMouse().y}}),this.interactionsEngine.parent.on("move",()=>{if(this.resizeActive){const s=this.getPrevEngine(),r=this.interactionsEngine.getGlobalMouse();if(s.flexible){const o=this.resizeStartHeight-(this.resizeStartPosition-r.y);o<=0?(s.collapse(),s.resize({height:0})):(s.collapsed&&s.expand(),s.resize({height:o})),this.renderEngine.parent.render()}}}),this.interactionsEngine.parent.on("up",()=>{this.interactionsEngine.clearCursor(),this.resizeActive=!1})}getPrevEngine(){var e;const i=((e=this.renderEngine.id)!==null&&e!==void 0?e:0)-1;return this.renderEngine.parent.children[i]}getNextEngine(){var e;const i=((e=this.renderEngine.id)!==null&&e!==void 0?e:0)+1;return this.renderEngine.parent.children[i]}render(){const e=this.getNextEngine(),i=this.getPrevEngine(),n=this.styles.leftPadding+this.styles.triangleWidth,s=this.renderEngine.width/2,r=this.styles.height/2;this.renderEngine.setCtxFont(this.styles.font),this.renderEngine.setCtxValue("fillStyle",this.styles.color),this.renderEngine.setCtxValue("strokeStyle",this.styles.strokeColor),this.renderEngine.fillRect(0,0,this.renderEngine.width,this.styles.height),this.renderEngine.setCtxValue("fillStyle",this.styles.fontColor),this.renderEngine.addTextToRenderQueue(this.title,n,0,this.renderEngine.width),this.renderEngine.renderTriangle(this.styles.triangleColor,this.styles.leftPadding,this.styles.height/2,this.styles.triangleWidth,this.styles.triangleHeight,e.collapsed?"right":"bottom");const{width:o}=this.renderEngine.ctx.measureText(this.title),a=o+n;this.interactionsEngine.addHitRegion("toggle",this.renderEngine.id,0,0,a,this.styles.height,"pointer"),i.flexible&&(this.renderEngine.renderCircle(this.styles.dotsColor,s,r,1.5),this.renderEngine.renderCircle(this.styles.dotsColor,s-10,r,1.5),this.renderEngine.renderCircle(this.styles.dotsColor,s+10,r,1.5),this.interactionsEngine.addHitRegion("knob-resize",this.renderEngine.id,a,0,this.renderEngine.width-a,this.styles.height,"row-resize"))}}const at=`QWERTYUIOPASDFGHJKLZXCVBNMqwertyuiopasdfghjklzxcvbnm1234567890_-+()[]{}\\/|'";:.,?~`,Bn=()=>{const t=navigator.userAgent.toLowerCase();return t.includes("safari")?!t.includes("chrome"):!1};function Vn(t){const e=t,i=window.devicePixelRatio||1,n=e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1;return i/n}const lt={tooltip:void 0,timeUnits:"ms"},ht={blockHeight:16,blockPaddingLeftRight:4,backgroundColor:"white",font:"10px sans-serif",fontColor:"black",tooltipHeaderFontColor:"black",tooltipBodyFontColor:"#688f45",tooltipBackgroundColor:"white",tooltipShadowColor:"black",tooltipShadowBlur:6,tooltipShadowOffsetX:0,tooltipShadowOffsetY:0,headerHeight:14,headerColor:"rgba(112, 112, 112, 0.25)",headerStrokeColor:"rgba(112, 112, 112, 0.5)",headerTitleLeftPadding:16};class Nt extends fe.EventEmitter{constructor(e,i){super(),this.options=lt,this.timeUnits="ms",this.styles=ht,this.blockPaddingLeftRight=0,this.blockHeight=0,this.blockPaddingTopBottom=0,this.charHeight=0,this.placeholderWidth=0,this.avgCharWidth=0,this.minTextWidth=0,this.textRenderQueue=[],this.strokeRenderQueue=[],this.rectRenderQueue={},this.zoom=0,this.positionX=0,this.min=0,this.max=0,this.ctxCachedSettings={},this.ctxCachedCalls={},this.setCtxValue=(n,s)=>{this.ctxCachedSettings[n]!==s&&(this.ctx[n]=s,this.ctxCachedSettings[n]=s)},this.callCtx=(n,s)=>{(!this.ctxCachedCalls[n]||this.ctxCachedCalls[n]!==s)&&(this.ctx[n](s),this.ctxCachedCalls[n]=s)},this.width=e.width,this.height=e.height,this.isSafari=Bn(),this.canvas=e,this.ctx=e.getContext("2d",{alpha:!1}),this.pixelRatio=Vn(this.ctx),this.setSettings(i),this.applyCanvasSize(),this.reset()}setSettings({options:e,styles:i}){this.options=G(lt,e),this.styles=G(ht,i),this.timeUnits=this.options.timeUnits,this.blockHeight=this.styles.blockHeight,this.ctx.font=this.styles.font;const{actualBoundingBoxAscent:n,actualBoundingBoxDescent:s,width:r}=this.ctx.measureText(at),{width:o}=this.ctx.measureText("…"),a=n+s;this.blockPaddingLeftRight=this.styles.blockPaddingLeftRight,this.blockPaddingTopBottom=Math.ceil((this.blockHeight-a)/2),this.charHeight=a+1,this.placeholderWidth=o,this.avgCharWidth=r/at.length,this.minTextWidth=this.avgCharWidth+this.placeholderWidth}reset(){this.textRenderQueue=[],this.strokeRenderQueue=[],this.rectRenderQueue={},this.ctxCachedCalls={},this.ctxCachedSettings={}}setCtxShadow(e){var i,n;this.setCtxValue("shadowBlur",e.blur),this.setCtxValue("shadowColor",e.color),this.setCtxValue("shadowOffsetY",(i=e.offsetY)!==null&&i!==void 0?i:0),this.setCtxValue("shadowOffsetX",(n=e.offsetX)!==null&&n!==void 0?n:0)}setCtxFont(e){e&&this.ctx.font!==e&&(this.ctx.font=e)}fillRect(e,i,n,s){this.ctx.fillRect(e,i,n,s)}fillText(e,i,n){this.ctx.fillText(e,i,n)}renderBlock(e,i,n,s){this.setCtxValue("fillStyle",e),this.ctx.fillRect(i,n,s,this.blockHeight)}renderStroke(e,i,n,s,r){this.setCtxValue("strokeStyle",e),this.ctx.setLineDash([]),this.ctx.strokeRect(i,n,s,r)}clear(e=this.width,i=this.height,n=0,s=0){this.setCtxValue("fillStyle",this.styles.backgroundColor),this.ctx.clearRect(n,s,e,i-1),this.ctx.fillRect(n,s,e,i),this.ctxCachedCalls={},this.ctxCachedSettings={},this.emit("clear")}timeToPosition(e){return e*this.zoom-this.positionX*this.zoom}pixelToTime(e){return e/this.zoom}setZoom(e){this.zoom=e}setPositionX(e){const i=this.positionX;return this.positionX=e,e-i}addRectToRenderQueue(e,i,n,s){this.rectRenderQueue[e]||(this.rectRenderQueue[e]=[]),this.rectRenderQueue[e].push({x:i,y:n,w:s})}addTextToRenderQueue(e,i,n,s){if(e){const r=s-(this.blockPaddingLeftRight*2-(i<0?i:0));r>0&&this.textRenderQueue.push({text:e,x:i,y:n,w:s,textMaxWidth:r})}}addStrokeToRenderQueue(e,i,n,s,r){this.strokeRenderQueue.push({color:e,x:i,y:n,w:s,h:r})}resolveRectRenderQueue(){Object.entries(this.rectRenderQueue).forEach(([e,i])=>{this.setCtxValue("fillStyle",e),i.forEach(({x:n,y:s,w:r})=>this.renderBlock(e,n,s,r))}),this.rectRenderQueue={}}resolveTextRenderQueue(){this.setCtxValue("fillStyle",this.styles.fontColor),this.textRenderQueue.forEach(({text:e,x:i,y:n,textMaxWidth:s})=>{const{width:r}=this.ctx.measureText(e);if(r>s){const o=r/e.length,l=(Math.floor((s-this.placeholderWidth)/o)-1)/2;l>0?e=e.slice(0,Math.ceil(l))+"…"+e.slice(e.length-Math.floor(l),e.length):e=""}e&&this.ctx.fillText(e,(i<0?0:i)+this.blockPaddingLeftRight,n+this.blockHeight-this.blockPaddingTopBottom)}),this.textRenderQueue=[]}resolveStrokeRenderQueue(){this.strokeRenderQueue.forEach(({color:e,x:i,y:n,w:s,h:r})=>{this.renderStroke(e,i,n,s,r)}),this.strokeRenderQueue=[]}setMinMax(e,i){const n=e!==this.min||i!==this.max;this.min=e,this.max=i,n&&this.emit("min-max-change",e,i)}getTimeUnits(){return this.timeUnits}tryToChangePosition(e){const i=this.getRealView();this.positionX+e+i<=this.max&&this.positionX+e>=this.min?this.setPositionX(this.positionX+e):this.positionX+e<=this.min?this.setPositionX(this.min):this.positionX+e+i>=this.max&&this.setPositionX(this.max-i)}getInitialZoom(){return this.max-this.min>0?this.width/(this.max-this.min):1}getRealView(){return this.width/this.zoom}resetView(){this.setZoom(this.getInitialZoom()),this.setPositionX(this.min)}resize(e,i){const n=typeof e=="number"&&this.width!==e,s=typeof i=="number"&&this.height!==i;return n||s?(this.width=n?e:this.width,this.height=s?i:this.height,this.applyCanvasSize(),this.emit("resize",{width:this.width,height:this.height}),s):!1}applyCanvasSize(){this.canvas.style.backgroundColor="white",this.canvas.style.overflow="hidden",this.canvas.style.width=this.width+"px",this.canvas.style.height=this.height+"px",this.canvas.width=this.width*this.pixelRatio,this.canvas.height=this.height*this.pixelRatio,this.ctx.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0),this.ctx.font=this.styles.font}copy(e){const i=this.isSafari?1:e.pixelRatio;e.canvas.height&&this.ctx.drawImage(e.canvas,0,0,e.canvas.width*i,e.canvas.height*i,0,e.position||0,e.width*i,e.height*i)}renderTooltipFromData(e,i){const n=i.x+10,s=i.y+10,o=e.map(({text:a})=>a).map(a=>this.ctx.measureText(a)).reduce((a,{width:l})=>Math.max(a,l),0)+this.blockPaddingLeftRight*2;this.setCtxShadow({color:this.styles.tooltipShadowColor,blur:this.styles.tooltipShadowBlur,offsetX:this.styles.tooltipShadowOffsetX,offsetY:this.styles.tooltipShadowOffsetY}),this.setCtxValue("fillStyle",this.styles.tooltipBackgroundColor),this.ctx.fillRect(n,s,o+this.blockPaddingLeftRight*2,(this.charHeight+2)*e.length+this.blockPaddingLeftRight*2),this.setCtxShadow({color:"transparent",blur:0}),e.forEach(({text:a,color:l},h)=>{l?this.setCtxValue("fillStyle",l):h?this.setCtxValue("fillStyle",this.styles.tooltipBodyFontColor):this.setCtxValue("fillStyle",this.styles.tooltipHeaderFontColor),this.ctx.fillText(a,n+this.blockPaddingLeftRight,s+this.blockHeight-this.blockPaddingTopBottom+(this.charHeight+2)*h)})}renderShape(e,i,n,s){this.setCtxValue("fillStyle",e),this.ctx.beginPath(),this.ctx.moveTo(i[0].x+n,i[0].y+s),i.slice(1).forEach(({x:r,y:o})=>this.ctx.lineTo(r+n,o+s)),this.ctx.closePath(),this.ctx.fill()}renderTriangle(e,i,n,s,r,o){const a=r/2,l=s/2;let h;switch(o){case"top":h=[{x:0-l,y:a},{x:0,y:0-a},{x:l,y:a}];break;case"right":h=[{x:0-a,y:0-l},{x:0-a,y:l},{x:a,y:0}];break;case"bottom":h=[{x:0-l,y:0-a},{x:l,y:0-a},{x:0,y:a}];break;case"left":h=[{x:a,y:0-l},{x:a,y:l},{x:0-a,y:0}];break}this.renderShape(e,h,i,n)}renderCircle(e,i,n,s){this.ctx.beginPath(),this.ctx.arc(i,n,s,0,2*Math.PI,!1),this.setCtxValue("fillStyle",e),this.ctx.fill()}}class Oe extends Nt{constructor({width:e,height:i,parent:n,id:s}){const r=document.createElement("canvas");r.width=e,r.height=i,super(r,{options:n.options,styles:n.styles}),this.flexible=!1,this.collapsed=!1,this.position=0,this.width=e,this.height=i,this.parent=n,this.id=s,this.children=[],this.applyCanvasSize()}makeChild(){const e=new Oe({width:this.width,height:this.height,parent:this.parent,id:void 0});return this.children.push(e),e.setMinMax(this.min,this.max),e.resetView(),e}setFlexible(){this.flexible=!0}collapse(){this.collapsed=!0,this.clear()}expand(){this.collapsed=!1}setSettingsOverrides(e){this.setSettings({styles:G(this.styles,e.styles),options:G(this.options,e.options)}),this.children.forEach(i=>i.setSettingsOverrides(e))}resize({width:e,height:i,position:n},s){const r=super.resize(e,i);!s&&r&&this.parent.recalcChildrenSizes(),typeof n=="number"&&(this.position=n),this.children.forEach(o=>o.resize({width:e,height:i,position:n}))}setMinMax(e,i){super.setMinMax(e,i),this.children.forEach(n=>n.setMinMax(e,i))}setSettings(e){super.setSettings(e),this.children&&this.children.forEach(i=>i.setSettings(e))}tryToChangePosition(e){this.parent.tryToChangePosition(e)}recalcMinMax(){this.parent.calcMinMax()}getTimeUnits(){return this.parent.getTimeUnits()}getAccuracy(){return this.parent.timeGrid.accuracy}renderTimeGrid(){this.parent.timeGrid.renderLines(0,this.height,this)}renderTimeGridTimes(){this.parent.timeGrid.renderTimes(this)}standardRender(){this.resolveRectRenderQueue(),this.resolveTextRenderQueue(),this.resolveStrokeRenderQueue(),this.renderTimeGrid()}renderTooltipFromData(e,i){this.parent.renderTooltipFromData(e,i)}resetParentView(){this.parent.resetView(),this.parent.render()}render(){this.parent.partialRender(this.id)}}const Kn=6;class qn extends Nt{constructor({canvas:e,settings:i,timeGrid:n,plugins:s}){super(e,i),this.freeSpace=0,this.lastPartialAnimationFrame=null,this.lastGlobalAnimationFrame=null,this.plugins=s,this.children=[],this.requestedRenders=[],this.timeGrid=n,this.timeGrid.setDefaultRenderEngine(this)}makeInstance(){const e=new Oe({width:this.width,height:0,id:this.children.length,parent:this});return e.setMinMax(this.min,this.max),e.resetView(),this.children.push(e),e}calcMinMax(){const e=this.plugins.map(({min:n})=>n).filter(Ze).reduce((n,s)=>Math.min(n,s)),i=this.plugins.map(({max:n})=>n).filter(Ze).reduce((n,s)=>Math.max(n,s));this.setMinMax(e,i)}calcTimeGrid(){this.timeGrid.recalc()}setMinMax(e,i){super.setMinMax(e,i),this.children.forEach(n=>n.setMinMax(e,i))}setSettings(e){super.setSettings(e),this.children&&(this.children.forEach(i=>i.setSettings(e)),this.recalcChildrenSizes())}resize(e,i){const n=this.width;return super.resize(e,i),this.recalcChildrenSizes(),this.getInitialZoom()>this.zoom?this.resetView():this.positionX>this.min&&this.tryToChangePosition(-this.pixelToTime((e-n)/2)),!0}recalcChildrenSizes(){const e=this.getChildrenSizes();this.freeSpace=e.reduce((i,{height:n})=>i-n,this.height),this.children.forEach((i,n)=>{i.resize(e[n],!0)})}getChildrenSizes(){const i=this.children.map((o,a)=>a).map(o=>{const a=this.plugins[o];return this.children[o].flexible&&a.height?"flexibleStatic":a.height?"static":"flexibleGrowing"}),n=i.reduce((o,a,l)=>{var h,c;const d=this.plugins[l],p=this.children[l];return p.collapsed?o:a==="flexibleGrowing"?o-(p.height||0):a==="flexibleStatic"?o-((p==null?void 0:p.height)||(d==null?void 0:d.height)||0):a==="static"?o-((c=(h=this.plugins[l])===null||h===void 0?void 0:h.height)!==null&&c!==void 0?c:0):o},this.height),s=i.filter(o=>o==="flexibleGrowing").length,r=Math.floor(n/s);return i.reduce((o,a,l)=>{var h,c;const d=this.children[l],p=this.plugins[l];let g=0;if(d.collapsed)g=0;else switch(a){case"static":g=(h=p.height)!==null&&h!==void 0?h:0;break;case"flexibleGrowing":g=(d.height||0)+r;break;case"flexibleStatic":g=(c=d.height||this.plugins[l].height)!==null&&c!==void 0?c:0;break}return o.result.push({width:this.width,position:o.position,height:g}),o.position+=g,o},{position:0,result:[]}).result}getAccuracy(){return this.timeGrid.accuracy}setZoom(e){return this.getAccuracy()i.setZoom(e)),!0):!1}setPositionX(e){const i=super.setPositionX(e);return this.children.forEach(n=>n.setPositionX(e)),i}renderPlugin(e){var i;const n=this.plugins[e],s=this.children[e];s==null||s.clear(),s.collapsed||!((i=n==null?void 0:n.render)===null||i===void 0)&&i.call(n)||s.standardRender()}partialRender(e){typeof e=="number"&&this.requestedRenders.push(e),this.lastPartialAnimationFrame||(this.lastPartialAnimationFrame=requestAnimationFrame(()=>{this.requestedRenders.forEach(i=>this.renderPlugin(i)),this.shallowRender(),this.requestedRenders=[],this.lastPartialAnimationFrame=null}))}shallowRender(){this.clear(),this.timeGrid.renderLines(this.height-this.freeSpace,this.freeSpace),this.children.forEach(i=>{i.collapsed||this.copy(i)});let e=!1;this.plugins.forEach(i=>{i.postRender&&i.postRender()}),this.plugins.forEach(i=>{i.renderTooltip&&(e=e||!!i.renderTooltip())}),!e&&typeof this.options.tooltip=="function"&&this.options.tooltip(null,this,null)}render(e){typeof this.lastPartialAnimationFrame=="number"&&cancelAnimationFrame(this.lastPartialAnimationFrame),this.requestedRenders=[],this.lastPartialAnimationFrame=null,this.lastGlobalAnimationFrame||(this.lastGlobalAnimationFrame=requestAnimationFrame(()=>{e==null||e(),this.timeGrid.recalc(),this.children.forEach((i,n)=>this.renderPlugin(n)),this.shallowRender(),this.lastGlobalAnimationFrame=null}))}}const Qn=["down","up","move","click","select"];class ge extends fe.EventEmitter{static getId(){return ge.count++}constructor(e,i){super(),this.id=ge.getId(),this.parent=e,this.renderEngine=i,i.on("clear",()=>this.clearHitRegions()),Qn.forEach(n=>e.on(n,(s,r,o)=>{(!s||s.id===this.id)&&this.resend(n,s,r,o)})),["hover"].forEach(n=>e.on(n,(s,r)=>{(!s||s.id===this.id)&&this.emit(n,s,r)})),e.on("change-position",(n,s,r,o)=>{o===this&&this.emit("change-position",n,s,r)}),this.hitRegions=[]}resend(e,...i){this.renderEngine.position<=this.parent.mouse.y&&this.renderEngine.height+this.renderEngine.position>=this.parent.mouse.y&&this.emit(e,...i)}getMouse(){const{x:e,y:i}=this.parent.mouse;return{x:e,y:i-this.renderEngine.position}}getGlobalMouse(){return this.parent.mouse}clearHitRegions(){this.hitRegions=[]}addHitRegion(e,i,n,s,r,o,a){this.hitRegions.push({type:e,data:i,x:n,y:s,w:r,h:o,cursor:a,id:this.id})}setCursor(e){this.parent.setCursor(e)}clearCursor(){this.parent.clearCursor()}}ge.count=0;class jn extends fe.EventEmitter{constructor(e,i){super(),this.selectedRegion=null,this.hoveredRegion=null,this.moveActive=!1,this.currentCursor=null,this.renderEngine=i,this.canvas=e,this.hitRegions=[],this.instances=[],this.mouse={x:0,y:0},this.handleMouseWheel=this.handleMouseWheel.bind(this),this.handleMouseDown=this.handleMouseDown.bind(this),this.handleMouseUp=this.handleMouseUp.bind(this),this.handleMouseMove=this.handleMouseMove.bind(this),this.initListeners(),this.reset()}makeInstance(e){const i=new ge(this,e);return this.instances.push(i),i}reset(){this.selectedRegion=null,this.hoveredRegion=null,this.hitRegions=[]}destroy(){this.removeListeners()}initListeners(){this.canvas&&(this.canvas.addEventListener("wheel",this.handleMouseWheel),this.canvas.addEventListener("mousedown",this.handleMouseDown),this.canvas.addEventListener("mouseup",this.handleMouseUp),this.canvas.addEventListener("mouseleave",this.handleMouseUp),this.canvas.addEventListener("mousemove",this.handleMouseMove))}removeListeners(){this.canvas&&(this.canvas.removeEventListener("wheel",this.handleMouseWheel),this.canvas.removeEventListener("mousedown",this.handleMouseDown),this.canvas.removeEventListener("mouseup",this.handleMouseUp),this.canvas.removeEventListener("mouseleave",this.handleMouseUp),this.canvas.removeEventListener("mousemove",this.handleMouseMove))}handleMouseWheel(e){const{deltaY:i,deltaX:n}=e;e.preventDefault();const s=this.renderEngine.getRealView(),r=this.renderEngine.getInitialZoom(),o=this.renderEngine.positionX,a=this.renderEngine.zoom,l=n/this.renderEngine.zoom;let h=i/1e3*this.renderEngine.zoom;if(this.renderEngine.tryToChangePosition(l),h=this.renderEngine.zoom-h>=r?h:this.renderEngine.zoom-r,h!==0&&this.renderEngine.setZoom(this.renderEngine.zoom-h)){const d=this.mouse.x/this.renderEngine.width,g=(s-this.renderEngine.width/this.renderEngine.zoom)*d;this.renderEngine.tryToChangePosition(g)}this.checkRegionHover(),(o!==this.renderEngine.positionX||a!==this.renderEngine.zoom)&&this.renderEngine.render()}handleMouseDown(){this.moveActive=!0,this.mouseDownPosition={x:this.mouse.x,y:this.mouse.y},this.mouseDownHoveredInstance=this.hoveredInstance,this.emit("down",this.hoveredRegion,this.mouse)}handleMouseUp(){this.moveActive=!1;const e=this.mouseDownPosition&&this.mouseDownPosition.x===this.mouse.x&&this.mouseDownPosition.y===this.mouse.y;e&&this.handleRegionHit(),this.emit("up",this.hoveredRegion,this.mouse,e),e&&this.emit("click",this.hoveredRegion,this.mouse)}handleMouseMove(e){if(this.moveActive){const i=this.mouse.y-e.offsetY,n=(this.mouse.x-e.offsetX)/this.renderEngine.zoom;(i||n)&&this.emit("change-position",{deltaX:n,deltaY:i},this.mouseDownPosition,this.mouse,this.mouseDownHoveredInstance)}this.mouse.x=e.offsetX,this.mouse.y=e.offsetY,this.checkRegionHover(),this.emit("move",this.hoveredRegion,this.mouse)}handleRegionHit(){const e=this.getHoveredRegion();this.emit("select",e,this.mouse)}checkRegionHover(){const e=this.getHoveredRegion();e&&this.hoveredRegion&&e.id!==this.hoveredRegion.id&&this.emit("hover",null,this.mouse),e?(!this.currentCursor&&e.cursor?this.renderEngine.canvas.style.cursor=e.cursor:this.currentCursor||this.clearCursor(),this.hoveredRegion=e,this.emit("hover",e,this.mouse),this.renderEngine.partialRender()):this.hoveredRegion&&!e&&(this.currentCursor||this.clearCursor(),this.hoveredRegion=null,this.emit("hover",null,this.mouse),this.renderEngine.partialRender())}getHoveredRegion(){const e=this.hitRegions.find(({x:n,y:s,w:r,h:o})=>this.mouse.x>=n&&this.mouse.x<=n+r&&this.mouse.y>=s&&this.mouse.y<=s+o);if(e)return e;const i=this.instances.find(({renderEngine:n})=>n.position<=this.mouse.y&&n.height+n.position>=this.mouse.y);if(this.hoveredInstance=i,i){const n=i.renderEngine.position;return i.hitRegions.find(({x:s,y:r,w:o,h:a})=>this.mouse.x>=s&&this.mouse.x<=s+o&&this.mouse.y>=r+n&&this.mouse.y<=r+a+n)}return null}clearHitRegions(){this.hitRegions=[]}addHitRegion(e,i,n,s,r,o,a){this.hitRegions.push({type:e,data:i,x:n,y:s,w:r,h:o,cursor:a})}setCursor(e){this.renderEngine.canvas.style.cursor=e,this.currentCursor=e}clearCursor(){const e=this.getHoveredRegion();this.currentCursor=null,e!=null&&e.cursor?this.renderEngine.canvas.style.cursor=e.cursor:this.renderEngine.canvas.style.cursor=""}}class Zn extends fe.EventEmitter{constructor({canvas:e,plugins:i,settings:n}){var s;super();const r=(s=n==null?void 0:n.styles)!==null&&s!==void 0?s:{};this.timeGrid=new Dt({styles:r==null?void 0:r.timeGrid}),this.renderEngine=new qn({canvas:e,settings:{styles:r==null?void 0:r.main,options:n==null?void 0:n.options},plugins:i,timeGrid:this.timeGrid}),this.interactionsEngine=new jn(e,this.renderEngine),this.plugins=i;const o=Array(this.plugins.length).fill(null).map(()=>{const a=this.renderEngine.makeInstance(),l=this.interactionsEngine.makeInstance(a);return{renderEngine:a,interactionsEngine:l}});this.plugins.forEach((a,l)=>{a.init(o[l].renderEngine,o[l].interactionsEngine)}),this.renderEngine.calcMinMax(),this.renderEngine.resetView(),this.renderEngine.recalcChildrenSizes(),this.renderEngine.calcTimeGrid(),this.plugins.forEach(a=>{var l;return(l=a.postInit)===null||l===void 0?void 0:l.call(a)}),this.renderEngine.render()}render(){this.renderEngine.render()}resize(e,i){this.renderEngine.render(()=>this.renderEngine.resize(e,i))}execOnPlugins(e,...i){let n=0;for(;n{var r,o;return(r=s.setSettings)===null||r===void 0?void 0:r.call(s,{styles:(o=e.styles)===null||o===void 0?void 0:o[s.name]})}),this.renderEngine.render()}setZoom(e,i){const n=this.renderEngine.width/(i-e);this.renderEngine.setPositionX(e),this.renderEngine.setZoom(n),this.renderEngine.render()}}const Jn={};class es extends Zn{constructor({canvas:e,data:i,marks:n,waterfall:s,timeframeTimeseries:r,timeseries:o,colors:a,settings:l=Jn,plugins:h=[]}){var c;const d=[],{headers:{waterfall:p="waterfall",flameChart:g="flame chart"}={}}=l,u=(c=l==null?void 0:l.styles)!==null&&c!==void 0?c:{},b=new Wn({styles:u==null?void 0:u.timeGridPlugin});d.push(b);let y,v,f,w,P;o&&(P=new Un({data:o,settings:{styles:u==null?void 0:u.timeseriesPlugin}}),d.push(P)),n&&(y=new Yn({data:n}),y.on("select",C=>this.emit("select",C)),d.push(y)),s&&(v=new Gn({data:s,settings:{styles:u==null?void 0:u.waterfallPlugin}}),v.on("select",C=>this.emit("select",C)),i&&d.push(new ot(p,{styles:u==null?void 0:u.togglePlugin})),d.push(v)),i&&(w=new An({data:i,colors:a}),w.on("select",C=>this.emit("select",C)),s&&d.push(new ot(g,{styles:u==null?void 0:u.togglePlugin})),d.push(w)),(i||s||r)&&(f=new On({flameChartNodes:i,waterfall:s,timeseries:r,settings:{styles:u==null?void 0:u.timeframeSelectorPlugin}}),d.unshift(f)),super({canvas:e,settings:l,plugins:[...d,...h]}),w&&f&&(this.setNodes=C=>{w&&w.setData(C),f&&f.setFlameChartNodes(C)},this.setFlameChartPosition=({x:C,y:R})=>{typeof C=="number"&&this.renderEngine.setPositionX(C),typeof R=="number"&&w&&w.setPositionY(R),this.renderEngine.render()}),y&&(this.setMarks=C=>{y&&y.setMarks(C)}),v&&(this.setWaterfall=C=>{v&&v.setData(C),f&&f.setWaterfall(C)}),P&&(this.setTimeseries=C=>{P&&P.setData(C)}),f&&(this.setTimeframeTimeseries=C=>{f==null||f.setTimeseries(C)})}}var ts="Expected a function",ct=NaN,is="[object Symbol]",ns=/^\s+|\s+$/g,ss=/^[-+]0x[0-9a-f]+$/i,rs=/^0b[01]+$/i,os=/^0o[0-7]+$/i,as=parseInt,ls=typeof be=="object"&&be&&be.Object===Object&&be,hs=typeof self=="object"&&self&&self.Object===Object&&self,cs=ls||hs||Function("return this")(),ds=Object.prototype,us=ds.toString,gs=Math.max,fs=Math.min,Ae=function(){return cs.Date.now()};function ps(t,e,i){var n,s,r,o,a,l,h=0,c=!1,d=!1,p=!0;if(typeof t!="function")throw new TypeError(ts);e=dt(e)||0,ze(i)&&(c=!!i.leading,d="maxWait"in i,r=d?gs(dt(i.maxWait)||0,e):r,p="trailing"in i?!!i.trailing:p);function g(R){var O=n,ce=s;return n=s=void 0,h=R,o=t.apply(ce,O),o}function u(R){return h=R,a=setTimeout(v,e),c?g(R):o}function b(R){var O=R-l,ce=R-h,Ue=e-O;return d?fs(Ue,r-ce):Ue}function y(R){var O=R-l,ce=R-h;return l===void 0||O>=e||O<0||d&&ce>=r}function v(){var R=Ae();if(y(R))return f(R);a=setTimeout(v,b(R))}function f(R){return a=void 0,p&&n?g(R):(n=s=void 0,o)}function w(){a!==void 0&&clearTimeout(a),h=0,n=l=s=a=void 0}function P(){return a===void 0?o:f(Ae())}function C(){var R=Ae(),O=y(R);if(n=arguments,s=this,l=R,O){if(a===void 0)return u(l);if(d)return a=setTimeout(v,e),g(l)}return a===void 0&&(a=setTimeout(v,e)),o}return C.cancel=w,C.flush=P,C}function ze(t){var e=typeof t;return!!t&&(e=="object"||e=="function")}function vs(t){return!!t&&typeof t=="object"}function ms(t){return typeof t=="symbol"||vs(t)&&us.call(t)==is}function dt(t){if(typeof t=="number")return t;if(ms(t))return ct;if(ze(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=ze(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=t.replace(ns,"");var i=rs.test(t);return i||os.test(t)?as(t.slice(2),i?2:8):ss.test(t)?ct:+t}var bs=ps;const ys=gt(bs),Es=(t,e)=>{let i=[];const n={};return Object.values(t).forEach(s=>{var h;const r=s.caller,o=s.callee,a=(s.cost[String(e)]||0)>0?s.cost[String(e)]/1e3:0,l=0;if(o&&!n[o]&&(n[o]={name:o,start:l,duration:a,cost:s.cost,children:[]}),r&&!n[r]&&(n[r]={name:r,start:l,duration:a,cost:s.cost,children:[]}),!(!r||i.includes(o))){if(n[r]&&n[r].children){const c=n[r].children||[],d=c?c[c.length-1]:null;n[o].start=d?d.start+d.duration:n[o].start}else n[o].start+=n[r].start;(h=n[r].children)==null||h.push(n[o]),i.push(o)}}),i=[],n["main()"]},xs=()=>({build:Es}),ws=J({__name:"flame-graph",props:{edges:{}},emits:["hover","hide"],setup(t,{emit:e}){const i=t,n=e,s=_(),r=_(),{build:o}=xs(),a=()=>{if(!r.value||!s.value)return;const{width:l,height:h}=r.value.getBoundingClientRect();s.value.width=l||1,s.value.height=h||1;const c=new es({canvas:s.value,data:[o(i.edges,F.CPU)],settings:{styles:{main:{blockHeight:20}},options:{tooltip:(d,p,g)=>{d===null?n("hide"):n("hover",{callee:d.data.source.name,caller:"",cost:d.data.source.cost,position:{x:(g==null?void 0:g.x)||0,y:(g==null?void 0:g.y)||0}})}}}});c.render(),window.addEventListener("resize",ys(()=>{if(!r.value)return;const{width:d,height:p}=r.value.getBoundingClientRect();c.resize(d,p)},30))};return _e(()=>{Jt(()=>{a()})}),(l,h)=>(H(),I("div",{ref_key:"graph",ref:r,class:"flame-graph"},[E("canvas",{ref_key:"canvas",ref:s,class:"flame-graph__canvas"},null,512)],512))}}),Cs=q(ws,[["__scopeId","data-v-3fdcffce"]]),Rs=t=>(ft("data-v-01765fde"),t=t(),pt(),t),ks={class:"profiler-page"},Ms=Rs(()=>E("div",{class:"profiler-page__head"},null,-1)),Ss={class:"profiler-page__main"},Ts={ref:"calls",class:"profiler-page__callstack"},_s={ref:"info",class:"profiler-page__stat"},Ps={class:"profiler-page__stat-board"},Hs={class:"profiler-page__stat-tabs"},Fs=J({__name:"profiler-page",props:{event:{}},setup(t){const e={x:0,y:0},i=_(),n=_(""),s=_(e),r=B(()=>{let c=s.value.y,d=s.value.x;if(750+s.value.x>window.innerWidth-80){const p=750+s.value.x-window.innerWidth+100;d-=p}return 150+s.value.y>window.innerHeight&&(c=s.value.y-150),{top:`${c+10}px`,left:`${d}px`,width:"750px"}}),o=l=>{if(l){const{position:h,...c}=l||{};i.value=c,s.value=h}else i.value=null,s.value=e},a=l=>{n.value=l.tab.name};return(l,h)=>(H(),I("div",ks,[Ms,E("main",Ss,[E("section",Ts,[X(x(sn),{style:le({height:"calc(100vh - 48px)"})},{default:$(()=>[X(x(Li),{payload:l.event.payload,onHover:o,onHide:o},null,8,["payload"])]),_:1},8,["style"])],512),E("div",_s,[E("section",Ps,[X(x(vt),{cost:l.event.payload.peaks},null,8,["cost"])]),E("section",Hs,[X(x(li),{options:{useUrlFragment:!1},onChanged:a},{default:$(()=>[X(x(Ge),{name:"Call graph"},{default:$(()=>[n.value==="Call graph"?(H(),ae(x(Ui),{key:0,payload:l.event.payload},null,8,["payload"])):j("",!0)]),_:1}),X(x(Ge),{name:"Flamechart"},{default:$(()=>[n.value==="Flamechart"?(H(),ae(x(Cs),{key:n.value,"data-key":n.value,edges:l.event.payload.edges,onHover:o,onHide:o},null,8,["data-key","edges"])):j("",!0)]),_:1})]),_:1})])],512),i.value?(H(),ae(x(bt),{key:0,class:"profiler-page__hover-edge",edge:i.value,style:le(r.value)},null,8,["edge","style"])):j("",!0)])]))}}),Ls=q(Fs,[["__scopeId","data-v-01765fde"]]),Ne=t=>(ft("data-v-df2b77b9"),t=t(),pt(),t),Xs={class:"profiler-event"},As={key:0,class:"profiler-event__loading"},Ws=Ne(()=>E("div",null,null,-1)),Ys=Ne(()=>E("div",null,null,-1)),Ds=Ne(()=>E("div",null,null,-1)),zs=[Ws,Ys,Ds],$s={class:"profiler-event__body"},Is=J({__name:"[id]",setup(t){const{normalizeProfilerEvent:e}=ai(),{params:i}=ei(),{$authToken:n}=ii(),s=ti(),r=i.id;ri({title:`Profiler > ${r} | Buggregator`});const{events:o}=Ut(),a=_(!1),l=_(null),h=B(()=>l.value?e(l.value):null),c=()=>{o.removeById(r),s.push("/")};return _e(async()=>{a.value=!0,await ni(o.getUrl(r),{headers:{"X-Auth-Token":n.token||""},onResponse({response:{_data:p}}){l.value=p,a.value=!1},onResponseError(){s.push("/404")},onRequestError(){s.push("/404")}},"$tWhgOcWFS1")}),(p,g)=>{const u=Gt;return H(),I("main",Xs,[X(x(oi),{class:"profiler-event__head","button-title":"Delete event",onDelete:c},{default:$(()=>[X(u,{to:"/"},{default:$(()=>[N("Home")]),_:1}),N(" /  "),X(u,{to:"/profiler"},{default:$(()=>[N("Profiler")]),_:1}),N(" /  "),X(u,{disabled:!0},{default:$(()=>[N(ee(x(r)),1)]),_:1})]),_:1}),a.value&&!h.value?(H(),I("div",As,zs)):j("",!0),E("div",$s,[h.value?(H(),ae(x(Ls),{key:0,event:h.value},null,8,["event"])):j("",!0)])])}}}),js=q(Is,[["__scopeId","data-v-df2b77b9"]]);export{js as default}; diff --git a/resources/frontend/_nuxt/B3ev0iw2.js b/resources/frontend/_nuxt/B3ev0iw2.js new file mode 100644 index 00000000..c26bbdd2 --- /dev/null +++ b/resources/frontend/_nuxt/B3ev0iw2.js @@ -0,0 +1 @@ +import{E as p}from"./BefdN0MI.js";const t=a=>({id:a.uuid,type:p.HTTP_DUMP,labels:[p.HTTP_DUMP],origin:{uri:a.payload.request.uri},serverName:a.payload.host,date:a.timestamp?new Date(a.timestamp*1e3):null,payload:a.payload}),s=()=>({normalizeHttpDumpEvent:t});export{s as u}; diff --git a/resources/frontend/_nuxt/BBk2F9bR.js b/resources/frontend/_nuxt/BBk2F9bR.js new file mode 100644 index 00000000..976ef023 --- /dev/null +++ b/resources/frontend/_nuxt/BBk2F9bR.js @@ -0,0 +1,16 @@ +import{H as km,E as Dm}from"./BqbMuE7y.js";import{e as Rl,f as Bg,g as Lg,h as Pl,i as Al,j as Mg,k as Xt,l as Il,m as _g,n as yr,o as Pn,q as Yr,r as Og,s as An,t as Rm,v as Zt,w as In,x as Bl,y as Pm,z as qg,A as Ng,B as Am,D as Ll,E as Im,F as Bm,G as Lm,H as Fg,c as Ml,I as zg,J as _l,K as Mm,L as _m,M as Om}from"./Cuqdu9nB.js";import{b as vt,c as Ol,e as qm,f as Vg}from"./BefdN0MI.js";function Ke(r){"@babel/helpers - typeof";return Ke=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ke(r)}function ql(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function xf(r,e){for(var t=0;tr.length)&&(e=r.length);for(var t=0,a=new Array(e);t=r.length?{done:!0}:{done:!1,value:r[a++]}},e:function(l){throw l},f:n}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,s=!1,o;return{s:function(){t=t.call(r)},n:function(){var l=t.next();return i=l.done,l},e:function(l){s=!0,o=l},f:function(){try{!i&&t.return!=null&&t.return()}finally{if(s)throw o}}}}var Ue=typeof window>"u"?null:window,Sf=Ue?Ue.navigator:null;Ue&&Ue.document;var Gm=Ke(""),Ug=Ke({}),$m=Ke(function(){}),Um=typeof HTMLElement>"u"?"undefined":Ke(HTMLElement),qa=function(e){return e&&e.instanceString&&Fe(e.instanceString)?e.instanceString():null},ye=function(e){return e!=null&&Ke(e)==Gm},Fe=function(e){return e!=null&&Ke(e)===$m},Le=function(e){return!mr(e)&&(Array.isArray?Array.isArray(e):e!=null&&e instanceof Array)},Te=function(e){return e!=null&&Ke(e)===Ug&&!Le(e)&&e.constructor===Object},Hm=function(e){return e!=null&&Ke(e)===Ug},se=function(e){return e!=null&&Ke(e)===Ke(1)&&!isNaN(e)},Km=function(e){return se(e)&&Math.floor(e)===e},yn=function(e){if(Um!=="undefined")return e!=null&&e instanceof HTMLElement},mr=function(e){return Na(e)||Hg(e)},Na=function(e){return qa(e)==="collection"&&e._private.single},Hg=function(e){return qa(e)==="collection"&&!e._private.single},Fl=function(e){return qa(e)==="core"},Kg=function(e){return qa(e)==="stylesheet"},Wm=function(e){return qa(e)==="event"},it=function(e){return e==null?!0:!!(e===""||e.match(/^\s+$/))},Ym=function(e){return typeof HTMLElement>"u"?!1:e instanceof HTMLElement},Xm=function(e){return Te(e)&&se(e.x1)&&se(e.x2)&&se(e.y1)&&se(e.y2)},Zm=function(e){return Hm(e)&&Fe(e.then)},jm=function(){return Sf&&Sf.userAgent.match(/msie|trident|edge/i)},ka=function(e,t){t||(t=function(){if(arguments.length===1)return arguments[0];if(arguments.length===0)return"undefined";for(var i=[],s=0;st?1:0},n0=function(e,t){return-1*Yg(e,t)},we=Object.assign!=null?Object.assign.bind(Object):function(r){for(var e=arguments,t=1;t1&&(p-=1),p<1/6?h+(m-h)*6*p:p<1/2?m:p<2/3?h+(m-h)*(2/3-p)*6:h}var v=new RegExp("^"+e0+"$").exec(e);if(v){if(a=parseInt(v[1]),a<0?a=(360- -1*a%360)%360:a>360&&(a=a%360),a/=360,n=parseFloat(v[2]),n<0||n>100||(n=n/100,i=parseFloat(v[3]),i<0||i>100)||(i=i/100,s=v[4],s!==void 0&&(s=parseFloat(s),s<0||s>1)))return;if(n===0)o=l=u=Math.round(i*255);else{var c=i<.5?i*(1+n):i+n-i*n,d=2*i-c;o=Math.round(255*f(d,c,a+1/3)),l=Math.round(255*f(d,c,a)),u=Math.round(255*f(d,c,a-1/3))}t=[o,l,u,s]}return t},o0=function(e){var t,a=new RegExp("^"+Qm+"$").exec(e);if(a){t=[];for(var n=[],i=1;i<=3;i++){var s=a[i];if(s[s.length-1]==="%"&&(n[i]=!0),s=parseFloat(s),n[i]&&(s=s/100*255),s<0||s>255)return;t.push(Math.floor(s))}var o=n[1]||n[2]||n[3],l=n[1]&&n[2]&&n[3];if(o&&!l)return;var u=a[4];if(u!==void 0){if(u=parseFloat(u),u<0||u>1)return;t.push(u)}}return t},u0=function(e){return f0[e.toLowerCase()]},l0=function(e){return(Le(e)?e:null)||u0(e)||i0(e)||o0(e)||s0(e)},f0={transparent:[0,0,0,0],aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],grey:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},Xg=function(e){for(var t=e.map,a=e.keys,n=a.length,i=0;i=e||E<0||v&&T>=i}function g(){var C=ii();if(p(C))return y(C);o=setTimeout(g,m(C))}function y(C){return o=void 0,c&&a?d(C):(a=n=void 0,s)}function b(){o!==void 0&&clearTimeout(o),u=0,a=l=n=o=void 0}function w(){return o===void 0?s:y(ii())}function x(){var C=ii(),E=p(C);if(a=arguments,n=this,l=C,E){if(o===void 0)return h(l);if(v)return clearTimeout(o),o=setTimeout(g,e),d(l)}return o===void 0&&(o=setTimeout(g,e)),s}return x.cancel=b,x.flush=w,x}var Mn=Y0,si=Ue?Ue.performance:null,Jg=si&&si.now?function(){return si.now()}:function(){return Date.now()},X0=function(){if(Ue){if(Ue.requestAnimationFrame)return function(r){Ue.requestAnimationFrame(r)};if(Ue.mozRequestAnimationFrame)return function(r){Ue.mozRequestAnimationFrame(r)};if(Ue.webkitRequestAnimationFrame)return function(r){Ue.webkitRequestAnimationFrame(r)};if(Ue.msRequestAnimationFrame)return function(r){Ue.msRequestAnimationFrame(r)}}return function(r){r&&setTimeout(function(){r(Jg())},1e3/60)}}(),mn=function(e){return X0(e)},Hr=Jg,Nt=9261,ep=65599,ya=5381,rp=function(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Nt,a=t,n;n=e.next(),!n.done;)a=a*ep+n.value|0;return a},Da=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Nt;return t*ep+e|0},Ra=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ya;return(t<<5)+t+e|0},Z0=function(e,t){return e*2097152+t},Jr=function(e){return e[0]*2097152+e[1]},Xa=function(e,t){return[Da(e[0],t[0]),Ra(e[1],t[1])]},j0=function(e,t){var a={value:0,done:!1},n=0,i=e.length,s={next:function(){return n=0&&!(e[n]===t&&(e.splice(n,1),a));n--);},$l=function(e){e.splice(0,e.length)},nb=function(e,t){for(var a=0;a"u"?"undefined":Ke(Set))!==sb?Set:ob,_n=function(e,t){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(e===void 0||t===void 0||!Fl(e)){ze("An element must have a core reference and parameters set");return}var n=t.group;if(n==null&&(t.data&&t.data.source!=null&&t.data.target!=null?n="edges":n="nodes"),n!=="nodes"&&n!=="edges"){ze("An element must be of type `nodes` or `edges`; you specified `"+n+"`");return}this.length=1,this[0]=this;var i=this._private={cy:e,single:!0,data:t.data||{},position:t.position||{x:0,y:0},autoWidth:void 0,autoHeight:void 0,autoPadding:void 0,compoundBoundsClean:!1,listeners:[],group:n,style:{},rstyle:{},styleCxts:[],styleKeys:{},removed:!0,selected:!!t.selected,selectable:t.selectable===void 0?!0:!!t.selectable,locked:!!t.locked,grabbed:!1,grabbable:t.grabbable===void 0?!0:!!t.grabbable,pannable:t.pannable===void 0?n==="edges":!!t.pannable,active:!1,classes:new jt,animation:{current:[],queue:[]},rscratch:{},scratch:t.scratch||{},edges:[],children:[],parent:t.parent&&t.parent.isNode()?t.parent:null,traversalCache:{},backgrounding:!1,bbCache:null,bbCacheShift:{x:0,y:0},bodyBounds:null,overlayBounds:null,labelBounds:{all:null,source:null,target:null,main:null},arrowBounds:{source:null,target:null,"mid-source":null,"mid-target":null}};if(i.position.x==null&&(i.position.x=0),i.position.y==null&&(i.position.y=0),t.renderedPosition){var s=t.renderedPosition,o=e.pan(),l=e.zoom();i.position={x:(s.x-o.x)/l,y:(s.y-o.y)/l}}var u=[];Le(t.classes)?u=t.classes:ye(t.classes)&&(u=t.classes.split(/\s+/));for(var f=0,v=u.length;fy?1:0},f=function(g,y,b,w,x){var C;if(b==null&&(b=0),x==null&&(x=a),b<0)throw new Error("lo must be non-negative");for(w==null&&(w=g.length);bD;0<=D?S++:S--)T.push(S);return T}).apply(this).reverse(),E=[],w=0,x=C.length;wk;0<=k?++T:--T)R.push(s(g,b));return R},m=function(g,y,b,w){var x,C,E;for(w==null&&(w=a),x=g[b];b>y;){if(E=b-1>>1,C=g[E],w(x,C)<0){g[b]=C,b=E;continue}break}return g[b]=x},p=function(g,y,b){var w,x,C,E,T;for(b==null&&(b=a),x=g.length,T=y,C=g[y],w=2*y+1;w0;){var C=y.pop(),E=p(C),T=C.id();if(c[T]=E,E!==1/0)for(var S=C.neighborhood().intersect(h),D=0;D0)for(F.unshift(q);v[U];){var z=v[U];F.unshift(z.edge),F.unshift(z.node),$=z.node,U=$.id()}return o.spawn(F)}}}},vb={kruskal:function(e){e=e||function(b){return 1};for(var t=this.byGroup(),a=t.nodes,n=t.edges,i=a.length,s=new Array(i),o=a,l=function(w){for(var x=0;x0;){if(x(),E++,w===f){for(var T=[],S=i,D=f,k=g[D];T.unshift(S),k!=null&&T.unshift(k),S=p[D],S!=null;)D=S.id(),k=g[D];return{found:!0,distance:v[w],path:this.spawn(T),steps:E}}d[w]=!0;for(var R=b._private.edges,I=0;Ik&&(h[D]=k,y[D]=S,b[D]=x),!i){var R=S*f+T;!i&&h[R]>k&&(h[R]=k,y[R]=T,b[R]=x)}}}for(var I=0;I1&&arguments[1]!==void 0?arguments[1]:s,ke=b(ue),Ce=[],be=ke;;){if(be==null)return t.spawn();var Ee=y(be),ee=Ee.edge,A=Ee.pred;if(Ce.unshift(be[0]),be.same(de)&&Ce.length>0)break;ee!=null&&Ce.unshift(ee),be=A}return l.spawn(Ce)},C=0;C=0;f--){var v=u[f],c=v[1],d=v[2];(t[c]===o&&t[d]===l||t[c]===l&&t[d]===o)&&u.splice(f,1)}for(var h=0;hn;){var i=Math.floor(Math.random()*t.length);t=bb(i,e,t),a--}return t},wb={kargerStein:function(){var e=this,t=this.byGroup(),a=t.nodes,n=t.edges;n.unmergeBy(function(F){return F.isLoop()});var i=a.length,s=n.length,o=Math.ceil(Math.pow(Math.log(i)/Math.LN2,2)),l=Math.floor(i/mb);if(i<2){ze("At least 2 nodes are required for Karger-Stein algorithm");return}for(var u=[],f=0;f1&&arguments[1]!==void 0?arguments[1]:0,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,n=1/0,i=t;i1&&arguments[1]!==void 0?arguments[1]:0,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,n=-1/0,i=t;i1&&arguments[1]!==void 0?arguments[1]:0,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,n=0,i=0,s=t;s1&&arguments[1]!==void 0?arguments[1]:0,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0;n?e=e.slice(t,a):(a0&&e.splice(0,t));for(var o=0,l=e.length-1;l>=0;l--){var u=e[l];s?isFinite(u)||(e[l]=-1/0,o++):e.splice(l,1)}i&&e.sort(function(c,d){return c-d});var f=e.length,v=Math.floor(f/2);return f%2!==0?e[v+1+o]:(e[v-1+o]+e[v+o])/2},kb=function(e){return Math.PI*e/180},Za=function(e,t){return Math.atan2(t,e)-Math.PI/2},Ul=Math.log2||function(r){return Math.log(r)/Math.log(2)},up=function(e){return e>0?1:e<0?-1:0},Ct=function(e,t){return Math.sqrt(pt(e,t))},pt=function(e,t){var a=t.x-e.x,n=t.y-e.y;return a*a+n*n},Db=function(e){for(var t=e.length,a=0,n=0;n=e.x1&&e.y2>=e.y1)return{x1:e.x1,y1:e.y1,x2:e.x2,y2:e.y2,w:e.x2-e.x1,h:e.y2-e.y1};if(e.w!=null&&e.h!=null&&e.w>=0&&e.h>=0)return{x1:e.x1,y1:e.y1,x2:e.x1+e.w,y2:e.y1+e.h,w:e.w,h:e.h}}},Pb=function(e){return{x1:e.x1,x2:e.x2,w:e.w,y1:e.y1,y2:e.y2,h:e.h}},Ab=function(e){e.x1=1/0,e.y1=1/0,e.x2=-1/0,e.y2=-1/0,e.w=0,e.h=0},Ib=function(e,t,a){return{x1:e.x1+t,x2:e.x2+t,y1:e.y1+a,y2:e.y2+a,w:e.w,h:e.h}},lp=function(e,t){e.x1=Math.min(e.x1,t.x1),e.x2=Math.max(e.x2,t.x2),e.w=e.x2-e.x1,e.y1=Math.min(e.y1,t.y1),e.y2=Math.max(e.y2,t.y2),e.h=e.y2-e.y1},Bb=function(e,t,a){e.x1=Math.min(e.x1,t),e.x2=Math.max(e.x2,t),e.w=e.x2-e.x1,e.y1=Math.min(e.y1,a),e.y2=Math.max(e.y2,a),e.h=e.y2-e.y1},un=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return e.x1-=t,e.x2+=t,e.y1-=t,e.y2+=t,e.w=e.x2-e.x1,e.h=e.y2-e.y1,e},ln=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[0],a,n,i,s;if(t.length===1)a=n=i=s=t[0];else if(t.length===2)a=i=t[0],s=n=t[1];else if(t.length===4){var o=Pr(t,4);a=o[0],n=o[1],i=o[2],s=o[3]}return e.x1-=s,e.x2+=n,e.y1-=a,e.y2+=i,e.w=e.x2-e.x1,e.h=e.y2-e.y1,e},Bf=function(e,t){e.x1=t.x1,e.y1=t.y1,e.x2=t.x2,e.y2=t.y2,e.w=e.x2-e.x1,e.h=e.y2-e.y1},Hl=function(e,t){return!(e.x1>t.x2||t.x1>e.x2||e.x2t.y2||t.y1>e.y2)},Kt=function(e,t,a){return e.x1<=t&&t<=e.x2&&e.y1<=a&&a<=e.y2},Lb=function(e,t){return Kt(e,t.x,t.y)},fp=function(e,t){return Kt(e,t.x1,t.y1)&&Kt(e,t.x2,t.y2)},vp=function(e,t,a,n,i,s,o){var l=arguments.length>7&&arguments[7]!==void 0?arguments[7]:"auto",u=l==="auto"?St(i,s):l,f=i/2,v=s/2;u=Math.min(u,f,v);var c=u!==f,d=u!==v,h;if(c){var m=a-f+u-o,p=n-v-o,g=a+f-u+o,y=p;if(h=tt(e,t,a,n,m,p,g,y,!1),h.length>0)return h}if(d){var b=a+f+o,w=n-v+u-o,x=b,C=n+v-u+o;if(h=tt(e,t,a,n,b,w,x,C,!1),h.length>0)return h}if(c){var E=a-f+u-o,T=n+v+o,S=a+f-u+o,D=T;if(h=tt(e,t,a,n,E,T,S,D,!1),h.length>0)return h}if(d){var k=a-f-o,R=n-v+u-o,I=k,P=n+v-u+o;if(h=tt(e,t,a,n,k,R,I,P,!1),h.length>0)return h}var B;{var L=a-f+u,q=n-v+u;if(B=ma(e,t,a,n,L,q,u+o),B.length>0&&B[0]<=L&&B[1]<=q)return[B[0],B[1]]}{var F=a+f-u,$=n-v+u;if(B=ma(e,t,a,n,F,$,u+o),B.length>0&&B[0]>=F&&B[1]<=$)return[B[0],B[1]]}{var U=a+f-u,z=n+v-u;if(B=ma(e,t,a,n,U,z,u+o),B.length>0&&B[0]>=U&&B[1]>=z)return[B[0],B[1]]}{var V=a-f+u,Z=n+v-u;if(B=ma(e,t,a,n,V,Z,u+o),B.length>0&&B[0]<=V&&B[1]>=Z)return[B[0],B[1]]}return[]},Mb=function(e,t,a,n,i,s,o){var l=o,u=Math.min(a,i),f=Math.max(a,i),v=Math.min(n,s),c=Math.max(n,s);return u-l<=e&&e<=f+l&&v-l<=t&&t<=c+l},_b=function(e,t,a,n,i,s,o,l,u){var f={x1:Math.min(a,o,i)-u,x2:Math.max(a,o,i)+u,y1:Math.min(n,l,s)-u,y2:Math.max(n,l,s)+u};return!(ef.x2||tf.y2)},Ob=function(e,t,a,n){a-=n;var i=t*t-4*e*a;if(i<0)return[];var s=Math.sqrt(i),o=2*e,l=(-t+s)/o,u=(-t-s)/o;return[l,u]},qb=function(e,t,a,n,i){var s=1e-5;e===0&&(e=s),t/=e,a/=e,n/=e;var o,l,u,f,v,c,d,h;if(l=(3*a-t*t)/9,u=-(27*n)+t*(9*a-2*(t*t)),u/=54,o=l*l*l+u*u,i[1]=0,d=t/3,o>0){v=u+Math.sqrt(o),v=v<0?-Math.pow(-v,1/3):Math.pow(v,1/3),c=u-Math.sqrt(o),c=c<0?-Math.pow(-c,1/3):Math.pow(c,1/3),i[0]=-d+v+c,d+=(v+c)/2,i[4]=i[2]=-d,d=Math.sqrt(3)*(-c+v)/2,i[3]=d,i[5]=-d;return}if(i[5]=i[3]=0,o===0){h=u<0?-Math.pow(-u,1/3):Math.pow(u,1/3),i[0]=-d+2*h,i[4]=i[2]=-(h+d);return}l=-l,f=l*l*l,f=Math.acos(u/Math.sqrt(f)),h=2*Math.sqrt(l),i[0]=-d+h*Math.cos(f/3),i[2]=-d+h*Math.cos((f+2*Math.PI)/3),i[4]=-d+h*Math.cos((f+4*Math.PI)/3)},Nb=function(e,t,a,n,i,s,o,l){var u=1*a*a-4*a*i+2*a*o+4*i*i-4*i*o+o*o+n*n-4*n*s+2*n*l+4*s*s-4*s*l+l*l,f=1*9*a*i-3*a*a-3*a*o-6*i*i+3*i*o+9*n*s-3*n*n-3*n*l-6*s*s+3*s*l,v=1*3*a*a-6*a*i+a*o-a*e+2*i*i+2*i*e-o*e+3*n*n-6*n*s+n*l-n*t+2*s*s+2*s*t-l*t,c=1*a*i-a*a+a*e-i*e+n*s-n*n+n*t-s*t,d=[];qb(u,f,v,c,d);for(var h=1e-7,m=[],p=0;p<6;p+=2)Math.abs(d[p+1])=0&&d[p]<=1&&m.push(d[p]);m.push(1),m.push(0);for(var g=-1,y,b,w,x=0;x=0?wu?(e-i)*(e-i)+(t-s)*(t-s):f-c},hr=function(e,t,a){for(var n,i,s,o,l,u=0,f=0;f=e&&e>=s||n<=e&&e<=s)l=(e-n)/(s-n)*(o-i)+i,l>t&&u++;else continue;return u%2!==0},Kr=function(e,t,a,n,i,s,o,l,u){var f=new Array(a.length),v;l[0]!=null?(v=Math.atan(l[1]/l[0]),l[0]<0?v=v+Math.PI/2:v=-v-Math.PI/2):v=l;for(var c=Math.cos(-v),d=Math.sin(-v),h=0;h0){var p=En(f,-u);m=wn(p)}else m=f;return hr(e,t,m)},zb=function(e,t,a,n,i,s,o,l){for(var u=new Array(a.length*2),f=0;f=0&&p<=1&&y.push(p),g>=0&&g<=1&&y.push(g),y.length===0)return[];var b=y[0]*l[0]+e,w=y[0]*l[1]+t;if(y.length>1){if(y[0]==y[1])return[b,w];var x=y[1]*l[0]+e,C=y[1]*l[1]+t;return[b,w,x,C]}else return[b,w]},ui=function(e,t,a){return t<=e&&e<=a||a<=e&&e<=t?e:e<=t&&t<=a||a<=t&&t<=e?t:a},tt=function(e,t,a,n,i,s,o,l,u){var f=e-i,v=a-e,c=o-i,d=t-s,h=n-t,m=l-s,p=c*d-m*f,g=v*d-h*f,y=m*v-c*h;if(y!==0){var b=p/y,w=g/y,x=.001,C=0-x,E=1+x;return C<=b&&b<=E&&C<=w&&w<=E?[e+b*v,t+b*h]:u?[e+b*v,t+b*h]:[]}else return p===0||g===0?ui(e,a,o)===o?[o,l]:ui(e,a,i)===i?[i,s]:ui(i,o,a)===a?[a,n]:[]:[]},Ia=function(e,t,a,n,i,s,o,l){var u=[],f,v=new Array(a.length),c=!0;s==null&&(c=!1);var d;if(c){for(var h=0;h0){var m=En(v,-l);d=wn(m)}else d=v}else d=a;for(var p,g,y,b,w=0;w2){for(var h=[f[0],f[1]],m=Math.pow(h[0]-e,2)+Math.pow(h[1]-t,2),p=1;pf&&(f=w)},get:function(b){return u[b]}},c=0;c0?L=B.edgesTo(P)[0]:L=P.edgesTo(B)[0];var q=n(L);P=P.id(),T[P]>T[R]+q&&(T[P]=T[R]+q,S.nodes.indexOf(P)<0?S.push(P):S.updateItem(P),E[P]=0,C[P]=[]),T[P]==T[R]+q&&(E[P]=E[P]+E[R],C[P].push(R))}else for(var F=0;F0;){for(var V=x.pop(),Z=0;Z0&&o.push(a[l]);o.length!==0&&i.push(n.collection(o))}return i},t1=function(e,t){for(var a=0;a5&&arguments[5]!==void 0?arguments[5]:i1,o=n,l,u,f=0;f=2?ca(e,t,a,0,qf,s1):ca(e,t,a,0,Of)},squaredEuclidean:function(e,t,a){return ca(e,t,a,0,qf)},manhattan:function(e,t,a){return ca(e,t,a,0,Of)},max:function(e,t,a){return ca(e,t,a,-1/0,o1)}};Wt["squared-euclidean"]=Wt.squaredEuclidean;Wt.squaredeuclidean=Wt.squaredEuclidean;function qn(r,e,t,a,n,i){var s;return Fe(r)?s=r:s=Wt[r]||Wt.euclidean,e===0&&Fe(r)?s(n,i):s(e,t,a,n,i)}var u1=rr({k:2,m:2,sensitivityThreshold:1e-4,distance:"euclidean",maxIterations:10,attributes:[],testMode:!1,testCentroids:null}),Wl=function(e){return u1(e)},xn=function(e,t,a,n,i){var s=i!=="kMedoids",o=s?function(v){return a[v]}:function(v){return n[v](a)},l=function(c){return n[c](t)},u=a,f=t;return qn(e,n.length,o,l,u,f)},li=function(e,t,a){for(var n=a.length,i=new Array(n),s=new Array(n),o=new Array(t),l=null,u=0;ua)return!1}return!0},v1=function(e,t,a){for(var n=0;no&&(o=t[u][f],l=f);i[l].push(e[u])}for(var v=0;v=i.threshold||i.mode==="dendrogram"&&e.length===1)return!1;var h=t[s],m=t[n[s]],p;i.mode==="dendrogram"?p={left:h,right:m,key:h.key}:p={value:h.value.concat(m.value),key:h.key},e[h.index]=p,e.splice(m.index,1),t[h.key]=p;for(var g=0;ga[m.key][y.key]&&(l=a[m.key][y.key])):i.linkage==="max"?(l=a[h.key][y.key],a[h.key][y.key]0&&n.push(i);return n},$f=function(e,t,a){for(var n=[],i=0;io&&(s=u,o=t[i*e+u])}s>0&&n.push(s)}for(var f=0;fu&&(l=f,u=v)}a[i]=s[l]}return n=$f(e,t,a),n},Uf=function(e){for(var t=this.cy(),a=this.nodes(),n=T1(e),i={},s=0;s=k?(R=k,k=P,I=B):P>R&&(R=P);for(var L=0;L0?1:0;E[S%n.minIterations*o+V]=Z,z+=Z}if(z>0&&(S>=n.minIterations-1||S==n.maxIterations-1)){for(var _=0,N=0;N1||C>1)&&(o=!0),v[b]=[],y.outgoers().forEach(function(T){T.isEdge()&&v[b].push(T.id())})}else c[b]=[void 0,y.target().id()]}):s.forEach(function(y){var b=y.id();if(y.isNode()){var w=y.degree(!0);w%2&&(l?u?o=!0:u=b:l=b),v[b]=[],y.connectedEdges().forEach(function(x){return v[b].push(x.id())})}else c[b]=[y.source().id(),y.target().id()]});var d={found:!1,trail:void 0};if(o)return d;if(u&&l)if(i){if(f&&u!=f)return d;f=u}else{if(f&&u!=f&&l!=f)return d;f||(f=u)}else f||(f=s[0].id());var h=function(b){for(var w=b,x=[b],C,E,T;v[w].length;)C=v[w].shift(),E=c[C][0],T=c[C][1],w!=T?(v[T]=v[T].filter(function(S){return S!=C}),w=T):!i&&w!=E&&(v[E]=v[E].filter(function(S){return S!=C}),w=E),x.unshift(C),x.unshift(w);return x},m=[],p=[];for(p=h(f);p.length!=1;)v[p[0]].length==0?(m.unshift(s.getElementById(p.shift())),m.unshift(s.getElementById(p.shift()))):p=h(p.shift()).concat(p);m.unshift(s.getElementById(p.shift()));for(var g in v)if(v[g].length)return d;return d.found=!0,d.trail=this.spawn(m,!0),d}},Ja=function(){var e=this,t={},a=0,n=0,i=[],s=[],o={},l=function(c,d){for(var h=s.length-1,m=[],p=e.spawn();s[h].x!=c||s[h].y!=d;)m.push(s.pop().edge),h--;m.push(s.pop().edge),m.forEach(function(g){var y=g.connectedNodes().intersection(e);p.merge(g),y.forEach(function(b){var w=b.id(),x=b.connectedEdges().intersection(e);p.merge(b),t[w].cutVertex?p.merge(x.filter(function(C){return C.isLoop()})):p.merge(x)})}),i.push(p)},u=function v(c,d,h){c===h&&(n+=1),t[d]={id:a,low:a++,cutVertex:!1};var m=e.getElementById(d).connectedEdges().intersection(e);if(m.size()===0)i.push(e.spawn(e.getElementById(d)));else{var p,g,y,b;m.forEach(function(w){p=w.source().id(),g=w.target().id(),y=p===d?g:p,y!==h&&(b=w.id(),o[b]||(o[b]=!0,s.push({x:d,y,edge:w})),y in t?t[d].low=Math.min(t[d].low,t[y].id):(v(c,y,d),t[d].low=Math.min(t[d].low,t[y].low),t[d].id<=t[y].low&&(t[d].cutVertex=!0,l(d,y))))})}};e.forEach(function(v){if(v.isNode()){var c=v.id();c in t||(n=0,u(c,c),t[c].cutVertex=n>1)}});var f=Object.keys(t).filter(function(v){return t[v].cutVertex}).map(function(v){return e.getElementById(v)});return{cut:e.spawn(f),components:i}},L1={hopcroftTarjanBiconnected:Ja,htbc:Ja,htb:Ja,hopcroftTarjanBiconnectedComponents:Ja},en=function(){var e=this,t={},a=0,n=[],i=[],s=e.spawn(e),o=function l(u){i.push(u),t[u]={index:a,low:a++,explored:!1};var f=e.getElementById(u).connectedEdges().intersection(e);if(f.forEach(function(m){var p=m.target().id();p!==u&&(p in t||l(p),t[p].explored||(t[u].low=Math.min(t[u].low,t[p].low)))}),t[u].index===t[u].low){for(var v=e.spawn();;){var c=i.pop();if(v.merge(e.getElementById(c)),t[c].low=t[u].index,t[c].explored=!0,c===u)break}var d=v.edgesWith(v),h=v.merge(d);n.push(h),s=s.difference(h)}};return e.forEach(function(l){if(l.isNode()){var u=l.id();u in t||o(u)}}),{cut:s,components:n}},M1={tarjanStronglyConnected:en,tsc:en,tscc:en,tarjanStronglyConnectedComponents:en},mp={};[Pa,fb,vb,db,gb,yb,wb,Hb,Gt,$t,hl,n1,y1,C1,A1,B1,L1,M1].forEach(function(r){we(mp,r)});/*! +Embeddable Minimum Strictly-Compliant Promises/A+ 1.1.1 Thenable +Copyright (c) 2013-2014 Ralf S. Engelschall (http://engelschall.com) +Licensed under The MIT License (http://opensource.org/licenses/MIT) +*/var bp=0,wp=1,Ep=2,Wr=function r(e){if(!(this instanceof r))return new r(e);this.id="Thenable/1.0.7",this.state=bp,this.fulfillValue=void 0,this.rejectReason=void 0,this.onFulfilled=[],this.onRejected=[],this.proxy={then:this.then.bind(this)},typeof e=="function"&&e.call(this,this.fulfill.bind(this),this.reject.bind(this))};Wr.prototype={fulfill:function(e){return Hf(this,wp,"fulfillValue",e)},reject:function(e){return Hf(this,Ep,"rejectReason",e)},then:function(e,t){var a=this,n=new Wr;return a.onFulfilled.push(Wf(e,n,"fulfill")),a.onRejected.push(Wf(t,n,"reject")),xp(a),n.proxy}};var Hf=function(e,t,a,n){return e.state===bp&&(e.state=t,e[a]=n,xp(e)),e},xp=function(e){e.state===wp?Kf(e,"onFulfilled",e.fulfillValue):e.state===Ep&&Kf(e,"onRejected",e.rejectReason)},Kf=function(e,t,a){if(e[t].length!==0){var n=e[t];e[t]=[];var i=function(){for(var o=0;o0}},clearQueue:function(){return function(){var t=this,a=t.length!==void 0,n=a?t:[t],i=this._private.cy||this;if(!i.styleEnabled())return this;for(var s=0;s-1}var Vw=zw;function Gw(r,e){var t=this.__data__,a=Fn(t,r);return a<0?(++this.size,t.push([r,e])):t[a][1]=e,this}var $w=Gw;function ea(r){var e=-1,t=r==null?0:r.length;for(this.clear();++e-1&&r%1==0&&r0&&this.spawn(n).updateStyle().emit("class"),t},addClass:function(e){return this.toggleClass(e,!0)},hasClass:function(e){var t=this[0];return t!=null&&t._private.classes.has(e)},toggleClass:function(e,t){Le(e)||(e=e.match(/\S+/g)||[]);for(var a=this,n=t===void 0,i=[],s=0,o=a.length;s0&&this.spawn(i).updateStyle().emit("class"),a},removeClass:function(e){return this.toggleClass(e,!1)},flashClass:function(e,t){var a=this;if(t==null)t=250;else if(t===0)return a;return a.addClass(e),setTimeout(function(){a.removeClass(e)},t),a}};fn.className=fn.classNames=fn.classes;var Se={metaChar:"[\\!\\\"\\#\\$\\%\\&\\'\\(\\)\\*\\+\\,\\.\\/\\:\\;\\<\\=\\>\\?\\@\\[\\]\\^\\`\\{\\|\\}\\~]",comparatorOp:"=|\\!=|>|>=|<|<=|\\$=|\\^=|\\*=",boolOp:"\\?|\\!|\\^",string:`"(?:\\\\"|[^"])*"|'(?:\\\\'|[^'])*'`,number:He,meta:"degree|indegree|outdegree",separator:"\\s*,\\s*",descendant:"\\s+",child:"\\s+>\\s+",subject:"\\$",group:"node|edge|\\*",directedEdge:"\\s+->\\s+",undirectedEdge:"\\s+<->\\s+"};Se.variable="(?:[\\w-.]|(?:\\\\"+Se.metaChar+"))+";Se.className="(?:[\\w-]|(?:\\\\"+Se.metaChar+"))+";Se.value=Se.string+"|"+Se.number;Se.id=Se.variable;(function(){var r,e,t;for(r=Se.comparatorOp.split("|"),t=0;t=0)&&e!=="="&&(Se.comparatorOp+="|\\!"+e)})();var Ie=function(){return{checks:[]}},le={GROUP:0,COLLECTION:1,FILTER:2,DATA_COMPARE:3,DATA_EXIST:4,DATA_BOOL:5,META_COMPARE:6,STATE:7,ID:8,CLASS:9,UNDIRECTED_EDGE:10,DIRECTED_EDGE:11,NODE_SOURCE:12,NODE_TARGET:13,NODE_NEIGHBOR:14,CHILD:15,DESCENDANT:16,PARENT:17,ANCESTOR:18,COMPOUND_SPLIT:19,TRUE:20},pl=[{selector:":selected",matches:function(e){return e.selected()}},{selector:":unselected",matches:function(e){return!e.selected()}},{selector:":selectable",matches:function(e){return e.selectable()}},{selector:":unselectable",matches:function(e){return!e.selectable()}},{selector:":locked",matches:function(e){return e.locked()}},{selector:":unlocked",matches:function(e){return!e.locked()}},{selector:":visible",matches:function(e){return e.visible()}},{selector:":hidden",matches:function(e){return!e.visible()}},{selector:":transparent",matches:function(e){return e.transparent()}},{selector:":grabbed",matches:function(e){return e.grabbed()}},{selector:":free",matches:function(e){return!e.grabbed()}},{selector:":removed",matches:function(e){return e.removed()}},{selector:":inside",matches:function(e){return!e.removed()}},{selector:":grabbable",matches:function(e){return e.grabbable()}},{selector:":ungrabbable",matches:function(e){return!e.grabbable()}},{selector:":animated",matches:function(e){return e.animated()}},{selector:":unanimated",matches:function(e){return!e.animated()}},{selector:":parent",matches:function(e){return e.isParent()}},{selector:":childless",matches:function(e){return e.isChildless()}},{selector:":child",matches:function(e){return e.isChild()}},{selector:":orphan",matches:function(e){return e.isOrphan()}},{selector:":nonorphan",matches:function(e){return e.isChild()}},{selector:":compound",matches:function(e){return e.isNode()?e.isParent():e.source().isParent()||e.target().isParent()}},{selector:":loop",matches:function(e){return e.isLoop()}},{selector:":simple",matches:function(e){return e.isSimple()}},{selector:":active",matches:function(e){return e.active()}},{selector:":inactive",matches:function(e){return!e.active()}},{selector:":backgrounding",matches:function(e){return e.backgrounding()}},{selector:":nonbackgrounding",matches:function(e){return!e.backgrounding()}}].sort(function(r,e){return n0(r.selector,e.selector)}),WE=function(){for(var r={},e,t=0;t0&&f.edgeCount>0)return Ae("The selector `"+e+"` is invalid because it uses both a compound selector and an edge selector"),!1;if(f.edgeCount>1)return Ae("The selector `"+e+"` is invalid because it uses multiple edge selectors"),!1;f.edgeCount===1&&Ae("The selector `"+e+"` is deprecated. Edge selectors do not take effect on changes to source and target nodes after an edge is added, for performance reasons. Use a class or data selector on edges instead, updating the class or data of an edge when your app detects a change in source or target nodes.")}return!0},JE=function(){if(this.toStringCache!=null)return this.toStringCache;for(var e=function(f){return f??""},t=function(f){return ye(f)?'"'+f+'"':e(f)},a=function(f){return" "+f+" "},n=function(f,v){var c=f.type,d=f.value;switch(c){case le.GROUP:{var h=e(d);return h.substring(0,h.length-1)}case le.DATA_COMPARE:{var m=f.field,p=f.operator;return"["+m+a(e(p))+t(d)+"]"}case le.DATA_BOOL:{var g=f.operator,y=f.field;return"["+e(g)+y+"]"}case le.DATA_EXIST:{var b=f.field;return"["+b+"]"}case le.META_COMPARE:{var w=f.operator,x=f.field;return"[["+x+a(e(w))+t(d)+"]]"}case le.STATE:return d;case le.ID:return"#"+d;case le.CLASS:return"."+d;case le.PARENT:case le.CHILD:return i(f.parent,v)+a(">")+i(f.child,v);case le.ANCESTOR:case le.DESCENDANT:return i(f.ancestor,v)+" "+i(f.descendant,v);case le.COMPOUND_SPLIT:{var C=i(f.left,v),E=i(f.subject,v),T=i(f.right,v);return C+(C.length>0?" ":"")+E+T}case le.TRUE:return""}},i=function(f,v){return f.checks.reduce(function(c,d,h){return c+(v===f&&h===0?"$":"")+n(d,v)},"")},s="",o=0;o1&&o=0&&(t=t.replace("!",""),v=!0),t.indexOf("@")>=0&&(t=t.replace("@",""),f=!0),(i||o||f)&&(l=!i&&!s?"":""+e,u=""+a),f&&(e=l=l.toLowerCase(),a=u=u.toLowerCase()),t){case"*=":n=l.indexOf(u)>=0;break;case"$=":n=l.indexOf(u,l.length-u.length)>=0;break;case"^=":n=l.indexOf(u)===0;break;case"=":n=e===a;break;case">":c=!0,n=e>a;break;case">=":c=!0,n=e>=a;break;case"<":c=!0,n=e0;){var f=n.shift();e(f),i.add(f.id()),o&&a(n,i,f)}return r}function Ip(r,e,t){if(t.isParent())for(var a=t._private.children,n=0;n1&&arguments[1]!==void 0?arguments[1]:!0;return Ql(this,r,e,Ip)};function Bp(r,e,t){if(t.isChild()){var a=t._private.parent;e.has(a.id())||r.push(a)}}Yt.forEachUp=function(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return Ql(this,r,e,Bp)};function ox(r,e,t){Bp(r,e,t),Ip(r,e,t)}Yt.forEachUpAndDown=function(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return Ql(this,r,e,ox)};Yt.ancestors=Yt.parents;var La,Lp;La=Lp={data:Pe.data({field:"data",bindingEvent:"data",allowBinding:!0,allowSetting:!0,settingEvent:"data",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,immutableKeys:{id:!0,source:!0,target:!0,parent:!0},updateStyle:!0}),removeData:Pe.removeData({field:"data",event:"data",triggerFnName:"trigger",triggerEvent:!0,immutableKeys:{id:!0,source:!0,target:!0,parent:!0},updateStyle:!0}),scratch:Pe.data({field:"scratch",bindingEvent:"scratch",allowBinding:!0,allowSetting:!0,settingEvent:"scratch",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,updateStyle:!0}),removeScratch:Pe.removeData({field:"scratch",event:"scratch",triggerFnName:"trigger",triggerEvent:!0,updateStyle:!0}),rscratch:Pe.data({field:"rscratch",allowBinding:!1,allowSetting:!0,settingTriggersEvent:!1,allowGetting:!0}),removeRscratch:Pe.removeData({field:"rscratch",triggerEvent:!1}),id:function(){var e=this[0];if(e)return e._private.data.id}};La.attr=La.data;La.removeAttr=La.removeData;var ux=Lp,Vn={};function vi(r){return function(e){var t=this;if(e===void 0&&(e=!0),t.length!==0)if(t.isNode()&&!t.removed()){for(var a=0,n=t[0],i=n._private.edges,s=0;se}),minIndegree:Lt("indegree",function(r,e){return re}),minOutdegree:Lt("outdegree",function(r,e){return re})});we(Vn,{totalDegree:function(e){for(var t=0,a=this.nodes(),n=0;n0,c=v;v&&(f=f[0]);var d=c?f.position():{x:0,y:0};t!==void 0?u.position(e,t+d[e]):i!==void 0&&u.position({x:i.x+d.x,y:i.y+d.y})}else{var h=a.position(),m=o?a.parent():null,p=m&&m.length>0,g=p;p&&(m=m[0]);var y=g?m.position():{x:0,y:0};return i={x:h.x-y.x,y:h.y-y.y},e===void 0?i:i[e]}else if(!s)return;return this}};Br.modelPosition=Br.point=Br.position;Br.modelPositions=Br.points=Br.positions;Br.renderedPoint=Br.renderedPosition;Br.relativePoint=Br.relativePosition;var lx=Mp,Ut,ct;Ut=ct={};ct.renderedBoundingBox=function(r){var e=this.boundingBox(r),t=this.cy(),a=t.zoom(),n=t.pan(),i=e.x1*a+n.x,s=e.x2*a+n.x,o=e.y1*a+n.y,l=e.y2*a+n.y;return{x1:i,x2:s,y1:o,y2:l,w:s-i,h:l-o}};ct.dirtyCompoundBoundsCache=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,e=this.cy();return!e.styleEnabled()||!e.hasCompoundNodes()?this:(this.forEachUp(function(t){if(t.isParent()){var a=t._private;a.compoundBoundsClean=!1,a.bbCache=null,r||t.emitAndNotify("bounds")}}),this)};ct.updateCompoundBounds=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,e=this.cy();if(!e.styleEnabled()||!e.hasCompoundNodes())return this;if(!r&&e.batching())return this;function t(s){if(!s.isParent())return;var o=s._private,l=s.children(),u=s.pstyle("compound-sizing-wrt-labels").value==="include",f={width:{val:s.pstyle("min-width").pfValue,left:s.pstyle("min-width-bias-left"),right:s.pstyle("min-width-bias-right")},height:{val:s.pstyle("min-height").pfValue,top:s.pstyle("min-height-bias-top"),bottom:s.pstyle("min-height-bias-bottom")}},v=l.boundingBox({includeLabels:u,includeOverlays:!1,useCache:!1}),c=o.position;(v.w===0||v.h===0)&&(v={w:s.pstyle("width").pfValue,h:s.pstyle("height").pfValue},v.x1=c.x-v.w/2,v.x2=c.x+v.w/2,v.y1=c.y-v.h/2,v.y2=c.y+v.h/2);function d(S,D,k){var R=0,I=0,P=D+k;return S>0&&P>0&&(R=D/P*S,I=k/P*S),{biasDiff:R,biasComplementDiff:I}}function h(S,D,k,R){if(k.units==="%")switch(R){case"width":return S>0?k.pfValue*S:0;case"height":return D>0?k.pfValue*D:0;case"average":return S>0&&D>0?k.pfValue*(S+D)/2:0;case"min":return S>0&&D>0?S>D?k.pfValue*D:k.pfValue*S:0;case"max":return S>0&&D>0?S>D?k.pfValue*S:k.pfValue*D:0;default:return 0}else return k.units==="px"?k.pfValue:0}var m=f.width.left.value;f.width.left.units==="px"&&f.width.val>0&&(m=m*100/f.width.val);var p=f.width.right.value;f.width.right.units==="px"&&f.width.val>0&&(p=p*100/f.width.val);var g=f.height.top.value;f.height.top.units==="px"&&f.height.val>0&&(g=g*100/f.height.val);var y=f.height.bottom.value;f.height.bottom.units==="px"&&f.height.val>0&&(y=y*100/f.height.val);var b=d(f.width.val-v.w,m,p),w=b.biasDiff,x=b.biasComplementDiff,C=d(f.height.val-v.h,g,y),E=C.biasDiff,T=C.biasComplementDiff;o.autoPadding=h(v.w,v.h,s.pstyle("padding"),s.pstyle("padding-relative-to").value),o.autoWidth=Math.max(v.w,f.width.val),c.x=(-w+v.x1+v.x2+x)/2,o.autoHeight=Math.max(v.h,f.height.val),c.y=(-E+v.y1+v.y2+T)/2}for(var a=0;ae.x2?n:e.x2,e.y1=ae.y2?i:e.y2,e.w=e.x2-e.x1,e.h=e.y2-e.y1)},yt=function(e,t){return t==null?e:Ar(e,t.x1,t.y1,t.x2,t.y2)},da=function(e,t,a){return Ir(e,t,a)},rn=function(e,t,a){if(!t.cy().headless()){var n=t._private,i=n.rstyle,s=i.arrowWidth/2,o=t.pstyle(a+"-arrow-shape").value,l,u;if(o!=="none"){a==="source"?(l=i.srcX,u=i.srcY):a==="target"?(l=i.tgtX,u=i.tgtY):(l=i.midX,u=i.midY);var f=n.arrowBounds=n.arrowBounds||{},v=f[a]=f[a]||{};v.x1=l-s,v.y1=u-s,v.x2=l+s,v.y2=u+s,v.w=v.x2-v.x1,v.h=v.y2-v.y1,un(v,1),Ar(e,v.x1,v.y1,v.x2,v.y2)}}},ci=function(e,t,a){if(!t.cy().headless()){var n;a?n=a+"-":n="";var i=t._private,s=i.rstyle,o=t.pstyle(n+"label").strValue;if(o){var l=t.pstyle("text-halign"),u=t.pstyle("text-valign"),f=da(s,"labelWidth",a),v=da(s,"labelHeight",a),c=da(s,"labelX",a),d=da(s,"labelY",a),h=t.pstyle(n+"text-margin-x").pfValue,m=t.pstyle(n+"text-margin-y").pfValue,p=t.isEdge(),g=t.pstyle(n+"text-rotation"),y=t.pstyle("text-outline-width").pfValue,b=t.pstyle("text-border-width").pfValue,w=b/2,x=t.pstyle("text-background-padding").pfValue,C=2,E=v,T=f,S=T/2,D=E/2,k,R,I,P;if(p)k=c-S,R=c+S,I=d-D,P=d+D;else{switch(l.value){case"left":k=c-T,R=c;break;case"center":k=c-S,R=c+S;break;case"right":k=c,R=c+T;break}switch(u.value){case"top":I=d-E,P=d;break;case"center":I=d-D,P=d+D;break;case"bottom":I=d,P=d+E;break}}k+=h-Math.max(y,w)-x-C,R+=h+Math.max(y,w)+x+C,I+=m-Math.max(y,w)-x-C,P+=m+Math.max(y,w)+x+C;var B=a||"main",L=i.labelBounds,q=L[B]=L[B]||{};q.x1=k,q.y1=I,q.x2=R,q.y2=P,q.w=R-k,q.h=P-I;var F=p&&g.strValue==="autorotate",$=g.pfValue!=null&&g.pfValue!==0;if(F||$){var U=F?da(i.rstyle,"labelAngle",a):g.pfValue,z=Math.cos(U),V=Math.sin(U),Z=(k+R)/2,_=(I+P)/2;if(!p){switch(l.value){case"left":Z=R;break;case"right":Z=k;break}switch(u.value){case"top":_=P;break;case"bottom":_=I;break}}var N=function(ce,te){return ce=ce-Z,te=te-_,{x:ce*z-te*V+Z,y:ce*V+te*z+_}},O=N(k,I),M=N(k,P),G=N(R,I),K=N(R,P);k=Math.min(O.x,M.x,G.x,K.x),R=Math.max(O.x,M.x,G.x,K.x),I=Math.min(O.y,M.y,G.y,K.y),P=Math.max(O.y,M.y,G.y,K.y)}var j=B+"Rot",J=L[j]=L[j]||{};J.x1=k,J.y1=I,J.x2=R,J.y2=P,J.w=R-k,J.h=P-I,Ar(e,k,I,R,P),Ar(i.labelBounds.all,k,I,R,P)}return e}},fx=function(e,t){if(!t.cy().headless()){var a=t.pstyle("outline-opacity").value,n=t.pstyle("outline-width").value;if(a>0&&n>0){var i=t.pstyle("outline-offset").value,s=t.pstyle("shape").value,o=n+i,l=(e.w+o*2)/e.w,u=(e.h+o*2)/e.h,f=0,v=0;["diamond","pentagon","round-triangle"].includes(s)?(l=(e.w+o*2.4)/e.w,v=-o/3.6):["concave-hexagon","rhomboid","right-rhomboid"].includes(s)?l=(e.w+o*2.4)/e.w:s==="star"?(l=(e.w+o*2.8)/e.w,u=(e.h+o*2.6)/e.h,v=-o/3.8):s==="triangle"?(l=(e.w+o*2.8)/e.w,u=(e.h+o*2.4)/e.h,v=-o/1.4):s==="vee"&&(l=(e.w+o*4.4)/e.w,u=(e.h+o*3.8)/e.h,v=-o*.5);var c=e.h*u-e.h,d=e.w*l-e.w;if(ln(e,[Math.ceil(c/2),Math.ceil(d/2)]),f!=0||v!==0){var h=Ib(e,f,v);lp(e,h)}}}},vx=function(e,t){var a=e._private.cy,n=a.styleEnabled(),i=a.headless(),s=pr(),o=e._private,l=e.isNode(),u=e.isEdge(),f,v,c,d,h,m,p=o.rstyle,g=l&&n?e.pstyle("bounds-expansion").pfValue:[0],y=function(oe){return oe.pstyle("display").value!=="none"},b=!n||y(e)&&(!u||y(e.source())&&y(e.target()));if(b){var w=0,x=0;n&&t.includeOverlays&&(w=e.pstyle("overlay-opacity").value,w!==0&&(x=e.pstyle("overlay-padding").value));var C=0,E=0;n&&t.includeUnderlays&&(C=e.pstyle("underlay-opacity").value,C!==0&&(E=e.pstyle("underlay-padding").value));var T=Math.max(x,E),S=0,D=0;if(n&&(S=e.pstyle("width").pfValue,D=S/2),l&&t.includeNodes){var k=e.position();h=k.x,m=k.y;var R=e.outerWidth(),I=R/2,P=e.outerHeight(),B=P/2;f=h-I,v=h+I,c=m-B,d=m+B,Ar(s,f,c,v,d),n&&t.includeOutlines&&fx(s,e)}else if(u&&t.includeEdges)if(n&&!i){var L=e.pstyle("curve-style").strValue;if(f=Math.min(p.srcX,p.midX,p.tgtX),v=Math.max(p.srcX,p.midX,p.tgtX),c=Math.min(p.srcY,p.midY,p.tgtY),d=Math.max(p.srcY,p.midY,p.tgtY),f-=D,v+=D,c-=D,d+=D,Ar(s,f,c,v,d),L==="haystack"){var q=p.haystackPts;if(q&&q.length===2){if(f=q[0].x,c=q[0].y,v=q[1].x,d=q[1].y,f>v){var F=f;f=v,v=F}if(c>d){var $=c;c=d,d=$}Ar(s,f-D,c-D,v+D,d+D)}}else if(L==="bezier"||L==="unbundled-bezier"||L.endsWith("segments")||L.endsWith("taxi")){var U;switch(L){case"bezier":case"unbundled-bezier":U=p.bezierPts;break;case"segments":case"taxi":case"round-segments":case"round-taxi":U=p.linePts;break}if(U!=null)for(var z=0;zv){var M=f;f=v,v=M}if(c>d){var G=c;c=d,d=G}f-=D,v+=D,c-=D,d+=D,Ar(s,f,c,v,d)}if(n&&t.includeEdges&&u&&(rn(s,e,"mid-source"),rn(s,e,"mid-target"),rn(s,e,"source"),rn(s,e,"target")),n){var K=e.pstyle("ghost").value==="yes";if(K){var j=e.pstyle("ghost-offset-x").pfValue,J=e.pstyle("ghost-offset-y").pfValue;Ar(s,s.x1+j,s.y1+J,s.x2+j,s.y2+J)}}var fe=o.bodyBounds=o.bodyBounds||{};Bf(fe,s),ln(fe,g),un(fe,1),n&&(f=s.x1,v=s.x2,c=s.y1,d=s.y2,Ar(s,f-T,c-T,v+T,d+T));var ce=o.overlayBounds=o.overlayBounds||{};Bf(ce,s),ln(ce,g),un(ce,1);var te=o.labelBounds=o.labelBounds||{};te.all!=null?Ab(te.all):te.all=pr(),n&&t.includeLabels&&(t.includeMainLabels&&ci(s,e,null),u&&(t.includeSourceLabels&&ci(s,e,"source"),t.includeTargetLabels&&ci(s,e,"target")))}return s.x1=xr(s.x1),s.y1=xr(s.y1),s.x2=xr(s.x2),s.y2=xr(s.y2),s.w=xr(s.x2-s.x1),s.h=xr(s.y2-s.y1),s.w>0&&s.h>0&&b&&(ln(s,g),un(s,1)),s},Op=function(e){var t=0,a=function(s){return(s?1:0)<0&&arguments[0]!==void 0?arguments[0]:kx,e=arguments.length>1?arguments[1]:void 0,t=0;t=0;o--)s(o);return this};lt.removeAllListeners=function(){return this.removeListener("*")};lt.emit=lt.trigger=function(r,e,t){var a=this.listeners,n=a.length;return this.emitting++,Le(e)||(e=[e]),Dx(this,function(i,s){t!=null&&(a=[{event:s.event,type:s.type,namespace:s.namespace,callback:t}],n=a.length);for(var o=function(f){var v=a[f];if(v.type===s.type&&(!v.namespace||v.namespace===s.namespace||v.namespace===Tx)&&i.eventMatches(i.context,v,s)){var c=[s];e!=null&&nb(c,e),i.beforeEmit(i.context,v,s),v.conf&&v.conf.one&&(i.listeners=i.listeners.filter(function(m){return m!==v}));var d=i.callbackContext(i.context,v,s),h=v.callback.apply(d,c);i.afterEmit(i.context,v,s),h===!1&&(s.stopPropagation(),s.preventDefault())}},l=0;l1&&!s){var o=this.length-1,l=this[o],u=l._private.data.id;this[o]=void 0,this[e]=l,i.set(u,{ele:l,index:e})}return this.length--,this},unmergeOne:function(e){e=e[0];var t=this._private,a=e._private.data.id,n=t.map,i=n.get(a);if(!i)return this;var s=i.index;return this.unmergeAt(s),this},unmerge:function(e){var t=this._private.cy;if(!e)return this;if(e&&ye(e)){var a=e;e=t.mutableElements().filter(a)}for(var n=0;n=0;t--){var a=this[t];e(a)&&this.unmergeAt(t)}return this},map:function(e,t){for(var a=[],n=this,i=0;ia&&(a=l,n=o)}return{value:a,ele:n}},min:function(e,t){for(var a=1/0,n,i=this,s=0;s=0&&i"u"?"undefined":Ke(Symbol))!=e&&Ke(Symbol.iterator)!=e;t&&(Cn[Symbol.iterator]=function(){var a=this,n={value:void 0,done:!1},i=0,s=this.length;return Gg({next:function(){return i1&&arguments[1]!==void 0?arguments[1]:!0,a=this[0],n=a.cy();if(n.styleEnabled()&&a){this.cleanStyle();var i=a._private.style[e];return i??(t?n.style().getDefaultProperty(e):null)}},numericStyle:function(e){var t=this[0];if(t.cy().styleEnabled()&&t){var a=t.pstyle(e);return a.pfValue!==void 0?a.pfValue:a.value}},numericStyleUnits:function(e){var t=this[0];if(t.cy().styleEnabled()&&t)return t.pstyle(e).units},renderedStyle:function(e){var t=this.cy();if(!t.styleEnabled())return this;var a=this[0];if(a)return t.style().getRenderedStyle(a,e)},style:function(e,t){var a=this.cy();if(!a.styleEnabled())return this;var n=!1,i=a.style();if(Te(e)){var s=e;i.applyBypass(this,s,n),this.emitAndNotify("style")}else if(ye(e))if(t===void 0){var o=this[0];return o?i.getStylePropertyValue(o,e):void 0}else i.applyBypass(this,e,t,n),this.emitAndNotify("style");else if(e===void 0){var l=this[0];return l?i.getRawStyle(l):void 0}return this},removeStyle:function(e){var t=this.cy();if(!t.styleEnabled())return this;var a=!1,n=t.style(),i=this;if(e===void 0)for(var s=0;s0&&e.push(f[0]),e.push(o[0])}return this.spawn(e,!0).filter(r)},"neighborhood"),closedNeighborhood:function(e){return this.neighborhood().add(this).filter(e)},openNeighborhood:function(e){return this.neighborhood(e)}});ir.neighbourhood=ir.neighborhood;ir.closedNeighbourhood=ir.closedNeighborhood;ir.openNeighbourhood=ir.openNeighborhood;we(ir,{source:Cr(function(e){var t=this[0],a;return t&&(a=t._private.source||t.cy().collection()),a&&e?a.filter(e):a},"source"),target:Cr(function(e){var t=this[0],a;return t&&(a=t._private.target||t.cy().collection()),a&&e?a.filter(e):a},"target"),sources:fv({attr:"source"}),targets:fv({attr:"target"})});function fv(r){return function(t){for(var a=[],n=0;n0);return s},component:function(){var e=this[0];return e.cy().mutableElements().components(e)[0]}});ir.componentsOf=ir.components;var er=function(e,t){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e===void 0){ze("A collection must have a reference to the core");return}var i=new Fr,s=!1;if(!t)t=[];else if(t.length>0&&Te(t[0])&&!Na(t[0])){s=!0;for(var o=[],l=new jt,u=0,f=t.length;u0&&arguments[0]!==void 0?arguments[0]:!0,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,t=this,a=t.cy(),n=a._private,i=[],s=[],o,l=0,u=t.length;l0){for(var $=o.length===t.length?t:new er(a,o),U=0;U<$.length;U++){var z=$[U];z.isNode()||(z.parallelEdges().clearTraversalCache(),z.source().clearTraversalCache(),z.target().clearTraversalCache())}var V;n.hasCompoundNodes?V=a.collection().merge($).merge($.connectedNodes()).merge($.parent()):V=$,V.dirtyCompoundBoundsCache().dirtyBoundingBoxCache().updateStyle(r),r?$.emitAndNotify("add"):e&&$.emit("add")}return t};_e.removed=function(){var r=this[0];return r&&r._private.removed};_e.inside=function(){var r=this[0];return r&&!r._private.removed};_e.remove=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,t=this,a=[],n={},i=t._private.cy;function s(P){for(var B=P._private.edges,L=0;L0&&(r?k.emitAndNotify("remove"):e&&k.emit("remove"));for(var R=0;R0?R=P:k=P;while(Math.abs(I)>s&&++B=i?y(D,B):L===0?B:w(D,k,k+u)}var C=!1;function E(){C=!0,(r!==e||t!==a)&&b()}var T=function(k){return C||E(),r===e&&t===a?k:k===0?0:k===1?1:p(x(k),e,a)};T.getControlPoints=function(){return[{x:r,y:e},{x:t,y:a}]};var S="generateBezier("+[r,e,t,a]+")";return T.toString=function(){return S},T}/*! Runge-Kutta spring physics function generator. Adapted from Framer.js, copyright Koen Bok. MIT License: http://en.wikipedia.org/wiki/MIT_License */var Nx=function(){function r(a){return-a.tension*a.x-a.friction*a.v}function e(a,n,i){var s={x:a.x+i.dx*n,v:a.v+i.dv*n,tension:a.tension,friction:a.friction};return{dx:s.v,dv:r(s)}}function t(a,n){var i={dx:a.v,dv:r(a)},s=e(a,n*.5,i),o=e(a,n*.5,s),l=e(a,n,o),u=1/6*(i.dx+2*(s.dx+o.dx)+l.dx),f=1/6*(i.dv+2*(s.dv+o.dv)+l.dv);return a.x=a.x+u*n,a.v=a.v+f*n,a}return function a(n,i,s){var o={x:-1,v:0,tension:null,friction:null},l=[0],u=0,f=1/1e4,v=16/1e3,c,d,h;for(n=parseFloat(n)||500,i=parseFloat(i)||20,s=s||null,o.tension=n,o.friction=i,c=s!==null,c?(u=a(n,i),d=u/s*v):d=v;h=t(h||o,d),l.push(1+h.x),u+=16,Math.abs(h.x)>f&&Math.abs(h.v)>f;);return c?function(m){return l[m*(l.length-1)|0]}:u}}(),Me=function(e,t,a,n){var i=qx(e,t,a,n);return function(s,o,l){return s+(o-s)*i(l)}},cn={linear:function(e,t,a){return e+(t-e)*a},ease:Me(.25,.1,.25,1),"ease-in":Me(.42,0,1,1),"ease-out":Me(0,0,.58,1),"ease-in-out":Me(.42,0,.58,1),"ease-in-sine":Me(.47,0,.745,.715),"ease-out-sine":Me(.39,.575,.565,1),"ease-in-out-sine":Me(.445,.05,.55,.95),"ease-in-quad":Me(.55,.085,.68,.53),"ease-out-quad":Me(.25,.46,.45,.94),"ease-in-out-quad":Me(.455,.03,.515,.955),"ease-in-cubic":Me(.55,.055,.675,.19),"ease-out-cubic":Me(.215,.61,.355,1),"ease-in-out-cubic":Me(.645,.045,.355,1),"ease-in-quart":Me(.895,.03,.685,.22),"ease-out-quart":Me(.165,.84,.44,1),"ease-in-out-quart":Me(.77,0,.175,1),"ease-in-quint":Me(.755,.05,.855,.06),"ease-out-quint":Me(.23,1,.32,1),"ease-in-out-quint":Me(.86,0,.07,1),"ease-in-expo":Me(.95,.05,.795,.035),"ease-out-expo":Me(.19,1,.22,1),"ease-in-out-expo":Me(1,0,0,1),"ease-in-circ":Me(.6,.04,.98,.335),"ease-out-circ":Me(.075,.82,.165,1),"ease-in-out-circ":Me(.785,.135,.15,.86),spring:function(e,t,a){if(a===0)return cn.linear;var n=Nx(e,t,a);return function(i,s,o){return i+(s-i)*n(o)}},"cubic-bezier":Me};function dv(r,e,t,a,n){if(a===1||e===t)return t;var i=n(e,t,a);return r==null||((r.roundValue||r.color)&&(i=Math.round(i)),r.min!==void 0&&(i=Math.max(i,r.min)),r.max!==void 0&&(i=Math.min(i,r.max))),i}function hv(r,e){return r.pfValue!=null||r.value!=null?r.pfValue!=null&&(e==null||e.type.units!=="%")?r.pfValue:r.value:r}function Mt(r,e,t,a,n){var i=n!=null?n.type:null;t<0?t=0:t>1&&(t=1);var s=hv(r,n),o=hv(e,n);if(se(s)&&se(o))return dv(i,s,o,t,a);if(Le(s)&&Le(o)){for(var l=[],u=0;u0?(d==="spring"&&h.push(s.duration),s.easingImpl=cn[d].apply(null,h)):s.easingImpl=cn[d]}var m=s.easingImpl,p;if(s.duration===0?p=1:p=(t-l)/s.duration,s.applying&&(p=s.progress),p<0?p=0:p>1&&(p=1),s.delay==null){var g=s.startPosition,y=s.position;if(y&&n&&!r.locked()){var b={};ga(g.x,y.x)&&(b.x=Mt(g.x,y.x,p,m)),ga(g.y,y.y)&&(b.y=Mt(g.y,y.y,p,m)),r.position(b)}var w=s.startPan,x=s.pan,C=i.pan,E=x!=null&&a;E&&(ga(w.x,x.x)&&(C.x=Mt(w.x,x.x,p,m)),ga(w.y,x.y)&&(C.y=Mt(w.y,x.y,p,m)),r.emit("pan"));var T=s.startZoom,S=s.zoom,D=S!=null&&a;D&&(ga(T,S)&&(i.zoom=Aa(i.minZoom,Mt(T,S,p,m),i.maxZoom)),r.emit("zoom")),(E||D)&&r.emit("viewport");var k=s.style;if(k&&k.length>0&&n){for(var R=0;R=0;E--){var T=C[E];T()}C.splice(0,C.length)},y=d.length-1;y>=0;y--){var b=d[y],w=b._private;if(w.stopped){d.splice(y,1),w.hooked=!1,w.playing=!1,w.started=!1,g(w.frames);continue}!w.playing&&!w.applying||(w.playing&&w.applying&&(w.applying=!1),w.started||zx(f,b,r),Fx(f,b,r,v),w.applying&&(w.applying=!1),g(w.frames),w.step!=null&&w.step(r),b.completed()&&(d.splice(y,1),w.hooked=!1,w.playing=!1,w.started=!1,g(w.completes)),m=!0)}return!v&&d.length===0&&h.length===0&&a.push(f),m}for(var i=!1,s=0;s0?e.notify("draw",t):e.notify("draw")),t.unmerge(a),e.emit("step")}var Vx={animate:Pe.animate(),animation:Pe.animation(),animated:Pe.animated(),clearQueue:Pe.clearQueue(),delay:Pe.delay(),delayAnimation:Pe.delayAnimation(),stop:Pe.stop(),addToAnimationPool:function(e){var t=this;t.styleEnabled()&&t._private.aniEles.merge(e)},stopAnimationLoop:function(){this._private.animationsRunning=!1},startAnimationLoop:function(){var e=this;if(e._private.animationsRunning=!0,!e.styleEnabled())return;function t(){e._private.animationsRunning&&mn(function(i){gv(i,e),t()})}var a=e.renderer();a&&a.beforeRender?a.beforeRender(function(i,s){gv(s,e)},a.beforeRenderPriorities.animations):t()}},Gx={qualifierCompare:function(e,t){return e==null||t==null?e==null&&t==null:e.sameText(t)},eventMatches:function(e,t,a){var n=t.qualifier;return n!=null?e!==a.target&&Na(a.target)&&n.matches(a.target):!0},addEventFields:function(e,t){t.cy=e,t.target=e},callbackContext:function(e,t,a){return t.qualifier!=null?a.target:e}},nn=function(e){return ye(e)?new ot(e):e},Wp={createEmitter:function(){var e=this._private;return e.emitter||(e.emitter=new Gn(Gx,this)),this},emitter:function(){return this._private.emitter},on:function(e,t,a){return this.emitter().on(e,nn(t),a),this},removeListener:function(e,t,a){return this.emitter().removeListener(e,nn(t),a),this},removeAllListeners:function(){return this.emitter().removeAllListeners(),this},one:function(e,t,a){return this.emitter().one(e,nn(t),a),this},once:function(e,t,a){return this.emitter().one(e,nn(t),a),this},emit:function(e,t){return this.emitter().emit(e,t),this},emitAndNotify:function(e,t){return this.emit(e),this.notify(e,t),this}};Pe.eventAliasesOn(Wp);var ml={png:function(e){var t=this._private.renderer;return e=e||{},t.png(e)},jpg:function(e){var t=this._private.renderer;return e=e||{},e.bg=e.bg||"#fff",t.jpg(e)}};ml.jpeg=ml.jpg;var dn={layout:function(e){var t=this;if(e==null){ze("Layout options must be specified to make a layout");return}if(e.name==null){ze("A `name` must be specified to make a layout");return}var a=e.name,n=t.extension("layout",a);if(n==null){ze("No such layout `"+a+"` found. Did you forget to import it and `cytoscape.use()` it?");return}var i;ye(e.eles)?i=t.$(e.eles):i=e.eles!=null?e.eles:t.$();var s=new n(we({},e,{cy:t,eles:i}));return s}};dn.createLayout=dn.makeLayout=dn.layout;var $x={notify:function(e,t){var a=this._private;if(this.batching()){a.batchNotifications=a.batchNotifications||{};var n=a.batchNotifications[e]=a.batchNotifications[e]||this.collection();t!=null&&n.merge(t);return}if(a.notificationsEnabled){var i=this.renderer();this.destroyed()||!i||i.notify(e,t)}},notifications:function(e){var t=this._private;return e===void 0?t.notificationsEnabled:(t.notificationsEnabled=!!e,this)},noNotifications:function(e){this.notifications(!1),e(),this.notifications(!0)},batching:function(){return this._private.batchCount>0},startBatch:function(){var e=this._private;return e.batchCount==null&&(e.batchCount=0),e.batchCount===0&&(e.batchStyleEles=this.collection(),e.batchNotifications={}),e.batchCount++,this},endBatch:function(){var e=this._private;if(e.batchCount===0)return this;if(e.batchCount--,e.batchCount===0){e.batchStyleEles.updateStyle();var t=this.renderer();Object.keys(e.batchNotifications).forEach(function(a){var n=e.batchNotifications[a];n.empty()?t.notify(a):t.notify(a,n)})}return this},batch:function(e){return this.startBatch(),e(),this.endBatch(),this},batchData:function(e){var t=this;return this.batch(function(){for(var a=Object.keys(e),n=0;n0;)t.removeChild(t.childNodes[0]);e._private.renderer=null,e.mutableElements().forEach(function(a){var n=a._private;n.rscratch={},n.rstyle={},n.animation.current=[],n.animation.queue=[]})},onRender:function(e){return this.on("render",e)},offRender:function(e){return this.off("render",e)}};bl.invalidateDimensions=bl.resize;var hn={collection:function(e,t){return ye(e)?this.$(e):mr(e)?e.collection():Le(e)?(t||(t={}),new er(this,e,t.unique,t.removed)):new er(this)},nodes:function(e){var t=this.$(function(a){return a.isNode()});return e?t.filter(e):t},edges:function(e){var t=this.$(function(a){return a.isEdge()});return e?t.filter(e):t},$:function(e){var t=this._private.elements;return e?t.filter(e):t.spawnSelf()},mutableElements:function(){return this._private.elements}};hn.elements=hn.filter=hn.$;var or={},Sa="t",Hx="f";or.apply=function(r){for(var e=this,t=e._private,a=t.cy,n=a.collection(),i=0;i0;if(c||v&&d){var h=void 0;c&&d||c?h=u.properties:d&&(h=u.mappedProperties);for(var m=0;m1&&(w=1),o.color){var C=a.valueMin[0],E=a.valueMax[0],T=a.valueMin[1],S=a.valueMax[1],D=a.valueMin[2],k=a.valueMax[2],R=a.valueMin[3]==null?1:a.valueMin[3],I=a.valueMax[3]==null?1:a.valueMax[3],P=[Math.round(C+(E-C)*w),Math.round(T+(S-T)*w),Math.round(D+(k-D)*w),Math.round(R+(I-R)*w)];i={bypass:a.bypass,name:a.name,value:P,strValue:"rgb("+P[0]+", "+P[1]+", "+P[2]+")"}}else if(o.number){var B=a.valueMin+(a.valueMax-a.valueMin)*w;i=this.parse(a.name,B,a.bypass,c)}else return!1;if(!i)return m(),!1;i.mapping=a,a=i;break}case s.data:{for(var L=a.field.split("."),q=v.data,F=0;F0&&i>0){for(var o={},l=!1,u=0;u0?r.delayAnimation(s).play().promise().then(b):b()}).then(function(){return r.animation({style:o,duration:i,easing:r.pstyle("transition-timing-function").value,queue:!1}).play().promise()}).then(function(){t.removeBypasses(r,n),r.emitAndNotify("style"),a.transitioning=!1})}else a.transitioning&&(this.removeBypasses(r,n),r.emitAndNotify("style"),a.transitioning=!1)};or.checkTrigger=function(r,e,t,a,n,i){var s=this.properties[e],o=n(s);o!=null&&o(t,a)&&i(s)};or.checkZOrderTrigger=function(r,e,t,a){var n=this;this.checkTrigger(r,e,t,a,function(i){return i.triggersZOrder},function(){n._private.cy.notify("zorder",r)})};or.checkBoundsTrigger=function(r,e,t,a){this.checkTrigger(r,e,t,a,function(n){return n.triggersBounds},function(n){r.dirtyCompoundBoundsCache(),r.dirtyBoundingBoxCache(),n.triggersBoundsOfParallelBeziers&&e==="curve-style"&&(t==="bezier"||a==="bezier")&&r.parallelEdges().forEach(function(i){i.isBundledBezier()&&i.dirtyBoundingBoxCache()}),n.triggersBoundsOfConnectedEdges&&e==="display"&&(t==="none"||a==="none")&&r.connectedEdges().forEach(function(i){i.dirtyBoundingBoxCache()})})};or.checkTriggers=function(r,e,t,a){r.dirtyStyleCache(),this.checkZOrderTrigger(r,e,t,a),this.checkBoundsTrigger(r,e,t,a)};var Ga={};Ga.applyBypass=function(r,e,t,a){var n=this,i=[],s=!0;if(e==="*"||e==="**"){if(t!==void 0)for(var o=0;on.length?a=a.substr(n.length):a=""}function l(){i.length>s.length?i=i.substr(s.length):i=""}for(;;){var u=a.match(/^\s*$/);if(u)break;var f=a.match(/^\s*((?:.|\s)+?)\s*\{((?:.|\s)+?)\}/);if(!f){Ae("Halting stylesheet parsing: String stylesheet contains more to parse but no selector and block found in: "+a);break}n=f[0];var v=f[1];if(v!=="core"){var c=new ot(v);if(c.invalid){Ae("Skipping parsing of block: Invalid selector found in string stylesheet: "+v),o();continue}}var d=f[2],h=!1;i=d;for(var m=[];;){var p=i.match(/^\s*$/);if(p)break;var g=i.match(/^\s*(.+?)\s*:\s*(.+?)(?:\s*;|\s*$)/);if(!g){Ae("Skipping parsing of block: Invalid formatting of style property and value definitions found in:"+d),h=!0;break}s=g[0];var y=g[1],b=g[2],w=e.properties[y];if(!w){Ae("Skipping property: Invalid property name in: "+s),l();continue}var x=t.parse(y,b);if(!x){Ae("Skipping property: Invalid property definition in: "+s),l();continue}m.push({name:y,val:b}),l()}if(h){o();break}t.selector(v);for(var C=0;C=7&&e[0]==="d"&&(f=new RegExp(o.data.regex).exec(e))){if(t)return!1;var c=o.data;return{name:r,value:f,strValue:""+e,mapped:c,field:f[1],bypass:t}}else if(e.length>=10&&e[0]==="m"&&(v=new RegExp(o.mapData.regex).exec(e))){if(t||u.multiple)return!1;var d=o.mapData;if(!(u.color||u.number))return!1;var h=this.parse(r,v[4]);if(!h||h.mapped)return!1;var m=this.parse(r,v[5]);if(!m||m.mapped)return!1;if(h.pfValue===m.pfValue||h.strValue===m.strValue)return Ae("`"+r+": "+e+"` is not a valid mapper because the output range is zero; converting to `"+r+": "+h.strValue+"`"),this.parse(r,h.strValue);if(u.color){var p=h.value,g=m.value,y=p[0]===g[0]&&p[1]===g[1]&&p[2]===g[2]&&(p[3]===g[3]||(p[3]==null||p[3]===1)&&(g[3]==null||g[3]===1));if(y)return!1}return{name:r,value:v,strValue:""+e,mapped:d,field:v[1],fieldMin:parseFloat(v[2]),fieldMax:parseFloat(v[3]),valueMin:h.value,valueMax:m.value,bypass:t}}}if(u.multiple&&a!=="multiple"){var b;if(l?b=e.split(/\s+/):Le(e)?b=e:b=[e],u.evenMultiple&&b.length%2!==0)return null;for(var w=[],x=[],C=[],E="",T=!1,S=0;S0?" ":"")+D.strValue}return u.validate&&!u.validate(w,x)?null:u.singleEnum&&T?w.length===1&&ye(w[0])?{name:r,value:w[0],strValue:w[0],bypass:t}:null:{name:r,value:w,pfValue:C,strValue:E,bypass:t,units:x}}var k=function(){for(var K=0;Ku.max||u.strictMax&&e===u.max))return null;var L={name:r,value:e,strValue:""+e+(R||""),units:R,bypass:t};return u.unitless||R!=="px"&&R!=="em"?L.pfValue=e:L.pfValue=R==="px"||!R?e:this.getEmSizeInPixels()*e,(R==="ms"||R==="s")&&(L.pfValue=R==="ms"?e:1e3*e),(R==="deg"||R==="rad")&&(L.pfValue=R==="rad"?e:kb(e)),R==="%"&&(L.pfValue=e/100),L}else if(u.propList){var q=[],F=""+e;if(F!=="none"){for(var $=F.split(/\s*,\s*|\s+/),U=0;U<$.length;U++){var z=$[U].trim();n.properties[z]?q.push(z):Ae("`"+z+"` is not a valid property name")}if(q.length===0)return null}return{name:r,value:q,strValue:q.length===0?"none":q.join(" "),bypass:t}}else if(u.color){var V=l0(e);return V?{name:r,value:V,pfValue:V,strValue:"rgb("+V[0]+","+V[1]+","+V[2]+")",bypass:t}:null}else if(u.regex||u.regexes){if(u.enums){var Z=k();if(Z)return Z}for(var _=u.regexes?u.regexes:[u.regex],N=0;N<_.length;N++){var O=new RegExp(_[N]),M=O.exec(e);if(M)return{name:r,value:u.singleRegexMatchValue?M[1]:M,strValue:""+e,bypass:t}}return null}else return u.string?{name:r,value:""+e,strValue:""+e,bypass:t}:u.enums?k():null};var nr=function r(e){if(!(this instanceof r))return new r(e);if(!Fl(e)){ze("A style must have a core reference");return}this._private={cy:e,coreStyle:{}},this.length=0,this.resetToDefault()},sr=nr.prototype;sr.instanceString=function(){return"style"};sr.clear=function(){for(var r=this._private,e=r.cy,t=e.elements(),a=0;a0&&o>0&&!isNaN(a.w)&&!isNaN(a.h)&&a.w>0&&a.h>0){l=Math.min((s-2*t)/a.w,(o-2*t)/a.h),l=l>this._private.maxZoom?this._private.maxZoom:l,l=l=a.minZoom&&(a.maxZoom=t),this},minZoom:function(e){return e===void 0?this._private.minZoom:this.zoomRange({min:e})},maxZoom:function(e){return e===void 0?this._private.maxZoom:this.zoomRange({max:e})},getZoomedViewport:function(e){var t=this._private,a=t.pan,n=t.zoom,i,s,o=!1;if(t.zoomingEnabled||(o=!0),se(e)?s=e:Te(e)&&(s=e.level,e.position!=null?i=On(e.position,n,a):e.renderedPosition!=null&&(i=e.renderedPosition),i!=null&&!t.panningEnabled&&(o=!0)),s=s>t.maxZoom?t.maxZoom:s,s=st.maxZoom||!t.zoomingEnabled?s=!0:(t.zoom=l,i.push("zoom"))}if(n&&(!s||!e.cancelOnFailedZoom)&&t.panningEnabled){var u=e.pan;se(u.x)&&(t.pan.x=u.x,o=!1),se(u.y)&&(t.pan.y=u.y,o=!1),o||i.push("pan")}return i.length>0&&(i.push("viewport"),this.emit(i.join(" ")),this.notify("viewport")),this},center:function(e){var t=this.getCenterPan(e);return t&&(this._private.pan=t,this.emit("pan viewport"),this.notify("viewport")),this},getCenterPan:function(e,t){if(this._private.panningEnabled){if(ye(e)){var a=e;e=this.mutableElements().filter(a)}else mr(e)||(e=this.mutableElements());if(e.length!==0){var n=e.boundingBox(),i=this.width(),s=this.height();t=t===void 0?this._private.zoom:t;var o={x:(i-t*(n.x1+n.x2))/2,y:(s-t*(n.y1+n.y2))/2};return o}}},reset:function(){return!this._private.panningEnabled||!this._private.zoomingEnabled?this:(this.viewport({pan:{x:0,y:0},zoom:1}),this)},invalidateSize:function(){this._private.sizeCache=null},size:function(){var e=this._private,t=e.container,a=this;return e.sizeCache=e.sizeCache||(t?function(){var n=a.window().getComputedStyle(t),i=function(o){return parseFloat(n.getPropertyValue(o))};return{width:t.clientWidth-i("padding-left")-i("padding-right"),height:t.clientHeight-i("padding-top")-i("padding-bottom")}}():{width:1,height:1})},width:function(){return this.size().width},height:function(){return this.size().height},extent:function(){var e=this._private.pan,t=this._private.zoom,a=this.renderedExtent(),n={x1:(a.x1-e.x)/t,x2:(a.x2-e.x)/t,y1:(a.y1-e.y)/t,y2:(a.y2-e.y)/t};return n.w=n.x2-n.x1,n.h=n.y2-n.y1,n},renderedExtent:function(){var e=this.width(),t=this.height();return{x1:0,y1:0,x2:e,y2:t,w:e,h:t}},multiClickDebounceTime:function(e){if(e)this._private.multiClickDebounceTime=e;else return this._private.multiClickDebounceTime;return this}};kt.centre=kt.center;kt.autolockNodes=kt.autolock;kt.autoungrabifyNodes=kt.autoungrabify;var _a={data:Pe.data({field:"data",bindingEvent:"data",allowBinding:!0,allowSetting:!0,settingEvent:"data",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,updateStyle:!0}),removeData:Pe.removeData({field:"data",event:"data",triggerFnName:"trigger",triggerEvent:!0,updateStyle:!0}),scratch:Pe.data({field:"scratch",bindingEvent:"scratch",allowBinding:!0,allowSetting:!0,settingEvent:"scratch",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,updateStyle:!0}),removeScratch:Pe.removeData({field:"scratch",event:"scratch",triggerFnName:"trigger",triggerEvent:!0,updateStyle:!0})};_a.attr=_a.data;_a.removeAttr=_a.removeData;var Oa=function(e){var t=this;e=we({},e);var a=e.container;a&&!yn(a)&&yn(a[0])&&(a=a[0]);var n=a?a._cyreg:null;n=n||{},n&&n.cy&&(n.cy.destroy(),n={});var i=n.readies=n.readies||[];a&&(a._cyreg=n),n.cy=t;var s=Ue!==void 0&&a!==void 0&&!e.headless,o=e;o.layout=we({name:s?"grid":"null"},o.layout),o.renderer=we({name:s?"canvas":"null"},o.renderer);var l=function(h,m,p){return m!==void 0?m:p!==void 0?p:h},u=this._private={container:a,ready:!1,options:o,elements:new er(this),listeners:[],aniEles:new er(this),data:o.data||{},scratch:{},layout:null,renderer:null,destroyed:!1,notificationsEnabled:!0,minZoom:1e-50,maxZoom:1e50,zoomingEnabled:l(!0,o.zoomingEnabled),userZoomingEnabled:l(!0,o.userZoomingEnabled),panningEnabled:l(!0,o.panningEnabled),userPanningEnabled:l(!0,o.userPanningEnabled),boxSelectionEnabled:l(!0,o.boxSelectionEnabled),autolock:l(!1,o.autolock,o.autolockNodes),autoungrabify:l(!1,o.autoungrabify,o.autoungrabifyNodes),autounselectify:l(!1,o.autounselectify),styleEnabled:o.styleEnabled===void 0?s:o.styleEnabled,zoom:se(o.zoom)?o.zoom:1,pan:{x:Te(o.pan)&&se(o.pan.x)?o.pan.x:0,y:Te(o.pan)&&se(o.pan.y)?o.pan.y:0},animation:{current:[],queue:[]},hasCompoundNodes:!1,multiClickDebounceTime:l(250,o.multiClickDebounceTime)};this.createEmitter(),this.selectionType(o.selectionType),this.zoomRange({min:o.minZoom,max:o.maxZoom});var f=function(h,m){var p=h.some(Zm);if(p)return Qt.all(h).then(m);m(h)};u.styleEnabled&&t.setStyle([]);var v=we({},o,o.renderer);t.initRenderer(v);var c=function(h,m,p){t.notifications(!1);var g=t.mutableElements();g.length>0&&g.remove(),h!=null&&(Te(h)||Le(h))&&t.add(h),t.one("layoutready",function(b){t.notifications(!0),t.emit(b),t.one("load",m),t.emitAndNotify("load")}).one("layoutstop",function(){t.one("done",p),t.emit("done")});var y=we({},t._private.options.layout);y.eles=t.elements(),t.layout(y).run()};f([o.style,o.elements],function(d){var h=d[0],m=d[1];u.styleEnabled&&t.style().append(h),c(m,function(){t.startAnimationLoop(),u.ready=!0,Fe(o.ready)&&t.on("ready",o.ready);for(var p=0;p0,l=pr(e.boundingBox?e.boundingBox:{x1:0,y1:0,w:t.width(),h:t.height()}),u;if(mr(e.roots))u=e.roots;else if(Le(e.roots)){for(var f=[],v=0;v0;){var B=P(),L=D(B,R);if(L)B.outgoers().filter(function(te){return te.isNode()&&a.has(te)}).forEach(I);else if(L===null){Ae("Detected double maximal shift for node `"+B.id()+"`. Bailing maximal adjustment due to cycle. Use `options.maximal: true` only on DAGs.");break}}}S();var q=0;if(e.avoidOverlap)for(var F=0;F0&&g[0].length<=3?be/2:0),A=2*Math.PI/g[ne].length*ue;return ne===0&&g[0].length===1&&(ee=1),{x:J.x+ee*Math.cos(A),y:J.y+ee*Math.sin(A)}}else{var Ee={x:J.x+(ue+1-(de+1)/2)*ke,y:(ne+1)*Ce};return Ee}};return a.nodes().layoutPositions(this,e,ce),this};var Zx={fit:!0,padding:30,boundingBox:void 0,avoidOverlap:!0,nodeDimensionsIncludeLabels:!1,spacingFactor:void 0,radius:void 0,startAngle:3/2*Math.PI,sweep:void 0,clockwise:!0,sort:void 0,animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(e,t){return!0},ready:void 0,stop:void 0,transform:function(e,t){return t}};function Xp(r){this.options=we({},Zx,r)}Xp.prototype.run=function(){var r=this.options,e=r,t=r.cy,a=e.eles,n=e.counterclockwise!==void 0?!e.counterclockwise:e.clockwise,i=a.nodes().not(":parent");e.sort&&(i=i.sort(e.sort));for(var s=pr(e.boundingBox?e.boundingBox:{x1:0,y1:0,w:t.width(),h:t.height()}),o={x:s.x1+s.w/2,y:s.y1+s.h/2},l=e.sweep===void 0?2*Math.PI-2*Math.PI/i.length:e.sweep,u=l/Math.max(1,i.length-1),f,v=0,c=0;c1&&e.avoidOverlap){v*=1.75;var g=Math.cos(u)-Math.cos(0),y=Math.sin(u)-Math.sin(0),b=Math.sqrt(v*v/(g*g+y*y));f=Math.max(b,f)}var w=function(C,E){var T=e.startAngle+E*u*(n?1:-1),S=f*Math.cos(T),D=f*Math.sin(T),k={x:o.x+S,y:o.y+D};return k};return a.nodes().layoutPositions(this,e,w),this};var jx={fit:!0,padding:30,startAngle:3/2*Math.PI,sweep:void 0,clockwise:!0,equidistant:!1,minNodeSpacing:10,boundingBox:void 0,avoidOverlap:!0,nodeDimensionsIncludeLabels:!1,height:void 0,width:void 0,spacingFactor:void 0,concentric:function(e){return e.degree()},levelWidth:function(e){return e.maxDegree()/4},animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(e,t){return!0},ready:void 0,stop:void 0,transform:function(e,t){return t}};function Zp(r){this.options=we({},jx,r)}Zp.prototype.run=function(){for(var r=this.options,e=r,t=e.counterclockwise!==void 0?!e.counterclockwise:e.clockwise,a=r.cy,n=e.eles,i=n.nodes().not(":parent"),s=pr(e.boundingBox?e.boundingBox:{x1:0,y1:0,w:a.width(),h:a.height()}),o={x:s.x1+s.w/2,y:s.y1+s.h/2},l=[],u=0,f=0;f0){var x=Math.abs(y[0].value-w.value);x>=p&&(y=[],g.push(y))}y.push(w)}var C=u+e.minNodeSpacing;if(!e.avoidOverlap){var E=g.length>0&&g[0].length>1,T=Math.min(s.w,s.h)/2-C,S=T/(g.length+E?1:0);C=Math.min(C,S)}for(var D=0,k=0;k1&&e.avoidOverlap){var B=Math.cos(P)-Math.cos(0),L=Math.sin(P)-Math.sin(0),q=Math.sqrt(C*C/(B*B+L*L));D=Math.max(q,D)}R.r=D,D+=C}if(e.equidistant){for(var F=0,$=0,U=0;U=r.numIter||(iC(a,r),a.temperature=a.temperature*r.coolingFactor,a.temperature=r.animationThreshold&&i(),mn(v)}};f()}else{for(;u;)u=s(l),l++;mv(a,r),o()}return this};Wn.prototype.stop=function(){return this.stopped=!0,this.thread&&this.thread.stop(),this.emit("layoutstop"),this};Wn.prototype.destroy=function(){return this.thread&&this.thread.stop(),this};var Jx=function(e,t,a){for(var n=a.eles.edges(),i=a.eles.nodes(),s=pr(a.boundingBox?a.boundingBox:{x1:0,y1:0,w:e.width(),h:e.height()}),o={isCompound:e.hasCompoundNodes(),layoutNodes:[],idToIndex:{},nodeSize:i.size(),graphSet:[],indexToGraph:[],layoutEdges:[],edgeSize:n.size(),temperature:a.initialTemp,clientWidth:s.w,clientHeight:s.h,boundingBox:s},l=a.eles.components(),u={},f=0;f0){o.graphSet.push(T);for(var f=0;fn.count?0:n.graph},rC=function r(e,t,a,n){var i=n.graphSet[a];if(-10)var v=n.nodeOverlap*f,c=Math.sqrt(o*o+l*l),d=v*o/c,h=v*l/c;else var m=Tn(e,o,l),p=Tn(t,-1*o,-1*l),g=p.x-m.x,y=p.y-m.y,b=g*g+y*y,c=Math.sqrt(b),v=(e.nodeRepulsion+t.nodeRepulsion)/b,d=v*g/c,h=v*y/c;e.isLocked||(e.offsetX-=d,e.offsetY-=h),t.isLocked||(t.offsetX+=d,t.offsetY+=h)}},uC=function(e,t,a,n){if(a>0)var i=e.maxX-t.minX;else var i=t.maxX-e.minX;if(n>0)var s=e.maxY-t.minY;else var s=t.maxY-e.minY;return i>=0&&s>=0?Math.sqrt(i*i+s*s):0},Tn=function(e,t,a){var n=e.positionX,i=e.positionY,s=e.height||1,o=e.width||1,l=a/t,u=s/o,f={};return t===0&&0a?(f.x=n,f.y=i+s/2,f):0t&&-1*u<=l&&l<=u?(f.x=n-o/2,f.y=i-o*a/2/t,f):0=u)?(f.x=n+s*t/2/a,f.y=i+s/2,f):(0>a&&(l<=-1*u||l>=u)&&(f.x=n-s*t/2/a,f.y=i-s/2),f)},lC=function(e,t){for(var a=0;aa){var p=t.gravity*d/m,g=t.gravity*h/m;c.offsetX+=p,c.offsetY+=g}}}}},vC=function(e,t){var a=[],n=0,i=-1;for(a.push.apply(a,e.graphSet[0]),i+=e.graphSet[0].length;n<=i;){var s=a[n++],o=e.idToIndex[s],l=e.layoutNodes[o],u=l.children;if(0a)var i={x:a*e/n,y:a*t/n};else var i={x:e,y:t};return i},hC=function r(e,t){var a=e.parentId;if(a!=null){var n=t.layoutNodes[t.idToIndex[a]],i=!1;if((n.maxX==null||e.maxX+n.padRight>n.maxX)&&(n.maxX=e.maxX+n.padRight,i=!0),(n.minX==null||e.minX-n.padLeftn.maxY)&&(n.maxY=e.maxY+n.padBottom,i=!0),(n.minY==null||e.minY-n.padTopg&&(h+=p+t.componentSpacing,d=0,m=0,p=0)}}},gC={fit:!0,padding:30,boundingBox:void 0,avoidOverlap:!0,avoidOverlapPadding:10,nodeDimensionsIncludeLabels:!1,spacingFactor:void 0,condense:!1,rows:void 0,cols:void 0,position:function(e){},sort:void 0,animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(e,t){return!0},ready:void 0,stop:void 0,transform:function(e,t){return t}};function Qp(r){this.options=we({},gC,r)}Qp.prototype.run=function(){var r=this.options,e=r,t=r.cy,a=e.eles,n=a.nodes().not(":parent");e.sort&&(n=n.sort(e.sort));var i=pr(e.boundingBox?e.boundingBox:{x1:0,y1:0,w:t.width(),h:t.height()});if(i.h===0||i.w===0)a.nodes().layoutPositions(this,e,function(Z){return{x:i.x1,y:i.y1}});else{var s=n.size(),o=Math.sqrt(s*i.h/i.w),l=Math.round(o),u=Math.round(i.w/i.h*o),f=function(_){if(_==null)return Math.min(l,u);var N=Math.min(l,u);N==l?l=_:u=_},v=function(_){if(_==null)return Math.max(l,u);var N=Math.max(l,u);N==l?l=_:u=_},c=e.rows,d=e.cols!=null?e.cols:e.columns;if(c!=null&&d!=null)l=c,u=d;else if(c!=null&&d==null)l=c,u=Math.ceil(s/l);else if(c==null&&d!=null)u=d,l=Math.ceil(s/u);else if(u*l>s){var h=f(),m=v();(h-1)*m>=s?f(h-1):(m-1)*h>=s&&v(m-1)}else for(;u*l=s?v(g+1):f(p+1)}var y=i.w/u,b=i.h/l;if(e.condense&&(y=0,b=0),e.avoidOverlap)for(var w=0;w=u&&(B=0,P++)},q={},F=0;F(B=Fb(r,e,L[q],L[q+1],L[q+2],L[q+3])))return p(E,B),!0}else if(S.edgeType==="bezier"||S.edgeType==="multibezier"||S.edgeType==="self"||S.edgeType==="compound"){for(var L=S.allpts,q=0;q+5(B=Nb(r,e,L[q],L[q+1],L[q+2],L[q+3],L[q+4],L[q+5])))return p(E,B),!0}for(var F=F||T.source,$=$||T.target,U=n.getArrowWidth(D,k),z=[{name:"source",x:S.arrowStartX,y:S.arrowStartY,angle:S.srcArrowAngle},{name:"target",x:S.arrowEndX,y:S.arrowEndY,angle:S.tgtArrowAngle},{name:"mid-source",x:S.midX,y:S.midY,angle:S.midsrcArrowAngle},{name:"mid-target",x:S.midX,y:S.midY,angle:S.midtgtArrowAngle}],q=0;q0&&(g(F),g($))}function b(E,T,S){return Ir(E,T,S)}function w(E,T){var S=E._private,D=c,k;T?k=T+"-":k="",E.boundingBox();var R=S.labelBounds[T||"main"],I=E.pstyle(k+"label").value,P=E.pstyle("text-events").strValue==="yes";if(!(!P||!I)){var B=b(S.rscratch,"labelX",T),L=b(S.rscratch,"labelY",T),q=b(S.rscratch,"labelAngle",T),F=E.pstyle(k+"text-margin-x").pfValue,$=E.pstyle(k+"text-margin-y").pfValue,U=R.x1-D-F,z=R.x2+D-F,V=R.y1-D-$,Z=R.y2+D-$;if(q){var _=Math.cos(q),N=Math.sin(q),O=function(ce,te){return ce=ce-B,te=te-L,{x:ce*_-te*N+B,y:ce*N+te*_+L}},M=O(U,V),G=O(U,Z),K=O(z,V),j=O(z,Z),J=[M.x+F,M.y+$,K.x+F,K.y+$,j.x+F,j.y+$,G.x+F,G.y+$];if(hr(r,e,J))return p(E),!0}else if(Kt(R,r,e))return p(E),!0}}for(var x=s.length-1;x>=0;x--){var C=s[x];C.isNode()?g(C)||w(C):y(C)||w(C)||w(C,"source")||w(C,"target")}return o};Rt.getAllInBox=function(r,e,t,a){var n=this.getCachedZSortedEles().interactive,i=[],s=Math.min(r,t),o=Math.max(r,t),l=Math.min(e,a),u=Math.max(e,a);r=s,t=o,e=l,a=u;for(var f=pr({x1:r,y1:e,x2:t,y2:a}),v=0;v0?-(Math.PI-e.ang):Math.PI+e.ang},EC=function(e,t,a,n,i){if(e!==Cv?Sv(t,e,qr):wC(Er,qr),Sv(t,a,Er),Ev=qr.nx*Er.ny-qr.ny*Er.nx,xv=qr.nx*Er.nx-qr.ny*-Er.ny,Ur=Math.asin(Math.max(-1,Math.min(1,Ev))),Math.abs(Ur)<1e-6){wl=t.x,El=t.y,mt=Ot=0;return}bt=1,gn=!1,xv<0?Ur<0?Ur=Math.PI+Ur:(Ur=Math.PI-Ur,bt=-1,gn=!0):Ur>0&&(bt=-1,gn=!0),t.radius!==void 0?Ot=t.radius:Ot=n,gt=Ur/2,sn=Math.min(qr.len/2,Er.len/2),i?(Or=Math.abs(Math.cos(gt)*Ot/Math.sin(gt)),Or>sn?(Or=sn,mt=Math.abs(Or*Math.sin(gt)/Math.cos(gt))):mt=Ot):(Or=Math.min(sn,Ot),mt=Math.abs(Or*Math.sin(gt)/Math.cos(gt))),xl=t.x+Er.nx*Or,Cl=t.y+Er.ny*Or,wl=xl-Er.ny*mt*bt,El=Cl+Er.nx*mt*bt,ty=t.x+qr.nx*Or,ay=t.y+qr.ny*Or,Cv=t};function ny(r,e){e.radius===0?r.lineTo(e.cx,e.cy):r.arc(e.cx,e.cy,e.radius,e.startAngle,e.endAngle,e.counterClockwise)}function nf(r,e,t,a){var n=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0;return a===0||e.radius===0?{cx:e.x,cy:e.y,radius:0,startX:e.x,startY:e.y,stopX:e.x,stopY:e.y,startAngle:void 0,endAngle:void 0,counterClockwise:void 0}:(EC(r,e,t,a,n),{cx:wl,cy:El,radius:mt,startX:ty,startY:ay,stopX:xl,stopY:Cl,startAngle:qr.ang+Math.PI/2*bt,endAngle:Er.ang-Math.PI/2*bt,counterClockwise:gn})}var ur={};ur.findMidptPtsEtc=function(r,e){var t=e.posPts,a=e.intersectionPts,n=e.vectorNormInverse,i,s=r.pstyle("source-endpoint"),o=r.pstyle("target-endpoint"),l=s.units!=null&&o.units!=null,u=function(x,C,E,T){var S=T-C,D=E-x,k=Math.sqrt(D*D+S*S);return{x:-S/k,y:D/k}},f=r.pstyle("edge-distances").value;switch(f){case"node-position":i=t;break;case"intersection":i=a;break;case"endpoints":{if(l){var v=this.manualEndptToPx(r.source()[0],s),c=Pr(v,2),d=c[0],h=c[1],m=this.manualEndptToPx(r.target()[0],o),p=Pr(m,2),g=p[0],y=p[1],b={x1:d,y1:h,x2:g,y2:y};n=u(d,h,g,y),i=b}else Ae("Edge ".concat(r.id()," has edge-distances:endpoints specified without manual endpoints specified via source-endpoint and target-endpoint. Falling back on edge-distances:intersection (default).")),i=a;break}}return{midptPts:i,vectorNormInverse:n}};ur.findHaystackPoints=function(r){for(var e=0;e0?Math.max(he-pe,0):Math.min(he+pe,0)},I=R(D,T),P=R(k,S),B=!1;y===u?g=Math.abs(I)>Math.abs(P)?n:a:y===l||y===o?(g=a,B=!0):(y===i||y===s)&&(g=n,B=!0);var L=g===a,q=L?P:I,F=L?k:D,$=up(F),U=!1;!(B&&(w||C))&&(y===o&&F<0||y===l&&F>0||y===i&&F>0||y===s&&F<0)&&($*=-1,q=$*Math.abs(q),U=!0);var z;if(w){var V=x<0?1+x:x;z=V*q}else{var Z=x<0?q:0;z=Z+x*$}var _=function(he){return Math.abs(he)=Math.abs(q)},N=_(z),O=_(Math.abs(q)-Math.abs(z)),M=N||O;if(M&&!U)if(L){var G=Math.abs(F)<=c/2,K=Math.abs(D)<=d/2;if(G){var j=(f.x1+f.x2)/2,J=f.y1,fe=f.y2;t.segpts=[j,J,j,fe]}else if(K){var ce=(f.y1+f.y2)/2,te=f.x1,re=f.x2;t.segpts=[te,ce,re,ce]}else t.segpts=[f.x1,f.y2]}else{var oe=Math.abs(F)<=v/2,ne=Math.abs(k)<=h/2;if(oe){var ue=(f.y1+f.y2)/2,de=f.x1,ke=f.x2;t.segpts=[de,ue,ke,ue]}else if(ne){var Ce=(f.x1+f.x2)/2,be=f.y1,Ee=f.y2;t.segpts=[Ce,be,Ce,Ee]}else t.segpts=[f.x2,f.y1]}else if(L){var ee=f.y1+z+(p?c/2*$:0),A=f.x1,H=f.x2;t.segpts=[A,ee,H,ee]}else{var Q=f.x1+z+(p?v/2*$:0),W=f.y1,Y=f.y2;t.segpts=[Q,W,Q,Y]}if(t.isRound){var ie=r.pstyle("taxi-radius").value,X=r.pstyle("radius-type").value[0]==="arc-radius";t.radii=new Array(t.segpts.length/2).fill(ie),t.isArcRadius=new Array(t.segpts.length/2).fill(X)}};ur.tryToCorrectInvalidPoints=function(r,e){var t=r._private.rscratch;if(t.edgeType==="bezier"){var a=e.srcPos,n=e.tgtPos,i=e.srcW,s=e.srcH,o=e.tgtW,l=e.tgtH,u=e.srcShape,f=e.tgtShape,v=e.srcCornerRadius,c=e.tgtCornerRadius,d=e.srcRs,h=e.tgtRs,m=!se(t.startX)||!se(t.startY),p=!se(t.arrowStartX)||!se(t.arrowStartY),g=!se(t.endX)||!se(t.endY),y=!se(t.arrowEndX)||!se(t.arrowEndY),b=3,w=this.getArrowWidth(r.pstyle("width").pfValue,r.pstyle("arrow-scale").value)*this.arrowShapeWidth,x=b*w,C=Ct({x:t.ctrlpts[0],y:t.ctrlpts[1]},{x:t.startX,y:t.startY}),E=CP.poolIndex()){var B=I;I=P,P=B}var L=S.srcPos=I.position(),q=S.tgtPos=P.position(),F=S.srcW=I.outerWidth(),$=S.srcH=I.outerHeight(),U=S.tgtW=P.outerWidth(),z=S.tgtH=P.outerHeight(),V=S.srcShape=t.nodeShapes[e.getNodeShape(I)],Z=S.tgtShape=t.nodeShapes[e.getNodeShape(P)],_=S.srcCornerRadius=I.pstyle("corner-radius").value==="auto"?"auto":I.pstyle("corner-radius").pfValue,N=S.tgtCornerRadius=P.pstyle("corner-radius").value==="auto"?"auto":P.pstyle("corner-radius").pfValue,O=S.tgtRs=P._private.rscratch,M=S.srcRs=I._private.rscratch;S.dirCounts={north:0,west:0,south:0,east:0,northwest:0,southwest:0,northeast:0,southeast:0};for(var G=0;G0){var fe=i,ce=pt(fe,Ft(t)),te=pt(fe,Ft(J)),re=ce;if(te2){var oe=pt(fe,{x:J[2],y:J[3]});oe0){var Y=s,ie=pt(Y,Ft(t)),X=pt(Y,Ft(W)),ae=ie;if(X2){var he=pt(Y,{x:W[2],y:W[3]});he=h||E){p={cp:w,segment:C};break}}if(p)break}var T=p.cp,S=p.segment,D=(h-g)/S.length,k=S.t1-S.t0,R=d?S.t0+k*D:S.t1-k*D;R=Aa(0,R,1),e=Vt(T.p0,T.p1,T.p2,R),c=CC(T.p0,T.p1,T.p2,R);break}case"straight":case"segments":case"haystack":{for(var I=0,P,B,L,q,F=a.allpts.length,$=0;$+3=h));$+=2);var U=h-B,z=U/P;z=Aa(0,z,1),e=Rb(L,q,z),c=oy(L,q);break}}s("labelX",v,e.x),s("labelY",v,e.y),s("labelAutoAngle",v,c)}};u("source"),u("target"),this.applyLabelDimensions(r)}};Vr.applyLabelDimensions=function(r){this.applyPrefixedLabelDimensions(r),r.isEdge()&&(this.applyPrefixedLabelDimensions(r,"source"),this.applyPrefixedLabelDimensions(r,"target"))};Vr.applyPrefixedLabelDimensions=function(r,e){var t=r._private,a=this.getLabelText(r,e),n=this.calculateLabelDimensions(r,a),i=r.pstyle("line-height").pfValue,s=r.pstyle("text-wrap").strValue,o=Ir(t.rscratch,"labelWrapCachedLines",e)||[],l=s!=="wrap"?1:Math.max(o.length,1),u=n.height/l,f=u*i,v=n.width,c=n.height+(l-1)*(i-1)*u;rt(t.rstyle,"labelWidth",e,v),rt(t.rscratch,"labelWidth",e,v),rt(t.rstyle,"labelHeight",e,c),rt(t.rscratch,"labelHeight",e,c),rt(t.rscratch,"labelLineHeight",e,f)};Vr.getLabelText=function(r,e){var t=r._private,a=e?e+"-":"",n=r.pstyle(a+"label").strValue,i=r.pstyle("text-transform").value,s=function(U,z){return z?(rt(t.rscratch,U,e,z),z):Ir(t.rscratch,U,e)};if(!n)return"";i=="none"||(i=="uppercase"?n=n.toUpperCase():i=="lowercase"&&(n=n.toLowerCase()));var o=r.pstyle("text-wrap").value;if(o==="wrap"){var l=s("labelKey");if(l!=null&&s("labelWrapKey")===l)return s("labelWrapCachedText");for(var u="​",f=n.split(` +`),v=r.pstyle("text-max-width").pfValue,c=r.pstyle("text-overflow-wrap").value,d=c==="anywhere",h=[],m=/[\s\u200b]+/,p=d?"":" ",g=0;gv){for(var C=y.split(m),E="",T=0;TI)break;P+=n[q],q===n.length-1&&(L=!0)}return L||(P+=B),P}return n};Vr.getLabelJustification=function(r){var e=r.pstyle("text-justification").strValue,t=r.pstyle("text-halign").strValue;if(e==="auto")if(r.isNode())switch(t){case"left":return"right";case"right":return"left";default:return"center"}else return"center";else return e};Vr.calculateLabelDimensions=function(r,e){var t=this,a=xt(e,r._private.labelDimsKey),n=t.labelDimCache||(t.labelDimCache=[]),i=n[a];if(i!=null)return i;var s=0,o=r.pstyle("font-style").strValue,l=r.pstyle("font-size").pfValue,u=r.pstyle("font-family").strValue,f=r.pstyle("font-weight").strValue,v=this.labelCalcCanvas,c=this.labelCalcCanvasContext;if(!v){v=this.labelCalcCanvas=document.createElement("canvas"),c=this.labelCalcCanvasContext=v.getContext("2d");var d=v.style;d.position="absolute",d.left="-9999px",d.top="-9999px",d.zIndex="-1",d.visibility="hidden",d.pointerEvents="none"}c.font="".concat(o," ").concat(f," ").concat(l,"px ").concat(u);for(var h=0,m=0,p=e.split(` +`),g=0;g1&&arguments[1]!==void 0?arguments[1]:!0;if(e.merge(s),o)for(var l=0;l=r.desktopTapThreshold2}var fr=n(A);Be&&(r.hoverData.tapholdCancelled=!0);var Tr=function(){var _r=r.hoverData.dragDelta=r.hoverData.dragDelta||[];_r.length===0?(_r.push(me[0]),_r.push(me[1])):(_r[0]+=me[0],_r[1]+=me[1])};Q=!0,a(ge,["mousemove","vmousemove","tapdrag"],A,{x:X[0],y:X[1]});var wr=function(){r.data.bgActivePosistion=void 0,r.hoverData.selecting||W.emit({originalEvent:A,type:"boxstart",position:{x:X[0],y:X[1]}}),pe[4]=1,r.hoverData.selecting=!0,r.redrawHint("select",!0),r.redraw()};if(r.hoverData.which===3){if(Be){var dr={originalEvent:A,type:"cxtdrag",position:{x:X[0],y:X[1]}};ve?ve.emit(dr):W.emit(dr),r.hoverData.cxtDragged=!0,(!r.hoverData.cxtOver||ge!==r.hoverData.cxtOver)&&(r.hoverData.cxtOver&&r.hoverData.cxtOver.emit({originalEvent:A,type:"cxtdragout",position:{x:X[0],y:X[1]}}),r.hoverData.cxtOver=ge,ge&&ge.emit({originalEvent:A,type:"cxtdragover",position:{x:X[0],y:X[1]}}))}}else if(r.hoverData.dragging){if(Q=!0,W.panningEnabled()&&W.userPanningEnabled()){var Mr;if(r.hoverData.justStartedPan){var $r=r.hoverData.mdownPos;Mr={x:(X[0]-$r[0])*Y,y:(X[1]-$r[1])*Y},r.hoverData.justStartedPan=!1}else Mr={x:me[0]*Y,y:me[1]*Y};W.panBy(Mr),W.emit("dragpan"),r.hoverData.dragged=!0}X=r.projectIntoViewport(A.clientX,A.clientY)}else if(pe[4]==1&&(ve==null||ve.pannable())){if(Be){if(!r.hoverData.dragging&&W.boxSelectionEnabled()&&(fr||!W.panningEnabled()||!W.userPanningEnabled()))wr();else if(!r.hoverData.selecting&&W.panningEnabled()&&W.userPanningEnabled()){var kr=i(ve,r.hoverData.downs);kr&&(r.hoverData.dragging=!0,r.hoverData.justStartedPan=!0,pe[4]=0,r.data.bgActivePosistion=Ft(ae),r.redrawHint("select",!0),r.redraw())}ve&&ve.pannable()&&ve.active()&&ve.unactivate()}}else{if(ve&&ve.pannable()&&ve.active()&&ve.unactivate(),(!ve||!ve.grabbed())&&ge!=xe&&(xe&&a(xe,["mouseout","tapdragout"],A,{x:X[0],y:X[1]}),ge&&a(ge,["mouseover","tapdragover"],A,{x:X[0],y:X[1]}),r.hoverData.last=ge),ve)if(Be){if(W.boxSelectionEnabled()&&fr)ve&&ve.grabbed()&&(p(qe),ve.emit("freeon"),qe.emit("free"),r.dragData.didDrag&&(ve.emit("dragfreeon"),qe.emit("dragfree"))),wr();else if(ve&&ve.grabbed()&&r.nodeIsDraggable(ve)){var $e=!r.dragData.didDrag;$e&&r.redrawHint("eles",!0),r.dragData.didDrag=!0,r.hoverData.draggingEles||h(qe,{inDragLayer:!0});var Ye={x:0,y:0};if(se(me[0])&&se(me[1])&&(Ye.x+=me[0],Ye.y+=me[1],$e)){var ar=r.hoverData.dragDelta;ar&&se(ar[0])&&se(ar[1])&&(Ye.x+=ar[0],Ye.y+=ar[1])}r.hoverData.draggingEles=!0,qe.silentShift(Ye).emit("position drag"),r.redrawHint("drag",!0),r.redraw()}}else Tr();Q=!0}if(pe[2]=X[0],pe[3]=X[1],Q)return A.stopPropagation&&A.stopPropagation(),A.preventDefault&&A.preventDefault(),!1}},!1);var D,k,R;r.registerBinding(e,"mouseup",function(A){var H=r.hoverData.capture;if(H){r.hoverData.capture=!1;var Q=r.cy,W=r.projectIntoViewport(A.clientX,A.clientY),Y=r.selection,ie=r.findNearestElement(W[0],W[1],!0,!1),X=r.dragData.possibleDragElements,ae=r.hoverData.down,he=n(A);if(r.data.bgActivePosistion&&(r.redrawHint("select",!0),r.redraw()),r.hoverData.tapholdCancelled=!0,r.data.bgActivePosistion=void 0,ae&&ae.unactivate(),r.hoverData.which===3){var pe={originalEvent:A,type:"cxttapend",position:{x:W[0],y:W[1]}};if(ae?ae.emit(pe):Q.emit(pe),!r.hoverData.cxtDragged){var ge={originalEvent:A,type:"cxttap",position:{x:W[0],y:W[1]}};ae?ae.emit(ge):Q.emit(ge)}r.hoverData.cxtDragged=!1,r.hoverData.which=null}else if(r.hoverData.which===1){if(a(ie,["mouseup","tapend","vmouseup"],A,{x:W[0],y:W[1]}),!r.dragData.didDrag&&!r.hoverData.dragged&&!r.hoverData.selecting&&!r.hoverData.isOverThresholdDrag&&(a(ae,["click","tap","vclick"],A,{x:W[0],y:W[1]}),k=!1,A.timeStamp-R<=Q.multiClickDebounceTime()?(D&&clearTimeout(D),k=!0,R=null,a(ae,["dblclick","dbltap","vdblclick"],A,{x:W[0],y:W[1]})):(D=setTimeout(function(){k||a(ae,["oneclick","onetap","voneclick"],A,{x:W[0],y:W[1]})},Q.multiClickDebounceTime()),R=A.timeStamp)),ae==null&&!r.dragData.didDrag&&!r.hoverData.selecting&&!r.hoverData.dragged&&!n(A)&&(Q.$(t).unselect(["tapunselect"]),X.length>0&&r.redrawHint("eles",!0),r.dragData.possibleDragElements=X=Q.collection()),ie==ae&&!r.dragData.didDrag&&!r.hoverData.selecting&&ie!=null&&ie._private.selectable&&(r.hoverData.dragging||(Q.selectionType()==="additive"||he?ie.selected()?ie.unselect(["tapunselect"]):ie.select(["tapselect"]):he||(Q.$(t).unmerge(ie).unselect(["tapunselect"]),ie.select(["tapselect"]))),r.redrawHint("eles",!0)),r.hoverData.selecting){var xe=Q.collection(r.getAllInBox(Y[0],Y[1],Y[2],Y[3]));r.redrawHint("select",!0),xe.length>0&&r.redrawHint("eles",!0),Q.emit({type:"boxend",originalEvent:A,position:{x:W[0],y:W[1]}});var ve=function(Be){return Be.selectable()&&!Be.selected()};Q.selectionType()==="additive"||he||Q.$(t).unmerge(xe).unselect(),xe.emit("box").stdFilter(ve).select().emit("boxselect"),r.redraw()}if(r.hoverData.dragging&&(r.hoverData.dragging=!1,r.redrawHint("select",!0),r.redrawHint("eles",!0),r.redraw()),!Y[4]){r.redrawHint("drag",!0),r.redrawHint("eles",!0);var me=ae&&ae.grabbed();p(X),me&&(ae.emit("freeon"),X.emit("free"),r.dragData.didDrag&&(ae.emit("dragfreeon"),X.emit("dragfree")))}}Y[4]=0,r.hoverData.down=null,r.hoverData.cxtStarted=!1,r.hoverData.draggingEles=!1,r.hoverData.selecting=!1,r.hoverData.isOverThresholdDrag=!1,r.dragData.didDrag=!1,r.hoverData.dragged=!1,r.hoverData.dragDelta=[],r.hoverData.mdownPos=null,r.hoverData.mdownGPos=null}},!1);var I=function(A){if(!r.scrollingPage){var H=r.cy,Q=H.zoom(),W=H.pan(),Y=r.projectIntoViewport(A.clientX,A.clientY),ie=[Y[0]*Q+W.x,Y[1]*Q+W.y];if(r.hoverData.draggingEles||r.hoverData.dragging||r.hoverData.cxtStarted||T()){A.preventDefault();return}if(H.panningEnabled()&&H.userPanningEnabled()&&H.zoomingEnabled()&&H.userZoomingEnabled()){A.preventDefault(),r.data.wheelZooming=!0,clearTimeout(r.data.wheelTimeout),r.data.wheelTimeout=setTimeout(function(){r.data.wheelZooming=!1,r.redrawHint("eles",!0),r.redraw()},150);var X;A.deltaY!=null?X=A.deltaY/-250:A.wheelDeltaY!=null?X=A.wheelDeltaY/1e3:X=A.wheelDelta/1e3,X=X*r.wheelSensitivity;var ae=A.deltaMode===1;ae&&(X*=33);var he=H.zoom()*Math.pow(10,X);A.type==="gesturechange"&&(he=r.gestureStartZoom*A.scale),H.zoom({level:he,renderedPosition:{x:ie[0],y:ie[1]}}),H.emit(A.type==="gesturechange"?"pinchzoom":"scrollzoom")}}};r.registerBinding(r.container,"wheel",I,!0),r.registerBinding(e,"scroll",function(A){r.scrollingPage=!0,clearTimeout(r.scrollingPageTimeout),r.scrollingPageTimeout=setTimeout(function(){r.scrollingPage=!1},250)},!0),r.registerBinding(r.container,"gesturestart",function(A){r.gestureStartZoom=r.cy.zoom(),r.hasTouchStarted||A.preventDefault()},!0),r.registerBinding(r.container,"gesturechange",function(ee){r.hasTouchStarted||I(ee)},!0),r.registerBinding(r.container,"mouseout",function(A){var H=r.projectIntoViewport(A.clientX,A.clientY);r.cy.emit({originalEvent:A,type:"mouseout",position:{x:H[0],y:H[1]}})},!1),r.registerBinding(r.container,"mouseover",function(A){var H=r.projectIntoViewport(A.clientX,A.clientY);r.cy.emit({originalEvent:A,type:"mouseover",position:{x:H[0],y:H[1]}})},!1);var P,B,L,q,F,$,U,z,V,Z,_,N,O,M=function(A,H,Q,W){return Math.sqrt((Q-A)*(Q-A)+(W-H)*(W-H))},G=function(A,H,Q,W){return(Q-A)*(Q-A)+(W-H)*(W-H)},K;r.registerBinding(r.container,"touchstart",K=function(A){if(r.hasTouchStarted=!0,!!S(A)){y(),r.touchData.capture=!0,r.data.bgActivePosistion=void 0;var H=r.cy,Q=r.touchData.now,W=r.touchData.earlier;if(A.touches[0]){var Y=r.projectIntoViewport(A.touches[0].clientX,A.touches[0].clientY);Q[0]=Y[0],Q[1]=Y[1]}if(A.touches[1]){var Y=r.projectIntoViewport(A.touches[1].clientX,A.touches[1].clientY);Q[2]=Y[0],Q[3]=Y[1]}if(A.touches[2]){var Y=r.projectIntoViewport(A.touches[2].clientX,A.touches[2].clientY);Q[4]=Y[0],Q[5]=Y[1]}if(A.touches[1]){r.touchData.singleTouchMoved=!0,p(r.dragData.touchDragEles);var ie=r.findContainerClientCoords();V=ie[0],Z=ie[1],_=ie[2],N=ie[3],P=A.touches[0].clientX-V,B=A.touches[0].clientY-Z,L=A.touches[1].clientX-V,q=A.touches[1].clientY-Z,O=0<=P&&P<=_&&0<=L&&L<=_&&0<=B&&B<=N&&0<=q&&q<=N;var X=H.pan(),ae=H.zoom();F=M(P,B,L,q),$=G(P,B,L,q),U=[(P+L)/2,(B+q)/2],z=[(U[0]-X.x)/ae,(U[1]-X.y)/ae];var he=200,pe=he*he;if($=1){for(var Ze=r.touchData.startPosition=[null,null,null,null,null,null],Ge=0;Ge=r.touchTapThreshold2}if(H&&r.touchData.cxt){A.preventDefault();var Ze=A.touches[0].clientX-V,Ge=A.touches[0].clientY-Z,cr=A.touches[1].clientX-V,je=A.touches[1].clientY-Z,fr=G(Ze,Ge,cr,je),Tr=fr/$,wr=150,dr=wr*wr,Mr=1.5,$r=Mr*Mr;if(Tr>=$r||fr>=dr){r.touchData.cxt=!1,r.data.bgActivePosistion=void 0,r.redrawHint("select",!0);var kr={originalEvent:A,type:"cxttapend",position:{x:Y[0],y:Y[1]}};r.touchData.start?(r.touchData.start.unactivate().emit(kr),r.touchData.start=null):W.emit(kr)}}if(H&&r.touchData.cxt){var kr={originalEvent:A,type:"cxtdrag",position:{x:Y[0],y:Y[1]}};r.data.bgActivePosistion=void 0,r.redrawHint("select",!0),r.touchData.start?r.touchData.start.emit(kr):W.emit(kr),r.touchData.start&&(r.touchData.start._private.grabbed=!1),r.touchData.cxtDragged=!0;var $e=r.findNearestElement(Y[0],Y[1],!0,!0);(!r.touchData.cxtOver||$e!==r.touchData.cxtOver)&&(r.touchData.cxtOver&&r.touchData.cxtOver.emit({originalEvent:A,type:"cxtdragout",position:{x:Y[0],y:Y[1]}}),r.touchData.cxtOver=$e,$e&&$e.emit({originalEvent:A,type:"cxtdragover",position:{x:Y[0],y:Y[1]}}))}else if(H&&A.touches[2]&&W.boxSelectionEnabled())A.preventDefault(),r.data.bgActivePosistion=void 0,this.lastThreeTouch=+new Date,r.touchData.selecting||W.emit({originalEvent:A,type:"boxstart",position:{x:Y[0],y:Y[1]}}),r.touchData.selecting=!0,r.touchData.didSelect=!0,Q[4]=1,!Q||Q.length===0||Q[0]===void 0?(Q[0]=(Y[0]+Y[2]+Y[4])/3,Q[1]=(Y[1]+Y[3]+Y[5])/3,Q[2]=(Y[0]+Y[2]+Y[4])/3+1,Q[3]=(Y[1]+Y[3]+Y[5])/3+1):(Q[2]=(Y[0]+Y[2]+Y[4])/3,Q[3]=(Y[1]+Y[3]+Y[5])/3),r.redrawHint("select",!0),r.redraw();else if(H&&A.touches[1]&&!r.touchData.didSelect&&W.zoomingEnabled()&&W.panningEnabled()&&W.userZoomingEnabled()&&W.userPanningEnabled()){A.preventDefault(),r.data.bgActivePosistion=void 0,r.redrawHint("select",!0);var Ye=r.dragData.touchDragEles;if(Ye){r.redrawHint("drag",!0);for(var ar=0;ar0&&!r.hoverData.draggingEles&&!r.swipePanning&&r.data.bgActivePosistion!=null&&(r.data.bgActivePosistion=void 0,r.redrawHint("select",!0),r.redraw())}},!1);var J;r.registerBinding(e,"touchcancel",J=function(A){var H=r.touchData.start;r.touchData.capture=!1,H&&H.unactivate()});var fe,ce,te,re;if(r.registerBinding(e,"touchend",fe=function(A){var H=r.touchData.start,Q=r.touchData.capture;if(Q)A.touches.length===0&&(r.touchData.capture=!1),A.preventDefault();else return;var W=r.selection;r.swipePanning=!1,r.hoverData.draggingEles=!1;var Y=r.cy,ie=Y.zoom(),X=r.touchData.now,ae=r.touchData.earlier;if(A.touches[0]){var he=r.projectIntoViewport(A.touches[0].clientX,A.touches[0].clientY);X[0]=he[0],X[1]=he[1]}if(A.touches[1]){var he=r.projectIntoViewport(A.touches[1].clientX,A.touches[1].clientY);X[2]=he[0],X[3]=he[1]}if(A.touches[2]){var he=r.projectIntoViewport(A.touches[2].clientX,A.touches[2].clientY);X[4]=he[0],X[5]=he[1]}H&&H.unactivate();var pe;if(r.touchData.cxt){if(pe={originalEvent:A,type:"cxttapend",position:{x:X[0],y:X[1]}},H?H.emit(pe):Y.emit(pe),!r.touchData.cxtDragged){var ge={originalEvent:A,type:"cxttap",position:{x:X[0],y:X[1]}};H?H.emit(ge):Y.emit(ge)}r.touchData.start&&(r.touchData.start._private.grabbed=!1),r.touchData.cxt=!1,r.touchData.start=null,r.redraw();return}if(!A.touches[2]&&Y.boxSelectionEnabled()&&r.touchData.selecting){r.touchData.selecting=!1;var xe=Y.collection(r.getAllInBox(W[0],W[1],W[2],W[3]));W[0]=void 0,W[1]=void 0,W[2]=void 0,W[3]=void 0,W[4]=0,r.redrawHint("select",!0),Y.emit({type:"boxend",originalEvent:A,position:{x:X[0],y:X[1]}});var ve=function(dr){return dr.selectable()&&!dr.selected()};xe.emit("box").stdFilter(ve).select().emit("boxselect"),xe.nonempty()&&r.redrawHint("eles",!0),r.redraw()}if(H!=null&&H.unactivate(),A.touches[2])r.data.bgActivePosistion=void 0,r.redrawHint("select",!0);else if(!A.touches[1]){if(!A.touches[0]){if(!A.touches[0]){r.data.bgActivePosistion=void 0,r.redrawHint("select",!0);var me=r.dragData.touchDragEles;if(H!=null){var qe=H._private.grabbed;p(me),r.redrawHint("drag",!0),r.redrawHint("eles",!0),qe&&(H.emit("freeon"),me.emit("free"),r.dragData.didDrag&&(H.emit("dragfreeon"),me.emit("dragfree"))),a(H,["touchend","tapend","vmouseup","tapdragout"],A,{x:X[0],y:X[1]}),H.unactivate(),r.touchData.start=null}else{var Be=r.findNearestElement(X[0],X[1],!0,!0);a(Be,["touchend","tapend","vmouseup","tapdragout"],A,{x:X[0],y:X[1]})}var lr=r.touchData.startPosition[0]-X[0],Ze=lr*lr,Ge=r.touchData.startPosition[1]-X[1],cr=Ge*Ge,je=Ze+cr,fr=je*ie*ie;r.touchData.singleTouchMoved||(H||Y.$(":selected").unselect(["tapunselect"]),a(H,["tap","vclick"],A,{x:X[0],y:X[1]}),ce=!1,A.timeStamp-re<=Y.multiClickDebounceTime()?(te&&clearTimeout(te),ce=!0,re=null,a(H,["dbltap","vdblclick"],A,{x:X[0],y:X[1]})):(te=setTimeout(function(){ce||a(H,["onetap","voneclick"],A,{x:X[0],y:X[1]})},Y.multiClickDebounceTime()),re=A.timeStamp)),H!=null&&!r.dragData.didDrag&&H._private.selectable&&fr"u"){var oe=[],ne=function(A){return{clientX:A.clientX,clientY:A.clientY,force:1,identifier:A.pointerId,pageX:A.pageX,pageY:A.pageY,radiusX:A.width/2,radiusY:A.height/2,screenX:A.screenX,screenY:A.screenY,target:A.target}},ue=function(A){return{event:A,touch:ne(A)}},de=function(A){oe.push(ue(A))},ke=function(A){for(var H=0;H0)return V[0]}return null},h=Object.keys(c),m=0;m0?d:vp(i,s,e,t,a,n,o,l)},checkPoint:function(e,t,a,n,i,s,o,l){l=l==="auto"?St(n,i):l;var u=2*l;if(Kr(e,t,this.points,s,o,n,i-u,[0,-1],a)||Kr(e,t,this.points,s,o,n-u,i,[0,-1],a))return!0;var f=n/2+2*a,v=i/2+2*a,c=[s-f,o-v,s-f,o,s+f,o,s+f,o-v];return!!(hr(e,t,c)||wt(e,t,u,u,s+n/2-l,o+i/2-l,a)||wt(e,t,u,u,s-n/2+l,o+i/2-l,a))}}};Xr.registerNodeShapes=function(){var r=this.nodeShapes={},e=this;this.generateEllipse(),this.generatePolygon("triangle",vr(3,0)),this.generateRoundPolygon("round-triangle",vr(3,0)),this.generatePolygon("rectangle",vr(4,0)),r.square=r.rectangle,this.generateRoundRectangle(),this.generateCutRectangle(),this.generateBarrel(),this.generateBottomRoundrectangle();{var t=[0,1,1,0,0,-1,-1,0];this.generatePolygon("diamond",t),this.generateRoundPolygon("round-diamond",t)}this.generatePolygon("pentagon",vr(5,0)),this.generateRoundPolygon("round-pentagon",vr(5,0)),this.generatePolygon("hexagon",vr(6,0)),this.generateRoundPolygon("round-hexagon",vr(6,0)),this.generatePolygon("heptagon",vr(7,0)),this.generateRoundPolygon("round-heptagon",vr(7,0)),this.generatePolygon("octagon",vr(8,0)),this.generateRoundPolygon("round-octagon",vr(8,0));var a=new Array(20);{var n=cl(5,0),i=cl(5,Math.PI/5),s=.5*(3-Math.sqrt(5));s*=1.57;for(var o=0;o=e.deqFastCost*w)break}else if(u){if(y>=e.deqCost*d||y>=e.deqAvgCost*c)break}else if(b>=e.deqNoDrawCost*gi)break;var x=e.deq(a,p,m);if(x.length>0)for(var C=0;C0&&(e.onDeqd(a,h),!u&&e.shouldRedraw(a,h,p,m)&&i())},o=e.priority||Gl;n.beforeRender(s,o(a))}}}},TC=function(){function r(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:bn;ql(this,r),this.idsByKey=new Fr,this.keyForId=new Fr,this.cachesByLvl=new Fr,this.lvls=[],this.getKey=e,this.doesEleInvalidateKey=t}return Nl(r,[{key:"getIdsFor",value:function(t){t==null&&ze("Can not get id list for null key");var a=this.idsByKey,n=this.idsByKey.get(t);return n||(n=new jt,a.set(t,n)),n}},{key:"addIdForKey",value:function(t,a){t!=null&&this.getIdsFor(t).add(a)}},{key:"deleteIdForKey",value:function(t,a){t!=null&&this.getIdsFor(t).delete(a)}},{key:"getNumberOfIdsForKey",value:function(t){return t==null?0:this.getIdsFor(t).size}},{key:"updateKeyMappingFor",value:function(t){var a=t.id(),n=this.keyForId.get(a),i=this.getKey(t);this.deleteIdForKey(n,a),this.addIdForKey(i,a),this.keyForId.set(a,i)}},{key:"deleteKeyMappingFor",value:function(t){var a=t.id(),n=this.keyForId.get(a);this.deleteIdForKey(n,a),this.keyForId.delete(a)}},{key:"keyHasChangedFor",value:function(t){var a=t.id(),n=this.keyForId.get(a),i=this.getKey(t);return n!==i}},{key:"isInvalid",value:function(t){return this.keyHasChangedFor(t)||this.doesEleInvalidateKey(t)}},{key:"getCachesAt",value:function(t){var a=this.cachesByLvl,n=this.lvls,i=a.get(t);return i||(i=new Fr,a.set(t,i),n.push(t)),i}},{key:"getCache",value:function(t,a){return this.getCachesAt(a).get(t)}},{key:"get",value:function(t,a){var n=this.getKey(t),i=this.getCache(n,a);return i!=null&&this.updateKeyMappingFor(t),i}},{key:"getForCachedKey",value:function(t,a){var n=this.keyForId.get(t.id()),i=this.getCache(n,a);return i}},{key:"hasCache",value:function(t,a){return this.getCachesAt(a).has(t)}},{key:"has",value:function(t,a){var n=this.getKey(t);return this.hasCache(n,a)}},{key:"setCache",value:function(t,a,n){n.key=t,this.getCachesAt(a).set(t,n)}},{key:"set",value:function(t,a,n){var i=this.getKey(t);this.setCache(i,a,n),this.updateKeyMappingFor(t)}},{key:"deleteCache",value:function(t,a){this.getCachesAt(a).delete(t)}},{key:"delete",value:function(t,a){var n=this.getKey(t);this.deleteCache(n,a)}},{key:"invalidateKey",value:function(t){var a=this;this.lvls.forEach(function(n){return a.deleteCache(t,n)})}},{key:"invalidate",value:function(t){var a=t.id(),n=this.keyForId.get(a);this.deleteKeyMappingFor(t);var i=this.doesEleInvalidateKey(t);return i&&this.invalidateKey(n),i||this.getNumberOfIdsForKey(n)===0}}]),r}(),Rv=25,on=50,pn=-4,Sl=3,kC=7.99,DC=8,RC=1024,PC=1024,AC=1024,IC=.2,BC=.8,LC=10,MC=.15,_C=.1,OC=.9,qC=.9,NC=100,FC=1,zt={dequeue:"dequeue",downscale:"downscale",highQuality:"highQuality"},zC=rr({getKey:null,doesEleInvalidateKey:bn,drawElement:null,getBoundingBox:null,getRotationPoint:null,getRotationOffset:null,isVisible:ap,allowEdgeTxrCaching:!0,allowParentTxrCaching:!0}),wa=function(e,t){var a=this;a.renderer=e,a.onDequeues=[];var n=zC(t);we(a,n),a.lookup=new TC(n.getKey,n.doesEleInvalidateKey),a.setupDequeueing()},We=wa.prototype;We.reasons=zt;We.getTextureQueue=function(r){var e=this;return e.eleImgCaches=e.eleImgCaches||{},e.eleImgCaches[r]=e.eleImgCaches[r]||[]};We.getRetiredTextureQueue=function(r){var e=this,t=e.eleImgCaches.retired=e.eleImgCaches.retired||{},a=t[r]=t[r]||[];return a};We.getElementQueue=function(){var r=this,e=r.eleCacheQueue=r.eleCacheQueue||new za(function(t,a){return a.reqs-t.reqs});return e};We.getElementKeyToQueue=function(){var r=this,e=r.eleKeyToCacheQueue=r.eleKeyToCacheQueue||{};return e};We.getElement=function(r,e,t,a,n){var i=this,s=this.renderer,o=s.cy.zoom(),l=this.lookup;if(!e||e.w===0||e.h===0||isNaN(e.w)||isNaN(e.h)||!r.visible()||r.removed()||!i.allowEdgeTxrCaching&&r.isEdge()||!i.allowParentTxrCaching&&r.isParent())return null;if(a==null&&(a=Math.ceil(Ul(o*t))),a=kC||a>Sl)return null;var u=Math.pow(2,a),f=e.h*u,v=e.w*u,c=s.eleTextBiggerThanMin(r,u);if(!this.isVisible(r,c))return null;var d=l.get(r,a);if(d&&d.invalidated&&(d.invalidated=!1,d.texture.invalidatedWidth-=d.width),d)return d;var h;if(f<=Rv?h=Rv:f<=on?h=on:h=Math.ceil(f/on)*on,f>AC||v>PC)return null;var m=i.getTextureQueue(h),p=m[m.length-2],g=function(){return i.recycleTexture(h,v)||i.addTexture(h,v)};p||(p=m[m.length-1]),p||(p=g()),p.width-p.usedWidtha;k--)S=i.getElement(r,e,t,k,zt.downscale);D()}else return i.queueElement(r,C.level-1),C;else{var R;if(!b&&!w&&!x)for(var I=a-1;I>=pn;I--){var P=l.get(r,I);if(P){R=P;break}}if(y(R))return i.queueElement(r,a),R;p.context.translate(p.usedWidth,0),p.context.scale(u,u),this.drawElement(p.context,r,e,c,!1),p.context.scale(1/u,1/u),p.context.translate(-p.usedWidth,0)}return d={x:p.usedWidth,texture:p,level:a,scale:u,width:v,height:f,scaledLabelShown:c},p.usedWidth+=Math.ceil(v+DC),p.eleCaches.push(d),l.set(r,a,d),i.checkTextureFullness(p),d};We.invalidateElements=function(r){for(var e=0;e=IC*r.width&&this.retireTexture(r)};We.checkTextureFullness=function(r){var e=this,t=e.getTextureQueue(r.height);r.usedWidth/r.width>BC&&r.fullnessChecks>=LC?st(t,r):r.fullnessChecks++};We.retireTexture=function(r){var e=this,t=r.height,a=e.getTextureQueue(t),n=this.lookup;st(a,r),r.retired=!0;for(var i=r.eleCaches,s=0;s=e)return s.retired=!1,s.usedWidth=0,s.invalidatedWidth=0,s.fullnessChecks=0,$l(s.eleCaches),s.context.setTransform(1,0,0,1,0,0),s.context.clearRect(0,0,s.width,s.height),st(n,s),a.push(s),s}};We.queueElement=function(r,e){var t=this,a=t.getElementQueue(),n=t.getElementKeyToQueue(),i=this.getKey(r),s=n[i];if(s)s.level=Math.max(s.level,e),s.eles.merge(r),s.reqs++,a.updateItem(s);else{var o={eles:r.spawn().merge(r),level:e,reqs:1,key:i};a.push(o),n[i]=o}};We.dequeue=function(r){for(var e=this,t=e.getElementQueue(),a=e.getElementKeyToQueue(),n=[],i=e.lookup,s=0;s0;s++){var o=t.pop(),l=o.key,u=o.eles[0],f=i.hasCache(u,o.level);if(a[l]=null,f)continue;n.push(o);var v=e.getBoundingBox(u);e.getElement(u,v,r,o.level,zt.dequeue)}return n};We.removeFromQueue=function(r){var e=this,t=e.getElementQueue(),a=e.getElementKeyToQueue(),n=this.getKey(r),i=a[n];i!=null&&(i.eles.length===1?(i.reqs=Vl,t.updateItem(i),t.pop(),a[n]=null):i.eles.unmerge(r))};We.onDequeue=function(r){this.onDequeues.push(r)};We.offDequeue=function(r){st(this.onDequeues,r)};We.setupDequeueing=cy.setupDequeueing({deqRedrawThreshold:NC,deqCost:MC,deqAvgCost:_C,deqNoDrawCost:OC,deqFastCost:qC,deq:function(e,t,a){return e.dequeue(t,a)},onDeqd:function(e,t){for(var a=0;a=GC||t>Dn)return null}a.validateLayersElesOrdering(t,r);var l=a.layersByLevel,u=Math.pow(2,t),f=l[t]=l[t]||[],v,c=a.levelIsComplete(t,r),d,h=function(){var D=function(B){if(a.validateLayersElesOrdering(B,r),a.levelIsComplete(B,r))return d=l[B],!0},k=function(B){if(!d)for(var L=t+B;Ta<=L&&L<=Dn&&!D(L);L+=B);};k(1),k(-1);for(var R=f.length-1;R>=0;R--){var I=f[R];I.invalid&&st(f,I)}};if(!c)h();else return f;var m=function(){if(!v){v=pr();for(var D=0;DZC)return null;var I=a.makeLayer(v,t);if(k!=null){var P=f.indexOf(k)+1;f.splice(P,0,I)}else(D.insert===void 0||D.insert)&&f.unshift(I);return I};if(a.skipping&&!o)return null;for(var g=null,y=r.length/VC,b=!o,w=0;w=y||!fp(g.bb,x.boundingBox()))&&(g=p({insert:!0,after:g}),!g))return null;d||b?a.queueLayer(g,x):a.drawEleInLayer(g,x,t,e),g.eles.push(x),E[t]=g}return d||(b?null:f)};tr.getEleLevelForLayerLevel=function(r,e){return r};tr.drawEleInLayer=function(r,e,t,a){var n=this,i=this.renderer,s=r.context,o=e.boundingBox();o.w===0||o.h===0||!e.visible()||(t=n.getEleLevelForLayerLevel(t,a),i.setImgSmoothing(s,!1),i.drawCachedElement(s,e,null,null,t,jC),i.setImgSmoothing(s,!0))};tr.levelIsComplete=function(r,e){var t=this,a=t.layersByLevel[r];if(!a||a.length===0)return!1;for(var n=0,i=0;i0||s.invalid)return!1;n+=s.eles.length}return n===e.length};tr.validateLayersElesOrdering=function(r,e){var t=this.layersByLevel[r];if(t)for(var a=0;a0){e=!0;break}}return e};tr.invalidateElements=function(r){var e=this;r.length!==0&&(e.lastInvalidationTime=Hr(),!(r.length===0||!e.haveLayers())&&e.updateElementsInLayers(r,function(a,n,i){e.invalidateLayer(a)}))};tr.invalidateLayer=function(r){if(this.lastInvalidationTime=Hr(),!r.invalid){var e=r.level,t=r.eles,a=this.layersByLevel[e];st(a,r),r.elesQueue=[],r.invalid=!0,r.replacement&&(r.replacement.invalid=!0);for(var n=0;n3&&arguments[3]!==void 0?arguments[3]:!0,n=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0,s=this,o=e._private.rscratch;if(!(i&&!e.visible())&&!(o.badLine||o.allpts==null||isNaN(o.allpts[0]))){var l;t&&(l=t,r.translate(-l.x1,-l.y1));var u=i?e.pstyle("opacity").value:1,f=i?e.pstyle("line-opacity").value:1,v=e.pstyle("curve-style").value,c=e.pstyle("line-style").value,d=e.pstyle("width").pfValue,h=e.pstyle("line-cap").value,m=u*f,p=u*f,g=function(){var R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:m;v==="straight-triangle"?(s.eleStrokeStyle(r,e,R),s.drawEdgeTrianglePath(e,r,o.allpts)):(r.lineWidth=d,r.lineCap=h,s.eleStrokeStyle(r,e,R),s.drawEdgePath(e,r,o.allpts,c),r.lineCap="butt")},y=function(){n&&s.drawEdgeOverlay(r,e)},b=function(){n&&s.drawEdgeUnderlay(r,e)},w=function(){var R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:p;s.drawArrowheads(r,e,R)},x=function(){s.drawElementText(r,e,null,a)};r.lineJoin="round";var C=e.pstyle("ghost").value==="yes";if(C){var E=e.pstyle("ghost-offset-x").pfValue,T=e.pstyle("ghost-offset-y").pfValue,S=e.pstyle("ghost-opacity").value,D=m*S;r.translate(E,T),g(D),w(D),r.translate(-E,-T)}b(),g(),w(),y(),x(),t&&r.translate(l.x1,l.y1)}};var gy=function(e){if(!["overlay","underlay"].includes(e))throw new Error("Invalid state");return function(t,a){if(a.visible()){var n=a.pstyle("".concat(e,"-opacity")).value;if(n!==0){var i=this,s=i.usePaths(),o=a._private.rscratch,l=a.pstyle("".concat(e,"-padding")).pfValue,u=2*l,f=a.pstyle("".concat(e,"-color")).value;t.lineWidth=u,o.edgeType==="self"&&!s?t.lineCap="butt":t.lineCap="round",i.colorStrokeStyle(t,f[0],f[1],f[2],n),i.drawEdgePath(a,t,o.allpts,"solid")}}}};Zr.drawEdgeOverlay=gy("overlay");Zr.drawEdgeUnderlay=gy("underlay");Zr.drawEdgePath=function(r,e,t,a){var n=r._private.rscratch,i=e,s,o=!1,l=this.usePaths(),u=r.pstyle("line-dash-pattern").pfValue,f=r.pstyle("line-dash-offset").pfValue;if(l){var v=t.join("$"),c=n.pathCacheKey&&n.pathCacheKey===v;c?(s=e=n.pathCache,o=!0):(s=e=new Path2D,n.pathCacheKey=v,n.pathCache=s)}if(i.setLineDash)switch(a){case"dotted":i.setLineDash([1,1]);break;case"dashed":i.setLineDash(u),i.lineDashOffset=f;break;case"solid":i.setLineDash([]);break}if(!o&&!n.badLine)switch(e.beginPath&&e.beginPath(),e.moveTo(t[0],t[1]),n.edgeType){case"bezier":case"self":case"compound":case"multibezier":for(var d=2;d+35&&arguments[5]!==void 0?arguments[5]:!0,s=this;if(a==null){if(i&&!s.eleTextBiggerThanMin(e))return}else if(a===!1)return;if(e.isNode()){var o=e.pstyle("label");if(!o||!o.value)return;var l=s.getLabelJustification(e);r.textAlign=l,r.textBaseline="bottom"}else{var u=e.element()._private.rscratch.badLine,f=e.pstyle("label"),v=e.pstyle("source-label"),c=e.pstyle("target-label");if(u||(!f||!f.value)&&(!v||!v.value)&&(!c||!c.value))return;r.textAlign="center",r.textBaseline="bottom"}var d=!t,h;t&&(h=t,r.translate(-h.x1,-h.y1)),n==null?(s.drawText(r,e,null,d,i),e.isEdge()&&(s.drawText(r,e,"source",d,i),s.drawText(r,e,"target",d,i))):s.drawText(r,e,n,d,i),t&&r.translate(h.x1,h.y1)};Pt.getFontCache=function(r){var e;this.fontCaches=this.fontCaches||[];for(var t=0;t2&&arguments[2]!==void 0?arguments[2]:!0,a=e.pstyle("font-style").strValue,n=e.pstyle("font-size").pfValue+"px",i=e.pstyle("font-family").strValue,s=e.pstyle("font-weight").strValue,o=t?e.effectiveOpacity()*e.pstyle("text-opacity").value:1,l=e.pstyle("text-outline-opacity").value*o,u=e.pstyle("color").value,f=e.pstyle("text-outline-color").value;r.font=a+" "+s+" "+n+" "+i,r.lineJoin="round",this.colorFillStyle(r,u[0],u[1],u[2],o),this.colorStrokeStyle(r,f[0],f[1],f[2],l)};function yi(r,e,t,a,n){var i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:5,s=arguments.length>6?arguments[6]:void 0;r.beginPath(),r.moveTo(e+i,t),r.lineTo(e+a-i,t),r.quadraticCurveTo(e+a,t,e+a,t+i),r.lineTo(e+a,t+n-i),r.quadraticCurveTo(e+a,t+n,e+a-i,t+n),r.lineTo(e+i,t+n),r.quadraticCurveTo(e,t+n,e,t+n-i),r.lineTo(e,t+i),r.quadraticCurveTo(e,t,e+i,t),r.closePath(),s?r.stroke():r.fill()}Pt.getTextAngle=function(r,e){var t,a=r._private,n=a.rscratch,i=e?e+"-":"",s=r.pstyle(i+"text-rotation"),o=Ir(n,"labelAngle",e);return s.strValue==="autorotate"?t=r.isEdge()?o:0:s.strValue==="none"?t=0:t=s.pfValue,t};Pt.drawText=function(r,e,t){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,n=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,i=e._private,s=i.rscratch,o=n?e.effectiveOpacity():1;if(!(n&&(o===0||e.pstyle("text-opacity").value===0))){t==="main"&&(t=null);var l=Ir(s,"labelX",t),u=Ir(s,"labelY",t),f,v,c=this.getLabelText(e,t);if(c!=null&&c!==""&&!isNaN(l)&&!isNaN(u)){this.setupTextStyle(r,e,n);var d=t?t+"-":"",h=Ir(s,"labelWidth",t),m=Ir(s,"labelHeight",t),p=e.pstyle(d+"text-margin-x").pfValue,g=e.pstyle(d+"text-margin-y").pfValue,y=e.isEdge(),b=e.pstyle("text-halign").value,w=e.pstyle("text-valign").value;y&&(b="center",w="center"),l+=p,u+=g;var x;switch(a?x=this.getTextAngle(e,t):x=0,x!==0&&(f=l,v=u,r.translate(f,v),r.rotate(x),l=0,u=0),w){case"top":break;case"center":u+=m/2;break;case"bottom":u+=m;break}var C=e.pstyle("text-background-opacity").value,E=e.pstyle("text-border-opacity").value,T=e.pstyle("text-border-width").pfValue,S=e.pstyle("text-background-padding").pfValue,D=e.pstyle("text-background-shape").strValue,k=D.indexOf("round")===0,R=2;if(C>0||T>0&&E>0){var I=l-S;switch(b){case"left":I-=h;break;case"center":I-=h/2;break}var P=u-m-S,B=h+2*S,L=m+2*S;if(C>0){var q=r.fillStyle,F=e.pstyle("text-background-color").value;r.fillStyle="rgba("+F[0]+","+F[1]+","+F[2]+","+C*o+")",k?yi(r,I,P,B,L,R):r.fillRect(I,P,B,L),r.fillStyle=q}if(T>0&&E>0){var $=r.strokeStyle,U=r.lineWidth,z=e.pstyle("text-border-color").value,V=e.pstyle("text-border-style").value;if(r.strokeStyle="rgba("+z[0]+","+z[1]+","+z[2]+","+E*o+")",r.lineWidth=T,r.setLineDash)switch(V){case"dotted":r.setLineDash([1,1]);break;case"dashed":r.setLineDash([4,2]);break;case"double":r.lineWidth=T/4,r.setLineDash([]);break;case"solid":r.setLineDash([]);break}if(k?yi(r,I,P,B,L,R,"stroke"):r.strokeRect(I,P,B,L),V==="double"){var Z=T/2;k?yi(r,I+Z,P+Z,B-Z*2,L-Z*2,R,"stroke"):r.strokeRect(I+Z,P+Z,B-Z*2,L-Z*2)}r.setLineDash&&r.setLineDash([]),r.lineWidth=U,r.strokeStyle=$}}var _=2*e.pstyle("text-outline-width").pfValue;if(_>0&&(r.lineWidth=_),e.pstyle("text-wrap").value==="wrap"){var N=Ir(s,"labelWrapCachedLines",t),O=Ir(s,"labelLineHeight",t),M=h/2,G=this.getLabelJustification(e);switch(G==="auto"||(b==="left"?G==="left"?l+=-h:G==="center"&&(l+=-M):b==="center"?G==="left"?l+=-M:G==="right"&&(l+=M):b==="right"&&(G==="center"?l+=M:G==="right"&&(l+=h))),w){case"top":u-=(N.length-1)*O;break;case"center":case"bottom":u-=(N.length-1)*O;break}for(var K=0;K0&&r.strokeText(N[K],l,u),r.fillText(N[K],l,u),u+=O}else _>0&&r.strokeText(c,l,u),r.fillText(c,l,u);x!==0&&(r.rotate(-x),r.translate(-f,-v))}}};var sa={};sa.drawNode=function(r,e,t){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,n=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0,s=this,o,l,u=e._private,f=u.rscratch,v=e.position();if(!(!se(v.x)||!se(v.y))&&!(i&&!e.visible())){var c=i?e.effectiveOpacity():1,d=s.usePaths(),h,m=!1,p=e.padding();o=e.width()+2*p,l=e.height()+2*p;var g;t&&(g=t,r.translate(-g.x1,-g.y1));for(var y=e.pstyle("background-image"),b=y.value,w=new Array(b.length),x=new Array(b.length),C=0,E=0;E0&&arguments[0]!==void 0?arguments[0]:I;s.eleFillStyle(r,e,ie)},K=function(){var ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:z;s.colorStrokeStyle(r,P[0],P[1],P[2],ie)},j=function(){var ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:N;s.colorStrokeStyle(r,Z[0],Z[1],Z[2],ie)},J=function(ie,X,ae,he){var pe=s.nodePathCache=s.nodePathCache||[],ge=tp(ae==="polygon"?ae+","+he.join(","):ae,""+X,""+ie,""+M),xe=pe[ge],ve,me=!1;return xe!=null?(ve=xe,me=!0,f.pathCache=ve):(ve=new Path2D,pe[ge]=f.pathCache=ve),{path:ve,cacheHit:me}},fe=e.pstyle("shape").strValue,ce=e.pstyle("shape-polygon-points").pfValue;if(d){r.translate(v.x,v.y);var te=J(o,l,fe,ce);h=te.path,m=te.cacheHit}var re=function(){if(!m){var ie=v;d&&(ie={x:0,y:0}),s.nodeShapes[s.getNodeShape(e)].draw(h||r,ie.x,ie.y,o,l,M,f)}d?r.fill(h):r.fill()},oe=function(){for(var ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:c,X=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,ae=u.backgrounding,he=0,pe=0;pe0&&arguments[0]!==void 0?arguments[0]:!1,X=arguments.length>1&&arguments[1]!==void 0?arguments[1]:c;s.hasPie(e)&&(s.drawPie(r,e,X),ie&&(d||s.nodeShapes[s.getNodeShape(e)].draw(r,v.x,v.y,o,l,M,f)))},ue=function(){var ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:c,X=(k>0?k:-k)*ie,ae=k>0?0:255;k!==0&&(s.colorFillStyle(r,ae,ae,ae,X),d?r.fill(h):r.fill())},de=function(){if(R>0){if(r.lineWidth=R,r.lineCap=q,r.lineJoin=L,r.setLineDash)switch(B){case"dotted":r.setLineDash([1,1]);break;case"dashed":r.setLineDash($),r.lineDashOffset=U;break;case"solid":case"double":r.setLineDash([]);break}if(F!=="center"){if(r.save(),r.lineWidth*=2,F==="inside")d?r.clip(h):r.clip();else{var ie=new Path2D;ie.rect(-o/2-R,-l/2-R,o+2*R,l+2*R),ie.addPath(h),r.clip(ie,"evenodd")}d?r.stroke(h):r.stroke(),r.restore()}else d?r.stroke(h):r.stroke();if(B==="double"){r.lineWidth=R/3;var X=r.globalCompositeOperation;r.globalCompositeOperation="destination-out",d?r.stroke(h):r.stroke(),r.globalCompositeOperation=X}r.setLineDash&&r.setLineDash([])}},ke=function(){if(V>0){if(r.lineWidth=V,r.lineCap="butt",r.setLineDash)switch(_){case"dotted":r.setLineDash([1,1]);break;case"dashed":r.setLineDash([4,2]);break;case"solid":case"double":r.setLineDash([]);break}var ie=v;d&&(ie={x:0,y:0});var X=s.getNodeShape(e),ae=R;F==="inside"&&(ae=0),F==="outside"&&(ae*=2);var he=(o+ae+(V+O))/o,pe=(l+ae+(V+O))/l,ge=o*he,xe=l*pe,ve=s.nodeShapes[X].points,me;if(d){var qe=J(ge,xe,X,ve);me=qe.path}if(X==="ellipse")s.drawEllipsePath(me||r,ie.x,ie.y,ge,xe);else if(["round-diamond","round-heptagon","round-hexagon","round-octagon","round-pentagon","round-polygon","round-triangle","round-tag"].includes(X)){var Be=0,lr=0,Ze=0;X==="round-diamond"?Be=(ae+O+V)*1.4:X==="round-heptagon"?(Be=(ae+O+V)*1.075,Ze=-(ae/2+O+V)/35):X==="round-hexagon"?Be=(ae+O+V)*1.12:X==="round-pentagon"?(Be=(ae+O+V)*1.13,Ze=-(ae/2+O+V)/15):X==="round-tag"?(Be=(ae+O+V)*1.12,lr=(ae/2+V+O)*.07):X==="round-triangle"&&(Be=(ae+O+V)*(Math.PI/2),Ze=-(ae+O/2+V)/Math.PI),Be!==0&&(he=(o+Be)/o,ge=o*he,["round-hexagon","round-tag"].includes(X)||(pe=(l+Be)/l,xe=l*pe)),M=M==="auto"?dp(ge,xe):M;for(var Ge=ge/2,cr=xe/2,je=M+(ae+V+O)/2,fr=new Array(ve.length/2),Tr=new Array(ve.length/2),wr=0;wr0){if(n=n||a.position(),i==null||s==null){var d=a.padding();i=a.width()+2*d,s=a.height()+2*d}o.colorFillStyle(t,f[0],f[1],f[2],u),o.nodeShapes[v].draw(t,n.x,n.y,i+l*2,s+l*2,c),t.fill()}}}};sa.drawNodeOverlay=py("overlay");sa.drawNodeUnderlay=py("underlay");sa.hasPie=function(r){return r=r[0],r._private.hasPie};sa.drawPie=function(r,e,t,a){e=e[0],a=a||e.position();var n=e.cy().style(),i=e.pstyle("pie-size"),s=a.x,o=a.y,l=e.width(),u=e.height(),f=Math.min(l,u)/2,v=0,c=this.usePaths();c&&(s=0,o=0),i.units==="%"?f=f*i.pfValue:i.pfValue!==void 0&&(f=i.pfValue/2);for(var d=1;d<=n.pieBackgroundN;d++){var h=e.pstyle("pie-"+d+"-background-size").value,m=e.pstyle("pie-"+d+"-background-color").value,p=e.pstyle("pie-"+d+"-background-opacity").value*t,g=h/100;g+v>1&&(g=1-v);var y=1.5*Math.PI+2*Math.PI*v,b=2*Math.PI*g,w=y+b;h===0||v>=1||v+g>1||(r.beginPath(),r.moveTo(s,o),r.arc(s,o,f,y,w),r.closePath(),this.colorFillStyle(r,m[0],m[1],m[2],p),r.fill(),v+=g)}};var br={},uS=100;br.getPixelRatio=function(){var r=this.data.contexts[0];if(this.forcedPixelRatio!=null)return this.forcedPixelRatio;var e=r.backingStorePixelRatio||r.webkitBackingStorePixelRatio||r.mozBackingStorePixelRatio||r.msBackingStorePixelRatio||r.oBackingStorePixelRatio||r.backingStorePixelRatio||1;return(window.devicePixelRatio||1)/e};br.paintCache=function(r){for(var e=this.paintCaches=this.paintCaches||[],t=!0,a,n=0;ns.minMbLowQualFrames&&(s.motionBlurPxRatio=s.mbPxRBlurry)),s.clearingMotionBlur&&(s.motionBlurPxRatio=1),s.textureDrawLastFrame&&!v&&(f[s.NODE]=!0,f[s.SELECT_BOX]=!0);var y=l.style(),b=l.zoom(),w=n!==void 0?n:b,x=l.pan(),C={x:x.x,y:x.y},E={zoom:b,pan:{x:x.x,y:x.y}},T=s.prevViewport,S=T===void 0||E.zoom!==T.zoom||E.pan.x!==T.pan.x||E.pan.y!==T.pan.y;!S&&!(m&&!h)&&(s.motionBlurPxRatio=1),i&&(C=i),w*=o,C.x*=o,C.y*=o;var D=s.getCachedZSortedEles();function k(te,re,oe,ne,ue){var de=te.globalCompositeOperation;te.globalCompositeOperation="destination-out",s.colorFillStyle(te,255,255,255,s.motionBlurTransparency),te.fillRect(re,oe,ne,ue),te.globalCompositeOperation=de}function R(te,re){var oe,ne,ue,de;!s.clearingMotionBlur&&(te===u.bufferContexts[s.MOTIONBLUR_BUFFER_NODE]||te===u.bufferContexts[s.MOTIONBLUR_BUFFER_DRAG])?(oe={x:x.x*d,y:x.y*d},ne=b*d,ue=s.canvasWidth*d,de=s.canvasHeight*d):(oe=C,ne=w,ue=s.canvasWidth,de=s.canvasHeight),te.setTransform(1,0,0,1,0,0),re==="motionBlur"?k(te,0,0,ue,de):!e&&(re===void 0||re)&&te.clearRect(0,0,ue,de),t||(te.translate(oe.x,oe.y),te.scale(ne,ne)),i&&te.translate(i.x,i.y),n&&te.scale(n,n)}if(v||(s.textureDrawLastFrame=!1),v){if(s.textureDrawLastFrame=!0,!s.textureCache){s.textureCache={},s.textureCache.bb=l.mutableElements().boundingBox(),s.textureCache.texture=s.data.bufferCanvases[s.TEXTURE_BUFFER];var I=s.data.bufferContexts[s.TEXTURE_BUFFER];I.setTransform(1,0,0,1,0,0),I.clearRect(0,0,s.canvasWidth*s.textureMult,s.canvasHeight*s.textureMult),s.render({forcedContext:I,drawOnlyNodeLayer:!0,forcedPxRatio:o*s.textureMult});var E=s.textureCache.viewport={zoom:l.zoom(),pan:l.pan(),width:s.canvasWidth,height:s.canvasHeight};E.mpan={x:(0-E.pan.x)/E.zoom,y:(0-E.pan.y)/E.zoom}}f[s.DRAG]=!1,f[s.NODE]=!1;var P=u.contexts[s.NODE],B=s.textureCache.texture,E=s.textureCache.viewport;P.setTransform(1,0,0,1,0,0),c?k(P,0,0,E.width,E.height):P.clearRect(0,0,E.width,E.height);var L=y.core("outside-texture-bg-color").value,q=y.core("outside-texture-bg-opacity").value;s.colorFillStyle(P,L[0],L[1],L[2],q),P.fillRect(0,0,E.width,E.height);var b=l.zoom();R(P,!1),P.clearRect(E.mpan.x,E.mpan.y,E.width/E.zoom/o,E.height/E.zoom/o),P.drawImage(B,E.mpan.x,E.mpan.y,E.width/E.zoom/o,E.height/E.zoom/o)}else s.textureOnViewport&&!e&&(s.textureCache=null);var F=l.extent(),$=s.pinching||s.hoverData.dragging||s.swipePanning||s.data.wheelZooming||s.hoverData.draggingEles||s.cy.animated(),U=s.hideEdgesOnViewport&&$,z=[];if(z[s.NODE]=!f[s.NODE]&&c&&!s.clearedForMotionBlur[s.NODE]||s.clearingMotionBlur,z[s.NODE]&&(s.clearedForMotionBlur[s.NODE]=!0),z[s.DRAG]=!f[s.DRAG]&&c&&!s.clearedForMotionBlur[s.DRAG]||s.clearingMotionBlur,z[s.DRAG]&&(s.clearedForMotionBlur[s.DRAG]=!0),f[s.NODE]||t||a||z[s.NODE]){var V=c&&!z[s.NODE]&&d!==1,P=e||(V?s.data.bufferContexts[s.MOTIONBLUR_BUFFER_NODE]:u.contexts[s.NODE]),Z=c&&!V?"motionBlur":void 0;R(P,Z),U?s.drawCachedNodes(P,D.nondrag,o,F):s.drawLayeredElements(P,D.nondrag,o,F),s.debug&&s.drawDebugPoints(P,D.nondrag),!t&&!c&&(f[s.NODE]=!1)}if(!a&&(f[s.DRAG]||t||z[s.DRAG])){var V=c&&!z[s.DRAG]&&d!==1,P=e||(V?s.data.bufferContexts[s.MOTIONBLUR_BUFFER_DRAG]:u.contexts[s.DRAG]);R(P,c&&!V?"motionBlur":void 0),U?s.drawCachedNodes(P,D.drag,o,F):s.drawCachedElements(P,D.drag,o,F),s.debug&&s.drawDebugPoints(P,D.drag),!t&&!c&&(f[s.DRAG]=!1)}if(s.showFps||!a&&f[s.SELECT_BOX]&&!t){var P=e||u.contexts[s.SELECT_BOX];if(R(P),s.selection[4]==1&&(s.hoverData.selecting||s.touchData.selecting)){var b=s.cy.zoom(),_=y.core("selection-box-border-width").value/b;P.lineWidth=_,P.fillStyle="rgba("+y.core("selection-box-color").value[0]+","+y.core("selection-box-color").value[1]+","+y.core("selection-box-color").value[2]+","+y.core("selection-box-opacity").value+")",P.fillRect(s.selection[0],s.selection[1],s.selection[2]-s.selection[0],s.selection[3]-s.selection[1]),_>0&&(P.strokeStyle="rgba("+y.core("selection-box-border-color").value[0]+","+y.core("selection-box-border-color").value[1]+","+y.core("selection-box-border-color").value[2]+","+y.core("selection-box-opacity").value+")",P.strokeRect(s.selection[0],s.selection[1],s.selection[2]-s.selection[0],s.selection[3]-s.selection[1]))}if(u.bgActivePosistion&&!s.hoverData.selecting){var b=s.cy.zoom(),N=u.bgActivePosistion;P.fillStyle="rgba("+y.core("active-bg-color").value[0]+","+y.core("active-bg-color").value[1]+","+y.core("active-bg-color").value[2]+","+y.core("active-bg-opacity").value+")",P.beginPath(),P.arc(N.x,N.y,y.core("active-bg-size").pfValue/b,0,2*Math.PI),P.fill()}var O=s.lastRedrawTime;if(s.showFps&&O){O=Math.round(O);var M=Math.round(1e3/O);P.setTransform(1,0,0,1,0,0),P.fillStyle="rgba(255, 0, 0, 0.75)",P.strokeStyle="rgba(255, 0, 0, 0.75)",P.lineWidth=1,P.fillText("1 frame = "+O+" ms = "+M+" fps",0,20);var G=60;P.strokeRect(0,30,250,20),P.fillRect(0,30,250*Math.min(M/G,1),20)}t||(f[s.SELECT_BOX]=!1)}if(c&&d!==1){var K=u.contexts[s.NODE],j=s.data.bufferCanvases[s.MOTIONBLUR_BUFFER_NODE],J=u.contexts[s.DRAG],fe=s.data.bufferCanvases[s.MOTIONBLUR_BUFFER_DRAG],ce=function(re,oe,ne){re.setTransform(1,0,0,1,0,0),ne||!g?re.clearRect(0,0,s.canvasWidth,s.canvasHeight):k(re,0,0,s.canvasWidth,s.canvasHeight);var ue=d;re.drawImage(oe,0,0,s.canvasWidth*ue,s.canvasHeight*ue,0,0,s.canvasWidth,s.canvasHeight)};(f[s.NODE]||z[s.NODE])&&(ce(K,j,z[s.NODE]),f[s.NODE]=!1),(f[s.DRAG]||z[s.DRAG])&&(ce(J,fe,z[s.DRAG]),f[s.DRAG]=!1)}s.prevViewport=E,s.clearingMotionBlur&&(s.clearingMotionBlur=!1,s.motionBlurCleared=!0,s.motionBlur=!0),c&&(s.motionBlurTimeout=setTimeout(function(){s.motionBlurTimeout=null,s.clearedForMotionBlur[s.NODE]=!1,s.clearedForMotionBlur[s.DRAG]=!1,s.motionBlur=!1,s.clearingMotionBlur=!v,s.mbFrames=0,f[s.NODE]=!0,f[s.DRAG]=!0,s.redraw()},uS)),e||l.emit("render")};var dt={};dt.drawPolygonPath=function(r,e,t,a,n,i){var s=a/2,o=n/2;r.beginPath&&r.beginPath(),r.moveTo(e+s*i[0],t+o*i[1]);for(var l=1;l0&&s>0){d.clearRect(0,0,i,s),d.globalCompositeOperation="source-over";var h=this.getCachedZSortedEles();if(r.full)d.translate(-a.x1*u,-a.y1*u),d.scale(u,u),this.drawElements(d,h),d.scale(1/u,1/u),d.translate(a.x1*u,a.y1*u);else{var m=e.pan(),p={x:m.x*u,y:m.y*u};u*=e.zoom(),d.translate(p.x,p.y),d.scale(u,u),this.drawElements(d,h),d.scale(1/u,1/u),d.translate(-p.x,-p.y)}r.bg&&(d.globalCompositeOperation="destination-over",d.fillStyle=r.bg,d.rect(0,0,i,s),d.fill())}return c};function lS(r,e){for(var t=atob(r),a=new ArrayBuffer(t.length),n=new Uint8Array(a),i=0;i"u"?"undefined":Ke(OffscreenCanvas))!=="undefined"?t=new OffscreenCanvas(r,e):(t=document.createElement("canvas"),t.width=r,t.height=e),t};[hy,Gr,Zr,of,Pt,sa,br,dt,Ha,by].forEach(function(r){we(De,r)});var cS=[{name:"null",impl:ry},{name:"base",impl:vy},{name:"canvas",impl:fS}],dS=[{type:"layout",extensions:bC},{type:"renderer",extensions:cS}],Ey={},xy={};function Cy(r,e,t){var a=t,n=function(T){Ae("Can not register `"+e+"` for `"+r+"` since `"+T+"` already exists in the prototype and can not be overridden")};if(r==="core"){if(Oa.prototype[e])return n(e);Oa.prototype[e]=t}else if(r==="collection"){if(er.prototype[e])return n(e);er.prototype[e]=t}else if(r==="layout"){for(var i=function(T){this.options=T,t.call(this,T),Te(this._private)||(this._private={}),this._private.cy=T.cy,this._private.listeners=[],this.createEmitter()},s=i.prototype=Object.create(t.prototype),o=[],l=0;ld))return!1;var m=v.get(s),p=v.get(o);if(m&&p)return m==o&&p==s;var g=-1,y=!0,b=l&n?new r:void 0;for(v.set(s,o),v.set(o,s);++g-1}return Eo=e,Eo}var xo,Gd;function CT(){if(Gd)return xo;Gd=1;function r(e,t,a){for(var n=-1,i=e==null?0:e.length;++n=s){var g=u?null:n(l);if(g)return i(g);h=!1,c=a,p=new r}else p=u?[]:m;e:for(;++v1?d.setNode(h,v):d.setNode(h)}),this},n.prototype.setNode=function(f,v){return r.has(this._nodes,f)?(arguments.length>1&&(this._nodes[f]=v),this):(this._nodes[f]=arguments.length>1?v:this._defaultNodeLabelFn(f),this._isCompound&&(this._parent[f]=t,this._children[f]={},this._children[t][f]=!0),this._in[f]={},this._preds[f]={},this._out[f]={},this._sucs[f]={},++this._nodeCount,this)},n.prototype.node=function(f){return this._nodes[f]},n.prototype.hasNode=function(f){return r.has(this._nodes,f)},n.prototype.removeNode=function(f){var v=this;if(r.has(this._nodes,f)){var c=function(d){v.removeEdge(v._edgeObjs[d])};delete this._nodes[f],this._isCompound&&(this._removeFromParentsChildList(f),delete this._parent[f],r.each(this.children(f),function(d){v.setParent(d)}),delete this._children[f]),r.each(r.keys(this._in[f]),c),delete this._in[f],delete this._preds[f],r.each(r.keys(this._out[f]),c),delete this._out[f],delete this._sucs[f],--this._nodeCount}return this},n.prototype.setParent=function(f,v){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(r.isUndefined(v))v=t;else{v+="";for(var c=v;!r.isUndefined(c);c=this.parent(c))if(c===f)throw new Error("Setting "+v+" as parent of "+f+" would create a cycle");this.setNode(v)}return this.setNode(f),this._removeFromParentsChildList(f),this._parent[f]=v,this._children[v][f]=!0,this},n.prototype._removeFromParentsChildList=function(f){delete this._children[this._parent[f]][f]},n.prototype.parent=function(f){if(this._isCompound){var v=this._parent[f];if(v!==t)return v}},n.prototype.children=function(f){if(r.isUndefined(f)&&(f=t),this._isCompound){var v=this._children[f];if(v)return r.keys(v)}else{if(f===t)return this.nodes();if(this.hasNode(f))return[]}},n.prototype.predecessors=function(f){var v=this._preds[f];if(v)return r.keys(v)},n.prototype.successors=function(f){var v=this._sucs[f];if(v)return r.keys(v)},n.prototype.neighbors=function(f){var v=this.predecessors(f);if(v)return r.union(v,this.successors(f))},n.prototype.isLeaf=function(f){var v;return this.isDirected()?v=this.successors(f):v=this.neighbors(f),v.length===0},n.prototype.filterNodes=function(f){var v=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});v.setGraph(this.graph());var c=this;r.each(this._nodes,function(m,p){f(p)&&v.setNode(p,m)}),r.each(this._edgeObjs,function(m){v.hasNode(m.v)&&v.hasNode(m.w)&&v.setEdge(m,c.edge(m))});var d={};function h(m){var p=c.parent(m);return p===void 0||v.hasNode(p)?(d[m]=p,p):p in d?d[p]:h(p)}return this._isCompound&&r.each(v.nodes(),function(m){v.setParent(m,h(m))}),v},n.prototype.setDefaultEdgeLabel=function(f){return r.isFunction(f)||(f=r.constant(f)),this._defaultEdgeLabelFn=f,this},n.prototype.edgeCount=function(){return this._edgeCount},n.prototype.edges=function(){return r.values(this._edgeObjs)},n.prototype.setPath=function(f,v){var c=this,d=arguments;return r.reduce(f,function(h,m){return d.length>1?c.setEdge(h,m,v):c.setEdge(h,m),m}),this},n.prototype.setEdge=function(){var f,v,c,d,h=!1,m=arguments[0];typeof m=="object"&&m!==null&&"v"in m?(f=m.v,v=m.w,c=m.name,arguments.length===2&&(d=arguments[1],h=!0)):(f=m,v=arguments[1],c=arguments[3],arguments.length>2&&(d=arguments[2],h=!0)),f=""+f,v=""+v,r.isUndefined(c)||(c=""+c);var p=o(this._isDirected,f,v,c);if(r.has(this._edgeLabels,p))return h&&(this._edgeLabels[p]=d),this;if(!r.isUndefined(c)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(f),this.setNode(v),this._edgeLabels[p]=h?d:this._defaultEdgeLabelFn(f,v,c);var g=l(this._isDirected,f,v,c);return f=g.v,v=g.w,Object.freeze(g),this._edgeObjs[p]=g,i(this._preds[v],f),i(this._sucs[f],v),this._in[v][p]=g,this._out[f][p]=g,this._edgeCount++,this},n.prototype.edge=function(f,v,c){var d=arguments.length===1?u(this._isDirected,arguments[0]):o(this._isDirected,f,v,c);return this._edgeLabels[d]},n.prototype.hasEdge=function(f,v,c){var d=arguments.length===1?u(this._isDirected,arguments[0]):o(this._isDirected,f,v,c);return r.has(this._edgeLabels,d)},n.prototype.removeEdge=function(f,v,c){var d=arguments.length===1?u(this._isDirected,arguments[0]):o(this._isDirected,f,v,c),h=this._edgeObjs[d];return h&&(f=h.v,v=h.w,delete this._edgeLabels[d],delete this._edgeObjs[d],s(this._preds[v],f),s(this._sucs[f],v),delete this._in[v][d],delete this._out[f][d],this._edgeCount--),this},n.prototype.inEdges=function(f,v){var c=this._in[f];if(c){var d=r.values(c);return v?r.filter(d,function(h){return h.v===v}):d}},n.prototype.outEdges=function(f,v){var c=this._out[f];if(c){var d=r.values(c);return v?r.filter(d,function(h){return h.w===v}):d}},n.prototype.nodeEdges=function(f,v){var c=this.inEdges(f,v);if(c)return c.concat(this.outEdges(f,v))};function i(f,v){f[v]?f[v]++:f[v]=1}function s(f,v){--f[v]||delete f[v]}function o(f,v,c,d){var h=""+v,m=""+c;if(!f&&h>m){var p=h;h=m,m=p}return h+a+m+a+(r.isUndefined(d)?e:d)}function l(f,v,c,d){var h=""+v,m=""+c;if(!f&&h>m){var p=h;h=m,m=p}var g={v:h,w:m};return d&&(g.name=d),g}function u(f,v){return o(f,v.v,v.w,v.name)}return Io}var Bo,Qd;function PT(){return Qd||(Qd=1,Bo="2.1.8"),Bo}var Lo,Jd;function AT(){return Jd||(Jd=1,Lo={Graph:pf(),version:PT()}),Lo}var Mo,eh;function IT(){if(eh)return Mo;eh=1;var r=Sr(),e=pf();Mo={write:t,read:i};function t(s){var o={options:{directed:s.isDirected(),multigraph:s.isMultigraph(),compound:s.isCompound()},nodes:a(s),edges:n(s)};return r.isUndefined(s.graph())||(o.value=r.clone(s.graph())),o}function a(s){return r.map(s.nodes(),function(o){var l=s.node(o),u=s.parent(o),f={v:o};return r.isUndefined(l)||(f.value=l),r.isUndefined(u)||(f.parent=u),f})}function n(s){return r.map(s.edges(),function(o){var l=s.edge(o),u={v:o.v,w:o.w};return r.isUndefined(o.name)||(u.name=o.name),r.isUndefined(l)||(u.value=l),u})}function i(s){var o=new e(s.options).setGraph(s.value);return r.each(s.nodes,function(l){o.setNode(l.v,l.value),l.parent&&o.setParent(l.v,l.parent)}),r.each(s.edges,function(l){o.setEdge({v:l.v,w:l.w,name:l.name},l.value)}),o}return Mo}var _o,rh;function BT(){if(rh)return _o;rh=1;var r=Sr();_o=e;function e(t){var a={},n=[],i;function s(o){r.has(a,o)||(a[o]=!0,i.push(o),r.each(t.successors(o),s),r.each(t.predecessors(o),s))}return r.each(t.nodes(),function(o){i=[],s(o),i.length&&n.push(i)}),n}return _o}var Oo,th;function om(){if(th)return Oo;th=1;var r=Sr();Oo=e;function e(){this._arr=[],this._keyIndices={}}return e.prototype.size=function(){return this._arr.length},e.prototype.keys=function(){return this._arr.map(function(t){return t.key})},e.prototype.has=function(t){return r.has(this._keyIndices,t)},e.prototype.priority=function(t){var a=this._keyIndices[t];if(a!==void 0)return this._arr[a].priority},e.prototype.min=function(){if(this.size()===0)throw new Error("Queue underflow");return this._arr[0].key},e.prototype.add=function(t,a){var n=this._keyIndices;if(t=String(t),!r.has(n,t)){var i=this._arr,s=i.length;return n[t]=s,i.push({key:t,priority:a}),this._decrease(s),!0}return!1},e.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var t=this._arr.pop();return delete this._keyIndices[t.key],this._heapify(0),t.key},e.prototype.decrease=function(t,a){var n=this._keyIndices[t];if(a>this._arr[n].priority)throw new Error("New priority is greater than current priority. Key: "+t+" Old: "+this._arr[n].priority+" New: "+a);this._arr[n].priority=a,this._decrease(n)},e.prototype._heapify=function(t){var a=this._arr,n=2*t,i=n+1,s=t;n>1,!(a[i].priority0&&(v=f.removeMin(),c=u[v],c.distance!==Number.POSITIVE_INFINITY);)l(v).forEach(d);return u}return qo}var No,nh;function LT(){if(nh)return No;nh=1;var r=um(),e=Sr();No=t;function t(a,n,i){return e.transform(a.nodes(),function(s,o){s[o]=r(a,o,n,i)},{})}return No}var Fo,ih;function lm(){if(ih)return Fo;ih=1;var r=Sr();Fo=e;function e(t){var a=0,n=[],i={},s=[];function o(l){var u=i[l]={onStack:!0,lowlink:a,index:a++};if(n.push(l),t.successors(l).forEach(function(c){r.has(i,c)?i[c].onStack&&(u.lowlink=Math.min(u.lowlink,i[c].index)):(o(c),u.lowlink=Math.min(u.lowlink,i[c].lowlink))}),u.lowlink===u.index){var f=[],v;do v=n.pop(),i[v].onStack=!1,f.push(v);while(l!==v);s.push(f)}}return t.nodes().forEach(function(l){r.has(i,l)||o(l)}),s}return Fo}var zo,sh;function MT(){if(sh)return zo;sh=1;var r=Sr(),e=lm();zo=t;function t(a){return r.filter(e(a),function(n){return n.length>1||n.length===1&&a.hasEdge(n[0],n[0])})}return zo}var Vo,oh;function _T(){if(oh)return Vo;oh=1;var r=Sr();Vo=t;var e=r.constant(1);function t(n,i,s){return a(n,i||e,s||function(o){return n.outEdges(o)})}function a(n,i,s){var o={},l=n.nodes();return l.forEach(function(u){o[u]={},o[u][u]={distance:0},l.forEach(function(f){u!==f&&(o[u][f]={distance:Number.POSITIVE_INFINITY})}),s(u).forEach(function(f){var v=f.v===u?f.w:f.v,c=i(f);o[u][v]={distance:c,predecessor:u}})}),l.forEach(function(u){var f=o[u];l.forEach(function(v){var c=o[v];l.forEach(function(d){var h=c[u],m=f[d],p=c[d],g=h.distance+m.distance;g0;){if(u=l.removeMin(),r.has(o,u))s.setEdge(u,o[u]);else{if(v)throw new Error("Input graph is not connected: "+n);v=!0}n.nodeEdges(u).forEach(f)}return s}return Wo}var Yo,hh;function zT(){return hh||(hh=1,Yo={components:BT(),dijkstra:um(),dijkstraAll:LT(),findCycles:MT(),floydWarshall:_T(),isAcyclic:OT(),postorder:qT(),preorder:NT(),prim:FT(),tarjan:lm(),topsort:fm()}),Yo}var Xo,gh;function VT(){if(gh)return Xo;gh=1;var r=AT();return Xo={Graph:r.Graph,json:IT(),alg:zT(),version:r.version},Xo}var Zo,ph;function Lr(){if(ph)return Zo;ph=1;var r;if(typeof Ml=="function")try{r=VT()}catch{}return r||(r=window.graphlib),Zo=r,Zo}var jo,yh;function GT(){if(yh)return jo;yh=1;var r=Vy(),e=1,t=4;function a(n){return r(n,e|t)}return jo=a,jo}var Qo,mh;function ti(){if(mh)return Qo;mh=1;var r=In,e=jr(),t=_g,a=Yr;function n(i,s,o){if(!a(o))return!1;var l=typeof s;return(l=="number"?e(o)&&t(s,o.length):l=="string"&&s in o)?r(o[s],i):!1}return Qo=n,Qo}var Jo,bh;function $T(){if(bh)return Jo;bh=1;var r=ri(),e=In,t=ti(),a=At(),n=Object.prototype,i=n.hasOwnProperty,s=r(function(o,l){o=Object(o);var u=-1,f=l.length,v=f>2?l[2]:void 0;for(v&&t(l[0],l[1],v)&&(f=1);++u-1?l[u?i[f]:f]:void 0}}return eu=a,eu}var ru,Eh;function HT(){if(Eh)return ru;Eh=1;var r=/\s/;function e(t){for(var a=t.length;a--&&r.test(t.charAt(a)););return a}return ru=e,ru}var tu,xh;function KT(){if(xh)return tu;xh=1;var r=HT(),e=/^\s+/;function t(a){return a&&a.slice(0,r(a)+1).replace(e,"")}return tu=t,tu}var au,Ch;function WT(){if(Ch)return au;Ch=1;var r=KT(),e=Yr,t=_l,a=NaN,n=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,s=/^0o[0-7]+$/i,o=parseInt;function l(u){if(typeof u=="number")return u;if(t(u))return a;if(e(u)){var f=typeof u.valueOf=="function"?u.valueOf():u;u=e(f)?f+"":f}if(typeof u!="string")return u===0?u:+u;u=r(u);var v=i.test(u);return v||s.test(u)?o(u.slice(2),v?2:8):n.test(u)?a:+u}return au=l,au}var nu,Sh;function cm(){if(Sh)return nu;Sh=1;var r=WT(),e=1/0,t=17976931348623157e292;function a(n){if(!n)return n===0?n:0;if(n=r(n),n===e||n===-e){var i=n<0?-1:1;return i*t}return n===n?n:0}return nu=a,nu}var iu,Th;function YT(){if(Th)return iu;Th=1;var r=cm();function e(t){var a=r(t),n=a%1;return a===a?n?a-n:a:0}return iu=e,iu}var su,kh;function XT(){if(kh)return su;kh=1;var r=nm(),e=Qr(),t=YT(),a=Math.max;function n(i,s,o){var l=i==null?0:i.length;if(!l)return-1;var u=o==null?0:t(o);return u<0&&(u=a(l+u,0)),r(i,e(s,3),u)}return su=n,su}var ou,Dh;function ZT(){if(Dh)return ou;Dh=1;var r=UT(),e=XT(),t=r(e);return ou=t,ou}var uu,Rh;function jT(){if(Rh)return uu;Rh=1;var r=df(),e=Gy(),t=At();function a(n,i){return n==null?n:r(n,e(i),t)}return uu=a,uu}var lu,Ph;function QT(){if(Ph)return lu;Ph=1;function r(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}return lu=r,lu}var fu,Ah;function JT(){if(Ah)return fu;Ah=1;var r=Al,e=hf(),t=Qr();function a(n,i){var s={};return i=t(i,3),e(n,function(o,l,u){r(s,l,i(o,l,u))}),s}return fu=a,fu}var vu,Ih;function yf(){if(Ih)return vu;Ih=1;var r=_l;function e(t,a,n){for(var i=-1,s=t.length;++it}return cu=r,cu}var du,Lh;function r2(){if(Lh)return du;Lh=1;var r=yf(),e=e2(),t=Zt;function a(n){return n&&n.length?r(n,t,e):void 0}return du=a,du}var hu,Mh;function dm(){if(Mh)return hu;Mh=1;var r=Al,e=In;function t(a,n,i){(i!==void 0&&!e(a[n],i)||i===void 0&&!(n in a))&&r(a,n,i)}return hu=t,hu}var gu,_h;function t2(){if(_h)return gu;_h=1;var r=Ol,e=Jn(),t=Xt,a="[object Object]",n=Function.prototype,i=Object.prototype,s=n.toString,o=i.hasOwnProperty,l=s.call(Object);function u(f){if(!t(f)||r(f)!=a)return!1;var v=e(f);if(v===null)return!0;var c=o.call(v,"constructor")&&v.constructor;return typeof c=="function"&&c instanceof c&&s.call(c)==l}return gu=u,gu}var pu,Oh;function hm(){if(Oh)return pu;Oh=1;function r(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}return pu=r,pu}var yu,qh;function a2(){if(qh)return yu;qh=1;var r=Ka(),e=At();function t(a){return r(a,e(a))}return yu=t,yu}var mu,Nh;function n2(){if(Nh)return mu;Nh=1;var r=dm(),e=Py(),t=Ny(),a=Ay(),n=zy(),i=Il,s=yr,o=im(),l=oa(),u=Pn,f=Yr,v=t2(),c=Wa(),d=hm(),h=a2();function m(p,g,y,b,w,x,C){var E=d(p,y),T=d(g,y),S=C.get(T);if(S){r(p,y,S);return}var D=x?x(E,T,y+"",p,g,C):void 0,k=D===void 0;if(k){var R=s(T),I=!R&&l(T),P=!R&&!I&&c(T);D=T,R||I||P?s(E)?D=E:o(E)?D=a(E):I?(k=!1,D=e(T,!0)):P?(k=!1,D=t(T,!0)):D=[]:v(T)||i(T)?(D=E,i(E)?D=h(E):(!f(E)||u(E))&&(D=n(T))):k=!1}k&&(C.set(T,D),w(D,T,b,x,C),C.delete(T)),r(p,y,D)}return mu=m,mu}var bu,Fh;function i2(){if(Fh)return bu;Fh=1;var r=Zn(),e=dm(),t=df(),a=n2(),n=Yr,i=At(),s=hm();function o(l,u,f,v,c){l!==u&&t(u,function(d,h){if(c||(c=new r),n(d))a(l,u,h,f,o,v,c);else{var m=v?v(s(l,h),d,h+"",l,u,c):void 0;m===void 0&&(m=d),e(l,h,m)}},i)}return bu=o,bu}var wu,zh;function s2(){if(zh)return wu;zh=1;var r=ri(),e=ti();function t(a){return r(function(n,i){var s=-1,o=i.length,l=o>1?i[o-1]:void 0,u=o>2?i[2]:void 0;for(l=a.length>3&&typeof l=="function"?(o--,l):void 0,u&&e(i[0],i[1],u)&&(l=o<3?void 0:l,o=1),n=Object(n);++sa||o&&l&&f&&!u&&!v||i&&l&&f||!n&&f||!s)return 1;if(!i&&!o&&!v&&t=u)return f;var v=n[i];return f*(v=="desc"?-1:1)}}return t.index-a.index}return Iu=e,Iu}var Bu,Qh;function y2(){if(Qh)return Bu;Qh=1;var r=Ll,e=Bl,t=Qr(),a=rm(),n=h2(),i=jn(),s=p2(),o=Zt,l=yr;function u(f,v,c){v.length?v=r(v,function(m){return l(m)?function(p){return e(p,m.length===1?m[0]:m)}:m}):v=[o];var d=-1;v=r(v,i(t));var h=a(f,function(m,p,g){var y=r(v,function(b){return b(m)});return{criteria:y,index:++d,value:m}});return n(h,function(m,p){return s(m,p,c)})}return Bu=u,Bu}var Lu,Jh;function m2(){if(Jh)return Lu;Jh=1;var r=Fg,e=y2(),t=ri(),a=ti(),n=t(function(i,s){if(i==null)return[];var o=s.length;return o>1&&a(i,s[0],s[1])?s=[]:o>2&&a(s[0],s[1],s[2])&&(s=[s[0]]),e(i,r(s,1),[])});return Lu=n,Lu}var Mu,eg;function b2(){if(eg)return Mu;eg=1;var r=Mm,e=0;function t(a){var n=++e;return r(a)+n}return Mu=t,Mu}var _u,rg;function w2(){if(rg)return _u;rg=1;function r(e,t,a){for(var n=-1,i=e.length,s=t.length,o={};++n0;--p)if(m=f[p].dequeue(),m){c=c.concat(s(u,f,v,m,!0));break}}}return c}function s(u,f,v,c,d){var h=d?[]:void 0;return r.forEach(u.inEdges(c.v),function(m){var p=u.edge(m),g=u.node(m.v);d&&h.push({v:m.v,w:m.w}),g.out-=p,l(f,v,g)}),r.forEach(u.outEdges(c.v),function(m){var p=u.edge(m),g=m.w,y=u.node(g);y.in-=p,l(f,v,y)}),u.removeNode(c.v),h}function o(u,f){var v=new e,c=0,d=0;r.forEach(u.nodes(),function(p){v.setNode(p,{v:p,in:0,out:0})}),r.forEach(u.edges(),function(p){var g=v.edge(p.v,p.w)||0,y=f(p),b=g+y;v.setEdge(p.v,p.w,b),d=Math.max(d,v.node(p.v).out+=y),c=Math.max(c,v.node(p.w).in+=y)});var h=r.range(d+c+3).map(function(){return new t}),m=c+1;return r.forEach(v.nodes(),function(p){l(h,m,v.node(p))}),{graph:v,buckets:h,zeroIdx:m}}function l(u,f,v){v.out?v.in?u[v.out-v.in+f].enqueue(v):u[u.length-1].enqueue(v):u[0].enqueue(v)}return Fu}var zu,sg;function S2(){if(sg)return zu;sg=1;var r=Ne(),e=C2();zu={run:t,undo:n};function t(i){var s=i.graph().acyclicer==="greedy"?e(i,o(i)):a(i);r.forEach(s,function(l){var u=i.edge(l);i.removeEdge(l),u.forwardName=l.name,u.reversed=!0,i.setEdge(l.w,l.v,u,r.uniqueId("rev"))});function o(l){return function(u){return l.edge(u).weight}}}function a(i){var s=[],o={},l={};function u(f){r.has(l,f)||(l[f]=!0,o[f]=!0,r.forEach(i.outEdges(f),function(v){r.has(o,v.w)?s.push(v):u(v.w)}),delete o[f])}return r.forEach(i.nodes(),u),s}function n(i){r.forEach(i.edges(),function(s){var o=i.edge(s);if(o.reversed){i.removeEdge(s);var l=o.forwardName;delete o.reversed,delete o.forwardName,i.setEdge(s.w,s.v,o,l)}})}return zu}var Vu,og;function gr(){if(og)return Vu;og=1;var r=Ne(),e=Lr().Graph;Vu={addDummyNode:t,simplify:a,asNonCompoundGraph:n,successorWeights:i,predecessorWeights:s,intersectRect:o,buildLayerMatrix:l,normalizeRanks:u,removeEmptyRanks:f,addBorderNode:v,maxRank:c,partition:d,time:h,notime:m};function t(p,g,y,b){var w;do w=r.uniqueId(b);while(p.hasNode(w));return y.dummy=g,p.setNode(w,y),w}function a(p){var g=new e().setGraph(p.graph());return r.forEach(p.nodes(),function(y){g.setNode(y,p.node(y))}),r.forEach(p.edges(),function(y){var b=g.edge(y.v,y.w)||{weight:0,minlen:1},w=p.edge(y);g.setEdge(y.v,y.w,{weight:b.weight+w.weight,minlen:Math.max(b.minlen,w.minlen)})}),g}function n(p){var g=new e({multigraph:p.isMultigraph()}).setGraph(p.graph());return r.forEach(p.nodes(),function(y){p.children(y).length||g.setNode(y,p.node(y))}),r.forEach(p.edges(),function(y){g.setEdge(y,p.edge(y))}),g}function i(p){var g=r.map(p.nodes(),function(y){var b={};return r.forEach(p.outEdges(y),function(w){b[w.w]=(b[w.w]||0)+p.edge(w).weight}),b});return r.zipObject(p.nodes(),g)}function s(p){var g=r.map(p.nodes(),function(y){var b={};return r.forEach(p.inEdges(y),function(w){b[w.v]=(b[w.v]||0)+p.edge(w).weight}),b});return r.zipObject(p.nodes(),g)}function o(p,g){var y=p.x,b=p.y,w=g.x-y,x=g.y-b,C=p.width/2,E=p.height/2;if(!w&&!x)throw new Error("Not possible to find intersection inside of the rectangle");var T,S;return Math.abs(x)*C>Math.abs(w)*E?(x<0&&(E=-E),T=E*w/x,S=E):(w<0&&(C=-C),T=C,S=C*x/w),{x:y+T,y:b+S}}function l(p){var g=r.map(r.range(c(p)+1),function(){return[]});return r.forEach(p.nodes(),function(y){var b=p.node(y),w=b.rank;r.isUndefined(w)||(g[w][b.order]=y)}),g}function u(p){var g=r.min(r.map(p.nodes(),function(y){return p.node(y).rank}));r.forEach(p.nodes(),function(y){var b=p.node(y);r.has(b,"rank")&&(b.rank-=g)})}function f(p){var g=r.min(r.map(p.nodes(),function(x){return p.node(x).rank})),y=[];r.forEach(p.nodes(),function(x){var C=p.node(x).rank-g;y[C]||(y[C]=[]),y[C].push(x)});var b=0,w=p.graph().nodeRankFactor;r.forEach(y,function(x,C){r.isUndefined(x)&&C%w!==0?--b:b&&r.forEach(x,function(E){p.node(E).rank+=b})})}function v(p,g,y,b){var w={width:0,height:0};return arguments.length>=4&&(w.rank=y,w.order=b),t(p,"border",w,g)}function c(p){return r.max(r.map(p.nodes(),function(g){var y=p.node(g).rank;if(!r.isUndefined(y))return y}))}function d(p,g){var y={lhs:[],rhs:[]};return r.forEach(p,function(b){g(b)?y.lhs.push(b):y.rhs.push(b)}),y}function h(p,g){var y=r.now();try{return g()}finally{console.log(p+" time: "+(r.now()-y)+"ms")}}function m(p,g){return g()}return Vu}var Gu,ug;function T2(){if(ug)return Gu;ug=1;var r=Ne(),e=gr();Gu={run:t,undo:n};function t(i){i.graph().dummyChains=[],r.forEach(i.edges(),function(s){a(i,s)})}function a(i,s){var o=s.v,l=i.node(o).rank,u=s.w,f=i.node(u).rank,v=s.name,c=i.edge(s),d=c.labelRank;if(f!==l+1){i.removeEdge(s);var h,m,p;for(p=0,++l;lS.lim&&(D=S,k=!0);var R=r.filter(w.edges(),function(I){return k===y(b,b.node(I.v),D)&&k!==y(b,b.node(I.w),D)});return r.minBy(R,function(I){return t(w,I)})}function m(b,w,x,C){var E=x.v,T=x.w;b.removeEdge(E,T),b.setEdge(C.v,C.w,{}),v(b),l(b,w),p(b,w)}function p(b,w){var x=r.find(b.nodes(),function(E){return!w.node(E).parent}),C=n(b,x);C=C.slice(1),r.forEach(C,function(E){var T=b.node(E).parent,S=w.edge(E,T),D=!1;S||(S=w.edge(T,E),D=!0),w.node(E).rank=w.node(T).rank+(D?S.minlen:-S.minlen)})}function g(b,w,x){return b.hasEdge(w,x)}function y(b,w,x){return x.low<=w.lim&&w.lim<=x.lim}return Hu}var Ku,cg;function D2(){if(cg)return Ku;cg=1;var r=Rn(),e=r.longestPath,t=pm(),a=k2();Ku=n;function n(l){switch(l.graph().ranker){case"network-simplex":o(l);break;case"tight-tree":s(l);break;case"longest-path":i(l);break;default:o(l)}}var i=e;function s(l){e(l),t(l)}function o(l){a(l)}return Ku}var Wu,dg;function R2(){if(dg)return Wu;dg=1;var r=Ne();Wu=e;function e(n){var i=a(n);r.forEach(n.graph().dummyChains,function(s){for(var o=n.node(s),l=o.edgeObj,u=t(n,i,l.v,l.w),f=u.path,v=u.lca,c=0,d=f[c],h=!0;s!==l.w;){if(o=n.node(s),h){for(;(d=f[c])!==v&&n.node(d).maxRankf||v>i[c].lim));for(d=c,c=o;(c=n.parent(c))!==d;)u.push(c);return{path:l.concat(u.reverse()),lca:d}}function a(n){var i={},s=0;function o(l){var u=s;r.forEach(n.children(l),o),i[l]={low:u,lim:s++}}return r.forEach(n.children(),o),i}return Wu}var Yu,hg;function P2(){if(hg)return Yu;hg=1;var r=Ne(),e=gr();Yu={run:t,cleanup:s};function t(o){var l=e.addDummyNode(o,"root",{},"_root"),u=n(o),f=r.max(r.values(u))-1,v=2*f+1;o.graph().nestingRoot=l,r.forEach(o.edges(),function(d){o.edge(d).minlen*=v});var c=i(o)+1;r.forEach(o.children(),function(d){a(o,l,v,c,f,u,d)}),o.graph().nodeRankFactor=v}function a(o,l,u,f,v,c,d){var h=o.children(d);if(!h.length){d!==l&&o.setEdge(l,d,{weight:0,minlen:u});return}var m=e.addBorderNode(o,"_bt"),p=e.addBorderNode(o,"_bb"),g=o.node(d);o.setParent(m,d),g.borderTop=m,o.setParent(p,d),g.borderBottom=p,r.forEach(h,function(y){a(o,l,u,f,v,c,y);var b=o.node(y),w=b.borderTop?b.borderTop:y,x=b.borderBottom?b.borderBottom:y,C=b.borderTop?f:2*f,E=w!==x?1:v-c[d]+1;o.setEdge(m,w,{weight:C,minlen:E,nestingEdge:!0}),o.setEdge(x,p,{weight:C,minlen:E,nestingEdge:!0})}),o.parent(d)||o.setEdge(l,m,{weight:0,minlen:v+c[d]})}function n(o){var l={};function u(f,v){var c=o.children(f);c&&c.length&&r.forEach(c,function(d){u(d,v+1)}),l[f]=v}return r.forEach(o.children(),function(f){u(f,1)}),l}function i(o){return r.reduce(o.edges(),function(l,u){return l+o.edge(u).weight},0)}function s(o){var l=o.graph();o.removeNode(l.nestingRoot),delete l.nestingRoot,r.forEach(o.edges(),function(u){var f=o.edge(u);f.nestingEdge&&o.removeEdge(u)})}return Yu}var Xu,gg;function A2(){if(gg)return Xu;gg=1;var r=Ne(),e=gr();Xu=t;function t(n){function i(s){var o=n.children(s),l=n.node(s);if(o.length&&r.forEach(o,i),r.has(l,"minRank")){l.borderLeft=[],l.borderRight=[];for(var u=l.minRank,f=l.maxRank+1;u0;)d%2&&(h+=f[d+1]),d=d-1>>1,f[d]+=c.weight;v+=c.weight*h})),v}return Qu}var Ju,bg;function M2(){if(bg)return Ju;bg=1;var r=Ne();Ju=e;function e(t,a){return r.map(a,function(n){var i=t.inEdges(n);if(i.length){var s=r.reduce(i,function(o,l){var u=t.edge(l),f=t.node(l.v);return{sum:o.sum+u.weight*f.order,weight:o.weight+u.weight}},{sum:0,weight:0});return{v:n,barycenter:s.sum/s.weight,weight:s.weight}}else return{v:n}})}return Ju}var el,wg;function _2(){if(wg)return el;wg=1;var r=Ne();el=e;function e(n,i){var s={};r.forEach(n,function(l,u){var f=s[l.v]={indegree:0,in:[],out:[],vs:[l.v],i:u};r.isUndefined(l.barycenter)||(f.barycenter=l.barycenter,f.weight=l.weight)}),r.forEach(i.edges(),function(l){var u=s[l.v],f=s[l.w];!r.isUndefined(u)&&!r.isUndefined(f)&&(f.indegree++,u.out.push(s[l.w]))});var o=r.filter(s,function(l){return!l.indegree});return t(o)}function t(n){var i=[];function s(u){return function(f){f.merged||(r.isUndefined(f.barycenter)||r.isUndefined(u.barycenter)||f.barycenter>=u.barycenter)&&a(u,f)}}function o(u){return function(f){f.in.push(u),--f.indegree===0&&n.push(f)}}for(;n.length;){var l=n.pop();i.push(l),r.forEach(l.in.reverse(),s(l)),r.forEach(l.out,o(l))}return r.map(r.filter(i,function(u){return!u.merged}),function(u){return r.pick(u,["vs","i","barycenter","weight"])})}function a(n,i){var s=0,o=0;n.weight&&(s+=n.barycenter*n.weight,o+=n.weight),i.weight&&(s+=i.barycenter*i.weight,o+=i.weight),n.vs=i.vs.concat(n.vs),n.barycenter=s/o,n.weight=o,n.i=Math.min(i.i,n.i),i.merged=!0}return el}var rl,Eg;function O2(){if(Eg)return rl;Eg=1;var r=Ne(),e=gr();rl=t;function t(i,s){var o=e.partition(i,function(m){return r.has(m,"barycenter")}),l=o.lhs,u=r.sortBy(o.rhs,function(m){return-m.i}),f=[],v=0,c=0,d=0;l.sort(n(!!s)),d=a(f,u,d),r.forEach(l,function(m){d+=m.vs.length,f.push(m.vs),v+=m.barycenter*m.weight,c+=m.weight,d=a(f,u,d)});var h={vs:r.flatten(f,!0)};return c&&(h.barycenter=v/c,h.weight=c),h}function a(i,s,o){for(var l;s.length&&(l=r.last(s)).i<=o;)s.pop(),i.push(l.vs),o++;return o}function n(i){return function(s,o){return s.barycentero.barycenter?1:i?o.i-s.i:s.i-o.i}}return rl}var tl,xg;function q2(){if(xg)return tl;xg=1;var r=Ne(),e=M2(),t=_2(),a=O2();tl=n;function n(o,l,u,f){var v=o.children(l),c=o.node(l),d=c?c.borderLeft:void 0,h=c?c.borderRight:void 0,m={};d&&(v=r.filter(v,function(x){return x!==d&&x!==h}));var p=e(o,v);r.forEach(p,function(x){if(o.children(x.v).length){var C=n(o,x.v,u,f);m[x.v]=C,r.has(C,"barycenter")&&s(x,C)}});var g=t(p,u);i(g,m);var y=a(g,f);if(d&&(y.vs=r.flatten([d,y.vs,h],!0),o.predecessors(d).length)){var b=o.node(o.predecessors(d)[0]),w=o.node(o.predecessors(h)[0]);r.has(y,"barycenter")||(y.barycenter=0,y.weight=0),y.barycenter=(y.barycenter*y.weight+b.order+w.order)/(y.weight+2),y.weight+=2}return y}function i(o,l){r.forEach(o,function(u){u.vs=r.flatten(u.vs.map(function(f){return l[f]?l[f].vs:f}),!0)})}function s(o,l){r.isUndefined(o.barycenter)?(o.barycenter=l.barycenter,o.weight=l.weight):(o.barycenter=(o.barycenter*o.weight+l.barycenter*l.weight)/(o.weight+l.weight),o.weight+=l.weight)}return tl}var al,Cg;function N2(){if(Cg)return al;Cg=1;var r=Ne(),e=Lr().Graph;al=t;function t(n,i,s){var o=a(n),l=new e({compound:!0}).setGraph({root:o}).setDefaultNodeLabel(function(u){return n.node(u)});return r.forEach(n.nodes(),function(u){var f=n.node(u),v=n.parent(u);(f.rank===i||f.minRank<=i&&i<=f.maxRank)&&(l.setNode(u),l.setParent(u,v||o),r.forEach(n[s](u),function(c){var d=c.v===u?c.w:c.v,h=l.edge(d,u),m=r.isUndefined(h)?0:h.weight;l.setEdge(d,u,{weight:n.edge(c).weight+m})}),r.has(f,"minRank")&&l.setNode(u,{borderLeft:f.borderLeft[i],borderRight:f.borderRight[i]}))}),l}function a(n){for(var i;n.hasNode(i=r.uniqueId("_root")););return i}return al}var nl,Sg;function F2(){if(Sg)return nl;Sg=1;var r=Ne();nl=e;function e(t,a,n){var i={},s;r.forEach(n,function(o){for(var l=t.parent(o),u,f;l;){if(u=t.parent(l),u?(f=i[u],i[u]=l):(f=s,s=l),f&&f!==l){a.setEdge(f,l);return}l=u}})}return nl}var il,Tg;function z2(){if(Tg)return il;Tg=1;var r=Ne(),e=B2(),t=L2(),a=q2(),n=N2(),i=F2(),s=Lr().Graph,o=gr();il=l;function l(c){var d=o.maxRank(c),h=u(c,r.range(1,d+1),"inEdges"),m=u(c,r.range(d-1,-1,-1),"outEdges"),p=e(c);v(c,p);for(var g=Number.POSITIVE_INFINITY,y,b=0,w=0;w<4;++b,++w){f(b%2?h:m,b%4>=2),p=o.buildLayerMatrix(c);var x=t(c,p);xD)&&s(b,I,k)})})}function x(C,E){var T=-1,S,D=0;return r.forEach(E,function(k,R){if(g.node(k).dummy==="border"){var I=g.predecessors(k);I.length&&(S=g.node(I[0]).order,w(E,D,R,T,S),D=R,T=S)}w(E,D,E.length,S,C.length)}),E}return r.reduce(y,x),b}function i(g,y){if(g.node(y).dummy)return r.find(g.predecessors(y),function(b){return g.node(b).dummy})}function s(g,y,b){if(y>b){var w=y;y=b,b=w}var x=g[y];x||(g[y]=x={}),x[b]=!0}function o(g,y,b){if(y>b){var w=y;y=b,b=w}return r.has(g[y],b)}function l(g,y,b,w){var x={},C={},E={};return r.forEach(y,function(T){r.forEach(T,function(S,D){x[S]=S,C[S]=S,E[S]=D})}),r.forEach(y,function(T){var S=-1;r.forEach(T,function(D){var k=w(D);if(k.length){k=r.sortBy(k,function(L){return E[L]});for(var R=(k.length-1)/2,I=Math.floor(R),P=Math.ceil(R);I<=P;++I){var B=k[I];C[D]===D&&S1?s-1:0),l=1;l{const a=ft({container:e,wheelSensitivity:.4,elements:r,layout:{name:"dagre",nodeSep:10,edgeSep:10,rankSep:80,rankDir:"TB"},style:X2});return a.on("mouseover","node",n=>{t(n.target,n.originalEvent)}),a.on("mouseout","node",()=>{t(void 0,void 0)}),()=>a.destroy()};export{J2 as i}; diff --git a/resources/frontend/_nuxt/BCrvxhm1.js b/resources/frontend/_nuxt/BCrvxhm1.js new file mode 100644 index 00000000..61b2633e --- /dev/null +++ b/resources/frontend/_nuxt/BCrvxhm1.js @@ -0,0 +1 @@ +import{E as u,I as T}from"./BefdN0MI.js";import{d as v,l as S,c as k,o as n,a as o,b as r,e as x,t as c,g as l,h as b,s as h,u as E,F as m,r as d,_ as g,B as L}from"./BqbMuE7y.js";import"./Cuqdu9nB.js";const B=t=>{var s,a;return{id:t.uuid,type:u.SENTRY,labels:[u.SENTRY,"exception"],origin:{logger:t.payload.logger,environment:t.payload.environment,release:((s=t.payload)==null?void 0:s.release)||"-"},serverName:((a=t.payload)==null?void 0:a.server_name)||"",date:t.timestamp?new Date(t.timestamp*1e3):null,payload:t.payload}},Q=()=>({normalizeSentryEvent:B}),F={class:"sentry-exception-frame__head-title"},H={key:0},M={key:0,class:"sentry-exception-frame__body"},N={class:"sentry-exception-frame__body-line-position"},$=["innerHTML"],C={key:1,class:"sentry-exception-frame__body-line sentry-exception-frame__body-line--selection"},I={class:"sentry-exception-frame__body-line-position"},O=["innerHTML"],V={class:"sentry-exception-frame__body-line-position"},Y=["innerHTML"],z=v({__name:"sentry-exception-frame",props:{frame:{},isOpen:{type:Boolean}},setup(t){const s=t,a=S(s.isOpen),i=k(()=>!!(s.frame.context_line||s.frame.post_context||s.frame.pre_context)),y=()=>{i.value&&(a.value=!a.value)};return(e,f)=>(n(),o("div",{class:h(["sentry-exception-frame",{"sentry-exception-frame--empty":!i.value}])},[r("div",{class:"sentry-exception-frame__head",onClick:y},[r("div",F,[x(c(e.frame.filename)+" ",1),e.frame.function?(n(),o("span",H," in "+c(e.frame.function)+" at line ",1)):l("",!0),x(" "+c(e.frame.lineno),1)]),e.frame.pre_context?(n(),b(E(T),{key:0,class:h(["sentry-exception-frame__head-title-dd",{"sentry-exception-frame__head-title-dd--visible":a.value}]),name:"dd"},null,8,["class"])):l("",!0)]),a.value&&i.value?(n(),o("div",M,[e.frame.pre_context?(n(!0),o(m,{key:0},d(e.frame.pre_context,(p,_)=>(n(),o("div",{key:p,class:"sentry-exception-frame__body-line"},[r("div",N,c(e.frame.lineno-(e.frame.pre_context.length-_))+". ",1),r("pre",{class:"sentry-exception-frame__body-line-content",innerHTML:p},null,8,$)]))),128)):l("",!0),e.frame.context_line?(n(),o("div",C,[r("div",I,c(e.frame.lineno)+". ",1),r("pre",{innerHTML:e.frame.context_line},null,8,O)])):l("",!0),e.frame.post_context?(n(!0),o(m,{key:2},d(e.frame.post_context,(p,_)=>(n(),o("div",{key:p,class:"sentry-exception-frame__body-line"},[r("div",V,c(e.frame.lineno+_+1)+". ",1),r("pre",{class:"sentry-exception-frame__body-line-content",innerHTML:p},null,8,Y)]))),128)):l("",!0)])):l("",!0)],2))}}),D=g(z,[["__scopeId","data-v-635c4afe"]]),R={class:"sentry-exception"},w={class:"sentry-exception__header"},P={class:"sentry-exception__title"},j=["innerHTML"],q={key:0,class:"sentry-exception__frames"},A=v({__name:"sentry-exception",props:{exception:{},maxFrames:{default:3}},setup(t){const s=t,a=k(()=>{const i=s.exception.stacktrace.frames||[];return s.maxFrames>0?i.slice(0-s.maxFrames).reverse():i.slice().reverse()});return(i,y)=>(n(),o("div",R,[L(i.$slots,"default",{},()=>[r("header",w,[r("h3",P,c(i.exception.type),1),r("pre",{class:"sentry-exception__text",innerHTML:i.exception.value},null,8,j)])],!0),a.value.length?(n(),o("div",q,[(n(!0),o(m,null,d(a.value,(e,f)=>(n(),b(D,{key:e.context_line,frame:e,"is-open":f===0},null,8,["frame","is-open"]))),128))])):l("",!0)]))}}),U=g(A,[["__scopeId","data-v-4224e050"]]);export{U as S,Q as u}; diff --git a/resources/frontend/_nuxt/BHcW0LFx.js b/resources/frontend/_nuxt/BHcW0LFx.js new file mode 100644 index 00000000..7f2372fe --- /dev/null +++ b/resources/frontend/_nuxt/BHcW0LFx.js @@ -0,0 +1 @@ +import{T as F,a as B,u as z,_ as V}from"./Cuqdu9nB.js";import{m as Y}from"./B_g6P6pq.js";import"./BefdN0MI.js";import{d as D,c as g,o as n,a as o,F as v,r as b,g as k,b as t,q as T,s as M,t as c,p as E,i as N,_ as R,f,u as p,w as u,h as w,e as m,j as L,k as U,l as q,m as j,n as J}from"./BqbMuE7y.js";import{I as X,u as G}from"./Cduf3Gc_.js";import{u as K}from"./DU45Wy3H.js";import"./BBk2F9bR.js";import{u as O,P as Q}from"./k1uqWTyJ.js";const A=i=>(E("data-v-5eef20f5"),i=i(),N(),i),W={class:"inspector-page-timeline"},Z=A(()=>t("h3",{class:"inspector-page-timeline__title"},"Timeline",-1)),ee={key:0,class:"inspector-page-timeline__segment-types"},te={class:"inspector-page-timeline__segment-type__label"},se={key:1,class:"inspector-page-timeline__segments"},ne={class:"inspector-page-timeline__segments-cells"},ae={class:"inspector-page-timeline__series-segment-label"},oe={class:"flex items-center w-full"},ie={class:"inspector-page-timeline__series-segment-start-label"},re=A(()=>t("div",{class:"inspector-page-timeline__series-segment-end"},null,-1)),le={key:2,class:"inspector-page-timeline__no-segments"},ce=A(()=>t("h3",{class:"inspector-page-timeline__no-segments-placeholder"},"No data",-1)),_e=[ce],pe=D({__name:"inspector-page-timeline",props:{payload:{}},setup(i){const y=i,d=e=>{switch(e){case"sqlite":return"orange";case"view":return"blue";case"artisan":return"purple";default:return"gray"}},$=g(()=>y.payload[0]),_=g(()=>{let{duration:e}=$.value;const a=5,s=e/a+1,S=(100/(a+1)).toFixed(2),I=[e];for(let P=0;Py.payload.filter((e=>a=>a.model===e)("segment")).filter(e=>{var a;return $.value.hash===((a=e==null?void 0:e.transaction)==null?void 0:a.hash)})),r=g(()=>[...new Set(h.value.map(e=>e.type))].map(e=>({color:d(e),type:e}))),l=g(()=>{const{duration:e}=$.value;return h.value.map(a=>{const s=Math.max(Number((a.duration*100/e).toFixed(2)),.5),S=((a.start||0)*100/e).toFixed();return{widthPercent:s,marginPercent:S,segment:a,color:d(a.type)}})});return(e,a)=>(n(),o("section",W,[Z,r.value.length>0?(n(),o("div",ee,[(n(!0),o(v,null,b(r.value,s=>(n(),o("div",{key:s.type,class:"inspector-page-timeline__segment-type"},[t("div",{class:M([s.color,"inspector-page-timeline__segment-type__color-box"])},null,2),t("span",te,c(s.type),1)]))),128))])):k("",!0),l.value.length>0?(n(),o("div",se,[t("div",ne,[(n(!0),o(v,null,b(_.value.segments,s=>(n(),o("div",{key:s,class:"inspector-page-timeline__segments-cell"},c(s)+" ms ",1))),128))]),t("div",{class:"inspector-page-timeline__series",style:T({"background-size":`${_.value.widthPercent}% 20%`})},[(n(!0),o(v,null,b(l.value,s=>(n(),o("div",{key:`${s.segment.label} - ${s.segment.duration}`,class:"inspector-page-timeline__series-segment"},[t("div",ae,c(s.segment.label)+" - "+c(s.segment.duration)+" ms ",1),t("div",oe,[t("div",{style:T({width:s.marginPercent+"%"}),class:"inspector-page-timeline__series-segment-start"},[t("span",ie,c(s.segment.start)+" ms",1)],4),t("div",{class:M(["inspector-page-timeline__series-segment-time",[s.color]]),style:T({width:s.widthPercent+"%"})},null,6),re])]))),128))],4)])):k("",!0),l.value.length===0?(n(),o("div",le,_e)):k("",!0)]))}}),de=R(pe,[["__scopeId","data-v-5eef20f5"]]),H=i=>(E("data-v-7f787ab2"),i=i(),N(),i),ue={ref:"main",class:"inspector-page"},me={class:"inspector-page__in"},he={class:"inspector-page__header"},ge={class:"inspector-page__header-title"},ve={class:"inspector-page__header-meta"},fe={class:"inspector-page__header-date"},ye={class:"inspector-page__body"},$e=H(()=>t("h3",{class:"inspector-page__body-text"},"Url",-1)),be=H(()=>t("h3",{class:"inspector-page__body-text"},"Request",-1)),ke=D({__name:"inspector-page",props:{event:{}},setup(i){const y=i,d=g(()=>{var _;return(_=y.event)==null?void 0:_.payload[0]}),$=g(()=>Y(y.event.date).format("DD.MM.YYYY HH:mm:ss"));return(_,h)=>(n(),o("div",ue,[t("main",me,[t("header",he,[t("h2",ge,c(d.value.name),1),t("div",ve,[t("span",fe,c($.value),1)])]),f(p(X),{transaction:d.value},null,8,["transaction"]),f(p(de),{payload:_.event.payload},null,8,["payload"]),t("section",ye,[$e,f(p(F),{class:"inspector-page__body-table"},{default:u(()=>[(n(!0),o(v,null,b(d.value.http.url,(r,l)=>(n(),w(p(B),{key:l,title:String(l)},{default:u(()=>[m(c(r),1)]),_:2},1032,["title"]))),128))]),_:1})]),t("section",null,[be,f(p(F),{class:"inspector-page__body-table"},{default:u(()=>[(n(!0),o(v,null,b(d.value.http.request,(r,l)=>(n(),w(p(B),{key:l,title:String(l)},{default:u(()=>[typeof r=="string"?(n(),o(v,{key:0},[m(c(r),1)],64)):Array.isArray(r)?(n(),o(v,{key:1},[m(c(r.join(", ")),1)],64)):Array.isArray(r)?k("",!0):(n(!0),o(v,{key:2},b(r,(e,a)=>(n(),w(p(B),{key:a,title:String(a)},{default:u(()=>[m(c(e),1)]),_:2},1032,["title"]))),128))]),_:2},1032,["title"]))),128))]),_:1})])])],512))}}),Ie=R(ke,[["__scopeId","data-v-7f787ab2"]]),C=i=>(E("data-v-2230f9ff"),i=i(),N(),i),xe={class:"inspector-event"},Se={key:0,class:"inspector-event__loading"},we=C(()=>t("div",null,null,-1)),Pe=C(()=>t("div",null,null,-1)),Be=C(()=>t("div",null,null,-1)),Te=[we,Pe,Be],De={class:"inspector-event__body"},Ee=D({__name:"[id]",setup(i){const{normalizeInspectorEvent:y}=G(),{params:d}=L(),{$authToken:$}=J(),_=U(),h=d.id;O({title:`Inspector > ${h} | Buggregator`});const{events:r}=z(),l=q(!1),e=q(null),a=g(()=>e.value?y(e.value):null),s=()=>{r.removeById(h),_.push("/")};return j(async()=>{l.value=!0,await K(r.getUrl(h),{headers:{"X-Auth-Token":$.token||""},onResponse({response:{_data:I}}){e.value=I,l.value=!1},onResponseError(){_.push("/404")},onRequestError(){_.push("/404")}},"$DvUJDe1RiD")}),(I,P)=>{const x=V;return n(),o("main",xe,[f(p(Q),{class:"inspector-event__head","button-title":"Delete event",onDelete:s},{default:u(()=>[f(x,{to:"/"},{default:u(()=>[m("Home")]),_:1}),m(" /  "),f(x,{to:"/inspector"},{default:u(()=>[m("Inspector")]),_:1}),m(" /  "),f(x,{disabled:!0},{default:u(()=>[m(c(p(h)),1)]),_:1})]),_:1}),l.value&&!a.value?(n(),o("div",Se,Te)):k("",!0),t("div",De,[a.value?(n(),w(p(Ie),{key:0,event:a.value},null,8,["event"])):k("",!0)])])}}}),ze=R(Ee,[["__scopeId","data-v-2230f9ff"]]);export{ze as default}; diff --git a/resources/frontend/_nuxt/BIL_AGmQ.js b/resources/frontend/_nuxt/BIL_AGmQ.js new file mode 100644 index 00000000..7d47cea0 --- /dev/null +++ b/resources/frontend/_nuxt/BIL_AGmQ.js @@ -0,0 +1 @@ +import{d as g,C as S,M as b,c as k,m as $,N as B,o as p,a as f,b as C,F as M,r as E,s as v,B as D,l as F,O as w,P as N,A as O,Q as _,S as J,u as K,T as U}from"./BqbMuE7y.js";const T=Symbol("addTab"),x=Symbol("updateTab"),A=Symbol("deleteTab"),H=Symbol("tabsProvider");function h(l,d){const e=U(l,d);if(typeof e>"u")throw new Error(`Could not resolve ${l.description}`);return e}const W=["data-tab-id","aria-hidden"],V=g({__name:"Tab",props:{panelClass:{default:"tabs-component-panel"},id:{default:void 0},name:null,prefix:{default:""},suffix:{default:""},isDisabled:{type:Boolean,default:!1},navItemClass:{default:void 0},navItemLinkClass:{default:void 0}},setup(l,{expose:d}){const e=l,i=F(!1),t=h(H),u=h(T),c=h(x),r=h(A),s=e.prefix+e.name+e.suffix,n=e.id?e.id:e.name.toLowerCase().replace(/ /g,"-"),a=n+"-pane",o=k(()=>"#"+(e.isDisabled?"":n));return w(()=>t.activeTabHash,()=>{i.value=o.value===t.activeTabHash}),w(()=>Object.assign({},e),()=>{c(n,{name:e.name,header:e.prefix+e.name+e.suffix,isDisabled:e.isDisabled,hash:o.value,index:t.tabs.length,computedId:n,paneId:a,navItemClass:e.navItemClass,navItemLinkClass:e.navItemLinkClass})}),N(()=>{u({name:e.name,header:s,isDisabled:e.isDisabled,hash:o.value,index:t.tabs.length,computedId:n,paneId:a,navItemClass:e.navItemClass,navItemLinkClass:e.navItemLinkClass})}),O(()=>{r(n)}),d({header:s,computedId:n,paneId:a,hash:o,isActive:i}),(m,I)=>_((p(),f("section",{ref:"tab",id:a,"data-tab-id":K(n),"aria-hidden":!i.value,class:v(l.panelClass),role:"tabpanel",tabindex:"-1"},[D(m.$slots,"default")],10,W)),[[J,i.value]])}});class j{get(d){const e=localStorage.getItem(d);if(e===null)return null;const i=JSON.parse(e);return i?new Date(i.expires)({useUrlFragment:!0,defaultTabHash:void 0,storageKey:void 0})},wrapperClass:{default:"tabs-component"},panelsWrapperClass:{default:"tabs-component-panels"},navClass:{default:"tabs-component-tabs"},navItemClass:{default:"tabs-component-tab"},navItemDisabledClass:{default:"is-disabled"},navItemActiveClass:{default:"is-active"},navItemInactiveClass:{default:"is-inactive"},navItemLinkClass:{default:"tabs-component-tab-a"},navItemLinkActiveClass:{default:"is-active"},navItemLinkInactiveClass:{default:"is-inactive"},navItemLinkDisabledClass:{default:"is-disabled"}},emits:["changed","clicked"],setup(l,{expose:d,emit:e}){const i=l,t=S({activeTabHash:"",lastActiveTabHash:"",tabs:[]});b(H,t),b(T,s=>{t.tabs.push(s)}),b(x,(s,n)=>{const a=t.tabs.findIndex(o=>o.computedId===s);n.isActive=t.tabs[a].isActive,t.tabs[a]=n}),b(A,s=>{const n=t.tabs.findIndex(a=>a.computedId===s);t.tabs.splice(n,1)});const u=k(()=>{let s;return i.options.storageKey&&(s=i.options.storageKey),!s&&i.id&&(s=`vue-tabs-component.${i.id}.cache.${window.location.host}${window.location.pathname}`),s||(s=`vue-tabs-component.cache.${window.location.host}${window.location.pathname}`),s}),c=(s,n)=>{n&&!i.options.useUrlFragment&&n.preventDefault();const a=r(s);if(a){if(n&&a.isDisabled){n.preventDefault();return}if(t.lastActiveTabHash===a.hash){e("clicked",{tab:a});return}t.tabs.forEach(o=>{o.isActive=o.hash===a.hash}),e("changed",{tab:a}),t.lastActiveTabHash=t.activeTabHash=a.hash,!(i.cacheLifetime<=0)&&L.set(u.value,a.hash,i.cacheLifetime)}},r=s=>t.tabs.find(n=>n.hash===s);return $(()=>{if(t.tabs.length){if(window.addEventListener("hashchange",()=>c(window.location.hash)),r(window.location.hash)){c(window.location.hash);return}if(i.cacheLifetime>0){const s=L.get(u.value);if(s!==null&&r(s)){c(s);return}}if(i.options.defaultTabHash&&r("#"+i.options.defaultTabHash)){c("#"+i.options.defaultTabHash);return}c(t.tabs[0].hash)}}),d({...B(t),selectTab:c,findTab:r}),(s,n)=>(p(),f("div",{class:v(l.wrapperClass),id:l.id},[C("ul",{role:"tablist",class:v(l.navClass)},[(p(!0),f(M,null,E(t.tabs,(a,o)=>{var m,I;return p(),f("li",{key:o,class:v([(m=a.navItemClass)!=null?m:l.navItemClass,a.isDisabled?l.navItemDisabledClass:"",a.isActive?l.navItemActiveClass:a.isDisabled?"":l.navItemInactiveClass]),role:"presentation"},[C("a",{role:"tab",class:v([(I=a.navItemLinkClass)!=null?I:l.navItemLinkClass,a.isDisabled?l.navItemLinkDisabledClass:"",a.isActive?l.navItemLinkActiveClass:a.isDisabled?"":l.navItemLinkInactiveClass]),"aria-controls":a.paneId,"aria-selected":a.isActive,href:a.hash,onClick:y=>c(a.hash,y),innerHTML:a.header,tabindex:"0"},null,10,P)],2)}),128))],2),C("div",{class:v(l.panelsWrapperClass)},[D(s.$slots,"default")],2)],10,z))}});export{V as W,q}; diff --git a/resources/frontend/_nuxt/BMdUaude.js b/resources/frontend/_nuxt/BMdUaude.js new file mode 100644 index 00000000..e48d6790 --- /dev/null +++ b/resources/frontend/_nuxt/BMdUaude.js @@ -0,0 +1 @@ +import{_ as o}from"./Dp5Hh4Yf.js";import{P as r}from"./BefdN0MI.js";import{d as p,o as m,h as e,u as t}from"./BqbMuE7y.js";import"./Cuqdu9nB.js";import"./B3ev0iw2.js";import"./Cduf3Gc_.js";import"./DdKTkMGq.js";import"./CF6J2D0o.js";import"./DAR3qIk9.js";import"./BCrvxhm1.js";import"./BnFX9pPB.js";import"./DUf8yZCu.js";import"./k1uqWTyJ.js";const B=p({__name:"index",setup(i){return(a,n)=>(m(),e(t(o),{type:t(r).RAY_DUMP,title:"Ray Dumps"},null,8,["type"]))}});export{B as default}; diff --git a/resources/frontend/_nuxt/BMyZPxuX.js b/resources/frontend/_nuxt/BMyZPxuX.js new file mode 100644 index 00000000..c36b8740 --- /dev/null +++ b/resources/frontend/_nuxt/BMyZPxuX.js @@ -0,0 +1 @@ +import{_ as r}from"./Dp5Hh4Yf.js";import{P as t}from"./BefdN0MI.js";import{d as p,o as m,h as e,u as o}from"./BqbMuE7y.js";import"./Cuqdu9nB.js";import"./B3ev0iw2.js";import"./Cduf3Gc_.js";import"./DdKTkMGq.js";import"./CF6J2D0o.js";import"./DAR3qIk9.js";import"./BCrvxhm1.js";import"./BnFX9pPB.js";import"./DUf8yZCu.js";import"./k1uqWTyJ.js";const B=p({__name:"index",setup(i){return(a,n)=>(m(),e(o(r),{type:o(t).PROFILER,title:"Profiler"},null,8,["type"]))}});export{B as default}; diff --git a/resources/frontend/_nuxt/B_g6P6pq.js b/resources/frontend/_nuxt/B_g6P6pq.js new file mode 100644 index 00000000..cb6a078a --- /dev/null +++ b/resources/frontend/_nuxt/B_g6P6pq.js @@ -0,0 +1,5 @@ +import{H as Yi,E as pi}from"./BqbMuE7y.js";import{c as Oi}from"./Cuqdu9nB.js";var Ds={exports:{}};(function(ze,xi){(function(Ze,l){ze.exports=l()})(Yi,function(){var Ze;function l(){return Ze.apply(null,arguments)}function vs(e){Ze=e}function P(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function ee(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function w(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function $e(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(w(e,t))return!1;return!0}function T(e){return e===void 0}function E(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function ce(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function Ot(e,t){var s=[],r,a=e.length;for(r=0;r>>0,r;for(r=0;r0)for(s=0;s=0;return(n?s?"+":"":"-")+Math.pow(10,Math.max(0,a)).toString().substr(1)+r}var tt=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,pe=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,st={},ae={};function h(e,t,s,r){var a=r;typeof r=="string"&&(a=function(){return this[r]()}),e&&(ae[e]=a),t&&(ae[t[0]]=function(){return I(a.apply(this,arguments),t[1],t[2])}),s&&(ae[s]=function(){return this.localeData().ordinal(a.apply(this,arguments),e)})}function xs(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function bs(e){var t=e.match(tt),s,r;for(s=0,r=t.length;s=0&&pe.test(e);)e=e.replace(pe,r),pe.lastIndex=0,s-=1;return e}var Ns={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function Ws(e){var t=this._longDateFormat[e],s=this._longDateFormat[e.toUpperCase()];return t||!s?t:(this._longDateFormat[e]=s.match(tt).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[e])}var Ps="Invalid date";function Rs(){return this._invalidDate}var Fs="%d",Cs=/\d{1,2}/;function Ls(e){return this._ordinal.replace("%d",e)}var Us={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function Is(e,t,s,r){var a=this._relativeTime[s];return U(a)?a(e,t,s,r):a.replace(/%d/i,e)}function Hs(e,t){var s=this._relativeTime[e>0?"future":"past"];return U(s)?s(t):s.replace(/%s/i,t)}var Pt={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function N(e){return typeof e=="string"?Pt[e]||Pt[e.toLowerCase()]:void 0}function rt(e){var t={},s,r;for(r in e)w(e,r)&&(s=N(r),s&&(t[s]=e[r]));return t}var Es={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function As(e){var t=[],s;for(s in e)w(e,s)&&t.push({unit:s,priority:Es[s]});return t.sort(function(r,a){return r.priority-a.priority}),t}var Rt=/\d/,x=/\d\d/,Ft=/\d{3}/,at=/\d{4}/,Te=/[+-]?\d{6}/,M=/\d\d?/,Ct=/\d\d\d\d?/,Lt=/\d\d\d\d\d\d?/,xe=/\d{1,3}/,nt=/\d{1,4}/,be=/[+-]?\d{1,6}/,ne=/\d+/,Ne=/[+-]?\d+/,Vs=/Z|[+-]\d\d:?\d\d/gi,We=/Z|[+-]\d\d(?::?\d\d)?/gi,Gs=/[+-]?\d+(\.\d{1,3})?/,_e=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,ie=/^[1-9]\d?/,it=/^([1-9]\d|\d)/,Pe;Pe={};function d(e,t,s){Pe[e]=U(t)?t:function(r,a){return r&&s?s:t}}function js(e,t){return w(Pe,e)?Pe[e](t._strict,t._locale):new RegExp(zs(e))}function zs(e){return A(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,s,r,a,n){return s||r||a||n}))}function A(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function W(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function m(e){var t=+e,s=0;return t!==0&&isFinite(t)&&(s=W(t)),s}var ot={};function g(e,t){var s,r=t,a;for(typeof e=="string"&&(e=[e]),E(t)&&(r=function(n,i){i[t]=m(n)}),a=e.length,s=0;s68?1900:2e3)};var Ut=oe("FullYear",!0);function Bs(){return Re(this.year())}function oe(e,t){return function(s){return s!=null?(It(this,e,s),l.updateOffset(this,t),this):ke(this,e)}}function ke(e,t){if(!e.isValid())return NaN;var s=e._d,r=e._isUTC;switch(t){case"Milliseconds":return r?s.getUTCMilliseconds():s.getMilliseconds();case"Seconds":return r?s.getUTCSeconds():s.getSeconds();case"Minutes":return r?s.getUTCMinutes():s.getMinutes();case"Hours":return r?s.getUTCHours():s.getHours();case"Date":return r?s.getUTCDate():s.getDate();case"Day":return r?s.getUTCDay():s.getDay();case"Month":return r?s.getUTCMonth():s.getMonth();case"FullYear":return r?s.getUTCFullYear():s.getFullYear();default:return NaN}}function It(e,t,s){var r,a,n,i,u;if(!(!e.isValid()||isNaN(s))){switch(r=e._d,a=e._isUTC,t){case"Milliseconds":return void(a?r.setUTCMilliseconds(s):r.setMilliseconds(s));case"Seconds":return void(a?r.setUTCSeconds(s):r.setSeconds(s));case"Minutes":return void(a?r.setUTCMinutes(s):r.setMinutes(s));case"Hours":return void(a?r.setUTCHours(s):r.setHours(s));case"Date":return void(a?r.setUTCDate(s):r.setDate(s));case"FullYear":break;default:return}n=s,i=e.month(),u=e.date(),u=u===29&&i===1&&!Re(n)?28:u,a?r.setUTCFullYear(n,i,u):r.setFullYear(n,i,u)}}function Js(e){return e=N(e),U(this[e])?this[e]():this}function Qs(e,t){if(typeof e=="object"){e=rt(e);var s=As(e),r,a=s.length;for(r=0;r=0?(u=new Date(e+400,t,s,r,a,n,i),isFinite(u.getFullYear())&&u.setFullYear(e)):u=new Date(e,t,s,r,a,n,i),u}function ge(e){var t,s;return e<100&&e>=0?(s=Array.prototype.slice.call(arguments),s[0]=e+400,t=new Date(Date.UTC.apply(null,s)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Fe(e,t,s){var r=7+t-s,a=(7+ge(e,0,r).getUTCDay()-t)%7;return-a+r-1}function jt(e,t,s,r,a){var n=(7+s-r)%7,i=Fe(e,r,a),u=1+7*(t-1)+n+i,f,_;return u<=0?(f=e-1,_=we(f)+u):u>we(e)?(f=e+1,_=u-we(e)):(f=e,_=u),{year:f,dayOfYear:_}}function Me(e,t,s){var r=Fe(e.year(),t,s),a=Math.floor((e.dayOfYear()-r-1)/7)+1,n,i;return a<1?(i=e.year()-1,n=a+j(i,t,s)):a>j(e.year(),t,s)?(n=a-j(e.year(),t,s),i=e.year()+1):(i=e.year(),n=a),{week:n,year:i}}function j(e,t,s){var r=Fe(e,t,s),a=Fe(e+1,t,s);return(we(e)-r+a)/7}h("w",["ww",2],"wo","week"),h("W",["WW",2],"Wo","isoWeek"),d("w",M,ie),d("ww",M,x),d("W",M,ie),d("WW",M,x),ye(["w","ww","W","WW"],function(e,t,s,r){t[r.substr(0,1)]=m(e)});function dr(e){return Me(e,this._week.dow,this._week.doy).week}var hr={dow:0,doy:6};function fr(){return this._week.dow}function cr(){return this._week.doy}function mr(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function _r(e){var t=Me(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}h("d",0,"do","day"),h("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),h("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),h("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),h("e",0,0,"weekday"),h("E",0,0,"isoWeekday"),d("d",M),d("e",M),d("E",M),d("dd",function(e,t){return t.weekdaysMinRegex(e)}),d("ddd",function(e,t){return t.weekdaysShortRegex(e)}),d("dddd",function(e,t){return t.weekdaysRegex(e)}),ye(["dd","ddd","dddd"],function(e,t,s,r){var a=s._locale.weekdaysParse(e,r,s._strict);a!=null?t.d=a:c(s).invalidWeekday=e}),ye(["d","e","E"],function(e,t,s,r){t[r]=m(e)});function yr(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function wr(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function ut(e,t){return e.slice(t,7).concat(e.slice(0,t))}var kr="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),zt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),gr="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Mr=_e,Sr=_e,Dr=_e;function vr(e,t){var s=P(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?ut(s,this._week.dow):e?s[e.day()]:s}function Yr(e){return e===!0?ut(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function pr(e){return e===!0?ut(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Or(e,t,s){var r,a,n,i=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)n=L([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(n,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(n,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(n,"").toLocaleLowerCase();return s?t==="dddd"?(a=v.call(this._weekdaysParse,i),a!==-1?a:null):t==="ddd"?(a=v.call(this._shortWeekdaysParse,i),a!==-1?a:null):(a=v.call(this._minWeekdaysParse,i),a!==-1?a:null):t==="dddd"?(a=v.call(this._weekdaysParse,i),a!==-1||(a=v.call(this._shortWeekdaysParse,i),a!==-1)?a:(a=v.call(this._minWeekdaysParse,i),a!==-1?a:null)):t==="ddd"?(a=v.call(this._shortWeekdaysParse,i),a!==-1||(a=v.call(this._weekdaysParse,i),a!==-1)?a:(a=v.call(this._minWeekdaysParse,i),a!==-1?a:null)):(a=v.call(this._minWeekdaysParse,i),a!==-1||(a=v.call(this._weekdaysParse,i),a!==-1)?a:(a=v.call(this._shortWeekdaysParse,i),a!==-1?a:null))}function Tr(e,t,s){var r,a,n;if(this._weekdaysParseExact)return Or.call(this,e,t,s);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(a=L([2e3,1]).day(r),s&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(a,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(a,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(a,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(n="^"+this.weekdays(a,"")+"|^"+this.weekdaysShort(a,"")+"|^"+this.weekdaysMin(a,""),this._weekdaysParse[r]=new RegExp(n.replace(".",""),"i")),s&&t==="dddd"&&this._fullWeekdaysParse[r].test(e))return r;if(s&&t==="ddd"&&this._shortWeekdaysParse[r].test(e))return r;if(s&&t==="dd"&&this._minWeekdaysParse[r].test(e))return r;if(!s&&this._weekdaysParse[r].test(e))return r}}function xr(e){if(!this.isValid())return e!=null?this:NaN;var t=ke(this,"Day");return e!=null?(e=yr(e,this.localeData()),this.add(e-t,"d")):t}function br(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function Nr(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=wr(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function Wr(e){return this._weekdaysParseExact?(w(this,"_weekdaysRegex")||dt.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(w(this,"_weekdaysRegex")||(this._weekdaysRegex=Mr),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Pr(e){return this._weekdaysParseExact?(w(this,"_weekdaysRegex")||dt.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(w(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Sr),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Rr(e){return this._weekdaysParseExact?(w(this,"_weekdaysRegex")||dt.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(w(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Dr),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function dt(){function e(O,B){return B.length-O.length}var t=[],s=[],r=[],a=[],n,i,u,f,_;for(n=0;n<7;n++)i=L([2e3,1]).day(n),u=A(this.weekdaysMin(i,"")),f=A(this.weekdaysShort(i,"")),_=A(this.weekdays(i,"")),t.push(u),s.push(f),r.push(_),a.push(u),a.push(f),a.push(_);t.sort(e),s.sort(e),r.sort(e),a.sort(e),this._weekdaysRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function ht(){return this.hours()%12||12}function Fr(){return this.hours()||24}h("H",["HH",2],0,"hour"),h("h",["hh",2],0,ht),h("k",["kk",2],0,Fr),h("hmm",0,0,function(){return""+ht.apply(this)+I(this.minutes(),2)}),h("hmmss",0,0,function(){return""+ht.apply(this)+I(this.minutes(),2)+I(this.seconds(),2)}),h("Hmm",0,0,function(){return""+this.hours()+I(this.minutes(),2)}),h("Hmmss",0,0,function(){return""+this.hours()+I(this.minutes(),2)+I(this.seconds(),2)});function Zt(e,t){h(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}Zt("a",!0),Zt("A",!1);function $t(e,t){return t._meridiemParse}d("a",$t),d("A",$t),d("H",M,it),d("h",M,ie),d("k",M,ie),d("HH",M,x),d("hh",M,x),d("kk",M,x),d("hmm",Ct),d("hmmss",Lt),d("Hmm",Ct),d("Hmmss",Lt),g(["H","HH"],Y),g(["k","kk"],function(e,t,s){var r=m(e);t[Y]=r===24?0:r}),g(["a","A"],function(e,t,s){s._isPm=s._locale.isPM(e),s._meridiem=e}),g(["h","hh"],function(e,t,s){t[Y]=m(e),c(s).bigHour=!0}),g("hmm",function(e,t,s){var r=e.length-2;t[Y]=m(e.substr(0,r)),t[F]=m(e.substr(r)),c(s).bigHour=!0}),g("hmmss",function(e,t,s){var r=e.length-4,a=e.length-2;t[Y]=m(e.substr(0,r)),t[F]=m(e.substr(r,2)),t[G]=m(e.substr(a)),c(s).bigHour=!0}),g("Hmm",function(e,t,s){var r=e.length-2;t[Y]=m(e.substr(0,r)),t[F]=m(e.substr(r))}),g("Hmmss",function(e,t,s){var r=e.length-4,a=e.length-2;t[Y]=m(e.substr(0,r)),t[F]=m(e.substr(r,2)),t[G]=m(e.substr(a))});function Cr(e){return(e+"").toLowerCase().charAt(0)==="p"}var Lr=/[ap]\.?m?\.?/i,Ur=oe("Hours",!0);function Ir(e,t,s){return e>11?s?"pm":"PM":s?"am":"AM"}var qt={calendar:Os,longDateFormat:Ns,invalidDate:Ps,ordinal:Fs,dayOfMonthOrdinalParse:Cs,relativeTime:Us,months:Ks,monthsShort:Ht,week:hr,weekdays:kr,weekdaysMin:gr,weekdaysShort:zt,meridiemParse:Lr},D={},Se={},De;function Hr(e,t){var s,r=Math.min(e.length,t.length);for(s=0;s0;){if(a=Ce(n.slice(0,s).join("-")),a)return a;if(r&&r.length>=s&&Hr(n,r)>=s-1)break;s--}t++}return De}function Ar(e){return!!(e&&e.match("^[^/\\\\]*$"))}function Ce(e){var t=null,s;if(D[e]===void 0&&ze&&ze.exports&&Ar(e))try{t=De._abbr,s=Oi,s("./locale/"+e),Q(t)}catch{D[e]=null}return D[e]}function Q(e,t){var s;return e&&(T(t)?s=z(e):s=ft(e,t),s?De=s:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),De._abbr}function ft(e,t){if(t!==null){var s,r=qt;if(t.abbr=e,D[e]!=null)Nt("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=D[e]._config;else if(t.parentLocale!=null)if(D[t.parentLocale]!=null)r=D[t.parentLocale]._config;else if(s=Ce(t.parentLocale),s!=null)r=s._config;else return Se[t.parentLocale]||(Se[t.parentLocale]=[]),Se[t.parentLocale].push({name:e,config:t}),null;return D[e]=new Ke(Xe(r,t)),Se[e]&&Se[e].forEach(function(a){ft(a.name,a.config)}),Q(e),D[e]}else return delete D[e],null}function Vr(e,t){if(t!=null){var s,r,a=qt;D[e]!=null&&D[e].parentLocale!=null?D[e].set(Xe(D[e]._config,t)):(r=Ce(e),r!=null&&(a=r._config),t=Xe(a,t),r==null&&(t.abbr=e),s=new Ke(t),s.parentLocale=D[e],D[e]=s),Q(e)}else D[e]!=null&&(D[e].parentLocale!=null?(D[e]=D[e].parentLocale,e===Q()&&Q(e)):D[e]!=null&&delete D[e]);return D[e]}function z(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return De;if(!P(e)){if(t=Ce(e),t)return t;e=[e]}return Er(e)}function Gr(){return et(D)}function ct(e){var t,s=e._a;return s&&c(e).overflow===-2&&(t=s[V]<0||s[V]>11?V:s[H]<1||s[H]>lt(s[p],s[V])?H:s[Y]<0||s[Y]>24||s[Y]===24&&(s[F]!==0||s[G]!==0||s[te]!==0)?Y:s[F]<0||s[F]>59?F:s[G]<0||s[G]>59?G:s[te]<0||s[te]>999?te:-1,c(e)._overflowDayOfYear&&(tH)&&(t=H),c(e)._overflowWeeks&&t===-1&&(t=$s),c(e)._overflowWeekday&&t===-1&&(t=qs),c(e).overflow=t),e}var jr=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,zr=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Zr=/Z|[+-]\d\d(?::?\d\d)?/,Le=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],mt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],$r=/^\/?Date\((-?\d+)/i,qr=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Br={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function Jt(e){var t,s,r=e._i,a=jr.exec(r)||zr.exec(r),n,i,u,f,_=Le.length,O=mt.length;if(a){for(c(e).iso=!0,t=0,s=_;twe(i)||e._dayOfYear===0)&&(c(e)._overflowDayOfYear=!0),s=ge(i,0,e._dayOfYear),e._a[V]=s.getUTCMonth(),e._a[H]=s.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=r[t]=a[t];for(;t<7;t++)e._a[t]=r[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[Y]===24&&e._a[F]===0&&e._a[G]===0&&e._a[te]===0&&(e._nextDay=!0,e._a[Y]=0),e._d=(e._useUTC?ge:ur).apply(null,r),n=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Y]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==n&&(c(e).weekdayMismatch=!0)}}function ra(e){var t,s,r,a,n,i,u,f,_;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(n=1,i=4,s=le(t.GG,e._a[p],Me(S(),1,4).year),r=le(t.W,1),a=le(t.E,1),(a<1||a>7)&&(f=!0)):(n=e._locale._week.dow,i=e._locale._week.doy,_=Me(S(),n,i),s=le(t.gg,e._a[p],_.year),r=le(t.w,_.week),t.d!=null?(a=t.d,(a<0||a>6)&&(f=!0)):t.e!=null?(a=t.e+n,(t.e<0||t.e>6)&&(f=!0)):a=n),r<1||r>j(s,n,i)?c(e)._overflowWeeks=!0:f!=null?c(e)._overflowWeekday=!0:(u=jt(s,r,a,n,i),e._a[p]=u.year,e._dayOfYear=u.dayOfYear)}l.ISO_8601=function(){},l.RFC_2822=function(){};function yt(e){if(e._f===l.ISO_8601){Jt(e);return}if(e._f===l.RFC_2822){Qt(e);return}e._a=[],c(e).empty=!0;var t=""+e._i,s,r,a,n,i,u=t.length,f=0,_,O;for(a=Wt(e._f,e._locale).match(tt)||[],O=a.length,s=0;s0&&c(e).unusedInput.push(i),t=t.slice(t.indexOf(r)+r.length),f+=r.length),ae[n]?(r?c(e).empty=!1:c(e).unusedTokens.push(n),Zs(n,r,e)):e._strict&&!r&&c(e).unusedTokens.push(n);c(e).charsLeftOver=u-f,t.length>0&&c(e).unusedInput.push(t),e._a[Y]<=12&&c(e).bigHour===!0&&e._a[Y]>0&&(c(e).bigHour=void 0),c(e).parsedDateParts=e._a.slice(0),c(e).meridiem=e._meridiem,e._a[Y]=aa(e._locale,e._a[Y],e._meridiem),_=c(e).era,_!==null&&(e._a[p]=e._locale.erasConvertYear(_,e._a[p])),_t(e),ct(e)}function aa(e,t,s){var r;return s==null?t:e.meridiemHour!=null?e.meridiemHour(t,s):(e.isPM!=null&&(r=e.isPM(s),r&&t<12&&(t+=12),!r&&t===12&&(t=0)),t)}function na(e){var t,s,r,a,n,i,u=!1,f=e._f.length;if(f===0){c(e).invalidFormat=!0,e._d=new Date(NaN);return}for(a=0;athis?this:e:Ye()});function es(e,t){var s,r;if(t.length===1&&P(t[0])&&(t=t[0]),!t.length)return S();for(s=t[0],r=1;rthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Oa(){if(!T(this._isDSTShifted))return this._isDSTShifted;var e={},t;return Qe(e,this),e=Xt(e),e._a?(t=e._isUTC?L(e._a):S(e._a),this._isDSTShifted=this.isValid()&&wa(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Ta(){return this.isValid()?!this._isUTC:!1}function xa(){return this.isValid()?this._isUTC:!1}function ss(){return this.isValid()?this._isUTC&&this._offset===0:!1}var ba=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Na=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function C(e,t){var s=e,r=null,a,n,i;return Ie(e)?s={ms:e._milliseconds,d:e._days,M:e._months}:E(e)||!isNaN(+e)?(s={},t?s[t]=+e:s.milliseconds=+e):(r=ba.exec(e))?(a=r[1]==="-"?-1:1,s={y:0,d:m(r[H])*a,h:m(r[Y])*a,m:m(r[F])*a,s:m(r[G])*a,ms:m(wt(r[te]*1e3))*a}):(r=Na.exec(e))?(a=r[1]==="-"?-1:1,s={y:se(r[2],a),M:se(r[3],a),w:se(r[4],a),d:se(r[5],a),h:se(r[6],a),m:se(r[7],a),s:se(r[8],a)}):s==null?s={}:typeof s=="object"&&("from"in s||"to"in s)&&(i=Wa(S(s.from),S(s.to)),s={},s.ms=i.milliseconds,s.M=i.months),n=new Ue(s),Ie(e)&&w(e,"_locale")&&(n._locale=e._locale),Ie(e)&&w(e,"_isValid")&&(n._isValid=e._isValid),n}C.fn=Ue.prototype,C.invalid=ya;function se(e,t){var s=e&&parseFloat(e.replace(",","."));return(isNaN(s)?0:s)*t}function rs(e,t){var s={};return s.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(s.months,"M").isAfter(t)&&--s.months,s.milliseconds=+t-+e.clone().add(s.months,"M"),s}function Wa(e,t){var s;return e.isValid()&&t.isValid()?(t=gt(t,e),e.isBefore(t)?s=rs(e,t):(s=rs(t,e),s.milliseconds=-s.milliseconds,s.months=-s.months),s):{milliseconds:0,months:0}}function as(e,t){return function(s,r){var a,n;return r!==null&&!isNaN(+r)&&(Nt(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),n=s,s=r,r=n),a=C(s,r),ns(this,a,e),this}}function ns(e,t,s,r){var a=t._milliseconds,n=wt(t._days),i=wt(t._months);e.isValid()&&(r=r??!0,i&&At(e,ke(e,"Month")+i*s),n&&It(e,"Date",ke(e,"Date")+n*s),a&&e._d.setTime(e._d.valueOf()+a*s),r&&l.updateOffset(e,n||i))}var Pa=as(1,"add"),Ra=as(-1,"subtract");function is(e){return typeof e=="string"||e instanceof String}function Fa(e){return R(e)||ce(e)||is(e)||E(e)||La(e)||Ca(e)||e===null||e===void 0}function Ca(e){var t=ee(e)&&!$e(e),s=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],a,n,i=r.length;for(a=0;as.valueOf():s.valueOf()9999?Oe(s,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):U(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",Oe(s,"Z")):Oe(s,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function Ja(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",s,r,a,n;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),s="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",a="-MM-DD[T]HH:mm:ss.SSS",n=t+'[")]',this.format(s+r+a+n)}function Qa(e){e||(e=this.isUtc()?l.defaultFormatUtc:l.defaultFormat);var t=Oe(this,e);return this.localeData().postformat(t)}function Xa(e,t){return this.isValid()&&(R(e)&&e.isValid()||S(e).isValid())?C({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Ka(e){return this.from(S(),e)}function en(e,t){return this.isValid()&&(R(e)&&e.isValid()||S(e).isValid())?C({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function tn(e){return this.to(S(),e)}function os(e){var t;return e===void 0?this._locale._abbr:(t=z(e),t!=null&&(this._locale=t),this)}var ls=b("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function us(){return this._locale}var Ee=1e3,ue=60*Ee,Ae=60*ue,ds=(365*400+97)*24*Ae;function de(e,t){return(e%t+t)%t}function hs(e,t,s){return e<100&&e>=0?new Date(e+400,t,s)-ds:new Date(e,t,s).valueOf()}function fs(e,t,s){return e<100&&e>=0?Date.UTC(e+400,t,s)-ds:Date.UTC(e,t,s)}function sn(e){var t,s;if(e=N(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(s=this._isUTC?fs:hs,e){case"year":t=s(this.year(),0,1);break;case"quarter":t=s(this.year(),this.month()-this.month()%3,1);break;case"month":t=s(this.year(),this.month(),1);break;case"week":t=s(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=s(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=s(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=de(t+(this._isUTC?0:this.utcOffset()*ue),Ae);break;case"minute":t=this._d.valueOf(),t-=de(t,ue);break;case"second":t=this._d.valueOf(),t-=de(t,Ee);break}return this._d.setTime(t),l.updateOffset(this,!0),this}function rn(e){var t,s;if(e=N(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(s=this._isUTC?fs:hs,e){case"year":t=s(this.year()+1,0,1)-1;break;case"quarter":t=s(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=s(this.year(),this.month()+1,1)-1;break;case"week":t=s(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=s(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=s(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=Ae-de(t+(this._isUTC?0:this.utcOffset()*ue),Ae)-1;break;case"minute":t=this._d.valueOf(),t+=ue-de(t,ue)-1;break;case"second":t=this._d.valueOf(),t+=Ee-de(t,Ee)-1;break}return this._d.setTime(t),l.updateOffset(this,!0),this}function an(){return this._d.valueOf()-(this._offset||0)*6e4}function nn(){return Math.floor(this.valueOf()/1e3)}function on(){return new Date(this.valueOf())}function ln(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function un(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function dn(){return this.isValid()?this.toISOString():null}function hn(){return Be(this)}function fn(){return J({},c(this))}function cn(){return c(this).overflow}function mn(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}h("N",0,0,"eraAbbr"),h("NN",0,0,"eraAbbr"),h("NNN",0,0,"eraAbbr"),h("NNNN",0,0,"eraName"),h("NNNNN",0,0,"eraNarrow"),h("y",["y",1],"yo","eraYear"),h("y",["yy",2],0,"eraYear"),h("y",["yyy",3],0,"eraYear"),h("y",["yyyy",4],0,"eraYear"),d("N",St),d("NN",St),d("NNN",St),d("NNNN",pn),d("NNNNN",On),g(["N","NN","NNN","NNNN","NNNNN"],function(e,t,s,r){var a=s._locale.erasParse(e,r,s._strict);a?c(s).era=a:c(s).invalidEra=e}),d("y",ne),d("yy",ne),d("yyy",ne),d("yyyy",ne),d("yo",Tn),g(["y","yy","yyy","yyyy"],p),g(["yo"],function(e,t,s,r){var a;s._locale._eraYearOrdinalRegex&&(a=e.match(s._locale._eraYearOrdinalRegex)),s._locale.eraYearOrdinalParse?t[p]=s._locale.eraYearOrdinalParse(e,a):t[p]=parseInt(e,10)});function _n(e,t){var s,r,a,n=this._eras||z("en")._eras;for(s=0,r=n.length;s=0)return n[r]}function wn(e,t){var s=e.since<=e.until?1:-1;return t===void 0?l(e.since).year():l(e.since).year()+(t-e.offset)*s}function kn(){var e,t,s,r=this.localeData().eras();for(e=0,t=r.length;en&&(t=n),Fn.call(this,e,t,s,r,a))}function Fn(e,t,s,r,a){var n=jt(e,t,s,r,a),i=ge(n.year,0,n.dayOfYear);return this.year(i.getUTCFullYear()),this.month(i.getUTCMonth()),this.date(i.getUTCDate()),this}h("Q",0,"Qo","quarter"),d("Q",Rt),g("Q",function(e,t){t[V]=(m(e)-1)*3});function Cn(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}h("D",["DD",2],"Do","date"),d("D",M,ie),d("DD",M,x),d("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),g(["D","DD"],H),g("Do",function(e,t){t[H]=m(e.match(M)[0])});var ms=oe("Date",!0);h("DDD",["DDDD",3],"DDDo","dayOfYear"),d("DDD",xe),d("DDDD",Ft),g(["DDD","DDDD"],function(e,t,s){s._dayOfYear=m(e)});function Ln(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}h("m",["mm",2],0,"minute"),d("m",M,it),d("mm",M,x),g(["m","mm"],F);var Un=oe("Minutes",!1);h("s",["ss",2],0,"second"),d("s",M,it),d("ss",M,x),g(["s","ss"],G);var In=oe("Seconds",!1);h("S",0,0,function(){return~~(this.millisecond()/100)}),h(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),h(0,["SSS",3],0,"millisecond"),h(0,["SSSS",4],0,function(){return this.millisecond()*10}),h(0,["SSSSS",5],0,function(){return this.millisecond()*100}),h(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),h(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),h(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),h(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),d("S",xe,Rt),d("SS",xe,x),d("SSS",xe,Ft);var X,_s;for(X="SSSS";X.length<=9;X+="S")d(X,ne);function Hn(e,t){t[te]=m(("0."+e)*1e3)}for(X="S";X.length<=9;X+="S")g(X,Hn);_s=oe("Milliseconds",!1),h("z",0,0,"zoneAbbr"),h("zz",0,0,"zoneName");function En(){return this._isUTC?"UTC":""}function An(){return this._isUTC?"Coordinated Universal Time":""}var o=me.prototype;o.add=Pa,o.calendar=Ha,o.clone=Ea,o.diff=$a,o.endOf=rn,o.format=Qa,o.from=Xa,o.fromNow=Ka,o.to=en,o.toNow=tn,o.get=Js,o.invalidAt=cn,o.isAfter=Aa,o.isBefore=Va,o.isBetween=Ga,o.isSame=ja,o.isSameOrAfter=za,o.isSameOrBefore=Za,o.isValid=hn,o.lang=ls,o.locale=os,o.localeData=us,o.max=da,o.min=ua,o.parsingFlags=fn,o.set=Qs,o.startOf=sn,o.subtract=Ra,o.toArray=ln,o.toObject=un,o.toDate=on,o.toISOString=Ba,o.inspect=Ja,typeof Symbol<"u"&&Symbol.for!=null&&(o[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),o.toJSON=dn,o.toString=qa,o.unix=nn,o.valueOf=an,o.creationData=mn,o.eraName=kn,o.eraNarrow=gn,o.eraAbbr=Mn,o.eraYear=Sn,o.year=Ut,o.isLeapYear=Bs,o.weekYear=xn,o.isoWeekYear=bn,o.quarter=o.quarters=Cn,o.month=Vt,o.daysInMonth=ir,o.week=o.weeks=mr,o.isoWeek=o.isoWeeks=_r,o.weeksInYear=Pn,o.weeksInWeekYear=Rn,o.isoWeeksInYear=Nn,o.isoWeeksInISOWeekYear=Wn,o.date=ms,o.day=o.days=xr,o.weekday=br,o.isoWeekday=Nr,o.dayOfYear=Ln,o.hour=o.hours=Ur,o.minute=o.minutes=Un,o.second=o.seconds=In,o.millisecond=o.milliseconds=_s,o.utcOffset=ga,o.utc=Sa,o.local=Da,o.parseZone=va,o.hasAlignedHourOffset=Ya,o.isDST=pa,o.isLocal=Ta,o.isUtcOffset=xa,o.isUtc=ss,o.isUTC=ss,o.zoneAbbr=En,o.zoneName=An,o.dates=b("dates accessor is deprecated. Use date instead.",ms),o.months=b("months accessor is deprecated. Use month instead",Vt),o.years=b("years accessor is deprecated. Use year instead",Ut),o.zone=b("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Ma),o.isDSTShifted=b("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Oa);function Vn(e){return S(e*1e3)}function Gn(){return S.apply(null,arguments).parseZone()}function ys(e){return e}var k=Ke.prototype;k.calendar=Ts,k.longDateFormat=Ws,k.invalidDate=Rs,k.ordinal=Ls,k.preparse=ys,k.postformat=ys,k.relativeTime=Is,k.pastFuture=Hs,k.set=ps,k.eras=_n,k.erasParse=yn,k.erasConvertYear=wn,k.erasAbbrRegex=vn,k.erasNameRegex=Dn,k.erasNarrowRegex=Yn,k.months=sr,k.monthsShort=rr,k.monthsParse=nr,k.monthsRegex=lr,k.monthsShortRegex=or,k.week=dr,k.firstDayOfYear=cr,k.firstDayOfWeek=fr,k.weekdays=vr,k.weekdaysMin=pr,k.weekdaysShort=Yr,k.weekdaysParse=Tr,k.weekdaysRegex=Wr,k.weekdaysShortRegex=Pr,k.weekdaysMinRegex=Rr,k.isPM=Cr,k.meridiem=Ir;function Ge(e,t,s,r){var a=z(),n=L().set(r,t);return a[s](n,e)}function ws(e,t,s){if(E(e)&&(t=e,e=void 0),e=e||"",t!=null)return Ge(e,t,s,"month");var r,a=[];for(r=0;r<12;r++)a[r]=Ge(e,r,s,"month");return a}function vt(e,t,s,r){typeof e=="boolean"?(E(t)&&(s=t,t=void 0),t=t||""):(t=e,s=t,e=!1,E(t)&&(s=t,t=void 0),t=t||"");var a=z(),n=e?a._week.dow:0,i,u=[];if(s!=null)return Ge(t,(s+n)%7,r,"day");for(i=0;i<7;i++)u[i]=Ge(t,(i+n)%7,r,"day");return u}function jn(e,t){return ws(e,t,"months")}function zn(e,t){return ws(e,t,"monthsShort")}function Zn(e,t,s){return vt(e,t,s,"weekdays")}function $n(e,t,s){return vt(e,t,s,"weekdaysShort")}function qn(e,t,s){return vt(e,t,s,"weekdaysMin")}Q("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,s=m(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+s}}),l.lang=b("moment.lang is deprecated. Use moment.locale instead.",Q),l.langData=b("moment.langData is deprecated. Use moment.localeData instead.",z);var Z=Math.abs;function Bn(){var e=this._data;return this._milliseconds=Z(this._milliseconds),this._days=Z(this._days),this._months=Z(this._months),e.milliseconds=Z(e.milliseconds),e.seconds=Z(e.seconds),e.minutes=Z(e.minutes),e.hours=Z(e.hours),e.months=Z(e.months),e.years=Z(e.years),this}function ks(e,t,s,r){var a=C(t,s);return e._milliseconds+=r*a._milliseconds,e._days+=r*a._days,e._months+=r*a._months,e._bubble()}function Jn(e,t){return ks(this,e,t,1)}function Qn(e,t){return ks(this,e,t,-1)}function gs(e){return e<0?Math.floor(e):Math.ceil(e)}function Xn(){var e=this._milliseconds,t=this._days,s=this._months,r=this._data,a,n,i,u,f;return e>=0&&t>=0&&s>=0||e<=0&&t<=0&&s<=0||(e+=gs(Yt(s)+t)*864e5,t=0,s=0),r.milliseconds=e%1e3,a=W(e/1e3),r.seconds=a%60,n=W(a/60),r.minutes=n%60,i=W(n/60),r.hours=i%24,t+=W(i/24),f=W(Ms(t)),s+=f,t-=gs(Yt(f)),u=W(s/12),s%=12,r.days=t,r.months=s,r.years=u,this}function Ms(e){return e*4800/146097}function Yt(e){return e*146097/4800}function Kn(e){if(!this.isValid())return NaN;var t,s,r=this._milliseconds;if(e=N(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+r/864e5,s=this._months+Ms(t),e){case"month":return s;case"quarter":return s/3;case"year":return s/12}else switch(t=this._days+Math.round(Yt(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return t*24+r/36e5;case"minute":return t*1440+r/6e4;case"second":return t*86400+r/1e3;case"millisecond":return Math.floor(t*864e5)+r;default:throw new Error("Unknown unit "+e)}}function $(e){return function(){return this.as(e)}}var Ss=$("ms"),ei=$("s"),ti=$("m"),si=$("h"),ri=$("d"),ai=$("w"),ni=$("M"),ii=$("Q"),oi=$("y"),li=Ss;function ui(){return C(this)}function di(e){return e=N(e),this.isValid()?this[e+"s"]():NaN}function re(e){return function(){return this.isValid()?this._data[e]:NaN}}var hi=re("milliseconds"),fi=re("seconds"),ci=re("minutes"),mi=re("hours"),_i=re("days"),yi=re("months"),wi=re("years");function ki(){return W(this.days()/7)}var q=Math.round,he={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function gi(e,t,s,r,a){return a.relativeTime(t||1,!!s,e,r)}function Mi(e,t,s,r){var a=C(e).abs(),n=q(a.as("s")),i=q(a.as("m")),u=q(a.as("h")),f=q(a.as("d")),_=q(a.as("M")),O=q(a.as("w")),B=q(a.as("y")),K=n<=s.ss&&["s",n]||n0,K[4]=r,gi.apply(null,K)}function Si(e){return e===void 0?q:typeof e=="function"?(q=e,!0):!1}function Di(e,t){return he[e]===void 0?!1:t===void 0?he[e]:(he[e]=t,e==="s"&&(he.ss=t-1),!0)}function vi(e,t){if(!this.isValid())return this.localeData().invalidDate();var s=!1,r=he,a,n;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(s=e),typeof t=="object"&&(r=Object.assign({},he,t),t.s!=null&&t.ss==null&&(r.ss=t.s-1)),a=this.localeData(),n=Mi(this,!s,r,a),s&&(n=a.pastFuture(+this,n)),a.postformat(n)}var pt=Math.abs;function fe(e){return(e>0)-(e<0)||+e}function je(){if(!this.isValid())return this.localeData().invalidDate();var e=pt(this._milliseconds)/1e3,t=pt(this._days),s=pt(this._months),r,a,n,i,u=this.asSeconds(),f,_,O,B;return u?(r=W(e/60),a=W(r/60),e%=60,r%=60,n=W(s/12),s%=12,i=e?e.toFixed(3).replace(/\.?0+$/,""):"",f=u<0?"-":"",_=fe(this._months)!==fe(u)?"-":"",O=fe(this._days)!==fe(u)?"-":"",B=fe(this._milliseconds)!==fe(u)?"-":"",f+"P"+(n?_+n+"Y":"")+(s?_+s+"M":"")+(t?O+t+"D":"")+(a||r||e?"T":"")+(a?B+a+"H":"")+(r?B+r+"M":"")+(e?B+i+"S":"")):"P0D"}var y=Ue.prototype;y.isValid=_a,y.abs=Bn,y.add=Jn,y.subtract=Qn,y.as=Kn,y.asMilliseconds=Ss,y.asSeconds=ei,y.asMinutes=ti,y.asHours=si,y.asDays=ri,y.asWeeks=ai,y.asMonths=ni,y.asQuarters=ii,y.asYears=oi,y.valueOf=li,y._bubble=Xn,y.clone=ui,y.get=di,y.milliseconds=hi,y.seconds=fi,y.minutes=ci,y.hours=mi,y.days=_i,y.weeks=ki,y.months=yi,y.years=wi,y.humanize=vi,y.toISOString=je,y.toString=je,y.toJSON=je,y.locale=os,y.localeData=us,y.toIsoString=b("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",je),y.lang=ls,h("X",0,0,"unix"),h("x",0,0,"valueOf"),d("x",Ne),d("X",Gs),g("X",function(e,t,s){s._d=new Date(parseFloat(e)*1e3)}),g("x",function(e,t,s){s._d=new Date(m(e))});//! moment.js +return l.version="2.30.1",vs(S),l.fn=o,l.min=ha,l.max=fa,l.now=ca,l.utc=L,l.unix=Vn,l.months=jn,l.isDate=ce,l.locale=Q,l.invalid=Ye,l.duration=C,l.isMoment=R,l.weekdays=Zn,l.parseZone=Gn,l.localeData=z,l.isDuration=Ie,l.monthsShort=zn,l.weekdaysMin=qn,l.defineLocale=ft,l.updateLocale=Vr,l.locales=Gr,l.weekdaysShort=$n,l.normalizeUnits=N,l.relativeTimeRounding=Si,l.relativeTimeThreshold=Di,l.calendarFormat=Ia,l.prototype=o,l.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},l})})(Ds);var Ti=Ds.exports;const Wi=pi(Ti);export{Wi as m}; diff --git a/resources/frontend/_nuxt/BdrKFk9O.js b/resources/frontend/_nuxt/BdrKFk9O.js new file mode 100644 index 00000000..e6c0310a --- /dev/null +++ b/resources/frontend/_nuxt/BdrKFk9O.js @@ -0,0 +1 @@ +import{T as z,a as c,C as P,u as F,_ as R}from"./Cuqdu9nB.js";import{h as E}from"./BefdN0MI.js";import{d as f,c as S,o as s,a as v,b as t,t as a,g as n,F as w,r as B,p as I,i as q,_ as k,e as d,h as l,w as i,u as r,f as b,s as H,j,k as O,l as N,m as U,n as G}from"./BqbMuE7y.js";import{u as J}from"./DU45Wy3H.js";import{S as K,u as W}from"./BCrvxhm1.js";import{u as X}from"./CF6J2D0o.js";import"./BBk2F9bR.js";import{u as Q,P as Y}from"./k1uqWTyJ.js";const h=_=>(I("data-v-68f12795"),_=_(),q(),_),Z={class:"sentry-page-tags"},x={class:"sentry-page-tags__boxes"},ee={key:0,class:"sentry-page-tags__box"},se=h(()=>t("span",{class:"sentry-page-tags__box-title"},"runtime",-1)),te={class:"sentry-page-tags__box-name"},ae={class:"sentry-page-tags__box-value"},ne={key:1,class:"sentry-page-tags__box"},re=h(()=>t("span",{class:"sentry-page-tags__box-title"},"os",-1)),oe={class:"sentry-page-tags__box-name"},le={class:"sentry-page-tags__box-value"},ie={key:2,class:"sentry-page-tags__box"},de=h(()=>t("span",{class:"sentry-page-tags__box-title"},"sdk",-1)),ce={class:"sentry-page-tags__box-name"},_e={class:"sentry-page-tags__box-value"},pe={class:"sentry-page-tags__labels-wrapper"},ue=h(()=>t("h3",{class:"sentry-page-tags__title"},"tags",-1)),ve={class:"sentry-page-tags__labels"},ye={class:"sentry-page-tags__label"},ge=h(()=>t("div",{class:"sentry-page-tags__label-name"},"env",-1)),me={class:"sentry-page-tags__label-value"},he={key:0,class:"sentry-page-tags__label"},be=h(()=>t("div",{class:"sentry-page-tags__label-name"},"release",-1)),fe={class:"sentry-page-tags__label-value"},ke={key:1,class:"sentry-page-tags__label"},$e=h(()=>t("div",{class:"sentry-page-tags__label-name"},"logger",-1)),Se={class:"sentry-page-tags__label-value"},Ie={key:2,class:"sentry-page-tags__label"},qe=h(()=>t("div",{class:"sentry-page-tags__label-name"},"os",-1)),we={class:"sentry-page-tags__label-value"},Be={key:3,class:"sentry-page-tags__label"},Le=h(()=>t("div",{class:"sentry-page-tags__label-name"},"runtime",-1)),Te={class:"sentry-page-tags__label-value"},ze={key:4,class:"sentry-page-tags__label"},Pe=h(()=>t("div",{class:"sentry-page-tags__label-name"},"server name",-1)),Ee={class:"sentry-page-tags__label-value"},De={class:"sentry-page-tags__label-name"},Ce={class:"sentry-page-tags__label-value"},Me=f({__name:"sentry-page-tags",props:{payload:{}},setup(_){const p=_,y=S(()=>{var g;const{name:e="",version:o=""}=((g=p.payload.contexts)==null?void 0:g.runtime)||{};return{name:e,version:o}}),u=S(()=>{var g;const{name:e="",version:o=""}=((g=p.payload.contexts)==null?void 0:g.os)||{};return{name:e,version:o}});return(e,o)=>(s(),v("section",Z,[t("div",x,[y.value.name?(s(),v("div",ee,[se,t("h4",te,a(y.value.name),1),t("p",ae," Version: "+a(y.value.version),1)])):n("",!0),u.value.name?(s(),v("div",ne,[re,t("h4",oe,a(u.value.name),1),t("p",le," Version: "+a(u.value.version),1)])):n("",!0),e.payload.sdk&&e.payload.sdk.name?(s(),v("div",ie,[de,t("h4",ce,a(e.payload.sdk.name),1),t("p",_e," Version: "+a(e.payload.sdk.version),1)])):n("",!0)]),t("div",pe,[ue,t("div",ve,[t("div",ye,[ge,t("div",me,a(e.payload.environment),1)]),e.payload.release?(s(),v("div",he,[be,t("div",fe,a(e.payload.release),1)])):n("",!0),e.payload.logger?(s(),v("div",ke,[$e,t("div",Se,a(e.payload.logger),1)])):n("",!0),u.value.name?(s(),v("div",Ie,[qe,t("div",we,a(u.value.name)+" "+a(u.value.version),1)])):n("",!0),y.value.name?(s(),v("div",Be,[Le,t("div",Te,a(y.value.name)+" "+a(y.value.version),1)])):n("",!0),e.payload.server_name?(s(),v("div",ze,[Pe,t("div",Ee,a(e.payload.server_name),1)])):n("",!0),e.payload.tags?(s(!0),v(w,{key:5},B(e.payload.tags,(g,m)=>(s(),v("div",{key:m,class:"sentry-page-tags__label"},[t("div",De,a(m),1),t("div",Ce,a(g||" - "),1)]))),128)):n("",!0)])])]))}}),Ne=k(Me,[["__scopeId","data-v-68f12795"]]),V=_=>(I("data-v-6acf38e5"),_=_(),q(),_),Ve={class:"sentry-page-request"},Ae=V(()=>t("h3",{class:"sentry-page-request__title"},"request",-1)),Fe={class:"sentry-page-request__wrapper"},Re={key:0,class:"sentry-page-request__url"},He=V(()=>t("h3",{class:"sentry-page-request__title sentry-page-request__title--sub"}," headers ",-1)),je=f({__name:"sentry-page-request",props:{request:{}},setup(_){const p=y=>Array.isArray(y)&&y[0]||y;return(y,u)=>(s(),v("section",Ve,[Ae,t("div",Fe,[y.request?(s(),v("code",Re,[t("strong",null,a(y.request.method||"GET")+":",1),d(" "+a(y.request.url),1)])):n("",!0),He,y.request&&y.request.headers?(s(),l(r(z),{key:1},{default:i(()=>[(s(!0),v(w,null,B(y.request.headers,(e,o)=>(s(),l(r(c),{key:o,title:o},{default:i(()=>[d(a(p(e)),1)]),_:2},1032,["title"]))),128))]),_:1})):n("",!0)])]))}}),Oe=k(je,[["__scopeId","data-v-6acf38e5"]]),Ue=_=>(I("data-v-dd467ea0"),_=_(),q(),_),Ge={class:"sentry-page-device"},Je=Ue(()=>t("h3",{class:"sentry-page-device__title"},"device",-1)),Ke=f({__name:"sentry-page-device",props:{device:{}},setup(_){const{formatFileSize:p}=X(),y=e=>E(e).toLocaleString(),u=e=>`${parseInt(String(e),10)}%`;return(e,o)=>(s(),v("section",Ge,[Je,b(r(z),null,{default:i(()=>[e.device&&e.device.arch?(s(),l(r(c),{key:0,title:"Architectures"},{default:i(()=>[b(r(P),{class:"mt-3",language:"json",code:e.device.arch},null,8,["code"])]),_:1})):n("",!0),e.device&&e.device.battery_level?(s(),l(r(c),{key:1,title:"Battery Level"},{default:i(()=>[d(a(u(e.device.battery_level)),1)]),_:1})):n("",!0),e.device&&e.device.boot_time?(s(),l(r(c),{key:2,title:"Boot Time"},{default:i(()=>[d(a(y(e.device.boot_time)),1)]),_:1})):n("",!0),e.device&&e.device.brand?(s(),l(r(c),{key:3,title:"Brand"},{default:i(()=>[d(a(e.device.brand),1)]),_:1})):n("",!0),e.device&&e.device.charging?(s(),l(r(c),{key:4,title:"Charging"},{default:i(()=>[d(a(e.device.charging),1)]),_:1})):n("",!0),e.device&&e.device.family?(s(),l(r(c),{key:5,title:"Family"},{default:i(()=>[d(a(e.device.family),1)]),_:1})):n("",!0),e.device&&e.device.free_memory?(s(),l(r(c),{key:6,title:"Free Memory"},{default:i(()=>[d(a(r(p)(e.device.free_memory)),1)]),_:1})):n("",!0),e.device&&e.device.free_storage?(s(),l(r(c),{key:7,title:"Free Storage"},{default:i(()=>[d(a(r(p)(e.device.free_storage)),1)]),_:1})):n("",!0),e.device&&e.device.id?(s(),l(r(c),{key:8,title:"Id"},{default:i(()=>[d(a(e.device.id),1)]),_:1})):n("",!0),e.device&&e.device.language?(s(),l(r(c),{key:9,title:"Language"},{default:i(()=>[d(a(e.device.language),1)]),_:1})):n("",!0),e.device&&e.device.low_memory?(s(),l(r(c),{key:10,title:"Low Memory"},{default:i(()=>[d(a(e.device.low_memory),1)]),_:1})):n("",!0),e.device&&e.device.manufacturer?(s(),l(r(c),{key:11,title:"Manufacturer"},{default:i(()=>[d(a(e.device.manufacturer),1)]),_:1})):n("",!0),e.device&&e.device.memory_size?(s(),l(r(c),{key:12,title:"Memory Size"},{default:i(()=>[d(a(r(p)(e.device.memory_size)),1)]),_:1})):n("",!0),e.device&&e.device.model?(s(),l(r(c),{key:13,title:"Model"},{default:i(()=>[d(a(e.device.model),1)]),_:1})):n("",!0),e.device&&e.device.model_id?(s(),l(r(c),{key:14,title:"Model Id"},{default:i(()=>[d(a(e.device.model_id),1)]),_:1})):n("",!0),e.device&&e.device.name?(s(),l(r(c),{key:15,title:"Name"},{default:i(()=>[d(a(e.device.name),1)]),_:1})):n("",!0),e.device&&e.device.orientation?(s(),l(r(c),{key:16,title:"Orientation"},{default:i(()=>[d(a(e.device.orientation),1)]),_:1})):n("",!0),e.device&&e.device.screen_density?(s(),l(r(c),{key:17,title:"Screen Density"},{default:i(()=>[d(a(parseInt(String(e.device.screen_density))),1)]),_:1})):n("",!0),e.device&&e.device.screen_dpi?(s(),l(r(c),{key:18,title:"Screen DPI"},{default:i(()=>[d(a(e.device.screen_dpi),1)]),_:1})):n("",!0),e.device&&e.device.screen_height_pixels?(s(),l(r(c),{key:19,title:"Screen Height Pixels"},{default:i(()=>[d(a(e.device.screen_height_pixels),1)]),_:1})):n("",!0),e.device&&e.device.screen_width_pixels?(s(),l(r(c),{key:20,title:"Screen Width Pixels"},{default:i(()=>[d(a(e.device.screen_width_pixels),1)]),_:1})):n("",!0),e.device&&e.device.simulator?(s(),l(r(c),{key:21,title:"Simulator"},{default:i(()=>[d(a(e.device.simulator),1)]),_:1})):n("",!0),e.device&&e.device.storage_size?(s(),l(r(c),{key:22,title:"Storage Size"},{default:i(()=>[d(a(r(p)(e.device.storage_size)),1)]),_:1})):n("",!0),e.device&&e.device.timezone?(s(),l(r(c),{key:23,title:"Timezone"},{default:i(()=>[d(a(e.device.timezone),1)]),_:1})):n("",!0),e.device&&e.device.battery_temperature?(s(),l(r(c),{key:24,title:"Battery Temperature"},{default:i(()=>[d(a(e.device.battery_temperature),1)]),_:1})):n("",!0),e.device&&e.device.locale?(s(),l(r(c),{key:25,title:"Locale"},{default:i(()=>[d(a(e.device.locale),1)]),_:1})):n("",!0)]),_:1})]))}}),We=k(Ke,[["__scopeId","data-v-dd467ea0"]]),D=_=>(I("data-v-1fdff995"),_=_(),q(),_),Xe={class:"sentry-page-breadcrumbs"},Qe={class:"sentry-page-breadcrumbs__title"},Ye={key:0,class:"sentry-page-breadcrumbs__counter"},Ze={class:"sentry-page-breadcrumbs__in"},xe=D(()=>t("nav",{style:{"grid-template-columns":"1fr 100px 200px 17px"},class:"sentry-page-breadcrumbs__nav"},[t("div",{class:"sentry-page-breadcrumbs__nav-col-title"},"description"),t("div",{class:"sentry-page-breadcrumbs__nav-col-title"},"level"),t("div",{class:"sentry-page-breadcrumbs__nav-col-title"},"time")],-1)),es={key:0,class:"sentry-page-breadcrumbs__cols-wr"},ss={class:"sentry-page-breadcrumbs__col"},ts={class:"sentry-page-breadcrumbs__col-message"},as={class:"sentry-page-breadcrumbs__col-details"},ns={class:"sentry-page-breadcrumbs__col-detail"},rs=D(()=>t("div",{class:"sentry-page-breadcrumbs__col-detail-title"}," type ",-1)),os={class:"sentry-page-breadcrumbs__col-detail-value"},ls={class:"sentry-page-breadcrumbs__col-detail"},is=D(()=>t("div",{class:"sentry-page-breadcrumbs__col-detail-title"}," category ",-1)),ds={class:"sentry-page-breadcrumbs__col-detail-value"},cs={class:"sentry-page-breadcrumbs__col"},_s={class:"sentry-page-breadcrumbs__col"},ps=f({__name:"sentry-page-breadcrumbs",props:{breadcrumbs:{default:()=>[]}},setup(_){const p=u=>u?E.unix(u).fromNow():"",y=u=>{var e;return(e=u.level)==null?void 0:e.toLowerCase()};return(u,e)=>(s(),v("section",Xe,[t("h3",Qe,[d(" breadcrumbs "),u.breadcrumbs.length>0?(s(),v("span",Ye,a(u.breadcrumbs.length),1)):n("",!0)]),t("div",Ze,[xe,u.breadcrumbs?(s(),v("div",es,[(s(!0),v(w,null,B(u.breadcrumbs,o=>(s(),v("div",{key:o.toString(),class:"sentry-page-breadcrumbs__cols"},[t("div",ss,[t("p",ts,a(o.message),1),o.data?(s(),l(r(P),{key:0,class:"sentry-page-breadcrumbs__col-data",language:"json",code:o.data},null,8,["code"])):n("",!0),t("div",as,[t("div",ns,[rs,t("div",os,a(o.type),1)]),t("div",ls,[is,t("div",ds,a(o.category),1)])])]),t("div",cs,[t("span",{class:H(["sentry-page-breadcrumbs__col-level-badge",y(o)])},a(o.level),3)]),t("div",_s,a(p(o.timestamp)),1)]))),128))])):n("",!0)])]))}}),us=k(ps,[["__scopeId","data-v-1fdff995"]]),vs=_=>(I("data-v-0e2691c6"),_=_(),q(),_),ys={class:"sentry-page-app"},gs=vs(()=>t("h3",{class:"sentry-page-app__title"},"app",-1)),ms=f({__name:"sentry-page-app",props:{app:{}},setup(_){return(p,y)=>(s(),v("section",ys,[gs,b(r(z),null,{default:i(()=>[p.app.type?(s(),l(r(c),{key:0,title:"App type"},{default:i(()=>[d(a(p.app.type),1)]),_:1})):n("",!0),p.app.app_build?(s(),l(r(c),{key:1,title:"App Build"},{default:i(()=>[d(a(p.app.app_build),1)]),_:1})):n("",!0),p.app.app_identifier?(s(),l(r(c),{key:2,title:"Build ID"},{default:i(()=>[d(a(p.app.app_identifier),1)]),_:1})):n("",!0),p.app.app_id?(s(),l(r(c),{key:3,title:"ID"},{default:i(()=>[d(a(p.app.app_id),1)]),_:1})):n("",!0),p.app.app_name?(s(),l(r(c),{key:4,title:"Build Name"},{default:i(()=>[d(a(p.app.app_name),1)]),_:1})):n("",!0),p.app.app_version?(s(),l(r(c),{key:5,title:"Version"},{default:i(()=>[d(a(p.app.app_version),1)]),_:1})):n("",!0),p.app.permissions?(s(),l(r(c),{key:6,title:"Permissions"},{default:i(()=>[b(r(P),{class:"mt-3",language:"json",code:p.app.permissions},null,8,["code"])]),_:1})):n("",!0)]),_:1})]))}}),hs=k(ms,[["__scopeId","data-v-0e2691c6"]]),bs={class:"sentry-page"},fs={class:"sentry-page__main"},ks={key:0,class:"sentry-page__main-header"},$s={class:"sentry-page__main-exception"},Ss=["innerHTML"],Is={class:"sentry-page__main-date"},qs={key:1,class:"sentry-page__section"},ws={class:"sentry-page__section-title"},Bs={key:0,class:"sentry-page__section-title__counter"},Ls={class:"sentry-page__section-exceptions"},Ts=f({__name:"sentry-page",props:{event:{}},setup(_){const p=_,y=S(()=>E(p.event.payload.timestamp).toLocaleString()),u=S(()=>{var o,g,m;return(m=(g=(o=p.event.payload)==null?void 0:o.exception)==null?void 0:g.values)==null?void 0:m[0]}),e=S(()=>{var o,g,m,$;return(($=(m=(g=(o=p.event)==null?void 0:o.payload)==null?void 0:g.exception)==null?void 0:m.values)==null?void 0:$.length)||0});return(o,g)=>(s(),v("div",bs,[t("main",fs,[u.value?(s(),v("header",ks,[t("h1",$s,a(u.value.type),1),t("pre",{class:"sentry-page__main-exception-message",innerHTML:u.value.value},null,8,Ss),t("p",Is,a(y.value),1)])):n("",!0),b(r(Ne),{payload:o.event.payload,class:"sentry-page__section"},null,8,["payload"]),u.value?(s(),v("section",qs,[t("h3",ws,[d(" exceptions "),e.value>0?(s(),v("span",Bs,a(e.value),1)):n("",!0)]),t("div",Ls,[o.event.payload.exception&&o.event.payload.exception.values&&o.event.payload.exception.values.length>0?(s(!0),v(w,{key:0},B(o.event.payload.exception.values,m=>(s(),l(r(K),{key:`exception-${m.value}-${m.type}`,exception:m,"max-frames":null,class:"sentry-page__section-exceptions__exception"},null,8,["exception"]))),128)):n("",!0)])])):n("",!0),o.event.payload.breadcrumbs&&o.event.payload.breadcrumbs.values&&o.event.payload.breadcrumbs.values.length>0?(s(),l(r(us),{key:2,breadcrumbs:o.event.payload.breadcrumbs.values,class:"sentry-page__section"},null,8,["breadcrumbs"])):n("",!0),o.event.payload.request?(s(),l(r(Oe),{key:3,request:o.event.payload.request,class:"sentry-page__section"},null,8,["request"])):n("",!0),o.event.payload.contexts&&o.event.payload.contexts.app?(s(),l(r(hs),{key:4,app:o.event.payload.contexts.app,class:"sentry-page__section"},null,8,["app"])):n("",!0),o.event.payload.contexts&&o.event.payload.contexts.device?(s(),l(r(We),{key:5,device:o.event.payload.contexts.device,class:"sentry-page__section"},null,8,["device"])):n("",!0)])]))}}),zs=k(Ts,[["__scopeId","data-v-50f1f883"]]),C=_=>(I("data-v-4206cc43"),_=_(),q(),_),Ps={class:"sentry-event"},Es={key:0,class:"sentry-event__loading"},Ds=C(()=>t("div",null,null,-1)),Cs=C(()=>t("div",null,null,-1)),Ms=C(()=>t("div",null,null,-1)),Ns=[Ds,Cs,Ms],Vs=f({__name:"[id]",setup(_){const{normalizeSentryEvent:p}=W(),{params:y}=j(),u=O(),e=y.id;Q({title:`Sentry > ${e} | Buggregator`});const{events:o}=F(),{$authToken:g}=G(),m=N(!1),$=N(null),L=S(()=>$.value?p($.value):null),A=()=>{o.removeById(e),u.push("/")};return U(async()=>{m.value=!0,await J(o.getUrl(e),{headers:{"X-Auth-Token":g.token||""},onResponse({response:{_data:M}}){$.value=M,m.value=!1},onResponseError(){u.push("/404")},onRequestError(){u.push("/404")}},"$2Ki7gJsB6U")}),(M,Fs)=>{const T=R;return s(),v("main",Ps,[b(r(Y),{class:"sentry-event__head","button-title":"Delete event",onDelete:A},{default:i(()=>[b(T,{to:"/"},{default:i(()=>[d("Home")]),_:1}),d(" /  "),b(T,{to:"/sentry"},{default:i(()=>[d("Sentry")]),_:1}),d(" /  "),b(T,{disabled:!0},{default:i(()=>[d(a(r(e)),1)]),_:1})]),_:1}),m.value&&!L.value?(s(),v("div",Es,Ns)):n("",!0),L.value?(s(),l(r(zs),{key:1,event:L.value,class:"sentry-event__body"},null,8,["event"])):n("",!0)])}}}),Ws=k(Vs,[["__scopeId","data-v-4206cc43"]]);export{Ws as default}; diff --git a/resources/frontend/_nuxt/BefdN0MI.js b/resources/frontend/_nuxt/BefdN0MI.js new file mode 100644 index 00000000..369ab4de --- /dev/null +++ b/resources/frontend/_nuxt/BefdN0MI.js @@ -0,0 +1,12 @@ +import{d as vt,o as v,a as y,g as ms,ao as re,p as _s,i as vs,b as f,_ as ys,B as ws,s as rt,u as nt,H as Fe,E as ps,ap as Be}from"./BqbMuE7y.js";const _=e=>(_s("data-v-b36b4488"),e=e(),vs(),e),gs={class:"icon-svg"},Ms={key:0,xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},ks=_(()=>f("path",{d:"M3.75 13.5L14.25 2.25L12 10.5H20.25L9.75 21.75L12 13.5H3.75Z","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)),Cs=[ks],Ss={key:1,xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},bs=_(()=>f("path",{d:"M11.4123 15.6549L9.75 21.75L13.4949 17.7376M9.25736 13.5H3.75L6.40873 10.6514M8.4569 8.4569L14.25 2.25L12 10.5H20.25L15.5431 15.5431M8.4569 8.4569L3 3M8.4569 8.4569L15.5431 15.5431M15.5431 15.5431L21 21","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)),Ls=[bs],Ds={key:2,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 460 460"},Ys=_(()=>f("path",{d:"M426 0H172c-18 0-33 15-33 33v77h30V33c0-2 1-3 3-3h254c2 0 3 1 3 3v254c0 2-1 3-3 3h-75v30h75c18 0 33-15 33-33V33c0-18-15-33-33-33z"},null,-1)),Os=_(()=>f("path",{d:"M288 140H34c-18 0-33 15-33 33v254c0 18 15 33 33 33h254c18 0 33-15 33-33V173c0-18-15-33-33-33zm0 290H34c-2 0-3-1-3-3V173c0-2 1-3 3-3h254c2 0 3 1 3 3v254c0 2-1 3-3 3z"},null,-1)),Ts=[Ys,Os],xs={key:3,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 22"},Hs=_(()=>f("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M19 20H5a3 3 0 0 1-3-3V5a3 3 0 0 1 3-3h11v4c0 1.1.9 2 2 2h4v9a3 3 0 0 1-3 3Zm2.8-14a3 3 0 0 0-.7-1l-1-1-1-1.1a3 3 0 0 0-1.1-.7V6h3.8ZM0 5a5 5 0 0 1 5-5h12a5 5 0 0 1 3.5 1.5l1 1 1 1A5 5 0 0 1 24 7.1V17a5 5 0 0 1-5 5H5a5 5 0 0 1-5-5V5Zm5 5c0-.6.4-1 1-1h12a1 1 0 1 1 0 2H6a1 1 0 0 1-1-1Zm1 2a1 1 0 1 0 0 2h12a1 1 0 1 0 0-2H6Zm-1 4c0-.6.4-1 1-1h7a1 1 0 1 1 0 2H6a1 1 0 0 1-1-1Z"},null,-1)),Rs=[Hs],Ns={key:4,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},Ps=_(()=>f("path",{"fill-rule":"evenodd",d:"M4 0h2v2H4a2 2 0 0 0-2 2v2H0V4a4 4 0 0 1 4-4ZM0 14v2a4 4 0 0 0 4 4h2v-2H4a2 2 0 0 1-2-2v-2H0Zm18 0v2a2 2 0 0 1-2 2h-2v2h2a4 4 0 0 0 4-4v-2h-2Zm2-8V4a4 4 0 0 0-4-4h-2v2h2a2 2 0 0 1 2 2v2h2Z","clip-rule":"evenodd"},null,-1)),Is=[Ps],As={key:5,viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Ws=_(()=>f("path",{d:"M8 0C3.58 0 0 3.58 0 8C0 11.54 2.29 14.53 5.47 15.59C5.87 15.66 6.02 15.42 6.02 15.21C6.02 15.02 6.01 14.39 6.01 13.72C4 14.09 3.48 13.23 3.32 12.78C3.23 12.55 2.84 11.84 2.5 11.65C2.22 11.5 1.82 11.13 2.49 11.12C3.12 11.11 3.57 11.7 3.72 11.94C4.44 13.15 5.59 12.81 6.05 12.6C6.12 12.08 6.33 11.73 6.56 11.53C4.78 11.33 2.92 10.64 2.92 7.58C2.92 6.71 3.23 5.99 3.74 5.43C3.66 5.23 3.38 4.41 3.82 3.31C3.82 3.31 4.49 3.1 6.02 4.13C6.66 3.95 7.34 3.86 8.02 3.86C8.7 3.86 9.38 3.95 10.02 4.13C11.55 3.09 12.22 3.31 12.22 3.31C12.66 4.41 12.38 5.23 12.3 5.43C12.81 5.99 13.12 6.7 13.12 7.58C13.12 10.65 11.25 11.33 9.47 11.53C9.76 11.78 10.01 12.26 10.01 13.01C10.01 14.08 10 14.94 10 15.21C10 15.42 10.15 15.67 10.55 15.59C13.71 14.53 16 11.53 16 8C16 3.58 12.42 0 8 0Z",transform:"scale(64)"},null,-1)),Fs=[Ws],Vs={key:6,viewBox:"0 -28.5 256 256",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid"},Es=_(()=>f("path",{d:"M216.856 16.597A208.502 208.502 0 0 0 164.042 0c-2.275 4.113-4.933 9.645-6.766 14.046-19.692-2.961-39.203-2.961-58.533 0-1.832-4.4-4.55-9.933-6.846-14.046a207.809 207.809 0 0 0-52.855 16.638C5.618 67.147-3.443 116.4 1.087 164.956c22.169 16.555 43.653 26.612 64.775 33.193A161.094 161.094 0 0 0 79.735 175.3a136.413 136.413 0 0 1-21.846-10.632 108.636 108.636 0 0 0 5.356-4.237c42.122 19.702 87.89 19.702 129.51 0a131.66 131.66 0 0 0 5.355 4.237 136.07 136.07 0 0 1-21.886 10.653c4.006 8.02 8.638 15.67 13.873 22.848 21.142-6.58 42.646-16.637 64.815-33.213 5.316-56.288-9.08-105.09-38.056-148.36ZM85.474 135.095c-12.645 0-23.015-11.805-23.015-26.18s10.149-26.2 23.015-26.2c12.867 0 23.236 11.804 23.015 26.2.02 14.375-10.148 26.18-23.015 26.18Zm85.051 0c-12.645 0-23.014-11.805-23.014-26.18s10.148-26.2 23.014-26.2c12.867 0 23.236 11.804 23.015 26.2 0 14.375-10.148 26.18-23.015 26.18Z"},null,-1)),Zs=[Es],Us={key:7,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 114 40"},zs=_(()=>f("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M47 .7A1 1 0 0 0 45 .6L36 19H1a1 1 0 1 0 0 2h35.5c.4 0 .7-.2.9-.6l8.4-16.7L49 14.5a4 4 0 0 0 2.3 7.5l5.2 17.3a1 1 0 0 0 1.9.2l9.2-15.8h29.9a1 1 0 1 0 0-2H67a1 1 0 0 0-.9.5l-8.3 14.3-4.6-15.2A4 4 0 0 0 51 14L47 .7Zm54.5 21a1 1 0 0 0 0 2h3.5a1 1 0 0 0 0-2h-3.5Zm8 0a1 1 0 0 0 0 2h3.5a1 1 0 0 0 0-2h-3.5Z"},null,-1)),Bs=[zs],js={key:8,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 489.8 489.8"},Gs=re('',10),$s=[Gs],qs={key:9,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Js=_(()=>f("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M19 3H5a3 3 0 0 0-3 3v12a3 3 0 0 0 3 3h14a3 3 0 0 0 3-3V6a3 3 0 0 0-3-3ZM5 1a5 5 0 0 0-5 5v12a5 5 0 0 0 5 5h14a5 5 0 0 0 5-5V6a5 5 0 0 0-5-5H5Z"},null,-1)),Ks=_(()=>f("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7 12c0-.6.4-1 1-1h10a1 1 0 1 1 0 2H8a1 1 0 0 1-1-1Z"},null,-1)),Qs=_(()=>f("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5 8c0-.6.4-1 1-1h10a1 1 0 1 1 0 2H6a1 1 0 0 1-1-1ZM5 16c0-.6.4-1 1-1h10a1 1 0 1 1 0 2H6a1 1 0 0 1-1-1Z"},null,-1)),Xs=[Js,Ks,Qs],ea={key:10,viewBox:"0 0 162 149",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},ta=re('',1),sa=[ta],aa={key:11,viewBox:"0 0 162 149",xmlns:"http://www.w3.org/2000/svg"},ra=re('VAR',1),na=[ra],ia={key:12,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 158 35"},oa=re('',1),la=[oa],da={key:13,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 42 29"},ha=_(()=>f("path",{d:"m8.46 0 .58 1.68c-1.18.37-2 1.02-2.44 1.97-.45.93-.67 2-.67 3.22v3.06c0 .98-.2 1.88-.61 2.69-.4.8-1.03 1.43-1.9 1.9-.87.47-2.01.71-3.42.71v-1.8c1.12 0 1.93-.32 2.41-.95.5-.63.75-1.48.75-2.55V6.87c0-1.03.16-2 .47-2.9.33-.9.88-1.7 1.64-2.37A7.9 7.9 0 0 1 8.47 0Zm.58 27.3L8.46 29a8.16 8.16 0 0 1-3.19-1.6 5.78 5.78 0 0 1-1.64-2.37 8.6 8.6 0 0 1-.47-2.9v-3.04c0-.72-.11-1.34-.33-1.86A2.52 2.52 0 0 0 1.8 16a3.27 3.27 0 0 0-1.8-.44v-1.8a7.1 7.1 0 0 1 3.41.7 4.36 4.36 0 0 1 1.9 1.93c.42.8.62 1.7.62 2.69v3.04c0 .8.1 1.56.28 2.25a4.06 4.06 0 0 0 2.83 2.93ZM32.39 1.68 32.97 0c1.36.37 2.42.9 3.19 1.6a5.6 5.6 0 0 1 1.63 2.37c.32.9.48 1.87.48 2.9v3.06c0 .7.11 1.33.33 1.86.22.52.55.92 1.01 1.21.47.29 1.07.43 1.82.43v1.67c-1.4 0-2.54-.22-3.41-.67a4.35 4.35 0 0 1-1.92-1.84c-.4-.8-.6-1.68-.6-2.66V6.87c0-.8-.1-1.56-.28-2.25a4.3 4.3 0 0 0-.97-1.8 3.95 3.95 0 0 0-1.86-1.14ZM32.97 29l-.58-1.7c.78-.25 1.4-.62 1.84-1.14.46-.5.78-1.1.97-1.78.2-.7.3-1.44.3-2.25v-3.04c0-1 .2-1.88.6-2.66a4.27 4.27 0 0 1 1.92-1.83 7.41 7.41 0 0 1 3.4-.68v1.65c-1.1 0-1.9.32-2.4.96-.5.63-.75 1.48-.75 2.56v3.04c0 1.03-.16 2-.48 2.9a5.6 5.6 0 0 1-1.63 2.37 8.02 8.02 0 0 1-3.2 1.6Z",fill:"currentColor"},null,-1)),ua=_(()=>f("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M14.58 8.6a6.11 6.11 0 0 1 12.22 0v.36l.05.02 2.02-2.28a.74.74 0 0 1 1.11.99l-1.93 2.18c.54.63.87 1.46.84 2.36l-.05 1.81c-.01.35-.03.7-.07 1.05h2.69a.74.74 0 1 1 0 1.48h-2.91a14.8 14.8 0 0 1-1.27 3.67l-.6 1.2-.14.27 2.67 2.72a.74.74 0 1 1-1.05 1.03l-2.5-2.53a6.83 6.83 0 0 1-10.5-.39l-2.68 2.64a.74.74 0 0 1-1.04-1.05l2.94-2.89a7.23 7.23 0 0 1-.03-.07l-.79-1.76a14.8 14.8 0 0 1-.94-2.84H9.74a.74.74 0 1 1 0-1.48h2.63l-.08-.85-.11-1.9c-.05-.9.25-1.75.77-2.4l-2.04-2.18A.74.74 0 1 1 12 6.75l2.12 2.27c.15-.07.3-.13.46-.18V8.6Zm10.02 0v.08h-7.82V8.6a3.9 3.9 0 0 1 7.82 0Zm.84 2.28h-9.81c-.72 0-1.29.6-1.25 1.32l.12 1.91c.09 1.52.45 3 1.08 4.4l.79 1.76a4.62 4.62 0 0 0 8.34.18l.6-1.2a12.6 12.6 0 0 0 1.32-5.27l.05-1.81c.02-.7-.54-1.29-1.24-1.29Z",fill:"currentColor"},null,-1)),ca=_(()=>f("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M23.17 12.65c.31-.3.83-.3 1.14 0a.7.7 0 0 1 0 1.05l-2.56 2.37 2.76 2.54a.7.7 0 0 1 0 1.06c-.32.29-.83.29-1.15 0l-2.76-2.55-2.76 2.55c-.32.29-.83.29-1.15 0a.7.7 0 0 1 0-1.06l2.76-2.54-2.56-2.37a.7.7 0 0 1 0-1.05c.31-.3.83-.3 1.14 0L20.6 15l2.57-2.36Z",fill:"currentColor"},null,-1)),fa=[ha,ua,ca],ma={key:14,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 198.7 198.7","xml:space":"preserve"},_a=_(()=>f("path",{d:"M161.5 48.8a7.5 7.5 0 0 0-10.6 10.6 72.4 72.4 0 0 1 21.3 51.5 72.4 72.4 0 0 1-72.9 72.8A72.7 72.7 0 0 1 47.8 59.4a7.5 7.5 0 1 0-10.6-10.6 88 88 0 1 0 124.3 0z"},null,-1)),va=_(()=>f("path",{d:"M99.3 97.2c4.2 0 7.5-3.4 7.5-7.5V7.5a7.5 7.5 0 1 0-15 0v82.2c0 4.1 3.4 7.5 7.5 7.5z"},null,-1)),ya=[_a,va],wa={key:15,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12 12"},pa=_(()=>f("path",{d:"M12 6c0 .6-.4 1-1 1H1a1 1 0 0 1 0-2h10c.6 0 1 .4 1 1Z"},null,-1)),ga=[pa],Ma={key:16,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},ka=_(()=>f("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M0 4a4 4 0 0 1 4-4h12a4 4 0 0 1 4 4v12a4 4 0 0 1-4 4H4a4 4 0 0 1-4-4V4Zm4-2a2 2 0 0 0-2 2v12c0 1.1.9 2 2 2h12a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H4Zm6 2c.6 0 1 .4 1 1v4h4a1 1 0 1 1 0 2h-4v4a1 1 0 1 1-2 0v-4H5a1 1 0 1 1 0-2h4V5c0-.6.4-1 1-1Z"},null,-1)),Ca=[ka],Sa={key:17,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12 12"},ba=_(()=>f("path",{d:"M6 0c.6 0 1 .4 1 1v10a1 1 0 1 1-2 0V1c0-.6.4-1 1-1Z"},null,-1)),La=_(()=>f("path",{d:"M12 6c0 .6-.4 1-1 1H1a1 1 0 0 1 0-2h10c.6 0 1 .4 1 1Z"},null,-1)),Da=[ba,La],Ya={key:18,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},Oa=_(()=>f("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4 0a4 4 0 0 0-4 4v12a4 4 0 0 0 4 4h12a4 4 0 0 0 4-4V4a4 4 0 0 0-4-4H4ZM2 4c0-1.1.9-2 2-2h12a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V4Zm8 8a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z"},null,-1)),Ta=[Oa],xa={key:19,viewBox:"0 0 256 230",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMinYMin meet"},Ha=_(()=>f("path",{d:"M251.22 187.856c5.785 10.045 6.345 20.608 1.538 28.958-4.8 8.357-14.192 13.143-25.768 13.143h-21.816c.259-4.068.431-8.17.431-12.302 0-4.628-.215-9.198-.531-13.754l14.35-.014c3.528 0 6.38-2.867 6.38-6.403a6.46 6.46 0 0 0-.768-3.053l-91.46-158.97a6.349 6.349 0 0 0-5.54-3.24 6.374 6.374 0 0 0-5.461 3.09l-14.522 25.243c44.134 33.27 73.804 84.813 77.864 143.333.316 4.548.531 9.119.531 13.753 0 4.132-.172 8.228-.424 12.302h-71.246c.388-4.053.611-8.148.611-12.302 0-4.649-.273-9.233-.776-13.753-3.52-32.206-19.286-60.748-42.503-80.89l-10.003 17.376c17.54 16.325 29.512 38.558 32.767 63.514.59 4.505.92 9.09.92 13.753 0 4.154-.273 8.264-.74 12.302H29.01c-11.576 0-20.968-4.793-25.768-13.15-4.807-8.35-4.247-18.905 1.538-28.958l13.56-23.238a79.42 79.42 0 0 1 20.715 16.052l-8.083 13.768a6.523 6.523 0 0 0-.77 3.054 6.383 6.383 0 0 0 6.382 6.395l32.033.015c-2.687-15.356-9.772-29.21-19.918-40.183-5.979-6.445-12.963-11.9-20.738-16.074l35.77-62.15a151.427 151.427 0 0 1 21.564 14.624c30.827 25.013 51.644 61.955 55.416 103.776h19.172c-3.91-48.892-28.477-92.006-64.937-120.548a171.205 171.205 0 0 0-21.672-14.457l30.532-53.045C109.583 5.77 118.42 0 128.036 0c9.607 0 18.438 5.77 24.223 15.823l98.961 172.033z"},null,-1)),Ra=[Ha],Na={key:20,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 10 10"},Pa=_(()=>f("path",{d:"M7.8 9.2a1 1 0 1 0 1.4-1.4L6.4 5l2.8-2.8A1 1 0 1 0 7.8.8L5 3.6 2.2.8A1 1 0 1 0 .8 2.2L3.6 5 .8 7.8a1 1 0 1 0 1.4 1.4L5 6.4l2.8 2.8Z"},null,-1)),Ia=[Pa],Aa={key:21,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},Wa=_(()=>f("path",{d:"M14,11.75a.74.74,0,0,1-.53-.22L8,6.06,2.53,11.53a.75.75,0,0,1-1.06-1.06l6-6a.75.75,0,0,1,1.06,0l6,6a.75.75,0,0,1,0,1.06A.74.74,0,0,1,14,11.75Z"},null,-1)),Fa=[Wa],Va={key:22,xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"},Ea=re('',3),Za=[Ea],Ua={key:23,xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 1000 1000","xml:space":"preserve"},za=_(()=>f("g",null,[f("path",{fill:"#F43F3F",d:"M370.1,257.7c-131.9,25-258,88.5-360.1,190.4l98,97.8c76.5-76.4,169.9-125.8,268.2-148.1L370.1,257.7z M175.2,612.9l95.2,95c34-33.9,73.7-58.8,116-74.5l-6-139C305.2,514.5,234.2,554,175.2,612.9z M616.5,255.3l-6,139.6C713.6,415.7,812,466,892,545.8l98-97.8C884.4,342.7,753.3,278.4,616.5,255.3z M432.8,735.9c-37.1,37-37.1,97.1,0,134.1c37.1,37,97.3,37,134.4,0c37.1-37,37.1-97.1,0-134.1C530.1,698.8,469.9,698.8,432.8,735.9z M600.3,628.8c47.3,15.3,91.7,41.7,129.3,79.1l95.2-95C762.3,550.6,686.4,510,606.3,491L600.3,628.8z M534.7,632.5l23.1-530.3H430.7l23.1,530.3H534.7z"})],-1)),Ba=[za],ja={key:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Ga=_(()=>f("path",{d:"m19 1h-14a5.006 5.006 0 0 0 -5 5v12a5.006 5.006 0 0 0 5 5h14a5.006 5.006 0 0 0 5-5v-12a5.006 5.006 0 0 0 -5-5zm-14 2h14a3 3 0 0 1 3 3v1h-20v-1a3 3 0 0 1 3-3zm14 18h-14a3 3 0 0 1 -3-3v-9h20v9a3 3 0 0 1 -3 3zm0-8a1 1 0 0 1 -1 1h-12a1 1 0 0 1 0-2h12a1 1 0 0 1 1 1zm-4 4a1 1 0 0 1 -1 1h-8a1 1 0 0 1 0-2h8a1 1 0 0 1 1 1zm-12-12a1 1 0 1 1 1 1 1 1 0 0 1 -1-1zm3 0a1 1 0 1 1 1 1 1 1 0 0 1 -1-1zm3 0a1 1 0 1 1 1 1 1 1 0 0 1 -1-1z"},null,-1)),$a=[Ga],qa={key:25,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 26"},Ja=_(()=>f("path",{"fill-rule":"evenodd",d:"M11.65 0c-.8 0-1.45.64-1.45 1.44 0 .79.65 1.43 1.45 1.43h.49v.84c-.31.03-.63.08-.94.14-.52.1-.87.6-.77 1.11.1.52.6.87 1.13.77.48-.1.96-.14 1.44-.16V7a.5.5 0 0 0 1 0V5.6a9.52 9.52 0 0 1 5.86 2.58l-1.24 1.5a.5.5 0 1 0 .76.64l1.17-1.4A9.24 9.24 0 0 1 22.7 15H21a.5.5 0 0 0 0 1h1.63a9.16 9.16 0 0 1-2.42 5.1l-.84-.93a.5.5 0 0 0-.74.66l.86.97A9.48 9.48 0 0 1 14 24.06V23a.5.5 0 0 0-1 0v1.08a9.52 9.52 0 0 1-1.41-.15.97.97 0 0 0-1.14.76.96.96 0 0 0 .78 1.12 11.5 11.5 0 0 0 9.33-2.4 11.2 11.2 0 0 0 4.09-8.6 11.04 11.04 0 0 0-3.32-7.88l.8-.78.1.09.66.7.7-.67.7-.66.71-.66-.67-.7-.67-.69-.67-.69-.7.66-.7.66-.7.66.57.6-.84.83a11.4 11.4 0 0 0-5.56-2.5v-.9h.48c.8 0 1.46-.65 1.46-1.44C17 .64 16.34 0 15.54 0h-3.89Zm2.43 3.68V1.9h1.46c.27 0 .48-.21.48-.47a.48.48 0 0 0-.48-.48h-3.89a.48.48 0 0 0-.48.48c0 .26.22.47.48.47h1.46v1.74c.33 0 .65 0 .97.03Zm9.55 1.24-.67-.7-.7.67.66.69.7-.66ZM5.83 7.66c0-.27.21-.48.48-.48h1.95c.26 0 .48.21.48.48 0 .26-.22.48-.48.48H6.3a.48.48 0 0 1-.48-.48Zm-1.95 2.87c0-.27.22-.48.49-.48h3.89c.26 0 .48.21.48.48 0 .26-.22.48-.48.48H4.37a.48.48 0 0 1-.49-.48Zm-.48 8.14a.48.48 0 0 0-.49.47c0 .27.22.48.49.48h4.86c.26 0 .48-.21.48-.48a.48.48 0 0 0-.48-.47H3.4ZM0 16.27c0-.26.22-.48.49-.48h7.77c.26 0 .48.22.48.48 0 .27-.22.48-.48.48H.49a.48.48 0 0 1-.49-.48Zm2.43-3.35a.48.48 0 0 0-.49.48c0 .26.22.48.49.48h5.83c.26 0 .48-.22.48-.48a.48.48 0 0 0-.48-.48H2.43Zm3.4 9.1c0-.27.21-.48.48-.48h1.95c.26 0 .48.21.48.48 0 .26-.22.47-.48.47H6.3a.48.48 0 0 1-.48-.47Zm12.5-10.06a.95.95 0 0 0-.2-1.18.98.98 0 0 0-1.2-.08l-4.96 3.39a2.29 2.29 0 0 0-.33 3.52 2.36 2.36 0 0 0 3.69-.48l3-5.17Zm-5.26 3.7 1.44-.98-.87 1.5a.4.4 0 0 1-.62.08.39.39 0 0 1 .05-.6Z","clip-rule":"evenodd"},null,-1)),Ka=[Ja],Qa={key:26,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Xa=_(()=>f("path",{d:"M19,1H5A5.006,5.006,0,0,0,0,6V18a5.006,5.006,0,0,0,5,5H19a5.006,5.006,0,0,0,5-5V6A5.006,5.006,0,0,0,19,1ZM5,3H19a3,3,0,0,1,2.78,1.887l-7.658,7.659a3.007,3.007,0,0,1-4.244,0L2.22,4.887A3,3,0,0,1,5,3ZM19,21H5a3,3,0,0,1-3-3V7.5L8.464,13.96a5.007,5.007,0,0,0,7.072,0L22,7.5V18A3,3,0,0,1,19,21Z"},null,-1)),e0=[Xa],t0={key:27,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},s0=_(()=>f("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M19 3H5a3 3 0 0 0-3 3v12a3 3 0 0 0 3 3h14a3 3 0 0 0 3-3V6a3 3 0 0 0-3-3ZM5 1a5 5 0 0 0-5 5v12a5 5 0 0 0 5 5h14a5 5 0 0 0 5-5V6a5 5 0 0 0-5-5H5Z"},null,-1)),a0=_(()=>f("path",{d:"M11.6 11.8V5.4c0-.2.2-.4.4-.4s.4.2.4.4v6.4a2 2 0 0 1 0 4v2.8c0 .2-.2.4-.4.4a.4.4 0 0 1-.4-.4v-2.9a2 2 0 0 1 0-3.9ZM12 15a1.2 1.2 0 1 0 0-2.4 1.2 1.2 0 0 0 0 2.4ZM16.6 8.5V5.4c0-.2.2-.4.4-.4s.4.2.4.4v3.1a2 2 0 0 1 0 4v6.1c0 .2-.2.4-.4.4a.4.4 0 0 1-.4-.4v-6.2a2 2 0 0 1 0-3.9Zm.4 3.2a1.2 1.2 0 1 0 0-2.4 1.2 1.2 0 0 0 0 2.4ZM6.6 8.5V5.4c0-.2.2-.4.4-.4s.4.2.4.4v3.1a2 2 0 0 1 0 4v6.1c0 .2-.2.4-.4.4a.4.4 0 0 1-.4-.4v-6.2a2 2 0 0 1 0-4Zm.4 3.2a1.2 1.2 0 1 0 0-2.4 1.2 1.2 0 0 0 0 2.4Z"},null,-1)),r0=[s0,a0],n0={key:28,class:"svg-icon",fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},i0=_(()=>f("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M16 2a1.4 1.4 0 011.4 1.4v1.4a1.4 1.4 0 11-2.8 0V3.4A1.4 1.4 0 0116 2zM6.1 6.1a1.4 1.4 0 011.98 0l.99.99a1.4 1.4 0 11-1.98 1.98l-.99-.99a1.4 1.4 0 010-1.98zm19.8 0a1.4 1.4 0 010 1.98l-.99.99a1.4 1.4 0 01-1.98-1.98l.99-.99a1.4 1.4 0 011.98 0zM9 16a7 7 0 1114 0 7 7 0 01-14 0zm-7 0a1.4 1.4 0 011.4-1.4h1.4a1.4 1.4 0 110 2.8H3.4A1.4 1.4 0 012 16zm23.8 0a1.4 1.4 0 011.4-1.4h1.4a1.4 1.4 0 110 2.8h-1.4a1.4 1.4 0 01-1.4-1.4zm-2.87 6.93a1.4 1.4 0 011.98 0l.99.99a1.4 1.4 0 01-1.98 1.98l-.99-.99a1.4 1.4 0 010-1.98zm-15.84 0a1.4 1.4 0 011.98 1.98l-.99.99a1.4 1.4 0 01-1.98-1.98l.99-.99zM16 25.8a1.4 1.4 0 011.4 1.4v1.4a1.4 1.4 0 11-2.8 0v-1.4a1.4 1.4 0 011.4-1.4z",fill:"url(#paint0_linear)"},null,-1)),o0=_(()=>f("defs",null,[f("linearGradient",{id:"paint0_linear",x1:"2",y1:"2",x2:"30",y2:"30",gradientUnits:"userSpaceOnUse"},[f("stop",{class:"transition-all duration-200","stop-color":"#FACC15"}),f("stop",{class:"transition-all duration-200",offset:"1","stop-color":"#FA9D16"})])],-1)),l0=[i0,o0],d0={key:29,fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},h0=_(()=>f("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M9.353 2.939a1 1 0 01.22 1.08 8 8 0 0010.408 10.408 1 1 0 011.301 1.3A10.003 10.003 0 0112 22C6.477 22 2 17.523 2 12c0-4.207 2.598-7.805 6.273-9.282a1 1 0 011.08.22z"},null,-1)),u0=[h0],c0={key:30,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512.1 512.1"},f0=_(()=>f("path",{d:"M128 406c4 0 8-4 8-8V124a8 8 0 0 0-15 0v274c0 4 3 8 7 8zM384 264c-4 0-7 3-7 7v204c0 12-11 22-23 22H158c-12 0-22-10-22-22v-47a8 8 0 0 0-15 0v47c0 20 16 37 37 37h196c21 0 38-17 38-37V271c0-4-4-7-8-7zM354 0H158c-21 0-37 17-37 38v56a8 8 0 0 0 15 0V38c0-13 10-23 22-23h31c8 15 24 25 41 25h52c17 0 33-10 41-25h31c12 0 23 10 23 23v203a8 8 0 0 0 15 0V38c0-21-17-38-38-38zm-72 25h-52c-9 0-17-4-23-10h98c-6 6-14 10-23 10z"},null,-1)),m0=_(()=>f("path",{d:"M287 478a8 8 0 0 0 0-15h-62a8 8 0 0 0 0 15h62z"},null,-1)),_0=[f0,m0],v0={key:31,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512.1 512.1"},y0=_(()=>f("path",{d:"M408 0H104C80 0 60 20 60 44v26a8 8 0 0 0 15 0V44c0-16 13-29 29-29h304c16 0 29 13 29 29v424c0 16-13 29-29 29H104c-16 0-29-13-29-29V100a8 8 0 0 0-15 0v368c0 24 20 44 44 44h304c24 0 44-20 44-44V44c0-24-20-44-44-44z"},null,-1)),w0=_(()=>f("path",{d:"M90 61v284a8 8 0 0 0 15 0V69h302v103a8 8 0 0 0 15 0V61c0-4-3-7-7-7H97c-4 0-7 3-7 7zM90 432c0 4 3 8 7 8h318c4 0 7-4 7-8V202a8 8 0 0 0-15 0v223H105v-50a8 8 0 0 0-15 0v57zM233 467a23 23 0 1 0 46-1 23 23 0 0 0-46 1zm31 0a8 8 0 1 1-16 0 8 8 0 0 1 16 0zM288 42a8 8 0 0 0 0-15h-34a8 8 0 0 0 0 15h34z"},null,-1)),p0=_(()=>f("circle",{cx:"225.6",cy:"34.3",r:"7.5"},null,-1)),g0=[y0,w0,p0],M0={key:32,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 510.5 510.5"},k0=_(()=>f("path",{d:"M473 30H148a7 7 0 1 0 0 15h325c12 0 23 10 23 22v265h-50a8 8 0 0 0 0 15h50v31c0 13-11 23-23 23H117a7 7 0 1 0 0 15h70l-14 50h-25a7 7 0 1 0 0 15h215a7 7 0 1 0 0-15h-26l-13-50h149c21 0 38-17 38-38V67c0-20-17-37-38-37zM322 466H189l13-50h106l14 50z"},null,-1)),C0=_(()=>f("path",{d:"M87 401H38c-13 0-23-10-23-23v-31h401a7 7 0 1 0 0-15H15V67c0-12 10-22 23-22h80a7 7 0 1 0 0-15H38C17 30 0 47 0 67v311c0 21 17 38 38 38h49a7 7 0 1 0 0-15z"},null,-1)),S0=[k0,C0],b0={key:33,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},L0=_(()=>f("path",{d:"m338 197-19 221c-1 10 14 11 15 1l19-221a8 8 0 0 0-15-1zM166 190c-4 0-7 4-7 8l19 221c1 10 16 9 15-1l-19-221c0-4-4-7-8-7zM249 197v222a7 7 0 1 0 15 0V197a7 7 0 1 0-15 0z"},null,-1)),D0=_(()=>f("path",{d:"M445 58H327V32c0-18-14-32-31-32h-80c-17 0-31 14-31 32v26H67a35 35 0 0 0 0 69h8l28 333c2 29 27 52 57 52h192c30 0 55-23 57-52l4-46a8 8 0 0 0-15-2l-4 46c-2 22-20 39-42 39H160c-22 0-40-17-42-39L90 127h22a7 7 0 1 0 0-15H67a20 20 0 0 1 0-39h378a20 20 0 0 1 0 39H147a7 7 0 1 0 0 15h275l-21 250a8 8 0 0 0 15 2l21-252h8a35 35 0 0 0 0-69zm-133 0H200V32c0-10 7-17 16-17h80c9 0 16 7 16 17v26z"},null,-1)),Y0=[L0,D0],O0={key:34,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 26 22"},T0=_(()=>f("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5 0a4 4 0 0 0-4 4v11.27A2 2 0 0 0 0 17v2a3 3 0 0 0 3 3h20a3 3 0 0 0 3-3v-2a2 2 0 0 0-1-1.73V4a4 4 0 0 0-4-4H5Zm18 15V4a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v11h5.5l2 1.5H15l2.25-1.5H23Zm-6.9 3.16L17.87 17H24v2a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1v-2h5.83l1.47 1.1.53.4h5.77l.5-.34Zm3.02-11.35h-2.18v4.38h.87V9.88h1.32A.88.88 0 0 0 20 9V7.69a.88.88 0 0 0-.88-.88ZM17.82 9V7.69h1.3V9h-1.3Zm-6.57-1.31h-.88V6.8H13v.88h-.88v3.5h-.87v-3.5Zm4.81-.88h-2.62v.88h.87v3.5h.88v-3.5h.87V6.8ZM8.63 8.56V6.81h.87v4.38h-.88V9.44h-1.3v1.75h-.88V6.8h.87v1.75h1.32Z"},null,-1)),x0=[T0],H0={key:35,viewBox:"0 0 16 16",fill:"currentColor",height:"100%",width:"100%"},R0=_(()=>f("path",{d:"M14,11.75a.74.74,0,0,1-.53-.22L8,6.06,2.53,11.53a.75.75,0,0,1-1.06-1.06l6-6a.75.75,0,0,1,1.06,0l6,6a.75.75,0,0,1,0,1.06A.74.74,0,0,1,14,11.75Z"},null,-1)),N0=[R0],P0={key:36,width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},I0=_(()=>f("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1)),A0=_(()=>f("path",{d:"M5 13a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2v6a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2v-6z"},null,-1)),W0=_(()=>f("path",{d:"M11 16a1 1 0 1 0 2 0a1 1 0 0 0 -2 0"},null,-1)),F0=_(()=>f("path",{d:"M8 11v-4a4 4 0 1 1 8 0v4"},null,-1)),V0=[I0,A0,W0,F0],E0={key:37,width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},Z0=re('',5),U0=[Z0],z0={key:38,viewBox:"0 0 24 24",width:"24",height:"24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},B0=re('',7),j0=[B0],G0={key:39,viewBox:"0 0 24 24",width:"24",height:"24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},$0=re('',5),q0=[$0],J0={key:40,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"icon icon-tabler icons-tabler-outline icon-tabler-window-maximize"},K0=re('',5),Q0=[K0],X0=vt({__name:"icon-svg",props:{name:{}},setup(e){return(t,s)=>(v(),y("div",gs,[t.name==="bolt"?(v(),y("svg",Ms,Cs)):t.name==="bolt-slash"?(v(),y("svg",Ss,Ls)):t.name==="copy"?(v(),y("svg",Ds,Ts)):t.name==="docs"?(v(),y("svg",xs,Rs)):t.name==="fullscreen"?(v(),y("svg",Ns,Is)):t.name==="github"?(v(),y("svg",As,Fs)):t.name==="discord"?(v(),y("svg",Vs,Zs)):t.name==="heartBeat"?(v(),y("svg",Us,Bs)):t.name==="host"?(v(),y("svg",js,$s)):t.name==="inspector"?(v(),y("svg",qs,Xs)):t.name==="ray"?(v(),y("svg",ea,sa)):t.name==="var-dump"?(v(),y("svg",aa,na)):t.name==="logo"?(v(),y("svg",ia,la)):t.name==="logo-short"?(v(),y("svg",da,fa)):t.name==="logout"?(v(),y("svg",ma,ya)):t.name==="minus"?(v(),y("svg",wa,ga)):t.name==="newScreen"?(v(),y("svg",Ma,Ca)):t.name==="plus"?(v(),y("svg",Sa,Da)):t.name==="screen"?(v(),y("svg",Ya,Ta)):t.name==="sentry"?(v(),y("svg",xa,Ra)):t.name==="times"?(v(),y("svg",Na,Ia)):t.name==="dd"?(v(),y("svg",Aa,Fa)):t.name==="connected"?(v(),y("svg",Va,Za)):t.name==="disconnected"?(v(),y("svg",Ua,Ba)):t.name==="events"?(v(),y("svg",ja,$a)):t.name==="profiler"?(v(),y("svg",qa,Ka)):t.name==="smtp"?(v(),y("svg",Qa,e0)):t.name==="settings"?(v(),y("svg",t0,r0)):t.name==="sun"?(v(),y("svg",n0,l0)):t.name==="moon"?(v(),y("svg",d0,u0)):t.name==="mobile-device"?(v(),y("svg",c0,_0)):t.name==="tablet-device"?(v(),y("svg",v0,g0)):t.name==="desktop-device"?(v(),y("svg",M0,S0)):t.name==="trash-bin"?(v(),y("svg",b0,Y0)):t.name==="http-dumps"?(v(),y("svg",O0,x0)):t.name==="collapsed"?(v(),y("svg",H0,N0)):t.name==="lock"?(v(),y("svg",P0,V0)):t.name==="lock-off"?(v(),y("svg",E0,U0)):t.name==="image-download"?(v(),y("svg",z0,j0)):t.name==="file-download"?(v(),y("svg",G0,q0)):t.name==="window-maximize"?(v(),y("svg",J0,Q0)):ms("",!0)]))}}),T4=ys(X0,[["__scopeId","data-v-b36b4488"]]);var fe=(e=>(e.ASC="asc",e.DESC="desc",e.DEFAULT="default",e))(fe||{});const er={class:"sorting-wrapper__markers"},x4=vt({__name:"sorting-wrapper",props:{sort:{default:fe.DEFAULT}},emits:["changeSort"],setup(e,{emit:t}){const s=e,a=t,r=()=>{const n=[fe.ASC,fe.DESC,fe.DEFAULT],i=n.findIndex(u=>u===s.sort),l=n[i+1]||n[0];a("changeSort",l)};return(n,i)=>(v(),y("span",{class:"sorting-wrapper",onClick:r},[ws(n.$slots,"default",{},void 0,!0),f("span",er,[f("span",{class:rt(["sorting-wrapper__marker sorting-wrapper__marker--asc",{"sorting-wrapper__marker--active":n.sort===nt(fe).ASC}])},null,2),f("span",{class:rt(["sorting-wrapper__marker sorting-wrapper__marker--desc",{"sorting-wrapper__marker--active":n.sort===nt(fe).DESC}])},null,2)])]))}});var yt={exports:{}};(function(e,t){(function(s,a){e.exports=a()})(Fe,function(){return function s(a,r,n){var i=window,l="application/octet-stream",u=n||l,c=a,D=!r&&!n&&c,Y=document.createElement("a"),P=function(x){return String(x)},oe=i.Blob||i.MozBlob||i.WebKitBlob||P,Oe=r||"download",le,y1;if(oe=oe.call?oe.bind(i):Blob,String(this)==="true"&&(c=[c,u],u=c[0],c=c[1]),D&&D.length<2048&&(Oe=D.split("/").pop().split("?")[0],Y.href=D,Y.href.indexOf(D)!==-1)){var Te=new XMLHttpRequest;return Te.open("GET",D,!0),Te.responseType="blob",Te.onload=function(x){s(x.target.response,Oe,l)},setTimeout(function(){Te.send()},0),Te}if(/^data:([\w+-]+\/[\w+.-]+)?[,;]/.test(c))if(c.length>1024*1024*1.999&&oe!==P)c=et(c),u=c.type||l;else return navigator.msSaveBlob?navigator.msSaveBlob(et(c),Oe):He(c);else if(/([\x80-\xff])/.test(c)){var xe=0,w1=new Uint8Array(c.length),cs=w1.length;for(xe;xe>>0,a;for(a=0;a0)for(s=0;s=0;return(n?s?"+":"":"-")+Math.pow(10,Math.max(0,r)).toString().substr(1)+a}var I1=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Je=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,g1={},Me={};function m(e,t,s,a){var r=a;typeof a=="string"&&(r=function(){return this[a]()}),e&&(Me[e]=r),t&&(Me[t[0]]=function(){return B(r.apply(this,arguments),t[1],t[2])}),s&&(Me[s]=function(){return this.localeData().ordinal(r.apply(this,arguments),e)})}function or(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function lr(e){var t=e.match(I1),s,a;for(s=0,a=t.length;s=0&&Je.test(e);)e=e.replace(Je,a),Je.lastIndex=0,s-=1;return e}var dr={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function hr(e){var t=this._longDateFormat[e],s=this._longDateFormat[e.toUpperCase()];return t||!s?t:(this._longDateFormat[e]=s.match(I1).map(function(a){return a==="MMMM"||a==="MM"||a==="DD"||a==="dddd"?a.slice(1):a}).join(""),this._longDateFormat[e])}var ur="Invalid date";function cr(){return this._invalidDate}var fr="%d",mr=/\d{1,2}/;function _r(e){return this._ordinal.replace("%d",e)}var vr={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function yr(e,t,s,a){var r=this._relativeTime[s];return G(r)?r(e,t,s,a):r.replace(/%d/i,e)}function wr(e,t){var s=this._relativeTime[e>0?"future":"past"];return G(s)?s(t):s.replace(/%s/i,t)}var lt={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function W(e){return typeof e=="string"?lt[e]||lt[e.toLowerCase()]:void 0}function A1(e){var t={},s,a;for(a in e)M(e,a)&&(s=W(a),s&&(t[s]=e[a]));return t}var pr={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function gr(e){var t=[],s;for(s in e)M(e,s)&&t.push({unit:s,priority:pr[s]});return t.sort(function(a,r){return a.priority-r.priority}),t}var Ct=/\d/,N=/\d\d/,St=/\d{3}/,W1=/\d{4}/,o1=/[+-]?\d{6}/,b=/\d\d?/,bt=/\d\d\d\d?/,Lt=/\d\d\d\d\d\d?/,l1=/\d{1,3}/,F1=/\d{1,4}/,d1=/[+-]?\d{1,6}/,Le=/\d+/,h1=/[+-]?\d+/,Mr=/Z|[+-]\d\d:?\d\d/gi,u1=/Z|[+-]\d\d(?::?\d\d)?/gi,kr=/[+-]?\d+(\.\d{1,3})?/,$e=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,De=/^[1-9]\d?/,V1=/^([1-9]\d|\d)/,t1;t1={};function h(e,t,s){t1[e]=G(t)?t:function(a,r){return a&&s?s:t}}function Cr(e,t){return M(t1,e)?t1[e](t._strict,t._locale):new RegExp(Sr(e))}function Sr(e){return ee(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,s,a,r,n){return s||a||r||n}))}function ee(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function I(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function p(e){var t=+e,s=0;return t!==0&&isFinite(t)&&(s=I(t)),s}var Y1={};function C(e,t){var s,a=t,r;for(typeof e=="string"&&(e=[e]),se(t)&&(a=function(n,i){i[t]=p(n)}),r=e.length,s=0;s68?1900:2e3)};var Dt=Ye("FullYear",!0);function Yr(){return c1(this.year())}function Ye(e,t){return function(s){return s!=null?(Yt(this,e,s),d.updateOffset(this,t),this):Ee(this,e)}}function Ee(e,t){if(!e.isValid())return NaN;var s=e._d,a=e._isUTC;switch(t){case"Milliseconds":return a?s.getUTCMilliseconds():s.getMilliseconds();case"Seconds":return a?s.getUTCSeconds():s.getSeconds();case"Minutes":return a?s.getUTCMinutes():s.getMinutes();case"Hours":return a?s.getUTCHours():s.getHours();case"Date":return a?s.getUTCDate():s.getDate();case"Day":return a?s.getUTCDay():s.getDay();case"Month":return a?s.getUTCMonth():s.getMonth();case"FullYear":return a?s.getUTCFullYear():s.getFullYear();default:return NaN}}function Yt(e,t,s){var a,r,n,i,l;if(!(!e.isValid()||isNaN(s))){switch(a=e._d,r=e._isUTC,t){case"Milliseconds":return void(r?a.setUTCMilliseconds(s):a.setMilliseconds(s));case"Seconds":return void(r?a.setUTCSeconds(s):a.setSeconds(s));case"Minutes":return void(r?a.setUTCMinutes(s):a.setMinutes(s));case"Hours":return void(r?a.setUTCHours(s):a.setHours(s));case"Date":return void(r?a.setUTCDate(s):a.setDate(s));case"FullYear":break;default:return}n=s,i=e.month(),l=e.date(),l=l===29&&i===1&&!c1(n)?28:l,r?a.setUTCFullYear(n,i,l):a.setFullYear(n,i,l)}}function Or(e){return e=W(e),G(this[e])?this[e]():this}function Tr(e,t){if(typeof e=="object"){e=A1(e);var s=gr(e),a,r=s.length;for(a=0;a=0?(l=new Date(e+400,t,s,a,r,n,i),isFinite(l.getFullYear())&&l.setFullYear(e)):l=new Date(e,t,s,a,r,n,i),l}function Ze(e){var t,s;return e<100&&e>=0?(s=Array.prototype.slice.call(arguments),s[0]=e+400,t=new Date(Date.UTC.apply(null,s)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function s1(e,t,s){var a=7+t-s,r=(7+Ze(e,0,a).getUTCDay()-t)%7;return-r+a-1}function Nt(e,t,s,a,r){var n=(7+s-a)%7,i=s1(e,a,r),l=1+7*(t-1)+n+i,u,c;return l<=0?(u=e-1,c=Ve(u)+l):l>Ve(e)?(u=e+1,c=l-Ve(e)):(u=e,c=l),{year:u,dayOfYear:c}}function Ue(e,t,s){var a=s1(e.year(),t,s),r=Math.floor((e.dayOfYear()-a-1)/7)+1,n,i;return r<1?(i=e.year()-1,n=r+te(i,t,s)):r>te(e.year(),t,s)?(n=r-te(e.year(),t,s),i=e.year()+1):(i=e.year(),n=r),{week:n,year:i}}function te(e,t,s){var a=s1(e,t,s),r=s1(e+1,t,s);return(Ve(e)-a+r)/7}m("w",["ww",2],"wo","week");m("W",["WW",2],"Wo","isoWeek");h("w",b,De);h("ww",b,N);h("W",b,De);h("WW",b,N);qe(["w","ww","W","WW"],function(e,t,s,a){t[a.substr(0,1)]=p(e)});function Ur(e){return Ue(e,this._week.dow,this._week.doy).week}var zr={dow:0,doy:6};function Br(){return this._week.dow}function jr(){return this._week.doy}function Gr(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function $r(e){var t=Ue(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}m("d",0,"do","day");m("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)});m("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)});m("dddd",0,0,function(e){return this.localeData().weekdays(this,e)});m("e",0,0,"weekday");m("E",0,0,"isoWeekday");h("d",b);h("e",b);h("E",b);h("dd",function(e,t){return t.weekdaysMinRegex(e)});h("ddd",function(e,t){return t.weekdaysShortRegex(e)});h("dddd",function(e,t){return t.weekdaysRegex(e)});qe(["dd","ddd","dddd"],function(e,t,s,a){var r=s._locale.weekdaysParse(e,a,s._strict);r!=null?t.d=r:w(s).invalidWeekday=e});qe(["d","e","E"],function(e,t,s,a){t[a]=p(e)});function qr(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function Jr(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Z1(e,t){return e.slice(t,7).concat(e.slice(0,t))}var Kr="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Pt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Qr="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Xr=$e,en=$e,tn=$e;function sn(e,t){var s=E(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?Z1(s,this._week.dow):e?s[e.day()]:s}function an(e){return e===!0?Z1(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function rn(e){return e===!0?Z1(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function nn(e,t,s){var a,r,n,i=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],a=0;a<7;++a)n=j([2e3,1]).day(a),this._minWeekdaysParse[a]=this.weekdaysMin(n,"").toLocaleLowerCase(),this._shortWeekdaysParse[a]=this.weekdaysShort(n,"").toLocaleLowerCase(),this._weekdaysParse[a]=this.weekdays(n,"").toLocaleLowerCase();return s?t==="dddd"?(r=O.call(this._weekdaysParse,i),r!==-1?r:null):t==="ddd"?(r=O.call(this._shortWeekdaysParse,i),r!==-1?r:null):(r=O.call(this._minWeekdaysParse,i),r!==-1?r:null):t==="dddd"?(r=O.call(this._weekdaysParse,i),r!==-1||(r=O.call(this._shortWeekdaysParse,i),r!==-1)?r:(r=O.call(this._minWeekdaysParse,i),r!==-1?r:null)):t==="ddd"?(r=O.call(this._shortWeekdaysParse,i),r!==-1||(r=O.call(this._weekdaysParse,i),r!==-1)?r:(r=O.call(this._minWeekdaysParse,i),r!==-1?r:null)):(r=O.call(this._minWeekdaysParse,i),r!==-1||(r=O.call(this._weekdaysParse,i),r!==-1)?r:(r=O.call(this._shortWeekdaysParse,i),r!==-1?r:null))}function on(e,t,s){var a,r,n;if(this._weekdaysParseExact)return nn.call(this,e,t,s);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),a=0;a<7;a++){if(r=j([2e3,1]).day(a),s&&!this._fullWeekdaysParse[a]&&(this._fullWeekdaysParse[a]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[a]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[a]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[a]||(n="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[a]=new RegExp(n.replace(".",""),"i")),s&&t==="dddd"&&this._fullWeekdaysParse[a].test(e))return a;if(s&&t==="ddd"&&this._shortWeekdaysParse[a].test(e))return a;if(s&&t==="dd"&&this._minWeekdaysParse[a].test(e))return a;if(!s&&this._weekdaysParse[a].test(e))return a}}function ln(e){if(!this.isValid())return e!=null?this:NaN;var t=Ee(this,"Day");return e!=null?(e=qr(e,this.localeData()),this.add(e-t,"d")):t}function dn(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function hn(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=Jr(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function un(e){return this._weekdaysParseExact?(M(this,"_weekdaysRegex")||U1.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(M(this,"_weekdaysRegex")||(this._weekdaysRegex=Xr),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function cn(e){return this._weekdaysParseExact?(M(this,"_weekdaysRegex")||U1.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(M(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=en),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function fn(e){return this._weekdaysParseExact?(M(this,"_weekdaysRegex")||U1.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(M(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=tn),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function U1(){function e(D,Y){return Y.length-D.length}var t=[],s=[],a=[],r=[],n,i,l,u,c;for(n=0;n<7;n++)i=j([2e3,1]).day(n),l=ee(this.weekdaysMin(i,"")),u=ee(this.weekdaysShort(i,"")),c=ee(this.weekdays(i,"")),t.push(l),s.push(u),a.push(c),r.push(l),r.push(u),r.push(c);t.sort(e),s.sort(e),a.sort(e),r.sort(e),this._weekdaysRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function z1(){return this.hours()%12||12}function mn(){return this.hours()||24}m("H",["HH",2],0,"hour");m("h",["hh",2],0,z1);m("k",["kk",2],0,mn);m("hmm",0,0,function(){return""+z1.apply(this)+B(this.minutes(),2)});m("hmmss",0,0,function(){return""+z1.apply(this)+B(this.minutes(),2)+B(this.seconds(),2)});m("Hmm",0,0,function(){return""+this.hours()+B(this.minutes(),2)});m("Hmmss",0,0,function(){return""+this.hours()+B(this.minutes(),2)+B(this.seconds(),2)});function It(e,t){m(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}It("a",!0);It("A",!1);function At(e,t){return t._meridiemParse}h("a",At);h("A",At);h("H",b,V1);h("h",b,De);h("k",b,De);h("HH",b,N);h("hh",b,N);h("kk",b,N);h("hmm",bt);h("hmmss",Lt);h("Hmm",bt);h("Hmmss",Lt);C(["H","HH"],T);C(["k","kk"],function(e,t,s){var a=p(e);t[T]=a===24?0:a});C(["a","A"],function(e,t,s){s._isPm=s._locale.isPM(e),s._meridiem=e});C(["h","hh"],function(e,t,s){t[T]=p(e),w(s).bigHour=!0});C("hmm",function(e,t,s){var a=e.length-2;t[T]=p(e.substr(0,a)),t[V]=p(e.substr(a)),w(s).bigHour=!0});C("hmmss",function(e,t,s){var a=e.length-4,r=e.length-2;t[T]=p(e.substr(0,a)),t[V]=p(e.substr(a,2)),t[X]=p(e.substr(r)),w(s).bigHour=!0});C("Hmm",function(e,t,s){var a=e.length-2;t[T]=p(e.substr(0,a)),t[V]=p(e.substr(a))});C("Hmmss",function(e,t,s){var a=e.length-4,r=e.length-2;t[T]=p(e.substr(0,a)),t[V]=p(e.substr(a,2)),t[X]=p(e.substr(r))});function _n(e){return(e+"").toLowerCase().charAt(0)==="p"}var vn=/[ap]\.?m?\.?/i,yn=Ye("Hours",!0);function wn(e,t,s){return e>11?s?"pm":"PM":s?"am":"AM"}var Wt={calendar:nr,longDateFormat:dr,invalidDate:ur,ordinal:fr,dayOfMonthOrdinalParse:mr,relativeTime:vr,months:Hr,monthsShort:Ot,week:zr,weekdays:Kr,weekdaysMin:Qr,weekdaysShort:Pt,meridiemParse:vn},L={},Pe={},ze;function pn(e,t){var s,a=Math.min(e.length,t.length);for(s=0;s0;){if(r=f1(n.slice(0,s).join("-")),r)return r;if(a&&a.length>=s&&pn(n,a)>=s-1)break;s--}t++}return ze}function Mn(e){return!!(e&&e.match("^[^/\\\\]*$"))}function f1(e){var t=null,s;if(L[e]===void 0&&typeof module<"u"&&module&&module.exports&&Mn(e))try{t=ze._abbr,s=require,s("./locale/"+e),ue(t)}catch{L[e]=null}return L[e]}function ue(e,t){var s;return e&&(R(t)?s=ne(e):s=B1(e,t),s?ze=s:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),ze._abbr}function B1(e,t){if(t!==null){var s,a=Wt;if(t.abbr=e,L[e]!=null)Mt("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),a=L[e]._config;else if(t.parentLocale!=null)if(L[t.parentLocale]!=null)a=L[t.parentLocale]._config;else if(s=f1(t.parentLocale),s!=null)a=s._config;else return Pe[t.parentLocale]||(Pe[t.parentLocale]=[]),Pe[t.parentLocale].push({name:e,config:t}),null;return L[e]=new P1(L1(a,t)),Pe[e]&&Pe[e].forEach(function(r){B1(r.name,r.config)}),ue(e),L[e]}else return delete L[e],null}function kn(e,t){if(t!=null){var s,a,r=Wt;L[e]!=null&&L[e].parentLocale!=null?L[e].set(L1(L[e]._config,t)):(a=f1(e),a!=null&&(r=a._config),t=L1(r,t),a==null&&(t.abbr=e),s=new P1(t),s.parentLocale=L[e],L[e]=s),ue(e)}else L[e]!=null&&(L[e].parentLocale!=null?(L[e]=L[e].parentLocale,e===ue()&&ue(e)):L[e]!=null&&delete L[e]);return L[e]}function ne(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return ze;if(!E(e)){if(t=f1(e),t)return t;e=[e]}return gn(e)}function Cn(){return D1(L)}function j1(e){var t,s=e._a;return s&&w(e).overflow===-2&&(t=s[Q]<0||s[Q]>11?Q:s[z]<1||s[z]>E1(s[H],s[Q])?z:s[T]<0||s[T]>24||s[T]===24&&(s[V]!==0||s[X]!==0||s[me]!==0)?T:s[V]<0||s[V]>59?V:s[X]<0||s[X]>59?X:s[me]<0||s[me]>999?me:-1,w(e)._overflowDayOfYear&&(tz)&&(t=z),w(e)._overflowWeeks&&t===-1&&(t=Lr),w(e)._overflowWeekday&&t===-1&&(t=Dr),w(e).overflow=t),e}var Sn=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,bn=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Ln=/Z|[+-]\d\d(?::?\d\d)?/,Ke=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],M1=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Dn=/^\/?Date\((-?\d+)/i,Yn=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,On={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function Ft(e){var t,s,a=e._i,r=Sn.exec(a)||bn.exec(a),n,i,l,u,c=Ke.length,D=M1.length;if(r){for(w(e).iso=!0,t=0,s=c;tVe(i)||e._dayOfYear===0)&&(w(e)._overflowDayOfYear=!0),s=Ze(i,0,e._dayOfYear),e._a[Q]=s.getUTCMonth(),e._a[z]=s.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=a[t]=r[t];for(;t<7;t++)e._a[t]=a[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[T]===24&&e._a[V]===0&&e._a[X]===0&&e._a[me]===0&&(e._nextDay=!0,e._a[T]=0),e._d=(e._useUTC?Ze:Zr).apply(null,a),n=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[T]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==n&&(w(e).weekdayMismatch=!0)}}function An(e){var t,s,a,r,n,i,l,u,c;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(n=1,i=4,s=pe(t.GG,e._a[H],Ue(S(),1,4).year),a=pe(t.W,1),r=pe(t.E,1),(r<1||r>7)&&(u=!0)):(n=e._locale._week.dow,i=e._locale._week.doy,c=Ue(S(),n,i),s=pe(t.gg,e._a[H],c.year),a=pe(t.w,c.week),t.d!=null?(r=t.d,(r<0||r>6)&&(u=!0)):t.e!=null?(r=t.e+n,(t.e<0||t.e>6)&&(u=!0)):r=n),a<1||a>te(s,n,i)?w(e)._overflowWeeks=!0:u!=null?w(e)._overflowWeekday=!0:(l=Nt(s,a,r,n,i),e._a[H]=l.year,e._dayOfYear=l.dayOfYear)}d.ISO_8601=function(){};d.RFC_2822=function(){};function $1(e){if(e._f===d.ISO_8601){Ft(e);return}if(e._f===d.RFC_2822){Vt(e);return}e._a=[],w(e).empty=!0;var t=""+e._i,s,a,r,n,i,l=t.length,u=0,c,D;for(r=kt(e._f,e._locale).match(I1)||[],D=r.length,s=0;s0&&w(e).unusedInput.push(i),t=t.slice(t.indexOf(a)+a.length),u+=a.length),Me[n]?(a?w(e).empty=!1:w(e).unusedTokens.push(n),br(n,a,e)):e._strict&&!a&&w(e).unusedTokens.push(n);w(e).charsLeftOver=l-u,t.length>0&&w(e).unusedInput.push(t),e._a[T]<=12&&w(e).bigHour===!0&&e._a[T]>0&&(w(e).bigHour=void 0),w(e).parsedDateParts=e._a.slice(0),w(e).meridiem=e._meridiem,e._a[T]=Wn(e._locale,e._a[T],e._meridiem),c=w(e).era,c!==null&&(e._a[H]=e._locale.erasConvertYear(c,e._a[H])),G1(e),j1(e)}function Wn(e,t,s){var a;return s==null?t:e.meridiemHour!=null?e.meridiemHour(t,s):(e.isPM!=null&&(a=e.isPM(s),a&&t<12&&(t+=12),!a&&t===12&&(t=0)),t)}function Fn(e){var t,s,a,r,n,i,l=!1,u=e._f.length;if(u===0){w(e).invalidFormat=!0,e._d=new Date(NaN);return}for(r=0;rthis?this:e:i1()});function Ut(e,t){var s,a;if(t.length===1&&E(t[0])&&(t=t[0]),!t.length)return S();for(s=t[0],a=1;athis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function i2(){if(!R(this._isDSTShifted))return this._isDSTShifted;var e={},t;return N1(e,this),e=Et(e),e._a?(t=e._isUTC?j(e._a):S(e._a),this._isDSTShifted=this.isValid()&&Kn(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function o2(){return this.isValid()?!this._isUTC:!1}function l2(){return this.isValid()?this._isUTC:!1}function Bt(){return this.isValid()?this._isUTC&&this._offset===0:!1}var d2=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,h2=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function U(e,t){var s=e,a=null,r,n,i;return Xe(e)?s={ms:e._milliseconds,d:e._days,M:e._months}:se(e)||!isNaN(+e)?(s={},t?s[t]=+e:s.milliseconds=+e):(a=d2.exec(e))?(r=a[1]==="-"?-1:1,s={y:0,d:p(a[z])*r,h:p(a[T])*r,m:p(a[V])*r,s:p(a[X])*r,ms:p(O1(a[me]*1e3))*r}):(a=h2.exec(e))?(r=a[1]==="-"?-1:1,s={y:ce(a[2],r),M:ce(a[3],r),w:ce(a[4],r),d:ce(a[5],r),h:ce(a[6],r),m:ce(a[7],r),s:ce(a[8],r)}):s==null?s={}:typeof s=="object"&&("from"in s||"to"in s)&&(i=u2(S(s.from),S(s.to)),s={},s.ms=i.milliseconds,s.M=i.months),n=new m1(s),Xe(e)&&M(e,"_locale")&&(n._locale=e._locale),Xe(e)&&M(e,"_isValid")&&(n._isValid=e._isValid),n}U.fn=m1.prototype;U.invalid=Jn;function ce(e,t){var s=e&&parseFloat(e.replace(",","."));return(isNaN(s)?0:s)*t}function ht(e,t){var s={};return s.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(s.months,"M").isAfter(t)&&--s.months,s.milliseconds=+t-+e.clone().add(s.months,"M"),s}function u2(e,t){var s;return e.isValid()&&t.isValid()?(t=J1(t,e),e.isBefore(t)?s=ht(e,t):(s=ht(t,e),s.milliseconds=-s.milliseconds,s.months=-s.months),s):{milliseconds:0,months:0}}function jt(e,t){return function(s,a){var r,n;return a!==null&&!isNaN(+a)&&(Mt(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),n=s,s=a,a=n),r=U(s,a),Gt(this,r,e),this}}function Gt(e,t,s,a){var r=t._milliseconds,n=O1(t._days),i=O1(t._months);e.isValid()&&(a=a??!0,i&&xt(e,Ee(e,"Month")+i*s),n&&Yt(e,"Date",Ee(e,"Date")+n*s),r&&e._d.setTime(e._d.valueOf()+r*s),a&&d.updateOffset(e,n||i))}var c2=jt(1,"add"),f2=jt(-1,"subtract");function $t(e){return typeof e=="string"||e instanceof String}function m2(e){return Z(e)||je(e)||$t(e)||se(e)||v2(e)||_2(e)||e===null||e===void 0}function _2(e){var t=_e(e)&&!H1(e),s=!1,a=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],r,n,i=a.length;for(r=0;rs.valueOf():s.valueOf()9999?Qe(s,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):G(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",Qe(s,"Z")):Qe(s,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function T2(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",s,a,r,n;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),s="["+e+'("]',a=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",r="-MM-DD[T]HH:mm:ss.SSS",n=t+'[")]',this.format(s+a+r+n)}function x2(e){e||(e=this.isUtc()?d.defaultFormatUtc:d.defaultFormat);var t=Qe(this,e);return this.localeData().postformat(t)}function H2(e,t){return this.isValid()&&(Z(e)&&e.isValid()||S(e).isValid())?U({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function R2(e){return this.from(S(),e)}function N2(e,t){return this.isValid()&&(Z(e)&&e.isValid()||S(e).isValid())?U({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function P2(e){return this.to(S(),e)}function qt(e){var t;return e===void 0?this._locale._abbr:(t=ne(e),t!=null&&(this._locale=t),this)}var Jt=A("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function Kt(){return this._locale}var a1=1e3,ke=60*a1,r1=60*ke,Qt=(365*400+97)*24*r1;function Ce(e,t){return(e%t+t)%t}function Xt(e,t,s){return e<100&&e>=0?new Date(e+400,t,s)-Qt:new Date(e,t,s).valueOf()}function es(e,t,s){return e<100&&e>=0?Date.UTC(e+400,t,s)-Qt:Date.UTC(e,t,s)}function I2(e){var t,s;if(e=W(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(s=this._isUTC?es:Xt,e){case"year":t=s(this.year(),0,1);break;case"quarter":t=s(this.year(),this.month()-this.month()%3,1);break;case"month":t=s(this.year(),this.month(),1);break;case"week":t=s(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=s(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=s(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=Ce(t+(this._isUTC?0:this.utcOffset()*ke),r1);break;case"minute":t=this._d.valueOf(),t-=Ce(t,ke);break;case"second":t=this._d.valueOf(),t-=Ce(t,a1);break}return this._d.setTime(t),d.updateOffset(this,!0),this}function A2(e){var t,s;if(e=W(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(s=this._isUTC?es:Xt,e){case"year":t=s(this.year()+1,0,1)-1;break;case"quarter":t=s(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=s(this.year(),this.month()+1,1)-1;break;case"week":t=s(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=s(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=s(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=r1-Ce(t+(this._isUTC?0:this.utcOffset()*ke),r1)-1;break;case"minute":t=this._d.valueOf(),t+=ke-Ce(t,ke)-1;break;case"second":t=this._d.valueOf(),t+=a1-Ce(t,a1)-1;break}return this._d.setTime(t),d.updateOffset(this,!0),this}function W2(){return this._d.valueOf()-(this._offset||0)*6e4}function F2(){return Math.floor(this.valueOf()/1e3)}function V2(){return new Date(this.valueOf())}function E2(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function Z2(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function U2(){return this.isValid()?this.toISOString():null}function z2(){return R1(this)}function B2(){return de({},w(this))}function j2(){return w(this).overflow}function G2(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}m("N",0,0,"eraAbbr");m("NN",0,0,"eraAbbr");m("NNN",0,0,"eraAbbr");m("NNNN",0,0,"eraName");m("NNNNN",0,0,"eraNarrow");m("y",["y",1],"yo","eraYear");m("y",["yy",2],0,"eraYear");m("y",["yyy",3],0,"eraYear");m("y",["yyyy",4],0,"eraYear");h("N",K1);h("NN",K1);h("NNN",K1);h("NNNN",ri);h("NNNNN",ni);C(["N","NN","NNN","NNNN","NNNNN"],function(e,t,s,a){var r=s._locale.erasParse(e,a,s._strict);r?w(s).era=r:w(s).invalidEra=e});h("y",Le);h("yy",Le);h("yyy",Le);h("yyyy",Le);h("yo",ii);C(["y","yy","yyy","yyyy"],H);C(["yo"],function(e,t,s,a){var r;s._locale._eraYearOrdinalRegex&&(r=e.match(s._locale._eraYearOrdinalRegex)),s._locale.eraYearOrdinalParse?t[H]=s._locale.eraYearOrdinalParse(e,r):t[H]=parseInt(e,10)});function $2(e,t){var s,a,r,n=this._eras||ne("en")._eras;for(s=0,a=n.length;s=0)return n[a]}function J2(e,t){var s=e.since<=e.until?1:-1;return t===void 0?d(e.since).year():d(e.since).year()+(t-e.offset)*s}function K2(){var e,t,s,a=this.localeData().eras();for(e=0,t=a.length;en&&(t=n),fi.call(this,e,t,s,a,r))}function fi(e,t,s,a,r){var n=Nt(e,t,s,a,r),i=Ze(n.year,0,n.dayOfYear);return this.year(i.getUTCFullYear()),this.month(i.getUTCMonth()),this.date(i.getUTCDate()),this}m("Q",0,"Qo","quarter");h("Q",Ct);C("Q",function(e,t){t[Q]=(p(e)-1)*3});function mi(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}m("D",["DD",2],"Do","date");h("D",b,De);h("DD",b,N);h("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});C(["D","DD"],z);C("Do",function(e,t){t[z]=p(e.match(b)[0])});var ss=Ye("Date",!0);m("DDD",["DDDD",3],"DDDo","dayOfYear");h("DDD",l1);h("DDDD",St);C(["DDD","DDDD"],function(e,t,s){s._dayOfYear=p(e)});function _i(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}m("m",["mm",2],0,"minute");h("m",b,V1);h("mm",b,N);C(["m","mm"],V);var vi=Ye("Minutes",!1);m("s",["ss",2],0,"second");h("s",b,V1);h("ss",b,N);C(["s","ss"],X);var yi=Ye("Seconds",!1);m("S",0,0,function(){return~~(this.millisecond()/100)});m(0,["SS",2],0,function(){return~~(this.millisecond()/10)});m(0,["SSS",3],0,"millisecond");m(0,["SSSS",4],0,function(){return this.millisecond()*10});m(0,["SSSSS",5],0,function(){return this.millisecond()*100});m(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});m(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});m(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});m(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});h("S",l1,Ct);h("SS",l1,N);h("SSS",l1,St);var he,as;for(he="SSSS";he.length<=9;he+="S")h(he,Le);function wi(e,t){t[me]=p(("0."+e)*1e3)}for(he="S";he.length<=9;he+="S")C(he,wi);as=Ye("Milliseconds",!1);m("z",0,0,"zoneAbbr");m("zz",0,0,"zoneName");function pi(){return this._isUTC?"UTC":""}function gi(){return this._isUTC?"Coordinated Universal Time":""}var o=Ge.prototype;o.add=c2;o.calendar=p2;o.clone=g2;o.diff=D2;o.endOf=A2;o.format=x2;o.from=H2;o.fromNow=R2;o.to=N2;o.toNow=P2;o.get=Or;o.invalidAt=j2;o.isAfter=M2;o.isBefore=k2;o.isBetween=C2;o.isSame=S2;o.isSameOrAfter=b2;o.isSameOrBefore=L2;o.isValid=z2;o.lang=Jt;o.locale=qt;o.localeData=Kt;o.max=zn;o.min=Un;o.parsingFlags=B2;o.set=Tr;o.startOf=I2;o.subtract=f2;o.toArray=E2;o.toObject=Z2;o.toDate=V2;o.toISOString=O2;o.inspect=T2;typeof Symbol<"u"&&Symbol.for!=null&&(o[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});o.toJSON=U2;o.toString=Y2;o.unix=F2;o.valueOf=W2;o.creationData=G2;o.eraName=K2;o.eraNarrow=Q2;o.eraAbbr=X2;o.eraYear=ei;o.year=Dt;o.isLeapYear=Yr;o.weekYear=oi;o.isoWeekYear=li;o.quarter=o.quarters=mi;o.month=Ht;o.daysInMonth=Fr;o.week=o.weeks=Gr;o.isoWeek=o.isoWeeks=$r;o.weeksInYear=ui;o.weeksInWeekYear=ci;o.isoWeeksInYear=di;o.isoWeeksInISOWeekYear=hi;o.date=ss;o.day=o.days=ln;o.weekday=dn;o.isoWeekday=hn;o.dayOfYear=_i;o.hour=o.hours=yn;o.minute=o.minutes=vi;o.second=o.seconds=yi;o.millisecond=o.milliseconds=as;o.utcOffset=Xn;o.utc=t2;o.local=s2;o.parseZone=a2;o.hasAlignedHourOffset=r2;o.isDST=n2;o.isLocal=o2;o.isUtcOffset=l2;o.isUtc=Bt;o.isUTC=Bt;o.zoneAbbr=pi;o.zoneName=gi;o.dates=A("dates accessor is deprecated. Use date instead.",ss);o.months=A("months accessor is deprecated. Use month instead",Ht);o.years=A("years accessor is deprecated. Use year instead",Dt);o.zone=A("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",e2);o.isDSTShifted=A("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",i2);function Mi(e){return S(e*1e3)}function ki(){return S.apply(null,arguments).parseZone()}function rs(e){return e}var k=P1.prototype;k.calendar=ir;k.longDateFormat=hr;k.invalidDate=cr;k.ordinal=_r;k.preparse=rs;k.postformat=rs;k.relativeTime=yr;k.pastFuture=wr;k.set=rr;k.eras=$2;k.erasParse=q2;k.erasConvertYear=J2;k.erasAbbrRegex=si;k.erasNameRegex=ti;k.erasNarrowRegex=ai;k.months=Pr;k.monthsShort=Ir;k.monthsParse=Wr;k.monthsRegex=Er;k.monthsShortRegex=Vr;k.week=Ur;k.firstDayOfYear=jr;k.firstDayOfWeek=Br;k.weekdays=sn;k.weekdaysMin=rn;k.weekdaysShort=an;k.weekdaysParse=on;k.weekdaysRegex=un;k.weekdaysShortRegex=cn;k.weekdaysMinRegex=fn;k.isPM=_n;k.meridiem=wn;function n1(e,t,s,a){var r=ne(),n=j().set(a,t);return r[s](n,e)}function ns(e,t,s){if(se(e)&&(t=e,e=void 0),e=e||"",t!=null)return n1(e,t,s,"month");var a,r=[];for(a=0;a<12;a++)r[a]=n1(e,a,s,"month");return r}function X1(e,t,s,a){typeof e=="boolean"?(se(t)&&(s=t,t=void 0),t=t||""):(t=e,s=t,e=!1,se(t)&&(s=t,t=void 0),t=t||"");var r=ne(),n=e?r._week.dow:0,i,l=[];if(s!=null)return n1(t,(s+n)%7,a,"day");for(i=0;i<7;i++)l[i]=n1(t,(i+n)%7,a,"day");return l}function Ci(e,t){return ns(e,t,"months")}function Si(e,t){return ns(e,t,"monthsShort")}function bi(e,t,s){return X1(e,t,s,"weekdays")}function Li(e,t,s){return X1(e,t,s,"weekdaysShort")}function Di(e,t,s){return X1(e,t,s,"weekdaysMin")}ue("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,s=p(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+s}});d.lang=A("moment.lang is deprecated. Use moment.locale instead.",ue);d.langData=A("moment.langData is deprecated. Use moment.localeData instead.",ne);var $=Math.abs;function Yi(){var e=this._data;return this._milliseconds=$(this._milliseconds),this._days=$(this._days),this._months=$(this._months),e.milliseconds=$(e.milliseconds),e.seconds=$(e.seconds),e.minutes=$(e.minutes),e.hours=$(e.hours),e.months=$(e.months),e.years=$(e.years),this}function is(e,t,s,a){var r=U(t,s);return e._milliseconds+=a*r._milliseconds,e._days+=a*r._days,e._months+=a*r._months,e._bubble()}function Oi(e,t){return is(this,e,t,1)}function Ti(e,t){return is(this,e,t,-1)}function ut(e){return e<0?Math.floor(e):Math.ceil(e)}function xi(){var e=this._milliseconds,t=this._days,s=this._months,a=this._data,r,n,i,l,u;return e>=0&&t>=0&&s>=0||e<=0&&t<=0&&s<=0||(e+=ut(x1(s)+t)*864e5,t=0,s=0),a.milliseconds=e%1e3,r=I(e/1e3),a.seconds=r%60,n=I(r/60),a.minutes=n%60,i=I(n/60),a.hours=i%24,t+=I(i/24),u=I(os(t)),s+=u,t-=ut(x1(u)),l=I(s/12),s%=12,a.days=t,a.months=s,a.years=l,this}function os(e){return e*4800/146097}function x1(e){return e*146097/4800}function Hi(e){if(!this.isValid())return NaN;var t,s,a=this._milliseconds;if(e=W(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+a/864e5,s=this._months+os(t),e){case"month":return s;case"quarter":return s/3;case"year":return s/12}else switch(t=this._days+Math.round(x1(this._months)),e){case"week":return t/7+a/6048e5;case"day":return t+a/864e5;case"hour":return t*24+a/36e5;case"minute":return t*1440+a/6e4;case"second":return t*86400+a/1e3;case"millisecond":return Math.floor(t*864e5)+a;default:throw new Error("Unknown unit "+e)}}function ie(e){return function(){return this.as(e)}}var ls=ie("ms"),Ri=ie("s"),Ni=ie("m"),Pi=ie("h"),Ii=ie("d"),Ai=ie("w"),Wi=ie("M"),Fi=ie("Q"),Vi=ie("y"),Ei=ls;function Zi(){return U(this)}function Ui(e){return e=W(e),this.isValid()?this[e+"s"]():NaN}function ve(e){return function(){return this.isValid()?this._data[e]:NaN}}var zi=ve("milliseconds"),Bi=ve("seconds"),ji=ve("minutes"),Gi=ve("hours"),$i=ve("days"),qi=ve("months"),Ji=ve("years");function Ki(){return I(this.days()/7)}var K=Math.round,ge={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Qi(e,t,s,a,r){return r.relativeTime(t||1,!!s,e,a)}function Xi(e,t,s,a){var r=U(e).abs(),n=K(r.as("s")),i=K(r.as("m")),l=K(r.as("h")),u=K(r.as("d")),c=K(r.as("M")),D=K(r.as("w")),Y=K(r.as("y")),P=n<=s.ss&&["s",n]||n0,P[4]=a,Qi.apply(null,P)}function e4(e){return e===void 0?K:typeof e=="function"?(K=e,!0):!1}function t4(e,t){return ge[e]===void 0?!1:t===void 0?ge[e]:(ge[e]=t,e==="s"&&(ge.ss=t-1),!0)}function s4(e,t){if(!this.isValid())return this.localeData().invalidDate();var s=!1,a=ge,r,n;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(s=e),typeof t=="object"&&(a=Object.assign({},ge,t),t.s!=null&&t.ss==null&&(a.ss=t.s-1)),r=this.localeData(),n=Xi(this,!s,a,r),s&&(n=r.pastFuture(+this,n)),r.postformat(n)}var k1=Math.abs;function we(e){return(e>0)-(e<0)||+e}function v1(){if(!this.isValid())return this.localeData().invalidDate();var e=k1(this._milliseconds)/1e3,t=k1(this._days),s=k1(this._months),a,r,n,i,l=this.asSeconds(),u,c,D,Y;return l?(a=I(e/60),r=I(a/60),e%=60,a%=60,n=I(s/12),s%=12,i=e?e.toFixed(3).replace(/\.?0+$/,""):"",u=l<0?"-":"",c=we(this._months)!==we(l)?"-":"",D=we(this._days)!==we(l)?"-":"",Y=we(this._milliseconds)!==we(l)?"-":"",u+"P"+(n?c+n+"Y":"")+(s?c+s+"M":"")+(t?D+t+"D":"")+(r||a||e?"T":"")+(r?Y+r+"H":"")+(a?Y+a+"M":"")+(e?Y+i+"S":"")):"P0D"}var g=m1.prototype;g.isValid=qn;g.abs=Yi;g.add=Oi;g.subtract=Ti;g.as=Hi;g.asMilliseconds=ls;g.asSeconds=Ri;g.asMinutes=Ni;g.asHours=Pi;g.asDays=Ii;g.asWeeks=Ai;g.asMonths=Wi;g.asQuarters=Fi;g.asYears=Vi;g.valueOf=Ei;g._bubble=xi;g.clone=Zi;g.get=Ui;g.milliseconds=zi;g.seconds=Bi;g.minutes=ji;g.hours=Gi;g.days=$i;g.weeks=Ki;g.months=qi;g.years=Ji;g.humanize=s4;g.toISOString=v1;g.toString=v1;g.toJSON=v1;g.locale=qt;g.localeData=Kt;g.toIsoString=A("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",v1);g.lang=Jt;m("X",0,0,"unix");m("x",0,0,"valueOf");h("x",h1);h("X",kr);C("X",function(e,t,s){s._d=new Date(parseFloat(e)*1e3)});C("x",function(e,t,s){s._d=new Date(p(e))});//! moment.js +d.version="2.30.1";sr(S);d.fn=o;d.min=Bn;d.max=jn;d.now=Gn;d.utc=j;d.unix=Mi;d.months=Ci;d.isDate=je;d.locale=ue;d.invalid=i1;d.duration=U;d.isMoment=Z;d.weekdays=bi;d.parseZone=ki;d.localeData=ne;d.isDuration=Xe;d.monthsShort=Si;d.weekdaysMin=Di;d.defineLocale=B1;d.updateLocale=kn;d.locales=Cn;d.weekdaysShort=Li;d.normalizeUnits=W;d.relativeTimeRounding=e4;d.relativeTimeThreshold=t4;d.calendarFormat=w2;d.prototype=o;d.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};var q=(e=>(e.VAR_DUMP="var-dump",e.SMTP="smtp",e.SENTRY="sentry",e.PROFILER="profiler",e.MONOLOG="monolog",e.INSPECTOR="inspector",e.HTTP_DUMP="http-dump",e.RAY_DUMP="ray",e))(q||{}),ae=(e=>(e.CACHED_EVENTS="cached_events",e.LOCKED_EVENTS="locked_events",e.THEME="theme",e.NAVBAR="navbar",e))(ae||{});const J={VAR_DUMP:q.VAR_DUMP,SMTP:q.SMTP,SENTRY:q.SENTRY,PROFILER:q.PROFILER,MONOLOG:q.MONOLOG,INSPECTOR:q.INSPECTOR,HTTP_DUMP:q.HTTP_DUMP,RAY_DUMP:q.RAY_DUMP,ALL_EVENTS:"all-events"},{localStorage:Se}=window,a4=()=>{const e=Se==null?void 0:Se.getItem(ae.LOCKED_EVENTS);return e?JSON.parse(e):[]},C1=e=>{Se==null||Se.setItem(ae.LOCKED_EVENTS,JSON.stringify(e))},S1=Be("useLockedIdsStore",{state:()=>({lockedIds:a4()||[]}),actions:{remove(e){this.lockedIds=this.lockedIds.filter(t=>t!==e),C1(this.lockedIds)},add(e){this.lockedIds.push(e),C1(this.lockedIds)},syncWithActive(e){if(!e.length){this.lockedIds.length=0;return}this.lockedIds.filter(t=>!e.includes(t)),C1(this.lockedIds)}}}),ct=500,r4=Be("useEventStore",{state:()=>({events:[]}),actions:{initialize(e){this.events=e.slice(0,ct)},addList(e){e.forEach(t=>{this.events.some(a=>a.uuid===t.uuid)?this.events=this.events.map(a=>a.uuid!==t.uuid?a:t):(this.events.unshift(t),this.events.length>ct&&this.events.pop())})},removeAll(){const{lockedIds:e}=S1();if(e.length){this.events=this.events.filter(({uuid:t})=>e.includes(t));return}this.events.length=0},removeByIds(e){const{lockedIds:t}=S1();if(t.length){this.events=this.events.filter(({uuid:s})=>!e.includes(s)||t.includes(s));return}this.events=this.events.filter(({uuid:s})=>!e.includes(s))},removeById(e){this.removeByIds([e])},removeByType(e){const{lockedIds:t}=S1();if(t.length){this.events=this.events.filter(({type:s,uuid:a})=>s!==e||t.includes(a));return}this.events=this.events.filter(({type:s})=>s!==e)}}}),ds={[J.SENTRY]:[],[J.INSPECTOR]:[],[J.PROFILER]:[],[J.SMTP]:[],[J.RAY_DUMP]:[],[J.VAR_DUMP]:[],[J.HTTP_DUMP]:[],[J.ALL_EVENTS]:[]},{localStorage:be}=window,n4=()=>{const e=be==null?void 0:be.getItem(ae.CACHED_EVENTS);return e?JSON.parse(e):ds},Ae=e=>{be==null||be.setItem(ae.CACHED_EVENTS,JSON.stringify(e))},R4=Be("useCachedIdsStore",{state:()=>({cachedIds:n4()}),getters:{cachedTypesList(e){return Object.entries(e.cachedIds).filter(([t,s])=>s.length>0).map(([t])=>t)}},actions:{setByType(e){const{events:t}=r4();t.filter(({type:s})=>s===e||e===J.ALL_EVENTS).forEach(s=>{this.cachedIds[e].push(s.uuid)}),Ae(this.cachedIds)},removeByType(e){this.cachedIds[e].length=0,Ae(this.cachedIds)},removeByIds(e){this.cachedTypesList.forEach(t=>{this.cachedIds[t]=this.cachedIds[t].filter(s=>e.includes(s))}),Ae(this.cachedIds)},removeById(e){this.removeByIds([e])},removeAll(){this.cachedIds=ds,Ae(this.cachedIds)},syncWithActive(e){if(!e.length){this.removeAll();return}this.cachedTypesList.forEach(t=>{this.cachedIds[t]=this.cachedIds[t].filter(s=>e.includes(s))}),Ae(this.cachedIds)}}}),N4=Be("connectionStore",{state:()=>({wsConnectionStatus:"disconnected"}),getters:{isConnectedWS({wsConnectionStatus:e}){return e==="connected"}},actions:{setStatus(e){this.wsConnectionStatus=e},removeWSConnection(){this.setStatus("disconnected")},addWSConnection(){this.setStatus("connected")}}}),F={LIGHT:"light",DARK:"dark"},i4=()=>{var s,a,r,n;const e=(window==null?void 0:window.localStorage.getItem(ae.THEME))===F.DARK,t=window.matchMedia("(prefers-color-scheme: dark)").matches;return e||t?((a=(s=document==null?void 0:document.documentElement)==null?void 0:s.classList)==null||a.add(F.DARK),F.DARK):((n=(r=document==null?void 0:document.documentElement)==null?void 0:r.classList)==null||n.remove(F.DARK),F.LIGHT)},o4=()=>{var e,t,s,a;{const n=((window==null?void 0:window.localStorage.getItem(ae.NAVBAR))||"true")==="true";return n?(t=(e=document==null?void 0:document.documentElement)==null?void 0:e.classList)==null||t.add("navbar-fixed"):(a=(s=document==null?void 0:document.documentElement)==null?void 0:s.classList)==null||a.remove("navbar-fixed"),n}},P4=Be("settingsStore",{state:()=>({themeType:i4(),isFixedHeader:o4()}),actions:{changeTheme(){var e,t,s,a;this.themeType=this.themeType===F.DARK?F.LIGHT:F.DARK,window==null||window.localStorage.setItem(ae.THEME,this.themeType),this.themeType===F.LIGHT?(t=(e=document==null?void 0:document.documentElement)==null?void 0:e.classList)==null||t.remove(F.DARK):(a=(s=document==null?void 0:document.documentElement)==null?void 0:s.classList)==null||a.add(F.DARK)},changeNavbar(){var e,t,s,a;this.isFixedHeader=!this.isFixedHeader,window==null||window.localStorage.setItem(ae.NAVBAR,String(this.isFixedHeader)),this.isFixedHeader?(t=(e=document==null?void 0:document.documentElement)==null?void 0:e.classList)==null||t.add("navbar-fixed"):(a=(s=document==null?void 0:document.documentElement)==null?void 0:s.classList)==null||a.remove("navbar-fixed")}}});var l4=typeof Fe=="object"&&Fe&&Fe.Object===Object&&Fe,d4=l4,h4=d4,u4=typeof self=="object"&&self&&self.Object===Object&&self,c4=h4||u4||Function("return this")(),f4=c4,m4=f4,_4=m4.Symbol,hs=_4,ft=hs,us=Object.prototype,v4=us.hasOwnProperty,y4=us.toString,We=ft?ft.toStringTag:void 0;function w4(e){var t=v4.call(e,We),s=e[We];try{e[We]=void 0;var a=!0}catch{}var r=y4.call(e);return a&&(t?e[We]=s:delete e[We]),r}var p4=w4,g4=Object.prototype,M4=g4.toString;function k4(e){return M4.call(e)}var C4=k4,mt=hs,S4=p4,b4=C4,L4="[object Null]",D4="[object Undefined]",_t=mt?mt.toStringTag:void 0;function Y4(e){return e==null?e===void 0?D4:L4:_t&&_t in Object(e)?S4(e):b4(e)}var I4=Y4;export{q as E,T4 as I,J as P,fe as S,F as T,x4 as _,N4 as a,f4 as b,I4 as c,H4 as d,d4 as e,hs as f,r4 as g,d as h,R4 as i,S1 as j,P4 as u}; diff --git a/resources/frontend/_nuxt/Bn3khBIR.js b/resources/frontend/_nuxt/Bn3khBIR.js new file mode 100644 index 00000000..09581fd5 --- /dev/null +++ b/resources/frontend/_nuxt/Bn3khBIR.js @@ -0,0 +1 @@ +import{T as H,a as S,u as O,_ as P}from"./Cuqdu9nB.js";import"./BefdN0MI.js";import{d as T,c as i,o,a as u,b as n,t as _,e as c,f as m,w as p,u as d,g as h,F as q,r as b,h as y,p as w,i as C,_ as N,j as A,k as F,l as j,m as V,n as L}from"./BqbMuE7y.js";import{F as M}from"./CKX8kQhS.js";import{u as Q,P as U}from"./k1uqWTyJ.js";import{u as z}from"./DU45Wy3H.js";import"./BBk2F9bR.js";import{u as J}from"./B3ev0iw2.js";import"./CF6J2D0o.js";const $=r=>(w("data-v-9f166e22"),r=r(),C(),r),W={ref:"main",class:"http-dump-page"},X={class:"http-dump-page__main"},x={class:"http-dump-page__title"},G={class:"http-dump-page__title-method"},K={class:"http-dump-page__title-uri"},Y={key:0,class:"http-dump-page__section"},Z=$(()=>n("h1",null,"Headers",-1)),ee={key:1,class:"http-dump-page__section"},te=$(()=>n("h1",null,"Cookie",-1)),se={key:2,class:"http-dump-page__section"},ae=$(()=>n("h1",null,"Query Parameters",-1)),oe={key:3,class:"http-dump-page__section"},ne=$(()=>n("h1",null,"POST Data",-1)),ue={key:4,class:"http-dump-page__section"},le={class:"http-dump-page__attachments"},de={key:5,class:"http-dump-page__section"},pe=$(()=>n("h1",null,"Request Body",-1)),re={class:"http-dump-page__section-body"},ce=T({__name:"http-dump-page",props:{event:{}},setup(r){const l=r,D=i(()=>{var e,a;return decodeURI((a=(e=l.event.payload)==null?void 0:e.request)==null?void 0:a.uri)}),g=i(()=>{var e,a,t,s;return((a=(e=l.event.payload)==null?void 0:e.request)==null?void 0:a.post)&&Object.keys((s=(t=l.event.payload)==null?void 0:t.request)==null?void 0:s.post).length>0}),v=i(()=>{var e,a,t,s;return((a=(e=l.event.payload)==null?void 0:e.request)==null?void 0:a.query)&&Object.keys((s=(t=l.event.payload)==null?void 0:t.request)==null?void 0:s.query).length>0}),B=i(()=>{var e,a;return Object.keys(((a=(e=l.event.payload)==null?void 0:e.request)==null?void 0:a.headers)||{}).length>0}),I=i(()=>{var e,a,t,s;return((a=(e=l.event.payload)==null?void 0:e.request)==null?void 0:a.cookies)&&Object.keys((s=(t=l.event.payload)==null?void 0:t.request)==null?void 0:s.cookies).length>0}),f=i(()=>{var e,a,t;return((t=(a=(e=l.event.payload)==null?void 0:e.request)==null?void 0:a.body)==null?void 0:t.length)>0}),k=i(()=>{var e,a,t,s;return((a=(e=l.event.payload)==null?void 0:e.request)==null?void 0:a.files)&&Object.keys((s=(t=l.event.payload)==null?void 0:t.request)==null?void 0:s.files).length>0});return(e,a)=>(o(),u("div",W,[n("main",X,[n("h2",x,[n("span",G,_(e.event.payload.request.method),1),c(": "),n("span",K,"/"+_(D.value),1)]),B.value?(o(),u("section",Y,[Z,m(d(H),null,{default:p(()=>[(o(!0),u(q,null,b(e.event.payload.request.headers,(t,s)=>(o(),y(d(S),{key:s,title:String(s)},{default:p(()=>[c(_(t[0]||t),1)]),_:2},1032,["title"]))),128))]),_:1})])):h("",!0),I.value?(o(),u("section",ee,[te,m(d(H),null,{default:p(()=>[(o(!0),u(q,null,b(e.event.payload.request.cookies,(t,s)=>(o(),y(d(S),{key:s,title:String(s)},{default:p(()=>[c(_(t),1)]),_:2},1032,["title"]))),128))]),_:1})])):h("",!0),v.value?(o(),u("section",se,[ae,m(d(H),null,{default:p(()=>[(o(!0),u(q,null,b(e.event.payload.request.query,(t,s)=>(o(),y(d(S),{key:s,title:String(s)},{default:p(()=>[c(_(t),1)]),_:2},1032,["title"]))),128))]),_:1})])):h("",!0),g.value?(o(),u("section",oe,[ne,m(d(H),null,{default:p(()=>[(o(!0),u(q,null,b(e.event.payload.request.post,(t,s)=>(o(),y(d(S),{key:s,title:String(s)},{default:p(()=>[c(_(t),1)]),_:2},1032,["title"]))),128))]),_:1})])):h("",!0),k.value?(o(),u("section",ue,[n("h1",null,"Attachments ("+_(e.event.payload.request.files.length)+")",1),n("div",le,[(o(!0),u(q,null,b(e.event.payload.request.files,t=>(o(),y(d(M),{key:t.id,"event-id":e.event.id,attachment:t},null,8,["event-id","attachment"]))),128))])])):h("",!0),f.value?(o(),u("section",de,[pe,n("code",re,_(e.event.payload.request.body),1)])):h("",!0)])],512))}}),_e=N(ce,[["__scopeId","data-v-9f166e22"]]),E=r=>(w("data-v-43caba92"),r=r(),C(),r),ie={class:"http-dumps-event"},he={key:0,class:"http-dumps-event__loading"},me=E(()=>n("div",null,null,-1)),ve=E(()=>n("div",null,null,-1)),ye=E(()=>n("div",null,null,-1)),ge=[me,ve,ye],fe={class:"http-dumps-event__body"},ke=T({__name:"[id]",setup(r){const{normalizeHttpDumpEvent:l}=J(),{params:D}=A(),g=F(),v=D.id;Q({title:`Http dumps > ${v} | Buggregator`});const{events:B}=O(),{$authToken:I}=L(),f=j(!1),k=j(null),e=i(()=>k.value?l(k.value):null),a=()=>{B.removeById(v),g.push("/")};return V(async()=>{await z(B.getUrl(v),{headers:{"X-Auth-Token":I.token||""},onRequest(){f.value=!0},onResponse({response:{_data:s}}){k.value=s,f.value=!1},onResponseError(){g.push("/404")},onRequestError(){g.push("/404")}},"$WMtjDCJ5Me")}),(s,qe)=>{const R=P;return o(),u("main",ie,[m(d(U),{class:"http-dumps-event__head","button-title":"Delete event",onDelete:a},{default:p(()=>[m(R,{to:"/"},{default:p(()=>[c("Home")]),_:1}),c(" / "),m(R,{to:"/http-dumps"},{default:p(()=>[c("Http dumps")]),_:1}),c(" / "),m(R,{disabled:!0},{default:p(()=>[c(_(d(v)),1)]),_:1})]),_:1}),f.value&&!e.value?(o(),u("div",he,ge)):h("",!0),n("div",fe,[e.value?(o(),y(d(_e),{key:0,event:e.value},null,8,["event"])):h("",!0)])])}}}),je=N(ke,[["__scopeId","data-v-43caba92"]]);export{je as default}; diff --git a/resources/frontend/_nuxt/BnFX9pPB.js b/resources/frontend/_nuxt/BnFX9pPB.js new file mode 100644 index 00000000..2ec240cf --- /dev/null +++ b/resources/frontend/_nuxt/BnFX9pPB.js @@ -0,0 +1 @@ +import{n as i,R as c}from"./BqbMuE7y.js";import{E as o}from"./BefdN0MI.js";const s=()=>{const e=i(),{token:r}=e.$authToken??{token:null},u={"X-Auth-Token":r||""},n=m=>`${c}/api/smtp/${m}/attachments`;return{getAttachmentsRestUrl:n,getAttachments:m=>fetch(n(m),{headers:u}).then(t=>t.json()).then(t=>t!=null&&t.data?t.data.map(a=>({id:a.uuid,name:a.name,size:a.size,mime:a.mime,uri:a.path})):(t==null?void 0:t.code)===403?(console.error("Forbidden"),[]):(console.error("Fetch Error"),[]))}},l=e=>({id:e.uuid,type:o.SMTP,labels:[o.SMTP],origin:null,serverName:"",date:e.timestamp?new Date(e.timestamp*1e3):null,payload:e.payload}),A=()=>{const{getAttachments:e}=s();return{normalizeSmtpEvent:l,getAttachments:e}};export{A as u}; diff --git a/resources/frontend/_nuxt/BqbMuE7y.js b/resources/frontend/_nuxt/BqbMuE7y.js new file mode 100644 index 00000000..c3f58d97 --- /dev/null +++ b/resources/frontend/_nuxt/BqbMuE7y.js @@ -0,0 +1,34 @@ +const __vite__fileDeps=["./Bn3khBIR.js","./Cuqdu9nB.js","./BefdN0MI.js","./file-attachment.CqsEiJbK.css","./page-placeholder.DCtTWM-9.css","./CKX8kQhS.js","./CF6J2D0o.js","./k1uqWTyJ.js","./DU45Wy3H.js","./BBk2F9bR.js","./layout-sidebar.B5S_6p6L.css","./B3ev0iw2.js","./_id_.CFA44qd7.css","./DzqND28P.js","./Dp5Hh4Yf.js","./Cduf3Gc_.js","./DdKTkMGq.js","./DAR3qIk9.js","./BCrvxhm1.js","./BnFX9pPB.js","./DUf8yZCu.js","./page-layout.dn8du7E4.css","./Cnzz4dJo.js","./BHcW0LFx.js","./B_g6P6pq.js","./_id_.NxTxRTjH.css","./DvO467xH.js","./Ci77yoCC.js","./login.C6Eg3smd.css","./0ZriSCq6.js","./BIL_AGmQ.js","./_id_.BxcwVsLQ.css","./BMyZPxuX.js","./w8mAji56.js","./_id_.D3CjL8Ik.css","./BMdUaude.js","./BdrKFk9O.js","./_id_.BCxlJXrN.css","./wDBHmgcs.js","./O373Xneh.js","./settings.BTHthkag.css","./QHAIPh3w.js","./_id_.De0kIvGF.css","./DnxAvhKT.js","./CK35f-W6.js","./_id_.BDlsQ1ZI.css","./OC0GW5jB.js","./Rmtih61A.js","./blank.BaS2ecnP.css","./DkCVl2sj.js","./default.B5dxn6QE.css"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]); +/** +* @vue/shared v3.4.24 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**//*! #__NO_SIDE_EFFECTS__ */function yo(e,t){const n=new Set(e.split(","));return t?r=>n.has(r.toLowerCase()):r=>n.has(r)}const we={},pn=[],et=()=>{},dd=()=>!1,nr=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),vo=e=>e.startsWith("onUpdate:"),Me=Object.assign,wo=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},hd=Object.prototype.hasOwnProperty,ge=(e,t)=>hd.call(e,t),re=Array.isArray,gn=e=>rr(e)==="[object Map]",Ol=e=>rr(e)==="[object Set]",pd=e=>rr(e)==="[object RegExp]",ie=e=>typeof e=="function",Se=e=>typeof e=="string",sn=e=>typeof e=="symbol",ye=e=>e!==null&&typeof e=="object",So=e=>(ye(e)||ie(e))&&ie(e.then)&&ie(e.catch),Al=Object.prototype.toString,rr=e=>Al.call(e),gd=e=>rr(e).slice(8,-1),kl=e=>rr(e)==="[object Object]",To=e=>Se(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,_n=yo(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),jr=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},_d=/-(\w)/g,dt=jr(e=>e.replace(_d,(t,n)=>n?n.toUpperCase():"")),bd=/\B([A-Z])/g,kn=jr(e=>e.replace(bd,"-$1").toLowerCase()),Vr=jr(e=>e.charAt(0).toUpperCase()+e.slice(1)),ys=jr(e=>e?`on${Vr(e)}`:""),Ft=(e,t)=>!Object.is(e,t),Bn=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},md=e=>{const t=parseFloat(e);return isNaN(t)?e:t},xl=e=>{const t=Se(e)?Number(e):NaN;return isNaN(t)?e:t};let ha;const Il=()=>ha||(ha=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Ro(e){if(re(e)){const t={};for(let n=0;n{if(n){const r=n.split(yd);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function No(e){let t="";if(Se(e))t=e;else if(re(e))for(let n=0;nSe(e)?e:e==null?"":re(e)||ye(e)&&(e.toString===Al||!ie(e.toString))?JSON.stringify(e,Pl,2):String(e),Pl=(e,t)=>t&&t.__v_isRef?Pl(e,t.value):gn(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,s],i)=>(n[vs(r,i)+" =>"]=s,n),{})}:Ol(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>vs(n))}:sn(t)?vs(t):ye(t)&&!re(t)&&!kl(t)?String(t):t,vs=(e,t="")=>{var n;return sn(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/** +* @vue/reactivity v3.4.24 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let je;class Dl{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=je,!t&&je&&(this.index=(je.scopes||(je.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=je;try{return je=this,t()}finally{je=n}}}on(){je=this}off(){je=this.parent}stop(t){if(this._active){let n,r;for(n=0,r=this.effects.length;n=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),Kt()}return this._dirtyLevel>=4}set dirty(t){this._dirtyLevel=t?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=Dt,n=Zt;try{return Dt=!0,Zt=this,this._runnings++,pa(this),this.fn()}finally{ga(this),this._runnings--,Zt=n,Dt=t}}stop(){var t;this.active&&(pa(this),ga(this),(t=this.onStop)==null||t.call(this),this.active=!1)}}function Cd(e){return e.value}function pa(e){e._trackId++,e._depsLength=0}function ga(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t{const n=new Map;return n.cleanup=e,n.computed=t,n},Mr=new WeakMap,Xt=Symbol(""),Hi=Symbol("");function We(e,t,n){if(Dt&&Zt){let r=Mr.get(e);r||Mr.set(e,r=new Map);let s=r.get(n);s||r.set(n,s=Kl(()=>r.delete(n))),$l(Zt,s)}}function bt(e,t,n,r,s,i){const o=Mr.get(e);if(!o)return;let a=[];if(t==="clear")a=[...o.values()];else if(n==="length"&&re(e)){const c=Number(r);o.forEach((u,l)=>{(l==="length"||!sn(l)&&l>=c)&&a.push(u)})}else switch(n!==void 0&&a.push(o.get(n)),t){case"add":re(e)?To(n)&&a.push(o.get("length")):(a.push(o.get(Xt)),gn(e)&&a.push(o.get(Hi)));break;case"delete":re(e)||(a.push(o.get(Xt)),gn(e)&&a.push(o.get(Hi)));break;case"set":gn(e)&&a.push(o.get(Xt));break}Ao();for(const c of a)c&&Hl(c,4);ko()}function Od(e,t){var n;return(n=Mr.get(e))==null?void 0:n.get(t)}const Ad=yo("__proto__,__v_isRef,__isVue"),zl=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(sn)),_a=kd();function kd(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const r=he(this);for(let i=0,o=this.length;i{e[t]=function(...n){Ht(),Ao();const r=he(this)[t].apply(this,n);return ko(),Kt(),r}}),e}function Md(e){sn(e)||(e=String(e));const t=he(this);return We(t,"has",e),t.hasOwnProperty(e)}class ql{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){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?qd:Vl:i?jl:Gl).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const o=re(t);if(!s){if(o&&ge(_a,n))return Reflect.get(_a,n,r);if(n==="hasOwnProperty")return Md}const a=Reflect.get(t,n,r);return(sn(n)?zl.has(n):Ad(n))||(s||We(t,"get",n),i)?a:Oe(a)?o&&To(n)?a:a.value:ye(a)?s?Yl(a):Et(a):a}}class Wl extends ql{constructor(t=!1){super(!1,t)}set(t,n,r,s){let i=t[n];if(!this._isShallow){const c=vn(i);if(!xr(r)&&!vn(r)&&(i=he(i),r=he(r)),!re(t)&&Oe(i)&&!Oe(r))return c?!1:(i.value=r,!0)}const o=re(t)&&To(n)?Number(n)e,Yr=e=>Reflect.getPrototypeOf(e);function ur(e,t,n=!1,r=!1){e=e.__v_raw;const s=he(e),i=he(t);n||(Ft(t,i)&&We(s,"get",t),We(s,"get",i));const{has:o}=Yr(s),a=r?Mo:n?Po:Gn;if(o.call(s,t))return a(e.get(t));if(o.call(s,i))return a(e.get(i));e!==s&&e.get(t)}function fr(e,t=!1){const n=this.__v_raw,r=he(n),s=he(e);return t||(Ft(e,s)&&We(r,"has",e),We(r,"has",s)),e===s?n.has(e):n.has(e)||n.has(s)}function dr(e,t=!1){return e=e.__v_raw,!t&&We(he(e),"iterate",Xt),Reflect.get(e,"size",e)}function ba(e){e=he(e);const t=he(this);return Yr(t).has.call(t,e)||(t.add(e),bt(t,"add",e,e)),this}function ma(e,t){t=he(t);const n=he(this),{has:r,get:s}=Yr(n);let i=r.call(n,e);i||(e=he(e),i=r.call(n,e));const o=s.call(n,e);return n.set(e,t),i?Ft(t,o)&&bt(n,"set",e,t):bt(n,"add",e,t),this}function Ea(e){const t=he(this),{has:n,get:r}=Yr(t);let s=n.call(t,e);s||(e=he(e),s=n.call(t,e)),r&&r.call(t,e);const i=t.delete(e);return s&&bt(t,"delete",e,void 0),i}function ya(){const e=he(this),t=e.size!==0,n=e.clear();return t&&bt(e,"clear",void 0,void 0),n}function hr(e,t){return function(r,s){const i=this,o=i.__v_raw,a=he(o),c=t?Mo:e?Po:Gn;return!e&&We(a,"iterate",Xt),o.forEach((u,l)=>r.call(s,c(u),c(l),i))}}function pr(e,t,n){return function(...r){const s=this.__v_raw,i=he(s),o=gn(i),a=e==="entries"||e===Symbol.iterator&&o,c=e==="keys"&&o,u=s[e](...r),l=n?Mo:t?Po:Gn;return!t&&We(i,"iterate",c?Hi:Xt),{next(){const{value:f,done:d}=u.next();return d?{value:f,done:d}:{value:a?[l(f[0]),l(f[1])]:l(f),done:d}},[Symbol.iterator](){return this}}}}function wt(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Dd(){const e={get(i){return ur(this,i)},get size(){return dr(this)},has:fr,add:ba,set:ma,delete:Ea,clear:ya,forEach:hr(!1,!1)},t={get(i){return ur(this,i,!1,!0)},get size(){return dr(this)},has:fr,add:ba,set:ma,delete:Ea,clear:ya,forEach:hr(!1,!0)},n={get(i){return ur(this,i,!0)},get size(){return dr(this,!0)},has(i){return fr.call(this,i,!0)},add:wt("add"),set:wt("set"),delete:wt("delete"),clear:wt("clear"),forEach:hr(!0,!1)},r={get(i){return ur(this,i,!0,!0)},get size(){return dr(this,!0)},has(i){return fr.call(this,i,!0)},add:wt("add"),set:wt("set"),delete:wt("delete"),clear:wt("clear"),forEach:hr(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=pr(i,!1,!1),n[i]=pr(i,!0,!1),t[i]=pr(i,!1,!0),r[i]=pr(i,!0,!0)}),[e,n,t,r]}const[Bd,Ud,Fd,$d]=Dd();function xo(e,t){const n=t?e?$d:Fd:e?Ud:Bd;return(r,s,i)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?r:Reflect.get(ge(n,s)&&s in r?n:r,s,i)}const Hd={get:xo(!1,!1)},Kd={get:xo(!1,!0)},zd={get:xo(!0,!1)};const Gl=new WeakMap,jl=new WeakMap,Vl=new WeakMap,qd=new WeakMap;function Wd(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Gd(e){return e.__v_skip||!Object.isExtensible(e)?0:Wd(gd(e))}function Et(e){return vn(e)?e:Io(e,!1,Id,Hd,Gl)}function sr(e){return Io(e,!1,Pd,Kd,jl)}function Yl(e){return Io(e,!0,Ld,zd,Vl)}function Io(e,t,n,r,s){if(!ye(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=s.get(e);if(i)return i;const o=Gd(e);if(o===0)return e;const a=new Proxy(e,o===2?r:n);return s.set(e,a),a}function Bt(e){return vn(e)?Bt(e.__v_raw):!!(e&&e.__v_isReactive)}function vn(e){return!!(e&&e.__v_isReadonly)}function xr(e){return!!(e&&e.__v_isShallow)}function Zl(e){return e?!!e.__v_raw:!1}function he(e){const t=e&&e.__v_raw;return t?he(t):e}function Lo(e){return Object.isExtensible(e)&&Ml(e,"__v_skip",!0),e}const Gn=e=>ye(e)?Et(e):e,Po=e=>ye(e)?Yl(e):e;class Xl{constructor(t,n,r,s){this.getter=t,this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new Oo(()=>t(this._value),()=>Tr(this,this.effect._dirtyLevel===2?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!s,this.__v_isReadonly=r}get value(){const t=he(this);return(!t._cacheable||t.effect.dirty)&&Ft(t._value,t._value=t.effect.run())&&Tr(t,4),Jl(t),t.effect._dirtyLevel>=2&&Tr(t,2),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function jd(e,t,n=!1){let r,s;const i=ie(e);return i?(r=e,s=et):(r=e.get,s=e.set),new Xl(r,s,i||!s,n)}function Jl(e){var t;Dt&&Zt&&(e=he(e),$l(Zt,(t=e.dep)!=null?t:e.dep=Kl(()=>e.dep=void 0,e instanceof Xl?e:void 0)))}function Tr(e,t=4,n){e=he(e);const r=e.dep;r&&Hl(r,t)}function Oe(e){return!!(e&&e.__v_isRef===!0)}function $t(e){return Ql(e,!1)}function jn(e){return Ql(e,!0)}function Ql(e,t){return Oe(e)?e:new Vd(e,t)}class Vd{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:he(t),this._value=n?t:Gn(t)}get value(){return Jl(this),this._value}set value(t){const n=this.__v_isShallow||xr(t)||vn(t);t=n?t:he(t),Ft(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:Gn(t),Tr(this,4))}}function Ce(e){return Oe(e)?e.value:e}function av(e){return ie(e)?e():Ce(e)}const Yd={get:(e,t,n)=>Ce(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const s=e[t];return Oe(s)&&!Oe(n)?(s.value=n,!0):Reflect.set(e,t,n,r)}};function eu(e){return Bt(e)?e:new Proxy(e,Yd)}function Zd(e){const t=re(e)?new Array(e.length):{};for(const n in e)t[n]=nu(e,n);return t}class Xd{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return Od(he(this._object),this._key)}}class Jd{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function tu(e,t,n){return Oe(e)?e:ie(e)?new Jd(e):ye(e)&&arguments.length>1?nu(e,t,n):$t(e)}function nu(e,t,n){const r=e[t];return Oe(r)?r:new Xd(e,t,n)}/** +* @vue/runtime-core v3.4.24 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/function Ut(e,t,n,r){try{return r?e(...r):e()}catch(s){ir(s,t,n)}}function nt(e,t,n,r){if(ie(e)){const s=Ut(e,t,n,r);return s&&So(s)&&s.catch(i=>{ir(i,t,n)}),s}if(re(e)){const s=[];for(let i=0;i>>1,s=Be[r],i=Yn(s);ilt&&Be.splice(t,1)}function zi(e){re(e)?bn.push(...e):(!At||!At.includes(e,e.allowRecurse?Vt+1:Vt))&&bn.push(e),su()}function va(e,t,n=Vn?lt+1:0){for(;nYn(n)-Yn(r));if(bn.length=0,At){At.push(...t);return}for(At=t,Vt=0;Vte.id==null?1/0:e.id,nh=(e,t)=>{const n=Yn(e)-Yn(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function iu(e){Ki=!1,Vn=!0,Be.sort(nh);try{for(lt=0;ltSe(h)?h.trim():h)),f&&(s=n.map(md))}let a,c=r[a=ys(t)]||r[a=ys(dt(t))];!c&&i&&(c=r[a=ys(kn(t))]),c&&nt(c,e,6,s);const u=r[a+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,nt(u,e,6,s)}}function ou(e,t,n=!1){const r=t.emitsCache,s=r.get(e);if(s!==void 0)return s;const i=e.emits;let o={},a=!1;if(!ie(e)){const c=u=>{const l=ou(u,t,!0);l&&(a=!0,Me(o,l))};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!i&&!a?(ye(e)&&r.set(e,null),null):(re(i)?i.forEach(c=>o[c]=null):Me(o,i),ye(e)&&r.set(e,o),o)}function Zr(e,t){return!e||!nr(t)?!1:(t=t.slice(2).replace(/Once$/,""),ge(e,t[0].toLowerCase()+t.slice(1))||ge(e,kn(t))||ge(e,t))}let ke=null,Xr=null;function Lr(e){const t=ke;return ke=e,Xr=e&&e.type.__scopeId||null,t}function sh(e){Xr=e}function ih(){Xr=null}function Jr(e,t=ke,n){if(!t||e._n)return e;const r=(...s)=>{r._d&&La(-1);const i=Lr(t);let o;try{o=e(...s)}finally{Lr(i),r._d&&La(1)}return o};return r._n=!0,r._c=!0,r._d=!0,r}function ws(e){const{type:t,vnode:n,proxy:r,withProxy:s,propsOptions:[i],slots:o,attrs:a,emit:c,render:u,renderCache:l,props:f,data:d,setupState:h,ctx:_,inheritAttrs:m}=e,R=Lr(e);let S,y;try{if(n.shapeFlag&4){const E=s||r,v=E;S=Qe(u.call(v,E,l,f,h,d,_)),y=a}else{const E=t;S=Qe(E.length>1?E(f,{attrs:a,slots:o,emit:c}):E(f,null)),y=t.props?a:ah(a)}}catch(E){$n.length=0,ir(E,e,1),S=Le(Ke)}let b=S;if(y&&m!==!1){const E=Object.keys(y),{shapeFlag:v}=b;E.length&&v&7&&(i&&E.some(vo)&&(y=ch(y,i)),b=mt(b,y))}return n.dirs&&(b=mt(b),b.dirs=b.dirs?b.dirs.concat(n.dirs):n.dirs),n.transition&&(b.transition=n.transition),S=b,Lr(R),S}function oh(e,t=!0){let n;for(let r=0;r{let t;for(const n in e)(n==="class"||n==="style"||nr(n))&&((t||(t={}))[n]=e[n]);return t},ch=(e,t)=>{const n={};for(const r in e)(!vo(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function lh(e,t,n){const{props:r,children:s,component:i}=e,{props:o,children:a,patchFlag:c}=t,u=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return r?wa(r,o,u):!!o;if(c&8){const l=t.dynamicProps;for(let f=0;fe.__isSuspense;let qi=0;const fh={name:"Suspense",__isSuspense:!0,process(e,t,n,r,s,i,o,a,c,u){if(e==null)dh(t,n,r,s,i,o,a,c,u);else{if(i&&i.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}hh(e,t,n,r,s,o,a,c,u)}},hydrate:ph,create:Ho,normalize:gh},$o=fh;function Zn(e,t){const n=e.props&&e.props[t];ie(n)&&n()}function dh(e,t,n,r,s,i,o,a,c){const{p:u,o:{createElement:l}}=c,f=l("div"),d=e.suspense=Ho(e,s,r,t,f,n,i,o,a,c);u(null,d.pendingBranch=e.ssContent,f,null,r,d,i,o),d.deps>0?(Zn(e,"onPending"),Zn(e,"onFallback"),u(null,e.ssFallback,t,n,r,null,i,o),mn(d,e.ssFallback)):d.resolve(!1,!0)}function hh(e,t,n,r,s,i,o,a,{p:c,um:u,o:{createElement:l}}){const f=t.suspense=e.suspense;f.vnode=t,t.el=e.el;const d=t.ssContent,h=t.ssFallback,{activeBranch:_,pendingBranch:m,isInFallback:R,isHydrating:S}=f;if(m)f.pendingBranch=d,it(d,m)?(c(m,d,f.hiddenContainer,null,s,f,i,o,a),f.deps<=0?f.resolve():R&&(S||(c(_,h,n,r,s,null,i,o,a),mn(f,h)))):(f.pendingId=qi++,S?(f.isHydrating=!1,f.activeBranch=m):u(m,s,f),f.deps=0,f.effects.length=0,f.hiddenContainer=l("div"),R?(c(null,d,f.hiddenContainer,null,s,f,i,o,a),f.deps<=0?f.resolve():(c(_,h,n,r,s,null,i,o,a),mn(f,h))):_&&it(d,_)?(c(_,d,n,r,s,f,i,o,a),f.resolve(!0)):(c(null,d,f.hiddenContainer,null,s,f,i,o,a),f.deps<=0&&f.resolve()));else if(_&&it(d,_))c(_,d,n,r,s,f,i,o,a),mn(f,d);else if(Zn(t,"onPending"),f.pendingBranch=d,d.shapeFlag&512?f.pendingId=d.component.suspenseId:f.pendingId=qi++,c(null,d,f.hiddenContainer,null,s,f,i,o,a),f.deps<=0)f.resolve();else{const{timeout:y,pendingId:b}=f;y>0?setTimeout(()=>{f.pendingId===b&&f.fallback(h)},y):y===0&&f.fallback(h)}}function Ho(e,t,n,r,s,i,o,a,c,u,l=!1){const{p:f,m:d,um:h,n:_,o:{parentNode:m,remove:R}}=u;let S;const y=_h(e);y&&t!=null&&t.pendingBranch&&(S=t.pendingId,t.deps++);const b=e.props?xl(e.props.timeout):void 0,E=i,v={vnode:e,parent:t,parentComponent:n,namespace:o,container:r,hiddenContainer:s,deps:0,pendingId:qi++,timeout:typeof b=="number"?b:-1,activeBranch:null,pendingBranch:null,isInFallback:!l,isHydrating:l,isUnmounted:!1,effects:[],resolve(T=!1,P=!1){const{vnode:w,activeBranch:O,pendingBranch:B,pendingId:G,effects:U,parentComponent:Z,container:se}=v;let J=!1;v.isHydrating?v.isHydrating=!1:T||(J=O&&B.transition&&B.transition.mode==="out-in",J&&(O.transition.afterLeave=()=>{G===v.pendingId&&(d(B,se,i===E?_(O):i,0),zi(U))}),O&&(m(O.el)!==v.hiddenContainer&&(i=_(O)),h(O,Z,v,!0)),J||d(B,se,i,0)),mn(v,B),v.pendingBranch=null,v.isInFallback=!1;let $=v.parent,C=!1;for(;$;){if($.pendingBranch){$.effects.push(...U),C=!0;break}$=$.parent}!C&&!J&&zi(U),v.effects=[],y&&t&&t.pendingBranch&&S===t.pendingId&&(t.deps--,t.deps===0&&!P&&t.resolve()),Zn(w,"onResolve")},fallback(T){if(!v.pendingBranch)return;const{vnode:P,activeBranch:w,parentComponent:O,container:B,namespace:G}=v;Zn(P,"onFallback");const U=_(w),Z=()=>{v.isInFallback&&(f(null,T,B,U,O,null,G,a,c),mn(v,T))},se=T.transition&&T.transition.mode==="out-in";se&&(w.transition.afterLeave=Z),v.isInFallback=!0,h(w,O,null,!0),se||Z()},move(T,P,w){v.activeBranch&&d(v.activeBranch,T,P,w),v.container=T},next(){return v.activeBranch&&_(v.activeBranch)},registerDep(T,P){const w=!!v.pendingBranch;w&&v.deps++;const O=T.vnode.el;T.asyncDep.catch(B=>{ir(B,T,0)}).then(B=>{if(T.isUnmounted||v.isUnmounted||v.pendingId!==T.suspenseId)return;T.asyncResolved=!0;const{vnode:G}=T;Ji(T,B,!1),O&&(G.el=O);const U=!O&&T.subTree.el;P(T,G,m(O||T.subTree.el),O?null:_(T.subTree),v,o,c),U&&R(U),Uo(T,G.el),w&&--v.deps===0&&v.resolve()})},unmount(T,P){v.isUnmounted=!0,v.activeBranch&&h(v.activeBranch,n,T,P),v.pendingBranch&&h(v.pendingBranch,n,T,P)}};return v}function ph(e,t,n,r,s,i,o,a,c){const u=t.suspense=Ho(t,r,n,e.parentNode,document.createElement("div"),null,s,i,o,a,!0),l=c(e,u.pendingBranch=t.ssContent,n,u,i,o);return u.deps===0&&u.resolve(!1,!0),l}function gh(e){const{shapeFlag:t,children:n}=e,r=t&32;e.ssContent=Ta(r?n.default:n),e.ssFallback=r?Ta(n.fallback):Le(Ke)}function Ta(e){let t;if(ie(e)){const n=Sn&&e._c;n&&(e._d=!1,ut()),e=e(),n&&(e._d=!0,t=tt,Lu())}return re(e)&&(e=oh(e)),e=Qe(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function uu(e,t){t&&t.pendingBranch?re(e)?t.effects.push(...e):t.effects.push(e):zi(e)}function mn(e,t){e.activeBranch=t;const{vnode:n,parentComponent:r}=e;let s=t.el;for(;!s&&t.component;)t=t.component.subTree,s=t.el;n.el=s,r&&r.subTree===n&&(r.vnode.el=s,Uo(r,s))}function _h(e){var t;return((t=e.props)==null?void 0:t.suspensible)!=null&&e.props.suspensible!==!1}const bh=Symbol.for("v-scx"),mh=()=>Ue(bh);function lv(e,t){return Ko(e,null,t)}const gr={};function Jt(e,t,n){return Ko(e,t,n)}function Ko(e,t,{immediate:n,deep:r,flush:s,once:i,onTrack:o,onTrigger:a}=we){if(t&&i){const T=t;t=(...P)=>{T(...P),v()}}const c=Pe,u=T=>r===!0?T:Yt(T,r===!1?1:void 0);let l,f=!1,d=!1;if(Oe(e)?(l=()=>e.value,f=xr(e)):Bt(e)?(l=()=>u(e),f=!0):re(e)?(d=!0,f=e.some(T=>Bt(T)||xr(T)),l=()=>e.map(T=>{if(Oe(T))return T.value;if(Bt(T))return u(T);if(ie(T))return Ut(T,c,2)})):ie(e)?t?l=()=>Ut(e,c,2):l=()=>(h&&h(),nt(e,c,3,[_])):l=et,t&&r){const T=l;l=()=>Yt(T())}let h,_=T=>{h=b.onStop=()=>{Ut(T,c,4),h=b.onStop=void 0}},m;if(ns)if(_=et,t?n&&nt(t,c,3,[l(),d?[]:void 0,_]):l(),s==="sync"){const T=mh();m=T.__watcherHandles||(T.__watcherHandles=[])}else return et;let R=d?new Array(e.length).fill(gr):gr;const S=()=>{if(!(!b.active||!b.dirty))if(t){const T=b.run();(r||f||(d?T.some((P,w)=>Ft(P,R[w])):Ft(T,R)))&&(h&&h(),nt(t,c,3,[T,R===gr?void 0:d&&R[0]===gr?[]:R,_]),R=T)}else b.run()};S.allowRecurse=!!t;let y;s==="sync"?y=S:s==="post"?y=()=>De(S,c&&c.suspense):(S.pre=!0,c&&(S.id=c.uid),y=()=>Bo(S));const b=new Oo(l,et,y),E=Bl(),v=()=>{b.stop(),E&&wo(E.effects,b)};return t?n?S():R=b.run():s==="post"?De(b.run.bind(b),c&&c.suspense):b.run(),m&&m.push(v),v}function Eh(e,t,n){const r=this.proxy,s=Se(e)?e.includes(".")?fu(r,e):()=>r[e]:e.bind(r,r);let i;ie(t)?i=t:(i=t.handler,n=t);const o=nn(this),a=Ko(s,i.bind(r),n);return o(),a}function fu(e,t){const n=t.split(".");return()=>{let r=e;for(let s=0;s0){if(n>=t)return e;n++}if(r=r||new Set,r.has(e))return e;if(r.add(e),Oe(e))Yt(e.value,t,n,r);else if(re(e))for(let s=0;s{Yt(s,t,n,r)});else if(kl(e))for(const s in e)Yt(e[s],t,n,r);return e}function uv(e,t){if(ke===null)return e;const n=rs(ke)||ke.proxy,r=e.dirs||(e.dirs=[]);for(let s=0;s{e.isMounted=!0}),qo(()=>{e.isUnmounting=!0}),e}const Xe=[Function,Array],du={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Xe,onEnter:Xe,onAfterEnter:Xe,onEnterCancelled:Xe,onBeforeLeave:Xe,onLeave:Xe,onAfterLeave:Xe,onLeaveCancelled:Xe,onBeforeAppear:Xe,onAppear:Xe,onAfterAppear:Xe,onAppearCancelled:Xe},vh={name:"BaseTransition",props:du,setup(e,{slots:t}){const n=ts(),r=yh();return()=>{const s=t.default&&pu(t.default(),!0);if(!s||!s.length)return;let i=s[0];if(s.length>1){for(const d of s)if(d.type!==Ke){i=d;break}}const o=he(e),{mode:a}=o;if(r.isLeaving)return Ss(i);const c=Ra(i);if(!c)return Ss(i);const u=Wi(c,o,r,n);Pr(c,u);const l=n.subTree,f=l&&Ra(l);if(f&&f.type!==Ke&&!it(c,f)){const d=Wi(f,o,r,n);if(Pr(f,d),a==="out-in")return r.isLeaving=!0,d.afterLeave=()=>{r.isLeaving=!1,n.update.active!==!1&&(n.effect.dirty=!0,n.update())},Ss(i);a==="in-out"&&c.type!==Ke&&(d.delayLeave=(h,_,m)=>{const R=hu(r,f);R[String(f.key)]=f,h[kt]=()=>{_(),h[kt]=void 0,delete u.delayedLeave},u.delayedLeave=m})}return i}}},wh=vh;function hu(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 Wi(e,t,n,r){const{appear:s,mode:i,persisted:o=!1,onBeforeEnter:a,onEnter:c,onAfterEnter:u,onEnterCancelled:l,onBeforeLeave:f,onLeave:d,onAfterLeave:h,onLeaveCancelled:_,onBeforeAppear:m,onAppear:R,onAfterAppear:S,onAppearCancelled:y}=t,b=String(e.key),E=hu(n,e),v=(w,O)=>{w&&nt(w,r,9,O)},T=(w,O)=>{const B=O[1];v(w,O),re(w)?w.every(G=>G.length<=1)&&B():w.length<=1&&B()},P={mode:i,persisted:o,beforeEnter(w){let O=a;if(!n.isMounted)if(s)O=m||a;else return;w[kt]&&w[kt](!0);const B=E[b];B&&it(e,B)&&B.el[kt]&&B.el[kt](),v(O,[w])},enter(w){let O=c,B=u,G=l;if(!n.isMounted)if(s)O=R||c,B=S||u,G=y||l;else return;let U=!1;const Z=w[_r]=se=>{U||(U=!0,se?v(G,[w]):v(B,[w]),P.delayedLeave&&P.delayedLeave(),w[_r]=void 0)};O?T(O,[w,Z]):Z()},leave(w,O){const B=String(e.key);if(w[_r]&&w[_r](!0),n.isUnmounting)return O();v(f,[w]);let G=!1;const U=w[kt]=Z=>{G||(G=!0,O(),Z?v(_,[w]):v(h,[w]),w[kt]=void 0,E[B]===e&&delete E[B])};E[B]=e,d?T(d,[w,U]):U()},clone(w){return Wi(w,t,n,r)}};return P}function Ss(e){if(Qr(e))return e=mt(e),e.children=null,e}function Ra(e){if(!Qr(e))return e;const{shapeFlag:t,children:n}=e;if(t&16)return n[0];if(t&32&&ie(n.default))return n.default()}function Pr(e,t){e.shapeFlag&6&&e.component?Pr(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 pu(e,t=!1,n){let r=[],s=0;for(let i=0;i1)for(let i=0;i!!e.type.__asyncLoader,Qr=e=>e.type.__isKeepAlive,Sh={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=ts(),r=n.ctx;if(!r.renderer)return()=>{const y=t.default&&t.default();return y&&y.length===1?y[0]:y};const s=new Map,i=new Set;let o=null;const a=n.suspense,{renderer:{p:c,m:u,um:l,o:{createElement:f}}}=r,d=f("div");r.activate=(y,b,E,v,T)=>{const P=y.component;u(y,b,E,0,a),c(P.vnode,y,b,E,P,a,v,y.slotScopeIds,T),De(()=>{P.isDeactivated=!1,P.a&&Bn(P.a);const w=y.props&&y.props.onVnodeMounted;w&&ze(w,P.parent,y)},a)},r.deactivate=y=>{const b=y.component;u(y,d,null,1,a),De(()=>{b.da&&Bn(b.da);const E=y.props&&y.props.onVnodeUnmounted;E&&ze(E,b.parent,y),b.isDeactivated=!0},a)};function h(y){Ts(y),l(y,n,a,!0)}function _(y){s.forEach((b,E)=>{const v=Qi(b.type);v&&(!y||!y(v))&&m(E)})}function m(y){const b=s.get(y);!o||!it(b,o)?h(b):o&&Ts(o),s.delete(y),i.delete(y)}Jt(()=>[e.include,e.exclude],([y,b])=>{y&&_(E=>Pn(y,E)),b&&_(E=>!Pn(b,E))},{flush:"post",deep:!0});let R=null;const S=()=>{R!=null&&s.set(R,Rs(n.subTree))};return zo(S),_u(S),qo(()=>{s.forEach(y=>{const{subTree:b,suspense:E}=n,v=Rs(b);if(y.type===v.type&&y.key===v.key){Ts(v);const T=v.component.da;T&&De(T,E);return}h(y)})}),()=>{if(R=null,!t.default)return o=null;const y=t.default(),b=y[0];if(y.length>1)return o=null,y;if(!Tn(b)||!(b.shapeFlag&4)&&!(b.shapeFlag&128))return o=null,b;let E=Rs(b);const v=E.type,T=Qi(Qt(E)?E.type.__asyncResolved||{}:v),{include:P,exclude:w,max:O}=e;if(P&&(!T||!Pn(P,T))||w&&T&&Pn(w,T))return o=E,b;const B=E.key==null?v:E.key,G=s.get(B);return E.el&&(E=mt(E),b.shapeFlag&128&&(b.ssContent=E)),R=B,G?(E.el=G.el,E.component=G.component,E.transition&&Pr(E,E.transition),E.shapeFlag|=512,i.delete(B),i.add(B)):(i.add(B),O&&i.size>parseInt(O,10)&&m(i.values().next().value)),E.shapeFlag|=256,o=E,lu(b.type)?b:E}}},Th=Sh;function Pn(e,t){return re(e)?e.some(n=>Pn(n,t)):Se(e)?e.split(",").includes(t):pd(e)?e.test(t):!1}function Rh(e,t){gu(e,"a",t)}function Nh(e,t){gu(e,"da",t)}function gu(e,t,n=Pe){const r=e.__wdc||(e.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(es(t,r,n),n){let s=n.parent;for(;s&&s.parent;)Qr(s.parent.vnode)&&Ch(r,t,n,s),s=s.parent}}function Ch(e,t,n,r){const s=es(t,e,r,!0);bu(()=>{wo(r[t],s)},n)}function Ts(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function Rs(e){return e.shapeFlag&128?e.ssContent:e}function es(e,t,n=Pe,r=!1){if(n){const s=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...o)=>{if(n.isUnmounted)return;Ht();const a=nn(n),c=nt(t,n,e,o);return a(),Kt(),c});return r?s.unshift(i):s.push(i),i}}const vt=e=>(t,n=Pe)=>(!ns||e==="sp")&&es(e,(...r)=>t(...r),n),Oh=vt("bm"),zo=vt("m"),Ah=vt("bu"),_u=vt("u"),qo=vt("bum"),bu=vt("um"),kh=vt("sp"),Mh=vt("rtg"),xh=vt("rtc");function mu(e,t=Pe){es("ec",e,t)}function fv(e,t,n,r){let s;const i=n&&n[r];if(re(e)||Se(e)){s=new Array(e.length);for(let o=0,a=e.length;ot(o,a,void 0,i&&i[a]));else{const o=Object.keys(e);s=new Array(o.length);for(let a=0,c=o.length;aTn(t)?!(t.type===Ke||t.type===qe&&!Eu(t.children)):!0)?e:null}const Gi=e=>e?Uu(e)?rs(e)||e.proxy:Gi(e.parent):null,Un=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=>Gi(e.parent),$root:e=>Gi(e.root),$emit:e=>e.emit,$options:e=>Wo(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,Bo(e.update)}),$nextTick:e=>e.n||(e.n=on.bind(e.proxy)),$watch:e=>Eh.bind(e)}),Ns=(e,t)=>e!==we&&!e.__isScriptSetup&&ge(e,t),Ih={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:s,props:i,accessCache:o,type:a,appContext:c}=e;let u;if(t[0]!=="$"){const h=o[t];if(h!==void 0)switch(h){case 1:return r[t];case 2:return s[t];case 4:return n[t];case 3:return i[t]}else{if(Ns(r,t))return o[t]=1,r[t];if(s!==we&&ge(s,t))return o[t]=2,s[t];if((u=e.propsOptions[0])&&ge(u,t))return o[t]=3,i[t];if(n!==we&&ge(n,t))return o[t]=4,n[t];ji&&(o[t]=0)}}const l=Un[t];let f,d;if(l)return t==="$attrs"&&We(e.attrs,"get",""),l(e);if((f=a.__cssModules)&&(f=f[t]))return f;if(n!==we&&ge(n,t))return o[t]=4,n[t];if(d=c.config.globalProperties,ge(d,t))return d[t]},set({_:e},t,n){const{data:r,setupState:s,ctx:i}=e;return Ns(s,t)?(s[t]=n,!0):r!==we&&ge(r,t)?(r[t]=n,!0):ge(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 a;return!!n[o]||e!==we&&ge(e,o)||Ns(t,o)||(a=i[0])&&ge(a,o)||ge(r,o)||ge(Un,o)||ge(s.config.globalProperties,o)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:ge(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Na(e){return re(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function hv(e){const t=ts();let n=e();return Xi(),So(n)&&(n=n.catch(r=>{throw nn(t),r})),[n,()=>nn(t)]}let ji=!0;function Lh(e){const t=Wo(e),n=e.proxy,r=e.ctx;ji=!1,t.beforeCreate&&Ca(t.beforeCreate,e,"bc");const{data:s,computed:i,methods:o,watch:a,provide:c,inject:u,created:l,beforeMount:f,mounted:d,beforeUpdate:h,updated:_,activated:m,deactivated:R,beforeDestroy:S,beforeUnmount:y,destroyed:b,unmounted:E,render:v,renderTracked:T,renderTriggered:P,errorCaptured:w,serverPrefetch:O,expose:B,inheritAttrs:G,components:U,directives:Z,filters:se}=t;if(u&&Ph(u,r,null),o)for(const C in o){const k=o[C];ie(k)&&(r[C]=k.bind(n))}if(s){const C=s.call(n,n);ye(C)&&(e.data=Et(C))}if(ji=!0,i)for(const C in i){const k=i[C],te=ie(k)?k.bind(n,n):ie(k.get)?k.get.bind(n,n):et,ae=!ie(k)&&ie(k.set)?k.set.bind(n):et,le=Ve({get:te,set:ae});Object.defineProperty(r,C,{enumerable:!0,configurable:!0,get:()=>le.value,set:pe=>le.value=pe})}if(a)for(const C in a)yu(a[C],r,n,C);if(c){const C=ie(c)?c.call(n):c;Reflect.ownKeys(C).forEach(k=>{en(k,C[k])})}l&&Ca(l,e,"c");function $(C,k){re(k)?k.forEach(te=>C(te.bind(n))):k&&C(k.bind(n))}if($(Oh,f),$(zo,d),$(Ah,h),$(_u,_),$(Rh,m),$(Nh,R),$(mu,w),$(xh,T),$(Mh,P),$(qo,y),$(bu,E),$(kh,O),re(B))if(B.length){const C=e.exposed||(e.exposed={});B.forEach(k=>{Object.defineProperty(C,k,{get:()=>n[k],set:te=>n[k]=te})})}else e.exposed||(e.exposed={});v&&e.render===et&&(e.render=v),G!=null&&(e.inheritAttrs=G),U&&(e.components=U),Z&&(e.directives=Z)}function Ph(e,t,n=et){re(e)&&(e=Vi(e));for(const r in e){const s=e[r];let i;ye(s)?"default"in s?i=Ue(s.from||r,s.default,!0):i=Ue(s.from||r):i=Ue(s),Oe(i)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>i.value,set:o=>i.value=o}):t[r]=i}}function Ca(e,t,n){nt(re(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function yu(e,t,n,r){const s=r.includes(".")?fu(n,r):()=>n[r];if(Se(e)){const i=t[e];ie(i)&&Jt(s,i)}else if(ie(e))Jt(s,e.bind(n));else if(ye(e))if(re(e))e.forEach(i=>yu(i,t,n,r));else{const i=ie(e.handler)?e.handler.bind(n):t[e.handler];ie(i)&&Jt(s,i,e)}}function Wo(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:s,optionsCache:i,config:{optionMergeStrategies:o}}=e.appContext,a=i.get(t);let c;return a?c=a:!s.length&&!n&&!r?c=t:(c={},s.length&&s.forEach(u=>Dr(c,u,o,!0)),Dr(c,t,o)),ye(t)&&i.set(t,c),c}function Dr(e,t,n,r=!1){const{mixins:s,extends:i}=t;i&&Dr(e,i,n,!0),s&&s.forEach(o=>Dr(e,o,n,!0));for(const o in t)if(!(r&&o==="expose")){const a=Dh[o]||n&&n[o];e[o]=a?a(e[o],t[o]):t[o]}return e}const Dh={data:Oa,props:Aa,emits:Aa,methods:Dn,computed:Dn,beforeCreate:$e,created:$e,beforeMount:$e,mounted:$e,beforeUpdate:$e,updated:$e,beforeDestroy:$e,beforeUnmount:$e,destroyed:$e,unmounted:$e,activated:$e,deactivated:$e,errorCaptured:$e,serverPrefetch:$e,components:Dn,directives:Dn,watch:Uh,provide:Oa,inject:Bh};function Oa(e,t){return t?e?function(){return Me(ie(e)?e.call(this,this):e,ie(t)?t.call(this,this):t)}:t:e}function Bh(e,t){return Dn(Vi(e),Vi(t))}function Vi(e){if(re(e)){const t={};for(let n=0;n1)return n&&ie(t)?t.call(r&&r.proxy):t}}function Go(){return!!(Pe||ke||En)}const wu=Object.create(null),Su=()=>Object.create(wu),Tu=e=>Object.getPrototypeOf(e)===wu;function Hh(e,t,n,r=!1){const s={},i=Su();e.propsDefaults=Object.create(null),Ru(e,t,s,i);for(const o in e.propsOptions[0])o in s||(s[o]=void 0);n?e.props=r?s:sr(s):e.type.props?e.props=s:e.props=i,e.attrs=i}function Kh(e,t,n,r){const{props:s,attrs:i,vnode:{patchFlag:o}}=e,a=he(s),[c]=e.propsOptions;let u=!1;if((r||o>0)&&!(o&16)){if(o&8){const l=e.vnode.dynamicProps;for(let f=0;f{c=!0;const[d,h]=Nu(f,t,!0);Me(o,d),h&&a.push(...h)};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}if(!i&&!c)return ye(e)&&r.set(e,pn),pn;if(re(i))for(let l=0;l-1,h[1]=m<0||_-1||ge(h,"default"))&&a.push(f)}}}const u=[o,a];return ye(e)&&r.set(e,u),u}function ka(e){return e[0]!=="$"&&!_n(e)}function Ma(e){return e===null?"null":typeof e=="function"?e.name||"":typeof e=="object"&&e.constructor&&e.constructor.name||""}function xa(e,t){return Ma(e)===Ma(t)}function Ia(e,t){return re(t)?t.findIndex(n=>xa(n,e)):ie(t)&&xa(t,e)?0:-1}const Cu=e=>e[0]==="_"||e==="$stable",jo=e=>re(e)?e.map(Qe):[Qe(e)],zh=(e,t,n)=>{if(t._n)return t;const r=Jr((...s)=>jo(t(...s)),n);return r._c=!1,r},Ou=(e,t,n)=>{const r=e._ctx;for(const s in e){if(Cu(s))continue;const i=e[s];if(ie(i))t[s]=zh(s,i,r);else if(i!=null){const o=jo(i);t[s]=()=>o}}},Au=(e,t)=>{const n=jo(t);e.slots.default=()=>n},qh=(e,t)=>{const n=e.slots=Su();if(e.vnode.shapeFlag&32){const r=t._;r?(Me(n,t),Ml(n,"_",r)):Ou(t,n)}else t&&Au(e,t)},Wh=(e,t,n)=>{const{vnode:r,slots:s}=e;let i=!0,o=we;if(r.shapeFlag&32){const a=t._;a?n&&a===1?i=!1:(Me(s,t),!n&&a===1&&delete s._):(i=!t.$stable,Ou(t,s)),o=t}else t&&(Au(e,t),o={default:1});if(i)for(const a in s)!Cu(a)&&o[a]==null&&delete s[a]};function Br(e,t,n,r,s=!1){if(re(e)){e.forEach((d,h)=>Br(d,t&&(re(t)?t[h]:t),n,r,s));return}if(Qt(r)&&!s)return;const i=r.shapeFlag&4?rs(r.component)||r.component.proxy:r.el,o=s?null:i,{i:a,r:c}=e,u=t&&t.r,l=a.refs===we?a.refs={}:a.refs,f=a.setupState;if(u!=null&&u!==c&&(Se(u)?(l[u]=null,ge(f,u)&&(f[u]=null)):Oe(u)&&(u.value=null)),ie(c))Ut(c,a,12,[o,l]);else{const d=Se(c),h=Oe(c);if(d||h){const _=()=>{if(e.f){const m=d?ge(f,c)?f[c]:l[c]:c.value;s?re(m)&&wo(m,i):re(m)?m.includes(i)||m.push(i):d?(l[c]=[i],ge(f,c)&&(f[c]=l[c])):(c.value=[i],e.k&&(l[e.k]=c.value))}else d?(l[c]=o,ge(f,c)&&(f[c]=o)):h&&(c.value=o,e.k&&(l[e.k]=o))};o?(_.id=-1,De(_,n)):_()}}}let St=!1;const Gh=e=>e.namespaceURI.includes("svg")&&e.tagName!=="foreignObject",jh=e=>e.namespaceURI.includes("MathML"),br=e=>{if(Gh(e))return"svg";if(jh(e))return"mathml"},mr=e=>e.nodeType===8;function Vh(e){const{mt:t,p:n,o:{patchProp:r,createText:s,nextSibling:i,parentNode:o,remove:a,insert:c,createComment:u}}=e,l=(b,E)=>{if(!E.hasChildNodes()){n(null,b,E),Ir(),E._vnode=b;return}St=!1,f(E.firstChild,b,null,null,null),Ir(),E._vnode=b,St&&console.error("Hydration completed but contains mismatches.")},f=(b,E,v,T,P,w=!1)=>{w=w||!!E.dynamicChildren;const O=mr(b)&&b.data==="[",B=()=>m(b,E,v,T,P,O),{type:G,ref:U,shapeFlag:Z,patchFlag:se}=E;let J=b.nodeType;E.el=b,se===-2&&(w=!1,E.dynamicChildren=null);let $=null;switch(G){case wn:J!==3?E.children===""?(c(E.el=s(""),o(b),b),$=b):$=B():(b.data!==E.children&&(St=!0,b.data=E.children),$=i(b));break;case Ke:y(b)?($=i(b),S(E.el=b.content.firstChild,b,v)):J!==8||O?$=B():$=i(b);break;case Fn:if(O&&(b=i(b),J=b.nodeType),J===1||J===3){$=b;const C=!E.children.length;for(let k=0;k{w=w||!!E.dynamicChildren;const{type:O,props:B,patchFlag:G,shapeFlag:U,dirs:Z,transition:se}=E,J=O==="input"||O==="option";if(J||G!==-1){Z&&ct(E,null,v,"created");let $=!1;if(y(b)){$=Mu(T,se)&&v&&v.vnode.props&&v.vnode.props.appear;const k=b.content.firstChild;$&&se.beforeEnter(k),S(k,b,v),E.el=b=k}if(U&16&&!(B&&(B.innerHTML||B.textContent))){let k=h(b.firstChild,E,b,v,T,P,w);for(;k;){St=!0;const te=k;k=k.nextSibling,a(te)}}else U&8&&b.textContent!==E.children&&(St=!0,b.textContent=E.children);if(B)if(J||!w||G&48)for(const k in B)(J&&(k.endsWith("value")||k==="indeterminate")||nr(k)&&!_n(k)||k[0]===".")&&r(b,k,null,B[k],void 0,void 0,v);else B.onClick&&r(b,"onClick",null,B.onClick,void 0,void 0,v);let C;(C=B&&B.onVnodeBeforeMount)&&ze(C,v,E),Z&&ct(E,null,v,"beforeMount"),((C=B&&B.onVnodeMounted)||Z||$)&&uu(()=>{C&&ze(C,v,E),$&&se.enter(b),Z&&ct(E,null,v,"mounted")},T)}return b.nextSibling},h=(b,E,v,T,P,w,O)=>{O=O||!!E.dynamicChildren;const B=E.children,G=B.length;for(let U=0;U{const{slotScopeIds:O}=E;O&&(P=P?P.concat(O):O);const B=o(b),G=h(i(b),E,B,v,T,P,w);return G&&mr(G)&&G.data==="]"?i(E.anchor=G):(St=!0,c(E.anchor=u("]"),B,G),G)},m=(b,E,v,T,P,w)=>{if(St=!0,E.el=null,w){const G=R(b);for(;;){const U=i(b);if(U&&U!==G)a(U);else break}}const O=i(b),B=o(b);return a(b),n(null,E,B,O,v,T,br(B),P),O},R=(b,E="[",v="]")=>{let T=0;for(;b;)if(b=i(b),b&&mr(b)&&(b.data===E&&T++,b.data===v)){if(T===0)return i(b);T--}return b},S=(b,E,v)=>{const T=E.parentNode;T&&T.replaceChild(b,E);let P=v;for(;P;)P.vnode.el===E&&(P.vnode.el=P.subTree.el=b),P=P.parent},y=b=>b.nodeType===1&&b.tagName.toLowerCase()==="template";return[l,f]}const De=uu;function Yh(e){return ku(e)}function Zh(e){return ku(e,Vh)}function ku(e,t){const n=Il();n.__VUE__=!0;const{insert:r,remove:s,patchProp:i,createElement:o,createText:a,createComment:c,setText:u,setElementText:l,parentNode:f,nextSibling:d,setScopeId:h=et,insertStaticContent:_}=e,m=(p,g,N,M=null,I=null,z=null,L=void 0,q=null,F=!!g.dynamicChildren)=>{if(p===g)return;p&&!it(p,g)&&(M=A(p),pe(p,I,z,!0),p=null),g.patchFlag===-2&&(F=!1,g.dynamicChildren=null);const{type:x,ref:V,shapeFlag:Q}=g;switch(x){case wn:R(p,g,N,M);break;case Ke:S(p,g,N,M);break;case Fn:p==null&&y(g,N,M,L);break;case qe:U(p,g,N,M,I,z,L,q,F);break;default:Q&1?v(p,g,N,M,I,z,L,q,F):Q&6?Z(p,g,N,M,I,z,L,q,F):(Q&64||Q&128)&&x.process(p,g,N,M,I,z,L,q,F,j)}V!=null&&I&&Br(V,p&&p.ref,z,g||p,!g)},R=(p,g,N,M)=>{if(p==null)r(g.el=a(g.children),N,M);else{const I=g.el=p.el;g.children!==p.children&&u(I,g.children)}},S=(p,g,N,M)=>{p==null?r(g.el=c(g.children||""),N,M):g.el=p.el},y=(p,g,N,M)=>{[p.el,p.anchor]=_(p.children,g,N,M,p.el,p.anchor)},b=({el:p,anchor:g},N,M)=>{let I;for(;p&&p!==g;)I=d(p),r(p,N,M),p=I;r(g,N,M)},E=({el:p,anchor:g})=>{let N;for(;p&&p!==g;)N=d(p),s(p),p=N;s(g)},v=(p,g,N,M,I,z,L,q,F)=>{g.type==="svg"?L="svg":g.type==="math"&&(L="mathml"),p==null?T(g,N,M,I,z,L,q,F):O(p,g,I,z,L,q,F)},T=(p,g,N,M,I,z,L,q)=>{let F,x;const{props:V,shapeFlag:Q,transition:X,dirs:ee}=p;if(F=p.el=o(p.type,z,V&&V.is,V),Q&8?l(F,p.children):Q&16&&w(p.children,F,null,M,I,Cs(p,z),L,q),ee&&ct(p,null,M,"created"),P(F,p,p.scopeId,L,M),V){for(const W in V)W!=="value"&&!_n(W)&&i(F,W,null,V[W],z,p.children,M,I,de);"value"in V&&i(F,"value",null,V.value,z),(x=V.onVnodeBeforeMount)&&ze(x,M,p)}ee&&ct(p,null,M,"beforeMount");const D=Mu(I,X);D&&X.beforeEnter(F),r(F,g,N),((x=V&&V.onVnodeMounted)||D||ee)&&De(()=>{x&&ze(x,M,p),D&&X.enter(F),ee&&ct(p,null,M,"mounted")},I)},P=(p,g,N,M,I)=>{if(N&&h(p,N),M)for(let z=0;z{for(let x=F;x{const q=g.el=p.el;let{patchFlag:F,dynamicChildren:x,dirs:V}=g;F|=p.patchFlag&16;const Q=p.props||we,X=g.props||we;let ee;if(N&&qt(N,!1),(ee=X.onVnodeBeforeUpdate)&&ze(ee,N,g,p),V&&ct(g,p,N,"beforeUpdate"),N&&qt(N,!0),x?B(p.dynamicChildren,x,q,N,M,Cs(g,I),z):L||k(p,g,q,null,N,M,Cs(g,I),z,!1),F>0){if(F&16)G(q,g,Q,X,N,M,I);else if(F&2&&Q.class!==X.class&&i(q,"class",null,X.class,I),F&4&&i(q,"style",Q.style,X.style,I),F&8){const D=g.dynamicProps;for(let W=0;W{ee&&ze(ee,N,g,p),V&&ct(g,p,N,"updated")},M)},B=(p,g,N,M,I,z,L)=>{for(let q=0;q{if(N!==M){if(N!==we)for(const q in N)!_n(q)&&!(q in M)&&i(p,q,N[q],null,L,g.children,I,z,de);for(const q in M){if(_n(q))continue;const F=M[q],x=N[q];F!==x&&q!=="value"&&i(p,q,x,F,L,g.children,I,z,de)}"value"in M&&i(p,"value",N.value,M.value,L)}},U=(p,g,N,M,I,z,L,q,F)=>{const x=g.el=p?p.el:a(""),V=g.anchor=p?p.anchor:a("");let{patchFlag:Q,dynamicChildren:X,slotScopeIds:ee}=g;ee&&(q=q?q.concat(ee):ee),p==null?(r(x,N,M),r(V,N,M),w(g.children||[],N,V,I,z,L,q,F)):Q>0&&Q&64&&X&&p.dynamicChildren?(B(p.dynamicChildren,X,N,I,z,L,q),(g.key!=null||I&&g===I.subTree)&&xu(p,g,!0)):k(p,g,N,V,I,z,L,q,F)},Z=(p,g,N,M,I,z,L,q,F)=>{g.slotScopeIds=q,p==null?g.shapeFlag&512?I.ctx.activate(g,N,M,L,F):se(g,N,M,I,z,L,F):J(p,g,F)},se=(p,g,N,M,I,z,L)=>{const q=p.component=rp(p,M,I);if(Qr(p)&&(q.ctx.renderer=j),sp(q),q.asyncDep){if(I&&I.registerDep(q,$),!p.el){const F=q.subTree=Le(Ke);S(null,F,g,N)}}else $(q,p,g,N,I,z,L)},J=(p,g,N)=>{const M=g.component=p.component;if(lh(p,g,N))if(M.asyncDep&&!M.asyncResolved){C(M,g,N);return}else M.next=g,th(M.update),M.effect.dirty=!0,M.update();else g.el=p.el,M.vnode=g},$=(p,g,N,M,I,z,L)=>{const q=()=>{if(p.isMounted){let{next:V,bu:Q,u:X,parent:ee,vnode:D}=p;{const xe=Iu(p);if(xe){V&&(V.el=D.el,C(p,V,L)),xe.asyncDep.then(()=>{p.isUnmounted||q()});return}}let W=V,Y;qt(p,!1),V?(V.el=D.el,C(p,V,L)):V=D,Q&&Bn(Q),(Y=V.props&&V.props.onVnodeBeforeUpdate)&&ze(Y,ee,V,D),qt(p,!0);const ne=ws(p),_e=p.subTree;p.subTree=ne,m(_e,ne,f(_e.el),A(_e),p,I,z),V.el=ne.el,W===null&&Uo(p,ne.el),X&&De(X,I),(Y=V.props&&V.props.onVnodeUpdated)&&De(()=>ze(Y,ee,V,D),I)}else{let V;const{el:Q,props:X}=g,{bm:ee,m:D,parent:W}=p,Y=Qt(g);if(qt(p,!1),ee&&Bn(ee),!Y&&(V=X&&X.onVnodeBeforeMount)&&ze(V,W,g),qt(p,!0),Q&&ue){const ne=()=>{p.subTree=ws(p),ue(Q,p.subTree,p,I,null)};Y?g.type.__asyncLoader().then(()=>!p.isUnmounted&&ne()):ne()}else{const ne=p.subTree=ws(p);m(null,ne,N,M,p,I,z),g.el=ne.el}if(D&&De(D,I),!Y&&(V=X&&X.onVnodeMounted)){const ne=g;De(()=>ze(V,W,ne),I)}(g.shapeFlag&256||W&&Qt(W.vnode)&&W.vnode.shapeFlag&256)&&p.a&&De(p.a,I),p.isMounted=!0,g=N=M=null}},F=p.effect=new Oo(q,et,()=>Bo(x),p.scope),x=p.update=()=>{F.dirty&&F.run()};x.id=p.uid,qt(p,!0),x()},C=(p,g,N)=>{g.component=p;const M=p.vnode.props;p.vnode=g,p.next=null,Kh(p,g.props,M,N),Wh(p,g.children,N),Ht(),va(p),Kt()},k=(p,g,N,M,I,z,L,q,F=!1)=>{const x=p&&p.children,V=p?p.shapeFlag:0,Q=g.children,{patchFlag:X,shapeFlag:ee}=g;if(X>0){if(X&128){ae(x,Q,N,M,I,z,L,q,F);return}else if(X&256){te(x,Q,N,M,I,z,L,q,F);return}}ee&8?(V&16&&de(x,I,z),Q!==x&&l(N,Q)):V&16?ee&16?ae(x,Q,N,M,I,z,L,q,F):de(x,I,z,!0):(V&8&&l(N,""),ee&16&&w(Q,N,M,I,z,L,q,F))},te=(p,g,N,M,I,z,L,q,F)=>{p=p||pn,g=g||pn;const x=p.length,V=g.length,Q=Math.min(x,V);let X;for(X=0;XV?de(p,I,z,!0,!1,Q):w(g,N,M,I,z,L,q,F,Q)},ae=(p,g,N,M,I,z,L,q,F)=>{let x=0;const V=g.length;let Q=p.length-1,X=V-1;for(;x<=Q&&x<=X;){const ee=p[x],D=g[x]=F?Mt(g[x]):Qe(g[x]);if(it(ee,D))m(ee,D,N,null,I,z,L,q,F);else break;x++}for(;x<=Q&&x<=X;){const ee=p[Q],D=g[X]=F?Mt(g[X]):Qe(g[X]);if(it(ee,D))m(ee,D,N,null,I,z,L,q,F);else break;Q--,X--}if(x>Q){if(x<=X){const ee=X+1,D=eeX)for(;x<=Q;)pe(p[x],I,z,!0),x++;else{const ee=x,D=x,W=new Map;for(x=D;x<=X;x++){const Fe=g[x]=F?Mt(g[x]):Qe(g[x]);Fe.key!=null&&W.set(Fe.key,x)}let Y,ne=0;const _e=X-D+1;let xe=!1,ln=0;const pt=new Array(_e);for(x=0;x<_e;x++)pt[x]=0;for(x=ee;x<=Q;x++){const Fe=p[x];if(ne>=_e){pe(Fe,I,z,!0);continue}let fe;if(Fe.key!=null)fe=W.get(Fe.key);else for(Y=D;Y<=X;Y++)if(pt[Y-D]===0&&it(Fe,g[Y])){fe=Y;break}fe===void 0?pe(Fe,I,z,!0):(pt[fe-D]=x+1,fe>=ln?ln=fe:xe=!0,m(Fe,g[fe],N,null,I,z,L,q,F),ne++)}const lr=xe?Xh(pt):pn;for(Y=lr.length-1,x=_e-1;x>=0;x--){const Fe=D+x,fe=g[Fe],zt=Fe+1{const{el:z,type:L,transition:q,children:F,shapeFlag:x}=p;if(x&6){le(p.component.subTree,g,N,M);return}if(x&128){p.suspense.move(g,N,M);return}if(x&64){L.move(p,g,N,j);return}if(L===qe){r(z,g,N);for(let Q=0;Qq.enter(z),I);else{const{leave:Q,delayLeave:X,afterLeave:ee}=q,D=()=>r(z,g,N),W=()=>{Q(z,()=>{D(),ee&&ee()})};X?X(z,D,W):W()}else r(z,g,N)},pe=(p,g,N,M=!1,I=!1)=>{const{type:z,props:L,ref:q,children:F,dynamicChildren:x,shapeFlag:V,patchFlag:Q,dirs:X}=p;if(q!=null&&Br(q,null,N,p,!0),V&256){g.ctx.deactivate(p);return}const ee=V&1&&X,D=!Qt(p);let W;if(D&&(W=L&&L.onVnodeBeforeUnmount)&&ze(W,g,p),V&6)me(p.component,N,M);else{if(V&128){p.suspense.unmount(N,M);return}ee&&ct(p,null,g,"beforeUnmount"),V&64?p.type.remove(p,g,N,I,j,M):x&&(z!==qe||Q>0&&Q&64)?de(x,g,N,!1,!0):(z===qe&&Q&384||!I&&V&16)&&de(F,g,N),M&&Te(p)}(D&&(W=L&&L.onVnodeUnmounted)||ee)&&De(()=>{W&&ze(W,g,p),ee&&ct(p,null,g,"unmounted")},N)},Te=p=>{const{type:g,el:N,anchor:M,transition:I}=p;if(g===qe){Re(N,M);return}if(g===Fn){E(p);return}const z=()=>{s(N),I&&!I.persisted&&I.afterLeave&&I.afterLeave()};if(p.shapeFlag&1&&I&&!I.persisted){const{leave:L,delayLeave:q}=I,F=()=>L(N,z);q?q(p.el,z,F):F()}else z()},Re=(p,g)=>{let N;for(;p!==g;)N=d(p),s(p),p=N;s(g)},me=(p,g,N)=>{const{bum:M,scope:I,update:z,subTree:L,um:q}=p;M&&Bn(M),I.stop(),z&&(z.active=!1,pe(L,p,g,N)),q&&De(q,g),De(()=>{p.isUnmounted=!0},g),g&&g.pendingBranch&&!g.isUnmounted&&p.asyncDep&&!p.asyncResolved&&p.suspenseId===g.pendingId&&(g.deps--,g.deps===0&&g.resolve())},de=(p,g,N,M=!1,I=!1,z=0)=>{for(let L=z;Lp.shapeFlag&6?A(p.component.subTree):p.shapeFlag&128?p.suspense.next():d(p.anchor||p.el);let H=!1;const K=(p,g,N)=>{p==null?g._vnode&&pe(g._vnode,null,null,!0):m(g._vnode||null,p,g,null,null,null,N),H||(H=!0,va(),Ir(),H=!1),g._vnode=p},j={p:m,um:pe,m:le,r:Te,mt:se,mc:w,pc:k,pbc:B,n:A,o:e};let oe,ue;return t&&([oe,ue]=t(j)),{render:K,hydrate:oe,createApp:$h(K,oe)}}function Cs({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 qt({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Mu(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function xu(e,t,n=!1){const r=e.children,s=t.children;if(re(r)&&re(s))for(let i=0;i>1,e[n[a]]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 Iu(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Iu(t)}const Jh=e=>e.__isTeleport,qe=Symbol.for("v-fgt"),wn=Symbol.for("v-txt"),Ke=Symbol.for("v-cmt"),Fn=Symbol.for("v-stc"),$n=[];let tt=null;function ut(e=!1){$n.push(tt=e?null:[])}function Lu(){$n.pop(),tt=$n[$n.length-1]||null}let Sn=1;function La(e){Sn+=e}function Pu(e){return e.dynamicChildren=Sn>0?tt||pn:null,Lu(),Sn>0&&tt&&tt.push(e),e}function pv(e,t,n,r,s,i){return Pu(Rn(e,t,n,r,s,i,!0))}function _t(e,t,n,r,s){return Pu(Le(e,t,n,r,s,!0))}function Tn(e){return e?e.__v_isVNode===!0:!1}function it(e,t){return e.type===t.type&&e.key===t.key}const Du=({key:e})=>e??null,Rr=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Se(e)||Oe(e)||ie(e)?{i:ke,r:e,k:t,f:!!n}:e:null);function Rn(e,t=null,n=null,r=0,s=null,i=e===qe?0:1,o=!1,a=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Du(t),ref:t&&Rr(t),scopeId:Xr,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:r,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:ke};return a?(Vo(c,n),i&128&&e.normalize(c)):n&&(c.shapeFlag|=Se(n)?8:16),Sn>0&&!o&&tt&&(c.patchFlag>0||i&6)&&c.patchFlag!==32&&tt.push(c),c}const Le=Qh;function Qh(e,t=null,n=null,r=0,s=null,i=!1){if((!e||e===au)&&(e=Ke),Tn(e)){const a=mt(e,t,!0);return n&&Vo(a,n),Sn>0&&!i&&tt&&(a.shapeFlag&6?tt[tt.indexOf(e)]=a:tt.push(a)),a.patchFlag|=-2,a}if(cp(e)&&(e=e.__vccOpts),t){t=ep(t);let{class:a,style:c}=t;a&&!Se(a)&&(t.class=No(a)),ye(c)&&(Zl(c)&&!re(c)&&(c=Me({},c)),t.style=Ro(c))}const o=Se(e)?1:lu(e)?128:Jh(e)?64:ye(e)?4:ie(e)?2:0;return Rn(e,t,n,r,s,o,i,!0)}function ep(e){return e?Zl(e)||Tu(e)?Me({},e):e:null}function mt(e,t,n=!1){const{props:r,ref:s,patchFlag:i,children:o}=e,a=t?Bu(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&Du(a),ref:t&&t.ref?n&&s?re(s)?s.concat(Rr(t)):[s,Rr(t)]:Rr(t):s,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:o,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==qe?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&mt(e.ssContent),ssFallback:e.ssFallback&&mt(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Ur(e=" ",t=0){return Le(wn,null,e,t)}function gv(e,t){const n=Le(Fn,null,e);return n.staticCount=t,n}function _v(e="",t=!1){return t?(ut(),_t(Ke,null,e)):Le(Ke,null,e)}function Qe(e){return e==null||typeof e=="boolean"?Le(Ke):re(e)?Le(qe,null,e.slice()):typeof e=="object"?Mt(e):Le(wn,null,String(e))}function Mt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:mt(e)}function Vo(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(re(t))n=16;else if(typeof t=="object")if(r&65){const s=t.default;s&&(s._c&&(s._d=!1),Vo(e,s()),s._c&&(s._d=!0));return}else{n=32;const s=t._;!s&&!Tu(t)?t._ctx=ke:s===3&&ke&&(ke.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else ie(t)?(t={default:t,_ctx:ke},n=32):(t=String(t),r&64?(n=16,t=[Ur(t)]):n=8);e.children=t,e.shapeFlag|=n}function Bu(...e){const t={};for(let n=0;nPe||ke;let Fr,Zi;{const e=Il(),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=>Pe=n),Zi=t("__VUE_SSR_SETTERS__",n=>ns=n)}const nn=e=>{const t=Pe;return Fr(e),e.scope.on(),()=>{e.scope.off(),Fr(t)}},Xi=()=>{Pe&&Pe.scope.off(),Fr(null)};function Uu(e){return e.vnode.shapeFlag&4}let ns=!1;function sp(e,t=!1){t&&Zi(t);const{props:n,children:r}=e.vnode,s=Uu(e);Hh(e,n,s,t),qh(e,r);const i=s?ip(e,t):void 0;return t&&Zi(!1),i}function ip(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Ih);const{setup:r}=n;if(r){const s=e.setupContext=r.length>1?ap(e):null,i=nn(e);Ht();const o=Ut(r,e,0,[e.props,s]);if(Kt(),i(),So(o)){if(o.then(Xi,Xi),t)return o.then(a=>{Ji(e,a,t)}).catch(a=>{ir(a,e,0)});e.asyncDep=o}else Ji(e,o,t)}else Fu(e,t)}function Ji(e,t,n){ie(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ye(t)&&(e.setupState=eu(t)),Fu(e,n)}let Pa;function Fu(e,t,n){const r=e.type;if(!e.render){if(!t&&Pa&&!r.render){const s=r.template||Wo(e).template;if(s){const{isCustomElement:i,compilerOptions:o}=e.appContext.config,{delimiters:a,compilerOptions:c}=r,u=Me(Me({isCustomElement:i,delimiters:a},o),c);r.render=Pa(s,u)}}e.render=r.render||et}{const s=nn(e);Ht();try{Lh(e)}finally{Kt(),s()}}}const op={get(e,t){return We(e,"get",""),e[t]}};function ap(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,op),slots:e.slots,emit:e.emit,expose:t}}function rs(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(eu(Lo(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Un)return Un[n](e)},has(t,n){return n in t||n in Un}}))}function Qi(e,t=!0){return ie(e)?e.displayName||e.name:e.name||t&&e.__name}function cp(e){return ie(e)&&"__vccOpts"in e}const Ve=(e,t)=>jd(e,t,ns);function Ze(e,t,n){const r=arguments.length;return r===2?ye(t)&&!re(t)?Tn(t)?Le(e,null,[t]):Le(e,t):Le(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Tn(n)&&(n=[n]),Le(e,t,n))}const $u="3.4.24";/** +* @vue/runtime-dom v3.4.24 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/const lp="http://www.w3.org/2000/svg",up="http://www.w3.org/1998/Math/MathML",xt=typeof document<"u"?document:null,Da=xt&&xt.createElement("template"),fp={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"?xt.createElementNS(lp,e):t==="mathml"?xt.createElementNS(up,e):xt.createElement(e,n?{is:n}:void 0);return e==="select"&&r&&r.multiple!=null&&s.setAttribute("multiple",r.multiple),s},createText:e=>xt.createTextNode(e),createComment:e=>xt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>xt.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{Da.innerHTML=r==="svg"?`${e}`:r==="mathml"?`${e}`:e;const a=Da.content;if(r==="svg"||r==="mathml"){const c=a.firstChild;for(;c.firstChild;)a.appendChild(c.firstChild);a.removeChild(c)}t.insertBefore(a,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Tt="transition",xn="animation",Xn=Symbol("_vtc"),ss=(e,{slots:t})=>Ze(wh,dp(e),t);ss.displayName="Transition";const Hu={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};ss.props=Me({},du,Hu);const Wt=(e,t=[])=>{re(e)?e.forEach(n=>n(...t)):e&&e(...t)},Ba=e=>e?re(e)?e.some(t=>t.length>1):e.length>1:!1;function dp(e){const t={};for(const U in e)U in Hu||(t[U]=e[U]);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:a=`${n}-enter-to`,appearFromClass:c=i,appearActiveClass:u=o,appearToClass:l=a,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:d=`${n}-leave-active`,leaveToClass:h=`${n}-leave-to`}=e,_=hp(s),m=_&&_[0],R=_&&_[1],{onBeforeEnter:S,onEnter:y,onEnterCancelled:b,onLeave:E,onLeaveCancelled:v,onBeforeAppear:T=S,onAppear:P=y,onAppearCancelled:w=b}=t,O=(U,Z,se)=>{Gt(U,Z?l:a),Gt(U,Z?u:o),se&&se()},B=(U,Z)=>{U._isLeaving=!1,Gt(U,f),Gt(U,h),Gt(U,d),Z&&Z()},G=U=>(Z,se)=>{const J=U?P:y,$=()=>O(Z,U,se);Wt(J,[Z,$]),Ua(()=>{Gt(Z,U?c:i),Rt(Z,U?l:a),Ba(J)||Fa(Z,r,m,$)})};return Me(t,{onBeforeEnter(U){Wt(S,[U]),Rt(U,i),Rt(U,o)},onBeforeAppear(U){Wt(T,[U]),Rt(U,c),Rt(U,u)},onEnter:G(!1),onAppear:G(!0),onLeave(U,Z){U._isLeaving=!0;const se=()=>B(U,Z);Rt(U,f),Rt(U,d),_p(),Ua(()=>{U._isLeaving&&(Gt(U,f),Rt(U,h),Ba(E)||Fa(U,r,R,se))}),Wt(E,[U,se])},onEnterCancelled(U){O(U,!1),Wt(b,[U])},onAppearCancelled(U){O(U,!0),Wt(w,[U])},onLeaveCancelled(U){B(U),Wt(v,[U])}})}function hp(e){if(e==null)return null;if(ye(e))return[Os(e.enter),Os(e.leave)];{const t=Os(e);return[t,t]}}function Os(e){return xl(e)}function Rt(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[Xn]||(e[Xn]=new Set)).add(t)}function Gt(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const n=e[Xn];n&&(n.delete(t),n.size||(e[Xn]=void 0))}function Ua(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let pp=0;function Fa(e,t,n,r){const s=e._endId=++pp,i=()=>{s===e._endId&&r()};if(n)return setTimeout(i,n);const{type:o,timeout:a,propCount:c}=gp(e,t);if(!o)return r();const u=o+"end";let l=0;const f=()=>{e.removeEventListener(u,d),i()},d=h=>{h.target===e&&++l>=c&&f()};setTimeout(()=>{l(n[_]||"").split(", "),s=r(`${Tt}Delay`),i=r(`${Tt}Duration`),o=$a(s,i),a=r(`${xn}Delay`),c=r(`${xn}Duration`),u=$a(a,c);let l=null,f=0,d=0;t===Tt?o>0&&(l=Tt,f=o,d=i.length):t===xn?u>0&&(l=xn,f=u,d=c.length):(f=Math.max(o,u),l=f>0?o>u?Tt:xn:null,d=l?l===Tt?i.length:c.length:0);const h=l===Tt&&/\b(transform|all)(,|$)/.test(r(`${Tt}Property`).toString());return{type:l,timeout:f,propCount:d,hasTransform:h}}function $a(e,t){for(;e.lengthHa(n)+Ha(e[r])))}function Ha(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function _p(){return document.body.offsetHeight}function bp(e,t,n){const r=e[Xn];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const $r=Symbol("_vod"),Ku=Symbol("_vsh"),bv={beforeMount(e,{value:t},{transition:n}){e[$r]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):In(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),In(e,!0),r.enter(e)):r.leave(e,()=>{In(e,!1)}):In(e,t))},beforeUnmount(e,{value:t}){In(e,t)}};function In(e,t){e.style.display=t?e[$r]:"none",e[Ku]=!t}const mp=Symbol(""),Ep=/(^|;)\s*display\s*:/;function yp(e,t,n){const r=e.style,s=Se(n);let i=!1;if(n&&!s){if(t)if(Se(t))for(const o of t.split(";")){const a=o.slice(0,o.indexOf(":")).trim();n[a]==null&&Nr(r,a,"")}else for(const o in t)n[o]==null&&Nr(r,o,"");for(const o in n)o==="display"&&(i=!0),Nr(r,o,n[o])}else if(s){if(t!==n){const o=r[mp];o&&(n+=";"+o),r.cssText=n,i=Ep.test(n)}}else t&&e.removeAttribute("style");$r in e&&(e[$r]=i?r.display:"",e[Ku]&&(r.display="none"))}const Ka=/\s*!important$/;function Nr(e,t,n){if(re(n))n.forEach(r=>Nr(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=vp(e,t);Ka.test(n)?e.setProperty(kn(r),n.replace(Ka,""),"important"):e[r]=n}}const za=["Webkit","Moz","ms"],As={};function vp(e,t){const n=As[t];if(n)return n;let r=dt(t);if(r!=="filter"&&r in e)return As[t]=r;r=Vr(r);for(let s=0;sks||(Op.then(()=>ks=0),ks=Date.now());function kp(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;nt(Mp(r,n.value),t,5,[r])};return n.value=e,n.attached=Ap(),n}function Mp(e,t){if(re(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 ja=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,xp=(e,t,n,r,s,i,o,a,c)=>{const u=s==="svg";t==="class"?bp(e,r,u):t==="style"?yp(e,n,r):nr(t)?vo(t)||Np(e,t,n,r,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Ip(e,t,r,u))?Sp(e,t,r,i,o,a,c):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),wp(e,t,r,u))};function Ip(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&ja(t)&&ie(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||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 ja(t)&&Se(n)?!1:t in e}const zu=Me({patchProp:xp},fp);let Hn,Va=!1;function Lp(){return Hn||(Hn=Yh(zu))}function Pp(){return Hn=Va?Hn:Zh(zu),Va=!0,Hn}const Dp=(...e)=>{const t=Lp().createApp(...e),{mount:n}=t;return t.mount=r=>{const s=Wu(r);if(!s)return;const i=t._component;!ie(i)&&!i.render&&!i.template&&(i.template=s.innerHTML),s.innerHTML="";const o=n(s,!1,qu(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),o},t},Bp=(...e)=>{const t=Pp().createApp(...e),{mount:n}=t;return t.mount=r=>{const s=Wu(r);if(s)return n(s,!0,qu(s))},t};function qu(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Wu(e){return Se(e)?document.querySelector(e):e}const Up=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,Fp=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,$p=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function Hp(e,t){if(e==="__proto__"||e==="constructor"&&t&&typeof t=="object"&&"prototype"in t){Kp(e);return}return t}function Kp(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function Hr(e,t={}){if(typeof e!="string")return e;const n=e.trim();if(e[0]==='"'&&e.endsWith('"')&&!e.includes("\\"))return n.slice(1,-1);if(n.length<=9){const r=n.toLowerCase();if(r==="true")return!0;if(r==="false")return!1;if(r==="undefined")return;if(r==="null")return null;if(r==="nan")return Number.NaN;if(r==="infinity")return Number.POSITIVE_INFINITY;if(r==="-infinity")return Number.NEGATIVE_INFINITY}if(!$p.test(e)){if(t.strict)throw new SyntaxError("[destr] Invalid JSON");return e}try{if(Up.test(e)||Fp.test(e)){if(t.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(e,Hp)}return JSON.parse(e)}catch(r){if(t.strict)throw r;return e}}const zp=/#/g,qp=/&/g,Wp=/\//g,Gp=/=/g,Yo=/\+/g,jp=/%5e/gi,Vp=/%60/gi,Yp=/%7c/gi,Zp=/%20/gi;function Xp(e){return encodeURI(""+e).replace(Yp,"|")}function eo(e){return Xp(typeof e=="string"?e:JSON.stringify(e)).replace(Yo,"%2B").replace(Zp,"+").replace(zp,"%23").replace(qp,"%26").replace(Vp,"`").replace(jp,"^").replace(Wp,"%2F")}function Ms(e){return eo(e).replace(Gp,"%3D")}function Kr(e=""){try{return decodeURIComponent(""+e)}catch{return""+e}}function Jp(e){return Kr(e.replace(Yo," "))}function Qp(e){return Kr(e.replace(Yo," "))}function eg(e=""){const t={};e[0]==="?"&&(e=e.slice(1));for(const n of e.split("&")){const r=n.match(/([^=]+)=?(.*)/)||[];if(r.length<2)continue;const s=Jp(r[1]);if(s==="__proto__"||s==="constructor")continue;const i=Qp(r[2]||"");t[s]===void 0?t[s]=i:Array.isArray(t[s])?t[s].push(i):t[s]=[t[s],i]}return t}function tg(e,t){return(typeof t=="number"||typeof t=="boolean")&&(t=String(t)),t?Array.isArray(t)?t.map(n=>`${Ms(e)}=${eo(n)}`).join("&"):`${Ms(e)}=${eo(t)}`:Ms(e)}function ng(e){return Object.keys(e).filter(t=>e[t]!==void 0).map(t=>tg(t,e[t])).filter(Boolean).join("&")}const rg=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,sg=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,ig=/^([/\\]\s*){2,}[^/\\]/,og=/^[\s\0]*(blob|data|javascript|vbscript):$/i,ag=/\/$|\/\?|\/#/,cg=/^\.?\//;function an(e,t={}){return typeof t=="boolean"&&(t={acceptRelative:t}),t.strict?rg.test(e):sg.test(e)||(t.acceptRelative?ig.test(e):!1)}function lg(e){return!!e&&og.test(e)}function to(e="",t){return t?ag.test(e):e.endsWith("/")}function Zo(e="",t){if(!t)return(to(e)?e.slice(0,-1):e)||"/";if(!to(e,!0))return e||"/";let n=e,r="";const s=e.indexOf("#");s>=0&&(n=e.slice(0,s),r=e.slice(s));const[i,...o]=n.split("?");return((i.endsWith("/")?i.slice(0,-1):i)||"/")+(o.length>0?`?${o.join("?")}`:"")+r}function no(e="",t){if(!t)return e.endsWith("/")?e:e+"/";if(to(e,!0))return e||"/";let n=e,r="";const s=e.indexOf("#");if(s>=0&&(n=e.slice(0,s),r=e.slice(s),!n))return r;const[i,...o]=n.split("?");return i+"/"+(o.length>0?`?${o.join("?")}`:"")+r}function ug(e=""){return e.startsWith("/")}function Ya(e=""){return ug(e)?e:"/"+e}function fg(e,t){if(ju(t)||an(e))return e;const n=Zo(t);return e.startsWith(n)?e:Xo(n,e)}function Za(e,t){if(ju(t))return e;const n=Zo(t);if(!e.startsWith(n))return e;const r=e.slice(n.length);return r[0]==="/"?r:"/"+r}function Gu(e,t){const n=is(e),r={...eg(n.search),...t};return n.search=ng(r),pg(n)}function ju(e){return!e||e==="/"}function dg(e){return e&&e!=="/"}function Xo(e,...t){let n=e||"";for(const r of t.filter(s=>dg(s)))if(n){const s=r.replace(cg,"");n=no(n)+s}else n=r;return n}function Vu(...e){var o,a,c,u;const t=/\/(?!\/)/,n=e.filter(Boolean),r=[];let s=0;for(const l of n)if(!(!l||l==="/")){for(const[f,d]of l.split(t).entries())if(!(!d||d===".")){if(d===".."){if(r.length===1&&an(r[0]))continue;r.pop(),s--;continue}if(f===1&&((o=r[r.length-1])!=null&&o.endsWith(":/"))){r[r.length-1]+="/"+d;continue}r.push(d),s++}}let i=r.join("/");return s>=0?(a=n[0])!=null&&a.startsWith("/")&&!i.startsWith("/")?i="/"+i:(c=n[0])!=null&&c.startsWith("./")&&!i.startsWith("./")&&(i="./"+i):i="../".repeat(-1*s)+i,(u=n[n.length-1])!=null&&u.endsWith("/")&&!i.endsWith("/")&&(i+="/"),i}function hg(e,t,n={}){return n.trailingSlash||(e=no(e),t=no(t)),n.leadingSlash||(e=Ya(e),t=Ya(t)),n.encoding||(e=Kr(e),t=Kr(t)),e===t}const Yu=Symbol.for("ufo:protocolRelative");function is(e="",t){const n=e.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(n){const[,f,d=""]=n;return{protocol:f.toLowerCase(),pathname:d,href:f+d,auth:"",host:"",search:"",hash:""}}if(!an(e,{acceptRelative:!0}))return t?is(t+e):Xa(e);const[,r="",s,i=""]=e.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[],[,o="",a=""]=i.match(/([^#/?]*)(.*)?/)||[],{pathname:c,search:u,hash:l}=Xa(a.replace(/\/(?=[A-Za-z]:)/,""));return{protocol:r.toLowerCase(),auth:s?s.slice(0,Math.max(0,s.length-1)):"",host:o,pathname:c,search:u,hash:l,[Yu]:!r}}function Xa(e=""){const[t="",n="",r=""]=(e.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:t,search:n,hash:r}}function pg(e){const t=e.pathname||"",n=e.search?(e.search.startsWith("?")?"":"?")+e.search:"",r=e.hash||"",s=e.auth?e.auth+"@":"",i=e.host||"";return(e.protocol||e[Yu]?(e.protocol||"")+"//":"")+s+i+t+n+r}class gg extends Error{constructor(t,n){super(t,n),this.name="FetchError",n!=null&&n.cause&&!this.cause&&(this.cause=n.cause)}}function _g(e){var c,u,l,f,d;const t=((c=e.error)==null?void 0:c.message)||((u=e.error)==null?void 0:u.toString())||"",n=((l=e.request)==null?void 0:l.method)||((f=e.options)==null?void 0:f.method)||"GET",r=((d=e.request)==null?void 0:d.url)||String(e.request)||"/",s=`[${n}] ${JSON.stringify(r)}`,i=e.response?`${e.response.status} ${e.response.statusText}`:"",o=`${s}: ${i}${t?` ${t}`:""}`,a=new gg(o,e.error?{cause:e.error}:void 0);for(const h of["request","options","response"])Object.defineProperty(a,h,{get(){return e[h]}});for(const[h,_]of[["data","_data"],["status","status"],["statusCode","status"],["statusText","statusText"],["statusMessage","statusText"]])Object.defineProperty(a,h,{get(){return e.response&&e.response[_]}});return a}const bg=new Set(Object.freeze(["PATCH","POST","PUT","DELETE"]));function Ja(e="GET"){return bg.has(e.toUpperCase())}function mg(e){if(e===void 0)return!1;const t=typeof e;return t==="string"||t==="number"||t==="boolean"||t===null?!0:t!=="object"?!1:Array.isArray(e)?!0:e.buffer?!1:e.constructor&&e.constructor.name==="Object"||typeof e.toJSON=="function"}const Eg=new Set(["image/svg","application/xml","application/xhtml","application/html"]),yg=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function vg(e=""){if(!e)return"json";const t=e.split(";").shift()||"";return yg.test(t)?"json":Eg.has(t)||t.startsWith("text/")?"text":"blob"}function wg(e,t,n=globalThis.Headers){const r={...t,...e};if(t!=null&&t.params&&(e!=null&&e.params)&&(r.params={...t==null?void 0:t.params,...e==null?void 0:e.params}),t!=null&&t.query&&(e!=null&&e.query)&&(r.query={...t==null?void 0:t.query,...e==null?void 0:e.query}),t!=null&&t.headers&&(e!=null&&e.headers)){r.headers=new n((t==null?void 0:t.headers)||{});for(const[s,i]of new n((e==null?void 0:e.headers)||{}))r.headers.set(s,i)}return r}const Sg=new Set([408,409,425,429,500,502,503,504]),Tg=new Set([101,204,205,304]);function Zu(e={}){const{fetch:t=globalThis.fetch,Headers:n=globalThis.Headers,AbortController:r=globalThis.AbortController}=e;async function s(a){const c=a.error&&a.error.name==="AbortError"&&!a.options.timeout||!1;if(a.options.retry!==!1&&!c){let l;typeof a.options.retry=="number"?l=a.options.retry:l=Ja(a.options.method)?0:1;const f=a.response&&a.response.status||500;if(l>0&&(Array.isArray(a.options.retryStatusCodes)?a.options.retryStatusCodes.includes(f):Sg.has(f))){const d=a.options.retryDelay||0;return d>0&&await new Promise(h=>setTimeout(h,d)),i(a.request,{...a.options,retry:l-1})}}const u=_g(a);throw Error.captureStackTrace&&Error.captureStackTrace(u,i),u}const i=async function(c,u={}){var h;const l={request:c,options:wg(u,e.defaults,n),response:void 0,error:void 0};l.options.method=(h=l.options.method)==null?void 0:h.toUpperCase(),l.options.onRequest&&await l.options.onRequest(l),typeof l.request=="string"&&(l.options.baseURL&&(l.request=fg(l.request,l.options.baseURL)),(l.options.query||l.options.params)&&(l.request=Gu(l.request,{...l.options.params,...l.options.query}))),l.options.body&&Ja(l.options.method)&&(mg(l.options.body)?(l.options.body=typeof l.options.body=="string"?l.options.body:JSON.stringify(l.options.body),l.options.headers=new n(l.options.headers||{}),l.options.headers.has("content-type")||l.options.headers.set("content-type","application/json"),l.options.headers.has("accept")||l.options.headers.set("accept","application/json")):("pipeTo"in l.options.body&&typeof l.options.body.pipeTo=="function"||typeof l.options.body.pipe=="function")&&("duplex"in l.options||(l.options.duplex="half")));let f;if(!l.options.signal&&l.options.timeout){const _=new r;f=setTimeout(()=>_.abort(),l.options.timeout),l.options.signal=_.signal}try{l.response=await t(l.request,l.options)}catch(_){return l.error=_,l.options.onRequestError&&await l.options.onRequestError(l),await s(l)}finally{f&&clearTimeout(f)}if(l.response.body&&!Tg.has(l.response.status)&&l.options.method!=="HEAD"){const _=(l.options.parseResponse?"json":l.options.responseType)||vg(l.response.headers.get("content-type")||"");switch(_){case"json":{const m=await l.response.text(),R=l.options.parseResponse||Hr;l.response._data=R(m);break}case"stream":{l.response._data=l.response.body;break}default:l.response._data=await l.response[_]()}}return l.options.onResponse&&await l.options.onResponse(l),!l.options.ignoreResponseError&&l.response.status>=400&&l.response.status<600?(l.options.onResponseError&&await l.options.onResponseError(l),await s(l)):l.response},o=async function(c,u){return(await i(c,u))._data};return o.raw=i,o.native=(...a)=>t(...a),o.create=(a={})=>Zu({...e,defaults:{...e.defaults,...a}}),o}const Jo=function(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")}(),Rg=Jo.fetch||(()=>Promise.reject(new Error("[ofetch] global.fetch is not supported!"))),Ng=Jo.Headers,Cg=Jo.AbortController,Og=Zu({fetch:Rg,Headers:Ng,AbortController:Cg}),Ag=Og,kg=()=>{var e;return((e=window==null?void 0:window.__NUXT__)==null?void 0:e.config)||{}},zr=kg().app,Mg=()=>zr.baseURL,xg=()=>zr.buildAssetsDir,Qo=(...e)=>Vu(Xu(),xg(),...e),Xu=(...e)=>{const t=zr.cdnURL||zr.baseURL;return e.length?Vu(t,...e):t};globalThis.__buildAssetsURL=Qo,globalThis.__publicAssetsURL=Xu;globalThis.$fetch||(globalThis.$fetch=Ag.create({baseURL:Mg()}));function ro(e,t={},n){for(const r in e){const s=e[r],i=n?`${n}:${r}`:r;typeof s=="object"&&s!==null?ro(s,t,i):typeof s=="function"&&(t[i]=s)}return t}const Ig={run:e=>e()},Lg=()=>Ig,Ju=typeof console.createTask<"u"?console.createTask:Lg;function Pg(e,t){const n=t.shift(),r=Ju(n);return e.reduce((s,i)=>s.then(()=>r.run(()=>i(...t))),Promise.resolve())}function Dg(e,t){const n=t.shift(),r=Ju(n);return Promise.all(e.map(s=>r.run(()=>s(...t))))}function xs(e,t){for(const n of[...e])n(t)}class Bg{constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(t,n,r={}){if(!t||typeof n!="function")return()=>{};const s=t;let i;for(;this._deprecatedHooks[t];)i=this._deprecatedHooks[t],t=i.to;if(i&&!r.allowDeprecated){let o=i.message;o||(o=`${s} hook has been deprecated`+(i.to?`, please use ${i.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(o)||(console.warn(o),this._deprecatedMessages.add(o))}if(!n.name)try{Object.defineProperty(n,"name",{get:()=>"_"+t.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[t]=this._hooks[t]||[],this._hooks[t].push(n),()=>{n&&(this.removeHook(t,n),n=void 0)}}hookOnce(t,n){let r,s=(...i)=>(typeof r=="function"&&r(),r=void 0,s=void 0,n(...i));return r=this.hook(t,s),r}removeHook(t,n){if(this._hooks[t]){const r=this._hooks[t].indexOf(n);r!==-1&&this._hooks[t].splice(r,1),this._hooks[t].length===0&&delete this._hooks[t]}}deprecateHook(t,n){this._deprecatedHooks[t]=typeof n=="string"?{to:n}:n;const r=this._hooks[t]||[];delete this._hooks[t];for(const s of r)this.hook(t,s)}deprecateHooks(t){Object.assign(this._deprecatedHooks,t);for(const n in t)this.deprecateHook(n,t[n])}addHooks(t){const n=ro(t),r=Object.keys(n).map(s=>this.hook(s,n[s]));return()=>{for(const s of r.splice(0,r.length))s()}}removeHooks(t){const n=ro(t);for(const r in n)this.removeHook(r,n[r])}removeAllHooks(){for(const t in this._hooks)delete this._hooks[t]}callHook(t,...n){return n.unshift(t),this.callHookWith(Pg,t,...n)}callHookParallel(t,...n){return n.unshift(t),this.callHookWith(Dg,t,...n)}callHookWith(t,n,...r){const s=this._before||this._after?{name:n,args:r,context:{}}:void 0;this._before&&xs(this._before,s);const i=t(n in this._hooks?[...this._hooks[n]]:[],r);return i instanceof Promise?i.finally(()=>{this._after&&s&&xs(this._after,s)}):(this._after&&s&&xs(this._after,s),i)}beforeEach(t){return this._before=this._before||[],this._before.push(t),()=>{if(this._before!==void 0){const n=this._before.indexOf(t);n!==-1&&this._before.splice(n,1)}}}afterEach(t){return this._after=this._after||[],this._after.push(t),()=>{if(this._after!==void 0){const n=this._after.indexOf(t);n!==-1&&this._after.splice(n,1)}}}}function Qu(){return new Bg}function Ug(e={}){let t,n=!1;const r=o=>{if(t&&t!==o)throw new Error("Context conflict")};let s;if(e.asyncContext){const o=e.AsyncLocalStorage||globalThis.AsyncLocalStorage;o?s=new o:console.warn("[unctx] `AsyncLocalStorage` is not provided.")}const i=()=>{if(s&&t===void 0){const o=s.getStore();if(o!==void 0)return o}return t};return{use:()=>{const o=i();if(o===void 0)throw new Error("Context is not available");return o},tryUse:()=>i(),set:(o,a)=>{a||r(o),t=o,n=!0},unset:()=>{t=void 0,n=!1},call:(o,a)=>{r(o),t=o;try{return s?s.run(o,a):a()}finally{n||(t=void 0)}},async callAsync(o,a){t=o;const c=()=>{t=o},u=()=>t===o?c:void 0;so.add(u);try{const l=s?s.run(o,a):a();return n||(t=void 0),await l}finally{so.delete(u)}}}}function Fg(e={}){const t={};return{get(n,r={}){return t[n]||(t[n]=Ug({...e,...r})),t[n],t[n]}}}const qr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof global<"u"?global:typeof window<"u"?window:{},Qa="__unctx__",$g=qr[Qa]||(qr[Qa]=Fg()),Hg=(e,t={})=>$g.get(e,t),ec="__unctx_async_handlers__",so=qr[ec]||(qr[ec]=new Set);function rn(e){const t=[];for(const s of so){const i=s();i&&t.push(i)}const n=()=>{for(const s of t)s()};let r=e();return r&&typeof r=="object"&&"catch"in r&&(r=r.catch(s=>{throw n(),s})),[r,n]}const ef=Hg("nuxt-app",{asyncContext:!1}),Kg="__nuxt_plugin";function zg(e){let t=0;const n={_scope:Co(),provide:void 0,globalName:"nuxt",versions:{get nuxt(){return"3.11.2"},get vue(){return n.vueApp.version}},payload:Et({data:{},state:{},once:new Set,_errors:{},...window.__NUXT__??{}}),static:{data:{}},runWithContext:s=>n._scope.run(()=>Gg(n,s)),isHydrating:!0,deferHydration(){if(!n.isHydrating)return()=>{};t++;let s=!1;return()=>{if(!s&&(s=!0,t--,t===0))return n.isHydrating=!1,n.callHook("app:suspense:resolve")}},_asyncDataPromises:{},_asyncData:{},_payloadRevivers:{},...e};n.hooks=Qu(),n.hook=n.hooks.hook,n.callHook=n.hooks.callHook,n.provide=(s,i)=>{const o="$"+s;Er(n,o,i),Er(n.vueApp.config.globalProperties,o,i)},Er(n.vueApp,"$nuxt",n),Er(n.vueApp.config.globalProperties,"$nuxt",n);{window.addEventListener("nuxt.preloadError",i=>{n.callHook("app:chunkError",{error:i.payload})}),window.useNuxtApp=window.useNuxtApp||ve;const s=n.hook("app:error",(...i)=>{console.error("[nuxt] error caught during app initialization",...i)});n.hook("app:mounted",s)}const r=n.payload.config;return n.provide("config",r),n}async function qg(e,t){if(t.hooks&&e.hooks.addHooks(t.hooks),typeof t=="function"){const{provide:n}=await e.runWithContext(()=>t(e))||{};if(n&&typeof n=="object")for(const r in n)e.provide(r,n[r])}}async function Wg(e,t){const n=[],r=[],s=[],i=[];let o=0;async function a(c){var l;const u=((l=c.dependsOn)==null?void 0:l.filter(f=>t.some(d=>d._name===f)&&!n.includes(f)))??[];if(u.length>0)r.push([new Set(u),c]);else{const f=qg(e,c).then(async()=>{c._name&&(n.push(c._name),await Promise.all(r.map(async([d,h])=>{d.has(c._name)&&(d.delete(c._name),d.size===0&&(o++,await a(h)))})))});c.parallel?s.push(f.catch(d=>i.push(d))):await f}}for(const c of t)await a(c);if(await Promise.all(s),o)for(let c=0;c{}),e,{[Kg]:!0,_name:t})}function Gg(e,t,n){const r=()=>n?t(...n):t();return ef.set(e),e.vueApp.runWithContext(r)}function jg(){var t;let e;return Go()&&(e=(t=ts())==null?void 0:t.appContext.app.$nuxt),e=e||ef.tryUse(),e||null}function ve(){const e=jg();if(!e)throw new Error("[nuxt] instance unavailable");return e}function ea(e){return ve().$config}function Er(e,t,n){Object.defineProperty(e,t,{get:()=>n})}function Vg(e,t){return{ctx:{table:e},matchAll:n=>nf(n,e,t)}}function tf(e){const t={};for(const n in e)t[n]=n==="dynamic"?new Map(Object.entries(e[n]).map(([r,s])=>[r,tf(s)])):new Map(Object.entries(e[n]));return t}function Yg(e){return Vg(tf(e))}function nf(e,t,n){n!==!0&&e.endsWith("/")&&(e=e.slice(0,-1)||"/");const r=[];for(const[i,o]of tc(t.wildcard))(e===i||e.startsWith(i+"/"))&&r.push(o);for(const[i,o]of tc(t.dynamic))if(e.startsWith(i+"/")){const a="/"+e.slice(i.length).split("/").splice(2).join("/");r.push(...nf(a,o))}const s=t.static.get(e);return s&&r.push(s),r.filter(Boolean)}function tc(e){return[...e.entries()].sort((t,n)=>t[0].length-n[0].length)}function Is(e){if(e===null||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)==="[object Module]":!0}function io(e,t,n=".",r){if(!Is(t))return io(e,{},n,r);const s=Object.assign({},t);for(const i in e){if(i==="__proto__"||i==="constructor")continue;const o=e[i];o!=null&&(r&&r(s,i,o,n)||(Array.isArray(o)&&Array.isArray(s[i])?s[i]=[...o,...s[i]]:Is(o)&&Is(s[i])?s[i]=io(o,s[i],(n?`${n}.`:"")+i.toString(),r):s[i]=o))}return s}function rf(e){return(...t)=>t.reduce((n,r)=>io(n,r,"",e),{})}const sf=rf(),Zg=rf((e,t,n)=>{if(e[t]!==void 0&&typeof n=="function")return e[t]=n(e[t]),!0});function Xg(e,t){try{return t in e}catch{return!1}}var Jg=Object.defineProperty,Qg=(e,t,n)=>t in e?Jg(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,jt=(e,t,n)=>(Qg(e,typeof t!="symbol"?t+"":t,n),n);class oo extends Error{constructor(t,n={}){super(t,n),jt(this,"statusCode",500),jt(this,"fatal",!1),jt(this,"unhandled",!1),jt(this,"statusMessage"),jt(this,"data"),jt(this,"cause"),n.cause&&!this.cause&&(this.cause=n.cause)}toJSON(){const t={message:this.message,statusCode:co(this.statusCode,500)};return this.statusMessage&&(t.statusMessage=of(this.statusMessage)),this.data!==void 0&&(t.data=this.data),t}}jt(oo,"__h3_error__",!0);function ao(e){if(typeof e=="string")return new oo(e);if(e_(e))return e;const t=new oo(e.message??e.statusMessage??"",{cause:e.cause||e});if(Xg(e,"stack"))try{Object.defineProperty(t,"stack",{get(){return e.stack}})}catch{try{t.stack=e.stack}catch{}}if(e.data&&(t.data=e.data),e.statusCode?t.statusCode=co(e.statusCode,t.statusCode):e.status&&(t.statusCode=co(e.status,t.statusCode)),e.statusMessage?t.statusMessage=e.statusMessage:e.statusText&&(t.statusMessage=e.statusText),t.statusMessage){const n=t.statusMessage;of(t.statusMessage)!==n&&console.warn("[h3] Please prefer using `message` for longer error messages instead of `statusMessage`. In the future, `statusMessage` will be sanitized by default.")}return e.fatal!==void 0&&(t.fatal=e.fatal),e.unhandled!==void 0&&(t.unhandled=e.unhandled),t}function e_(e){var t;return((t=e==null?void 0:e.constructor)==null?void 0:t.__h3_error__)===!0}const t_=/[^\u0009\u0020-\u007E]/g;function of(e=""){return e.replace(t_,"")}function co(e,t=200){return!e||(typeof e=="string"&&(e=Number.parseInt(e,10)),e<100||e>999)?t:e}const af=Symbol("layout-meta"),or=Symbol("route"),at=()=>{var e;return(e=ve())==null?void 0:e.$router},os=()=>Go()?Ue(or,ve()._route):ve()._route;const cf=()=>{try{if(ve()._processingMiddleware)return!0}catch{return!1}return!1},nc=(e,t)=>{e||(e="/");const n=typeof e=="string"?e:Gu(e.path||"/",e.query||{})+(e.hash||"");if(t!=null&&t.open){const{target:a="_blank",windowFeatures:c={}}=t.open,u=Object.entries(c).filter(([l,f])=>f!==void 0).map(([l,f])=>`${l.toLowerCase()}=${f}`).join(", ");return open(n,a,u),Promise.resolve()}const r=(t==null?void 0:t.external)||an(n,{acceptRelative:!0});if(r){if(!(t!=null&&t.external))throw new Error("Navigating to an external URL is not allowed by default. Use `navigateTo(url, { external: true })`.");const a=is(n).protocol;if(a&&lg(a))throw new Error(`Cannot navigate to a URL with '${a}' protocol.`)}const s=cf();if(!r&&s)return e;const i=at(),o=ve();return r?(o._scope.stop(),t!=null&&t.replace?location.replace(n):location.href=n,s?o.isHydrating?new Promise(()=>{}):!1:Promise.resolve()):t!=null&&t.replace?i.replace(e):i.push(e)},mv=e=>{const t=ve(),n=cf();if(n||t.isHydrating){const r=at().beforeResolve(s=>{s.meta.layout=e,r()})}n||(os().meta.layout=e)},lf="__nuxt_error",as=()=>tu(ve().payload,"error"),hn=e=>{const t=cs(e);try{const n=ve(),r=as();n.hooks.callHook("app:error",t),r.value=r.value||t}catch{throw t}return t},uf=async(e={})=>{const t=ve(),n=as();t.callHook("app:error:cleared",e),e.redirect&&await at().replace(e.redirect),n.value=null},n_=e=>!!e&&typeof e=="object"&&lf in e,cs=e=>{const t=ao(e);return Object.defineProperty(t,lf,{value:!0,configurable:!1,writable:!1}),t},r_="modulepreload",s_=function(e,t){return e[0]==="."?new URL(e,t).href:e},rc={},i_=function(t,n,r){let s=Promise.resolve();if(n&&n.length>0){const i=document.getElementsByTagName("link"),o=document.querySelector("meta[property=csp-nonce]"),a=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));s=Promise.all(n.map(c=>{if(c=s_(c,r),c in rc)return;rc[c]=!0;const u=c.endsWith(".css"),l=u?'[rel="stylesheet"]':"";if(!!r)for(let h=i.length-1;h>=0;h--){const _=i[h];if(_.href===c&&(!u||_.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${c}"]${l}`))return;const d=document.createElement("link");if(d.rel=u?"stylesheet":r_,u||(d.as="script",d.crossOrigin=""),d.href=c,a&&d.setAttribute("nonce",a),document.head.appendChild(d),u)return new Promise((h,_)=>{d.addEventListener("load",h),d.addEventListener("error",()=>_(new Error(`Unable to preload CSS for ${c}`)))})}))}return s.then(()=>t()).catch(i=>{const o=new Event("vite:preloadError",{cancelable:!0});if(o.payload=i,window.dispatchEvent(o),!o.defaultPrevented)throw i})},Ie=(...e)=>i_(...e).catch(t=>{const n=new Event("nuxt.preloadError");throw n.payload=t,window.dispatchEvent(n),t}),o_=-1,a_=-2,c_=-3,l_=-4,u_=-5,f_=-6;function d_(e,t){return h_(JSON.parse(e),t)}function h_(e,t){if(typeof e=="number")return s(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const n=e,r=Array(n.length);function s(i,o=!1){if(i===o_)return;if(i===c_)return NaN;if(i===l_)return 1/0;if(i===u_)return-1/0;if(i===f_)return-0;if(o)throw new Error("Invalid input");if(i in r)return r[i];const a=n[i];if(!a||typeof a!="object")r[i]=a;else if(Array.isArray(a))if(typeof a[0]=="string"){const c=a[0],u=t==null?void 0:t[c];if(u)return r[i]=u(s(a[1]));switch(c){case"Date":r[i]=new Date(a[1]);break;case"Set":const l=new Set;r[i]=l;for(let h=1;h>>9)+65536).toString(16).substring(1,8).toLowerCase()}function sc(e){return e._h||ta(e._d?e._d:`${e.tag}:${e.textContent||e.innerHTML||""}:${Object.entries(e.props).map(([t,n])=>`${t}:${String(n)}`).join(",")}`)}function df(e,t){const{props:n,tag:r}=e;if(b_.includes(r))return r;if(r==="link"&&n.rel==="canonical")return"canonical";if(n.charset)return"charset";const s=["id"];r==="meta"&&s.push("name","property","http-equiv");for(const i of s)if(typeof n[i]<"u"){const o=String(n[i]);return t&&!t(o)?!1:`${r}:${i}:${o}`}return!1}function ic(e,t){return e==null?t||null:typeof e=="function"?e(t):e}async function E_(e,t,n){const r={tag:e,props:await hf(typeof t=="object"&&typeof t!="function"&&!(t instanceof Promise)?{...t}:{[["script","noscript","style"].includes(e)?"innerHTML":"textContent"]:t},["templateParams","titleTemplate"].includes(e))};return ff.forEach(s=>{const i=typeof r.props[s]<"u"?r.props[s]:n[s];typeof i<"u"&&((!["innerHTML","textContent","children"].includes(s)||g_.includes(r.tag))&&(r[s==="children"?"innerHTML":s]=i),delete r.props[s])}),r.props.body&&(r.tagPosition="bodyClose",delete r.props.body),r.tag==="script"&&typeof r.innerHTML=="object"&&(r.innerHTML=JSON.stringify(r.innerHTML),r.props.type=r.props.type||"application/json"),Array.isArray(r.props.content)?r.props.content.map(s=>({...r,props:{...r.props,content:s}})):r}function y_(e,t){var r;const n=e==="class"?" ":";";return typeof t=="object"&&!Array.isArray(t)&&(t=Object.entries(t).filter(([,s])=>s).map(([s,i])=>e==="style"?`${s}:${i}`:s)),(r=Array.isArray(t)?t.join(n):t)==null?void 0:r.split(n).filter(s=>s.trim()).filter(Boolean).join(n)}async function hf(e,t){for(const n of Object.keys(e)){if(["class","style"].includes(n)){e[n]=y_(n,e[n]);continue}if(e[n]instanceof Promise&&(e[n]=await e[n]),!t&&!ff.includes(n)){const r=String(e[n]),s=n.startsWith("data-");r==="true"||r===""?e[n]=s?"true":!0:e[n]||(s&&r==="false"?e[n]="false":delete e[n])}}return e}const v_=10;async function w_(e){const t=[];return Object.entries(e.resolvedInput).filter(([n,r])=>typeof r<"u"&&__.includes(n)).forEach(([n,r])=>{const s=p_(r);t.push(...s.map(i=>E_(n,i,e)).flat())}),(await Promise.all(t)).flat().filter(Boolean).map((n,r)=>(n._e=e._i,e.mode&&(n._m=e.mode),n._p=(e._i<c&&c[u]||void 0,t):a=t[o],typeof a<"u"?(a||"").replace(/"/g,'\\"'):!1}let s=e;try{s=decodeURI(e)}catch{}return(s.match(/%(\w+\.+\w+)|%(\w+)/g)||[]).sort().reverse().forEach(o=>{const a=r(o.slice(1));typeof a=="string"&&(e=e.replace(new RegExp(`\\${o}(\\W|$)`,"g"),(c,u)=>`${a}${u}`).trim())}),e.includes(Nt)&&(e.endsWith(Nt)&&(e=e.slice(0,-Nt.length).trim()),e.startsWith(Nt)&&(e=e.slice(Nt.length).trim()),e=e.replace(new RegExp(`\\${Nt}\\s*\\${Nt}`,"g"),Nt),e=Or(e,{separator:n},n)),e}async function pf(e,t={}){var l;const n=t.document||e.resolvedOptions.document;if(!n||!e.dirty)return;const r={shouldRender:!0,tags:[]};if(await e.hooks.callHook("dom:beforeRender",r),!r.shouldRender)return;const s=(await e.resolveTags()).map(f=>({tag:f,id:Cr.includes(f.tag)?sc(f):f.tag,shouldRender:!0}));let i=e._dom;if(!i){i={elMap:{htmlAttrs:n.documentElement,bodyAttrs:n.body}};for(const f of["body","head"]){const d=(l=n[f])==null?void 0:l.children,h=[];for(const _ of[...d].filter(m=>Cr.includes(m.tagName.toLowerCase()))){const m={tag:_.tagName.toLowerCase(),props:await hf(_.getAttributeNames().reduce((y,b)=>({...y,[b]:_.getAttribute(b)}),{})),innerHTML:_.innerHTML};let R=1,S=df(m);for(;S&&h.find(y=>y._d===S);)S=`${S}:${R++}`;m._d=S||void 0,h.push(m),i.elMap[_.getAttribute("data-hid")||sc(m)]=_}}}i.pendingSideEffects={...i.sideEffects||{}},i.sideEffects={};function o(f,d,h){const _=`${f}:${d}`;i.sideEffects[_]=h,delete i.pendingSideEffects[_]}function a({id:f,$el:d,tag:h}){const _=h.tag.endsWith("Attrs");i.elMap[f]=d,_||(["textContent","innerHTML"].forEach(m=>{h[m]&&h[m]!==d[m]&&(d[m]=h[m])}),o(f,"el",()=>{var m;(m=i.elMap[f])==null||m.remove(),delete i.elMap[f]}));for(const[m,R]of Object.entries(h._eventHandlers||{}))d.getAttribute(`data-${m}`)!==""&&((h.tag==="bodyAttrs"?n.defaultView:d).addEventListener(m.replace("on",""),R.bind(d)),d.setAttribute(`data-${m}`,""));Object.entries(h.props).forEach(([m,R])=>{const S=`attr:${m}`;if(m==="class")for(const y of(R||"").split(" ").filter(Boolean))_&&o(f,`${S}:${y}`,()=>d.classList.remove(y)),!d.classList.contains(y)&&d.classList.add(y);else if(m==="style")for(const y of(R||"").split(";").filter(Boolean)){const[b,...E]=y.split(":").map(v=>v.trim());o(f,`${S}:${y}:${b}`,()=>{d.style.removeProperty(b)}),d.style.setProperty(b,E.join(":"))}else d.getAttribute(m)!==R&&d.setAttribute(m,R===!0?"":String(R)),_&&o(f,S,()=>d.removeAttribute(m))})}const c=[],u={bodyClose:void 0,bodyOpen:void 0,head:void 0};for(const f of s){const{tag:d,shouldRender:h,id:_}=f;if(h){if(d.tag==="title"){n.title=d.textContent;continue}f.$el=f.$el||i.elMap[_],f.$el?a(f):Cr.includes(d.tag)&&c.push(f)}}for(const f of c){const d=f.tag.tagPosition||"head";f.$el=n.createElement(f.tag.tag),a(f),u[d]=u[d]||n.createDocumentFragment(),u[d].appendChild(f.$el)}for(const f of s)await e.hooks.callHook("dom:renderTag",f,n,o);u.head&&n.head.appendChild(u.head),u.bodyOpen&&n.body.insertBefore(u.bodyOpen,n.body.firstChild),u.bodyClose&&n.body.appendChild(u.bodyClose),Object.values(i.pendingSideEffects).forEach(f=>f()),e._dom=i,e.dirty=!1,await e.hooks.callHook("dom:rendered",{renders:s})}async function T_(e,t={}){const n=t.delayFn||(r=>setTimeout(r,10));return e._domUpdatePromise=e._domUpdatePromise||new Promise(r=>n(async()=>{await pf(e,t),delete e._domUpdatePromise,r()}))}function R_(e){return t=>{var r,s;const n=((s=(r=t.resolvedOptions.document)==null?void 0:r.head.querySelector('script[id="unhead:payload"]'))==null?void 0:s.innerHTML)||!1;return n&&t.push(JSON.parse(n)),{mode:"client",hooks:{"entries:updated":function(i){T_(i,e)}}}}}const N_=["templateParams","htmlAttrs","bodyAttrs"],C_={hooks:{"tag:normalise":function({tag:e}){["hid","vmid","key"].forEach(r=>{e.props[r]&&(e.key=e.props[r],delete e.props[r])});const n=df(e)||(e.key?`${e.tag}:${e.key}`:!1);n&&(e._d=n)},"tags:resolve":function(e){const t={};e.tags.forEach(r=>{const s=(r.key?`${r.tag}:${r.key}`:r._d)||r._p,i=t[s];if(i){let a=r==null?void 0:r.tagDuplicateStrategy;if(!a&&N_.includes(r.tag)&&(a="merge"),a==="merge"){const c=i.props;["class","style"].forEach(u=>{c[u]&&(r.props[u]?(u==="style"&&!c[u].endsWith(";")&&(c[u]+=";"),r.props[u]=`${c[u]} ${r.props[u]}`):r.props[u]=c[u])}),t[s].props={...c,...r.props};return}else if(r._e===i._e){i._duped=i._duped||[],r._d=`${i._d}:${i._duped.length+1}`,i._duped.push(r);return}else if(Wr(r)>Wr(i))return}const o=Object.keys(r.props).length+(r.innerHTML?1:0)+(r.textContent?1:0);if(Cr.includes(r.tag)&&o===0){delete t[s];return}t[s]=r});const n=[];Object.values(t).forEach(r=>{const s=r._duped;delete r._duped,n.push(r),s&&n.push(...s)}),e.tags=n,e.tags=e.tags.filter(r=>!(r.tag==="meta"&&(r.props.name||r.props.property)&&!r.props.content))}}},O_={mode:"server",hooks:{"tags:resolve":function(e){const t={};e.tags.filter(n=>["titleTemplate","templateParams","title"].includes(n.tag)&&n._m==="server").forEach(n=>{t[n.tag]=n.tag.startsWith("title")?n.textContent:n.props}),Object.keys(t).length&&e.tags.push({tag:"script",innerHTML:JSON.stringify(t),props:{id:"unhead:payload",type:"application/json"}})}}},A_=["script","link","bodyAttrs"],k_=e=>({hooks:{"tags:resolve":function(t){for(const n of t.tags.filter(r=>A_.includes(r.tag)))Object.entries(n.props).forEach(([r,s])=>{r.startsWith("on")&&typeof s=="function"&&(e.ssr&&cc.includes(r)?n.props[r]=`this.dataset.${r}fired = true`:delete n.props[r],n._eventHandlers=n._eventHandlers||{},n._eventHandlers[r]=s)}),e.ssr&&n._eventHandlers&&(n.props.src||n.props.href)&&(n.key=n.key||ta(n.props.src||n.props.href))},"dom:renderTag":function({$el:t,tag:n}){var r,s;for(const i of Object.keys((t==null?void 0:t.dataset)||{}).filter(o=>cc.some(a=>`${a}fired`===o))){const o=i.replace("fired","");(s=(r=n._eventHandlers)==null?void 0:r[o])==null||s.call(t,new Event(o.replace("on","")))}}}}),M_=["link","style","script","noscript"],x_={hooks:{"tag:normalise":({tag:e})=>{e.key&&M_.includes(e.tag)&&(e.props["data-hid"]=e._h=ta(e.key))}}},I_={hooks:{"tags:resolve":e=>{const t=n=>{var r;return(r=e.tags.find(s=>s._d===n))==null?void 0:r._p};for(const{prefix:n,offset:r}of S_)for(const s of e.tags.filter(i=>typeof i.tagPriority=="string"&&i.tagPriority.startsWith(n))){const i=t(s.tagPriority.replace(n,""));typeof i<"u"&&(s._p=i+r)}e.tags.sort((n,r)=>n._p-r._p).sort((n,r)=>Wr(n)-Wr(r))}}},L_={meta:"content",link:"href",htmlAttrs:"lang"},P_=e=>({hooks:{"tags:resolve":t=>{var a;const{tags:n}=t,r=(a=n.find(c=>c.tag==="title"))==null?void 0:a.textContent,s=n.findIndex(c=>c.tag==="templateParams"),i=s!==-1?n[s].props:{},o=i.separator||"|";delete i.separator,i.pageTitle=Or(i.pageTitle||r||"",i,o);for(const c of n.filter(u=>u.processTemplateParams!==!1)){const u=L_[c.tag];u&&typeof c.props[u]=="string"?c.props[u]=Or(c.props[u],i,o):(c.processTemplateParams===!0||["titleTemplate","title"].includes(c.tag))&&["innerHTML","textContent"].forEach(l=>{typeof c[l]=="string"&&(c[l]=Or(c[l],i,o))})}e._templateParams=i,e._separator=o,t.tags=n.filter(c=>c.tag!=="templateParams")}}}),D_={hooks:{"tags:resolve":e=>{const{tags:t}=e;let n=t.findIndex(s=>s.tag==="titleTemplate");const r=t.findIndex(s=>s.tag==="title");if(r!==-1&&n!==-1){const s=ic(t[n].textContent,t[r].textContent);s!==null?t[r].textContent=s||t[r].textContent:delete t[r]}else if(n!==-1){const s=ic(t[n].textContent);s!==null&&(t[n].textContent=s,t[n].tag="title",n=-1)}n!==-1&&delete t[n],e.tags=t.filter(Boolean)}}},B_={hooks:{"tags:afterResolve":function(e){for(const t of e.tags)typeof t.innerHTML=="string"&&(t.innerHTML&&["application/ld+json","application/json"].includes(t.props.type)?t.innerHTML=t.innerHTML.replace(/{a.dirty=!0,t.callHook("entries:updated",a)};let s=0,i=[];const o=[],a={plugins:o,dirty:!1,resolvedOptions:e,hooks:t,headEntries(){return i},use(c){const u=typeof c=="function"?c(a):c;(!u.key||!o.some(l=>l.key===u.key))&&(o.push(u),lc(u.mode,n)&&t.addHooks(u.hooks||{}))},push(c,u){u==null||delete u.head;const l={_i:s++,input:c,...u};return lc(l.mode,n)&&(i.push(l),r()),{dispose(){i=i.filter(f=>f._i!==l._i),t.callHook("entries:updated",a),r()},patch(f){i=i.map(d=>(d._i===l._i&&(d.input=l.input=f),d)),r()}}},async resolveTags(){const c={tags:[],entries:[...i]};await t.callHook("entries:resolve",c);for(const u of c.entries){const l=u.resolvedInput||u.input;if(u.resolvedInput=await(u.transform?u.transform(l):l),u.resolvedInput)for(const f of await w_(u)){const d={tag:f,entry:u,resolvedOptions:a.resolvedOptions};await t.callHook("tag:normalise",d),c.tags.push(d.tag)}}return await t.callHook("tags:beforeResolve",c),await t.callHook("tags:resolve",c),await t.callHook("tags:afterResolve",c),c.tags},ssr:n};return[C_,O_,k_,x_,I_,P_,D_,B_,...(e==null?void 0:e.plugins)||[]].forEach(c=>a.use(c)),a.hooks.callHook("init",a),a}function $_(){return gf}const H_=$u.startsWith("3");function K_(e){return typeof e=="function"?e():Ce(e)}function lo(e,t=""){if(e instanceof Promise)return e;const n=K_(e);return!e||!n?n:Array.isArray(n)?n.map(r=>lo(r,t)):typeof n=="object"?Object.fromEntries(Object.entries(n).map(([r,s])=>r==="titleTemplate"||r.startsWith("on")?[r,Ce(s)]:[r,lo(s,r)])):n}const z_={hooks:{"entries:resolve":function(e){for(const t of e.entries)t.resolvedInput=lo(t.input)}}},_f="usehead";function q_(e){return{install(n){H_&&(n.config.globalProperties.$unhead=e,n.config.globalProperties.$head=e,n.provide(_f,e))}}.install}function W_(e={}){e.domDelayFn=e.domDelayFn||(n=>on(()=>setTimeout(()=>n(),0)));const t=U_(e);return t.use(z_),t.install=q_(t),t}const uo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},fo="__unhead_injection_handler__";function G_(e){uo[fo]=e}function Ev(){if(fo in uo)return uo[fo]();const e=Ue(_f);return e||$_()}const j_={nuxt:{buildId:"31b33077-08db-4c11-bffa-c77c585bb375"}},V_=Zg(j_);function bf(){const e=ve();return e._appConfig||(e._appConfig=Et(V_)),e._appConfig}const Y_=!1,ho=!1,Z_=!1,yv={componentName:"NuxtLink"},vv={deep:!0},wv={},X_="#__nuxt";let Ar,mf;function J_(){var t;const e=(t=bf().nuxt)==null?void 0:t.buildId;return Ar=$fetch(Qo(`builds/meta/${e}.json`)),Ar.then(n=>{mf=Yg(n.matcher)}),Ar}function ls(){return Ar||J_()}async function na(e){return await ls(),sf({},...mf.matchAll(e).reverse())}function uc(e,t={}){const n=eb(e,t),r=ve(),s=r._payloadCache=r._payloadCache||{};return n in s||(s[n]=tb(e).then(i=>i?Ef(n).then(o=>o||(delete s[n],null)):(s[n]=null,null))),s[n]}const Q_="_payload.json";function eb(e,t={}){var s;const n=new URL(e,"http://localhost");if(n.host!=="localhost"||an(n.pathname,{acceptRelative:!0}))throw new Error("Payload URL must not include hostname: "+e);const r=t.hash||(t.fresh?Date.now():(s=bf().nuxt)==null?void 0:s.buildId);return Xo(ea().app.baseURL,n.pathname,Q_+(r?`?${r}`:""))}async function Ef(e){const t=fetch(e).then(n=>n.text().then(yf));try{return await t}catch(n){console.warn("[nuxt] Cannot load payload ",e,n)}return null}async function tb(e=os().path){if(e=Zo(e),(await ls()).prerendered.includes(e))return!0;const n=await na(e);return!!n.prerender&&!n.redirect}let yr=null;async function nb(){if(yr)return yr;const e=document.getElementById("__NUXT_DATA__");if(!e)return{};const t=await yf(e.textContent||""),n=e.dataset.src?await Ef(e.dataset.src):void 0;return yr={...t,...n,...window.__NUXT__},yr}async function yf(e){return await d_(e,ve()._payloadRevivers)}function rb(e,t){ve()._payloadRevivers[e]=t}const fc={NuxtError:e=>cs(e),EmptyShallowRef:e=>jn(e==="_"?void 0:e==="0n"?BigInt(0):Hr(e)),EmptyRef:e=>$t(e==="_"?void 0:e==="0n"?BigInt(0):Hr(e)),ShallowRef:e=>jn(e),ShallowReactive:e=>sr(e),Ref:e=>$t(e),Reactive:e=>Et(e)},sb=ht({name:"nuxt:revive-payload:client",order:-30,async setup(e){let t,n;for(const r in fc)rb(r,fc[r]);Object.assign(e.payload,([t,n]=rn(()=>e.runWithContext(nb)),t=await t,n(),t)),window.__NUXT__=e.payload}}),ib=[],ob=ht({name:"nuxt:head",enforce:"pre",setup(e){const t=W_({plugins:ib});G_(()=>ve().vueApp._context.provides.usehead),e.vueApp.use(t);{let n=!0;const r=async()=>{n=!1,await pf(t)};t.hooks.hook("dom:beforeRender",s=>{s.shouldRender=!n}),e.hooks.hook("page:start",()=>{n=!0}),e.hooks.hook("page:finish",()=>{e.isHydrating||r()}),e.hooks.hook("app:error",r),e.hooks.hook("app:suspense:resolve",r)}}});/*! + * vue-router v4.3.2 + * (c) 2024 Eduardo San Martin Morote + * @license MIT + */const dn=typeof document<"u";function ab(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const be=Object.assign;function Ls(e,t){const n={};for(const r in t){const s=t[r];n[r]=ot(s)?s.map(e):e(s)}return n}const Kn=()=>{},ot=Array.isArray,vf=/#/g,cb=/&/g,lb=/\//g,ub=/=/g,fb=/\?/g,wf=/\+/g,db=/%5B/g,hb=/%5D/g,Sf=/%5E/g,pb=/%60/g,Tf=/%7B/g,gb=/%7C/g,Rf=/%7D/g,_b=/%20/g;function ra(e){return encodeURI(""+e).replace(gb,"|").replace(db,"[").replace(hb,"]")}function bb(e){return ra(e).replace(Tf,"{").replace(Rf,"}").replace(Sf,"^")}function po(e){return ra(e).replace(wf,"%2B").replace(_b,"+").replace(vf,"%23").replace(cb,"%26").replace(pb,"`").replace(Tf,"{").replace(Rf,"}").replace(Sf,"^")}function mb(e){return po(e).replace(ub,"%3D")}function Eb(e){return ra(e).replace(vf,"%23").replace(fb,"%3F")}function yb(e){return e==null?"":Eb(e).replace(lb,"%2F")}function Jn(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const vb=/\/$/,wb=e=>e.replace(vb,"");function Ps(e,t,n="/"){let r,s={},i="",o="";const a=t.indexOf("#");let c=t.indexOf("?");return a=0&&(c=-1),c>-1&&(r=t.slice(0,c),i=t.slice(c+1,a>-1?a:t.length),s=e(i)),a>-1&&(r=r||t.slice(0,a),o=t.slice(a,t.length)),r=Nb(r??t,n),{fullPath:r+(i&&"?")+i+o,path:r,query:s,hash:Jn(o)}}function Sb(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function dc(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Tb(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])&&Nf(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 Nf(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!Rb(e[n],t[n]))return!1;return!0}function Rb(e,t){return ot(e)?hc(e,t):ot(t)?hc(t,e):e===t}function hc(e,t){return ot(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function Nb(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,a;for(o=0;o1&&i--;else break;return n.slice(0,i).join("/")+"/"+r.slice(o).join("/")}var Qn;(function(e){e.pop="pop",e.push="push"})(Qn||(Qn={}));var zn;(function(e){e.back="back",e.forward="forward",e.unknown=""})(zn||(zn={}));function Cb(e){if(!e)if(dn){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),wb(e)}const Ob=/^[^#]+#/;function Ab(e,t){return e.replace(Ob,"#")+t}function kb(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 us=()=>({left:window.scrollX,top:window.scrollY});function Mb(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=kb(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 pc(e,t){return(history.state?history.state.position-t:-1)+e}const go=new Map;function xb(e,t){go.set(e,t)}function Ib(e){const t=go.get(e);return go.delete(e),t}let Lb=()=>location.protocol+"//"+location.host;function Cf(e,t){const{pathname:n,search:r,hash:s}=t,i=e.indexOf("#");if(i>-1){let a=s.includes(e.slice(i))?e.slice(i).length:1,c=s.slice(a);return c[0]!=="/"&&(c="/"+c),dc(c,"")}return dc(n,e)+r+s}function Pb(e,t,n,r){let s=[],i=[],o=null;const a=({state:d})=>{const h=Cf(e,location),_=n.value,m=t.value;let R=0;if(d){if(n.value=h,t.value=d,o&&o===_){o=null;return}R=m?d.position-m.position:0}else r(h);s.forEach(S=>{S(n.value,_,{delta:R,type:Qn.pop,direction:R?R>0?zn.forward:zn.back:zn.unknown})})};function c(){o=n.value}function u(d){s.push(d);const h=()=>{const _=s.indexOf(d);_>-1&&s.splice(_,1)};return i.push(h),h}function l(){const{history:d}=window;d.state&&d.replaceState(be({},d.state,{scroll:us()}),"")}function f(){for(const d of i)d();i=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",l)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",l,{passive:!0}),{pauseListeners:c,listen:u,destroy:f}}function gc(e,t,n,r=!1,s=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:s?us():null}}function Db(e){const{history:t,location:n}=window,r={value:Cf(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(c,u,l){const f=e.indexOf("#"),d=f>-1?(n.host&&document.querySelector("base")?e:e.slice(f))+c:Lb()+e+c;try{t[l?"replaceState":"pushState"](u,"",d),s.value=u}catch(h){console.error(h),n[l?"replace":"assign"](d)}}function o(c,u){const l=be({},t.state,gc(s.value.back,c,s.value.forward,!0),u,{position:s.value.position});i(c,l,!0),r.value=c}function a(c,u){const l=be({},s.value,t.state,{forward:c,scroll:us()});i(l.current,l,!0);const f=be({},gc(r.value,c,null),{position:l.position+1},u);i(c,f,!1),r.value=c}return{location:r,state:s,push:a,replace:o}}function Of(e){e=Cb(e);const t=Db(e),n=Pb(e,t.state,t.location,t.replace);function r(i,o=!0){o||n.pauseListeners(),history.go(i)}const s=be({location:"",base:e,go:r,createHref:Ab.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 Bb(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),Of(e)}function Ub(e){return typeof e=="string"||e&&typeof e=="object"}function Af(e){return typeof e=="string"||typeof e=="symbol"}const st={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},kf=Symbol("");var _c;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(_c||(_c={}));function Cn(e,t){return be(new Error,{type:e,[kf]:!0},t)}function gt(e,t){return e instanceof Error&&kf in e&&(t==null||!!(e.type&t))}const bc="[^/]+?",Fb={sensitive:!1,strict:!1,start:!0,end:!0},$b=/[.+*?^${}()[\]/\\]/g;function Hb(e,t){const n=be({},Fb,t),r=[];let s=n.start?"^":"";const i=[];for(const u of e){const l=u.length?[]:[90];n.strict&&!u.length&&(s+="/");for(let f=0;ft.length?t.length===1&&t[0]===80?1:-1:0}function zb(e,t){let n=0;const r=e.score,s=t.score;for(;n0&&t[t.length-1]<0}const qb={type:0,value:""},Wb=/[a-zA-Z0-9_]/;function Gb(e){if(!e)return[[]];if(e==="/")return[[qb]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(h){throw new Error(`ERR (${n})/"${u}": ${h}`)}let n=0,r=n;const s=[];let i;function o(){i&&s.push(i),i=[]}let a=0,c,u="",l="";function f(){u&&(n===0?i.push({type:0,value:u}):n===1||n===2||n===3?(i.length>1&&(c==="*"||c==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),i.push({type:1,value:u,regexp:l,repeatable:c==="*"||c==="+",optional:c==="*"||c==="?"})):t("Invalid state to consume buffer"),u="")}function d(){u+=c}for(;a{o(y)}:Kn}function o(l){if(Af(l)){const f=r.get(l);f&&(r.delete(l),n.splice(n.indexOf(f),1),f.children.forEach(o),f.alias.forEach(o))}else{const f=n.indexOf(l);f>-1&&(n.splice(f,1),l.record.name&&r.delete(l.record.name),l.children.forEach(o),l.alias.forEach(o))}}function a(){return n}function c(l){let f=0;for(;f=0&&(l.record.path!==n[f].record.path||!Mf(l,n[f]));)f++;n.splice(f,0,l),l.record.name&&!yc(l)&&r.set(l.record.name,l)}function u(l,f){let d,h={},_,m;if("name"in l&&l.name){if(d=r.get(l.name),!d)throw Cn(1,{location:l});m=d.record.name,h=be(Ec(f.params,d.keys.filter(y=>!y.optional).concat(d.parent?d.parent.keys.filter(y=>y.optional):[]).map(y=>y.name)),l.params&&Ec(l.params,d.keys.map(y=>y.name))),_=d.stringify(h)}else if(l.path!=null)_=l.path,d=n.find(y=>y.re.test(_)),d&&(h=d.parse(_),m=d.record.name);else{if(d=f.name?r.get(f.name):n.find(y=>y.re.test(f.path)),!d)throw Cn(1,{location:l,currentLocation:f});m=d.record.name,h=be({},f.params,l.params),_=d.stringify(h)}const R=[];let S=d;for(;S;)R.unshift(S.record),S=S.parent;return{name:m,path:_,params:h,matched:R,meta:Xb(R)}}return e.forEach(l=>i(l)),{addRoute:i,resolve:u,removeRoute:o,getRoutes:a,getRecordMatcher:s}}function Ec(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function Yb(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:Zb(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function Zb(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 yc(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Xb(e){return e.reduce((t,n)=>be(t,n.meta),{})}function vc(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function Mf(e,t){return t.children.some(n=>n===e||Mf(e,n))}function Jb(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let s=0;si&&po(i)):[r&&po(r)]).forEach(i=>{i!==void 0&&(t+=(t.length?"&":"")+n,i!=null&&(t+="="+i))})}return t}function Qb(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=ot(r)?r.map(s=>s==null?null:""+s):r==null?r:""+r)}return t}const em=Symbol(""),Sc=Symbol(""),sa=Symbol(""),ia=Symbol(""),_o=Symbol("");function Ln(){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 It(e,t,n,r,s,i=o=>o()){const o=r&&(r.enterCallbacks[s]=r.enterCallbacks[s]||[]);return()=>new Promise((a,c)=>{const u=d=>{d===!1?c(Cn(4,{from:n,to:t})):d instanceof Error?c(d):Ub(d)?c(Cn(2,{from:t,to:d})):(o&&r.enterCallbacks[s]===o&&typeof d=="function"&&o.push(d),a())},l=i(()=>e.call(r&&r.instances[s],t,n,u));let f=Promise.resolve(l);e.length<3&&(f=f.then(u)),f.catch(d=>c(d))})}function Ds(e,t,n,r,s=i=>i()){const i=[];for(const o of e)for(const a in o.components){let c=o.components[a];if(!(t!=="beforeRouteEnter"&&!o.instances[a]))if(tm(c)){const l=(c.__vccOpts||c)[t];l&&i.push(It(l,n,r,o,a,s))}else{let u=c();i.push(()=>u.then(l=>{if(!l)return Promise.reject(new Error(`Couldn't resolve component "${a}" at "${o.path}"`));const f=ab(l)?l.default:l;o.components[a]=f;const h=(f.__vccOpts||f)[t];return h&&It(h,n,r,o,a,s)()}))}}return i}function tm(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Tc(e){const t=Ue(sa),n=Ue(ia),r=Ve(()=>{const c=Ce(e.to);return t.resolve(c)}),s=Ve(()=>{const{matched:c}=r.value,{length:u}=c,l=c[u-1],f=n.matched;if(!l||!f.length)return-1;const d=f.findIndex(Nn.bind(null,l));if(d>-1)return d;const h=Rc(c[u-2]);return u>1&&Rc(l)===h&&f[f.length-1].path!==h?f.findIndex(Nn.bind(null,c[u-2])):d}),i=Ve(()=>s.value>-1&&im(n.params,r.value.params)),o=Ve(()=>s.value>-1&&s.value===n.matched.length-1&&Nf(n.params,r.value.params));function a(c={}){return sm(c)?t[Ce(e.replace)?"replace":"push"](Ce(e.to)).catch(Kn):Promise.resolve()}return{route:r,href:Ve(()=>r.value.href),isActive:i,isExactActive:o,navigate:a}}const nm=yt({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"}},useLink:Tc,setup(e,{slots:t}){const n=Et(Tc(e)),{options:r}=Ue(sa),s=Ve(()=>({[Nc(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[Nc(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const i=t.default&&t.default(n);return e.custom?i:Ze("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:s.value},i)}}}),rm=nm;function sm(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 im(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(!ot(s)||s.length!==r.length||r.some((i,o)=>i!==s[o]))return!1}return!0}function Rc(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Nc=(e,t,n)=>e??t??n,om=yt({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=Ue(_o),s=Ve(()=>e.route||r.value),i=Ue(Sc,0),o=Ve(()=>{let u=Ce(i);const{matched:l}=s.value;let f;for(;(f=l[u])&&!f.components;)u++;return u}),a=Ve(()=>s.value.matched[o.value]);en(Sc,Ve(()=>o.value+1)),en(em,a),en(_o,s);const c=$t();return Jt(()=>[c.value,a.value,e.name],([u,l,f],[d,h,_])=>{l&&(l.instances[f]=u,h&&h!==l&&u&&u===d&&(l.leaveGuards.size||(l.leaveGuards=h.leaveGuards),l.updateGuards.size||(l.updateGuards=h.updateGuards))),u&&l&&(!h||!Nn(l,h)||!d)&&(l.enterCallbacks[f]||[]).forEach(m=>m(u))},{flush:"post"}),()=>{const u=s.value,l=e.name,f=a.value,d=f&&f.components[l];if(!d)return Cc(n.default,{Component:d,route:u});const h=f.props[l],_=h?h===!0?u.params:typeof h=="function"?h(u):h:null,R=Ze(d,be({},_,t,{onVnodeUnmounted:S=>{S.component.isUnmounted&&(f.instances[l]=null)},ref:c}));return Cc(n.default,{Component:R,route:u})||R}}});function Cc(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const xf=om;function am(e){const t=Vb(e.routes,e),n=e.parseQuery||Jb,r=e.stringifyQuery||wc,s=e.history,i=Ln(),o=Ln(),a=Ln(),c=jn(st);let u=st;dn&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const l=Ls.bind(null,A=>""+A),f=Ls.bind(null,yb),d=Ls.bind(null,Jn);function h(A,H){let K,j;return Af(A)?(K=t.getRecordMatcher(A),j=H):j=A,t.addRoute(j,K)}function _(A){const H=t.getRecordMatcher(A);H&&t.removeRoute(H)}function m(){return t.getRoutes().map(A=>A.record)}function R(A){return!!t.getRecordMatcher(A)}function S(A,H){if(H=be({},H||c.value),typeof A=="string"){const g=Ps(n,A,H.path),N=t.resolve({path:g.path},H),M=s.createHref(g.fullPath);return be(g,N,{params:d(N.params),hash:Jn(g.hash),redirectedFrom:void 0,href:M})}let K;if(A.path!=null)K=be({},A,{path:Ps(n,A.path,H.path).path});else{const g=be({},A.params);for(const N in g)g[N]==null&&delete g[N];K=be({},A,{params:f(g)}),H.params=f(H.params)}const j=t.resolve(K,H),oe=A.hash||"";j.params=l(d(j.params));const ue=Sb(r,be({},A,{hash:bb(oe),path:j.path})),p=s.createHref(ue);return be({fullPath:ue,hash:oe,query:r===wc?Qb(A.query):A.query||{}},j,{redirectedFrom:void 0,href:p})}function y(A){return typeof A=="string"?Ps(n,A,c.value.path):be({},A)}function b(A,H){if(u!==A)return Cn(8,{from:H,to:A})}function E(A){return P(A)}function v(A){return E(be(y(A),{replace:!0}))}function T(A){const H=A.matched[A.matched.length-1];if(H&&H.redirect){const{redirect:K}=H;let j=typeof K=="function"?K(A):K;return typeof j=="string"&&(j=j.includes("?")||j.includes("#")?j=y(j):{path:j},j.params={}),be({query:A.query,hash:A.hash,params:j.path!=null?{}:A.params},j)}}function P(A,H){const K=u=S(A),j=c.value,oe=A.state,ue=A.force,p=A.replace===!0,g=T(K);if(g)return P(be(y(g),{state:typeof g=="object"?be({},oe,g.state):oe,force:ue,replace:p}),H||K);const N=K;N.redirectedFrom=H;let M;return!ue&&Tb(r,j,K)&&(M=Cn(16,{to:N,from:j}),le(j,j,!0,!1)),(M?Promise.resolve(M):B(N,j)).catch(I=>gt(I)?gt(I,2)?I:ae(I):k(I,N,j)).then(I=>{if(I){if(gt(I,2))return P(be({replace:p},y(I.to),{state:typeof I.to=="object"?be({},oe,I.to.state):oe,force:ue}),H||N)}else I=U(N,j,!0,p,oe);return G(N,j,I),I})}function w(A,H){const K=b(A,H);return K?Promise.reject(K):Promise.resolve()}function O(A){const H=Re.values().next().value;return H&&typeof H.runWithContext=="function"?H.runWithContext(A):A()}function B(A,H){let K;const[j,oe,ue]=cm(A,H);K=Ds(j.reverse(),"beforeRouteLeave",A,H);for(const g of j)g.leaveGuards.forEach(N=>{K.push(It(N,A,H))});const p=w.bind(null,A,H);return K.push(p),de(K).then(()=>{K=[];for(const g of i.list())K.push(It(g,A,H));return K.push(p),de(K)}).then(()=>{K=Ds(oe,"beforeRouteUpdate",A,H);for(const g of oe)g.updateGuards.forEach(N=>{K.push(It(N,A,H))});return K.push(p),de(K)}).then(()=>{K=[];for(const g of ue)if(g.beforeEnter)if(ot(g.beforeEnter))for(const N of g.beforeEnter)K.push(It(N,A,H));else K.push(It(g.beforeEnter,A,H));return K.push(p),de(K)}).then(()=>(A.matched.forEach(g=>g.enterCallbacks={}),K=Ds(ue,"beforeRouteEnter",A,H,O),K.push(p),de(K))).then(()=>{K=[];for(const g of o.list())K.push(It(g,A,H));return K.push(p),de(K)}).catch(g=>gt(g,8)?g:Promise.reject(g))}function G(A,H,K){a.list().forEach(j=>O(()=>j(A,H,K)))}function U(A,H,K,j,oe){const ue=b(A,H);if(ue)return ue;const p=H===st,g=dn?history.state:{};K&&(j||p?s.replace(A.fullPath,be({scroll:p&&g&&g.scroll},oe)):s.push(A.fullPath,oe)),c.value=A,le(A,H,K,p),ae()}let Z;function se(){Z||(Z=s.listen((A,H,K)=>{if(!me.listening)return;const j=S(A),oe=T(j);if(oe){P(be(oe,{replace:!0}),j).catch(Kn);return}u=j;const ue=c.value;dn&&xb(pc(ue.fullPath,K.delta),us()),B(j,ue).catch(p=>gt(p,12)?p:gt(p,2)?(P(p.to,j).then(g=>{gt(g,20)&&!K.delta&&K.type===Qn.pop&&s.go(-1,!1)}).catch(Kn),Promise.reject()):(K.delta&&s.go(-K.delta,!1),k(p,j,ue))).then(p=>{p=p||U(j,ue,!1),p&&(K.delta&&!gt(p,8)?s.go(-K.delta,!1):K.type===Qn.pop&>(p,20)&&s.go(-1,!1)),G(j,ue,p)}).catch(Kn)}))}let J=Ln(),$=Ln(),C;function k(A,H,K){ae(A);const j=$.list();return j.length?j.forEach(oe=>oe(A,H,K)):console.error(A),Promise.reject(A)}function te(){return C&&c.value!==st?Promise.resolve():new Promise((A,H)=>{J.add([A,H])})}function ae(A){return C||(C=!A,se(),J.list().forEach(([H,K])=>A?K(A):H()),J.reset()),A}function le(A,H,K,j){const{scrollBehavior:oe}=e;if(!dn||!oe)return Promise.resolve();const ue=!K&&Ib(pc(A.fullPath,0))||(j||!K)&&history.state&&history.state.scroll||null;return on().then(()=>oe(A,H,ue)).then(p=>p&&Mb(p)).catch(p=>k(p,A,H))}const pe=A=>s.go(A);let Te;const Re=new Set,me={currentRoute:c,listening:!0,addRoute:h,removeRoute:_,hasRoute:R,getRoutes:m,resolve:S,options:e,push:E,replace:v,go:pe,back:()=>pe(-1),forward:()=>pe(1),beforeEach:i.add,beforeResolve:o.add,afterEach:a.add,onError:$.add,isReady:te,install(A){const H=this;A.component("RouterLink",rm),A.component("RouterView",xf),A.config.globalProperties.$router=H,Object.defineProperty(A.config.globalProperties,"$route",{enumerable:!0,get:()=>Ce(c)}),dn&&!Te&&c.value===st&&(Te=!0,E(s.location).catch(oe=>{}));const K={};for(const oe in st)Object.defineProperty(K,oe,{get:()=>c.value[oe],enumerable:!0});A.provide(sa,H),A.provide(ia,sr(K)),A.provide(_o,c);const j=A.unmount;Re.add(A),A.unmount=function(){Re.delete(A),Re.size<1&&(u=st,Z&&Z(),Z=null,c.value=st,Te=!1,C=!1),j()}}};function de(A){return A.reduce((H,K)=>H.then(()=>O(K)),Promise.resolve())}return me}function cm(e,t){const n=[],r=[],s=[],i=Math.max(t.matched.length,e.matched.length);for(let o=0;oNn(u,a))?r.push(a):n.push(a));const c=e.matched[o];c&&(t.matched.find(u=>Nn(u,c))||s.push(c))}return[n,r,s]}function lm(){return Ue(ia)}const um=(e,t)=>t.path.replace(/(:\w+)\([^)]+\)/g,"$1").replace(/(:\w+)[?+*]/g,"$1").replace(/:\w+/g,n=>{var r;return((r=e.params[n.slice(1)])==null?void 0:r.toString())||""}),bo=(e,t)=>{const n=e.route.matched.find(s=>{var i;return((i=s.components)==null?void 0:i.default)===e.Component.type}),r=t??(n==null?void 0:n.meta.key)??(n&&um(e.route,n));return typeof r=="function"?r(e.route):r},fm=(e,t)=>({default:()=>e?Ze(Th,e===!0?{}:e,t):t});function oa(e){return Array.isArray(e)?e:[e]}const Bs=null,Us=null,Fs=null,$s=null,Hs=null,Ks=null,zs=null,qs=null,Ws=null,Gs=null,js=null,Vs=null,Ys=null,Zs=null,Xs=null,Js=null,Qs=null,Oc=[{name:"http-dumps-id",path:"/http-dumps/:id()",meta:{},alias:[],redirect:Bs==null?void 0:Bs.redirect,component:()=>Ie(()=>import("./Bn3khBIR.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12]),import.meta.url).then(e=>e.default||e)},{name:"http-dumps",path:"/http-dumps",meta:{},alias:[],redirect:Us==null?void 0:Us.redirect,component:()=>Ie(()=>import("./DzqND28P.js"),__vite__mapDeps([13,14,1,2,3,4,11,15,16,6,17,18,19,20,7,21]),import.meta.url).then(e=>e.default||e)},{name:"index",path:"/",meta:{},alias:[],redirect:Fs==null?void 0:Fs.redirect,component:()=>Ie(()=>import("./Cnzz4dJo.js"),__vite__mapDeps([22,14,1,2,3,4,11,15,16,6,17,18,19,20,7,21]),import.meta.url).then(e=>e.default||e)},{name:"inspector-id",path:"/inspector/:id()",meta:{},alias:[],redirect:$s==null?void 0:$s.redirect,component:()=>Ie(()=>import("./BHcW0LFx.js"),__vite__mapDeps([23,1,2,3,4,24,15,8,9,10,7,25]),import.meta.url).then(e=>e.default||e)},{name:"inspector",path:"/inspector",meta:{},alias:[],redirect:Hs==null?void 0:Hs.redirect,component:()=>Ie(()=>import("./DvO467xH.js"),__vite__mapDeps([26,14,1,2,3,4,11,15,16,6,17,18,19,20,7,21]),import.meta.url).then(e=>e.default||e)},{name:"login",path:"/login",meta:{},alias:[],redirect:Ks==null?void 0:Ks.redirect,component:()=>Ie(()=>import("./Ci77yoCC.js"),__vite__mapDeps([27,2,3,28]),import.meta.url).then(e=>e.default||e)},{name:"profiler-id",path:"/profiler/:id()",meta:{},alias:[],redirect:zs==null?void 0:zs.redirect,component:()=>Ie(()=>import("./0ZriSCq6.js"),__vite__mapDeps([29,1,2,3,4,8,9,10,7,16,6,30,31]),import.meta.url).then(e=>e.default||e)},{name:"profiler",path:"/profiler",meta:{},alias:[],redirect:qs==null?void 0:qs.redirect,component:()=>Ie(()=>import("./BMyZPxuX.js"),__vite__mapDeps([32,14,1,2,3,4,11,15,16,6,17,18,19,20,7,21]),import.meta.url).then(e=>e.default||e)},{name:"ray-id",path:"/ray/:id()",meta:{},alias:[],redirect:Ws==null?void 0:Ws.redirect,component:()=>Ie(()=>import("./w8mAji56.js"),__vite__mapDeps([33,1,2,3,4,24,17,8,9,10,7,34]),import.meta.url).then(e=>e.default||e)},{name:"ray",path:"/ray",meta:{},alias:[],redirect:Gs==null?void 0:Gs.redirect,component:()=>Ie(()=>import("./BMdUaude.js"),__vite__mapDeps([35,14,1,2,3,4,11,15,16,6,17,18,19,20,7,21]),import.meta.url).then(e=>e.default||e)},{name:"sentry-id",path:"/sentry/:id()",meta:{},alias:[],redirect:js==null?void 0:js.redirect,component:()=>Ie(()=>import("./BdrKFk9O.js"),__vite__mapDeps([36,1,2,3,4,8,18,6,9,10,7,37]),import.meta.url).then(e=>e.default||e)},{name:"sentry",path:"/sentry",meta:{},alias:[],redirect:Vs==null?void 0:Vs.redirect,component:()=>Ie(()=>import("./wDBHmgcs.js"),__vite__mapDeps([38,14,1,2,3,4,11,15,16,6,17,18,19,20,7,21]),import.meta.url).then(e=>e.default||e)},{name:"settings",path:"/settings",meta:{},alias:[],redirect:Ys==null?void 0:Ys.redirect,component:()=>Ie(()=>import("./O373Xneh.js"),__vite__mapDeps([39,1,2,3,4,9,10,7,40]),import.meta.url).then(e=>e.default||e)},{name:"smtp-id",path:"/smtp/:id()",meta:{},alias:[],redirect:Zs==null?void 0:Zs.redirect,component:()=>Ie(()=>import("./QHAIPh3w.js"),__vite__mapDeps([41,1,2,3,4,8,30,5,6,9,10,7,19,42]),import.meta.url).then(e=>e.default||e)},{name:"smtp",path:"/smtp",meta:{},alias:[],redirect:Xs==null?void 0:Xs.redirect,component:()=>Ie(()=>import("./DnxAvhKT.js"),__vite__mapDeps([43,14,1,2,3,4,11,15,16,6,17,18,19,20,7,21]),import.meta.url).then(e=>e.default||e)},{name:"var-dump-id",path:"/var-dump/:id()",meta:{},alias:[],redirect:Js==null?void 0:Js.redirect,component:()=>Ie(()=>import("./CK35f-W6.js"),__vite__mapDeps([44,1,2,3,4,24,8,9,10,7,20,45]),import.meta.url).then(e=>e.default||e)},{name:"var-dump",path:"/var-dump",meta:{},alias:[],redirect:Qs==null?void 0:Qs.redirect,component:()=>Ie(()=>import("./OC0GW5jB.js"),__vite__mapDeps([46,14,1,2,3,4,11,15,16,6,17,18,19,20,7,21]),import.meta.url).then(e=>e.default||e)}],If=(e,t,n)=>(t=t===!0?{}:t,{default:()=>{var r;return t?Ze(e,t,n):(r=n.default)==null?void 0:r.call(n)}});function Ac(e){const t=(e==null?void 0:e.meta.key)??e.path.replace(/(:\w+)\([^)]+\)/g,"$1").replace(/(:\w+)[?+*]/g,"$1").replace(/:\w+/g,n=>{var r;return((r=e.params[n.slice(1)])==null?void 0:r.toString())||""});return typeof t=="function"?t(e):t}function dm(e,t){return e===t||t===st?!1:Ac(e)!==Ac(t)?!0:!e.matched.every((r,s)=>{var i,o;return r.components&&r.components.default===((o=(i=t.matched[s])==null?void 0:i.components)==null?void 0:o.default)})}const hm={scrollBehavior(e,t,n){var u;const r=ve(),s=((u=at().options)==null?void 0:u.scrollBehaviorType)??"auto";let i=n||void 0;const o=typeof e.meta.scrollToTop=="function"?e.meta.scrollToTop(e,t):e.meta.scrollToTop;if(!i&&t&&e&&o!==!1&&dm(e,t)&&(i={left:0,top:0}),e.path===t.path)return t.hash&&!e.hash?{left:0,top:0}:e.hash?{el:e.hash,top:kc(e.hash),behavior:s}:!1;const a=l=>!!(l.meta.pageTransition??ho),c=a(t)&&a(e)?"page:transition:finish":"page:finish";return new Promise(l=>{r.hooks.hookOnce(c,async()=>{await new Promise(f=>setTimeout(f,0)),e.hash&&(i={el:e.hash,top:kc(e.hash),behavior:s}),l(i)})})}};function kc(e){try{const t=document.querySelector(e);if(t)return parseFloat(getComputedStyle(t).scrollMarginTop)}catch{}return 0}const pm={hashMode:!0,scrollBehaviorType:"auto"},Ge={...pm,...hm},gm=async e=>{var c;let t,n;if(!((c=e.meta)!=null&&c.validate))return;const r=ve(),s=at();if(([t,n]=rn(()=>Promise.resolve(e.meta.validate(e))),t=await t,n(),t)===!0)return;const o=cs({statusCode:404,statusMessage:`Page Not Found: ${e.fullPath}`,data:{path:e.fullPath}}),a=s.beforeResolve(u=>{if(a(),u===e){const l=s.afterEach(async()=>{l(),await r.runWithContext(()=>hn(o)),window.history.pushState({},"",e.fullPath)});return!1}})},Mc=globalThis.requestIdleCallback||(e=>{const t=Date.now(),n={didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-t))};return setTimeout(()=>{e(n)},1)}),Sv=globalThis.cancelIdleCallback||(e=>{clearTimeout(e)}),Lf=e=>{const t=ve();t.isHydrating?t.hooks.hookOnce("app:suspense:resolve",()=>{Mc(e)}):Mc(e)};function _m(e={}){const t=e.path||window.location.pathname;let n={};try{n=Hr(sessionStorage.getItem("nuxt:reload")||"{}")}catch{}if(e.force||(n==null?void 0:n.path)!==t||(n==null?void 0:n.expires){const e=window.location.host;return`${window.location.protocol==="https:"?"wss":"ws"}://${e}/connection/websocket`},mm=()=>{const e=window.location.host;return`${window.location.protocol==="https:"?"https":"http"}://${e}`},ei=Pf.VITE_EVENTS_REST_API||mm(),Tv=Pf.VITE_EVENTS_WS_API||bm();var ft=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Em(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ym={},fs={},ar={},aa={exports:{}},yn=typeof Reflect=="object"?Reflect:null,xc=yn&&typeof yn.apply=="function"?yn.apply:function(t,n,r){return Function.prototype.apply.call(t,n,r)},kr;yn&&typeof yn.ownKeys=="function"?kr=yn.ownKeys:Object.getOwnPropertySymbols?kr=function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:kr=function(t){return Object.getOwnPropertyNames(t)};function vm(e){console&&console.warn&&console.warn(e)}var Df=Number.isNaN||function(t){return t!==t};function Ee(){Ee.init.call(this)}aa.exports=Ee;aa.exports.once=Rm;Ee.EventEmitter=Ee;Ee.prototype._events=void 0;Ee.prototype._eventsCount=0;Ee.prototype._maxListeners=void 0;var Ic=10;function ds(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(Ee,"defaultMaxListeners",{enumerable:!0,get:function(){return Ic},set:function(e){if(typeof e!="number"||e<0||Df(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");Ic=e}});Ee.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};Ee.prototype.setMaxListeners=function(t){if(typeof t!="number"||t<0||Df(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this};function Bf(e){return e._maxListeners===void 0?Ee.defaultMaxListeners:e._maxListeners}Ee.prototype.getMaxListeners=function(){return Bf(this)};Ee.prototype.emit=function(t){for(var n=[],r=1;r0&&(o=n[0]),o instanceof Error)throw o;var a=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw a.context=o,a}var c=i[t];if(c===void 0)return!1;if(typeof c=="function")xc(c,this,n);else for(var u=c.length,l=Kf(c,u),r=0;r0&&o.length>s&&!o.warned){o.warned=!0;var a=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");a.name="MaxListenersExceededWarning",a.emitter=e,a.type=t,a.count=o.length,vm(a)}return e}Ee.prototype.addListener=function(t,n){return Uf(this,t,n,!1)};Ee.prototype.on=Ee.prototype.addListener;Ee.prototype.prependListener=function(t,n){return Uf(this,t,n,!0)};function wm(){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 Ff(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},s=wm.bind(r);return s.listener=n,r.wrapFn=s,s}Ee.prototype.once=function(t,n){return ds(n),this.on(t,Ff(this,t,n)),this};Ee.prototype.prependOnceListener=function(t,n){return ds(n),this.prependListener(t,Ff(this,t,n)),this};Ee.prototype.removeListener=function(t,n){var r,s,i,o,a;if(ds(n),s=this._events,s===void 0)return this;if(r=s[t],r===void 0)return this;if(r===n||r.listener===n)--this._eventsCount===0?this._events=Object.create(null):(delete s[t],s.removeListener&&this.emit("removeListener",t,r.listener||n));else if(typeof r!="function"){for(i=-1,o=r.length-1;o>=0;o--)if(r[o]===n||r[o].listener===n){a=r[o].listener,i=o;break}if(i<0)return this;i===0?r.shift():Sm(r,i),r.length===1&&(s[t]=r[0]),s.removeListener!==void 0&&this.emit("removeListener",t,a||n)}return this};Ee.prototype.off=Ee.prototype.removeListener;Ee.prototype.removeAllListeners=function(t){var n,r,s;if(r=this._events,r===void 0)return this;if(r.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):r[t]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete r[t]),this;if(arguments.length===0){var i=Object.keys(r),o;for(s=0;s=0;s--)this.removeListener(t,n[s]);return this};function $f(e,t,n){var r=e._events;if(r===void 0)return[];var s=r[t];return s===void 0?[]:typeof s=="function"?n?[s.listener||s]:[s]:n?Tm(s):Kf(s,s.length)}Ee.prototype.listeners=function(t){return $f(this,t,!0)};Ee.prototype.rawListeners=function(t){return $f(this,t,!1)};Ee.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):Hf.call(e,t)};Ee.prototype.listenerCount=Hf;function Hf(e){var t=this._events;if(t!==void 0){var n=t[e];if(typeof n=="function")return 1;if(n!==void 0)return n.length}return 0}Ee.prototype.eventNames=function(){return this._eventsCount>0?kr(this._events):[]};function Kf(e,t){for(var n=new Array(t),r=0;r31&&(e=31);const r=Am(0,Math.min(n,t*Math.pow(2,e)));return Math.min(n,t+r)}He.backoff=km;function Mm(e){return"error"in e&&e.error!==null}He.errorExists=Mm;function xm(e){return Math.min(e*1e3,2147483647)}He.ttlMilliseconds=xm;var Im=ft&&ft.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ar,"__esModule",{value:!0});ar.Subscription=void 0;const Lm=Im(qf),Je=Ye,rt=hs,vr=He;class Pm extends Lm.default{constructor(t,n,r){super(),this._resubscribeTimeout=null,this._refreshTimeout=null,this.channel=n,this.state=rt.SubscriptionState.Unsubscribed,this._centrifuge=t,this._token=null,this._getToken=null,this._data=null,this._recover=!1,this._offset=null,this._epoch=null,this._recoverable=!1,this._positioned=!1,this._joinLeave=!1,this._minResubscribeDelay=500,this._maxResubscribeDelay=2e4,this._resubscribeTimeout=null,this._resubscribeAttempts=0,this._promises={},this._promiseId=0,this._inflight=!1,this._refreshTimeout=null,this._setOptions(r),this._centrifuge._debugEnabled?(this.on("state",s=>{this._centrifuge._debug("subscription state",n,s.oldState,"->",s.newState)}),this.on("error",s=>{this._centrifuge._debug("subscription error",n,s)})):this.on("error",function(){Function.prototype()})}ready(t){return this.state===rt.SubscriptionState.Unsubscribed?Promise.reject({code:Je.errorCodes.subscriptionUnsubscribed,message:this.state}):this.state===rt.SubscriptionState.Subscribed?Promise.resolve():new Promise((n,r)=>{const s={resolve:n,reject:r};t&&(s.timeout=setTimeout(function(){r({code:Je.errorCodes.timeout,message:"timeout"})},t)),this._promises[this._nextPromiseId()]=s})}subscribe(){this._isSubscribed()||(this._resubscribeAttempts=0,this._setSubscribing(Je.subscribingCodes.subscribeCalled,"subscribe called"))}unsubscribe(){this._setUnsubscribed(Je.unsubscribedCodes.unsubscribeCalled,"unsubscribe called",!0)}publish(t){const n=this;return this._methodCall().then(function(){return n._centrifuge.publish(n.channel,t)})}presence(){const t=this;return this._methodCall().then(function(){return t._centrifuge.presence(t.channel)})}presenceStats(){const t=this;return this._methodCall().then(function(){return t._centrifuge.presenceStats(t.channel)})}history(t){const n=this;return this._methodCall().then(function(){return n._centrifuge.history(n.channel,t)})}_methodCall(){return this._isSubscribed()?Promise.resolve():this._isUnsubscribed()?Promise.reject({code:Je.errorCodes.subscriptionUnsubscribed,message:this.state}):new Promise((t,n)=>{const r=setTimeout(function(){n({code:Je.errorCodes.timeout,message:"timeout"})},this._centrifuge._config.timeout);this._promises[this._nextPromiseId()]={timeout:r,resolve:t,reject:n}})}_nextPromiseId(){return++this._promiseId}_needRecover(){return this._recover===!0}_isUnsubscribed(){return this.state===rt.SubscriptionState.Unsubscribed}_isSubscribing(){return this.state===rt.SubscriptionState.Subscribing}_isSubscribed(){return this.state===rt.SubscriptionState.Subscribed}_setState(t){if(this.state!==t){const n=this.state;return this.state=t,this.emit("state",{newState:t,oldState:n,channel:this.channel}),!0}return!1}_usesToken(){return this._token!==null||this._getToken!==null}_clearSubscribingState(){this._resubscribeAttempts=0,this._clearResubscribeTimeout()}_clearSubscribedState(){this._clearRefreshTimeout()}_setSubscribed(t){if(!this._isSubscribing())return;this._clearSubscribingState(),t.recoverable&&(this._recover=!0,this._offset=t.offset||0,this._epoch=t.epoch||""),this._setState(rt.SubscriptionState.Subscribed);const n=this._centrifuge._getSubscribeContext(this.channel,t);this.emit("subscribed",n),this._resolvePromises();const r=t.publications;if(r&&r.length>0)for(const s in r)r.hasOwnProperty(s)&&this._handlePublication(r[s]);t.expires===!0&&(this._refreshTimeout=setTimeout(()=>this._refresh(),(0,vr.ttlMilliseconds)(t.ttl)))}_setSubscribing(t,n){this._isSubscribing()||(this._isSubscribed()&&this._clearSubscribedState(),this._setState(rt.SubscriptionState.Subscribing)&&this.emit("subscribing",{channel:this.channel,code:t,reason:n}),this._subscribe(!1,!1))}_subscribe(t,n){if(this._centrifuge._debug("subscribing on",this.channel),this._centrifuge.state!==rt.State.Connected&&!t)return this._centrifuge._debug("delay subscribe on",this.channel,"till connected"),null;if(this._usesToken()){if(this._token)return this._sendSubscribe(this._token,n);{if(t)return null;const r=this;return this._getSubscriptionToken().then(function(s){if(r._isSubscribing()){if(!s){r._failUnauthorized();return}r._token=s,r._sendSubscribe(s,!1)}}).catch(function(s){r._isSubscribing()&&(r.emit("error",{type:"subscribeToken",channel:r.channel,error:{code:Je.errorCodes.subscriptionSubscribeToken,message:s!==void 0?s.toString():""}}),r._scheduleResubscribe())}),null}}else return this._sendSubscribe("",n)}_sendSubscribe(t,n){const s={channel:this.channel};if(t&&(s.token=t),this._data&&(s.data=this._data),this._positioned&&(s.positioned=!0),this._recoverable&&(s.recoverable=!0),this._joinLeave&&(s.join_leave=!0),this._needRecover()){s.recover=!0;const o=this._getOffset();o&&(s.offset=o);const a=this._getEpoch();a&&(s.epoch=a)}const i={subscribe:s};return this._inflight=!0,this._centrifuge._call(i,n).then(o=>{this._inflight=!1;const a=o.reply.subscribe;this._handleSubscribeResponse(a),o.next&&o.next()},o=>{this._inflight=!1,this._handleSubscribeError(o.error),o.next&&o.next()}),i}_handleSubscribeError(t){if(this._isSubscribing()){if(t.code===Je.errorCodes.timeout){this._centrifuge._disconnect(Je.connectingCodes.subscribeTimeout,"subscribe timeout",!0);return}this._subscribeError(t)}}_handleSubscribeResponse(t){this._isSubscribing()&&this._setSubscribed(t)}_setUnsubscribed(t,n,r){this._isUnsubscribed()||(this._isSubscribed()&&(r&&this._centrifuge._unsubscribe(this),this._clearSubscribedState()),this._isSubscribing()&&this._clearSubscribingState(),this._setState(rt.SubscriptionState.Unsubscribed)&&this.emit("unsubscribed",{channel:this.channel,code:t,reason:n}),this._rejectPromises({code:Je.errorCodes.subscriptionUnsubscribed,message:this.state}))}_handlePublication(t){const n=this._centrifuge._getPublicationContext(this.channel,t);this.emit("publication",n),t.offset&&(this._offset=t.offset)}_handleJoin(t){const n=this._centrifuge._getJoinLeaveContext(t.info);this.emit("join",{channel:this.channel,info:n})}_handleLeave(t){const n=this._centrifuge._getJoinLeaveContext(t.info);this.emit("leave",{channel:this.channel,info:n})}_resolvePromises(){for(const t in this._promises)this._promises[t].timeout&&clearTimeout(this._promises[t].timeout),this._promises[t].resolve(),delete this._promises[t]}_rejectPromises(t){for(const n in this._promises)this._promises[n].timeout&&clearTimeout(this._promises[n].timeout),this._promises[n].reject(t),delete this._promises[n]}_scheduleResubscribe(){const t=this,n=this._getResubscribeDelay();this._resubscribeTimeout=setTimeout(function(){t._isSubscribing()&&t._subscribe(!1,!1)},n)}_subscribeError(t){if(this._isSubscribing())if(t.code<100||t.code===109||t.temporary===!0){t.code===109&&(this._token=null);const n={channel:this.channel,type:"subscribe",error:t};this._centrifuge.state===rt.State.Connected&&this.emit("error",n),this._scheduleResubscribe()}else this._setUnsubscribed(t.code,t.message,!1)}_getResubscribeDelay(){const t=(0,vr.backoff)(this._resubscribeAttempts,this._minResubscribeDelay,this._maxResubscribeDelay);return this._resubscribeAttempts++,t}_setOptions(t){t&&(t.since&&(this._offset=t.since.offset,this._epoch=t.since.epoch,this._recover=!0),t.data&&(this._data=t.data),t.minResubscribeDelay!==void 0&&(this._minResubscribeDelay=t.minResubscribeDelay),t.maxResubscribeDelay!==void 0&&(this._maxResubscribeDelay=t.maxResubscribeDelay),t.token&&(this._token=t.token),t.getToken&&(this._getToken=t.getToken),t.positioned===!0&&(this._positioned=!0),t.recoverable===!0&&(this._recoverable=!0),t.joinLeave===!0&&(this._joinLeave=!0))}_getOffset(){const t=this._offset;return t!==null?t:0}_getEpoch(){const t=this._epoch;return t!==null?t:""}_clearRefreshTimeout(){this._refreshTimeout!==null&&(clearTimeout(this._refreshTimeout),this._refreshTimeout=null)}_clearResubscribeTimeout(){this._resubscribeTimeout!==null&&(clearTimeout(this._resubscribeTimeout),this._resubscribeTimeout=null)}_getSubscriptionToken(){this._centrifuge._debug("get subscription token for channel",this.channel);const t={channel:this.channel},n=this._getToken;if(n===null)throw new Error("provide a function to get channel subscription token");return n(t)}_refresh(){this._clearRefreshTimeout();const t=this;this._getSubscriptionToken().then(function(n){if(!t._isSubscribed())return;if(!n){t._failUnauthorized();return}t._token=n;const s={sub_refresh:{channel:t.channel,token:n}};t._centrifuge._call(s).then(i=>{const o=i.reply.sub_refresh;t._refreshResponse(o),i.next&&i.next()},i=>{t._refreshError(i.error),i.next&&i.next()})}).catch(function(n){t.emit("error",{type:"refreshToken",channel:t.channel,error:{code:Je.errorCodes.subscriptionRefreshToken,message:n!==void 0?n.toString():""}}),t._refreshTimeout=setTimeout(()=>t._refresh(),t._getRefreshRetryDelay())})}_refreshResponse(t){this._isSubscribed()&&(this._centrifuge._debug("subscription token refreshed, channel",this.channel),this._clearRefreshTimeout(),t.expires===!0&&(this._refreshTimeout=setTimeout(()=>this._refresh(),(0,vr.ttlMilliseconds)(t.ttl))))}_refreshError(t){this._isSubscribed()&&(t.code<100||t.temporary===!0?(this.emit("error",{type:"refresh",channel:this.channel,error:t}),this._refreshTimeout=setTimeout(()=>this._refresh(),this._getRefreshRetryDelay())):this._setUnsubscribed(t.code,t.message,!0))}_getRefreshRetryDelay(){return(0,vr.backoff)(0,1e4,2e4)}_failUnauthorized(){this._setUnsubscribed(Je.unsubscribedCodes.unauthorized,"unauthorized",!0)}}ar.Subscription=Pm;var ps={};Object.defineProperty(ps,"__esModule",{value:!0});ps.SockjsTransport=void 0;class Dm{constructor(t,n){this.endpoint=t,this.options=n,this._transport=null}name(){return"sockjs"}subName(){return"sockjs-"+this._transport.transport}emulation(){return!1}supported(){return this.options.sockjs!==null}initialize(t,n){this._transport=new this.options.sockjs(this.endpoint,null,this.options.sockjsOptions),this._transport.onopen=()=>{n.onOpen()},this._transport.onerror=r=>{n.onError(r)},this._transport.onclose=r=>{n.onClose(r)},this._transport.onmessage=r=>{n.onMessage(r.data)}}close(){this._transport.close()}send(t){this._transport.send(t)}}ps.SockjsTransport=Dm;var gs={};Object.defineProperty(gs,"__esModule",{value:!0});gs.WebsocketTransport=void 0;class Bm{constructor(t,n){this.endpoint=t,this.options=n,this._transport=null}name(){return"websocket"}subName(){return"websocket"}emulation(){return!1}supported(){return this.options.websocket!==void 0&&this.options.websocket!==null}initialize(t,n){let r="";t==="protobuf"&&(r="centrifuge-protobuf"),r!==""?this._transport=new this.options.websocket(this.endpoint,r):this._transport=new this.options.websocket(this.endpoint),t==="protobuf"&&(this._transport.binaryType="arraybuffer"),this._transport.onopen=()=>{n.onOpen()},this._transport.onerror=s=>{n.onError(s)},this._transport.onclose=s=>{n.onClose(s)},this._transport.onmessage=s=>{n.onMessage(s.data)}}close(){this._transport.close()}send(t){this._transport.send(t)}}gs.WebsocketTransport=Bm;var _s={};Object.defineProperty(_s,"__esModule",{value:!0});_s.HttpStreamTransport=void 0;class Um{constructor(t,n){this.endpoint=t,this.options=n,this._abortController=null,this._utf8decoder=new TextDecoder,this._protocol="json"}name(){return"http_stream"}subName(){return"http_stream"}emulation(){return!0}_handleErrors(t){if(!t.ok)throw new Error(t.status);return t}_fetchEventTarget(t,n,r){const s=new EventTarget,i=t.options.fetch;return i(n,r).then(t._handleErrors).then(o=>{s.dispatchEvent(new Event("open"));let a="",c=0,u=new Uint8Array;const l=o.body.getReader();return new t.options.readableStream({start(f){function d(){return l.read().then(({done:h,value:_})=>{if(h){s.dispatchEvent(new Event("close")),f.close();return}try{if(t._protocol==="json")for(a+=t._utf8decoder.decode(_);c{s.dispatchEvent(new Event("error",{detail:o})),s.dispatchEvent(new Event("close"))}),s}supported(){return this.options.fetch!==null&&this.options.readableStream!==null&&typeof TextDecoder<"u"&&typeof AbortController<"u"&&typeof EventTarget<"u"&&typeof Event<"u"&&typeof MessageEvent<"u"&&typeof Error<"u"}initialize(t,n,r){this._protocol=t,this._abortController=new AbortController;let s,i;t==="json"?(s={Accept:"application/json","Content-Type":"application/json"},i=r):(s={Accept:"application/octet-stream","Content-Type":"application/octet-stream"},i=r);const o={method:"POST",headers:s,body:i,mode:"cors",credentials:"same-origin",cache:"no-cache",signal:this._abortController.signal},a=this._fetchEventTarget(this,this.endpoint,o);a.addEventListener("open",()=>{n.onOpen()}),a.addEventListener("error",c=>{this._abortController.abort(),n.onError(c)}),a.addEventListener("close",()=>{this._abortController.abort(),n.onClose({code:4,reason:"connection closed"})}),a.addEventListener("message",c=>{n.onMessage(c.data)})}close(){this._abortController.abort()}send(t,n,r){let s,i;const o={session:n,node:r,data:t};this._protocol==="json"?(s={"Content-Type":"application/json"},i=JSON.stringify(o)):(s={"Content-Type":"application/octet-stream"},i=this.options.encoder.encodeEmulationRequest(o));const a=this.options.fetch,c={method:"POST",headers:s,body:i,mode:"cors",credentials:"same-origin",cache:"no-cache"};a(this.options.emulationEndpoint,c)}}_s.HttpStreamTransport=Um;var bs={};Object.defineProperty(bs,"__esModule",{value:!0});bs.SseTransport=void 0;class Fm{constructor(t,n){this.endpoint=t,this.options=n,this._protocol="json",this._transport=null,this._onClose=null}name(){return"sse"}subName(){return"sse"}emulation(){return!0}supported(){return this.options.eventsource!==null&&this.options.fetch!==null}initialize(t,n,r){let s;globalThis&&globalThis.document&&globalThis.document.baseURI?s=new URL(this.endpoint,globalThis.document.baseURI):s=new URL(this.endpoint),s.searchParams.append("cf_connect",r);const i={},o=new this.options.eventsource(s.toString(),i);this._transport=o;const a=this;o.onopen=function(){n.onOpen()},o.onerror=function(c){o.close(),n.onError(c),n.onClose({code:4,reason:"connection closed"})},o.onmessage=function(c){n.onMessage(c.data)},a._onClose=function(){n.onClose({code:4,reason:"connection closed"})}}close(){this._transport.close(),this._onClose!==null&&this._onClose()}send(t,n,r){const s={session:n,node:r,data:t},i={"Content-Type":"application/json"},o=JSON.stringify(s),a=this.options.fetch,c={method:"POST",headers:i,body:o,mode:"cors",credentials:"same-origin",cache:"no-cache"};a(this.options.emulationEndpoint,c)}}bs.SseTransport=Fm;var ms={},wr=ft&&ft.__awaiter||function(e,t,n,r){function s(i){return i instanceof n?i:new n(function(o){o(i)})}return new(n||(n=Promise))(function(i,o){function a(l){try{u(r.next(l))}catch(f){o(f)}}function c(l){try{u(r.throw(l))}catch(f){o(f)}}function u(l){l.done?i(l.value):s(l.value).then(a,c)}u((r=r.apply(e,t||[])).next())})};Object.defineProperty(ms,"__esModule",{value:!0});ms.WebtransportTransport=void 0;class $m{constructor(t,n){this.endpoint=t,this.options=n,this._transport=null,this._stream=null,this._writer=null,this._utf8decoder=new TextDecoder,this._protocol="json"}name(){return"webtransport"}subName(){return"webtransport"}emulation(){return!1}supported(){return this.options.webtransport!==void 0&&this.options.webtransport!==null}initialize(t,n){return wr(this,void 0,void 0,function*(){let r;globalThis&&globalThis.document&&globalThis.document.baseURI?r=new URL(this.endpoint,globalThis.document.baseURI):r=new URL(this.endpoint),t==="protobuf"&&r.searchParams.append("cf_protocol","protobuf"),this._protocol=t;const s=new EventTarget;this._transport=new this.options.webtransport(r.toString()),this._transport.closed.then(()=>{n.onClose({code:4,reason:"connection closed"})}).catch(()=>{n.onClose({code:4,reason:"connection closed"})});try{yield this._transport.ready}catch{this.close();return}let i;try{i=yield this._transport.createBidirectionalStream()}catch{this.close();return}this._stream=i,this._writer=this._stream.writable.getWriter(),s.addEventListener("close",()=>{n.onClose({code:4,reason:"connection closed"})}),s.addEventListener("message",o=>{n.onMessage(o.data)}),this._startReading(s),n.onOpen()})}_startReading(t){return wr(this,void 0,void 0,function*(){const n=this._stream.readable.getReader();let r="",s=0,i=new Uint8Array;try{for(;;){const{done:o,value:a}=yield n.read();if(a.length>0)if(this._protocol==="json")for(r+=this._utf8decoder.decode(a);sJSON.stringify(n)).join(` +`)}}On.JsonEncoder=Hm;class Km{decodeReplies(t){return t.trim().split(` +`).map(n=>JSON.parse(n))}}On.JsonDecoder=Km;var zm=ft&&ft.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(fs,"__esModule",{value:!0});fs.Centrifuge=void 0;const qm=ar,Ae=Ye,Wm=ps,Lc=gs,Gm=_s,jm=bs,Vm=ms,Pc=On,Ct=He,Ne=hs,Ym=zm(qf),Zm={protocol:"json",token:null,getToken:null,data:null,debug:!1,name:"js",version:"",fetch:null,readableStream:null,websocket:null,eventsource:null,sockjs:null,sockjsOptions:{},emulationEndpoint:"/emulation",minReconnectDelay:500,maxReconnectDelay:2e4,timeout:5e3,maxServerPingDelay:1e4,networkEventTarget:null};class ca extends Ym.default{constructor(t,n){super(),this._reconnectTimeout=null,this._refreshTimeout=null,this._serverPingTimeout=null,this.state=Ne.State.Disconnected,this._endpoint=t,this._emulation=!1,this._transports=[],this._currentTransportIndex=0,this._triedAllTransports=!1,this._transportWasOpen=!1,this._transport=null,this._transportClosed=!0,this._encoder=null,this._decoder=null,this._reconnecting=!1,this._reconnectTimeout=null,this._reconnectAttempts=0,this._client=null,this._session="",this._node="",this._subs={},this._serverSubs={},this._commandId=0,this._commands=[],this._batching=!1,this._refreshRequired=!1,this._refreshTimeout=null,this._callbacks={},this._token=void 0,this._dispatchPromise=Promise.resolve(),this._serverPing=0,this._serverPingTimeout=null,this._sendPong=!1,this._promises={},this._promiseId=0,this._debugEnabled=!1,this._networkEventsSet=!1,this._config=Object.assign(Object.assign({},Zm),n),this._configure(),this._debugEnabled?(this.on("state",r=>{this._debug("client state",r.oldState,"->",r.newState)}),this.on("error",r=>{this._debug("client error",r)})):this.on("error",function(){Function.prototype()})}newSubscription(t,n){if(this.getSubscription(t)!==null)throw new Error("Subscription to the channel "+t+" already exists");const r=new qm.Subscription(this,t,n);return this._subs[t]=r,r}getSubscription(t){return this._getSub(t)}removeSubscription(t){t&&(t.state!==Ne.SubscriptionState.Unsubscribed&&t.unsubscribe(),this._removeSubscription(t))}subscriptions(){return this._subs}ready(t){return this.state===Ne.State.Disconnected?Promise.reject({code:Ae.errorCodes.clientDisconnected,message:"client disconnected"}):this.state===Ne.State.Connected?Promise.resolve():new Promise((n,r)=>{const s={resolve:n,reject:r};t&&(s.timeout=setTimeout(function(){r({code:Ae.errorCodes.timeout,message:"timeout"})},t)),this._promises[this._nextPromiseId()]=s})}connect(){if(this._isConnected()){this._debug("connect called when already connected");return}if(this._isConnecting()){this._debug("connect called when already connecting");return}this._debug("connect called"),this._reconnectAttempts=0,this._startConnecting()}disconnect(){this._disconnect(Ae.disconnectedCodes.disconnectCalled,"disconnect called",!1)}send(t){const n={send:{data:t}},r=this;return this._methodCall().then(function(){return r._transportSendCommands([n])?Promise.resolve():Promise.reject(r._createErrorObject(Ae.errorCodes.transportWriteError,"transport write error"))})}rpc(t,n){const r={rpc:{method:t,data:n}},s=this;return this._methodCall().then(function(){return s._callPromise(r,function(i){return{data:i.rpc.data}})})}publish(t,n){const r={publish:{channel:t,data:n}},s=this;return this._methodCall().then(function(){return s._callPromise(r,function(){return{}})})}history(t,n){const r={history:this._getHistoryRequest(t,n)},s=this;return this._methodCall().then(function(){return s._callPromise(r,function(i){const o=i.history,a=[];if(o.publications)for(let c=0;c{this._debug("offline event triggered"),(this.state===Ne.State.Connected||this.state===Ne.State.Connecting)&&this._disconnect(Ae.connectingCodes.transportClosed,"transport closed",!0)}),t.addEventListener("online",()=>{this._debug("online event triggered"),this.state===Ne.State.Connecting&&(this._clearReconnectTimeout(),this._startReconnecting())}),this._networkEventsSet=!0)}_getReconnectDelay(){const t=(0,Ct.backoff)(this._reconnectAttempts,this._config.minReconnectDelay,this._config.maxReconnectDelay);return this._reconnectAttempts+=1,t}_clearOutgoingRequests(){for(const t in this._callbacks)if(this._callbacks.hasOwnProperty(t)){const n=this._callbacks[t];clearTimeout(n.timeout);const r=n.errback;if(!r)continue;r({error:this._createErrorObject(Ae.errorCodes.connectionClosed,"connection closed")})}this._callbacks={}}_clearConnectedState(){this._client=null,this._clearServerPingTimeout(),this._clearRefreshTimeout();for(const t in this._subs){if(!this._subs.hasOwnProperty(t))continue;const n=this._subs[t];n.state===Ne.SubscriptionState.Subscribed&&n._setSubscribing(Ae.subscribingCodes.transportClosed,"transport closed")}for(const t in this._serverSubs)this._serverSubs.hasOwnProperty(t)&&this.emit("subscribing",{channel:t})}_handleWriteError(t){for(const n of t){const r=n.id;if(!(r in this._callbacks))continue;const s=this._callbacks[r];clearTimeout(this._callbacks[r].timeout),delete this._callbacks[r];const i=s.errback;i({error:this._createErrorObject(Ae.errorCodes.transportWriteError,"transport write error")})}}_transportSendCommands(t){if(!t.length)return!0;if(!this._transport)return!1;try{this._transport.send(this._encoder.encodeCommands(t),this._session,this._node)}catch(n){return this._debug("error writing commands",n),this._handleWriteError(t),!1}return!0}_initializeTransport(){let t;this._config.websocket!==null?t=this._config.websocket:typeof globalThis.WebSocket!="function"&&typeof globalThis.WebSocket!="object"||(t=globalThis.WebSocket);let n=null;this._config.sockjs!==null?n=this._config.sockjs:typeof globalThis.SockJS<"u"&&(n=globalThis.SockJS);let r=null;this._config.eventsource!==null?r=this._config.eventsource:typeof globalThis.EventSource<"u"&&(r=globalThis.EventSource);let s=null;this._config.fetch!==null?s=this._config.fetch:typeof globalThis.fetch<"u"&&(s=globalThis.fetch);let i=null;if(this._config.readableStream!==null?i=this._config.readableStream:typeof globalThis.ReadableStream<"u"&&(i=globalThis.ReadableStream),this._emulation){this._currentTransportIndex>=this._transports.length&&(this._triedAllTransports=!0,this._currentTransportIndex=0);let d=0;for(;;){if(d>=this._transports.length)throw new Error("no supported transport found");const h=this._transports[this._currentTransportIndex],_=h.transport,m=h.endpoint;if(_==="websocket"){if(this._debug("trying websocket transport"),this._transport=new Lc.WebsocketTransport(m,{websocket:t}),!this._transport.supported()){this._debug("websocket transport not available"),this._currentTransportIndex++,d++;continue}}else if(_==="webtransport"){if(this._debug("trying webtransport transport"),this._transport=new Vm.WebtransportTransport(m,{webtransport:globalThis.WebTransport,decoder:this._decoder,encoder:this._encoder}),!this._transport.supported()){this._debug("webtransport transport not available"),this._currentTransportIndex++,d++;continue}}else if(_==="http_stream"){if(this._debug("trying http_stream transport"),this._transport=new Gm.HttpStreamTransport(m,{fetch:s,readableStream:i,emulationEndpoint:this._config.emulationEndpoint,decoder:this._decoder,encoder:this._encoder}),!this._transport.supported()){this._debug("http_stream transport not available"),this._currentTransportIndex++,d++;continue}}else if(_==="sse"){if(this._debug("trying sse transport"),this._transport=new jm.SseTransport(m,{eventsource:r,fetch:s,emulationEndpoint:this._config.emulationEndpoint}),!this._transport.supported()){this._debug("sse transport not available"),this._currentTransportIndex++,d++;continue}}else if(_==="sockjs"){if(this._debug("trying sockjs"),this._transport=new Wm.SockjsTransport(m,{sockjs:n,sockjsOptions:this._config.sockjsOptions}),!this._transport.supported()){this._debug("sockjs transport not available"),this._currentTransportIndex++,d++;continue}}else throw new Error("unknown transport "+_);break}}else{if((0,Ct.startsWith)(this._endpoint,"http"))throw new Error("Provide explicit transport endpoints configuration in case of using HTTP (i.e. using array of TransportEndpoint instead of a single string), or use ws(s):// scheme in an endpoint if you aimed using WebSocket transport");if(this._debug("client will use websocket"),this._transport=new Lc.WebsocketTransport(this._endpoint,{websocket:t}),!this._transport.supported())throw new Error("WebSocket not available")}const o=this,a=this._transport;let c=!1,u=!0;this._transport.name()==="sse"&&(u=!1);const l=[];if(this._transport.emulation()){const d=o._sendConnect(!0);if(l.push(d),u){const h=o._sendSubscribeCommands(!0,!0);for(const _ in h)l.push(h[_])}}this._setNetworkEvents();const f=this._encoder.encodeCommands(l);this._transportClosed=!1,this._transport.initialize(this._config.protocol,{onOpen:function(){c=!0,o._debug(a.subName(),"transport open"),o._transportWasOpen=!0,!a.emulation()&&(o.startBatching(),o._sendConnect(!1),u&&o._sendSubscribeCommands(!0,!1),o.stopBatching())},onError:function(d){o._debug("transport level error",d)},onClose:function(d){o._debug(a.subName(),"transport closed"),o._transportClosed=!0;let h="connection closed",_=!0,m=0;if(d&&"code"in d&&d.code&&(m=d.code),d&&d.reason)try{const S=JSON.parse(d.reason);h=S.reason,_=S.reconnect}catch{h=d.reason,(m>=3500&&m<4e3||m>=4500&&m<5e3)&&(_=!1)}m<3e3?(m===1009?(m=Ae.disconnectedCodes.messageSizeLimit,h="message size limit exceeded",_=!1):(m=Ae.connectingCodes.transportClosed,h="transport closed"),o._emulation&&!o._transportWasOpen&&(o._currentTransportIndex++,o._currentTransportIndex>=o._transports.length&&(o._triedAllTransports=!0,o._currentTransportIndex=0))):o._transportWasOpen=!0;let R=!1;if(o._emulation&&!o._transportWasOpen&&!o._triedAllTransports&&(R=!0),o._isConnecting()&&!c&&o.emit("error",{type:"transport",error:{code:Ae.errorCodes.transportClosed,message:"transport closed"},transport:a.name()}),o._disconnect(m,h,_),o._isConnecting()){let S=o._getReconnectDelay();R&&(S=0),o._debug("reconnect after "+S+" milliseconds"),o._reconnecting=!1,o._reconnectTimeout=setTimeout(()=>{o._startReconnecting()},S)}},onMessage:function(d){o._dataReceived(d)}},f)}_sendConnect(t){const n=this._constructConnectCommand(),r=this;return this._call(n,t).then(s=>{const i=s.reply.connect;r._connectResponse(i),s.next&&s.next()},s=>{r._connectError(s.error),s.next&&s.next()}),n}_startReconnecting(){if(!this._isConnecting()||this._reconnecting)return;if(this._debug("start reconnecting"),this._reconnecting=!0,this._transportClosed===!1){this._debug("waiting for transport close");return}if(!(this._refreshRequired||!this._token&&this._config.getToken!==null)){this._initializeTransport();return}const n=this;this._getToken().then(function(r){if(n._isConnecting()){if(!r){n._failUnauthorized();return}n._token=r,n._debug("connection token refreshed"),n._initializeTransport()}}).catch(function(r){if(!n._isConnecting())return;n.emit("error",{type:"connectToken",error:{code:Ae.errorCodes.clientConnectToken,message:r!==void 0?r.toString():""}});const s=n._getReconnectDelay();n._debug("error on connection token refresh, reconnect after "+s+" milliseconds",r),n._reconnecting=!1,n._reconnectTimeout=setTimeout(()=>{n._startReconnecting()},s)})}_connectError(t){if(this.state===Ne.State.Connecting)if(t.code===109&&(this._refreshRequired=!0),t.code<100||t.temporary===!0||t.code===109){if(this.emit("error",{type:"connect",error:t}),this._debug("closing transport due to connect error"),this._transport){const n=this._transport;this._transport=null,n.close()}}else this._disconnect(t.code,t.message,!1)}_constructConnectCommand(){const t={};this._token&&(t.token=this._token),this._config.data&&(t.data=this._config.data),this._config.name&&(t.name=this._config.name),this._config.version&&(t.version=this._config.version);const n={};let r=!1;for(const s in this._serverSubs)if(this._serverSubs.hasOwnProperty(s)&&this._serverSubs[s].recoverable){r=!0;const i={recover:!0};this._serverSubs[s].offset&&(i.offset=this._serverSubs[s].offset),this._serverSubs[s].epoch&&(i.epoch=this._serverSubs[s].epoch),n[s]=i}return r&&(t.subs=n),{connect:t}}_getHistoryRequest(t,n){const r={channel:t};return n!==void 0&&(n.since&&(r.since={offset:n.since.offset},n.since.epoch&&(r.since.epoch=n.since.epoch)),n.limit!==void 0&&(r.limit=n.limit),n.reverse===!0&&(r.reverse=!0)),r}_methodCall(){return this._isConnected()?Promise.resolve():new Promise((t,n)=>{const r=setTimeout(function(){n({code:Ae.errorCodes.timeout,message:"timeout"})},this._config.timeout);this._promises[this._nextPromiseId()]={timeout:r,resolve:t,reject:n}})}_callPromise(t,n){return new Promise((r,s)=>{this._call(t,!1).then(i=>{r(n(i.reply)),i.next&&i.next()},i=>{s(i.error),i.next&&i.next()})})}_dataReceived(t){this._serverPing>0&&this._waitServerPing();const n=this._decoder.decodeReplies(t);this._dispatchPromise=this._dispatchPromise.then(()=>{let r;this._dispatchPromise=new Promise(s=>{r=s}),this._dispatchSynchronized(n,r)})}_dispatchSynchronized(t,n){let r=Promise.resolve();for(const s in t)t.hasOwnProperty(s)&&(r=r.then(()=>this._dispatchReply(t[s])));r=r.then(()=>{n()})}_dispatchReply(t){let n;const r=new Promise(i=>{n=i});if(t==null)return this._debug("dispatch: got undefined or null reply"),n(),r;const s=t.id;return s&&s>0?this._handleReply(t,n):t.push?this._handlePush(t.push,n):this._handleServerPing(n),r}_call(t,n){return new Promise((r,s)=>{t.id=this._nextCommandId(),this._registerCall(t.id,r,s),n||this._addCommand(t)})}_startConnecting(){this._debug("start connecting"),this._setState(Ne.State.Connecting)&&this.emit("connecting",{code:Ae.connectingCodes.connectCalled,reason:"connect called"}),this._client=null,this._startReconnecting()}_disconnect(t,n,r){if(this._isDisconnected())return;const s=this.state,i={code:t,reason:n};let o=!1;if(r?o=this._setState(Ne.State.Connecting):(o=this._setState(Ne.State.Disconnected),this._rejectPromises({code:Ae.errorCodes.clientDisconnected,message:"disconnected"})),this._clearOutgoingRequests(),s===Ne.State.Connecting&&this._clearReconnectTimeout(),s===Ne.State.Connected&&this._clearConnectedState(),o&&(this._isConnecting()?this.emit("connecting",i):this.emit("disconnected",i)),this._transport){const a=this._transport;this._transport=null,a.close()}}_failUnauthorized(){this._disconnect(Ae.disconnectedCodes.unauthorized,"unauthorized",!1)}_getToken(){if(this._debug("get connection token"),!this._config.getToken)throw new Error("provide a function to get connection token");return this._config.getToken({})}_refresh(){const t=this._client,n=this;this._getToken().then(function(r){if(t!==n._client)return;if(!r){n._failUnauthorized();return}if(n._token=r,n._debug("connection token refreshed"),!n._isConnected())return;const s={refresh:{token:n._token}};n._call(s,!1).then(i=>{const o=i.reply.refresh;n._refreshResponse(o),i.next&&i.next()},i=>{n._refreshError(i.error),i.next&&i.next()})}).catch(function(r){n.emit("error",{type:"refreshToken",error:{code:Ae.errorCodes.clientRefreshToken,message:r!==void 0?r.toString():""}}),n._refreshTimeout=setTimeout(()=>n._refresh(),n._getRefreshRetryDelay())})}_refreshError(t){t.code<100||t.temporary===!0?(this.emit("error",{type:"refresh",error:t}),this._refreshTimeout=setTimeout(()=>this._refresh(),this._getRefreshRetryDelay())):this._disconnect(t.code,t.message,!1)}_getRefreshRetryDelay(){return(0,Ct.backoff)(0,5e3,1e4)}_refreshResponse(t){this._refreshTimeout&&(clearTimeout(this._refreshTimeout),this._refreshTimeout=null),t.expires&&(this._client=t.client,this._refreshTimeout=setTimeout(()=>this._refresh(),(0,Ct.ttlMilliseconds)(t.ttl)))}_removeSubscription(t){t!==null&&delete this._subs[t.channel]}_unsubscribe(t){if(!this._isConnected())return;const r={unsubscribe:{channel:t.channel}},s=this;this._call(r,!1).then(i=>{i.next&&i.next()},i=>{i.next&&i.next(),s._disconnect(Ae.connectingCodes.unsubscribeError,"unsubscribe error",!0)})}_getSub(t){const n=this._subs[t];return n||null}_isServerSub(t){return this._serverSubs[t]!==void 0}_sendSubscribeCommands(t,n){const r=[];for(const s in this._subs){if(!this._subs.hasOwnProperty(s))continue;const i=this._subs[s];if(i._inflight!==!0&&i.state===Ne.SubscriptionState.Subscribing){const o=i._subscribe(t,n);o&&r.push(o)}}return r}_connectResponse(t){if(this._transportWasOpen=!0,this._reconnectAttempts=0,this._refreshRequired=!1,this._isConnected())return;this._client=t.client,this._setState(Ne.State.Connected),this._refreshTimeout&&clearTimeout(this._refreshTimeout),t.expires&&(this._refreshTimeout=setTimeout(()=>this._refresh(),(0,Ct.ttlMilliseconds)(t.ttl))),this._session=t.session,this._node=t.node,this.startBatching(),this._sendSubscribeCommands(!1,!1),this.stopBatching();const n={client:t.client,transport:this._transport.subName()};t.data&&(n.data=t.data),this.emit("connected",n),this._resolvePromises(),this._processServerSubs(t.subs||{}),t.ping&&t.ping>0?(this._serverPing=t.ping*1e3,this._sendPong=t.pong===!0,this._waitServerPing()):this._serverPing=0}_processServerSubs(t){for(const n in t){if(!t.hasOwnProperty(n))continue;const r=t[n];this._serverSubs[n]={offset:r.offset,epoch:r.epoch,recoverable:r.recoverable||!1};const s=this._getSubscribeContext(n,r);this.emit("subscribed",s)}for(const n in t){if(!t.hasOwnProperty(n))continue;const r=t[n];if(r.recovered){const s=r.publications;if(s&&s.length>0)for(const i in s)s.hasOwnProperty(i)&&this._handlePublication(n,s[i])}}for(const n in this._serverSubs)this._serverSubs.hasOwnProperty(n)&&(t[n]||(this.emit("unsubscribed",{channel:n}),delete this._serverSubs[n]))}_clearRefreshTimeout(){this._refreshTimeout!==null&&(clearTimeout(this._refreshTimeout),this._refreshTimeout=null)}_clearReconnectTimeout(){this._reconnectTimeout!==null&&(clearTimeout(this._reconnectTimeout),this._reconnectTimeout=null)}_clearServerPingTimeout(){this._serverPingTimeout!==null&&(clearTimeout(this._serverPingTimeout),this._serverPingTimeout=null)}_waitServerPing(){this._config.maxServerPingDelay!==0&&this._isConnected()&&(this._clearServerPingTimeout(),this._serverPingTimeout=setTimeout(()=>{this._isConnected()&&this._disconnect(Ae.connectingCodes.noPing,"no ping",!0)},this._serverPing+this._config.maxServerPingDelay))}_getSubscribeContext(t,n){const r={channel:t,positioned:!1,recoverable:!1,wasRecovering:!1,recovered:!1};n.recovered&&(r.recovered=!0),n.positioned&&(r.positioned=!0),n.recoverable&&(r.recoverable=!0),n.was_recovering&&(r.wasRecovering=!0);let s="";"epoch"in n&&(s=n.epoch);let i=0;return"offset"in n&&(i=n.offset),(r.positioned||r.recoverable)&&(r.streamPosition={offset:i,epoch:s}),n.data&&(r.data=n.data),r}_handleReply(t,n){const r=t.id;if(!(r in this._callbacks)){n();return}const s=this._callbacks[r];if(clearTimeout(this._callbacks[r].timeout),delete this._callbacks[r],(0,Ct.errorExists)(t)){const i=s.errback;if(!i){n();return}const o=t.error;i({error:o,next:n})}else{const i=s.callback;if(!i)return;i({reply:t,next:n})}}_handleJoin(t,n){const r=this._getSub(t);if(!r){if(this._isServerSub(t)){const s={channel:t,info:this._getJoinLeaveContext(n.info)};this.emit("join",s)}return}r._handleJoin(n)}_handleLeave(t,n){const r=this._getSub(t);if(!r){if(this._isServerSub(t)){const s={channel:t,info:this._getJoinLeaveContext(n.info)};this.emit("leave",s)}return}r._handleLeave(n)}_handleUnsubscribe(t,n){const r=this._getSub(t);if(!r){this._isServerSub(t)&&(delete this._serverSubs[t],this.emit("unsubscribed",{channel:t}));return}n.code<2500?r._setUnsubscribed(n.code,n.reason,!1):r._setSubscribing(n.code,n.reason)}_handleSubscribe(t,n){this._serverSubs[t]={offset:n.offset,epoch:n.epoch,recoverable:n.recoverable||!1},this.emit("subscribed",this._getSubscribeContext(t,n))}_handleDisconnect(t){const n=t.code;let r=!0;(n>=3500&&n<4e3||n>=4500&&n<5e3)&&(r=!1),this._disconnect(n,t.reason,r)}_getPublicationContext(t,n){const r={channel:t,data:n.data};return n.offset&&(r.offset=n.offset),n.info&&(r.info=this._getJoinLeaveContext(n.info)),n.tags&&(r.tags=n.tags),r}_getJoinLeaveContext(t){const n={client:t.client,user:t.user};return t.conn_info&&(n.connInfo=t.conn_info),t.chan_info&&(n.chanInfo=t.chan_info),n}_handlePublication(t,n){const r=this._getSub(t);if(!r){if(this._isServerSub(t)){const s=this._getPublicationContext(t,n);this.emit("publication",s),n.offset!==void 0&&(this._serverSubs[t].offset=n.offset)}return}r._handlePublication(n)}_handleMessage(t){this.emit("message",{data:t.data})}_handleServerPing(t){if(this._sendPong){const n={};this._transportSendCommands([n])}t()}_handlePush(t,n){const r=t.channel;t.pub?this._handlePublication(r,t.pub):t.message?this._handleMessage(t.message):t.join?this._handleJoin(r,t.join):t.leave?this._handleLeave(r,t.leave):t.unsubscribe?this._handleUnsubscribe(r,t.unsubscribe):t.subscribe?this._handleSubscribe(r,t.subscribe):t.disconnect&&this._handleDisconnect(t.disconnect),n()}_flush(){const t=this._commands.slice(0);this._commands=[],this._transportSendCommands(t)}_createErrorObject(t,n,r){const s={code:t,message:n};return r&&(s.temporary=!0),s}_registerCall(t,n,r){this._callbacks[t]={callback:n,errback:r,timeout:null},this._callbacks[t].timeout=setTimeout(()=>{delete this._callbacks[t],(0,Ct.isFunction)(r)&&r({error:this._createErrorObject(Ae.errorCodes.timeout,"timeout")})},this._config.timeout)}_addCommand(t){this._batching?this._commands.push(t):this._transportSendCommands([t])}_nextPromiseId(){return++this._promiseId}_resolvePromises(){for(const t in this._promises)this._promises[t].timeout&&clearTimeout(this._promises[t].timeout),this._promises[t].resolve(),delete this._promises[t]}_rejectPromises(t){for(const n in this._promises)this._promises[n].timeout&&clearTimeout(this._promises[n].timeout),this._promises[n].reject(t),delete this._promises[n]}}fs.Centrifuge=ca;ca.SubscriptionState=Ne.SubscriptionState;ca.State=Ne.State;(function(e){var t=ft&&ft.__createBinding||(Object.create?function(i,o,a,c){c===void 0&&(c=a);var u=Object.getOwnPropertyDescriptor(o,a);(!u||("get"in u?!o.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return o[a]}}),Object.defineProperty(i,c,u)}:function(i,o,a,c){c===void 0&&(c=a),i[c]=o[a]}),n=ft&&ft.__exportStar||function(i,o){for(var a in i)a!=="default"&&!Object.prototype.hasOwnProperty.call(o,a)&&t(o,i,a)};Object.defineProperty(e,"__esModule",{value:!0}),e.Subscription=e.Centrifuge=void 0;const r=fs;Object.defineProperty(e,"Centrifuge",{enumerable:!0,get:function(){return r.Centrifuge}});const s=ar;Object.defineProperty(e,"Subscription",{enumerable:!0,get:function(){return s.Subscription}}),n(hs,e)})(ym);const Gf=()=>{const e=ve();return{api:{getVersion:()=>fetch(`${ei}/api/version`).then(s=>s.json()).then(s=>(s==null?void 0:s.version)||"unknown").catch(()=>"unknown"),getProfile:()=>fetch(`${ei}/api/me`,{headers:{"X-Auth-Token":e.$authToken.token||""}}).then(s=>s.json()).catch(()=>"unknown"),getSettings:()=>fetch(`${ei}/api/settings`).then(s=>s.json()).catch(()=>"unknown")}}},Xm=!1;/*! + * pinia v2.1.7 + * (c) 2023 Eduardo San Martin Morote + * @license MIT + */let jf;const cr=e=>jf=e,Vf=Symbol();function mo(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var qn;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(qn||(qn={}));function Jm(){const e=Co(!0),t=e.run(()=>$t({}));let n=[],r=[];const s=Lo({install(i){cr(s),s._a=i,i.provide(Vf,s),i.config.globalProperties.$pinia=s,r.forEach(o=>n.push(o)),r=[]},use(i){return!this._a&&!Xm?r.push(i):n.push(i),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return s}const Yf=()=>{};function Dc(e,t,n,r=Yf){e.push(t);const s=()=>{const i=e.indexOf(t);i>-1&&(e.splice(i,1),r())};return!n&&Bl()&&Nd(s),s}function un(e,...t){e.slice().forEach(n=>{n(...t)})}const Qm=e=>e();function Eo(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];mo(s)&&mo(r)&&e.hasOwnProperty(n)&&!Oe(r)&&!Bt(r)?e[n]=Eo(s,r):e[n]=r}return e}const eE=Symbol();function tE(e){return!mo(e)||!e.hasOwnProperty(eE)}const{assign:Ot}=Object;function nE(e){return!!(Oe(e)&&e.effect)}function rE(e,t,n,r){const{state:s,actions:i,getters:o}=t,a=n.state.value[e];let c;function u(){a||(n.state.value[e]=s?s():{});const l=Zd(n.state.value[e]);return Ot(l,i,Object.keys(o||{}).reduce((f,d)=>(f[d]=Lo(Ve(()=>{cr(n);const h=n._s.get(e);return o[d].call(h,h)})),f),{}))}return c=Zf(e,u,t,n,r,!0),c}function Zf(e,t,n={},r,s,i){let o;const a=Ot({actions:{}},n),c={deep:!0};let u,l,f=[],d=[],h;const _=r.state.value[e];!i&&!_&&(r.state.value[e]={}),$t({});let m;function R(w){let O;u=l=!1,typeof w=="function"?(w(r.state.value[e]),O={type:qn.patchFunction,storeId:e,events:h}):(Eo(r.state.value[e],w),O={type:qn.patchObject,payload:w,storeId:e,events:h});const B=m=Symbol();on().then(()=>{m===B&&(u=!0)}),l=!0,un(f,O,r.state.value[e])}const S=i?function(){const{state:O}=n,B=O?O():{};this.$patch(G=>{Ot(G,B)})}:Yf;function y(){o.stop(),f=[],d=[],r._s.delete(e)}function b(w,O){return function(){cr(r);const B=Array.from(arguments),G=[],U=[];function Z($){G.push($)}function se($){U.push($)}un(d,{args:B,name:w,store:v,after:Z,onError:se});let J;try{J=O.apply(this&&this.$id===e?this:v,B)}catch($){throw un(U,$),$}return J instanceof Promise?J.then($=>(un(G,$),$)).catch($=>(un(U,$),Promise.reject($))):(un(G,J),J)}}const E={_p:r,$id:e,$onAction:Dc.bind(null,d),$patch:R,$reset:S,$subscribe(w,O={}){const B=Dc(f,w,O.detached,()=>G()),G=o.run(()=>Jt(()=>r.state.value[e],U=>{(O.flush==="sync"?l:u)&&w({storeId:e,type:qn.direct,events:h},U)},Ot({},c,O)));return B},$dispose:y},v=Et(E);r._s.set(e,v);const P=(r._a&&r._a.runWithContext||Qm)(()=>r._e.run(()=>(o=Co()).run(t)));for(const w in P){const O=P[w];if(Oe(O)&&!nE(O)||Bt(O))i||(_&&tE(O)&&(Oe(O)?O.value=_[w]:Eo(O,_[w])),r.state.value[e][w]=O);else if(typeof O=="function"){const B=b(w,O);P[w]=B,a.actions[w]=O}}return Ot(v,P),Ot(he(v),P),Object.defineProperty(v,"$state",{get:()=>r.state.value[e],set:w=>{R(O=>{Ot(O,w)})}}),r._p.forEach(w=>{Ot(v,o.run(()=>w({store:v,app:r._a,pinia:r,options:a})))}),_&&i&&n.hydrate&&n.hydrate(v.$state,_),u=!0,l=!0,v}function sE(e,t,n){let r,s;const i=typeof t=="function";typeof e=="string"?(r=e,s=i?n:t):(s=e,r=e.id);function o(a,c){const u=Go();return a=a||(u?Ue(Vf,null):null),a&&cr(a),a=jf,a._s.has(r)||(i?Zf(r,t,s,a):rE(r,s,a)),a._s.get(r)}return o.$id=r,o}function Rv(e){{e=he(e);const t={};for(const n in e){const r=e[n];(Oe(r)||Bt(r))&&(t[n]=tu(e,n))}return t}}const ti="token",iE=sE("profileStore",{state:()=>({token:"",profile:void 0}),getters:{isAuthenticated(){return this.token!==void 0&&this.token!==null&&this.token!=="null"}},actions:{setToken(e){const t=ve();this.token=e,localStorage==null||localStorage.setItem(ti,e),t.$authToken.token=e},setProfile(e){this.profile=e},fetchToken(){this.setToken(localStorage==null?void 0:localStorage.getItem(ti))},removeToken(){this.token="",localStorage==null||localStorage.removeItem(ti)}}}),oE=async e=>{var i;let t,n;if(!ve().$appSettings.auth.enabled)return;const s=iE();if(s.fetchToken(),s.isAuthenticated){const{api:{getProfile:o}}=Gf(),a=([t,n]=rn(()=>o()),t=await t,n(),t);s.setProfile(a);return}if(e.name!=="login"&&!s.isAuthenticated)return nc("/login");if(e.name==="login"&&((i=e==null?void 0:e.query)!=null&&i.token))return s.setToken(e.query.token),nc("/")},aE=async e=>{let t,n;const r=([t,n]=rn(()=>na(e.path)),t=await t,n(),t);if(r.redirect)return an(r.redirect,{acceptRelative:!0})?(window.location.href=r.redirect,!1):r.redirect},cE=[gm,oE,aE],Wn={};function lE(e,t,n){const{pathname:r,search:s,hash:i}=t,o=e.indexOf("#");if(o>-1){const u=i.includes(e.slice(o))?e.slice(o).length:1;let l=i.slice(u);return l[0]!=="/"&&(l="/"+l),Za(l,"")}const a=Za(r,e),c=!n||hg(a,n,{trailingSlash:!0})?a:n;return c+(c.includes("?")?"":s)+i}const uE=ht({name:"nuxt:router",enforce:"pre",async setup(e){var R,S;let t,n,r=ea().app.baseURL;Ge.hashMode&&!r.includes("#")&&(r+="#");const s=((R=Ge.history)==null?void 0:R.call(Ge,r))??(Ge.hashMode?Bb(r):Of(r)),i=((S=Ge.routes)==null?void 0:S.call(Ge,Oc))??Oc;let o;const a=am({...Ge,scrollBehavior:(y,b,E)=>{if(b===st){o=E;return}if(Ge.scrollBehavior){if(a.options.scrollBehavior=Ge.scrollBehavior,"scrollRestoration"in window.history){const v=a.beforeEach(()=>{v(),window.history.scrollRestoration="manual"})}return Ge.scrollBehavior(y,st,o||E)}},history:s,routes:i});"scrollRestoration"in window.history&&(window.history.scrollRestoration="auto"),e.vueApp.use(a);const c=jn(a.currentRoute.value);a.afterEach((y,b)=>{c.value=b}),Object.defineProperty(e.vueApp.config.globalProperties,"previousRoute",{get:()=>c.value});const u=lE(r,window.location,e.payload.path),l=jn(a.currentRoute.value),f=()=>{l.value=a.currentRoute.value};e.hook("page:finish",f),a.afterEach((y,b)=>{var E,v,T,P;((v=(E=y.matched[0])==null?void 0:E.components)==null?void 0:v.default)===((P=(T=b.matched[0])==null?void 0:T.components)==null?void 0:P.default)&&f()});const d={};for(const y in l.value)Object.defineProperty(d,y,{get:()=>l.value[y]});e._route=sr(d),e._middleware=e._middleware||{global:[],named:{}};try{[t,n]=rn(()=>a.isReady()),await t,n()}catch(y){[t,n]=rn(()=>e.runWithContext(()=>hn(y))),await t,n()}const h=u!==a.currentRoute.value.fullPath?a.resolve(u):a.currentRoute.value;f();const _=e.payload.state._layout;a.beforeEach(async(y,b)=>{var E;await e.callHook("page:loading:start"),y.meta=Et(y.meta),e.isHydrating&&_&&!vn(y.meta.layout)&&(y.meta.layout=_),e._processingMiddleware=!0;{const v=new Set([...cE,...e._middleware.global]);for(const T of y.matched){const P=T.meta.middleware;if(P)for(const w of oa(P))v.add(w)}{const T=await e.runWithContext(()=>na(y.path));if(T.appMiddleware)for(const P in T.appMiddleware)T.appMiddleware[P]?v.add(P):v.delete(P)}for(const T of v){const P=typeof T=="string"?e._middleware.named[T]||await((E=Wn[T])==null?void 0:E.call(Wn).then(O=>O.default||O)):T;if(!P)throw new Error(`Unknown route middleware: '${T}'.`);const w=await e.runWithContext(()=>P(y,b));if(!e.payload.serverRendered&&e.isHydrating&&(w===!1||w instanceof Error)){const O=w||ao({statusCode:404,statusMessage:`Page Not Found: ${u}`});return await e.runWithContext(()=>hn(O)),!1}if(w!==!0&&(w||w===!1))return w}}}),a.onError(async()=>{delete e._processingMiddleware,await e.callHook("page:loading:end")});const m=as();return a.afterEach(async(y,b,E)=>{delete e._processingMiddleware,!e.isHydrating&&m.value&&await e.runWithContext(uf),E&&await e.callHook("page:loading:end"),y.matched.length===0&&await e.runWithContext(()=>hn(ao({statusCode:404,fatal:!1,statusMessage:`Page not found: ${y.fullPath}`,data:{path:y.fullPath}})))}),e.hooks.hookOnce("app:created",async()=>{try{"name"in h&&(h.name=void 0),await a.replace({...h,force:!0}),a.options.scrollBehavior=Ge.scrollBehavior}catch(y){await e.runWithContext(()=>hn(y))}}),{provide:{router:a}}}}),fE=ht({name:"nuxt:payload",setup(e){at().beforeResolve(async(t,n)=>{if(t.path===n.path)return;const r=await uc(t.path);r&&Object.assign(e.static.data,r.data)}),Lf(()=>{var t;e.hooks.hook("link:prefetch",async n=>{is(n).protocol||await uc(n)}),((t=navigator.connection)==null?void 0:t.effectiveType)!=="slow-2g"&&setTimeout(ls,1e3)})}}),dE=ht(e=>{let t;async function n(){const r=await ls();t&&clearTimeout(t),t=setTimeout(n,1e3*60*60);try{const s=await $fetch(Qo("builds/latest.json")+`?${Date.now()}`);s.id!==r.id&&e.hooks.callHook("app:manifest:update",s)}catch{}}Lf(()=>{t=setTimeout(n,1e3*60*60)})}),hE=ht(e=>{const t=Jm();return e.vueApp.use(t),cr(t),e.payload&&e.payload.pinia&&(t.state.value=e.payload.pinia),{provide:{pinia:t}}}),pE=ht({name:"nuxt:global-components"}),Lt={blank:()=>Ie(()=>import("./Rmtih61A.js"),__vite__mapDeps([47,48]),import.meta.url).then(e=>e.default||e),default:()=>Ie(()=>import("./DkCVl2sj.js"),__vite__mapDeps([49,9,1,2,3,4,10,50]),import.meta.url).then(e=>e.default||e)},gE=ht({name:"nuxt:prefetch",setup(e){const t=at();e.hooks.hook("app:mounted",()=>{t.beforeEach(async n=>{var s;const r=(s=n==null?void 0:n.meta)==null?void 0:s.layout;r&&typeof Lt[r]=="function"&&await Lt[r]()})}),e.hooks.hook("link:prefetch",n=>{if(an(n))return;const r=t.resolve(n);if(!r)return;const s=r.meta.layout;let i=oa(r.meta.middleware);i=i.filter(o=>typeof o=="string");for(const o of i)typeof Wn[o]=="function"&&Wn[o]();s&&typeof Lt[s]=="function"&&Lt[s]()})}}),_E=ht({name:"nuxt:chunk-reload",setup(e){const t=at(),n=ea(),r=new Set;t.beforeEach(()=>{r.clear()}),e.hook("app:chunkError",({error:i})=>{r.add(i)});function s(i){const a="href"in i&&i.href[0]==="#"?n.app.baseURL+i.href:Xo(n.app.baseURL,i.fullPath);_m({path:a,persistState:!0})}e.hook("app:manifest:update",()=>{t.beforeResolve(s)}),t.onError((i,o)=>{r.has(i)&&s(o)})}}),bE=ht(async()=>{let e,t;const{api:n}=Gf();let r={auth:{enabled:!1,login_url:"/login"},version:"0.0.0"};try{r=([e,t]=rn(()=>n.getSettings()),e=await e,t(),e)}catch{console.error("Server is not available!")}return r.auth.enabled?{provide:{appSettings:r,authToken:{token:null}}}:{provide:{appSettings:r,authToken:{token:null}}}}),mE=[sb,ob,uE,fE,dE,hE,pE,gE,_E,bE],EE=yt({props:{vnode:{type:Object,required:!0},route:{type:Object,required:!0},vnodeRef:Object,renderKey:String,trackRootNodes:Boolean},setup(e){const t=e.renderKey,n=e.route,r={};for(const s in e.route)Object.defineProperty(r,s,{get:()=>t===e.renderKey?e.route[s]:n[s]});return en(or,sr(r)),()=>Ze(e.vnode,{ref:e.vnodeRef})}}),yE=yt({name:"NuxtPage",inheritAttrs:!1,props:{name:{type:String},transition:{type:[Boolean,Object],default:void 0},keepalive:{type:[Boolean,Object],default:void 0},route:{type:Object},pageKey:{type:[Function,String],default:null}},setup(e,{attrs:t,expose:n}){const r=ve(),s=$t(),i=Ue(or,null);let o;n({pageRef:s});const a=Ue(af,null);let c;const u=r.deferHydration();if(r.isHydrating){const l=r.hooks.hookOnce("app:error",u);at().beforeEach(l)}return e.pageKey&&Jt(()=>e.pageKey,(l,f)=>{l!==f&&r.callHook("page:loading:start")}),()=>Ze(xf,{name:e.name,route:e.route,...t},{default:l=>{const f=wE(i,l.route,l.Component),d=i&&i.matched.length===l.route.matched.length;if(!l.Component){if(c&&!d)return c;u();return}if(c&&a&&!a.isCurrent(l.route))return c;if(f&&i&&(!a||a!=null&&a.isCurrent(i)))return d?c:null;const h=bo(l,e.pageKey);!r.isHydrating&&!SE(i,l.route,l.Component)&&o===h&&r.callHook("page:loading:end"),o=h;const _=!!(e.transition??l.route.meta.pageTransition??ho),m=_&&vE([e.transition,l.route.meta.pageTransition,ho,{onAfterLeave:()=>{r.callHook("page:transition:finish",l.Component)}}].filter(Boolean)),R=e.keepalive??l.route.meta.keepalive??Z_;return c=If(ss,_&&m,fm(R,Ze($o,{suspensible:!0,onPending:()=>r.callHook("page:start",l.Component),onResolve:()=>{on(()=>r.callHook("page:finish",l.Component).then(()=>r.callHook("page:loading:end")).finally(u))}},{default:()=>{const S=Ze(EE,{key:h||void 0,vnode:l.Component,route:l.route,renderKey:h||void 0,trackRootNodes:_,vnodeRef:s});return R&&(S.type.name=l.Component.type.name||l.Component.type.__name||"RouteProvider"),S}}))).default(),c}})}});function vE(e){const t=e.map(n=>({...n,onAfterLeave:n.onAfterLeave?oa(n.onAfterLeave):void 0}));return sf(...t)}function wE(e,t,n){if(!e)return!1;const r=t.matched.findIndex(s=>{var i;return((i=s.components)==null?void 0:i.default)===(n==null?void 0:n.type)});return!r||r===-1?!1:t.matched.slice(0,r).some((s,i)=>{var o,a,c;return((o=s.components)==null?void 0:o.default)!==((c=(a=e.matched[i])==null?void 0:a.components)==null?void 0:c.default)})||n&&bo({route:t,Component:n})!==bo({route:e,Component:n})}function SE(e,t,n){return e?t.matched.findIndex(s=>{var i;return((i=s.components)==null?void 0:i.default)===(n==null?void 0:n.type)})r.default||r);return()=>Ze(n,e.layoutProps,t.slots)}}),Xf=yt({name:"NuxtLayout",inheritAttrs:!1,props:{name:{type:[String,Boolean,Object],default:null},fallback:{type:[String,Object],default:null}},setup(e,t){const n=ve(),r=Ue(or),s=r===os()?lm():r,i=Ve(()=>{let c=Ce(e.name)??s.meta.layout??"default";return c&&!(c in Lt)&&e.fallback&&(c=Ce(e.fallback)),c}),o=$t();t.expose({layoutRef:o});const a=n.deferHydration();if(n.isHydrating){const c=n.hooks.hookOnce("app:error",a);at().beforeEach(c)}return()=>{const c=i.value&&i.value in Lt,u=s.meta.layoutTransition??Y_;return If(ss,c&&u,{default:()=>Ze($o,{suspensible:!0,onResolve:()=>{on(a)}},{default:()=>Ze(RE,{layoutProps:Bu(t.attrs,{ref:o}),key:i.value||void 0,name:i.value,shouldProvide:!e.name,hasTransition:!!u},t.slots)})}).default()}}}),RE=yt({name:"NuxtLayoutProvider",inheritAttrs:!1,props:{name:{type:[String,Boolean]},layoutProps:{type:Object},hasTransition:{type:Boolean},shouldProvide:{type:Boolean}},setup(e,t){const n=e.name;return e.shouldProvide&&en(af,{isCurrent:r=>n===(r.meta.layout??"default")}),()=>{var r,s;return!n||typeof n=="string"&&!(n in Lt)?(s=(r=t.slots).default)==null?void 0:s.call(r):Ze(TE,{key:n,layoutProps:e.layoutProps,name:n},t.slots)}}});function Jf(e){return e instanceof Map?e.clear=e.delete=e.set=function(){throw new Error("map is read-only")}:e instanceof Set&&(e.add=e.clear=e.delete=function(){throw new Error("set is read-only")}),Object.freeze(e),Object.getOwnPropertyNames(e).forEach(t=>{const n=e[t],r=typeof n;(r==="object"||r==="function")&&!Object.isFrozen(n)&&Jf(n)}),e}class Bc{constructor(t){t.data===void 0&&(t.data={}),this.data=t.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function Qf(e){return e.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}function Pt(e,...t){const n=Object.create(null);for(const r in e)n[r]=e[r];return t.forEach(function(r){for(const s in r)n[s]=r[s]}),n}const NE="",Uc=e=>!!e.scope,CE=(e,{prefix:t})=>{if(e.startsWith("language:"))return e.replace("language:","language-");if(e.includes(".")){const n=e.split(".");return[`${t}${n.shift()}`,...n.map((r,s)=>`${r}${"_".repeat(s+1)}`)].join(" ")}return`${t}${e}`};class OE{constructor(t,n){this.buffer="",this.classPrefix=n.classPrefix,t.walk(this)}addText(t){this.buffer+=Qf(t)}openNode(t){if(!Uc(t))return;const n=CE(t.scope,{prefix:this.classPrefix});this.span(n)}closeNode(t){Uc(t)&&(this.buffer+=NE)}value(){return this.buffer}span(t){this.buffer+=``}}const Fc=(e={})=>{const t={children:[]};return Object.assign(t,e),t};class la{constructor(){this.rootNode=Fc(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(t){this.top.children.push(t)}openNode(t){const n=Fc({scope:t});this.add(n),this.stack.push(n)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(t){return this.constructor._walk(t,this.rootNode)}static _walk(t,n){return typeof n=="string"?t.addText(n):n.children&&(t.openNode(n),n.children.forEach(r=>this._walk(t,r)),t.closeNode(n)),t}static _collapse(t){typeof t!="string"&&t.children&&(t.children.every(n=>typeof n=="string")?t.children=[t.children.join("")]:t.children.forEach(n=>{la._collapse(n)}))}}class AE extends la{constructor(t){super(),this.options=t}addText(t){t!==""&&this.add(t)}startScope(t){this.openNode(t)}endScope(){this.closeNode()}__addSublanguage(t,n){const r=t.root;n&&(r.scope=`language:${n}`),this.add(r)}toHTML(){return new OE(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function er(e){return e?typeof e=="string"?e:e.source:null}function ed(e){return cn("(?=",e,")")}function kE(e){return cn("(?:",e,")*")}function ME(e){return cn("(?:",e,")?")}function cn(...e){return e.map(n=>er(n)).join("")}function xE(e){const t=e[e.length-1];return typeof t=="object"&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function ua(...e){return"("+(xE(e).capture?"":"?:")+e.map(r=>er(r)).join("|")+")"}function td(e){return new RegExp(e.toString()+"|").exec("").length-1}function IE(e,t){const n=e&&e.exec(t);return n&&n.index===0}const LE=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function fa(e,{joinWith:t}){let n=0;return e.map(r=>{n+=1;const s=n;let i=er(r),o="";for(;i.length>0;){const a=LE.exec(i);if(!a){o+=i;break}o+=i.substring(0,a.index),i=i.substring(a.index+a[0].length),a[0][0]==="\\"&&a[1]?o+="\\"+String(Number(a[1])+s):(o+=a[0],a[0]==="("&&n++)}return o}).map(r=>`(${r})`).join(t)}const PE=/\b\B/,nd="[a-zA-Z]\\w*",da="[a-zA-Z_]\\w*",rd="\\b\\d+(\\.\\d+)?",sd="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",id="\\b(0b[01]+)",DE="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",BE=(e={})=>{const t=/^#![ ]*\//;return e.binary&&(e.begin=cn(t,/.*\b/,e.binary,/\b.*/)),Pt({scope:"meta",begin:t,end:/$/,relevance:0,"on:begin":(n,r)=>{n.index!==0&&r.ignoreMatch()}},e)},tr={begin:"\\\\[\\s\\S]",relevance:0},UE={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[tr]},FE={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[tr]},$E={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},Es=function(e,t,n={}){const r=Pt({scope:"comment",begin:e,end:t,contains:[]},n);r.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const s=ua("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return r.contains.push({begin:cn(/[ ]+/,"(",s,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),r},HE=Es("//","$"),KE=Es("/\\*","\\*/"),zE=Es("#","$"),qE={scope:"number",begin:rd,relevance:0},WE={scope:"number",begin:sd,relevance:0},GE={scope:"number",begin:id,relevance:0},jE={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[tr,{begin:/\[/,end:/\]/,relevance:0,contains:[tr]}]},VE={scope:"title",begin:nd,relevance:0},YE={scope:"title",begin:da,relevance:0},ZE={begin:"\\.\\s*"+da,relevance:0},XE=function(e){return Object.assign(e,{"on:begin":(t,n)=>{n.data._beginMatch=t[1]},"on:end":(t,n)=>{n.data._beginMatch!==t[1]&&n.ignoreMatch()}})};var Sr=Object.freeze({__proto__:null,APOS_STRING_MODE:UE,BACKSLASH_ESCAPE:tr,BINARY_NUMBER_MODE:GE,BINARY_NUMBER_RE:id,COMMENT:Es,C_BLOCK_COMMENT_MODE:KE,C_LINE_COMMENT_MODE:HE,C_NUMBER_MODE:WE,C_NUMBER_RE:sd,END_SAME_AS_BEGIN:XE,HASH_COMMENT_MODE:zE,IDENT_RE:nd,MATCH_NOTHING_RE:PE,METHOD_GUARD:ZE,NUMBER_MODE:qE,NUMBER_RE:rd,PHRASAL_WORDS_MODE:$E,QUOTE_STRING_MODE:FE,REGEXP_MODE:jE,RE_STARTERS_RE:DE,SHEBANG:BE,TITLE_MODE:VE,UNDERSCORE_IDENT_RE:da,UNDERSCORE_TITLE_MODE:YE});function JE(e,t){e.input[e.index-1]==="."&&t.ignoreMatch()}function QE(e,t){e.className!==void 0&&(e.scope=e.className,delete e.className)}function ey(e,t){t&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",e.__beforeBegin=JE,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,e.relevance===void 0&&(e.relevance=0))}function ty(e,t){Array.isArray(e.illegal)&&(e.illegal=ua(...e.illegal))}function ny(e,t){if(e.match){if(e.begin||e.end)throw new Error("begin & end are not supported with match");e.begin=e.match,delete e.match}}function ry(e,t){e.relevance===void 0&&(e.relevance=1)}const sy=(e,t)=>{if(!e.beforeMatch)return;if(e.starts)throw new Error("beforeMatch cannot be used with starts");const n=Object.assign({},e);Object.keys(e).forEach(r=>{delete e[r]}),e.keywords=n.keywords,e.begin=cn(n.beforeMatch,ed(n.begin)),e.starts={relevance:0,contains:[Object.assign(n,{endsParent:!0})]},e.relevance=0,delete n.beforeMatch},iy=["of","and","for","in","not","or","if","then","parent","list","value"],oy="keyword";function od(e,t,n=oy){const r=Object.create(null);return typeof e=="string"?s(n,e.split(" ")):Array.isArray(e)?s(n,e):Object.keys(e).forEach(function(i){Object.assign(r,od(e[i],t,i))}),r;function s(i,o){t&&(o=o.map(a=>a.toLowerCase())),o.forEach(function(a){const c=a.split("|");r[c[0]]=[i,ay(c[0],c[1])]})}}function ay(e,t){return t?Number(t):cy(e)?0:1}function cy(e){return iy.includes(e.toLowerCase())}const $c={},tn=e=>{console.error(e)},Hc=(e,...t)=>{console.log(`WARN: ${e}`,...t)},fn=(e,t)=>{$c[`${e}/${t}`]||(console.log(`Deprecated as of ${e}. ${t}`),$c[`${e}/${t}`]=!0)},Gr=new Error;function ad(e,t,{key:n}){let r=0;const s=e[n],i={},o={};for(let a=1;a<=t.length;a++)o[a+r]=s[a],i[a+r]=!0,r+=td(t[a-1]);e[n]=o,e[n]._emit=i,e[n]._multi=!0}function ly(e){if(Array.isArray(e.begin)){if(e.skip||e.excludeBegin||e.returnBegin)throw tn("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),Gr;if(typeof e.beginScope!="object"||e.beginScope===null)throw tn("beginScope must be object"),Gr;ad(e,e.begin,{key:"beginScope"}),e.begin=fa(e.begin,{joinWith:""})}}function uy(e){if(Array.isArray(e.end)){if(e.skip||e.excludeEnd||e.returnEnd)throw tn("skip, excludeEnd, returnEnd not compatible with endScope: {}"),Gr;if(typeof e.endScope!="object"||e.endScope===null)throw tn("endScope must be object"),Gr;ad(e,e.end,{key:"endScope"}),e.end=fa(e.end,{joinWith:""})}}function fy(e){e.scope&&typeof e.scope=="object"&&e.scope!==null&&(e.beginScope=e.scope,delete e.scope)}function dy(e){fy(e),typeof e.beginScope=="string"&&(e.beginScope={_wrap:e.beginScope}),typeof e.endScope=="string"&&(e.endScope={_wrap:e.endScope}),ly(e),uy(e)}function hy(e){function t(o,a){return new RegExp(er(o),"m"+(e.case_insensitive?"i":"")+(e.unicodeRegex?"u":"")+(a?"g":""))}class n{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(a,c){c.position=this.position++,this.matchIndexes[this.matchAt]=c,this.regexes.push([c,a]),this.matchAt+=td(a)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const a=this.regexes.map(c=>c[1]);this.matcherRe=t(fa(a,{joinWith:"|"}),!0),this.lastIndex=0}exec(a){this.matcherRe.lastIndex=this.lastIndex;const c=this.matcherRe.exec(a);if(!c)return null;const u=c.findIndex((f,d)=>d>0&&f!==void 0),l=this.matchIndexes[u];return c.splice(0,u),Object.assign(c,l)}}class r{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(a){if(this.multiRegexes[a])return this.multiRegexes[a];const c=new n;return this.rules.slice(a).forEach(([u,l])=>c.addRule(u,l)),c.compile(),this.multiRegexes[a]=c,c}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(a,c){this.rules.push([a,c]),c.type==="begin"&&this.count++}exec(a){const c=this.getMatcher(this.regexIndex);c.lastIndex=this.lastIndex;let u=c.exec(a);if(this.resumingScanAtSamePosition()&&!(u&&u.index===this.lastIndex)){const l=this.getMatcher(0);l.lastIndex=this.lastIndex+1,u=l.exec(a)}return u&&(this.regexIndex+=u.position+1,this.regexIndex===this.count&&this.considerAll()),u}}function s(o){const a=new r;return o.contains.forEach(c=>a.addRule(c.begin,{rule:c,type:"begin"})),o.terminatorEnd&&a.addRule(o.terminatorEnd,{type:"end"}),o.illegal&&a.addRule(o.illegal,{type:"illegal"}),a}function i(o,a){const c=o;if(o.isCompiled)return c;[QE,ny,dy,sy].forEach(l=>l(o,a)),e.compilerExtensions.forEach(l=>l(o,a)),o.__beforeBegin=null,[ey,ty,ry].forEach(l=>l(o,a)),o.isCompiled=!0;let u=null;return typeof o.keywords=="object"&&o.keywords.$pattern&&(o.keywords=Object.assign({},o.keywords),u=o.keywords.$pattern,delete o.keywords.$pattern),u=u||/\w+/,o.keywords&&(o.keywords=od(o.keywords,e.case_insensitive)),c.keywordPatternRe=t(u,!0),a&&(o.begin||(o.begin=/\B|\b/),c.beginRe=t(c.begin),!o.end&&!o.endsWithParent&&(o.end=/\B|\b/),o.end&&(c.endRe=t(c.end)),c.terminatorEnd=er(c.end)||"",o.endsWithParent&&a.terminatorEnd&&(c.terminatorEnd+=(o.end?"|":"")+a.terminatorEnd)),o.illegal&&(c.illegalRe=t(o.illegal)),o.contains||(o.contains=[]),o.contains=[].concat(...o.contains.map(function(l){return py(l==="self"?o:l)})),o.contains.forEach(function(l){i(l,c)}),o.starts&&i(o.starts,a),c.matcher=s(c),c}if(e.compilerExtensions||(e.compilerExtensions=[]),e.contains&&e.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return e.classNameAliases=Pt(e.classNameAliases||{}),i(e)}function cd(e){return e?e.endsWithParent||cd(e.starts):!1}function py(e){return e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map(function(t){return Pt(e,{variants:null},t)})),e.cachedVariants?e.cachedVariants:cd(e)?Pt(e,{starts:e.starts?Pt(e.starts):null}):Object.isFrozen(e)?Pt(e):e}var gy="11.9.0";class _y extends Error{constructor(t,n){super(t),this.name="HTMLInjectionError",this.html=n}}const ni=Qf,Kc=Pt,zc=Symbol("nomatch"),by=7,ld=function(e){const t=Object.create(null),n=Object.create(null),r=[];let s=!0;const i="Could not find the language '{}', did you forget to load/include a language module?",o={disableAutodetect:!0,name:"Plain text",contains:[]};let a={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:AE};function c(C){return a.noHighlightRe.test(C)}function u(C){let k=C.className+" ";k+=C.parentNode?C.parentNode.className:"";const te=a.languageDetectRe.exec(k);if(te){const ae=O(te[1]);return ae||(Hc(i.replace("{}",te[1])),Hc("Falling back to no-highlight mode for this block.",C)),ae?te[1]:"no-highlight"}return k.split(/\s+/).find(ae=>c(ae)||O(ae))}function l(C,k,te){let ae="",le="";typeof k=="object"?(ae=C,te=k.ignoreIllegals,le=k.language):(fn("10.7.0","highlight(lang, code, ...args) has been deprecated."),fn("10.7.0",`Please use highlight(code, options) instead. +https://github.com/highlightjs/highlight.js/issues/2277`),le=C,ae=k),te===void 0&&(te=!0);const pe={code:ae,language:le};J("before:highlight",pe);const Te=pe.result?pe.result:f(pe.language,pe.code,te);return Te.code=pe.code,J("after:highlight",Te),Te}function f(C,k,te,ae){const le=Object.create(null);function pe(D,W){return D.keywords[W]}function Te(){if(!L.keywords){F.addText(x);return}let D=0;L.keywordPatternRe.lastIndex=0;let W=L.keywordPatternRe.exec(x),Y="";for(;W;){Y+=x.substring(D,W.index);const ne=M.case_insensitive?W[0].toLowerCase():W[0],_e=pe(L,ne);if(_e){const[xe,ln]=_e;if(F.addText(Y),Y="",le[ne]=(le[ne]||0)+1,le[ne]<=by&&(V+=ln),xe.startsWith("_"))Y+=W[0];else{const pt=M.classNameAliases[xe]||xe;de(W[0],pt)}}else Y+=W[0];D=L.keywordPatternRe.lastIndex,W=L.keywordPatternRe.exec(x)}Y+=x.substring(D),F.addText(Y)}function Re(){if(x==="")return;let D=null;if(typeof L.subLanguage=="string"){if(!t[L.subLanguage]){F.addText(x);return}D=f(L.subLanguage,x,!0,q[L.subLanguage]),q[L.subLanguage]=D._top}else D=h(x,L.subLanguage.length?L.subLanguage:null);L.relevance>0&&(V+=D.relevance),F.__addSublanguage(D._emitter,D.language)}function me(){L.subLanguage!=null?Re():Te(),x=""}function de(D,W){D!==""&&(F.startScope(W),F.addText(D),F.endScope())}function A(D,W){let Y=1;const ne=W.length-1;for(;Y<=ne;){if(!D._emit[Y]){Y++;continue}const _e=M.classNameAliases[D[Y]]||D[Y],xe=W[Y];_e?de(xe,_e):(x=xe,Te(),x=""),Y++}}function H(D,W){return D.scope&&typeof D.scope=="string"&&F.openNode(M.classNameAliases[D.scope]||D.scope),D.beginScope&&(D.beginScope._wrap?(de(x,M.classNameAliases[D.beginScope._wrap]||D.beginScope._wrap),x=""):D.beginScope._multi&&(A(D.beginScope,W),x="")),L=Object.create(D,{parent:{value:L}}),L}function K(D,W,Y){let ne=IE(D.endRe,Y);if(ne){if(D["on:end"]){const _e=new Bc(D);D["on:end"](W,_e),_e.isMatchIgnored&&(ne=!1)}if(ne){for(;D.endsParent&&D.parent;)D=D.parent;return D}}if(D.endsWithParent)return K(D.parent,W,Y)}function j(D){return L.matcher.regexIndex===0?(x+=D[0],1):(ee=!0,0)}function oe(D){const W=D[0],Y=D.rule,ne=new Bc(Y),_e=[Y.__beforeBegin,Y["on:begin"]];for(const xe of _e)if(xe&&(xe(D,ne),ne.isMatchIgnored))return j(W);return Y.skip?x+=W:(Y.excludeBegin&&(x+=W),me(),!Y.returnBegin&&!Y.excludeBegin&&(x=W)),H(Y,D),Y.returnBegin?0:W.length}function ue(D){const W=D[0],Y=k.substring(D.index),ne=K(L,D,Y);if(!ne)return zc;const _e=L;L.endScope&&L.endScope._wrap?(me(),de(W,L.endScope._wrap)):L.endScope&&L.endScope._multi?(me(),A(L.endScope,D)):_e.skip?x+=W:(_e.returnEnd||_e.excludeEnd||(x+=W),me(),_e.excludeEnd&&(x=W));do L.scope&&F.closeNode(),!L.skip&&!L.subLanguage&&(V+=L.relevance),L=L.parent;while(L!==ne.parent);return ne.starts&&H(ne.starts,D),_e.returnEnd?0:W.length}function p(){const D=[];for(let W=L;W!==M;W=W.parent)W.scope&&D.unshift(W.scope);D.forEach(W=>F.openNode(W))}let g={};function N(D,W){const Y=W&&W[0];if(x+=D,Y==null)return me(),0;if(g.type==="begin"&&W.type==="end"&&g.index===W.index&&Y===""){if(x+=k.slice(W.index,W.index+1),!s){const ne=new Error(`0 width match regex (${C})`);throw ne.languageName=C,ne.badRule=g.rule,ne}return 1}if(g=W,W.type==="begin")return oe(W);if(W.type==="illegal"&&!te){const ne=new Error('Illegal lexeme "'+Y+'" for mode "'+(L.scope||"")+'"');throw ne.mode=L,ne}else if(W.type==="end"){const ne=ue(W);if(ne!==zc)return ne}if(W.type==="illegal"&&Y==="")return 1;if(X>1e5&&X>W.index*3)throw new Error("potential infinite loop, way more iterations than matches");return x+=Y,Y.length}const M=O(C);if(!M)throw tn(i.replace("{}",C)),new Error('Unknown language: "'+C+'"');const I=hy(M);let z="",L=ae||I;const q={},F=new a.__emitter(a);p();let x="",V=0,Q=0,X=0,ee=!1;try{if(M.__emitTokens)M.__emitTokens(k,F);else{for(L.matcher.considerAll();;){X++,ee?ee=!1:L.matcher.considerAll(),L.matcher.lastIndex=Q;const D=L.matcher.exec(k);if(!D)break;const W=k.substring(Q,D.index),Y=N(W,D);Q=D.index+Y}N(k.substring(Q))}return F.finalize(),z=F.toHTML(),{language:C,value:z,relevance:V,illegal:!1,_emitter:F,_top:L}}catch(D){if(D.message&&D.message.includes("Illegal"))return{language:C,value:ni(k),illegal:!0,relevance:0,_illegalBy:{message:D.message,index:Q,context:k.slice(Q-100,Q+100),mode:D.mode,resultSoFar:z},_emitter:F};if(s)return{language:C,value:ni(k),illegal:!1,relevance:0,errorRaised:D,_emitter:F,_top:L};throw D}}function d(C){const k={value:ni(C),illegal:!1,relevance:0,_top:o,_emitter:new a.__emitter(a)};return k._emitter.addText(C),k}function h(C,k){k=k||a.languages||Object.keys(t);const te=d(C),ae=k.filter(O).filter(G).map(me=>f(me,C,!1));ae.unshift(te);const le=ae.sort((me,de)=>{if(me.relevance!==de.relevance)return de.relevance-me.relevance;if(me.language&&de.language){if(O(me.language).supersetOf===de.language)return 1;if(O(de.language).supersetOf===me.language)return-1}return 0}),[pe,Te]=le,Re=pe;return Re.secondBest=Te,Re}function _(C,k,te){const ae=k&&n[k]||te;C.classList.add("hljs"),C.classList.add(`language-${ae}`)}function m(C){let k=null;const te=u(C);if(c(te))return;if(J("before:highlightElement",{el:C,language:te}),C.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",C);return}if(C.children.length>0&&(a.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(C)),a.throwUnescapedHTML))throw new _y("One of your code blocks includes unescaped HTML.",C.innerHTML);k=C;const ae=k.textContent,le=te?l(ae,{language:te,ignoreIllegals:!0}):h(ae);C.innerHTML=le.value,C.dataset.highlighted="yes",_(C,te,le.language),C.result={language:le.language,re:le.relevance,relevance:le.relevance},le.secondBest&&(C.secondBest={language:le.secondBest.language,relevance:le.secondBest.relevance}),J("after:highlightElement",{el:C,result:le,text:ae})}function R(C){a=Kc(a,C)}const S=()=>{E(),fn("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function y(){E(),fn("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let b=!1;function E(){if(document.readyState==="loading"){b=!0;return}document.querySelectorAll(a.cssSelector).forEach(m)}function v(){b&&E()}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",v,!1);function T(C,k){let te=null;try{te=k(e)}catch(ae){if(tn("Language definition for '{}' could not be registered.".replace("{}",C)),s)tn(ae);else throw ae;te=o}te.name||(te.name=C),t[C]=te,te.rawDefinition=k.bind(null,e),te.aliases&&B(te.aliases,{languageName:C})}function P(C){delete t[C];for(const k of Object.keys(n))n[k]===C&&delete n[k]}function w(){return Object.keys(t)}function O(C){return C=(C||"").toLowerCase(),t[C]||t[n[C]]}function B(C,{languageName:k}){typeof C=="string"&&(C=[C]),C.forEach(te=>{n[te.toLowerCase()]=k})}function G(C){const k=O(C);return k&&!k.disableAutodetect}function U(C){C["before:highlightBlock"]&&!C["before:highlightElement"]&&(C["before:highlightElement"]=k=>{C["before:highlightBlock"](Object.assign({block:k.el},k))}),C["after:highlightBlock"]&&!C["after:highlightElement"]&&(C["after:highlightElement"]=k=>{C["after:highlightBlock"](Object.assign({block:k.el},k))})}function Z(C){U(C),r.push(C)}function se(C){const k=r.indexOf(C);k!==-1&&r.splice(k,1)}function J(C,k){const te=C;r.forEach(function(ae){ae[te]&&ae[te](k)})}function $(C){return fn("10.7.0","highlightBlock will be removed entirely in v12.0"),fn("10.7.0","Please use highlightElement now."),m(C)}Object.assign(e,{highlight:l,highlightAuto:h,highlightAll:E,highlightElement:m,highlightBlock:$,configure:R,initHighlighting:S,initHighlightingOnLoad:y,registerLanguage:T,unregisterLanguage:P,listLanguages:w,getLanguage:O,registerAliases:B,autoDetection:G,inherit:Kc,addPlugin:Z,removePlugin:se}),e.debugMode=function(){s=!1},e.safeMode=function(){s=!0},e.versionString=gy,e.regex={concat:cn,lookahead:ed,either:ua,optional:ME,anyNumberOfTimes:kE};for(const C in Sr)typeof Sr[C]=="object"&&Jf(Sr[C]);return Object.assign(e,Sr),e},An=ld({});An.newInstance=()=>ld({});var ud=An;An.HighlightJS=An;An.default=An;const Nv=Em(ud);var ri,qc;function my(){if(qc)return ri;qc=1;function e(t){const n=t.regex,r=n.concat(/[\p{L}_]/u,n.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),s=/[\p{L}0-9._:-]+/u,i={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},o={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},a=t.inherit(o,{begin:/\(/,end:/\)/}),c=t.inherit(t.APOS_STRING_MODE,{className:"string"}),u=t.inherit(t.QUOTE_STRING_MODE,{className:"string"}),l={endsWithParent:!0,illegal:/`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin://,relevance:10,contains:[o,u,c,a,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin://,contains:[o,a,u,c]}]}]},t.COMMENT(//,{relevance:10}),{begin://,relevance:10},i,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[u]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/)/,end:/>/,keywords:{name:"style"},contains:[l],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/)/,end:/>/,keywords:{name:"script"},contains:[l],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:n.concat(//,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:r,relevance:0,starts:l}]},{className:"tag",begin:n.concat(/<\//,n.lookahead(n.concat(r,/>/))),contains:[{className:"name",begin:r,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}return ri=e,ri}var si,Wc;function Ey(){if(Wc)return si;Wc=1;function e(t){const n=t.regex,r={},s={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[r]}]};Object.assign(r,{className:"variable",variants:[{begin:n.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},s]});const i={className:"subst",begin:/\$\(/,end:/\)/,contains:[t.BACKSLASH_ESCAPE]},o={begin:/<<-?\s*(?=\w+)/,starts:{contains:[t.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},a={className:"string",begin:/"/,end:/"/,contains:[t.BACKSLASH_ESCAPE,r,i]};i.contains.push(a);const c={match:/\\"/},u={className:"string",begin:/'/,end:/'/},l={match:/\\'/},f={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},t.NUMBER_MODE,r]},d=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],h=t.SHEBANG({binary:`(${d.join("|")})`,relevance:10}),_={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[t.inherit(t.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0},m=["if","then","else","elif","fi","for","while","until","in","do","done","case","esac","function","select"],R=["true","false"],S={match:/(\/[a-z._-]+)+/},y=["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset"],b=["alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","type","typeset","ulimit","unalias"],E=["autoload","bg","bindkey","bye","cap","chdir","clone","comparguments","compcall","compctl","compdescribe","compfiles","compgroups","compquote","comptags","comptry","compvalues","dirs","disable","disown","echotc","echoti","emulate","fc","fg","float","functions","getcap","getln","history","integer","jobs","kill","limit","log","noglob","popd","print","pushd","pushln","rehash","sched","setcap","setopt","stat","suspend","ttyctl","unfunction","unhash","unlimit","unsetopt","vared","wait","whence","where","which","zcompile","zformat","zftp","zle","zmodload","zparseopts","zprof","zpty","zregexparse","zsocket","zstyle","ztcp"],v=["chcon","chgrp","chown","chmod","cp","dd","df","dir","dircolors","ln","ls","mkdir","mkfifo","mknod","mktemp","mv","realpath","rm","rmdir","shred","sync","touch","truncate","vdir","b2sum","base32","base64","cat","cksum","comm","csplit","cut","expand","fmt","fold","head","join","md5sum","nl","numfmt","od","paste","ptx","pr","sha1sum","sha224sum","sha256sum","sha384sum","sha512sum","shuf","sort","split","sum","tac","tail","tr","tsort","unexpand","uniq","wc","arch","basename","chroot","date","dirname","du","echo","env","expr","factor","groups","hostid","id","link","logname","nice","nohup","nproc","pathchk","pinky","printenv","printf","pwd","readlink","runcon","seq","sleep","stat","stdbuf","stty","tee","test","timeout","tty","uname","unlink","uptime","users","who","whoami","yes"];return{name:"Bash",aliases:["sh"],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/,keyword:m,literal:R,built_in:[...y,...b,"set","shopt",...E,...v]},contains:[h,t.SHEBANG(),_,f,t.HASH_COMMENT_MODE,o,S,a,c,u,l,r]}}return si=e,si}var ii,Gc;function yy(){if(Gc)return ii;Gc=1;function e(t){const n=t.regex,r=t.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),s="decltype\\(auto\\)",i="[a-zA-Z_]\\w*::",a="("+s+"|"+n.optional(i)+"[a-zA-Z_]\\w*"+n.optional("<[^<>]+>")+")",c={className:"type",variants:[{begin:"\\b[a-z\\d_]*_t\\b"},{match:/\batomic_[a-z]{3,6}\b/}]},l={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[t.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},t.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},f={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},d={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},t.inherit(l,{className:"string"}),{className:"string",begin:/<.*?>/},r,t.C_BLOCK_COMMENT_MODE]},h={className:"title",begin:n.optional(i)+t.IDENT_RE,relevance:0},_=n.optional(i)+t.IDENT_RE+"\\s*\\(",S={keyword:["asm","auto","break","case","continue","default","do","else","enum","extern","for","fortran","goto","if","inline","register","restrict","return","sizeof","struct","switch","typedef","union","volatile","while","_Alignas","_Alignof","_Atomic","_Generic","_Noreturn","_Static_assert","_Thread_local","alignas","alignof","noreturn","static_assert","thread_local","_Pragma"],type:["float","double","signed","unsigned","int","short","long","char","void","_Bool","_Complex","_Imaginary","_Decimal32","_Decimal64","_Decimal128","const","static","complex","bool","imaginary"],literal:"true false NULL",built_in:"std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr"},y=[d,c,r,t.C_BLOCK_COMMENT_MODE,f,l],b={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:S,contains:y.concat([{begin:/\(/,end:/\)/,keywords:S,contains:y.concat(["self"]),relevance:0}]),relevance:0},E={begin:"("+a+"[\\*&\\s]+)+"+_,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:S,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:s,keywords:S,relevance:0},{begin:_,returnBegin:!0,contains:[t.inherit(h,{className:"title.function"})],relevance:0},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:S,relevance:0,contains:[r,t.C_BLOCK_COMMENT_MODE,l,f,c,{begin:/\(/,end:/\)/,keywords:S,relevance:0,contains:["self",r,t.C_BLOCK_COMMENT_MODE,l,f,c]}]},c,r,t.C_BLOCK_COMMENT_MODE,d]};return{name:"C",aliases:["h"],keywords:S,disableAutodetect:!0,illegal:"=]/,contains:[{beginKeywords:"final class struct"},t.TITLE_MODE]}]),exports:{preprocessor:d,strings:l,keywords:S}}}return ii=e,ii}var oi,jc;function vy(){if(jc)return oi;jc=1;function e(t){const n=t.regex,r=t.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),s="decltype\\(auto\\)",i="[a-zA-Z_]\\w*::",a="(?!struct)("+s+"|"+n.optional(i)+"[a-zA-Z_]\\w*"+n.optional("<[^<>]+>")+")",c={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},l={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[t.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},t.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},f={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},d={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},t.inherit(l,{className:"string"}),{className:"string",begin:/<.*?>/},r,t.C_BLOCK_COMMENT_MODE]},h={className:"title",begin:n.optional(i)+t.IDENT_RE,relevance:0},_=n.optional(i)+t.IDENT_RE+"\\s*\\(",m=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],R=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],S=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],y=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],v={type:R,keyword:m,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:S},T={className:"function.dispatch",relevance:0,keywords:{_hint:y},begin:n.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,t.IDENT_RE,n.lookahead(/(<[^<>]+>|)\s*\(/))},P=[T,d,c,r,t.C_BLOCK_COMMENT_MODE,f,l],w={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:v,contains:P.concat([{begin:/\(/,end:/\)/,keywords:v,contains:P.concat(["self"]),relevance:0}]),relevance:0},O={className:"function",begin:"("+a+"[\\*&\\s]+)+"+_,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:v,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:s,keywords:v,relevance:0},{begin:_,returnBegin:!0,contains:[h],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[l,f]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:v,relevance:0,contains:[r,t.C_BLOCK_COMMENT_MODE,l,f,c,{begin:/\(/,end:/\)/,keywords:v,relevance:0,contains:["self",r,t.C_BLOCK_COMMENT_MODE,l,f,c]}]},c,r,t.C_BLOCK_COMMENT_MODE,d]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:v,illegal:"",keywords:v,contains:["self",c]},{begin:t.IDENT_RE+"::",keywords:v},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}return oi=e,oi}var ai,Vc;function wy(){if(Vc)return ai;Vc=1;function e(t){const n=["bool","byte","char","decimal","delegate","double","dynamic","enum","float","int","long","nint","nuint","object","sbyte","short","string","ulong","uint","ushort"],r=["public","private","protected","static","internal","protected","abstract","async","extern","override","unsafe","virtual","new","sealed","partial"],s=["default","false","null","true"],i=["abstract","as","base","break","case","catch","class","const","continue","do","else","event","explicit","extern","finally","fixed","for","foreach","goto","if","implicit","in","interface","internal","is","lock","namespace","new","operator","out","override","params","private","protected","public","readonly","record","ref","return","scoped","sealed","sizeof","stackalloc","static","struct","switch","this","throw","try","typeof","unchecked","unsafe","using","virtual","void","volatile","while"],o=["add","alias","and","ascending","async","await","by","descending","equals","from","get","global","group","init","into","join","let","nameof","not","notnull","on","or","orderby","partial","remove","select","set","unmanaged","value|0","var","when","where","with","yield"],a={keyword:i.concat(o),built_in:n,literal:s},c=t.inherit(t.TITLE_MODE,{begin:"[a-zA-Z](\\.?\\w)*"}),u={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)(u|U|l|L|ul|UL|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},l={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},f=t.inherit(l,{illegal:/\n/}),d={className:"subst",begin:/\{/,end:/\}/,keywords:a},h=t.inherit(d,{illegal:/\n/}),_={className:"string",begin:/\$"/,end:'"',illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},t.BACKSLASH_ESCAPE,h]},m={className:"string",begin:/\$@"/,end:'"',contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},d]},R=t.inherit(m,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},h]});d.contains=[m,_,l,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,u,t.C_BLOCK_COMMENT_MODE],h.contains=[R,_,f,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,u,t.inherit(t.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];const S={variants:[m,_,l,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE]},y={begin:"<",end:">",contains:[{beginKeywords:"in out"},c]},b=t.IDENT_RE+"(<"+t.IDENT_RE+"(\\s*,\\s*"+t.IDENT_RE+")*>)?(\\[\\])?",E={begin:"@"+t.IDENT_RE,relevance:0};return{name:"C#",aliases:["cs","c#"],keywords:a,illegal:/::/,contains:[t.COMMENT("///","$",{returnBegin:!0,contains:[{className:"doctag",variants:[{begin:"///",relevance:0},{begin:""},{begin:""}]}]}),t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,{className:"meta",begin:"#",end:"$",keywords:{keyword:"if else elif endif define undef warning error line region endregion pragma checksum"}},S,u,{beginKeywords:"class interface",relevance:0,end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:"where class"},c,y,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},{beginKeywords:"namespace",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[c,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},{beginKeywords:"record",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[c,y,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},{className:"meta",begin:"^\\s*\\[(?=[\\w])",excludeBegin:!0,end:"\\]",excludeEnd:!0,contains:[{className:"string",begin:/"/,end:/"/}]},{beginKeywords:"new return throw await else",relevance:0},{className:"function",begin:"("+b+"\\s+)+"+t.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,end:/\s*[{;=]/,excludeEnd:!0,keywords:a,contains:[{beginKeywords:r.join(" "),relevance:0},{begin:t.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,contains:[t.TITLE_MODE,y],relevance:0},{match:/\(\)/},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:a,relevance:0,contains:[S,u,t.C_BLOCK_COMMENT_MODE]},t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},E]}}return ai=e,ai}var ci,Yc;function Sy(){if(Yc)return ci;Yc=1;const e=a=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:a.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[a.APOS_STRING_MODE,a.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:a.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),t=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],n=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],r=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],s=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],i=["align-content","align-items","align-self","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","content-visibility","counter-increment","counter-reset","cue","cue-after","cue-before","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-synthesis","font-variant","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inline-size","isolation","justify-content","left","letter-spacing","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","pause","pause-after","pause-before","perspective","perspective-origin","pointer-events","position","quotes","resize","rest","rest-after","rest-before","right","row-gap","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","speak","speak-as","src","tab-size","table-layout","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index"].reverse();function o(a){const c=a.regex,u=e(a),l={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},f="and or not only",d=/@-?\w[\w]*(-\w+)*/,h="[a-zA-Z-][a-zA-Z0-9_-]*",_=[a.APOS_STRING_MODE,a.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[u.BLOCK_COMMENT,l,u.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+h,relevance:0},u.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+r.join("|")+")"},{begin:":(:)?("+s.join("|")+")"}]},u.CSS_VARIABLE,{className:"attribute",begin:"\\b("+i.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[u.BLOCK_COMMENT,u.HEXCOLOR,u.IMPORTANT,u.CSS_NUMBER_MODE,..._,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[..._,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},u.FUNCTION_DISPATCH]},{begin:c.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:d},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:f,attribute:n.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},..._,u.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+t.join("|")+")\\b"}]}}return ci=o,ci}var li,Zc;function Ty(){if(Zc)return li;Zc=1;function e(t){const n=t.regex,r={begin:/<\/?[A-Za-z_]/,end:">",subLanguage:"xml",relevance:0},s={begin:"^[-\\*]{3,}",end:"$"},i={className:"code",variants:[{begin:"(`{3,})[^`](.|\\n)*?\\1`*[ ]*"},{begin:"(~{3,})[^~](.|\\n)*?\\1~*[ ]*"},{begin:"```",end:"```+[ ]*$"},{begin:"~~~",end:"~~~+[ ]*$"},{begin:"`.+?`"},{begin:"(?=^( {4}|\\t))",contains:[{begin:"^( {4}|\\t)",end:"(\\n)$"}],relevance:0}]},o={className:"bullet",begin:"^[ ]*([*+-]|(\\d+\\.))(?=\\s+)",end:"\\s+",excludeEnd:!0},a={begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]},c=/[A-Za-z][A-Za-z0-9+.-]*/,u={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:n.concat(/\[.+?\]\(/,c,/:\/\/.*?\)/),relevance:2},{begin:/\[.+?\]\([./?&#].*?\)/,relevance:1},{begin:/\[.*?\]\(.*?\)/,relevance:0}],returnBegin:!0,contains:[{match:/\[(?=\])/},{className:"string",relevance:0,begin:"\\[",end:"\\]",excludeBegin:!0,returnEnd:!0},{className:"link",relevance:0,begin:"\\]\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"symbol",relevance:0,begin:"\\]\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0}]},l={className:"strong",contains:[],variants:[{begin:/_{2}(?!\s)/,end:/_{2}/},{begin:/\*{2}(?!\s)/,end:/\*{2}/}]},f={className:"emphasis",contains:[],variants:[{begin:/\*(?![*\s])/,end:/\*/},{begin:/_(?![_\s])/,end:/_/,relevance:0}]},d=t.inherit(l,{contains:[]}),h=t.inherit(f,{contains:[]});l.contains.push(h),f.contains.push(d);let _=[r,u];return[l,f,d,h].forEach(S=>{S.contains=S.contains.concat(_)}),_=_.concat(l,f),{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[{className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:_},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:_}]}]},r,o,l,f,{className:"quote",begin:"^>\\s+",contains:_,end:"$"},i,s,u,a]}}return li=e,li}var ui,Xc;function Ry(){if(Xc)return ui;Xc=1;function e(t){const n=t.regex;return{name:"Diff",aliases:["patch"],contains:[{className:"meta",relevance:10,match:n.either(/^@@ +-\d+,\d+ +\+\d+,\d+ +@@/,/^\*\*\* +\d+,\d+ +\*\*\*\*$/,/^--- +\d+,\d+ +----$/)},{className:"comment",variants:[{begin:n.either(/Index: /,/^index/,/={3,}/,/^-{3}/,/^\*{3} /,/^\+{3}/,/^diff --git/),end:/$/},{match:/^\*{15}$/}]},{className:"addition",begin:/^\+/,end:/$/},{className:"deletion",begin:/^-/,end:/$/},{className:"addition",begin:/^!/,end:/$/}]}}return ui=e,ui}var fi,Jc;function Ny(){if(Jc)return fi;Jc=1;function e(t){const n=t.regex,r="([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)",s=n.either(/\b([A-Z]+[a-z0-9]+)+/,/\b([A-Z]+[a-z0-9]+)+[A-Z]+/),i=n.concat(s,/(::\w+)*/),a={"variable.constant":["__FILE__","__LINE__","__ENCODING__"],"variable.language":["self","super"],keyword:["alias","and","begin","BEGIN","break","case","class","defined","do","else","elsif","end","END","ensure","for","if","in","module","next","not","or","redo","require","rescue","retry","return","then","undef","unless","until","when","while","yield",...["include","extend","prepend","public","private","protected","raise","throw"]],built_in:["proc","lambda","attr_accessor","attr_reader","attr_writer","define_method","private_constant","module_function"],literal:["true","false","nil"]},c={className:"doctag",begin:"@[A-Za-z]+"},u={begin:"#<",end:">"},l=[t.COMMENT("#","$",{contains:[c]}),t.COMMENT("^=begin","^=end",{contains:[c],relevance:10}),t.COMMENT("^__END__",t.MATCH_NOTHING_RE)],f={className:"subst",begin:/#\{/,end:/\}/,keywords:a},d={className:"string",contains:[t.BACKSLASH_ESCAPE,f],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:/%[qQwWx]?\(/,end:/\)/},{begin:/%[qQwWx]?\[/,end:/\]/},{begin:/%[qQwWx]?\{/,end:/\}/},{begin:/%[qQwWx]?/},{begin:/%[qQwWx]?\//,end:/\//},{begin:/%[qQwWx]?%/,end:/%/},{begin:/%[qQwWx]?-/,end:/-/},{begin:/%[qQwWx]?\|/,end:/\|/},{begin:/\B\?(\\\d{1,3})/},{begin:/\B\?(\\x[A-Fa-f0-9]{1,2})/},{begin:/\B\?(\\u\{?[A-Fa-f0-9]{1,6}\}?)/},{begin:/\B\?(\\M-\\C-|\\M-\\c|\\c\\M-|\\M-|\\C-\\M-)[\x20-\x7e]/},{begin:/\B\?\\(c|C-)[\x20-\x7e]/},{begin:/\B\?\\?\S/},{begin:n.concat(/<<[-~]?'?/,n.lookahead(/(\w+)(?=\W)[^\n]*\n(?:[^\n]*\n)*?\s*\1\b/)),contains:[t.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,contains:[t.BACKSLASH_ESCAPE,f]})]}]},h="[1-9](_?[0-9])*|0",_="[0-9](_?[0-9])*",m={className:"number",relevance:0,variants:[{begin:`\\b(${h})(\\.(${_}))?([eE][+-]?(${_})|r)?i?\\b`},{begin:"\\b0[dD][0-9](_?[0-9])*r?i?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*r?i?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*r?i?\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*r?i?\\b"},{begin:"\\b0(_?[0-7])+r?i?\\b"}]},R={variants:[{match:/\(\)/},{className:"params",begin:/\(/,end:/(?=\))/,excludeBegin:!0,endsParent:!0,keywords:a}]},P=[d,{variants:[{match:[/class\s+/,i,/\s+<\s+/,i]},{match:[/\b(class|module)\s+/,i]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:a},{match:[/(include|extend)\s+/,i],scope:{2:"title.class"},keywords:a},{relevance:0,match:[i,/\.new[. (]/],scope:{1:"title.class"}},{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"},{relevance:0,match:s,scope:"title.class"},{match:[/def/,/\s+/,r],scope:{1:"keyword",3:"title.function"},contains:[R]},{begin:t.IDENT_RE+"::"},{className:"symbol",begin:t.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":(?!\\s)",contains:[d,{begin:r}],relevance:0},m,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},{className:"params",begin:/\|/,end:/\|/,excludeBegin:!0,excludeEnd:!0,relevance:0,keywords:a},{begin:"("+t.RE_STARTERS_RE+"|unless)\\s*",keywords:"unless",contains:[{className:"regexp",contains:[t.BACKSLASH_ESCAPE,f],illegal:/\n/,variants:[{begin:"/",end:"/[a-z]*"},{begin:/%r\{/,end:/\}[a-z]*/},{begin:"%r\\(",end:"\\)[a-z]*"},{begin:"%r!",end:"![a-z]*"},{begin:"%r\\[",end:"\\][a-z]*"}]}].concat(u,l),relevance:0}].concat(u,l);f.contains=P,R.contains=P;const G=[{begin:/^\s*=>/,starts:{end:"$",contains:P}},{className:"meta.prompt",begin:"^("+"[>?]>"+"|"+"[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]"+"|"+"(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>"+")(?=[ ])",starts:{end:"$",keywords:a,contains:P}}];return l.unshift(u),{name:"Ruby",aliases:["rb","gemspec","podspec","thor","irb"],keywords:a,illegal:/\/\*/,contains:[t.SHEBANG({binary:"ruby"})].concat(G).concat(l).concat(P)}}return fi=e,fi}var di,Qc;function Cy(){if(Qc)return di;Qc=1;function e(t){const o={keyword:["break","case","chan","const","continue","default","defer","else","fallthrough","for","func","go","goto","if","import","interface","map","package","range","return","select","struct","switch","type","var"],type:["bool","byte","complex64","complex128","error","float32","float64","int8","int16","int32","int64","string","uint8","uint16","uint32","uint64","int","uint","uintptr","rune"],literal:["true","false","iota","nil"],built_in:["append","cap","close","complex","copy","imag","len","make","new","panic","print","println","real","recover","delete"]};return{name:"Go",aliases:["golang"],keywords:o,illegal:"s(o,a,c-1))}function i(o){const a=o.regex,c="[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*",u=c+s("(?:<"+c+"~~~(?:\\s*,\\s*"+c+"~~~)*>)?",/~~~/g,2),_={keyword:["synchronized","abstract","private","var","static","if","const ","for","while","strictfp","finally","protected","import","native","final","void","enum","else","break","transient","catch","instanceof","volatile","case","assert","package","default","public","try","switch","continue","throws","protected","public","private","module","requires","exports","do","sealed","yield","permits"],literal:["false","true","null"],type:["char","boolean","long","float","int","byte","short","double"],built_in:["super","this"]},m={className:"meta",begin:"@"+c,contains:[{begin:/\(/,end:/\)/,contains:["self"]}]},R={className:"params",begin:/\(/,end:/\)/,keywords:_,relevance:0,contains:[o.C_BLOCK_COMMENT_MODE],endsParent:!0};return{name:"Java",aliases:["jsp"],keywords:_,illegal:/<\/|#/,contains:[o.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),{begin:/import java\.[a-z]+\./,keywords:"import",relevance:2},o.C_LINE_COMMENT_MODE,o.C_BLOCK_COMMENT_MODE,{begin:/"""/,end:/"""/,className:"string",contains:[o.BACKSLASH_ESCAPE]},o.APOS_STRING_MODE,o.QUOTE_STRING_MODE,{match:[/\b(?:class|interface|enum|extends|implements|new)/,/\s+/,c],className:{1:"keyword",3:"title.class"}},{match:/non-sealed/,scope:"keyword"},{begin:[a.concat(/(?!else)/,c),/\s+/,c,/\s+/,/=(?!=)/],className:{1:"type",3:"variable",5:"operator"}},{begin:[/record/,/\s+/,c],className:{1:"keyword",3:"title.class"},contains:[R,o.C_LINE_COMMENT_MODE,o.C_BLOCK_COMMENT_MODE]},{beginKeywords:"new throw return else",relevance:0},{begin:["(?:"+u+"\\s+)",o.UNDERSCORE_IDENT_RE,/\s*(?=\()/],className:{2:"title.function"},keywords:_,contains:[{className:"params",begin:/\(/,end:/\)/,keywords:_,relevance:0,contains:[m,o.APOS_STRING_MODE,o.QUOTE_STRING_MODE,r,o.C_BLOCK_COMMENT_MODE]},o.C_LINE_COMMENT_MODE,o.C_BLOCK_COMMENT_MODE]},r,m]}}return gi=i,gi}var _i,rl;function My(){if(rl)return _i;rl=1;const e="[A-Za-z$_][0-9A-Za-z$_]*",t=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],n=["true","false","null","undefined","NaN","Infinity"],r=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],s=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],i=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],o=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],a=[].concat(i,r,s);function c(u){const l=u.regex,f=(A,{after:H})=>{const K="",end:""},_=/<[A-Za-z0-9\\._:-]+\s*\/>/,m={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(A,H)=>{const K=A[0].length+A.index,j=A.input[K];if(j==="<"||j===","){H.ignoreMatch();return}j===">"&&(f(A,{after:K})||H.ignoreMatch());let oe;const ue=A.input.substring(K);if(oe=ue.match(/^\s*=/)){H.ignoreMatch();return}if((oe=ue.match(/^\s+extends\s+/))&&oe.index===0){H.ignoreMatch();return}}},R={$pattern:e,keyword:t,literal:n,built_in:a,"variable.language":o},S="[0-9](_?[0-9])*",y=`\\.(${S})`,b="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",E={className:"number",variants:[{begin:`(\\b(${b})((${y})|\\.)?|(${y}))[eE][+-]?(${S})\\b`},{begin:`\\b(${b})\\b((${y})\\b|\\.)?|(${y})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},v={className:"subst",begin:"\\$\\{",end:"\\}",keywords:R,contains:[]},T={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[u.BACKSLASH_ESCAPE,v],subLanguage:"xml"}},P={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[u.BACKSLASH_ESCAPE,v],subLanguage:"css"}},w={begin:"gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[u.BACKSLASH_ESCAPE,v],subLanguage:"graphql"}},O={className:"string",begin:"`",end:"`",contains:[u.BACKSLASH_ESCAPE,v]},G={className:"comment",variants:[u.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:d+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),u.C_BLOCK_COMMENT_MODE,u.C_LINE_COMMENT_MODE]},U=[u.APOS_STRING_MODE,u.QUOTE_STRING_MODE,T,P,w,O,{match:/\$\d+/},E];v.contains=U.concat({begin:/\{/,end:/\}/,keywords:R,contains:["self"].concat(U)});const Z=[].concat(G,v.contains),se=Z.concat([{begin:/\(/,end:/\)/,keywords:R,contains:["self"].concat(Z)}]),J={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:R,contains:se},$={variants:[{match:[/class/,/\s+/,d,/\s+/,/extends/,/\s+/,l.concat(d,"(",l.concat(/\./,d),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,d],scope:{1:"keyword",3:"title.class"}}]},C={relevance:0,match:l.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...r,...s]}},k={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},te={variants:[{match:[/function/,/\s+/,d,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[J],illegal:/%/},ae={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function le(A){return l.concat("(?!",A.join("|"),")")}const pe={match:l.concat(/\b/,le([...i,"super","import"]),d,l.lookahead(/\(/)),className:"title.function",relevance:0},Te={begin:l.concat(/\./,l.lookahead(l.concat(d,/(?![0-9A-Za-z$_(])/))),end:d,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},Re={match:[/get|set/,/\s+/,d,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},J]},me="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+u.UNDERSCORE_IDENT_RE+")\\s*=>",de={match:[/const|var|let/,/\s+/,d,/\s*/,/=\s*/,/(async\s*)?/,l.lookahead(me)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[J]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:R,exports:{PARAMS_CONTAINS:se,CLASS_REFERENCE:C},illegal:/#(?![$_A-z])/,contains:[u.SHEBANG({label:"shebang",binary:"node",relevance:5}),k,u.APOS_STRING_MODE,u.QUOTE_STRING_MODE,T,P,w,O,G,{match:/\$\d+/},E,C,{className:"attr",begin:d+l.lookahead(":"),relevance:0},de,{begin:"("+u.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[G,u.REGEXP_MODE,{className:"function",begin:me,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:u.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:R,contains:se}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:h.begin,end:h.end},{match:_},{begin:m.begin,"on:begin":m.isTrulyOpeningTag,end:m.end}],subLanguage:"xml",contains:[{begin:m.begin,end:m.end,skip:!0,contains:["self"]}]}]},te,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+u.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[J,u.inherit(u.TITLE_MODE,{begin:d,className:"title.function"})]},{match:/\.\.\./,relevance:0},Te,{match:"\\$"+d,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[J]},pe,ae,$,Re,{match:/\$[(.]/}]}}return _i=c,_i}var bi,sl;function xy(){if(sl)return bi;sl=1;function e(t){const n={className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},r={match:/[{}[\],:]/,className:"punctuation",relevance:0},s=["true","false","null"],i={scope:"literal",beginKeywords:s.join(" ")};return{name:"JSON",keywords:{literal:s},contains:[n,r,t.QUOTE_STRING_MODE,i,t.C_NUMBER_MODE,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}return bi=e,bi}var mi,il;function Iy(){if(il)return mi;il=1;var e="[0-9](_*[0-9])*",t=`\\.(${e})`,n="[0-9a-fA-F](_*[0-9a-fA-F])*",r={className:"number",variants:[{begin:`(\\b(${e})((${t})|\\.)?|(${t}))[eE][+-]?(${e})[fFdD]?\\b`},{begin:`\\b(${e})((${t})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${t})[fFdD]?\\b`},{begin:`\\b(${e})[fFdD]\\b`},{begin:`\\b0[xX]((${n})\\.?|(${n})?\\.(${n}))[pP][+-]?(${e})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${n})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function s(i){const o={keyword:"abstract as val var vararg get set class object open private protected public noinline crossinline dynamic final enum if else do while for when throw try catch finally import package is in fun override companion reified inline lateinit init interface annotation data sealed internal infix operator out by constructor super tailrec where const inner suspend typealias external expect actual",built_in:"Byte Short Char Int Long Boolean Float Double Void Unit Nothing",literal:"true false null"},a={className:"keyword",begin:/\b(break|continue|return|this)\b/,starts:{contains:[{className:"symbol",begin:/@\w+/}]}},c={className:"symbol",begin:i.UNDERSCORE_IDENT_RE+"@"},u={className:"subst",begin:/\$\{/,end:/\}/,contains:[i.C_NUMBER_MODE]},l={className:"variable",begin:"\\$"+i.UNDERSCORE_IDENT_RE},f={className:"string",variants:[{begin:'"""',end:'"""(?=[^"])',contains:[l,u]},{begin:"'",end:"'",illegal:/\n/,contains:[i.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[i.BACKSLASH_ESCAPE,l,u]}]};u.contains.push(f);const d={className:"meta",begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+i.UNDERSCORE_IDENT_RE+")?"},h={className:"meta",begin:"@"+i.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[i.inherit(f,{className:"string"}),"self"]}]},_=r,m=i.COMMENT("/\\*","\\*/",{contains:[i.C_BLOCK_COMMENT_MODE]}),R={variants:[{className:"type",begin:i.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]},S=R;return S.variants[1].contains=[R],R.variants[1].contains=[S],{name:"Kotlin",aliases:["kt","kts"],keywords:o,contains:[i.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),i.C_LINE_COMMENT_MODE,m,a,c,d,h,{className:"function",beginKeywords:"fun",end:"[(]|$",returnBegin:!0,excludeEnd:!0,keywords:o,relevance:5,contains:[{begin:i.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[i.UNDERSCORE_TITLE_MODE]},{className:"type",begin://,keywords:"reified",relevance:0},{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:o,relevance:0,contains:[{begin:/:/,end:/[=,\/]/,endsWithParent:!0,contains:[R,i.C_LINE_COMMENT_MODE,m],relevance:0},i.C_LINE_COMMENT_MODE,m,d,h,f,i.C_NUMBER_MODE]},m]},{begin:[/class|interface|trait/,/\s+/,i.UNDERSCORE_IDENT_RE],beginScope:{3:"title.class"},keywords:"class interface trait",end:/[:\{(]|$/,excludeEnd:!0,illegal:"extends implements",contains:[{beginKeywords:"public protected internal private constructor"},i.UNDERSCORE_TITLE_MODE,{className:"type",begin://,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/[,:]\s*/,end:/[<\(,){\s]|$/,excludeBegin:!0,returnEnd:!0},d,h]},f,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:` +`},_]}}return mi=s,mi}var Ei,ol;function Ly(){if(ol)return Ei;ol=1;const e=c=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:c.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[c.APOS_STRING_MODE,c.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:c.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),t=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],n=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],r=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],s=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],i=["align-content","align-items","align-self","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","content-visibility","counter-increment","counter-reset","cue","cue-after","cue-before","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-synthesis","font-variant","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inline-size","isolation","justify-content","left","letter-spacing","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","pause","pause-after","pause-before","perspective","perspective-origin","pointer-events","position","quotes","resize","rest","rest-after","rest-before","right","row-gap","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","speak","speak-as","src","tab-size","table-layout","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index"].reverse(),o=r.concat(s);function a(c){const u=e(c),l=o,f="and or not only",d="[\\w-]+",h="("+d+"|@\\{"+d+"\\})",_=[],m=[],R=function(G){return{className:"string",begin:"~?"+G+".*?"+G}},S=function(G,U,Z){return{className:G,begin:U,relevance:Z}},y={$pattern:/[a-z-]+/,keyword:f,attribute:n.join(" ")},b={begin:"\\(",end:"\\)",contains:m,keywords:y,relevance:0};m.push(c.C_LINE_COMMENT_MODE,c.C_BLOCK_COMMENT_MODE,R("'"),R('"'),u.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},u.HEXCOLOR,b,S("variable","@@?"+d,10),S("variable","@\\{"+d+"\\}"),S("built_in","~?`[^`]*?`"),{className:"attribute",begin:d+"\\s*:",end:":",returnBegin:!0,excludeEnd:!0},u.IMPORTANT,{beginKeywords:"and not"},u.FUNCTION_DISPATCH);const E=m.concat({begin:/\{/,end:/\}/,contains:_}),v={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(m)},T={begin:h+"\\s*:",returnBegin:!0,end:/[;}]/,relevance:0,contains:[{begin:/-(webkit|moz|ms|o)-/},u.CSS_VARIABLE,{className:"attribute",begin:"\\b("+i.join("|")+")\\b",end:/(?=:)/,starts:{endsWithParent:!0,illegal:"[<=$]",relevance:0,contains:m}}]},P={className:"keyword",begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",starts:{end:"[;{}]",keywords:y,returnEnd:!0,contains:m,relevance:0}},w={className:"variable",variants:[{begin:"@"+d+"\\s*:",relevance:15},{begin:"@"+d}],starts:{end:"[;}]",returnEnd:!0,contains:E}},O={variants:[{begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:h,end:/\{/}],returnBegin:!0,returnEnd:!0,illegal:`[<='$"]`,relevance:0,contains:[c.C_LINE_COMMENT_MODE,c.C_BLOCK_COMMENT_MODE,v,S("keyword","all\\b"),S("variable","@\\{"+d+"\\}"),{begin:"\\b("+t.join("|")+")\\b",className:"selector-tag"},u.CSS_NUMBER_MODE,S("selector-tag",h,0),S("selector-id","#"+h),S("selector-class","\\."+h,0),S("selector-tag","&",0),u.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",begin:":("+r.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+s.join("|")+")"},{begin:/\(/,end:/\)/,relevance:0,contains:E},{begin:"!important"},u.FUNCTION_DISPATCH]},B={begin:d+`:(:)?(${l.join("|")})`,returnBegin:!0,contains:[O]};return _.push(c.C_LINE_COMMENT_MODE,c.C_BLOCK_COMMENT_MODE,P,w,B,T,O,v,u.FUNCTION_DISPATCH),{name:"Less",case_insensitive:!0,illegal:`[=>'/<($"]`,contains:_}}return Ei=a,Ei}var yi,al;function Py(){if(al)return yi;al=1;function e(t){const n="\\[=*\\[",r="\\]=*\\]",s={begin:n,end:r,contains:["self"]},i=[t.COMMENT("--(?!"+n+")","$"),t.COMMENT("--"+n,r,{contains:[s],relevance:10})];return{name:"Lua",keywords:{$pattern:t.UNDERSCORE_IDENT_RE,literal:"true false nil",keyword:"and break do else elseif end for goto if in local not or repeat return then until while",built_in:"_G _ENV _VERSION __index __newindex __mode __call __metatable __tostring __len __gc __add __sub __mul __div __mod __pow __concat __unm __eq __lt __le assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall arg self coroutine resume yield status wrap create running debug getupvalue debug sethook getmetatable gethook setmetatable setlocal traceback setfenv getinfo setupvalue getlocal getregistry getfenv io lines write close flush open output type read stderr stdin input stdout popen tmpfile math log max acos huge ldexp pi cos tanh pow deg tan cosh sinh random randomseed frexp ceil floor rad abs sqrt modf asin min mod fmod log10 atan2 exp sin atan os exit setlocale date getenv difftime remove time clock tmpname rename execute package preload loadlib loaded loaders cpath config path seeall string sub upper len gfind rep find match char dump gmatch reverse byte format gsub lower table setn insert getn foreachi maxn foreach concat sort remove"},contains:i.concat([{className:"function",beginKeywords:"function",end:"\\)",contains:[t.inherit(t.TITLE_MODE,{begin:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),{className:"params",begin:"\\(",endsWithParent:!0,contains:i}].concat(i)},t.C_NUMBER_MODE,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,{className:"string",begin:n,end:r,contains:[s],relevance:5}])}}return yi=e,yi}var vi,cl;function Dy(){if(cl)return vi;cl=1;function e(t){const n={className:"variable",variants:[{begin:"\\$\\("+t.UNDERSCORE_IDENT_RE+"\\)",contains:[t.BACKSLASH_ESCAPE]},{begin:/\$[@%\{/,end:/\}/},c={variants:[{begin:/\$\d/},{begin:n.concat(/[$%@](\^\w\b|#\w+(::\w+)*|\{\w+\}|\w+(::\w*)*)/,"(?![A-Za-z])(?![@$%])")},{begin:/[$%@][^\s\w{]/,relevance:0}]},u=[t.BACKSLASH_ESCAPE,o,c],l=[/!/,/\//,/\|/,/\?/,/'/,/"/,/#/],f=(_,m,R="\\1")=>{const S=R==="\\1"?R:n.concat(R,m);return n.concat(n.concat("(?:",_,")"),m,/(?:\\.|[^\\\/])*?/,S,/(?:\\.|[^\\\/])*?/,R,s)},d=(_,m,R)=>n.concat(n.concat("(?:",_,")"),m,/(?:\\.|[^\\\/])*?/,R,s),h=[c,t.HASH_COMMENT_MODE,t.COMMENT(/^=\w/,/=cut/,{endsWithParent:!0}),a,{className:"string",contains:u,variants:[{begin:"q[qwxr]?\\s*\\(",end:"\\)",relevance:5},{begin:"q[qwxr]?\\s*\\[",end:"\\]",relevance:5},{begin:"q[qwxr]?\\s*\\{",end:"\\}",relevance:5},{begin:"q[qwxr]?\\s*\\|",end:"\\|",relevance:5},{begin:"q[qwxr]?\\s*<",end:">",relevance:5},{begin:"qw\\s+q",end:"q",relevance:5},{begin:"'",end:"'",contains:[t.BACKSLASH_ESCAPE]},{begin:'"',end:'"'},{begin:"`",end:"`",contains:[t.BACKSLASH_ESCAPE]},{begin:/\{\w+\}/,relevance:0},{begin:"-?\\w+\\s*=>",relevance:0}]},{className:"number",begin:"(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b",relevance:0},{begin:"(\\/\\/|"+t.RE_STARTERS_RE+"|\\b(split|return|print|reverse|grep)\\b)\\s*",keywords:"split return print reverse grep",relevance:0,contains:[t.HASH_COMMENT_MODE,{className:"regexp",variants:[{begin:f("s|tr|y",n.either(...l,{capture:!0}))},{begin:f("s|tr|y","\\(","\\)")},{begin:f("s|tr|y","\\[","\\]")},{begin:f("s|tr|y","\\{","\\}")}],relevance:2},{className:"regexp",variants:[{begin:/(m|qr)\/\//,relevance:0},{begin:d("(?:m|qr)?",/\//,/\//)},{begin:d("m|qr",n.either(...l,{capture:!0}),/\1/)},{begin:d("m|qr",/\(/,/\)/)},{begin:d("m|qr",/\[/,/\]/)},{begin:d("m|qr",/\{/,/\}/)}]}]},{className:"function",beginKeywords:"sub",end:"(\\s*\\(.*?\\))?[;{]",excludeEnd:!0,relevance:5,contains:[t.TITLE_MODE]},{begin:"-\\w\\b",relevance:0},{begin:"^__DATA__$",end:"^__END__$",subLanguage:"mojolicious",contains:[{begin:"^@@.*",end:"$",className:"comment"}]}];return o.contains=h,a.contains=h,{name:"Perl",aliases:["pl","pm"],keywords:i,contains:h}}return wi=e,wi}var Si,ul;function Uy(){if(ul)return Si;ul=1;function e(t){const n={className:"built_in",begin:"\\b(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)\\w+"},r=/[a-zA-Z@][a-zA-Z0-9_]*/,c={"variable.language":["this","super"],$pattern:r,keyword:["while","export","sizeof","typedef","const","struct","for","union","volatile","static","mutable","if","do","return","goto","enum","else","break","extern","asm","case","default","register","explicit","typename","switch","continue","inline","readonly","assign","readwrite","self","@synchronized","id","typeof","nonatomic","IBOutlet","IBAction","strong","weak","copy","in","out","inout","bycopy","byref","oneway","__strong","__weak","__block","__autoreleasing","@private","@protected","@public","@try","@property","@end","@throw","@catch","@finally","@autoreleasepool","@synthesize","@dynamic","@selector","@optional","@required","@encode","@package","@import","@defs","@compatibility_alias","__bridge","__bridge_transfer","__bridge_retained","__bridge_retain","__covariant","__contravariant","__kindof","_Nonnull","_Nullable","_Null_unspecified","__FUNCTION__","__PRETTY_FUNCTION__","__attribute__","getter","setter","retain","unsafe_unretained","nonnull","nullable","null_unspecified","null_resettable","class","instancetype","NS_DESIGNATED_INITIALIZER","NS_UNAVAILABLE","NS_REQUIRES_SUPER","NS_RETURNS_INNER_POINTER","NS_INLINE","NS_AVAILABLE","NS_DEPRECATED","NS_ENUM","NS_OPTIONS","NS_SWIFT_UNAVAILABLE","NS_ASSUME_NONNULL_BEGIN","NS_ASSUME_NONNULL_END","NS_REFINED_FOR_SWIFT","NS_SWIFT_NAME","NS_SWIFT_NOTHROW","NS_DURING","NS_HANDLER","NS_ENDHANDLER","NS_VALUERETURN","NS_VOIDRETURN"],literal:["false","true","FALSE","TRUE","nil","YES","NO","NULL"],built_in:["dispatch_once_t","dispatch_queue_t","dispatch_sync","dispatch_async","dispatch_once"],type:["int","float","char","unsigned","signed","short","long","double","wchar_t","unichar","void","bool","BOOL","id|0","_Bool"]},u={$pattern:r,keyword:["@interface","@class","@protocol","@implementation"]};return{name:"Objective-C",aliases:["mm","objc","obj-c","obj-c++","objective-c++"],keywords:c,illegal:"/,end:/$/,illegal:"\\n"},t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},{className:"class",begin:"("+u.keyword.join("|")+")\\b",end:/(\{|$)/,excludeEnd:!0,keywords:u,contains:[t.UNDERSCORE_TITLE_MODE]},{begin:"\\."+t.UNDERSCORE_IDENT_RE,relevance:0}]}}return Si=e,Si}var Ti,fl;function Fy(){if(fl)return Ti;fl=1;function e(t){const n=t.regex,r=/(?![A-Za-z0-9])(?![$])/,s=n.concat(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/,r),i=n.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/,r),o={scope:"variable",match:"\\$+"+s},a={scope:"meta",variants:[{begin:/<\?php/,relevance:10},{begin:/<\?=/},{begin:/<\?/,relevance:.1},{begin:/\?>/}]},c={scope:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},u=t.inherit(t.APOS_STRING_MODE,{illegal:null}),l=t.inherit(t.QUOTE_STRING_MODE,{illegal:null,contains:t.QUOTE_STRING_MODE.contains.concat(c)}),f={begin:/<<<[ \t]*(?:(\w+)|"(\w+)")\n/,end:/[ \t]*(\w+)\b/,contains:t.QUOTE_STRING_MODE.contains.concat(c),"on:begin":(se,J)=>{J.data._beginMatch=se[1]||se[2]},"on:end":(se,J)=>{J.data._beginMatch!==se[1]&&J.ignoreMatch()}},d=t.END_SAME_AS_BEGIN({begin:/<<<[ \t]*'(\w+)'\n/,end:/[ \t]*(\w+)\b/}),h=`[ +]`,_={scope:"string",variants:[l,u,f,d]},m={scope:"number",variants:[{begin:"\\b0[bB][01]+(?:_[01]+)*\\b"},{begin:"\\b0[oO][0-7]+(?:_[0-7]+)*\\b"},{begin:"\\b0[xX][\\da-fA-F]+(?:_[\\da-fA-F]+)*\\b"},{begin:"(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:[eE][+-]?\\d+)?"}],relevance:0},R=["false","null","true"],S=["__CLASS__","__DIR__","__FILE__","__FUNCTION__","__COMPILER_HALT_OFFSET__","__LINE__","__METHOD__","__NAMESPACE__","__TRAIT__","die","echo","exit","include","include_once","print","require","require_once","array","abstract","and","as","binary","bool","boolean","break","callable","case","catch","class","clone","const","continue","declare","default","do","double","else","elseif","empty","enddeclare","endfor","endforeach","endif","endswitch","endwhile","enum","eval","extends","final","finally","float","for","foreach","from","global","goto","if","implements","instanceof","insteadof","int","integer","interface","isset","iterable","list","match|0","mixed","new","never","object","or","private","protected","public","readonly","real","return","string","switch","throw","trait","try","unset","use","var","void","while","xor","yield"],y=["Error|0","AppendIterator","ArgumentCountError","ArithmeticError","ArrayIterator","ArrayObject","AssertionError","BadFunctionCallException","BadMethodCallException","CachingIterator","CallbackFilterIterator","CompileError","Countable","DirectoryIterator","DivisionByZeroError","DomainException","EmptyIterator","ErrorException","Exception","FilesystemIterator","FilterIterator","GlobIterator","InfiniteIterator","InvalidArgumentException","IteratorIterator","LengthException","LimitIterator","LogicException","MultipleIterator","NoRewindIterator","OutOfBoundsException","OutOfRangeException","OuterIterator","OverflowException","ParentIterator","ParseError","RangeException","RecursiveArrayIterator","RecursiveCachingIterator","RecursiveCallbackFilterIterator","RecursiveDirectoryIterator","RecursiveFilterIterator","RecursiveIterator","RecursiveIteratorIterator","RecursiveRegexIterator","RecursiveTreeIterator","RegexIterator","RuntimeException","SeekableIterator","SplDoublyLinkedList","SplFileInfo","SplFileObject","SplFixedArray","SplHeap","SplMaxHeap","SplMinHeap","SplObjectStorage","SplObserver","SplPriorityQueue","SplQueue","SplStack","SplSubject","SplTempFileObject","TypeError","UnderflowException","UnexpectedValueException","UnhandledMatchError","ArrayAccess","BackedEnum","Closure","Fiber","Generator","Iterator","IteratorAggregate","Serializable","Stringable","Throwable","Traversable","UnitEnum","WeakReference","WeakMap","Directory","__PHP_Incomplete_Class","parent","php_user_filter","self","static","stdClass"],E={keyword:S,literal:(se=>{const J=[];return se.forEach($=>{J.push($),$.toLowerCase()===$?J.push($.toUpperCase()):J.push($.toLowerCase())}),J})(R),built_in:y},v=se=>se.map(J=>J.replace(/\|\d+$/,"")),T={variants:[{match:[/new/,n.concat(h,"+"),n.concat("(?!",v(y).join("\\b|"),"\\b)"),i],scope:{1:"keyword",4:"title.class"}}]},P=n.concat(s,"\\b(?!\\()"),w={variants:[{match:[n.concat(/::/,n.lookahead(/(?!class\b)/)),P],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[i,n.concat(/::/,n.lookahead(/(?!class\b)/)),P],scope:{1:"title.class",3:"variable.constant"}},{match:[i,n.concat("::",n.lookahead(/(?!class\b)/))],scope:{1:"title.class"}},{match:[i,/::/,/class/],scope:{1:"title.class",3:"variable.language"}}]},O={scope:"attr",match:n.concat(s,n.lookahead(":"),n.lookahead(/(?!::)/))},B={relevance:0,begin:/\(/,end:/\)/,keywords:E,contains:[O,o,w,t.C_BLOCK_COMMENT_MODE,_,m,T]},G={relevance:0,match:[/\b/,n.concat("(?!fn\\b|function\\b|",v(S).join("\\b|"),"|",v(y).join("\\b|"),"\\b)"),s,n.concat(h,"*"),n.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[B]};B.contains.push(G);const U=[O,w,t.C_BLOCK_COMMENT_MODE,_,m,T],Z={begin:n.concat(/#\[\s*/,i),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:R,keyword:["new","array"]},contains:[{begin:/\[/,end:/]/,keywords:{literal:R,keyword:["new","array"]},contains:["self",...U]},...U,{scope:"meta",match:i}]};return{case_insensitive:!1,keywords:E,contains:[Z,t.HASH_COMMENT_MODE,t.COMMENT("//","$"),t.COMMENT("/\\*","\\*/",{contains:[{scope:"doctag",match:"@[A-Za-z]+"}]}),{match:/__halt_compiler\(\);/,keywords:"__halt_compiler",starts:{scope:"comment",end:t.MATCH_NOTHING_RE,contains:[{match:/\?>/,scope:"meta",endsParent:!0}]}},a,{scope:"variable.language",match:/\$this\b/},o,G,w,{match:[/const/,/\s/,s],scope:{1:"keyword",3:"variable.constant"}},T,{scope:"function",relevance:0,beginKeywords:"fn function",end:/[;{]/,excludeEnd:!0,illegal:"[$%\\[]",contains:[{beginKeywords:"use"},t.UNDERSCORE_TITLE_MODE,{begin:"=>",endsParent:!0},{scope:"params",begin:"\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0,keywords:E,contains:["self",o,w,t.C_BLOCK_COMMENT_MODE,_,m]}]},{scope:"class",variants:[{beginKeywords:"enum",illegal:/[($"]/},{beginKeywords:"class interface trait",illegal:/[:($"]/}],relevance:0,end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},t.UNDERSCORE_TITLE_MODE]},{beginKeywords:"namespace",relevance:0,end:";",illegal:/[.']/,contains:[t.inherit(t.UNDERSCORE_TITLE_MODE,{scope:"title.class"})]},{beginKeywords:"use",relevance:0,end:";",contains:[{match:/\b(as|const|function)\b/,scope:"keyword"},t.UNDERSCORE_TITLE_MODE]},_,m]}}return Ti=e,Ti}var Ri,dl;function $y(){if(dl)return Ri;dl=1;function e(t){return{name:"PHP template",subLanguage:"xml",contains:[{begin:/<\?(php|=)?/,end:/\?>/,subLanguage:"php",contains:[{begin:"/\\*",end:"\\*/",skip:!0},{begin:'b"',end:'"',skip:!0},{begin:"b'",end:"'",skip:!0},t.inherit(t.APOS_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0}),t.inherit(t.QUOTE_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0})]}]}}return Ri=e,Ri}var Ni,hl;function Hy(){if(hl)return Ni;hl=1;function e(t){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}return Ni=e,Ni}var Ci,pl;function Ky(){if(pl)return Ci;pl=1;function e(t){const n=t.regex,r=new RegExp("[\\p{XID_Start}_]\\p{XID_Continue}*","u"),s=["and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","match","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],c={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:s,built_in:["__import__","abs","all","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"],literal:["__debug__","Ellipsis","False","None","NotImplemented","True"],type:["Any","Callable","Coroutine","Dict","List","Literal","Generic","Optional","Sequence","Set","Tuple","Type","Union"]},u={className:"meta",begin:/^(>>>|\.\.\.) /},l={className:"subst",begin:/\{/,end:/\}/,keywords:c,illegal:/#/},f={begin:/\{\{/,relevance:0},d={className:"string",contains:[t.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[t.BACKSLASH_ESCAPE,u],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[t.BACKSLASH_ESCAPE,u],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[t.BACKSLASH_ESCAPE,u,f,l]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[t.BACKSLASH_ESCAPE,u,f,l]},{begin:/([uU]|[rR])'/,end:/'/,relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,end:/"/},{begin:/([fF][rR]|[rR][fF]|[fF])'/,end:/'/,contains:[t.BACKSLASH_ESCAPE,f,l]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[t.BACKSLASH_ESCAPE,f,l]},t.APOS_STRING_MODE,t.QUOTE_STRING_MODE]},h="[0-9](_?[0-9])*",_=`(\\b(${h}))?\\.(${h})|\\b(${h})\\.`,m=`\\b|${s.join("|")}`,R={className:"number",relevance:0,variants:[{begin:`(\\b(${h})|(${_}))[eE][+-]?(${h})[jJ]?(?=${m})`},{begin:`(${_})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${m})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${m})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${m})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${m})`},{begin:`\\b(${h})[jJ](?=${m})`}]},S={className:"comment",begin:n.lookahead(/# type:/),end:/$/,keywords:c,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},y={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:c,contains:["self",u,R,d,t.HASH_COMMENT_MODE]}]};return l.contains=[d,R,u],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:c,illegal:/(<\/|\?)|=>/,contains:[u,R,{begin:/\bself\b/},{beginKeywords:"if",relevance:0},d,S,t.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,r],scope:{1:"keyword",3:"title.function"},contains:[y]},{variants:[{match:[/\bclass/,/\s+/,r,/\s*/,/\(\s*/,r,/\s*\)/]},{match:[/\bclass/,/\s+/,r]}],scope:{1:"keyword",3:"title.class",6:"title.class.inherited"}},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[R,y,d]}]}}return Ci=e,Ci}var Oi,gl;function zy(){if(gl)return Oi;gl=1;function e(t){return{aliases:["pycon"],contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"python"}},variants:[{begin:/^>>>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}return Oi=e,Oi}var Ai,_l;function qy(){if(_l)return Ai;_l=1;function e(t){const n=t.regex,r=/(?:(?:[a-zA-Z]|\.[._a-zA-Z])[._a-zA-Z0-9]*)|\.(?!\d)/,s=n.either(/0[xX][0-9a-fA-F]+\.[0-9a-fA-F]*[pP][+-]?\d+i?/,/0[xX][0-9a-fA-F]+(?:[pP][+-]?\d+)?[Li]?/,/(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?[Li]?/),i=/[=!<>:]=|\|\||&&|:::?|<-|<<-|->>|->|\|>|[-+*\/?!$&|:<=>@^~]|\*\*/,o=n.either(/[()]/,/[{}]/,/\[\[/,/[[\]]/,/\\/,/,/);return{name:"R",keywords:{$pattern:r,keyword:"function if in break next repeat else for while",literal:"NULL NA TRUE FALSE Inf NaN NA_integer_|10 NA_real_|10 NA_character_|10 NA_complex_|10",built_in:"LETTERS letters month.abb month.name pi T F abs acos acosh all any anyNA Arg as.call as.character as.complex as.double as.environment as.integer as.logical as.null.default as.numeric as.raw asin asinh atan atanh attr attributes baseenv browser c call ceiling class Conj cos cosh cospi cummax cummin cumprod cumsum digamma dim dimnames emptyenv exp expression floor forceAndCall gamma gc.time globalenv Im interactive invisible is.array is.atomic is.call is.character is.complex is.double is.environment is.expression is.finite is.function is.infinite is.integer is.language is.list is.logical is.matrix is.na is.name is.nan is.null is.numeric is.object is.pairlist is.raw is.recursive is.single is.symbol lazyLoadDBfetch length lgamma list log max min missing Mod names nargs nzchar oldClass on.exit pos.to.env proc.time prod quote range Re rep retracemem return round seq_along seq_len seq.int sign signif sin sinh sinpi sqrt standardGeneric substitute sum switch tan tanh tanpi tracemem trigamma trunc unclass untracemem UseMethod xtfrm"},contains:[t.COMMENT(/#'/,/$/,{contains:[{scope:"doctag",match:/@examples/,starts:{end:n.lookahead(n.either(/\n^#'\s*(?=@[a-zA-Z]+)/,/\n^(?!#')/)),endsParent:!0}},{scope:"doctag",begin:"@param",end:/$/,contains:[{scope:"variable",variants:[{match:r},{match:/`(?:\\.|[^`\\])+`/}],endsParent:!0}]},{scope:"doctag",match:/@[a-zA-Z]+/},{scope:"keyword",match:/\\[a-zA-Z]+/}]}),t.HASH_COMMENT_MODE,{scope:"string",contains:[t.BACKSLASH_ESCAPE],variants:[t.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\(/,end:/\)(-*)"/}),t.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\{/,end:/\}(-*)"/}),t.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\[/,end:/\](-*)"/}),t.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\(/,end:/\)(-*)'/}),t.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\{/,end:/\}(-*)'/}),t.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\[/,end:/\](-*)'/}),{begin:'"',end:'"',relevance:0},{begin:"'",end:"'",relevance:0}]},{relevance:0,variants:[{scope:{1:"operator",2:"number"},match:[i,s]},{scope:{1:"operator",2:"number"},match:[/%[^%]*%/,s]},{scope:{1:"punctuation",2:"number"},match:[o,s]},{scope:{2:"number"},match:[/[^a-zA-Z0-9._]|^/,s]}]},{scope:{3:"operator"},match:[r,/\s+/,/<-/,/\s+/]},{scope:"operator",relevance:0,variants:[{match:i},{match:/%[^%]*%/}]},{scope:"punctuation",relevance:0,match:o},{begin:"`",end:"`",contains:[{begin:/\\./}]}]}}return Ai=e,Ai}var ki,bl;function Wy(){if(bl)return ki;bl=1;function e(t){const n=t.regex,r={className:"title.function.invoke",relevance:0,begin:n.concat(/\b/,/(?!let|for|while|if|else|match\b)/,t.IDENT_RE,n.lookahead(/\s*\(/))},s="([ui](8|16|32|64|128|size)|f(32|64))?",i=["abstract","as","async","await","become","box","break","const","continue","crate","do","dyn","else","enum","extern","false","final","fn","for","if","impl","in","let","loop","macro","match","mod","move","mut","override","priv","pub","ref","return","self","Self","static","struct","super","trait","true","try","type","typeof","unsafe","unsized","use","virtual","where","while","yield"],o=["true","false","Some","None","Ok","Err"],a=["drop ","Copy","Send","Sized","Sync","Drop","Fn","FnMut","FnOnce","ToOwned","Clone","Debug","PartialEq","PartialOrd","Eq","Ord","AsRef","AsMut","Into","From","Default","Iterator","Extend","IntoIterator","DoubleEndedIterator","ExactSizeIterator","SliceConcatExt","ToString","assert!","assert_eq!","bitflags!","bytes!","cfg!","col!","concat!","concat_idents!","debug_assert!","debug_assert_eq!","env!","eprintln!","panic!","file!","format!","format_args!","include_bytes!","include_str!","line!","local_data_key!","module_path!","option_env!","print!","println!","select!","stringify!","try!","unimplemented!","unreachable!","vec!","write!","writeln!","macro_rules!","assert_ne!","debug_assert_ne!"],c=["i8","i16","i32","i64","i128","isize","u8","u16","u32","u64","u128","usize","f32","f64","str","char","bool","Box","Option","Result","String","Vec"];return{name:"Rust",aliases:["rs"],keywords:{$pattern:t.IDENT_RE+"!?",type:c,keyword:i,literal:o,built_in:a},illegal:""},r]}}return ki=e,ki}var Mi,ml;function Gy(){if(ml)return Mi;ml=1;const e=a=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:a.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[a.APOS_STRING_MODE,a.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:a.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),t=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],n=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],r=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],s=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],i=["align-content","align-items","align-self","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","content-visibility","counter-increment","counter-reset","cue","cue-after","cue-before","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-synthesis","font-variant","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inline-size","isolation","justify-content","left","letter-spacing","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","pause","pause-after","pause-before","perspective","perspective-origin","pointer-events","position","quotes","resize","rest","rest-after","rest-before","right","row-gap","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","speak","speak-as","src","tab-size","table-layout","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index"].reverse();function o(a){const c=e(a),u=s,l=r,f="@[a-z-]+",d="and or not only",_={className:"variable",begin:"(\\$"+"[a-zA-Z-][a-zA-Z0-9_-]*"+")\\b",relevance:0};return{name:"SCSS",case_insensitive:!0,illegal:"[=/|']",contains:[a.C_LINE_COMMENT_MODE,a.C_BLOCK_COMMENT_MODE,c.CSS_NUMBER_MODE,{className:"selector-id",begin:"#[A-Za-z0-9_-]+",relevance:0},{className:"selector-class",begin:"\\.[A-Za-z0-9_-]+",relevance:0},c.ATTRIBUTE_SELECTOR_MODE,{className:"selector-tag",begin:"\\b("+t.join("|")+")\\b",relevance:0},{className:"selector-pseudo",begin:":("+l.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+u.join("|")+")"},_,{begin:/\(/,end:/\)/,contains:[c.CSS_NUMBER_MODE]},c.CSS_VARIABLE,{className:"attribute",begin:"\\b("+i.join("|")+")\\b"},{begin:"\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b"},{begin:/:/,end:/[;}{]/,relevance:0,contains:[c.BLOCK_COMMENT,_,c.HEXCOLOR,c.CSS_NUMBER_MODE,a.QUOTE_STRING_MODE,a.APOS_STRING_MODE,c.IMPORTANT,c.FUNCTION_DISPATCH]},{begin:"@(page|font-face)",keywords:{$pattern:f,keyword:"@page @font-face"}},{begin:"@",end:"[{;]",returnBegin:!0,keywords:{$pattern:/[a-z-]+/,keyword:d,attribute:n.join(" ")},contains:[{begin:f,className:"keyword"},{begin:/[a-z-]+(?=:)/,className:"attribute"},_,a.QUOTE_STRING_MODE,a.APOS_STRING_MODE,c.HEXCOLOR,c.CSS_NUMBER_MODE]},c.FUNCTION_DISPATCH]}}return Mi=o,Mi}var xi,El;function jy(){if(El)return xi;El=1;function e(t){return{name:"Shell Session",aliases:["console","shellsession"],contains:[{className:"meta.prompt",begin:/^\s{0,3}[/~\w\d[\]()@-]*[>%$#][ ]?/,starts:{end:/[^\\](?=\s*$)/,subLanguage:"bash"}}]}}return xi=e,xi}var Ii,yl;function Vy(){if(yl)return Ii;yl=1;function e(t){const n=t.regex,r=t.COMMENT("--","$"),s={className:"string",variants:[{begin:/'/,end:/'/,contains:[{begin:/''/}]}]},i={begin:/"/,end:/"/,contains:[{begin:/""/}]},o=["true","false","unknown"],a=["double precision","large object","with timezone","without timezone"],c=["bigint","binary","blob","boolean","char","character","clob","date","dec","decfloat","decimal","float","int","integer","interval","nchar","nclob","national","numeric","real","row","smallint","time","timestamp","varchar","varying","varbinary"],u=["add","asc","collation","desc","final","first","last","view"],l=["abs","acos","all","allocate","alter","and","any","are","array","array_agg","array_max_cardinality","as","asensitive","asin","asymmetric","at","atan","atomic","authorization","avg","begin","begin_frame","begin_partition","between","bigint","binary","blob","boolean","both","by","call","called","cardinality","cascaded","case","cast","ceil","ceiling","char","char_length","character","character_length","check","classifier","clob","close","coalesce","collate","collect","column","commit","condition","connect","constraint","contains","convert","copy","corr","corresponding","cos","cosh","count","covar_pop","covar_samp","create","cross","cube","cume_dist","current","current_catalog","current_date","current_default_transform_group","current_path","current_role","current_row","current_schema","current_time","current_timestamp","current_path","current_role","current_transform_group_for_type","current_user","cursor","cycle","date","day","deallocate","dec","decimal","decfloat","declare","default","define","delete","dense_rank","deref","describe","deterministic","disconnect","distinct","double","drop","dynamic","each","element","else","empty","end","end_frame","end_partition","end-exec","equals","escape","every","except","exec","execute","exists","exp","external","extract","false","fetch","filter","first_value","float","floor","for","foreign","frame_row","free","from","full","function","fusion","get","global","grant","group","grouping","groups","having","hold","hour","identity","in","indicator","initial","inner","inout","insensitive","insert","int","integer","intersect","intersection","interval","into","is","join","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","language","large","last_value","lateral","lead","leading","left","like","like_regex","listagg","ln","local","localtime","localtimestamp","log","log10","lower","match","match_number","match_recognize","matches","max","member","merge","method","min","minute","mod","modifies","module","month","multiset","national","natural","nchar","nclob","new","no","none","normalize","not","nth_value","ntile","null","nullif","numeric","octet_length","occurrences_regex","of","offset","old","omit","on","one","only","open","or","order","out","outer","over","overlaps","overlay","parameter","partition","pattern","per","percent","percent_rank","percentile_cont","percentile_disc","period","portion","position","position_regex","power","precedes","precision","prepare","primary","procedure","ptf","range","rank","reads","real","recursive","ref","references","referencing","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","release","result","return","returns","revoke","right","rollback","rollup","row","row_number","rows","running","savepoint","scope","scroll","search","second","seek","select","sensitive","session_user","set","show","similar","sin","sinh","skip","smallint","some","specific","specifictype","sql","sqlexception","sqlstate","sqlwarning","sqrt","start","static","stddev_pop","stddev_samp","submultiset","subset","substring","substring_regex","succeeds","sum","symmetric","system","system_time","system_user","table","tablesample","tan","tanh","then","time","timestamp","timezone_hour","timezone_minute","to","trailing","translate","translate_regex","translation","treat","trigger","trim","trim_array","true","truncate","uescape","union","unique","unknown","unnest","update","upper","user","using","value","values","value_of","var_pop","var_samp","varbinary","varchar","varying","versioning","when","whenever","where","width_bucket","window","with","within","without","year"],f=["abs","acos","array_agg","asin","atan","avg","cast","ceil","ceiling","coalesce","corr","cos","cosh","count","covar_pop","covar_samp","cume_dist","dense_rank","deref","element","exp","extract","first_value","floor","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","last_value","lead","listagg","ln","log","log10","lower","max","min","mod","nth_value","ntile","nullif","percent_rank","percentile_cont","percentile_disc","position","position_regex","power","rank","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","row_number","sin","sinh","sqrt","stddev_pop","stddev_samp","substring","substring_regex","sum","tan","tanh","translate","translate_regex","treat","trim","trim_array","unnest","upper","value_of","var_pop","var_samp","width_bucket"],d=["current_catalog","current_date","current_default_transform_group","current_path","current_role","current_schema","current_transform_group_for_type","current_user","session_user","system_time","system_user","current_time","localtime","current_timestamp","localtimestamp"],h=["create table","insert into","primary key","foreign key","not null","alter table","add constraint","grouping sets","on overflow","character set","respect nulls","ignore nulls","nulls first","nulls last","depth first","breadth first"],_=f,m=[...l,...u].filter(E=>!f.includes(E)),R={className:"variable",begin:/@[a-z0-9][a-z0-9_]*/},S={className:"operator",begin:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},y={begin:n.concat(/\b/,n.either(..._),/\s*\(/),relevance:0,keywords:{built_in:_}};function b(E,{exceptions:v,when:T}={}){const P=T;return v=v||[],E.map(w=>w.match(/\|\d+$/)||v.includes(w)?w:P(w)?`${w}|0`:w)}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:b(m,{when:E=>E.length<3}),literal:o,type:c,built_in:d},contains:[{begin:n.either(...h),relevance:0,keywords:{$pattern:/[\w\.]+/,keyword:m.concat(h),literal:o,type:c}},{className:"type",begin:n.either(...a)},y,R,s,i,t.C_NUMBER_MODE,t.C_BLOCK_COMMENT_MODE,r,S]}}return Ii=e,Ii}var Li,vl;function Yy(){if(vl)return Li;vl=1;function e(w){return w?typeof w=="string"?w:w.source:null}function t(w){return n("(?=",w,")")}function n(...w){return w.map(B=>e(B)).join("")}function r(w){const O=w[w.length-1];return typeof O=="object"&&O.constructor===Object?(w.splice(w.length-1,1),O):{}}function s(...w){return"("+(r(w).capture?"":"?:")+w.map(G=>e(G)).join("|")+")"}const i=w=>n(/\b/,w,/\w$/.test(w)?/\b/:/\B/),o=["Protocol","Type"].map(i),a=["init","self"].map(i),c=["Any","Self"],u=["actor","any","associatedtype","async","await",/as\?/,/as!/,"as","borrowing","break","case","catch","class","consume","consuming","continue","convenience","copy","default","defer","deinit","didSet","distributed","do","dynamic","each","else","enum","extension","fallthrough",/fileprivate\(set\)/,"fileprivate","final","for","func","get","guard","if","import","indirect","infix",/init\?/,/init!/,"inout",/internal\(set\)/,"internal","in","is","isolated","nonisolated","lazy","let","macro","mutating","nonmutating",/open\(set\)/,"open","operator","optional","override","postfix","precedencegroup","prefix",/private\(set\)/,"private","protocol",/public\(set\)/,"public","repeat","required","rethrows","return","set","some","static","struct","subscript","super","switch","throws","throw",/try\?/,/try!/,"try","typealias",/unowned\(safe\)/,/unowned\(unsafe\)/,"unowned","var","weak","where","while","willSet"],l=["false","nil","true"],f=["assignment","associativity","higherThan","left","lowerThan","none","right"],d=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warning"],h=["abs","all","any","assert","assertionFailure","debugPrint","dump","fatalError","getVaList","isKnownUniquelyReferenced","max","min","numericCast","pointwiseMax","pointwiseMin","precondition","preconditionFailure","print","readLine","repeatElement","sequence","stride","swap","swift_unboxFromSwiftValueWithType","transcode","type","unsafeBitCast","unsafeDowncast","withExtendedLifetime","withUnsafeMutablePointer","withUnsafePointer","withVaList","withoutActuallyEscaping","zip"],_=s(/[/=\-+!*%<>&|^~?]/,/[\u00A1-\u00A7]/,/[\u00A9\u00AB]/,/[\u00AC\u00AE]/,/[\u00B0\u00B1]/,/[\u00B6\u00BB\u00BF\u00D7\u00F7]/,/[\u2016-\u2017]/,/[\u2020-\u2027]/,/[\u2030-\u203E]/,/[\u2041-\u2053]/,/[\u2055-\u205E]/,/[\u2190-\u23FF]/,/[\u2500-\u2775]/,/[\u2794-\u2BFF]/,/[\u2E00-\u2E7F]/,/[\u3001-\u3003]/,/[\u3008-\u3020]/,/[\u3030]/),m=s(_,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),R=n(_,m,"*"),S=s(/[a-zA-Z_]/,/[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/,/[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/,/[\u0100-\u02FF\u0370-\u167F\u1681-\u180D\u180F-\u1DBF]/,/[\u1E00-\u1FFF]/,/[\u200B-\u200D\u202A-\u202E\u203F-\u2040\u2054\u2060-\u206F]/,/[\u2070-\u20CF\u2100-\u218F\u2460-\u24FF\u2776-\u2793]/,/[\u2C00-\u2DFF\u2E80-\u2FFF]/,/[\u3004-\u3007\u3021-\u302F\u3031-\u303F\u3040-\uD7FF]/,/[\uF900-\uFD3D\uFD40-\uFDCF\uFDF0-\uFE1F\uFE30-\uFE44]/,/[\uFE47-\uFEFE\uFF00-\uFFFD]/),y=s(S,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),b=n(S,y,"*"),E=n(/[A-Z]/,y,"*"),v=["attached","autoclosure",n(/convention\(/,s("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","freestanding","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","NSManaged",n(/objc\(/,b,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","resultBuilder","Sendable","testable","UIApplicationMain","unchecked","unknown","usableFromInline","warn_unqualified_access"],T=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"];function P(w){const O={match:/\s+/,relevance:0},B=w.COMMENT("/\\*","\\*/",{contains:["self"]}),G=[w.C_LINE_COMMENT_MODE,B],U={match:[/\./,s(...o,...a)],className:{2:"keyword"}},Z={match:n(/\./,s(...u)),relevance:0},se=u.filter(fe=>typeof fe=="string").concat(["_|0"]),J=u.filter(fe=>typeof fe!="string").concat(c).map(i),$={variants:[{className:"keyword",match:s(...J,...a)}]},C={$pattern:s(/\b\w+/,/#\w+/),keyword:se.concat(d),literal:l},k=[U,Z,$],te={match:n(/\./,s(...h)),relevance:0},ae={className:"built_in",match:n(/\b/,s(...h),/(?=\()/)},le=[te,ae],pe={match:/->/,relevance:0},Te={className:"operator",relevance:0,variants:[{match:R},{match:`\\.(\\.|${m})+`}]},Re=[pe,Te],me="([0-9]_*)+",de="([0-9a-fA-F]_*)+",A={className:"number",relevance:0,variants:[{match:`\\b(${me})(\\.(${me}))?([eE][+-]?(${me}))?\\b`},{match:`\\b0x(${de})(\\.(${de}))?([pP][+-]?(${me}))?\\b`},{match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},H=(fe="")=>({className:"subst",variants:[{match:n(/\\/,fe,/[0\\tnr"']/)},{match:n(/\\/,fe,/u\{[0-9a-fA-F]{1,8}\}/)}]}),K=(fe="")=>({className:"subst",match:n(/\\/,fe,/[\t ]*(?:[\r\n]|\r\n)/)}),j=(fe="")=>({className:"subst",label:"interpol",begin:n(/\\/,fe,/\(/),end:/\)/}),oe=(fe="")=>({begin:n(fe,/"""/),end:n(/"""/,fe),contains:[H(fe),K(fe),j(fe)]}),ue=(fe="")=>({begin:n(fe,/"/),end:n(/"/,fe),contains:[H(fe),j(fe)]}),p={className:"string",variants:[oe(),oe("#"),oe("##"),oe("###"),ue(),ue("#"),ue("##"),ue("###")]},g=[w.BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[w.BACKSLASH_ESCAPE]}],N={begin:/\/[^\s](?=[^/\n]*\/)/,end:/\//,contains:g},M=fe=>{const zt=n(fe,/\//),Mn=n(/\//,fe);return{begin:zt,end:Mn,contains:[...g,{scope:"comment",begin:`#(?!.*${Mn})`,end:/$/}]}},I={scope:"regexp",variants:[M("###"),M("##"),M("#"),N]},z={match:n(/`/,b,/`/)},L={className:"variable",match:/\$\d+/},q={className:"variable",match:`\\$${y}+`},F=[z,L,q],x={match:/(@|#(un)?)available/,scope:"keyword",starts:{contains:[{begin:/\(/,end:/\)/,keywords:T,contains:[...Re,A,p]}]}},V={scope:"keyword",match:n(/@/,s(...v))},Q={scope:"meta",match:n(/@/,b)},X=[x,V,Q],ee={match:t(/\b[A-Z]/),relevance:0,contains:[{className:"type",match:n(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/,y,"+")},{className:"type",match:E,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:n(/\s+&\s+/,t(E)),relevance:0}]},D={begin://,keywords:C,contains:[...G,...k,...X,pe,ee]};ee.contains.push(D);const W={match:n(b,/\s*:/),keywords:"_|0",relevance:0},Y={begin:/\(/,end:/\)/,relevance:0,keywords:C,contains:["self",W,...G,I,...k,...le,...Re,A,p,...F,...X,ee]},ne={begin://,keywords:"repeat each",contains:[...G,ee]},_e={begin:s(t(n(b,/\s*:/)),t(n(b,/\s+/,b,/\s*:/))),end:/:/,relevance:0,contains:[{className:"keyword",match:/\b_\b/},{className:"params",match:b}]},xe={begin:/\(/,end:/\)/,keywords:C,contains:[_e,...G,...k,...Re,A,p,...X,ee,Y],endsParent:!0,illegal:/["']/},ln={match:[/(func|macro)/,/\s+/,s(z.match,b,R)],className:{1:"keyword",3:"title.function"},contains:[ne,xe,O],illegal:[/\[/,/%/]},pt={match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:"keyword"},contains:[ne,xe,O],illegal:/\[|%/},lr={match:[/operator/,/\s+/,R],className:{1:"keyword",3:"title"}},Fe={begin:[/precedencegroup/,/\s+/,E],className:{1:"keyword",3:"title"},contains:[ee],keywords:[...f,...l],end:/}/};for(const fe of p.variants){const zt=fe.contains.find(fd=>fd.label==="interpol");zt.keywords=C;const Mn=[...k,...le,...Re,A,p,...F];zt.contains=[...Mn,{begin:/\(/,end:/\)/,contains:["self",...Mn]}]}return{name:"Swift",keywords:C,contains:[...G,ln,pt,{beginKeywords:"struct protocol class extension enum actor",end:"\\{",excludeEnd:!0,keywords:C,contains:[w.inherit(w.TITLE_MODE,{className:"title.class",begin:/[A-Za-z$_][\u00C0-\u02B80-9A-Za-z$_]*/}),...k]},lr,Fe,{beginKeywords:"import",end:/$/,contains:[...G],relevance:0},I,...k,...le,...Re,A,p,...F,...X,ee,Y]}}return Li=P,Li}var Pi,wl;function Zy(){if(wl)return Pi;wl=1;function e(t){const n="true false yes no null",r="[\\w#;/?:@&=+$,.~*'()[\\]]+",s={className:"attr",variants:[{begin:"\\w[\\w :\\/.-]*:(?=[ ]|$)"},{begin:'"\\w[\\w :\\/.-]*":(?=[ ]|$)'},{begin:"'\\w[\\w :\\/.-]*':(?=[ ]|$)"}]},i={className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},o={className:"string",relevance:0,variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/\S+/}],contains:[t.BACKSLASH_ESCAPE,i]},a=t.inherit(o,{variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),d={className:"number",begin:"\\b"+"[0-9]{4}(-[0-9][0-9]){0,2}"+"([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?"+"(\\.[0-9]*)?"+"([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?"+"\\b"},h={end:",",endsWithParent:!0,excludeEnd:!0,keywords:n,relevance:0},_={begin:/\{/,end:/\}/,contains:[h],illegal:"\\n",relevance:0},m={begin:"\\[",end:"\\]",contains:[h],illegal:"\\n",relevance:0},R=[s,{className:"meta",begin:"^---\\s*$",relevance:10},{className:"string",begin:"[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!\\w+!"+r},{className:"type",begin:"!<"+r+">"},{className:"type",begin:"!"+r},{className:"type",begin:"!!"+r},{className:"meta",begin:"&"+t.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+t.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",relevance:0},t.HASH_COMMENT_MODE,{beginKeywords:n,keywords:{literal:n}},d,{className:"number",begin:t.C_NUMBER_RE+"\\b",relevance:0},_,m,o],S=[...R];return S.pop(),S.push(a),h.contains=S,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:R}}return Pi=e,Pi}var Di,Sl;function Xy(){if(Sl)return Di;Sl=1;const e="[A-Za-z$_][0-9A-Za-z$_]*",t=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],n=["true","false","null","undefined","NaN","Infinity"],r=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],s=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],i=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],o=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],a=[].concat(i,r,s);function c(l){const f=l.regex,d=(H,{after:K})=>{const j="",end:""},m=/<[A-Za-z0-9\\._:-]+\s*\/>/,R={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(H,K)=>{const j=H[0].length+H.index,oe=H.input[j];if(oe==="<"||oe===","){K.ignoreMatch();return}oe===">"&&(d(H,{after:j})||K.ignoreMatch());let ue;const p=H.input.substring(j);if(ue=p.match(/^\s*=/)){K.ignoreMatch();return}if((ue=p.match(/^\s+extends\s+/))&&ue.index===0){K.ignoreMatch();return}}},S={$pattern:e,keyword:t,literal:n,built_in:a,"variable.language":o},y="[0-9](_?[0-9])*",b=`\\.(${y})`,E="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",v={className:"number",variants:[{begin:`(\\b(${E})((${b})|\\.)?|(${b}))[eE][+-]?(${y})\\b`},{begin:`\\b(${E})\\b((${b})\\b|\\.)?|(${b})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},T={className:"subst",begin:"\\$\\{",end:"\\}",keywords:S,contains:[]},P={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[l.BACKSLASH_ESCAPE,T],subLanguage:"xml"}},w={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[l.BACKSLASH_ESCAPE,T],subLanguage:"css"}},O={begin:"gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[l.BACKSLASH_ESCAPE,T],subLanguage:"graphql"}},B={className:"string",begin:"`",end:"`",contains:[l.BACKSLASH_ESCAPE,T]},U={className:"comment",variants:[l.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:h+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),l.C_BLOCK_COMMENT_MODE,l.C_LINE_COMMENT_MODE]},Z=[l.APOS_STRING_MODE,l.QUOTE_STRING_MODE,P,w,O,B,{match:/\$\d+/},v];T.contains=Z.concat({begin:/\{/,end:/\}/,keywords:S,contains:["self"].concat(Z)});const se=[].concat(U,T.contains),J=se.concat([{begin:/\(/,end:/\)/,keywords:S,contains:["self"].concat(se)}]),$={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:S,contains:J},C={variants:[{match:[/class/,/\s+/,h,/\s+/,/extends/,/\s+/,f.concat(h,"(",f.concat(/\./,h),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,h],scope:{1:"keyword",3:"title.class"}}]},k={relevance:0,match:f.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...r,...s]}},te={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},ae={variants:[{match:[/function/,/\s+/,h,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[$],illegal:/%/},le={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function pe(H){return f.concat("(?!",H.join("|"),")")}const Te={match:f.concat(/\b/,pe([...i,"super","import"]),h,f.lookahead(/\(/)),className:"title.function",relevance:0},Re={begin:f.concat(/\./,f.lookahead(f.concat(h,/(?![0-9A-Za-z$_(])/))),end:h,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},me={match:[/get|set/,/\s+/,h,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},$]},de="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+l.UNDERSCORE_IDENT_RE+")\\s*=>",A={match:[/const|var|let/,/\s+/,h,/\s*/,/=\s*/,/(async\s*)?/,f.lookahead(de)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[$]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:S,exports:{PARAMS_CONTAINS:J,CLASS_REFERENCE:k},illegal:/#(?![$_A-z])/,contains:[l.SHEBANG({label:"shebang",binary:"node",relevance:5}),te,l.APOS_STRING_MODE,l.QUOTE_STRING_MODE,P,w,O,B,U,{match:/\$\d+/},v,k,{className:"attr",begin:h+f.lookahead(":"),relevance:0},A,{begin:"("+l.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[U,l.REGEXP_MODE,{className:"function",begin:de,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:l.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:S,contains:J}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:_.begin,end:_.end},{match:m},{begin:R.begin,"on:begin":R.isTrulyOpeningTag,end:R.end}],subLanguage:"xml",contains:[{begin:R.begin,end:R.end,skip:!0,contains:["self"]}]}]},ae,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+l.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[$,l.inherit(l.TITLE_MODE,{begin:h,className:"title.function"})]},{match:/\.\.\./,relevance:0},Re,{match:"\\$"+h,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[$]},Te,le,C,me,{match:/\$[(.]/}]}}function u(l){const f=c(l),d=e,h=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],_={beginKeywords:"namespace",end:/\{/,excludeEnd:!0,contains:[f.exports.CLASS_REFERENCE]},m={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:h},contains:[f.exports.CLASS_REFERENCE]},R={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},S=["type","namespace","interface","public","private","protected","implements","declare","abstract","readonly","enum","override"],y={$pattern:e,keyword:t.concat(S),literal:n,built_in:a.concat(h),"variable.language":o},b={className:"meta",begin:"@"+d},E=(T,P,w)=>{const O=T.contains.findIndex(B=>B.label===P);if(O===-1)throw new Error("can not find mode to replace");T.contains.splice(O,1,w)};Object.assign(f.keywords,y),f.exports.PARAMS_CONTAINS.push(b),f.contains=f.contains.concat([b,_,m]),E(f,"shebang",l.SHEBANG()),E(f,"use_strict",R);const v=f.contains.find(T=>T.label==="func.def");return v.relevance=0,Object.assign(f,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),f}return Di=u,Di}var Bi,Tl;function Jy(){if(Tl)return Bi;Tl=1;function e(t){const n=t.regex,r={className:"string",begin:/"(""|[^/n])"C\b/},s={className:"string",begin:/"/,end:/"/,illegal:/\n/,contains:[{begin:/""/}]},i=/\d{1,2}\/\d{1,2}\/\d{4}/,o=/\d{4}-\d{1,2}-\d{1,2}/,a=/(\d|1[012])(:\d+){0,2} *(AM|PM)/,c=/\d{1,2}(:\d{1,2}){1,2}/,u={className:"literal",variants:[{begin:n.concat(/# */,n.either(o,i),/ *#/)},{begin:n.concat(/# */,c,/ *#/)},{begin:n.concat(/# */,a,/ *#/)},{begin:n.concat(/# */,n.either(o,i),/ +/,n.either(a,c),/ *#/)}]},l={className:"number",relevance:0,variants:[{begin:/\b\d[\d_]*((\.[\d_]+(E[+-]?[\d_]+)?)|(E[+-]?[\d_]+))[RFD@!#]?/},{begin:/\b\d[\d_]*((U?[SIL])|[%&])?/},{begin:/&H[\dA-F_]+((U?[SIL])|[%&])?/},{begin:/&O[0-7_]+((U?[SIL])|[%&])?/},{begin:/&B[01_]+((U?[SIL])|[%&])?/}]},f={className:"label",begin:/^\w+:/},d=t.COMMENT(/'''/,/$/,{contains:[{className:"doctag",begin:/<\/?/,end:/>/}]}),h=t.COMMENT(null,/$/,{variants:[{begin:/'/},{begin:/([\t ]|^)REM(?=\s)/}]});return{name:"Visual Basic .NET",aliases:["vb"],case_insensitive:!0,classNameAliases:{label:"symbol"},keywords:{keyword:"addhandler alias aggregate ansi as async assembly auto binary by byref byval call case catch class compare const continue custom declare default delegate dim distinct do each equals else elseif end enum erase error event exit explicit finally for friend from function get global goto group handles if implements imports in inherits interface into iterator join key let lib loop me mid module mustinherit mustoverride mybase myclass namespace narrowing new next notinheritable notoverridable of off on operator option optional order overloads overridable overrides paramarray partial preserve private property protected public raiseevent readonly redim removehandler resume return select set shadows shared skip static step stop structure strict sub synclock take text then throw to try unicode until using when where while widening with withevents writeonly yield",built_in:"addressof and andalso await directcast gettype getxmlnamespace is isfalse isnot istrue like mod nameof new not or orelse trycast typeof xor cbool cbyte cchar cdate cdbl cdec cint clng cobj csbyte cshort csng cstr cuint culng cushort",type:"boolean byte char date decimal double integer long object sbyte short single string uinteger ulong ushort",literal:"true false nothing"},illegal:"//|\\{|\\}|endif|gosub|variant|wend|^\\$ ",contains:[r,s,u,l,f,d,h,{className:"meta",begin:/[\t ]*#(const|disable|else|elseif|enable|end|externalsource|if|region)\b/,end:/$/,keywords:{keyword:"const disable else elseif enable end externalsource if region then"},contains:[h]}]}}return Bi=e,Bi}var Ui,Rl;function Qy(){if(Rl)return Ui;Rl=1;function e(t){t.regex;const n=t.COMMENT(/\(;/,/;\)/);n.contains.push("self");const r=t.COMMENT(/;;/,/$/),s=["anyfunc","block","br","br_if","br_table","call","call_indirect","data","drop","elem","else","end","export","func","global.get","global.set","local.get","local.set","local.tee","get_global","get_local","global","if","import","local","loop","memory","memory.grow","memory.size","module","mut","nop","offset","param","result","return","select","set_global","set_local","start","table","tee_local","then","type","unreachable"],i={begin:[/(?:func|call|call_indirect)/,/\s+/,/\$[^\s)]+/],className:{1:"keyword",3:"title.function"}},o={className:"variable",begin:/\$[\w_]+/},a={match:/(\((?!;)|\))+/,className:"punctuation",relevance:0},c={className:"number",relevance:0,match:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/},u={match:/(i32|i64|f32|f64)(?!\.)/,className:"type"},l={className:"keyword",match:/\b(f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|nearest|neg?|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|store(?:8|16|32)?|sqrt|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))\b/};return{name:"WebAssembly",keywords:{$pattern:/[\w.]+/,keyword:s},contains:[r,n,{match:[/(?:offset|align)/,/\s*/,/=/],className:{1:"keyword",3:"operator"}},o,a,i,t.QUOTE_STRING_MODE,u,l,c]}}return Ui=e,Ui}var ce=ud;ce.registerLanguage("xml",my());ce.registerLanguage("bash",Ey());ce.registerLanguage("c",yy());ce.registerLanguage("cpp",vy());ce.registerLanguage("csharp",wy());ce.registerLanguage("css",Sy());ce.registerLanguage("markdown",Ty());ce.registerLanguage("diff",Ry());ce.registerLanguage("ruby",Ny());ce.registerLanguage("go",Cy());ce.registerLanguage("graphql",Oy());ce.registerLanguage("ini",Ay());ce.registerLanguage("java",ky());ce.registerLanguage("javascript",My());ce.registerLanguage("json",xy());ce.registerLanguage("kotlin",Iy());ce.registerLanguage("less",Ly());ce.registerLanguage("lua",Py());ce.registerLanguage("makefile",Dy());ce.registerLanguage("perl",By());ce.registerLanguage("objectivec",Uy());ce.registerLanguage("php",Fy());ce.registerLanguage("php-template",$y());ce.registerLanguage("plaintext",Hy());ce.registerLanguage("python",Ky());ce.registerLanguage("python-repl",zy());ce.registerLanguage("r",qy());ce.registerLanguage("rust",Wy());ce.registerLanguage("scss",Gy());ce.registerLanguage("shell",jy());ce.registerLanguage("sql",Vy());ce.registerLanguage("swift",Yy());ce.registerLanguage("yaml",Zy());ce.registerLanguage("typescript",Xy());ce.registerLanguage("vbnet",Jy());ce.registerLanguage("wasm",Qy());ce.HighlightJS=ce;ce.default=ce;const ev=yt({__name:"app",setup(e){return(t,n)=>{const r=yE,s=Xf;return ut(),_t(s,null,{default:Jr(()=>[Le(r)]),_:1})}}}),tv=e=>(sh("data-v-fd26d349"),e=e(),ih(),e),nv=tv(()=>Rn("h1",{class:"error__title"},[Ur(" 404 "),Rn("br"),Ur(" Page not found ")],-1)),rv=yt({__name:"error",setup(e){const t=()=>uf({redirect:"/"});return(n,r)=>{const s=Xf;return ut(),_t(s,null,{default:Jr(()=>[Rn("div",{class:"error"},[nv,Rn("button",{class:"error__go-to-home",onClick:t},"Go to home")])]),_:1})}}}),sv=(e,t)=>{const n=e.__vccOpts||e;for(const[r,s]of t)n[r]=s;return n},iv=sv(rv,[["__scopeId","data-v-fd26d349"]]),Nl={__name:"nuxt-root",setup(e){const t=()=>null,n=ve(),r=n.deferHydration();if(n.isHydrating){const a=n.hooks.hookOnce("app:error",r);at().beforeEach(a)}const s=!1;en(or,os()),n.hooks.callHookWith(a=>a.map(c=>c()),"vue:setup");const i=as();mu((a,c,u)=>{if(n.hooks.callHook("vue:error",a,c,u).catch(l=>console.error("[nuxt] Error in `vue:error` hook",l)),n_(a)&&(a.fatal||a.unhandled))return n.runWithContext(()=>hn(a)),!1});const o=!1;return(a,c)=>(ut(),_t($o,{onResolve:Ce(r)},{default:Jr(()=>[Ce(i)?(ut(),_t(Ce(iv),{key:0,error:Ce(i)},null,8,["error"])):Ce(o)?(ut(),_t(Ce(t),{key:1,context:Ce(o)},null,8,["context"])):Ce(s)?(ut(),_t(uh(Ce(s)),{key:2})):(ut(),_t(Ce(ev),{key:3}))]),_:1},8,["onResolve"]))}};let Cl;{let e;Cl=async function(){var o,a;if(e)return e;const r=!!((o=window.__NUXT__)!=null&&o.serverRendered||((a=document.getElementById("__NUXT_DATA__"))==null?void 0:a.dataset.ssr)==="true")?Bp(Nl):Dp(Nl),s=zg({vueApp:r});async function i(c){await s.callHook("app:error",c),s.payload.error=s.payload.error||cs(c)}r.config.errorHandler=i;try{await Wg(s,mE)}catch(c){i(c)}try{await s.hooks.callHook("app:created",r),await s.hooks.callHook("app:beforeMount",r),r.mount(X_),await s.hooks.callHook("app:mounted",r),await on()}catch(c){i(c)}return r.config.errorHandler===i&&(r.config.errorHandler=void 0),r},e=Cl().catch(t=>{throw console.error("Error while mounting app:",t),t})}export{ts as $,qo as A,dv as B,Et as C,Ze as D,Em as E,qe as F,qf as G,ft as H,on as I,Bu as J,uh as K,Rv as L,en as M,Zd as N,Jt as O,Oh as P,uv as Q,ei as R,bv as S,Ue as T,vv as U,jn as V,tu as W,bu as X,Nd as Y,cs as Z,sv as _,pv as a,Bl as a0,av as a1,wv as a2,Ev as a3,lv as a4,Nh as a5,Rh as a6,lo as a7,Gf as a8,an as a9,Lf as aa,Mc as ab,Sv as ac,cv as ad,Xo as ae,is as af,eg as ag,yv as ah,ea as ai,no as aj,Zo as ak,ym as al,Tv as am,Nv as an,gv as ao,sE as ap,Rn as b,Ve as c,yt as d,Ur as e,Le as f,_v as g,_t as h,ih as i,os as j,at as k,$t as l,zo as m,ve as n,ut as o,sh as p,Ro as q,fv as r,No as s,ov as t,Ce as u,mv as v,Jr as w,iE as x,hv as y,nc as z}; diff --git a/resources/frontend/_nuxt/use-formats.c79ce0bd.js b/resources/frontend/_nuxt/CF6J2D0o.js similarity index 100% rename from resources/frontend/_nuxt/use-formats.c79ce0bd.js rename to resources/frontend/_nuxt/CF6J2D0o.js diff --git a/resources/frontend/_nuxt/CK35f-W6.js b/resources/frontend/_nuxt/CK35f-W6.js new file mode 100644 index 00000000..26d68f3c --- /dev/null +++ b/resources/frontend/_nuxt/CK35f-W6.js @@ -0,0 +1 @@ +import{V as C,T as V,a as x,u as Y,_ as q}from"./Cuqdu9nB.js";import{m as F}from"./B_g6P6pq.js";import"./BefdN0MI.js";import{d as I,c as b,o,a as l,b as e,t as p,f as n,u as d,w as r,F as g,r as S,h as B,e as _,g as k,p as T,i as w,_ as R,j as L,k as M,l as E,m as P,n as U}from"./BqbMuE7y.js";import{u as j}from"./DU45Wy3H.js";import"./BBk2F9bR.js";import{u as A,P as z}from"./k1uqWTyJ.js";import{u as J}from"./DUf8yZCu.js";const N=s=>(T("data-v-d3187994"),s=s(),w(),s),X={ref:"main",class:"var-dump"},G={class:"var-dump__in"},K={class:"var-dump__header"},O={class:"var-dump__header-title"},Q={class:"var-dump__header-meta"},W={class:"var-dump__header-date"},Z={class:"var-dump__body"},ee={class:"var-dump__body"},te=N(()=>e("h3",{class:"var-dump__body-text"},"Source",-1)),se={class:"var-dump__body"},ae=N(()=>e("h3",{class:"var-dump__body-text"},"Request",-1)),oe=I({__name:"var-dump-page",props:{event:{}},setup(s){const i=s,m=b(()=>{const t=String(i.event.payload.payload.type||"Unknown type");return t[0].toUpperCase()+t.slice(1)}),v=b(()=>F(i.event.date).format("DD.MM.YYYY HH:mm:ss"));return(t,c)=>(o(),l("div",X,[e("main",G,[e("header",K,[e("h2",O,p(m.value),1),e("div",Q,[e("span",W,p(v.value),1)])]),e("section",Z,[n(d(C),{value:t.event.payload.payload.value,type:t.event.payload.payload.type},null,8,["value","type"])]),e("section",ee,[te,n(d(V),{class:"var-dump__body-table"},{default:r(()=>[(o(!0),l(g,null,S(t.event.payload.context.source,(u,a)=>(o(),B(d(x),{key:a,title:String(a)},{default:r(()=>[_(p(u),1)]),_:2},1032,["title"]))),128))]),_:1})]),e("section",se,[ae,n(d(V),{class:"var-dump__body-table"},{default:r(()=>[(o(!0),l(g,null,S(t.event.payload.context.request,(u,a)=>(o(),l(g,{key:a},[a&&u?(o(),B(d(x),{key:0,title:String(a)},{default:r(()=>[_(p(u),1)]),_:2},1032,["title"])):k("",!0)],64))),128))]),_:1})])])],512))}}),ne=R(oe,[["__scopeId","data-v-d3187994"]]),$=s=>(T("data-v-e4def71d"),s=s(),w(),s),de={class:"var-dump"},re={key:0,class:"var-dump__loading"},ue=$(()=>e("div",null,null,-1)),_e=$(()=>e("div",null,null,-1)),le=$(()=>e("div",null,null,-1)),ce=[ue,_e,le],pe={key:1,class:"var-dump__body"},ie=I({__name:"[id]",setup(s){const{normalizeVarDumpEvent:i}=J(),{params:m}=L(),{$authToken:v}=U(),t=M(),c=m.id;A({title:`Var Dump > ${c} | Buggregator`});const{events:u}=Y(),a=E(!1),h=E(null),y=b(()=>h.value?i(h.value):null),H=()=>{u.removeById(c),t.push("/")};return P(async()=>{a.value=!0,await j(u.getUrl(c),{headers:{"X-Auth-Token":v.token||""},onResponse({response:{_data:D}}){h.value=D,a.value=!1},onResponseError(){t.push("/404")},onRequestError(){t.push("/404")}},"$i8c5JT9Tj0")}),(D,ve)=>{const f=q;return o(),l("main",de,[n(d(z),{class:"var-dump__head","button-title":"Delete event",onDelete:H},{default:r(()=>[n(f,{to:"/"},{default:r(()=>[_("Home")]),_:1}),_(" /  "),n(f,{to:"/var-dump"},{default:r(()=>[_("Var Dump")]),_:1}),_(" /  "),n(f,{disabled:!0},{default:r(()=>[_(p(d(c)),1)]),_:1})]),_:1}),a.value&&!y.value?(o(),l("div",re,ce)):k("",!0),y.value?(o(),l("div",pe,[n(d(ne),{event:y.value},null,8,["event"])])):k("",!0)])}}}),Ve=R(ie,[["__scopeId","data-v-e4def71d"]]);export{Ve as default}; diff --git a/resources/frontend/_nuxt/CKX8kQhS.js b/resources/frontend/_nuxt/CKX8kQhS.js new file mode 100644 index 00000000..688fbeb9 --- /dev/null +++ b/resources/frontend/_nuxt/CKX8kQhS.js @@ -0,0 +1 @@ +import{u as m}from"./CF6J2D0o.js";import{d as p,c as s,o as h,a as r,b as e,t as o,R as d,p as l,i as f,_ as L}from"./BqbMuE7y.js";import"./BefdN0MI.js";const u=t=>(l("data-v-7a0fc3e1"),t=t(),f(),t),v=["href"],w=u(()=>e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 50 50",width:"25px",height:"25px"},[e("path",{d:"M 7 2 L 7 48 L 43 48 L 43 14.59375 L 42.71875 14.28125 L 30.71875 2.28125 L 30.40625 2 Z M 9 4 L 29 4 L 29 16 L 41 16 L 41 46 L 9 46 Z M 31 5.4375 L 39.5625 14 L 31 14 Z"})],-1)),I={class:"file-attachment__meta"},g={class:"file-attachment__name"},x={class:"file-attachment__size"},S=p({__name:"file-attachment",props:{eventId:{},attachment:{}},setup(t){const{formatFileSize:c}=m(),a=t,n=s(()=>c(a.attachment.size||0)),i=s(()=>`${d}/api/smtp/${a.eventId}/attachments/${a.attachment.uuid}`);return(_,z)=>(h(),r("a",{href:i.value,target:"_blank",class:"file-attachment"},[w,e("div",I,[e("div",g,o(_.attachment.name),1),e("div",x,"("+o(n.value)+")",1)])],8,v))}}),M=L(S,[["__scopeId","data-v-7a0fc3e1"]]);export{M as F}; diff --git a/resources/frontend/_nuxt/Cduf3Gc_.js b/resources/frontend/_nuxt/Cduf3Gc_.js new file mode 100644 index 00000000..a8ea69d6 --- /dev/null +++ b/resources/frontend/_nuxt/Cduf3Gc_.js @@ -0,0 +1 @@ +import{h as _,E as c}from"./BefdN0MI.js";import{d,c as n,o as m,a as l,b as t,t as a,p as h,i as u,_ as b}from"./BqbMuE7y.js";import"./Cuqdu9nB.js";const e=s=>(h("data-v-41533833"),s=s(),u(),s),I={class:"inspector-stat-board"},S={class:"inspector-stat-board__item"},v=e(()=>t("h4",{class:"inspector-stat-board__item-name"},"Timestamp",-1)),E={class:"inspector-stat-board__item-value"},f={class:"inspector-stat-board__item"},g=e(()=>t("h4",{class:"inspector-stat-board__item-name"},"Duration",-1)),y={class:"inspector-stat-board__item-value"},N={class:"inspector-stat-board__item"},T=e(()=>t("h4",{class:"inspector-stat-board__item-name"},"Result",-1)),B={class:"inspector-stat-board__item-value"},C=d({__name:"inspector-stat-board",props:{transaction:{}},setup(s){const o=s,i=n(()=>_(o.transaction.timestamp).toLocaleString()),r=n(()=>(o.transaction.result||"success").toUpperCase());return(p,R)=>(m(),l("section",I,[t("div",S,[v,t("strong",E,a(i.value),1)]),t("div",f,[g,t("strong",y,a(p.transaction.duration)+" ms ",1)]),t("div",N,[T,t("span",B,a(r.value),1)])]))}}),x=b(C,[["__scopeId","data-v-41533833"]]),D=s=>{const o=s.payload[0];return{id:s.uuid,type:c.INSPECTOR,labels:[c.INSPECTOR],origin:{name:o.host.hostname,ip:o.host.ip,os:o.host.os},serverName:o.host.hostname,date:s.timestamp?new Date(s.timestamp*1e3):null,payload:s.payload}},O=()=>({normalizeInspectorEvent:D});export{x as I,O as u}; diff --git a/resources/frontend/_nuxt/Ci77yoCC.js b/resources/frontend/_nuxt/Ci77yoCC.js new file mode 100644 index 00000000..f1f3eb8d --- /dev/null +++ b/resources/frontend/_nuxt/Ci77yoCC.js @@ -0,0 +1 @@ +import{d,v as p,x as g,y as u,o as f,a as m,b as o,f as n,u as c,e as h,z as i,R as b,p as k,i as v,n as x,_ as S}from"./BqbMuE7y.js";import{u as y,I as r}from"./BefdN0MI.js";const e=t=>(k("data-v-672d583f"),t=t(),v(),t),I={class:"login-page"},w={class:"login-form-container"},A={class:"login-form"},B={class:"login-form-left-block"},C=e(()=>o("h1",{class:"login-form--title"},"Welcome Back",-1)),N=e(()=>o("p",{class:"pb-2 text-center text-sm text-gray-800"}," Let's get you signed in. ",-1)),L=e(()=>o("div",{class:"login-form-right-block",style:{background:"url('/bg.jpg')","background-size":"cover","background-position":"center center"}},null,-1)),P=d({__name:"login",async setup(t){let s,a;y(),p("blank");const l=x();g().isAuthenticated&&([s,a]=u(()=>i("/")),await s,a());const _=async()=>{await i(`${b}/${l.$appSettings.auth.login_url}`,{external:!0})};return(T,V)=>(f(),m("div",I,[o("div",w,[n(c(r),{class:"login-form--logo",name:"logo"}),o("div",A,[o("div",B,[C,N,o("button",{class:"login-form--button",onClick:_},[n(c(r),{class:"w-6",name:"lock",fill:"currentcolor"}),h(" Continue to SSO ")])]),L])])]))}}),E=S(P,[["__scopeId","data-v-672d583f"]]);export{E as default}; diff --git a/resources/frontend/_nuxt/Cnzz4dJo.js b/resources/frontend/_nuxt/Cnzz4dJo.js new file mode 100644 index 00000000..88d1ccf9 --- /dev/null +++ b/resources/frontend/_nuxt/Cnzz4dJo.js @@ -0,0 +1 @@ +import{_ as o}from"./Dp5Hh4Yf.js";import{P as r}from"./BefdN0MI.js";import{d as p,o as m,h as e,u as t}from"./BqbMuE7y.js";import"./Cuqdu9nB.js";import"./B3ev0iw2.js";import"./Cduf3Gc_.js";import"./DdKTkMGq.js";import"./CF6J2D0o.js";import"./DAR3qIk9.js";import"./BCrvxhm1.js";import"./BnFX9pPB.js";import"./DUf8yZCu.js";import"./k1uqWTyJ.js";const A=p({__name:"index",setup(i){return(a,n)=>(m(),e(t(o),{type:t(r).ALL_EVENTS,title:""},null,8,["type"]))}});export{A as default}; diff --git a/resources/frontend/_nuxt/Cuqdu9nB.js b/resources/frontend/_nuxt/Cuqdu9nB.js new file mode 100644 index 00000000..9f674924 --- /dev/null +++ b/resources/frontend/_nuxt/Cuqdu9nB.js @@ -0,0 +1,2 @@ +var $t=Object.defineProperty;var Ct=(e,t,n)=>t in e?$t(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Ce=(e,t,n)=>(Ct(e,typeof t!="symbol"?t+"":t,n),n);import{k as et,d as T,c as M,a9 as tt,l as V,m as nt,aa as wt,ab as St,A as xt,ac as Et,D as oe,ad as It,ae as At,af as Tt,ag as Nt,ah as kt,ai as Lt,n as ce,z as Pt,aj as Ot,ak as Mt,R as Bt,al as Rt,am as qt,o as p,a as $,b as f,t as C,B as Ie,_ as O,L as le,E as at,O as Dt,an as we,f as A,u as h,e as P,s as K,h as R,g as H,w as k,F as ue,r as de,p as pe,i as fe}from"./BqbMuE7y.js";import{g as rt,a as Ht,i as st,j as it,c as ve,I as Q,b as ot,f as lt}from"./BefdN0MI.js";async function ct(e,t=et()){const{path:n,matched:a}=t.resolve(e);if(!a.length||(t._routePreloaded||(t._routePreloaded=new Set),t._routePreloaded.has(n)))return;const r=t._preloadPromises=t._preloadPromises||[];if(r.length>4)return Promise.all(r).then(()=>ct(e,t));t._routePreloaded.add(n);const s=a.map(l=>{var o;return(o=l.components)==null?void 0:o.default}).filter(l=>typeof l=="function");for(const l of s){const o=Promise.resolve(l()).catch(()=>{}).finally(()=>r.splice(r.indexOf(o)));r.push(o)}await Promise.all(r)}const Ft=(...e)=>e.find(t=>t!==void 0);function jt(e){const t=e.componentName||"NuxtLink";function n(a,r){if(!a||e.trailingSlash!=="append"&&e.trailingSlash!=="remove")return a;if(typeof a=="string")return qe(a,e.trailingSlash);const s="path"in a&&a.path!==void 0?a.path:r(a).path;return{...a,name:void 0,path:qe(s,e.trailingSlash)}}return T({name:t,props:{to:{type:[String,Object],default:void 0,required:!1},href:{type:[String,Object],default:void 0,required:!1},target:{type:String,default:void 0,required:!1},rel:{type:String,default:void 0,required:!1},noRel:{type:Boolean,default:void 0,required:!1},prefetch:{type:Boolean,default:void 0,required:!1},noPrefetch:{type:Boolean,default:void 0,required:!1},activeClass:{type:String,default:void 0,required:!1},exactActiveClass:{type:String,default:void 0,required:!1},prefetchedClass:{type:String,default:void 0,required:!1},replace:{type:Boolean,default:void 0,required:!1},ariaCurrentValue:{type:String,default:void 0,required:!1},external:{type:Boolean,default:void 0,required:!1},custom:{type:Boolean,default:void 0,required:!1}},setup(a,{slots:r}){const s=et(),l=Lt(),o=M(()=>{const c=a.to||a.href||"";return n(c,s.resolve)}),x=M(()=>typeof o.value=="string"&&tt(o.value,{acceptRelative:!0})),L=M(()=>a.target&&a.target!=="_self"),v=M(()=>a.external||L.value?!0:typeof o.value=="object"?!1:o.value===""||x.value),E=V(!1),q=V(null),u=c=>{var _;q.value=a.custom?(_=c==null?void 0:c.$el)==null?void 0:_.nextElementSibling:c==null?void 0:c.$el};if(a.prefetch!==!1&&a.noPrefetch!==!0&&a.target!=="_blank"&&!Ut()){const _=ce();let d,i=null;nt(()=>{const S=zt();wt(()=>{d=St(()=>{var b;(b=q==null?void 0:q.value)!=null&&b.tagName&&(i=S.observe(q.value,async()=>{i==null||i(),i=null;const g=typeof o.value=="string"?o.value:s.resolve(o.value).fullPath;await Promise.all([_.hooks.callHook("link:prefetch",g).catch(()=>{}),!v.value&&ct(o.value,s).catch(()=>{})]),E.value=!0}))})})}),xt(()=>{d&&Et(d),i==null||i(),i=null})}return()=>{var i,S;if(!v.value){const b={ref:u,to:o.value,activeClass:a.activeClass||e.activeClass,exactActiveClass:a.exactActiveClass||e.exactActiveClass,replace:a.replace,ariaCurrentValue:a.ariaCurrentValue,custom:a.custom};return a.custom||(E.value&&(b.class=a.prefetchedClass||e.prefetchedClass),b.rel=a.rel||void 0),oe(It("RouterLink"),b,r.default)}const c=typeof o.value=="object"?((i=s.resolve(o.value))==null?void 0:i.href)??null:o.value&&!a.external&&!x.value?n(At(l.app.baseURL,o.value),s.resolve):o.value||null,_=a.target||null,d=Ft(a.noRel?"":a.rel,e.externalRelAttribute,x.value||L.value?"noopener noreferrer":"")||null;if(a.custom){if(!r.default)return null;const b=()=>Pt(c,{replace:a.replace,external:a.external});return r.default({href:c,navigate:b,get route(){if(!c)return;const g=Tt(c);return{path:g.pathname,fullPath:g.pathname,get query(){return Nt(g.search)},hash:g.hash,params:{},name:void 0,matched:[],redirectedFrom:void 0,meta:{},href:c}},rel:d,target:_,isExternal:v.value,isActive:!1,isExactActive:!1})}return oe("a",{ref:q,href:c,rel:d,target:_},(S=r.default)==null?void 0:S.call(r))}}})}const Xl=jt(kt);function qe(e,t){const n=t==="append"?Ot:Mt;return tt(e)&&!e.startsWith("http")?e:n(e,!0)}function zt(){const e=ce();if(e._observer)return e._observer;let t=null;const n=new Map,a=(s,l)=>(t||(t=new IntersectionObserver(o=>{for(const x of o){const L=n.get(x.target);(x.isIntersecting||x.intersectionRatio>0)&&L&&L()}})),n.set(s,l),t.observe(s),()=>{n.delete(s),t.unobserve(s),n.size===0&&(t.disconnect(),t=null)});return e._observer={observe:a}}function Ut(){const e=navigator.connection;return!!(e&&(e.saveData||/2g/.test(e.effectiveType)))}const Gt=()=>{const e=ce(),{token:t}=e.$authToken??{token:null},n={"X-Auth-Token":t||""},a=v=>`${Bt}/api/event${v?`/${v}`:"s"}`;return{getAll:()=>fetch(a(),{headers:n}).then(v=>v.json()).then(v=>v!=null&&v.data?v.data:(v==null?void 0:v.code)===403?(console.error("Forbidden"),[]):(console.error("Fetch Error"),[])).then(v=>v),getSingle:v=>fetch(a(v),{headers:n}).then(E=>E.json()).then(E=>E!=null&&E.data?E.data:null),deleteAll:()=>fetch(a(),{method:"DELETE",headers:n}).catch(v=>{console.error("Fetch Error",v)}),deleteList:v=>fetch(a(),{method:"DELETE",headers:n,body:JSON.stringify({uuids:v})}).catch(E=>{console.error("Fetch Error",E)}),deleteSingle:v=>fetch(a(v),{method:"DELETE",headers:n}).catch(E=>{console.error("Fetch Error",E)}),deleteByType:v=>fetch(a(),{method:"DELETE",headers:n,body:JSON.stringify({type:v})}).catch(E=>{console.error("Fetch Error",E)}),getEventRestUrl:a}};var Kt={BASE_URL:"./",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const Vt=Kt.VITE_APP_MODE==="production",ie=e=>{Vt||console.info(`[ApiConnection logger]:Centrifuge "${e[0]}" called with params: "${JSON.stringify(e[1])}"`)},X=class X{constructor(){Ce(this,"centrifuge");this.centrifuge=new Rt.Centrifuge(qt),this.centrifuge.on("connected",t=>{ie(["connected",t])}),this.centrifuge.on("publication",t=>{ie(["publication",t])}),this.centrifuge.on("disconnected",t=>{ie(["disconnected",t])}),this.centrifuge.on("error",t=>{ie(["error",t])}),this.centrifuge.connect()}static getInstance(){return X.instance||(X.instance=new X),X.instance}getCentrifuge(){return this.centrifuge}};Ce(X,"instance");let xe=X;const Jt=()=>({centrifuge:xe.getInstance().getCentrifuge()}),Wt={class:"table-base-row"},Xt={class:"table-base-row__name"},Qt={class:"table-base-row__value"},Zt=T({__name:"table-base-row",props:{title:{default:""}},setup(e){return(t,n)=>(p(),$("div",Wt,[f("div",Xt,[f("span",null,C(t.title),1)]),f("div",Qt,[Ie(t.$slots,"default",{},void 0,!0)])]))}}),D=O(Zt,[["__scopeId","data-v-b5564202"]]),Yt={},en={class:"table-base"};function tn(e,t){return p(),$("div",en,[Ie(e.$slots,"default",{},void 0,!0)])}const re=O(Yt,[["render",tn],["__scopeId","data-v-257cf523"]]);let De=!1;const ut=()=>{const e=ce(),{token:t}=e.$authToken??{token:null},{centrifuge:n}=Jt(),a=rt(),r=Ht(),{getAll:s,getSingle:l,deleteAll:o,deleteList:x,deleteSingle:L,deleteByType:v,getEventRestUrl:E}=Gt(),q=()=>r.isConnectedWS;De||((()=>{n.on("connected",()=>{r.addWSConnection()}),n.on("disconnected",()=>{r.removeWSConnection()}),n.on("error",()=>{r.removeWSConnection()}),n.on("message",()=>{r.addWSConnection()}),n.on("publication",g=>{var ne,F;if(g.channel==="events"&&((ne=g.data)==null?void 0:ne.event)==="event.received"){const I=((F=g==null?void 0:g.data)==null?void 0:F.data)||null;a.addList([I])}})})(),De=!0);const c=g=>q()?n.rpc(`delete:api/event/${g}`,{token:t}):L(g);return{getEventsAll:s,getEvent:l,deleteEvent:c,deleteEventsAll:()=>q()?n.rpc("delete:api/events",{token:t}):o(),deleteEventsList:g=>g.length?g.length===1?c(g[0]):q()?n.rpc("delete:api/events",{uuids:g,token:t}):x(g):Promise.resolve(),deleteEventsByType:g=>q()?n.rpc("delete:api/events",{type:g,token:t}):v(g),rayStopExecution:g=>{n.rpc(`post:api/ray/locks/${g}`,{stop_execution:!0,token:t})},rayContinueExecution:g=>{n.rpc(`post:api/ray/locks/${g}`,{token:t})},getUrl:E}},nn=e=>({id:e.uuid,type:"unknown",labels:[e.type],origin:null,serverName:"",date:e.timestamp?new Date(e.timestamp*1e3):null,payload:e.payload}),an=()=>{const e=rt(),t=st(),n=it(),{lockedIds:a}=le(n),{events:r}=le(e),{deleteEventsAll:s,deleteEventsList:l,deleteEventsByType:o,getEventsAll:x,getEvent:L,getUrl:v}=ut(),E=async d=>{await l(d)&&(e.removeByIds(d),t.removeByIds(d))};return{items:r,getItem:L,getUrl:v,getAll:()=>{x().then(d=>{d.length?(e.initialize(d),t.syncWithActive(d.map(({uuid:i})=>i))):(e.removeAll(),t.removeAll())}).catch(d=>{console.error("getAll err",d)})},removeAll:async()=>{if(a.value.length){const i=r.value.filter(({uuid:S})=>!a.value.includes(S)).map(({uuid:S})=>S);await E(i);return}await s()&&(e.removeAll(),t.removeAll())},removeByType:async d=>{if(a.value.length){const S=r.value.filter(({type:b,uuid:g})=>b===d&&!a.value.includes(g)).map(({uuid:b})=>b);await E(S);return}await o(d)&&(e.removeByType(d),t.removeByType(d))},removeById:async d=>{await E([d])}}},rn=()=>{const e=st(),t=it(),{rayContinueExecution:n,rayStopExecution:a}=ut(),{cachedIds:r}=le(e),{lockedIds:s}=le(t);return{normalizeUnknownEvent:nn,events:an(),cachedEvents:{idsByType:r,stopUpdatesByType:e.setByType,runUpdatesByType:e.removeByType},lockedIds:{items:s,add:t.add,remove:t.remove},rayExecution:{continue:n,stop:a}}};var sn=Array.isArray,Z=sn;function on(e){return e!=null&&typeof e=="object"}var he=on,ln=ve,cn=Z,un=he,dn="[object String]";function pn(e){return typeof e=="string"||!cn(e)&&un(e)&&ln(e)==dn}var fn=pn;const Ee=at(fn);function vn(e){let t=e.createElement("style"),n=/([.*+?^${}()|\[\]\/\\])/g,a=/\bsf-dump-\d+-ref[012]\w+\b/,r=0<=navigator.platform.toUpperCase().indexOf("MAC")?"Cmd":"Ctrl",s=function(u,c,_){u.addEventListener(c,_,!1)};t.innerHTML="pre.sf-dump .sf-dump-compact, .sf-dump-str-collapse .sf-dump-str-collapse, .sf-dump-str-expand .sf-dump-str-expand { display: none; }",(e.documentElement.firstElementChild||e.documentElement.children[0]).appendChild(t),t=e.createElement("style"),(e.documentElement.firstElementChild||e.documentElement.children[0]).appendChild(t),e.addEventListener||(s=function(u,c,_){u.attachEvent("on"+c,function(d){d.preventDefault=function(){d.returnValue=!1},d.target=d.srcElement,_(d)})});function l(u,c){var _=u.nextSibling||{},d=_.className,i,S;if(/\bsf-dump-compact\b/.test(d))i="▼",S="sf-dump-expanded";else if(/\bsf-dump-expanded\b/.test(d))i="▶",S="sf-dump-compact";else return!1;if(e.createEvent&&_.dispatchEvent){var b=e.createEvent("Event");b.initEvent(S==="sf-dump-expanded"?"sfbeforedumpexpand":"sfbeforedumpcollapse",!0,!1),_.dispatchEvent(b)}if(u.lastChild.innerHTML=i,_.className=_.className.replace(/\bsf-dump-(compact|expanded)\b/,S),c)try{for(u=_.querySelectorAll("."+d),_=0;_":"",I.className+=" sf-dump-toggle",c=1,i.parentNode.className!="sf-dump"&&(c+=i.parentNode.getAttribute("data-depth")/1);else if(/\bsf-dump-ref\b/.test(i.className)&&(I=i.getAttribute("href"))&&(I=I.substr(1),i.className+=" "+I,/[\[{]$/.test(i.previousSibling.nodeValue))){I=I!=i.nextSibling.id&&e.getElementById(I);try{g=I.nextSibling,i.appendChild(I),g.parentNode.insertBefore(I,g),/^[@#]/.test(i.innerHTML)?i.innerHTML+=" ":(i.innerHTML="",i.className="sf-dump-ref"),i.className+=" sf-dump-toggle"}catch{i.innerHTML.charAt(0)=="&"&&(i.innerHTML="…",i.className="sf-dump-ref")}}if(e.evaluate&&Array.from&&u.children.length>1){let w=function(m){var y=m.current(),N,z;y&&(v(y),E(u,y,m.nodes),"scrollIntoView"in y&&(y.scrollIntoView(!0),N=y.getBoundingClientRect(),z=j.getBoundingClientRect(),N.top0?this.idx-1:this.nodes.length-1,this.current())},isEmpty:function(){return this.count()===0},current:function(){return this.isEmpty()?null:this.nodes[this.idx]},reset:function(){this.nodes=[],this.idx=0},count:function(){return this.nodes.length}};var j=e.createElement("div");j.className="sf-dump-search-wrapper sf-dump-search-hidden",j.innerHTML=' 0 of 0 ',u.insertBefore(j,u.firstChild);var U=new Oe,ae=j.querySelector(".sf-dump-search-input"),Me=j.querySelector(".sf-dump-search-count"),Be=0,Re="";s(ae,"keyup",function(m){const y=m.target.value;y!==Re&&(Re=y,clearTimeout(Be),Be=setTimeout(function(){if(U.reset(),L(u),q(u),y===""){Me.textContent="0 of 0";return}const N=["sf-dump-str","sf-dump-key","sf-dump-public","sf-dump-protected","sf-dump-private"].map(bt).join(" or "),z=e.evaluate(".//span["+N+"][contains(translate(child::text(), "+$e(y.toUpperCase())+", "+$e(y.toLowerCase())+"), "+$e(y.toLowerCase())+")]",u,null,XPathResult.ORDERED_NODE_ITERATOR_TYPE,null);let G;for(;G=z.iterateNext();)U.nodes.push(G);w(U)},400))}),Array.from(j.querySelectorAll(".sf-dump-search-input-next, .sf-dump-search-input-previous")).forEach(function(m){s(m,"click",function(y){y.preventDefault(),y.target.className.indexOf("next")!==-1?U.next():U.previous(),ae.focus(),L(u),w(U)})}),s(u,"keydown",function(m){var y=!/\bsf-dump-search-hidden\b/.test(j.className);if(m.keyCode===114&&!y||se(m)&&m.keyCode===70){if(m.keyCode===70&&document.activeElement===ae)return;m.preventDefault(),j.className=j.className.replace(/\bsf-dump-search-hidden\b/,""),ae.focus()}else y&&(m.keyCode===27?(j.className+=" sf-dump-search-hidden",m.preventDefault(),q(u),ae.value=""):(se(m)&&m.keyCode===71||m.keyCode===13||m.keyCode===114)&&(m.preventDefault(),m.shiftKey?U.previous():U.next(),L(u),w(U)))})}if(!(0>=d.maxStringLength))try{for(i=u.querySelectorAll(".sf-dump-str"),S=i.length,b=0,F=[];b'+i.innerHTML+'')}catch{}}}var He=T({props:{code:{type:String,required:!0},language:{type:String,default:""},autodetect:{type:Boolean,default:!0},ignoreIllegals:{type:Boolean,default:!0}},setup:function(e){var t=V(e.language);Dt(function(){return e.language},function(r){t.value=r});var n=M(function(){return e.autodetect||!t.value}),a=M(function(){return!n.value&&!we.getLanguage(t.value)});return{className:M(function(){return a.value?"":"hljs "+t.value}),highlightedCode:M(function(){var r;if(a.value)return console.warn('The language "'+t.value+'" you specified could not be found.'),e.code.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'");if(n.value){var s=we.highlightAuto(e.code);return t.value=(r=s.language)!==null&&r!==void 0?r:"",s.value}return(s=we.highlight(e.code,{language:t.value,ignoreIllegals:e.ignoreIllegals})).value})}},render:function(){return oe("pre",{},[oe("code",{class:this.className,innerHTML:this.highlightedCode,tabindex:"0"})])}}),hn={install:function(e){e.component("highlightjs",He)},component:He};const _n={class:"code-snippet"},mn=T({__name:"code-snippet",props:{code:{default:""},language:{default:"plaintext"}},setup(e){const t=hn.component,n=e,a=V(!1),r=M(()=>Ee(n.code)?n.code:JSON.stringify(n.code,null," ")),s=()=>{a.value=!0,navigator.clipboard.writeText(r.value).then(()=>{setTimeout(()=>{a.value=!1},200)}).catch(l=>{console.error(l)})};return(l,o)=>(p(),$("div",_n,[A(h(t),{language:l.language,autodetect:!1,code:r.value},null,8,["language","code"]),f("button",{type:"button",class:K(["code-snippet__copy",{"code-snippet__copy--active":a.value}]),onClick:s},[A(h(Q),{name:"copy",class:"code-snippet__copy-icon"}),P(" Copy ")],2)]))}}),dt=O(mn,[["__scopeId","data-v-c3a92c06"]]),gn={class:"value-dump"},yn=["innerHTML"],bn=T({__name:"value-dump",props:{value:{type:[String,Number,Boolean]},type:{default:""},language:{default:"plaintext"}},setup(e){var l;const t=e,n=M(()=>Ee(t.value)&&t.type==="string"),a=M(()=>Ee(t.value)&&t.type==="code"),r=((l=String(t.value).match(/(sf-dump-[0-9]+)/i))==null?void 0:l[0])||null,s=M(()=>t.type==="boolean"?t.value==="1"?"true":"false":n.value?`"${t.value}"`:t.value);return nt(()=>{const o=vn(window.document);r&&o(r)}),(o,x)=>(p(),$("div",gn,[n.value||a.value?(p(),R(h(dt),{key:0,language:o.language,code:s.value},null,8,["language","code"])):H("",!0),!n.value&&!a.value?(p(),$("div",{key:1,class:"value-dump__html",innerHTML:s.value},null,8,yn)):H("",!0)]))}}),J=O(bn,[["__scopeId","data-v-5a304a03"]]);function Ql(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}function $n(){this.__data__=[],this.size=0}var Cn=$n;function wn(e,t){return e===t||e!==e&&t!==t}var pt=wn,Sn=pt;function xn(e,t){for(var n=e.length;n--;)if(Sn(e[n][0],t))return n;return-1}var _e=xn,En=_e,In=Array.prototype,An=In.splice;function Tn(e){var t=this.__data__,n=En(t,e);if(n<0)return!1;var a=t.length-1;return n==a?t.pop():An.call(t,n,1),--this.size,!0}var Nn=Tn,kn=_e;function Ln(e){var t=this.__data__,n=kn(t,e);return n<0?void 0:t[n][1]}var Pn=Ln,On=_e;function Mn(e){return On(this.__data__,e)>-1}var Bn=Mn,Rn=_e;function qn(e,t){var n=this.__data__,a=Rn(n,e);return a<0?(++this.size,n.push([e,t])):n[a][1]=t,this}var Dn=qn,Hn=Cn,Fn=Nn,jn=Pn,zn=Bn,Un=Dn;function Y(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t-1&&e%1==0&&e-1&&e%1==0&&e<=Yr}var ts=es;function ns(e,t){for(var n=-1,a=t.length,r=e.length;++n0&&n(o)?t>1?yt(o,t-1,n,a,r):hi(r,o):a||(r[r.length]=o)}return r}var mi=yt;function gi(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var yi=gi,bi=yi,Qe=Math.max;function $i(e,t,n){return t=Qe(t===void 0?e.length-1:t,0),function(){for(var a=arguments,r=-1,s=Qe(a.length-t,0),l=Array(s);++r0){if(++t>=Ii)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var ki=Ni,Li=Ei,Pi=ki,Oi=Pi(Li),Mi=Oi,Bi=mi;function Ri(e){var t=e==null?0:e.length;return t?Bi(e,1):[]}var qi=Ri,Di=Hr,Hi=ye,Fi=_t,Ye=Ae,ji=Le;function zi(e,t,n,a){if(!Ye(e))return e;t=Hi(t,e);for(var r=-1,s=t.length,l=s-1,o=e;o!=null&&++r(e.LOG="log",e.CUSTOM="custom",e.CALLER="caller",e.CARBON="carbon",e.EXCEPTION="exception",e.MEASURE="measure",e.NOTIFY="notify",e.MAILABLE="mailable",e.TABLE="table",e.TRACE="trace",e.QUERY="executed_query",e.APPLICATION_LOG="application_log",e.ELOQUENT="eloquent_model",e.VIEW="view",e.EVENT="event",e.JOB="job_event",e.LOCK="create_lock",e))(B||{});const co={class:"ray-application-log"},uo=T({__name:"ray-application-log",props:{content:{}},setup(e){return(t,n)=>(p(),$("pre",co,C(t.content.value),1))}}),po=O(uo,[["__scopeId","data-v-0d5b8c5b"]]),fo={class:"ray-carbon"},vo=T({__name:"ray-carbon",props:{carbon:{}},setup(e){return(t,n)=>(p(),$("div",fo,[A(h(re),null,{default:k(()=>[A(h(D),{title:"Formatted"},{default:k(()=>[P(C(t.carbon.formatted),1)]),_:1}),A(h(D),{title:"Timezone"},{default:k(()=>[P(C(t.carbon.timezone),1)]),_:1}),A(h(D),{title:"Timestamp"},{default:k(()=>[P(C(t.carbon.timestamp),1)]),_:1})]),_:1})]))}}),ho=O(vo,[["__scopeId","data-v-ccadd0cb"]]),_o={class:"ray-custom"},mo=T({__name:"ray-custom",props:{content:{}},setup(e){return(t,n)=>(p(),$("div",_o,[A(h(J),{value:t.content.content},null,8,["value"])]))}}),go={class:"ray-eloquent"},yo={class:"ray-eloquent__title"},bo={class:"ray-eloquent__title-in"},$o=T({__name:"ray-eloquent",props:{content:{}},setup(e){return(t,n)=>(p(),$("div",go,[f("h3",yo,[P(" Class name: "),f("code",bo,C(t.content.class_name),1)]),A(h(J),{value:t.content.attributes},null,8,["value"])]))}}),Co=O($o,[["__scopeId","data-v-199e8a0b"]]),wo={class:"ray-event"},So={class:"ray-event__text"},xo={class:"ray-event__text-in"},Eo=T({__name:"ray-event",props:{content:{}},setup(e){return(t,n)=>(p(),$("div",wo,[t.content.class_based_event?(p(),R(h(J),{key:0,value:t.content.event},null,8,["value"])):H("",!0),f("h3",So,[P(" Event: "),f("code",xo,C(t.content.name),1)]),t.content.payload?(p(),R(h(J),{key:1,value:String(t.content.payload)},null,8,["value"])):H("",!0)]))}}),Io=O(Eo,[["__scopeId","data-v-2779da1c"]]),Ao=e=>(pe("data-v-1b88b784"),e=e(),fe(),e),To={class:"ray-file__header"},No=["title"],ko=Ao(()=>f("span",{class:"ray-file__title-in"},"at line",-1)),Lo={class:"ray-file__title-in"},Po={key:0,class:"ray-file__body"},Oo={class:"ray-file__snippet-num"},Mo=T({__name:"ray-file",props:{file:{}},setup(e){const t=e,n=V(!0),a=M(()=>t.file.snippet?t.file.snippet.length>0:!1);return(r,s)=>(p(),$("div",{class:"ray-file",onClick:s[0]||(s[0]=l=>n.value=!n.value)},[f("div",To,[f("div",{class:"ray-file__title",title:r.file.file_name},[f("div",null,[P(C(r.file.class||"null")+":"+C(r.file.method)+" ",1),ko,P(" "+C(r.file.line_number),1)]),f("span",Lo,C(r.file.file_name),1)],8,No),a.value?(p(),R(h(Q),{key:0,class:K(["ray-file__icon",{"ray-file__icon--collapsed":n.value}]),name:"collapsed"},null,8,["class"])):H("",!0)]),a.value&&!n.value?(p(),$("div",Po,[(p(!0),$(ue,null,de(r.file.snippet,l=>(p(),$("div",{key:l.line_number,class:K(["ray-file__snippet",{"ray-file__snippet--highlight":r.file.line_number===l.line_number}])},[f("div",Oo,C(l.line_number)+".",1),f("pre",null,C(l.text),1)],2))),128))])):H("",!0)]))}}),Pe=O(Mo,[["__scopeId","data-v-1b88b784"]]),Bo={class:"ray-exception"},Ro={class:"ray-exception__header"},qo={class:"ray-exception__title"},Do={class:"ray-exception__title-code"},Ho={class:"ray-exception__files"},Fo=T({__name:"ray-exception",props:{exception:{}},setup(e){return(t,n)=>(p(),$("div",Bo,[f("header",Ro,[f("h3",qo,C(t.exception.class),1),f("div",Do,C(t.exception.message),1)]),f("div",Ho,[(p(!0),$(ue,null,de(t.exception.frames,(a,r)=>(p(),R(h(Pe),{key:r,file:a,collapsed:r!==0},null,8,["file","collapsed"]))),128))])]))}}),jo=O(Fo,[["__scopeId","data-v-8b994bb5"]]),zo=e=>(pe("data-v-ecd0d089"),e=e(),fe(),e),Uo={class:"ray-frame"},Go=zo(()=>f("h3",null,"Called from",-1)),Ko=["href"],Vo={class:"ray-frame__code"},Jo=T({__name:"ray-frame",props:{frame:{}},setup(e){const t=e,n=M(()=>`phpstorm://open?file=${encodeURIComponent(t.frame.file_name)}&line=${t.frame.line_number}`);return(a,r)=>(p(),$("div",Uo,[Go,f("a",{class:"ray-frame__name",href:n.value},[f("code",Vo,C(a.frame.class||"null")+":"+C(a.frame.method),1)],8,Ko)]))}}),Wo=O(Jo,[["__scopeId","data-v-ecd0d089"]]),Xo={class:"ray-job"},Qo=T({__name:"ray-job",props:{content:{}},setup(e){return(t,n)=>(p(),$("div",Xo,[A(h(J),{value:t.content.job},null,8,["value"])]))}}),Zo=O(Qo,[["__scopeId","data-v-da487a97"]]),be=e=>(pe("data-v-6ca44234"),e=e(),fe(),e),Yo={class:"ray-lock"},el=["disabled"],tl=be(()=>f("span",{class:"ray-lock__button-icon"},[f("svg",{xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 20 20"},[f("path",{fill:"green","fill-rule":"evenodd",d:"M16.75 10.83L4.55 19A1 1 0 0 1 3 18.13V1.87A1 1 0 0 1 4.55 1l12.2 8.13a1 1 0 0 1 0 1.7z"})])],-1)),nl=be(()=>f("span",null,"Continue",-1)),al=[tl,nl],rl=["disabled"],sl=be(()=>f("span",{class:"ray-lock__button-text"},null,-1)),il=be(()=>f("span",null,"Stop execution",-1)),ol=[sl,il],ll=T({__name:"ray-lock",props:{name:{}},setup(e){const t=e,n=V(!1),{rayExecution:a}=rn(),r=()=>{n.value=!0,a.continue(t.name)},s=()=>{n.value=!0,a.stop(t.name)};return(l,o)=>(p(),$("div",Yo,[f("button",{disabled:n.value,class:"ray-lock__button ray-lock__button--continue",onClick:r},al,8,el),f("button",{disabled:n.value,class:"ray-lock__button ray-lock__button--stop",onClick:s},ol,8,rl)]))}}),cl=O(ll,[["__scopeId","data-v-6ca44234"]]),ul={class:"ray-log"},dl=T({__name:"ray-log",props:{log:{}},setup(e){return(t,n)=>(p(),$("div",ul,[t.log?(p(),R(h(J),{key:0,value:String(t.log)},null,8,["value"])):H("",!0)]))}}),pl=O(dl,[["__scopeId","data-v-01326fa2"]]),fl={class:"smtp-page-preview"},vl={class:"smtp-page-preview__in"},hl={class:"smtp-page-preview__device-in"},_l=T({__name:"smtp-page-preview",props:{device:{default:"desktop"}},setup(e){const n=V(e.device);return(a,r)=>(p(),$("div",fl,[f("div",vl,[f("button",{class:K(["smtp-page-preview__btn",{"smtp-page-preview__btn--active":n.value==="mobile"}]),onClick:r[0]||(r[0]=s=>n.value="mobile")},[A(h(Q),{class:"smtp-page-preview__btn-icon",name:"mobile-device"})],2),f("button",{class:K(["smtp-page-preview__btn",{"smtp-page-preview__btn--active":n.value==="tablet"}]),onClick:r[1]||(r[1]=s=>n.value="tablet")},[A(h(Q),{class:"smtp-page-preview__btn-icon",name:"tablet-device"})],2),f("button",{class:K(["smtp-page-preview__btn",{"smtp-page-preview__btn--active":n.value==="desktop"}]),onClick:r[2]||(r[2]=s=>n.value="desktop")},[A(h(Q),{class:"smtp-page-preview__btn-icon",name:"desktop-device"})],2)]),f("div",{class:K(["smtp-page-preview__device",{"smtp-page-preview__device--desktop":n.value==="desktop","smtp-page-preview__device--tablet":n.value==="tablet","smtp-page-preview__device--mobile":n.value==="mobile"}])},[f("div",hl,[Ie(a.$slots,"default")])],2)]))}}),ml=e=>(pe("data-v-f211a4e8"),e=e(),fe(),e),gl={class:"ray-mail"},yl={class:"ray-mail__collapsable"},bl=ml(()=>f("span",null,"HTML",-1)),$l=["innerHTML"],Cl=T({__name:"ray-mail",props:{content:{}},setup(e){const t=V(!0),n=a=>(a.map(s=>`${s.name}[${s.email}]`)||[]).join(", ");return(a,r)=>(p(),$("div",gl,[A(h(re),null,{default:k(()=>[a.content.subject?(p(),R(h(D),{key:0,title:"Subject"},{default:k(()=>[P(C(a.content.subject),1)]),_:1})):H("",!0),a.content.mailable_class?(p(),R(h(D),{key:1,title:"Mailable class"},{default:k(()=>[P(C(a.content.mailable_class),1)]),_:1})):H("",!0),a.content.from&&a.content.from.length>0?(p(),R(h(D),{key:2,title:"From"},{default:k(()=>[P(C(n(a.content.from)),1)]),_:1})):H("",!0),a.content.to&&a.content.to.length>0?(p(),R(h(D),{key:3,title:"To"},{default:k(()=>[P(C(n(a.content.to)),1)]),_:1})):H("",!0),a.content.cc&&a.content.cc.length>0?(p(),R(h(D),{key:4,title:"Cc"},{default:k(()=>[P(C(n(a.content.cc)),1)]),_:1})):H("",!0),a.content.bcc&&a.content.bcc.length>0?(p(),R(h(D),{key:5,title:"Bcc"},{default:k(()=>[P(C(n(a.content.bcc)),1)]),_:1})):H("",!0),a.content.reply_to&&a.content.reply_to.length>0?(p(),R(h(D),{key:6,title:"Reply to"},{default:k(()=>[P(C(n(a.content.reply_to)),1)]),_:1})):H("",!0)]),_:1}),f("div",yl,[f("h3",{class:"ray-mail__collapsable-header",onClick:r[0]||(r[0]=s=>t.value=!t.value)},[bl,A(h(Q),{class:K(["ray-mail__icon",{"ray-mail__icon--collapsed":t.value}]),name:"collapsed"},null,8,["class"])]),t.value?H("",!0):(p(),R(h(_l),{key:0,device:"tablet"},{default:k(()=>[f("div",{innerHTML:a.content.html},null,8,$l)]),_:1}))])]))}}),wl=O(Cl,[["__scopeId","data-v-f211a4e8"]]),Sl={class:"ray-measure"},xl={key:0,class:"ray-measure__title"},El=T({__name:"ray-measure",props:{measure:{}},setup(e){const t=e,n=o=>(o/1e3).toFixed(4),a=(o,x="",L="")=>{if(!o)return"n/a";const v=["Bytes","KB","MB","GB","TB"],E=Math.min(Number(parseInt(String(Math.floor(Math.log(o)/Math.log(1024))),10)),v.length-1);return`${(o/1024**E).toFixed(2)}${x} ${v[E]}${L}`},r=M(()=>`${n(t.measure.total_time)} s`),s=M(()=>`${n(t.measure.time_since_last_call)} s`),l=M(()=>a(t.measure.max_memory_usage_during_total_time));return(o,x)=>(p(),$("div",Sl,[o.measure.is_new_timer?(p(),$("h3",xl," Start measuring performance... ")):(p(),R(h(re),{key:1},{default:k(()=>[A(h(D),{title:"Total time"},{default:k(()=>[P(C(r.value),1)]),_:1}),A(h(D),{title:"Time since last call"},{default:k(()=>[P(C(s.value),1)]),_:1}),A(h(D),{title:"Maximum memory usage"},{default:k(()=>[P(C(l.value),1)]),_:1})]),_:1}))]))}}),Il=O(El,[["__scopeId","data-v-02cc1965"]]),Al={class:"ray-origin"},Tl=T({__name:"ray-origin",props:{origin:{}},setup(e){const t=e,n=M(()=>({file_name:t.origin.file,line_number:t.origin.line_number,class_name:"",function_name:""}));return(a,r)=>(p(),$("div",Al,[A(h(Pe),{file:n.value},null,8,["file"])]))}}),Nl=O(Tl,[["__scopeId","data-v-0841d3c8"]]),kl={class:"ray-query"},Ll=T({__name:"ray-query",props:{content:{}},setup(e){const t=e,n=M(()=>{var a,r;return(((a=t.content)==null?void 0:a.bindings)||[]).reduce((s,l)=>(s||"").replace(/\?/,`'${l}'`),((r=t.content)==null?void 0:r.sql)||"")});return(a,r)=>(p(),$("div",kl,[A(h(dt),{language:"sql",code:n.value},null,8,["code"]),A(h(re),null,{default:k(()=>[A(h(D),{title:"Connection name"},{default:k(()=>[P(C(a.content.connection_name),1)]),_:1}),A(h(D),{title:"Time"},{default:k(()=>[P(C(a.content.time)+"ms ",1)]),_:1})]),_:1})]))}}),Pl=O(Ll,[["__scopeId","data-v-4589a9b7"]]),Ol={class:"ray-table"},Ml=T({__name:"ray-table",props:{table:{}},setup(e){return(t,n)=>(p(),$("div",Ol,[A(h(re),null,{default:k(()=>[(p(!0),$(ue,null,de(t.table.values,(a,r)=>(p(),R(h(D),{key:r,title:r},{default:k(()=>[A(h(J),{value:a},null,8,["value"])]),_:2},1032,["title"]))),128))]),_:1})]))}}),Bl=O(Ml,[["__scopeId","data-v-d4129261"]]),Rl={class:"ray-trace"},ql={class:"ray-trace__files"},Dl=T({__name:"ray-trace",props:{frames:{}},setup(e){return(t,n)=>(p(),$("div",Rl,[f("div",ql,[(p(!0),$(ue,null,de(t.frames,a=>(p(),R(h(Pe),{key:`${a.file_name}-${a.line_number}`,file:a},null,8,["file"]))),128))])]))}}),Hl=O(Dl,[["__scopeId","data-v-67f0b621"]]),Fl={class:"ray-view"},jl={class:"ray-view__title"},zl={class:"ray-view__code"},Ul=T({__name:"ray-view",props:{view:{}},setup(e){return(t,n)=>(p(),$("div",Fl,[f("h3",jl,[P(" View: "),f("code",zl,C(t.view.view_path_relative_to_project_root),1)]),A(h(J),{value:t.view.data},null,8,["value"])]))}}),Gl=O(Ul,[["__scopeId","data-v-7e733e70"]]),Yl={[B.LOG]:{view:pl,getProps:e=>({log:e.content.values[0]})},[B.CUSTOM]:{view:mo,getProps:e=>({content:e.content})},[B.CALLER]:{view:Wo,getProps:e=>({frame:e.content.frame})},[B.CARBON]:{view:ho,getProps:e=>({carbon:e.content})},[B.TRACE]:{view:Hl,getProps:e=>({frames:e.content.frames})},[B.EXCEPTION]:{view:jo,getProps:e=>({exception:e.content})},[B.TABLE]:{view:Bl,getProps:e=>({table:e.content})},[B.MEASURE]:{view:Il,getProps:e=>({measure:e.content})},[B.QUERY]:{view:Pl,getProps:e=>({content:e.content})},[B.ELOQUENT]:{view:Co,getProps:e=>({content:e.content})},[B.APPLICATION_LOG]:{view:po,getProps:e=>({content:e.content})},[B.VIEW]:{view:Gl,getProps:e=>({view:e.content})},[B.EVENT]:{view:Io,getProps:e=>({content:e.content})},[B.JOB]:{view:Zo,getProps:e=>({content:e.content})},[B.LOCK]:{view:cl,getProps:e=>({name:e.content.name})},[B.MAILABLE]:{view:wl,getProps:e=>({content:e.content})},[B.NOTIFY]:{view:Nl,getProps:e=>({origin:e.origin})}};export{Le as A,ii as B,dt as C,Ns as D,fn as E,Ci as F,Mi as G,mi as H,ss as I,Ne as J,qs as K,qi as L,lo as M,B as R,vn as S,re as T,J as V,Xl as _,D as a,_l as b,Ql as c,Yl as d,Gn as e,ka as f,Nr as g,Hr as h,Or as i,ts as j,he as k,ht as l,_t as m,Z as n,ea as o,Zl as p,Ae as q,as as r,Te as s,ca as t,rn as u,os as v,pt as w,Xs as x,ui as y,ms as z}; diff --git a/resources/frontend/_nuxt/DAR3qIk9.js b/resources/frontend/_nuxt/DAR3qIk9.js new file mode 100644 index 00000000..9d40e363 --- /dev/null +++ b/resources/frontend/_nuxt/DAR3qIk9.js @@ -0,0 +1 @@ +import{p as c,R as E,d as u}from"./Cuqdu9nB.js";import{E as n}from"./BefdN0MI.js";const b=o=>{var s,i,r,t,p;let e={php_version:(s=o.payload.meta)==null?void 0:s.php_version,laravel_version:"",symfony_version:""};(i=o.payload.meta)!=null&&i.laravel_version?e.laravel_version=(r=o.payload.meta)==null?void 0:r.laravel_version:(t=o.payload.meta)!=null&&t.symfony_version&&(e.symfony_version=(p=o.payload.meta)==null?void 0:p.symfony_version),o.payload.payloads.forEach(a=>{a.origin&&(e={...e,...c(a.origin,["file","line_number","hostname"])})});const y=o.payload.payloads.filter(a=>a.type==="label").map(a=>{var l;return(l=a==null?void 0:a.content)==null?void 0:l.label}).filter(Boolean),m=o.payload.payloads.filter(a=>Object.values(E).includes(a.type)).map(a=>a.type).filter(Boolean),f=o.payload.payloads.filter(a=>a.type==="color").map(a=>{var l;return(l=a.content)==null?void 0:l.color}).filter(Boolean).shift()||"black",d=o.payload.payloads.filter(a=>a.type==="size").map(a=>{var l;return(l=a.content)==null?void 0:l.size}).filter(Boolean).shift()||"md";return{id:o.uuid,type:n.RAY_DUMP,labels:[n.RAY_DUMP,...y,...m].filter((a,l,_)=>_.indexOf(a)===l),origin:e,serverName:"",date:o.timestamp?new Date(o.timestamp*1e3):null,payload:o.payload,meta:{color:f,size:d}}},R=()=>({normalizeRayEvent:b,COMPONENT_TYPE_MAP:u});export{R as u}; diff --git a/resources/frontend/_nuxt/DU45Wy3H.js b/resources/frontend/_nuxt/DU45Wy3H.js new file mode 100644 index 00000000..98554b43 --- /dev/null +++ b/resources/frontend/_nuxt/DU45Wy3H.js @@ -0,0 +1,3 @@ +import{U as R,l as x,V as H,W as K,P as L,X as N,O as T,Y as k,n as E,Z as W,u as $,$ as A,a0 as V,c as q,a1 as v,C as I,a2 as J}from"./BqbMuE7y.js";const z=Object.freeze({ignoreUnknown:!1,respectType:!1,respectFunctionNames:!1,respectFunctionProperties:!1,unorderedObjects:!0,unorderedArrays:!1,unorderedSets:!1,excludeKeys:void 0,excludeValues:void 0,replacer:void 0});function G(r,a){a?a={...z,...a}:a=z;const s=j(a);return s.dispatch(r),s.toString()}const X=Object.freeze(["prototype","__proto__","constructor"]);function j(r){let a="",s=new Map;const e=t=>{a+=t};return{toString(){return a},getContext(){return s},dispatch(t){return r.replacer&&(t=r.replacer(t)),this[t===null?"null":typeof t](t)},object(t){if(t&&typeof t.toJSON=="function")return this.object(t.toJSON());const n=Object.prototype.toString.call(t);let i="";const h=n.length;h<10?i="unknown:["+n+"]":i=n.slice(8,h-1),i=i.toLowerCase();let c=null;if((c=s.get(t))===void 0)s.set(t,s.size);else return this.dispatch("[CIRCULAR:"+c+"]");if(typeof Buffer<"u"&&Buffer.isBuffer&&Buffer.isBuffer(t))return e("buffer:"),e(t.toString("utf8"));if(i!=="object"&&i!=="function"&&i!=="asyncfunction")this[i]?this[i](t):r.ignoreUnknown||this.unkown(t,i);else{let f=Object.keys(t);r.unorderedObjects&&(f=f.sort());let o=[];r.respectType!==!1&&!F(t)&&(o=X),r.excludeKeys&&(f=f.filter(l=>!r.excludeKeys(l)),o=o.filter(l=>!r.excludeKeys(l))),e("object:"+(f.length+o.length)+":");const p=l=>{this.dispatch(l),e(":"),r.excludeValues||this.dispatch(t[l]),e(",")};for(const l of f)p(l);for(const l of o)p(l)}},array(t,n){if(n=n===void 0?r.unorderedArrays!==!1:n,e("array:"+t.length+":"),!n||t.length<=1){for(const c of t)this.dispatch(c);return}const i=new Map,h=t.map(c=>{const f=j(r);f.dispatch(c);for(const[o,p]of f.getContext())i.set(o,p);return f.toString()});return s=i,h.sort(),this.array(h,!1)},date(t){return e("date:"+t.toJSON())},symbol(t){return e("symbol:"+t.toString())},unkown(t,n){if(e(n),!!t&&(e(":"),t&&typeof t.entries=="function"))return this.array(Array.from(t.entries()),!0)},error(t){return e("error:"+t.toString())},boolean(t){return e("bool:"+t)},string(t){e("string:"+t.length+":"),e(t)},function(t){e("fn:"),F(t)?this.dispatch("[native]"):this.dispatch(t.toString()),r.respectFunctionNames!==!1&&this.dispatch("function-name:"+String(t.name)),r.respectFunctionProperties&&this.object(t)},number(t){return e("number:"+t)},xml(t){return e("xml:"+t.toString())},null(){return e("Null")},undefined(){return e("Undefined")},regexp(t){return e("regex:"+t.toString())},uint8array(t){return e("uint8array:"),this.dispatch(Array.prototype.slice.call(t))},uint8clampedarray(t){return e("uint8clampedarray:"),this.dispatch(Array.prototype.slice.call(t))},int8array(t){return e("int8array:"),this.dispatch(Array.prototype.slice.call(t))},uint16array(t){return e("uint16array:"),this.dispatch(Array.prototype.slice.call(t))},int16array(t){return e("int16array:"),this.dispatch(Array.prototype.slice.call(t))},uint32array(t){return e("uint32array:"),this.dispatch(Array.prototype.slice.call(t))},int32array(t){return e("int32array:"),this.dispatch(Array.prototype.slice.call(t))},float32array(t){return e("float32array:"),this.dispatch(Array.prototype.slice.call(t))},float64array(t){return e("float64array:"),this.dispatch(Array.prototype.slice.call(t))},arraybuffer(t){return e("arraybuffer:"),this.dispatch(new Uint8Array(t))},url(t){return e("url:"+t.toString())},map(t){e("map:");const n=[...t];return this.array(n,r.unorderedSets!==!1)},set(t){e("set:");const n=[...t];return this.array(n,r.unorderedSets!==!1)},file(t){return e("file:"),this.dispatch([t.name,t.size,t.type,t.lastModfied])},blob(){if(r.ignoreUnknown)return e("[blob]");throw new Error(`Hashing Blob objects is currently not supported +Use "options.replacer" or "options.ignoreUnknown" +`)},domwindow(){return e("domwindow")},bigint(t){return e("bigint:"+t.toString())},process(){return e("process")},timer(){return e("timer")},pipe(){return e("pipe")},tcp(){return e("tcp")},udp(){return e("udp")},tty(){return e("tty")},statwatcher(){return e("statwatcher")},securecontext(){return e("securecontext")},connection(){return e("connection")},zlib(){return e("zlib")},context(){return e("context")},nodescript(){return e("nodescript")},httpparser(){return e("httpparser")},dataview(){return e("dataview")},signal(){return e("signal")},fsevent(){return e("fsevent")},tlswrap(){return e("tlswrap")}}}const M="[native code] }",Y=M.length;function F(r){return typeof r!="function"?!1:Function.prototype.toString.call(r).slice(-Y)===M}class w{constructor(a,s){a=this.words=a||[],this.sigBytes=s===void 0?a.length*4:s}toString(a){return(a||Z).stringify(this)}concat(a){if(this.clamp(),this.sigBytes%4)for(let s=0;s>>2]>>>24-s%4*8&255;this.words[this.sigBytes+s>>>2]|=e<<24-(this.sigBytes+s)%4*8}else for(let s=0;s>>2]=a.words[s>>>2];return this.sigBytes+=a.sigBytes,this}clamp(){this.words[this.sigBytes>>>2]&=4294967295<<32-this.sigBytes%4*8,this.words.length=Math.ceil(this.sigBytes/4)}clone(){return new w([...this.words])}}const Z={stringify(r){const a=[];for(let s=0;s>>2]>>>24-s%4*8&255;a.push((e>>>4).toString(16),(e&15).toString(16))}return a.join("")}},Q={stringify(r){const a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",s=[];for(let e=0;e>>2]>>>24-e%4*8&255,n=r.words[e+1>>>2]>>>24-(e+1)%4*8&255,i=r.words[e+2>>>2]>>>24-(e+2)%4*8&255,h=t<<16|n<<8|i;for(let c=0;c<4&&e*8+c*6>>6*(3-c)&63))}return s.join("")}},tt={parse(r){const a=r.length,s=[];for(let e=0;e>>2]|=(r.charCodeAt(e)&255)<<24-e%4*8;return new w(s,a)}},et={parse(r){return tt.parse(unescape(encodeURIComponent(r)))}};class st{constructor(){this._data=new w,this._nDataBytes=0,this._minBufferSize=0,this.blockSize=512/32}reset(){this._data=new w,this._nDataBytes=0}_append(a){typeof a=="string"&&(a=et.parse(a)),this._data.concat(a),this._nDataBytes+=a.sigBytes}_doProcessBlock(a,s){}_process(a){let s,e=this._data.sigBytes/(this.blockSize*4);a?e=Math.ceil(e):e=Math.max((e|0)-this._minBufferSize,0);const t=e*this.blockSize,n=Math.min(t*4,this._data.sigBytes);if(t){for(let i=0;i>>7)^(m<<14|m>>>18)^m>>>3,y=B[l-2],C=(y<<15|y>>>17)^(y<<13|y>>>19)^y>>>10;B[l]=S+B[l-7]+C+B[l-16]}const b=c&f^~c&o,D=t&n^t&i^n&i,d=(t<<30|t>>>2)^(t<<19|t>>>13)^(t<<10|t>>>22),_=(c<<26|c>>>6)^(c<<21|c>>>11)^(c<<7|c>>>25),g=p+_+b+at[l]+B[l],u=d+D;p=o,o=f,f=c,c=h+g|0,h=i,i=n,n=t,t=g+u|0}e[0]=e[0]+t|0,e[1]=e[1]+n|0,e[2]=e[2]+i|0,e[3]=e[3]+h|0,e[4]=e[4]+c|0,e[5]=e[5]+f|0,e[6]=e[6]+o|0,e[7]=e[7]+p|0}finalize(a){super.finalize(a);const s=this._nDataBytes*8,e=this._data.sigBytes*8;return this._data.words[e>>>5]|=128<<24-e%32,this._data.words[(e+64>>>9<<4)+14]=Math.floor(s/4294967296),this._data.words[(e+64>>>9<<4)+15]=s,this._data.sigBytes=this._data.words.length*4,this._process(),this._hash}}function it(r){return new nt().finalize(r).toString(Q)}function ot(r,a={}){const s=typeof r=="string"?r:G(r,a);return it(s).slice(0,10)}const ct=r=>r==="defer"||r===!1;function lt(...r){var D;const a=typeof r[r.length-1]=="string"?r.pop():void 0;typeof r[0]!="string"&&r.unshift(a);let[s,e,t={}]=r;if(typeof s!="string")throw new TypeError("[nuxt] [asyncData] key must be a string.");if(typeof e!="function")throw new TypeError("[nuxt] [asyncData] handler must be a function.");const n=E(),i=e,h=()=>null,c=()=>n.isHydrating?n.payload.data[s]:n.static.data[s];t.server=t.server??!0,t.default=t.default??h,t.getCachedData=t.getCachedData??c,t.lazy=t.lazy??!1,t.immediate=t.immediate??!0,t.deep=t.deep??R.deep,t.dedupe=t.dedupe??"cancel";const f=()=>t.getCachedData(s,n)!=null;if(!n._asyncData[s]||!t.immediate){(D=n.payload._errors)[s]??(D[s]=null);const d=t.deep?x:H;n._asyncData[s]={data:d(t.getCachedData(s,n)??t.default()),pending:x(!f()),error:K(n.payload._errors,s),status:x("idle")}}const o={...n._asyncData[s]};o.refresh=o.execute=(d={})=>{if(n._asyncDataPromises[s]){if(ct(d.dedupe??t.dedupe))return n._asyncDataPromises[s];n._asyncDataPromises[s].cancelled=!0}if((d._initial||n.isHydrating&&d._initial!==!1)&&f())return Promise.resolve(t.getCachedData(s,n));o.pending.value=!0,o.status.value="pending";const _=new Promise((g,u)=>{try{g(i(n))}catch(m){u(m)}}).then(async g=>{if(_.cancelled)return n._asyncDataPromises[s];let u=g;t.transform&&(u=await t.transform(g)),t.pick&&(u=ft(u,t.pick)),n.payload.data[s]=u,o.data.value=u,o.error.value=null,o.status.value="success"}).catch(g=>{if(_.cancelled)return n._asyncDataPromises[s];o.error.value=W(g),o.data.value=$(t.default()),o.status.value="error"}).finally(()=>{_.cancelled||(o.pending.value=!1,delete n._asyncDataPromises[s])});return n._asyncDataPromises[s]=_,n._asyncDataPromises[s]},o.clear=()=>ut(n,s);const p=()=>o.refresh({_initial:!0}),l=t.server!==!1&&n.payload.serverRendered;{const d=A();if(d&&!d._nuxtOnBeforeMountCbs){d._nuxtOnBeforeMountCbs=[];const u=d._nuxtOnBeforeMountCbs;L(()=>{u.forEach(m=>{m()}),u.splice(0,u.length)}),N(()=>u.splice(0,u.length))}l&&n.isHydrating&&(o.error.value||f())?(o.pending.value=!1,o.status.value=o.error.value?"error":"success"):d&&(n.payload.serverRendered&&n.isHydrating||t.lazy)&&t.immediate?d._nuxtOnBeforeMountCbs.push(p):t.immediate&&p();const _=V();if(t.watch){const u=T(t.watch,()=>o.refresh());_&&k(u)}const g=n.hook("app:data:refresh",async u=>{(!u||u.includes(s))&&await o.refresh()});_&&k(g)}const b=Promise.resolve(n._asyncDataPromises[s]).then(()=>o);return Object.assign(b,o),b}function ut(r,a){a in r.payload.data&&(r.payload.data[a]=void 0),a in r.payload._errors&&(r.payload._errors[a]=null),r._asyncData[a]&&(r._asyncData[a].data.value=void 0,r._asyncData[a].error.value=null,r._asyncData[a].pending.value=!1,r._asyncData[a].status.value="idle"),a in r._asyncDataPromises&&(r._asyncDataPromises[a].cancelled=!0,r._asyncDataPromises[a]=void 0)}function ft(r,a){const s={};for(const e of a)s[e]=r[e];return s}function pt(r,a,s){const[e={},t]=typeof a=="string"?[{},a]:[a,s],n=q(()=>v(r)),i=e.key||ot([t,typeof n.value=="string"?n.value:"",...ht(e)]);if(!i||typeof i!="string")throw new TypeError("[nuxt] [useFetch] key must be a string: "+i);if(!r)throw new Error("[nuxt] [useFetch] request is missing.");const h=i===t?"$f"+i:i;if(!e.baseURL&&typeof n.value=="string"&&n.value[0]==="/"&&n.value[1]==="/")throw new Error('[nuxt] [useFetch] the request URL must not start with "//".');const{server:c,lazy:f,default:o,transform:p,pick:l,watch:b,immediate:D,getCachedData:d,deep:_,dedupe:g,...u}=e,m=I({...J,...u,cache:typeof e.cache=="boolean"?void 0:e.cache}),S={server:c,lazy:f,default:o,transform:p,pick:l,immediate:D,getCachedData:d,deep:_,dedupe:g,watch:b===!1?[]:[m,n,...b||[]]};let y;return lt(h,()=>{var O;(O=y==null?void 0:y.abort)==null||O.call(y),y=typeof AbortController<"u"?new AbortController:{};const P=v(e.timeout);return P&&setTimeout(()=>y.abort(),P),(e.$fetch||globalThis.$fetch)(n.value,{signal:y.signal,...m})},S)}function ht(r){var s;const a=[((s=v(r.method))==null?void 0:s.toUpperCase())||"GET",v(r.baseURL)];for(const e of[r.params||r.query]){const t=v(e);if(!t)continue;const n={};for(const[i,h]of Object.entries(t))n[v(i)]=v(h);a.push(n)}return a}export{pt as u}; diff --git a/resources/frontend/_nuxt/DUf8yZCu.js b/resources/frontend/_nuxt/DUf8yZCu.js new file mode 100644 index 00000000..0319cd80 --- /dev/null +++ b/resources/frontend/_nuxt/DUf8yZCu.js @@ -0,0 +1 @@ +import{E as o}from"./BefdN0MI.js";const e=a=>({id:a.uuid,type:o.VAR_DUMP,labels:[o.VAR_DUMP],origin:{file:a.payload.context.source.file,name:a.payload.context.source.name,line_number:a.payload.context.source.line},serverName:"",date:a.timestamp?new Date(a.timestamp*1e3):null,payload:a.payload}),m=()=>({normalizeVarDumpEvent:e});export{m as u}; diff --git a/resources/frontend/_nuxt/DdKTkMGq.js b/resources/frontend/_nuxt/DdKTkMGq.js new file mode 100644 index 00000000..f1f958cd --- /dev/null +++ b/resources/frontend/_nuxt/DdKTkMGq.js @@ -0,0 +1 @@ +import{u as d}from"./CF6J2D0o.js";import{d as y,c as f,o as s,a as o,F as b,r as g,b as i,e as h,t as l,g as E,_ as v}from"./BqbMuE7y.js";import{E as _}from"./BefdN0MI.js";const F={class:"stat-board"},P={class:"stat-board__item-name"},C={key:0,class:"stat-board__item-name-detail"},N={class:"stat-board__item-value"},S=y({__name:"stat-board",props:{cost:{}},setup(t){const{formatDuration:n,formatFileSize:p}=d(),e=t,u=f(()=>{var r,c,a,m;return[{title:"Calls",value:e.cost.ct||0,percent:null},{title:"CPU time",value:n(e.cost.cpu||0)||"—",percent:(r=e.cost)==null?void 0:r.p_cpu},{title:"Wall time",value:n(e.cost.wt||0)||"—",percent:(c=e.cost)==null?void 0:c.p_wt},{title:"Memory usage",value:p(e.cost.mu||0)||"—",percent:(a=e.cost)==null?void 0:a.p_mu},{title:"Change memory",value:p(e.cost.pmu||0)||"—",percent:(m=e.cost)==null?void 0:m.p_pmu}]});return(r,c)=>(s(),o("section",F,[(s(!0),o(b,null,g(u.value,a=>(s(),o("div",{key:a.title,class:"stat-board__item"},[i("h4",P,[h(l(a.title)+" ",1),a.percent>0?(s(),o("span",C," ["+l(a.percent)+"%] ",1)):E("",!0)]),i("strong",N,l(a.value),1)]))),128))]))}}),R=v(S,[["__scopeId","data-v-b1d50893"]]),k=t=>({id:t.uuid,type:_.PROFILER,labels:[_.PROFILER],origin:{name:t.payload.app_name,...t.payload.tags},serverName:t.payload.hostname,date:t.timestamp?new Date(t.timestamp*1e3):null,payload:t.payload}),V=()=>({normalizeProfilerEvent:k});export{R as S,V as u}; diff --git a/resources/frontend/_nuxt/DkCVl2sj.js b/resources/frontend/_nuxt/DkCVl2sj.js new file mode 100644 index 00000000..817177a8 --- /dev/null +++ b/resources/frontend/_nuxt/DkCVl2sj.js @@ -0,0 +1 @@ +import{d as $,L as C,x as N,c as y,l as V,o as d,a as _,b as n,f as e,w as l,s as u,u as t,t as S,e as A,g as v,n as B,k as D,j as E,_ as I,m as L,B as P,a8 as R}from"./BqbMuE7y.js";import"./BBk2F9bR.js";import{_ as W,S as H,u as M}from"./Cuqdu9nB.js";import{a as j,I as a,u as q}from"./BefdN0MI.js";const z={class:"layout-sidebar"},F={class:"layout-sidebar__nav"},G={key:0,class:"layout-sidebar__profile"},J={key:0,class:"layout-sidebar__profile-dropdown"},K={class:"profile-dropdown-item profile-dropdown-item--email"},O=["src"],Q={class:"layout-sidebar__connection"},U={class:"layout-sidebar__versions"},X=["title"],Y=["title"],Z=$({__name:"layout-sidebar",props:{apiVersion:{},clientVersion:{},profile:{}},setup(w){const r=w,k=B(),m=j(),{isConnectedWS:b}=C(m),g=N(),s=y(()=>b.value?"connected":"disconnected"),p=y(()=>{var o;return!r.profile||!((o=r.profile)!=null&&o.avatar)?null:r.profile.avatar.startsWith("`WS connection is ${s.value}`),h=V(!0),T=()=>{h.value=!h.value},x=()=>{g.removeToken(),D().push("/login")},c=y(()=>E().path);return(o,oe)=>{const i=W;return d(),_("aside",z,[n("nav",F,[e(i,{to:"/",title:"Events",class:"layout-sidebar__link layout-sidebar__link--logo"},{default:l(()=>[e(t(a),{class:"layout-sidebar__link-icon",name:"logo-short"})]),_:1}),e(i,{to:"/",title:"Events",class:"layout-sidebar__link"},{default:l(()=>[e(t(a),{class:"layout-sidebar__link-icon",name:"events"})]),_:1}),e(i,{to:"/sentry",title:"Sentry logs",class:u(["layout-sidebar__link",{"router-link-active":c.value.includes("/sentry")}])},{default:l(()=>[e(t(a),{class:"layout-sidebar__link-icon",name:"sentry"})]),_:1},8,["class"]),e(i,{to:"/profiler",title:"Profiler",class:u(["layout-sidebar__link",{"router-link-active":c.value.includes("/profiler")}])},{default:l(()=>[e(t(a),{class:"layout-sidebar__link-icon",name:"profiler"})]),_:1},8,["class"]),e(i,{to:"/smtp",title:"SMTP mails",class:u(["layout-sidebar__link",{"router-link-active":c.value.includes("/smtp")}])},{default:l(()=>[e(t(a),{class:"layout-sidebar__link-icon",name:"smtp"})]),_:1},8,["class"]),e(i,{to:"/http-dumps",title:"Http dumps",class:u(["layout-sidebar__link",{"router-link-active":c.value.includes("/http-dumps")}])},{default:l(()=>[e(t(a),{class:"layout-sidebar__link-icon",name:"http-dumps"})]),_:1},8,["class"]),e(i,{to:"/inspector",title:"Inspector logs",class:u(["layout-sidebar__link",{"router-link-active":c.value.includes("/inspector")}])},{default:l(()=>[e(t(a),{class:"layout-sidebar__link-icon",name:"inspector"})]),_:1},8,["class"]),e(i,{to:"/var-dump",title:"Var Dump logs",class:u(["layout-sidebar__link",{"router-link-active":c.value.includes("/var-dump")}])},{default:l(()=>[e(t(a),{class:"layout-sidebar__link-icon",name:"var-dump"})]),_:1},8,["class"]),e(i,{to:"/ray",title:"Ray Dump logs",class:u(["layout-sidebar__link",{"router-link-active":c.value.includes("/ray")}])},{default:l(()=>[e(t(a),{class:"layout-sidebar__link-icon",name:"ray"})]),_:1},8,["class"]),e(i,{to:"/settings",title:"Settings",class:"layout-sidebar__link"},{default:l(()=>[e(t(a),{class:"layout-sidebar__link-icon",name:"settings"})]),_:1})]),n("div",null,[t(k).$appSettings.auth.enabled?(d(),_("div",G,[h.value?v("",!0):(d(),_("div",J,[n("div",K,S(o.profile.email),1),n("div",{class:"profile-dropdown-item profile-dropdown-item--logout",onClick:x},[e(t(a),{class:"profile-dropdown-item--logout-icon",name:"logout"}),A(" Logout ")])])),p.value?(d(),_("div",{key:1,class:"layout-sidebar__profile-avatar",onClick:T},[n("img",{src:p.value},null,8,O)])):v("",!0)])):v("",!0),n("div",Q,[e(t(a),{class:"layout-sidebar__connection-icon",name:s.value,title:f.value},null,8,["name","title"])]),n("div",U,[o.apiVersion?(d(),_("div",{key:0,class:"layout-sidebar__nav-version",title:`Api version: ${o.apiVersion}`},S(o.apiVersion),9,X)):v("",!0),o.clientVersion?(d(),_("div",{key:1,class:"layout-sidebar__nav-version",title:`Client version: ${o.clientVersion}`},S(o.clientVersion),9,Y)):v("",!0)])])])}}}),ee=I(Z,[["__scopeId","data-v-e7c16260"]]),te={class:"main-layout"},se={class:"main-layout__content"},ae=$({__name:"default",setup(w){q(),H(window.document);const{profile:r}=C(N()),{api:{getVersion:k}}=R(),m=V(""),b=V("@dev"),g=async()=>{const s=await k();m.value=String(s).match(/^[0-9.]+.*$/)?`v${s}`:`@${s}`};return L(()=>{var p,f;g();const{events:s}=M();(f=(p=s==null?void 0:s.items)==null?void 0:p.value)!=null&&f.length||s.getAll()}),(s,p)=>(d(),_("div",te,[e(t(ee),{class:"main-layout__sidebar","api-version":m.value,"client-version":b.value,profile:t(r)},null,8,["api-version","client-version","profile"]),n("div",se,[P(s.$slots,"default",{},void 0,!0)])]))}}),ce=I(ae,[["__scopeId","data-v-8c9b1ead"]]);export{ce as default}; diff --git a/resources/frontend/_nuxt/DnxAvhKT.js b/resources/frontend/_nuxt/DnxAvhKT.js new file mode 100644 index 00000000..dbe19b22 --- /dev/null +++ b/resources/frontend/_nuxt/DnxAvhKT.js @@ -0,0 +1 @@ +import{_ as o}from"./Dp5Hh4Yf.js";import{P as r}from"./BefdN0MI.js";import{d as p,o as m,h as e,u as t}from"./BqbMuE7y.js";import"./Cuqdu9nB.js";import"./B3ev0iw2.js";import"./Cduf3Gc_.js";import"./DdKTkMGq.js";import"./CF6J2D0o.js";import"./DAR3qIk9.js";import"./BCrvxhm1.js";import"./BnFX9pPB.js";import"./DUf8yZCu.js";import"./k1uqWTyJ.js";const B=p({__name:"index",setup(i){return(a,n)=>(m(),e(t(o),{type:t(r).SMTP,title:"Smtp"},null,8,["type"]))}});export{B as default}; diff --git a/resources/frontend/_nuxt/Dp5Hh4Yf.js b/resources/frontend/_nuxt/Dp5Hh4Yf.js new file mode 100644 index 00000000..081bf76a --- /dev/null +++ b/resources/frontend/_nuxt/Dp5Hh4Yf.js @@ -0,0 +1,2 @@ +import{_ as me,u as te,C as N,d as Ce,V as Pe,c as ke}from"./Cuqdu9nB.js";import{d as C,c as $,o as u,a as f,b as m,F as M,r as H,t as T,g as b,f as y,u as p,_ as I,s as j,h as E,w as R,l as B,P as Re,B as xe,R as Te,e as W,K as he,J as Le,p as Ie,i as Oe,H as Ue,E as ze}from"./BqbMuE7y.js";import{I as U,E as D,h as fe,d as ae,P as se}from"./BefdN0MI.js";import{u as De}from"./B3ev0iw2.js";import{I as Ve,u as Ae}from"./Cduf3Gc_.js";import{S as Me,u as Fe}from"./DdKTkMGq.js";import{u as Be}from"./DAR3qIk9.js";import{S as He,u as je}from"./BCrvxhm1.js";import{u as qe}from"./BnFX9pPB.js";import{u as Ne}from"./DUf8yZCu.js";import{u as We,P as Ge}from"./k1uqWTyJ.js";function Je(e,t){if(e.match(/^[a-z]+:\/\//i))return e;if(e.match(/^\/\//))return window.location.protocol+e;if(e.match(/^[a-z]+:/i))return e;const r=document.implementation.createHTMLDocument(),n=r.createElement("base"),a=r.createElement("a");return r.head.appendChild(n),r.body.appendChild(a),t&&(n.href=t),a.href=e,a.href}const Ye=(()=>{let e=0;const t=()=>`0000${(Math.random()*36**4<<0).toString(36)}`.slice(-4);return()=>(e+=1,`u${t()}${e}`)})();function V(e){const t=[];for(let r=0,n=e.length;rO||e.height>O)&&(e.width>O&&e.height>O?e.width>e.height?(e.height*=O/e.width,e.width=O):(e.width*=O/e.height,e.height=O):e.width>O?(e.height*=O/e.width,e.width=O):(e.width*=O/e.height,e.height=O))}function et(e,t={}){return e.toBlob?new Promise(r=>{e.toBlob(r,t.type?t.type:"image/png",t.quality?t.quality:1)}):new Promise(r=>{const n=window.atob(e.toDataURL(t.type?t.type:void 0,t.quality?t.quality:void 0).split(",")[1]),a=n.length,s=new Uint8Array(a);for(let o=0;o{const n=new Image;n.decode=()=>t(n),n.onload=()=>t(n),n.onerror=r,n.crossOrigin="anonymous",n.decoding="async",n.src=e})}async function tt(e){return Promise.resolve().then(()=>new XMLSerializer().serializeToString(e)).then(encodeURIComponent).then(t=>`data:image/svg+xml;charset=utf-8,${t}`)}async function nt(e,t,r){const n="http://www.w3.org/2000/svg",a=document.createElementNS(n,"svg"),s=document.createElementNS(n,"foreignObject");return a.setAttribute("width",`${t}`),a.setAttribute("height",`${r}`),a.setAttribute("viewBox",`0 0 ${t} ${r}`),s.setAttribute("width","100%"),s.setAttribute("height","100%"),s.setAttribute("x","0"),s.setAttribute("y","0"),s.setAttribute("externalResourcesRequired","true"),a.appendChild(s),s.appendChild(e),tt(a)}const L=(e,t)=>{if(e instanceof t)return!0;const r=Object.getPrototypeOf(e);return r===null?!1:r.constructor.name===t.name||L(r,t)};function rt(e){const t=e.getPropertyValue("content");return`${e.cssText} content: '${t.replace(/'|"/g,"")}';`}function at(e){return V(e).map(t=>{const r=e.getPropertyValue(t),n=e.getPropertyPriority(t);return`${t}: ${r}${n?" !important":""};`}).join(" ")}function st(e,t,r){const n=`.${e}:${t}`,a=r.cssText?rt(r):at(r);return document.createTextNode(`${n}{${a}}`)}function oe(e,t,r){const n=window.getComputedStyle(e,r),a=n.getPropertyValue("content");if(a===""||a==="none")return;const s=Ye();try{t.className=`${t.className} ${s}`}catch{return}const o=document.createElement("style");o.appendChild(st(s,r,n)),t.appendChild(o)}function ot(e,t){oe(e,t,":before"),oe(e,t,":after")}const ie="application/font-woff",le="image/jpeg",it={woff:ie,woff2:ie,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:le,jpeg:le,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml",webp:"image/webp"};function lt(e){const t=/\.([^./]*?)$/g.exec(e);return t?t[1]:""}function ne(e){const t=lt(e).toLowerCase();return it[t]||""}function ct(e){return e.split(/,/)[1]}function ee(e){return e.search(/^(data:)/)!==-1}function ge(e,t){return`data:${t};base64,${e}`}async function _e(e,t,r){const n=await fetch(e,t);if(n.status===404)throw new Error(`Resource "${n.url}" not found`);const a=await n.blob();return new Promise((s,o)=>{const i=new FileReader;i.onerror=o,i.onloadend=()=>{try{s(r({res:n,result:i.result}))}catch(c){o(c)}},i.readAsDataURL(a)})}const Z={};function ut(e,t,r){let n=e.replace(/\?.*/,"");return r&&(n=e),/ttf|otf|eot|woff2?/i.test(n)&&(n=n.replace(/.*\//,"")),t?`[${t}]${n}`:n}async function re(e,t,r){const n=ut(e,t,r.includeQueryParams);if(Z[n]!=null)return Z[n];r.cacheBust&&(e+=(/\?/.test(e)?"&":"?")+new Date().getTime());let a;try{const s=await _e(e,r.fetchRequestInit,({res:o,result:i})=>(t||(t=o.headers.get("Content-Type")||""),ct(i)));a=ge(s,t)}catch(s){a=r.imagePlaceholder||"";let o=`Failed to fetch resource: ${e}`;s&&(o=typeof s=="string"?s:s.message),o&&console.warn(o)}return Z[n]=a,a}async function dt(e){const t=e.toDataURL();return t==="data:,"?e.cloneNode(!1):J(t)}async function pt(e,t){if(e.currentSrc){const s=document.createElement("canvas"),o=s.getContext("2d");s.width=e.clientWidth,s.height=e.clientHeight,o==null||o.drawImage(e,0,0,s.width,s.height);const i=s.toDataURL();return J(i)}const r=e.poster,n=ne(r),a=await re(r,n,t);return J(a)}async function mt(e){var t;try{if(!((t=e==null?void 0:e.contentDocument)===null||t===void 0)&&t.body)return await K(e.contentDocument.body,{},!0)}catch{}return e.cloneNode(!1)}async function ht(e,t){return L(e,HTMLCanvasElement)?dt(e):L(e,HTMLVideoElement)?pt(e,t):L(e,HTMLIFrameElement)?mt(e):e.cloneNode(!1)}const ft=e=>e.tagName!=null&&e.tagName.toUpperCase()==="SLOT";async function vt(e,t,r){var n,a;let s=[];return ft(e)&&e.assignedNodes?s=V(e.assignedNodes()):L(e,HTMLIFrameElement)&&(!((n=e.contentDocument)===null||n===void 0)&&n.body)?s=V(e.contentDocument.body.childNodes):s=V(((a=e.shadowRoot)!==null&&a!==void 0?a:e).childNodes),s.length===0||L(e,HTMLVideoElement)||await s.reduce((o,i)=>o.then(()=>K(i,r)).then(c=>{c&&t.appendChild(c)}),Promise.resolve()),t}function gt(e,t){const r=t.style;if(!r)return;const n=window.getComputedStyle(e);n.cssText?(r.cssText=n.cssText,r.transformOrigin=n.transformOrigin):V(n).forEach(a=>{let s=n.getPropertyValue(a);a==="font-size"&&s.endsWith("px")&&(s=`${Math.floor(parseFloat(s.substring(0,s.length-2)))-.1}px`),L(e,HTMLIFrameElement)&&a==="display"&&s==="inline"&&(s="block"),a==="d"&&t.getAttribute("d")&&(s=`path(${t.getAttribute("d")})`),r.setProperty(a,s,n.getPropertyPriority(a))})}function _t(e,t){L(e,HTMLTextAreaElement)&&(t.innerHTML=e.value),L(e,HTMLInputElement)&&t.setAttribute("value",e.value)}function wt(e,t){if(L(e,HTMLSelectElement)){const r=t,n=Array.from(r.children).find(a=>e.value===a.getAttribute("value"));n&&n.setAttribute("selected","")}}function yt(e,t){return L(t,Element)&&(gt(e,t),ot(e,t),_t(e,t),wt(e,t)),t}async function bt(e,t){const r=e.querySelectorAll?e.querySelectorAll("use"):[];if(r.length===0)return e;const n={};for(let s=0;sht(n,t)).then(n=>vt(e,n,t)).then(n=>yt(e,n)).then(n=>bt(n,t))}const we=/url\((['"]?)([^'"]+?)\1\)/g,$t=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,Et=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;function St(e){const t=e.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return new RegExp(`(url\\(['"]?)(${t})(['"]?\\))`,"g")}function Ct(e){const t=[];return e.replace(we,(r,n,a)=>(t.push(a),r)),t.filter(r=>!ee(r))}async function Pt(e,t,r,n,a){try{const s=r?Je(t,r):t,o=ne(t);let i;if(a){const c=await a(s);i=ge(c,o)}else i=await re(s,o,n);return e.replace(St(t),`$1${i}$3`)}catch{}return e}function kt(e,{preferredFontFormat:t}){return t?e.replace(Et,r=>{for(;;){const[n,,a]=$t.exec(r)||[];if(!a)return"";if(a===t)return`src: ${n};`}}):e}function ye(e){return e.search(we)!==-1}async function be(e,t,r){if(!ye(e))return e;const n=kt(e,r);return Ct(n).reduce((s,o)=>s.then(i=>Pt(i,o,t,r)),Promise.resolve(n))}async function q(e,t,r){var n;const a=(n=t.style)===null||n===void 0?void 0:n.getPropertyValue(e);if(a){const s=await be(a,null,r);return t.style.setProperty(e,s,t.style.getPropertyPriority(e)),!0}return!1}async function Rt(e,t){await q("background",e,t)||await q("background-image",e,t),await q("mask",e,t)||await q("mask-image",e,t)}async function xt(e,t){const r=L(e,HTMLImageElement);if(!(r&&!ee(e.src))&&!(L(e,SVGImageElement)&&!ee(e.href.baseVal)))return;const n=r?e.src:e.href.baseVal,a=await re(n,ne(n),t);await new Promise((s,o)=>{e.onload=s,e.onerror=o;const i=e;i.decode&&(i.decode=s),i.loading==="lazy"&&(i.loading="eager"),r?(e.srcset="",e.src=a):e.href.baseVal=a})}async function Tt(e,t){const n=V(e.childNodes).map(a=>$e(a,t));await Promise.all(n).then(()=>e)}async function $e(e,t){L(e,Element)&&(await Rt(e,t),await xt(e,t),await Tt(e,t))}function Lt(e,t){const{style:r}=e;t.backgroundColor&&(r.backgroundColor=t.backgroundColor),t.width&&(r.width=`${t.width}px`),t.height&&(r.height=`${t.height}px`);const n=t.style;return n!=null&&Object.keys(n).forEach(a=>{r[a]=n[a]}),e}const ce={};async function ue(e){let t=ce[e];if(t!=null)return t;const n=await(await fetch(e)).text();return t={url:e,cssText:n},ce[e]=t,t}async function de(e,t){let r=e.cssText;const n=/url\(["']?([^"')]+)["']?\)/g,s=(r.match(/url\([^)]+\)/g)||[]).map(async o=>{let i=o.replace(n,"$1");return i.startsWith("https://")||(i=new URL(i,e.url).href),_e(i,t.fetchRequestInit,({result:c})=>(r=r.replace(o,`url(${c})`),[o,c]))});return Promise.all(s).then(()=>r)}function pe(e){if(e==null)return[];const t=[],r=/(\/\*[\s\S]*?\*\/)/gi;let n=e.replace(r,"");const a=new RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})","gi");for(;;){const c=a.exec(n);if(c===null)break;t.push(c[0])}n=n.replace(a,"");const s=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,o="((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})",i=new RegExp(o,"gi");for(;;){let c=s.exec(n);if(c===null){if(c=i.exec(n),c===null)break;s.lastIndex=i.lastIndex}else i.lastIndex=s.lastIndex;t.push(c[0])}return t}async function It(e,t){const r=[],n=[];return e.forEach(a=>{if("cssRules"in a)try{V(a.cssRules||[]).forEach((s,o)=>{if(s.type===CSSRule.IMPORT_RULE){let i=o+1;const c=s.href,g=ue(c).then(v=>de(v,t)).then(v=>pe(v).forEach(S=>{try{a.insertRule(S,S.startsWith("@import")?i+=1:a.cssRules.length)}catch(w){console.error("Error inserting rule from remote css",{rule:S,error:w})}})).catch(v=>{console.error("Error loading remote css",v.toString())});n.push(g)}})}catch(s){const o=e.find(i=>i.href==null)||document.styleSheets[0];a.href!=null&&n.push(ue(a.href).then(i=>de(i,t)).then(i=>pe(i).forEach(c=>{o.insertRule(c,a.cssRules.length)})).catch(i=>{console.error("Error loading remote stylesheet",i)})),console.error("Error inlining remote css file",s)}}),Promise.all(n).then(()=>(e.forEach(a=>{if("cssRules"in a)try{V(a.cssRules||[]).forEach(s=>{r.push(s)})}catch(s){console.error(`Error while reading CSS rules from ${a.href}`,s)}}),r))}function Ot(e){return e.filter(t=>t.type===CSSRule.FONT_FACE_RULE).filter(t=>ye(t.style.getPropertyValue("src")))}async function Ut(e,t){if(e.ownerDocument==null)throw new Error("Provided element is not within a Document");const r=V(e.ownerDocument.styleSheets),n=await It(r,t);return Ot(n)}async function zt(e,t){const r=await Ut(e,t);return(await Promise.all(r.map(a=>{const s=a.parentStyleSheet?a.parentStyleSheet.href:null;return be(a.cssText,s,t)}))).join(` +`)}async function Dt(e,t){const r=t.fontEmbedCSS!=null?t.fontEmbedCSS:t.skipFonts?null:await zt(e,t);if(r){const n=document.createElement("style"),a=document.createTextNode(r);n.appendChild(a),e.firstChild?e.insertBefore(n,e.firstChild):e.appendChild(n)}}async function Vt(e,t={}){const{width:r,height:n}=ve(e,t),a=await K(e,t,!0);return await Dt(a,t),await $e(a,t),Lt(a,t),await nt(a,r,n)}async function Ee(e,t={}){const{width:r,height:n}=ve(e,t),a=await Vt(e,t),s=await J(a),o=document.createElement("canvas"),i=o.getContext("2d"),c=t.pixelRatio||Qe(),g=t.canvasWidth||r,v=t.canvasHeight||n;return o.width=g*c,o.height=v*c,t.skipAutoScale||Ze(o),o.style.width=`${g}`,o.style.height=`${v}`,t.backgroundColor&&(i.fillStyle=t.backgroundColor,i.fillRect(0,0,o.width,o.height)),i.drawImage(s,0,0,o.width,o.height),o}async function At(e,t={}){return(await Ee(e,t)).toDataURL()}async function Mt(e,t={}){const r=await Ee(e,t);return await et(r)}const Ft={class:"preview-card-footer"},Bt={class:"preview-card-footer__tags"},Ht={class:"preview-card-footer__tag-key"},jt={class:"preview-card-footer__tag-value"},qt={key:0,class:"preview-card-footer__host"},Nt={class:"preview-card-footer__host-name"},Wt=C({__name:"preview-card-footer",props:{serverName:{default:""},originConfig:{default:null}},setup(e){const t={php_version:"php",laravel_version:"laravel",symfony_version:"symfony",line_number:"line",hostname:"host",environment:"env"},r=e,n=$(()=>r.originConfig?Object.entries(r.originConfig).reduce((a,[s,o])=>{if(!o||o==="undefined")return a;const i=t[s]||s;return a[i]=o,a},{}):{});return(a,s)=>(u(),f("div",Ft,[m("div",Bt,[n.value?(u(!0),f(M,{key:0},H(n.value,(o,i)=>(u(),f("div",{key:i,class:"preview-card-footer__tag"},[m("span",Ht,T(i)+":",1),m("span",jt,T(o),1)]))),128)):b("",!0)]),a.serverName?(u(),f("div",qt,[y(p(U),{name:"host",class:"preview-card-footer__host-icon"}),m("span",Nt,T(a.serverName),1)])):b("",!0)]))}}),Gt=I(Wt,[["__scopeId","data-v-5fee8941"]]);var Y=(e=>(e.File="file",e.Image="image",e))(Y||{});const Jt={class:"preview-card-header"},Yt={class:"preview-card-header__tags"},Kt=["href"],Xt={key:0,class:"preview-card-header__buttons"},Qt={key:0,class:"preview-card-header__buttons-expand"},Zt={class:"preview-card-header__buttons-expand-list"},en=["disabled"],tn=C({__name:"preview-card-header",props:{eventType:{},eventId:{},eventUrl:{default:""},tags:{default:()=>[]},isOpen:{type:Boolean},isLocked:{type:Boolean},isVisibleControls:{type:Boolean}},emits:["delete","toggleView","copy","download","lock"],setup(e,{emit:t}){const r=e,n=t,a=()=>{n("toggleView",!0)},s=()=>{n("delete",!0)},o=()=>{n("copy",!0)},i=()=>{n("download",Y.Image)},c=()=>{n("download",Y.File)},g=()=>{n("lock",!0)},v=$(()=>r.tags.length>0),S=$(()=>Object.values(D).includes(r.eventType)?`/${r.eventType}/${r.eventId}`:"");return(w,z)=>{const _=me;return u(),f("div",Jt,[m("div",Yt,[w.eventUrl?(u(),f("a",{key:0,href:w.eventUrl,target:"_blank",class:"preview-card-header__tag preview-card-header__tag--json",title:"Open JSON payload for this event in new tab"}," JSON ",8,Kt)):b("",!0),v.value?(u(!0),f(M,{key:1},H(w.tags,l=>(u(),f("div",{key:l,ref_for:!0,ref:"tags",class:j(["preview-card-header__tag",`preview-card-header__tag--${w.eventType}`])},T(l),3))),128)):b("",!0),S.value?(u(),E(_,{key:2,to:S.value,class:"preview-card-header__open",title:"Open full event"},{default:R(()=>[y(p(U),{name:"window-maximize"})]),_:1},8,["to"])):b("",!0)]),w.isVisibleControls?(u(),f("div",Xt,[w.isOpen?(u(),f("div",Qt,[m("button",{class:"preview-card-header__button preview-card-header__button--copy",title:"Copy event as PNG image to clipboard",onClick:o},[y(p(U),{name:"copy",class:"preview-card-header__button-icon"})]),m("div",Zt,[m("button",{class:"preview-card-header__button preview-card-header__button--copy",title:"Download event as JSON file",onClick:c},[y(p(U),{name:"file-download",class:"preview-card-header__button-icon"})]),m("button",{class:"preview-card-header__button preview-card-header__button--copy",title:"Download event as PNG image",onClick:i},[y(p(U),{name:"image-download",class:"preview-card-header__button-icon"})])])])):b("",!0),m("button",{class:j(["preview-card-header__button preview-card-header__button--collapse",{"preview-card-header__button--collapse-closed":!w.isOpen}]),title:"Collapse event",onClick:a},[w.isOpen?(u(),E(p(U),{key:0,name:"minus",class:"preview-card-header__button-icon"})):b("",!0),w.isOpen?b("",!0):(u(),E(p(U),{key:1,name:"plus",class:"preview-card-header__button-icon"}))],2),m("button",{class:j(["preview-card-header__button preview-card-header__button--lock",{"preview-card-header__button--locked":w.isLocked}]),title:"Lock event. Locked events will not be deleted",onClick:g},[y(p(U),{name:"lock",class:"preview-card-header__button-icon"})],2),m("button",{class:"preview-card-header__button preview-card-header__button--delete",title:"Delete event",disabled:w.isLocked,onClick:s},[y(p(U),{name:"times",class:"preview-card-header__button-icon"})],8,en)])):b("",!0)])}}}),nn=I(tn,[["__scopeId","data-v-91520872"]]),rn=["id"],an={key:0,ref:"event_body",class:"preview-card__body"},sn=C({__name:"preview-card",props:{event:{}},setup(e){const t=e,r=B(!1),n=B(!1),a=B(!1),s=B(!0),o=B(null),i=B(!1),{events:c,lockedIds:g}=te(),v=$(()=>[fe(t.event.date).format("HH:mm:ss"),...t.event.labels]),S=$(()=>{const h=Object.entries(t.event.origin||{}).map(([X,Q])=>[X,String(Q)]).filter(([X,Q])=>!!Q);return h.length>0?Object.fromEntries(h):null}),w=$(()=>`${Te}/api/event/${t.event.id}`),z=h=>{r.value=!r.value,h.preventDefault()},_=(h=!0)=>{s.value=h},l=()=>{i.value=!0,setTimeout(()=>{c==null||c.removeById(t.event.id),i.value=!1},200)},d=()=>{((g==null?void 0:g.items.value)||[]).includes(t.event.id)?(g==null||g.remove(t.event.id),n.value=!1):(g==null||g.add(t.event.id),n.value=!0)},x=()=>{_(!1),o.value&&At(o.value).then(h=>{ae(h,`${t.event.type}-${t.event.id}.png`)}).catch(h=>console.error(h)).finally(()=>{_(!0)})},P=async()=>{try{const h=await(c==null?void 0:c.getItem(t.event.id));h&&ae(JSON.stringify(h,null,2),`${t.event.type}-${t.event.id}.json`,"application/json")}catch(h){console.error(h)}},k=h=>{h===Y.Image?x():P()},F=()=>{_(!1),o.value&&Mt(o.value).then(h=>{h&&navigator.clipboard.write([new ClipboardItem({[h.type]:h})])}).catch(h=>console.error(h)).finally(()=>{_(!0)})};return Re(()=>{n.value=g.items.value.includes(t.event.id)}),(h,X)=>(u(),f("div",{id:h.event.id,ref_key:"eventRef",ref:o,class:j(["preview-card",{"preview-card--deleting":i.value}])},[y(nn,{class:"preview-card__header","event-url":w.value,"event-type":h.event.type,"event-id":h.event.id,tags:v.value,"is-open":!r.value&&!a.value,"is-locked":n.value,"is-visible-controls":s.value&&!a.value,onToggleView:z,onDelete:l,onCopy:F,onDownload:k,onLock:d,onDblclick:z},null,8,["event-url","event-type","event-id","tags","is-open","is-locked","is-visible-controls"]),!r.value&&!a.value?(u(),f("div",an,[xe(h.$slots,"default",{},void 0,!0)],512)):b("",!0),!r.value&&!a.value&&(S.value||h.event.serverName)?(u(),E(Gt,{key:1,class:"preview-card__footer","server-name":h.event.serverName,"origin-config":S.value},null,8,["server-name","origin-config"])):b("",!0)],10,rn))}}),A=I(sn,[["__scopeId","data-v-1aa80559"]]),on={class:"preview-card__content"},ln={class:"preview-card__method"},cn={class:"preview-card__uri"},un=C({__name:"preview-card",props:{event:{}},setup(e){const r=decodeURI(e.event.payload.request.uri);return(n,a)=>(u(),E(p(A),{class:"preview-card",event:n.event},{default:R(()=>[m("div",on,[m("span",ln,T(n.event.payload.request.method),1),W(": "),m("span",cn,"/"+T(p(r)),1)])]),_:1},8,["event"]))}}),dn=I(un,[["__scopeId","data-v-0f718e23"]]),pn={class:"preview-card__content"},mn=C({__name:"preview-card",props:{event:{}},setup(e){return(t,r)=>(u(),E(p(A),{class:"preview-card",event:t.event},{default:R(()=>[m("div",pn,[y(Ve,{transaction:t.event.payload[0]},null,8,["transaction"])])]),_:1},8,["event"]))}}),hn=I(mn,[["__scopeId","data-v-2c3d0492"]]),fn=e=>{var r,n;const t=((n=(r=e.payload)==null?void 0:r.context)==null?void 0:n.source)||null;return{id:e.uuid,type:D.MONOLOG,labels:[D.MONOLOG],origin:t,serverName:"",date:e.timestamp?new Date(e.timestamp*1e3):null,payload:e.payload}},vn=()=>({normalizeMonologEvent:fn}),gn=C({__name:"preview-card",props:{event:{}},setup(e){return(t,r)=>(u(),E(p(A),{class:"preview-card",event:t.event},{default:R(()=>[y(p(N),{class:"preview-card__snippet",code:t.event.payload.message},null,8,["code"]),t.event.payload.context?(u(),E(p(N),{key:0,class:"preview-card__snippet",language:"json",code:t.event.payload.context},null,8,["code"])):b("",!0),(u(!0),f(M,null,H(t.event.payload.extra,(n,a)=>(u(),E(p(N),{key:a,class:"preview-card__snippet",code:{[a]:n}},null,8,["code"]))),128))]),_:1},8,["event"]))}}),_n=I(gn,[["__scopeId","data-v-0daee61c"]]),wn={class:"profiler-preview__link"},yn=C({__name:"preview-card",props:{event:{}},setup(e){return(t,r)=>(u(),E(p(A),{class:"profiler-preview",event:t.event},{default:R(()=>[m("div",wn,[y(p(Me),{cost:t.event.payload.peaks},null,8,["cost"])])]),_:1},8,["event"]))}}),bn=I(yn,[["__scopeId","data-v-ad10f2a2"]]),$n={key:0},En=C({__name:"preview-card",props:{event:{}},setup(e){const t=e,r=$(()=>{const{meta:s,...o}=t.event;return o}),n=$(()=>[`text-${t.event.meta.size}`,`text-${t.event.meta.color}-500`]),a=s=>Ce[s];return(s,o)=>(u(),E(p(A),{class:"ray-dump-preview",event:r.value},{default:R(()=>[(u(!0),f(M,null,H(s.event.payload.payloads,i=>(u(),f(M,{key:`${i.type}-${i.origin?i.origin.line_number:""}`},[i.type&&a(i.type)?(u(),f("div",$n,[(u(),E(he(a(i.type).view),Le({ref_for:!0},{...a(i.type).getProps(i)},{class:n.value}),null,16,["class"]))])):b("",!0)],64))),128))]),_:1},8,["event"]))}}),Sn={class:"preview-card__content"},Cn={class:"preview-card__title"},Pn=["innerHTML"],kn={key:1},Rn={class:"preview-card__content"},xn=["innerHTML"],Tn=C({__name:"preview-card",props:{event:{},maxFrames:{default:3}},setup(e){const t=e,r=$(()=>{var o,i,c;return((c=(i=(o=t.event)==null?void 0:o.payload)==null?void 0:i.exception)==null?void 0:c.values)||[]}),n=$(()=>r.value.length>0),a=$(()=>{var o;return((o=t.event.payload)==null?void 0:o.message)||""}),s=$(()=>r.value.length>0?r.value[0]:{type:"Unknown",value:"Something went wrong",stacktrace:{frames:[]}});return(o,i)=>(u(),E(p(A),{class:"preview-card",event:o.event},{default:R(()=>[n.value?(u(),E(p(He),{key:0,exception:s.value,"max-frames":o.maxFrames},{default:R(()=>[m("div",Sn,[m("h3",Cn,T(s.value.type),1),m("pre",{class:"preview-card__text",innerHTML:s.value.value},null,8,Pn)])]),_:1},8,["exception","max-frames"])):b("",!0),a.value?(u(),f("div",kn,[m("div",Rn,[m("pre",{class:"preview-card__text",innerHTML:a.value},null,8,xn)])])):b("",!0)]),_:1},8,["event"]))}}),Ln=I(Tn,[["__scopeId","data-v-c5c2e9f3"]]),In=e=>(Ie("data-v-1cdba783"),e=e(),Oe(),e),On={class:"smtp-preview__link"},Un={class:"smtp-preview__link-title"},zn={class:"smtp-preview__link-text"},Dn={key:0},Vn=In(()=>m("strong",null,"To:",-1)),An=C({__name:"preview-card",props:{event:{}},setup(e){const t=e,r=$(()=>fe(t.event.date).fromNow()),n=$(()=>{var a,s,o,i;return((i=(o=(s=(a=t==null?void 0:t.event)==null?void 0:a.payload)==null?void 0:s.to)==null?void 0:o[0])==null?void 0:i.email)||null});return(a,s)=>(u(),E(p(A),{class:"smtp-preview",event:a.event},{default:R(()=>[m("div",On,[m("h3",Un,T(a.event.payload.subject),1),m("div",zn,[n.value?(u(),f("span",Dn,[Vn,W(" "+T(n.value),1)])):b("",!0),m("span",null,T(r.value),1)])])]),_:1},8,["event"]))}}),Mn=I(An,[["__scopeId","data-v-1cdba783"]]),Fn=C({__name:"preview-card",props:{event:{}},setup(e){const t=e,r=$(()=>String(t.event.payload.payload.value));return(n,a)=>(u(),E(p(A),{class:"preview-card",event:n.event},{default:R(()=>[y(p(Pe),{value:r.value,type:n.event.payload.payload.type,language:n.event.payload.payload.language||"plaintext"},null,8,["value","type","language"])]),_:1},8,["event"]))}}),Bn=I(Fn,[["__scopeId","data-v-45c84565"]]),Hn=C({__name:"preview-card-default",props:{event:{}},setup(e){return(t,r)=>(u(),E(p(A),{class:"event-card-fallback",event:t.event},{default:R(()=>[y(p(N),{class:"event-card-fallback__snippet",code:t.event,language:"json"},null,8,["code"])]),_:1},8,["event"]))}}),jn=I(Hn,[["__scopeId","data-v-c2147b95"]]),qn=C({__name:"event-card",props:{event:{}},setup(e){const{normalizeRayEvent:t}=Be(),{normalizeProfilerEvent:r}=Fe(),{normalizeVarDumpEvent:n}=Ne(),{normalizeMonologEvent:a}=vn(),{normalizeSentryEvent:s}=je(),{normalizeSmtpEvent:o}=qe(),{normalizeInspectorEvent:i}=Ae(),{normalizeHttpDumpEvent:c}=De(),{normalizeUnknownEvent:g}=te(),v=e,S={[D.SENTRY]:{view:Ln,normalize:s},[D.MONOLOG]:{view:_n,normalize:a},[D.VAR_DUMP]:{view:Bn,normalize:n},[D.RAY_DUMP]:{view:En,normalize:t},[D.SMTP]:{view:Mn,normalize:o},[D.PROFILER]:{view:bn,normalize:r},[D.INSPECTOR]:{view:hn,normalize:i},[D.HTTP_DUMP]:{view:dn,normalize:c},unknown:{view:jn,normalize:g}},{view:w,normalize:z}=S[v.event.type];return(_,l)=>(u(),E(he(p(w)),{event:p(z)(_.event)},null,8,["event"]))}}),Nn={class:"page-placeholder-item"},Wn=["href"],Gn=C({__name:"page-placeholder-item",props:{iconName:{},title:{},linkUrl:{}},setup(e){return(t,r)=>(u(),f("li",Nn,[y(p(U),{name:t.iconName,class:"page-placeholder-item__icon"},null,8,["name"]),m("a",{href:t.linkUrl,class:"page-placeholder-item__link",target:"_blank"},T(t.title),9,Wn)]))}}),Jn=I(Gn,[["__scopeId","data-v-1ff5b0df"]]),Yn={class:"page-placeholder"},Kn={class:"page-placeholder__logo"},Xn={class:"page-placeholder__list"},Qn=C({__name:"page-placeholder",setup(e){const t=[{iconName:"github",title:"Github repository",linkUrl:"https://github.com/buggregator"},{iconName:"docs",title:"Documentation",linkUrl:"https://docs.buggregator.dev"},{iconName:"discord",title:"Join our discord",linkUrl:"https://discord.gg/vDsCD3EKUB"}];return(r,n)=>(u(),f("div",Yn,[m("div",Kn,[y(p(U),{class:"page-placeholder__logo-in",name:"logo"})]),m("ul",Xn,[(u(),f(M,null,H(t,a=>y(Jn,{key:a.title,"icon-name":a.iconName,title:a.title,"link-url":a.linkUrl},null,8,["icon-name","title","link-url"])),64))])]))}}),Zn=I(Qn,[["__scopeId","data-v-6c03d8f9"]]);var Se={exports:{}};(function(e,t){(function(r,n){typeof ke=="function"?e.exports=n():r.pluralize=n()})(Ue,function(){var r=[],n=[],a={},s={},o={};function i(l){return typeof l=="string"?new RegExp("^"+l+"$","i"):l}function c(l,d){return l===d?d:l===l.toLowerCase()?d.toLowerCase():l===l.toUpperCase()?d.toUpperCase():l[0]===l[0].toUpperCase()?d.charAt(0).toUpperCase()+d.substr(1).toLowerCase():d.toLowerCase()}function g(l,d){return l.replace(/\$(\d{1,2})/g,function(x,P){return d[P]||""})}function v(l,d){return l.replace(d[0],function(x,P){var k=g(d[1],arguments);return c(x===""?l[P-1]:x,k)})}function S(l,d,x){if(!l.length||a.hasOwnProperty(l))return d;for(var P=x.length;P--;){var k=x[P];if(k[0].test(d))return v(d,k)}return d}function w(l,d,x){return function(P){var k=P.toLowerCase();return d.hasOwnProperty(k)?c(P,k):l.hasOwnProperty(k)?c(P,l[k]):S(k,P,x)}}function z(l,d,x,P){return function(k){var F=k.toLowerCase();return d.hasOwnProperty(F)?!0:l.hasOwnProperty(F)?!1:S(F,F,x)===F}}function _(l,d,x){var P=d===1?_.singular(l):_.plural(l);return(x?d+" ":"")+P}return _.plural=w(o,s,r),_.isPlural=z(o,s,r),_.singular=w(s,o,n),_.isSingular=z(s,o,n),_.addPluralRule=function(l,d){r.push([i(l),d])},_.addSingularRule=function(l,d){n.push([i(l),d])},_.addUncountableRule=function(l){if(typeof l=="string"){a[l.toLowerCase()]=!0;return}_.addPluralRule(l,"$0"),_.addSingularRule(l,"$0")},_.addIrregularRule=function(l,d){d=d.toLowerCase(),l=l.toLowerCase(),o[l]=d,s[d]=l},[["I","we"],["me","us"],["he","they"],["she","they"],["them","them"],["myself","ourselves"],["yourself","yourselves"],["itself","themselves"],["herself","themselves"],["himself","themselves"],["themself","themselves"],["is","are"],["was","were"],["has","have"],["this","these"],["that","those"],["echo","echoes"],["dingo","dingoes"],["volcano","volcanoes"],["tornado","tornadoes"],["torpedo","torpedoes"],["genus","genera"],["viscus","viscera"],["stigma","stigmata"],["stoma","stomata"],["dogma","dogmata"],["lemma","lemmata"],["schema","schemata"],["anathema","anathemata"],["ox","oxen"],["axe","axes"],["die","dice"],["yes","yeses"],["foot","feet"],["eave","eaves"],["goose","geese"],["tooth","teeth"],["quiz","quizzes"],["human","humans"],["proof","proofs"],["carve","carves"],["valve","valves"],["looey","looies"],["thief","thieves"],["groove","grooves"],["pickaxe","pickaxes"],["passerby","passersby"]].forEach(function(l){return _.addIrregularRule(l[0],l[1])}),[[/s?$/i,"s"],[/[^\u0000-\u007F]$/i,"$0"],[/([^aeiou]ese)$/i,"$1"],[/(ax|test)is$/i,"$1es"],[/(alias|[^aou]us|t[lm]as|gas|ris)$/i,"$1es"],[/(e[mn]u)s?$/i,"$1s"],[/([^l]ias|[aeiou]las|[ejzr]as|[iu]am)$/i,"$1"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1i"],[/(alumn|alg|vertebr)(?:a|ae)$/i,"$1ae"],[/(seraph|cherub)(?:im)?$/i,"$1im"],[/(her|at|gr)o$/i,"$1oes"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|automat|quor)(?:a|um)$/i,"$1a"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)(?:a|on)$/i,"$1a"],[/sis$/i,"ses"],[/(?:(kni|wi|li)fe|(ar|l|ea|eo|oa|hoo)f)$/i,"$1$2ves"],[/([^aeiouy]|qu)y$/i,"$1ies"],[/([^ch][ieo][ln])ey$/i,"$1ies"],[/(x|ch|ss|sh|zz)$/i,"$1es"],[/(matr|cod|mur|sil|vert|ind|append)(?:ix|ex)$/i,"$1ices"],[/\b((?:tit)?m|l)(?:ice|ouse)$/i,"$1ice"],[/(pe)(?:rson|ople)$/i,"$1ople"],[/(child)(?:ren)?$/i,"$1ren"],[/eaux$/i,"$0"],[/m[ae]n$/i,"men"],["thou","you"]].forEach(function(l){return _.addPluralRule(l[0],l[1])}),[[/s$/i,""],[/(ss)$/i,"$1"],[/(wi|kni|(?:after|half|high|low|mid|non|night|[^\w]|^)li)ves$/i,"$1fe"],[/(ar|(?:wo|[ae])l|[eo][ao])ves$/i,"$1f"],[/ies$/i,"y"],[/\b([pl]|zomb|(?:neck|cross)?t|coll|faer|food|gen|goon|group|lass|talk|goal|cut)ies$/i,"$1ie"],[/\b(mon|smil)ies$/i,"$1ey"],[/\b((?:tit)?m|l)ice$/i,"$1ouse"],[/(seraph|cherub)im$/i,"$1"],[/(x|ch|ss|sh|zz|tto|go|cho|alias|[^aou]us|t[lm]as|gas|(?:her|at|gr)o|[aeiou]ris)(?:es)?$/i,"$1"],[/(analy|diagno|parenthe|progno|synop|the|empha|cri|ne)(?:sis|ses)$/i,"$1sis"],[/(movie|twelve|abuse|e[mn]u)s$/i,"$1"],[/(test)(?:is|es)$/i,"$1is"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1us"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|quor)a$/i,"$1um"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)a$/i,"$1on"],[/(alumn|alg|vertebr)ae$/i,"$1a"],[/(cod|mur|sil|vert|ind)ices$/i,"$1ex"],[/(matr|append)ices$/i,"$1ix"],[/(pe)(rson|ople)$/i,"$1rson"],[/(child)ren$/i,"$1"],[/(eau)x?$/i,"$1"],[/men$/i,"man"]].forEach(function(l){return _.addSingularRule(l[0],l[1])}),["adulthood","advice","agenda","aid","aircraft","alcohol","ammo","analytics","anime","athletics","audio","bison","blood","bream","buffalo","butter","carp","cash","chassis","chess","clothing","cod","commerce","cooperation","corps","debris","diabetes","digestion","elk","energy","equipment","excretion","expertise","firmware","flounder","fun","gallows","garbage","graffiti","hardware","headquarters","health","herpes","highjinks","homework","housework","information","jeans","justice","kudos","labour","literature","machinery","mackerel","mail","media","mews","moose","music","mud","manga","news","only","personnel","pike","plankton","pliers","police","pollution","premises","rain","research","rice","salmon","scissors","series","sewage","shambles","shrimp","software","species","staff","swine","tennis","traffic","transportation","trout","tuna","wealth","welfare","whiting","wildebeest","wildlife","you",/pok[eé]mon$/i,/[^aeiou]ese$/i,/deer$/i,/fish$/i,/measles$/i,/o[iu]s$/i,/pox$/i,/sheep$/i].forEach(_.addUncountableRule),_})})(Se);var er=Se.exports;const tr=ze(er),nr=["disabled"],rr=["title"],ar=C({__name:"pause-button",props:{disabled:{type:Boolean},isPaused:{type:Boolean},totalNewEventsCount:{}},emits:["toggleUpdate"],setup(e,{emit:t}){const r=t,n=e,a=$(()=>tr("new event",n.totalNewEventsCount,!0)),s=()=>{r("toggleUpdate",!0)};return(o,i)=>(u(),f("button",{class:j(["pause-button",{"pause-button--active":o.isPaused}]),disabled:o.disabled,onClick:s},[y(p(U),{name:o.isPaused?"bolt-slash":"bolt",class:"pause-button__icon"},null,8,["name"]),m("span",null,T(o.isPaused?"Paused":"Listening"),1),o.isPaused&&o.totalNewEventsCount?(u(),f("span",{key:0,class:"pause-button__count",title:a.value},T(o.totalNewEventsCount),9,rr)):b("",!0)],10,nr))}}),sr=I(ar,[["__scopeId","data-v-cb7bf4db"]]),or={class:"page-layout"},ir=m("span",null," / ",-1),lr={key:0,class:"page-layout__events"},cr={key:1,class:"page-layout__welcome"},br=C({__name:"page-layout",props:{title:{default:""},type:{}},setup(e){const t=e,{events:r,cachedEvents:n}=te(),a=$(()=>{var v;return((v=n.idsByType.value[t.type])==null?void 0:v.length)>0}),s=$(()=>t.type===se.ALL_EVENTS?r.items.value:r.items.value.filter(({type:v})=>v===t.type));We({title:`${t.title||"Events"}: ${s.value.length} | Buggregator`});const o=$(()=>a.value?s.value.filter(({uuid:v})=>{var S;return(S=n.idsByType.value[t.type])==null?void 0:S.includes(v)}):s.value),i=$(()=>r.items.value.length-o.value.length),c=()=>t.type===se.ALL_EVENTS?r.removeAll():r.removeByType(t.type),g=()=>{a.value?n.runUpdatesByType(t.type):n.stopUpdatesByType(t.type)};return(v,S)=>{const w=me;return u(),f("div",or,[y(p(Ge),{class:"page-layout__head","button-title":"Clear events",onDelete:c},{controls:R(()=>[y(p(sr),{disabled:o.value.length===0,"is-paused":a.value,"total-new-events-count":i.value,onToggleUpdate:g},null,8,["disabled","is-paused","total-new-events-count"])]),default:R(()=>[y(w,{to:"/",disabled:!v.title},{default:R(()=>[W("Home")]),_:1},8,["disabled"]),v.title?(u(),f(M,{key:0},[ir,y(w,{disabled:!0},{default:R(()=>[W(T(v.title),1)]),_:1})],64)):b("",!0)]),_:1}),o.value.length?(u(),f("main",lr,[(u(!0),f(M,null,H(o.value,z=>(u(),E(p(qn),{key:z.uuid,event:z,class:"page-layout__event"},null,8,["event"]))),128))])):b("",!0),o.value.length?b("",!0):(u(),f("section",cr,[y(p(Zn),{class:"page-layout__tips"})]))])}}});export{br as _}; diff --git a/resources/frontend/_nuxt/DvO467xH.js b/resources/frontend/_nuxt/DvO467xH.js new file mode 100644 index 00000000..3002f5d0 --- /dev/null +++ b/resources/frontend/_nuxt/DvO467xH.js @@ -0,0 +1 @@ +import{_ as o}from"./Dp5Hh4Yf.js";import{P as r}from"./BefdN0MI.js";import{d as p,o as m,h as e,u as t}from"./BqbMuE7y.js";import"./Cuqdu9nB.js";import"./B3ev0iw2.js";import"./Cduf3Gc_.js";import"./DdKTkMGq.js";import"./CF6J2D0o.js";import"./DAR3qIk9.js";import"./BCrvxhm1.js";import"./BnFX9pPB.js";import"./DUf8yZCu.js";import"./k1uqWTyJ.js";const B=p({__name:"index",setup(i){return(n,a)=>(m(),e(t(o),{type:t(r).INSPECTOR,title:"Inspector"},null,8,["type"]))}});export{B as default}; diff --git a/resources/frontend/_nuxt/DzqND28P.js b/resources/frontend/_nuxt/DzqND28P.js new file mode 100644 index 00000000..7470c65d --- /dev/null +++ b/resources/frontend/_nuxt/DzqND28P.js @@ -0,0 +1 @@ +import{_ as o}from"./Dp5Hh4Yf.js";import{P as r}from"./BefdN0MI.js";import{d as p,o as m,h as e,u as t}from"./BqbMuE7y.js";import"./Cuqdu9nB.js";import"./B3ev0iw2.js";import"./Cduf3Gc_.js";import"./DdKTkMGq.js";import"./CF6J2D0o.js";import"./DAR3qIk9.js";import"./BCrvxhm1.js";import"./BnFX9pPB.js";import"./DUf8yZCu.js";import"./k1uqWTyJ.js";const B=p({__name:"index",setup(i){return(a,n)=>(m(),e(t(o),{type:t(r).HTTP_DUMP,title:"HttpDump"},null,8,["type"]))}});export{B as default}; diff --git a/resources/frontend/_nuxt/O373Xneh.js b/resources/frontend/_nuxt/O373Xneh.js new file mode 100644 index 00000000..b86b5112 --- /dev/null +++ b/resources/frontend/_nuxt/O373Xneh.js @@ -0,0 +1 @@ +import{_ as b}from"./Cuqdu9nB.js";import{d as S,L as k,c as x,o as T,a as H,f as e,w as d,u as t,b as s,t as u,s as o,e as m,p as I,i as C,_ as D}from"./BqbMuE7y.js";import"./BBk2F9bR.js";import{u as N,P as w}from"./k1uqWTyJ.js";import{u as B,I as _,T as E}from"./BefdN0MI.js";const v=n=>(I("data-v-5c62be50"),n=n(),C(),n),L={class:"settings-page"},M={class:"settings-page__content-wr"},O={class:"settings-page__content"},V={class:"settings-page__title"},y={class:"settings-page__control"},F=v(()=>s("span",{class:"settings-page__control-button-in"},null,-1)),P=[F],R={class:"settings-page__title"},z={class:"settings-page__control"},A=v(()=>s("span",{class:"settings-page__control-button-in"},null,-1)),K=[A],j=S({__name:"settings",setup(n){const g=B(),{changeTheme:r,changeNavbar:p}=g,{themeType:h,isFixedHeader:a}=k(g);N({title:"Settings | Buggregator"});const c=x(()=>h.value===E.DARK);return(q,i)=>{const f=b;return T(),H("main",L,[e(t(w),{class:"settings-page__header"},{default:d(()=>[e(f,{to:"/"},{default:d(()=>[m("Home")]),_:1}),m(" / Settings ")]),_:1}),s("div",M,[s("section",O,[s("div",V," Theme: "+u(c.value?"Dark":"Light"),1),s("div",y,[e(t(_),{name:"sun",class:o(["settings-page__control-icon",{"settings-page__control-icon--active":!c.value}])},null,8,["class"]),s("button",{class:o(["settings-page__control-button",{"settings-page__control-button--active":c.value}]),onClick:i[0]||(i[0]=(...l)=>t(r)&&t(r)(...l))},P,2),e(t(_),{class:o(["settings-page__control-icon",{"settings-page__control-icon--active":c.value}]),name:"moon"},null,8,["class"])]),s("div",R," Fixed Header: "+u(t(a)?"On":"Off"),1),s("div",z,[e(t(_),{name:"lock-off",class:o(["settings-page__control-icon",{"settings-page__control-icon--active":!t(a)}])},null,8,["class"]),s("button",{class:o(["settings-page__control-button",{"settings-page__control-button--active":t(a)}]),onClick:i[1]||(i[1]=(...l)=>t(p)&&t(p)(...l))},K,2),e(t(_),{class:o(["settings-page__control-icon",{"settings-page__control-icon--active":t(a)}]),name:"lock"},null,8,["class"])])])])])}}}),X=D(j,[["__scopeId","data-v-5c62be50"]]);export{X as default}; diff --git a/resources/frontend/_nuxt/OC0GW5jB.js b/resources/frontend/_nuxt/OC0GW5jB.js new file mode 100644 index 00000000..5b54031c --- /dev/null +++ b/resources/frontend/_nuxt/OC0GW5jB.js @@ -0,0 +1 @@ +import{_ as o}from"./Dp5Hh4Yf.js";import{P as r}from"./BefdN0MI.js";import{d as p,o as m,h as e,u as t}from"./BqbMuE7y.js";import"./Cuqdu9nB.js";import"./B3ev0iw2.js";import"./Cduf3Gc_.js";import"./DdKTkMGq.js";import"./CF6J2D0o.js";import"./DAR3qIk9.js";import"./BCrvxhm1.js";import"./BnFX9pPB.js";import"./DUf8yZCu.js";import"./k1uqWTyJ.js";const B=p({__name:"index",setup(i){return(a,n)=>(m(),e(t(o),{type:t(r).VAR_DUMP,title:"Var Dumps"},null,8,["type"]))}});export{B as default}; diff --git a/resources/frontend/_nuxt/QHAIPh3w.js b/resources/frontend/_nuxt/QHAIPh3w.js new file mode 100644 index 00000000..c14d3944 --- /dev/null +++ b/resources/frontend/_nuxt/QHAIPh3w.js @@ -0,0 +1 @@ +import{b as Y,C as R,T as z,a as g,u as q,_ as U}from"./Cuqdu9nB.js";import{h as x}from"./BefdN0MI.js";import{d as A,o as s,a as d,F as k,r as H,t as u,g as m,b as l,_ as F,l as I,c as f,f as n,w as o,u as t,s as K,e as v,h as i,p as N,i as P,j as W,k as X,m as Z,n as G}from"./BqbMuE7y.js";import{u as J}from"./DU45Wy3H.js";import{q as O,W as $}from"./BIL_AGmQ.js";import{F as Q}from"./CKX8kQhS.js";import"./BBk2F9bR.js";import{u as ee,P as te}from"./k1uqWTyJ.js";import{u as M}from"./BnFX9pPB.js";import"./CF6J2D0o.js";const se={class:"smtp-page-addresses"},ae={key:0,class:"smtp-page-addresses__item-name"},ne=A({__name:"smtp-page-addresses",props:{addresses:{}},setup(r){return(a,S)=>(s(),d("div",se,[(s(!0),d(k,null,H(a.addresses,h=>(s(),d("div",{key:h.email,class:"smtp-page-addresses__item"},[h.name?(s(),d("span",ae,u(h.name),1)):m("",!0),l("span",null,u(h.email),1)]))),128))]))}}),T=F(ne,[["__scopeId","data-v-217deb6c"]]),oe=r=>(N("data-v-afd5fd0a"),r=r(),P(),r),le={ref:"main",class:"smtp-page"},de={class:"smtp-page__main"},re={class:"smtp-page__header"},ce={class:"smtp-page__header-title"},ue={class:"smtp-page__header-meta"},pe={class:"smtp-page__header-date"},me={class:"smtp-page__sender"},_e={class:"smtp-page__sender-title"},ie={class:"smtp-page__sender-address"},ve={class:"smtp-page__body"},he=["innerHTML"],fe={class:"mb-5"},ye={class:"flex gap-x-3"},ge=oe(()=>l("h3",{class:"mb-3 font-bold"},"Email Headers",-1)),ke=A({__name:"smtp-page",props:{event:{},attachments:{default:()=>[]},htmlSource:{}},setup(r){const a=r,S=I(a.htmlSource||a.event.payload.html),h=f(()=>[{title:"From",address:a.event.payload.from},{title:"To",address:a.event.payload.to},{title:"CC",address:a.event.payload.cc},{title:"BCC",address:a.event.payload.bcc},{title:"Reply to",address:a.event.payload.reply_to}]),b=f(()=>{var e,c;return((e=a.event.payload)==null?void 0:e.html)!==void 0&&((c=a.event.payload)==null?void 0:c.html)!==""}),y=f(()=>{var e,c;return((e=a.event.payload)==null?void 0:e.text)!==void 0&&((c=a.event.payload)==null?void 0:c.text)!==""}),w=f(()=>a.event.payload),B=f(()=>x(a.event.date).format("DD.MM.YYYY HH:mm:ss"));return(e,c)=>(s(),d("div",le,[l("main",de,[l("header",re,[l("h2",ce,u(w.value.subject),1),l("div",ue,[l("span",pe,u(B.value),1)])]),l("section",me,[(s(!0),d(k,null,H(h.value,p=>(s(),d(k,null,[(s(!0),d(k,null,H(p.address,_=>(s(),d("div",{key:`${p.title}-${_.email}`,class:K(["smtp-page__sender-item",`smtp-page__sender-${p.title.toLowerCase()}`])},[l("div",_e,u(p.title),1),l("div",ie,[_.name?(s(),d(k,{key:0},[v(u(_.name)+" ["+u(_.email)+"] ",1)],64)):(s(),d(k,{key:1},[v(u(_.email),1)],64))])],2))),128))],64))),256))]),l("section",ve,[n(t(O),{options:{useUrlFragment:!1}},{default:o(()=>[b.value?(s(),i(t($),{key:0,id:"html-preview",name:"Preview",suffix:"HTML"},{default:o(()=>[n(t(Y),{device:"tablet"},{default:o(()=>[l("div",{innerHTML:S.value},null,8,he)]),_:1})]),_:1})):m("",!0),b.value?(s(),i(t($),{key:1,name:"HTML"},{default:o(()=>[n(t(R),{language:"html",class:"max-w-full",code:e.event.payload.html},null,8,["code"])]),_:1})):m("",!0),y.value?(s(),i(t($),{key:2,name:"Text"},{default:o(()=>[n(t(R),{language:"html",class:"max-w-full",code:e.event.payload.text},null,8,["code"])]),_:1})):m("",!0),e.attachments.length?(s(),i(t($),{key:3,name:`Attachments (${e.attachments.length})`},{default:o(()=>[l("section",fe,[l("div",ye,[(s(!0),d(k,null,H(e.attachments,p=>(s(),i(t(Q),{key:p.uuid,"event-id":e.event.id,event:e.event,attachment:p},null,8,["event-id","event","attachment"]))),128))])])]),_:1},8,["name"])):m("",!0),n(t($),{name:"Raw"},{default:o(()=>[n(t(R),{language:"html",code:e.event.payload.raw},null,8,["code"])]),_:1}),n(t($),{name:"Tech Info"},{default:o(()=>[l("section",null,[ge,n(t(z),null,{default:o(()=>[n(t(g),{title:"Id"},{default:o(()=>[v(u(e.event.payload.id),1)]),_:1}),n(t(g),{title:"Subject"},{default:o(()=>[v(u(e.event.payload.subject),1)]),_:1}),n(t(g),{title:"From"},{default:o(()=>[n(t(T),{addresses:e.event.payload.from},null,8,["addresses"])]),_:1}),n(t(g),{title:"To"},{default:o(()=>[n(t(T),{addresses:e.event.payload.to},null,8,["addresses"])]),_:1}),e.event.payload.cc.length?(s(),i(t(g),{key:0,title:"Cc"},{default:o(()=>[n(t(T),{addresses:e.event.payload.cc},null,8,["addresses"])]),_:1})):m("",!0),e.event.payload.bcc.length?(s(),i(t(g),{key:1,title:"Bcc"},{default:o(()=>[n(t(T),{addresses:e.event.payload.bcc},null,8,["addresses"])]),_:1})):m("",!0),e.event.payload.reply_to.length?(s(),i(t(g),{key:2,title:"Reply to"},{default:o(()=>[n(t(T),{addresses:e.event.payload.reply_to},null,8,["addresses"])]),_:1})):m("",!0)]),_:1})])]),_:1})]),_:1})])])],512))}}),be=F(ke,[["__scopeId","data-v-afd5fd0a"]]);function $e(r){return r.replace(/./gm,a=>a.match(/[a-z0-9\s]+/i)?a:`&#${a.charCodeAt(0)};`)}const L=r=>(N("data-v-23378347"),r=r(),P(),r),Te={class:"smtp-event"},Se={key:0,class:"smtp-event__loading"},we=L(()=>l("div",null,null,-1)),Ce=L(()=>l("div",null,null,-1)),He=L(()=>l("div",null,null,-1)),Ie=[we,Ce,He],Be={class:"smtp-event__body"},Ee=A({__name:"[id]",setup(r){const{normalizeSmtpEvent:a}=M(),{params:S}=W(),{$authToken:h}=G(),b=X(),y=S.id;ee({title:`SMTP > ${y} | Buggregator`});const{events:w}=q(),{getAttachments:B}=M(),e=I(!1),c=I(null),p=I([]),_=f(()=>c.value?a(c.value):null),D=f(()=>p.value),V=f(()=>`