diff --git a/assets/a-star-grid-search-heat-map-0f76793f.js b/assets/a-star-grid-search-heat-map-0f76793f.js new file mode 100644 index 00000000..1a0341a1 --- /dev/null +++ b/assets/a-star-grid-search-heat-map-0f76793f.js @@ -0,0 +1 @@ +const a=""+new URL("a-star-grid-search-heat-map-3f23ea2f.workspace",import.meta.url).href;export{a as default}; diff --git a/assets/a-star-grid-search-heat-map-3f23ea2f.workspace b/assets/a-star-grid-search-heat-map-3f23ea2f.workspace new file mode 100644 index 00000000..e8123892 Binary files /dev/null and b/assets/a-star-grid-search-heat-map-3f23ea2f.workspace differ diff --git a/assets/a-star-grid-search-heat-map.workspace-e8e55d89.meta b/assets/a-star-grid-search-heat-map.workspace-e8e55d89.meta new file mode 100644 index 00000000..1ca1a32e --- /dev/null +++ b/assets/a-star-grid-search-heat-map.workspace-e8e55d89.meta @@ -0,0 +1 @@ +{"id":"JJhIU3mikrE3M-ObJbAC7","name":"A* Grid Search - Heat Map","description":"This example demonstrates one way you could create a heat map for your search.","author":"github:path-visualiser","screenshots":["data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAf/AABEIAEAAQAMBEQACEQEDEQH/xAGiAAABBQEBAQEBAQAAAAAAAAAAAQIDBAUGBwgJCgsQAAIBAwMCBAMFBQQEAAABfQECAwAEEQUSITFBBhNRYQcicRQygZGhCCNCscEVUtHwJDNicoIJChYXGBkaJSYnKCkqNDU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6g4SFhoeIiYqSk5SVlpeYmZqio6Slpqeoqaqys7S1tre4ubrCw8TFxsfIycrS09TV1tfY2drh4uPk5ebn6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n/AF1/yPjfwl4/8d+AfEA8W+BfGvi3wV4qEd3CPE3hLxJrHhzxAItQBW+iGs6Pe2epeXeqSt2gudtwCRMHBqgPcP2vNb1rxL8YtN8Q+I9X1TX9f1v4Cfsl6prOua3qF1qusavqd9+yl8Frm91HU9Tv5p72/v7y4kknuru6nluLiZ3klkd2LFLb5v8ANgeRfDz4neMPhdqGtaj4Qn0EHxHoLeGfEGm+KPBngv4geHdb0JtZ0XxEun6t4V8f+H/E3hnUIoNf8O6FrNnJd6TLPZanpNje2csFxbpIG1f+rAek/wDDUPxK/wChZ/Z2/wDEQf2TP/nJ0rLz+9/5gTW37VXxTsri3vLPQf2fLS7tJ4rm1urb9kb9lCC4triCRZYLi3ni+CqywzwyqskUsbLJHIqujBgDRZef3v8AzAlv/wBrD4sapfXup6no3wB1HUtRu7i/1HUL/wDZJ/ZSu76/vruZ7i7vL27uPgtJcXV3dXEkk9xcTyPNNM7ySuzszEsvP73/AJgT6p+1z8Ydbuor3WtN+A+sXkGnaPpEN3qv7J37KuoXMWk+HtIsdA0DS457z4MTSpp2h6Fpum6Lo9irC203SNPsdOsoobO0ghjLLz+9/wCYCxftd/GKDSL7QIdN+AsOg6nqWl6xqWixfsl/spx6RqGr6FbaxZaLql7pyfBYWd3qOj2fiLX7TS72eGS50+21zWILSWGLU71Jyy8/vf8AmBmf8NQ/Er/oWf2dv/EQf2TP/nJ0WXn97/zA8m8d+O/E/wAS/E954w8X3lle65e2OhaY76ZoWgeGNLtdK8MaBpnhfw7pWleHfC2maN4d0TStE8O6LpWj6bpmj6VY2NnY2NvDDboE5ewH/9k="],"size":296738,"lastModified":1714557059850} \ No newline at end of file diff --git a/assets/a-star-grid-search-heat-map.workspace-ec8039bd.js b/assets/a-star-grid-search-heat-map.workspace-ec8039bd.js new file mode 100644 index 00000000..67cc64dd --- /dev/null +++ b/assets/a-star-grid-search-heat-map.workspace-ec8039bd.js @@ -0,0 +1 @@ +const a=""+new URL("a-star-grid-search-heat-map.workspace-e8e55d89.meta",import.meta.url).href;export{a as default}; diff --git a/assets/index-a722f8d0.js b/assets/index-4bbfcd80.js similarity index 97% rename from assets/index-a722f8d0.js rename to assets/index-4bbfcd80.js index e33cc9b6..27edfe7a 100644 --- a/assets/index-a722f8d0.js +++ b/assets/index-4bbfcd80.js @@ -1088,7 +1088,7 @@ https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof _e.getDerivedSta const events = $.__internal__?.events; const parent = $.__internal__?.parent; return ${_e}; - `);return Dt=>Pt(new Proxy(normalize$1(Dt),{get(Nt,jt){return typeof(Nt==null?void 0:Nt[jt])=="function"?Nt[jt]({}):Nt==null?void 0:Nt[jt]}}))},openBrace$1=/^\$\{\{\s*/,closeBrace$1=/^\s*\}\}/,neverMatch$1=/\b\B/,parser$2=distExports.parseStringTemplateGenerator({VARIABLE_START:openBrace$1,VARIABLE_END:closeBrace$1,PIPE_START:neverMatch$1,PIPE_PARAMETER_START:neverMatch$1,QUOTED_STRING:neverMatch$1}),parseString$1=memo(_e=>{const Pt=parser$2(_e);return lodashExports$1.join(Pt.literals,"")?Dt=>distExports.evaluateParsedString(Pt,{},{},Nt=>parseToken$1(Nt)(Dt)):parseToken$1(Pt.variables[0].name)},{primitive:!0});function parseProperty$1(_e){switch(_e==null?void 0:_e.constructor){case Array:{const Pt=lodashExports$1.map(_e,parseProperty$1);return Dt=>lodashExports$1.map(Pt,Nt=>Nt(Dt))}case Object:{const Pt=lodashExports$1.mapValues(_e,parseProperty$1);return Dt=>lodashExports$1.mapValues(Pt,Nt=>Nt(Dt))}case String:return parseString$1(_e);default:return()=>_e}}function mapProperties(_e={},Pt){const Dt={};for(const Nt of Object.keys(_e))Dt[Nt]=Nt==="$"?_e[Nt]:Pt(_e[Nt],Nt,_e);return Object.setPrototypeOf(Dt,_e)}function normalize(_e={}){return mapProperties(_e,Pt=>lodashExports$1.isFunction(Pt)?Pt:parseProperty(Pt))}const parseToken=_e=>{const Pt=Function("$",`return ${_e};`);return Dt=>Pt(new Proxy(normalize(Dt),{get(Nt,jt){return typeof(Nt==null?void 0:Nt[jt])=="function"?Nt[jt]({}):Nt==null?void 0:Nt[jt]}}))},openBrace=/^\{\{\s*/,closeBrace=/^\s*\}\}/,neverMatch=/\b\B/,parser$1=distExports.parseStringTemplateGenerator({VARIABLE_START:openBrace,VARIABLE_END:closeBrace,PIPE_START:neverMatch,PIPE_PARAMETER_START:neverMatch,QUOTED_STRING:neverMatch}),parseString=memo(_e=>{const Pt=parser$1(_e);return lodashExports$1.join(Pt.literals,"")?Dt=>distExports.evaluateParsedString(Pt,{},{},Nt=>parseToken(Nt)(Dt)):parseToken(Pt.variables[0].name)},{primitive:!0});function parseProperty(_e){switch(_e==null?void 0:_e.constructor){case Array:{const Pt=lodashExports$1.map(_e,parseProperty);return Dt=>lodashExports$1.map(Pt,Nt=>Nt(Dt))}case Object:{const Pt=lodashExports$1.mapValues(_e,parseProperty);return Dt=>lodashExports$1.mapValues(Pt,Nt=>Nt(Dt))}case String:return parseString(_e);default:return()=>_e}}function commonjsRequire(_e){throw new Error('Could not dynamically require "'+_e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var pluralize$1={exports:{}};(function(_e,Pt){(function(Dt,Nt){typeof commonjsRequire=="function"?_e.exports=Nt():Dt.pluralize=Nt()})(commonjsGlobal,function(){var Dt=[],Nt=[],jt={},Ut={},Gt={};function Wt(nn){return typeof nn=="string"?new RegExp("^"+nn+"$","i"):nn}function qt(nn,rn){return nn===rn?rn:nn===nn.toLowerCase()?rn.toLowerCase():nn===nn.toUpperCase()?rn.toUpperCase():nn[0]===nn[0].toUpperCase()?rn.charAt(0).toUpperCase()+rn.substr(1).toLowerCase():rn.toLowerCase()}function Yt(nn,rn){return nn.replace(/\$(\d{1,2})/g,function(an,sn){return rn[sn]||""})}function Xt(nn,rn){return nn.replace(rn[0],function(an,sn){var ln=Yt(rn[1],arguments);return qt(an===""?nn[sn-1]:an,ln)})}function Kt(nn,rn,an){if(!nn.length||jt.hasOwnProperty(nn))return rn;for(var sn=an.length;sn--;){var ln=an[sn];if(ln[0].test(rn))return Xt(rn,ln)}return rn}function Qt(nn,rn,an){return function(sn){var ln=sn.toLowerCase();return rn.hasOwnProperty(ln)?qt(sn,ln):nn.hasOwnProperty(ln)?qt(sn,nn[ln]):Kt(ln,sn,an)}}function en(nn,rn,an,sn){return function(ln){var dn=ln.toLowerCase();return rn.hasOwnProperty(dn)?!0:nn.hasOwnProperty(dn)?!1:Kt(dn,dn,an)===dn}}function tn(nn,rn,an){var sn=rn===1?tn.singular(nn):tn.plural(nn);return(an?rn+" ":"")+sn}return tn.plural=Qt(Gt,Ut,Dt),tn.isPlural=en(Gt,Ut,Dt),tn.singular=Qt(Ut,Gt,Nt),tn.isSingular=en(Ut,Gt,Nt),tn.addPluralRule=function(nn,rn){Dt.push([Wt(nn),rn])},tn.addSingularRule=function(nn,rn){Nt.push([Wt(nn),rn])},tn.addUncountableRule=function(nn){if(typeof nn=="string"){jt[nn.toLowerCase()]=!0;return}tn.addPluralRule(nn,"$0"),tn.addSingularRule(nn,"$0")},tn.addIrregularRule=function(nn,rn){rn=rn.toLowerCase(),nn=nn.toLowerCase(),Gt[nn]=rn,Ut[rn]=nn},[["I","we"],["me","us"],["he","they"],["she","they"],["them","them"],["myself","ourselves"],["yourself","yourselves"],["itself","themselves"],["herself","themselves"],["himself","themselves"],["themself","themselves"],["is","are"],["was","were"],["has","have"],["this","these"],["that","those"],["echo","echoes"],["dingo","dingoes"],["volcano","volcanoes"],["tornado","tornadoes"],["torpedo","torpedoes"],["genus","genera"],["viscus","viscera"],["stigma","stigmata"],["stoma","stomata"],["dogma","dogmata"],["lemma","lemmata"],["schema","schemata"],["anathema","anathemata"],["ox","oxen"],["axe","axes"],["die","dice"],["yes","yeses"],["foot","feet"],["eave","eaves"],["goose","geese"],["tooth","teeth"],["quiz","quizzes"],["human","humans"],["proof","proofs"],["carve","carves"],["valve","valves"],["looey","looies"],["thief","thieves"],["groove","grooves"],["pickaxe","pickaxes"],["passerby","passersby"]].forEach(function(nn){return tn.addIrregularRule(nn[0],nn[1])}),[[/s?$/i,"s"],[/[^\u0000-\u007F]$/i,"$0"],[/([^aeiou]ese)$/i,"$1"],[/(ax|test)is$/i,"$1es"],[/(alias|[^aou]us|t[lm]as|gas|ris)$/i,"$1es"],[/(e[mn]u)s?$/i,"$1s"],[/([^l]ias|[aeiou]las|[ejzr]as|[iu]am)$/i,"$1"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1i"],[/(alumn|alg|vertebr)(?:a|ae)$/i,"$1ae"],[/(seraph|cherub)(?:im)?$/i,"$1im"],[/(her|at|gr)o$/i,"$1oes"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|automat|quor)(?:a|um)$/i,"$1a"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)(?:a|on)$/i,"$1a"],[/sis$/i,"ses"],[/(?:(kni|wi|li)fe|(ar|l|ea|eo|oa|hoo)f)$/i,"$1$2ves"],[/([^aeiouy]|qu)y$/i,"$1ies"],[/([^ch][ieo][ln])ey$/i,"$1ies"],[/(x|ch|ss|sh|zz)$/i,"$1es"],[/(matr|cod|mur|sil|vert|ind|append)(?:ix|ex)$/i,"$1ices"],[/\b((?:tit)?m|l)(?:ice|ouse)$/i,"$1ice"],[/(pe)(?:rson|ople)$/i,"$1ople"],[/(child)(?:ren)?$/i,"$1ren"],[/eaux$/i,"$0"],[/m[ae]n$/i,"men"],["thou","you"]].forEach(function(nn){return tn.addPluralRule(nn[0],nn[1])}),[[/s$/i,""],[/(ss)$/i,"$1"],[/(wi|kni|(?:after|half|high|low|mid|non|night|[^\w]|^)li)ves$/i,"$1fe"],[/(ar|(?:wo|[ae])l|[eo][ao])ves$/i,"$1f"],[/ies$/i,"y"],[/\b([pl]|zomb|(?:neck|cross)?t|coll|faer|food|gen|goon|group|lass|talk|goal|cut)ies$/i,"$1ie"],[/\b(mon|smil)ies$/i,"$1ey"],[/\b((?:tit)?m|l)ice$/i,"$1ouse"],[/(seraph|cherub)im$/i,"$1"],[/(x|ch|ss|sh|zz|tto|go|cho|alias|[^aou]us|t[lm]as|gas|(?:her|at|gr)o|[aeiou]ris)(?:es)?$/i,"$1"],[/(analy|diagno|parenthe|progno|synop|the|empha|cri|ne)(?:sis|ses)$/i,"$1sis"],[/(movie|twelve|abuse|e[mn]u)s$/i,"$1"],[/(test)(?:is|es)$/i,"$1is"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1us"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|quor)a$/i,"$1um"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)a$/i,"$1on"],[/(alumn|alg|vertebr)ae$/i,"$1a"],[/(cod|mur|sil|vert|ind)ices$/i,"$1ex"],[/(matr|append)ices$/i,"$1ix"],[/(pe)(rson|ople)$/i,"$1rson"],[/(child)ren$/i,"$1"],[/(eau)x?$/i,"$1"],[/men$/i,"man"]].forEach(function(nn){return tn.addSingularRule(nn[0],nn[1])}),["adulthood","advice","agenda","aid","aircraft","alcohol","ammo","analytics","anime","athletics","audio","bison","blood","bream","buffalo","butter","carp","cash","chassis","chess","clothing","cod","commerce","cooperation","corps","debris","diabetes","digestion","elk","energy","equipment","excretion","expertise","firmware","flounder","fun","gallows","garbage","graffiti","hardware","headquarters","health","herpes","highjinks","homework","housework","information","jeans","justice","kudos","labour","literature","machinery","mackerel","mail","media","mews","moose","music","mud","manga","news","only","personnel","pike","plankton","pliers","police","pollution","premises","rain","research","rice","salmon","scissors","series","sewage","shambles","shrimp","software","species","staff","swine","tennis","traffic","transportation","trout","tuna","wealth","welfare","whiting","wildebeest","wildlife","you",/pok[eé]mon$/i,/[^aeiou]ese$/i,/deer$/i,/fish$/i,/measles$/i,/o[iu]s$/i,/pox$/i,/sheep$/i].forEach(tn.addUncountableRule),tn})})(pluralize$1);var pluralizeExports=pluralize$1.exports;const pluralize=getDefaultExportFromCjs(pluralizeExports),parseTraceWorkerLegacyUrl=""+new URL("parseTrace.worker-d00400fc.js",import.meta.url).href,parseTraceWorkerUrl=""+new URL("parseTrace.worker-91b43fad.js",import.meta.url).href;class ParseTraceWorker extends Worker{constructor(){super(parseTraceWorkerUrl,{type:"module"})}}class ParseTraceWorkerLegacy extends Worker{constructor(){super(parseTraceWorkerLegacyUrl,{type:"module"})}}const parseTraceAsync=usingMemoizedWorkerTask(ParseTraceWorker),parseTraceLegacyAsync=usingMemoizedWorkerTask(ParseTraceWorkerLegacy);function useTraceParser(_e){const Pt=useSnackbar(),Dt=useLoadingState("specimen");return reactExports.useCallback(()=>Dt(async()=>{var Nt;if(_e!=null&&_e.trace){Pt("Processing trace...");try{const jt=_e.trace.version==="1.4.0"?await parseTraceAsync(_e):await parseTraceLegacyAsync(_e);return Pt("Trace loaded",pluralize("step",((Nt=jt==null?void 0:jt.stepsPersistent)==null?void 0:Nt.length)??0,!0)),{components:jt,content:_e.trace}}catch(jt){return console.error(jt),Pt("Error parsing",lodashExports$1.get(jt,"message")),{error:lodashExports$1.get(jt,"message")}}}}),[_e])}function useTraceContent(_e){const Pt=useSnackbar(),Dt=useLoadingState("specimen"),Nt=useConnectionResolver(),[{traces:jt}]=useFeatures(),Ut=reactExports.useMemo(()=>memo(async({source:Xt,id:Kt})=>{if(Xt&&Kt){const Qt=Nt({url:Xt});if(Qt){Pt("Fetching trace...");const en=await Qt.transport().call("features/trace",{id:Kt});return en==null?void 0:en.content}}},{normalizer:JSON.stringify}),[Nt,Pt]),{content:Gt,source:Wt,id:qt}=_e??{},{lastModified:Yt}=lodashExports$1.find(jt,{id:qt,source:Wt})??{};return useAsync(()=>Dt(async()=>{if(qt)return{..._e,content:Gt||await Ut({source:Wt,id:qt,lastModified:Yt})}}),[Ut,Gt,Wt,qt,Yt])}const isNullish=_e=>_e==null;function makePathIndex(_e){const Pt=[],Dt={},Nt={},jt=lodashExports$1.chain(_e==null?void 0:_e.events).map((Wt,qt)=>({step:qt,id:Wt.id,pId:Wt.pId})).groupBy("id").value();lodashExports$1.forEach(_e==null?void 0:_e.events,({id:Wt,pId:qt},Yt)=>{!isNullish(qt)&&Dt[Wt]!==qt&&(Pt.push({id:Wt,pId:qt,step:Yt,prev:lodashExports$1.last(Pt)}),Dt[Wt]=qt),Nt[Yt]=lodashExports$1.last(Pt)});const Ut=(Wt,qt=(Yt=>(Yt=_e==null?void 0:_e.events)==null?void 0:Yt.length)()??0)=>{let Xt=Nt[qt];for(;Xt;){if(Xt.id===Wt)return Xt.pId;Xt=Xt.prev}};return{getParent:Ut,getPath:Wt=>{const qt=[Wt];let Yt={...(_e.events??[])[Wt],step:Wt};for(;Yt;){const Xt=Ut(Yt.id,Yt.step);if(Xt){const Kt=lodashExports$1.findLast(jt[Xt],Qt=>Qt.step<=Yt.step);if(Kt)qt.push(Kt.step),Yt=Kt;else break}else break}return qt}}}const controller$1={key:"trace",icon:jsxRuntimeExports.jsx(RouteTwoTone,{}),inferName:_e=>{var Pt,Dt;return((Dt=(Pt=_e.source)==null?void 0:Pt.trace)==null?void 0:Dt.name)??"Untitled Trace"},error:_e=>{var Pt,Dt,Nt,jt;return((Dt=(Pt=_e==null?void 0:_e.source)==null?void 0:Pt.trace)==null?void 0:Dt.error)||((jt=(Nt=_e==null?void 0:_e.source)==null?void 0:Nt.parsedTrace)==null?void 0:jt.error)},claimImportedFile:async _e=>isTraceFormat(_e)?{claimed:!0,layer:async Pt=>{Pt("Opening trace...");try{return{trace:{...await readUploadedTrace(_e).read()}}}catch(Dt){return console.error(Dt),Pt(`Error opening, ${lodashExports$1.get(Dt,"message")}`),{trace:{key:nanoid$1(),id:custom$1().id,error:lodashExports$1.get(Dt,"message"),name:lodashExports$1.startCase(name$2(_e.name))}}}}}:{claimed:!1},editor:withProduce(({value:_e,produce:Pt})=>{var Dt,Nt,jt,Ut,Gt,Wt,qt,Yt,Xt,Kt,Qt;return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Option,{label:"Trace",content:jsxRuntimeExports.jsx(TracePicker,{onChange:en=>Pt(tn=>lodashExports$1.set(tn,"source.trace",en)),value:(Dt=_e==null?void 0:_e.source)==null?void 0:Dt.trace})}),((jt=(Nt=_e==null?void 0:_e.source)==null?void 0:Nt.trace)==null?void 0:jt.error)&&jsxRuntimeExports.jsx(Type$2,{variant:"body2",color:en=>en.palette.error.main,sx:{whiteSpace:"pre-wrap",mb:1,mt:1},children:jsxRuntimeExports.jsx("code",{children:(Gt=(Ut=_e==null?void 0:_e.source)==null?void 0:Ut.trace)==null?void 0:Gt.error})}),((qt=(Wt=_e==null?void 0:_e.source)==null?void 0:Wt.parsedTrace)==null?void 0:qt.error)&&jsxRuntimeExports.jsx(Type$2,{variant:"body2",color:en=>en.palette.error.main,sx:{whiteSpace:"pre-wrap",mb:1,mt:1},children:jsxRuntimeExports.jsx("code",{children:(Xt=(Yt=_e==null?void 0:_e.source)==null?void 0:Yt.parsedTrace)==null?void 0:Xt.error})}),jsxRuntimeExports.jsx(Heading,{label:"Preview"}),jsxRuntimeExports.jsx(Box$1,{sx:{height:240,mx:-2},children:jsxRuntimeExports.jsx(TracePreview,{trace:(Qt=(Kt=_e==null?void 0:_e.source)==null?void 0:Kt.parsedTrace)==null?void 0:Qt.content})})]})}),service:withProduce(({value:_e,produce:Pt})=>{var Ut,Gt,Wt;const{palette:Dt}=useTheme(),{result:Nt}=useTraceContent((Ut=_e==null?void 0:_e.source)==null?void 0:Ut.trace),jt=useTraceParser({trace:Nt==null?void 0:Nt.content,context:{theme:{foreground:Dt.text.primary,background:Dt.background.paper,accent:Dt.primary.main},color:{...colorsHex,...lodashExports$1.mapValues(accentColors,(qt,Yt)=>getShade(Yt,Dt.mode,500,400))},themeAccent:Dt.primary.main,themeTextPrimary:Dt.text.primary,themeBackground:Dt.background.paper},view:"main"});return reactExports.useEffect(()=>{Pt(qt=>{var Yt,Xt;return lodashExports$1.set(qt,"source.playbackTo",((Xt=(Yt=Nt==null?void 0:Nt.content)==null?void 0:Yt.events)==null?void 0:Xt.length)??0)})},[(Wt=(Gt=Nt==null?void 0:Nt.content)==null?void 0:Gt.events)==null?void 0:Wt.length]),useEffectWhen(async()=>{const qt=await jt();Pt(Yt=>{lodashExports$1.set(Yt,"source.parsedTrace",qt),lodashExports$1.set(Yt,"viewKey",nanoid$1())})},[jt],[Nt==null?void 0:Nt.key,Dt.mode]),jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsx(PlaybackService,{value:_e})})}),renderer:({layer:_e,index:Pt})=>{var qt,Yt,Xt;const Dt=(Yt=(qt=_e==null?void 0:_e.source)==null?void 0:qt.parsedTrace)==null?void 0:Yt.components,Nt=useThrottle$1(((Xt=_e==null?void 0:_e.source)==null?void 0:Xt.step)??0,1e3/60),jt=use2DPath(_e,Pt,Nt),Ut=reactExports.useMemo(()=>lodashExports$1.map(Dt==null?void 0:Dt.stepsPersistent,Kt=>lodashExports$1.map(Kt,Qt=>lodashExports$1.merge(Qt,{meta:{sourceLayer:_e==null?void 0:_e.key,sourceLayerIndex:Pt,sourceLayerAlpha:1-.01*+((_e==null?void 0:_e.transparency)??0),sourceLayerDisplayMode:(_e==null?void 0:_e.displayMode)??"source-over"}}))),[Dt==null?void 0:Dt.stepsPersistent,_e==null?void 0:_e.key,_e==null?void 0:_e.transparency,_e==null?void 0:_e.displayMode,Pt]),Gt=reactExports.useMemo(()=>lodashExports$1.map(Dt==null?void 0:Dt.stepsTransient,Kt=>lodashExports$1.map(Kt,Qt=>lodashExports$1.merge(Qt,{meta:{sourceLayer:_e==null?void 0:_e.key,sourceLayerIndex:Pt,sourceLayerAlpha:1-.01*+((_e==null?void 0:_e.transparency)??0),sourceLayerDisplayMode:(_e==null?void 0:_e.displayMode)??"source-over"}}))),[Dt==null?void 0:Dt.stepsTransient,_e==null?void 0:_e.key,_e==null?void 0:_e.transparency,_e==null?void 0:_e.displayMode,Pt]),Wt=reactExports.useMemo(()=>[Gt[Nt]??[]],[Gt,Nt]);return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(LazyNodeList,{step:Nt,nodes:Ut}),jsxRuntimeExports.jsx(NodeList,{nodes:Wt}),jt]})},steps:_e=>{var Pt,Dt,Nt;return((Nt=(Dt=(Pt=_e==null?void 0:_e.source)==null?void 0:Pt.parsedTrace)==null?void 0:Dt.content)==null?void 0:Nt.events)??[]},provideSelectionInfo:({layer:_e,event:Pt,children:Dt})=>{const{layer:Nt,setLayer:jt}=useLayer(_e),Ut=reactExports.useMemo(()=>{var Yt,Xt,Kt,Qt,en;const Gt=((Kt=(Xt=(Yt=Nt==null?void 0:Nt.source)==null?void 0:Yt.parsedTrace)==null?void 0:Xt.content)==null?void 0:Kt.events)??[],Wt=lodashExports$1.chain((Qt=Pt==null?void 0:Pt.info)==null?void 0:Qt.components).filter(tn=>{var nn;return((nn=tn.meta)==null?void 0:nn.sourceLayer)===(Nt==null?void 0:Nt.key)}).map(tn=>{var nn;return(nn=tn.meta)==null?void 0:nn.step}).filter(lodashExports$1.negate(lodashExports$1.isUndefined)).sort((tn,nn)=>tn-nn).value(),qt=lodashExports$1.chain((en=Pt==null?void 0:Pt.info)==null?void 0:en.components).filter(tn=>{var nn;return((nn=tn.meta)==null?void 0:nn.sourceLayer)===(Nt==null?void 0:Nt.key)}).filter(tn=>{var nn;return(nn=tn.meta)==null?void 0:nn.info}).value();if(Wt.length&&Nt){const tn=lodashExports$1.last(Wt),nn=Gt[tn];if(nn)return{...lodashExports$1.keyBy(lodashExports$1.map(qt,(rn,an)=>({key:`${Nt.key}.${an}`,primary:`Selection in ${inferLayerName(Nt)}`,items:{info:{index:-1,primary:jsxRuntimeExports.jsx(PropertyList,{event:rn.meta.info,vertical:!0})}}})),"key"),[Nt.key]:{primary:inferLayerName(Nt),items:{properties:{index:-2,primary:jsxRuntimeExports.jsx(PropertyList,{event:nn,vertical:!0,simple:!0,primitives:!0})},propertiesDetails:{index:-1,extras:jsxRuntimeExports.jsx(PropertyDialog,{event:nn,trigger:rn=>jsxRuntimeExports.jsxs(MenuItem$1,{onClick:rn,children:[jsxRuntimeExports.jsx(ListItemIcon$1,{children:jsxRuntimeExports.jsx(DataObjectOutlined,{})}),jsxRuntimeExports.jsx(ListItemText$1,{sx:{mr:4},children:"See properties"}),jsxRuntimeExports.jsxs(Type$2,{variant:"body2",color:"text.secondary",children:["Step ",tn]})]})})},[`${nn}`]:{primary:`Go to step ${tn}`,secondary:`${lodashExports$1.startCase(nn.type)}`,action:()=>jt(produce(Nt,rn=>{lodashExports$1.set(rn,"source.step",tn)})),icon:jsxRuntimeExports.jsx(ArrowOutwardRounded,{})}}}}}return{}},[Nt,Pt]);return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:Dt==null?void 0:Dt(Ut)})},getSources:_e=>{var Dt;const Pt=(Dt=_e==null?void 0:_e.source)==null?void 0:Dt.trace;return Pt?[{id:"trace",name:`(Source) ${Pt.name}`,language:"yaml",content:dump(Pt.content,{noCompatMode:!0})}]:[]}};function use2DPath(_e,Pt=0,Dt=0){var Gt,Wt,qt;const{palette:Nt}=useTheme(),{getPath:jt}=reactExports.useMemo(()=>{var Yt,Xt,Kt;return((Yt=_e==null?void 0:_e.source)==null?void 0:Yt.playback)!=="playing"&&((Kt=(Xt=_e==null?void 0:_e.source)==null?void 0:Xt.parsedTrace)!=null&&Kt.content)?makePathIndex(_e.source.parsedTrace.content):{getParent:lodashExports$1.constant(void 0),getPath:lodashExports$1.constant([])}},[(Wt=(Gt=_e==null?void 0:_e.source)==null?void 0:Gt.parsedTrace)==null?void 0:Wt.content,(qt=_e==null?void 0:_e.source)==null?void 0:qt.playback]);return reactExports.useMemo(()=>{var Xt,Kt,Qt,en,tn,nn,rn,an;const Yt=(Kt=(Xt=_e==null?void 0:_e.source)==null?void 0:Xt.parsedTrace)==null?void 0:Kt.content;if((Qt=Yt==null?void 0:Yt.render)!=null&&Qt.path||Yt!=null&&Yt.pivot){const sn=((tn=(en=Yt==null?void 0:Yt.render)==null?void 0:en.path)==null?void 0:tn.pivot)??(Yt==null?void 0:Yt.pivot)??{},ln=((rn=(nn=Yt==null?void 0:Yt.render)==null?void 0:nn.path)==null?void 0:rn.scale)??((an=Yt==null?void 0:Yt.pivot)==null?void 0:an.scale)??1,{x:dn,y:mn}=sn,gn=(Yt==null?void 0:Yt.version)==="1.4.0"?parseProperty$1:Sn=>_n=>parseProperty(Sn)({event:_n}),un=dn?gn(dn):Sn=>Sn.x,hn=mn?gn(mn):Sn=>Sn.y,vn=lodashExports$1.map(jt(Dt),Sn=>{var _n;return(_n=Yt==null?void 0:Yt.events)==null?void 0:_n[Sn]});if(vn.length){const Sn=[{$:"circle",x:un({x:0,y:0,...lodashExports$1.head(vn)}),y:hn({x:0,y:0,...lodashExports$1.head(vn)}),fill:Nt.background.paper,radius:.45*ln},{$:"circle",x:un({x:0,y:0,...lodashExports$1.last(vn)}),y:hn({x:0,y:0,...lodashExports$1.last(vn)}),fill:Nt.background.paper,radius:.45*ln},{$:"circle",x:un({x:0,y:0,...lodashExports$1.head(vn)}),y:hn({x:0,y:0,...lodashExports$1.head(vn)}),fill:getColorHex("destination"),radius:.4*ln},{$:"circle",x:un({x:0,y:0,...lodashExports$1.last(vn)}),y:hn({x:0,y:0,...lodashExports$1.last(vn)}),fill:getColorHex("source"),radius:.4*ln},{$:"path",points:vn.map(_n=>({x:un({x:0,y:0,..._n}),y:hn({x:0,y:0,..._n})})),fill:Nt.primary.main,alpha:1,lineWidth:.3*ln}];return jsxRuntimeExports.jsx(NodeList,{nodes:[lodashExports$1.map(Sn,_n=>({component:_n,meta:{source:"path",sourceLayerIndex:-99999+Pt}}))]})}}return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{})},[_e,Pt,Dt,Nt,jt])}async function findConnection(_e,Pt,Dt){for(const Nt of _e){const jt=await Nt.transport().call("features/algorithms"),Ut=await Nt.transport().call("features/formats");if(lodashExports$1.find(jt,{id:Pt})&&lodashExports$1.find(Ut,{id:Dt}))return Nt}}const controller={...lodashExports$1.omit(controller$1,"claimImportedFile"),key:"query",icon:jsxRuntimeExports.jsx(RouteTwoTone,{}),editor:withProduce(({value:_e,produce:Pt})=>{var Yt,Xt;const{algorithm:Dt}=(_e==null?void 0:_e.source)??{},{layers:Nt,allLayers:jt,layer:Ut,key:Gt}=useLayer(void 0,Kt=>{var Qt;return((Qt=Kt.source)==null?void 0:Qt.type)==="map"}),[{algorithms:Wt}]=useFeatures(),[qt]=useConnections();return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Option,{label:"Algorithm",content:jsxRuntimeExports.jsx(FeaturePicker,{arrow:!0,paper:!0,icon:jsxRuntimeExports.jsx(CodeOutlined,{}),label:"Algorithm",value:Dt,items:Wt.map(Kt=>{var Qt;return{...Kt,description:(Qt=lodashExports$1.find(qt,{url:Kt.source}))==null?void 0:Qt.name}}),onChange:async Kt=>Pt(Qt=>lodashExports$1.set(Qt,"source.algorithm",Kt))})}),!(Wt!=null&&Wt.length)&&jsxRuntimeExports.jsx(Type$2,{variant:"body2",color:"warning.main",sx:{mb:1},children:"No connected solver has declared support for running algorithms"}),jsxRuntimeExports.jsx(Option,{label:"Map",content:jsxRuntimeExports.jsx(FeaturePicker,{arrow:!0,paper:!0,icon:jsxRuntimeExports.jsx(LayersIcon,{}),label:"Layer",value:Gt,items:jt.map(Kt=>({id:Kt.key,hidden:!lodashExports$1.find(Nt,Qt=>Qt.key===Kt.key),name:inferLayerName(Kt)})),onChange:async Kt=>Pt(Qt=>lodashExports$1.set(Qt,"source.mapLayerKey",Kt))})}),Ut&&jsxRuntimeExports.jsxs(Type$2,{variant:"body2",color:"text.secondary",sx:{mb:1,mt:1},children:["Define source and destination nodes by clicking on valid regions on"," ",inferLayerName(Ut)]}),jsxRuntimeExports.jsx(Heading,{label:"Preview"}),jsxRuntimeExports.jsx(Box$1,{sx:{height:240,mx:-2},children:jsxRuntimeExports.jsx(TracePreview,{trace:(Xt=(Yt=_e==null?void 0:_e.source)==null?void 0:Yt.trace)==null?void 0:Xt.content})})]})}),service:withProduce(({value:_e,produce:Pt,onChange:Dt})=>{const Nt=controller$1.service,jt=useSnackbar(),{algorithm:Ut,mapLayerKey:Gt,start:Wt,end:qt}=(_e==null?void 0:_e.source)??{},[{layers:Yt}]=useLayers(),[Xt]=useConnections(),[{algorithms:Kt}]=useFeatures(),Qt=reactExports.useMemo(()=>{if(Gt&&Ut)return lodashExports$1.find(Yt,{key:Gt})},[Gt,Ut,Yt]);return useEffectWhenAsync(async en=>{var tn;if(Qt&&Ut){const{format:nn,content:rn}=((tn=Qt==null?void 0:Qt.source)==null?void 0:tn.map)??{};if(nn&&rn){const an=await findConnection(Xt,Ut,nn),sn=lodashExports$1.find(Kt,{id:Ut});if(an){jt(`Executing ${inferLayerName(_e)} using ${an.name}...`);const ln=await an.transport().call("solve/pathfinding",{format:nn,instances:[{start:Wt??0,end:qt??0}],mapURI:`map:${encodeURIComponent(rn)}`,algorithm:Ut});en.aborted?jt("Canceled"):Pt(dn=>lodashExports$1.set(dn,"source.trace",{name:`${sn==null?void 0:sn.name}`,content:ln,key:nanoid$1(),id:nanoid$1()}))}}}},[Qt,Xt,Ut,Wt,qt,Pt,jt,_e,Kt],[Qt,Xt,Ut,Wt,qt]),jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsx(Nt,{value:_e,onChange:Dt})})}),inferName:_e=>{var Pt,Dt;return((Dt=(Pt=_e.source)==null?void 0:Pt.trace)==null?void 0:Dt.name)??"Untitled Query"},provideSelectionInfo:({children:_e,event:Pt,layer:Dt})=>{const Nt=controller$1.provideSelectionInfo,{layer:jt,setLayer:Ut,layers:Gt}=useLayer(Dt),Wt=reactExports.useMemo(()=>{const Yt=lodashExports$1.filter(Gt,{source:{type:"map"}});return lodashExports$1.filter(lodashExports$1.map(Yt,Xt=>{var Qt,en,tn,nn;const{parsedMap:Kt}=(Xt==null?void 0:Xt.source)??{};if(Kt&&Pt){const rn=(nn=(tn=getParser((en=(Qt=Xt==null?void 0:Xt.source)==null?void 0:Qt.map)==null?void 0:en.format))==null?void 0:tn.hydrate)==null?void 0:nn.call(tn,Kt);if(rn){const an=(Pt==null?void 0:Pt.world)&&rn.snap(Pt.world);if(an){const sn=(Pt==null?void 0:Pt.world)&&rn.nodeAt(an);return{point:an,node:sn,key:Xt.key,name:inferLayerName(Xt)}}}}}))},[Gt]),qt=reactExports.useMemo(()=>!!jt&&!!Wt.length&&{[jt.key]:{primary:inferLayerName(jt),items:{...lodashExports$1.reduce(Wt,(Yt,Xt)=>({...Yt,[`${Dt}-${Xt==null?void 0:Xt.key}-source`]:{primary:"Set as source",secondary:Xt==null?void 0:Xt.name,action:()=>Ut(produce(jt,Kt=>{lodashExports$1.set(Kt,"source.start",Xt==null?void 0:Xt.node),lodashExports$1.set(Kt,"source.query",void 0),lodashExports$1.set(Kt,"source.mapLayerKey",Xt==null?void 0:Xt.key),lodashExports$1.set(Kt,"source.trace",void 0)})),icon:jsxRuntimeExports.jsx(StartIcon,{sx:{transform:"scale(0.5)"}})},[`${Dt}-${Xt==null?void 0:Xt.key}-destination`]:{primary:"Set as destination",secondary:Xt==null?void 0:Xt.name,action:()=>Ut(produce(jt,Kt=>{lodashExports$1.set(Kt,"source.end",Xt==null?void 0:Xt.node),lodashExports$1.set(Kt,"source.query",void 0),lodashExports$1.set(Kt,"source.mapLayerKey",Xt==null?void 0:Xt.key),lodashExports$1.set(Kt,"source.trace",void 0)})),icon:jsxRuntimeExports.jsx(DestinationIcon,{})}}),{})}}},[Wt,jt,Gt,Ut]);return jsxRuntimeExports.jsx(Nt,{event:Pt,layer:Dt,children:Yt=>_e==null?void 0:_e(lodashExports$1.merge(Yt,qt))})}};function getLayerHandler(_e){var Pt;return layerHandlers[((Pt=_e==null?void 0:_e.source)==null?void 0:Pt.type)??""]}const layerHandlers={trace:controller$1,map:controller$2,query:controller};function inferLayerName(_e){var Pt,Dt;return _e!=null&&_e.name?_e==null?void 0:_e.name:(Pt=_e==null?void 0:_e.source)!=null&&Pt.type?layerHandlers[(Dt=_e.source)==null?void 0:Dt.type].inferName(_e):"Untitled Layer"}var ReactReduxContext=React.createContext(null);function defaultNoopBatch(_e){_e()}var batch=defaultNoopBatch,setBatch=function _e(Pt){return batch=Pt},getBatch=function _e(){return batch};function createListenerCollection(){var _e=getBatch(),Pt=null,Dt=null;return{clear:function(){Pt=null,Dt=null},notify:function(){_e(function(){for(var jt=Pt;jt;)jt.callback(),jt=jt.next})},get:function(){for(var jt=[],Ut=Pt;Ut;)jt.push(Ut),Ut=Ut.next;return jt},subscribe:function(jt){var Ut=!0,Gt=Dt={callback:jt,next:null,prev:Dt};return Gt.prev?Gt.prev.next=Gt:Pt=Gt,function(){!Ut||Pt===null||(Ut=!1,Gt.next?Gt.next.prev=Gt.prev:Dt=Gt.prev,Gt.prev?Gt.prev.next=Gt.next:Pt=Gt.next)}}}}var nullListeners={notify:function _e(){},get:function _e(){return[]}};function createSubscription(_e,Pt){var Dt,Nt=nullListeners;function jt(Kt){return qt(),Nt.subscribe(Kt)}function Ut(){Nt.notify()}function Gt(){Xt.onStateChange&&Xt.onStateChange()}function Wt(){return!!Dt}function qt(){Dt||(Dt=Pt?Pt.addNestedSub(Gt):_e.subscribe(Gt),Nt=createListenerCollection())}function Yt(){Dt&&(Dt(),Dt=void 0,Nt.clear(),Nt=nullListeners)}var Xt={addNestedSub:jt,notifyNestedSubs:Ut,handleChangeWrapper:Gt,isSubscribed:Wt,trySubscribe:qt,tryUnsubscribe:Yt,getListeners:function(){return Nt}};return Xt}var useIsomorphicLayoutEffect$4=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?reactExports.useLayoutEffect:reactExports.useEffect;function Provider(_e){var Pt=_e.store,Dt=_e.context,Nt=_e.children,jt=reactExports.useMemo(function(){var Wt=createSubscription(Pt);return{store:Pt,subscription:Wt}},[Pt]),Ut=reactExports.useMemo(function(){return Pt.getState()},[Pt]);useIsomorphicLayoutEffect$4(function(){var Wt=jt.subscription;return Wt.onStateChange=Wt.notifyNestedSubs,Wt.trySubscribe(),Ut!==Pt.getState()&&Wt.notifyNestedSubs(),function(){Wt.tryUnsubscribe(),Wt.onStateChange=null}},[jt,Ut]);var Gt=Dt||ReactReduxContext;return React.createElement(Gt.Provider,{value:jt},Nt)}var _excluded$2=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],_excluded2=["reactReduxForwardedRef"],EMPTY_ARRAY=[],NO_SUBSCRIPTION_ARRAY=[null,null];function storeStateUpdatesReducer(_e,Pt){var Dt=_e[1];return[Pt.payload,Dt+1]}function useIsomorphicLayoutEffectWithArgs(_e,Pt,Dt){useIsomorphicLayoutEffect$4(function(){return _e.apply(void 0,Pt)},Dt)}function captureWrapperProps(_e,Pt,Dt,Nt,jt,Ut,Gt){_e.current=Nt,Pt.current=jt,Dt.current=!1,Ut.current&&(Ut.current=null,Gt())}function subscribeUpdates(_e,Pt,Dt,Nt,jt,Ut,Gt,Wt,qt,Yt){if(_e){var Xt=!1,Kt=null,Qt=function(){if(!Xt){var nn=Pt.getState(),rn,an;try{rn=Nt(nn,jt.current)}catch(sn){an=sn,Kt=sn}an||(Kt=null),rn===Ut.current?Gt.current||qt():(Ut.current=rn,Wt.current=rn,Gt.current=!0,Yt({type:"STORE_UPDATED",payload:{error:an}}))}};Dt.onStateChange=Qt,Dt.trySubscribe(),Qt();var en=function(){if(Xt=!0,Dt.tryUnsubscribe(),Dt.onStateChange=null,Kt)throw Kt};return en}}var initStateUpdates=function _e(){return[null,0]};function connectAdvanced(_e,Pt){Pt===void 0&&(Pt={});var Dt=Pt,Nt=Dt.getDisplayName,jt=Nt===void 0?function(ln){return"ConnectAdvanced("+ln+")"}:Nt,Ut=Dt.methodName,Gt=Ut===void 0?"connectAdvanced":Ut,Wt=Dt.renderCountProp,qt=Wt===void 0?void 0:Wt,Yt=Dt.shouldHandleStateChanges,Xt=Yt===void 0?!0:Yt,Kt=Dt.storeKey,Qt=Kt===void 0?"store":Kt;Dt.withRef;var en=Dt.forwardRef,tn=en===void 0?!1:en,nn=Dt.context,rn=nn===void 0?ReactReduxContext:nn,an=_objectWithoutPropertiesLoose$3(Dt,_excluded$2),sn=rn;return function(dn){var mn=dn.displayName||dn.name||"Component",gn=jt(mn),un=_extends$2({},an,{getDisplayName:jt,methodName:Gt,renderCountProp:qt,shouldHandleStateChanges:Xt,storeKey:Qt,displayName:gn,wrappedComponentName:mn,WrappedComponent:dn}),hn=an.pure;function vn(pn){return _e(pn.dispatch,un)}var Sn=hn?reactExports.useMemo:function(pn){return pn()};function _n(pn){var Nn=reactExports.useMemo(function(){var hr=pn.reactReduxForwardedRef,yr=_objectWithoutPropertiesLoose$3(pn,_excluded2);return[pn.context,hr,yr]},[pn]),On=Nn[0],Dn=Nn[1],En=Nn[2],An=reactExports.useMemo(function(){return On&&On.Consumer&&reactIsExports.isContextConsumer(React.createElement(On.Consumer,null))?On:sn},[On,sn]),Un=reactExports.useContext(An),Rn=!!pn.store&&!!pn.store.getState&&!!pn.store.dispatch;Un&&Un.store;var In=Rn?pn.store:Un.store,Xn=reactExports.useMemo(function(){return vn(In)},[In]),nr=reactExports.useMemo(function(){if(!Xt)return NO_SUBSCRIPTION_ARRAY;var hr=createSubscription(In,Rn?null:Un.subscription),yr=hr.notifyNestedSubs.bind(hr);return[hr,yr]},[In,Rn,Un]),ar=nr[0],$n=nr[1],Pn=reactExports.useMemo(function(){return Rn?Un:_extends$2({},Un,{subscription:ar})},[Rn,Un,ar]),Mn=reactExports.useReducer(storeStateUpdatesReducer,EMPTY_ARRAY,initStateUpdates),Vn=Mn[0],yn=Vn[0],bn=Mn[1];if(yn&&yn.error)throw yn.error;var wn=reactExports.useRef(),Gn=reactExports.useRef(En),Zn=reactExports.useRef(),kn=reactExports.useRef(!1),Qn=Sn(function(){return Zn.current&&En===Gn.current?Zn.current:Xn(In.getState(),En)},[In,yn,En]);useIsomorphicLayoutEffectWithArgs(captureWrapperProps,[Gn,wn,kn,En,Qn,Zn,$n]),useIsomorphicLayoutEffectWithArgs(subscribeUpdates,[Xt,In,ar,Xn,Gn,wn,kn,Zn,$n,bn],[In,ar,Xn]);var ir=reactExports.useMemo(function(){return React.createElement(dn,_extends$2({},Qn,{ref:Dn}))},[Dn,dn,Qn]),Jn=reactExports.useMemo(function(){return Xt?React.createElement(An.Provider,{value:Pn},ir):ir},[An,ir,Pn]);return Jn}var Tn=hn?React.memo(_n):_n;if(Tn.WrappedComponent=dn,Tn.displayName=_n.displayName=gn,tn){var Cn=React.forwardRef(function(Nn,On){return React.createElement(Tn,_extends$2({},Nn,{reactReduxForwardedRef:On}))});return Cn.displayName=gn,Cn.WrappedComponent=dn,hoistStatics(Cn,dn)}return hoistStatics(Tn,dn)}}function is$5(_e,Pt){return _e===Pt?_e!==0||Pt!==0||1/_e===1/Pt:_e!==_e&&Pt!==Pt}function shallowEqual(_e,Pt){if(is$5(_e,Pt))return!0;if(typeof _e!="object"||_e===null||typeof Pt!="object"||Pt===null)return!1;var Dt=Object.keys(_e),Nt=Object.keys(Pt);if(Dt.length!==Nt.length)return!1;for(var jt=0;jt=0;Nt--){var jt=Pt[Nt](_e);if(jt)return jt}return function(Ut,Gt){throw new Error("Invalid value of type "+typeof _e+" for "+Dt+" argument when connecting component "+Gt.wrappedComponentName+".")}}function strictEqual(_e,Pt){return _e===Pt}function createConnect(_e){var Pt=_e===void 0?{}:_e,Dt=Pt.connectHOC,Nt=Dt===void 0?connectAdvanced:Dt,jt=Pt.mapStateToPropsFactories,Ut=jt===void 0?defaultMapStateToPropsFactories:jt,Gt=Pt.mapDispatchToPropsFactories,Wt=Gt===void 0?defaultMapDispatchToPropsFactories:Gt,qt=Pt.mergePropsFactories,Yt=qt===void 0?defaultMergePropsFactories:qt,Xt=Pt.selectorFactory,Kt=Xt===void 0?finalPropsSelectorFactory:Xt;return function(en,tn,nn,rn){rn===void 0&&(rn={});var an=rn,sn=an.pure,ln=sn===void 0?!0:sn,dn=an.areStatesEqual,mn=dn===void 0?strictEqual:dn,gn=an.areOwnPropsEqual,un=gn===void 0?shallowEqual:gn,hn=an.areStatePropsEqual,vn=hn===void 0?shallowEqual:hn,Sn=an.areMergedPropsEqual,_n=Sn===void 0?shallowEqual:Sn,Tn=_objectWithoutPropertiesLoose$3(an,_excluded),Cn=match(en,Ut,"mapStateToProps"),pn=match(tn,Wt,"mapDispatchToProps"),Nn=match(nn,Yt,"mergeProps");return Nt(Kt,_extends$2({methodName:"connect",getDisplayName:function(Dn){return"Connect("+Dn+")"},shouldHandleStateChanges:!!en,initMapStateToProps:Cn,initMapDispatchToProps:pn,initMergeProps:Nn,pure:ln,areStatesEqual:mn,areOwnPropsEqual:un,areStatePropsEqual:vn,areMergedPropsEqual:_n},Tn))}}const connect$1=createConnect();setBatch(reactDomExports.unstable_batchedUpdates);function areInputsEqual$1(_e,Pt){if(_e.length!==Pt.length)return!1;for(var Dt=0;Dt<_e.length;Dt++)if(_e[Dt]!==Pt[Dt])return!1;return!0}function useMemoOne(_e,Pt){var Dt=reactExports.useState(function(){return{inputs:Pt,result:_e()}})[0],Nt=reactExports.useRef(!0),jt=reactExports.useRef(Dt),Ut=Nt.current||!!(Pt&&jt.current.inputs&&areInputsEqual$1(Pt,jt.current.inputs)),Gt=Ut?jt.current:{inputs:Pt,result:_e()};return reactExports.useEffect(function(){Nt.current=!1,jt.current=Gt},[Gt]),Gt.result}function useCallbackOne(_e,Pt){return useMemoOne(function(){return _e},Pt)}var useMemo=useMemoOne,useCallback=useCallbackOne,isProduction=!0,prefix$2="Invariant failed";function invariant$1(_e,Pt){if(!_e){if(isProduction)throw new Error(prefix$2);var Dt=typeof Pt=="function"?Pt():Pt,Nt=Dt?"".concat(prefix$2,": ").concat(Dt):prefix$2;throw new Error(Nt)}}var getRect=function _e(Pt){var Dt=Pt.top,Nt=Pt.right,jt=Pt.bottom,Ut=Pt.left,Gt=Nt-Ut,Wt=jt-Dt,qt={top:Dt,right:Nt,bottom:jt,left:Ut,width:Gt,height:Wt,x:Ut,y:Dt,center:{x:(Nt+Ut)/2,y:(jt+Dt)/2}};return qt},expand=function _e(Pt,Dt){return{top:Pt.top-Dt.top,left:Pt.left-Dt.left,bottom:Pt.bottom+Dt.bottom,right:Pt.right+Dt.right}},shrink=function _e(Pt,Dt){return{top:Pt.top+Dt.top,left:Pt.left+Dt.left,bottom:Pt.bottom-Dt.bottom,right:Pt.right-Dt.right}},shift=function _e(Pt,Dt){return{top:Pt.top+Dt.y,left:Pt.left+Dt.x,bottom:Pt.bottom+Dt.y,right:Pt.right+Dt.x}},noSpacing$1={top:0,right:0,bottom:0,left:0},createBox=function _e(Pt){var Dt=Pt.borderBox,Nt=Pt.margin,jt=Nt===void 0?noSpacing$1:Nt,Ut=Pt.border,Gt=Ut===void 0?noSpacing$1:Ut,Wt=Pt.padding,qt=Wt===void 0?noSpacing$1:Wt,Yt=getRect(expand(Dt,jt)),Xt=getRect(shrink(Dt,Gt)),Kt=getRect(shrink(Xt,qt));return{marginBox:Yt,borderBox:getRect(Dt),paddingBox:Xt,contentBox:Kt,margin:jt,border:Gt,padding:qt}},parse$6=function _e(Pt){var Dt=Pt.slice(0,-2),Nt=Pt.slice(-2);if(Nt!=="px")return 0;var jt=Number(Dt);return isNaN(jt)&&invariant$1(!1),jt},getWindowScroll$1=function _e(){return{x:window.pageXOffset,y:window.pageYOffset}},offset=function _e(Pt,Dt){var Nt=Pt.borderBox,jt=Pt.border,Ut=Pt.margin,Gt=Pt.padding,Wt=shift(Nt,Dt);return createBox({borderBox:Wt,border:jt,margin:Ut,padding:Gt})},withScroll=function _e(Pt,Dt){return Dt===void 0&&(Dt=getWindowScroll$1()),offset(Pt,Dt)},calculateBox=function _e(Pt,Dt){var Nt={top:parse$6(Dt.marginTop),right:parse$6(Dt.marginRight),bottom:parse$6(Dt.marginBottom),left:parse$6(Dt.marginLeft)},jt={top:parse$6(Dt.paddingTop),right:parse$6(Dt.paddingRight),bottom:parse$6(Dt.paddingBottom),left:parse$6(Dt.paddingLeft)},Ut={top:parse$6(Dt.borderTopWidth),right:parse$6(Dt.borderRightWidth),bottom:parse$6(Dt.borderBottomWidth),left:parse$6(Dt.borderLeftWidth)};return createBox({borderBox:Pt,margin:Nt,padding:jt,border:Ut})},getBox=function _e(Pt){var Dt=Pt.getBoundingClientRect(),Nt=window.getComputedStyle(Pt);return calculateBox(Dt,Nt)},safeIsNaN=Number.isNaN||function _e(Pt){return typeof Pt=="number"&&Pt!==Pt};function isEqual$2(_e,Pt){return!!(_e===Pt||safeIsNaN(_e)&&safeIsNaN(Pt))}function areInputsEqual(_e,Pt){if(_e.length!==Pt.length)return!1;for(var Dt=0;Dt<_e.length;Dt++)if(!isEqual$2(_e[Dt],Pt[Dt]))return!1;return!0}function memoizeOne(_e,Pt){Pt===void 0&&(Pt=areInputsEqual);var Dt,Nt=[],jt,Ut=!1;function Gt(){for(var Wt=[],qt=0;qt");return Nt.callbacks},Nt.setCallbacks=function(Wt){Nt.callbacks=Wt},Nt}var Dt=Pt.prototype;return Dt.componentDidMount=function(){this.unbind=bindEvents(window,[{eventName:"error",fn:this.onWindowError}])},Dt.componentDidCatch=function(jt){if(jt instanceof RbdInvariant){this.setState({});return}throw jt},Dt.componentWillUnmount=function(){this.unbind()},Dt.render=function(){return this.props.children(this.setCallbacks)},Pt}(React.Component),dragHandleUsageInstructions=` + `);return Dt=>Pt(new Proxy(normalize$1(Dt),{get(Nt,jt){return typeof(Nt==null?void 0:Nt[jt])=="function"?Nt[jt]({}):Nt==null?void 0:Nt[jt]}}))},openBrace$1=/^\$\{\{\s*/,closeBrace$1=/^\s*\}\}/,neverMatch$1=/\b\B/,parser$2=distExports.parseStringTemplateGenerator({VARIABLE_START:openBrace$1,VARIABLE_END:closeBrace$1,PIPE_START:neverMatch$1,PIPE_PARAMETER_START:neverMatch$1,QUOTED_STRING:neverMatch$1}),parseString$1=memo(_e=>{const Pt=parser$2(_e);return lodashExports$1.join(Pt.literals,"")?Dt=>distExports.evaluateParsedString(Pt,{},{},Nt=>parseToken$1(Nt)(Dt)):parseToken$1(Pt.variables[0].name)},{primitive:!0});function parseProperty$1(_e){switch(_e==null?void 0:_e.constructor){case Array:{const Pt=lodashExports$1.map(_e,parseProperty$1);return Dt=>lodashExports$1.map(Pt,Nt=>Nt(Dt))}case Object:{const Pt=lodashExports$1.mapValues(_e,parseProperty$1);return Dt=>lodashExports$1.mapValues(Pt,Nt=>Nt(Dt))}case String:return parseString$1(_e);default:return()=>_e}}function mapProperties(_e={},Pt){const Dt={};for(const Nt of Object.keys(_e))Dt[Nt]=Nt==="$"?_e[Nt]:Pt(_e[Nt],Nt,_e);return Object.setPrototypeOf(Dt,_e)}function normalize(_e={}){return mapProperties(_e,Pt=>lodashExports$1.isFunction(Pt)?Pt:parseProperty(Pt))}const parseToken=_e=>{const Pt=Function("$",`return ${_e};`);return Dt=>Pt(new Proxy(normalize(Dt),{get(Nt,jt){return typeof(Nt==null?void 0:Nt[jt])=="function"?Nt[jt]({}):Nt==null?void 0:Nt[jt]}}))},openBrace=/^\{\{\s*/,closeBrace=/^\s*\}\}/,neverMatch=/\b\B/,parser$1=distExports.parseStringTemplateGenerator({VARIABLE_START:openBrace,VARIABLE_END:closeBrace,PIPE_START:neverMatch,PIPE_PARAMETER_START:neverMatch,QUOTED_STRING:neverMatch}),parseString=memo(_e=>{const Pt=parser$1(_e);return lodashExports$1.join(Pt.literals,"")?Dt=>distExports.evaluateParsedString(Pt,{},{},Nt=>parseToken(Nt)(Dt)):parseToken(Pt.variables[0].name)},{primitive:!0});function parseProperty(_e){switch(_e==null?void 0:_e.constructor){case Array:{const Pt=lodashExports$1.map(_e,parseProperty);return Dt=>lodashExports$1.map(Pt,Nt=>Nt(Dt))}case Object:{const Pt=lodashExports$1.mapValues(_e,parseProperty);return Dt=>lodashExports$1.mapValues(Pt,Nt=>Nt(Dt))}case String:return parseString(_e);default:return()=>_e}}function commonjsRequire(_e){throw new Error('Could not dynamically require "'+_e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var pluralize$1={exports:{}};(function(_e,Pt){(function(Dt,Nt){typeof commonjsRequire=="function"?_e.exports=Nt():Dt.pluralize=Nt()})(commonjsGlobal,function(){var Dt=[],Nt=[],jt={},Ut={},Gt={};function Wt(nn){return typeof nn=="string"?new RegExp("^"+nn+"$","i"):nn}function qt(nn,rn){return nn===rn?rn:nn===nn.toLowerCase()?rn.toLowerCase():nn===nn.toUpperCase()?rn.toUpperCase():nn[0]===nn[0].toUpperCase()?rn.charAt(0).toUpperCase()+rn.substr(1).toLowerCase():rn.toLowerCase()}function Yt(nn,rn){return nn.replace(/\$(\d{1,2})/g,function(an,sn){return rn[sn]||""})}function Xt(nn,rn){return nn.replace(rn[0],function(an,sn){var ln=Yt(rn[1],arguments);return qt(an===""?nn[sn-1]:an,ln)})}function Kt(nn,rn,an){if(!nn.length||jt.hasOwnProperty(nn))return rn;for(var sn=an.length;sn--;){var ln=an[sn];if(ln[0].test(rn))return Xt(rn,ln)}return rn}function Qt(nn,rn,an){return function(sn){var ln=sn.toLowerCase();return rn.hasOwnProperty(ln)?qt(sn,ln):nn.hasOwnProperty(ln)?qt(sn,nn[ln]):Kt(ln,sn,an)}}function en(nn,rn,an,sn){return function(ln){var dn=ln.toLowerCase();return rn.hasOwnProperty(dn)?!0:nn.hasOwnProperty(dn)?!1:Kt(dn,dn,an)===dn}}function tn(nn,rn,an){var sn=rn===1?tn.singular(nn):tn.plural(nn);return(an?rn+" ":"")+sn}return tn.plural=Qt(Gt,Ut,Dt),tn.isPlural=en(Gt,Ut,Dt),tn.singular=Qt(Ut,Gt,Nt),tn.isSingular=en(Ut,Gt,Nt),tn.addPluralRule=function(nn,rn){Dt.push([Wt(nn),rn])},tn.addSingularRule=function(nn,rn){Nt.push([Wt(nn),rn])},tn.addUncountableRule=function(nn){if(typeof nn=="string"){jt[nn.toLowerCase()]=!0;return}tn.addPluralRule(nn,"$0"),tn.addSingularRule(nn,"$0")},tn.addIrregularRule=function(nn,rn){rn=rn.toLowerCase(),nn=nn.toLowerCase(),Gt[nn]=rn,Ut[rn]=nn},[["I","we"],["me","us"],["he","they"],["she","they"],["them","them"],["myself","ourselves"],["yourself","yourselves"],["itself","themselves"],["herself","themselves"],["himself","themselves"],["themself","themselves"],["is","are"],["was","were"],["has","have"],["this","these"],["that","those"],["echo","echoes"],["dingo","dingoes"],["volcano","volcanoes"],["tornado","tornadoes"],["torpedo","torpedoes"],["genus","genera"],["viscus","viscera"],["stigma","stigmata"],["stoma","stomata"],["dogma","dogmata"],["lemma","lemmata"],["schema","schemata"],["anathema","anathemata"],["ox","oxen"],["axe","axes"],["die","dice"],["yes","yeses"],["foot","feet"],["eave","eaves"],["goose","geese"],["tooth","teeth"],["quiz","quizzes"],["human","humans"],["proof","proofs"],["carve","carves"],["valve","valves"],["looey","looies"],["thief","thieves"],["groove","grooves"],["pickaxe","pickaxes"],["passerby","passersby"]].forEach(function(nn){return tn.addIrregularRule(nn[0],nn[1])}),[[/s?$/i,"s"],[/[^\u0000-\u007F]$/i,"$0"],[/([^aeiou]ese)$/i,"$1"],[/(ax|test)is$/i,"$1es"],[/(alias|[^aou]us|t[lm]as|gas|ris)$/i,"$1es"],[/(e[mn]u)s?$/i,"$1s"],[/([^l]ias|[aeiou]las|[ejzr]as|[iu]am)$/i,"$1"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1i"],[/(alumn|alg|vertebr)(?:a|ae)$/i,"$1ae"],[/(seraph|cherub)(?:im)?$/i,"$1im"],[/(her|at|gr)o$/i,"$1oes"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|automat|quor)(?:a|um)$/i,"$1a"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)(?:a|on)$/i,"$1a"],[/sis$/i,"ses"],[/(?:(kni|wi|li)fe|(ar|l|ea|eo|oa|hoo)f)$/i,"$1$2ves"],[/([^aeiouy]|qu)y$/i,"$1ies"],[/([^ch][ieo][ln])ey$/i,"$1ies"],[/(x|ch|ss|sh|zz)$/i,"$1es"],[/(matr|cod|mur|sil|vert|ind|append)(?:ix|ex)$/i,"$1ices"],[/\b((?:tit)?m|l)(?:ice|ouse)$/i,"$1ice"],[/(pe)(?:rson|ople)$/i,"$1ople"],[/(child)(?:ren)?$/i,"$1ren"],[/eaux$/i,"$0"],[/m[ae]n$/i,"men"],["thou","you"]].forEach(function(nn){return tn.addPluralRule(nn[0],nn[1])}),[[/s$/i,""],[/(ss)$/i,"$1"],[/(wi|kni|(?:after|half|high|low|mid|non|night|[^\w]|^)li)ves$/i,"$1fe"],[/(ar|(?:wo|[ae])l|[eo][ao])ves$/i,"$1f"],[/ies$/i,"y"],[/\b([pl]|zomb|(?:neck|cross)?t|coll|faer|food|gen|goon|group|lass|talk|goal|cut)ies$/i,"$1ie"],[/\b(mon|smil)ies$/i,"$1ey"],[/\b((?:tit)?m|l)ice$/i,"$1ouse"],[/(seraph|cherub)im$/i,"$1"],[/(x|ch|ss|sh|zz|tto|go|cho|alias|[^aou]us|t[lm]as|gas|(?:her|at|gr)o|[aeiou]ris)(?:es)?$/i,"$1"],[/(analy|diagno|parenthe|progno|synop|the|empha|cri|ne)(?:sis|ses)$/i,"$1sis"],[/(movie|twelve|abuse|e[mn]u)s$/i,"$1"],[/(test)(?:is|es)$/i,"$1is"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1us"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|quor)a$/i,"$1um"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)a$/i,"$1on"],[/(alumn|alg|vertebr)ae$/i,"$1a"],[/(cod|mur|sil|vert|ind)ices$/i,"$1ex"],[/(matr|append)ices$/i,"$1ix"],[/(pe)(rson|ople)$/i,"$1rson"],[/(child)ren$/i,"$1"],[/(eau)x?$/i,"$1"],[/men$/i,"man"]].forEach(function(nn){return tn.addSingularRule(nn[0],nn[1])}),["adulthood","advice","agenda","aid","aircraft","alcohol","ammo","analytics","anime","athletics","audio","bison","blood","bream","buffalo","butter","carp","cash","chassis","chess","clothing","cod","commerce","cooperation","corps","debris","diabetes","digestion","elk","energy","equipment","excretion","expertise","firmware","flounder","fun","gallows","garbage","graffiti","hardware","headquarters","health","herpes","highjinks","homework","housework","information","jeans","justice","kudos","labour","literature","machinery","mackerel","mail","media","mews","moose","music","mud","manga","news","only","personnel","pike","plankton","pliers","police","pollution","premises","rain","research","rice","salmon","scissors","series","sewage","shambles","shrimp","software","species","staff","swine","tennis","traffic","transportation","trout","tuna","wealth","welfare","whiting","wildebeest","wildlife","you",/pok[eé]mon$/i,/[^aeiou]ese$/i,/deer$/i,/fish$/i,/measles$/i,/o[iu]s$/i,/pox$/i,/sheep$/i].forEach(tn.addUncountableRule),tn})})(pluralize$1);var pluralizeExports=pluralize$1.exports;const pluralize=getDefaultExportFromCjs(pluralizeExports),parseTraceWorkerLegacyUrl=""+new URL("parseTrace.worker-d00400fc.js",import.meta.url).href,parseTraceWorkerUrl=""+new URL("parseTrace.worker-0e08b94d.js",import.meta.url).href;class ParseTraceWorker extends Worker{constructor(){super(parseTraceWorkerUrl,{type:"module"})}}class ParseTraceWorkerLegacy extends Worker{constructor(){super(parseTraceWorkerLegacyUrl,{type:"module"})}}const parseTraceAsync=usingMemoizedWorkerTask(ParseTraceWorker),parseTraceLegacyAsync=usingMemoizedWorkerTask(ParseTraceWorkerLegacy);function useTraceParser(_e){const Pt=useSnackbar(),Dt=useLoadingState("specimen");return reactExports.useCallback(()=>Dt(async()=>{var Nt;if(_e!=null&&_e.trace){Pt("Processing trace...");try{const jt=_e.trace.version==="1.4.0"?await parseTraceAsync(_e):await parseTraceLegacyAsync(_e);return Pt("Trace loaded",pluralize("step",((Nt=jt==null?void 0:jt.stepsPersistent)==null?void 0:Nt.length)??0,!0)),{components:jt,content:_e.trace}}catch(jt){return console.error(jt),Pt("Error parsing",lodashExports$1.get(jt,"message")),{error:lodashExports$1.get(jt,"message")}}}}),[_e])}function useTraceContent(_e){const Pt=useSnackbar(),Dt=useLoadingState("specimen"),Nt=useConnectionResolver(),[{traces:jt}]=useFeatures(),Ut=reactExports.useMemo(()=>memo(async({source:Xt,id:Kt})=>{if(Xt&&Kt){const Qt=Nt({url:Xt});if(Qt){Pt("Fetching trace...");const en=await Qt.transport().call("features/trace",{id:Kt});return en==null?void 0:en.content}}},{normalizer:JSON.stringify}),[Nt,Pt]),{content:Gt,source:Wt,id:qt}=_e??{},{lastModified:Yt}=lodashExports$1.find(jt,{id:qt,source:Wt})??{};return useAsync(()=>Dt(async()=>{if(qt)return{..._e,content:Gt||await Ut({source:Wt,id:qt,lastModified:Yt})}}),[Ut,Gt,Wt,qt,Yt])}const isNullish=_e=>_e==null;function makePathIndex(_e){const Pt=[],Dt={},Nt={},jt=lodashExports$1.chain(_e==null?void 0:_e.events).map((Wt,qt)=>({step:qt,id:Wt.id,pId:Wt.pId})).groupBy("id").value();lodashExports$1.forEach(_e==null?void 0:_e.events,({id:Wt,pId:qt},Yt)=>{!isNullish(qt)&&Dt[Wt]!==qt&&(Pt.push({id:Wt,pId:qt,step:Yt,prev:lodashExports$1.last(Pt)}),Dt[Wt]=qt),Nt[Yt]=lodashExports$1.last(Pt)});const Ut=(Wt,qt=(Yt=>(Yt=_e==null?void 0:_e.events)==null?void 0:Yt.length)()??0)=>{let Xt=Nt[qt];for(;Xt;){if(Xt.id===Wt)return Xt.pId;Xt=Xt.prev}};return{getParent:Ut,getPath:Wt=>{const qt=[Wt];let Yt={...(_e.events??[])[Wt],step:Wt};for(;Yt;){const Xt=Ut(Yt.id,Yt.step);if(Xt){const Kt=lodashExports$1.findLast(jt[Xt],Qt=>Qt.step<=Yt.step);if(Kt)qt.push(Kt.step),Yt=Kt;else break}else break}return qt}}}const controller$1={key:"trace",icon:jsxRuntimeExports.jsx(RouteTwoTone,{}),inferName:_e=>{var Pt,Dt;return((Dt=(Pt=_e.source)==null?void 0:Pt.trace)==null?void 0:Dt.name)??"Untitled Trace"},error:_e=>{var Pt,Dt,Nt,jt;return((Dt=(Pt=_e==null?void 0:_e.source)==null?void 0:Pt.trace)==null?void 0:Dt.error)||((jt=(Nt=_e==null?void 0:_e.source)==null?void 0:Nt.parsedTrace)==null?void 0:jt.error)},claimImportedFile:async _e=>isTraceFormat(_e)?{claimed:!0,layer:async Pt=>{Pt("Opening trace...");try{return{trace:{...await readUploadedTrace(_e).read()}}}catch(Dt){return console.error(Dt),Pt(`Error opening, ${lodashExports$1.get(Dt,"message")}`),{trace:{key:nanoid$1(),id:custom$1().id,error:lodashExports$1.get(Dt,"message"),name:lodashExports$1.startCase(name$2(_e.name))}}}}}:{claimed:!1},editor:withProduce(({value:_e,produce:Pt})=>{var Dt,Nt,jt,Ut,Gt,Wt,qt,Yt,Xt,Kt,Qt;return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Option,{label:"Trace",content:jsxRuntimeExports.jsx(TracePicker,{onChange:en=>Pt(tn=>lodashExports$1.set(tn,"source.trace",en)),value:(Dt=_e==null?void 0:_e.source)==null?void 0:Dt.trace})}),((jt=(Nt=_e==null?void 0:_e.source)==null?void 0:Nt.trace)==null?void 0:jt.error)&&jsxRuntimeExports.jsx(Type$2,{variant:"body2",color:en=>en.palette.error.main,sx:{whiteSpace:"pre-wrap",mb:1,mt:1},children:jsxRuntimeExports.jsx("code",{children:(Gt=(Ut=_e==null?void 0:_e.source)==null?void 0:Ut.trace)==null?void 0:Gt.error})}),((qt=(Wt=_e==null?void 0:_e.source)==null?void 0:Wt.parsedTrace)==null?void 0:qt.error)&&jsxRuntimeExports.jsx(Type$2,{variant:"body2",color:en=>en.palette.error.main,sx:{whiteSpace:"pre-wrap",mb:1,mt:1},children:jsxRuntimeExports.jsx("code",{children:(Xt=(Yt=_e==null?void 0:_e.source)==null?void 0:Yt.parsedTrace)==null?void 0:Xt.error})}),jsxRuntimeExports.jsx(Heading,{label:"Preview"}),jsxRuntimeExports.jsx(Box$1,{sx:{height:240,mx:-2},children:jsxRuntimeExports.jsx(TracePreview,{trace:(Qt=(Kt=_e==null?void 0:_e.source)==null?void 0:Kt.parsedTrace)==null?void 0:Qt.content})})]})}),service:withProduce(({value:_e,produce:Pt})=>{var Ut,Gt,Wt;const{palette:Dt}=useTheme(),{result:Nt}=useTraceContent((Ut=_e==null?void 0:_e.source)==null?void 0:Ut.trace),jt=useTraceParser({trace:Nt==null?void 0:Nt.content,context:{theme:{foreground:Dt.text.primary,background:Dt.background.paper,accent:Dt.primary.main},color:{...colorsHex,...lodashExports$1.mapValues(accentColors,(qt,Yt)=>getShade(Yt,Dt.mode,500,400))},themeAccent:Dt.primary.main,themeTextPrimary:Dt.text.primary,themeBackground:Dt.background.paper},view:"main"});return reactExports.useEffect(()=>{Pt(qt=>{var Yt,Xt;return lodashExports$1.set(qt,"source.playbackTo",((Xt=(Yt=Nt==null?void 0:Nt.content)==null?void 0:Yt.events)==null?void 0:Xt.length)??0)})},[(Wt=(Gt=Nt==null?void 0:Nt.content)==null?void 0:Gt.events)==null?void 0:Wt.length]),useEffectWhen(async()=>{const qt=await jt();Pt(Yt=>{lodashExports$1.set(Yt,"source.parsedTrace",qt),lodashExports$1.set(Yt,"viewKey",nanoid$1())})},[jt],[Nt==null?void 0:Nt.key,Dt.mode]),jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsx(PlaybackService,{value:_e})})}),renderer:({layer:_e,index:Pt})=>{var qt,Yt,Xt;const Dt=(Yt=(qt=_e==null?void 0:_e.source)==null?void 0:qt.parsedTrace)==null?void 0:Yt.components,Nt=useThrottle$1(((Xt=_e==null?void 0:_e.source)==null?void 0:Xt.step)??0,1e3/60),jt=use2DPath(_e,Pt,Nt),Ut=reactExports.useMemo(()=>lodashExports$1.map(Dt==null?void 0:Dt.stepsPersistent,Kt=>lodashExports$1.map(Kt,Qt=>lodashExports$1.merge(Qt,{meta:{sourceLayer:_e==null?void 0:_e.key,sourceLayerIndex:Pt,sourceLayerAlpha:1-.01*+((_e==null?void 0:_e.transparency)??0),sourceLayerDisplayMode:(_e==null?void 0:_e.displayMode)??"source-over"}}))),[Dt==null?void 0:Dt.stepsPersistent,_e==null?void 0:_e.key,_e==null?void 0:_e.transparency,_e==null?void 0:_e.displayMode,Pt]),Gt=reactExports.useMemo(()=>lodashExports$1.map(Dt==null?void 0:Dt.stepsTransient,Kt=>lodashExports$1.map(Kt,Qt=>lodashExports$1.merge(Qt,{meta:{sourceLayer:_e==null?void 0:_e.key,sourceLayerIndex:Pt,sourceLayerAlpha:1-.01*+((_e==null?void 0:_e.transparency)??0),sourceLayerDisplayMode:(_e==null?void 0:_e.displayMode)??"source-over"}}))),[Dt==null?void 0:Dt.stepsTransient,_e==null?void 0:_e.key,_e==null?void 0:_e.transparency,_e==null?void 0:_e.displayMode,Pt]),Wt=reactExports.useMemo(()=>[Gt[Nt]??[]],[Gt,Nt]);return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(LazyNodeList,{step:Nt,nodes:Ut}),jsxRuntimeExports.jsx(NodeList,{nodes:Wt}),jt]})},steps:_e=>{var Pt,Dt,Nt;return((Nt=(Dt=(Pt=_e==null?void 0:_e.source)==null?void 0:Pt.parsedTrace)==null?void 0:Dt.content)==null?void 0:Nt.events)??[]},provideSelectionInfo:({layer:_e,event:Pt,children:Dt})=>{const{layer:Nt,setLayer:jt}=useLayer(_e),Ut=reactExports.useMemo(()=>{var Yt,Xt,Kt,Qt,en;const Gt=((Kt=(Xt=(Yt=Nt==null?void 0:Nt.source)==null?void 0:Yt.parsedTrace)==null?void 0:Xt.content)==null?void 0:Kt.events)??[],Wt=lodashExports$1.chain((Qt=Pt==null?void 0:Pt.info)==null?void 0:Qt.components).filter(tn=>{var nn;return((nn=tn.meta)==null?void 0:nn.sourceLayer)===(Nt==null?void 0:Nt.key)}).map(tn=>{var nn;return(nn=tn.meta)==null?void 0:nn.step}).filter(lodashExports$1.negate(lodashExports$1.isUndefined)).sort((tn,nn)=>tn-nn).value(),qt=lodashExports$1.chain((en=Pt==null?void 0:Pt.info)==null?void 0:en.components).filter(tn=>{var nn;return((nn=tn.meta)==null?void 0:nn.sourceLayer)===(Nt==null?void 0:Nt.key)}).filter(tn=>{var nn;return(nn=tn.meta)==null?void 0:nn.info}).value();if(Wt.length&&Nt){const tn=lodashExports$1.last(Wt),nn=Gt[tn];if(nn)return{...lodashExports$1.keyBy(lodashExports$1.map(qt,(rn,an)=>({key:`${Nt.key}.${an}`,primary:`Selection in ${inferLayerName(Nt)}`,items:{info:{index:-1,primary:jsxRuntimeExports.jsx(PropertyList,{event:rn.meta.info,vertical:!0})}}})),"key"),[Nt.key]:{primary:inferLayerName(Nt),items:{properties:{index:-2,primary:jsxRuntimeExports.jsx(PropertyList,{event:nn,vertical:!0,simple:!0,primitives:!0})},propertiesDetails:{index:-1,extras:jsxRuntimeExports.jsx(PropertyDialog,{event:nn,trigger:rn=>jsxRuntimeExports.jsxs(MenuItem$1,{onClick:rn,children:[jsxRuntimeExports.jsx(ListItemIcon$1,{children:jsxRuntimeExports.jsx(DataObjectOutlined,{})}),jsxRuntimeExports.jsx(ListItemText$1,{sx:{mr:4},children:"See properties"}),jsxRuntimeExports.jsxs(Type$2,{variant:"body2",color:"text.secondary",children:["Step ",tn]})]})})},[`${nn}`]:{primary:`Go to step ${tn}`,secondary:`${lodashExports$1.startCase(nn.type)}`,action:()=>jt(produce(Nt,rn=>{lodashExports$1.set(rn,"source.step",tn)})),icon:jsxRuntimeExports.jsx(ArrowOutwardRounded,{})}}}}}return{}},[Nt,Pt]);return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:Dt==null?void 0:Dt(Ut)})},getSources:_e=>{var Dt;const Pt=(Dt=_e==null?void 0:_e.source)==null?void 0:Dt.trace;return Pt?[{id:"trace",name:`(Source) ${Pt.name}`,language:"yaml",content:dump(Pt.content,{noCompatMode:!0})}]:[]}};function use2DPath(_e,Pt=0,Dt=0){var Gt,Wt,qt;const{palette:Nt}=useTheme(),{getPath:jt}=reactExports.useMemo(()=>{var Yt,Xt,Kt;return((Yt=_e==null?void 0:_e.source)==null?void 0:Yt.playback)!=="playing"&&((Kt=(Xt=_e==null?void 0:_e.source)==null?void 0:Xt.parsedTrace)!=null&&Kt.content)?makePathIndex(_e.source.parsedTrace.content):{getParent:lodashExports$1.constant(void 0),getPath:lodashExports$1.constant([])}},[(Wt=(Gt=_e==null?void 0:_e.source)==null?void 0:Gt.parsedTrace)==null?void 0:Wt.content,(qt=_e==null?void 0:_e.source)==null?void 0:qt.playback]);return reactExports.useMemo(()=>{var Xt,Kt,Qt,en,tn,nn,rn,an;const Yt=(Kt=(Xt=_e==null?void 0:_e.source)==null?void 0:Xt.parsedTrace)==null?void 0:Kt.content;if((Qt=Yt==null?void 0:Yt.render)!=null&&Qt.path||Yt!=null&&Yt.pivot){const sn=((tn=(en=Yt==null?void 0:Yt.render)==null?void 0:en.path)==null?void 0:tn.pivot)??(Yt==null?void 0:Yt.pivot)??{},ln=((rn=(nn=Yt==null?void 0:Yt.render)==null?void 0:nn.path)==null?void 0:rn.scale)??((an=Yt==null?void 0:Yt.pivot)==null?void 0:an.scale)??1,{x:dn,y:mn}=sn,gn=(Yt==null?void 0:Yt.version)==="1.4.0"?parseProperty$1:Sn=>_n=>parseProperty(Sn)({event:_n}),un=dn?gn(dn):Sn=>Sn.x,hn=mn?gn(mn):Sn=>Sn.y,vn=lodashExports$1.map(jt(Dt),Sn=>{var _n;return(_n=Yt==null?void 0:Yt.events)==null?void 0:_n[Sn]});if(vn.length){const Sn=[{$:"circle",x:un({x:0,y:0,...lodashExports$1.head(vn)}),y:hn({x:0,y:0,...lodashExports$1.head(vn)}),fill:Nt.background.paper,radius:.45*ln},{$:"circle",x:un({x:0,y:0,...lodashExports$1.last(vn)}),y:hn({x:0,y:0,...lodashExports$1.last(vn)}),fill:Nt.background.paper,radius:.45*ln},{$:"circle",x:un({x:0,y:0,...lodashExports$1.head(vn)}),y:hn({x:0,y:0,...lodashExports$1.head(vn)}),fill:getColorHex("destination"),radius:.4*ln},{$:"circle",x:un({x:0,y:0,...lodashExports$1.last(vn)}),y:hn({x:0,y:0,...lodashExports$1.last(vn)}),fill:getColorHex("source"),radius:.4*ln},{$:"path",points:vn.map(_n=>({x:un({x:0,y:0,..._n}),y:hn({x:0,y:0,..._n})})),fill:Nt.primary.main,alpha:1,lineWidth:.3*ln}];return jsxRuntimeExports.jsx(NodeList,{nodes:[lodashExports$1.map(Sn,_n=>({component:_n,meta:{source:"path",sourceLayerIndex:-99999+Pt}}))]})}}return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{})},[_e,Pt,Dt,Nt,jt])}async function findConnection(_e,Pt,Dt){for(const Nt of _e){const jt=await Nt.transport().call("features/algorithms"),Ut=await Nt.transport().call("features/formats");if(lodashExports$1.find(jt,{id:Pt})&&lodashExports$1.find(Ut,{id:Dt}))return Nt}}const controller={...lodashExports$1.omit(controller$1,"claimImportedFile"),key:"query",icon:jsxRuntimeExports.jsx(RouteTwoTone,{}),editor:withProduce(({value:_e,produce:Pt})=>{var Yt,Xt;const{algorithm:Dt}=(_e==null?void 0:_e.source)??{},{layers:Nt,allLayers:jt,layer:Ut,key:Gt}=useLayer(void 0,Kt=>{var Qt;return((Qt=Kt.source)==null?void 0:Qt.type)==="map"}),[{algorithms:Wt}]=useFeatures(),[qt]=useConnections();return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Option,{label:"Algorithm",content:jsxRuntimeExports.jsx(FeaturePicker,{arrow:!0,paper:!0,icon:jsxRuntimeExports.jsx(CodeOutlined,{}),label:"Algorithm",value:Dt,items:Wt.map(Kt=>{var Qt;return{...Kt,description:(Qt=lodashExports$1.find(qt,{url:Kt.source}))==null?void 0:Qt.name}}),onChange:async Kt=>Pt(Qt=>lodashExports$1.set(Qt,"source.algorithm",Kt))})}),!(Wt!=null&&Wt.length)&&jsxRuntimeExports.jsx(Type$2,{variant:"body2",color:"warning.main",sx:{mb:1},children:"No connected solver has declared support for running algorithms"}),jsxRuntimeExports.jsx(Option,{label:"Map",content:jsxRuntimeExports.jsx(FeaturePicker,{arrow:!0,paper:!0,icon:jsxRuntimeExports.jsx(LayersIcon,{}),label:"Layer",value:Gt,items:jt.map(Kt=>({id:Kt.key,hidden:!lodashExports$1.find(Nt,Qt=>Qt.key===Kt.key),name:inferLayerName(Kt)})),onChange:async Kt=>Pt(Qt=>lodashExports$1.set(Qt,"source.mapLayerKey",Kt))})}),Ut&&jsxRuntimeExports.jsxs(Type$2,{variant:"body2",color:"text.secondary",sx:{mb:1,mt:1},children:["Define source and destination nodes by clicking on valid regions on"," ",inferLayerName(Ut)]}),jsxRuntimeExports.jsx(Heading,{label:"Preview"}),jsxRuntimeExports.jsx(Box$1,{sx:{height:240,mx:-2},children:jsxRuntimeExports.jsx(TracePreview,{trace:(Xt=(Yt=_e==null?void 0:_e.source)==null?void 0:Yt.trace)==null?void 0:Xt.content})})]})}),service:withProduce(({value:_e,produce:Pt,onChange:Dt})=>{const Nt=controller$1.service,jt=useSnackbar(),{algorithm:Ut,mapLayerKey:Gt,start:Wt,end:qt}=(_e==null?void 0:_e.source)??{},[{layers:Yt}]=useLayers(),[Xt]=useConnections(),[{algorithms:Kt}]=useFeatures(),Qt=reactExports.useMemo(()=>{if(Gt&&Ut)return lodashExports$1.find(Yt,{key:Gt})},[Gt,Ut,Yt]);return useEffectWhenAsync(async en=>{var tn;if(Qt&&Ut){const{format:nn,content:rn}=((tn=Qt==null?void 0:Qt.source)==null?void 0:tn.map)??{};if(nn&&rn){const an=await findConnection(Xt,Ut,nn),sn=lodashExports$1.find(Kt,{id:Ut});if(an){jt(`Executing ${inferLayerName(_e)} using ${an.name}...`);const ln=await an.transport().call("solve/pathfinding",{format:nn,instances:[{start:Wt??0,end:qt??0}],mapURI:`map:${encodeURIComponent(rn)}`,algorithm:Ut});en.aborted?jt("Canceled"):Pt(dn=>lodashExports$1.set(dn,"source.trace",{name:`${sn==null?void 0:sn.name}`,content:ln,key:nanoid$1(),id:nanoid$1()}))}}}},[Qt,Xt,Ut,Wt,qt,Pt,jt,_e,Kt],[Qt,Xt,Ut,Wt,qt]),jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsx(Nt,{value:_e,onChange:Dt})})}),inferName:_e=>{var Pt,Dt;return((Dt=(Pt=_e.source)==null?void 0:Pt.trace)==null?void 0:Dt.name)??"Untitled Query"},provideSelectionInfo:({children:_e,event:Pt,layer:Dt})=>{const Nt=controller$1.provideSelectionInfo,{layer:jt,setLayer:Ut,layers:Gt}=useLayer(Dt),Wt=reactExports.useMemo(()=>{const Yt=lodashExports$1.filter(Gt,{source:{type:"map"}});return lodashExports$1.filter(lodashExports$1.map(Yt,Xt=>{var Qt,en,tn,nn;const{parsedMap:Kt}=(Xt==null?void 0:Xt.source)??{};if(Kt&&Pt){const rn=(nn=(tn=getParser((en=(Qt=Xt==null?void 0:Xt.source)==null?void 0:Qt.map)==null?void 0:en.format))==null?void 0:tn.hydrate)==null?void 0:nn.call(tn,Kt);if(rn){const an=(Pt==null?void 0:Pt.world)&&rn.snap(Pt.world);if(an){const sn=(Pt==null?void 0:Pt.world)&&rn.nodeAt(an);return{point:an,node:sn,key:Xt.key,name:inferLayerName(Xt)}}}}}))},[Gt]),qt=reactExports.useMemo(()=>!!jt&&!!Wt.length&&{[jt.key]:{primary:inferLayerName(jt),items:{...lodashExports$1.reduce(Wt,(Yt,Xt)=>({...Yt,[`${Dt}-${Xt==null?void 0:Xt.key}-source`]:{primary:"Set as source",secondary:Xt==null?void 0:Xt.name,action:()=>Ut(produce(jt,Kt=>{lodashExports$1.set(Kt,"source.start",Xt==null?void 0:Xt.node),lodashExports$1.set(Kt,"source.query",void 0),lodashExports$1.set(Kt,"source.mapLayerKey",Xt==null?void 0:Xt.key),lodashExports$1.set(Kt,"source.trace",void 0)})),icon:jsxRuntimeExports.jsx(StartIcon,{sx:{transform:"scale(0.5)"}})},[`${Dt}-${Xt==null?void 0:Xt.key}-destination`]:{primary:"Set as destination",secondary:Xt==null?void 0:Xt.name,action:()=>Ut(produce(jt,Kt=>{lodashExports$1.set(Kt,"source.end",Xt==null?void 0:Xt.node),lodashExports$1.set(Kt,"source.query",void 0),lodashExports$1.set(Kt,"source.mapLayerKey",Xt==null?void 0:Xt.key),lodashExports$1.set(Kt,"source.trace",void 0)})),icon:jsxRuntimeExports.jsx(DestinationIcon,{})}}),{})}}},[Wt,jt,Gt,Ut]);return jsxRuntimeExports.jsx(Nt,{event:Pt,layer:Dt,children:Yt=>_e==null?void 0:_e(lodashExports$1.merge(Yt,qt))})}};function getLayerHandler(_e){var Pt;return layerHandlers[((Pt=_e==null?void 0:_e.source)==null?void 0:Pt.type)??""]}const layerHandlers={trace:controller$1,map:controller$2,query:controller};function inferLayerName(_e){var Pt,Dt;return _e!=null&&_e.name?_e==null?void 0:_e.name:(Pt=_e==null?void 0:_e.source)!=null&&Pt.type?layerHandlers[(Dt=_e.source)==null?void 0:Dt.type].inferName(_e):"Untitled Layer"}var ReactReduxContext=React.createContext(null);function defaultNoopBatch(_e){_e()}var batch=defaultNoopBatch,setBatch=function _e(Pt){return batch=Pt},getBatch=function _e(){return batch};function createListenerCollection(){var _e=getBatch(),Pt=null,Dt=null;return{clear:function(){Pt=null,Dt=null},notify:function(){_e(function(){for(var jt=Pt;jt;)jt.callback(),jt=jt.next})},get:function(){for(var jt=[],Ut=Pt;Ut;)jt.push(Ut),Ut=Ut.next;return jt},subscribe:function(jt){var Ut=!0,Gt=Dt={callback:jt,next:null,prev:Dt};return Gt.prev?Gt.prev.next=Gt:Pt=Gt,function(){!Ut||Pt===null||(Ut=!1,Gt.next?Gt.next.prev=Gt.prev:Dt=Gt.prev,Gt.prev?Gt.prev.next=Gt.next:Pt=Gt.next)}}}}var nullListeners={notify:function _e(){},get:function _e(){return[]}};function createSubscription(_e,Pt){var Dt,Nt=nullListeners;function jt(Kt){return qt(),Nt.subscribe(Kt)}function Ut(){Nt.notify()}function Gt(){Xt.onStateChange&&Xt.onStateChange()}function Wt(){return!!Dt}function qt(){Dt||(Dt=Pt?Pt.addNestedSub(Gt):_e.subscribe(Gt),Nt=createListenerCollection())}function Yt(){Dt&&(Dt(),Dt=void 0,Nt.clear(),Nt=nullListeners)}var Xt={addNestedSub:jt,notifyNestedSubs:Ut,handleChangeWrapper:Gt,isSubscribed:Wt,trySubscribe:qt,tryUnsubscribe:Yt,getListeners:function(){return Nt}};return Xt}var useIsomorphicLayoutEffect$4=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?reactExports.useLayoutEffect:reactExports.useEffect;function Provider(_e){var Pt=_e.store,Dt=_e.context,Nt=_e.children,jt=reactExports.useMemo(function(){var Wt=createSubscription(Pt);return{store:Pt,subscription:Wt}},[Pt]),Ut=reactExports.useMemo(function(){return Pt.getState()},[Pt]);useIsomorphicLayoutEffect$4(function(){var Wt=jt.subscription;return Wt.onStateChange=Wt.notifyNestedSubs,Wt.trySubscribe(),Ut!==Pt.getState()&&Wt.notifyNestedSubs(),function(){Wt.tryUnsubscribe(),Wt.onStateChange=null}},[jt,Ut]);var Gt=Dt||ReactReduxContext;return React.createElement(Gt.Provider,{value:jt},Nt)}var _excluded$2=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],_excluded2=["reactReduxForwardedRef"],EMPTY_ARRAY=[],NO_SUBSCRIPTION_ARRAY=[null,null];function storeStateUpdatesReducer(_e,Pt){var Dt=_e[1];return[Pt.payload,Dt+1]}function useIsomorphicLayoutEffectWithArgs(_e,Pt,Dt){useIsomorphicLayoutEffect$4(function(){return _e.apply(void 0,Pt)},Dt)}function captureWrapperProps(_e,Pt,Dt,Nt,jt,Ut,Gt){_e.current=Nt,Pt.current=jt,Dt.current=!1,Ut.current&&(Ut.current=null,Gt())}function subscribeUpdates(_e,Pt,Dt,Nt,jt,Ut,Gt,Wt,qt,Yt){if(_e){var Xt=!1,Kt=null,Qt=function(){if(!Xt){var nn=Pt.getState(),rn,an;try{rn=Nt(nn,jt.current)}catch(sn){an=sn,Kt=sn}an||(Kt=null),rn===Ut.current?Gt.current||qt():(Ut.current=rn,Wt.current=rn,Gt.current=!0,Yt({type:"STORE_UPDATED",payload:{error:an}}))}};Dt.onStateChange=Qt,Dt.trySubscribe(),Qt();var en=function(){if(Xt=!0,Dt.tryUnsubscribe(),Dt.onStateChange=null,Kt)throw Kt};return en}}var initStateUpdates=function _e(){return[null,0]};function connectAdvanced(_e,Pt){Pt===void 0&&(Pt={});var Dt=Pt,Nt=Dt.getDisplayName,jt=Nt===void 0?function(ln){return"ConnectAdvanced("+ln+")"}:Nt,Ut=Dt.methodName,Gt=Ut===void 0?"connectAdvanced":Ut,Wt=Dt.renderCountProp,qt=Wt===void 0?void 0:Wt,Yt=Dt.shouldHandleStateChanges,Xt=Yt===void 0?!0:Yt,Kt=Dt.storeKey,Qt=Kt===void 0?"store":Kt;Dt.withRef;var en=Dt.forwardRef,tn=en===void 0?!1:en,nn=Dt.context,rn=nn===void 0?ReactReduxContext:nn,an=_objectWithoutPropertiesLoose$3(Dt,_excluded$2),sn=rn;return function(dn){var mn=dn.displayName||dn.name||"Component",gn=jt(mn),un=_extends$2({},an,{getDisplayName:jt,methodName:Gt,renderCountProp:qt,shouldHandleStateChanges:Xt,storeKey:Qt,displayName:gn,wrappedComponentName:mn,WrappedComponent:dn}),hn=an.pure;function vn(pn){return _e(pn.dispatch,un)}var Sn=hn?reactExports.useMemo:function(pn){return pn()};function _n(pn){var Nn=reactExports.useMemo(function(){var hr=pn.reactReduxForwardedRef,yr=_objectWithoutPropertiesLoose$3(pn,_excluded2);return[pn.context,hr,yr]},[pn]),On=Nn[0],Dn=Nn[1],En=Nn[2],An=reactExports.useMemo(function(){return On&&On.Consumer&&reactIsExports.isContextConsumer(React.createElement(On.Consumer,null))?On:sn},[On,sn]),Un=reactExports.useContext(An),Rn=!!pn.store&&!!pn.store.getState&&!!pn.store.dispatch;Un&&Un.store;var In=Rn?pn.store:Un.store,Xn=reactExports.useMemo(function(){return vn(In)},[In]),nr=reactExports.useMemo(function(){if(!Xt)return NO_SUBSCRIPTION_ARRAY;var hr=createSubscription(In,Rn?null:Un.subscription),yr=hr.notifyNestedSubs.bind(hr);return[hr,yr]},[In,Rn,Un]),ar=nr[0],$n=nr[1],Pn=reactExports.useMemo(function(){return Rn?Un:_extends$2({},Un,{subscription:ar})},[Rn,Un,ar]),Mn=reactExports.useReducer(storeStateUpdatesReducer,EMPTY_ARRAY,initStateUpdates),Vn=Mn[0],yn=Vn[0],bn=Mn[1];if(yn&&yn.error)throw yn.error;var wn=reactExports.useRef(),Gn=reactExports.useRef(En),Zn=reactExports.useRef(),kn=reactExports.useRef(!1),Qn=Sn(function(){return Zn.current&&En===Gn.current?Zn.current:Xn(In.getState(),En)},[In,yn,En]);useIsomorphicLayoutEffectWithArgs(captureWrapperProps,[Gn,wn,kn,En,Qn,Zn,$n]),useIsomorphicLayoutEffectWithArgs(subscribeUpdates,[Xt,In,ar,Xn,Gn,wn,kn,Zn,$n,bn],[In,ar,Xn]);var ir=reactExports.useMemo(function(){return React.createElement(dn,_extends$2({},Qn,{ref:Dn}))},[Dn,dn,Qn]),Jn=reactExports.useMemo(function(){return Xt?React.createElement(An.Provider,{value:Pn},ir):ir},[An,ir,Pn]);return Jn}var Tn=hn?React.memo(_n):_n;if(Tn.WrappedComponent=dn,Tn.displayName=_n.displayName=gn,tn){var Cn=React.forwardRef(function(Nn,On){return React.createElement(Tn,_extends$2({},Nn,{reactReduxForwardedRef:On}))});return Cn.displayName=gn,Cn.WrappedComponent=dn,hoistStatics(Cn,dn)}return hoistStatics(Tn,dn)}}function is$5(_e,Pt){return _e===Pt?_e!==0||Pt!==0||1/_e===1/Pt:_e!==_e&&Pt!==Pt}function shallowEqual(_e,Pt){if(is$5(_e,Pt))return!0;if(typeof _e!="object"||_e===null||typeof Pt!="object"||Pt===null)return!1;var Dt=Object.keys(_e),Nt=Object.keys(Pt);if(Dt.length!==Nt.length)return!1;for(var jt=0;jt=0;Nt--){var jt=Pt[Nt](_e);if(jt)return jt}return function(Ut,Gt){throw new Error("Invalid value of type "+typeof _e+" for "+Dt+" argument when connecting component "+Gt.wrappedComponentName+".")}}function strictEqual(_e,Pt){return _e===Pt}function createConnect(_e){var Pt=_e===void 0?{}:_e,Dt=Pt.connectHOC,Nt=Dt===void 0?connectAdvanced:Dt,jt=Pt.mapStateToPropsFactories,Ut=jt===void 0?defaultMapStateToPropsFactories:jt,Gt=Pt.mapDispatchToPropsFactories,Wt=Gt===void 0?defaultMapDispatchToPropsFactories:Gt,qt=Pt.mergePropsFactories,Yt=qt===void 0?defaultMergePropsFactories:qt,Xt=Pt.selectorFactory,Kt=Xt===void 0?finalPropsSelectorFactory:Xt;return function(en,tn,nn,rn){rn===void 0&&(rn={});var an=rn,sn=an.pure,ln=sn===void 0?!0:sn,dn=an.areStatesEqual,mn=dn===void 0?strictEqual:dn,gn=an.areOwnPropsEqual,un=gn===void 0?shallowEqual:gn,hn=an.areStatePropsEqual,vn=hn===void 0?shallowEqual:hn,Sn=an.areMergedPropsEqual,_n=Sn===void 0?shallowEqual:Sn,Tn=_objectWithoutPropertiesLoose$3(an,_excluded),Cn=match(en,Ut,"mapStateToProps"),pn=match(tn,Wt,"mapDispatchToProps"),Nn=match(nn,Yt,"mergeProps");return Nt(Kt,_extends$2({methodName:"connect",getDisplayName:function(Dn){return"Connect("+Dn+")"},shouldHandleStateChanges:!!en,initMapStateToProps:Cn,initMapDispatchToProps:pn,initMergeProps:Nn,pure:ln,areStatesEqual:mn,areOwnPropsEqual:un,areStatePropsEqual:vn,areMergedPropsEqual:_n},Tn))}}const connect$1=createConnect();setBatch(reactDomExports.unstable_batchedUpdates);function areInputsEqual$1(_e,Pt){if(_e.length!==Pt.length)return!1;for(var Dt=0;Dt<_e.length;Dt++)if(_e[Dt]!==Pt[Dt])return!1;return!0}function useMemoOne(_e,Pt){var Dt=reactExports.useState(function(){return{inputs:Pt,result:_e()}})[0],Nt=reactExports.useRef(!0),jt=reactExports.useRef(Dt),Ut=Nt.current||!!(Pt&&jt.current.inputs&&areInputsEqual$1(Pt,jt.current.inputs)),Gt=Ut?jt.current:{inputs:Pt,result:_e()};return reactExports.useEffect(function(){Nt.current=!1,jt.current=Gt},[Gt]),Gt.result}function useCallbackOne(_e,Pt){return useMemoOne(function(){return _e},Pt)}var useMemo=useMemoOne,useCallback=useCallbackOne,isProduction=!0,prefix$2="Invariant failed";function invariant$1(_e,Pt){if(!_e){if(isProduction)throw new Error(prefix$2);var Dt=typeof Pt=="function"?Pt():Pt,Nt=Dt?"".concat(prefix$2,": ").concat(Dt):prefix$2;throw new Error(Nt)}}var getRect=function _e(Pt){var Dt=Pt.top,Nt=Pt.right,jt=Pt.bottom,Ut=Pt.left,Gt=Nt-Ut,Wt=jt-Dt,qt={top:Dt,right:Nt,bottom:jt,left:Ut,width:Gt,height:Wt,x:Ut,y:Dt,center:{x:(Nt+Ut)/2,y:(jt+Dt)/2}};return qt},expand=function _e(Pt,Dt){return{top:Pt.top-Dt.top,left:Pt.left-Dt.left,bottom:Pt.bottom+Dt.bottom,right:Pt.right+Dt.right}},shrink=function _e(Pt,Dt){return{top:Pt.top+Dt.top,left:Pt.left+Dt.left,bottom:Pt.bottom-Dt.bottom,right:Pt.right-Dt.right}},shift=function _e(Pt,Dt){return{top:Pt.top+Dt.y,left:Pt.left+Dt.x,bottom:Pt.bottom+Dt.y,right:Pt.right+Dt.x}},noSpacing$1={top:0,right:0,bottom:0,left:0},createBox=function _e(Pt){var Dt=Pt.borderBox,Nt=Pt.margin,jt=Nt===void 0?noSpacing$1:Nt,Ut=Pt.border,Gt=Ut===void 0?noSpacing$1:Ut,Wt=Pt.padding,qt=Wt===void 0?noSpacing$1:Wt,Yt=getRect(expand(Dt,jt)),Xt=getRect(shrink(Dt,Gt)),Kt=getRect(shrink(Xt,qt));return{marginBox:Yt,borderBox:getRect(Dt),paddingBox:Xt,contentBox:Kt,margin:jt,border:Gt,padding:qt}},parse$6=function _e(Pt){var Dt=Pt.slice(0,-2),Nt=Pt.slice(-2);if(Nt!=="px")return 0;var jt=Number(Dt);return isNaN(jt)&&invariant$1(!1),jt},getWindowScroll$1=function _e(){return{x:window.pageXOffset,y:window.pageYOffset}},offset=function _e(Pt,Dt){var Nt=Pt.borderBox,jt=Pt.border,Ut=Pt.margin,Gt=Pt.padding,Wt=shift(Nt,Dt);return createBox({borderBox:Wt,border:jt,margin:Ut,padding:Gt})},withScroll=function _e(Pt,Dt){return Dt===void 0&&(Dt=getWindowScroll$1()),offset(Pt,Dt)},calculateBox=function _e(Pt,Dt){var Nt={top:parse$6(Dt.marginTop),right:parse$6(Dt.marginRight),bottom:parse$6(Dt.marginBottom),left:parse$6(Dt.marginLeft)},jt={top:parse$6(Dt.paddingTop),right:parse$6(Dt.paddingRight),bottom:parse$6(Dt.paddingBottom),left:parse$6(Dt.paddingLeft)},Ut={top:parse$6(Dt.borderTopWidth),right:parse$6(Dt.borderRightWidth),bottom:parse$6(Dt.borderBottomWidth),left:parse$6(Dt.borderLeftWidth)};return createBox({borderBox:Pt,margin:Nt,padding:jt,border:Ut})},getBox=function _e(Pt){var Dt=Pt.getBoundingClientRect(),Nt=window.getComputedStyle(Pt);return calculateBox(Dt,Nt)},safeIsNaN=Number.isNaN||function _e(Pt){return typeof Pt=="number"&&Pt!==Pt};function isEqual$2(_e,Pt){return!!(_e===Pt||safeIsNaN(_e)&&safeIsNaN(Pt))}function areInputsEqual(_e,Pt){if(_e.length!==Pt.length)return!1;for(var Dt=0;Dt<_e.length;Dt++)if(!isEqual$2(_e[Dt],Pt[Dt]))return!1;return!0}function memoizeOne(_e,Pt){Pt===void 0&&(Pt=areInputsEqual);var Dt,Nt=[],jt,Ut=!1;function Gt(){for(var Wt=[],qt=0;qt");return Nt.callbacks},Nt.setCallbacks=function(Wt){Nt.callbacks=Wt},Nt}var Dt=Pt.prototype;return Dt.componentDidMount=function(){this.unbind=bindEvents(window,[{eventName:"error",fn:this.onWindowError}])},Dt.componentDidCatch=function(jt){if(jt instanceof RbdInvariant){this.setState({});return}throw jt},Dt.componentWillUnmount=function(){this.unbind()},Dt.render=function(){return this.props.children(this.setCallbacks)},Pt}(React.Component),dragHandleUsageInstructions=` Press space bar to start a drag. When dragging you can use the arrow keys to move the item around and escape to cancel. Some screen readers may require you to be in focus mode or to use your pass through key @@ -1289,7 +1289,7 @@ $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\ `)||null}}function resolveTagDirective(_e,Pt){var Dt=_e.tagPrefixes,Nt=_slicedToArray(Pt.parameters,2),jt=Nt[0],Ut=Nt[1];if(!jt||!Ut){var Gt="Insufficient parameters given for %TAG directive";throw new YAMLSemanticError(Pt,Gt)}if(Dt.some(function(qt){return qt.handle===jt})){var Wt="The %TAG directive must only be given at most once per handle in the same document.";throw new YAMLSemanticError(Pt,Wt)}return{handle:jt,prefix:Ut}}function resolveYamlDirective(_e,Pt){var Dt=_slicedToArray(Pt.parameters,1),Nt=Dt[0];if(Pt.name==="YAML:1.0"&&(Nt="1.0"),!Nt){var jt="Insufficient parameters given for %YAML directive";throw new YAMLSemanticError(Pt,jt)}if(!documentOptions[Nt]){var Ut=_e.version||_e.options.version,Gt="Document will be parsed as YAML ".concat(Ut," rather than YAML ").concat(Nt);_e.warnings.push(new YAMLWarning(Pt,Gt))}return Nt}function parseDirectives(_e,Pt,Dt){var Nt=[],jt=!1,Ut=_createForOfIteratorHelper(Pt),Gt;try{for(Ut.s();!(Gt=Ut.n()).done;){var Wt=Gt.value,qt=Wt.comment,Yt=Wt.name;switch(Yt){case"TAG":try{_e.tagPrefixes.push(resolveTagDirective(_e,Wt))}catch(en){_e.errors.push(en)}jt=!0;break;case"YAML":case"YAML:1.0":if(_e.version){var Xt="The %YAML directive must only be given at most once per document.";_e.errors.push(new YAMLSemanticError(Wt,Xt))}try{_e.version=resolveYamlDirective(_e,Wt)}catch(en){_e.errors.push(en)}jt=!0;break;default:if(Yt){var Kt="YAML only supports %TAG and %YAML directives, and not %".concat(Yt);_e.warnings.push(new YAMLWarning(Wt,Kt))}}qt&&Nt.push(qt)}}catch(en){Ut.e(en)}finally{Ut.f()}if(Dt&&!jt&&(_e.version||Dt.version||_e.options.version)==="1.1"){var Qt=function(tn){var nn=tn.handle,rn=tn.prefix;return{handle:nn,prefix:rn}};_e.tagPrefixes=Dt.tagPrefixes.map(Qt),_e.version=Dt.version}_e.commentBefore=Nt.join(` `)||null}function assertCollection(_e){if(_e instanceof Collection)return!0;throw new Error("Expected a YAML collection as document contents")}var Document$1=function(){function _e(Pt){_classCallCheck(this,_e),this.anchors=new Anchors(Pt.anchorPrefix),this.commentBefore=null,this.comment=null,this.contents=null,this.directivesEndMarker=null,this.errors=[],this.options=Pt,this.schema=null,this.tagPrefixes=[],this.version=null,this.warnings=[]}return _createClass(_e,[{key:"add",value:function(Dt){return assertCollection(this.contents),this.contents.add(Dt)}},{key:"addIn",value:function(Dt,Nt){assertCollection(this.contents),this.contents.addIn(Dt,Nt)}},{key:"delete",value:function(Dt){return assertCollection(this.contents),this.contents.delete(Dt)}},{key:"deleteIn",value:function(Dt){return isEmptyPath(Dt)?this.contents==null?!1:(this.contents=null,!0):(assertCollection(this.contents),this.contents.deleteIn(Dt))}},{key:"getDefaults",value:function(){return _e.defaults[this.version]||_e.defaults[this.options.version]||{}}},{key:"get",value:function(Dt,Nt){return this.contents instanceof Collection?this.contents.get(Dt,Nt):void 0}},{key:"getIn",value:function(Dt,Nt){return isEmptyPath(Dt)?!Nt&&this.contents instanceof Scalar?this.contents.value:this.contents:this.contents instanceof Collection?this.contents.getIn(Dt,Nt):void 0}},{key:"has",value:function(Dt){return this.contents instanceof Collection?this.contents.has(Dt):!1}},{key:"hasIn",value:function(Dt){return isEmptyPath(Dt)?this.contents!==void 0:this.contents instanceof Collection?this.contents.hasIn(Dt):!1}},{key:"set",value:function(Dt,Nt){assertCollection(this.contents),this.contents.set(Dt,Nt)}},{key:"setIn",value:function(Dt,Nt){isEmptyPath(Dt)?this.contents=Nt:(assertCollection(this.contents),this.contents.setIn(Dt,Nt))}},{key:"setSchema",value:function(Dt,Nt){if(!(!Dt&&!Nt&&this.schema)){typeof Dt=="number"&&(Dt=Dt.toFixed(1)),Dt==="1.0"||Dt==="1.1"||Dt==="1.2"?(this.version?this.version=Dt:this.options.version=Dt,delete this.options.schema):Dt&&typeof Dt=="string"&&(this.options.schema=Dt),Array.isArray(Nt)&&(this.options.customTags=Nt);var jt=Object.assign({},this.getDefaults(),this.options);this.schema=new Schema(jt)}}},{key:"parse",value:function(Dt,Nt){this.options.keepCstNodes&&(this.cstNode=Dt),this.options.keepNodeTypes&&(this.type="DOCUMENT");var jt=Dt.directives,Ut=jt===void 0?[]:jt,Gt=Dt.contents,Wt=Gt===void 0?[]:Gt,qt=Dt.directivesEndMarker,Yt=Dt.error,Xt=Dt.valueRange;if(Yt&&(Yt.source||(Yt.source=this),this.errors.push(Yt)),parseDirectives(this,Ut,Nt),qt&&(this.directivesEndMarker=!0),this.range=Xt?[Xt.start,Xt.end]:null,this.setSchema(),this.anchors._cstAliases=[],parseContents(this,Wt),this.anchors.resolveNodes(),this.options.prettyErrors){var Kt=_createForOfIteratorHelper(this.errors),Qt;try{for(Kt.s();!(Qt=Kt.n()).done;){var en=Qt.value;en instanceof YAMLError&&en.makePretty()}}catch(an){Kt.e(an)}finally{Kt.f()}var tn=_createForOfIteratorHelper(this.warnings),nn;try{for(tn.s();!(nn=tn.n()).done;){var rn=nn.value;rn instanceof YAMLError&&rn.makePretty()}}catch(an){tn.e(an)}finally{tn.f()}}return this}},{key:"listNonDefaultTags",value:function(){return listTagNames(this.contents).filter(function(Dt){return Dt.indexOf(Schema.defaultPrefix)!==0})}},{key:"setTagPrefix",value:function(Dt,Nt){if(Dt[0]!=="!"||Dt[Dt.length-1]!=="!")throw new Error("Handle must start and end with !");if(Nt){var jt=this.tagPrefixes.find(function(Ut){return Ut.handle===Dt});jt?jt.prefix=Nt:this.tagPrefixes.push({handle:Dt,prefix:Nt})}else this.tagPrefixes=this.tagPrefixes.filter(function(Ut){return Ut.handle!==Dt})}},{key:"toJSON",value:function(Dt,Nt){var jt=this,Ut=this.options,Gt=Ut.keepBlobsInJSON,Wt=Ut.mapAsMap,qt=Ut.maxAliasCount,Yt=Gt&&(typeof Dt!="string"||!(this.contents instanceof Scalar)),Xt={doc:this,indentStep:" ",keep:Yt,mapAsMap:Yt&&!!Wt,maxAliasCount:qt,stringify:stringify$1$1},Kt=Object.keys(this.anchors.map);Kt.length>0&&(Xt.anchors=new Map(Kt.map(function(sn){return[jt.anchors.map[sn],{alias:[],aliasCount:0,count:1}]})));var Qt=toJSON(this.contents,Dt,Xt);if(typeof Nt=="function"&&Xt.anchors){var en=_createForOfIteratorHelper(Xt.anchors.values()),tn;try{for(en.s();!(tn=en.n()).done;){var nn=tn.value,rn=nn.count,an=nn.res;Nt(an,rn)}}catch(sn){en.e(sn)}finally{en.f()}}return Qt}},{key:"toString",value:function(){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");var Dt=this.options.indent;if(!Number.isInteger(Dt)||Dt<=0){var Nt=JSON.stringify(Dt);throw new Error('"indent" option must be a positive integer, not '.concat(Nt))}this.setSchema();var jt=[],Ut=!1;if(this.version){var Gt="%YAML 1.2";this.schema.name==="yaml-1.1"&&(this.version==="1.0"?Gt="%YAML:1.0":this.version==="1.1"&&(Gt="%YAML 1.1")),jt.push(Gt),Ut=!0}var Wt=this.listNonDefaultTags();this.tagPrefixes.forEach(function(en){var tn=en.handle,nn=en.prefix;Wt.some(function(rn){return rn.indexOf(nn)===0})&&(jt.push("%TAG ".concat(tn," ").concat(nn)),Ut=!0)}),(Ut||this.directivesEndMarker)&&jt.push("---"),this.commentBefore&&((Ut||!this.directivesEndMarker)&&jt.unshift(""),jt.unshift(this.commentBefore.replace(/^/gm,"#")));var qt={anchors:Object.create(null),doc:this,indent:"",indentStep:" ".repeat(Dt),stringify:stringify$1$1},Yt=!1,Xt=null;if(this.contents){this.contents instanceof Node$2&&(this.contents.spaceBefore&&(Ut||this.directivesEndMarker)&&jt.push(""),this.contents.commentBefore&&jt.push(this.contents.commentBefore.replace(/^/gm,"#")),qt.forceBlockIndent=!!this.comment,Xt=this.contents.comment);var Kt=Xt?null:function(){return Yt=!0},Qt=stringify$1$1(this.contents,qt,function(){return Xt=null},Kt);jt.push(addComment(Qt,"",Xt))}else this.contents!==void 0&&jt.push(stringify$1$1(this.contents,qt));return this.comment&&((!Yt||Xt)&&jt[jt.length-1]!==""&&jt.push(""),jt.push(this.comment.replace(/^/gm,"#"))),jt.join(` `)+` -`}}]),_e}();_defineProperty(Document$1,"defaults",documentOptions);function createNode$1(_e){var Pt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,Dt=arguments.length>2?arguments[2]:void 0;Dt===void 0&&typeof Pt=="string"&&(Dt=Pt,Pt=!0);var Nt=Object.assign({},Document$1.defaults[defaultOptions.version],defaultOptions),jt=new Schema(Nt);return jt.createNode(_e,Pt,Dt)}var Document=function(_e){_inherits(Dt,_e);var Pt=_createSuper(Dt);function Dt(Nt){return _classCallCheck(this,Dt),Pt.call(this,Object.assign({},defaultOptions,Nt))}return Dt}(Document$1);function parseAllDocuments(_e,Pt){var Dt=[],Nt,jt=_createForOfIteratorHelper(parse$5(_e)),Ut;try{for(jt.s();!(Ut=jt.n()).done;){var Gt=Ut.value,Wt=new Document(Pt);Wt.parse(Gt,Nt),Dt.push(Wt),Nt=Wt}}catch(qt){jt.e(qt)}finally{jt.f()}return Dt}function parseDocument(_e,Pt){var Dt=parse$5(_e),Nt=new Document(Pt).parse(Dt[0]);if(Dt.length>1){var jt="Source contains multiple documents; please use YAML.parseAllDocuments()";Nt.errors.unshift(new YAMLSemanticError(Dt[1],jt))}return Nt}function parse$4(_e,Pt){var Dt=parseDocument(_e,Pt);if(Dt.warnings.forEach(function(Nt){return warn(Nt)}),Dt.errors.length>0)throw Dt.errors[0];return Dt.toJSON()}function stringify$2(_e,Pt){var Dt=new Document(Pt);return Dt.contents=_e,String(Dt)}var YAML={createNode:createNode$1,defaultOptions,Document,parse:parse$4,parseAllDocuments,parseCST:parse$5,parseDocument,scalarOptions,stringify:stringify$2};const dist$3=Object.freeze(Object.defineProperty({__proto__:null,YAML},Symbol.toStringTag,{value:"Module"})),require$$0=getAugmentedNamespace(dist$3);var browser=require$$0.YAML;const paths=Object.assign({"/public/recipes/9-tiles.workspace":()=>__vitePreload(()=>import("./9-tiles-1f224294.js"),[],import.meta.url).then(_e=>_e.default),"/public/recipes/a-star-grid-search.workspace":()=>__vitePreload(()=>import("./a-star-grid-search-ffae5751.js"),[],import.meta.url).then(_e=>_e.default),"/public/recipes/dynamic-star-craft.workspace":()=>__vitePreload(()=>import("./dynamic-star-craft-6a733d35.js"),[],import.meta.url).then(_e=>_e.default),"/public/recipes/rayscan.workspace":()=>__vitePreload(()=>import("./rayscan-202b7804.js"),[],import.meta.url).then(_e=>_e.default),"/public/recipes/weighted-a-star.workspace":()=>__vitePreload(()=>import("./weighted-a-star-756c8812.js"),[],import.meta.url).then(_e=>_e.default)}),metaPaths=Object.assign({"/public/recipes/9-tiles.workspace.meta":()=>__vitePreload(()=>import("./9-tiles.workspace-621e8328.js"),[],import.meta.url).then(_e=>_e.default),"/public/recipes/a-star-grid-search.workspace.meta":()=>__vitePreload(()=>import("./a-star-grid-search.workspace-8079d31e.js"),[],import.meta.url).then(_e=>_e.default),"/public/recipes/dynamic-star-craft.workspace.meta":()=>__vitePreload(()=>import("./dynamic-star-craft.workspace-5fa26288.js"),[],import.meta.url).then(_e=>_e.default),"/public/recipes/rayscan.workspace.meta":()=>__vitePreload(()=>import("./rayscan.workspace-b6c007ed.js"),[],import.meta.url).then(_e=>_e.default),"/public/recipes/weighted-a-star.workspace.meta":()=>__vitePreload(()=>import("./weighted-a-star.workspace-13502ed5.js"),[],import.meta.url).then(_e=>_e.default)});function stripExtension(_e){return _e.split(".")[0]}function basename(_e){return _e.split("/").pop()}async function getMeta(_e){const Pt=metaPaths[_e.replace(/workspace$/,"workspace.meta")],Dt=await(Pt==null?void 0:Pt());if(Dt){const Nt=await fetch(Dt);return browser.parse(await Nt.text())}}async function getFileInfo(_e,Pt){return{name:lodashExports$1.chain(_e).thru(basename).thru(stripExtension).startCase().value(),path:await Pt(),...await getMeta(_e)}}const makeAvatar=_e=>Pt=>jsxRuntimeExports.jsx(Avatar$1,{sx:Pt,children:_e});function getAuthor(_e){if(_e){try{const{protocol:Pt,pathname:Dt}=new URL(_e);switch(Pt){case"github:":return{name:Dt,avatar:Nt=>jsxRuntimeExports.jsx("a",{href:`https://github.com/${Dt}`,target:"_blank",rel:"noreferrer",children:jsxRuntimeExports.jsx(Avatar$1,{sx:Nt,src:`https://github.com/${Dt}.png`})})};default:break}}catch{}return{name:_e,avatar:makeAvatar(_e[0])}}return{name:"No author",avatar:makeAvatar()}}const ellipsisProps={textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"};function FeatureCard({name:_e,description:Pt,image:Dt,author:Nt,size:jt,onOpenClick:Ut,...Gt}){const[{"appearance/acrylic":Wt}]=useSettings(),qt=usePaper(),{name:Yt,avatar:Xt}=reactExports.useMemo(()=>getAuthor(Nt),[Nt]);return jsxRuntimeExports.jsxs(Card$1,{variant:"outlined",sx:{...qt(1),position:"relative",height:"100%"},...Gt,children:[Wt&&jsxRuntimeExports.jsx(Box$1,{sx:{zIndex:-1,filter:"blur(48px)",opacity:.1,position:"absolute",width:"100%",height:"100%",backgroundImage:`url("${Dt}")`,backgroundSize:"contain",backgroundRepeat:"no-repeat",backgroundPosition:"-52px -52px"}}),jsxRuntimeExports.jsx(CardHeader$1,{sx:{alignItems:"flex-start","> .MuiCardHeader-content":{overflow:"hidden"}},avatar:jsxRuntimeExports.jsx(Box$1,{sx:{...qt(1),border:"none",borderRadius:1,width:64,height:64,overflow:"hidden"},children:jsxRuntimeExports.jsx(Box$1,{sx:{imageRendering:"pixelated",width:64,height:64,backgroundImage:`url("${Dt}")`,backgroundSize:"130%",backgroundPosition:"center"}})}),titleTypeProps:ellipsisProps,title:_e||"Untitled",subheaderTypeProps:ellipsisProps,subheader:jsxRuntimeExports.jsxs(Stack$1,{gap:2,sx:{pt:1,alignItems:"flex-start"},children:[jsxRuntimeExports.jsx(Type$2,{sx:{...ellipsisProps,maxWidth:"100%",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:3,whiteSpace:"break-spaces",height:60},children:Pt||"No description"}),jsxRuntimeExports.jsxs(Stack$1,{direction:"row",alignItems:"center",gap:1,children:[Xt==null?void 0:Xt({width:18,height:18,fontSize:"0.8rem"}),jsxRuntimeExports.jsx(Type$2,{variant:"caption",children:Yt})]}),jsxRuntimeExports.jsx(Button,{onClick:Ut,startIcon:jsxRuntimeExports.jsx(WorkspacesOutlined,{}),sx:qt(2),children:jsxRuntimeExports.jsxs(Stack$1,{direction:"row",gap:1,children:[jsxRuntimeExports.jsx(Type$2,{children:"Open"}),!!jt&&jsxRuntimeExports.jsxs(Type$2,{color:"text.secondary",children:[lodashExports$1.round(jt/1024/1024,2)," MB"]})]})})]})})]})}const CONTENT_WIDTH=940;function ExplorePage({template:_e}){const[{"behaviour/showOnStart":Pt},Dt]=useSettings(),Nt=useSnackbar(),{controls:jt,onChange:Ut,state:Gt,dragHandle:Wt,isViewTree:qt}=useViewTreeContext(),{close:Yt}=useFullscreenModalContext(),Xt=useSmallDisplay()||qt,[Kt,Qt]=reactExports.useState(""),[en,tn]=reactExports.useState("explore"),{load:nn}=useWorkspace(),rn=useLoadingState(),{result:an,loading:sn}=useAsync(async()=>await map$7(lodashExports$1.entries(paths),un=>getFileInfo(...un)),[]),ln=un=>rn(async()=>{try{Nt(`Loading ${basename(un)}...`);const hn=await fetch(un);hn.ok||Nt(`Couldn't load ${basename(un)}`,"Network error",{error:!0});const vn=await hn.blob(),Sn=new File([vn],basename(un),{type:vn.type});nn(Sn)}catch(hn){Nt(`Couldn't load ${basename(un)}`,`${hn}`,{error:!0})}}),dn=reactExports.useMemo(()=>lodashExports$1.filter(an,un=>lodashExports$1.upperCase(browser.stringify(un)).includes(lodashExports$1.upperCase(Kt))),[Kt,an]),mn=Pt==="explore";function gn(un){Dt(()=>({"behaviour/showOnStart":un?"explore":void 0}))}return jsxRuntimeExports.jsx(TabContext,{value:en,children:jsxRuntimeExports.jsxs(_e,{onChange:Ut,stack:Gt,children:[jsxRuntimeExports.jsx(_e.Title,{children:"Explore"}),jsxRuntimeExports.jsx(_e.Handle,{children:Wt}),jsxRuntimeExports.jsx(_e.Options,{children:jsxRuntimeExports.jsxs(TabList$1,{onChange:(un,hn)=>tn(hn),children:[jsxRuntimeExports.jsx(Tab$1,{label:"Examples",value:"explore"}),jsxRuntimeExports.jsx(Tab$1,{label:"Guides",value:"guides"})]})}),jsxRuntimeExports.jsx(_e.Content,{children:jsxRuntimeExports.jsx(Flex,{vertical:!0,children:jsxRuntimeExports.jsx(Scroll,{y:!0,children:jsxRuntimeExports.jsx(Box$1,{sx:Xt?void 0:{p:4,maxWidth:CONTENT_WIDTH,mx:"auto"},children:jsxRuntimeExports.jsxs(Box$1,{pt:6,children:[jsxRuntimeExports.jsxs(TabPanel$1,{value:"explore",sx:{p:0},children:[jsxRuntimeExports.jsxs(Box$1,{p:2,children:[jsxRuntimeExports.jsx(Type$2,{variant:Xt?"h6":"h4",children:"Examples"}),jsxRuntimeExports.jsx(Type$2,{variant:"subtitle2",color:"text.secondary",children:"Browse a library of included and community-made examples"})]}),jsxRuntimeExports.jsx(Box$1,{px:2,py:1,children:jsxRuntimeExports.jsx(TextField$1,{...textFieldProps,size:"small",hiddenLabel:!0,fullWidth:!0,sx:{maxWidth:480},InputProps:{startAdornment:jsxRuntimeExports.jsx(InputAdornment$1,{position:"start",children:jsxRuntimeExports.jsx(SearchOutlined,{})})},onChange:un=>Qt(un.target.value),placeholder:"Search examples"})}),sn?jsxRuntimeExports.jsx(Box$1,{sx:{p:2},children:jsxRuntimeExports.jsx(CircularProgress$1,{})}):jsxRuntimeExports.jsx(Box$1,{sx:{p:1,display:"grid",gridAutoFlow:"row",gridTemplateColumns:"repeat(auto-fill, minmax(min(100%, 320px), 1fr))"},children:dn.length?lodashExports$1.map(dn,({name:un,path:hn,description:vn,screenshots:Sn,author:_n,size:Tn},Cn)=>jsxRuntimeExports.jsx(Box$1,{sx:{p:1},children:jsxRuntimeExports.jsx(FeatureCard,{name:un,description:vn??"No description",image:lodashExports$1.first(Sn),author:_n,onOpenClick:()=>{ln(hn),Yt==null||Yt()},size:Tn})},Cn)):jsxRuntimeExports.jsx(Type$2,{color:"text.secondary",sx:{p:1},children:"No results match your search."})})]}),jsxRuntimeExports.jsxs(TabPanel$1,{value:"guides",sx:{p:0},children:[jsxRuntimeExports.jsxs(Box$1,{p:2,children:[jsxRuntimeExports.jsx(Type$2,{variant:Xt?"h6":"h4",children:"Guides"}),jsxRuntimeExports.jsx(Type$2,{variant:"subtitle2",color:"text.secondary",children:`Learn how to use ${name} and explore ${name} features`})]}),jsxRuntimeExports.jsxs(Stack$1,{sx:{p:2},gap:2,children:[jsxRuntimeExports.jsx(Type$2,{children:"We're still working on this feature. Check out our documentation instead."}),jsxRuntimeExports.jsx(Button,{onClick:()=>window.open(docs,"_blank"),startIcon:jsxRuntimeExports.jsx(LaunchOutlined,{}),children:"Open Documentation"})]})]})]})})})})}),jsxRuntimeExports.jsxs(_e.Extras,{children:[!Xt&&jsxRuntimeExports.jsx(FormControlLabel$1,{label:"Show on start-up",labelPlacement:"start",sx:{ml:"auto",mr:-5,minWidth:"fit-content"},control:jsxRuntimeExports.jsx(Checkbox$1,{defaultChecked:mn,onChange:(un,hn)=>gn==null?void 0:gn(hn)})}),jt]})]})})}function InfoPage({template:_e}){const{controls:Pt,onChange:Dt,state:Nt,dragHandle:jt}=useViewTreeContext(),[Ut,Gt]=useLog();return jsxRuntimeExports.jsxs(_e,{onChange:Dt,stack:Nt,children:[jsxRuntimeExports.jsx(_e.Title,{children:"Logs"}),jsxRuntimeExports.jsx(_e.Handle,{children:jt}),jsxRuntimeExports.jsx(_e.Options,{children:jsxRuntimeExports.jsx(FeaturePickerButton,{disabled:!Ut.length,icon:jsxRuntimeExports.jsx(CloseOutlined,{}),onClick:()=>Gt(()=>({action:"clear"})),children:"Clear"})}),jsxRuntimeExports.jsx(_e.Content,{children:jsxRuntimeExports.jsx(Flex,{vertical:!0,children:Ut.length?jsxRuntimeExports.jsx(Scroll,{y:!0,children:jsxRuntimeExports.jsx(List$2,{sx:{pt:6},children:lodashExports$1.map(Ut,(Wt,qt)=>jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx(ListItem$1,{children:jsxRuntimeExports.jsx(ListItemText$1,{primary:Wt.content,secondary:Wt.timestamp})}),jsxRuntimeExports.jsx(Divider$1,{})]},qt))})}):jsxRuntimeExports.jsx(Placeholder$2,{pt:6,label:"Logs",icon:jsxRuntimeExports.jsx(ListOutlined,{})})})}),jsxRuntimeExports.jsx(_e.Extras,{children:Pt})]})}const compositeOperations=["color","color-burn","color-dodge","copy","darken","destination-atop","destination-in","destination-out","destination-over","difference","exclusion","hard-light","hue","lighten","lighter","luminosity","multiply","overlay","saturation","screen","soft-light","source-atop","source-in","source-out","source-over","xor"];function useDraft(_e,Pt,Dt=300,Nt=[]){const[jt,Ut]=reactExports.useState(_e);reactExports.useEffect(()=>{_e&&Ut(lodashExports$1.merge(jt,lodashExports$1.omit(_e,...Nt)))},[Ut,_e]);const Gt=reactExports.useMemo(()=>lodashExports$1.debounce(Wt=>Pt==null?void 0:Pt(Wt),Dt),[Pt,Dt]);return[jt,Wt=>{Ut(Wt),Gt(Wt)}]}function Component({value:_e,onValueChange:Pt},Dt){var Qt,en,tn,nn;const Nt=usePaper();useAcrylic();const[jt,Ut]=useDraft(_e,Pt,300,["name","source.type"]),Gt=rn=>jsxRuntimeExports.jsx(Type$2,{variant:"overline",color:"text.secondary",sx:{pt:1},component:"p",children:rn}),Wt=rn=>jsxRuntimeExports.jsx(Type$2,{variant:"body1",children:rn}),qt=(rn,an)=>jsxRuntimeExports.jsxs(Flex,{alignItems:"center",children:[Wt(rn),jsxRuntimeExports.jsx(Space,{flex:1}),an]}),Yt=rn=>rn.map(an=>({id:an,name:lodashExports$1.startCase(an)})),Xt=jt.name||inferLayerName(_e),Kt=(en=(Qt=getLayerHandler(_e))==null?void 0:Qt.error)==null?void 0:en.call(Qt,_e);return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsx(ManagedModal,{popover:!0,slotProps:{popover:{anchorOrigin:{horizontal:-12,vertical:-12}}},appBar:{children:"Edit Layer"},trigger:rn=>{var an;return jsxRuntimeExports.jsx(ButtonBase$1,{onClick:rn,className:jt.key,sx:{flex:1,display:"block",textAlign:"left",px:2},children:jsxRuntimeExports.jsxs(Stack$1,{alignItems:"center",direction:"row",gap:2,children:[jsxRuntimeExports.jsx(Stack$1,{sx:{...Nt(.5),alignItems:"center",justifyContent:"center",width:36,height:36,color:"action.disabled"},children:getLayerHandler(_e).icon}),jsxRuntimeExports.jsxs(Box$1,{sx:{py:1.5,flex:1,width:0,ml:0,overflow:"hidden","> *":{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}},children:[jsxRuntimeExports.jsx(Type$2,{children:Xt}),jsxRuntimeExports.jsx(Type$2,{variant:"body2",color:"text.secondary",children:lodashExports$1.startCase((an=_e.source)==null?void 0:an.type)})]}),!!Kt&&jsxRuntimeExports.jsx(Tooltip$1,{title:Kt,children:jsxRuntimeExports.jsx(Chip$1,{sx:{mr:-2,...lodashExports$1.omit(Nt(1),"borderRadius"),color:sn=>sn.palette.error.main,flex:0},label:`${lodashExports$1.truncate(`${Kt}`,{length:8})}`,size:"small"})})]})})},children:jsxRuntimeExports.jsxs(Box$1,{p:2,children:[jsxRuntimeExports.jsx(TextField$1,{sx:{mb:2},autoComplete:"off",autoFocus:!0,placeholder:inferLayerName(jt),fullWidth:!0,variant:"filled",label:"Layer Name",defaultValue:jt.name??"",onChange:rn=>Ut==null?void 0:Ut(produce(jt,an=>lodashExports$1.set(an,"name",rn.target.value)))}),jsxRuntimeExports.jsxs(Box$1,{sx:{mx:-2,pb:1},children:[jsxRuntimeExports.jsx(Tabs$1,{variant:"fullWidth",onChange:(rn,an)=>Ut==null?void 0:Ut(produce(jt,sn=>{lodashExports$1.set(sn,"source",{type:an})})),value:((tn=jt.source)==null?void 0:tn.type)??lodashExports$1.first(lodashExports$1.keys(layerHandlers))??"",children:lodashExports$1.keys(layerHandlers).map(rn=>jsxRuntimeExports.jsx(Tab$1,{label:lodashExports$1.startCase(rn),value:rn},rn))}),jsxRuntimeExports.jsx(Divider$1,{sx:{width:"100%"}})]}),Gt("Source Options"),((nn=jt.source)==null?void 0:nn.type)&&reactExports.createElement(layerHandlers[jt.source.type].editor,{onChange:rn=>Ut(rn(jt)),value:jt}),Gt("Layer Options"),qt("Transparency",jsxRuntimeExports.jsx(FeaturePicker,{label:"Transparency",items:["0","25","50","75"].map(rn=>({id:rn,name:`${rn}%`})),value:jt.transparency??"0",arrow:!0,onChange:rn=>Ut==null?void 0:Ut(produce(jt,an=>lodashExports$1.set(an,"transparency",rn)))})),qt("Display Mode",jsxRuntimeExports.jsx(FeaturePicker,{arrow:!0,label:"Display Mode",value:jt.displayMode??"source-over",items:Yt(compositeOperations),onChange:rn=>Ut==null?void 0:Ut(produce(jt,an=>lodashExports$1.set(an,"displayMode",rn)))}))]})})})}const LayerEditor=reactExports.forwardRef(Component);function LayerListEditor(){const[{layers:_e=[]},Pt]=useLayers();return jsxRuntimeExports.jsx(Box$1,{sx:{overflow:"auto hidden",width:"100%"},children:jsxRuntimeExports.jsx(Box$1,{sx:{mb:2},children:jsxRuntimeExports.jsx(ListEditor,{sortable:!0,icon:null,value:_e,deletable:!0,orderable:!0,extras:Dt=>jsxRuntimeExports.jsx(PopupState,{variant:"popover",children:Nt=>jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Menu$1,{...bindMenu(Nt),children:jsxRuntimeExports.jsx(MenuList$1,{dense:!0,sx:{p:0},children:[{name:"Fit Layer",key:"fit-layer",action:()=>Pt(({layers:jt})=>({layers:lodashExports$1.map(jt,Ut=>({...Ut,viewKey:Ut.key===(Dt==null?void 0:Dt.key)?nanoid$1():void 0}))}))}].map(({name:jt,key:Ut,action:Gt})=>jsxRuntimeExports.jsx(MenuItem$1,{onClick:()=>{Gt==null||Gt(),Nt.close()},children:jt},Ut))})}),jsxRuntimeExports.jsx(IconButton$1,{...bindTrigger(Nt),children:jsxRuntimeExports.jsx(MoreVertOutlined,{})})]})}),renderEditor:({extras:Dt,handle:Nt,value:jt,onValueChange:Ut})=>jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[Nt,jsxRuntimeExports.jsx(LayerEditor,{value:jt,onValueChange:Ut}),Dt]}),create:()=>({source:{type:"trace",trace:{}}}),onChange:Dt=>requestIdleCallback(()=>Pt(()=>({layers:Dt})),{timeout:300}),addItemLabel:"Layer",placeholder:jsxRuntimeExports.jsx(Box$1,{pt:2,children:"Get started by adding a layer."}),onFocus:Dt=>{const Nt=lodashExports$1.head(document.getElementsByClassName(Dt));Nt&&"click"in Nt&&typeof Nt.click=="function"&&Nt.click()}})})})}function LayersPage({template:_e}){const{controls:Pt,onChange:Dt,state:Nt,dragHandle:jt}=useViewTreeContext();return jsxRuntimeExports.jsxs(_e,{onChange:Dt,stack:Nt,children:[jsxRuntimeExports.jsx(_e.Title,{children:"Layers"}),jsxRuntimeExports.jsx(_e.Handle,{children:jt}),jsxRuntimeExports.jsx(_e.Content,{children:jsxRuntimeExports.jsx(Flex,{children:jsxRuntimeExports.jsx(Scroll,{y:!0,style:{width:"100%"},children:jsxRuntimeExports.jsx(Box$1,{pt:6,children:jsxRuntimeExports.jsx(LayerListEditor,{})})})})}),jsxRuntimeExports.jsx(_e.Extras,{children:Pt})]})}var dist$2={},client={},models={};(function(_e){var Pt=commonjsGlobal&&commonjsGlobal.__extends||function(){var en=function(tn,nn){return en=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(rn,an){rn.__proto__=an}||function(rn,an){for(var sn in an)Object.prototype.hasOwnProperty.call(an,sn)&&(rn[sn]=an[sn])},en(tn,nn)};return function(tn,nn){if(typeof nn!="function"&&nn!==null)throw new TypeError("Class extends value "+String(nn)+" is not a constructor or null");en(tn,nn);function rn(){this.constructor=tn}tn.prototype=nn===null?Object.create(nn):(rn.prototype=nn.prototype,new rn)}}();Object.defineProperty(_e,"__esModule",{value:!0}),_e.createJSONRPCNotification=_e.createJSONRPCRequest=_e.createJSONRPCSuccessResponse=_e.createJSONRPCErrorResponse=_e.JSONRPCErrorCode=_e.JSONRPCErrorException=_e.isJSONRPCResponses=_e.isJSONRPCResponse=_e.isJSONRPCRequests=_e.isJSONRPCRequest=_e.isJSONRPCID=_e.JSONRPC=void 0,_e.JSONRPC="2.0";var Dt=function(en){return typeof en=="string"||typeof en=="number"||en===null};_e.isJSONRPCID=Dt;var Nt=function(en){return en.jsonrpc===_e.JSONRPC&&en.method!==void 0&&en.result===void 0&&en.error===void 0};_e.isJSONRPCRequest=Nt;var jt=function(en){return Array.isArray(en)&&en.every(_e.isJSONRPCRequest)};_e.isJSONRPCRequests=jt;var Ut=function(en){return en.jsonrpc===_e.JSONRPC&&en.id!==void 0&&(en.result!==void 0||en.error!==void 0)};_e.isJSONRPCResponse=Ut;var Gt=function(en){return Array.isArray(en)&&en.every(_e.isJSONRPCResponse)};_e.isJSONRPCResponses=Gt;var Wt=function(en,tn,nn){var rn={code:en,message:tn};return nn!=null&&(rn.data=nn),rn},qt=function(en){Pt(tn,en);function tn(nn,rn,an){var sn=en.call(this,nn)||this;return Object.setPrototypeOf(sn,tn.prototype),sn.code=rn,sn.data=an,sn}return tn.prototype.toObject=function(){return Wt(this.code,this.message,this.data)},tn}(Error);_e.JSONRPCErrorException=qt,function(en){en[en.ParseError=-32700]="ParseError",en[en.InvalidRequest=-32600]="InvalidRequest",en[en.MethodNotFound=-32601]="MethodNotFound",en[en.InvalidParams=-32602]="InvalidParams",en[en.InternalError=-32603]="InternalError"}(_e.JSONRPCErrorCode||(_e.JSONRPCErrorCode={}));var Yt=function(en,tn,nn,rn){return{jsonrpc:_e.JSONRPC,id:en,error:Wt(tn,nn,rn)}};_e.createJSONRPCErrorResponse=Yt;var Xt=function(en,tn){return{jsonrpc:_e.JSONRPC,id:en,result:tn??null}};_e.createJSONRPCSuccessResponse=Xt;var Kt=function(en,tn,nn){return{jsonrpc:_e.JSONRPC,id:en,method:tn,params:nn}};_e.createJSONRPCRequest=Kt;var Qt=function(en,tn){return{jsonrpc:_e.JSONRPC,method:en,params:tn}};_e.createJSONRPCNotification=Qt})(models);var internal$1={};Object.defineProperty(internal$1,"__esModule",{value:!0});internal$1.DefaultErrorCode=void 0;internal$1.DefaultErrorCode=0;var __awaiter$2=commonjsGlobal&&commonjsGlobal.__awaiter||function(_e,Pt,Dt,Nt){function jt(Ut){return Ut instanceof Dt?Ut:new Dt(function(Gt){Gt(Ut)})}return new(Dt||(Dt=Promise))(function(Ut,Gt){function Wt(Xt){try{Yt(Nt.next(Xt))}catch(Kt){Gt(Kt)}}function qt(Xt){try{Yt(Nt.throw(Xt))}catch(Kt){Gt(Kt)}}function Yt(Xt){Xt.done?Ut(Xt.value):jt(Xt.value).then(Wt,qt)}Yt((Nt=Nt.apply(_e,Pt||[])).next())})},__generator$2=commonjsGlobal&&commonjsGlobal.__generator||function(_e,Pt){var Dt={label:0,sent:function(){if(Ut[0]&1)throw Ut[1];return Ut[1]},trys:[],ops:[]},Nt,jt,Ut,Gt;return Gt={next:Wt(0),throw:Wt(1),return:Wt(2)},typeof Symbol=="function"&&(Gt[Symbol.iterator]=function(){return this}),Gt;function Wt(Yt){return function(Xt){return qt([Yt,Xt])}}function qt(Yt){if(Nt)throw new TypeError("Generator is already executing.");for(;Gt&&(Gt=0,Yt[0]&&(Dt=0)),Dt;)try{if(Nt=1,jt&&(Ut=Yt[0]&2?jt.return:Yt[0]?jt.throw||((Ut=jt.return)&&Ut.call(jt),0):jt.next)&&!(Ut=Ut.call(jt,Yt[1])).done)return Ut;switch(jt=0,Ut&&(Yt=[Yt[0]&2,Ut.value]),Yt[0]){case 0:case 1:Ut=Yt;break;case 4:return Dt.label++,{value:Yt[1],done:!1};case 5:Dt.label++,jt=Yt[1],Yt=[0];continue;case 7:Yt=Dt.ops.pop(),Dt.trys.pop();continue;default:if(Ut=Dt.trys,!(Ut=Ut.length>0&&Ut[Ut.length-1])&&(Yt[0]===6||Yt[0]===2)){Dt=0;continue}if(Yt[0]===3&&(!Ut||Yt[1]>Ut[0]&&Yt[1]0&&Ut[Ut.length-1])&&(Yt[0]===6||Yt[0]===2)){Dt=0;continue}if(Yt[0]===3&&(!Ut||Yt[1]>Ut[0]&&Yt[1]0&&Ut[Ut.length-1])&&(Yt[0]===6||Yt[0]===2)){Dt=0;continue}if(Yt[0]===3&&(!Ut||Yt[1]>Ut[0]&&Yt[1]{const jt=({data:Ut})=>{Ut.id===Nt.id&&(this.rpc.receive(Ut),this.worker.removeEventListener("message",jt))};this.worker.postMessage(Nt),this.worker.addEventListener("message",jt)})}connect(){return this.worker.postMessage(this.options.url),new Promise(Dt=>{const Nt=()=>{Dt(),this.worker.removeEventListener("message",Nt)};this.worker.addEventListener("message",Nt)})}async disconnect(){this.worker.terminate()}async call(Dt,Nt){return await this.rpc.request(Dt,Nt)}}var requiresPort=function _e(Pt,Dt){if(Dt=Dt.split(":")[0],Pt=+Pt,!Pt)return!1;switch(Dt){case"http":case"ws":return Pt!==80;case"https":case"wss":return Pt!==443;case"ftp":return Pt!==21;case"gopher":return Pt!==70;case"file":return!1}return Pt!==0},querystringify$1={},has$4=Object.prototype.hasOwnProperty,undef;function decode$3(_e){try{return decodeURIComponent(_e.replace(/\+/g," "))}catch{return null}}function encode$3(_e){try{return encodeURIComponent(_e)}catch{return null}}function querystring$1(_e){for(var Pt=/([^=?#&]+)=?([^&]*)/g,Dt={},Nt;Nt=Pt.exec(_e);){var jt=decode$3(Nt[1]),Ut=decode$3(Nt[2]);jt===null||Ut===null||jt in Dt||(Dt[jt]=Ut)}return Dt}function querystringify(_e,Pt){Pt=Pt||"";var Dt=[],Nt,jt;typeof Pt!="string"&&(Pt="?");for(jt in _e)if(has$4.call(_e,jt)){if(Nt=_e[jt],!Nt&&(Nt===null||Nt===undef||isNaN(Nt))&&(Nt=""),jt=encode$3(jt),Nt=encode$3(Nt),jt===null||Nt===null)continue;Dt.push(jt+"="+Nt)}return Dt.length?Pt+Dt.join("&"):""}querystringify$1.stringify=querystringify;querystringify$1.parse=querystring$1;var required=requiresPort,qs=querystringify$1,controlOrWhitespace=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,CRHTLF=/[\n\r\t]/g,slashes=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,port=/:\d+$/,protocolre=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,windowsDriveLetter=/^[a-zA-Z]:/;function trimLeft(_e){return(_e||"").toString().replace(controlOrWhitespace,"")}var rules=[["#","hash"],["?","query"],function _e(Pt,Dt){return isSpecial(Dt.protocol)?Pt.replace(/\\/g,"/"):Pt},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d*)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],ignore={hash:1,query:1};function lolcation(_e){var Pt;typeof window<"u"?Pt=window:typeof commonjsGlobal<"u"?Pt=commonjsGlobal:typeof self<"u"?Pt=self:Pt={};var Dt=Pt.location||{};_e=_e||Dt;var Nt={},jt=typeof _e,Ut;if(_e.protocol==="blob:")Nt=new Url$1(unescape(_e.pathname),{});else if(jt==="string"){Nt=new Url$1(_e,{});for(Ut in ignore)delete Nt[Ut]}else if(jt==="object"){for(Ut in _e)Ut in ignore||(Nt[Ut]=_e[Ut]);Nt.slashes===void 0&&(Nt.slashes=slashes.test(_e.href))}return Nt}function isSpecial(_e){return _e==="file:"||_e==="ftp:"||_e==="http:"||_e==="https:"||_e==="ws:"||_e==="wss:"}function extractProtocol(_e,Pt){_e=trimLeft(_e),_e=_e.replace(CRHTLF,""),Pt=Pt||{};var Dt=protocolre.exec(_e),Nt=Dt[1]?Dt[1].toLowerCase():"",jt=!!Dt[2],Ut=!!Dt[3],Gt=0,Wt;return jt?Ut?(Wt=Dt[2]+Dt[3]+Dt[4],Gt=Dt[2].length+Dt[3].length):(Wt=Dt[2]+Dt[4],Gt=Dt[2].length):Ut?(Wt=Dt[3]+Dt[4],Gt=Dt[3].length):Wt=Dt[4],Nt==="file:"?Gt>=2&&(Wt=Wt.slice(2)):isSpecial(Nt)?Wt=Dt[4]:Nt?jt&&(Wt=Wt.slice(2)):Gt>=2&&isSpecial(Pt.protocol)&&(Wt=Dt[4]),{protocol:Nt,slashes:jt||isSpecial(Nt),slashesCount:Gt,rest:Wt}}function resolve$1(_e,Pt){if(_e==="")return Pt;for(var Dt=(Pt||"/").split("/").slice(0,-1).concat(_e.split("/")),Nt=Dt.length,jt=Dt[Nt-1],Ut=!1,Gt=0;Nt--;)Dt[Nt]==="."?Dt.splice(Nt,1):Dt[Nt]===".."?(Dt.splice(Nt,1),Gt++):Gt&&(Nt===0&&(Ut=!0),Dt.splice(Nt,1),Gt--);return Ut&&Dt.unshift(""),(jt==="."||jt==="..")&&Dt.push(""),Dt.join("/")}function Url$1(_e,Pt,Dt){if(_e=trimLeft(_e),_e=_e.replace(CRHTLF,""),!(this instanceof Url$1))return new Url$1(_e,Pt,Dt);var Nt,jt,Ut,Gt,Wt,qt,Yt=rules.slice(),Xt=typeof Pt,Kt=this,Qt=0;for(Xt!=="object"&&Xt!=="string"&&(Dt=Pt,Pt=null),Dt&&typeof Dt!="function"&&(Dt=qs.parse),Pt=lolcation(Pt),jt=extractProtocol(_e||"",Pt),Nt=!jt.protocol&&!jt.slashes,Kt.slashes=jt.slashes||Nt&&Pt.slashes,Kt.protocol=jt.protocol||Pt.protocol||"",_e=jt.rest,(jt.protocol==="file:"&&(jt.slashesCount!==2||windowsDriveLetter.test(_e))||!jt.slashes&&(jt.protocol||jt.slashesCount<2||!isSpecial(Kt.protocol)))&&(Yt[3]=[/(.*)/,"pathname"]);Qt{switch(_e){case"about":return{name:"Search Trace",description:"Provides JSON Search Trace Support",version:"1.0.2"};case"features/formats":return[{id:"grid",name:"Grid"},{id:"xy",name:"Network"},{id:"mesh",name:"Mesh"}];case"features/algorithms":return[{id:"identity",name:"Unknown",hidden:!0}];case"solve/pathfinding":{const{parameters:Dt}=Pt;try{return JSON.parse((Dt==null?void 0:Dt.content)??"")}catch{return{}}}}}};class NativeTransport extends EventEmitter$2{constructor(Dt){super();zm(this,"handler");this.options=Dt;const{hostname:Nt}=url$2(Dt.url);this.handler=internal[Nt]}async connect(){}async disconnect(){}async call(Dt,Nt){return await this.handler(Dt,Nt)}}const PACKET_TYPES=Object.create(null);PACKET_TYPES.open="0";PACKET_TYPES.close="1";PACKET_TYPES.ping="2";PACKET_TYPES.pong="3";PACKET_TYPES.message="4";PACKET_TYPES.upgrade="5";PACKET_TYPES.noop="6";const PACKET_TYPES_REVERSE=Object.create(null);Object.keys(PACKET_TYPES).forEach(_e=>{PACKET_TYPES_REVERSE[PACKET_TYPES[_e]]=_e});const ERROR_PACKET={type:"error",data:"parser error"},withNativeBlob$1=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",withNativeArrayBuffer$2=typeof ArrayBuffer=="function",isView$1=_e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(_e):_e&&_e.buffer instanceof ArrayBuffer,encodePacket=({type:_e,data:Pt},Dt,Nt)=>withNativeBlob$1&&Pt instanceof Blob?Dt?Nt(Pt):encodeBlobAsBase64(Pt,Nt):withNativeArrayBuffer$2&&(Pt instanceof ArrayBuffer||isView$1(Pt))?Dt?Nt(Pt):encodeBlobAsBase64(new Blob([Pt]),Nt):Nt(PACKET_TYPES[_e]+(Pt||"")),encodeBlobAsBase64=(_e,Pt)=>{const Dt=new FileReader;return Dt.onload=function(){const Nt=Dt.result.split(",")[1];Pt("b"+(Nt||""))},Dt.readAsDataURL(_e)};function toArray(_e){return _e instanceof Uint8Array?_e:_e instanceof ArrayBuffer?new Uint8Array(_e):new Uint8Array(_e.buffer,_e.byteOffset,_e.byteLength)}let TEXT_ENCODER;function encodePacketToBinary(_e,Pt){if(withNativeBlob$1&&_e.data instanceof Blob)return _e.data.arrayBuffer().then(toArray).then(Pt);if(withNativeArrayBuffer$2&&(_e.data instanceof ArrayBuffer||isView$1(_e.data)))return Pt(toArray(_e.data));encodePacket(_e,!1,Dt=>{TEXT_ENCODER||(TEXT_ENCODER=new TextEncoder),Pt(TEXT_ENCODER.encode(Dt))})}const chars="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",lookup$1=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let _e=0;_e{let Pt=_e.length*.75,Dt=_e.length,Nt,jt=0,Ut,Gt,Wt,qt;_e[_e.length-1]==="="&&(Pt--,_e[_e.length-2]==="="&&Pt--);const Yt=new ArrayBuffer(Pt),Xt=new Uint8Array(Yt);for(Nt=0;Nt>4,Xt[jt++]=(Gt&15)<<4|Wt>>2,Xt[jt++]=(Wt&3)<<6|qt&63;return Yt},withNativeArrayBuffer$1=typeof ArrayBuffer=="function",decodePacket=(_e,Pt)=>{if(typeof _e!="string")return{type:"message",data:mapBinary(_e,Pt)};const Dt=_e.charAt(0);return Dt==="b"?{type:"message",data:decodeBase64Packet(_e.substring(1),Pt)}:PACKET_TYPES_REVERSE[Dt]?_e.length>1?{type:PACKET_TYPES_REVERSE[Dt],data:_e.substring(1)}:{type:PACKET_TYPES_REVERSE[Dt]}:ERROR_PACKET},decodeBase64Packet=(_e,Pt)=>{if(withNativeArrayBuffer$1){const Dt=decode$2(_e);return mapBinary(Dt,Pt)}else return{base64:!0,data:_e}},mapBinary=(_e,Pt)=>{switch(Pt){case"blob":return _e instanceof Blob?_e:new Blob([_e]);case"arraybuffer":default:return _e instanceof ArrayBuffer?_e:_e.buffer}},SEPARATOR=String.fromCharCode(30),encodePayload=(_e,Pt)=>{const Dt=_e.length,Nt=new Array(Dt);let jt=0;_e.forEach((Ut,Gt)=>{encodePacket(Ut,!1,Wt=>{Nt[Gt]=Wt,++jt===Dt&&Pt(Nt.join(SEPARATOR))})})},decodePayload=(_e,Pt)=>{const Dt=_e.split(SEPARATOR),Nt=[];for(let jt=0;jt{const Nt=Dt.length;let jt;if(Nt<126)jt=new Uint8Array(1),new DataView(jt.buffer).setUint8(0,Nt);else if(Nt<65536){jt=new Uint8Array(3);const Ut=new DataView(jt.buffer);Ut.setUint8(0,126),Ut.setUint16(1,Nt)}else{jt=new Uint8Array(9);const Ut=new DataView(jt.buffer);Ut.setUint8(0,127),Ut.setBigUint64(1,BigInt(Nt))}_e.data&&typeof _e.data!="string"&&(jt[0]|=128),Pt.enqueue(jt),Pt.enqueue(Dt)})}})}let TEXT_DECODER;function totalLength(_e){return _e.reduce((Pt,Dt)=>Pt+Dt.length,0)}function concatChunks(_e,Pt){if(_e[0].length===Pt)return _e.shift();const Dt=new Uint8Array(Pt);let Nt=0;for(let jt=0;jtMath.pow(2,53-32)-1){Wt.enqueue(ERROR_PACKET);break}jt=Xt*Math.pow(2,32)+Yt.getUint32(4),Nt=3}else{if(totalLength(Dt)_e){Wt.enqueue(ERROR_PACKET);break}}}})}const protocol$1=4;function Emitter(_e){if(_e)return mixin(_e)}function mixin(_e){for(var Pt in Emitter.prototype)_e[Pt]=Emitter.prototype[Pt];return _e}Emitter.prototype.on=Emitter.prototype.addEventListener=function(_e,Pt){return this._callbacks=this._callbacks||{},(this._callbacks["$"+_e]=this._callbacks["$"+_e]||[]).push(Pt),this};Emitter.prototype.once=function(_e,Pt){function Dt(){this.off(_e,Dt),Pt.apply(this,arguments)}return Dt.fn=Pt,this.on(_e,Dt),this};Emitter.prototype.off=Emitter.prototype.removeListener=Emitter.prototype.removeAllListeners=Emitter.prototype.removeEventListener=function(_e,Pt){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var Dt=this._callbacks["$"+_e];if(!Dt)return this;if(arguments.length==1)return delete this._callbacks["$"+_e],this;for(var Nt,jt=0;jttypeof self<"u"?self:typeof window<"u"?window:Function("return this")())();function pick(_e,...Pt){return Pt.reduce((Dt,Nt)=>(_e.hasOwnProperty(Nt)&&(Dt[Nt]=_e[Nt]),Dt),{})}const NATIVE_SET_TIMEOUT=globalThisShim.setTimeout,NATIVE_CLEAR_TIMEOUT=globalThisShim.clearTimeout;function installTimerFunctions(_e,Pt){Pt.useNativeTimers?(_e.setTimeoutFn=NATIVE_SET_TIMEOUT.bind(globalThisShim),_e.clearTimeoutFn=NATIVE_CLEAR_TIMEOUT.bind(globalThisShim)):(_e.setTimeoutFn=globalThisShim.setTimeout.bind(globalThisShim),_e.clearTimeoutFn=globalThisShim.clearTimeout.bind(globalThisShim))}const BASE64_OVERHEAD=1.33;function byteLength(_e){return typeof _e=="string"?utf8Length(_e):Math.ceil((_e.byteLength||_e.size)*BASE64_OVERHEAD)}function utf8Length(_e){let Pt=0,Dt=0;for(let Nt=0,jt=_e.length;Nt=57344?Dt+=3:(Nt++,Dt+=4);return Dt}function encode$2(_e){let Pt="";for(let Dt in _e)_e.hasOwnProperty(Dt)&&(Pt.length&&(Pt+="&"),Pt+=encodeURIComponent(Dt)+"="+encodeURIComponent(_e[Dt]));return Pt}function decode$1(_e){let Pt={},Dt=_e.split("&");for(let Nt=0,jt=Dt.length;Nt0);return Pt}function yeast(){const _e=encode$1(+new Date);return _e!==prev?(seed=0,prev=_e):_e+"."+encode$1(seed++)}for(;i$3{this.readyState="paused",Pt()};if(this.polling||!this.writable){let Nt=0;this.polling&&(Nt++,this.once("pollComplete",function(){--Nt||Dt()})),this.writable||(Nt++,this.once("drain",function(){--Nt||Dt()}))}else Dt()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(Pt){const Dt=Nt=>{if(this.readyState==="opening"&&Nt.type==="open"&&this.onOpen(),Nt.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(Nt)};decodePayload(Pt,this.socket.binaryType).forEach(Dt),this.readyState!=="closed"&&(this.polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this.poll())}doClose(){const Pt=()=>{this.write([{type:"close"}])};this.readyState==="open"?Pt():this.once("open",Pt)}write(Pt){this.writable=!1,encodePayload(Pt,Dt=>{this.doWrite(Dt,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const Pt=this.opts.secure?"https":"http",Dt=this.query||{};return this.opts.timestampRequests!==!1&&(Dt[this.opts.timestampParam]=yeast()),!this.supportsBinary&&!Dt.sid&&(Dt.b64=1),this.createUri(Pt,Dt)}request(Pt={}){return Object.assign(Pt,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new Request(this.uri(),Pt)}doWrite(Pt,Dt){const Nt=this.request({method:"POST",data:Pt});Nt.on("success",Dt),Nt.on("error",(jt,Ut)=>{this.onError("xhr post error",jt,Ut)})}doPoll(){const Pt=this.request();Pt.on("data",this.onData.bind(this)),Pt.on("error",(Dt,Nt)=>{this.onError("xhr poll error",Dt,Nt)}),this.pollXhr=Pt}}class Request extends Emitter{constructor(Pt,Dt){super(),installTimerFunctions(this,Dt),this.opts=Dt,this.method=Dt.method||"GET",this.uri=Pt,this.data=Dt.data!==void 0?Dt.data:null,this.create()}create(){var Pt;const Dt=pick(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");Dt.xdomain=!!this.opts.xd;const Nt=this.xhr=new XHR(Dt);try{Nt.open(this.method,this.uri,!0);try{if(this.opts.extraHeaders){Nt.setDisableHeaderCheck&&Nt.setDisableHeaderCheck(!0);for(let jt in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(jt)&&Nt.setRequestHeader(jt,this.opts.extraHeaders[jt])}}catch{}if(this.method==="POST")try{Nt.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{Nt.setRequestHeader("Accept","*/*")}catch{}(Pt=this.opts.cookieJar)===null||Pt===void 0||Pt.addCookies(Nt),"withCredentials"in Nt&&(Nt.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(Nt.timeout=this.opts.requestTimeout),Nt.onreadystatechange=()=>{var jt;Nt.readyState===3&&((jt=this.opts.cookieJar)===null||jt===void 0||jt.parseCookies(Nt)),Nt.readyState===4&&(Nt.status===200||Nt.status===1223?this.onLoad():this.setTimeoutFn(()=>{this.onError(typeof Nt.status=="number"?Nt.status:0)},0))},Nt.send(this.data)}catch(jt){this.setTimeoutFn(()=>{this.onError(jt)},0);return}typeof document<"u"&&(this.index=Request.requestsCount++,Request.requests[this.index]=this)}onError(Pt){this.emitReserved("error",Pt,this.xhr),this.cleanup(!0)}cleanup(Pt){if(!(typeof this.xhr>"u"||this.xhr===null)){if(this.xhr.onreadystatechange=empty$1,Pt)try{this.xhr.abort()}catch{}typeof document<"u"&&delete Request.requests[this.index],this.xhr=null}}onLoad(){const Pt=this.xhr.responseText;Pt!==null&&(this.emitReserved("data",Pt),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}Request.requestsCount=0;Request.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",unloadHandler);else if(typeof addEventListener=="function"){const _e="onpagehide"in globalThisShim?"pagehide":"unload";addEventListener(_e,unloadHandler,!1)}}function unloadHandler(){for(let _e in Request.requests)Request.requests.hasOwnProperty(_e)&&Request.requests[_e].abort()}const nextTick=(()=>typeof Promise=="function"&&typeof Promise.resolve=="function"?Pt=>Promise.resolve().then(Pt):(Pt,Dt)=>Dt(Pt,0))(),WebSocket=globalThisShim.WebSocket||globalThisShim.MozWebSocket,usingBrowserWebSocket=!0,defaultBinaryType="arraybuffer",isReactNative=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class WS extends Transport{constructor(Pt){super(Pt),this.supportsBinary=!Pt.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const Pt=this.uri(),Dt=this.opts.protocols,Nt=isReactNative?{}:pick(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(Nt.headers=this.opts.extraHeaders);try{this.ws=usingBrowserWebSocket&&!isReactNative?Dt?new WebSocket(Pt,Dt):new WebSocket(Pt):new WebSocket(Pt,Dt,Nt)}catch(jt){return this.emitReserved("error",jt)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=Pt=>this.onClose({description:"websocket connection closed",context:Pt}),this.ws.onmessage=Pt=>this.onData(Pt.data),this.ws.onerror=Pt=>this.onError("websocket error",Pt)}write(Pt){this.writable=!1;for(let Dt=0;Dt{const Gt={};try{usingBrowserWebSocket&&this.ws.send(Ut)}catch{}jt&&nextTick(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.close(),this.ws=null)}uri(){const Pt=this.opts.secure?"wss":"ws",Dt=this.query||{};return this.opts.timestampRequests&&(Dt[this.opts.timestampParam]=yeast()),this.supportsBinary||(Dt.b64=1),this.createUri(Pt,Dt)}check(){return!!WebSocket}}class WT extends Transport{get name(){return"webtransport"}doOpen(){typeof WebTransport=="function"&&(this.transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name]),this.transport.closed.then(()=>{this.onClose()}).catch(Pt=>{this.onError("webtransport error",Pt)}),this.transport.ready.then(()=>{this.transport.createBidirectionalStream().then(Pt=>{const Dt=createPacketDecoderStream(Number.MAX_SAFE_INTEGER,this.socket.binaryType),Nt=Pt.readable.pipeThrough(Dt).getReader(),jt=createPacketEncoderStream();jt.readable.pipeTo(Pt.writable),this.writer=jt.writable.getWriter();const Ut=()=>{Nt.read().then(({done:Wt,value:qt})=>{Wt||(this.onPacket(qt),Ut())}).catch(Wt=>{})};Ut();const Gt={type:"open"};this.query.sid&&(Gt.data=`{"sid":"${this.query.sid}"}`),this.writer.write(Gt).then(()=>this.onOpen())})}))}write(Pt){this.writable=!1;for(let Dt=0;Dt{jt&&nextTick(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var Pt;(Pt=this.transport)===null||Pt===void 0||Pt.close()}}const transports$2={websocket:WS,webtransport:WT,polling:Polling},re=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,parts=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function parse$3(_e){if(_e.length>2e3)throw"URI too long";const Pt=_e,Dt=_e.indexOf("["),Nt=_e.indexOf("]");Dt!=-1&&Nt!=-1&&(_e=_e.substring(0,Dt)+_e.substring(Dt,Nt).replace(/:/g,";")+_e.substring(Nt,_e.length));let jt=re.exec(_e||""),Ut={},Gt=14;for(;Gt--;)Ut[parts[Gt]]=jt[Gt]||"";return Dt!=-1&&Nt!=-1&&(Ut.source=Pt,Ut.host=Ut.host.substring(1,Ut.host.length-1).replace(/;/g,":"),Ut.authority=Ut.authority.replace("[","").replace("]","").replace(/;/g,":"),Ut.ipv6uri=!0),Ut.pathNames=pathNames(Ut,Ut.path),Ut.queryKey=queryKey(Ut,Ut.query),Ut}function pathNames(_e,Pt){const Dt=/\/{2,9}/g,Nt=Pt.replace(Dt,"/").split("/");return(Pt.slice(0,1)=="/"||Pt.length===0)&&Nt.splice(0,1),Pt.slice(-1)=="/"&&Nt.splice(Nt.length-1,1),Nt}function queryKey(_e,Pt){const Dt={};return Pt.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(Nt,jt,Ut){jt&&(Dt[jt]=Ut)}),Dt}let Socket$1=class Gm extends Emitter{constructor(Pt,Dt={}){super(),this.binaryType=defaultBinaryType,this.writeBuffer=[],Pt&&typeof Pt=="object"&&(Dt=Pt,Pt=null),Pt?(Pt=parse$3(Pt),Dt.hostname=Pt.host,Dt.secure=Pt.protocol==="https"||Pt.protocol==="wss",Dt.port=Pt.port,Pt.query&&(Dt.query=Pt.query)):Dt.host&&(Dt.hostname=parse$3(Dt.host).host),installTimerFunctions(this,Dt),this.secure=Dt.secure!=null?Dt.secure:typeof location<"u"&&location.protocol==="https:",Dt.hostname&&!Dt.port&&(Dt.port=this.secure?"443":"80"),this.hostname=Dt.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=Dt.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=Dt.transports||["polling","websocket","webtransport"],this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},Dt),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=decode$1(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,typeof addEventListener=="function"&&(this.opts.closeOnBeforeunload&&(this.beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(Pt){const Dt=Object.assign({},this.opts.query);Dt.EIO=protocol$1,Dt.transport=Pt,this.id&&(Dt.sid=this.id);const Nt=Object.assign({},this.opts,{query:Dt,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[Pt]);return new transports$2[Pt](Nt)}open(){let Pt;if(this.opts.rememberUpgrade&&Gm.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)Pt="websocket";else if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}else Pt=this.transports[0];this.readyState="opening";try{Pt=this.createTransport(Pt)}catch{this.transports.shift(),this.open();return}Pt.open(),this.setTransport(Pt)}setTransport(Pt){this.transport&&this.transport.removeAllListeners(),this.transport=Pt,Pt.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",Dt=>this.onClose("transport close",Dt))}probe(Pt){let Dt=this.createTransport(Pt),Nt=!1;Gm.priorWebsocketSuccess=!1;const jt=()=>{Nt||(Dt.send([{type:"ping",data:"probe"}]),Dt.once("packet",Kt=>{if(!Nt)if(Kt.type==="pong"&&Kt.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",Dt),!Dt)return;Gm.priorWebsocketSuccess=Dt.name==="websocket",this.transport.pause(()=>{Nt||this.readyState!=="closed"&&(Xt(),this.setTransport(Dt),Dt.send([{type:"upgrade"}]),this.emitReserved("upgrade",Dt),Dt=null,this.upgrading=!1,this.flush())})}else{const Qt=new Error("probe error");Qt.transport=Dt.name,this.emitReserved("upgradeError",Qt)}}))};function Ut(){Nt||(Nt=!0,Xt(),Dt.close(),Dt=null)}const Gt=Kt=>{const Qt=new Error("probe error: "+Kt);Qt.transport=Dt.name,Ut(),this.emitReserved("upgradeError",Qt)};function Wt(){Gt("transport closed")}function qt(){Gt("socket closed")}function Yt(Kt){Dt&&Kt.name!==Dt.name&&Ut()}const Xt=()=>{Dt.removeListener("open",jt),Dt.removeListener("error",Gt),Dt.removeListener("close",Wt),this.off("close",qt),this.off("upgrading",Yt)};Dt.once("open",jt),Dt.once("error",Gt),Dt.once("close",Wt),this.once("close",qt),this.once("upgrading",Yt),this.upgrades.indexOf("webtransport")!==-1&&Pt!=="webtransport"?this.setTimeoutFn(()=>{Nt||Dt.open()},200):Dt.open()}onOpen(){if(this.readyState="open",Gm.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush(),this.readyState==="open"&&this.opts.upgrade){let Pt=0;const Dt=this.upgrades.length;for(;Pt{this.onClose("ping timeout")},this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const Pt=this.getWritablePackets();this.transport.send(Pt),this.prevBufferLen=Pt.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let Dt=1;for(let Nt=0;Nt0&&Dt>this.maxPayload)return this.writeBuffer.slice(0,Nt);Dt+=2}return this.writeBuffer}write(Pt,Dt,Nt){return this.sendPacket("message",Pt,Dt,Nt),this}send(Pt,Dt,Nt){return this.sendPacket("message",Pt,Dt,Nt),this}sendPacket(Pt,Dt,Nt,jt){if(typeof Dt=="function"&&(jt=Dt,Dt=void 0),typeof Nt=="function"&&(jt=Nt,Nt=null),this.readyState==="closing"||this.readyState==="closed")return;Nt=Nt||{},Nt.compress=Nt.compress!==!1;const Ut={type:Pt,data:Dt,options:Nt};this.emitReserved("packetCreate",Ut),this.writeBuffer.push(Ut),jt&&this.once("flush",jt),this.flush()}close(){const Pt=()=>{this.onClose("forced close"),this.transport.close()},Dt=()=>{this.off("upgrade",Dt),this.off("upgradeError",Dt),Pt()},Nt=()=>{this.once("upgrade",Dt),this.once("upgradeError",Dt)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?Nt():Pt()}):this.upgrading?Nt():Pt()),this}onError(Pt){Gm.priorWebsocketSuccess=!1,this.emitReserved("error",Pt),this.onClose("transport error",Pt)}onClose(Pt,Dt){(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")&&(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),typeof removeEventListener=="function"&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",Pt,Dt),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(Pt){const Dt=[];let Nt=0;const jt=Pt.length;for(;Nttypeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(_e):_e.buffer instanceof ArrayBuffer,toString=Object.prototype.toString,withNativeBlob=typeof Blob=="function"||typeof Blob<"u"&&toString.call(Blob)==="[object BlobConstructor]",withNativeFile=typeof File=="function"||typeof File<"u"&&toString.call(File)==="[object FileConstructor]";function isBinary(_e){return withNativeArrayBuffer&&(_e instanceof ArrayBuffer||isView(_e))||withNativeBlob&&_e instanceof Blob||withNativeFile&&_e instanceof File}function hasBinary(_e,Pt){if(!_e||typeof _e!="object")return!1;if(Array.isArray(_e)){for(let Dt=0,Nt=_e.length;Dt=0&&_e.num{delete this.acks[Pt];for(let Gt=0;Gt{this.io.clearTimeoutFn(Ut),Dt.apply(this,[null,...Gt])}}emitWithAck(Pt,...Dt){const Nt=this.flags.timeout!==void 0||this._opts.ackTimeout!==void 0;return new Promise((jt,Ut)=>{Dt.push((Gt,Wt)=>Nt?Gt?Ut(Gt):jt(Wt):jt(Gt)),this.emit(Pt,...Dt)})}_addToQueue(Pt){let Dt;typeof Pt[Pt.length-1]=="function"&&(Dt=Pt.pop());const Nt={id:this._queueSeq++,tryCount:0,pending:!1,args:Pt,flags:Object.assign({fromQueue:!0},this.flags)};Pt.push((jt,...Ut)=>Nt!==this._queue[0]?void 0:(jt!==null?Nt.tryCount>this._opts.retries&&(this._queue.shift(),Dt&&Dt(jt)):(this._queue.shift(),Dt&&Dt(null,...Ut)),Nt.pending=!1,this._drainQueue())),this._queue.push(Nt),this._drainQueue()}_drainQueue(Pt=!1){if(!this.connected||this._queue.length===0)return;const Dt=this._queue[0];Dt.pending&&!Pt||(Dt.pending=!0,Dt.tryCount++,this.flags=Dt.flags,this.emit.apply(this,Dt.args))}packet(Pt){Pt.nsp=this.nsp,this.io._packet(Pt)}onopen(){typeof this.auth=="function"?this.auth(Pt=>{this._sendConnectPacket(Pt)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(Pt){this.packet({type:PacketType.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},Pt):Pt})}onerror(Pt){this.connected||this.emitReserved("connect_error",Pt)}onclose(Pt,Dt){this.connected=!1,delete this.id,this.emitReserved("disconnect",Pt,Dt)}onpacket(Pt){if(Pt.nsp===this.nsp)switch(Pt.type){case PacketType.CONNECT:Pt.data&&Pt.data.sid?this.onconnect(Pt.data.sid,Pt.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case PacketType.EVENT:case PacketType.BINARY_EVENT:this.onevent(Pt);break;case PacketType.ACK:case PacketType.BINARY_ACK:this.onack(Pt);break;case PacketType.DISCONNECT:this.ondisconnect();break;case PacketType.CONNECT_ERROR:this.destroy();const Nt=new Error(Pt.data.message);Nt.data=Pt.data.data,this.emitReserved("connect_error",Nt);break}}onevent(Pt){const Dt=Pt.data||[];Pt.id!=null&&Dt.push(this.ack(Pt.id)),this.connected?this.emitEvent(Dt):this.receiveBuffer.push(Object.freeze(Dt))}emitEvent(Pt){if(this._anyListeners&&this._anyListeners.length){const Dt=this._anyListeners.slice();for(const Nt of Dt)Nt.apply(this,Pt)}super.emit.apply(this,Pt),this._pid&&Pt.length&&typeof Pt[Pt.length-1]=="string"&&(this._lastOffset=Pt[Pt.length-1])}ack(Pt){const Dt=this;let Nt=!1;return function(...jt){Nt||(Nt=!0,Dt.packet({type:PacketType.ACK,id:Pt,data:jt}))}}onack(Pt){const Dt=this.acks[Pt.id];typeof Dt=="function"&&(Dt.apply(this,Pt.data),delete this.acks[Pt.id])}onconnect(Pt,Dt){this.id=Pt,this.recovered=Dt&&this._pid===Dt,this._pid=Dt,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(Pt=>this.emitEvent(Pt)),this.receiveBuffer=[],this.sendBuffer.forEach(Pt=>{this.notifyOutgoingListeners(Pt),this.packet(Pt)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(Pt=>Pt()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:PacketType.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(Pt){return this.flags.compress=Pt,this}get volatile(){return this.flags.volatile=!0,this}timeout(Pt){return this.flags.timeout=Pt,this}onAny(Pt){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(Pt),this}prependAny(Pt){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(Pt),this}offAny(Pt){if(!this._anyListeners)return this;if(Pt){const Dt=this._anyListeners;for(let Nt=0;Nt0&&_e.jitter<=1?_e.jitter:0,this.attempts=0}Backoff.prototype.duration=function(){var _e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var Pt=Math.random(),Dt=Math.floor(Pt*this.jitter*_e);_e=Math.floor(Pt*10)&1?_e+Dt:_e-Dt}return Math.min(_e,this.max)|0};Backoff.prototype.reset=function(){this.attempts=0};Backoff.prototype.setMin=function(_e){this.ms=_e};Backoff.prototype.setMax=function(_e){this.max=_e};Backoff.prototype.setJitter=function(_e){this.jitter=_e};class Manager extends Emitter{constructor(Pt,Dt){var Nt;super(),this.nsps={},this.subs=[],Pt&&typeof Pt=="object"&&(Dt=Pt,Pt=void 0),Dt=Dt||{},Dt.path=Dt.path||"/socket.io",this.opts=Dt,installTimerFunctions(this,Dt),this.reconnection(Dt.reconnection!==!1),this.reconnectionAttempts(Dt.reconnectionAttempts||1/0),this.reconnectionDelay(Dt.reconnectionDelay||1e3),this.reconnectionDelayMax(Dt.reconnectionDelayMax||5e3),this.randomizationFactor((Nt=Dt.randomizationFactor)!==null&&Nt!==void 0?Nt:.5),this.backoff=new Backoff({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(Dt.timeout==null?2e4:Dt.timeout),this._readyState="closed",this.uri=Pt;const jt=Dt.parser||parser;this.encoder=new jt.Encoder,this.decoder=new jt.Decoder,this._autoConnect=Dt.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(Pt){return arguments.length?(this._reconnection=!!Pt,this):this._reconnection}reconnectionAttempts(Pt){return Pt===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=Pt,this)}reconnectionDelay(Pt){var Dt;return Pt===void 0?this._reconnectionDelay:(this._reconnectionDelay=Pt,(Dt=this.backoff)===null||Dt===void 0||Dt.setMin(Pt),this)}randomizationFactor(Pt){var Dt;return Pt===void 0?this._randomizationFactor:(this._randomizationFactor=Pt,(Dt=this.backoff)===null||Dt===void 0||Dt.setJitter(Pt),this)}reconnectionDelayMax(Pt){var Dt;return Pt===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=Pt,(Dt=this.backoff)===null||Dt===void 0||Dt.setMax(Pt),this)}timeout(Pt){return arguments.length?(this._timeout=Pt,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(Pt){if(~this._readyState.indexOf("open"))return this;this.engine=new Socket$1(this.uri,this.opts);const Dt=this.engine,Nt=this;this._readyState="opening",this.skipReconnect=!1;const jt=on(Dt,"open",function(){Nt.onopen(),Pt&&Pt()}),Ut=Wt=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",Wt),Pt?Pt(Wt):this.maybeReconnectOnOpen()},Gt=on(Dt,"error",Ut);if(this._timeout!==!1){const Wt=this._timeout,qt=this.setTimeoutFn(()=>{jt(),Ut(new Error("timeout")),Dt.close()},Wt);this.opts.autoUnref&&qt.unref(),this.subs.push(()=>{this.clearTimeoutFn(qt)})}return this.subs.push(jt),this.subs.push(Gt),this}connect(Pt){return this.open(Pt)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const Pt=this.engine;this.subs.push(on(Pt,"ping",this.onping.bind(this)),on(Pt,"data",this.ondata.bind(this)),on(Pt,"error",this.onerror.bind(this)),on(Pt,"close",this.onclose.bind(this)),on(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(Pt){try{this.decoder.add(Pt)}catch(Dt){this.onclose("parse error",Dt)}}ondecoded(Pt){nextTick(()=>{this.emitReserved("packet",Pt)},this.setTimeoutFn)}onerror(Pt){this.emitReserved("error",Pt)}socket(Pt,Dt){let Nt=this.nsps[Pt];return Nt?this._autoConnect&&!Nt.active&&Nt.connect():(Nt=new Socket(this,Pt,Dt),this.nsps[Pt]=Nt),Nt}_destroy(Pt){const Dt=Object.keys(this.nsps);for(const Nt of Dt)if(this.nsps[Nt].active)return;this._close()}_packet(Pt){const Dt=this.encoder.encode(Pt);for(let Nt=0;NtPt()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(Pt,Dt){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",Pt,Dt),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const Pt=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const Dt=this.backoff.duration();this._reconnecting=!0;const Nt=this.setTimeoutFn(()=>{Pt.skipReconnect||(this.emitReserved("reconnect_attempt",Pt.backoff.attempts),!Pt.skipReconnect&&Pt.open(jt=>{jt?(Pt._reconnecting=!1,Pt.reconnect(),this.emitReserved("reconnect_error",jt)):Pt.onreconnect()}))},Dt);this.opts.autoUnref&&Nt.unref(),this.subs.push(()=>{this.clearTimeoutFn(Nt)})}}onreconnect(){const Pt=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",Pt)}}const cache={};function lookup(_e,Pt){typeof _e=="object"&&(Pt=_e,_e=void 0),Pt=Pt||{};const Dt=url$1(_e,Pt.path||"/socket.io"),Nt=Dt.source,jt=Dt.id,Ut=Dt.path,Gt=cache[jt]&&Ut in cache[jt].nsps,Wt=Pt.forceNew||Pt["force new connection"]||Pt.multiplex===!1||Gt;let qt;return Wt?qt=new Manager(Nt,Pt):(cache[jt]||(cache[jt]=new Manager(Nt,Pt)),qt=cache[jt]),Dt.query&&!Pt.query&&(Pt.query=Dt.queryKey),qt.socket(Dt.path,Pt)}Object.assign(lookup,{Manager,Socket,io:lookup,connect:lookup});class SocketIOTransport extends EventEmitter$2{constructor(Dt){super();zm(this,"client");zm(this,"socket");this.options=Dt,this.socket=lookup(Dt.url),this.client=new dist$2.JSONRPCClient(async Nt=>{const jt=Ut=>{Ut.id===Nt.id&&(this.socket.off("response",jt),this.client.receive(Ut))};this.socket.emit("request",Nt),this.socket.on("response",jt)}),this.socket.on("request",({method:Nt,params:jt})=>{this.emit(Nt,jt)})}async connect(){this.socket.connect()}async disconnect(){this.socket.disconnect()}async call(Dt,Nt){return await this.client.request(Dt,Nt)}}const transports$1={socketio:{name:"socket.io",constructor:SocketIOTransport},ipc:{name:"Web Worker",constructor:IPCTransport},native:{name:"Internal",constructor:NativeTransport}};function getTransport(_e){return transports$1[_e].constructor}const defaultTransport=lodashExports$1.first(lodashExports$1.keys(transports$1));var lodash={exports:{}};/** +`}}]),_e}();_defineProperty(Document$1,"defaults",documentOptions);function createNode$1(_e){var Pt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,Dt=arguments.length>2?arguments[2]:void 0;Dt===void 0&&typeof Pt=="string"&&(Dt=Pt,Pt=!0);var Nt=Object.assign({},Document$1.defaults[defaultOptions.version],defaultOptions),jt=new Schema(Nt);return jt.createNode(_e,Pt,Dt)}var Document=function(_e){_inherits(Dt,_e);var Pt=_createSuper(Dt);function Dt(Nt){return _classCallCheck(this,Dt),Pt.call(this,Object.assign({},defaultOptions,Nt))}return Dt}(Document$1);function parseAllDocuments(_e,Pt){var Dt=[],Nt,jt=_createForOfIteratorHelper(parse$5(_e)),Ut;try{for(jt.s();!(Ut=jt.n()).done;){var Gt=Ut.value,Wt=new Document(Pt);Wt.parse(Gt,Nt),Dt.push(Wt),Nt=Wt}}catch(qt){jt.e(qt)}finally{jt.f()}return Dt}function parseDocument(_e,Pt){var Dt=parse$5(_e),Nt=new Document(Pt).parse(Dt[0]);if(Dt.length>1){var jt="Source contains multiple documents; please use YAML.parseAllDocuments()";Nt.errors.unshift(new YAMLSemanticError(Dt[1],jt))}return Nt}function parse$4(_e,Pt){var Dt=parseDocument(_e,Pt);if(Dt.warnings.forEach(function(Nt){return warn(Nt)}),Dt.errors.length>0)throw Dt.errors[0];return Dt.toJSON()}function stringify$2(_e,Pt){var Dt=new Document(Pt);return Dt.contents=_e,String(Dt)}var YAML={createNode:createNode$1,defaultOptions,Document,parse:parse$4,parseAllDocuments,parseCST:parse$5,parseDocument,scalarOptions,stringify:stringify$2};const dist$3=Object.freeze(Object.defineProperty({__proto__:null,YAML},Symbol.toStringTag,{value:"Module"})),require$$0=getAugmentedNamespace(dist$3);var browser=require$$0.YAML;const paths=Object.assign({"/public/recipes/9-tiles.workspace":()=>__vitePreload(()=>import("./9-tiles-1f224294.js"),[],import.meta.url).then(_e=>_e.default),"/public/recipes/a-star-grid-search-heat-map.workspace":()=>__vitePreload(()=>import("./a-star-grid-search-heat-map-0f76793f.js"),[],import.meta.url).then(_e=>_e.default),"/public/recipes/a-star-grid-search.workspace":()=>__vitePreload(()=>import("./a-star-grid-search-ffae5751.js"),[],import.meta.url).then(_e=>_e.default),"/public/recipes/dynamic-star-craft.workspace":()=>__vitePreload(()=>import("./dynamic-star-craft-6a733d35.js"),[],import.meta.url).then(_e=>_e.default),"/public/recipes/palette-reference.workspace":()=>__vitePreload(()=>import("./palette-reference-9c0fac30.js"),[],import.meta.url).then(_e=>_e.default),"/public/recipes/primitives-reference.workspace":()=>__vitePreload(()=>import("./primitives-reference-9d7af09e.js"),[],import.meta.url).then(_e=>_e.default),"/public/recipes/rayscan.workspace":()=>__vitePreload(()=>import("./rayscan-202b7804.js"),[],import.meta.url).then(_e=>_e.default),"/public/recipes/variables-reference.workspace":()=>__vitePreload(()=>import("./variables-reference-b00bbb42.js"),[],import.meta.url).then(_e=>_e.default),"/public/recipes/weighted-a-star.workspace":()=>__vitePreload(()=>import("./weighted-a-star-756c8812.js"),[],import.meta.url).then(_e=>_e.default)}),metaPaths=Object.assign({"/public/recipes/9-tiles.workspace.meta":()=>__vitePreload(()=>import("./9-tiles.workspace-621e8328.js"),[],import.meta.url).then(_e=>_e.default),"/public/recipes/a-star-grid-search-heat-map.workspace.meta":()=>__vitePreload(()=>import("./a-star-grid-search-heat-map.workspace-ec8039bd.js"),[],import.meta.url).then(_e=>_e.default),"/public/recipes/a-star-grid-search.workspace.meta":()=>__vitePreload(()=>import("./a-star-grid-search.workspace-8079d31e.js"),[],import.meta.url).then(_e=>_e.default),"/public/recipes/dynamic-star-craft.workspace.meta":()=>__vitePreload(()=>import("./dynamic-star-craft.workspace-5fa26288.js"),[],import.meta.url).then(_e=>_e.default),"/public/recipes/palette-reference.workspace.meta":()=>__vitePreload(()=>import("./palette-reference.workspace-bd4901e3.js"),[],import.meta.url).then(_e=>_e.default),"/public/recipes/primitives-reference.workspace.meta":()=>__vitePreload(()=>import("./primitives-reference.workspace-cd08113e.js"),[],import.meta.url).then(_e=>_e.default),"/public/recipes/rayscan.workspace.meta":()=>__vitePreload(()=>import("./rayscan.workspace-b6c007ed.js"),[],import.meta.url).then(_e=>_e.default),"/public/recipes/variables-reference.workspace.meta":()=>__vitePreload(()=>import("./variables-reference.workspace-db5c7928.js"),[],import.meta.url).then(_e=>_e.default),"/public/recipes/weighted-a-star.workspace.meta":()=>__vitePreload(()=>import("./weighted-a-star.workspace-13502ed5.js"),[],import.meta.url).then(_e=>_e.default)});function stripExtension(_e){return _e.split(".")[0]}function basename(_e){return _e.split("/").pop()}async function getMeta(_e){const Pt=metaPaths[_e.replace(/workspace$/,"workspace.meta")],Dt=await(Pt==null?void 0:Pt());if(Dt){const Nt=await fetch(Dt);return browser.parse(await Nt.text())}}async function getFileInfo(_e,Pt){return{name:lodashExports$1.chain(_e).thru(basename).thru(stripExtension).startCase().value(),path:await Pt(),...await getMeta(_e)}}const makeAvatar=_e=>Pt=>jsxRuntimeExports.jsx(Avatar$1,{sx:Pt,children:_e});function getAuthor(_e){if(_e){try{const{protocol:Pt,pathname:Dt}=new URL(_e);switch(Pt){case"github:":return{name:Dt,avatar:Nt=>jsxRuntimeExports.jsx("a",{href:`https://github.com/${Dt}`,target:"_blank",rel:"noreferrer",children:jsxRuntimeExports.jsx(Avatar$1,{sx:Nt,src:`https://github.com/${Dt}.png`})})};default:break}}catch{}return{name:_e,avatar:makeAvatar(_e[0])}}return{name:"No author",avatar:makeAvatar()}}const ellipsisProps={textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"};function FeatureCard({name:_e,description:Pt,image:Dt,author:Nt,size:jt,onOpenClick:Ut,...Gt}){const[{"appearance/acrylic":Wt}]=useSettings(),qt=usePaper(),{name:Yt,avatar:Xt}=reactExports.useMemo(()=>getAuthor(Nt),[Nt]);return jsxRuntimeExports.jsxs(Card$1,{variant:"outlined",sx:{...qt(1),position:"relative",height:"100%"},...Gt,children:[Wt&&jsxRuntimeExports.jsx(Box$1,{sx:{zIndex:-1,filter:"blur(48px)",opacity:.1,position:"absolute",width:"100%",height:"100%",backgroundImage:`url("${Dt}")`,backgroundSize:"contain",backgroundRepeat:"no-repeat",backgroundPosition:"-52px -52px"}}),jsxRuntimeExports.jsx(CardHeader$1,{sx:{alignItems:"flex-start","> .MuiCardHeader-content":{overflow:"hidden"}},avatar:jsxRuntimeExports.jsx(Box$1,{sx:{...qt(1),border:"none",borderRadius:1,width:64,height:64,overflow:"hidden"},children:jsxRuntimeExports.jsx(Box$1,{sx:{imageRendering:"pixelated",width:64,height:64,backgroundImage:`url("${Dt}")`,backgroundSize:"130%",backgroundPosition:"center"}})}),titleTypeProps:ellipsisProps,title:_e||"Untitled",subheaderTypeProps:ellipsisProps,subheader:jsxRuntimeExports.jsxs(Stack$1,{gap:2,sx:{pt:1,alignItems:"flex-start"},children:[jsxRuntimeExports.jsx(Type$2,{sx:{...ellipsisProps,maxWidth:"100%",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:3,whiteSpace:"break-spaces",height:60},children:Pt||"No description"}),jsxRuntimeExports.jsxs(Stack$1,{direction:"row",alignItems:"center",gap:1,children:[Xt==null?void 0:Xt({width:18,height:18,fontSize:"0.8rem"}),jsxRuntimeExports.jsx(Type$2,{variant:"caption",children:Yt})]}),jsxRuntimeExports.jsx(Button,{onClick:Ut,startIcon:jsxRuntimeExports.jsx(WorkspacesOutlined,{}),sx:qt(2),children:jsxRuntimeExports.jsxs(Stack$1,{direction:"row",gap:1,children:[jsxRuntimeExports.jsx(Type$2,{children:"Open"}),!!jt&&jsxRuntimeExports.jsxs(Type$2,{color:"text.secondary",children:[lodashExports$1.round(jt/1024/1024,2)," MB"]})]})})]})})]})}const CONTENT_WIDTH=940;function ExplorePage({template:_e}){const[{"behaviour/showOnStart":Pt},Dt]=useSettings(),Nt=useSnackbar(),{controls:jt,onChange:Ut,state:Gt,dragHandle:Wt,isViewTree:qt}=useViewTreeContext(),{close:Yt}=useFullscreenModalContext(),Xt=useSmallDisplay()||qt,[Kt,Qt]=reactExports.useState(""),[en,tn]=reactExports.useState("explore"),{load:nn}=useWorkspace(),rn=useLoadingState(),{result:an,loading:sn}=useAsync(async()=>await map$7(lodashExports$1.entries(paths),un=>getFileInfo(...un)),[]),ln=un=>rn(async()=>{try{Nt(`Loading ${basename(un)}...`);const hn=await fetch(un);hn.ok||Nt(`Couldn't load ${basename(un)}`,"Network error",{error:!0});const vn=await hn.blob(),Sn=new File([vn],basename(un),{type:vn.type});nn(Sn)}catch(hn){Nt(`Couldn't load ${basename(un)}`,`${hn}`,{error:!0})}}),dn=reactExports.useMemo(()=>lodashExports$1.filter(an,un=>lodashExports$1.upperCase(browser.stringify(un)).includes(lodashExports$1.upperCase(Kt))),[Kt,an]),mn=Pt==="explore";function gn(un){Dt(()=>({"behaviour/showOnStart":un?"explore":void 0}))}return jsxRuntimeExports.jsx(TabContext,{value:en,children:jsxRuntimeExports.jsxs(_e,{onChange:Ut,stack:Gt,children:[jsxRuntimeExports.jsx(_e.Title,{children:"Explore"}),jsxRuntimeExports.jsx(_e.Handle,{children:Wt}),jsxRuntimeExports.jsx(_e.Options,{children:jsxRuntimeExports.jsxs(TabList$1,{onChange:(un,hn)=>tn(hn),children:[jsxRuntimeExports.jsx(Tab$1,{label:"Examples",value:"explore"}),jsxRuntimeExports.jsx(Tab$1,{label:"Guides",value:"guides"})]})}),jsxRuntimeExports.jsx(_e.Content,{children:jsxRuntimeExports.jsx(Flex,{vertical:!0,children:jsxRuntimeExports.jsx(Scroll,{y:!0,children:jsxRuntimeExports.jsx(Box$1,{sx:Xt?void 0:{p:4,maxWidth:CONTENT_WIDTH,mx:"auto"},children:jsxRuntimeExports.jsxs(Box$1,{pt:6,children:[jsxRuntimeExports.jsxs(TabPanel$1,{value:"explore",sx:{p:0},children:[jsxRuntimeExports.jsxs(Box$1,{p:2,children:[jsxRuntimeExports.jsx(Type$2,{variant:Xt?"h6":"h4",children:"Examples"}),jsxRuntimeExports.jsx(Type$2,{variant:"subtitle2",color:"text.secondary",children:"Browse a library of included and community-made examples"})]}),jsxRuntimeExports.jsx(Box$1,{px:2,py:1,children:jsxRuntimeExports.jsx(TextField$1,{...textFieldProps,size:"small",hiddenLabel:!0,fullWidth:!0,sx:{maxWidth:480},InputProps:{startAdornment:jsxRuntimeExports.jsx(InputAdornment$1,{position:"start",children:jsxRuntimeExports.jsx(SearchOutlined,{})})},onChange:un=>Qt(un.target.value),placeholder:"Search examples"})}),sn?jsxRuntimeExports.jsx(Box$1,{sx:{p:2},children:jsxRuntimeExports.jsx(CircularProgress$1,{})}):jsxRuntimeExports.jsx(Box$1,{sx:{p:1,display:"grid",gridAutoFlow:"row",gridTemplateColumns:"repeat(auto-fill, minmax(min(100%, 320px), 1fr))"},children:dn.length?lodashExports$1.map(dn,({name:un,path:hn,description:vn,screenshots:Sn,author:_n,size:Tn},Cn)=>jsxRuntimeExports.jsx(Box$1,{sx:{p:1},children:jsxRuntimeExports.jsx(FeatureCard,{name:un,description:vn??"No description",image:lodashExports$1.first(Sn),author:_n,onOpenClick:()=>{ln(hn),Yt==null||Yt()},size:Tn})},Cn)):jsxRuntimeExports.jsx(Type$2,{color:"text.secondary",sx:{p:1},children:"No results match your search."})})]}),jsxRuntimeExports.jsxs(TabPanel$1,{value:"guides",sx:{p:0},children:[jsxRuntimeExports.jsxs(Box$1,{p:2,children:[jsxRuntimeExports.jsx(Type$2,{variant:Xt?"h6":"h4",children:"Guides"}),jsxRuntimeExports.jsx(Type$2,{variant:"subtitle2",color:"text.secondary",children:`Learn how to use ${name} and explore ${name} features`})]}),jsxRuntimeExports.jsxs(Stack$1,{sx:{p:2},gap:2,children:[jsxRuntimeExports.jsx(Type$2,{children:"We're still working on this feature. Check out our documentation instead."}),jsxRuntimeExports.jsx(Button,{onClick:()=>window.open(docs,"_blank"),startIcon:jsxRuntimeExports.jsx(LaunchOutlined,{}),children:"Open Documentation"})]})]})]})})})})}),jsxRuntimeExports.jsxs(_e.Extras,{children:[!Xt&&jsxRuntimeExports.jsx(FormControlLabel$1,{label:"Show on start-up",labelPlacement:"start",sx:{ml:"auto",mr:-5,minWidth:"fit-content"},control:jsxRuntimeExports.jsx(Checkbox$1,{defaultChecked:mn,onChange:(un,hn)=>gn==null?void 0:gn(hn)})}),jt]})]})})}function InfoPage({template:_e}){const{controls:Pt,onChange:Dt,state:Nt,dragHandle:jt}=useViewTreeContext(),[Ut,Gt]=useLog();return jsxRuntimeExports.jsxs(_e,{onChange:Dt,stack:Nt,children:[jsxRuntimeExports.jsx(_e.Title,{children:"Logs"}),jsxRuntimeExports.jsx(_e.Handle,{children:jt}),jsxRuntimeExports.jsx(_e.Options,{children:jsxRuntimeExports.jsx(FeaturePickerButton,{disabled:!Ut.length,icon:jsxRuntimeExports.jsx(CloseOutlined,{}),onClick:()=>Gt(()=>({action:"clear"})),children:"Clear"})}),jsxRuntimeExports.jsx(_e.Content,{children:jsxRuntimeExports.jsx(Flex,{vertical:!0,children:Ut.length?jsxRuntimeExports.jsx(Scroll,{y:!0,children:jsxRuntimeExports.jsx(List$2,{sx:{pt:6},children:lodashExports$1.map(Ut,(Wt,qt)=>jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx(ListItem$1,{children:jsxRuntimeExports.jsx(ListItemText$1,{primary:Wt.content,secondary:Wt.timestamp})}),jsxRuntimeExports.jsx(Divider$1,{})]},qt))})}):jsxRuntimeExports.jsx(Placeholder$2,{pt:6,label:"Logs",icon:jsxRuntimeExports.jsx(ListOutlined,{})})})}),jsxRuntimeExports.jsx(_e.Extras,{children:Pt})]})}const compositeOperations=["color","color-burn","color-dodge","copy","darken","destination-atop","destination-in","destination-out","destination-over","difference","exclusion","hard-light","hue","lighten","lighter","luminosity","multiply","overlay","saturation","screen","soft-light","source-atop","source-in","source-out","source-over","xor"];function useDraft(_e,Pt,Dt=300,Nt=[]){const[jt,Ut]=reactExports.useState(_e);reactExports.useEffect(()=>{_e&&Ut(lodashExports$1.merge(jt,lodashExports$1.omit(_e,...Nt)))},[Ut,_e]);const Gt=reactExports.useMemo(()=>lodashExports$1.debounce(Wt=>Pt==null?void 0:Pt(Wt),Dt),[Pt,Dt]);return[jt,Wt=>{Ut(Wt),Gt(Wt)}]}function Component({value:_e,onValueChange:Pt},Dt){var Qt,en,tn,nn;const Nt=usePaper();useAcrylic();const[jt,Ut]=useDraft(_e,Pt,300,["name","source.type"]),Gt=rn=>jsxRuntimeExports.jsx(Type$2,{variant:"overline",color:"text.secondary",sx:{pt:1},component:"p",children:rn}),Wt=rn=>jsxRuntimeExports.jsx(Type$2,{variant:"body1",children:rn}),qt=(rn,an)=>jsxRuntimeExports.jsxs(Flex,{alignItems:"center",children:[Wt(rn),jsxRuntimeExports.jsx(Space,{flex:1}),an]}),Yt=rn=>rn.map(an=>({id:an,name:lodashExports$1.startCase(an)})),Xt=jt.name||inferLayerName(_e),Kt=(en=(Qt=getLayerHandler(_e))==null?void 0:Qt.error)==null?void 0:en.call(Qt,_e);return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsx(ManagedModal,{popover:!0,slotProps:{popover:{anchorOrigin:{horizontal:-12,vertical:-12}}},appBar:{children:"Edit Layer"},trigger:rn=>{var an;return jsxRuntimeExports.jsx(ButtonBase$1,{onClick:rn,className:jt.key,sx:{flex:1,display:"block",textAlign:"left",px:2},children:jsxRuntimeExports.jsxs(Stack$1,{alignItems:"center",direction:"row",gap:2,children:[jsxRuntimeExports.jsx(Stack$1,{sx:{...Nt(.5),alignItems:"center",justifyContent:"center",width:36,height:36,color:"action.disabled"},children:getLayerHandler(_e).icon}),jsxRuntimeExports.jsxs(Box$1,{sx:{py:1.5,flex:1,width:0,ml:0,overflow:"hidden","> *":{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}},children:[jsxRuntimeExports.jsx(Type$2,{children:Xt}),jsxRuntimeExports.jsx(Type$2,{variant:"body2",color:"text.secondary",children:lodashExports$1.startCase((an=_e.source)==null?void 0:an.type)})]}),!!Kt&&jsxRuntimeExports.jsx(Tooltip$1,{title:Kt,children:jsxRuntimeExports.jsx(Chip$1,{sx:{mr:-2,...lodashExports$1.omit(Nt(1),"borderRadius"),color:sn=>sn.palette.error.main,flex:0},label:`${lodashExports$1.truncate(`${Kt}`,{length:8})}`,size:"small"})})]})})},children:jsxRuntimeExports.jsxs(Box$1,{p:2,children:[jsxRuntimeExports.jsx(TextField$1,{sx:{mb:2},autoComplete:"off",autoFocus:!0,placeholder:inferLayerName(jt),fullWidth:!0,variant:"filled",label:"Layer Name",defaultValue:jt.name??"",onChange:rn=>Ut==null?void 0:Ut(produce(jt,an=>lodashExports$1.set(an,"name",rn.target.value)))}),jsxRuntimeExports.jsxs(Box$1,{sx:{mx:-2,pb:1},children:[jsxRuntimeExports.jsx(Tabs$1,{variant:"fullWidth",onChange:(rn,an)=>Ut==null?void 0:Ut(produce(jt,sn=>{lodashExports$1.set(sn,"source",{type:an})})),value:((tn=jt.source)==null?void 0:tn.type)??lodashExports$1.first(lodashExports$1.keys(layerHandlers))??"",children:lodashExports$1.keys(layerHandlers).map(rn=>jsxRuntimeExports.jsx(Tab$1,{label:lodashExports$1.startCase(rn),value:rn},rn))}),jsxRuntimeExports.jsx(Divider$1,{sx:{width:"100%"}})]}),Gt("Source Options"),((nn=jt.source)==null?void 0:nn.type)&&reactExports.createElement(layerHandlers[jt.source.type].editor,{onChange:rn=>Ut(rn(jt)),value:jt}),Gt("Layer Options"),qt("Transparency",jsxRuntimeExports.jsx(FeaturePicker,{label:"Transparency",items:["0","25","50","75"].map(rn=>({id:rn,name:`${rn}%`})),value:jt.transparency??"0",arrow:!0,onChange:rn=>Ut==null?void 0:Ut(produce(jt,an=>lodashExports$1.set(an,"transparency",rn)))})),qt("Display Mode",jsxRuntimeExports.jsx(FeaturePicker,{arrow:!0,label:"Display Mode",value:jt.displayMode??"source-over",items:Yt(compositeOperations),onChange:rn=>Ut==null?void 0:Ut(produce(jt,an=>lodashExports$1.set(an,"displayMode",rn)))}))]})})})}const LayerEditor=reactExports.forwardRef(Component);function LayerListEditor(){const[{layers:_e=[]},Pt]=useLayers();return jsxRuntimeExports.jsx(Box$1,{sx:{overflow:"auto hidden",width:"100%"},children:jsxRuntimeExports.jsx(Box$1,{sx:{mb:2},children:jsxRuntimeExports.jsx(ListEditor,{sortable:!0,icon:null,value:_e,deletable:!0,orderable:!0,extras:Dt=>jsxRuntimeExports.jsx(PopupState,{variant:"popover",children:Nt=>jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Menu$1,{...bindMenu(Nt),children:jsxRuntimeExports.jsx(MenuList$1,{dense:!0,sx:{p:0},children:[{name:"Fit Layer",key:"fit-layer",action:()=>Pt(({layers:jt})=>({layers:lodashExports$1.map(jt,Ut=>({...Ut,viewKey:Ut.key===(Dt==null?void 0:Dt.key)?nanoid$1():void 0}))}))}].map(({name:jt,key:Ut,action:Gt})=>jsxRuntimeExports.jsx(MenuItem$1,{onClick:()=>{Gt==null||Gt(),Nt.close()},children:jt},Ut))})}),jsxRuntimeExports.jsx(IconButton$1,{...bindTrigger(Nt),children:jsxRuntimeExports.jsx(MoreVertOutlined,{})})]})}),renderEditor:({extras:Dt,handle:Nt,value:jt,onValueChange:Ut})=>jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[Nt,jsxRuntimeExports.jsx(LayerEditor,{value:jt,onValueChange:Ut}),Dt]}),create:()=>({source:{type:"trace",trace:{}}}),onChange:Dt=>requestIdleCallback(()=>Pt(()=>({layers:Dt})),{timeout:300}),addItemLabel:"Layer",placeholder:jsxRuntimeExports.jsx(Box$1,{pt:2,children:"Get started by adding a layer."}),onFocus:Dt=>{const Nt=lodashExports$1.head(document.getElementsByClassName(Dt));Nt&&"click"in Nt&&typeof Nt.click=="function"&&Nt.click()}})})})}function LayersPage({template:_e}){const{controls:Pt,onChange:Dt,state:Nt,dragHandle:jt}=useViewTreeContext();return jsxRuntimeExports.jsxs(_e,{onChange:Dt,stack:Nt,children:[jsxRuntimeExports.jsx(_e.Title,{children:"Layers"}),jsxRuntimeExports.jsx(_e.Handle,{children:jt}),jsxRuntimeExports.jsx(_e.Content,{children:jsxRuntimeExports.jsx(Flex,{children:jsxRuntimeExports.jsx(Scroll,{y:!0,style:{width:"100%"},children:jsxRuntimeExports.jsx(Box$1,{pt:6,children:jsxRuntimeExports.jsx(LayerListEditor,{})})})})}),jsxRuntimeExports.jsx(_e.Extras,{children:Pt})]})}var dist$2={},client={},models={};(function(_e){var Pt=commonjsGlobal&&commonjsGlobal.__extends||function(){var en=function(tn,nn){return en=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(rn,an){rn.__proto__=an}||function(rn,an){for(var sn in an)Object.prototype.hasOwnProperty.call(an,sn)&&(rn[sn]=an[sn])},en(tn,nn)};return function(tn,nn){if(typeof nn!="function"&&nn!==null)throw new TypeError("Class extends value "+String(nn)+" is not a constructor or null");en(tn,nn);function rn(){this.constructor=tn}tn.prototype=nn===null?Object.create(nn):(rn.prototype=nn.prototype,new rn)}}();Object.defineProperty(_e,"__esModule",{value:!0}),_e.createJSONRPCNotification=_e.createJSONRPCRequest=_e.createJSONRPCSuccessResponse=_e.createJSONRPCErrorResponse=_e.JSONRPCErrorCode=_e.JSONRPCErrorException=_e.isJSONRPCResponses=_e.isJSONRPCResponse=_e.isJSONRPCRequests=_e.isJSONRPCRequest=_e.isJSONRPCID=_e.JSONRPC=void 0,_e.JSONRPC="2.0";var Dt=function(en){return typeof en=="string"||typeof en=="number"||en===null};_e.isJSONRPCID=Dt;var Nt=function(en){return en.jsonrpc===_e.JSONRPC&&en.method!==void 0&&en.result===void 0&&en.error===void 0};_e.isJSONRPCRequest=Nt;var jt=function(en){return Array.isArray(en)&&en.every(_e.isJSONRPCRequest)};_e.isJSONRPCRequests=jt;var Ut=function(en){return en.jsonrpc===_e.JSONRPC&&en.id!==void 0&&(en.result!==void 0||en.error!==void 0)};_e.isJSONRPCResponse=Ut;var Gt=function(en){return Array.isArray(en)&&en.every(_e.isJSONRPCResponse)};_e.isJSONRPCResponses=Gt;var Wt=function(en,tn,nn){var rn={code:en,message:tn};return nn!=null&&(rn.data=nn),rn},qt=function(en){Pt(tn,en);function tn(nn,rn,an){var sn=en.call(this,nn)||this;return Object.setPrototypeOf(sn,tn.prototype),sn.code=rn,sn.data=an,sn}return tn.prototype.toObject=function(){return Wt(this.code,this.message,this.data)},tn}(Error);_e.JSONRPCErrorException=qt,function(en){en[en.ParseError=-32700]="ParseError",en[en.InvalidRequest=-32600]="InvalidRequest",en[en.MethodNotFound=-32601]="MethodNotFound",en[en.InvalidParams=-32602]="InvalidParams",en[en.InternalError=-32603]="InternalError"}(_e.JSONRPCErrorCode||(_e.JSONRPCErrorCode={}));var Yt=function(en,tn,nn,rn){return{jsonrpc:_e.JSONRPC,id:en,error:Wt(tn,nn,rn)}};_e.createJSONRPCErrorResponse=Yt;var Xt=function(en,tn){return{jsonrpc:_e.JSONRPC,id:en,result:tn??null}};_e.createJSONRPCSuccessResponse=Xt;var Kt=function(en,tn,nn){return{jsonrpc:_e.JSONRPC,id:en,method:tn,params:nn}};_e.createJSONRPCRequest=Kt;var Qt=function(en,tn){return{jsonrpc:_e.JSONRPC,method:en,params:tn}};_e.createJSONRPCNotification=Qt})(models);var internal$1={};Object.defineProperty(internal$1,"__esModule",{value:!0});internal$1.DefaultErrorCode=void 0;internal$1.DefaultErrorCode=0;var __awaiter$2=commonjsGlobal&&commonjsGlobal.__awaiter||function(_e,Pt,Dt,Nt){function jt(Ut){return Ut instanceof Dt?Ut:new Dt(function(Gt){Gt(Ut)})}return new(Dt||(Dt=Promise))(function(Ut,Gt){function Wt(Xt){try{Yt(Nt.next(Xt))}catch(Kt){Gt(Kt)}}function qt(Xt){try{Yt(Nt.throw(Xt))}catch(Kt){Gt(Kt)}}function Yt(Xt){Xt.done?Ut(Xt.value):jt(Xt.value).then(Wt,qt)}Yt((Nt=Nt.apply(_e,Pt||[])).next())})},__generator$2=commonjsGlobal&&commonjsGlobal.__generator||function(_e,Pt){var Dt={label:0,sent:function(){if(Ut[0]&1)throw Ut[1];return Ut[1]},trys:[],ops:[]},Nt,jt,Ut,Gt;return Gt={next:Wt(0),throw:Wt(1),return:Wt(2)},typeof Symbol=="function"&&(Gt[Symbol.iterator]=function(){return this}),Gt;function Wt(Yt){return function(Xt){return qt([Yt,Xt])}}function qt(Yt){if(Nt)throw new TypeError("Generator is already executing.");for(;Gt&&(Gt=0,Yt[0]&&(Dt=0)),Dt;)try{if(Nt=1,jt&&(Ut=Yt[0]&2?jt.return:Yt[0]?jt.throw||((Ut=jt.return)&&Ut.call(jt),0):jt.next)&&!(Ut=Ut.call(jt,Yt[1])).done)return Ut;switch(jt=0,Ut&&(Yt=[Yt[0]&2,Ut.value]),Yt[0]){case 0:case 1:Ut=Yt;break;case 4:return Dt.label++,{value:Yt[1],done:!1};case 5:Dt.label++,jt=Yt[1],Yt=[0];continue;case 7:Yt=Dt.ops.pop(),Dt.trys.pop();continue;default:if(Ut=Dt.trys,!(Ut=Ut.length>0&&Ut[Ut.length-1])&&(Yt[0]===6||Yt[0]===2)){Dt=0;continue}if(Yt[0]===3&&(!Ut||Yt[1]>Ut[0]&&Yt[1]0&&Ut[Ut.length-1])&&(Yt[0]===6||Yt[0]===2)){Dt=0;continue}if(Yt[0]===3&&(!Ut||Yt[1]>Ut[0]&&Yt[1]0&&Ut[Ut.length-1])&&(Yt[0]===6||Yt[0]===2)){Dt=0;continue}if(Yt[0]===3&&(!Ut||Yt[1]>Ut[0]&&Yt[1]{const jt=({data:Ut})=>{Ut.id===Nt.id&&(this.rpc.receive(Ut),this.worker.removeEventListener("message",jt))};this.worker.postMessage(Nt),this.worker.addEventListener("message",jt)})}connect(){return this.worker.postMessage(this.options.url),new Promise(Dt=>{const Nt=()=>{Dt(),this.worker.removeEventListener("message",Nt)};this.worker.addEventListener("message",Nt)})}async disconnect(){this.worker.terminate()}async call(Dt,Nt){return await this.rpc.request(Dt,Nt)}}var requiresPort=function _e(Pt,Dt){if(Dt=Dt.split(":")[0],Pt=+Pt,!Pt)return!1;switch(Dt){case"http":case"ws":return Pt!==80;case"https":case"wss":return Pt!==443;case"ftp":return Pt!==21;case"gopher":return Pt!==70;case"file":return!1}return Pt!==0},querystringify$1={},has$4=Object.prototype.hasOwnProperty,undef;function decode$3(_e){try{return decodeURIComponent(_e.replace(/\+/g," "))}catch{return null}}function encode$3(_e){try{return encodeURIComponent(_e)}catch{return null}}function querystring$1(_e){for(var Pt=/([^=?#&]+)=?([^&]*)/g,Dt={},Nt;Nt=Pt.exec(_e);){var jt=decode$3(Nt[1]),Ut=decode$3(Nt[2]);jt===null||Ut===null||jt in Dt||(Dt[jt]=Ut)}return Dt}function querystringify(_e,Pt){Pt=Pt||"";var Dt=[],Nt,jt;typeof Pt!="string"&&(Pt="?");for(jt in _e)if(has$4.call(_e,jt)){if(Nt=_e[jt],!Nt&&(Nt===null||Nt===undef||isNaN(Nt))&&(Nt=""),jt=encode$3(jt),Nt=encode$3(Nt),jt===null||Nt===null)continue;Dt.push(jt+"="+Nt)}return Dt.length?Pt+Dt.join("&"):""}querystringify$1.stringify=querystringify;querystringify$1.parse=querystring$1;var required=requiresPort,qs=querystringify$1,controlOrWhitespace=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,CRHTLF=/[\n\r\t]/g,slashes=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,port=/:\d+$/,protocolre=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,windowsDriveLetter=/^[a-zA-Z]:/;function trimLeft(_e){return(_e||"").toString().replace(controlOrWhitespace,"")}var rules=[["#","hash"],["?","query"],function _e(Pt,Dt){return isSpecial(Dt.protocol)?Pt.replace(/\\/g,"/"):Pt},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d*)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],ignore={hash:1,query:1};function lolcation(_e){var Pt;typeof window<"u"?Pt=window:typeof commonjsGlobal<"u"?Pt=commonjsGlobal:typeof self<"u"?Pt=self:Pt={};var Dt=Pt.location||{};_e=_e||Dt;var Nt={},jt=typeof _e,Ut;if(_e.protocol==="blob:")Nt=new Url$1(unescape(_e.pathname),{});else if(jt==="string"){Nt=new Url$1(_e,{});for(Ut in ignore)delete Nt[Ut]}else if(jt==="object"){for(Ut in _e)Ut in ignore||(Nt[Ut]=_e[Ut]);Nt.slashes===void 0&&(Nt.slashes=slashes.test(_e.href))}return Nt}function isSpecial(_e){return _e==="file:"||_e==="ftp:"||_e==="http:"||_e==="https:"||_e==="ws:"||_e==="wss:"}function extractProtocol(_e,Pt){_e=trimLeft(_e),_e=_e.replace(CRHTLF,""),Pt=Pt||{};var Dt=protocolre.exec(_e),Nt=Dt[1]?Dt[1].toLowerCase():"",jt=!!Dt[2],Ut=!!Dt[3],Gt=0,Wt;return jt?Ut?(Wt=Dt[2]+Dt[3]+Dt[4],Gt=Dt[2].length+Dt[3].length):(Wt=Dt[2]+Dt[4],Gt=Dt[2].length):Ut?(Wt=Dt[3]+Dt[4],Gt=Dt[3].length):Wt=Dt[4],Nt==="file:"?Gt>=2&&(Wt=Wt.slice(2)):isSpecial(Nt)?Wt=Dt[4]:Nt?jt&&(Wt=Wt.slice(2)):Gt>=2&&isSpecial(Pt.protocol)&&(Wt=Dt[4]),{protocol:Nt,slashes:jt||isSpecial(Nt),slashesCount:Gt,rest:Wt}}function resolve$1(_e,Pt){if(_e==="")return Pt;for(var Dt=(Pt||"/").split("/").slice(0,-1).concat(_e.split("/")),Nt=Dt.length,jt=Dt[Nt-1],Ut=!1,Gt=0;Nt--;)Dt[Nt]==="."?Dt.splice(Nt,1):Dt[Nt]===".."?(Dt.splice(Nt,1),Gt++):Gt&&(Nt===0&&(Ut=!0),Dt.splice(Nt,1),Gt--);return Ut&&Dt.unshift(""),(jt==="."||jt==="..")&&Dt.push(""),Dt.join("/")}function Url$1(_e,Pt,Dt){if(_e=trimLeft(_e),_e=_e.replace(CRHTLF,""),!(this instanceof Url$1))return new Url$1(_e,Pt,Dt);var Nt,jt,Ut,Gt,Wt,qt,Yt=rules.slice(),Xt=typeof Pt,Kt=this,Qt=0;for(Xt!=="object"&&Xt!=="string"&&(Dt=Pt,Pt=null),Dt&&typeof Dt!="function"&&(Dt=qs.parse),Pt=lolcation(Pt),jt=extractProtocol(_e||"",Pt),Nt=!jt.protocol&&!jt.slashes,Kt.slashes=jt.slashes||Nt&&Pt.slashes,Kt.protocol=jt.protocol||Pt.protocol||"",_e=jt.rest,(jt.protocol==="file:"&&(jt.slashesCount!==2||windowsDriveLetter.test(_e))||!jt.slashes&&(jt.protocol||jt.slashesCount<2||!isSpecial(Kt.protocol)))&&(Yt[3]=[/(.*)/,"pathname"]);Qt{switch(_e){case"about":return{name:"Search Trace",description:"Provides JSON Search Trace Support",version:"1.0.2"};case"features/formats":return[{id:"grid",name:"Grid"},{id:"xy",name:"Network"},{id:"mesh",name:"Mesh"}];case"features/algorithms":return[{id:"identity",name:"Unknown",hidden:!0}];case"solve/pathfinding":{const{parameters:Dt}=Pt;try{return JSON.parse((Dt==null?void 0:Dt.content)??"")}catch{return{}}}}}};class NativeTransport extends EventEmitter$2{constructor(Dt){super();zm(this,"handler");this.options=Dt;const{hostname:Nt}=url$2(Dt.url);this.handler=internal[Nt]}async connect(){}async disconnect(){}async call(Dt,Nt){return await this.handler(Dt,Nt)}}const PACKET_TYPES=Object.create(null);PACKET_TYPES.open="0";PACKET_TYPES.close="1";PACKET_TYPES.ping="2";PACKET_TYPES.pong="3";PACKET_TYPES.message="4";PACKET_TYPES.upgrade="5";PACKET_TYPES.noop="6";const PACKET_TYPES_REVERSE=Object.create(null);Object.keys(PACKET_TYPES).forEach(_e=>{PACKET_TYPES_REVERSE[PACKET_TYPES[_e]]=_e});const ERROR_PACKET={type:"error",data:"parser error"},withNativeBlob$1=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",withNativeArrayBuffer$2=typeof ArrayBuffer=="function",isView$1=_e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(_e):_e&&_e.buffer instanceof ArrayBuffer,encodePacket=({type:_e,data:Pt},Dt,Nt)=>withNativeBlob$1&&Pt instanceof Blob?Dt?Nt(Pt):encodeBlobAsBase64(Pt,Nt):withNativeArrayBuffer$2&&(Pt instanceof ArrayBuffer||isView$1(Pt))?Dt?Nt(Pt):encodeBlobAsBase64(new Blob([Pt]),Nt):Nt(PACKET_TYPES[_e]+(Pt||"")),encodeBlobAsBase64=(_e,Pt)=>{const Dt=new FileReader;return Dt.onload=function(){const Nt=Dt.result.split(",")[1];Pt("b"+(Nt||""))},Dt.readAsDataURL(_e)};function toArray(_e){return _e instanceof Uint8Array?_e:_e instanceof ArrayBuffer?new Uint8Array(_e):new Uint8Array(_e.buffer,_e.byteOffset,_e.byteLength)}let TEXT_ENCODER;function encodePacketToBinary(_e,Pt){if(withNativeBlob$1&&_e.data instanceof Blob)return _e.data.arrayBuffer().then(toArray).then(Pt);if(withNativeArrayBuffer$2&&(_e.data instanceof ArrayBuffer||isView$1(_e.data)))return Pt(toArray(_e.data));encodePacket(_e,!1,Dt=>{TEXT_ENCODER||(TEXT_ENCODER=new TextEncoder),Pt(TEXT_ENCODER.encode(Dt))})}const chars="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",lookup$1=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let _e=0;_e{let Pt=_e.length*.75,Dt=_e.length,Nt,jt=0,Ut,Gt,Wt,qt;_e[_e.length-1]==="="&&(Pt--,_e[_e.length-2]==="="&&Pt--);const Yt=new ArrayBuffer(Pt),Xt=new Uint8Array(Yt);for(Nt=0;Nt>4,Xt[jt++]=(Gt&15)<<4|Wt>>2,Xt[jt++]=(Wt&3)<<6|qt&63;return Yt},withNativeArrayBuffer$1=typeof ArrayBuffer=="function",decodePacket=(_e,Pt)=>{if(typeof _e!="string")return{type:"message",data:mapBinary(_e,Pt)};const Dt=_e.charAt(0);return Dt==="b"?{type:"message",data:decodeBase64Packet(_e.substring(1),Pt)}:PACKET_TYPES_REVERSE[Dt]?_e.length>1?{type:PACKET_TYPES_REVERSE[Dt],data:_e.substring(1)}:{type:PACKET_TYPES_REVERSE[Dt]}:ERROR_PACKET},decodeBase64Packet=(_e,Pt)=>{if(withNativeArrayBuffer$1){const Dt=decode$2(_e);return mapBinary(Dt,Pt)}else return{base64:!0,data:_e}},mapBinary=(_e,Pt)=>{switch(Pt){case"blob":return _e instanceof Blob?_e:new Blob([_e]);case"arraybuffer":default:return _e instanceof ArrayBuffer?_e:_e.buffer}},SEPARATOR=String.fromCharCode(30),encodePayload=(_e,Pt)=>{const Dt=_e.length,Nt=new Array(Dt);let jt=0;_e.forEach((Ut,Gt)=>{encodePacket(Ut,!1,Wt=>{Nt[Gt]=Wt,++jt===Dt&&Pt(Nt.join(SEPARATOR))})})},decodePayload=(_e,Pt)=>{const Dt=_e.split(SEPARATOR),Nt=[];for(let jt=0;jt{const Nt=Dt.length;let jt;if(Nt<126)jt=new Uint8Array(1),new DataView(jt.buffer).setUint8(0,Nt);else if(Nt<65536){jt=new Uint8Array(3);const Ut=new DataView(jt.buffer);Ut.setUint8(0,126),Ut.setUint16(1,Nt)}else{jt=new Uint8Array(9);const Ut=new DataView(jt.buffer);Ut.setUint8(0,127),Ut.setBigUint64(1,BigInt(Nt))}_e.data&&typeof _e.data!="string"&&(jt[0]|=128),Pt.enqueue(jt),Pt.enqueue(Dt)})}})}let TEXT_DECODER;function totalLength(_e){return _e.reduce((Pt,Dt)=>Pt+Dt.length,0)}function concatChunks(_e,Pt){if(_e[0].length===Pt)return _e.shift();const Dt=new Uint8Array(Pt);let Nt=0;for(let jt=0;jtMath.pow(2,53-32)-1){Wt.enqueue(ERROR_PACKET);break}jt=Xt*Math.pow(2,32)+Yt.getUint32(4),Nt=3}else{if(totalLength(Dt)_e){Wt.enqueue(ERROR_PACKET);break}}}})}const protocol$1=4;function Emitter(_e){if(_e)return mixin(_e)}function mixin(_e){for(var Pt in Emitter.prototype)_e[Pt]=Emitter.prototype[Pt];return _e}Emitter.prototype.on=Emitter.prototype.addEventListener=function(_e,Pt){return this._callbacks=this._callbacks||{},(this._callbacks["$"+_e]=this._callbacks["$"+_e]||[]).push(Pt),this};Emitter.prototype.once=function(_e,Pt){function Dt(){this.off(_e,Dt),Pt.apply(this,arguments)}return Dt.fn=Pt,this.on(_e,Dt),this};Emitter.prototype.off=Emitter.prototype.removeListener=Emitter.prototype.removeAllListeners=Emitter.prototype.removeEventListener=function(_e,Pt){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var Dt=this._callbacks["$"+_e];if(!Dt)return this;if(arguments.length==1)return delete this._callbacks["$"+_e],this;for(var Nt,jt=0;jttypeof self<"u"?self:typeof window<"u"?window:Function("return this")())();function pick(_e,...Pt){return Pt.reduce((Dt,Nt)=>(_e.hasOwnProperty(Nt)&&(Dt[Nt]=_e[Nt]),Dt),{})}const NATIVE_SET_TIMEOUT=globalThisShim.setTimeout,NATIVE_CLEAR_TIMEOUT=globalThisShim.clearTimeout;function installTimerFunctions(_e,Pt){Pt.useNativeTimers?(_e.setTimeoutFn=NATIVE_SET_TIMEOUT.bind(globalThisShim),_e.clearTimeoutFn=NATIVE_CLEAR_TIMEOUT.bind(globalThisShim)):(_e.setTimeoutFn=globalThisShim.setTimeout.bind(globalThisShim),_e.clearTimeoutFn=globalThisShim.clearTimeout.bind(globalThisShim))}const BASE64_OVERHEAD=1.33;function byteLength(_e){return typeof _e=="string"?utf8Length(_e):Math.ceil((_e.byteLength||_e.size)*BASE64_OVERHEAD)}function utf8Length(_e){let Pt=0,Dt=0;for(let Nt=0,jt=_e.length;Nt=57344?Dt+=3:(Nt++,Dt+=4);return Dt}function encode$2(_e){let Pt="";for(let Dt in _e)_e.hasOwnProperty(Dt)&&(Pt.length&&(Pt+="&"),Pt+=encodeURIComponent(Dt)+"="+encodeURIComponent(_e[Dt]));return Pt}function decode$1(_e){let Pt={},Dt=_e.split("&");for(let Nt=0,jt=Dt.length;Nt0);return Pt}function yeast(){const _e=encode$1(+new Date);return _e!==prev?(seed=0,prev=_e):_e+"."+encode$1(seed++)}for(;i$3{this.readyState="paused",Pt()};if(this.polling||!this.writable){let Nt=0;this.polling&&(Nt++,this.once("pollComplete",function(){--Nt||Dt()})),this.writable||(Nt++,this.once("drain",function(){--Nt||Dt()}))}else Dt()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(Pt){const Dt=Nt=>{if(this.readyState==="opening"&&Nt.type==="open"&&this.onOpen(),Nt.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(Nt)};decodePayload(Pt,this.socket.binaryType).forEach(Dt),this.readyState!=="closed"&&(this.polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this.poll())}doClose(){const Pt=()=>{this.write([{type:"close"}])};this.readyState==="open"?Pt():this.once("open",Pt)}write(Pt){this.writable=!1,encodePayload(Pt,Dt=>{this.doWrite(Dt,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const Pt=this.opts.secure?"https":"http",Dt=this.query||{};return this.opts.timestampRequests!==!1&&(Dt[this.opts.timestampParam]=yeast()),!this.supportsBinary&&!Dt.sid&&(Dt.b64=1),this.createUri(Pt,Dt)}request(Pt={}){return Object.assign(Pt,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new Request(this.uri(),Pt)}doWrite(Pt,Dt){const Nt=this.request({method:"POST",data:Pt});Nt.on("success",Dt),Nt.on("error",(jt,Ut)=>{this.onError("xhr post error",jt,Ut)})}doPoll(){const Pt=this.request();Pt.on("data",this.onData.bind(this)),Pt.on("error",(Dt,Nt)=>{this.onError("xhr poll error",Dt,Nt)}),this.pollXhr=Pt}}class Request extends Emitter{constructor(Pt,Dt){super(),installTimerFunctions(this,Dt),this.opts=Dt,this.method=Dt.method||"GET",this.uri=Pt,this.data=Dt.data!==void 0?Dt.data:null,this.create()}create(){var Pt;const Dt=pick(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");Dt.xdomain=!!this.opts.xd;const Nt=this.xhr=new XHR(Dt);try{Nt.open(this.method,this.uri,!0);try{if(this.opts.extraHeaders){Nt.setDisableHeaderCheck&&Nt.setDisableHeaderCheck(!0);for(let jt in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(jt)&&Nt.setRequestHeader(jt,this.opts.extraHeaders[jt])}}catch{}if(this.method==="POST")try{Nt.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{Nt.setRequestHeader("Accept","*/*")}catch{}(Pt=this.opts.cookieJar)===null||Pt===void 0||Pt.addCookies(Nt),"withCredentials"in Nt&&(Nt.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(Nt.timeout=this.opts.requestTimeout),Nt.onreadystatechange=()=>{var jt;Nt.readyState===3&&((jt=this.opts.cookieJar)===null||jt===void 0||jt.parseCookies(Nt)),Nt.readyState===4&&(Nt.status===200||Nt.status===1223?this.onLoad():this.setTimeoutFn(()=>{this.onError(typeof Nt.status=="number"?Nt.status:0)},0))},Nt.send(this.data)}catch(jt){this.setTimeoutFn(()=>{this.onError(jt)},0);return}typeof document<"u"&&(this.index=Request.requestsCount++,Request.requests[this.index]=this)}onError(Pt){this.emitReserved("error",Pt,this.xhr),this.cleanup(!0)}cleanup(Pt){if(!(typeof this.xhr>"u"||this.xhr===null)){if(this.xhr.onreadystatechange=empty$1,Pt)try{this.xhr.abort()}catch{}typeof document<"u"&&delete Request.requests[this.index],this.xhr=null}}onLoad(){const Pt=this.xhr.responseText;Pt!==null&&(this.emitReserved("data",Pt),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}Request.requestsCount=0;Request.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",unloadHandler);else if(typeof addEventListener=="function"){const _e="onpagehide"in globalThisShim?"pagehide":"unload";addEventListener(_e,unloadHandler,!1)}}function unloadHandler(){for(let _e in Request.requests)Request.requests.hasOwnProperty(_e)&&Request.requests[_e].abort()}const nextTick=(()=>typeof Promise=="function"&&typeof Promise.resolve=="function"?Pt=>Promise.resolve().then(Pt):(Pt,Dt)=>Dt(Pt,0))(),WebSocket=globalThisShim.WebSocket||globalThisShim.MozWebSocket,usingBrowserWebSocket=!0,defaultBinaryType="arraybuffer",isReactNative=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class WS extends Transport{constructor(Pt){super(Pt),this.supportsBinary=!Pt.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const Pt=this.uri(),Dt=this.opts.protocols,Nt=isReactNative?{}:pick(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(Nt.headers=this.opts.extraHeaders);try{this.ws=usingBrowserWebSocket&&!isReactNative?Dt?new WebSocket(Pt,Dt):new WebSocket(Pt):new WebSocket(Pt,Dt,Nt)}catch(jt){return this.emitReserved("error",jt)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=Pt=>this.onClose({description:"websocket connection closed",context:Pt}),this.ws.onmessage=Pt=>this.onData(Pt.data),this.ws.onerror=Pt=>this.onError("websocket error",Pt)}write(Pt){this.writable=!1;for(let Dt=0;Dt{const Gt={};try{usingBrowserWebSocket&&this.ws.send(Ut)}catch{}jt&&nextTick(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.close(),this.ws=null)}uri(){const Pt=this.opts.secure?"wss":"ws",Dt=this.query||{};return this.opts.timestampRequests&&(Dt[this.opts.timestampParam]=yeast()),this.supportsBinary||(Dt.b64=1),this.createUri(Pt,Dt)}check(){return!!WebSocket}}class WT extends Transport{get name(){return"webtransport"}doOpen(){typeof WebTransport=="function"&&(this.transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name]),this.transport.closed.then(()=>{this.onClose()}).catch(Pt=>{this.onError("webtransport error",Pt)}),this.transport.ready.then(()=>{this.transport.createBidirectionalStream().then(Pt=>{const Dt=createPacketDecoderStream(Number.MAX_SAFE_INTEGER,this.socket.binaryType),Nt=Pt.readable.pipeThrough(Dt).getReader(),jt=createPacketEncoderStream();jt.readable.pipeTo(Pt.writable),this.writer=jt.writable.getWriter();const Ut=()=>{Nt.read().then(({done:Wt,value:qt})=>{Wt||(this.onPacket(qt),Ut())}).catch(Wt=>{})};Ut();const Gt={type:"open"};this.query.sid&&(Gt.data=`{"sid":"${this.query.sid}"}`),this.writer.write(Gt).then(()=>this.onOpen())})}))}write(Pt){this.writable=!1;for(let Dt=0;Dt{jt&&nextTick(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var Pt;(Pt=this.transport)===null||Pt===void 0||Pt.close()}}const transports$2={websocket:WS,webtransport:WT,polling:Polling},re=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,parts=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function parse$3(_e){if(_e.length>2e3)throw"URI too long";const Pt=_e,Dt=_e.indexOf("["),Nt=_e.indexOf("]");Dt!=-1&&Nt!=-1&&(_e=_e.substring(0,Dt)+_e.substring(Dt,Nt).replace(/:/g,";")+_e.substring(Nt,_e.length));let jt=re.exec(_e||""),Ut={},Gt=14;for(;Gt--;)Ut[parts[Gt]]=jt[Gt]||"";return Dt!=-1&&Nt!=-1&&(Ut.source=Pt,Ut.host=Ut.host.substring(1,Ut.host.length-1).replace(/;/g,":"),Ut.authority=Ut.authority.replace("[","").replace("]","").replace(/;/g,":"),Ut.ipv6uri=!0),Ut.pathNames=pathNames(Ut,Ut.path),Ut.queryKey=queryKey(Ut,Ut.query),Ut}function pathNames(_e,Pt){const Dt=/\/{2,9}/g,Nt=Pt.replace(Dt,"/").split("/");return(Pt.slice(0,1)=="/"||Pt.length===0)&&Nt.splice(0,1),Pt.slice(-1)=="/"&&Nt.splice(Nt.length-1,1),Nt}function queryKey(_e,Pt){const Dt={};return Pt.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(Nt,jt,Ut){jt&&(Dt[jt]=Ut)}),Dt}let Socket$1=class Gm extends Emitter{constructor(Pt,Dt={}){super(),this.binaryType=defaultBinaryType,this.writeBuffer=[],Pt&&typeof Pt=="object"&&(Dt=Pt,Pt=null),Pt?(Pt=parse$3(Pt),Dt.hostname=Pt.host,Dt.secure=Pt.protocol==="https"||Pt.protocol==="wss",Dt.port=Pt.port,Pt.query&&(Dt.query=Pt.query)):Dt.host&&(Dt.hostname=parse$3(Dt.host).host),installTimerFunctions(this,Dt),this.secure=Dt.secure!=null?Dt.secure:typeof location<"u"&&location.protocol==="https:",Dt.hostname&&!Dt.port&&(Dt.port=this.secure?"443":"80"),this.hostname=Dt.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=Dt.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=Dt.transports||["polling","websocket","webtransport"],this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},Dt),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=decode$1(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,typeof addEventListener=="function"&&(this.opts.closeOnBeforeunload&&(this.beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(Pt){const Dt=Object.assign({},this.opts.query);Dt.EIO=protocol$1,Dt.transport=Pt,this.id&&(Dt.sid=this.id);const Nt=Object.assign({},this.opts,{query:Dt,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[Pt]);return new transports$2[Pt](Nt)}open(){let Pt;if(this.opts.rememberUpgrade&&Gm.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)Pt="websocket";else if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}else Pt=this.transports[0];this.readyState="opening";try{Pt=this.createTransport(Pt)}catch{this.transports.shift(),this.open();return}Pt.open(),this.setTransport(Pt)}setTransport(Pt){this.transport&&this.transport.removeAllListeners(),this.transport=Pt,Pt.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",Dt=>this.onClose("transport close",Dt))}probe(Pt){let Dt=this.createTransport(Pt),Nt=!1;Gm.priorWebsocketSuccess=!1;const jt=()=>{Nt||(Dt.send([{type:"ping",data:"probe"}]),Dt.once("packet",Kt=>{if(!Nt)if(Kt.type==="pong"&&Kt.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",Dt),!Dt)return;Gm.priorWebsocketSuccess=Dt.name==="websocket",this.transport.pause(()=>{Nt||this.readyState!=="closed"&&(Xt(),this.setTransport(Dt),Dt.send([{type:"upgrade"}]),this.emitReserved("upgrade",Dt),Dt=null,this.upgrading=!1,this.flush())})}else{const Qt=new Error("probe error");Qt.transport=Dt.name,this.emitReserved("upgradeError",Qt)}}))};function Ut(){Nt||(Nt=!0,Xt(),Dt.close(),Dt=null)}const Gt=Kt=>{const Qt=new Error("probe error: "+Kt);Qt.transport=Dt.name,Ut(),this.emitReserved("upgradeError",Qt)};function Wt(){Gt("transport closed")}function qt(){Gt("socket closed")}function Yt(Kt){Dt&&Kt.name!==Dt.name&&Ut()}const Xt=()=>{Dt.removeListener("open",jt),Dt.removeListener("error",Gt),Dt.removeListener("close",Wt),this.off("close",qt),this.off("upgrading",Yt)};Dt.once("open",jt),Dt.once("error",Gt),Dt.once("close",Wt),this.once("close",qt),this.once("upgrading",Yt),this.upgrades.indexOf("webtransport")!==-1&&Pt!=="webtransport"?this.setTimeoutFn(()=>{Nt||Dt.open()},200):Dt.open()}onOpen(){if(this.readyState="open",Gm.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush(),this.readyState==="open"&&this.opts.upgrade){let Pt=0;const Dt=this.upgrades.length;for(;Pt{this.onClose("ping timeout")},this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const Pt=this.getWritablePackets();this.transport.send(Pt),this.prevBufferLen=Pt.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let Dt=1;for(let Nt=0;Nt0&&Dt>this.maxPayload)return this.writeBuffer.slice(0,Nt);Dt+=2}return this.writeBuffer}write(Pt,Dt,Nt){return this.sendPacket("message",Pt,Dt,Nt),this}send(Pt,Dt,Nt){return this.sendPacket("message",Pt,Dt,Nt),this}sendPacket(Pt,Dt,Nt,jt){if(typeof Dt=="function"&&(jt=Dt,Dt=void 0),typeof Nt=="function"&&(jt=Nt,Nt=null),this.readyState==="closing"||this.readyState==="closed")return;Nt=Nt||{},Nt.compress=Nt.compress!==!1;const Ut={type:Pt,data:Dt,options:Nt};this.emitReserved("packetCreate",Ut),this.writeBuffer.push(Ut),jt&&this.once("flush",jt),this.flush()}close(){const Pt=()=>{this.onClose("forced close"),this.transport.close()},Dt=()=>{this.off("upgrade",Dt),this.off("upgradeError",Dt),Pt()},Nt=()=>{this.once("upgrade",Dt),this.once("upgradeError",Dt)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?Nt():Pt()}):this.upgrading?Nt():Pt()),this}onError(Pt){Gm.priorWebsocketSuccess=!1,this.emitReserved("error",Pt),this.onClose("transport error",Pt)}onClose(Pt,Dt){(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")&&(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),typeof removeEventListener=="function"&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",Pt,Dt),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(Pt){const Dt=[];let Nt=0;const jt=Pt.length;for(;Nttypeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(_e):_e.buffer instanceof ArrayBuffer,toString=Object.prototype.toString,withNativeBlob=typeof Blob=="function"||typeof Blob<"u"&&toString.call(Blob)==="[object BlobConstructor]",withNativeFile=typeof File=="function"||typeof File<"u"&&toString.call(File)==="[object FileConstructor]";function isBinary(_e){return withNativeArrayBuffer&&(_e instanceof ArrayBuffer||isView(_e))||withNativeBlob&&_e instanceof Blob||withNativeFile&&_e instanceof File}function hasBinary(_e,Pt){if(!_e||typeof _e!="object")return!1;if(Array.isArray(_e)){for(let Dt=0,Nt=_e.length;Dt=0&&_e.num{delete this.acks[Pt];for(let Gt=0;Gt{this.io.clearTimeoutFn(Ut),Dt.apply(this,[null,...Gt])}}emitWithAck(Pt,...Dt){const Nt=this.flags.timeout!==void 0||this._opts.ackTimeout!==void 0;return new Promise((jt,Ut)=>{Dt.push((Gt,Wt)=>Nt?Gt?Ut(Gt):jt(Wt):jt(Gt)),this.emit(Pt,...Dt)})}_addToQueue(Pt){let Dt;typeof Pt[Pt.length-1]=="function"&&(Dt=Pt.pop());const Nt={id:this._queueSeq++,tryCount:0,pending:!1,args:Pt,flags:Object.assign({fromQueue:!0},this.flags)};Pt.push((jt,...Ut)=>Nt!==this._queue[0]?void 0:(jt!==null?Nt.tryCount>this._opts.retries&&(this._queue.shift(),Dt&&Dt(jt)):(this._queue.shift(),Dt&&Dt(null,...Ut)),Nt.pending=!1,this._drainQueue())),this._queue.push(Nt),this._drainQueue()}_drainQueue(Pt=!1){if(!this.connected||this._queue.length===0)return;const Dt=this._queue[0];Dt.pending&&!Pt||(Dt.pending=!0,Dt.tryCount++,this.flags=Dt.flags,this.emit.apply(this,Dt.args))}packet(Pt){Pt.nsp=this.nsp,this.io._packet(Pt)}onopen(){typeof this.auth=="function"?this.auth(Pt=>{this._sendConnectPacket(Pt)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(Pt){this.packet({type:PacketType.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},Pt):Pt})}onerror(Pt){this.connected||this.emitReserved("connect_error",Pt)}onclose(Pt,Dt){this.connected=!1,delete this.id,this.emitReserved("disconnect",Pt,Dt)}onpacket(Pt){if(Pt.nsp===this.nsp)switch(Pt.type){case PacketType.CONNECT:Pt.data&&Pt.data.sid?this.onconnect(Pt.data.sid,Pt.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case PacketType.EVENT:case PacketType.BINARY_EVENT:this.onevent(Pt);break;case PacketType.ACK:case PacketType.BINARY_ACK:this.onack(Pt);break;case PacketType.DISCONNECT:this.ondisconnect();break;case PacketType.CONNECT_ERROR:this.destroy();const Nt=new Error(Pt.data.message);Nt.data=Pt.data.data,this.emitReserved("connect_error",Nt);break}}onevent(Pt){const Dt=Pt.data||[];Pt.id!=null&&Dt.push(this.ack(Pt.id)),this.connected?this.emitEvent(Dt):this.receiveBuffer.push(Object.freeze(Dt))}emitEvent(Pt){if(this._anyListeners&&this._anyListeners.length){const Dt=this._anyListeners.slice();for(const Nt of Dt)Nt.apply(this,Pt)}super.emit.apply(this,Pt),this._pid&&Pt.length&&typeof Pt[Pt.length-1]=="string"&&(this._lastOffset=Pt[Pt.length-1])}ack(Pt){const Dt=this;let Nt=!1;return function(...jt){Nt||(Nt=!0,Dt.packet({type:PacketType.ACK,id:Pt,data:jt}))}}onack(Pt){const Dt=this.acks[Pt.id];typeof Dt=="function"&&(Dt.apply(this,Pt.data),delete this.acks[Pt.id])}onconnect(Pt,Dt){this.id=Pt,this.recovered=Dt&&this._pid===Dt,this._pid=Dt,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(Pt=>this.emitEvent(Pt)),this.receiveBuffer=[],this.sendBuffer.forEach(Pt=>{this.notifyOutgoingListeners(Pt),this.packet(Pt)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(Pt=>Pt()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:PacketType.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(Pt){return this.flags.compress=Pt,this}get volatile(){return this.flags.volatile=!0,this}timeout(Pt){return this.flags.timeout=Pt,this}onAny(Pt){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(Pt),this}prependAny(Pt){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(Pt),this}offAny(Pt){if(!this._anyListeners)return this;if(Pt){const Dt=this._anyListeners;for(let Nt=0;Nt0&&_e.jitter<=1?_e.jitter:0,this.attempts=0}Backoff.prototype.duration=function(){var _e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var Pt=Math.random(),Dt=Math.floor(Pt*this.jitter*_e);_e=Math.floor(Pt*10)&1?_e+Dt:_e-Dt}return Math.min(_e,this.max)|0};Backoff.prototype.reset=function(){this.attempts=0};Backoff.prototype.setMin=function(_e){this.ms=_e};Backoff.prototype.setMax=function(_e){this.max=_e};Backoff.prototype.setJitter=function(_e){this.jitter=_e};class Manager extends Emitter{constructor(Pt,Dt){var Nt;super(),this.nsps={},this.subs=[],Pt&&typeof Pt=="object"&&(Dt=Pt,Pt=void 0),Dt=Dt||{},Dt.path=Dt.path||"/socket.io",this.opts=Dt,installTimerFunctions(this,Dt),this.reconnection(Dt.reconnection!==!1),this.reconnectionAttempts(Dt.reconnectionAttempts||1/0),this.reconnectionDelay(Dt.reconnectionDelay||1e3),this.reconnectionDelayMax(Dt.reconnectionDelayMax||5e3),this.randomizationFactor((Nt=Dt.randomizationFactor)!==null&&Nt!==void 0?Nt:.5),this.backoff=new Backoff({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(Dt.timeout==null?2e4:Dt.timeout),this._readyState="closed",this.uri=Pt;const jt=Dt.parser||parser;this.encoder=new jt.Encoder,this.decoder=new jt.Decoder,this._autoConnect=Dt.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(Pt){return arguments.length?(this._reconnection=!!Pt,this):this._reconnection}reconnectionAttempts(Pt){return Pt===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=Pt,this)}reconnectionDelay(Pt){var Dt;return Pt===void 0?this._reconnectionDelay:(this._reconnectionDelay=Pt,(Dt=this.backoff)===null||Dt===void 0||Dt.setMin(Pt),this)}randomizationFactor(Pt){var Dt;return Pt===void 0?this._randomizationFactor:(this._randomizationFactor=Pt,(Dt=this.backoff)===null||Dt===void 0||Dt.setJitter(Pt),this)}reconnectionDelayMax(Pt){var Dt;return Pt===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=Pt,(Dt=this.backoff)===null||Dt===void 0||Dt.setMax(Pt),this)}timeout(Pt){return arguments.length?(this._timeout=Pt,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(Pt){if(~this._readyState.indexOf("open"))return this;this.engine=new Socket$1(this.uri,this.opts);const Dt=this.engine,Nt=this;this._readyState="opening",this.skipReconnect=!1;const jt=on(Dt,"open",function(){Nt.onopen(),Pt&&Pt()}),Ut=Wt=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",Wt),Pt?Pt(Wt):this.maybeReconnectOnOpen()},Gt=on(Dt,"error",Ut);if(this._timeout!==!1){const Wt=this._timeout,qt=this.setTimeoutFn(()=>{jt(),Ut(new Error("timeout")),Dt.close()},Wt);this.opts.autoUnref&&qt.unref(),this.subs.push(()=>{this.clearTimeoutFn(qt)})}return this.subs.push(jt),this.subs.push(Gt),this}connect(Pt){return this.open(Pt)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const Pt=this.engine;this.subs.push(on(Pt,"ping",this.onping.bind(this)),on(Pt,"data",this.ondata.bind(this)),on(Pt,"error",this.onerror.bind(this)),on(Pt,"close",this.onclose.bind(this)),on(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(Pt){try{this.decoder.add(Pt)}catch(Dt){this.onclose("parse error",Dt)}}ondecoded(Pt){nextTick(()=>{this.emitReserved("packet",Pt)},this.setTimeoutFn)}onerror(Pt){this.emitReserved("error",Pt)}socket(Pt,Dt){let Nt=this.nsps[Pt];return Nt?this._autoConnect&&!Nt.active&&Nt.connect():(Nt=new Socket(this,Pt,Dt),this.nsps[Pt]=Nt),Nt}_destroy(Pt){const Dt=Object.keys(this.nsps);for(const Nt of Dt)if(this.nsps[Nt].active)return;this._close()}_packet(Pt){const Dt=this.encoder.encode(Pt);for(let Nt=0;NtPt()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(Pt,Dt){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",Pt,Dt),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const Pt=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const Dt=this.backoff.duration();this._reconnecting=!0;const Nt=this.setTimeoutFn(()=>{Pt.skipReconnect||(this.emitReserved("reconnect_attempt",Pt.backoff.attempts),!Pt.skipReconnect&&Pt.open(jt=>{jt?(Pt._reconnecting=!1,Pt.reconnect(),this.emitReserved("reconnect_error",jt)):Pt.onreconnect()}))},Dt);this.opts.autoUnref&&Nt.unref(),this.subs.push(()=>{this.clearTimeoutFn(Nt)})}}onreconnect(){const Pt=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",Pt)}}const cache={};function lookup(_e,Pt){typeof _e=="object"&&(Pt=_e,_e=void 0),Pt=Pt||{};const Dt=url$1(_e,Pt.path||"/socket.io"),Nt=Dt.source,jt=Dt.id,Ut=Dt.path,Gt=cache[jt]&&Ut in cache[jt].nsps,Wt=Pt.forceNew||Pt["force new connection"]||Pt.multiplex===!1||Gt;let qt;return Wt?qt=new Manager(Nt,Pt):(cache[jt]||(cache[jt]=new Manager(Nt,Pt)),qt=cache[jt]),Dt.query&&!Pt.query&&(Pt.query=Dt.queryKey),qt.socket(Dt.path,Pt)}Object.assign(lookup,{Manager,Socket,io:lookup,connect:lookup});class SocketIOTransport extends EventEmitter$2{constructor(Dt){super();zm(this,"client");zm(this,"socket");this.options=Dt,this.socket=lookup(Dt.url),this.client=new dist$2.JSONRPCClient(async Nt=>{const jt=Ut=>{Ut.id===Nt.id&&(this.socket.off("response",jt),this.client.receive(Ut))};this.socket.emit("request",Nt),this.socket.on("response",jt)}),this.socket.on("request",({method:Nt,params:jt})=>{this.emit(Nt,jt)})}async connect(){this.socket.connect()}async disconnect(){this.socket.disconnect()}async call(Dt,Nt){return await this.client.request(Dt,Nt)}}const transports$1={socketio:{name:"socket.io",constructor:SocketIOTransport},ipc:{name:"Web Worker",constructor:IPCTransport},native:{name:"Internal",constructor:NativeTransport}};function getTransport(_e){return transports$1[_e].constructor}const defaultTransport=lodashExports$1.first(lodashExports$1.keys(transports$1));var lodash={exports:{}};/** * @license * Lodash * Copyright OpenJS Foundation and other contributors diff --git a/assets/palette-reference-6e0ab59b.workspace b/assets/palette-reference-6e0ab59b.workspace new file mode 100644 index 00000000..cc884aa1 Binary files /dev/null and b/assets/palette-reference-6e0ab59b.workspace differ diff --git a/assets/palette-reference-9c0fac30.js b/assets/palette-reference-9c0fac30.js new file mode 100644 index 00000000..431fe0df --- /dev/null +++ b/assets/palette-reference-9c0fac30.js @@ -0,0 +1 @@ +const e=""+new URL("palette-reference-6e0ab59b.workspace",import.meta.url).href;export{e as default}; diff --git a/assets/palette-reference.workspace-9d5bc3e5.meta b/assets/palette-reference.workspace-9d5bc3e5.meta new file mode 100644 index 00000000..23502153 --- /dev/null +++ b/assets/palette-reference.workspace-9d5bc3e5.meta @@ -0,0 +1 @@ +{"id":"3oOL50lY7VAJxrEHdOGF2","name":"Palette Reference","description":"Quick demo of available color tokens.","author":"github:path-visualiser","screenshots":["data:image/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ZNu+KaN4pF3KHXcjhWXcrKy5AypBHBBr8WPFIqACgAoAKAP//Z"],"size":141884,"lastModified":1714555025787} \ No newline at end of file diff --git a/assets/palette-reference.workspace-bd4901e3.js b/assets/palette-reference.workspace-bd4901e3.js new file mode 100644 index 00000000..ceea46a7 --- /dev/null +++ b/assets/palette-reference.workspace-bd4901e3.js @@ -0,0 +1 @@ +const e=""+new URL("palette-reference.workspace-9d5bc3e5.meta",import.meta.url).href;export{e as default}; diff --git a/assets/parseTrace.worker-0e08b94d.js b/assets/parseTrace.worker-0e08b94d.js new file mode 100644 index 00000000..93b1f399 --- /dev/null +++ b/assets/parseTrace.worker-0e08b94d.js @@ -0,0 +1,27 @@ +(function(){"use strict";var Ke=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},vt={exports:{}};/** + * @license + * Lodash + * Copyright OpenJS Foundation and other contributors + * Released under MIT license + * Based on Underscore.js 1.8.3 + * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors + */vt.exports,function(h,w){(function(){var f,L="4.17.21",O=200,P="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",R="Expected a function",Q="Invalid `variable` option passed into `_.template`",Y="__lodash_hash_undefined__",H=500,D="__lodash_placeholder__",V=1,q=2,z=4,an=1,un=2,C=1,_n=2,W=4,A=8,$=16,X=32,k=64,en=128,cn=256,Br=512,Ls=30,Ps="...",Ws=800,Fs=16,qu=1,Ms=2,Bs=3,we=1/0,ae=9007199254740991,Us=17976931348623157e292,mt=0/0,Xn=4294967295,Ds=Xn-1,qs=Xn>>>1,$s=[["ary",en],["bind",C],["bindKey",_n],["curry",A],["curryRight",$],["flip",Br],["partial",X],["partialRight",k],["rearg",cn]],Ee="[object Arguments]",xt="[object Array]",Ns="[object AsyncFunction]",Xe="[object Boolean]",Je="[object Date]",Gs="[object DOMException]",yt="[object Error]",At="[object Function]",$u="[object GeneratorFunction]",Gn="[object Map]",Qe="[object Number]",Hs="[object Null]",kn="[object Object]",Nu="[object Promise]",zs="[object Proxy]",Ve="[object RegExp]",Hn="[object Set]",ke="[object String]",St="[object Symbol]",Ks="[object Undefined]",je="[object WeakMap]",Zs="[object WeakSet]",nt="[object ArrayBuffer]",Ce="[object DataView]",Ur="[object Float32Array]",Dr="[object Float64Array]",qr="[object Int8Array]",$r="[object Int16Array]",Nr="[object Int32Array]",Gr="[object Uint8Array]",Hr="[object Uint8ClampedArray]",zr="[object Uint16Array]",Kr="[object Uint32Array]",Ys=/\b__p \+= '';/g,Xs=/\b(__p \+=) '' \+/g,Js=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Gu=/&(?:amp|lt|gt|quot|#39);/g,Hu=/[&<>"']/g,Qs=RegExp(Gu.source),Vs=RegExp(Hu.source),ks=/<%-([\s\S]+?)%>/g,js=/<%([\s\S]+?)%>/g,zu=/<%=([\s\S]+?)%>/g,nl=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,el=/^\w*$/,tl=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Zr=/[\\^$.*+?()[\]{}|]/g,rl=RegExp(Zr.source),Yr=/^\s+/,il=/\s/,ul=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,fl=/\{\n\/\* \[wrapped with (.+)\] \*/,ol=/,? & /,al=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,sl=/[()=,{}\[\]\/\s]/,ll=/\\(\\)?/g,cl=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ku=/\w*$/,hl=/^[-+]0x[0-9a-f]+$/i,gl=/^0b[01]+$/i,pl=/^\[object .+?Constructor\]$/,_l=/^0o[0-7]+$/i,vl=/^(?:0|[1-9]\d*)$/,dl=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,bt=/($^)/,wl=/['\n\r\u2028\u2029\\]/g,It="\\ud800-\\udfff",ml="\\u0300-\\u036f",xl="\\ufe20-\\ufe2f",yl="\\u20d0-\\u20ff",Zu=ml+xl+yl,Yu="\\u2700-\\u27bf",Xu="a-z\\xdf-\\xf6\\xf8-\\xff",Al="\\xac\\xb1\\xd7\\xf7",Sl="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",bl="\\u2000-\\u206f",Il=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Ju="A-Z\\xc0-\\xd6\\xd8-\\xde",Qu="\\ufe0e\\ufe0f",Vu=Al+Sl+bl+Il,Xr="['’]",Rl="["+It+"]",ku="["+Vu+"]",Rt="["+Zu+"]",ju="\\d+",Tl="["+Yu+"]",nf="["+Xu+"]",ef="[^"+It+Vu+ju+Yu+Xu+Ju+"]",Jr="\\ud83c[\\udffb-\\udfff]",Ol="(?:"+Rt+"|"+Jr+")",tf="[^"+It+"]",Qr="(?:\\ud83c[\\udde6-\\uddff]){2}",Vr="[\\ud800-\\udbff][\\udc00-\\udfff]",Le="["+Ju+"]",rf="\\u200d",uf="(?:"+nf+"|"+ef+")",El="(?:"+Le+"|"+ef+")",ff="(?:"+Xr+"(?:d|ll|m|re|s|t|ve))?",of="(?:"+Xr+"(?:D|LL|M|RE|S|T|VE))?",af=Ol+"?",sf="["+Qu+"]?",Cl="(?:"+rf+"(?:"+[tf,Qr,Vr].join("|")+")"+sf+af+")*",Ll="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Pl="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",lf=sf+af+Cl,Wl="(?:"+[Tl,Qr,Vr].join("|")+")"+lf,Fl="(?:"+[tf+Rt+"?",Rt,Qr,Vr,Rl].join("|")+")",Ml=RegExp(Xr,"g"),Bl=RegExp(Rt,"g"),kr=RegExp(Jr+"(?="+Jr+")|"+Fl+lf,"g"),Ul=RegExp([Le+"?"+nf+"+"+ff+"(?="+[ku,Le,"$"].join("|")+")",El+"+"+of+"(?="+[ku,Le+uf,"$"].join("|")+")",Le+"?"+uf+"+"+ff,Le+"+"+of,Pl,Ll,ju,Wl].join("|"),"g"),Dl=RegExp("["+rf+It+Zu+Qu+"]"),ql=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,$l=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Nl=-1,tn={};tn[Ur]=tn[Dr]=tn[qr]=tn[$r]=tn[Nr]=tn[Gr]=tn[Hr]=tn[zr]=tn[Kr]=!0,tn[Ee]=tn[xt]=tn[nt]=tn[Xe]=tn[Ce]=tn[Je]=tn[yt]=tn[At]=tn[Gn]=tn[Qe]=tn[kn]=tn[Ve]=tn[Hn]=tn[ke]=tn[je]=!1;var nn={};nn[Ee]=nn[xt]=nn[nt]=nn[Ce]=nn[Xe]=nn[Je]=nn[Ur]=nn[Dr]=nn[qr]=nn[$r]=nn[Nr]=nn[Gn]=nn[Qe]=nn[kn]=nn[Ve]=nn[Hn]=nn[ke]=nn[St]=nn[Gr]=nn[Hr]=nn[zr]=nn[Kr]=!0,nn[yt]=nn[At]=nn[je]=!1;var Gl={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"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:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Hl={"&":"&","<":"<",">":">",'"':""","'":"'"},zl={"&":"&","<":"<",">":">",""":'"',"'":"'"},Kl={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Zl=parseFloat,Yl=parseInt,cf=typeof Ke=="object"&&Ke&&Ke.Object===Object&&Ke,Xl=typeof self=="object"&&self&&self.Object===Object&&self,vn=cf||Xl||Function("return this")(),jr=w&&!w.nodeType&&w,me=jr&&!0&&h&&!h.nodeType&&h,hf=me&&me.exports===jr,ni=hf&&cf.process,Wn=function(){try{var l=me&&me.require&&me.require("util").types;return l||ni&&ni.binding&&ni.binding("util")}catch{}}(),gf=Wn&&Wn.isArrayBuffer,pf=Wn&&Wn.isDate,_f=Wn&&Wn.isMap,vf=Wn&&Wn.isRegExp,df=Wn&&Wn.isSet,wf=Wn&&Wn.isTypedArray;function Tn(l,p,g){switch(g.length){case 0:return l.call(p);case 1:return l.call(p,g[0]);case 2:return l.call(p,g[0],g[1]);case 3:return l.call(p,g[0],g[1],g[2])}return l.apply(p,g)}function Jl(l,p,g,x){for(var T=-1,K=l==null?0:l.length;++T-1}function ei(l,p,g){for(var x=-1,T=l==null?0:l.length;++x-1;);return g}function Rf(l,p){for(var g=l.length;g--&&Pe(p,l[g],0)>-1;);return g}function ic(l,p){for(var g=l.length,x=0;g--;)l[g]===p&&++x;return x}var uc=ui(Gl),fc=ui(Hl);function oc(l){return"\\"+Kl[l]}function ac(l,p){return l==null?f:l[p]}function We(l){return Dl.test(l)}function sc(l){return ql.test(l)}function lc(l){for(var p,g=[];!(p=l.next()).done;)g.push(p.value);return g}function si(l){var p=-1,g=Array(l.size);return l.forEach(function(x,T){g[++p]=[T,x]}),g}function Tf(l,p){return function(g){return l(p(g))}}function ce(l,p){for(var g=-1,x=l.length,T=0,K=[];++g-1}function Vc(n,e){var t=this.__data__,r=zt(t,n);return r<0?(++this.size,t.push([n,e])):t[r][1]=e,this}jn.prototype.clear=Yc,jn.prototype.delete=Xc,jn.prototype.get=Jc,jn.prototype.has=Qc,jn.prototype.set=Vc;function ne(n){var e=-1,t=n==null?0:n.length;for(this.clear();++e=e?n:e)),n}function Un(n,e,t,r,i,o){var a,s=e&V,c=e&q,_=e&z;if(t&&(a=i?t(n,r,i,o):t(n)),a!==f)return a;if(!fn(n))return n;var v=E(n);if(v){if(a=eg(n),!s)return Sn(n,a)}else{var d=mn(n),m=d==At||d==$u;if(de(n))return so(n,s);if(d==kn||d==Ee||m&&!i){if(a=c||m?{}:Eo(n),!s)return c?zh(n,gh(a,n)):Hh(n,qf(a,n))}else{if(!nn[d])return i?n:{};a=tg(n,d,s)}}o||(o=new Kn);var y=o.get(n);if(y)return y;o.set(n,a),ia(n)?n.forEach(function(I){a.add(Un(I,e,t,I,n,o))}):ta(n)&&n.forEach(function(I,U){a.set(U,Un(I,e,t,U,n,o))});var b=_?c?Mi:Fi:c?In:pn,M=v?f:b(n);return Fn(M||n,function(I,U){M&&(U=I,I=n[U]),ot(a,U,Un(I,e,t,U,n,o))}),a}function ph(n){var e=pn(n);return function(t){return $f(t,n,e)}}function $f(n,e,t){var r=t.length;if(n==null)return!r;for(n=j(n);r--;){var i=t[r],o=e[i],a=n[i];if(a===f&&!(i in n)||!o(a))return!1}return!0}function Nf(n,e,t){if(typeof n!="function")throw new Mn(R);return pt(function(){n.apply(f,t)},e)}function at(n,e,t,r){var i=-1,o=Tt,a=!0,s=n.length,c=[],_=e.length;if(!s)return c;t&&(e=rn(e,On(t))),r?(o=ei,a=!1):e.length>=O&&(o=et,a=!1,e=new Ae(e));n:for(;++ii?0:i+t),r=r===f||r>i?i:F(r),r<0&&(r+=i),r=t>r?0:fa(r);t0&&t(s)?e>1?dn(s,e-1,t,r,i):le(i,s):r||(i[i.length]=s)}return i}var vi=_o(),zf=_o(!0);function Jn(n,e){return n&&vi(n,e,pn)}function di(n,e){return n&&zf(n,e,pn)}function Zt(n,e){return se(e,function(t){return ue(n[t])})}function be(n,e){e=_e(e,n);for(var t=0,r=e.length;n!=null&&te}function dh(n,e){return n!=null&&J.call(n,e)}function wh(n,e){return n!=null&&e in j(n)}function mh(n,e,t){return n>=wn(e,t)&&n=120&&v.length>=120)?new Ae(a&&v):f}v=n[0];var d=-1,m=s[0];n:for(;++d-1;)s!==n&&Ut.call(s,c,1),Ut.call(n,c,1);return n}function eo(n,e){for(var t=n?e.length:0,r=t-1;t--;){var i=e[t];if(t==r||i!==o){var o=i;ie(i)?Ut.call(n,i,1):Ti(n,i)}}return n}function bi(n,e){return n+$t(Mf()*(e-n+1))}function Ph(n,e,t,r){for(var i=-1,o=gn(qt((e-n)/(t||1)),0),a=g(o);o--;)a[r?o:++i]=n,n+=t;return a}function Ii(n,e){var t="";if(!n||e<1||e>ae)return t;do e%2&&(t+=n),e=$t(e/2),e&&(n+=n);while(e);return t}function B(n,e){return Gi(Po(n,e,Rn),n+"")}function Wh(n){return Df(ze(n))}function Fh(n,e){var t=ze(n);return rr(t,Se(e,0,t.length))}function ct(n,e,t,r){if(!fn(n))return n;e=_e(e,n);for(var i=-1,o=e.length,a=o-1,s=n;s!=null&&++ii?0:i+e),t=t>i?i:t,t<0&&(t+=i),i=e>t?0:t-e>>>0,e>>>=0;for(var o=g(i);++r>>1,a=n[o];a!==null&&!Cn(a)&&(t?a<=e:a=O){var _=e?null:Xh(n);if(_)return Et(_);a=!1,i=et,c=new Ae}else c=e?[]:s;n:for(;++r=r?n:Dn(n,e,t)}var ao=Ic||function(n){return vn.clearTimeout(n)};function so(n,e){if(e)return n.slice();var t=n.length,r=Cf?Cf(t):new n.constructor(t);return n.copy(r),r}function Li(n){var e=new n.constructor(n.byteLength);return new Mt(e).set(new Mt(n)),e}function qh(n,e){var t=e?Li(n.buffer):n.buffer;return new n.constructor(t,n.byteOffset,n.byteLength)}function $h(n){var e=new n.constructor(n.source,Ku.exec(n));return e.lastIndex=n.lastIndex,e}function Nh(n){return ft?j(ft.call(n)):{}}function lo(n,e){var t=e?Li(n.buffer):n.buffer;return new n.constructor(t,n.byteOffset,n.length)}function co(n,e){if(n!==e){var t=n!==f,r=n===null,i=n===n,o=Cn(n),a=e!==f,s=e===null,c=e===e,_=Cn(e);if(!s&&!_&&!o&&n>e||o&&a&&c&&!s&&!_||r&&a&&c||!t&&c||!i)return 1;if(!r&&!o&&!_&&n=s)return c;var _=t[r];return c*(_=="desc"?-1:1)}}return n.index-e.index}function ho(n,e,t,r){for(var i=-1,o=n.length,a=t.length,s=-1,c=e.length,_=gn(o-a,0),v=g(c+_),d=!r;++s1?t[i-1]:f,a=i>2?t[2]:f;for(o=n.length>3&&typeof o=="function"?(i--,o):f,a&&yn(t[0],t[1],a)&&(o=i<3?f:o,i=1),e=j(e);++r-1?i[o?e[a]:a]:f}}function mo(n){return re(function(e){var t=e.length,r=t,i=Bn.prototype.thru;for(n&&e.reverse();r--;){var o=e[r];if(typeof o!="function")throw new Mn(R);if(i&&!a&&er(o)=="wrapper")var a=new Bn([],!0)}for(r=a?r:t;++r1&&G.reverse(),v&&cs))return!1;var _=o.get(n),v=o.get(e);if(_&&v)return _==e&&v==n;var d=-1,m=!0,y=t&un?new Ae:f;for(o.set(n,e),o.set(e,n);++d1?"& ":"")+e[r],e=e.join(t>2?", ":" "),n.replace(ul,`{ +/* [wrapped with `+e+`] */ +`)}function ig(n){return E(n)||Te(n)||!!(Wf&&n&&n[Wf])}function ie(n,e){var t=typeof n;return e=e??ae,!!e&&(t=="number"||t!="symbol"&&vl.test(n))&&n>-1&&n%1==0&&n0){if(++e>=Ws)return arguments[0]}else e=0;return n.apply(f,arguments)}}function rr(n,e){var t=-1,r=n.length,i=r-1;for(e=e===f?r:e;++t1?n[e-1]:f;return t=typeof t=="function"?(n.pop(),t):f,zo(n,t)});function Ko(n){var e=u(n);return e.__chain__=!0,e}function _p(n,e){return e(n),n}function ir(n,e){return e(n)}var vp=re(function(n){var e=n.length,t=e?n[0]:0,r=this.__wrapped__,i=function(o){return _i(o,n)};return e>1||this.__actions__.length||!(r instanceof N)||!ie(t)?this.thru(i):(r=r.slice(t,+t+(e?1:0)),r.__actions__.push({func:ir,args:[i],thisArg:f}),new Bn(r,this.__chain__).thru(function(o){return e&&!o.length&&o.push(f),o}))});function dp(){return Ko(this)}function wp(){return new Bn(this.value(),this.__chain__)}function mp(){this.__values__===f&&(this.__values__=ua(this.value()));var n=this.__index__>=this.__values__.length,e=n?f:this.__values__[this.__index__++];return{done:n,value:e}}function xp(){return this}function yp(n){for(var e,t=this;t instanceof Ht;){var r=Do(t);r.__index__=0,r.__values__=f,e?i.__wrapped__=r:e=r;var i=r;t=t.__wrapped__}return i.__wrapped__=n,e}function Ap(){var n=this.__wrapped__;if(n instanceof N){var e=n;return this.__actions__.length&&(e=new N(this)),e=e.reverse(),e.__actions__.push({func:ir,args:[Hi],thisArg:f}),new Bn(e,this.__chain__)}return this.thru(Hi)}function Sp(){return fo(this.__wrapped__,this.__actions__)}var bp=Qt(function(n,e,t){J.call(n,t)?++n[t]:ee(n,t,1)});function Ip(n,e,t){var r=E(n)?mf:_h;return t&&yn(n,e,t)&&(e=f),r(n,S(e,3))}function Rp(n,e){var t=E(n)?se:Hf;return t(n,S(e,3))}var Tp=wo(qo),Op=wo($o);function Ep(n,e){return dn(ur(n,e),1)}function Cp(n,e){return dn(ur(n,e),we)}function Lp(n,e,t){return t=t===f?1:F(t),dn(ur(n,e),t)}function Zo(n,e){var t=E(n)?Fn:ge;return t(n,S(e,3))}function Yo(n,e){var t=E(n)?Ql:Gf;return t(n,S(e,3))}var Pp=Qt(function(n,e,t){J.call(n,t)?n[t].push(e):ee(n,t,[e])});function Wp(n,e,t,r){n=bn(n)?n:ze(n),t=t&&!r?F(t):0;var i=n.length;return t<0&&(t=gn(i+t,0)),lr(n)?t<=i&&n.indexOf(e,t)>-1:!!i&&Pe(n,e,t)>-1}var Fp=B(function(n,e,t){var r=-1,i=typeof e=="function",o=bn(n)?g(n.length):[];return ge(n,function(a){o[++r]=i?Tn(e,a,t):st(a,e,t)}),o}),Mp=Qt(function(n,e,t){ee(n,t,e)});function ur(n,e){var t=E(n)?rn:Jf;return t(n,S(e,3))}function Bp(n,e,t,r){return n==null?[]:(E(e)||(e=e==null?[]:[e]),t=r?f:t,E(t)||(t=t==null?[]:[t]),jf(n,e,t))}var Up=Qt(function(n,e,t){n[t?0:1].push(e)},function(){return[[],[]]});function Dp(n,e,t){var r=E(n)?ti:Sf,i=arguments.length<3;return r(n,S(e,4),t,i,ge)}function qp(n,e,t){var r=E(n)?Vl:Sf,i=arguments.length<3;return r(n,S(e,4),t,i,Gf)}function $p(n,e){var t=E(n)?se:Hf;return t(n,ar(S(e,3)))}function Np(n){var e=E(n)?Df:Wh;return e(n)}function Gp(n,e,t){(t?yn(n,e,t):e===f)?e=1:e=F(e);var r=E(n)?lh:Fh;return r(n,e)}function Hp(n){var e=E(n)?ch:Bh;return e(n)}function zp(n){if(n==null)return 0;if(bn(n))return lr(n)?Fe(n):n.length;var e=mn(n);return e==Gn||e==Hn?n.size:yi(n).length}function Kp(n,e,t){var r=E(n)?ri:Uh;return t&&yn(n,e,t)&&(e=f),r(n,S(e,3))}var Zp=B(function(n,e){if(n==null)return[];var t=e.length;return t>1&&yn(n,e[0],e[1])?e=[]:t>2&&yn(e[0],e[1],e[2])&&(e=[e[0]]),jf(n,dn(e,1),[])}),fr=Rc||function(){return vn.Date.now()};function Yp(n,e){if(typeof e!="function")throw new Mn(R);return n=F(n),function(){if(--n<1)return e.apply(this,arguments)}}function Xo(n,e,t){return e=t?f:e,e=n&&e==null?n.length:e,te(n,en,f,f,f,f,e)}function Jo(n,e){var t;if(typeof e!="function")throw new Mn(R);return n=F(n),function(){return--n>0&&(t=e.apply(this,arguments)),n<=1&&(e=f),t}}var Ki=B(function(n,e,t){var r=C;if(t.length){var i=ce(t,Ge(Ki));r|=X}return te(n,r,e,t,i)}),Qo=B(function(n,e,t){var r=C|_n;if(t.length){var i=ce(t,Ge(Qo));r|=X}return te(e,r,n,t,i)});function Vo(n,e,t){e=t?f:e;var r=te(n,A,f,f,f,f,f,e);return r.placeholder=Vo.placeholder,r}function ko(n,e,t){e=t?f:e;var r=te(n,$,f,f,f,f,f,e);return r.placeholder=ko.placeholder,r}function jo(n,e,t){var r,i,o,a,s,c,_=0,v=!1,d=!1,m=!0;if(typeof n!="function")throw new Mn(R);e=$n(e)||0,fn(t)&&(v=!!t.leading,d="maxWait"in t,o=d?gn($n(t.maxWait)||0,e):o,m="trailing"in t?!!t.trailing:m);function y(ln){var Yn=r,oe=i;return r=i=f,_=ln,a=n.apply(oe,Yn),a}function b(ln){return _=ln,s=pt(U,e),v?y(ln):a}function M(ln){var Yn=ln-c,oe=ln-_,wa=e-Yn;return d?wn(wa,o-oe):wa}function I(ln){var Yn=ln-c,oe=ln-_;return c===f||Yn>=e||Yn<0||d&&oe>=o}function U(){var ln=fr();if(I(ln))return G(ln);s=pt(U,M(ln))}function G(ln){return s=f,m&&r?y(ln):(r=i=f,a)}function Ln(){s!==f&&ao(s),_=0,r=c=i=s=f}function An(){return s===f?a:G(fr())}function Pn(){var ln=fr(),Yn=I(ln);if(r=arguments,i=this,c=ln,Yn){if(s===f)return b(c);if(d)return ao(s),s=pt(U,e),y(c)}return s===f&&(s=pt(U,e)),a}return Pn.cancel=Ln,Pn.flush=An,Pn}var Xp=B(function(n,e){return Nf(n,1,e)}),Jp=B(function(n,e,t){return Nf(n,$n(e)||0,t)});function Qp(n){return te(n,Br)}function or(n,e){if(typeof n!="function"||e!=null&&typeof e!="function")throw new Mn(R);var t=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=t.cache;if(o.has(i))return o.get(i);var a=n.apply(this,r);return t.cache=o.set(i,a)||o,a};return t.cache=new(or.Cache||ne),t}or.Cache=ne;function ar(n){if(typeof n!="function")throw new Mn(R);return function(){var e=arguments;switch(e.length){case 0:return!n.call(this);case 1:return!n.call(this,e[0]);case 2:return!n.call(this,e[0],e[1]);case 3:return!n.call(this,e[0],e[1],e[2])}return!n.apply(this,e)}}function Vp(n){return Jo(2,n)}var kp=Dh(function(n,e){e=e.length==1&&E(e[0])?rn(e[0],On(S())):rn(dn(e,1),On(S()));var t=e.length;return B(function(r){for(var i=-1,o=wn(r.length,t);++i=e}),Te=Zf(function(){return arguments}())?Zf:function(n){return on(n)&&J.call(n,"callee")&&!Pf.call(n,"callee")},E=g.isArray,g_=gf?On(gf):yh;function bn(n){return n!=null&&sr(n.length)&&!ue(n)}function sn(n){return on(n)&&bn(n)}function p_(n){return n===!0||n===!1||on(n)&&xn(n)==Xe}var de=Oc||ru,__=pf?On(pf):Ah;function v_(n){return on(n)&&n.nodeType===1&&!_t(n)}function d_(n){if(n==null)return!0;if(bn(n)&&(E(n)||typeof n=="string"||typeof n.splice=="function"||de(n)||He(n)||Te(n)))return!n.length;var e=mn(n);if(e==Gn||e==Hn)return!n.size;if(gt(n))return!yi(n).length;for(var t in n)if(J.call(n,t))return!1;return!0}function w_(n,e){return lt(n,e)}function m_(n,e,t){t=typeof t=="function"?t:f;var r=t?t(n,e):f;return r===f?lt(n,e,f,t):!!r}function Yi(n){if(!on(n))return!1;var e=xn(n);return e==yt||e==Gs||typeof n.message=="string"&&typeof n.name=="string"&&!_t(n)}function x_(n){return typeof n=="number"&&Ff(n)}function ue(n){if(!fn(n))return!1;var e=xn(n);return e==At||e==$u||e==Ns||e==zs}function ea(n){return typeof n=="number"&&n==F(n)}function sr(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=ae}function fn(n){var e=typeof n;return n!=null&&(e=="object"||e=="function")}function on(n){return n!=null&&typeof n=="object"}var ta=_f?On(_f):bh;function y_(n,e){return n===e||xi(n,e,Ui(e))}function A_(n,e,t){return t=typeof t=="function"?t:f,xi(n,e,Ui(e),t)}function S_(n){return ra(n)&&n!=+n}function b_(n){if(og(n))throw new T(P);return Yf(n)}function I_(n){return n===null}function R_(n){return n==null}function ra(n){return typeof n=="number"||on(n)&&xn(n)==Qe}function _t(n){if(!on(n)||xn(n)!=kn)return!1;var e=Bt(n);if(e===null)return!0;var t=J.call(e,"constructor")&&e.constructor;return typeof t=="function"&&t instanceof t&&Pt.call(t)==Ac}var Xi=vf?On(vf):Ih;function T_(n){return ea(n)&&n>=-ae&&n<=ae}var ia=df?On(df):Rh;function lr(n){return typeof n=="string"||!E(n)&&on(n)&&xn(n)==ke}function Cn(n){return typeof n=="symbol"||on(n)&&xn(n)==St}var He=wf?On(wf):Th;function O_(n){return n===f}function E_(n){return on(n)&&mn(n)==je}function C_(n){return on(n)&&xn(n)==Zs}var L_=nr(Ai),P_=nr(function(n,e){return n<=e});function ua(n){if(!n)return[];if(bn(n))return lr(n)?zn(n):Sn(n);if(tt&&n[tt])return lc(n[tt]());var e=mn(n),t=e==Gn?si:e==Hn?Et:ze;return t(n)}function fe(n){if(!n)return n===0?n:0;if(n=$n(n),n===we||n===-we){var e=n<0?-1:1;return e*Us}return n===n?n:0}function F(n){var e=fe(n),t=e%1;return e===e?t?e-t:e:0}function fa(n){return n?Se(F(n),0,Xn):0}function $n(n){if(typeof n=="number")return n;if(Cn(n))return mt;if(fn(n)){var e=typeof n.valueOf=="function"?n.valueOf():n;n=fn(e)?e+"":e}if(typeof n!="string")return n===0?n:+n;n=bf(n);var t=gl.test(n);return t||_l.test(n)?Yl(n.slice(2),t?2:8):hl.test(n)?mt:+n}function oa(n){return Qn(n,In(n))}function W_(n){return n?Se(F(n),-ae,ae):n===0?n:0}function Z(n){return n==null?"":En(n)}var F_=$e(function(n,e){if(gt(e)||bn(e)){Qn(e,pn(e),n);return}for(var t in e)J.call(e,t)&&ot(n,t,e[t])}),aa=$e(function(n,e){Qn(e,In(e),n)}),cr=$e(function(n,e,t,r){Qn(e,In(e),n,r)}),M_=$e(function(n,e,t,r){Qn(e,pn(e),n,r)}),B_=re(_i);function U_(n,e){var t=qe(n);return e==null?t:qf(t,e)}var D_=B(function(n,e){n=j(n);var t=-1,r=e.length,i=r>2?e[2]:f;for(i&&yn(e[0],e[1],i)&&(r=1);++t1),o}),Qn(n,Mi(n),t),r&&(t=Un(t,V|q|z,Jh));for(var i=e.length;i--;)Ti(t,e[i]);return t});function tv(n,e){return la(n,ar(S(e)))}var rv=re(function(n,e){return n==null?{}:Ch(n,e)});function la(n,e){if(n==null)return{};var t=rn(Mi(n),function(r){return[r]});return e=S(e),no(n,t,function(r,i){return e(r,i[0])})}function iv(n,e,t){e=_e(e,n);var r=-1,i=e.length;for(i||(i=1,n=f);++re){var r=n;n=e,e=r}if(t||n%1||e%1){var i=Mf();return wn(n+i*(e-n+Zl("1e-"+((i+"").length-1))),e)}return bi(n,e)}var _v=Ne(function(n,e,t){return e=e.toLowerCase(),n+(t?ga(e):e)});function ga(n){return Vi(Z(n).toLowerCase())}function pa(n){return n=Z(n),n&&n.replace(dl,uc).replace(Bl,"")}function vv(n,e,t){n=Z(n),e=En(e);var r=n.length;t=t===f?r:Se(F(t),0,r);var i=t;return t-=e.length,t>=0&&n.slice(t,i)==e}function dv(n){return n=Z(n),n&&Vs.test(n)?n.replace(Hu,fc):n}function wv(n){return n=Z(n),n&&rl.test(n)?n.replace(Zr,"\\$&"):n}var mv=Ne(function(n,e,t){return n+(t?"-":"")+e.toLowerCase()}),xv=Ne(function(n,e,t){return n+(t?" ":"")+e.toLowerCase()}),yv=vo("toLowerCase");function Av(n,e,t){n=Z(n),e=F(e);var r=e?Fe(n):0;if(!e||r>=e)return n;var i=(e-r)/2;return jt($t(i),t)+n+jt(qt(i),t)}function Sv(n,e,t){n=Z(n),e=F(e);var r=e?Fe(n):0;return e&&r>>0,t?(n=Z(n),n&&(typeof e=="string"||e!=null&&!Xi(e))&&(e=En(e),!e&&We(n))?ve(zn(n),0,t):n.split(e,t)):[]}var Cv=Ne(function(n,e,t){return n+(t?" ":"")+Vi(e)});function Lv(n,e,t){return n=Z(n),t=t==null?0:Se(F(t),0,n.length),e=En(e),n.slice(t,t+e.length)==e}function Pv(n,e,t){var r=u.templateSettings;t&&yn(n,e,t)&&(e=f),n=Z(n),e=cr({},e,r,bo);var i=cr({},e.imports,r.imports,bo),o=pn(i),a=ai(i,o),s,c,_=0,v=e.interpolate||bt,d="__p += '",m=li((e.escape||bt).source+"|"+v.source+"|"+(v===zu?cl:bt).source+"|"+(e.evaluate||bt).source+"|$","g"),y="//# sourceURL="+(J.call(e,"sourceURL")?(e.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Nl+"]")+` +`;n.replace(m,function(I,U,G,Ln,An,Pn){return G||(G=Ln),d+=n.slice(_,Pn).replace(wl,oc),U&&(s=!0,d+=`' + +__e(`+U+`) + +'`),An&&(c=!0,d+=`'; +`+An+`; +__p += '`),G&&(d+=`' + +((__t = (`+G+`)) == null ? '' : __t) + +'`),_=Pn+I.length,I}),d+=`'; +`;var b=J.call(e,"variable")&&e.variable;if(!b)d=`with (obj) { +`+d+` +} +`;else if(sl.test(b))throw new T(Q);d=(c?d.replace(Ys,""):d).replace(Xs,"$1").replace(Js,"$1;"),d="function("+(b||"obj")+`) { +`+(b?"":`obj || (obj = {}); +`)+"var __t, __p = ''"+(s?", __e = _.escape":"")+(c?`, __j = Array.prototype.join; +function print() { __p += __j.call(arguments, '') } +`:`; +`)+d+`return __p +}`;var M=va(function(){return K(o,y+"return "+d).apply(f,a)});if(M.source=d,Yi(M))throw M;return M}function Wv(n){return Z(n).toLowerCase()}function Fv(n){return Z(n).toUpperCase()}function Mv(n,e,t){if(n=Z(n),n&&(t||e===f))return bf(n);if(!n||!(e=En(e)))return n;var r=zn(n),i=zn(e),o=If(r,i),a=Rf(r,i)+1;return ve(r,o,a).join("")}function Bv(n,e,t){if(n=Z(n),n&&(t||e===f))return n.slice(0,Of(n)+1);if(!n||!(e=En(e)))return n;var r=zn(n),i=Rf(r,zn(e))+1;return ve(r,0,i).join("")}function Uv(n,e,t){if(n=Z(n),n&&(t||e===f))return n.replace(Yr,"");if(!n||!(e=En(e)))return n;var r=zn(n),i=If(r,zn(e));return ve(r,i).join("")}function Dv(n,e){var t=Ls,r=Ps;if(fn(e)){var i="separator"in e?e.separator:i;t="length"in e?F(e.length):t,r="omission"in e?En(e.omission):r}n=Z(n);var o=n.length;if(We(n)){var a=zn(n);o=a.length}if(t>=o)return n;var s=t-Fe(r);if(s<1)return r;var c=a?ve(a,0,s).join(""):n.slice(0,s);if(i===f)return c+r;if(a&&(s+=c.length-s),Xi(i)){if(n.slice(s).search(i)){var _,v=c;for(i.global||(i=li(i.source,Z(Ku.exec(i))+"g")),i.lastIndex=0;_=i.exec(v);)var d=_.index;c=c.slice(0,d===f?s:d)}}else if(n.indexOf(En(i),s)!=s){var m=c.lastIndexOf(i);m>-1&&(c=c.slice(0,m))}return c+r}function qv(n){return n=Z(n),n&&Qs.test(n)?n.replace(Gu,pc):n}var $v=Ne(function(n,e,t){return n+(t?" ":"")+e.toUpperCase()}),Vi=vo("toUpperCase");function _a(n,e,t){return n=Z(n),e=t?f:e,e===f?sc(n)?dc(n):nc(n):n.match(e)||[]}var va=B(function(n,e){try{return Tn(n,f,e)}catch(t){return Yi(t)?t:new T(t)}}),Nv=re(function(n,e){return Fn(e,function(t){t=Vn(t),ee(n,t,Ki(n[t],n))}),n});function Gv(n){var e=n==null?0:n.length,t=S();return n=e?rn(n,function(r){if(typeof r[1]!="function")throw new Mn(R);return[t(r[0]),r[1]]}):[],B(function(r){for(var i=-1;++iae)return[];var t=Xn,r=wn(n,Xn);e=S(e),n-=Xn;for(var i=oi(r,e);++t0||e<0)?new N(t):(n<0?t=t.takeRight(-n):n&&(t=t.drop(n)),e!==f&&(e=F(e),t=e<0?t.dropRight(-e):t.take(e-n)),t)},N.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},N.prototype.toArray=function(){return this.take(Xn)},Jn(N.prototype,function(n,e){var t=/^(?:filter|find|map|reject)|While$/.test(e),r=/^(?:head|last)$/.test(e),i=u[r?"take"+(e=="last"?"Right":""):e],o=r||/^find/.test(e);i&&(u.prototype[e]=function(){var a=this.__wrapped__,s=r?[1]:arguments,c=a instanceof N,_=s[0],v=c||E(a),d=function(U){var G=i.apply(u,le([U],s));return r&&m?G[0]:G};v&&t&&typeof _=="function"&&_.length!=1&&(c=v=!1);var m=this.__chain__,y=!!this.__actions__.length,b=o&&!m,M=c&&!y;if(!o&&v){a=M?a:new N(this);var I=n.apply(a,s);return I.__actions__.push({func:ir,args:[d],thisArg:f}),new Bn(I,m)}return b&&M?n.apply(this,s):(I=this.thru(d),b?r?I.value()[0]:I.value():I)})}),Fn(["pop","push","shift","sort","splice","unshift"],function(n){var e=Ct[n],t=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",r=/^(?:pop|shift)$/.test(n);u.prototype[n]=function(){var i=arguments;if(r&&!this.__chain__){var o=this.value();return e.apply(E(o)?o:[],i)}return this[t](function(a){return e.apply(E(a)?a:[],i)})}}),Jn(N.prototype,function(n,e){var t=u[e];if(t){var r=t.name+"";J.call(De,r)||(De[r]=[]),De[r].push({name:e,func:t})}}),De[Vt(f,_n).name]=[{name:"wrapper",func:f}],N.prototype.clone=qc,N.prototype.reverse=$c,N.prototype.value=Nc,u.prototype.at=vp,u.prototype.chain=dp,u.prototype.commit=wp,u.prototype.next=mp,u.prototype.plant=yp,u.prototype.reverse=Ap,u.prototype.toJSON=u.prototype.valueOf=u.prototype.value=Sp,u.prototype.first=u.prototype.head,tt&&(u.prototype[tt]=xp),u},Me=wc();me?((me.exports=Me)._=Me,jr._=Me):vn._=Me}).call(Ke)}(vt,vt.exports);var Nn=vt.exports,ma=function(){},xa=ma(),Oe=function(h){return h!==xa&&h!==null},ya=Oe,Aa=Array.prototype.forEach,Sa=Object.create,ba=function(h,w){var f;for(f in h)w[f]=h[f]},Ia=function(h){var w=Sa(null);return Aa.call(arguments,function(f){ya(f)&&ba(Object(f),w)}),w},Ra=function(){var h=Math.sign;return typeof h!="function"?!1:h(10)===1&&h(-20)===-1},hr,iu;function Ta(){return iu||(iu=1,hr=function(h){return h=Number(h),isNaN(h)||h===0?h:h>0?1:-1}),hr}var Oa=Ra()?Math.sign:Ta(),Ea=Oa,Ca=Math.abs,La=Math.floor,Pa=function(h){return isNaN(h)?0:(h=Number(h),h===0||!isFinite(h)?h:Ea(h)*La(Ca(h)))},Wa=Pa,Fa=Math.max,Ma=function(h){return Fa(0,Wa(h))},uu=function(h){if(typeof h!="function")throw new TypeError(h+" is not a function");return h},Ba=Oe,fu=function(h){if(!Ba(h))throw new TypeError("Cannot use null or undefined");return h},Ua={exports:{}},Da=function(){var h=Object.assign,w;return typeof h!="function"?!1:(w={foo:"raz"},h(w,{bar:"dwa"},{trzy:"trzy"}),w.foo+w.bar+w.trzy==="razdwatrzy")},gr,ou;function qa(){return ou||(ou=1,gr=function(){try{return Object.keys("primitive"),!0}catch{return!1}}),gr}var pr,au;function $a(){if(au)return pr;au=1;var h=Oe,w=Object.keys;return pr=function(f){return w(h(f)?Object(f):f)},pr}var _r,su;function Na(){return su||(su=1,_r=qa()()?Object.keys:$a()),_r}var vr,lu;function Ga(){if(lu)return vr;lu=1;var h=Na(),w=fu,f=Math.max;return vr=function(L,O){var P,R,Q=f(arguments.length,2),Y;for(L=Object(w(L)),Y=function(H){try{L[H]=O[H]}catch(D){P||(P=D)}},R=1;R-1},wr}var fs=is()?String.prototype.contains:us(),dt=pu,vu=rs,du=cu,wu=Ia,Ze=fs,os=gu.exports=function(h,w){var f,L,O,P,R;return arguments.length<2||typeof h!="string"?(P=w,w=h,h=null):P=arguments[2],dt(h)?(f=Ze.call(h,"c"),L=Ze.call(h,"e"),O=Ze.call(h,"w")):(f=O=!0,L=!1),R={value:w,configurable:f,enumerable:L,writable:O},P?du(wu(P),R):R};os.gs=function(h,w,f){var L,O,P,R;return typeof h!="string"?(P=f,f=w,w=h,h=null):P=arguments[3],dt(w)?vu(w)?dt(f)?vu(f)||(P=f,f=void 0):f=void 0:(P=w,w=f=void 0):w=void 0,dt(h)?(L=Ze.call(h,"c"),O=Ze.call(h,"e")):(L=!0,O=!1),R={get:w,set:f,configurable:L,enumerable:O},P?du(wu(P),R):R};var Ye=gu.exports,mr={exports:{}};(function(h,w){var f=Ye,L=uu,O=Function.prototype.apply,P=Function.prototype.call,R=Object.create,Q=Object.defineProperty,Y=Object.defineProperties,H=Object.prototype.hasOwnProperty,D={configurable:!0,enumerable:!1,writable:!0},V,q,z,an,un,C,_n;V=function(W,A){var $;return L(A),H.call(this,"__ee__")?$=this.__ee__:($=D.value=R(null),Q(this,"__ee__",D),D.value=null),$[W]?typeof $[W]=="object"?$[W].push(A):$[W]=[$[W],A]:$[W]=A,this},q=function(W,A){var $,X;return L(A),X=this,V.call(this,W,$=function(){z.call(X,W,$),O.call(A,this,arguments)}),$.__eeOnceListener__=A,this},z=function(W,A){var $,X,k,en;if(L(A),!H.call(this,"__ee__"))return this;if($=this.__ee__,!$[W])return this;if(X=$[W],typeof X=="object")for(en=0;k=X[en];++en)(k===A||k.__eeOnceListener__===A)&&(X.length===2?$[W]=X[en?0:1]:X.splice(en,1));else(X===A||X.__eeOnceListener__===A)&&delete $[W];return this},an=function(W){var A,$,X,k,en;if(H.call(this,"__ee__")&&(k=this.__ee__[W],!!k))if(typeof k=="object"){for($=arguments.length,en=new Array($-1),A=1;A<$;++A)en[A-1]=arguments[A];for(k=k.slice(),A=0;X=k[A];++A)O.call(X,this,en)}else switch(arguments.length){case 1:P.call(k,this);break;case 2:P.call(k,this,arguments[1]);break;case 3:P.call(k,this,arguments[1],arguments[2]);break;default:for($=arguments.length,en=new Array($-1),A=1;A<$;++A)en[A-1]=arguments[A];O.call(k,this,en)}},un={on:V,once:q,off:z,emit:an},C={on:f(V),once:f(q),off:f(z),emit:f(an)},_n=Y({},C),h.exports=w=function(W){return W==null?R(_n):Y(Object(W),C)},w.methods=un})(mr,mr.exports);var as=mr.exports,xr,mu;function ss(){return mu||(mu=1,xr=function(){var h=Array.from,w,f;return typeof h!="function"?!1:(w=["raz","dwa"],f=h(w),!!(f&&f!==w&&f[1]==="dwa"))}),xr}var yr,xu;function ls(){return xu||(xu=1,yr=function(){return typeof globalThis!="object"||!globalThis?!1:globalThis.Array===Array}),yr}var Ar,yu;function cs(){if(yu)return Ar;yu=1;var h=function(){if(typeof self=="object"&&self)return self;if(typeof window=="object"&&window)return window;throw new Error("Unable to resolve global `this`")};return Ar=function(){if(this)return this;try{Object.defineProperty(Object.prototype,"__global__",{get:function(){return this},configurable:!0})}catch{return h()}try{return __global__||h()}finally{delete Object.prototype.__global__}}(),Ar}var Sr,Au;function wt(){return Au||(Au=1,Sr=ls()()?globalThis:cs()),Sr}var br,Su;function hs(){if(Su)return br;Su=1;var h=wt(),w={object:!0,symbol:!0};return br=function(){var f=h.Symbol,L;if(typeof f!="function")return!1;L=f("test symbol");try{String(L)}catch{return!1}return!(!w[typeof f.iterator]||!w[typeof f.toPrimitive]||!w[typeof f.toStringTag])},br}var Ir,bu;function gs(){return bu||(bu=1,Ir=function(h){return h?typeof h=="symbol"?!0:!h.constructor||h.constructor.name!=="Symbol"?!1:h[h.constructor.toStringTag]==="Symbol":!1}),Ir}var Rr,Iu;function Ru(){if(Iu)return Rr;Iu=1;var h=gs();return Rr=function(w){if(!h(w))throw new TypeError(w+" is not a symbol");return w},Rr}var Tr,Tu;function ps(){if(Tu)return Tr;Tu=1;var h=Ye,w=Object.create,f=Object.defineProperty,L=Object.prototype,O=w(null);return Tr=function(P){for(var R=0,Q,Y;O[P+(R||"")];)++R;return P+=R||"",O[P]=!0,Q="@@"+P,f(L,Q,h.gs(null,function(H){Y||(Y=!0,f(this,Q,h(H)),Y=!1)})),Q},Tr}var Or,Ou;function _s(){if(Ou)return Or;Ou=1;var h=Ye,w=wt().Symbol;return Or=function(f){return Object.defineProperties(f,{hasInstance:h("",w&&w.hasInstance||f("hasInstance")),isConcatSpreadable:h("",w&&w.isConcatSpreadable||f("isConcatSpreadable")),iterator:h("",w&&w.iterator||f("iterator")),match:h("",w&&w.match||f("match")),replace:h("",w&&w.replace||f("replace")),search:h("",w&&w.search||f("search")),species:h("",w&&w.species||f("species")),split:h("",w&&w.split||f("split")),toPrimitive:h("",w&&w.toPrimitive||f("toPrimitive")),toStringTag:h("",w&&w.toStringTag||f("toStringTag")),unscopables:h("",w&&w.unscopables||f("unscopables"))})},Or}var Er,Eu;function vs(){if(Eu)return Er;Eu=1;var h=Ye,w=Ru(),f=Object.create(null);return Er=function(L){return Object.defineProperties(L,{for:h(function(O){return f[O]?f[O]:f[O]=L(String(O))}),keyFor:h(function(O){var P;w(O);for(P in f)if(f[P]===O)return P})})},Er}var Cr,Cu;function ds(){if(Cu)return Cr;Cu=1;var h=Ye,w=Ru(),f=wt().Symbol,L=ps(),O=_s(),P=vs(),R=Object.create,Q=Object.defineProperties,Y=Object.defineProperty,H,D,V;if(typeof f=="function")try{String(f()),V=!0}catch{}else f=null;return D=function(z){if(this instanceof D)throw new TypeError("Symbol is not a constructor");return H(z)},Cr=H=function q(z){var an;if(this instanceof q)throw new TypeError("Symbol is not a constructor");return V?f(z):(an=R(D.prototype),z=z===void 0?"":String(z),Q(an,{__description__:h("",z),__name__:h("",L(z))}))},O(H),P(H),Q(D.prototype,{constructor:h(H),toString:h("",function(){return this.__name__})}),Q(H.prototype,{toString:h(function(){return"Symbol ("+w(this).__description__+")"}),valueOf:h(function(){return w(this)})}),Y(H.prototype,H.toPrimitive,h("",function(){var q=w(this);return typeof q=="symbol"?q:q.toString()})),Y(H.prototype,H.toStringTag,h("c","Symbol")),Y(D.prototype,H.toStringTag,h("c",H.prototype[H.toStringTag])),Y(D.prototype,H.toPrimitive,h("c",H.prototype[H.toPrimitive])),Cr}var Lr,Lu;function ws(){return Lu||(Lu=1,Lr=hs()()?wt().Symbol:ds()),Lr}var Pr,Pu;function ms(){if(Pu)return Pr;Pu=1;var h=Object.prototype.toString,w=h.call(function(){return arguments}());return Pr=function(f){return h.call(f)===w},Pr}var Wr,Wu;function xs(){if(Wu)return Wr;Wu=1;var h=Object.prototype.toString,w=RegExp.prototype.test.bind(/^[object [A-Za-z0-9]*Function]$/);return Wr=function(f){return typeof f=="function"&&w(h.call(f))},Wr}var Fr,Fu;function ys(){if(Fu)return Fr;Fu=1;var h=Object.prototype.toString,w=h.call("");return Fr=function(f){return typeof f=="string"||f&&typeof f=="object"&&(f instanceof String||h.call(f)===w)||!1},Fr}var Mr,Mu;function As(){if(Mu)return Mr;Mu=1;var h=ws().iterator,w=ms(),f=xs(),L=Ma,O=uu,P=fu,R=Oe,Q=ys(),Y=Array.isArray,H=Function.prototype.call,D={configurable:!0,enumerable:!0,writable:!0,value:null},V=Object.defineProperty;return Mr=function(q){var z=arguments[1],an=arguments[2],un,C,_n,W,A,$,X,k,en,cn;if(q=Object(P(q)),R(z)&&O(z),!this||this===Array||!f(this)){if(!z){if(w(q))return A=q.length,A!==1?Array.apply(null,q):(W=new Array(1),W[0]=q[0],W);if(Y(q)){for(W=new Array(A=q.length),C=0;C=55296&&$<=56319&&(cn+=q[++C])),cn=z?H.call(z,an,cn,_n):cn,un?(D.value=cn,V(W,_n,D)):W[_n]=cn,++_n;A=_n}}if(A===void 0)for(A=L(q.length),un&&(W=new un(A)),C=0;Casync w=>{const f=new h,L=await w(f);return f.terminate(),L},bs=h=>w=>Ss(h)(f=>(f.postMessage(w),new Promise((L,O)=>{f.onmessage=P=>{L(P.data)},f.onerror=O})));var Is=""+new URL("parseTraceSlave.worker-06d8e902.js",self.location.href).href;const Uu=(h="",w="")=>`${h}::::${w}`,Du=({component:h})=>h&&Object.hasOwn(h,"alpha")?Nn.get(h,"alpha")>0:!0,{min:Rs}=Math,Ts=navigator.hardwareConcurrency??8;class Os extends Worker{constructor(){super(Is,{type:"module"})}}const Es=bs(Os);async function Cs({trace:h,context:w,view:f="main"}){var Y,H;const L=Nn.ceil((((Y=h==null?void 0:h.events)==null?void 0:Y.length)??0)/Ts),O=Nn.range(0,(H=h==null?void 0:h.events)==null?void 0:H.length,L),P=Nn.flatten(await Promise.all(Nn.map(O,D=>{var V;return Es({trace:h,context:w,view:f,from:D,to:Rs(D+L,((V=h==null?void 0:h.events)==null?void 0:V.length)??0)})}))),R={},Q=[];for(const{event:D,components:{transient:V=[],special:q=[],persistent:z=[]}}of P){delete R[Uu(D.id,D.type)],V.push(...Nn.values(R).flat());for(const an of q){const un=Uu(D.id,Nn.get(an.component,"clear"));R[un]=R[un]??[],R[un].push(an),V.push(an)}Q.push({transient:V,persistent:z})}return console.log(JSON.stringify(Q)),{stepsPersistent:Nn.map(Q,"persistent").map(D=>Nn.filter(D,Du)),stepsTransient:Nn.map(Q,"transient").map(D=>Nn.filter(D,Du))}}onmessage=async({data:h})=>{postMessage(await Cs(h))}})(); diff --git a/assets/parseTrace.worker-91b43fad.js b/assets/parseTrace.worker-91b43fad.js deleted file mode 100644 index 015fa60c..00000000 --- a/assets/parseTrace.worker-91b43fad.js +++ /dev/null @@ -1,27 +0,0 @@ -(function(){"use strict";var Ke=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},vt={exports:{}};/** - * @license - * Lodash - * Copyright OpenJS Foundation and other contributors - * Released under MIT license - * Based on Underscore.js 1.8.3 - * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - */vt.exports,function(h,w){(function(){var f,L="4.17.21",O=200,P="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",R="Expected a function",Q="Invalid `variable` option passed into `_.template`",Y="__lodash_hash_undefined__",H=500,D="__lodash_placeholder__",V=1,q=2,z=4,an=1,un=2,C=1,_n=2,W=4,A=8,$=16,X=32,k=64,en=128,cn=256,Ur=512,Fs=30,Ms="...",Bs=800,Us=16,Nu=1,Ds=2,qs=3,we=1/0,ae=9007199254740991,$s=17976931348623157e292,mt=0/0,Xn=4294967295,Ns=Xn-1,Gs=Xn>>>1,Hs=[["ary",en],["bind",C],["bindKey",_n],["curry",A],["curryRight",$],["flip",Ur],["partial",X],["partialRight",k],["rearg",cn]],Ee="[object Arguments]",xt="[object Array]",zs="[object AsyncFunction]",Xe="[object Boolean]",Je="[object Date]",Ks="[object DOMException]",yt="[object Error]",At="[object Function]",Gu="[object GeneratorFunction]",Gn="[object Map]",Qe="[object Number]",Zs="[object Null]",kn="[object Object]",Hu="[object Promise]",Ys="[object Proxy]",Ve="[object RegExp]",Hn="[object Set]",ke="[object String]",St="[object Symbol]",Xs="[object Undefined]",je="[object WeakMap]",Js="[object WeakSet]",nt="[object ArrayBuffer]",Ce="[object DataView]",Dr="[object Float32Array]",qr="[object Float64Array]",$r="[object Int8Array]",Nr="[object Int16Array]",Gr="[object Int32Array]",Hr="[object Uint8Array]",zr="[object Uint8ClampedArray]",Kr="[object Uint16Array]",Zr="[object Uint32Array]",Qs=/\b__p \+= '';/g,Vs=/\b(__p \+=) '' \+/g,ks=/(__e\(.*?\)|\b__t\)) \+\n'';/g,zu=/&(?:amp|lt|gt|quot|#39);/g,Ku=/[&<>"']/g,js=RegExp(zu.source),nl=RegExp(Ku.source),el=/<%-([\s\S]+?)%>/g,tl=/<%([\s\S]+?)%>/g,Zu=/<%=([\s\S]+?)%>/g,rl=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,il=/^\w*$/,ul=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Yr=/[\\^$.*+?()[\]{}|]/g,fl=RegExp(Yr.source),Xr=/^\s+/,ol=/\s/,al=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,sl=/\{\n\/\* \[wrapped with (.+)\] \*/,ll=/,? & /,cl=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,hl=/[()=,{}\[\]\/\s]/,gl=/\\(\\)?/g,pl=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Yu=/\w*$/,_l=/^[-+]0x[0-9a-f]+$/i,vl=/^0b[01]+$/i,dl=/^\[object .+?Constructor\]$/,wl=/^0o[0-7]+$/i,ml=/^(?:0|[1-9]\d*)$/,xl=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,bt=/($^)/,yl=/['\n\r\u2028\u2029\\]/g,It="\\ud800-\\udfff",Al="\\u0300-\\u036f",Sl="\\ufe20-\\ufe2f",bl="\\u20d0-\\u20ff",Xu=Al+Sl+bl,Ju="\\u2700-\\u27bf",Qu="a-z\\xdf-\\xf6\\xf8-\\xff",Il="\\xac\\xb1\\xd7\\xf7",Rl="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Tl="\\u2000-\\u206f",Ol=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Vu="A-Z\\xc0-\\xd6\\xd8-\\xde",ku="\\ufe0e\\ufe0f",ju=Il+Rl+Tl+Ol,Jr="['’]",El="["+It+"]",nf="["+ju+"]",Rt="["+Xu+"]",ef="\\d+",Cl="["+Ju+"]",tf="["+Qu+"]",rf="[^"+It+ju+ef+Ju+Qu+Vu+"]",Qr="\\ud83c[\\udffb-\\udfff]",Ll="(?:"+Rt+"|"+Qr+")",uf="[^"+It+"]",Vr="(?:\\ud83c[\\udde6-\\uddff]){2}",kr="[\\ud800-\\udbff][\\udc00-\\udfff]",Le="["+Vu+"]",ff="\\u200d",of="(?:"+tf+"|"+rf+")",Pl="(?:"+Le+"|"+rf+")",af="(?:"+Jr+"(?:d|ll|m|re|s|t|ve))?",sf="(?:"+Jr+"(?:D|LL|M|RE|S|T|VE))?",lf=Ll+"?",cf="["+ku+"]?",Wl="(?:"+ff+"(?:"+[uf,Vr,kr].join("|")+")"+cf+lf+")*",Fl="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ml="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",hf=cf+lf+Wl,Bl="(?:"+[Cl,Vr,kr].join("|")+")"+hf,Ul="(?:"+[uf+Rt+"?",Rt,Vr,kr,El].join("|")+")",Dl=RegExp(Jr,"g"),ql=RegExp(Rt,"g"),jr=RegExp(Qr+"(?="+Qr+")|"+Ul+hf,"g"),$l=RegExp([Le+"?"+tf+"+"+af+"(?="+[nf,Le,"$"].join("|")+")",Pl+"+"+sf+"(?="+[nf,Le+of,"$"].join("|")+")",Le+"?"+of+"+"+af,Le+"+"+sf,Ml,Fl,ef,Bl].join("|"),"g"),Nl=RegExp("["+ff+It+Xu+ku+"]"),Gl=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Hl=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],zl=-1,tn={};tn[Dr]=tn[qr]=tn[$r]=tn[Nr]=tn[Gr]=tn[Hr]=tn[zr]=tn[Kr]=tn[Zr]=!0,tn[Ee]=tn[xt]=tn[nt]=tn[Xe]=tn[Ce]=tn[Je]=tn[yt]=tn[At]=tn[Gn]=tn[Qe]=tn[kn]=tn[Ve]=tn[Hn]=tn[ke]=tn[je]=!1;var nn={};nn[Ee]=nn[xt]=nn[nt]=nn[Ce]=nn[Xe]=nn[Je]=nn[Dr]=nn[qr]=nn[$r]=nn[Nr]=nn[Gr]=nn[Gn]=nn[Qe]=nn[kn]=nn[Ve]=nn[Hn]=nn[ke]=nn[St]=nn[Hr]=nn[zr]=nn[Kr]=nn[Zr]=!0,nn[yt]=nn[At]=nn[je]=!1;var Kl={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a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:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Zl={"&":"&","<":"<",">":">",'"':""","'":"'"},Yl={"&":"&","<":"<",">":">",""":'"',"'":"'"},Xl={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Jl=parseFloat,Ql=parseInt,gf=typeof Ke=="object"&&Ke&&Ke.Object===Object&&Ke,Vl=typeof self=="object"&&self&&self.Object===Object&&self,vn=gf||Vl||Function("return this")(),ni=w&&!w.nodeType&&w,me=ni&&!0&&h&&!h.nodeType&&h,pf=me&&me.exports===ni,ei=pf&&gf.process,Wn=function(){try{var l=me&&me.require&&me.require("util").types;return l||ei&&ei.binding&&ei.binding("util")}catch{}}(),_f=Wn&&Wn.isArrayBuffer,vf=Wn&&Wn.isDate,df=Wn&&Wn.isMap,wf=Wn&&Wn.isRegExp,mf=Wn&&Wn.isSet,xf=Wn&&Wn.isTypedArray;function Tn(l,p,g){switch(g.length){case 0:return l.call(p);case 1:return l.call(p,g[0]);case 2:return l.call(p,g[0],g[1]);case 3:return l.call(p,g[0],g[1],g[2])}return l.apply(p,g)}function kl(l,p,g,x){for(var T=-1,K=l==null?0:l.length;++T-1}function ti(l,p,g){for(var x=-1,T=l==null?0:l.length;++x-1;);return g}function Of(l,p){for(var g=l.length;g--&&Pe(p,l[g],0)>-1;);return g}function oc(l,p){for(var g=l.length,x=0;g--;)l[g]===p&&++x;return x}var ac=fi(Kl),sc=fi(Zl);function lc(l){return"\\"+Xl[l]}function cc(l,p){return l==null?f:l[p]}function We(l){return Nl.test(l)}function hc(l){return Gl.test(l)}function gc(l){for(var p,g=[];!(p=l.next()).done;)g.push(p.value);return g}function li(l){var p=-1,g=Array(l.size);return l.forEach(function(x,T){g[++p]=[T,x]}),g}function Ef(l,p){return function(g){return l(p(g))}}function ce(l,p){for(var g=-1,x=l.length,T=0,K=[];++g-1}function nh(n,e){var t=this.__data__,r=zt(t,n);return r<0?(++this.size,t.push([n,e])):t[r][1]=e,this}jn.prototype.clear=Qc,jn.prototype.delete=Vc,jn.prototype.get=kc,jn.prototype.has=jc,jn.prototype.set=nh;function ne(n){var e=-1,t=n==null?0:n.length;for(this.clear();++e=e?n:e)),n}function Un(n,e,t,r,i,o){var a,s=e&V,c=e&q,_=e&z;if(t&&(a=i?t(n,r,i,o):t(n)),a!==f)return a;if(!fn(n))return n;var v=E(n);if(v){if(a=ig(n),!s)return Sn(n,a)}else{var d=mn(n),m=d==At||d==Gu;if(de(n))return co(n,s);if(d==kn||d==Ee||m&&!i){if(a=c||m?{}:Lo(n),!s)return c?Yh(n,vh(a,n)):Zh(n,Nf(a,n))}else{if(!nn[d])return i?n:{};a=ug(n,d,s)}}o||(o=new Kn);var y=o.get(n);if(y)return y;o.set(n,a),fa(n)?n.forEach(function(I){a.add(Un(I,e,t,I,n,o))}):ia(n)&&n.forEach(function(I,U){a.set(U,Un(I,e,t,U,n,o))});var b=_?c?Bi:Mi:c?In:pn,M=v?f:b(n);return Fn(M||n,function(I,U){M&&(U=I,I=n[U]),ot(a,U,Un(I,e,t,U,n,o))}),a}function dh(n){var e=pn(n);return function(t){return Gf(t,n,e)}}function Gf(n,e,t){var r=t.length;if(n==null)return!r;for(n=j(n);r--;){var i=t[r],o=e[i],a=n[i];if(a===f&&!(i in n)||!o(a))return!1}return!0}function Hf(n,e,t){if(typeof n!="function")throw new Mn(R);return pt(function(){n.apply(f,t)},e)}function at(n,e,t,r){var i=-1,o=Tt,a=!0,s=n.length,c=[],_=e.length;if(!s)return c;t&&(e=rn(e,On(t))),r?(o=ti,a=!1):e.length>=O&&(o=et,a=!1,e=new Ae(e));n:for(;++ii?0:i+t),r=r===f||r>i?i:F(r),r<0&&(r+=i),r=t>r?0:aa(r);t0&&t(s)?e>1?dn(s,e-1,t,r,i):le(i,s):r||(i[i.length]=s)}return i}var di=wo(),Zf=wo(!0);function Jn(n,e){return n&&di(n,e,pn)}function wi(n,e){return n&&Zf(n,e,pn)}function Zt(n,e){return se(e,function(t){return ue(n[t])})}function be(n,e){e=_e(e,n);for(var t=0,r=e.length;n!=null&&te}function xh(n,e){return n!=null&&J.call(n,e)}function yh(n,e){return n!=null&&e in j(n)}function Ah(n,e,t){return n>=wn(e,t)&&n=120&&v.length>=120)?new Ae(a&&v):f}v=n[0];var d=-1,m=s[0];n:for(;++d-1;)s!==n&&Ut.call(s,c,1),Ut.call(n,c,1);return n}function ro(n,e){for(var t=n?e.length:0,r=t-1;t--;){var i=e[t];if(t==r||i!==o){var o=i;ie(i)?Ut.call(n,i,1):Oi(n,i)}}return n}function Ii(n,e){return n+$t(Uf()*(e-n+1))}function Mh(n,e,t,r){for(var i=-1,o=gn(qt((e-n)/(t||1)),0),a=g(o);o--;)a[r?o:++i]=n,n+=t;return a}function Ri(n,e){var t="";if(!n||e<1||e>ae)return t;do e%2&&(t+=n),e=$t(e/2),e&&(n+=n);while(e);return t}function B(n,e){return Hi(Fo(n,e,Rn),n+"")}function Bh(n){return $f(ze(n))}function Uh(n,e){var t=ze(n);return rr(t,Se(e,0,t.length))}function ct(n,e,t,r){if(!fn(n))return n;e=_e(e,n);for(var i=-1,o=e.length,a=o-1,s=n;s!=null&&++ii?0:i+e),t=t>i?i:t,t<0&&(t+=i),i=e>t?0:t-e>>>0,e>>>=0;for(var o=g(i);++r>>1,a=n[o];a!==null&&!Cn(a)&&(t?a<=e:a=O){var _=e?null:Vh(n);if(_)return Et(_);a=!1,i=et,c=new Ae}else c=e?[]:s;n:for(;++r=r?n:Dn(n,e,t)}var lo=Oc||function(n){return vn.clearTimeout(n)};function co(n,e){if(e)return n.slice();var t=n.length,r=Pf?Pf(t):new n.constructor(t);return n.copy(r),r}function Pi(n){var e=new n.constructor(n.byteLength);return new Mt(e).set(new Mt(n)),e}function Gh(n,e){var t=e?Pi(n.buffer):n.buffer;return new n.constructor(t,n.byteOffset,n.byteLength)}function Hh(n){var e=new n.constructor(n.source,Yu.exec(n));return e.lastIndex=n.lastIndex,e}function zh(n){return ft?j(ft.call(n)):{}}function ho(n,e){var t=e?Pi(n.buffer):n.buffer;return new n.constructor(t,n.byteOffset,n.length)}function go(n,e){if(n!==e){var t=n!==f,r=n===null,i=n===n,o=Cn(n),a=e!==f,s=e===null,c=e===e,_=Cn(e);if(!s&&!_&&!o&&n>e||o&&a&&c&&!s&&!_||r&&a&&c||!t&&c||!i)return 1;if(!r&&!o&&!_&&n=s)return c;var _=t[r];return c*(_=="desc"?-1:1)}}return n.index-e.index}function po(n,e,t,r){for(var i=-1,o=n.length,a=t.length,s=-1,c=e.length,_=gn(o-a,0),v=g(c+_),d=!r;++s1?t[i-1]:f,a=i>2?t[2]:f;for(o=n.length>3&&typeof o=="function"?(i--,o):f,a&&yn(t[0],t[1],a)&&(o=i<3?f:o,i=1),e=j(e);++r-1?i[o?e[a]:a]:f}}function yo(n){return re(function(e){var t=e.length,r=t,i=Bn.prototype.thru;for(n&&e.reverse();r--;){var o=e[r];if(typeof o!="function")throw new Mn(R);if(i&&!a&&er(o)=="wrapper")var a=new Bn([],!0)}for(r=a?r:t;++r1&&G.reverse(),v&&cs))return!1;var _=o.get(n),v=o.get(e);if(_&&v)return _==e&&v==n;var d=-1,m=!0,y=t&un?new Ae:f;for(o.set(n,e),o.set(e,n);++d1?"& ":"")+e[r],e=e.join(t>2?", ":" "),n.replace(al,`{ -/* [wrapped with `+e+`] */ -`)}function og(n){return E(n)||Te(n)||!!(Mf&&n&&n[Mf])}function ie(n,e){var t=typeof n;return e=e??ae,!!e&&(t=="number"||t!="symbol"&&ml.test(n))&&n>-1&&n%1==0&&n0){if(++e>=Bs)return arguments[0]}else e=0;return n.apply(f,arguments)}}function rr(n,e){var t=-1,r=n.length,i=r-1;for(e=e===f?r:e;++t1?n[e-1]:f;return t=typeof t=="function"?(n.pop(),t):f,Zo(n,t)});function Yo(n){var e=u(n);return e.__chain__=!0,e}function wp(n,e){return e(n),n}function ir(n,e){return e(n)}var mp=re(function(n){var e=n.length,t=e?n[0]:0,r=this.__wrapped__,i=function(o){return vi(o,n)};return e>1||this.__actions__.length||!(r instanceof N)||!ie(t)?this.thru(i):(r=r.slice(t,+t+(e?1:0)),r.__actions__.push({func:ir,args:[i],thisArg:f}),new Bn(r,this.__chain__).thru(function(o){return e&&!o.length&&o.push(f),o}))});function xp(){return Yo(this)}function yp(){return new Bn(this.value(),this.__chain__)}function Ap(){this.__values__===f&&(this.__values__=oa(this.value()));var n=this.__index__>=this.__values__.length,e=n?f:this.__values__[this.__index__++];return{done:n,value:e}}function Sp(){return this}function bp(n){for(var e,t=this;t instanceof Ht;){var r=$o(t);r.__index__=0,r.__values__=f,e?i.__wrapped__=r:e=r;var i=r;t=t.__wrapped__}return i.__wrapped__=n,e}function Ip(){var n=this.__wrapped__;if(n instanceof N){var e=n;return this.__actions__.length&&(e=new N(this)),e=e.reverse(),e.__actions__.push({func:ir,args:[zi],thisArg:f}),new Bn(e,this.__chain__)}return this.thru(zi)}function Rp(){return ao(this.__wrapped__,this.__actions__)}var Tp=Qt(function(n,e,t){J.call(n,t)?++n[t]:ee(n,t,1)});function Op(n,e,t){var r=E(n)?yf:wh;return t&&yn(n,e,t)&&(e=f),r(n,S(e,3))}function Ep(n,e){var t=E(n)?se:Kf;return t(n,S(e,3))}var Cp=xo(No),Lp=xo(Go);function Pp(n,e){return dn(ur(n,e),1)}function Wp(n,e){return dn(ur(n,e),we)}function Fp(n,e,t){return t=t===f?1:F(t),dn(ur(n,e),t)}function Xo(n,e){var t=E(n)?Fn:ge;return t(n,S(e,3))}function Jo(n,e){var t=E(n)?jl:zf;return t(n,S(e,3))}var Mp=Qt(function(n,e,t){J.call(n,t)?n[t].push(e):ee(n,t,[e])});function Bp(n,e,t,r){n=bn(n)?n:ze(n),t=t&&!r?F(t):0;var i=n.length;return t<0&&(t=gn(i+t,0)),lr(n)?t<=i&&n.indexOf(e,t)>-1:!!i&&Pe(n,e,t)>-1}var Up=B(function(n,e,t){var r=-1,i=typeof e=="function",o=bn(n)?g(n.length):[];return ge(n,function(a){o[++r]=i?Tn(e,a,t):st(a,e,t)}),o}),Dp=Qt(function(n,e,t){ee(n,t,e)});function ur(n,e){var t=E(n)?rn:Vf;return t(n,S(e,3))}function qp(n,e,t,r){return n==null?[]:(E(e)||(e=e==null?[]:[e]),t=r?f:t,E(t)||(t=t==null?[]:[t]),eo(n,e,t))}var $p=Qt(function(n,e,t){n[t?0:1].push(e)},function(){return[[],[]]});function Np(n,e,t){var r=E(n)?ri:If,i=arguments.length<3;return r(n,S(e,4),t,i,ge)}function Gp(n,e,t){var r=E(n)?nc:If,i=arguments.length<3;return r(n,S(e,4),t,i,zf)}function Hp(n,e){var t=E(n)?se:Kf;return t(n,ar(S(e,3)))}function zp(n){var e=E(n)?$f:Bh;return e(n)}function Kp(n,e,t){(t?yn(n,e,t):e===f)?e=1:e=F(e);var r=E(n)?gh:Uh;return r(n,e)}function Zp(n){var e=E(n)?ph:qh;return e(n)}function Yp(n){if(n==null)return 0;if(bn(n))return lr(n)?Fe(n):n.length;var e=mn(n);return e==Gn||e==Hn?n.size:Ai(n).length}function Xp(n,e,t){var r=E(n)?ii:$h;return t&&yn(n,e,t)&&(e=f),r(n,S(e,3))}var Jp=B(function(n,e){if(n==null)return[];var t=e.length;return t>1&&yn(n,e[0],e[1])?e=[]:t>2&&yn(e[0],e[1],e[2])&&(e=[e[0]]),eo(n,dn(e,1),[])}),fr=Ec||function(){return vn.Date.now()};function Qp(n,e){if(typeof e!="function")throw new Mn(R);return n=F(n),function(){if(--n<1)return e.apply(this,arguments)}}function Qo(n,e,t){return e=t?f:e,e=n&&e==null?n.length:e,te(n,en,f,f,f,f,e)}function Vo(n,e){var t;if(typeof e!="function")throw new Mn(R);return n=F(n),function(){return--n>0&&(t=e.apply(this,arguments)),n<=1&&(e=f),t}}var Zi=B(function(n,e,t){var r=C;if(t.length){var i=ce(t,Ge(Zi));r|=X}return te(n,r,e,t,i)}),ko=B(function(n,e,t){var r=C|_n;if(t.length){var i=ce(t,Ge(ko));r|=X}return te(e,r,n,t,i)});function jo(n,e,t){e=t?f:e;var r=te(n,A,f,f,f,f,f,e);return r.placeholder=jo.placeholder,r}function na(n,e,t){e=t?f:e;var r=te(n,$,f,f,f,f,f,e);return r.placeholder=na.placeholder,r}function ea(n,e,t){var r,i,o,a,s,c,_=0,v=!1,d=!1,m=!0;if(typeof n!="function")throw new Mn(R);e=$n(e)||0,fn(t)&&(v=!!t.leading,d="maxWait"in t,o=d?gn($n(t.maxWait)||0,e):o,m="trailing"in t?!!t.trailing:m);function y(ln){var Yn=r,oe=i;return r=i=f,_=ln,a=n.apply(oe,Yn),a}function b(ln){return _=ln,s=pt(U,e),v?y(ln):a}function M(ln){var Yn=ln-c,oe=ln-_,xa=e-Yn;return d?wn(xa,o-oe):xa}function I(ln){var Yn=ln-c,oe=ln-_;return c===f||Yn>=e||Yn<0||d&&oe>=o}function U(){var ln=fr();if(I(ln))return G(ln);s=pt(U,M(ln))}function G(ln){return s=f,m&&r?y(ln):(r=i=f,a)}function Ln(){s!==f&&lo(s),_=0,r=c=i=s=f}function An(){return s===f?a:G(fr())}function Pn(){var ln=fr(),Yn=I(ln);if(r=arguments,i=this,c=ln,Yn){if(s===f)return b(c);if(d)return lo(s),s=pt(U,e),y(c)}return s===f&&(s=pt(U,e)),a}return Pn.cancel=Ln,Pn.flush=An,Pn}var Vp=B(function(n,e){return Hf(n,1,e)}),kp=B(function(n,e,t){return Hf(n,$n(e)||0,t)});function jp(n){return te(n,Ur)}function or(n,e){if(typeof n!="function"||e!=null&&typeof e!="function")throw new Mn(R);var t=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=t.cache;if(o.has(i))return o.get(i);var a=n.apply(this,r);return t.cache=o.set(i,a)||o,a};return t.cache=new(or.Cache||ne),t}or.Cache=ne;function ar(n){if(typeof n!="function")throw new Mn(R);return function(){var e=arguments;switch(e.length){case 0:return!n.call(this);case 1:return!n.call(this,e[0]);case 2:return!n.call(this,e[0],e[1]);case 3:return!n.call(this,e[0],e[1],e[2])}return!n.apply(this,e)}}function n_(n){return Vo(2,n)}var e_=Nh(function(n,e){e=e.length==1&&E(e[0])?rn(e[0],On(S())):rn(dn(e,1),On(S()));var t=e.length;return B(function(r){for(var i=-1,o=wn(r.length,t);++i=e}),Te=Xf(function(){return arguments}())?Xf:function(n){return on(n)&&J.call(n,"callee")&&!Ff.call(n,"callee")},E=g.isArray,v_=_f?On(_f):bh;function bn(n){return n!=null&&sr(n.length)&&!ue(n)}function sn(n){return on(n)&&bn(n)}function d_(n){return n===!0||n===!1||on(n)&&xn(n)==Xe}var de=Lc||iu,w_=vf?On(vf):Ih;function m_(n){return on(n)&&n.nodeType===1&&!_t(n)}function x_(n){if(n==null)return!0;if(bn(n)&&(E(n)||typeof n=="string"||typeof n.splice=="function"||de(n)||He(n)||Te(n)))return!n.length;var e=mn(n);if(e==Gn||e==Hn)return!n.size;if(gt(n))return!Ai(n).length;for(var t in n)if(J.call(n,t))return!1;return!0}function y_(n,e){return lt(n,e)}function A_(n,e,t){t=typeof t=="function"?t:f;var r=t?t(n,e):f;return r===f?lt(n,e,f,t):!!r}function Xi(n){if(!on(n))return!1;var e=xn(n);return e==yt||e==Ks||typeof n.message=="string"&&typeof n.name=="string"&&!_t(n)}function S_(n){return typeof n=="number"&&Bf(n)}function ue(n){if(!fn(n))return!1;var e=xn(n);return e==At||e==Gu||e==zs||e==Ys}function ra(n){return typeof n=="number"&&n==F(n)}function sr(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=ae}function fn(n){var e=typeof n;return n!=null&&(e=="object"||e=="function")}function on(n){return n!=null&&typeof n=="object"}var ia=df?On(df):Th;function b_(n,e){return n===e||yi(n,e,Di(e))}function I_(n,e,t){return t=typeof t=="function"?t:f,yi(n,e,Di(e),t)}function R_(n){return ua(n)&&n!=+n}function T_(n){if(lg(n))throw new T(P);return Jf(n)}function O_(n){return n===null}function E_(n){return n==null}function ua(n){return typeof n=="number"||on(n)&&xn(n)==Qe}function _t(n){if(!on(n)||xn(n)!=kn)return!1;var e=Bt(n);if(e===null)return!0;var t=J.call(e,"constructor")&&e.constructor;return typeof t=="function"&&t instanceof t&&Pt.call(t)==Ic}var Ji=wf?On(wf):Oh;function C_(n){return ra(n)&&n>=-ae&&n<=ae}var fa=mf?On(mf):Eh;function lr(n){return typeof n=="string"||!E(n)&&on(n)&&xn(n)==ke}function Cn(n){return typeof n=="symbol"||on(n)&&xn(n)==St}var He=xf?On(xf):Ch;function L_(n){return n===f}function P_(n){return on(n)&&mn(n)==je}function W_(n){return on(n)&&xn(n)==Js}var F_=nr(Si),M_=nr(function(n,e){return n<=e});function oa(n){if(!n)return[];if(bn(n))return lr(n)?zn(n):Sn(n);if(tt&&n[tt])return gc(n[tt]());var e=mn(n),t=e==Gn?li:e==Hn?Et:ze;return t(n)}function fe(n){if(!n)return n===0?n:0;if(n=$n(n),n===we||n===-we){var e=n<0?-1:1;return e*$s}return n===n?n:0}function F(n){var e=fe(n),t=e%1;return e===e?t?e-t:e:0}function aa(n){return n?Se(F(n),0,Xn):0}function $n(n){if(typeof n=="number")return n;if(Cn(n))return mt;if(fn(n)){var e=typeof n.valueOf=="function"?n.valueOf():n;n=fn(e)?e+"":e}if(typeof n!="string")return n===0?n:+n;n=Rf(n);var t=vl.test(n);return t||wl.test(n)?Ql(n.slice(2),t?2:8):_l.test(n)?mt:+n}function sa(n){return Qn(n,In(n))}function B_(n){return n?Se(F(n),-ae,ae):n===0?n:0}function Z(n){return n==null?"":En(n)}var U_=$e(function(n,e){if(gt(e)||bn(e)){Qn(e,pn(e),n);return}for(var t in e)J.call(e,t)&&ot(n,t,e[t])}),la=$e(function(n,e){Qn(e,In(e),n)}),cr=$e(function(n,e,t,r){Qn(e,In(e),n,r)}),D_=$e(function(n,e,t,r){Qn(e,pn(e),n,r)}),q_=re(vi);function $_(n,e){var t=qe(n);return e==null?t:Nf(t,e)}var N_=B(function(n,e){n=j(n);var t=-1,r=e.length,i=r>2?e[2]:f;for(i&&yn(e[0],e[1],i)&&(r=1);++t1),o}),Qn(n,Bi(n),t),r&&(t=Un(t,V|q|z,kh));for(var i=e.length;i--;)Oi(t,e[i]);return t});function uv(n,e){return ha(n,ar(S(e)))}var fv=re(function(n,e){return n==null?{}:Wh(n,e)});function ha(n,e){if(n==null)return{};var t=rn(Bi(n),function(r){return[r]});return e=S(e),to(n,t,function(r,i){return e(r,i[0])})}function ov(n,e,t){e=_e(e,n);var r=-1,i=e.length;for(i||(i=1,n=f);++re){var r=n;n=e,e=r}if(t||n%1||e%1){var i=Uf();return wn(n+i*(e-n+Jl("1e-"+((i+"").length-1))),e)}return Ii(n,e)}var wv=Ne(function(n,e,t){return e=e.toLowerCase(),n+(t?_a(e):e)});function _a(n){return ki(Z(n).toLowerCase())}function va(n){return n=Z(n),n&&n.replace(xl,ac).replace(ql,"")}function mv(n,e,t){n=Z(n),e=En(e);var r=n.length;t=t===f?r:Se(F(t),0,r);var i=t;return t-=e.length,t>=0&&n.slice(t,i)==e}function xv(n){return n=Z(n),n&&nl.test(n)?n.replace(Ku,sc):n}function yv(n){return n=Z(n),n&&fl.test(n)?n.replace(Yr,"\\$&"):n}var Av=Ne(function(n,e,t){return n+(t?"-":"")+e.toLowerCase()}),Sv=Ne(function(n,e,t){return n+(t?" ":"")+e.toLowerCase()}),bv=mo("toLowerCase");function Iv(n,e,t){n=Z(n),e=F(e);var r=e?Fe(n):0;if(!e||r>=e)return n;var i=(e-r)/2;return jt($t(i),t)+n+jt(qt(i),t)}function Rv(n,e,t){n=Z(n),e=F(e);var r=e?Fe(n):0;return e&&r>>0,t?(n=Z(n),n&&(typeof e=="string"||e!=null&&!Ji(e))&&(e=En(e),!e&&We(n))?ve(zn(n),0,t):n.split(e,t)):[]}var Wv=Ne(function(n,e,t){return n+(t?" ":"")+ki(e)});function Fv(n,e,t){return n=Z(n),t=t==null?0:Se(F(t),0,n.length),e=En(e),n.slice(t,t+e.length)==e}function Mv(n,e,t){var r=u.templateSettings;t&&yn(n,e,t)&&(e=f),n=Z(n),e=cr({},e,r,Ro);var i=cr({},e.imports,r.imports,Ro),o=pn(i),a=si(i,o),s,c,_=0,v=e.interpolate||bt,d="__p += '",m=ci((e.escape||bt).source+"|"+v.source+"|"+(v===Zu?pl:bt).source+"|"+(e.evaluate||bt).source+"|$","g"),y="//# sourceURL="+(J.call(e,"sourceURL")?(e.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++zl+"]")+` -`;n.replace(m,function(I,U,G,Ln,An,Pn){return G||(G=Ln),d+=n.slice(_,Pn).replace(yl,lc),U&&(s=!0,d+=`' + -__e(`+U+`) + -'`),An&&(c=!0,d+=`'; -`+An+`; -__p += '`),G&&(d+=`' + -((__t = (`+G+`)) == null ? '' : __t) + -'`),_=Pn+I.length,I}),d+=`'; -`;var b=J.call(e,"variable")&&e.variable;if(!b)d=`with (obj) { -`+d+` -} -`;else if(hl.test(b))throw new T(Q);d=(c?d.replace(Qs,""):d).replace(Vs,"$1").replace(ks,"$1;"),d="function("+(b||"obj")+`) { -`+(b?"":`obj || (obj = {}); -`)+"var __t, __p = ''"+(s?", __e = _.escape":"")+(c?`, __j = Array.prototype.join; -function print() { __p += __j.call(arguments, '') } -`:`; -`)+d+`return __p -}`;var M=wa(function(){return K(o,y+"return "+d).apply(f,a)});if(M.source=d,Xi(M))throw M;return M}function Bv(n){return Z(n).toLowerCase()}function Uv(n){return Z(n).toUpperCase()}function Dv(n,e,t){if(n=Z(n),n&&(t||e===f))return Rf(n);if(!n||!(e=En(e)))return n;var r=zn(n),i=zn(e),o=Tf(r,i),a=Of(r,i)+1;return ve(r,o,a).join("")}function qv(n,e,t){if(n=Z(n),n&&(t||e===f))return n.slice(0,Cf(n)+1);if(!n||!(e=En(e)))return n;var r=zn(n),i=Of(r,zn(e))+1;return ve(r,0,i).join("")}function $v(n,e,t){if(n=Z(n),n&&(t||e===f))return n.replace(Xr,"");if(!n||!(e=En(e)))return n;var r=zn(n),i=Tf(r,zn(e));return ve(r,i).join("")}function Nv(n,e){var t=Fs,r=Ms;if(fn(e)){var i="separator"in e?e.separator:i;t="length"in e?F(e.length):t,r="omission"in e?En(e.omission):r}n=Z(n);var o=n.length;if(We(n)){var a=zn(n);o=a.length}if(t>=o)return n;var s=t-Fe(r);if(s<1)return r;var c=a?ve(a,0,s).join(""):n.slice(0,s);if(i===f)return c+r;if(a&&(s+=c.length-s),Ji(i)){if(n.slice(s).search(i)){var _,v=c;for(i.global||(i=ci(i.source,Z(Yu.exec(i))+"g")),i.lastIndex=0;_=i.exec(v);)var d=_.index;c=c.slice(0,d===f?s:d)}}else if(n.indexOf(En(i),s)!=s){var m=c.lastIndexOf(i);m>-1&&(c=c.slice(0,m))}return c+r}function Gv(n){return n=Z(n),n&&js.test(n)?n.replace(zu,dc):n}var Hv=Ne(function(n,e,t){return n+(t?" ":"")+e.toUpperCase()}),ki=mo("toUpperCase");function da(n,e,t){return n=Z(n),e=t?f:e,e===f?hc(n)?xc(n):rc(n):n.match(e)||[]}var wa=B(function(n,e){try{return Tn(n,f,e)}catch(t){return Xi(t)?t:new T(t)}}),zv=re(function(n,e){return Fn(e,function(t){t=Vn(t),ee(n,t,Zi(n[t],n))}),n});function Kv(n){var e=n==null?0:n.length,t=S();return n=e?rn(n,function(r){if(typeof r[1]!="function")throw new Mn(R);return[t(r[0]),r[1]]}):[],B(function(r){for(var i=-1;++iae)return[];var t=Xn,r=wn(n,Xn);e=S(e),n-=Xn;for(var i=ai(r,e);++t0||e<0)?new N(t):(n<0?t=t.takeRight(-n):n&&(t=t.drop(n)),e!==f&&(e=F(e),t=e<0?t.dropRight(-e):t.take(e-n)),t)},N.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},N.prototype.toArray=function(){return this.take(Xn)},Jn(N.prototype,function(n,e){var t=/^(?:filter|find|map|reject)|While$/.test(e),r=/^(?:head|last)$/.test(e),i=u[r?"take"+(e=="last"?"Right":""):e],o=r||/^find/.test(e);i&&(u.prototype[e]=function(){var a=this.__wrapped__,s=r?[1]:arguments,c=a instanceof N,_=s[0],v=c||E(a),d=function(U){var G=i.apply(u,le([U],s));return r&&m?G[0]:G};v&&t&&typeof _=="function"&&_.length!=1&&(c=v=!1);var m=this.__chain__,y=!!this.__actions__.length,b=o&&!m,M=c&&!y;if(!o&&v){a=M?a:new N(this);var I=n.apply(a,s);return I.__actions__.push({func:ir,args:[d],thisArg:f}),new Bn(I,m)}return b&&M?n.apply(this,s):(I=this.thru(d),b?r?I.value()[0]:I.value():I)})}),Fn(["pop","push","shift","sort","splice","unshift"],function(n){var e=Ct[n],t=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",r=/^(?:pop|shift)$/.test(n);u.prototype[n]=function(){var i=arguments;if(r&&!this.__chain__){var o=this.value();return e.apply(E(o)?o:[],i)}return this[t](function(a){return e.apply(E(a)?a:[],i)})}}),Jn(N.prototype,function(n,e){var t=u[e];if(t){var r=t.name+"";J.call(De,r)||(De[r]=[]),De[r].push({name:e,func:t})}}),De[Vt(f,_n).name]=[{name:"wrapper",func:f}],N.prototype.clone=Gc,N.prototype.reverse=Hc,N.prototype.value=zc,u.prototype.at=mp,u.prototype.chain=xp,u.prototype.commit=yp,u.prototype.next=Ap,u.prototype.plant=bp,u.prototype.reverse=Ip,u.prototype.toJSON=u.prototype.valueOf=u.prototype.value=Rp,u.prototype.first=u.prototype.head,tt&&(u.prototype[tt]=Sp),u},Me=yc();me?((me.exports=Me)._=Me,ni._=Me):vn._=Me}).call(Ke)}(vt,vt.exports);var Nn=vt.exports,ya=function(){},Aa=ya(),Oe=function(h){return h!==Aa&&h!==null},Sa=Oe,ba=Array.prototype.forEach,Ia=Object.create,Ra=function(h,w){var f;for(f in h)w[f]=h[f]},Ta=function(h){var w=Ia(null);return ba.call(arguments,function(f){Sa(f)&&Ra(Object(f),w)}),w},Oa=function(){var h=Math.sign;return typeof h!="function"?!1:h(10)===1&&h(-20)===-1},hr,uu;function Ea(){return uu||(uu=1,hr=function(h){return h=Number(h),isNaN(h)||h===0?h:h>0?1:-1}),hr}var Ca=Oa()?Math.sign:Ea(),La=Ca,Pa=Math.abs,Wa=Math.floor,Fa=function(h){return isNaN(h)?0:(h=Number(h),h===0||!isFinite(h)?h:La(h)*Wa(Pa(h)))},Ma=Fa,Ba=Math.max,Ua=function(h){return Ba(0,Ma(h))},fu=function(h){if(typeof h!="function")throw new TypeError(h+" is not a function");return h},Da=Oe,ou=function(h){if(!Da(h))throw new TypeError("Cannot use null or undefined");return h},qa={exports:{}},$a=function(){var h=Object.assign,w;return typeof h!="function"?!1:(w={foo:"raz"},h(w,{bar:"dwa"},{trzy:"trzy"}),w.foo+w.bar+w.trzy==="razdwatrzy")},gr,au;function Na(){return au||(au=1,gr=function(){try{return Object.keys("primitive"),!0}catch{return!1}}),gr}var pr,su;function Ga(){if(su)return pr;su=1;var h=Oe,w=Object.keys;return pr=function(f){return w(h(f)?Object(f):f)},pr}var _r,lu;function Ha(){return lu||(lu=1,_r=Na()()?Object.keys:Ga()),_r}var vr,cu;function za(){if(cu)return vr;cu=1;var h=Ha(),w=ou,f=Math.max;return vr=function(L,O){var P,R,Q=f(arguments.length,2),Y;for(L=Object(w(L)),Y=function(H){try{L[H]=O[H]}catch(D){P||(P=D)}},R=1;R-1},wr}var as=fs()?String.prototype.contains:os(),dt=_u,du=us,wu=hu,mu=Ta,Ze=as,ss=pu.exports=function(h,w){var f,L,O,P,R;return arguments.length<2||typeof h!="string"?(P=w,w=h,h=null):P=arguments[2],dt(h)?(f=Ze.call(h,"c"),L=Ze.call(h,"e"),O=Ze.call(h,"w")):(f=O=!0,L=!1),R={value:w,configurable:f,enumerable:L,writable:O},P?wu(mu(P),R):R};ss.gs=function(h,w,f){var L,O,P,R;return typeof h!="string"?(P=f,f=w,w=h,h=null):P=arguments[3],dt(w)?du(w)?dt(f)?du(f)||(P=f,f=void 0):f=void 0:(P=w,w=f=void 0):w=void 0,dt(h)?(L=Ze.call(h,"c"),O=Ze.call(h,"e")):(L=!0,O=!1),R={get:w,set:f,configurable:L,enumerable:O},P?wu(mu(P),R):R};var Ye=pu.exports,mr={exports:{}};(function(h,w){var f=Ye,L=fu,O=Function.prototype.apply,P=Function.prototype.call,R=Object.create,Q=Object.defineProperty,Y=Object.defineProperties,H=Object.prototype.hasOwnProperty,D={configurable:!0,enumerable:!1,writable:!0},V,q,z,an,un,C,_n;V=function(W,A){var $;return L(A),H.call(this,"__ee__")?$=this.__ee__:($=D.value=R(null),Q(this,"__ee__",D),D.value=null),$[W]?typeof $[W]=="object"?$[W].push(A):$[W]=[$[W],A]:$[W]=A,this},q=function(W,A){var $,X;return L(A),X=this,V.call(this,W,$=function(){z.call(X,W,$),O.call(A,this,arguments)}),$.__eeOnceListener__=A,this},z=function(W,A){var $,X,k,en;if(L(A),!H.call(this,"__ee__"))return this;if($=this.__ee__,!$[W])return this;if(X=$[W],typeof X=="object")for(en=0;k=X[en];++en)(k===A||k.__eeOnceListener__===A)&&(X.length===2?$[W]=X[en?0:1]:X.splice(en,1));else(X===A||X.__eeOnceListener__===A)&&delete $[W];return this},an=function(W){var A,$,X,k,en;if(H.call(this,"__ee__")&&(k=this.__ee__[W],!!k))if(typeof k=="object"){for($=arguments.length,en=new Array($-1),A=1;A<$;++A)en[A-1]=arguments[A];for(k=k.slice(),A=0;X=k[A];++A)O.call(X,this,en)}else switch(arguments.length){case 1:P.call(k,this);break;case 2:P.call(k,this,arguments[1]);break;case 3:P.call(k,this,arguments[1],arguments[2]);break;default:for($=arguments.length,en=new Array($-1),A=1;A<$;++A)en[A-1]=arguments[A];O.call(k,this,en)}},un={on:V,once:q,off:z,emit:an},C={on:f(V),once:f(q),off:f(z),emit:f(an)},_n=Y({},C),h.exports=w=function(W){return W==null?R(_n):Y(Object(W),C)},w.methods=un})(mr,mr.exports);var ls=mr.exports,xr,xu;function cs(){return xu||(xu=1,xr=function(){var h=Array.from,w,f;return typeof h!="function"?!1:(w=["raz","dwa"],f=h(w),!!(f&&f!==w&&f[1]==="dwa"))}),xr}var yr,yu;function hs(){return yu||(yu=1,yr=function(){return typeof globalThis!="object"||!globalThis?!1:globalThis.Array===Array}),yr}var Ar,Au;function gs(){if(Au)return Ar;Au=1;var h=function(){if(typeof self=="object"&&self)return self;if(typeof window=="object"&&window)return window;throw new Error("Unable to resolve global `this`")};return Ar=function(){if(this)return this;try{Object.defineProperty(Object.prototype,"__global__",{get:function(){return this},configurable:!0})}catch{return h()}try{return __global__||h()}finally{delete Object.prototype.__global__}}(),Ar}var Sr,Su;function wt(){return Su||(Su=1,Sr=hs()()?globalThis:gs()),Sr}var br,bu;function ps(){if(bu)return br;bu=1;var h=wt(),w={object:!0,symbol:!0};return br=function(){var f=h.Symbol,L;if(typeof f!="function")return!1;L=f("test symbol");try{String(L)}catch{return!1}return!(!w[typeof f.iterator]||!w[typeof f.toPrimitive]||!w[typeof f.toStringTag])},br}var Ir,Iu;function _s(){return Iu||(Iu=1,Ir=function(h){return h?typeof h=="symbol"?!0:!h.constructor||h.constructor.name!=="Symbol"?!1:h[h.constructor.toStringTag]==="Symbol":!1}),Ir}var Rr,Ru;function Tu(){if(Ru)return Rr;Ru=1;var h=_s();return Rr=function(w){if(!h(w))throw new TypeError(w+" is not a symbol");return w},Rr}var Tr,Ou;function vs(){if(Ou)return Tr;Ou=1;var h=Ye,w=Object.create,f=Object.defineProperty,L=Object.prototype,O=w(null);return Tr=function(P){for(var R=0,Q,Y;O[P+(R||"")];)++R;return P+=R||"",O[P]=!0,Q="@@"+P,f(L,Q,h.gs(null,function(H){Y||(Y=!0,f(this,Q,h(H)),Y=!1)})),Q},Tr}var Or,Eu;function ds(){if(Eu)return Or;Eu=1;var h=Ye,w=wt().Symbol;return Or=function(f){return Object.defineProperties(f,{hasInstance:h("",w&&w.hasInstance||f("hasInstance")),isConcatSpreadable:h("",w&&w.isConcatSpreadable||f("isConcatSpreadable")),iterator:h("",w&&w.iterator||f("iterator")),match:h("",w&&w.match||f("match")),replace:h("",w&&w.replace||f("replace")),search:h("",w&&w.search||f("search")),species:h("",w&&w.species||f("species")),split:h("",w&&w.split||f("split")),toPrimitive:h("",w&&w.toPrimitive||f("toPrimitive")),toStringTag:h("",w&&w.toStringTag||f("toStringTag")),unscopables:h("",w&&w.unscopables||f("unscopables"))})},Or}var Er,Cu;function ws(){if(Cu)return Er;Cu=1;var h=Ye,w=Tu(),f=Object.create(null);return Er=function(L){return Object.defineProperties(L,{for:h(function(O){return f[O]?f[O]:f[O]=L(String(O))}),keyFor:h(function(O){var P;w(O);for(P in f)if(f[P]===O)return P})})},Er}var Cr,Lu;function ms(){if(Lu)return Cr;Lu=1;var h=Ye,w=Tu(),f=wt().Symbol,L=vs(),O=ds(),P=ws(),R=Object.create,Q=Object.defineProperties,Y=Object.defineProperty,H,D,V;if(typeof f=="function")try{String(f()),V=!0}catch{}else f=null;return D=function(z){if(this instanceof D)throw new TypeError("Symbol is not a constructor");return H(z)},Cr=H=function q(z){var an;if(this instanceof q)throw new TypeError("Symbol is not a constructor");return V?f(z):(an=R(D.prototype),z=z===void 0?"":String(z),Q(an,{__description__:h("",z),__name__:h("",L(z))}))},O(H),P(H),Q(D.prototype,{constructor:h(H),toString:h("",function(){return this.__name__})}),Q(H.prototype,{toString:h(function(){return"Symbol ("+w(this).__description__+")"}),valueOf:h(function(){return w(this)})}),Y(H.prototype,H.toPrimitive,h("",function(){var q=w(this);return typeof q=="symbol"?q:q.toString()})),Y(H.prototype,H.toStringTag,h("c","Symbol")),Y(D.prototype,H.toStringTag,h("c",H.prototype[H.toStringTag])),Y(D.prototype,H.toPrimitive,h("c",H.prototype[H.toPrimitive])),Cr}var Lr,Pu;function xs(){return Pu||(Pu=1,Lr=ps()()?wt().Symbol:ms()),Lr}var Pr,Wu;function ys(){if(Wu)return Pr;Wu=1;var h=Object.prototype.toString,w=h.call(function(){return arguments}());return Pr=function(f){return h.call(f)===w},Pr}var Wr,Fu;function As(){if(Fu)return Wr;Fu=1;var h=Object.prototype.toString,w=RegExp.prototype.test.bind(/^[object [A-Za-z0-9]*Function]$/);return Wr=function(f){return typeof f=="function"&&w(h.call(f))},Wr}var Fr,Mu;function Ss(){if(Mu)return Fr;Mu=1;var h=Object.prototype.toString,w=h.call("");return Fr=function(f){return typeof f=="string"||f&&typeof f=="object"&&(f instanceof String||h.call(f)===w)||!1},Fr}var Mr,Bu;function bs(){if(Bu)return Mr;Bu=1;var h=xs().iterator,w=ys(),f=As(),L=Ua,O=fu,P=ou,R=Oe,Q=Ss(),Y=Array.isArray,H=Function.prototype.call,D={configurable:!0,enumerable:!0,writable:!0,value:null},V=Object.defineProperty;return Mr=function(q){var z=arguments[1],an=arguments[2],un,C,_n,W,A,$,X,k,en,cn;if(q=Object(P(q)),R(z)&&O(z),!this||this===Array||!f(this)){if(!z){if(w(q))return A=q.length,A!==1?Array.apply(null,q):(W=new Array(1),W[0]=q[0],W);if(Y(q)){for(W=new Array(A=q.length),C=0;C=55296&&$<=56319&&(cn+=q[++C])),cn=z?H.call(z,an,cn,_n):cn,un?(D.value=cn,V(W,_n,D)):W[_n]=cn,++_n;A=_n}}if(A===void 0)for(A=L(q.length),un&&(W=new un(A)),C=0;Casync w=>{const f=new h,L=await w(f);return f.terminate(),L},Ts=h=>w=>Rs(h)(f=>(f.postMessage(w),new Promise((L,O)=>{f.onmessage=P=>{L(P.data)},f.onerror=O})));var Os=""+new URL("parseTraceSlave.worker-ee96b03a.js",self.location.href).href;const qu=(h="",w="")=>`${h}::::${w}`,$u=({component:h})=>h&&Object.hasOwn(h,"alpha")?Nn.get(h,"alpha")>0:!0,{min:Es}=Math,Cs=navigator.hardwareConcurrency??8;class Ls extends Worker{constructor(){super(Os,{type:"module"})}}const Ps=Ts(Ls);async function Ws({trace:h,context:w,view:f="main"}){var Y,H;const L=Nn.ceil((((Y=h==null?void 0:h.events)==null?void 0:Y.length)??0)/Cs),O=Nn.range(0,(H=h==null?void 0:h.events)==null?void 0:H.length,L),P=Nn.flatten(await Promise.all(Nn.map(O,D=>{var V;return Ps({trace:h,context:w,view:f,from:D,to:Es(D+L,((V=h==null?void 0:h.events)==null?void 0:V.length)??0)})}))),R={},Q=[];for(const{event:D,components:{transient:V=[],special:q=[],persistent:z=[]}}of P){delete R[qu(D.id,D.type)],V.push(...Nn.values(R).flat());for(const an of q){const un=qu(D.id,Nn.get(an.component,"clear"));R[un]=R[un]??[],R[un].push(an),V.push(an)}Q.push({transient:V,persistent:z})}return console.log(JSON.stringify(Q)),{stepsPersistent:Nn.map(Q,"persistent").map(D=>Nn.filter(D,$u)),stepsTransient:Nn.map(Q,"transient").map(D=>Nn.filter(D,$u))}}onmessage=async({data:h})=>{postMessage(await Ws(h))}})(); diff --git a/assets/parseTraceSlave.worker-06d8e902.js b/assets/parseTraceSlave.worker-06d8e902.js new file mode 100644 index 00000000..662f9d93 --- /dev/null +++ b/assets/parseTraceSlave.worker-06d8e902.js @@ -0,0 +1,35 @@ +(function(){"use strict";var Qe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function _s(f){return f&&f.__esModule&&Object.prototype.hasOwnProperty.call(f,"default")?f.default:f}var Ft={exports:{}};/** + * @license + * Lodash + * Copyright OpenJS Foundation and other contributors + * Released under MIT license + * Based on Underscore.js 1.8.3 + * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors + */Ft.exports,function(f,l){(function(){var i,h="4.17.21",m=200,d="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",g="Expected a function",y="Invalid `variable` option passed into `_.template`",w="__lodash_hash_undefined__",_=500,x="__lodash_placeholder__",E=1,M=2,C=4,N=1,D=2,L=1,P=2,q=4,A=8,R=16,W=32,U=64,J=128,rn=256,Pn=512,gt=30,Ht="...",Wi=800,Kt=16,vt=1,Bi=2,Ui=3,Nn=1/0,wn=9007199254740991,We=17976931348623157e292,ae=0/0,$n=4294967295,Gi=$n-1,Zt=$n>>>1,Yt=[["ary",J],["bind",L],["bindKey",P],["curry",A],["curryRight",R],["flip",Pn],["partial",W],["partialRight",U],["rearg",rn]],le="[object Arguments]",xe="[object Array]",dt="[object AsyncFunction]",se="[object Boolean]",be="[object Date]",un="[object DOMException]",ie="[object Error]",xn="[object Function]",Se="[object GeneratorFunction]",dn="[object Map]",Cn="[object Number]",Ae="[object Null]",Hn="[object Object]",_t="[object Promise]",Vt="[object Proxy]",an="[object RegExp]",_n="[object Set]",kn="[object String]",Qt="[object Symbol]",Lh="[object Undefined]",mt="[object WeakMap]",qh="[object WeakSet]",yt="[object ArrayBuffer]",Je="[object DataView]",zi="[object Float32Array]",Hi="[object Float64Array]",Ki="[object Int8Array]",Zi="[object Int16Array]",Yi="[object Int32Array]",Vi="[object Uint8Array]",Qi="[object Uint8ClampedArray]",Xi="[object Uint16Array]",Ji="[object Uint32Array]",Mh=/\b__p \+= '';/g,Fh=/\b(__p \+=) '' \+/g,Nh=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Go=/&(?:amp|lt|gt|quot|#39);/g,zo=/[&<>"']/g,$h=RegExp(Go.source),Dh=RegExp(zo.source),Wh=/<%-([\s\S]+?)%>/g,Bh=/<%([\s\S]+?)%>/g,Ho=/<%=([\s\S]+?)%>/g,Uh=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Gh=/^\w*$/,zh=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ji=/[\\^$.*+?()[\]{}|]/g,Hh=RegExp(ji.source),ki=/^\s+/,Kh=/\s/,Zh=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Yh=/\{\n\/\* \[wrapped with (.+)\] \*/,Vh=/,? & /,Qh=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Xh=/[()=,{}\[\]\/\s]/,Jh=/\\(\\)?/g,jh=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ko=/\w*$/,kh=/^[-+]0x[0-9a-f]+$/i,np=/^0b[01]+$/i,ep=/^\[object .+?Constructor\]$/,tp=/^0o[0-7]+$/i,rp=/^(?:0|[1-9]\d*)$/,ip=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Xt=/($^)/,up=/['\n\r\u2028\u2029\\]/g,Jt="\\ud800-\\udfff",fp="\\u0300-\\u036f",op="\\ufe20-\\ufe2f",ap="\\u20d0-\\u20ff",Zo=fp+op+ap,Yo="\\u2700-\\u27bf",Vo="a-z\\xdf-\\xf6\\xf8-\\xff",lp="\\xac\\xb1\\xd7\\xf7",sp="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",cp="\\u2000-\\u206f",hp=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Qo="A-Z\\xc0-\\xd6\\xd8-\\xde",Xo="\\ufe0e\\ufe0f",Jo=lp+sp+cp+hp,nu="['’]",pp="["+Jt+"]",jo="["+Jo+"]",jt="["+Zo+"]",ko="\\d+",gp="["+Yo+"]",na="["+Vo+"]",ea="[^"+Jt+Jo+ko+Yo+Vo+Qo+"]",eu="\\ud83c[\\udffb-\\udfff]",vp="(?:"+jt+"|"+eu+")",ta="[^"+Jt+"]",tu="(?:\\ud83c[\\udde6-\\uddff]){2}",ru="[\\ud800-\\udbff][\\udc00-\\udfff]",je="["+Qo+"]",ra="\\u200d",ia="(?:"+na+"|"+ea+")",dp="(?:"+je+"|"+ea+")",ua="(?:"+nu+"(?:d|ll|m|re|s|t|ve))?",fa="(?:"+nu+"(?:D|LL|M|RE|S|T|VE))?",oa=vp+"?",aa="["+Xo+"]?",_p="(?:"+ra+"(?:"+[ta,tu,ru].join("|")+")"+aa+oa+")*",mp="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",yp="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",la=aa+oa+_p,wp="(?:"+[gp,tu,ru].join("|")+")"+la,xp="(?:"+[ta+jt+"?",jt,tu,ru,pp].join("|")+")",bp=RegExp(nu,"g"),Sp=RegExp(jt,"g"),iu=RegExp(eu+"(?="+eu+")|"+xp+la,"g"),Ap=RegExp([je+"?"+na+"+"+ua+"(?="+[jo,je,"$"].join("|")+")",dp+"+"+fa+"(?="+[jo,je+ia,"$"].join("|")+")",je+"?"+ia+"+"+ua,je+"+"+fa,yp,mp,ko,wp].join("|"),"g"),Op=RegExp("["+ra+Jt+Zo+Xo+"]"),Tp=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ip=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Rp=-1,ln={};ln[zi]=ln[Hi]=ln[Ki]=ln[Zi]=ln[Yi]=ln[Vi]=ln[Qi]=ln[Xi]=ln[Ji]=!0,ln[le]=ln[xe]=ln[yt]=ln[se]=ln[Je]=ln[be]=ln[ie]=ln[xn]=ln[dn]=ln[Cn]=ln[Hn]=ln[an]=ln[_n]=ln[kn]=ln[mt]=!1;var on={};on[le]=on[xe]=on[yt]=on[Je]=on[se]=on[be]=on[zi]=on[Hi]=on[Ki]=on[Zi]=on[Yi]=on[dn]=on[Cn]=on[Hn]=on[an]=on[_n]=on[kn]=on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o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Pp={"&":"&","<":"<",">":">",'"':""","'":"'"},Cp={"&":"&","<":"<",">":">",""":'"',"'":"'"},Lp={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},qp=parseFloat,Mp=parseInt,sa=typeof Qe=="object"&&Qe&&Qe.Object===Object&&Qe,Fp=typeof self=="object"&&self&&self.Object===Object&&self,Sn=sa||Fp||Function("return this")(),uu=l&&!l.nodeType&&l,Be=uu&&!0&&f&&!f.nodeType&&f,ca=Be&&Be.exports===uu,fu=ca&&sa.process,Kn=function(){try{var p=Be&&Be.require&&Be.require("util").types;return p||fu&&fu.binding&&fu.binding("util")}catch{}}(),ha=Kn&&Kn.isArrayBuffer,pa=Kn&&Kn.isDate,ga=Kn&&Kn.isMap,va=Kn&&Kn.isRegExp,da=Kn&&Kn.isSet,_a=Kn&&Kn.isTypedArray;function Dn(p,S,b){switch(b.length){case 0:return p.call(S);case 1:return p.call(S,b[0]);case 2:return p.call(S,b[0],b[1]);case 3:return p.call(S,b[0],b[1],b[2])}return p.apply(S,b)}function Np(p,S,b,$){for(var K=-1,nn=p==null?0:p.length;++K-1}function ou(p,S,b){for(var $=-1,K=p==null?0:p.length;++$-1;);return b}function Oa(p,S){for(var b=p.length;b--&&ke(S,p[b],0)>-1;);return b}function Kp(p,S){for(var b=p.length,$=0;b--;)p[b]===S&&++$;return $}var Zp=cu(Ep),Yp=cu(Pp);function Vp(p){return"\\"+Lp[p]}function Qp(p,S){return p==null?i:p[S]}function nt(p){return Op.test(p)}function Xp(p){return Tp.test(p)}function Jp(p){for(var S,b=[];!(S=p.next()).done;)b.push(S.value);return b}function vu(p){var S=-1,b=Array(p.size);return p.forEach(function($,K){b[++S]=[K,$]}),b}function Ta(p,S){return function(b){return p(S(b))}}function Ie(p,S){for(var b=-1,$=p.length,K=0,nn=[];++b<$;){var mn=p[b];(mn===S||mn===x)&&(p[b]=x,nn[K++]=b)}return nn}function er(p){var S=-1,b=Array(p.size);return p.forEach(function($){b[++S]=$}),b}function jp(p){var S=-1,b=Array(p.size);return p.forEach(function($){b[++S]=[$,$]}),b}function kp(p,S,b){for(var $=b-1,K=p.length;++$-1}function Dg(n,e){var t=this.__data__,r=dr(t,n);return r<0?(++this.size,t.push([n,e])):t[r][1]=e,this}ce.prototype.clear=Mg,ce.prototype.delete=Fg,ce.prototype.get=Ng,ce.prototype.has=$g,ce.prototype.set=Dg;function he(n){var e=-1,t=n==null?0:n.length;for(this.clear();++e=e?n:e)),n}function Qn(n,e,t,r,u,a){var s,c=e&E,v=e&M,O=e&C;if(t&&(s=u?t(n,r,u,a):t(n)),s!==i)return s;if(!cn(n))return n;var T=Z(n);if(T){if(s=Gv(n),!c)return Ln(n,s)}else{var I=Tn(n),F=I==xn||I==Se;if(qe(n))return al(n,c);if(I==Hn||I==le||F&&!u){if(s=v||F?{}:Il(n),!c)return v?Cv(n,nv(s,n)):Pv(n,Da(s,n))}else{if(!on[I])return u?n:{};s=zv(n,I,c)}}a||(a=new ee);var B=a.get(n);if(B)return B;a.set(n,s),ts(n)?n.forEach(function(H){s.add(Qn(H,e,t,H,n,a))}):ns(n)&&n.forEach(function(H,X){s.set(X,Qn(H,e,t,X,n,a))});var z=O?v?Uu:Bu:v?Mn:bn,V=T?i:z(n);return Zn(V||n,function(H,X){V&&(X=H,H=n[X]),Tt(s,X,Qn(H,e,t,X,n,a))}),s}function ev(n){var e=bn(n);return function(t){return Wa(t,n,e)}}function Wa(n,e,t){var r=t.length;if(n==null)return!r;for(n=fn(n);r--;){var u=t[r],a=e[u],s=n[u];if(s===i&&!(u in n)||!a(s))return!1}return!0}function Ba(n,e,t){if(typeof n!="function")throw new Yn(g);return qt(function(){n.apply(i,t)},e)}function It(n,e,t,r){var u=-1,a=kt,s=!0,c=n.length,v=[],O=e.length;if(!c)return v;t&&(e=sn(e,Wn(t))),r?(a=ou,s=!1):e.length>=m&&(a=wt,s=!1,e=new ze(e));n:for(;++uu?0:u+t),r=r===i||r>u?u:Y(r),r<0&&(r+=u),r=t>r?0:is(r);t0&&t(c)?e>1?An(c,e-1,t,r,u):Te(u,c):r||(u[u.length]=c)}return u}var bu=gl(),za=gl(!0);function ue(n,e){return n&&bu(n,e,bn)}function Su(n,e){return n&&za(n,e,bn)}function mr(n,e){return Oe(e,function(t){return _e(n[t])})}function Ke(n,e){e=Ce(e,n);for(var t=0,r=e.length;n!=null&&te}function iv(n,e){return n!=null&&tn.call(n,e)}function uv(n,e){return n!=null&&e in fn(n)}function fv(n,e,t){return n>=On(e,t)&&n=120&&T.length>=120)?new ze(s&&T):i}T=n[0];var I=-1,F=c[0];n:for(;++I-1;)c!==n&&lr.call(c,v,1),lr.call(n,v,1);return n}function nl(n,e){for(var t=n?e.length:0,r=t-1;t--;){var u=e[t];if(t==r||u!==a){var a=u;de(u)?lr.call(n,u,1):qu(n,u)}}return n}function Pu(n,e){return n+hr(Ma()*(e-n+1))}function yv(n,e,t,r){for(var u=-1,a=yn(cr((e-n)/(t||1)),0),s=b(a);a--;)s[r?a:++u]=n,n+=t;return s}function Cu(n,e){var t="";if(!n||e<1||e>wn)return t;do e%2&&(t+=n),e=hr(e/2),e&&(n+=n);while(e);return t}function Q(n,e){return Vu(Pl(n,e,Fn),n+"")}function wv(n){return $a(ct(n))}function xv(n,e){var t=ct(n);return Er(t,He(e,0,t.length))}function Pt(n,e,t,r){if(!cn(n))return n;e=Ce(e,n);for(var u=-1,a=e.length,s=a-1,c=n;c!=null&&++uu?0:u+e),t=t>u?u:t,t<0&&(t+=u),u=e>t?0:t-e>>>0,e>>>=0;for(var a=b(u);++r>>1,s=n[a];s!==null&&!Un(s)&&(t?s<=e:s=m){var O=e?null:Fv(n);if(O)return er(O);s=!1,u=wt,v=new ze}else v=e?[]:c;n:for(;++r=r?n:Xn(n,e,t)}var ol=hg||function(n){return Sn.clearTimeout(n)};function al(n,e){if(e)return n.slice();var t=n.length,r=Ea?Ea(t):new n.constructor(t);return n.copy(r),r}function $u(n){var e=new n.constructor(n.byteLength);return new or(e).set(new or(n)),e}function Tv(n,e){var t=e?$u(n.buffer):n.buffer;return new n.constructor(t,n.byteOffset,n.byteLength)}function Iv(n){var e=new n.constructor(n.source,Ko.exec(n));return e.lastIndex=n.lastIndex,e}function Rv(n){return Ot?fn(Ot.call(n)):{}}function ll(n,e){var t=e?$u(n.buffer):n.buffer;return new n.constructor(t,n.byteOffset,n.length)}function sl(n,e){if(n!==e){var t=n!==i,r=n===null,u=n===n,a=Un(n),s=e!==i,c=e===null,v=e===e,O=Un(e);if(!c&&!O&&!a&&n>e||a&&s&&v&&!c&&!O||r&&s&&v||!t&&v||!u)return 1;if(!r&&!a&&!O&&n=c)return v;var O=t[r];return v*(O=="desc"?-1:1)}}return n.index-e.index}function cl(n,e,t,r){for(var u=-1,a=n.length,s=t.length,c=-1,v=e.length,O=yn(a-s,0),T=b(v+O),I=!r;++c1?t[u-1]:i,s=u>2?t[2]:i;for(a=n.length>3&&typeof a=="function"?(u--,a):i,s&&Rn(t[0],t[1],s)&&(a=u<3?i:a,u=1),e=fn(e);++r-1?u[a?e[s]:s]:i}}function _l(n){return ve(function(e){var t=e.length,r=t,u=Vn.prototype.thru;for(n&&e.reverse();r--;){var a=e[r];if(typeof a!="function")throw new Yn(g);if(u&&!s&&Ir(a)=="wrapper")var s=new Vn([],!0)}for(r=s?r:t;++r1&&k.reverse(),T&&vc))return!1;var O=a.get(n),T=a.get(e);if(O&&T)return O==e&&T==n;var I=-1,F=!0,B=t&D?new ze:i;for(a.set(n,e),a.set(e,n);++I1?"& ":"")+e[r],e=e.join(t>2?", ":" "),n.replace(Zh,`{ +/* [wrapped with `+e+`] */ +`)}function Kv(n){return Z(n)||Ve(n)||!!(La&&n&&n[La])}function de(n,e){var t=typeof n;return e=e??wn,!!e&&(t=="number"||t!="symbol"&&rp.test(n))&&n>-1&&n%1==0&&n0){if(++e>=Wi)return arguments[0]}else e=0;return n.apply(i,arguments)}}function Er(n,e){var t=-1,r=n.length,u=r-1;for(e=e===i?r:e;++t1?n[e-1]:i;return t=typeof t=="function"?(n.pop(),t):i,Gl(n,t)});function zl(n){var e=o(n);return e.__chain__=!0,e}function t_(n,e){return e(n),n}function Pr(n,e){return e(n)}var r_=ve(function(n){var e=n.length,t=e?n[0]:0,r=this.__wrapped__,u=function(a){return xu(a,n)};return e>1||this.__actions__.length||!(r instanceof j)||!de(t)?this.thru(u):(r=r.slice(t,+t+(e?1:0)),r.__actions__.push({func:Pr,args:[u],thisArg:i}),new Vn(r,this.__chain__).thru(function(a){return e&&!a.length&&a.push(i),a}))});function i_(){return zl(this)}function u_(){return new Vn(this.value(),this.__chain__)}function f_(){this.__values__===i&&(this.__values__=rs(this.value()));var n=this.__index__>=this.__values__.length,e=n?i:this.__values__[this.__index__++];return{done:n,value:e}}function o_(){return this}function a_(n){for(var e,t=this;t instanceof vr;){var r=Nl(t);r.__index__=0,r.__values__=i,e?u.__wrapped__=r:e=r;var u=r;t=t.__wrapped__}return u.__wrapped__=n,e}function l_(){var n=this.__wrapped__;if(n instanceof j){var e=n;return this.__actions__.length&&(e=new j(this)),e=e.reverse(),e.__actions__.push({func:Pr,args:[Qu],thisArg:i}),new Vn(e,this.__chain__)}return this.thru(Qu)}function s_(){return ul(this.__wrapped__,this.__actions__)}var c_=br(function(n,e,t){tn.call(n,t)?++n[t]:pe(n,t,1)});function h_(n,e,t){var r=Z(n)?ma:tv;return t&&Rn(n,e,t)&&(e=i),r(n,G(e,3))}function p_(n,e){var t=Z(n)?Oe:Ga;return t(n,G(e,3))}var g_=dl($l),v_=dl(Dl);function d_(n,e){return An(Cr(n,e),1)}function __(n,e){return An(Cr(n,e),Nn)}function m_(n,e,t){return t=t===i?1:Y(t),An(Cr(n,e),t)}function Hl(n,e){var t=Z(n)?Zn:Ee;return t(n,G(e,3))}function Kl(n,e){var t=Z(n)?$p:Ua;return t(n,G(e,3))}var y_=br(function(n,e,t){tn.call(n,t)?n[t].push(e):pe(n,t,[e])});function w_(n,e,t,r){n=qn(n)?n:ct(n),t=t&&!r?Y(t):0;var u=n.length;return t<0&&(t=yn(u+t,0)),Nr(n)?t<=u&&n.indexOf(e,t)>-1:!!u&&ke(n,e,t)>-1}var x_=Q(function(n,e,t){var r=-1,u=typeof e=="function",a=qn(n)?b(n.length):[];return Ee(n,function(s){a[++r]=u?Dn(e,s,t):Rt(s,e,t)}),a}),b_=br(function(n,e,t){pe(n,t,e)});function Cr(n,e){var t=Z(n)?sn:Va;return t(n,G(e,3))}function S_(n,e,t,r){return n==null?[]:(Z(e)||(e=e==null?[]:[e]),t=r?i:t,Z(t)||(t=t==null?[]:[t]),ja(n,e,t))}var A_=br(function(n,e,t){n[t?0:1].push(e)},function(){return[[],[]]});function O_(n,e,t){var r=Z(n)?au:ba,u=arguments.length<3;return r(n,G(e,4),t,u,Ee)}function T_(n,e,t){var r=Z(n)?Dp:ba,u=arguments.length<3;return r(n,G(e,4),t,u,Ua)}function I_(n,e){var t=Z(n)?Oe:Ga;return t(n,Mr(G(e,3)))}function R_(n){var e=Z(n)?$a:wv;return e(n)}function E_(n,e,t){(t?Rn(n,e,t):e===i)?e=1:e=Y(e);var r=Z(n)?Jg:xv;return r(n,e)}function P_(n){var e=Z(n)?jg:Sv;return e(n)}function C_(n){if(n==null)return 0;if(qn(n))return Nr(n)?et(n):n.length;var e=Tn(n);return e==dn||e==_n?n.size:Iu(n).length}function L_(n,e,t){var r=Z(n)?lu:Av;return t&&Rn(n,e,t)&&(e=i),r(n,G(e,3))}var q_=Q(function(n,e){if(n==null)return[];var t=e.length;return t>1&&Rn(n,e[0],e[1])?e=[]:t>2&&Rn(e[0],e[1],e[2])&&(e=[e[0]]),ja(n,An(e,1),[])}),Lr=pg||function(){return Sn.Date.now()};function M_(n,e){if(typeof e!="function")throw new Yn(g);return n=Y(n),function(){if(--n<1)return e.apply(this,arguments)}}function Zl(n,e,t){return e=t?i:e,e=n&&e==null?n.length:e,ge(n,J,i,i,i,i,e)}function Yl(n,e){var t;if(typeof e!="function")throw new Yn(g);return n=Y(n),function(){return--n>0&&(t=e.apply(this,arguments)),n<=1&&(e=i),t}}var Ju=Q(function(n,e,t){var r=L;if(t.length){var u=Ie(t,lt(Ju));r|=W}return ge(n,r,e,t,u)}),Vl=Q(function(n,e,t){var r=L|P;if(t.length){var u=Ie(t,lt(Vl));r|=W}return ge(e,r,n,t,u)});function Ql(n,e,t){e=t?i:e;var r=ge(n,A,i,i,i,i,i,e);return r.placeholder=Ql.placeholder,r}function Xl(n,e,t){e=t?i:e;var r=ge(n,R,i,i,i,i,i,e);return r.placeholder=Xl.placeholder,r}function Jl(n,e,t){var r,u,a,s,c,v,O=0,T=!1,I=!1,F=!0;if(typeof n!="function")throw new Yn(g);e=jn(e)||0,cn(t)&&(T=!!t.leading,I="maxWait"in t,a=I?yn(jn(t.maxWait)||0,e):a,F="trailing"in t?!!t.trailing:F);function B(gn){var re=r,ye=u;return r=u=i,O=gn,s=n.apply(ye,re),s}function z(gn){return O=gn,c=qt(X,e),T?B(gn):s}function V(gn){var re=gn-v,ye=gn-O,ds=e-re;return I?On(ds,a-ye):ds}function H(gn){var re=gn-v,ye=gn-O;return v===i||re>=e||re<0||I&&ye>=a}function X(){var gn=Lr();if(H(gn))return k(gn);c=qt(X,V(gn))}function k(gn){return c=i,F&&r?B(gn):(r=u=i,s)}function Gn(){c!==i&&ol(c),O=0,r=v=u=c=i}function En(){return c===i?s:k(Lr())}function zn(){var gn=Lr(),re=H(gn);if(r=arguments,u=this,v=gn,re){if(c===i)return z(v);if(I)return ol(c),c=qt(X,e),B(v)}return c===i&&(c=qt(X,e)),s}return zn.cancel=Gn,zn.flush=En,zn}var F_=Q(function(n,e){return Ba(n,1,e)}),N_=Q(function(n,e,t){return Ba(n,jn(e)||0,t)});function $_(n){return ge(n,Pn)}function qr(n,e){if(typeof n!="function"||e!=null&&typeof e!="function")throw new Yn(g);var t=function(){var r=arguments,u=e?e.apply(this,r):r[0],a=t.cache;if(a.has(u))return a.get(u);var s=n.apply(this,r);return t.cache=a.set(u,s)||a,s};return t.cache=new(qr.Cache||he),t}qr.Cache=he;function Mr(n){if(typeof n!="function")throw new Yn(g);return function(){var e=arguments;switch(e.length){case 0:return!n.call(this);case 1:return!n.call(this,e[0]);case 2:return!n.call(this,e[0],e[1]);case 3:return!n.call(this,e[0],e[1],e[2])}return!n.apply(this,e)}}function D_(n){return Yl(2,n)}var W_=Ov(function(n,e){e=e.length==1&&Z(e[0])?sn(e[0],Wn(G())):sn(An(e,1),Wn(G()));var t=e.length;return Q(function(r){for(var u=-1,a=On(r.length,t);++u=e}),Ve=Ka(function(){return arguments}())?Ka:function(n){return hn(n)&&tn.call(n,"callee")&&!Ca.call(n,"callee")},Z=b.isArray,n0=ha?Wn(ha):av;function qn(n){return n!=null&&Fr(n.length)&&!_e(n)}function pn(n){return hn(n)&&qn(n)}function e0(n){return n===!0||n===!1||hn(n)&&In(n)==se}var qe=vg||sf,t0=pa?Wn(pa):lv;function r0(n){return hn(n)&&n.nodeType===1&&!Mt(n)}function i0(n){if(n==null)return!0;if(qn(n)&&(Z(n)||typeof n=="string"||typeof n.splice=="function"||qe(n)||st(n)||Ve(n)))return!n.length;var e=Tn(n);if(e==dn||e==_n)return!n.size;if(Lt(n))return!Iu(n).length;for(var t in n)if(tn.call(n,t))return!1;return!0}function u0(n,e){return Et(n,e)}function f0(n,e,t){t=typeof t=="function"?t:i;var r=t?t(n,e):i;return r===i?Et(n,e,i,t):!!r}function ku(n){if(!hn(n))return!1;var e=In(n);return e==ie||e==un||typeof n.message=="string"&&typeof n.name=="string"&&!Mt(n)}function o0(n){return typeof n=="number"&&qa(n)}function _e(n){if(!cn(n))return!1;var e=In(n);return e==xn||e==Se||e==dt||e==Vt}function kl(n){return typeof n=="number"&&n==Y(n)}function Fr(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=wn}function cn(n){var e=typeof n;return n!=null&&(e=="object"||e=="function")}function hn(n){return n!=null&&typeof n=="object"}var ns=ga?Wn(ga):cv;function a0(n,e){return n===e||Tu(n,e,zu(e))}function l0(n,e,t){return t=typeof t=="function"?t:i,Tu(n,e,zu(e),t)}function s0(n){return es(n)&&n!=+n}function c0(n){if(Vv(n))throw new K(d);return Za(n)}function h0(n){return n===null}function p0(n){return n==null}function es(n){return typeof n=="number"||hn(n)&&In(n)==Cn}function Mt(n){if(!hn(n)||In(n)!=Hn)return!1;var e=ar(n);if(e===null)return!0;var t=tn.call(e,"constructor")&&e.constructor;return typeof t=="function"&&t instanceof t&&ir.call(t)==lg}var nf=va?Wn(va):hv;function g0(n){return kl(n)&&n>=-wn&&n<=wn}var ts=da?Wn(da):pv;function Nr(n){return typeof n=="string"||!Z(n)&&hn(n)&&In(n)==kn}function Un(n){return typeof n=="symbol"||hn(n)&&In(n)==Qt}var st=_a?Wn(_a):gv;function v0(n){return n===i}function d0(n){return hn(n)&&Tn(n)==mt}function _0(n){return hn(n)&&In(n)==qh}var m0=Tr(Ru),y0=Tr(function(n,e){return n<=e});function rs(n){if(!n)return[];if(qn(n))return Nr(n)?ne(n):Ln(n);if(xt&&n[xt])return Jp(n[xt]());var e=Tn(n),t=e==dn?vu:e==_n?er:ct;return t(n)}function me(n){if(!n)return n===0?n:0;if(n=jn(n),n===Nn||n===-Nn){var e=n<0?-1:1;return e*We}return n===n?n:0}function Y(n){var e=me(n),t=e%1;return e===e?t?e-t:e:0}function is(n){return n?He(Y(n),0,$n):0}function jn(n){if(typeof n=="number")return n;if(Un(n))return ae;if(cn(n)){var e=typeof n.valueOf=="function"?n.valueOf():n;n=cn(e)?e+"":e}if(typeof n!="string")return n===0?n:+n;n=Sa(n);var t=np.test(n);return t||tp.test(n)?Mp(n.slice(2),t?2:8):kh.test(n)?ae:+n}function us(n){return fe(n,Mn(n))}function w0(n){return n?He(Y(n),-wn,wn):n===0?n:0}function en(n){return n==null?"":Bn(n)}var x0=ot(function(n,e){if(Lt(e)||qn(e)){fe(e,bn(e),n);return}for(var t in e)tn.call(e,t)&&Tt(n,t,e[t])}),fs=ot(function(n,e){fe(e,Mn(e),n)}),$r=ot(function(n,e,t,r){fe(e,Mn(e),n,r)}),b0=ot(function(n,e,t,r){fe(e,bn(e),n,r)}),S0=ve(xu);function A0(n,e){var t=ft(n);return e==null?t:Da(t,e)}var O0=Q(function(n,e){n=fn(n);var t=-1,r=e.length,u=r>2?e[2]:i;for(u&&Rn(e[0],e[1],u)&&(r=1);++t1),a}),fe(n,Uu(n),t),r&&(t=Qn(t,E|M|C,Nv));for(var u=e.length;u--;)qu(t,e[u]);return t});function z0(n,e){return as(n,Mr(G(e)))}var H0=ve(function(n,e){return n==null?{}:_v(n,e)});function as(n,e){if(n==null)return{};var t=sn(Uu(n),function(r){return[r]});return e=G(e),ka(n,t,function(r,u){return e(r,u[0])})}function K0(n,e,t){e=Ce(e,n);var r=-1,u=e.length;for(u||(u=1,n=i);++re){var r=n;n=e,e=r}if(t||n%1||e%1){var u=Ma();return On(n+u*(e-n+qp("1e-"+((u+"").length-1))),e)}return Pu(n,e)}var t1=at(function(n,e,t){return e=e.toLowerCase(),n+(t?cs(e):e)});function cs(n){return rf(en(n).toLowerCase())}function hs(n){return n=en(n),n&&n.replace(ip,Zp).replace(Sp,"")}function r1(n,e,t){n=en(n),e=Bn(e);var r=n.length;t=t===i?r:He(Y(t),0,r);var u=t;return t-=e.length,t>=0&&n.slice(t,u)==e}function i1(n){return n=en(n),n&&Dh.test(n)?n.replace(zo,Yp):n}function u1(n){return n=en(n),n&&Hh.test(n)?n.replace(ji,"\\$&"):n}var f1=at(function(n,e,t){return n+(t?"-":"")+e.toLowerCase()}),o1=at(function(n,e,t){return n+(t?" ":"")+e.toLowerCase()}),a1=vl("toLowerCase");function l1(n,e,t){n=en(n),e=Y(e);var r=e?et(n):0;if(!e||r>=e)return n;var u=(e-r)/2;return Or(hr(u),t)+n+Or(cr(u),t)}function s1(n,e,t){n=en(n),e=Y(e);var r=e?et(n):0;return e&&r>>0,t?(n=en(n),n&&(typeof e=="string"||e!=null&&!nf(e))&&(e=Bn(e),!e&&nt(n))?Le(ne(n),0,t):n.split(e,t)):[]}var _1=at(function(n,e,t){return n+(t?" ":"")+rf(e)});function m1(n,e,t){return n=en(n),t=t==null?0:He(Y(t),0,n.length),e=Bn(e),n.slice(t,t+e.length)==e}function y1(n,e,t){var r=o.templateSettings;t&&Rn(n,e,t)&&(e=i),n=en(n),e=$r({},e,r,bl);var u=$r({},e.imports,r.imports,bl),a=bn(u),s=gu(u,a),c,v,O=0,T=e.interpolate||Xt,I="__p += '",F=du((e.escape||Xt).source+"|"+T.source+"|"+(T===Ho?jh:Xt).source+"|"+(e.evaluate||Xt).source+"|$","g"),B="//# sourceURL="+(tn.call(e,"sourceURL")?(e.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Rp+"]")+` +`;n.replace(F,function(H,X,k,Gn,En,zn){return k||(k=Gn),I+=n.slice(O,zn).replace(up,Vp),X&&(c=!0,I+=`' + +__e(`+X+`) + +'`),En&&(v=!0,I+=`'; +`+En+`; +__p += '`),k&&(I+=`' + +((__t = (`+k+`)) == null ? '' : __t) + +'`),O=zn+H.length,H}),I+=`'; +`;var z=tn.call(e,"variable")&&e.variable;if(!z)I=`with (obj) { +`+I+` +} +`;else if(Xh.test(z))throw new K(y);I=(v?I.replace(Mh,""):I).replace(Fh,"$1").replace(Nh,"$1;"),I="function("+(z||"obj")+`) { +`+(z?"":`obj || (obj = {}); +`)+"var __t, __p = ''"+(c?", __e = _.escape":"")+(v?`, __j = Array.prototype.join; +function print() { __p += __j.call(arguments, '') } +`:`; +`)+I+`return __p +}`;var V=gs(function(){return nn(a,B+"return "+I).apply(i,s)});if(V.source=I,ku(V))throw V;return V}function w1(n){return en(n).toLowerCase()}function x1(n){return en(n).toUpperCase()}function b1(n,e,t){if(n=en(n),n&&(t||e===i))return Sa(n);if(!n||!(e=Bn(e)))return n;var r=ne(n),u=ne(e),a=Aa(r,u),s=Oa(r,u)+1;return Le(r,a,s).join("")}function S1(n,e,t){if(n=en(n),n&&(t||e===i))return n.slice(0,Ia(n)+1);if(!n||!(e=Bn(e)))return n;var r=ne(n),u=Oa(r,ne(e))+1;return Le(r,0,u).join("")}function A1(n,e,t){if(n=en(n),n&&(t||e===i))return n.replace(ki,"");if(!n||!(e=Bn(e)))return n;var r=ne(n),u=Aa(r,ne(e));return Le(r,u).join("")}function O1(n,e){var t=gt,r=Ht;if(cn(e)){var u="separator"in e?e.separator:u;t="length"in e?Y(e.length):t,r="omission"in e?Bn(e.omission):r}n=en(n);var a=n.length;if(nt(n)){var s=ne(n);a=s.length}if(t>=a)return n;var c=t-et(r);if(c<1)return r;var v=s?Le(s,0,c).join(""):n.slice(0,c);if(u===i)return v+r;if(s&&(c+=v.length-c),nf(u)){if(n.slice(c).search(u)){var O,T=v;for(u.global||(u=du(u.source,en(Ko.exec(u))+"g")),u.lastIndex=0;O=u.exec(T);)var I=O.index;v=v.slice(0,I===i?c:I)}}else if(n.indexOf(Bn(u),c)!=c){var F=v.lastIndexOf(u);F>-1&&(v=v.slice(0,F))}return v+r}function T1(n){return n=en(n),n&&$h.test(n)?n.replace(Go,eg):n}var I1=at(function(n,e,t){return n+(t?" ":"")+e.toUpperCase()}),rf=vl("toUpperCase");function ps(n,e,t){return n=en(n),e=t?i:e,e===i?Xp(n)?ig(n):Up(n):n.match(e)||[]}var gs=Q(function(n,e){try{return Dn(n,i,e)}catch(t){return ku(t)?t:new K(t)}}),R1=ve(function(n,e){return Zn(e,function(t){t=oe(t),pe(n,t,Ju(n[t],n))}),n});function E1(n){var e=n==null?0:n.length,t=G();return n=e?sn(n,function(r){if(typeof r[1]!="function")throw new Yn(g);return[t(r[0]),r[1]]}):[],Q(function(r){for(var u=-1;++uwn)return[];var t=$n,r=On(n,$n);e=G(e),n-=$n;for(var u=pu(r,e);++t0||e<0)?new j(t):(n<0?t=t.takeRight(-n):n&&(t=t.drop(n)),e!==i&&(e=Y(e),t=e<0?t.dropRight(-e):t.take(e-n)),t)},j.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},j.prototype.toArray=function(){return this.take($n)},ue(j.prototype,function(n,e){var t=/^(?:filter|find|map|reject)|While$/.test(e),r=/^(?:head|last)$/.test(e),u=o[r?"take"+(e=="last"?"Right":""):e],a=r||/^find/.test(e);u&&(o.prototype[e]=function(){var s=this.__wrapped__,c=r?[1]:arguments,v=s instanceof j,O=c[0],T=v||Z(s),I=function(X){var k=u.apply(o,Te([X],c));return r&&F?k[0]:k};T&&t&&typeof O=="function"&&O.length!=1&&(v=T=!1);var F=this.__chain__,B=!!this.__actions__.length,z=a&&!F,V=v&&!B;if(!a&&T){s=V?s:new j(this);var H=n.apply(s,c);return H.__actions__.push({func:Pr,args:[I],thisArg:i}),new Vn(H,F)}return z&&V?n.apply(this,c):(H=this.thru(I),z?r?H.value()[0]:H.value():H)})}),Zn(["pop","push","shift","sort","splice","unshift"],function(n){var e=tr[n],t=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",r=/^(?:pop|shift)$/.test(n);o.prototype[n]=function(){var u=arguments;if(r&&!this.__chain__){var a=this.value();return e.apply(Z(a)?a:[],u)}return this[t](function(s){return e.apply(Z(s)?s:[],u)})}}),ue(j.prototype,function(n,e){var t=o[e];if(t){var r=t.name+"";tn.call(ut,r)||(ut[r]=[]),ut[r].push({name:e,func:t})}}),ut[Sr(i,P).name]=[{name:"wrapper",func:i}],j.prototype.clone=Tg,j.prototype.reverse=Ig,j.prototype.value=Rg,o.prototype.at=r_,o.prototype.chain=i_,o.prototype.commit=u_,o.prototype.next=f_,o.prototype.plant=a_,o.prototype.reverse=l_,o.prototype.toJSON=o.prototype.valueOf=o.prototype.value=s_,o.prototype.first=o.prototype.head,xt&&(o.prototype[xt]=o_),o},tt=ug();Be?((Be.exports=tt)._=tt,uu._=tt):Sn._=tt}).call(Qe)}(Ft,Ft.exports);var vn=Ft.exports;function Dr(f={},l){const i={};for(const h of Object.keys(f))i[h]=h==="$"?f[h]:l(f[h],h,f);return Object.setPrototypeOf(i,f)}var ms=function(){},ys=ms(),Me=function(f){return f!==ys&&f!==null},ws=Me,xs=Array.prototype.forEach,bs=Object.create,Ss=function(f,l){var i;for(i in f)l[i]=f[i]},cf=function(f){var l=bs(null);return xs.call(arguments,function(i){ws(i)&&Ss(Object(i),l)}),l},As=function(){var f=Math.sign;return typeof f!="function"?!1:f(10)===1&&f(-20)===-1},Wr,hf;function Os(){return hf||(hf=1,Wr=function(f){return f=Number(f),isNaN(f)||f===0?f:f>0?1:-1}),Wr}var Ts=As()?Math.sign:Os(),Is=Ts,Rs=Math.abs,Es=Math.floor,Ps=function(f){return isNaN(f)?0:(f=Number(f),f===0||!isFinite(f)?f:Is(f)*Es(Rs(f)))},Cs=Ps,Ls=Math.max,Fe=function(f){return Ls(0,Cs(f))},qs=Fe,pf=function(f,l,i){var h;return isNaN(f)?(h=l,h>=0?i&&h?h-1:h:1):f===!1?!1:qs(f)},we=function(f){if(typeof f!="function")throw new TypeError(f+" is not a function");return f},Ms=Me,Xe=function(f){if(!Ms(f))throw new TypeError("Cannot use null or undefined");return f},Fs=we,Ns=Xe,$s=Function.prototype.bind,gf=Function.prototype.call,Ds=Object.keys,Ws=Object.prototype.propertyIsEnumerable,Bs=function(f,l){return function(i,h){var m,d=arguments[2],g=arguments[3];return i=Object(Ns(i)),Fs(h),m=Ds(i),g&&m.sort(typeof g=="function"?$s.call(g,i):void 0),typeof f!="function"&&(f=m[f]),gf.call(f,m,function(y,w){return Ws.call(i,y)?gf.call(h,d,i[y],y,i,w):l})}},Nt=Bs("forEach"),Ne={},vf={exports:{}},Us=function(){var f=Object.assign,l;return typeof f!="function"?!1:(l={foo:"raz"},f(l,{bar:"dwa"},{trzy:"trzy"}),l.foo+l.bar+l.trzy==="razdwatrzy")},Br,df;function Gs(){return df||(df=1,Br=function(){try{return Object.keys("primitive"),!0}catch{return!1}}),Br}var Ur,_f;function zs(){if(_f)return Ur;_f=1;var f=Me,l=Object.keys;return Ur=function(i){return l(f(i)?Object(i):i)},Ur}var Gr,mf;function Hs(){return mf||(mf=1,Gr=Gs()()?Object.keys:zs()),Gr}var zr,yf;function Ks(){if(yf)return zr;yf=1;var f=Hs(),l=Xe,i=Math.max;return zr=function(h,m){var d,g,y=i(arguments.length,2),w;for(h=Object(l(h)),w=function(_){try{h[_]=m[_]}catch(x){d||(d=x)}},g=1;g-1},Vr}var sc=ac()?String.prototype.contains:lc(),$t=Pf,Lf=oc,qf=wf,Mf=cf,ht=sc,cc=Ef.exports=function(f,l){var i,h,m,d,g;return arguments.length<2||typeof f!="string"?(d=l,l=f,f=null):d=arguments[2],$t(f)?(i=ht.call(f,"c"),h=ht.call(f,"e"),m=ht.call(f,"w")):(i=m=!0,h=!1),g={value:l,configurable:i,enumerable:h,writable:m},d?qf(Mf(d),g):g};cc.gs=function(f,l,i){var h,m,d,g;return typeof f!="string"?(d=i,i=l,l=f,f=null):d=arguments[3],$t(l)?Lf(l)?$t(i)?Lf(i)||(d=i,i=void 0):i=void 0:(d=l,l=i=void 0):l=void 0,$t(f)?(h=ht.call(f,"c"),m=ht.call(f,"e")):(h=!0,m=!1),g={get:l,set:i,configurable:h,enumerable:m},d?qf(Mf(d),g):g};var $e=Ef.exports,Qr={exports:{}};(function(f,l){var i=$e,h=we,m=Function.prototype.apply,d=Function.prototype.call,g=Object.create,y=Object.defineProperty,w=Object.defineProperties,_=Object.prototype.hasOwnProperty,x={configurable:!0,enumerable:!1,writable:!0},E,M,C,N,D,L,P;E=function(q,A){var R;return h(A),_.call(this,"__ee__")?R=this.__ee__:(R=x.value=g(null),y(this,"__ee__",x),x.value=null),R[q]?typeof R[q]=="object"?R[q].push(A):R[q]=[R[q],A]:R[q]=A,this},M=function(q,A){var R,W;return h(A),W=this,E.call(this,q,R=function(){C.call(W,q,R),m.call(A,this,arguments)}),R.__eeOnceListener__=A,this},C=function(q,A){var R,W,U,J;if(h(A),!_.call(this,"__ee__"))return this;if(R=this.__ee__,!R[q])return this;if(W=R[q],typeof W=="object")for(J=0;U=W[J];++J)(U===A||U.__eeOnceListener__===A)&&(W.length===2?R[q]=W[J?0:1]:W.splice(J,1));else(W===A||W.__eeOnceListener__===A)&&delete R[q];return this},N=function(q){var A,R,W,U,J;if(_.call(this,"__ee__")&&(U=this.__ee__[q],!!U))if(typeof U=="object"){for(R=arguments.length,J=new Array(R-1),A=1;A=55296&&R<=56319&&(rn+=M[++L])),rn=C?_.call(C,N,rn,P):rn,D?(x.value=rn,E(q,P,x)):q[P]=rn,++P;A=P}}if(A===void 0)for(A=h(M.length),D&&(q=new D(A)),L=0;L=0?x=g(x):x=l(this.length)-g(d(x)),w=x;w<_;++w)if(m.call(this,w)&&(E=this[w],f(E)))return w;return-1},wi}var bi,ao;function jc(){if(ao)return bi;ao=1;var f=xi(),l=Object.create;return bi=function(){var i=0,h=[],m=l(null);return{get:function(d){var g=0,y=h,w,_=d.length;if(_===0)return y[_]||null;if(y=y[_]){for(;g<_-1;){if(w=f.call(y[0],d[g]),w===-1)return null;y=y[1][w],++g}return w=f.call(y[0],d[g]),w===-1?null:y[1][w]||null}return null},set:function(d){var g=0,y=h,w,_=d.length;if(_===0)y[_]=++i;else{for(y[_]||(y[_]=[[],[]]),y=y[_];g<_-1;)w=f.call(y[0],d[g]),w===-1&&(w=y[0].push(d[g])-1,y[1].push([[],[]])),y=y[1][w],++g;w=f.call(y[0],d[g]),w===-1&&(w=y[0].push(d[g])-1),y[1][w]=++i}return m[i]=d,i},delete:function(d){var g=0,y=h,w,_=m[d],x=_.length,E=[];if(x===0)delete y[x];else if(y=y[x]){for(;g"}},Li}var qi,Ao;function fh(){if(Ao)return qi;Ao=1;var f=uh(),l=/[\n\r\u2028\u2029]/g;return qi=function(i){var h=f(i);return h.length>100&&(h=h.slice(0,99)+"…"),h=h.replace(l,function(m){return JSON.stringify(m).slice(1,-1)}),h},qi}var Gt={exports:{}},Oo;function To(){if(Oo)return Gt.exports;Oo=1,Gt.exports=f,Gt.exports.default=f;function f(l){return!!l&&(typeof l=="object"||typeof l=="function")&&typeof l.then=="function"}return Gt.exports}var Io;function oh(){if(Io)return _o;Io=1;var f=po(),l=th(),i=ih(),h=fh(),m=To(),d=Ii(),g=Object.create,y=l("then","then:finally","done","done:finally");return Ne.promise=function(w,_){var x=g(null),E=g(null),M=g(null);if(w===!0)w=null;else if(w=i(w),!y[w])throw new TypeError("'"+h(w)+"' is not valid promise mode");_.on("set",function(C,N,D){var L=!1;if(!m(D)){E[C]=D,_.emit("setasync",C,1);return}x[C]=1,M[C]=D;var P=function(W){var U=x[C];if(L)throw new Error(`Memoizee error: Detected unordered then|done & finally resolution, which in turn makes proper detection of success/failure impossible (when in 'done:finally' mode) +Consider to rely on 'then' or 'done' mode instead.`);U&&(delete x[C],E[C]=W,_.emit("setasync",C,U))},q=function(){L=!0,x[C]&&(delete x[C],delete M[C],_.delete(C))},A=w;if(A||(A="then"),A==="then"){var R=function(){d(q)};D=D.then(function(W){d(P.bind(this,W))},R),typeof D.finally=="function"&&D.finally(R)}else if(A==="done"){if(typeof D.done!="function")throw new Error("Memoizee error: Retrieved promise does not implement 'done' in 'done' mode");D.done(P,q)}else if(A==="done:finally"){if(typeof D.done!="function")throw new Error("Memoizee error: Retrieved promise does not implement 'done' in 'done:finally' mode");if(typeof D.finally!="function")throw new Error("Memoizee error: Retrieved promise does not implement 'finally' in 'done:finally' mode");D.done(P),D.finally(q)}}),_.on("get",function(C,N,D){var L;if(x[C]){++x[C];return}L=M[C];var P=function(){_.emit("getasync",C,N,D)};m(L)?typeof L.done=="function"?L.done(P):L.then(function(){d(P)}):P()}),_.on("delete",function(C){if(delete M[C],x[C]){delete x[C];return}if(hasOwnProperty.call(E,C)){var N=E[C];delete E[C],_.emit("deleteasync",C,[N])}}),_.on("clear",function(){var C=E;E=g(null),x=g(null),M=g(null),_.emit("clearasync",f(C,function(N){return[N]}))})},_o}var Ro={},Eo;function ah(){if(Eo)return Ro;Eo=1;var f=we,l=Nt,i=Ne,h=Function.prototype.apply;return i.dispose=function(m,d,g){var y;if(f(m),g.async&&i.async||g.promise&&i.promise){d.on("deleteasync",y=function(w,_){h.call(m,null,_)}),d.on("clearasync",function(w){l(w,function(_,x){y(x,_)})});return}d.on("delete",y=function(w,_){m(_)}),d.on("clear",function(w){l(w,function(_,x){y(x,_)})})},Ro}var Po={},Mi,Co;function lh(){return Co||(Co=1,Mi=2147483647),Mi}var Fi,Lo;function sh(){if(Lo)return Fi;Lo=1;var f=Fe,l=lh();return Fi=function(i){if(i=f(i),i>l)throw new TypeError(i+" exceeds maximum possible timeout");return i},Fi}var qo;function ch(){if(qo)return Po;qo=1;var f=hi,l=Nt,i=Ii(),h=To(),m=sh(),d=Ne,g=Function.prototype,y=Math.max,w=Math.min,_=Object.create;return d.maxAge=function(x,E,M){var C,N,D,L;x=m(x),x&&(C=_(null),N=M.async&&d.async||M.promise&&d.promise?"async":"",E.on("set"+N,function(P){C[P]=setTimeout(function(){E.delete(P)},x),typeof C[P].unref=="function"&&C[P].unref(),L&&(L[P]&&L[P]!=="nextTick"&&clearTimeout(L[P]),L[P]=setTimeout(function(){delete L[P]},D),typeof L[P].unref=="function"&&L[P].unref())}),E.on("delete"+N,function(P){clearTimeout(C[P]),delete C[P],L&&(L[P]!=="nextTick"&&clearTimeout(L[P]),delete L[P])}),M.preFetch&&(M.preFetch===!0||isNaN(M.preFetch)?D=.333:D=y(w(Number(M.preFetch),1),0),D&&(L={},D=(1-D)*x,E.on("get"+N,function(P,q,A){L[P]||(L[P]="nextTick",i(function(){var R;L[P]==="nextTick"&&(delete L[P],E.delete(P),M.async&&(q=f(q),q.push(g)),R=E.memoized.apply(A,q),M.promise&&h(R)&&(typeof R.done=="function"?R.done(g,g):R.then(g,g)))}))}))),E.on("clear"+N,function(){l(C,function(P){clearTimeout(P)}),C={},L&&(l(L,function(P){P!=="nextTick"&&clearTimeout(P)}),L={})}))},Po}var Mo={},Ni,Fo;function hh(){if(Fo)return Ni;Fo=1;var f=Fe,l=Object.create,i=Object.prototype.hasOwnProperty;return Ni=function(h){var m=0,d=1,g=l(null),y=l(null),w=0,_;return h=f(h),{hit:function(x){var E=y[x],M=++w;if(g[M]=x,y[x]=M,!E)return++m,m<=h?void 0:(x=g[d],_(x),x);if(delete g[E],d===E)for(;!i.call(g,++d););},delete:_=function(x){var E=y[x];if(E&&(delete g[E],delete y[x],--m,d===E)){if(!m){w=0,d=1;return}for(;!i.call(g,++d););}},clear:function(){m=0,d=1,g=l(null),y=l(null),w=0}}},Ni}var No;function ph(){if(No)return Mo;No=1;var f=Fe,l=hh(),i=Ne;return i.max=function(h,m,d){var g,y,w;h=f(h),h&&(y=l(h),g=d.async&&i.async||d.promise&&i.promise?"async":"",m.on("set"+g,w=function(_){_=y.hit(_),_!==void 0&&m.delete(_)}),m.on("get"+g,w),m.on("delete"+g,y.delete),m.on("clear"+g,y.clear))},Mo}var $o={},Do;function gh(){if(Do)return $o;Do=1;var f=$e,l=Ne,i=Object.create,h=Object.defineProperties;return l.refCounter=function(m,d,g){var y,w;y=i(null),w=g.async&&l.async||g.promise&&l.promise?"async":"",d.on("set"+w,function(_,x){y[_]=x||1}),d.on("get"+w,function(_){++y[_]}),d.on("delete"+w,function(_){delete y[_]}),d.on("clear"+w,function(){y={}}),h(d.memoized,{deleteRef:f(function(){var _=d.get(arguments);return _===null||!y[_]?null:--y[_]?!1:(d.delete(_),!0)}),getRefCount:f(function(){var _=d.get(arguments);return _===null||!y[_]?0:y[_]})})},$o}var vh=cf,dh=pf,_h=Zc,mh=function(f){var l=vh(arguments[1]),i;return l.normalizer||(i=l.length=dh(l.length,f.length,l.async),i!==0&&(l.primitive?i===!1?l.normalizer=Yc():i>1&&(l.normalizer=Vc()(i)):i===!1?l.normalizer=jc()():i===1?l.normalizer=kc()():l.normalizer=nh()(i))),l.async&&eh(),l.promise&&oh(),l.dispose&&ah(),l.maxAge&&ch(),l.max&&ph(),l.refCounter&&gh(),_h(f,l)},yh=_s(mh),Wo={exports:{}};(function(f,l){(function(i,h){f.exports=h()})(Qe,function(){return function(i){function h(d){if(m[d])return m[d].exports;var g=m[d]={i:d,l:!1,exports:{}};return i[d].call(g.exports,g,g.exports,h),g.l=!0,g.exports}var m={};return h.m=i,h.c=m,h.d=function(d,g,y){h.o(d,g)||Object.defineProperty(d,g,{configurable:!1,enumerable:!0,get:y})},h.n=function(d){var g=d&&d.__esModule?function(){return d.default}:function(){return d};return h.d(g,"a",g),g},h.o=function(d,g){return Object.prototype.hasOwnProperty.call(d,g)},h.p="",h(h.s=1)}([function(i,h,m){function d(y){var w=y===void 0?{}:y,_=w.ESCAPE,x=_===void 0?/^\\/:_,E=w.VARIABLE_START,M=E===void 0?/^\${\s*/:E,C=w.VARIABLE_END,N=C===void 0?/^\s*}/:C,D=w.PIPE_START,L=D===void 0?/^\s*\|\s*/:D,P=w.PIPE_PARAMETER_START,q=P===void 0?/^\s*:\s*/:P,A=w.QUOTED_STRING,R=A===void 0?h.DEFAULT_QUOTED_STRING_REGEX:A,W=w.QUOTED_STRING_TEST,U=W===void 0?null:W,J=w.QUOTED_STRING_GET_AND_ADVANCE,rn=J===void 0?null:J,Pn=w.QUOTED_STRING_IN_PARAMETER_TEST,gt=Pn===void 0?null:Pn,Ht=w.QUOTED_STRING_IN_PARAMETER_GET_AND_ADVANCE,Wi=Ht===void 0?null:Ht,Kt=U||function(Nn){return R.test(Nn)},vt=rn||g(R),Bi=gt||function(Nn){return R.test(Nn)},Ui=Wi||g(R);return function(Nn){function wn(an){an===void 0&&(an=1),un=un.substr(an)}function We(an){an===void 0&&(an=/^/),wn(un.match(an)[0].length)}function ae(){var an;return We(x),an=un.length>0?un[0]:"",wn(),an}function $n(an){var _n=(an===void 0?{}:an).isNull,kn=_n!==void 0&&_n;dn={name:"",pipes:[]},Hn=!kn}function Gi(){ie.variables.push(dn),$n({isNull:!0})}function Zt(an){var _n=(an===void 0?{}:an).isNull,kn=_n!==void 0&&_n;Cn={name:"",parameters:[]},_t=!kn}function Yt(){dn.pipes.push(Cn),Zt({isNull:!0})}function le(an){var _n=(an===void 0?{}:an).isNull,kn=_n!==void 0&&_n;Ae="",Vt=!kn}function xe(){Cn.parameters.push(Ae),le({isNull:!0})}function dt(){return!!N.test(un)&&(We(N),xn>=3&&xe(),xn>=2&&Yt(),xn>=1&&Gi(),xn=0,!0)}function se(){return!!L.test(un)&&(We(L),xn>=3&&xe(),xn>=2&&Yt(),xn>=1&&Zt(),xn=2,!0)}function be(){return!!q.test(un)&&(We(q),xn>=3&&xe(),xn>=2&&le(),xn=3,!0)}for(var un=Nn,ie={literals:[],variables:[]},xn=0,Se="",dn={name:"",pipes:[]},Cn={name:"",parameters:[]},Ae="",Hn=!1,_t=!1,Vt=!1;un&&un.length>0;)switch(xn){case 0:if(x.test(un)){Se+=ae();continue}if(M.test(un)){xn=1,$n(),ie.literals.push(Se),Se="",We(M);continue}Se+=un[0],wn();break;case 1:if(x.test(un)){dn.name+=ae();continue}if(dt()||se())continue;if(Kt(un)){dn.name+=vt(un,wn);continue}dn.name+=un[0],wn();break;case 2:if(x.test(un)){Cn.name+=ae();continue}if(dt()||be()||se())continue;if(Kt(un)){Cn.name+=vt(un,wn);continue}Cn.name+=un[0],wn();break;case 3:if(x.test(un)){Ae+=ae();continue}if(dt()||be()||se())continue;if(Bi(un)){Ae+=Ui(un,wn);continue}Ae+=un[0],wn()}return Vt&&Cn.parameters.push(Ae),_t&&dn.pipes.push(Cn),Hn&&ie.variables.push(dn),ie.literals.push(Se),ie}}function g(y){return function(w,_){var x=w.match(y);return _(x[0].length),x.slice(2).join("").replace("\\\\","\\")}}Object.defineProperty(h,"__esModule",{value:!0}),h.DEFAULT_QUOTED_STRING_REGEX=/^('((?:[^'\\]|\\.)*)'|'((?:[^'\\]|\\.)*)$|"((?:[^"\\]|\\.)*)"|"((?:[^"\\]|\\.)*)$)/,h.parseStringTemplateGenerator=d,h.parseStringTemplate=d(),h.getQuotedStringAndAdvanceForRegex=g},function(i,h,m){i.exports=m(2)},function(i,h,m){function d(g){for(var y in g)h.hasOwnProperty(y)||(h[y]=g[y])}Object.defineProperty(h,"__esModule",{value:!0}),d(m(0)),d(m(3))},function(i,h,m){function d(x){return function(E){return x.hasOwnProperty(E)?x[E]:E.split(".").reduce(function(M,C){return M.hasOwnProperty(C)?M[C]:""},x)}}function g(x,E,M,C){C===void 0&&(C=d(E));var N=C(x.name);return x.pipes.reduce(function(D,L){return M.hasOwnProperty(L.name)?M[L.name](D,L.parameters):D},N??"")}function y(x,E,M,C){return C===void 0&&(C=d(E)),x.literals.length===0?"":x.literals.slice(1).reduce(function(N,D,L){return""+N+g(x.variables[L],E,M,C)+D},x.literals[0])}function w(x,E,M){return y(_.parseStringTemplate(x),E,M)}Object.defineProperty(h,"__esModule",{value:!0});var _=m(0);h.evaluateParsedString=y,h.evaluateStringTemplate=w}])})})(Wo);var Bo=Wo.exports;const Uo=f=>{const l=Function("$",` + const theme = $.__internal__?.context.theme; + const color = $.__internal__?.context.color; + const step = $.__internal__?.step; + const events = $.__internal__?.events; + const parent = $.__internal__?.parent; + return ${f}; + `);return i=>l(new Proxy(zt(i),{get(h,m){return typeof(h==null?void 0:h[m])=="function"?h[m]({}):h==null?void 0:h[m]}}))},wh=/^\$\{\{\s*/,xh=/^\s*\}\}/,$i=/\b\B/,bh=Bo.parseStringTemplateGenerator({VARIABLE_START:wh,VARIABLE_END:xh,PIPE_START:$i,PIPE_PARAMETER_START:$i,QUOTED_STRING:$i}),Sh=yh(f=>{const l=bh(f);return vn.join(l.literals,"")?i=>Bo.evaluateParsedString(l,{},{},h=>Uo(h)(i)):Uo(l.variables[0].name)},{primitive:!0});function De(f){switch(f==null?void 0:f.constructor){case Array:{const l=vn.map(f,De);return i=>vn.map(l,h=>h(i))}case Object:{const l=vn.mapValues(f,De);return i=>vn.mapValues(l,h=>h(i))}case String:return Sh(f);default:return()=>f}}function zt(f={}){return Dr(f,l=>vn.isFunction(l)?l:De(l))}function Ah(f={}){return new Proxy(f,{get:(l,i)=>typeof l[i]=="function"?l[i]:()=>l[i]})}function Di(f,l){return Object.setPrototypeOf(Dr(l,i=>h=>i(f)),f)}function Oh(f){const{$for:l,$if:i,...h}=f;if(l||i){const{$let:m="i",$from:d=0,$to:g=1,$step:y=1}=l??{},w=De(i),_=De(d),x=De(g),E=De(y);return(M={})=>!i||w(M)?vn.range(_(M),x(M),E(M)).map(C=>{const N=Di(M,zt({[m]:C}));return Di(N,zt(h))}):[]}else return(m={})=>[Di(m,zt(h))]}function Th(f,l){const i=d=>{const{$:g}=d,y=Oh(d);return g in l?w=>vn.flatMap(y(w),_=>vn.flatMap(h[g],x=>x(_))):w=>vn.map(y(w),_=>Object.setPrototypeOf(Dr(_,x=>x(_)),null))},h=vn.mapValues(l,d=>vn.map(d,i)),m=vn.flatMap(f,i);return d=>vn.flatMap(m,g=>g(d))}const Ih=f=>f==null,Rh=f=>f.clear?typeof f.clear=="string"?"special":"transient":"persistent";function Eh(f,l){return Object.setPrototypeOf(f,l),f}const Ph="#808080";function Ch({trace:f,context:l,view:i="main",from:h=0,to:m=(d=>(d=f==null?void 0:f.events)==null?void 0:d.length)()??0}){var _;const g=Th(((_=f==null?void 0:f.views)==null?void 0:_[i])??[],(f==null?void 0:f.views)??{}),y=x=>E=>({component:E,meta:{source:"trace",step:h+x,info:E.$info}}),w=vn.chain(f==null?void 0:f.events).map((x,E)=>({step:E,id:x.id,data:x,pId:x.pId})).groupBy("id").value();return vn.chain(vn.range(h,m)).map(x=>{var N;const E=f.events[x],M=f.events,C=g(Ah(Eh({alpha:1,fill:Ph,__internal__:{context:l,step:x,parent:Ih(E.pId)?void 0:M[((N=vn.findLast(w[E.pId],D=>D.step<=x))==null?void 0:N.step)??0],events:M}},E)));return{event:E,components:vn.groupBy(C,Rh)}}).map((x,E)=>({event:x.event,components:vn.mapValues(x.components,M=>M.map(y(E)))})).value()}onmessage=({data:f})=>{postMessage(Ch(f))}})(); diff --git a/assets/parseTraceSlave.worker-ee96b03a.js b/assets/parseTraceSlave.worker-ee96b03a.js deleted file mode 100644 index 2f82acf8..00000000 --- a/assets/parseTraceSlave.worker-ee96b03a.js +++ /dev/null @@ -1,35 +0,0 @@ -(function(){"use strict";var Qe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ys(f){return f&&f.__esModule&&Object.prototype.hasOwnProperty.call(f,"default")?f.default:f}var Ft={exports:{}};/** - * @license - * Lodash - * Copyright OpenJS Foundation and other contributors - * Released under MIT license - * Based on Underscore.js 1.8.3 - * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - */Ft.exports,function(f,l){(function(){var i,h="4.17.21",m=200,d="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",g="Expected a function",y="Invalid `variable` option passed into `_.template`",w="__lodash_hash_undefined__",_=500,x="__lodash_placeholder__",E=1,M=2,C=4,N=1,D=2,L=1,P=2,q=4,A=8,R=16,W=32,U=64,J=128,rn=256,Pn=512,gt=30,Ht="...",Bi=800,Kt=16,vt=1,Ui=2,Gi=3,Nn=1/0,wn=9007199254740991,We=17976931348623157e292,ae=0/0,$n=4294967295,zi=$n-1,Zt=$n>>>1,Yt=[["ary",J],["bind",L],["bindKey",P],["curry",A],["curryRight",R],["flip",Pn],["partial",W],["partialRight",U],["rearg",rn]],le="[object Arguments]",xe="[object Array]",dt="[object AsyncFunction]",se="[object Boolean]",be="[object Date]",un="[object DOMException]",ie="[object Error]",xn="[object Function]",Se="[object GeneratorFunction]",dn="[object Map]",Cn="[object Number]",Ae="[object Null]",Hn="[object Object]",_t="[object Promise]",Vt="[object Proxy]",an="[object RegExp]",_n="[object Set]",kn="[object String]",Qt="[object Symbol]",Mh="[object Undefined]",mt="[object WeakMap]",Fh="[object WeakSet]",yt="[object ArrayBuffer]",Je="[object DataView]",Hi="[object Float32Array]",Ki="[object Float64Array]",Zi="[object Int8Array]",Yi="[object Int16Array]",Vi="[object Int32Array]",Qi="[object Uint8Array]",Xi="[object Uint8ClampedArray]",Ji="[object Uint16Array]",ji="[object Uint32Array]",Nh=/\b__p \+= '';/g,$h=/\b(__p \+=) '' \+/g,Dh=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ho=/&(?:amp|lt|gt|quot|#39);/g,Ko=/[&<>"']/g,Wh=RegExp(Ho.source),Bh=RegExp(Ko.source),Uh=/<%-([\s\S]+?)%>/g,Gh=/<%([\s\S]+?)%>/g,Zo=/<%=([\s\S]+?)%>/g,zh=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Hh=/^\w*$/,Kh=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ki=/[\\^$.*+?()[\]{}|]/g,Zh=RegExp(ki.source),nu=/^\s+/,Yh=/\s/,Vh=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Qh=/\{\n\/\* \[wrapped with (.+)\] \*/,Xh=/,? & /,Jh=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,jh=/[()=,{}\[\]\/\s]/,kh=/\\(\\)?/g,np=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Yo=/\w*$/,ep=/^[-+]0x[0-9a-f]+$/i,tp=/^0b[01]+$/i,rp=/^\[object .+?Constructor\]$/,ip=/^0o[0-7]+$/i,up=/^(?:0|[1-9]\d*)$/,fp=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Xt=/($^)/,op=/['\n\r\u2028\u2029\\]/g,Jt="\\ud800-\\udfff",ap="\\u0300-\\u036f",lp="\\ufe20-\\ufe2f",sp="\\u20d0-\\u20ff",Vo=ap+lp+sp,Qo="\\u2700-\\u27bf",Xo="a-z\\xdf-\\xf6\\xf8-\\xff",cp="\\xac\\xb1\\xd7\\xf7",hp="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",pp="\\u2000-\\u206f",gp=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Jo="A-Z\\xc0-\\xd6\\xd8-\\xde",jo="\\ufe0e\\ufe0f",ko=cp+hp+pp+gp,eu="['’]",vp="["+Jt+"]",na="["+ko+"]",jt="["+Vo+"]",ea="\\d+",dp="["+Qo+"]",ta="["+Xo+"]",ra="[^"+Jt+ko+ea+Qo+Xo+Jo+"]",tu="\\ud83c[\\udffb-\\udfff]",_p="(?:"+jt+"|"+tu+")",ia="[^"+Jt+"]",ru="(?:\\ud83c[\\udde6-\\uddff]){2}",iu="[\\ud800-\\udbff][\\udc00-\\udfff]",je="["+Jo+"]",ua="\\u200d",fa="(?:"+ta+"|"+ra+")",mp="(?:"+je+"|"+ra+")",oa="(?:"+eu+"(?:d|ll|m|re|s|t|ve))?",aa="(?:"+eu+"(?:D|LL|M|RE|S|T|VE))?",la=_p+"?",sa="["+jo+"]?",yp="(?:"+ua+"(?:"+[ia,ru,iu].join("|")+")"+sa+la+")*",wp="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",xp="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",ca=sa+la+yp,bp="(?:"+[dp,ru,iu].join("|")+")"+ca,Sp="(?:"+[ia+jt+"?",jt,ru,iu,vp].join("|")+")",Ap=RegExp(eu,"g"),Op=RegExp(jt,"g"),uu=RegExp(tu+"(?="+tu+")|"+Sp+ca,"g"),Tp=RegExp([je+"?"+ta+"+"+oa+"(?="+[na,je,"$"].join("|")+")",mp+"+"+aa+"(?="+[na,je+fa,"$"].join("|")+")",je+"?"+fa+"+"+oa,je+"+"+aa,xp,wp,ea,bp].join("|"),"g"),Ip=RegExp("["+ua+Jt+Vo+jo+"]"),Rp=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ep=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Pp=-1,ln={};ln[Hi]=ln[Ki]=ln[Zi]=ln[Yi]=ln[Vi]=ln[Qi]=ln[Xi]=ln[Ji]=ln[ji]=!0,ln[le]=ln[xe]=ln[yt]=ln[se]=ln[Je]=ln[be]=ln[ie]=ln[xn]=ln[dn]=ln[Cn]=ln[Hn]=ln[an]=ln[_n]=ln[kn]=ln[mt]=!1;var on={};on[le]=on[xe]=on[yt]=on[Je]=on[se]=on[be]=on[Hi]=on[Ki]=on[Zi]=on[Yi]=on[Vi]=on[dn]=on[Cn]=on[Hn]=on[an]=on[_n]=on[kn]=on[Qt]=on[Qi]=on[Xi]=on[Ji]=on[ji]=!0,on[ie]=on[xn]=on[mt]=!1;var Cp={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î: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:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Lp={"&":"&","<":"<",">":">",'"':""","'":"'"},qp={"&":"&","<":"<",">":">",""":'"',"'":"'"},Mp={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Fp=parseFloat,Np=parseInt,ha=typeof Qe=="object"&&Qe&&Qe.Object===Object&&Qe,$p=typeof self=="object"&&self&&self.Object===Object&&self,Sn=ha||$p||Function("return this")(),fu=l&&!l.nodeType&&l,Be=fu&&!0&&f&&!f.nodeType&&f,pa=Be&&Be.exports===fu,ou=pa&&ha.process,Kn=function(){try{var p=Be&&Be.require&&Be.require("util").types;return p||ou&&ou.binding&&ou.binding("util")}catch{}}(),ga=Kn&&Kn.isArrayBuffer,va=Kn&&Kn.isDate,da=Kn&&Kn.isMap,_a=Kn&&Kn.isRegExp,ma=Kn&&Kn.isSet,ya=Kn&&Kn.isTypedArray;function Dn(p,S,b){switch(b.length){case 0:return p.call(S);case 1:return p.call(S,b[0]);case 2:return p.call(S,b[0],b[1]);case 3:return p.call(S,b[0],b[1],b[2])}return p.apply(S,b)}function Dp(p,S,b,$){for(var K=-1,nn=p==null?0:p.length;++K-1}function au(p,S,b){for(var $=-1,K=p==null?0:p.length;++$-1;);return b}function Ia(p,S){for(var b=p.length;b--&&ke(S,p[b],0)>-1;);return b}function Yp(p,S){for(var b=p.length,$=0;b--;)p[b]===S&&++$;return $}var Vp=hu(Cp),Qp=hu(Lp);function Xp(p){return"\\"+Mp[p]}function Jp(p,S){return p==null?i:p[S]}function nt(p){return Ip.test(p)}function jp(p){return Rp.test(p)}function kp(p){for(var S,b=[];!(S=p.next()).done;)b.push(S.value);return b}function du(p){var S=-1,b=Array(p.size);return p.forEach(function($,K){b[++S]=[K,$]}),b}function Ra(p,S){return function(b){return p(S(b))}}function Ie(p,S){for(var b=-1,$=p.length,K=0,nn=[];++b<$;){var mn=p[b];(mn===S||mn===x)&&(p[b]=x,nn[K++]=b)}return nn}function er(p){var S=-1,b=Array(p.size);return p.forEach(function($){b[++S]=$}),b}function ng(p){var S=-1,b=Array(p.size);return p.forEach(function($){b[++S]=[$,$]}),b}function eg(p,S,b){for(var $=b-1,K=p.length;++$-1}function Bg(n,e){var t=this.__data__,r=dr(t,n);return r<0?(++this.size,t.push([n,e])):t[r][1]=e,this}ce.prototype.clear=Ng,ce.prototype.delete=$g,ce.prototype.get=Dg,ce.prototype.has=Wg,ce.prototype.set=Bg;function he(n){var e=-1,t=n==null?0:n.length;for(this.clear();++e=e?n:e)),n}function Qn(n,e,t,r,u,a){var s,c=e&E,v=e&M,O=e&C;if(t&&(s=u?t(n,r,u,a):t(n)),s!==i)return s;if(!cn(n))return n;var T=Z(n);if(T){if(s=Hv(n),!c)return Ln(n,s)}else{var I=Tn(n),F=I==xn||I==Se;if(qe(n))return sl(n,c);if(I==Hn||I==le||F&&!u){if(s=v||F?{}:El(n),!c)return v?qv(n,tv(s,n)):Lv(n,Ba(s,n))}else{if(!on[I])return u?n:{};s=Kv(n,I,c)}}a||(a=new ee);var B=a.get(n);if(B)return B;a.set(n,s),is(n)?n.forEach(function(H){s.add(Qn(H,e,t,H,n,a))}):ts(n)&&n.forEach(function(H,X){s.set(X,Qn(H,e,t,X,n,a))});var z=O?v?Gu:Uu:v?Mn:bn,V=T?i:z(n);return Zn(V||n,function(H,X){V&&(X=H,H=n[X]),Tt(s,X,Qn(H,e,t,X,n,a))}),s}function rv(n){var e=bn(n);return function(t){return Ua(t,n,e)}}function Ua(n,e,t){var r=t.length;if(n==null)return!r;for(n=fn(n);r--;){var u=t[r],a=e[u],s=n[u];if(s===i&&!(u in n)||!a(s))return!1}return!0}function Ga(n,e,t){if(typeof n!="function")throw new Yn(g);return qt(function(){n.apply(i,t)},e)}function It(n,e,t,r){var u=-1,a=kt,s=!0,c=n.length,v=[],O=e.length;if(!c)return v;t&&(e=sn(e,Wn(t))),r?(a=au,s=!1):e.length>=m&&(a=wt,s=!1,e=new ze(e));n:for(;++uu?0:u+t),r=r===i||r>u?u:Y(r),r<0&&(r+=u),r=t>r?0:fs(r);t0&&t(c)?e>1?An(c,e-1,t,r,u):Te(u,c):r||(u[u.length]=c)}return u}var Su=dl(),Ka=dl(!0);function ue(n,e){return n&&Su(n,e,bn)}function Au(n,e){return n&&Ka(n,e,bn)}function mr(n,e){return Oe(e,function(t){return _e(n[t])})}function Ke(n,e){e=Ce(e,n);for(var t=0,r=e.length;n!=null&&te}function fv(n,e){return n!=null&&tn.call(n,e)}function ov(n,e){return n!=null&&e in fn(n)}function av(n,e,t){return n>=On(e,t)&&n=120&&T.length>=120)?new ze(s&&T):i}T=n[0];var I=-1,F=c[0];n:for(;++I-1;)c!==n&&lr.call(c,v,1),lr.call(n,v,1);return n}function tl(n,e){for(var t=n?e.length:0,r=t-1;t--;){var u=e[t];if(t==r||u!==a){var a=u;de(u)?lr.call(n,u,1):Mu(n,u)}}return n}function Cu(n,e){return n+hr(Na()*(e-n+1))}function xv(n,e,t,r){for(var u=-1,a=yn(cr((e-n)/(t||1)),0),s=b(a);a--;)s[r?a:++u]=n,n+=t;return s}function Lu(n,e){var t="";if(!n||e<1||e>wn)return t;do e%2&&(t+=n),e=hr(e/2),e&&(n+=n);while(e);return t}function Q(n,e){return Qu(Ll(n,e,Fn),n+"")}function bv(n){return Wa(ct(n))}function Sv(n,e){var t=ct(n);return Er(t,He(e,0,t.length))}function Pt(n,e,t,r){if(!cn(n))return n;e=Ce(e,n);for(var u=-1,a=e.length,s=a-1,c=n;c!=null&&++uu?0:u+e),t=t>u?u:t,t<0&&(t+=u),u=e>t?0:t-e>>>0,e>>>=0;for(var a=b(u);++r>>1,s=n[a];s!==null&&!Un(s)&&(t?s<=e:s=m){var O=e?null:$v(n);if(O)return er(O);s=!1,u=wt,v=new ze}else v=e?[]:c;n:for(;++r=r?n:Xn(n,e,t)}var ll=gg||function(n){return Sn.clearTimeout(n)};function sl(n,e){if(e)return n.slice();var t=n.length,r=Ca?Ca(t):new n.constructor(t);return n.copy(r),r}function Du(n){var e=new n.constructor(n.byteLength);return new or(e).set(new or(n)),e}function Rv(n,e){var t=e?Du(n.buffer):n.buffer;return new n.constructor(t,n.byteOffset,n.byteLength)}function Ev(n){var e=new n.constructor(n.source,Yo.exec(n));return e.lastIndex=n.lastIndex,e}function Pv(n){return Ot?fn(Ot.call(n)):{}}function cl(n,e){var t=e?Du(n.buffer):n.buffer;return new n.constructor(t,n.byteOffset,n.length)}function hl(n,e){if(n!==e){var t=n!==i,r=n===null,u=n===n,a=Un(n),s=e!==i,c=e===null,v=e===e,O=Un(e);if(!c&&!O&&!a&&n>e||a&&s&&v&&!c&&!O||r&&s&&v||!t&&v||!u)return 1;if(!r&&!a&&!O&&n=c)return v;var O=t[r];return v*(O=="desc"?-1:1)}}return n.index-e.index}function pl(n,e,t,r){for(var u=-1,a=n.length,s=t.length,c=-1,v=e.length,O=yn(a-s,0),T=b(v+O),I=!r;++c1?t[u-1]:i,s=u>2?t[2]:i;for(a=n.length>3&&typeof a=="function"?(u--,a):i,s&&Rn(t[0],t[1],s)&&(a=u<3?i:a,u=1),e=fn(e);++r-1?u[a?e[s]:s]:i}}function yl(n){return ve(function(e){var t=e.length,r=t,u=Vn.prototype.thru;for(n&&e.reverse();r--;){var a=e[r];if(typeof a!="function")throw new Yn(g);if(u&&!s&&Ir(a)=="wrapper")var s=new Vn([],!0)}for(r=s?r:t;++r1&&k.reverse(),T&&vc))return!1;var O=a.get(n),T=a.get(e);if(O&&T)return O==e&&T==n;var I=-1,F=!0,B=t&D?new ze:i;for(a.set(n,e),a.set(e,n);++I1?"& ":"")+e[r],e=e.join(t>2?", ":" "),n.replace(Vh,`{ -/* [wrapped with `+e+`] */ -`)}function Yv(n){return Z(n)||Ve(n)||!!(Ma&&n&&n[Ma])}function de(n,e){var t=typeof n;return e=e??wn,!!e&&(t=="number"||t!="symbol"&&up.test(n))&&n>-1&&n%1==0&&n0){if(++e>=Bi)return arguments[0]}else e=0;return n.apply(i,arguments)}}function Er(n,e){var t=-1,r=n.length,u=r-1;for(e=e===i?r:e;++t1?n[e-1]:i;return t=typeof t=="function"?(n.pop(),t):i,Hl(n,t)});function Kl(n){var e=o(n);return e.__chain__=!0,e}function i_(n,e){return e(n),n}function Pr(n,e){return e(n)}var u_=ve(function(n){var e=n.length,t=e?n[0]:0,r=this.__wrapped__,u=function(a){return bu(a,n)};return e>1||this.__actions__.length||!(r instanceof j)||!de(t)?this.thru(u):(r=r.slice(t,+t+(e?1:0)),r.__actions__.push({func:Pr,args:[u],thisArg:i}),new Vn(r,this.__chain__).thru(function(a){return e&&!a.length&&a.push(i),a}))});function f_(){return Kl(this)}function o_(){return new Vn(this.value(),this.__chain__)}function a_(){this.__values__===i&&(this.__values__=us(this.value()));var n=this.__index__>=this.__values__.length,e=n?i:this.__values__[this.__index__++];return{done:n,value:e}}function l_(){return this}function s_(n){for(var e,t=this;t instanceof vr;){var r=Dl(t);r.__index__=0,r.__values__=i,e?u.__wrapped__=r:e=r;var u=r;t=t.__wrapped__}return u.__wrapped__=n,e}function c_(){var n=this.__wrapped__;if(n instanceof j){var e=n;return this.__actions__.length&&(e=new j(this)),e=e.reverse(),e.__actions__.push({func:Pr,args:[Xu],thisArg:i}),new Vn(e,this.__chain__)}return this.thru(Xu)}function h_(){return ol(this.__wrapped__,this.__actions__)}var p_=br(function(n,e,t){tn.call(n,t)?++n[t]:pe(n,t,1)});function g_(n,e,t){var r=Z(n)?wa:iv;return t&&Rn(n,e,t)&&(e=i),r(n,G(e,3))}function v_(n,e){var t=Z(n)?Oe:Ha;return t(n,G(e,3))}var d_=ml(Wl),__=ml(Bl);function m_(n,e){return An(Cr(n,e),1)}function y_(n,e){return An(Cr(n,e),Nn)}function w_(n,e,t){return t=t===i?1:Y(t),An(Cr(n,e),t)}function Zl(n,e){var t=Z(n)?Zn:Ee;return t(n,G(e,3))}function Yl(n,e){var t=Z(n)?Wp:za;return t(n,G(e,3))}var x_=br(function(n,e,t){tn.call(n,t)?n[t].push(e):pe(n,t,[e])});function b_(n,e,t,r){n=qn(n)?n:ct(n),t=t&&!r?Y(t):0;var u=n.length;return t<0&&(t=yn(u+t,0)),Nr(n)?t<=u&&n.indexOf(e,t)>-1:!!u&&ke(n,e,t)>-1}var S_=Q(function(n,e,t){var r=-1,u=typeof e=="function",a=qn(n)?b(n.length):[];return Ee(n,function(s){a[++r]=u?Dn(e,s,t):Rt(s,e,t)}),a}),A_=br(function(n,e,t){pe(n,t,e)});function Cr(n,e){var t=Z(n)?sn:Xa;return t(n,G(e,3))}function O_(n,e,t,r){return n==null?[]:(Z(e)||(e=e==null?[]:[e]),t=r?i:t,Z(t)||(t=t==null?[]:[t]),nl(n,e,t))}var T_=br(function(n,e,t){n[t?0:1].push(e)},function(){return[[],[]]});function I_(n,e,t){var r=Z(n)?lu:Aa,u=arguments.length<3;return r(n,G(e,4),t,u,Ee)}function R_(n,e,t){var r=Z(n)?Bp:Aa,u=arguments.length<3;return r(n,G(e,4),t,u,za)}function E_(n,e){var t=Z(n)?Oe:Ha;return t(n,Mr(G(e,3)))}function P_(n){var e=Z(n)?Wa:bv;return e(n)}function C_(n,e,t){(t?Rn(n,e,t):e===i)?e=1:e=Y(e);var r=Z(n)?kg:Sv;return r(n,e)}function L_(n){var e=Z(n)?nv:Ov;return e(n)}function q_(n){if(n==null)return 0;if(qn(n))return Nr(n)?et(n):n.length;var e=Tn(n);return e==dn||e==_n?n.size:Ru(n).length}function M_(n,e,t){var r=Z(n)?su:Tv;return t&&Rn(n,e,t)&&(e=i),r(n,G(e,3))}var F_=Q(function(n,e){if(n==null)return[];var t=e.length;return t>1&&Rn(n,e[0],e[1])?e=[]:t>2&&Rn(e[0],e[1],e[2])&&(e=[e[0]]),nl(n,An(e,1),[])}),Lr=vg||function(){return Sn.Date.now()};function N_(n,e){if(typeof e!="function")throw new Yn(g);return n=Y(n),function(){if(--n<1)return e.apply(this,arguments)}}function Vl(n,e,t){return e=t?i:e,e=n&&e==null?n.length:e,ge(n,J,i,i,i,i,e)}function Ql(n,e){var t;if(typeof e!="function")throw new Yn(g);return n=Y(n),function(){return--n>0&&(t=e.apply(this,arguments)),n<=1&&(e=i),t}}var ju=Q(function(n,e,t){var r=L;if(t.length){var u=Ie(t,lt(ju));r|=W}return ge(n,r,e,t,u)}),Xl=Q(function(n,e,t){var r=L|P;if(t.length){var u=Ie(t,lt(Xl));r|=W}return ge(e,r,n,t,u)});function Jl(n,e,t){e=t?i:e;var r=ge(n,A,i,i,i,i,i,e);return r.placeholder=Jl.placeholder,r}function jl(n,e,t){e=t?i:e;var r=ge(n,R,i,i,i,i,i,e);return r.placeholder=jl.placeholder,r}function kl(n,e,t){var r,u,a,s,c,v,O=0,T=!1,I=!1,F=!0;if(typeof n!="function")throw new Yn(g);e=jn(e)||0,cn(t)&&(T=!!t.leading,I="maxWait"in t,a=I?yn(jn(t.maxWait)||0,e):a,F="trailing"in t?!!t.trailing:F);function B(gn){var re=r,ye=u;return r=u=i,O=gn,s=n.apply(ye,re),s}function z(gn){return O=gn,c=qt(X,e),T?B(gn):s}function V(gn){var re=gn-v,ye=gn-O,ms=e-re;return I?On(ms,a-ye):ms}function H(gn){var re=gn-v,ye=gn-O;return v===i||re>=e||re<0||I&&ye>=a}function X(){var gn=Lr();if(H(gn))return k(gn);c=qt(X,V(gn))}function k(gn){return c=i,F&&r?B(gn):(r=u=i,s)}function Gn(){c!==i&&ll(c),O=0,r=v=u=c=i}function En(){return c===i?s:k(Lr())}function zn(){var gn=Lr(),re=H(gn);if(r=arguments,u=this,v=gn,re){if(c===i)return z(v);if(I)return ll(c),c=qt(X,e),B(v)}return c===i&&(c=qt(X,e)),s}return zn.cancel=Gn,zn.flush=En,zn}var $_=Q(function(n,e){return Ga(n,1,e)}),D_=Q(function(n,e,t){return Ga(n,jn(e)||0,t)});function W_(n){return ge(n,Pn)}function qr(n,e){if(typeof n!="function"||e!=null&&typeof e!="function")throw new Yn(g);var t=function(){var r=arguments,u=e?e.apply(this,r):r[0],a=t.cache;if(a.has(u))return a.get(u);var s=n.apply(this,r);return t.cache=a.set(u,s)||a,s};return t.cache=new(qr.Cache||he),t}qr.Cache=he;function Mr(n){if(typeof n!="function")throw new Yn(g);return function(){var e=arguments;switch(e.length){case 0:return!n.call(this);case 1:return!n.call(this,e[0]);case 2:return!n.call(this,e[0],e[1]);case 3:return!n.call(this,e[0],e[1],e[2])}return!n.apply(this,e)}}function B_(n){return Ql(2,n)}var U_=Iv(function(n,e){e=e.length==1&&Z(e[0])?sn(e[0],Wn(G())):sn(An(e,1),Wn(G()));var t=e.length;return Q(function(r){for(var u=-1,a=On(r.length,t);++u=e}),Ve=Ya(function(){return arguments}())?Ya:function(n){return hn(n)&&tn.call(n,"callee")&&!qa.call(n,"callee")},Z=b.isArray,t0=ga?Wn(ga):sv;function qn(n){return n!=null&&Fr(n.length)&&!_e(n)}function pn(n){return hn(n)&&qn(n)}function r0(n){return n===!0||n===!1||hn(n)&&In(n)==se}var qe=_g||cf,i0=va?Wn(va):cv;function u0(n){return hn(n)&&n.nodeType===1&&!Mt(n)}function f0(n){if(n==null)return!0;if(qn(n)&&(Z(n)||typeof n=="string"||typeof n.splice=="function"||qe(n)||st(n)||Ve(n)))return!n.length;var e=Tn(n);if(e==dn||e==_n)return!n.size;if(Lt(n))return!Ru(n).length;for(var t in n)if(tn.call(n,t))return!1;return!0}function o0(n,e){return Et(n,e)}function a0(n,e,t){t=typeof t=="function"?t:i;var r=t?t(n,e):i;return r===i?Et(n,e,i,t):!!r}function nf(n){if(!hn(n))return!1;var e=In(n);return e==ie||e==un||typeof n.message=="string"&&typeof n.name=="string"&&!Mt(n)}function l0(n){return typeof n=="number"&&Fa(n)}function _e(n){if(!cn(n))return!1;var e=In(n);return e==xn||e==Se||e==dt||e==Vt}function es(n){return typeof n=="number"&&n==Y(n)}function Fr(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=wn}function cn(n){var e=typeof n;return n!=null&&(e=="object"||e=="function")}function hn(n){return n!=null&&typeof n=="object"}var ts=da?Wn(da):pv;function s0(n,e){return n===e||Iu(n,e,Hu(e))}function c0(n,e,t){return t=typeof t=="function"?t:i,Iu(n,e,Hu(e),t)}function h0(n){return rs(n)&&n!=+n}function p0(n){if(Xv(n))throw new K(d);return Va(n)}function g0(n){return n===null}function v0(n){return n==null}function rs(n){return typeof n=="number"||hn(n)&&In(n)==Cn}function Mt(n){if(!hn(n)||In(n)!=Hn)return!1;var e=ar(n);if(e===null)return!0;var t=tn.call(e,"constructor")&&e.constructor;return typeof t=="function"&&t instanceof t&&ir.call(t)==cg}var ef=_a?Wn(_a):gv;function d0(n){return es(n)&&n>=-wn&&n<=wn}var is=ma?Wn(ma):vv;function Nr(n){return typeof n=="string"||!Z(n)&&hn(n)&&In(n)==kn}function Un(n){return typeof n=="symbol"||hn(n)&&In(n)==Qt}var st=ya?Wn(ya):dv;function _0(n){return n===i}function m0(n){return hn(n)&&Tn(n)==mt}function y0(n){return hn(n)&&In(n)==Fh}var w0=Tr(Eu),x0=Tr(function(n,e){return n<=e});function us(n){if(!n)return[];if(qn(n))return Nr(n)?ne(n):Ln(n);if(xt&&n[xt])return kp(n[xt]());var e=Tn(n),t=e==dn?du:e==_n?er:ct;return t(n)}function me(n){if(!n)return n===0?n:0;if(n=jn(n),n===Nn||n===-Nn){var e=n<0?-1:1;return e*We}return n===n?n:0}function Y(n){var e=me(n),t=e%1;return e===e?t?e-t:e:0}function fs(n){return n?He(Y(n),0,$n):0}function jn(n){if(typeof n=="number")return n;if(Un(n))return ae;if(cn(n)){var e=typeof n.valueOf=="function"?n.valueOf():n;n=cn(e)?e+"":e}if(typeof n!="string")return n===0?n:+n;n=Oa(n);var t=tp.test(n);return t||ip.test(n)?Np(n.slice(2),t?2:8):ep.test(n)?ae:+n}function os(n){return fe(n,Mn(n))}function b0(n){return n?He(Y(n),-wn,wn):n===0?n:0}function en(n){return n==null?"":Bn(n)}var S0=ot(function(n,e){if(Lt(e)||qn(e)){fe(e,bn(e),n);return}for(var t in e)tn.call(e,t)&&Tt(n,t,e[t])}),as=ot(function(n,e){fe(e,Mn(e),n)}),$r=ot(function(n,e,t,r){fe(e,Mn(e),n,r)}),A0=ot(function(n,e,t,r){fe(e,bn(e),n,r)}),O0=ve(bu);function T0(n,e){var t=ft(n);return e==null?t:Ba(t,e)}var I0=Q(function(n,e){n=fn(n);var t=-1,r=e.length,u=r>2?e[2]:i;for(u&&Rn(e[0],e[1],u)&&(r=1);++t1),a}),fe(n,Gu(n),t),r&&(t=Qn(t,E|M|C,Dv));for(var u=e.length;u--;)Mu(t,e[u]);return t});function K0(n,e){return ss(n,Mr(G(e)))}var Z0=ve(function(n,e){return n==null?{}:yv(n,e)});function ss(n,e){if(n==null)return{};var t=sn(Gu(n),function(r){return[r]});return e=G(e),el(n,t,function(r,u){return e(r,u[0])})}function Y0(n,e,t){e=Ce(e,n);var r=-1,u=e.length;for(u||(u=1,n=i);++re){var r=n;n=e,e=r}if(t||n%1||e%1){var u=Na();return On(n+u*(e-n+Fp("1e-"+((u+"").length-1))),e)}return Cu(n,e)}var i1=at(function(n,e,t){return e=e.toLowerCase(),n+(t?ps(e):e)});function ps(n){return uf(en(n).toLowerCase())}function gs(n){return n=en(n),n&&n.replace(fp,Vp).replace(Op,"")}function u1(n,e,t){n=en(n),e=Bn(e);var r=n.length;t=t===i?r:He(Y(t),0,r);var u=t;return t-=e.length,t>=0&&n.slice(t,u)==e}function f1(n){return n=en(n),n&&Bh.test(n)?n.replace(Ko,Qp):n}function o1(n){return n=en(n),n&&Zh.test(n)?n.replace(ki,"\\$&"):n}var a1=at(function(n,e,t){return n+(t?"-":"")+e.toLowerCase()}),l1=at(function(n,e,t){return n+(t?" ":"")+e.toLowerCase()}),s1=_l("toLowerCase");function c1(n,e,t){n=en(n),e=Y(e);var r=e?et(n):0;if(!e||r>=e)return n;var u=(e-r)/2;return Or(hr(u),t)+n+Or(cr(u),t)}function h1(n,e,t){n=en(n),e=Y(e);var r=e?et(n):0;return e&&r>>0,t?(n=en(n),n&&(typeof e=="string"||e!=null&&!ef(e))&&(e=Bn(e),!e&&nt(n))?Le(ne(n),0,t):n.split(e,t)):[]}var y1=at(function(n,e,t){return n+(t?" ":"")+uf(e)});function w1(n,e,t){return n=en(n),t=t==null?0:He(Y(t),0,n.length),e=Bn(e),n.slice(t,t+e.length)==e}function x1(n,e,t){var r=o.templateSettings;t&&Rn(n,e,t)&&(e=i),n=en(n),e=$r({},e,r,Al);var u=$r({},e.imports,r.imports,Al),a=bn(u),s=vu(u,a),c,v,O=0,T=e.interpolate||Xt,I="__p += '",F=_u((e.escape||Xt).source+"|"+T.source+"|"+(T===Zo?np:Xt).source+"|"+(e.evaluate||Xt).source+"|$","g"),B="//# sourceURL="+(tn.call(e,"sourceURL")?(e.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Pp+"]")+` -`;n.replace(F,function(H,X,k,Gn,En,zn){return k||(k=Gn),I+=n.slice(O,zn).replace(op,Xp),X&&(c=!0,I+=`' + -__e(`+X+`) + -'`),En&&(v=!0,I+=`'; -`+En+`; -__p += '`),k&&(I+=`' + -((__t = (`+k+`)) == null ? '' : __t) + -'`),O=zn+H.length,H}),I+=`'; -`;var z=tn.call(e,"variable")&&e.variable;if(!z)I=`with (obj) { -`+I+` -} -`;else if(jh.test(z))throw new K(y);I=(v?I.replace(Nh,""):I).replace($h,"$1").replace(Dh,"$1;"),I="function("+(z||"obj")+`) { -`+(z?"":`obj || (obj = {}); -`)+"var __t, __p = ''"+(c?", __e = _.escape":"")+(v?`, __j = Array.prototype.join; -function print() { __p += __j.call(arguments, '') } -`:`; -`)+I+`return __p -}`;var V=ds(function(){return nn(a,B+"return "+I).apply(i,s)});if(V.source=I,nf(V))throw V;return V}function b1(n){return en(n).toLowerCase()}function S1(n){return en(n).toUpperCase()}function A1(n,e,t){if(n=en(n),n&&(t||e===i))return Oa(n);if(!n||!(e=Bn(e)))return n;var r=ne(n),u=ne(e),a=Ta(r,u),s=Ia(r,u)+1;return Le(r,a,s).join("")}function O1(n,e,t){if(n=en(n),n&&(t||e===i))return n.slice(0,Ea(n)+1);if(!n||!(e=Bn(e)))return n;var r=ne(n),u=Ia(r,ne(e))+1;return Le(r,0,u).join("")}function T1(n,e,t){if(n=en(n),n&&(t||e===i))return n.replace(nu,"");if(!n||!(e=Bn(e)))return n;var r=ne(n),u=Ta(r,ne(e));return Le(r,u).join("")}function I1(n,e){var t=gt,r=Ht;if(cn(e)){var u="separator"in e?e.separator:u;t="length"in e?Y(e.length):t,r="omission"in e?Bn(e.omission):r}n=en(n);var a=n.length;if(nt(n)){var s=ne(n);a=s.length}if(t>=a)return n;var c=t-et(r);if(c<1)return r;var v=s?Le(s,0,c).join(""):n.slice(0,c);if(u===i)return v+r;if(s&&(c+=v.length-c),ef(u)){if(n.slice(c).search(u)){var O,T=v;for(u.global||(u=_u(u.source,en(Yo.exec(u))+"g")),u.lastIndex=0;O=u.exec(T);)var I=O.index;v=v.slice(0,I===i?c:I)}}else if(n.indexOf(Bn(u),c)!=c){var F=v.lastIndexOf(u);F>-1&&(v=v.slice(0,F))}return v+r}function R1(n){return n=en(n),n&&Wh.test(n)?n.replace(Ho,rg):n}var E1=at(function(n,e,t){return n+(t?" ":"")+e.toUpperCase()}),uf=_l("toUpperCase");function vs(n,e,t){return n=en(n),e=t?i:e,e===i?jp(n)?fg(n):zp(n):n.match(e)||[]}var ds=Q(function(n,e){try{return Dn(n,i,e)}catch(t){return nf(t)?t:new K(t)}}),P1=ve(function(n,e){return Zn(e,function(t){t=oe(t),pe(n,t,ju(n[t],n))}),n});function C1(n){var e=n==null?0:n.length,t=G();return n=e?sn(n,function(r){if(typeof r[1]!="function")throw new Yn(g);return[t(r[0]),r[1]]}):[],Q(function(r){for(var u=-1;++uwn)return[];var t=$n,r=On(n,$n);e=G(e),n-=$n;for(var u=gu(r,e);++t0||e<0)?new j(t):(n<0?t=t.takeRight(-n):n&&(t=t.drop(n)),e!==i&&(e=Y(e),t=e<0?t.dropRight(-e):t.take(e-n)),t)},j.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},j.prototype.toArray=function(){return this.take($n)},ue(j.prototype,function(n,e){var t=/^(?:filter|find|map|reject)|While$/.test(e),r=/^(?:head|last)$/.test(e),u=o[r?"take"+(e=="last"?"Right":""):e],a=r||/^find/.test(e);u&&(o.prototype[e]=function(){var s=this.__wrapped__,c=r?[1]:arguments,v=s instanceof j,O=c[0],T=v||Z(s),I=function(X){var k=u.apply(o,Te([X],c));return r&&F?k[0]:k};T&&t&&typeof O=="function"&&O.length!=1&&(v=T=!1);var F=this.__chain__,B=!!this.__actions__.length,z=a&&!F,V=v&&!B;if(!a&&T){s=V?s:new j(this);var H=n.apply(s,c);return H.__actions__.push({func:Pr,args:[I],thisArg:i}),new Vn(H,F)}return z&&V?n.apply(this,c):(H=this.thru(I),z?r?H.value()[0]:H.value():H)})}),Zn(["pop","push","shift","sort","splice","unshift"],function(n){var e=tr[n],t=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",r=/^(?:pop|shift)$/.test(n);o.prototype[n]=function(){var u=arguments;if(r&&!this.__chain__){var a=this.value();return e.apply(Z(a)?a:[],u)}return this[t](function(s){return e.apply(Z(s)?s:[],u)})}}),ue(j.prototype,function(n,e){var t=o[e];if(t){var r=t.name+"";tn.call(ut,r)||(ut[r]=[]),ut[r].push({name:e,func:t})}}),ut[Sr(i,P).name]=[{name:"wrapper",func:i}],j.prototype.clone=Rg,j.prototype.reverse=Eg,j.prototype.value=Pg,o.prototype.at=u_,o.prototype.chain=f_,o.prototype.commit=o_,o.prototype.next=a_,o.prototype.plant=s_,o.prototype.reverse=c_,o.prototype.toJSON=o.prototype.valueOf=o.prototype.value=h_,o.prototype.first=o.prototype.head,xt&&(o.prototype[xt]=l_),o},tt=og();Be?((Be.exports=tt)._=tt,fu._=tt):Sn._=tt}).call(Qe)}(Ft,Ft.exports);var vn=Ft.exports;function Dr(f={},l){const i={};for(const h of Object.keys(f))i[h]=h==="$"?f[h]:l(f[h],h,f);return Object.setPrototypeOf(i,f)}var ws=function(){},xs=ws(),Me=function(f){return f!==xs&&f!==null},bs=Me,Ss=Array.prototype.forEach,As=Object.create,Os=function(f,l){var i;for(i in f)l[i]=f[i]},hf=function(f){var l=As(null);return Ss.call(arguments,function(i){bs(i)&&Os(Object(i),l)}),l},Ts=function(){var f=Math.sign;return typeof f!="function"?!1:f(10)===1&&f(-20)===-1},Wr,pf;function Is(){return pf||(pf=1,Wr=function(f){return f=Number(f),isNaN(f)||f===0?f:f>0?1:-1}),Wr}var Rs=Ts()?Math.sign:Is(),Es=Rs,Ps=Math.abs,Cs=Math.floor,Ls=function(f){return isNaN(f)?0:(f=Number(f),f===0||!isFinite(f)?f:Es(f)*Cs(Ps(f)))},qs=Ls,Ms=Math.max,Fe=function(f){return Ms(0,qs(f))},Fs=Fe,gf=function(f,l,i){var h;return isNaN(f)?(h=l,h>=0?i&&h?h-1:h:1):f===!1?!1:Fs(f)},we=function(f){if(typeof f!="function")throw new TypeError(f+" is not a function");return f},Ns=Me,Xe=function(f){if(!Ns(f))throw new TypeError("Cannot use null or undefined");return f},$s=we,Ds=Xe,Ws=Function.prototype.bind,vf=Function.prototype.call,Bs=Object.keys,Us=Object.prototype.propertyIsEnumerable,Gs=function(f,l){return function(i,h){var m,d=arguments[2],g=arguments[3];return i=Object(Ds(i)),$s(h),m=Bs(i),g&&m.sort(typeof g=="function"?Ws.call(g,i):void 0),typeof f!="function"&&(f=m[f]),vf.call(f,m,function(y,w){return Us.call(i,y)?vf.call(h,d,i[y],y,i,w):l})}},Nt=Gs("forEach"),Ne={},df={exports:{}},zs=function(){var f=Object.assign,l;return typeof f!="function"?!1:(l={foo:"raz"},f(l,{bar:"dwa"},{trzy:"trzy"}),l.foo+l.bar+l.trzy==="razdwatrzy")},Br,_f;function Hs(){return _f||(_f=1,Br=function(){try{return Object.keys("primitive"),!0}catch{return!1}}),Br}var Ur,mf;function Ks(){if(mf)return Ur;mf=1;var f=Me,l=Object.keys;return Ur=function(i){return l(f(i)?Object(i):i)},Ur}var Gr,yf;function Zs(){return yf||(yf=1,Gr=Hs()()?Object.keys:Ks()),Gr}var zr,wf;function Ys(){if(wf)return zr;wf=1;var f=Zs(),l=Xe,i=Math.max;return zr=function(h,m){var d,g,y=i(arguments.length,2),w;for(h=Object(l(h)),w=function(_){try{h[_]=m[_]}catch(x){d||(d=x)}},g=1;g-1},Vr}var hc=sc()?String.prototype.contains:cc(),$t=Cf,qf=lc,Mf=xf,Ff=hf,ht=hc,pc=Pf.exports=function(f,l){var i,h,m,d,g;return arguments.length<2||typeof f!="string"?(d=l,l=f,f=null):d=arguments[2],$t(f)?(i=ht.call(f,"c"),h=ht.call(f,"e"),m=ht.call(f,"w")):(i=m=!0,h=!1),g={value:l,configurable:i,enumerable:h,writable:m},d?Mf(Ff(d),g):g};pc.gs=function(f,l,i){var h,m,d,g;return typeof f!="string"?(d=i,i=l,l=f,f=null):d=arguments[3],$t(l)?qf(l)?$t(i)?qf(i)||(d=i,i=void 0):i=void 0:(d=l,l=i=void 0):l=void 0,$t(f)?(h=ht.call(f,"c"),m=ht.call(f,"e")):(h=!0,m=!1),g={get:l,set:i,configurable:h,enumerable:m},d?Mf(Ff(d),g):g};var $e=Pf.exports,Qr={exports:{}};(function(f,l){var i=$e,h=we,m=Function.prototype.apply,d=Function.prototype.call,g=Object.create,y=Object.defineProperty,w=Object.defineProperties,_=Object.prototype.hasOwnProperty,x={configurable:!0,enumerable:!1,writable:!0},E,M,C,N,D,L,P;E=function(q,A){var R;return h(A),_.call(this,"__ee__")?R=this.__ee__:(R=x.value=g(null),y(this,"__ee__",x),x.value=null),R[q]?typeof R[q]=="object"?R[q].push(A):R[q]=[R[q],A]:R[q]=A,this},M=function(q,A){var R,W;return h(A),W=this,E.call(this,q,R=function(){C.call(W,q,R),m.call(A,this,arguments)}),R.__eeOnceListener__=A,this},C=function(q,A){var R,W,U,J;if(h(A),!_.call(this,"__ee__"))return this;if(R=this.__ee__,!R[q])return this;if(W=R[q],typeof W=="object")for(J=0;U=W[J];++J)(U===A||U.__eeOnceListener__===A)&&(W.length===2?R[q]=W[J?0:1]:W.splice(J,1));else(W===A||W.__eeOnceListener__===A)&&delete R[q];return this},N=function(q){var A,R,W,U,J;if(_.call(this,"__ee__")&&(U=this.__ee__[q],!!U))if(typeof U=="object"){for(R=arguments.length,J=new Array(R-1),A=1;A=55296&&R<=56319&&(rn+=M[++L])),rn=C?_.call(C,N,rn,P):rn,D?(x.value=rn,E(q,P,x)):q[P]=rn,++P;A=P}}if(A===void 0)for(A=h(M.length),D&&(q=new D(A)),L=0;L=0?x=g(x):x=l(this.length)-g(d(x)),w=x;w<_;++w)if(m.call(this,w)&&(E=this[w],f(E)))return w;return-1},xi}var Si,so;function nh(){if(so)return Si;so=1;var f=bi(),l=Object.create;return Si=function(){var i=0,h=[],m=l(null);return{get:function(d){var g=0,y=h,w,_=d.length;if(_===0)return y[_]||null;if(y=y[_]){for(;g<_-1;){if(w=f.call(y[0],d[g]),w===-1)return null;y=y[1][w],++g}return w=f.call(y[0],d[g]),w===-1?null:y[1][w]||null}return null},set:function(d){var g=0,y=h,w,_=d.length;if(_===0)y[_]=++i;else{for(y[_]||(y[_]=[[],[]]),y=y[_];g<_-1;)w=f.call(y[0],d[g]),w===-1&&(w=y[0].push(d[g])-1,y[1].push([[],[]])),y=y[1][w],++g;w=f.call(y[0],d[g]),w===-1&&(w=y[0].push(d[g])-1),y[1][w]=++i}return m[i]=d,i},delete:function(d){var g=0,y=h,w,_=m[d],x=_.length,E=[];if(x===0)delete y[x];else if(y=y[x]){for(;g"}},qi}var Mi,To;function ah(){if(To)return Mi;To=1;var f=oh(),l=/[\n\r\u2028\u2029]/g;return Mi=function(i){var h=f(i);return h.length>100&&(h=h.slice(0,99)+"…"),h=h.replace(l,function(m){return JSON.stringify(m).slice(1,-1)}),h},Mi}var Gt={exports:{}},Io;function Ro(){if(Io)return Gt.exports;Io=1,Gt.exports=f,Gt.exports.default=f;function f(l){return!!l&&(typeof l=="object"||typeof l=="function")&&typeof l.then=="function"}return Gt.exports}var Eo;function lh(){if(Eo)return yo;Eo=1;var f=vo(),l=ih(),i=fh(),h=ah(),m=Ro(),d=Ri(),g=Object.create,y=l("then","then:finally","done","done:finally");return Ne.promise=function(w,_){var x=g(null),E=g(null),M=g(null);if(w===!0)w=null;else if(w=i(w),!y[w])throw new TypeError("'"+h(w)+"' is not valid promise mode");_.on("set",function(C,N,D){var L=!1;if(!m(D)){E[C]=D,_.emit("setasync",C,1);return}x[C]=1,M[C]=D;var P=function(W){var U=x[C];if(L)throw new Error(`Memoizee error: Detected unordered then|done & finally resolution, which in turn makes proper detection of success/failure impossible (when in 'done:finally' mode) -Consider to rely on 'then' or 'done' mode instead.`);U&&(delete x[C],E[C]=W,_.emit("setasync",C,U))},q=function(){L=!0,x[C]&&(delete x[C],delete M[C],_.delete(C))},A=w;if(A||(A="then"),A==="then"){var R=function(){d(q)};D=D.then(function(W){d(P.bind(this,W))},R),typeof D.finally=="function"&&D.finally(R)}else if(A==="done"){if(typeof D.done!="function")throw new Error("Memoizee error: Retrieved promise does not implement 'done' in 'done' mode");D.done(P,q)}else if(A==="done:finally"){if(typeof D.done!="function")throw new Error("Memoizee error: Retrieved promise does not implement 'done' in 'done:finally' mode");if(typeof D.finally!="function")throw new Error("Memoizee error: Retrieved promise does not implement 'finally' in 'done:finally' mode");D.done(P),D.finally(q)}}),_.on("get",function(C,N,D){var L;if(x[C]){++x[C];return}L=M[C];var P=function(){_.emit("getasync",C,N,D)};m(L)?typeof L.done=="function"?L.done(P):L.then(function(){d(P)}):P()}),_.on("delete",function(C){if(delete M[C],x[C]){delete x[C];return}if(hasOwnProperty.call(E,C)){var N=E[C];delete E[C],_.emit("deleteasync",C,[N])}}),_.on("clear",function(){var C=E;E=g(null),x=g(null),M=g(null),_.emit("clearasync",f(C,function(N){return[N]}))})},yo}var Po={},Co;function sh(){if(Co)return Po;Co=1;var f=we,l=Nt,i=Ne,h=Function.prototype.apply;return i.dispose=function(m,d,g){var y;if(f(m),g.async&&i.async||g.promise&&i.promise){d.on("deleteasync",y=function(w,_){h.call(m,null,_)}),d.on("clearasync",function(w){l(w,function(_,x){y(x,_)})});return}d.on("delete",y=function(w,_){m(_)}),d.on("clear",function(w){l(w,function(_,x){y(x,_)})})},Po}var Lo={},Fi,qo;function ch(){return qo||(qo=1,Fi=2147483647),Fi}var Ni,Mo;function hh(){if(Mo)return Ni;Mo=1;var f=Fe,l=ch();return Ni=function(i){if(i=f(i),i>l)throw new TypeError(i+" exceeds maximum possible timeout");return i},Ni}var Fo;function ph(){if(Fo)return Lo;Fo=1;var f=pi(),l=Nt,i=Ri(),h=Ro(),m=hh(),d=Ne,g=Function.prototype,y=Math.max,w=Math.min,_=Object.create;return d.maxAge=function(x,E,M){var C,N,D,L;x=m(x),x&&(C=_(null),N=M.async&&d.async||M.promise&&d.promise?"async":"",E.on("set"+N,function(P){C[P]=setTimeout(function(){E.delete(P)},x),typeof C[P].unref=="function"&&C[P].unref(),L&&(L[P]&&L[P]!=="nextTick"&&clearTimeout(L[P]),L[P]=setTimeout(function(){delete L[P]},D),typeof L[P].unref=="function"&&L[P].unref())}),E.on("delete"+N,function(P){clearTimeout(C[P]),delete C[P],L&&(L[P]!=="nextTick"&&clearTimeout(L[P]),delete L[P])}),M.preFetch&&(M.preFetch===!0||isNaN(M.preFetch)?D=.333:D=y(w(Number(M.preFetch),1),0),D&&(L={},D=(1-D)*x,E.on("get"+N,function(P,q,A){L[P]||(L[P]="nextTick",i(function(){var R;L[P]==="nextTick"&&(delete L[P],E.delete(P),M.async&&(q=f(q),q.push(g)),R=E.memoized.apply(A,q),M.promise&&h(R)&&(typeof R.done=="function"?R.done(g,g):R.then(g,g)))}))}))),E.on("clear"+N,function(){l(C,function(P){clearTimeout(P)}),C={},L&&(l(L,function(P){P!=="nextTick"&&clearTimeout(P)}),L={})}))},Lo}var No={},$i,$o;function gh(){if($o)return $i;$o=1;var f=Fe,l=Object.create,i=Object.prototype.hasOwnProperty;return $i=function(h){var m=0,d=1,g=l(null),y=l(null),w=0,_;return h=f(h),{hit:function(x){var E=y[x],M=++w;if(g[M]=x,y[x]=M,!E)return++m,m<=h?void 0:(x=g[d],_(x),x);if(delete g[E],d===E)for(;!i.call(g,++d););},delete:_=function(x){var E=y[x];if(E&&(delete g[E],delete y[x],--m,d===E)){if(!m){w=0,d=1;return}for(;!i.call(g,++d););}},clear:function(){m=0,d=1,g=l(null),y=l(null),w=0}}},$i}var Do;function vh(){if(Do)return No;Do=1;var f=Fe,l=gh(),i=Ne;return i.max=function(h,m,d){var g,y,w;h=f(h),h&&(y=l(h),g=d.async&&i.async||d.promise&&i.promise?"async":"",m.on("set"+g,w=function(_){_=y.hit(_),_!==void 0&&m.delete(_)}),m.on("get"+g,w),m.on("delete"+g,y.delete),m.on("clear"+g,y.clear))},No}var Wo={},Bo;function dh(){if(Bo)return Wo;Bo=1;var f=$e,l=Ne,i=Object.create,h=Object.defineProperties;return l.refCounter=function(m,d,g){var y,w;y=i(null),w=g.async&&l.async||g.promise&&l.promise?"async":"",d.on("set"+w,function(_,x){y[_]=x||1}),d.on("get"+w,function(_){++y[_]}),d.on("delete"+w,function(_){delete y[_]}),d.on("clear"+w,function(){y={}}),h(d.memoized,{deleteRef:f(function(){var _=d.get(arguments);return _===null||!y[_]?null:--y[_]?!1:(d.delete(_),!0)}),getRefCount:f(function(){var _=d.get(arguments);return _===null||!y[_]?0:y[_]})})},Wo}var _h=hf,mh=gf,yh=Vc,wh=function(f){var l=_h(arguments[1]),i;return l.normalizer||(i=l.length=mh(l.length,f.length,l.async),i!==0&&(l.primitive?i===!1?l.normalizer=Qc():i>1&&(l.normalizer=Xc()(i)):i===!1?l.normalizer=nh()():i===1?l.normalizer=eh()():l.normalizer=th()(i))),l.async&&rh(),l.promise&&lh(),l.dispose&&sh(),l.maxAge&&ph(),l.max&&vh(),l.refCounter&&dh(),yh(f,l)},xh=ys(wh),Uo={exports:{}};(function(f,l){(function(i,h){f.exports=h()})(Qe,function(){return function(i){function h(d){if(m[d])return m[d].exports;var g=m[d]={i:d,l:!1,exports:{}};return i[d].call(g.exports,g,g.exports,h),g.l=!0,g.exports}var m={};return h.m=i,h.c=m,h.d=function(d,g,y){h.o(d,g)||Object.defineProperty(d,g,{configurable:!1,enumerable:!0,get:y})},h.n=function(d){var g=d&&d.__esModule?function(){return d.default}:function(){return d};return h.d(g,"a",g),g},h.o=function(d,g){return Object.prototype.hasOwnProperty.call(d,g)},h.p="",h(h.s=1)}([function(i,h,m){function d(y){var w=y===void 0?{}:y,_=w.ESCAPE,x=_===void 0?/^\\/:_,E=w.VARIABLE_START,M=E===void 0?/^\${\s*/:E,C=w.VARIABLE_END,N=C===void 0?/^\s*}/:C,D=w.PIPE_START,L=D===void 0?/^\s*\|\s*/:D,P=w.PIPE_PARAMETER_START,q=P===void 0?/^\s*:\s*/:P,A=w.QUOTED_STRING,R=A===void 0?h.DEFAULT_QUOTED_STRING_REGEX:A,W=w.QUOTED_STRING_TEST,U=W===void 0?null:W,J=w.QUOTED_STRING_GET_AND_ADVANCE,rn=J===void 0?null:J,Pn=w.QUOTED_STRING_IN_PARAMETER_TEST,gt=Pn===void 0?null:Pn,Ht=w.QUOTED_STRING_IN_PARAMETER_GET_AND_ADVANCE,Bi=Ht===void 0?null:Ht,Kt=U||function(Nn){return R.test(Nn)},vt=rn||g(R),Ui=gt||function(Nn){return R.test(Nn)},Gi=Bi||g(R);return function(Nn){function wn(an){an===void 0&&(an=1),un=un.substr(an)}function We(an){an===void 0&&(an=/^/),wn(un.match(an)[0].length)}function ae(){var an;return We(x),an=un.length>0?un[0]:"",wn(),an}function $n(an){var _n=(an===void 0?{}:an).isNull,kn=_n!==void 0&&_n;dn={name:"",pipes:[]},Hn=!kn}function zi(){ie.variables.push(dn),$n({isNull:!0})}function Zt(an){var _n=(an===void 0?{}:an).isNull,kn=_n!==void 0&&_n;Cn={name:"",parameters:[]},_t=!kn}function Yt(){dn.pipes.push(Cn),Zt({isNull:!0})}function le(an){var _n=(an===void 0?{}:an).isNull,kn=_n!==void 0&&_n;Ae="",Vt=!kn}function xe(){Cn.parameters.push(Ae),le({isNull:!0})}function dt(){return!!N.test(un)&&(We(N),xn>=3&&xe(),xn>=2&&Yt(),xn>=1&&zi(),xn=0,!0)}function se(){return!!L.test(un)&&(We(L),xn>=3&&xe(),xn>=2&&Yt(),xn>=1&&Zt(),xn=2,!0)}function be(){return!!q.test(un)&&(We(q),xn>=3&&xe(),xn>=2&&le(),xn=3,!0)}for(var un=Nn,ie={literals:[],variables:[]},xn=0,Se="",dn={name:"",pipes:[]},Cn={name:"",parameters:[]},Ae="",Hn=!1,_t=!1,Vt=!1;un&&un.length>0;)switch(xn){case 0:if(x.test(un)){Se+=ae();continue}if(M.test(un)){xn=1,$n(),ie.literals.push(Se),Se="",We(M);continue}Se+=un[0],wn();break;case 1:if(x.test(un)){dn.name+=ae();continue}if(dt()||se())continue;if(Kt(un)){dn.name+=vt(un,wn);continue}dn.name+=un[0],wn();break;case 2:if(x.test(un)){Cn.name+=ae();continue}if(dt()||be()||se())continue;if(Kt(un)){Cn.name+=vt(un,wn);continue}Cn.name+=un[0],wn();break;case 3:if(x.test(un)){Ae+=ae();continue}if(dt()||be()||se())continue;if(Ui(un)){Ae+=Gi(un,wn);continue}Ae+=un[0],wn()}return Vt&&Cn.parameters.push(Ae),_t&&dn.pipes.push(Cn),Hn&&ie.variables.push(dn),ie.literals.push(Se),ie}}function g(y){return function(w,_){var x=w.match(y);return _(x[0].length),x.slice(2).join("").replace("\\\\","\\")}}Object.defineProperty(h,"__esModule",{value:!0}),h.DEFAULT_QUOTED_STRING_REGEX=/^('((?:[^'\\]|\\.)*)'|'((?:[^'\\]|\\.)*)$|"((?:[^"\\]|\\.)*)"|"((?:[^"\\]|\\.)*)$)/,h.parseStringTemplateGenerator=d,h.parseStringTemplate=d(),h.getQuotedStringAndAdvanceForRegex=g},function(i,h,m){i.exports=m(2)},function(i,h,m){function d(g){for(var y in g)h.hasOwnProperty(y)||(h[y]=g[y])}Object.defineProperty(h,"__esModule",{value:!0}),d(m(0)),d(m(3))},function(i,h,m){function d(x){return function(E){return x.hasOwnProperty(E)?x[E]:E.split(".").reduce(function(M,C){return M.hasOwnProperty(C)?M[C]:""},x)}}function g(x,E,M,C){C===void 0&&(C=d(E));var N=C(x.name);return x.pipes.reduce(function(D,L){return M.hasOwnProperty(L.name)?M[L.name](D,L.parameters):D},N??"")}function y(x,E,M,C){return C===void 0&&(C=d(E)),x.literals.length===0?"":x.literals.slice(1).reduce(function(N,D,L){return""+N+g(x.variables[L],E,M,C)+D},x.literals[0])}function w(x,E,M){return y(_.parseStringTemplate(x),E,M)}Object.defineProperty(h,"__esModule",{value:!0});var _=m(0);h.evaluateParsedString=y,h.evaluateStringTemplate=w}])})})(Uo);var Go=Uo.exports;const zo=f=>{const l=Function("$",` - const theme = $.__internal__?.context.theme; - const color = $.__internal__?.context.color; - const step = $.__internal__?.step; - const events = $.__internal__?.events; - const parent = $.__internal__?.parent; - return ${f}; - `);return i=>l(new Proxy(zt(i),{get(h,m){return typeof(h==null?void 0:h[m])=="function"?h[m]({}):h==null?void 0:h[m]}}))},bh=/^\$\{\{\s*/,Sh=/^\s*\}\}/,Di=/\b\B/,Ah=Go.parseStringTemplateGenerator({VARIABLE_START:bh,VARIABLE_END:Sh,PIPE_START:Di,PIPE_PARAMETER_START:Di,QUOTED_STRING:Di}),Oh=xh(f=>{const l=Ah(f);return vn.join(l.literals,"")?i=>Go.evaluateParsedString(l,{},{},h=>zo(h)(i)):zo(l.variables[0].name)},{primitive:!0});function De(f){switch(f==null?void 0:f.constructor){case Array:{const l=vn.map(f,De);return i=>vn.map(l,h=>h(i))}case Object:{const l=vn.mapValues(f,De);return i=>vn.mapValues(l,h=>h(i))}case String:return Oh(f);default:return()=>f}}function zt(f={}){return Dr(f,l=>vn.isFunction(l)?l:De(l))}function Th(f={}){return new Proxy(f,{get:(l,i)=>typeof l[i]=="function"?l[i]:()=>l[i]})}function Wi(f,l){return Object.setPrototypeOf(Dr(l,i=>h=>i(f)),f)}function Ih(f){const{$for:l,$if:i,...h}=f;if(l||i){const{$let:m="i",$from:d=0,$to:g=1,$step:y=1}=l??{},w=De(i),_=De(d),x=De(g),E=De(y);return(M={})=>!i||w(M)?vn.range(_(M),x(M),E(M)).map(C=>{const N=Wi(M,zt({[m]:C}));return Wi(N,zt(h))}):[]}else return(m={})=>[Wi(m,zt(h))]}function Rh(f,l){const i=d=>{const{$:g}=d,y=Ih(d);return g in l?w=>vn.flatMap(y(w),_=>vn.flatMap(h[g],x=>x(_))):w=>vn.map(y(w),_=>Object.setPrototypeOf(Dr(_,x=>x(_)),null))},h=vn.mapValues(l,d=>vn.map(d,i)),m=vn.flatMap(f,i);return d=>vn.flatMap(m,g=>g(d))}const Eh=f=>f==null,Ph=f=>f.clear?typeof f.clear=="string"?"special":"transient":"persistent";function Ch(f,l){return Object.setPrototypeOf(f,l),f}const Lh="#808080";function qh({trace:f,context:l,view:i="main",from:h=0,to:m=(d=>(d=f==null?void 0:f.events)==null?void 0:d.length)()??0}){var _;const g=Rh(((_=f==null?void 0:f.views)==null?void 0:_[i])??[],(f==null?void 0:f.views)??{}),y=x=>E=>({component:E,meta:{source:"trace",step:h+x,info:E.$info}}),w=vn.chain(f==null?void 0:f.events).map((x,E)=>({step:E,id:x.id,data:x,pId:x.pId})).groupBy("id").value();return vn.chain(vn.range(h,m)).map(x=>{var N;const E=f.events[x],M=f.events,C=g(Th(Ch({alpha:1,fill:Lh,__internal__:{context:l,step:x,parent:Eh(E.pId)?void 0:M[((N=vn.findLast(w[E.pId],D=>D.step<=x))==null?void 0:N.step)??0],events:M}},E)));return{event:E,components:vn.groupBy(C,Ph)}}).map((x,E)=>({event:x.event,components:vn.mapValues(x.components,M=>M.map(y(E)))})).value()}onmessage=({data:f})=>{postMessage(qh(f))}})(); diff --git a/assets/primitives-reference-9d7af09e.js b/assets/primitives-reference-9d7af09e.js new file mode 100644 index 00000000..4c0c5633 --- /dev/null +++ b/assets/primitives-reference-9d7af09e.js @@ -0,0 +1 @@ +const e=""+new URL("primitives-reference-c0210931.workspace",import.meta.url).href;export{e as default}; diff --git a/assets/primitives-reference-c0210931.workspace b/assets/primitives-reference-c0210931.workspace new file mode 100644 index 00000000..d2733549 Binary files /dev/null and b/assets/primitives-reference-c0210931.workspace differ diff --git a/assets/primitives-reference.workspace-cd08113e.js b/assets/primitives-reference.workspace-cd08113e.js new file mode 100644 index 00000000..9d653097 --- /dev/null +++ b/assets/primitives-reference.workspace-cd08113e.js @@ -0,0 +1 @@ +const V="data:application/octet-stream;base64,eyJpZCI6ImxKeWRobFdZZDVZMDBvTWJKVUFMcCIsIm5hbWUiOiJQcmltaXRpdmVzIFJlZmVyZW5jZSIsImRlc2NyaXB0aW9uIjoiUXVpY2sgZGVtbyBvZiB0aGUgcHJpbWl0aXZlcyBwcm92aWRlZCBieSB0aGUgYnVpbHQtaW4gMkQgcmVuZGVyZXIuIiwiYXV0aG9yIjoiZ2l0aHViOnBhdGgtdmlzdWFsaXNlciIsInNjcmVlbnNob3RzIjpbImRhdGE6aW1hZ2UvanBlZztiYXNlNjQsLzlqLzRBQVFTa1pKUmdBQkFRQUFBUUFCQUFELzJ3Q0VBQUVCQVFFQkFRRUJBUUVCQVFFQkFRRUJBUUVCQVFFQkFRRUJBUUVCQVFFQkFRRUJBUUVCQVFFQkFRRUJBUUVCQVFFQkFRRUJBUUVCQVFFQkFRRUJBUUVCQVFFQkFRRUJBUUVCQVFFQkFRRUJBUUVCQVFFQkFRRUJBUUVCQVFFQkFRRUJBUUVCQVFFQkFRRUJBUUVCQVFFQkFRRUJBUUVCQVFFQkFRRUJBUUVCQWYvQUFCRUlBRUFBUUFNQkVRQUNFUUVERVFIL3hBR2lBQUFCQlFFQkFRRUJBUUFBQUFBQUFBQUFBUUlEQkFVR0J3Z0pDZ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ZjYmw5U1RhOW5WblFrOUp4U3EwNFY2V0Z4a0tjNHd4bUR3bUpqVnc5UGtxUlVKeWpHY2FpVHNweHZaK2F2K2wxMmJXcDR6WDBwQVVBRkFCUUFVQUZBSFdhRjQ3OGFlR05COFcrR1BEZmlyWDlCOFBlUGJQVDlOOGJhUG8rcTNlbldQaXpUTkp2UDdTMC9TL0VOdmFTeExxMmwydW83TlFqMDY5RTFrYjZDMnUyZ2E0dExhU0h6OFhsT1dZN0Y1ZmpzYmwrRHhlTXltcldyNVhpY1RoNlZhcmw5ZXZTOWpXcjRPZFNNbmg2OVNqZWk2MUxscSt5blVwcWFoVW5HVFVtazBtMHBhTkoydWxyWjkxZlczZlU1T3ZRRUZBQlFBVUFmLzlrPSJdLCJzaXplIjoxMDI4MDAsImxhc3RNb2RpZmllZCI6MTcxNDU1NDk1MTM5NX0=";export{V as default}; diff --git a/assets/variables-reference-54f52730.workspace b/assets/variables-reference-54f52730.workspace new file mode 100644 index 00000000..af54413f Binary files /dev/null and b/assets/variables-reference-54f52730.workspace differ diff --git a/assets/variables-reference-b00bbb42.js b/assets/variables-reference-b00bbb42.js new file mode 100644 index 00000000..5ed7b191 --- /dev/null +++ b/assets/variables-reference-b00bbb42.js @@ -0,0 +1 @@ +const e=""+new URL("variables-reference-54f52730.workspace",import.meta.url).href;export{e as default}; diff --git a/assets/variables-reference.workspace-db5c7928.js b/assets/variables-reference.workspace-db5c7928.js new file mode 100644 index 00000000..da3eedd4 --- /dev/null +++ b/assets/variables-reference.workspace-db5c7928.js @@ -0,0 +1 @@ +const U="data:application/octet-stream;base64,eyJpZCI6Ik11T3N3TjlBejNtUlRlTTJvcHlOOCIsIm5hbWUiOiJWYXJpYWJsZXMgUmVmZXJlbmNlIiwiZGVzY3JpcHRpb24iOiJTaW1wbGUgZGVtbyBvZiB2YXJpYWJsZXMgYXZhaWxhYmxlIGluIGV4cHJlc3Npb25zLiIsImF1dGhvciI6ImdpdGh1YjpwYXRoLXZpc3VhbGlzZX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trZG1kMkpKWmlTVGsxeTFLazZ0U2RXck9WU3BWbktwVW5OdVVwem5KeW5PVW5xNVNrMjIzcTIyejNLZE9GS25DbFNoR25UcFFqVHB3Z2xHTUlRaW93aEdLMFVZeFNTUzBTU1JGL2EycC84L3dCZGY5L24vd0FhZ3NQN1cxUC9BSi9yci92OC93RGpRQWYydHFmL0FEL1hYL2Y1L3dER2dBL3RiVS8rZjY2LzcvUC9BSTBBVXBKSkpuYVNWMmtrYzVaM0pabU9NWkpQSk9CUUF5Z0FvQUtBQ2dBb0FLQUNnQW9BS0FDZ0FvQUtBQ2dBb0FLQUNnQW9BS0FDZ0FvQUtBQ2dBb0FLQVA4QS85az0iXSwic2l6ZSI6NzUyODIsImxhc3RNb2RpZmllZCI6MTcxNDU1NDkwNDIzMn0=";export{U as default}; diff --git a/index.html b/index.html index c4ec760f..c46a12ac 100644 --- a/index.html +++ b/index.html @@ -10,7 +10,7 @@ - + diff --git a/recipes/a-star-grid-search-heat-map.workspace b/recipes/a-star-grid-search-heat-map.workspace new file mode 100644 index 00000000..e8123892 Binary files /dev/null and b/recipes/a-star-grid-search-heat-map.workspace differ diff --git a/recipes/a-star-grid-search-heat-map.workspace.meta b/recipes/a-star-grid-search-heat-map.workspace.meta new file mode 100644 index 00000000..1ca1a32e --- /dev/null +++ b/recipes/a-star-grid-search-heat-map.workspace.meta @@ -0,0 +1 @@ +{"id":"JJhIU3mikrE3M-ObJbAC7","name":"A* Grid Search - Heat Map","description":"This example demonstrates one way you could create a heat map for your search.","author":"github:path-visualiser","screenshots":["data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAf/AABEIAEA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GNLtdK8MaBpnhfw7pWleHfC2maN4d0TStE8O6LpWj6bpmj6VY2NnY2NvDDboE5ewH/9k="],"size":296738,"lastModified":1714557059850} \ No newline at end of file diff --git a/recipes/palette-reference.workspace b/recipes/palette-reference.workspace new file mode 100644 index 00000000..cc884aa1 Binary files /dev/null and b/recipes/palette-reference.workspace differ diff --git a/recipes/palette-reference.workspace.meta b/recipes/palette-reference.workspace.meta new file mode 100644 index 00000000..23502153 --- /dev/null +++ b/recipes/palette-reference.workspace.meta @@ -0,0 +1 @@ +{"id":"3oOL50lY7VAJxrEHdOGF2","name":"Palette Reference","description":"Quick demo of available color tokens.","author":"github:path-visualiser","screenshots":["data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAf/AABEIAEAAQAMBEQACEQEDEQH/xAGiAAABBQEBAQEBAQAAAAAAAAAAAQIDBAUGBwgJCgsQAAIBAwMCBAMFBQQEAAABfQECAwAEEQUSITFBBhNRYQcicRQygZGhCCNCscEVUtHwJDNicoIJChYXGBkaJSYnKCkqNDU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6g4SFhoeIiYqSk5SVlpeYmZqio6Slpqeoqaqys7S1tre4ubrCw8TFxsfIycrS09TV1tfY2drh4uPk5ebn6Onq8fLz9PX29/j5+gEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoLEQACAQIEBAMEBwUEBAABAncAAQIDEQQFITEGEkFRB2FxEyIygQgUQpGhscEJIzNS8BVictEKFiQ04SXxFxgZGiYnKCkqNTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqCg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zw84yaACgAoAKACgD1z4J/Ea5+F3jePxTaeHZvFEy6Xf6cNKgvZLCRhe+TmcTx6fqbYi8oZT7KQ+776Y5/RPDDj5+G/FEeJVlSznlwGMwP1J47+z7/W/ZfvfrH1TG29n7P4PYPmv8Uba+jlmP/s3FLE+y9tanOHJ7T2fx215uSe1tuXXujvPjp8Xdb+OcnhNY/h9qfh5/Dja1FHHFd3euPqEmtPpKbFVdD0wwPbvpWwIBcNM8+392Y8SfS+L/AIvvxWfD7fDyyH+wlmu2avM/rX9p/wBnf9S3L/Yex+of9Pfae1+xye/05xnH9q/V/wDZ/Yew9r/y99rz+19l/wBOqfLy+z8736W1+bJoZreRobiKWCZNu+KaN4pF3KHXcjhWXcrKy5AypBHBBr8WPFIqACgAoAKAP//Z"],"size":141884,"lastModified":1714555025787} \ No newline at end of file diff --git a/recipes/primitives-reference.workspace b/recipes/primitives-reference.workspace new file mode 100644 index 00000000..d2733549 Binary files /dev/null and b/recipes/primitives-reference.workspace differ diff --git a/recipes/primitives-reference.workspace.meta b/recipes/primitives-reference.workspace.meta new file mode 100644 index 00000000..2d8a242b --- /dev/null +++ b/recipes/primitives-reference.workspace.meta @@ -0,0 +1 @@ +{"id":"lJydhlWYd5Y00oMbJUALp","name":"Primitives Reference","description":"Quick demo of the primitives provided by the built-in 2D renderer.","author":"github:path-visualiser","screenshots":["data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAf/AABEIAEAAQAMBEQACEQEDEQH/xAGiAAABBQEBAQEBAQAAAAAAAAAAAQIDBAUGBwgJCgsQAAIBAwMCBAMFBQQEAAABfQECAwAEEQUSITFBBhNRYQcicRQ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enWPizTNJvP7S0/S/ENvaSxLq2l2uo7NQj069E1kb6C2u2ga4tLaSHz8XlOWY7F5fjsbl+DxeMymrWr5XicTh6Varl9evS9jWr4OdSMnh69Sjei61Llq+ynUpqahUnGTUmk0m0paNJ2ulrZ91fW3fU5OvQEFABQAUAf/9k="],"size":102800,"lastModified":1714554951395} \ No newline at end of file diff --git a/recipes/variables-reference.workspace b/recipes/variables-reference.workspace new file mode 100644 index 00000000..af54413f Binary files /dev/null and b/recipes/variables-reference.workspace differ diff --git a/recipes/variables-reference.workspace.meta b/recipes/variables-reference.workspace.meta new file mode 100644 index 00000000..f32d71f6 --- /dev/null +++ b/recipes/variables-reference.workspace.meta @@ -0,0 +1 @@ +{"id":"MuOswN9Az3mRTeM2opyN8","name":"Variables Reference","description":"Simple demo of variables available in expressions.","author":"github:path-visualiser","screenshots":["data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAf/AABEIAEAAQAMBEQACEQEDEQH/xAGiAAABBQEBAQEBAQAAAAAAAAAAAQIDBAUGBwgJCgsQAAIBAwMCBAMFBQQEAAABfQECAwAEEQUSITFBBhNRYQcicRQygZGhCCNCscEVUtHwJDNicoIJChYXGBkaJSYnKCkqNDU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6g4SFhoeIiYqSk5SVlpeYmZqio6Slpqeoqaqys7S1tre4ubrCw8TFxsfIycrS09TV1tfY2drh4uPk5ebn6Onq8fLz9PX29/j5+gEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoLEQACAQIEBAMEBwUEBAABAncAAQIDEQQFITEGEkFRB2FxEyIygQg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I0AUpJJJnaSV2kkc5Z3JZmOMZJPJOBQAygAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKAP8A/9k="],"size":75282,"lastModified":1714554904232} \ No newline at end of file