=x&&(x=v+1);!(y=b[x])&&++x=0;)(r=i[a])&&(o&&4^r.compareDocumentPosition(o)&&o.parentNode.insertBefore(r,o),o=r);return this},sort:function(e){function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}e||(e=uj);for(var n=this._groups,r=n.length,i=new Array(r),a=0;a1?this.each((null==t?wj:"function"===typeof t?kj:_j)(e,t,null==n?"":n)):Sj(this.node(),e)},property:function(e,t){return arguments.length>1?this.each((null==t?Ej:"function"===typeof t?Mj:jj)(e,t)):this.node()[e]},classed:function(e,t){var n=Cj(e+"");if(arguments.length<2){for(var r=Tj(this.node()),i=-1,a=n.length;++i=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}}))}(e+""),o=a.length;if(!(arguments.length<2)){for(s=t?Jj:Kj,r=0;r{}};function sM(){for(var e,t=0,n=arguments.length,r={};t=0&&(t=e.slice(n+1),e=e.slice(0,n)),e&&!r.hasOwnProperty(e))throw new Error("unknown type: "+e);return{type:e,name:t}}))),o=-1,s=a.length;if(!(arguments.length<2)){if(null!=t&&"function"!==typeof t)throw new Error("invalid callback: "+t);for(;++o0)for(var n,r,i=new Array(n),a=0;a=0&&t._call.call(void 0,e),t=t._next;--pM}()}finally{pM=0,function(){var e,t,n=dM,r=1/0;for(;n;)n._call?(r>n._time&&(r=n._time),e=n,n=n._next):(t=n._next,n._next=null,n=e?e._next=t:dM=t);hM=e,TM(r)}(),vM=0}}function CM(){var e=wM.now(),t=e-yM;t>gM&&(xM-=t,yM=e)}function TM(e){pM||(mM&&(mM=clearTimeout(mM)),e-vM>24?(e<1/0&&(mM=setTimeout(MM,e-wM.now()-xM)),bM&&(bM=clearInterval(bM))):(bM||(yM=wM.now(),bM=setInterval(CM,gM)),pM=1,_M(MM)))}function OM(e,t,n){var r=new EM;return t=null==t?0:+t,r.restart((n=>{r.stop(),e(n+t)}),t,n),r}EM.prototype=jM.prototype={constructor:EM,restart:function(e,t,n){if("function"!==typeof e)throw new TypeError("callback is not a function");n=(null==n?kM():+n)+(null==t?0:+t),this._next||hM===this||(hM?hM._next=this:dM=this,hM=this),this._call=e,this._time=n,TM()},stop:function(){this._call&&(this._call=null,this._time=1/0,TM())}};var PM=fM("start","end","cancel","interrupt"),AM=[],RM=0,NM=1,zM=2,LM=3,IM=4,DM=5,FM=6;function UM(e,t,n,r,i,a){var o=e.__transition;if(o){if(n in o)return}else e.__transition={};!function(e,t,n){var r,i=e.__transition;function a(e){n.state=NM,n.timer.restart(o,n.delay,n.time),n.delay<=e&&o(e-n.delay)}function o(a){var c,u,f,d;if(n.state!==NM)return l();for(c in i)if((d=i[c]).name===n.name){if(d.state===LM)return OM(o);d.state===IM?(d.state=FM,d.timer.stop(),d.on.call("interrupt",e,e.__data__,d.index,d.group),delete i[c]):+cRM)throw new Error("too late; already scheduled");return n}function qM(e,t){var n=WM(e,t);if(n.state>LM)throw new Error("too late; already running");return n}function WM(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}var VM,HM=180/Math.PI,$M={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function YM(e,t,n,r,i,a){var o,s,l;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(l=e*n+t*r)&&(n-=e*l,r-=t*l),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,l/=s),e*r180?t+=360:t-e>180&&(e+=360),a.push({i:n.push(i(n)+"rotate(",null,r)-2,x:gu(e,t)})):t&&n.push(i(n)+"rotate("+t+r)}(a.rotate,o.rotate,s,l),function(e,t,n,a){e!==t?a.push({i:n.push(i(n)+"skewX(",null,r)-2,x:gu(e,t)}):t&&n.push(i(n)+"skewX("+t+r)}(a.skewX,o.skewX,s,l),function(e,t,n,r,a,o){if(e!==n||t!==r){var s=a.push(i(a)+"scale(",null,",",null,")");o.push({i:s-4,x:gu(e,n)},{i:s-2,x:gu(t,r)})}else 1===n&&1===r||a.push(i(a)+"scale("+n+","+r+")")}(a.scaleX,a.scaleY,o.scaleX,o.scaleY,s,l),a=o=null,function(e){for(var t,n=-1,r=l.length;++n=0&&(e=e.slice(0,t)),!e||"start"===e}))}(t)?BM:qM;return function(){var o=a(this,e),s=o.on;s!==r&&(i=(r=s).copy()).on(t,n),o.on=i}}(n,e,t))},attr:function(e,t){var n=hj(e),r="transform"===n?QM:eC;return this.attrTween(e,"function"===typeof t?(n.local?oC:aC)(n,r,ZM(this,"attr."+e,t)):null==t?(n.local?nC:tC)(n):(n.local?iC:rC)(n,r,t))},attrTween:function(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==t)return this.tween(n,null);if("function"!==typeof t)throw new Error;var r=hj(e);return this.tween(n,(r.local?sC:lC)(r,t))},style:function(e,t,n){var r="transform"===(e+="")?XM:eC;return null==t?this.styleTween(e,function(e,t){var n,r,i;return function(){var a=Sj(this,e),o=(this.style.removeProperty(e),Sj(this,e));return a===o?null:a===n&&o===r?i:i=t(n=a,r=o)}}(e,r)).on("end.style."+e,pC(e)):"function"===typeof t?this.styleTween(e,function(e,t,n){var r,i,a;return function(){var o=Sj(this,e),s=n(this),l=s+"";return null==s&&(this.style.removeProperty(e),l=s=Sj(this,e)),o===l?null:o===r&&l===i?a:(i=l,a=t(r=o,s))}}(e,r,ZM(this,"style."+e,t))).each(function(e,t){var n,r,i,a,o="style."+t,s="end."+o;return function(){var l=qM(this,e),c=l.on,u=null==l.value[o]?a||(a=pC(t)):void 0;c===n&&i===u||(r=(n=c).copy()).on(s,i=u),l.on=r}}(this._id,e)):this.styleTween(e,function(e,t,n){var r,i,a=n+"";return function(){var o=Sj(this,e);return o===a?null:o===r?i:i=t(r=o,n)}}(e,r,t),n).on("end.style."+e,null)},styleTween:function(e,t,n){var r="style."+(e+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==t)return this.tween(r,null);if("function"!==typeof t)throw new Error;return this.tween(r,function(e,t,n){var r,i;function a(){var a=t.apply(this,arguments);return a!==i&&(r=(i=a)&&function(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}(e,a,n)),r}return a._value=t,a}(e,t,null==n?"":n))},text:function(e){return this.tween("text","function"===typeof e?function(e){return function(){var t=e(this);this.textContent=null==t?"":t}}(ZM(this,"text",e)):function(e){return function(){this.textContent=e}}(null==e?"":e+""))},textTween:function(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(null==e)return this.tween(t,null);if("function"!==typeof e)throw new Error;return this.tween(t,function(e){var t,n;function r(){var r=e.apply(this,arguments);return r!==n&&(t=(n=r)&&function(e){return function(t){this.textContent=e.call(this,t)}}(r)),t}return r._value=e,r}(e))},remove:function(){return this.on("end.remove",function(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}(this._id))},tween:function(e,t){var n=this._id;if(e+="",arguments.length<2){for(var r,i=WM(this.node(),n).tween,a=0,o=i.length;azM&&n.state{const l="tooltip_"+AC()([e[0].x,e[0].y,e[1].x,e[1].y]);var c=o.append("path").attr("d",a(e)).attr("id","".concat(l)).attr("stroke",t).attr("fill","none").attr("stroke-width",1).attr("marker-end","url(#arrow-&".concat(s,")")).style("opacity",0),u=o.append("foreignObject").append("div").attr("id","#".concat(l)).attr("class","tooltip").style("opacity",0).attr("class","absolute");c.transition().duration(r/2).delay(i).style("opacity",1).on("end",(function(){o.append("circle").attr("r",5).attr("fill","".concat(n)).attr("cx",e[0][0]).attr("cy",e[0][1]).style("opacity",0).transition().duration(r/2).style("opacity",1).attrTween("cx",(function(){return function(e){return c.node().getPointAtLength(e*c.node().getTotalLength()).x}})).attrTween("cy",(function(){return function(e){return c.node().getPointAtLength(e*c.node().getTotalLength()).y}}))})),MC("#".concat(l)).on("mouseover",(function(e,t){u.transition().duration(200).style("opacity",1)})).on("mousemove",(function(e,t){u.html("Tooltip text here").style("left",e.pageX+"px").style("top",e.pageY-28+"px")})).on("mouseout",(function(){u.transition().duration(500).style("opacity",0)}))},NC=()=>{const{speed:e,changeSpeed:n}=(0,t.useContext)(ka),{messageHistory:r,currentTransaction:i}=(0,t.useContext)(io),[a,o]=Xa(),{TRANSDURATION:s,REQUEST_BUFFER:l,PREPREPARE_BUFFER:c,PREPARE_BUFFER:u,COMMIT_BUFFER:f,REPLY_BUFFER:d}=Ke[e],{TRANSDURATION_NP:h,REQUEST_BUFFER_NP:p,PREPREPARE_BUFFER_NP:m,PREPARE_BUFFER_NP:b,COMMIT_BUFFER_NP:g,REPLY_BUFFER_NP:y}=Je[e],{theme:v}=(0,t.useContext)(wt),{clear:x,changeClear:w}=(0,t.useContext)(Sa),_=v?"#c4c4c4":"black",k=v?"#edf0f5":"#464747",[S,E]=(0,t.useState)(!0),j=(0,t.useRef)(null),M=(0,t.useRef)(null),C=(0,t.useRef)(null),T=(0,t.useRef)(null),O=(0,t.useRef)(null),P=(0,t.useRef)(1),A=(0,t.useRef)({}),R=(0,t.useRef)({}),[N,z]=(0,t.useState)({width:0,height:0});(0,t.useEffect)((()=>{const e=OC()((()=>{if(O.current){const{clientWidth:e,clientHeight:t}=O.current;z({width:e,height:t})}}),200);return e(),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e),e.cancel()}}),[]);const L=(0,t.useCallback)((()=>{MC(j.current).selectAll("*").remove(),MC(M.current).selectAll("*").remove(),MC(C.current).selectAll("*").remove(),MC(T.current).selectAll("*").remove();const{width:e,height:t}=N,n=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:4,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:5;const o=Math.floor(n/2)+Math.floor(r/1.8),s=Math.floor(n/2)+Math.floor(r/2.3),l=a+1,c=t-Math.floor((r+n)/1.5),u=e-(r+n),f=Math.floor(u/a),d=Math.floor(c/i);let h=new Array((i+1)*l).fill({x:0,y:0}),p=o,m=s,b=[];for(let g=0;g{let n=[],r=[],i=[],a=[];for(let o=0;o<=t;o++)i.push(e[o].x);for(let o=0;o{let s={},l=i[a];const c=o?He:$e,{primaryIndex:u,transactions:f}=eo(l);Ge.forEach(((e,t)=>s={...s,[e]:{color:"".concat(c[t]),start:[],end:[]}})),s.request.start.push({flag:!0,points:e[0]});let d={};if(-1===u){let i=[];for(const[n,r]of Object.entries(Za))i.push(e[t+r]);s.request.end.push({flag:!0,points:i});for(let e=0;e{e.length>0&&e.map(((e,t)=>{let n=d[e.points.y];f.has(n)&&!o.has(n)&&(o.add(n),s.prepare.start.push({x:a,y:e.points.y}))}))}));for(const e of s.prepare.start)s.prepare.end.push([]);for(let e=0;e{f.has(d[e.points.y])&&s.prepare.start.push(e.points)}));for(const e of s.prepare.start)s.prepare.end.push([]);for(let e=0;e{let n=[],r=[];if(e.length<2||t.length<2)return n;for(let i=0;ie.x)).attr("cy",(e=>e.y)).attr("r","1.5").attr("fill","".concat(v?"white":"black"));const U=NS().x((e=>e.x)).y((e=>e.y));Ge.forEach(((e,t)=>F.append("defs").append("marker").attr("id","arrow-".concat(e)).attr("viewBox","0 0 10 10").attr("refX",10).attr("refY",5).attr("markerWidth",5).attr("markerHeight",5).attr("orient","auto-start-reverse").append("path").attr("fill","".concat(He[t])).attr("d","M 0 0 L 10 5 L 0 10 z"))),w.forEach(((e,t)=>F.append("path").attr("d",U(e)).attr("stroke",_).attr("fill","none").attr("stroke-width",.2).attr("stroke-dasharray","5,10"))),S.forEach(((e,t)=>F.append("path").attr("d",U(e)).attr("stroke",_).attr("fill","none").attr("stroke-width",.2).attr("stroke-dasharray","5,10")));const B=Math.floor((t+e)/120),q=Math.floor(B/2),W=q-4;if(I.forEach((e=>F.append("text").attr("transform","translate("+e.x+" ,"+(e.y+q-3)+")").attr("fill",_).attr("font-size",B).style("text-anchor","middle").text("".concat(e.title)))),D.forEach(((e,t)=>F.append("text").attr("transform","translate("+(e.x+W+10)+" ,"+e.y+")").attr("font-size",B).style("text-anchor","middle").text("".concat(e.title)).attr("fill",_))),!x){let n;const r=MC(T.current).attr("width",e).attr("height",t);-1!==O&&(n=MC(C.current).attr("width",e).attr("height",t));const i=MC(M.current).attr("width",e).attr("height",t).classed("flex",!0).classed("justify-center",!0).classed("items-center",!0);let a=new Set;for(let[e,t]of Object.entries(A.current))R.current.has(t)||a.add(t);Math.floor((t+e)/120);D.forEach(((e,t)=>{if(a.has(t))return((e,t,n)=>(e.append("text").attr("transform","translate("+(t.x+10)+" ,"+(t.y+20)+")").attr("fill","#fc453f").style("font-size","12px").style("text-anchor","middle").text("Faulty"),e))(r,e)})),-1===O?(E.request.end[0].points.length>0&&E.request.end[0].points.forEach(((e,t)=>{RC([E.request.start[0].points,e],E.request.color,k,h,t*p,U,i,"request")})),E.prePrepare.start.length>0&&E.prePrepare.start.map(((e,t)=>E.prePrepare.end[t].map(((t,n)=>t.flag&&RC([e,t.points],E.prePrepare.color,k,h,1*n+m,U,i,"prepare"))))),E.prepare.start.length>0&&E.prepare.start.map(((e,t)=>E.prepare.end[t].map(((t,n)=>t.flag&&RC([e,t.points],E.prepare.color,k,h,1*n+b,U,i,"prepare"))))),E.commit.start.length>0&&E.commit.start.map(((e,t)=>E.commit.end[t].map(((t,n)=>t.flag&&RC([e,t.points],E.commit.color,k,h,1*n+g,U,i,"commit"))))),E.reply.start.length>0&&E.reply.start.forEach(((e,t)=>e.flag&&RC([e.points,E.reply.end[0].points],E.reply.color,k,h,1*t+y,U,i,"reply")))):(D.forEach(((e,t)=>{if(t===O)return((e,t)=>(e.append("text").attr("transform","translate("+(t.x+10)+" ,"+(t.y+20)+")").attr("fill","#02c415").style("text-anchor","middle").style("font-size","12px").text("Primary"),e))(n,e)})),E.request.end.length>0&&E.request.end.forEach(((e,t)=>{e.flag&&RC([E.request.start[0].points,e.points],E.request.color,k,s,t*l,U,i,"request")})),E.prePrepare.end.length>0&&E.prePrepare.end.forEach(((e,t)=>{e.flag&&RC([E.prePrepare.start[0].points,e.points],E.prePrepare.color,k,s,1*t+c,U,i,"prePrepare")})),E.prepare.start.length>0&&E.prepare.start.map(((e,t)=>E.prepare.end[t].map(((t,n)=>t.flag&&RC([e,t.points],E.prepare.color,k,s,1*n+u,U,i,"prepare"))))),E.commit.start.length>0&&E.commit.start.map(((e,t)=>E.commit.end[t].map(((t,n)=>t.flag&&RC([e,t.points],E.commit.color,k,s,1*n+f,U,i,"commit"))))),E.reply.start.length>0&&E.reply.start.forEach(((e,t)=>e.flag&&RC([e.points,E.reply.end[0].points],E.reply.color,k,s,1*t+d,U,i,"reply"))))}}),[v,N,r,i,x]);(0,t.useEffect)((()=>{L()}),[L]),(0,t.useEffect)((()=>{w(!0),setTimeout((()=>{w(!1)}),500)}),[e,i,o,a]);const I=v&&x?"gray":v&&!x?"white":!v&&x?"gray":"black";return(0,Re.jsxs)(oo,{title:"Practical Byzantine Fault Tolerance",heightBig:!0,children:[(0,Re.jsxs)("div",{className:"flex items-center justify-around w-full flex-row mt-8",children:[(0,Re.jsx)("div",{className:"basis-1/4",children:-1===P.current&&(0,Re.jsx)("div",{className:"text-amber-600 font-18p border-1p rounded-md p-1 border-amber-600 w-180p flex items-center justify-center ml-8",children:"No Primary Exists"})}),(0,Re.jsxs)("div",{className:"flex items-center justify-center gap-x-16 basis-1/2",children:[(0,Re.jsx)(ht,{title:x?"Play":"Playing",onClick:()=>(w(!1),void E(!0)),disabled:!x,children:(0,Re.jsx)(xt,{path:x?"M73 39c-14.8-9.1-33.4-9.4-48.5-.9S0 62.6 0 80V432c0 17.4 9.4 33.4 24.5 41.9s33.7 8.1 48.5-.9L361 297c14.3-8.7 23-24.2 23-41s-8.7-32.2-23-41L73 39z":"M48 64C21.5 64 0 85.5 0 112V400c0 26.5 21.5 48 48 48H80c26.5 0 48-21.5 48-48V112c0-26.5-21.5-48-48-48H48zm192 0c-26.5 0-48 21.5-48 48V400c0 26.5 21.5 48 48 48h32c26.5 0 48-21.5 48-48V112c0-26.5-21.5-48-48-48H240z",viewBox:"0 0 384 512",height:"11px",fill:I})}),S&&(0,Re.jsx)(pt,{selected:e,elements:["1x","0.5x","2x"],onClick:e=>n(e)}),(0,Re.jsx)(ht,{title:"Clear",onClick:()=>(w(!0),void E(!1)),disabled:x,children:(0,Re.jsx)(xt,{path:st,viewBox:"0 0 384 512",height:"12px",fill:I})})]}),(0,Re.jsx)("div",{className:"basis-1/4"})]}),(0,Re.jsxs)("div",{ref:O,className:"relative w-full h-full pl-5 pr-0 pb-1",children:[(0,Re.jsx)("svg",{id:"svg-one",ref:j,className:"absolute"}),!x&&(0,Re.jsxs)(Re.Fragment,{children:[(0,Re.jsx)("svg",{ref:M,className:"absolute"}),(0,Re.jsx)("svg",{ref:C,className:"absolute"}),(0,Re.jsx)("svg",{ref:T,className:"absolute"})]})]})]})},zC=()=>(0,Re.jsx)(NC,{}),LC=e=>{let{onNext:n,onPrev:r,nextDisabled:i,prevDisabled:a,currentData:o,startRecord:s,endRecord:l}=e;const{loading:c,totalHistoryLength:u}=(0,t.useContext)(io);return(0,Re.jsxs)("div",{className:"flex items-center justify-between px-8 border-t-1p border-gray-700 dark:border-gray-50 h-40p","aria-label":"Table navigation",children:[c?(0,Re.jsx)("div",{className:"w-120p h-3 px-4 bg-gray-200 dark:bg-gray-700 animate-pulse rounded"}):(0,Re.jsx)("div",{className:"flex items-center justify-center h-full",children:(0,Re.jsxs)("span",{className:"text-sm font-normal text-gray-500 dark:text-gray-400 block w-full md:inline md:w-auto",children:["Showing ",(0,Re.jsx)("span",{className:"font-semibold text-gray-900 dark:text-white",children:"".concat(s,"-").concat(l)})," of ",(0,Re.jsx)("span",{className:"font-semibold text-gray-900 dark:text-white",children:null!==u&&void 0!==u?u:"N/A"})]})}),(0,Re.jsxs)("div",{className:"flex items-center justify-center gap-x-10 pt-1",children:[(0,Re.jsx)(dt,{title:"Previous",onClick:r,disabled:a||c}),(0,Re.jsx)(dt,{title:"Next",onClick:n,disabled:i||c})]})]})},IC={1:["Sr #","Transaction #","Primary","Faulty Replicas","Replica Details"],2:["Replica Number","Commit Time","Execution Time","Prepare Time"]},DC=e=>{let{value:t,loading:n,replicaDetailsKeys:r,replicaDetailsBool:i,primaryDoesNotExist:a}=e;return(0,Re.jsx)("td",{rowSpan:i?"":r.length+1,className:rt()("px-6 py-3 border-r-1p border-gray-700 dark:border-gray-50",{"animate-pulse":n},{"text-red-50":a===Ze}),children:n?(0,Re.jsx)("div",{className:"w-full h-3 px-4 bg-gray-200 dark:bg-gray-700 animate-pulse rounded"}):(0,Re.jsx)(Re.Fragment,{children:t})})},FC=e=>{let{srNo:n,transaction:r,replicaDetailsKeys:i,loading:a,goToPbftGraph:o}=e;const{changeCurrentTransaction:s}=(0,t.useContext)(io);return(0,Re.jsxs)(t.Fragment,{children:[(0,Re.jsxs)("tr",{className:rt()({"cursor-pointer dark:hover:bg-gray-700 hover:bg-gray-400":!a}),onClick:()=>!a&&(e=>{s(e),o()})(r.transactionNumber),children:[(0,Re.jsx)(DC,{value:n,loading:a,replicaDetailsKeys:i,transaction:r,primaryDoesNotExist:r.primary}),Object.keys(r).length>0&&Object.keys(r).map(((e,t)=>{if("replicaDetails"!==e)return(0,Re.jsx)(DC,{value:r[e],loading:a,replicaDetailsKeys:i,primaryDoesNotExist:r.primary},t)}))]}),i.map(((e,t)=>{const n=r.replicaDetails[e];return(0,Re.jsxs)("tr",{className:"border-b-2p",children:[(0,Re.jsx)(DC,{value:e,loading:a,replicaDetailsKeys:i,primaryDoesNotExist:r.primary,replicaDetailsBool:!0},t),Object.keys(n).length>0&&Object.keys(n).map(((e,t)=>(0,Re.jsx)(DC,{value:n[e],loading:a,replicaDetailsKeys:i,primaryDoesNotExist:r.primary,replicaDetailsBool:!0},t)))]},e)}))]})},UC=e=>{let{goToPbftGraph:n}=e;const{data:r,loading:i}=(0,t.useContext)(io),[a,o]=(0,t.useState)(1),s=r?Math.ceil(Object.keys(r).length/5):1,l=5*(a-1)+1,c=Math.min(5*a,r?Object.keys(r).length:0),u=e=>{o((t=>"next"===e&&t1?t-1:t))},f=r?Object.keys(r).slice(5*(a-1),5*a):[];return(0,Re.jsxs)(Re.Fragment,{children:[(0,Re.jsx)("div",{className:"mb-10",children:(0,Re.jsx)(kt,{title:"Current Transactions"})}),(0,Re.jsxs)("div",{className:"relative overflow-x-auto rounded-md border-3p bg-blue-10 dark:border-solid border-gray-700 dark:border-gray-50 h-600p",children:[(0,Re.jsx)("div",{className:"overflow-y-auto h-550p scrollbar",children:(0,Re.jsxs)("table",{className:"w-full text-sm text-center rtl:text-right dark:text-gray-300 text-gray-700",children:[(0,Re.jsxs)("thead",{className:"text-xs uppercase dark:text-gray-300 text-gray-700 w-full border-gray-700 dark:border-gray-50 bg-gray-100 dark:bg-gray-800 sticky top-0 z-10",children:[(0,Re.jsx)("tr",{children:IC[1].map(((e,t)=>{let n="Replica Details"===e;return(0,Re.jsx)("th",{scope:"col",className:rt()("px-6 py-3 border-r-1p border-gray-700 dark:border-gray-50",{"border-r-0":n}),rowSpan:!n&&"2",colSpan:n&&"4",children:e},t)}))}),(0,Re.jsx)("tr",{children:IC[2].map(((e,t)=>(0,Re.jsx)("th",{scope:"col",className:rt()("px-6 py-3 border-gray-700 dark:border-gray-50 border-t-1p border-r-1p"),children:e},t)))})]}),(0,Re.jsx)("tbody",{children:i?(0,Re.jsx)(Re.Fragment,{children:Object.keys(Ja).map(((e,t)=>{const r=Ja[e],a=Object.keys(r.replicaDetails);return(0,Re.jsx)(FC,{className:"cursor-pointer",srNo:t+1,transaction:r,replicaDetailsKeys:a,loading:i,goToPbftGraph:n},e)}))}):(0,Re.jsx)(Re.Fragment,{children:f.map(((e,t)=>{const i=r[e],o=Object.keys(i.replicaDetails);return(0,Re.jsx)(FC,{className:"cursor-pointer",srNo:t+1+5*(a-1),transaction:i,replicaDetailsKeys:o,goToPbftGraph:n},e)}))})})]})}),(0,Re.jsx)(LC,{onPrev:()=>u("prev"),onNext:()=>u("next"),nextDisabled:a===s,prevDisabled:1===a,startRecord:l,endRecord:c,currentData:f})]})]})},BC=e=>{let{title:t,info:n}=e;return(0,Re.jsxs)("div",{className:"flex flex-col justify-center items-center",children:[(0,Re.jsx)("div",{className:"text-16p md:text-14p sm:text-10p font-bold py-1",children:n}),(0,Re.jsx)("div",{className:"text-14p md:text-12p sm:text-8p pt-1",children:t})]})},qC=e=>{let{replica:t,status:n}=e;return(0,Re.jsxs)("div",{className:"flex flex-col justify-center items-center",children:[(0,Re.jsx)("div",{className:"",children:(0,Re.jsx)(xt,{path:n?"M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z":st,viewBox:n?"0 0 448 512":"0 0 384 512",height:"18px",fill:n?"#0ac24d":"#ed1123"})}),(0,Re.jsx)("div",{className:"text-14p md:text-12p sm:text-10p pt-2",children:t})]})},WC=e=>{let{title:t,link:n}=e;return(0,Re.jsx)("div",{className:"relative flex h-11 w-full items-center justify-center px-6 before:absolute before:inset-0 before:rounded-full before:border-3p before:border-blue-500 before:bg-primary/10 before:bg-gradient-to-b before:transition before:duration-300 hover:before:scale-105 active:duration-75 active:before:scale-95 dark: before:border-gray-700 dark:before:bg-gray-800 sm:w-max cursor-pointer",children:(0,Re.jsx)(Ce,{to:n,children:(0,Re.jsx)("span",{className:"relative text-base font-semibold text-primary dark:text-white",children:t})})})},VC=()=>{const{primaryIndexVal:e,currentTransaction:n,replicaStatus:r}=(0,t.useContext)(io),{theme:i}=(0,t.useContext)(wt),a=i?De:Fe,o=-1===e?"No Primary":"Replica ".concat(e);return(0,Re.jsxs)("div",{className:"h-full w-220p fixed z-1 top-0 left-0 overflow-x-hidden p-2 py-6 flex flex-col items-center justify-around opacity-1 border-r-3p border-solid border-gray-700 dark:border-gray-50 dark:text-gray-300 gap-y-6",children:[(0,Re.jsxs)(Ce,{to:ze,className:"flex items-center justify-center gap-x-2 w-full cursor-pointer",children:[(0,Re.jsx)("img",{src:a,alt:"ResDb View Logo",className:"h-30p w-30p"}),(0,Re.jsx)("div",{className:"text-blue-190 text-18p font-sans font-bold",children:(0,Re.jsx)("span",{className:"text-20p font-bold text-gray-900 dark:text-white",children:"ResView"})})]}),(0,Re.jsx)("div",{className:"w-full px-4",children:(0,Re.jsx)(Qa,{})}),(0,Re.jsx)("div",{className:"px-6 w-full",children:(0,Re.jsx)(WC,{title:"Home",link:ze,external:!1})}),(0,Re.jsx)("div",{className:"w-full px-4",children:(0,Re.jsx)(Qa,{})}),(0,Re.jsx)("div",{className:"text-16p md:text-14p sm:text-10p font-bold py-1",children:"Current Transaction"}),(0,Re.jsx)("div",{children:(0,Re.jsx)(BC,{title:"Transaction #",info:null!==n&&void 0!==n?n:"17"})}),(0,Re.jsx)("div",{children:(0,Re.jsx)(BC,{title:"Primary",info:o})}),(0,Re.jsx)("div",{children:(0,Re.jsx)(BC,{title:"# Replicas",info:"4"})}),(0,Re.jsx)("div",{className:"w-full px-4",children:(0,Re.jsx)(Qa,{})}),(0,Re.jsx)("div",{className:"text-16p md:text-14p sm:text-10p font-bold py-1",children:"Replica Status"}),(0,Re.jsx)("div",{className:"flex flex-col items-center justify-center gap-y-10",children:r.length>0&&r.map(((e,t)=>(0,Re.jsx)(qC,{replica:"Replica ".concat(t+1),status:e},t)))})]})},HC=["Sr #","Transaction","Primary","Faulty Replicas"],$C=e=>{let{value:t,loading:n,primaryDoesNotExist:r}=e;return(0,Re.jsx)("td",{className:rt()("px-3 py-3 border-r-1p border-gray-700 dark:border-gray-50",{"animate-pulse":n},{"text-red-50":r===Ze}),children:n?(0,Re.jsx)("div",{className:"w-full h-3 px-3 bg-gray-200 dark:bg-gray-700 animate-pulse rounded"}):(0,Re.jsx)("div",{className:"text-12p",children:t})})},YC=e=>{let{srNo:n,transaction:r,loading:i}=e;const{changeCurrentTransaction:a,currentTransaction:o}=(0,t.useContext)(io);return(0,Re.jsxs)("tr",{className:rt()("dark:hover:bg-gray-700 hover:bg-gray-400 cursor-pointer",{"dark:bg-gray-700 bg-gray-400":r.transactionNumber==o}),onClick:()=>!i&&(e=>{a(e)})(r.transactionNumber),children:[(0,Re.jsx)($C,{value:n,loading:i,transaction:r,primaryDoesNotExist:r.primary}),Object.keys(r).length>0&&Object.keys(r).map(((e,t)=>{if("replicaDetails"!==e)return(0,Re.jsx)($C,{value:r[e],loading:i,primaryDoesNotExist:r.primary},t)}))]})},GC=()=>{const{loading:e,truncatedData:n}=(0,t.useContext)(io);return(0,Re.jsxs)("table",{className:"text-sm text-center rtl:text-right dark:text-gray-300 text-gray-700 h-full",children:[(0,Re.jsx)("thead",{className:"text-xs uppercase dark:text-gray-300 text-gray-700 border-b-1p border-solid border-gray-700 dark:border-gray-50",children:(0,Re.jsx)("tr",{className:"h-50p min-w-full",children:HC.map(((e,t)=>{let n="Replica Details"===e;return(0,Re.jsx)("th",{scope:"col",className:rt()("px-1 py-2 border-r-1p border-gray-700 dark:border-gray-50 text-8p w-full",{"border-r-0":n}),rowSpan:!n&&"2",colSpan:n&&"4",children:e},t)}))})}),(0,Re.jsx)("tbody",{children:e?(0,Re.jsx)(Re.Fragment,{}):(0,Re.jsx)(Re.Fragment,{children:Object.keys(n).length>0&&Object.keys(n).map(((t,r)=>{const i=n[t];return(0,Re.jsx)(YC,{className:"cursor-pointer",srNo:r+1,transaction:i,loading:e},t)}))})})]})},XC=e=>{let{goToElement:n}=e;const{theme:r}=(0,t.useContext)(wt);return(0,Re.jsxs)("div",{className:rt()("flex flex-col rounded-md bg-blue-10 border-3p border-solid border-gray-700 dark:border-gray-50 dark:bg-blue-450 relative w-full"),children:[(0,Re.jsxs)("div",{className:"flex items-center justify-center gap-x-2 w-full border-b-2p border-solid border-gray-700 dark:border-gray-50 h-60p",children:[(0,Re.jsx)(xt,{fill:r?"rgb(209,213,219)":"black",height:"1em",path:"M288 80c-65.2 0-118.8 29.6-159.9 67.7C89.6 183.5 63 226 49.4 256c13.6 30 40.2 72.5 78.6 108.3C169.2 402.4 222.8 432 288 432s118.8-29.6 159.9-67.7C486.4 328.5 513 286 526.6 256c-13.6-30-40.2-72.5-78.6-108.3C406.8 109.6 353.2 80 288 80zM95.4 112.6C142.5 68.8 207.2 32 288 32s145.5 36.8 192.6 80.6c46.8 43.5 78.1 95.4 93 131.1c3.3 7.9 3.3 16.7 0 24.6c-14.9 35.7-46.2 87.7-93 131.1C433.5 443.2 368.8 480 288 480s-145.5-36.8-192.6-80.6C48.6 356 17.3 304 2.5 268.3c-3.3-7.9-3.3-16.7 0-24.6C17.3 208 48.6 156 95.4 112.6zM288 336c44.2 0 80-35.8 80-80s-35.8-80-80-80c-.7 0-1.3 0-2 0c1.3 5.1 2 10.5 2 16c0 35.3-28.7 64-64 64c-5.5 0-10.9-.7-16-2c0 .7 0 1.3 0 2c0 44.2 35.8 80 80 80zm0-208a128 128 0 1 1 0 256 128 128 0 1 1 0-256z",viewBox:"0 0 576 512"}),(0,Re.jsx)(kt,{title:"Overview"})]}),(0,Re.jsx)("div",{className:"overflow-y-scroll h-full",children:(0,Re.jsx)(GC,{})}),(0,Re.jsxs)("div",{className:"w-full flex items-center justify-center gap-x-2 border-t-3p border-solid border-gray-700 dark:border-gray-50 cursor-pointer hover:dark:bg-green-80 h-60p",onClick:()=>n("transaction-table"),children:[(0,Re.jsx)("div",{children:(0,Re.jsx)(xt,{path:"M201.4 374.6c12.5 12.5 32.8 12.5 45.3 0l160-160c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L224 306.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l160 160z",fill:r?"rgb(209,213,219)":"black",height:"1.1em",viewBox:"0 0 448 512"})}),(0,Re.jsx)("div",{className:"dark:text-gray-300 text-gray-700 font-bold text-center text-14p",children:"All Transactions"})]})]})},QC=e=>{let{title:t,value:n}=e;return(0,Re.jsxs)("div",{className:"flex flex-col items-center justify-center px-2 py-2 pt-3 gap-y-4",children:[(0,Re.jsx)("div",{className:"dark:text-gray-300 text-gray-700 font-semibold text-center text-20p",children:n}),(0,Re.jsx)("div",{className:"dark:text-gray-300 text-gray-700 text-14p",children:t})]})},KC=()=>{const{theme:e}=(0,t.useContext)(wt),{totalPercentFaulty:n,totalHistoryLength:r,noPrimaryCount:i}=(0,t.useContext)(io);return(0,Re.jsxs)("div",{className:rt()("flex flex-col rounded-md bg-blue-10 border-3p border-solid border-gray-700 dark:border-gray-50 dark:bg-blue-450 relative w-full"),children:[(0,Re.jsxs)("div",{className:"flex items-center justify-center gap-x-2 w-full border-b-2p border-solid border-gray-700 dark:border-gray-50 h-60p",children:[(0,Re.jsx)("div",{children:(0,Re.jsx)(xt,{fill:e?"rgb(209,213,219)":"black",height:"1em",path:"M438.6 150.6c12.5-12.5 12.5-32.8 0-45.3l-96-96c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L338.7 96 32 96C14.3 96 0 110.3 0 128s14.3 32 32 32l306.7 0-41.4 41.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l96-96zm-333.3 352c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L109.3 416 416 416c17.7 0 32-14.3 32-32s-14.3-32-32-32l-306.7 0 41.4-41.4c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-96 96c-12.5 12.5-12.5 32.8 0 45.3l96 96z",viewBox:"0 0 448 512"})}),(0,Re.jsx)(kt,{title:" Analytics"})]}),(0,Re.jsxs)("div",{className:"grid grid-rows-2 h-full w-full",children:[(0,Re.jsx)("div",{className:"flex items-center justify-center w-full border-b-2p border-solid border-gray-700 dark:border-gray-50",children:(0,Re.jsx)(QC,{value:r,title:"Total Transactions"})}),(0,Re.jsxs)("div",{className:"grid grid-cols-2 flex-items-center-justify-center w-full",children:[(0,Re.jsx)("div",{className:"border-r-2p border-solid border-gray-700 dark:border-gray-50 flex items-center justify-center",children:(0,Re.jsx)(QC,{title:"Avg. Faultiness",value:"".concat(100*n,"%")})}),(0,Re.jsx)("div",{className:"flex items-center justify-center",children:(0,Re.jsx)(QC,{title:"No Primary",value:i})})]})]})]})},JC=()=>{const{loading:e}=(0,t.useContext)(io),[n,r]=Xa();let i=Math.floor(r/2)+200;const a=e=>{const t=document.getElementById(e);t&&t.scrollIntoView({behavior:"smooth",block:"start",inline:"nearest"})};return(0,Re.jsxs)("div",{className:"h-full",children:[(0,Re.jsx)(VC,{}),(0,Re.jsx)("div",{className:"ml-[220px] w-full h-1 bg-gray-700 overflow-hidden relative",children:e&&(0,Re.jsx)("div",{className:"h-full bg-green-600 animate-grow-line origin-left"})}),(0,Re.jsxs)("div",{className:"ml-[220px] px-8 pt-12 h-full",children:[(0,Re.jsxs)("div",{className:"grid grid-cols-3.5f-1f gap-x-6 w-full h-full",id:"pbft-graph",children:[(0,Re.jsx)(zC,{}),(0,Re.jsxs)("div",{className:"grid grid-rows-2 gap-y-4",style:{height:i},children:[(0,Re.jsx)(XC,{goToElement:a}),(0,Re.jsx)(KC,{})]})]}),(0,Re.jsx)("div",{className:"my-8 px-24 w-full",children:(0,Re.jsx)(Qa,{})}),(0,Re.jsx)($E,{}),(0,Re.jsx)("div",{className:"my-10 px-24 w-full",children:(0,Re.jsx)(Qa,{})}),(0,Re.jsx)("div",{className:"px-24",id:"transaction-table",children:(0,Re.jsx)(UC,{goToPbftGraph:()=>a("pbft-graph"),delay:3e3})}),(0,Re.jsx)("div",{className:"mt-10 mb-24 px-24 w-full",children:(0,Re.jsx)(Qa,{})}),(0,Re.jsx)("div",{className:"mb-4",children:(0,Re.jsx)(Ta,{})})]})]})},ZC=()=>(0,Re.jsx)(JC,{}),eT=()=>(0,Re.jsx)("div",{class:"w-screen h-screen relative",children:(0,Re.jsxs)("div",{class:"loader",children:[(0,Re.jsx)("div",{children:"ResView"}),(0,Re.jsx)("div",{class:"inner"})]})}),tT=()=>(0,Re.jsx)("div",{className:"h-screen",children:(0,Re.jsxs)(Ne,{children:[(0,Re.jsxs)("div",{className:"dark:text-white text-gray text-48p font-sans font-bold mt-10p mb-8",children:["Res ",(0,Re.jsx)("span",{className:"text-red-50",children:"NO"})," ",(0,Re.jsx)("span",{children:"View"})]}),(0,Re.jsxs)("div",{className:"flex flex-col items-center justify-center gap-y-2 my-4",children:[(0,Re.jsx)("div",{className:"text-gray dark:text-white text-36p bold",children:"Error 404"}),(0,Re.jsx)("div",{className:"text-gray dark:text-white text-30p bold",children:"Page Not Found"})]}),(0,Re.jsx)("div",{className:"mt-8",children:(0,Re.jsx)(ut,{title:"Go Back",link:ze,external:!1})})]})}),nT=()=>{const{theme:e}=(0,t.useContext)(wt),n=e?"https://i.postimg.cc/jd6PkhDs/Res-View-Logo-Dark.png":"https://i.postimg.cc/Y0dMy9mf/Copy-of-Untitled-Design-removebg-preview.png";return(0,Re.jsxs)("div",{className:"flex items-center justify-center flex-col m-4 p-2 h-[95vh]",children:[(0,Re.jsx)("div",{className:"m-2",children:(0,Re.jsx)("img",{src:n,alt:"ResDb View Logo",className:"h-100p w-100p"})}),(0,Re.jsx)("div",{className:"dark:text-white text-gray-700 text-18p text-bold flex items-center justify-center text-center",children:"ResView is available only on desktops, Macs and PCs"}),(0,Re.jsx)("div",{className:"mt-2 dark:text-white text-gray-700 flex items-center justify-center text-16p",children:"Please check it out using a laptop!"})]})};var rT=n(4409);const iT=e=>{var n;const r=null!==(n=e.id)&&void 0!==n?n:"tsparticles";return(0,t.useEffect)((()=>{let t;return rT.$k.load({id:r,url:e.url,options:e.options}).then((n=>{var r;t=n,null==(r=e.particlesLoaded)||r.call(e,n)})),()=>{null==t||t.destroy()}}),[r,e,e.url,e.options]),(0,Re.jsx)("div",{id:r,className:e.className})};const aT={background:{color:{value:"transparent"}},fpsLimit:120,interactivity:{events:{onClick:{enable:!0,mode:"pop"}}},particles:{destroy:{mode:"split",split:{count:1,factor:{value:{min:2,max:4}},rate:{value:100},particles:{life:{count:1,duration:{value:{min:2,max:3}}},move:{speed:{min:2,max:5}}}}},number:{value:50},shape:{type:"circle"},opacity:{value:{min:0,max:.3}},size:{value:{min:2,max:4}},collisions:{enable:!0,mode:"bounce"},move:{enable:!0,speed:1,outModes:"bounce"}}},oT=e=>{let{init:n,particlesLoaded:r}=e;const{theme:i}=(0,t.useContext)(wt),a=(0,t.useMemo)((()=>i?{...aT,particles:{...aT.particles,color:{value:"#fff"}}}:{...aT,particles:{...aT.particles,color:{value:"#0d98db"},collisions:{enable:!1}}}),[i]);return n?(0,Re.jsx)(iT,{id:"tsparticles",particlesLoaded:r,options:a}):(0,Re.jsx)(Re.Fragment,{})},sT=(lT=[[e=>{let{children:n}=e;const[r,i]=(0,t.useState)(!0),{Provider:a}=wt;return(0,Re.jsx)(a,{value:{theme:r,toggleDarkTheme:()=>{i(!0),localStorage.setItem("theme","dark")},toggleLightTheme:()=>{i(!1),localStorage.setItem("theme","light")}},children:n})}],[e=>{let{children:n}=e;const[r,i]=(0,t.useState)(!1),{Provider:a}=Ea,o=(0,t.useRef)(),s=(0,t.useCallback)((e=>{o.current&&o.current.disconnect(),o.current=new IntersectionObserver((e=>{e[0].isIntersecting?i(!1):i(!0)}),{root:null,threshold:0}),e&&o.current.observe(e)}),[]);return(0,Re.jsx)(a,{value:{borderToggle:r,bToggleElement:s},children:n})}],[e=>{let{children:n}=e;const{Provider:r}=ka,[i,a]=(0,t.useState)("1x");return(0,Re.jsx)(r,{value:{speed:i,changeSpeed:e=>a(e)},children:n})}],[e=>{let{children:n}=e;const{Provider:r}=Sa,[i,a]=(0,t.useState)(!1);return(0,Re.jsx)(r,{value:{clear:i,changeClear:e=>a(e)},children:n})}],[e=>{let{children:n}=e;const{Provider:r}=io,[i,a]=(0,t.useState)(Ka),[o,s]=(0,t.useState)(17),[l,c]=(0,t.useState)([!1,!1,!1,!1]),[u,f]=(0,t.useState)(-1),[d,h]=(0,t.useState)({}),[p,m]=(0,t.useState)({}),[b,g]=(0,t.useState)(0),[y,v]=(0,t.useState)(0),[x,w]=(0,t.useState)(0),[_,k]=(0,t.useState)(!1),S=(0,t.useRef)(0),E=(0,t.useRef)({}),j=(0,t.useRef)([[],[],[],[]]);let M;const C=e=>{a(e)};return(0,t.useEffect)((()=>{k(!0);const{primaryIndex:e,currentStatus:t}=no(i,o,[!1,!1,!1,!1]);c(t),f(e);const{data:n,totalPctFaulty:r,totalHistLength:a,noPrimaryCnt:s}=(e=>{let t={},n=0,r=0;Object.entries(e).forEach((i=>{let[a,o]=i;const{primaryIndex:s,faultReplicas:l,percentFaulty:c}=no(e,a,to);let u="";-1===s?(u=Ze,r+=1):u="Replica ".concat(s),t[a]={transactionNumber:a,primary:u,faultReplicas:"".concat(l),replicaDetails:{}},n+=c;for(let n in e[a]){const r=e[a][n];t[a].replicaDetails[n]={commitTime:r.commit_time,execTime:r.execution_time,prepTime:r.prepare_time}}}));const i=Object.keys(t).length,a=(n/i).toFixed(2);return{data:t,totalPctFaulty:a,totalHistLength:i,noPrimaryCnt:r}})(i),l=ro(n,o);h(n),g(r),v(a),w(s),m(l),k(!1)}),[o,i]),(0,t.useEffect)((()=>{const e=async e=>{try{let t=parseInt(18501)+e;const n=await fetch("http://localhost:"+String(t)+"/consensus_data"),r=await n.json();Object.keys(r).map((t=>{j.current[e].includes(t)||(j.current[e].push(t),(e=>{if(null===e)return;const t=(new Date).getTime();let n={...e,reply_time:t};const r=String(n.txn_number),i=String(n.replica_id);if(M=E.current,r in M){let e=M[r];e={...e,[i]:n},M[r]=e,E.current=M}else{let e={[i]:n};M[r]=e,E.current=M,S.current=S.current+1}})(r[t]),((e,t)=>{if(i){let t=JSON.parse(JSON.stringify(e));C({...i,...t})}else C(JSON.parse(JSON.stringify(e)))})(E.current))}))}catch(t){console.error("Error fetching data:",t)}},t=async()=>{k(!0);try{for(let t=0;t<4;t++)await e(t)}finally{k(!1)}};t();const n=setInterval(t,2e4);return()=>clearInterval(n)}),[]),(0,Re.jsx)(r,{value:{messageHistory:i,changeMessageHistory:C,changeCurrentTransaction:e=>{k(!0),s(e);const t=ro(d,e);m(t),k(!1)},replicaStatus:l,currentTransaction:o,primaryIndexVal:u,data:d,totalPercentFaulty:b,totalHistoryLength:y,noPrimaryCount:x,loading:_,truncatedData:p},children:n})}]],lT.reduce(((e,t)=>{let[n,r={}]=t;return t=>{let{children:i}=t;return(0,Re.jsx)(e,{children:(0,Re.jsx)(n,{...r,children:i})})}}),(e=>{let{children:t}=e;return(0,Re.jsx)(Re.Fragment,{children:t})})));var lT;const cT=()=>{const{bToggleElement:e}=(0,t.useContext)(Ea);return(0,Re.jsx)("div",{className:"relative mt-30p",ref:e})},uT=()=>{const[e,r]=(0,t.useState)(!1),[i,o]=(0,t.useState)(!1),{toggleLightTheme:s,toggleDarkTheme:l}=(0,t.useContext)(wt);"light"===localStorage.getItem("theme")?(s(),document.documentElement.setAttribute("data-theme","light")):(l(),document.documentElement.setAttribute("data-theme","dark")),(0,t.useEffect)((()=>{(async()=>{try{r(!0),await async function(e){await e(rT.$k)}((async e=>{await async function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const{loadParallaxMover:r}=await n.e(7590).then(n.bind(n,7590)),{loadExternalAttractInteraction:i}=await n.e(6725).then(n.bind(n,6725)),{loadExternalBounceInteraction:a}=await n.e(8122).then(n.bind(n,5741)),{loadExternalBubbleInteraction:o}=await n.e(3764).then(n.bind(n,3764)),{loadExternalConnectInteraction:s}=await n.e(1070).then(n.bind(n,1070)),{loadExternalGrabInteraction:l}=await n.e(1604).then(n.bind(n,1604)),{loadExternalPauseInteraction:c}=await n.e(4570).then(n.bind(n,2189)),{loadExternalPushInteraction:u}=await n.e(2314).then(n.bind(n,2314)),{loadExternalRemoveInteraction:f}=await n.e(2330).then(n.bind(n,2330)),{loadExternalRepulseInteraction:d}=await n.e(6646).then(n.bind(n,6646)),{loadExternalSlowInteraction:h}=await n.e(599).then(n.bind(n,599)),{loadParticlesAttractInteraction:p}=await n.e(175).then(n.bind(n,175)),{loadParticlesCollisionsInteraction:m}=await n.e(5817).then(n.bind(n,5817)),{loadParticlesLinksInteraction:b}=await n.e(2427).then(n.bind(n,2427)),{loadEasingQuadPlugin:g}=await n.e(4708).then(n.bind(n,4708)),{loadEmojiShape:y}=await n.e(615).then(n.bind(n,615)),{loadImageShape:v}=await n.e(464).then(n.bind(n,464)),{loadLineShape:x}=await n.e(3739).then(n.bind(n,3739)),{loadPolygonShape:w}=await n.e(9295).then(n.bind(n,9295)),{loadSquareShape:_}=await n.e(9482).then(n.bind(n,9482)),{loadStarShape:k}=await n.e(6341).then(n.bind(n,6341)),{loadLifeUpdater:S}=await n.e(2975).then(n.bind(n,2975)),{loadRotateUpdater:E}=await n.e(2478).then(n.bind(n,2478)),{loadStrokeColorUpdater:j}=await n.e(3579).then(n.bind(n,3579)),{loadBasic:M}=await n.e(719).then(n.bind(n,719));await r(e,!1),await i(e,!1),await a(e,!1),await o(e,!1),await s(e,!1),await l(e,!1),await c(e,!1),await u(e,!1),await f(e,!1),await d(e,!1),await h(e,!1),await p(e,!1),await m(e,!1),await b(e,!1),await g(),await y(e,!1),await v(e,!1),await x(e,!1),await w(e,!1),await _(e,!1),await k(e,!1),await S(e,!1),await E(e,!1),await j(e,!1),await M(e,t)}(e)})),o(!0)}catch(e){console.error("Initialization failed:",e)}finally{r(!1)}})()}),[]);return(0,Re.jsx)(Re.Fragment,{children:a.Fr?(0,Re.jsx)(nT,{}):(0,Re.jsxs)(Re.Fragment,{children:[(0,Re.jsx)(Ee,{children:(0,Re.jsxs)(ge,{children:[(0,Re.jsx)(me,{index:!0,element:(0,Re.jsx)(pe,{to:"".concat("/pages/home")})}),(0,Re.jsx)(me,{path:"".concat(Le),element:(0,Re.jsx)(Ba,{})}),(0,Re.jsx)(me,{path:"".concat(ze),element:(0,Re.jsx)(Pa,{})}),(0,Re.jsx)(me,{path:"".concat(Ie),element:(0,Re.jsx)(ZC,{})}),(0,Re.jsx)(me,{path:"*",element:(0,Re.jsx)(tT,{})})]})}),(0,Re.jsx)(oT,{init:i,particlesLoaded:e=>{console.log(e)}})]})})};const fT=function(){return(0,Re.jsx)(sT,{children:(0,Re.jsx)(t.Suspense,{fallback:(0,Re.jsx)(eT,{}),children:(0,Re.jsx)(uT,{})})})};i.createRoot(document.getElementById("root")).render((0,Re.jsx)(t.StrictMode,{children:(0,Re.jsx)(fT,{})}))})()})();
-//# sourceMappingURL=main.4c809867.js.map
\ No newline at end of file
+/*! For license information please see main.0bc6610a.js.LICENSE.txt */
+(()=>{var e={5513:(e,t,n)=>{"use strict";n.d(t,{A:()=>ie});var r=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t0?u(x,--y):0,b--,10===v&&(b=1,m--),v}function S(){return v=y2||C(v)>3?"":" "}function R(e,t){for(;--t&&S()&&!(v<48||v>102||v>57&&v<65||v>70&&v<97););return M(e,j()+(t<6&&32==E()&&32==S()))}function N(e){for(;S();)switch(v){case e:return y;case 34:case 39:34!==e&&39!==e&&N(v);break;case 40:41===e&&N(e);break;case 92:S()}return y}function z(e,t){for(;S()&&e+v!==57&&(e+v!==84||47!==E()););return"/*"+M(t,y-1)+"*"+a(47===e?e:S())}function L(e){for(;!C(E());)S();return M(e,y)}var I="-ms-",D="-moz-",F="-webkit-",U="comm",B="rule",q="decl",W="@keyframes";function V(e,t){for(var n="",r=h(e),i=0;i0&&d(D)-g&&p(v>32?Q(D+";",r,n,g-1):Q(l(D," ","")+";",r,n,g-2),h);break;case 59:D+=";";default:if(p(I=G(D,t,n,m,b,i,f,T,O=[],N=[],g),o),123===C)if(0===b)Y(D,t,I,I,O,o,g,f,N);else switch(99===y&&110===u(D,3)?100:y){case 100:case 108:case 109:case 115:Y(e,I,I,r&&p(G(e,I,I,0,0,i,f,T,i,O=[],g),N),i,N,g,f,r?O:N);break;default:Y(D,I,I,I,[""],N,0,f,N)}}m=b=v=0,w=M=1,T=D="",g=s;break;case 58:g=1+d(D),v=x;default:if(w<1)if(123==C)--w;else if(125==C&&0==w++&&125==k())continue;switch(D+=a(C),C*w){case 38:M=b>0?1:(D+="\f",-1);break;case 44:f[m++]=(d(D)-1)*M,M=1;break;case 64:45===E()&&(D+=P(S())),y=E(),b=g=d(T=D+=L(j())),C++;break;case 45:45===x&&2==d(D)&&(w=0)}}return o}function G(e,t,n,r,a,o,c,u,d,p,m){for(var b=a-1,g=0===a?o:[""],y=h(g),v=0,x=0,_=0;v0?g[k]+" "+S:l(S,/&\f/g,g[k])))&&(d[_++]=E);return w(e,t,n,0===a?B:u,d,p,m)}function X(e,t,n){return w(e,t,n,U,a(v),f(e,2,-2),0)}function Q(e,t,n,r){return w(e,t,n,q,f(e,0,r),f(e,r+1,-1),r)}var K=function(e,t,n){for(var r=0,i=0;r=i,i=E(),38===r&&12===i&&(t[n]=1),!C(i);)S();return M(e,y)},J=function(e,t){return O(function(e,t){var n=-1,r=44;do{switch(C(r)){case 0:38===r&&12===E()&&(t[n]=1),e[n]+=K(y-1,t,n);break;case 2:e[n]+=P(r);break;case 4:if(44===r){e[++n]=58===E()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=a(r)}}while(r=S());return e}(T(e),t))},Z=new WeakMap,ee=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||Z.get(n))&&!r){Z.set(e,!0);for(var i=[],a=J(t,i),o=n.props,s=0,l=0;s6)switch(u(e,t+1)){case 109:if(45!==u(e,t+4))break;case 102:return l(e,/(.+:)(.+)-([^]+)/,"$1"+F+"$2-$3$1"+D+(108==u(e,t+3)?"$3":"$2-$3"))+e;case 115:return~c(e,"stretch")?ne(l(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==u(e,t+1))break;case 6444:switch(u(e,d(e)-3-(~c(e,"!important")&&10))){case 107:return l(e,":",":"+F)+e;case 101:return l(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+F+(45===u(e,14)?"inline-":"")+"box$3$1"+F+"$2$3$1"+I+"$2box$3")+e}break;case 5936:switch(u(e,t+11)){case 114:return F+e+I+l(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return F+e+I+l(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return F+e+I+l(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return F+e+I+e+e}return e}var re=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case q:e.return=ne(e.value,e.length);break;case W:return V([_(e,{value:l(e.value,"@","@"+F)})],r);case B:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return V([_(e,{props:[l(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return V([_(e,{props:[l(t,/:(plac\w+)/,":"+F+"input-$1")]}),_(e,{props:[l(t,/:(plac\w+)/,":-moz-$1")]}),_(e,{props:[l(t,/:(plac\w+)/,I+"input-$1")]})],r)}return""}))}}],ie=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var i=e.stylisPlugins||re;var a,o,s={},l=[];a=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n{"use strict";function r(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}n.d(t,{A:()=>r})},5756:(e,t,n)=>{"use strict";n.d(t,{C:()=>s,T:()=>c,i:()=>a,w:()=>l});var r=n(5043),i=n(5513),a=(n(2830),n(9436),!0),o=r.createContext("undefined"!==typeof HTMLElement?(0,i.A)({key:"css"}):null);var s=o.Provider,l=function(e){return(0,r.forwardRef)((function(t,n){var i=(0,r.useContext)(o);return e(t,i,n)}))};a||(l=function(e){return function(t){var n=(0,r.useContext)(o);return null===n?(n=(0,i.A)({key:"css"}),r.createElement(o.Provider,{value:n},e(t,n))):e(t,n)}});var c=r.createContext({})},2830:(e,t,n)=>{"use strict";n.d(t,{J:()=>p});var r={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},i=n(918),a=/[A-Z]|^ms/g,o=/_EMO_([^_]+?)_([^]*?)_EMO_/g,s=function(e){return 45===e.charCodeAt(1)},l=function(e){return null!=e&&"boolean"!==typeof e},c=(0,i.A)((function(e){return s(e)?e:e.replace(a,"-$&").toLowerCase()})),u=function(e,t){switch(e){case"animation":case"animationName":if("string"===typeof t)return t.replace(o,(function(e,t,n){return d={name:t,styles:n,next:d},t}))}return 1===r[e]||s(e)||"number"!==typeof t||0===t?t:t+"px"};function f(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return d={name:n.name,styles:n.styles,next:d},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)d={name:r.name,styles:r.styles,next:d},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i=4;++r,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(i){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(i)+l;return{name:c,styles:i,next:d}}},9436:(e,t,n)=>{"use strict";var r;n.d(t,{i:()=>s,s:()=>o});var i=n(5043),a=!!(r||(r=n.t(i,2))).useInsertionEffect&&(r||(r=n.t(i,2))).useInsertionEffect,o=a||function(e){return e()},s=a||i.useLayoutEffect},568:(e,t,n)=>{"use strict";n.r(t),n.d(t,{GlobalStyles:()=>j,StyledEngineProvider:()=>E,ThemeContext:()=>l.T,css:()=>w,default:()=>M,internal_processStyles:()=>C,keyframes:()=>_});var r=n(8168),i=n(5043),a=n(918),o=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,s=(0,a.A)((function(e){return o.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),l=n(5756);var c=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},u=function(e,t,n){c(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var i=t;do{e.insert(t===i?"."+r:"",i,e.sheet,!0),i=i.next}while(void 0!==i)}},f=n(2830),d=n(9436),h=s,p=function(e){return"theme"!==e},m=function(e){return"string"===typeof e&&e.charCodeAt(0)>96?h:p},b=function(e,t,n){var r;if(t){var i=t.shouldForwardProp;r=e.__emotion_forwardProp&&i?function(t){return e.__emotion_forwardProp(t)&&i(t)}:i}return"function"!==typeof r&&n&&(r=e.__emotion_forwardProp),r},g=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return c(t,n,r),(0,d.s)((function(){return u(t,n,r)})),null},y=function e(t,n){var a,o,s=t.__emotion_real===t,c=s&&t.__emotion_base||t;void 0!==n&&(a=n.label,o=n.target);var u=b(t,n,s),d=u||m(c),h=!d("as");return function(){var p=arguments,y=s&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==a&&y.push("label:"+a+";"),null==p[0]||void 0===p[0].raw)y.push.apply(y,p);else{0,y.push(p[0][0]);for(var v=p.length,x=1;x{return t(void 0===(r=e)||null===r||0===Object.keys(r).length?n:e);var r}:t;return(0,k.jsx)(x,{styles:r})}function M(e,t){return y(e,t)}"object"===typeof document&&(S=(0,v.A)({key:"css",prepend:!0}));const C=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}},7266:(e,t,n)=>{"use strict";var r=n(4994);t.X4=h,t.e$=p,t.eM=function(e,t){const n=d(e),r=d(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)},t.a=m;var i=r(n(7245)),a=r(n(1098));function o(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return(0,a.default)(e,t,n)}function s(e){e=e.slice(1);const t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", "),")"):""}function l(e){if(e.type)return e;if("#"===e.charAt(0))return l(s(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error((0,i.default)(9,e));let r,a=e.substring(t+1,e.length-1);if("color"===n){if(a=a.split(" "),r=a.shift(),4===a.length&&"/"===a[3].charAt(0)&&(a[3]=a[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r))throw new Error((0,i.default)(10,r))}else a=a.split(",");return a=a.map((e=>parseFloat(e))),{type:n,values:a,colorSpace:r}}const c=e=>{const t=l(e);return t.values.slice(0,3).map(((e,n)=>-1!==t.type.indexOf("hsl")&&0!==n?"".concat(e,"%"):e)).join(" ")};function u(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(r[1]="".concat(r[1],"%"),r[2]="".concat(r[2],"%")),r=-1!==t.indexOf("color")?"".concat(n," ").concat(r.join(" ")):"".concat(r.join(", ")),"".concat(t,"(").concat(r,")")}function f(e){e=l(e);const{values:t}=e,n=t[0],r=t[1]/100,i=t[2]/100,a=r*Math.min(i,1-i),o=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return i-a*Math.max(Math.min(t-3,9-t,1),-1)};let s="rgb";const c=[Math.round(255*o(0)),Math.round(255*o(8)),Math.round(255*o(4))];return"hsla"===e.type&&(s+="a",c.push(t[3])),u({type:s,values:c})}function d(e){let t="hsl"===(e=l(e)).type||"hsla"===e.type?l(f(e)).values:e.values;return t=t.map((t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function h(e,t){return e=l(e),t=o(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]="/".concat(t):e.values[3]=t,u(e)}function p(e,t){if(e=l(e),t=o(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return u(e)}function m(e,t){if(e=l(e),t=o(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return u(e)}},8052:(e,t,n)=>{"use strict";var r=n(4994);t.Ay=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{themeId:t,defaultTheme:n=m,rootShouldForwardProp:r=p,slotShouldForwardProp:l=p}=e,u=e=>(0,c.default)((0,i.default)({},e,{theme:g((0,i.default)({},e,{defaultTheme:n,themeId:t}))}));return u.__mui_systemSx=!0,function(e){let c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,o.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:f,slot:h,skipVariantsResolver:m,skipSx:x,overridesResolver:w=y(b(h))}=c,_=(0,a.default)(c,d),k=void 0!==m?m:h&&"Root"!==h&&"root"!==h||!1,S=x||!1;let E=p;"Root"===h||"root"===h?E=r:h?E=l:function(e){return"string"===typeof e&&e.charCodeAt(0)>96}(e)&&(E=void 0);const j=(0,o.default)(e,(0,i.default)({shouldForwardProp:E,label:undefined},_)),M=e=>"function"===typeof e&&e.__emotion_real!==e||(0,s.isPlainObject)(e)?r=>v(e,(0,i.default)({},r,{theme:g({theme:r.theme,defaultTheme:n,themeId:t})})):e,C=function(r){let a=M(r);for(var o=arguments.length,s=new Array(o>1?o-1:0),l=1;l{const r=g((0,i.default)({},e,{defaultTheme:n,themeId:t}));if(!r.components||!r.components[f]||!r.components[f].styleOverrides)return null;const a=r.components[f].styleOverrides,o={};return Object.entries(a).forEach((t=>{let[n,a]=t;o[n]=v(a,(0,i.default)({},e,{theme:r}))})),w(e,o)})),f&&!k&&c.push((e=>{var r;const a=g((0,i.default)({},e,{defaultTheme:n,themeId:t}));return v({variants:null==a||null==(r=a.components)||null==(r=r[f])?void 0:r.variants},(0,i.default)({},e,{theme:a}))})),S||c.push(u);const d=c.length-s.length;if(Array.isArray(r)&&d>0){const e=new Array(d).fill("");a=[...r,...e],a.raw=[...r.raw,...e]}const h=j(a,...c);return e.muiName&&(h.muiName=e.muiName),h};return j.withConfig&&(C.withConfig=j.withConfig),C}},t.MC=p;var i=r(n(4634)),a=r(n(4893)),o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=h(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var o=i?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(r,a,o):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}(n(568)),s=n(4534),l=(r(n(578)),r(n(2046)),r(n(4989))),c=r(n(9265));const u=["ownerState"],f=["variants"],d=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function h(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(h=function(e){return e?n:t})(e)}function p(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const m=(0,l.default)(),b=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function g(e){let{defaultTheme:t,theme:n,themeId:r}=e;return i=n,0===Object.keys(i).length?t:n[r]||n;var i}function y(e){return e?(t,n)=>n[e]:null}function v(e,t){let{ownerState:n}=t,r=(0,a.default)(t,u);const o="function"===typeof e?e((0,i.default)({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap((e=>v(e,(0,i.default)({ownerState:n},r))));if(o&&"object"===typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=(0,a.default)(o,f);return e.forEach((e=>{let a=!0;"function"===typeof e.props?a=e.props((0,i.default)({ownerState:n},r,n)):Object.keys(e.props).forEach((t=>{(null==n?void 0:n[t])!==e.props[t]&&r[t]!==e.props[t]&&(a=!1)})),a&&(Array.isArray(t)||(t=[t]),t.push("function"===typeof e.style?e.style((0,i.default)({ownerState:n},r,n)):e.style))})),t}return o}},9751:(e,t,n)=>{"use strict";n.d(t,{EU:()=>o,NI:()=>a,vf:()=>s,zu:()=>r});const r={xs:0,sm:600,md:900,lg:1200,xl:1536},i={keys:["xs","sm","md","lg","xl"],up:e=>"@media (min-width:".concat(r[e],"px)")};function a(e,t,n){const a=e.theme||{};if(Array.isArray(t)){const e=a.breakpoints||i;return t.reduce(((r,i,a)=>(r[e.up(e.keys[a])]=n(t[a]),r)),{})}if("object"===typeof t){const e=a.breakpoints||i;return Object.keys(t).reduce(((i,a)=>{if(-1!==Object.keys(e.values||r).indexOf(a)){i[e.up(a)]=n(t[a],a)}else{const e=a;i[e]=t[e]}return i}),{})}return n(t)}function o(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};var t;return(null==(t=e.keys)?void 0:t.reduce(((t,n)=>(t[e.up(n)]={},t)),{}))||{}}function s(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}},9703:(e,t,n)=>{"use strict";function r(e,t){const n=this;if(n.vars&&"function"===typeof n.getColorSchemeSelector){return{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}}return n.palette.mode===e?t:{}}n.d(t,{A:()=>r})},4853:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(8587),i=n(8168);const a=["values","unit","step"],o=e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>(0,i.A)({},e,{[t.key]:t.val})),{})};function s(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:s=5}=e,l=(0,r.A)(e,a),c=o(t),u=Object.keys(c);function f(e){const r="number"===typeof t[e]?t[e]:e;return"@media (min-width:".concat(r).concat(n,")")}function d(e){const r="number"===typeof t[e]?t[e]:e;return"@media (max-width:".concat(r-s/100).concat(n,")")}function h(e,r){const i=u.indexOf(r);return"@media (min-width:".concat("number"===typeof t[e]?t[e]:e).concat(n,") and ")+"(max-width:".concat((-1!==i&&"number"===typeof t[u[i]]?t[u[i]]:r)-s/100).concat(n,")")}return(0,i.A)({keys:u,values:c,up:f,down:d,between:h,only:function(e){return u.indexOf(e)+1{"use strict";n.d(t,{A:()=>h});var r=n(8168),i=n(8587),a=n(3216),o=n(4853);const s={borderRadius:4};var l=n(8604);var c=n(8812),u=n(7758),f=n(9703);const d=["breakpoints","palette","spacing","shape"];const h=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{breakpoints:t={},palette:n={},spacing:h,shape:p={}}=e,m=(0,i.A)(e,d),b=(0,o.A)(t),g=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(e.mui)return e;const t=(0,l.LX)({spacing:e}),n=function(){for(var e=arguments.length,n=new Array(e),r=0;r{const n=t(e);return"number"===typeof n?"".concat(n,"px"):n})).join(" ")};return n.mui=!0,n}(h);let y=(0,a.A)({breakpoints:b,direction:"ltr",components:{},palette:(0,r.A)({mode:"light"},n),spacing:g,shape:(0,r.A)({},s,p)},m);y.applyStyles=f.A;for(var v=arguments.length,x=new Array(v>1?v-1:0),w=1;w(0,a.A)(e,t)),y),y.unstable_sxConfig=(0,r.A)({},u.A,null==m?void 0:m.unstable_sxConfig),y.unstable_sx=function(e){return(0,c.A)({sx:e,theme:this})},y}},4989:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r.A,private_createBreakpoints:()=>i.A,unstable_applyStyles:()=>a.A});var r=n(8280),i=n(4853),a=n(9703)},3815:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(3216);const i=function(e,t){return t?(0,r.A)(e,t,{clone:!1}):e}},8604:(e,t,n)=>{"use strict";n.d(t,{LX:()=>p,MA:()=>h,_W:()=>m,Lc:()=>y,Ms:()=>v});var r=n(9751),i=n(7162),a=n(3815);const o={m:"margin",p:"padding"},s={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},l={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},c=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!l[e])return[e];e=l[e]}const[t,n]=e.split(""),r=o[t],i=s[n]||"";return Array.isArray(i)?i.map((e=>r+e)):[r+i]})),u=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],f=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],d=[...u,...f];function h(e,t,n,r){var a;const o=null!=(a=(0,i.Yn)(e,t,!1))?a:n;return"number"===typeof o?e=>"string"===typeof e?e:o*e:Array.isArray(o)?e=>"string"===typeof e?e:o[e]:"function"===typeof o?o:()=>{}}function p(e){return h(e,"spacing",8)}function m(e,t){if("string"===typeof t||null==t)return t;const n=e(Math.abs(t));return t>=0?n:"number"===typeof n?-n:"-".concat(n)}function b(e,t,n,i){if(-1===t.indexOf(n))return null;const a=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=m(t,n),e)),{})}(c(n),i),o=e[n];return(0,r.NI)(e,o,a)}function g(e,t){const n=p(e.theme);return Object.keys(e).map((r=>b(e,t,r,n))).reduce(a.A,{})}function y(e){return g(e,u)}function v(e){return g(e,f)}function x(e){return g(e,d)}y.propTypes={},y.filterProps=u,v.propTypes={},v.filterProps=f,x.propTypes={},x.filterProps=d},7162:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>s,BO:()=>o,Yn:()=>a});var r=n(410),i=n(9751);function a(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!t||"string"!==typeof t)return null;if(e&&e.vars&&n){const n="vars.".concat(t).split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=n)return n}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function o(e,t,n){let r,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n;return r="function"===typeof e?e(n):Array.isArray(e)?e[n]||i:a(e,n)||i,t&&(r=t(r,i,e)),r}const s=function(e){const{prop:t,cssProperty:n=e.prop,themeKey:s,transform:l}=e,c=e=>{if(null==e[t])return null;const c=e[t],u=a(e.theme,s)||{};return(0,i.NI)(e,c,(e=>{let i=o(u,l,e);return e===i&&"string"===typeof e&&(i=o(u,l,"".concat(t).concat("default"===e?"":(0,r.A)(e)),e)),!1===n?i:{[n]:i}}))};return c.propTypes={},c.filterProps=[t],c}},7758:(e,t,n)=>{"use strict";n.d(t,{A:()=>N});var r=n(8604),i=n(7162),a=n(3815);const o=function(){for(var e=arguments.length,t=new Array(e),n=0;n(t.filterProps.forEach((n=>{e[n]=t})),e)),{}),i=e=>Object.keys(e).reduce(((t,n)=>r[n]?(0,a.A)(t,r[n](e)):t),{});return i.propTypes={},i.filterProps=t.reduce(((e,t)=>e.concat(t.filterProps)),[]),i};var s=n(9751);function l(e){return"number"!==typeof e?e:"".concat(e,"px solid")}function c(e,t){return(0,i.Ay)({prop:e,themeKey:"borders",transform:t})}const u=c("border",l),f=c("borderTop",l),d=c("borderRight",l),h=c("borderBottom",l),p=c("borderLeft",l),m=c("borderColor"),b=c("borderTopColor"),g=c("borderRightColor"),y=c("borderBottomColor"),v=c("borderLeftColor"),x=c("outline",l),w=c("outlineColor"),_=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=(0,r.MA)(e.theme,"shape.borderRadius",4,"borderRadius"),n=e=>({borderRadius:(0,r._W)(t,e)});return(0,s.NI)(e,e.borderRadius,n)}return null};_.propTypes={},_.filterProps=["borderRadius"];o(u,f,d,h,p,m,b,g,y,v,_,x,w);const k=e=>{if(void 0!==e.gap&&null!==e.gap){const t=(0,r.MA)(e.theme,"spacing",8,"gap"),n=e=>({gap:(0,r._W)(t,e)});return(0,s.NI)(e,e.gap,n)}return null};k.propTypes={},k.filterProps=["gap"];const S=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=(0,r.MA)(e.theme,"spacing",8,"columnGap"),n=e=>({columnGap:(0,r._W)(t,e)});return(0,s.NI)(e,e.columnGap,n)}return null};S.propTypes={},S.filterProps=["columnGap"];const E=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=(0,r.MA)(e.theme,"spacing",8,"rowGap"),n=e=>({rowGap:(0,r._W)(t,e)});return(0,s.NI)(e,e.rowGap,n)}return null};E.propTypes={},E.filterProps=["rowGap"];o(k,S,E,(0,i.Ay)({prop:"gridColumn"}),(0,i.Ay)({prop:"gridRow"}),(0,i.Ay)({prop:"gridAutoFlow"}),(0,i.Ay)({prop:"gridAutoColumns"}),(0,i.Ay)({prop:"gridAutoRows"}),(0,i.Ay)({prop:"gridTemplateColumns"}),(0,i.Ay)({prop:"gridTemplateRows"}),(0,i.Ay)({prop:"gridTemplateAreas"}),(0,i.Ay)({prop:"gridArea"}));function j(e,t){return"grey"===t?t:e}o((0,i.Ay)({prop:"color",themeKey:"palette",transform:j}),(0,i.Ay)({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:j}),(0,i.Ay)({prop:"backgroundColor",themeKey:"palette",transform:j}));function M(e){return e<=1&&0!==e?"".concat(100*e,"%"):e}const C=(0,i.Ay)({prop:"width",transform:M}),T=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,r;const i=(null==(n=e.theme)||null==(n=n.breakpoints)||null==(n=n.values)?void 0:n[t])||s.zu[t];return i?"px"!==(null==(r=e.theme)||null==(r=r.breakpoints)?void 0:r.unit)?{maxWidth:"".concat(i).concat(e.theme.breakpoints.unit)}:{maxWidth:i}:{maxWidth:M(t)}};return(0,s.NI)(e,e.maxWidth,t)}return null};T.filterProps=["maxWidth"];const O=(0,i.Ay)({prop:"minWidth",transform:M}),P=(0,i.Ay)({prop:"height",transform:M}),A=(0,i.Ay)({prop:"maxHeight",transform:M}),R=(0,i.Ay)({prop:"minHeight",transform:M}),N=((0,i.Ay)({prop:"size",cssProperty:"width",transform:M}),(0,i.Ay)({prop:"size",cssProperty:"height",transform:M}),o(C,T,O,P,A,R,(0,i.Ay)({prop:"boxSizing"})),{border:{themeKey:"borders",transform:l},borderTop:{themeKey:"borders",transform:l},borderRight:{themeKey:"borders",transform:l},borderBottom:{themeKey:"borders",transform:l},borderLeft:{themeKey:"borders",transform:l},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:l},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:_},color:{themeKey:"palette",transform:j},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:j},backgroundColor:{themeKey:"palette",transform:j},p:{style:r.Ms},pt:{style:r.Ms},pr:{style:r.Ms},pb:{style:r.Ms},pl:{style:r.Ms},px:{style:r.Ms},py:{style:r.Ms},padding:{style:r.Ms},paddingTop:{style:r.Ms},paddingRight:{style:r.Ms},paddingBottom:{style:r.Ms},paddingLeft:{style:r.Ms},paddingX:{style:r.Ms},paddingY:{style:r.Ms},paddingInline:{style:r.Ms},paddingInlineStart:{style:r.Ms},paddingInlineEnd:{style:r.Ms},paddingBlock:{style:r.Ms},paddingBlockStart:{style:r.Ms},paddingBlockEnd:{style:r.Ms},m:{style:r.Lc},mt:{style:r.Lc},mr:{style:r.Lc},mb:{style:r.Lc},ml:{style:r.Lc},mx:{style:r.Lc},my:{style:r.Lc},margin:{style:r.Lc},marginTop:{style:r.Lc},marginRight:{style:r.Lc},marginBottom:{style:r.Lc},marginLeft:{style:r.Lc},marginX:{style:r.Lc},marginY:{style:r.Lc},marginInline:{style:r.Lc},marginInlineStart:{style:r.Lc},marginInlineEnd:{style:r.Lc},marginBlock:{style:r.Lc},marginBlockStart:{style:r.Lc},marginBlockEnd:{style:r.Lc},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:k},rowGap:{style:E},columnGap:{style:S},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:M},maxWidth:{style:T},minWidth:{transform:M},height:{transform:M},maxHeight:{transform:M},minHeight:{transform:M},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}})},9265:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r.A,extendSxProp:()=>u,unstable_createStyleFunctionSx:()=>r.k,unstable_defaultSxConfig:()=>s.A});var r=n(8812),i=n(8168),a=n(8587),o=n(3216),s=n(7758);const l=["sx"],c=e=>{var t,n;const r={systemProps:{},otherProps:{}},i=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:s.A;return Object.keys(e).forEach((t=>{i[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]})),r};function u(e){const{sx:t}=e,n=(0,a.A)(e,l),{systemProps:r,otherProps:s}=c(n);let u;return u=Array.isArray(t)?[r,...t]:"function"===typeof t?function(){const e=t(...arguments);return(0,o.Q)(e)?(0,i.A)({},r,e):r}:(0,i.A)({},r,t),(0,i.A)({},s,{sx:u})}},8812:(e,t,n)=>{"use strict";n.d(t,{A:()=>u,k:()=>l});var r=n(410),i=n(3815),a=n(7162),o=n(9751),s=n(7758);function l(){function e(e,t,n,i){const s={[e]:t,theme:n},l=i[e];if(!l)return{[e]:t};const{cssProperty:c=e,themeKey:u,transform:f,style:d}=l;if(null==t)return null;if("typography"===u&&"inherit"===t)return{[e]:t};const h=(0,a.Yn)(n,u)||{};if(d)return d(s);return(0,o.NI)(s,t,(t=>{let n=(0,a.BO)(h,f,t);return t===n&&"string"===typeof t&&(n=(0,a.BO)(h,f,"".concat(e).concat("default"===t?"":(0,r.A)(t)),t)),!1===c?n:{[c]:n}}))}return function t(n){var r;const{sx:a,theme:l={}}=n||{};if(!a)return null;const c=null!=(r=l.unstable_sxConfig)?r:s.A;function u(n){let r=n;if("function"===typeof n)r=n(l);else if("object"!==typeof n)return n;if(!r)return null;const a=(0,o.EU)(l.breakpoints),s=Object.keys(a);let u=a;return Object.keys(r).forEach((n=>{const a=(s=r[n],f=l,"function"===typeof s?s(f):s);var s,f;if(null!==a&&void 0!==a)if("object"===typeof a)if(c[n])u=(0,i.A)(u,e(n,a,l,c));else{const e=(0,o.NI)({theme:l},a,(e=>({[n]:e})));!function(){for(var e=arguments.length,t=new Array(e),n=0;n