diff --git a/resources/frontend/200.html b/resources/frontend/200.html new file mode 100644 index 00000000..e0258d32 --- /dev/null +++ b/resources/frontend/200.html @@ -0,0 +1,20 @@ + + + + +Buggregator + + + + + + + + + + + + +
+ + \ No newline at end of file diff --git a/resources/frontend/404.html b/resources/frontend/404.html new file mode 100644 index 00000000..e0258d32 --- /dev/null +++ b/resources/frontend/404.html @@ -0,0 +1,20 @@ + + + + +Buggregator + + + + + + + + + + + + +
+ + \ No newline at end of file diff --git a/resources/frontend/_nuxt/_id_.2d751603.css b/resources/frontend/_nuxt/_id_.2d751603.css new file mode 100644 index 00000000..1eb69789 --- /dev/null +++ b/resources/frontend/_nuxt/_id_.2d751603.css @@ -0,0 +1 @@ +.call-stack-row[data-v-15b83beb]{align-items:stretch;cursor:pointer;display:flex}.call-stack-row[data-v-15b83beb]>:not([hidden])~:not([hidden]){--tw-divide-x-reverse:0;--tw-divide-opacity:1;border-color:#e5e7eb;border-color:rgb(229 231 235/var(--tw-divide-opacity));border-left-width:1px;border-left-width:calc(1px*(1 - var(--tw-divide-x-reverse)));border-right-width:0;border-right-width:calc(1px*var(--tw-divide-x-reverse))}.call-stack-row[data-v-15b83beb]:hover{--tw-bg-opacity:1;background-color:#e5e7eb;background-color:rgb(229 231 235/var(--tw-bg-opacity))}[data-v-15b83beb]:is(.dark .call-stack-row)>:not([hidden])~:not([hidden]){--tw-divide-opacity:1;border-color:#4b5563;border-color:rgb(75 85 99/var(--tw-divide-opacity))}[data-v-15b83beb]:is(.dark .call-stack-row:hover){--tw-bg-opacity:1;background-color:#4b5563;background-color:rgb(75 85 99/var(--tw-bg-opacity))}.call-stack-row__calls[data-v-15b83beb]{padding-bottom:.25rem;padding-top:.25rem;width:4rem}.call-stack-row__calls[data-v-15b83beb],.call-stack-row__usage[data-v-15b83beb]{font-size:.75rem;line-height:1rem;text-align:center}.call-stack-row__usage[data-v-15b83beb]{flex:1 1 0%;position:relative}.call-stack-row__usage-cpu[data-v-15b83beb]{background-color:#881337;background-color:rgb(136 19 55/var(--tw-bg-opacity));opacity:.6}.call-stack-row__usage-cpu[data-v-15b83beb],.call-stack-row__usage-memory[data-v-15b83beb]{--tw-bg-opacity:1;font-size:.875rem;height:100%;line-height:1.25rem}.call-stack-row__usage-memory[data-v-15b83beb]{background-color:#3730a3;background-color:rgb(55 48 163/var(--tw-bg-opacity));margin-top:-1.5rem;opacity:.4}.call-stack-row__usage-title[data-v-15b83beb]{--tw-text-opacity:1;color:#1e3a8a;color:rgb(30 58 138/var(--tw-text-opacity));font-weight:700;top:0;right:0;bottom:0;left:0;padding-bottom:.25rem;padding-top:.25rem;position:absolute}[data-v-15b83beb]:is(.dark .call-stack-row__usage-title){--tw-text-opacity:1;color:#e5e7eb;color:rgb(229 231 235/var(--tw-text-opacity))}.call-stack__header[data-v-57da93b2]{--tw-bg-opacity:1;--tw-text-opacity:1;align-items:stretch;background-color:#9ca3af;background-color:rgb(156 163 175/var(--tw-bg-opacity));color:#1f2937;color:rgb(31 41 55/var(--tw-text-opacity));display:flex;font-size:.75rem;font-weight:700;line-height:1rem;padding-bottom:.5rem;padding-top:.5rem;text-align:center;text-transform:uppercase}[data-v-57da93b2]:is(.dark .call-stack__header){--tw-bg-opacity:1;--tw-text-opacity:1;background-color:#4b5563;background-color:rgb(75 85 99/var(--tw-bg-opacity));color:#fff;color:rgb(255 255 255/var(--tw-text-opacity))}.call-stack__header-cpu[data-v-57da93b2]{--tw-text-opacity:1;color:#1f2937;color:rgb(31 41 55/var(--tw-text-opacity));flex:1 1 0%}[data-v-57da93b2]:is(.dark .call-stack__header-cpu){--tw-text-opacity:1;color:#fff;color:rgb(255 255 255/var(--tw-text-opacity))}.call-stack__header-calls[data-v-57da93b2]{width:4rem}.call-stack__calls[data-v-57da93b2]{display:flex;flex-direction:column}.call-stack__calls[data-v-57da93b2]>:not([hidden])~:not([hidden]){--tw-divide-y-reverse:0;--tw-divide-opacity:1;border-bottom-width:0;border-bottom-width:calc(1px*var(--tw-divide-y-reverse));border-color:#e5e7eb;border-color:rgb(229 231 235/var(--tw-divide-opacity));border-top-width:1px;border-top-width:calc(1px*(1 - var(--tw-divide-y-reverse)))}[data-v-57da93b2]:is(.dark .call-stack__calls)>:not([hidden])~:not([hidden]){--tw-divide-opacity:1;border-color:#4b5563;border-color:rgb(75 85 99/var(--tw-divide-opacity))}.call-stat-board[data-v-e34163d2]{--tw-border-opacity:1;--tw-bg-opacity:1;background-color:#1f2937;background-color:rgb(31 41 55/var(--tw-bg-opacity));border-color:#4b5563;border-color:rgb(75 85 99/var(--tw-border-opacity));border-width:1px}.call-stat-board__title[data-v-e34163d2]{--tw-text-opacity:1;color:#d1d5db;color:rgb(209 213 219/var(--tw-text-opacity));font-weight:700;overflow:hidden;padding:.5rem 1rem;text-overflow:ellipsis;white-space:nowrap}.call-stat-board__body[data-v-e34163d2]{padding-top:0}@keyframes lds-ellipsis1-fd6843c2{0%{transform:scale(0)}to{transform:scale(1)}}@keyframes lds-ellipsis3-fd6843c2{0%{transform:scale(1)}to{transform:scale(0)}}@keyframes lds-ellipsis2-fd6843c2{0%{transform:translate(0)}to{transform:translate(24px)}}.call-graph[data-v-fd6843c2]{--tw-border-opacity:1;border-color:#111827;border-color:rgb(17 24 39/var(--tw-border-opacity));border-radius:.25rem;border-width:1px;display:flex;height:100%;min-height:-moz-min-content;min-height:min-content;min-width:-moz-min-content;min-width:min-content;position:relative}.call-graph__graph[data-v-fd6843c2]{display:flex;height:100%;width:100%}.call-graph--fullscreen[data-v-fd6843c2]{--tw-bg-opacity:1;background-color:#1f2937;background-color:rgb(31 41 55/var(--tw-bg-opacity));border-radius:0;height:100%;left:0;margin-top:0;position:fixed;top:0;width:100%;z-index:99999}.call-graph__toolbar[data-v-fd6843c2]{--tw-bg-opacity:1;--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color);background-color:#e5e7eb;background-color:rgb(229 231 235/var(--tw-bg-opacity));border-radius:.25rem;box-shadow:0 0 #0000,0 0 #0000,0 10px 15px -3px #0000001a,0 4px 6px -4px #0000001a;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);-moz-column-gap:1.25rem;column-gap:1.25rem;display:flex;left:1.25rem;padding:.5rem;position:absolute;top:1.25rem}.call-graph__toolbar--right[data-v-fd6843c2]{left:auto;padding-bottom:.25rem;padding-top:.25rem;right:1.25rem}.call-graph__toolbar-icon[data-v-fd6843c2]{fill:#3b82f6;height:1rem;width:1rem}.call-graph__toolbar-action[data-v-fd6843c2]{--tw-text-opacity:1;color:#4b5563;color:rgb(75 85 99/var(--tw-text-opacity));font-size:.75rem;line-height:1rem;text-transform:uppercase}.call-graph__toolbar-action--active[data-v-fd6843c2]{font-weight:700}.call-graph__toolbar-input-wr[data-v-fd6843c2]{--tw-text-opacity:1;color:#4b5563;color:rgb(75 85 99/var(--tw-text-opacity));font-size:.75rem;line-height:1rem;text-transform:uppercase}.call-graph__toolbar-input[data-v-fd6843c2]{--tw-border-opacity:1;--tw-bg-opacity:1;--tw-text-opacity:1;background-color:#d1d5db;background-color:rgb(209 213 219/var(--tw-bg-opacity));border-color:#4b5563;border-color:rgb(75 85 99/var(--tw-border-opacity));border-radius:.25rem;color:#4b5563;color:rgb(75 85 99/var(--tw-text-opacity));font-weight:700;margin-left:.25rem;padding-bottom:.25rem;padding-top:.25rem;text-align:right;width:2.5rem}.flame-graph[data-v-3fdcffce]{min-height:500px;position:relative}.flame-graph[data-v-3fdcffce],.flame-graph__canvas[data-v-3fdcffce]{height:100%;width:100%}.flame-graph__canvas[data-v-3fdcffce]{--tw-bg-opacity:1;background-color:#d1d5db;background-color:rgb(209 213 219/var(--tw-bg-opacity));padding-left:1.25rem;padding-right:1.25rem}.profiler-page[data-v-01765fde]{position:relative}.profiler-page__main[data-v-01765fde]{display:flex;flex-direction:column}@media (min-width:768px){.profiler-page__main[data-v-01765fde]{flex-direction:row}}.profiler-page__callstack[data-v-01765fde]{--tw-border-opacity:1;border-color:#d1d5db;border-color:rgb(209 213 219/var(--tw-border-opacity));border-right-width:1px;width:100%}[data-v-01765fde]:is(.dark .profiler-page__callstack){--tw-border-opacity:1;border-color:#6b7280;border-color:rgb(107 114 128/var(--tw-border-opacity))}@media (min-width:768px){.profiler-page__callstack[data-v-01765fde]{width:250px}}.profiler-page__stat[data-v-01765fde]{display:flex;flex-direction:column;width:100%}.profiler-page__stat[data-v-01765fde]>:not([hidden])~:not([hidden]){--tw-divide-y-reverse:0;--tw-divide-opacity:1;border-bottom-width:0;border-bottom-width:calc(1px*var(--tw-divide-y-reverse));border-color:#d1d5db;border-color:rgb(209 213 219/var(--tw-divide-opacity));border-top-width:1px;border-top-width:calc(1px*(1 - var(--tw-divide-y-reverse)))}[data-v-01765fde]:is(.dark .profiler-page__stat)>:not([hidden])~:not([hidden]){--tw-divide-opacity:1;border-color:#6b7280;border-color:rgb(107 114 128/var(--tw-divide-opacity))}.profiler-page__stat-board[data-v-01765fde]{--tw-bg-opacity:1;background-color:#e5e7eb;background-color:rgb(229 231 235/var(--tw-bg-opacity))}[data-v-01765fde]:is(.dark .profiler-page__stat-board){--tw-bg-opacity:1;background-color:#1f2937;background-color:rgb(31 41 55/var(--tw-bg-opacity))}.profiler-page__stat-tabs[data-v-01765fde]{--tw-bg-opacity:1;background-color:#e5e7eb;background-color:rgb(229 231 235/var(--tw-bg-opacity));display:flex;flex:1 1 0%;flex-direction:column;padding:1.25rem}[data-v-01765fde]:is(.dark .profiler-page__stat-tabs){--tw-bg-opacity:1;--tw-text-opacity:1;background-color:#1f2937;background-color:rgb(31 41 55/var(--tw-bg-opacity));color:#d1d5db;color:rgb(209 213 219/var(--tw-text-opacity))}.profiler-page__stat-tabs .tabs-component-panel[data-v-01765fde]{height:100%}.profiler-page__hover-edge[data-v-01765fde]{height:auto;position:absolute;z-index:10}@keyframes lds-ellipsis1-505064f6{0%{transform:scale(0)}to{transform:scale(1)}}@keyframes lds-ellipsis3-505064f6{0%{transform:scale(1)}to{transform:scale(0)}}@keyframes lds-ellipsis2-505064f6{0%{transform:translate(0)}to{transform:translate(24px)}}.profiler-event[data-v-505064f6]{--tw-bg-opacity:1;background-color:#fff;background-color:rgb(255 255 255/var(--tw-bg-opacity));min-height:100vh;position:relative}[data-v-505064f6]:is(.dark .profiler-event){--tw-bg-opacity:1;background-color:#1f2937;background-color:rgb(31 41 55/var(--tw-bg-opacity))}.profiler-event__head[data-v-505064f6]{--tw-border-opacity:1;--tw-bg-opacity:1;background-color:#fff;background-color:rgb(255 255 255/var(--tw-bg-opacity));border-bottom-width:1px;border-color:#e5e7eb;border-color:rgb(229 231 235/var(--tw-border-opacity));height:3rem;justify-content:space-between;left:2.5rem;padding-left:1rem;padding-right:1rem;z-index:50}[data-v-505064f6]:is(.dark .profiler-event__head){--tw-border-opacity:1;--tw-bg-opacity:1;background-color:#1f2937;background-color:rgb(31 41 55/var(--tw-bg-opacity));border-color:#374151;border-color:rgb(55 65 81/var(--tw-border-opacity))}.profiler-event__head[data-v-505064f6]{left:0;position:absolute;right:0}html.navbar-fixed .profiler-event__head[data-v-505064f6]{left:2.5rem;position:fixed;right:0}@media (min-width:768px){html.navbar-fixed .profiler-event__head[data-v-505064f6]{left:3.5rem}}@media (min-width:1024px){html.navbar-fixed .profiler-event__head[data-v-505064f6]{left:4rem}}.profiler-event__loading[data-v-505064f6]{display:inline-block;display:flex;flex:1 1 0%;flex-direction:column;height:80px;left:50%;padding-top:3rem;position:absolute;top:50%;transform:translate(-40px,-40px);width:80px}.profiler-event__loading div[data-v-505064f6]{animation-timing-function:cubic-bezier(0,1,1,0);background:currentColor;border-radius:50%;height:13px;position:absolute;top:33px;width:13px}.profiler-event__loading div[data-v-505064f6]:first-child{animation:lds-ellipsis1-505064f6 .6s infinite;left:8px}.profiler-event__loading div[data-v-505064f6]:nth-child(2){animation:lds-ellipsis2-505064f6 .6s infinite;left:8px}.profiler-event__loading div[data-v-505064f6]:nth-child(3){animation:lds-ellipsis2-505064f6 .6s infinite;left:32px}.profiler-event__loading div[data-v-505064f6]:nth-child(4){animation:lds-ellipsis3-505064f6 .6s infinite;left:56px}.profiler-event__body[data-v-505064f6]{display:flex;flex:1 1 0%;flex-direction:column;padding-top:3rem} diff --git a/resources/frontend/_nuxt/_id_.3a868089.css b/resources/frontend/_nuxt/_id_.3a868089.css new file mode 100644 index 00000000..629f00c2 --- /dev/null +++ b/resources/frontend/_nuxt/_id_.3a868089.css @@ -0,0 +1 @@ +@keyframes lds-ellipsis1-63ed9648{0%{transform:scale(0)}to{transform:scale(1)}}@keyframes lds-ellipsis3-63ed9648{0%{transform:scale(1)}to{transform:scale(0)}}@keyframes lds-ellipsis2-63ed9648{0%{transform:translate(0)}to{transform:translate(24px)}}.http-dump-page[data-v-63ed9648]{position:relative}.http-dump-page[data-v-63ed9648],.http-dump-page__main[data-v-63ed9648]{display:flex;flex:1 1 0%;flex-direction:column}.http-dump-page__main[data-v-63ed9648]{height:100%;padding:1.25rem 1rem;row-gap:2.5rem}@media (min-width:768px){.http-dump-page__main[data-v-63ed9648]{padding-left:1.5rem;padding-right:1.5rem}}@media (min-width:1024px){.http-dump-page__main[data-v-63ed9648]{padding-left:2rem;padding-right:2rem}}.http-dump-page__title[data-v-63ed9648]{font-size:1.5rem;line-height:2rem}.http-dump-page__title-method[data-v-63ed9648],.http-dump-page__title-uri[data-v-63ed9648]{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.http-dump-page__title-uri[data-v-63ed9648]{font-weight:700}.http-dump-page__section[data-v-63ed9648]{flex:1 1 0%}.http-dump-page__section h1[data-v-63ed9648]{font-size:1.25rem;font-weight:700;line-height:1.75rem;margin-bottom:.75rem}.http-dump-page__attachments[data-v-63ed9648]{-moz-column-gap:.75rem;column-gap:.75rem;display:flex}.http-dump-page__section-body[data-v-63ed9648]{word-wrap:break-word;border-width:1px;display:block;padding:.75rem}@keyframes lds-ellipsis1-2f4992a2{0%{transform:scale(0)}to{transform:scale(1)}}@keyframes lds-ellipsis3-2f4992a2{0%{transform:scale(1)}to{transform:scale(0)}}@keyframes lds-ellipsis2-2f4992a2{0%{transform:translate(0)}to{transform:translate(24px)}}.http-dumps-event[data-v-2f4992a2]{--tw-bg-opacity:1;background-color:#fff;background-color:rgb(255 255 255/var(--tw-bg-opacity));min-height:100vh;position:relative}[data-v-2f4992a2]:is(.dark .http-dumps-event){--tw-bg-opacity:1;background-color:#1f2937;background-color:rgb(31 41 55/var(--tw-bg-opacity))}.http-dumps-event__head[data-v-2f4992a2]{--tw-border-opacity:1;--tw-bg-opacity:1;background-color:#fff;background-color:rgb(255 255 255/var(--tw-bg-opacity));border-bottom-width:1px;border-color:#e5e7eb;border-color:rgb(229 231 235/var(--tw-border-opacity));height:3rem;justify-content:space-between;left:2.5rem;padding-left:1rem;padding-right:1rem;z-index:50}[data-v-2f4992a2]:is(.dark .http-dumps-event__head){--tw-border-opacity:1;--tw-bg-opacity:1;background-color:#1f2937;background-color:rgb(31 41 55/var(--tw-bg-opacity));border-color:#374151;border-color:rgb(55 65 81/var(--tw-border-opacity))}.http-dumps-event__head[data-v-2f4992a2]{left:0;position:absolute;right:0}html.navbar-fixed .http-dumps-event__head[data-v-2f4992a2]{left:2.5rem;position:fixed;right:0}@media (min-width:768px){html.navbar-fixed .http-dumps-event__head[data-v-2f4992a2]{left:3.5rem}}@media (min-width:1024px){html.navbar-fixed .http-dumps-event__head[data-v-2f4992a2]{left:4rem}}.http-dumps-event__loading[data-v-2f4992a2]{display:inline-block;display:flex;flex:1 1 0%;flex-direction:column;height:80px;left:50%;padding-top:3rem;position:absolute;top:50%;transform:translate(-40px,-40px);width:80px}.http-dumps-event__loading div[data-v-2f4992a2]{animation-timing-function:cubic-bezier(0,1,1,0);background:currentColor;border-radius:50%;height:13px;position:absolute;top:33px;width:13px}.http-dumps-event__loading div[data-v-2f4992a2]:first-child{animation:lds-ellipsis1-2f4992a2 .6s infinite;left:8px}.http-dumps-event__loading div[data-v-2f4992a2]:nth-child(2){animation:lds-ellipsis2-2f4992a2 .6s infinite;left:8px}.http-dumps-event__loading div[data-v-2f4992a2]:nth-child(3){animation:lds-ellipsis2-2f4992a2 .6s infinite;left:32px}.http-dumps-event__loading div[data-v-2f4992a2]:nth-child(4){animation:lds-ellipsis3-2f4992a2 .6s infinite;left:56px}.http-dumps-event__body[data-v-2f4992a2]{display:flex;flex:1 1 0%;flex-direction:column;padding-top:3rem} diff --git a/resources/frontend/_nuxt/_id_.3d4aa390.js b/resources/frontend/_nuxt/_id_.3d4aa390.js new file mode 100644 index 00000000..68a36bb8 --- /dev/null +++ b/resources/frontend/_nuxt/_id_.3d4aa390.js @@ -0,0 +1,5 @@ +import{i as Wt,a as Dt,S as D,I as zt,d as $t,_ as It}from"./layout-sidebar.vue.180f31cf.js";import{d as Z,x as H,y as Xe,z as Ot,o as S,a as $,b as E,v as oe,A as Nt,t as j,h as q,s as te,F as ot,_ as B,c as V,B as Ut,f as L,w as z,e as I,u as x,r as Gt,g as re,C as Bt,q as Vt,D as ue,E as Kt,p as at,i as lt,j as qt,k as Qt,l as Zt,m as $e}from"./entry.d63b9a39.js";import{u as jt}from"./fetch.a2f95d2b.js";import{P as Jt}from"./page-header.1b1819e2.js";import{S as ht,u as ei}from"./use-profiler.790a894e.js";import{P as Ie,W as ti}from"./vue3-tabs-component.41f1a7ef.js";import{u as ii}from"./use-formats.c79ce0bd.js";var T=(t=>(t.CPU="cpu",t.MEMORY_CHANGE="pmu",t.MEMORY="mu",t.CALLS="calls",t))(T||{});const{formatDuration:ve,formatFileSize:me}=ii(),ni=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",si=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",ri=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"},oi=(t,e)=>{var n;const i={p_mu:s=>`${s}%`,p_pmu:s=>`${s}%`,p_cpu:s=>`${s}%`,p_wt:s=>`${s}%`,mu:me,d_mu:me,pmu:me,d_pmu:me,cpu:ve,d_cpu:ve,wt:ve,d_wt:ve};return((n=i[e])==null?void 0:n.call(i,t))||t},ai=(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===T.CALLS){const u="ct";if(!(r.cost[u]>=n))return s;a=ni(r.cost[u])}else{const u=`p_${e}`,b=r.cost[u]>=n;if(!b&&r.cost[u]<=i)return s;a=b?si(r.cost[u]):"#fff",l=b?ri(a):"#000",h=a;const y=r.cost.ct>1?` [ ${r.cost.ct}x ]`:"";c=`${oi(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 v=s.nodes.find(u=>u.data.id===r.caller);return o>0&&v&&s.edges.push({data:{source:r.caller||"",target:r.callee,color:h,label:c,weight:r.cost.ct}}),s},{nodes:[],edges:[]}),li=()=>({initialize:Wt,buildData:ai}),{buildData:hi,initialize:ci}=li(),ct=()=>({prepare:hi,initialize:ci}),di={key:0},ui={class:"render-graph__tooltip-title"},gi=Z({__name:"render-graph",props:{elements:{},height:{}},setup(t){const e=t,i=H(),n=H(),s=H(),r=H(),o=H(),a=H(),l=(c,d)=>{if(!c||!d){i.value=void 0,n.value=void 0;return}i.value=c.data();const f=d.offsetX,v=d.offsetY,{clientHeight:u=0,clientWidth:b=0}=a.value,{offsetHeight:y=0,offsetWidth:m=0}=o.value;let g=v,w=f;if(b+f>m-80){const F=b+f-m+100;w-=F}u+v>y&&(g=v-u),n.value={top:`${g+20}px`,left:`${w}px`}},{initialize:h}=ct();return Xe(()=>{s.value=h({container:r.value,elements:e.elements,onNodeHover:l})}),Ot(()=>{s.value()}),(c,d)=>(S(),$(ot,null,[E("div",{ref_key:"parent",ref:o,class:"render-graph",style:oe({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:te(["render-graph__tooltip",{"render-graph__tooltip--active":i.value}]),style:oe(n.value)},[i.value?(S(),$("div",di,[Nt(c.$slots,"default",{data:i.value},()=>[E("h4",ui,j(i.value),1)],!0)])):q("",!0)],6)],64))}}),fi=B(gi,[["__scopeId","data-v-5ef20918"]]),Me=B(Dt,[["__scopeId","data-v-77d01412"]]),pi={class:"call-stack-row__usage"},vi={class:"call-stack-row__usage-title"},mi={class:"call-stack-row__calls"},bi=Z({__name:"call-stack-row",props:{edge:{}},emits:["hover","hide"],setup(t,{emit:e}){const i=t,n=(a,l)=>{e("hover",{callee:l.callee,cost:l.cost,caller:l.caller,position:{x:a.pageX,y:a.pageY}})},s=a=>Math.min(100,Math.max(0,a)),r=V(()=>({width:`${s(i.edge.cost.p_cpu)}%`})),o=V(()=>({width:`${s(i.edge.cost.p_mu)}%`}));return(a,l)=>(S(),$("div",{class:"call-stack-row",onMouseover:l[0]||(l[0]=h=>n(h,a.edge)),onMouseout:l[1]||(l[1]=h=>a.$emit("hide"))},[E("div",pi,[E("div",{class:"call-stack-row__usage-cpu",style:oe(r.value)},null,4),E("div",{class:"call-stack-row__usage-memory",style:oe(o.value)},null,4),E("div",vi,j(a.edge.cost.p_cpu)+"% / "+j(a.edge.cost.p_mu)+"% ",1)]),E("div",mi,j(a.edge.cost.ct),1)],32))}});const yi=B(bi,[["__scopeId","data-v-15b83beb"]]),Ei={class:"call-stack"},xi={class:"call-stack__header"},wi={class:"call-stack__header-cpu"},Ci={class:"call-stack__header-calls"},Ri={class:"call-stack__calls"},_i=Z({__name:"call-stack",props:{payload:{}},emits:["hover","hide"],setup(t){const e=t,i=Ut({CPU:D.ASC,memory:D.DEFAULT,calls:D.DEFAULT}),n=V(()=>Object.entries(e.payload.edges).sort(([,r],[,o])=>i.CPU===D.ASC?o.cost.p_cpu-r.cost.p_cpu:i.CPU===D.DESC?r.cost.p_cpu-o.cost.p_cpu:i.memory===D.ASC?o.cost.p_mu-r.cost.p_mu:i.memory===D.DESC?r.cost.p_mu-o.cost.p_mu:i.calls===D.ASC?o.cost.ct-r.cost.ct:i.calls===D.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]=D.DEFAULT:i[l]=o===D.DEFAULT?D.ASC:o})};return(r,o)=>(S(),$("div",Ei,[E("header",xi,[E("div",wi,[L(x(Me),{sort:i.CPU,onChangeSort:o[0]||(o[0]=a=>s("CPU")(a))},{default:z(()=>[I(" CPU ")]),_:1},8,["sort"]),I(" / "),L(x(Me),{sort:i.memory,onChangeSort:o[1]||(o[1]=a=>s("memory")(a))},{default:z(()=>[I(" memory ")]),_:1},8,["sort"])]),E("div",Ci,[L(x(Me),{sort:i.calls,onChangeSort:o[2]||(o[2]=a=>s("calls")(a))},{default:z(()=>[I(" Calls ")]),_:1},8,["sort"])])]),E("div",Ri,[(S(!0),$(ot,null,Gt(n.value,(a,l)=>(S(),re(x(yi),{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 ki=B(_i,[["__scopeId","data-v-57da93b2"]]),Mi={class:"call-stat-board"},Si={class:"call-stat-board__title"},Ti=Z({__name:"call-stat-board",props:{edge:{}},setup(t){return(e,i)=>(S(),$("div",Mi,[E("h4",Si,j(e.edge.callee),1),L(x(ht),{class:"call-stat-board__body",cost:e.edge.cost},null,8,["cost"])]))}});const dt=B(Ti,[["__scopeId","data-v-e34163d2"]]),Pi={class:"call-graph__toolbar"},Hi={class:"call-graph__toolbar call-graph__toolbar--right"},Fi={key:0,class:"call-graph__toolbar-input-wr"},Li=["value"],Xi={class:"call-graph__toolbar-input-wr"},Ai=["value","min","max","step"],Yi=Z({__name:"call-graph",props:{payload:{}},setup(t){const e=t,{prepare:i}=ct(),n=H(!1),s=H(T.CPU),r=H(1),o=H(10),a=H(!1),l=H(),h=V(()=>i(e.payload.edges,s.value,r.value,o.value)),c=V(()=>s.value===T.CALLS?"Min calls":"Percent"),d=V(()=>`${s.value}-${r.value}-${o.value}`),f=V(()=>n.value?window.innerHeight:l.value.offsetHeight);Xe(()=>{a.value=!0});const v=y=>{s.value=y},u=y=>{r.value=y},b=y=>{o.value=y};return(y,m)=>(S(),$("div",{ref_key:"container",ref:l,class:te(["call-graph",{"call-graph--fullscreen":n.value}])},[a.value&&d.value?(S(),re(x(fi),{key:d.value,class:"call-graph__graph",elements:h.value,height:f.value},{default:z(({data:{name:g,cost:w}})=>[L(x(dt),{edge:{callee:g,caller:"",cost:w}},null,8,["edge"])]),_:1},8,["elements","height"])):q("",!0),E("div",Pi,[E("button",{title:"Full screen",onClick:m[0]||(m[0]=g=>n.value=!n.value)},[L(x(zt),{name:"fullscreen",class:"call-graph__toolbar-icon"})]),E("button",{class:te(["call-graph__toolbar-action",{"call-graph__toolbar-action--active":s.value===x(T).CPU}]),onClick:m[1]||(m[1]=g=>v(x(T).CPU))}," CPU ",2),E("button",{class:te(["call-graph__toolbar-action",{"call-graph__toolbar-action--active":s.value===x(T).MEMORY_CHANGE}]),onClick:m[2]||(m[2]=g=>v(x(T).MEMORY_CHANGE))}," Memory change ",2),E("button",{class:te(["call-graph__toolbar-action",{"call-graph__toolbar-action--active":s.value===x(T).MEMORY}]),onClick:m[3]||(m[3]=g=>v(x(T).MEMORY))}," Memory usage ",2),E("button",{class:te(["call-graph__toolbar-action",{"call-graph__toolbar-action--active":s.value===x(T).CALLS}]),onClick:m[4]||(m[4]=g=>v(x(T).CALLS))}," Calls ",2)]),E("div",Hi,[s.value!==x(T).CALLS?(S(),$("label",Fi,[I(" Threshold "),E("input",{class:"call-graph__toolbar-input",type:"number",value:r.value,min:0,max:10,step:.1,onInput:m[5]||(m[5]=g=>u(g.target.value))},null,40,Li)])):q("",!0),E("label",Xi,[I(j(c.value)+" ",1),E("input",{class:"call-graph__toolbar-input",type:"number",value:o.value,min:s.value===x(T).CALLS?1:0,max:s.value===x(T).CALLS?1e3:100,step:s.value===x(T).CALLS?10:5,onInput:m[6]||(m[6]=g=>b(g.target.value))},null,40,Ai)])])],2))}});const Wi=B(Yi,[["__scopeId","data-v-fd6843c2"]]);/*! + * perfect-scrollbar v1.5.3 + * Copyright 2021 Hyunje Jun, MDBootstrap and Contributors + * Licensed under MIT + */function O(t){return getComputedStyle(t)}function A(t,e){for(var i in e){var n=e[i];typeof n=="number"&&(n=n+"px"),t.style[i]=n}return t}function be(t){var e=document.createElement("div");return e.className=t,e}var Oe=typeof Element<"u"&&(Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector);function K(t,e){if(!Oe)throw new Error("No element matching method supported");return Oe.call(t,e)}function se(t){t.remove?t.remove():t.parentNode&&t.parentNode.removeChild(t)}function Ne(t,e){return Array.prototype.filter.call(t.children,function(i){return K(i,e)})}var k={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}}},ut={x:null,y:null};function gt(t,e){var i=t.element.classList,n=k.state.scrolling(e);i.contains(n)?clearTimeout(ut[e]):i.add(n)}function ft(t,e){ut[e]=setTimeout(function(){return t.isAlive&&t.element.classList.remove(k.state.scrolling(e))},t.settings.scrollingThreshold)}function Di(t,e){gt(t,e),ft(t,e)}var ge=function(e){this.element=e,this.handlers={}},pt={isEmpty:{configurable:!0}};ge.prototype.bind=function(e,i){typeof this.handlers[e]>"u"&&(this.handlers[e]=[]),this.handlers[e].push(i),this.element.addEventListener(e,i,!1)};ge.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)})};ge.prototype.unbindAll=function(){for(var e in this.handlers)this.unbind(e)};pt.isEmpty.get=function(){var t=this;return Object.keys(this.handlers).every(function(e){return t.handlers[e].length===0})};Object.defineProperties(ge.prototype,pt);var ae=function(){this.eventElements=[]};ae.prototype.eventElement=function(e){var i=this.eventElements.filter(function(n){return n.element===e})[0];return i||(i=new ge(e),this.eventElements.push(i)),i};ae.prototype.bind=function(e,i,n){this.eventElement(e).bind(i,n)};ae.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)};ae.prototype.unbindAll=function(){this.eventElements.forEach(function(e){return e.unbindAll()}),this.eventElements=[]};ae.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 ye(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 Ce(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");zi(t,i,r,n,s)}function zi(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(ye("ps-scroll-"+l)),e<0?d.dispatchEvent(ye("ps-scroll-"+h)):e>0&&d.dispatchEvent(ye("ps-scroll-"+c)),n&&Di(t,l)),t.reach[l]&&(e||s)&&d.dispatchEvent(ye("ps-"+l+"-reach-"+t.reach[l]))}function C(t){return parseInt(t,10)||0}function $i(t){return K(t,"input,[contenteditable]")||K(t,"select,[contenteditable]")||K(t,"textarea,[contenteditable]")||K(t,"button,[contenteditable]")}function Ii(t){var e=O(t);return C(e.width)+C(e.paddingLeft)+C(e.paddingRight)+C(e.borderLeftWidth)+C(e.borderRightWidth)}var ie={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 U(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)||(Ne(e,k.element.rail("x")).forEach(function(s){return se(s)}),e.appendChild(t.scrollbarXRail)),e.contains(t.scrollbarYRail)||(Ne(e,k.element.rail("y")).forEach(function(s){return se(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),Oi(e,t),t.scrollbarXActive?e.classList.add(k.state.active("x")):(e.classList.remove(k.state.active("x")),t.scrollbarXWidth=0,t.scrollbarXLeft=0,e.scrollLeft=t.isRtl===!0?t.contentWidth:0),t.scrollbarYActive?e.classList.add(k.state.active("y")):(e.classList.remove(k.state.active("y")),t.scrollbarYHeight=0,t.scrollbarYTop=0,e.scrollTop=0)}function Ue(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 Oi(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,A(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,A(e.scrollbarYRail,s),A(e.scrollbarX,{left:e.scrollbarXLeft,width:e.scrollbarXWidth-e.railBorderXWidth}),A(e.scrollbarY,{top:e.scrollbarYTop,height:e.scrollbarYHeight-e.railBorderYWidth})}function Ni(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,U(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,U(t),e.stopPropagation()})}function Ui(t){Ge(t,["containerWidth","contentWidth","pageX","railXWidth","scrollbarX","scrollbarXWidth","scrollLeft","x","scrollbarXRail"]),Ge(t,["containerHeight","contentHeight","pageY","railYHeight","scrollbarY","scrollbarYHeight","scrollTop","y","scrollbarYRail"])}function Ge(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,f=null,v=null,u=null;function b(g){g.touches&&g.touches[0]&&(g[s]=g.touches[0].pageY),d[l]=f+u*(g[s]-v),gt(t,h),U(t),g.stopPropagation(),g.type.startsWith("touch")&&g.changedTouches.length>1&&g.preventDefault()}function y(){ft(t,h),t[c].classList.remove(k.state.clicking),t.event.unbind(t.ownerDocument,"mousemove",b)}function m(g,w){f=d[l],w&&g.touches&&(g[s]=g.touches[0].pageY),v=g[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),g.preventDefault()),t[c].classList.add(k.state.clicking),g.stopPropagation()}t.event.bind(t[o],"mousedown",function(g){m(g)}),t.event.bind(t[o],"touchstart",function(g){m(g,!0)})}function Gi(t){var e=t.element,i=function(){return K(e,":hover")},n=function(){return K(t.scrollbarX,":focus")||K(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($i(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,U(t),s(a,l)&&r.preventDefault())}})}function Bi(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,f=e.scrollLeft+e.offsetWidth===e.scrollWidth,v;return Math.abs(a)>Math.abs(o)?v=h||c:v=d||f,v?!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(!ie.isWebKit&&e.querySelector("select:focus"))return!0;if(!e.contains(o))return!1;for(var h=o;h&&h!==e;){if(h.classList.contains(k.element.consuming))return!0;var c=O(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 f=h.scrollWidth-h.clientWidth;if(f>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),U(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 Vi(t){if(!ie.supportsTouch&&!ie.supportsIePointer)return;var e=t.element;function i(u,b){var y=Math.floor(e.scrollTop),m=e.scrollLeft,g=Math.abs(u),w=Math.abs(b);if(w>g){if(b<0&&y===t.contentHeight-t.containerHeight||b>0&&y===0)return window.scrollY===0&&b>0&&ie.isChrome}else if(g>w&&(u<0&&m===t.contentWidth-t.containerWidth||u>0&&m===0))return!0;return!0}function n(u,b){e.scrollTop-=b,e.scrollLeft-=u,U(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 m=u;m&&m!==e;){if(m.classList.contains(k.element.consuming))return!0;var g=O(m);if(y&&g.overflowY.match(/(scroll|auto)/)){var w=m.scrollHeight-m.clientHeight;if(w>0&&(m.scrollTop>0&&y<0||m.scrollTop0))return!0}if(b&&g.overflowX.match(/(scroll|auto)/)){var F=m.scrollWidth-m.clientWidth;if(F>0&&(m.scrollLeft>0&&b<0||m.scrollLeft0))return!0}m=m.parentNode}return!1}function f(u){if(h(u)){var b=l(u),y={pageX:b.pageX,pageY:b.pageY},m=y.pageX-s.pageX,g=y.pageY-s.pageY;if(d(u.target,m,g))return;n(m,g),s=y;var w=new Date().getTime(),F=w-r;F>0&&(o.x=m/F,o.y=g/F,r=w),i(m,g)&&u.preventDefault()}}function v(){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))}ie.supportsTouch?(t.event.bind(e,"touchstart",c),t.event.bind(e,"touchmove",f),t.event.bind(e,"touchend",v)):ie.supportsIePointer&&(window.PointerEvent?(t.event.bind(e,"pointerdown",c),t.event.bind(e,"pointermove",f),t.event.bind(e,"pointerup",v)):window.MSPointerEvent&&(t.event.bind(e,"MSPointerDown",c),t.event.bind(e,"MSPointerMove",f),t.event.bind(e,"MSPointerUp",v)))}var Ki=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}},qi={"click-rail":Ni,"drag-thumb":Ui,keyboard:Gi,wheel:Bi,touch:Vi},fe=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(k.main),this.settings=Ki();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(k.state.focus)},o=function(){return e.classList.remove(k.state.focus)};this.isRtl=O(e).direction==="rtl",this.isRtl===!0&&e.classList.add(k.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 ae,this.ownerDocument=e.ownerDocument||document,this.scrollbarXRail=be(k.element.rail("x")),e.appendChild(this.scrollbarXRail),this.scrollbarX=be(k.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=O(this.scrollbarXRail);this.scrollbarXBottom=parseInt(a.bottom,10),isNaN(this.scrollbarXBottom)?(this.isScrollbarXUsingBottom=!1,this.scrollbarXTop=C(a.top)):this.isScrollbarXUsingBottom=!0,this.railBorderXWidth=C(a.borderLeftWidth)+C(a.borderRightWidth),A(this.scrollbarXRail,{display:"block"}),this.railXMarginWidth=C(a.marginLeft)+C(a.marginRight),A(this.scrollbarXRail,{display:""}),this.railXWidth=null,this.railXRatio=null,this.scrollbarYRail=be(k.element.rail("y")),e.appendChild(this.scrollbarYRail),this.scrollbarY=be(k.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=O(this.scrollbarYRail);this.scrollbarYRight=parseInt(l.right,10),isNaN(this.scrollbarYRight)?(this.isScrollbarYUsingRight=!1,this.scrollbarYLeft=C(l.left)):this.isScrollbarYUsingRight=!0,this.scrollbarYOuterWidth=this.isRtl?Ii(this.scrollbarY):null,this.railBorderYWidth=C(l.borderTopWidth)+C(l.borderBottomWidth),A(this.scrollbarYRail,{display:"block"}),this.railYMarginHeight=C(l.marginTop)+C(l.marginBottom),A(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 qi[h](n)}),this.lastScrollTop=Math.floor(e.scrollTop),this.lastScrollLeft=e.scrollLeft,this.event.bind(this.element,"scroll",function(h){return n.onScroll(h)}),U(this)};fe.prototype.update=function(){this.isAlive&&(this.negativeScrollAdjustment=this.isNegativeScroll?this.element.scrollWidth-this.element.clientWidth:0,A(this.scrollbarXRail,{display:"block"}),A(this.scrollbarYRail,{display:"block"}),this.railXMarginWidth=C(O(this.scrollbarXRail).marginLeft)+C(O(this.scrollbarXRail).marginRight),this.railYMarginHeight=C(O(this.scrollbarYRail).marginTop)+C(O(this.scrollbarYRail).marginBottom),A(this.scrollbarXRail,{display:"none"}),A(this.scrollbarYRail,{display:"none"}),U(this),Ce(this,"top",0,!1,!0),Ce(this,"left",0,!1,!0),A(this.scrollbarXRail,{display:""}),A(this.scrollbarYRail,{display:""}))};fe.prototype.onScroll=function(e){this.isAlive&&(U(this),Ce(this,"top",this.element.scrollTop-this.lastScrollTop),Ce(this,"left",this.element.scrollLeft-this.lastScrollLeft),this.lastScrollTop=Math.floor(this.element.scrollTop),this.lastScrollLeft=this.element.scrollLeft)};fe.prototype.destroy=function(){this.isAlive&&(this.event.unbindAll(),se(this.scrollbarX),se(this.scrollbarY),se(this.scrollbarXRail),se(this.scrollbarYRail),this.removePsClasses(),this.element=null,this.scrollbarX=null,this.scrollbarY=null,this.scrollbarXRail=null,this.scrollbarYRail=null,this.isAlive=!1)};fe.prototype.removePsClasses=function(){this.element.className=this.element.className.split(" ").filter(function(e){return!e.match(/^ps([-_].+|)$/)}).join(" ")};const Be=["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 Qi={name:"PerfectScrollbar",props:{options:{type:Object,required:!1,default:()=>{}},tag:{type:String,required:!1,default:"div"},watchOptions:{type:Boolean,required:!1,default:!1}},emits:Be,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 fe(this.$el,this.options),Be.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 Bt(this.tag,{class:"ps"},this.$slots.default&&this.$slots.default())}},vt={exports:{}},Zi={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]},mt={exports:{}},ji=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")},Ji=ji,en=Array.prototype.concat,tn=Array.prototype.slice,Ve=mt.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+")"};W.to.keyword=function(t){return yt[t.slice(0,3)]};function Q(t,e,i){return Math.min(Math.max(e,t),i)}function Ee(t){var e=Math.round(t).toString(16).toUpperCase();return e.length<2?"0"+e:e}var sn=vt.exports,Et={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]},J=rn,xt={};for(var Te in J)J.hasOwnProperty(Te)&&(xt[J[Te]]=Te);var p=Et.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 p)if(p.hasOwnProperty(X)){if(!("channels"in p[X]))throw new Error("missing channels property: "+X);if(!("labels"in p[X]))throw new Error("missing channel labels property: "+X);if(p[X].labels.length!==p[X].channels)throw new Error("channel and label counts mismatch: "+X);var on=p[X].channels,an=p[X].labels;delete p[X].channels,delete p[X].labels,Object.defineProperty(p[X],"channels",{value:on}),Object.defineProperty(p[X],"labels",{value:an})}p.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]};p.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(f){return(h-f)/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]};p.rgb.hwb=function(t){var e=t[0],i=t[1],n=t[2],s=p.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]};p.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 ln(t,e){return Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2)+Math.pow(t[2]-e[2],2)}p.rgb.keyword=function(t){var e=xt[t];if(e)return e;var i=1/0,n;for(var s in J)if(J.hasOwnProperty(s)){var r=J[s],o=ln(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]};p.rgb.lab=function(t){var e=p.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]};p.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};p.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]};p.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]}};p.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]};p.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]};p.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]};p.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]};p.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]};p.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]};p.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]};p.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]};p.rgb.ansi16=function(t){var e=t[0],i=t[1],n=t[2],s=1 in arguments?arguments[1]:p.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};p.hsv.ansi16=function(t){return p.rgb.ansi16(p.hsv.rgb(t),t[2])};p.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};p.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]};p.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]};p.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};p.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]};p.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]};p.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]};p.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]};p.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]};p.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]};p.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]};p.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]};p.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]};p.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]};p.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]};p.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]};p.gray.hsl=p.gray.hsv=function(t){return[0,0,t[0]]};p.gray.hwb=function(t){return[0,100,t[0]]};p.gray.cmyk=function(t){return[0,0,0,t[0]]};p.gray.lab=function(t){return[t[0],0,0]};p.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};p.rgb.gray=function(t){var e=(t[0]+t[1]+t[2])/3;return[e/255*100]};var wt=Et.exports,Re=wt;function hn(){for(var t={},e=Object.keys(Re),i=e.length,n=0;n1&&(i=Array.prototype.slice.call(arguments)),t(i))};return"conversion"in t&&(e.conversion=t.conversion),e}function mn(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 Fe))throw new Error("Unable to parse color from object: "+JSON.stringify(t));this.model=Fe[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 P.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 P.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(Ct.indexOf(t)===-1){var e=Y[t].channels;P.prototype[t]=function(){if(this.model===t)return new P(this);if(arguments.length)return new P(arguments,t);var i=typeof arguments[e]=="number"?e:this.valpha;return new P(xn(Y[this.model][t].raw(this.color)).concat(i),t)},P[t]=function(i){return typeof i=="number"&&(i=Le(Ae.call(arguments),e)),new P(i,t)}}});function yn(t,e){return Number(t.toFixed(e))}function En(t){return function(e){return yn(e,t)}}function _(t,e,i){return t=Array.isArray(t)?t:[t],t.forEach(function(n){(_e[n]||(_e[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 M(t){return function(e){return Math.max(0,Math.min(t,e))}}function xn(t){return Array.isArray(t)?t:[t]}function Le(t,e){for(var i=0;iObject.keys(t).reduce((i,n)=>(e[n]?i[n]=e[n]:i[n]=t[n],i),{}),Ke=t=>typeof t=="number",G=t=>t[t.length-1],Rt=1,_t=.25,Cn=Rt*2+_t,kt=(t,e,i=null,n=0)=>{t.forEach(s=>{const r=e(s,i,n);s.children&&kt(s.children,e,r||s,n+1)})},Mt=t=>{const e=[];let i=0;return kt(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)},St=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}},Rn=t=>{const e=t[0],i=G(t);return i.source.start+i.source.duration-e.source.start},_n=(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 Tt(t,e=Mn){return t.reduce((i,n)=>{const s=G(i),r=s&&G(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 Ye=(t,e,i=0,n=0,s=_t,r=Rt)=>{let o=null,a=null,l=0;return t.reduce((h,{nodes:c})=>{o=null,a=null,l=0;for(const d of c)_n(d,i,n)&&(o&&!a||o&&a&&(d.source.start-(a.source.start+a.source.duration))*e{const c=h[0],d=Rn(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}})},Pt=(t,e,i,n,s,r)=>t.reduce((o,a)=>(kn(a,i,n)&&(a.duration*e<=Cn?o.push(a):o.push(...Ye([a],e,i,n,s,r))),o),[]),qe=ke.hsl(180,30,70);class Sn extends ee{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=qe,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=qe,this.positionY=0,this.selectedRegion=null}calcMinMax(){const{flatTree:e}=this,{min:i,max:n}=St(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 ke(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=Mt(this.data),this.calcMinMax()}initData(){this.metaClusterizedFlatTree=Tt(this.flatTree),this.initialClusterizedFlatTree=Ye(this.metaClusterizedFlatTree,this.renderEngine.zoom,this.min,this.max),this.reclusterizeClusteredFlatTree()}reclusterizeClusteredFlatTree(){this.actualClusterizedFlatTree=Pt(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:f})=>d+f,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:f}=h,{x:v,y:u,w:b}=this.calcRect(c,d,f);v+b>0&&v0&&u{const{type:f,nodes:v,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(f,u),h,c,d),d>=s&&v.length===1&&this.renderEngine.addTextToRenderQueue(v[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:f,w:v}=this.calcRect(l,h,c);this.renderEngine.addStrokeToRenderQueue("green",d,f,v,this.renderEngine.blockHeight)}clearTimeout(this.renderChartTimeout),this.renderChartTimeout=window.setTimeout(()=>{this.interactionsEngine.clearHitRegions(),this.actualClusterizedFlatTree.forEach(r(a))},16)}}const Qe={font:"10px sans-serif",fontColor:"black"};class Tn extends ee{constructor(e={}){super("timeGridPlugin"),this.styles=Qe,this.height=0,this.setSettings(e)}setSettings({styles:e}){this.styles=N(Qe,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 Pn extends ee{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 ke(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 Hn=85,Ze={color:"rgba(90,90,90,0.20)"};class Ht{constructor(e){this.styles=Ze,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=N(Ze,e),this.renderEngine&&(this.timeUnits=this.renderEngine.getTimeUnits())}recalc(){const e=this.renderEngine.max-this.renderEngine.min,i=this.renderEngine.width/Hn,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 xe(t,e,i,n){return t.length?t.reduce((s,{[e]:r})=>i(s,r),t[0][e]):n}const Ft=t=>t.items.map(({name:e,intervals:i,timing:n,meta:s},r)=>{const a=(typeof i=="string"?t.intervals[i]:i).map(({start:v,end:u,color:b,type:y,name:m})=>({start:typeof v=="string"?n[v]:v,end:typeof u=="string"?n[u]:u,color:b,name:m,type:y})).filter(({start:v,end:u})=>typeof v=="number"&&typeof u=="number"),l=a.filter(({type:v})=>v==="block"),h=xe(l,"start",Math.min,0),c=xe(l,"end",Math.max,0),d=xe(a,"start",Math.min,0),f=xe(a,"end",Math.max,0);return{intervals:a,textBlock:{start:h,end:c},name:e,timing:n,min:d,max:f,index:r,meta:s}}).filter(({intervals:e})=>e.length).sort((e,i)=>e.min-i.min||i.max-e.max),Fn=(t,e,i,n)=>n-(t-e)*i,Ln={fillColor:"rgba(0, 0, 0, 0.1)",lineWidth:1,lineDash:[],lineColor:"rgba(0, 0, 0, 0.5)",type:"smooth"},Lt=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:G(a)[0]},a.forEach(([f,v])=>{h===void 0&&(o[l].min=Math.min(o[l].min,v)),c===void 0&&(o[l].max=Math.max(o[l].max,v)),e[d].start=Math.min(e[d].start,f),e[d].end=Math.max(e[d].end,f)}),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}},Xt=(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}},At=(t,{timeseries:e})=>{const i=e.reduce((n,{points:s,units:r,name:o,group:a})=>{const l=Xn(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),[])},we=({engine:t,points:e,style:i,min:n,max:s})=>{const r={...Ln,...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),Fn(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(G(t)[0]<=e)return i?G(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 Ht({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=N(Je,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=Mt(this.flameChartNodes),{min:n,max:s}=St(i);this.min=n,this.max=s,this.clusters=Tt(i,()=>!0),this.actualClusters=Ye(this.clusters,this.renderEngine.zoom,this.min,this.max,je,1/0),this.actualClusterizedFlatTree=Pt(this.actualClusters,this.renderEngine.zoom,this.min,this.max,je,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=Ft(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=Lt(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(),we({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 ke(i);we({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=Xt(s.points,s,i);we({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?At(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 Pe={defaultHeight:68};class Yn extends ee{constructor({data:e,name:i="waterfallPlugin",settings:n}){super(i),this.styles=Pe,this.height=Pe.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=N(Pe,e),this.height=this.styles.defaultHeight,this.positionY=0}setData(e){this.positionY=0,this.initialData=e.items,this.data=Ft(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:m,end:g})=>({text:`${y}: ${(g-m).toFixed(l)} ${a}`})),f={text:"timing",color:this.renderEngine.styles.tooltipHeaderFontColor},v=Object.entries(r).filter(([,y])=>typeof y=="number").map(([y,m])=>({text:`${y}: ${m.toFixed(l)} ${a}`})),u={text:"meta",color:this.renderEngine.styles.tooltipHeaderFontColor},b=o?o.map(({name:y,value:m,color:g})=>({text:`${y}: ${m}`,color:g})):[];this.renderEngine.renderTooltipFromData([h,c,...d,f,...v,...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-G(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 f=this.renderEngine.timeToPosition(l.start),v=this.renderEngine.timeToPosition(l.end);this.renderEngine.addTextToRenderQueue(o,f,d,v-f);const{x:u,w:b}=a.reduce((y,{color:m,start:g,end:w,type:F},R)=>{const{x:le,w:ze}=this.calcRect(g,w-g,R===a.length-1);return F==="block"&&this.renderEngine.addRectToRenderQueue(m,le,d,ze),{x:y.x===null?le:y.x,w:ze+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 et={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 tt extends ee{constructor(e,i){super("togglePlugin"),this.styles=et,this.height=0,this.resizeActive=!1,this.resizeStartHeight=0,this.resizeStartPosition=0,this.setSettings(i),this.title=e}setSettings({styles:e}={}){this.styles=N(et,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 it=`QWERTYUIOPASDFGHJKLZXCVBNMqwertyuiopasdfghjklzxcvbnm1234567890_-+()[]{}\\/|'";:.,?~`,Wn=()=>{const t=navigator.userAgent.toLowerCase();return t.includes("safari")?!t.includes("chrome"):!1};function Dn(t){const e=t,i=window.devicePixelRatio||1,n=e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1;return i/n}const nt={tooltip:void 0,timeUnits:"ms"},st={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 Yt extends ue.EventEmitter{constructor(e,i){super(),this.options=nt,this.timeUnits="ms",this.styles=st,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=Wn(),this.canvas=e,this.ctx=e.getContext("2d",{alpha:!1}),this.pixelRatio=Dn(this.ctx),this.setSettings(i),this.applyCanvasSize(),this.reset()}setSettings({options:e,styles:i}){this.options=N(nt,e),this.styles=N(st,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(it),{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/it.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 We extends Yt{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 We({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:N(this.styles,e.styles),options:N(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 zn=6;class $n extends Yt{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 We({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(Ke).reduce((n,s)=>Math.min(n,s)),i=this.plugins.map(({max:n})=>n).filter(Ke).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],f=this.children[l];return f.collapsed?o:a==="flexibleGrowing"?o-(f.height||0):a==="flexibleStatic"?o-((f==null?void 0:f.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],f=this.plugins[l];let v=0;if(d.collapsed)v=0;else switch(a){case"static":v=(h=f.height)!==null&&h!==void 0?h:0;break;case"flexibleGrowing":v=(d.height||0)+r;break;case"flexibleStatic":v=(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:v}),o.position+=v,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 In=["down","up","move","click","select"];class de extends ue.EventEmitter{static getId(){return de.count++}constructor(e,i){super(),this.id=de.getId(),this.parent=e,this.renderEngine=i,i.on("clear",()=>this.clearHitRegions()),In.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()}}de.count=0;class On extends ue.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 de(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,v=(s-this.renderEngine.width/this.renderEngine.zoom)*d;this.renderEngine.tryToChangePosition(v)}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 Nn extends ue.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 Ht({styles:r==null?void 0:r.timeGrid}),this.renderEngine=new $n({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 On(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 Un={height:56},rt=2;class Gn extends ee{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=N(Un,e),this.height=this.styles.height}setData(e){const i=Lt(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=At(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)-rt,0),o=i>=this.data.timeboxes[s].end?n.points.length:n.points.findIndex(([h])=>h>=i)+rt,a=n.points.slice(r,o),l=Xt(a,n,this.data.summary);we({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 Bn={};class Vn extends Nn{constructor({canvas:e,data:i,marks:n,waterfall:s,timeframeTimeseries:r,timeseries:o,colors:a,settings:l=Bn,plugins:h=[]}){var c;const d=[],{headers:{waterfall:f="waterfall",flameChart:v="flame chart"}={}}=l,u=(c=l==null?void 0:l.styles)!==null&&c!==void 0?c:{},b=new Tn({styles:u==null?void 0:u.timeGridPlugin});d.push(b);let y,m,g,w,F;o&&(F=new Gn({data:o,settings:{styles:u==null?void 0:u.timeseriesPlugin}}),d.push(F)),n&&(y=new Pn({data:n}),y.on("select",R=>this.emit("select",R)),d.push(y)),s&&(m=new Yn({data:s,settings:{styles:u==null?void 0:u.waterfallPlugin}}),m.on("select",R=>this.emit("select",R)),i&&d.push(new tt(f,{styles:u==null?void 0:u.togglePlugin})),d.push(m)),i&&(w=new Sn({data:i,colors:a}),w.on("select",R=>this.emit("select",R)),s&&d.push(new tt(v,{styles:u==null?void 0:u.togglePlugin})),d.push(w)),(i||s||r)&&(g=new An({flameChartNodes:i,waterfall:s,timeseries:r,settings:{styles:u==null?void 0:u.timeframeSelectorPlugin}}),d.unshift(g)),super({canvas:e,settings:l,plugins:[...d,...h]}),w&&g&&(this.setNodes=R=>{w&&w.setData(R),g&&g.setFlameChartNodes(R)},this.setFlameChartPosition=({x:R,y:le})=>{typeof R=="number"&&this.renderEngine.setPositionX(R),typeof le=="number"&&w&&w.setPositionY(le),this.renderEngine.render()}),y&&(this.setMarks=R=>{y&&y.setMarks(R)}),m&&(this.setWaterfall=R=>{m&&m.setData(R),g&&g.setWaterfall(R)}),F&&(this.setTimeseries=R=>{F&&F.setData(R)}),g&&(this.setTimeframeTimeseries=R=>{g==null||g.setTimeseries(R)})}}const Kn=(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()"]},qn=()=>({build:Kn}),Qn=Z({__name:"flame-graph",props:{edges:{}},emits:["hover","hide"],setup(t,{emit:e}){const i=t,n=H(),s=H(),{build:r}=qn(),o=()=>{if(!s.value||!n.value)return;const{width:a,height:l}=s.value.getBoundingClientRect();n.value.width=a||1,n.value.height=l||1;const h=new Vn({canvas:n.value,data:[r(i.edges,T.CPU)],settings:{styles:{main:{blockHeight:20}},options:{tooltip:(c,d,f)=>{c===null?e("hide"):e("hover",{callee:c.data.source.name,caller:"",cost:c.data.source.cost,position:{x:(f==null?void 0:f.x)||0,y:(f==null?void 0:f.y)||0}})}}}});h.render(),window.addEventListener("resize",$t(()=>{if(!s.value)return;const{width:c,height:d}=s.value.getBoundingClientRect();h.resize(c,d)},30))};return Xe(()=>{Kt(()=>{o()})}),(a,l)=>(S(),$("div",{ref_key:"graph",ref:s,class:"flame-graph"},[E("canvas",{ref_key:"canvas",ref:n,class:"flame-graph__canvas"},null,512)],512))}});const Zn=B(Qn,[["__scopeId","data-v-3fdcffce"]]),jn=t=>(at("data-v-01765fde"),t=t(),lt(),t),Jn={class:"profiler-page"},es=jn(()=>E("div",{class:"profiler-page__head"},null,-1)),ts={class:"profiler-page__main"},is={ref:"calls",class:"profiler-page__callstack"},ns={ref:"info",class:"profiler-page__stat"},ss={class:"profiler-page__stat-board"},rs={class:"profiler-page__stat-tabs"},os=Z({__name:"profiler-page",props:{event:{}},setup(t){const e={x:0,y:0},i=H(),n=H(""),s=H(e),r=V(()=>{let c=s.value.y,d=s.value.x;if(750+s.value.x>window.innerWidth-80){const f=750+s.value.x-window.innerWidth+100;d-=f}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)=>(S(),$("div",Jn,[es,E("main",ts,[E("section",is,[L(x(Qi),{style:oe({height:"calc(100vh - 48px)"})},{default:z(()=>[L(x(ki),{payload:l.event.payload,onHover:o,onHide:o},null,8,["payload"])]),_:1},8,["style"])],512),E("div",ns,[E("section",ss,[L(x(ht),{cost:l.event.payload.peaks},null,8,["cost"])]),E("section",rs,[L(x(ti),{options:{useUrlFragment:!1},onChanged:a},{default:z(()=>[L(x(Ie),{name:"Call graph"},{default:z(()=>[n.value==="Call graph"?(S(),re(x(Wi),{key:0,payload:l.event.payload},null,8,["payload"])):q("",!0)]),_:1}),L(x(Ie),{name:"Flamechart"},{default:z(()=>[n.value==="Flamechart"?(S(),re(x(Zn),{key:n.value,"data-key":n.value,edges:l.event.payload.edges,onHover:o,onHide:o},null,8,["data-key","edges"])):q("",!0)]),_:1})]),_:1})])],512),i.value?(S(),re(x(dt),{key:0,class:"profiler-page__hover-edge",edge:i.value,style:oe(r.value)},null,8,["edge","style"])):q("",!0)])]))}});const as=B(os,[["__scopeId","data-v-01765fde"]]),{normalizeProfilerEvent:ls}=ei(),hs=Z({components:{ProfilerPage:as,PageHeader:Jt},async setup(){const t=qt(),e=Qt(),i=t.params.id;{const{$events:n}=Zt(),{data:s,pending:r}=await jt(n.getUrl(i),{onResponse({response:o}){return o.data},onResponseError(){e.push("/404")},onRequestError(){e.push("/404")}},"$QtIRZfGdYG");return{serverEvent:s,pending:r,eventId:i,clearEvent:()=>n.removeById(i)}}},head(){return{title:`Profiler > ${this.eventId} | Buggregator`}},computed:{event(){return this.serverEvent?ls(this.serverEvent):null}},methods:{onDelete(){this.clearEvent(),this.$router.push("/")}}});const De=t=>(at("data-v-505064f6"),t=t(),lt(),t),cs={class:"profiler-event"},ds={key:0,class:"profiler-event__loading"},us=De(()=>E("div",null,null,-1)),gs=De(()=>E("div",null,null,-1)),fs=De(()=>E("div",null,null,-1)),ps=[us,gs,fs],vs={class:"profiler-event__body"};function ms(t,e,i,n,s,r){const o=It,a=$e("PageHeader"),l=$e("ProfilerPage");return S(),$("main",cs,[L(a,{class:"profiler-event__head","button-title":"Delete event",onDelete:t.onDelete},{default:z(()=>[L(o,{to:"/"},{default:z(()=>[I("Home")]),_:1}),I(" /  "),L(o,{to:"/profiler"},{default:z(()=>[I("Profiler")]),_:1}),I(" /  "),L(o,{disabled:!0},{default:z(()=>[I(j(t.eventId),1)]),_:1})]),_:1},8,["onDelete"]),t.pending&&!t.event?(S(),$("div",ds,ps)):q("",!0),E("div",vs,[t.event?(S(),re(l,{key:0,event:t.event},null,8,["event"])):q("",!0)])])}const _s=B(hs,[["render",ms],["__scopeId","data-v-505064f6"]]);export{_s as default}; diff --git a/resources/frontend/_nuxt/_id_.40a647a1.js b/resources/frontend/_nuxt/_id_.40a647a1.js new file mode 100644 index 00000000..60f54af8 --- /dev/null +++ b/resources/frontend/_nuxt/_id_.40a647a1.js @@ -0,0 +1 @@ +import{_ as A}from"./layout-sidebar.vue.180f31cf.js";import{d as R,c as v,o,a as p,b as u,t as c,e as r,f as h,w as l,F as k,r as q,g,u as _,h as i,p as O,i as j,_ as w,j as C,k as N,l as F,m as E}from"./entry.d63b9a39.js";import{u as T}from"./fetch.a2f95d2b.js";import{P as V}from"./page-header.1b1819e2.js";import{u as L}from"./use-http-dump.161252c9.js";import{T as H,a as P}from"./table-base.31e6f876.js";import{F as Q}from"./file-attachment.9a6d5475.js";import"./use-formats.c79ce0bd.js";const $=a=>(O("data-v-63ed9648"),a=a(),j(),a),U={ref:"main",class:"http-dump-page"},z={class:"http-dump-page__main"},G={class:"http-dump-page__title"},J={class:"http-dump-page__title-method"},K={class:"http-dump-page__title-uri"},M={key:0,class:"http-dump-page__section"},W=$(()=>u("h1",null,"Headers",-1)),X={key:1,class:"http-dump-page__section"},Y=$(()=>u("h1",null,"Cookie",-1)),Z={key:2,class:"http-dump-page__section"},x=$(()=>u("h1",null,"Query Parameters",-1)),ee={key:3,class:"http-dump-page__section"},te=$(()=>u("h1",null,"POST Data",-1)),se={key:4,class:"http-dump-page__section"},ne={class:"http-dump-page__attachments"},oe={key:5,class:"http-dump-page__section"},ae=$(()=>u("h1",null,"Request Body",-1)),ue={class:"http-dump-page__section-body"},de=R({__name:"http-dump-page",props:{event:{}},setup(a){const d=a,y=v(()=>{var e,n;return decodeURI((n=(e=d.event.payload)==null?void 0:e.request)==null?void 0:n.uri)}),f=v(()=>{var e,n,t,s;return((n=(e=d.event.payload)==null?void 0:e.request)==null?void 0:n.post)&&Object.keys((s=(t=d.event.payload)==null?void 0:t.request)==null?void 0:s.post).length>0}),b=v(()=>{var e,n,t,s;return((n=(e=d.event.payload)==null?void 0:e.request)==null?void 0:n.query)&&Object.keys((s=(t=d.event.payload)==null?void 0:t.request)==null?void 0:s.query).length>0}),D=v(()=>{var e,n;return Object.keys(((n=(e=d.event.payload)==null?void 0:e.request)==null?void 0:n.headers)||{}).length>0}),m=v(()=>{var e,n,t,s;return((n=(e=d.event.payload)==null?void 0:e.request)==null?void 0:n.cookies)&&Object.keys((s=(t=d.event.payload)==null?void 0:t.request)==null?void 0:s.cookies).length>0}),B=v(()=>{var e,n,t;return((t=(n=(e=d.event.payload)==null?void 0:e.request)==null?void 0:n.body)==null?void 0:t.length)>0}),I=v(()=>{var e,n,t,s;return((n=(e=d.event.payload)==null?void 0:e.request)==null?void 0:n.files)&&Object.keys((s=(t=d.event.payload)==null?void 0:t.request)==null?void 0:s.files).length>0});return(e,n)=>(o(),p("div",U,[u("main",z,[u("h2",G,[u("span",J,c(e.event.payload.request.method),1),r(": "),u("span",K,"/"+c(y.value),1)]),D.value?(o(),p("section",M,[W,h(_(P),null,{default:l(()=>[(o(!0),p(k,null,q(e.event.payload.request.headers,(t,s)=>(o(),g(_(H),{key:s,title:String(s)},{default:l(()=>[r(c(t[0]||t),1)]),_:2},1032,["title"]))),128))]),_:1})])):i("",!0),m.value?(o(),p("section",X,[Y,h(_(P),null,{default:l(()=>[(o(!0),p(k,null,q(e.event.payload.request.cookies,(t,s)=>(o(),g(_(H),{key:s,title:String(s)},{default:l(()=>[r(c(t),1)]),_:2},1032,["title"]))),128))]),_:1})])):i("",!0),b.value?(o(),p("section",Z,[x,h(_(P),null,{default:l(()=>[(o(!0),p(k,null,q(e.event.payload.request.query,(t,s)=>(o(),g(_(H),{key:s,title:String(s)},{default:l(()=>[r(c(t),1)]),_:2},1032,["title"]))),128))]),_:1})])):i("",!0),f.value?(o(),p("section",ee,[te,h(_(P),null,{default:l(()=>[(o(!0),p(k,null,q(e.event.payload.request.post,(t,s)=>(o(),g(_(H),{key:s,title:String(s)},{default:l(()=>[r(c(t),1)]),_:2},1032,["title"]))),128))]),_:1})])):i("",!0),I.value?(o(),p("section",se,[u("h1",null,"Attachments ("+c(e.event.payload.request.files.length)+")",1),u("div",ne,[(o(!0),p(k,null,q(e.event.payload.request.files,t=>(o(),g(_(Q),{key:t.id,"event-id":e.event.id,attachment:t},null,8,["event-id","attachment"]))),128))])])):i("",!0),B.value?(o(),p("section",oe,[ae,u("code",ue,c(e.event.payload.request.body),1)])):i("",!0)])],512))}});const pe=w(de,[["__scopeId","data-v-63ed9648"]]),{normalizeHttpDumpEvent:le}=L(),re=R({components:{HttpDumpPage:pe,PageHeader:V},async setup(){const a=C(),d=N(),y=a.params.id;{const{$events:f}=F(),{data:b,pending:D}=await T(f.getUrl(y),{onResponse({response:m}){return m.data},onResponseError(){d.push("/404")},onRequestError(){d.push("/404")}},"$49gnpqdOen");return{serverEvent:b,pending:D,eventId:y,clearEvent:()=>f.removeById(y)}}},head(){return{title:`Http dumps > ${this.eventId} | Buggregator`}},computed:{event(){return this.serverEvent?le(this.serverEvent):null}},methods:{onDelete(){this.clearEvent(),this.$router.push("/")}}});const S=a=>(O("data-v-2f4992a2"),a=a(),j(),a),_e={class:"http-dumps-event"},ce={key:0,class:"http-dumps-event__loading"},ie=S(()=>u("div",null,null,-1)),he=S(()=>u("div",null,null,-1)),me=S(()=>u("div",null,null,-1)),ve=[ie,he,me],ye={class:"http-dumps-event__body"};function ge(a,d,y,f,b,D){const m=A,B=E("PageHeader"),I=E("HttpDumpPage");return o(),p("main",_e,[h(B,{class:"http-dumps-event__head","button-title":"Delete event",onDelete:a.onDelete},{default:l(()=>[h(m,{to:"/"},{default:l(()=>[r("Home")]),_:1}),r(" / "),h(m,{to:"/http-dumps"},{default:l(()=>[r("Http dumps")]),_:1}),r(" / "),h(m,{disabled:!0},{default:l(()=>[r(c(a.event.id),1)]),_:1})]),_:1},8,["onDelete"]),a.pending&&!a.event?(o(),p("div",ce,ve)):i("",!0),u("div",ye,[a.event?(o(),g(I,{key:0,event:a.event},null,8,["event"])):i("",!0)])])}const Be=w(re,[["render",ge],["__scopeId","data-v-2f4992a2"]]);export{Be as default}; diff --git a/resources/frontend/_nuxt/_id_.78fc0592.css b/resources/frontend/_nuxt/_id_.78fc0592.css new file mode 100644 index 00000000..40837885 --- /dev/null +++ b/resources/frontend/_nuxt/_id_.78fc0592.css @@ -0,0 +1 @@ +@keyframes lds-ellipsis1-e6095a33{0%{transform:scale(0)}to{transform:scale(1)}}@keyframes lds-ellipsis3-e6095a33{0%{transform:scale(1)}to{transform:scale(0)}}@keyframes lds-ellipsis2-e6095a33{0%{transform:translate(0)}to{transform:translate(24px)}}.sentry-page-tags__title[data-v-e6095a33]{--tw-text-opacity:1;color:#4b5563;color:rgb(75 85 99/var(--tw-text-opacity))}[data-v-e6095a33]:is(.dark .sentry-page-tags__title){--tw-text-opacity:1;color:#9ca3af;color:rgb(156 163 175/var(--tw-text-opacity))}.sentry-page-tags__title[data-v-e6095a33]{font-size:.875rem;font-weight:700;line-height:1.25rem;margin-bottom:1.25rem;text-transform:uppercase}.sentry-page-tags__boxes[data-v-e6095a33]{align-items:stretch;-moz-column-gap:1rem;column-gap:1rem;display:flex;flex-direction:column;margin-bottom:1.25rem}@media (min-width:768px){.sentry-page-tags__boxes[data-v-e6095a33]{flex-direction:row}}.sentry-page-tags__box[data-v-e6095a33]{--tw-border-opacity:1;border-color:#a5b4fc;border-color:rgb(165 180 252/var(--tw-border-opacity));border-radius:.25rem;border-width:1px;cursor:pointer;margin-bottom:.75rem;padding:.25rem 1rem .5rem}.sentry-page-tags__box[data-v-e6095a33]:hover{--tw-bg-opacity:1;background-color:#eef2ff;background-color:rgb(238 242 255/var(--tw-bg-opacity))}[data-v-e6095a33]:is(.dark .sentry-page-tags__box){--tw-border-opacity:1;border-color:#9ca3af;border-color:rgb(156 163 175/var(--tw-border-opacity))}[data-v-e6095a33]:is(.dark .sentry-page-tags__box:hover){--tw-bg-opacity:1;background-color:#4f46e5;background-color:rgb(79 70 229/var(--tw-bg-opacity))}@media (min-width:768px){.sentry-page-tags__box[data-v-e6095a33]{margin-bottom:0}}.sentry-page-tags__box-title[data-v-e6095a33]{--tw-text-opacity:1;color:#4b5563;color:rgb(75 85 99/var(--tw-text-opacity))}[data-v-e6095a33]:is(.dark .sentry-page-tags__box-title){--tw-text-opacity:1;color:#9ca3af;color:rgb(156 163 175/var(--tw-text-opacity))}.sentry-page-tags__box-title[data-v-e6095a33]{font-size:.75rem;font-weight:700;line-height:1rem}.sentry-page-tags__box-name[data-v-e6095a33]{font-weight:700}.sentry-page-tags__box-value[data-v-e6095a33]{font-size:.875rem;line-height:1.25rem}.sentry-page-tags__labels[data-v-e6095a33]{--tw-text-opacity:1;align-items:center;color:#4f46e5;color:rgb(79 70 229/var(--tw-text-opacity));display:flex;flex-direction:row;flex-wrap:wrap;gap:.75rem}[data-v-e6095a33]:is(.dark .sentry-page-tags__labels){--tw-text-opacity:1;color:#e0e7ff;color:rgb(224 231 255/var(--tw-text-opacity))}.sentry-page-tags__labels-wrapper[data-v-e6095a33]{--tw-border-opacity:1;--tw-bg-opacity:1;background-color:#f9fafb;background-color:rgb(249 250 251/var(--tw-bg-opacity));border-color:#a5b4fc;border-color:rgb(165 180 252/var(--tw-border-opacity));border-radius:.375rem;border-width:1px;padding:1rem}[data-v-e6095a33]:is(.dark .sentry-page-tags__labels-wrapper){--tw-border-opacity:1;--tw-bg-opacity:1;background-color:#111827;background-color:rgb(17 24 39/var(--tw-bg-opacity));border-color:#9ca3af;border-color:rgb(156 163 175/var(--tw-border-opacity))}.sentry-page-tags__label[data-v-e6095a33]{--tw-border-opacity:1;align-items:center;border-color:#a5b4fc;border-color:rgb(165 180 252/var(--tw-border-opacity));border-radius:.25rem;border-width:1px;display:flex;font-size:.75rem;line-height:1rem}.sentry-page-tags__label-name[data-v-e6095a33]{border-right-width:1px;padding:.25rem .75rem}.sentry-page-tags__label-value[data-v-e6095a33]{--tw-bg-opacity:1;background-color:#e0e7ff;background-color:rgb(224 231 255/var(--tw-bg-opacity));border-bottom-right-radius:.25rem;border-top-right-radius:.25rem;font-weight:700;padding:.25rem .75rem}[data-v-e6095a33]:is(.dark .sentry-page-tags__label-value){--tw-bg-opacity:1;background-color:#3730a3;background-color:rgb(55 48 163/var(--tw-bg-opacity))}@keyframes lds-ellipsis1-a958c8fb{0%{transform:scale(0)}to{transform:scale(1)}}@keyframes lds-ellipsis3-a958c8fb{0%{transform:scale(1)}to{transform:scale(0)}}@keyframes lds-ellipsis2-a958c8fb{0%{transform:translate(0)}to{transform:translate(24px)}}.sentry-page-request__wrapper[data-v-a958c8fb]{--tw-border-opacity:1;--tw-bg-opacity:1;background-color:#f3f4f6;background-color:rgb(243 244 246/var(--tw-bg-opacity));border-color:#a5b4fc;border-color:rgb(165 180 252/var(--tw-border-opacity));border-radius:.375rem;border-width:1px;padding:.75rem}[data-v-a958c8fb]:is(.dark .sentry-page-request__wrapper){--tw-border-opacity:1;--tw-bg-opacity:1;background-color:#111827;background-color:rgb(17 24 39/var(--tw-bg-opacity));border-color:#9ca3af;border-color:rgb(156 163 175/var(--tw-border-opacity))}.sentry-page-request__title[data-v-a958c8fb]{--tw-text-opacity:1;color:#4b5563;color:rgb(75 85 99/var(--tw-text-opacity))}[data-v-a958c8fb]:is(.dark .sentry-page-request__title){--tw-text-opacity:1;color:#9ca3af;color:rgb(156 163 175/var(--tw-text-opacity))}.sentry-page-request__title[data-v-a958c8fb]{font-size:.875rem;font-weight:700;line-height:1.25rem;margin-bottom:1.25rem;text-transform:uppercase}.sentry-page-request__title--sub[data-v-a958c8fb]{margin-top:1.75rem}.sentry-page-request__url[data-v-a958c8fb]{font-size:1.125rem;font-weight:500;line-height:1.75rem;margin-bottom:.25rem}@keyframes lds-ellipsis1-0e9cd169{0%{transform:scale(0)}to{transform:scale(1)}}@keyframes lds-ellipsis3-0e9cd169{0%{transform:scale(1)}to{transform:scale(0)}}@keyframes lds-ellipsis2-0e9cd169{0%{transform:translate(0)}to{transform:translate(24px)}}.sentry-page-device__title[data-v-0e9cd169]{--tw-text-opacity:1;color:#4b5563;color:rgb(75 85 99/var(--tw-text-opacity))}[data-v-0e9cd169]:is(.dark .sentry-page-device__title){--tw-text-opacity:1;color:#9ca3af;color:rgb(156 163 175/var(--tw-text-opacity))}.sentry-page-device__title[data-v-0e9cd169]{font-size:.875rem;font-weight:700;line-height:1.25rem;margin-bottom:1.25rem;text-transform:uppercase}@keyframes lds-ellipsis1-f3ff3d48{0%{transform:scale(0)}to{transform:scale(1)}}@keyframes lds-ellipsis3-f3ff3d48{0%{transform:scale(1)}to{transform:scale(0)}}@keyframes lds-ellipsis2-f3ff3d48{0%{transform:translate(0)}to{transform:translate(24px)}}.sentry-page-breadcrumbs[data-v-f3ff3d48]{padding:1.25rem 1rem}.sentry-page-breadcrumbs__title[data-v-f3ff3d48]{--tw-text-opacity:1;color:#4b5563;color:rgb(75 85 99/var(--tw-text-opacity))}[data-v-f3ff3d48]:is(.dark .sentry-page-breadcrumbs__title){--tw-text-opacity:1;color:#9ca3af;color:rgb(156 163 175/var(--tw-text-opacity))}.sentry-page-breadcrumbs__title[data-v-f3ff3d48]{font-size:.875rem;font-weight:700;line-height:1.25rem;margin-bottom:1.25rem;text-transform:uppercase}.sentry-page-breadcrumbs__counter[data-v-f3ff3d48]{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:#e0e7ff;background-color:rgb(224 231 255/var(--tw-bg-opacity));border-radius:9999px;color:#4f46e5;color:rgb(79 70 229/var(--tw-text-opacity));font-size:.75rem;line-height:1rem;margin-left:.5rem;padding:.25rem .5rem}[data-v-f3ff3d48]:is(.dark .sentry-page-breadcrumbs__counter){--tw-bg-opacity:1;--tw-text-opacity:1;background-color:#3730a3;background-color:rgb(55 48 163/var(--tw-bg-opacity));color:#e0e7ff;color:rgb(224 231 255/var(--tw-text-opacity))}.sentry-page-breadcrumbs__in[data-v-f3ff3d48]{--tw-border-opacity:1;border-color:#a5b4fc;border-color:rgb(165 180 252/var(--tw-border-opacity));border-radius:.25rem;border-width:1px;display:flex;flex-direction:column;overflow:hidden}[data-v-f3ff3d48]:is(.dark .sentry-page-breadcrumbs__in){--tw-border-opacity:1;border-color:#9ca3af;border-color:rgb(156 163 175/var(--tw-border-opacity))}.sentry-page-breadcrumbs__in[data-v-f3ff3d48]{max-height:600px}.sentry-page-breadcrumbs__nav[data-v-f3ff3d48]{--tw-border-opacity:1;--tw-bg-opacity:1;--tw-text-opacity:1;background-color:#eef2ff;background-color:rgb(238 242 255/var(--tw-bg-opacity));border-bottom-width:1px;border-color:#a5b4fc;border-color:rgb(165 180 252/var(--tw-border-opacity));border-top-left-radius:.25rem;border-top-right-radius:.25rem;color:#4f46e5;color:rgb(79 70 229/var(--tw-text-opacity));display:grid;font-size:.75rem;font-weight:700;line-height:1rem}[data-v-f3ff3d48]:is(.dark .sentry-page-breadcrumbs__nav){--tw-border-opacity:1;--tw-bg-opacity:1;--tw-text-opacity:1;background-color:#3730a3;background-color:rgb(55 48 163/var(--tw-bg-opacity));border-color:#4338ca;border-color:rgb(67 56 202/var(--tw-border-opacity));color:#e0e7ff;color:rgb(224 231 255/var(--tw-text-opacity))}.sentry-page-breadcrumbs__nav-col-title[data-v-f3ff3d48]{padding:.75rem;text-transform:uppercase}.sentry-page-breadcrumbs__cols-wr[data-v-f3ff3d48]{flex:1 1 0%;max-height:100%}.sentry-page-breadcrumbs__cols-wr[data-v-f3ff3d48]>:not([hidden])~:not([hidden]){--tw-divide-y-reverse:0;--tw-divide-opacity:1;border-bottom-width:0;border-bottom-width:calc(1px*var(--tw-divide-y-reverse));border-color:#a5b4fc;border-color:rgb(165 180 252/var(--tw-divide-opacity));border-top-width:1px;border-top-width:calc(1px*(1 - var(--tw-divide-y-reverse)))}.sentry-page-breadcrumbs__cols-wr[data-v-f3ff3d48]{--tw-bg-opacity:1;background-color:#f3f4f6;background-color:rgb(243 244 246/var(--tw-bg-opacity));overflow-y:scroll}[data-v-f3ff3d48]:is(.dark .sentry-page-breadcrumbs__cols-wr)>:not([hidden])~:not([hidden]){--tw-divide-opacity:1;border-color:#4f46e5;border-color:rgb(79 70 229/var(--tw-divide-opacity))}[data-v-f3ff3d48]:is(.dark .sentry-page-breadcrumbs__cols-wr){--tw-bg-opacity:1;background-color:#1f2937;background-color:rgb(31 41 55/var(--tw-bg-opacity))}.sentry-page-breadcrumbs__cols[data-v-f3ff3d48]{display:grid;font-size:.75rem;grid-template-columns:1fr 100px 200px;line-height:1rem}.sentry-page-breadcrumbs__col[data-v-f3ff3d48]{padding:.75rem}.sentry-page-breadcrumbs__col-data[data-v-f3ff3d48]{border-radius:.375rem;margin-top:.75rem;overflow:hidden}.sentry-page-breadcrumbs__col-message[data-v-f3ff3d48]{font-weight:700}.sentry-page-breadcrumbs__col-details[data-v-f3ff3d48]{--tw-text-opacity:1;align-items:center;color:#4f46e5;color:rgb(79 70 229/var(--tw-text-opacity));display:flex;flex-direction:row;flex-wrap:wrap;font-size:.6rem;gap:.75rem;line-height:1rem;margin-bottom:.75rem;margin-top:.75rem}[data-v-f3ff3d48]:is(.dark .sentry-page-breadcrumbs__col-details){--tw-text-opacity:1;color:#e0e7ff;color:rgb(224 231 255/var(--tw-text-opacity))}.sentry-page-breadcrumbs__col-detail[data-v-f3ff3d48]{--tw-border-opacity:1;align-items:center;border-color:#a5b4fc;border-color:rgb(165 180 252/var(--tw-border-opacity));border-radius:.25rem;border-width:1px;display:flex}[data-v-f3ff3d48]:is(.dark .sentry-page-breadcrumbs__col-detail){--tw-border-opacity:1;border-color:#4338ca;border-color:rgb(67 56 202/var(--tw-border-opacity))}.sentry-page-breadcrumbs__col-detail-title[data-v-f3ff3d48]{border-right-width:1px;padding-left:.5rem;padding-right:.5rem}[data-v-f3ff3d48]:is(.dark .sentry-page-breadcrumbs__col-detail-title){--tw-border-opacity:1;border-color:#4338ca;border-color:rgb(67 56 202/var(--tw-border-opacity))}.sentry-page-breadcrumbs__col-detail-value[data-v-f3ff3d48]{--tw-bg-opacity:1;background-color:#e0e7ff;background-color:rgb(224 231 255/var(--tw-bg-opacity));border-bottom-right-radius:.25rem;border-top-right-radius:.25rem;font-weight:700;padding-left:.5rem;padding-right:.5rem}[data-v-f3ff3d48]:is(.dark .sentry-page-breadcrumbs__col-detail-value){--tw-bg-opacity:1;background-color:#3730a3;background-color:rgb(55 48 163/var(--tw-bg-opacity))}.sentry-page-breadcrumbs__col-level-badge[data-v-f3ff3d48]{border-radius:9999px;font-size:.6rem;font-weight:700;line-height:1rem;padding:.25rem .5rem;text-transform:uppercase}.sentry-page-breadcrumbs__col-level-badge.debug[data-v-f3ff3d48]{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:#f3f4f6;background-color:rgb(243 244 246/var(--tw-bg-opacity));color:#4b5563;color:rgb(75 85 99/var(--tw-text-opacity))}[data-v-f3ff3d48]:is(.dark .sentry-page-breadcrumbs__col-level-badge.debug){--tw-bg-opacity:1;--tw-text-opacity:1;background-color:#1f2937;background-color:rgb(31 41 55/var(--tw-bg-opacity));color:#f3f4f6;color:rgb(243 244 246/var(--tw-text-opacity))}.sentry-page-breadcrumbs__col-level-badge.error[data-v-f3ff3d48]{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:#ffe4e6;background-color:rgb(255 228 230/var(--tw-bg-opacity));color:#e11d48;color:rgb(225 29 72/var(--tw-text-opacity))}[data-v-f3ff3d48]:is(.dark .sentry-page-breadcrumbs__col-level-badge.error){--tw-bg-opacity:1;--tw-text-opacity:1;background-color:#9f1239;background-color:rgb(159 18 57/var(--tw-bg-opacity));color:#ffe4e6;color:rgb(255 228 230/var(--tw-text-opacity))}.sentry-page-breadcrumbs__col-level-badge.warning[data-v-f3ff3d48]{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:#fef9c3;background-color:rgb(254 249 195/var(--tw-bg-opacity));color:#ca8a04;color:rgb(202 138 4/var(--tw-text-opacity))}[data-v-f3ff3d48]:is(.dark .sentry-page-breadcrumbs__col-level-badge.warning){--tw-bg-opacity:1;--tw-text-opacity:1;background-color:#854d0e;background-color:rgb(133 77 14/var(--tw-bg-opacity));color:#fef9c3;color:rgb(254 249 195/var(--tw-text-opacity))}.sentry-page-breadcrumbs__col-level-badge.info[data-v-f3ff3d48]{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:#dbeafe;background-color:rgb(219 234 254/var(--tw-bg-opacity));color:#2563eb;color:rgb(37 99 235/var(--tw-text-opacity))}[data-v-f3ff3d48]:is(.dark .sentry-page-breadcrumbs__col-level-badge.info){--tw-bg-opacity:1;--tw-text-opacity:1;background-color:#1e40af;background-color:rgb(30 64 175/var(--tw-bg-opacity));color:#dbeafe;color:rgb(219 234 254/var(--tw-text-opacity))}@keyframes lds-ellipsis1-5e9e0690{0%{transform:scale(0)}to{transform:scale(1)}}@keyframes lds-ellipsis3-5e9e0690{0%{transform:scale(1)}to{transform:scale(0)}}@keyframes lds-ellipsis2-5e9e0690{0%{transform:translate(0)}to{transform:translate(24px)}}.sentry-page-app[data-v-5e9e0690]{padding:1.25rem 1rem}.sentry-page-app__title[data-v-5e9e0690]{--tw-text-opacity:1;color:#4b5563;color:rgb(75 85 99/var(--tw-text-opacity))}[data-v-5e9e0690]:is(.dark .sentry-page-app__title){--tw-text-opacity:1;color:#9ca3af;color:rgb(156 163 175/var(--tw-text-opacity))}.sentry-page-app__title[data-v-5e9e0690]{font-size:.875rem;font-weight:700;line-height:1.25rem;margin-bottom:1.25rem;text-transform:uppercase}@keyframes lds-ellipsis1-e751ab50{0%{transform:scale(0)}to{transform:scale(1)}}@keyframes lds-ellipsis3-e751ab50{0%{transform:scale(1)}to{transform:scale(0)}}@keyframes lds-ellipsis2-e751ab50{0%{transform:translate(0)}to{transform:translate(24px)}}.sentry-page[data-v-e751ab50]{position:relative}.sentry-page__main[data-v-e751ab50]{display:flex;flex-direction:column;width:100%}.sentry-page__main-header[data-v-e751ab50]{--tw-bg-opacity:1;background-color:#f9fafb;background-color:rgb(249 250 251/var(--tw-bg-opacity));padding:1.25rem 1rem}[data-v-e751ab50]:is(.dark .sentry-page__main-header){--tw-bg-opacity:1;background-color:#111827;background-color:rgb(17 24 39/var(--tw-bg-opacity))}@media (min-width:768px){.sentry-page__main-header[data-v-e751ab50]{padding-left:1.5rem;padding-right:1.5rem}}@media (min-width:1024px){.sentry-page__main-header[data-v-e751ab50]{padding-left:2rem;padding-right:2rem}}.sentry-page__main-exception[data-v-e751ab50]{font-size:.875rem;font-weight:700;line-height:1.25rem;margin-bottom:.75rem;word-break:break-all}@media (min-width:640px){.sentry-page__main-exception[data-v-e751ab50]{font-size:1rem;line-height:1.5rem;overflow-wrap:normal;word-break:normal}}@media (min-width:768px){.sentry-page__main-exception[data-v-e751ab50]{font-size:1.125rem;line-height:1.75rem}}@media (min-width:1024px){.sentry-page__main-exception[data-v-e751ab50]{font-size:1.5rem;line-height:2rem}}.sentry-page__main-date[data-v-e751ab50]{--tw-text-opacity:1;color:#4b5563;color:rgb(75 85 99/var(--tw-text-opacity))}[data-v-e751ab50]:is(.dark .sentry-page__main-date){--tw-text-opacity:1;color:#9ca3af;color:rgb(156 163 175/var(--tw-text-opacity))}.sentry-page__main-date[data-v-e751ab50]{font-size:.75rem;line-height:1rem;margin-top:.75rem}.sentry-page__main-exception-message[data-v-e751ab50]{--tw-border-opacity:1;--tw-bg-opacity:1;--tw-text-opacity:1;background-color:#1f2937;background-color:rgb(31 41 55/var(--tw-bg-opacity));border-color:#d1d5db;border-color:rgb(209 213 219/var(--tw-border-opacity));border-width:1px;color:#fff;color:rgb(255 255 255/var(--tw-text-opacity));padding:.5rem}[data-v-e751ab50]:is(.dark .sentry-page__main-exception-message){--tw-border-opacity:1;border-color:#4b5563;border-color:rgb(75 85 99/var(--tw-border-opacity))}.sentry-page__main-exception-message[data-v-e751ab50]{--tw-text-opacity:.6;border-radius:.25rem;font-size:.875rem;line-height:1.25rem}.sentry-page__section[data-v-e751ab50]{padding:1.25rem 1rem}.sentry-page__section-title[data-v-e751ab50]{--tw-text-opacity:1;color:#4b5563;color:rgb(75 85 99/var(--tw-text-opacity))}[data-v-e751ab50]:is(.dark .sentry-page__section-title){--tw-text-opacity:1;color:#9ca3af;color:rgb(156 163 175/var(--tw-text-opacity))}.sentry-page__section-title[data-v-e751ab50]{font-size:.875rem;font-weight:700;line-height:1.25rem;margin-bottom:1.25rem;text-transform:uppercase}.sentry-page__section-title__counter[data-v-e751ab50]{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:#e0e7ff;background-color:rgb(224 231 255/var(--tw-bg-opacity));border-radius:9999px;color:#4f46e5;color:rgb(79 70 229/var(--tw-text-opacity));font-size:.75rem;line-height:1rem;margin-left:.5rem;padding:.25rem .5rem}[data-v-e751ab50]:is(.dark .sentry-page__section-title__counter){--tw-bg-opacity:1;--tw-text-opacity:1;background-color:#3730a3;background-color:rgb(55 48 163/var(--tw-bg-opacity));color:#e0e7ff;color:rgb(224 231 255/var(--tw-text-opacity))}.sentry-page__section-exceptions[data-v-e751ab50]{display:flex;flex-direction:column;margin-left:-1rem;margin-right:-1rem}.sentry-page__section-exceptions__exception[data-v-e751ab50]{padding:1rem}@keyframes lds-ellipsis1-9e373f3f{0%{transform:scale(0)}to{transform:scale(1)}}@keyframes lds-ellipsis3-9e373f3f{0%{transform:scale(1)}to{transform:scale(0)}}@keyframes lds-ellipsis2-9e373f3f{0%{transform:translate(0)}to{transform:translate(24px)}}.sentry-event[data-v-9e373f3f]{--tw-bg-opacity:1;background-color:#fff;background-color:rgb(255 255 255/var(--tw-bg-opacity));min-height:100vh;position:relative}[data-v-9e373f3f]:is(.dark .sentry-event){--tw-bg-opacity:1;background-color:#1f2937;background-color:rgb(31 41 55/var(--tw-bg-opacity))}.sentry-event__head[data-v-9e373f3f]{--tw-border-opacity:1;--tw-bg-opacity:1;background-color:#fff;background-color:rgb(255 255 255/var(--tw-bg-opacity));border-bottom-width:1px;border-color:#e5e7eb;border-color:rgb(229 231 235/var(--tw-border-opacity));height:3rem;justify-content:space-between;left:2.5rem;padding-left:1rem;padding-right:1rem;z-index:50}[data-v-9e373f3f]:is(.dark .sentry-event__head){--tw-border-opacity:1;--tw-bg-opacity:1;background-color:#1f2937;background-color:rgb(31 41 55/var(--tw-bg-opacity));border-color:#374151;border-color:rgb(55 65 81/var(--tw-border-opacity))}.sentry-event__head[data-v-9e373f3f]{left:0;position:absolute;right:0}html.navbar-fixed .sentry-event__head[data-v-9e373f3f]{left:2.5rem;position:fixed;right:0}@media (min-width:768px){html.navbar-fixed .sentry-event__head[data-v-9e373f3f]{left:3.5rem}}@media (min-width:1024px){html.navbar-fixed .sentry-event__head[data-v-9e373f3f]{left:4rem}}.sentry-event__loading[data-v-9e373f3f]{display:inline-block;display:flex;flex:1 1 0%;flex-direction:column;height:80px;left:50%;padding-top:3rem;position:absolute;top:50%;transform:translate(-40px,-40px);width:80px}.sentry-event__loading div[data-v-9e373f3f]{animation-timing-function:cubic-bezier(0,1,1,0);background:currentColor;border-radius:50%;height:13px;position:absolute;top:33px;width:13px}.sentry-event__loading div[data-v-9e373f3f]:first-child{animation:lds-ellipsis1-9e373f3f .6s infinite;left:8px}.sentry-event__loading div[data-v-9e373f3f]:nth-child(2){animation:lds-ellipsis2-9e373f3f .6s infinite;left:8px}.sentry-event__loading div[data-v-9e373f3f]:nth-child(3){animation:lds-ellipsis2-9e373f3f .6s infinite;left:32px}.sentry-event__loading div[data-v-9e373f3f]:nth-child(4){animation:lds-ellipsis3-9e373f3f .6s infinite;left:56px}.sentry-event__body[data-v-9e373f3f]{display:flex;flex:1 1 0%;flex-direction:column;padding-top:3rem} diff --git a/resources/frontend/_nuxt/_id_.79ed8082.css b/resources/frontend/_nuxt/_id_.79ed8082.css new file mode 100644 index 00000000..3781fc78 --- /dev/null +++ b/resources/frontend/_nuxt/_id_.79ed8082.css @@ -0,0 +1 @@ +@keyframes lds-ellipsis1{0%{transform:scale(0)}to{transform:scale(1)}}@keyframes lds-ellipsis3{0%{transform:scale(1)}to{transform:scale(0)}}@keyframes lds-ellipsis2{0%{transform:translate(0)}to{transform:translate(24px)}}.smtp-page-preview{align-items:center;display:flex;flex:1 1 0%;flex-direction:column;height:100%}.smtp-page-preview__in{display:flex;justify-content:center;margin-bottom:1.25rem}.smtp-page-preview__btn{border-radius:.25rem;padding:.25rem}.smtp-page-preview__btn--active{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:#eff6ff;background-color:rgb(239 246 255/var(--tw-bg-opacity));color:#2563eb;color:rgb(37 99 235/var(--tw-text-opacity))}.smtp-page-preview__btn-icon{fill:currentColor;width:2.5rem}.smtp-page-preview__device{--tw-bg-opacity:1;align-items:center;background-color:#f9fafb;background-color:rgb(249 250 251/var(--tw-bg-opacity));display:flex;flex:1 1 0%;flex-direction:column}:is(.dark .smtp-page-preview__device){--tw-bg-opacity:1;background-color:#111827;background-color:rgb(17 24 39/var(--tw-bg-opacity))}.smtp-page-preview__device iframe,html.dark .smtp-page-preview__device{--tw-text-opacity:1;color:#1f2937;color:rgb(31 41 55/var(--tw-text-opacity))}.smtp-page-preview__device iframe{border-radius:.375rem;flex:1 1 0%;height:100%;transition-property:width!important;width:100%}.smtp-page-preview__device-in{--tw-bg-opacity:1;background-color:#fff;background-color:rgb(255 255 255/var(--tw-bg-opacity));border-radius:.375rem;transition-duration:.15s;transition-property:width!important;transition-timing-function:cubic-bezier(.4,0,1,1)}.smtp-page-preview__device--desktop .smtp-page-preview__device-in,.smtp-page-preview__device--desktop .smtp-page-preview__device-in>div{display:flex;flex:1 1 0%;flex-direction:column;height:100%;width:100%}.smtp-page-preview__device--tablet .smtp-page-preview__device-in{border-width:1px;height:1004px;width:768px}.smtp-page-preview__device--tablet .smtp-page-preview__device-in>div{height:100%;width:100%}.smtp-page-preview__device--mobile .smtp-page-preview__device-in{border-width:1px;height:568px;overflow:auto;width:320px}.smtp-page-preview__device--mobile .smtp-page-preview__device-in>div{height:100%;width:100%}.smtp-page-preview__device--desktop{border-radius:.375rem;border-width:1px;height:100%;width:100%}.smtp-page-preview__device--tablet{border-radius:1.5rem;border-width:2px;justify-content:center;padding-left:1.25rem;padding-right:1.25rem;transition-duration:.15s;transition-property:width!important;transition-timing-function:cubic-bezier(.4,0,1,1);width:auto}.smtp-page-preview__device--tablet>:not([hidden])~:not([hidden]):after{--tw-divide-opacity:1;border-color:#d1d5db;border-color:rgb(209 213 219/var(--tw-divide-opacity))}.smtp-page-preview__device--tablet:after{--tw-border-opacity:1;border-color:#d1d5db;border-color:rgb(209 213 219/var(--tw-border-opacity))}:is(.dark .smtp-page-preview__device--tablet)>:not([hidden])~:not([hidden]):after{--tw-divide-opacity:1;border-color:#6b7280;border-color:rgb(107 114 128/var(--tw-divide-opacity))}:is(.dark .smtp-page-preview__device--tablet):after{--tw-border-opacity:1;border-color:#6b7280;border-color:rgb(107 114 128/var(--tw-border-opacity))}.smtp-page-preview__device--tablet:after{--tw-bg-opacity:1;background-color:#f3f4f6;background-color:rgb(243 244 246/var(--tw-bg-opacity));border-radius:9999px;border-width:1px;display:block;height:3rem;margin-bottom:1rem;margin-top:1rem;width:3rem}:is(.dark .smtp-page-preview__device--tablet):after{--tw-bg-opacity:1;background-color:#111827;background-color:rgb(17 24 39/var(--tw-bg-opacity))}.smtp-page-preview__device--tablet:after{content:""}.smtp-page-preview__device--tablet>:not([hidden])~:not([hidden]):before{--tw-divide-opacity:1;border-color:#d1d5db;border-color:rgb(209 213 219/var(--tw-divide-opacity))}.smtp-page-preview__device--tablet:before{--tw-border-opacity:1;border-color:#d1d5db;border-color:rgb(209 213 219/var(--tw-border-opacity))}:is(.dark .smtp-page-preview__device--tablet)>:not([hidden])~:not([hidden]):before{--tw-divide-opacity:1;border-color:#6b7280;border-color:rgb(107 114 128/var(--tw-divide-opacity))}:is(.dark .smtp-page-preview__device--tablet):before{--tw-border-opacity:1;border-color:#6b7280;border-color:rgb(107 114 128/var(--tw-border-opacity))}.smtp-page-preview__device--tablet:before{--tw-bg-opacity:1;background-color:#f3f4f6;background-color:rgb(243 244 246/var(--tw-bg-opacity));border-radius:9999px;border-width:1px;display:block;height:.75rem;margin-bottom:.5rem;margin-top:.5rem;width:.75rem}:is(.dark .smtp-page-preview__device--tablet):before{--tw-bg-opacity:1;background-color:#111827;background-color:rgb(17 24 39/var(--tw-bg-opacity))}.smtp-page-preview__device--tablet:before{content:""}.smtp-page-preview__device--mobile{border-radius:1.5rem;border-width:2px;justify-content:center;padding-left:.75rem;padding-right:.75rem}.smtp-page-preview__device--mobile>:not([hidden])~:not([hidden]):before{--tw-divide-opacity:1;border-color:#d1d5db;border-color:rgb(209 213 219/var(--tw-divide-opacity))}.smtp-page-preview__device--mobile:before{--tw-border-opacity:1;border-color:#d1d5db;border-color:rgb(209 213 219/var(--tw-border-opacity))}:is(.dark .smtp-page-preview__device--mobile)>:not([hidden])~:not([hidden]):before{--tw-divide-opacity:1;border-color:#6b7280;border-color:rgb(107 114 128/var(--tw-divide-opacity))}:is(.dark .smtp-page-preview__device--mobile):before{--tw-border-opacity:1;border-color:#6b7280;border-color:rgb(107 114 128/var(--tw-border-opacity))}.smtp-page-preview__device--mobile:before{--tw-bg-opacity:1;background-color:#f3f4f6;background-color:rgb(243 244 246/var(--tw-bg-opacity));border-radius:9999px;border-width:1px;display:block;height:.75rem;margin-bottom:.5rem;margin-top:.5rem;width:.75rem}:is(.dark .smtp-page-preview__device--mobile):before{--tw-bg-opacity:1;background-color:#111827;background-color:rgb(17 24 39/var(--tw-bg-opacity))}.smtp-page-preview__device--mobile:before{content:""}.smtp-page-preview__device--mobile>:not([hidden])~:not([hidden]):after{--tw-divide-opacity:1;border-color:#d1d5db;border-color:rgb(209 213 219/var(--tw-divide-opacity))}.smtp-page-preview__device--mobile:after{--tw-border-opacity:1;border-color:#d1d5db;border-color:rgb(209 213 219/var(--tw-border-opacity))}:is(.dark .smtp-page-preview__device--mobile)>:not([hidden])~:not([hidden]):after{--tw-divide-opacity:1;border-color:#6b7280;border-color:rgb(107 114 128/var(--tw-divide-opacity))}:is(.dark .smtp-page-preview__device--mobile):after{--tw-border-opacity:1;border-color:#6b7280;border-color:rgb(107 114 128/var(--tw-border-opacity))}.smtp-page-preview__device--mobile:after{--tw-bg-opacity:1;background-color:#f3f4f6;background-color:rgb(243 244 246/var(--tw-bg-opacity));border-radius:9999px;border-width:1px;display:block;height:2rem;margin-bottom:.75rem;margin-top:.75rem;width:2rem}:is(.dark .smtp-page-preview__device--mobile):after{--tw-bg-opacity:1;background-color:#111827;background-color:rgb(17 24 39/var(--tw-bg-opacity))}.smtp-page-preview__device--mobile:after{content:""}.smtp-page-addresses[data-v-217deb6c]{display:flex;flex-direction:column}.smtp-page-addresses[data-v-217deb6c]>:not([hidden])~:not([hidden]){--tw-divide-y-reverse:0;border-bottom-width:0;border-bottom-width:calc(1px*var(--tw-divide-y-reverse));border-top-width:1px;border-top-width:calc(1px*(1 - var(--tw-divide-y-reverse)))}.smtp-page-addresses[data-v-217deb6c]{font-size:.875rem;line-height:1.25rem}.smtp-page-addresses__item[data-v-217deb6c]{align-items:center;display:flex}.smtp-page-addresses__item[data-v-217deb6c]>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:.5rem;margin-left:calc(.5rem*(1 - var(--tw-space-x-reverse)));margin-right:0;margin-right:calc(.5rem*var(--tw-space-x-reverse))}.smtp-page-addresses__item[data-v-217deb6c]{padding-bottom:.5rem;padding-top:.5rem}.smtp-page-addresses__item-name[data-v-217deb6c]{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:#1f2937;background-color:rgb(31 41 55/var(--tw-bg-opacity));color:#fff;color:rgb(255 255 255/var(--tw-text-opacity));padding-left:.5rem;padding-right:.5rem}@keyframes lds-ellipsis1-1fbbb238{0%{transform:scale(0)}to{transform:scale(1)}}@keyframes lds-ellipsis3-1fbbb238{0%{transform:scale(1)}to{transform:scale(0)}}@keyframes lds-ellipsis2-1fbbb238{0%{transform:translate(0)}to{transform:translate(24px)}}.smtp-page[data-v-1fbbb238]{position:relative}.smtp-page[data-v-1fbbb238],.smtp-page__main[data-v-1fbbb238]{display:flex;flex:1 1 0%;flex-direction:column;height:100%}.smtp-page__main[data-v-1fbbb238]{flex-grow:1;padding:1.25rem 1rem}@media (min-width:768px){.smtp-page__main[data-v-1fbbb238]{padding-left:1.5rem;padding-right:1.5rem}}@media (min-width:1024px){.smtp-page__main[data-v-1fbbb238]{padding-left:2rem;padding-right:2rem}}.smtp-page__header[data-v-1fbbb238]{display:flex;flex-direction:column;justify-content:space-between;row-gap:.5rem}@media (min-width:768px){.smtp-page__header[data-v-1fbbb238]{flex-direction:row}}.smtp-page__header-meta[data-v-1fbbb238]{align-items:center;-moz-column-gap:1.25rem;column-gap:1.25rem;display:flex;flex-direction:row;margin-bottom:1.25rem}.smtp-page__header-title[data-v-1fbbb238]{font-size:1.125rem;line-height:1.75rem}@media (min-width:1024px){.smtp-page__header-title[data-v-1fbbb238]{font-size:1.5rem;line-height:2rem}}.smtp-page__header-date[data-v-1fbbb238]{--tw-text-opacity:1;color:#4b5563;color:rgb(75 85 99/var(--tw-text-opacity))}[data-v-1fbbb238]:is(.dark .smtp-page__header-date){--tw-text-opacity:1;color:#9ca3af;color:rgb(156 163 175/var(--tw-text-opacity))}.smtp-page__header-date[data-v-1fbbb238]{font-size:.75rem;font-weight:600;line-height:1rem}@media (min-width:768px){.smtp-page__header-date[data-v-1fbbb238]{font-size:.875rem;line-height:1.25rem}}.smtp-page__sender[data-v-1fbbb238]{align-items:center;display:flex;flex-wrap:wrap;font-size:.75rem;font-weight:600;line-height:1rem;margin-top:.75rem}@media (min-width:640px){.smtp-page__sender[data-v-1fbbb238]{font-size:.875rem;line-height:1.25rem}}.smtp-page__sender-item[data-v-1fbbb238]{--tw-border-opacity:1;align-items:center;border-color:#a5b4fc;border-color:rgb(165 180 252/var(--tw-border-opacity));border-radius:.25rem;border-width:1px;display:flex;margin-bottom:.5rem;margin-right:.75rem}.smtp-page__sender-title[data-v-1fbbb238]{border-right-width:1px;font-weight:700;padding:.25rem .5rem}@media (min-width:768px){.smtp-page__sender-title[data-v-1fbbb238]{padding-left:.75rem;padding-right:.75rem}}.smtp-page__sender-address[data-v-1fbbb238]{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:#1f2937;background-color:rgb(31 41 55/var(--tw-bg-opacity));border-bottom-right-radius:.25rem;border-top-right-radius:.25rem;color:#fff;color:rgb(255 255 255/var(--tw-text-opacity));font-weight:600;padding:.25rem .5rem}@media (min-width:768px){.smtp-page__sender-address[data-v-1fbbb238]{padding-left:.75rem;padding-right:.75rem}}.smtp-page__sender-from .smtp-page__sender-address[data-v-1fbbb238]{--tw-bg-opacity:1;background-color:#1e40af;background-color:rgb(30 64 175/var(--tw-bg-opacity))}.smtp-page__sender-to .smtp-page__sender-address[data-v-1fbbb238]{--tw-bg-opacity:1;background-color:#9f1239;background-color:rgb(159 18 57/var(--tw-bg-opacity))}.smtp-page__sender-cc .smtp-page__sender-address[data-v-1fbbb238]{--tw-bg-opacity:1;background-color:#3730a3;background-color:rgb(55 48 163/var(--tw-bg-opacity))}.smtp-page__sender-reply .smtp-page__sender-address[data-v-1fbbb238]{--tw-bg-opacity:1;background-color:#166534;background-color:rgb(22 101 52/var(--tw-bg-opacity))}.smtp-page__body[data-v-1fbbb238],.smtp-page__body .tabs-component[data-v-1fbbb238],.smtp-page__body .tabs-component-panel[data-v-1fbbb238]{display:flex;flex:1 1 0%;flex-direction:column}.smtp-page__body-tab-badge[data-v-1fbbb238]{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:#9f1239;background-color:rgb(159 18 57/var(--tw-bg-opacity));border-radius:.25rem;color:#fff;color:rgb(255 255 255/var(--tw-text-opacity));font-size:.6rem;line-height:1rem;margin-left:.5rem;padding:.25rem .5rem;text-transform:uppercase}@keyframes lds-ellipsis1-caa3b2f2{0%{transform:scale(0)}to{transform:scale(1)}}@keyframes lds-ellipsis3-caa3b2f2{0%{transform:scale(1)}to{transform:scale(0)}}@keyframes lds-ellipsis2-caa3b2f2{0%{transform:translate(0)}to{transform:translate(24px)}}.smtp-event[data-v-caa3b2f2]{--tw-bg-opacity:1;background-color:#fff;background-color:rgb(255 255 255/var(--tw-bg-opacity));min-height:100vh;position:relative}[data-v-caa3b2f2]:is(.dark .smtp-event){--tw-bg-opacity:1;background-color:#1f2937;background-color:rgb(31 41 55/var(--tw-bg-opacity))}.smtp-event__head[data-v-caa3b2f2]{--tw-border-opacity:1;--tw-bg-opacity:1;background-color:#fff;background-color:rgb(255 255 255/var(--tw-bg-opacity));border-bottom-width:1px;border-color:#e5e7eb;border-color:rgb(229 231 235/var(--tw-border-opacity));height:3rem;justify-content:space-between;left:2.5rem;padding-left:1rem;padding-right:1rem;z-index:50}[data-v-caa3b2f2]:is(.dark .smtp-event__head){--tw-border-opacity:1;--tw-bg-opacity:1;background-color:#1f2937;background-color:rgb(31 41 55/var(--tw-bg-opacity));border-color:#374151;border-color:rgb(55 65 81/var(--tw-border-opacity))}.smtp-event__head[data-v-caa3b2f2]{left:0;position:absolute;right:0}html.navbar-fixed .smtp-event__head[data-v-caa3b2f2]{left:2.5rem;position:fixed;right:0}@media (min-width:768px){html.navbar-fixed .smtp-event__head[data-v-caa3b2f2]{left:3.5rem}}@media (min-width:1024px){html.navbar-fixed .smtp-event__head[data-v-caa3b2f2]{left:4rem}}.smtp-event__loading[data-v-caa3b2f2]{display:inline-block;display:flex;flex:1 1 0%;flex-direction:column;height:80px;left:50%;padding-top:3rem;position:absolute;top:50%;transform:translate(-40px,-40px);width:80px}.smtp-event__loading div[data-v-caa3b2f2]{animation-timing-function:cubic-bezier(0,1,1,0);background:currentColor;border-radius:50%;height:13px;position:absolute;top:33px;width:13px}.smtp-event__loading div[data-v-caa3b2f2]:first-child{animation:lds-ellipsis1-caa3b2f2 .6s infinite;left:8px}.smtp-event__loading div[data-v-caa3b2f2]:nth-child(2){animation:lds-ellipsis2-caa3b2f2 .6s infinite;left:8px}.smtp-event__loading div[data-v-caa3b2f2]:nth-child(3){animation:lds-ellipsis2-caa3b2f2 .6s infinite;left:32px}.smtp-event__loading div[data-v-caa3b2f2]:nth-child(4){animation:lds-ellipsis3-caa3b2f2 .6s infinite;left:56px}.smtp-event__body[data-v-caa3b2f2]{display:flex;flex:1 1 0%;flex-direction:column;height:100%;padding-top:3rem} diff --git a/resources/frontend/_nuxt/_id_.8fd38728.js b/resources/frontend/_nuxt/_id_.8fd38728.js new file mode 100644 index 00000000..8850b15e --- /dev/null +++ b/resources/frontend/_nuxt/_id_.8fd38728.js @@ -0,0 +1 @@ +import{h as D,_ as N}from"./layout-sidebar.vue.180f31cf.js";import{d as b,c as q,o as s,a as u,b as t,t as a,h as n,F as P,r as w,p as $,i as S,_ as f,e as i,g as o,w as l,u as r,f as h,s as V,j as F,k as H,l as M,m as R}from"./entry.d63b9a39.js";import{u as j}from"./fetch.a2f95d2b.js";import{P as G}from"./page-header.1b1819e2.js";import{S as O,u as K}from"./sentry-exception.20931253.js";import{T as c,a as T}from"./table-base.31e6f876.js";import{C as z}from"./code-snippet.e9f746c9.js";import{u as U}from"./use-formats.c79ce0bd.js";const m=d=>($("data-v-e6095a33"),d=d(),S(),d),W={class:"sentry-page-tags"},J={class:"sentry-page-tags__boxes"},Q={key:0,class:"sentry-page-tags__box"},X=m(()=>t("span",{class:"sentry-page-tags__box-title"},"runtime",-1)),Y={class:"sentry-page-tags__box-name"},Z={class:"sentry-page-tags__box-value"},x={key:1,class:"sentry-page-tags__box"},ee=m(()=>t("span",{class:"sentry-page-tags__box-title"},"os",-1)),se={class:"sentry-page-tags__box-name"},te={class:"sentry-page-tags__box-value"},ae={key:2,class:"sentry-page-tags__box"},ne=m(()=>t("span",{class:"sentry-page-tags__box-title"},"sdk",-1)),re={class:"sentry-page-tags__box-name"},oe={class:"sentry-page-tags__box-value"},le={class:"sentry-page-tags__labels-wrapper"},de=m(()=>t("h3",{class:"sentry-page-tags__title"},"tags",-1)),ie={class:"sentry-page-tags__labels"},_e={class:"sentry-page-tags__label"},ce=m(()=>t("div",{class:"sentry-page-tags__label-name"},"env",-1)),pe={class:"sentry-page-tags__label-value"},ue={key:0,class:"sentry-page-tags__label"},ve=m(()=>t("div",{class:"sentry-page-tags__label-name"},"release",-1)),ye={class:"sentry-page-tags__label-value"},ge={key:1,class:"sentry-page-tags__label"},me=m(()=>t("div",{class:"sentry-page-tags__label-name"},"logger",-1)),he={class:"sentry-page-tags__label-value"},be={key:2,class:"sentry-page-tags__label"},fe=m(()=>t("div",{class:"sentry-page-tags__label-name"},"os",-1)),ke={class:"sentry-page-tags__label-value"},$e={key:3,class:"sentry-page-tags__label"},Se=m(()=>t("div",{class:"sentry-page-tags__label-name"},"runtime",-1)),Ie={class:"sentry-page-tags__label-value"},qe={key:4,class:"sentry-page-tags__label"},Pe=m(()=>t("div",{class:"sentry-page-tags__label-name"},"server name",-1)),we={class:"sentry-page-tags__label-value"},Be={class:"sentry-page-tags__label"},De={class:"sentry-page-tags__label-name"},Te={class:"sentry-page-tags__label-value"},ze=b({__name:"sentry-page-tags",props:{payload:{}},setup(d){const p=d,_=q(()=>{var y;const{name:e="",version:g=""}=((y=p.payload.contexts)==null?void 0:y.runtime)||{};return{name:e,version:g}}),v=q(()=>{var y;const{name:e="",version:g=""}=((y=p.payload.contexts)==null?void 0:y.os)||{};return{name:e,version:g}});return(e,g)=>(s(),u("section",W,[t("div",J,[_.value.name?(s(),u("div",Q,[X,t("h4",Y,a(_.value.name),1),t("p",Z," Version: "+a(_.value.version),1)])):n("",!0),v.value.name?(s(),u("div",x,[ee,t("h4",se,a(v.value.name),1),t("p",te," Version: "+a(v.value.version),1)])):n("",!0),e.payload.sdk&&e.payload.sdk.name?(s(),u("div",ae,[ne,t("h4",re,a(e.payload.sdk.name),1),t("p",oe," Version: "+a(e.payload.sdk.version),1)])):n("",!0)]),t("div",le,[de,t("div",ie,[t("div",_e,[ce,t("div",pe,a(e.payload.environment),1)]),e.payload.release?(s(),u("div",ue,[ve,t("div",ye,a(e.payload.release),1)])):n("",!0),e.payload.logger?(s(),u("div",ge,[me,t("div",he,a(e.payload.logger),1)])):n("",!0),v.value.name?(s(),u("div",be,[fe,t("div",ke,a(v.value.name)+" "+a(v.value.version),1)])):n("",!0),_.value.name?(s(),u("div",$e,[Se,t("div",Ie,a(_.value.name)+" "+a(_.value.version),1)])):n("",!0),e.payload.server_name?(s(),u("div",qe,[Pe,t("div",we,a(e.payload.server_name),1)])):n("",!0),e.payload.tags?(s(!0),u(P,{key:5},w(e.payload.tags,(y,k)=>(s(),u("div",Be,[t("div",De,a(k),1),t("div",Te,a(y||" - "),1)]))),256)):n("",!0)])])]))}});const Ae=f(ze,[["__scopeId","data-v-e6095a33"]]),C=d=>($("data-v-a958c8fb"),d=d(),S(),d),Ee={class:"sentry-page-request"},Le=C(()=>t("h3",{class:"sentry-page-request__title"},"request",-1)),Re={class:"sentry-page-request__wrapper"},Ce={key:0,class:"sentry-page-request__url"},Ne=C(()=>t("h3",{class:"sentry-page-request__title sentry-page-request__title--sub"}," headers ",-1)),Ve=b({__name:"sentry-page-request",props:{request:{}},setup(d){const p=_=>Array.isArray(_)&&_[0]||_;return(_,v)=>(s(),u("section",Ee,[Le,t("div",Re,[_.request?(s(),u("code",Ce,[t("strong",null,a(_.request.method||"GET")+":",1),i(" "+a(_.request.url),1)])):n("",!0),Ne,_.request&&_.request.headers?(s(),o(r(T),{key:1},{default:l(()=>[(s(!0),u(P,null,w(_.request.headers,(e,g)=>(s(),o(r(c),{key:g,title:g},{default:l(()=>[i(a(p(e)),1)]),_:2},1032,["title"]))),128))]),_:1})):n("",!0)])]))}});const Fe=f(Ve,[["__scopeId","data-v-a958c8fb"]]),He=d=>($("data-v-0e9cd169"),d=d(),S(),d),Me={class:"sentry-page-device"},je=He(()=>t("h3",{class:"sentry-page-device__title"},"device",-1)),Ge=b({__name:"sentry-page-device",props:{device:{}},setup(d){const{formatFileSize:p}=U(),_=e=>D(e).toLocaleString(),v=e=>`${parseInt(String(e),10)}%`;return(e,g)=>(s(),u("section",Me,[je,h(r(T),null,{default:l(()=>[e.device&&e.device.arch?(s(),o(r(c),{key:0,title:"Architectures"},{default:l(()=>[h(r(z),{class:"mt-3",language:"json",code:e.device.arch},null,8,["code"])]),_:1})):n("",!0),e.device&&e.device.battery_level?(s(),o(r(c),{key:1,title:"Battery Level"},{default:l(()=>[i(a(v(e.device.battery_level)),1)]),_:1})):n("",!0),e.device&&e.device.boot_time?(s(),o(r(c),{key:2,title:"Boot Time"},{default:l(()=>[i(a(_(e.device.boot_time)),1)]),_:1})):n("",!0),e.device&&e.device.brand?(s(),o(r(c),{key:3,title:"Brand"},{default:l(()=>[i(a(e.device.brand),1)]),_:1})):n("",!0),e.device&&e.device.charging?(s(),o(r(c),{key:4,title:"Charging"},{default:l(()=>[i(a(e.device.charging),1)]),_:1})):n("",!0),e.device&&e.device.family?(s(),o(r(c),{key:5,title:"Family"},{default:l(()=>[i(a(e.device.family),1)]),_:1})):n("",!0),e.device&&e.device.free_memory?(s(),o(r(c),{key:6,title:"Free Memory"},{default:l(()=>[i(a(r(p)(e.device.free_memory)),1)]),_:1})):n("",!0),e.device&&e.device.free_storage?(s(),o(r(c),{key:7,title:"Free Storage"},{default:l(()=>[i(a(r(p)(e.device.free_storage)),1)]),_:1})):n("",!0),e.device&&e.device.id?(s(),o(r(c),{key:8,title:"Id"},{default:l(()=>[i(a(e.device.id),1)]),_:1})):n("",!0),e.device&&e.device.language?(s(),o(r(c),{key:9,title:"Language"},{default:l(()=>[i(a(e.device.language),1)]),_:1})):n("",!0),e.device&&e.device.low_memory?(s(),o(r(c),{key:10,title:"Low Memory"},{default:l(()=>[i(a(e.device.low_memory),1)]),_:1})):n("",!0),e.device&&e.device.manufacturer?(s(),o(r(c),{key:11,title:"Manufacturer"},{default:l(()=>[i(a(e.device.manufacturer),1)]),_:1})):n("",!0),e.device&&e.device.memory_size?(s(),o(r(c),{key:12,title:"Memory Size"},{default:l(()=>[i(a(r(p)(e.device.memory_size)),1)]),_:1})):n("",!0),e.device&&e.device.model?(s(),o(r(c),{key:13,title:"Model"},{default:l(()=>[i(a(e.device.model),1)]),_:1})):n("",!0),e.device&&e.device.model_id?(s(),o(r(c),{key:14,title:"Model Id"},{default:l(()=>[i(a(e.device.model_id),1)]),_:1})):n("",!0),e.device&&e.device.name?(s(),o(r(c),{key:15,title:"Name"},{default:l(()=>[i(a(e.device.name),1)]),_:1})):n("",!0),e.device&&e.device.orientation?(s(),o(r(c),{key:16,title:"Orientation"},{default:l(()=>[i(a(e.device.orientation),1)]),_:1})):n("",!0),e.device&&e.device.screen_density?(s(),o(r(c),{key:17,title:"Screen Density"},{default:l(()=>[i(a(parseInt(String(e.device.screen_density))),1)]),_:1})):n("",!0),e.device&&e.device.screen_dpi?(s(),o(r(c),{key:18,title:"Screen DPI"},{default:l(()=>[i(a(e.device.screen_dpi),1)]),_:1})):n("",!0),e.device&&e.device.screen_height_pixels?(s(),o(r(c),{key:19,title:"Screen Height Pixels"},{default:l(()=>[i(a(e.device.screen_height_pixels),1)]),_:1})):n("",!0),e.device&&e.device.screen_width_pixels?(s(),o(r(c),{key:20,title:"Screen Width Pixels"},{default:l(()=>[i(a(e.device.screen_width_pixels),1)]),_:1})):n("",!0),e.device&&e.device.simulator?(s(),o(r(c),{key:21,title:"Simulator"},{default:l(()=>[i(a(e.device.simulator),1)]),_:1})):n("",!0),e.device&&e.device.storage_size?(s(),o(r(c),{key:22,title:"Storage Size"},{default:l(()=>[i(a(r(p)(e.device.storage_size)),1)]),_:1})):n("",!0),e.device&&e.device.timezone?(s(),o(r(c),{key:23,title:"Timezone"},{default:l(()=>[i(a(e.device.timezone),1)]),_:1})):n("",!0),e.device&&e.device.battery_temperature?(s(),o(r(c),{key:24,title:"Battery Temperature"},{default:l(()=>[i(a(e.device.battery_temperature),1)]),_:1})):n("",!0),e.device&&e.device.locale?(s(),o(r(c),{key:25,title:"Locale"},{default:l(()=>[i(a(e.device.locale),1)]),_:1})):n("",!0)]),_:1})]))}});const Oe=f(Ge,[["__scopeId","data-v-0e9cd169"]]),A=d=>($("data-v-f3ff3d48"),d=d(),S(),d),Ke={class:"sentry-page-breadcrumbs"},Ue={class:"sentry-page-breadcrumbs__title"},We={key:0,class:"sentry-page-breadcrumbs__counter"},Je={class:"sentry-page-breadcrumbs__in"},Qe=A(()=>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)),Xe={key:0,class:"sentry-page-breadcrumbs__cols-wr"},Ye={class:"sentry-page-breadcrumbs__col"},Ze={class:"sentry-page-breadcrumbs__col-message"},xe={class:"sentry-page-breadcrumbs__col-details"},es={class:"sentry-page-breadcrumbs__col-detail"},ss=A(()=>t("div",{class:"sentry-page-breadcrumbs__col-detail-title"}," type ",-1)),ts={class:"sentry-page-breadcrumbs__col-detail-value"},as={class:"sentry-page-breadcrumbs__col-detail"},ns=A(()=>t("div",{class:"sentry-page-breadcrumbs__col-detail-title"}," category ",-1)),rs={class:"sentry-page-breadcrumbs__col-detail-value"},os={class:"sentry-page-breadcrumbs__col"},ls={class:"sentry-page-breadcrumbs__col"},ds=b({__name:"sentry-page-breadcrumbs",props:{breadcrumbs:{default:()=>[]}},setup(d){const p=_=>D.unix(_).fromNow();return(_,v)=>(s(),u("section",Ke,[t("h3",Ue,[i(" breadcrumbs "),_.breadcrumbs.length>0?(s(),u("span",We,a(_.breadcrumbs.length),1)):n("",!0)]),t("div",Je,[Qe,_.breadcrumbs?(s(),u("div",Xe,[(s(!0),u(P,null,w(_.breadcrumbs,e=>{var g;return s(),u("div",{key:e,class:"sentry-page-breadcrumbs__cols"},[t("div",Ye,[t("p",Ze,a(e.message),1),e.data?(s(),o(r(z),{key:0,class:"sentry-page-breadcrumbs__col-data",language:"json",code:e.data},null,8,["code"])):n("",!0),t("div",xe,[t("div",es,[ss,t("div",ts,a(e.type),1)]),t("div",as,[ns,t("div",rs,a(e.category),1)])])]),t("div",os,[t("span",{class:V(["sentry-page-breadcrumbs__col-level-badge",(g=e.level)==null?void 0:g.toLowerCase()])},a(e.level),3)]),t("div",ls,a(p(e.timestamp)),1)])}),128))])):n("",!0)])]))}});const is=f(ds,[["__scopeId","data-v-f3ff3d48"]]),_s=d=>($("data-v-5e9e0690"),d=d(),S(),d),cs={class:"sentry-page-app"},ps=_s(()=>t("h3",{class:"sentry-page-app__title"},"app",-1)),us=b({__name:"sentry-page-app",props:{app:{}},setup(d){return(p,_)=>(s(),u("section",cs,[ps,h(r(T),null,{default:l(()=>[p.app.type?(s(),o(r(c),{key:0,title:"App type"},{default:l(()=>[i(a(p.app.type),1)]),_:1})):n("",!0),p.app.app_build?(s(),o(r(c),{key:1,title:"App Build"},{default:l(()=>[i(a(p.app.app_build),1)]),_:1})):n("",!0),p.app.app_identifier?(s(),o(r(c),{key:2,title:"Build ID"},{default:l(()=>[i(a(p.app.app_identifier),1)]),_:1})):n("",!0),p.app.app_id?(s(),o(r(c),{key:3,title:"ID"},{default:l(()=>[i(a(p.app.app_id),1)]),_:1})):n("",!0),p.app.app_name?(s(),o(r(c),{key:4,title:"Build Name"},{default:l(()=>[i(a(p.app.app_name),1)]),_:1})):n("",!0),p.app.app_version?(s(),o(r(c),{key:5,title:"Version"},{default:l(()=>[i(a(p.app.app_version),1)]),_:1})):n("",!0),p.app.permissions?(s(),o(r(c),{key:6,title:"Permissions"},{default:l(()=>[h(r(z),{class:"mt-3",language:"json",code:p.app.permissions},null,8,["code"])]),_:1})):n("",!0)]),_:1})]))}});const vs=f(us,[["__scopeId","data-v-5e9e0690"]]),ys={class:"sentry-page"},gs={class:"sentry-page__main"},ms={key:0,class:"sentry-page__main-header"},hs={class:"sentry-page__main-exception"},bs=["innerHTML"],fs={class:"sentry-page__main-date"},ks={key:1,class:"sentry-page__section"},$s={class:"sentry-page__section-title"},Ss={key:0,class:"sentry-page__section-title__counter"},Is={class:"sentry-page__section-exceptions"},qs=b({__name:"sentry-page",props:{event:{}},setup(d){const p=d,_=q(()=>D(p.event.payload.timestamp).toLocaleString()),v=q(()=>{var e,g,y;return(y=(g=(e=p.event.payload)==null?void 0:e.exception)==null?void 0:g.values)==null?void 0:y[0]});return(e,g)=>{var y,k,I,L;return s(),u("div",ys,[t("main",gs,[v.value?(s(),u("header",ms,[t("h1",hs,a(v.value.type),1),t("pre",{class:"sentry-page__main-exception-message",innerHTML:v.value.value},null,8,bs),t("p",fs,a(_.value),1)])):n("",!0),h(r(Ae),{payload:e.event.payload,class:"sentry-page__section"},null,8,["payload"]),v.value?(s(),u("section",ks,[t("h3",$s,[i(" exceptions "),((L=(I=(k=(y=e.event)==null?void 0:y.payload)==null?void 0:k.exception)==null?void 0:I.values)==null?void 0:L.length)>0?(s(),u("span",Ss,a(e.event.payload.exception.values.length),1)):n("",!0)]),t("div",Is,[e.event.payload.exception&&e.event.payload.exception.values&&e.event.payload.exception.values.length>0?(s(!0),u(P,{key:0},w(e.event.payload.exception.values,B=>(s(),o(r(O),{key:`exception-${B.value}-${B.type}`,exception:B,"max-frames":null,class:"sentry-page__section-exceptions__exception"},null,8,["exception"]))),128)):n("",!0)])])):n("",!0),e.event.payload.breadcrumbs&&e.event.payload.breadcrumbs.values&&e.event.payload.breadcrumbs.values.length>0?(s(),o(r(is),{key:2,breadcrumbs:e.event.payload.breadcrumbs.values,class:"sentry-page__section"},null,8,["breadcrumbs"])):n("",!0),e.event.payload.request?(s(),o(r(Fe),{key:3,request:e.event.payload.request,class:"sentry-page__section"},null,8,["request"])):n("",!0),e.event.payload.contexts&&e.event.payload.contexts.app?(s(),o(r(vs),{key:4,app:e.event.payload.contexts.app,class:"sentry-page__section"},null,8,["app"])):n("",!0),e.event.payload.contexts&&e.event.payload.contexts.device?(s(),o(r(Oe),{key:5,device:e.event.payload.contexts.device,class:"sentry-page__section"},null,8,["device"])):n("",!0)])])}}});const Ps=f(qs,[["__scopeId","data-v-e751ab50"]]),{normalizeSentryEvent:ws}=K(),Bs=b({components:{SentryPage:Ps,PageHeader:G},async setup(){const d=F(),p=H(),_=d.params.id;{const{$events:v}=M(),{data:e,pending:g}=await j(v.getUrl(_),{onResponse({response:y}){return y.data},onResponseError(){p.push("/404")},onRequestError(){p.push("/404")}},"$hBGK0wTRGe");return{serverEvent:e,pending:g,eventId:_,clearEvent:()=>v.removeById(_)}}},head(){return{title:`Sentry > ${this.eventId} | Buggregator`}},computed:{event(){return this.serverEvent?ws(this.serverEvent):null}},methods:{onDelete(){this.clearEvent(),this.$router.push("/")}}});const E=d=>($("data-v-9e373f3f"),d=d(),S(),d),Ds={class:"sentry-event"},Ts={key:0,class:"sentry-event__loading"},zs=E(()=>t("div",null,null,-1)),As=E(()=>t("div",null,null,-1)),Es=E(()=>t("div",null,null,-1)),Ls=[zs,As,Es];function Rs(d,p,_,v,e,g){const y=N,k=R("PageHeader"),I=R("SentryPage");return s(),u("main",Ds,[h(k,{class:"sentry-event__head","button-title":"Delete event",onDelete:d.onDelete},{default:l(()=>[h(y,{to:"/"},{default:l(()=>[i("Home")]),_:1}),i(" /  "),h(y,{to:"/sentry"},{default:l(()=>[i("Sentry")]),_:1}),i(" /  "),h(y,{disabled:!0},{default:l(()=>[i(a(d.eventId),1)]),_:1})]),_:1},8,["onDelete"]),d.pending&&!d.event?(s(),u("div",Ts,Ls)):n("",!0),d.event?(s(),o(I,{key:1,event:d.event,class:"sentry-event__body"},null,8,["event"])):n("",!0)])}const Os=f(Bs,[["render",Rs],["__scopeId","data-v-9e373f3f"]]);export{Os as default}; diff --git a/resources/frontend/_nuxt/_id_.a2127e91.js b/resources/frontend/_nuxt/_id_.a2127e91.js new file mode 100644 index 00000000..af916e9a --- /dev/null +++ b/resources/frontend/_nuxt/_id_.a2127e91.js @@ -0,0 +1 @@ +import{I as H,h as N,_ as j}from"./layout-sidebar.vue.180f31cf.js";import{d as A,x as F,o as a,a as r,b as t,s as P,f as s,u as e,A as V,F as b,r as T,t as c,h as m,_ as E,c as k,e as v,w as d,g as u,p as L,i as M,j as Y,k as O,R as U,l as z,m as x}from"./entry.d63b9a39.js";import{u as q}from"./fetch.a2f95d2b.js";import{P as W}from"./page-header.1b1819e2.js";import{u as G}from"./use-smtp.6e0c9e5e.js";import{P as w,W as J}from"./vue3-tabs-component.41f1a7ef.js";import{a as K,T as y}from"./table-base.31e6f876.js";import{C as B}from"./code-snippet.e9f746c9.js";import{F as Q}from"./file-attachment.9a6d5475.js";import"./use-formats.c79ce0bd.js";const X={class:"smtp-page-preview"},Z={class:"smtp-page-preview__in"},ee={class:"smtp-page-preview__device-in"},te=A({__name:"smtp-page-preview",props:{device:{default:"desktop"}},setup(o){const p=F(o.device);return(_,i)=>(a(),r("div",X,[t("div",Z,[t("button",{class:P(["smtp-page-preview__btn",{"smtp-page-preview__btn--active":p.value==="mobile"}]),onClick:i[0]||(i[0]=h=>p.value="mobile")},[s(e(H),{class:"smtp-page-preview__btn-icon",name:"mobile-device"})],2),t("button",{class:P(["smtp-page-preview__btn",{"smtp-page-preview__btn--active":p.value==="tablet"}]),onClick:i[1]||(i[1]=h=>p.value="tablet")},[s(e(H),{class:"smtp-page-preview__btn-icon",name:"tablet-device"})],2),t("button",{class:P(["smtp-page-preview__btn",{"smtp-page-preview__btn--active":p.value==="desktop"}]),onClick:i[2]||(i[2]=h=>p.value="desktop")},[s(e(H),{class:"smtp-page-preview__btn-icon",name:"desktop-device"})],2)]),t("div",{class:P(["smtp-page-preview__device",{"smtp-page-preview__device--desktop":p.value==="desktop","smtp-page-preview__device--tablet":p.value==="tablet","smtp-page-preview__device--mobile":p.value==="mobile"}])},[t("div",ee,[V(_.$slots,"default")])],2)]))}});const se={class:"smtp-page-addresses"},ae={key:0,class:"smtp-page-addresses__item-name"},ne=A({__name:"smtp-page-addresses",props:{addresses:{}},setup(o){return(n,p)=>(a(),r("div",se,[(a(!0),r(b,null,T(n.addresses,_=>(a(),r("div",{key:_.email,class:"smtp-page-addresses__item"},[_.name?(a(),r("span",ae,c(_.name),1)):m("",!0),t("span",null,c(_.email),1)]))),128))]))}});const I=E(ne,[["__scopeId","data-v-217deb6c"]]),oe=o=>(L("data-v-1fbbb238"),o=o(),M(),o),le={ref:"main",class:"smtp-page"},de={class:"smtp-page__main"},pe={class:"smtp-page__header"},re={class:"smtp-page__header-title"},_e={class:"smtp-page__header-meta"},ie={class:"smtp-page__header-date"},ce={class:"smtp-page__sender"},me={class:"smtp-page__sender-title"},ue={class:"smtp-page__sender-address"},ve={class:"smtp-page__body"},he=["innerHTML"],ge={class:"mb-5"},fe={class:"flex gap-x-3"},ye=oe(()=>t("h3",{class:"mb-3 font-bold"},"Email Headers",-1)),be=A({__name:"smtp-page",props:{event:{},htmlSource:{}},setup(o){const n=o,p=F(n.htmlSource||n.event.payload.html),_=k(()=>[{title:"From",address:n.event.payload.from},{title:"To",address:n.event.payload.to},{title:"CC",address:n.event.payload.cc},{title:"BCC",address:n.event.payload.bcc},{title:"Reply to",address:n.event.payload.reply_to}]),i=k(()=>{var l,$;return((l=n.event.payload)==null?void 0:l.html)!==void 0&&(($=n.event.payload)==null?void 0:$.html)!==""}),h=k(()=>{var l,$;return((l=n.event.payload)==null?void 0:l.text)!==void 0&&(($=n.event.payload)==null?void 0:$.text)!==""}),g=k(()=>n.event.payload),R=k(()=>N(n.event.date).format("DD.MM.YYYY HH:mm:ss")),S=k(()=>Array.isArray(n.event.payload.attachments)?n.event.payload.attachments:Object.values(n.event.payload.attachments||{}));return(l,$)=>(a(),r("div",le,[t("main",de,[t("header",pe,[t("h2",re,c(g.value.subject),1),t("div",_e,[t("span",ie,c(R.value),1)])]),t("section",ce,[(a(!0),r(b,null,T(_.value,f=>(a(),r(b,null,[(a(!0),r(b,null,T(f.address,C=>(a(),r("div",{key:`${f.title}-${C.email}`,class:P(["smtp-page__sender-item",`smtp-page__sender-${f.title.toLowerCase()}`])},[t("div",me,c(f.title),1),t("div",ue,[C.name?(a(),r(b,{key:0},[v(c(C.name)+" ["+c(C.email)+"] ",1)],64)):(a(),r(b,{key:1},[v(c(C.email),1)],64))])],2))),128))],64))),256))]),t("section",ve,[s(e(J),{options:{useUrlFragment:!1}},{default:d(()=>[i.value?(a(),u(e(w),{key:0,id:"html-preview",name:"Preview",suffix:"HTML"},{default:d(()=>[s(e(te),{device:"tablet"},{default:d(()=>[t("div",{innerHTML:p.value},null,8,he)]),_:1})]),_:1})):m("",!0),i.value?(a(),u(e(w),{key:1,name:"HTML"},{default:d(()=>[s(e(B),{language:"html",class:"max-w-full",code:l.event.payload.html},null,8,["code"])]),_:1})):m("",!0),h.value?(a(),u(e(w),{key:2,name:"Text"},{default:d(()=>[s(e(B),{language:"html",class:"max-w-full",code:l.event.payload.text},null,8,["code"])]),_:1})):m("",!0),S.value.length?(a(),u(e(w),{key:3,name:"Attachments",suffix:`${S.value.length}`},{default:d(()=>[t("section",ge,[t("div",fe,[(a(!0),r(b,null,T(S.value,f=>(a(),u(e(Q),{key:f.id,"event-id":l.event.id,event:l.event,attachment:f},null,8,["event-id","event","attachment"]))),128))])])]),_:1},8,["suffix"])):m("",!0),s(e(w),{name:"Raw"},{default:d(()=>[s(e(B),{language:"html",code:l.event.payload.raw},null,8,["code"])]),_:1}),s(e(w),{name:"Tech Info"},{default:d(()=>[t("section",null,[ye,s(e(K),null,{default:d(()=>[s(e(y),{title:"Id"},{default:d(()=>[v(c(l.event.payload.id),1)]),_:1}),s(e(y),{title:"Subject"},{default:d(()=>[v(c(l.event.payload.subject),1)]),_:1}),s(e(y),{title:"From"},{default:d(()=>[s(e(I),{addresses:l.event.payload.from},null,8,["addresses"])]),_:1}),s(e(y),{title:"To"},{default:d(()=>[s(e(I),{addresses:l.event.payload.to},null,8,["addresses"])]),_:1}),l.event.payload.cc.length?(a(),u(e(y),{key:0,title:"Cc"},{default:d(()=>[s(e(I),{addresses:l.event.payload.cc},null,8,["addresses"])]),_:1})):m("",!0),l.event.payload.bcc.length?(a(),u(e(y),{key:1,title:"Bcc"},{default:d(()=>[s(e(I),{addresses:l.event.payload.bcc},null,8,["addresses"])]),_:1})):m("",!0),l.event.payload.reply_to.length?(a(),u(e(y),{key:2,title:"Reply to"},{default:d(()=>[s(e(I),{addresses:l.event.payload.reply_to},null,8,["addresses"])]),_:1})):m("",!0)]),_:1})])]),_:1})]),_:1})])])],512))}});const $e=E(be,[["__scopeId","data-v-1fbbb238"]]),{normalizeSmtpEvent:ke}=G(),we=A({components:{SmtpPage:$e,PageHeader:W},async setup(){const o=Y(),n=O(),p=o.params.id;{const{$events:_}=z(),{data:i,pending:h}=await q(_.getUrl(p),{onResponse({response:g}){return g.data},onResponseError(){n.push("/404")},onRequestError(){n.push("/404")}},"$pRkmObBT4O");return{serverEvent:i,pending:h,eventId:p,html:`