diff --git a/assets/index-bd37f2db.js b/assets/index-2672af4a.js similarity index 99% rename from assets/index-bd37f2db.js rename to assets/index-2672af4a.js index 28a1452f..7c15ecbf 100644 --- a/assets/index-bd37f2db.js +++ b/assets/index-2672af4a.js @@ -258,7 +258,7 @@ PERFORMANCE OF THIS SOFTWARE. `)}function Oie(e){return de.join(de.map(e,t=>de.join([Iie(t),Pie(t)],` `)),` -`)}const Aie={name:"shouldBreak",description:"Define in what situations the debugger should break, in addition to the conditions defined in the standard options.",params:[{name:"step",type:"number"},{name:"event",type:"any"},{name:"events",type:"any"}],defaultReturnValue:!1,returnType:"boolean"},Nie={name:"shouldRender",description:"Define which objects the renderer should display.",params:[{name:"step",type:"number"},{name:"event",type:"any"},{name:"events",type:"any"}],defaultReturnValue:!0,returnType:"boolean"},YB={shouldRender:Nie,shouldBreak:Aie},[ci,kie]=vp({code:Oie(de.values(YB))}),[Ug,Mie]=vp([],{reduce:Yre}),[eI,Lie]=vp({algorithms:[],maps:[],formats:[]});function KB(){const e=ui();return $J(e.breakpoints.down("sm"))}var g_={},y_={},Fie={get exports(){return y_},set exports(e){y_=e}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(Fie);var Gu={},Bie={get exports(){return Gu},set exports(e){Gu=e}};(function(e){function t(n){return e.exports=t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(Bie);var __={},Uie={get exports(){return __},set exports(e){__=e}},UN;function Die(){return UN||(UN=1,function(e){function t(n,r){if(!(n instanceof r))throw new TypeError("Cannot call a class as a function")}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Uie)),__}var b_={},$ie={get exports(){return b_},set exports(e){b_=e}},x_={},zie={get exports(){return x_},set exports(e){x_=e}},w_={},Hie={get exports(){return w_},set exports(e){w_=e}},DN;function Gie(){return DN||(DN=1,function(e){var t=Gu.default;function n(r,i){if(t(r)!=="object"||r===null)return r;var o=r[Symbol.toPrimitive];if(o!==void 0){var s=o.call(r,i||"default");if(t(s)!=="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(i==="string"?String:Number)(r)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(Hie)),w_}var $N;function QB(){return $N||($N=1,function(e){var t=Gu.default,n=Gie();function r(i){var o=n(i,"string");return t(o)==="symbol"?o:String(o)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(zie)),x_}var zN;function Wie(){return zN||(zN=1,function(e){var t=QB();function n(i,o){for(var s=0;s"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var S=function(T){(0,a.default)(R,T);var C=_(R);function R(){var N;(0,i.default)(this,R);for(var k=arguments.length,M=new Array(k),F=0;F"u"?"undefined":(0,r.default)(document))==="object"&&D&&(D!==k.popupId||this.state.anchorEl!==M.anchorEl)){var j=document.getElementById(D);j&&j.focus()}}},{key:"render",value:function(){var k=this.props,M=k.children,F=k.popupId,D=k.variant,H=k.parentPopupState,j=k.disableAutoFocus,q=(0,g.createPopupState)({state:this.state,setState:this._setStateIfMounted,popupId:F,variant:D,parentPopupState:H,disableAutoFocus:j}),Q=M(q);return Q??null}}]),R}(v.Component);e.default=S,(0,f.default)(S,"propTypes",{children:m.default.func.isRequired,popupId:m.default.string,variant:m.default.oneOf(["popover","popper"]).isRequired,parentPopupState:m.default.object,disableAutoFocus:m.default.bool})})(g_);const eU=rb(g_),noe=e=>e?48:36,roe=8;function ioe({trigger:e,items:t,value:n,onChange:r,placeholder:i="Select Option"}){const o=KB(),s=de.max([de.findIndex(t,{value:n}),0])??0;return L(eU,{variant:"popover",children:a=>Oe(an,{children:[L(Bg,{title:i,children:L("span",{children:e==null?void 0:e(g_.bindTrigger(a))})}),L(KR,{...g_.bindMenu(a),anchorOrigin:{horizontal:"center",vertical:-noe(o)*s-roe},transformOrigin:{vertical:"top",horizontal:"center"},children:de.map(t,({value:l,label:c,disabled:f})=>L(QR,{disabled:f,value:l,selected:l===n,onClick:()=>{a.close(),r==null||r(l)},children:c},l))})]})})}function w1(e){const{placeholder:t,value:n,items:r=[],onChange:i}=e;return L(ZR,{sx:{minWidth:120},select:!0,label:t,value:n,variant:"filled",...e,onChange:o=>i==null?void 0:i(o.target.value),children:de.map(r,o=>L(QR,{value:o.value,children:o.label},o.value))})}function YN({label:e,value:t,onChange:n,items:r,icon:i}){const o=de.find(r,{id:t});return L(ioe,{placeholder:de.startCase(e),trigger:s=>L(hp,{...s,disabled:!(r!=null&&r.length),startIcon:i,children:(o==null?void 0:o.name)??e}),items:de.map(r,({id:s,name:a,description:l,hidden:c})=>({value:s,label:Oe(an,{children:[L(Fn,{children:a}),L(Po,{}),L(Fn,{variant:"body2",color:"textSecondary",children:l})]}),disabled:c})),value:o==null?void 0:o.id,onChange:n})}class tU extends Error{}class ooe extends tU{}class soe extends tU{}const aoe=(e,t=",")=>e.join(t),loe={accept:"*",multiple:!1,strict:!1},nU=e=>{const{accept:t,multiple:n,strict:r}={...loe,...e},i=foe({multiple:n,accept:Array.isArray(t)?aoe(t):t});return new Promise(o=>{i.onchange=()=>{o(uoe(i.files,n,r)),i.remove()},i.click()})},uoe=(e,t,n)=>new Promise((r,i)=>{if(!e)return i(new ooe);const o=coe(e,t,n);if(!o)return i(new soe);r(o)}),coe=(e,t,n)=>!t&&n?e.length===1?e[0]:null:e.length?e:null,foe=({accept:e,multiple:t})=>{const n=document.createElement("input");return n.type="file",n.multiple=t,n.accept=e,n};function vm(e){return e.split(".").pop()}function rU(e){return e.split(".").shift()}const KN="internal/custom",jT="json",VT=e=>({name:(e==null?void 0:e.id)===KN?`Imported Map - ${e==null?void 0:e.name}`:"Import Map",description:"Internal",id:KN}),XT=e=>({name:(e==null?void 0:e.type)===jT?`Imported Trace - ${e==null?void 0:e.name}`:"Import Trace",description:"Internal",id:jT}),QN="json";async function hoe(){var t;const e=await nU({accept:[`.${QN}`],strict:!0});if(e)if(vm(e.name)===QN){const n=await e.text();return{...XT(),format:(t=JSON.parse(n))==null?void 0:t.format,content:n,name:de.startCase(rU(e.name)),type:jT}}else throw new Error(`The format (${vm(e.name)}) is unsupported.`)}async function doe(e){const t=await nU({accept:e.map(({id:n})=>`.${n}`),strict:!0});if(t){if(de.find(e,{id:vm(t.name)}))return{...VT(),format:vm(t.name),content:await t.text(),name:de.startCase(rU(t.name))};throw new Error(`The format (${vm(t.name)}) is unsupported.`)}}const ZN={start:void 0,end:void 0};function poe(){const e=gp(),[t]=Ug(),[{algorithms:n,maps:r,formats:i}]=eI(),[{algorithm:o,map:s,parameters:a},l]=ci();return Oe(an,{children:[L(YN,{icon:L(pie,{}),label:"map",value:s==null?void 0:s.id,items:[XT(a),VT(s),...r.map(c=>{var f;return{...c,description:(f=de.find(t,{url:c.source}))==null?void 0:f.name}})],onChange:async c=>{switch(c){case VT().id:try{const f=await doe(i);f&&(l({...ZN,map:f,algorithm:o??"identity",parameters:{}}),e("Solution was cleared because the map changed."))}catch(f){e(`${f}`)}break;case XT().id:try{const f=await hoe();f&&l({parameters:f,algorithm:"identity",start:0,end:0,map:{format:f.format,content:(s==null?void 0:s.format)===f.format?s==null?void 0:s.content:" ",id:"internal/upload"}})}catch(f){e(`${f}`)}break;default:l({...ZN,map:de.find(r,{id:c})}),e("Solution was cleared because the map changed.");break}}}),L(Po,{}),L(YN,{icon:L(aie,{}),label:"algorithm",value:o,items:n.map(c=>{var f;return{...c,description:(f=de.find(t,{url:c.source}))==null?void 0:f.name}}),onChange:async c=>l({algorithm:c,parameters:{}})})]})}function Ed({label:e,icon:t,...n}){return L(Bg,{title:de.startCase(e),children:L("span",{children:L(Hm,{...n,children:t})})},e)}const[Ri,voe]=vp({});function iU(){var l;const[{specimen:e}]=Ri(),[{playback:t,step:n=0},r]=ci(),i=!!e,o=t==="playing",[s,a]=[0,(((l=e==null?void 0:e.eventList)==null?void 0:l.length)??1)-1];return A.useMemo(()=>{const c={start:s,end:a,step:n,canPlay:i&&!o&&n0},f=m=>de.clamp(n+m,s,a);return{playing:t==="playing",...c,...{play:()=>r({playback:"playing",step:f(1)}),pause:(m=0)=>r({playback:"paused",step:f(m)}),stop:()=>r({step:s,playback:"paused"}),stepForward:()=>r({step:f(1)}),stepBackward:()=>r({step:f(-1)}),tick:(m=1)=>r({playback:"playing",step:f(m)})}}},[a,t,o,i,r,s,n])}function moe(){const{playing:e,canPause:t,canPlay:n,canStepBackward:r,canStepForward:i,canStop:o,pause:s,play:a,stepBackward:l,stepForward:c,stop:f}=iU();return Oe(an,{children:[L(Ed,{label:"step-backward",icon:L(xie,{}),onClick:l,disabled:!r}),L(Ed,{...e?{label:"pause",icon:L(vie,{}),onClick:()=>s(),disabled:!t}:{label:"play",icon:L(gie,{}),onClick:()=>a(),disabled:!n,color:"primary"}}),L(Ed,{label:"step-forward",icon:L(bie,{}),onClick:c,disabled:!i}),L(Ed,{label:"stop",icon:L(Sie,{}),onClick:f,disabled:!o})]})}var P_={},goe={get exports(){return P_},set exports(e){P_=e}};(function(e,t){(function(n,r){e.exports=r()})(typeof window<"u"?window:zn,function(){if(typeof window>"u")return null;var n=typeof window<"u"&&window.Math==Math?window:typeof self<"u"&&self.Math==Math?self:Function("return this")(),r=n.requestAnimationFrame||n.mozRequestAnimationFrame||n.webkitRequestAnimationFrame||function(f){return n.setTimeout(f,20)},i=n.cancelAnimationFrame||n.mozCancelAnimationFrame||n.webkitCancelAnimationFrame||function(f){n.clearTimeout(f)};function o(f,v){var m=Object.prototype.toString.call(f),g=m==="[object Array]"||m==="[object NodeList]"||m==="[object HTMLCollection]"||m==="[object Object]"||typeof jQuery<"u"&&f instanceof jQuery||typeof Elements<"u"&&f instanceof Elements,x=0,w=f.length;if(g)for(;x=j&&(W+=D.value),D.mode==="max"&&q<=j&&(W+=D.value),Q[K]||(Q[K]=""),W&&(" "+Q[K]+" ").indexOf(" "+W+" ")===-1&&(Q[K]+=" "+W));for(var ce in ee)ee.hasOwnProperty(ce)&&(Q[ee[ce]]?this.element.setAttribute(ee[ce],Q[ee[ce]].substr(1)):this.element.removeAttribute(ee[ce]))}}function m(k,M){k.elementQueriesSetupInformation||(k.elementQueriesSetupInformation=new v(k,M)),k.elementQueriesSensor||(k.elementQueriesSensor=new n(k,function(){k.elementQueriesSetupInformation.call()}))}function g(k,M,F,D){if(typeof s[k]>"u"){s[k]=[];var H=a.length;o.innerHTML+=` +`)}const Aie={name:"shouldBreak",description:"Define in what situations the debugger should break, in addition to the conditions defined in the standard options.",params:[{name:"step",type:"number"},{name:"event",type:"any"},{name:"events",type:"any"}],defaultReturnValue:!1,returnType:"boolean"},Nie={name:"shouldRender",description:"Define which objects the renderer should display.",params:[{name:"step",type:"number"},{name:"event",type:"any"},{name:"events",type:"any"}],defaultReturnValue:!0,returnType:"boolean"},YB={shouldRender:Nie,shouldBreak:Aie},[ci,kie]=vp({code:Oie(de.values(YB))}),[Ug,Mie]=vp([],{reduce:Yre}),[eI,Lie]=vp({algorithms:[],maps:[],formats:[]});function KB(){const e=ui();return $J(e.breakpoints.down("sm"))}var g_={},y_={},Fie={get exports(){return y_},set exports(e){y_=e}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(Fie);var Gu={},Bie={get exports(){return Gu},set exports(e){Gu=e}};(function(e){function t(n){return e.exports=t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(Bie);var __={},Uie={get exports(){return __},set exports(e){__=e}},UN;function Die(){return UN||(UN=1,function(e){function t(n,r){if(!(n instanceof r))throw new TypeError("Cannot call a class as a function")}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Uie)),__}var b_={},$ie={get exports(){return b_},set exports(e){b_=e}},x_={},zie={get exports(){return x_},set exports(e){x_=e}},w_={},Hie={get exports(){return w_},set exports(e){w_=e}},DN;function Gie(){return DN||(DN=1,function(e){var t=Gu.default;function n(r,i){if(t(r)!=="object"||r===null)return r;var o=r[Symbol.toPrimitive];if(o!==void 0){var s=o.call(r,i||"default");if(t(s)!=="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(i==="string"?String:Number)(r)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(Hie)),w_}var $N;function QB(){return $N||($N=1,function(e){var t=Gu.default,n=Gie();function r(i){var o=n(i,"string");return t(o)==="symbol"?o:String(o)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(zie)),x_}var zN;function Wie(){return zN||(zN=1,function(e){var t=QB();function n(i,o){for(var s=0;s"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var S=function(T){(0,a.default)(R,T);var C=_(R);function R(){var N;(0,i.default)(this,R);for(var k=arguments.length,M=new Array(k),F=0;F"u"?"undefined":(0,r.default)(document))==="object"&&D&&(D!==k.popupId||this.state.anchorEl!==M.anchorEl)){var j=document.getElementById(D);j&&j.focus()}}},{key:"render",value:function(){var k=this.props,M=k.children,F=k.popupId,D=k.variant,H=k.parentPopupState,j=k.disableAutoFocus,q=(0,g.createPopupState)({state:this.state,setState:this._setStateIfMounted,popupId:F,variant:D,parentPopupState:H,disableAutoFocus:j}),Q=M(q);return Q??null}}]),R}(v.Component);e.default=S,(0,f.default)(S,"propTypes",{children:m.default.func.isRequired,popupId:m.default.string,variant:m.default.oneOf(["popover","popper"]).isRequired,parentPopupState:m.default.object,disableAutoFocus:m.default.bool})})(g_);const eU=rb(g_),noe=e=>e?48:36,roe=8;function ioe({trigger:e,items:t,value:n,onChange:r,placeholder:i="Select Option"}){const o=KB(),s=de.max([de.findIndex(t,{value:n}),0])??0;return L(eU,{variant:"popover",children:a=>Oe(an,{children:[L(Bg,{title:i,children:L("span",{children:e==null?void 0:e(g_.bindTrigger(a))})}),L(KR,{...g_.bindMenu(a),anchorOrigin:{horizontal:"center",vertical:-noe(o)*s-roe},transformOrigin:{vertical:"top",horizontal:"center"},children:de.map(t,({value:l,label:c,disabled:f})=>L(QR,{disabled:f,value:l,selected:l===n,onClick:()=>{a.close(),r==null||r(l)},children:c},l))})]})})}function w1(e){const{placeholder:t,value:n,items:r=[],onChange:i}=e;return L(ZR,{sx:{minWidth:120},select:!0,label:t,value:n,variant:"filled",...e,onChange:o=>i==null?void 0:i(o.target.value),children:de.map(r,o=>L(QR,{value:o.value,children:o.label},o.value))})}function YN({label:e,value:t,onChange:n,items:r,icon:i}){const o=de.find(r,{id:t});return L(ioe,{placeholder:de.startCase(e),trigger:s=>L(hp,{...s,disabled:!(r!=null&&r.length),startIcon:i,children:(o==null?void 0:o.name)??e}),items:de.map(r,({id:s,name:a,description:l,hidden:c})=>({value:s,label:Oe(an,{children:[L(Fn,{children:a}),L(Po,{}),L(Fn,{variant:"body2",color:"textSecondary",children:l})]}),disabled:c})),value:o==null?void 0:o.id,onChange:n})}class tU extends Error{}class ooe extends tU{}class soe extends tU{}const aoe=(e,t=",")=>e.join(t),loe={accept:"*",multiple:!1,strict:!1},nU=e=>{const{accept:t,multiple:n,strict:r}={...loe,...e},i=foe({multiple:n,accept:Array.isArray(t)?aoe(t):t});return new Promise(o=>{i.onchange=()=>{o(uoe(i.files,n,r)),i.remove()},i.click()})},uoe=(e,t,n)=>new Promise((r,i)=>{if(!e)return i(new ooe);const o=coe(e,t,n);if(!o)return i(new soe);r(o)}),coe=(e,t,n)=>!t&&n?e.length===1?e[0]:null:e.length?e:null,foe=({accept:e,multiple:t})=>{const n=document.createElement("input");return n.type="file",n.multiple=t,n.accept=e,n};function vm(e){return e.split(".").pop()}function rU(e){return e.split(".").shift()}const KN="internal/custom",jT="json",VT=e=>({name:(e==null?void 0:e.id)===KN?`Imported Map - ${e==null?void 0:e.name}`:"Import Map",description:"Internal",id:KN}),XT=e=>({name:(e==null?void 0:e.type)===jT?`Imported Trace - ${e==null?void 0:e.name}`:"Import Trace",description:"Internal",id:jT}),QN="json";async function hoe(){var t;const e=await nU({accept:[`.${QN}`],strict:!0});if(e)if(vm(e.name)===QN){const n=await e.text();return{...XT(),format:(t=JSON.parse(n))==null?void 0:t.format,content:n,name:de.startCase(rU(e.name)),type:jT}}else throw new Error(`The format (${vm(e.name)}) is unsupported.`)}async function doe(e){const t=await nU({accept:e.map(({id:n})=>`.${n}`),strict:!0});if(t){if(de.find(e,{id:vm(t.name)}))return{...VT(),format:vm(t.name),content:await t.text(),name:de.startCase(rU(t.name))};throw new Error(`The format (${vm(t.name)}) is unsupported.`)}}const ZN={start:void 0,end:void 0};function poe(){const e=gp(),[t]=Ug(),[{algorithms:n,maps:r,formats:i}]=eI(),[{algorithm:o,map:s,parameters:a},l]=ci();return Oe(an,{children:[L(YN,{icon:L(pie,{}),label:"map",value:s==null?void 0:s.id,items:[XT(a),VT(s),...r.map(c=>{var f;return{...c,description:(f=de.find(t,{url:c.source}))==null?void 0:f.name}})],onChange:async c=>{switch(c){case VT().id:try{const f=await doe(i);f&&(l({...ZN,map:f,algorithm:o??"identity",parameters:{}}),e("Solution was cleared because the map changed."))}catch(f){e(`${f}`)}break;case XT().id:try{const f=await hoe();f&&l({parameters:f,algorithm:"identity",start:0,end:0,map:{format:f.format,content:(s==null?void 0:s.format)===f.format?s==null?void 0:s.content:" ",id:"internal/upload"}})}catch(f){e(`${f}`)}break;default:l({...ZN,map:de.find(r,{id:c}),parameters:{}}),e("Solution was cleared because the map changed.");break}}}),L(Po,{}),L(YN,{icon:L(aie,{}),label:"algorithm",value:o,items:n.map(c=>{var f;return{...c,description:(f=de.find(t,{url:c.source}))==null?void 0:f.name}}),onChange:async c=>l({algorithm:c,parameters:{}})})]})}function Ed({label:e,icon:t,...n}){return L(Bg,{title:de.startCase(e),children:L("span",{children:L(Hm,{...n,children:t})})},e)}const[Ri,voe]=vp({});function iU(){var l;const[{specimen:e}]=Ri(),[{playback:t,step:n=0},r]=ci(),i=!!e,o=t==="playing",[s,a]=[0,(((l=e==null?void 0:e.eventList)==null?void 0:l.length)??1)-1];return A.useMemo(()=>{const c={start:s,end:a,step:n,canPlay:i&&!o&&n0},f=m=>de.clamp(n+m,s,a);return{playing:t==="playing",...c,...{play:()=>r({playback:"playing",step:f(1)}),pause:(m=0)=>r({playback:"paused",step:f(m)}),stop:()=>r({step:s,playback:"paused"}),stepForward:()=>r({step:f(1)}),stepBackward:()=>r({step:f(-1)}),tick:(m=1)=>r({playback:"playing",step:f(m)})}}},[a,t,o,i,r,s,n])}function moe(){const{playing:e,canPause:t,canPlay:n,canStepBackward:r,canStepForward:i,canStop:o,pause:s,play:a,stepBackward:l,stepForward:c,stop:f}=iU();return Oe(an,{children:[L(Ed,{label:"step-backward",icon:L(xie,{}),onClick:l,disabled:!r}),L(Ed,{...e?{label:"pause",icon:L(vie,{}),onClick:()=>s(),disabled:!t}:{label:"play",icon:L(gie,{}),onClick:()=>a(),disabled:!n,color:"primary"}}),L(Ed,{label:"step-forward",icon:L(bie,{}),onClick:c,disabled:!i}),L(Ed,{label:"stop",icon:L(Sie,{}),onClick:f,disabled:!o})]})}var P_={},goe={get exports(){return P_},set exports(e){P_=e}};(function(e,t){(function(n,r){e.exports=r()})(typeof window<"u"?window:zn,function(){if(typeof window>"u")return null;var n=typeof window<"u"&&window.Math==Math?window:typeof self<"u"&&self.Math==Math?self:Function("return this")(),r=n.requestAnimationFrame||n.mozRequestAnimationFrame||n.webkitRequestAnimationFrame||function(f){return n.setTimeout(f,20)},i=n.cancelAnimationFrame||n.mozCancelAnimationFrame||n.webkitCancelAnimationFrame||function(f){n.clearTimeout(f)};function o(f,v){var m=Object.prototype.toString.call(f),g=m==="[object Array]"||m==="[object NodeList]"||m==="[object HTMLCollection]"||m==="[object Object]"||typeof jQuery<"u"&&f instanceof jQuery||typeof Elements<"u"&&f instanceof Elements,x=0,w=f.length;if(g)for(;x=j&&(W+=D.value),D.mode==="max"&&q<=j&&(W+=D.value),Q[K]||(Q[K]=""),W&&(" "+Q[K]+" ").indexOf(" "+W+" ")===-1&&(Q[K]+=" "+W));for(var ce in ee)ee.hasOwnProperty(ce)&&(Q[ee[ce]]?this.element.setAttribute(ee[ce],Q[ee[ce]].substr(1)):this.element.removeAttribute(ee[ce]))}}function m(k,M){k.elementQueriesSetupInformation||(k.elementQueriesSetupInformation=new v(k,M)),k.elementQueriesSensor||(k.elementQueriesSensor=new n(k,function(){k.elementQueriesSetupInformation.call()}))}function g(k,M,F,D){if(typeof s[k]>"u"){s[k]=[];var H=a.length;o.innerHTML+=` `+k+" {animation: 0.1s element-queries;}",o.innerHTML+=` `+k+" > .resize-sensor {min-width: "+H+"px;}",a.push(k)}s[k].push({mode:M,property:F,value:D})}function x(k){var M;if(document.querySelectorAll&&(M=k?k.querySelectorAll.bind(k):document.querySelectorAll.bind(document)),!M&&typeof $$<"u"&&(M=$$),!M&&typeof jQuery<"u"&&(M=jQuery),!M)throw"No document.querySelectorAll, jQuery or Mootools's $$ found.";return M}function w(k){var M=x(k);for(var F in s)if(s.hasOwnProperty(F))for(var D=M(F,k),H=0,j=D.length;HF[oe].minWidth&&(J=oe);if(J||(J=H),j!==J)if(q[J])M[j].style.display="none",M[J].style.display="block",j=J;else{var Z=new Image;Z.onload=function(){M[J].src=D[J],M[j].style.display="none",M[J].style.display="block",q[J]=!0,j=J},Z.src=D[J]}else M[J].src=D[J]}k.resizeSensorInstance=new n(k,ce),ce()}function E(){for(var k=x(),M=k("[data-responsive-image],[responsive-image]"),F=0,D=M.length;F img, [data-responsive-image] {overflow: hidden; padding: 0; } [responsive-image] > img, [data-responsive-image] > img {width: 100%;}",o.innerHTML+=` @keyframes element-queries { 0% { visibility: inherit; } }`,document.getElementsByTagName("head")[0].appendChild(o),N=!0);for(var M=0,F=document.styleSheets.length;M{if(a){const f=()=>{{const v=a.scrollTop<=e;v!==o&&s(v)}{const v=a.scrollTop<=1;v!==r&&i(v)}c.current-a.scrollTop&&(Math.abs(c.current-a.scrollTop)>2&&c.current>=0&&n(c.current>a.scrollTop),c.current=a.scrollTop)};return a.addEventListener("scroll",f,{passive:!0}),()=>{a.removeEventListener("scroll",f)}}},[a,o,r,c,e]),[t||o,o,r,a,l]}function xoe({onTarget:e,onScroll:t,...n}){const[r,i]=A.useState(null);return A.useEffect(()=>{if(r&&t)return r.addEventListener("scroll",t,{passive:!0}),()=>r.removeEventListener("scroll",t)},[r,t]),L("div",{...n,style:{height:"100%",width:"100%",overflow:"hidden scroll",...n.style},ref:o=>{i(o),e==null||e(o)},children:L(oU.Provider,{value:r,children:L("div",{style:{width:"100%"},children:n.children})})})}const oU=A.createContext(null);function woe(){return A.useContext(oU)}function tI({children:e}){return L(Fn,{variant:"h6",children:e})}function Eoe({onClose:e=()=>{},style:t,elevatedStyle:n,children:r,transitionProperties:i=["box-shadow","background","border-bottom"],elevatedChildren:o,simple:s,position:a="sticky"}){const l=woe(),c=ui(),[,,f,,v]=boe();A.useEffect(()=>{v(l)},[l,v]);const m=f?{background:c.palette.background.paper,...!s&&{boxShadow:c.shadows[0]},...t}:{background:c.palette.background.paper,...!s&&{boxShadow:c.shadows[4]},...n};return L(iK,{elevation:0,position:a,style:{color:c.palette.text.primary,transition:c.transitions.create(i),...m},children:Oe(ore,{children:[L(Hm,{style:{marginRight:c.spacing(1)},"aria-label":"open drawer",edge:"start",onClick:()=>e(),children:L(nie,{})}),r&&L("div",{style:{gridColumn:1,gridRow:1,flex:1,overflow:"auto"},children:L(If,{in:!!(!o||f),mountOnEnter:!0,unmountOnExit:!0,children:L(sn,{style:{width:"100%"},children:r})})}),o&&L("div",{style:{gridColumn:1,gridRow:1,flex:1,overflow:"auto"},children:L(If,{in:!!(o&&!f),mountOnEnter:!0,unmountOnExit:!0,children:L(sn,{style:{width:"100%"},children:o})})})]})})}function Soe({children:e,actions:t,width:n=480,height:r,onTarget:i,variant:o="default",scrollable:s=!0,...a}){var R;const[l,c]=A.useState(void 0);A.useEffect(()=>{e&&c(e)},[e]);const f=ui(),v=KB(),[m,g]=A.useState(null),[x,w]=A.useState(null),[_,E]=A.useState(!1),[S,T]=A.useState(0);A.useEffect(()=>{if(m&&x&&!v&&!r){const N=()=>{const M=window.innerHeight-64{window.removeEventListener("resize",N),k.detach()}}},[m,x,v,r]);const C=o==="submodal"&&v;return Oe($Z,{fullScreen:v,...a,style:{...C&&{paddingTop:f.spacing(8)},...a.style},PaperProps:{ref:N=>g(N),style:{...C&&{borderRadius:`${f.shape.borderRadius}px ${f.shape.borderRadius}px 0 0`},background:f.palette.background.default,overflow:"hidden",height:r&&!v?r:_||v?"100%":S||"fit-content",position:"relative",maxWidth:"none",...(R=a.PaperProps)==null?void 0:R.style},...a.PaperProps},children:[L(xoe,{style:{height:"100%",width:v?void 0:n,maxWidth:"100%",overflow:s?void 0:"hidden"},onTarget:i,children:L("div",{ref:N=>w(N),style:{width:"100%",height:"100%"},children:l})}),t]})}function nI({options:e,appBar:t,trigger:n=()=>L(an,{}),children:r}){return L(eU,{variant:"popover",children:({open:i,close:o,isOpen:s})=>Oe(an,{children:[A.cloneElement(n(i)),Oe(Soe,{open:s,onClose:o,...e,children:[L(Eoe,{onClose:o,...t}),r??(e==null?void 0:e.children)]})]})})}const sU=A.createContext(null);function Toe(){const[e,t]=A.useState(null);return A.useEffect(()=>{t(`mui-p-${Math.round(Math.random()*1e5)}`)},[]),e}function rI(e){const{children:t,value:n}=e,r=Toe(),i=A.useMemo(()=>({idPrefix:r,value:n}),[r,n]);return L(sU.Provider,{value:i,children:t})}function aU(){return A.useContext(sU)}function lU(e,t){const{idPrefix:n}=e;return n===null?null:`${e.idPrefix}-P-${t}`}function uU(e,t){const{idPrefix:n}=e;return n===null?null:`${e.idPrefix}-T-${t}`}const Coe=["children"],Roe=A.forwardRef(function(t,n){const{children:r}=t,i=Fe(t,Coe),o=aU();if(o===null)throw new TypeError("No TabContext provided");const s=A.Children.map(r,a=>A.isValidElement(a)?A.cloneElement(a,{"aria-controls":lU(o,a.props.value),id:uU(o,a.props.value)}):null);return L(Are,$({},i,{ref:n,value:o.value,children:s}))}),cU=Roe;function Ioe(e){return gt("MuiTabPanel",e)}ct("MuiTabPanel",["root"]);const Poe=["children","className","value"],Ooe=e=>{const{classes:t}=e;return mt({root:["root"]},Ioe,t)},Aoe=Ie("div",{name:"MuiTabPanel",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({padding:e.spacing(3)})),Noe=A.forwardRef(function(t,n){const r=yt({props:t,name:"MuiTabPanel"}),{children:i,className:o,value:s}=r,a=Fe(r,Poe),l=$({},r),c=Ooe(l),f=aU();if(f===null)throw new TypeError("No TabContext provided");const v=lU(f,s),m=uU(f,s);return L(Aoe,$({"aria-labelledby":m,className:$e(c.root,o),hidden:s!==f.value,id:v,ref:n,role:"tabpanel",ownerState:l},a,{children:s===f.value&&i}))}),Xm=Noe;var iI={},Kb={},Dg={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.createJSONRPCErrorResponse=e.JSONRPCErrorCode=e.isJSONRPCResponse=e.isJSONRPCRequest=e.isJSONRPCID=e.JSONRPC=void 0,e.JSONRPC="2.0",e.isJSONRPCID=function(t){return typeof t=="string"||typeof t=="number"||t===null},e.isJSONRPCRequest=function(t){return t.jsonrpc===e.JSONRPC&&t.method!==void 0&&t.result===void 0&&t.error===void 0},e.isJSONRPCResponse=function(t){return t.jsonrpc===e.JSONRPC&&t.id!==void 0&&(t.result!==void 0||t.error!==void 0)},function(t){t[t.ParseError=-32700]="ParseError",t[t.InvalidRequest=-32600]="InvalidRequest",t[t.MethodNotFound=-32601]="MethodNotFound",t[t.InvalidParams=-32602]="InvalidParams",t[t.InternalError=-32603]="InternalError"}(e.JSONRPCErrorCode||(e.JSONRPCErrorCode={})),e.createJSONRPCErrorResponse=function(t,n,r,i){var o={code:n,message:r};return i&&(o.data=i),{jsonrpc:e.JSONRPC,id:t,error:o}}})(Dg);var Pf={};Object.defineProperty(Pf,"__esModule",{value:!0});Pf.DefaultErrorCode=Pf.createLogDeprecationWarning=void 0;Pf.createLogDeprecationWarning=function(e){return function(){}};Pf.DefaultErrorCode=0;Object.defineProperty(Kb,"__esModule",{value:!0});Kb.JSONRPCClient=void 0;var Rv=Dg,E1=Pf,koe=E1.createLogDeprecationWarning(`Using a higher order function on JSONRPCClient send method is deprecated. @@ -1637,4 +1637,4 @@ No matching component was found for: `),[,r="",i="",,...o]=n,[s,a]=[i,r].map(l=>+de.last(l.split(" ")));return{bounds:{width:s,height:a,minX:0,minY:0,maxX:s,maxY:a},nodes:{walls:de.filter(de.flatMap(o,(l,c)=>de.map(l,(f,v)=>f===t?{variables:{x:v,y:c}}:void 0)))},snap:({x:l,y:c},f=1)=>{var g;const[v,m]=[o4(l+f/2),o4(c+f/2)];if(s4(v,0,s)&&s4(m,0,a)&&((g=o[m])==null?void 0:g[v])!==t)return{x:v,y:m}},nodeAt:l=>{const{x:c,y:f}=l;return f*s+c},pointOf:l=>({x:l%s,y:~~(l/s)}),matchNode:kI}});function k_e(e){const[{specimen:t}]=Ri(),[{start:n,end:r,step:i}]=ci(),o=AI({parse:N_e,normalize:I_e}),{map:{nodes:{walls:s}}}=o;return L(OI,{...o,...e,overlay:[L(A_e,{start:n,end:r}),L(R_e,{...o,nodes:t==null?void 0:t.eventList,step:i})],children:L(ep,{nodes:s,options:O_e})})}const{max:M_e,log10:L_e}=Math,F_e=e=>10**~~L_e(e),B_e=["x","y"],U_e=[["cx","cy"],["x1","y1"],["x2","y2"]];function D_e(e,t){const n=[...e.nodes.edges,...t??[]].flatMap(({variables:m})=>U_e.map(([g,x])=>({x:m==null?void 0:m[g],y:m==null?void 0:m[x]}))),[[r,i],[o,s]]=[de.minBy,de.maxBy].map(m=>B_e.map(g=>{var x;return((x=m(n,g))==null?void 0:x[g])??0})),[a,l]=[o-r,s-i],c=20/F_e(M_e(a,l));return{to:({x:m,y:g})=>({x:(m-r)*c,y:(g-i)*c}),from:({x:m,y:g})=>({x:m/c+r,y:g/c+i}),scale:c,width:a,height:l,minX:r,maxX:o,minY:i,maxY:s}}const $_e=Xf(rp[100]),z_e=Xf(rp[500]),H_e=({variables:{cx:e=0,cy:t=0,x1:n=0,y1:r=0,x2:i=0,y2:o=0,...s}={}}={},a)=>{var l,c,f;return{...s,a:(l=a==null?void 0:a.to)==null?void 0:l.call(a,{x:e,y:t}),b:(c=a==null?void 0:a.to)==null?void 0:c.call(a,{x:n,y:r}),c:(f=a==null?void 0:a.to)==null?void 0:f.call(a,{x:i,y:o}),color:$_e,fillAlpha:0}},G_e=({type:e,variables:{cx:t=0,cy:n=0,x1:r=0,y1:i=0,x2:o=0,y2:s=0,...a}={}}={},l)=>{var c,f,v;return{...a,a:(c=l==null?void 0:l.to)==null?void 0:c.call(l,{x:t,y:n}),b:(f=l==null?void 0:l.to)==null?void 0:f.call(l,{x:r,y:i}),c:(v=l==null?void 0:l.to)==null?void 0:v.call(l,{x:o,y:s}),color:so(e),fill:z_e,fillAlpha:.08}},W_e=({type:e,variables:{cx:t=0,cy:n=0,...r}={}}={},i)=>{var o;return{...r,a:(o=i==null?void 0:i.to)==null?void 0:o.call(i,{x:t,y:n}),color:so(e)}},j_e=NI(()=>({bounds:{width:0,height:0,minX:0,maxX:0,minY:0,maxY:0},nodes:{edges:[]},snap:()=>{},nodeAt:()=>{},pointOf:()=>{},matchNode:kI})),V_e=3/oo;function X_e(e){return!de.isUndefined(e)&&!de.isNull(e)}function q_e({nodes:e=[],step:t=0,scale:n}){var a,l;const r=A.useMemo(()=>{const c=de.keyBy(e,"id");return f=>{const v=[];let m=e[f];for(;m;)v.push(m),m=X_e(m.pId)?c[`${m.pId}`]:void 0;return v}},[e]),i=A.useMemo(()=>{const c=r(t);return f=>{var v;f.clear();for(const[m,g]of c.entries()){const{cx:x,cy:w}=(g==null?void 0:g.variables)??{},{x:_=0,y:E=0}=((v=n==null?void 0:n.to)==null?void 0:v.call(n,{x,y:w}))??{};f.lineTo(_,E),m||f.lineStyle(V_e,so("source"))}}},[r,t,n]),{cx:o=0,cy:s=0}=((a=e[t])==null?void 0:a.variables)??{};return Oe(an,{children:[L(Aa.Graphics,{draw:i}),(e==null?void 0:e[t])&&L(qg,{...(l=n==null?void 0:n.to)==null?void 0:l.call(n,{x:o,y:s}),color:so("source")})]})}function Y_e(e){const[{specimen:t}]=Ri(),[{step:n}]=ci(),r=AI({parse:j_e,normalize:D_e});return L(OI,{...r,...e,ShadowProps:{variant:r4,options:H_e},ProgressProps:{variant:r4,options:G_e},overlay:[L(gD,{...r,nodes:t==null?void 0:t.eventList,step:n,options:W_e}),L(q_e,{...r,nodes:t==null?void 0:t.eventList,step:n})]})}const K_e=1/oo;function Q_e(e){return!de.isUndefined(e)&&!de.isNull(e)}function Z_e({nodes:e=[],step:t=0,scale:{to:n}}){var s;const r=A.useMemo(()=>{const a=de.keyBy(e,"id");return l=>{const c=[];let f=e[l];for(;f;)c.push(f),f=Q_e(f.pId)?a[`${f.pId}`]:void 0;return c}},[e]),i=A.useMemo(()=>{const a=r(t);return l=>{l.clear();for(const[c,f]of a.entries()){const{x:v,y:m}=n({x:0,y:0,...f==null?void 0:f.variables});l.lineTo(v,m),c||l.lineStyle(K_e,so("source"))}}},[r,t,n]),o=n({x:0,y:0,...(s=e[t])==null?void 0:s.variables});return Oe(an,{children:[L(Aa.Graphics,{draw:i}),(e==null?void 0:e[t])&&L(qg,{...o,radius:2/oo,color:so("source")})]})}function J_e({start:e,end:t,map:n,scale:r}){return L(an,{children:[{color:so("destination"),node:t},{color:so("source"),node:e}].map(({color:i,node:o},s)=>{var a,l;return o!==void 0&&A.createElement(qg,{...(l=r==null?void 0:r.to)==null?void 0:l.call(r,{x:0,y:0,...(a=n==null?void 0:n.pointOf)==null?void 0:a.call(n,o)}),radius:2/oo,key:s,color:i})})})}const{max:ebe,log10:tbe}=Math,nbe=e=>10**~~tbe(e),rbe=["x","y"];function ibe(e,t){const n=de.map([...e.nodes.verts,...t??[]],"variables"),[[r,i],[o,s]]=[de.minBy,de.maxBy].map(m=>rbe.map(g=>{var x;return((x=m(n,g))==null?void 0:x[g])??0})),[a,l]=[o-r,s-i],c=20/nbe(ebe(a,l));return{to:({x:m,y:g})=>({x:(m-r)*c,y:(g-i)*c}),from:({x:m,y:g})=>({x:m/c+r,y:g/c+i}),scale:c,width:a,height:l,minX:r,maxX:o,minY:i,maxY:s}}const obe=Xf(rp[100]),sbe=Xf(rp[500]),abe=({variables:{x1:e=0,x2:t=0,y1:n=0,y2:r=0,...i}={}}={},o)=>{var s,a;return{...i,a:(s=o==null?void 0:o.to)==null?void 0:s.call(o,{x:e,y:n}),b:(a=o==null?void 0:o.to)==null?void 0:a.call(o,{x:t,y:r}),color:obe}},lbe=({variables:{x:e=0,y:t=0,...n}={}}={},r)=>{var i;return{...n,a:(i=r==null?void 0:r.to)==null?void 0:i.call(r,{x:e,y:t}),radius:2/oo,color:sbe}},ube=({type:e,variables:{x:t=0,y:n=0,...r}={}}={},i)=>{var o;return{...r,a:(o=i==null?void 0:i.to)==null?void 0:o.call(i,{x:t,y:n}),color:so(e),radius:2/oo}},cbe=({variables:{x:e=0,y:t=0,...n}={}}={},r)=>{var i;return{...n,a:(i=r==null?void 0:r.to)==null?void 0:i.call(r,{x:e,y:t}),color:15856113,radius:4/oo}},{sqrt:fbe}=Math,a4=({x:e,y:t},{x:n,y:r})=>fbe((r-t)**2+(n-e)**2),hbe=(e,t)=>{var n;return(n=de.minBy(e,t))==null?void 0:n[t]},dbe=(e,t)=>{var n;return(n=de.maxBy(e,t))==null?void 0:n[t]};function pbe(e){const[[t,n],[r,i]]=[hbe,dbe].map(a=>["x","y"].map(l=>a(e,l)??0)),[o,s]=[r-t,i-n];return{width:o,height:s,minX:t,minY:n,maxX:r,maxY:i}}const vbe=NI((e,{vert:t="v",edge:n="e"})=>{const r=e.split(` `),i=r.filter(s=>s.startsWith(t)).map(s=>{const[,,a,l]=s.split(" ");return{x:+a,y:+l}}),o=r.filter(s=>s.startsWith(n)).map(s=>{const[,a,l]=s.split(" ");return{a:+a,b:+l}});return{bounds:pbe(i),nodes:{verts:i.map(s=>({variables:s})),edges:o.map(({a:s,b:a})=>{const{x:l,y:c}=i[s],{x:f,y:v}=i[a];return{variables:{x1:l,y1:c,x2:f,y2:v}}})},snap:(s,a=1)=>{const l=s,c=de.minBy(i,f=>a4(l,f));if(c&&a4(c,l)<1.5/a)return c},nodeAt:s=>{const a=de.findIndex(i,s);return a!==-1?a:void 0},pointOf:s=>i[s],matchNode:kI}});function mbe(e){const[{specimen:t}]=Ri(),[{start:n,end:r,step:i}]=ci(),o=AI({parse:vbe,normalize:ibe}),{map:{nodes:{edges:s,verts:a}}}=o;return Oe(OI,{...o,...e,ShadowProps:{options:cbe},ProgressProps:{options:ube},overlay:[L(J_e,{start:n,end:r}),L(Z_e,{...o,nodes:t==null?void 0:t.eventList,step:i})],children:[L(ep,{nodes:s,options:abe,variant:mD}),L(ep,{nodes:a,options:lbe,variant:pD})]})}function gbe(e){Ri();const[{parameters:t}]=ci();return A.createElement(_D[t==null?void 0:t.format],e)}const _D={grid:k_e,xy:mbe,mesh:Y_e,json:gbe};function ybe(e=""){return de.get(_D,e,Tue)}function u2({sx:e,children:t,...n}){return L(Lg,{sx:{m:2,p:2,textAlign:"center",...e},...n,children:L(Fn,{color:"textSecondary",children:t})})}function _be({children:e}){const t=JR();return L(Lg,{sx:{m:3,px:1.25,height:56,display:"flex",alignItems:"center",pointerEvents:"all",...t},children:L(Une,{spacing:1.25,direction:"row",children:e})})}var wx=0,oc=1,wp=2,bD=4;function xD(e,t){return function(n){return e(t(n))}}function bbe(e,t){return t(e)}function wD(e,t){return function(n){return e(t,n)}}function l4(e,t){return function(){return e(t)}}function K_(e){return function(t){return t[e]}}function Ex(e,t){return t(e),e}function Zn(){for(var e=arguments.length,t=new Array(e),n=0;n-1&&e.splice(r,1)};case wx:e.slice().forEach(function(r){r(n)});return;default:throw new Error("unrecognized action "+t)}}}function ut(e){var t=e,n=Ct();return function(r,i){switch(r){case oc:var o=i;o(t);break;case wx:t=i;break;case bD:return t}return n(r,i)}}function Ebe(e){var t,n,r=function(){return t&&t()};return function(i,o){switch(i){case oc:return o?n===o?void 0:(r(),n=o,t=vn(e,o),t):(r(),Sx);case wp:r(),n=null;return;default:throw new Error("unrecognized action "+i)}}}function ko(e){return Ex(Ct(),function(t){return vt(e,t)})}function ka(e,t){return Ex(ut(t),function(n){return vt(e,n)})}function Sbe(){for(var e=arguments.length,t=new Array(e),n=0;n1?t-1:0),r=1;r0?e--:t(n)}}}function LI(e){var t,n;return function(r){return function(i){t=i,!n&&(n=setTimeout(function(){n=void 0,r(t)},e))}}}function Tbe(e){var t,n;return function(r){return function(i){t=i,n&&clearTimeout(n),n=setTimeout(function(){r(t)},e)}}}function Vt(){for(var e=arguments.length,t=new Array(e),n=0;n=0)&&(n[i]=e[i]);return n}function Obe(e,t){if(e){if(typeof e=="string")return c4(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c4(e,t)}}function c4(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Abe=["children"];function Nbe(e,t){for(var n={},r={},i=0,o=e.length;i=0||(i[n]=e[n]);return i}function f4(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n"u"||e[Symbol.iterator]==null){if(Array.isArray(e)||(n=function(i,o){if(i){if(typeof i=="string")return f4(i,o);var s=Object.prototype.toString.call(i).slice(8,-1);return s==="Object"&&i.constructor&&(s=i.constructor.name),s==="Map"||s==="Set"?Array.from(i):s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s)?f4(i,o):void 0}}(e))||t&&e&&typeof e.length=="number"){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}return(n=e[Symbol.iterator]()).next.bind(n)}function Z_(e,t){return!(!e||e[0]!==t[0]||e[1]!==t[1])}function TD(e,t){return!(!e||e.startIndex!==t.startIndex||e.endIndex!==t.endIndex)}var $v,ai,cg="up",ao=En(function(){var e=Ct(),t=ut(0),n=Ct(),r=ut(0),i=Ct(),o=ut(0),s=ut(0),a=Ct(),l=Ct(),c=ut(!1);vt(e,r);var f=ut("down");return vt(je(e,Fu(function(v,m){return{direction:m=((i=globalThis.VIRTUOSO_LOG_LEVEL)!=null?i:qf(e))&&console[kbe[r]]("%creact-virtuoso: %c%s %o","color: #0253b3; font-weight: bold","color: black",t,n)}),logLevel:e}},[],{singleton:!0}),Kf=En(function(e){var t=e[0].log,n=ut(!1),r=ko(je(n,Bt(function(i){return i}),Rr()));return vn(n,function(i){i&&qf(t)("props updated",{},ai.DEBUG)}),{propsReady:n,didMount:r}},Zn(Yf),{singleton:!0}),Mbe={atBottom:!1,notAtBottomBecause:"NOT_SHOWING_LAST_ITEM",state:{offsetBottom:0,scrollTop:0,viewportHeight:0,totalHeight:0}},Kg=En(function(e){var t=e[0],n=t.scrollTop,r=t.viewportHeight,i=t.headerHeight,o=t.footerHeight,s=ut(!1),a=ut(!0),l=Ct(),c=Ct(),f=Ct(),v=ko(je(Cbe(je(Kt(n),Q_(1),ug(!0)),je(Kt(n),Q_(1),ug(!1),Tbe(100))),Rr()));vt(je(Kt(n),it(function(g){return g===0}),Rr()),a),vt(a,c);var m=ko(je(Bi(f,Kt(n),Kt(r),Kt(i),Kt(o)),Fu(function(g,x){var w=x[0],_=w.bottom,E=w.offsetBottom,S=x[1],T=x[2],C={viewportHeight:T,scrollTop:S,offsetBottom:E,totalHeight:_+E};return E===0&&S+T-(_+x[3]+x[4])>-4?{atBottom:!0,state:C}:{atBottom:!1,notAtBottomBecause:C.totalHeight>g.state.totalHeight?"SIZE_INCREASED":E!==0?"NOT_SHOWING_LAST_ITEM":Tt&&(s=s.concat(f2(e.l,t,n))),r>=t&&r<=n&&s.push({k:r,v:i}),r<=n&&(s=s.concat(f2(o,t,n))),s}function h2(e){return Bn(e)?[]:[].concat(h2(e.l),[{k:e.k,v:e.v}],h2(e.r))}function ID(e){return Bn(e.r)?[e.k,e.v]:ID(e.r)}function PD(e){return Bn(e.r)?e.l:d2(oi(e,{r:PD(e.r)}))}function oi(e,t){return RD(t.k!==void 0?t.k:e.k,t.v!==void 0?t.v:e.v,t.lvl!==void 0?t.lvl:e.lvl,t.l!==void 0?t.l:e.l,t.r!==void 0?t.r:e.r)}function HS(e){return Bn(e)||e.lvl>e.r.lvl}function d2(e){var t=e.l,n=e.r,r=e.lvl;if(n.lvl>=r-1&&t.lvl>=r-1)return e;if(r>n.lvl+1){if(HS(t))return AD(oi(e,{lvl:r-1}));if(Bn(t)||Bn(t.r))throw new Error("Unexpected empty nodes");return oi(t.r,{l:oi(t,{r:t.r.l}),r:oi(e,{l:t.r.r,lvl:r-1}),lvl:r})}if(HS(e))return p2(oi(e,{lvl:r-1}));if(Bn(n)||Bn(n.l))throw new Error("Unexpected empty nodes");var i=n.l,o=HS(i)?n.lvl-1:n.lvl;return oi(i,{l:oi(e,{r:i.l,lvl:r-1}),r:p2(oi(n,{l:i.r,lvl:o})),lvl:i.lvl+1})}function J_(e,t,n){return Bn(e)?[]:OD(f2(e,Ma(e,t)[0],n),function(r){return{index:r.k,value:r.v}})}function OD(e,t){var n=e.length;if(n===0)return[];for(var r=t(e[0]),i=r.index,o=r.value,s=[],a=1;a0&&(0,t[2])("received item sizes",n,ai.DEBUG);var i=e.sizeTree,o=e.offsetTree,s=i,a=0;if(r.length>0&&Bn(i)&&n.length===2){var l=n[0].size,c=n[1].size;s=r.reduce(function(N,k){return fl(fl(N,k,l),k+1,c)},s)}else{var f=function(N,k){for(var M,F=Bn(N)?0:1/0,D=xf(k);!(M=D()).done;){var H=M.value,j=H.size,q=H.startIndex,Q=H.endIndex;if(F=Math.min(F,q),Bn(N))N=fl(N,0,j);else{var W=J_(N,q-1,Q+1);if(!W.some(Lbe(H))){for(var K,ee=!1,ce=!1,J=xf(W);!(K=J()).done;){var oe=K.value,Z=oe.start,X=oe.end,ne=oe.value;ee?(Q>=Z||j===ne)&&(N=c2(N,Z)):(ce=ne!==j,ee=!0),X>Q&&Q>=Z&&ne!==j&&(N=fl(N,Q+1,ne))}ce&&(N=fl(N,q,j))}}}return[N,F]}(s,n);s=f[0],a=f[1]}if(s===i)return e;var v=0,m=0,g=0,x=0;if(a!==0){x=eb(o,a-1,FI),g=o[x].offset;var w=Ma(s,a-1);v=w[0],m=w[1],o.length&&o[x].size===Ma(s,a)[1]&&(x-=1),o=o.slice(0,x+1)}else o=[];for(var _,E=xf(J_(s,a,1/0));!(_=E()).done;){var S=_.value,T=S.start,C=S.value,R=(T-v)*m+g;o.push({offset:R,size:C,index:T}),v=T,g=R,m=C}return{sizeTree:s,offsetTree:o,groupOffsetTree:r.reduce(function(N,k){return fl(N,k,Tx(k,o))},D1()),lastIndex:v,lastOffset:g,lastSize:m,groupIndices:r}}function Tx(e,t){if(t.length===0)return 0;var n=ND(t,e,FI);return n.size*(e-n.index)+n.offset}function BI(e,t){if(!Cx(t))return e;for(var n=0;t.groupIndices[n]<=e+n;)n++;return e+n}function Cx(e){return!Bn(e.groupOffsetTree)}var Dbe={offsetHeight:"height",offsetWidth:"width"},kl=En(function(e){var t=e[0].log,n=Ct(),r=Ct(),i=Ct(),o=ut(0),s=ut([]),a=ut(void 0),l=ut(void 0),c=ut(function(_,E){return wf(_,Dbe[E])}),f=ut(void 0),v={offsetTree:[],sizeTree:D1(),groupOffsetTree:D1(),lastIndex:0,lastOffset:0,lastSize:0,groupIndices:[]},m=ka(je(n,Vt(s,t),Fu(Ube,v),Rr()),v);vt(je(s,Bt(function(_){return _.length>0}),Vt(m),it(function(_){var E=_[0],S=_[1],T=E.reduce(function(C,R,N){return fl(C,R,Tx(R,S.offsetTree)||N)},D1());return Qn({},S,{groupIndices:E,groupOffsetTree:T})})),m),vt(je(r,Vt(m),Bt(function(_){return _[0]<_[1].lastIndex}),it(function(_){var E=_[1];return[{startIndex:_[0],endIndex:E.lastIndex,size:E.lastSize}]})),n),vt(a,l);var g=ka(je(a,it(function(_){return _===void 0})),!0);vt(je(l,Bt(function(_){return _!==void 0&&Bn(qf(m).sizeTree)}),it(function(_){return[{startIndex:0,endIndex:0,size:_}]})),n);var x=ko(je(n,Vt(m),Fu(function(_,E){var S=E[1];return{changed:S!==_.sizes,sizes:S}},{changed:!1,sizes:v}),it(function(_){return _.changed})));vt(je(o,Fu(function(_,E){return{diff:_.prev-E,prev:E}},{diff:0,prev:0}),it(function(_){return _.diff}),Bt(function(_){return _>0})),i),vn(je(o,Vt(t)),function(_){_[0]<0&&(0,_[1])("`firstItemIndex` prop should not be set to less than zero. If you don't know the total count, just use a very high value",{firstItemIndex:o},ai.ERROR)});var w=ko(i);return vt(je(i,Vt(m),it(function(_){var E=_[0],S=_[1];if(S.groupIndices.length>0)throw new Error("Virtuoso: prepending items does not work with groups");return h2(S.sizeTree).reduce(function(T,C){var R=C.k,N=C.v;return{ranges:[].concat(T.ranges,[{startIndex:T.prevIndex,endIndex:R+E-1,size:T.prevSize}]),prevIndex:R+E,prevSize:N}},{ranges:[],prevIndex:0,prevSize:S.lastSize}).ranges})),n),{data:f,totalCount:r,sizeRanges:n,groupIndices:s,defaultItemSize:l,fixedItemSize:a,unshiftWith:i,beforeUnshiftWith:w,firstItemIndex:o,sizes:m,listRefresh:x,trackItemSizes:g,itemSize:c}},Zn(Yf),{singleton:!0}),$be=typeof document<"u"&&"scrollBehavior"in document.documentElement.style;function kD(e){var t=typeof e=="number"?{index:e}:e;return t.align||(t.align="start"),t.behavior&&$be||(t.behavior="auto"),t.offset||(t.offset=0),t}var Qg=En(function(e){var t=e[0],n=t.sizes,r=t.totalCount,i=t.listRefresh,o=e[1],s=o.scrollingInProgress,a=o.viewportHeight,l=o.scrollTo,c=o.smoothScrollTargetReached,f=o.headerHeight,v=o.footerHeight,m=e[2].log,g=Ct(),x=ut(0),w=null,_=null,E=null;function S(){w&&(w(),w=null),E&&(E(),E=null),_&&(clearTimeout(_),_=null),Yn(s,!1)}return vt(je(g,Vt(n,a,r,x,f,v,m),it(function(T){var C=T[0],R=T[1],N=T[2],k=T[3],M=T[4],F=T[5],D=T[6],H=T[7],j=kD(C),q=j.align,Q=j.behavior,W=j.offset,K=k-1,ee=j.index;ee=BI(ee,R);var ce=Tx(ee=Math.max(0,ee,Math.min(K,ee)),R.offsetTree)+F;q==="end"?(ce=Math.round(ce-N+Ma(R.sizeTree,ee)[1]),ee===K&&(ce+=D)):q==="center"?ce=Math.round(ce-N/2+Ma(R.sizeTree,ee)[1]/2):ce-=M,W&&(ce+=W);var J=function(Z){S(),Z?(H("retrying to scroll to",{location:C},ai.DEBUG),Yn(g,C)):H("list did not change, scroll successful",{},ai.DEBUG)};if(S(),Q==="smooth"){var oe=!1;E=vn(i,function(Z){oe=oe||Z}),w=Lf(c,function(){J(oe)})}else w=Lf(je(i,function(Z){var X=setTimeout(function(){Z(!1)},50);return function(ne){ne&&(Z(!0),clearTimeout(X))}}),J);return _=setTimeout(function(){S()},1200),Yn(s,!0),H("scrolling from index to",{index:ee,top:ce,behavior:Q},ai.DEBUG),{top:ce,behavior:Q}})),l),{scrollToIndex:g,topListHeight:x}},Zn(kl,ao,Yf),{singleton:!0});function h4(e,t,n){return typeof e=="number"?n===cg&&t==="top"||n==="down"&&t==="bottom"?e:0:n===cg?t==="top"?e.main:e.reverse:t==="bottom"?e.main:e.reverse}function d4(e,t){return typeof e=="number"?e:e[t]||0}var UI=En(function(e){var t=e[0],n=t.scrollTop,r=t.viewportHeight,i=t.deviation,o=t.headerHeight,s=Ct(),a=ut(0),l=ut(0),c=ut(0);return{listBoundary:s,overscan:c,topListHeight:a,increaseViewportBy:l,visibleRange:ka(je(Bi(Kt(n),Kt(r),Kt(o),Kt(s,Z_),Kt(c),Kt(a),Kt(i),Kt(l)),it(function(f){var v=f[0],m=f[1],g=f[2],x=f[3],w=x[0],_=x[1],E=f[4],S=f[5],T=f[6],C=f[7],R=v-T,N=Math.max(g-R,0),k="none",M=d4(C,"top"),F=d4(C,"bottom");return w-=T,_+=g,(w+=g)>v+S-M&&(k=cg),(_-=T)0}),Vt(R),Bt(function(W){var K=W[0].items;return K[K.length-1].index===W[1]-1}),it(function(W){return W[1]-1}),Rr())),j=ko(je(Kt(k),Bt(function(W){var K=W.items;return K.length>0&&K[0].index===0}),ug(0),Rr())),q=ko(je(Kt(k),Bt(function(W){return W.items.length>0}),it(function(W){var K=W.items;return{startIndex:K[0].index,endIndex:K[K.length-1].index}}),Rr(TD)));vt(q,m.scrollSeekRangeChanged),vt(je(D,Vt(M,F,R),it(function(W){var K=W[1],ee=W[2],ce=W[3],J=kD(W[0]),oe=J.align,Z=J.behavior,X=J.offset,ne=J.index,ae=v2(K,ee,ne=Math.max(0,ne,Math.min(ce-1,ne)));return oe==="end"?ae=Math.round(ae-K.height+ee.height):oe==="center"&&(ae=Math.round(ae-K.height/2+ee.height/2)),X&&(ae+=X),{top:ae,behavior:Z}})),c);var Q=ka(je(k,it(function(W){return W.offsetBottom+W.bottom})),0);return vt(je(E,it(function(W){return{width:W.visibleWidth,height:W.visibleHeight}})),M),Qn({totalCount:R,viewportDimensions:M,itemDimensions:F,scrollTop:s,overscan:n,scrollBy:l,scrollTo:c,scrollToIndex:D,smoothScrollTargetReached:f,windowViewportRect:E,windowScrollTo:S,useWindowScroll:T,windowScrollTop:C,initialItemCount:N},m,{gridState:k,totalListHeight:Q},v,{startReached:j,endReached:H,rangeChanged:q,propsReady:x})},Zn(UI,ao,Kg,CD,Kf,MD));function g4(e,t,n){var r=t.height;return r===void 0||n.length===0?{top:0,bottom:0}:{top:v2(e,t,n[0].index),bottom:v2(e,t,n[n.length-1].index)+r}}function v2(e,t,n){var r=LD(e.width/t.width);return DI(n/r)*t.height}function FD(e,t){t===void 0&&(t=!0);var n=A.useRef(null),r=function(o){};if(typeof ResizeObserver<"u"){var i=new ResizeObserver(function(o){var s=o[0].target;s.offsetParent!==null&&e(s)});r=function(o){o&&t?(i.observe(o),n.current=o):(n.current&&i.unobserve(n.current),n.current=null)}}return{ref:n,callbackRef:r}}function Ep(e,t){return t===void 0&&(t=!0),FD(e,t).callbackRef}function BD(e){var t=A.useRef(null),n=A.useCallback(function(a){if(a!==null){var l=a.getBoundingClientRect(),c=window.innerHeight-Math.max(0,l.top),f=l.top+window.pageYOffset;t.current={offsetTop:f,visibleHeight:c,visibleWidth:l.width},e(t.current)}},[e]),r=FD(n),i=r.callbackRef,o=r.ref,s=A.useCallback(function(){n(o.current)},[n,o]);return A.useEffect(function(){return window.addEventListener("scroll",s),window.addEventListener("resize",s),function(){window.removeEventListener("scroll",s),window.removeEventListener("resize",s)}},[s]),i}var Wbe=typeof document<"u"?A.useLayoutEffect:A.useEffect;function UD(e,t,n,r){r===void 0&&(r=Sx);var i=A.useRef(null),o=A.useRef(null),s=A.useRef(null),a=A.useCallback(function(l){var c=l.target,f=c===window||c===document?window.pageYOffset||document.documentElement.scrollTop:c.scrollTop;e(Math.max(f,0)),o.current!==null&&(f===o.current||f<=0||f===c.scrollHeight-wf(c,"height"))&&(o.current=null,t(!0),s.current&&(clearTimeout(s.current),s.current=null))},[e,t]);return A.useEffect(function(){var l=i.current;return r(i.current),a({target:l}),l.addEventListener("scroll",a,{passive:!0}),function(){r(null),l.removeEventListener("scroll",a)}},[i,a,n,r]),{scrollerRef:i,scrollByCallback:function(l){o.current===null&&i.current.scrollBy(l)},scrollToCallback:function(l){var c=i.current;if(c){var f,v,m,g=l.behavior==="smooth";if(c===window?(v=Math.max(wf(document.documentElement,"height"),document.documentElement.scrollHeight),f=window.innerHeight,m=document.documentElement.scrollTop):(v=c.scrollHeight,f=wf(c,"height"),m=c.scrollTop),Math.abs(f-v)<1||l.top===m)return e(m),void(g&&t(!0));l.top=Math.max(Math.min(v-f,l.top),0),g?(o.current=l.top,s.current&&clearTimeout(s.current),s.current=setTimeout(function(){s.current=null,o.current=null,t(!0)},1e3)):o.current=null,c.scrollTo(l)}}}}var $I=En(function(e){var t=e[0],n=t.sizes,r=t.listRefresh,i=t.defaultItemSize,o=e[1].scrollTop,s=e[2].scrollToIndex,a=e[3].didMount,l=ut(!0),c=ut(0);return vt(je(a,Vt(c),Bt(function(f){return f[1]!==0}),ug(!1)),l),vn(je(Bi(r,a),Vt(l,n,i),Bt(function(f){var v=f[1],m=f[3];return f[0][1]&&(!Bn(f[2].sizeTree)||m!==void 0)&&!v}),Vt(c)),function(f){var v=f[1];setTimeout(function(){Lf(o,function(){Yn(l,!0)}),Yn(s,v)})}),{scrolledToInitialItem:l,initialTopMostItemIndex:c}},Zn(kl,ao,Qg,Kf),{singleton:!0});function y4(e){return!!e&&(e==="smooth"?"smooth":"auto")}var jbe=En(function(e){var t=e[0],n=t.totalCount,r=t.listRefresh,i=e[1],o=i.isAtBottom,s=i.atBottomState,a=e[2].scrollToIndex,l=e[3].scrolledToInitialItem,c=e[4],f=c.propsReady,v=c.didMount,m=e[5].log,g=ut(!1),x=null;function w(_,E){Yn(a,{index:_-1,align:"end",behavior:E})}return vn(je(Bi(je(Kt(n),Q_(1)),v),Vt(Kt(g),o,l),it(function(_){var E=_[0],S=E[0],T=E[1]&&_[3],C="auto";return T&&(C=function(R,N){return typeof R=="function"?y4(R(N)):N&&y4(R)}(_[1],_[2]),T=T&&!!C),{totalCount:S,shouldFollow:T,followOutputBehavior:C}}),Bt(function(_){return _.shouldFollow})),function(_){var E=_.totalCount,S=_.followOutputBehavior;x&&(x(),x=null),x=Lf(r,function(){w(E,S),x=null})}),vn(je(Bi(Kt(g),n,f),Bt(function(_){return _[0]&&_[2]}),Fu(function(_,E){var S=E[1];return{refreshed:_.value===S,value:S}},{refreshed:!1,value:0}),Bt(function(_){return _.refreshed}),Vt(g,n)),function(_){var E=_[1],S=_[2],T=Lf(s,function(C){!E||C.atBottom||C.notAtBottomBecause!=="SIZE_INCREASED"||x||(qf(m)("scrolling to bottom due to increased size",{totalCount:S},ai.DEBUG),w(S,"auto"))});setTimeout(T,100)}),vn(je(Bi(Kt(g),s),Vt(n)),function(_){var E=_[0],S=E[1];E[0]&&!S.atBottom&&S.notAtBottomBecause==="VIEWPORT_HEIGHT_DECREASING"&&w(_[1],"auto")}),{followOutput:g}},Zn(kl,Kg,Qg,$I,Kf,Yf));function Vbe(e){return e.reduce(function(t,n){return t.groupIndices.push(t.totalCount),t.totalCount+=n+1,t},{totalCount:0,groupIndices:[]})}var DD=En(function(e){var t=e[0],n=t.totalCount,r=t.groupIndices,i=t.sizes,o=e[1],s=o.scrollTop,a=o.headerHeight,l=Ct(),c=Ct(),f=ko(je(l,it(Vbe)));return vt(je(f,it(K_("totalCount"))),n),vt(je(f,it(K_("groupIndices"))),r),vt(je(Bi(s,i,a),Bt(function(v){return Cx(v[1])}),it(function(v){return Ma(v[1].groupOffsetTree,Math.max(v[0]-v[2],0),"v")[0]}),Rr(),it(function(v){return[v]})),c),{groupCounts:l,topItemsIndexes:c}},Zn(kl,ao)),_4={items:[],topItems:[],offsetTop:0,offsetBottom:0,top:0,bottom:0,topListHeight:0,totalCount:0};function b4(e,t,n){if(e.length===0)return[];if(!Cx(t))return e.map(function(f){return Qn({},f,{index:f.index+n,originalIndex:f.index})});for(var r,i=[],o=J_(t.groupOffsetTree,e[0].index,e[e.length-1].index),s=void 0,a=0,l=xf(e);!(r=l()).done;){var c=r.value;(!s||s.end0){o=e[0].offset;var a=e[e.length-1];s=a.offset+a.size}var l=o,c=r.lastOffset+(n-r.lastIndex)*r.lastSize-s;return{items:b4(e,r,i),topItems:b4(t,r,i),topListHeight:t.reduce(function(f,v){return v.size+f},0),offsetTop:o,offsetBottom:c,top:l,bottom:s,totalCount:n}}var x4,w4,GS,Sp=En(function(e){var t=e[0],n=t.sizes,r=t.totalCount,i=t.data,o=t.firstItemIndex,s=e[1],a=e[2],l=a.visibleRange,c=a.listBoundary,f=a.topListHeight,v=e[3],m=v.scrolledToInitialItem,g=v.initialTopMostItemIndex,x=e[4].topListHeight,w=e[5],_=e[6].didMount,E=ut([]),S=Ct();vt(s.topItemsIndexes,E);var T=ka(je(Bi(_,Kt(l),Kt(r),Kt(n),Kt(g),m,Kt(E),Kt(o),i),Bt(function(C){return C[0]}),it(function(C){var R=C[1],N=R[0],k=R[1],M=C[2],F=C[4],D=C[5],H=C[6],j=C[7],q=C[8],Q=C[3],W=Q.sizeTree,K=Q.offsetTree;if(M===0||N===0&&k===0)return _4;if(Bn(W))return $1(function(Se,Le,ze){if(Cx(Le)){var ge=BI(Se,Le);return[{index:Ma(Le.groupOffsetTree,ge)[0],size:0,offset:0},{index:ge,size:0,offset:0,data:ze&&ze[0]}]}return[{index:Se,size:0,offset:0,data:ze&&ze[0]}]}(F,Q,q),[],M,Q,j);var ee=[];if(H.length>0)for(var ce,J=H[0],oe=H[H.length-1],Z=0,X=xf(J_(W,J,oe));!(ce=X()).done;)for(var ne=ce.value,ae=ne.value,ue=Math.max(ne.start,J),_e=Math.min(ne.end,oe),Re=ue;Re<=_e;Re++)ee.push({index:Re,size:ae,offset:Z,data:q&&q[Re]}),Z+=ae;if(!D)return $1([],ee,M,Q,j);var be=H.length>0?H[H.length-1]+1:0,xe=function(Se,Le,ze,ge){return ge===void 0&&(ge=0),ge>0&&(Le=Math.max(Le,ND(Se,ge,FI).offset)),OD((ot=ze,kt=eb(Be=Se,Le,Ge=Fbe),Mt=eb(Be,ot,Ge,kt),Be.slice(kt,Mt+1)),Bbe);var Be,ot,Ge,kt,Mt}(K,N,k,be);if(xe.length===0)return null;var Ae=M-1;return $1(Ex([],function(Se){for(var Le,ze=xf(xe);!(Le=ze()).done;){var ge=Le.value,Be=ge.value,ot=Be.offset,Ge=ge.start,kt=Be.size;Be.offset=k);Tt++)Se.push({index:Tt,size:kt,offset:ot,data:q&&q[Tt]}),ot+=kt}}),ee,M,Q,j)}),Bt(function(C){return C!==null}),Rr()),_4);return vt(je(i,Bt(function(C){return C!==void 0}),it(function(C){return C.length})),r),vt(je(T,it(K_("topListHeight"))),x),vt(x,f),vt(T,w.listStateListener),vt(je(T,it(function(C){return[C.top,C.bottom]})),c),vt(je(T,it(function(C){return C.items})),S),Qn({listState:T,topItemsIndexes:E,endReached:ko(je(T,Bt(function(C){return C.items.length>0}),Vt(r,i),Bt(function(C){var R=C[0].items;return R[R.length-1].originalIndex===C[1]-1}),it(function(C){return[C[1]-1,C[2]]}),Rr(Z_),it(function(C){return C[0]}))),startReached:ko(je(T,LI(200),Bt(function(C){var R=C.items;return R.length>0&&R[0].originalIndex===C.topItems.length}),it(function(C){return C.items[0].index}),Rr())),rangeChanged:ko(je(T,Bt(function(C){return C.items.length>0}),it(function(C){var R=C.items;return{startIndex:R[0].index,endIndex:R[R.length-1].index}}),Rr(TD))),itemsRendered:S},w)},Zn(kl,DD,UI,$I,Qg,Kg,Kf),{singleton:!0}),Xbe=En(function(e){var t=e[0],n=t.sizes,r=t.firstItemIndex,i=t.data,o=e[1].listState,s=e[2].didMount,a=ut(0);return vt(je(s,Vt(a),Bt(function(l){return l[1]!==0}),Vt(n,r,i),it(function(l){var c=l[0][1],f=l[1],v=l[2],m=l[3],g=m===void 0?[]:m,x=0;if(f.groupIndices.length>0)for(var w,_=xf(f.groupIndices);!((w=_()).done||w.value-x>=c);)x++;var E=c+x;return $1(Array.from({length:E}).map(function(S,T){return{index:T,size:0,offset:0,data:g[T]}}),[],E,f,v)})),o),{initialItemCount:a}},Zn(kl,Sp,Kf),{singleton:!0}),qbe=En(function(e){var t=e[0].topItemsIndexes,n=ut(0);return vt(je(n,Bt(function(r){return r>0}),it(function(r){return Array.from({length:r}).map(function(i,o){return o})})),t),{topItemCount:n}},Zn(Sp)),zI=En(function(e){var t=e[0],n=t.footerHeight,r=t.headerHeight,i=e[1].listState,o=Ct(),s=ka(je(Bi(n,r,i),it(function(a){var l=a[2];return a[0]+a[1]+l.offsetBottom+l.bottom})),0);return vt(Kt(s),o),{totalListHeight:s,totalListHeightChanged:o}},Zn(ao,Sp),{singleton:!0}),Ybe=En(function(e){var t=e[0],n=t.scrollBy,r=t.scrollTop,i=t.scrollDirection,o=t.deviation,s=t.scrollingInProgress,a=e[1].isScrolling,l=e[3],c=l.beforeUnshiftWith,f=l.sizes,v=e[4].log,m=ko(je(e[2].listState,Fu(function(g,x){var w=g[1],_=x.items,E=0;if(w.length>0&&_.length>0){var S=_[0].originalIndex,T=w[0].originalIndex;if(S!==0||T!==0)if(S===T)E=_[0].size-w[0].size;else for(var C=function(k){var M=_[k],F=w.find(function(D){return D.originalIndex===M.originalIndex});return F?M.offset!==F.offset?(E=M.offset-F.offset,"break"):void 0:"continue"},R=_.length-1;R>=0;R--){var N=C(R);if(N!=="continue"&&N==="break")break}}return[E,_]},[0,[]]),Bt(function(g){return g[0]!==0}),Vt(r,i,s,v),Bt(function(g){return!g[3]&&g[1]!==0&&g[2]===cg}),it(function(g){var x=g[0][0];return(0,g[4])("Upward scrolling compensation",{amount:x},ai.DEBUG),x})));return vt(je(m,Vt(o),it(function(g){return g[1]-g[0]})),o),vn(je(Bi(ka(a,!1),o),Bt(function(g){return!g[0]&&g[1]!==0}),it(function(g){return g[1]}),LI(1)),function(g){g>0?(Yn(n,{top:-g,behavior:"auto"}),Yn(o,0)):(Yn(o,0),Yn(n,{top:-g,behavior:"auto"}))}),vt(je(c,Vt(f),it(function(g){return g[0]*g[1].lastSize})),m),{deviation:o}},Zn(ao,Kg,Sp,kl,Yf)),Kbe=En(function(e){var t=e[0].totalListHeight,n=e[1].didMount,r=e[2].scrollTo,i=ut(0);return vn(je(n,Vt(i),Bt(function(o){return o[1]!==0}),it(function(o){return{top:o[1]}})),function(o){Lf(je(t,Bt(function(s){return s!==0})),function(){setTimeout(function(){Yn(r,o)})})}),{initialScrollTop:i}},Zn(zI,Kf,ao),{singleton:!0}),Qbe=En(function(e){var t=e[0].viewportHeight,n=e[1].totalListHeight,r=ut(!1);return{alignToBottom:r,paddingTopAddition:ka(je(Bi(r,t,n),Bt(function(i){return i[0]}),it(function(i){return Math.max(0,i[1]-i[2])}),Rr()),0)}},Zn(ao,zI),{singleton:!0}),Zbe=En(function(e){var t=e[0],n=t.sizes,r=t.totalCount,i=e[1],o=i.scrollTop,s=i.viewportHeight,a=i.headerHeight,l=i.scrollingInProgress,c=e[2].scrollToIndex,f=Ct();return vt(je(f,Vt(n,s,r,a,o),it(function(v){var m=v[0],g=m.index,x=m.behavior,w=x===void 0?"auto":x,_=m.done,E=v[1],S=v[2],T=v[4],C=v[5],R=v[3]-1,N=null;g=BI(g,E);var k=Tx(g=Math.max(0,g,Math.min(R,g)),E.offsetTree)+T;return kC+S&&(N={index:g,behavior:w,align:"end"}),N?_&&Lf(je(l,Q_(1),Bt(function(M){return M===!1})),_):_&&_(),N}),Bt(function(v){return v!==null})),c),{scrollIntoView:f}},Zn(kl,ao,Qg,Sp,Yf),{singleton:!0}),Jbe=En(function(e){return Qn({},e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8])},Zn(UI,Xbe,Kf,CD,zI,Kbe,Qbe,MD,Zbe)),exe=En(function(e){var t=e[0],n=t.totalCount,r=t.sizeRanges,i=t.fixedItemSize,o=t.defaultItemSize,s=t.trackItemSizes,a=t.itemSize,l=t.data,c=t.firstItemIndex,f=t.groupIndices,v=e[1],m=v.initialTopMostItemIndex,g=v.scrolledToInitialItem,x=e[2],w=e[3],_=e[4],E=_.listState,S=_.topItemsIndexes,T=Yg(_,["listState","topItemsIndexes"]),C=e[5].scrollToIndex,R=e[7].topItemCount,N=e[8].groupCounts,k=e[9],M=e[10];return vt(T.rangeChanged,k.scrollSeekRangeChanged),vt(je(k.windowViewportRect,it(K_("visibleHeight"))),x.viewportHeight),Qn({totalCount:n,data:l,firstItemIndex:c,sizeRanges:r,initialTopMostItemIndex:m,scrolledToInitialItem:g,topItemsIndexes:S,topItemCount:R,groupCounts:N,fixedItemHeight:i,defaultItemHeight:o},w,{listState:E,scrollToIndex:C,trackItemSizes:s,itemSize:a,groupIndices:f},T,k,x,M)},Zn(kl,$I,ao,jbe,Sp,Qg,Ybe,qbe,DD,Jbe,Yf)),$D=(x4=function(){if(typeof document>"u")return"sticky";var e=document.createElement("div");return e.style.position="-webkit-sticky",e.style.position==="-webkit-sticky"?"-webkit-sticky":"sticky"},GS=!1,function(){return GS||(GS=!0,w4=x4()),w4});function zD(e){return e}var txe=En(function(){var e=ut(function(a){return"Item "+a}),t=ut(function(a){return"Group "+a}),n=ut({}),r=ut(zD),i=ut("div"),o=ut(Sx),s=function(a,l){return l===void 0&&(l=null),ka(je(n,it(function(c){return c[a]}),Rr()),l)};return{itemContent:e,groupContent:t,components:n,computeItemKey:r,headerFooterTag:i,scrollerRef:o,FooterComponent:s("Footer"),HeaderComponent:s("Header"),TopItemListComponent:s("TopItemList"),ListComponent:s("List","div"),ItemComponent:s("Item","div"),GroupComponent:s("Group","div"),ScrollerComponent:s("Scroller","div"),EmptyPlaceholder:s("EmptyPlaceholder"),ScrollSeekPlaceholder:s("ScrollSeekPlaceholder")}});function md(e,t){var n=Ct();return vn(n,function(){return console.warn("react-virtuoso: You are using a deprecated property. "+t,"color: red;","color: inherit;","color: blue;")}),vt(n,e),n}var nxe=En(function(e){var t=e[0],n=e[1],r={item:md(n.itemContent,"Rename the %citem%c prop to %citemContent."),group:md(n.groupContent,"Rename the %cgroup%c prop to %cgroupContent."),topItems:md(t.topItemCount,"Rename the %ctopItems%c prop to %ctopItemCount."),itemHeight:md(t.fixedItemHeight,"Rename the %citemHeight%c prop to %cfixedItemHeight."),scrollingStateChange:md(t.isScrolling,"Rename the %cscrollingStateChange%c prop to %cisScrolling."),adjustForPrependedItems:Ct(),maxHeightCacheSize:Ct(),footer:Ct(),header:Ct(),HeaderContainer:Ct(),FooterContainer:Ct(),ItemContainer:Ct(),ScrollContainer:Ct(),GroupContainer:Ct(),ListContainer:Ct(),emptyComponent:Ct(),scrollSeek:Ct()};function i(o,s,a){vt(je(o,Vt(n.components),it(function(l){var c,f=l[0],v=l[1];return console.warn("react-virtuoso: "+a+" property is deprecated. Pass components."+s+" instead."),Qn({},v,((c={})[s]=f,c))})),n.components)}return vn(r.adjustForPrependedItems,function(){console.warn("react-virtuoso: adjustForPrependedItems is no longer supported. Use the firstItemIndex property instead - https://virtuoso.dev/prepend-items.","color: red;","color: inherit;","color: blue;")}),vn(r.maxHeightCacheSize,function(){console.warn("react-virtuoso: maxHeightCacheSize is no longer necessary. Setting it has no effect - remove it from your code.")}),vn(r.HeaderContainer,function(){console.warn("react-virtuoso: HeaderContainer is deprecated. Use headerFooterTag if you want to change the wrapper of the header component and pass components.Header to change its contents.")}),vn(r.FooterContainer,function(){console.warn("react-virtuoso: FooterContainer is deprecated. Use headerFooterTag if you want to change the wrapper of the footer component and pass components.Footer to change its contents.")}),vn(r.scrollSeek,function(o){var s=o.placeholder,a=Yg(o,["placeholder"]);console.warn("react-virtuoso: scrollSeek property is deprecated. Pass scrollSeekConfiguration and specify the placeholder in components.ScrollSeekPlaceholder instead."),Yn(n.components,Qn({},qf(n.components),{ScrollSeekPlaceholder:s})),Yn(t.scrollSeekConfiguration,a)}),i(r.footer,"Footer","footer"),i(r.header,"Header","header"),i(r.ItemContainer,"Item","ItemContainer"),i(r.ListContainer,"List","ListContainer"),i(r.ScrollContainer,"Scroller","ScrollContainer"),i(r.emptyComponent,"EmptyPlaceholder","emptyComponent"),i(r.GroupContainer,"Group","GroupContainer"),Qn({},t,n,r)},Zn(exe,txe)),rxe=function(e){return A.createElement("div",{style:{height:e.height}})},ixe={position:$D(),zIndex:1},E4=A.memo(function(e){var t,n,r,i,o=e.showTopList,s=o!==void 0&&o,a=pn("listState"),l=pn("deviation"),c=Qf("sizeRanges"),f=pn("itemContent"),v=pn("groupContent"),m=pn("trackItemSizes"),g=(t=c,n=pn("itemSize"),r=m,i=pn("log"),Ep(function(D){var H=function(j,q,Q,W){var K=j.length;if(K===0)return null;for(var ee=[],ce=0;ce0,N=pn("paddingTopAddition"),k=pn("scrolledToInitialItem"),M=pn("firstItemIndex"),F=s?{}:{boxSizing:"border-box",paddingTop:a.offsetTop+N,paddingBottom:a.offsetBottom,marginTop:l};return!s&&a.items.length===0&&x&&k?A.createElement(x):A.createElement(_,{ref:g,style:F,"data-test-id":s?"virtuoso-top-item-list":"virtuoso-item-list"},(s?a.topItems:a.items).map(function(D){var H=D.originalIndex,j=T(H+M,D.data);return C?A.createElement(w,{key:j,index:D.index,height:D.size}):D.type==="group"?A.createElement(S,{key:j,"data-index":H,"data-known-size":D.size,"data-item-index":D.index,style:ixe},v(D.index)):A.createElement(E,{key:j,"data-index":H,"data-known-size":D.size,"data-item-index":D.index,"data-item-group-index":D.groupIndex},R?f(D.index,D.groupIndex,D.data):f(D.index,D.data))}))}),oxe={height:"100%",outline:"none",overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},Rx={width:"100%",height:"100%",position:"absolute",top:0},sxe={width:"100%",position:$D(),top:0},axe=A.memo(function(){var e=pn("HeaderComponent"),t=Qf("headerHeight"),n=pn("headerFooterTag"),r=Ep(function(i){return t(wf(i,"height"))});return e?A.createElement(n,{ref:r},A.createElement(e)):null}),lxe=A.memo(function(){var e=pn("FooterComponent"),t=Qf("footerHeight"),n=pn("headerFooterTag"),r=Ep(function(i){return t(wf(i,"height"))});return e?A.createElement(n,{ref:r},A.createElement(e)):null});function HD(e){var t=e.usePublisher,n=e.useEmitter,r=e.useEmitterValue;return A.memo(function(i){var o=i.style,s=i.children,a=Yg(i,["style","children"]),l=t("scrollTop"),c=r("ScrollerComponent"),f=UD(l,t("smoothScrollTargetReached"),c,r("scrollerRef")),v=f.scrollerRef,m=f.scrollByCallback;return n("scrollTo",f.scrollToCallback),n("scrollBy",m),A.createElement(c,Qn({ref:v,style:Qn({},oxe,o),tabIndex:0},a),s)})}function GD(e){var t=e.usePublisher,n=e.useEmitter,r=e.useEmitterValue;return A.memo(function(i){var o=i.style,s=i.children,a=Yg(i,["style","children"]),l=t("windowScrollTop"),c=r("ScrollerComponent"),f=t("smoothScrollTargetReached"),v=r("totalListHeight"),m=UD(l,f,c),g=m.scrollerRef,x=m.scrollByCallback,w=m.scrollToCallback;return Wbe(function(){return g.current=window,function(){g.current=null}},[g]),n("windowScrollTo",w),n("scrollBy",x),A.createElement(c,Qn({style:Qn({position:"relative"},o,v!==0?{height:v}:{})},a),s)})}var uxe=function(e){var t=e.children,n=Qf("viewportHeight"),r=Ep(xD(n,function(i){return wf(i,"height")}));return A.createElement("div",{style:Rx,ref:r},t)},cxe=function(e){var t=e.children,n=BD(Qf("windowViewportRect"));return A.createElement("div",{ref:n,style:Rx},t)},fxe=function(e){var t=e.children,n=pn("TopItemListComponent"),r=pn("headerHeight"),i=Qn({},sxe,{marginTop:r+"px"});return A.createElement(n||"div",{style:i},t)},Ix=SD(nxe,{required:{},optional:{followOutput:"followOutput",firstItemIndex:"firstItemIndex",itemContent:"itemContent",groupContent:"groupContent",overscan:"overscan",increaseViewportBy:"increaseViewportBy",totalCount:"totalCount",topItemCount:"topItemCount",initialTopMostItemIndex:"initialTopMostItemIndex",components:"components",groupCounts:"groupCounts",computeItemKey:"computeItemKey",defaultItemHeight:"defaultItemHeight",fixedItemHeight:"fixedItemHeight",itemSize:"itemSize",scrollSeekConfiguration:"scrollSeekConfiguration",headerFooterTag:"headerFooterTag",data:"data",initialItemCount:"initialItemCount",initialScrollTop:"initialScrollTop",alignToBottom:"alignToBottom",useWindowScroll:"useWindowScroll",scrollerRef:"scrollerRef",logLevel:"logLevel",item:"item",group:"group",topItems:"topItems",itemHeight:"itemHeight",scrollingStateChange:"scrollingStateChange",maxHeightCacheSize:"maxHeightCacheSize",footer:"footer",header:"header",ItemContainer:"ItemContainer",ScrollContainer:"ScrollContainer",ListContainer:"ListContainer",GroupContainer:"GroupContainer",emptyComponent:"emptyComponent",HeaderContainer:"HeaderContainer",FooterContainer:"FooterContainer",scrollSeek:"scrollSeek"},methods:{scrollToIndex:"scrollToIndex",scrollIntoView:"scrollIntoView",scrollTo:"scrollTo",scrollBy:"scrollBy",adjustForPrependedItems:"adjustForPrependedItems"},events:{isScrolling:"isScrolling",endReached:"endReached",startReached:"startReached",rangeChanged:"rangeChanged",atBottomStateChange:"atBottomStateChange",atTopStateChange:"atTopStateChange",totalListHeightChanged:"totalListHeightChanged",itemsRendered:"itemsRendered",groupIndices:"groupIndices"}},A.memo(function(e){var t=pn("useWindowScroll"),n=pn("topItemsIndexes").length>0,r=t?cxe:uxe;return A.createElement(t?pxe:dxe,Qn({},e),A.createElement(r,null,A.createElement(axe,null),A.createElement(E4,null),A.createElement(lxe,null)),n&&A.createElement(fxe,null,A.createElement(E4,{showTopList:!0})))})),hxe=Ix.Component,Qf=Ix.usePublisher,pn=Ix.useEmitterValue,WD=Ix.useEmitter,dxe=HD({usePublisher:Qf,useEmitterValue:pn,useEmitter:WD}),pxe=GD({usePublisher:Qf,useEmitterValue:pn,useEmitter:WD}),vxe=En(function(){var e=ut(function(a){return"Item "+a}),t=ut({}),n=ut("virtuoso-grid-item"),r=ut("virtuoso-grid-list"),i=ut(zD),o=ut(Sx),s=function(a,l){return l===void 0&&(l=null),ka(je(t,it(function(c){return c[a]}),Rr()),l)};return{itemContent:e,components:t,computeItemKey:i,itemClassName:n,listClassName:r,scrollerRef:o,ListComponent:s("List","div"),ItemComponent:s("Item","div"),ScrollerComponent:s("Scroller","div"),ScrollSeekPlaceholder:s("ScrollSeekPlaceholder","div")}}),mxe=En(function(e){var t=e[0],n=e[1],r={item:md(n.itemContent,"Rename the %citem%c prop to %citemContent."),ItemContainer:Ct(),ScrollContainer:Ct(),ListContainer:Ct(),emptyComponent:Ct(),scrollSeek:Ct()};function i(o,s,a){vt(je(o,Vt(n.components),it(function(l){var c,f=l[0],v=l[1];return console.warn("react-virtuoso: "+a+" property is deprecated. Pass components."+s+" instead."),Qn({},v,((c={})[s]=f,c))})),n.components)}return vn(r.scrollSeek,function(o){var s=o.placeholder,a=Yg(o,["placeholder"]);console.warn("react-virtuoso: scrollSeek property is deprecated. Pass scrollSeekConfiguration and specify the placeholder in components.ScrollSeekPlaceholder instead."),Yn(n.components,Qn({},qf(n.components),{ScrollSeekPlaceholder:s})),Yn(t.scrollSeekConfiguration,a)}),i(r.ItemContainer,"Item","ItemContainer"),i(r.ListContainer,"List","ListContainer"),i(r.ScrollContainer,"Scroller","ScrollContainer"),Qn({},t,n,r)},Zn(Gbe,vxe)),gxe=A.memo(function(){var e=es("gridState"),t=es("listClassName"),n=es("itemClassName"),r=es("itemContent"),i=es("computeItemKey"),o=es("isSeeking"),s=es("ItemComponent"),a=es("ListComponent"),l=es("ScrollSeekPlaceholder"),c=Zg("itemDimensions"),f=Ep(function(v){var m=v.firstChild;m&&c(m.getBoundingClientRect())});return A.createElement(a,{ref:f,className:t,style:{paddingTop:e.offsetTop,paddingBottom:e.offsetBottom}},e.items.map(function(v){var m=i(v.index);return o?A.createElement(l,{key:m,style:{height:e.itemHeight,width:e.itemWidth}}):A.createElement(s,{className:n,"data-index":v.index,key:m},r(v.index))}))}),yxe=function(e){var t=e.children,n=Zg("viewportDimensions"),r=Ep(function(i){n(i.getBoundingClientRect())});return A.createElement("div",{style:Rx,ref:r},t)},_xe=function(e){var t=e.children,n=BD(Zg("windowViewportRect"));return A.createElement("div",{ref:n,style:Rx},t)},HI=SD(mxe,{optional:{totalCount:"totalCount",overscan:"overscan",itemContent:"itemContent",components:"components",computeItemKey:"computeItemKey",initialItemCount:"initialItemCount",scrollSeekConfiguration:"scrollSeekConfiguration",listClassName:"listClassName",itemClassName:"itemClassName",useWindowScroll:"useWindowScroll",scrollerRef:"scrollerRef",item:"item",ItemContainer:"ItemContainer",ScrollContainer:"ScrollContainer",ListContainer:"ListContainer",scrollSeek:"scrollSeek"},methods:{scrollTo:"scrollTo",scrollBy:"scrollBy",scrollToIndex:"scrollToIndex"},events:{isScrolling:"isScrolling",endReached:"endReached",startReached:"startReached",rangeChanged:"rangeChanged",atBottomStateChange:"atBottomStateChange",atTopStateChange:"atTopStateChange"}},A.memo(function(e){var t=Qn({},e),n=es("useWindowScroll"),r=n?_xe:yxe;return A.createElement(n?xxe:bxe,Qn({},t),A.createElement(r,null,A.createElement(gxe,null)))})),Zg=HI.usePublisher,es=HI.useEmitterValue,jD=HI.useEmitter,bxe=HD({usePublisher:Zg,useEmitterValue:es,useEmitter:jD}),xxe=GD({usePublisher:Zg,useEmitterValue:es,useEmitter:jD}),wxe=hxe;function Exe({items:e=[],renderItem:t,listOptions:n,...r}){return L(sn,{...r,children:L(wxe,{totalCount:e.length,itemContent:i=>t==null?void 0:t(e[i],i),...n})})}function VD({event:e,hidden:t}){return Oe(LU,{children:[L(MU,{sx:{color:w_e(e==null?void 0:e.type),mr:1}}),`${(e==null?void 0:e.type)??"unsupported"} #${(e==null?void 0:e.id)??"-"}`," ",t&&L(hie,{sx:{opacity:.56,fontSize:12,ml:1,transform:"translateY(1.75px)"}})]})}function m2({label:e,value:t,type:n}){return Oe(yr,{width:"auto",mr:3,mt:.5,children:[L(Fn,{sx:{opacity:.54},...n,children:e}),L(Po,{}),L(Fn,{...n,children:t})]},`${e}::${t}`)}function XD({event:e,variant:t="body2",...n}){return L(yr,{flexWrap:"wrap",...n,children:de.map(de.filter([["f",e==null?void 0:e.f],["g",e==null?void 0:e.g],...de.entries(e==null?void 0:e.variables),["pId",e==null?void 0:e.pId],["info",e==null?void 0:e.info]],([,r])=>r!==void 0),([r,i])=>L(m2,{label:r,value:i,type:{variant:t}}))})}function Sxe({event:e,index:t,selected:n,...r}){const i=JR(),[{specimen:o}]=Ri(),[{code:s},a]=ci(),l=n?{color:"primary.contrastText",bgcolor:"primary.main"}:i,c=e?!bI(s??"","shouldRender",[t??0,e,(o==null?void 0:o.eventList)??[]]):!1;return L(Lg,{...r,sx:{...l,...r.sx},children:L(JQ,{sx:{p:2,height:"100%"},onClick:()=>a({step:t}),children:Oe(yr,{alignItems:"center",children:[L(Fn,{children:t}),L(dp,{sx:{mx:2},flexItem:!0,orientation:"vertical"}),Oe(sn,{children:[L(VD,{event:e,hidden:c}),L(XD,{event:e})]})]})})})}function Txe(){return Oe(u2,{sx:{width:"100%",height:"fit-content"},children:[L("p",{children:L(wie,{})}),L("p",{children:"Select a source & destination node on the map to see the steps here."})]})}function Cxe(e){var s;const[t]=ox(),[{step:n=0,playback:r}]=ci(),[{specimen:i}]=Ri(),o=A.useRef(null);return A.useEffect(()=>{r==="paused"&&de.delay(()=>{var a,l;return(l=(a=o==null?void 0:o.current)==null?void 0:a.scrollToIndex)==null?void 0:l.call(a,{index:n,align:"start",behavior:"smooth",offset:-16})},150)},[n,r]),L(yr,{vertical:!0,alignItems:"center",children:t.map||t.specimen?L(TB,{}):(s=i==null?void 0:i.eventList)!=null&&s.length?L(Exe,{...e,items:i==null?void 0:i.eventList,listOptions:{ref:o},renderItem:(a,l)=>L(yr,{p:2,pt:l?0:2,children:L(Sxe,{sx:{flex:1},event:a,index:l,selected:l===n})})}):L(yr,{children:L(Txe,{})})})}function Rxe(e){const[{playback:t}]=ci(),[n,r]=A.useState("steps");return L(rI,{value:n,children:Oe(yr,{vertical:!0,sx:{pointerEvents:"none",transition:({transitions:i})=>i.create("background"),bgcolor:({palette:i})=>n?Mn(i.background.default,.94):"transparent"},alignItems:"center",...e,children:[L(_be,{children:[{icon:L(Eie,{}),key:"steps"},{key:"info"},{key:"parameters"}].map(({key:i,icon:o})=>L(Bg,{title:de.startCase(i),children:L(hp,{onClick:()=>r(i===n?"":i),color:"primary",variant:i===n?"contained":"text",startIcon:o,children:de.startCase(i)})}))}),[{key:"steps",content:L(If,{unmountOnExit:!0,mountOnEnter:!0,in:t==="paused",children:L(Rd,{height:"100%",width:"100%",pl:1,children:L(Cxe,{height:"100%",width:"100%"})})})},{key:"info",content:L(u2,{children:"No info to show."})},{key:"parameters",content:L(u2,{children:"No parameters to show."})}].map(({content:i,key:o})=>L(Xm,{value:o,sx:{pointerEvents:"all",flex:1,p:0,width:"100%"},children:i}))]})})}function nb({primary:e,secondary:t}){return Oe(yr,{children:[L(sn,{children:e}),L(Po,{}),L(sn,{sx:{opacity:.56},children:t})]})}function Ixe({selection:e,onClose:t}){var c,f;const n=gp(),[,r]=ci(),{global:i,info:o}=e??{},{current:s,entry:a,node:l}=o??{};return Oe(KR,{open:!!e,anchorReference:"anchorPosition",anchorPosition:{top:(i==null?void 0:i.y)??0,left:(i==null?void 0:i.x)??0},onClose:t,children:[L(kee,{children:Oe(SN,{children:[Oe(sn,{children:[L(LU,{children:"Point"}),L(m2,{label:"x",value:((c=o==null?void 0:o.point)==null?void 0:c.x)??"-"}),L(m2,{label:"y",value:((f=o==null?void 0:o.point)==null?void 0:f.y)??"-"})]}),(s==null?void 0:s.event)&&Oe(sn,{mt:2,children:[L(VD,{event:s==null?void 0:s.event}),L(XD,{event:s==null?void 0:s.event,variant:"body1",vertical:!0})]})]})}),L(dp,{sx:{my:1}}),de.map([{label:"Set Origin",icon:L(Tie,{sx:{transform:"scale(0.5)"}}),action:()=>{n("Origin set."),r({start:l==null?void 0:l.key})},disabled:!l},{label:"Set Destination",icon:L(mie,{}),action:()=>{n("Destination set."),r({end:l==null?void 0:l.key})},disabled:!l},{label:L(nb,{primary:"Go to Expansion Step",secondary:a==null?void 0:a.index}),action:()=>r({step:(a==null?void 0:a.index)??0,playback:"paused"}),disabled:!a},{label:L(nb,{primary:"Rewind to This Step",secondary:s==null?void 0:s.index}),action:()=>r({step:(s==null?void 0:s.index)??0,playback:"paused"}),disabled:!s}],({label:v,icon:m,action:g,disabled:x})=>Oe(QR,{disabled:x,onClick:()=>{g(),t==null||t()},children:[L($ee,{children:m}),L(SN,{children:v})]}))]})}function Pxe(e){const[t]=ox(),[{specimen:n,format:r,map:i}]=Ri(),o=ybe(r),[s,a]=A.useState(void 0);return Oe(an,{children:[L(If,{in:de.some(de.values(t)),children:L(cee,{variant:"indeterminate",sx:{mb:-.5,zIndex:1}})}),L(yr,{...e,children:n?Oe(yr,{children:[L(mI,{children:l=>L(If,{appear:!0,in:!0,children:L(sn,{children:A.createElement(o,{...l,key:i,onSelect:a,selection:s==null?void 0:s.world})})})}),L(Rxe,{position:"absolute",right:0,height:"100%",width:"25vw",minWidth:480})]}):Oe(yr,{justifyContent:"center",alignItems:"center",color:"text.secondary",vertical:!0,children:[L(iie,{sx:{mb:2},fontSize:"large"}),"Select a map to get started."]})}),L(Ixe,{selection:s,onClose:()=>a(void 0)})]})}function Oxe(){return Oe(yr,{vertical:!0,sx:{bgcolor:"background.default"},children:[L(Sue,{}),L(Pxe,{flex:1})]})}function Axe(e){return new Promise(t=>de.delay(t,e))}async function Nxe(e,t=2500){const n=de.now();return{result:await Promise.any([e(),Axe(t)]),delta:de.now()-n}}function kxe(){const e=gp(),[{remote:t}]=mp(),[,n]=Ug(),r=sx("connections");return A.useEffect(()=>{let i=!1,o=[];return r(async()=>{e("Connecting...");for(const{transport:s,url:a,disabled:l}of t??[]){if(!l){const c=new(Yae(s))({url:a});await c.connect();const{result:f,delta:v}=await Nxe(()=>c.call("about"));f?o=[...o,{...f,url:a,ping:v,call:c.call.bind(c),disconnect:c.disconnect.bind(c)}]:await c.disconnect()}i||n(o)}i||e(`Connected to ${o.length} of ${t==null?void 0:t.length} solvers.`)}),()=>{i=!0,o.map(s=>s.disconnect())}},[t,n,e,r]),L(an,{})}function Mxe(){const[{specimen:e}]=Ri(),[{code:t,breakpoints:n=[],monotonicF:r,monotonicG:i}]=ci();return A.useMemo(()=>{const o=de.keyBy(e==null?void 0:e.eventList,"id");return de.memoize(s=>{var l,c;const a=(l=e==null?void 0:e.eventList)==null?void 0:l[s];if(a)try{if(s){for(const f of[r&&"f",i&&"g"])if(f&&de.get(o[`${a.pId}`],f)>de.get(a,f))return{result:`Monotonicity violation on ${f}`}}for(const{active:f,condition:v,type:m,property:g="",reference:x=0}of n){const w=!m||m===a.type,_=(c=v==null?void 0:v.apply)==null?void 0:c.call(v,de.get(a,g),x);if(f&&w&&_)return{result:`${g} ${de.lowerCase(de.startCase(v==null?void 0:v.key))} ${x}`}}if(bI(t??"","shouldBreak",[s,a,(e==null?void 0:e.eventList)??[]]))return{result:"Script editor"}}catch(f){return{error:`${f}`}}return{result:""}})},[t,e,n,r,i])}function Lxe(e,t){let n=!1;return requestAnimationFrame(async()=>{const r=await e();n||t(r)}),()=>{n=!0}}function Fxe(){WB();const e=gp(),[{playbackRate:t=1}]=mp(),{playing:n,end:r,step:i,pause:o,tick:s}=iU(),a=Mxe(),l=A.useCallback((c,f)=>L(nb,{primary:c,secondary:`Step ${i+f}`}),[i]);return A.useEffect(()=>{if(n)return i{for(const c of de.range(t)){const f=a(i+c);if(f.result||f.error)return{...f,offset:c}}return{result:"",offset:0}},({result:c,offset:f,error:v})=>{v?(e(l(`${de.trimEnd(v,".")}.`,f)),o()):c?(e(l(`Breakpoint hit: ${c}.`,f)),o(f)):s(t)}):o()},[l,n,r,i,o,s,e,a,t]),L(an,{})}function hg(){return hg=Object.assign||function(e){for(var t=1;tt=>({...t,source:e});function Yxe(){const[e]=Ug(),[,t]=eI(),n=sx("features");return KD(r=>n(async()=>{const i={algorithms:[],formats:[],maps:[]};for(const{call:o,url:s}of e)for(const a of["algorithms","formats","maps"])i[a]=de.uniqBy([...i[a],...de.map(await o(`features/${a}`),qxe(s))],"id");r.aborted||t(i)}),[e,t]),L(an,{})}function Kxe(){const e=gp(),t=sx("map"),n=ix(),[{map:r}]=ci(),i=A.useMemo(()=>de.memoize(async({source:o,id:s}={})=>{if(o&&s){const a=n({url:o});if(a){e("Fetching map...");const l=await a.call("features/map",{id:s});return l==null?void 0:l.content}}},JSON.stringify),[n,e]);return YD(()=>t(async()=>{if(r&&r.id)return{...r,content:r.content?r.content:await i(r)}}),[i,r,t])}const Qxe=e=>async t=>{const n=new e,r=await t(n);return n.terminate(),r},Zxe=e=>t=>Qxe(e)(n=>(n.postMessage(t),new Promise(r=>{n.onmessage=i=>{r(i.data)}}))),Jxe=de.memoize(Zxe(Xoe));async function ewe(e,{format:t,...n},r){if(e)for(const i of[`hash:${await Jxe(e)}`,`map:${encodeURIComponent(e)}`]){const o={...n,format:t,mapURI:i};try{const s=await r("solve/pathfinding",o);if(s)return{...o,specimen:s,map:e,format:(s==null?void 0:s.format)??t}}catch(s){return{...o,specimen:{},map:e,format:t,error:s.message}}}}function twe(){const e=sx("specimen"),t=gp(),[{formats:n,algorithms:r}]=eI(),[{algorithm:i,start:o,end:s,parameters:a},l]=ci(),c=ix(),[f]=Ug(),[,v]=Ri(),{result:m}=Kxe();return KD(g=>e(async()=>{var x,w;if(m!=null&&m.format&&(m!=null&&m.content)){let _;for(const E of f){const S=await E.call("features/algorithms"),T=await E.call("features/formats");if(de.find(S,{id:i})&&de.find(T,{id:m==null?void 0:m.format})){_=E;break}}if(_){const E=await ewe((m==null?void 0:m.content)??"",{algorithm:i,format:(m==null?void 0:m.format)??"",instances:[{end:s,start:o}],parameters:a},_.call);E&&!g.aborted&&(v(E),l({step:0,playback:"paused",breakpoints:[]}),t(E.error??(de.isEmpty(E.specimen)?"Ready.":L(nb,{primary:"Solution generated.",secondary:`${(w=(x=E.specimen)==null?void 0:x.eventList)==null?void 0:w.length} steps`}))))}else t(`No solver is available for the map format (${(m==null?void 0:m.format)??"none"}) and algorithm (${i??"none"}).`)}}),[i,o,s,m,t,e,n,c,v,a]),L(an,{})}function nwe({slices:e,children:t,services:n}){return L(an,{children:de.reduce(de.map(e,r=>A.createElement(r)),(r,i)=>A.cloneElement(i,{},r),Oe(an,{children:[t,de.map(n,(r,i)=>A.createElement(r,{key:i}))]}))})}const rwe=[Zre,Mie,Lie,kie,voe,rle],iwe=[kxe,Fxe,twe,Yxe];Rm.render(L(A.StrictMode,{children:L(wZ,{children:L(Vj,{theme:eie,children:L(Cie,{children:L(nwe,{slices:rwe,services:iwe,children:L(Oxe,{})})})})})}),document.getElementById("root"))});export default owe(); +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}return(n=e[Symbol.iterator]()).next.bind(n)}function Z_(e,t){return!(!e||e[0]!==t[0]||e[1]!==t[1])}function TD(e,t){return!(!e||e.startIndex!==t.startIndex||e.endIndex!==t.endIndex)}var $v,ai,cg="up",ao=En(function(){var e=Ct(),t=ut(0),n=Ct(),r=ut(0),i=Ct(),o=ut(0),s=ut(0),a=Ct(),l=Ct(),c=ut(!1);vt(e,r);var f=ut("down");return vt(je(e,Fu(function(v,m){return{direction:m=((i=globalThis.VIRTUOSO_LOG_LEVEL)!=null?i:qf(e))&&console[kbe[r]]("%creact-virtuoso: %c%s %o","color: #0253b3; font-weight: bold","color: black",t,n)}),logLevel:e}},[],{singleton:!0}),Kf=En(function(e){var t=e[0].log,n=ut(!1),r=ko(je(n,Bt(function(i){return i}),Rr()));return vn(n,function(i){i&&qf(t)("props updated",{},ai.DEBUG)}),{propsReady:n,didMount:r}},Zn(Yf),{singleton:!0}),Mbe={atBottom:!1,notAtBottomBecause:"NOT_SHOWING_LAST_ITEM",state:{offsetBottom:0,scrollTop:0,viewportHeight:0,totalHeight:0}},Kg=En(function(e){var t=e[0],n=t.scrollTop,r=t.viewportHeight,i=t.headerHeight,o=t.footerHeight,s=ut(!1),a=ut(!0),l=Ct(),c=Ct(),f=Ct(),v=ko(je(Cbe(je(Kt(n),Q_(1),ug(!0)),je(Kt(n),Q_(1),ug(!1),Tbe(100))),Rr()));vt(je(Kt(n),it(function(g){return g===0}),Rr()),a),vt(a,c);var m=ko(je(Bi(f,Kt(n),Kt(r),Kt(i),Kt(o)),Fu(function(g,x){var w=x[0],_=w.bottom,E=w.offsetBottom,S=x[1],T=x[2],C={viewportHeight:T,scrollTop:S,offsetBottom:E,totalHeight:_+E};return E===0&&S+T-(_+x[3]+x[4])>-4?{atBottom:!0,state:C}:{atBottom:!1,notAtBottomBecause:C.totalHeight>g.state.totalHeight?"SIZE_INCREASED":E!==0?"NOT_SHOWING_LAST_ITEM":Tt&&(s=s.concat(f2(e.l,t,n))),r>=t&&r<=n&&s.push({k:r,v:i}),r<=n&&(s=s.concat(f2(o,t,n))),s}function h2(e){return Bn(e)?[]:[].concat(h2(e.l),[{k:e.k,v:e.v}],h2(e.r))}function ID(e){return Bn(e.r)?[e.k,e.v]:ID(e.r)}function PD(e){return Bn(e.r)?e.l:d2(oi(e,{r:PD(e.r)}))}function oi(e,t){return RD(t.k!==void 0?t.k:e.k,t.v!==void 0?t.v:e.v,t.lvl!==void 0?t.lvl:e.lvl,t.l!==void 0?t.l:e.l,t.r!==void 0?t.r:e.r)}function HS(e){return Bn(e)||e.lvl>e.r.lvl}function d2(e){var t=e.l,n=e.r,r=e.lvl;if(n.lvl>=r-1&&t.lvl>=r-1)return e;if(r>n.lvl+1){if(HS(t))return AD(oi(e,{lvl:r-1}));if(Bn(t)||Bn(t.r))throw new Error("Unexpected empty nodes");return oi(t.r,{l:oi(t,{r:t.r.l}),r:oi(e,{l:t.r.r,lvl:r-1}),lvl:r})}if(HS(e))return p2(oi(e,{lvl:r-1}));if(Bn(n)||Bn(n.l))throw new Error("Unexpected empty nodes");var i=n.l,o=HS(i)?n.lvl-1:n.lvl;return oi(i,{l:oi(e,{r:i.l,lvl:r-1}),r:p2(oi(n,{l:i.r,lvl:o})),lvl:i.lvl+1})}function J_(e,t,n){return Bn(e)?[]:OD(f2(e,Ma(e,t)[0],n),function(r){return{index:r.k,value:r.v}})}function OD(e,t){var n=e.length;if(n===0)return[];for(var r=t(e[0]),i=r.index,o=r.value,s=[],a=1;a0&&(0,t[2])("received item sizes",n,ai.DEBUG);var i=e.sizeTree,o=e.offsetTree,s=i,a=0;if(r.length>0&&Bn(i)&&n.length===2){var l=n[0].size,c=n[1].size;s=r.reduce(function(N,k){return fl(fl(N,k,l),k+1,c)},s)}else{var f=function(N,k){for(var M,F=Bn(N)?0:1/0,D=xf(k);!(M=D()).done;){var H=M.value,j=H.size,q=H.startIndex,Q=H.endIndex;if(F=Math.min(F,q),Bn(N))N=fl(N,0,j);else{var W=J_(N,q-1,Q+1);if(!W.some(Lbe(H))){for(var K,ee=!1,ce=!1,J=xf(W);!(K=J()).done;){var oe=K.value,Z=oe.start,X=oe.end,ne=oe.value;ee?(Q>=Z||j===ne)&&(N=c2(N,Z)):(ce=ne!==j,ee=!0),X>Q&&Q>=Z&&ne!==j&&(N=fl(N,Q+1,ne))}ce&&(N=fl(N,q,j))}}}return[N,F]}(s,n);s=f[0],a=f[1]}if(s===i)return e;var v=0,m=0,g=0,x=0;if(a!==0){x=eb(o,a-1,FI),g=o[x].offset;var w=Ma(s,a-1);v=w[0],m=w[1],o.length&&o[x].size===Ma(s,a)[1]&&(x-=1),o=o.slice(0,x+1)}else o=[];for(var _,E=xf(J_(s,a,1/0));!(_=E()).done;){var S=_.value,T=S.start,C=S.value,R=(T-v)*m+g;o.push({offset:R,size:C,index:T}),v=T,g=R,m=C}return{sizeTree:s,offsetTree:o,groupOffsetTree:r.reduce(function(N,k){return fl(N,k,Tx(k,o))},D1()),lastIndex:v,lastOffset:g,lastSize:m,groupIndices:r}}function Tx(e,t){if(t.length===0)return 0;var n=ND(t,e,FI);return n.size*(e-n.index)+n.offset}function BI(e,t){if(!Cx(t))return e;for(var n=0;t.groupIndices[n]<=e+n;)n++;return e+n}function Cx(e){return!Bn(e.groupOffsetTree)}var Dbe={offsetHeight:"height",offsetWidth:"width"},kl=En(function(e){var t=e[0].log,n=Ct(),r=Ct(),i=Ct(),o=ut(0),s=ut([]),a=ut(void 0),l=ut(void 0),c=ut(function(_,E){return wf(_,Dbe[E])}),f=ut(void 0),v={offsetTree:[],sizeTree:D1(),groupOffsetTree:D1(),lastIndex:0,lastOffset:0,lastSize:0,groupIndices:[]},m=ka(je(n,Vt(s,t),Fu(Ube,v),Rr()),v);vt(je(s,Bt(function(_){return _.length>0}),Vt(m),it(function(_){var E=_[0],S=_[1],T=E.reduce(function(C,R,N){return fl(C,R,Tx(R,S.offsetTree)||N)},D1());return Qn({},S,{groupIndices:E,groupOffsetTree:T})})),m),vt(je(r,Vt(m),Bt(function(_){return _[0]<_[1].lastIndex}),it(function(_){var E=_[1];return[{startIndex:_[0],endIndex:E.lastIndex,size:E.lastSize}]})),n),vt(a,l);var g=ka(je(a,it(function(_){return _===void 0})),!0);vt(je(l,Bt(function(_){return _!==void 0&&Bn(qf(m).sizeTree)}),it(function(_){return[{startIndex:0,endIndex:0,size:_}]})),n);var x=ko(je(n,Vt(m),Fu(function(_,E){var S=E[1];return{changed:S!==_.sizes,sizes:S}},{changed:!1,sizes:v}),it(function(_){return _.changed})));vt(je(o,Fu(function(_,E){return{diff:_.prev-E,prev:E}},{diff:0,prev:0}),it(function(_){return _.diff}),Bt(function(_){return _>0})),i),vn(je(o,Vt(t)),function(_){_[0]<0&&(0,_[1])("`firstItemIndex` prop should not be set to less than zero. If you don't know the total count, just use a very high value",{firstItemIndex:o},ai.ERROR)});var w=ko(i);return vt(je(i,Vt(m),it(function(_){var E=_[0],S=_[1];if(S.groupIndices.length>0)throw new Error("Virtuoso: prepending items does not work with groups");return h2(S.sizeTree).reduce(function(T,C){var R=C.k,N=C.v;return{ranges:[].concat(T.ranges,[{startIndex:T.prevIndex,endIndex:R+E-1,size:T.prevSize}]),prevIndex:R+E,prevSize:N}},{ranges:[],prevIndex:0,prevSize:S.lastSize}).ranges})),n),{data:f,totalCount:r,sizeRanges:n,groupIndices:s,defaultItemSize:l,fixedItemSize:a,unshiftWith:i,beforeUnshiftWith:w,firstItemIndex:o,sizes:m,listRefresh:x,trackItemSizes:g,itemSize:c}},Zn(Yf),{singleton:!0}),$be=typeof document<"u"&&"scrollBehavior"in document.documentElement.style;function kD(e){var t=typeof e=="number"?{index:e}:e;return t.align||(t.align="start"),t.behavior&&$be||(t.behavior="auto"),t.offset||(t.offset=0),t}var Qg=En(function(e){var t=e[0],n=t.sizes,r=t.totalCount,i=t.listRefresh,o=e[1],s=o.scrollingInProgress,a=o.viewportHeight,l=o.scrollTo,c=o.smoothScrollTargetReached,f=o.headerHeight,v=o.footerHeight,m=e[2].log,g=Ct(),x=ut(0),w=null,_=null,E=null;function S(){w&&(w(),w=null),E&&(E(),E=null),_&&(clearTimeout(_),_=null),Yn(s,!1)}return vt(je(g,Vt(n,a,r,x,f,v,m),it(function(T){var C=T[0],R=T[1],N=T[2],k=T[3],M=T[4],F=T[5],D=T[6],H=T[7],j=kD(C),q=j.align,Q=j.behavior,W=j.offset,K=k-1,ee=j.index;ee=BI(ee,R);var ce=Tx(ee=Math.max(0,ee,Math.min(K,ee)),R.offsetTree)+F;q==="end"?(ce=Math.round(ce-N+Ma(R.sizeTree,ee)[1]),ee===K&&(ce+=D)):q==="center"?ce=Math.round(ce-N/2+Ma(R.sizeTree,ee)[1]/2):ce-=M,W&&(ce+=W);var J=function(Z){S(),Z?(H("retrying to scroll to",{location:C},ai.DEBUG),Yn(g,C)):H("list did not change, scroll successful",{},ai.DEBUG)};if(S(),Q==="smooth"){var oe=!1;E=vn(i,function(Z){oe=oe||Z}),w=Lf(c,function(){J(oe)})}else w=Lf(je(i,function(Z){var X=setTimeout(function(){Z(!1)},50);return function(ne){ne&&(Z(!0),clearTimeout(X))}}),J);return _=setTimeout(function(){S()},1200),Yn(s,!0),H("scrolling from index to",{index:ee,top:ce,behavior:Q},ai.DEBUG),{top:ce,behavior:Q}})),l),{scrollToIndex:g,topListHeight:x}},Zn(kl,ao,Yf),{singleton:!0});function h4(e,t,n){return typeof e=="number"?n===cg&&t==="top"||n==="down"&&t==="bottom"?e:0:n===cg?t==="top"?e.main:e.reverse:t==="bottom"?e.main:e.reverse}function d4(e,t){return typeof e=="number"?e:e[t]||0}var UI=En(function(e){var t=e[0],n=t.scrollTop,r=t.viewportHeight,i=t.deviation,o=t.headerHeight,s=Ct(),a=ut(0),l=ut(0),c=ut(0);return{listBoundary:s,overscan:c,topListHeight:a,increaseViewportBy:l,visibleRange:ka(je(Bi(Kt(n),Kt(r),Kt(o),Kt(s,Z_),Kt(c),Kt(a),Kt(i),Kt(l)),it(function(f){var v=f[0],m=f[1],g=f[2],x=f[3],w=x[0],_=x[1],E=f[4],S=f[5],T=f[6],C=f[7],R=v-T,N=Math.max(g-R,0),k="none",M=d4(C,"top"),F=d4(C,"bottom");return w-=T,_+=g,(w+=g)>v+S-M&&(k=cg),(_-=T)0}),Vt(R),Bt(function(W){var K=W[0].items;return K[K.length-1].index===W[1]-1}),it(function(W){return W[1]-1}),Rr())),j=ko(je(Kt(k),Bt(function(W){var K=W.items;return K.length>0&&K[0].index===0}),ug(0),Rr())),q=ko(je(Kt(k),Bt(function(W){return W.items.length>0}),it(function(W){var K=W.items;return{startIndex:K[0].index,endIndex:K[K.length-1].index}}),Rr(TD)));vt(q,m.scrollSeekRangeChanged),vt(je(D,Vt(M,F,R),it(function(W){var K=W[1],ee=W[2],ce=W[3],J=kD(W[0]),oe=J.align,Z=J.behavior,X=J.offset,ne=J.index,ae=v2(K,ee,ne=Math.max(0,ne,Math.min(ce-1,ne)));return oe==="end"?ae=Math.round(ae-K.height+ee.height):oe==="center"&&(ae=Math.round(ae-K.height/2+ee.height/2)),X&&(ae+=X),{top:ae,behavior:Z}})),c);var Q=ka(je(k,it(function(W){return W.offsetBottom+W.bottom})),0);return vt(je(E,it(function(W){return{width:W.visibleWidth,height:W.visibleHeight}})),M),Qn({totalCount:R,viewportDimensions:M,itemDimensions:F,scrollTop:s,overscan:n,scrollBy:l,scrollTo:c,scrollToIndex:D,smoothScrollTargetReached:f,windowViewportRect:E,windowScrollTo:S,useWindowScroll:T,windowScrollTop:C,initialItemCount:N},m,{gridState:k,totalListHeight:Q},v,{startReached:j,endReached:H,rangeChanged:q,propsReady:x})},Zn(UI,ao,Kg,CD,Kf,MD));function g4(e,t,n){var r=t.height;return r===void 0||n.length===0?{top:0,bottom:0}:{top:v2(e,t,n[0].index),bottom:v2(e,t,n[n.length-1].index)+r}}function v2(e,t,n){var r=LD(e.width/t.width);return DI(n/r)*t.height}function FD(e,t){t===void 0&&(t=!0);var n=A.useRef(null),r=function(o){};if(typeof ResizeObserver<"u"){var i=new ResizeObserver(function(o){var s=o[0].target;s.offsetParent!==null&&e(s)});r=function(o){o&&t?(i.observe(o),n.current=o):(n.current&&i.unobserve(n.current),n.current=null)}}return{ref:n,callbackRef:r}}function Ep(e,t){return t===void 0&&(t=!0),FD(e,t).callbackRef}function BD(e){var t=A.useRef(null),n=A.useCallback(function(a){if(a!==null){var l=a.getBoundingClientRect(),c=window.innerHeight-Math.max(0,l.top),f=l.top+window.pageYOffset;t.current={offsetTop:f,visibleHeight:c,visibleWidth:l.width},e(t.current)}},[e]),r=FD(n),i=r.callbackRef,o=r.ref,s=A.useCallback(function(){n(o.current)},[n,o]);return A.useEffect(function(){return window.addEventListener("scroll",s),window.addEventListener("resize",s),function(){window.removeEventListener("scroll",s),window.removeEventListener("resize",s)}},[s]),i}var Wbe=typeof document<"u"?A.useLayoutEffect:A.useEffect;function UD(e,t,n,r){r===void 0&&(r=Sx);var i=A.useRef(null),o=A.useRef(null),s=A.useRef(null),a=A.useCallback(function(l){var c=l.target,f=c===window||c===document?window.pageYOffset||document.documentElement.scrollTop:c.scrollTop;e(Math.max(f,0)),o.current!==null&&(f===o.current||f<=0||f===c.scrollHeight-wf(c,"height"))&&(o.current=null,t(!0),s.current&&(clearTimeout(s.current),s.current=null))},[e,t]);return A.useEffect(function(){var l=i.current;return r(i.current),a({target:l}),l.addEventListener("scroll",a,{passive:!0}),function(){r(null),l.removeEventListener("scroll",a)}},[i,a,n,r]),{scrollerRef:i,scrollByCallback:function(l){o.current===null&&i.current.scrollBy(l)},scrollToCallback:function(l){var c=i.current;if(c){var f,v,m,g=l.behavior==="smooth";if(c===window?(v=Math.max(wf(document.documentElement,"height"),document.documentElement.scrollHeight),f=window.innerHeight,m=document.documentElement.scrollTop):(v=c.scrollHeight,f=wf(c,"height"),m=c.scrollTop),Math.abs(f-v)<1||l.top===m)return e(m),void(g&&t(!0));l.top=Math.max(Math.min(v-f,l.top),0),g?(o.current=l.top,s.current&&clearTimeout(s.current),s.current=setTimeout(function(){s.current=null,o.current=null,t(!0)},1e3)):o.current=null,c.scrollTo(l)}}}}var $I=En(function(e){var t=e[0],n=t.sizes,r=t.listRefresh,i=t.defaultItemSize,o=e[1].scrollTop,s=e[2].scrollToIndex,a=e[3].didMount,l=ut(!0),c=ut(0);return vt(je(a,Vt(c),Bt(function(f){return f[1]!==0}),ug(!1)),l),vn(je(Bi(r,a),Vt(l,n,i),Bt(function(f){var v=f[1],m=f[3];return f[0][1]&&(!Bn(f[2].sizeTree)||m!==void 0)&&!v}),Vt(c)),function(f){var v=f[1];setTimeout(function(){Lf(o,function(){Yn(l,!0)}),Yn(s,v)})}),{scrolledToInitialItem:l,initialTopMostItemIndex:c}},Zn(kl,ao,Qg,Kf),{singleton:!0});function y4(e){return!!e&&(e==="smooth"?"smooth":"auto")}var jbe=En(function(e){var t=e[0],n=t.totalCount,r=t.listRefresh,i=e[1],o=i.isAtBottom,s=i.atBottomState,a=e[2].scrollToIndex,l=e[3].scrolledToInitialItem,c=e[4],f=c.propsReady,v=c.didMount,m=e[5].log,g=ut(!1),x=null;function w(_,E){Yn(a,{index:_-1,align:"end",behavior:E})}return vn(je(Bi(je(Kt(n),Q_(1)),v),Vt(Kt(g),o,l),it(function(_){var E=_[0],S=E[0],T=E[1]&&_[3],C="auto";return T&&(C=function(R,N){return typeof R=="function"?y4(R(N)):N&&y4(R)}(_[1],_[2]),T=T&&!!C),{totalCount:S,shouldFollow:T,followOutputBehavior:C}}),Bt(function(_){return _.shouldFollow})),function(_){var E=_.totalCount,S=_.followOutputBehavior;x&&(x(),x=null),x=Lf(r,function(){w(E,S),x=null})}),vn(je(Bi(Kt(g),n,f),Bt(function(_){return _[0]&&_[2]}),Fu(function(_,E){var S=E[1];return{refreshed:_.value===S,value:S}},{refreshed:!1,value:0}),Bt(function(_){return _.refreshed}),Vt(g,n)),function(_){var E=_[1],S=_[2],T=Lf(s,function(C){!E||C.atBottom||C.notAtBottomBecause!=="SIZE_INCREASED"||x||(qf(m)("scrolling to bottom due to increased size",{totalCount:S},ai.DEBUG),w(S,"auto"))});setTimeout(T,100)}),vn(je(Bi(Kt(g),s),Vt(n)),function(_){var E=_[0],S=E[1];E[0]&&!S.atBottom&&S.notAtBottomBecause==="VIEWPORT_HEIGHT_DECREASING"&&w(_[1],"auto")}),{followOutput:g}},Zn(kl,Kg,Qg,$I,Kf,Yf));function Vbe(e){return e.reduce(function(t,n){return t.groupIndices.push(t.totalCount),t.totalCount+=n+1,t},{totalCount:0,groupIndices:[]})}var DD=En(function(e){var t=e[0],n=t.totalCount,r=t.groupIndices,i=t.sizes,o=e[1],s=o.scrollTop,a=o.headerHeight,l=Ct(),c=Ct(),f=ko(je(l,it(Vbe)));return vt(je(f,it(K_("totalCount"))),n),vt(je(f,it(K_("groupIndices"))),r),vt(je(Bi(s,i,a),Bt(function(v){return Cx(v[1])}),it(function(v){return Ma(v[1].groupOffsetTree,Math.max(v[0]-v[2],0),"v")[0]}),Rr(),it(function(v){return[v]})),c),{groupCounts:l,topItemsIndexes:c}},Zn(kl,ao)),_4={items:[],topItems:[],offsetTop:0,offsetBottom:0,top:0,bottom:0,topListHeight:0,totalCount:0};function b4(e,t,n){if(e.length===0)return[];if(!Cx(t))return e.map(function(f){return Qn({},f,{index:f.index+n,originalIndex:f.index})});for(var r,i=[],o=J_(t.groupOffsetTree,e[0].index,e[e.length-1].index),s=void 0,a=0,l=xf(e);!(r=l()).done;){var c=r.value;(!s||s.end0){o=e[0].offset;var a=e[e.length-1];s=a.offset+a.size}var l=o,c=r.lastOffset+(n-r.lastIndex)*r.lastSize-s;return{items:b4(e,r,i),topItems:b4(t,r,i),topListHeight:t.reduce(function(f,v){return v.size+f},0),offsetTop:o,offsetBottom:c,top:l,bottom:s,totalCount:n}}var x4,w4,GS,Sp=En(function(e){var t=e[0],n=t.sizes,r=t.totalCount,i=t.data,o=t.firstItemIndex,s=e[1],a=e[2],l=a.visibleRange,c=a.listBoundary,f=a.topListHeight,v=e[3],m=v.scrolledToInitialItem,g=v.initialTopMostItemIndex,x=e[4].topListHeight,w=e[5],_=e[6].didMount,E=ut([]),S=Ct();vt(s.topItemsIndexes,E);var T=ka(je(Bi(_,Kt(l),Kt(r),Kt(n),Kt(g),m,Kt(E),Kt(o),i),Bt(function(C){return C[0]}),it(function(C){var R=C[1],N=R[0],k=R[1],M=C[2],F=C[4],D=C[5],H=C[6],j=C[7],q=C[8],Q=C[3],W=Q.sizeTree,K=Q.offsetTree;if(M===0||N===0&&k===0)return _4;if(Bn(W))return $1(function(Se,Le,ze){if(Cx(Le)){var ge=BI(Se,Le);return[{index:Ma(Le.groupOffsetTree,ge)[0],size:0,offset:0},{index:ge,size:0,offset:0,data:ze&&ze[0]}]}return[{index:Se,size:0,offset:0,data:ze&&ze[0]}]}(F,Q,q),[],M,Q,j);var ee=[];if(H.length>0)for(var ce,J=H[0],oe=H[H.length-1],Z=0,X=xf(J_(W,J,oe));!(ce=X()).done;)for(var ne=ce.value,ae=ne.value,ue=Math.max(ne.start,J),_e=Math.min(ne.end,oe),Re=ue;Re<=_e;Re++)ee.push({index:Re,size:ae,offset:Z,data:q&&q[Re]}),Z+=ae;if(!D)return $1([],ee,M,Q,j);var be=H.length>0?H[H.length-1]+1:0,xe=function(Se,Le,ze,ge){return ge===void 0&&(ge=0),ge>0&&(Le=Math.max(Le,ND(Se,ge,FI).offset)),OD((ot=ze,kt=eb(Be=Se,Le,Ge=Fbe),Mt=eb(Be,ot,Ge,kt),Be.slice(kt,Mt+1)),Bbe);var Be,ot,Ge,kt,Mt}(K,N,k,be);if(xe.length===0)return null;var Ae=M-1;return $1(Ex([],function(Se){for(var Le,ze=xf(xe);!(Le=ze()).done;){var ge=Le.value,Be=ge.value,ot=Be.offset,Ge=ge.start,kt=Be.size;Be.offset=k);Tt++)Se.push({index:Tt,size:kt,offset:ot,data:q&&q[Tt]}),ot+=kt}}),ee,M,Q,j)}),Bt(function(C){return C!==null}),Rr()),_4);return vt(je(i,Bt(function(C){return C!==void 0}),it(function(C){return C.length})),r),vt(je(T,it(K_("topListHeight"))),x),vt(x,f),vt(T,w.listStateListener),vt(je(T,it(function(C){return[C.top,C.bottom]})),c),vt(je(T,it(function(C){return C.items})),S),Qn({listState:T,topItemsIndexes:E,endReached:ko(je(T,Bt(function(C){return C.items.length>0}),Vt(r,i),Bt(function(C){var R=C[0].items;return R[R.length-1].originalIndex===C[1]-1}),it(function(C){return[C[1]-1,C[2]]}),Rr(Z_),it(function(C){return C[0]}))),startReached:ko(je(T,LI(200),Bt(function(C){var R=C.items;return R.length>0&&R[0].originalIndex===C.topItems.length}),it(function(C){return C.items[0].index}),Rr())),rangeChanged:ko(je(T,Bt(function(C){return C.items.length>0}),it(function(C){var R=C.items;return{startIndex:R[0].index,endIndex:R[R.length-1].index}}),Rr(TD))),itemsRendered:S},w)},Zn(kl,DD,UI,$I,Qg,Kg,Kf),{singleton:!0}),Xbe=En(function(e){var t=e[0],n=t.sizes,r=t.firstItemIndex,i=t.data,o=e[1].listState,s=e[2].didMount,a=ut(0);return vt(je(s,Vt(a),Bt(function(l){return l[1]!==0}),Vt(n,r,i),it(function(l){var c=l[0][1],f=l[1],v=l[2],m=l[3],g=m===void 0?[]:m,x=0;if(f.groupIndices.length>0)for(var w,_=xf(f.groupIndices);!((w=_()).done||w.value-x>=c);)x++;var E=c+x;return $1(Array.from({length:E}).map(function(S,T){return{index:T,size:0,offset:0,data:g[T]}}),[],E,f,v)})),o),{initialItemCount:a}},Zn(kl,Sp,Kf),{singleton:!0}),qbe=En(function(e){var t=e[0].topItemsIndexes,n=ut(0);return vt(je(n,Bt(function(r){return r>0}),it(function(r){return Array.from({length:r}).map(function(i,o){return o})})),t),{topItemCount:n}},Zn(Sp)),zI=En(function(e){var t=e[0],n=t.footerHeight,r=t.headerHeight,i=e[1].listState,o=Ct(),s=ka(je(Bi(n,r,i),it(function(a){var l=a[2];return a[0]+a[1]+l.offsetBottom+l.bottom})),0);return vt(Kt(s),o),{totalListHeight:s,totalListHeightChanged:o}},Zn(ao,Sp),{singleton:!0}),Ybe=En(function(e){var t=e[0],n=t.scrollBy,r=t.scrollTop,i=t.scrollDirection,o=t.deviation,s=t.scrollingInProgress,a=e[1].isScrolling,l=e[3],c=l.beforeUnshiftWith,f=l.sizes,v=e[4].log,m=ko(je(e[2].listState,Fu(function(g,x){var w=g[1],_=x.items,E=0;if(w.length>0&&_.length>0){var S=_[0].originalIndex,T=w[0].originalIndex;if(S!==0||T!==0)if(S===T)E=_[0].size-w[0].size;else for(var C=function(k){var M=_[k],F=w.find(function(D){return D.originalIndex===M.originalIndex});return F?M.offset!==F.offset?(E=M.offset-F.offset,"break"):void 0:"continue"},R=_.length-1;R>=0;R--){var N=C(R);if(N!=="continue"&&N==="break")break}}return[E,_]},[0,[]]),Bt(function(g){return g[0]!==0}),Vt(r,i,s,v),Bt(function(g){return!g[3]&&g[1]!==0&&g[2]===cg}),it(function(g){var x=g[0][0];return(0,g[4])("Upward scrolling compensation",{amount:x},ai.DEBUG),x})));return vt(je(m,Vt(o),it(function(g){return g[1]-g[0]})),o),vn(je(Bi(ka(a,!1),o),Bt(function(g){return!g[0]&&g[1]!==0}),it(function(g){return g[1]}),LI(1)),function(g){g>0?(Yn(n,{top:-g,behavior:"auto"}),Yn(o,0)):(Yn(o,0),Yn(n,{top:-g,behavior:"auto"}))}),vt(je(c,Vt(f),it(function(g){return g[0]*g[1].lastSize})),m),{deviation:o}},Zn(ao,Kg,Sp,kl,Yf)),Kbe=En(function(e){var t=e[0].totalListHeight,n=e[1].didMount,r=e[2].scrollTo,i=ut(0);return vn(je(n,Vt(i),Bt(function(o){return o[1]!==0}),it(function(o){return{top:o[1]}})),function(o){Lf(je(t,Bt(function(s){return s!==0})),function(){setTimeout(function(){Yn(r,o)})})}),{initialScrollTop:i}},Zn(zI,Kf,ao),{singleton:!0}),Qbe=En(function(e){var t=e[0].viewportHeight,n=e[1].totalListHeight,r=ut(!1);return{alignToBottom:r,paddingTopAddition:ka(je(Bi(r,t,n),Bt(function(i){return i[0]}),it(function(i){return Math.max(0,i[1]-i[2])}),Rr()),0)}},Zn(ao,zI),{singleton:!0}),Zbe=En(function(e){var t=e[0],n=t.sizes,r=t.totalCount,i=e[1],o=i.scrollTop,s=i.viewportHeight,a=i.headerHeight,l=i.scrollingInProgress,c=e[2].scrollToIndex,f=Ct();return vt(je(f,Vt(n,s,r,a,o),it(function(v){var m=v[0],g=m.index,x=m.behavior,w=x===void 0?"auto":x,_=m.done,E=v[1],S=v[2],T=v[4],C=v[5],R=v[3]-1,N=null;g=BI(g,E);var k=Tx(g=Math.max(0,g,Math.min(R,g)),E.offsetTree)+T;return kC+S&&(N={index:g,behavior:w,align:"end"}),N?_&&Lf(je(l,Q_(1),Bt(function(M){return M===!1})),_):_&&_(),N}),Bt(function(v){return v!==null})),c),{scrollIntoView:f}},Zn(kl,ao,Qg,Sp,Yf),{singleton:!0}),Jbe=En(function(e){return Qn({},e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8])},Zn(UI,Xbe,Kf,CD,zI,Kbe,Qbe,MD,Zbe)),exe=En(function(e){var t=e[0],n=t.totalCount,r=t.sizeRanges,i=t.fixedItemSize,o=t.defaultItemSize,s=t.trackItemSizes,a=t.itemSize,l=t.data,c=t.firstItemIndex,f=t.groupIndices,v=e[1],m=v.initialTopMostItemIndex,g=v.scrolledToInitialItem,x=e[2],w=e[3],_=e[4],E=_.listState,S=_.topItemsIndexes,T=Yg(_,["listState","topItemsIndexes"]),C=e[5].scrollToIndex,R=e[7].topItemCount,N=e[8].groupCounts,k=e[9],M=e[10];return vt(T.rangeChanged,k.scrollSeekRangeChanged),vt(je(k.windowViewportRect,it(K_("visibleHeight"))),x.viewportHeight),Qn({totalCount:n,data:l,firstItemIndex:c,sizeRanges:r,initialTopMostItemIndex:m,scrolledToInitialItem:g,topItemsIndexes:S,topItemCount:R,groupCounts:N,fixedItemHeight:i,defaultItemHeight:o},w,{listState:E,scrollToIndex:C,trackItemSizes:s,itemSize:a,groupIndices:f},T,k,x,M)},Zn(kl,$I,ao,jbe,Sp,Qg,Ybe,qbe,DD,Jbe,Yf)),$D=(x4=function(){if(typeof document>"u")return"sticky";var e=document.createElement("div");return e.style.position="-webkit-sticky",e.style.position==="-webkit-sticky"?"-webkit-sticky":"sticky"},GS=!1,function(){return GS||(GS=!0,w4=x4()),w4});function zD(e){return e}var txe=En(function(){var e=ut(function(a){return"Item "+a}),t=ut(function(a){return"Group "+a}),n=ut({}),r=ut(zD),i=ut("div"),o=ut(Sx),s=function(a,l){return l===void 0&&(l=null),ka(je(n,it(function(c){return c[a]}),Rr()),l)};return{itemContent:e,groupContent:t,components:n,computeItemKey:r,headerFooterTag:i,scrollerRef:o,FooterComponent:s("Footer"),HeaderComponent:s("Header"),TopItemListComponent:s("TopItemList"),ListComponent:s("List","div"),ItemComponent:s("Item","div"),GroupComponent:s("Group","div"),ScrollerComponent:s("Scroller","div"),EmptyPlaceholder:s("EmptyPlaceholder"),ScrollSeekPlaceholder:s("ScrollSeekPlaceholder")}});function md(e,t){var n=Ct();return vn(n,function(){return console.warn("react-virtuoso: You are using a deprecated property. "+t,"color: red;","color: inherit;","color: blue;")}),vt(n,e),n}var nxe=En(function(e){var t=e[0],n=e[1],r={item:md(n.itemContent,"Rename the %citem%c prop to %citemContent."),group:md(n.groupContent,"Rename the %cgroup%c prop to %cgroupContent."),topItems:md(t.topItemCount,"Rename the %ctopItems%c prop to %ctopItemCount."),itemHeight:md(t.fixedItemHeight,"Rename the %citemHeight%c prop to %cfixedItemHeight."),scrollingStateChange:md(t.isScrolling,"Rename the %cscrollingStateChange%c prop to %cisScrolling."),adjustForPrependedItems:Ct(),maxHeightCacheSize:Ct(),footer:Ct(),header:Ct(),HeaderContainer:Ct(),FooterContainer:Ct(),ItemContainer:Ct(),ScrollContainer:Ct(),GroupContainer:Ct(),ListContainer:Ct(),emptyComponent:Ct(),scrollSeek:Ct()};function i(o,s,a){vt(je(o,Vt(n.components),it(function(l){var c,f=l[0],v=l[1];return console.warn("react-virtuoso: "+a+" property is deprecated. Pass components."+s+" instead."),Qn({},v,((c={})[s]=f,c))})),n.components)}return vn(r.adjustForPrependedItems,function(){console.warn("react-virtuoso: adjustForPrependedItems is no longer supported. Use the firstItemIndex property instead - https://virtuoso.dev/prepend-items.","color: red;","color: inherit;","color: blue;")}),vn(r.maxHeightCacheSize,function(){console.warn("react-virtuoso: maxHeightCacheSize is no longer necessary. Setting it has no effect - remove it from your code.")}),vn(r.HeaderContainer,function(){console.warn("react-virtuoso: HeaderContainer is deprecated. Use headerFooterTag if you want to change the wrapper of the header component and pass components.Header to change its contents.")}),vn(r.FooterContainer,function(){console.warn("react-virtuoso: FooterContainer is deprecated. Use headerFooterTag if you want to change the wrapper of the footer component and pass components.Footer to change its contents.")}),vn(r.scrollSeek,function(o){var s=o.placeholder,a=Yg(o,["placeholder"]);console.warn("react-virtuoso: scrollSeek property is deprecated. Pass scrollSeekConfiguration and specify the placeholder in components.ScrollSeekPlaceholder instead."),Yn(n.components,Qn({},qf(n.components),{ScrollSeekPlaceholder:s})),Yn(t.scrollSeekConfiguration,a)}),i(r.footer,"Footer","footer"),i(r.header,"Header","header"),i(r.ItemContainer,"Item","ItemContainer"),i(r.ListContainer,"List","ListContainer"),i(r.ScrollContainer,"Scroller","ScrollContainer"),i(r.emptyComponent,"EmptyPlaceholder","emptyComponent"),i(r.GroupContainer,"Group","GroupContainer"),Qn({},t,n,r)},Zn(exe,txe)),rxe=function(e){return A.createElement("div",{style:{height:e.height}})},ixe={position:$D(),zIndex:1},E4=A.memo(function(e){var t,n,r,i,o=e.showTopList,s=o!==void 0&&o,a=pn("listState"),l=pn("deviation"),c=Qf("sizeRanges"),f=pn("itemContent"),v=pn("groupContent"),m=pn("trackItemSizes"),g=(t=c,n=pn("itemSize"),r=m,i=pn("log"),Ep(function(D){var H=function(j,q,Q,W){var K=j.length;if(K===0)return null;for(var ee=[],ce=0;ce0,N=pn("paddingTopAddition"),k=pn("scrolledToInitialItem"),M=pn("firstItemIndex"),F=s?{}:{boxSizing:"border-box",paddingTop:a.offsetTop+N,paddingBottom:a.offsetBottom,marginTop:l};return!s&&a.items.length===0&&x&&k?A.createElement(x):A.createElement(_,{ref:g,style:F,"data-test-id":s?"virtuoso-top-item-list":"virtuoso-item-list"},(s?a.topItems:a.items).map(function(D){var H=D.originalIndex,j=T(H+M,D.data);return C?A.createElement(w,{key:j,index:D.index,height:D.size}):D.type==="group"?A.createElement(S,{key:j,"data-index":H,"data-known-size":D.size,"data-item-index":D.index,style:ixe},v(D.index)):A.createElement(E,{key:j,"data-index":H,"data-known-size":D.size,"data-item-index":D.index,"data-item-group-index":D.groupIndex},R?f(D.index,D.groupIndex,D.data):f(D.index,D.data))}))}),oxe={height:"100%",outline:"none",overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},Rx={width:"100%",height:"100%",position:"absolute",top:0},sxe={width:"100%",position:$D(),top:0},axe=A.memo(function(){var e=pn("HeaderComponent"),t=Qf("headerHeight"),n=pn("headerFooterTag"),r=Ep(function(i){return t(wf(i,"height"))});return e?A.createElement(n,{ref:r},A.createElement(e)):null}),lxe=A.memo(function(){var e=pn("FooterComponent"),t=Qf("footerHeight"),n=pn("headerFooterTag"),r=Ep(function(i){return t(wf(i,"height"))});return e?A.createElement(n,{ref:r},A.createElement(e)):null});function HD(e){var t=e.usePublisher,n=e.useEmitter,r=e.useEmitterValue;return A.memo(function(i){var o=i.style,s=i.children,a=Yg(i,["style","children"]),l=t("scrollTop"),c=r("ScrollerComponent"),f=UD(l,t("smoothScrollTargetReached"),c,r("scrollerRef")),v=f.scrollerRef,m=f.scrollByCallback;return n("scrollTo",f.scrollToCallback),n("scrollBy",m),A.createElement(c,Qn({ref:v,style:Qn({},oxe,o),tabIndex:0},a),s)})}function GD(e){var t=e.usePublisher,n=e.useEmitter,r=e.useEmitterValue;return A.memo(function(i){var o=i.style,s=i.children,a=Yg(i,["style","children"]),l=t("windowScrollTop"),c=r("ScrollerComponent"),f=t("smoothScrollTargetReached"),v=r("totalListHeight"),m=UD(l,f,c),g=m.scrollerRef,x=m.scrollByCallback,w=m.scrollToCallback;return Wbe(function(){return g.current=window,function(){g.current=null}},[g]),n("windowScrollTo",w),n("scrollBy",x),A.createElement(c,Qn({style:Qn({position:"relative"},o,v!==0?{height:v}:{})},a),s)})}var uxe=function(e){var t=e.children,n=Qf("viewportHeight"),r=Ep(xD(n,function(i){return wf(i,"height")}));return A.createElement("div",{style:Rx,ref:r},t)},cxe=function(e){var t=e.children,n=BD(Qf("windowViewportRect"));return A.createElement("div",{ref:n,style:Rx},t)},fxe=function(e){var t=e.children,n=pn("TopItemListComponent"),r=pn("headerHeight"),i=Qn({},sxe,{marginTop:r+"px"});return A.createElement(n||"div",{style:i},t)},Ix=SD(nxe,{required:{},optional:{followOutput:"followOutput",firstItemIndex:"firstItemIndex",itemContent:"itemContent",groupContent:"groupContent",overscan:"overscan",increaseViewportBy:"increaseViewportBy",totalCount:"totalCount",topItemCount:"topItemCount",initialTopMostItemIndex:"initialTopMostItemIndex",components:"components",groupCounts:"groupCounts",computeItemKey:"computeItemKey",defaultItemHeight:"defaultItemHeight",fixedItemHeight:"fixedItemHeight",itemSize:"itemSize",scrollSeekConfiguration:"scrollSeekConfiguration",headerFooterTag:"headerFooterTag",data:"data",initialItemCount:"initialItemCount",initialScrollTop:"initialScrollTop",alignToBottom:"alignToBottom",useWindowScroll:"useWindowScroll",scrollerRef:"scrollerRef",logLevel:"logLevel",item:"item",group:"group",topItems:"topItems",itemHeight:"itemHeight",scrollingStateChange:"scrollingStateChange",maxHeightCacheSize:"maxHeightCacheSize",footer:"footer",header:"header",ItemContainer:"ItemContainer",ScrollContainer:"ScrollContainer",ListContainer:"ListContainer",GroupContainer:"GroupContainer",emptyComponent:"emptyComponent",HeaderContainer:"HeaderContainer",FooterContainer:"FooterContainer",scrollSeek:"scrollSeek"},methods:{scrollToIndex:"scrollToIndex",scrollIntoView:"scrollIntoView",scrollTo:"scrollTo",scrollBy:"scrollBy",adjustForPrependedItems:"adjustForPrependedItems"},events:{isScrolling:"isScrolling",endReached:"endReached",startReached:"startReached",rangeChanged:"rangeChanged",atBottomStateChange:"atBottomStateChange",atTopStateChange:"atTopStateChange",totalListHeightChanged:"totalListHeightChanged",itemsRendered:"itemsRendered",groupIndices:"groupIndices"}},A.memo(function(e){var t=pn("useWindowScroll"),n=pn("topItemsIndexes").length>0,r=t?cxe:uxe;return A.createElement(t?pxe:dxe,Qn({},e),A.createElement(r,null,A.createElement(axe,null),A.createElement(E4,null),A.createElement(lxe,null)),n&&A.createElement(fxe,null,A.createElement(E4,{showTopList:!0})))})),hxe=Ix.Component,Qf=Ix.usePublisher,pn=Ix.useEmitterValue,WD=Ix.useEmitter,dxe=HD({usePublisher:Qf,useEmitterValue:pn,useEmitter:WD}),pxe=GD({usePublisher:Qf,useEmitterValue:pn,useEmitter:WD}),vxe=En(function(){var e=ut(function(a){return"Item "+a}),t=ut({}),n=ut("virtuoso-grid-item"),r=ut("virtuoso-grid-list"),i=ut(zD),o=ut(Sx),s=function(a,l){return l===void 0&&(l=null),ka(je(t,it(function(c){return c[a]}),Rr()),l)};return{itemContent:e,components:t,computeItemKey:i,itemClassName:n,listClassName:r,scrollerRef:o,ListComponent:s("List","div"),ItemComponent:s("Item","div"),ScrollerComponent:s("Scroller","div"),ScrollSeekPlaceholder:s("ScrollSeekPlaceholder","div")}}),mxe=En(function(e){var t=e[0],n=e[1],r={item:md(n.itemContent,"Rename the %citem%c prop to %citemContent."),ItemContainer:Ct(),ScrollContainer:Ct(),ListContainer:Ct(),emptyComponent:Ct(),scrollSeek:Ct()};function i(o,s,a){vt(je(o,Vt(n.components),it(function(l){var c,f=l[0],v=l[1];return console.warn("react-virtuoso: "+a+" property is deprecated. Pass components."+s+" instead."),Qn({},v,((c={})[s]=f,c))})),n.components)}return vn(r.scrollSeek,function(o){var s=o.placeholder,a=Yg(o,["placeholder"]);console.warn("react-virtuoso: scrollSeek property is deprecated. Pass scrollSeekConfiguration and specify the placeholder in components.ScrollSeekPlaceholder instead."),Yn(n.components,Qn({},qf(n.components),{ScrollSeekPlaceholder:s})),Yn(t.scrollSeekConfiguration,a)}),i(r.ItemContainer,"Item","ItemContainer"),i(r.ListContainer,"List","ListContainer"),i(r.ScrollContainer,"Scroller","ScrollContainer"),Qn({},t,n,r)},Zn(Gbe,vxe)),gxe=A.memo(function(){var e=es("gridState"),t=es("listClassName"),n=es("itemClassName"),r=es("itemContent"),i=es("computeItemKey"),o=es("isSeeking"),s=es("ItemComponent"),a=es("ListComponent"),l=es("ScrollSeekPlaceholder"),c=Zg("itemDimensions"),f=Ep(function(v){var m=v.firstChild;m&&c(m.getBoundingClientRect())});return A.createElement(a,{ref:f,className:t,style:{paddingTop:e.offsetTop,paddingBottom:e.offsetBottom}},e.items.map(function(v){var m=i(v.index);return o?A.createElement(l,{key:m,style:{height:e.itemHeight,width:e.itemWidth}}):A.createElement(s,{className:n,"data-index":v.index,key:m},r(v.index))}))}),yxe=function(e){var t=e.children,n=Zg("viewportDimensions"),r=Ep(function(i){n(i.getBoundingClientRect())});return A.createElement("div",{style:Rx,ref:r},t)},_xe=function(e){var t=e.children,n=BD(Zg("windowViewportRect"));return A.createElement("div",{ref:n,style:Rx},t)},HI=SD(mxe,{optional:{totalCount:"totalCount",overscan:"overscan",itemContent:"itemContent",components:"components",computeItemKey:"computeItemKey",initialItemCount:"initialItemCount",scrollSeekConfiguration:"scrollSeekConfiguration",listClassName:"listClassName",itemClassName:"itemClassName",useWindowScroll:"useWindowScroll",scrollerRef:"scrollerRef",item:"item",ItemContainer:"ItemContainer",ScrollContainer:"ScrollContainer",ListContainer:"ListContainer",scrollSeek:"scrollSeek"},methods:{scrollTo:"scrollTo",scrollBy:"scrollBy",scrollToIndex:"scrollToIndex"},events:{isScrolling:"isScrolling",endReached:"endReached",startReached:"startReached",rangeChanged:"rangeChanged",atBottomStateChange:"atBottomStateChange",atTopStateChange:"atTopStateChange"}},A.memo(function(e){var t=Qn({},e),n=es("useWindowScroll"),r=n?_xe:yxe;return A.createElement(n?xxe:bxe,Qn({},t),A.createElement(r,null,A.createElement(gxe,null)))})),Zg=HI.usePublisher,es=HI.useEmitterValue,jD=HI.useEmitter,bxe=HD({usePublisher:Zg,useEmitterValue:es,useEmitter:jD}),xxe=GD({usePublisher:Zg,useEmitterValue:es,useEmitter:jD}),wxe=hxe;function Exe({items:e=[],renderItem:t,listOptions:n,...r}){return L(sn,{...r,children:L(wxe,{totalCount:e.length,itemContent:i=>t==null?void 0:t(e[i],i),...n})})}function VD({event:e,hidden:t}){return Oe(LU,{children:[L(MU,{sx:{color:w_e(e==null?void 0:e.type),mr:1}}),`${(e==null?void 0:e.type)??"unsupported"} #${(e==null?void 0:e.id)??"-"}`," ",t&&L(hie,{sx:{opacity:.56,fontSize:12,ml:1,transform:"translateY(1.75px)"}})]})}function m2({label:e,value:t,type:n}){return Oe(yr,{width:"auto",mr:3,mt:.5,children:[L(Fn,{sx:{opacity:.54},...n,children:e}),L(Po,{}),L(Fn,{...n,children:t})]},`${e}::${t}`)}function XD({event:e,variant:t="body2",...n}){return L(yr,{flexWrap:"wrap",...n,children:de.map(de.filter([["f",e==null?void 0:e.f],["g",e==null?void 0:e.g],...de.entries(e==null?void 0:e.variables),["pId",e==null?void 0:e.pId],["info",e==null?void 0:e.info]],([,r])=>r!==void 0),([r,i])=>L(m2,{label:r,value:i,type:{variant:t}}))})}function Sxe({event:e,index:t,selected:n,...r}){const i=JR(),[{specimen:o}]=Ri(),[{code:s},a]=ci(),l=n?{color:"primary.contrastText",bgcolor:"primary.main"}:i,c=e?!bI(s??"","shouldRender",[t??0,e,(o==null?void 0:o.eventList)??[]]):!1;return L(Lg,{...r,sx:{...l,...r.sx},children:L(JQ,{sx:{p:2,height:"100%"},onClick:()=>a({step:t}),children:Oe(yr,{alignItems:"center",children:[L(Fn,{children:t}),L(dp,{sx:{mx:2},flexItem:!0,orientation:"vertical"}),Oe(sn,{children:[L(VD,{event:e,hidden:c}),L(XD,{event:e})]})]})})})}function Txe(){return Oe(u2,{sx:{width:"100%",height:"fit-content"},children:[L("p",{children:L(wie,{})}),L("p",{children:"Select a source & destination node on the map to see the steps here."})]})}function Cxe(e){var s;const[t]=ox(),[{step:n=0,playback:r}]=ci(),[{specimen:i}]=Ri(),o=A.useRef(null);return A.useEffect(()=>{r==="paused"&&de.delay(()=>{var a,l;return(l=(a=o==null?void 0:o.current)==null?void 0:a.scrollToIndex)==null?void 0:l.call(a,{index:n,align:"start",behavior:"smooth",offset:-16})},150)},[n,r]),L(yr,{vertical:!0,alignItems:"center",children:t.map||t.specimen?L(TB,{}):(s=i==null?void 0:i.eventList)!=null&&s.length?L(Exe,{...e,items:i==null?void 0:i.eventList,listOptions:{ref:o},renderItem:(a,l)=>L(yr,{p:2,pt:l?0:2,children:L(Sxe,{sx:{flex:1},event:a,index:l,selected:l===n})})}):L(yr,{children:L(Txe,{})})})}function Rxe(e){const[{playback:t}]=ci(),[n,r]=A.useState("steps");return L(rI,{value:n,children:Oe(yr,{vertical:!0,sx:{pointerEvents:"none",transition:({transitions:i})=>i.create("background"),bgcolor:({palette:i})=>n?Mn(i.background.default,.94):"transparent"},alignItems:"center",...e,children:[L(_be,{children:[{icon:L(Eie,{}),key:"steps"},{key:"info"},{key:"parameters"}].map(({key:i,icon:o})=>L(Bg,{title:de.startCase(i),children:L(hp,{onClick:()=>r(i===n?"":i),color:"primary",variant:i===n?"contained":"text",startIcon:o,children:de.startCase(i)})}))}),[{key:"steps",content:L(If,{unmountOnExit:!0,mountOnEnter:!0,in:t==="paused",children:L(Rd,{height:"100%",width:"100%",pl:1,children:L(Cxe,{height:"100%",width:"100%"})})})},{key:"info",content:L(u2,{children:"No info to show."})},{key:"parameters",content:L(u2,{children:"No parameters to show."})}].map(({content:i,key:o})=>L(Xm,{value:o,sx:{pointerEvents:"all",flex:1,p:0,width:"100%"},children:i}))]})})}function nb({primary:e,secondary:t}){return Oe(yr,{children:[L(sn,{children:e}),L(Po,{}),L(sn,{sx:{opacity:.56},children:t})]})}function Ixe({selection:e,onClose:t}){var c,f;const n=gp(),[,r]=ci(),{global:i,info:o}=e??{},{current:s,entry:a,node:l}=o??{};return Oe(KR,{open:!!e,anchorReference:"anchorPosition",anchorPosition:{top:(i==null?void 0:i.y)??0,left:(i==null?void 0:i.x)??0},onClose:t,children:[L(kee,{children:Oe(SN,{children:[Oe(sn,{children:[L(LU,{children:"Point"}),L(m2,{label:"x",value:((c=o==null?void 0:o.point)==null?void 0:c.x)??"-"}),L(m2,{label:"y",value:((f=o==null?void 0:o.point)==null?void 0:f.y)??"-"})]}),(s==null?void 0:s.event)&&Oe(sn,{mt:2,children:[L(VD,{event:s==null?void 0:s.event}),L(XD,{event:s==null?void 0:s.event,variant:"body1",vertical:!0})]})]})}),L(dp,{sx:{my:1}}),de.map([{label:"Set Origin",icon:L(Tie,{sx:{transform:"scale(0.5)"}}),action:()=>{n("Origin set."),r({start:l==null?void 0:l.key})},disabled:!l},{label:"Set Destination",icon:L(mie,{}),action:()=>{n("Destination set."),r({end:l==null?void 0:l.key})},disabled:!l},{label:L(nb,{primary:"Go to Expansion Step",secondary:a==null?void 0:a.index}),action:()=>r({step:(a==null?void 0:a.index)??0,playback:"paused"}),disabled:!a},{label:L(nb,{primary:"Rewind to This Step",secondary:s==null?void 0:s.index}),action:()=>r({step:(s==null?void 0:s.index)??0,playback:"paused"}),disabled:!s}],({label:v,icon:m,action:g,disabled:x})=>Oe(QR,{disabled:x,onClick:()=>{g(),t==null||t()},children:[L($ee,{children:m}),L(SN,{children:v})]}))]})}function Pxe(e){const[t]=ox(),[{specimen:n,format:r,map:i}]=Ri(),o=ybe(r),[s,a]=A.useState(void 0);return Oe(an,{children:[L(If,{in:de.some(de.values(t)),children:L(cee,{variant:"indeterminate",sx:{mb:-.5,zIndex:1}})}),L(yr,{...e,children:n?Oe(yr,{children:[L(mI,{children:l=>L(If,{appear:!0,in:!0,children:L(sn,{children:A.createElement(o,{...l,key:i,onSelect:a,selection:s==null?void 0:s.world})})})}),L(Rxe,{position:"absolute",right:0,height:"100%",width:"25vw",minWidth:480})]}):Oe(yr,{justifyContent:"center",alignItems:"center",color:"text.secondary",vertical:!0,children:[L(iie,{sx:{mb:2},fontSize:"large"}),"Select a map to get started."]})}),L(Ixe,{selection:s,onClose:()=>a(void 0)})]})}function Oxe(){return Oe(yr,{vertical:!0,sx:{bgcolor:"background.default"},children:[L(Sue,{}),L(Pxe,{flex:1})]})}function Axe(e){return new Promise(t=>de.delay(t,e))}async function Nxe(e,t=2500){const n=de.now();return{result:await Promise.any([e(),Axe(t)]),delta:de.now()-n}}function kxe(){const e=gp(),[{remote:t}]=mp(),[,n]=Ug(),r=sx("connections");return A.useEffect(()=>{let i=!1,o=[];return r(async()=>{e("Connecting...");for(const{transport:s,url:a,disabled:l}of t??[]){if(!l){const c=new(Yae(s))({url:a});await c.connect();const{result:f,delta:v}=await Nxe(()=>c.call("about"));f?o=[...o,{...f,url:a,ping:v,call:c.call.bind(c),disconnect:c.disconnect.bind(c)}]:await c.disconnect()}i||n(o)}i||e(`Connected to ${o.length} of ${t==null?void 0:t.length} solvers.`)}),()=>{i=!0,o.map(s=>s.disconnect())}},[t,n,e,r]),L(an,{})}function Mxe(){const[{specimen:e}]=Ri(),[{code:t,breakpoints:n=[],monotonicF:r,monotonicG:i}]=ci();return A.useMemo(()=>{const o=de.keyBy(e==null?void 0:e.eventList,"id");return de.memoize(s=>{var l,c;const a=(l=e==null?void 0:e.eventList)==null?void 0:l[s];if(a)try{if(s){for(const f of[r&&"f",i&&"g"])if(f&&de.get(o[`${a.pId}`],f)>de.get(a,f))return{result:`Monotonicity violation on ${f}`}}for(const{active:f,condition:v,type:m,property:g="",reference:x=0}of n){const w=!m||m===a.type,_=(c=v==null?void 0:v.apply)==null?void 0:c.call(v,de.get(a,g),x);if(f&&w&&_)return{result:`${g} ${de.lowerCase(de.startCase(v==null?void 0:v.key))} ${x}`}}if(bI(t??"","shouldBreak",[s,a,(e==null?void 0:e.eventList)??[]]))return{result:"Script editor"}}catch(f){return{error:`${f}`}}return{result:""}})},[t,e,n,r,i])}function Lxe(e,t){let n=!1;return requestAnimationFrame(async()=>{const r=await e();n||t(r)}),()=>{n=!0}}function Fxe(){WB();const e=gp(),[{playbackRate:t=1}]=mp(),{playing:n,end:r,step:i,pause:o,tick:s}=iU(),a=Mxe(),l=A.useCallback((c,f)=>L(nb,{primary:c,secondary:`Step ${i+f}`}),[i]);return A.useEffect(()=>{if(n)return i{for(const c of de.range(t)){const f=a(i+c);if(f.result||f.error)return{...f,offset:c}}return{result:"",offset:0}},({result:c,offset:f,error:v})=>{v?(e(l(`${de.trimEnd(v,".")}.`,f)),o()):c?(e(l(`Breakpoint hit: ${c}.`,f)),o(f)):s(t)}):o()},[l,n,r,i,o,s,e,a,t]),L(an,{})}function hg(){return hg=Object.assign||function(e){for(var t=1;tt=>({...t,source:e});function Yxe(){const[e]=Ug(),[,t]=eI(),n=sx("features");return KD(r=>n(async()=>{const i={algorithms:[],formats:[],maps:[]};for(const{call:o,url:s}of e)for(const a of["algorithms","formats","maps"])i[a]=de.uniqBy([...i[a],...de.map(await o(`features/${a}`),qxe(s))],"id");r.aborted||t(i)}),[e,t]),L(an,{})}function Kxe(){const e=gp(),t=sx("map"),n=ix(),[{map:r}]=ci(),i=A.useMemo(()=>de.memoize(async({source:o,id:s}={})=>{if(o&&s){const a=n({url:o});if(a){e("Fetching map...");const l=await a.call("features/map",{id:s});return l==null?void 0:l.content}}},JSON.stringify),[n,e]);return YD(()=>t(async()=>{if(r&&r.id)return{...r,content:r.content?r.content:await i(r)}}),[i,r,t])}const Qxe=e=>async t=>{const n=new e,r=await t(n);return n.terminate(),r},Zxe=e=>t=>Qxe(e)(n=>(n.postMessage(t),new Promise(r=>{n.onmessage=i=>{r(i.data)}}))),Jxe=de.memoize(Zxe(Xoe));async function ewe(e,{format:t,...n},r){if(e)for(const i of[`hash:${await Jxe(e)}`,`map:${encodeURIComponent(e)}`]){const o={...n,format:t,mapURI:i};try{const s=await r("solve/pathfinding",o);if(s)return{...o,specimen:s,map:e,format:(s==null?void 0:s.format)??t}}catch(s){return{...o,specimen:{},map:e,format:t,error:s.message}}}}function twe(){const e=sx("specimen"),t=gp(),[{formats:n}]=eI(),[{algorithm:r,start:i,end:o,parameters:s},a]=ci(),l=ix(),[c]=Ug(),[,f]=Ri(),{result:v}=Kxe();return KD(m=>e(async()=>{var g,x;if(v!=null&&v.format&&(v!=null&&v.content)){let w;for(const _ of c){const E=await _.call("features/algorithms"),S=await _.call("features/formats");if(de.find(E,{id:r})&&de.find(S,{id:v==null?void 0:v.format})){w=_;break}}if(w){const _=await ewe((v==null?void 0:v.content)??"",{algorithm:r,format:(v==null?void 0:v.format)??"",instances:[{end:o,start:i}],parameters:s},w.call);_&&!m.aborted&&(f(_),a({step:0,playback:"paused",breakpoints:[]}),t(_.error??(de.isEmpty(_.specimen)?"Ready.":L(nb,{primary:"Solution generated.",secondary:`${(x=(g=_.specimen)==null?void 0:g.eventList)==null?void 0:x.length} steps`}))))}else t(`No solver is available for the map format (${(v==null?void 0:v.format)??"none"}) and algorithm (${r??"none"}).`)}}),[r,i,o,v,t,e,n,l,f,s]),L(an,{})}function nwe({slices:e,children:t,services:n}){return L(an,{children:de.reduce(de.map(e,r=>A.createElement(r)),(r,i)=>A.cloneElement(i,{},r),Oe(an,{children:[t,de.map(n,(r,i)=>A.createElement(r,{key:i}))]}))})}const rwe=[Zre,Mie,Lie,kie,voe,rle],iwe=[kxe,Fxe,twe,Yxe];Rm.render(L(A.StrictMode,{children:L(wZ,{children:L(Vj,{theme:eie,children:L(Cie,{children:L(nwe,{slices:rwe,services:iwe,children:L(Oxe,{})})})})})}),document.getElementById("root"))});export default owe(); diff --git a/index.html b/index.html index 68a23195..f8b39f7a 100644 --- a/index.html +++ b/index.html @@ -19,7 +19,7 @@ href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap" /> Path Search Visualiser - +