diff --git a/.gitattributes b/.gitattributes index 81cbf861..ffc41f0c 100644 --- a/.gitattributes +++ b/.gitattributes @@ -6,10 +6,13 @@ tests export-ignore .* export-ignore box.json.dist export-ignore composer.lock export-ignore +composer-require-* export-ignore docker-compose.yaml export-ignore Makefile export-ignore phpunit.xml* export-ignore +pest.xml* export-ignore phpstan.* export-ignore +phpstan-baseline.neon export-ignore psalm.* export-ignore psalm-baseline.xml export-ignore infection.* export-ignore diff --git a/resources/frontend/200.html b/resources/frontend/200.html index 831ac237..d8dab599 100644 --- a/resources/frontend/200.html +++ b/resources/frontend/200.html @@ -1,27 +1,21 @@ - - -
+0))return!0}h=h.parentNode}return!1}function r(o){var a=n(o),l=a[0],h=a[1];if(!s(o.target,l,h)){var c=!1;t.settings.useBothWheelAxes?t.scrollbarYActive&&!t.scrollbarXActive?(h?e.scrollTop-=h*t.settings.wheelSpeed:e.scrollTop+=l*t.settings.wheelSpeed,c=!0):t.scrollbarXActive&&!t.scrollbarYActive&&(l?e.scrollLeft+=l*t.settings.wheelSpeed:e.scrollLeft-=h*t.settings.wheelSpeed,c=!0):(e.scrollTop-=h*t.settings.wheelSpeed,e.scrollLeft+=l*t.settings.wheelSpeed),V(t),c=c||i(l,h),c&&!o.ctrlKey&&(o.stopPropagation(),o.preventDefault())}}typeof window.onwheel<"u"?t.event.bind(e,"wheel",r):typeof window.onmousewheel<"u"&&t.event.bind(e,"mousewheel",r)}function en(t){if(!se.supportsTouch&&!se.supportsIePointer)return;var e=t.element;function i(u,b){var y=Math.floor(e.scrollTop),v=e.scrollLeft,f=Math.abs(u),w=Math.abs(b);if(w>f){if(b<0&&y===t.contentHeight-t.containerHeight||b>0&&y===0)return window.scrollY===0&&b>0&&se.isChrome}else if(f>w&&(u<0&&v===t.contentWidth-t.containerWidth||u>0&&v===0))return!0;return!0}function n(u,b){e.scrollTop-=b,e.scrollLeft-=u,V(t)}var s={},r=0,o={},a=null;function l(u){return u.targetTouches?u.targetTouches[0]:u}function h(u){return u.pointerType&&u.pointerType==="pen"&&u.buttons===0?!1:!!(u.targetTouches&&u.targetTouches.length===1||u.pointerType&&u.pointerType!=="mouse"&&u.pointerType!==u.MSPOINTER_TYPE_MOUSE)}function c(u){if(h(u)){var b=l(u);s.pageX=b.pageX,s.pageY=b.pageY,r=new Date().getTime(),a!==null&&clearInterval(a)}}function d(u,b,y){if(!e.contains(u))return!1;for(var v=u;v&&v!==e;){if(v.classList.contains(S.element.consuming))return!0;var f=U(v);if(y&&f.overflowY.match(/(scroll|auto)/)){var w=v.scrollHeight-v.clientHeight;if(w>0&&(v.scrollTop>0&&y<0||v.scrollTop 0))return!0}v=v.parentNode}return!1}function p(u){if(h(u)){var b=l(u),y={pageX:b.pageX,pageY:b.pageY},v=y.pageX-s.pageX,f=y.pageY-s.pageY;if(d(u.target,v,f))return;n(v,f),s=y;var w=new Date().getTime(),P=w-r;P>0&&(o.x=v/P,o.y=f/P,r=w),i(v,f)&&u.preventDefault()}}function g(){t.settings.swipeEasing&&(clearInterval(a),a=setInterval(function(){if(t.isInitialized){clearInterval(a);return}if(!o.x&&!o.y){clearInterval(a);return}if(Math.abs(o.x)<.01&&Math.abs(o.y)<.01){clearInterval(a);return}if(!t.element){clearInterval(a);return}n(o.x*30,o.y*30),o.x*=.8,o.y*=.8},10))}se.supportsTouch?(t.event.bind(e,"touchstart",c),t.event.bind(e,"touchmove",p),t.event.bind(e,"touchend",g)):se.supportsIePointer&&(window.PointerEvent?(t.event.bind(e,"pointerdown",c),t.event.bind(e,"pointermove",p),t.event.bind(e,"pointerup",g)):window.MSPointerEvent&&(t.event.bind(e,"MSPointerDown",c),t.event.bind(e,"MSPointerMove",p),t.event.bind(e,"MSPointerUp",g)))}var tn=function(){return{handlers:["click-rail","drag-thumb","keyboard","wheel","touch"],maxScrollbarLength:null,minScrollbarLength:null,scrollingThreshold:1e3,scrollXMarginOffset:0,scrollYMarginOffset:0,suppressScrollX:!1,suppressScrollY:!1,swipeEasing:!0,useBothWheelAxes:!1,wheelPropagation:!0,wheelSpeed:1}},nn={"click-rail":Qi,"drag-thumb":ji,keyboard:Zi,wheel:Ji,touch:en},ve=function(e,i){var n=this;if(i===void 0&&(i={}),typeof e=="string"&&(e=document.querySelector(e)),!e||!e.nodeName)throw new Error("no element is specified to initialize PerfectScrollbar");this.element=e,e.classList.add(S.main),this.settings=tn();for(var s in i)this.settings[s]=i[s];this.containerWidth=null,this.containerHeight=null,this.contentWidth=null,this.contentHeight=null;var r=function(){return e.classList.add(S.state.focus)},o=function(){return e.classList.remove(S.state.focus)};this.isRtl=U(e).direction==="rtl",this.isRtl===!0&&e.classList.add(S.rtl),this.isNegativeScroll=function(){var h=e.scrollLeft,c=null;return e.scrollLeft=-1,c=e.scrollLeft<0,e.scrollLeft=h,c}(),this.negativeScrollAdjustment=this.isNegativeScroll?e.scrollWidth-e.clientWidth:0,this.event=new he,this.ownerDocument=e.ownerDocument||document,this.scrollbarXRail=xe(S.element.rail("x")),e.appendChild(this.scrollbarXRail),this.scrollbarX=xe(S.element.thumb("x")),this.scrollbarXRail.appendChild(this.scrollbarX),this.scrollbarX.setAttribute("tabindex",0),this.event.bind(this.scrollbarX,"focus",r),this.event.bind(this.scrollbarX,"blur",o),this.scrollbarXActive=null,this.scrollbarXWidth=null,this.scrollbarXLeft=null;var a=U(this.scrollbarXRail);this.scrollbarXBottom=parseInt(a.bottom,10),isNaN(this.scrollbarXBottom)?(this.isScrollbarXUsingBottom=!1,this.scrollbarXTop=k(a.top)):this.isScrollbarXUsingBottom=!0,this.railBorderXWidth=k(a.borderLeftWidth)+k(a.borderRightWidth),W(this.scrollbarXRail,{display:"block"}),this.railXMarginWidth=k(a.marginLeft)+k(a.marginRight),W(this.scrollbarXRail,{display:""}),this.railXWidth=null,this.railXRatio=null,this.scrollbarYRail=xe(S.element.rail("y")),e.appendChild(this.scrollbarYRail),this.scrollbarY=xe(S.element.thumb("y")),this.scrollbarYRail.appendChild(this.scrollbarY),this.scrollbarY.setAttribute("tabindex",0),this.event.bind(this.scrollbarY,"focus",r),this.event.bind(this.scrollbarY,"blur",o),this.scrollbarYActive=null,this.scrollbarYHeight=null,this.scrollbarYTop=null;var l=U(this.scrollbarYRail);this.scrollbarYRight=parseInt(l.right,10),isNaN(this.scrollbarYRight)?(this.isScrollbarYUsingRight=!1,this.scrollbarYLeft=k(l.left)):this.isScrollbarYUsingRight=!0,this.scrollbarYOuterWidth=this.isRtl?Ki(this.scrollbarY):null,this.railBorderYWidth=k(l.borderTopWidth)+k(l.borderBottomWidth),W(this.scrollbarYRail,{display:"block"}),this.railYMarginHeight=k(l.marginTop)+k(l.marginBottom),W(this.scrollbarYRail,{display:""}),this.railYHeight=null,this.railYRatio=null,this.reach={x:e.scrollLeft<=0?"start":e.scrollLeft>=this.contentWidth-this.containerWidth?"end":null,y:e.scrollTop<=0?"start":e.scrollTop>=this.contentHeight-this.containerHeight?"end":null},this.isAlive=!0,this.settings.handlers.forEach(function(h){return nn[h](n)}),this.lastScrollTop=Math.floor(e.scrollTop),this.lastScrollLeft=e.scrollLeft,this.event.bind(this.element,"scroll",function(h){return n.onScroll(h)}),V(this)};ve.prototype.update=function(){this.isAlive&&(this.negativeScrollAdjustment=this.isNegativeScroll?this.element.scrollWidth-this.element.clientWidth:0,W(this.scrollbarXRail,{display:"block"}),W(this.scrollbarYRail,{display:"block"}),this.railXMarginWidth=k(U(this.scrollbarXRail).marginLeft)+k(U(this.scrollbarXRail).marginRight),this.railYMarginHeight=k(U(this.scrollbarYRail).marginTop)+k(U(this.scrollbarYRail).marginBottom),W(this.scrollbarXRail,{display:"none"}),W(this.scrollbarYRail,{display:"none"}),V(this),Me(this,"top",0,!1,!0),Me(this,"left",0,!1,!0),W(this.scrollbarXRail,{display:""}),W(this.scrollbarYRail,{display:""}))};ve.prototype.onScroll=function(e){this.isAlive&&(V(this),Me(this,"top",this.element.scrollTop-this.lastScrollTop),Me(this,"left",this.element.scrollLeft-this.lastScrollLeft),this.lastScrollTop=Math.floor(this.element.scrollTop),this.lastScrollLeft=this.element.scrollLeft)};ve.prototype.destroy=function(){this.isAlive&&(this.event.unbindAll(),oe(this.scrollbarX),oe(this.scrollbarY),oe(this.scrollbarXRail),oe(this.scrollbarYRail),this.removePsClasses(),this.element=null,this.scrollbarX=null,this.scrollbarY=null,this.scrollbarXRail=null,this.scrollbarYRail=null,this.isAlive=!1)};ve.prototype.removePsClasses=function(){this.element.className=this.element.className.split(" ").filter(function(e){return!e.match(/^ps([-_].+|)$/)}).join(" ")};const Qe=["scroll","ps-scroll-y","ps-scroll-x","ps-scroll-up","ps-scroll-down","ps-scroll-left","ps-scroll-right","ps-y-reach-start","ps-y-reach-end","ps-x-reach-start","ps-x-reach-end"];var sn={name:"PerfectScrollbar",props:{options:{type:Object,required:!1,default:()=>{}},tag:{type:String,required:!1,default:"div"},watchOptions:{type:Boolean,required:!1,default:!1}},emits:Qe,data(){return{ps:null}},watch:{watchOptions(t){!t&&this.watcher?this.watcher():this.createWatcher()}},mounted(){this.create(),this.watchOptions&&this.createWatcher()},updated(){this.$nextTick(()=>{this.update()})},beforeUnmount(){this.destroy()},methods:{create(){this.ps&&this.$isServer||(this.ps=new ve(this.$el,this.options),Qe.forEach(t=>{this.ps.element.addEventListener(t,e=>this.$emit(t,e))}))},createWatcher(){this.watcher=this.$watch("options",()=>{this.destroy(),this.create()},{deep:!0})},update(){this.ps&&this.ps.update()},destroy(){this.ps&&(this.ps.destroy(),this.ps=null)}},render(){return Zt(this.tag,{class:"ps"},this.$slots.default&&this.$slots.default())}},Ct={exports:{}},rn={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},Rt={exports:{}},on=function(e){return!e||typeof e=="string"?!1:e instanceof Array||Array.isArray(e)||e.length>=0&&(e.splice instanceof Function||Object.getOwnPropertyDescriptor(e,e.length-1)&&e.constructor.name!=="String")},an=on,ln=Array.prototype.concat,hn=Array.prototype.slice,je=Rt.exports=function(e){for(var i=[],n=0,s=e.length;n H)&&(t=H),c(e)._overflowWeeks&&t===-1&&(t=$s),c(e)._overflowWeekday&&t===-1&&(t=qs),c(e).overflow=t),e}var jr=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,zr=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Zr=/Z|[+-]\d\d(?::?\d\d)?/,Le=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],mt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],$r=/^\/?Date\((-?\d+)/i,qr=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Br={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function Jt(e){var t,s,r=e._i,a=jr.exec(r)||zr.exec(r),n,i,u,f,_=Le.length,O=mt.length;if(a){for(c(e).iso=!0,t=0,s=_;t=4&&t[3]!==1&&(e=", "+t[3]),"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+e+")"};D.to.keyword=function(t){return Mt[t.slice(0,3)]};function Z(t,e,i){return Math.min(Math.max(e,t),i)}function Ce(t){var e=Math.round(t).toString(16).toUpperCase();return e.length<2?"0"+e:e}var dn=Ct.exports,St={exports:{}},un={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},te=un,Tt={};for(var Le in te)te.hasOwnProperty(Le)&&(Tt[te[Le]]=Le);var m=St.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var A in m)if(m.hasOwnProperty(A)){if(!("channels"in m[A]))throw new Error("missing channels property: "+A);if(!("labels"in m[A]))throw new Error("missing channel labels property: "+A);if(m[A].labels.length!==m[A].channels)throw new Error("channel and label counts mismatch: "+A);var gn=m[A].channels,fn=m[A].labels;delete m[A].channels,delete m[A].labels,Object.defineProperty(m[A],"channels",{value:gn}),Object.defineProperty(m[A],"labels",{value:fn})}m.rgb.hsl=function(t){var e=t[0]/255,i=t[1]/255,n=t[2]/255,s=Math.min(e,i,n),r=Math.max(e,i,n),o=r-s,a,l,h;return r===s?a=0:e===r?a=(i-n)/o:i===r?a=2+(n-e)/o:n===r&&(a=4+(e-i)/o),a=Math.min(a*60,360),a<0&&(a+=360),h=(s+r)/2,r===s?l=0:h<=.5?l=o/(r+s):l=o/(2-r-s),[a,l*100,h*100]};m.rgb.hsv=function(t){var e,i,n,s,r,o=t[0]/255,a=t[1]/255,l=t[2]/255,h=Math.max(o,a,l),c=h-Math.min(o,a,l),d=function(p){return(h-p)/6/c+1/2};return c===0?s=r=0:(r=c/h,e=d(o),i=d(a),n=d(l),o===h?s=n-i:a===h?s=1/3+e-n:l===h&&(s=2/3+i-e),s<0?s+=1:s>1&&(s-=1)),[s*360,r*100,h*100]};m.rgb.hwb=function(t){var e=t[0],i=t[1],n=t[2],s=m.rgb.hsl(t)[0],r=1/255*Math.min(e,Math.min(i,n));return n=1-1/255*Math.max(e,Math.max(i,n)),[s,r*100,n*100]};m.rgb.cmyk=function(t){var e=t[0]/255,i=t[1]/255,n=t[2]/255,s,r,o,a;return a=Math.min(1-e,1-i,1-n),s=(1-e-a)/(1-a)||0,r=(1-i-a)/(1-a)||0,o=(1-n-a)/(1-a)||0,[s*100,r*100,o*100,a*100]};function pn(t,e){return Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2)+Math.pow(t[2]-e[2],2)}m.rgb.keyword=function(t){var e=Tt[t];if(e)return e;var i=1/0,n;for(var s in te)if(te.hasOwnProperty(s)){var r=te[s],o=pn(t,r);o.04045?Math.pow((e+.055)/1.055,2.4):e/12.92,i=i>.04045?Math.pow((i+.055)/1.055,2.4):i/12.92,n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92;var s=e*.4124+i*.3576+n*.1805,r=e*.2126+i*.7152+n*.0722,o=e*.0193+i*.1192+n*.9505;return[s*100,r*100,o*100]};m.rgb.lab=function(t){var e=m.rgb.xyz(t),i=e[0],n=e[1],s=e[2],r,o,a;return i/=95.047,n/=100,s/=108.883,i=i>.008856?Math.pow(i,1/3):7.787*i+16/116,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116,s=s>.008856?Math.pow(s,1/3):7.787*s+16/116,r=116*n-16,o=500*(i-n),a=200*(n-s),[r,o,a]};m.hsl.rgb=function(t){var e=t[0]/360,i=t[1]/100,n=t[2]/100,s,r,o,a,l;if(i===0)return l=n*255,[l,l,l];n<.5?r=n*(1+i):r=n+i-n*i,s=2*n-r,a=[0,0,0];for(var h=0;h<3;h++)o=e+1/3*-(h-1),o<0&&o++,o>1&&o--,6*o<1?l=s+(r-s)*6*o:2*o<1?l=r:3*o<2?l=s+(r-s)*(2/3-o)*6:l=s,a[h]=l*255;return a};m.hsl.hsv=function(t){var e=t[0],i=t[1]/100,n=t[2]/100,s=i,r=Math.max(n,.01),o,a;return n*=2,i*=n<=1?n:2-n,s*=r<=1?r:2-r,a=(n+i)/2,o=n===0?2*s/(r+s):2*i/(n+i),[e,o*100,a*100]};m.hsv.rgb=function(t){var e=t[0]/60,i=t[1]/100,n=t[2]/100,s=Math.floor(e)%6,r=e-Math.floor(e),o=255*n*(1-i),a=255*n*(1-i*r),l=255*n*(1-i*(1-r));switch(n*=255,s){case 0:return[n,l,o];case 1:return[a,n,o];case 2:return[o,n,l];case 3:return[o,a,n];case 4:return[l,o,n];case 5:return[n,o,a]}};m.hsv.hsl=function(t){var e=t[0],i=t[1]/100,n=t[2]/100,s=Math.max(n,.01),r,o,a;return a=(2-i)*n,r=(2-i)*s,o=i*s,o/=r<=1?r:2-r,o=o||0,a/=2,[e,o*100,a*100]};m.hwb.rgb=function(t){var e=t[0]/360,i=t[1]/100,n=t[2]/100,s=i+n,r,o,a,l;s>1&&(i/=s,n/=s),r=Math.floor(6*e),o=1-n,a=6*e-r,r&1&&(a=1-a),l=i+a*(o-i);var h,c,d;switch(r){default:case 6:case 0:h=o,c=l,d=i;break;case 1:h=l,c=o,d=i;break;case 2:h=i,c=o,d=l;break;case 3:h=i,c=l,d=o;break;case 4:h=l,c=i,d=o;break;case 5:h=o,c=i,d=l;break}return[h*255,c*255,d*255]};m.cmyk.rgb=function(t){var e=t[0]/100,i=t[1]/100,n=t[2]/100,s=t[3]/100,r,o,a;return r=1-Math.min(1,e*(1-s)+s),o=1-Math.min(1,i*(1-s)+s),a=1-Math.min(1,n*(1-s)+s),[r*255,o*255,a*255]};m.xyz.rgb=function(t){var e=t[0]/100,i=t[1]/100,n=t[2]/100,s,r,o;return s=e*3.2406+i*-1.5372+n*-.4986,r=e*-.9689+i*1.8758+n*.0415,o=e*.0557+i*-.204+n*1.057,s=s>.0031308?1.055*Math.pow(s,1/2.4)-.055:s*12.92,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:r*12.92,o=o>.0031308?1.055*Math.pow(o,1/2.4)-.055:o*12.92,s=Math.min(Math.max(0,s),1),r=Math.min(Math.max(0,r),1),o=Math.min(Math.max(0,o),1),[s*255,r*255,o*255]};m.xyz.lab=function(t){var e=t[0],i=t[1],n=t[2],s,r,o;return e/=95.047,i/=100,n/=108.883,e=e>.008856?Math.pow(e,1/3):7.787*e+16/116,i=i>.008856?Math.pow(i,1/3):7.787*i+16/116,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116,s=116*i-16,r=500*(e-i),o=200*(i-n),[s,r,o]};m.lab.xyz=function(t){var e=t[0],i=t[1],n=t[2],s,r,o;r=(e+16)/116,s=i/500+r,o=r-n/200;var a=Math.pow(r,3),l=Math.pow(s,3),h=Math.pow(o,3);return r=a>.008856?a:(r-16/116)/7.787,s=l>.008856?l:(s-16/116)/7.787,o=h>.008856?h:(o-16/116)/7.787,s*=95.047,r*=100,o*=108.883,[s,r,o]};m.lab.lch=function(t){var e=t[0],i=t[1],n=t[2],s,r,o;return s=Math.atan2(n,i),r=s*360/2/Math.PI,r<0&&(r+=360),o=Math.sqrt(i*i+n*n),[e,o,r]};m.lch.lab=function(t){var e=t[0],i=t[1],n=t[2],s,r,o;return o=n/360*2*Math.PI,s=i*Math.cos(o),r=i*Math.sin(o),[e,s,r]};m.rgb.ansi16=function(t){var e=t[0],i=t[1],n=t[2],s=1 in arguments?arguments[1]:m.rgb.hsv(t)[2];if(s=Math.round(s/50),s===0)return 30;var r=30+(Math.round(n/255)<<2|Math.round(i/255)<<1|Math.round(e/255));return s===2&&(r+=60),r};m.hsv.ansi16=function(t){return m.rgb.ansi16(m.hsv.rgb(t),t[2])};m.rgb.ansi256=function(t){var e=t[0],i=t[1],n=t[2];if(e===i&&i===n)return e<8?16:e>248?231:Math.round((e-8)/247*24)+232;var s=16+36*Math.round(e/255*5)+6*Math.round(i/255*5)+Math.round(n/255*5);return s};m.ansi16.rgb=function(t){var e=t%10;if(e===0||e===7)return t>50&&(e+=3.5),e=e/10.5*255,[e,e,e];var i=(~~(t>50)+1)*.5,n=(e&1)*i*255,s=(e>>1&1)*i*255,r=(e>>2&1)*i*255;return[n,s,r]};m.ansi256.rgb=function(t){if(t>=232){var e=(t-232)*10+8;return[e,e,e]}t-=16;var i,n=Math.floor(t/36)/5*255,s=Math.floor((i=t%36)/6)/5*255,r=i%6/5*255;return[n,s,r]};m.rgb.hex=function(t){var e=((Math.round(t[0])&255)<<16)+((Math.round(t[1])&255)<<8)+(Math.round(t[2])&255),i=e.toString(16).toUpperCase();return"000000".substring(i.length)+i};m.hex.rgb=function(t){var e=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];var i=e[0];e[0].length===3&&(i=i.split("").map(function(a){return a+a}).join(""));var n=parseInt(i,16),s=n>>16&255,r=n>>8&255,o=n&255;return[s,r,o]};m.rgb.hcg=function(t){var e=t[0]/255,i=t[1]/255,n=t[2]/255,s=Math.max(Math.max(e,i),n),r=Math.min(Math.min(e,i),n),o=s-r,a,l;return o<1?a=r/(1-o):a=0,o<=0?l=0:s===e?l=(i-n)/o%6:s===i?l=2+(n-e)/o:l=4+(e-i)/o+4,l/=6,l%=1,[l*360,o*100,a*100]};m.hsl.hcg=function(t){var e=t[1]/100,i=t[2]/100,n=1,s=0;return i<.5?n=2*e*i:n=2*e*(1-i),n<1&&(s=(i-.5*n)/(1-n)),[t[0],n*100,s*100]};m.hsv.hcg=function(t){var e=t[1]/100,i=t[2]/100,n=e*i,s=0;return n<1&&(s=(i-n)/(1-n)),[t[0],n*100,s*100]};m.hcg.rgb=function(t){var e=t[0]/360,i=t[1]/100,n=t[2]/100;if(i===0)return[n*255,n*255,n*255];var s=[0,0,0],r=e%1*6,o=r%1,a=1-o,l=0;switch(Math.floor(r)){case 0:s[0]=1,s[1]=o,s[2]=0;break;case 1:s[0]=a,s[1]=1,s[2]=0;break;case 2:s[0]=0,s[1]=1,s[2]=o;break;case 3:s[0]=0,s[1]=a,s[2]=1;break;case 4:s[0]=o,s[1]=0,s[2]=1;break;default:s[0]=1,s[1]=0,s[2]=a}return l=(1-i)*n,[(i*s[0]+l)*255,(i*s[1]+l)*255,(i*s[2]+l)*255]};m.hcg.hsv=function(t){var e=t[1]/100,i=t[2]/100,n=e+i*(1-e),s=0;return n>0&&(s=e/n),[t[0],s*100,n*100]};m.hcg.hsl=function(t){var e=t[1]/100,i=t[2]/100,n=i*(1-e)+.5*e,s=0;return n>0&&n<.5?s=e/(2*n):n>=.5&&n<1&&(s=e/(2*(1-n))),[t[0],s*100,n*100]};m.hcg.hwb=function(t){var e=t[1]/100,i=t[2]/100,n=e+i*(1-e);return[t[0],(n-e)*100,(1-n)*100]};m.hwb.hcg=function(t){var e=t[1]/100,i=t[2]/100,n=1-i,s=n-e,r=0;return s<1&&(r=(n-s)/(1-s)),[t[0],s*100,r*100]};m.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]};m.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]};m.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]};m.gray.hsl=m.gray.hsv=function(t){return[0,0,t[0]]};m.gray.hwb=function(t){return[0,100,t[0]]};m.gray.cmyk=function(t){return[0,0,0,t[0]]};m.gray.lab=function(t){return[t[0],0,0]};m.gray.hex=function(t){var e=Math.round(t[0]/100*255)&255,i=(e<<16)+(e<<8)+e,n=i.toString(16).toUpperCase();return"000000".substring(n.length)+n};m.rgb.gray=function(t){var e=(t[0]+t[1]+t[2])/3;return[e/255*100]};var _t=St.exports,Se=_t;function vn(){for(var t={},e=Object.keys(Se),i=e.length,n=0;n1&&(i=Array.prototype.slice.call(arguments)),t(i))};return"conversion"in t&&(e.conversion=t.conversion),e}function Rn(t){var e=function(i){if(i==null)return i;arguments.length>1&&(i=Array.prototype.slice.call(arguments));var n=t(i);if(typeof n=="object")for(var s=n.length,r=0;r>16&255,t>>8&255,t&255],this.valpha=1;else{this.valpha=1;var o=Object.keys(t);"alpha"in t&&(o.splice(o.indexOf("alpha"),1),this.valpha=typeof t.alpha=="number"?t.alpha:0);var a=o.sort().join("");if(!(a in Ye))throw new Error("Unable to parse color from object: "+JSON.stringify(t));this.model=Ye[a];var l=Y[this.model].labels,h=[];for(i=0;ir?n:r)}),{min:i,max:n}},Hn=t=>{const e=t[0],i=K(t);return i.source.start+i.source.duration-e.source.start},Fn=(t,e,i)=>t.source.starte||t.source.start>e&&t.endt.starte||t.start>e&&t.endt.source.color===e.source.color&&t.source.type===e.source.type;function Wt(t,e=Xn){return t.reduce((i,n)=>{const s=K(i),r=s&&K(s);return r&&r.level===n.level&&e(r,n)?s.push(n):i.push([n]),i},[]).filter(i=>i.length).map(i=>({nodes:i}))}const Ie=(t,e,i=0,n=0,s=Ft,r=Ht)=>{let o=null,a=null,l=0;return t.reduce((h,{nodes:c})=>{o=null,a=null,l=0;for(const d of c)Fn(d,i,n)&&(o&&!a||o&&a&&(d.source.start-(a.source.start+a.source.duration))*e{const c=h[0],d=Hn(h);return{start:c.source.start,end:c.source.start+d,duration:d,type:c.source.type,color:c.source.color,level:c.level,nodes:h}})},Yt=(t,e,i,n,s,r)=>t.reduce((o,a)=>(Ln(a,i,n)&&(a.duration*e<=Pn?o.push(a):o.push(...Ie([a],e,i,n,s,r))),o),[]),Je=Pe.hsl(180,30,70);class An extends ie{constructor({data:e,colors:i={},name:n="flameChartPlugin"}){super(n),this.height=0,this.flatTree=[],this.positionY=0,this.colors={},this.selectedRegion=null,this.hoveredRegion=null,this.lastRandomColor=Je,this.metaClusterizedFlatTree=[],this.actualClusterizedFlatTree=[],this.initialClusterizedFlatTree=[],this.lastUsedColor=null,this.renderChartTimeout=-1,this.data=e,this.userColors=i,this.parseData(),this.reset()}init(e,i){super.init(e,i),this.interactionsEngine.on("change-position",this.handlePositionChange.bind(this)),this.interactionsEngine.on("select",this.handleSelect.bind(this)),this.interactionsEngine.on("hover",this.handleHover.bind(this)),this.interactionsEngine.on("up",this.handleMouseUp.bind(this)),this.initData()}handlePositionChange({deltaX:e,deltaY:i}){const n=this.positionY,s=this.renderEngine.parent.positionX;this.interactionsEngine.setCursor("grabbing"),this.positionY+i>=0?this.setPositionY(this.positionY+i):this.setPositionY(0),this.renderEngine.tryToChangePosition(e),(s!==this.renderEngine.parent.positionX||n!==this.positionY)&&this.renderEngine.parent.render()}handleMouseUp(){this.interactionsEngine.clearCursor()}setPositionY(e){this.positionY=e}reset(){this.colors={},this.lastRandomColor=Je,this.positionY=0,this.selectedRegion=null}calcMinMax(){const{flatTree:e}=this,{min:i,max:n}=At(e);this.min=i,this.max=n}handleSelect(e){var i,n;const s=this.findNodeInCluster(e);this.selectedRegion!==s&&(this.selectedRegion=s,this.renderEngine.render(),this.emit("select",{node:(n=(i=this.selectedRegion)===null||i===void 0?void 0:i.data)!==null&&n!==void 0?n:null,type:"flame-chart-node"}))}handleHover(e){this.hoveredRegion=this.findNodeInCluster(e)}findNodeInCluster(e){const i=this.interactionsEngine.getMouse();if(e&&e.type==="cluster"){const n=e.data.nodes.find(({level:s,source:{start:r,duration:o}})=>{const{x:a,y:l,w:h}=this.calcRect(r,o,s);return i.x>=a&&i.x<=a+h&&i.y>=l&&i.y<=l+this.renderEngine.blockHeight});if(n)return{data:n,type:"node"}}return null}getColor(e="_default",i){if(i)return i;if(this.colors[e])return this.colors[e];if(this.userColors[e]){const n=new Pe(this.userColors[e]);return this.colors[e]=n.rgb().toString(),this.colors[e]}return this.lastRandomColor=this.lastRandomColor.rotate(27),this.colors[e]=this.lastRandomColor.rgb().toString(),this.colors[e]}setData(e){this.data=e,this.parseData(),this.initData(),this.reset(),this.renderEngine.recalcMinMax(),this.renderEngine.resetParentView()}parseData(){this.flatTree=Xt(this.data),this.calcMinMax()}initData(){this.metaClusterizedFlatTree=Wt(this.flatTree),this.initialClusterizedFlatTree=Ie(this.metaClusterizedFlatTree,this.renderEngine.zoom,this.min,this.max),this.reclusterizeClusteredFlatTree()}reclusterizeClusteredFlatTree(){this.actualClusterizedFlatTree=Yt(this.initialClusterizedFlatTree,this.renderEngine.zoom,this.renderEngine.positionX,this.renderEngine.positionX+this.renderEngine.getRealView())}calcRect(e,i,n){const s=i*this.renderEngine.zoom;return{x:this.renderEngine.timeToPosition(e),y:n*(this.renderEngine.blockHeight+1)-this.positionY,w:s<=.1?.1:s>=3?s-1:s-s/3}}renderTooltip(){if(this.hoveredRegion){if(this.renderEngine.options.tooltip===!1)return!0;if(typeof this.renderEngine.options.tooltip=="function")this.renderEngine.options.tooltip(this.hoveredRegion,this.renderEngine,this.interactionsEngine.getGlobalMouse());else{const{data:{source:{start:e,duration:i,name:n,children:s}}}=this.hoveredRegion,r=this.renderEngine.getTimeUnits(),o=i-(s?s.reduce((d,{duration:p})=>d+p,0):0),a=this.renderEngine.getAccuracy()+2,l=`${n}`,h=`duration: ${i.toFixed(a)} ${r} ${s!=null&&s.length?`(self ${o.toFixed(a)} ${r})`:""}`,c=`start: ${e.toFixed(a)}`;this.renderEngine.renderTooltipFromData([{text:l},{text:h},{text:c}],this.interactionsEngine.getGlobalMouse())}return!0}return!1}render(){const{width:e,blockHeight:i,height:n,minTextWidth:s}=this.renderEngine;this.lastUsedColor=null,this.reclusterizeClusteredFlatTree();const r=l=>h=>{const{start:c,duration:d,level:p}=h,{x:g,y:u,w:b}=this.calcRect(c,d,p);g+b>0&&g1&&arguments[1]!==void 0?arguments[1]:0,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,n=1/0,i=t;i1&&arguments[1]!==void 0?arguments[1]:0,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,n=-1/0,i=t;i1&&arguments[1]!==void 0?arguments[1]:0,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,n=0,i=0,s=t;s1&&arguments[1]!==void 0?arguments[1]:0,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0;n?e=e.slice(t,a):(a1&&arguments[1]!==void 0?arguments[1]:!0,a=this[0],n=a.cy();if(n.styleEnabled()&&a){this.cleanStyle();var i=a._private.style[e];return i??(t?n.style().getDefaultProperty(e):null)}},numericStyle:function(e){var t=this[0];if(t.cy().styleEnabled()&&t){var a=t.pstyle(e);return a.pfValue!==void 0?a.pfValue:a.value}},numericStyleUnits:function(e){var t=this[0];if(t.cy().styleEnabled()&&t)return t.pstyle(e).units},renderedStyle:function(e){var t=this.cy();if(!t.styleEnabled())return this;var a=this[0];if(a)return t.style().getRenderedStyle(a,e)},style:function(e,t){var a=this.cy();if(!a.styleEnabled())return this;var n=!1,i=a.style();if(Te(e)){var s=e;i.applyBypass(this,s,n),this.emitAndNotify("style")}else if(ye(e))if(t===void 0){var o=this[0];return o?i.getStylePropertyValue(o,e):void 0}else i.applyBypass(this,e,t,n),this.emitAndNotify("style");else if(e===void 0){var l=this[0];return l?i.getRawStyle(l):void 0}return this},removeStyle:function(e){var t=this.cy();if(!t.styleEnabled())return this;var a=!1,n=t.style(),i=this;if(e===void 0)for(var s=0;s=s?v(g+1):f(p+1)}var y=i.w/u,b=i.h/l;if(e.condense&&(y=0,b=0),e.avoidOverlap)for(var w=0;wt}return cu=r,cu}var du,Lh;function r2(){if(Lh)return du;Lh=1;var r=yf(),e=e2(),t=Zt;function a(n){return n&&n.length?r(n,t,e):void 0}return du=a,du}var hu,Mh;function dm(){if(Mh)return hu;Mh=1;var r=Al,e=In;function t(a,n,i){(i!==void 0&&!e(a[n],i)||i===void 0&&!(n in a))&&r(a,n,i)}return hu=t,hu}var gu,_h;function t2(){if(_h)return gu;_h=1;var r=Ol,e=Jn(),t=Xt,a="[object Object]",n=Function.prototype,i=Object.prototype,s=n.toString,o=i.hasOwnProperty,l=s.call(Object);function u(f){if(!t(f)||r(f)!=a)return!1;var v=e(f);if(v===null)return!0;var c=o.call(v,"constructor")&&v.constructor;return typeof c=="function"&&c instanceof c&&s.call(c)==l}return gu=u,gu}var pu,Oh;function hm(){if(Oh)return pu;Oh=1;function r(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}return pu=r,pu}var yu,qh;function a2(){if(qh)return yu;qh=1;var r=Ka(),e=At();function t(a){return r(a,e(a))}return yu=t,yu}var mu,Nh;function n2(){if(Nh)return mu;Nh=1;var r=dm(),e=Py(),t=Ny(),a=Ay(),n=zy(),i=Il,s=yr,o=im(),l=oa(),u=Pn,f=Yr,v=t2(),c=Wa(),d=hm(),h=a2();function m(p,g,y,b,w,x,C){var E=d(p,y),T=d(g,y),S=C.get(T);if(S){r(p,y,S);return}var D=x?x(E,T,y+"",p,g,C):void 0,k=D===void 0;if(k){var R=s(T),I=!R&&l(T),P=!R&&!I&&c(T);D=T,R||I||P?s(E)?D=E:o(E)?D=a(E):I?(k=!1,D=e(T,!0)):P?(k=!1,D=t(T,!0)):D=[]:v(T)||i(T)?(D=E,i(E)?D=h(E):(!f(E)||u(E))&&(D=n(T))):k=!1}k&&(C.set(T,D),w(D,T,b,x,C),C.delete(T)),r(p,y,D)}return mu=m,mu}var bu,Fh;function i2(){if(Fh)return bu;Fh=1;var r=Zn(),e=dm(),t=df(),a=n2(),n=Yr,i=At(),s=hm();function o(l,u,f,v,c){l!==u&&t(u,function(d,h){if(c||(c=new r),n(d))a(l,u,h,f,o,v,c);else{var m=v?v(s(l,h),d,h+"",l,u,c):void 0;m===void 0&&(m=d),e(l,h,m)}},i)}return bu=o,bu}var wu,zh;function s2(){if(zh)return wu;zh=1;var r=ri(),e=ti();function t(a){return r(function(n,i){var s=-1,o=i.length,l=o>1?i[o-1]:void 0,u=o>2?i[2]:void 0;for(l=a.length>3&&typeof l=="function"?(o--,l):void 0,u&&e(i[0],i[1],u)&&(l=o<3?void 0:l,o=1),n=Object(n);++s{const a=ft({container:e,wheelSensitivity:.4,elements:r,layout:{name:"dagre",nodeSep:10,edgeSep:10,rankSep:80,rankDir:"TB"},style:X2});return a.on("mouseover","node",n=>{t(n.target,n.originalEvent)}),a.on("mouseout","node",()=>{t(void 0,void 0)}),()=>a.destroy()};export{J2 as i};
diff --git a/resources/frontend/_nuxt/BCrvxhm1.js b/resources/frontend/_nuxt/BCrvxhm1.js
new file mode 100644
index 00000000..61b2633e
--- /dev/null
+++ b/resources/frontend/_nuxt/BCrvxhm1.js
@@ -0,0 +1 @@
+import{E as u,I as T}from"./BefdN0MI.js";import{d as v,l as S,c as k,o as n,a as o,b as r,e as x,t as c,g as l,h as b,s as h,u as E,F as m,r as d,_ as g,B as L}from"./BqbMuE7y.js";import"./Cuqdu9nB.js";const B=t=>{var s,a;return{id:t.uuid,type:u.SENTRY,labels:[u.SENTRY,"exception"],origin:{logger:t.payload.logger,environment:t.payload.environment,release:((s=t.payload)==null?void 0:s.release)||"-"},serverName:((a=t.payload)==null?void 0:a.server_name)||"",date:t.timestamp?new Date(t.timestamp*1e3):null,payload:t.payload}},Q=()=>({normalizeSentryEvent:B}),F={class:"sentry-exception-frame__head-title"},H={key:0},M={key:0,class:"sentry-exception-frame__body"},N={class:"sentry-exception-frame__body-line-position"},$=["innerHTML"],C={key:1,class:"sentry-exception-frame__body-line sentry-exception-frame__body-line--selection"},I={class:"sentry-exception-frame__body-line-position"},O=["innerHTML"],V={class:"sentry-exception-frame__body-line-position"},Y=["innerHTML"],z=v({__name:"sentry-exception-frame",props:{frame:{},isOpen:{type:Boolean}},setup(t){const s=t,a=S(s.isOpen),i=k(()=>!!(s.frame.context_line||s.frame.post_context||s.frame.pre_context)),y=()=>{i.value&&(a.value=!a.value)};return(e,f)=>(n(),o("div",{class:h(["sentry-exception-frame",{"sentry-exception-frame--empty":!i.value}])},[r("div",{class:"sentry-exception-frame__head",onClick:y},[r("div",F,[x(c(e.frame.filename)+" ",1),e.frame.function?(n(),o("span",H," in "+c(e.frame.function)+" at line ",1)):l("",!0),x(" "+c(e.frame.lineno),1)]),e.frame.pre_context?(n(),b(E(T),{key:0,class:h(["sentry-exception-frame__head-title-dd",{"sentry-exception-frame__head-title-dd--visible":a.value}]),name:"dd"},null,8,["class"])):l("",!0)]),a.value&&i.value?(n(),o("div",M,[e.frame.pre_context?(n(!0),o(m,{key:0},d(e.frame.pre_context,(p,_)=>(n(),o("div",{key:p,class:"sentry-exception-frame__body-line"},[r("div",N,c(e.frame.lineno-(e.frame.pre_context.length-_))+". ",1),r("pre",{class:"sentry-exception-frame__body-line-content",innerHTML:p},null,8,$)]))),128)):l("",!0),e.frame.context_line?(n(),o("div",C,[r("div",I,c(e.frame.lineno)+". ",1),r("pre",{innerHTML:e.frame.context_line},null,8,O)])):l("",!0),e.frame.post_context?(n(!0),o(m,{key:2},d(e.frame.post_context,(p,_)=>(n(),o("div",{key:p,class:"sentry-exception-frame__body-line"},[r("div",V,c(e.frame.lineno+_+1)+". ",1),r("pre",{class:"sentry-exception-frame__body-line-content",innerHTML:p},null,8,Y)]))),128)):l("",!0)])):l("",!0)],2))}}),D=g(z,[["__scopeId","data-v-635c4afe"]]),R={class:"sentry-exception"},w={class:"sentry-exception__header"},P={class:"sentry-exception__title"},j=["innerHTML"],q={key:0,class:"sentry-exception__frames"},A=v({__name:"sentry-exception",props:{exception:{},maxFrames:{default:3}},setup(t){const s=t,a=k(()=>{const i=s.exception.stacktrace.frames||[];return s.maxFrames>0?i.slice(0-s.maxFrames).reverse():i.slice().reverse()});return(i,y)=>(n(),o("div",R,[L(i.$slots,"default",{},()=>[r("header",w,[r("h3",P,c(i.exception.type),1),r("pre",{class:"sentry-exception__text",innerHTML:i.exception.value},null,8,j)])],!0),a.value.length?(n(),o("div",q,[(n(!0),o(m,null,d(a.value,(e,f)=>(n(),b(D,{key:e.context_line,frame:e,"is-open":f===0},null,8,["frame","is-open"]))),128))])):l("",!0)]))}}),U=g(A,[["__scopeId","data-v-4224e050"]]);export{U as S,Q as u};
diff --git a/resources/frontend/_nuxt/BHcW0LFx.js b/resources/frontend/_nuxt/BHcW0LFx.js
new file mode 100644
index 00000000..7f2372fe
--- /dev/null
+++ b/resources/frontend/_nuxt/BHcW0LFx.js
@@ -0,0 +1 @@
+import{T as F,a as B,u as z,_ as V}from"./Cuqdu9nB.js";import{m as Y}from"./B_g6P6pq.js";import"./BefdN0MI.js";import{d as D,c as g,o as n,a as o,F as v,r as b,g as k,b as t,q as T,s as M,t as c,p as E,i as N,_ as R,f,u as p,w as u,h as w,e as m,j as L,k as U,l as q,m as j,n as J}from"./BqbMuE7y.js";import{I as X,u as G}from"./Cduf3Gc_.js";import{u as K}from"./DU45Wy3H.js";import"./BBk2F9bR.js";import{u as O,P as Q}from"./k1uqWTyJ.js";const A=i=>(E("data-v-5eef20f5"),i=i(),N(),i),W={class:"inspector-page-timeline"},Z=A(()=>t("h3",{class:"inspector-page-timeline__title"},"Timeline",-1)),ee={key:0,class:"inspector-page-timeline__segment-types"},te={class:"inspector-page-timeline__segment-type__label"},se={key:1,class:"inspector-page-timeline__segments"},ne={class:"inspector-page-timeline__segments-cells"},ae={class:"inspector-page-timeline__series-segment-label"},oe={class:"flex items-center w-full"},ie={class:"inspector-page-timeline__series-segment-start-label"},re=A(()=>t("div",{class:"inspector-page-timeline__series-segment-end"},null,-1)),le={key:2,class:"inspector-page-timeline__no-segments"},ce=A(()=>t("h3",{class:"inspector-page-timeline__no-segments-placeholder"},"No data",-1)),_e=[ce],pe=D({__name:"inspector-page-timeline",props:{payload:{}},setup(i){const y=i,d=e=>{switch(e){case"sqlite":return"orange";case"view":return"blue";case"artisan":return"purple";default:return"gray"}},$=g(()=>y.payload[0]),_=g(()=>{let{duration:e}=$.value;const a=5,s=e/a+1,S=(100/(a+1)).toFixed(2),I=[e];for(let P=0;Py.payload.filter((e=>a=>a.model===e)("segment")).filter(e=>{var a;return $.value.hash===((a=e==null?void 0:e.transaction)==null?void 0:a.hash)})),r=g(()=>[...new Set(h.value.map(e=>e.type))].map(e=>({color:d(e),type:e}))),l=g(()=>{const{duration:e}=$.value;return h.value.map(a=>{const s=Math.max(Number((a.duration*100/e).toFixed(2)),.5),S=((a.start||0)*100/e).toFixed();return{widthPercent:s,marginPercent:S,segment:a,color:d(a.type)}})});return(e,a)=>(n(),o("section",W,[Z,r.value.length>0?(n(),o("div",ee,[(n(!0),o(v,null,b(r.value,s=>(n(),o("div",{key:s.type,class:"inspector-page-timeline__segment-type"},[t("div",{class:M([s.color,"inspector-page-timeline__segment-type__color-box"])},null,2),t("span",te,c(s.type),1)]))),128))])):k("",!0),l.value.length>0?(n(),o("div",se,[t("div",ne,[(n(!0),o(v,null,b(_.value.segments,s=>(n(),o("div",{key:s,class:"inspector-page-timeline__segments-cell"},c(s)+" ms ",1))),128))]),t("div",{class:"inspector-page-timeline__series",style:T({"background-size":`${_.value.widthPercent}% 20%`})},[(n(!0),o(v,null,b(l.value,s=>(n(),o("div",{key:`${s.segment.label} - ${s.segment.duration}`,class:"inspector-page-timeline__series-segment"},[t("div",ae,c(s.segment.label)+" - "+c(s.segment.duration)+" ms ",1),t("div",oe,[t("div",{style:T({width:s.marginPercent+"%"}),class:"inspector-page-timeline__series-segment-start"},[t("span",ie,c(s.segment.start)+" ms",1)],4),t("div",{class:M(["inspector-page-timeline__series-segment-time",[s.color]]),style:T({width:s.widthPercent+"%"})},null,6),re])]))),128))],4)])):k("",!0),l.value.length===0?(n(),o("div",le,_e)):k("",!0)]))}}),de=R(pe,[["__scopeId","data-v-5eef20f5"]]),H=i=>(E("data-v-7f787ab2"),i=i(),N(),i),ue={ref:"main",class:"inspector-page"},me={class:"inspector-page__in"},he={class:"inspector-page__header"},ge={class:"inspector-page__header-title"},ve={class:"inspector-page__header-meta"},fe={class:"inspector-page__header-date"},ye={class:"inspector-page__body"},$e=H(()=>t("h3",{class:"inspector-page__body-text"},"Url",-1)),be=H(()=>t("h3",{class:"inspector-page__body-text"},"Request",-1)),ke=D({__name:"inspector-page",props:{event:{}},setup(i){const y=i,d=g(()=>{var _;return(_=y.event)==null?void 0:_.payload[0]}),$=g(()=>Y(y.event.date).format("DD.MM.YYYY HH:mm:ss"));return(_,h)=>(n(),o("div",ue,[t("main",me,[t("header",he,[t("h2",ge,c(d.value.name),1),t("div",ve,[t("span",fe,c($.value),1)])]),f(p(X),{transaction:d.value},null,8,["transaction"]),f(p(de),{payload:_.event.payload},null,8,["payload"]),t("section",ye,[$e,f(p(F),{class:"inspector-page__body-table"},{default:u(()=>[(n(!0),o(v,null,b(d.value.http.url,(r,l)=>(n(),w(p(B),{key:l,title:String(l)},{default:u(()=>[m(c(r),1)]),_:2},1032,["title"]))),128))]),_:1})]),t("section",null,[be,f(p(F),{class:"inspector-page__body-table"},{default:u(()=>[(n(!0),o(v,null,b(d.value.http.request,(r,l)=>(n(),w(p(B),{key:l,title:String(l)},{default:u(()=>[typeof r=="string"?(n(),o(v,{key:0},[m(c(r),1)],64)):Array.isArray(r)?(n(),o(v,{key:1},[m(c(r.join(", ")),1)],64)):Array.isArray(r)?k("",!0):(n(!0),o(v,{key:2},b(r,(e,a)=>(n(),w(p(B),{key:a,title:String(a)},{default:u(()=>[m(c(e),1)]),_:2},1032,["title"]))),128))]),_:2},1032,["title"]))),128))]),_:1})])])],512))}}),Ie=R(ke,[["__scopeId","data-v-7f787ab2"]]),C=i=>(E("data-v-2230f9ff"),i=i(),N(),i),xe={class:"inspector-event"},Se={key:0,class:"inspector-event__loading"},we=C(()=>t("div",null,null,-1)),Pe=C(()=>t("div",null,null,-1)),Be=C(()=>t("div",null,null,-1)),Te=[we,Pe,Be],De={class:"inspector-event__body"},Ee=D({__name:"[id]",setup(i){const{normalizeInspectorEvent:y}=G(),{params:d}=L(),{$authToken:$}=J(),_=U(),h=d.id;O({title:`Inspector > ${h} | Buggregator`});const{events:r}=z(),l=q(!1),e=q(null),a=g(()=>e.value?y(e.value):null),s=()=>{r.removeById(h),_.push("/")};return j(async()=>{l.value=!0,await K(r.getUrl(h),{headers:{"X-Auth-Token":$.token||""},onResponse({response:{_data:I}}){e.value=I,l.value=!1},onResponseError(){_.push("/404")},onRequestError(){_.push("/404")}},"$DvUJDe1RiD")}),(I,P)=>{const x=V;return n(),o("main",xe,[f(p(Q),{class:"inspector-event__head","button-title":"Delete event",onDelete:s},{default:u(()=>[f(x,{to:"/"},{default:u(()=>[m("Home")]),_:1}),m(" / "),f(x,{to:"/inspector"},{default:u(()=>[m("Inspector")]),_:1}),m(" / "),f(x,{disabled:!0},{default:u(()=>[m(c(p(h)),1)]),_:1})]),_:1}),l.value&&!a.value?(n(),o("div",Se,Te)):k("",!0),t("div",De,[a.value?(n(),w(p(Ie),{key:0,event:a.value},null,8,["event"])):k("",!0)])])}}}),ze=R(Ee,[["__scopeId","data-v-2230f9ff"]]);export{ze as default};
diff --git a/resources/frontend/_nuxt/BIL_AGmQ.js b/resources/frontend/_nuxt/BIL_AGmQ.js
new file mode 100644
index 00000000..7d47cea0
--- /dev/null
+++ b/resources/frontend/_nuxt/BIL_AGmQ.js
@@ -0,0 +1 @@
+import{d as g,C as S,M as b,c as k,m as $,N as B,o as p,a as f,b as C,F as M,r as E,s as v,B as D,l as F,O as w,P as N,A as O,Q as _,S as J,u as K,T as U}from"./BqbMuE7y.js";const T=Symbol("addTab"),x=Symbol("updateTab"),A=Symbol("deleteTab"),H=Symbol("tabsProvider");function h(l,d){const e=U(l,d);if(typeof e>"u")throw new Error(`Could not resolve ${l.description}`);return e}const W=["data-tab-id","aria-hidden"],V=g({__name:"Tab",props:{panelClass:{default:"tabs-component-panel"},id:{default:void 0},name:null,prefix:{default:""},suffix:{default:""},isDisabled:{type:Boolean,default:!1},navItemClass:{default:void 0},navItemLinkClass:{default:void 0}},setup(l,{expose:d}){const e=l,i=F(!1),t=h(H),u=h(T),c=h(x),r=h(A),s=e.prefix+e.name+e.suffix,n=e.id?e.id:e.name.toLowerCase().replace(/ /g,"-"),a=n+"-pane",o=k(()=>"#"+(e.isDisabled?"":n));return w(()=>t.activeTabHash,()=>{i.value=o.value===t.activeTabHash}),w(()=>Object.assign({},e),()=>{c(n,{name:e.name,header:e.prefix+e.name+e.suffix,isDisabled:e.isDisabled,hash:o.value,index:t.tabs.length,computedId:n,paneId:a,navItemClass:e.navItemClass,navItemLinkClass:e.navItemLinkClass})}),N(()=>{u({name:e.name,header:s,isDisabled:e.isDisabled,hash:o.value,index:t.tabs.length,computedId:n,paneId:a,navItemClass:e.navItemClass,navItemLinkClass:e.navItemLinkClass})}),O(()=>{r(n)}),d({header:s,computedId:n,paneId:a,hash:o,isActive:i}),(m,I)=>_((p(),f("section",{ref:"tab",id:a,"data-tab-id":K(n),"aria-hidden":!i.value,class:v(l.panelClass),role:"tabpanel",tabindex:"-1"},[D(m.$slots,"default")],10,W)),[[J,i.value]])}});class j{get(d){const e=localStorage.getItem(d);if(e===null)return null;const i=JSON.parse(e);return i?new Date(i.expires)0)for(s=0;swe(i)||e._dayOfYear===0)&&(c(e)._overflowDayOfYear=!0),s=ge(i,0,e._dayOfYear),e._a[V]=s.getUTCMonth(),e._a[H]=s.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=r[t]=a[t];for(;t<7;t++)e._a[t]=r[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[Y]===24&&e._a[F]===0&&e._a[G]===0&&e._a[te]===0&&(e._nextDay=!0,e._a[Y]=0),e._d=(e._useUTC?ge:ur).apply(null,r),n=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Y]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==n&&(c(e).weekdayMismatch=!0)}}function ra(e){var t,s,r,a,n,i,u,f,_;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(n=1,i=4,s=le(t.GG,e._a[p],Me(S(),1,4).year),r=le(t.W,1),a=le(t.E,1),(a<1||a>7)&&(f=!0)):(n=e._locale._week.dow,i=e._locale._week.doy,_=Me(S(),n,i),s=le(t.gg,e._a[p],_.year),r=le(t.w,_.week),t.d!=null?(a=t.d,(a<0||a>6)&&(f=!0)):t.e!=null?(a=t.e+n,(t.e<0||t.e>6)&&(f=!0)):a=n),r<1||r>j(s,n,i)?c(e)._overflowWeeks=!0:f!=null?c(e)._overflowWeekday=!0:(u=jt(s,r,a,n,i),e._a[p]=u.year,e._dayOfYear=u.dayOfYear)}l.ISO_8601=function(){},l.RFC_2822=function(){};function yt(e){if(e._f===l.ISO_8601){Jt(e);return}if(e._f===l.RFC_2822){Qt(e);return}e._a=[],c(e).empty=!0;var t=""+e._i,s,r,a,n,i,u=t.length,f=0,_,O;for(a=Wt(e._f,e._locale).match(tt)||[],O=a.length,s=0;s